(window.webpackJsonp=window.webpackJsonp||[]).push([["vendor"],{
/***/"0094":
/***/function(e,t,n){"use strict";var r,i=n("bb2f"),a=n("cfe9"),o=n("e330"),s=n("6964"),c=n("f183"),l=n("6d61"),u=n("acac"),h=n("861d"),f=n("69f3").enforce,d=n("d039"),p=n("cdce"),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,A=g.isSealed,b=g.freeze,w=g.seal,x=!a.ActiveXObject&&"ActiveXObject"in a,C=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_=l("WeakMap",C,u),I=_.prototype,E=o(I.set);
// IE11 WeakMap frozen keys fix
// We can't use feature detection because it crash some old IE builds
// https://github.com/zloirock/core-js/issues/485
if(p)if(x){r=u.getConstructor(C,"WeakMap",!0),c.enable();var k=o(I.delete),S=o(I.has),B=o(I.get);s(I,{delete:function(e){if(h(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(h(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),S(this,e)||t.frozen.has(e)}return S(this,e)},get:function(e){if(h(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),S(this,e)?B(this,e):t.frozen.get(e)}return B(this,e)},set:function(e,t){if(h(e)&&!v(e)){var n=f(this);n.frozen||(n.frozen=new r),S(this,e)?E(this,e,t):n.frozen.set(e,t)}else E(this,e,t);return this}})}else i&&d((function(){var e=b([]);return E(new _,e,1),!y(e)}))&&s(I,{set:function(e,t){var n;return m(e)&&(y(e)?n=b:A(e)&&(n=w)),E(this,e,t),n&&n(e),this}})
/***/},
/***/"009a":
/***/function(e,t,n){"use strict";n.r(t),
/* harmony export (binding) */n.d(t,"blue",(function(){return S})),
/* harmony export (binding) */n.d(t,"cyan",(function(){return k})),
/* harmony export (binding) */n.d(t,"geekblue",(function(){return B})),
/* harmony export (binding) */n.d(t,"generate",(function(){return m})),
/* harmony export (binding) */n.d(t,"gold",(function(){return x})),
/* harmony export (binding) */n.d(t,"green",(function(){return E})),
/* harmony export (binding) */n.d(t,"grey",(function(){return O})),
/* harmony export (binding) */n.d(t,"lime",(function(){return I})),
/* harmony export (binding) */n.d(t,"magenta",(function(){return T})),
/* harmony export (binding) */n.d(t,"orange",(function(){return C})),
/* harmony export (binding) */n.d(t,"presetDarkPalettes",(function(){return A})),
/* harmony export (binding) */n.d(t,"presetPalettes",(function(){return y})),
/* harmony export (binding) */n.d(t,"presetPrimaryColors",(function(){return v})),
/* harmony export (binding) */n.d(t,"purple",(function(){return M})),
/* harmony export (binding) */n.d(t,"red",(function(){return b})),
/* harmony export (binding) */n.d(t,"volcano",(function(){return w})),
/* harmony export (binding) */n.d(t,"yellow",(function(){return _}));
/* harmony import */var r=n("94c7"),i=n.n(r),a=2,o=.16,s=.05,c=.05,l=.15,u=5,h=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];
/* harmony import */function d(e,t,n){var r;// 根据色相不同，色相转向不同
return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-a*t:Math.round(e.h)+a*t:n?Math.round(e.h)+a*t:Math.round(e.h)-a*t)<0?r+=360:r>=360&&(r-=360),r}function p(e,t,n){
// grey color don't change saturation
return 0===e.h&&0===e.s?e.s:(// 边界值修正
(r=n?e.s-o*t:t===h?e.s+o:e.s+s*t)>1&&(r=1),// 第一格的 s 限制在 0.06-0.1 之间
n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function g(e,t,n){var r;return(r=n?e.v+c*t:e.v-l*t)>1&&(r=1),Number(r.toFixed(2))}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=i()(e),a=u;a>0;a-=1){var o=r.toHsv(),s=i()({h:d(o,a,!0),s:p(o,a,!0),v:g(o,a,!0)}).toHexString();n.push(s)}n.push(r.toHexString());for(var c=1;c<=h;c+=1){var l=r.toHsv(),m=i()({h:d(l,c),s:p(l,c),v:g(l,c)}).toHexString();n.push(m)}// dark theme patterns
return"dark"===t.theme?f.map((function(e){var r=e.index,a=e.opacity;return i.a.mix(t.backgroundColor||"#141414",n[r],100*a).toHexString()})):n}var v={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},y={},A={};Object.keys(v).forEach((function(e){y[e]=m(v[e]),y[e].primary=y[e][5],// dark presetPalettes
A[e]=m(v[e],{theme:"dark",backgroundColor:"#141414"}),A[e].primary=A[e][5]}));var b=y.red,w=y.volcano,x=y.gold,C=y.orange,_=y.yellow,I=y.lime,E=y.green,k=y.cyan,S=y.blue,B=y.geekblue,M=y.purple,T=y.magenta,O=y.grey},
/***/"00ad":
/***/function(e,t,n){"use strict";
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
var r=n("f083"),i=n("6373"),a=n("453f"),o="startsWith",s=""[o];r(r.P+r.F*n("3afb")(o),"String",{startsWith:function(e/* , position = 0 */){var t=a(this,e,o),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},
/***/"00b4":
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4` since it's moved to entry points
n("ac1f");var r,i,a=n("23e7"),o=n("c65b"),s=n("1626"),c=n("825a"),l=n("577e"),u=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),h=/./.test;
// `RegExp.prototype.test` method
// https://tc39.es/ecma262/#sec-regexp.prototype.test
a({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=c(this),n=l(e),r=t.exec;if(!s(r))return o(h,t,n);var i=o(r,t,n);return null!==i&&(c(i),!0)}})},
/***/"00ee":
/***/function(e,t,n){"use strict";var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},
/***/"00fd":
/***/function(e,t,n){var r=n("9e69"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;
/** Used for built-in method references. */e.exports=
/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},
/***/"019f":
/***/function(e,t,n){
// 7.1.1 ToPrimitive(input [, PreferredType])
var r=n("9fe8");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},
/***/"01b4":
/***/function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},
/***/"01c2":
/***/function(e,t,n){"use strict";
/* harmony default export */t.a={placeholder:"Select time"}},
/***/"0209":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("cffc")(2);r(r.P+r.F*!n("55c7")([].filter,!0),"Array",{
// 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
filter:function(e/* , thisArg */){return i(this,e,arguments[1])}})},
/***/"02ca":
/***/function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1})}function i(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(t=e))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);return c(this,t?(n=o(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function f(){if(d.url)window.location.href=d.url;else if(d.rewriteHTML)try{document.documentElement.innerHTML=d.rewriteHTML}catch(e){document.documentElement.innerText=d.rewriteHTML}else{try{window.opener=null,window.open("","_self"),window.close(),window.history.back()}catch(e){}setTimeout((function(){window.location.href=d.timeOutUrl||"https://theajack.github.io/disable-devtool/404.html?h=".concat(encodeURIComponent(location.host))}),500)}}var d={md5:"",ondevtoolopen:f,ondevtoolclose:null,url:"",timeOutUrl:"",tkName:"ddtk",interval:500,disableMenu:!0,stopIntervalTime:5e3,clearIntervalWhenDevOpenTrigger:!1,detectors:[0,1,3,4,5,6,7],clearLog:!0,disableSelect:!1,disableCopy:!1,disableCut:!1,disablePaste:!1,ignore:null,disableIframeParents:!0,seo:!0,rewriteHTML:""},p=["detectors","ondevtoolclose","ignore"];function g(t){var n,r=0<arguments.length&&void 0!==t?t:{};for(n in d){var i=n;void 0===r[i]||e(d[i])!==e(r[i])&&-1===p.indexOf(i)||(d[i]=r[i])}"function"==typeof d.ondevtoolclose&&!0===d.clearIntervalWhenDevOpenTrigger&&(d.clearIntervalWhenDevOpenTrigger=!1)}function m(){return(new Date).getTime()}function v(e){var t=m();return e(),m()-t}function y(e,t){function n(n){return function(){e&&e();var r=n.apply(void 0,arguments);return t&&t(),r}}var r=window.alert,i=window.confirm,a=window.prompt;try{window.alert=n(r),window.confirm=n(i),window.prompt=n(a)}catch(n){}}var A,b,w,x={iframe:!1,pc:!1,qqBrowser:!1,firefox:!1,macos:!1,edge:!1,oldEdge:!1,ie:!1,iosChrome:!1,iosEdge:!1,chrome:!1,seoBot:!1,mobile:!1};function C(){function e(e){return-1!==t.indexOf(e)}var t=navigator.userAgent.toLowerCase(),n=function(){var e,t=(e=navigator).platform;if("number"==typeof(e=e.maxTouchPoints))return 1<e;if("string"==typeof t){if(e=t.toLowerCase(),/(mac|win)/i.test(e))return!1;if(/(android|iphone|ipad|ipod|arch)/i.test(e))return!0}return/(iphone|ipad|ipod|ios|android)/i.test(navigator.userAgent.toLowerCase())}(),r=!!window.top&&window!==window.top,i=!n,a=e("qqbrowser"),o=e("firefox"),s=e("macintosh"),c=e("edge"),l=c&&!e("chrome"),u=l||e("trident")||e("msie"),h=e("crios"),f=e("edgios"),d=e("chrome")||h,p=!n&&/(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome\-lighthouse|moto g power)/i.test(t);Object.assign(x,{iframe:r,pc:i,qqBrowser:a,firefox:o,macos:s,edge:c,oldEdge:l,ie:u,iosChrome:h,iosEdge:f,chrome:d,seoBot:p,mobile:n})}function _(){for(var e=function(){for(var e={},t=0;t<500;t++)e["".concat(t)]="".concat(t);return e}(),t=[],n=0;n<50;n++)t.push(e);return t}function I(){d.clearLog&&w()}var E="",k=!1;function S(){var e=d.ignore;if(e){if("function"==typeof e)return e();if(0!==e.length){var t=location.href;if(E===t)return k;E=t;var n,r=!1,i=h(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("string"==typeof a){if(-1!==t.indexOf(a)){r=!0;break}}else if(a.test(t)){r=!0;break}}}catch(e){i.e(e)}finally{i.f()}return k=r}}}var B=function(){return!1};function M(e){var t,n,r=74,i=73,a=85,o=83,s=123,c=x.macos?function(e,t){return e.metaKey&&e.altKey&&(t===i||t===r)}:function(e,t){return e.ctrlKey&&e.shiftKey&&(t===i||t===r)},l=x.macos?function(e,t){return e.metaKey&&e.altKey&&t===a||e.metaKey&&t===o}:function(e,t){return e.ctrlKey&&(t===o||t===a)};e.addEventListener("keydown",(function(t){var n=(t=t||e.event).keyCode||t.which;if(n===s||c(t,n)||l(t,n))return O(e,t)}),!0),t=e,d.disableMenu&&t.addEventListener("contextmenu",(function(e){if("touch"!==e.pointerType)return O(t,e)})),n=e,d.disableSelect&&T(n,"selectstart"),n=e,d.disableCopy&&T(n,"copy"),n=e,d.disableCut&&T(n,"cut"),n=e,d.disablePaste&&T(n,"paste")}function T(e,t){e.addEventListener(t,(function(t){return O(e,t)}))}function O(e,t){if(!S()&&!B())return(t=t||e.event).returnValue=!1,t.preventDefault(),!1}var D,P=!1,L={};function Q(e){L[e]=!1}function R(){for(var e in L)if(L[e])return P=!0;return P=!1}(ee=D=D||{})[ee.Unknown=-1]="Unknown",ee[ee.RegToString=0]="RegToString",ee[ee.DefineId=1]="DefineId",ee[ee.Size=2]="Size",ee[ee.DateToString=3]="DateToString",ee[ee.FuncToString=4]="FuncToString",ee[ee.Debugger=5]="Debugger",ee[ee.Performance=6]="Performance",ee[ee.DebugLib=7]="DebugLib";var j=function(){function e(n){var r=n.type;n=void 0===(n=n.enabled)||n,t(this,e),this.type=D.Unknown,this.enabled=!0,this.type=r,this.enabled=n,this.enabled&&(r=this,H.push(r),this.init())}return r(e,[{key:"onDevToolOpen",value:function(){var e;d.clearIntervalWhenDevOpenTrigger&&V(),window.clearTimeout(z),d.ondevtoolopen(this.type,f),e=this.type,L[e]=!0}},{key:"init",value:function(){}}]),e}(),N=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.DebugLib})}return r(n,[{key:"init",value:function(){}},{key:"detect",value:function(){var e;(!0===(null==(e=null==(e=window.eruda)?void 0:e._devTools)?void 0:e._isShow)||window._vcOrigConsole&&window.document.querySelector("#__vconsole.vc-toggle"))&&this.onDevToolOpen()}}],[{key:"isUsing",value:function(){return!!window.eruda||!!window._vcOrigConsole}}]),n}(),F=0,z=0,H=[],U=0;function G(e){function t(){l=!0}function n(){l=!1}var r,i,a,o,s,c,l=!1;function u(){(c[o]===a?i:r)()}y(t,n),r=n,i=t,void 0!==(c=document).hidden?(a="hidden",s="visibilitychange",o="visibilityState"):void 0!==c.mozHidden?(a="mozHidden",s="mozvisibilitychange",o="mozVisibilityState"):void 0!==c.msHidden?(a="msHidden",s="msvisibilitychange",o="msVisibilityState"):void 0!==c.webkitHidden&&(a="webkitHidden",s="webkitvisibilitychange",o="webkitVisibilityState"),c.removeEventListener(s,u,!1),c.addEventListener(s,u,!1),F=window.setInterval((function(){if(!(e.isSuspend||l||S())){var t,n,r=h(H);try{for(r.s();!(t=r.n()).done;){var i=t.value;Q(i.type),i.detect(U++)}}catch(t){r.e(t)}finally{r.f()}I(),"function"==typeof d.ondevtoolclose&&(n=P,!R()&&n&&d.ondevtoolclose())}}),d.interval),z=setTimeout((function(){x.pc||N.isUsing()||V()}),d.stopIntervalTime)}function V(){window.clearInterval(F)}var W=8;function q(e){for(var t=function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,l=i,u=a;n=K(n,r,i,a,e[o+0],7,-680876936),a=K(a,n,r,i,e[o+1],12,-389564586),i=K(i,a,n,r,e[o+2],17,606105819),r=K(r,i,a,n,e[o+3],22,-1044525330),n=K(n,r,i,a,e[o+4],7,-176418897),a=K(a,n,r,i,e[o+5],12,1200080426),i=K(i,a,n,r,e[o+6],17,-1473231341),r=K(r,i,a,n,e[o+7],22,-45705983),n=K(n,r,i,a,e[o+8],7,1770035416),a=K(a,n,r,i,e[o+9],12,-1958414417),i=K(i,a,n,r,e[o+10],17,-42063),r=K(r,i,a,n,e[o+11],22,-1990404162),n=K(n,r,i,a,e[o+12],7,1804603682),a=K(a,n,r,i,e[o+13],12,-40341101),i=K(i,a,n,r,e[o+14],17,-1502002290),n=$(n,r=K(r,i,a,n,e[o+15],22,1236535329),i,a,e[o+1],5,-165796510),a=$(a,n,r,i,e[o+6],9,-1069501632),i=$(i,a,n,r,e[o+11],14,643717713),r=$(r,i,a,n,e[o+0],20,-373897302),n=$(n,r,i,a,e[o+5],5,-701558691),a=$(a,n,r,i,e[o+10],9,38016083),i=$(i,a,n,r,e[o+15],14,-660478335),r=$(r,i,a,n,e[o+4],20,-405537848),n=$(n,r,i,a,e[o+9],5,568446438),a=$(a,n,r,i,e[o+14],9,-1019803690),i=$(i,a,n,r,e[o+3],14,-187363961),r=$(r,i,a,n,e[o+8],20,1163531501),n=$(n,r,i,a,e[o+13],5,-1444681467),a=$(a,n,r,i,e[o+2],9,-51403784),i=$(i,a,n,r,e[o+7],14,1735328473),n=J(n,r=$(r,i,a,n,e[o+12],20,-1926607734),i,a,e[o+5],4,-378558),a=J(a,n,r,i,e[o+8],11,-2022574463),i=J(i,a,n,r,e[o+11],16,1839030562),r=J(r,i,a,n,e[o+14],23,-35309556),n=J(n,r,i,a,e[o+1],4,-1530992060),a=J(a,n,r,i,e[o+4],11,1272893353),i=J(i,a,n,r,e[o+7],16,-155497632),r=J(r,i,a,n,e[o+10],23,-1094730640),n=J(n,r,i,a,e[o+13],4,681279174),a=J(a,n,r,i,e[o+0],11,-358537222),i=J(i,a,n,r,e[o+3],16,-722521979),r=J(r,i,a,n,e[o+6],23,76029189),n=J(n,r,i,a,e[o+9],4,-640364487),a=J(a,n,r,i,e[o+12],11,-421815835),i=J(i,a,n,r,e[o+15],16,530742520),n=X(n,r=J(r,i,a,n,e[o+2],23,-995338651),i,a,e[o+0],6,-198630844),a=X(a,n,r,i,e[o+7],10,1126891415),i=X(i,a,n,r,e[o+14],15,-1416354905),r=X(r,i,a,n,e[o+5],21,-57434055),n=X(n,r,i,a,e[o+12],6,1700485571),a=X(a,n,r,i,e[o+3],10,-1894986606),i=X(i,a,n,r,e[o+10],15,-1051523),r=X(r,i,a,n,e[o+1],21,-2054922799),n=X(n,r,i,a,e[o+8],6,1873313359),a=X(a,n,r,i,e[o+15],10,-30611744),i=X(i,a,n,r,e[o+6],15,-1560198380),r=X(r,i,a,n,e[o+13],21,1309151649),n=X(n,r,i,a,e[o+4],6,-145523070),a=X(a,n,r,i,e[o+11],10,-1120210379),i=X(i,a,n,r,e[o+2],15,718787259),r=X(r,i,a,n,e[o+9],21,-343485551),n=Z(n,s),r=Z(r,c),i=Z(i,l),a=Z(a,u)}return Array(n,r,i,a)}(function(e){for(var t=Array(),n=(1<<W)-1,r=0;r<e.length*W;r+=W)t[r>>5]|=(e.charCodeAt(r/W)&n)<<r%32;return t}(e),e.length*W),n="0123456789abcdef",r="",i=0;i<4*t.length;i++)r+=n.charAt(t[i>>2]>>i%4*8+4&15)+n.charAt(t[i>>2]>>i%4*8&15);return r}function Y(e,t,n,r,i,a){return Z((t=Z(Z(t,e),Z(r,a)))<<i|t>>>32-i,n)}function K(e,t,n,r,i,a,o){return Y(t&n|~t&r,e,t,i,a,o)}function $(e,t,n,r,i,a,o){return Y(t&r|n&~r,e,t,i,a,o)}function J(e,t,n,r,i,a,o){return Y(t^n^r,e,t,i,a,o)}function X(e,t,n,r,i,a,o){return Y(n^(t|~r),e,t,i,a,o)}function Z(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var ee=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.RegToString,enabled:x.qqBrowser||x.firefox})}return r(n,[{key:"init",value:function(){var e=this;this.lastTime=0,this.reg=/./,A(this.reg),this.reg.toString=function(){var t;return x.qqBrowser?(t=(new Date).getTime(),e.lastTime&&t-e.lastTime<100?e.onDevToolOpen():e.lastTime=t):x.firefox&&e.onDevToolOpen(),""}}},{key:"detect",value:function(){A(this.reg)}}]),n}(),te=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.DefineId})}return r(n,[{key:"init",value:function(){var e=this;this.div=document.createElement("div"),this.div.__defineGetter__("id",(function(){e.onDevToolOpen()})),Object.defineProperty(this.div,"id",{get:function(){e.onDevToolOpen()}})}},{key:"detect",value:function(){A(this.div)}}]),n}(),ne=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.Size,enabled:!x.iframe&&!x.edge})}return r(n,[{key:"init",value:function(){var e=this;this.checkWindowSizeUneven(),window.addEventListener("resize",(function(){setTimeout((function(){e.checkWindowSizeUneven()}),100)}),!0)}},{key:"detect",value:function(){}},{key:"checkWindowSizeUneven",value:function(){if(!1!==(t=function(){if(re(window.devicePixelRatio))return window.devicePixelRatio;var e=window.screen;return!(re(e)||!e.deviceXDPI||!e.logicalXDPI)&&e.deviceXDPI/e.logicalXDPI}())){var e=200<window.outerWidth-window.innerWidth*t,t=300<window.outerHeight-window.innerHeight*t;if(e||t)return this.onDevToolOpen(),!1;Q(this.type)}return!0}}]),n}();function re(e){return null!=e}var ie,ae=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.DateToString,enabled:!x.iosChrome&&!x.iosEdge})}return r(n,[{key:"init",value:function(){var e=this;this.count=0,this.date=new Date,this.date.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,A(this.date),I(),2<=this.count&&this.onDevToolOpen()}}]),n}(),oe=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.FuncToString,enabled:!x.iosChrome&&!x.iosEdge})}return r(n,[{key:"init",value:function(){var e=this;this.count=0,this.func=function(){},this.func.toString=function(){return e.count++,""}}},{key:"detect",value:function(){this.count=0,A(this.func),I(),2<=this.count&&this.onDevToolOpen()}}]),n}(),se=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.Debugger,enabled:x.iosChrome||x.iosEdge})}return r(n,[{key:"detect",value:function(){var e=m();100<m()-e&&this.onDevToolOpen()}}]),n}(),ce=function(){a(n,j);var e=l(n);function n(){return t(this,n),e.call(this,{type:D.Performance,enabled:x.chrome||!x.mobile})}return r(n,[{key:"init",value:function(){this.maxPrintTime=0,this.largeObjectArray=_()}},{key:"detect",value:function(){var e=this,t=v((function(){b(e.largeObjectArray)})),n=v((function(){A(e.largeObjectArray)}));if(this.maxPrintTime=Math.max(this.maxPrintTime,n),I(),0===t||0===this.maxPrintTime)return!1;t>10*this.maxPrintTime&&this.onDevToolOpen()}}]),n}(),le=(i(ie={},D.RegToString,ee),i(ie,D.DefineId,te),i(ie,D.Size,ne),i(ie,D.DateToString,ae),i(ie,D.FuncToString,oe),i(ie,D.Debugger,se),i(ie,D.Performance,ce),i(ie,D.DebugLib,N),ie),ue=Object.assign((function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return{success:!e,reason:e}}var n;if(ue.isRunning)return t("already running");if(C(),n=window.console||{log:function(){},table:function(){},clear:function(){}},w=x.ie?(A=function(){return n.log.apply(n,arguments)},b=function(){return n.table.apply(n,arguments)},function(){return n.clear()}):(A=n.log,b=n.table,n.clear),g(e),d.md5&&q(function(e){var t=window.location.search,n=window.location.hash;return""!==(t=""===t&&""!==n?"?".concat(n.split("?")[1]):t)&&void 0!==t&&(n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),null!=(e=t.substr(1).match(n)))?unescape(e[2]):""}(d.tkName))===d.md5)return t("token passed");if(d.seo&&x.seoBot)return t("seobot");ue.isRunning=!0,G(ue);var r=ue,i=(B=function(){return r.isSuspend},window.top),a=window.parent;if(M(window),d.disableIframeParents&&i&&a&&i!==window){for(;a!==i;)M(a),a=a.parent;M(i)}return("all"===d.detectors?Object.keys(le):d.detectors).forEach((function(e){new le[e]})),t()}),{isRunning:!1,isSuspend:!1,md5:q,version:"0.3.8",DetectorType:D,isDevToolOpened:R});return ee=function(){if("undefined"==typeof window||!window.document)return null;var e=document.querySelector("[disable-devtool-auto]");if(!e)return null;var t=["disable-menu","disable-select","disable-copy","disable-cut","disable-paste","clear-log"],n=["interval"],r={};return["md5","url","tk-name","detectors"].concat(t,n).forEach((function(i){var a=e.getAttribute(i);null!==a&&(-1!==n.indexOf(i)?a=parseInt(a):-1!==t.indexOf(i)?a="false"!==a:"detector"===i&&"all"!==a&&(a=a.split(" ")),r[function(e){if(-1===e.indexOf("-"))return e;var t=!1;return e.split("").map((function(e){return"-"===e?(t=!0,""):t?(t=!1,e.toUpperCase()):e})).join("")}(i)]=a)})),r}(),ee&&ue(ee),ue}();
/***/},
/***/"02ea":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("7320");
/* harmony default export */t.a=r.a},
/***/"02ee":
/***/function(e,t,n){"use strict";var r=n("2ce8"),i=n("9fe8"),a=n("09db"),o=[].slice,s={};e.exports=Function.bind||function(e/* , ...args */){var t=r(this),n=o.call(arguments,1),c=function(){var r=n.concat(o.call(arguments));return this instanceof c?function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";
// eslint-disable-next-line no-new-func
s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(t,r.length,r):a(t,r,e)};return i(t.prototype)&&(c.prototype=t.prototype),c}},
/***/"02f0":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],a=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function o(e,n){if(e.eatSpace())return null;var r=e.sol(),i=e.next();if("\\"===i)return e.next(),null;if("'"===i||'"'===i||"`"===i)return n.tokens.unshift(s(i,"`"===i?"quote":"string")),u(e,n);if("#"===i)return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===i)return n.tokens.unshift(l),u(e,n);if("+"===i||"="===i)return"operator";if("-"===i)return e.eat("-"),e.eatWhile(/\w/),"attribute";if(/\d/.test(i)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var a=e.current();return"="===e.peek()&&/\w+/.test(a)?"def":t.hasOwnProperty(a)?t[a]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var a,o=!1;null!=(a=r.next());){if(a===n&&!o){i.tokens.shift();break}if("$"===a&&!o&&"'"!==e&&r.peek()!=n){o=!0,r.backUp(1),i.tokens.unshift(l);break}if(!o&&e!==n&&a===e)return i.tokens.unshift(s(e,t)),u(r,i);if(!o&&/['"]/.test(a)&&!/['"]/.test(e)){i.tokens.unshift(c(a,"string")),r.backUp(1);break}o=!o&&"\\"===a}return t}}function c(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),u(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,a)),n("atom",r),n("keyword",i),n("builtin",a);var l=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),u(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function u(e,t){return(t.tokens[0]||o)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return u(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),
// Apache uses a slightly different Media Type for Shell scripts
// http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
e.defineMIME("application/x-sh","shell")}(n("56b3"));
/***/},
/***/"02f7":
/***/function(e,t,n){
// 21.2.5.3 get RegExp.prototype.flags()
n("c94e")&&"g"!=/./g.flags&&n("2761").f(RegExp.prototype,"flags",{configurable:!0,get:n("66ac")})
/***/},
/***/"0305":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("63bc"),i=function(){try{var e=Object(r.a)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();
/* harmony default export */t.a=i},
/***/"0366":
/***/function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),a=n("40d5"),o=r(r.bind);
// optional / simple context binding
e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},
/***/"037e":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"03d6":
/***/function(e,t,n){var r=n("9c0e"),i=n("6ca1"),a=n("39ad")(!1),o=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);
// Don't enum bug & hidden keys
for(;t.length>c;)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},
/***/"03dd":
/***/function(e,t,n){var r=n("eac5"),i=n("57a5"),a=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},
/***/"042d":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"0464":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("41b2"),i=n.n(r);
/* harmony import */
/* harmony default export */t.a=function(e,t){for(var n=i()({},e),r=0;r<t.length;r++){delete n[t[r]]}return n}},
/***/"0497":
/***/function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},
/***/"04f6":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return u}));var r=32,i=7;function a(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function o(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,c=r;s<c;)i(o,e[a=s+c>>>1])<0?c=a:s=a+1;var l=r-s;switch(l){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;l>0;)e[s+l]=e[s+l-1],l--}e[s]=o}}function s(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function c(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function l(e,t){var n,r,a=i,o=0,l=[];function u(u){var h=n[u],f=r[u],d=n[u+1],p=r[u+1];r[u]=f+p,u===o-3&&(n[u+1]=n[u+2],r[u+1]=r[u+2]),o--;var g=c(e[d],e,h,f,0,t);h+=g,0!==(f-=g)&&0!==(p=s(e[h+f-1],e,d,p,p-1,t))&&(f<=p?function(n,r,o,u){var h=0;for(h=0;h<r;h++)l[h]=e[n+h];var f=0,d=o,p=n;if(e[p++]=e[d++],0==--u){for(h=0;h<r;h++)e[p+h]=l[f+h];return}if(1===r){for(h=0;h<u;h++)e[p+h]=e[d+h];return void(e[p+u]=l[f])}var g,m,v,y=a;for(;;){g=0,m=0,v=!1;do{if(t(e[d],l[f])<0){if(e[p++]=e[d++],m++,g=0,0==--u){v=!0;break}}else if(e[p++]=l[f++],g++,m=0,1==--r){v=!0;break}}while((g|m)<y);if(v)break;do{if(0!==(g=c(e[d],l,f,r,0,t))){for(h=0;h<g;h++)e[p+h]=l[f+h];if(p+=g,f+=g,(r-=g)<=1){v=!0;break}}if(e[p++]=e[d++],0==--u){v=!0;break}if(0!==(m=s(l[f],e,d,u,0,t))){for(h=0;h<m;h++)e[p+h]=e[d+h];if(p+=m,d+=m,0===(u-=m)){v=!0;break}}if(e[p++]=l[f++],1==--r){v=!0;break}y--}while(g>=i||m>=i);if(v)break;y<0&&(y=0),y+=2}if((a=y)<1&&(a=1),1===r){for(h=0;h<u;h++)e[p+h]=e[d+h];e[p+u]=l[f]}else{if(0===r)throw new Error;for(h=0;h<r;h++)e[p+h]=l[f+h]}}(h,f,d,p):function(n,r,o,u){var h=0;for(h=0;h<u;h++)l[h]=e[o+h];var f=n+r-1,d=u-1,p=o+u-1,g=0,m=0;if(e[p--]=e[f--],0==--r){for(g=p-(u-1),h=0;h<u;h++)e[g+h]=l[h];return}if(1===u){for(m=(p-=r)+1,g=(f-=r)+1,h=r-1;h>=0;h--)e[m+h]=e[g+h];return void(e[p]=l[d])}var v=a;for(;;){var y=0,A=0,b=!1;do{if(t(l[d],e[f])<0){if(e[p--]=e[f--],y++,A=0,0==--r){b=!0;break}}else if(e[p--]=l[d--],A++,y=0,1==--u){b=!0;break}}while((y|A)<v);if(b)break;do{if(0!==(y=r-c(l[d],e,n,r,r-1,t))){for(r-=y,m=(p-=y)+1,g=(f-=y)+1,h=y-1;h>=0;h--)e[m+h]=e[g+h];if(0===r){b=!0;break}}if(e[p--]=l[d--],1==--u){b=!0;break}if(0!==(A=u-s(e[f],l,0,u,u-1,t))){for(u-=A,m=(p-=A)+1,g=(d-=A)+1,h=0;h<A;h++)e[m+h]=l[g+h];if(u<=1){b=!0;break}}if(e[p--]=e[f--],0==--r){b=!0;break}v--}while(y>=i||A>=i);if(b)break;v<0&&(v=0),v+=2}(a=v)<1&&(a=1);if(1===u){for(m=(p-=r)+1,g=(f-=r)+1,h=r-1;h>=0;h--)e[m+h]=e[g+h];e[p]=l[d]}else{if(0===u)throw new Error;for(g=p-(u-1),h=0;h<u;h++)e[g+h]=l[h]}}(h,f,d,p))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;u(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,u(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function u(e,t,n,i){n||(n=0),i||(i=e.length);var s=i-n;if(!(s<2)){var c=0;if(s<r)o(e,n,i,n+(c=a(e,n,i,t)),t);else{var u=l(e,t),h=function(e){for(var t=0;e>=r;)t|=1&e,e>>=1;return e+t}(s);do{if((c=a(e,n,i,t))<h){var f=s;f>h&&(f=h),o(e,n,n+f,n+c,t),c=f}u.pushRun(n,c),u.mergeRuns(),s-=c,n+=c}while(0!==s);u.forceMergeRuns()}}}
/***/},
/***/"04f7":
/***/function(e,t,n){"use strict";
/* unused harmony export ExternalSource */
/* harmony export (binding) */n.d(t,"b",(function(){return m})),
/* harmony export (binding) */n.d(t,"a",(function(){return v}));
/* harmony import */var r=n("07fd"),i=n("e0d3"),a=n("6d8b"),o=n("2b17"),s=n("b7d9"),c=n("edae"),l=n("ec6f"),u=/** @class */function(){function e(){}return e.prototype.getRawData=function(){
// Only built-in transform available.
throw new Error("not supported")},e.prototype.getRawDataItem=function(e){
// Only built-in transform available.
throw new Error("not supported")},e.prototype.cloneRawData=function(){},
/**
   * @return If dimension not found, return null/undefined.
   */
e.prototype.getDimensionInfo=function(e){},
/**
   * dimensions defined if and only if either:
   * (a) dataset.dimensions are declared.
   * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`).
   * If dimensions are defined, `dimensionInfoAll` is corresponding to
   * the defined dimensions.
   * Otherwise, `dimensionInfoAll` is determined by data columns.
   * @return Always return an array (even empty array).
   */
e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},
/**
   * Only support by dimension index.
   * No need to support by dimension name in transform function,
   * because transform function is not case-specific, no need to use name literally.
   */
e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Object(s.d)(e,t)},e}();
/* harmony import */function h(e){if(!A(e.sourceFormat)){0,Object(c.c)("")}return e.data}function f(e){var t=e.sourceFormat,n=e.data;if(!A(t)){0,Object(c.c)("")}if(t===r.c){for(var i=[],o=0,s=n.length;o<s;o++)
// Not strictly clone for performance
i.push(n[o].slice());return i}if(t===r.e){for(i=[],o=0,s=n.length;o<s;o++)
// Not strictly clone for performance
i.push(Object(a.extend)({},n[o]));return i}}function d(e,t,n){if(null!=n)
// Keep the same logic as `List::getDimension` did.
return Object(a.isNumber)(n)||!isNaN(n)&&!Object(a.hasOwn)(t,n)?e[n]:Object(a.hasOwn)(t,n)?t[n]:void 0}function p(e){return Object(a.clone)(e)}var g=Object(a.createHashMap)();function m(e){var t=(e=Object(a.clone)(e)).type;t||Object(c.c)("");var n=t.split(":");2!==n.length&&Object(c.c)("");
// Namespace 'echarts:xxx' is official namespace, where the transforms should
// be called directly via 'xxx' rather than 'echarts:xxx'.
var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,g.set(t,e)}function v(e,t,n){var r=Object(i.r)(e),a=r.length;a||Object(c.c)("");for(var o=0,s=a;o<s;o++){t=y(r[o],t,n,1===a?null:o),
// piped transform only support single input, except the fist one.
// piped transform only support single output, except the last one.
o!==s-1&&(t.length=Math.max(t.length,1))}return t}function y(e,t,n,
// If `pipeIndex` is null/undefined, no piped transform.
s){t.length||Object(c.c)(""),Object(a.isObject)(e)||Object(c.c)("");var m=e.type,v=g.get(m);v||Object(c.c)("");
// Prepare source
var y=Object(a.map)(t,(function(e){return function(e,t){var n=new u,i=e.data,s=n.sourceFormat=e.sourceFormat,l=e.startIndex;e.seriesLayoutBy!==r.a&&Object(c.c)("");
// [MEMO]
// Create a new dimensions structure for exposing.
// Do not expose all dimension info to users directly.
// Because the dimension is probably auto detected from data and not might reliable.
// Should not lead the transformers to think that is reliable and return it.
// See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.
var g=[],m={},v=e.dimensionsDefine;if(v)Object(a.each)(v,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};g.push(r),
// Users probably do not specify dimension name. For simplicity, data transform
// does not generate dimension name.
null!=n&&(Object(a.hasOwn)(m,n)&&Object(c.c)(""),m[n]=r)}));else for(var y=0;y<e.dimensionsDetectedCount;y++)
// Do not generete name or anything others. The consequence process in
// `transform` or `series` probably have there own name generation strategry.
g.push({index:y});
// Implement public methods:
var A=Object(o.c)(s,r.a);t.__isBuiltIn&&(n.getRawDataItem=function(e){return A(i,l,g,e)},n.getRawData=Object(a.bind)(h,null,e)),n.cloneRawData=Object(a.bind)(f,null,e);var b=Object(o.b)(s,r.a);n.count=Object(a.bind)(b,null,i,l,g);var w=Object(o.d)(s);n.retrieveValue=function(e,t){var n=A(i,l,g,e);return x(n,t)};var x=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=g[t];
// When `dimIndex` is `null`, `rawValueGetter` return the whole item.
return n?w(e,t,n.name):void 0}};return n.getDimensionInfo=Object(a.bind)(d,null,g,m),n.cloneAllDimensionInfo=Object(a.bind)(p,null,g),n}(e,v)})),b=Object(i.r)(v.transform({upstream:y[0],upstreamList:y,config:Object(a.clone)(e.config)}));return Object(a.map)(b,(function(e,n){var i;Object(a.isObject)(e)||Object(c.c)(""),e.data||Object(c.c)(""),A(Object(l.d)(e.data))||Object(c.c)("");var o=t[0];
/**
     * Intuitively, the end users known the content of the original `dataset.source`,
     * calucating the transform result in mind.
     * Suppose the original `dataset.source` is:
     * ```js
     * [
     *     ['product', '2012', '2013', '2014', '2015'],
     *     ['AAA', 41.1, 30.4, 65.1, 53.3],
     *     ['BBB', 86.5, 92.1, 85.7, 83.1],
     *     ['CCC', 24.1, 67.2, 79.5, 86.4]
     * ]
     * ```
     * The dimension info have to be detected from the source data.
     * Some of the transformers (like filter, sort) will follow the dimension info
     * of upstream, while others use new dimensions (like aggregate).
     * Transformer can output a field `dimensions` to define the its own output dimensions.
     * We also allow transformers to ignore the output `dimensions` field, and
     * inherit the upstream dimensions definition. It can reduce the burden of handling
     * dimensions in transformers.
     *
     * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.
     */if(o&&0===n&&!e.dimensions){var s=o.startIndex;
// We copy the header of upstream to the result, because:
// (1) The returned data always does not contain header line and can not be used
// as dimension-detection. In this case we can not use "detected dimensions" of
// upstream directly, because it might be detected based on different `seriesLayoutBy`.
// (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`.
// So the original detected header should be add to the result, otherwise they can not be read.
s&&(e.data=o.data.slice(0,s).concat(e.data)),i={seriesLayoutBy:r.a,sourceHeader:s,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:r.a,sourceHeader:0,dimensions:e.dimensions};return Object(l.b)(e.data,i,null)}))}function A(e){return e===r.c||e===r.e}
/***/},
/***/"04f8":
/***/function(e,t,n){"use strict";
/* eslint-disable es/no-symbol -- required for testing */var r=n("1212"),i=n("d039"),a=n("cfe9").String;
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");
// Chrome 38 Symbol has incorrect toString conversion
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
// of course, fail.
return!a(e)||!(Object(e)instanceof Symbol)||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
!Symbol.sham&&r&&r<41}))},
/***/"04fa":
/***/function(e,t,n){for(var r=n("21d0"),i=n("5a5d"),a=n("77ea"),o=n("93e0"),s=n("0713"),c=n("c053"),l=n("de24"),u=l("iterator"),h=l("toStringTag"),f=c.Array,d={CSSRuleList:!0,// TODO: Not spec compliant, should be false.
CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,// TODO: Not spec compliant, should be false.
MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,// TODO: Not spec compliant, should be false.
TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),g=0;g<p.length;g++){var m,v=p[g],y=d[v],A=o[v],b=A&&A.prototype;if(b&&(b[u]||s(b,u,f),b[h]||s(b,h,v),c[v]=f,y))for(m in r)b[m]||a(b,m,r[m],!0)}
/***/},
/***/"04fb":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7037")),a=r(n("970b"));n("0ca1");var o=r(n("9886")),s=n("5557"),c=n("a736"),l=function e(t){if((0,a.default)(this,e),!t)return!1;var n=t.clientWidth,r=t.clientHeight,i=document.createElement("canvas");i.setAttribute("width",n),i.setAttribute("height",r),t.appendChild(i);var s={container:t,canvas:i,render:new o.default(i),option:null};Object.assign(this,s)};
/**
 * @description Set chart option
 * @param {Object} option Chart option
 * @param {Boolean} animationEnd Execute animationEnd
 * @return {Undefined} No return
 */
t.default=l,l.prototype.setOption=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||"object"!==(0,i.default)(e))return!1;t&&this.render.graphs.forEach((function(e){return e.animationEnd()}));var n=(0,s.deepClone)(e,!0);(0,c.mergeColor)(this,n),(0,c.grid)(this,n),(0,c.axis)(this,n),(0,c.radarAxis)(this,n),(0,c.title)(this,n),(0,c.bar)(this,n),(0,c.line)(this,n),(0,c.pie)(this,n),(0,c.radar)(this,n),(0,c.gauge)(this,n),(0,c.legend)(this,n),this.option=e,this.render.launchAnimation()},
/**
 * @description Resize chart
 * @return {Undefined} No return
 */
l.prototype.resize=function(){var e=this.container,t=this.canvas,n=this.render,r=this.option,i=e.clientWidth,a=e.clientHeight;t.setAttribute("width",i),t.setAttribute("height",a),n.area=[i,a],this.setOption(r)}},
/***/"050c":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return i.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return i.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return a.default}}),t.default=void 0;var i=n("2db9"),a=r(n("ae10")),o={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:a.default};t.default=o},
/***/"051b":
/***/function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},
/***/"057f":
/***/function(e,t,n){"use strict";
/* eslint-disable es/no-object-getownpropertynames -- safe */var r=n("c6b6"),i=n("fc6a"),a=n("241c").f,o=n("f36a"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return a(e)}catch(e){return o(s)}}(e):a(i(e))}},
/***/"05f5":
/***/function(e,t,n){var r=n("7a41"),i=n("ef08").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},
/***/"0621":
/***/function(e,t,n){var r=n("9e69"),i=n("d370"),a=n("6747"),o=r?r.isConcatSpreadable:void 0;
/** Built-in value references. */e.exports=
/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},
/***/"0635":
/***/function(e,t,n){
// 19.1.2.12 Object.isFrozen(O)
var r=n("9fe8");n("0a66")("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},
/***/"0643":
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("e9f5")},
/***/"0644":
/***/function(e,t,n){var r=n("3818");
/** Used to compose bitmasks for cloning. */e.exports=
/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function(e){return r(e,5)}},
/***/"0655":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o}));
/* harmony import */var r=n("8728"),i=1e-8;function a(e,t){return Math.abs(e-t)<i}function o(e,t,n){var i=0,o=e[0];if(!o)return!1;for(var s=1;s<e.length;s++){var c=e[s];i+=Object(r.a)(o[0],o[1],c[0],c[1],t,n),o=c}var l=e[0];return a(o[0],l[0])&&a(o[1],l[1])||(i+=Object(r.a)(o[0],o[1],l[0],l[1],t,n)),0!==i}
/***/},
/***/"066b":
/***/function(e,t,n){
// 20.1.2.10 Number.MIN_SAFE_INTEGER
var r=n("f083");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},
/***/"0676":
/***/function(e,t,n){n("d9e2"),e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"0680":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.axis=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,o=t.series,f=[];n&&r&&o&&(f=function(e,t){var n,r,i=[],a=[];e instanceof Array?(n=i).push.apply(n,(0,s.default)(e)):i.push(e);t instanceof Array?(r=a).push.apply(r,(0,s.default)(t)):a.push(t);return i.splice(2),a.splice(2),i=i.map((function(e,t){return d(d({},e),{},{index:t,axis:"x"})})),a=a.map((function(e,t){return d(d({},e),{},{index:t,axis:"y"})})),[].concat((0,s.default)(i),(0,s.default)(a))}(n,r),f=function(e){var t=e.filter((function(e){return"x"===e.axis})),n=e.filter((function(e){return"y"===e.axis}));return t=t.map((function(e){return(0,u.deepMerge)((0,h.deepClone)(l.xAxisConfig),e)})),n=n.map((function(e){return(0,u.deepMerge)((0,h.deepClone)(l.yAxisConfig),e)})),[].concat((0,s.default)(t),(0,s.default)(n))}(f),f=function(e){var t=e.filter((function(e){return"value"===e.data})),n=e.filter((function(e){return"value"!==e.data}));return t.forEach((function(e){"boolean"!=typeof e.boundaryGap&&(e.boundaryGap=!1)})),n.forEach((function(e){"boolean"!=typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,s.default)(t),(0,s.default)(n))}(f=f.filter((function(e){return e.show}))),f=function(e,t){var n=e.filter((function(e){return"value"===e.data})),r=e.filter((function(e){return e.data instanceof Array}));return n=function(e,t){return e.map((function(e){var n=function(e,t){if(t=t.filter((function(e){var t=e.show,n=e.type;return!1!==t&&"pie"!==n})),0===t.length)return[0,0];var n=e.index,r=e.axis;t=function(e){var t=(0,h.deepClone)(e,!0);return e.forEach((function(n,r){var i=(0,u.mergeSameStackData)(n,e);t[r].data=i})),t}(t);var i=r+"Axis",a=t.filter((function(e){return e[i]===n}));a.length||(a=t);return function(e){if(!e)return;var t=Math.min.apply(Math,(0,s.default)(e.map((function(e){var t=e.data;return Math.min.apply(Math,(0,s.default)((0,u.filterNonNumber)(t)))})))),n=Math.max.apply(Math,(0,s.default)(e.map((function(e){var t=e.data;return Math.max.apply(Math,(0,s.default)((0,u.filterNonNumber)(t)))}))));return[t,n]}(a)}(e,t),r=function(e,t){var n=e.min,r=e.max,o=e.axis,s=(0,a.default)(t,2),c=s[0],l=s[1],u=(0,i.default)(n),h=(0,i.default)(r);y(n)||(n=p[o+"AxisConfig"].min,u="string");y(r)||(r=p[o+"AxisConfig"].max,h="string");if("string"===u){var f=v(n=parseInt(c-g(c*parseFloat(n)/100)));n=parseFloat((n/f-.1).toFixed(1))*f}if("string"===h){var d=v(r=parseInt(l+g(l*parseFloat(r)/100)));r=parseFloat((r/d+.1).toFixed(1))*d}return[n,r]}(e,n),o=(0,a.default)(r,2),c=o[0],l=o[1],f=function(e,t,n){var r=n.interval,i=n.minInterval,a=n.maxInterval,o=n.splitNumber,s=n.axis,c=p[s+"AxisConfig"];"number"!=typeof r&&(r=c.interval);"number"!=typeof i&&(i=c.minInterval);"number"!=typeof a&&(a=c.maxInterval);"number"!=typeof o&&(o=c.splitNumber);if("number"==typeof r)return r;var l=parseInt((t-e)/(o-1));l.toString().length>1&&(l=parseInt(l.toString().replace(/\d$/,"0")));0===l&&(l=1);return"number"==typeof i&&l<i?i:"number"==typeof a&&l>a?a:l}(c,l,e),m=e.axisLabel.formatter,b=[];return b=c<0&&l>0?function(e,t,n){var r=[],i=[],a=0,o=0;do{r.push(a-=n)}while(a>e);do{i.push(o+=n)}while(o<t);return[].concat((0,s.default)(r.reverse()),[0],(0,s.default)(i))}(c,l,f):function(e,t,n){var r=[e],i=e;do{r.push(i+=n)}while(i<t);return r}(c,l,f),b=b.map((function(e){return parseFloat(e.toFixed(2))})),d(d({},e),{},{maxValue:b.slice(-1)[0],minValue:b[0],label:A(b,m)})}))}(n,t),r=function(e){return e.map((function(e){var t=e.data,n=e.axisLabel.formatter;return d(d({},e),{},{label:A(t,n)})}))}(r),[].concat((0,s.default)(n),(0,s.default)(r))}(f,o),f=function(e){var t=e.filter((function(e){return"x"===e.axis})),n=e.filter((function(e){return"y"===e.axis}));t[0]&&!t[0].position&&(t[0].position=l.xAxisConfig.position);t[1]&&!t[1].position&&(t[1].position="bottom"===t[0].position?"top":"bottom");n[0]&&!n[0].position&&(n[0].position=l.yAxisConfig.position);n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left");return[].concat((0,s.default)(t),(0,s.default)(n))}(f),f=function(e,t){var n=t.gridArea,r=n.x,i=n.y,a=n.w,o=n.h;return e=e.map((function(e){var t=e.position,n=[];return"left"===t?n=[[r,i],[r,i+o]].reverse():"right"===t?n=[[r+a,i],[r+a,i+o]].reverse():"top"===t?n=[[r,i],[r+a,i]]:"bottom"===t&&(n=[[r,i+o],[r+a,i+o]]),d(d({},e),{},{linePosition:n})})),e}(f,e),f=function(e){return e.map((function(e){var t=e.axis,n=e.linePosition,r=e.position,i=e.label,o=e.boundaryGap;"boolean"!=typeof o&&(o=p[t+"AxisConfig"].boundaryGap);var s=i.length,c=(0,a.default)(n,2),l=(0,a.default)(c[0],2),u=l[0],f=l[1],g=(0,a.default)(c[1],2),m=g[0],v=g[1],y=("x"===t?m-u:v-f)/(o?s:s-1),A=new Array(s).fill(0).map((function(e,n){return"x"===t?[u+y*(o?n+.5:n),f]:[u,f+y*(o?n+.5:n)]})),b=function(e,t,n,r,i){var o="x"===e?1:0,s=5;"x"===e&&"top"===n&&(s=-5);"y"===e&&"left"===n&&(s=-5);var c=r.map((function(e){var t=(0,h.deepClone)(e);return t[o]+=s,[(0,h.deepClone)(e),t]}));return t?(o="x"===e?0:1,s=i/2,c.forEach((function(e){var t=(0,a.default)(e,2),n=t[0],r=t[1];n[o]+=s,r[o]+=s})),c):c}(t,o,r,A,y);return d(d({},e),{},{tickPosition:A,tickLinePosition:b,tickGap:y})}))}(f),f=function(e,t){var n=t.gridArea,r=n.w,i=n.h;return e.map((function(e){var t=e.tickLinePosition,n=e.position,o=e.boundaryGap,c=0,l=r;"top"!==n&&"bottom"!==n||(c=1),"top"!==n&&"bottom"!==n||(l=i),"right"!==n&&"bottom"!==n||(l*=-1);var u=t.map((function(e){var t=(0,a.default)(e,1)[0],n=(0,s.default)(t);return n[c]+=l,[(0,s.default)(t),n]}));return o||u.shift(),d(d({},e),{},{splitLinePosition:u})}))}(f=function(e){return e.map((function(e){var t=e.nameGap,n=e.nameLocation,r=e.position,i=e.linePosition,o=(0,a.default)(i,2),c=o[0],l=o[1],u=(0,s.default)(c);"end"===n&&(u=(0,s.default)(l)),"center"===n&&(u[0]=(c[0]+l[0])/2,u[1]=(c[1]+l[1])/2);var h=0;"top"===r&&"center"===n&&(h=1),"bottom"===r&&"center"===n&&(h=1),"left"===r&&"center"!==n&&(h=1),"right"===r&&"center"!==n&&(h=1);var f=t;return"top"===r&&"end"!==n&&(f*=-1),"left"===r&&"start"!==n&&(f*=-1),"bottom"===r&&"start"===n&&(f*=-1),"right"===r&&"end"===n&&(f*=-1),u[h]+=f,d(d({},e),{},{namePosition:u})}))}(f),e));(0,c.doUpdate)({chart:e,series:f,key:"axisLine",getGraphConfig:b}),(0,c.doUpdate)({chart:e,series:f,key:"axisTick",getGraphConfig:C}),(0,c.doUpdate)({chart:e,series:f,key:"axisLabel",getGraphConfig:_}),(0,c.doUpdate)({chart:e,series:f,key:"axisName",getGraphConfig:E}),(0,c.doUpdate)({chart:e,series:f,key:"splitLine",getGraphConfig:B}),e.axisData=f};var i=r(n("7037")),a=r(n("278c")),o=r(n("9523")),s=r(n("448a")),c=n("18ad"),l=n("9d85"),u=n("becb"),h=n("5557");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={xAxisConfig:l.xAxisConfig,yAxisConfig:l.yAxisConfig},g=(Math.min,Math.max,Math.abs),m=Math.pow;function v(e){var t=g(e).toString(),n=t.length,r=t.replace(/0*$/g,"").indexOf("0"),i=n-1;return-1!==r&&(i-=r),m(10,i)}function y(e){var t=(0,i.default)(e);return"string"===t&&/^\d+%$/.test(e)||"number"===t}function A(e,t){return t?("string"==typeof t&&(e=e.map((function(e){return t.replace("{value}",e)}))),"function"==typeof t&&(e=e.map((function(e,n){return t({value:e,index:n})}))),e):e}function b(e){var t=e.animationCurve,n=e.animationFrame;return[{name:"polyline",index:e.rLevel,visible:e.axisLine.show,animationCurve:t,animationFrame:n,shape:w(e),style:x(e)}]}function w(e){return{points:e.linePosition}}function x(e){return e.axisLine.style}function C(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=function(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}(e),a=function(e){return e.axisTick.style}(e);return i.map((function(i){return{name:"polyline",index:r,visible:e.axisTick.show,animationCurve:t,animationFrame:n,shape:i,style:a}}))}function _(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=function(e){var t=e.label,n=e.tickPosition,r=e.position;return n.map((function(e,n){return{position:I(e,r),content:t[n].toString()}}))}(e),a=function(e,t){var n=e.position,r=e.axisLabel.style,i=function(e){if("left"===e)return{textAlign:"right",textBaseline:"middle"};if("right"===e)return{textAlign:"left",textBaseline:"middle"};if("top"===e)return{textAlign:"center",textBaseline:"bottom"};if("bottom"===e)return{textAlign:"center",textBaseline:"top"}}(n);r=(0,u.deepMerge)(i,r);var a=t.map((function(e){var t=e.position;return d(d({},r),{},{graphCenter:t})}));return a}(e,i);return i.map((function(i,o){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:t,animationFrame:n,shape:i,style:a[o],setGraphCenter:function(){}}}))}function I(e,t){var n=0,r=10;return"top"!==t&&"bottom"!==t||(n=1),"top"!==t&&"left"!==t||(r=-10),(e=(0,h.deepClone)(e))[n]+=r,e}function E(e){var t=e.animationCurve,n=e.animationFrame;return[{name:"text",index:e.rLevel,animationCurve:t,animationFrame:n,shape:k(e),style:S(e)}]}function k(e){return{content:e.name,position:e.namePosition}}function S(e){var t=e.nameLocation,n=e.position,r=e.nameTextStyle,i=function(e,t){if("top"===e&&"start"===t||"bottom"===e&&"start"===t||"left"===e&&"center"===t)return{textAlign:"right",textBaseline:"middle"};if("top"===e&&"end"===t||"bottom"===e&&"end"===t||"right"===e&&"center"===t)return{textAlign:"left",textBaseline:"middle"};if("top"===e&&"center"===t||"left"===e&&"end"===t||"right"===e&&"end"===t)return{textAlign:"center",textBaseline:"bottom"};if("bottom"===e&&"center"===t||"left"===e&&"start"===t||"right"===e&&"start"===t)return{textAlign:"center",textBaseline:"top"}}(n,t);return(0,u.deepMerge)(i,r)}function B(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=function(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}(e),a=function(e){return e.splitLine.style}
/***/(e);return i.map((function(i){return{name:"polyline",index:r,visible:e.splitLine.show,animationCurve:t,animationFrame:n,shape:i,style:a}}))}},
/***/"06ad":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return v}));
// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/easing.js
var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}},i=r,a=n("6d8b"),o=n("b362"),s=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||a.noop,this.ondestroy=e.ondestroy||a.noop,this.onrestart=e.onrestart||a.noop,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(a.isFunction)(e)?e:i[e]||Object(o.a)(e)},e}(),c=n("41ef"),l=n("7a29"),u=Array.prototype.slice;
/* harmony default export */function h(e,t,n){return(t-e)*n+e}function f(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=h(t[a],n[a],r);return e}function d(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function p(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function g(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function m(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(1===n?i[s]:u.call(i[s]));var c=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function v(e){if(Object(a.isArrayLike)(e)){var t=e.length;if(Object(a.isArrayLike)(e[0])){for(var n=[],r=0;r<t;r++)n.push(u.call(e[r]));return n}return u.call(e)}return e}function y(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function A(e){return 4===e||5===e}function b(e){return 1===e||2===e}var w=[0,0,0,0],x=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,s=r.length,u=!1,h=6,f=t;if(Object(a.isArrayLike)(t)){var d=function(e){return Object(a.isArrayLike)(e&&e[0])?2:1}(t);h=d,(1===d&&!Object(a.isNumber)(t[0])||2===d&&!Object(a.isNumber)(t[0][0]))&&(u=!0)}else if(Object(a.isNumber)(t)&&!Object(a.eqNaN)(t))h=0;else if(Object(a.isString)(t))if(isNaN(+t)){var p=c.parse(t);p&&(f=p,h=3)}else h=0;else if(Object(a.isGradientObject)(t)){var g=Object(a.extend)({},f);g.colorStops=Object(a.map)(t.colorStops,(function(e){return{offset:e.offset,color:c.parse(e.color)}})),Object(l.m)(t)?h=4:Object(l.o)(t)&&(h=5),f=g}0===s?this.valType=h:h===this.valType&&6!==h||(u=!0),this.discrete=this.discrete||u;var m={time:e,value:f,rawValue:t,percent:0};return n&&(m.easing=n,m.easingFunc=Object(a.isFunction)(n)?n:i[n]||Object(o.a)(n)),r.push(m),m},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=b(r),c=A(r),l=0;l<i;l++){var u=n[l],h=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?m(h,f,r):c&&g(h.colorStops,f.colorStops))}if(!o&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var v=n[0].value;for(l=0;l<i;l++)0===r?n[l].additiveValue=n[l].value-v:3===r?n[l].additiveValue=d([],n[l].value,v,-1):b(r)&&(n[l].additiveValue=1===r?d([],n[l].value,v,-1):p([],n[l].value,v,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,s=o?"additiveValue":"value",c=this.valType,l=this.keyframes,u=l.length,d=this.propName,p=3===c,g=this._lastFr,m=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=m(g+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=m(n,u-2)}else{for(n=g;n<u&&!(l[n].percent>t);n++);n=m(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var v=i.percent-r.percent,x=0===v?1:m((t-r.percent)/v,1);i.easingFunc&&(x=i.easingFunc(x));var C=o?this._additiveValue:p?w:e[d];if(!b(c)&&!p||C||(C=this._additiveValue=[]),this.discrete)e[d]=x<1?r.rawValue:i.rawValue;else if(b(c))1===c?f(C,r[s],i[s],x):function(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=h(t[o][s],n[o][s],r)}}(C,r[s],i[s],x);else if(A(c)){var _=r[s],I=i[s],E=4===c;e[d]={type:E?"linear":"radial",x:h(_.x,I.x,x),y:h(_.y,I.y,x),colorStops:Object(a.map)(_.colorStops,(function(e,t){var n=I.colorStops[t];return{offset:h(e.offset,n.offset,x),color:y(f([],e.color,n.color,x))}})),global:I.global},E?(e[d].x2=h(_.x2,I.x2,x),e[d].y2=h(_.y2,I.y2,x)):e[d].r=h(_.r,I.r,x)}else if(p)f(C,r[s],i[s],x),o||(e[d]=y(C));else{var k=h(r[s],i[s],x);o?this._additiveValue=k:e[d]=k}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(c.parse(e[n],w),d(w,w,r,1),e[n]=y(w)):1===t?d(e[n],e[n],r,1):2===t&&p(e[n],e[n],r,1)},e}(),C=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(a.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(a.keys)(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new x(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,h=u[u.length-1];c=h&&h.value,3===l.valType&&c&&(c=y(c))}else c=this._target[o];if(null==c)continue;e>0&&s.addKeyframe(0,v(c),r),this._trackKeys.push(o)}s.addKeyframe(e,v(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],c=this._getAdditiveTrack(a),l=o.keyframes,u=l.length;if(o.prepare(r,c),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var h=l[u-1];h&&(t._target[o.propName]=h.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var f=new s({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(a.map)(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=v(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(a.keys)(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();t.b=C},
/***/"06c5":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3")
/* harmony import */;var r=n("6b75");function i(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}
/***/},
/***/"06cf":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("c65b"),a=n("d1e7"),o=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),u=n("0cfb"),h=Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
t.f=r?h:function(e,t){if(e=s(e),t=c(t),u)try{return h(e,t)}catch(e){/* empty */}if(l(e,t))return o(!i(a.f,e,t),e[t])}},
/***/"06e3":
/***/function(e,t,n){n("1b1e")("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/"0713":
/***/function(e,t,n){var r=n("2761"),i=n("fb32");e.exports=n("c94e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},
/***/"072d":
/***/function(e,t,n){"use strict";
// 19.1.2.1 Object.assign(target, source, ...)
var r=n("0bad"),i=n("9876"),a=n("fed5"),o=n("1917"),s=n("0983"),c=n("9fbb"),l=Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
e.exports=!l||n("4b8b")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(// eslint-disable-line no-unused-vars
var n=s(e),l=arguments.length,u=1,h=a.f,f=o.f;l>u;)for(var d,p=c(arguments[u++]),g=h?i(p).concat(h(p)):i(p),m=g.length,v=0;m>v;)d=g[v++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:l},
/***/"076f":
/***/function(e,t,n){"use strict";var r=n("d77f"),i=n("a87b"),a=n("fef8");
// @@search logic
n("9ed1")("search",1,(function(e,t,n,o){return[
// `String.prototype.search` method
// https://tc39.github.io/ecma262/#sec-string.prototype.search
function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},
// `RegExp.prototype[@@search]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
function(e){var t=o(n,e,this);if(t.done)return t.value;var s=r(e),c=String(this),l=s.lastIndex;i(l,0)||(s.lastIndex=0);var u=a(s,c);return i(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]}))},
/***/"07a9":
/***/function(e,t,n){var r=n("4aad"),i=n("6751"),a=n("4b17"),o=n("76dd");
/**
 * Pads `string` on the right side if it's shorter than `length`. Padding
 * characters are truncated if they exceed `length`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.padEnd('abc', 6);
 * // => 'abc   '
 *
 * _.padEnd('abc', 6, '_-');
 * // => 'abc_-_'
 *
 * _.padEnd('abc', 3);
 * // => 'abc'
 */e.exports=function(e,t,n){e=o(e);var s=(t=a(t))?i(e):0;return t&&s<t?e+r(t-s,n):e}},
/***/"07ac":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("6f53").values;
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
r({target:"Object",stat:!0},{values:function(e){return i(e)}})},
/***/"07c7":
/***/function(e,t){e.exports=
/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function(){return!1}},
/***/"07fa":
/***/function(e,t,n){"use strict";var r=n("50c4");
// `LengthOfArrayLike` abstract operation
// https://tc39.es/ecma262/#sec-lengthofarraylike
e.exports=function(e){return r(e.length)}},
/***/"07fd":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"i",(function(){return i})),
/* harmony export (binding) */n.d(t,"f",(function(){return a})),
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (binding) */n.d(t,"e",(function(){return s})),
/* harmony export (binding) */n.d(t,"d",(function(){return c})),
/* harmony export (binding) */n.d(t,"g",(function(){return l})),
/* harmony export (binding) */n.d(t,"h",(function(){return u})),
/* harmony export (binding) */n.d(t,"a",(function(){return h})),
/* harmony export (binding) */n.d(t,"b",(function(){return f}));
/* harmony import */var r=n("6d8b"),i=Object(r.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),a="original",o="arrayRows",s="objectRows",c="keyedColumns",l="typedArray",u="unknown",h="column",f="row";
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/},
/***/"0821":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("2ce8"),a=n("42ee"),o=n("f937"),s=[].sort,c=[1,2,3];r(r.P+r.F*(o((function(){
// IE8-
c.sort(void 0)}))||!o((function(){
// V8 bug
c.sort(null);
// Old WebKit
}))||!n("55c7")(s)),"Array",{
// 22.1.3.25 Array.prototype.sort(comparefn)
sort:function(e){return void 0===e?s.call(a(this)):s.call(a(this),i(e))}})},
/***/"083a":
/***/function(e,t,n){"use strict";var r=n("0d51"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},
/***/"0840":
/***/function(e,t,n){n("1b1e")("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/"084e":
/***/function(e,t,n){"use strict";var r=n("9c0c"),i=n("512c"),a=n("0983"),o=n("c4c1"),s=n("6d2f"),c=n("d16a"),l=n("4a47"),u=n("23dd");i(i.S+i.F*!n("8771")((function(e){Array.from(e)})),"Array",{
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from:function(e/* , mapfn = undefined, thisArg = undefined */){var t,n,i,h,f=a(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=u(f);
// if object isn't iterable or it's array with default iterator - use simple case
if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),null==y||d==Array&&s(y))for(n=new d(t=c(f.length));t>v;v++)l(n,v,m?g(f[v],v):f[v]);else for(h=y.call(f),n=new d;!(i=h.next()).done;v++)l(n,v,m?o(h,g,[i.value,v],!0):i.value);return n.length=v,n}})},
/***/"085a":
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083");r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},
/***/"087d":
/***/function(e,t){e.exports=
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},
/***/"08bf":
/***/function(e,t,n){"use strict";
// B.2.3.10 String.prototype.link(url)
n("e681")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},
/***/"08cc":
/***/function(e,t,n){var r=n("1a8c");
/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */e.exports=function(e){return e==e&&!r(e)}},
/***/"0924":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function r(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function i(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function a(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,
// Mark the color has been changed, not from palette anymore
e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r)}}
/***/n.d(t,"a",(function(){return r})),
/* harmony export (binding) */n.d(t,"b",(function(){return i})),
/* harmony export (binding) */n.d(t,"c",(function(){return a}))},
/***/"0983":
/***/function(e,t,n){
// 7.1.13 ToObject(argument)
var r=n("c901");e.exports=function(e){return Object(r(e))}},
/***/"099a":
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},
/***/"09db":
/***/function(e,t){
// fast apply, http://jsperf.lnkit.com/fast-apply/5
e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)};
/***/},
/***/"09ee":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("26ee").a.Uint8Array;
/** Built-in value references. */
/* harmony default export */t.a=r},
/***/"09f4":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_Stack.js + 5 modules
var r=n("a12c");
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
/* harmony default export */var i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},a=n("db72"),o=n("f842"),s=n("9a4b");
// EXTERNAL MODULE: ./node_modules/lodash-es/_assignValue.js
/* harmony default export */var c=
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseAssign.js
/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function(e,t){return e&&Object(o.a)(t,Object(s.a)(t),e)},l=n("e3fa");
// EXTERNAL MODULE: ./node_modules/lodash-es/keysIn.js + 2 modules
/* harmony default export */var u=
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseAssignIn.js
/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function(e,t){return e&&Object(o.a)(t,Object(l.a)(t),e)},h=n("dff1"),f=n("7804"),d=n("8cdf");
// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneBuffer.js
/* harmony default export */var p=
// CONCATENATED MODULE: ./node_modules/lodash-es/_copySymbols.js
/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function(e,t){return Object(o.a)(e,Object(d.a)(e),t)},g=n("b4f1"),m=n("52e7"),v=n("589e"),y=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Object(g.a)(t,Object(d.a)(e)),e=Object(m.a)(e);return t}:v.a;
// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayPush.js
/* harmony default export */var A=
// CONCATENATED MODULE: ./node_modules/lodash-es/_copySymbolsIn.js
/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function(e,t){return Object(o.a)(e,y(e),t)},b=n("4c5c"),w=n("db97");
// EXTERNAL MODULE: ./node_modules/lodash-es/_getAllKeys.js
/* harmony default export */var x=
// CONCATENATED MODULE: ./node_modules/lodash-es/_getAllKeysIn.js
/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function(e){return Object(w.a)(e,l.a,y)},C=n("60ce"),_=Object.prototype.hasOwnProperty;
// EXTERNAL MODULE: ./node_modules/lodash-es/_getTag.js + 3 modules
/* harmony default export */var I=
/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function(e){var t=e.length,n=new e.constructor(t);
// Add properties assigned by `RegExp#exec`.
return t&&"string"==typeof e[0]&&_.call(e,"index")&&(n.index=e.index,n.input=e.input),n},E=n("964c");
// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneArrayBuffer.js
/* harmony default export */var k=
// CONCATENATED MODULE: ./node_modules/lodash-es/_cloneDataView.js
/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function(e,t){var n=t?Object(E.a)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},S=/\w*$/;
// CONCATENATED MODULE: ./node_modules/lodash-es/_cloneRegExp.js
/** Used to match `RegExp` flags from their coerced string values. */
/* harmony default export */var B=
/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t},M=n("ca54"),T=M.a?M.a.prototype:void 0,O=T?T.valueOf:void 0;
// EXTERNAL MODULE: ./node_modules/lodash-es/_Symbol.js
/* harmony default export */var D=
/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function(e){return O?Object(O.call(e)):{}},P=n("1b89");
// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneTypedArray.js
/* harmony default export */var L=
/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Object(E.a)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return k(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(P.a)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return B(e);case"[object Symbol]":return D(e)}},Q=n("8583"),R=n("ff51"),j=n("58e0"),N=n("1147");
// EXTERNAL MODULE: ./node_modules/lodash-es/_initCloneObject.js + 1 modules
/* harmony default export */var F=
/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function(e){return Object(N.a)(e)&&"[object Map]"==Object(C.a)(e)},z=n("a2fb"),H=n("c6eb"),U=H.a&&H.a.isMap,G=U?Object(z.a)(U):F,V=n("2332");
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUnary.js
/* harmony default export */var W=
/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function(e){return Object(N.a)(e)&&"[object Set]"==Object(C.a)(e)},q=H.a&&H.a.isSet,Y=q?Object(z.a)(q):W,K="[object Arguments]",$="[object Function]",J="[object Object]",X={};
// CONCATENATED MODULE: ./node_modules/lodash-es/isSet.js
/* Node.js helper references. */X[K]=X["[object Array]"]=X["[object ArrayBuffer]"]=X["[object DataView]"]=X["[object Boolean]"]=X["[object Date]"]=X["[object Float32Array]"]=X["[object Float64Array]"]=X["[object Int8Array]"]=X["[object Int16Array]"]=X["[object Int32Array]"]=X["[object Map]"]=X["[object Number]"]=X[J]=X["[object RegExp]"]=X["[object Set]"]=X["[object String]"]=X["[object Symbol]"]=X["[object Uint8Array]"]=X["[object Uint8ClampedArray]"]=X["[object Uint16Array]"]=X["[object Uint32Array]"]=!0,X["[object Error]"]=X[$]=X["[object WeakMap]"]=!1;
/* harmony default export */t.a=
/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function e(t,n,o,d,g,m){var v,y=1&n,w=2&n,_=4&n;if(o&&(v=g?o(t,d,g,m):o(t)),void 0!==v)return v;if(!Object(V.a)(t))return t;var E=Object(R.a)(t);if(E){if(v=I(t),!y)return Object(f.a)(t,v)}else{var k=Object(C.a)(t),S=k==$||"[object GeneratorFunction]"==k;if(Object(j.a)(t))return Object(h.a)(t,y);if(k==J||k==K||S&&!g){if(v=w||S?{}:Object(Q.a)(t),!y)return w?A(t,u(v,t)):p(t,c(v,t))}else{if(!X[k])return g?t:{};v=L(t,k,y)}}
// Check for circular references and return its corresponding clone.
m||(m=new r.a);var B=m.get(t);if(B)return B;m.set(t,v),Y(t)?t.forEach((function(r){v.add(e(r,n,o,r,t,m))})):G(t)&&t.forEach((function(r,i){v.set(i,e(r,n,o,i,t,m))}));var M=_?w?x:b.a:w?l.a:s.a,T=E?void 0:M(t);return i(T||t,(function(r,i){T&&(r=t[i=r]),
// Recursively populate clone (susceptible to call stack limits).
Object(a.a)(v,i,e(r,n,o,i,t,m))})),v};
/***/},
/***/"0a06":
/***/function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),a=n("f6b4"),o=n("5270"),s=n("4a7b");
/**
 * Create a new instance of Axios
 *
 * @param {Object} instanceConfig The default config for the instance
 */
function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}
/**
 * Dispatch a request
 *
 * @param {Object} config The config specific for this request (merged with this.defaults)
 */c.prototype.request=function(e){
/*eslint no-param-reassign:0*/
// Allow for axios('example/url'[, config]) a la fetch API
"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},
// Set config.method
(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";
// Hook up interceptors middleware
var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},
// Provide aliases for supported request methods
r.forEach(["delete","get","head","options"],(function(e){
/*eslint func-names:0*/
c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){
/*eslint func-names:0*/
c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=c},
/***/"0a48":
/***/function(e,t,n){
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
var r=n("832c");e.exports=function(e,t){return new(r(e))(t)}},
/***/"0a66":
/***/function(e,t,n){
// most Object methods by ES6 should accept primitives
var r=n("f083"),i=n("0ae2"),a=n("f937");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},
/***/"0ae2":
/***/function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n);// eslint-disable-line no-undef
/***/},
/***/"0ae2f":
/***/function(e,t,n){
// all enumerable object keys, includes symbols
var r=n("9876"),i=n("fed5"),a=n("1917");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),c=a.f,l=0;s.length>l;)c.call(e,o=s[l++])&&t.push(o);return t}},
/***/"0b07":
/***/function(e,t,n){var r=n("34ac"),i=n("3698");
/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},
/***/"0b42":
/***/function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),a=n("861d"),o=n("b622")("species"),s=Array;
// a part of `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
e.exports=function(e){var t;return r(e)&&(t=e.constructor,
// cross-realm fallback
(i(t)&&(t===s||r(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},
/***/"0b43":
/***/function(e,t,n){"use strict";var r=n("04f8");
/* eslint-disable es/no-symbol -- safe */e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},
/***/"0b67":
/***/function(e,t,n){"use strict";
// https://tc39.github.io/String.prototype.matchAll/
var r=n("f083"),i=n("688d"),a=n("6373"),o=n("37a2"),s=n("66ac"),c=RegExp.prototype,l=function(e,t){this._r=e,this._s=t};n("6ada")(l,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),r(r.P,"String",{matchAll:function(e){if(i(this),!o(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in c?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=a(e.lastIndex),new l(r,t)}})},
/***/"0b99":
/***/function(e,t,n){"use strict";var r=n("19fa")(!0);
// 21.1.3.27 String.prototype[@@iterator]()
n("393a")(String,"String",(function(e){this._t=String(e),// target
this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},
/***/"0ba2":
/***/function(e,t,n){"use strict";
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
var r=n("42ee"),i=n("6fc7"),a=n("6373");e.exports=function(e/* , start = 0, end = @length */){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=void 0===c?n:i(c,n);l>s;)t[s++]=e;return t}},
/***/"0bad":
/***/function(e,t,n){
// Thank's IE8 for his funny defineProperty
e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));
/***/},
/***/"0bbe":
/***/function(e,t,n){"use strict";var r=n("d77f"),i=n("42ee"),a=n("6373"),o=n("9b6f"),s=n("6972"),c=n("fef8"),l=Math.max,u=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;
// @@replace logic
n("9ed1")("replace",2,(function(e,t,n,p){return[
// `String.prototype.replace` method
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
function(r,i){var a=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,a,i):n.call(String(a),r,i)},
// `RegExp.prototype[@@replace]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
function(e,t){var i=p(n,e,this,t);if(i.done)return i.value;var h=r(e),f=String(this),d="function"==typeof t;d||(t=String(t));var m=h.global;if(m){var v=h.unicode;h.lastIndex=0}for(var y=[];;){var A=c(h,f);if(null===A)break;if(y.push(A),!m)break;""===String(A[0])&&(h.lastIndex=s(f,a(h.lastIndex),v))}for(var b,w="",x=0,C=0;C<y.length;C++){A=y[C];
// NOTE: This is equivalent to
//   captures = result.slice(1).map(maybeToString)
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
for(var _=String(A[0]),I=l(u(o(A.index),f.length),0),E=[],k=1;k<A.length;k++)E.push(void 0===(b=A[k])?b:String(b));var S=A.groups;if(d){var B=[_].concat(E,I,f);void 0!==S&&B.push(S);var M=String(t.apply(void 0,B))}else M=g(_,f,I,E,S,t);I>=x&&(w+=f.slice(x,I)+M,x=I+_.length)}return w+f.slice(x)}];
// https://tc39.github.io/ecma262/#sec-getsubstitution
function g(e,t,r,a,o,s){var c=r+e.length,l=a.length,u=d;return void 0!==o&&(o=i(o),u=f),n.call(s,u,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=o[i.slice(1,-1)];break;default:// \d\d?
var u=+i;if(0===u)return n;if(u>l){var f=h(u/10);return 0===f?n:f<=l?void 0===a[f-1]?i.charAt(1):a[f-1]+i.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},
/***/"0c47":
/***/function(e,t,n){"use strict";var r=n("cfe9");
// JSON[@@toStringTag] property
// https://tc39.es/ecma262/#sec-json-@@tostringtag
n("d44e")(r.JSON,"JSON",!0)},
/***/"0c63":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/babel-helper-vue-jsx-merge-props/index.js
var r=n("92fa"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("6042"),c=n.n(s),l=n("9b57"),u=n.n(l),h=n("4d26"),f=n.n(h),d=n("3a9b6"),p=n("2adb"),g={primaryColor:"#333",secondaryColor:"#E6E6E6"},m={name:"AntdIcon",props:["type","primaryColor","secondaryColor"],displayName:"IconVue",definitions:new p.a,data:function(){return{twoToneColorPalette:g}},add:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((function(e){m.definitions.set(Object(p.f)(e.name,e.theme),e)}))},clear:function(){m.definitions.clear()},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;if(e){var n=m.definitions.get(e);return n&&"function"==typeof n.icon&&(n=o()({},n,{icon:n.icon(t.primaryColor,t.secondaryColor)})),n}},setTwoToneColors:function(e){var t=e.primaryColor,n=e.secondaryColor;g.primaryColor=t,g.secondaryColor=n||Object(p.c)(t)},getTwoToneColors:function(){return o()({},g)},render:function(e){var t=this.$props,n=t.type,r=t.primaryColor,i=t.secondaryColor,a=void 0,s=g;if(r&&(s={primaryColor:r,secondaryColor:i||Object(p.c)(r)}),Object(p.d)(n))a=n;else if("string"==typeof n&&!(a=m.get(n,s)))
// log(`Could not find icon: ${type}`);
return null;return a?(a&&"function"==typeof a.icon&&(a=o()({},a,{icon:a.icon(s.primaryColor,s.secondaryColor)})),Object(p.b)(e,a.icon,"svg-"+a.name,{attrs:{"data-icon":a.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},on:this.$listeners})):(Object(p.e)("type should be string or icon definiton, but got "+n),null)},
/* istanbul ignore next */
install:function(e){e.component(m.name,m)}},v=m,y=n("4d91"),A=n("8e8e"),b=n.n(A),w=n("daa3"),x=new Set;
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/_util/warning.js + 1 modules
var C=n("6a21"),_={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},I=/-fill$/,E=/-o$/,k=/-twotone$/;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/icon/utils.js
// These props make sure that the SVG behaviours like general text.
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/locale-provider/LocaleReceiver.js
var S=n("e5cd");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/icon/twoTonePrimaryColor.js
function B(e){return v.setTwoToneColors({primaryColor:e})}
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/base/index.js + 2 modules
var M=n("db14");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/icon/index.js
// Initial setting
v.add.apply(v,u()(Object.keys(d).map((function(e){return d[e]})))),B("#1890ff");function T(e,t,n){var r,a=n.$props,s=n.$slots,l=Object(w.k)(n),u=a.type,h=a.component,d=a.viewBox,p=a.spin,g=a.theme,m=a.twoToneColor,y=a.rotate,A=a.tabIndex,b=Object(w.c)(s.default);b=0===b.length?void 0:b,Object(C.a)(Boolean(u||h||b),"Icon","Icon should have `type` prop or `component` prop or `children`.");var x=f()((r={},c()(r,"anticon",!0),c()(r,"anticon-"+u,!!u),r)),S=f()(c()({},"anticon-spin",!!p||"loading"===u)),B=y?{msTransform:"rotate("+y+"deg)",transform:"rotate("+y+"deg)"}:void 0,M={attrs:o()({},_,{viewBox:d}),class:S,style:B};d||delete M.attrs.viewBox;var T=A;void 0===T&&"click"in l&&(T=-1);
// functional component not support nativeOn，https://github.com/vuejs/vue/issues/7526
var O={attrs:{"aria-label":u&&t.icon+": "+u,tabIndex:T},on:l,class:x,staticClass:""};return e("i",O,[function(){
// component > children > type
if(h)return e(h,M,[b]);if(b){Object(C.a)(Boolean(d)||1===b.length&&"use"===b[0].tag,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");var t={attrs:o()({},_),class:S,style:B};return e("svg",i()([t,{attrs:{viewBox:d}}]),[b])}if("string"==typeof u){var n=u;if(g){var r=function(e){var t=null;return I.test(e)?t="filled":E.test(e)?t="outlined":k.test(e)&&(t="twoTone"),t}(u);Object(C.a)(!r||g===r,"Icon","The icon name '"+u+"' already specify a theme '"+r+"', the 'theme' prop '"+g+"' will be ignored.")}return n=function(e,t){var n=e;return"filled"===t?n+="-fill":"outlined"===t?n+="-o":"twoTone"===t?n+="-twotone":Object(C.a)(!1,"Icon","This icon '"+e+"' has unknown theme '"+t+"'"),n}
// For alias or compatibility
(function(e){return e.replace(I,"").replace(E,"").replace(k,"")}(function(e){var t=e;switch(e){case"cross":t="close";break;
// https://github.com/ant-design/ant-design/issues/13007
case"interation":t="interaction";break;
// https://github.com/ant-design/ant-design/issues/16810
case"canlendar":t="calendar";break;
// https://github.com/ant-design/ant-design/issues/17448
case"colum-height":t="column-height"}return Object(C.a)(t===e,"Icon","Icon '"+e+"' was a typo and is now deprecated, please use '"+t+"' instead."),t}(n)),g||"outlined"),e(v,{attrs:{focusable:"false",type:n,primaryColor:m},class:S,style:B})}}()])}var O={name:"AIcon",props:{tabIndex:y.a.number,type:y.a.string,component:y.a.any,viewBox:y.a.any,spin:y.a.bool.def(!1),rotate:y.a.number,theme:y.a.oneOf(["filled","outlined","twoTone"]),twoToneColor:y.a.string,role:y.a.string},render:function(e){var t=this;return e(S.a,{attrs:{componentName:"Icon"},scopedSlots:{default:function(n){return T(e,n,t)}}})},createFromIconfontCN:function(e){var t=e.scriptUrl,n=e.extraCommonProps,r=void 0===n?{}:n;
/**
   * DOM API required.
   * Make sure in browser environment.
   * The Custom Icon will create a <script/>
   * that loads SVG symbols and insert the SVG Element into the document body.
   */if("undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof t&&t.length&&!x.has(t)){var i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),x.add(t),document.body.appendChild(i)}return{functional:!0,name:"AIconfont",props:D.props,render:function(e,t){var n=t.props,i=t.slots,a=t.listeners,o=t.data,s=n.type,c=b()(n,["type"]),l=i().default,u=null;s&&(u=e("use",{attrs:{"xlink:href":"#"+s}})),l&&(u=l);var h=Object(w.x)(r,o,{props:c,on:a});return e(D,h,[u])}}},getTwoToneColor:function(){return v.getTwoToneColors().primaryColor}};O.setTwoToneColor=B,
/* istanbul ignore next */
O.install=function(e){e.use(M.a),e.component(O.name,O)};
/* harmony default export */var D=t.a=O;
/***/},
/***/"0ca1":
/***/function(e,t,n){"use strict";var r=n("4ea4"),i=r(n("9523")),a=r(n("448a")),o=n("9886"),s=n("b06d"),c=n("5557"),l=n("a870"),u=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape;return!["rx","ry","ir","or","startAngle","endAngle"].find((function(e){return"number"!=typeof t[e]}))},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,o=r.ry,s=r.ir,l=r.or,u=r.startAngle,h=r.endAngle,f=r.clockWise;i=parseInt(i)+.5,o=parseInt(o)+.5,n.arc(i,o,s>0?s:0,u,h,!f);var d=(0,c.getCircleRadianPoint)(i,o,l,h).map((function(e){return parseInt(e)+.5})),p=(0,c.getCircleRadianPoint)(i,o,s,u).map((function(e){return parseInt(e)+.5}));n.lineTo.apply(n,(0,a.default)(d)),n.arc(i,o,l>0?l:0,h,u,f),n.lineTo.apply(n,(0,a.default)(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape;return!["rx","ry","r","startAngle","endAngle"].find((function(e){return"number"!=typeof t[e]}))},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.style.gradient;1===(i=i.map((function(e){return(0,l.getColorFromRgbValue)(e)}))).length&&(i=[i[0],i[0]]);var a=i.length-1,o=r.gradientStartAngle,s=r.gradientEndAngle,h=r.startAngle,f=r.endAngle,d=r.r,p=r.rx,g=r.ry;null===o&&(o=h),null===s&&(s=f);var m=(s-o)/a;m===2*Math.PI&&(m=2*Math.PI-.001);for(var v=0;v<a;v++){n.beginPath();var y=(0,c.getCircleRadianPoint)(p,g,d,h+m*v),A=(0,c.getCircleRadianPoint)(p,g,d,h+m*(v+1)),b=(0,u.getLinearGradientColor)(n,y,A,[i[v],i[v+1]]),w=h+m*v,x=h+m*(v+1),C=!1;if(x>f&&(x=f,C=!0),n.arc(p,g,d,w,x),n.strokeStyle=b,n.stroke(),C)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,r=t.content,i=t.position;return n instanceof Array&&"string"==typeof r&&i instanceof Array},draw:function(e,t){var n=e.ctx,r=t.shape,i=r.number,a=r.content,o=r.toFixed,c=r.rowGap,l=r.formatter,u=a.split("{nt}"),h="";u.forEach((function(e,t){var n=i[t];"number"!=typeof n&&(n=""),"number"==typeof n&&(n=n.toFixed(o),"function"==typeof l&&(n=l(n))),h+=e+(n||"")})),s.text.draw({ctx:n},{shape:f(f({},r),{},{content:h,rowGap:c})})}},m={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,r=t.y,i=t.w,a=t.h;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i&&"number"==typeof a},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.x,a=r.y,o=r.w,s=r.h/2;n.strokeStyle=n.fillStyle,n.moveTo(i,a+s),n.lineTo(i+o,a+s),n.lineWidth=1,n.stroke(),n.beginPath();var c=s-10;c<=0&&(c=3),n.arc(i+o/2,a+s,c,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,r=n.x,i=n.y,a=n.w,o=n.h;return(0,c.checkPointIsInRect)(e,r,i,a,o)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.x,a=n.y,o=n.w,s=n.h;r.graphCenter=[i+o/2,a+s/2]}};(0,o.extendNewGraph)("pie",d),(0,o.extendNewGraph)("agArc",p),(0,o.extendNewGraph)("numberText",g),(0,o.extendNewGraph)("lineIcon",m)},
/***/"0ca5":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/* harmony import */var r=n("5a89");const i=new WeakMap;class a extends r.P{constructor(e){super(e),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(e){return this.decoderPath=e,this}setDecoderConfig(e){return this.decoderConfig=e,this}setWorkerLimit(e){return this.workerLimit=e,this}load(e,t,n,i){const a=new r.t(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(e=>{this.parse(e,t,i)}),n,i)}parse(e,t,n){this.decodeDracoFile(e,t,null,null,r.yb).catch(n)}decodeDracoFile(e,t,n,i,a=r.O){const o={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!n,vertexColorSpace:a};return this.decodeGeometry(e,o).then(t)}decodeGeometry(e,t){const n=JSON.stringify(t);
// Check for an existing task using this buffer. A transferred buffer cannot be transferred
// again from this thread.
if(i.has(e)){const t=i.get(e);if(t.key===n)return t.promise;if(0===e.byteLength)
// Technically, it would be possible to wait for the previous task to complete,
// transfer the buffer back, and decode again with the second configuration. That
// is complex, and I don't know of any reason to decode a Draco buffer twice in
// different ways, so this is left unimplemented.
throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}

let r;const a=this.workerNextTaskID++,o=e.byteLength,s=this._getWorker(a,o).then((n=>(r=n,new Promise(((n,i)=>{r._callbacks[a]={resolve:n,reject:i},r.postMessage({type:"decode",id:a,taskConfig:t,buffer:e},[e])}
// this.debug();
))))).then((e=>this._createGeometry(e.geometry)));
// Remove task from the task list.
// Note: replaced '.finally()' with '.catch().then()' block - iOS 11 support (#19416)
return s.catch((()=>!0)).then((()=>{r&&a&&this._releaseTask(r,a)})),
// Cache the task result.
i.set(e,{key:n,promise:s}),s}_createGeometry(e){const t=new r.g;e.index&&t.setIndex(new r.f(e.index.array,1));for(let n=0;n<e.attributes.length;n++){const i=e.attributes[n],a=i.name,o=i.array,s=i.itemSize,c=new r.f(o,s);"color"===a&&this._assignVertexColorSpace(c,i.vertexColorSpace),t.setAttribute(a,c)}return t}_assignVertexColorSpace(e,t){
// While .drc files do not specify colorspace, the only 'official' tooling
// is PLY and OBJ converters, which use sRGB. We'll assume sRGB when a .drc
// file is passed into .load() or .parse(). GLTFLoader uses internal APIs
// to decode geometry, and vertex colors are already Linear-sRGB in there.
if(t!==r.yb)return;const n=new r.j;for(let t=0,r=e.count;t<r;t++)n.fromBufferAttribute(e,t).convertSRGBToLinear(),e.setXYZ(t,n.r,n.g,n.b)}_loadLibrary(e,t){const n=new r.t(this.manager);return n.setPath(this.decoderPath),n.setResponseType(t),n.setWithCredentials(this.withCredentials),new Promise(((t,r)=>{n.load(e,t,void 0,r)}))}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then((t=>{const n=t[0];e||(this.decoderConfig.wasmBinary=t[1]);const r=o.toString(),i=["/* draco decoder */",n,"","/* worker */",r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i]))})),this.decoderPending}_getWorker(e,t){return this._initDecoder().then((()=>{if(this.workerPool.length<this.workerLimit){const e=new Worker(this.workerSourceURL);e._callbacks={},e._taskCosts={},e._taskLoad=0,e.postMessage({type:"init",decoderConfig:this.decoderConfig}),e.onmessage=function(t){const n=t.data;switch(n.type){case"decode":e._callbacks[n.id].resolve(n);break;case"error":e._callbacks[n.id].reject(n)}},this.workerPool.push(e)}else this.workerPool.sort((function(e,t){return e._taskLoad>t._taskLoad?-1:1}));const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[e]=t,n._taskLoad+=t,n}))}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){}dispose(){for(let e=0;e<this.workerPool.length;++e)this.workerPool[e].terminate();return this.workerPool.length=0,""!==this.workerSourceURL&&URL.revokeObjectURL(this.workerSourceURL),this}}
/* WEB WORKER */function o(){let e,t;function n(e,t,n,r,i,a){const o=a.num_components(),s=n.num_points()*o,c=s*i.BYTES_PER_ELEMENT,l=function(e,t){switch(t){case Float32Array:return e.DT_FLOAT32;case Int8Array:return e.DT_INT8;case Int16Array:return e.DT_INT16;case Int32Array:return e.DT_INT32;case Uint8Array:return e.DT_UINT8;case Uint16Array:return e.DT_UINT16;case Uint32Array:return e.DT_UINT32}}(e,i),u=e._malloc(c);t.GetAttributeDataArrayForAllPoints(n,a,l,c,u);const h=new i(e.HEAPF32.buffer,u,s).slice();return e._free(u),{name:r,array:h,itemSize:o}}onmessage=function(r){const i=r.data;switch(i.type){case"init":e=i.decoderConfig,t=new Promise((function(t/*, reject*/){e.onModuleLoaded=function(e){
// Module is Promise-like. Wrap before resolving to avoid loop.
t({draco:e})},DracoDecoderModule(e)}));break;case"decode":const r=i.buffer,a=i.taskConfig;t.then((e=>{const t=e.draco,o=new t.Decoder;try{const e=function(e,t,r,i){const a=i.attributeIDs,o=i.attributeTypes;let s,c;const l=t.GetEncodedGeometryType(r);if(l===e.TRIANGULAR_MESH)s=new e.Mesh,c=t.DecodeArrayToMesh(r,r.byteLength,s);else{if(l!==e.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");s=new e.PointCloud,c=t.DecodeArrayToPointCloud(r,r.byteLength,s)}if(!c.ok()||0===s.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+c.error_msg());const u={index:null,attributes:[]};
// Gather all vertex attributes.
for(const r in a){const c=self[o[r]];let l,h;
// A Draco file may be created with default vertex attributes, whose attribute IDs
// are mapped 1:1 from their semantic name (POSITION, NORMAL, ...). Alternatively,
// a Draco file may contain a custom set of attributes, identified by known unique
// IDs. glTF files always do the latter, and `.drc` files typically do the former.
if(i.useUniqueIDs)h=a[r],l=t.GetAttributeByUniqueId(s,h);else{if(h=t.GetAttributeId(s,e[a[r]]),-1===h)continue;l=t.GetAttribute(s,h)}const f=n(e,t,s,r,c,l);"color"===r&&(f.vertexColorSpace=i.vertexColorSpace),u.attributes.push(f)}
// Add index.
l===e.TRIANGULAR_MESH&&(u.index=function(e,t,n){const r=n.num_faces(),i=3*r,a=4*i,o=e._malloc(a);t.GetTrianglesUInt32Array(n,a,o);const s=new Uint32Array(e.HEAPF32.buffer,o,i).slice();return e._free(o),{array:s,itemSize:1}}(e,t,s));return e.destroy(s),u}(t,o,new Int8Array(r),a),s=e.attributes.map((e=>e.array.buffer));e.index&&s.push(e.index.array.buffer),self.postMessage({type:"decode",id:i.id,geometry:e},s)}catch(e){self.postMessage({type:"error",id:i.id,error:e.message})}finally{t.destroy(o)}}))}}}
/***/},
/***/"0cb2":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),a=Math.floor,o=r("".charAt),s=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;
// `GetSubstitution` abstract operation
// https://tc39.es/ecma262/#sec-getsubstitution
e.exports=function(e,t,n,r,h,f){var d=n+e.length,p=r.length,g=u;return void 0!==h&&(h=i(h),g=l),s(f,g,(function(i,s){var l;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,d);case"<":l=h[c(s,1,-1)];break;default:// \d\d?
var u=+s;if(0===u)return i;if(u>p){var f=a(u/10);return 0===f?i:f<=p?void 0===r[f-1]?o(s,1):r[f-1]+o(s,1):i}l=r[u-1]}return void 0===l?"":l}))}},
/***/"0cd4":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var r={
/**
   * @description Whether to display this radar axis
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Center point of radar axis
   * @type {Array}
   * @default center = ['50%','50%']
   * @example center = ['50%','50%'] | [100, 100]
   */
center:["50%","50%"],
/**
   * @description Radius of radar axis
   * @type {String|Number}
   * @default radius = '65%'
   * @example radius = '65%' | 100
   */
radius:"65%",
/**
   * @description Radar axis start angle
   * @type {Number}
   * @default startAngle = -Math.PI / 2
   * @example startAngle = -Math.PI
   */
startAngle:-Math.PI/2,
/**
   * @description Radar axis split number
   * @type {Number}
   * @default splitNum = 5
   */
splitNum:5,
/**
   * @description Whether to enable polygon radar axis
   * @type {Boolean}
   * @default polygon = false
   */
polygon:!1,
/**
   * @description Axis label configuration
   * @type {Object}
   */
axisLabel:{
/**
     * @description Whether to display axis label
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Label gap between label and radar axis
     * @type {Number}
     * @default labelGap = 15
     */
labelGap:15,
/**
     * @description Label color (Hex|rgb|rgba), will cover style.fill
     * @type {Array}
     * @default color = []
     */
color:[],
/**
     * @description Axis label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fill:"#333"}},
/**
   * @description Axis line configuration
   * @type {Object}
   */
axisLine:{
/**
     * @description Whether to display axis line
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Line color (Hex|rgb|rgba), will cover style.stroke
     * @type {Array}
     * @default color = []
     */
color:[],
/**
     * @description Axis label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#999",lineWidth:1}},
/**
   * @description Split line configuration
   * @type {Object}
   */
splitLine:{
/**
     * @description Whether to display split line
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Line color (Hex|rgb|rgba), will cover style.stroke
     * @type {Array}
     * @default color = []
     */
color:[],
/**
     * @description Split line default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#d4d4d4",lineWidth:1}},
/**
   * @description Split area configuration
   * @type {Object}
   */
splitArea:{
/**
     * @description Whether to display split area
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Area color (Hex|rgb|rgba), will cover style.stroke
     * @type {Array}
     * @default color = []
     */
color:["#f5f5f5","#e6e6e6"],
/**
     * @description Split area default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{}},
/**
   * @description Bar chart render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = -10
   */
rLevel:-10,
/**
   * @description Radar axis animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Radar axis animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrane:50};t.radarAxisConfig=r},
/***/"0cdd":
/***/function(e,t){
// mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js)
// Authors: Graeme Yeates (github.com/megawac) 
/*
 Shim for MutationObserver interface
 Author: Graeme Yeates (github.com/megawac)
 Repository: https://github.com/megawac/MutationObserver.js
 License: WTFPL V2, 2004 (wtfpl.net).
 Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please.
 Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript
 See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation
*/
window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function n(t){var n,r={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(n in t)r[n]!==e&&t[n]!==e&&(r[n]=t[n]);return r}function r(t,r){var s=a(t,r);return function(l){var u=l.length;if(r.a&&3===t.nodeType&&t.nodeValue!==s.a&&l.push(new n({type:"characterData",target:t,oldValue:s.a})),r.b&&s.b&&i(l,t,s.b,r.f),r.c||r.g)var h=function(t,r,a,s){function l(e,r,a,o,c){var l,h,f,d=e.length-1;for(c=-~((d-c)/2);f=e.pop();)l=a[f.j],h=o[f.l],s.c&&c&&Math.abs(f.j-f.l)>=d&&(t.push(n({type:"childList",target:r,addedNodes:[l],removedNodes:[l],nextSibling:l.nextSibling,previousSibling:l.previousSibling})),c--),s.b&&h.b&&i(t,l,h.b,s.f),s.a&&3===l.nodeType&&l.nodeValue!==h.a&&t.push(n({type:"characterData",target:l,oldValue:h.a})),s.g&&u(l,h)}function u(r,a){for(var f,d,p,g,m,v=r.childNodes,y=a.c,A=v.length,b=y?y.length:0,w=0,x=0,C=0;x<A||C<b;)(g=v[x])===(m=(p=y[C])&&p.node)?(s.b&&p.b&&i(t,g,p.b,s.f),s.a&&p.a!==e&&g.nodeValue!==p.a&&t.push(n({type:"characterData",target:g,oldValue:p.a})),d&&l(d,r,v,y,w),s.g&&(g.childNodes.length||p.c&&p.c.length)&&u(g,p),x++,C++):(h=!0,f||(f={},d=[]),g&&(f[p=o(g)]||(f[p]=!0,-1===(p=c(y,g,C,"node"))?s.c&&(t.push(n({type:"childList",target:r,addedNodes:[g],nextSibling:g.nextSibling,previousSibling:g.previousSibling})),w++):d.push({j:x,l:p})),x++),m&&m!==v[x]&&(f[p=o(m)]||(f[p]=!0,-1===(p=c(v,m,x))?s.c&&(t.push(n({type:"childList",target:a.node,removedNodes:[m],nextSibling:y[C+1],previousSibling:y[C-1]})),w--):d.push({j:p,l:C})),C++));d&&l(d,r,v,y,w)}var h;return u(r,a),h}(l,t,s,r);(h||l.length!==u)&&(s=a(t,r))}}function i(t,r,i,a){for(var o,s,c={},l=r.attributes,h=l.length;h--;)s=(o=l[h]).name,a&&a[s]===e||(u(r,o)!==i[s]&&t.push(n({type:"attributes",target:r,attributeName:s,oldValue:i[s],attributeNamespace:o.namespaceURI})),c[s]=!0);for(s in i)c[s]||t.push(n({target:r,type:"attributes",attributeName:s,oldValue:i[s]}))}function a(e,t){var n=!0;return function e(r){var i={node:r};return!t.a||3!==r.nodeType&&8!==r.nodeType?(t.b&&n&&1===r.nodeType&&(i.b=s(r.attributes,(function(e,n){return t.f&&!t.f[n.name]||(e[n.name]=u(r,n)),e}),{})),n&&(t.c||t.a||t.b&&t.g)&&(i.c=function(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r,e);return n}(r.childNodes,e)),n=t.g):i.a=r.nodeValue,i}(e)}function o(e){try{return e.id||(e.mo_id=e.mo_id||h++)}catch(t){try{return e.nodeValue}catch(e){return h++}}}function s(e,t,n){for(var r=0;r<e.length;r++)n=t(n,e[r],r,e);return n}function c(e,t,n,r){for(;n<e.length;n++)if((r?e[n][r]:e[n])===t)return n;return-1}t._period=30,t.prototype={observe:function(e,n){for(var i={b:!!(n.attributes||n.attributeFilter||n.attributeOldValue),c:!!n.childList,g:!!n.subtree,a:!(!n.characterData&&!n.characterDataOldValue)},a=this.i,o=0;o<a.length;o++)a[o].s===e&&a.splice(o,1);n.attributeFilter&&(i.f=s(n.attributeFilter,(function(e,t){return e[t]=!0,e}),{})),a.push({s:e,o:r(e,i)}),this.h||function(e){!function n(){var r=e.takeRecords();r.length&&e.m(r,e),e.h=setTimeout(n,t._period)}()}(this)},takeRecords:function(){for(var e=[],t=this.i,n=0;n<t.length;n++)t[n].o(e);return e},disconnect:function(){this.i=[],clearTimeout(this.h),this.h=null}};var l=document.createElement("i");l.style.top=0;var u=(l="null"!=l.attributes.style.value)?function(e,t){return t.value}:function(e,t){return"style"!==t.name?t.value:e.style.cssText},h=1;return t}(void 0));
//# sourceMappingURL=mutationobserver.map
/***/},
/***/"0cfb":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),a=n("cc12");
// Thanks to IE8 for its funny defineProperty
e.exports=!r&&!i((function(){
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},
/***/"0d24":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){var r=n("2b3e"),i=n("07c7"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;
/** Detect free variable `exports`. */e.exports=c}).call(this,n("62e4")(e))
/***/},
/***/"0d26":
/***/function(e,t,n){"use strict";var r=n("e330"),i=Error,a=r("".replace),o=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=a(e,s,"");return e}},
/***/"0d51":
/***/function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},
/***/"0da8":
/***/function(e,t,n){"use strict";
/* unused harmony export DEFAULT_IMAGE_STYLE */
/* unused harmony export DEFAULT_IMAGE_ANIMATION_PROPS */
/* harmony import */var r=n("21a1"),i=n("19eb"),a=n("9850"),o=n("6d8b"),s=Object(o.defaults)({x:0,y:0},i.b),c={style:Object(o.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.a.style)};
/* harmony import */var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.createStyle=function(e){return Object(o.createObject)(s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=t[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return c},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new a.a(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i.c);l.prototype.type="image",
/* harmony default export */t.a=l},
/***/"0db5":
/***/function(e,t,n){
// 20.1.2.2 Number.isFinite(number)
var r=n("f083"),i=n("93e0").isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},
/***/"0df6":
/***/function(e,t,n){"use strict";
/**
 * Syntactic sugar for invoking a function and expanding an array for arguments.
 *
 * Common use case would be to use `Function.prototype.apply`.
 *
 *  ```js
 *  function f(x, y, z) {}
 *  var args = [1, 2, 3];
 *  f.apply(null, args);
 *  ```
 *
 * With `spread` this example can be re-written.
 *
 *  ```js
 *  spread(function(x, y, z) {})([1, 2, 3]);
 *  ```
 *
 * @param {Function} callback
 * @returns {Function}
 */e.exports=function(e){return function(t){return e.apply(null,t)}}},
/***/"0e59":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_getNative.js + 4 modules
var r=n("63bc"),i=Object(r.a)(Object,"create");
// CONCATENATED MODULE: ./node_modules/lodash-es/_nativeCreate.js
/* Built-in method references that are verified to be native. */
/* harmony default export */var a=
// CONCATENATED MODULE: ./node_modules/lodash-es/_hashClear.js
/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function(){this.__data__=i?i(null):{},this.size=0};
// CONCATENATED MODULE: ./node_modules/lodash-es/_hashDelete.js
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
/* harmony default export */var o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},s=Object.prototype.hasOwnProperty;
// CONCATENATED MODULE: ./node_modules/lodash-es/_hashGet.js
/** Used to stand-in for `undefined` hash values. */
/* harmony default export */var c=
/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0},l=Object.prototype.hasOwnProperty;
// CONCATENATED MODULE: ./node_modules/lodash-es/_hashHas.js
/** Used for built-in method references. */
/* harmony default export */var u=
/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e){var t=this.__data__;return i?void 0!==t[e]:l.call(t,e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_hashSet.js
/** Used to stand-in for `undefined` hash values. */
/* harmony default export */var h=
/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this};
// CONCATENATED MODULE: ./node_modules/lodash-es/_Hash.js
/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `Hash`.
f.prototype.clear=a,f.prototype.delete=o,f.prototype.get=c,f.prototype.has=u,f.prototype.set=h;
/* harmony default export */var d=f,p=n("9cbb"),g=n("ddc9");
// EXTERNAL MODULE: ./node_modules/lodash-es/_ListCache.js + 6 modules
/* harmony default export */var m=
// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheClear.js
/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function(){this.size=0,this.__data__={hash:new d,map:new(g.a||p.a),string:new d}};
// CONCATENATED MODULE: ./node_modules/lodash-es/_isKeyable.js
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
/* harmony default export */var v=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};
// CONCATENATED MODULE: ./node_modules/lodash-es/_getMapData.js
/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
/* harmony default export */var y=function(e,t){var n=e.__data__;return v(t)?n["string"==typeof t?"string":"hash"]:n.map};
// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheDelete.js
/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
/* harmony default export */var A=function(e){var t=y(this,e).delete(e);return this.size-=t?1:0,t};
// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheGet.js
/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
/* harmony default export */var b=function(e){return y(this,e).get(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheHas.js
/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
/* harmony default export */var w=function(e){return y(this,e).has(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheSet.js
/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
/* harmony default export */var x=function(e,t){var n=y(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};
// CONCATENATED MODULE: ./node_modules/lodash-es/_MapCache.js
/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `MapCache`.
C.prototype.clear=m,C.prototype.delete=A,C.prototype.get=b,C.prototype.has=w,C.prototype.set=x;
/* harmony default export */t.a=C;
/***/},
/***/"0f00":
/***/function(e,t,n){
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var r=n("f083");r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,a=n>>>0;return(t>>>0)+(r>>>0)+((i&a|(i|a)&~(i+a>>>0))>>>31)|0}})},
/***/"0f0f":
/***/function(e,t,n){var r=n("8eeb"),i=n("9934");
/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t){return e&&r(t,i(t),e)}},
/***/"0f32":
/***/function(e,t,n){var r=n("b047"),i=n("1a8c");
/** Error message constants. */e.exports=
/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */
function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),r(e,t,{leading:a,maxWait:t,trailing:o})}},
/***/"0f5c":
/***/function(e,t,n){var r=n("159a");
/**
 * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
 * it's created. Arrays are created for missing index properties while objects
 * are created for all other missing properties. Use `_.setWith` to customize
 * `path` creation.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.set(object, 'a[0].b.c', 4);
 * console.log(object.a[0].b.c);
 * // => 4
 *
 * _.set(object, ['x', '0', 'y', 'z'], 5);
 * console.log(object.x[0].y.z);
 * // => 5
 */e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},
/***/"0f99":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o})),
/* harmony export (binding) */n.d(t,"g",(function(){return c})),
/* harmony export (binding) */n.d(t,"c",(function(){return l})),
/* harmony export (binding) */n.d(t,"d",(function(){return u})),
/* harmony export (binding) */n.d(t,"f",(function(){return h})),
/* harmony export (binding) */n.d(t,"e",(function(){return f})),
/* harmony export (binding) */n.d(t,"b",(function(){return d}));
/* harmony import */var r=n("e0d3"),i=n("6d8b"),a=n("07fd"),o={Must:1,Might:2,Not:3},s=Object(r.o)();
/* harmony import */
/**
 * MUST be called before mergeOption of all series.
 */
function c(e){
// `datasetMap` is used to make default encode.
s(e).datasetMap=Object(i.createHashMap)()}
/**
 * [The strategy of the arrengment of data dimensions for dataset]:
 * "value way": all axes are non-category axes. So series one by one take
 *     several (the number is coordSysDims.length) dimensions from dataset.
 *     The result of data arrengment of data dimensions like:
 *     | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |
 * "category way": at least one axis is category axis. So the the first data
 *     dimension is always mapped to the first category axis and shared by
 *     all of the series. The other data dimensions are taken by series like
 *     "value way" does.
 *     The result of data arrengment of data dimensions like:
 *     | ser_shared_x | ser0_y | ser1_y | ser2_y |
 *
 * @return encode Never be `null/undefined`.
 */function l(e,t,n){var r={},a=h(t);
// Currently only make default when using dataset, util more reqirements occur.
if(!a||!e)return r;var o,c,l=[],u=[],f=t.ecModel,d=s(f).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(i.each)(e,(function(t,n){var a=Object(i.isObject)(t)?t:e[n]={name:t};"ordinal"===a.type&&null==o&&(o=n,c=v(a)),r[a.name]=[]}));var g=d.get(p)||d.set(p,{categoryWayDim:c,valueWayDim:0});
// TODO
// Auto detect first time axis and do arrangement.
function m(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function v(e){var t=e.dimsDef;return t?t.length:1}return Object(i.each)(e,(function(e,t){var n=e.name,i=v(e);
// In value way.
if(null==o){var a=g.valueWayDim;m(r[n],a,i),m(u,a,i),g.valueWayDim+=i}
// In category way, the first category axis.
else if(o===t)m(r[n],0,i),m(l,0,i);else{a=g.categoryWayDim;m(r[n],a,i),m(u,a,i),g.categoryWayDim+=i}})),l.length&&(r.itemName=l),u.length&&(r.seriesName=u),r}
/**
 * Work for data like [{name: ..., value: ...}, ...].
 *
 * @return encode Never be `null/undefined`.
 */function u(e,t,n){var r={};
// Currently only make default when using dataset, util more reqirements occur.
if(!h(e))return r;var s,c=t.sourceFormat,l=t.dimensionsDefine;c!==a.e&&c!==a.d||Object(i.each)(l,(function(e,t){"name"===(Object(i.isObject)(e)?e.name:e)&&(s=t)}));var u=function(){
// 5 is an experience value.
for(var e={},r={},i=[],a=0,u=Math.min(5,n);a<u;a++){var h=p(t.data,c,t.seriesLayoutBy,l,t.startIndex,a);i.push(h);var f=h===o.Not;
// [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,
// and then find a name dim with the priority:
// "BE_ORDINAL.Might|BE_ORDINAL.Must" > "other dim" > "the value dim itself".
if(f&&null==e.v&&a!==s&&(e.v=a),(null==e.n||e.n===e.v||!f&&i[e.n]===o.Not)&&(e.n=a),d(e)&&i[e.n]!==o.Not)return e;
// [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),
// find the first BE_ORDINAL.Might as the value dim,
// and then find a name dim with the priority:
// "other dim" > "the value dim itself".
// That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be
// treated as number.
f||(h===o.Might&&null==r.v&&a!==s&&(r.v=a),null!=r.n&&r.n!==r.v||(r.n=a))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(r)?r:null}();if(u){r.value=[u.v];
// `potentialNameDimIndex` has highest priority.
var f=null!=s?s:u.n;
// By default, label uses itemName in charts.
// So we don't set encodeLabel here.
r.itemName=[f],r.seriesName=[f]}return r}
/**
 * @return If return null/undefined, indicate that should not use datasetModel.
 */function h(e){if(!e.get("data",!0))return Object(r.v)(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},r.b).models[0]}
/**
 * @return Always return an array event empty.
 */function f(e){
// Only these attributes declared, we by default reference to `datasetIndex: 0`.
// Otherwise, no reference.
return e.get("transform",!0)||e.get("fromTransformResult",!0)?Object(r.v)(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},r.b).models:[]}
/**
 * The rule should not be complex, otherwise user might not
 * be able to known where the data is wrong.
 * The code is ugly, but how to make it neat?
 */function d(e,t){return p(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}
// dimIndex may be overflow source data.
// return {BE_ORDINAL}
function p(e,t,n,s,c,l){var u,h,f;
// Experience value.
if(Object(i.isTypedArray)(e))return o.Not;
// When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine
// always exists in source.
if(s){var d=s[l];Object(i.isObject)(d)?(h=d.name,f=d.type):Object(i.isString)(d)&&(h=d)}if(null!=f)return"ordinal"===f?o.Must:o.Not;if(t===a.c){var p=e;if(n===a.b){for(var g=p[l],m=0;m<(g||[]).length&&m<5;m++)if(null!=(u=C(g[c+m])))return u}else for(m=0;m<p.length&&m<5;m++){var v=p[c+m];if(v&&null!=(u=C(v[l])))return u}}else if(t===a.e){var y=e;if(!h)return o.Not;for(m=0;m<y.length&&m<5;m++){if((w=y[m])&&null!=(u=C(w[h])))return u}}else if(t===a.d){var A=e;if(!h)return o.Not;if(!(g=A[h])||Object(i.isTypedArray)(g))return o.Not;for(m=0;m<g.length&&m<5;m++)if(null!=(u=C(g[m])))return u}else if(t===a.f){var b=e;for(m=0;m<b.length&&m<5;m++){var w=b[m],x=Object(r.h)(w);if(!Object(i.isArray)(x))return o.Not;if(null!=(u=C(x[l])))return u}}function C(e){var t=Object(i.isString)(e);
// Consider usage convenience, '1', '2' will be treated as "number".
// `Number('')` (or any whitespace) is `0`.
return null!=e&&Number.isFinite(Number(e))&&""!==e?t?o.Might:o.Not:t&&"-"!==e?o.Must:void 0}return o.Not}
/***/},
/***/"100e":
/***/function(e,t,n){var r=n("cd9d"),i=n("2286"),a=n("c1c9");
/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */e.exports=function(e,t){return a(i(e,t,r),e+"")}},
/***/1041:
/***/function(e,t,n){var r=n("8eeb"),i=n("a029");
/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t){return r(e,i(e),t)}},
/***/"107c":
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9").RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},
/***/1098:
/***/function(e,t,n){"use strict";t.__esModule=!0;var r=o(n("17ed")),i=o(n("f893")),a="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":a(e)}},
/***/"10d1":
/***/function(e,t){
/* eslint-disable no-bitwise, no-mixed-operators, complexity */
const n=16,r=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],i=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257]
/**
 * 16 进制串转字节数组
 */;function a(e){const t=[];for(let n=0,r=e.length;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return t}
/**
 * 字节数组转 16 进制串
 */
/**
 * 32 比特循环左移
 */
function o(e,t){const n=31&t;return e<<n|e>>>32-n}
/**
 * 非线性变换
 */function s(e){return(255&r[e>>>24&255])<<24|(255&r[e>>>16&255])<<16|(255&r[e>>>8&255])<<8|255&r[255&e]}
/**
 * 线性变换，加密/解密用
 */function c(e){return e^o(e,2)^o(e,10)^o(e,18)^o(e,24)}
/**
 * 线性变换，生成轮密钥用
 */function l(e){return e^o(e,13)^o(e,23)}
/**
 * 以一组 128 比特进行加密/解密操作
 */function u(e,t,n){const r=new Array(4),i=new Array(4);
// 字节数组转成字数组（此处 1 字 = 32 比特）
for(let t=0;t<4;t++)i[0]=255&e[4*t],i[1]=255&e[4*t+1],i[2]=255&e[4*t+2],i[3]=255&e[4*t+3],r[t]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];
// x[i + 4] = x[i] ^ l1(byteSub(x[i + 1] ^ x[i + 2] ^ x[i + 3] ^ roundKey[i]))
for(let e,t=0;t<32;t+=4)e=r[1]^r[2]^r[3]^n[t+0],r[0]^=c(s(e)),// x[4]
e=r[2]^r[3]^r[0]^n[t+1],r[1]^=c(s(e)),// x[5]
e=r[3]^r[0]^r[1]^n[t+2],r[2]^=c(s(e)),// x[6]
e=r[0]^r[1]^r[2]^n[t+3],r[3]^=c(s(e));
// 反序变换
for(let e=0;e<16;e+=4)t[e]=r[3-e/4]>>>24&255,t[e+1]=r[3-e/4]>>>16&255,t[e+2]=r[3-e/4]>>>8&255,t[e+3]=255&r[3-e/4]}
/**
 * 密钥扩展算法
 */function h(e,t,r,{padding:o="pkcs#7",mode:c,iv:h=[],output:f="string"}={}){if("cbc"===c&&(
// CBC 模式，默认走 ECB 模式
"string"==typeof h&&(h=a(h)),16!==h.length))
// iv 不是 128 比特
throw new Error("iv is invalid");
// 检查 key
if("string"==typeof t&&(t=a(t)),16!==t.length)
// key 不是 128 比特
throw new Error("key is invalid");
// 检查输入
// 新增填充，sm4 是 16 个字节一个分组，所以统一走到 pkcs#7
if(
// 加密，输入为 utf8 串
e="string"==typeof e?0!==r?
/**
 * utf8 串转字节数组
 */
function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.codePointAt(n);if(r<=127)
// 单字节，标量值：00000000 00000000 0zzzzzzz
t.push(r);else if(r<=2047)
// 双字节，标量值：00000000 00000yyy yyzzzzzz
t.push(192|r>>>6),// 110yyyyy（0xc0-0xdf）
t.push(128|63&r);else if(r<=55295||r>=57344&&r<=65535)
// 三字节：标量值：00000000 xxxxyyyy yyzzzzzz
t.push(224|r>>>12),// 1110xxxx（0xe0-0xef）
t.push(128|r>>>6&63),// 10yyyyyy（0x80-0xbf）
t.push(128|63&r);else{if(!(r>=65536&&r<=1114111))
// 五、六字节，暂时不支持
throw t.push(r),new Error("input is not supported");
// 四字节：标量值：000wwwxx xxxxyyyy yyzzzzzz
n++,t.push(240|r>>>18&28),// 11110www（0xf0-0xf7）
t.push(128|r>>>12&63),// 10xxxxxx（0x80-0xbf）
t.push(128|r>>>6&63),// 10yyyyyy（0x80-0xbf）
t.push(128|63&r)}}return t}
/**
 * 字节数组转 utf8 串
 */(e):a(e):[...e],("pkcs#5"===o||"pkcs#7"===o)&&0!==r){const t=n-e.length%n;for(let n=0;n<t;n++)e.push(t)}
// 生成轮密钥
const d=new Array(32);!function(e,t,n){const r=new Array(4),a=new Array(4);
// 字节数组转成字数组（此处 1 字 = 32 比特）
for(let t=0;t<4;t++)a[0]=255&e[0+4*t],a[1]=255&e[1+4*t],a[2]=255&e[2+4*t],a[3]=255&e[3+4*t],r[t]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];
// 与系统参数做异或
r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;
// roundKey[i] = x[i + 4] = x[i] ^ l2(byteSub(x[i + 1] ^ x[i + 2] ^ x[i + 3] ^ CK[i]))
for(let e,n=0;n<32;n+=4)e=r[1]^r[2]^r[3]^i[n+0],t[n+0]=r[0]^=l(s(e)),// x[4]
e=r[2]^r[3]^r[0]^i[n+1],t[n+1]=r[1]^=l(s(e)),// x[5]
e=r[3]^r[0]^r[1]^i[n+2],t[n+2]=r[2]^=l(s(e)),// x[6]
e=r[0]^r[1]^r[2]^i[n+3],t[n+3]=r[3]^=l(s(e));
// 解密时使用反序的轮密钥
if(0===n)for(let e,n=0;n<16;n++)e=t[n],t[n]=t[31-n],t[31-n]=e}(t,d,r);const p=[];let g=h,m=e.length,v=0;for(;m>=n;){const t=e.slice(v,v+16),i=new Array(16);if("cbc"===c)for(let e=0;e<n;e++)0!==r&&(
// 加密过程在组加密前进行异或
t[e]^=g[e]);u(t,i,d);for(let e=0;e<n;e++)"cbc"===c&&0===r&&(
// 解密过程在组解密后进行异或
i[e]^=g[e]),p[v+e]=i[e];"cbc"===c&&(
// 使用上一次输出作为加密向量
g=0!==r?i:t),m-=n,v+=n}
// 去除填充，sm4 是 16 个字节一个分组，所以统一走到 pkcs#7
if(("pkcs#5"===o||"pkcs#7"===o)&&0===r){const e=p.length,t=p[e-1];for(let n=1;n<=t;n++)if(p[e-n]!==t)throw new Error("padding is invalid");p.splice(e-t,t)}
// 调整输出
return"array"!==f?0!==r?p.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join(""):function(e){const t=[];for(let n=0,r=e.length;n<r;n++)e[n]>=240&&e[n]<=247?(
// 四字节
t.push(String.fromCodePoint(((7&e[n])<<18)+((63&e[n+1])<<12)+((63&e[n+2])<<6)+(63&e[n+3]))),n+=3):e[n]>=224&&e[n]<=239?(
// 三字节
t.push(String.fromCodePoint(((15&e[n])<<12)+((63&e[n+1])<<6)+(63&e[n+2]))),n+=2):e[n]>=192&&e[n]<=223?(
// 双字节
t.push(String.fromCodePoint(((31&e[n])<<6)+(63&e[n+1]))),n++):
// 单字节
t.push(String.fromCodePoint(e[n]));return t.join("")}(p):p}e.exports={encrypt:(e,t,n)=>h(e,t,1,n),decrypt:(e,t,n)=>h(e,t,0,n)}
/***/},
/***/"10d17":
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's replaced to module below
n("0094")},
/***/"10db":
/***/function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}};
/***/},
/***/"10dd":
/***/function(e,t){t.f=Object.getOwnPropertySymbols;
/***/},
/***/1147:
/***/function(e,t,n){"use strict";
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
/* harmony default export */t.a=function(e){return null!=e&&"object"==typeof e}},
/***/"1147a":
/***/function(e,t,n){
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
var r=n("d77f"),i=n("2ce8"),a=n("de24")("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[a])?t:i(n)}},
/***/1148:
/***/function(e,t,n){"use strict";var r=n("5926"),i=n("577e"),a=n("1d80"),o=RangeError;
// `String.prototype.repeat` method implementation
// https://tc39.es/ecma262/#sec-string.prototype.repeat
e.exports=function(e){var t=i(a(this)),n="",s=r(e);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},
/***/1157:
/***/function(e,t,n){var r;
/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */!function(t,n){"use strict";"object"==typeof e.exports?
// For CommonJS and CommonJS-like environments where a proper `window`
// is present, execute the factory and get jQuery.
// For environments that do not have a `window` with a `document`
// (such as Node.js), expose a factory as module.exports.
// This accentuates the need for the creation of a real `window`.
// e.g. var jQuery = require("jquery")(window);
// See ticket trac-14549 for more info.
e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t);
// Pass this if window is not defined yet
}("undefined"!=typeof window?window:this,(function(n,i){
// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
// enough that all such attempts are guarded in a try block.
"use strict";var a=[],o=Object.getPrototypeOf,s=a.slice,c=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},l=a.push,u=a.indexOf,h={},f=h.toString,d=h.hasOwnProperty,p=d.toString,g=p.call(Object),m={},v=function(e){
// Support: Chrome <=57, Firefox <=52
// In some browsers, typeof returns "function" for HTML <object> elements
// (i.e., `typeof document.createElement( "object" ) === "function"`).
// We don't want to classify *any* DOM node as a function.
// Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5
// Plus for old WebKit, typeof returns "function" for HTML collections
// (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756)
return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},A=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,a=(n=n||A).createElement("script");if(a.text=e,t)for(r in b)
// Support: Firefox 64+, Edge 18+
// Some browsers don't support the "nonce" property on scripts.
// On the other hand, just using `getAttribute` is not enough as
// the `nonce` attribute is reset to an empty string whenever it
// becomes browsing-context connected.
// See https://github.com/whatwg/html/issues/2369
// See https://html.spec.whatwg.org/#nonce-attributes
// The `node.getAttribute` check was added for the sake of
// `jQuery.globalEval` so that it can fake a nonce-containing node
// via an object.
(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[f.call(e)]||"object":typeof e;
// Support: Android <=2.3 only (functionish RegExp)
}
/* global Symbol */
// Defining this global in .eslintrc.json would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
var C="3.7.1",_=/HTML$/i,
// Define a local copy of jQuery
I=function(e,t){
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new I.fn.init(e,t)};function E(e){
// Support: real iOS 8.2 only (not reproducible in simulator)
// `in` check used to prevent JIT error (gh-2145)
// hasOwn isn't used here due to false negatives
// regarding Nodelist length in IE
var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}I.fn=I.prototype={
// The current version of jQuery being used
jquery:C,constructor:I,
// The default length of a jQuery object is 0
length:0,toArray:function(){return s.call(this)},
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get:function(e){
// Return all the elements in a clean array
return null==e?s.call(this):e<0?this[e+this.length]:this[e];
// Return just the one element from the set
},
// Take an array of elements and push it onto the stack
// (returning the new matched element set)
pushStack:function(e){
// Build a new jQuery matched element set
var t=I.merge(this.constructor(),e);
// Add the old object onto the stack (as a reference)
// Return the newly-formed element set
return t.prevObject=this,t},
// Execute a callback for every element in the matched set.
each:function(e){return I.each(this,e)},map:function(e){return this.pushStack(I.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(I.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(I.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},
// For internal use only.
// Behaves like an Array's method, not like a jQuery method.
push:l,sort:a.sort,splice:a.splice},I.extend=I.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;
// Handle a deep copy situation
for("boolean"==typeof o&&(l=o,
// Skip the boolean and the target
o=arguments[s]||{},s++),
// Handle case when target is a string or something (possible in deep copy)
"object"==typeof o||v(o)||(o={}),
// Extend jQuery itself if only one argument is passed
s===c&&(o=this,s--);s<c;s++)
// Only deal with non-null/undefined values
if(null!=(e=arguments[s]))
// Extend the base object
for(t in e)r=e[t],
// Prevent Object.prototype pollution
// Prevent never-ending loop
"__proto__"!==t&&o!==r&&(
// Recurse if we're merging plain objects or arrays
l&&r&&(I.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],
// Ensure proper type for the source value
a=i&&!Array.isArray(n)?[]:i||I.isPlainObject(n)?n:{},i=!1,
// Never move original objects, clone them
o[t]=I.extend(l,a,r)):void 0!==r&&(o[t]=r));
// Return the modified object
return o},I.extend({
// Unique for each copy of jQuery on the page
expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),
// Assume jQuery is ready without the ready module
isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;
// Detect obvious negatives
// Use toString instead of jQuery.type to catch host objects
return!(!e||"[object Object]"!==f.call(e))&&(
// Objects with no prototype (e.g., `Object.create( null )`) are plain
!(t=o(e))||"function"==typeof(
// Objects with prototype are plain iff they were constructed by a global Object function
n=d.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},
// Evaluates a script in a provided context; falls back to the global one
// if not specified.
globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},
// Retrieve the text value of an array of DOM nodes
text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)
// If no nodeType, this is expected to be an array
for(;t=e[r++];)
// Do not traverse comment nodes
n+=I.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},
// results is for internal usage only
makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?I.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;
// Assume HTML when documentElement doesn't yet exist, such as inside
// document fragments.
return!_.test(t||n&&n.nodeName||"HTML")},
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){
// Go through the array, only saving the items
// that pass the validator function
for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},
// arg is for internal usage only
map:function(e,t,n){var r,i,a=0,o=[];
// Go through the array, translating each of the items to their new values
if(E(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);
// Go through every key on the object,
else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);
// Flatten any nested arrays
return c(o)},
// A global GUID counter for objects
guid:1,
// jQuery.support is not used in Core but other projects attach their
// properties to it so it needs to exist.
support:m}),"function"==typeof Symbol&&(I.fn[Symbol.iterator]=a[Symbol.iterator]),
// Populate the class2type map
I.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var S=a.pop,B=a.sort,M=a.splice,T="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+T+"+|((?:^|[^\\\\])(?:\\\\.)*)"+T+"+$","g");
// Note: an element does not contain itself
I.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||
// Support: IE 9 - 11+
// IE doesn't have `contains` on SVG.
!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};
// CSS string/identifier serialization
// https://drafts.csswg.org/cssom/#common-serializing-idioms
var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function P(e,t){return t?
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e;
// Other potentially-special ASCII characters get backslash-escaped
}I.escapeSelector=function(e){return(e+"").replace(D,P)};var L=A,Q=l;!function(){var e,t,r,i,o,
// Local document vars
c,l,h,f,p,g=Q,
// Instance-specific data
v=I.expando,y=0,A=0,b=ee(),w=ee(),x=ee(),C=ee(),_=function(e,t){return e===t&&(o=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
// Regular expressions
// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
D="(?:\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors
P="\\["+T+"*("+D+")(?:"+T+
// Operator (capture 2)
"*([*^$|!~]?=)"+T+
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+T+"*\\]",R=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
j=new RegExp(T+"+","g"),N=new RegExp("^"+T+"*,"+T+"*"),F=new RegExp("^"+T+"*([>+~]|"+T+")"+T+"*"),z=new RegExp(T+"|>"),H=new RegExp(R),U=new RegExp("^"+D+"$"),G={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+T+"*(even|odd|(([+-]|)(\\d*)n|)"+T+"*(?:([+-]|)"+T+"*(\\d+)|))"+T+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),
// For use in libraries implementing .is()
// We use this for POS matching in `select`
needsContext:new RegExp("^"+T+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+T+"*((?:-\\d)?\\d*)"+T+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,
// Easily-parseable/retrievable ID or TAG or CLASS selectors
q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,
// CSS escapes
// https://www.w3.org/TR/CSS21/syndata.html#escaped-characters
K=new RegExp("\\\\[\\da-fA-F]{1,6}"+T+"?|\\\\([^\\r\\n\\f])","g"),$=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320));
// Replace a hexadecimal escape sequence with the encoded Unicode code point
// Support: IE <=11+
// For values outside the Basic Multilingual Plane (BMP), manually construct a
// surrogate pair
},
// Used for iframes; see `setDocument`.
// Support: IE 9 - 11+, Edge 12 - 18+
// Removing the function wrapper causes a "Permission Denied"
// error in IE/Edge.
J=function(){ce()},X=fe((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});
// Support: IE <=9 only
// Accessing document.activeElement can throw unexpectedly
// https://bugs.jquery.com/ticket/13393
// Optimize for push.apply( _, NodeList )
try{g.apply(a=s.call(L.childNodes),L.childNodes),
// Support: Android <=4.0
// Detect silently failing push.apply
// eslint-disable-next-line no-unused-expressions
a[L.childNodes.length].nodeType}catch(e){g={apply:function(e,t){Q.apply(e,s.call(t))},call:function(e){Q.apply(e,s.call(arguments,1))}}}function Z(e,t,n,r){var i,a,o,s,l,u,d,p=t&&t.ownerDocument,
// nodeType defaults to 9, since context defaults to document
y=t?t.nodeType:9;
// Return early from calls with invalid selector or context
if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;
// Try to shortcut find operations (as opposed to filters) in HTML documents
if(!r&&(ce(t),t=t||c,h)){
// If the selector is sufficiently simple, try using a "get*By*" DOM method
// (excepting DocumentFragment context, where the methods don't exist)
if(11!==y&&(l=q.exec(e)))
// ID selector
if(i=l[1]){
// Document context
if(9===y){if(!(o=t.getElementById(i)))return n;
// Element context
// Support: IE 9 only
// getElementById can match elements by name instead of ID
if(o.id===i)return g.call(n,o),n}else
// Support: IE 9 only
// getElementById can match elements by name instead of ID
if(p&&(o=p.getElementById(i))&&Z.contains(t,o)&&o.id===i)return g.call(n,o),n;
// Type selector
}else{if(l[2])return g.apply(n,t.getElementsByTagName(e)),n;
// Class selector
if((i=l[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}
// Take advantage of querySelectorAll
if(!(C[e+" "]||f&&f.test(e))){
// qSA considers elements outside a scoping root when evaluating child or
// descendant combinators, which is not what we want.
// In such cases, we work around the behavior by prefixing every selector in the
// list with an ID selector referencing the scope context.
// The technique has to be used as well when a leading combinator is used
// as such selectors are not recognized by querySelectorAll.
// Thanks to Andrew Dupont for this technique.
if(d=e,p=t,1===y&&(z.test(e)||F.test(e))){for(
// Expand context for sibling selectors
// We can use :scope instead of the ID hack if the browser
// supports it & if we're not changing the context.
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when
// strict-comparing two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
(p=Y.test(e)&&se(t.parentNode)||t)==t&&m.scope||(
// Capture the context ID, setting it first if necessary
(s=t.getAttribute("id"))?s=I.escapeSelector(s):t.setAttribute("id",s=v)),a=(
// Prefix every selector in the list
u=ue(e)).length;a--;)u[a]=(s?"#"+s:":scope")+" "+he(u[a]);d=u.join(",")}try{return g.apply(n,p.querySelectorAll(d)),n}catch(t){C(e,!0)}finally{s===v&&t.removeAttribute("id")}}}
// All others
return ye(e.replace(O,"$1"),t,n,r)}
/**
 * Create key-value caches of limited size
 * @returns {function(string, object)} Returns the Object data after storing it on itself with
 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
 *	deleting the oldest entry
 */function ee(){var e=[];return function n(r,i){
// Use (key + " ") to avoid collision with native prototype properties
// (see https://github.com/jquery/sizzle/issues/157)
return e.push(r+" ")>t.cacheLength&&
// Only keep the most recent entries
delete n[e.shift()],n[r+" "]=i}}
/**
 * Mark a function for special use by jQuery selector module
 * @param {Function} fn The function to mark
 */function te(e){return e[v]=!0,e}
/**
 * Support testing using an element
 * @param {Function} fn Passed the created element and returns a boolean result
 */function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{
// Remove from its parent by default
t.parentNode&&t.parentNode.removeChild(t),
// release memory in IE
t=null}}
/**
 * Returns a function to use in pseudos for input types
 * @param {String} type
 */function re(e){return function(t){return k(t,"input")&&t.type===e}}
/**
 * Returns a function to use in pseudos for buttons
 * @param {String} type
 */function ie(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}
/**
 * Returns a function to use in pseudos for :enabled/:disabled
 * @param {Boolean} disabled true for :disabled; false for :enabled
 */function ae(e){
// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
return function(t){
// Only certain elements can match :enabled or :disabled
// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
return"form"in t?
// Check for inherited disabledness on relevant non-disabled elements:
// * listed form-associated elements in a disabled fieldset
//   https://html.spec.whatwg.org/multipage/forms.html#category-listed
//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
// * option elements in a disabled optgroup
//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
// All such elements have a "form" property.
t.parentNode&&!1===t.disabled?
// Option elements defer to a parent optgroup if present
"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||
// Where there is no isDisabled, check manually
t.isDisabled!==!e&&X(t)===e:t.disabled===e:"label"in t&&t.disabled===e;
// Remaining elements are neither :enabled nor :disabled
}}
/**
 * Returns a function to use in pseudos for positionals
 * @param {Function} fn
 */function oe(e){return te((function(t){return t=+t,te((function(n,r){
// Match elements found at the specified indexes
for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}
/**
 * Checks a node for validity as a jQuery selector context
 * @param {Element|Object=} context
 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
 */function se(e){return e&&void 0!==e.getElementsByTagName&&e}
/**
 * Sets document-related variables once based on the current document
 * @param {Element|Object} [node] An element or document object to use to set the document
 * @returns {Object} Returns the current document
 */function ce(e){var n,r=e?e.ownerDocument||e:L;
// Return early if doc is invalid or already selected
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
return r!=c&&9===r.nodeType&&r.documentElement?(
// Update global variables
l=(c=r).documentElement,h=!I.isXMLDoc(c),
// Support: iOS 7 only, IE 9 - 11+
// Older browsers didn't support unprefixed `matches`.
p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,
// Support: IE 9 - 11+, Edge 12 - 18+
// Accessing iframe documents after unload throws "permission denied" errors
// (see trac-13936).
// Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`,
// all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well.
l.msMatchesSelector&&
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
L!=c&&(n=c.defaultView)&&n.top!==n&&
// Support: IE 9 - 11+, Edge 12 - 18+
n.addEventListener("unload",J),
// Support: IE <10
// Check if getElementById returns elements by name
// The broken getElementById methods don't pick up programmatically-set names,
// so use a roundabout getElementsByName test
m.getById=ne((function(e){return l.appendChild(e).id=I.expando,!c.getElementsByName||!c.getElementsByName(I.expando).length})),
// Support: IE 9 only
// Check to see if it's possible to do matchesSelector
// on a disconnected node.
m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),
// Support: IE 9 - 11+, Edge 12 - 18+
// IE/Edge don't support the :scope pseudo-class.
m.scope=ne((function(){return c.querySelectorAll(":scope")})),
// Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only
// Make sure the `:has()` argument is parsed unforgivingly.
// We include `*` in the test to detect buggy implementations that are
// _selectively_ forgiving (specifically when the list includes at least
// one valid selector).
// Note that we treat complete lack of support for `:has()` as if it were
// spec-compliant support, which is fine because use of `:has()` in such
// environments will fail in the qSA path and fall back to jQuery traversal
// anyway.
m.cssHas=ne((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),
// ID filter and find
m.getById?(t.filter.ID=function(e){var t=e.replace(K,$);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(K,$);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},
// Support: IE 6 - 7 only
// getElementById is not reliable as a find shortcut
t.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,r,i,a=t.getElementById(e);if(a){if((
// Verify the id attribute
n=a.getAttributeNode("id"))&&n.value===e)return[a];
// Fall back on getElementsByName
for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),
// Tag
t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},
// Class
t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},
/* QSA/matchesSelector
	---------------------------------------------------------------------- */
// QSA and matchesSelector support
f=[],
// Build QSA regex
// Regex strategy adopted from Diego Perini
ne((function(e){var t;l.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",
// Support: iOS <=7 - 8 only
// Boolean attributes and "value" are not treated correctly in some XML documents
e.querySelectorAll("[selected]").length||f.push("\\["+T+"*(?:value|"+E+")"),
// Support: iOS <=7 - 8 only
e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),
// Support: iOS 8 only
// https://bugs.webkit.org/show_bug.cgi?id=136851
// In-page `selector#id sibling-combinator selector` fails
e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),
// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+
// In some of the document kinds, these selectors wouldn't work natively.
// This is probably OK but for backwards compatibility we want to maintain
// handling them through jQuery traversal in jQuery 3.x.
e.querySelectorAll(":checked").length||f.push(":checked"),(
// Support: Windows 8 Native Apps
// The type and name attributes are restricted during .innerHTML assignment
t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),
// Support: IE 9 - 11+
// IE's :disabled selector does not pick up the children of disabled fieldsets
// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+
// In some of the document kinds, these selectors wouldn't work natively.
// This is probably OK but for backwards compatibility we want to maintain
// handling them through jQuery traversal in jQuery 3.x.
l.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(
// Support: IE 11+, Edge 15 - 18+
// IE 11/Edge don't find elements on a `[name='']` query in some cases.
// Adding a temporary attribute to the document before the selection works
// around the issue.
// Interestingly, IE 10 & older don't seem to have the issue.
t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+T+"*name"+T+"*="+T+"*(?:''|\"\")")})),m.cssHas||
// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+
// Our regular `try-catch` mechanism fails to detect natively-unsupported
// pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`)
// in browsers that parse the `:has()` argument as a forgiving selector list.
// https://drafts.csswg.org/selectors/#relational now requires the argument
// to be parsed unforgivingly, but browsers have not yet fully adjusted.
f.push(":has"),f=f.length&&new RegExp(f.join("|")),
/* Sorting
	---------------------------------------------------------------------- */
// Document order sorting
_=function(e,t){
// Flag for duplicate removal
if(e===t)return o=!0,0;
// Sort on method existence if only one input has compareDocumentPosition
var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(
// Disconnected nodes
1&(
// Calculate position if both inputs belong to the same document
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):
// Otherwise we know they are disconnected
1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?
// Choose the first element that is related to our preferred document
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
e===c||e.ownerDocument==L&&Z.contains(L,e)?-1:
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
t===c||t.ownerDocument==L&&Z.contains(L,t)?1:i?u.call(i,e)-u.call(i,t):0:4&n?-1:1)},c):c}
// Add button/input type pseudos
for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(ce(e),h&&!C[t+" "]&&(!f||!f.test(t)))try{var n=p.call(e,t);
// IE 9's matchesSelector returns false on disconnected nodes
if(n||m.disconnectedMatch||
// As well, disconnected nodes are said to be in a document
// fragment in IE 9
e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return Z(t,c,null,[e]).length>0},Z.contains=function(e,t){
// Set document vars if needed
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
return(e.ownerDocument||e)!=c&&ce(e),I.contains(e,t)},Z.attr=function(e,n){
// Set document vars if needed
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
(e.ownerDocument||e)!=c&&ce(e);var r=t.attrHandle[n.toLowerCase()],
// Don't get fooled by Object.prototype properties (see trac-13807)
i=r&&d.call(t.attrHandle,n.toLowerCase())?r(e,n,!h):void 0;return void 0!==i?i:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},
/**
 * Document sorting and removing duplicates
 * @param {ArrayLike} results
 */
I.uniqueSort=function(e){var t,n=[],r=0,a=0;
// Unless we *know* we can detect duplicates, assume their presence

// Support: Android <=4.0+
// Testing for detecting duplicates is unpredictable so instead assume we can't
// depend on duplicate detection in all browsers without a stable sort.
if(o=!m.sortStable,i=!m.sortStable&&s.call(e,0),B.call(e,_),o){for(;t=e[a++];)t===e[a]&&(r=n.push(a));for(;r--;)M.call(e,n[r],1)}
// Clear input after sorting to release objects
// See https://github.com/jquery/sizzle/pull/225
return i=null,e},I.fn.uniqueSort=function(){return this.pushStack(I.uniqueSort(s.apply(this)))},t=I.expr={
// Can be adjusted by the user
cacheLength:50,createPseudo:te,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,$),
// Move the given value to match[3] whether quoted or unquoted
e[3]=(e[3]||e[4]||e[5]||"").replace(K,$),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){
/* matches from matchExpr["CHILD"]
				1 type (only|nth|...)
				2 what (child|of-type)
				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
				4 xn-component of xn+y argument ([+-]?\d*n|)
				5 sign of xn-component
				6 x of xn-component
				7 sign of y-component
				8 y of y-component
			*/
return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(
// nth-* requires argument
e[3]||Z.error(e[0]),
// numeric x and y parameters for Expr.filter.CHILD
// remember that false/true cast respectively to 0/1
e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(
// Accept quoted arguments as-is
e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(
// Get excess from tokenize (recursively)
t=ue(n,!0))&&(
// advance to the next closing parenthesis
t=n.indexOf(")",n.length-t)-n.length)&&(
// excess is a negative index
e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,$).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+T+")"+e+"("+T+"|$)"))&&b(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=Z.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?
// Shortcut for :nth-*(n)
function(e){return!!e.parentNode}:function(t,n,c){var l,u,h,f,d,p=a!==o?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),A=!c&&!s,b=!1;if(g){
// :(first|last|only)-(child|of-type)
if(a){for(;p;){for(h=t;h=h[p];)if(s?k(h,m):1===h.nodeType)return!1;
// Reverse direction for :only-* (if we haven't yet done so)
d=p="only"===e&&!d&&"nextSibling"}return!0}
// non-xml :nth-child(...) stores cache data on `parent`
if(d=[o?g.firstChild:g.lastChild],o&&A){for(
// Seek `elem` from a previously-cached index
b=(f=(l=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&l[1])&&l[2],h=f&&g.childNodes[f];h=++f&&h&&h[p]||(
// Fallback to seeking `elem` from the start
b=f=0)||d.pop();)
// When found, cache indexes on `parent` and break
if(1===h.nodeType&&++b&&h===t){u[e]=[y,f,b];break}}else
// xml :nth-child(...)
// or :nth-last-child(...) or :nth(-last)?-of-type(...)
if(
// Use previously-cached element index if available
A&&(b=f=(l=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&l[1]),!1===b)
// Use the same loop as above to seek `elem` from the start
for(;(h=++f&&h&&h[p]||(b=f=0)||d.pop())&&(!(s?k(h,m):1===h.nodeType)||!++b||(
// Cache the index of each encountered element
A&&((u=h[v]||(h[v]={}))[e]=[y,b]),h!==t)););
// Incorporate the offset, then check against cycle size
return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,n){
// pseudo-class names are case-insensitive
// https://www.w3.org/TR/selectors/#pseudo-classes
// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
// Remember that setFilters inherits from pseudos
var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);
// The user may use createPseudo to indicate that
// arguments are needed to create the filter function
// just as jQuery does
return i[v]?i(n):
// But maintain support for old signatures
i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,a=i(e,n),o=a.length;o--;)e[r=u.call(e,a[o])]=!(t[r]=a[o])})):function(e){return i(e,0,r)}):i}},pseudos:{
// Potentially complex pseudos
not:te((function(e){
// Trim the selector passed to compile
// to avoid treating leading and trailing
// spaces as combinators
var t=[],n=[],r=ve(e.replace(O,"$1"));return r[v]?te((function(e,t,n,i){
// Match elements unmatched by `matcher`
for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),
// Don't keep the element
// (see https://github.com/jquery/sizzle/issues/299)
t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(K,$),function(t){return(t.textContent||I.text(t)).indexOf(e)>-1}})),
// "Whether an element is represented by a :lang() selector
// is based solely on the element's language value
// being equal to the identifier C,
// or beginning with the identifier C immediately followed by "-".
// The matching of C against the element's language value is performed case-insensitively.
// The identifier C does not have to be a valid language name."
// https://www.w3.org/TR/selectors/#lang-pseudo
lang:te((function(e){
// lang value must be a valid identifier
return U.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(K,$).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),
// Miscellaneous
target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===l},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},
// Boolean properties
enabled:ae(!1),disabled:ae(!0),checked:function(e){
// In CSS3, :checked should return both checked and selected elements
// https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){
// Support: IE <=11+
// Accessing the selectedIndex property
// forces the browser to treat the default option as
// selected when in an optgroup.
return e.parentNode&&
// eslint-disable-next-line no-unused-expressions
e.parentNode.selectedIndex,!0===e.selected},
// Contents
empty:function(e){
// https://www.w3.org/TR/selectors/#empty-pseudo
// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
//   but not by others (comment: 8; processing instruction: 7; etc.)
// nodeType < 6 works because attributes (2) do not appear as children
for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},
// Element/input types
header:function(e){return W.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(
// Support: IE <10 only
// New HTML5 attribute values (e.g., "search") appear
// with elem.type === "text"
null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},
// Position-in-collection
first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:oe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);
// Easy API for creating new setFilters
function le(){}function ue(e,n){var r,i,a,o,s,c,l,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,c=[],l=t.preFilter;s;){
// Filters
for(o in
// Comma and first run
r&&!(i=N.exec(s))||(i&&(
// Don't consume trailing commas as valid
s=s.slice(i[0].length)||s),c.push(a=[])),r=!1,
// Combinators
(i=F.exec(s))&&(r=i.shift(),a.push({value:r,
// Cast descendant combinators to space
type:i[0].replace(O," ")}),s=s.slice(r.length)),t.filter)!(i=G[o].exec(s))||l[o]&&!(i=l[o](i))||(r=i.shift(),a.push({value:r,type:o,matches:i}),s=s.slice(r.length));if(!r)break}
// Return the length of the invalid excess
// if we're just parsing
// Otherwise, throw an error or return tokens
return n?s.length:s?Z.error(e):
// Cache the tokens
w(e,c).slice(0)}function he(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=A++;return t.first?
// Check against closest ancestor/preceding element
function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:
// Check against all ancestor/preceding elements
function(t,n,c){var l,u,h=[y,s];
// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
if(c){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=t[v]||(t[v]={}),i&&k(t,i))t=t[r]||t;else{if((l=u[a])&&l[0]===y&&l[1]===s)
// Assign to newCache so results back-propagate to previous elements
return h[2]=l[2];
// A match means we're done; a fail means we have to keep checking
if(
// Reuse newcache so results back-propagate to previous elements
u[a]=h,h[2]=e(t,n,c))return!0}return!1}}function de(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),l&&t.push(s)));return o}function ge(e,t,n,r,i,a){return r&&!r[v]&&(r=ge(r)),i&&!i[v]&&(i=ge(i,a)),te((function(a,o,s,c){var l,h,f,d,p=[],m=[],v=o.length,
// Get initial elements from seed or context
y=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Z(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),
// Prefilter to get matcher input, preserving a map for seed-results synchronization
A=!e||!a&&t?y:pe(y,p,e,s,c);
// Apply postFilter
if(n?
// Find primary matches
n(A,
// If we have a postFinder, or filtered seed, or non-seed postFilter
// or preexisting results,
d=i||(a?e:v||r)?
// ...intermediate processing is necessary
[]:
// ...otherwise use results directly
o,s,c):d=A,r)for(l=pe(d,m),r(l,[],s,c),
// Un-match failing elements by moving them back to matcherIn
h=l.length;h--;)(f=l[h])&&(d[m[h]]=!(A[m[h]]=f));if(a){if(i||e){if(i){for(
// Get the final matcherOut by condensing this intermediate into postFinder contexts
l=[],h=d.length;h--;)(f=d[h])&&
// Restore matcherIn since elem is not yet a final match
l.push(A[h]=f);i(null,d=[],l,c)}
// Move matched elements from seed to results to keep them synchronized
for(h=d.length;h--;)(f=d[h])&&(l=i?u.call(a,f):p[h])>-1&&(a[l]=!(o[l]=f))}
// Add elements to results, through postFinder if defined
}else d=pe(d===o?d.splice(v,d.length):d),i?i(null,o,d,c):g.apply(o,d)}))}function me(e){for(var n,i,a,o=e.length,s=t.relative[e[0].type],c=s||t.relative[" "],l=s?1:0,
// The foundational matcher ensures that elements are reachable from top-level context(s)
h=fe((function(e){return e===n}),c,!0),f=fe((function(e){return u.call(n,e)>-1}),c,!0),d=[function(e,t,i){
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
var a=!s&&(i||t!=r)||((n=t).nodeType?h(e,t,i):f(e,t,i));
// Avoid hanging onto element
// (see https://github.com/jquery/sizzle/issues/299)
return n=null,a}];l<o;l++)if(i=t.relative[e[l].type])d=[fe(de(d),i)];else{
// Return special upon seeing a positional matcher
if((i=t.filter[e[l].type].apply(null,e[l].matches))[v]){for(
// Find the next relative operator (if any) for proper handling
a=++l;a<o&&!t.relative[e[a].type];a++);return ge(l>1&&de(d),l>1&&he(
// If the preceding token was a descendant combinator, insert an implicit any-element `*`
e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(O,"$1"),i,l<a&&me(e.slice(l,a)),a<o&&me(e=e.slice(a)),a<o&&he(e))}d.push(i)}return de(d)}function ve(e,n/* Internal Use Only */){var i,a=[],o=[],s=x[e+" "];if(!s){for(
// Generate a function of recursive functions that can be used to check each element
n||(n=ue(e)),i=n.length;i--;)(s=me(n[i]))[v]?a.push(s):o.push(s);
// Cache the compiled function
s=x(e,function(e,n){var i=n.length>0,a=e.length>0,o=function(o,s,l,u,f){var d,p,m,v=0,A="0",b=o&&[],w=[],x=r,
// We must always have either seed elements or outermost context
C=o||a&&t.find.TAG("*",f),
// Use integer dirruns iff this is the outermost matcher
_=y+=null==x?1:Math.random()||.1,E=C.length;
// Add elements passing elementMatchers directly to results
// Support: iOS <=7 - 9 only
// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching
// elements by id. (see trac-14142)
for(f&&(
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
r=s==c||s||f);A!==E&&null!=(d=C[A]);A++){if(a&&d){for(p=0,
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
s||d.ownerDocument==c||(ce(d),l=!h);m=e[p++];)if(m(d,s||c,l)){g.call(u,d);break}f&&(y=_)}
// Track unmatched elements for set filters
i&&(
// They will have gone through all possible matchers
(d=!m&&d)&&v--,
// Lengthen the array for every element, matched or not
o&&b.push(d))}
// `i` is now the count of elements visited above, and adding it to `matchedCount`
// makes the latter nonnegative.
// Apply set filters to unmatched elements
// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
// equals `i`), unless we didn't visit _any_ elements in the above loop because we have
// no element matchers and no seed.
// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
// case, which will result in a "00" `matchedCount` that differs from `i` but is also
// numerically zero.
if(v+=A,i&&A!==v){for(p=0;m=n[p++];)m(b,w,s,l);if(o){
// Reintegrate element matches to eliminate the need for sorting
if(v>0)for(;A--;)b[A]||w[A]||(w[A]=S.call(u));
// Discard index placeholder values to get only actual matches
w=pe(w)}
// Add matches to results
g.apply(u,w),
// Seedless set matches succeeding multiple successful matchers stipulate sorting
f&&!o&&w.length>0&&v+n.length>1&&I.uniqueSort(u)}
// Override manipulation of globals by nested matchers
return f&&(y=_,r=x),b};return i?te(o):o}(o,a)),
// Save selector and tokenization
s.selector=e}return s}
/**
 * A low-level selection function that works with jQuery's compiled
 *  selector functions
 * @param {String|Function} selector A selector or a pre-compiled
 *  selector function built with jQuery selector compile
 * @param {Element} context
 * @param {Array} [results]
 * @param {Array} [seed] A set of elements to match against
 */function ye(e,n,r,i){var a,o,s,c,l,u="function"==typeof e&&e,f=!i&&ue(e=u.selector||e);
// Try to minimize operations if there is only one selector in the list and no seed
// (the latter of which guarantees us context)
if(r=r||[],1===f.length){if((
// Reduce context if the leading compound selector is an ID
o=f[0]=f[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&h&&t.relative[o[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(K,$),n)||[])[0]))return r;
// Precompiled matchers will still verify ancestry, so step up a level
u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}
// Fetch a seed set for right-to-left matching
for(a=G.needsContext.test(e)?0:o.length;a--&&(s=o[a],!t.relative[c=s.type]);)if((l=t.find[c])&&(i=l(s.matches[0].replace(K,$),Y.test(o[0].type)&&se(n.parentNode)||n))){if(
// If seed is empty or no tokens remain, we can return early
o.splice(a,1),!(e=i.length&&he(o)))return g.apply(r,i),r;break}}
// Compile and execute a filtering function if one is not provided
// Provide `match` to avoid retokenization if we modified the selector above
return(u||ve(e,f))(i,n,!h,r,!n||Y.test(e)&&se(n.parentNode)||n),r}
// One-time assignments
// Support: Android <=4.0 - 4.1+
// Sort stability
le.prototype=t.filters=t.pseudos,t.setFilters=new le,m.sortStable=v.split("").sort(_).join("")===v,
// Initialize against the default document
ce(),
// Support: Android <=4.0 - 4.1+
// Detached nodes confoundingly follow *each other*
m.sortDetached=ne((function(e){
// Should return 1, but returns 4 (following)
return 1&e.compareDocumentPosition(c.createElement("fieldset"))})),I.find=Z,
// Deprecated
I.expr[":"]=I.expr.pseudos,I.unique=I.uniqueSort,
// These have always been private, but they used to be documented as part of
// Sizzle so let's maintain them for now for backwards compatibility purposes.
Z.compile=ve,Z.select=ye,Z.setDocument=ce,Z.tokenize=ue,Z.escape=I.escapeSelector,Z.getText=I.text,Z.isXML=I.isXMLDoc,Z.selectors=I.expr,Z.support=I.support,Z.uniqueSort=I.uniqueSort}();var R=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&I(e).is(n))break;r.push(e)}return r},j=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=I.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
// Implement the identical functionality for filter and not
function z(e,t,n){return v(t)?I.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):
// Single element
t.nodeType?I.grep(e,(function(e){return e===t!==n})):
// Arraylike of elements (jQuery, arguments, Array)
"string"!=typeof t?I.grep(e,(function(e){return u.call(t,e)>-1!==n})):I.filter(t,e,n)}I.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?I.find.matchesSelector(r,e)?[r]:[]:I.find.matches(e,I.grep(t,(function(e){return 1===e.nodeType})))},I.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(I(e).filter((function(){for(t=0;t<r;t++)if(I.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)I.find(e,i[t],n);return r>1?I.uniqueSort(n):n},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,
// If this is a positional/relative selector, check membership in the returned set
// so $("p:first").is("p:last") won't return true for a doc with two "p".
"string"==typeof e&&N.test(e)?I(e):e||[],!1).length}});
// Initialize a jQuery object
// A central reference to the root jQuery(document)
var H,
// A simple way to check for HTML strings
// Prioritize #id over <tag> to avoid XSS via location.hash (trac-9521)
// Strict HTML recognition (trac-11290: must start with <)
// Shortcut simple #id case for speed
U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
// Give the init function the jQuery prototype for later instantiation
(I.fn.init=function(e,t,n){var r,i;
// HANDLE: $(""), $(null), $(undefined), $(false)
if(!e)return this;
// Method init() accepts an alternate rootjQuery
// so migrate can support jQuery.sub (gh-2101)
// Handle HTML strings
if(n=n||H,"string"==typeof e){
// Match html or make sure no context is specified for #id
if(!(
// Assume that strings that start and end with <> are HTML and skip the regex check
r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);
// HANDLE: $(DOMElement)
// HANDLE: $(html) -> $(array)
if(r[1]){
// HANDLE: $(html, props)
if(t=t instanceof I?t[0]:t,
// Option to run scripts is true for back-compat
// Intentionally let the error be thrown if parseHTML is not present
I.merge(this,I.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:A,!0)),F.test(r[1])&&I.isPlainObject(t))for(r in t)
// Properties of context are called as methods if possible
v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this;
// HANDLE: $(#id)
}
// HANDLE: $(expr, $(...))
return(i=A.getElementById(r[2]))&&(
// Inject the element directly into the jQuery object
this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):
// Execute immediately if ready is not present
e(I):I.makeArray(e,this)}).prototype=I.fn,
// Initialize central reference
H=I(A);var G=/^(?:parents|prev(?:Until|All))/,
// Methods guaranteed to produce a unique set when starting from a unique set
V={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}I.fn.extend({has:function(e){var t=I(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(I.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&I(e);
// Positional selectors never match, since there's no _selection_ context
if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)
// Always skip document fragments
if(n.nodeType<11&&(o?o.index(n)>-1:
// Don't pass non-elements to jQuery#find
1===n.nodeType&&I.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?I.uniqueSort(a):a)},
// Determine the position of an element within the set
index:function(e){
// No argument, return index in parent
return e?
// Index in selector
"string"==typeof e?u.call(I(e),this[0]):u.call(this,
// If it receives a jQuery object, the first element is used
e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(I.uniqueSort(I.merge(this.get(),I(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),I.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return j((e.parentNode||{}).firstChild,e)},children:function(e){return j(e.firstChild)},contents:function(e){return null!=e.contentDocument&&
// Support: IE 11+
// <object> elements with no `data` attribute has an object
// `contentDocument` with a `null` prototype.
o(e.contentDocument)?e.contentDocument:(
// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
// Treat the template element as a regular one in browsers that
// don't support it.
k(e,"template")&&(e=e.content||e),I.merge([],e.childNodes))}},(function(e,t){I.fn[e]=function(n,r){var i=I.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=I.filter(r,i)),this.length>1&&(
// Remove duplicates
V[e]||I.uniqueSort(i),
// Reverse order for parents* and prev-derivatives
G.test(e)&&i.reverse()),this.pushStack(i)}}));var q=/[^\x20\t\r\n\f]+/g;
// Convert String-formatted options into Object-formatted ones
function Y(e){return e}function K(e){throw e}function $(e,t,n,r){var i;try{
// Check for promise aspect first to privilege synchronous behavior
e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):
// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
// * false: [ value ].slice( 0 ) => resolve( value )
// * true: [ value ].slice( 1 ) => resolve()
t.apply(void 0,[e].slice(r));
// For Promises/A+, convert exceptions into rejections
// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
// Deferred#then to conditionally suppress rejection.
}catch(e){
// Support: Android 4.0 only
// Strict mode functions invoked without .call/.apply get global-object context
n.apply(void 0,[e])}}
/*
 * Create a callback list using the following parameters:
 *
 *	options: an optional list of space-separated options that will change how
 *			the callback list behaves or a more traditional option object
 *
 * By default a callback list will act like an event callback list and can be
 * "fired" multiple times.
 *
 * Possible options:
 *
 *	once:			will ensure the callback list can only be fired once (like a Deferred)
 *
 *	memory:			will keep track of previous values and will call any callback added
 *					after the list has been fired right away with the latest "memorized"
 *					values (like a Deferred)
 *
 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
 *
 *	stopOnFalse:	interrupt callings when a callback returns false
 *
 */
I.Callbacks=function(e){
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
e="string"==typeof e?function(e){var t={};return I.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}(e):I.extend({},e);var// Flag to know if list is currently firing
t,
// Last fire value for non-forgettable lists
n,
// Flag to know if list was already fired
r,
// Flag to prevent firing
i,
// Actual callback list
a=[],
// Queue of execution data for repeatable lists
o=[],
// Index of currently firing callback (modified by add/remove as needed)
s=-1,
// Fire callbacks
c=function(){for(
// Enforce single-firing
i=i||e.once,
// Execute callbacks for all pending executions,
// respecting firingIndex overrides and runtime changes
r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)
// Run callback and check for early termination
!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(
// Jump to end and forget the data so .add doesn't re-fire
s=a.length,n=!1);
// Forget the data if we're done with it
e.memory||(n=!1),t=!1,
// Clean up if we're done firing for good
i&&(
// Keep an empty list if we have data for future add calls
a=n?[]:"")},
// Actual Callbacks object
l={
// Add a callback or a collection of callbacks to the list
add:function(){return a&&(
// If we have memory from a past run, we should fire after adding
n&&!t&&(s=a.length-1,o.push(n)),function t(n){I.each(n,(function(n,r){v(r)?e.unique&&l.has(r)||a.push(r):r&&r.length&&"string"!==x(r)&&
// Inspect recursively
t(r)}))}(arguments),n&&!t&&c()),this},
// Remove a callback from the list
remove:function(){return I.each(arguments,(function(e,t){for(var n;(n=I.inArray(t,a,n))>-1;)a.splice(n,1),
// Handle firing indexes
n<=s&&s--})),this},
// Check if a given callback is in the list.
// If no argument is given, return whether or not list has callbacks attached.
has:function(e){return e?I.inArray(e,a)>-1:a.length>0},
// Remove all callbacks from the list
empty:function(){return a&&(a=[]),this},
// Disable .fire and .add
// Abort any current/pending executions
// Clear all callbacks and values
disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},
// Disable .fire
// Also disable .add unless we have memory (since it would have no effect)
// Abort any pending executions
lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},
// Call all callbacks with the given context and arguments
fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||c()),this},
// Call all the callbacks with the given arguments
fire:function(){return l.fireWith(this,arguments),this},
// To know if the callbacks have already been called at least once
fired:function(){return!!r}};return l},I.extend({Deferred:function(e){var t=[
// action, add listener, callbacks,
// ... .then handlers, argument index, [final state]
["notify","progress",I.Callbacks("memory"),I.Callbacks("memory"),2],["resolve","done",I.Callbacks("once memory"),I.Callbacks("once memory"),0,"resolved"],["reject","fail",I.Callbacks("once memory"),I.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},
// Keep pipe for back-compat
pipe:function(){var e=arguments;return I.Deferred((function(n){I.each(t,(function(t,r){
// Map tuples (progress, done, fail) to arguments (done, fail, progress)
var i=v(e[r[4]])&&e[r[4]];
// deferred.progress(function() { bind to newDefer or newDefer.notify })
// deferred.done(function() { bind to newDefer or newDefer.resolve })
// deferred.fail(function() { bind to newDefer or newDefer.reject })
a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var a=0;function o(e,t,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;
// Support: Promises/A+ section 2.3.3.3.3
// https://promisesaplus.com/#point-59
// Ignore double-resolution attempts
if(!(e<a)){
// Support: Promises/A+ section 2.3.1
// https://promisesaplus.com/#point-48
if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");
// Support: Promises/A+ sections 2.3.3.1, 3.5
// https://promisesaplus.com/#point-54
// https://promisesaplus.com/#point-75
// Retrieve `then` only once
l=n&&(
// Support: Promises/A+ section 2.3.4
// https://promisesaplus.com/#point-64
// Only check objects and functions for thenability
"object"==typeof n||"function"==typeof n)&&n.then,
// Handle a returned thenable
v(l)?
// Special processors (notify) just wait for resolution
i?l.call(n,o(a,t,Y,i),o(a,t,K,i)):(
// ...and disregard older resolution values
a++,l.call(n,o(a,t,Y,i),o(a,t,K,i),o(a,t,Y,t.notifyWith))):(
// Only substitute handlers pass on context
// and multiple values (non-spec behavior)
r!==Y&&(s=void 0,c=[n]),
// Process the value(s)
// Default process is resolve
(i||t.resolveWith)(s,c))}},
// Only normal processors (resolve) catch and reject exceptions
u=i?l:function(){try{l()}catch(n){I.Deferred.exceptionHook&&I.Deferred.exceptionHook(n,u.error),
// Support: Promises/A+ section 2.3.3.3.4.1
// https://promisesaplus.com/#point-61
// Ignore post-resolution exceptions
e+1>=a&&(
// Only substitute handlers pass on context
// and multiple values (non-spec behavior)
r!==K&&(s=void 0,c=[n]),t.rejectWith(s,c))}};
// Support: Promises/A+ section 2.3.3.3.1
// https://promisesaplus.com/#point-57
// Re-resolve promises immediately to dodge false rejection from
// subsequent errors
e?u():(
// Call an optional hook to record the error, in case of exception
// since it's otherwise lost when execution goes async
I.Deferred.getErrorHook?u.error=I.Deferred.getErrorHook():I.Deferred.getStackHook&&(u.error=I.Deferred.getStackHook()),n.setTimeout(u))}}return I.Deferred((function(n){
// progress_handlers.add( ... )
t[0][3].add(o(0,n,v(i)?i:Y,n.notifyWith)),
// fulfilled_handlers.add( ... )
t[1][3].add(o(0,n,v(e)?e:Y)),
// rejected_handlers.add( ... )
t[2][3].add(o(0,n,v(r)?r:K))})).promise()},
// Get a promise for this deferred
// If obj is provided, the promise aspect is added to the object
promise:function(e){return null!=e?I.extend(e,i):i}},a={};
// Add list-specific methods
// All done!
return I.each(t,(function(e,n){var o=n[2],s=n[5];
// promise.progress = list.add
// promise.done = list.add
// promise.fail = list.add
i[n[1]]=o.add,
// Handle state
s&&o.add((function(){
// state = "resolved" (i.e., fulfilled)
// state = "rejected"
r=s}),
// rejected_callbacks.disable
// fulfilled_callbacks.disable
t[3-e][2].disable,
// rejected_handlers.disable
// fulfilled_handlers.disable
t[3-e][3].disable,
// progress_callbacks.lock
t[0][2].lock,
// progress_handlers.lock
t[0][3].lock),
// progress_handlers.fire
// fulfilled_handlers.fire
// rejected_handlers.fire
o.add(n[3].fire),
// deferred.notify = function() { deferred.notifyWith(...) }
// deferred.resolve = function() { deferred.resolveWith(...) }
// deferred.reject = function() { deferred.rejectWith(...) }
a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},
// deferred.notifyWith = list.fireWith
// deferred.resolveWith = list.fireWith
// deferred.rejectWith = list.fireWith
a[n[0]+"With"]=o.fireWith})),
// Make the deferred a promise
i.promise(a),
// Call given func if any
e&&e.call(a,a),a},
// Deferred helper
when:function(e){var
// count of uncompleted subordinates
t=arguments.length,
// count of unprocessed arguments
n=t,
// subordinate fulfillment data
r=Array(n),i=s.call(arguments),
// the primary Deferred
a=I.Deferred(),
// subordinate callback factory
o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,i)}};
// Single- and empty arguments are adopted like Promise.resolve
if(t<=1&&($(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||v(i[n]&&i[n].then)))return a.then();
// Multiple arguments are aggregated like Promise.all array elements
for(;n--;)$(i[n],o(n),a.reject);return a.promise()}});
// These usually indicate a programmer mistake during development,
// warn about them ASAP rather than swallowing them by default.
var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
// If `jQuery.Deferred.getErrorHook` is defined, `asyncError` is an error
// captured before the async barrier to get the original error cause
// which may otherwise be hidden.
I.Deferred.exceptionHook=function(e,t){
// Support: IE 8 - 9 only
// Console exists when dev tools are open, which can happen at any time
n.console&&n.console.warn&&e&&J.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},I.readyException=function(e){n.setTimeout((function(){throw e}))};
// The deferred used on DOM ready
var X=I.Deferred();
// The ready event handler and self cleanup method
function Z(){A.removeEventListener("DOMContentLoaded",Z),n.removeEventListener("load",Z),I.ready()}
// Catch cases where $(document).ready() is called
// after the browser event has already occurred.
// Support: IE <=9 - 10 only
// Older IE sometimes signals "interactive" too soon
I.fn.ready=function(e){return X.then(e).catch((function(e){I.readyException(e)})),this},I.extend({
// Is the DOM ready to be used? Set to true once it occurs.
isReady:!1,
// A counter to track how many items to wait for before
// the ready event fires. See trac-6781
readyWait:1,
// Handle when the DOM is ready
ready:function(e){
// Abort if there are pending holds or we're already ready
(!0===e?--I.readyWait:I.isReady)||(
// Remember that the DOM is ready
I.isReady=!0,
// If a normal DOM Ready event fired, decrement, and wait if need be
!0!==e&&--I.readyWait>0||
// If there are functions bound, to execute
X.resolveWith(A,[I]))}}),I.ready.then=X.then,"complete"===A.readyState||"loading"!==A.readyState&&!A.documentElement.doScroll?
// Handle it asynchronously to allow scripts the opportunity to delay ready
n.setTimeout(I.ready):(
// Use the handy event callback
A.addEventListener("DOMContentLoaded",Z),
// A fallback to window.onload, that will always work
n.addEventListener("load",Z));
// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function
var ee=function(e,t,n,r,i,a,o){var s=0,c=e.length,l=null==n;
// Sets many values
if("object"===x(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,a,o);
// Sets one value
else if(void 0!==r&&(i=!0,v(r)||(o=!0),l&&(
// Bulk operations run against the entire set
o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(I(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:
// Gets
l?t.call(e):c?t(e[0],n):a},te=/^-ms-/,ne=/-([a-z])/g;
// Matches dashed string for camelizing
// Used by camelCase as callback to replace()
function re(e,t){return t.toUpperCase()}
// Convert dashed to camelCase; used by the css and data modules
// Support: IE <=9 - 11, Edge 12 - 15
// Microsoft forgot to hump their vendor prefix (trac-9572)
function ie(e){return e.replace(te,"ms-").replace(ne,re)}var ae=function(e){
// Accepts only:
//  - Node
//    - Node.ELEMENT_NODE
//    - Node.DOCUMENT_NODE
//  - Object
//    - Any
return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function oe(){this.expando=I.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(e){
// Check if the owner object already has a cache
var t=e[this.expando];
// If not, create one
return t||(t={},
// We can accept data for non-element nodes in modern browsers,
// but we should not, see trac-8335.
// Always return an empty object.
ae(e)&&(
// If it is a node unlikely to be stringify-ed or looped over
// use plain assignment
e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);
// Handle: [ owner, key, value ] args
// Always use camelCase key (gh-2257)
if("string"==typeof t)i[ie(t)]=n;
// Handle: [ owner, { properties } ] args
else
// Copy the properties one-by-one to the cache object
for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):
// Always use camelCase key (gh-2257)
e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){
// In cases where either:
//   1. No key was specified
//   2. A string key was specified, but no value provided
// Take the "read" path and allow the get method to determine
// which value to return, respectively either:
//   1. The entire cache object
//   2. The data stored at the key
return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(
// When the key is not a string, or both a key and value
// are specified, set or extend (existing objects) with either:
//   1. An object of properties
//   2. A key and value
this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(
// Support array or space separated string of keys
// If key is an array of keys...
// We always set camelCase keys, so remove that.
t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(q)||[]).length;for(;n--;)delete r[t[n]]}
// Remove the expando if there's no more data
(void 0===t||I.isEmptyObject(r))&&(
// Support: Chrome <=35 - 45
// Webkit & Blink performance suffers when deleting properties
// from DOM nodes, so set to undefined instead
// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!I.isEmptyObject(t)}};var se=new oe,ce=new oe,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function he(e,t,n){var r;
// If nothing was found internally, try to fetch any
// data from the HTML5 data-* attribute
if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:
// Only convert to a number if it doesn't change the string
e===+e+""?+e:le.test(e)?JSON.parse(e):e)}(n)}catch(e){}
// Make sure we set the data so it isn't changed later
ce.set(e,t,n)}else n=void 0;return n}I.extend({hasData:function(e){return ce.hasData(e)||se.hasData(e)},data:function(e,t,n){return ce.access(e,t,n)},removeData:function(e,t){ce.remove(e,t)},
// TODO: Now that all calls to _data and _removeData have been replaced
// with direct calls to dataPriv methods, these can be deprecated.
_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),I.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;
// Gets all values
if(void 0===e){if(this.length&&(i=ce.get(a),1===a.nodeType&&!se.get(a,"hasDataAttrs"))){for(n=o.length;n--;)
// Support: IE 11 only
// The attrs elements can be null (trac-14894)
o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=ie(r.slice(5)),he(a,r,i[r]));se.set(a,"hasDataAttrs",!0)}return i}
// Sets multiple values
return"object"==typeof e?this.each((function(){ce.set(this,e)})):ee(this,(function(t){var n;
// The calling jQuery object (element matches) is not empty
// (and therefore has an element appears at this[ 0 ]) and the
// `value` parameter was not undefined. An empty jQuery object
// will result in `undefined` for elem = this[ 0 ] which will
// throw an exception if an attempt to read a data cache is made.
if(a&&void 0===t)return void 0!==(
// Attempt to get data from the cache
// The key will always be camelCased in Data
n=ce.get(a,e))||void 0!==(
// Attempt to "discover" the data in
// HTML5 custom data-* attrs
n=he(a,e))?n:
// We tried really hard, but the data doesn't exist.
void 0;
// Set the data...
this.each((function(){
// We always store the camelCased key
ce.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ce.remove(this,e)}))}}),I.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),
// Speed up dequeue by getting out quickly if this is just a lookup
n&&(!r||Array.isArray(n)?r=se.access(e,t,I.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=I.queue(e,t),r=n.length,i=n.shift(),a=I._queueHooks(e,t);
// If the fx queue is dequeued, always remove the progress sentinel
"inprogress"===i&&(i=n.shift(),r--),i&&(
// Add a progress sentinel to prevent the fx queue from being
// automatically dequeued
"fx"===t&&n.unshift("inprogress"),
// Clear up the last queue stop function
delete a.stop,i.call(e,(function(){I.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},
// Not public - generate a queueHooks object, or return the current one
_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:I.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),I.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?I.queue(this[0],e):void 0===t?this:this.each((function(){var n=I.queue(this,e,t);
// Ensure a hooks for this queue
I._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&I.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){I.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},
// Get a promise resolved when queues of a certain type
// are emptied (fx is the type by default)
promise:function(e,t){var n,r=1,i=I.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=se.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,de=new RegExp("^(?:([+-])=|)("+fe+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=A.documentElement,me=function(e){return I.contains(e.ownerDocument,e)},ve={composed:!0};
// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
// Check attachment across shadow DOM boundaries when possible (gh-3504)
// Support: iOS 10.0-10.2 only
// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
// leading to errors. We need to check for `getRootNode`.
ge.getRootNode&&(me=function(e){return I.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){
// Inline style trumps all
return"none"===(
// isHiddenWithinTree might be called from jQuery#filter function;
// in that case, element will be second argument
e=t||e).style.display||""===e.style.display&&
// Otherwise, check computed style
// Support: Firefox <=43 - 45
// Disconnected elements can have computed display: none, so first confirm that elem is
// in the document.
me(e)&&"none"===I.css(e,"display")};function Ae(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return I.css(e,t,"")},c=s(),l=n&&n[3]||(I.cssNumber[t]?"":"px"),
// Starting value computation is required for potential unit mismatches
u=e.nodeType&&(I.cssNumber[t]||"px"!==l&&+c)&&de.exec(I.css(e,t));if(u&&u[3]!==l){for(
// Support: Firefox <=54
// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
c/=2,
// Trust units reported by jQuery.css
l=l||u[3],
// Iteratively approximate from a nonzero starting point
u=+c||1;o--;)
// Evaluate and update our best guess (doubling guesses that zero out).
// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
I.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,I.style(e,t,u+l),
// Make sure we update the tween properties later on
n=n||[]}return n&&(u=+u||+c||0,
// Apply relative offset (+=/-=) if specified
i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var be={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=I.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),be[r]=i,i)}function xe(e,t){
// Determine new display value for elements that need to change
for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?(
// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
// check is required in this first loop unless we have a nonempty display value (either
// inline or about-to-be-restored)
"none"===n&&(i[a]=se.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[a]=we(r))):"none"!==n&&(i[a]="none",
// Remember what we're overwriting
se.set(r,"display",n)));
// Set the display of the elements in a second loop to avoid constant reflow
for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}I.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?I(this).show():I(this).hide()}))}});var Ce,_e,Ie=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;Ce=A.createDocumentFragment().appendChild(A.createElement("div")),
// Support: Android 4.0 - 4.3 only
// Check state lost if the name is set (trac-11217)
// Support: Windows Web Apps (WWA)
// `name` and `type` must use .setAttribute for WWA (trac-14901)
(_e=A.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),Ce.appendChild(_e),
// Support: Android <=4.1 only
// Older WebKit doesn't clone checked state correctly in fragments
m.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,
// Support: IE <=11 only
// Make sure textarea (and checkbox) defaultValue is properly cloned
Ce.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,
// Support: IE <=9 only
// IE <=9 replaces <option> tags with their contents when inserted outside of
// the select element.
Ce.innerHTML="<option></option>",m.option=!!Ce.lastChild;
// We have to close these tags to support XHTML (trac-13200)
var Se={
// XHTML parsers do not magically insert elements in the
// same way that tag soup parsers do. So we cannot shorten
// this by omitting <tbody> or other required elements.
thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Be(e,t){
// Support: IE <=9 - 11 only
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?I.merge([e],n):n}
// Mark scripts as having already been evaluated
function Me(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Se.tbody=Se.tfoot=Se.colgroup=Se.caption=Se.thead,Se.th=Se.td,
// Support: IE <=9 only
m.option||(Se.optgroup=Se.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Oe(e,t,n,r,i){for(var a,o,s,c,l,u,h=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((a=e[d])||0===a)
// Add nodes directly
if("object"===x(a))
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
I.merge(f,a.nodeType?[a]:a);
// Convert non-html into a text node
else if(Te.test(a)){for(o=o||h.appendChild(t.createElement("div")),
// Deserialize a standard representation
s=(Ee.exec(a)||["",""])[1].toLowerCase(),c=Se[s]||Se._default,o.innerHTML=c[1]+I.htmlPrefilter(a)+c[2],
// Descend through wrappers to the right content
u=c[0];u--;)o=o.lastChild;
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
I.merge(f,o.childNodes),
// Ensure the created nodes are orphaned (trac-12392)
(
// Remember the top-level container
o=h.firstChild).textContent=""}else f.push(t.createTextNode(a));
// Convert html into DOM nodes
// Remove wrapper from fragment
for(h.textContent="",d=0;a=f[d++];)
// Skip elements already in the context collection (trac-4087)
if(r&&I.inArray(a,r)>-1)i&&i.push(a);else
// Capture executables
if(l=me(a),
// Append to fragment
o=Be(h.appendChild(a),"script"),
// Preserve script evaluation history
l&&Me(o),n)for(u=0;a=o[u++];)ke.test(a.type||"")&&n.push(a);return h}var De=/^([^.]*)(?:\.(.+)|)/;function Pe(){return!0}function Le(){return!1}function Qe(e,t,n,r,i,a){var o,s;
// Types can be a map of types/handlers
if("object"==typeof t){for(s in
// ( types-Object, selector, data )
"string"!=typeof n&&(
// ( types-Object, data )
r=r||n,n=void 0),t)Qe(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(
// ( types, fn )
i=n,r=n=void 0):null==i&&("string"==typeof n?(
// ( types, selector, fn )
i=r,r=void 0):(
// ( types, data, fn )
i=r,r=n,n=void 0)),!1===i)i=Le;else if(!i)return e;return 1===a&&(o=i,i=function(e){
// Can use an empty set, since event contains the info
return I().off(e),o.apply(this,arguments)},
// Use same guid so caller can remove using origFn
i.guid=o.guid||(o.guid=I.guid++)),e.each((function(){I.event.add(this,t,i,r,n)}))}
/*
 * Helper functions for managing events -- not part of the public interface.
 * Props to Dean Edwards' addEvent library for many of the ideas.
 */
// Ensure the presence of an event listener that handles manually-triggered
// synthetic events by interrupting progress until reinvoked in response to
// *native* events that it fires directly, ensuring that state changes have
// already occurred before other listeners are invoked.
function Re(e,t,n){
// Missing `isSetup` indicates a trigger call, which must force setup through jQuery.event.add
n?(
// Register the controller as a special universal handler for all event namespaces
se.set(e,t,!1),I.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){
// Interrupt processing of the outer synthetic .trigger()ed event
if(r)(I.event.special[t]||{}).delegateType&&e.stopPropagation();
// If this is a native event triggered above, everything is now in order
// Fire an inner synthetic event with the original arguments
else if(
// Store arguments for use when handling the inner native event
// There will always be at least one argument (an event object), so this array
// will not be confused with a leftover capture object.
r=s.call(arguments),se.set(this,t,r),
// Trigger the native event and capture its result
this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)
// Cancel the outer synthetic event
return e.stopImmediatePropagation(),e.preventDefault(),n;
// If this is an inner synthetic event for an event with a bubbling surrogate
// (focus or blur), assume that the surrogate already propagated from triggering
// the native event and prevent that from happening again here.
// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
// bubbling surrogate propagates *after* the non-bubbling base), but that seems
// less bad than duplication.
}else r&&(
// ...and capture the result
se.set(this,t,I.event.trigger(r[0],r.slice(1),this)),
// Abort handling of the native event by all jQuery handlers while allowing
// native handlers on the same element to run. On target, this is achieved
// by stopping immediate propagation just on the jQuery event. However,
// the native event is re-wrapped by a jQuery one on each level of the
// propagation so the only way to stop it for jQuery is to stop it for
// everyone via native `stopPropagation()`. This is not a problem for
// focus/blur which don't bubble, but it does also stop click on checkboxes
// and radios. We accept this limitation.
e.stopPropagation(),e.isImmediatePropagationStopped=Pe)}})):void 0===se.get(e,t)&&I.event.add(e,t,Pe)}I.event={global:{},add:function(e,t,n,r,i){var a,o,s,c,l,u,h,f,d,p,g,m=se.get(e);
// Only attach events to objects that accept data
if(ae(e))for(
// Caller can pass in an object of custom data in lieu of the handler
n.handler&&(n=(a=n).handler,i=a.selector),
// Ensure that invalid selectors throw exceptions at attach time
// Evaluate against documentElement in case elem is a non-element node (e.g., document)
i&&I.find.matchesSelector(ge,i),
// Make sure that the handler has a unique ID, used to find/remove it later
n.guid||(n.guid=I.guid++),
// Init the element's event structure and main handler, if this is the first
(c=m.events)||(c=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){
// Discard the second event of a jQuery.event.trigger() and
// when an event is called after a page has unloaded
return void 0!==I&&I.event.triggered!==t.type?I.event.dispatch.apply(e,arguments):void 0}),l=(
// Handle multiple events separated by a space
t=(t||"").match(q)||[""]).length;l--;)d=g=(s=De.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),
// There *must* be a type, no attaching namespace-only handlers
d&&(
// If event changes its type, use the special event handlers for the changed type
h=I.event.special[d]||{},
// If selector defined, determine special event api type, otherwise given type
d=(i?h.delegateType:h.bindType)||d,
// Update special based on newly reset type
h=I.event.special[d]||{},
// handleObj is passed to all event handlers
u=I.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&I.expr.match.needsContext.test(i),namespace:p.join(".")},a),
// Init the event handler queue if we're the first
(f=c[d])||((f=c[d]=[]).delegateCount=0,
// Only use addEventListener if the special events handler returns false
h.setup&&!1!==h.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(d,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),
// Add to the element's handler list, delegates in front
i?f.splice(f.delegateCount++,0,u):f.push(u),
// Keep track of which events have ever been used, for event optimization
I.event.global[d]=!0)},
// Detach an event or set of events from an element
remove:function(e,t,n,r,i){var a,o,s,c,l,u,h,f,d,p,g,m=se.hasData(e)&&se.get(e);if(m&&(c=m.events)){for(l=(
// Once for each type.namespace in types; type may be omitted
t=(t||"").match(q)||[""]).length;l--;)
// Unbind all events (on this namespace, if provided) for the element
if(d=g=(s=De.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(h=I.event.special[d]||{},f=c[d=(r?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),
// Remove matching events
o=a=f.length;a--;)u=f[a],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(a,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(e,u));
// Remove generic event handler if we removed something and no more handlers exist
// (avoids potential for endless recursion during removal of special event handlers)
o&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||I.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)I.event.remove(e,d+t[l],n,r,!0);
// Remove data and the expando if it's no longer used
I.isEmptyObject(c)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),
// Make a writable jQuery.Event from the native event object
c=I.event.fix(e),l=(se.get(this,"events")||Object.create(null))[c.type]||[],u=I.event.special[c.type]||{};
// Use the fix-ed jQuery.Event rather than the (read-only) native event
for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];
// Call the preDispatch hook for the mapped type, and let it bail if desired
if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(
// Determine handlers
o=I.event.handlers.call(this,c,l),
// Run delegates first; they may want to stop propagation beneath us
t=0;(i=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!c.isImmediatePropagationStopped();)
// If the event is namespaced, then each handler is only invoked if it is
// specially universal or its namespaces are a superset of the event's.
c.rnamespace&&!1!==a.namespace&&!c.rnamespace.test(a.namespace)||(c.handleObj=a,c.data=a.data,void 0!==(r=((I.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));
// Call the postDispatch hook for the mapped type
return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,a,o,s=[],c=t.delegateCount,l=e.target;
// Find delegate handlers
if(c&&
// Support: IE <=9
// Black-hole SVG <use> instance trees (trac-13180)
l.nodeType&&
// Support: Firefox <=42
// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
// Support: IE 11 only
// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)
// Don't check non-elements (trac-13208)
// Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764)
if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],o={},n=0;n<c;n++)void 0===o[
// Don't conflict with Object.prototype properties (trac-13203)
i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?I(i,this).index(l)>-1:I.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}
// Add the remaining (directly-bound) handlers
return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(I.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[I.expando]?e:new I.Event(e)},special:{load:{
// Prevent triggered image.load events from bubbling to window.load
noBubble:!0},click:{
// Utilize native event to ensure correct state for checkable inputs
setup:function(e){
// For mutual compressibility with _default, replace `this` access with a local var.
// `|| data` is dead code meant only to preserve the variable through minification.
var t=this||e;
// Claim the first handler
// Return false to allow normal processing in the caller
return Ie.test(t.type)&&t.click&&k(t,"input")&&
// dataPriv.set( el, "click", ... )
Re(t,"click",!0),!1},trigger:function(e){
// For mutual compressibility with _default, replace `this` access with a local var.
// `|| data` is dead code meant only to preserve the variable through minification.
var t=this||e;
// Force setup before triggering a click
// Return non-false to allow normal event-path propagation
return Ie.test(t.type)&&t.click&&k(t,"input")&&Re(t,"click"),!0},
// For cross-browser consistency, suppress native .click() on links
// Also prevent it if we're currently inside a leveraged native-event stack
_default:function(e){var t=e.target;return Ie.test(t.type)&&t.click&&k(t,"input")&&se.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){
// Support: Firefox 20+
// Firefox doesn't alert if the returnValue field is not set.
void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},I.removeEvent=function(e,t,n){
// This "if" is needed for plain objects
e.removeEventListener&&e.removeEventListener(t,n)},I.Event=function(e,t){
// Allow instantiation without the 'new' keyword
if(!(this instanceof I.Event))return new I.Event(e,t);
// Event object
e&&e.type?(this.originalEvent=e,this.type=e.type,
// Events bubbling up the document may have been marked as prevented
// by a handler lower down the tree; reflect the correct value.
this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&
// Support: Android <=2.3 only
!1===e.returnValue?Pe:Le,
// Create target properties
// Support: Safari <=6 - 7 only
// Target should not be a text node (trac-504, trac-13143)
this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,
// Put explicitly provided properties onto the event object
t&&I.extend(this,t),
// Create a timestamp if incoming event doesn't have one
this.timeStamp=e&&e.timeStamp||Date.now(),
// Mark it as fixed
this[I.expando]=!0},
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
I.Event.prototype={constructor:I.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Pe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Pe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Pe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},
// Includes all common event props including KeyEvent and MouseEvent specific props
I.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},I.event.addProp),I.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(A.documentMode){
// Support: IE 11+
// Attach a single focusin/focusout handler on the document while someone wants
// focus/blur. This is because the former are synchronous in IE while the latter
// are async. In other browsers, all those handlers are invoked synchronously.
// `handle` from private data would already wrap the event, but we need
// to change the `type` here.
var n=se.get(this,"handle"),r=I.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,
// First, handle focusin/focusout
n(e),
// ...then, handle focus/blur
// focus/blur don't bubble while focusin/focusout do; simulate the former by only
// invoking the handler at the lower level.
r.target===r.currentTarget&&
// The setup part calls `leverageNative`, which, in turn, calls
// `jQuery.event.add`, so event handle will already have been set
// by this point.
n(r)}else
// For non-IE browsers, attach a single capturing handler on the document
// while someone wants focusin/focusout.
I.event.simulate(t,e.target,I.event.fix(e))}I.event.special[e]={
// Utilize native event if possible so blur/focus sequence is correct
setup:function(){var r;
// Claim the first handler
// dataPriv.set( this, "focus", ... )
// dataPriv.set( this, "blur", ... )
if(Re(this,e,!0),!A.documentMode)
// Return false to allow normal processing in the caller
return!1;(
// Support: IE 9 - 11+
// We use the same native handler for focusin & focus (and focusout & blur)
// so we need to coordinate setup & teardown parts between those events.
// Use `delegateType` as the key as `type` is already used by `leverageNative`.
r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){
// Return non-false to allow normal event-path propagation
// Force setup before trigger
return Re(this,e),!0},teardown:function(){var e;if(!A.documentMode)
// Return false to indicate standard teardown should be applied
return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},
// Suppress native focus or blur if we're currently inside
// a leveraged native-event stack
_default:function(t){return se.get(t.target,e)},delegateType:t},
// Support: Firefox <=44
// Firefox doesn't have focus(in | out) events
// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
// focus(in | out) events fire after focus & blur events,
// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
// Support: IE 9 - 11+
// To preserve relative focusin/focus & focusout/blur event order guaranteed on the 3.x branch,
// attach a single handler for both events in IE.
I.event.special[t]={setup:function(){
// Handle: regular nodes (via `this.ownerDocument`), window
// (via `this.document`) & document (via `this`).
var r=this.ownerDocument||this.document||this,i=A.documentMode?this:r,a=se.get(i,t);
// Support: IE 9 - 11+
// We use the same native handler for focusin & focus (and focusout & blur)
// so we need to coordinate setup & teardown parts between those events.
// Use `delegateType` as the key as `type` is already used by `leverageNative`.
a||(A.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=A.documentMode?this:r,a=se.get(i,t)-1;a?se.set(i,t,a):(A.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}})),
// Create mouseenter/leave events using mouseover/out and event-time checks
// so that event delegation works in jQuery.
// Do the same for pointerenter/pointerleave and pointerover/pointerout
// Support: Safari 7 only
// Safari sends mouseenter too often; see:
// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
// for the description of the bug (it existed in older Chrome versions as well).
I.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){I.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;
// For mouseenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
return r&&(r===this||I.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),I.fn.extend({on:function(e,t,n,r){return Qe(this,e,t,n,r)},one:function(e,t,n,r){return Qe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)
// ( event )  dispatched jQuery.Event
return r=e.handleObj,I(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){
// ( types-object [, selector] )
for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(
// ( types [, fn] )
n=t,t=void 0),!1===n&&(n=Le),this.each((function(){I.event.remove(this,e,n,t)}))}});var
// Support: IE <=10 - 11, Edge 12 - 13 only
// In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/
je=/<script|<style|<link/i,
// checked="checked" or checked
Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;
// Prefer a tbody over its parent table for containing new rows
function ze(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&I(e).children("tbody")[0]||e}
// Replace/restore the type attribute of script elements for safe DOM manipulation
function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ge(e,t){var n,r,i,a,o,s;if(1===t.nodeType){
// 1. Copy private data: events, handlers, etc.
if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)I.event.add(t,i,s[i][n]);
// 2. Copy user data
ce.hasData(e)&&(a=ce.access(e),o=I.extend({},a),ce.set(t,o))}}
// Fix IE bugs, see support tests
function Ve(e,t){var n=t.nodeName.toLowerCase();
// Fails to persist the checked state of a cloned checkbox or radio button.
"input"===n&&Ie.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){
// Flatten any nested arrays
t=c(t);var i,a,o,s,l,u,h=0,f=e.length,d=f-1,p=t[0],g=v(p);
// We can't cloneNode fragments that contain checked, in WebKit
if(g||f>1&&"string"==typeof p&&!m.checkClone&&Ne.test(p))return e.each((function(i){var a=e.eq(i);g&&(t[0]=p.call(this,i,a.html())),We(a,t,n,r)}));if(f&&(a=(i=Oe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){
// Use the original fragment for the last item
// instead of the first because it can end up
// being emptied incorrectly in certain situations (trac-8070).
for(s=(o=I.map(Be(i,"script"),He)).length;h<f;h++)l=i,h!==d&&(l=I.clone(l,!0,!0),
// Keep references to cloned scripts for later restoration
s&&
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
I.merge(o,Be(l,"script"))),n.call(e[h],l,h);if(s)
// Evaluate executable scripts on first document insertion
for(u=o[o.length-1].ownerDocument,
// Re-enable scripts
I.map(o,Ue),h=0;h<s;h++)l=o[h],ke.test(l.type||"")&&!se.access(l,"globalEval")&&I.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?
// Optional AJAX dependency, but won't run scripts if not present
I._evalUrl&&!l.noModule&&I._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):
// Unwrap a CDATA section containing script contents. This shouldn't be
// needed as in XML documents they're already not visible when
// inspecting element contents and in HTML documents they have no
// meaning but we're preserving that logic for backwards compatibility.
// This will be removed completely in 4.0. See gh-4904.
w(l.textContent.replace(Fe,""),l,u))}return e}function qe(e,t,n){for(var r,i=t?I.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||I.cleanData(Be(r)),r.parentNode&&(n&&me(r)&&Me(Be(r,"script")),r.parentNode.removeChild(r));return e}I.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),c=me(e);
// Fix IE cloning issues
if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||I.isXMLDoc(e)))for(
// We eschew jQuery#find here for performance reasons:
// https://jsperf.com/getall-vs-sizzle/2
o=Be(s),r=0,i=(a=Be(e)).length;r<i;r++)Ve(a[r],o[r]);
// Copy the events from the original to the clone
if(t)if(n)for(a=a||Be(e),o=o||Be(s),r=0,i=a.length;r<i;r++)Ge(a[r],o[r]);else Ge(e,s);
// Preserve script evaluation history
// Return the cloned set
return(o=Be(s,"script")).length>0&&Me(o,!c&&Be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=I.event.special,a=0;void 0!==(n=e[a]);a++)if(ae(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?I.event.remove(n,r):I.removeEvent(n,r,t.handle);
// Support: Chrome <=35 - 45+
// Assign undefined instead of using delete, see Data#remove
n[se.expando]=void 0}n[ce.expando]&&(
// Support: Chrome <=35 - 45+
// Assign undefined instead of using delete, see Data#remove
n[ce.expando]=void 0)}}}),I.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?I.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(
// Prevent memory leaks
I.cleanData(Be(e,!1)),
// Remove any remaining nodes
e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return I.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;
// See if we can take a shortcut and just use innerHTML
if("string"==typeof e&&!je.test(e)&&!Se[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=I.htmlPrefilter(e);try{for(;n<r;n++)
// Remove element nodes and prevent memory leaks
1===(t=this[n]||{}).nodeType&&(I.cleanData(Be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];
// Make the changes, replacing each non-ignored context element with the new content
return We(this,arguments,(function(t){var n=this.parentNode;I.inArray(this,e)<0&&(I.cleanData(Be(this)),n&&n.replaceChild(t,this));
// Force callback invocation
}),e)}}),I.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){I.fn[e]=function(e){for(var n,r=[],i=I(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),I(i[o])[t](n),
// Support: Android <=4.0 only, PhantomJS 1 only
// .get() because push.apply(_, arraylike) throws on ancient WebKit
l.apply(r,n.get());return this.pushStack(r)}}));var Ye=new RegExp("^("+fe+")(?!px)[a-z%]+$","i"),Ke=/^--/,$e=function(e){
// Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)
// IE throws on elements created in popups
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Je=function(e,t,n){var r,i,a={};
// Remember the old values, and insert the new ones
for(i in t)a[i]=e.style[i],e.style[i]=t[i];
// Revert the old values
for(i in r=n.call(e),t)e.style[i]=a[i];return r},Xe=new RegExp(pe.join("|"),"i");function Ze(e,t,n){var r,i,a,o,s=Ke.test(t),
// Support: Firefox 51+
// Retrieving style before computed somehow
// fixes an issue with getting wrong values
// on detached elements
c=e.style;
// getPropertyValue is needed for:
//   .css('filter') (IE 9 only, trac-12537)
//   .css('--customProperty) (gh-3144)
return(n=n||$e(e))&&(
// Support: IE <=9 - 11+
// IE only supports `"float"` in `getPropertyValue`; in computed styles
// it's only available as `"cssFloat"`. We no longer modify properties
// sent to `.css()` apart from camelCasing, so we need to check both.
// Normally, this would create difference in behavior: if
// `getPropertyValue` returns an empty string, the value returned
// by `.css()` would be `undefined`. This is usually the case for
// disconnected elements. However, in IE even disconnected elements
// with no styles return `"none"` for `getPropertyValue( "float" )`
o=n.getPropertyValue(t)||n[t],s&&o&&(
// Support: Firefox 105+, Chrome <=105+
// Spec requires trimming whitespace for custom properties (gh-4926).
// Firefox only trims leading whitespace. Chrome just collapses
// both leading & trailing whitespace to a single space.
// Fall back to `undefined` if empty string returned.
// This collapses a missing definition with property defined
// and set to an empty string but there's no standard API
// allowing us to differentiate them without a performance penalty
// and returning `undefined` aligns with older jQuery.
// rtrimCSS treats U+000D CARRIAGE RETURN and U+000C FORM FEED
// as whitespace while CSS does not, but this is not a problem
// because CSS preprocessing replaces them with U+000A LINE FEED
// (which *is* CSS whitespace)
// https://www.w3.org/TR/css-syntax-3/#input-preprocessing
o=o.replace(O,"$1")||void 0),""!==o||me(e)||(o=I.style(e,t)),
// A tribute to the "awesome hack by Dean Edwards"
// Android Browser returns percentage for some values,
// but width seems to be reliably pixels.
// This is against the CSSOM draft spec:
// https://drafts.csswg.org/cssom/#resolved-values
!m.pixelBoxStyles()&&Ye.test(o)&&Xe.test(t)&&(
// Remember the original values
r=c.width,i=c.minWidth,a=c.maxWidth,
// Put in the new values to get a computed value out
c.minWidth=c.maxWidth=c.width=o,o=n.width,
// Revert the changed values
c.width=r,c.minWidth=i,c.maxWidth=a)),void 0!==o?
// Support: IE <=9 - 11 only
// IE returns zIndex value as an integer.
o+"":o}function et(e,t){
// Define the hook, we'll check on the first run if it's really needed.
return{get:function(){if(!e())
// Hook needed; redefine it so that the support test is not executed again.
return(this.get=t).apply(this,arguments);
// Hook not needed (or it's not possible to use it due
// to missing dependency), remove it.
delete this.get}}}!function(){
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the second computation.
function e(){
// This is a singleton, we need to execute it only once
if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
c=12===t(e.marginLeft),
// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
// Some styles come back with percentage values, even though they shouldn't
u.style.right="60%",o=36===t(e.right),
// Support: IE 9 - 11 only
// Detect misreporting of content dimensions for box-sizing:border-box elements
i=36===t(e.width),
// Support: IE 9 only
// Detect overflow:scroll screwiness (gh-3699)
// Support: Chrome <=64
// Don't get tricked when zoom affects offsetWidth (gh-4029)
u.style.position="absolute",a=12===t(u.offsetWidth/3),ge.removeChild(l),
// Nullify the div so it wouldn't be stored in the memory and
// it will also be a sign that checks already performed
u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,a,o,s,c,l=A.createElement("div"),u=A.createElement("div");
// Finish early in limited (non-browser) environments
u.style&&(
// Support: IE <=9 - 11 only
// Style of cloned element affects source element cloned (trac-8908)
u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,I.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),a},
// Support: IE 9 - 11+, Edge 15 - 18+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Behavior in IE 9 is more subtle than in newer versions & it passes
// some versions of this test; make sure not to make it pass there!
// Support: Firefox 70+
// Only Firefox includes border widths
// in computed dimensions. (gh-4529)
reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=A.createElement("table"),t=A.createElement("tr"),r=A.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",
// Support: Chrome 86+
// Height set through cssText does not get applied.
// Computed height then comes back as 0.
t.style.height="1px",r.style.height="9px",
// Support: Android 8 Chrome 86+
// In our bodyBackground.html iframe,
// display for all div elements is set to "inline",
// which causes a problem only in Android 8 Chrome 86.
// Ensuring the div is `display: block`
// gets around this issue.
r.style.display="block",ge.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=A.createElement("div").style,rt={};
// Return a vendor-prefixed property or undefined
// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
function it(e){var t=I.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(
// Check for vendor prefixed names
var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var
// Swappable if display is none or starts with table
// except "table", "table-cell", or "table-caption"
// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
at=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function ct(e,t,n){
// Any relative (+/-) values have already been
// normalized at this point
var r=de.exec(t);return r?
// Guard against undefined "subtract", e.g., when used as in cssHooks
Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function lt(e,t,n,r,i,a){var o="width"===t?1:0,s=0,c=0,l=0;
// Adjustment may not be necessary
if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)
// Both box models exclude margin
// Count margin delta separately to only add it after scroll gutter adjustment.
// This is needed to make negative margins work with `outerHeight( true )` (gh-3982).
"margin"===n&&(l+=I.css(e,n+pe[o],!0,i)),
// If we get here with a content-box, we're seeking "padding" or "border" or "margin"
r?(
// For "content", subtract padding
"content"===n&&(c-=I.css(e,"padding"+pe[o],!0,i)),
// For "content" or "padding", subtract border
"margin"!==n&&(c-=I.css(e,"border"+pe[o]+"Width",!0,i))):(
// Add padding
c+=I.css(e,"padding"+pe[o],!0,i),
// For "border" or "margin", add border
"padding"!==n?c+=I.css(e,"border"+pe[o]+"Width",!0,i):s+=I.css(e,"border"+pe[o]+"Width",!0,i));
// Account for positive content-box scroll gutter when requested by providing computedVal
return!r&&a>=0&&(
// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
// Assuming integer scroll gutter, subtract the rest and round down
c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-c-s-.5))||0),c+l}function ut(e,t,n){
// Start with computed style
var r=$e(e),i=(!m.boxSizingReliable()||n)&&"border-box"===I.css(e,"boxSizing",!1,r),a=i,o=Ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);
// Support: Firefox <=54
// Return a confounding non-pixel value or feign ignorance, as appropriate.
if(Ye.test(o)){if(!n)return o;o="auto"}
// Support: IE 9 - 11 only
// Use offsetWidth/offsetHeight for when box sizing is unreliable.
// In those cases, the computed value can be trusted to be border-box.
// Adjust for the element's box model
return(!m.boxSizingReliable()&&i||
// Support: IE 10 - 11+, Edge 15 - 18+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Interestingly, in some cases IE 9 doesn't suffer from this issue.
!m.reliableTrDimensions()&&k(e,"tr")||
// Fall back to offsetWidth/offsetHeight when value is "auto"
// This happens for inline elements with no explicit setting (gh-3571)
"auto"===o||
// Support: Android <=4.1 - 4.3 only
// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
!parseFloat(o)&&"inline"===I.css(e,"display",!1,r))&&
// Make sure the element is visible & connected
e.getClientRects().length&&(i="border-box"===I.css(e,"boxSizing",!1,r),(
// Where available, offsetWidth/offsetHeight approximate border box dimensions.
// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the
// retrieved value as a content box dimension.
a=s in e)&&(o=e[s])),(
// Normalize "" and auto
o=parseFloat(o)||0)+lt(e,t,n||(i?"border":"content"),a,r,
// Provide the current computed size to request scroll gutter calculation (gh-3589)
o)+"px"}function ht(e,t,n,r,i){return new ht.prototype.init(e,t,n,r,i)}I.extend({
// Add in style property hooks for overriding the default
// behavior of getting and setting a style property
cssHooks:{opacity:{get:function(e,t){if(t){
// We should always get a number back from opacity
var n=Ze(e,"opacity");return""===n?"1":n}}}},
// Don't automatically add "px" to these possibly-unitless properties
cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,
// SVG-related
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},
// Add in properties whose names you wish to fix before
// setting or getting the value
cssProps:{},
// Get and set the style property on a DOM Node
style:function(e,t,n,r){
// Don't set styles on text and comment nodes
if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){
// Make sure that we're working with the right name
var i,a,o,s=ie(t),c=Ke.test(t),l=e.style;
// Make sure that we're working with the right name. We don't
// want to query the value if it is a CSS custom property
// since they are user-defined.
// Check if we're setting a value
if(c||(t=it(s)),
// Gets hook for the prefixed version, then unprefixed version
o=I.cssHooks[t]||I.cssHooks[s],void 0===n)
// If a hook was provided get the non-computed value from there
return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:l[t];
// Otherwise just get the value from the style object
// Convert "+=" or "-=" to relative numbers (trac-7345)
"string"===(a=typeof n)&&(i=de.exec(n))&&i[1]&&(n=Ae(e,t,i),
// Fixes bug trac-9237
a="number"),
// Make sure that null and NaN values aren't set (trac-7116)
null!=n&&n==n&&(
// If a number was passed in, add the unit (except for certain CSS properties)
// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
// "px" to a few hardcoded values.
"number"!==a||c||(n+=i&&i[3]||(I.cssNumber[s]?"":"px")),
// background-* props affect original clone's values
m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),
// If a hook was provided, use that value, otherwise just set the specified value
o&&"set"in o&&void 0===(n=o.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,a,o,s=ie(t);
// Make sure that we're working with the right name. We don't
// want to modify the value if it is a CSS custom property
// since they are user-defined.
// Make numeric if forced or a qualifier was provided and val looks numeric
return Ke.test(t)||(t=it(s)),
// If a hook was provided get the computed value from there
(
// Try prefixed name followed by the unprefixed name
o=I.cssHooks[t]||I.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),
// Otherwise, if a way to get the computed value exists, use that
void 0===i&&(i=Ze(e,t,r)),
// Convert "normal" to computed value
"normal"===i&&t in st&&(i=st[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),I.each(["height","width"],(function(e,t){I.cssHooks[t]={get:function(e,n,r){if(n)
// Certain elements can have dimension info if we invisibly show them
// but it must have a current display style that would benefit
return!at.test(I.css(e,"display"))||
// Support: Safari 8+
// Table columns in Safari have non-zero offsetWidth & zero
// getBoundingClientRect().width unless display is changed.
// Support: IE <=11 only
// Running getBoundingClientRect on a disconnected node
// in IE throws an error.
e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Je(e,ot,(function(){return ut(e,t,r)}))},set:function(e,n,r){var i,a=$e(e),
// Only read styles.position if the test has a chance to fail
// to avoid forcing a reflow.
o=!m.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===I.css(e,"boxSizing",!1,a),c=r?lt(e,t,r,s,a):0;
// Account for unreliable border-box dimensions by comparing offset* to computed and
// faking a content-box to get border and padding (gh-3699)
return s&&o&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-lt(e,t,"border",!1,a)-.5)),
// Convert to pixels if value adjustment is needed
c&&(i=de.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=I.css(e,t)),ct(0,n,c)}}})),I.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),
// These hooks are used by animate to expand properties
I.each({margin:"",padding:"",border:"Width"},(function(e,t){I.cssHooks[e+t]={expand:function(n){for(var r=0,i={},
// Assumes a single number if not a string
a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+pe[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(I.cssHooks[e+t].set=ct)})),I.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=$e(e),i=t.length;o<i;o++)a[t[o]]=I.css(e,t[o],!1,r);return a}return void 0!==n?I.style(e,t,n):I.css(e,t)}),e,t,arguments.length>1)}}),I.Tween=ht,ht.prototype={constructor:ht,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||I.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(I.cssNumber[n]?"":"px")},cur:function(){var e=ht.propHooks[this.prop];return e&&e.get?e.get(this):ht.propHooks._default.get(this)},run:function(e){var t,n=ht.propHooks[this.prop];return this.options.duration?this.pos=t=I.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ht.propHooks._default.set(this),this}},ht.prototype.init.prototype=ht.prototype,ht.propHooks={_default:{get:function(e){var t;
// Use a property on the element directly when it is not a DOM element,
// or when there is no matching style property that exists.
return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(
// Passing an empty string as a 3rd parameter to .css will automatically
// attempt a parseFloat and fallback to a string if the parse fails.
// Simple values such as "10px" are parsed to Float;
// complex values such as "rotate(1rad)" are returned as-is.
t=I.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){
// Use step hook for back compat.
// Use cssHook if its there.
// Use .style if available and use plain properties where available.
I.fx.step[e.prop]?I.fx.step[e.prop](e):1!==e.elem.nodeType||!I.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:I.style(e.elem,e.prop,e.now+e.unit)}}},
// Support: IE <=9 only
// Panic based approach to setting things on disconnected nodes
ht.propHooks.scrollTop=ht.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},I.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},I.fx=ht.prototype.init,
// Back compat <1.8 extension point
I.fx.step={};var ft,dt,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){dt&&(!1===A.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(mt):n.setTimeout(mt,I.fx.interval),I.fx.tick())}
// Animations created synchronously will run synchronously
function vt(){return n.setTimeout((function(){ft=void 0})),ft=Date.now()}
// Generate parameters to create a standard animation
function yt(e,t){var n,r=0,i={height:e};
// If we include width, step value is 1 to do all cssExpand values,
// otherwise step value is 2 to skip over Left and Right
for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=pe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function At(e,t,n){for(var r,i=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))
// We're done with this property
return r}function bt(e,t,n){var r,i,a=0,o=bt.prefilters.length,s=I.Deferred().always((function(){
// Don't match elem in the :animated selector
delete c.elem})),c=function(){if(i)return!1;for(var t=ft||vt(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);
// If there's more to do, yield
return s.notifyWith(e,[l,r,n]),r<1&&o?n:(
// If this was an empty animation, synthesize a final progress notification
o||s.notifyWith(e,[l,1,0]),
// Resolve the animation and report its conclusion
s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:I.extend({},t),opts:I.extend(!0,{specialEasing:{},easing:I.easing._default},n),originalProperties:t,originalOptions:n,startTime:ft||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=I.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,
// If we are going to the end, we want to run all the tweens
// otherwise we skip this part
r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);
// Resolve when we played the last frame; otherwise, reject
return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,i,a,o;
// camelCase, specialEasing and expand cssHook pass
for(n in e)if(i=t[r=ie(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=I.cssHooks[r])&&"expand"in o)
// Not quite $.extend, this won't overwrite existing keys.
// Reusing 'index' because we have the correct "name"
for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(u,l.opts.specialEasing);a<o;a++)if(r=bt.prefilters[a].call(l,e,u,l.opts))return v(r.stop)&&(I._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return I.map(u,At,l),v(l.opts.start)&&l.opts.start.call(e,l),
// Attach callbacks from options
l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),I.fx.timer(I.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}I.Animation=I.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Ae(n.elem,e,de.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(q);for(var n,r=0,i=e.length;r<i;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,c,l,u,h="width"in t||"height"in t,f=this,d={},p=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");
// Queue-skipping animations hijack the fx hooks
// Detect show/hide animations
for(r in n.queue||(null==(o=I._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always((function(){
// Ensure the complete handler is called before this completes
f.always((function(){o.unqueued--,I.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],pt.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){
// Pretend to be hidden if this is a "show" and
// there is still data from a stopped show/hide
if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||I.style(e,r)}
// Bail out if this is a no-op like .hide().hide()
if((c=!I.isEmptyObject(t))||!I.isEmptyObject(d))for(r in
// Restrict "overflow" and "display" styles during box animations
h&&1===e.nodeType&&(
// Support: IE <=9 - 11, Edge 12 - 15
// Record all 3 overflow attributes because IE does not infer the shorthand
// from identically-valued overflowX and overflowY and Edge just mirrors
// the overflowX value there.
n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(
// Identify a display type, preferring old show/hide data over the CSS cascade
l=m&&m.display)&&(l=se.get(e,"display")),"none"===(u=I.css(e,"display"))&&(l?u=l:(
// Get nonempty value(s) by temporarily forcing visibility
xe([e],!0),l=e.style.display||l,u=I.css(e,"display"),xe([e]))),
// Animate inline elements as inline-block
("inline"===u||"inline-block"===u&&null!=l)&&"none"===I.css(e,"float")&&(
// Restore the original display value at the end of pure show/hide animations
c||(f.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),
// Implement show/hide animations
c=!1,d)
// General show/hide setup for this element animation
c||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:l}),
// Store hidden/visible for toggle so `.stop().toggle()` "reverses"
a&&(m.hidden=!g),
// Show elements before animating them
g&&xe([e],!0)
/* eslint-disable no-loop-func */,f.done((function(){for(r in
/* eslint-enable no-loop-func */
// The final step of a "hide" animation is actually hiding the element
g||xe([e]),se.remove(e,"fxshow"),d)I.style(e,r,d[r])}))),
// Per-property setup
c=At(g?m[r]:0,r,f),r in m||(m[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),I.speed=function(e,t,n){var r=e&&"object"==typeof e?I.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};
// Go to the end state if fx are off
return I.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in I.fx.speeds?r.duration=I.fx.speeds[r.duration]:r.duration=I.fx.speeds._default),
// Normalize opt.queue - true/undefined/null -> "fx"
null!=r.queue&&!0!==r.queue||(r.queue="fx"),
// Queueing
r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&I.dequeue(this,r.queue)},r},I.fn.extend({fadeTo:function(e,t,n,r){
// Show any hidden elements after setting opacity to 0
return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=I.isEmptyObject(e),a=I.speed(t,n,r),o=function(){
// Operate on a copy of prop so per-property easing won't be lost
var t=bt(this,I.extend({},e),a);
// Empty animations, or finishing resolves immediately
(i||se.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=I.timers,o=se.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&gt.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));
// Start the next in the queue if the last step wasn't forced.
// Timers currently will call their complete callbacks, which
// will dequeue but only if they were gotoEnd.
!t&&n||I.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=I.timers,o=r?r.length:0;
// Enable finishing flag on private data
// Look for any active animations, and finish them
for(n.finish=!0,
// Empty the queue first
I.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));
// Look for any animations in the old queue and finish them
for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);
// Turn off finishing flag
delete n.finish}))}}),I.each(["toggle","show","hide"],(function(e,t){var n=I.fn[t];I.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}})),
// Generate shortcuts for custom animations
I.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){I.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),I.timers=[],I.fx.tick=function(){var e,t=0,n=I.timers;for(ft=Date.now();t<n.length;t++)
// Run the timer and safely remove it when done (allowing for external removal)
(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||I.fx.stop(),ft=void 0},I.fx.timer=function(e){I.timers.push(e),I.fx.start()},I.fx.interval=13,I.fx.start=function(){dt||(dt=!0,mt())},I.fx.stop=function(){dt=null},I.fx.speeds={slow:600,fast:200,
// Default speed
_default:400},
// Based off of the plugin by Clint Helfers, with permission.
I.fn.delay=function(e,t){return e=I.fx&&I.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=A.createElement("input"),t=A.createElement("select").appendChild(A.createElement("option"));e.type="checkbox",
// Support: Android <=4.3 only
// Default value for a checkbox should be "on"
m.checkOn=""!==e.value,
// Support: IE <=11 only
// Must access selectedIndex to make default options select
m.optSelected=t.selected,(
// Support: IE <=11 only
// An input loses its value after becoming a radio
e=A.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var wt,xt=I.expr.attrHandle;I.fn.extend({attr:function(e,t){return ee(this,I.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){I.removeAttr(this,e)}))}}),I.extend({attr:function(e,t,n){var r,i,a=e.nodeType;
// Don't get/set attributes on text, comment and attribute nodes
if(3!==a&&8!==a&&2!==a)
// Fallback to prop when attributes are not supported
return void 0===e.getAttribute?I.prop(e,t,n):(
// Attribute hooks are determined by the lowercase version
// Grab necessary hook if one is defined
1===a&&I.isXMLDoc(e)||(i=I.attrHooks[t.toLowerCase()]||(I.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void I.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=I.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,
// Attribute names can contain non-HTML whitespace characters
// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
i=t&&t.match(q);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),
// Hooks for boolean attributes
wt={set:function(e,t,n){return!1===t?
// Remove boolean attributes when set to false
I.removeAttr(e,n):e.setAttribute(n,n),n}},I.each(I.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=xt[t]||I.find.attr;xt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(
// Avoid an infinite loop by temporarily removing this function from the getter
a=xt[o],xt[o]=i,i=null!=n(e,t,r)?o:null,xt[o]=a),i}}));var Ct=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;
// Strip and collapse whitespace according to HTML spec
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
function It(e){return(e.match(q)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}I.fn.extend({prop:function(e,t){return ee(this,I.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[I.propFix[e]||e]}))}}),I.extend({prop:function(e,t,n){var r,i,a=e.nodeType;
// Don't get/set properties on text, comment and attribute nodes
if(3!==a&&8!==a&&2!==a)return 1===a&&I.isXMLDoc(e)||(
// Fix name and attach hooks
t=I.propFix[t]||t,i=I.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){
// Support: IE <=9 - 11 only
// elem.tabIndex doesn't always return the
// correct value when it hasn't been explicitly set
// Use proper attribute retrieval (trac-12072)
var t=I.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),
// Support: IE <=11 only
// Accessing the selectedIndex property
// forces the browser to respect setting selected
// on the option
// The getter ensures a default option is selected
// when in an optgroup
// eslint rule "no-unused-expressions" is disabled for this code
// since it considers such accessions noop
m.optSelected||(I.propHooks.selected={get:function(e){
/* eslint no-unused-expressions: "off" */
var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){
/* eslint no-unused-expressions: "off" */
var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),I.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){I.propFix[this.toLowerCase()]=this})),I.fn.extend({addClass:function(e){var t,n,r,i,a,o;return v(e)?this.each((function(t){I(this).addClass(e.call(this,t,Et(this)))})):(t=kt(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+It(r)+" "){for(a=0;a<t.length;a++)i=t[a],n.indexOf(" "+i+" ")<0&&(n+=i+" ");
// Only assign if different to avoid unneeded rendering.
o=It(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,r,i,a,o;return v(e)?this.each((function(t){I(this).removeClass(e.call(this,t,Et(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(r=Et(this),
// This expression is here for better compressibility (see addClass)
n=1===this.nodeType&&" "+It(r)+" "){for(a=0;a<t.length;a++)
// Remove *all* instances
for(i=t[a];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");
// Only assign if different to avoid unneeded rendering.
o=It(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,a,o=typeof e,s="string"===o||Array.isArray(e);return v(e)?this.each((function(n){I(this).toggleClass(e.call(this,n,Et(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(s)for(
// Toggle individual class names
a=I(this),i=0;i<n.length;i++)r=n[i],
// Check each className given, space separated list
a.hasClass(r)?a.removeClass(r):a.addClass(r);
// Toggle whole class name
else void 0!==e&&"boolean"!==o||((r=Et(this))&&
// Store className if set
se.set(this,"__className__",r),
// If the element has a class name or if we're passed `false`,
// then remove the whole classname (if there was one, the above saved it).
// Otherwise bring back whatever was previously saved (if anything),
// falling back to the empty string if nothing was stored.
this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+It(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;I.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(
// Treat null/undefined as ""; convert numbers to string
null==(i=r?e.call(this,n,I(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=I.map(i,(function(e){return null==e?"":e+""}))),
// If set returns undefined, fall back to normal setting
(t=I.valHooks[this.type]||I.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=I.valHooks[i.type]||I.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:
// Handle most common string cases
"string"==typeof(n=i.value)?n.replace(St,""):null==n?"":n:void 0}}),I.extend({valHooks:{option:{get:function(e){var t=I.find.attr(e,"value");return null!=t?t:
// Support: IE <=10 - 11 only
// option.text throws exceptions (trac-14686, trac-14858)
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
It(I.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],c=o?a+1:i.length;
// Loop through all the selected options
for(r=a<0?c:o?a:0;r<c;r++)
// Support: IE <=9 only
// IE8-9 doesn't update selected after form reset (trac-2551)
if(((n=i[r]).selected||r===a)&&
// Don't return options that are disabled or in a disabled optgroup
!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){
// We don't need an array for one selects
if(
// Get the specific value for the option
t=I(n).val(),o)return t;
// Multi-Selects return an array
s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=I.makeArray(t),o=i.length;o--;)
/* eslint-disable no-cond-assign */
((r=i[o]).selected=I.inArray(I.valHooks.option.get(r),a)>-1)&&(n=!0)
/* eslint-enable no-cond-assign */;
// Force browsers to behave consistently when non-matching value is set
return n||(e.selectedIndex=-1),a}}}}),
// Radios and checkboxes getter/setter
I.each(["radio","checkbox"],(function(){I.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=I.inArray(I(e).val(),t)>-1}},m.checkOn||(I.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));
// Return jQuery for attributes-only inclusion
var Bt=n.location,Mt={guid:Date.now()},Tt=/\?/;
// Cross-browser xml parsing
I.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;
// Support: IE 9 - 11 only
// IE throws on parseFromString with invalid input.
try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||I.error("Invalid XML: "+(r?I.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};I.extend(I.event,{trigger:function(e,t,r,i){var a,o,s,c,l,u,h,f,p=[r||A],g=d.call(e,"type")?e.type:e,m=d.call(e,"namespace")?e.namespace.split("."):[];
// Don't do events on text and comment nodes
if(o=f=s=r=r||A,3!==r.nodeType&&8!==r.nodeType&&!Ot.test(g+I.event.triggered)&&(g.indexOf(".")>-1&&(
// Namespaced trigger; create a regexp to match event type in handle()
m=g.split("."),g=m.shift(),m.sort()),l=g.indexOf(":")<0&&"on"+g,
// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
(
// Caller can pass in a jQuery.Event object, Object, or just an event type string
e=e[I.expando]?e:new I.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,
// Clean up the event in case it is being reused
e.result=void 0,e.target||(e.target=r),
// Clone any incoming data and prepend the event, creating the handler arg list
t=null==t?[e]:I.makeArray(t,[e]),
// Allow special events to draw outside the lines
h=I.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(r,t))){
// Determine event propagation path in advance, per W3C events spec (trac-9951)
// Bubble up to document, then to window; watch for a global ownerDocument var (trac-9724)
if(!i&&!h.noBubble&&!y(r)){for(c=h.delegateType||g,Ot.test(c+g)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;
// Only add window if we got to document (e.g., not plain obj or detached DOM)
s===(r.ownerDocument||A)&&p.push(s.defaultView||s.parentWindow||n)}
// Fire handlers on the event path
for(a=0;(o=p[a++])&&!e.isPropagationStopped();)f=o,e.type=a>1?c:h.bindType||g,(
// jQuery handler
u=(se.get(o,"events")||Object.create(null))[e.type]&&se.get(o,"handle"))&&u.apply(o,t),(
// Native handler
u=l&&o[l])&&u.apply&&ae(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,
// If nobody prevented the default action, do it now
i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!ae(r)||
// Call a native DOM method on the target with the same name as the event.
// Don't do default actions on window, that's where global variables be (trac-6170)
l&&v(r[g])&&!y(r)&&(
// Don't re-trigger an onFOO event when we call its FOO() method
(s=r[l])&&(r[l]=null),
// Prevent re-triggering of the same event, since we already bubbled it above
I.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,Dt),r[g](),e.isPropagationStopped()&&f.removeEventListener(g,Dt),I.event.triggered=void 0,s&&(r[l]=s)),e.result}
// focus/blur morphs to focusin/out; ensure we're not firing them right now
},
// Piggyback on a donor event to simulate a different one
// Used only for `focus(in | out)` events
simulate:function(e,t,n){var r=I.extend(new I.Event,n,{type:e,isSimulated:!0});I.event.trigger(r,null,t)}}),I.fn.extend({trigger:function(e,t){return this.each((function(){I.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return I.event.trigger(e,t,n,!0)}});var Pt=/\[\]$/,Lt=/\r?\n/g,Qt=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))
// Serialize array item.
I.each(t,(function(t,i){n||Pt.test(e)?
// Treat each array item as a scalar.
r(e,i):
// Item is non-scalar (array or object), encode its numeric index.
jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))
// Serialize scalar item.
r(e,t);else
// Serialize object item.
for(i in t)jt(e+"["+i+"]",t[i],n,r)}
// Serialize an array of form elements or a set of
// key/values into a query string
I.param=function(e,t){var n,r=[],i=function(e,t){
// If value is a function, invoke it and use its return value
var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";
// If an array was passed in, assume that it is an array of form elements.
if(Array.isArray(e)||e.jquery&&!I.isPlainObject(e))
// Serialize the form elements
I.each(e,(function(){i(this.name,this.value)}));else
// If traditional, encode the "old" way (the way 1.3.2 or older
// did it), otherwise encode params recursively.
for(n in e)jt(n,e[n],t,i);
// Return the resulting serialization
return r.join("&")},I.fn.extend({serialize:function(){return I.param(this.serializeArray())},serializeArray:function(){return this.map((function(){
// Can add propHook for "elements" to filter or add form elements
var e=I.prop(this,"elements");return e?I.makeArray(e):this})).filter((function(){var e=this.type;
// Use .is( ":disabled" ) so that fieldset[disabled] works
return this.name&&!I(this).is(":disabled")&&Rt.test(this.nodeName)&&!Qt.test(e)&&(this.checked||!Ie.test(e))})).map((function(e,t){var n=I(this).val();return null==n?null:Array.isArray(n)?I.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var Nt=/%20/g,Ft=/#.*$/,zt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,Gt=/^\/\//,
/* Prefilters
	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
	 * 2) These are called:
	 *    - BEFORE asking for a transport
	 *    - AFTER param serialization (s.data is a string if s.processData is true)
	 * 3) key is the dataType
	 * 4) the catchall symbol "*" can be used
	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
	 */
Vt={},
/* Transports bindings
	 * 1) key is the dataType
	 * 2) the catchall symbol "*" can be used
	 * 3) selection will start with transport dataType and THEN go to "*" if needed
	 */
Wt={},
// Avoid comment-prolog char sequence (trac-10098); must appease lint and evade compression
qt="*/".concat("*"),
// Anchor tag for parsing the document origin
Yt=A.createElement("a");
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
function Kt(e){
// dataTypeExpression is optional and defaults to "*"
return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(q)||[];if(v(n))
// For each dataType in the dataTypeExpression
for(;r=a[i++];)
// Prepend if requested
"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}
// Base inspection function for prefilters and transports
function $t(e,t,n,r){var i={},a=e===Wt;function o(s){var c;return i[s]=!0,I.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||i[l]?a?!(c=l):void 0:(t.dataTypes.unshift(l),o(l),!1)})),c}return o(t.dataTypes[0])||!i["*"]&&o("*")}
// A special extend for ajax options
// that takes "flat" options (not to be deep extended)
// Fixes trac-9887
function Jt(e,t){var n,r,i=I.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&I.extend(!0,e,r),e}
/* Handles responses to an ajax request:
 * - finds the right dataType (mediates between content-type and expected dataType)
 * - returns the corresponding response
 */Yt.href=Bt.href,I.extend({
// Counter for holding the number of active queries
active:0,
// Last-Modified header cache for next request
lastModified:{},etag:{},ajaxSettings:{url:Bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",
/*
		timeout: 0,
		data: null,
		dataType: null,
		username: null,
		password: null,
		cache: null,
		throws: false,
		traditional: false,
		headers: {},
		*/
accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},
// Data converters
// Keys separate source (or catchall "*") and destination types with a single space
converters:{
// Convert anything to text
"* text":String,
// Text to html (true = no transformation)
"text html":!0,
// Evaluate text as a json expression
"text json":JSON.parse,
// Parse text as xml
"text xml":I.parseXML},
// For options that shouldn't be deep extended:
// you can add your own custom options here if
// and when you create one that shouldn't be
// deep extended (see ajaxExtend)
flatOptions:{url:!0,context:!0}},
// Creates a full fledged settings object into target
// with both ajaxSettings and settings fields.
// If target is omitted, writes into ajaxSettings.
ajaxSetup:function(e,t){return t?
// Building a settings object
Jt(Jt(e,I.ajaxSettings),t):
// Extending ajaxSettings
Jt(I.ajaxSettings,e)},ajaxPrefilter:Kt(Vt),ajaxTransport:Kt(Wt),
// Main method
ajax:function(e,t){
// If url is an object, simulate pre-1.5 signature
"object"==typeof e&&(t=e,e=void 0),
// Force options to be an object
t=t||{};var r,
// URL without anti-cache param
i,
// Response headers
a,o,
// timeout handle
s,
// Url cleanup var
c,
// Request state (becomes false upon send and true upon completion)
l,
// To know if global events are to be dispatched
u,
// Loop variable
h,
// uncached part of the url
f,
// Create the final options object
d=I.ajaxSetup({},t),
// Callbacks context
p=d.context||d,
// Context for global events is callbackContext if it is a DOM node or jQuery collection
g=d.context&&(p.nodeType||p.jquery)?I(p):I.event,
// Deferreds
m=I.Deferred(),v=I.Callbacks("once memory"),
// Status-dependent callbacks
y=d.statusCode||{},
// Headers (they are sent all at once)
b={},w={},
// Default abort message
x="canceled",
// Fake xhr
C={readyState:0,
// Builds headers hashtable if needed
getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Ht.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},
// Raw string
getAllResponseHeaders:function(){return l?a:null},
// Caches the header
setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},
// Overrides response content-type header
overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},
// Status-dependent callbacks
statusCode:function(e){var t;if(e)if(l)
// Execute the appropriate callbacks
C.always(e[C.status]);else
// Lazy-add the new callbacks in a way that preserves old ones
for(t in e)y[t]=[y[t],e[t]];return this},
// Cancel the request
abort:function(e){var t=e||x;return r&&r.abort(t),_(0,t),this}};
// Attach deferreds
// A cross-domain request is in order when the origin doesn't match the current origin.
if(m.promise(C),
// Add protocol if not provided (prefilters might expect it)
// Handle falsy url in the settings object (trac-10093: consistency with old signature)
// We also use the url parameter if available
d.url=((e||d.url||Bt.href)+"").replace(Gt,Bt.protocol+"//"),
// Alias method option to type as per ticket trac-12004
d.type=t.method||t.type||d.method||d.type,
// Extract dataTypes list
d.dataTypes=(d.dataType||"*").toLowerCase().match(q)||[""],null==d.crossDomain){c=A.createElement("a");
// Support: IE <=8 - 11, Edge 12 - 15
// IE throws exception on accessing the href property if url is malformed,
// e.g. http://example.com:80x/
try{c.href=d.url,
// Support: IE <=8 - 11 only
// Anchor's host property isn't correctly set when s.url is relative
c.href=c.href,d.crossDomain=Yt.protocol+"//"+Yt.host!=c.protocol+"//"+c.host}catch(e){
// If there is an error parsing the URL, assume it is crossDomain,
// it can be rejected by the transport if it is invalid
d.crossDomain=!0}}
// Convert data if not already a string
// If request was aborted inside a prefilter, stop there
if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=I.param(d.data,d.traditional)),
// Apply prefilters
$t(Vt,d,t,C),l)return C;
// We can fire global events as of now if asked to
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118)
// Check for headers option
for(h in
// Watch for a new set of requests
(u=I.event&&d.global)&&0==I.active++&&I.event.trigger("ajaxStart"),
// Uppercase the type
d.type=d.type.toUpperCase(),
// Determine if request has content
d.hasContent=!Ut.test(d.type),
// Save the URL in case we're toying with the If-Modified-Since
// and/or If-None-Match header later on
// Remove hash to simplify url manipulation
i=d.url.replace(Ft,""),
// More options handling for requests with no content
d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Nt,"+")):(
// Remember the hash so we can put it back
f=d.url.slice(i.length),
// If data is available and should be processed, append data to url
d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Tt.test(i)?"&":"?")+d.data,
// trac-9682: remove data so that it's not used in an eventual retry
delete d.data),
// Add or update anti-cache param if needed
!1===d.cache&&(i=i.replace(zt,"$1"),f=(Tt.test(i)?"&":"?")+"_="+Mt.guid+++f),
// Put hash and anti-cache on the URL that will be requested (gh-1732)
d.url=i+f),
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
d.ifModified&&(I.lastModified[i]&&C.setRequestHeader("If-Modified-Since",I.lastModified[i]),I.etag[i]&&C.setRequestHeader("If-None-Match",I.etag[i])),
// Set the correct header, if data is being sent
(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),
// Set the Accepts header for the server, depending on the dataType
C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+qt+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(h,d.headers[h]);
// Allow custom headers/mimetypes and early abort
if(d.beforeSend&&(!1===d.beforeSend.call(p,C,d)||l))
// Abort if not done already and return
return C.abort();
// Aborting is no longer a cancellation
// If no transport, we auto-abort
if(x="abort",
// Install callbacks on deferreds
v.add(d.complete),C.done(d.success),C.fail(d.error),
// Get transport
r=$t(Wt,d,t,C)){
// If request was aborted inside ajaxSend, stop there
if(C.readyState=1,
// Send global event
u&&g.trigger("ajaxSend",[C,d]),l)return C;
// Timeout
d.async&&d.timeout>0&&(s=n.setTimeout((function(){C.abort("timeout")}),d.timeout));try{l=!1,r.send(b,_)}catch(e){
// Rethrow post-completion exceptions
if(l)throw e;
// Propagate others as results
_(-1,e)}}
// Callback for when everything is done
else _(-1,"No Transport");function _(e,t,o,c){var h,f,A,b,w,x=t;
// Ignore repeat invocations
l||(l=!0,
// Clear timeout if it exists
s&&n.clearTimeout(s),
// Dereference transport for early garbage collection
// (no matter how long the jqXHR object will be used)
r=void 0,
// Cache response headers
a=c||"",
// Set readyState
C.readyState=e>0?4:0,
// Determine if successful
h=e>=200&&e<300||304===e,
// Get response data
o&&(b=function(e,t,n){
// Remove auto dataType and get content-type in the process
for(var r,i,a,o,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));
// Check if we're dealing with a known content-type
if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}
// Check to see if we have a response for the expected dataType
if(c[0]in n)a=c[0];else{
// Try convertible dataTypes
for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){a=i;break}o||(o=i)}
// Or just use first one
a=a||o}
// If we found a dataType
// We add the dataType to the list if needed
// and return the corresponding response
if(a)return a!==c[0]&&c.unshift(a),n[a]}
/* Chain conversions given the request and the original response
 * Also sets the responseXXX fields on the jqXHR instance
 */(d,C,o)),
// Use a noop converter for missing script but not if jsonp
!h&&I.inArray("script",d.dataTypes)>-1&&I.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),
// Convert no matter what (that way responseXXX fields are always set)
b=function(e,t,n,r){var i,a,o,s,c,l={},
// Work with a copy of dataTypes in case we need to modify it for conversion
u=e.dataTypes.slice();
// Create converters map with lowercased keys
if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];
// Convert to each sequential dataType
for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),
// Apply the dataFilter if provided
!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift())
// There's only work to do if current dataType is non-auto
if("*"===a)a=c;
// Convert response if prev dataType is non-auto and differs from current
else if("*"!==c&&c!==a){
// If none found, seek a pair
if(!(
// Seek a direct converter
o=l[c+" "+a]||l["* "+a]))for(i in l)if((
// If conv2 outputs current
s=i.split(" "))[1]===a&&(
// If prev can be converted to accepted input
o=l[c+" "+s[0]]||l["* "+s[0]])){
// Condense equivalence converters
!0===o?o=l[i]:!0!==l[i]&&(a=s[0],u.unshift(s[1]));break}
// Apply converter (if not an equivalence)
if(!0!==o)
// Unless errors are allowed to bubble, catch and return them
if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+c+" to "+a}}}return{state:"success",data:t}}(d,b,C,h),
// If successful, handle type chaining
h?(
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(I.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(I.etag[i]=w)),
// if no content
204===e||"HEAD"===d.type?x="nocontent":304===e?x="notmodified":(x=b.state,f=b.data,h=!(A=b.error))):(
// Extract error from statusText and normalize for non-aborts
A=x,!e&&x||(x="error",e<0&&(e=0))),
// Set data for the fake xhr object
C.status=e,C.statusText=(t||x)+"",
// Success/Error
h?m.resolveWith(p,[f,x,C]):m.rejectWith(p,[C,x,A]),
// Status-dependent callbacks
C.statusCode(y),y=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[C,d,h?f:A]),
// Complete
v.fireWith(p,[C,x]),u&&(g.trigger("ajaxComplete",[C,d]),
// Handle the global AJAX counter
--I.active||I.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return I.get(e,t,n,"json")},getScript:function(e,t){return I.get(e,void 0,t,"script")}}),I.each(["get","post"],(function(e,t){I[t]=function(e,n,r,i){
// The url can be an options object (which then must have .url)
// Shift arguments if data argument was omitted
return v(n)&&(i=i||r,r=n,n=void 0),I.ajax(I.extend({url:e,type:t,dataType:i,data:n,success:r},I.isPlainObject(e)&&e))}})),I.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),I._evalUrl=function(e,t,n){return I.ajax({url:e,
// Make this explicit, since user can override this through ajaxSetup (trac-11264)
type:"GET",dataType:"script",cache:!0,async:!1,global:!1,
// Only evaluate the response if it is successful (gh-4126)
// dataFilter is not invoked for failure responses, so using it instead
// of the default converter is kludgy but it works.
converters:{"text script":function(){}},dataFilter:function(e){I.globalEval(e,t,n)}})},I.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),
// The elements to wrap the target around
t=I(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){I(this).wrapInner(e.call(this,t))})):this.each((function(){var t=I(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){I(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){I(this).replaceWith(this.childNodes)})),this}}),I.expr.pseudos.hidden=function(e){return!I.expr.pseudos.visible(e)},I.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},I.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Xt={
// File protocol always yields status code 0, assume 200
0:200,
// Support: IE <=9 only
// trac-1450: sometimes IE returns 1223 when it should be 204
1223:204},Zt=I.ajaxSettings.xhr();m.cors=!!Zt&&"withCredentials"in Zt,m.ajax=Zt=!!Zt,I.ajaxTransport((function(e){var t,r;
// Cross domain only allowed if supported through XMLHttpRequest
if(m.cors||Zt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();
// Apply custom fields if provided
if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];
// Override mime type if needed
// Set headers
for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),
// X-Requested-With header
// For cross-domain requests, seeing as conditions for a preflight are
// akin to a jigsaw puzzle, we simply never set it to be sure.
// (it can always be set on a per-request basis or even using ajaxSetup)
// For same-domain requests, won't change header if already provided.
e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);
// Callback
t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?
// Support: IE <=9 only
// On a manual native abort, IE9 throws
// errors on any property access that is not readyState
"number"!=typeof s.status?a(0,"error"):a(
// File: protocol always yields status 0; see trac-8605, trac-14207
s.status,s.statusText):a(Xt[s.status]||s.status,s.statusText,
// Support: IE <=9 only
// IE9 has no XHR2 but throws on binary (trac-11426)
// For XHR2 non-text, let the caller handle it (gh-2498)
"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},
// Listen to events
s.onload=t(),r=s.onerror=s.ontimeout=t("error"),
// Support: IE 9 only
// Use onreadystatechange to replace onabort
// to handle uncaught aborts
void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){
// Check readyState before timeout as it changes
4===s.readyState&&
// Allow onerror to be called first,
// but that will not handle a native abort
// Also, save errorCallback to a variable
// as xhr.onerror cannot be accessed
n.setTimeout((function(){t&&r()}))},
// Create the abort callback
t=t("abort");try{
// Do send the request (this may raise an exception)
s.send(e.hasContent&&e.data||null)}catch(e){
// trac-14683: Only rethrow if this hasn't been notified as an error yet
if(t)throw e}},abort:function(){t&&t()}}})),
// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
I.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),
// Install script dataType
I.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return I.globalEval(e),e}}}),
// Handle cache's special case and crossDomain
I.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),
// Bind script tag hack transport
I.ajaxTransport("script",(function(e){var t,n;
// This transport only deals with cross domain or forced-by-attrs requests
if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=I("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),
// Use native DOM manipulation to avoid our domManip AJAX trickery
A.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;
// Default jsonp settings
I.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||I.expando+"_"+Mt.guid++;return this[e]=!0,e}}),
// Detect, normalize options and install callbacks for jsonp requests
I.ajaxPrefilter("json jsonp",(function(e,t,r){var i,a,o,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");
// Handle iff the expected data type is "jsonp" or we have a parameter to set
if(s||"jsonp"===e.dataTypes[0])
// Delegate to script
// Get callback name, remembering preexisting value associated with it
return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,
// Insert callback into url or form data
s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),
// Use data converter to retrieve json after script execution
e.converters["script json"]=function(){return o||I.error(i+" was not called"),o[0]},
// Force json dataType
e.dataTypes[0]="json",
// Install callback
a=n[i],n[i]=function(){o=arguments},
// Clean-up function (fires after converters)
r.always((function(){
// If previous value didn't exist - remove it
void 0===a?I(n).removeProp(i):n[i]=a,
// Save back as free
e[i]&&(
// Make sure that re-using the options doesn't screw things around
e.jsonpCallback=t.jsonpCallback,
// Save the callback name for future use
tn.push(i)),
// Call if it was a function and we have a response
o&&v(a)&&a(o[0]),o=a=void 0})),"script"})),
// Support: Safari 8 only
// In Safari 8 documents created via document.implementation.createHTMLDocument
// collapse sibling forms: the second one becomes a child of the first one.
// Because of that, this security measure has to be disabled in Safari 8.
// https://bugs.webkit.org/show_bug.cgi?id=137337
m.createHTMLDocument=((en=A.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),
// Argument "data" should be string of html
// context (optional): If specified, the fragment will be created in this context,
// defaults to document
// keepScripts (optional): If true, will include scripts passed in the html string
I.parseHTML=function(e,t,n){return"string"!=typeof e?[]:(
// Single tag
"boolean"==typeof t&&(n=t,t=!1),t||(
// Stop scripts or inline event handlers from being executed immediately
// by using document.implementation
m.createHTMLDocument?((
// Set the base href for the created document
// so any parsed elements with URLs
// are based on the document's URL (gh-2965)
r=(t=A.implementation.createHTMLDocument("")).createElement("base")).href=A.location.href,t.head.appendChild(r)):t=A),a=!n&&[],(i=F.exec(e))?[t.createElement(i[1])]:(i=Oe([e],t,a),a&&a.length&&I(a).remove(),I.merge([],i.childNodes)));var r,i,a},
/**
 * Load a url into a page
 */
I.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=It(e.slice(s)),e=e.slice(0,s)),
// If it's a function
v(t)?(
// We assume that it's the callback
n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),
// If we have elements to modify, make the request
o.length>0&&I.ajax({url:e,
// If "type" variable is undefined, then "GET" method will be used.
// Make value of this field explicit since
// user can override it through ajaxSetup method
type:i||"GET",dataType:"html",data:t}).done((function(e){
// Save response for use in complete callback
a=arguments,o.html(r?
// If a selector was specified, locate the right elements in a dummy div
// Exclude scripts to avoid IE 'Permission Denied' errors
I("<div>").append(I.parseHTML(e)).find(r):
// Otherwise use the full result
e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},I.expr.pseudos.animated=function(e){return I.grep(I.timers,(function(t){return e===t.elem})).length},I.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l=I.css(e,"position"),u=I(e),h={};
// Set position first, in-case top/left are set even on static elem
"static"===l&&(e.style.position="relative"),s=u.offset(),a=I.css(e,"top"),c=I.css(e,"left"),
// Need to be able to calculate position if either
// top or left is auto and position is either absolute or fixed
("absolute"===l||"fixed"===l)&&(a+c).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),v(t)&&(
// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
t=t.call(e,n,I.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):u.css(h)}},I.fn.extend({
// offset() relates an element's border box to the document origin
offset:function(e){
// Preserve chaining for setter
if(arguments.length)return void 0===e?this:this.each((function(t){I.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?
// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
// Support: IE <=11 only
// Running getBoundingClientRect on a
// disconnected node in IE throws an error
r.getClientRects().length?(
// Get document-relative position by adding viewport scroll to viewport-relative gBCR
t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},
// position() relates an element's margin box to its offset parent's padding box
// This corresponds to the behavior of CSS absolute positioning
position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};
// position:fixed elements are offset from the viewport, which itself always has zero offset
if("fixed"===I.css(r,"position"))
// Assume position:fixed implies availability of getBoundingClientRect
t=r.getBoundingClientRect();else{for(t=this.offset(),
// Account for the *real* offset parent, which can be the document or its root element
// when a statically positioned element is identified
n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===I.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&(
// Incorporate borders into its offset, since they are outside its content origin
(i=I(e).offset()).top+=I.css(e,"borderTopWidth",!0),i.left+=I.css(e,"borderLeftWidth",!0))}
// Subtract parent offsets and element margins
return{top:t.top-i.top-I.css(r,"marginTop",!0),left:t.left-i.left-I.css(r,"marginLeft",!0)}}},
// This method will return documentElement in the following cases:
// 1) For the element inside the iframe without offsetParent, this method will return
//    documentElement of the parent window
// 2) For the hidden or detached element
// 3) For body or html element, i.e. in case of the html node - it will return itself
// but those exceptions were never presented as a real life use-cases
// and might be considered as more preferable results.
// This logic, however, is not guaranteed and can change at any point in the future
offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===I.css(e,"position");)e=e.offsetParent;return e||ge}))}}),
// Create scrollLeft and scrollTop methods
I.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;I.fn[e]=function(r){return ee(this,(function(e,r,i){
// Coalesce documents and windows
var a;if(y(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),
// Support: Safari <=7 - 9.1, Chrome <=37 - 49
// Add the top/left cssHooks using jQuery.fn.position
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
// getComputedStyle returns percent when specified for top/left/bottom/right;
// rather than make the css module depend on the offset module, just check for it here
I.each(["top","left"],(function(e,t){I.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)
// If curCSS returns percentage, fallback to offset
return n=Ze(e,t),Ye.test(n)?I(e).position()[t]+"px":n}))})),
// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
I.each({Height:"height",Width:"width"},(function(e,t){I.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){
// Margin is only for outerHeight, outerWidth
I.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return ee(this,(function(t,n,i){var a;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:
// Get document width or height
9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?
// Get width or height on the element, requesting but not forcing parseFloat
I.css(t,n,s):
// Set width or height on the element
I.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),I.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){I.fn[t]=function(e){return this.on(t,e)}})),I.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){
// ( namespace ) or ( selector, types [, fn] )
return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),I.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){
// Handle event binding
I.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));
// Support: Android <=4.0 only
// Make sure we trim BOM and NBSP
// Require that the "whitespace run" starts from a non-whitespace
// to avoid O(N^2) behavior when the engine would try matching "\s+$" at each space position.
var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
// Bind a function to a context, optionally partially applying any
// arguments.
// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
// However, it is not slated for removal any time soon
I.proxy=function(e,t){var n,r,i;
// Quick check to determine if target is callable, in the spec
// this throws a TypeError, but we will just return undefined.
if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))
// Simulated bind
return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},
// Set the guid of unique handler to the same of original handler, so it can be removed
i.guid=e.guid=e.guid||I.guid++,i},I.holdReady=function(e){e?I.readyWait++:I.ready(!0)},I.isArray=Array.isArray,I.parseJSON=JSON.parse,I.nodeName=k,I.isFunction=v,I.isWindow=y,I.camelCase=ie,I.type=x,I.now=Date.now,I.isNumeric=function(e){
// As of jQuery 3.0, isNumeric is limited to
// strings and numbers (primitives or objects)
// that can be coerced to finite numbers (gh-2662)
var t=I.type(e);return("number"===t||"string"===t)&&
// parseFloat NaNs numeric-cast false positives ("")
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
// subtraction forces infinities to NaN
!isNaN(e-parseFloat(e))},I.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(r=function(){return I}.apply(t,[]))||(e.exports=r);var
// Map over jQuery in case of overwrite
an=n.jQuery,
// Map over the $ in case of overwrite
on=n.$;return I.noConflict=function(e){return n.$===I&&(n.$=on),e&&n.jQuery===I&&(n.jQuery=an),I},
// Expose jQuery and $ identifiers, even in AMD
// (trac-7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (trac-13566)
void 0===i&&(n.jQuery=n.$=I),I}))},
/***/"11b0":
/***/function(e,t,n){n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"11b09":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"11da":
/***/function(e,t,n){
// 20.2.2.18 Math.imul(x, y)
var r=n("f083"),i=Math.imul;
// some WebKit versions fails with big numbers, some has wrong arity
r(r.S+r.F*n("f937")((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},
/***/"11e2":
/***/function(e,t,n){var r=n("9fe8"),i=n("4759").set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},
/***/1212:
/***/function(e,t,n){"use strict";var r,i,a=n("cfe9"),o=n("b5db"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
// but their correct versions are not interesting for us
i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
// so check `userAgent` even if `.v8` exists, but 0
!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},
/***/"126d":
/***/function(e,t,n){var r=n("6da8"),i=n("aaec"),a=n("d094");
/**
 * Converts `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */e.exports=function(e){return i(e)?a(e):r(e)}},
/***/1276:
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),a=n("d784"),o=n("825a"),s=n("7234"),c=n("1d80"),l=n("4840"),u=n("8aa5"),h=n("50c4"),f=n("577e"),d=n("dc4a"),p=n("14c3"),g=n("9f7f"),m=n("d039"),v=g.UNSUPPORTED_Y,y=Math.min,A=i([].push),b=i("".slice),w=!m((function(){
// eslint-disable-next-line regexp/no-empty-group -- required for testing
var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),x="c"==="abbc".split(/(b)*/)[1]||
// eslint-disable-next-line regexp/no-empty-group -- required for testing
4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
".".split(/()()/).length>1||"".split(/.?/).length;
// @@split logic
a("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[
// `String.prototype.split` method
// https://tc39.es/ecma262/#sec-string.prototype.split
function(t,n){var a=c(this),o=s(t)?void 0:d(t,e);return o?r(o,t,a,n):r(i,f(a),t,n)},
// `RegExp.prototype[@@split]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
// NOTE: This cannot be properly polyfilled in engines that don't support
// the 'y' flag.
function(e,r){var a=o(this),s=f(e);if(!x){var c=n(i,a,s,r,i!==t);if(c.done)return c.value}var d=l(a,RegExp),g=a.unicode,m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"g":"y"),w=new d(v?"^(?:"+a.source+")":a,m),C=void 0===r?4294967295:r>>>0;if(0===C)return[];if(0===s.length)return null===p(w,s)?[s]:[];for(var _=0,I=0,E=[];I<s.length;){w.lastIndex=v?0:I;var k,S=p(w,v?b(s,I):s);if(null===S||(k=y(h(w.lastIndex+(v?I:0)),s.length))===_)I=u(s,I,g);else{if(A(E,b(s,_,I)),E.length===C)return E;for(var B=1;B<=S.length-1;B++)if(A(E,S[B]),E.length===C)return E;I=_=k}}return A(E,b(s,_)),E}]}),x||!w,v)},
/***/1290:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},
/***/1296:
/***/function(e,t,n){
// 20.2.2.21 Math.log10(x)
var r=n("f083");r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},
/***/"129d":
/***/function(e,t,n){"use strict";
/* unused harmony export inBrowser */
/* unused harmony export UA */
/* unused harmony export isIE9 */
/* harmony export (binding) */n.d(t,"a",(function(){return l}));
/**
 * Not type checking this file because flow doesn't like attaching
 * properties to Elements.
 */
var r="undefined"!=typeof window&&window.navigator.userAgent.toLowerCase(),i=r&&r.indexOf("msie 9.0")>0;var a=function(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}("text,number,password,search,email,tel,url");function o(e){e.target.composing=!0}function s(e){
// prevent triggering an input event for no reason
e.target.composing&&(e.target.composing=!1,c(e.target,"input"))}function c(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}
/* istanbul ignore if */function l(e){return e.directive("ant-input",{inserted:function(e,t,n){("textarea"===n.tag||a(e.type))&&(t.modifiers&&t.modifiers.lazy||(e.addEventListener("compositionstart",o),e.addEventListener("compositionend",s),
// Safari < 10.2 & UIWebView doesn't fire compositionend when
// switching focus before confirming composition choice
// this also fixes the issue where some browsers e.g. iOS Chrome
// fires "change" instead of "input" on autocomplete.
e.addEventListener("change",s),
/* istanbul ignore if */
i&&(e.vmodel=!0)))}})}
/* harmony default export */i&&
// http://www.matts411.com/post/internet-explorer-9-oninput/
document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&c(e,"input")})),t.b={install:function(e){l(e)}}},
/***/1310:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function(e){return null!=e&&"object"==typeof e}},
/***/"131a":
/***/function(e,t,n){"use strict";
// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
n("23e7")({target:"Object",stat:!0},{setPrototypeOf:n("d2bb")})},
/***/"134b":
/***/function(e,t,n){"use strict";
/**
 * @ignore
 * event object for dom
 * @author yiminghe@gmail.com
 */function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("4039")),a=r(n("320c")),o=!0,s=!1,c=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function l(e){return null==e}var u=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){l(e.which)&&(e.which=l(t.charCode)?t.keyCode:t.charCode),
// add metaKey to non-Mac browsers (use ctrl for PC 's and Meta for Macs)
void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,i=void 0,a=t.wheelDelta,o=t.axis,s=t.wheelDeltaY,c=t.wheelDeltaX,l=t.detail;
// ie/webkit
a&&(i=a/120),
// gecko
l&&(
// press control e.detail == 1 else e.detail == 3
i=0-(l%3==0?l/3:l)),
// Gecko
void 0!==o&&(o===e.HORIZONTAL_AXIS?(r=0,n=0-i):o===e.VERTICAL_AXIS&&(n=0,r=i)),
// Webkit
void 0!==s&&(r=s/120),void 0!==c&&(n=-1*c/120),
// 默认 deltaY (ie)
n||r||(r=i),void 0!==n&&(
/**
       * deltaX of mousewheel event
       * @property deltaX
       * @member Event.DomEvent.Object
       */
e.deltaX=n),void 0!==r&&(
/**
       * deltaY of mousewheel event
       * @property deltaY
       * @member Event.DomEvent.Object
       */
e.deltaY=r),void 0!==i&&(
/**
       * delta of mousewheel event
       * @property delta
       * @member Event.DomEvent.Object
       */
e.delta=i)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,i=void 0,a=e.target,o=t.button;
// Calculate pageX/Y if missing and clientX/Y available
return a&&l(e.pageX)&&!l(t.clientX)&&(r=(n=a.ownerDocument||document).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),
// which for click: 1 === left; 2 === middle; 3 === right
// do not use button
e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),
// add relatedTarget, if necessary
!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===a?e.toElement:e.fromElement),e}}];function h(){return o}function f(){return s}function d(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;i.default.call(this),this.nativeEvent=e;
// in case dom event has been mark as default prevented by lower dom node
var r=f;"defaultPrevented"in e?r=e.defaultPrevented?h:f:"getPreventDefault"in e?
// https://bugzilla.mozilla.org/show_bug.cgi?id=691151
r=e.getPreventDefault()?h:f:"returnValue"in e&&(r=e.returnValue===s?h:f),this.isDefaultPrevented=r;var a=[],o=void 0,l=void 0,d=c.concat();
// clone properties of the original event object
for(u.forEach((function(e){t.match(e.reg)&&(d=d.concat(e.props),e.fix&&a.push(e.fix))})),o=d.length;o;)this[l=d[--o]]=e[l];
// fix target property, if necessary
for(!this.target&&n&&(this.target=e.srcElement||document),
// check if target is a text node (safari)
this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),o=a.length;o;)(0,a[--o])(this,e);this.timeStamp=e.timeStamp||Date.now()}var p=i.default.prototype;(0,a.default)(d.prototype,p,{constructor:d,preventDefault:function(){var e=this.nativeEvent;
// if preventDefault exists run it on the original event
e.preventDefault?e.preventDefault():
// otherwise set the returnValue property of the original event to FALSE (IE)
e.returnValue=s,p.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;
// if stopPropagation exists run it on the original event
e.stopPropagation?e.stopPropagation():
// otherwise set the cancelBubble property of the original event to TRUE (IE)
e.cancelBubble=o,p.stopPropagation.call(this)}}),t.default=d,e.exports=t.default},
/***/1368:
/***/function(e,t,n){var r,i=n("da03"),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";
/** Used to detect methods masquerading as native. */e.exports=
/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function(e){return!!a&&a in e}},
/***/"13d2":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),a=n("1626"),o=n("1a2d"),s=n("83ab"),c=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){/* empty */}),"length",{value:8}).length})),A=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===g(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){/* empty */}var r=h(e);return o(r,"source")||(r.source=v(A,"string"==typeof t?t:"")),e};
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
// eslint-disable-next-line no-extend-native -- required
Function.prototype.toString=b((function(){return a(this)&&f(this).source||l(this)}),"toString")},
/***/"13d5":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,a=n("a640"),o=n("1212");
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
r({target:"Array",proto:!0,forced:!n("9adc")&&o>79&&o<83||!a("reduce")},{reduce:function(e/* , initialValue */){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},
/***/"13e8":
/***/function(e,t){function n(e){var t=e.toString(16);return 1===t.length&&(t="0"+t),t}function r(e,t,r,i,s){e=o(e),t=o(t),void 0===r&&(r=.5),void 0===i&&(i=1),void 0===s&&(s=1);var c=2*r-1,l=i-s,u=((c*l==-1?c:(c+l)/(1+c*l))+1)/2,h=1-u,f=a(e),d=a(t),p=Math.round(u*f[0]+h*d[0]),g=Math.round(u*f[1]+h*d[1]),m=Math.round(u*f[2]+h*d[2]);return"#"+n(p)+n(g)+n(m)}function i(e,t,n){return r(e,n||"fff",.5,t,1-t)}function a(e){return 3===(e=o(e)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}function o(e){return e.replace("#","")}function s(e,t,n){var r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2,u=0,h=0;if(Math.abs(c)>1e-5){h=l<=.5?c/(o+s):c/(2-o-s);var f=(o-r)/c,d=(o-i)/c,p=(o-a)/c;u=r==o?p-d:i==o?2+f-p:4+d-f,(u*=60)<0&&(u+=360)}return[u,h,l]}
/***/e.exports={lighten:function(e,t){return r("fff",e,t)},// 淡化
darken:function(e,t){return r("000",e,t)},// 加深
mix:r,// 混合
toNum3:a,rgb:i,rgbaToRgb:i,pad2:n,rgbToHsl:s,rrggbbToHsl:function(e){var t=a(e),n=s.apply(0,t);return[n[0].toFixed(0),(100*n[1]).toFixed(3)+"%",(100*n[2]).toFixed(3)+"%"].join(",")}}},
/***/1462:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"b",(function(){/* binding */return M}));
// UNUSED EXPORTS: saveRef
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/objectWithoutProperties.js
var r=n("8e8e"),i=n.n(r),a=n("6042"),o=n.n(a),s=n("41b2"),c=n.n(s),l=n("0464"),u=n("4d91"),h=n("e90a"),f=n("b488"),d=n("18a7"),p=n("4d26"),g=n.n(p),m=n("2b89"),v=n("9b57"),y=n.n(v),A=n("6dd8"),b=n("a3a2"),w=n("7b05"),x=n("daa3"),C=!("undefined"==typeof window||!window.document||!window.document.createElement),_="menuitem-overflowed";
// Fix ssr
C&&n("0cdd");var I={name:"DOMWrap",mixins:[f.a],data:function(){return this.resizeObserver=null,this.mutationObserver=null,
// original scroll size of the list
this.originalTotalWidth=0,
// copy of overflowed items
this.overflowedItems=[],
// cache item of the original items (so we can track the size and order)
this.menuItemSizes=[],{lastVisibleIndex:void 0}},mounted:function(){var e=this;this.$nextTick((function(){if(e.setChildrenWidthAndResize(),1===e.level&&"horizontal"===e.mode){var t=e.$el;if(!t)return;e.resizeObserver=new A.a((function(t){t.forEach(e.setChildrenWidthAndResize)})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(e.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),e.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}))},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect()},methods:{
// get all valid menuItem nodes
getMenuItemNodes:function(){var e=this.$props.prefixCls,t=this.$el;return t?[].slice.call(t.children).filter((function(t){return t.className.split(" ").indexOf(e+"-overflowed-submenu")<0})):[];
// filter out all overflowed indicator placeholder
},getOverflowedSubMenuItem:function(e,t,n){var r=this.$createElement,a=this.$props,o=a.overflowedIndicator,s=a.level,l=a.mode,u=a.prefixCls,h=a.theme;if(1!==s||"horizontal"!==l)return null;
// put all the overflowed item inside a submenu
// with a title of overflow indicator ('...')
var f=this.$slots.default[0],d=Object(x.m)(f),p=(d.title,i()(d,["title"])),g=Object(x.i)(f),v={},y=e+"-overflowed-indicator",A=e+"-overflowed-indicator";0===t.length&&!0!==n?v={display:"none"}:n&&(v={visibility:"hidden",
// prevent from taking normal dom space
position:"absolute"},y+="-placeholder",A+="-placeholder");var w=h?u+"-"+h:"",C={},_={};m.g.props.forEach((function(e){void 0!==p[e]&&(C[e]=p[e])})),m.g.on.forEach((function(e){void 0!==g[e]&&(_[e]=g[e])}));var I={props:c()({title:o,popupClassName:w},C,{eventKey:A,disabled:!1}),class:u+"-overflowed-submenu",key:y,style:v,on:_};return r(b.a,I,[t])},
// memorize rendered menuSize
setChildrenWidthAndResize:function(){if("horizontal"===this.mode){var e=this.$el;if(e){var t=e.children;if(t&&0!==t.length){var n=e.children[t.length-1];
// need last overflowed indicator for calculating length;
Object(m.i)(n,"display","inline-block");var r=this.getMenuItemNodes(),i=r.filter((function(e){return e.className.split(" ").indexOf(_)>=0}));
// reset display attribute for all hidden elements caused by overflow to calculate updated width
// and then reset to original state after width calculation
i.forEach((function(e){Object(m.i)(e,"display","inline-block")})),this.menuItemSizes=r.map((function(e){return Object(m.c)(e)})),i.forEach((function(e){Object(m.i)(e,"display","none")})),this.overflowedIndicatorWidth=Object(m.c)(e.children[e.children.length-1]),this.originalTotalWidth=this.menuItemSizes.reduce((function(e,t){return e+t}),0),this.handleResize(),
// prevent the overflowed indicator from taking space;
Object(m.i)(n,"display","none")}}}},handleResize:function(){var e=this;if("horizontal"===this.mode){var t=this.$el;if(t){var n=Object(m.c)(t);this.overflowedItems=[];var r=0,i=void 0;
// index for last visible child in horizontal mode
// float number comparison could be problematic
// e.g. 0.1 + 0.2 > 0.3 =====> true
// thus using FLOAT_PRECISION_ADJUST as buffer to help the situation
this.originalTotalWidth>n+.5&&(i=-1,this.menuItemSizes.forEach((function(t){(r+=t)+e.overflowedIndicatorWidth<=n&&(i+=1)}))),this.setState({lastVisibleIndex:i})}}},renderChildren:function(e){var t=this,n=this.$data.lastVisibleIndex,r=Object(x.f)(this);
// need to take care of overflowed items in horizontal mode
return(e||[]).reduce((function(i,a,o){var s=a,c=Object(x.m)(a).eventKey;if("horizontal"===t.mode){var l=t.getOverflowedSubMenuItem(c,[]);void 0!==n&&-1!==r[t.prefixCls+"-root"]&&(o>n&&(s=Object(w.a)(a,
// 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件
{style:{display:"none"},props:{eventKey:c+"-hidden"},class:_})),o===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return Object(w.a)(e,
// children[index].key will become '.$key' in clone by default,
// we have to overwrite with the correct key explicitly
{key:Object(x.m)(e).eventKey,props:{mode:"vertical-left"}})})),l=t.getOverflowedSubMenuItem(c,t.overflowedItems)));var u=[].concat(y()(i),[l,s]);return o===e.length-1&&
// need a placeholder for calculating overflowed indicator width
u.push(t.getOverflowedSubMenuItem(c,[],!0)),u}return[].concat(y()(i),[s])}),[])}},render:function(){return(0,arguments[0])(this.$props.tag,{on:Object(x.k)(this)},[this.renderChildren(this.$slots.default)])}};I.props={mode:u.a.oneOf(["horizontal","vertical","vertical-left","vertical-right","inline"]),prefixCls:u.a.string,level:u.a.number,theme:u.a.string,overflowedIndicator:u.a.node,visible:u.a.bool,hiddenClassName:u.a.string,tag:u.a.string.def("div")};
/* harmony default export */var E=I;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-menu/SubPopupMenu.js
function k(e,t,n){var r=e.getState();e.setState({activeKey:c()({},r.activeKey,o()({},t,n))})}function S(e){
// when eventKey not available ,it's menu and return menu id '0-menu-'
return e.eventKey||"0-menu-"}function B(e,t){if(t){var n=this.instanceArrayKeyIndexMap[e];this.instanceArray[n]=t}}function M(e,t){var n=t,r=e.eventKey,i=e.defaultActiveFirst,a=e.children;if(null!=n){var o=void 0;if(Object(m.e)(a,(function(e,t){var i=e.componentOptions.propsData||{};e&&!i.disabled&&n===Object(m.a)(e,r,t)&&(o=!0)})),o)return n}return n=null,i?(Object(m.e)(a,(function(e,t){var i=e.componentOptions.propsData||{};null==n&&e&&!i.disabled&&(n=Object(m.a)(e,r,t))})),n):n}var T={name:"SubPopupMenu",props:Object(x.t)({
// onSelect: PropTypes.func,
// onClick: PropTypes.func,
// onDeselect: PropTypes.func,
// onOpenChange: PropTypes.func,
// onDestroy: PropTypes.func,
prefixCls:u.a.string,openTransitionName:u.a.string,openAnimation:u.a.oneOfType([u.a.string,u.a.object]),openKeys:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.number])),visible:u.a.bool,parentMenu:u.a.object,eventKey:u.a.string,store:u.a.object,
// adding in refactor
focusable:u.a.bool,multiple:u.a.bool,defaultActiveFirst:u.a.bool,activeKey:u.a.oneOfType([u.a.string,u.a.number]),selectedKeys:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.number])),defaultSelectedKeys:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.number])),defaultOpenKeys:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.number])),level:u.a.number,mode:u.a.oneOf(["horizontal","vertical","vertical-left","vertical-right","inline"]),triggerSubMenuAction:u.a.oneOf(["click","hover"]),inlineIndent:u.a.oneOfType([u.a.number,u.a.string]),manualRef:u.a.func,itemIcon:u.a.any,expandIcon:u.a.any,overflowedIndicator:u.a.any,children:u.a.any.def([]),__propsSymbol__:u.a.any},{prefixCls:"rc-menu",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,manualRef:m.h}),mixins:[f.a],created:function(){var e=Object(x.l)(this);this.prevProps=c()({},e),e.store.setState({activeKey:c()({},e.store.getState().activeKey,o()({},e.eventKey,M(e,e.activeKey)))}),this.instanceArray=[]},mounted:function(){
// invoke customized ref to expose component to mixin
this.manualRef&&this.manualRef(this)},updated:function(){var e=Object(x.l)(this),t=this.prevProps,n="activeKey"in e?e.activeKey:e.store.getState().activeKey[S(e)],r=M(e,n);if(r!==n)k(e.store,S(e),r);else if("activeKey"in t){r!==M(t,t.activeKey)&&k(e.store,S(e),r)}this.prevProps=c()({},e)},methods:{
// all keyboard events callbacks run from here at first
onKeyDown:function(e,t){var n=e.keyCode,r=void 0;if(this.getFlatInstanceArray().forEach((function(t){t&&t.active&&t.onKeyDown&&(r=t.onKeyDown(e))})),r)return 1;var i=null;return n!==d.a.UP&&n!==d.a.DOWN||(i=this.step(n===d.a.UP?-1:1)),i?(e.preventDefault(),k(this.$props.store,S(this.$props),i.eventKey),"function"==typeof t&&t(i),1):void 0},onItemHover:function(e){var t=e.key,n=e.hover;k(this.$props.store,S(this.$props),n?t:null)},onDeselect:function(e){this.__emit("deselect",e)},onSelect:function(e){this.__emit("select",e)},onClick:function(e){this.__emit("click",e)},onOpenChange:function(e){this.__emit("openChange",e)},onDestroy:function(e){this.__emit("destroy",e)},getFlatInstanceArray:function(){return this.instanceArray},getOpenTransitionName:function(){return this.$props.openTransitionName},step:function(e){var t=this.getFlatInstanceArray(),n=this.$props.store.getState().activeKey[S(this.$props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());
// find current activeIndex
var i=-1;if(t.every((function(e,t){return!e||e.eventKey!==n||(i=t,!1)})),this.defaultActiveFirst||-1===i||(a=t.slice(i,r-1)).length&&!a.every((function(e){return!!e.disabled}))){var a,o=(i+1)%r,s=o;do{var c=t[s];if(c&&!c.disabled)return c;s=(s+1)%r}while(s!==o);return null}},getIcon:function(e,t){if(e.$createElement){var n=e[t];return void 0!==n?n:e.$slots[t]||e.$scopedSlots[t]}var r=Object(x.m)(e)[t];if(void 0!==r)return r;var i=[];return((e.componentOptions||{}).children||[]).forEach((function(e){e.data&&e.data.slot===t&&("template"===e.tag?i.push(e.children):i.push(e))})),i.length?i:void 0},renderCommonMenuItem:function(e,t,n){var r=this;if(void 0===e.tag)return e;var i=this.$props.store.getState(),a=this.$props,o=Object(m.a)(e,a.eventKey,t),s=e.componentOptions.propsData||{},l=o===i.activeKey[S(this.$props)];s.disabled||(
// manualRef的执行顺序不能保证，使用key映射ref在this.instanceArray中的位置
this.instanceArrayKeyIndexMap[o]=Object.keys(this.instanceArrayKeyIndexMap).length);var u=Object(x.i)(e),h={props:c()({mode:s.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:this.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,
// customized ref function, need to be invoked manually in child's componentDidMount
manualRef:s.disabled?m.h:B.bind(this,o),eventKey:o,active:!s.disabled&&l,multiple:a.multiple,openTransitionName:this.getOpenTransitionName(),openAnimation:a.openAnimation,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,builtinPlacements:a.builtinPlacements,itemIcon:this.getIcon(e,"itemIcon")||this.getIcon(this,"itemIcon"),expandIcon:this.getIcon(e,"expandIcon")||this.getIcon(this,"expandIcon")},n),on:{click:function(e){(u.click||m.h)(e),r.onClick(e)},itemHover:this.onItemHover,openChange:this.onOpenChange,deselect:this.onDeselect,
// destroy: this.onDestroy,
select:this.onSelect}};
// ref: https://github.com/ant-design/ant-design/issues/13943
return("inline"===a.mode||Object(m.d)())&&(h.props.triggerSubMenuAction="click"),Object(w.a)(e,h)},renderMenuItem:function(e,t,n){if(!e)return null;var r=this.$props.store.getState(),i={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:this.triggerSubMenuAction,isRootMenu:!1,subMenuKey:n};return this.renderCommonMenuItem(e,t,i)}},render:function(){var e=this,t=arguments[0],n=i()(this.$props,[]),r=n.eventKey,a=n.prefixCls,o=n.visible,s=n.level,c=n.mode,u=n.theme;this.instanceArray=[],this.instanceArrayKeyIndexMap={};var h=g()(n.prefixCls,n.prefixCls+"-"+n.mode),f={props:{tag:"ul",
// hiddenClassName: `${prefixCls}-hidden`,
visible:o,prefixCls:a,level:s,mode:c,theme:u,overflowedIndicator:Object(x.g)(this,"overflowedIndicator")},attrs:{role:n.role||"menu"},class:h,
// Otherwise, the propagated click event will trigger another onClick
on:Object(l.a)(Object(x.k)(this),["click"])};
// if (props.id) {
//   domProps.id = props.id
// }
return n.focusable&&(f.attrs.tabIndex="0",f.on.keydown=this.onKeyDown),
// ESLint is not smart enough to know that the type of `children` was checked.
/* eslint-disable */t(E,f,[n.children.map((function(t,n){return e.renderMenuItem(t,n,r||"0-menu-")}))])
/*eslint -enable */}};
/* harmony default export */t.a=Object(h.a)()(T)},
/***/"14c3":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),a=n("1626"),o=n("c6b6"),s=n("9263"),c=TypeError;
// `RegExpExec` abstract operation
// https://tc39.es/ecma262/#sec-regexpexec
e.exports=function(e,t){var n=e.exec;if(a(n)){var l=r(n,e,t);return null!==l&&i(l),l}if("RegExp"===o(e))return r(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},
/***/"14c9":
/***/function(e,t,n){"use strict";
// https://github.com/zenparsing/es-observable
var r=n("f083"),i=n("93e0"),a=n("0ae2"),o=n("bde8")(),s=n("de24")("observable"),c=n("2ce8"),l=n("d77f"),u=n("928a"),h=n("c668"),f=n("0713"),d=n("8fc4"),p=d.RETURN,g=function(e){return null==e?void 0:c(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,m(e))},A=function(e,t){l(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(t){return void e.error(t)}v(this)&&m(this)};A.prototype=h({},{unsubscribe:function(){y(this)}});var b=function(e){this._s=e};b.prototype=h({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var r=g(n.next);if(r)return r.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var r=g(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{m(t)}finally{throw e}}return m(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var r=g(n.complete);e=r?r.call(n,e):void 0}catch(e){try{m(t)}finally{throw e}}return m(t),e}}});var w=function(e){u(this,w,"Observable","_f")._f=c(e)};h(w.prototype,{subscribe:function(e){return new A(e,this._f)},forEach:function(e){var t=this;return new(a.Promise||i.Promise)((function(n,r){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})}))}}),h(w,{from:function(e){var t="function"==typeof this?this:w,n=g(l(e)[s]);if(n){var r=l(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return o((function(){if(!n){try{if(d(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:w)((function(e){var t=!1;return o((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),f(w.prototype,s,(function(){return this})),r(r.G,{Observable:w}),n("3a2f")("Observable")},
/***/"14d9":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),a=n("07fa"),o=n("3a34"),s=n("3511");
// `Array.prototype.push` method
// https://tc39.es/ecma262/#sec-array.prototype.push
r({target:"Array",proto:!0,arity:1,forced:n("d039")((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{
// eslint-disable-next-line no-unused-vars -- required for `.length`
push:function(e){var t=i(this),n=a(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return o(t,n),n}})},
/***/"14e5":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("f069"),s=n("e667"),c=n("2266");
// `Promise.all` method
// https://tc39.es/ecma262/#sec-promise.all
r({target:"Promise",stat:!0,forced:n("5eed")},{all:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),o=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,i(n,t,e).then((function(e){c||(c=!0,o[a]=e,--u||r(o))}),l)})),--u||r(o)}));return u.error&&l(u.value),n.promise}})},
/***/1552:
/***/function(e){e.exports=JSON.parse('{"name":"ant-design-vue","version":"1.7.2","title":"Ant Design Vue","description":"An enterprise-class UI design language and Vue-based implementation","keywords":["ant","design","antd","vue","vueComponent","component","components","ui","framework","frontend"],"main":"lib/index.js","module":"es/index.js","typings":"types/index.d.ts","files":["dist","lib","es","types","scripts"],"scripts":{"dev":"webpack-dev-server","start":"cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js","test":"cross-env NODE_ENV=test jest --config .jest.js","compile":"node antd-tools/cli/run.js compile","pub":"node antd-tools/cli/run.js pub","pub-with-ci":"node antd-tools/cli/run.js pub-with-ci","prepublish":"node antd-tools/cli/run.js guard","pre-publish":"node ./scripts/prepub","prettier":"prettier -c --write \'**/*\'","pretty-quick":"pretty-quick","dist":"node antd-tools/cli/run.js dist","lint":"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components","lint:site":"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./antdv-demo","lint:docs":"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.md ./antdv-demo/docs/**/demo/**","lint:style":"stylelint \\"{site,components}/**/*.less\\" --syntax less","codecov":"codecov","postinstall":"node scripts/postinstall || echo \\"ignore\\""},"repository":{"type":"git","url":"git+https://github.com/vueComponent/ant-design-vue.git"},"license":"MIT","bugs":{"url":"https://github.com/vueComponent/ant-design-vue/issues"},"homepage":"https://www.antdv.com/","peerDependencies":{"vue":">=2.6.0","vue-template-compiler":">=2.6.0"},"devDependencies":{"@commitlint/cli":"^8.0.0","@commitlint/config-conventional":"^8.0.0","@octokit/rest":"^16.0.0","@vue/cli-plugin-eslint":"^4.0.0","@vue/server-test-utils":"1.0.0-beta.16","@vue/test-utils":"1.0.0-beta.16","acorn":"^7.0.0","autoprefixer":"^9.6.0","axios":"^0.19.0","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^10.0.1","babel-helper-vue-jsx-merge-props":"^2.0.3","babel-jest":"^23.6.0","babel-loader":"^7.1.2","babel-plugin-import":"^1.1.1","babel-plugin-inline-import-data-uri":"^1.0.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-es3-member-expression-literals":"^6.22.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-plugin-transform-object-assign":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-runtime":"~6.23.0","babel-plugin-transform-vue-jsx":"^3.7.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","case-sensitive-paths-webpack-plugin":"^2.1.2","chalk":"^3.0.0","cheerio":"^1.0.0-rc.2","codecov":"^3.0.0","colorful":"^2.1.0","commander":"^4.0.0","compare-versions":"^3.3.0","cross-env":"^7.0.0","css-loader":"^3.0.0","deep-assign":"^2.0.0","enquire-js":"^0.2.1","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-html":"^6.0.0","eslint-plugin-markdown":"^2.0.0-alpha.0","eslint-plugin-vue":"^6.2.2","fetch-jsonp":"^1.1.3","fs-extra":"^8.0.0","glob":"^7.1.2","gulp":"^4.0.1","gulp-babel":"^7.0.0","gulp-strip-code":"^0.1.4","html-webpack-plugin":"^3.2.0","husky":"^4.0.0","istanbul-instrumenter-loader":"^3.0.0","jest":"^24.0.0","jest-serializer-vue":"^2.0.0","jest-transform-stub":"^2.0.0","js-base64":"^3.0.0","json-templater":"^1.2.0","jsonp":"^0.2.1","less":"^3.9.0","less-loader":"^6.0.0","less-plugin-npm-import":"^2.1.0","lint-staged":"^10.0.0","marked":"0.3.18","merge2":"^1.2.1","mini-css-extract-plugin":"^0.10.0","minimist":"^1.2.0","mkdirp":"^0.5.1","mockdate":"^2.0.2","nprogress":"^0.2.0","optimize-css-assets-webpack-plugin":"^5.0.1","postcss":"^7.0.6","postcss-loader":"^3.0.0","prettier":"^1.18.2","pretty-quick":"^2.0.0","querystring":"^0.2.0","raw-loader":"^4.0.0","reqwest":"^2.0.5","rimraf":"^3.0.0","rucksack-css":"^1.0.2","selenium-server":"^3.0.1","semver":"^7.0.0","style-loader":"^1.0.0","stylelint":"^13.0.0","stylelint-config-prettier":"^8.0.0","stylelint-config-standard":"^19.0.0","terser-webpack-plugin":"^3.0.3","through2":"^3.0.0","url-loader":"^3.0.0","vue":"^2.6.11","vue-antd-md-loader":"^1.1.0","vue-clipboard2":"0.3.1","vue-draggable-resizable":"^2.1.0","vue-eslint-parser":"^7.0.0","vue-i18n":"^8.3.2","vue-infinite-scroll":"^2.0.2","vue-jest":"^2.5.0","vue-loader":"^15.6.2","vue-router":"^3.0.1","vue-server-renderer":"^2.6.11","vue-template-compiler":"^2.6.11","vue-virtual-scroller":"^1.0.0","vuex":"^3.1.0","webpack":"^4.28.4","webpack-cli":"^3.2.1","webpack-dev-server":"^3.1.14","webpack-merge":"^4.1.1","webpackbar":"^4.0.0","xhr-mock":"^2.5.1"},"dependencies":{"@ant-design/icons":"^2.1.1","@ant-design/icons-vue":"^2.0.0","@simonwep/pickr":"~1.7.0","add-dom-event-listener":"^1.0.2","array-tree-filter":"^2.1.0","async-validator":"^3.0.3","babel-helper-vue-jsx-merge-props":"^2.0.3","babel-runtime":"6.x","classnames":"^2.2.5","component-classes":"^1.2.6","dom-align":"^1.10.4","dom-closest":"^0.2.0","dom-scroll-into-view":"^2.0.0","enquire.js":"^2.1.6","intersperse":"^1.0.0","is-mobile":"^2.2.1","is-negative-zero":"^2.0.0","ismobilejs":"^1.0.0","json2mq":"^0.2.0","lodash":"^4.17.5","moment":"^2.21.0","mutationobserver-shim":"^0.3.2","node-emoji":"^1.10.0","omit.js":"^1.0.0","raf":"^3.4.0","resize-observer-polyfill":"^1.5.1","shallow-equal":"^1.0.0","shallowequal":"^1.0.2","vue-ref":"^2.0.0","warning":"^4.0.0"},"sideEffects":["site/*","components/style.js","components/**/style/*","*.vue","*.md","dist/*","es/**/style/*","lib/**/style/*","*.less"]}');
/***/},
/***/"157a":
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("83ab"),a=Object.getOwnPropertyDescriptor;
// Avoid NodeJS experimental warning
e.exports=function(e){if(!i)return r[e];var t=a(r,e);return t&&t.value}},
/***/"159a":
/***/function(e,t,n){var r=n("32b3"),i=n("e2e4"),a=n("c098"),o=n("1a8c"),s=n("f4d6");
/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t,n,c){if(!o(e))return e;for(var l=-1,u=(t=i(t,e)).length,h=u-1,f=e;null!=f&&++l<u;){var d=s(t[l]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(l!=h){var g=f[d];void 0===(p=c?c(g,d,f):void 0)&&(p=o(g)?g:a(t[l+1])?[]:{})}r(f,d,p),f=f[d]}return e}},
/***/"159b":
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),a=n("785a"),o=n("17c2"),s=n("9112"),c=function(e){
// some Chrome versions have non-configurable methods on DOMTokenList
if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var l in i)i[l]&&c(r[l]&&r[l].prototype);c(a)},
/***/"15e3":
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=r.has,o=r.key;r.exp({hasOwnMetadata:function(e,t/* , targetKey */){return a(e,i(t),arguments.length<3?void 0:o(arguments[2]))}})},
/***/"15f3":
/***/function(e,t,n){var r=n("89d9"),i=n("8604");
/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},
/***/"15fd":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return r}));
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
n("a4d3"),n("caad"),n("2532");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
function r(e,t){if(null==e)return{};var n,r,i=
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}
/***/},
/***/1609:
/***/function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e};
/***/},
/***/1626:
/***/function(e,t,n){"use strict";
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
var r="object"==typeof document&&document.all;
// `IsCallable` abstract operation
// https://tc39.es/ecma262/#sec-iscallable
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},
/***/"167a":
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
n("f948")("Set");
/***/},
/***/1687:
/***/function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function o(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function c(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),h=Math.cos(n);return e[0]=i*h+s*u,e[1]=-i*u+s*h,e[2]=a*h+c*u,e[3]=-a*u+h*c,e[4]=h*(o-r[0])+u*(l-r[1])+r[0],e[5]=h*(l-r[1])-u*(o-r[0])+r[1],e}function l(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function u(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function h(e){var t=[1,0,0,1,0,0];return a(t,e),t}
/***/n.r(t),
/* harmony export (binding) */n.d(t,"create",(function(){return r})),
/* harmony export (binding) */n.d(t,"identity",(function(){return i})),
/* harmony export (binding) */n.d(t,"copy",(function(){return a})),
/* harmony export (binding) */n.d(t,"mul",(function(){return o})),
/* harmony export (binding) */n.d(t,"translate",(function(){return s})),
/* harmony export (binding) */n.d(t,"rotate",(function(){return c})),
/* harmony export (binding) */n.d(t,"scale",(function(){return l})),
/* harmony export (binding) */n.d(t,"invert",(function(){return u})),
/* harmony export (binding) */n.d(t,"clone",(function(){return h}))},
/***/1727:
/***/function(e,t,n){e.exports={default:n("7d42"),__esModule:!0};
/***/},
/***/1787:
/***/function(e,t,n){"use strict";var r=n("861d");e.exports=function(e){return r(e)||null===e}},
/***/"17c2":
/***/function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640")("forEach");
// `Array.prototype.forEach` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.foreach
e.exports=i?[].forEach:function(e/* , thisArg */){return r(this,e,arguments.length>1?arguments[1]:void 0);
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
}},
/***/"17ed":
/***/function(e,t,n){e.exports={default:n("511f"),__esModule:!0};
/***/},
/***/1830:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
var r=n("6d8b"),i=n("b682"),a=n("b1d4"),o=n("2f45"),s=n("e0d3"),c=n("1f39"),l=function(e){this.coordSysDims=[],this.axisMap=Object(r.createHashMap)(),this.categoryAxisMap=Object(r.createHashMap)(),this.coordSysName=e};
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/SeriesData.js
var u={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",s.b).models[0],a=e.getReferringComponents("yAxis",s.b).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),h(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),h(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",s.b).models[0];t.coordSysDims=["single"],n.set("single",i),h(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",s.b).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),h(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),h(o)&&(r.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var a=e.ecModel,o=a.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=o.dimensions.slice();Object(r.each)(o.parallelAxisIndex,(function(e,r){var o=a.getComponent("parallelAxis",e),c=s[r];n.set(c,o),h(o)&&(i.set(c,o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=r))}))}};function h(e){return"category"===e.get("type")}
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/Source.js
var f=n("ec6f"),d=n("ee1a"),p=n("0f99"),g=n("07fd");
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/helper/dataStackHelper.js
/* harmony default export */t.a=
/**
 * Caution: there are side effects to `sourceManager` in this method.
 * Should better only be called in `Series['getInitialData']`.
 */
function(e,t,n){n=n||{};var h,m=t.getSourceManager(),v=!1;e?(v=!0,h=Object(f.c)(e)):
// Is series.data. not dataset.
v=(h=m.getSource()).sourceFormat===g.f;var y=function(e){var t=e.get("coordinateSystem"),n=new l(t),r=u[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),A=
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createSeriesData.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e,t){var n,i=e.get("coordinateSystem"),a=c.a.get(i);return t&&t.coordSysDims&&(n=r.map(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=Object(o.a)(i)}return n}))),n||(
// Get dimensions from registered coordinate system
n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(t,y),b=n.useEncodeDefaulter,w=r.isFunction(b)?b:b?r.curry(p.c,A,t):null,x={coordDimensions:A,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:w,canOmitUnusedDimensions:!v},C=Object(a.b)(h,x),_=function(e,t,n){var i,a;return n&&r.each(e,(function(e,r){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==i&&(i=r),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(a=!0)})),a||null==i||(e[i].otherDims.itemName=0),i}(C.dimensions,n.createInvertedIndices,y),I=v?null:m.getSharedDataStore(C),E=Object(d.a)(t,{schema:C,store:I}),k=new i.a(C,t);k.setCalculationInfo(E);var S=null!=_&&function(e){if(e.sourceFormat===g.f){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!r.isArray(Object(s.h)(t))}}(h)?function(e,t,n,r){
// Use dataIndex as ordinal value in categoryAxis
return r===_?n:this.defaultDimValueGetter(e,t,n,r)}:null;return k.hasItemOption=!1,k.initData(
// Try to reuse the data store in sourceManager if using dataset.
v?h:I,null,S),k};
/***/},
/***/1836:
/***/function(e,t,n){
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var r=n("6ca1"),i=n("6438").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},
/***/1838:
/***/function(e,t,n){var r=n("c05f"),i=n("9b02"),a=n("8604"),o=n("f608"),s=n("08cc"),c=n("20ec"),l=n("f4d6");
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function(e,t){return o(e)&&s(t)?c(l(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},
/***/"18a7":
/***/function(e,t,n){"use strict";
/**
 * @ignore
 * some key-codes definition and utils from closure-library
 * @author yiminghe@gmail.com
 */var r={
/**
   * MAC_ENTER
   */
MAC_ENTER:3,
/**
   * BACKSPACE
   */
BACKSPACE:8,
/**
   * TAB
   */
TAB:9,
/**
   * NUMLOCK on FF/Safari Mac
   */
NUM_CENTER:12,// NUMLOCK on FF/Safari Mac
/**
   * ENTER
   */
ENTER:13,
/**
   * SHIFT
   */
SHIFT:16,
/**
   * CTRL
   */
CTRL:17,
/**
   * ALT
   */
ALT:18,
/**
   * PAUSE
   */
PAUSE:19,
/**
   * CAPS_LOCK
   */
CAPS_LOCK:20,
/**
   * ESC
   */
ESC:27,
/**
   * SPACE
   */
SPACE:32,
/**
   * PAGE_UP
   */
PAGE_UP:33,// also NUM_NORTH_EAST
/**
   * PAGE_DOWN
   */
PAGE_DOWN:34,// also NUM_SOUTH_EAST
/**
   * END
   */
END:35,// also NUM_SOUTH_WEST
/**
   * HOME
   */
HOME:36,// also NUM_NORTH_WEST
/**
   * LEFT
   */
LEFT:37,// also NUM_WEST
/**
   * UP
   */
UP:38,// also NUM_NORTH
/**
   * RIGHT
   */
RIGHT:39,// also NUM_EAST
/**
   * DOWN
   */
DOWN:40,// also NUM_SOUTH
/**
   * PRINT_SCREEN
   */
PRINT_SCREEN:44,
/**
   * INSERT
   */
INSERT:45,// also NUM_INSERT
/**
   * DELETE
   */
DELETE:46,// also NUM_DELETE
/**
   * ZERO
   */
ZERO:48,
/**
   * ONE
   */
ONE:49,
/**
   * TWO
   */
TWO:50,
/**
   * THREE
   */
THREE:51,
/**
   * FOUR
   */
FOUR:52,
/**
   * FIVE
   */
FIVE:53,
/**
   * SIX
   */
SIX:54,
/**
   * SEVEN
   */
SEVEN:55,
/**
   * EIGHT
   */
EIGHT:56,
/**
   * NINE
   */
NINE:57,
/**
   * QUESTION_MARK
   */
QUESTION_MARK:63,// needs localization
/**
   * A
   */
A:65,
/**
   * B
   */
B:66,
/**
   * C
   */
C:67,
/**
   * D
   */
D:68,
/**
   * E
   */
E:69,
/**
   * F
   */
F:70,
/**
   * G
   */
G:71,
/**
   * H
   */
H:72,
/**
   * I
   */
I:73,
/**
   * J
   */
J:74,
/**
   * K
   */
K:75,
/**
   * L
   */
L:76,
/**
   * M
   */
M:77,
/**
   * N
   */
N:78,
/**
   * O
   */
O:79,
/**
   * P
   */
P:80,
/**
   * Q
   */
Q:81,
/**
   * R
   */
R:82,
/**
   * S
   */
S:83,
/**
   * T
   */
T:84,
/**
   * U
   */
U:85,
/**
   * V
   */
V:86,
/**
   * W
   */
W:87,
/**
   * X
   */
X:88,
/**
   * Y
   */
Y:89,
/**
   * Z
   */
Z:90,
/**
   * META
   */
META:91,// WIN_KEY_LEFT
/**
   * WIN_KEY_RIGHT
   */
WIN_KEY_RIGHT:92,
/**
   * CONTEXT_MENU
   */
CONTEXT_MENU:93,
/**
   * NUM_ZERO
   */
NUM_ZERO:96,
/**
   * NUM_ONE
   */
NUM_ONE:97,
/**
   * NUM_TWO
   */
NUM_TWO:98,
/**
   * NUM_THREE
   */
NUM_THREE:99,
/**
   * NUM_FOUR
   */
NUM_FOUR:100,
/**
   * NUM_FIVE
   */
NUM_FIVE:101,
/**
   * NUM_SIX
   */
NUM_SIX:102,
/**
   * NUM_SEVEN
   */
NUM_SEVEN:103,
/**
   * NUM_EIGHT
   */
NUM_EIGHT:104,
/**
   * NUM_NINE
   */
NUM_NINE:105,
/**
   * NUM_MULTIPLY
   */
NUM_MULTIPLY:106,
/**
   * NUM_PLUS
   */
NUM_PLUS:107,
/**
   * NUM_MINUS
   */
NUM_MINUS:109,
/**
   * NUM_PERIOD
   */
NUM_PERIOD:110,
/**
   * NUM_DIVISION
   */
NUM_DIVISION:111,
/**
   * F1
   */
F1:112,
/**
   * F2
   */
F2:113,
/**
   * F3
   */
F3:114,
/**
   * F4
   */
F4:115,
/**
   * F5
   */
F5:116,
/**
   * F6
   */
F6:117,
/**
   * F7
   */
F7:118,
/**
   * F8
   */
F8:119,
/**
   * F9
   */
F9:120,
/**
   * F10
   */
F10:121,
/**
   * F11
   */
F11:122,
/**
   * F12
   */
F12:123,
/**
   * NUMLOCK
   */
NUMLOCK:144,
/**
   * SEMICOLON
   */
SEMICOLON:186,// needs localization
/**
   * DASH
   */
DASH:189,// needs localization
/**
   * EQUALS
   */
EQUALS:187,// needs localization
/**
   * COMMA
   */
COMMA:188,// needs localization
/**
   * PERIOD
   */
PERIOD:190,// needs localization
/**
   * SLASH
   */
SLASH:191,// needs localization
/**
   * APOSTROPHE
   */
APOSTROPHE:192,// needs localization
/**
   * SINGLE_QUOTE
   */
SINGLE_QUOTE:222,// needs localization
/**
   * OPEN_SQUARE_BRACKET
   */
OPEN_SQUARE_BRACKET:219,// needs localization
/**
   * BACKSLASH
   */
BACKSLASH:220,// needs localization
/**
   * CLOSE_SQUARE_BRACKET
   */
CLOSE_SQUARE_BRACKET:221,// needs localization
/**
   * WIN_KEY
   */
WIN_KEY:224,
/**
   * MAC_FF_META
   */
MAC_FF_META:224,// Firefox (Gecko) fires this for the meta key instead of 91
/**
   * WIN_IME
   */
WIN_IME:229,
/*
 whether text and modified key is entered at the same time.
 */
isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||
// Function keys don't generate text
t>=r.F1&&t<=r.F12)return!1;
// The following keys are quite harmless, even in combination with
// CTRL, ALT or SHIFT.
switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},
/*
 whether character is entered.
 */
isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;
// Safari sends zero key code for non-latin characters.
if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};
/* harmony default export */t.a=r},
/***/"18ad":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,r=e.key,i=e.getGraphConfig,a=e.getStartGraphConfig,o=e.beforeChange,c=e.beforeUpdate,l=e.afterAddGraph;t[r]?t[r].update(n):t[r]=new s({chart:t,key:r,getGraphConfig:i,getStartGraphConfig:a,beforeChange:o,beforeUpdate:c,afterAddGraph:l},n)}
/***/,t.Updater=void 0;var i=r(n("448a")),a=r(n("7037")),o=r(n("970b")),s=function e(t,n){(0,o.default)(this,e);var r=t.chart,i=t.key;"function"==typeof t.getGraphConfig&&(r[i]||(this.graphs=r[i]=[]),Object.assign(this,t),this.update(n))};function c(e,t){Object.keys(t).forEach((function(n){"shape"===n||"style"===n?e.animation(n,t[n],!0):e[n]=t[n]}))}t.Updater=s,s.prototype.update=function(e){var t=this,n=this.graphs,r=this.beforeUpdate;if(function(e,t){var n=e.graphs,r=e.chart.render,i=n.length,a=t.length;if(i>a){n.splice(a).forEach((function(e){return e.forEach((function(e){return r.delGraph(e)}))}))}}(this,e),e.length){var o=(0,a.default)(r);e.forEach((function(e,a){"function"===o&&r(n,e,a,t);var s=n[a];s?function(e,t,n,r){var a=r.getGraphConfig,o=r.chart.render,s=r.beforeChange,l=a(t,r);(function(e,t,n){var r=e.length,a=t.length;if(a>r){var o=e.slice(-1)[0],s=new Array(a-r).fill(0).map((function(e){return n.clone(o)}));e.push.apply(e,(0,i.default)(s))}else if(a<r){e.splice(a).forEach((function(e){return n.delGraph(e)}))}})(e,l,o),e.forEach((function(e,t){var n=l[t];"function"==typeof s&&s(e,n),c(e,n)}))}(s,e,0,t):function(e,t,n,r){var i=r.getGraphConfig,a=r.getStartGraphConfig,o=r.chart.render,s=null;"function"==typeof a&&(s=a(t,r));var l=i(t,r);if(!l.length)return;s?(e[n]=s.map((function(e){return o.add(e)})),e[n].forEach((function(e,t){c(e,l[t])}))):e[n]=l.map((function(e){return o.add(e)}));var u=r.afterAddGraph;"function"==typeof u&&u(e[n])}(n,e,a,t)}))}}},
/***/"18c0":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("7fae"),i=n("e0d8"),a=n("8e43"),o=n("944e"),s=n("6d8b"),c=/** @class */function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");
// Caution: Should not use instanceof, consider ec-extensions using
// import approach to get OrdinalMeta class.
return r||(r=new a.a({})),Object(s.isArray)(r)&&(r=new a.a({categories:Object(s.map)(r,(function(e){return Object(s.isObject)(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(r.a)(t,e),t.prototype.parse=function(e){
// Caution: Math.round(null) will return `0` rather than `NaN`
return null==e?NaN:Object(s.isString)(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),o.a(e,this._extent)&&null!=this._ordinalMeta.categories[e]},
/**
   * Normalize given rank or name to linear [0, 1]
   * @param val raw ordinal number.
   * @return normalized value in [0, 1].
   */
t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),o.f(e,this._extent)},
/**
   * @param val normalized value in [0, 1].
   * @return raw ordinal number.
   */
t.prototype.scale=function(e){return e=Math.round(o.g(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},
/**
   * @see `Ordinal['_ordinalNumbersByTick']`
   */
t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}
// Handle that `series.data` only covers part of the `axis.category.data`.
for(var c=0;i<a;++i){for(;null!=r[c];)c++;n.push(c),r[c]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;
// also support ordinal out of range of `ordinalMeta.categories.length`,
// where ordinal numbers are used as tick value directly.
return t&&e>=0&&e<t.length?t[e]:e},
/**
   * @usage
   * ```js
   * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal);
   *
   * // case0
   * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber];
   * // case1
   * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber];
   * // case2
   * const coord = axis.dataToCoord(ordinalNumber);
   * ```
   *
   * @param {OrdinalNumber} tickNumber index of display
   */
t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;
// tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`.,
// where ordinal numbers are used as tick value directly.
return t&&e>=0&&e<t.length?t[e]:e},
/**
   * Get item on tick
   */
t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];
// Note that if no data, ordinalMeta.categories is an empty array.
// Return empty if it's not exist.
return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},
/**
   * @override
   * If value is in extent range
   */
t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(i.a);
/* harmony import */i.a.registerClass(c),
/* harmony default export */t.a=c},
/***/"18ce":
/***/function(e,t,n){"use strict";
/* unused harmony export isCssAnimationSupported */
/* harmony import */var r=n("1098"),i=n.n(r),a=n("c544"),o=n("3c55"),s=n.n(o),c=n("d41d"),l=0!==a.a.endEvents.length,u=["Webkit","Moz","O",
// ms is special .... !
"ms"],h=["-webkit-","-moz-","-o-","ms-",""];
/* harmony import */function f(e,t){for(
// old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
var n=window.getComputedStyle(e,null),r="",i=0;i<h.length&&!(r=n.getPropertyValue(h[i]+t));i++);return r}function d(e){if(l){var t=parseFloat(f(e,"transition-delay"))||0,n=parseFloat(f(e,"transition-duration"))||0,r=parseFloat(f(e,"animation-delay"))||0,i=parseFloat(f(e,"animation-duration"))||0,a=Math.max(n+t,i+r);
// sometimes, browser bug
e.rcEndAnimTimeout=setTimeout((function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()}),1e3*a+200)}}function p(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var g=function(e,t,n){var r="object"===(void 0===t?"undefined":i()(t)),o=r?t.name:t,l=r?t.active:t+"-active",u=n,h=void 0,f=void 0,g=s()(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(u=n.end,h=n.start,f=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(Object(c.a)(e.rcAnimTimeout),e.rcAnimTimeout=null),p(e),g.remove(o),g.remove(l),a.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,
// Usually this optional end is used for informing an owner of
// a leave animation and telling it to remove the child.
u&&u())},a.a.addEndEventListener(e,e.rcEndListener),h&&h(),g.add(o),e.rcAnimTimeout=Object(c.b)((function(){e.rcAnimTimeout=null,g.add(o),g.add(l),f&&Object(c.b)(f,0),d(e)}),30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};g.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(Object(c.a)(e.rcAnimTimeout),e.rcAnimTimeout=null),p(e),a.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
n&&n())},a.a.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=Object(c.b)((function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,d(e)}),0)},g.setTransition=function(e,t,n){var r=t,i=n;void 0===n&&(i=r,r=""),r=r||"",u.forEach((function(t){e.style[t+"Transition"+r]=i}))},g.isCssAnimationSupported=l,
/* harmony default export */t.a=g},
/***/"18d8":
/***/function(e,t,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46/* . */===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));
/** Used to match property names within property paths. */e.exports=o},
/***/"18f1":
/***/function(e,t,n){var r=n("f083"),i=n("8539");
// 20.1.2.12 Number.parseFloat(string)
r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},
/***/1917:
/***/function(e,t){t.f={}.propertyIsEnumerable;
/***/},
/***/"19aa":
/***/function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},
/***/"19eb":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return l})),
/* harmony export (binding) */n.d(t,"a",(function(){return u}));
/* harmony import */var r=n("21a1"),i=n("d5b7"),a=n("9850"),o=n("6d8b"),s=n("4bc4"),c="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},u={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};
/* harmony import */l[c]=!0;var h=["z","z2","invisible"],f=["invisible"],d=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.a)(t,e),t.prototype._init=function(t){for(var n=Object(o.keys)(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){p.copy(e.getBoundingRect()),e.transform&&p.applyTransform(e.transform);return g.width=t,g.height=n,!p.intersect(g)}
/* harmony default export */(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,s=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new a.a(0,0,0,0)),t?a.a.applyTransform(e,n,t):e.copy(n),(i||o||s)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(s),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+s-i));var c=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-c),e.y=Math.floor(e.y-c),e.width=Math.ceil(e.width+1+2*c),e.height=Math.ceil(e.height+1+2*c))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new a.a(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:Object(o.extend)(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=s.c,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&s.c)},t.prototype.styleUpdated=function(){this.__dirty&=~s.c},t.prototype.createStyle=function(e){return Object(o.createObject)(l,e)},t.prototype.useStyle=function(e){e[c]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[c]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,h)},t.prototype._applyStateObj=function(t,n,r,i,a,s){e.prototype._applyStateObj.call(this,t,n,r,i,a,s);var c,l=!(n&&i);if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):l&&(c=r.style),c)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=Object(o.keys)(u),p=0;p<d.length;p++){(m=d[p])in c&&(c[m]=c[m],this.style[m]=u[m])}var g=Object(o.keys)(c);for(p=0;p<g.length;p++){var m=g[p];this.style[m]=this.style[m]}this._transitionState(t,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);var v=this.__inHover?f:h;for(p=0;p<v.length;p++){m=v[p];n&&null!=n[m]?this[m]=n[m]:l&&null!=r[m]&&(this[m]=r[m])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(o.extend)(e,t),e},t.prototype.getAnimationStyleProps=function(){return u},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=s.a|s.c)),t}(i.a),p=new a.a(0,0,0,0),g=new a.a(0,0,0,0);t.c=d},
/***/"19fa":
/***/function(e,t,n){var r=n("fc5e"),i=n("c901");
// true  -> String#at
// false -> String#codePointAt
e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}}},
/***/"1a14":
/***/function(e,t,n){var r=n("77e9"),i=n("faf5"),a=n("3397"),o=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){/* empty */}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},
/***/"1a2d":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),a=r({}.hasOwnProperty);
// `HasOwnProperty` abstract operation
// https://tc39.es/ecma262/#sec-hasownproperty
// eslint-disable-next-line es/no-object-hasown -- safe
e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},
/***/"1a2d0":
/***/function(e,t,n){var r=n("42a2"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function(e){return i(e)&&"[object Map]"==r(e)}},
/***/"1a8c":
/***/function(e,t){e.exports=
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},
/***/"1af4":
/***/function(e,t,n){
// https://github.com/tc39/proposal-string-pad-start-end
var r=n("6373"),i=n("6012"),a=n("688d");e.exports=function(e,t,n,o){var s=String(a(e)),c=s.length,l=void 0===n?" ":String(n),u=r(t);if(u<=c||""==l)return s;var h=u-c,f=i.call(l,Math.ceil(h/l.length));return f.length>h&&(f=f.slice(0,h)),o?f+s:s+f}},
/***/"1b18":
/***/function(e,t,n){"use strict";
// 26.1.5 Reflect.enumerate(target)
var r=n("f083"),i=n("d77f"),a=function(e){this._t=i(e),// target
this._i=0;// next index
var t,n=this._k=[];// keys
for(t in e)n.push(t)};n("6ada")(a,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new a(e)}})},
/***/"1b1e":
/***/function(e,t,n){"use strict";if(n("c94e")){var r=n("cee8"),i=n("93e0"),a=n("f937"),o=n("f083"),s=n("f308"),c=n("b799"),l=n("911a"),u=n("928a"),h=n("fb32"),f=n("0713"),d=n("c668"),p=n("9b6f"),g=n("6373"),m=n("53d3"),v=n("6fc7"),y=n("019f"),A=n("2fb2"),b=n("5155"),w=n("9fe8"),x=n("42ee"),C=n("c786"),_=n("6621"),I=n("ed60"),E=n("dbb2").f,k=n("a37b"),S=n("5689"),B=n("de24"),M=n("cffc"),T=n("27c4"),O=n("1147a"),D=n("21d0"),P=n("c053"),L=n("ebe8"),Q=n("3a2f"),R=n("0ba2"),j=n("f945"),N=n("2761"),F=n("8d87"),z=N.f,H=F.f,U=i.RangeError,G=i.TypeError,V=i.Uint8Array,W="ArrayBuffer",q="Shared"+W,Y="BYTES_PER_ELEMENT",K="prototype",$=Array[K],J=c.ArrayBuffer,X=c.DataView,Z=M(0),ee=M(2),te=M(3),ne=M(4),re=M(5),ie=M(6),ae=T(!0),oe=T(!1),se=D.values,ce=D.keys,le=D.entries,ue=$.lastIndexOf,he=$.reduce,fe=$.reduceRight,de=$.join,pe=$.sort,ge=$.slice,me=$.toString,ve=$.toLocaleString,ye=B("iterator"),Ae=B("toStringTag"),be=S("typed_constructor"),we=S("def_constructor"),xe=s.CONSTR,Ce=s.TYPED,_e=s.VIEW,Ie="Wrong length!",Ee=M(1,(function(e,t){return Te(O(e,e[we]),t)})),ke=a((function(){
// eslint-disable-next-line no-undef
return 1===new V(new Uint16Array([1]).buffer)[0]})),Se=!!V&&!!V[K].set&&a((function(){new V(1).set({})})),Be=function(e,t){var n=p(e);if(n<0||n%t)throw U("Wrong offset!");return n},Me=function(e){if(w(e)&&Ce in e)return e;throw G(e+" is not a typed array!")},Te=function(e,t){if(!w(e)||!(be in e))throw G("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return De(O(e,e[we]),t)},De=function(e,t){for(var n=0,r=t.length,i=Te(e,r);r>n;)i[n]=t[n++];return i},Pe=function(e,t,n){z(e,t,{get:function(){return this._d[n]}})},Le=function(e/* , mapfn, thisArg */){var t,n,r,i,a,o,s=x(e),c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,f=k(s);if(null!=f&&!C(f)){for(o=f.call(s),r=[],t=0;!(a=o.next()).done;t++)r.push(a.value);s=r}for(h&&c>2&&(u=l(u,arguments[2],2)),t=0,n=g(s.length),i=Te(this,n);n>t;t++)i[t]=h?u(s[t],t):s[t];return i},Qe=function(){for(var e=0,t=arguments.length,n=Te(this,t);t>e;)n[e]=arguments[e++];return n},Re=!!V&&a((function(){ve.call(new V(1))})),je=function(){return ve.apply(Re?ge.call(Me(this)):Me(this),arguments)},Ne={copyWithin:function(e,t/* , end */){return j.call(Me(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e/* , thisArg */){return ne(Me(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e/* , start, end */){// eslint-disable-line no-unused-vars
return R.apply(Me(this),arguments)},filter:function(e/* , thisArg */){return Oe(this,ee(Me(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e/* , thisArg */){return re(Me(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e/* , thisArg */){return ie(Me(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e/* , thisArg */){Z(Me(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e/* , fromIndex */){return oe(Me(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e/* , fromIndex */){return ae(Me(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){// eslint-disable-line no-unused-vars
return de.apply(Me(this),arguments)},lastIndexOf:function(e/* , fromIndex */){// eslint-disable-line no-unused-vars
return ue.apply(Me(this),arguments)},map:function(e/* , thisArg */){return Ee(Me(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e/* , initialValue */){// eslint-disable-line no-unused-vars
return he.apply(Me(this),arguments)},reduceRight:function(e/* , initialValue */){// eslint-disable-line no-unused-vars
return fe.apply(Me(this),arguments)},reverse:function(){for(var e,t=this,n=Me(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e/* , thisArg */){return te(Me(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Me(this),e)},subarray:function(e,t){var n=Me(this),r=n.length,i=v(e,r);return new(O(n,n[we]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:v(t,r))-i))}},Fe=function(e,t){return Oe(this,ge.call(Me(this),e,t))},ze=function(e/* , offset */){Me(this);var t=Be(arguments[1],1),n=this.length,r=x(e),i=g(r.length),a=0;if(i+t>n)throw U(Ie);for(;a<i;)this[t+a]=r[a++]},He={entries:function(){return le.call(Me(this))},keys:function(){return ce.call(Me(this))},values:function(){return se.call(Me(this))}},Ue=function(e,t){return w(e)&&e[Ce]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ge=function(e,t){return Ue(e,t=y(t,!0))?h(2,e[t]):H(e,t)},Ve=function(e,t,n){return!(Ue(e,t=y(t,!0))&&w(n)&&A(n,"value"))||A(n,"get")||A(n,"set")||n.configurable||A(n,"writable")&&!n.writable||A(n,"enumerable")&&!n.enumerable?z(e,t,n):(e[t]=n.value,e)};xe||(F.f=Ge,N.f=Ve),o(o.S+o.F*!xe,"Object",{getOwnPropertyDescriptor:Ge,defineProperty:Ve}),a((function(){me.call({})}))&&(me=ve=function(){return de.call(this)});var We=d({},Ne);d(We,He),f(We,ye,He.values),d(We,{slice:Fe,set:ze,constructor:function(){/* noop */},toString:me,toLocaleString:je}),Pe(We,"buffer","b"),Pe(We,"byteOffset","o"),Pe(We,"byteLength","l"),Pe(We,"length","e"),z(We,Ae,{get:function(){return this[Ce]}}),
// eslint-disable-next-line max-statements
e.exports=function(e,t,n,c){var l=e+((c=!!c)?"Clamped":"")+"Array",h="get"+e,d="set"+e,p=i[l],v=p||{},y=p&&I(p),A=!p||!s.ABV,x={},C=p&&p[K],k=function(e,n){z(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[h](n*t+r.o,ke)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[d](n*t+i.o,r,ke)}(this,n,e)},enumerable:!0})};A?(p=n((function(e,n,r,i){u(e,p,l,"_d");var a,o,s,c,h=0,d=0;if(w(n)){if(!(n instanceof J||(c=b(n))==W||c==q))return Ce in n?De(p,n):Le.call(p,n);a=n,d=Be(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw U(Ie);if((o=v-d)<0)throw U(Ie)}else if((o=g(i)*t)+d>v)throw U(Ie);s=o/t}else s=m(n),a=new J(o=s*t);for(f(e,"_d",{b:a,o:d,l:o,e:s,v:new X(a)});h<s;)k(e,h++)})),C=p[K]=_(We),f(C,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1);// eslint-disable-line no-new
}))&&L((function(e){new p,// eslint-disable-line no-new
new p(null),// eslint-disable-line no-new
new p(1.5),// eslint-disable-line no-new
new p(e)}),!0)||(p=n((function(e,n,r,i){var a;
// `ws` module bug, temporarily remove validation length for Uint8Array
// https://github.com/websockets/ws/pull/645
return u(e,p,l),w(n)?n instanceof J||(a=b(n))==W||a==q?void 0!==i?new v(n,Be(r,t),i):void 0!==r?new v(n,Be(r,t)):new v(n):Ce in n?De(p,n):Le.call(p,n):new v(m(n))})),Z(y!==Function.prototype?E(v).concat(E(y)):E(v),(function(e){e in p||f(p,e,v[e])})),p[K]=C,r||(C.constructor=p));var S=C[ye],B=!!S&&("values"==S.name||null==S.name),M=He.values;f(p,be,!0),f(C,Ce,l),f(C,_e,!0),f(C,we,p),(c?new p(1)[Ae]==l:Ae in C)||z(C,Ae,{get:function(){return l}}),x[l]=p,o(o.G+o.W+o.F*(p!=v),x),o(o.S,l,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*a((function(){v.of.call(p,1)})),l,{from:Le,of:Qe}),Y in C||f(C,Y,t),o(o.P,l,Ne),Q(l),o(o.P+o.F*Se,l,{set:ze}),o(o.P+o.F*!B,l,He),r||C.toString==me||(C.toString=me),o(o.P+o.F*a((function(){new p(1).slice()})),l,{slice:Fe}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){C.toLocaleString.call([1,2])}))),l,{toLocaleString:je}),P[l]=B?S:M,r||B||f(C,ye,M)}}else e.exports=function(){/* empty */};
/***/},
/***/"1b2b":
/***/function(e,t){
e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;
// Test for A's keys different from B.
for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],h=t[l];if(!1===(i=n?n.call(r,u,h,l):void 0)||void 0===i&&u!==h)return!1}return!0};
/***/},
/***/"1b50":
/***/function(e,t,n){
// 20.2.2.34 Math.trunc(x)
var r=n("f083");r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},
/***/"1b89":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("964c");
/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
/* harmony default export */t.a=function(e,t){var n=t?Object(r.a)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},
/***/"1bac":
/***/function(e,t,n){var r=n("7d1f"),i=n("a029"),a=n("9934");
/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */e.exports=function(e){return r(e,a,i)}},
/***/"1bde":
/***/function(e,t,n){"use strict";var r=n("ab6e"),i=n("798a"),a="Map";
// 23.1 Map Objects
e.exports=n("d168")(a,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{
// 23.1.3.6 Map.prototype.get(key)
get:function(e){var t=r.getEntry(i(this,a),e);return t&&t.v},
// 23.1.3.9 Map.prototype.set(key, value)
set:function(e,t){return r.def(i(this,a),0===e?0:e,t)}},r,!0)},
/***/"1be4":
/***/function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},
/***/"1be7":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"B",(function(){/* binding */return gt})),n.d(t,"d",(function(){/* binding */return mt})),n.d(t,"a",(function(){/* binding */return xt})),n.d(t,"l",(function(){/* binding */return pn})),n.d(t,"b",(function(){/* binding */return gn})),n.d(t,"f",(function(){/* binding */return mn})),n.d(t,"e",(function(){/* binding */return vn})),n.d(t,"g",(function(){/* binding */return yn})),n.d(t,"i",(function(){/* binding */return An})),n.d(t,"j",(function(){/* binding */return bn})),n.d(t,"w",(function(){/* binding */return wn})),n.d(t,"u",(function(){/* binding */return xn})),n.d(t,"v",(function(){/* binding */return Cn})),n.d(t,"s",(function(){/* binding */return _n})),n.d(t,"t",(function(){/* binding */return In})),n.d(t,"y",(function(){/* binding */return En})),n.d(t,"m",(function(){/* binding */return kn})),n.d(t,"n",(function(){/* binding */return Sn})),n.d(t,"h",(function(){/* binding */return Bn})),n.d(t,"q",(function(){/* reexport */return lt.e})),n.d(t,"o",(function(){/* binding */return Mn})),n.d(t,"z",(function(){/* binding */return Tn})),n.d(t,"p",(function(){/* binding */return Pn})),n.d(t,"A",(function(){/* binding */return Ln})),n.d(t,"r",(function(){/* binding */return Qn})),n.d(t,"k",(function(){/* binding */return Rn})),n.d(t,"x",(function(){/* binding */return jn})),n.d(t,"c",(function(){/* binding */return Nn}));
// EXTERNAL MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
var r=n("7fae"),i=n("697e7"),a=n("6d8b"),o=n("22d1"),s=n("04f6"),c=n("6fd3"),l=n("e0d3"),u=n("4319"),h=n("6cb7"),f="";
// EXTERNAL MODULE: ./node_modules/zrender/lib/zrender.js + 6 modules
// Navigator not exists in node
"undefined"!=typeof navigator&&(
/* global navigator */
f=navigator.platform||"");var d,p,g,m="rgba(0, 0, 0, 0.2)",v={darkMode:"auto",
// backgroundColor: 'rgba(0,0,0,0)',
colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:m,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:m,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:m,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:m,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:m,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:m,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},
// If xAxis and yAxis declared, grid is created by default.
// grid: {},
textStyle:{
// color: '#000',
// decoration: 'none',
// PENDING
fontFamily:f.match(/^Win/)?"Microsoft YaHei":"sans-serif",
// fontFamily: 'Arial, Verdana, sans-serif',
fontSize:12,fontStyle:"normal",fontWeight:"normal"},
// http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
// Default is source-over
blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,
// Configuration for progressive/incremental rendering
progressiveThreshold:3e3,progressive:400,
// Threshold of if use single hover layer to optimize.
// It is recommended that `hoverLayerThreshold` is equivalent to or less than
// `progressiveThreshold`, otherwise hover will cause restart of progressive,
// which is unexpected.
// see example <echarts/test/heatmap-large.html>.
hoverLayerThreshold:3e3,
// See: module:echarts/scale/Time
useUTC:!1},y=n("0f99"),A=n("2f1f"),b=n("4041"),w=n("edae"),x="\0_ec_inner";
/* harmony default export */var C=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,// Mark as not initialized.
this._theme=new u.a(r),this._locale=new u.a(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=E(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},
/**
   * @param type null/undefined: reset all.
   *        'recreate': force recreate all.
   *        'timeline': only reset timeline option
   *        'media': only reset media query option
   * @return Whether option changed.
   */
t.prototype.resetOption=function(e,t){return this._resetOption(e,E(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):g(this,i),n=!0}
// By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`,
// it should better not have the same props with `MediaUnit['option']`.
// Because either `option2` or `MediaUnit['option']` will be always merged to "current option"
// rather than original "baseOption". If they both override a prop, the result might be
// unexpected when media state changed after `setOption` called.
// If we really need to modify a props in each `MediaUnit['option']`, use the full version
// (`{baseOption, media}`) in `setOption`.
// For `timeline`, the case is the same.
if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var s=r.getMediaOption(this);s.length&&Object(a.each)(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],s=Object(a.createHashMap)(),c=t&&t.replaceMergeMainTypeMap;Object(y.g)(this),
// If no component class, merge directly.
// For example: color, animaiton options, etc.
Object(a.each)(e,(function(e,t){null!=e&&(h.a.hasClass(t)?t&&(o.push(t),s.set(t,!0)):
// globalSettingTask.dirty();
n[t]=null==n[t]?Object(a.clone)(e):Object(a.merge)(n[t],e,!0))})),c&&
// If there is a mainType `xxx` in `replaceMerge` but not declared in option,
// we trade it as it is declared in option as `{xxx: []}`. Because:
// (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`.
// (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`.
c.each((function(e,t){h.a.hasClass(t)&&!s.get(t)&&(o.push(t),s.set(t,!0))})),h.a.topologicalTravel(o,h.a.getAllClassMainTypes(),(function(t){var o=Object(A.a)(this,t,l.r(e[t])),s=r.get(t),u=
// `!oldCmptList` means init. See the comment in `mappingToExists`
s?c&&c.get(t)?"replaceMerge":"normalMerge":"replaceAll",f=l.q(s,o,u);
// Set mainType and complete subType.
l.x(f,t,h.a),
// Empty it before the travel, in order to prevent `this._componentsMap`
// from being used in the `init`/`mergeOption`/`optionUpdated` of some
// components, which is probably incorrect logic.
n[t]=null,r.set(t,null),i.set(t,0);var p,g=[],m=[],v=0;
// Backup series for filtering.
Object(a.each)(f,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,s=h.a.getClass(t,e.keyInfo.subType,!o);if(!s)return;
// TODO Before multiple tooltips get supported, we do this check to avoid unexpected exception.
if("tooltip"===t){if(p)return void 0;p=!0}if(r&&r.constructor===s)r.name=e.keyInfo.name,
// componentModel.settingTask && componentModel.settingTask.dirty();
r.mergeOption(i,this),r.optionUpdated(i,!1);else{
// PENDING Global as parent ?
var c=Object(a.extend)({componentIndex:n},e.keyInfo);r=new s(i,this,this,c),
// Assign `keyInfo`
Object(a.extend)(r,c),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),
// Call optionUpdated after init.
// newCmptOption has been used as componentModel.option
// and may be merged with theme and default, so pass null
// to avoid confusion.
r.optionUpdated(null,!0)}}else r&&(
// Consider where is no new option and should be merged using {},
// see removeEdgeAndAdd in topologicalTravel and
// ComponentModel.getAllClassMainTypes.
r.mergeOption({},this),r.optionUpdated({},!1));
// If no both `resultItem.exist` and `resultItem.option`,
// either it is in `replaceMerge` and not matched by any id,
// or it has been removed in previous `replaceMerge` and left a "hole" in this component index.
r?(g.push(r.option),m.push(r),v++):(
// Always do assign to avoid elided item in array.
g.push(void 0),m.push(void 0))}),this),n[t]=g,r.set(t,m),i.set(t,v),"series"===t&&d(this)}
// If no series declared, ensure `_seriesIndices` initialized.
),this),this._seriesIndices||d(this)},
/**
   * Get option for output (cloned option and inner info removed)
   */
t.prototype.getOption=function(){var e=Object(a.clone)(this.option);return Object(a.each)(e,(function(t,n){if(h.a.hasClass(n)){for(var r=l.r(t),i=r.length,a=!1,o=i-1
// Inner cmpts need to be removed.
// Inner cmpts might not be at last since ec5.0, but still
// compatible for users: if inner cmpt at last, splice the returned array.
;o>=0;o--)
// Remove options with inner id.
r[o]&&!l.l(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}})),delete e[x],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},
/**
   * @param idx If not specified, return the first one.
   */
t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},
/**
   * @return Never be null/undefined.
   */
t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=r?(n=[],Object(a.each)(l.r(r),(function(e){s[e]&&n.push(s[e])}))):n=null!=i?_("id",i,s):null!=o?_("name",o,s):Object(a.filter)(s,(function(e){return!!e})),I(n,e)):[]},
/**
   * The interface is different from queryComponents,
   * which is convenient for inner usage.
   *
   * @usage
   * let result = findComponents(
   *     {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}
   * );
   * let result = findComponents(
   *     {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}
   * );
   * let result = findComponents(
   *     {mainType: 'series',
   *     filter: function (model, index) {...}}
   * );
   * // result like [component0, componnet1, ...]
   */
t.prototype.findComponents=function(e){var t,n,r,i,o,s=e.query,c=e.mainType,l=(n=c+"Index",r=c+"Id",i=c+"Name",!(t=s)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:c,
// subType will be filtered finally.
index:t[n],id:t[r],name:t[i]}),u=l?this.queryComponents(l):Object(a.filter)(this._componentsMap.get(c),(function(e){return!!e}));return o=I(u,e),e.filter?Object(a.filter)(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(a.isFunction)(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var s=Object(a.isString)(e)?r.get(e):Object(a.isObject)(e)?this.findComponents(e):null,c=0;s&&c<s.length;c++){var l=s[c];l&&t.call(n,l,l.componentIndex)}},
/**
   * Get series list before filtered by name.
   */
t.prototype.getSeriesByName=function(e){var t=l.e(e,null);return Object(a.filter)(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},
/**
   * Get series list before filtered by index.
   */
t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},
/**
   * Get series list before filtered by type.
   * FIXME: rename to getRawSeriesByType?
   */
t.prototype.getSeriesByType=function(e){return Object(a.filter)(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},
/**
   * Get all series before filtered.
   */
t.prototype.getSeries=function(){return Object(a.filter)(this._componentsMap.get("series"),(function(e){return!!e}))},
/**
   * Count series before filtered.
   */
t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},
/**
   * After filtering, series may be different
   * from raw series.
   */
t.prototype.eachSeries=function(e,t){p(this),Object(a.each)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},
/**
   * Iterate raw series before filtered.
   *
   * @param {Function} cb
   * @param {*} context
   */
t.prototype.eachRawSeries=function(e,t){Object(a.each)(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},
/**
   * After filtering, series may be different.
   * from raw series.
   */
t.prototype.eachSeriesByType=function(e,t,n){p(this),Object(a.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},
/**
   * Iterate raw series before filtered of given type.
   */
t.prototype.eachRawSeriesByType=function(e,t,n){return Object(a.each)(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return p(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){p(this);var n=[];Object(a.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(a.createHashMap)(n)},t.prototype.restoreData=function(e){d(this);var t=this._componentsMap,n=[];t.each((function(e,t){h.a.hasClass(t)&&n.push(t)})),h.a.topologicalTravel(n,h.a.getAllClassMainTypes(),(function(n){Object(a.each)(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()}))}))},t.internalField=(d=function(e){var t=e._seriesIndices=[];Object(a.each)(e._componentsMap.get("series"),(function(e){
// series may have been removed by `replaceMerge`.
e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(a.createHashMap)(t)},p=function(e){},void(g=function(e,t){
// Using OPTION_INNER_KEY to mark that this option cannot be used outside,
// i.e. `chart.setOption(chart.getModel().option);` is forbidden.
e.option={},e.option[x]=1,
// Init with series: [], in case of calling findSeries method
// before series initialized.
e._componentsMap=Object(a.createHashMap)({series:[]}),e._componentsCount=Object(a.createHashMap)();
// If user spefied `option.aria`, aria will be enable. This detection should be
// performed before theme and globalDefault merge.
var n,r,i,o=t.aria;Object(a.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,Object(a.each)(r,(function(e,t){"colorLayer"===t&&i||h.a.hasClass(t)||("object"==typeof e?n[t]=n[t]?Object(a.merge)(n[t],e,!1):Object(a.clone)(e):null==n[t]&&(n[t]=e));
// If it is component model mainType, the model handles that merge later.
// otherwise, merge them here.
})),
// TODO Needs clone when merging to the unexisted property
Object(a.merge)(t,v,!1),e._mergeOption(t,null)})),t}(u.a);function _(e,t,n){
// Here is a break from echarts4: string and number are
// treated as equal.
if(Object(a.isArray)(t)){var r=Object(a.createHashMap)();return Object(a.each)(t,(function(e){null!=e&&(null!=l.e(e,null)&&r.set(e,!0))})),Object(a.filter)(n,(function(t){return t&&r.get(t[e])}))}var i=l.e(t,null);return Object(a.filter)(n,(function(t){return t&&null!=i&&t[e]===i}))}function I(e,t){
// Using hasOwnProperty for restrict. Consider
// subType is undefined in user payload.
return t.hasOwnProperty("subType")?Object(a.filter)(e,(function(e){return e&&e.subType===t.subType})):e}function E(e){var t=Object(a.createHashMap)();return e&&Object(a.each)(l.r(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(a.mixin)(C,b.a);
/* harmony default export */var k=C,S=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL",
// 'getModel',
"getOption",
// 'getViewOfComponentModel',
// 'getViewOfSeriesModel',
"getId","updateLabelLayout"],B=function(e){a.each(S,(function(t){this[t]=a.bind(e[t],e)}),this)},M=n("1f39"),T=/^(min|max)?(.+)$/;
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/ExtensionAPI.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @see <http://www.w3.org/TR/css3-mediaqueries/#media1>
 * Support: width, height, aspectRatio
 * Can use max or min as prefix.
 */
function O(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Object(a.each)(e,(function(e,t){var n=t.match(T);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[o],e,a)||(i=!1)}})),i}
/**
 * Consider case:
 * `chart.setOption(opt1);`
 * Then user do some interaction like dataZoom, dataView changing.
 * `chart.setOption(opt2);`
 * Then user press 'reset button' in toolbox.
 *
 * After doing that all of the interaction effects should be reset, the
 * chart should be the same as the result of invoke
 * `chart.setOption(opt1); chart.setOption(opt2);`.
 *
 * Although it is not able ensure that
 * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to
 * `chart.setOption(merge(opt1, opt2));` exactly,
 * this might be the only simple way to implement that feature.
 *
 * MEMO: We've considered some other approaches:
 * 1. Each model handles its self restoration but not uniform treatment.
 *     (Too complex in logic and error-prone)
 * 2. Use a shadow ecModel. (Performance expensive)
 *
 * FIXME: A possible solution:
 * Add a extra level of model for each component model. The inheritance chain would be:
 * ecModel <- componentModel <- componentActionModel <- dataItemModel
 * And all of the actions can only modify the `componentActionModel` rather than
 * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`.
 * When "resotre" action triggered, model from `componentActionModel` will be discarded
 * instead of recreating the "ecModel" from the "_optionBackup".
 */
// function mergeToBackupOption(
//     fakeCmptsMap: FakeComponentsMap,
//     // `tarOption` Can be null/undefined, means init
//     tarOption: ECUnitOption,
//     newOption: ECUnitOption,
//     // Can be null/undefined
//     opt: InnerSetOptionOpts
// ): void {
//     newOption = newOption || {} as ECUnitOption;
//     const notInit = !!tarOption;
//     each(newOption, function (newOptsInMainType, mainType) {
//         if (newOptsInMainType == null) {
//             return;
//         }
//         if (!ComponentModel.hasClass(mainType)) {
//             if (tarOption) {
//                 tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true);
//             }
//         }
//         else {
//             const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null;
//             const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || [];
//             const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null;
//             const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []);
//             const mappingResult = mappingToExists(
//                 oldFakeCmptsInMainType,
//                 normalizeToArray(newOptsInMainType),
//                 (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge'
//             );
//             setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);
//             each(mappingResult, function (resultItem, index) {
//                 // The same logic as `Global.ts#_mergeOption`.
//                 let fakeCmpt = resultItem.existing;
//                 const newOption = resultItem.newOption;
//                 const keyInfo = resultItem.keyInfo;
//                 let fakeCmptOpt;
//                 if (!newOption) {
//                     fakeCmptOpt = oldTarOptsInMainType[index];
//                 }
//                 else {
//                     if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) {
//                         fakeCmpt.name = keyInfo.name;
//                         if (notInit) {
//                             fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true);
//                         }
//                     }
//                     else {
//                         fakeCmpt = extend({}, keyInfo);
//                         if (notInit) {
//                             fakeCmptOpt = clone(newOption);
//                         }
//                     }
//                 }
//                 if (fakeCmpt) {
//                     notInit && resultTarOptsInMainType.push(fakeCmptOpt);
//                     resultFakeCmptsInMainType.push(fakeCmpt);
//                 }
//                 else {
//                     notInit && resultTarOptsInMainType.push(void 0);
//                     resultFakeCmptsInMainType.push(void 0);
//                 }
//             });
//         }
//     });
// }
/* harmony default export */var D=/** @class */function(){
// timeline.notMerge is not supported in ec3. Firstly there is rearly
// case that notMerge is needed. Secondly supporting 'notMerge' requires
// rawOption cloned and backuped when timeline changed, which does no
// good to performance. What's more, that both timeline and setOption
// method supply 'notMerge' brings complex and some problems.
// Consider this case:
// (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);
// (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);
function e(e){this._timelineOptions=[],this._mediaList=[],
/**
     * -1, means default.
     * empty means no media.
     */
this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(
// That set dat primitive is dangerous if user reuse the data when setOption again.
Object(a.each)(Object(l.r)(e.series),(function(e){e&&e.data&&Object(a.isTypedArray)(e.data)&&Object(a.setAsPrimitive)(e.data)})),Object(a.each)(Object(l.r)(e.dataset),(function(e){e&&e.source&&Object(a.isTypedArray)(e.source)&&Object(a.setAsPrimitive)(e.source)}))),
// Caution: some series modify option data, if do not clone,
// it should ensure that the repeat modify correctly
// (create a new object when modify itself).
e=Object(a.clone)(e);
// FIXME
// If some property is set in timeline options or media option but
// not set in baseOption, a warning should be given.
var r=this._optionBackup,i=
/**
 * [RAW_OPTION_PATTERNS]
 * (Note: "series: []" represents all other props in `ECUnitOption`)
 *
 * (1) No prop "baseOption" declared:
 * Root option is used as "baseOption" (except prop "options" and "media").
 * ```js
 * option = {
 *     series: [],
 *     timeline: {},
 *     options: [],
 * };
 * option = {
 *     series: [],
 *     media: {},
 * };
 * option = {
 *     series: [],
 *     timeline: {},
 *     options: [],
 *     media: {},
 * }
 * ```
 *
 * (2) Prop "baseOption" declared:
 * If "baseOption" declared, `ECUnitOption` props can only be declared
 * inside "baseOption" except prop "timeline" (compat ec2).
 * ```js
 * option = {
 *     baseOption: {
 *         timeline: {},
 *         series: [],
 *     },
 *     options: []
 * };
 * option = {
 *     baseOption: {
 *         series: [],
 *     },
 *     media: []
 * };
 * option = {
 *     baseOption: {
 *         timeline: {},
 *         series: [],
 *     },
 *     options: []
 *     media: []
 * };
 * option = {
 *     // ec3 compat ec2: allow (only) `timeline` declared
 *     // outside baseOption. Keep this setting for compat.
 *     timeline: {},
 *     baseOption: {
 *         series: [],
 *     },
 *     options: [],
 *     media: []
 * };
 * ```
 */
function(
// `rawOption` May be modified
e,t,n){var r,i,o=[],s=e.baseOption,c=e.timeline,l=e.options,u=e.media,h=!!e.media,f=!!(l||c||s&&s.timeline);s?
// For merge option.
(i=s).timeline||(i.timeline=c):((f||h)&&(e.options=e.media=null),i=e);h&&Object(a.isArray)(u)&&Object(a.each)(u,(function(e){e&&e.option&&(e.query?o.push(e):r||(
// Use the first media default.
r=e))}));function d(e){Object(a.each)(t,(function(t){t(e,n)}))}return d(i),Object(a.each)(l,(function(e){return d(e)})),Object(a.each)(o,(function(e){return d(e.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,
// For setOption at second time (using merge mode);
r?(
// FIXME
// the restore merge solution is essentially incorrect.
// the mapping can not be 100% consistent with ecModel, which probably brings
// potential bug!
// The first merge is delayed, because in most cases, users do not call `setOption` twice.
// let fakeCmptsMap = this._fakeCmptsMap;
// if (!fakeCmptsMap) {
//     fakeCmptsMap = this._fakeCmptsMap = createHashMap();
//     mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null);
// }
// mergeToBackupOption(
//     fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt
// );
// For simplicity, timeline options and media options do not support merge,
// that is, if you `setOption` twice and both has timeline options, the latter
// timeline options will not be merged to the former, but just substitute them.
i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(a.clone)(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){
// getTimelineOption can only be called after ecModel inited,
// so we can get currentIndex from timelineModel.
var r=e.getComponent("timeline");r&&(t=Object(a.clone)(
// FIXME:TS as TimelineModel or quivlant interface
n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,s=this._mediaDefault,c=[],l=[];
// No media defined.
if(!o.length&&!s)return l;
// Multi media may be applied, the latter defined media has higher priority.
for(var u=0,h=o.length;u<h;u++)O(o[u].query,r,i)&&c.push(u);
// FIXME
// Whether mediaDefault should force users to provide? Otherwise
// the change by media query can not be recorvered.
return!c.length&&s&&(c=[-1]),c.length&&(t=c,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=Object(a.map)(c,(function(e){return Object(a.clone)(-1===e?s.option:o[e].option)}))),
// Otherwise return nothing.
this._currentMediaIndices=c,l},e}(),P=a.each,L=a.isObject,Q=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];
// CONCATENATED MODULE: ./node_modules/echarts/lib/preprocessor/helper/compatStyle.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function R(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Q.length;n<r;n++){var i=Q[n],o=t.normal,s=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?a.merge(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),s&&s[i]&&(e[i]=e[i]||{},e[i].emphasis?a.merge(e[i].emphasis,s[i]):e[i].emphasis=s[i],s[i]=null)}}function j(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(
// Timeline controlStyle has other properties besides normal and emphasis
n?(e[t].normal=e[t].emphasis=null,a.defaults(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,
// Also compat the case user mix the style and focus together in ec3 style
// for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } }
i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function N(e){j(e,"itemStyle"),j(e,"lineStyle"),j(e,"areaStyle"),j(e,"label"),j(e,"labelLine"),
// treemap
j(e,"upperLabel"),
// graph
j(e,"edgeLabel")}function F(e,t){
// Check whether is not object (string\null\undefined ...)
var n=L(e)&&e[t],r=L(n)&&n.textStyle;if(r){0;for(var i=0,a=l.c.length;i<a;i++){var o=l.c[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function z(e){e&&(N(e),F(e,"label"),e.emphasis&&F(e.emphasis,"label"))}function H(e){return a.isArray(e)?e:e?[e]:[]}function U(e){return(a.isArray(e)?e[0]:e)||{}}function G(e,t){P(H(e.series),(function(e){L(e)&&function(e){if(L(e)){R(e),N(e),F(e,"label"),
// treemap
F(e,"upperLabel"),
// graph
F(e,"edgeLabel"),e.emphasis&&(F(e.emphasis,"label"),
// treemap
F(e.emphasis,"upperLabel"),
// graph
F(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(R(t),z(t));var n=e.markLine;n&&(R(n),z(n));var r=e.markArea;r&&z(r);var i=e.data;
// Break with ec3: if `setOption` again, there may be no `type` in option,
// then the backward compat based on option type will not be performed.
if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!a.isTypedArray(o))for(var s=0;s<o.length;s++)z(o[s]);a.each(e.categories,(function(e){N(e)}))}if(i&&!a.isTypedArray(i))for(s=0;s<i.length;s++)z(i[s]);
// mark point data
if((t=e.markPoint)&&t.data){var c=t.data;for(s=0;s<c.length;s++)z(c[s])}
// mark line data
if((n=e.markLine)&&n.data){var l=n.data;for(s=0;s<l.length;s++)a.isArray(l[s])?(z(l[s][0]),z(l[s][1])):z(l[s])}
// Series
"gauge"===e.type?(F(e,"axisLabel"),F(e,"title"),F(e,"detail")):"treemap"===e.type?(j(e.breadcrumb,"itemStyle"),a.each(e.levels,(function(e){N(e)}))):"tree"===e.type&&N(e.leaves);
// sunburst starts from ec4, so it does not need to compat levels.
}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),P(n,(function(t){P(H(e[t]),(function(e){e&&(F(e,"axisLabel"),F(e.axisPointer,"label"))}))})),P(H(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;F(t,"axisLabel"),F(t&&t.axisPointer,"label")})),P(H(e.calendar),(function(e){j(e,"itemStyle"),F(e,"dayLabel"),F(e,"monthLabel"),F(e,"yearLabel")})),
// radar.name.textStyle
P(H(e.radar),(function(e){F(e,"name"),
// Use axisName instead of name because component has name property
e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),P(H(e.geo),(function(e){L(e)&&(z(e),P(H(e.regions),(function(e){z(e)})))})),P(H(e.timeline),(function(e){z(e),j(e,"label"),j(e,"itemStyle"),j(e,"controlStyle",!0);var t=e.data;a.isArray(t)&&a.each(t,(function(e){a.isObject(e)&&(j(e,"label"),j(e,"itemStyle"))}))})),P(H(e.toolbox),(function(e){j(e,"iconStyle"),P(e.feature,(function(e){j(e,"iconStyle")}))})),F(U(e.axisPointer),"label"),F(U(e.tooltip).axisPointer,"label")}
// CONCATENATED MODULE: ./node_modules/echarts/lib/preprocessor/backwardCompat.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function V(e){e&&Object(a.each)(W,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var W=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],q=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Y=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function K(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Y.length;n++){var r=Y[n][1],i=Y[n][0];null!=t[r]&&(t[i]=t[r])}}function $(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function J(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function X(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&X(e[n].children,t)}function Z(e,t){G(e,t),
// Make sure series array for model initialization.
e.series=Object(l.r)(e.series),Object(a.each)(e.series,(function(e){if(Object(a.isObject)(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),$(e.label),(i=e.data)&&!Object(a.isTypedArray)(i))for(var n=0;n<i.length;n++)$(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[i=a[s]]&&(o[i]={}),o=o[i];(r||null==o[a[s]])&&(o[a[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(K(e),K(e.backgroundStyle),K(e.emphasis),(i=e.data)&&!Object(a.isTypedArray)(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(K(i[n]),K(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),J(e),X(e.data,J)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(a.defaults)(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),V(e)}})),
// dataRange has changed to visualMap
e.dataRange&&(e.visualMap=e.dataRange),Object(a.each)(q,(function(t){var n=e[t];n&&(Object(a.isArray)(n)||(n=[n]),Object(a.each)(n,(function(e){V(e)})))}))}
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/number.js
var ee=n("3842");
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/dataStack.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// (1) [Caution]: the logic is correct based on the premises:
//     data processing stage is blocked in stream.
//     See <module:echarts/stream/Scheduler#performDataProcessorTasks>
// (2) Only register once when import repeatedly.
//     Should be executed after series is filtered and before stack calculation.
function te(e){Object(a.each)(e,(function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get("stackStrategy")||"samesign";
// Should not write on raw data, because stack series model list changes
// depending on legend selection.
o.modify(a,(function(a,l,u){var h,f,d=o.get(t.stackedDimension,u);
// Consider `connectNulls` of line area, if value is NaN, stackedOver
// should also be NaN, to draw a appropriate belt area.
if(isNaN(d))return i;s?f=o.getRawIndex(u):h=o.get(t.stackedByDimension,u);
// If stackOver is NaN, chart view will render point on value start.
for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];
// Has been optimized by inverted indices on `stackedByDimension`.
if(s||(f=m.data.rawIndexOf(m.stackedByDimension,h)),f>=0){var v=m.data.getByRawIndex(m.stackResultDimension,f);
// Considering positive stack, negative stack and empty data
if("all"===c||"positive"===c&&v>0||"negative"===c&&v<0||"samesign"===c&&d>=0&&v>0||"samesign"===c&&d<=0&&v<0){
// The sum has to be very small to be affected by the
// floating arithmetic problem. An incorrect result will probably
// cause axis min/max to be filtered incorrectly.
d=Object(ee.b)(d,v),p=v;break}}}return r[0]=d,r[1]=p,r}))}))}
// EXTERNAL MODULE: ./node_modules/echarts/lib/model/Series.js
var ne=n("4f85"),re=n("b12f"),ie=n("e887"),ae=n("c7a2"),oe=n("0da8"),se=n("deca"),ce=n("cbe5"),le=n("861c"),ue=n("7d6c"),he=n("88b3"),fe=n("282b"),de=n("551f"),pe=n("3901"),ge=Object(l.o)(),me={itemStyle:Object(fe.a)(de.a,!0),lineStyle:Object(fe.a)(pe.a,!0)},ve={lineStyle:"stroke",itemStyle:"fill"};
// EXTERNAL MODULE: ./node_modules/echarts/lib/view/Component.js
function ye(e,t){var n=e.visualStyleMapper||me[t];return n||me.itemStyle}function Ae(e,t){
// return defaultColorKey[stylePath] ||
var n=e.visualDrawType||ve[t];return n||"fill"}var be={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=ye(e,r)(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);
// TODO
var c=Ae(e,r),l=o[c],u=Object(a.isFunction)(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;
// Get from color palette by default.
if(!o[c]||u||h){
// Note: If some series has color specified (e.g., by itemStyle.color), we DO NOT
// make it effect palette. Because some scenarios users need to make some series
// transparent or as background, which should better not effect the palette.
var f=e.getColorFromPalette(
// TODO series count changed.
e.name,null,t.getSeriesCount());o[c]||(o[c]=f,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(a.isFunction)(o.fill)?f:o.fill,o.stroke="auto"===o.stroke||Object(a.isFunction)(o.stroke)?f:o.stroke}
// Only visible series has each data be visual encoded
if(n.setVisual("style",o),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(a.extend)({},o);i[c]=u(r),t.setItemVisual(n,"style",i)}}}},we=new u.a,xe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=ye(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){
// Not use getItemModel for performance considuration
var n=e.getRawDataItem(t);if(n&&n[r]){we.option=n[r];var s=i(we),c=e.ensureUniqueItemVisual(t,"style");Object(a.extend)(c,s),we.option.decal&&(e.setItemVisual(t,"decal",we.option.decal),we.option.decal.dirty=!0),o in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Ce={performRawSeries:!0,overallReset:function(e){
// Each type of series uses one scope.
// Pie and funnel are using different scopes.
var t=Object(a.createHashMap)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),ge(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=ge(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=Ae(t,o);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),
// Iterate on data before filtered. To make sure color from palette can be
// Consistent when toggling legend.
n.each((function(e){var o=r[e];
// Get color from palette for each data only when the color is inherited from series color, which is
// also picked from color palette. So following situation is not in the case:
// 1. series.itemStyle.color is set
// 2. color is encoded by visualMap
if(i.getItemVisual(o,"colorFromPalette")){var c=i.ensureUniqueItemVisual(o,"style"),l=n.getName(e)||e+"",u=n.count();c[s]=t.getColorFromPalette(l,a,u)}}))}}))}},_e=n("2dc5"),Ie=n("76a5"),Ee=n("8d32"),ke=Math.PI;
// EXTERNAL MODULE: ./node_modules/echarts/lib/core/task.js
var Se=n("9fbc"),Be=n("8918"),Me=/** @class */function(){function e(e,t,n,r){
// key: handlerUID
this._stageTaskMap=Object(a.createHashMap)(),this.ecInstance=e,this.api=t,
// Fix current processors in case that in some rear cases that
// processors might be registered after echarts instance created.
// Register processors incrementally for a echarts instance is
// not supported by this stream architecture.
n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){
// TODO: Only restore needed series and components, but not all components.
// Currently `restoreData` of all of the series and component will be called.
// But some independent components like `title`, `legend`, `graphic`, `toolbox`,
// `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,
// and some components like coordinate system, axes, dataZoom, visualMap only
// need their target series refresh.
// (1) If we are implementing this feature some day, we should consider these cases:
// if a data processor depends on a component (e.g., dataZoomProcessor depends
// on the settings of `dataZoom`), it should be re-performed if the component
// is modified by `setOption`.
// (2) If a processor depends on sevral series, speicified by its `getTargetSeries`,
// it should be re-performed when the result array of `getTargetSeries` changed.
// We use `dependencies` to cover these issues.
// (3) How to update target series when coordinate system related components modified.
// TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty,
// and this case all of the tasks will be set as dirty.
e.restoreData(t),
// Theoretically an overall task not only depends on each of its target series, but also
// depends on all of the series.
// The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks
// dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure
// that the overall task is set as dirty and to be performed, otherwise it probably cause
// state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it
// probably cause state chaos (consider `dataZoomProcessor`).
this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},
// If seriesModel provided, incremental threshold is check by series data.
e.prototype.getPerformArgs=function(e,t){
// For overall task
if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:null!=a?Math.ceil(a/i):null,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},
/**
   * Current, progressive rendering starts from visual and layout.
   * Always detect render mode in the same stage, avoiding that incorrect
   * detection caused by data filtering.
   * Caution:
   * `updateStreamModes` use `seriesModel.getData()`.
   */
e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(a.createHashMap)();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(a.each)(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{});Object(a.assert)(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){
// If we do not use `block` here, it should be considered when to update modes.
this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(a.each)(e,(function(e,a){if(!r.visualType||r.visualType===e.visualType){var c=o._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var h,f=u.agentStubMap;f.each((function(e){s(r,e)&&(e.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,n);var d=o.getPerformArgs(u,r.block);
// Execute stubs firstly, which may set the overall task dirty,
// then execute the overall task. And stub will call seriesModel.setData,
// which ensures that in the overallTask seriesModel.getData() will not
// return incorrect data.
f.each((function(e){e.perform(d)})),u.perform(d)&&(i=!0)}else l&&l.each((function(a,c){s(r,a)&&a.dirty();var l=o.getPerformArgs(a,r.block);
// FIXME
// if intending to declare `performRawSeries` in handlers, only
// stream-independent (specifically, data item independent) operations can be
// performed. Because if a series is filtered, most of the tasks will not
// be performed. A stream-dependent operation probably cause wrong biz logic.
// Perhaps we should not provide a separate callback for this case instead
// of providing the config `performRawSeries`. The stream-dependent operations
// and stream-independent operations should better not be mixed.
l.skip=!e.performRawSeries&&t.isSeriesFiltered(a.context.model),o.updatePayload(a,n),a.perform(l)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){
// Progress to the end for dataInit and dataRestore.
t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){
// Travel pipelines, check block.
this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Object(a.createHashMap)(),c=e.seriesType,l=e.getTargetSeries;function u(t){var a=t.uid,c=s.set(a,o&&o.get(a)||Object(Se.a)({plan:Le,reset:Qe,count:Ne}));
// Init tasks for each seriesModel only once.
// Reuse original task instance.
c.context={model:t,ecModel:n,api:r,
// PENDING: `useClearVisual` not used?
useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}
// If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily,
// to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`,
// it works but it may cause other irrelevant charts blocked.
e.createOnAllSeries?n.eachRawSeries(u):c?n.eachRawSeriesByType(c,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||Object(Se.a)({reset:Te});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,c=o.agentStubMap=Object(a.createHashMap)(),l=e.seriesType,u=e.getTargetSeries,h=!0,f=!1;
// The count of stages are totally about only several dozen, so
// do not need to reuse the map.
function d(e){var t=e.uid,n=c.set(t,s&&s.get(t)||(
// When the result of `getTargetSeries` changed, the overallTask
// should be set as dirty and re-performed.
f=!0,Object(Se.a)({reset:Oe,onDirty:Pe})));n.context={model:e,overallProgress:h},n.agent=o,n.__block=h,i._pipe(e,n)}Object(a.assert)(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(h=!1,Object(a.each)(n.getSeries(),d)),f&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(a.isFunction)(e)&&(e={overallReset:e,seriesType:Fe(e)}),e.uid=Object(Be.c)("stageHandler"),t&&(e.visualType=t),e},e}();
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/component.js
function Te(e){e.overallReset(e.ecModel,e.api,e.payload)}function Oe(e){return e.overallProgress&&De}function De(){this.agent.dirty(),this.getDownstream().dirty()}function Pe(){this.agent&&this.agent.dirty()}function Le(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Qe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Object(l.r)(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(a.map)(t,(function(e,t){return je(t)})):Re}var Re=je(0);function je(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function Ne(e){return e.data.count()}
/**
 * Only some legacy stage handlers (usually in echarts extensions) are pure function.
 * To ensure that they can work normally, they should work in block mode, that is,
 * they should not be started util the previous tasks finished. So they cause the
 * progressive rendering disabled. We try to detect the series type, to narrow down
 * the block range to only the series type they concern, but not all series.
 */function Fe(e){ze=null;try{
// Assume there is no async when calling `eachSeriesByType`.
e(He,Ue)}catch(e){}return ze}var ze,He={},Ue={};function Ge(e,t){
/* eslint-disable */
for(var n in t.prototype)
// Do not use hasOwnProperty
e[n]=a.noop;
/* eslint-enable */}
/* harmony default export */Ge(He,k),Ge(Ue,B),He.eachSeriesByType=He.eachRawSeriesByType=function(e){ze=e},He.eachComponent=function(e){"series"===e.mainType&&e.subType&&(ze=e.subType)};var Ve=Me,We=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],qe={color:We,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],We]},Ye="#B9B8CE",Ke="#100C2A",$e=function(){return{axisLine:{lineStyle:{color:Ye}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Je=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Xe={darkMode:!0,color:Je,backgroundColor:Ke,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{
// TODO Contrast of label backgorundColor
color:"#fff"}},legend:{textStyle:{color:Ye},pageTextStyle:{color:Ye}},textStyle:{color:Ye},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ye}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ye},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ye}},timeline:{lineStyle:{color:Ye},label:{color:Ye},controlStyle:{color:Ye,borderColor:Ye}},calendar:{itemStyle:{color:Ke},dayLabel:{color:Ye},monthLabel:{color:Ye},yearLabel:{color:Ye}},timeAxis:$e(),logAxis:$e(),valueAxis:$e(),categoryAxis:$e(),line:{symbol:"circle"},graph:{color:Je},gauge:{title:{color:Ye},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ye},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/theme/light.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/Xe.categoryAxis.splitLine.show=!1;
/* harmony default export */var Ze=Xe,et=n("625e"),tt=/** @class */function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};
// `query` is `mainType` or `mainType.subType` of component.
if(a.isString(e)){var i=Object(et.f)(e);
// `.main` and `.sub` may be ''.
t.mainType=i.main||null,t.subType=i.sub||null}
// `query` is an object, convert to {mainType, index, name, id}.
else{
// `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,
// can not be used in `compomentModel.filterForExposedEvent`.
var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a.each(e,(function(e,i){for(var a=!1,c=0;c<o.length;c++){var l=o[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var h=i.slice(0,u);
// Consider `dataIndex`.
"data"!==h&&(t.mainType=h,t[l.toLowerCase()]=e,a=!0)}}s.hasOwnProperty(i)&&(n[i]=e,a=!0),a||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){
// They should be assigned before each trigger call.
var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;
// For event like 'globalout'.
if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,"mainType")&&l(s,a,"subType")&&l(s,a,"index","componentIndex")&&l(s,a,"name")&&l(s,a,"id")&&l(c,i,"name")&&l(c,i,"dataIndex")&&l(c,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){
// Make sure the eventInfo won't be used in next trigger.
this.eventInfo=null},e}(),nt=["symbol","symbolSize","symbolRotate","symbolOffset"],rt=nt.concat(["symbolKeepAspect"]),it={createOnAllSeries:!0,
// For legend.
performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,s=0;s<nt.length;s++){var c=nt[s],l=e.get(c);Object(a.isFunction)(l)?(o=!0,i[c]=l):r[c]=l}
// Only visible series has each data be visual encoded
if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Object(a.extend)({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=Object(a.keys)(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<u.length;o++){var s=u[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}},at={createOnAllSeries:!0,
// For legend.
performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<rt.length;r++){var i=rt[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}:null};
// Only visible series has each data be visual encoded
}},ot=n("0924"),st=n("f3bb"),ct=n("04f7"),lt=n("ef59"),ut=n("fadd"),ht=n("b3c1");
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/clazz.js
var ft=new c.a,dt=n("726e"),pt=n("58c9"),gt="5.6.0",mt={zrender:"5.6.1"},vt=2e3,yt=1e3,At=2e3,bt=3e3,wt=4500,xt={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:yt,PROGRESSIVE_LAYOUT:1100,GLOBAL:At,CHART:bt,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:wt,ARIA:6e3,DECAL:7e3}},Ct="__flagInMainProcess",_t="__pendingUpdate",It="__needsUpdateStatus",Et=/^[a-zA-Z0-9_]+$/,kt="__connectUpdateStatus";
/* harmony default export */function St(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Mt(this,e,t);en(this.id)}}function Bt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mt(this,e,t)}}function Mt(e,t,n){
// `args[0]` is event name. Event name is all lowercase.
return n[0]=n[0]&&n[0].toLowerCase(),c.a.prototype[t].apply(e,n)}var Tt,Ot,Dt,Pt,Lt,Qt,Rt,jt,Nt,Ft,zt,Ht,Ut,Gt,Vt,Wt,qt,Yt,Kt=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.a)(t,e),t}(c.a),$t=Kt.prototype;$t.on=Bt("on"),$t.off=Bt("off");var Jt=/** @class */function(e){function t(t,
// Theme name or themeOption.
n,r){var o=e.call(this,new tt)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},
// Can't dispatch action during rendering procedure
o._pendingActions=[],r=r||{},
// Get theme by name
Object(a.isString)(n)&&(n=sn[n]),o._dom=t;r.ssr&&i.registerSSRDataGetter((function(e){var t=Object(le.a)(e),n=t.dataIndex;if(null!=n){var r=Object(a.createHashMap)();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}}));var c=o._zr=i.init(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(a.retrieve2)(r.useDirtyRect,!1),useCoarsePointer:Object(a.retrieve2)(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});o._ssr=r.ssr,
// Expect 60 fps.
o._throttledZrFlush=Object(he.c)(Object(a.bind)(c.flush,c),17),(n=Object(a.clone)(n))&&Z(n,!0),o._theme=n,o._locale=Object(lt.b)(r.locale||lt.a),o._coordSysMgr=new M.a;var l=o._api=Vt(o);
// Sort on demand
function u(e,t){return e.__prio-t.__prio}return Object(s.a)(on,u),Object(s.a)(rn,u),o._scheduler=new Ve(o,l,rn,on),o._messageCenter=new Kt,
// Init mouse events
o._initEvents(),
// In case some people write `window.onresize = chart.resize`
o.resize=Object(a.bind)(o.resize,o),c.animation.on("frame",o._onframe,o),Ft(c,o),zt(c,o),
// ECharts instance can be used as value.
Object(a.setAsPrimitive)(o),o}return Object(r.a)(t,e),t.prototype._onframe=function(){if(!this._disposed){Yt(this);var e=this._scheduler;
// Lazy update
if(this[_t]){var t=this[_t].silent;this[Ct]=!0;try{Tt(this),Pt.update.call(this,null,this[_t].updateParams)}catch(e){throw this[Ct]=!1,this[_t]=null,e}
// At present, in each frame, zrender performs:
//   (1) animation step forward.
//   (2) trigger('frame') (where this `_onframe` is called)
//   (3) zrender flush (render).
// If we do nothing here, since we use `setToFinal: true`, the step (3) above
// will render the final state of the elements before the real animation started.
this._zr.flush(),this[Ct]=!1,this[_t]=null,jt.call(this,t),Nt.call(this,t)}
// Avoid do both lazy update and progress in one frame.
else if(e.unfinished){
// Stream progress.
var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),
// Currently dataProcessorFuncs do not check threshold.
e.performDataProcessorTasks(r),Qt(this,r),
// Do not update coordinate system here. Because that coord system update in
// each frame is not a good user experience. So we follow the rule that
// the extent of the coordinate system is determined in the first frame (the
// frame is executed immediately after task reset.
// this._coordSysMgr.update(ecModel, api);
// console.log('--- ec frame visual ---', remainTime);
e.performVisualTasks(r),Gt(this,this._model,i,"remain",{}),n-=+new Date-a}while(n>0&&e.unfinished);
// Call flush explicitly for trigger finished event.
e.unfinished||this._zr.flush();
// Else, zr flushing be ensue within the same frame,
// because zr flushing is after onframe event.
}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},
/* eslint-disable-next-line */
t.prototype.setOption=function(e,t,n){if(!this[Ct])if(this._disposed)en(this.id);else{var r,i,o;if(Object(a.isObject)(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[Ct]=!0,!this._model||t){var s=new D(this._api),c=this._theme,l=this._model=new k;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,c,this._locale,s)}this._model.setOption(e,{replaceMerge:i},an);var u={seriesTransition:o,optionChanged:!0};if(n)this[_t]={silent:r,updateParams:u},this[Ct]=!1,
// `setOption(option, {lazyMode: true})` may be called when zrender has been slept.
// It should wake it up to make sure zrender start to render at the next frame.
this.getZr().wakeUp();else{try{Tt(this),Pt.update.call(this,null,u)}catch(e){throw this[_t]=null,this[Ct]=!1,e}
// Ensure zr refresh sychronously, and then pixel in canvas can be
// fetched after `setOption`.
this._ssr||
// not use flush when using ssr mode.
this._zr.flush(),this[_t]=null,this[Ct]=!1,jt.call(this,r),Nt.call(this,r)}}},
/**
   * @deprecated
   */
t.prototype.setTheme=function(){Object(w.a)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},
// We don't want developers to use getModel directly.
t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr
/* eslint-disable-next-line */||o.a.hasGlobalWindow&&window.devicePixelRatio||1},
/**
   * Get canvas which has all thing rendered
   * @deprecated Use renderToCanvas instead.
   */
t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},
/**
   * Get svg data url
   */
t.prototype.getSvgDataURL=function(){if(o.a.svgSupported){var e=this._zr,t=e.storage.getDisplayList();
// Stop animations
return Object(a.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;Object(a.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(a.each)(r,(function(e){e.group.ignore=!1})),o}en(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max,s=1/0;if(un[n]){var c=s,l=s,u=-1/0,h=-1/0,f=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(a.each)(ln,(function(i,s){if(i.group===n){var d=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(a.clone)(e)),p=i.getDom().getBoundingClientRect();c=r(p.left,c),l=r(p.top,l),u=o(p.right,u),h=o(p.bottom,h),f.push({dom:d,left:p.left,top:p.top})}}));var p=(u*=d)-(c*=d),g=(h*=d)-(l*=d),m=dt.d.createCanvas(),v=i.init(m,{renderer:t?"svg":"canvas"});if(v.resize({width:p,height:g}),t){var y="";return Object(a.each)(f,(function(e){var t=e.left-c,n=e.top-l;y+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}
// Background between the charts
return e.connectedBackgroundColor&&v.add(new ae.a({shape:{x:0,y:0,width:p,height:g},style:{fill:e.connectedBackgroundColor}})),Object(a.each)(f,(function(e){var t=new oe.a({style:{x:e.left*d-c,y:e.top*d-l,image:e.dom}});v.add(t)})),v.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}en(this.id)},t.prototype.convertToPixel=function(e,t){return Lt(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Lt(this,"convertFromPixel",e,t)},
/**
   * Is the specified coordinate systems or components contain the given pixel point.
   * @param {Array|number} value
   * @return {boolean} result
   */
t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=l.s(r,e);return Object(a.each)(i,(function(e,r){r.indexOf("Models")>=0&&Object(a.each)(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0}),this)}),this),!!n}en(this.id)},
/**
   * Get visual from series or data.
   * @param finder
   *        If string, e.g., 'series', means {seriesIndex: 0}.
   *        If Object, could contain some of these properties below:
   *        {
   *            seriesIndex / seriesId / seriesName,
   *            dataIndex / dataIndexInside
   *        }
   *        If dataIndex is not specified, series visual will be fetched,
   *        but not data item visual.
   *        If all of seriesIndex, seriesId, seriesName are not specified,
   *        visual will be fetched from first series.
   * @param visualType 'color', 'symbol', 'symbolSize'
   */
t.prototype.getVisual=function(e,t){var n=this._model,r=l.s(n,e,{defaultMainType:"series"});var i=r.seriesModel.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=a?Object(ot.a)(i,a,t):Object(ot.b)(i,t)},
/**
   * Get view of corresponding component model
   */
t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},
/**
   * Get view of corresponding series model
   */
t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(a.each)(Zt,(function(t){var n=function(n){var r,i=e.getModel(),o=n.target;
// Contract: if params prepared in mouse event,
// these properties must be specified:
// {
//    componentType: string (component main type)
//    componentIndex: number
// }
// Otherwise event query can not work.
if(
// no e.target when 'globalout'.
"globalout"===t?r={}:o&&Object(ut.a)(o,(function(e){var t=Object(le.a)(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,o)||{},!0}
// If element has custom eventData of components
if(t.eventData)return r=Object(a.extend)({},t.eventData),!0}),!0),r){var s=r.componentType,c=r.componentIndex;
// Special handling for historic reason: when trigger by
// markLine/markPoint/markArea, the componentType is
// 'markLine'/'markPoint'/'markArea', but we should better
// enable them to be queried by seriesIndex, since their
// option is set in each series.
"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",c=r.seriesIndex);var l=s&&null!=c&&i.getComponent(s,c),u=l&&e["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:l,view:u},e.trigger(t,r)}};
// Consider that some component (like tooltip, brush, ...)
// register zr event handler, but user event handler might
// do anything, such as call `setOption` or `dispatchAction`,
// which probably update any of the content and probably
// cause problem if it is called previous other inner handlers.
n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(a.each)(nn,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),
// Extra events
// TODO register?
Object(a.each)(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(st.b)(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?en(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)en(this.id);else{this._disposed=!0,this.getDom()&&l.w(this.getDom(),dn,"");var e=this,t=e._api,n=e._model;Object(a.each)(e._componentsViews,(function(e){e.dispose(n,t)})),Object(a.each)(e._chartsViews,(function(e){e.dispose(n,t)})),
// Dispose after all views disposed
e._zr.dispose(),
// Set properties to null.
// To reduce the memory cost in case the top code still holds this instance unexpectedly.
e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ln[e.id]}},
/**
   * Resize the chart
   */
t.prototype.resize=function(e){if(!this[Ct])if(this._disposed)en(this.id);else{this._zr.resize(e);var t=this._model;
// Resize loading effect
if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;
// There is some real cases that:
// chart.setOption(option, { lazyUpdate: true });
// chart.resize();
this[_t]&&(null==r&&(r=this[_t].silent),n=!0,this[_t]=null),this[Ct]=!0;try{n&&Tt(this),Pt.update.call(this,{type:"resize",animation:Object(a.extend)({
// Disable animation
duration:0},e&&e.animation)})}catch(e){throw this[Ct]=!1,e}this[Ct]=!1,jt.call(this,r),Nt.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)en(this.id);else if(Object(a.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),cn[e]){var n=cn[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},
/**
   * Hide loading effect
   */
t.prototype.hideLoading=function(){this._disposed?en(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(a.extend)({},e);return t.type=nn[e.type],t},
/**
   * @param opt If pass boolean, means opt.silent
   * @param opt.silent Default `false`. Whether trigger events.
   * @param opt.flush Default `undefined`.
   *        true: Flush immediately, and then pixel in canvas can be fetched
   *            immediately. Caution: it might affect performance.
   *        false: Not flush.
   *        undefined: Auto decide whether perform flush.
   */
t.prototype.dispatchAction=function(e,t){if(this._disposed)en(this.id);else if(Object(a.isObject)(t)||(t={silent:!!t}),tn[e.type]&&this._model)
// May dispatchAction in rendering procedure
if(this[Ct])this._pendingActions.push(e);else{var n=t.silent;Rt.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&o.a.browser.weChat&&
// In WeChat embedded browser, `requestAnimationFrame` and `setInterval`
// hang when sliding page (on touch event), which cause that zr does not
// refresh until user interaction finished, which is not expected.
// But `dispatchAction` may be called too frequently when pan on touch
// screen, which impacts performance if do not throttle them.
this._throttledZrFlush(),jt.call(this,n),Nt.call(this,n)}
// Avoid dispatch action before setOption. Especially in `connect`.
},t.prototype.updateLabelLayout=function(){ft.trigger("series:layoutlabels",this._model,this._api,{
// Not adding series labels.
// TODO
updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)en(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),
// Note: `appendData` does not support that update extent of coordinate
// system, util some scenario require that. In the expected usage of
// `appendData`, the initial extent of coordinate system should better
// be fixed by axis `min`/`max` setting or initial data, otherwise if
// the extent changed while `appendData`, the location of the painted
// graphic elements have to be changed, which make the usage of
// `appendData` meaningless.
this._scheduler.unfinished=!0,this.getZr().wakeUp()}},
// A work around for no `internal` modifier in ts yet but
// need to strictly hide private methods to JS users.
t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){
// Keep other states.
for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}
// Only use states when it's exists.
e.selected&&e.states.select&&t.push("select"),e.hoverState===ue.e&&e.states.emphasis?t.push("emphasis"):e.hoverState===ue.d&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;
// Set z and zlevel
t.eachRendered((function(e){
// Don't traverse the children because it has been traversed in _updateZ.
return i(e,n,r,-1/0),!0}))}}function i(e,t,n,r){
// Group may also have textContent
var a=e.getTextContent(),o=e.getTextGuideLine();if(e.isGroup)for(
// set z & zlevel of children elements of Group
var s=e.childrenRef(),c=0;c<s.length;c++)r=Math.max(i(s[c],t,n,r),r);else
// not Group
e.z=t,e.zlevel=n,r=Math.max(e.z2,r);
// always set z and zlevel if label/labelLine exists
if(a&&(a.z=t,a.zlevel=n,
// lift z2 of text content
// TODO if el.emphasis.z2 is spcefied, what about textContent.
isFinite(r)&&(a.z2=r+2)),o){var l=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(l&&l.showAbove?1:-1))}return r}
// Clear states without animation.
// TODO States on component.
function c(e,t){t.eachRendered((function(e){
// Not applied on removed elements, it may still in fading.
if(!se.d(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),
// TODO If el is incremental.
e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function u(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){
// Not applied on removed elements, it may still in fading.
if(se.d(e))return;
// Only updated on changed element. In case element is incremental and don't want to rerender.
// TODO, a more proper way?
if(e instanceof ce.b&&Object(ue.E)(e),e.__dirty){var n=e.prevStates;
// Restore states without animation
n&&e.useStates(n)}
// Update state transition and enable animation again.
if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();
// TODO Is it necessary to animate label?
r&&(r.stateTransition=o),a&&(a.stateTransition=o)}
// Use highlighted and selected flag to toggle states.
e.__dirty&&t(e)}}))}Tt=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Ot(e,!0),Ot(e,!1),t.plan()},
/**
     * Prepare view instances of charts and components
     */
Ot=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;function l(e){
// By default view will be reused if possible for the case that `setOption` with "notMerge"
// mode and need to enable transition animation. (Usually, when they have the same id, or
// especially no id but have the same type & name & index. See the `model.id` generation
// rule in `makeIdAndName` and `viewId` generation rule here).
// But in `replaceMerge` mode, this feature should be able to disabled when it is clear that
// the new model has nothing to do with the old model.
var c=e.__requireNewView;
// This command should not work twice.
e.__requireNewView=!1;
// Consider: id same and type changed.
var l="_ec_"+e.id+"_"+e.type,u=!c&&a[l];if(!u){var h=Object(et.f)(e.type);0,(u=new(t?re.a.getClass(h.main,h.sub):
// FIXME:TS
// (ChartView as ChartViewConstructor).getClass('series', classType.sub)
// For backward compat, still support a chart type declared as only subType
// like "liquidfill", but recommend "series.liquidfill"
// But need a base class to make a type series.
ie.a.getClass(h.sub))).init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&l(t)})):n.eachSeries(l);for(c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Dt=function(e,t,n,r,i){var o=e._model;
// broadcast
if(o.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var c={mainType:r,query:s};i&&(c.subType=i);// subType may be '' by parseClassType;
var u,h=n.excludeSeriesId;null!=h&&(u=Object(a.createHashMap)(),Object(a.each)(l.r(h),(function(e){var t=l.e(e,null);null!=t&&u.set(t,!0)}))),
// If dispatchAction before setOption, do nothing.
o&&o.eachComponent(c,(function(t){if(!(u&&null!=u.get(t.id)))if(Object(ue.z)(n))if(t instanceof ne.b)n.type!==ue.c||n.notBlur||t.get(["emphasis","disabled"])||Object(ue.m)(t,n,e._api);else{var r=Object(ue.t)(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===ue.c&&i&&!n.notBlur&&Object(ue.l)(t.mainType,t.componentIndex,e._api),
// PENDING:
// Whether to put this "enter emphasis" code in `ComponentView`,
// which will be the same as `ChartView` but might be not necessary
// and will be far from this logic.
o&&Object(a.each)(o,(function(e){n.type===ue.c?Object(ue.r)(e):Object(ue.C)(e)}))}else Object(ue.A)(n)&&t instanceof ne.b&&(Object(ue.K)(t,n,e._api),Object(ue.L)(t),qt(e))}),e),o&&o.eachComponent(c,(function(t){u&&null!=u.get(t.id)||f(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else
// FIXME
// Chart will not be update directly here, except set dirty.
// But there is no such scenario now.
Object(a.each)([].concat(e._componentsViews).concat(e._chartsViews),f);function f(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},Pt={prepareAndUpdate:function(e){Tt(this),Pt.update.call(this,e,{
// Needs to mark option changed if newOption is given.
// It's from MagicType.
// TODO If use a separate flag optionChanged in payload?
optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;
// update before setOption
if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),
// TODO
// Save total ecModel here for undo/redo (after restoring data and before processing data).
// Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.
// Create new coordinate system each update
// In LineView may save the old coordinate system and use it to get the original point.
o.create(r,i),s.performDataProcessorTasks(r,t),
// Current stream render is not supported in data process. So we can update
// stream modes after data processing, where the filtered data is used to
// determine whether to use progressive rendering.
Qt(this,r),
// We update stream modes before coordinate system updated, then the modes info
// can be fetched when coord sys updating (consider the barGrid extent fix). But
// the drawback is the full coord info can not be fetched. Fortunately this full
// coord is not required in stream mode updater currently.
o.update(r,i),e(r),s.performVisualTasks(r,t),Ht(this,r,i,t,n);
// Set background
var c=r.get("backgroundColor")||"transparent",l=r.get("darkMode");a.setBackgroundColor(c),
// Force set dark mode.
null!=l&&"auto"!==l&&a.setDarkMode(l),ft.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;
// update before setOption
if(r){r.setUpdatePayload(t);
// ChartView.markUpdateMethod(payload, 'updateTransform');
var o=[];r.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(a,r,i,t);c&&c.update&&o.push(s)}else o.push(s)}}));var s=Object(a.createHashMap)();r.eachSeries((function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var o=a.updateTransform(e,r,i,t);o&&o.update&&s.set(e.uid,1)}else s.set(e.uid,1)})),e(r),
// Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
// this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);
this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:s}),
// Currently, not call render of components. Geo render cost a lot.
// renderComponents(ecIns, ecModel, api, payload, componentDirtyList);
Gt(this,r,i,t,{},s),ft.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;
// update before setOption
n&&(n.setUpdatePayload(t),ie.a.markUpdateMethod(t,"updateView"),e(n),
// Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Ht(this,n,this._api,t,{}),ft.trigger("afterupdate",n,this._api))},updateVisual:function(t){
// updateMethods.update.call(this, payload);
var n=this,r=this._model;
// update before setOption
r&&(r.setUpdatePayload(t),
// clear all visual
r.eachSeries((function(e){e.getData().clearAllVisual()})),
// Perform visual
ie.a.markUpdateMethod(t,"updateVisual"),e(r),
// Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)})),ft.trigger("afterupdate",r,this._api))},updateLayout:function(e){Pt.update.call(this,e)}},Lt=function(e,t,n,r){if(e._disposed)en(e.id);else{for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=l.s(a,n),c=0;c<o.length;c++){var u=o[c];if(u[t]&&null!=(i=u[t](a,s,r)))return i}0}},Qt=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},Rt=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,s=tn[i],c=s.actionInfo,u=(c.update||"update").split(":"),h=u.pop(),f=null!=u[0]&&Object(et.f)(u[0]);this[Ct]=!0;var d=[e],p=!1;
// Batch action
e.batch&&(p=!0,d=Object(a.map)(e.batch,(function(t){return(t=Object(a.defaults)(Object(a.extend)({},t),e)).batch=null,t})));var g,m=[],v=Object(ue.A)(e),y=Object(ue.z)(e);if(
// Only leave blur once if there are multiple batches.
y&&Object(ue.k)(this._api),Object(a.each)(d,(function(t){
// light update does not perform data process, layout and visual.
if(
// Action can specify the event by return it.
// Convert type to eventType
(
// Emit event outside
g=(g=s.action(t,n._model,n._api))||Object(a.extend)({},t)).type=c.event||g.type,m.push(g),y){var r=l.t(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";Dt(n,h,t,o),qt(n)}else v?(
// At present `dispatchAction({ type: 'select', ... })` is not supported on components.
// geo still use 'geoselect'.
Dt(n,h,t,"series"),qt(n)):f&&Dt(n,h,t,f.main,f.sub)})),"none"!==h&&!y&&!v&&!f)try{
// Still dirty
this[_t]?(Tt(this),Pt.update.call(this,e),this[_t]=null):Pt[h].call(this,e)}catch(e){throw this[Ct]=!1,e}
// Follow the rule of action batch
if(g=p?{type:c.event||i,escapeConnect:o,batch:m}:m[0],this[Ct]=!1,!t){var A=this._messageCenter;
// Extra triggered 'selectchanged' event
if(A.trigger(g.type,g),v){var b={type:"selectchanged",escapeConnect:o,selected:Object(ue.u)(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};A.trigger(b.type,b)}}},jt=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Rt.call(this,n,e)}},Nt=function(e){!e&&this.trigger("updated")},
/**
     * Event `rendered` is triggered when zr
     * rendered. It is useful for realtime
     * snapshot (reflect animation).
     *
     * Event `finished` is triggered when:
     * (1) zrender rendering finished.
     * (2) initial animation finished.
     * (3) progressive rendering finished.
     * (4) no pending action.
     * (5) no delayed setOption needs to be processed.
     */
Ft=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),
// The `finished` event should not be triggered repeatedly,
// so it should only be triggered when rendering indeed happens
// in zrender. (Consider the case that dipatchAction is keep
// triggering when mouse move).
// Although zr is dirty if initial animation is not finished
// and this checking is called on frame, we also check
// animation finished for robustness.
!e.animation.isFinished()||t[_t]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},zt=function(e,t){e.on("mouseover",(function(e){var n=e.target,r=Object(ut.a)(n,ue.y);r&&(Object(ue.x)(r,e,t._api),qt(t))})).on("mouseout",(function(e){var n=e.target,r=Object(ut.a)(n,ue.y);r&&(Object(ue.w)(r,e,t._api),qt(t))})).on("click",(function(e){var n=e.target,r=Object(ut.a)(n,(function(e){return null!=Object(le.a)(e).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",a=Object(le.a)(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},Ht=function(e,t,n,r,i){!
// Allocate zlevels for series and components
function(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var a=i.get("zlevel")||0,o=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})})),r){
// Series after component
var i,o,c=t.concat(n);Object(s.a)(c,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(a.each)(c,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(t),Ut(e,t,n,r,i),Object(a.each)(e._chartsViews,(function(e){e.__alive=!1})),Gt(e,t,n,r,i),
// Remove groups of unrendered charts
Object(a.each)(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},Ut=function(e,t,r,i,o,s){Object(a.each)(s||e._componentsViews,(function(e){var a=e.__model;c(a,e),e.render(a,t,r,i),n(a,e),u(a,e)}))},
/**
     * Render each chart and component
     */
Gt=function(e,t,r,i,s,l){
// Render all charts
var h=e._scheduler;s=Object(a.extend)(s||{},{updatedSeries:t.getSeries()}),
// TODO progressive?
ft.trigger("series:beforeupdate",t,r,s);var f=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,i),
// TODO states on marker.
c(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(f=!0),n.group.silent=!!t.get("silent"),
// Should not call markRedraw on group, because it will disable zrender
// incremental render (always render from the __startIndex each frame)
// chartView.group.markRedraw();
/**
     * Update chart and blend.
     */
function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){
// FIXME marker and other components
e.isGroup||(
// DON'T mark the element dirty. In case element is incremental and don't want to rerender.
e.style.blend=n)}))}(t,n),Object(ue.L)(t)})),h.unfinished=f||h.unfinished,ft.trigger("series:layoutlabels",t,r,s),
// transition after label is layouted.
ft.trigger("series:transition",t,r,s),t.eachSeries((function(t){var r=e._chartsMap[t.__viewId];
// Update Z after labels updated. Before applying states.
n(t,r),
// NOTE: Update states after label is updated.
// label should be in normal status when layouting.
u(t,r)})),
// If use hover layer
function(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!o.a.node&&!o.a.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),ft.trigger("series:afterupdate",t,r,s)},qt=function(e){e[It]=!0,
// Wake up zrender if it's sleep. Let it update states in the next frame.
e.getZr().wakeUp()},Yt=function(e){e[It]&&(e.getZr().storage.traverse((function(e){
// Not applied on removed elements, it may still in fading.
se.d(e)||t(e)})),e[It]=!1)},Vt=function(e){return new(/** @class */function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.a)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Object(ue.r)(t,n),qt(e)},n.prototype.leaveEmphasis=function(t,n){Object(ue.C)(t,n),qt(e)},n.prototype.enterBlur=function(t){Object(ue.q)(t),qt(e)},n.prototype.leaveBlur=function(t){Object(ue.B)(t),qt(e)},n.prototype.enterSelect=function(t){Object(ue.s)(t),qt(e)},n.prototype.leaveSelect=function(t){Object(ue.D)(t),qt(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(B))(e)},Wt=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][kt]=t}}Object(a.each)(nn,(function(n,r){e._messageCenter.on(r,(function(n){if(un[e.group]&&0!==e[kt]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Object(a.each)(ln,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),Object(a.each)(i,(function(e){1!==e[kt]&&e.dispatchAction(r)})),t(i,2)}}))}))}}(),t}(c.a),Xt=Jt.prototype;Xt.on=St("on"),Xt.off=St("off"),
/**
 * @deprecated
 */
// @ts-ignore
Xt.one=function(e,t,n){var r=this;Object(w.a)("ECharts#one is deprecated."),
// @ts-ignore
this.on.call(this,e,(function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),
// @ts-ignore
r.off(e,n)}),n)};var Zt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function en(e){0}var tn={},nn={},rn=[],an=[],on=[],sn={},cn={},ln={},un={},hn=+new Date-0,fn=+new Date-0,dn="_echarts_instance_";
/**
 * Map eventType to actionType
 */
/**
 * @param opts.devicePixelRatio Use window.devicePixelRatio by default
 * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.
 * @param opts.width Use clientWidth of the input `dom` by default.
 *        Can be 'auto' (the same as null/undefined)
 * @param opts.height Use clientHeight of the input `dom` by default.
 *        Can be 'auto' (the same as null/undefined)
 * @param opts.locale Specify the locale.
 * @param opts.useDirtyRect Enable dirty rectangle rendering or not.
 */
function pn(e,t,n){var r=!(n&&n.ssr);if(r){0;var i=An(e);if(i)return i;0}var a=new Jt(e,t,n);return a.id="ec_"+hn++,ln[a.id]=a,r&&l.w(e,dn,a.id),Wt(a),ft.trigger("afterinit",a),a}
/**
 * @usage
 * (A)
 * ```js
 * let chart1 = echarts.init(dom1);
 * let chart2 = echarts.init(dom2);
 * chart1.group = 'xxx';
 * chart2.group = 'xxx';
 * echarts.connect('xxx');
 * ```
 * (B)
 * ```js
 * let chart1 = echarts.init(dom1);
 * let chart2 = echarts.init(dom2);
 * echarts.connect('xxx', [chart1, chart2]);
 * ```
 */function gn(e){
// Is array of charts
if(Object(a.isArray)(e)){var t=e;e=null,
// If any chart has group
Object(a.each)(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+fn++,Object(a.each)(t,(function(t){t.group=e}))}return un[e]=!0,e}function mn(e){un[e]=!1}
/**
 * Alias and backward compatibility
 * @deprecated
 */var vn=mn;
/**
 * Dispose a chart instance
 */function yn(e){Object(a.isString)(e)?e=ln[e]:e instanceof Jt||(
// Try to treat as dom
e=An(e)),e instanceof Jt&&!e.isDisposed()&&e.dispose()}function An(e){return ln[l.g(e,dn)]}function bn(e){return ln[e]}
/**
 * Register theme
 */function wn(e,t){sn[e]=t}
/**
 * Register option preprocessor
 */function xn(e){Object(a.indexOf)(an,e)<0&&an.push(e)}function Cn(e,t){Dn(rn,e,t,vt)}
/**
 * Register postIniter
 * @param {Function} postInitFunc
 */function _n(e){En("afterinit",e)}
/**
 * Register postUpdater
 * @param {Function} postUpdateFunc
 */function In(e){En("afterupdate",e)}function En(e,t){ft.on(e,t)}function kn(e,t,n){Object(a.isFunction)(t)&&(n=t,t="");var r=Object(a.isObject)(e)?e.type:[e,e={event:t}][0];
// Event name is all lowercase
e.event=(e.event||r).toLowerCase(),t=e.event,nn[t]||(
// Validate action type and event name.
Object(a.assert)(Et.test(r)&&Et.test(t)),tn[r]||(tn[r]={action:n,actionInfo:e}),nn[t]=r)}function Sn(e,t){M.a.register(e,t)}
/**
 * Get dimensions of specified coordinate system.
 * @param {string} type
 * @return {Array.<string|Object>}
 */function Bn(e){var t=M.a.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Mn(e,t){Dn(on,e,t,yt,"layout")}function Tn(e,t){Dn(on,e,t,bt,"visual")}var On=[];function Dn(e,t,n,r,i){
// Already registered
if((Object(a.isFunction)(t)||Object(a.isObject)(t))&&(n=t,t=r),!(Object(a.indexOf)(On,n)>=0)){On.push(n);var o=Ve.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Pn(e,t){cn[e]=t}
/**
 * ZRender need a canvas context to do measureText.
 * But in node environment canvas may be created by node-canvas.
 * So we need to specify how to create a canvas instead of using document.createElement('canvas')
 *
 *
 * @deprecated use setPlatformAPI({ createCanvas }) instead.
 *
 * @example
 *     let Canvas = require('canvas');
 *     let echarts = require('echarts');
 *     echarts.setCanvasCreator(function () {
 *         // Small size is enough.
 *         return new Canvas(32, 32);
 *     });
 */function Ln(e){Object(dt.e)({createCanvas:e})}
/**
 * The parameters and usage: see `geoSourceManager.registerMap`.
 * Compatible with previous `echarts.registerMap`.
 */function Qn(e,t,n){var r=Object(pt.a)("registerMap");r&&r(e,t,n)}function Rn(e){var t=Object(pt.a)("getMap");return t&&t(e)}var jn=ct.b;
/**
 * Globa dispatchAction to a specified chart instance.
 */
// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters<ECharts['dispatchAction']>[1]) {
//     if (!payload || !payload.chartId) {
//         // Must have chartId to find chart
//         return;
//     }
//     const chart = instances[payload.chartId];
//     if (chart) {
//         chart.dispatchAction(payload, opt);
//     }
// }
// Builtin global visual
Tn(At,be),Tn(wt,xe),Tn(wt,Ce),Tn(At,it),Tn(wt,at),Tn(7e3,(
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/decal.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Object(ht.a)(n,t))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Object(ht.a)(i,t)}}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/core/lifecycle.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/)),xn(Z),Cn(900,(function(e){var t=Object(a.createHashMap)();e.eachSeries((function(e){var n=e.get("stack");
// Compatible: when `stack` is set as '', do not stack.
if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={
// Used for calculate axis extent automatically.
// TODO: Type getCalculationInfo return more specific type?
stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};
// If stacked on axis that do not support data stack.
if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}})),t.each(te)})),Pn("default",(
/**
 * @param {module:echarts/ExtensionAPI} api
 * @param {Object} [opts]
 * @param {string} [opts.text]
 * @param {string} [opts.color]
 * @param {string} [opts.textColor]
 * @return {module:zrender/Element}
 */
function(e,t){t=t||{},a.defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _e.a,r=new ae.a({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Ie.a({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new ae.a({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&((i=new Ee.a({shape:{startAngle:-ke/2,endAngle:-ke/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*ke/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*ke/2}).delay(300).start("circularInOut"),n.add(i)),
// Inject resize
n.resize=function(){var n=o.getBoundingRect().width,a=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-2*a-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:a),l=e.getHeight()/2;t.showSpinner&&i.setShape({cx:c,cy:l}),s.setShape({x:c-a,y:l-a,width:2*a,height:2*a}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),
// Default actions
kn({type:ue.c,event:ue.c,update:ue.c},a.noop),kn({type:ue.b,event:ue.b,update:ue.b},a.noop),kn({type:ue.f,event:ue.f,update:ue.f},a.noop),kn({type:ue.i,event:ue.i,update:ue.i},a.noop),kn({type:ue.h,event:ue.h,update:ue.h},a.noop),
// Default theme
wn("light",qe),wn("dark",Ze);
// For backward compatibility, where the namespace `dataTool` will
// be mounted on `echarts` is the extension `dataTool` is imported.
var Nn={};
/***/},
/***/"1c2d":
/***/function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},
/***/"1c3c":
/***/function(e,t,n){var r=n("9e69"),i=n("2474"),a=n("9638"),o=n("a2be"),s=n("edfa"),c=n("ac41"),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,r,l,h,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":
// Coerce booleans to `1` or `0` and dates to milliseconds.
// Invalid dates are coerced to `NaN`.
return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
// for more details.
return e==t+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=c),e.size!=t.size&&!p)return!1;
// Assume cyclic values are equal.
var g=f.get(e);if(g)return g==t;r|=2,
// Recursively compare objects (susceptible to call stack limits).
f.set(e,t);var m=o(d(e),d(t),r,l,h,f);return f.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},
/***/"1c59":
/***/function(e,t,n){"use strict";
// `Set` constructor
// https://tc39.es/ecma262/#sec-set-objects
n("6d61")("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n("6566"))},
/***/"1c6a":
/***/function(e,t,n){var r=n("1bde"),i=n("f083"),a=n("de85")("metadata"),o=a.store||(a.store=new(n("94bb"))),s=function(e,t,n){var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}var a=i.get(t);if(!a){if(!n)return;i.set(t,a=new r)}return a};e.exports={store:o,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},
/***/"1c7e":
/***/function(e,t,n){"use strict";var r=n("b622")("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
Array.from(o,(function(){throw 2}))}catch(e){/* empty */}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}// workaround of old WebKit + `eval` bug
var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){/* empty */}return n}},
/***/"1c9c":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("cffc")(1);r(r.P+r.F*!n("55c7")([].map,!0),"Array",{
// 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
map:function(e/* , thisArg */){return i(this,e,arguments[1])}})},
/***/"1cb7":
/***/function(e,t,n){var r=n("93e0"),i=n("0ae2"),a=n("cee8"),o=n("a43b"),s=n("2761").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},
/***/"1cec":
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"Promise");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"1d2b":
/***/function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},
/***/"1d31":
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t),
// EXPORTS
n.d(t,"Tree",(function(){/* reexport */return A})),n.d(t,"TreeNode",(function(){/* reexport */return w.a}));
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/defineProperty.js
var r=n("6042"),i=n.n(r),a=n("9b57"),o=n.n(a),s=n("41b2"),c=n.n(s),l=n("4d91"),u=n("4d26"),h=n.n(u),f=n("d96e"),d=n.n(f),p=n("daa3"),g=n("7b05"),m=n("b488"),v=n("58c1"),y=n("c9a4");var A={name:"Tree",mixins:[m.a],props:Object(p.t)({prefixCls:l.a.string,tabIndex:l.a.oneOfType([l.a.string,l.a.number]),children:l.a.any,treeData:l.a.array,// Generate treeNode by children
showLine:l.a.bool,showIcon:l.a.bool,icon:l.a.oneOfType([l.a.object,l.a.func]),focusable:l.a.bool,selectable:l.a.bool,disabled:l.a.bool,multiple:l.a.bool,checkable:l.a.oneOfType([l.a.object,l.a.bool]),checkStrictly:l.a.bool,draggable:l.a.bool,defaultExpandParent:l.a.bool,autoExpandParent:l.a.bool,defaultExpandAll:l.a.bool,defaultExpandedKeys:l.a.array,expandedKeys:l.a.array,defaultCheckedKeys:l.a.array,checkedKeys:l.a.oneOfType([l.a.array,l.a.object]),defaultSelectedKeys:l.a.array,selectedKeys:l.a.array,
// onClick: PropTypes.func,
// onDoubleClick: PropTypes.func,
// onExpand: PropTypes.func,
// onCheck: PropTypes.func,
// onSelect: PropTypes.func,
loadData:l.a.func,loadedKeys:l.a.array,
// onMouseEnter: PropTypes.func,
// onMouseLeave: PropTypes.func,
// onRightClick: PropTypes.func,
// onDragStart: PropTypes.func,
// onDragEnter: PropTypes.func,
// onDragOver: PropTypes.func,
// onDragLeave: PropTypes.func,
// onDragEnd: PropTypes.func,
// onDrop: PropTypes.func,
filterTreeNode:l.a.func,openTransitionName:l.a.string,openAnimation:l.a.oneOfType([l.a.string,l.a.object]),switcherIcon:l.a.any,_propsSymbol:l.a.any},{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]}),data:function(){d()(this.$props.__propsSymbol__,"must pass __propsSymbol__"),d()(this.$props.children,"please use children prop replace slots.default"),this.needSyncKeys={},this.domTreeNodes={};var e={_posEntities:new Map,_keyEntities:new Map,_expandedKeys:[],_selectedKeys:[],_checkedKeys:[],_halfCheckedKeys:[],_loadedKeys:[],_loadingKeys:[],_treeNode:[],_prevProps:null,_dragOverNodeKey:"",_dropPosition:null,_dragNodesKeys:[]};return c()({},e,this.getDerivedState(Object(p.l)(this),e))},provide:function(){return{vcTree:this}},watch:c()({},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree/src/Tree.js
/**
 * Thought we still use `cloneElement` to pass `key`,
 * other props can pass with context for future refactor.
 */
function(){var e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e[t]=function(){this.needSyncKeys[t]=!0}})),e}(["treeData","children","expandedKeys","autoExpandParent","selectedKeys","checkedKeys","loadedKeys"]),{__propsSymbol__:function(){this.setState(this.getDerivedState(Object(p.l)(this),this.$data)),this.needSyncKeys={}}}),methods:{getDerivedState:function(e,t){var n=t._prevProps,r={_prevProps:c()({},e)},i=this;function a(t){return!n&&t in e||n&&i.needSyncKeys[t]}
// ================== Tree Node ==================
var s=null;
// Check if `treeData` or `children` changed and save into the state.
// Tree support filter function which will break the tree structure in the vdm.
// We cache the treeNodes in state so that we can return the treeNode in event trigger.
if(a("treeData")?s=Object(y.g)(this.$createElement,e.treeData):a("children")&&(s=e.children),s){r._treeNode=s;
// Calculate the entities data for quick match
var l=Object(y.h)(s);r._keyEntities=l.keyEntities}var u=r._keyEntities||t._keyEntities;
// ================ expandedKeys =================
// ================= checkedKeys =================
if(a("expandedKeys")||n&&a("autoExpandParent")?r._expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?Object(y.f)(e.expandedKeys,u):e.expandedKeys:!n&&e.defaultExpandAll?r._expandedKeys=[].concat(o()(u.keys())):!n&&e.defaultExpandedKeys&&(r._expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(y.f)(e.defaultExpandedKeys,u):e.defaultExpandedKeys),
// ================ selectedKeys =================
e.selectable&&(a("selectedKeys")?r._selectedKeys=Object(y.d)(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r._selectedKeys=Object(y.d)(e.defaultSelectedKeys,e))),e.checkable){var h=void 0;if(a("checkedKeys")?h=Object(y.m)(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?h=Object(y.m)(e.defaultCheckedKeys)||{}:s&&(
// If treeNode changed, we also need check it
h=Object(y.m)(e.checkedKeys)||{checkedKeys:t._checkedKeys,halfCheckedKeys:t._halfCheckedKeys}),h){var f=h,d=f.checkedKeys,p=void 0===d?[]:d,g=f.halfCheckedKeys,m=void 0===g?[]:g;if(!e.checkStrictly){var v=Object(y.e)(p,!0,u);p=v.checkedKeys,m=v.halfCheckedKeys}r._checkedKeys=p,r._halfCheckedKeys=m}}
// ================= loadedKeys ==================
return a("loadedKeys")&&(r._loadedKeys=e.loadedKeys),r},onNodeDragStart:function(e,t){var n=this.$data._expandedKeys,r=t.eventKey,i=Object(p.p)(t).default;this.dragNode=t,this.setState({_dragNodesKeys:Object(y.i)("function"==typeof i?i():i,t),_expandedKeys:Object(y.b)(n,r)}),this.__emit("dragstart",{event:e,node:t})},
/**
     * [Legacy] Select handler is less small than node,
     * so that this will trigger when drag enter node or select handler.
     * This is a little tricky if customize css without padding.
     * Better for use mouse move event to refresh drag state.
     * But let's just keep it to avoid event trigger logic change.
     */
onNodeDragEnter:function(e,t){var n=this,r=this.$data._expandedKeys,i=t.pos,a=t.eventKey;if(this.dragNode&&t.$refs.selectHandle){var o=Object(y.c)(e,t);
// Skip if drag node is self
this.dragNode.eventKey!==a||0!==o?
// Ref: https://github.com/react-component/tree/issues/132
// Add timeout to let onDragLevel fire before onDragEnter,
// so that we can clean drag props for onDragLeave node.
// Macro task for this:
// https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script
setTimeout((function(){
// Update drag over node
n.setState({_dragOverNodeKey:a,_dropPosition:o}),
// Side effect for delay drag
n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach((function(e){clearTimeout(n.delayedDragEnterLogic[e])})),n.delayedDragEnterLogic[i]=setTimeout((function(){var i=Object(y.a)(r,a);Object(p.s)(n,"expandedKeys")||n.setState({_expandedKeys:i}),n.__emit("dragenter",{event:e,node:t,expandedKeys:i})}),400)}),0):this.setState({_dragOverNodeKey:"",_dropPosition:null})}},onNodeDragOver:function(e,t){var n=t.eventKey,r=this.$data,i=r._dragOverNodeKey,a=r._dropPosition;
// Update drag position
if(this.dragNode&&n===i&&t.$refs.selectHandle){var o=Object(y.c)(e,t);if(o===a)return;this.setState({_dropPosition:o})}this.__emit("dragover",{event:e,node:t})},onNodeDragLeave:function(e,t){this.setState({_dragOverNodeKey:""}),this.__emit("dragleave",{event:e,node:t})},onNodeDragEnd:function(e,t){this.setState({_dragOverNodeKey:""}),this.__emit("dragend",{event:e,node:t}),this.dragNode=null},onNodeDrop:function(e,t){var n=this.$data,r=n._dragNodesKeys,i=void 0===r?[]:r,a=n._dropPosition,o=t.eventKey,s=t.pos;if(this.setState({_dragOverNodeKey:""}),-1===i.indexOf(o)){var c=Object(y.n)(s),l={event:e,node:t,dragNode:this.dragNode,dragNodesKeys:i.slice(),dropPosition:a+Number(c[c.length-1]),dropToGap:!1};0!==a&&(l.dropToGap=!0),this.__emit("drop",l),this.dragNode=null}else d()(!1,"Can not drop to dragNode(include it's children node)")},onNodeClick:function(e,t){this.__emit("click",e,t)},onNodeDoubleClick:function(e,t){this.__emit("dblclick",e,t)},onNodeSelect:function(e,t){var n=this.$data._selectedKeys,r=this.$data._keyEntities,i=this.$props.multiple,a=Object(p.l)(t),o=a.selected,s=a.eventKey,c=!o,l=(
// Update selected keys
n=c?i?Object(y.a)(n,s):[s]:Object(y.b)(n,s)).map((function(e){var t=r.get(e);return t?t.node:null})).filter((function(e){return e}));this.setUncontrolledState({_selectedKeys:n});var u={event:"select",selected:c,node:t,selectedNodes:l,nativeEvent:e};this.__emit("update:selectedKeys",n),this.__emit("select",n,u)},onNodeCheck:function(e,t,n){var r=this.$data,i=r._keyEntities,a=r._checkedKeys,o=r._halfCheckedKeys,s=this.$props.checkStrictly,c=Object(p.l)(t).eventKey,l=void 0,u={event:"check",node:t,checked:n,nativeEvent:e};if(s){var h=n?Object(y.a)(a,c):Object(y.b)(a,c);l={checked:h,halfChecked:Object(y.b)(o,c)},u.checkedNodes=h.map((function(e){return i.get(e)})).filter((function(e){return e})).map((function(e){return e.node})),this.setUncontrolledState({_checkedKeys:h})}else{var f=Object(y.e)([c],n,i,{checkedKeys:a,halfCheckedKeys:o}),d=f.checkedKeys,g=f.halfCheckedKeys;l=d,
// [Legacy] This is used for `rc-tree-select`
u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=g,d.forEach((function(e){var t=i.get(e);if(t){var n=t.node,r=t.pos;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:r})}})),this.setUncontrolledState({_checkedKeys:d,_halfCheckedKeys:g})}this.__emit("check",l,u)},onNodeLoad:function(e){var t=this;return new Promise((function(n){
// We need to get the latest state of loading/loaded keys
t.setState((function(r){var i=r._loadedKeys,a=void 0===i?[]:i,o=r._loadingKeys,s=void 0===o?[]:o,c=t.$props.loadData,l=Object(p.l)(e).eventKey;return c&&-1===a.indexOf(l)&&-1===s.indexOf(l)?(c(e).then((function(){var r=t.$data,i=r._loadedKeys,a=r._loadingKeys,o=Object(y.a)(i,l),s=Object(y.b)(a,l);
// onLoad should trigger before internal setState to avoid `loadData` trigger twice.
// https://github.com/ant-design/ant-design/issues/12464
t.__emit("load",o,{event:"load",node:e}),t.setUncontrolledState({_loadedKeys:o}),t.setState({_loadingKeys:s}),n()})),{_loadingKeys:Object(y.a)(s,l)}):{};
// Process load data
}))}))},onNodeExpand:function(e,t){var n=this,r=this.$data._expandedKeys,i=this.$props.loadData,a=Object(p.l)(t),o=a.eventKey,s=a.expanded,c=r.indexOf(o),l=!s;
// Async Load data
if(d()(s&&-1!==c||!s&&-1===c,"Expand state not sync with index check"),r=l?Object(y.a)(r,o):Object(y.b)(r,o),this.setUncontrolledState({_expandedKeys:r}),this.__emit("expand",r,{node:t,expanded:l,nativeEvent:e}),this.__emit("update:expandedKeys",r),l&&i){var u=this.onNodeLoad(t);return u?u.then((function(){
// [Legacy] Refresh logic
n.setUncontrolledState({_expandedKeys:r})})):null}return null},onNodeMouseEnter:function(e,t){this.__emit("mouseenter",{event:e,node:t})},onNodeMouseLeave:function(e,t){this.__emit("mouseleave",{event:e,node:t})},onNodeContextMenu:function(e,t){e.preventDefault(),this.__emit("rightClick",{event:e,node:t})},
/**
     * Only update the value which is not in props
     */
setUncontrolledState:function(e){var t=!1,n={},r=Object(p.l)(this);Object.keys(e).forEach((function(i){i.replace("_","")in r||(t=!0,n[i]=e[i])})),t&&this.setState(n)},registerTreeNode:function(e,t){t?this.domTreeNodes[e]=t:delete this.domTreeNodes[e]},isKeyChecked:function(e){var t=this.$data._checkedKeys;return-1!==(void 0===t?[]:t).indexOf(e)},
/**
     * [Legacy] Original logic use `key` as tracking clue.
     * We have to use `cloneElement` to pass `key`.
     */
renderTreeNode:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.$data,i=r._keyEntities,a=r._expandedKeys,o=void 0===a?[]:a,s=r._selectedKeys,c=void 0===s?[]:s,l=r._halfCheckedKeys,u=void 0===l?[]:l,h=r._loadedKeys,f=void 0===h?[]:h,d=r._loadingKeys,p=void 0===d?[]:d,m=r._dragOverNodeKey,v=r._dropPosition,A=Object(y.k)(n,t),b=e.key;return b||null!=b||(b=A),i.get(b)?Object(g.a)(e,{props:{eventKey:b,expanded:-1!==o.indexOf(b),selected:-1!==c.indexOf(b),loaded:-1!==f.indexOf(b),loading:-1!==p.indexOf(b),checked:this.isKeyChecked(b),halfChecked:-1!==u.indexOf(b),pos:A,
// [Legacy] Drag props
dragOver:m===b&&0===v,dragOverGapTop:m===b&&-1===v,dragOverGapBottom:m===b&&1===v},key:b}):(Object(y.o)(),null)}},render:function(){var e=this,t=arguments[0],n=this.$data._treeNode,r=this.$props,a=r.prefixCls,o=r.focusable,s=r.showLine,c=r.tabIndex,l=void 0===c?0:c;return t("ul",{class:h()(a,i()({},a+"-show-line",s)),attrs:{role:"tree",unselectable:"on",tabIndex:o?l:null}},[Object(y.l)(n,(function(t,n){return e.renderTreeNode(t,n)}))])}},b=Object(v.a)(A),w=n("cdd1");
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree/src/index.js
A.TreeNode=w.a,b.TreeNode=w.a;
/* harmony default export */t.default=b;
/***/},
/***/"1d80":
/***/function(e,t,n){"use strict";var r=n("7234"),i=TypeError;
// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},
/***/"1da1":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */n("d3b7");
/* harmony import */function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}}
/***/},
/***/"1dac":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"1dde":
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),a=n("1212"),o=i("species");e.exports=function(e){
// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/677
return a>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},
/***/"1e4c":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"1e5a":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("9961");
// `Set.prototype.symmetricDifference` method
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("symmetricDifference")},{symmetricDifference:i})},
/***/"1e70":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("a5f7");
// `Set.prototype.difference` method
// https://tc39.es/ecma262/#sec-set.prototype.difference
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("difference",(function(e){return 0===e.size}))},{difference:i})},
/***/"1efc":
/***/function(e,t){e.exports=
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},
/***/"1f39":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("6d8b"),i={},a=/** @class */function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];r.each(i,(function(r,i){var a=r.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){r.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){i[e]=t},e.get=function(e){return i[e]},e}();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* harmony default export */t.a=a},
/***/"1f55":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.gauge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,l.gaugeConfig,"gauge");r=function(e){return e.forEach((function(e){var t=e.data,n=e.details.formatter,r=(0,a.default)(n),i=t.map((function(e){var t=e.value;return"string"===r&&(t=(t=n.replace("{value}","{nt}")).replace("{name}",e.name)),"function"===r&&(t=n(e)),t.toString()}));e.detailsContent=i})),e}(r=function(e){return e.forEach((function(e){var t=e.data,n=e.details,r=e.center,i=n.position,a=n.offset,c=t.map((function(e){var t,n,c,l,h,f,d,p,g=e.startAngle,m=e.endAngle,v=e.radius,y=null;return"center"===i?y=r:"start"===i?y=u.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([v,g])):"end"===i&&(y=u.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([v,m]))),t=y,n=a,c=(0,o.default)(t,2),l=c[0],h=c[1],f=(0,o.default)(n,2),d=f[0],p=f[1],[l+d,h+p]}));e.detailsPosition=c})),e}(r=function(e){return e.forEach((function(e){var t=e.axisLabel,n=e.min,r=e.max,i=e.splitNum,o=t.data,s=t.formatter,c=(r-n)/(i-1),l=new Array(i).fill(0).map((function(e,t){return parseInt(n+c*t)})),u=(0,a.default)(s);o=(0,h.deepMerge)(l,o).map((function(e,t){var n=e;return"string"===u&&(n=s.replace("{value}",e)),"function"===u&&(n=s({value:e,index:t})),n})),t.data=o})),e}(r=function(e){return e.forEach((function(e){var t=e.center,n=e.tickInnerRadius,r=e.tickAngles,i=e.axisLabel.labelGap,a=r.map((function(e,a){return u.getCircleRadianPoint.apply(void 0,(0,s.default)(t).concat([n[a]-i,r[a]]))})),c=a.map((function(e){var n=(0,o.default)(e,2),r=n[0],i=n[1];return{textAlign:r>t[0]?"right":"left",textBaseline:i>t[1]?"bottom":"top"}}));e.labelPosition=a,e.labelAlign=c})),e}(r=function(e){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,r=e.splitNum,i=e.center,a=e.radius,o=e.arcLineWidth,c=e.axisTick,l=c.tickLength,h=c.style.lineWidth,f=n-t,d=a-o/2,p=d-l,g=f/(r-1),m=2*Math.PI*a*f/(2*Math.PI),v=Math.ceil(h/2)/m*f;e.tickAngles=[],e.tickInnerRadius=[],e.tickPosition=new Array(r).fill(0).map((function(n,a){var o=t+g*a;return 0===a&&(o+=v),a===r-1&&(o-=v),e.tickAngles[a]=o,e.tickInnerRadius[a]=p,[u.getCircleRadianPoint.apply(void 0,(0,s.default)(i).concat([d,o])),u.getCircleRadianPoint.apply(void 0,(0,s.default)(i).concat([p,o]))]}))})),e}(r=function(e){return e.forEach((function(e){e.data.forEach((function(e){var t=e.color,n=e.gradient;n&&n.length||(n=t),n instanceof Array||(n=[n]),e.gradient=n}))})),e}(r=function(e){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,r=e.data,i=e.min,a=e.max,o=n-t,s=a-i;r.forEach((function(e){var n=e.value,r=Math.abs((n-i)/s*o);e.startAngle=t,e.endAngle=t+r}))})),e}(r=function(e,t){var n=t.render.area,r=Math.min.apply(Math,(0,s.default)(n))/2;return e.forEach((function(e){var t=e.radius,n=e.data,i=e.arcLineWidth;n.forEach((function(e){var n=e.radius,a=e.lineWidth;n||(n=t),"number"!=typeof n&&(n=parseInt(n)/100*r),e.radius=n,a||(a=i),e.lineWidth=a}))})),e}(r=function(e,t){var n=t.render.area,r=Math.min.apply(Math,(0,s.default)(n))/2;return e.forEach((function(e){var t=e.radius;"number"!=typeof t&&(t=parseInt(t)/100*r),e.radius=t})),e}(r=function(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"==typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}(r,e),e),e)))))))),(0,c.doUpdate)({chart:e,series:r,key:"gaugeAxisTick",getGraphConfig:g}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeAxisLabel",getGraphConfig:y}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeBackgroundArc",getGraphConfig:w,getStartGraphConfig:_}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeArc",getGraphConfig:I,getStartGraphConfig:S,beforeChange:B}),(0,c.doUpdate)({chart:e,series:r,key:"gaugePointer",getGraphConfig:M,getStartGraphConfig:D}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeDetails",getGraphConfig:P})};var i=r(n("9523")),a=r(n("7037")),o=r(n("278c")),s=r(n("448a")),c=n("18ad"),l=n("cc6d"),u=n("5557"),h=n("becb"),f=n("a870");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=e.tickPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:n,animationFrame:r,shape:m(e,a),style:v(e,a)}}))}function m(e,t){return{points:e.tickPosition[t]}}function v(e,t){return e.axisTick.style}function y(e){var t=e.labelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:n,animationFrame:r,shape:A(e,a),style:b(e,a)}}))}function A(e,t){var n=e.labelPosition;return{content:e.axisLabel.data[t].toString(),position:n[t]}}function b(e,t){var n=e.labelAlign,r=e.axisLabel.style;return(0,h.deepMerge)(p({},n[t]),r)}function w(e){var t=e.animationCurve,n=e.animationFrame;return[{name:"arc",index:e.rLevel,visible:e.backgroundArc.show,animationCurve:t,animationFrame:n,shape:x(e),style:C(e)}]}function x(e){var t=e.startAngle,n=e.endAngle,r=e.center,i=e.radius;return{rx:r[0],ry:r[1],r:i,startAngle:t,endAngle:n}}function C(e){var t=e.backgroundArc,n=e.arcLineWidth,r=t.style;return(0,h.deepMerge)({lineWidth:n},r)}function _(e){var t=w(e)[0],n=p({},t.shape);return n.endAngle=t.shape.startAngle,t.shape=n,[t]}function I(e){var t=e.data,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"agArc",index:i,animationCurve:n,animationFrame:r,shape:E(e,a),style:k(e,a)}}))}function E(e,t){var n=e.data,r=e.center,i=e.endAngle,a=n[t],o=a.radius,s=a.startAngle,c=a.endAngle;return a.localGradient&&(i=c),{rx:r[0],ry:r[1],r:o,startAngle:s,endAngle:c,gradientEndAngle:i}}function k(e,t){var n=e.data,r=e.dataItemStyle,i=n[t],a=i.lineWidth,o=i.gradient;return o=o.map((function(e){return(0,f.getRgbaValue)(e)})),(0,h.deepMerge)({lineWidth:a,gradient:o},r)}function S(e){var t=I(e);return t.map((function(e){var t=p({},e.shape);t.endAngle=e.shape.startAngle,e.shape=t})),t}function B(e,t){var n=e.style.gradient,r=n.length,i=t.style.gradient.length;if(r>i)n.splice(i);else{var a=n.slice(-1)[0];n.push.apply(n,(0,s.default)(new Array(i-r).fill(0).map((function(e){return(0,s.default)(a)}))))}}function M(e){var t=e.animationCurve,n=e.animationFrame,r=e.center;return[{name:"polyline",index:e.rLevel,visible:e.pointer.show,animationCurve:t,animationFrame:n,shape:T(e),style:O(e),setGraphCenter:function(e,t){t.style.graphCenter=r}}]}function T(e){var t,n,r,i,a,s,c,l,u=e.center;return{points:(t=u,n=(0,o.default)(t,2),r=n[0],i=n[1],a=[r,i-40],s=[r+5,i],c=[r,i+10],l=[r-5,i],[a,s,c,l]),close:!0}}function O(e){var t=e.startAngle,n=e.endAngle,r=e.min,i=e.max,a=e.data,o=e.pointer,s=e.center,c=o.valueIndex,l=o.style,u=((a[c]?a[c].value:0)-r)/(i-r)*(n-t)+t+Math.PI/2;return(0,h.deepMerge)({rotate:(0,h.radianToAngle)(u),scale:[1,1],graphCenter:s},l)}function D(e){var t=e.startAngle,n=M(e)[0];return n.style.rotate=(0,h.radianToAngle)(t+Math.PI/2),[n]}function P(e){var t=e.detailsPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel,a=e.details.show;return t.map((function(t,o){return{name:"numberText",index:i,visible:a,animationCurve:n,animationFrame:r,shape:L(e,o),style:Q(e,o)}}))}function L(e,t){var n=e.detailsPosition,r=e.detailsContent,i=e.data,a=e.details,o=n[t],s=r[t];return{number:[i[t].value],content:s,position:o,toFixed:a.valueToFixed}}function Q(e,t){var n=e.details,r=e.data,i=n.style,a=r[t].color;return(0,h.deepMerge)({fill:a},i)}
/***/},
/***/"1f68":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("edd0"),a=n("861d"),o=n("1787"),s=n("7b0b"),c=n("1d80"),l=Object.getPrototypeOf,u=Object.setPrototypeOf,h=Object.prototype,f="__proto__";
// `Object.prototype.__proto__` accessor
// https://tc39.es/ecma262/#sec-object.prototype.__proto__
if(r&&l&&u&&!(f in h))try{i(h,f,{configurable:!0,get:function(){return l(s(this))},set:function(e){var t=c(this);o(e)&&a(t)&&u(t,e)}})}catch(e){/* empty */}
/***/},
/***/"1fb5":
/***/function(e,t,n){"use strict";t.byteLength=
// base64 is 4/3 + up to two characters of the original data
function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){// must be multiple of 3
// go through the array every three bytes, we'll deal with trailing stuff later
for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(l(e,s,s+o>c?c:s+o));
// pad the end with zeros, but make sure to not forget the extra bytes
1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")}
/***/;for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;
// Support decoding URL-safe base64 strings, as Node.js does.
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");
// Trim off extra bytes after placeholder bytes are found
// See: https://github.com/beatgammit/base64-js/issues/42
var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},
/***/"1fc8":
/***/function(e,t,n){var r=n("4245");
/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},
/***/"1ff6":
/***/function(e,t,n){
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var r=n("5155"),i=n("b760");e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},
/***/2023:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return r}));
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
var r=/** @class */function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},
/**
   * Should be implemented by each axis model if necessary.
   * @return coordinate system model
   */
e.prototype.getCoordSysModel=function(){},e}();
/***/},
/***/"202e":
/***/function(e,t,n){
// 20.2.2.28 Math.sign(x)
var r=n("f083");r(r.S,"Math",{sign:n("7bc9")})},
/***/"204e":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,a=[];n&&r&&i&&(a=function(e,t){var n=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,r=e.yAxisIndex;"number"!=typeof t&&(t=0),"number"!=typeof r&&(r=0);var i=n.find((function(e){var n=e.axis,r=e.index;return"".concat(n).concat(r)==="x".concat(t)})),a=n.find((function(e){var t=e.axis,n=e.index;return"".concat(t).concat(n)==="y".concat(r)})),o=[i,a],s=o.findIndex((function(e){return"value"===e.data}));e.valueAxis=o[s],e.labelAxis=o[1-s]})),e}(a=(0,h.initNeedSeries)(i,l.barConfig,"bar"),e),a=function(e){var t=function(e){var t=e.map((function(e){var t=e.labelAxis;return t.axis+t.index}));return(t=(0,s.default)(new Set(t))).map((function(t){return e.filter((function(e){var n=e.labelAxis;return n.axis+n.index===t}))}))}(e);return t.forEach((function(e){!function(e){var t=function(e){var t=[];return e.forEach((function(e){var n=e.stack;n&&t.push(n)})),(0,s.default)(new Set(t))}(e);t=t.map((function(e){return{stack:e,index:-1}}));var n=0;e.forEach((function(e){var r=e.stack;if(r){var i=t.find((function(e){return e.stack===r}));-1===i.index&&(i.index=n,n++),e.barIndex=i.index}else e.barIndex=n,n++}))}(e),function(e){var t=(0,s.default)(new Set(e.map((function(e){return e.barIndex})))).length;e.forEach((function(e){return e.barNum=t}))}(e),function(e){var t=e.slice(-1)[0],n=t.barCategoryGap,r=t.labelAxis.tickGap,i=0;i="number"==typeof n?n:(1-parseInt(n)/100)*r;e.forEach((function(e){return e.barCategoryWidth=i}))}(e),function(e){var t=e.slice(-1)[0],n=t.barCategoryWidth,r=t.barWidth,i=t.barGap,a=t.barNum,s=[];"number"==typeof r||"auto"!==r?s=function(e,t,n){var r=0,i=0;r="number"==typeof t?t:parseInt(t)/100*e;i="number"==typeof n?n:parseInt(n)/100*r;return[r,i]}(n,r,i):"auto"===r&&(s=function(e,t,n,r){var i=0,a=0,o=e/r;if("number"==typeof n)i=o-(a=n);else{var s=10+parseInt(n)/10;a=0===s?-(i=2*o):o-(i=o/s*10)}return[i,a]}(n,0,i,a));var c=s,l=(0,o.default)(c,2),u=l[0],h=l[1];e.forEach((function(e){e.barWidth=u,e.barGap=h}))}(e),function(e){var t=e.slice(-1)[0],n=t.barGap,r=t.barWidth,i=t.barNum,a=(n+r)*i-n;e.forEach((function(e){return e.barAllWidthAndGap=a}))}(e)})),e}(a),a=function(e){return e=function(e){return e.map((function(t){var n=(0,h.mergeSameStackData)(t,e);n=function(e,t){var n=e.data;return t.map((function(e,t){return"number"==typeof n[t]?e:null})).filter((function(e){return null!==e}))}(t,n);var r=t.valueAxis,i=r.axis,a=r.minValue,o=r.maxValue,s=r.linePosition,c=p(a,o,a<0?0:a,s,i),l=n.map((function(e){return p(a,o,e,s,i)})).map((function(e){return[c,e]}));return d(d({},t),{},{barValueAxisPos:l})}))}(e),e=function(e){return e.map((function(e){var t=e.labelAxis,n=e.barAllWidthAndGap,r=e.barGap,i=e.barWidth,a=e.barIndex,o=t.tickGap,s=t.tickPosition,c="x"===t.axis?0:1,l=s.map((function(e,t){return s[t][c]-o/2+(o-n)/2+(a+.5)*i+a*r}));return d(d({},e),{},{barLabelAxisPos:l})}))}(e),e=function(e){return e.map((function(e){var t=e.barLabelAxisPos;return e.data.forEach((function(e,n){"number"!=typeof e&&(t[n]=null)})),d(d({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}(e),e=function(e){return e.forEach((function(e){var t=e.data,n=e.barLabelAxisPos,r=e.barValueAxisPos,i=t.filter((function(e){return"number"==typeof e})).length;n.length>i&&(n.splice(i),r.splice(i))})),e}(e),e}(a));(0,c.doUpdate)({chart:e,series:a.slice(-1),key:"backgroundBar",getGraphConfig:g}),a.reverse(),(0,c.doUpdate)({chart:e,series:a,key:"bar",getGraphConfig:m,getStartGraphConfig:b,beforeUpdate:w}),(0,c.doUpdate)({chart:e,series:a,key:"barLabel",getGraphConfig:x})};var i=r(n("7037")),a=r(n("9523")),o=r(n("278c")),s=r(n("448a")),c=n("18ad"),l=n("9d85"),u=n("5557"),h=n("becb");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n,r,i){if("number"!=typeof n)return null;var a=t-e,o="x"===i?0:1,s=(n-e)/a;return 0===a&&(s=0),s*(r[1][o]-r[0][o])+r[0][o]}function g(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=function(e){var t=e.labelAxis,n=e.valueAxis,r=t.tickPosition,i=n.axis,a=n.linePosition,o=function(e){var t=e.barAllWidthAndGap,n=e.barCategoryWidth,r=e.backgroundBar,i=r.width;return"number"==typeof i?i:"auto"===i?t:parseInt(i)/100*n}(e),s=o/2,c="x"===i?0:1,l=r.map((function(e){return e[1-c]})),u=[a[0][c],a[1][c]],h=u[0],f=u[1];return l.map((function(e){return"x"===i?{x:h,y:e-s,w:f-h,h:o}:{x:e-s,y:f,w:o,h:h-f}}))}(e),a=function(e){return e.backgroundBar.style}(e);return i.map((function(i){return{name:"rect",index:r,visible:e.backgroundBar.show,animationCurve:t,animationFrame:n,shape:i,style:a}}))}function m(e){var t=e.barLabelAxisPos,n=e.animationCurve,r=e.animationFrame,i=e.rLevel,a=v(e);return t.map((function(t,o){return{name:a,index:i,animationCurve:n,animationFrame:r,shape:y(e,o),style:A(e,o)}}))}function v(e){var t=e.shapeType;return"leftEchelon"===t||"rightEchelon"===t?"polyline":"rect"}function y(e,t){var n=e.shapeType;return"leftEchelon"===n?function(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,a=e.echelonOffset,s=(0,o.default)(n[t],2),c=s[0],l=s[1],u=r[t],h=i/2,f=e.valueAxis.axis,d=[];"x"===f?(d[0]=[l,u-h],d[1]=[l,u+h],d[2]=[c,u+h],d[3]=[c+a,u-h],l-c<a&&d.splice(3,1)):(d[0]=[u-h,l],d[1]=[u+h,l],d[2]=[u+h,c],d[3]=[u-h,c-a],c-l<a&&d.splice(3,1));return{points:d,close:!0}}(e,t):"rightEchelon"===n?function(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,a=e.echelonOffset,s=(0,o.default)(n[t],2),c=s[0],l=s[1],u=r[t],h=i/2,f=e.valueAxis.axis,d=[];"x"===f?(d[0]=[l,u+h],d[1]=[l,u-h],d[2]=[c,u-h],d[3]=[c+a,u+h],l-c<a&&d.splice(2,1)):(d[0]=[u+h,l],d[1]=[u-h,l],d[2]=[u-h,c],d[3]=[u+h,c-a],c-l<a&&d.splice(2,1));return{points:d,close:!0}}(e,t):function(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,a=(0,o.default)(n[t],2),s=a[0],c=a[1],l=r[t],u=e.valueAxis.axis,h={};"x"===u?(h.x=s,h.y=l-i/2,h.w=c-s,h.h=i):(h.x=l-i/2,h.y=c,h.w=i,h.h=s-c);return h}(e,t)}function A(e,t){var n=e.barStyle,r=e.gradient,i=e.color,a=e.independentColor,s=e.independentColors,c=[n.fill||i],l=(0,h.deepMerge)(c,r.color);if(a){var u=s[t%s.length];l=u instanceof Array?u:[u]}1===l.length&&l.push(l[0]);var f=function(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.data,a=e.valueAxis,s=a.linePosition,c=a.axis,l=(0,o.default)(n[t],2),u=l[0],h=l[1],f=r[t],d=i[t],p=(0,o.default)(s,2),g=p[0],m=p[1],v="x"===c?0:1,y=h;e.gradient.local||(y=d<0?g[v]:m[v]);return"y"===c?[f,y,f,u]:[y,f,u,f]}(e,t);return(0,h.deepMerge)({gradientColor:l,gradientParams:f,gradientType:"linear",gradientWith:"fill"},n)}function b(e){var t=m(e),n=e.shapeType;return t.forEach((function(t){var r=t.shape;r="leftEchelon"===n?function(e,t){var n=t.valueAxis.axis;e=(0,u.deepClone)(e);var r=e,i=r.points,a="x"===n?0:1,o=i[2][a];return i.forEach((function(e){return e[a]=o})),e}(r,e):"rightEchelon"===n?function(e,t){var n=t.valueAxis.axis;e=(0,u.deepClone)(e);var r=e,i=r.points,a="x"===n?0:1,o=i[2][a];return i.forEach((function(e){return e[a]=o})),e}(r,e):function(e,t){var n=t.valueAxis.axis,r=e.x,i=e.y,a=e.w,o=e.h;"x"===n?a=0:(i+=o,o=0);return{x:r,y:i,w:a,h:o}}(r,e),t.shape=r})),t}function w(e,t,n,r){var i=r.chart.render,a=v(t);e[n]&&e[n][0].name!==a&&(e[n].forEach((function(e){return i.delGraph(e)})),e[n]=null)}function x(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,a=function(e){var t=function(e){var t=e.data,n=e.label,r=n.formatter;if(t=t.filter((function(e){return"number"==typeof e})).map((function(e){return e.toString()})),!r)return t;var a=(0,i.default)(r);return"string"===a?t.map((function(e){return r.replace("{value}",e)})):"function"===a?t.map((function(e,t){return r({value:e,index:t})})):t}(e),n=function(e){var t=e.label,n=e.barValueAxisPos,r=e.barLabelAxisPos,i=t.position,a=t.offset,s=e.valueAxis.axis;return n.map((function(e,t){var n,c,l,u,h,f,d,p,g=(0,o.default)(e,2),m=g[0],v=g[1],y=r[t],A=[v,y];return"bottom"===i&&(A=[m,y]),"center"===i&&(A=[(m+v)/2,y]),"y"===s&&A.reverse(),n=A,c=a,l=(0,o.default)(n,2),u=l[0],h=l[1],f=(0,o.default)(c,2),d=f[0],p=f[1],[u+d,h+p]}))}(e);return n.map((function(e,n){return{position:e,content:t[n]}}))}(e),s=function(e){var t=e.color,n=e.label.style,r=e.gradient.color;r.length&&(t=r[0]);return n=(0,h.deepMerge)({fill:t},n),n}
/***/(e);return a.map((function(i){return{name:"text",index:r,visible:e.label.show,animationCurve:t,animationFrame:n,shape:i,style:s}}))}},
/***/"206a":
/***/function(e,t,n){"use strict";
// B.2.3.4 String.prototype.blink()
n("e681")("blink",(function(e){return function(){return e(this,"blink","","")}}))},
/***/"20c8":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return I}));
/* harmony import */var r=n("401b"),i=n("9850"),a=n("2cf4"),o=n("e263"),s=n("4a3f"),c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],u=[],h=[],f=[],d=[],p=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,A=Math.abs,b=Math.PI,w=2*b,x="undefined"!=typeof Float32Array,C=[];
/* harmony import */function _(e){return Math.round(e/b*1e8)/1e8%2*b}function I(e,t){var n=_(e[0]);n<0&&(n+=w);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=w?i=n+w:t&&n-i>=w?i=n-w:!t&&n>i?i=n+(w-_(n-i)):t&&n<i&&(i=n-(w-_(i-n))),e[0]=n,e[1]=i}var E=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=A(n/a.e/e)||0,this._uy=A(n/a.e/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(c.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=A(e-this._xi),r=A(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(c.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(c.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(c.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),C[0]=r,C[1]=i,I(C,a),r=C[0];var o=(i=C[1])-r;return this.addData(c.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=v(i)*n+e,this._yi=y(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(c.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(c.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!x||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,x&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,a=0,s=0,l=0;for(e=0;e<this._len;){var u=t[e++],g=1===e;switch(g&&(s=n=t[e],l=a=t[e+1]),u){case c.M:n=s=t[e++],a=l=t[e++],d[0]=s,d[1]=l,p[0]=s,p[1]=l;break;case c.L:Object(o.c)(n,a,t[e],t[e+1],d,p),n=t[e++],a=t[e++];break;case c.C:Object(o.b)(n,a,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],d,p),n=t[e++],a=t[e++];break;case c.Q:Object(o.e)(n,a,t[e++],t[e++],t[e],t[e+1],d,p),n=t[e++],a=t[e++];break;case c.A:var m=t[e++],A=t[e++],b=t[e++],w=t[e++],x=t[e++],C=t[e++]+x;e+=1;var _=!t[e++];g&&(s=v(x)*b+m,l=y(x)*w+A),Object(o.a)(m,A,b,w,x,C,_,d,p),n=v(C)*b+m,a=y(C)*w+A;break;case c.R:s=n=t[e++],l=a=t[e++];var I=t[e++],E=t[e++];Object(o.c)(s,l,s+I,l+E,d,p);break;case c.Z:n=s,a=l}r.min(h,h,d),r.max(f,f,p)}return 0===e&&(h[0]=h[1]=f[0]=f[1]=0),new i.a(h[0],h[1],f[0]-h[0],f[1]-h[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,h=0,f=0,d=0;d<t;){var p=e[d++],b=1===d;b&&(o=i=e[d],l=a=e[d+1]);var x=-1;switch(p){case c.M:i=o=e[d++],a=l=e[d++];break;case c.L:var C=e[d++],_=(k=e[d++])-a;(A(R=C-i)>n||A(_)>r||d===t-1)&&(x=Math.sqrt(R*R+_*_),i=C,a=k);break;case c.C:var I=e[d++],E=e[d++],k=(C=e[d++],e[d++]),S=e[d++],B=e[d++];x=Object(s.d)(i,a,I,E,C,k,S,B,10),i=S,a=B;break;case c.Q:I=e[d++],E=e[d++],C=e[d++],k=e[d++];x=Object(s.k)(i,a,I,E,C,k,10),i=C,a=k;break;case c.A:var M=e[d++],T=e[d++],O=e[d++],D=e[d++],P=e[d++],L=e[d++],Q=L+P;d+=1,b&&(o=v(P)*O+M,l=y(P)*D+T),x=m(O,D)*g(w,Math.abs(L)),i=v(Q)*O+M,a=y(Q)*D+T;break;case c.R:o=i=e[d++],l=a=e[d++],x=2*e[d++]+2*e[d++];break;case c.Z:var R=o-i;_=l-a;x=Math.sqrt(R*R+_*_),i=o,a=l}x>=0&&(u[f++]=x,h+=x)}return this._pathLen=h,h},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,h,f,d,p,b,w=this.data,x=this._ux,C=this._uy,_=this._len,I=t<1,E=0,k=0,S=0;if(!I||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=t*this._pathLen))e:for(var B=0;B<_;){var M=w[B++],T=1===B;switch(T&&(n=i=w[B],r=a=w[B+1]),M!==c.L&&S>0&&(e.lineTo(p,b),S=0),M){case c.M:n=i=w[B++],r=a=w[B++],e.moveTo(i,a);break;case c.L:o=w[B++],h=w[B++];var O=A(o-i),D=A(h-a);if(O>x||D>C){if(I){if(E+(re=f[k++])>d){var P=(d-E)/re;e.lineTo(i*(1-P)+o*P,a*(1-P)+h*P);break e}E+=re}e.lineTo(o,h),i=o,a=h,S=0}else{var L=O*O+D*D;L>S&&(p=o,b=h,S=L)}break;case c.C:var Q=w[B++],R=w[B++],j=w[B++],N=w[B++],F=w[B++],z=w[B++];if(I){if(E+(re=f[k++])>d){P=(d-E)/re;Object(s.g)(i,Q,j,F,P,l),Object(s.g)(a,R,N,z,P,u),e.bezierCurveTo(l[1],u[1],l[2],u[2],l[3],u[3]);break e}E+=re}e.bezierCurveTo(Q,R,j,N,F,z),i=F,a=z;break;case c.Q:Q=w[B++],R=w[B++],j=w[B++],N=w[B++];if(I){if(E+(re=f[k++])>d){P=(d-E)/re;Object(s.n)(i,Q,j,P,l),Object(s.n)(a,R,N,P,u),e.quadraticCurveTo(l[1],u[1],l[2],u[2]);break e}E+=re}e.quadraticCurveTo(Q,R,j,N),i=j,a=N;break;case c.A:var H=w[B++],U=w[B++],G=w[B++],V=w[B++],W=w[B++],q=w[B++],Y=w[B++],K=!w[B++],$=G>V?G:V,J=A(G-V)>.001,X=W+q,Z=!1;if(I)E+(re=f[k++])>d&&(X=W+q*(d-E)/re,Z=!0),E+=re;if(J&&e.ellipse?e.ellipse(H,U,G,V,Y,W,X,K):e.arc(H,U,$,W,X,K),Z)break e;T&&(n=v(W)*G+H,r=y(W)*V+U),i=v(X)*G+H,a=y(X)*V+U;break;case c.R:n=i=w[B],r=a=w[B+1],o=w[B++],h=w[B++];var ee=w[B++],te=w[B++];if(I){if(E+(re=f[k++])>d){var ne=d-E;e.moveTo(o,h),e.lineTo(o+g(ne,ee),h),(ne-=ee)>0&&e.lineTo(o+ee,h+g(ne,te)),(ne-=te)>0&&e.lineTo(o+m(ee-ne,0),h+te),(ne-=ee)>0&&e.lineTo(o,h+m(te-ne,0));break e}E+=re}e.rect(o,h,ee,te);break;case c.Z:if(I){var re;if(E+(re=f[k++])>d){P=(d-E)/re;e.lineTo(i*(1-P)+n*P,a*(1-P)+r*P);break e}E+=re}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=c,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();
/* harmony default export */t.a=E},
/***/"20ec":
/***/function(e,t){e.exports=
/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},
/***/"216a":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("7fae"),i=n("3842"),a=n("f876"),o=n("944e"),s=n("89e3"),c=n("e0d8"),l=n("6d8b"),u=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}
/**
   * Get label is mainly for other components like dataZoom, tooltip.
   */return Object(r.a)(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Object(a.h)(e.value,a.i[Object(a.l)(Object(a.m)(this._minLevelUnit))]||a.i.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(a.r)(e,t,n,i,r)},
/**
   * @override
   */
t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];
// If interval is 0, return [];
if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),o=function(e,t,n,r){var o=1e4,s=a.B,c=0;function u(e,t,n,i,a,o,s){
// if (isDate) {
//     d -= 1; // Starts with 0;   PENDING
// }
for(var c=new Date(t),l=t,u=c[i]();l<n&&l<=r[1];)s.push({value:l}),u+=e,c[a](u),l=c.getTime();
// This extra tick is for calcuating ticks of next level. Will not been added to the final result
s.push({value:l,notAdd:!0})}function h(e,o,s){var c=[],l=!o.length;if(!function(e,t,n,r){var o=i.p(t),s=i.p(n),c=function(e){return Object(a.n)(o,e,r)===Object(a.n)(s,e,r)},l=function(){return c("year")},u=function(){return l()&&c("month")},h=function(){return u()&&c("day")},f=function(){return h()&&c("hour")},d=function(){return f()&&c("minute")},p=function(){return d()&&c("second")},g=function(){return p()&&c("millisecond")};switch(e){case"year":return l();case"month":return u();case"day":return h();case"hour":return f();case"minute":return d();case"second":return p();case"millisecond":return g()}}
// const primaryUnitGetters = {
//     year: fullYearGetterName(),
//     month: monthGetterName(),
//     day: dateGetterName(),
//     hour: hoursGetterName(),
//     minute: minutesGetterName(),
//     second: secondsGetterName(),
//     millisecond: millisecondsGetterName()
// };
// const primaryUnitUTCGetters = {
//     year: fullYearGetterName(true),
//     month: monthGetterName(true),
//     day: dateGetterName(true),
//     hour: hoursGetterName(true),
//     minute: minutesGetterName(true),
//     second: secondsGetterName(true),
//     millisecond: millisecondsGetterName(true)
// };
// function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) {
//     step = step || 1;
//     switch (getPrimaryTimeUnit(unitName)) {
//         case 'year':
//             date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step);
//             break;
//         case 'month':
//             date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step);
//             break;
//         case 'day':
//             date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step);
//             break;
//         case 'hour':
//             date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step);
//             break;
//         case 'minute':
//             date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step);
//             break;
//         case 'second':
//             date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step);
//             break;
//         case 'millisecond':
//             date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step);
//             break;
//     }
//     return date.getTime();
// }
// const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]];
// const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]];
// const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]];
(Object(a.m)(e),r[0],r[1],n)){l&&(o=[{
// TODO Optimize. Not include so may ticks.
value:v(new Date(r[0]),e,n)},{value:r[1]}]);for(var h=0;h<o.length-1;h++){var y=o[h].value,A=o[h+1].value;if(y!==A){var b=void 0,w=void 0,x=void 0,C=!1;switch(e){case"year":b=Math.max(1,Math.round(t/a.a/365)),w=Object(a.j)(n),x=Object(a.k)(n);break;case"half-year":case"quarter":case"month":b=d(t),w=Object(a.w)(n),x=Object(a.x)(n);break;case"week":// PENDING If week is added. Ignore day.
case"half-week":case"day":b=f(t,31),// Use 32 days and let interval been 16
w=Object(a.f)(n),x=Object(a.g)(n),C=!0;break;case"half-day":case"quarter-day":case"hour":b=p(t),w=Object(a.o)(n),x=Object(a.p)(n);break;case"minute":b=g(t,!0),w=Object(a.u)(n),x=Object(a.v)(n);break;case"second":b=g(t,!1),w=Object(a.z)(n),x=Object(a.A)(n);break;case"millisecond":b=m(t),w=Object(a.s)(n),x=Object(a.t)(n)}u(b,y,A,w,x,C,c),"year"===e&&s.length>1&&0===h&&
// Add nearest years to the left extent.
s.unshift({value:s[0].value-b})}}for(h=0;h<c.length;h++)s.push(c[h]);
// newAddedTicks.length && console.log(unitName, newAddedTicks);
return c}}for(var y=[],A=[],b=0,w=0,x=0;x<s.length&&c++<o;++x){var C=Object(a.m)(s[x]);if(Object(a.q)(s[x]))if(h(s[x],y[y.length-1]||[],A),C!==(s[x+1]?Object(a.m)(s[x+1]):null)){if(A.length){w=b,
// Remove the duplicate so the tick count can be precisely.
A.sort((function(e,t){return e.value-t.value}));for(var _=[],I=0;I<A.length;++I){var E=A[I].value;0!==I&&A[I-1].value===E||(_.push(A[I]),E>=r[0]&&E<=r[1]&&b++)}var k=(r[1]-r[0])/t;
// Added too much in this level and not too less in last level
if(b>1.5*k&&w>k/1.5)break;
// Only treat primary time unit as one level.
if(y.push(_),b>k||e===s[x])break}
// Reset if next unitName is primary
A=[]}}0;var S=Object(l.filter)(Object(l.map)(y,(function(e){return Object(l.filter)(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),B=[],M=S.length-1;for(x=0;x<S.length;++x)for(var T=S[x],O=0;O<T.length;++O)B.push({value:T[O].value,level:M-x});B.sort((function(e,t){return e.value-t.value}));
// Remove duplicates
var D=[];for(x=0;x<B.length;++x)0!==x&&B[x].value===B[x-1].value||D.push(B[x]);return D}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(o)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;
// If extent start and end are same, expand them
// If there are no data and extent are [Infinity, -Infinity]
if(t[0]===t[1]&&(
// Expand extent
t[0]-=a.a,t[1]+=a.a),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-a.a}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=h.length,o=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(h,this._approxInterval,0,a),a-1);
// Interval that can be used to calculate ticks
this._interval=h[o][1],
// Min level used when picking ticks from top down.
// We check one more level to avoid the ticks are to sparse in some case.
this._minLevelUnit=h[Math.max(o-1,0)][0]},t.prototype.parse=function(e){
// val might be float.
return Object(l.isNumber)(e)?e:+i.p(e)},t.prototype.contain=function(e){return o.a(this.parse(e),this._extent)},t.prototype.normalize=function(e){return o.f(this.parse(e),this._extent)},t.prototype.scale=function(e){return o.g(e,this._extent)},t.type="time",t}(s.a),h=[
// Format                           interval
["second",a.d],["minute",a.c],["hour",a.b],["quarter-day",6*a.b],["half-day",12*a.b],["day",1.2*a.a],["half-week",3.5*a.a],["week",7*a.a],["month",31*a.a],["quarter",95*a.a],["half-year",a.e/2],["year",a.e]];
/* harmony import */function f(e,t){return(e/=a.a)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function d(e){return(e/=30*a.a)>6?6:e>3?3:e>2?2:1}function p(e){return(e/=a.b)>12?12:e>6?6:e>3.5?4:e>2?2:1}function g(e,t){return(e/=t?a.c:a.d)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function m(e){return i.n(e,!0)}function v(e,t,n){var r=new Date(e);switch(Object(a.m)(t)){case"year":case"month":r[Object(a.x)(n)](0);case"day":r[Object(a.g)(n)](1);case"hour":r[Object(a.p)(n)](0);case"minute":r[Object(a.v)(n)](0);case"second":r[Object(a.A)(n)](0),r[Object(a.t)(n)](0)}return r.getTime()}c.a.registerClass(u),
/* harmony default export */t.a=u},
/***/"217c":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return d})),
/* harmony export (binding) */n.d(t,"b",(function(){return A})),
/* harmony export (binding) */n.d(t,"e",(function(){return x})),
/* harmony export (binding) */n.d(t,"d",(function(){return C})),
/* harmony export (binding) */n.d(t,"a",(function(){return _}));
/* harmony import */var r=n("65ed"),i=n("eda2"),a=n("6d8b"),o=n("b7d9"),s=n("3842"),c="line-height:1";
/* harmony import */function l(e){var t=e.lineHeight;return null==t?c:"line-height:"+Object(r.a)(t+"")+"px"}
// TODO: more textStyle option
function u(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",s=e.fontSize||14,c=e.fontWeight||"900";return"html"===t?{
// eslint-disable-next-line max-len
nameStyle:"font-size:"+Object(r.a)(i+"")+"px;color:"+Object(r.a)(n)+";font-weight:"+Object(r.a)(a+""),
// eslint-disable-next-line max-len
valueStyle:"font-size:"+Object(r.a)(s+"")+"px;color:"+Object(r.a)(o)+";font-weight:"+Object(r.a)(c+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:c}}}
// See `TooltipMarkupLayoutIntent['innerGapLevel']`.
// (value from UI design)
var h=[0,10,20,30],f=["","\n","\n\n","\n\n\n"];
// eslint-disable-next-line max-len
function d(e,t){return t.type=e,t}function p(e){return"section"===e.type}function g(e){return p(e)?v:y}function m(e){if(p(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Object(a.each)(e.blocks,(function(e){var n=m(e);
// If the some of the sub-blocks have some gaps (like 10px) inside, this block
// should use a larger gap (like 20px) to distinguish those sub-blocks.
n>=t&&(t=n+ +(r&&(
// 0 always can not be readable gap level.
!n||p(e)&&!e.noHeader)))})),t}return 0}function v(e,t,n,s){var c,d=t.noHeader,p=(c=m(t),{html:h[c],richText:f[c]}),v=[],y=t.blocks||[];Object(a.assert)(!y||Object(a.isArray)(y)),y=y||[];var A=e.orderMode;if(t.sortBlocks&&A){y=y.slice();var x={valueAsc:"asc",valueDesc:"desc"};if(Object(a.hasOwn)(x,A)){var C=new o.a(x[A],null);y.sort((function(e,t){return C.evaluate(e.sortParam,t.sortParam)}))}
// FIXME 'seriesDesc' necessary?
else"seriesDesc"===A&&y.reverse()}Object(a.each)(y,(function(n,r){var i=t.valueFormatter,o=g(n)(
// Inherit valueFormatter
i?Object(a.extend)(Object(a.extend)({},e),{valueFormatter:i}):e,n,r>0?p.html:0,s);null!=o&&v.push(o)}));var _="richText"===e.renderMode?v.join(p.richText):b(s,v.join(""),d?n:p.html);if(d)return _;var I=Object(i.h)(t.header,"ordinal",e.useUTC),E=u(s,e.renderMode).nameStyle,k=l(s);return"richText"===e.renderMode?w(e,I,E)+p.richText+_:b(s,'<div style="'+E+";"+k+';">'+Object(r.a)(I)+"</div>"+_,n)}function y(e,t,n,o){var s=e.renderMode,c=t.noName,l=t.noValue,h=!t.markerType,f=t.name,d=e.useUTC,p=t.valueFormatter||e.valueFormatter||function(e){return e=Object(a.isArray)(e)?e:[e],Object(a.map)(e,(function(e,t){return Object(i.h)(e,Object(a.isArray)(v)?v[t]:v,d)}))};if(!c||!l){var g=h?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",s),m=c?"":Object(i.h)(f,"ordinal",d),v=t.valueType,y=l?[]:p(t.value,t.dataIndex),A=!h||!c,x=!h&&c,C=u(o,s),_=C.nameStyle,I=C.valueStyle;return"richText"===s?(h?"":g)+(c?"":w(e,m,_))+(l?"":function(e,t,n,r,i){var o=[i],s=r?10:20;
// Value has commas inside, so use '  ' as delimiter for multiple values.
return n&&o.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(a.isArray)(t)?t.join("  "):t,o)}(e,y,A,x,I)):b(o,(h?"":g)+(c?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Object(r.a)(e)+"</span>"}(m,!h,_))+(l?"":function(e,t,n,i){
// Do not too close to marker, considering there are multiple values separated by spaces.
var o=n?"10px":"20px",s=t?"float:right;margin-left:"+o:"";return e=Object(a.isArray)(e)?e:[e],'<span style="'+s+";"+i+'">'+Object(a.map)(e,(function(e){return Object(r.a)(e)})).join("&nbsp;&nbsp;")+"</span>"}(y,A,x,I)),n)}}
/**
 * @return markupText. null/undefined means no content.
 */function A(e,t,n,r,i,a){if(e)return g(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function b(e,t,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+l(e)+';">'+t+'<div style="clear:both"></div></div>'}function w(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function x(e,t){var n=e.getData().getItemVisual(t,"style")[e.visualDrawType];return Object(i.c)(n)}function C(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}
/**
 * The major feature is generate styles for `renderMode: 'richText'`.
 * But it also serves `renderMode: 'html'` to provide
 * "renderMode-independent" API.
 */var _=/** @class */function(){function e(){this.richTextStyles={},
// Notice that "generate a style name" usually happens repeatedly when mouse is moving and
// a tooltip is displayed. So we put the `_nextStyleNameId` as a member of each creator
// rather than static shared by all creators (which will cause it increase to fast).
this._nextStyleNameId=Object(s.j)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,o=Object(i.g)({color:t,type:e,renderMode:n,markerId:r});return Object(a.isString)(o)?o:(this.richTextStyles[r]=o.style,o.content)},
/**
   * @usage
   * ```ts
   * const styledText = markupStyleCreator.wrapRichTextStyle([
   *     // The styles will be auto merged.
   *     {
   *         fontSize: 12,
   *         color: 'blue'
   *     },
   *     {
   *         padding: 20
   *     }
   * ]);
   * ```
   */
e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(a.isArray)(t)?Object(a.each)(t,(function(e){return Object(a.extend)(n,e)})):Object(a.extend)(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();
/***/},
/***/"217d":
/***/function(e,t){e.exports={isFunction:
/**
 * Helper function for determining whether target object is a function
 *
 * @param target the object under test
 * @return {Boolean} true if function, false otherwise
 */
function(e){return"function"==typeof e},isArray:
/**
 * Helper function for determining whether target object is an array
 *
 * @param target the object under test
 * @return {Boolean} true if array, false otherwise
 */
function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:
/**
 * Helper function for iterating over a collection
 *
 * @param collection
 * @param fn
 */
function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},
/***/"21a1":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* unused harmony export __assign */
/* unused harmony export __rest */
/* unused harmony export __decorate */
/* unused harmony export __param */
/* unused harmony export __metadata */
/* unused harmony export __awaiter */
/* unused harmony export __generator */
/* unused harmony export __createBinding */
/* unused harmony export __exportStar */
/* unused harmony export __values */
/* unused harmony export __read */
/* unused harmony export __spread */
/* unused harmony export __spreadArrays */
/* unused harmony export __spreadArray */
/* unused harmony export __await */
/* unused harmony export __asyncGenerator */
/* unused harmony export __asyncDelegator */
/* unused harmony export __asyncValues */
/* unused harmony export __makeTemplateObject */
/* unused harmony export __importStar */
/* unused harmony export __importDefault */
/* unused harmony export __classPrivateFieldGet */
/* unused harmony export __classPrivateFieldSet */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create},
/***/"21a6":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){c(r.response,t,n)},r.onerror=function(){},r.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=o.URL||o.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?a(c):i(c.href)?r(e,t,n):a(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){a(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),n);else if(i(e))r(e,n,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var a="application/octet-stream"===e.type,c=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var h=o.URL||o.webkitURL,f=h.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});o.saveAs=c.saveAs=c,e.exports=c})?r.apply(t,i):r)||(e.exports=a)}).call(this,n("c8ba"))
/***/},
/***/"21cb":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/* harmony import */var r=n("5a89");
/**
 * Description: A THREE loader for PLY ASCII files (known as the Polygon
 * File Format or the Stanford Triangle Format).
 *
 * Limitations: ASCII decoding assumes file is UTF-8.
 *
 * Usage:
 *	const loader = new PLYLoader();
 *	loader.load('./models/ply/ascii/dolphins.ply', function (geometry) {
 *
 *		scene.add( new THREE.Mesh( geometry ) );
 *
 *	} );
 *
 * If the PLY file uses non standard property names, they can be mapped while
 * loading. For example, the following maps the properties
 * “diffuse_(red|green|blue)” in the file to standard color names.
 *
 * loader.setPropertyNameMapping( {
 *	diffuse_red: 'red',
 *	diffuse_green: 'green',
 *	diffuse_blue: 'blue'
 * } );
 *
 * Custom properties outside of the defaults for position, uv, normal
 * and color attributes can be added using the setCustomPropertyMapping method.
 * For example, the following maps the element properties “custom_property_a”
 * and “custom_property_b” to an attribute “customAttribute” with an item size of 2.
 * Attribute item sizes are set from the number of element properties in the property array.
 *
 * loader.setCustomPropertyMapping( {
 *	customAttribute: ['custom_property_a', 'custom_property_b'],
 * } );
 *
 */const i=new r.j;class a extends r.P{constructor(e){super(e),this.propertyNameMapping={},this.customPropertyMapping={}}load(e,t,n,i){const a=this,o=new r.t(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,(function(n){try{t(a.parse(n))}catch(t){i&&i(t),a.manager.itemError(e)}}),n,i)}setPropertyNameMapping(e){this.propertyNameMapping=e}setCustomPropertyNameMapping(e){this.customPropertyMapping=e}parse(e){function t(e){let t="",n=0;const r=/^ply([\s\S]*)end_header(\r\n|\r|\n)/.exec(e);null!==r&&(t=r[1],n=new Blob([r[0]]).size);const i={comments:[],elements:[],headerLength:n,objInfo:""},a=t.split(/\r\n|\r|\n/);let o;function s(e,t){const n={type:e[0]};return"list"===n.type?(n.name=e[3],n.countType=e[1],n.itemType=e[2]):n.name=e[1],n.name in t&&(n.name=t[n.name]),n}for(let e=0;e<a.length;e++){let t=a[e];if(t=t.trim(),""===t)continue;const n=t.split(/\s+/),r=n.shift();switch(t=n.join(" "),r){case"format":i.format=n[0],i.version=n[1];break;case"comment":i.comments.push(t);break;case"element":void 0!==o&&i.elements.push(o),o={},o.name=n[0],o.count=parseInt(n[1]),o.properties=[];break;case"property":o.properties.push(s(n,p.propertyNameMapping));break;case"obj_info":i.objInfo=t}}return void 0!==o&&i.elements.push(o),i}function n(e,t){switch(t){case"char":case"uchar":case"short":case"ushort":case"int":case"uint":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":return parseInt(e);case"float":case"double":case"float32":case"float64":return parseFloat(e)}}function a(e,t){const r=t.split(/\s+/),i={};for(let t=0;t<e.length;t++)if("list"===e[t].type){const a=[],o=n(r.shift(),e[t].countType);for(let i=0;i<o;i++)a.push(n(r.shift(),e[t].itemType));i[e[t].name]=a}else i[e[t].name]=n(r.shift(),e[t].type);return i}function o(){const e={indices:[],vertices:[],normals:[],uvs:[],faceVertexUvs:[],colors:[]};for(const t of Object.keys(p.customPropertyMapping))e[t]=[];return e}function s(e){const t=e.map((e=>e.name));function n(e){for(let n=0,r=e.length;n<r;n++){const r=e[n];if(t.includes(r))return r}return null}return{attrX:n(["x","px","posx"])||"x",attrY:n(["y","py","posy"])||"y",attrZ:n(["z","pz","posz"])||"z",attrNX:n(["nx","normalx"]),attrNY:n(["ny","normaly"]),attrNZ:n(["nz","normalz"]),attrS:n(["s","u","texture_u","tx"]),attrT:n(["t","v","texture_v","ty"]),attrR:n(["red","diffuse_red","r","diffuse_r"]),attrG:n(["green","diffuse_green","g","diffuse_g"]),attrB:n(["blue","diffuse_blue","b","diffuse_b"])}}function c(e,t){
// PLY ascii format specification, as per http://en.wikipedia.org/wiki/PLY_(file_format)
const n=o();let r;let i="";null!==(r=/end_header\s([\s\S]*)$/.exec(e))&&(i=r[1]);const c=i.split(/\r\n|\r|\n/);let h=0,f=0,d=t.elements[h],p=s(d.properties);for(let e=0;e<c.length;e++){let r=c[e];if(r=r.trim(),""===r)continue;f>=d.count&&(h++,f=0,d=t.elements[h],p=s(d.properties));const i=a(d.properties,r);u(n,d.name,i,p),f++}return l(n)}function l(e){let t=new r.g;
// mandatory buffer data
e.indices.length>0&&t.setIndex(e.indices),t.setAttribute("position",new r.u(e.vertices,3)),
// optional buffer data
e.normals.length>0&&t.setAttribute("normal",new r.u(e.normals,3)),e.uvs.length>0&&t.setAttribute("uv",new r.u(e.uvs,2)),e.colors.length>0&&t.setAttribute("color",new r.u(e.colors,3)),e.faceVertexUvs.length>0&&(t=t.toNonIndexed(),t.setAttribute("uv",new r.u(e.faceVertexUvs,2)));
// custom buffer data
for(const n of Object.keys(p.customPropertyMapping))e[n].length>0&&t.setAttribute(n,new r.u(e[n],p.customPropertyMapping[n].length));return t.computeBoundingSphere(),t}function u(e,t,n,r){if("vertex"===t){e.vertices.push(n[r.attrX],n[r.attrY],n[r.attrZ]),null!==r.attrNX&&null!==r.attrNY&&null!==r.attrNZ&&e.normals.push(n[r.attrNX],n[r.attrNY],n[r.attrNZ]),null!==r.attrS&&null!==r.attrT&&e.uvs.push(n[r.attrS],n[r.attrT]),null!==r.attrR&&null!==r.attrG&&null!==r.attrB&&(i.setRGB(n[r.attrR]/255,n[r.attrG]/255,n[r.attrB]/255).convertSRGBToLinear(),e.colors.push(i.r,i.g,i.b));for(const t of Object.keys(p.customPropertyMapping))for(const r of p.customPropertyMapping[t])e[t].push(n[r])}else if("face"===t){const t=n.vertex_indices||n.vertex_index,r=n.texcoord;// issue #9338
3===t.length?(e.indices.push(t[0],t[1],t[2]),r&&6===r.length&&(e.faceVertexUvs.push(r[0],r[1]),e.faceVertexUvs.push(r[2],r[3]),e.faceVertexUvs.push(r[4],r[5]))):4===t.length&&(e.indices.push(t[0],t[1],t[3]),e.indices.push(t[1],t[2],t[3]))}}function h(e,t){const n={};let r=0;for(let i=0;i<t.length;i++){const a=t[i],o=a.valueReader;if("list"===a.type){const t=[],i=a.countReader.read(e+r);r+=a.countReader.size;for(let n=0;n<i;n++)t.push(o.read(e+r)),r+=o.size;n[a.name]=t}else n[a.name]=o.read(e+r),r+=o.size}return[n,r]}function f(e,t,n){function r(e,t,n){switch(t){
// corespondences for non-specific length types here match rply:
case"int8":case"char":return{read:t=>e.getInt8(t),size:1};case"uint8":case"uchar":return{read:t=>e.getUint8(t),size:1};case"int16":case"short":return{read:t=>e.getInt16(t,n),size:2};case"uint16":case"ushort":return{read:t=>e.getUint16(t,n),size:2};case"int32":case"int":return{read:t=>e.getInt32(t,n),size:4};case"uint32":case"uint":return{read:t=>e.getUint32(t,n),size:4};case"float32":case"float":return{read:t=>e.getFloat32(t,n),size:4};case"float64":case"double":return{read:t=>e.getFloat64(t,n),size:8}}}for(let i=0,a=e.length;i<a;i++){const a=e[i];"list"===a.type?(a.countReader=r(t,a.countType,n),a.valueReader=r(t,a.itemType,n)):a.valueReader=r(t,a.type,n)}}
let d;const p=this;if(e instanceof ArrayBuffer){const n=new Uint8Array(e),r=function(e){let t=0,n=!0,r="";const i=[];do{const a=String.fromCharCode(e[t++]);"\n"!==a&&"\r"!==a?r+=a:("end_header"===r&&(n=!1),""!==r&&(i.push(r),r=""))}while(n&&t<e.length);return i.join("\r")+"\r"}(n),i=t(r);if("ascii"===i.format){d=c((new TextDecoder).decode(n),i)}else d=function(e,t){const n=o(),r="binary_little_endian"===t.format,i=new DataView(e,t.headerLength);let a,c=0;for(let e=0;e<t.elements.length;e++){const o=t.elements[e],l=o.properties,d=s(l);f(l,i,r);for(let e=0;e<o.count;e++){a=h(c,l),c+=a[1];const e=a[0];u(n,o.name,e,d)}}return l(n)}(e,i)}else d=c(e,t(e));return d}}
/***/},
/***/"21d0":
/***/function(e,t,n){"use strict";var r=n("66b7"),i=n("fb87"),a=n("c053"),o=n("5d6f");
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
e.exports=n("d516")(Array,"Array",(function(e,t){this._t=o(e),// target
this._i=0,// next index
this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
a.Arguments=a.Array,r("keys"),r("values"),r("entries")},
/***/2217:
/***/function(e,t,n){"use strict";
// B.2.3.8 String.prototype.fontsize(size)
n("e681")("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},
/***/"222a":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieConfig=void 0;var r={
/**
   * @description Whether to display this pie chart
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Legend name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Radius of pie
   * @type {String|Number}
   * @default radius = '50%'
   * @example radius = '50%' | 100
   */
radius:"50%",
/**
   * @description Center point of pie
   * @type {Array}
   * @default center = ['50%','50%']
   * @example center = ['50%','50%'] | [100, 100]
   */
center:["50%","50%"],
/**
   * @description Pie chart start angle
   * @type {Number}
   * @default startAngle = -Math.PI / 2
   * @example startAngle = -Math.PI
   */
startAngle:-Math.PI/2,
/**
   * @description Whether to enable rose type
   * @type {Boolean}
   * @default roseType = false
   */
roseType:!1,
/**
   * @description Automatic sorting in rose type
   * @type {Boolean}
   * @default roseSort = true
   */
roseSort:!0,
/**
   * @description Rose radius increasing
   * @type {String|Number}
   * @default roseIncrement = 'auto'
   * @example roseIncrement = 'auto' | '10%' | 10
   */
roseIncrement:"auto",
/**
   * @description Pie chart data
   * @type {Array}
   * @default data = []
   */
data:[],
/**
   * @description Pie inside label configuration
   * @type {Object}
   */
insideLabel:{
/**
     * @description Whether to display inside label
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Label formatter
     * @type {String|Function}
     * @default formatter = '{percent}%'
     * @example formatter = '${name}-{value}-{percent}%'
     * @example formatter = (dataItem) => (dataItem.name)
     */
formatter:"{percent}%",
/**
     * @description Label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},
/**
   * @description Pie Outside label configuration
   * @type {Object}
   */
outsideLabel:{
/**
     * @description Whether to display outside label
     * @type {Boolean}
     * @default show = false
     */
show:!0,
/**
     * @description Label formatter
     * @type {String|Function}
     * @default formatter = '{name}'
     * @example formatter = '${name}-{value}-{percent}%'
     * @example formatter = (dataItem) => (dataItem.name)
     */
formatter:"{name}",
/**
     * @description Label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fontSize:11},
/**
     * @description Gap beteen label line bended place and pie
     * @type {String|Number}
     * @default labelLineBendGap = '20%'
     * @example labelLineBendGap = '20%' | 20
     */
labelLineBendGap:"20%",
/**
     * @description Label line end length
     * @type {Number}
     * @default labelLineEndLength = 50
     */
labelLineEndLength:50,
/**
     * @description Label line default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
labelLineStyle:{lineWidth:1}},
/**
   * @description Pie default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
pieStyle:{},
/**
   * @description Percentage fractional precision
   * @type {Number}
   * @default percentToFixed = 0
   */
percentToFixed:0,
/**
   * @description Pie chart render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 10
   */
rLevel:10,
/**
   * @description Animation delay gap
   * @type {Number}
   * @default animationDelayGap = 60
   */
animationDelayGap:60,
/**
   * @description Pie animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Pie start animation curve
   * @type {String}
   * @default startAnimationCurve = 'easeOutBack'
   */
startAnimationCurve:"easeOutBack",
/**
   * @description Pie animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50};t.pieConfig=r},
/***/2236:
/***/function(e,t,n){var r=n("5a43");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/2266:
/***/function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),a=n("825a"),o=n("0d51"),s=n("e95a"),c=n("07fa"),l=n("3a9b"),u=n("9a1f"),h=n("35a1"),f=n("2a62"),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,A,b,w,x,C=n&&n.that,_=!(!n||!n.AS_ENTRIES),I=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),S=r(t,C),B=function(e){return m&&f(m,"normal",e),new p(!0,e)},M=function(e){return _?(a(e),k?S(e[0],e[1],B):S(e[0],e[1])):k?S(e,B):S(e)};if(I)m=e.iterator;else if(E)m=e;else{if(!(v=h(e)))throw new d(o(e)+" is not iterable");
// optimisation for array iterators
if(s(v)){for(y=0,A=c(e);A>y;y++)if((b=M(e[y]))&&l(g,b))return b;return new p(!1)}m=u(e,v)}for(w=I?e.next:m.next;!(x=i(w,m)).done;){try{b=M(x.value)}catch(e){f(m,"throw",e)}if("object"==typeof b&&b&&l(g,b))return b}return new p(!1)}},
/***/"227b":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("42ee"),a=n("2ce8"),o=n("2761");
// B.2.2.3 Object.prototype.__defineSetter__(P, setter)
n("c94e")&&r(r.P+n("ac60"),"Object",{__defineSetter__:function(e,t){o.f(i(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},
/***/2286:
/***/function(e,t,n){var r=n("85e3"),i=Math.max;
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=
/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=n(c),r(e,this,l)}}},
/***/"22a4":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("4d91");
/* harmony default export */t.a={prefixCls:r.a.string.def("rc-menu"),focusable:r.a.bool.def(!0),multiple:r.a.bool,defaultActiveFirst:r.a.bool,visible:r.a.bool.def(!0),activeKey:r.a.oneOfType([r.a.string,r.a.number]),selectedKeys:r.a.arrayOf(r.a.oneOfType([r.a.string,r.a.number])),defaultSelectedKeys:r.a.arrayOf(r.a.oneOfType([r.a.string,r.a.number])).def([]),defaultOpenKeys:r.a.arrayOf(r.a.oneOfType([r.a.string,r.a.number])).def([]),openKeys:r.a.arrayOf(r.a.oneOfType([r.a.string,r.a.number])),openAnimation:r.a.oneOfType([r.a.string,r.a.object]),mode:r.a.oneOf(["horizontal","vertical","vertical-left","vertical-right","inline"]).def("vertical"),triggerSubMenuAction:r.a.string.def("hover"),subMenuOpenDelay:r.a.number.def(.1),subMenuCloseDelay:r.a.number.def(.1),level:r.a.number.def(1),inlineIndent:r.a.number.def(24),theme:r.a.oneOf(["light","dark"]).def("light"),getPopupContainer:r.a.func,openTransitionName:r.a.string,forceSubMenuRender:r.a.bool,selectable:r.a.bool,isRootMenu:r.a.bool.def(!0),builtinPlacements:r.a.object.def((function(){return{}})),itemIcon:r.a.any,expandIcon:r.a.any,overflowedIndicator:r.a.any}},
/***/"22b4":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return d}));
/* harmony import */var r=n("1be7"),i=n("b12f"),a=n("e887"),o=n("6cb7"),s=n("4f85"),c=n("6d8b"),l=n("58c9"),u=n("697e7"),h=[],f={registerPreprocessor:r.u,registerProcessor:r.v,registerPostInit:r.s,registerPostUpdate:r.t,registerUpdateLifecycle:r.y,registerAction:r.m,registerCoordinateSystem:r.n,registerLayout:r.o,registerVisual:r.z,registerTransform:r.x,registerLoading:r.p,registerMap:r.r,registerImpl:l.b,PRIORITY:r.a,ComponentModel:o.a,ComponentView:i.a,SeriesModel:s.b,ChartView:a.a,
// TODO Use ComponentModel and SeriesModel instead of Constructor
registerComponentModel:function(e){o.a.registerClass(e)},registerComponentView:function(e){i.a.registerClass(e)},registerSeriesModel:function(e){s.b.registerClass(e)},registerChartView:function(e){a.a.registerClass(e)},registerSubTypeDefaulter:function(e,t){o.a.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(u.registerPainter)(e,t)}};
/* harmony import */function d(e){Object(c.isArray)(e)?
// use([ChartLine, ChartBar]);
Object(c.each)(e,(function(e){d(e)})):Object(c.indexOf)(h,e)>=0||(h.push(e),Object(c.isFunction)(e)&&(e={install:e}),e.install(f))}
/***/},
/***/"22d1":
/***/function(e,t,n){"use strict";var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:!i.hasGlobalWindow||"Deno"in window?(i.node=!0,i.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18);o&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}
/* harmony default export */(navigator.userAgent,i),t.a=i},
/***/2306:
/***/function(e,t,n){"use strict";n.r(t),
/* harmony export (binding) */n.d(t,"extendShape",(function(){return L})),
/* harmony export (binding) */n.d(t,"extendPath",(function(){return R})),
/* harmony export (binding) */n.d(t,"registerShape",(function(){return j})),
/* harmony export (binding) */n.d(t,"getShapeClass",(function(){return N})),
/* harmony export (binding) */n.d(t,"makePath",(function(){return F})),
/* harmony export (binding) */n.d(t,"makeImage",(function(){return z})),
/* harmony export (binding) */n.d(t,"mergePath",(function(){return U})),
/* harmony export (binding) */n.d(t,"resizePath",(function(){return G})),
/* harmony export (binding) */n.d(t,"subPixelOptimizeLine",(function(){return V})),
/* harmony export (binding) */n.d(t,"subPixelOptimizeRect",(function(){return W})),
/* harmony export (binding) */n.d(t,"subPixelOptimize",(function(){return q})),
/* harmony export (binding) */n.d(t,"getTransform",(function(){return Y})),
/* harmony export (binding) */n.d(t,"applyTransform",(function(){return K})),
/* harmony export (binding) */n.d(t,"transformDirection",(function(){return $})),
/* harmony export (binding) */n.d(t,"groupTransition",(function(){return X})),
/* harmony export (binding) */n.d(t,"clipPointsByRect",(function(){return Z})),
/* harmony export (binding) */n.d(t,"clipRectByRect",(function(){return ee})),
/* harmony export (binding) */n.d(t,"createIcon",(function(){return te})),
/* harmony export (binding) */n.d(t,"linePolygonIntersect",(function(){return ne})),
/* harmony export (binding) */n.d(t,"lineLineIntersect",(function(){return re})),
/* harmony export (binding) */n.d(t,"setTooltipConfig",(function(){return ae})),
/* harmony export (binding) */n.d(t,"traverseElements",(function(){return se}));
/* harmony import */var r=n("342d"),i=n("1687"),a=n("401b"),o=n("cbe5");
/* harmony import */
/* harmony reexport (safe) */n.d(t,"Path",(function(){return o.b}));
/* harmony import */var s=n("8582"),c=n("0da8");
/* harmony import */
/* harmony reexport (safe) */n.d(t,"Image",(function(){return c.a}));
/* harmony import */var l=n("2dc5");
/* harmony reexport (safe) */n.d(t,"Group",(function(){return l.a}));
/* harmony import */var u=n("76a5");
/* harmony reexport (safe) */n.d(t,"Text",(function(){return u.a}));
/* harmony import */var h=n("d9fc");
/* harmony reexport (safe) */n.d(t,"Circle",(function(){return h.a}));
/* harmony import */var f=n("ae69");
/* harmony reexport (safe) */n.d(t,"Ellipse",(function(){return f.a}));
/* harmony import */var d=n("4aa2");
/* harmony reexport (safe) */n.d(t,"Sector",(function(){return d.a}));
/* harmony import */var p=n("4573");
/* harmony reexport (safe) */n.d(t,"Ring",(function(){return p.a}));
/* harmony import */var g=n("87b1");
/* harmony reexport (safe) */n.d(t,"Polygon",(function(){return g.a}));
/* harmony import */var m=n("d498");
/* harmony reexport (safe) */n.d(t,"Polyline",(function(){return m.a}));
/* harmony import */var v=n("c7a2");
/* harmony reexport (safe) */n.d(t,"Rect",(function(){return v.a}));
/* harmony import */var y=n("cb11");
/* harmony reexport (safe) */n.d(t,"Line",(function(){return y.a}));
/* harmony import */var A=n("ac0f");
/* harmony reexport (safe) */n.d(t,"BezierCurve",(function(){return A.a}));
/* harmony import */var b=n("8d32");
/* harmony reexport (safe) */n.d(t,"Arc",(function(){return b.a}));
/* harmony import */var w=n("d4c6");
/* harmony reexport (safe) */n.d(t,"CompoundPath",(function(){return w.a}));
/* harmony import */var x=n("48a9");
/* harmony reexport (safe) */n.d(t,"LinearGradient",(function(){return x.a}));
/* harmony import */var C=n("dded");
/* harmony reexport (safe) */n.d(t,"RadialGradient",(function(){return C.a}));
/* harmony import */var _=n("9850");
/* harmony reexport (safe) */n.d(t,"BoundingRect",(function(){return _.a}));
/* harmony import */var I=n("ca80");
/* harmony reexport (safe) */n.d(t,"OrientedBoundingRect",(function(){return I.a}));
/* harmony import */var E=n("dce8");
/* harmony reexport (safe) */n.d(t,"Point",(function(){return E.a}));
/* harmony import */var k=n("392f");
/* harmony reexport (safe) */n.d(t,"IncrementalDisplayable",(function(){return k.a}));
/* harmony import */var S=n("9cf9"),B=n("6d8b"),M=n("861c"),T=n("deca");
/* harmony import */
/* harmony reexport (safe) */n.d(t,"updateProps",(function(){return T.h})),
/* harmony reexport (safe) */n.d(t,"initProps",(function(){return T.c})),
/* harmony reexport (safe) */n.d(t,"removeElement",(function(){return T.e})),
/* harmony reexport (safe) */n.d(t,"removeElementWithFadeOut",(function(){return T.f})),
/* harmony reexport (safe) */n.d(t,"isElementRemoved",(function(){return T.d}));
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @deprecated export for compatitable reason
 */
var O=Math.max,D=Math.min,P={};
/**
 * Extend shape with parameters
 */
function L(e){return o.b.extend(e)}var Q=r.c;
/**
 * Extend path
 */function R(e,t){return Q(e,t)}
/**
 * Register a user defined shape.
 * The shape class can be fetched by `getShapeClass`
 * This method will overwrite the registered shapes, including
 * the registered built-in shapes, if using the same `name`.
 * The shape can be used in `custom series` and
 * `graphic component` by declaring `{type: name}`.
 *
 * @param name
 * @param ShapeClass Can be generated by `extendShape`.
 */function j(e,t){P[e]=t}
/**
 * Find shape class registered by `registerShape`. Usually used in
 * fetching user defined shape.
 *
 * [Caution]:
 * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared
 * to use user registered shapes.
 * Because the built-in shape (see `getBuiltInShape`) will be registered by
 * `registerShape` by default. That enables users to get both built-in
 * shapes as well as the shapes belonging to themsleves. But users can overwrite
 * the built-in shapes by using names like 'circle', 'rect' via calling
 * `registerShape`. So the echarts inner featrues should not fetch shapes from here
 * in case that it is overwritten by users, except that some features, like
 * `custom series`, `graphic component`, do it deliberately.
 *
 * (2) In the features like `custom series`, `graphic component`, the user input
 * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic
 * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names
 * are reserved names, that is, if some user registers a shape named `'image'`,
 * the shape will not be used. If we intending to add some more reserved names
 * in feature, that might bring break changes (disable some existing user shape
 * names). But that case probably rarely happens. So we don't make more mechanism
 * to resolve this issue here.
 *
 * @param name
 * @return The shape class. If not found, return nothing.
 */function N(e){if(P.hasOwnProperty(e))return P[e]}
/**
 * Create a path element from path data string
 * @param pathData
 * @param opts
 * @param rect
 * @param layout 'center' or 'cover' default to be cover
 */function F(e,t,n,i){var a=r.b(e,t);return n&&("center"===i&&(n=H(n,a.getBoundingRect())),G(a,n)),a}
/**
 * Create a image element from image url
 * @param imageUrl image url
 * @param opts options
 * @param rect constrain rect
 * @param layout 'center' or 'cover'. Default to be 'cover'
 */function z(e,t,n){var r=new c.a({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(H(t,i))}}});return r}
/**
 * Get position of centered element in bounding box.
 *
 * @param  rect         element local bounding box
 * @param  boundingRect constraint bounding box
 * @return element position containing x, y, width, and height
 */function H(e,t){
// Set rect to center, keep width / height ratio.
var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var U=r.d;
/**
 * Resize a path to fit the rect
 * @param path
 * @param rect
 */function G(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}
/**
 * Sub pixel optimize line for canvas
 */function V(e,t){return S.b(e,e,{lineWidth:t}),e}
/**
 * Sub pixel optimize rect for canvas
 */function W(e){return S.c(e.shape,e.shape,e.style),e}
/**
 * Sub pixel optimize for canvas
 *
 * @param position Coordinate, such as x, y
 * @param lineWidth Should be nonnegative integer.
 * @param positiveOrNegative Default false (negative).
 * @return Optimized position.
 */var q=S.a;
/**
 * Get transform matrix of target (param target),
 * in coordinate of its ancestor (param ancestor)
 *
 * @param target
 * @param [ancestor]
 */function Y(e,t){for(var n=i.identity([]);e&&e!==t;)i.mul(n,e.getLocalTransform(),n),e=e.parent;return n}
/**
 * Apply transform to an vertex.
 * @param target [x, y]
 * @param transform Can be:
 *      + Transform matrix: like [1, 0, 0, 1, 0, 0]
 *      + {position, rotation, scale}, the same as `zrender/Transformable`.
 * @param invert Whether use invert matrix.
 * @return [x, y]
 */function K(e,t,n){return t&&!Object(B.isArrayLike)(t)&&(t=s.c.getLocalTransform(t)),n&&(t=i.invert([],t)),a.applyTransform([],e,t)}
/**
 * @param direction 'left' 'right' 'top' 'bottom'
 * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0]
 * @param invert Whether use invert matrix.
 * @return Transformed direction. 'left' 'right' 'top' 'bottom'
 */function $(e,t,n){
// Pick a base, ensure that transform result will not be (0, 0).
var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return a=K(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function J(e){return!e.isGroup}
/**
 * Apply group transition animation from g1 to g2.
 * If no animatableModel, no animation.
 */
function X(e,t,n){if(e&&t){var r,i=(r={},e.traverse((function(e){J(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(J(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),Object(T.h)(e,r,n,Object(M.a)(e).dataIndex)}}}))}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Object(B.extend)({},e.shape)),t}}function Z(e,t){
// FIXME: This way might be incorrect when graphic clipped by a corner
// and when element has a border.
return Object(B.map)(e,(function(e){var n=e[0];n=O(n,t.x),n=D(n,t.x+t.width);var r=e[1];return r=O(r,t.y),[n,r=D(r,t.y+t.height)]}))}
/**
 * Return a new clipped rect. If rect size are negative, return undefined.
 */function ee(e,t){var n=O(e.x,t.x),r=D(e.x+e.width,t.x+t.width),i=O(e.y,t.y),a=D(e.y+e.height,t.y+t.height);
// If the total rect is cliped, nothing, including the border,
// should be painted. So return undefined.
if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function te(e,
// Support 'image://' or 'path://' or direct svg path.
t,n){var r=Object(B.extend)({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(B.defaults)(i,n),new c.a(r)):F(e.replace("path://",""),r,n,"center")}
/**
 * Return `true` if the given line (line `a`) and the given polygon
 * are intersect.
 * Note that we do not count colinear as intersect here because no
 * requirement for that. We could do that if required in future.
 */function ne(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(re(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}
/**
 * Return `true` if the given two lines (line `a` and line `b`)
 * are intersect.
 * Note that we do not count colinear as intersect here because no
 * requirement for that. We could do that if required in future.
 */function re(e,t,n,r,i,a,o,s){
// let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
var c,l=n-e,u=r-t,h=o-i,f=s-a,d=ie(h,f,l,u);if((c=d)<=1e-6&&c>=-1e-6)return!1;
// `vec_m` and `vec_n` are intersect iff
//     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
//     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
//           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
var p=e-i,g=t-a,m=ie(p,g,l,u)/d;if(m<0||m>1)return!1;var v=ie(p,g,h,f)/d;return!(v<0||v>1)}
/**
 * Cross product of 2-dimension vector.
 */function ie(e,t,n,r){return e*r-n*t}function ae(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(B.isString)(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var c=e.formatterParamsExtra;c&&Object(B.each)(Object(B.keys)(c),(function(e){Object(B.hasOwn)(s,e)||(s[e]=c[e],s.$vars.push(e))}));var l=Object(M.a)(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:Object(B.defaults)({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function oe(e,t){var n;
// TODO
// Polyfill for fixing zrender group traverse don't visit it's root issue.
e.isGroup&&(n=t(e)),n||e.traverse(t)}function se(e,t){if(e)if(Object(B.isArray)(e))for(var n=0;n<e.length;n++)oe(e[n],t);else oe(e,t)}
// Register built-in shapes. These shapes might be overwritten
// by users, although we do not recommend that.
j("circle",h.a),j("ellipse",f.a),j("sector",d.a),j("ring",p.a),j("polygon",g.a),j("polyline",m.a),j("rect",v.a),j("line",y.a),j("bezierCurve",A.a),j("arc",b.a)},
/***/2332:
/***/function(e,t,n){"use strict";
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
/* harmony default export */t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},
/***/2335:
/***/function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},
/***/2345:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"234d":
/***/function(e,t,n){var r=n("e380");
/** Used as the maximum memoize cache size. */e.exports=
/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},
/***/2355:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return a})),
/* harmony export (binding) */n.d(t,"c",(function(){return s})),
/* harmony export (binding) */n.d(t,"d",(function(){return c})),
/* harmony export (binding) */n.d(t,"a",(function(){return l}));
/* harmony import */var r=n("ca80"),i=n("9850");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function a(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var a=i.label,o=a.getComputedTransform(),s=a.getBoundingRect(),c=!o||o[1]<1e-5&&o[2]<1e-5,l=a.style.margin||0,u=s.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=c?new r.a(s,o):null;t.push({label:a,labelLine:i.labelLine,rect:u,localRect:s,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:c,transform:o})}}return t}function o(e,t,n,r,i,a){var o=e.length;if(!(o<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,c=0,l=!1,u=[],h=0,f=0;f<o;f++){var d=e[f],p=d.rect;(s=p[t]-c)<0&&(
// shiftForward(i, len, -delta);
p[t]-=s,d.label[t]-=s,l=!0);var g=Math.max(-s,0);u.push(g),h+=g,c=p[t]+p[n]}h>0&&a&&
// Shift back to make the distribution more equally.
x(-h/o,0,o);
// TODO bleedMargin?
var m,v,y=e[0],A=e[o-1];return b(),
// If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.
m<0&&C(-m,.8),v<0&&C(v,.8),b(),w(m,v,1),w(v,m,-1),
// Handle bailout when there is not enough space.
b(),m<0&&_(-m),v<0&&_(v),l}function b(){m=y.rect[t]-r,v=i-A.rect[t]-A.rect[n]}function w(e,t,n){if(e<0){
// Move from other gap if can.
var r=Math.min(t,-e);if(r>0){x(r*n,0,o);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function x(n,r,i){0!==n&&(l=!0);for(var a=r;a<i;a++){var o=e[a];o.rect[t]+=n,o.label[t]+=n}}
// Squeeze gaps if the labels exceed margin.
function C(r,i){for(var a=[],s=0,c=1;c<o;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[t]-l[t]-l[n],0);a.push(u),s+=u}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(c=0;c<o-1;c++){
// Forward
x(a[c]*h,0,c+1)}else
// Backward
for(c=o-1;c>0;c--){x(-(a[c-1]*h),c,o)}}}
/**
   * Squeeze to allow overlap if there is no more space available.
   * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.
   */function _(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?
// Forward
x(n,0,r+1):
// Backward
x(-n,o-r-1,o),(e-=n)<=0)return}}
/**
 * Adjust labels on x direction to avoid overlap.
 */function s(e,t,n,
// If average the shifts on all labels and add them to 0
// TODO: Not sure if should enable it.
// Pros: The angle of lines will distribute more equally
// Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly.
r){return o(e,"x","width",t,n,r)}
/**
 * Adjust labels on y direction to avoid overlap.
 */function c(e,t,n,
// If average the shifts on all labels and add them to 0
r){return o(e,"y","height",t,n,r)}function l(e){var t=[];
// TODO, render overflow visible first, put in the displayedLabels.
e.sort((function(e,t){return t.priority-e.priority}));var n=new i.a(0,0,0,0);function a(e){if(!e.ignore){
// Show on emphasis.
var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;o<e.length;o++){var s=e[o],c=s.axisAligned,l=s.localRect,u=s.transform,h=s.label,f=s.labelLine;n.copy(s.rect),
// Add a threshold because layout may be aligned precisely.
n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=s.obb,p=!1,g=0;g<t.length;g++){var m=t[g];
// Fast rejection.
if(n.intersect(m.rect)){if(c&&m.axisAligned){
// Is overlapped
p=!0;break}if(m.obb||(
// If self is not axis aligned. But other is.
m.obb=new r.a(m.localRect,m.transform)),d||(
// If self is axis aligned. But other is not.
d=new r.a(l,u)),d.intersect(m.obb)){p=!0;break}}}
// TODO Callback to determine if this overlap should be handled?
p?(a(h),f&&a(f)):(h.attr("ignore",s.defaultAttr.ignore),f&&f.attr("ignore",s.defaultAttr.labelGuideIgnore),t.push(s))}}
/***/},
/***/2382:
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("910d")},
/***/"23cb":
/***/function(e,t,n){"use strict";var r=n("5926"),i=Math.max,a=Math.min;
// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},
/***/"23dc":
/***/function(e,t,n){"use strict";
// Math[@@toStringTag] property
// https://tc39.es/ecma262/#sec-math-@@tostringtag
n("d44e")(Math,"Math",!0)},
/***/"23dd":
/***/function(e,t,n){var r=n("6aa8"),i=n("cc15")("iterator"),a=n("8a0d");e.exports=n("5524").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},
/***/"23e7":
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("06cf").f,a=n("9112"),o=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");
/*
  options.target         - name of the target object
  options.global         - target is the global object
  options.stat           - export as static methods of target
  options.proto          - export as prototype methods of target
  options.real           - real prototype method for the `pure` version
  options.forced         - export even if the native feature is available
  options.bind           - bind methods to the target, required for the `pure` version
  options.wrap           - wrap constructors to preventing global pollution, required for the `pure` version
  options.unsafe         - use the simple assignment of property instead of delete + defineProperty
  options.sham           - add a flag to not completely full polyfills
  options.enumerable     - export as enumerable property
  options.dontCallGetSet - prevent calling a getter on target
  options.name           - the .name of the function if it does not match the key
*/
e.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in t){
// contained in target
if(f=t[u],h=e.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}
// add a flag to not completely full polyfills
(e.sham||h&&h.sham)&&a(f,"sham",!0),o(n,u,f,e)}}},
/***/"241c":
/***/function(e,t,n){"use strict";var r=n("ca84"),i=n("7839").concat("length","prototype");
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},
/***/2424:
/***/function(e,t,n){"use strict";
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
var r=n("f083"),i=n("453f"),a="includes";r(r.P+r.F*n("3afb")(a),"String",{includes:function(e/* , position = 0 */){return!!~i(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},
/***/"242e":
/***/function(e,t,n){var r=n("72af"),i=n("ec69");
/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t){return e&&r(e,t,i)}},
/***/"243f":
/***/function(e,t,n){var r=n("48a0");
/**
 * Aggregates elements of `collection` on `accumulator` with keys transformed
 * by `iteratee` and values set by `setter`.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */e.exports=function(e,t,n,i){return r(e,(function(e,r,a){t(i,e,n(e),a)})),i}},
/***/2444:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(t){var r=n("c532"),i=n("c8af"),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(
// For browsers use XHR adapter
s=n("b50d")),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){
/*eslint no-param-reassign:0*/
if("string"==typeof e)try{e=JSON.parse(e)}catch(e){/* Ignore */}return e}],
/**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c}).call(this,n("4362"))
/***/},
/***/2474:
/***/function(e,t,n){var r=n("2b3e").Uint8Array;
/** Built-in value references. */e.exports=r},
/***/2478:
/***/function(e,t,n){var r=n("4245");
/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */e.exports=function(e){return r(this,e).get(e)}},
/***/"24d7":
/***/function(e,t,n){"use strict";
// B.2.3.3 String.prototype.big()
n("e681")("big",(function(e){return function(){return e(this,"big","","")}}))},
/***/2524:
/***/function(e,t,n){var r=n("6044");
/** Used to stand-in for `undefined` hash values. */e.exports=
/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},
/***/"252f":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.line=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,a=[];n&&r&&i&&(a=function(e,t){var n=t.axisData;return e.map((function(t){var r=(0,h.mergeSameStackData)(t,e);r=function(e,t){var n=e.data;return t.map((function(e,t){return"number"==typeof n[t]?e:null}))}(t,r);var i=function(e,t){var n=e.xAxisIndex,r=e.yAxisIndex,i=t.find((function(e){var t=e.axis,r=e.index;return"x"===t&&r===n})),a=t.find((function(e){var t=e.axis,n=e.index;return"y"===t&&n===r}));return[i,a]}(t,n),a=function(e,t){var n=t.findIndex((function(e){return"value"===e.data})),r=t[n],i=t[1-n],a=r.linePosition,o=r.axis,s=i.tickPosition,c=s.length,l="x"===o?0:1,u=a[0][l],h=a[1][l],f=h-u,d=r.maxValue,p=r.minValue,g=d-p,m=new Array(c).fill(0).map((function(t,n){var r=e[n];if("number"!=typeof r)return null;var i=(r-p)/g;return 0===g&&(i=0),i*f+u}));return m.map((function(e,t){if(t>=c||"number"!=typeof e)return null;var n=[e,s[t][1-l]];return 0===l||n.reverse(),n}))}(r,i),o=function(e){var t=e.find((function(e){return"value"===e.data})),n=t.axis,r=t.linePosition,i=t.minValue,a=t.maxValue,o="x"===n?0:1,s=r[0][o];if(i<0&&a>0){var c=a-i,l=Math.abs(r[0][o]-r[1][o]),u=Math.abs(i)/c*l;"y"===n&&(u*=-1),s+=u}return{changeIndex:o,changeValue:s}}(i);return d(d({},t),{},{linePosition:a.filter((function(e){return e})),lineFillBottomPos:o})}))}(a=(0,h.initNeedSeries)(i,l.lineConfig,"line"),e));(0,c.doUpdate)({chart:e,series:a,key:"lineArea",getGraphConfig:m,getStartGraphConfig:b,beforeUpdate:w,beforeChange:x}),(0,c.doUpdate)({chart:e,series:a,key:"line",getGraphConfig:C,getStartGraphConfig:E,beforeUpdate:w,beforeChange:x}),(0,c.doUpdate)({chart:e,series:a,key:"linePoint",getGraphConfig:k,getStartGraphConfig:S}),(0,c.doUpdate)({chart:e,series:a,key:"lineLabel",getGraphConfig:B})};var i=r(n("7037")),a=r(n("278c")),o=r(n("448a")),s=r(n("9523")),c=n("18ad"),l=n("9d85"),u=r(n("050c")),h=n("becb");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=u.default.polylineToBezierCurve,g=u.default.getBezierCurveLength;function m(e){var t=e.animationCurve,n=e.animationFrame,r=e.lineFillBottomPos,i=e.rLevel;return[{name:_(e),index:i,animationCurve:t,animationFrame:n,visible:e.lineArea.show,lineFillBottomPos:r,shape:v(e),style:y(e),drawed:A}]}function v(e){return{points:e.linePosition}}function y(e){var t=e.lineArea,n=e.color,r=t.gradient,i=t.style,a=[i.fill||n],s=(0,h.deepMerge)(a,r);1===s.length&&s.push(s[0]);var c=function(e){var t=e.lineFillBottomPos,n=e.linePosition,r=t.changeIndex,i=t.changeValue,a=n.map((function(e){return e[r]})),s=Math.max.apply(Math,(0,o.default)(a)),c=Math.min.apply(Math,(0,o.default)(a)),l=s;1===r&&(l=c);return 1===r?[0,l,0,i]:[l,0,i,0]}(e);return i=d(d({},i),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,h.deepMerge)({gradientColor:s,gradientParams:c,gradientType:"linear",gradientWith:"fill"},i)}function A(e,t){var n=e.lineFillBottomPos,r=e.shape,i=t.ctx,a=r.points,s=n.changeIndex,c=n.changeValue,l=(0,o.default)(a[a.length-1]),u=(0,o.default)(a[0]);l[s]=c,u[s]=c,i.lineTo.apply(i,(0,o.default)(l)),i.lineTo.apply(i,(0,o.default)(u)),i.closePath(),i.fill()}function b(e){var t=m(e)[0],n=d({},t.style);return n.opacity=0,t.style=n,[t]}function w(e,t,n,r){var i=e[n];if(i){var a=_(t),o=r.chart.render;a!==i[0].name&&(i.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function x(e,t){var n=t.shape.points,r=e.shape.points,i=r.length,a=n.length;if(a>i){var s=r.slice(-1)[0],c=new Array(a-i).fill(0).map((function(e){return(0,o.default)(s)}));r.push.apply(r,(0,o.default)(c))}else a<i&&r.splice(a)}function C(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:_(e),index:r+1,animationCurve:t,animationFrame:n,shape:v(e),style:I(e)}]}function _(e){return e.smooth?"smoothline":"polyline"}function I(e){var t=e.lineStyle,n=e.color,r=e.smooth,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,h.getPolylineLength)(e);var n=p(e);return g(n)}(e.linePosition,r);return(0,h.deepMerge)({stroke:n,lineDash:[i,0]},t)}function E(e){var t=e.lineStyle.lineDash,n=C(e)[0],r=n.style.lineDash;return r=t?[0,0]:(0,o.default)(r).reverse(),n.style.lineDash=r,[n]}function k(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=function(e){var t=e.linePosition,n=e.linePoint.radius;return t.map((function(e){var t=(0,a.default)(e,2),r=t[0],i=t[1];return{r:n,rx:r,ry:i}}))}(e),o=function(e){var t=e.color,n=e.linePoint.style;return(0,h.deepMerge)({stroke:t},n)}(e);return i.map((function(i){return{name:"circle",index:r+2,visible:e.linePoint.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function S(e){var t=k(e);return t.forEach((function(e){e.shape.r=.1})),t}function B(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,s=function(e){var t=function(e){var t=e.data,n=e.label.formatter;if(t=t.filter((function(e){return"number"==typeof e})).map((function(e){return e.toString()})),!n)return t;var r=(0,i.default)(n);return"string"===r?t.map((function(e){return n.replace("{value}",e)})):"function"===r?t.map((function(e,t){return n({value:e,index:t})})):t}(e),n=function(e){var t=e.linePosition,n=e.lineFillBottomPos,r=e.label,i=r.position,s=r.offset,c=n.changeIndex,l=n.changeValue;return t.map((function(e){if("bottom"===i&&((e=(0,o.default)(e))[c]=l),"center"===i){var t=(0,o.default)(e);t[c]=l,n=e,r=t,u=(0,a.default)(n,2),h=u[0],f=u[1],d=(0,a.default)(r,2),p=d[0],g=d[1],e=[(h+p)/2,(f+g)/2]}var n,r,u,h,f,d,p,g,m,v,y,A,b,w,x,C;return m=e,v=s,y=(0,a.default)(m,2),A=y[0],b=y[1],w=(0,a.default)(v,2),x=w[0],C=w[1],[A+x,b+C]}))}(e);return t.map((function(e,t){return{content:e,position:n[t]}}))}(e),c=function(e){var t=e.color,n=e.label.style;return(0,h.deepMerge)({fill:t},n)}
/***/(e);return s.map((function(i,a){return{name:"text",index:r+3,visible:e.label.show,animationCurve:t,animationFrame:n,shape:i,style:c}}))}},
/***/2532:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("5a34"),o=n("1d80"),s=n("577e"),c=n("ab13"),l=i("".indexOf);
// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e/* , position = 0 */){return!!~l(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},
/***/"253c":
/***/function(e,t,n){var r=n("3729"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function(e){return i(e)&&"[object Arguments]"==r(e)}},
/***/2584:
/***/function(e,t,n){var r=n("c94e"),i=n("5a5d"),a=n("5d6f"),o=n("e171").f;e.exports=function(e){return function(t){for(var n,s=a(t),c=i(s),l=c.length,u=0,h=[];l>u;)n=c[u++],r&&!o.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}}},
/***/2593:
/***/function(e,t,n){var r=n("15f3"),i=n("c6cf")((function(e,t){return null==e?{}:r(e,t)}));
/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */e.exports=i},
/***/"25f0":
/***/function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),a=n("825a"),o=n("577e"),s=n("d039"),c=n("90d8"),l="toString",u=RegExp.prototype,h=u[l],f=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=r&&h.name!==l;
// `RegExp.prototype.toString` method
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
(f||d)&&i(u,l,(function(){var e=a(this);return"/"+o(e.source)+"/"+o(c(e))}),{unsafe:!0})
/***/},
/***/2626:
/***/function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),a=n("b622"),o=n("83ab"),s=a("species");e.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},
/***/2647:
/***/function(e,t,n){
// 20.1.2.3 Number.isInteger(number)
var r=n("9fe8"),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},
/***/2686:
/***/function(e,t,n){var r=n("3729"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `_.isRegExp` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
 */
function(e){return i(e)&&"[object RegExp]"==r(e)}},
/***/"26ce":
/***/function(e,t,n){"use strict";
/** Used as references for various `Number` constants. */
/* harmony default export */t.a=
/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},
/***/"26dd":
/***/function(e,t,n){"use strict";var r=n("6f4f"),i=n("10db"),a=n("92f0"),o={};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
n("051b")(o,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},
/***/"26e8":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function(e,t){return null!=e&&t in Object(e)}},
/***/"26ee":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("5ea3"),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();
/** Detect free variable `self`. */
/* harmony default export */t.a=a},
/***/"26f1":
/***/function(e,t,n){"use strict";var r=n("ab6e"),i=n("798a");
// 23.2 Set Objects
e.exports=n("d168")("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{
// 23.2.3.1 Set.prototype.add(value)
add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},
/***/"271a":
/***/function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),a=n("577e"),o=n("d6d6"),s=URLSearchParams,c=s.prototype,l=i(c.getAll),u=i(c.has),h=new s("a=1");
// `undefined` case is a Chromium 117 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
!h.has("a",2)&&h.has("a",void 0)||r(c,"has",(function(e/* , value */){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=l(this,e);// also validates `this`
o(t,1);for(var i=a(n),s=0;s<r.length;)if(r[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})
/***/},
/***/2761:
/***/function(e,t,n){var r=n("d77f"),i=n("f97f"),a=n("019f"),o=Object.defineProperty;t.f=n("c94e")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){/* empty */}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},
/***/2768:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is `null` or `undefined`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
 * @example
 *
 * _.isNil(null);
 * // => true
 *
 * _.isNil(void 0);
 * // => true
 *
 * _.isNil(NaN);
 * // => false
 */
function(e){return null==e}},
/***/2769:
/***/function(e,t,n){var r=n("5ca0")(n("51f5"));
/**
 * Iterates over elements of `collection`, returning the first element
 * `predicate` returns truthy for. The predicate is invoked with three
 * arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {*} Returns the matched element, else `undefined`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36, 'active': true },
 *   { 'user': 'fred',    'age': 40, 'active': false },
 *   { 'user': 'pebbles', 'age': 1,  'active': true }
 * ];
 *
 * _.find(users, function(o) { return o.age < 40; });
 * // => object for 'barney'
 *
 * // The `_.matches` iteratee shorthand.
 * _.find(users, { 'age': 1, 'active': true });
 * // => object for 'pebbles'
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.find(users, ['active', false]);
 * // => object for 'fred'
 *
 * // The `_.property` iteratee shorthand.
 * _.find(users, 'active');
 * // => object for 'barney'
 */e.exports=r},
/***/"278c":
/***/function(e,t,n){var r=n("c135"),i=n("9b42"),a=n("6613"),o=n("c240");e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"27bd":
/***/function(e,t,n){var r=n("2761").f,i=n("2fb2"),a=n("de24")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},
/***/"27c4":
/***/function(e,t,n){
// false -> Array#indexOf
// true  -> Array#includes
var r=n("5d6f"),i=n("6373"),a=n("6fc7");e.exports=function(e){return function(t,n,o){var s,c=r(t),l=i(c.length),u=a(o,l);
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if(e&&n!=n){for(;l>u;)
// eslint-disable-next-line no-self-compare
if((s=c[u++])!=s)return!0;
// Array#indexOf ignores holes, Array#includes - not
}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},
/***/"282b":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("6d8b");
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO Parse shadow style
// TODO Only shallow path support
function i(e,t){
// Normalize
for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var c=e[s][1];if(!(i&&r.indexOf(i,c)>=0||a&&r.indexOf(a,c)<0)){var l=n.getShallow(c,t);null!=l&&(o[e[s][0]]=l)}}
// TODO Text or image?
return o}}
/***/},
/***/2848:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/2877:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function r(e,t,n,r,i,a,o/* server only */,s/* vue-cli only */){
// Vue.extend constructor export interop
var c,l="function"==typeof e?e.options:e;
// render functions
if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),
// functional template
r&&(l.functional=!0),
// scopedId
a&&(l._scopeId="data-v-"+a),o?(
// server build
c=function(e){
// 2.3 injection
// functional
// 2.2 with runInNewContext: true
(e=e||// cached call
this.$vnode&&this.$vnode.ssrContext||// stateful
this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),
// inject component styles
i&&i.call(this,e),
// register component module identifier for async chunk inferrence
e&&e._registeredComponents&&e._registeredComponents.add(o)}
// used by ssr in case component is cached and beforeCreate
// never gets called
,l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
l._injectStyles=c;
// register for functional component in vue file
var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{
// inject component registration as beforeCreate hook
var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}
/***/n.d(t,"a",(function(){return r}))},
/***/"28c9":
/***/function(e,t){e.exports=
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function(){this.__data__=[],this.size=0}},
/***/"28dd":
/***/function(e,t,n){"use strict";
/* unused harmony export Url */
/* unused harmony export Http */
/* unused harmony export Resource */
/*!
 * vue-resource v1.5.3
 * https://github.com/pagekit/vue-resource
 * Released under the MIT License.
 */
/**
 * Promises/A+ polyfill v1.1.4 (https://github.com/bramstein/promis)
 */function r(e){this.state=2,this.value=void 0,this.deferred=[];var t=this;try{e((function(e){t.resolve(e)}),(function(e){t.reject(e)}))}catch(e){t.reject(e)}}r.reject=function(e){return new r((function(t,n){n(e)}))},r.resolve=function(e){return new r((function(t,n){t(e)}))},r.all=function(e){return new r((function(t,n){var i=0,a=[];function o(n){return function(r){a[n]=r,(i+=1)===e.length&&t(a)}}0===e.length&&t(a);for(var s=0;s<e.length;s+=1)r.resolve(e[s]).then(o(s),n)}))},r.race=function(e){return new r((function(t,n){for(var i=0;i<e.length;i+=1)r.resolve(e[i]).then(t,n)}))};var i=r.prototype;function a(e,t){this.promise=e instanceof Promise?e:new Promise(e.bind(t)),this.context=t}i.resolve=function(e){var t=this;if(2===t.state){if(e===t)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=e&&e.then;if(null!==e&&"object"==typeof e&&"function"==typeof r)return void r.call(e,(function(e){n||t.resolve(e),n=!0}),(function(e){n||t.reject(e),n=!0}))}catch(e){return void(n||t.reject(e))}t.state=0,t.value=e,t.notify()}},i.reject=function(e){var t=this;if(2===t.state){if(e===t)throw new TypeError("Promise settled with itself.");t.state=1,t.value=e,t.notify()}},i.notify=function(){var e,t=this;s((function(){if(2!==t.state)for(;t.deferred.length;){var e=t.deferred.shift(),n=e[0],r=e[1],i=e[2],a=e[3];try{0===t.state?i("function"==typeof n?n.call(void 0,t.value):t.value):1===t.state&&("function"==typeof r?i(r.call(void 0,t.value)):a(t.value))}catch(e){a(e)}}}),e)},i.then=function(e,t){var n=this;return new r((function(r,i){n.deferred.push([e,t,r,i]),n.notify()}))},i.catch=function(e){return this.then(void 0,e)},
/**
 * Promise adapter.
 */
"undefined"==typeof Promise&&(window.Promise=r),a.all=function(e,t){return new a(Promise.all(e),t)},a.resolve=function(e,t){return new a(Promise.resolve(e),t)},a.reject=function(e,t){return new a(Promise.reject(e),t)},a.race=function(e,t){return new a(Promise.race(e),t)};var o=a.prototype;o.bind=function(e){return this.context=e,this},o.then=function(e,t){return e&&e.bind&&this.context&&(e=e.bind(this.context)),t&&t.bind&&this.context&&(t=t.bind(this.context)),new a(this.promise.then(e,t),this.context)},o.catch=function(e){return e&&e.bind&&this.context&&(e=e.bind(this.context)),new a(this.promise.catch(e),this.context)},o.finally=function(e){return this.then((function(t){return e.call(this),t}),(function(t){return e.call(this),Promise.reject(t)}))};
/**
 * Utility functions.
 */
var s,c={}.hasOwnProperty,l=[].slice,u="undefined"!=typeof window;function h(e){return e?e.replace(/^\s*|\s*$/g,""):""}function f(e){return e?e.toLowerCase():""}var d=Array.isArray;function p(e){return"string"==typeof e}function g(e){return"function"==typeof e}function m(e){return null!==e&&"object"==typeof e}function v(e){return m(e)&&Object.getPrototypeOf(e)==Object.prototype}function y(e,t,n){var r=a.resolve(e);return arguments.length<2?r:r.then(t,n)}function A(e,t,n){return g(n=n||{})&&(n=n.call(t)),x(e.bind({$vm:t,$options:n}),e,{$options:n})}function b(e,t){var n,r;if(d(e))for(n=0;n<e.length;n++)t.call(e[n],e[n],n);else if(m(e))for(r in e)c.call(e,r)&&t.call(e[r],e[r],r);return e}var w=Object.assign||function(e){var t=l.call(arguments,1);return t.forEach((function(t){C(e,t)})),e};function x(e){return l.call(arguments,1).forEach((function(t){C(e,t,!0)})),e}function C(e,t,n){for(var r in t)n&&(v(t[r])||d(t[r]))?(v(t[r])&&!v(e[r])&&(e[r]={}),d(t[r])&&!d(e[r])&&(e[r]=[]),C(e[r],t[r],n)):void 0!==t[r]&&(e[r]=t[r])}
/**
 * Root Prefix Transform.
 */
/**
 * URL Template v2.0.6 (https://github.com/bramstein/url-template)
 */
function _(e,t,n){var r=function(e){var t=["+","#",".","/",";","?","&"],n=[];return{vars:n,expand:function(r){return e.replace(/\{([^{}]+)\}|([^{}]+)/g,(function(e,i,a){if(i){var o=null,s=[];if(-1!==t.indexOf(i.charAt(0))&&(o=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach((function(e){var t=/([^:*]*)(?::(\d+)|(\*))?/.exec(e);s.push.apply(s,function(e,t,n,r){var i=e[n],a=[];if(I(i)&&""!==i)if("string"==typeof i||"number"==typeof i||"boolean"==typeof i)i=i.toString(),r&&"*"!==r&&(i=i.substring(0,parseInt(r,10))),a.push(k(t,i,E(t)?n:null));else if("*"===r)Array.isArray(i)?i.filter(I).forEach((function(e){a.push(k(t,e,E(t)?n:null))})):Object.keys(i).forEach((function(e){I(i[e])&&a.push(k(t,i[e],e))}));else{var o=[];Array.isArray(i)?i.filter(I).forEach((function(e){o.push(k(t,e))})):Object.keys(i).forEach((function(e){I(i[e])&&(o.push(encodeURIComponent(e)),o.push(k(t,i[e].toString())))})),E(t)?a.push(encodeURIComponent(n)+"="+o.join(",")):0!==o.length&&a.push(o.join(","))}else";"===t?a.push(encodeURIComponent(n)):""!==i||"&"!==t&&"?"!==t?""===i&&a.push(""):a.push(encodeURIComponent(n)+"=");return a}(r,o,t[1],t[2]||t[3])),n.push(t[1])})),o&&"+"!==o){var c=",";return"?"===o?c="&":"#"!==o&&(c=o),(0!==s.length?o:"")+s.join(c)}return s.join(",")}return S(a)}))}}}(e),i=r.expand(t);return n&&n.push.apply(n,r.vars),i}function I(e){return null!=e}function E(e){return";"===e||"&"===e||"?"===e}function k(e,t,n){return t="+"===e||"#"===e?S(t):encodeURIComponent(t),n?encodeURIComponent(n)+"="+t:t}function S(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e)),e})).join("")}
/**
 * URL Template (RFC 6570) Transform.
 */
/**
 * Service for URL templating.
 */
function B(e,t){var n,r=this||{},i=e;return p(e)&&(i={url:e,params:t}),i=x({},B.options,r.$options,i),B.transforms.forEach((function(e){p(e)&&(e=B.transform[e]),g(e)&&(n=function(e,t,n){return function(r){return e.call(n,r,t)}}(e,n,r.$vm))})),n(i)}
/**
 * Url options.
 */function M(e,t,n){var r,i=d(t),a=v(t);b(t,(function(t,o){r=m(t)||d(t),n&&(o=n+"["+(a||r?o:"")+"]"),!n&&i?e.add(t.name,t.value):r?M(e,t,o):e.add(o,t)}))}
/**
 * XDomain client (Internet Explorer).
 */function T(e){return new a((function(t){var n=new XDomainRequest,r=function(r){var i=r.type,a=0;"load"===i?a=200:"error"===i&&(a=500),t(e.respondWith(n.responseText,{status:a}))};e.abort=function(){return n.abort()},n.open(e.method,e.getUrl()),e.timeout&&(n.timeout=e.timeout),n.onload=r,n.onabort=r,n.onerror=r,n.ontimeout=r,n.onprogress=function(){},n.send(e.getBody())}))}
/**
 * CORS Interceptor.
 */B.options={url:"",root:null,params:{}},
/**
 * Url transforms.
 */
B.transform={template:function(e){var t=[],n=_(e.url,e.params,t);return t.forEach((function(t){delete e.params[t]})),n},query:
/**
 * Query Parameter Transform.
 */
function(e,t){var n=Object.keys(B.options.params),r={},i=t(e);return b(e.params,(function(e,t){-1===n.indexOf(t)&&(r[t]=e)})),(r=B.params(r))&&(i+=(-1==i.indexOf("?")?"?":"&")+r),i},root:function(e,t){var n,r,i=t(e);return p(e.root)&&!/^(https?:)?\//.test(i)&&(n=e.root,r="/",i=(n&&void 0===r?n.replace(/\s+$/,""):n&&r?n.replace(new RegExp("["+r+"]+$"),""):n)+"/"+i),i}},B.transforms=["template","query","root"],
/**
 * Encodes a Url parameter string.
 *
 * @param {Object} obj
 */
B.params=function(e){var t=[],n=encodeURIComponent;return t.add=function(e,t){g(t)&&(t=t()),null===t&&(t=""),this.push(n(e)+"="+n(t))},M(t,e),t.join("&").replace(/%20/g,"+")},
/**
 * Parse a URL and return its components.
 *
 * @param {String} url
 */
B.parse=function(e){var t=document.createElement("a");return document.documentMode&&(t.href=e,e=t.href),t.href=e,{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",port:t.port,host:t.host,hostname:t.hostname,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):""}};var O=u&&"withCredentials"in new XMLHttpRequest;
/**
 * JSONP client (Browser).
 */
function D(e){return new a((function(t){var n,r,i=e.jsonp||"callback",a=e.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),o=null;n=function(n){var i=n.type,s=0;"load"===i&&null!==o?s=200:"error"===i&&(s=500),s&&window[a]&&(delete window[a],document.body.removeChild(r)),t(e.respondWith(o,{status:s}))},window[a]=function(e){o=JSON.stringify(e)},e.abort=function(){n({type:"abort"})},e.params[i]=a,e.timeout&&setTimeout(e.abort,e.timeout),(r=document.createElement("script")).src=e.getUrl(),r.type="text/javascript",r.async=!0,r.onload=n,r.onerror=n,document.body.appendChild(r)}))}
/**
 * JSONP Interceptor.
 */
/**
 * XMLHttp client (Browser).
 */
function P(e){return new a((function(t){var n=new XMLHttpRequest,r=function(r){var i=e.respondWith("response"in n?n.response:n.responseText,{status:1223===n.status?204:n.status,
// IE9 status bug
statusText:1223===n.status?"No Content":h(n.statusText)});b(h(n.getAllResponseHeaders()).split("\n"),(function(e){i.headers.append(e.slice(0,e.indexOf(":")),e.slice(e.indexOf(":")+1))})),t(i)};e.abort=function(){return n.abort()},n.open(e.method,e.getUrl(),!0),e.timeout&&(n.timeout=e.timeout),e.responseType&&"responseType"in n&&(n.responseType=e.responseType),(e.withCredentials||e.credentials)&&(n.withCredentials=!0),e.crossOrigin||e.headers.set("X-Requested-With","XMLHttpRequest"),// deprecated use downloadProgress
g(e.progress)&&"GET"===e.method&&n.addEventListener("progress",e.progress),g(e.downloadProgress)&&n.addEventListener("progress",e.downloadProgress),// deprecated use uploadProgress
g(e.progress)&&/^(POST|PUT)$/i.test(e.method)&&n.upload.addEventListener("progress",e.progress),g(e.uploadProgress)&&n.upload&&n.upload.addEventListener("progress",e.uploadProgress),e.headers.forEach((function(e,t){n.setRequestHeader(t,e)})),n.onload=r,n.onabort=r,n.onerror=r,n.ontimeout=r,n.send(e.getBody())}))}
/**
 * Http client (Node).
 */function L(e){var t=n(1);return new a((function(n){var r,i=e.getUrl(),a=e.getBody(),o=e.method,s={};e.headers.forEach((function(e,t){s[t]=e})),t(i,{body:a,method:o,headers:s}).then(r=function(t){var r=e.respondWith(t.body,{status:t.statusCode,statusText:h(t.statusMessage)});b(t.headers,(function(e,t){r.headers.set(t,e)})),n(r)},(function(e){return r(e.response)}))}))}
/**
 * Base client.
 */function Q(e){return(e.client||(u?P:L))(e)}
/**
 * HTTP Headers.
 */var R=function(){function e(e){var t=this;this.map={},b(e,(function(e,n){return t.append(n,e)}))}var t=e.prototype;return t.has=function(e){return null!==j(this.map,e)},t.get=function(e){var t=this.map[j(this.map,e)];return t?t.join():null},t.getAll=function(e){return this.map[j(this.map,e)]||[]},t.set=function(e,t){this.map[function(e){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return h(e)}
/**
 * HTTP Response.
 */(j(this.map,e)||e)]=[h(t)]},t.append=function(e,t){var n=this.map[j(this.map,e)];n?n.push(h(t)):this.set(e,t)},t.delete=function(e){delete this.map[j(this.map,e)]},t.deleteAll=function(){this.map={}},t.forEach=function(e,t){var n=this;b(this.map,(function(r,i){b(r,(function(r){return e.call(t,r,i,n)}))}))},e}();function j(e,t){return Object.keys(e).reduce((function(e,n){return f(t)===f(n)?n:e}),null)}var N=function(){function e(e,t){var n,r=t.url,i=t.headers,o=t.status,s=t.statusText;this.url=r,this.ok=o>=200&&o<300,this.status=o||0,this.statusText=s||"",this.headers=new R(i),this.body=e,p(e)?this.bodyText=e:(n=e,"undefined"!=typeof Blob&&n instanceof Blob&&(this.bodyBlob=e,function(e){return 0===e.type.indexOf("text")||-1!==e.type.indexOf("json")}
/**
 * HTTP Request.
 */(e)&&(this.bodyText=function(e){return new a((function(t){var n=new FileReader;n.readAsText(e),n.onload=function(){t(n.result)}}))}(e))))}var t=e.prototype;return t.blob=function(){return y(this.bodyBlob)},t.text=function(){return y(this.bodyText)},t.json=function(){return y(this.text(),(function(e){return JSON.parse(e)}))},e}();Object.defineProperty(N.prototype,"data",{get:function(){return this.body},set:function(e){this.body=e}});var F=function(){function e(e){var t;this.body=null,this.params={},w(this,e,{method:(t=e.method||"GET",t?t.toUpperCase():"")}),this.headers instanceof R||(this.headers=new R(this.headers))}var t=e.prototype;return t.getUrl=function(){return B(this)},t.getBody=function(){return this.body},t.respondWith=function(e,t){return new N(e,w(t||{},{url:this.getUrl()}))},e}(),z={"Content-Type":"application/json;charset=utf-8"};
/**
 * Service for sending network requests.
 */function H(e){var t=this||{},n=function(e){var t=[Q],n=[];function r(r){for(;t.length;){var i=t.pop();if(g(i)){var o=function(){var t=void 0,o=void 0;if(m(t=i.call(e,r,(function(e){return o=e}))||o))return{v:new a((function(r,i){n.forEach((function(n){t=y(t,(function(t){return n.call(e,t)||t}),i)})),y(t,r,i)}),e)};g(t)&&n.unshift(t)}();if("object"==typeof o)return o.v}}}return m(e)||(e=null),r.use=function(e){t.push(e)},r}(t.$vm);return function(e){l.call(arguments,1).forEach((function(t){for(var n in t)void 0===e[n]&&(e[n]=t[n])}))}(e||{},t.$options,H.options),H.interceptors.forEach((function(e){p(e)&&(e=H.interceptor[e]),g(e)&&n.use(e)})),n(new F(e)).then((function(e){return e.ok?e:a.reject(e)}),(function(e){return Error,a.reject(e)}))}
/**
 * Service for interacting with RESTful services.
 */
function U(e,t,n,r){var i=this||{},a={};return b(n=w({},U.actions,n),(function(n,o){n=x({url:e,params:w({},t)},r,n),a[o]=function(){return(i.$http||H)(function(e,t){var n,r=w({},e),i={};switch(t.length){case 2:i=t[0],n=t[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?n=t[0]:i=t[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+t.length+" arguments"}return r.body=n,r.params=w({},r.params,i),r}(n,arguments))}})),a}
/**
 * Install plugin.
 */
function G(e){G.installed||(!function(e){var t=e.config,n=e.nextTick;s=n,t.debug||!t.silent}(e),e.url=B,e.http=H,e.resource=U,e.Promise=a,Object.defineProperties(e.prototype,{$url:{get:function(){return A(e.url,this,this.$options.url)}},$http:{get:function(){return A(e.http,this,this.$options.http)}},$resource:{get:function(){return e.resource.bind(this)}},$promise:{get:function(){var t=this;return function(n){return new e.Promise(n,t)}}}}))}H.options={},H.headers={put:z,post:z,patch:z,delete:z,common:{Accept:"application/json, text/plain, */*"},custom:{}},H.interceptor={before:
/**
 * Before Interceptor.
 */
function(e){g(e.before)&&e.before.call(this,e)}
/**
 * HTTP method override Interceptor.
 */,method:function(e){e.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(e.method)&&(e.headers.set("X-HTTP-Method-Override",e.method),e.method="POST")}
/**
 * Header Interceptor.
 */,jsonp:function(e){"JSONP"==e.method&&(e.client=D)},json:
/**
 * JSON Interceptor.
 */
function(e){var t=e.headers.get("Content-Type")||"";return m(e.body)&&0===t.indexOf("application/json")&&(e.body=JSON.stringify(e.body)),function(e){return e.bodyText?y(e.text(),(function(t){var n,r,i;if(0===(e.headers.get("Content-Type")||"").indexOf("application/json")||(r=(n=t).match(/^\s*(\[|\{)/),i={"[":/]\s*$/,"{":/}\s*$/},r&&i[r[1]].test(n)))try{e.body=JSON.parse(t)}catch(t){e.body=null}else e.body=t;return e})):e}},form:
/**
 * Form data Interceptor.
 */
function(e){var t;t=e.body,"undefined"!=typeof FormData&&t instanceof FormData?e.headers.delete("Content-Type"):m(e.body)&&e.emulateJSON&&(e.body=B.params(e.body),e.headers.set("Content-Type","application/x-www-form-urlencoded"))},header:function(e){b(w({},H.headers.common,e.crossOrigin?{}:H.headers.custom,H.headers[f(e.method)]),(function(t,n){e.headers.has(n)||e.headers.set(n,t)}))},cors:function(e){if(u){var t=B.parse(location.href),n=B.parse(e.getUrl());n.protocol===t.protocol&&n.host===t.host||(e.crossOrigin=!0,e.emulateHTTP=!1,O||(e.client=T))}}},H.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach((function(e){H[e]=function(t,n){return this(w(n||{},{url:t,method:e}))}})),["post","put","patch"].forEach((function(e){H[e]=function(t,n,r){return this(w(r||{},{url:t,method:e,body:n}))}})),U.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&!window.Vue.resource&&window.Vue.use(G)
/* harmony default export */,t.a=G},
/***/2909:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return a}));
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
var r=n("6b75");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var i=n("06c5");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
n("d9e2");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(i.a)(e)||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
/***/},
/***/2985:
/***/function(e,t,n){
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
var r=n("f083"),i=n("8d87").f,a=n("d77f");r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},
/***/"29f3":
/***/function(e,t){
/** Used for built-in method references. */
var n=Object.prototype.toString;
/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */e.exports=
/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function(e){return n.call(e)}},
/***/"2a2d":
/***/function(e,t,n){
// 19.1.2.9 Object.getPrototypeOf(O)
var r=n("42ee"),i=n("ed60");n("0a66")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},
/***/"2a62":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),a=n("dc4a");e.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw n;if(s)throw o;return i(o),n}},
/***/"2a95":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&i(a,n.prototype),a},a.apply(null,arguments)}function o(e){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,r(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i(o,e)},o(e)}
/* eslint no-console:0 */var s=/%[sdj%]/g,c=function(){};function l(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],a=t.length;return"function"==typeof i?i.apply(null,t.slice(1)):"string"==typeof i?String(i).replace(s,(function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})):i}function h(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function f(e,t,n){var r=0,i=e.length;!function a(o){if(o&&o.length)n(o);else{var s=r;r+=1,s<i?t(e[s],a):n([])}}([])}void 0!==e&&Object({NODE_ENV:"production",VUE_APP_API_BASE_URL:"http://localhost:8081",VUE_APP_NAME:"Loading",VUE_APP_PERMISSIONS_KEY:"admin.permissions",VUE_APP_PUBLIC_PATH:"",VUE_APP_ROLES_KEY:"admin.roles",VUE_APP_ROUTES_KEY:"admin.routes",VUE_APP_SETTING_KEY:"admin.setting",VUE_APP_TBAS_KEY:"admin.tabs",VUE_APP_TBAS_TITLES_KEY:"admin.tabs.titles",VUE_APP_USER_KEY:"admin.user",BASE_URL:""});var d=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),r}(o(Error));function p(e,t,n,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);f(a,n,(function(e){return r(e),e.length?i(new d(e,l(e))):t()}))}));return i.catch((function(e){return e})),i}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,c=0,u=[],h=new Promise((function(t,i){var h=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new d(u,l(u))):t()};o.length||(r(u),t()),o.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?f(r,n,h):function(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e),++i===a&&n(r)}e.forEach((function(e){t(e,o)}))}(r,n,h)}))}));return h.catch((function(e){return e})),h}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function m(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];"object"==typeof i&&"object"==typeof e[r]?e[r]=n({},e[r],i):e[r]=i}return e}
/**
 *  Rule for validating required fields.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */function v(e,t,n,r,i,a){!e.required||n.hasOwnProperty(e.field)&&!h(t,a||e.type)||r.push(u(i.messages.required,e.fullField))}
/**
 *  Rule for validating whitespace.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */
/* eslint max-len:0 */
var y={
// http://emailregex.com/
email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},A={integer:function(e){return A.number(e)&&parseInt(e,10)===e},float:function(e){return A.number(e)&&!A.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!A.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(y.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(y.url)},hex:function(e){return"string"==typeof e&&!!e.match(y.hex)}};var b="enum";
/**
 *  Rule for validating a value exists in an enumerable list.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */var w={required:v,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.messages.whitespace,e.fullField))},type:
/**
 *  Rule for validating the type of a value.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */
function(e,t,n,r,i){if(e.required&&void 0===t)v(e,t,n,r,i);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?A[a](t)||r.push(u(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(u(i.messages.types[a],e.fullField,e.type))}}
/**
 *  Rule for validating minimum and maximum allowed values.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,range:function(e,t,n,r,i){var a="number"==typeof e.len,o="number"==typeof e.min,s="number"==typeof e.max,c=t,l=null,h="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);// if the value is not of a supported type for range validation
// the validation rule rule should use the
// type property to also test for a particular type
if(h?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(c=t.length),f&&(
// 处理码点大于U+010000的文字length属性不准确的bug，如"𠮷𠮷𠮷".lenght !== 3
c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&r.push(u(i.messages[l].len,e.fullField,e.len)):o&&!s&&c<e.min?r.push(u(i.messages[l].min,e.fullField,e.min)):s&&!o&&c>e.max?r.push(u(i.messages[l].max,e.fullField,e.max)):o&&s&&(c<e.min||c>e.max)&&r.push(u(i.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[b]=Array.isArray(e[b])?e[b]:[],-1===e[b].indexOf(t)&&r.push(u(i.messages[b],e.fullField,e[b].join(", ")))}
/**
 *  Rule for validating a regular expression pattern.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)
// if a RegExp instance is passed, reset `lastIndex` in case its `global`
// flag is accidentally set to `true`, which in a validation scenario
// is not necessary and the result might be misleading
e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};
/**
 *  Performs validation for string types.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */function x(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,a)&&!e.required)return n();w.required(e,t,r,o,i,a),h(t,a)||w.type(e,t,r,o,i)}n(o)}
/**
 *  Performs validation for any type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */var C={string:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,"string")&&!e.required)return n();w.required(e,t,r,a,i,"string"),h(t,"string")||(w.type(e,t,r,a,i),w.range(e,t,r,a,i),w.pattern(e,t,r,a,i),!0===e.whitespace&&w.whitespace(e,t,r,a,i))}n(a)}
/**
 *  Validates a function.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,method:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&w.type(e,t,r,a,i)}n(a)}
/**
 *  Validates a number.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,number:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&(w.type(e,t,r,a,i),w.range(e,t,r,a,i))}n(a)}
/**
 *  Validates a boolean.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,boolean:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&w.type(e,t,r,a,i)}n(a)}
/**
 *  Validates the regular expression type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,regexp:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),h(t)||w.type(e,t,r,a,i)}n(a)}
/**
 *  Validates a number is an integer.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,integer:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&(w.type(e,t,r,a,i),w.range(e,t,r,a,i))}n(a)}
/**
 *  Validates a number is a floating point number.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,float:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&(w.type(e,t,r,a,i),w.range(e,t,r,a,i))}n(a)}
/**
 *  Validates an array.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,array:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();w.required(e,t,r,a,i,"array"),null!=t&&(w.type(e,t,r,a,i),w.range(e,t,r,a,i))}n(a)}
/**
 *  Validates an object.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,object:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&w.type(e,t,r,a,i)}n(a)},enum:
/**
 *  Validates an enumerable list.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */
function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i),void 0!==t&&w.enum(e,t,r,a,i)}n(a)}
/**
 *  Validates a regular expression pattern.
 *
 *  Performs validation when a rule only contains
 *  a pattern property but is not declared as a string type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */,pattern:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,"string")&&!e.required)return n();w.required(e,t,r,a,i),h(t,"string")||w.pattern(e,t,r,a,i)}n(a)},date:function(e,t,n,r,i){
// console.log('integer rule called %j', rule);
var a=[];// console.log('validate on %s value', value);
if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,"date")&&!e.required)return n();var o;if(w.required(e,t,r,a,i),!h(t,"date"))o=t instanceof Date?t:new Date(t),w.type(e,o,r,a,i),o&&w.range(e,o.getTime(),r,a,i)}n(a)},url:x,hex:x,email:x,required:function(e,t,n,r,i){var a=[],o=Array.isArray(t)?"array":typeof t;w.required(e,t,r,a,i,o),n(a)},any:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();w.required(e,t,r,a,i)}n(a)}};function _(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var I=_();
/**
 *  Encapsulates a validation schema.
 *
 *  @param descriptor An object declaring validation rules
 *  for this schema.
 */function E(e){this.rules=null,this._messages=I,this.define(e)}E.prototype={messages:function(e){return e&&(this._messages=m(_(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=function(){});var a,o,s=e,c=t,h=r;if("function"==typeof c&&(h=c,c={}),!this.rules||0===Object.keys(this.rules).length)return h&&h(),Promise.resolve();if(c.messages){var f=this.messages();f===I&&(f=_()),m(f,c.messages),c.messages=f}else c.messages=this.messages();var d={};(c.keys||Object.keys(this.rules)).forEach((function(t){a=i.rules[t],o=s[t],a.forEach((function(r){var a=r;"function"==typeof a.transform&&(s===e&&(s=n({},s)),o=s[t]=a.transform(o)),(a="function"==typeof a?{validator:a}:n({},a)).validator=i.getValidationMethod(a),a.field=t,a.fullField=a.fullField||t,a.type=i.getType(a),a.validator&&(d[t]=d[t]||[],d[t].push({rule:a,value:o,source:s,field:t}))}))}));var v={};return p(d,c,(function(e,t){var r,i=e.rule,a=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function o(e,t){return n({},t,{fullField:i.fullField+"."+e})}function s(r){void 0===r&&(r=[]);var s=r;if(Array.isArray(s)||(s=[s]),!c.suppressWarning&&s.length&&E.warning("async-validator:",s),s.length&&void 0!==i.message&&(s=[].concat(i.message)),s=s.map(g(i)),c.first&&s.length)return v[i.field]=1,t(s);if(a){
// if rule is required but the target object
// does not exist fail at the rule level and don't
// go deeper
if(i.required&&!e.value)return void 0!==i.message?s=[].concat(i.message).map(g(i)):c.error&&(s=[c.error(i,u(c.messages.required,i.field))]),t(s);var l={};if(i.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(l[h]=i.defaultField);for(var f in l=n({},l,e.rule.fields))if(l.hasOwnProperty(f)){var d=Array.isArray(l[f])?l[f]:[l[f]];l[f]=d.map(o.bind(null,f))}var p=new E(l);p.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),p.validate(e.value,e.rule.options||c,(function(e){var n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(s)}a=a&&(i.required||!i.required&&e.value),i.field=e.field,i.asyncValidator?r=i.asyncValidator(i,e.value,s,e.source,c):i.validator&&(!0===(r=i.validator(i,e.value,s,e.source,c))?s():!1===r?s(i.message||i.field+" fails"):r instanceof Array?s(r):r instanceof Error&&s(r.message)),r&&r.then&&r.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){!function(e){var t,n,r,i=[],a={};for(t=0;t<e.length;t++)n=e[t],r=void 0,Array.isArray(n)?i=(r=i).concat.apply(r,n):i.push(n);i.length?a=l(i):(i=null,a=null),h(i,a)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!C.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?C.required:C[this.getType(e)]||!1}},E.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");C[e]=t},E.warning=c,E.messages=I,E.validators=C,
/* harmony default export */t.a=E}).call(this,n("4362"))
/***/},
/***/"2a95c":
/***/function(e,t,n){
// 20.2.2.33 Math.tanh(x)
var r=n("f083"),i=n("4592"),a=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},
/***/"2adb":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* harmony export (binding) */n.d(t,"e",(function(){return u})),
/* harmony export (binding) */n.d(t,"d",(function(){return h})),
/* unused harmony export normalizeAttrs */
/* harmony export (binding) */n.d(t,"a",(function(){return d})),
/* harmony export (binding) */n.d(t,"b",(function(){return p})),
/* harmony export (binding) */n.d(t,"c",(function(){return g})),
/* harmony export (binding) */n.d(t,"f",(function(){return m}));
/* harmony import */var r=n("41b2"),i=n.n(r),a=n("8827"),o=n.n(a),s=n("57ba"),c=n.n(s),l=n("2cd1");
/* harmony import */function u(t){!e||Object({NODE_ENV:"production",VUE_APP_API_BASE_URL:"http://localhost:8081",VUE_APP_NAME:"Loading",VUE_APP_PERMISSIONS_KEY:"admin.permissions",VUE_APP_PUBLIC_PATH:"",VUE_APP_ROLES_KEY:"admin.roles",VUE_APP_ROUTES_KEY:"admin.routes",VUE_APP_SETTING_KEY:"admin.setting",VUE_APP_TBAS_KEY:"admin.tabs",VUE_APP_TBAS_TITLES_KEY:"admin.tabs.titles",VUE_APP_USER_KEY:"admin.user",BASE_URL:""})}function h(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else t[n]=r;return t}),{})}var d=function(){function e(){o()(this,e),this.collection={}}return c()(e,[{key:"clear",value:function(){this.collection={}}},{key:"delete",value:function(e){return delete this.collection[e]}},{key:"get",value:function(e){return this.collection[e]}},{key:"has",value:function(e){return Boolean(this.collection[e])}},{key:"set",value:function(e,t){return this.collection[e]=t,this}},{key:"size",get:function(){return Object.keys(this.collection).length}}]),e}();function p(e,t,n,r){return e(t.tag,r?i()({key:n},r,{attrs:i()({},f(t.attrs),r.attrs)}):{key:n,attrs:i()({},f(t.attrs))},(t.children||[]).map((function(r,i){return p(e,r,n+"-"+t.tag+"-"+i)})))}function g(e){
// choose the second color
return Object(l.generate)(e)[0]}function m(e,t){switch(t){case"fill":return e+"-fill";case"outline":return e+"-o";case"twotone":return e+"-twotone";default:throw new TypeError("Unknown theme type: "+t+", name: "+e)}}
/* WEBPACK VAR INJECTION */}).call(this,n("4362"))
/***/},
/***/"2aef":
/***/function(e,t,n){var r=n("1c2d");e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},
/***/"2b03":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},
/***/"2b10":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.slice` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to slice.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the slice of `array`.
 */
function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}},
/***/"2b17":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return f})),
/* harmony export (binding) */n.d(t,"c",(function(){return g})),
/* harmony export (binding) */n.d(t,"b",(function(){return y})),
/* harmony export (binding) */n.d(t,"d",(function(){return w})),
/* harmony export (binding) */n.d(t,"e",(function(){return C}));
/* unused harmony export retrieveRawAttr */
/* harmony import */var r,i,a,o,s,c=n("6d8b"),l=n("e0d3"),u=n("ec6f"),h=n("07fd"),f=/** @class */function(){function e(e,t){
// let source: Source;
var n=Object(u.e)(e)?e:Object(u.c)(e);
// declare source is Source;
this._source=n;var r=this._data=n.data;
// Typed array. TODO IE10+?
n.sourceFormat===h.g&&(this._offset=0,this._dimSize=t,this._data=r),s(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;s=function(e,i,a){var s=a.sourceFormat,l=a.seriesLayoutBy,u=a.startIndex,f=a.dimensionsDefine,d=o[x(s,l)];if(Object(c.extend)(e,d),s===h.g)e.getItem=t,e.count=r,e.fillStorage=n;else{var p=g(s,l);e.getItem=Object(c.bind)(p,null,i,u,f);var m=y(s,l);e.count=Object(c.bind)(m,null,i,u,f)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=null==s[0]?1/0:s[0],l=null==s[1]?-1/0:s[1],u=t-e,h=n[o],f=0;f<u;f++){
// appendData with TypedArray will always do replace in provider.
var d=i[f*a+o];h[e+f]=d,d<c&&(c=d),d>l&&(l=d)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[h.c+"_"+h.a]={pure:!0,appendData:i},e[h.c+"_"+h.b]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[h.e]={pure:!0,appendData:i},e[h.d]={pure:!0,appendData:function(e){var t=this._data;Object(c.each)(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[h.f]={appendData:i},e[h.g]={persistent:!1,pure:!0,appendData:function(e){this._data=e},
// Clean self if data is already used.
clean:function(){
// PENDING
this._offset+=this.count(),this._data=null}},o=e}(),e}(),d=function(e,t,n,r){return e[r]},p=((r={})[h.c+"_"+h.a]=function(e,t,n,r){return e[r+t]},r[h.c+"_"+h.b]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},r[h.e]=d,r[h.d]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){0;var s=e[n[o].name];a[o]=s?s[r]:null}return a},r[h.f]=d,r);
/* harmony import */function g(e,t){return p[x(e,t)]}var m=function(e,t,n){return e.length},v=((i={})[h.c+"_"+h.a]=function(e,t,n){return Math.max(0,e.length-t)},i[h.c+"_"+h.b]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},i[h.e]=m,i[h.d]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},i[h.f]=m,i);function y(e,t){return v[x(e,t)]}var A=function(e,t,n){return e[t]},b=((a={})[h.c]=A,a[h.e]=function(e,t,n){return e[n]},a[h.d]=A,a[h.f]=function(e,t,n){
// FIXME: In some case (markpoint in geo (geo-map.html)),
// dataItem is {coord: [...]}
var r=Object(l.h)(e);return r instanceof Array?r[t]:r},a[h.g]=A,a);function w(e){return b[e]}function x(e,t){return e===h.c?e+"_"+t:e}
// ??? FIXME can these logic be more neat: getRawValue, getRawDataItem,
// Consider persistent.
// Caution: why use raw value to display on label or tooltip?
// A reason is to avoid format. For example time value we do not know
// how to format is expected. More over, if stack is used, calculated
// value may be 0.91000000001, which have brings trouble to display.
// TODO: consider how to treat null/undefined/NaN when display?
function C(e,t,
// If dimIndex is null/undefined, return OptionDataItem.
// Otherwise, return OptionDataValue.
n){if(e){
// Consider data may be not persistent.
var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return w(a)(r,o,s)}var c=r;return a===h.f&&(c=Object(l.h)(r)),c}}}
/**
 * Compatible with some cases (in pie, map) like:
 * data: [{name: 'xx', value: 5, selected: true}, ...]
 * where only sourceFormat is 'original' and 'objectRows' supported.
 *
 * // TODO
 * Supported detail options in data item when using 'arrayRows'.
 *
 * @param data
 * @param dataIndex
 * @param attr like 'selected'
 */},
/***/"2b3d":
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's replaced to module below
n("4002")},
/***/"2b3e":
/***/function(e,t,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();
/** Detect free variable `self`. */e.exports=a},
/***/"2b76":
/***/function(e,t,n){
// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
var r=n("f083"),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(// eslint-disable-line no-unused-vars
var n,r,a=0,o=0,s=arguments.length,c=0;o<s;)c<(n=i(arguments[o++]))?(a=a*(r=c/n)*r+1,c=n):a+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(a)}})},
/***/"2b89":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"h",(function(){/* binding */return E})),n.d(t,"a",(function(){/* binding */return k})),n.d(t,"b",(function(){/* binding */return S})),n.d(t,"e",(function(){/* binding */return B})),n.d(t,"f",(function(){/* binding */return M})),n.d(t,"g",(function(){/* binding */return T})),n.d(t,"c",(function(){/* binding */return O})),n.d(t,"i",(function(){/* binding */return D})),n.d(t,"d",(function(){/* binding */return P}));
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/typeof.js
var r=n("1098"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("b24f"),c=n.n(s),l=/iPhone/i,u=/iPod/i,h=/iPad/i,f=/\bAndroid(?:.+)Mobile\b/i,d=/Android/i,p=/\bAndroid(?:.+)SD4930UR\b/i,g=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,m=/Windows Phone/i,v=/\bWindows(?:.+)ARM\b/i,y=/BlackBerry/i,A=/BB10/i,b=/Opera Mini/i,w=/\b(CriOS|Chrome)(?:.+)Mobile/i,x=/Mobile(?:.+)Firefox\b/i;// Match 'Mobile' AND 'Firefox'
function C(e,t){return e.test(t)}function _(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");
// Facebook mobile app's integrated browser adds a bunch of strings that
// match everything. Strip it out if it exists.
if(void 0!==n[1]){var r=n;t=c()(r,1)[0]}
// Twitter mobile app's integrated browser on iPad adds a "Twitter for
// iPhone" string. Same probably happens on other tablet platforms.
// This will confuse detection so strip it out if it exists.
if(void 0!==(n=t.split("Twitter"))[1]){var i=n;t=c()(i,1)[0]}var a={apple:{phone:C(l,t)&&!C(m,t),ipod:C(u,t),tablet:!C(l,t)&&C(h,t)&&!C(m,t),device:(C(l,t)||C(u,t)||C(h,t))&&!C(m,t)},amazon:{phone:C(p,t),tablet:!C(p,t)&&C(g,t),device:C(p,t)||C(g,t)},android:{phone:!C(m,t)&&C(p,t)||!C(m,t)&&C(f,t),tablet:!C(m,t)&&!C(p,t)&&!C(f,t)&&(C(g,t)||C(d,t)),device:!C(m,t)&&(C(p,t)||C(g,t)||C(f,t)||C(d,t))||C(/\bokhttp\b/i,t)},windows:{phone:C(m,t),tablet:C(v,t),device:C(m,t)||C(v,t)},other:{blackberry:C(y,t),blackberry10:C(A,t),opera:C(b,t),firefox:C(x,t),chrome:C(w,t),device:C(y,t)||C(A,t)||C(b,t)||C(x,t)||C(w,t)},
// Additional
any:null,phone:null,tablet:null};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,
// excludes 'other' devices and ipods, targeting touchscreen phones
a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}var I=o()({},_(),{isMobile:_});
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-menu/util.js
function E(){}function k(e,t,n){var r=t||"";return void 0===e.key?r+"item_"+n:e.key}function S(e){return e+"-menu-"}function B(e,t){var n=-1;e.forEach((function(e){n++,e&&e.type&&e.type.isMenuItemGroup?e.$slots.default.forEach((function(r){n++,e.componentOptions&&t(r,n)})):e.componentOptions&&t(e,n)}))}function M(e,t,n){e&&!n.find&&e.forEach((function(e){if(!n.find&&(!e.data||!e.data.slot||"default"===e.data.slot)&&e&&e.componentOptions){var r=e.componentOptions.Ctor.options;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;-1!==t.indexOf(e.key)?n.find=!0:e.componentOptions.children&&M(e.componentOptions.children,t,n)}}))}var T={props:["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator",
// the following keys found need to be removed from test regression
"attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],on:["select","deselect","destroy","openChange","itemHover","titleMouseenter","titleMouseleave","titleClick"]},O=function(e){var t=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;return t&&(t=+t.toFixed(6)),t||0},D=function(e,t,n){e&&"object"===i()(e.style)&&(e.style[t]=n)},P=function(){return I.any};
// ref: https://github.com/ant-design/ant-design/issues/14007
// ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
// getBoundingClientRect return the full precision value, which is
// not the same behavior as on chrome. Set the precision to 6 to
// unify their behavior
},
/***/"2ba4":
/***/function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,a=i.apply,o=i.call;
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},
/***/"2c3a":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"2c3e":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("9f7f").MISSED_STICKY,a=n("c6b6"),o=n("edd0"),s=n("69f3").get,c=RegExp.prototype,l=TypeError;
// `RegExp.prototype.sticky` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky
r&&i&&o(c,"sticky",{configurable:!0,get:function(){if(this!==c){
// We can't use InternalStateModule.getterFor because
// we don't add metadata for regexps created by a literal.
if("RegExp"===a(this))return!!s(this).sticky;throw new l("Incompatible receiver, RegExp required")}}})
/***/},
/***/"2c66":
/***/function(e,t,n){var r=n("d612"),i=n("8db3"),a=n("5edf"),o=n("c584"),s=n("750a"),c=n("ac41");
/** Used as the size to enable large array optimizations. */e.exports=
/**
 * The base implementation of `_.uniqBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */
function(e,t,n){var l=-1,u=i,h=e.length,f=!0,d=[],p=d;if(n)f=!1,u=a;else if(h>=200){var g=t?null:s(e);if(g)return c(g);f=!1,u=o,p=new r}else p=t?[]:d;e:for(;++l<h;){var m=e[l],v=t?t(m):m;if(m=n||0!==m?m:0,f&&v==v){for(var y=p.length;y--;)if(p[y]===v)continue e;t&&p.push(v),d.push(m)}else u(p,v,n)||(p!==d&&p.push(v),d.push(m))}return d}},
/***/"2c80":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){function i(t){var r=new a.default(t);n.call(e,r)}if(e.addEventListener){var o=(s=!1,"object"==typeof r?s=r.capture||!1:"boolean"==typeof r&&(s=r),e.addEventListener(t,i,r||!1),{v:{remove:function(){e.removeEventListener(t,i,s)}}});if("object"==typeof o)return o.v}else if(e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}};var s};var r,i=n("134b"),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},
/***/"2ca0":
/***/function(e,t,n){"use strict";var r,i=n("23e7"),a=n("4625"),o=n("06cf").f,s=n("50c4"),c=n("577e"),l=n("5a34"),u=n("1d80"),h=n("ab13"),f=n("c430"),d=a("".slice),p=Math.min,g=h("startsWith");
// `String.prototype.startsWith` method
// https://tc39.es/ecma262/#sec-string.prototype.startswith
i({target:"String",proto:!0,forced:!!(f||g||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!g},{startsWith:function(e/* , position = 0 */){var t=c(u(this));l(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return d(t,n,n+r.length)===r}})},
/***/"2ccc":
/***/function(e,t,n){n("1b1e")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/"2cd1":
/***/function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("a0e0"));t.generate=i.default;var a={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"};t.presetPrimaryColors=a;var o={};t.presetPalettes=o,Object.keys(a).forEach((function(e){o[e]=i.default(a[e]),o[e].primary=o[e][5]}));var s=o.red;t.red=s;var c=o.volcano;t.volcano=c;var l=o.gold;t.gold=l;var u=o.orange;t.orange=u;var h=o.yellow;t.yellow=h;var f=o.lime;t.lime=f;var d=o.green;t.green=d;var p=o.cyan;t.cyan=p;var g=o.blue;t.blue=g;var m=o.geekblue;t.geekblue=m;var v=o.purple;t.purple=v;var y=o.magenta;t.magenta=y;var A=o.grey;t.grey=A},
/***/"2ce8":
/***/function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e};
/***/},
/***/"2cf4":
/***/function(e,t,n){"use strict";
/* unused harmony export debugMode */
/* harmony export (binding) */n.d(t,"e",(function(){return i})),
/* harmony export (binding) */n.d(t,"b",(function(){return a})),
/* harmony export (binding) */n.d(t,"a",(function(){return o})),
/* harmony export (binding) */n.d(t,"d",(function(){return s})),
/* harmony export (binding) */n.d(t,"c",(function(){return c}));
/* harmony import */var r=1;n("22d1").a.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=r,a=.4,o="#333",s="#ccc",c="#eee"},
/***/"2cf49":
/***/function(e,t,n){"use strict";var r,i,a,o,s=n("cfe9"),c=n("2ba4"),l=n("0366"),u=n("1626"),h=n("1a2d"),f=n("d039"),d=n("1be4"),p=n("f36a"),g=n("cc12"),m=n("d6d6"),v=n("52c8"),y=n("9adc"),A=s.setImmediate,b=s.clearImmediate,w=s.process,x=s.Dispatch,C=s.Function,_=s.MessageChannel,I=s.String,E=0,k={},S="onreadystatechange";f((function(){
// Deno throws a ReferenceError on `location` access without `--location` flag
r=s.location}));var B=function(e){if(h(k,e)){var t=k[e];delete k[e],t()}},M=function(e){return function(){B(e)}},T=function(e){B(e.data)},O=function(e){
// old engines have not location.origin
s.postMessage(I(e),r.protocol+"//"+r.host)};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
A&&b||(A=function(e){m(arguments.length,1);var t=u(e)?e:C(e),n=p(arguments,1);return k[++E]=function(){c(t,void 0,n)},i(E),E},b=function(e){delete k[e]},
// Node.js 0.8-
y?i=function(e){w.nextTick(M(e))}:x&&x.now?i=function(e){x.now(M(e))}:_&&!v?(o=(a=new _).port2,a.port1.onmessage=T,i=l(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(i=O,s.addEventListener("message",T,!1)):i=S in g("script")?function(e){d.appendChild(g("script"))[S]=function(){d.removeChild(this),B(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:A,clear:b}},
/***/"2cf8":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */
// https://github.com/moment/moment/issues/3650
function r(e){return e.default||e}
/***/n.d(t,"a",(function(){return r}))},
/***/"2d46":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t,r,i){e.exports=function(e){"use strict";var n=Object.defineProperty,a=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>a(e,o(t)),d=(e,t,n)=>new Promise(((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}));void 0===window.setImmediate&&(window.setImmediate=function(e,...t){setTimeout((()=>e(t)))});var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var v,y={exports:{}};
/*!

    JSZip v3.10.1 - A JavaScript class for generating and reading zip files
    <http://stuartk.com/jszip>

    (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
    Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

    JSZip uses the library pako released under the MIT license :
    https://github.com/nodeca/pako/blob/main/LICENSE
    */v=function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c="function"==typeof m&&m;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,(function(e){return i(t[o][1][e]||e)}),u,u.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof m&&m,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],h=0,f=e.length,d=f,p="string"!==r.getTypeOf(e);h<e.length;)d=f-h,i=p?(t=e[h++],n=h<f?e[h++]:0,h<f?e[h++]:0):(t=e.charCodeAt(h++),n=h<f?e.charCodeAt(h++):0,h<f?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<d?(15&n)<<2|i>>6:64,l=2<d?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var f,d=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&d--,e.charAt(e.length-2)===a.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|d):new Array(0|d);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,64!==s&&(f[u++]=n),64!==c&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function c(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var h,f,d=e.file,p=e.compression,g=u!==s.utf8encode,m=a.transformTo("string",u(d.name)),v=a.transformTo("string",s.utf8encode(d.name)),y=d.comment,A=a.transformTo("string",u(y)),b=a.transformTo("string",s.utf8encode(y)),w=v.length!==d.name.length,x=b.length!==y.length,C="",_="",I="",E=d.dir,k=d.date,S={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(S.crc32=e.crc32,S.compressedSize=e.compressedSize,S.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),g||!w&&!x||(B|=2048);var M,T,O,D=0,P=0;E&&(D|=16),"UNIX"===o?(P=798,D|=(M=d.unixPermissions,T=E,O=M,M||(O=T?16893:33204),(65535&O)<<16)):(P=20,D|=function(e){return 63&(e||0)}(d.dosPermissions)),h=k.getUTCHours(),h<<=6,h|=k.getUTCMinutes(),h<<=5,h|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),w&&(_=r(1,1)+r(c(m),4)+v,C+="up"+r(_.length,2)+_),x&&(I=r(1,1)+r(c(A),4)+b,C+="uc"+r(I.length,2)+I);var L="";return L+="\n\0",L+=r(B,2),L+=p.magic,L+=r(h,2),L+=r(f,2),L+=r(S.crc32,4),L+=r(S.compressedSize,4),L+=r(S.uncompressedSize,4),L+=r(m.length,2),L+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+L+m+C,dirRecord:l.CENTRAL_FILE_HEADER+r(P,2)+L+r(A.length,2)+"\0\0\0\0"+r(D,4)+r(i,4)+m+C+A}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),l=e("../signature");function u(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,a=i(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(a.dirRecord),n)this.push({data:(t=e,l.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:a.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,i,o,s,c,u,h=this.bytesWritten-e,f=(n=this.dirRecords.length,i=h,o=e,s=this.zipComment,c=this.encodeFileName,u=a.transformTo("string",c(s)),l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(i,4)+r(o,4)+r(u.length,2)+u);this.push({data:f,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:void 0!==r,newBufferFrom:function(e,t){if(r.from&&r.from!==Uint8Array.from)return r.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new r(e,t)},allocBuffer:function(e){if(r.alloc)return r.alloc(e);var t=new r(e);return t.fill(0),t},isBuffer:function(e){return r.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(t instanceof l&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new d(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),h=e("./generate"),f=e("./nodejsUtils"),d=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:c.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new o("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var i=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),c=e("../support"),l=e("../external"),u=null;if(c.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t){return new l.Promise((function(n,a){var o=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],a(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,a=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(o),n=0;n<t.length;n++)a.set(t[n],i),i+=t[n].length;return a;case"nodebuffer":return r.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,o),u);n(e)}catch(e){a(e)}o=[]})).resume()}))}function f(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new a(r)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return h(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==r,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),n.blob=0===a.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,c=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u,h=n.getTypeOf(t);return h?("arraybuffer"===h?t=n.transformTo("uint8array",t):"string"===h&&(l?t=i.decode(t):a&&!0!==s&&(t=c(u=t,r.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),c=e("./compressions"),l=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<l.length;h++)r.prototype[l[h]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==p?p:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p((function(){t(i,r)}));"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))}),(function(e){r||(r=!0,a.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n,r=e.length,o=!1;if(!r)return this.resolve([]);for(var s=-1,c=new this(i);++s<r;)n=e[s],t.resolve(n).then((function(e){o||(o=!0,a.resolve(c,e))}),(function(e){o||(o=!0,a.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,h=0,f=8;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}d.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&n!==l)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=d,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(e,t){var n,s,c,l,h,f,d=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?d.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(f="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&n!==o.Z_STREAM_END&&(0!==d.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(d.output,d.next_out),l=d.next_out-c,h=a.buf2string(d.output,c),d.next_out=l,d.avail_out=p-l,l&&i.arraySet(d.output,d.output,c,l,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(m=!0)}while((0<d.avail_in||0===d.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(d.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),c=e("./messages"),l=0,u=4,h=0,f=-2,d=-1,p=4,g=2,m=8,v=9,y=286,A=30,b=19,w=2*y+1,x=15,C=3,_=258,I=_+C+1,E=42,k=113,S=1,B=2,M=3,T=4;function O(e,t){return e.msg=c[t],t}function D(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function L(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Q(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,L(e.strm)}function R(e,t){e.pending_buf[e.pending++]=t}function j(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function N(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-I?e.strstart-(e.w_size-I):0,l=e.window,u=e.w_mask,h=e.prev,f=e.strstart+_,d=l[a+o-1],p=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===p&&l[n+o-1]===d&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=_-(f-a),a=f-_,o<r){if(e.match_start=t,s<=(o=r))break;d=l[a+o-1],p=l[a+o]}}}while((t=h[t&u])>c&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,n,r,a,c,l,u,h,f,d,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-I)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,h=e.strstart+e.lookahead,d=void 0,(f=a)<(d=l.avail_in)&&(d=f),n=0===d?0:(l.avail_in-=d,i.arraySet(u,l.input,l.next_in,d,h),1===l.state.wrap?l.adler=o(l.adler,u,d,h):2===l.state.wrap&&(l.adler=s(l.adler,u,d,h)),l.next_in+=d,l.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+C-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<I&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<I){if(F(e),e.lookahead<I&&t===l)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-I&&(e.match_length=N(e,n)),e.match_length>=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}function H(e,t){for(var n,r,i;;){if(e.lookahead<I){if(F(e),e.lookahead<I&&t===l)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-I&&(e.match_length=N(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(Q(e,!1),0===e.strm.avail_out))return S}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&Q(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return S}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}function U(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*A+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:k,e.adler=2===t.wrap?0:1,t.last_flush=l,a._tr_init(t),h):O(e,f)}function W(e){var t,n=V(e);return n===h&&((t=e.state).window_size=2*t.w_size,P(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=C-1,t.match_available=0,t.ins_h=0),n}function q(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===d&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||v<a||n!==m||r<8||15<r||t<0||9<t||o<0||p<o)return O(e,f);8===r&&(r=9);var c=new G;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+C-1)/C),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,W(e)}r=[new U(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===l)return S;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Q(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-I&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):(e.strstart>e.block_start&&(Q(e,!1),e.strm.avail_out),S)})),new U(4,4,8,4,z),new U(4,5,16,8,z),new U(4,6,32,32,z),new U(4,4,16,16,H),new U(8,16,32,32,H),new U(8,16,128,128,H),new U(8,32,128,256,H),new U(32,128,258,1024,H),new U(32,258,258,4096,H)],n.deflateInit=function(e,t){return q(e,t,m,15,8,0)},n.deflateInit2=q,n.deflateReset=W,n.deflateResetKeep=V,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,h):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?O(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return O(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E)if(2===i.wrap)e.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,3),i.status=k);else{var d=m+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=k,j(i,d),0!==i.strstart&&(j(i,e.adler>>>16),j(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&L(e),i.pending+2<=i.pending_buf_size&&(R(i,255&e.adler),R(i,e.adler>>8&255),e.adler=0,i.status=k)):i.status=k),0!==i.pending){if(L(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==l&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===l)return S;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=_){if(F(e),e.lookahead<=_&&t===l)return S;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+_;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=_-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}(i,t):r[i.level].func(i,t);if(p!==M&&p!==T||(i.status=666),p===S||p===M)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===B&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),L(e),0===e.avail_out))return i.last_flush=-1,h}return t!==u?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&e.adler),R(i,e.adler>>8&255),R(i,e.adler>>16&255),R(i,e.adler>>24&255),R(i,255&e.total_in),R(i,e.total_in>>8&255),R(i,e.total_in>>16&255),R(i,e.total_in>>24&255)):(j(i,e.adler>>>16),j(i,65535&e.adler)),L(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?O(e,f):(e.state=null,t===k?O(e,-3):h):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,d,p=t.length;if(!e||!e.state||2===(s=(n=e.state).wrap)||1===s&&n.status!==E||n.lookahead)return f;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=C-1,F(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,a,o,s,c,l,u,h,f,d,p,g,m,v,y,A,b,w,x,C,_,I,E;n=e.state,r=e.next_in,I=e.input,i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(d+=I[r++]<<p,p+=8,d+=I[r++]<<p,p+=8),A=g[d&v];t:for(;;){if(d>>>=b=A>>>24,p-=b,0==(b=A>>>16&255))E[a++]=65535&A;else{if(!(16&b)){if(!(64&b)){A=g[(65535&A)+(d&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&A,(b&=15)&&(p<b&&(d+=I[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=I[r++]<<p,p+=8,d+=I[r++]<<p,p+=8),A=m[d&y];n:for(;;){if(d>>>=b=A>>>24,p-=b,!(16&(b=A>>>16&255))){if(!(64&b)){A=m[(65535&A)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&A,p<(b&=15)&&(d+=I[r++]<<p,(p+=8)<b&&(d+=I[r++]<<p,p+=8)),c<(x+=d&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=b,p-=b,(b=a-o)<x){if(u<(b=x-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=f,(C=0)===h){if(C+=l-b,b<w){for(w-=b;E[a++]=f[C++],--b;);C=a-x,_=E}}else if(h<b){if(C+=l+h-b,(b-=h)<w){for(w-=b;E[a++]=f[C++],--b;);if(C=0,h<w){for(w-=b=h;E[a++]=f[C++],--b;);C=a-x,_=E}}}else if(C+=h-b,b<w){for(w-=b;E[a++]=f[C++],--b;);C=a-x,_=E}for(;2<w;)E[a++]=_[C++],E[a++]=_[C++],E[a++]=_[C++],w-=3;w&&(E[a++]=_[C++],1<w&&(E[a++]=_[C++]))}else{for(C=a-x;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(w-=3););w&&(E[a++]=E[C++],1<w&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=d,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=1,l=2,u=0,h=-2,f=1,d=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(d),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,u):h}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):h}function A(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):h}function b(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=A(e,t))!==u&&(e.state=null),n):h}var w,x,C=!0;function _(e){if(C){var t;for(w=new r.Buf32(512),x=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,x,0,e.work,{bits:5}),C=!1}e.lencode=w,e.lenbits=9,e.distcode=x,e.distbits=5}function I(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=y,n.inflateReset2=A,n.inflateResetKeep=v,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,d,p,m,v,y,A,b,w,x,C,E,k,S,B,M,T,O,D,P,L,Q,R,j,N=0,F=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,A=e.avail_out,m=e.next_in,d=e.input,y=e.avail_in,b=n.hold,w=n.bits,x=y,C=A,Q=u;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(2&n.wrap&&35615===b){F[n.check=0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(w-=4,L=8+(15&(b>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<L,e.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,F[2]=b>>>16&255,F[3]=b>>>24&255,n.check=a(n.check,F,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(E=n.length)&&(E=y),E&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,m,E,L)),512&n.flags&&(n.check=a(n.check,d,E,m)),y-=E,m+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(E=0;L=d[m+E++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L)),L&&E<y;);if(512&n.flags&&(n.check=a(n.check,d,E,m)),y-=E,m+=E,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;for(E=0;L=d[m+E++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L)),L&&E<y;);if(512&n.flags&&(n.check=a(n.check,d,E,m)),y-=E,m+=E,L)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}e.adler=n.check=g(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=A,e.next_in=m,e.avail_in=y,n.hold=b,n.bits=w,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(_(n),n.mode=20,6!==t)break;b>>>=2,w-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(y<E&&(E=y),A<E&&(E=A),0===E)break e;r.arraySet(p,d,m,E,v),y-=E,m+=E,A-=E,v+=E,n.length-=E;break}n.mode=12;break;case 17:for(;w<14;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.lens[z[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},Q=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,Q){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;M=(N=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,T=65535&N,!((B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(T<16)b>>>=B,w-=B,n.lens[n.have++]=T;else{if(16===T){for(j=B+2;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(b>>>=B,w-=B,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}L=n.lens[n.have-1],E=3+(3&b),b>>>=2,w-=2}else if(17===T){for(j=B+3;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}w-=B,L=0,E=3+(7&(b>>>=B)),b>>>=3,w-=3}else{for(j=B+7;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}w-=B,L=0,E=11+(127&(b>>>=B)),b>>>=7,w-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;E--;)n.lens[n.have++]=L}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},Q=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,Q){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},Q=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,Q){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=A){e.next_out=v,e.avail_out=A,e.next_in=m,e.avail_in=y,n.hold=b,n.bits=w,o(e,C),v=e.next_out,p=e.output,A=e.avail_out,m=e.next_in,d=e.input,y=e.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;M=(N=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,T=65535&N,!((B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(M&&!(240&M)){for(O=B,D=M,P=T;M=(N=n.lencode[P+((b&(1<<O+D)-1)>>O)])>>>16&255,T=65535&N,!(O+(B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}b>>>=O,w-=O,n.back+=O}if(b>>>=B,w-=B,n.back+=B,n.length=T,0===M){n.mode=26;break}if(32&M){n.back=-1,n.mode=12;break}if(64&M){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&M,n.mode=22;case 22:if(n.extra){for(j=n.extra;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;M=(N=n.distcode[b&(1<<n.distbits)-1])>>>16&255,T=65535&N,!((B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(!(240&M)){for(O=B,D=M,P=T;M=(N=n.distcode[P+((b&(1<<O+D)-1)>>O)])>>>16&255,T=65535&N,!(O+(B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}b>>>=O,w-=O,n.back+=O}if(b>>>=B,w-=B,n.back+=B,64&M){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&M,n.mode=24;case 24:if(n.extra){for(j=n.extra;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===A)break e;if(E=C-A,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}k=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),S=n.window}else S=p,k=v-n.offset,E=n.length;for(A<E&&(E=A),A-=E,n.length-=E;p[v++]=S[k++],--E;);0===n.length&&(n.mode=21);break;case 26:if(0===A)break e;p[v++]=n.length,A--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===y)break e;y--,b|=d[m++]<<w,w+=8}if(C-=A,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?a(n.check,p,C,v-C):i(n.check,p,C,v-C)),C=A,(n.flags?b:g(b))!==n.check){e.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;default:return h}return e.next_out=v,e.avail_out=A,e.next_in=m,e.avail_in=y,n.hold=b,n.bits=w,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&I(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,C-=e.avail_out,e.total_in+=x,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?a(n.check,p,C,e.next_out-C):i(n.check,p,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===C||4===t)&&Q===u&&(Q=-5),Q)},n.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):h},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,t,r,0)!==n.check?-3:I(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,h,f){var d,p,g,m,v,y,A,b,w,x=f.bits,C=0,_=0,I=0,E=0,k=0,S=0,B=0,M=0,T=0,O=0,D=null,P=0,L=new r.Buf16(16),Q=new r.Buf16(16),R=null,j=0;for(C=0;C<=15;C++)L[C]=0;for(_=0;_<c;_++)L[t[n+_]]++;for(k=x,E=15;1<=E&&0===L[E];E--);if(E<k&&(k=E),0===E)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(I=1;I<E&&0===L[I];I++);for(k<I&&(k=I),C=M=1;C<=15;C++)if(M<<=1,(M-=L[C])<0)return-1;if(0<M&&(0===e||1!==E))return-1;for(Q[1]=0,C=1;C<15;C++)Q[C+1]=Q[C]+L[C];for(_=0;_<c;_++)0!==t[n+_]&&(h[Q[t[n+_]]++]=_);if(y=0===e?(D=R=h,19):1===e?(D=i,P-=257,R=a,j-=257,256):(D=o,R=s,-1),C=I,v=u,B=_=O=0,g=-1,m=(T=1<<(S=k))-1,1===e&&852<T||2===e&&592<T)return 1;for(;;){for(A=C-B,w=h[_]<y?(b=0,h[_]):h[_]>y?(b=R[j+h[_]],D[P+h[_]]):(b=96,0),d=1<<C-B,I=p=1<<S;l[v+(O>>B)+(p-=d)]=A<<24|b<<16|w,0!==p;);for(d=1<<C-1;O&d;)d>>=1;if(0!==d?(O&=d-1,O+=d):O=0,_++,0==--L[C]){if(C===E)break;C=t[n+h[_]]}if(k<C&&(O&m)!==g){for(0===B&&(B=k),v+=I,M=1<<(S=C-B);S+B<E&&!((M-=L[S+B])<=0);)S++,M<<=1;if(T+=1<<S,1===e&&852<T||2===e&&592<T)return 1;l[g=O&m]=k<<24|S<<16|v-u}}return 0!==O&&(l[v+O]=C-B<<24|64<<16),f.bits=k,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,h=30,f=19,d=2*u+1,p=15,g=16,m=7,v=256,y=16,A=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(u+2));o(I);var E=new Array(2*h);o(E);var k=new Array(512);o(k);var S=new Array(256);o(S);var B=new Array(c);o(B);var M,T,O,D=new Array(h);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Q(e){return e<256?k[e]:k[256+(e>>>7)]}function R(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,R(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function N(e,t,n){j(e,n[2*t],n[2*t+1])}function F(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(e,t,n){var r,i,a=new Array(p+1),o=0;for(r=1;r<=p;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function H(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function U(e){8<e.bi_valid?R(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function V(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&G(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!G(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function W(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?N(e,i,t):(N(e,(a=S[i])+l+1,t),0!==(o=w[a])&&j(e,i-=B[a],o),N(e,a=Q(--r),n),0!==(o=x[a])&&j(e,r-=D[a],o)),s<e.last_lit;);N(e,v,t)}function q(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=d,n=0;n<c;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)V(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,V(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<d;n++)m<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=m,v++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,g<=r&&(o=f[r-g]),s=c[2*r],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==v){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),z(a,l,e.bl_count)}function Y(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*A]++:e.bl_tree[2*b]++,a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function K(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;N(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(N(e,i,e.bl_tree),s--),N(e,y,e.bl_tree),j(e,s-3,2)):s<=10?(N(e,A,e.bl_tree),j(e,s-3,3)):(N(e,b,e.bl_tree),j(e,s-11,7));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(D);var $=!1;function J(e,t,n,i){var a,o,c,l;j(e,(s<<1)+(i?1:0),3),o=t,c=n,l=!0,U(a=e),l&&(R(a,c),R(a,~c)),r.arraySet(a.pending_buf,a.window,o,c,a.pending),a.pending+=c}n._tr_init=function(e){$||(function(){var e,t,n,r,i,a=new Array(p+1);for(r=n=0;r<c-1;r++)for(B[r]=n,e=0;e<1<<w[r];e++)S[n++]=r;for(S[n-1]=r,r=i=0;r<16;r++)for(D[r]=i,e=0;e<1<<x[r];e++)k[i++]=r;for(i>>=7;r<h;r++)for(D[r]=i<<7,e=0;e<1<<x[r]-7;e++)k[256+i++]=r;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)I[2*e+1]=8,e++,a[8]++;for(;e<=255;)I[2*e+1]=9,e++,a[9]++;for(;e<=279;)I[2*e+1]=7,e++,a[7]++;for(;e<=287;)I[2*e+1]=8,e++,a[8]++;for(z(I,u+1,a),e=0;e<h;e++)E[2*e+1]=5,E[2*e]=F(e,5);M=new P(I,w,l+1,u,p),T=new P(E,x,0,h,p),O=new P(new Array(0),C,0,f,m)}(),$=!0),e.l_desc=new L(e.dyn_ltree,M),e.d_desc=new L(e.dyn_dtree,T),e.bl_desc=new L(e.bl_tree,O),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=J,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),q(e,e.l_desc),q(e,e.d_desc),c=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),q(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==t?J(e,t,n,r):4===e.strategy||s===o?(j(e,2+(r?1:0),3),W(e,I,E)):(j(e,4+(r?1:0),3),function(e,t,n,r){var i;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),i=0;i<r;i++)j(e,e.bl_tree[2*_[i]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),W(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&U(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(S[n]+l+1)]++,e.dyn_dtree[2*Q(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;j(e,2,3),N(e,v,I),16===(t=e).bi_valid?(R(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){if(!e.setImmediate){var n,r,a,o,s=1,c={},l=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,n="[object process]"==={}.toString.call(e.process)?function(e){i.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[s]=i,n(s),s++},h.clearImmediate=f}function f(e){delete c[e]}function d(e){if(l)setTimeout(d,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==p?p:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},y.exports=v();const A=g(y.exports);var b;function w(e,t){return t.elements(e).map((e=>({id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")})))}!function(e){e.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",e.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",e.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",e.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",e.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",e.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",e.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",e.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",e.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",e.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",e.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",e.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",e.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",e.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",e.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",e.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",e.Comments="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",e.CommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended"}(b||(b={}));const x={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},C={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}};function _(e,t=C.Dxa){return null==e||/.+(p[xt]|[%])$/.test(e)?e:`${(parseInt(e)*t.mul).toFixed(2)}${t.unit}`}function I(e,t=!1){switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}}function E(e,t,n){if(e.namespaceURI!=x.wordml)return!1;switch(e.localName){case"color":t.color=n.attr(e,"val");break;case"sz":t.fontSize=n.lengthAttr(e,"val",C.FontSize);break;default:return!1}return!0}function k(e,t=!1){t&&(e=e.replace(/<[?].*[?]>/,"")),e=B(e);const n=(new DOMParser).parseFromString(e,"application/xml"),r=S(n);if(r)throw new Error(r);return n}function S(e){var t;return null==(t=e.getElementsByTagName("parsererror")[0])?void 0:t.textContent}function B(e){return 65279===e.charCodeAt(0)?e.substring(1):e}function M(e){return(new XMLSerializer).serializeToString(e)}class T{elements(e,t=null){const n=[];for(let r=0,i=e.childNodes.length;r<i;r++){let i=e.childNodes.item(r);1==i.nodeType&&(null==t||i.localName==t)&&n.push(i)}return n}element(e,t){for(let n=0,r=e.childNodes.length;n<r;n++){let r=e.childNodes.item(n);if(1==r.nodeType&&r.localName==t)return r}return null}elementAttr(e,t,n){var r=this.element(e,t);return r?this.attr(r,n):void 0}attrs(e){return Array.from(e.attributes)}attr(e,t){for(let n=0,r=e.attributes.length;n<r;n++){let r=e.attributes.item(n);if(r.localName==t)return r.value}return null}intAttr(e,t,n=null){var r=this.attr(e,t);return r?parseInt(r):n}hexAttr(e,t,n=null){var r=this.attr(e,t);return r?parseInt(r,16):n}floatAttr(e,t,n=null){var r=this.attr(e,t);return r?parseFloat(r):n}boolAttr(e,t,n=null){return I(this.attr(e,t),n)}lengthAttr(e,t,n=C.Dxa){return _(this.attr(e,t),n)}}const O=new T;class D{constructor(e,t){this._package=e,this.path=t}load(){return d(this,null,(function*(){this.rels=yield this._package.loadRelationships(this.path);const e=yield this._package.load(this.path),t=this._package.parseXmlDocument(e);this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild)}))}save(){this._package.update(this.path,M(this._xmlDocument))}parseXml(e){}}const P={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function L(e,t){return t.elements(e).map((e=>Q(e,t)))}function Q(e,t){let n={name:t.attr(e,"name"),embedFontRefs:[]};for(let r of t.elements(e))switch(r.localName){case"family":n.family=t.attr(r,"val");break;case"altName":n.altName=t.attr(r,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":n.embedFontRefs.push(R(r,t))}return n}function R(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:P[e.localName]}}class j extends D{parseXml(e){this.fonts=L(e,this._package.xmlParser)}}function N(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function F(e){let t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]}function z(e,t){try{const n="http://docx/";return new URL(e,n+t).toString().substring(n.length)}catch(n){return`${t}${e}`}}function H(e,t){return e.reduce(((e,n)=>(e[t(n)]=n,e)),{})}function U(e){return new Promise(((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>n(),r.readAsDataURL(e)}))}function G(e){return e&&"object"==typeof e&&!Array.isArray(e)}function V(e){return"string"==typeof e||e instanceof String}function W(e,...t){var n;if(!t.length)return e;const r=t.shift();if(G(e)&&G(r))for(const t in r)G(r[t])?W(null!=(n=e[t])?n:e[t]={},r[t]):e[t]=r[t];return W(e,...t)}function q(e){return Array.isArray(e)?e:[e]}class Y{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new T}get(e){var t;const n=K(e);return null!=(t=this._zip.files[n])?t:this._zip.files[n.replace(/\//g,"\\")]}update(e,t){this._zip.file(e,t)}static load(e,t){return d(this,null,(function*(){const n=yield A.loadAsync(e);return new Y(n,t)}))}save(e="blob"){return this._zip.generateAsync({type:e})}load(e,t="string"){var n,r;return null!=(r=null==(n=this.get(e))?void 0:n.async(t))?r:Promise.resolve(null)}loadRelationships(e=null){return d(this,null,(function*(){let t="_rels/.rels";if(null!=e){const[n,r]=F(e);t=`${n}_rels/${r}.rels`}const n=yield this.load(t);return n?w(this.parseXmlDocument(n).firstElementChild,this.xmlParser):null}))}parseXmlDocument(e){return k(e,this.options.trimXmlDeclaration)}}function K(e){return e.startsWith("/")?e.substr(1):e}class $ extends D{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}}function J(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",C.Border),offset:t.lengthAttr(e,"space",C.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}function X(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case"left":n.left=J(r,t);break;case"top":n.top=J(r,t);break;case"right":n.right=J(r,t);break;case"bottom":n.bottom=J(r,t)}return n}var Z,ee;function te(e,t=O){var n,r,i={};for(let a of t.elements(e))switch(a.localName){case"pgSz":i.pageSize={width:t.lengthAttr(a,"w"),height:t.lengthAttr(a,"h"),orientation:t.attr(a,"orient")};break;case"type":i.type=t.attr(a,"val");break;case"pgMar":i.pageMargins={left:t.lengthAttr(a,"left"),right:t.lengthAttr(a,"right"),top:t.lengthAttr(a,"top"),bottom:t.lengthAttr(a,"bottom"),header:t.lengthAttr(a,"header"),footer:t.lengthAttr(a,"footer"),gutter:t.lengthAttr(a,"gutter")};break;case"cols":i.columns=ne(a,t);break;case"headerReference":(null!=(n=i.headerRefs)?n:i.headerRefs=[]).push(ie(a,t));break;case"footerReference":(null!=(r=i.footerRefs)?r:i.footerRefs=[]).push(ie(a,t));break;case"titlePg":i.titlePage=t.boolAttr(a,"val",!0);break;case"pgBorders":i.pageBorders=X(a,t);break;case"pgNumType":i.pageNumber=re(a,t)}return i}function ne(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map((e=>({width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")})))}}function re(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}function ie(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}function ae(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}function oe(e,t){let n={};for(let r of t.elements(e))se(r,n,t);return n}function se(e,t,n){return!!E(e,t,n)}function ce(e,t){let n={};for(let r of t.elements(e))le(r,n,t);return n}function le(e,t,n){if(e.namespaceURI!=x.wordml)return!1;if(E(e,t,n))return!0;switch(e.localName){case"tabs":t.tabs=ue(e,n);break;case"sectPr":t.sectionProps=te(e,n);break;case"numPr":t.numbering=he(e,n);break;case"spacing":return t.lineSpacing=ae(e,n),!1;case"textAlignment":return t.textAlignment=n.attr(e,"val"),!1;case"keepLines":t.keepLines=n.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=n.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=n.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=n.intAttr(e,"val");break;case"pStyle":t.styleName=n.attr(e,"val");break;case"rPr":t.runProps=oe(e,n);break;default:return!1}return!0}function ue(e,t){return t.elements(e,"tab").map((e=>({position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")})))}function he(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case"numId":n.id=t.attr(r,"val");break;case"ilvl":n.level=t.intAttr(r,"val")}return n}function fe(e,t){let n={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let r of t.elements(e))switch(r.localName){case"num":n.numberings.push(de(r,t));break;case"abstractNum":n.abstractNumberings.push(pe(r,t));break;case"numPicBullet":n.bulletPictures.push(ve(r,t))}return n}function de(e,t){let n={id:t.attr(e,"numId"),overrides:[]};for(let r of t.elements(e))switch(r.localName){case"abstractNumId":n.abstractId=t.attr(r,"val");break;case"lvlOverride":n.overrides.push(me(r,t))}return n}function pe(e,t){let n={id:t.attr(e,"abstractNumId"),levels:[]};for(let r of t.elements(e))switch(r.localName){case"name":n.name=t.attr(r,"val");break;case"multiLevelType":n.multiLevelType=t.attr(r,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(r,"val");break;case"styleLink":n.styleLink=t.attr(r,"val");break;case"lvl":n.levels.push(ge(r,t))}return n}function ge(e,t){let n={level:t.intAttr(e,"ilvl")};for(let r of t.elements(e))switch(r.localName){case"start":n.start=t.attr(r,"val");break;case"lvlRestart":n.restart=t.intAttr(r,"val");break;case"numFmt":n.format=t.attr(r,"val");break;case"lvlText":n.text=t.attr(r,"val");break;case"lvlJc":n.justification=t.attr(r,"val");break;case"lvlPicBulletId":n.bulletPictureId=t.attr(r,"val");break;case"pStyle":n.paragraphStyle=t.attr(r,"val");break;case"pPr":n.paragraphProps=ce(r,t);break;case"rPr":n.runProps=oe(r,t)}return n}function me(e,t){let n={level:t.intAttr(e,"ilvl")};for(let r of t.elements(e))switch(r.localName){case"startOverride":n.start=t.intAttr(r,"val");break;case"lvl":n.numberingLevel=ge(r,t)}return n}function ve(e,t){var n=t.element(e,"pict"),r=n&&t.element(n,"shape"),i=r&&t.element(r,"imagedata");return i?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(i,"id"),style:t.attr(r,"style")}:null}!function(e){e.Continuous="continuous",e.NextPage="nextPage",e.NextColumn="nextColumn",e.EvenPage="evenPage",e.OddPage="oddPage"}(Z||(Z={}));class ye extends D{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){Object.assign(this,fe(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}class Ae extends D{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}}!function(e){e.Document="document",e.Paragraph="paragraph",e.Run="run",e.Break="break",e.NoBreakHyphen="noBreakHyphen",e.Table="table",e.Row="row",e.Cell="cell",e.Hyperlink="hyperlink",e.SmartTag="smartTag",e.Drawing="drawing",e.Image="image",e.Text="text",e.Tab="tab",e.Symbol="symbol",e.BookmarkStart="bookmarkStart",e.BookmarkEnd="bookmarkEnd",e.Footer="footer",e.Header="header",e.FootnoteReference="footnoteReference",e.EndnoteReference="endnoteReference",e.Footnote="footnote",e.Endnote="endnote",e.SimpleField="simpleField",e.ComplexField="complexField",e.Instruction="instruction",e.VmlPicture="vmlPicture",e.MmlMath="mmlMath",e.MmlMathParagraph="mmlMathParagraph",e.MmlFraction="mmlFraction",e.MmlFunction="mmlFunction",e.MmlFunctionName="mmlFunctionName",e.MmlNumerator="mmlNumerator",e.MmlDenominator="mmlDenominator",e.MmlRadical="mmlRadical",e.MmlBase="mmlBase",e.MmlDegree="mmlDegree",e.MmlSuperscript="mmlSuperscript",e.MmlSubscript="mmlSubscript",e.MmlPreSubSuper="mmlPreSubSuper",e.MmlSubArgument="mmlSubArgument",e.MmlSuperArgument="mmlSuperArgument",e.MmlNary="mmlNary",e.MmlDelimiter="mmlDelimiter",e.MmlRun="mmlRun",e.MmlEquationArray="mmlEquationArray",e.MmlLimit="mmlLimit",e.MmlLimitLower="mmlLimitLower",e.MmlMatrix="mmlMatrix",e.MmlMatrixRow="mmlMatrixRow",e.MmlBox="mmlBox",e.MmlBar="mmlBar",e.MmlGroupChar="mmlGroupChar",e.VmlElement="vmlElement",e.Inserted="inserted",e.Deleted="deleted",e.DeletedText="deletedText",e.Comment="comment",e.CommentReference="commentReference",e.CommentRangeStart="commentRangeStart",e.CommentRangeEnd="commentRangeEnd"}(ee||(ee={}));class be{constructor(){this.children=[],this.cssStyle={}}}class we extends be{constructor(){super(...arguments),this.type=ee.Header}}class xe extends be{constructor(){super(...arguments),this.type=ee.Footer}}class Ce extends D{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}class _e extends Ce{createRootElement(){return new we}}class Ie extends Ce{createRootElement(){return new xe}}function Ee(e,t){const n={};for(let r of t.elements(e))switch(r.localName){case"Template":n.template=r.textContent;break;case"Pages":n.pages=ke(r.textContent);break;case"Words":n.words=ke(r.textContent);break;case"Characters":n.characters=ke(r.textContent);break;case"Application":n.application=r.textContent;break;case"Lines":n.lines=ke(r.textContent);break;case"Paragraphs":n.paragraphs=ke(r.textContent);break;case"Company":n.company=r.textContent;break;case"AppVersion":n.appVersion=r.textContent}return n}function ke(e){if(void 0!==e)return parseInt(e)}class Se extends D{parseXml(e){this.props=Ee(e,this._package.xmlParser)}}function Be(e,t){const n={};for(let r of t.elements(e))switch(r.localName){case"title":n.title=r.textContent;break;case"description":n.description=r.textContent;break;case"subject":n.subject=r.textContent;break;case"creator":n.creator=r.textContent;break;case"keywords":n.keywords=r.textContent;break;case"language":n.language=r.textContent;break;case"lastModifiedBy":n.lastModifiedBy=r.textContent;break;case"revision":r.textContent&&(n.revision=parseInt(r.textContent))}return n}class Me extends D{parseXml(e){this.props=Be(e,this._package.xmlParser)}}class Te{}function Oe(e,t){var n=new Te,r=t.element(e,"themeElements");for(let e of t.elements(r))switch(e.localName){case"clrScheme":n.colorScheme=De(e,t);break;case"fontScheme":n.fontScheme=Pe(e,t)}return n}function De(e,t){var n={name:t.attr(e,"name"),colors:{}};for(let a of t.elements(e)){var r=t.element(a,"srgbClr"),i=t.element(a,"sysClr");r?n.colors[a.localName]=t.attr(r,"val"):i&&(n.colors[a.localName]=t.attr(i,"lastClr"))}return n}function Pe(e,t){var n={name:t.attr(e,"name")};for(let r of t.elements(e))switch(r.localName){case"majorFont":n.majorFont=Le(r,t);break;case"minorFont":n.minorFont=Le(r,t)}return n}function Le(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}class Qe extends D{constructor(e,t){super(e,t)}parseXml(e){this.theme=Oe(e,this._package.xmlParser)}}class Re{}class je extends Re{constructor(){super(...arguments),this.type=ee.Footnote}}class Ne extends Re{constructor(){super(...arguments),this.type=ee.Endnote}}class Fe extends D{constructor(e,t,n){super(e,t),this._documentParser=n}}class ze extends Fe{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"footnote",je)}}class He extends Fe{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"endnote",Ne)}}function Ue(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case"defaultTabStop":n.defaultTabStop=t.lengthAttr(r,"val");break;case"footnotePr":n.footnoteProps=Ge(r,t);break;case"endnotePr":n.endnoteProps=Ge(r,t);break;case"autoHyphenation":n.autoHyphenation=t.boolAttr(r,"val")}return n}function Ge(e,t){var n={defaultNoteIds:[]};for(let r of t.elements(e))switch(r.localName){case"numFmt":n.nummeringFormat=t.attr(r,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(r,"id"))}return n}class Ve extends D{constructor(e,t){super(e,t)}parseXml(e){this.settings=Ue(e,this._package.xmlParser)}}function We(e,t){return t.elements(e,"property").map((e=>{const n=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:n.nodeName,value:n.textContent}}))}class qe extends D{parseXml(e){this.props=We(e,this._package.xmlParser)}}class Ye extends D{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.comments=this._documentParser.parseComments(e),this.commentMap=H(this.comments,(e=>e.id))}}class Ke extends D{constructor(e,t){super(e,t),this.comments=[]}parseXml(e){const t=this._package.xmlParser;for(let n of t.elements(e,"commentEx"))this.comments.push({paraId:t.attr(n,"paraId"),paraIdParent:t.attr(n,"paraIdParent"),done:t.boolAttr(n,"done")});this.commentMap=H(this.comments,(e=>e.paraId))}}const $e=[{type:b.OfficeDocument,target:"word/document.xml"},{type:b.ExtendedProperties,target:"docProps/app.xml"},{type:b.CoreProperties,target:"docProps/core.xml"},{type:b.CustomProperties,target:"docProps/custom.xml"}];class Je{constructor(){this.parts=[],this.partsMap={}}static load(e,t,n){return d(this,null,(function*(){var r=new Je;return r._options=n,r._parser=t,r._package=yield Y.load(e,n),r.rels=yield r._package.loadRelationships(),yield Promise.all($e.map((e=>{var t;const n=null!=(t=r.rels.find((t=>t.type===e.type)))?t:e;return r.loadRelationshipPart(n.target,n.type)}))),r}))}save(e="blob"){return this._package.save(e)}loadRelationshipPart(e,t){return d(this,null,(function*(){var n;if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let r=null;switch(t){case b.OfficeDocument:this.documentPart=r=new $(this._package,e,this._parser);break;case b.FontTable:this.fontTablePart=r=new j(this._package,e);break;case b.Numbering:this.numberingPart=r=new ye(this._package,e,this._parser);break;case b.Styles:this.stylesPart=r=new Ae(this._package,e,this._parser);break;case b.Theme:this.themePart=r=new Qe(this._package,e);break;case b.Footnotes:this.footnotesPart=r=new ze(this._package,e,this._parser);break;case b.Endnotes:this.endnotesPart=r=new He(this._package,e,this._parser);break;case b.Footer:r=new Ie(this._package,e,this._parser);break;case b.Header:r=new _e(this._package,e,this._parser);break;case b.CoreProperties:this.corePropsPart=r=new Me(this._package,e);break;case b.ExtendedProperties:this.extendedPropsPart=r=new Se(this._package,e);break;case b.CustomProperties:r=new qe(this._package,e);break;case b.Settings:this.settingsPart=r=new Ve(this._package,e);break;case b.Comments:this.commentsPart=r=new Ye(this._package,e,this._parser);break;case b.CommentsExtended:this.commentsExtendedPart=r=new Ke(this._package,e)}if(null==r)return Promise.resolve(null);if(this.partsMap[e]=r,this.parts.push(r),yield r.load(),(null==(n=r.rels)?void 0:n.length)>0){const[e]=F(r.path);yield Promise.all(r.rels.map((t=>this.loadRelationshipPart(z(t.target,e),t.type))))}return r}))}loadDocumentImage(e,t){return d(this,null,(function*(){const n=yield this.loadResource(null!=t?t:this.documentPart,e,"blob");return this.blobToURL(n)}))}loadNumberingImage(e){return d(this,null,(function*(){const t=yield this.loadResource(this.numberingPart,e,"blob");return this.blobToURL(t)}))}loadFont(e,t){return d(this,null,(function*(){const n=yield this.loadResource(this.fontTablePart,e,"uint8array");return n&&this.blobToURL(new Blob([Xe(n,t)]))}))}blobToURL(e){return e?this._options.useBase64URL?U(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var n,r=(null!=(n=t.rels)?n:this.rels).find((t=>t.id==e));const i=t?F(t.path)[0]:"";return r?this.partsMap[z(r.target,i)]:null}getPathById(e,t){const n=e.rels.find((e=>e.id==t)),[r]=F(e.path);return n?z(n.target,r):null}loadResource(e,t,n){const r=this.getPathById(e,t);return r?this._package.load(r,n):Promise.resolve(null)}}function Xe(e,t){const n=t.replace(/{|}|-/g,""),r=new Array(16);for(let e=0;e<16;e++)r[16-e-1]=parseInt(n.substr(2*e,2),16);for(let t=0;t<32;t++)e[t]=e[t]^r[t%16];return e}function Ze(e,t){return{type:ee.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}}function et(e,t){return{type:ee.BookmarkEnd,id:t.attr(e,"id")}}class tt extends be{constructor(){super(...arguments),this.type=ee.VmlElement,this.attrs={}}}function nt(e,t){var n=new tt;switch(e.localName){case"rect":n.tagName="rect",Object.assign(n.attrs,{width:"100%",height:"100%"});break;case"oval":n.tagName="ellipse",Object.assign(n.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":n.tagName="line";break;case"shape":n.tagName="g";break;case"textbox":n.tagName="foreignObject",Object.assign(n.attrs,{width:"100%",height:"100%"});break;default:return null}for(const t of O.attrs(e))switch(t.localName){case"style":n.cssStyleText=t.value;break;case"fillcolor":n.attrs.fill=t.value;break;case"from":const[e,r]=at(t.value);Object.assign(n.attrs,{x1:e,y1:r});break;case"to":const[i,a]=at(t.value);Object.assign(n.attrs,{x2:i,y2:a})}for(const r of O.elements(e))switch(r.localName){case"stroke":Object.assign(n.attrs,rt(r));break;case"fill":Object.assign(n.attrs,it());break;case"imagedata":n.tagName="image",Object.assign(n.attrs,{width:"100%",height:"100%"}),n.imageHref={id:O.attr(r,"id"),title:O.attr(r,"title")};break;case"txbxContent":n.children.push(...t.parseBodyElements(r));break;default:const e=nt(r,t);e&&n.children.push(e)}return n}function rt(e){var t;return{stroke:O.attr(e,"color"),"stroke-width":null!=(t=O.lengthAttr(e,"weight",C.Emu))?t:"1px"}}function it(e){return{}}function at(e){return e.split(",")}class ot extends be{constructor(){super(...arguments),this.type=ee.Comment}}class st extends be{constructor(e){super(),this.id=e,this.type=ee.CommentReference}}class ct extends be{constructor(e){super(),this.id=e,this.type=ee.CommentRangeStart}}class lt extends be{constructor(e){super(),this.id=e,this.type=ee.CommentRangeEnd}}var ut={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const ht=[],ft={oMath:ee.MmlMath,oMathPara:ee.MmlMathParagraph,f:ee.MmlFraction,func:ee.MmlFunction,fName:ee.MmlFunctionName,num:ee.MmlNumerator,den:ee.MmlDenominator,rad:ee.MmlRadical,deg:ee.MmlDegree,e:ee.MmlBase,sSup:ee.MmlSuperscript,sSub:ee.MmlSubscript,sPre:ee.MmlPreSubSuper,sup:ee.MmlSuperArgument,sub:ee.MmlSubArgument,d:ee.MmlDelimiter,nary:ee.MmlNary,eqArr:ee.MmlEquationArray,lim:ee.MmlLimit,limLow:ee.MmlLimitLower,m:ee.MmlMatrix,mr:ee.MmlMatrixRow,box:ee.MmlBox,bar:ee.MmlBar,groupChr:ee.MmlGroupChar};class dt{constructor(e){this.options=h({ignoreWidth:!1,debug:!1},e)}parseNotes(e,t,n){var r=[];for(let i of O.elements(e,t)){const e=new n;e.id=O.attr(i,"id"),e.noteType=O.attr(i,"type"),e.children=this.parseBodyElements(i),r.push(e)}return r}parseComments(e){var t=[];for(let n of O.elements(e,"comment")){const e=new ot;e.id=O.attr(n,"id"),e.author=O.attr(n,"author"),e.initials=O.attr(n,"initials"),e.date=O.attr(n,"date"),e.children=this.parseBodyElements(n),t.push(e)}return t}parseDocumentFile(e){var t=O.element(e,"body"),n=O.element(e,"background"),r=O.element(t,"sectPr");return{type:ee.Document,children:this.parseBodyElements(t),props:r?te(r,O):{},cssStyle:n?this.parseBackground(n):{}}}parseBackground(e){var t={},n=gt.colorAttr(e,"color");return n&&(t["background-color"]=n),t}parseBodyElements(e){var t=[];for(let n of O.elements(e))switch(n.localName){case"p":t.push(this.parseParagraph(n));break;case"tbl":t.push(this.parseTable(n));break;case"sdt":t.push(...this.parseSdt(n,(e=>this.parseBodyElements(e))))}return t}parseStylesFile(e){var t=[];return gt.foreach(e,(e=>{switch(e.localName){case"style":t.push(this.parseStyle(e));break;case"docDefaults":t.push(this.parseDefaultStyles(e))}})),t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return gt.foreach(e,(e=>{switch(e.localName){case"rPrDefault":var n=O.element(e,"rPr");n&&t.styles.push({target:"span",values:this.parseDefaultProperties(n,{})});break;case"pPrDefault":var r=O.element(e,"pPr");r&&t.styles.push({target:"p",values:this.parseDefaultProperties(r,{})})}})),t}parseStyle(e){var t={id:O.attr(e,"styleId"),isDefault:O.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(O.attr(e,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span"}return gt.foreach(e,(e=>{switch(e.localName){case"basedOn":t.basedOn=O.attr(e,"val");break;case"name":t.name=O.attr(e,"val");break;case"link":t.linked=O.attr(e,"val");break;case"next":t.next=O.attr(e,"val");break;case"aliases":t.aliases=O.attr(e,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(e,{})}),t.paragraphProps=ce(e,O);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(e,{})}),t.runProps=oe(e,O);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(e,{})});break;case"tblStylePr":for(let n of this.parseTableStyle(e))t.styles.push(n);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug}})),t}parseTableStyle(e){var t=[],n=O.attr(e,"type"),r="",i="";switch(n){case"firstRow":i=".first-row",r="tr.first-row td";break;case"lastRow":i=".last-row",r="tr.last-row td";break;case"firstCol":i=".first-col",r="td.first-col";break;case"lastCol":i=".last-col",r="td.last-col";break;case"band1Vert":i=":not(.no-vband)",r="td.odd-col";break;case"band2Vert":i=":not(.no-vband)",r="td.even-col";break;case"band1Horz":i=":not(.no-hband)",r="tr.odd-row";break;case"band2Horz":i=":not(.no-hband)",r="tr.even-row";break;default:return[]}return gt.foreach(e,(e=>{switch(e.localName){case"pPr":t.push({target:`${r} p`,mod:i,values:this.parseDefaultProperties(e,{})});break;case"rPr":t.push({target:`${r} span`,mod:i,values:this.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":t.push({target:r,mod:i,values:this.parseDefaultProperties(e,{})})}})),t}parseNumberingFile(e){var t=[],n={},r=[];return gt.foreach(e,(e=>{switch(e.localName){case"abstractNum":this.parseAbstractNumbering(e,r).forEach((e=>t.push(e)));break;case"numPicBullet":r.push(this.parseNumberingPicBullet(e));break;case"num":var i=O.attr(e,"numId"),a=O.elementAttr(e,"abstractNumId","val");n[a]=i}})),t.forEach((e=>e.id=n[e.id])),t}parseNumberingPicBullet(e){var t=O.element(e,"pict"),n=t&&O.element(t,"shape"),r=n&&O.element(n,"imagedata");return r?{id:O.intAttr(e,"numPicBulletId"),src:O.attr(r,"id"),style:O.attr(n,"style")}:null}parseAbstractNumbering(e,t){var n=[],r=O.attr(e,"abstractNumId");return gt.foreach(e,(e=>{"lvl"===e.localName&&n.push(this.parseNumberingLevel(r,e,t))})),n}parseNumberingLevel(e,t,n){var r={id:e,level:O.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return gt.foreach(t,(e=>{switch(e.localName){case"start":r.start=O.intAttr(e,"val");break;case"pPr":this.parseDefaultProperties(e,r.pStyle);break;case"rPr":this.parseDefaultProperties(e,r.rStyle);break;case"lvlPicBulletId":var t=O.intAttr(e,"val");r.bullet=n.find((e=>(null==e?void 0:e.id)==t));break;case"lvlText":r.levelText=O.attr(e,"val");break;case"pStyle":r.pStyleName=O.attr(e,"val");break;case"numFmt":r.format=O.attr(e,"val");break;case"suff":r.suff=O.attr(e,"val")}})),r}parseSdt(e,t){const n=O.element(e,"sdtContent");return n?t(n):[]}parseInserted(e,t){var n,r;return{type:ee.Inserted,children:null!=(r=null==(n=t(e))?void 0:n.children)?r:[]}}parseDeleted(e,t){var n,r;return{type:ee.Deleted,children:null!=(r=null==(n=t(e))?void 0:n.children)?r:[]}}parseParagraph(e){var t={type:ee.Paragraph,children:[]};for(let n of O.elements(e))switch(n.localName){case"pPr":this.parseParagraphProperties(n,t);break;case"r":t.children.push(this.parseRun(n,t));break;case"hyperlink":t.children.push(this.parseHyperlink(n,t));break;case"smartTag":t.children.push(this.parseSmartTag(n,t));break;case"bookmarkStart":t.children.push(Ze(n,O));break;case"bookmarkEnd":t.children.push(et(n,O));break;case"commentRangeStart":t.children.push(new ct(O.attr(n,"id")));break;case"commentRangeEnd":t.children.push(new lt(O.attr(n,"id")));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(n));break;case"sdt":t.children.push(...this.parseSdt(n,(e=>this.parseParagraph(e).children)));break;case"ins":t.children.push(this.parseInserted(n,(e=>this.parseParagraph(e))));break;case"del":t.children.push(this.parseDeleted(n,(e=>this.parseParagraph(e))))}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,(e=>{if(le(e,t,O))return!0;switch(e.localName){case"pStyle":t.styleName=O.attr(e,"val");break;case"cnfStyle":t.className=mt.classNameOfCnfStyle(e);break;case"framePr":this.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0}))}parseFrame(e,t){"drop"==O.attr(e,"dropCap")&&(t.cssStyle.float="left")}parseHyperlink(e,t){var n={type:ee.Hyperlink,parent:t,children:[]},r=O.attr(e,"anchor"),i=O.attr(e,"id");return r&&(n.href="#"+r),i&&(n.id=i),gt.foreach(e,(e=>{"r"===e.localName&&n.children.push(this.parseRun(e,n))})),n}parseSmartTag(e,t){var n={type:ee.SmartTag,parent:t,children:[]},r=O.attr(e,"uri"),i=O.attr(e,"element");return r&&(n.uri=r),i&&(n.element=i),gt.foreach(e,(e=>{"r"===e.localName&&n.children.push(this.parseRun(e,n))})),n}parseRun(e,t){var n={type:ee.Run,parent:t,children:[]};return gt.foreach(e,(e=>{switch((e=this.checkAlternateContent(e)).localName){case"t":n.children.push({type:ee.Text,text:e.textContent});break;case"delText":n.children.push({type:ee.DeletedText,text:e.textContent});break;case"commentReference":n.children.push(new st(O.attr(e,"id")));break;case"fldSimple":n.children.push({type:ee.SimpleField,instruction:O.attr(e,"instr"),lock:O.boolAttr(e,"lock",!1),dirty:O.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:ee.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:ee.ComplexField,charType:O.attr(e,"fldCharType"),lock:O.boolAttr(e,"lock",!1),dirty:O.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:ee.NoBreakHyphen});break;case"br":n.children.push({type:ee.Break,break:O.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:ee.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:ee.Symbol,font:O.attr(e,"font"),char:O.attr(e,"char")});break;case"tab":n.children.push({type:ee.Tab});break;case"footnoteReference":n.children.push({type:ee.FootnoteReference,id:O.attr(e,"id")});break;case"endnoteReference":n.children.push({type:ee.EndnoteReference,id:O.attr(e,"id")});break;case"drawing":let t=this.parseDrawing(e);t&&(n.children=[t]);break;case"pict":n.children.push(this.parseVmlPicture(e));break;case"rPr":this.parseRunProperties(e,n)}})),n}parseMathElement(e){const t=`${e.localName}Pr`,n={type:ft[e.localName],children:[]};for(const i of O.elements(e))if(ft[i.localName])n.children.push(this.parseMathElement(i));else if("r"==i.localName){var r=this.parseRun(i);r.type=ee.MmlRun,n.children.push(r)}else i.localName==t&&(n.props=this.parseMathProperies(i));return n}parseMathProperies(e){const t={};for(const n of O.elements(e))switch(n.localName){case"chr":t.char=O.attr(n,"val");break;case"vertJc":t.verticalJustification=O.attr(n,"val");break;case"pos":t.position=O.attr(n,"val");break;case"degHide":t.hideDegree=O.boolAttr(n,"val");break;case"begChr":t.beginChar=O.attr(n,"val");break;case"endChr":t.endChar=O.attr(n,"val")}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,(e=>{switch(e.localName){case"rStyle":t.styleName=O.attr(e,"val");break;case"vertAlign":t.verticalAlign=mt.valueOfVertAlign(e,!0);break;default:return!1}return!0}))}parseVmlPicture(e){const t={type:ee.VmlPicture,children:[]};for(const n of O.elements(e)){const e=nt(n,this);e&&t.children.push(e)}return t}checkAlternateContent(e){var t;if("AlternateContent"!=e.localName)return e;var n=O.element(e,"Choice");if(n){var r=O.attr(n,"Requires"),i=e.lookupNamespaceURI(r);if(ht.includes(i))return n.firstElementChild}return null==(t=O.element(e,"Fallback"))?void 0:t.firstElementChild}parseDrawing(e){for(var t of O.elements(e))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var t,n={type:ee.Drawing,children:[],cssStyle:{}},r="anchor"==e.localName;let i=null,a=O.boolAttr(e,"simplePos");O.boolAttr(e,"behindDoc");let o={relative:"page",align:"left",offset:"0"},s={relative:"page",align:"top",offset:"0"};for(var c of O.elements(e))switch(c.localName){case"simplePos":a&&(o.offset=O.lengthAttr(c,"x",C.Emu),s.offset=O.lengthAttr(c,"y",C.Emu));break;case"extent":n.cssStyle.width=O.lengthAttr(c,"cx",C.Emu),n.cssStyle.height=O.lengthAttr(c,"cy",C.Emu);break;case"positionH":case"positionV":if(!a){let e="positionH"==c.localName?o:s;var l=O.element(c,"align"),u=O.element(c,"posOffset");e.relative=null!=(t=O.attr(c,"relativeFrom"))?t:e.relative,l&&(e.align=l.textContent),u&&(e.offset=gt.sizeValue(u,C.Emu))}break;case"wrapTopAndBottom":i="wrapTopAndBottom";break;case"wrapNone":i="wrapNone";break;case"graphic":var h=this.parseGraphic(c);h&&n.children.push(h)}return"wrapTopAndBottom"==i?(n.cssStyle.display="block",o.align&&(n.cssStyle["text-align"]=o.align,n.cssStyle.width="100%")):"wrapNone"==i?(n.cssStyle.display="block",n.cssStyle.position="relative",n.cssStyle.width="0px",n.cssStyle.height="0px",o.offset&&(n.cssStyle.left=o.offset),s.offset&&(n.cssStyle.top=s.offset)):r&&("left"==o.align||"right"==o.align)&&(n.cssStyle.float=o.align),n}parseGraphic(e){var t=O.element(e,"graphicData");for(let e of O.elements(t))if("pic"===e.localName)return this.parsePicture(e);return null}parsePicture(e){var t={type:ee.Image,src:"",cssStyle:{}},n=O.element(e,"blipFill"),r=O.element(n,"blip");t.src=O.attr(r,"embed");var i=O.element(e,"spPr"),a=O.element(i,"xfrm");for(var o of(t.cssStyle.position="relative",O.elements(a)))switch(o.localName){case"ext":t.cssStyle.width=O.lengthAttr(o,"cx",C.Emu),t.cssStyle.height=O.lengthAttr(o,"cy",C.Emu);break;case"off":t.cssStyle.left=O.lengthAttr(o,"x",C.Emu),t.cssStyle.top=O.lengthAttr(o,"y",C.Emu)}return t}parseTable(e){var t={type:ee.Table,children:[]};return gt.foreach(e,(e=>{switch(e.localName){case"tr":t.children.push(this.parseTableRow(e));break;case"tblGrid":t.columns=this.parseTableColumns(e);break;case"tblPr":this.parseTableProperties(e,t)}})),t}parseTableColumns(e){var t=[];return gt.foreach(e,(e=>{"gridCol"===e.localName&&t.push({width:O.lengthAttr(e,"w")})})),t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,(e=>{switch(e.localName){case"tblStyle":t.styleName=O.attr(e,"val");break;case"tblLook":t.className=mt.classNameOftblLook(e);break;case"tblpPr":this.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=O.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=O.intAttr(e,"val");break;default:return!1}return!0})),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}parseTablePosition(e,t){var n=O.lengthAttr(e,"topFromText"),r=O.lengthAttr(e,"bottomFromText"),i=O.lengthAttr(e,"rightFromText"),a=O.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=mt.addSize(t.cssStyle["margin-bottom"],r),t.cssStyle["margin-left"]=mt.addSize(t.cssStyle["margin-left"],a),t.cssStyle["margin-right"]=mt.addSize(t.cssStyle["margin-right"],i),t.cssStyle["margin-top"]=mt.addSize(t.cssStyle["margin-top"],n)}parseTableRow(e){var t={type:ee.Row,children:[]};return gt.foreach(e,(e=>{switch(e.localName){case"tc":t.children.push(this.parseTableCell(e));break;case"trPr":this.parseTableRowProperties(e,t)}})),t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(e=>{switch(e.localName){case"cnfStyle":t.className=mt.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=O.boolAttr(e,"val");break;default:return!1}return!0}))}parseTableCell(e){var t={type:ee.Cell,children:[]};return gt.foreach(e,(e=>{switch(e.localName){case"tbl":t.children.push(this.parseTable(e));break;case"p":t.children.push(this.parseParagraph(e));break;case"tcPr":this.parseTableCellProperties(e,t)}})),t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(e=>{var n;switch(e.localName){case"gridSpan":t.span=O.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!=(n=O.attr(e,"val"))?n:"continue";break;case"cnfStyle":t.className=mt.classNameOfCnfStyle(e);break;default:return!1}return!0}))}parseDefaultProperties(e,t=null,n=null,r=null){return t=t||{},gt.foreach(e,(i=>{if(null==r||!r(i))switch(i.localName){case"jc":t["text-align"]=mt.valueOfJc(i);break;case"textAlignment":t["vertical-align"]=mt.valueOfTextAlignment(i);break;case"color":t.color=gt.colorAttr(i,"val",null,ut.color);break;case"sz":t["font-size"]=t["min-height"]=O.lengthAttr(i,"val",C.FontSize);break;case"shd":t["background-color"]=gt.colorAttr(i,"fill",null,ut.shd);break;case"highlight":t["background-color"]=gt.colorAttr(i,"val",null,ut.highlight);break;case"vertAlign":break;case"position":t.verticalAlign=O.lengthAttr(i,"val",C.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":t.width=mt.valueOfSize(i,"w");break;case"trHeight":this.parseTrHeight(i,t);break;case"strike":t["text-decoration"]=O.boolAttr(i,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=O.boolAttr(i,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=O.boolAttr(i,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=O.boolAttr(i,"val",!0)?"uppercase":"none";break;case"smallCaps":t["font-variant"]=O.boolAttr(i,"val",!0)?"small-caps":"none";break;case"u":this.parseUnderline(i,t);break;case"ind":case"tblInd":this.parseIndentation(i,t);break;case"rFonts":this.parseFont(i,t);break;case"tblBorders":this.parseBorderProperties(i,n||t);break;case"tblCellSpacing":t["border-spacing"]=mt.valueOfMargin(i),t["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(i,t);break;case"bdr":t.border=mt.valueOfBorder(i);break;case"tcBorders":this.parseBorderProperties(i,t);break;case"vanish":O.boolAttr(i,"val",!0)&&(t.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(i,n||t);break;case"tblLayout":t["table-layout"]=mt.valueOfTblLayout(i);break;case"vAlign":t["vertical-align"]=mt.valueOfTextAlignment(i);break;case"spacing":"pPr"==e.localName&&this.parseSpacing(i,t);break;case"wordWrap":O.boolAttr(i,"val")&&(t["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":t.hyphens=O.boolAttr(i,"val",!0)?"none":"auto";break;case"lang":t.$lang=O.attr(i,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug}})),t}parseUnderline(e,t){var n=O.attr(e,"val");if(null!=n){switch(n){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":t["text-decoration"]="underline dotted";break;case"double":t["text-decoration"]="underline double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration"]="underline wavy";break;case"none":t["text-decoration"]="none"}var r=gt.colorAttr(e,"color");r&&(t["text-decoration-color"]=r)}}parseFont(e,t){var n=[O.attr(e,"ascii"),mt.themeValue(e,"asciiTheme")].filter((e=>e)).join(", ");n.length>0&&(t["font-family"]=n)}parseIndentation(e,t){var n=O.lengthAttr(e,"firstLine"),r=O.lengthAttr(e,"hanging"),i=O.lengthAttr(e,"left"),a=O.lengthAttr(e,"start"),o=O.lengthAttr(e,"right"),s=O.lengthAttr(e,"end");n&&(t["text-indent"]=n),r&&(t["text-indent"]=`-${r}`),(i||a)&&(t["margin-left"]=i||a),(o||s)&&(t["margin-right"]=o||s)}parseSpacing(e,t){var n=O.lengthAttr(e,"before"),r=O.lengthAttr(e,"after"),i=O.intAttr(e,"line",null),a=O.attr(e,"lineRule");if(n&&(t["margin-top"]=n),r&&(t["margin-bottom"]=r),null!==i)switch(a){case"auto":t["line-height"]=`${(i/240).toFixed(2)}`;break;case"atLeast":t["line-height"]=`calc(100% + ${i/20}pt)`;break;default:t["line-height"]=t["min-height"]=i/20+"pt"}}parseMarginProperties(e,t){gt.foreach(e,(e=>{switch(e.localName){case"left":t["padding-left"]=mt.valueOfMargin(e);break;case"right":t["padding-right"]=mt.valueOfMargin(e);break;case"top":t["padding-top"]=mt.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=mt.valueOfMargin(e)}}))}parseTrHeight(e,t){O.attr(e,"hRule"),t.height=O.lengthAttr(e,"val")}parseBorderProperties(e,t){gt.foreach(e,(e=>{switch(e.localName){case"start":case"left":t["border-left"]=mt.valueOfBorder(e);break;case"end":case"right":t["border-right"]=mt.valueOfBorder(e);break;case"top":t["border-top"]=mt.valueOfBorder(e);break;case"bottom":t["border-bottom"]=mt.valueOfBorder(e)}}))}}const pt=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class gt{static foreach(e,t){for(var n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];r.nodeType==Node.ELEMENT_NODE&&t(r)}}static colorAttr(e,t,n=null,r="black"){var i=O.attr(e,t);if(i)return"auto"==i?r:pt.includes(i)?i:`#${i}`;var a=O.attr(e,"themeColor");return a?`var(--docx-${a}-color)`:n}static sizeValue(e,t=C.Dxa){return _(e.textContent,t)}}class mt{static themeValue(e,t){var n=O.attr(e,t);return n?`var(--docx-${n}-font)`:null}static valueOfSize(e,t){var n=C.Dxa;switch(O.attr(e,"type")){case"dxa":break;case"pct":n=C.Percent;break;case"auto":return"auto"}return O.lengthAttr(e,t,n)}static valueOfMargin(e){return O.lengthAttr(e,"w")}static valueOfBorder(e){if("nil"==O.attr(e,"val"))return"none";var t=gt.colorAttr(e,"color");return`${O.lengthAttr(e,"sz",C.Border)} solid ${"auto"==t?ut.borderColor:t}`}static valueOfTblLayout(e){return"fixed"==O.attr(e,"val")?"fixed":"auto"}static classNameOfCnfStyle(e){const t=O.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter(((e,n)=>"1"==t[n])).join(" ")}static valueOfJc(e){var t=O.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}static valueOfVertAlign(e,t=!1){var n=O.attr(e,"val");switch(n){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:n}static valueOfTextAlignment(e){var t=O.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}static addSize(e,t){return null==e?t:null==t?e:`calc(${e} + ${t})`}static classNameOftblLook(e){const t=O.hexAttr(e,"val",0);let n="";return(O.boolAttr(e,"firstRow")||32&t)&&(n+=" first-row"),(O.boolAttr(e,"lastRow")||64&t)&&(n+=" last-row"),(O.boolAttr(e,"firstColumn")||128&t)&&(n+=" first-col"),(O.boolAttr(e,"lastColumn")||256&t)&&(n+=" last-col"),(O.boolAttr(e,"noHBand")||512&t)&&(n+=" no-hband"),(O.boolAttr(e,"noVBand")||1024&t)&&(n+=" no-vband"),n.trim()}}const vt={pos:0,leader:"none",style:"left"},yt=50;function At(e=document.body){const t=document.createElement("div");t.style.width="100pt",e.appendChild(t);const n=100/t.offsetWidth;return e.removeChild(t),n}function bt(e,t,n,r=.75){const i=e.closest("p"),a=e.getBoundingClientRect(),o=i.getBoundingClientRect(),s=getComputedStyle(i),c=(null==t?void 0:t.length)>0?t.map((e=>({pos:wt(e.position),leader:e.leader,style:e.style}))).sort(((e,t)=>e.pos-t.pos)):[vt],l=c[c.length-1],u=o.width*r,d=wt(n);let p=l.pos+d;if(p<u)for(;p<u&&c.length<yt;p+=d)c.push(f(h({},vt),{pos:p}));const g=parseFloat(s.marginLeft),m=o.left+g,v=(a.left-m)*r,y=c.find((e=>"clear"!=e.style&&e.pos>v));if(null==y)return;let A=1;if("right"==y.style||"center"==y.style){const t=Array.from(i.querySelectorAll(`.${e.className}`)),n=t.indexOf(e)+1,a=document.createRange();a.setStart(e,1),n<t.length?a.setEndBefore(t[n]):a.setEndAfter(i);const s="center"==y.style?.5:1,c=a.getBoundingClientRect(),l=c.left+s*c.width-(o.left-g);A=y.pos-l*r}else A=y.pos-v;switch(e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing=`${A.toFixed(0)}pt`,y.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}function wt(e){return parseFloat(e)}const xt={svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML"};class Ct{constructor(e){this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.commentMap={},this.tasks=[],this.postRenderTasks=[],this.createElement=_t}render(e,t,n=null,r){var i;this.document=e,this.options=r,this.className=r.className,this.rootSelector=r.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,this.tasks=[],this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight),kt(n=n||t),kt(t),Mt(n,"docxjs library predefined styles"),n.appendChild(this.renderDefaultStyle()),e.themePart&&(Mt(n,"docxjs document theme values"),this.renderTheme(e.themePart,n)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),Mt(n,"docxjs document styles"),n.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),Mt(n,"docxjs document numbering styles"),n.appendChild(this.renderNumbering(e.numberingPart.domNumberings,n))),e.footnotesPart&&(this.footnoteMap=H(e.footnotesPart.notes,(e=>e.id))),e.endnotesPart&&(this.endnoteMap=H(e.endnotesPart.notes,(e=>e.id))),e.settingsPart&&(this.defaultTabSize=null==(i=e.settingsPart.settings)?void 0:i.defaultTabStop),!r.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,n);var a=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(a)):St(t,a),this.commentHighlight&&r.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),this.refreshTabStops(),this.postRenderTasks.forEach((e=>e()))}renderTheme(e,t){var n,r;const i={},a=null==(n=e.theme)?void 0:n.fontScheme;a&&(a.majorFont&&(i["--docx-majorHAnsi-font"]=a.majorFont.latinTypeface),a.minorFont&&(i["--docx-minorHAnsi-font"]=a.minorFont.latinTypeface));const o=null==(r=e.theme)?void 0:r.colorScheme;if(o)for(let[e,t]of Object.entries(o.colors))i[`--docx-${e}-color`]=`#${t}`;const s=this.styleToString(`.${this.className}`,i);t.appendChild(Bt(s))}renderFontTable(e,t){for(let n of e.fonts)for(let e of n.embedFontRefs)this.tasks.push(this.document.loadFont(e.id,e.key).then((r=>{const i={"font-family":n.name,src:`url(${r})`};("bold"==e.type||"boldItalic"==e.type)&&(i["font-weight"]="bold"),("italic"==e.type||"boldItalic"==e.type)&&(i["font-style"]="italic"),Mt(t,`docxjs ${n.name} font`);const a=this.styleToString("@font-face",i);t.appendChild(Bt(a)),this.refreshTabStops()})))}processStyleName(e){return e?`${this.className}_${N(e)}`:this.className}processStyles(e){const t=H(e.filter((e=>null!=e.id)),(e=>e.id));for(const r of e.filter((e=>e.basedOn))){var n=t[r.basedOn];if(n){r.paragraphProps=W(r.paragraphProps,n.paragraphProps),r.runProps=W(r.runProps,n.runProps);for(const e of n.styles){const t=r.styles.find((t=>t.target==e.target));t?this.copyStyleProperties(e.values,t.values):r.styles.push(f(h({},e),{values:h({},e.values)}))}}else this.options.debug}for(let t of e)t.cssName=this.processStyleName(t.id);return t}prodessNumberings(e){var t;for(let n of e.filter((e=>e.pStyleName))){const e=this.findStyle(n.pStyleName);null!=(t=null==e?void 0:e.paragraphProps)&&t.numbering&&(e.paragraphProps.numbering.level=n.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==ee.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var n of t.children)n.cssStyle=this.copyStyleProperties(e.cellStyle,n.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(n)}copyStyleProperties(e,t,n=null){if(!e)return t;for(var r of(null==t&&(t={}),null==n&&(n=Object.getOwnPropertyNames(e)),n))e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r]);return t}createPageElement(e,t){var n=this.createElement("section",{className:e});return t&&(t.pageMargins&&(n.style.paddingLeft=t.pageMargins.left,n.style.paddingRight=t.pageMargins.right,n.style.paddingTop=t.pageMargins.top,n.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(n.style.width=t.pageSize.width),this.options.ignoreHeight||(n.style.minHeight=t.pageSize.height))),n}createSectionContent(e){var t=this.createElement("article");return e.columns&&e.columns.numberOfColumns&&(t.style.columnCount=`${e.columns.numberOfColumns}`,t.style.columnGap=e.columns.space,e.columns.separator&&(t.style.columnRule="1px solid black")),t}renderSections(e){const t=[];this.processElement(e);const n=this.splitBySection(e.children,e.props),r=this.groupByPageBreaks(n);let i=null;for(let n=0,o=r.length;n<o;n++){this.currentFootnoteIds=[];let s=r[n][0].sectProps;const c=this.createPageElement(this.className,s);this.renderStyleValues(e.cssStyle,c),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,i!=s,c);for(const e of r[n]){var a=this.createSectionContent(e.sectProps);this.renderElements(e.elements,a),c.appendChild(a),s=e.sectProps}this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,c),this.options.renderEndnotes&&n==o-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,c),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,i!=s,c),t.push(c),i=s}return t}renderHeaderFooter(e,t,n,r,i){var a,o;if(e){var s=null!=(o=null!=(a=t.titlePage&&r?e.find((e=>"first"==e.type)):null)?a:n%2==1?e.find((e=>"even"==e.type)):null)?o:e.find((e=>"default"==e.type)),c=s&&this.document.findPartByRelId(s.id,this.document.documentPart);if(c){this.currentPart=c,this.usedHederFooterParts.includes(c.path)||(this.processElement(c.rootElement),this.usedHederFooterParts.push(c.path));const[e]=this.renderElements([c.rootElement],i);null!=t&&t.pageMargins&&(c.rootElement.type===ee.Header?(e.style.marginTop=`calc(${t.pageMargins.header} - ${t.pageMargins.top})`,e.style.minHeight=`calc(${t.pageMargins.top} - ${t.pageMargins.header})`):c.rootElement.type===ee.Footer&&(e.style.marginBottom=`calc(${t.pageMargins.footer} - ${t.pageMargins.bottom})`,e.style.minHeight=`calc(${t.pageMargins.bottom} - ${t.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(e){return e.type==ee.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}isPageBreakSection(e,t){var n,r,i,a,o,s;return!(!e||!t||(null==(n=e.pageSize)?void 0:n.orientation)==(null==(r=t.pageSize)?void 0:r.orientation)&&(null==(i=e.pageSize)?void 0:i.width)==(null==(a=t.pageSize)?void 0:a.width)&&(null==(o=e.pageSize)?void 0:o.height)==(null==(s=t.pageSize)?void 0:s.height))}splitBySection(e,t){var n,r={sectProps:null,elements:[],pageBreak:!1},i=[r];for(let t of e){if(t.type==ee.Paragraph){const e=this.findStyle(t.styleName);null!=(n=null==e?void 0:e.paragraphProps)&&n.pageBreakBefore&&(r.sectProps=a,r.pageBreak=!0,r={sectProps:null,elements:[],pageBreak:!1},i.push(r))}if(r.elements.push(t),t.type==ee.Paragraph){const e=t;var a=e.sectionProps,o=-1,s=-1;if(this.options.breakPages&&e.children&&(o=e.children.findIndex((e=>{var t,n;return-1!=(s=null!=(n=null==(t=e.children)?void 0:t.findIndex(this.isPageBreakElement.bind(this)))?n:-1)}))),(a||-1!=o)&&(r.sectProps=a,r.pageBreak=-1!=o,r={sectProps:null,elements:[],pageBreak:!1},i.push(r)),-1!=o){let n=e.children[o],i=s<n.children.length-1;if(o<e.children.length-1||i){var c=t.children,l=f(h({},t),{children:c.slice(o)});if(t.children=c.slice(0,o),r.elements.push(l),i){let e=n.children,r=f(h({},n),{children:e.slice(0,s)});t.children.push(r),n.children=e.slice(s)}}}}}let u=null;for(let e=i.length-1;e>=0;e--)null==i[e].sectProps?i[e].sectProps=null!=u?u:t:u=i[e].sectProps;return i}groupByPageBreaks(e){let t,n=[];const r=[n];for(let i of e)n.push(i),(this.options.ignoreLastRenderedPageBreak||i.pageBreak||this.isPageBreakSection(t,i.sectProps))&&r.push(n=[]),t=i.sectProps;return r.filter((e=>e.length>0))}renderWrapper(e){return this.createElement("div",{className:`${this.className}-wrapper`},e)}renderDefaultStyle(){var e=this.className,t=`\n.${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.${e} { color: black; hyphens: auto; text-underline-position: from-font; }\nsection.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.${e}>article { margin-bottom: auto; z-index: 1; }\nsection.${e}>footer { z-index: 1; }\n.${e} table { border-collapse: collapse; }\n.${e} table td, .${e} table th { vertical-align: top; }\n.${e} p { margin: 0pt; min-height: 1em; }\n.${e} span { white-space: pre-wrap; overflow-wrap: break-word; }\n.${e} a { color: inherit; text-decoration: inherit; }\n.${e} svg { fill: transparent; }\n`;return this.options.renderComments&&(t+=`\n.${e}-comment-ref { cursor: default; }\n.${e}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; }\n.${e}-comment-ref:hover~.${e}-comment-popover { display: block; }\n.${e}-comment-author,.${e}-comment-date { font-size: 0.875rem; color: #888; }\n`),Bt(t)}renderNumbering(e,t){var n="",r=[];for(var i of e){var a=`p.${this.numberingClass(i.id,i.level)}`,o="none";if(i.bullet){let e=`--${this.className}-${i.bullet.src}`.toLowerCase();n+=this.styleToString(`${a}:before`,{content:"' '",display:"inline-block",background:`var(${e})`},i.bullet.style),this.tasks.push(this.document.loadNumberingImage(i.bullet.src).then((n=>{var r=`${this.rootSelector} { ${e}: url(${n}) }`;t.appendChild(Bt(r))})))}else if(i.levelText){let e=this.numberingCounter(i.id,i.level);const t=e+" "+(i.start-1);i.level>0&&(n+=this.styleToString(`p.${this.numberingClass(i.id,i.level-1)}`,{"counter-reset":t})),r.push(t),n+=this.styleToString(`${a}:before`,h({content:this.levelTextToContent(i.levelText,i.suff,i.id,this.numFormatToCssValue(i.format)),"counter-increment":e},i.rStyle))}else o=this.numFormatToCssValue(i.format);n+=this.styleToString(a,h({display:"list-item","list-style-position":"inside","list-style-type":o},i.pStyle))}return r.length>0&&(n+=this.styleToString(this.rootSelector,{"counter-reset":r.join(" ")})),Bt(n)}renderStyles(e){var t,n="";const r=this.styleMap,i=H(e.filter((e=>e.isDefault)),(e=>e.target));for(const c of e){var a=c.styles;if(c.linked){var o=c.linked&&r[c.linked];o?a=a.concat(o.styles):this.options.debug}for(const e of a){var s=`${null!=(t=c.target)?t:""}.${c.cssName}`;c.target!=e.target&&(s+=` ${e.target}`),i[c.target]==c&&(s=`.${this.className} ${c.target}, `+s),n+=this.styleToString(s,e.values)}}return Bt(n)}renderNotes(e,t,n){var r=e.map((e=>t[e])).filter((e=>e));if(r.length>0){var i=this.createElement("ol",null,this.renderElements(r));n.appendChild(i)}}renderElement(e){switch(e.type){case ee.Paragraph:return this.renderParagraph(e);case ee.BookmarkStart:return this.renderBookmarkStart(e);case ee.BookmarkEnd:return null;case ee.Run:return this.renderRun(e);case ee.Table:return this.renderTable(e);case ee.Row:return this.renderTableRow(e);case ee.Cell:return this.renderTableCell(e);case ee.Hyperlink:return this.renderHyperlink(e);case ee.SmartTag:return this.renderSmartTag(e);case ee.Drawing:return this.renderDrawing(e);case ee.Image:return this.renderImage(e);case ee.Text:case ee.Text:return this.renderText(e);case ee.DeletedText:return this.renderDeletedText(e);case ee.Tab:return this.renderTab(e);case ee.Symbol:return this.renderSymbol(e);case ee.Break:return this.renderBreak(e);case ee.Footer:return this.renderContainer(e,"footer");case ee.Header:return this.renderContainer(e,"header");case ee.Footnote:case ee.Endnote:return this.renderContainer(e,"li");case ee.FootnoteReference:return this.renderFootnoteReference(e);case ee.EndnoteReference:return this.renderEndnoteReference(e);case ee.NoBreakHyphen:return this.createElement("wbr");case ee.VmlPicture:return this.renderVmlPicture(e);case ee.VmlElement:return this.renderVmlElement(e);case ee.MmlMath:return this.renderContainerNS(e,xt.mathML,"math",{xmlns:xt.mathML});case ee.MmlMathParagraph:return this.renderContainer(e,"span");case ee.MmlFraction:return this.renderContainerNS(e,xt.mathML,"mfrac");case ee.MmlBase:return this.renderContainerNS(e,xt.mathML,e.parent.type==ee.MmlMatrixRow?"mtd":"mrow");case ee.MmlNumerator:case ee.MmlDenominator:case ee.MmlFunction:case ee.MmlLimit:case ee.MmlBox:return this.renderContainerNS(e,xt.mathML,"mrow");case ee.MmlGroupChar:return this.renderMmlGroupChar(e);case ee.MmlLimitLower:return this.renderContainerNS(e,xt.mathML,"munder");case ee.MmlMatrix:return this.renderContainerNS(e,xt.mathML,"mtable");case ee.MmlMatrixRow:return this.renderContainerNS(e,xt.mathML,"mtr");case ee.MmlRadical:return this.renderMmlRadical(e);case ee.MmlSuperscript:return this.renderContainerNS(e,xt.mathML,"msup");case ee.MmlSubscript:return this.renderContainerNS(e,xt.mathML,"msub");case ee.MmlDegree:case ee.MmlSuperArgument:case ee.MmlSubArgument:return this.renderContainerNS(e,xt.mathML,"mn");case ee.MmlFunctionName:return this.renderContainerNS(e,xt.mathML,"ms");case ee.MmlDelimiter:return this.renderMmlDelimiter(e);case ee.MmlRun:return this.renderMmlRun(e);case ee.MmlNary:return this.renderMmlNary(e);case ee.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case ee.MmlBar:return this.renderMmlBar(e);case ee.MmlEquationArray:return this.renderMllList(e);case ee.Inserted:return this.renderInserted(e);case ee.Deleted:return this.renderDeleted(e);case ee.CommentRangeStart:return this.renderCommentRangeStart(e);case ee.CommentRangeEnd:return this.renderCommentRangeEnd(e);case ee.CommentReference:return this.renderCommentReference(e)}return null}renderChildren(e,t){return this.renderElements(e.children,t)}renderElements(e,t){if(null==e)return null;var n=e.flatMap((e=>this.renderElement(e))).filter((e=>null!=e));return t&&St(t,n),n}renderContainer(e,t,n){return this.createElement(t,n,this.renderChildren(e))}renderContainerNS(e,t,n,r){return Et(t,n,r,this.renderChildren(e))}renderParagraph(e){var t,n,r,i=this.createElement("p");const a=this.findStyle(e.styleName);null!=e.tabs||(e.tabs=null==(t=null==a?void 0:a.paragraphProps)?void 0:t.tabs),this.renderClass(e,i),this.renderChildren(e,i),this.renderStyleValues(e.cssStyle,i),this.renderCommonProperties(i.style,e);const o=null!=(r=e.numbering)?r:null==(n=null==a?void 0:a.paragraphProps)?void 0:n.numbering;return o&&i.classList.add(this.numberingClass(o.id,o.level)),i}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}renderHyperlink(e){var t=this.createElement("a");if(this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href)t.href=e.href;else if(e.id){const n=this.document.documentPart.rels.find((t=>t.id==e.id&&"External"===t.targetMode));t.href=null==n?void 0:n.target}return t}renderSmartTag(e){var t=this.createElement("span");return this.renderChildren(e,t),t}renderCommentRangeStart(e){var t;if(!this.options.renderComments)return null;const n=new Range;null==(t=this.commentHighlight)||t.add(n);const r=this.htmlDocument.createComment(`start of comment #${e.id}`);return this.later((()=>n.setStart(r,0))),this.commentMap[e.id]=n,r}renderCommentRangeEnd(e){if(!this.options.renderComments)return null;const t=this.commentMap[e.id],n=this.htmlDocument.createComment(`end of comment #${e.id}`);return this.later((()=>null==t?void 0:t.setEnd(n,0))),n}renderCommentReference(e){var t;if(!this.options.renderComments)return null;var n=null==(t=this.document.commentsPart)?void 0:t.commentMap[e.id];if(!n)return null;const r=new DocumentFragment,i=_t("span",{className:`${this.className}-comment-ref`},["💬"]),a=_t("div",{className:`${this.className}-comment-popover`});return this.renderCommentContent(n,a),r.appendChild(this.htmlDocument.createComment(`comment #${n.id} by ${n.author} on ${n.date}`)),r.appendChild(i),r.appendChild(a),r}renderCommentContent(e,t){t.appendChild(_t("div",{className:`${this.className}-comment-author`},[e.author])),t.appendChild(_t("div",{className:`${this.className}-comment-date`},[new Date(e.date).toLocaleString()])),this.renderChildren(e,t)}renderDrawing(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then((e=>{t.src=e}))),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}renderBreak(e){return"textWrapping"==e.break?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent=`${this.currentFootnoteIds.length}`,t}renderEndnoteReference(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent=`${this.currentEndnoteIds.length}`,t}renderTab(e){var t,n=this.createElement("span");if(n.innerHTML="&emsp;",this.options.experimental){n.className=this.tabStopClass();var r=null==(t=Tt(e,ee.Paragraph))?void 0:t.tabs;this.currentTabs.push({stops:r,span:n})}return n}renderBookmarkStart(e){var t=this.createElement("span");return t.id=e.name,t}renderRun(e){if(e.fieldRun)return null;const t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){const n=this.createElement(e.verticalAlign);this.renderChildren(e,n),t.appendChild(n)}else this.renderChildren(e,t);return t}renderTable(e){let t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement("colgroup");for(let n of e){let e=this.createElement("col");n.width&&(e.style.width=n.width),t.appendChild(e)}return t}renderTableRow(e){let t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}renderTableCell(e){let t=this.createElement("td");const n=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[n]=t,t.rowSpan=1):this.currentVerticalMerge[n]&&(this.currentVerticalMerge[n].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[n]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){var t=_t("div");return this.renderChildren(e,t),t}renderVmlElement(e){var t,n,r=It("svg");r.setAttribute("style",e.cssStyleText);const i=this.renderVmlChildElement(e);return null!=(t=e.imageHref)&&t.id&&this.tasks.push(null==(n=this.document)?void 0:n.loadDocumentImage(e.imageHref.id,this.currentPart).then((e=>i.setAttribute("href",e)))),r.appendChild(i),requestAnimationFrame((()=>{const e=r.firstElementChild.getBBox();r.setAttribute("width",`${Math.ceil(e.x+e.width)}`),r.setAttribute("height",`${Math.ceil(e.y+e.height)}`)})),r}renderVmlChildElement(e){const t=It(e.tagName);Object.entries(e.attrs).forEach((([e,n])=>t.setAttribute(e,n)));for(let n of e.children)n.type==ee.VmlElement?t.appendChild(this.renderVmlChildElement(n)):t.appendChild(...q(this.renderElement(n)));return t}renderMmlRadical(e){var t;const n=e.children.find((e=>e.type==ee.MmlBase));if(null!=(t=e.props)&&t.hideDegree)return Et(xt.mathML,"msqrt",null,this.renderElements([n]));const r=e.children.find((e=>e.type==ee.MmlDegree));return Et(xt.mathML,"mroot",null,this.renderElements([n,r]))}renderMmlDelimiter(e){var t,n;const r=[];return r.push(Et(xt.mathML,"mo",null,[null!=(t=e.props.beginChar)?t:"("])),r.push(...this.renderElements(e.children)),r.push(Et(xt.mathML,"mo",null,[null!=(n=e.props.endChar)?n:")"])),Et(xt.mathML,"mrow",null,r)}renderMmlNary(e){var t,n;const r=[],i=H(e.children,(e=>e.type)),a=i[ee.MmlSuperArgument],o=i[ee.MmlSubArgument],s=a?Et(xt.mathML,"mo",null,q(this.renderElement(a))):null,c=o?Et(xt.mathML,"mo",null,q(this.renderElement(o))):null,l=Et(xt.mathML,"mo",null,[null!=(n=null==(t=e.props)?void 0:t.char)?n:"∫"]);return s||c?r.push(Et(xt.mathML,"munderover",null,[l,c,s])):s?r.push(Et(xt.mathML,"mover",null,[l,s])):c?r.push(Et(xt.mathML,"munder",null,[l,c])):r.push(l),r.push(...this.renderElements(i[ee.MmlBase].children)),Et(xt.mathML,"mrow",null,r)}renderMmlPreSubSuper(e){const t=[],n=H(e.children,(e=>e.type)),r=n[ee.MmlSuperArgument],i=n[ee.MmlSubArgument],a=r?Et(xt.mathML,"mo",null,q(this.renderElement(r))):null,o=i?Et(xt.mathML,"mo",null,q(this.renderElement(i))):null,s=Et(xt.mathML,"mo",null);return t.push(Et(xt.mathML,"msubsup",null,[s,o,a])),t.push(...this.renderElements(n[ee.MmlBase].children)),Et(xt.mathML,"mrow",null,t)}renderMmlGroupChar(e){const t="bot"===e.props.verticalJustification?"mover":"munder",n=this.renderContainerNS(e,xt.mathML,t);return e.props.char&&n.appendChild(Et(xt.mathML,"mo",null,[e.props.char])),n}renderMmlBar(e){const t=this.renderContainerNS(e,xt.mathML,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}renderMmlRun(e){const t=Et(xt.mathML,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}renderMllList(e){const t=Et(xt.mathML,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);for(let n of this.renderChildren(e))t.appendChild(Et(xt.mathML,"mtr",null,[Et(xt.mathML,"mtd",null,[n])]));return t}renderStyleValues(e,t){for(let n in e)n.startsWith("$")?t.setAttribute(n.slice(1),e[n]):t.style[n]=e[n]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){var t;return e&&(null==(t=this.styleMap)?void 0:t[e])}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(e,t,n=null){let r=`${e} {\r\n`;for(const e in t)e.startsWith("$")||(r+=`  ${e}: ${t[e]};\r\n`);return n&&(r+=n),r+"}\r\n"}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,n,r){var i;const a={tab:"\\9",space:"\\a0"};return`"${e.replace(/%\d*/g,(e=>{let t=parseInt(e.substring(1),10)-1;return`"counter(${this.numberingCounter(n,t)}, ${r})"`}))}${null!=(i=a[t])?i:""}"`}numFormatToCssValue(e){var t;return null!=(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])?t:e}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout((()=>{const e=At();for(let t of this.currentTabs)bt(t.span,t.stops,this.defaultTabSize,e)}),500))}later(e){this.postRenderTasks.push(e)}}function _t(e,t,n){return Et(void 0,e,t,n)}function It(e,t,n){return Et(xt.svg,e,t,n)}function Et(e,t,n,r){var i=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(i,n),r&&St(i,r),i}function kt(e){e.innerHTML=""}function St(e,t){t.forEach((t=>e.appendChild(V(t)?document.createTextNode(t):t)))}function Bt(e){return _t("style",{innerHTML:e})}function Mt(e,t){e.appendChild(document.createComment(t))}function Tt(e,t){for(var n=e.parent;null!=n&&n.type!=t;)n=n.parent;return n}const Ot={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1};function Dt(e,t){const n=h(h({},Ot),t);return Je.load(e,new dt(n),n)}function Pt(e,t,n,r){return d(this,null,(function*(){const i=h(h({},Ot),r),a=new Ct(window.document);return a.render(e,t,n,i),Promise.allSettled(a.tasks)}))}function Lt(e,t,n,r){return d(this,null,(function*(){const i=yield Dt(e,r);return yield Pt(i,t,n,r),i}))}const Qt={ignoreLastRenderedPageBreak:!1};function Rt(e,t={}){return"string"==typeof e?jt(e,t):Promise.resolve(e)}function jt(e,t){return fetch(e,t).then((e=>200!==e.status?Promise.reject(e):e))}function Nt(e){return d(this,null,(function*(){let t;return e instanceof Blob?t=e:e instanceof Response?t=yield e.blob():e instanceof ArrayBuffer&&(t=new Blob([e])),t}))}function Ft(e,t,n={}){if(!e)return t.innerHTML="",Promise.resolve();let r;return e instanceof Blob?r=e:e instanceof Response?r=e.blob():e instanceof ArrayBuffer&&(r=new Blob([e])),Lt(r,t,t,h(h({},Qt),n))}const zt={getData:Rt,render:Ft,getBlob:Nt};function Ht(e,t){return d(this,null,(function*(){t&&(t instanceof ArrayBuffer&&(t=new Blob([t])),Ut(e,URL.createObjectURL(t)))}))}function Ut(e,t){let n=document.createElement("a");n.download=e,n.style.display="none",n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}var Gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-office-docx"},[n("div",{ref:"rootRef",staticClass:"vue-office-docx-main"})])},Vt=[];function Wt(e,t,n,r,i,a,o,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(e){!(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&"undefined"!=typeof __VUE_SSR_CONTEXT__&&(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const qt=e.defineComponent({name:"VueOfficeDocx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(t,{emit:n}){const r=e.ref(null);let i=null;function a(){let e=r.value;zt.getData(t.src,t.requestOptions).then((r=>d(this,null,(function*(){i=yield zt.getBlob(r),zt.render(i,e,t.options).then((()=>{n("rendered")})).catch((r=>{zt.render("",e,t.options),n("error",r)}))})))).catch((r=>{zt.render("",e,t.options),n("error",r)}))}function o(e){Ht(e||`vue-office-docx-${(new Date).getTime()}.docx`,i)}return e.onMounted((()=>{t.src&&a()})),e.watch((()=>t.src),(()=>{t.src?a():zt.render("",r.value,t.options).then((()=>{n("rendered")}))})),{rootRef:r,save:o}}}),Yt={};var Kt=Wt(qt,Gt,Vt,!1,$t,null,null,null);function $t(e){for(let e in Yt)this[e]=Yt[e]}const Jt=Kt.exports;return Jt.install=function(e){e.component(Jt.name,Jt)},Jt}(n("8afd"));
/* WEBPACK VAR INJECTION */}).call(this,n("c8ba"),n("b639").Buffer,n("4362"))
/***/},
/***/"2d5b":
/***/function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}};
/***/},
/***/"2d7c":
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},
/***/"2d83":
/***/function(e,t,n){"use strict";var r=n("387f");
/**
 * Create an Error with the specified message, config, error code, request and response.
 *
 * @param {string} message The error message.
 * @param {Object} config The config.
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
 * @param {Object} [request] The request.
 * @param {Object} [response] The response.
 * @returns {Error} The created error.
 */e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},
/***/"2db9":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=m,t.getBezierCurveLength=
/**
 * @description Get the bezier curve length
 * @param {Array} bezierCurve bezierCurve data
 * @param {Number} precision  calculation accuracy. Recommended for 5-10. Default = 5
 * @return {Number|Boolean} BezierCurve length (Invalid input will return false)
 */
function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return!1;if(!(e instanceof Array))return!1;if("number"!=typeof t)return!1;return d(p([h(e,t).segmentPoints])[0])},t.default=void 0;var i=r(n("278c")),a=r(n("448a")),o=Math.sqrt,s=Math.pow,c=Math.ceil,l=Math.abs,u=50;
/**
 * @example data structure of bezierCurve
 * bezierCurve = [
 *  // Starting point of the curve
 *  [10, 10],
 *  // BezierCurve segment data (controlPoint1, controlPoint2, endPoint)
 *  [
 *    [20, 20], [40, 20], [50, 10]
 *  ],
 *  ...
 * ]
 */
/**
 * @description               Abstract the curve as a polyline consisting of N points
 * @param {Array} bezierCurve bezierCurve data
 * @param {Number} precision  calculation accuracy. Recommended for 1-20. Default = 5
 * @return {Object}           Calculation results and related data
 * @return {Array}            Option.segmentPoints Point data that constitutes a polyline after calculation
 * @return {Number}           Option.cycles Number of iterations
 * @return {Number}           Option.rounds The number of recursions for the last iteration
 */
function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.length-1,r=e[0],i=e[n][2],o=e.slice(1),s=o.map((function(e,t){var n=0===t?r:o[t-1][2];return f.apply(void 0,[n].concat((0,a.default)(e)))})),h=
/**
 * @description Calculate uniformly distributed points by iteratively
 * @param {Array} segmentPoints        Multiple setd of points that make up a polyline
 * @param {Array} getSegmentTPointFuns Functions of get a point on the curve with t
 * @param {Array} segments             BezierCurve data
 * @param {Number} precision           Calculation accuracy
 * @return {Object} Calculation results and related data
 * @return {Array}  Option.segmentPoints Point data that constitutes a polyline after calculation
 * @return {Number} Option.cycles Number of iterations
 * @return {Number} Option.rounds The number of recursions for the last iteration
 */
function(e,t,n,r){
// The number of loops for the current iteration
var i=4,a=1,o=function(){
// Recalculate the number of points per curve based on the last iteration data
var o=e.reduce((function(e,t){return e+t.length}),0);// Add last points of segment to calc exact segment length
e.forEach((function(e,t){return e.push(n[t][2])}));var s=p(e),u=s.reduce((function(e,t){return e+t.length}),0),h=s.map((function(e){return d(e)})),f=d(h),m=f/u,v=
/**
 * @description Get the sum of deviations between line segment and the average length
 * @param {Array} segmentPointsDistance Segment length of polyline
 * @param {Number} avgLength            Average length of the line segment
 * @return {Number} Deviations
 */
function(e,t){return e.map((function(e){return e.map((function(e){return l(e-t)}))})).map((function(e){return d(e)})).reduce((function(e,t){return e+t}),0)}(s,m);if(v<=r)return"break";o=c(m/r*o*1.1);var y=h.map((function(e){return c(e/f*o)}));// Calculate the points after redistribution
e=g(t,y),o=e.reduce((function(e,t){return e+t.length}),0);var A=JSON.parse(JSON.stringify(e));A.forEach((function(e,t){return e.push(n[t][2])})),u=(s=p(A)).reduce((function(e,t){return e+t.length}),0),h=s.map((function(e){return d(e)})),f=d(h),m=f/u;var b=1/o/10;// Recursively for each segment of the polyline
t.forEach((function(t,n){// Repeated recursive offset
for(var r=y[n],a=new Array(r).fill("").map((function(e,t){return t/y[n]})),o=0;o<i;o++)for(var s=p([e[n]])[0].map((function(e){return e-m})),c=0,l=0;l<r;l++){if(0===l)return;c+=s[l-1],a[l]-=b*c,a[l]>1&&(a[l]=1),a[l]<0&&(a[l]=0),e[n][l]=t(a[l])}})),i*=4,a++};// Number of iterations
do{if("break"===o())break}while(i<=1025);return e=e.reduce((function(e,t){return e.concat(t)}),[]),{segmentPoints:e,cycles:a,rounds:i}}
/**
 * @description Get the polyline corresponding to the Bezier curve
 * @param {Array} bezierCurve BezierCurve data
 * @param {Number} precision  Calculation accuracy. Recommended for 1-20. Default = 5
 * @return {Array|Boolean} Point data that constitutes a polyline after calculation (Invalid input will return false)
 */(g(s,new Array(n).fill(u)),s,o,t);return h.segmentPoints.push(i),h}
/**
 * @description  Generate a method for obtaining corresponding point by t according to curve data
 * @param {Array} beginPoint    BezierCurve begin point. [x, y]
 * @param {Array} controlPoint1 BezierCurve controlPoint1. [x, y]
 * @param {Array} controlPoint2 BezierCurve controlPoint2. [x, y]
 * @param {Array} endPoint      BezierCurve end point. [x, y]
 * @return {Function} Expected function
 */function f(e,t,n,r){return function(i){var a=1-i,o=s(a,3),c=s(a,2),l=s(i,3),u=s(i,2);return[e[0]*o+3*t[0]*i*c+3*n[0]*u*a+r[0]*l,e[1]*o+3*t[1]*i*c+3*n[1]*u*a+r[1]*l]}}
/**
 * @description Get the distance between two points
 * @param {Array} point1 BezierCurve begin point. [x, y]
 * @param {Array} point2 BezierCurve controlPoint1. [x, y]
 * @return {Number} Expected distance
 */
/**
 * @description Get the sum of the array of numbers
 * @param {Array} nums An array of numbers
 * @return {Number} Expected sum
 */
function d(e){return e.reduce((function(e,t){return e+t}),0)}
/**
 * @description Get the distance of multiple sets of points
 * @param {Array} segmentPoints Multiple sets of point data
 * @return {Array} Distance of multiple sets of point data
 */function p(e){return e.map((function(e,t){return new Array(e.length-1).fill(0).map((function(t,n){return r=e[n],a=e[n+1],c=(0,i.default)(r,2),l=c[0],u=c[1],h=(0,i.default)(a,2),f=h[0],d=h[1],o(s(l-f,2)+s(u-d,2));var r,a,c,l,u,h,f,d}))}))}
/**
 * @description Get the distance of multiple sets of points
 * @param {Array} segmentPoints Multiple sets of point data
 * @return {Array} Distance of multiple sets of point data
 */function g(e,t){return e.map((function(e,n){var r=1/t[n];return new Array(t[n]).fill("").map((function(t,n){return e(n*r)}))}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return!!e&&(e instanceof Array&&("number"==typeof t&&h(e,t).segmentPoints))}var v=m;t.default=v},
/***/"2dc5":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("21a1"),i=n("6d8b"),a=n("d5b7"),o=n("9850"),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r.a)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i.indexOf(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i.indexOf(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new o.a(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var s=n[a];if(!s.ignore&&!s.invisible){var c=s.getBoundingRect(),l=s.getLocalTransform(r);l?(o.a.applyTransform(t,c,l),(i=i||t.clone()).union(t)):(i=i||c.clone()).union(c)}}return i||t},t}(a.a);
/* harmony import */s.prototype.type="group",
/* harmony default export */t.a=s},
/***/"2dcb":
/***/function(e,t,n){var r=n("91e9")(Object.getPrototypeOf,Object);
/** Built-in value references. */e.exports=r},
/***/"2deb":
/***/function(e,t,n){"use strict";
/* harmony default export */t.a={
// Options.jsx
items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",
// Pagination.jsx
prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},
/***/"2e67":
/***/function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},
/***/"2eaa":
/***/function(e,t,n){var r=n("d612"),i=n("8db3"),a=n("5edf"),o=n("7948"),s=n("b047f"),c=n("c584");
/** Used as the size to enable large array optimizations. */e.exports=
/**
 * The base implementation of methods like `_.difference` without support
 * for excluding multiple arrays or iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Array} values The values to exclude.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 */
function(e,t,n,l){var u=-1,h=i,f=!0,d=e.length,p=[],g=t.length;if(!d)return p;n&&(t=o(t,s(n))),l?(h=a,f=!1):t.length>=200&&(h=c,f=!1,t=new r(t));e:for(;++u<d;){var m=e[u],v=null==n?m:n(m);if(m=l||0!==m?m:0,f&&v==v){for(var y=g;y--;)if(t[y]===v)continue e;p.push(m)}else h(t,v,l)||p.push(m)}return p}},
/***/"2ec1":
/***/function(e,t,n){var r=n("100e"),i=n("9aff");
/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t}))}},
/***/"2ef0":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e,r){var i;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var a,o="Expected a function",s="__lodash_hash_undefined__",c="__lodash_placeholder__",l=16,u=32,h=64,f=128,d=256,p=1/0,g=9007199254740991,m=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",h],["rearg",d]],A="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",C="[object Error]",_="[object Function]",I="[object GeneratorFunction]",E="[object Map]",k="[object Number]",S="[object Object]",B="[object Promise]",M="[object RegExp]",T="[object Set]",O="[object String]",D="[object Symbol]",P="[object WeakMap]",L="[object ArrayBuffer]",Q="[object DataView]",R="[object Float32Array]",j="[object Float64Array]",N="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",H="[object Uint8Array]",U="[object Uint8ClampedArray]",G="[object Uint16Array]",V="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,J=RegExp(K.source),X=RegExp($.source),Z=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ae.source),se=/^\s+/,ce=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,he=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,Ae=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ie="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Be="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",De="["+Ie+"]",Pe="["+Te+"]",Le="["+Ee+"]",Qe="\\d+",Re="["+ke+"]",je="["+Se+"]",Ne="[^"+Ie+Te+Qe+ke+Se+Be+"]",Fe="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ie+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+Be+"]",Ve="\\u200d",We="(?:"+je+"|"+Ne+")",qe="(?:"+Ge+"|"+Ne+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Le+"|"+Fe+")"+"?",Je="["+Me+"]?",Xe=Je+$e+("(?:"+Ve+"(?:"+[ze,He,Ue].join("|")+")"+Je+$e+")*"),Ze="(?:"+[Re,He,Ue].join("|")+")"+Xe,et="(?:"+[ze+Le+"?",Le,He,Ue,De].join("|")+")",tt=RegExp(Oe,"g"),nt=RegExp(Le,"g"),rt=RegExp(Fe+"(?="+Fe+")|"+et+Xe,"g"),it=RegExp([Ge+"?"+je+"+"+Ye+"(?="+[Pe,Ge,"$"].join("|")+")",qe+"+"+Ke+"(?="+[Pe,Ge+We,"$"].join("|")+")",Ge+"?"+We+"+"+Ye,Ge+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qe,Ze].join("|"),"g"),at=RegExp("["+Ve+Ie+Ee+Me+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,lt={};
/** Used as the semantic version number. */lt[R]=lt[j]=lt[N]=lt[F]=lt[z]=lt[H]=lt[U]=lt[G]=lt[V]=!0,lt[A]=lt[b]=lt[L]=lt[w]=lt[Q]=lt[x]=lt[C]=lt[_]=lt[E]=lt[k]=lt[S]=lt[M]=lt[T]=lt[O]=lt[P]=!1;
/** Used to identify `toStringTag` values supported by `_.clone`. */
var ut={};ut[A]=ut[b]=ut[L]=ut[Q]=ut[w]=ut[x]=ut[R]=ut[j]=ut[N]=ut[F]=ut[z]=ut[E]=ut[k]=ut[S]=ut[M]=ut[T]=ut[O]=ut[D]=ut[H]=ut[U]=ut[G]=ut[V]=!0,ut[C]=ut[_]=ut[P]=!1;
/** Used to map Latin Unicode letters to basic Latin letters. */
var ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,pt="object"==typeof e&&e&&e.Object===Object&&e,gt="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||gt||Function("return this")(),vt=t&&!t.nodeType&&t,yt=vt&&"object"==typeof r&&r&&!r.nodeType&&r,At=yt&&yt.exports===vt,bt=At&&pt.process,wt=function(){try{
// Use `util.types` for Node.js 10+.
var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util");
// Legacy `process.binding('util')` for Node.js < 10.
}catch(e){}}(),xt=wt&&wt.isArrayBuffer,Ct=wt&&wt.isDate,_t=wt&&wt.isMap,It=wt&&wt.isRegExp,Et=wt&&wt.isSet,kt=wt&&wt.isTypedArray;
/** Used to map characters to HTML entities. */
/*--------------------------------------------------------------------------*/
/**
   * A faster alternative to `Function#apply`, this function invokes `func`
   * with the `this` binding of `thisArg` and the arguments of `args`.
   *
   * @private
   * @param {Function} func The function to invoke.
   * @param {*} thisArg The `this` binding of `func`.
   * @param {Array} args The arguments to invoke `func` with.
   * @returns {*} Returns the result of `func`.
   */
function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}
/**
   * A specialized version of `baseAggregator` for arrays.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} setter The function to set `accumulator` values.
   * @param {Function} iteratee The iteratee to transform keys.
   * @param {Object} accumulator The initial aggregated object.
   * @returns {Function} Returns `accumulator`.
   */function Bt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}
/**
   * A specialized version of `_.forEach` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}
/**
   * A specialized version of `_.forEachRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}
/**
   * A specialized version of `_.every` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if all elements pass the predicate check,
   *  else `false`.
   */function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}
/**
   * A specialized version of `_.filter` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {Array} Returns the new filtered array.
   */function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}
/**
   * A specialized version of `_.includes` for arrays without support for
   * specifying an index to search from.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */function Pt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}
/**
   * This function is like `arrayIncludes` except that it accepts a comparator.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */function Lt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}
/**
   * A specialized version of `_.map` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the new mapped array.
   */function Qt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}
/**
   * Appends the elements of `values` to `array`.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {Array} values The values to append.
   * @returns {Array} Returns `array`.
   */function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}
/**
   * A specialized version of `_.reduce` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the first element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */function jt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}
/**
   * A specialized version of `_.reduceRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the last element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */function Nt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}
/**
   * A specialized version of `_.some` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if any element passes the predicate check,
   *  else `false`.
   */function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}
/**
   * Gets the size of an ASCII `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */var zt=Yt("length");
/**
   * Converts an ASCII `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
/**
   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
   * without support for iteratee shorthands, which iterates over `collection`
   * using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the found element or its key, else `undefined`.
   */
function Ht(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}
/**
   * The base implementation of `_.findIndex` and `_.findLastIndex` without
   * support for iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {number} fromIndex The index to search from.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */function Ut(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}
/**
   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */function Gt(e,t,n){return t==t?
/**
   * A specialized version of `_.indexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}
/**
   * A specialized version of `_.lastIndexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */(e,t,n):Ut(e,Wt,n)}
/**
   * This function is like `baseIndexOf` except that it accepts a comparator.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */function Vt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}
/**
   * The base implementation of `_.isNaN` without support for number objects.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
   */function Wt(e){return e!=e}
/**
   * The base implementation of `_.mean` and `_.meanBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the mean.
   */function qt(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:m}
/**
   * The base implementation of `_.property` without support for deep paths.
   *
   * @private
   * @param {string} key The key of the property to get.
   * @returns {Function} Returns the new accessor function.
   */function Yt(e){return function(t){return null==t?a:t[e]}}
/**
   * The base implementation of `_.propertyOf` without support for deep paths.
   *
   * @private
   * @param {Object} object The object to query.
   * @returns {Function} Returns the new accessor function.
   */function Kt(e){return function(t){return null==e?a:e[t]}}
/**
   * The base implementation of `_.reduce` and `_.reduceRight`, without support
   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} accumulator The initial value.
   * @param {boolean} initAccum Specify using the first or last element of
   *  `collection` as the initial value.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the accumulated value.
   */function $t(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}
/**
   * The base implementation of `_.sortBy` which uses `comparer` to define the
   * sort order of `array` and replaces criteria objects with their corresponding
   * values.
   *
   * @private
   * @param {Array} array The array to sort.
   * @param {Function} comparer The function to define sort order.
   * @returns {Array} Returns `array`.
   */
/**
   * The base implementation of `_.sum` and `_.sumBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the sum.
   */
function Jt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}
/**
   * The base implementation of `_.times` without support for iteratee shorthands
   * or max array length checks.
   *
   * @private
   * @param {number} n The number of times to invoke `iteratee`.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the array of results.
   */function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}
/**
   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
   * of key-value pairs for `object` corresponding to the property names of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the key-value pairs.
   */
/**
   * The base implementation of `_.trim`.
   *
   * @private
   * @param {string} string The string to trim.
   * @returns {string} Returns the trimmed string.
   */
function Zt(e){return e?e.slice(0,vn(e)+1).replace(se,""):e}
/**
   * The base implementation of `_.unary` without support for storing metadata.
   *
   * @private
   * @param {Function} func The function to cap arguments for.
   * @returns {Function} Returns the new capped function.
   */function en(e){return function(t){return e(t)}}
/**
   * The base implementation of `_.values` and `_.valuesIn` which creates an
   * array of `object` property values corresponding to the property names
   * of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the array of property values.
   */function tn(e,t){return Qt(t,(function(t){return e[t]}))}
/**
   * Checks if a `cache` value for `key` exists.
   *
   * @private
   * @param {Object} cache The cache to query.
   * @param {string} key The key of the entry to check.
   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
   */function nn(e,t){return e.has(t)}
/**
   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the first unmatched string symbol.
   */function rn(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}
/**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the last unmatched string symbol.
   */function an(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}
/**
   * Gets the number of `placeholder` occurrences in `array`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} placeholder The placeholder to search for.
   * @returns {number} Returns the placeholder count.
   */
/**
   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
   * letters to basic Latin letters.
   *
   * @private
   * @param {string} letter The matched letter to deburr.
   * @returns {string} Returns the deburred letter.
   */
var on=Kt({
// Latin-1 Supplement block.
"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss",
// Latin Extended-A block.
"Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),sn=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});
/**
   * Used by `_.escape` to convert characters to HTML entities.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
/**
   * Used by `_.template` to escape characters for inclusion in compiled string literals.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
function cn(e){return"\\"+ht[e]}
/**
   * Gets the value at `key` of `object`.
   *
   * @private
   * @param {Object} [object] The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */
/**
   * Checks if `string` contains Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
   */
function ln(e){return at.test(e)}
/**
   * Checks if `string` contains a word composed of Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a word is found, else `false`.
   */
/**
   * Converts `map` to its key-value pairs.
   *
   * @private
   * @param {Object} map The map to convert.
   * @returns {Array} Returns the key-value pairs.
   */
function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}
/**
   * Creates a unary function that invokes `func` with its argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */function hn(e,t){return function(n){return e(t(n))}}
/**
   * Replaces all `placeholder` elements in `array` with an internal placeholder
   * and returns an array of their indexes.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {*} placeholder The placeholder to replace.
   * @returns {Array} Returns the new array of placeholder indexes.
   */function fn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==c||(e[n]=c,a[i++]=n)}return a}
/**
   * Converts `set` to an array of its values.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the values.
   */function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}
/**
   * Converts `set` to its value-value pairs.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the value-value pairs.
   */function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}
/**
   * Gets the number of symbols in `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the string size.
   */
function gn(e){return ln(e)?
/**
   * Gets the size of a Unicode `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
function(e){var t=rt.lastIndex=0;for(;rt.test(e);)++t;return t}
/**
   * Converts a Unicode `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */(e):zt(e)}
/**
   * Converts `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */function mn(e){return ln(e)?function(e){return e.match(rt)||[]}
/**
   * Splits a Unicode `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */(e):function(e){return e.split("")}
/**
   * Splits an ASCII `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */(e)}
/**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
   * character of `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the index of the last non-whitespace character.
   */function vn(e){for(var t=e.length;t--&&ce.test(e.charAt(t)););return t}
/**
   * Used by `_.unescape` to convert HTML entities to characters.
   *
   * @private
   * @param {string} chr The matched character to unescape.
   * @returns {string} Returns the unescaped character.
   */var yn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});
/*--------------------------------------------------------------------------*/
/**
   * Create a new pristine `lodash` function using the `context` object.
   *
   * @static
   * @memberOf _
   * @since 1.1.0
   * @category Util
   * @param {Object} [context=root] The context object.
   * @returns {Function} Returns a new `lodash` function.
   * @example
   *
   * _.mixin({ 'foo': _.constant('foo') });
   *
   * var lodash = _.runInContext();
   * lodash.mixin({ 'bar': lodash.constant('bar') });
   *
   * _.isFunction(_.foo);
   * // => true
   * _.isFunction(_.bar);
   * // => false
   *
   * lodash.isFunction(lodash.foo);
   * // => false
   * lodash.isFunction(lodash.bar);
   * // => true
   *
   * // Create a suped-up `defer` in Node.js.
   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
   */
var An=function e(t){
/** Built-in constructor references. */
var n,r=(t=null==t?mt:An.defaults(mt.Object(),t,An.pick(mt,st))).Array,i=t.Date,ce=t.Error,Ie=t.Function,Ee=t.Math,ke=t.Object,Se=t.RegExp,Be=t.String,Me=t.TypeError,Te=r.prototype,Oe=Ie.prototype,De=ke.prototype,Pe=t["__core-js_shared__"],Le=Oe.toString,Qe=De.hasOwnProperty,Re=0,je=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=De.toString,Fe=Le.call(ke),ze=mt._,He=Se("^"+Le.call(Qe).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=At?t.Buffer:a,Ge=t.Symbol,Ve=t.Uint8Array,We=Ue?Ue.allocUnsafe:a,qe=hn(ke.getPrototypeOf,ke),Ye=ke.create,Ke=De.propertyIsEnumerable,$e=Te.splice,Je=Ge?Ge.isConcatSpreadable:a,Xe=Ge?Ge.iterator:a,Ze=Ge?Ge.toStringTag:a,et=function(){try{var e=fa(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,at=i&&i.now!==mt.Date.now&&i.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=Ee.ceil,gt=Ee.floor,vt=ke.getOwnPropertySymbols,yt=Ue?Ue.isBuffer:a,bt=t.isFinite,wt=Te.join,zt=hn(ke.keys,ke),Kt=Ee.max,bn=Ee.min,wn=i.now,xn=t.parseInt,Cn=Ee.random,_n=Te.reverse,In=fa(t,"DataView"),En=fa(t,"Map"),kn=fa(t,"Promise"),Sn=fa(t,"Set"),Bn=fa(t,"WeakMap"),Mn=fa(ke,"create"),Tn=Bn&&new Bn,On={},Dn=ja(In),Pn=ja(En),Ln=ja(kn),Qn=ja(Sn),Rn=ja(Bn),jn=Ge?Ge.prototype:a,Nn=jn?jn.valueOf:a,Fn=jn?jn.toString:a;
/** Used for built-in method references. */
/*------------------------------------------------------------------------*/
/**
     * Creates a `lodash` object which wraps `value` to enable implicit method
     * chain sequences. Methods that operate on and return arrays, collections,
     * and functions can be chained together. Methods that retrieve a single value
     * or may return a primitive value will automatically end the chain sequence
     * and return the unwrapped value. Otherwise, the value must be unwrapped
     * with `_#value`.
     *
     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
     * enabled using `_.chain`.
     *
     * The execution of chained methods is lazy, that is, it's deferred until
     * `_#value` is implicitly or explicitly called.
     *
     * Lazy evaluation allows several methods to support shortcut fusion.
     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
     * the creation of intermediate arrays and can greatly reduce the number of
     * iteratee executions. Sections of a chain sequence qualify for shortcut
     * fusion if the section is applied to an array and iteratees accept only
     * one argument. The heuristic for whether a section qualifies for shortcut
     * fusion is subject to change.
     *
     * Chaining is supported in custom builds as long as the `_#value` method is
     * directly or indirectly included in the build.
     *
     * In addition to lodash methods, wrappers have `Array` and `String` methods.
     *
     * The wrapper `Array` methods are:
     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
     *
     * The wrapper `String` methods are:
     * `replace` and `split`
     *
     * The wrapper methods that support shortcut fusion are:
     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
     *
     * The chainable wrapper methods are:
     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
     * `zipObject`, `zipObjectDeep`, and `zipWith`
     *
     * The wrapper methods that are **not** chainable by default are:
     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
     * `upperFirst`, `value`, and `words`
     *
     * @name _
     * @constructor
     * @category Seq
     * @param {*} value The value to wrap in a `lodash` instance.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2, 3]);
     *
     * // Returns an unwrapped value.
     * wrapped.reduce(_.add);
     * // => 6
     *
     * // Returns a wrapped value.
     * var squares = wrapped.map(square);
     *
     * _.isArray(squares);
     * // => false
     *
     * _.isArray(squares.value());
     * // => true
     */
function zn(e){if(ns(e)&&!Vo(e)&&!(e instanceof Vn)){if(e instanceof Gn)return e;if(Qe.call(e,"__wrapped__"))return Na(e)}return new Gn(e)}
/**
     * The base implementation of `_.create` without support for assigning
     * properties to the created object.
     *
     * @private
     * @param {Object} proto The object to inherit from.
     * @returns {Object} Returns the new object.
     */var Hn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();
/**
     * The function whose prototype chain sequence wrappers inherit from.
     *
     * @private
     */function Un(){
// No operation performed.
}
/**
     * The base constructor for creating `lodash` wrapper objects.
     *
     * @private
     * @param {*} value The value to wrap.
     * @param {boolean} [chainAll] Enable explicit method chain sequences.
     */function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}
/**
     * By default, the template delimiters used by lodash are like those in
     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
     * following template settings to use alternative delimiters.
     *
     * @static
     * @memberOf _
     * @type {Object}
     */
/*------------------------------------------------------------------------*/
/**
     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
     *
     * @private
     * @constructor
     * @param {*} value The value to wrap.
     */
function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}
/**
     * Creates a clone of the lazy wrapper object.
     *
     * @private
     * @name clone
     * @memberOf LazyWrapper
     * @returns {Object} Returns the cloned `LazyWrapper` object.
     */
/*------------------------------------------------------------------------*/
/**
     * Creates a hash object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
/**
     * Removes all key-value entries from the hash.
     *
     * @private
     * @name clear
     * @memberOf Hash
     */
/*------------------------------------------------------------------------*/
/**
     * Creates an list cache object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
/**
     * Removes all key-value entries from the list cache.
     *
     * @private
     * @name clear
     * @memberOf ListCache
     */
/*------------------------------------------------------------------------*/
/**
     * Creates a map cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
/**
     * Removes all key-value entries from the map.
     *
     * @private
     * @name clear
     * @memberOf MapCache
     */
/*------------------------------------------------------------------------*/
/**
     *
     * Creates an array cache object to store unique values.
     *
     * @private
     * @constructor
     * @param {Array} [values] The values to cache.
     */
function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}
/**
     * Adds `value` to the array cache.
     *
     * @private
     * @name add
     * @memberOf SetCache
     * @alias push
     * @param {*} value The value to cache.
     * @returns {Object} Returns the cache instance.
     */
/*------------------------------------------------------------------------*/
/**
     * Creates a stack cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
function $n(e){var t=this.__data__=new qn(e);this.size=t.size}
/**
     * Removes all key-value entries from the stack.
     *
     * @private
     * @name clear
     * @memberOf Stack
     */
/*------------------------------------------------------------------------*/
/**
     * Creates an array of the enumerable property names of the array-like `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @param {boolean} inherited Specify returning inherited property names.
     * @returns {Array} Returns the array of property names.
     */
function Jn(e,t){var n=Vo(e),r=!n&&Go(e),i=!n&&!r&&Ko(e),a=!n&&!r&&!i&&us(e),o=n||r||i||a,s=o?Xt(e.length,Be):[],c=s.length;for(var l in e)!t&&!Qe.call(e,l)||o&&(
// Safari 9 has enumerable `arguments.length` in strict mode.
"length"==l||
// Node.js 0.10 has enumerable non-index properties on buffers.
i&&("offset"==l||"parent"==l)||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||
// Skip index properties.
Aa(l,c))||s.push(l);return s}
/**
     * A specialized version of `_.sample` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @returns {*} Returns the random element.
     */function Xn(e){var t=e.length;return t?e[Kr(0,t-1)]:a}
/**
     * A specialized version of `_.sampleSize` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */function Zn(e,t){return La(Mi(e),cr(t,0,e.length))}
/**
     * A specialized version of `_.shuffle` for arrays.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */function er(e){return La(Mi(e))}
/**
     * This function is like `assignValue` except that it doesn't assign
     * `undefined` values.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */function tr(e,t,n){(n!==a&&!zo(e[t],n)||n===a&&!(t in e))&&or(e,t,n)}
/**
     * Assigns `value` to `key` of `object` if the existing value is not equivalent
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */function nr(e,t,n){var r=e[t];Qe.call(e,t)&&zo(r,n)&&(n!==a||t in e)||or(e,t,n)}
/**
     * Gets the index at which the `key` is found in `array` of key-value pairs.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {*} key The key to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     */function rr(e,t){for(var n=e.length;n--;)if(zo(e[n][0],t))return n;return-1}
/**
     * Aggregates elements of `collection` on `accumulator` with keys transformed
     * by `iteratee` and values set by `setter`.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform keys.
     * @param {Object} accumulator The initial aggregated object.
     * @returns {Function} Returns `accumulator`.
     */function ir(e,t,n,r){return dr(e,(function(e,i,a){t(r,e,n(e),a)})),r}
/**
     * The base implementation of `_.assign` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */function ar(e,t){return e&&Ti(t,Os(t),e)}
/**
     * The base implementation of `_.assignIn` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
/**
     * The base implementation of `assignValue` and `assignMergeValue` without
     * value checks.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
function or(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}
/**
     * The base implementation of `_.at` without support for individual paths.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {string[]} paths The property paths to pick.
     * @returns {Array} Returns the picked elements.
     */function sr(e,t){for(var n=-1,i=t.length,o=r(i),s=null==e;++n<i;)o[n]=s?a:ks(e,t[n]);return o}
/**
     * The base implementation of `_.clamp` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     */function cr(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}
/**
     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
     * traversed objects.
     *
     * @private
     * @param {*} value The value to clone.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Deep clone
     *  2 - Flatten inherited properties
     *  4 - Clone symbols
     * @param {Function} [customizer] The function to customize cloning.
     * @param {string} [key] The key of `value`.
     * @param {Object} [object] The parent object of `value`.
     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
     * @returns {*} Returns the cloned value.
     */function lr(e,t,n,r,i,o){var s,c=1&t,l=2&t,u=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!ts(e))return e;var h=Vo(e);if(h){if(s=
/**
     * Initializes an array clone.
     *
     * @private
     * @param {Array} array The array to clone.
     * @returns {Array} Returns the initialized clone.
     */
function(e){var t=e.length,n=new e.constructor(t);
// Add properties assigned by `RegExp#exec`.
t&&"string"==typeof e[0]&&Qe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}
/**
     * Initializes an object clone.
     *
     * @private
     * @param {Object} object The object to clone.
     * @returns {Object} Returns the initialized clone.
     */(e),!c)return Mi(e,s)}else{var f=ga(e),d=f==_||f==I;if(Ko(e))return _i(e,c);if(f==S||f==A||d&&!i){if(s=l||d?{}:va(e),!c)return l?
/**
     * Copies own and inherited symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
function(e,t){return Ti(e,pa(e),t)}
/**
     * Creates a function like `_.groupBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} [initializer] The accumulator object initializer.
     * @returns {Function} Returns the new aggregator function.
     */(e,function(e,t){return e&&Ti(t,Ds(t),e)}(s,e)):
/**
     * Copies own symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
function(e,t){return Ti(e,da(e),t)}(e,ar(s,e))}else{if(!ut[f])return i?e:{};s=
/**
     * Initializes an object clone based on its `toStringTag`.
     *
     * **Note:** This function only supports cloning values with tags of
     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
     *
     * @private
     * @param {Object} object The object to clone.
     * @param {string} tag The `toStringTag` of the object to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the initialized clone.
     */
function(e,t,n){var r=e.constructor;switch(t){case L:return Ii(e);case w:case x:return new r(+e);case Q:
/**
     * Creates a clone of `dataView`.
     *
     * @private
     * @param {Object} dataView The data view to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned data view.
     */
return function(e,t){var n=t?Ii(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}
/**
     * Creates a clone of `regexp`.
     *
     * @private
     * @param {Object} regexp The regexp to clone.
     * @returns {Object} Returns the cloned regexp.
     */(e,n);case R:case j:case N:case F:case z:case H:case U:case G:case V:return Ei(e,n);case E:return new r;case k:case O:return new r(e);case M:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}
/**
     * Creates a clone of the `symbol` object.
     *
     * @private
     * @param {Object} symbol The symbol object to clone.
     * @returns {Object} Returns the cloned symbol object.
     */(e);case T:return new r;case D:return i=e,Nn?ke(Nn.call(i)):{}}var i;
/**
     * Creates a clone of `typedArray`.
     *
     * @private
     * @param {Object} typedArray The typed array to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned typed array.
     */}
/**
     * Inserts wrapper `details` in a comment at the top of the `source` body.
     *
     * @private
     * @param {string} source The source to modify.
     * @returns {Array} details The details to insert.
     * @returns {string} Returns the modified source.
     */(e,f,c)}}
// Check for circular references and return its corresponding clone.
o||(o=new $n);var p=o.get(e);if(p)return p;o.set(e,s),ss(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,o))})):rs(e)&&e.forEach((function(r,i){s.set(i,lr(r,t,n,i,e,o))}));var g=h?a:(u?l?aa:ia:l?Ds:Os)(e);return Mt(g||e,(function(r,i){g&&(r=e[i=r]),
// Recursively populate clone (susceptible to call stack limits).
nr(s,i,lr(r,t,n,i,e,o))})),s}
/**
     * The base implementation of `_.conforms` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     */
/**
     * The base implementation of `_.conformsTo` which accepts `props` to check.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     */
function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}
/**
     * The base implementation of `_.delay` and `_.defer` which accepts `args`
     * to provide to `func`.
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {Array} args The arguments to provide to `func`.
     * @returns {number|Object} Returns the timer id or timeout object.
     */function hr(e,t,n){if("function"!=typeof e)throw new Me(o);return Ta((function(){e.apply(a,n)}),t)}
/**
     * The base implementation of methods like `_.difference` without support
     * for excluding multiple arrays or iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Array} values The values to exclude.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     */function fr(e,t,n,r){var i=-1,a=Pt,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Qt(t,en(n))),r?(a=Lt,o=!1):t.length>=200&&(a=nn,o=!1,t=new Kn(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var f=l;f--;)if(t[f]===h)continue e;c.push(u)}else a(t,h,r)||c.push(u)}return c}
/**
     * The base implementation of `_.forEach` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */zn.templateSettings={
/**
       * Used to detect `data` property values to be HTML-escaped.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
escape:Z,
/**
       * Used to detect code to be evaluated.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
evaluate:ee,
/**
       * Used to detect `data` property values to inject.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
interpolate:te,
/**
       * Used to reference the data object in the template text.
       *
       * @memberOf _.templateSettings
       * @type {string}
       */
variable:"",
/**
       * Used to import variables into the compiled template.
       *
       * @memberOf _.templateSettings
       * @type {Object}
       */
imports:{
/**
         * A reference to the `lodash` function.
         *
         * @memberOf _.templateSettings.imports
         * @type {Function}
         */
_:zn}},
// Ensure wrappers are instances of `baseLodash`.
zn.prototype=Un.prototype,zn.prototype.constructor=zn,Gn.prototype=Hn(Un.prototype),Gn.prototype.constructor=Gn,
// Ensure `LazyWrapper` is an instance of `baseLodash`.
Vn.prototype=Hn(Un.prototype),Vn.prototype.constructor=Vn,
// Add methods to `Hash`.
Wn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0}
/**
     * Removes `key` and its value from the hash.
     *
     * @private
     * @name delete
     * @memberOf Hash
     * @param {Object} hash The hash to modify.
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */,Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}
/**
     * Gets the hash value for `key`.
     *
     * @private
     * @name get
     * @memberOf Hash
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */,Wn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===s?a:n}return Qe.call(t,e)?t[e]:a}
/**
     * Checks if a hash value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Hash
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */,Wn.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==a:Qe.call(t,e)}
/**
     * Sets the hash `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Hash
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the hash instance.
     */,Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===a?s:t,this},
// Add methods to `ListCache`.
qn.prototype.clear=function(){this.__data__=[],this.size=0}
/**
     * Removes `key` and its value from the list cache.
     *
     * @private
     * @name delete
     * @memberOf ListCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */,qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)}
/**
     * Gets the list cache value for `key`.
     *
     * @private
     * @name get
     * @memberOf ListCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */,qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?a:t[n][1]}
/**
     * Checks if a list cache value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf ListCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */,qn.prototype.has=function(e){return rr(this.__data__,e)>-1}
/**
     * Sets the list cache `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf ListCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the list cache instance.
     */,qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},
// Add methods to `MapCache`.
Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||qn),string:new Wn}}
/**
     * Removes `key` and its value from the map.
     *
     * @private
     * @name delete
     * @memberOf MapCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */,Yn.prototype.delete=function(e){var t=ua(this,e).delete(e);return this.size-=t?1:0,t}
/**
     * Gets the map value for `key`.
     *
     * @private
     * @name get
     * @memberOf MapCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */,Yn.prototype.get=function(e){return ua(this,e).get(e)}
/**
     * Checks if a map value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf MapCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */,Yn.prototype.has=function(e){return ua(this,e).has(e)}
/**
     * Sets the map `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf MapCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the map cache instance.
     */,Yn.prototype.set=function(e,t){var n=ua(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},
// Add methods to `SetCache`.
Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,s),this}
/**
     * Checks if `value` is in the array cache.
     *
     * @private
     * @name has
     * @memberOf SetCache
     * @param {*} value The value to search for.
     * @returns {number} Returns `true` if `value` is found, else `false`.
     */,Kn.prototype.has=function(e){return this.__data__.has(e)},
// Add methods to `Stack`.
$n.prototype.clear=function(){this.__data__=new qn,this.size=0}
/**
     * Removes `key` and its value from the stack.
     *
     * @private
     * @name delete
     * @memberOf Stack
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */,$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}
/**
     * Gets the stack value for `key`.
     *
     * @private
     * @name get
     * @memberOf Stack
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */,$n.prototype.get=function(e){return this.__data__.get(e)}
/**
     * Checks if a stack value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Stack
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */,$n.prototype.has=function(e){return this.__data__.has(e)}
/**
     * Sets the stack `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Stack
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the stack cache instance.
     */,$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var dr=Pi(wr),pr=Pi(xr,!0);
/**
     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
/**
     * The base implementation of `_.every` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`
     */
function gr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}
/**
     * The base implementation of methods like `_.max` and `_.min` which accepts a
     * `comparator` to determine the extremum value.
     *
     * @private
     * @param {Array} array The array to iterate over.
     * @param {Function} iteratee The iteratee invoked per iteration.
     * @param {Function} comparator The comparator used to compare values.
     * @returns {*} Returns the extremum value.
     */function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(c===a?s==s&&!ls(s):n(s,c)))var c=s,l=o}return l}
/**
     * The base implementation of `_.fill` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     */
/**
     * The base implementation of `_.filter` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     */
function vr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}
/**
     * The base implementation of `_.flatten` with support for restricting flattening.
     *
     * @private
     * @param {Array} array The array to flatten.
     * @param {number} depth The maximum recursion depth.
     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
     * @param {Array} [result=[]] The initial result value.
     * @returns {Array} Returns the new flattened array.
     */function yr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=ya),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?
// Recursively flatten arrays (susceptible to call stack limits).
yr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}
/**
     * The base implementation of `baseForOwn` which iterates over `object`
     * properties returned by `keysFunc` and invokes `iteratee` for each property.
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */var Ar=Li(),br=Li(!0);
/**
     * This function is like `baseFor` except that it iterates over properties
     * in the opposite order.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
/**
     * The base implementation of `_.forOwn` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
function wr(e,t){return e&&Ar(e,t,Os)}
/**
     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */function xr(e,t){return e&&br(e,t,Os)}
/**
     * The base implementation of `_.functions` which creates an array of
     * `object` function property names filtered from `props`.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Array} props The property names to filter.
     * @returns {Array} Returns the function names.
     */function Cr(e,t){return Dt(t,(function(t){return Xo(e[t])}))}
/**
     * The base implementation of `_.get` without support for default values.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @returns {*} Returns the resolved value.
     */function _r(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&n<r;)e=e[Ra(t[n++])];return n&&n==r?e:a}
/**
     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @param {Function} symbolsFunc The function to get the symbols of `object`.
     * @returns {Array} Returns the array of property names and symbols.
     */function Ir(e,t,n){var r=t(e);return Vo(e)?r:Rt(r,n(e))}
/**
     * The base implementation of `getTag` without fallbacks for buggy environments.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */function Er(e){return null==e?e===a?"[object Undefined]":"[object Null]":Ze&&Ze in ke(e)?
/**
     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the raw `toStringTag`.
     */
function(e){var t=Qe.call(e,Ze),n=e[Ze];try{e[Ze]=a;var r=!0}catch(e){}var i=Ne.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return i}
/**
     * Creates an array of the own enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */(e):
/**
     * Converts `value` to a string using `Object.prototype.toString`.
     *
     * @private
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     */
function(e){return Ne.call(e)}
/**
     * A specialized version of `baseRest` which transforms the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @param {Function} transform The rest array transform.
     * @returns {Function} Returns the new function.
     */(e)}
/**
     * The base implementation of `_.gt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     */function kr(e,t){return e>t}
/**
     * The base implementation of `_.has` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */function Sr(e,t){return null!=e&&Qe.call(e,t)}
/**
     * The base implementation of `_.hasIn` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */function Br(e,t){return null!=e&&t in ke(e)}
/**
     * The base implementation of `_.inRange` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to check.
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     */
/**
     * The base implementation of methods like `_.intersection`, without support
     * for iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of shared values.
     */
function Mr(e,t,n){for(var i=n?Lt:Pt,o=e[0].length,s=e.length,c=s,l=r(s),u=1/0,h=[];c--;){var f=e[c];c&&t&&(f=Qt(f,en(t))),u=bn(f.length,u),l[c]=!n&&(t||o>=120&&f.length>=120)?new Kn(c&&f):a}f=e[0];var d=-1,p=l[0];e:for(;++d<o&&h.length<u;){var g=f[d],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?nn(p,m):i(h,m,n))){for(c=s;--c;){var v=l[c];if(!(v?nn(v,m):i(e[c],m,n)))continue e}p&&p.push(m),h.push(g)}}return h}
/**
     * The base implementation of `_.invert` and `_.invertBy` which inverts
     * `object` with values transformed by `iteratee` and set by `setter`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform values.
     * @param {Object} accumulator The initial inverted object.
     * @returns {Function} Returns `accumulator`.
     */
/**
     * The base implementation of `_.invoke` without support for individual
     * method arguments.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {Array} args The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     */
function Tr(e,t,n){var r=null==(e=Sa(e,t=bi(t,e)))?e:e[Ra($a(t))];return null==r?a:St(r,e,n)}
/**
     * The base implementation of `_.isArguments`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     */function Or(e){return ns(e)&&Er(e)==A}
/**
     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     */
/**
     * The base implementation of `_.isEqual` which supports partial comparisons
     * and tracks traversed objects.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Unordered comparison
     *  2 - Partial comparison
     * @param {Function} [customizer] The function to customize comparisons.
     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     */
function Dr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:
/**
     * A specialized version of `baseIsEqual` for arrays and objects which performs
     * deep comparisons and tracks traversed objects enabling objects with circular
     * references to be compared.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
function(e,t,n,r,i,o){var s=Vo(e),c=Vo(t),l=s?b:ga(e),u=c?b:ga(t),h=(l=l==A?S:l)==S,f=(u=u==A?S:u)==S,d=l==u;if(d&&Ko(e)){if(!Ko(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new $n),s||us(e)?na(e,t,n,r,i,o):
/**
     * A specialized version of `baseIsEqualDeep` for comparing objects of
     * the same `toStringTag`.
     *
     * **Note:** This function only supports comparing values with tags of
     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {string} tag The `toStringTag` of the objects to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
function(e,t,n,r,i,a,o){switch(n){case Q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case w:case x:case k:
// Coerce booleans to `1` or `0` and dates to milliseconds.
// Invalid dates are coerced to `NaN`.
return zo(+e,+t);case C:return e.name==t.name&&e.message==t.message;case M:case O:
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
// for more details.
return e==t+"";case E:var s=un;case T:var c=1&r;if(s||(s=dn),e.size!=t.size&&!c)return!1;
// Assume cyclic values are equal.
var l=o.get(e);if(l)return l==t;r|=2,
// Recursively compare objects (susceptible to call stack limits).
o.set(e,t);var u=na(s(e),s(t),r,i,a,o);return o.delete(e),u;case D:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}
/**
     * A specialized version of `baseIsEqualDeep` for objects with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */(e,t,l,n,r,i,o);if(!(1&n)){var p=h&&Qe.call(e,"__wrapped__"),g=f&&Qe.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return o||(o=new $n),i(m,v,n,r,o)}}if(!d)return!1;return o||(o=new $n),function(e,t,n,r,i,o){var s=1&n,c=ia(e),l=c.length,u=ia(t),h=u.length;if(l!=h&&!s)return!1;var f=l;for(;f--;){var d=c[f];if(!(s?d in t:Qe.call(t,d)))return!1}
// Check that cyclic values are equal.
var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);var v=s;for(;++f<l;){var y=e[d=c[f]],A=t[d];if(r)var b=s?r(A,y,d,t,e,o):r(y,A,d,e,t,o);
// Recursively compare objects (susceptible to call stack limits).
if(!(b===a?y===A||i(y,A,n,r,o):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,x=t.constructor;
// Non `Object` object instances with different constructors are not equal.
w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return o.delete(e),o.delete(t),m}
/**
     * A specialized version of `baseRest` which flattens the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */(e,t,n,r,i,o)}
/**
     * The base implementation of `_.isMap` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     */(e,t,n,r,Dr,i))}
/**
     * The base implementation of `_.isMatch` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Array} matchData The property names, values, and compare flags to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     */
function Pr(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=ke(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){var l=(c=n[i])[0],u=e[l],h=c[1];if(s&&c[2]){if(u===a&&!(l in e))return!1}else{var f=new $n;if(r)var d=r(u,h,l,e,t,f);if(!(d===a?Dr(h,u,3,r,f):d))return!1}}return!0}
/**
     * The base implementation of `_.isNative` without bad shim checks.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     */function Lr(e){return!(!ts(e)||(t=e,je&&je in t))&&(Xo(e)?He:Ae).test(ja(e));
/**
     * Checks if `func` has its source masked.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
     */
var t;
/**
     * Checks if `func` is capable of being masked.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
     */}
/**
     * The base implementation of `_.isRegExp` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     */
/**
     * The base implementation of `_.iteratee`.
     *
     * @private
     * @param {*} [value=_.identity] The value to convert to an iteratee.
     * @returns {Function} Returns the iteratee.
     */
function Qr(e){
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
return"function"==typeof e?e:null==e?ic:"object"==typeof e?Vo(e)?Hr(e[0],e[1]):zr(e):dc(e)}
/**
     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */function Rr(e){if(!_a(e))return zt(e);var t=[];for(var n in ke(e))Qe.call(e,n)&&"constructor"!=n&&t.push(n);return t}
/**
     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */function jr(e){if(!ts(e))
/**
     * This function is like
     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * except that it includes inherited enumerable properties.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=_a(e),n=[];for(var r in e)("constructor"!=r||!t&&Qe.call(e,r))&&n.push(r);return n}
/**
     * The base implementation of `_.lt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     */function Nr(e,t){return e<t}
/**
     * The base implementation of `_.map` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     */function Fr(e,t){var n=-1,i=qo(e)?r(e.length):[];return dr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}
/**
     * The base implementation of `_.matches` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     */function zr(e){var t=ha(e);return 1==t.length&&t[0][2]?Ea(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}
/**
     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
     *
     * @private
     * @param {string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */function Hr(e,t){return wa(e)&&Ia(t)?Ea(Ra(e),t):function(n){var r=ks(n,e);return r===a&&r===t?Ss(n,e):Dr(t,r,3)}}
/**
     * The base implementation of `_.merge` without support for multiple sources.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} [customizer] The function to customize merged values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */function Ur(e,t,n,r,i){e!==t&&Ar(t,(function(o,s){if(i||(i=new $n),ts(o))!
/**
     * A specialized version of `baseMerge` for arrays and objects which performs
     * deep merges and tracks traversed objects enabling objects with circular
     * references to be merged.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {string} key The key of the value to merge.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} mergeFunc The function to merge values.
     * @param {Function} [customizer] The function to customize assigned values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
function(e,t,n,r,i,o,s){var c=Ba(e,n),l=Ba(t,n),u=s.get(l);if(u)return void tr(e,n,u);var h=o?o(c,l,n+"",e,t,s):a,f=h===a;if(f){var d=Vo(l),p=!d&&Ko(l),g=!d&&!p&&us(l);h=l,d||p||g?Vo(c)?h=c:Yo(c)?h=Mi(c):p?(f=!1,h=_i(l,!0)):g?(f=!1,h=Ei(l,!0)):h=[]:as(l)||Go(l)?(h=c,Go(c)?h=ys(c):ts(c)&&!Xo(c)||(h=va(l))):f=!1}f&&(
// Recursively merge objects and arrays (susceptible to call stack limits).
s.set(l,h),i(h,l,r,o,s),s.delete(l));tr(e,n,h)}
/**
     * The base implementation of `_.nth` which doesn't coerce arguments.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {number} n The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     */(e,t,s,n,Ur,r,i);else{var c=r?r(Ba(e,s),o,s+"",e,t,i):a;c===a&&(c=o),tr(e,s,c)}}),Ds)}function Gr(e,t){var n=e.length;if(n)return Aa(t+=t<0?n:0,n)?e[t]:a}
/**
     * The base implementation of `_.orderBy` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
     * @param {string[]} orders The sort orders of `iteratees`.
     * @returns {Array} Returns the new sorted array.
     */function Vr(e,t,n){t=t.length?Qt(t,(function(e){return Vo(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e})):[ic];var r=-1;t=Qt(t,en(la()));var i=Fr(e,(function(e,n,i){var a=Qt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){
/**
     * Used by `_.orderBy` to compare multiple properties of a value to another
     * and stable sort them.
     *
     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
     * specify an order of "desc" for descending or "asc" for ascending sort order
     * of corresponding values.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {boolean[]|string[]} orders The order to sort by for each property.
     * @returns {number} Returns the sort order indicator for `object`.
     */
return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var c=ki(i[r],a[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}
// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
// that causes it, under certain circumstances, to provide the same value for
// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
// for more details.

// This also ensures a stable sort in V8 and other engines.
// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
return e.index-t.index}
/**
     * Creates an array that is the composition of partially applied arguments,
     * placeholders, and provided arguments into a single array of arguments.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to prepend to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */(e,t,n)}))}
/**
     * The base implementation of `_.pick` without support for individual
     * property identifiers.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @returns {Object} Returns the new object.
     */
/**
     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @param {Function} predicate The function invoked per property.
     * @returns {Object} Returns the new object.
     */
function Wr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=_r(e,o);n(s,o)&&ei(a,bi(o,e),s)}return a}
/**
     * A specialized version of `baseProperty` which supports deep paths.
     *
     * @private
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     */
/**
     * The base implementation of `_.pullAllBy` without support for iteratee
     * shorthands.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     */
function qr(e,t,n,r){var i=r?Vt:Gt,a=-1,o=t.length,s=e;for(e===t&&(t=Mi(t)),n&&(s=Qt(e,en(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&$e.call(s,c,1),$e.call(e,c,1);return e}
/**
     * The base implementation of `_.pullAt` without support for individual
     * indexes or capturing the removed elements.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {number[]} indexes The indexes of elements to remove.
     * @returns {Array} Returns `array`.
     */function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Aa(i)?$e.call(e,i,1):fi(e,i)}}return e}
/**
     * The base implementation of `_.random` without support for returning
     * floating-point numbers.
     *
     * @private
     * @param {number} lower The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the random number.
     */function Kr(e,t){return e+gt(Cn()*(t-e+1))}
/**
     * The base implementation of `_.range` and `_.rangeRight` which doesn't
     * coerce arguments.
     *
     * @private
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @param {number} step The value to increment or decrement by.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the range of numbers.
     */
/**
     * The base implementation of `_.repeat` which doesn't coerce arguments.
     *
     * @private
     * @param {string} string The string to repeat.
     * @param {number} n The number of times to repeat the string.
     * @returns {string} Returns the repeated string.
     */
function $r(e,t){var n="";if(!e||t<1||t>g)return n;
// Leverage the exponentiation by squaring algorithm for a faster repeat.
// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}
/**
     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     */function Jr(e,t){return Oa(ka(e,t,ic),e+"")}
/**
     * The base implementation of `_.sample`.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     */function Xr(e){return Xn(zs(e))}
/**
     * The base implementation of `_.sampleSize` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */function Zr(e,t){var n=zs(e);return La(n,cr(t,0,n.length))}
/**
     * The base implementation of `_.set`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */function ei(e,t,n,r){if(!ts(e))return e;for(var i=-1,o=(t=bi(t,e)).length,s=o-1,c=e;null!=c&&++i<o;){var l=Ra(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var h=c[l];(u=r?r(h,l,c):a)===a&&(u=ts(h)?h:Aa(t[i+1])?[]:{})}nr(c,l,u),c=c[l]}return e}
/**
     * The base implementation of `setData` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */var ti=Tn?function(e,t){return Tn.set(e,t),e}:ic,ni=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ic;
/**
     * The base implementation of `setToString` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
/**
     * The base implementation of `_.shuffle`.
     *
     * @private
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
function ri(e){return La(zs(e))}
/**
     * The base implementation of `_.slice` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */function ii(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}
/**
     * The base implementation of `_.some` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     */function ai(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}
/**
     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
     * performs a binary search of `array` to determine the index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!ls(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return si(e,t,ic,n)}
/**
     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
     * which invokes `iteratee` for `value` and each element of `array` to compute
     * their sort ranking. The iteratee is invoked with one argument; (value).
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} iteratee The iteratee invoked per element.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */function si(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,c=null===t,l=ls(t),u=t===a;i<o;){var h=gt((i+o)/2),f=n(e[h]),d=f!==a,p=null===f,g=f==f,m=ls(f);if(s)var v=r||g;else v=u?g&&(r||d):c?g&&d&&(r||!p):l?g&&d&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?i=h+1:o=h}return bn(o,4294967294)}
/**
     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
     * support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */function ci(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!zo(s,c)){var c=s;a[i++]=0===o?0:o}}return a}
/**
     * The base implementation of `_.toNumber` which doesn't ensure correct
     * conversions of binary, hexadecimal, or octal string values.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     */function li(e){return"number"==typeof e?e:ls(e)?m:+e}
/**
     * The base implementation of `_.toString` which doesn't convert nullish
     * values to empty strings.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {string} Returns the string.
     */function ui(e){
// Exit early for strings to avoid a performance hit in some environments.
if("string"==typeof e)return e;if(Vo(e))
// Recursively convert values (susceptible to call stack limits).
return Qt(e,ui)+"";if(ls(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}
/**
     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */function hi(e,t,n){var r=-1,i=Pt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Lt;else if(a>=200){var l=t?null:$i(e);if(l)return dn(l);o=!1,i=nn,c=new Kn}else c=t?[]:s;e:for(;++r<a;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),s.push(u)}else i(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s}
/**
     * The base implementation of `_.unset`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The property path to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     */function fi(e,t){return null==(e=Sa(e,t=bi(t,e)))||delete e[Ra($a(t))]}
/**
     * The base implementation of `_.update`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to update.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */function di(e,t,n,r){return ei(e,t,n(_r(e,t)),r)}
/**
     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
     * without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {Function} predicate The function invoked per iteration.
     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the slice of `array`.
     */function pi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ii(e,r?0:a,r?a+1:i):ii(e,r?a+1:0,r?i:a)}
/**
     * The base implementation of `wrapperValue` which returns the result of
     * performing a sequence of actions on the unwrapped `value`, where each
     * successive action is supplied the return value of the previous.
     *
     * @private
     * @param {*} value The unwrapped value.
     * @param {Array} actions Actions to perform to resolve the unwrapped value.
     * @returns {*} Returns the resolved value.
     */function gi(e,t){var n=e;return n instanceof Vn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}
/**
     * The base implementation of methods like `_.xor`, without support for
     * iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of values.
     */function mi(e,t,n){var i=e.length;if(i<2)return i?hi(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],c=-1;++c<i;)c!=a&&(o[a]=fr(o[a]||s,e[c],t,n));return hi(yr(o,1),t,n)}
/**
     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
     *
     * @private
     * @param {Array} props The property identifiers.
     * @param {Array} values The property values.
     * @param {Function} assignFunc The function to assign values.
     * @returns {Object} Returns the new object.
     */function vi(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var c=r<o?t[r]:a;n(s,e[r],c)}return s}
/**
     * Casts `value` to an empty array if it's not an array like object.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Array|Object} Returns the cast array-like object.
     */function yi(e){return Yo(e)?e:[]}
/**
     * Casts `value` to `identity` if it's not a function.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Function} Returns cast function.
     */function Ai(e){return"function"==typeof e?e:ic}
/**
     * Casts `value` to a path array if it's not one.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {Object} [object] The object to query keys on.
     * @returns {Array} Returns the cast property path array.
     */function bi(e,t){return Vo(e)?e:wa(e,t)?[e]:Qa(As(e))}
/**
     * A `baseRest` alias which can be replaced with `identity` by module
     * replacement plugins.
     *
     * @private
     * @type {Function}
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */var wi=Jr;
/**
     * Casts `array` to a slice if it's needed.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {number} start The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the cast slice.
     */function xi(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:ii(e,t,n)}
/**
     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
     *
     * @private
     * @param {number|Object} id The timer id or timeout object of the timer to clear.
     */var Ci=rt||function(e){return mt.clearTimeout(e)};
/**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */function _i(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}
/**
     * Creates a clone of `arrayBuffer`.
     *
     * @private
     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
     * @returns {ArrayBuffer} Returns the cloned array buffer.
     */function Ii(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ei(e,t){var n=t?Ii(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}
/**
     * Compares values to sort them in ascending order.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {number} Returns the sort order indicator for `value`.
     */function ki(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=ls(e),s=t!==a,c=null===t,l=t==t,u=ls(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||c&&n&&i||!s&&i||!l)return-1}return 0}function Si(e,t,n,i){for(var a=-1,o=e.length,s=n.length,c=-1,l=t.length,u=Kt(o-s,0),h=r(l+u),f=!i;++c<l;)h[c]=t[c];for(;++a<s;)(f||a<o)&&(h[n[a]]=e[a]);for(;u--;)h[c++]=e[a++];return h}
/**
     * This function is like `composeArgs` except that the arguments composition
     * is tailored for `_.partialRight`.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to append to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */function Bi(e,t,n,i){for(var a=-1,o=e.length,s=-1,c=n.length,l=-1,u=t.length,h=Kt(o-c,0),f=r(h+u),d=!i;++a<h;)f[a]=e[a];for(var p=a;++l<u;)f[p+l]=t[l];for(;++s<c;)(d||a<o)&&(f[p+n[s]]=e[a++]);return f}
/**
     * Copies the values of `source` to `array`.
     *
     * @private
     * @param {Array} source The array to copy values from.
     * @param {Array} [array=[]] The array to copy values to.
     * @returns {Array} Returns `array`.
     */function Mi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}
/**
     * Copies properties of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy properties from.
     * @param {Array} props The property identifiers to copy.
     * @param {Object} [object={}] The object to copy properties to.
     * @param {Function} [customizer] The function to customize copied values.
     * @returns {Object} Returns `object`.
     */function Ti(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var c=t[o],l=r?r(n[c],e[c],c,n,e):a;l===a&&(l=e[c]),i?or(n,c,l):nr(n,c,l)}return n}function Oi(e,t){return function(n,r){var i=Vo(n)?Bt:ir,a=t?t():{};return i(n,e,la(r,2),a)}}
/**
     * Creates a function like `_.assign`.
     *
     * @private
     * @param {Function} assigner The function to assign values.
     * @returns {Function} Returns the new assigner function.
     */function Di(e){return Jr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&ba(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++r<i;){var c=n[r];c&&e(t,c,r,o)}return t}))}
/**
     * Creates a `baseEach` or `baseEachRight` function.
     *
     * @private
     * @param {Function} eachFunc The function to iterate over a collection.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */function Pi(e,t){return function(n,r){if(null==n)return n;if(!qo(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=ke(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}
/**
     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */function Li(e){return function(t,n,r){for(var i=-1,a=ke(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}
/**
     * Creates a function that wraps `func` to invoke it with the optional `this`
     * binding of `thisArg`.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
/**
     * Creates a function like `_.lowerFirst`.
     *
     * @private
     * @param {string} methodName The name of the `String` case method to use.
     * @returns {Function} Returns the new case function.
     */
function Qi(e){return function(t){var n=ln(t=As(t))?mn(t):a,r=n?n[0]:t.charAt(0),i=n?xi(n,1).join(""):t.slice(1);return r[e]()+i}}
/**
     * Creates a function like `_.camelCase`.
     *
     * @private
     * @param {Function} callback The function to combine each word.
     * @returns {Function} Returns the new compounder function.
     */function Ri(e){return function(t){return jt(Xs(Gs(t).replace(tt,"")),e,"")}}
/**
     * Creates a function that produces an instance of `Ctor` regardless of
     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
     *
     * @private
     * @param {Function} Ctor The constructor to wrap.
     * @returns {Function} Returns the new wrapped function.
     */function ji(e){return function(){
// Use a `switch` statement to work with class constructors. See
// http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
// for more details.
var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);
// Mimic the constructor's `return` behavior.
// See https://es5.github.io/#x13.2.2 for more details.
return ts(r)?r:n}}
/**
     * Creates a function that wraps `func` to enable currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {number} arity The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
/**
     * Creates a `_.find` or `_.findLast` function.
     *
     * @private
     * @param {Function} findIndexFunc The function to find the collection index.
     * @returns {Function} Returns the new find function.
     */
function Ni(e){return function(t,n,r){var i=ke(t);if(!qo(t)){var o=la(n,3);t=Os(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}
/**
     * Creates a `_.flow` or `_.flowRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new flow function.
     */function Fi(e){return ra((function(t){var n=t.length,r=n,i=Gn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Me(o);if(i&&!c&&"wrapper"==sa(s))var c=new Gn([],!0)}for(r=c?r:n;++r<n;){var l=sa(s=t[r]),u="wrapper"==l?oa(s):a;c=u&&xa(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[sa(u[0])].apply(c,u[3]):1==s.length&&xa(s)?c[l]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Vo(r))return c.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}
/**
     * Creates a function that wraps `func` to invoke it with optional `this`
     * binding of `thisArg`, partial application, and currying.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [partialsRight] The arguments to append to those provided
     *  to the new function.
     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */function zi(e,t,n,i,o,s,c,l,u,h){var d=t&f,p=1&t,g=2&t,m=24&t,v=512&t,y=g?a:ji(e);return function f(){for(var A=arguments.length,b=r(A),w=A;w--;)b[w]=arguments[w];if(m)var x=ca(f),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(i&&(b=Si(b,i,o,m)),s&&(b=Bi(b,s,c,m)),A-=C,m&&A<h){var _=fn(b,x);return Yi(e,t,zi,f.placeholder,n,b,_,l,u,h-A)}var I=p?n:this,E=g?I[e]:e;return A=b.length,l?b=
/**
     * Reorder `array` according to the specified indexes where the element at
     * the first index is assigned as the first element, the element at
     * the second index is assigned as the second element, and so on.
     *
     * @private
     * @param {Array} array The array to reorder.
     * @param {Array} indexes The arranged array indexes.
     * @returns {Array} Returns `array`.
     */
function(e,t){var n=e.length,r=bn(t.length,n),i=Mi(e);for(;r--;){var o=t[r];e[r]=Aa(o,n)?i[o]:a}return e}
/**
     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the property to get.
     * @returns {*} Returns the property value.
     */(b,l):v&&A>1&&b.reverse(),d&&u<A&&(b.length=u),this&&this!==mt&&this instanceof f&&(E=y||ji(E)),E.apply(I,b)}}
/**
     * Creates a function like `_.invertBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} toIteratee The function to resolve iteratees.
     * @returns {Function} Returns the new inverter function.
     */function Hi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}
/**
     * Creates a function that performs a mathematical operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @param {number} [defaultValue] The value used for `undefined` arguments.
     * @returns {Function} Returns the new mathematical operation function.
     */function Ui(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=ui(n),r=ui(r)):(n=li(n),r=li(r)),i=e(n,r)}return i}}
/**
     * Creates a function like `_.over`.
     *
     * @private
     * @param {Function} arrayFunc The function to iterate over iteratees.
     * @returns {Function} Returns the new over function.
     */function Gi(e){return ra((function(t){return t=Qt(t,en(la())),Jr((function(n){var r=this;return e(t,(function(e){return St(e,r,n)}))}))}))}
/**
     * Creates the padding for `string` based on `length`. The `chars` string
     * is truncated if the number of characters exceeds `length`.
     *
     * @private
     * @param {number} length The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padding for `string`.
     */function Vi(e,t){var n=(t=t===a?" ":ui(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,pt(e/gn(t)));return ln(t)?xi(mn(r),0,e).join(""):r.slice(0,e)}
/**
     * Creates a function that wraps `func` to invoke it with the `this` binding
     * of `thisArg` and `partials` prepended to the arguments it receives.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {Array} partials The arguments to prepend to those provided to
     *  the new function.
     * @returns {Function} Returns the new wrapped function.
     */
/**
     * Creates a `_.range` or `_.rangeRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new range function.
     */
function Wi(e){return function(t,n,i){return i&&"number"!=typeof i&&ba(t,n,i)&&(n=i=a),
// Ensure the sign of `-0` is preserved.
t=ps(t),n===a?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var a=-1,o=Kt(pt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,i=i===a?t<n?1:-1:ps(i),e)}}
/**
     * Creates a function that performs a relational operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @returns {Function} Returns the new relational operation function.
     */function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}
/**
     * Creates a function that wraps `func` to continue currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {Function} wrapFunc The function to create the `func` wrapper.
     * @param {*} placeholder The placeholder value.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */function Yi(e,t,n,r,i,o,s,c,l,f){var d=8&t;t|=d?u:h,4&(t&=~(d?h:u))||(t&=-4);var p=[e,t,i,d?o:a,d?s:a,d?a:o,d?a:s,c,l,f],g=n.apply(a,p);return xa(e)&&Ma(g,p),g.placeholder=r,Da(g,e,t)}
/**
     * Creates a function like `_.round`.
     *
     * @private
     * @param {string} methodName The name of the `Math` method to use when rounding.
     * @returns {Function} Returns the new round function.
     */function Ki(e){var t=Ee[e];return function(e,n){if(e=vs(e),(n=null==n?0:bn(gs(n),292))&&bt(e)){
// Shift with exponential notation to avoid floating-point issues.
// See [MDN](https://mdn.io/round#Examples) for more details.
var r=(As(e)+"e").split("e");return+((r=(As(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}
/**
     * Creates a set object of `values`.
     *
     * @private
     * @param {Array} values The values to add to the set.
     * @returns {Object} Returns the new set.
     */var $i=Sn&&1/dn(new Sn([,-0]))[1]==p?function(e){return new Sn(e)}:lc;
/**
     * Creates a `_.toPairs` or `_.toPairsIn` function.
     *
     * @private
     * @param {Function} keysFunc The function to get the keys of a given object.
     * @returns {Function} Returns the new pairs function.
     */function Ji(e){return function(t){var n=ga(t);return n==E?un(t):n==T?pn(t):function(e,t){return Qt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}
/**
     * Creates a function that either curries or invokes `func` with optional
     * `this` binding and partially applied arguments.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags.
     *    1 - `_.bind`
     *    2 - `_.bindKey`
     *    4 - `_.curry` or `_.curryRight` of a bound function
     *    8 - `_.curry`
     *   16 - `_.curryRight`
     *   32 - `_.partial`
     *   64 - `_.partialRight`
     *  128 - `_.rearg`
     *  256 - `_.ary`
     *  512 - `_.flip`
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to be partially applied.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */function Xi(e,t,n,i,s,p,g,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(o);var y=i?i.length:0;if(y||(t&=-97,i=s=a),g=g===a?g:Kt(gs(g),0),m=m===a?m:gs(m),y-=s?s.length:0,t&h){var A=i,b=s;i=s=a}var w=v?a:oa(e),x=[e,t,n,i,s,A,b,p,g,m];if(w&&
/**
     * Merges the function metadata of `source` into `data`.
     *
     * Merging metadata reduces the number of wrappers used to invoke a function.
     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
     * may be applied regardless of execution order. Methods like `_.ary` and
     * `_.rearg` modify function arguments, making the order in which they are
     * executed important, preventing the merging of metadata. However, we make
     * an exception for a safe combined case where curried functions have `_.ary`
     * and or `_.rearg` applied.
     *
     * @private
     * @param {Array} data The destination metadata.
     * @param {Array} source The source metadata.
     * @returns {Array} Returns `data`.
     */
function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;
// Exit early if metadata can't be merged.
if(!a&&!o)return e;
// Use source `thisArg` if available.
1&r&&(e[2]=t[2],
// Set when currying a bound function.
i|=1&n?0:4);
// Compose partial arguments.
var s=t[3];if(s){var l=e[3];e[3]=l?Si(l,s,t[4]):s,e[4]=l?fn(e[3],c):t[4]}
// Compose partial right arguments.
(s=t[5])&&(l=e[5],e[5]=l?Bi(l,s,t[6]):s,e[6]=l?fn(e[5],c):t[6]);
// Use source `argPos` if available.
(s=t[7])&&(e[7]=s);
// Use source `ary` if it's smaller.
r&f&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));
// Use source `arity` if one is not provided.
null==e[9]&&(e[9]=t[9]);
// Use source `func` and merge bitmasks.
e[0]=t[0],e[1]=i}(x,w),e=x[0],t=x[1],n=x[2],i=x[3],s=x[4],!(m=x[9]=x[9]===a?v?0:e.length:Kt(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,n){var i=ji(e);return function o(){for(var s=arguments.length,c=r(s),l=s,u=ca(o);l--;)c[l]=arguments[l];var h=s<3&&c[0]!==u&&c[s-1]!==u?[]:fn(c,u);return(s-=h.length)<n?Yi(e,t,zi,o.placeholder,a,c,h,a,a,n-s):St(this&&this!==mt&&this instanceof o?i:e,this,c)}}(e,t,m):t!=u&&33!=t||s.length?zi.apply(a,x):function(e,t,n,i){var a=1&t,o=ji(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,h=r(u+c),f=this&&this!==mt&&this instanceof t?o:e;++l<u;)h[l]=i[l];for(;c--;)h[l++]=arguments[++s];return St(f,a?n:this,h)}}(e,t,n,i);else var C=function(e,t,n){var r=1&t,i=ji(e);return function t(){return(this&&this!==mt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Da((w?ti:Ma)(C,x),e,t)}
/**
     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
     * of source objects to the destination object for all destination properties
     * that resolve to `undefined`.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to assign.
     * @param {Object} object The parent object of `objValue`.
     * @returns {*} Returns the value to assign.
     */function Zi(e,t,n,r){return e===a||zo(e,De[n])&&!Qe.call(r,n)?t:e}
/**
     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
     * objects into destination objects that are passed thru.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to merge.
     * @param {Object} object The parent object of `objValue`.
     * @param {Object} source The parent object of `srcValue`.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     * @returns {*} Returns the value to assign.
     */function ea(e,t,n,r,i,o){return ts(e)&&ts(t)&&(
// Recursively merge objects and arrays (susceptible to call stack limits).
o.set(t,e),Ur(e,t,a,ea,o),o.delete(t)),e}
/**
     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
     * objects.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {string} key The key of the property to inspect.
     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
     */function ta(e){return as(e)?a:e}
/**
     * A specialized version of `baseIsEqualDeep` for arrays with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Array} array The array to compare.
     * @param {Array} other The other array to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `array` and `other` objects.
     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
     */function na(e,t,n,r,i,o){var s=1&n,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;
// Check that cyclic values are equal.
var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var f=-1,d=!0,p=2&n?new Kn:a;
// Ignore non-index properties.
for(o.set(e,t),o.set(t,e);++f<c;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,o):r(g,m,f,e,t,o);if(v!==a){if(v)continue;d=!1;break}
// Recursively compare arrays (susceptible to call stack limits).
if(p){if(!Ft(t,(function(e,t){if(!nn(p,t)&&(g===e||i(g,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(g!==m&&!i(g,m,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function ra(e){return Oa(ka(e,a,Va),e+"")}
/**
     * Creates an array of own enumerable property names and symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */function ia(e){return Ir(e,Os,da)}
/**
     * Creates an array of own and inherited enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */function aa(e){return Ir(e,Ds,pa)}
/**
     * Gets metadata for `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {*} Returns the metadata for `func`.
     */var oa=Tn?function(e){return Tn.get(e)}:lc;
/**
     * Gets the name of `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {string} Returns the function name.
     */function sa(e){for(var t=e.name+"",n=On[t],r=Qe.call(On,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}
/**
     * Gets the argument placeholder value for `func`.
     *
     * @private
     * @param {Function} func The function to inspect.
     * @returns {*} Returns the placeholder value.
     */function ca(e){return(Qe.call(zn,"placeholder")?zn:e).placeholder}
/**
     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
     * this function returns the custom method, otherwise it returns `baseIteratee`.
     * If arguments are provided, the chosen function is invoked with them and
     * its result is returned.
     *
     * @private
     * @param {*} [value] The value to convert to an iteratee.
     * @param {number} [arity] The arity of the created iteratee.
     * @returns {Function} Returns the chosen function or its result.
     */function la(){var e=zn.iteratee||ac;return e=e===ac?Qr:e,arguments.length?e(arguments[0],arguments[1]):e}
/**
     * Gets the data for `map`.
     *
     * @private
     * @param {Object} map The map to query.
     * @param {string} key The reference key.
     * @returns {*} Returns the map data.
     */function ua(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}
/**
     * Gets the property names, values, and compare flags of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the match data of `object`.
     */function ha(e){for(var t=Os(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ia(i)]}return t}
/**
     * Gets the native function at `key` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the method to get.
     * @returns {*} Returns the function if it's native, else `undefined`.
     */function fa(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Lr(n)?n:a}var da=vt?function(e){return null==e?[]:(e=ke(e),Dt(vt(e),(function(t){return Ke.call(e,t)})))}:mc,pa=vt?function(e){for(var t=[];e;)Rt(t,da(e)),e=qe(e);return t}:mc,ga=Er;
/**
     * Creates an array of the own and inherited enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
/**
     * Checks if `path` exists on `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @param {Function} hasFunc The function to check properties.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     */
function ma(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,a=!1;++r<i;){var o=Ra(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&es(i)&&Aa(o,i)&&(Vo(e)||Go(e))}function va(e){return"function"!=typeof e.constructor||_a(e)?{}:Hn(qe(e))}
/**
     * Checks if `value` is a flattenable `arguments` object or array.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
     */
function ya(e){return Vo(e)||Go(e)||!!(Je&&e&&e[Je])}
/**
     * Checks if `value` is a valid array-like index.
     *
     * @private
     * @param {*} value The value to check.
     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
     */function Aa(e,t){var n=typeof e;return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}
/**
     * Checks if the given arguments are from an iteratee call.
     *
     * @private
     * @param {*} value The potential iteratee value argument.
     * @param {*} index The potential iteratee index or key argument.
     * @param {*} object The potential iteratee object argument.
     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
     *  else `false`.
     */function ba(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?qo(n)&&Aa(t,n.length):"string"==r&&t in n)&&zo(n[t],e)}
/**
     * Checks if `value` is a property name and not a property path.
     *
     * @private
     * @param {*} value The value to check.
     * @param {Object} [object] The object to query keys on.
     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
     */function wa(e,t){if(Vo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(re.test(e)||!ne.test(e)||null!=t&&e in ke(t))}
/**
     * Checks if `value` is suitable for use as unique object key.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
     */
/**
     * Checks if `func` has a lazy counterpart.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
     *  else `false`.
     */
function xa(e){var t=sa(e),n=zn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=oa(n);return!!r&&e===r[0]}
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
(In&&ga(new In(new ArrayBuffer(1)))!=Q||En&&ga(new En)!=E||kn&&ga(kn.resolve())!=B||Sn&&ga(new Sn)!=T||Bn&&ga(new Bn)!=P)&&(ga=function(e){var t=Er(e),n=t==S?e.constructor:a,r=n?ja(n):"";if(r)switch(r){case Dn:return Q;case Pn:return E;case Ln:return B;case Qn:return T;case Rn:return P}return t})
/**
     * Gets the view, applying any `transforms` to the `start` and `end` positions.
     *
     * @private
     * @param {number} start The start of the view.
     * @param {number} end The end of the view.
     * @param {Array} transforms The transformations to apply to the view.
     * @returns {Object} Returns an object containing the `start` and `end`
     *  positions of the view.
     */;var Ca=Pe?Xo:vc;
/**
     * Checks if `value` is likely a prototype object.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
     */function _a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}
/**
     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` if suitable for strict
     *  equality comparisons, else `false`.
     */function Ia(e){return e==e&&!ts(e)}
/**
     * A specialized version of `matchesProperty` for source values suitable
     * for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {string} key The key of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */function Ea(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in ke(n)))}}
/**
     * A specialized version of `_.memoize` which clears the memoized function's
     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
     *
     * @private
     * @param {Function} func The function to have its output memoized.
     * @returns {Function} Returns the new memoized function.
     */function ka(e,t,n){return t=Kt(t===a?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=Kt(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var c=r(t+1);++a<t;)c[a]=i[a];return c[t]=n(s),St(e,this,c)}}
/**
     * Gets the parent value at `path` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array} path The path to get the parent value of.
     * @returns {*} Returns the parent value.
     */function Sa(e,t){return t.length<2?e:_r(e,ii(t,0,-1))}function Ba(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}
/**
     * Sets metadata for `func`.
     *
     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
     * period of time, it will trip its breaker and transition to an identity
     * function to avoid garbage collection pauses in V8. See
     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
     * for more details.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */var Ma=Pa(ti),Ta=ht||function(e,t){return mt.setTimeout(e,t)},Oa=Pa(ni);
/**
     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
/**
     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
     * with wrapper details in a comment at the top of the source body.
     *
     * @private
     * @param {Function} wrapper The function to modify.
     * @param {Function} reference The reference function.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Function} Returns `wrapper`.
     */
function Da(e,t,n){var r=t+"";return Oa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,
/**
     * Updates wrapper `details` based on `bitmask` flags.
     *
     * @private
     * @returns {Array} details The details to modify.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Array} Returns `details`.
     */
function(e,t){return Mt(y,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}
/**
     * Creates a clone of `wrapper`.
     *
     * @private
     * @param {Object} wrapper The wrapper to clone.
     * @returns {Object} Returns the cloned wrapper.
     */(
/**
     * Extracts wrapper details from the `source` body comment.
     *
     * @private
     * @param {string} source The source to inspect.
     * @returns {Array} Returns the wrapper details.
     */
function(e){var t=e.match(ue);return t?t[1].split(he):[]}(r),n)))}
/**
     * Creates a function that'll short out and invoke `identity` instead
     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
     * milliseconds.
     *
     * @private
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new shortable function.
     */function Pa(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}
/**
     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @param {number} [size=array.length] The size of `array`.
     * @returns {Array} Returns `array`.
     */function La(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=Kr(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}
/**
     * Converts `string` to a property path array.
     *
     * @private
     * @param {string} string The string to convert.
     * @returns {Array} Returns the property path array.
     */var Qa=function(e){var t=Lo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46/* . */===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));
/**
     * Converts `value` to a string key if it's not a string or symbol.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {string|symbol} Returns the key.
     */function Ra(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}
/**
     * Converts `func` to its source code.
     *
     * @private
     * @param {Function} func The function to convert.
     * @returns {string} Returns the source code.
     */function ja(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Na(e){if(e instanceof Vn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}
/*------------------------------------------------------------------------*/
/**
     * Creates an array of elements split into groups the length of `size`.
     * If `array` can't be split evenly, the final chunk will be the remaining
     * elements.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to process.
     * @param {number} [size=1] The length of each chunk
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the new array of chunks.
     * @example
     *
     * _.chunk(['a', 'b', 'c', 'd'], 2);
     * // => [['a', 'b'], ['c', 'd']]
     *
     * _.chunk(['a', 'b', 'c', 'd'], 3);
     * // => [['a', 'b', 'c'], ['d']]
     */
/**
     * Creates an array of `array` values not included in the other given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * **Note:** Unlike `_.pullAll`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.without, _.xor
     * @example
     *
     * _.difference([2, 1], [2, 3]);
     * // => [1]
     */
var Fa=Jr((function(e,t){return Yo(e)?fr(e,yr(t,1,Yo,!0)):[]})),za=Jr((function(e,t){var n=$a(t);return Yo(n)&&(n=a),Yo(e)?fr(e,yr(t,1,Yo,!0),la(n,2)):[]})),Ha=Jr((function(e,t){var n=$a(t);return Yo(n)&&(n=a),Yo(e)?fr(e,yr(t,1,Yo,!0),a,n):[]}));
/**
     * This method is like `_.difference` except that it accepts `iteratee` which
     * is invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
/**
     * This method is like `_.find` except that it returns the index of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.findIndex(users, function(o) { return o.user == 'barney'; });
     * // => 0
     *
     * // The `_.matches` iteratee shorthand.
     * _.findIndex(users, { 'user': 'fred', 'active': false });
     * // => 1
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findIndex(users, ['active', false]);
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.findIndex(users, 'active');
     * // => 2
     */
function Ua(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=Kt(r+i,0)),Ut(e,la(t,3),i)}
/**
     * This method is like `_.findIndex` except that it iterates over elements
     * of `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
     * // => 2
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
     * // => 0
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastIndex(users, ['active', false]);
     * // => 2
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastIndex(users, 'active');
     * // => 0
     */function Ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=gs(n),i=n<0?Kt(r+i,0):bn(i,r-1)),Ut(e,la(t,3),i,!0)}
/**
     * Flattens `array` a single level deep.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flatten([1, [2, [3, [4]], 5]]);
     * // => [1, 2, [3, [4]], 5]
     */function Va(e){return(null==e?0:e.length)?yr(e,1):[]}
/**
     * Recursively flattens `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flattenDeep([1, [2, [3, [4]], 5]]);
     * // => [1, 2, 3, 4, 5]
     */
/**
     * Gets the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias first
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the first element of `array`.
     * @example
     *
     * _.head([1, 2, 3]);
     * // => 1
     *
     * _.head([]);
     * // => undefined
     */
function Wa(e){return e&&e.length?e[0]:a}
/**
     * Gets the index at which the first occurrence of `value` is found in `array`
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. If `fromIndex` is negative, it's used as the
     * offset from the end of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.indexOf([1, 2, 1, 2], 2);
     * // => 1
     *
     * // Search from the `fromIndex`.
     * _.indexOf([1, 2, 1, 2], 2, 2);
     * // => 3
     */
/**
     * Creates an array of unique values that are included in all given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersection([2, 1], [2, 3]);
     * // => [2]
     */
var qa=Jr((function(e){var t=Qt(e,yi);return t.length&&t[0]===e[0]?Mr(t):[]})),Ya=Jr((function(e){var t=$a(e),n=Qt(e,yi);return t===$a(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Mr(n,la(t,2)):[]})),Ka=Jr((function(e){var t=$a(e),n=Qt(e,yi);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Mr(n,a,t):[]}));
/**
     * This method is like `_.intersection` except that it accepts `iteratee`
     * which is invoked for each element of each `arrays` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [2.1]
     *
     * // The `_.property` iteratee shorthand.
     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }]
     */
/**
     * Gets the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the last element of `array`.
     * @example
     *
     * _.last([1, 2, 3]);
     * // => 3
     */
function $a(e){var t=null==e?0:e.length;return t?e[t-1]:a}
/**
     * This method is like `_.indexOf` except that it iterates over elements of
     * `array` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.lastIndexOf([1, 2, 1, 2], 2);
     * // => 3
     *
     * // Search from the `fromIndex`.
     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
     * // => 1
     */
/**
     * Removes all given values from `array` using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
     * to remove elements from an array by predicate.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...*} [values] The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pull(array, 'a', 'c');
     * console.log(array);
     * // => ['b', 'b']
     */
var Ja=Jr(Xa);
/**
     * This method is like `_.pull` except that it accepts an array of values to remove.
     *
     * **Note:** Unlike `_.difference`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pullAll(array, ['a', 'c']);
     * console.log(array);
     * // => ['b', 'b']
     */function Xa(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}
/**
     * This method is like `_.pullAll` except that it accepts `iteratee` which is
     * invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The iteratee is invoked with one argument: (value).
     *
     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
     *
     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
     * console.log(array);
     * // => [{ 'x': 2 }]
     */
/**
     * Removes elements from `array` corresponding to `indexes` and returns an
     * array of removed elements.
     *
     * **Note:** Unlike `_.at`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     * var pulled = _.pullAt(array, [1, 3]);
     *
     * console.log(array);
     * // => ['a', 'c']
     *
     * console.log(pulled);
     * // => ['b', 'd']
     */
var Za=ra((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Qt(t,(function(e){return Aa(e,n)?+e:e})).sort(ki)),r}));
/**
     * Removes all elements from `array` that `predicate` returns truthy for
     * and returns an array of the removed elements. The predicate is invoked
     * with three arguments: (value, index, array).
     *
     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
     * to pull elements from an array by value.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = [1, 2, 3, 4];
     * var evens = _.remove(array, function(n) {
     *   return n % 2 == 0;
     * });
     *
     * console.log(array);
     * // => [1, 3]
     *
     * console.log(evens);
     * // => [2, 4]
     */
/**
     * Reverses `array` so that the first element becomes the last, the second
     * element becomes the second to last, and so on.
     *
     * **Note:** This method mutates `array` and is based on
     * [`Array#reverse`](https://mdn.io/Array/reverse).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.reverse(array);
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
function eo(e){return null==e?e:_n.call(e)}
/**
     * Creates a slice of `array` from `start` up to, but not including, `end`.
     *
     * **Note:** This method is used instead of
     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
     * returned.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
/**
     * Creates an array of unique values, in order, from all given arrays using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.union([2], [1, 2]);
     * // => [2, 1]
     */
var to=Jr((function(e){return hi(yr(e,1,Yo,!0))})),no=Jr((function(e){var t=$a(e);return Yo(t)&&(t=a),hi(yr(e,1,Yo,!0),la(t,2))})),ro=Jr((function(e){var t=$a(e);return t="function"==typeof t?t:a,hi(yr(e,1,Yo,!0),a,t)}));
/**
     * This method is like `_.union` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which uniqueness is computed. Result values are chosen from the first
     * array in which the value occurs. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
/**
     * This method is like `_.zip` except that it accepts an array of grouped
     * elements and creates an array regrouping the elements to their pre-zip
     * configuration.
     *
     * @static
     * @memberOf _
     * @since 1.2.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     *
     * _.unzip(zipped);
     * // => [['a', 'b'], [1, 2], [true, false]]
     */
function io(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Yo(e))return t=Kt(e.length,t),!0})),Xt(t,(function(t){return Qt(e,Yt(t))}))}
/**
     * This method is like `_.unzip` except that it accepts `iteratee` to specify
     * how regrouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  regrouped values.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
     * // => [[1, 10, 100], [2, 20, 200]]
     *
     * _.unzipWith(zipped, _.add);
     * // => [3, 30, 300]
     */function ao(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:Qt(n,(function(e){return St(t,a,e)}))}
/**
     * Creates an array excluding all given values using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.pull`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...*} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.xor
     * @example
     *
     * _.without([2, 1, 2, 3], 1, 2);
     * // => [3]
     */var oo=Jr((function(e,t){return Yo(e)?fr(e,t):[]})),so=Jr((function(e){return mi(Dt(e,Yo))})),co=Jr((function(e){var t=$a(e);return Yo(t)&&(t=a),mi(Dt(e,Yo),la(t,2))})),lo=Jr((function(e){var t=$a(e);return t="function"==typeof t?t:a,mi(Dt(e,Yo),a,t)})),uo=Jr(io);
/**
     * Creates an array of unique values that is the
     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
     * of the given arrays. The order of result values is determined by the order
     * they occur in the arrays.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.without
     * @example
     *
     * _.xor([2, 1], [2, 3]);
     * // => [1, 3]
     */
/**
     * This method is like `_.zip` except that it accepts `iteratee` to specify
     * how grouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  grouped values.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
     *   return a + b + c;
     * });
     * // => [111, 222]
     */
var ho=Jr((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ao(e,n)}));
/*------------------------------------------------------------------------*/
/**
     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
     * chain sequences enabled. The result of such sequences must be unwrapped
     * with `_#value`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Seq
     * @param {*} value The value to wrap.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36 },
     *   { 'user': 'fred',    'age': 40 },
     *   { 'user': 'pebbles', 'age': 1 }
     * ];
     *
     * var youngest = _
     *   .chain(users)
     *   .sortBy('age')
     *   .map(function(o) {
     *     return o.user + ' is ' + o.age;
     *   })
     *   .head()
     *   .value();
     * // => 'pebbles is 1'
     */function fo(e){var t=zn(e);return t.__chain__=!0,t}
/**
     * This method invokes `interceptor` and returns `value`. The interceptor
     * is invoked with one argument; (value). The purpose of this method is to
     * "tap into" a method chain sequence in order to modify intermediate results.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns `value`.
     * @example
     *
     * _([1, 2, 3])
     *  .tap(function(array) {
     *    // Mutate input array.
     *    array.pop();
     *  })
     *  .reverse()
     *  .value();
     * // => [2, 1]
     */
/**
     * This method is like `_.tap` except that it returns the result of `interceptor`.
     * The purpose of this method is to "pass thru" values replacing intermediate
     * results in a method chain sequence.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns the result of `interceptor`.
     * @example
     *
     * _('  abc  ')
     *  .chain()
     *  .trim()
     *  .thru(function(value) {
     *    return [value];
     *  })
     *  .value();
     * // => ['abc']
     */
function po(e,t){return t(e)}
/**
     * This method is the wrapper version of `_.at`.
     *
     * @name at
     * @memberOf _
     * @since 1.0.0
     * @category Seq
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _(object).at(['a[0].b.c', 'a[1]']).value();
     * // => [3, 4]
     */var go=ra((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&Aa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:a}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));
/**
     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
     *
     * @name chain
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 }
     * ];
     *
     * // A sequence without explicit chaining.
     * _(users).head();
     * // => { 'user': 'barney', 'age': 36 }
     *
     * // A sequence with explicit chaining.
     * _(users)
     *   .chain()
     *   .head()
     *   .pick('user')
     *   .value();
     * // => { 'user': 'barney' }
     */
/*------------------------------------------------------------------------*/
/**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the number of times the key was returned by `iteratee`. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.countBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': 1, '6': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.countBy(['one', 'two', 'three'], 'length');
     * // => { '3': 2, '5': 1 }
     */
var mo=Oi((function(e,t,n){Qe.call(e,n)?++e[n]:or(e,n,1)}));
/**
     * Checks if `predicate` returns truthy for **all** elements of `collection`.
     * Iteration is stopped once `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * **Note:** This method returns `true` for
     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
     * elements of empty collections.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`.
     * @example
     *
     * _.every([true, 1, null, 'yes'], Boolean);
     * // => false
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.every(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.every(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.every(users, 'active');
     * // => false
     */
/**
     * Iterates over elements of `collection`, returning the first element
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': true },
     *   { 'user': 'fred',    'age': 40, 'active': false },
     *   { 'user': 'pebbles', 'age': 1,  'active': true }
     * ];
     *
     * _.find(users, function(o) { return o.age < 40; });
     * // => object for 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.find(users, { 'age': 1, 'active': true });
     * // => object for 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.find(users, ['active', false]);
     * // => object for 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.find(users, 'active');
     * // => object for 'barney'
     */
var vo=Ni(Ua),yo=Ni(Ga);
/**
     * This method is like `_.find` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=collection.length-1] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * _.findLast([1, 2, 3, 4], function(n) {
     *   return n % 2 == 1;
     * });
     * // => 3
     */
/**
     * Iterates over elements of `collection` and invokes `iteratee` for each element.
     * The iteratee is invoked with three arguments: (value, index|key, collection).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * **Note:** As with other "Collections" methods, objects with a "length"
     * property are iterated like arrays. To avoid this behavior use `_.forIn`
     * or `_.forOwn` for object iteration.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias each
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEachRight
     * @example
     *
     * _.forEach([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `1` then `2`.
     *
     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
function Ao(e,t){return(Vo(e)?Mt:dr)(e,la(t,3))}
/**
     * This method is like `_.forEach` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @alias eachRight
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEach
     * @example
     *
     * _.forEachRight([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `2` then `1`.
     */function bo(e,t){return(Vo(e)?Tt:pr)(e,la(t,3))}
/**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The order of grouped values
     * is determined by the order they occur in `collection`. The corresponding
     * value of each key is an array of elements responsible for generating the
     * key. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': [4.2], '6': [6.1, 6.3] }
     *
     * // The `_.property` iteratee shorthand.
     * _.groupBy(['one', 'two', 'three'], 'length');
     * // => { '3': ['one', 'two'], '5': ['three'] }
     */var wo=Oi((function(e,t,n){Qe.call(e,n)?e[n].push(t):or(e,n,[t])}));
/**
     * Checks if `value` is in `collection`. If `collection` is a string, it's
     * checked for a substring of `value`, otherwise
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * is used for equality comparisons. If `fromIndex` is negative, it's used as
     * the offset from the end of `collection`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {boolean} Returns `true` if `value` is found, else `false`.
     * @example
     *
     * _.includes([1, 2, 3], 1);
     * // => true
     *
     * _.includes([1, 2, 3], 1, 2);
     * // => false
     *
     * _.includes({ 'a': 1, 'b': 2 }, 1);
     * // => true
     *
     * _.includes('abcd', 'bc');
     * // => true
     */
/**
     * Invokes the method at `path` of each element in `collection`, returning
     * an array of the results of each invoked method. Any additional arguments
     * are provided to each invoked method. If `path` is a function, it's invoked
     * for, and `this` bound to, each element in `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array|Function|string} path The path of the method to invoke or
     *  the function invoked per iteration.
     * @param {...*} [args] The arguments to invoke each method with.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
     * // => [[1, 5, 7], [1, 2, 3]]
     *
     * _.invokeMap([123, 456], String.prototype.split, '');
     * // => [['1', '2', '3'], ['4', '5', '6']]
     */
var xo=Jr((function(e,t,n){var i=-1,a="function"==typeof t,o=qo(e)?r(e.length):[];return dr(e,(function(e){o[++i]=a?St(t,e,n):Tr(e,t,n)})),o})),Co=Oi((function(e,t,n){or(e,n,t)}));
/**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the last element responsible for generating the key. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * var array = [
     *   { 'dir': 'left', 'code': 97 },
     *   { 'dir': 'right', 'code': 100 }
     * ];
     *
     * _.keyBy(array, function(o) {
     *   return String.fromCharCode(o.code);
     * });
     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
     *
     * _.keyBy(array, 'dir');
     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
     */
/**
     * Creates an array of values by running each element in `collection` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
     *
     * The guarded methods are:
     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * _.map([4, 8], square);
     * // => [16, 64]
     *
     * _.map({ 'a': 4, 'b': 8 }, square);
     * // => [16, 64] (iteration order is not guaranteed)
     *
     * var users = [
     *   { 'user': 'barney' },
     *   { 'user': 'fred' }
     * ];
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, 'user');
     * // => ['barney', 'fred']
     */
function _o(e,t){return(Vo(e)?Qt:Fr)(e,la(t,3))}
/**
     * This method is like `_.sortBy` except that it allows specifying the sort
     * orders of the iteratees to sort by. If `orders` is unspecified, all values
     * are sorted in ascending order. Otherwise, specify an order of "desc" for
     * descending or "asc" for ascending sort order of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @param {string[]} [orders] The sort orders of `iteratees`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 34 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 36 }
     * ];
     *
     * // Sort by `user` in ascending order and by `age` in descending order.
     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     */
/**
     * Creates an array of elements split into two groups, the first of which
     * contains elements `predicate` returns truthy for, the second of which
     * contains elements `predicate` returns falsey for. The predicate is
     * invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of grouped elements.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': false },
     *   { 'user': 'fred',    'age': 40, 'active': true },
     *   { 'user': 'pebbles', 'age': 1,  'active': false }
     * ];
     *
     * _.partition(users, function(o) { return o.active; });
     * // => objects for [['fred'], ['barney', 'pebbles']]
     *
     * // The `_.matches` iteratee shorthand.
     * _.partition(users, { 'age': 1, 'active': false });
     * // => objects for [['pebbles'], ['barney', 'fred']]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.partition(users, ['active', false]);
     * // => objects for [['barney', 'pebbles'], ['fred']]
     *
     * // The `_.property` iteratee shorthand.
     * _.partition(users, 'active');
     * // => objects for [['fred'], ['barney', 'pebbles']]
     */
var Io=Oi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));
/**
     * Reduces `collection` to a value which is the accumulated result of running
     * each element in `collection` thru `iteratee`, where each successive
     * invocation is supplied the return value of the previous. If `accumulator`
     * is not given, the first element of `collection` is used as the initial
     * value. The iteratee is invoked with four arguments:
     * (accumulator, value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.reduce`, `_.reduceRight`, and `_.transform`.
     *
     * The guarded methods are:
     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
     * and `sortBy`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduceRight
     * @example
     *
     * _.reduce([1, 2], function(sum, n) {
     *   return sum + n;
     * }, 0);
     * // => 3
     *
     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     *   return result;
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
     */
/**
     * Creates an array of elements, sorted in ascending order by the results of
     * running each element in a collection thru each iteratee. This method
     * performs a stable sort, that is, it preserves the original sort order of
     * equal elements. The iteratees are invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 30 },
     *   { 'user': 'barney', 'age': 34 }
     * ];
     *
     * _.sortBy(users, [function(o) { return o.user; }]);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
     *
     * _.sortBy(users, ['user', 'age']);
     * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
     */
var Eo=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])})),ko=at||function(){return mt.Date.now()};
/*------------------------------------------------------------------------*/
/**
     * Gets the timestamp of the number of milliseconds that have elapsed since
     * the Unix epoch (1 January 1970 00:00:00 UTC).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Date
     * @returns {number} Returns the timestamp.
     * @example
     *
     * _.defer(function(stamp) {
     *   console.log(_.now() - stamp);
     * }, _.now());
     * // => Logs the number of milliseconds it took for the deferred invocation.
     */
/**
     * Creates a function that invokes `func`, with up to `n` arguments,
     * ignoring any additional arguments.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @param {number} [n=func.length] The arity cap.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
     * // => [6, 8, 10]
     */
function So(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Xi(e,f,a,a,a,a,t)}
/**
     * Creates a function that invokes `func`, with the `this` binding and arguments
     * of the created function, while it's called less than `n` times. Subsequent
     * calls to the created function return the result of the last `func` invocation.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {number} n The number of calls at which `func` is no longer invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * jQuery(element).on('click', _.before(5, addContactToList));
     * // => Allows adding up to 4 contacts to the list.
     */function Bo(e,t){var n;if("function"!=typeof t)throw new Me(o);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}
/**
     * Creates a function that invokes `func` with the `this` binding of `thisArg`
     * and `partials` prepended to the arguments it receives.
     *
     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for partially applied arguments.
     *
     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
     * property of bound functions.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to bind.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * function greet(greeting, punctuation) {
     *   return greeting + ' ' + this.user + punctuation;
     * }
     *
     * var object = { 'user': 'fred' };
     *
     * var bound = _.bind(greet, object, 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bind(greet, object, _, '!');
     * bound('hi');
     * // => 'hi fred!'
     */var Mo=Jr((function(e,t,n){var r=1;if(n.length){var i=fn(n,ca(Mo));r|=u}return Xi(e,r,t,n,i)})),To=Jr((function(e,t,n){var r=3;if(n.length){var i=fn(n,ca(To));r|=u}return Xi(t,r,e,n,i)}));
/**
     * Creates a function that invokes the method at `object[key]` with `partials`
     * prepended to the arguments it receives.
     *
     * This method differs from `_.bind` by allowing bound functions to reference
     * methods that may be redefined or don't yet exist. See
     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
     * for more details.
     *
     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Function
     * @param {Object} object The object to invoke the method on.
     * @param {string} key The key of the method.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * var object = {
     *   'user': 'fred',
     *   'greet': function(greeting, punctuation) {
     *     return greeting + ' ' + this.user + punctuation;
     *   }
     * };
     *
     * var bound = _.bindKey(object, 'greet', 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * object.greet = function(greeting, punctuation) {
     *   return greeting + 'ya ' + this.user + punctuation;
     * };
     *
     * bound('!');
     * // => 'hiya fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bindKey(object, 'greet', _, '!');
     * bound('hi');
     * // => 'hiya fred!'
     */
/**
     * Creates a debounced function that delays invoking `func` until after `wait`
     * milliseconds have elapsed since the last time the debounced function was
     * invoked. The debounced function comes with a `cancel` method to cancel
     * delayed `func` invocations and a `flush` method to immediately invoke them.
     * Provide `options` to indicate whether `func` should be invoked on the
     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
     * with the last arguments provided to the debounced function. Subsequent
     * calls to the debounced function return the result of the last `func`
     * invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the debounced function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.debounce` and `_.throttle`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to debounce.
     * @param {number} [wait=0] The number of milliseconds to delay.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=false]
     *  Specify invoking on the leading edge of the timeout.
     * @param {number} [options.maxWait]
     *  The maximum time `func` is allowed to be delayed before it's invoked.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new debounced function.
     * @example
     *
     * // Avoid costly calculations while the window size is in flux.
     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
     *
     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
     * jQuery(element).on('click', _.debounce(sendMail, 300, {
     *   'leading': true,
     *   'trailing': false
     * }));
     *
     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
     * var source = new EventSource('/stream');
     * jQuery(source).on('message', debounced);
     *
     * // Cancel the trailing debounced invocation.
     * jQuery(window).on('popstate', debounced.cancel);
     */
function Oo(e,t,n){var r,i,s,c,l,u,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Me(o);function g(t){var n=r,o=i;return r=i=a,h=t,c=e.apply(o,n)}function m(e){var n=e-u;
// Either this is the first call, activity has stopped and we're at the
// trailing edge, the system time has gone backwards and we're treating
// it as the trailing edge, or we've hit the `maxWait` limit.
return u===a||n>=t||n<0||d&&e-h>=s}function v(){var e=ko();if(m(e))return y(e);
// Restart the timer.
l=Ta(v,function(e){var n=t-(e-u);return d?bn(n,s-(e-h)):n}(e))}function y(e){
// Only invoke if we have `lastArgs` which means `func` has been
// debounced at least once.
return l=a,p&&r?g(e):(r=i=a,c)}function A(){var e=ko(),n=m(e);if(r=arguments,i=this,u=e,n){if(l===a)return function(e){
// Invoke the leading edge.
// Reset any `maxWait` timer.
return h=e,
// Start the timer for the trailing edge.
l=Ta(v,t),f?g(e):c}(u);if(d)
// Handle invocations in a tight loop.
return Ci(l),l=Ta(v,t),g(u)}return l===a&&(l=Ta(v,t)),c}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(d="maxWait"in n)?Kt(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),A.cancel=function(){l!==a&&Ci(l),h=0,r=u=i=l=a},A.flush=function(){return l===a?c:y(ko())},A}
/**
     * Defers invoking the `func` until the current call stack has cleared. Any
     * additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to defer.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.defer(function(text) {
     *   console.log(text);
     * }, 'deferred');
     * // => Logs 'deferred' after one millisecond.
     */var Do=Jr((function(e,t){return hr(e,1,t)})),Po=Jr((function(e,t,n){return hr(e,vs(t)||0,n)}));
/**
     * Invokes `func` after `wait` milliseconds. Any additional arguments are
     * provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.delay(function(text) {
     *   console.log(text);
     * }, 1000, 'later');
     * // => Logs 'later' after one second.
     */
/**
     * Creates a function that memoizes the result of `func`. If `resolver` is
     * provided, it determines the cache key for storing the result based on the
     * arguments provided to the memoized function. By default, the first argument
     * provided to the memoized function is used as the map cache key. The `func`
     * is invoked with the `this` binding of the memoized function.
     *
     * **Note:** The cache is exposed as the `cache` property on the memoized
     * function. Its creation may be customized by replacing the `_.memoize.Cache`
     * constructor with one whose instances implement the
     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to have its output memoized.
     * @param {Function} [resolver] The function to resolve the cache key.
     * @returns {Function} Returns the new memoized function.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     * var other = { 'c': 3, 'd': 4 };
     *
     * var values = _.memoize(_.values);
     * values(object);
     * // => [1, 2]
     *
     * values(other);
     * // => [3, 4]
     *
     * object.a = 2;
     * values(object);
     * // => [1, 2]
     *
     * // Modify the result cache.
     * values.cache.set(object, ['a', 'b']);
     * values(object);
     * // => ['a', 'b']
     *
     * // Replace `_.memoize.Cache`.
     * _.memoize.Cache = WeakMap;
     */
function Lo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Lo.Cache||Yn),n}
// Expose `MapCache`.
/**
     * Creates a function that negates the result of the predicate `func`. The
     * `func` predicate is invoked with the `this` binding and arguments of the
     * created function.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} predicate The predicate to negate.
     * @returns {Function} Returns the new negated function.
     * @example
     *
     * function isEven(n) {
     *   return n % 2 == 0;
     * }
     *
     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
     * // => [1, 3, 5]
     */
function Qo(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}
/**
     * Creates a function that is restricted to invoking `func` once. Repeat calls
     * to the function return the value of the first invocation. The `func` is
     * invoked with the `this` binding and arguments of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var initialize = _.once(createApplication);
     * initialize();
     * initialize();
     * // => `createApplication` is invoked once
     */Lo.Cache=Yn;
/**
     * Creates a function that invokes `func` with its arguments transformed.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Function
     * @param {Function} func The function to wrap.
     * @param {...(Function|Function[])} [transforms=[_.identity]]
     *  The argument transforms.
     * @returns {Function} Returns the new function.
     * @example
     *
     * function doubled(n) {
     *   return n * 2;
     * }
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var func = _.overArgs(function(x, y) {
     *   return [x, y];
     * }, [square, doubled]);
     *
     * func(9, 3);
     * // => [81, 6]
     *
     * func(10, 5);
     * // => [100, 10]
     */
var Ro=wi((function(e,t){var n=(t=1==t.length&&Vo(t[0])?Qt(t[0],en(la())):Qt(yr(t,1),en(la()))).length;return Jr((function(r){for(var i=-1,a=bn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return St(e,this,r)}))})),jo=Jr((function(e,t){var n=fn(t,ca(jo));return Xi(e,u,a,t,n)})),No=Jr((function(e,t){var n=fn(t,ca(No));return Xi(e,h,a,t,n)})),Fo=ra((function(e,t){return Xi(e,d,a,a,a,t)}));
/**
     * Creates a function that invokes `func` with `partials` prepended to the
     * arguments it receives. This method is like `_.bind` except it does **not**
     * alter the `this` binding.
     *
     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 0.2.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var sayHelloTo = _.partial(greet, 'hello');
     * sayHelloTo('fred');
     * // => 'hello fred'
     *
     * // Partially applied with placeholders.
     * var greetFred = _.partial(greet, _, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     */
/**
     * Performs a
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * comparison between two values to determine if they are equivalent.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.eq(object, object);
     * // => true
     *
     * _.eq(object, other);
     * // => false
     *
     * _.eq('a', 'a');
     * // => true
     *
     * _.eq('a', Object('a'));
     * // => false
     *
     * _.eq(NaN, NaN);
     * // => true
     */
function zo(e,t){return e===t||e!=e&&t!=t}
/**
     * Checks if `value` is greater than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     * @see _.lt
     * @example
     *
     * _.gt(3, 1);
     * // => true
     *
     * _.gt(3, 3);
     * // => false
     *
     * _.gt(1, 3);
     * // => false
     */var Ho=qi(kr),Uo=qi((function(e,t){return e>=t})),Go=Or(function(){return arguments}())?Or:function(e){return ns(e)&&Qe.call(e,"callee")&&!Ke.call(e,"callee")},Vo=r.isArray,Wo=xt?en(xt):function(e){return ns(e)&&Er(e)==L}
/**
     * The base implementation of `_.isDate` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     */;
/**
     * Checks if `value` is greater than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than or equal to
     *  `other`, else `false`.
     * @see _.lte
     * @example
     *
     * _.gte(3, 1);
     * // => true
     *
     * _.gte(3, 3);
     * // => true
     *
     * _.gte(1, 3);
     * // => false
     */
/**
     * Checks if `value` is array-like. A value is considered array-like if it's
     * not a function and has a `value.length` that's an integer greater than or
     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
     * @example
     *
     * _.isArrayLike([1, 2, 3]);
     * // => true
     *
     * _.isArrayLike(document.body.children);
     * // => true
     *
     * _.isArrayLike('abc');
     * // => true
     *
     * _.isArrayLike(_.noop);
     * // => false
     */
function qo(e){return null!=e&&es(e.length)&&!Xo(e)}
/**
     * This method is like `_.isArrayLike` except that it also checks if `value`
     * is an object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array-like object,
     *  else `false`.
     * @example
     *
     * _.isArrayLikeObject([1, 2, 3]);
     * // => true
     *
     * _.isArrayLikeObject(document.body.children);
     * // => true
     *
     * _.isArrayLikeObject('abc');
     * // => false
     *
     * _.isArrayLikeObject(_.noop);
     * // => false
     */function Yo(e){return ns(e)&&qo(e)}
/**
     * Checks if `value` is classified as a boolean primitive or object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
     * @example
     *
     * _.isBoolean(false);
     * // => true
     *
     * _.isBoolean(null);
     * // => false
     */
/**
     * Checks if `value` is a buffer.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
     * @example
     *
     * _.isBuffer(new Buffer(2));
     * // => true
     *
     * _.isBuffer(new Uint8Array(2));
     * // => false
     */
var Ko=yt||vc,$o=Ct?en(Ct):function(e){return ns(e)&&Er(e)==x};
/**
     * Checks if `value` is classified as a `Date` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     * @example
     *
     * _.isDate(new Date);
     * // => true
     *
     * _.isDate('Mon April 23 2012');
     * // => false
     */
/**
     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
     * `SyntaxError`, `TypeError`, or `URIError` object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
     * @example
     *
     * _.isError(new Error);
     * // => true
     *
     * _.isError(Error);
     * // => false
     */
function Jo(e){if(!ns(e))return!1;var t=Er(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}
/**
     * Checks if `value` is a finite primitive number.
     *
     * **Note:** This method is based on
     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
     * @example
     *
     * _.isFinite(3);
     * // => true
     *
     * _.isFinite(Number.MIN_VALUE);
     * // => true
     *
     * _.isFinite(Infinity);
     * // => false
     *
     * _.isFinite('3');
     * // => false
     */
/**
     * Checks if `value` is classified as a `Function` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
     * @example
     *
     * _.isFunction(_);
     * // => true
     *
     * _.isFunction(/abc/);
     * // => false
     */
function Xo(e){if(!ts(e))return!1;
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var t=Er(e);return t==_||t==I||"[object AsyncFunction]"==t||"[object Proxy]"==t}
/**
     * Checks if `value` is an integer.
     *
     * **Note:** This method is based on
     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
     * @example
     *
     * _.isInteger(3);
     * // => true
     *
     * _.isInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isInteger(Infinity);
     * // => false
     *
     * _.isInteger('3');
     * // => false
     */function Zo(e){return"number"==typeof e&&e==gs(e)}
/**
     * Checks if `value` is a valid array-like length.
     *
     * **Note:** This method is loosely based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
     * @example
     *
     * _.isLength(3);
     * // => true
     *
     * _.isLength(Number.MIN_VALUE);
     * // => false
     *
     * _.isLength(Infinity);
     * // => false
     *
     * _.isLength('3');
     * // => false
     */function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}
/**
     * Checks if `value` is the
     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
     * @example
     *
     * _.isObject({});
     * // => true
     *
     * _.isObject([1, 2, 3]);
     * // => true
     *
     * _.isObject(_.noop);
     * // => true
     *
     * _.isObject(null);
     * // => false
     */function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}
/**
     * Checks if `value` is object-like. A value is object-like if it's not `null`
     * and has a `typeof` result of "object".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
     * @example
     *
     * _.isObjectLike({});
     * // => true
     *
     * _.isObjectLike([1, 2, 3]);
     * // => true
     *
     * _.isObjectLike(_.noop);
     * // => false
     *
     * _.isObjectLike(null);
     * // => false
     */function ns(e){return null!=e&&"object"==typeof e}
/**
     * Checks if `value` is classified as a `Map` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     * @example
     *
     * _.isMap(new Map);
     * // => true
     *
     * _.isMap(new WeakMap);
     * // => false
     */var rs=_t?en(_t):function(e){return ns(e)&&ga(e)==E};
/**
     * Performs a partial deep comparison between `object` and `source` to
     * determine if `object` contains equivalent property values.
     *
     * **Note:** This method is equivalent to `_.matches` when `source` is
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.isMatch(object, { 'b': 2 });
     * // => true
     *
     * _.isMatch(object, { 'b': 1 });
     * // => false
     */
/**
     * Checks if `value` is classified as a `Number` primitive or object.
     *
     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
     * classified as numbers, use the `_.isFinite` method.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
     * @example
     *
     * _.isNumber(3);
     * // => true
     *
     * _.isNumber(Number.MIN_VALUE);
     * // => true
     *
     * _.isNumber(Infinity);
     * // => true
     *
     * _.isNumber('3');
     * // => false
     */
function is(e){return"number"==typeof e||ns(e)&&Er(e)==k}
/**
     * Checks if `value` is a plain object, that is, an object created by the
     * `Object` constructor or one with a `[[Prototype]]` of `null`.
     *
     * @static
     * @memberOf _
     * @since 0.8.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * _.isPlainObject(new Foo);
     * // => false
     *
     * _.isPlainObject([1, 2, 3]);
     * // => false
     *
     * _.isPlainObject({ 'x': 0, 'y': 0 });
     * // => true
     *
     * _.isPlainObject(Object.create(null));
     * // => true
     */function as(e){if(!ns(e)||Er(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=Qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Fe}
/**
     * Checks if `value` is classified as a `RegExp` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     * @example
     *
     * _.isRegExp(/abc/);
     * // => true
     *
     * _.isRegExp('/abc/');
     * // => false
     */var os=It?en(It):function(e){return ns(e)&&Er(e)==M}
/**
     * The base implementation of `_.isSet` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     */;
/**
     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
     * double precision number which isn't the result of a rounded unsafe integer.
     *
     * **Note:** This method is based on
     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
     * @example
     *
     * _.isSafeInteger(3);
     * // => true
     *
     * _.isSafeInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isSafeInteger(Infinity);
     * // => false
     *
     * _.isSafeInteger('3');
     * // => false
     */
/**
     * Checks if `value` is classified as a `Set` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     * @example
     *
     * _.isSet(new Set);
     * // => true
     *
     * _.isSet(new WeakSet);
     * // => false
     */
var ss=Et?en(Et):function(e){return ns(e)&&ga(e)==T}
/**
     * The base implementation of `_.isTypedArray` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     */;
/**
     * Checks if `value` is classified as a `String` primitive or object.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
     * @example
     *
     * _.isString('abc');
     * // => true
     *
     * _.isString(1);
     * // => false
     */function cs(e){return"string"==typeof e||!Vo(e)&&ns(e)&&Er(e)==O}
/**
     * Checks if `value` is classified as a `Symbol` primitive or object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
     * @example
     *
     * _.isSymbol(Symbol.iterator);
     * // => true
     *
     * _.isSymbol('abc');
     * // => false
     */function ls(e){return"symbol"==typeof e||ns(e)&&Er(e)==D}
/**
     * Checks if `value` is classified as a typed array.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     * @example
     *
     * _.isTypedArray(new Uint8Array);
     * // => true
     *
     * _.isTypedArray([]);
     * // => false
     */var us=kt?en(kt):function(e){return ns(e)&&es(e.length)&&!!lt[Er(e)]};
/**
     * Checks if `value` is `undefined`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
     * @example
     *
     * _.isUndefined(void 0);
     * // => true
     *
     * _.isUndefined(null);
     * // => false
     */
/**
     * Checks if `value` is less than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     * @see _.gt
     * @example
     *
     * _.lt(1, 3);
     * // => true
     *
     * _.lt(3, 3);
     * // => false
     *
     * _.lt(3, 1);
     * // => false
     */
var hs=qi(Nr),fs=qi((function(e,t){return e<=t}));
/**
     * Checks if `value` is less than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than or equal to
     *  `other`, else `false`.
     * @see _.gte
     * @example
     *
     * _.lte(1, 3);
     * // => true
     *
     * _.lte(3, 3);
     * // => true
     *
     * _.lte(3, 1);
     * // => false
     */
/**
     * Converts `value` to an array.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Array} Returns the converted array.
     * @example
     *
     * _.toArray({ 'a': 1, 'b': 2 });
     * // => [1, 2]
     *
     * _.toArray('abc');
     * // => ['a', 'b', 'c']
     *
     * _.toArray(1);
     * // => []
     *
     * _.toArray(null);
     * // => []
     */
function ds(e){if(!e)return[];if(qo(e))return cs(e)?mn(e):Mi(e);if(Xe&&e[Xe])
/**
   * Converts `iterator` to an array.
   *
   * @private
   * @param {Object} iterator The iterator to convert.
   * @returns {Array} Returns the converted array.
   */
return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ga(e);return(t==E?un:t==T?dn:zs)(e)}
/**
     * Converts `value` to a finite number.
     *
     * @static
     * @memberOf _
     * @since 4.12.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted number.
     * @example
     *
     * _.toFinite(3.2);
     * // => 3.2
     *
     * _.toFinite(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toFinite(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toFinite('3.2');
     * // => 3.2
     */function ps(e){return e?(e=vs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}
/**
     * Converts `value` to an integer.
     *
     * **Note:** This method is loosely based on
     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toInteger(3.2);
     * // => 3
     *
     * _.toInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toInteger(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toInteger('3.2');
     * // => 3
     */function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}
/**
     * Converts `value` to an integer suitable for use as the length of an
     * array-like object.
     *
     * **Note:** This method is based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toLength(3.2);
     * // => 3
     *
     * _.toLength(Number.MIN_VALUE);
     * // => 0
     *
     * _.toLength(Infinity);
     * // => 4294967295
     *
     * _.toLength('3.2');
     * // => 3
     */function ms(e){return e?cr(gs(e),0,v):0}
/**
     * Converts `value` to a number.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     * @example
     *
     * _.toNumber(3.2);
     * // => 3.2
     *
     * _.toNumber(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toNumber(Infinity);
     * // => Infinity
     *
     * _.toNumber('3.2');
     * // => 3.2
     */function vs(e){if("number"==typeof e)return e;if(ls(e))return m;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):ve.test(e)?m:+e}
/**
     * Converts `value` to a plain object flattening inherited enumerable string
     * keyed properties of `value` to own properties of the plain object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Object} Returns the converted plain object.
     * @example
     *
     * function Foo() {
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.assign({ 'a': 1 }, new Foo);
     * // => { 'a': 1, 'b': 2 }
     *
     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
     * // => { 'a': 1, 'b': 2, 'c': 3 }
     */function ys(e){return Ti(e,Ds(e))}
/**
     * Converts `value` to a safe integer. A safe integer can be compared and
     * represented correctly.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toSafeInteger(3.2);
     * // => 3
     *
     * _.toSafeInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toSafeInteger(Infinity);
     * // => 9007199254740991
     *
     * _.toSafeInteger('3.2');
     * // => 3
     */
/**
     * Converts `value` to a string. An empty string is returned for `null`
     * and `undefined` values. The sign of `-0` is preserved.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.toString(null);
     * // => ''
     *
     * _.toString(-0);
     * // => '-0'
     *
     * _.toString([1, 2, 3]);
     * // => '1,2,3'
     */
function As(e){return null==e?"":ui(e)}
/*------------------------------------------------------------------------*/
/**
     * Assigns own enumerable string keyed properties of source objects to the
     * destination object. Source objects are applied from left to right.
     * Subsequent sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object` and is loosely based on
     * [`Object.assign`](https://mdn.io/Object/assign).
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assignIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assign({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'c': 3 }
     */var bs=Di((function(e,t){if(_a(t)||qo(t))Ti(t,Os(t),e);else for(var n in t)Qe.call(t,n)&&nr(e,n,t[n])})),ws=Di((function(e,t){Ti(t,Ds(t),e)})),xs=Di((function(e,t,n,r){Ti(t,Ds(t),e,r)})),Cs=Di((function(e,t,n,r){Ti(t,Os(t),e,r)})),_s=ra(sr);
/**
     * This method is like `_.assign` except that it iterates over own and
     * inherited source properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extend
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assign
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
     */
/**
     * Assigns own and inherited enumerable string keyed properties of source
     * objects to the destination object for all destination properties that
     * resolve to `undefined`. Source objects are applied from left to right.
     * Once a property is set, additional values of the same property are ignored.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaultsDeep
     * @example
     *
     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
var Is=Jr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&ba(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=Ds(o),c=-1,l=s.length;++c<l;){var u=s[c],h=e[u];(h===a||zo(h,De[u])&&!Qe.call(e,u))&&(e[u]=o[u])}return e})),Es=Jr((function(e){return e.push(a,ea),St(Ls,a,e)}));
/**
     * This method is like `_.defaults` except that it recursively assigns
     * default properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaults
     * @example
     *
     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
     * // => { 'a': { 'b': 2, 'c': 3 } }
     */
/**
     * Gets the value at `path` of `object`. If the resolved value is
     * `undefined`, the `defaultValue` is returned in its place.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.get(object, 'a[0].b.c');
     * // => 3
     *
     * _.get(object, ['a', '0', 'b', 'c']);
     * // => 3
     *
     * _.get(object, 'a.b.c', 'default');
     * // => 'default'
     */
function ks(e,t,n){var r=null==e?a:_r(e,t);return r===a?n:r}
/**
     * Checks if `path` is a direct property of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = { 'a': { 'b': 2 } };
     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.has(object, 'a');
     * // => true
     *
     * _.has(object, 'a.b');
     * // => true
     *
     * _.has(object, ['a', 'b']);
     * // => true
     *
     * _.has(other, 'a');
     * // => false
     */
/**
     * Checks if `path` is a direct or inherited property of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.hasIn(object, 'a');
     * // => true
     *
     * _.hasIn(object, 'a.b');
     * // => true
     *
     * _.hasIn(object, ['a', 'b']);
     * // => true
     *
     * _.hasIn(object, 'b');
     * // => false
     */
function Ss(e,t){return null!=e&&ma(e,t,Br)}
/**
     * Creates an object composed of the inverted keys and values of `object`.
     * If `object` contains duplicate values, subsequent values overwrite
     * property assignments of previous values.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Object
     * @param {Object} object The object to invert.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invert(object);
     * // => { '1': 'c', '2': 'b' }
     */var Bs=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),tc(ic)),Ms=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Qe.call(e,t)?e[t].push(n):e[t]=[n]}),la),Ts=Jr(Tr);
/**
     * This method is like `_.invert` except that the inverted object is generated
     * from the results of running each element of `object` thru `iteratee`. The
     * corresponding inverted value of each inverted key is an array of keys
     * responsible for generating the inverted value. The iteratee is invoked
     * with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Object
     * @param {Object} object The object to invert.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invertBy(object);
     * // => { '1': ['a', 'c'], '2': ['b'] }
     *
     * _.invertBy(object, function(value) {
     *   return 'group' + value;
     * });
     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
     */
/**
     * Creates an array of the own enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects. See the
     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * for more details.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keys(new Foo);
     * // => ['a', 'b'] (iteration order is not guaranteed)
     *
     * _.keys('hi');
     * // => ['0', '1']
     */
function Os(e){return qo(e)?Jn(e):Rr(e)}
/**
     * Creates an array of the own and inherited enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keysIn(new Foo);
     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
     */function Ds(e){return qo(e)?Jn(e,!0):jr(e)}
/**
     * The opposite of `_.mapValues`; this method creates an object with the
     * same values as `object` and keys generated by running each own enumerable
     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
     * with three arguments: (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapValues
     * @example
     *
     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
     *   return key + value;
     * });
     * // => { 'a1': 1, 'b2': 2 }
     */
/**
     * This method is like `_.assign` except that it recursively merges own and
     * inherited enumerable string keyed properties of source objects into the
     * destination object. Source properties that resolve to `undefined` are
     * skipped if a destination value exists. Array and plain object properties
     * are merged recursively. Other objects and value types are overridden by
     * assignment. Source objects are applied from left to right. Subsequent
     * sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {
     *   'a': [{ 'b': 2 }, { 'd': 4 }]
     * };
     *
     * var other = {
     *   'a': [{ 'c': 3 }, { 'e': 5 }]
     * };
     *
     * _.merge(object, other);
     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
     */
var Ps=Di((function(e,t,n){Ur(e,t,n)})),Ls=Di((function(e,t,n,r){Ur(e,t,n,r)})),Qs=ra((function(e,t){var n={};if(null==e)return n;var r=!1;t=Qt(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Ti(e,aa(e),n),r&&(n=lr(n,7,ta));for(var i=t.length;i--;)fi(n,t[i]);return n}));
/**
     * This method is like `_.merge` except that it accepts `customizer` which
     * is invoked to produce the merged values of the destination and source
     * properties. If `customizer` returns `undefined`, merging is handled by the
     * method instead. The `customizer` is invoked with six arguments:
     * (objValue, srcValue, key, object, source, stack).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} customizer The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   if (_.isArray(objValue)) {
     *     return objValue.concat(srcValue);
     *   }
     * }
     *
     * var object = { 'a': [1], 'b': [2] };
     * var other = { 'a': [3], 'b': [4] };
     *
     * _.mergeWith(object, other, customizer);
     * // => { 'a': [1, 3], 'b': [2, 4] }
     */
/**
     * Creates an object composed of the picked `object` properties.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pick(object, ['a', 'c']);
     * // => { 'a': 1, 'c': 3 }
     */
var Rs=ra((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));
/**
     * Creates an object composed of the `object` properties `predicate` returns
     * truthy for. The predicate is invoked with two arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pickBy(object, _.isNumber);
     * // => { 'a': 1, 'c': 3 }
     */function js(e,t){if(null==e)return{};var n=Qt(aa(e),(function(e){return[e]}));return t=la(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}
/**
     * This method is like `_.get` except that if the resolved value is a
     * function it's invoked with the `this` binding of its parent object and
     * its result is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to resolve.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
     *
     * _.result(object, 'a[0].b.c1');
     * // => 3
     *
     * _.result(object, 'a[0].b.c2');
     * // => 4
     *
     * _.result(object, 'a[0].b.c3', 'default');
     * // => 'default'
     *
     * _.result(object, 'a[0].b.c3', _.constant('default'));
     * // => 'default'
     */
/**
     * Creates an array of own enumerable string keyed-value pairs for `object`
     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
     * entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entries
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairs(new Foo);
     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
     */
var Ns=Ji(Os),Fs=Ji(Ds);
/**
     * Creates an array of own and inherited enumerable string keyed-value pairs
     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
     * or set, its entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entriesIn
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairsIn(new Foo);
     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
     */
/**
     * Creates an array of the own enumerable string keyed property values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.values(new Foo);
     * // => [1, 2] (iteration order is not guaranteed)
     *
     * _.values('hi');
     * // => ['h', 'i']
     */
function zs(e){return null==e?[]:tn(e,Os(e))}
/**
     * Creates an array of the own and inherited enumerable string keyed property
     * values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.valuesIn(new Foo);
     * // => [1, 2, 3] (iteration order is not guaranteed)
     */
/*------------------------------------------------------------------------*/
/**
     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the camel cased string.
     * @example
     *
     * _.camelCase('Foo Bar');
     * // => 'fooBar'
     *
     * _.camelCase('--foo-bar--');
     * // => 'fooBar'
     *
     * _.camelCase('__FOO_BAR__');
     * // => 'fooBar'
     */
var Hs=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));
/**
     * Converts the first character of `string` to upper case and the remaining
     * to lower case.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to capitalize.
     * @returns {string} Returns the capitalized string.
     * @example
     *
     * _.capitalize('FRED');
     * // => 'Fred'
     */function Us(e){return Js(As(e).toLowerCase())}
/**
     * Deburrs `string` by converting
     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
     * letters to basic Latin letters and removing
     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to deburr.
     * @returns {string} Returns the deburred string.
     * @example
     *
     * _.deburr('déjà vu');
     * // => 'deja vu'
     */function Gs(e){return(e=As(e))&&e.replace(xe,on).replace(nt,"")}
/**
     * Checks if `string` ends with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=string.length] The position to search up to.
     * @returns {boolean} Returns `true` if `string` ends with `target`,
     *  else `false`.
     * @example
     *
     * _.endsWith('abc', 'c');
     * // => true
     *
     * _.endsWith('abc', 'b');
     * // => false
     *
     * _.endsWith('abc', 'b', 2);
     * // => true
     */
/**
     * Converts `string` to
     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the kebab cased string.
     * @example
     *
     * _.kebabCase('Foo Bar');
     * // => 'foo-bar'
     *
     * _.kebabCase('fooBar');
     * // => 'foo-bar'
     *
     * _.kebabCase('__FOO_BAR__');
     * // => 'foo-bar'
     */
var Vs=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Qi("toLowerCase");
/**
     * Converts `string`, as space separated words, to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.lowerCase('--Foo-Bar--');
     * // => 'foo bar'
     *
     * _.lowerCase('fooBar');
     * // => 'foo bar'
     *
     * _.lowerCase('__FOO_BAR__');
     * // => 'foo bar'
     */
/**
     * Converts `string` to
     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the snake cased string.
     * @example
     *
     * _.snakeCase('Foo Bar');
     * // => 'foo_bar'
     *
     * _.snakeCase('fooBar');
     * // => 'foo_bar'
     *
     * _.snakeCase('--FOO-BAR--');
     * // => 'foo_bar'
     */
var Ys=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));
/**
     * Splits `string` by `separator`.
     *
     * **Note:** This method is based on
     * [`String#split`](https://mdn.io/String/split).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to split.
     * @param {RegExp|string} separator The separator pattern to split by.
     * @param {number} [limit] The length to truncate results to.
     * @returns {Array} Returns the string segments.
     * @example
     *
     * _.split('a-b-c', '-', 2);
     * // => ['a', 'b']
     */
/**
     * Converts `string` to
     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
     *
     * @static
     * @memberOf _
     * @since 3.1.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the start cased string.
     * @example
     *
     * _.startCase('--foo-bar--');
     * // => 'Foo Bar'
     *
     * _.startCase('fooBar');
     * // => 'Foo Bar'
     *
     * _.startCase('__FOO_BAR__');
     * // => 'FOO BAR'
     */
var Ks=Ri((function(e,t,n){return e+(n?" ":"")+Js(t)}));
/**
     * Checks if `string` starts with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=0] The position to search from.
     * @returns {boolean} Returns `true` if `string` starts with `target`,
     *  else `false`.
     * @example
     *
     * _.startsWith('abc', 'a');
     * // => true
     *
     * _.startsWith('abc', 'b');
     * // => false
     *
     * _.startsWith('abc', 'b', 1);
     * // => true
     */
/**
     * Converts `string`, as space separated words, to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.upperCase('--foo-bar');
     * // => 'FOO BAR'
     *
     * _.upperCase('fooBar');
     * // => 'FOO BAR'
     *
     * _.upperCase('__foo_bar__');
     * // => 'FOO BAR'
     */
var $s=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Qi("toUpperCase");
/**
     * Converts the first character of `string` to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.upperFirst('fred');
     * // => 'Fred'
     *
     * _.upperFirst('FRED');
     * // => 'FRED'
     */
/**
     * Splits `string` into an array of its words.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {RegExp|string} [pattern] The pattern to match words.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the words of `string`.
     * @example
     *
     * _.words('fred, barney, & pebbles');
     * // => ['fred', 'barney', 'pebbles']
     *
     * _.words('fred, barney, & pebbles', /[^, ]+/g);
     * // => ['fred', 'barney', '&', 'pebbles']
     */
function Xs(e,t,n){return e=As(e),(t=n?a:t)===a?function(e){return ot.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}
/*------------------------------------------------------------------------*/
/**
     * Attempts to invoke `func`, returning either the result or the caught error
     * object. Any additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Function} func The function to attempt.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {*} Returns the `func` result or error object.
     * @example
     *
     * // Avoid throwing errors for invalid selectors.
     * var elements = _.attempt(function(selector) {
     *   return document.querySelectorAll(selector);
     * }, '>_>');
     *
     * if (_.isError(elements)) {
     *   elements = [];
     * }
     */var Zs=Jr((function(e,t){try{return St(e,a,t)}catch(e){return Jo(e)?e:new ce(e)}})),ec=ra((function(e,t){return Mt(t,(function(t){t=Ra(t),or(e,t,Mo(e[t],e))})),e}));
/**
     * Binds methods of an object to the object itself, overwriting the existing
     * method.
     *
     * **Note:** This method doesn't set the "length" property of bound functions.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Object} object The object to bind and assign the bound methods to.
     * @param {...(string|string[])} methodNames The object method names to bind.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var view = {
     *   'label': 'docs',
     *   'click': function() {
     *     console.log('clicked ' + this.label);
     *   }
     * };
     *
     * _.bindAll(view, ['click']);
     * jQuery(element).on('click', view.click);
     * // => Logs 'clicked docs' when clicked.
     */
/**
     * Creates a function that returns `value`.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {*} value The value to return from the new function.
     * @returns {Function} Returns the new constant function.
     * @example
     *
     * var objects = _.times(2, _.constant({ 'a': 1 }));
     *
     * console.log(objects);
     * // => [{ 'a': 1 }, { 'a': 1 }]
     *
     * console.log(objects[0] === objects[1]);
     * // => true
     */
function tc(e){return function(){return e}}
/**
     * Checks `value` to determine whether a default value should be returned in
     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
     * or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Util
     * @param {*} value The value to check.
     * @param {*} defaultValue The default value.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * _.defaultTo(1, 10);
     * // => 1
     *
     * _.defaultTo(undefined, 10);
     * // => 10
     */
/**
     * Creates a function that returns the result of invoking the given functions
     * with the `this` binding of the created function, where each successive
     * invocation is supplied the return value of the previous.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flowRight
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flow([_.add, square]);
     * addSquare(1, 2);
     * // => 9
     */
var nc=Fi(),rc=Fi(!0);
/**
     * This method is like `_.flow` except that it creates a function that
     * invokes the given functions from right to left.
     *
     * @static
     * @since 3.0.0
     * @memberOf _
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flow
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flowRight([square, _.add]);
     * addSquare(1, 2);
     * // => 9
     */
/**
     * This method returns the first argument it receives.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {*} value Any value.
     * @returns {*} Returns `value`.
     * @example
     *
     * var object = { 'a': 1 };
     *
     * console.log(_.identity(object) === object);
     * // => true
     */
function ic(e){return e}
/**
     * Creates a function that invokes `func` with the arguments of the created
     * function. If `func` is a property name, the created function returns the
     * property value for a given element. If `func` is an array or object, the
     * created function returns `true` for elements that contain the equivalent
     * source properties, otherwise it returns `false`.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Util
     * @param {*} [func=_.identity] The value to convert to a callback.
     * @returns {Function} Returns the callback.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, _.iteratee(['user', 'fred']));
     * // => [{ 'user': 'fred', 'age': 40 }]
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, _.iteratee('user'));
     * // => ['barney', 'fred']
     *
     * // Create custom iteratee shorthands.
     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
     *     return func.test(string);
     *   };
     * });
     *
     * _.filter(['abc', 'def'], /ef/);
     * // => ['def']
     */function ac(e){return Qr("function"==typeof e?e:lr(e,1))}
/**
     * Creates a function that performs a partial deep comparison between a given
     * object and `source`, returning `true` if the given object has equivalent
     * property values, else `false`.
     *
     * **Note:** The created function is equivalent to `_.isMatch` with `source`
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * **Note:** Multiple values can be checked by combining several matchers
     * using `_.overSome`
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
     *
     * // Checking for several possible values
     * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
     */
/**
     * Creates a function that invokes the method at `path` of a given object.
     * Any additional arguments are provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': _.constant(2) } },
     *   { 'a': { 'b': _.constant(1) } }
     * ];
     *
     * _.map(objects, _.method('a.b'));
     * // => [2, 1]
     *
     * _.map(objects, _.method(['a', 'b']));
     * // => [2, 1]
     */
var oc=Jr((function(e,t){return function(n){return Tr(n,e,t)}})),sc=Jr((function(e,t){return function(n){return Tr(e,n,t)}}));
/**
     * The opposite of `_.method`; this method creates a function that invokes
     * the method at a given path of `object`. Any additional arguments are
     * provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Object} object The object to query.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var array = _.times(3, _.constant),
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
     * // => [2, 0]
     */
/**
     * Adds all own enumerable string keyed function properties of a source
     * object to the destination object. If `object` is a function, then methods
     * are added to its prototype as well.
     *
     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
     * avoid conflicts caused by modifying the original.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Function|Object} [object=lodash] The destination object.
     * @param {Object} source The object of functions to add.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
     * @returns {Function|Object} Returns `object`.
     * @example
     *
     * function vowels(string) {
     *   return _.filter(string, function(v) {
     *     return /[aeiou]/i.test(v);
     *   });
     * }
     *
     * _.mixin({ 'vowels': vowels });
     * _.vowels('fred');
     * // => ['e']
     *
     * _('fred').vowels().value();
     * // => ['e']
     *
     * _.mixin({ 'vowels': vowels }, { 'chain': false });
     * _('fred').vowels();
     * // => ['e']
     */
function cc(e,t,n){var r=Os(t),i=Cr(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Cr(t,Os(t)));var a=!(ts(n)&&"chain"in n&&!n.chain),o=Xo(e);return Mt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}
/**
     * Reverts the `_` variable to its previous value and returns a reference to
     * the `lodash` function.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @returns {Function} Returns the `lodash` function.
     * @example
     *
     * var lodash = _.noConflict();
     */
/**
     * This method returns `undefined`.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Util
     * @example
     *
     * _.times(2, _.noop);
     * // => [undefined, undefined]
     */
function lc(){
// No operation performed.
}
/**
     * Creates a function that gets the argument at index `n`. If `n` is negative,
     * the nth argument from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [n=0] The index of the argument to return.
     * @returns {Function} Returns the new pass-thru function.
     * @example
     *
     * var func = _.nthArg(1);
     * func('a', 'b', 'c', 'd');
     * // => 'b'
     *
     * var func = _.nthArg(-2);
     * func('a', 'b', 'c', 'd');
     * // => 'c'
     */
/**
     * Creates a function that invokes `iteratees` with the arguments it receives
     * and returns their results.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to invoke.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.over([Math.max, Math.min]);
     *
     * func(1, 2, 3, 4);
     * // => [4, 1]
     */
var uc=Gi(Qt),hc=Gi(Ot),fc=Gi(Ft);
/**
     * Creates a function that checks if **all** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * Following shorthands are possible for providing predicates.
     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overEvery([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => false
     *
     * func(NaN);
     * // => false
     */
/**
     * Creates a function that returns the value at `path` of a given object.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': 2 } },
     *   { 'a': { 'b': 1 } }
     * ];
     *
     * _.map(objects, _.property('a.b'));
     * // => [2, 1]
     *
     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
     * // => [1, 2]
     */
function dc(e){return wa(e)?Yt(Ra(e)):function(e){return function(t){return _r(t,e)}}(e)}
/**
     * The opposite of `_.property`; this method creates a function that returns
     * the value at a given path of `object`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} object The object to query.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var array = [0, 1, 2],
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
     * // => [2, 0]
     */
/**
     * Creates an array of numbers (positive and/or negative) progressing from
     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
     * `start` is specified without an `end` or `step`. If `end` is not specified,
     * it's set to `start` with `start` then set to `0`.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.rangeRight
     * @example
     *
     * _.range(4);
     * // => [0, 1, 2, 3]
     *
     * _.range(-4);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 5);
     * // => [1, 2, 3, 4]
     *
     * _.range(0, 20, 5);
     * // => [0, 5, 10, 15]
     *
     * _.range(0, -4, -1);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.range(0);
     * // => []
     */
var pc=Wi(),gc=Wi(!0);
/**
     * This method is like `_.range` except that it populates values in
     * descending order.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.range
     * @example
     *
     * _.rangeRight(4);
     * // => [3, 2, 1, 0]
     *
     * _.rangeRight(-4);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 5);
     * // => [4, 3, 2, 1]
     *
     * _.rangeRight(0, 20, 5);
     * // => [15, 10, 5, 0]
     *
     * _.rangeRight(0, -4, -1);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.rangeRight(0);
     * // => []
     */
/**
     * This method returns a new empty array.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Array} Returns the new empty array.
     * @example
     *
     * var arrays = _.times(2, _.stubArray);
     *
     * console.log(arrays);
     * // => [[], []]
     *
     * console.log(arrays[0] === arrays[1]);
     * // => false
     */
function mc(){return[]}
/**
     * This method returns `false`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `false`.
     * @example
     *
     * _.times(2, _.stubFalse);
     * // => [false, false]
     */function vc(){return!1}
/**
     * This method returns a new empty object.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Object} Returns the new empty object.
     * @example
     *
     * var objects = _.times(2, _.stubObject);
     *
     * console.log(objects);
     * // => [{}, {}]
     *
     * console.log(objects[0] === objects[1]);
     * // => false
     */
/*------------------------------------------------------------------------*/
/**
     * Adds two numbers.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {number} augend The first number in an addition.
     * @param {number} addend The second number in an addition.
     * @returns {number} Returns the total.
     * @example
     *
     * _.add(6, 4);
     * // => 10
     */
var yc=Ui((function(e,t){return e+t}),0),Ac=Ki("ceil"),bc=Ui((function(e,t){return e/t}),1),wc=Ki("floor");
/**
     * Computes `number` rounded up to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round up.
     * @param {number} [precision=0] The precision to round up to.
     * @returns {number} Returns the rounded up number.
     * @example
     *
     * _.ceil(4.006);
     * // => 5
     *
     * _.ceil(6.004, 2);
     * // => 6.01
     *
     * _.ceil(6040, -2);
     * // => 6100
     */
/**
     * Multiply two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} multiplier The first number in a multiplication.
     * @param {number} multiplicand The second number in a multiplication.
     * @returns {number} Returns the product.
     * @example
     *
     * _.multiply(6, 4);
     * // => 24
     */
var xc,Cc=Ui((function(e,t){return e*t}),1),_c=Ki("round"),Ic=Ui((function(e,t){return e-t}),0);
/**
     * Computes `number` rounded to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round.
     * @param {number} [precision=0] The precision to round to.
     * @returns {number} Returns the rounded number.
     * @example
     *
     * _.round(4.006);
     * // => 4
     *
     * _.round(4.006, 2);
     * // => 4.01
     *
     * _.round(4060, -2);
     * // => 4100
     */
/*------------------------------------------------------------------------*/
// Add methods that return wrapped values in chain sequences.
return zn.after=
/*------------------------------------------------------------------------*/
/**
     * The opposite of `_.before`; this method creates a function that invokes
     * `func` once it's called `n` or more times.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {number} n The number of calls before `func` is invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var saves = ['profile', 'settings'];
     *
     * var done = _.after(saves.length, function() {
     *   console.log('done saving!');
     * });
     *
     * _.forEach(saves, function(type) {
     *   asyncSave({ 'type': type, 'complete': done });
     * });
     * // => Logs 'done saving!' after the two async saves have completed.
     */
function(e,t){if("function"!=typeof t)throw new Me(o);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=So,zn.assign=bs,zn.assignIn=ws,zn.assignInWith=xs,zn.assignWith=Cs,zn.at=_s,zn.before=Bo,zn.bind=Mo,zn.bindAll=ec,zn.bindKey=To,zn.castArray=
/*------------------------------------------------------------------------*/
/**
     * Casts `value` as an array if it's not one.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Lang
     * @param {*} value The value to inspect.
     * @returns {Array} Returns the cast array.
     * @example
     *
     * _.castArray(1);
     * // => [1]
     *
     * _.castArray({ 'a': 1 });
     * // => [{ 'a': 1 }]
     *
     * _.castArray('abc');
     * // => ['abc']
     *
     * _.castArray(null);
     * // => [null]
     *
     * _.castArray(undefined);
     * // => [undefined]
     *
     * _.castArray();
     * // => []
     *
     * var array = [1, 2, 3];
     * console.log(_.castArray(array) === array);
     * // => true
     */
function(){if(!arguments.length)return[];var e=arguments[0];return Vo(e)?e:[e]}
/**
     * Creates a shallow clone of `value`.
     *
     * **Note:** This method is loosely based on the
     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
     * and supports cloning arrays, array buffers, booleans, date objects, maps,
     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
     * arrays. The own enumerable properties of `arguments` objects are cloned
     * as plain objects. An empty object is returned for uncloneable values such
     * as error objects, functions, DOM nodes, and WeakMaps.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to clone.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeep
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var shallow = _.clone(objects);
     * console.log(shallow[0] === objects[0]);
     * // => true
     */,zn.chain=fo,zn.chunk=function(e,t,n){t=(n?ba(e,t,n):t===a)?1:Kt(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,c=r(pt(i/t));o<i;)c[s++]=ii(e,o,o+=t);return c}
/**
     * Creates an array with all falsey values removed. The values `false`, `null`,
     * `0`, `""`, `undefined`, and `NaN` are falsey.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to compact.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.compact([0, 1, false, 2, '', 3]);
     * // => [1, 2, 3]
     */,zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}
/**
     * Creates a new array concatenating `array` with any additional arrays
     * and/or values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to concatenate.
     * @param {...*} [values] The values to concatenate.
     * @returns {Array} Returns the new concatenated array.
     * @example
     *
     * var array = [1];
     * var other = _.concat(array, 2, [3], [[4]]);
     *
     * console.log(other);
     * // => [1, 2, 3, [4]]
     *
     * console.log(array);
     * // => [1]
     */,zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Rt(Vo(n)?Mi(n):[n],yr(t,1))},zn.cond=
/**
     * Creates a function that iterates over `pairs` and invokes the corresponding
     * function of the first predicate to return truthy. The predicate-function
     * pairs are invoked with the `this` binding and arguments of the created
     * function.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Array} pairs The predicate-function pairs.
     * @returns {Function} Returns the new composite function.
     * @example
     *
     * var func = _.cond([
     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
     *   [_.stubTrue,                      _.constant('no match')]
     * ]);
     *
     * func({ 'a': 1, 'b': 2 });
     * // => 'matches A'
     *
     * func({ 'a': 0, 'b': 1 });
     * // => 'matches B'
     *
     * func({ 'a': '1', 'b': '2' });
     * // => 'no match'
     */
function(e){var t=null==e?0:e.length,n=la();return e=t?Qt(e,(function(e){if("function"!=typeof e[1])throw new Me(o);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var i=e[r];if(St(i[0],this,n))return St(i[1],this,n)}}))}
/**
     * Creates a function that invokes the predicate properties of `source` with
     * the corresponding property values of a given object, returning `true` if
     * all predicates return truthy, else `false`.
     *
     * **Note:** The created function is equivalent to `_.conformsTo` with
     * `source` partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 2, 'b': 1 },
     *   { 'a': 1, 'b': 2 }
     * ];
     *
     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
     * // => [{ 'a': 1, 'b': 2 }]
     */,zn.conforms=function(e){return function(e){var t=Os(e);return function(n){return ur(n,e,t)}}(lr(e,1))},zn.constant=tc,zn.countBy=mo,zn.create=
/**
     * Creates an object that inherits from the `prototype` object. If a
     * `properties` object is given, its own enumerable string keyed properties
     * are assigned to the created object.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Object
     * @param {Object} prototype The object to inherit from.
     * @param {Object} [properties] The properties to assign to the object.
     * @returns {Object} Returns the new object.
     * @example
     *
     * function Shape() {
     *   this.x = 0;
     *   this.y = 0;
     * }
     *
     * function Circle() {
     *   Shape.call(this);
     * }
     *
     * Circle.prototype = _.create(Shape.prototype, {
     *   'constructor': Circle
     * });
     *
     * var circle = new Circle;
     * circle instanceof Circle;
     * // => true
     *
     * circle instanceof Shape;
     * // => true
     */
function(e,t){var n=Hn(e);return null==t?n:ar(n,t)},zn.curry=
/**
     * Creates a function that accepts arguments of `func` and either invokes
     * `func` returning its result, if at least `arity` number of arguments have
     * been provided, or returns a function that accepts the remaining `func`
     * arguments, and so on. The arity of `func` may be specified if `func.length`
     * is not sufficient.
     *
     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curry(abc);
     *
     * curried(1)(2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(1)(_, 3)(2);
     * // => [1, 2, 3]
     */
function e(t,n,r){var i=Xi(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i}
/**
     * This method is like `_.curry` except that arguments are applied to `func`
     * in the manner of `_.partialRight` instead of `_.partial`.
     *
     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curryRight(abc);
     *
     * curried(3)(2)(1);
     * // => [1, 2, 3]
     *
     * curried(2, 3)(1);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(3)(1, _)(2);
     * // => [1, 2, 3]
     */,zn.curryRight=function e(t,n,r){var i=Xi(t,l,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},zn.debounce=Oo,zn.defaults=Is,zn.defaultsDeep=Es,zn.defer=Do,zn.delay=Po,zn.difference=Fa,zn.differenceBy=za,zn.differenceWith=Ha,zn.drop=
/**
     * Creates a slice of `array` with `n` elements dropped from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.drop([1, 2, 3]);
     * // => [2, 3]
     *
     * _.drop([1, 2, 3], 2);
     * // => [3]
     *
     * _.drop([1, 2, 3], 5);
     * // => []
     *
     * _.drop([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===a?1:gs(t))<0?0:t,r):[]}
/**
     * Creates a slice of `array` with `n` elements dropped from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.dropRight([1, 2, 3]);
     * // => [1, 2]
     *
     * _.dropRight([1, 2, 3], 2);
     * // => [1]
     *
     * _.dropRight([1, 2, 3], 5);
     * // => []
     *
     * _.dropRight([1, 2, 3], 0);
     * // => [1, 2, 3]
     */,zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===a?1:gs(t)))<0?0:t):[]}
/**
     * Creates a slice of `array` excluding elements dropped from the end.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.dropRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropRightWhile(users, ['active', false]);
     * // => objects for ['barney']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropRightWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */,zn.dropRightWhile=function(e,t){return e&&e.length?pi(e,la(t,3),!0,!0):[]}
/**
     * Creates a slice of `array` excluding elements dropped from the beginning.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.dropWhile(users, function(o) { return !o.active; });
     * // => objects for ['pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropWhile(users, ['active', false]);
     * // => objects for ['pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */,zn.dropWhile=function(e,t){return e&&e.length?pi(e,la(t,3),!0):[]}
/**
     * Fills elements of `array` with `value` from `start` up to, but not
     * including, `end`.
     *
     * **Note:** This method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Array
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.fill(array, 'a');
     * console.log(array);
     * // => ['a', 'a', 'a']
     *
     * _.fill(Array(3), 2);
     * // => [2, 2, 2]
     *
     * _.fill([4, 6, 8, 10], '*', 1, 3);
     * // => [4, '*', '*', 10]
     */,zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ba(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gs(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:gs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=
/**
     * Iterates over elements of `collection`, returning an array of all elements
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * **Note:** Unlike `_.remove`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.reject
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * _.filter(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, { 'age': 36, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.filter(users, 'active');
     * // => objects for ['barney']
     *
     * // Combining several predicates using `_.overEvery` or `_.overSome`.
     * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
     * // => objects for ['fred', 'barney']
     */
function(e,t){return(Vo(e)?Dt:vr)(e,la(t,3))},zn.flatMap=
/**
     * Creates a flattened array of values by running each element in `collection`
     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
     * with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [n, n];
     * }
     *
     * _.flatMap([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
function(e,t){return yr(_o(e,t),1)}
/**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDeep([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */,zn.flatMapDeep=function(e,t){return yr(_o(e,t),p)}
/**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDepth([1, 2], duplicate, 2);
     * // => [[1, 1], [2, 2]]
     */,zn.flatMapDepth=function(e,t,n){return n=n===a?1:gs(n),yr(_o(e,t),n)},zn.flatten=Va,zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]}
/**
     * Recursively flatten `array` up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * var array = [1, [2, [3, [4]], 5]];
     *
     * _.flattenDepth(array, 1);
     * // => [1, 2, [3, [4]], 5]
     *
     * _.flattenDepth(array, 2);
     * // => [1, 2, 3, [4], 5]
     */,zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===a?1:gs(t)):[]}
/**
     * The inverse of `_.toPairs`; this method returns an object composed
     * from key-value `pairs`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} pairs The key-value pairs.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.fromPairs([['a', 1], ['b', 2]]);
     * // => { 'a': 1, 'b': 2 }
     */,zn.flip=
/**
     * Creates a function that invokes `func` with arguments reversed.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to flip arguments for.
     * @returns {Function} Returns the new flipped function.
     * @example
     *
     * var flipped = _.flip(function() {
     *   return _.toArray(arguments);
     * });
     *
     * flipped('a', 'b', 'c', 'd');
     * // => ['d', 'c', 'b', 'a']
     */
function(e){return Xi(e,512)},zn.flow=nc,zn.flowRight=rc,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=
/**
     * Creates an array of function property names from own enumerable properties
     * of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functionsIn
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functions(new Foo);
     * // => ['a', 'b']
     */
function(e){return null==e?[]:Cr(e,Os(e))}
/**
     * Creates an array of function property names from own and inherited
     * enumerable properties of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functions
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functionsIn(new Foo);
     * // => ['a', 'b', 'c']
     */,zn.functionsIn=function(e){return null==e?[]:Cr(e,Ds(e))},zn.groupBy=wo,zn.initial=
/**
     * Gets all but the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.initial([1, 2, 3]);
     * // => [1, 2]
     */
function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},zn.intersection=qa,zn.intersectionBy=Ya,zn.intersectionWith=Ka,zn.invert=Bs,zn.invertBy=Ms,zn.invokeMap=xo,zn.iteratee=ac,zn.keyBy=Co,zn.keys=Os,zn.keysIn=Ds,zn.map=_o,zn.mapKeys=function(e,t){var n={};return t=la(t,3),wr(e,(function(e,r,i){or(n,t(e,r,i),e)})),n}
/**
     * Creates an object with the same keys as `object` and values generated
     * by running each own enumerable string keyed property of `object` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapKeys
     * @example
     *
     * var users = {
     *   'fred':    { 'user': 'fred',    'age': 40 },
     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
     * };
     *
     * _.mapValues(users, function(o) { return o.age; });
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     *
     * // The `_.property` iteratee shorthand.
     * _.mapValues(users, 'age');
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     */,zn.mapValues=function(e,t){var n={};return t=la(t,3),wr(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},zn.matches=function(e){return zr(lr(e,1))}
/**
     * Creates a function that performs a partial deep comparison between the
     * value at `path` of a given object to `srcValue`, returning `true` if the
     * object value is equivalent, else `false`.
     *
     * **Note:** Partial comparisons will match empty array and empty object
     * `srcValue` values against any array or object value, respectively. See
     * `_.isEqual` for a list of supported value comparisons.
     *
     * **Note:** Multiple values can be checked by combining several matchers
     * using `_.overSome`
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.find(objects, _.matchesProperty('a', 4));
     * // => { 'a': 4, 'b': 5, 'c': 6 }
     *
     * // Checking for several possible values
     * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
     */,zn.matchesProperty=function(e,t){return Hr(e,lr(t,1))},zn.memoize=Lo,zn.merge=Ps,zn.mergeWith=Ls,zn.method=oc,zn.methodOf=sc,zn.mixin=cc,zn.negate=Qo,zn.nthArg=function(e){return e=gs(e),Jr((function(t){return Gr(t,e)}))},zn.omit=Qs,zn.omitBy=
/**
     * The opposite of `_.pickBy`; this method creates an object composed of
     * the own and inherited enumerable string keyed properties of `object` that
     * `predicate` doesn't return truthy for. The predicate is invoked with two
     * arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omitBy(object, _.isNumber);
     * // => { 'b': '2' }
     */
function(e,t){return js(e,Qo(la(t)))},zn.once=function(e){return Bo(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Vo(t)||(t=null==t?[]:[t]),Vo(n=r?a:n)||(n=null==n?[]:[n]),Vr(e,t,n))},zn.over=uc,zn.overArgs=Ro,zn.overEvery=hc,zn.overSome=fc,zn.partial=jo,zn.partialRight=No,zn.partition=Io,zn.pick=Rs,zn.pickBy=js,zn.property=dc,zn.propertyOf=function(e){return function(t){return null==e?a:_r(e,t)}},zn.pull=Ja,zn.pullAll=Xa,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,la(n,2)):e}
/**
     * This method is like `_.pullAll` except that it accepts `comparator` which
     * is invoked to compare elements of `array` to `values`. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
     *
     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
     * console.log(array);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
     */,zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,a,n):e},zn.pullAt=Za,zn.range=pc,zn.rangeRight=gc,zn.rearg=Fo,zn.reject=
/**
     * The opposite of `_.filter`; this method returns the elements of `collection`
     * that `predicate` does **not** return truthy for.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.filter
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': true }
     * ];
     *
     * _.reject(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.reject(users, { 'age': 40, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.reject(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.reject(users, 'active');
     * // => objects for ['barney']
     */
function(e,t){return(Vo(e)?Dt:vr)(e,Qo(la(t,3)))}
/**
     * Gets a random element from `collection`.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     * @example
     *
     * _.sample([1, 2, 3, 4]);
     * // => 2
     */,zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=la(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Yr(e,i),n},zn.rest=
/**
     * Creates a function that invokes `func` with the `this` binding of the
     * created function and arguments from `start` and beyond provided as
     * an array.
     *
     * **Note:** This method is based on the
     * [rest parameter](https://mdn.io/rest_parameters).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.rest(function(what, names) {
     *   return what + ' ' + _.initial(names).join(', ') +
     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
     * });
     *
     * say('hello', 'fred', 'barney', 'pebbles');
     * // => 'hello fred, barney, & pebbles'
     */
function(e,t){if("function"!=typeof e)throw new Me(o);return Jr(e,t=t===a?t:gs(t))}
/**
     * Creates a function that invokes `func` with the `this` binding of the
     * create function and an array of arguments much like
     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
     *
     * **Note:** This method is based on the
     * [spread operator](https://mdn.io/spread_operator).
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Function
     * @param {Function} func The function to spread arguments over.
     * @param {number} [start=0] The start position of the spread.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.spread(function(who, what) {
     *   return who + ' says ' + what;
     * });
     *
     * say(['fred', 'hello']);
     * // => 'fred says hello'
     *
     * var numbers = Promise.all([
     *   Promise.resolve(40),
     *   Promise.resolve(36)
     * ]);
     *
     * numbers.then(_.spread(function(x, y) {
     *   return x + y;
     * }));
     * // => a Promise of 76
     */,zn.reverse=eo,zn.sampleSize=
/**
     * Gets `n` random elements at unique keys from `collection` up to the
     * size of `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @param {number} [n=1] The number of elements to sample.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the random elements.
     * @example
     *
     * _.sampleSize([1, 2, 3], 2);
     * // => [3, 1]
     *
     * _.sampleSize([1, 2, 3], 4);
     * // => [2, 3, 1]
     */
function(e,t,n){return t=(n?ba(e,t,n):t===a)?1:gs(t),(Vo(e)?Zn:Zr)(e,t)}
/**
     * Creates an array of shuffled values, using a version of the
     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     * @example
     *
     * _.shuffle([1, 2, 3, 4]);
     * // => [4, 1, 3, 2]
     */,zn.set=
/**
     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
     * it's created. Arrays are created for missing index properties while objects
     * are created for all other missing properties. Use `_.setWith` to customize
     * `path` creation.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.set(object, 'a[0].b.c', 4);
     * console.log(object.a[0].b.c);
     * // => 4
     *
     * _.set(object, ['x', '0', 'y', 'z'], 5);
     * console.log(object.x[0].y.z);
     * // => 5
     */
function(e,t,n){return null==e?e:ei(e,t,n)}
/**
     * This method is like `_.set` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.setWith(object, '[0][1]', 'a', Object);
     * // => { '0': { '1': 'a' } }
     */,zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ei(e,t,n,r)},zn.shuffle=function(e){return(Vo(e)?er:ri)(e)}
/**
     * Gets the size of `collection` by returning its length for array-like
     * values or the number of own enumerable string keyed properties for objects.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @returns {number} Returns the collection size.
     * @example
     *
     * _.size([1, 2, 3]);
     * // => 3
     *
     * _.size({ 'a': 1, 'b': 2 });
     * // => 2
     *
     * _.size('pebbles');
     * // => 7
     */,zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ba(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===a?r:gs(n)),ii(e,t,n)):[]}
/**
     * Uses a binary search to determine the lowest index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedIndex([30, 50], 40);
     * // => 1
     */,zn.sortBy=Eo,zn.sortedUniq=
/**
     * This method is like `_.uniq` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniq([1, 1, 2]);
     * // => [1, 2]
     */
function(e){return e&&e.length?ci(e):[]}
/**
     * This method is like `_.uniqBy` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
     * // => [1.1, 2.3]
     */,zn.sortedUniqBy=function(e,t){return e&&e.length?ci(e,la(t,2)):[]}
/**
     * Gets all but the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.tail([1, 2, 3]);
     * // => [2, 3]
     */,zn.split=function(e,t,n){return n&&"number"!=typeof n&&ba(e,t,n)&&(t=n=a),(n=n===a?v:n>>>0)?(e=As(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ui(t))&&ln(e)?xi(mn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:Kt(gs(t),0),Jr((function(n){var r=n[t],i=xi(n,0,t);return r&&Rt(i,r),St(e,this,i)}))}
/**
     * Creates a throttled function that only invokes `func` at most once per
     * every `wait` milliseconds. The throttled function comes with a `cancel`
     * method to cancel delayed `func` invocations and a `flush` method to
     * immediately invoke them. Provide `options` to indicate whether `func`
     * should be invoked on the leading and/or trailing edge of the `wait`
     * timeout. The `func` is invoked with the last arguments provided to the
     * throttled function. Subsequent calls to the throttled function return the
     * result of the last `func` invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the throttled function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.throttle` and `_.debounce`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to throttle.
     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=true]
     *  Specify invoking on the leading edge of the timeout.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new throttled function.
     * @example
     *
     * // Avoid excessively updating the position while scrolling.
     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
     *
     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
     * jQuery(element).on('click', throttled);
     *
     * // Cancel the trailing throttled invocation.
     * jQuery(window).on('popstate', throttled.cancel);
     */,zn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]}
/**
     * Creates a slice of `array` with `n` elements taken from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.take([1, 2, 3]);
     * // => [1]
     *
     * _.take([1, 2, 3], 2);
     * // => [1, 2]
     *
     * _.take([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.take([1, 2, 3], 0);
     * // => []
     */,zn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===a?1:gs(t))<0?0:t):[]}
/**
     * Creates a slice of `array` with `n` elements taken from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.takeRight([1, 2, 3]);
     * // => [3]
     *
     * _.takeRight([1, 2, 3], 2);
     * // => [2, 3]
     *
     * _.takeRight([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.takeRight([1, 2, 3], 0);
     * // => []
     */,zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===a?1:gs(t)))<0?0:t,r):[]}
/**
     * Creates a slice of `array` with elements taken from the end. Elements are
     * taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.takeRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeRightWhile(users, ['active', false]);
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeRightWhile(users, 'active');
     * // => []
     */,zn.takeRightWhile=function(e,t){return e&&e.length?pi(e,la(t,3),!1,!0):[]}
/**
     * Creates a slice of `array` with elements taken from the beginning. Elements
     * are taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.takeWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeWhile(users, ['active', false]);
     * // => objects for ['barney', 'fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeWhile(users, 'active');
     * // => []
     */,zn.takeWhile=function(e,t){return e&&e.length?pi(e,la(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Me(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Oo(e,t,{leading:r,maxWait:t,trailing:i})}
/**
     * Creates a function that accepts up to one argument, ignoring any
     * additional arguments.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.unary(parseInt));
     * // => [6, 8, 10]
     */,zn.thru=po,zn.toArray=ds,zn.toPairs=Ns,zn.toPairsIn=Fs,zn.toPath=
/**
     * Converts `value` to a property path array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {*} value The value to convert.
     * @returns {Array} Returns the new property path array.
     * @example
     *
     * _.toPath('a.b.c');
     * // => ['a', 'b', 'c']
     *
     * _.toPath('a[0].b.c');
     * // => ['a', '0', 'b', 'c']
     */
function(e){return Vo(e)?Qt(e,Ra):ls(e)?[e]:Mi(Qa(As(e)))}
/**
     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {string} [prefix=''] The value to prefix the ID with.
     * @returns {string} Returns the unique ID.
     * @example
     *
     * _.uniqueId('contact_');
     * // => 'contact_104'
     *
     * _.uniqueId();
     * // => '105'
     */,zn.toPlainObject=ys,zn.transform=
/**
     * An alternative to `_.reduce`; this method transforms `object` to a new
     * `accumulator` object which is the result of running each of its own
     * enumerable string keyed properties thru `iteratee`, with each invocation
     * potentially mutating the `accumulator` object. If `accumulator` is not
     * provided, a new object with the same `[[Prototype]]` will be used. The
     * iteratee is invoked with four arguments: (accumulator, value, key, object).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The custom accumulator value.
     * @returns {*} Returns the accumulated value.
     * @example
     *
     * _.transform([2, 3, 4], function(result, n) {
     *   result.push(n *= n);
     *   return n % 2 == 0;
     * }, []);
     * // => [4, 9]
     *
     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] }
     */
function(e,t,n){var r=Vo(e),i=r||Ko(e)||us(e);if(t=la(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:ts(e)&&Xo(a)?Hn(qe(e)):{}}return(i?Mt:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n}
/**
     * Removes the property at `path` of `object`.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
     * _.unset(object, 'a[0].b.c');
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     *
     * _.unset(object, ['a', '0', 'b', 'c']);
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     */,zn.unary=function(e){return So(e,1)}
/**
     * Creates a function that provides `value` to `wrapper` as its first
     * argument. Any additional arguments provided to the function are appended
     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
     * binding of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {*} value The value to wrap.
     * @param {Function} [wrapper=identity] The wrapper function.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var p = _.wrap(_.escape, function(func, text) {
     *   return '<p>' + func(text) + '</p>';
     * });
     *
     * p('fred, barney, & pebbles');
     * // => '<p>fred, barney, &amp; pebbles</p>'
     */,zn.union=to,zn.unionBy=no,zn.unionWith=ro,zn.uniq=
/**
     * Creates a duplicate-free version of an array, using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons, in which only the first occurrence of each element
     * is kept. The order of result values is determined by the order they occur
     * in the array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniq([2, 1, 2]);
     * // => [2, 1]
     */
function(e){return e&&e.length?hi(e):[]}
/**
     * This method is like `_.uniq` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * uniqueness is computed. The order of result values is determined by the
     * order they occur in the array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */,zn.uniqBy=function(e,t){return e&&e.length?hi(e,la(t,2)):[]}
/**
     * This method is like `_.uniq` except that it accepts `comparator` which
     * is invoked to compare elements of `array`. The order of result values is
     * determined by the order they occur in the array.The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.uniqWith(objects, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
     */,zn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?hi(e,a,t):[]},zn.unset=function(e,t){return null==e||fi(e,t)}
/**
     * This method is like `_.set` except that accepts `updater` to produce the
     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
     * is invoked with one argument: (value).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
     * console.log(object.a[0].b.c);
     * // => 9
     *
     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
     * console.log(object.x[0].y.z);
     * // => 0
     */,zn.unzip=io,zn.unzipWith=ao,zn.update=function(e,t,n){return null==e?e:di(e,t,Ai(n))}
/**
     * This method is like `_.update` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
     * // => { '0': { '1': 'a' } }
     */,zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:di(e,t,Ai(n),r)},zn.values=zs,zn.valuesIn=function(e){return null==e?[]:tn(e,Ds(e))}
/*------------------------------------------------------------------------*/
/**
     * Clamps `number` within the inclusive `lower` and `upper` bounds.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Number
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     * @example
     *
     * _.clamp(-10, -5, 5);
     * // => -5
     *
     * _.clamp(10, -5, 5);
     * // => 5
     */,zn.without=oo,zn.words=Xs,zn.wrap=function(e,t){return jo(Ai(t),e)},zn.xor=so,zn.xorBy=co,zn.xorWith=lo,zn.zip=uo,zn.zipObject=
/**
     * This method is like `_.fromPairs` except that it accepts two arrays,
     * one of property identifiers and one of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 0.4.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObject(['a', 'b'], [1, 2]);
     * // => { 'a': 1, 'b': 2 }
     */
function(e,t){return vi(e||[],t||[],nr)}
/**
     * This method is like `_.zipObject` except that it supports property paths.
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
     */,zn.zipObjectDeep=function(e,t){return vi(e||[],t||[],ei)},zn.zipWith=ho,
// Add aliases.
zn.entries=Ns,zn.entriesIn=Fs,zn.extend=ws,zn.extendWith=xs,
// Add methods to `lodash.prototype`.
cc(zn,zn),
/*------------------------------------------------------------------------*/
// Add methods that return unwrapped values in chain sequences.
zn.add=yc,zn.attempt=Zs,zn.camelCase=Hs,zn.capitalize=Us,zn.ceil=Ac,zn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=vs(n))==n?n:0),t!==a&&(t=(t=vs(t))==t?t:0),cr(vs(e),t,n)}
/**
     * Checks if `n` is between `start` and up to, but not including, `end`. If
     * `end` is not specified, it's set to `start` with `start` then set to `0`.
     * If `start` is greater than `end` the params are swapped to support
     * negative ranges.
     *
     * @static
     * @memberOf _
     * @since 3.3.0
     * @category Number
     * @param {number} number The number to check.
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     * @see _.range, _.rangeRight
     * @example
     *
     * _.inRange(3, 2, 4);
     * // => true
     *
     * _.inRange(4, 8);
     * // => true
     *
     * _.inRange(4, 2);
     * // => false
     *
     * _.inRange(2, 2);
     * // => false
     *
     * _.inRange(1.2, 2);
     * // => true
     *
     * _.inRange(5.2, 4);
     * // => false
     *
     * _.inRange(-3, -2, -6);
     * // => true
     */,zn.clone=function(e){return lr(e,4)}
/**
     * This method is like `_.clone` except that it accepts `customizer` which
     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
     * cloning is handled by the method instead. The `customizer` is invoked with
     * up to four arguments; (value [, index|key, object, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeepWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(false);
     *   }
     * }
     *
     * var el = _.cloneWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 0
     */,zn.cloneDeep=
/**
     * This method is like `_.clone` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @returns {*} Returns the deep cloned value.
     * @see _.clone
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var deep = _.cloneDeep(objects);
     * console.log(deep[0] === objects[0]);
     * // => false
     */
function(e){return lr(e,5)}
/**
     * This method is like `_.cloneWith` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the deep cloned value.
     * @see _.cloneWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(true);
     *   }
     * }
     *
     * var el = _.cloneDeepWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 20
     */,zn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:a)}
/**
     * Checks if `object` conforms to `source` by invoking the predicate
     * properties of `source` with the corresponding property values of `object`.
     *
     * **Note:** This method is equivalent to `_.conforms` when `source` is
     * partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
     * // => true
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
     * // => false
     */,zn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:a)},zn.conformsTo=function(e,t){return null==t||ur(e,t,Os(t))},zn.deburr=Gs,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=bc,zn.endsWith=function(e,t,n){e=As(e),t=ui(t);var r=e.length,i=n=n===a?r:cr(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t}
/**
     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
     * corresponding HTML entities.
     *
     * **Note:** No other characters are escaped. To escape additional
     * characters use a third-party library like [_he_](https://mths.be/he).
     *
     * Though the ">" character is escaped for symmetry, characters like
     * ">" and "/" don't need escaping in HTML and have no special meaning
     * unless they're part of a tag or unquoted attribute value. See
     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
     * (under "semi-related fun fact") for more details.
     *
     * When working with HTML you should always
     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
     * XSS vectors.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escape('fred, barney, & pebbles');
     * // => 'fred, barney, &amp; pebbles'
     */,zn.eq=zo,zn.escape=function(e){return(e=As(e))&&X.test(e)?e.replace($,sn):e}
/**
     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escapeRegExp('[lodash](https://lodash.com/)');
     * // => '\[lodash\]\(https://lodash\.com/\)'
     */,zn.escapeRegExp=function(e){return(e=As(e))&&oe.test(e)?e.replace(ae,"\\$&"):e},zn.every=function(e,t,n){var r=Vo(e)?Ot:gr;return n&&ba(e,t,n)&&(t=a),r(e,la(t,3))},zn.find=vo,zn.findIndex=Ua,zn.findKey=
/**
     * This method is like `_.find` except that it returns the key of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findKey(users, function(o) { return o.age < 40; });
     * // => 'barney' (iteration order is not guaranteed)
     *
     * // The `_.matches` iteratee shorthand.
     * _.findKey(users, { 'age': 1, 'active': true });
     * // => 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findKey(users, 'active');
     * // => 'barney'
     */
function(e,t){return Ht(e,la(t,3),wr)}
/**
     * This method is like `_.findKey` except that it iterates over elements of
     * a collection in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findLastKey(users, function(o) { return o.age < 40; });
     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastKey(users, { 'age': 36, 'active': true });
     * // => 'barney'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastKey(users, 'active');
     * // => 'pebbles'
     */,zn.findLast=yo,zn.findLastIndex=Ga,zn.findLastKey=function(e,t){return Ht(e,la(t,3),xr)}
/**
     * Iterates over own and inherited enumerable string keyed properties of an
     * object and invokes `iteratee` for each property. The iteratee is invoked
     * with three arguments: (value, key, object). Iteratee functions may exit
     * iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forInRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forIn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
     */,zn.floor=wc,zn.forEach=Ao,zn.forEachRight=bo,zn.forIn=function(e,t){return null==e?e:Ar(e,la(t,3),Ds)}
/**
     * This method is like `_.forIn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forInRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
     */,zn.forInRight=function(e,t){return null==e?e:br(e,la(t,3),Ds)}
/**
     * Iterates over own enumerable string keyed properties of an object and
     * invokes `iteratee` for each property. The iteratee is invoked with three
     * arguments: (value, key, object). Iteratee functions may exit iteration
     * early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwnRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */,zn.forOwn=function(e,t){return e&&wr(e,la(t,3))}
/**
     * This method is like `_.forOwn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwnRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
     */,zn.forOwnRight=function(e,t){return e&&xr(e,la(t,3))},zn.get=ks,zn.gt=Ho,zn.gte=Uo,zn.has=function(e,t){return null!=e&&ma(e,t,Sr)},zn.hasIn=Ss,zn.head=Wa,zn.identity=ic,zn.includes=function(e,t,n,r){e=qo(e)?e:zs(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=Kt(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=Kt(r+i,0)),Gt(e,t,i)},zn.inRange=function(e,t,n){return t=ps(t),n===a?(n=t,t=0):n=ps(n),function(e,t,n){return e>=bn(t,n)&&e<Kt(t,n)}(e=vs(e),t,n)}
/**
     * Produces a random number between the inclusive `lower` and `upper` bounds.
     * If only one argument is provided a number between `0` and the given number
     * is returned. If `floating` is `true`, or either `lower` or `upper` are
     * floats, a floating-point number is returned instead of an integer.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Number
     * @param {number} [lower=0] The lower bound.
     * @param {number} [upper=1] The upper bound.
     * @param {boolean} [floating] Specify returning a floating-point number.
     * @returns {number} Returns the random number.
     * @example
     *
     * _.random(0, 5);
     * // => an integer between 0 and 5
     *
     * _.random(5);
     * // => also an integer between 0 and 5
     *
     * _.random(5, true);
     * // => a floating-point number between 0 and 5
     *
     * _.random(1.2, 5.2);
     * // => a floating-point number between 1.2 and 5.2
     */,zn.invoke=Ts,zn.isArguments=Go,zn.isArray=Vo,zn.isArrayBuffer=Wo,zn.isArrayLike=qo,zn.isArrayLikeObject=Yo,zn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Er(e)==w},zn.isBuffer=Ko,zn.isDate=$o,zn.isElement=
/**
     * Checks if `value` is likely a DOM element.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
     * @example
     *
     * _.isElement(document.body);
     * // => true
     *
     * _.isElement('<body>');
     * // => false
     */
function(e){return ns(e)&&1===e.nodeType&&!as(e)}
/**
     * Checks if `value` is an empty object, collection, map, or set.
     *
     * Objects are considered empty if they have no own enumerable string keyed
     * properties.
     *
     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
     * jQuery-like collections are considered empty if they have a `length` of `0`.
     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
     * @example
     *
     * _.isEmpty(null);
     * // => true
     *
     * _.isEmpty(true);
     * // => true
     *
     * _.isEmpty(1);
     * // => true
     *
     * _.isEmpty([1, 2, 3]);
     * // => false
     *
     * _.isEmpty({ 'a': 1 });
     * // => false
     */,zn.isEmpty=function(e){if(null==e)return!0;if(qo(e)&&(Vo(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||us(e)||Go(e)))return!e.length;var t=ga(e);if(t==E||t==T)return!e.size;if(_a(e))return!Rr(e).length;for(var n in e)if(Qe.call(e,n))return!1;return!0}
/**
     * Performs a deep comparison between two values to determine if they are
     * equivalent.
     *
     * **Note:** This method supports comparing arrays, array buffers, booleans,
     * date objects, error objects, maps, numbers, `Object` objects, regexes,
     * sets, strings, symbols, and typed arrays. `Object` objects are compared
     * by their own, not inherited, enumerable properties. Functions and DOM
     * nodes are compared by strict equality, i.e. `===`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.isEqual(object, other);
     * // => true
     *
     * object === other;
     * // => false
     */,zn.isEqual=function(e,t){return Dr(e,t)}
/**
     * This method is like `_.isEqual` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with up to
     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, othValue) {
     *   if (isGreeting(objValue) && isGreeting(othValue)) {
     *     return true;
     *   }
     * }
     *
     * var array = ['hello', 'goodbye'];
     * var other = ['hi', 'goodbye'];
     *
     * _.isEqualWith(array, other, customizer);
     * // => true
     */,zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Dr(e,t,a,n):!!r},zn.isError=Jo,zn.isFinite=function(e){return"number"==typeof e&&bt(e)},zn.isFunction=Xo,zn.isInteger=Zo,zn.isLength=es,zn.isMap=rs,zn.isMatch=function(e,t){return e===t||Pr(e,t,ha(t))}
/**
     * This method is like `_.isMatch` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with five
     * arguments: (objValue, srcValue, index|key, object, source).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, srcValue) {
     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
     *     return true;
     *   }
     * }
     *
     * var object = { 'greeting': 'hello' };
     * var source = { 'greeting': 'hi' };
     *
     * _.isMatchWith(object, source, customizer);
     * // => true
     */,zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Pr(e,t,ha(t),n)}
/**
     * Checks if `value` is `NaN`.
     *
     * **Note:** This method is based on
     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
     * `undefined` and other non-number values.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
     * @example
     *
     * _.isNaN(NaN);
     * // => true
     *
     * _.isNaN(new Number(NaN));
     * // => true
     *
     * isNaN(undefined);
     * // => true
     *
     * _.isNaN(undefined);
     * // => false
     */,zn.isNaN=function(e){
// An `NaN` primitive is the only value that is not equal to itself.
// Perform the `toStringTag` check first to avoid errors with some
// ActiveX objects in IE.
return is(e)&&e!=+e}
/**
     * Checks if `value` is a pristine native function.
     *
     * **Note:** This method can't reliably detect native functions in the presence
     * of the core-js package because core-js circumvents this kind of detection.
     * Despite multiple requests, the core-js maintainer has made it clear: any
     * attempt to fix the detection will be obstructed. As a result, we're left
     * with little choice but to throw an error. Unfortunately, this also affects
     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
     * which rely on core-js.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     * @example
     *
     * _.isNative(Array.prototype.push);
     * // => true
     *
     * _.isNative(_);
     * // => false
     */,zn.isNative=function(e){if(Ca(e))throw new ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)}
/**
     * Checks if `value` is `null`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
     * @example
     *
     * _.isNull(null);
     * // => true
     *
     * _.isNull(void 0);
     * // => false
     */,zn.isNil=
/**
     * Checks if `value` is `null` or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
     * @example
     *
     * _.isNil(null);
     * // => true
     *
     * _.isNil(void 0);
     * // => true
     *
     * _.isNil(NaN);
     * // => false
     */
function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=is,zn.isObject=ts,zn.isObjectLike=ns,zn.isPlainObject=as,zn.isRegExp=os,zn.isSafeInteger=function(e){return Zo(e)&&e>=-9007199254740991&&e<=g},zn.isSet=ss,zn.isString=cs,zn.isSymbol=ls,zn.isTypedArray=us,zn.isUndefined=function(e){return e===a}
/**
     * Checks if `value` is classified as a `WeakMap` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
     * @example
     *
     * _.isWeakMap(new WeakMap);
     * // => true
     *
     * _.isWeakMap(new Map);
     * // => false
     */,zn.isWeakMap=function(e){return ns(e)&&ga(e)==P}
/**
     * Checks if `value` is classified as a `WeakSet` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
     * @example
     *
     * _.isWeakSet(new WeakSet);
     * // => true
     *
     * _.isWeakSet(new Set);
     * // => false
     */,zn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Er(e)},zn.join=
/**
     * Converts all elements in `array` into a string separated by `separator`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to convert.
     * @param {string} [separator=','] The element separator.
     * @returns {string} Returns the joined string.
     * @example
     *
     * _.join(['a', 'b', 'c'], '~');
     * // => 'a~b~c'
     */
function(e,t){return null==e?"":wt.call(e,t)},zn.kebabCase=Vs,zn.last=$a,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=gs(n))<0?Kt(r+i,0):bn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Wt,i,!0)}
/**
     * Gets the element at index `n` of `array`. If `n` is negative, the nth
     * element from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.11.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=0] The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     *
     * _.nth(array, 1);
     * // => 'b'
     *
     * _.nth(array, -2);
     * // => 'c';
     */,zn.lowerCase=Ws,zn.lowerFirst=qs,zn.lt=hs,zn.lte=fs,zn.max=
/**
     * Computes the maximum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * _.max([4, 2, 8, 6]);
     * // => 8
     *
     * _.max([]);
     * // => undefined
     */
function(e){return e&&e.length?mr(e,ic,kr):a}
/**
     * This method is like `_.max` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.maxBy(objects, function(o) { return o.n; });
     * // => { 'n': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.maxBy(objects, 'n');
     * // => { 'n': 2 }
     */,zn.maxBy=function(e,t){return e&&e.length?mr(e,la(t,2),kr):a}
/**
     * Computes the mean of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the mean.
     * @example
     *
     * _.mean([4, 2, 8, 6]);
     * // => 5
     */,zn.mean=function(e){return qt(e,ic)}
/**
     * This method is like `_.mean` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be averaged.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the mean.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.meanBy(objects, function(o) { return o.n; });
     * // => 5
     *
     * // The `_.property` iteratee shorthand.
     * _.meanBy(objects, 'n');
     * // => 5
     */,zn.meanBy=function(e,t){return qt(e,la(t,2))}
/**
     * Computes the minimum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * _.min([4, 2, 8, 6]);
     * // => 2
     *
     * _.min([]);
     * // => undefined
     */,zn.min=function(e){return e&&e.length?mr(e,ic,Nr):a}
/**
     * This method is like `_.min` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.minBy(objects, function(o) { return o.n; });
     * // => { 'n': 1 }
     *
     * // The `_.property` iteratee shorthand.
     * _.minBy(objects, 'n');
     * // => { 'n': 1 }
     */,zn.minBy=function(e,t){return e&&e.length?mr(e,la(t,2),Nr):a},zn.stubArray=mc,zn.stubFalse=vc,zn.stubObject=function(){return{}}
/**
     * This method returns an empty string.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {string} Returns the empty string.
     * @example
     *
     * _.times(2, _.stubString);
     * // => ['', '']
     */,zn.stubString=function(){return""}
/**
     * This method returns `true`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `true`.
     * @example
     *
     * _.times(2, _.stubTrue);
     * // => [true, true]
     */,zn.stubTrue=function(){return!0}
/**
     * Invokes the iteratee `n` times, returning an array of the results of
     * each invocation. The iteratee is invoked with one argument; (index).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} n The number of times to invoke `iteratee`.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.times(3, String);
     * // => ['0', '1', '2']
     *
     *  _.times(4, _.constant(0));
     * // => [0, 0, 0, 0]
     */,zn.multiply=Cc,zn.nth=function(e,t){return e&&e.length?Gr(e,gs(t)):a},zn.noConflict=function(){return mt._===this&&(mt._=ze),this},zn.noop=lc,zn.now=ko,zn.pad=
/**
     * Pads `string` on the left and right sides if it's shorter than `length`.
     * Padding characters are truncated if they can't be evenly divided by `length`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.pad('abc', 8);
     * // => '  abc   '
     *
     * _.pad('abc', 8, '_-');
     * // => '_-abc_-_'
     *
     * _.pad('abc', 3);
     * // => 'abc'
     */
function(e,t,n){e=As(e);var r=(t=gs(t))?gn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Vi(gt(i),n)+e+Vi(pt(i),n)}
/**
     * Pads `string` on the right side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padEnd('abc', 6);
     * // => 'abc   '
     *
     * _.padEnd('abc', 6, '_-');
     * // => 'abc_-_'
     *
     * _.padEnd('abc', 3);
     * // => 'abc'
     */,zn.padEnd=function(e,t,n){e=As(e);var r=(t=gs(t))?gn(e):0;return t&&r<t?e+Vi(t-r,n):e}
/**
     * Pads `string` on the left side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padStart('abc', 6);
     * // => '   abc'
     *
     * _.padStart('abc', 6, '_-');
     * // => '_-_abc'
     *
     * _.padStart('abc', 3);
     * // => 'abc'
     */,zn.padStart=function(e,t,n){e=As(e);var r=(t=gs(t))?gn(e):0;return t&&r<t?Vi(t-r,n)+e:e}
/**
     * Converts `string` to an integer of the specified radix. If `radix` is
     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
     * hexadecimal, in which case a `radix` of `16` is used.
     *
     * **Note:** This method aligns with the
     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category String
     * @param {string} string The string to convert.
     * @param {number} [radix=10] The radix to interpret `value` by.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.parseInt('08');
     * // => 8
     *
     * _.map(['6', '08', '10'], _.parseInt);
     * // => [6, 8, 10]
     */,zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(As(e).replace(se,""),t||0)}
/**
     * Repeats the given string `n` times.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to repeat.
     * @param {number} [n=1] The number of times to repeat the string.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the repeated string.
     * @example
     *
     * _.repeat('*', 3);
     * // => '***'
     *
     * _.repeat('abc', 2);
     * // => 'abcabc'
     *
     * _.repeat('abc', 0);
     * // => ''
     */,zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ba(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=ps(e),t===a?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return bn(e+i*(t-e+ft("1e-"+((i+"").length-1))),t)}return Kr(e,t)},zn.reduce=function(e,t,n){var r=Vo(e)?jt:$t,i=arguments.length<3;return r(e,la(t,4),n,i,dr)}
/**
     * This method is like `_.reduce` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduce
     * @example
     *
     * var array = [[0, 1], [2, 3], [4, 5]];
     *
     * _.reduceRight(array, function(flattened, other) {
     *   return flattened.concat(other);
     * }, []);
     * // => [4, 5, 2, 3, 0, 1]
     */,zn.reduceRight=function(e,t,n){var r=Vo(e)?Nt:$t,i=arguments.length<3;return r(e,la(t,4),n,i,pr)},zn.repeat=function(e,t,n){return t=(n?ba(e,t,n):t===a)?1:gs(t),$r(As(e),t)}
/**
     * Replaces matches for `pattern` in `string` with `replacement`.
     *
     * **Note:** This method is based on
     * [`String#replace`](https://mdn.io/String/replace).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to modify.
     * @param {RegExp|string} pattern The pattern to replace.
     * @param {Function|string} replacement The match replacement.
     * @returns {string} Returns the modified string.
     * @example
     *
     * _.replace('Hi Fred', 'Fred', 'Barney');
     * // => 'Hi Barney'
     */,zn.replace=function(){var e=arguments,t=As(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=bi(t,e)).length;
// Ensure the loop is entered when path is empty.
for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[Ra(t[r])];o===a&&(r=i,o=n),e=Xo(o)?o.call(e):o}return e},zn.round=_c,zn.runInContext=e,zn.sample=function(e){return(Vo(e)?Xn:Xr)(e)},zn.size=function(e){if(null==e)return 0;if(qo(e))return cs(e)?gn(e):e.length;var t=ga(e);return t==E||t==T?e.size:Rr(e).length}
/**
     * Checks if `predicate` returns truthy for **any** element of `collection`.
     * Iteration is stopped once `predicate` returns truthy. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     * @example
     *
     * _.some([null, 0, 'yes', false], Boolean);
     * // => true
     *
     * var users = [
     *   { 'user': 'barney', 'active': true },
     *   { 'user': 'fred',   'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.some(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.some(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.some(users, 'active');
     * // => true
     */,zn.snakeCase=Ys,zn.some=function(e,t,n){var r=Vo(e)?Ft:ai;return n&&ba(e,t,n)&&(t=a),r(e,la(t,3))},zn.sortedIndex=function(e,t){return oi(e,t)}
/**
     * This method is like `_.sortedIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
     * // => 0
     */,zn.sortedIndexBy=function(e,t,n){return si(e,t,la(n,2))}
/**
     * This method is like `_.indexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
     * // => 1
     */,zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&zo(e[r],t))return r}return-1}
/**
     * This method is like `_.sortedIndex` except that it returns the highest
     * index at which `value` should be inserted into `array` in order to
     * maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
     * // => 4
     */,zn.sortedLastIndex=function(e,t){return oi(e,t,!0)}
/**
     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 1
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
     * // => 1
     */,zn.sortedLastIndexBy=function(e,t,n){return si(e,t,la(n,2),!0)}
/**
     * This method is like `_.lastIndexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
     * // => 3
     */,zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(zo(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=As(e),n=null==n?0:cr(gs(n),0,e.length),t=ui(t),e.slice(n,n+t.length)==t}
/**
     * Creates a compiled template function that can interpolate data properties
     * in "interpolate" delimiters, HTML-escape interpolated data properties in
     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
     * properties may be accessed as free variables in the template. If a setting
     * object is given, it takes precedence over `_.templateSettings` values.
     *
     * **Note:** In the development build `_.template` utilizes
     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
     * for easier debugging.
     *
     * For more information on precompiling templates see
     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
     *
     * For more information on Chrome extension sandboxes see
     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The template string.
     * @param {Object} [options={}] The options object.
     * @param {RegExp} [options.escape=_.templateSettings.escape]
     *  The HTML "escape" delimiter.
     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
     *  The "evaluate" delimiter.
     * @param {Object} [options.imports=_.templateSettings.imports]
     *  An object to import into the template as free variables.
     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
     *  The "interpolate" delimiter.
     * @param {string} [options.sourceURL='lodash.templateSources[n]']
     *  The sourceURL of the compiled template.
     * @param {string} [options.variable='obj']
     *  The data object variable name.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the compiled template function.
     * @example
     *
     * // Use the "interpolate" delimiter to create a compiled template.
     * var compiled = _.template('hello <%= user %>!');
     * compiled({ 'user': 'fred' });
     * // => 'hello fred!'
     *
     * // Use the HTML "escape" delimiter to escape data property values.
     * var compiled = _.template('<b><%- value %></b>');
     * compiled({ 'value': '<script>' });
     * // => '<b>&lt;script&gt;</b>'
     *
     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the internal `print` function in "evaluate" delimiters.
     * var compiled = _.template('<% print("hello " + user); %>!');
     * compiled({ 'user': 'barney' });
     * // => 'hello barney!'
     *
     * // Use the ES template literal delimiter as an "interpolate" delimiter.
     * // Disable support by replacing the "interpolate" delimiter.
     * var compiled = _.template('hello ${ user }!');
     * compiled({ 'user': 'pebbles' });
     * // => 'hello pebbles!'
     *
     * // Use backslashes to treat delimiters as plain text.
     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
     * compiled({ 'value': 'ignored' });
     * // => '<%- value %>'
     *
     * // Use the `imports` option to import `jQuery` as `jq`.
     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     * compiled(data);
     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
     *
     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     * compiled.source;
     * // => function(data) {
     * //   var __t, __p = '';
     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
     * //   return __p;
     * // }
     *
     * // Use custom template delimiters.
     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     * var compiled = _.template('hello {{ user }}!');
     * compiled({ 'user': 'mustache' });
     * // => 'hello mustache!'
     *
     * // Use the `source` property to inline compiled templates for meaningful
     * // line numbers in error messages and stack traces.
     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
     *   var JST = {\
     *     "main": ' + _.template(mainText).source + '\
     *   };\
     * ');
     */,zn.subtract=Ic,zn.sum=
/**
     * Computes the sum of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the sum.
     * @example
     *
     * _.sum([4, 2, 8, 6]);
     * // => 20
     */
function(e){return e&&e.length?Jt(e,ic):0}
/**
     * This method is like `_.sum` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be summed.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the sum.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.sumBy(objects, function(o) { return o.n; });
     * // => 20
     *
     * // The `_.property` iteratee shorthand.
     * _.sumBy(objects, 'n');
     * // => 20
     */,zn.sumBy=function(e,t){return e&&e.length?Jt(e,la(t,2)):0},zn.template=function(e,t,n){
// Based on John Resig's `tmpl` implementation
// (http://ejohn.org/blog/javascript-micro-templating/)
// and Laura Doktorova's doT.js (https://github.com/olado/doT).
var r=zn.templateSettings;n&&ba(e,t,n)&&(t=a),e=As(e),t=xs({},t,r,Zi);var i,o,s=xs({},t.imports,r.imports,Zi),c=Os(s),l=tn(s,c),u=0,h=t.interpolate||Ce,f="__p += '",d=Se((t.escape||Ce).source+"|"+h.source+"|"+(h===te?ge:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),p="//# sourceURL="+(Qe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ct+"]")+"\n";e.replace(d,(function(t,n,r,a,s,c){
// The JS engine embedded in Adobe products needs `match` returned in
// order to produce the correct `offset` value.
return r||(r=a),
// Escape characters that can't be included in string literals.
f+=e.slice(u,c).replace(_e,cn),
// Replace delimiters with snippets.
n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";
// If `variable` is not specified wrap a with-statement around the generated
// code to add the data object to the top of the scope chain.
var g=Qe.call(t,"variable")&&t.variable;if(g){if(de.test(g))throw new ce("Invalid `variable` option passed into `_.template`");
// Cleanup code by stripping empty strings.
}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(W,""):f).replace(q,"$1").replace(Y,"$1;"),
// Frame code as the function body.
f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Zs((function(){return Ie(c,p+"return "+f).apply(a,l)}));
// Provide the compiled function's source by its `toString` method or
// the `source` property as a convenience for inlining compiled templates.
if(m.source=f,Jo(m))throw m;return m}
/**
     * Converts `string`, as a whole, to lower case just like
     * [String#toLowerCase](https://mdn.io/toLowerCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.toLower('--Foo-Bar--');
     * // => '--foo-bar--'
     *
     * _.toLower('fooBar');
     * // => 'foobar'
     *
     * _.toLower('__FOO_BAR__');
     * // => '__foo_bar__'
     */,zn.times=function(e,t){if((e=gs(e))<1||e>g)return[];var n=v,r=bn(e,v);t=la(t),e-=v;for(var i=Xt(r,t);++n<e;)t(n);return i},zn.toFinite=ps,zn.toInteger=gs,zn.toLength=ms,zn.toLower=function(e){return As(e).toLowerCase()}
/**
     * Converts `string`, as a whole, to upper case just like
     * [String#toUpperCase](https://mdn.io/toUpperCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.toUpper('--foo-bar--');
     * // => '--FOO-BAR--'
     *
     * _.toUpper('fooBar');
     * // => 'FOOBAR'
     *
     * _.toUpper('__foo_bar__');
     * // => '__FOO_BAR__'
     */,zn.toNumber=vs,zn.toSafeInteger=function(e){return e?cr(gs(e),-9007199254740991,g):0===e?e:0},zn.toString=As,zn.toUpper=function(e){return As(e).toUpperCase()}
/**
     * Removes leading and trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trim('  abc  ');
     * // => 'abc'
     *
     * _.trim('-_-abc-_-', '_-');
     * // => 'abc'
     *
     * _.map(['  foo  ', '  bar  '], _.trim);
     * // => ['foo', 'bar']
     */,zn.trim=function(e,t,n){if((e=As(e))&&(n||t===a))return Zt(e);if(!e||!(t=ui(t)))return e;var r=mn(e),i=mn(t);return xi(r,rn(r,i),an(r,i)+1).join("")}
/**
     * Removes trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimEnd('  abc  ');
     * // => '  abc'
     *
     * _.trimEnd('-_-abc-_-', '_-');
     * // => '-_-abc'
     */,zn.trimEnd=function(e,t,n){if((e=As(e))&&(n||t===a))return e.slice(0,vn(e)+1);if(!e||!(t=ui(t)))return e;var r=mn(e);return xi(r,0,an(r,mn(t))+1).join("")}
/**
     * Removes leading whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimStart('  abc  ');
     * // => 'abc  '
     *
     * _.trimStart('-_-abc-_-', '_-');
     * // => 'abc-_-'
     */,zn.trimStart=function(e,t,n){if((e=As(e))&&(n||t===a))return e.replace(se,"");if(!e||!(t=ui(t)))return e;var r=mn(e);return xi(r,rn(r,mn(t))).join("")}
/**
     * Truncates `string` if it's longer than the given maximum string length.
     * The last characters of the truncated string are replaced with the omission
     * string which defaults to "...".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to truncate.
     * @param {Object} [options={}] The options object.
     * @param {number} [options.length=30] The maximum string length.
     * @param {string} [options.omission='...'] The string to indicate text is omitted.
     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
     * @returns {string} Returns the truncated string.
     * @example
     *
     * _.truncate('hi-diddly-ho there, neighborino');
     * // => 'hi-diddly-ho there, neighbo...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': ' '
     * });
     * // => 'hi-diddly-ho there,...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': /,? +/
     * });
     * // => 'hi-diddly-ho there...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'omission': ' [...]'
     * });
     * // => 'hi-diddly-ho there, neig [...]'
     */,zn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?gs(t.length):n,r="omission"in t?ui(t.omission):r}var o=(e=As(e)).length;if(ln(e)){var s=mn(e);o=s.length}if(n>=o)return e;var c=n-gn(r);if(c<1)return r;var l=s?xi(s,0,c).join(""):e.slice(0,c);if(i===a)return l+r;if(s&&(c+=l.length-c),os(i)){if(e.slice(c).search(i)){var u,h=l;for(i.global||(i=Se(i.source,As(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(h);)var f=u.index;l=l.slice(0,f===a?c:f)}}else if(e.indexOf(ui(i),c)!=c){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r}
/**
     * The inverse of `_.escape`; this method converts the HTML entities
     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
     * their corresponding characters.
     *
     * **Note:** No other HTML entities are unescaped. To unescape additional
     * HTML entities use a third-party library like [_he_](https://mths.be/he).
     *
     * @static
     * @memberOf _
     * @since 0.6.0
     * @category String
     * @param {string} [string=''] The string to unescape.
     * @returns {string} Returns the unescaped string.
     * @example
     *
     * _.unescape('fred, barney, &amp; pebbles');
     * // => 'fred, barney, & pebbles'
     */,zn.unescape=function(e){return(e=As(e))&&J.test(e)?e.replace(K,yn):e},zn.uniqueId=function(e){var t=++Re;return As(e)+t},zn.upperCase=$s,zn.upperFirst=Js,
// Add aliases.
zn.each=Ao,zn.eachRight=bo,zn.first=Wa,cc(zn,(xc={},wr(zn,(function(e,t){Qe.call(zn.prototype,t)||(xc[t]=e)})),xc),{chain:!1}),
/*------------------------------------------------------------------------*/
/**
     * The semantic version number.
     *
     * @static
     * @memberOf _
     * @type {string}
     */
zn.VERSION="4.17.21",
// Assign default placeholders.
Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),
// Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
Mt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===a?1:Kt(gs(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),
// Add `LazyWrapper` methods that accept an `iteratee` value.
Mt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:la(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),
// Add `LazyWrapper` methods for `_.head` and `_.last`.
Mt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),
// Add `LazyWrapper` methods for `_.initial` and `_.tail`.
Mt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Tr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Qo(la(e)))},Vn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(v)},
// Add `LazyWrapper` methods to `lodash.prototype`.
wr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Vn,l=s[0],u=c||Vo(t),h=function(e){var t=i.apply(zn,Rt([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(
// Avoid lazy use if the iteratee has a "length" value other than `1`.
c=u=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,g=c&&!d;if(!o&&u){t=g?t:new Vn(this);var m=e.apply(t,s);return m.__actions__.push({func:po,args:[h],thisArg:a}),new Gn(m,f)}return p&&g?e.apply(this,s):(m=this.thru(h),p?r?m.value()[0]:m.value():m)})})),
// Add `Array` methods to `lodash.prototype`.
Mt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Vo(i)?i:[],e)}return this[n]((function(n){return t.apply(Vo(n)?n:[],e)}))}})),
// Map minified method names to their real names.
wr(Vn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Qe.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[zi(a,2).name]=[{name:"wrapper",func:a}],
// Add methods to `LazyWrapper`.
Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e}
/**
     * Reverses the direction of lazy iteration.
     *
     * @private
     * @name reverse
     * @memberOf LazyWrapper
     * @returns {Object} Returns the new reversed `LazyWrapper` object.
     */,Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e}
/**
     * Extracts the unwrapped value from its lazy wrapper.
     *
     * @private
     * @name value
     * @memberOf LazyWrapper
     * @returns {*} Returns the unwrapped value.
     */,Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Vo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=Kt(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,h=u.length,f=0,d=bn(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return gi(e,this.__actions__);var p=[];e:for(;c--&&f<d;){for(var g=-1,m=e[l+=t];++g<h;){var v=u[g],y=v.iteratee,A=v.type,b=y(m);if(2==A)m=b;else if(!b){if(1==A)continue e;break e}}p[f++]=m}return p},
// Add chain sequence methods to the `lodash` wrapper.
zn.prototype.at=go,zn.prototype.chain=function(){return fo(this)}
/**
     * Executes the chain sequence and returns the wrapped result.
     *
     * @name commit
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2];
     * var wrapped = _(array).push(3);
     *
     * console.log(array);
     * // => [1, 2]
     *
     * wrapped = wrapped.commit();
     * console.log(array);
     * // => [1, 2, 3]
     *
     * wrapped.last();
     * // => 3
     *
     * console.log(array);
     * // => [1, 2, 3]
     */,zn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)}
/**
     * Gets the next value on a wrapped object following the
     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
     *
     * @name next
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the next iterator value.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 1 }
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 2 }
     *
     * wrapped.next();
     * // => { 'done': true, 'value': undefined }
     */,zn.prototype.next=function(){this.__values__===a&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}}
/**
     * Enables the wrapper to be iterable.
     *
     * @name Symbol.iterator
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the wrapper object.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped[Symbol.iterator]() === wrapped;
     * // => true
     *
     * Array.from(wrapped);
     * // => [1, 2]
     */,zn.prototype.plant=
/**
     * Creates a clone of the chain sequence planting `value` as the wrapped value.
     *
     * @name plant
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @param {*} value The value to plant.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2]).map(square);
     * var other = wrapped.plant([3, 4]);
     *
     * other.value();
     * // => [9, 16]
     *
     * wrapped.value();
     * // => [1, 4]
     */
function(e){for(var t,n=this;n instanceof Un;){var r=Na(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}
/**
     * This method is the wrapper version of `_.reverse`.
     *
     * **Note:** This method mutates the wrapped array.
     *
     * @name reverse
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _(array).reverse().value()
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */,zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:po,args:[eo],thisArg:a}),new Gn(t,this.__chain__)}return this.thru(eo)}
/**
     * Executes the chain sequence to resolve the unwrapped value.
     *
     * @name value
     * @memberOf _
     * @since 0.1.0
     * @alias toJSON, valueOf
     * @category Seq
     * @returns {*} Returns the resolved unwrapped value.
     * @example
     *
     * _([1, 2, 3]).value();
     * // => [1, 2, 3]
     */,zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},
// Add lazy aliases.
zn.prototype.first=zn.prototype.head,Xe&&(zn.prototype[Xe]=function(){return this}),zn}();
/*--------------------------------------------------------------------------*/
// Export lodash.
// Expose Lodash on the global object to prevent errors when Lodash is
// loaded by a script tag in the presence of an AMD loader.
// See http://requirejs.org/docs/errors.html#mismatch for more details.
// Use `_.noConflict` to remove Lodash from the global object.
mt._=An,(i=function(){return An}.call(t,n,t,r))===a||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))
/***/},
/***/"2f1f":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return a})),
/* harmony export (binding) */n.d(t,"a",(function(){return o}));
/* harmony import */var r=n("6d8b"),i=Object(r.createHashMap)();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function a(e,t){Object(r.assert)(null==i.get(e)&&t),i.set(e,t)}function o(e,t,n){var r=i.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}
/***/},
/***/"2f45":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return o})),
/* harmony export (binding) */n.d(t,"a",(function(){return c}));
/* harmony import */var r=n("6d8b"),i=n("07fd"),a=/** @class */function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{
// Do not generate full dimension name until fist used.
fullDimensions:this._getFullDimensionNames(),encode:this._encode}},
/**
   * Get all data store dimension names.
   * Theoretically a series data store is defined both by series and used dataset (if any).
   * If some dimensions are omitted for performance reason in `this.dimensions`,
   * the dimension name may not be auto-generated if user does not specify a dimension name.
   * In this case, the dimension name is `null`/`undefined`.
   */
e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();
/* harmony import */function o(e,t){var n={},o=n.encode={},c=Object(r.createHashMap)(),l=[],u=[],h={};Object(r.each)(e.dimensions,(function(t){var n,r=e.getDimensionInfo(t),a=r.coordDim;if(a){0;var f=r.coordDimIndex;s(o,a)[f]=t,r.isExtraCoord||(c.set(a,1),
// Use the last coord dim (and label friendly) as default label,
// because when dataset is used, it is hard to guess which dimension
// can be value dimension. If both show x, y on label is not look good,
// and conventionally y axis is focused more.
"ordinal"!==(n=r.type)&&"time"!==n&&(l[0]=t),
// User output encode do not contain generated coords.
// And it only has index. User can use index to retrieve value from the raw item array.
s(h,a)[f]=e.getDimensionIndex(r.name)),r.defaultTooltip&&u.push(t)}i.i.each((function(e,t){var n=s(o,t),i=r.otherDims[t];null!=i&&!1!==i&&(n[i]=r.name)}))}));var f=[],d={};c.each((function(e,t){var n=o[t];d[t]=n[0],
// Not necessary to remove duplicate, because a data
// dim canot on more than one coordDim.
f=f.concat(n)})),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=Object(r.map)(f,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=d;var p=o.label;
// FIXME `encode.label` is not recommended, because formatter cannot be set
// in this way. Use label.formatter instead. Maybe remove this approach someday.
p&&p.length&&(l=p.slice());var g=o.tooltip;return g&&g.length?u=g.slice():u.length||(u=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=u,n.userOutput=new a(h,t),n}function s(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}
// FIXME:TS should be type `AxisType`
function c(e){return"category"===e?"ordinal":"time"===e?"time":"float"}},
/***/"2f62":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* unused harmony export Store */
/* unused harmony export createLogger */
/* unused harmony export createNamespacedHelpers */
/* unused harmony export install */
/* harmony export (binding) */n.d(t,"b",(function(){return _})),
/* harmony export (binding) */n.d(t,"c",(function(){return C})),
/* harmony export (binding) */n.d(t,"d",(function(){return x})),
/* harmony export (binding) */n.d(t,"e",(function(){return w}));var r=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;
/**
 * Deep copy the given object considering circular structure.
 * This function caches all nested objects and its copies.
 * If it detects circular structure, use cached copy to avoid infinite loop.
 *
 * @param {*} obj
 * @param {Array<Object>} cache
 * @return {*}
 */
function i(e,t){
// just return if obj is immutable value
if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;
// if obj is hit, it is in circular structure
var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var a=Array.isArray(e)?[]:{};
// put the copy into cache at first
// because we want to refer it in recursive deepCopy
return t.push({original:e,copy:a}),Object.keys(e).forEach((function(n){a[n]=i(e[n],t)})),a}
/**
 * forEach for object
 */function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"==typeof e}
// Base data struct for store's module, package with some attribute and method
var s=function(e,t){this.runtime=t,
// Store some children item
this._children=Object.create(null),
// Store the origin module object which passed by programmer
this._rawModule=e;var n=e.state;
// Store the origin module's state
this.state=("function"==typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){a(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var l=function(e){
// register root module (Vuex.Store options)
this.register([],e,!1)};function u(e,t,n){
// update nested modules
if(
// update target module
t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;u(e.concat(r),t.getChild(r),n.modules[r])}}l.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(e){u([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new s(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);
// register nested modules
t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var h;// bind on install
var f=function(e){var t=this;void 0===e&&(e={}),
// Auto install if it is not done yet and `window` has `Vue`.
// To allow users to avoid auto-installation in some cases,
// this code should be placed here. See #731
!h&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),
// store internal state
this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h,this._makeLocalGettersCache=Object.create(null);
// bind commit and dispatch to self
var a=this,o=this.dispatch,s=this.commit;this.dispatch=function(e,t){return o.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},
// strict mode
this.strict=i;var c=this._modules.root.state;
// init root module.
// this also recursively registers all sub-modules
// and collects all module getters inside this._wrappedGetters
v(this,c,[],this._modules.root),
// initialize the store vm, which is responsible for the reactivity
// (also registers _wrappedGetters as computed properties)
m(this,c),
// apply plugins
n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:h.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}
/**
 * Get the first item that pass the test
 * by second argument function
 *
 * @param {Array} list
 * @param {Function} f
 * @return {*}
 */(this)},d={state:{configurable:!0}};function p(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function g(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;
// init all modules
v(e,n,[],e._modules.root,!0),
// reset vm
m(e,n,t)}function m(e,t,n){var r=e._vm;
// bind store public getters
e.getters={},
// reset local getters cache
e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,n){
// use computed to leverage its lazy-caching mechanism
// direct inline function use will lead to closure preserving oldVm.
// using partial to return function with only arguments preserved in closure environment.
o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));
// use a Vue instance to store the state tree
// suppress warnings just in case the user has added
// some funky global mixins
var s=h.config.silent;h.config.silent=!0,e._vm=new h({data:{$$state:t},computed:o}),h.config.silent=s,
// enable strict mode for new vm
e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&
// dispatch changes in all subscribed watchers
// to force getter re-evaluation for hot reloading.
e._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);
// set state
if(
// register in namespace map
r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=y(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){h.set(s,c,r.state)}))}var l=r.context=
/**
 * make localized dispatch, commit, getters and state
 * if there is no namespace, just use root ones
 */
function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=A(n,r,i),o=a.payload,s=a.options,c=a.type;return s&&s.root||(c=t+c),e.dispatch(c,o)},commit:r?e.commit:function(n,r,i){var a=A(n,r,i),o=a.payload,s=a.options,c=a.type;s&&s.root||(c=t+c),e.commit(c,o,s)}};
// getters and state object must be gotten lazily
// because they will be changed by vm update
return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){
// skip if the target getter is not match this namespace
if(i.slice(0,r)===t){
// extract local getter type
var a=i.slice(r);
// Add a port to the getters proxy.
// Define as getter property because
// we do not want to evaluate the getters in this time.
Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return y(e.state,n)}}}),i}(e,o,n);r.forEachMutation((function(t,n){!function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}(e,o+n,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;!function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i,a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}(e,r,i,l)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,// local state
r.getters,// local getters
e.state,// root state
e.getters)}}(e,o+n,t,l)})),r.forEachChild((function(r,a){v(e,t,n.concat(a),r,i)}))}function y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function A(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function b(e){h&&e===h||
/*!
 * vuex v3.6.2
 * (c) 2021 Evan You
 * @license MIT
 */
function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{
// override init and inject vuex init procedure
// for 1.x backwards compatibility.
var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}
/**
   * Vuex init hook, injected into each instances init hooks list.
   */function n(){var e=this.$options;
// store injection
e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(h=e)}
/**
 * Reduce the code which written in Vue.js for getting the state.
 * @param {String} [namespace] - Module's namespace
 * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
 * @param {Object}
 */d.state.get=function(){return this._vm._data.$$state},d.state.set=function(e){0},f.prototype.commit=function(e,t,n){var r=this,i=A(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),c=this._mutations[a];
// check object-style commit
c&&(this._withCommit((function(){c.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},f.prototype.dispatch=function(e,t){var n=this,r=A(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];
// check object-style dispatch
if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){0}var c=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(e){0}t(e)}))}))}},f.prototype.subscribe=function(e,t){return p(e,this._subscribers,t)},f.prototype.subscribeAction=function(e,t){return p("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},f.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},f.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},f.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),
// reset store to update getters...
m(this,this.state)},f.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=y(t.state,e.slice(0,-1));h.delete(n,e[e.length-1])})),g(this)},f.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},f.prototype.hotUpdate=function(e){this._modules.update(e),g(this,!0)},f.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(f.prototype,d);var w=E((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=k(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},
// mark vuex getter for devtools
n[r].vuex=!0})),n})),x=E((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];
// Get the commit method from store
var r=this.$store.commit;if(e){var a=k(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),C=E((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;
// The namespace has been mutated by normalizeNamespace
i=e+i,n[r]=function(){if(!e||k(this.$store,"mapGetters",e))return this.$store.getters[i]},
// mark vuex getter for devtools
n[r].vuex=!0})),n})),_=E((function(e,t){var n={};return I(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];
// get dispatch function from store
var r=this.$store.dispatch;if(e){var a=k(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));
/**
 * Reduce the code which written in Vue.js for committing the mutation
 * @param {String} [namespace] - Module's namespace
 * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
 * @return {Object}
 */
/**
 * Normalize the map
 * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
 * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
 * @param {Array|Object} map
 * @return {Object}
 */
function I(e){
/**
 * Validate whether given map is valid or not
 * @param {*} map
 * @return {Boolean}
 */
return function(e){return Array.isArray(e)||o(e)}
/**
 * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
 * @param {Function} fn
 * @return {Function}
 */(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function E(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}
/**
 * Search a special module from store by namespace. if module not exist, print error message.
 * @param {Object} store
 * @param {String} helper
 * @param {String} namespace
 * @return {Object}
 */function k(e,t,n){return e._modulesNamespaceMap[n]}
// Credits: borrowed code from fcomb/redux-logger
function S(e,t,n){var r=n?e.groupCollapsed:e.group;
// render
try{r.call(e,t)}catch(n){e.log(t)}}function B(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function M(){var e=new Date;return" @ "+T(e.getHours(),2)+":"+T(e.getMinutes(),2)+":"+T(e.getSeconds(),2)+"."+T(e.getMilliseconds(),3)}function T(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var O={Store:f,install:b,version:"3.6.2",mapState:w,mapMutations:x,mapGetters:C,mapActions:_,createNamespacedHelpers:function(e){return{mapState:w.bind(null,e),mapGetters:C.bind(null,e),mapMutations:x.bind(null,e),mapActions:_.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var a=e.mutationTransformer;void 0===a&&(a=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=i(e.state);void 0!==u&&(c&&e.subscribe((function(e,o){var s=i(o);if(n(e,h,s)){var c=M(),l=a(e),f="mutation "+e.type+c;S(u,f,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),B(u)}h=s})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=M(),i=s(e),a="action "+e.type+r;S(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),B(u)}})))}}};
/* harmony default export */t.a=O}).call(this,n("c8ba"))
/***/},
/***/"2f74":
/***/function(e,t,n){"use strict";
/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
/* harmony default export */t.a=function(){return!1}},
/***/"2f9a":
/***/function(e,t){e.exports=function(){/* empty */};
/***/},
/***/"2faf":
/***/function(e,t,n){"use strict";
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
var r=n("f083"),i=n("cffc")(5),a="find",o=!0;
// Shouldn't skip holes
a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e/* , that = undefined */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("66b7")(a)},
/***/"2fb2":
/***/function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},
/***/"2fcc":
/***/function(e,t){e.exports=
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},
/***/"301c":
/***/function(e,t,n){n("e198")("asyncIterator");
/***/},
/***/"30b5":
/***/function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}
/**
 * Build a URL by appending params to the end
 *
 * @param {string} url The base of the url (e.g., http://www.google.com)
 * @param {object} [params] The params to be appended
 * @returns {string} The formatted url
 */e.exports=function(e,t,n){
/*eslint no-param-reassign:0*/
if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},
/***/"30c9":
/***/function(e,t,n){var r=n("9520"),i=n("b218");
/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},
/***/"30de":
/***/function(e,t,n){var r=n("2fb2"),i=n("5d6f"),a=n("27c4")(!1),o=n("964f")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);
// Don't enum bug & hidden keys
for(;t.length>c;)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},
/***/"313e":
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t),
// EXPORTS
n.d(t,"version",(function(){/* reexport */return i.cb})),n.d(t,"dependencies",(function(){/* reexport */return i.l})),n.d(t,"PRIORITY",(function(){/* reexport */return i.g})),n.d(t,"init",(function(){/* reexport */return i.B})),n.d(t,"connect",(function(){/* reexport */return i.j})),n.d(t,"disconnect",(function(){/* reexport */return i.n})),n.d(t,"disConnect",(function(){/* reexport */return i.m})),n.d(t,"dispose",(function(){/* reexport */return i.o})),n.d(t,"getInstanceByDom",(function(){/* reexport */return i.w})),n.d(t,"getInstanceById",(function(){/* reexport */return i.x})),n.d(t,"registerTheme",(function(){/* reexport */return i.R})),n.d(t,"registerPreprocessor",(function(){/* reexport */return i.P})),n.d(t,"registerProcessor",(function(){/* reexport */return i.Q})),n.d(t,"registerPostInit",(function(){/* reexport */return i.N})),n.d(t,"registerPostUpdate",(function(){/* reexport */return i.O})),n.d(t,"registerUpdateLifecycle",(function(){/* reexport */return i.T})),n.d(t,"registerAction",(function(){/* reexport */return i.H})),n.d(t,"registerCoordinateSystem",(function(){/* reexport */return i.I})),n.d(t,"getCoordinateSystemDimensions",(function(){/* reexport */return i.v})),n.d(t,"registerLocale",(function(){/* reexport */return i.L})),n.d(t,"registerLayout",(function(){/* reexport */return i.J})),n.d(t,"registerVisual",(function(){/* reexport */return i.U})),n.d(t,"registerLoading",(function(){/* reexport */return i.K})),n.d(t,"setCanvasCreator",(function(){/* reexport */return i.V})),n.d(t,"registerMap",(function(){/* reexport */return i.M})),n.d(t,"getMap",(function(){/* reexport */return i.y})),n.d(t,"registerTransform",(function(){/* reexport */return i.S})),n.d(t,"dataTool",(function(){/* reexport */return i.k})),n.d(t,"zrender",(function(){/* reexport */return i.eb})),n.d(t,"matrix",(function(){/* reexport */return i.D})),n.d(t,"vector",(function(){/* reexport */return i.bb})),n.d(t,"zrUtil",(function(){/* reexport */return i.db})),n.d(t,"color",(function(){/* reexport */return i.i})),n.d(t,"throttle",(function(){/* reexport */return i.X})),n.d(t,"helper",(function(){/* reexport */return i.A})),n.d(t,"use",(function(){/* reexport */return i.Z})),n.d(t,"setPlatformAPI",(function(){/* reexport */return i.W})),n.d(t,"parseGeoJSON",(function(){/* reexport */return i.F})),n.d(t,"parseGeoJson",(function(){/* reexport */return i.G})),n.d(t,"number",(function(){/* reexport */return i.E})),n.d(t,"time",(function(){/* reexport */return i.Y})),n.d(t,"graphic",(function(){/* reexport */return i.z})),n.d(t,"format",(function(){/* reexport */return i.u})),n.d(t,"util",(function(){/* reexport */return i.ab})),n.d(t,"env",(function(){/* reexport */return i.p})),n.d(t,"List",(function(){/* reexport */return i.e})),n.d(t,"Model",(function(){/* reexport */return i.f})),n.d(t,"Axis",(function(){/* reexport */return i.a})),n.d(t,"ComponentModel",(function(){/* reexport */return i.c})),n.d(t,"ComponentView",(function(){/* reexport */return i.d})),n.d(t,"SeriesModel",(function(){/* reexport */return i.h})),n.d(t,"ChartView",(function(){/* reexport */return i.b})),n.d(t,"innerDrawElementOnCanvas",(function(){/* reexport */return i.C})),n.d(t,"extendComponentModel",(function(){/* reexport */return i.r})),n.d(t,"extendComponentView",(function(){/* reexport */return i.s})),n.d(t,"extendSeriesModel",(function(){/* reexport */return i.t})),n.d(t,"extendChartView",(function(){/* reexport */return i.q}));
// EXTERNAL MODULE: ./node_modules/echarts/lib/extension.js
var r=n("22b4"),i=n("aa74"),a=n("f95e"),o=n("7a29"),s=n("cbe5"),c=n("0da8"),l=n("e86a"),u=n("dd4f"),h=Math.sin,f=Math.cos,d=Math.PI,p=2*Math.PI,g=180/d,m=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add("C",e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,s,c){var l=s-a,u=!c,m=Math.abs(l),v=Object(o.j)(m-p)||(u?l>=p:-l>=p),y=l>0?l%p:l%p+p,A=!1;A=!!v||!Object(o.j)(m)&&y>=d==!!u;var b=e+n*f(a),w=t+r*h(a);this._start&&this._add("M",b,w);var x=Math.round(i*g);if(v){var C=1/this._p,_=(u?1:-1)*(p-C);this._add("A",n,r,x,1,+u,e+n*f(a+_),t+r*h(a+_)),C>.01&&this._add("A",n,r,x,0,+u,b,w)}else{var I=e+n*f(s),E=t+r*h(s);this._add("A",n,r,x,+A,+u,I,E)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f))return void(this._invalid=!0);l.push(Math.round(f*u)/u)}this._d.push(e+l.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),v=m,y=n("8d1d"),A=n("6d8b"),b="none",w=Math.round;
// EXTERNAL MODULE: ./node_modules/echarts/lib/export/core.js + 7 modules
var x=["lineCap","miterLimit","lineJoin"],C=Object(A.map)(x,(function(e){return"stroke-"+e.toLowerCase()}));function _(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof c.a)e("opacity",i);else{if(function(e){var t=e.fill;return null!=t&&t!==b}(t)){var a=Object(o.p)(t.fill);e("fill",a.color);var l=null!=t.fillOpacity?t.fillOpacity*a.opacity*i:a.opacity*i;(r||l<1)&&e("fill-opacity",l)}else e("fill",b);if(function(e){var t=e.stroke;return null!=t&&t!==b}(t)){var u=Object(o.p)(t.stroke);e("stroke",u.color);var h=t.strokeNoScale?n.getLineScale():1,f=h?(t.lineWidth||0)/h:0,d=null!=t.strokeOpacity?t.strokeOpacity*u.opacity*i:u.opacity*i,p=t.strokeFirst;if((r||1!==f)&&e("stroke-width",f),(r||p)&&e("paint-order",p?"stroke":"fill"),(r||d<1)&&e("stroke-opacity",d),t.lineDash){var g=Object(y.a)(n),m=g[0],v=g[1];m&&(v=w(v||0),e("stroke-dasharray",m.join(",")),(v||r)&&e("stroke-dashoffset",v))}else r&&e("stroke-dasharray",b);for(var A=0;A<x.length;A++){var _=x[A];if(r||t[_]!==s.a[_]){var I=t[_]||s.a[_];I&&e(C[A],I)}}}else r&&e("stroke",b)}}
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/dom.js + 1 modules
var I=n("65ed"),E="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xlink",S="ecmeta_";
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/core.js
function B(e){return document.createElementNS(E,e)}function M(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function T(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var r=t.children,i=t.tag,a=t.attrs,o=t.text;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;!1!==i&&(!0!==i&&null!=i&&(a+='="'+i+'"'),n.push(a))}return"<"+e+" "+n.join(" ")+">"}(i,a)+("style"!==i?Object(I.a)(o):o||"")+(r?""+n+Object(A.map)(r,(function(t){return e(t)})).join(n)+n:"")+function(e){return"</"+e+">"}(i)}(e)}function O(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function D(e,t,n,r){return M("svg","root",{width:e,height:t,xmlns:E,"xmlns:xlink":k,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/helper/image.js
var P=n("5e76"),L=n("8582"),Q=n("20c8"),R=n("d4c6"),j=n("b362"),N=0;
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/Transformable.js
function F(){return N++}
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/cssAnimation.js
var z={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},H="transform-origin";function U(e,t,n){var r=Object(A.extend)({},e.shape);Object(A.extend)(r,t),e.buildPath(n,r);var i=new v;return i.reset(Object(o.f)(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function G(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[H]=n+"px "+r+"px")}var V={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function W(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function q(e){return Object(A.isString)(e)?z[e]?"cubic-bezier("+z[e]+")":Object(j.a)(e)?e:"":""}function Y(e,t,n,r){var i=e.animators,a=i.length,s=[];if(e instanceof R.a){var c=function(e,t,n){var r,i,a=e.shape.paths,o={};if(Object(A.each)(a,(function(e){var t=O(n.zrId);t.animation=!0,Y(e,{},t,!0);var a=t.cssAnims,s=t.cssNodes,c=Object(A.keys)(a),l=c.length;if(l){var u=a[i=c[l-1]];for(var h in u){var f=u[h];o[h]=o[h]||{d:""},o[h].d+=f.d||""}for(var d in s){var p=s[d].animation;p.indexOf(i)>=0&&(r=p)}}})),r){t.d=!1;var s=W(o,n);return r.replace(i,s)}}(e,t,n);if(c)s.push(c);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var h=i[u],f=[h.getMaxTime()/1e3+"s"],d=q(h.getClip().easing),p=h.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),h.getLoop()&&f.push("infinite");var g=f.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(h)}function m(i){var a,s=i[1],c=s.length,l={},u={},h={},f="animation-timing-function";function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var u=s[l],h=Math.round(u.time/i*100)+"%",d=q(u.easing),p=u.rawValue;(Object(A.isString)(p)||Object(A.isNumber)(p))&&(t[h]=t[h]||{},t[h][c]=u.rawValue,d&&(t[h][f]=d))}}}}for(var p=0;p<c;p++){(I=(_=s[p]).targetName)?"shape"===I&&d(_,u):!r&&d(_,l)}for(var g in l){var m={};Object(L.b)(m,e),Object(A.extend)(m,l[g]);var v=Object(o.g)(m),y=l[g][f];h[g]=v?{transform:v}:{},G(h[g],m),y&&(h[g][f]=y)}var b=!0;for(var g in u){h[g]=h[g]||{};var w=!a;y=u[g][f];w&&(a=new Q.a);var x=a.len();a.reset(),h[g].d=U(e,u[g],a);var C=a.len();if(!w&&x!==C){b=!1;break}y&&(h[g][f]=y)}if(!b)for(var g in h)delete h[g].d;if(!r)for(p=0;p<c;p++){var _,I;"style"===(I=(_=s[p]).targetName)&&d(_,h,(function(e){return V[e]}))}var E,k=Object(A.keys)(h),S=!0;for(p=1;p<k.length;p++){var B=k[p-1],M=k[p];if(h[B][H]!==h[M][H]){S=!1;break}E=h[B][H]}if(S&&E){for(var g in h)h[g][H]&&delete h[g][H];t[H]=E}if(Object(A.filter)(k,(function(e){return Object(A.keys)(h[e]).length>0})).length)return W(h,n)+" "+i[0]+" both"}for(var v in l){(c=m(l[v]))&&s.push(c)}if(s.length){var y=n.zrId+"-cls-"+F();n.cssNodes["."+y]={animation:s.join(",")},t.class=y}}
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/Text.js
var K=n("76a5"),$=n("726e"),J=n("41ef");
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/platform.js
function X(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+"-cls-"+F(),n.cssStyleCache[i]=a,n.cssNodes["."+a+(r?":hover":"")]=e),t.class=t.class?t.class+" "+a:a}
// EXTERNAL MODULE: ./node_modules/zrender/lib/zrender.js + 6 modules
var Z=n("697e7"),ee=Math.round;
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/graphic.js
function te(e){return e&&Object(A.isString)(e.src)}function ne(e){return e&&Object(A.isFunction)(e.toDataURL)}function re(e,t,n,r){_((function(i,a){var s="fill"===i||"stroke"===i;s&&Object(o.k)(a)?pe(t,e,i,r):s&&Object(o.n)(a)?ge(n,e,i,r):e[i]=a,s&&r.ssr&&"none"===a&&(e["pointer-events"]="visible")}),t,n,!1),function(e,t,n){var r=e.style;if(Object(o.i)(r)){var i=Object(o.h)(e),a=n.shadowCache,s=a[i];if(!s){var c=e.getGlobalScale(),l=c[0],u=c[1];if(!l||!u)return;var h=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,p=Object(o.p)(r.shadowColor),g=p.opacity,m=p.color,v=d/2/l+" "+d/2/u;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=M("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[M("feDropShadow","",{dx:h/l,dy:f/u,stdDeviation:v,"flood-color":m,"flood-opacity":g})]),a[i]=s}t.filter=Object(o.d)(s)}}(n,e,r)}function ie(e,t){var n=Object(Z.getElementSSRData)(t);n&&(n.each((function(t,n){null!=t&&(e[(S+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[S+"silent"]="true"))}function ae(e){return Object(o.j)(e[0]-1)&&Object(o.j)(e[1])&&Object(o.j)(e[2])&&Object(o.j)(e[3]-1)}function oe(e,t,n){if(t&&(!function(e){return Object(o.j)(e[4])&&Object(o.j)(e[5])}(t)||!ae(t))){var r=n?10:1e4;e.transform=ae(t)?"translate("+ee(t[4]*r)/r+" "+ee(t[5]*r)/r+")":Object(o.e)(t)}}function se(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(ee(r[a][0]*n)/n),i.push(ee(r[a][1]*n)/n);t.points=i.join(" ")}function ce(e){return!e.smooth}var le,ue,he={circle:[(le=["cx","cy","r"],ue=Object(A.map)(le,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var r=0;r<ue.length;r++){var i=ue[r],a=e[i[0]];null!=a&&(t[i[1]]=ee(a*n)/n)}})],polyline:[se,ce],polygon:[se,ce]};function fe(e,t){var n=e.style,r=e.shape,i=he[e.type],a={},s=t.animation,c="path",l=e.style.strokePercent,u=t.compress&&Object(o.f)(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||s&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var h=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;h&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var d=f.getVersion(),p=e,g=p.__svgPathBuilder;p.__svgPathVersion===d&&g&&l===p.__svgPathStrokePercent||(g||(g=p.__svgPathBuilder=new v),g.reset(u),f.rebuildPath(g,l),g.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),a.d=g.getStr()}else{c=e.type;var m=Math.pow(10,u);i[0](r,a,m)}return oe(a,e.transform),re(a,n,e,t),ie(a,e),t.animation&&Y(e,a,t),t.emphasis&&
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/cssEmphasis.js
function(e,t,n){if(!e.ignore)if(e.isSilent())X(l={"pointer-events":"none"},t,n,!0);else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=r.fill;if(!i){var a=e.style&&e.style.fill,o=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf("select")>=0&&o||a;s&&(i=Object(J.liftColor)(s))}var c=r.lineWidth;c&&(c/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var l={cursor:"pointer"};i&&(l.fill=i),r.stroke&&(l.stroke=r.stroke),c&&(l["stroke-width"]=c),X(l,t,n,!0)}}(e,a,t),M(c,e.id+"",a)}function de(e,t){return e instanceof s.b?fe(e,t):e instanceof c.a?function(e,t){var n=e.style,r=n.image;if(r&&!Object(A.isString)(r)&&(te(r)?r=r.src:ne(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o={href:r,width:n.width,height:n.height};return i&&(o.x=i),a&&(o.y=a),oe(o,e.transform),re(o,n,e,t),ie(o,e),t.animation&&Y(e,o,t),M("image",e.id+"",o)}}(e,t):e instanceof u.a?function(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||$.a,a=n.x||0,s=Object(o.b)(n.y||0,Object(l.e)(i),n.textBaseline),c={"dominant-baseline":"central","text-anchor":o.a[n.textAlign]||n.textAlign};if(Object(K.b)(n)){var u="",h=n.fontStyle,f=Object(K.c)(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||$.b,p=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",h&&"normal"!==h&&(u+="font-style:"+h+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),c.style=u}else c.style="font: "+i;return r.match(/\s/)&&(c["xml:space"]="preserve"),a&&(c.x=a),s&&(c.y=s),oe(c,e.transform),re(c,n,e,t),ie(c,e),t.animation&&Y(e,c,t),M("text",e.id+"",c,void 0,r)}}(e,t):void 0}function pe(e,t,n,r){var i,a=e[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(o.m)(a))i="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!Object(o.o)(a))return void 0;i="radialGradient",s.cx=Object(A.retrieve2)(a.x,.5),s.cy=Object(A.retrieve2)(a.y,.5),s.r=Object(A.retrieve2)(a.r,.5)}for(var c=a.colorStops,l=[],u=0,h=c.length;u<h;++u){var f=100*Object(o.q)(c[u].offset)+"%",d=c[u].color,p=Object(o.p)(d),g=p.color,m=p.opacity,v={offset:f};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),l.push(M("stop",u+"",v))}var y=T(M(i,"",s,l)),b=r.gradientCache,w=b[y];w||(w=r.zrId+"-g"+r.gradientIdx++,b[y]=w,s.id=w,r.defs[w]=M(i,w,s,l)),t[n]=Object(o.d)(w)}function ge(e,t,n,r){var i,a=e.style[n],s=e.getBoundingRect(),c={},l=a.repeat,u="no-repeat"===l,h="repeat-x"===l,f="repeat-y"===l;if(Object(o.l)(a)){var d=a.imageWidth,p=a.imageHeight,g=void 0,m=a.image;if(Object(A.isString)(m)?g=m:te(m)?g=m.src:ne(m)&&(g=m.toDataURL()),"undefined"==typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(A.assert)(d,v),Object(A.assert)(p,v)}else if(null==d||null==p){var y=function(e,t){if(e){var n=e.elm,r=d||t.width,i=p||t.height;"pattern"===e.tag&&(h?(i=1,r/=s.width):f&&(r=1,i/=s.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},b=Object(P.a)(g,null,e,(function(e){u||y(_,e),y(i,e)}));b&&b.width&&b.height&&(d=d||b.width,p=p||b.height)}i=M("image","img",{href:g,width:d,height:p}),c.width=d,c.height=p}else a.svgElement&&(i=Object(A.clone)(a.svgElement),c.width=a.svgWidth,c.height=a.svgHeight);if(i){var w,x;u?w=x=1:h?(x=1,w=c.width/s.width):f?(w=1,x=c.height/s.height):c.patternUnits="userSpaceOnUse",null==w||isNaN(w)||(c.width=w),null==x||isNaN(x)||(c.height=x);var C=Object(o.g)(a);C&&(c.patternTransform=C);var _=M("pattern","",c,[i]),I=T(_),E=r.patternCache,k=E[I];k||(k=r.zrId+"-p"+r.patternIdx++,E[I]=k,c.id=k,_=r.defs[k]=M("pattern",k,c,[i])),t[n]=Object(o.d)(k)}}function me(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){var s={id:a=n.zrId+"-c"+n.clipPathIdx++};r[e.id]=a,i[a]=M("clipPath",a,s,[fe(e,n)])}t["clip-path"]=Object(o.d)(a)}
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/domapi.js
function ve(e){return document.createTextNode(e)}function ye(e,t,n){e.insertBefore(t,n)}function Ae(e,t){e.removeChild(t)}function be(e,t){e.appendChild(t)}function we(e){return e.parentNode}function xe(e){return e.nextSibling}function Ce(e,t){e.textContent=t}
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/patch.js
var _e=M("","");function Ie(e){return void 0===e}function Ee(e){return void 0!==e}function ke(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;void 0!==a&&(r[a]=i)}return r}function Se(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function Be(e){var t,n=e.children,r=e.tag;if(Ee(r)){var i=e.elm=B(r);if(Oe(_e,e),Object(A.isArray)(n))for(t=0;t<n.length;++t){var a=n[t];null!=a&&be(i,Be(a))}else Ee(e.text)&&!Object(A.isObject)(e.text)&&be(i,ve(e.text))}else e.elm=ve(e.text);return e.elm}function Me(e,t,n,r,i){for(;r<=i;++r){var a=n[r];null!=a&&ye(e,Be(a),t)}}function Te(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(Ee(i.tag))Ae(we(i.elm),i.elm);else Ae(e,i.elm)}}function Oe(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(!0===o?r.setAttribute(n,""):!1===o?r.removeAttribute(n):"style"===n?r.style.cssText=o:120!==n.charCodeAt(0)?r.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,o):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):58===n.charCodeAt(5)?r.setAttributeNS(k,n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function De(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Oe(e,t),Ie(t.text)?Ee(r)&&Ee(i)?r!==i&&function(e,t,n){for(var r,i,a,o=0,s=0,c=t.length-1,l=t[0],u=t[c],h=n.length-1,f=n[0],d=n[h];o<=c&&s<=h;)null==l?l=t[++o]:null==u?u=t[--c]:null==f?f=n[++s]:null==d?d=n[--h]:Se(l,f)?(De(l,f),l=t[++o],f=n[++s]):Se(u,d)?(De(u,d),u=t[--c],d=n[--h]):Se(l,d)?(De(l,d),ye(e,l.elm,xe(u.elm)),l=t[++o],d=n[--h]):Se(u,f)?(De(u,f),ye(e,u.elm,l.elm),u=t[--c],f=n[++s]):(Ie(r)&&(r=ke(t,o,c)),Ie(i=r[f.key])||(a=t[i]).tag!==f.tag?ye(e,Be(f),l.elm):(De(a,f),t[i]=void 0,ye(e,a.elm,l.elm)),f=n[++s]);(o<=c||s<=h)&&(o>c?Me(e,null==n[h+1]?null:n[h+1].elm,n,s,h):Te(e,t,o,c))}(n,r,i):Ee(i)?(Ee(e.text)&&Ce(n,""),Me(n,null,i,0,i.length-1)):Ee(r)?Te(n,r,0,r.length-1):Ee(e.text)&&Ce(n,""):e.text!==t.text&&(Ee(r)&&Te(n,r,0,r.length-1),Ce(n,t.text)))}
// EXTERNAL MODULE: ./node_modules/zrender/lib/canvas/helper.js
var Pe=n("3437"),Le=0;
// CONCATENATED MODULE: ./node_modules/zrender/lib/svg/Painter.js
/* harmony default export */var Qe=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=t,this._opts=n=Object(A.extend)({},n),this.root=e,this._id="zr"+Le++,this._oldVNode=D(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=B("svg");Oe(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(Se(e,t))De(e,t);else{var n=e.elm,r=we(n);Be(t),null!==r&&(ye(r,t.elm,xe(n)),Te(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return de(e,O(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=O(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],s=this._bgVNode=function(e,t,n,r){var i;if(n&&"none"!==n)if(i=M("rect","bg",{width:e,height:t,x:"0",y:"0"}),Object(o.k)(n))pe({fill:n},i.attrs,"fill",r);else if(Object(o.n)(n))ge({style:{fill:n},dirty:A.noop,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var a=Object(o.p)(n),s=a.color,c=a.opacity;i.attrs.fill=s,c<1&&(i.attrs["fill-opacity"]=c)}return i}(n,r,this._backgroundColor,i);s&&a.push(s);var c=e.compress?null:this._mainVNode=M("g","main",{},[]);this._paintList(t,i,c?c.children:a),c&&a.push(c);var l=Object(A.map)(Object(A.keys)(i.defs),(function(e){return i.defs[e]}));if(l.length&&a.push(M("defs","defs",{},l)),e.animation){var u=function(e,t,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,a=r+"}",o=Object(A.map)(Object(A.keys)(e),(function(t){return t+i+Object(A.map)(Object(A.keys)(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+a})).join(r),s=Object(A.map)(Object(A.keys)(t),(function(e){return"@keyframes "+e+i+Object(A.map)(Object(A.keys)(t[e]),(function(n){return n+i+Object(A.map)(Object(A.keys)(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+a})).join(r)+a})).join(r);return o||s?["<![CDATA[",o,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var h=M("style","stl",{},[],u);a.push(h)}}return D(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},T(this.renderToVNode({animation:Object(A.retrieve2)(e.cssAnimation,!0),emphasis:Object(A.retrieve2)(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(A.retrieve2)(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,a=e.length,o=[],s=0,c=0,l=0;l<a;l++){var u=e[l];if(!u.invisible){var h=u.__clipPaths,f=h&&h.length||0,d=i&&i.length||0,p=void 0;for(p=Math.max(f-1,d-1);p>=0&&(!h||!i||h[p]!==i[p]);p--);for(var g=d-1;g>p;g--)r=o[--s-1];for(var m=p+1;m<f;m++){var v={};me(h[m],v,t);var y=M("g","clip-g-"+c++,v,[]);(r?r.children:n).push(y),o[s++]=y,r=y}i=h;var A=de(u,t);A&&(r?r.children:n).push(A)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=Object(Pe.b)(r,0,n),t=Object(Pe.b)(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+"px",a.height=t+"px"}if(Object(o.n)(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var c=this._bgVNode&&this._bgVNode.elm;c&&(c.setAttribute("width",e),c.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Object(o.c)(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/renderer/installSVGRenderer.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
var Re=n("7fae"),je=n("1830"),Ne=n("4f85"),Fe=n("a15a"),ze=n("2dc5"),He=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e){return Object(je.a)(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new ze.a,n=Object(Fe.a)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),a="none"===r?"circle":r,o=.8*e.itemHeight,s=Object(Fe.a)(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var c="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=c*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={
// zlevel: 0,
z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},
// itemStyle: {
// },
endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},
// areaStyle: {
// origin of areaStyle. Valid values:
// `'auto'/null/undefined`: from axisLine to data
// `'start'`: from min to data
// `'end'`: from data to max
// origin: 'auto'
// },
// false, 'start', 'end', 'middle'
step:!1,
// Disabled if step is true
smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,
// `false`: follow the label interval strategy.
// `true`: show all symbols.
// `'auto'`: If possible, show all symbols, otherwise
//           follow the label interval strategy.
showAllSymbol:"auto",
// Whether to connect break point.
connectNulls:!1,
// Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.
sampling:"none",animationEasing:"linear",
// Disable progressive
progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ne.b),Ue=He,Ge=n("deca"),Ve=n("2306"),We=n("861c"),qe=n("7d6c"),Ye=n("2b17");
// EXTERNAL MODULE: ./node_modules/echarts/lib/chart/helper/createSeriesData.js + 1 modules
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/labelHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @return label string. Not null/undefined
 */
function Ke(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;
// Simple optimization (in lots of cases, label dims length is 1)
if(1===r){var i=Object(Ye.e)(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Object(Ye.e)(e,t,n[o]));return a.join(" ")}}function $e(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(A.isArray)(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(" ")}
// EXTERNAL MODULE: ./node_modules/echarts/lib/label/labelStyle.js
var Je=n("7837");
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/Symbol.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Xe(e,t){this.parent.drift(e,t)}
/* harmony default export */var Ze=/** @class */function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return Object(Re.a)(t,e),t.prototype._createSymbol=function(e,t,n,r,i){
// Remove paths created before
this.removeAll();
// let symbolPath = createSymbol(
//     symbolType, -0.5, -0.5, 1, 1, color
// );
// If width/height are set too small (e.g., set to 1) on ios10
// and macOS Sierra, a circle stroke become a rect, no matter what
// the scale is set. So we set width/height as 2. See #4150.
var a=Object(Fe.a)(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),
// Rewrite drift method
a.drift=Xe,this._symbolType=e,this.add(a)},
/**
   * Stop animation
   * @param {boolean} toLastFrame
   */
t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},
/**
   * FIXME:
   * Caution: This method breaks the encapsulation of this module,
   * but it indeed brings convenience. So do not use the method
   * unless you detailedly know all the implements of `Symbol`,
   * especially animation.
   *
   * Get symbol path element.
   */
t.prototype.getSymbolPath=function(){return this.childAt(0)},
/**
   * Highlight symbol
   */
t.prototype.highlight=function(){Object(qe.r)(this.childAt(0))},
/**
   * Downplay symbol
   */
t.prototype.downplay=function(){Object(qe.C)(this.childAt(0))},
/**
   * @param {number} zlevel
   * @param {number} z
   */
t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},
/**
   * Update symbol properties
   */
t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),c=a!==this._symbolType,l=i&&i.disableAnimation;if(c){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,s,u)}else{(f=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};l?f.attr(h):Ge.h(f,h,o,n),Object(Ge.g)(f)}if(this._updateCommon(e,n,s,r,i),c){var f=this.childAt(0);if(!l){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{
// Always fadeIn. Because it has fadeOut animation when symbol is removed..
opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Ge.c(f,h,o,n)}}l&&
// Must stop leave transition manually if don't call initProps or updateProps.
this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,s,l,u,h,f,d,p,g=this.childAt(0),m=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,f=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,h=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=v.getModel("emphasis");a=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),o=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),h=y.get("disabled"),f=Object(Je.e)(v),d=y.getShallow("scale"),p=v.getShallow("cursor")}var b=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var w=Object(Fe.b)(e.getItemVisual(t,"symbolOffset"),n);w&&(g.x=w[0],g.y=w[1]),p&&g.attr("cursor",p);var x=e.getItemVisual(t,"style"),C=x.fill;if(g instanceof c.a){var _=g.style;g.useStyle(Object(A.extend)({
// TODO other properties like x, y ?
image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},x))}else g.__isEmptyBrush?
// fill and stroke will be swapped if it's empty.
// So we cloned a new style to avoid it affecting the original style in visual storage.
// TODO Better implementation. No empty logic!
g.useStyle(Object(A.extend)({},x)):g.useStyle(x),
// Disable decal because symbol scale will been applied on the decal.
g.style.decal=null,g.setColor(C,i&&i.symbolInnerColor),g.style.strokeNoScale=!0;var I=e.getItemVisual(t,"liftZ"),E=this._z2;null!=I?null==E&&(this._z2=g.z2,g.z2+=I):null!=E&&(g.z2=E,this._z2=null);var k=i&&i.useNameLabel;Object(Je.g)(g,f,{labelFetcher:m,labelDataIndex:t,defaultText:
// Do not execute util needed.
function(t){return k?e.getName(t):Ke(e,t)},inheritColor:C,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var S=g.ensureState("emphasis");S.style=a,g.ensureState("select").style=s,g.ensureState("blur").style=o;
// null / undefined / true means to use default strategy.
// 0 / false / negative number / NaN / Infinity means no scale.
var B=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;
// always set scale to allow resetting
S.scaleX=this._sizeX*B,S.scaleY=this._sizeY*B,this.setSymbolScale(1),Object(qe.J)(this,l,u,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Object(We.a)(this).dataIndex,a=n&&n.animation;
// Not show text when animating
if(
// Avoid mistaken hover when fading out
this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Ge.e(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Ge.e(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Object(Fe.c)(e.getItemVisual(t,"symbolSize"))},t}(ze.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/SymbolDraw.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function et(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function tt(e){return null==e||Object(A.isObject)(e)||(e={isIgnore:e}),e||{}}function nt(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(Je.e)(t),cursorStyle:t.get("cursor")}}var rt=/** @class */function(){function e(e){this.group=new ze.a,this._SymbolCtor=e||Ze}
/**
   * Update symbols draw by new data
   */return e.prototype.updateData=function(e,t){
// Remove progressive els.
this._progressiveEls=null,t=tt(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=nt(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};
// There is no oldLineData only when first rendering or switching from
// stream mode to normal mode, where previous elements should be removed.
i||n.removeAll(),e.diff(i).add((function(r){var i=l(r);if(et(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}})).update((function(u,h){var f=i.getItemGraphicEl(h),d=l(u);if(et(e,d,u,t)){var p=e.getItemVisual(u,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==p)n.remove(f),(f=new a(e,u,s,c)).setPosition(d);else{f.updateData(e,u,s,c);var m={x:d[0],y:d[1]};o?f.attr(m):Ge.h(f,m,r)}
// Add back
n.add(f),e.setItemGraphicEl(u,f)}else n.remove(f)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&
// Not use animation
t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nt(e),this._data=null,this.group.removeAll()},
/**
   * Update symbols draw by new data
   */
e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}
// Clear
this._progressiveEls=[],n=tt(n);for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(et(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){Ve.traverseElements(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;
// Incremental model do not have this._data.
n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),it=n("ee1a");
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/helper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function at(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:Object(A.isNumber)(t)&&!isNaN(t)?n=t:
// Both positive
r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u="x"===s||"radius"===s?1:0,h=Object(A.map)(e.dimensions,(function(e){return t.mapDimension(e)})),f=!1,d=t.getCalculationInfo("stackResultDimension");return Object(it.c)(t,h[0]/* , dims[1] */)&&(
// jshint ignore:line
f=!0,h[0]=d),Object(it.c)(t,h[1]/* , dims[0] */)&&(
// jshint ignore:line
f=!0,h[1]=d),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function ot(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/vendor.js
var st=n("f658");
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/lineAnimationDiff.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/LinearGradient.js
var ct=n("48a9"),lt=n("e0d3"),ut=n("4a3f"),ht=Math.min,ft=Math.max;
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/model.js
function dt(e,t){return isNaN(e)||isNaN(t)}
/**
 * Draw smoothed line in non-monotone, in may cause undesired curve in extreme
 * situations. This should be used when points are non-monotone neither in x or
 * y dimension.
 */function pt(e,t,n,r,i,a,o,s,c){for(var l,u,h,f,d,p,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(dt(v,y)){if(c){g+=a;continue}break}if(g===n)e[a>0?"moveTo":"lineTo"](v,y),h=v,f=y;else{var A=v-l,b=y-u;
// Ignore tiny segment.
if(A*A+b*b<.5){g+=a;continue}if(o>0){
// Ignore duplicate point
for(var w=g+a,x=t[2*w],C=t[2*w+1];x===v&&C===y&&m<r;)m++,g+=a,x=t[2*(w+=a)],C=t[2*w+1],A=(v=t[2*g])-l,b=(y=t[2*g+1])-u;var _=m+1;if(c)
// Find next point not null
for(;dt(x,C)&&_<r;)_++,x=t[2*(w+=a)],C=t[2*w+1];var I=.5,E=0,k=0,S=void 0,B=void 0;
// Is last point
if(_>=r||dt(x,C))d=v,p=y;else{E=x-l,k=C-u;var M=v-l,T=x-v,O=y-u,D=C-y,P=void 0,L=void 0;if("x"===s){var Q=E>0?1:-1;d=v-Q*(P=Math.abs(M))*o,p=y,S=v+Q*(L=Math.abs(T))*o,B=y}else if("y"===s){var R=k>0?1:-1;d=v,p=y-R*(P=Math.abs(O))*o,S=v,B=y+R*(L=Math.abs(D))*o}else P=Math.sqrt(M*M+O*O),d=v-E*o*(1-(
// Use ratio of seg length
I=(L=Math.sqrt(T*T+D*D))/(L+P))),p=y-k*o*(1-I),B=y+k*o*I,
// Smooth constraint between point and next point.
// Avoid exceeding extreme after smoothing.
S=ht(
// cp0 of next segment
S=v+E*o*I,ft(x,v)),B=ht(B,ft(C,y)),S=ft(S,ht(x,v)),p=y-(k=(B=ft(B,ht(C,y)))-y)*P/L,
// Smooth constraint between point and prev point.
// Avoid exceeding extreme after smoothing.
d=ht(d=v-(
// Reclaculate cp1 based on the adjusted cp0 of next seg.
E=S-v)*P/L,ft(l,v)),p=ht(p,ft(u,y)),S=v+(
// Adjust next cp0 again.
E=v-(d=ft(d,ht(l,v))))*L/P,B=y+(k=y-(p=ft(p,ht(u,y))))*L/P}e.bezierCurveTo(h,f,d,p,v,y),h=S,f=B}else e.lineTo(v,y)}l=v,u=y,g+=a}return m}var gt=function(){this.smooth=0,this.smoothConstraint=!0},mt=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(Re.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gt},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;
// const result = getBoundingBox(points, shape.smoothConstraint);
if(t.connectNulls){
// Must remove first and last null values avoid draw error in polygon
for(;i>0&&dt(n[2*i-2],n[2*i-1]);i--);for(;r<i&&dt(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=pt(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,a=Q.a.CMD,o="x"===t,s=[],c=0;c<i.length;){var l=void 0,u=void 0,h=void 0,f=void 0,d=void 0,p=void 0,g=void 0;switch(i[c++]){case a.M:n=i[c++],r=i[c++];break;case a.L:if(l=i[c++],u=i[c++],(g=o?(e-n)/(l-n):(e-r)/(u-r))<=1&&g>=0){var m=o?(u-r)*g+r:(l-n)*g+n;return o?[e,m]:[m,e]}n=l,r=u;break;case a.C:l=i[c++],u=i[c++],h=i[c++],f=i[c++],d=i[c++],p=i[c++];var v=o?Object(ut.f)(n,l,h,d,e,s):Object(ut.f)(r,u,f,p,e,s);if(v>0)for(var y=0;y<v;y++){var A=s[y];if(A<=1&&A>=0){m=o?Object(ut.a)(r,u,f,p,A):Object(ut.a)(n,l,h,d,A);return o?[e,m]:[m,e]}}n=d,r=p}}},t}(s.b),vt=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t}(gt),yt=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new vt},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){
// Must remove first and last null values avoid draw error in polygon
for(;a>0&&dt(n[2*a-2],n[2*a-1]);a--);for(;i<a&&dt(n[2*i],n[2*i+1]);i++);}for(;i<a;){var s=pt(e,n,i,a,a,1,t.smooth,o,t.connectNulls);pt(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(s.b),At=n("e887"),bt=n("c7a2"),wt=n("4aa2"),xt=n("3842");
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Ct(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get(["lineStyle","width"])||0;
// Expand the clip path a bit to avoid the border is clipped and looks thinner
o-=u/2,s-=u/2,c+=u,l+=u,
// fix: https://github.com/apache/incubator-echarts/issues/11369
c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),
// if no extra 1px on `width`, it will still be clipped since `x` is floored
c++);var h=new bt.a({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),d=f.isHorizontal(),p=f.inverse;d?(p&&(h.shape.x+=c),h.shape.width=0):(p||(h.shape.y+=l),h.shape.height=0);var g=Object(A.isFunction)(i)?function(e){i(e,h)}:null;Ge.c(h,{shape:{width:c,height:l,x:o,y:s}},n,null,r,g)}return h}function _t(e,t,n){var r=e.getArea(),i=Object(xt.w)(r.r0,1),a=Object(xt.w)(r.r,1),o=new wt.a({shape:{cx:Object(xt.w)(e.cx,1),cy:Object(xt.w)(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});
// Avoid float number rounding error for symbol on the edge of axis extent.
t&&("angle"===e.getBaseAxis().dim?o.shape.endAngle=r.startAngle:o.shape.r=i,Ge.c(o,{shape:{endAngle:r.endAngle,r:a}},n));return o}function It(e,t,n,r,i){return e?"polar"===e.type?_t(e,t,n):"cartesian2d"===e.type?Ct(e,t,n,r,i):null:null}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/CoordinateSystem.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Et(e,t){return e.type===t}
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/format.js
var kt=n("eda2");
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/LineView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// FIXME step not support polar
function St(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Bt(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Mt(e,t){var n=Bt(e),r=n[0],i=n[1],a=Bt(t),o=a[0],s=a[1];
// Get a max value from each corner of two boundings.
return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Tt(e){return A.isNumber(e)?e:e?.5:0}
/**
 * Filter the null data and extend data for step considering `stepTurnAt`
 *
 * @param points data to convert, that may containing null
 * @param basePoints base data to reference, used only for areaStyle points
 * @param coordSys coordinate system
 * @param stepTurnAt 'start' | 'end' | 'middle' | true
 * @param connectNulls whether to connect nulls
 * @returns converted point positions
 */
function Ot(e,t,n,r,i){var a=n.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,s=[],c=0,l=[],u=[],h=[],f=[];if(i){for(c=0;c<e.length;c+=2){
/**
       * For areaStyle of stepped lines, `stackedOnPoints` should be
       * filtered the same as `points` so that the base axis values
       * should stay the same as the lines above. See #20021
       */
var d=t||e;isNaN(d[c])||isNaN(d[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(h[0]=e[c+2],h[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case"end":l[o]=h[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case"middle":var p=(u[o]+h[o])/2,g=[];l[o]=g[o]=p,l[1-o]=u[1-o],g[1-o]=h[1-o],s.push(l[0],l[1]),s.push(g[0],g[1]);break;default:
// default is start
l[o]=u[o],l[1-o]=h[1-o],s.push(l[0],l[1])}
// Last points
return s.push(e[c++],e[c++]),s}
/**
 * Clip color stops to edge. Avoid creating too large gradients.
 * Which may lead to blurry when GPU acceleration is enabled. See #15680
 *
 * The stops has been sorted from small to large.
 */function Dt(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);
// Can only be x or y
if("x"===(i=s&&s.coordDim)||"y"===i){a=r[o];break}}if(a){
// If the area to be rendered is bigger than area defined by LinearGradient,
// the canvas spec prescribes that the color of the first stop and the last
// stop should be used. But if two stops are added at offset 0, in effect
// browsers use the color of the second stop to render area outside
// LinearGradient. So we can only infinitesimally extend area defined in
// LinearGradient to render `outerColors`.
var c=t.getAxis(i),l=A.map(a.stops,(function(e){
// offset will be calculated later.
return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}})),u=l.length,h=a.outerColors.slice();
// dataToCoord mapping may not be linear, but must be monotonic.
u&&l[0].coord>l[u-1].coord&&(l.reverse(),h.reverse());var f=function(e,t){var n,r,i=[],a=e.length;function o(e,t,n){var r=e.coord,i=(n-r)/(t.coord-r);return{coord:n,color:Object(J.lerp)(i,[e.color,t.color])}}for(var s=0;s<a;s++){var c=e[s],l=c.coord;if(l<0)n=c;else{if(l>t){r?i.push(o(r,c,t)):n&&
// If there are two stops and coord range is between these two stops
i.push(o(n,c,0),o(n,c,t));
// All following stop will be out of range. So just ignore them.
break}n&&(i.push(o(n,c,0)),
// Reset
n=null),i.push(c),r=c}}return i}(l,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&u)
// All stops are out of range. All will be the same color.
return l[0].coord<0?h[1]?h[1]:l[u-1].color:h[0]?h[0]:l[0].color;var p=f[0].coord-10,g=f[d-1].coord+10,m=g-p;// Arbitrary value: 10px
if(m<.001)return"transparent";A.each(f,(function(e){e.offset=(e.coord-p)/m})),f.push({
// NOTE: inRangeStopLen may still be 0 if stoplen is zero.
offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var v=new ct.a(0,0,0,0,f,!0);return v[i]=p,v[i+"2"]=g,v}}}function Pt(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(e,t){
// In most cases, line is monotonous on category axis, and the label size
// is close with each other. So we check the symbol size and some of the
// label size alone with the category axis to estimate whether all symbol
// can be shown without overlap.
var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(// 0/0 is NaN.
// Sampling some points, max 5.
var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*Ze.getSymbolSize(t,o)[e.isHorizontal()?1:0]>r)return!1;return!0}(a,t)))
// Note that category label interval strategy might bring some weird effect
// in some scenario: users may wonder why some of the symbols are not
// displayed. So we show all symbols as possible as we can.
{
// Otherwise follow the label interval strategy on category axis.
var o=t.mapDimension(a.dim),s={};return A.each(a.getViewLabels(),(function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Lt(e,t){return[e[2*t],e[2*t+1]]}function Qt(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<qe.g.length;t++)if(e.get([qe.g[t],"endLabel","show"]))return!0;return!1}function Rt(e,t,n,r){if(Et(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},c=Qt(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=Ct(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),c);
// Expand clip shape to avoid clipping when line value exceeds axis
if(!r.get("clip",!0)){var h=u.shape,f=Math.max(h.width,h.height);l?(h.y-=f,h.height+=2*f):(h.x-=f,h.width+=2*f)}
// Set to the final frame. To make sure label layout is right.
return c&&c(1,u),u}return _t(t,n,r)}var jt=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.init=function(){var e=new ze.a,t=new rt;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=A.bind(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel("lineStyle"),s=e.getModel("areaStyle"),c=a.getLayout("points")||[],l="polar"===r.type,u=this._coordSys,h=this._symbolDraw,f=this._polyline,d=this._polygon,p=this._lineGroup,g=!t.ssr&&e.get("animation"),m=!s.isEmpty(),v=s.get("origin"),y=at(r,a,v),b=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Object(st.a)(2*r),a=0;a<r;a++){var o=ot(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}(r,a,y),w=e.get("showSymbol"),x=e.get("connectNulls"),C=w&&!l&&Pt(e,a,r),_=this._data;_&&_.eachItemGraphicEl((function(e,t){e.__temp&&(i.remove(e),_.setItemGraphicEl(t,null))})),
// Remove previous created symbols if showSymbol changed to false
w||h.remove(),i.add(p);
// FIXME step not support polar
var I,E=!l&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(
// Avoid float number rounding error for symbol on the edge of axis extent.
// See #7913 and `test/dataZoom-clip.html`.
null!=(I=r.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var k=Dt(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];
// Initialization animation or coordinate system changed
if(f&&u.type===r.type&&E===this._step){m&&!d?
// If areaStyle is added
d=this._newPolygon(c,b):d&&!m&&(
// If areaStyle is removed
p.remove(d),d=this._polygon=null),
// NOTE: Must update _endLabel before setClipPath.
l||this._initOrUpdateEndLabel(e,r,Object(kt.c)(k));
// Update clipPath
var S=p.getClipPath();if(S){var B=Rt(this,r,!1,e);Ge.c(S,{shape:B.shape},e)}else p.setClipPath(Rt(this,r,!0,e));
// Always update, or it is wrong in the case turning on legend
// because points are not changed.
w&&h.updateData(a,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),
// In the case data zoom triggered refreshing frequently
// Data may not change if line has a category axis. So it should animate nothing.
St(this._stackedOnPoints,b)&&St(this._points,c)||(g?this._doUpdateAnimation(a,b,r,n,E,v,x):(
// Not do it in update with animation
E&&(b&&(b=Ot(b,c,r,E,x)),
// TODO If stacked series is not step
c=Ot(c,null,r,E,x)),f.setShape({points:c}),d&&d.setShape({points:c,stackedOnPoints:b})))}else w&&h.updateData(a,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),g&&this._initSymbolLabelAnimation(a,r,I),E&&(b&&(b=Ot(b,c,r,E,x)),
// TODO If stacked series is not step
c=Ot(c,null,r,E,x)),f=this._newPolyline(c),m?d=this._newPolygon(c,b):d&&(p.remove(d),d=this._polygon=null),
// NOTE: Must update _endLabel before setClipPath.
l||this._initOrUpdateEndLabel(e,r,Object(kt.c)(k)),p.setClipPath(Rt(this,r,!0,e));var M=e.getModel("emphasis"),T=M.get("focus"),O=M.get("blurScope"),D=M.get("disabled");(f.useStyle(A.defaults(
// Use color in lineStyle first
o.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Object(qe.I)(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);
// Needs seriesIndex for focus
Object(We.a)(f).seriesIndex=e.seriesIndex,Object(qe.J)(f,T,O,D);var P=Tt(e.get("smooth")),L=e.get("smoothMonotone");if(f.setShape({smooth:P,smoothMonotone:L,connectNulls:x}),d){var Q=a.getCalculationInfo("stackedOnSeries"),R=0;d.useStyle(A.defaults(s.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),Q&&(R=Tt(Q.get("smooth"))),d.setShape({smooth:P,stackedOnSmooth:R,smoothMonotone:L,connectNulls:x}),Object(qe.I)(d,e,"areaStyle"),
// Needs seriesIndex for focus
Object(We.a)(d).seriesIndex=e.seriesIndex,Object(qe.J)(d,T,O,D)}var j=this._changePolyState;a.eachItemGraphicEl((function(e){
// Switch polyline / polygon state if element changed its state.
e&&(e.onHoverStateChange=j)})),this._polyline.onHoverStateChange=j,this._data=a,
// Save the coordinate system for transition animation when data changed
this._coordSys=r,this._stackedOnPoints=b,this._points=c,this._step=E,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,f),d&&this.packEventData(e,d))},t.prototype.packEventData=function(e,t){Object(We.a)(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=lt.u(i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){
// Create a temporary symbol if it is not exists
var c=o[2*a],l=o[2*a+1];if(isNaN(c)||isNaN(l))
// Null data
return;
// fix #11360: shouldn't draw symbol outside clipShapeForSymbol
if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get("zlevel")||0,h=e.get("z")||0;(s=new Ze(i,a)).x=c,s.y=l,s.setZ(u,h);
// ensure label text of the temporary symbol is in front of line and area polygon
var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),
// Stop scale animation
s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else
// Highlight whole series
At.a.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=lt.u(i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else
// FIXME
// can not downplay completely.
// Downplay whole series
At.a.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(qe.H)(this._polyline,e),t&&Object(qe.H)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;
// Remove previous created polyline
return t&&this._lineGroup.remove(t),t=new mt({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;
// Remove previous created polygon
return n&&this._lineGroup.remove(n),n=new yt({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;"cartesian2d"===t.type?(r=a.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===a.dim,i=!0);var s=e.hostModel,c=s.get("animationDuration");A.isFunction(c)&&(c=c(null));var l=s.get("animationDelay")||0,u=A.isFunction(l)?l(null):l;e.eachItemGraphicEl((function(e,a){var s=e;if(s){var h=[e.x,e.y],f=void 0,d=void 0,p=void 0;if(n)if(i){var g=n,m=t.pointToCoord(h);r?(f=g.startAngle,d=g.endAngle,p=-m[1]/180*Math.PI):(f=g.r0,d=g.r,p=m[0])}else{var v=n;r?(f=v.x,d=v.x+v.width,p=e.x):(f=v.y+v.height,d=v.y,p=e.y)}var y=d===f?0:(p-f)/(d-f);o&&(y=1-y);var b=A.isFunction(l)?l(a):c*y+u,w=s.getSymbolPath(),x=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(Qt(e)){var i=e.getData(),a=this._polyline,o=i.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new K.a({z2:200})).ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);
// Find last non-NaN data to display data
var c=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(o);c>=0&&(Object(Je.g)(a,Object(Je.e)(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return null!=n?$e(i,n):Ke(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){
// NOTE: Don't remove percent < 1. percent === 1 means the first frame during render.
// The label is not prepared at this time.
e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),f=a.get("precision"),d=a.get("distance")||0,p=o.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,A=(g?d:0)*(m?-1:1),b=(g?0:-d)*(m?-1:1),w=g?"x":"y",x=function(e,t,n){for(var r,i,a=e.length/2,o="x"===n?0:1,s=0,c=-1,l=0;l<a;l++)if(i=e[2*l+o],!isNaN(i)&&!isNaN(e[2*l+1-o]))if(0!==l){if(r<=t&&i>=t||r>=t&&i<=t){c=l;break}s=l,r=i}else r=i;return{range:[s,c],t:(t-r)/(i-r)}}(l,y,w),C=x.range,_=C[1]-C[0],I=void 0;if(_>=1){
// diff > 1 && connectNulls, which is on the null data.
if(_>1&&!h){var E=Lt(l,C[0]);s.attr({x:E[0]+A,y:E[1]+b}),i&&(I=u.getRawValue(C[0]))}else{(E=c.getPointOn(y,w))&&s.attr({x:E[0]+A,y:E[1]+b});var k=u.getRawValue(C[0]),S=u.getRawValue(C[1]);i&&(I=lt.k(n,f,k,S,x.t))}r.lastFrameIndex=C[0]}else{
// If diff <= 0, which is the range is not found(Include NaN)
// Choose the first point or last point.
var B=1===e||r.lastFrameIndex>0?C[0]:0;E=Lt(l,B);i&&(I=u.getRawValue(B)),s.attr({x:E[0]+A,y:E[1]+b})}if(i){var M=Object(Je.f)(s);"function"==typeof M.setLabelText&&M.setLabelText(I)}}},
/**
   * @private
   */
// FIXME Two value axis
t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=function(e,t,n,r,i,a,o){for(var s=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),c=[],l=[],u=[],h=[],f=[],d=[],p=[],g=at(i,t,o),m=e.getLayout("points")||[],v=t.getLayout("points")||[],y=0
// let newIdList = newData.mapArray(newData.getId);
// let oldIdList = oldData.mapArray(oldData.getId);
// convertToIntId(newIdList, oldIdList);
// // FIXME One data ?
// diff = arrayDiff(oldIdList, newIdList);
;y<s.length;y++){var A=s[y],b=!0,w=void 0,x=void 0;
// FIXME, animation is not so perfect when dataZoom window moves fast
// Which is in case remvoing or add more than one data in the tail or head
switch(A.cmd){case"=":w=2*A.idx,x=2*A.idx1;var C=m[w],_=m[w+1],I=v[x],E=v[x+1];
// If previous data is NaN, use next point directly
(isNaN(C)||isNaN(_))&&(C=I,_=E),c.push(C,_),l.push(I,E),u.push(n[w],n[w+1]),h.push(r[x],r[x+1]),p.push(t.getRawIndex(A.idx1));break;case"+":var k=A.idx,S=g.dataDimsForPoint,B=i.dataToPoint([t.get(S[0],k),t.get(S[1],k)]);x=2*k,c.push(B[0],B[1]),l.push(v[x],v[x+1]);var M=ot(g,i,t,k);u.push(M[0],M[1]),h.push(r[x],r[x+1]),p.push(t.getRawIndex(k));break;case"-":b=!1}
// Original indices
b&&(f.push(A),d.push(d.length))}
// Diff result may be crossed if all items are changed
// Sort by data index
d.sort((function(e,t){return p[e]-p[t]}));var T=c.length,O=Object(st.a)(T),D=Object(st.a)(T),P=Object(st.a)(T),L=Object(st.a)(T),Q=[];for(y=0;y<d.length;y++){var R=d[y],j=2*y,N=2*R;O[j]=c[N],O[j+1]=c[N+1],D[j]=l[N],D[j+1]=l[N+1],P[j]=u[N],P[j+1]=u[N+1],L[j]=h[N],L[j+1]=h[N+1],Q[y]=f[R]}return{current:O,next:D,stackedOnCurrent:P,stackedOnNext:L,status:Q}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),h=u.current,f=u.stackedOnCurrent,d=u.next,p=u.stackedOnNext;
// Don't apply animation if diff is large.
// For better result and avoid memory explosion problems like
// https://github.com/apache/incubator-echarts/issues/12229
if(i&&(
// TODO If stacked series is not step
f=Ot(u.stackedOnCurrent,u.current,n,i,o),h=Ot(u.current,null,n,i,o),p=Ot(u.stackedOnNext,u.next,n,i,o),d=Ot(u.next,null,n,i,o)),Mt(h,d)>3e3||c&&Mt(f,p)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(c&&(c.stopAnimation(),c.setShape({points:d,stackedOnPoints:p})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:d}};
// Also animate the original points.
// If points reference is changed when turning into step line.
u.current!==h&&(g.shape.__points=u.next),
// Stop previous animation.
s.stopAnimation(),Ge.h(s,g,l),c&&(c.setShape({
// Reuse the points with polyline.
points:h,stackedOnPoints:f}),c.stopAnimation(),Ge.h(c,{shape:{stackedOnPoints:p}},l),
// If use attr directly in updateProps.
s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;y<v.length;y++){if("="===v[y].cmd){var A=e.getItemGraphicEl(v[y].idx1);A&&m.push({el:A,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),
// Remove temporary created elements when highlighting
n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(At.a),Nt=jt,Ft=n("cccd");
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/layout/points.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function zt(e,t){return{seriesType:e,plan:Object(Ft.a)(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=Object(A.map)(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=o.length,c=n.getCalculationInfo("stackResultDimension");Object(it.c)(n,o[0])&&(o[0]=c),Object(it.c)(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&Object(st.a)(n*s),o=[],c=[],f=e.start,d=0;f<e.end;f++){var p=void 0;if(1===s){var g=l.get(u,f);
// NOTE: Make sure the second parameter is null to use default strategy.
p=r.dataToPoint(g,null,c)}else o[0]=l.get(u,f),o[1]=l.get(h,f),
// Let coordinate system to handle the NaN data.
p=r.dataToPoint(o,null,c);a?(i[d++]=p[0],i[d++]=p[1]):t.setItemLayout(f,p.slice())}a&&t.setLayout("points",i)}}}}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/dataSample.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Ht={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);
// Return NaN if count is 0
return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)
// Ignore NaN
t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);
// NaN will cause illegal axis extent.
return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);
// NaN will cause illegal axis extent.
return isFinite(t)?t:NaN},
// TODO
// Median
nearest:function(e){return e[0]}},Ut=function(e){return Math.round(e.length/2)};function Gt(e){return{seriesType:e,
// FIXME:TS never used, so comment it
// modifyOutputEnd: true,
reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),a=e.coordinateSystem,o=r.count();
// Only cartesian2d support down sampling. Disable it when there is few data.
if(o>10&&"cartesian2d"===a.type&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/h);if(isFinite(f)&&f>1){"lttb"===i?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):"minmax"===i&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var d=void 0;Object(A.isString)(i)?d=Ht[i]:Object(A.isFunction)(i)&&(d=i),d&&
// Only support sample the first dim mapped from value axis.
e.setData(r.downSample(r.mapDimension(c.dim),1/f,d,Ut))}}}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/line/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// In case developer forget to include grid component
// EXTERNAL MODULE: ./node_modules/echarts/lib/layout/barGrid.js
var Vt=n("9d57"),Wt=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){return Object(je.a)(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){
// PENDING if clamp ?
var i=r.clampData(e),a=r.dataToPoint(i);if(n)Object(A.each)(r.getAxes(),(function(e,n){
// If axis type is category, use tick coords instead
if("category"===e.type&&null!=t){var r=e.getTicksCoords(),o=e.getTickModel().get("alignWithLabel"),s=i[n],c="x1"===t[n]||"y1"===t[n];
// The only contains one tick, tickCoords is
// like [{coord: 0, tickValue: 0}, {coord: 0}]
// to the length should always be larger than 1
if(c&&!o&&(s+=1),r.length<2)return;if(2===r.length)
// The left value and right value of the axis are
// the same. coord is 0 in both items. Use the max
// value of the axis as the coord
return void(a[n]=e.toGlobalCoord(e.getExtent()[c?1:0]));for(var l=void 0,u=void 0,h=1,f=0;f<r.length;f++){var d=r[f].coord,p=f===r.length-1?r[f-1].tickValue+h:r[f].tickValue;
// The last item of tickCoords doesn't contain
// tickValue
if(p===s){u=d;break}if(p<s)l=d;else if(null!=l&&p>s){u=(d+l)/2;break}1===f&&(
// Here we assume the step of category axes is
// the same
h=p-r[0].tickValue)}null==u&&(l?l&&(
// targetTickId is larger than all tick ids in the
// visible area, use the rightmost tick coord
u=r[r.length-1].coord):
// targetTickId is smaller than all tick ids in the
// visible area, use the leftmost tick coord
u=r[0].coord),a[n]=e.toGlobalCoord(u)}}));else{var o=this.getData(),s=o.getLayout("offset"),c=o.getLayout("size"),l=r.getBaseAxis().isHorizontal()?0:1;a[l]+=s+c/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,
// stack: null
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
barMinHeight:0,barMinAngle:0,
// cursor: null,
large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ne.b);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/BaseBarSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/Ne.b.registerClass(Wt);
/* harmony default export */var qt=Wt,Yt=n("8918"),Kt=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(){return Object(je.a)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},
/**
   * @override
   */
t.prototype.getProgressive=function(){
// Do not support progressive in normal mode.
return!!this.get("large")&&this.get("progressive")},
/**
   * @override
   */
t.prototype.getProgressiveThreshold=function(){
// Do not support progressive in normal mode.
var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(Yt.d)(qt.defaultOption,{
// If clipped
// Only available on cartesian2d
clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(qt),$t=Kt,Jt=n("88b3"),Xt=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Zt=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new Xt},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,h=2*Math.PI,f=u?l-c<h:c-l<h;f||(
// Normalize angles
c=l-(u?h:-h));var d=Math.cos(c),p=Math.sin(c),g=Math.cos(l),m=Math.sin(l);f?(e.moveTo(d*i+n,p*i+r),e.arc(d*s+n,p*s+r,o,-Math.PI+c,c,!u)):e.moveTo(d*a+n,p*a+r),e.arc(n,r,a,c,l,!u),e.arc(g*s+n,m*s+r,o,l-2*Math.PI,l-Math.PI,!u),0!==i&&e.arc(n,r,i,l,c,u)},t}(s.b),en=Zt;
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/component.js
function tn(e,t,n){return t*Math.sin(e)*(n?-1:1)}function nn(e,t,n){return t*Math.cos(e)*(n?1:-1)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/sectorHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function rn(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(A.isArray)(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(A.map)(r,(function(e){return Object(l.g)(e,i)}))}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/BarView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var an=Math.max,on=Math.min;var sn=/** @class */function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(
// Clear previously rendered progressive elements.
this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),
// incremental also need to clip, otherwise might be overlow.
// But must not set clip in each frame, otherwise all of the children will be marked redraw.
this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){
// Reset
this._progressiveEls=[],
// Do not support progressive in normal mode.
this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(Ve.traverseElements)(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,c=e.coordinateSystem,l=c.getBaseAxis();"cartesian2d"===c.type?i=l.isHorizontal():"polar"===c.type&&(i="angle"===l.dim);var u=e.isAnimationEnabled()?e:null,h=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,c);h&&this._enableRealtimeSort(h,o,n);var f=e.get("clip",!0)||h,d=function(e,t){var n=e.getArea&&e.getArea();if(Et(e,"cartesian2d")){var r=e.getBaseAxis();
// When boundaryGap is false or using time axis. bar may exceed the grid.
// We should not clip this part.
// See test/bar2.html
if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(c,o);
// If there is clipPath created in large mode. Remove it.
a.removeClipPath();
// We don't use clipPath in normal mode because we needs a perfect animation
// And don't want the label are clipped.
var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],A=this._backgroundEls,b=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function x(e){var t=gn[c.type](o,e),n=function(e,t,n){var r="polar"===e.type?wt.a:bt.a;return new r({shape:xn(t,n,e),silent:!0,z2:0})}
/* harmony default export */(c,i,t);return n.useStyle(m.getItemStyle()),
// Only cartesian2d support borderRadius.
"cartesian2d"===c.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}o.diff(s).add((function(t){var n=o.getItemModel(t),r=gn[c.type](o,t,n);
// If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
if(g&&x(t),o.hasValue(t)&&pn[c.type](r)){var s=!1;f&&(
// Clip will modify the layout params.
// And return a boolean to determine if the shape are fully clipped.
s=cn[c.type](d,r));var m=ln[c.type](e,o,t,r,i,u,l.model,!1,p);h&&(
/**
         * Force label animation because even if the element is
         * ignored because it's clipped, it may not be clipped after
         * changing order. Then, if not using forceLabelAnimation,
         * the label animation was never started, in which case,
         * the label will be the final value and doesn't have label
         * animation.
         */
m.forceLabelAnimation=!0),vn(m,o,t,n,r,e,i,"polar"===c.type),b?m.attr({shape:r}):h?un(h,u,m,r,t,i,!1,!1):Object(Ge.c)(m,{shape:r},e,t),o.setItemGraphicEl(t,m),a.add(m),m.ignore=s}})).update((function(t,n){var r=o.getItemModel(t),C=gn[c.type](o,t,r);if(g){var _=void 0;0===A.length?_=x(n):((_=A[n]).useStyle(m.getItemStyle()),
// Only cartesian2d support borderRadius.
"cartesian2d"===c.type?_.setShape("r",v):_.setShape("cornerRadius",v),y[t]=_);var I=gn[c.type](o,t),E=xn(i,I,c);Object(Ge.h)(_,{shape:E},u,t)}var k=s.getItemGraphicEl(n);if(o.hasValue(t)&&pn[c.type](C)){var S=!1;if(f&&(S=cn[c.type](d,C))&&a.remove(k),k?Object(Ge.g)(k):k=ln[c.type](e,o,t,C,i,u,l.model,!!k,p),h&&(k.forceLabelAnimation=!0),w){var B=k.getTextContent();if(B){var M=Object(Je.f)(B);null!=M.prevValue&&(
/**
             * Set preValue to be value so that no new label
             * should be started, otherwise, it will take a full
             * `animationDurationUpdate` time to finish the
             * animation, which is not expected.
             */
M.prevValue=M.value)}}
// Not change anything if only order changed.
// Especially not change label.
else vn(k,o,t,r,C,e,i,"polar"===c.type);b?k.attr({shape:C}):h?un(h,u,k,C,t,i,!0,w):Object(Ge.h)(k,{shape:C},e,t,null),o.setItemGraphicEl(t,k),k.ignore=S,a.add(k)}else a.remove(k)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Object(Ge.f)(n,e,t)})).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ze.a);C.removeAll();for(var _=0;_<y.length;++_)C.add(y[_]);a.add(C),this._backgroundEls=y,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),bn(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),bn(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){
// Use clipPath in large mode.
var t=e.get("clip",!0)&&It(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;
// If no data in the first frame, wait for data to initSort
if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&
// The result should be consistent with the initial sort by data value.
// Do not support the case that both positive and negative exist.
Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){
// If NaN, it will be treated as min val.
return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(A.map)(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},
/*
   * Consider the case when A and B changed order, whose representing
   * bars are both out of sight, we don't wish to trigger reorder action
   * as long as the order in the view doesn't change.
   */
t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(Ge.f)(t,e,Object(We.a)(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(At.a),cn={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;
// Needs positive width and height
n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=an(t.x,e.x),s=on(t.x+t.width,i),c=an(t.y,e.y),l=on(t.y+t.height,a),u=s<o,h=l<c;
// When xClipped or yClipped, the element will be marked as `ignore`.
// But we should also place the element at the edge of the coord sys bounding rect.
// Because if data changed and the bar shows again, its transition animation
// will begin at this place.
return t.x=u&&o>i?s:o,t.y=h&&c>a?l:c,t.width=u?0:s-o,t.height=h?0:l-c,
// Reverse back
n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;
// Make sure r is larger than r0
if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=on(t.r,e.r),a=an(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;
// Reverse back
if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},ln={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new bt.a({shape:Object(A.extend)({},r),z2:1});(l.__dataIndex=n,l.name="item",a)&&(l.shape[i?"height":"width"]=0);return l},polar:function(e,t,n,r,i,a,o,s,c){var u=!i&&c?en:wt.a,h=new u({shape:r,z2:1});h.name="item";var f,d,p=mn(i);
// Animation
if(h.calculateTextPosition=(f=p,d=({isRoundCap:u===en}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return Object(l.c)(e,t,n);var i=f(r),a=null!=t.distance?t.distance:5,o=this.shape,s=o.cx,c=o.cy,u=o.r,h=o.r0,p=(u+h)/2,g=o.startAngle,m=o.endAngle,v=(g+m)/2,y=d?Math.abs(u-h)/2:0,A=Math.cos,b=Math.sin,w=s+u*A(g),x=c+u*b(g),C="left",_="top";switch(i){case"startArc":w=s+(h-a)*A(v),x=c+(h-a)*b(v),C="center",_="top";break;case"insideStartArc":w=s+(h+a)*A(v),x=c+(h+a)*b(v),C="center",_="bottom";break;case"startAngle":w=s+p*A(g)+tn(g,a+y,!1),x=c+p*b(g)+nn(g,a+y,!1),C="right",_="middle";break;case"insideStartAngle":w=s+p*A(g)+tn(g,-a+y,!1),x=c+p*b(g)+nn(g,-a+y,!1),C="left",_="middle";break;case"middle":w=s+p*A(v),x=c+p*b(v),C="center",_="middle";break;case"endArc":w=s+(u+a)*A(v),x=c+(u+a)*b(v),C="center",_="bottom";break;case"insideEndArc":w=s+(u-a)*A(v),x=c+(u-a)*b(v),C="center",_="top";break;case"endAngle":w=s+p*A(m)+tn(m,a+y,!0),x=c+p*b(m)+nn(m,a+y,!0),C="left",_="middle";break;case"insideEndAngle":w=s+p*A(m)+tn(m,-a+y,!0),x=c+p*b(m)+nn(m,-a+y,!0),C="right",_="middle";break;default:return Object(l.c)(e,t,n)}return(e=e||{}).x=w,e.y=x,e.align=C,e.verticalAlign=_,e}),a){var g=i?"r":"endAngle",m={};h.shape[g]=i?r.r0:r.startAngle,m[g]=r[g],(s?Ge.h:Ge.c)(h,{shape:m},a)}return h}};function un(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||
// Keep the original growth animation if only axis order changed.
// Not start a new animation.
(o?Ge.h:Ge.c)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Ge.h:Ge.c)(n,{shape:l},u,i)}function hn(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var fn=["x","y","width","height"],dn=["cx","cy","r","startAngle","endAngle"],pn={cartesian2d:function(e){return!hn(e,fn)},polar:function(e){return!hn(e,dn)}},gn={
// itemModel is only used to get borderWidth, which is not needed
// when calculating bar background layout.
cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?
// In case width or height are too small.
function(e,t){
// Has no border.
var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);
// width or height may be NaN for empty data
return Math.min(r,i,a)}(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function mn(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function vn(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var l=e.shape,u=rn(r.getModel("itemStyle"),l,!0);Object(A.extend)(l,u),e.setShape(l)}}else{var h=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(c);var f=r.getShallow("cursor");f&&e.attr("cursor",f);var d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Object(Je.e)(r);Object(Je.g)(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:Ke(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:d});var g=e.getTextContent();if(s&&g){var m=r.get(["label","position"]);e.textConfig.inside="middle"===m||null,function(e,t,n,r){if(Object(A.isNumber)(r))
// user-set rotation
e.setTextConfig({rotation:r});else if(Object(A.isArray)(t))
// user-set position, use 0 as auto rotation
e.setTextConfig({rotation:0});else{var i,a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,c=(o+s)/2,l=n(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=c;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-i;
/**
   * TODO: labels with rotate > Math.PI / 2 should be rotate another
   * half round flipped to increase readability. However, only middle
   * position supports this for now, because in other positions, the
   * anchor point is not at the center of the text, so the positions
   * after rotating is not as expected.
   */"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}(e,"outside"===m?d:m,mn(o),r.get(["label","rotate"]))}Object(Je.h)(g,p,a.getRawValue(n),(function(e){return $e(t,e)}));var v=r.getModel(["emphasis"]);Object(qe.J)(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(qe.I)(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",Object(A.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var yn=function(){},An=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new yn},t.prototype.buildPath=function(e,t){for(
// Drawing lines is more efficient than drawing
// a whole line or drawing rects.
var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(s.b);function bn(e,t,n,r){
// TODO support polar
var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),c=e.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var u=new An({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var h=new An({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),
// Stroke is rendered first to avoid overlapping with fill
h.style.stroke=null,
// Enable tooltip and user mouse/touch event handlers.
Object(We.a)(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",wn),h.on("mousemove",wn)),n&&n.push(h)}
// Use throttle to avoid frequently traverse to find dataIndex.
var wn=Object(Jt.c)((function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,h=a.length/3;u<h;u++){var f=3*u;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}(this,e.offsetX,e.offsetY);Object(We.a)(this).dataIndex=t>=0?t:null}),30,!1);function xn(e,t,n){if(Et(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var a=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}var Cn=sn;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/echarts/lib/legacy/dataSelectAction.js
var _n=n("f3bb"),In=n("f934"),En=2*Math.PI,kn=Math.PI/180;
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/layout.js
function Sn(e,t){return In.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Bn(e,t){var n=Sn(e,t),r=e.get("center"),i=e.get("radius");
// center can be string or number when coordinateSystem is specified
A.isArray(i)||(i=[0,i]);var a,o,s=Object(xt.q)(n.width,t.getWidth()),c=Object(xt.q)(n.height,t.getHeight()),l=Math.min(s,c),u=Object(xt.q)(i[0],l/2),h=Object(xt.q)(i[1],l/2),f=e.coordinateSystem;if(f){
// percentage is not allowed when coordinate system is specified
var d=f.dataToPoint(r);a=d[0]||0,o=d[1]||0}else A.isArray(r)||(r=[r,r]),a=Object(xt.q)(r[0],s)+n.x,o=Object(xt.q)(r[1],c)+n.y;return{cx:a,cy:o,r0:u,r:h}}function Mn(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=Sn(e,n),a=Bn(e,n),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=-e.get("startAngle")*kn,h=e.get("endAngle"),f=e.get("padAngle")*kn;h="auto"===h?u-En:-h*kn;var d=e.get("minAngle")*kn+f,p=0;t.each(r,(function(e){!isNaN(e)&&p++}));var g=t.getSum(r),m=Math.PI/(g||p)*2,v=e.get("clockwise"),y=e.get("roseType"),A=e.get("stillShowZeroSum"),b=t.getDataExtent(r);
// Sum may be 0
b[0]=0;var w=v?1:-1,x=[u,h],C=w*f/2;Object(Q.b)(x,!v),u=x[0],h=x[1];var _=Tn(e);_.startAngle=u,_.endAngle=h,_.clockwise=v;var I=Math.abs(h-u),E=I,k=0,S=u;
// In the case some sector angle is smaller than minAngle
// Some sector is constrained by minAngle and padAngle
// Rest sectors needs recalculate angle
if(t.setLayout({viewRect:i,r:c}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:o,cy:s,r0:l,r:y?NaN:c});else{(
// FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样？
r="area"!==y?0===g&&A?m:e*m:I/p)<d?(r=d,E-=d):k+=e;var i=S+w*r,a=0,u=0;
// calculate display angle
f>r?u=a=S+w*r/2:(a=S+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:a,endAngle:u,clockwise:v,cx:o,cy:s,r0:l,r:y?Object(xt.m)(e,b,[l,c]):c}),S=i}})),E<En&&p)
// Average the angle if rest angle is not enough after all angles is
// Constrained by minAngle and padAngle
if(E<=.001){var B=I/p;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=B;var i=0,a=0;B<f?a=i=u+w*(n+.5)*B:(i=u+w*n*B+C,a=u+w*(n+1)*B-C),r.startAngle=i,r.endAngle=a}}))}else m=E/k,S=u,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===d?d:e*m,a=0,o=0;i<f?o=a=S+w*i/2:(a=S+C,o=S+w*i-C),r.startAngle=a,r.endAngle=o,S+=w*i}}))}))}var Tn=Object(lt.o)();
// CONCATENATED MODULE: ./node_modules/echarts/lib/processor/dataFilter.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function On(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){
// If in any legend component the status is not selected.
for(var t=r.getName(e),i=0;i<n.length;i++)
// @ts-ignore FIXME: LegendModel
if(!n[i].isSelected(t))return!1;return!0}))}}}}
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/shape/Polyline.js
var Dn=n("d498"),Pn=n("dce8"),Ln=n("89b6"),Qn=n("2355"),Rn=Math.PI/180;
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/Point.js
function jn(e,t,n,r,i,a,o,s,c,l){if(!(e.length<2)){for(var u=e.length,h=0;h<u;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var f=e[h].label.x-l;e[h].linePoints[1][0]+=f,e[h].label.x=l}Object(Qn.d)(e,c,c+o)&&
// Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.
function(e){for(
// Extremes of
var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var c=e[s],l=c.label.y>n?o:a,u=Math.abs(c.label.y-n);if(u>=l.maxY){var h=c.label.x-t-c.len2*i,f=r+c.len,p=Math.abs(h)<f?Math.sqrt(u*u/(1-h*h/f/f)):f;
// horizontal r is always same with original r because x is not changed.
l.rB=p,l.maxY=u}l.list.push(c)}d(a),d(o)}(e)}function d(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,h=u*u,f=Math.sqrt(Math.abs((1-l*l/o)*h)),d=t+(f+c.len2)*i,p=d-c.label.x;
// text x is changed, so need to recalculate width.
Nn(c,c.targetTextWidth-p*i,!0),c.label.x=d}}}
/**
 * Set max width of each label, and then wrap each label to the max width.
 *
 * @param layout label layout
 * @param availableWidth max width for the label to display
 * @param forceRecalculate recaculate the text layout even if the current width
 * is smaller than `availableWidth`. This is useful when the text was previously
 * wrapped by calling `constrainTextWidth` but now `availableWidth` changed, in
 * which case, previous wrapping should be redo.
 */
function Nn(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){var h=a.height;if(l&&l.match("break")){
// Temporarily set background to be null to calculate
// the bounding box without background.
r.setStyle("backgroundColor",null),
// Set constraining width
r.setStyle("width",t-c);
// This is the real bounding box of the text without padding.
var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",o)}else{var d=t-c,p=t<u?d:
// Current available width is enough, but the text may have
// already been wrapped with a smaller available width.
n?d>e.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var g=r.getBoundingRect();a.width=g.width;var m=(r.style.margin||0)+2.1;a.height=g.height+m,a.y-=(a.height-h)/2}}}function Fn(e){
// Not change x for center label
return"center"===e.position}function zn(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*Rn,s=r.getLayout("viewRect"),c=r.getLayout("r"),l=s.width,u=s.x,h=s.y,f=s.height;function d(e){e.ignore=!0}r.each((function(e){var s=r.getItemGraphicEl(e),h=s.shape,f=s.getTextContent(),p=s.getTextGuideLine(),g=r.getItemModel(e),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),b=m.get("alignTo"),w=Object(xt.q)(m.get("edgeDistance"),l),x=m.get("bleedMargin"),C=g.getModel("labelLine"),_=C.get("length");_=Object(xt.q)(_,l);var I=C.get("length2");if(I=Object(xt.q)(I,l),Math.abs(h.endAngle-h.startAngle)<o)return Object(A.each)(f.states,d),f.ignore=!0,void(p&&(Object(A.each)(p.states,d),p.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(f)){var E,k,S,B,M=(h.startAngle+h.endAngle)/2,T=Math.cos(M),O=Math.sin(M);t=h.cx,n=h.cy;var D="inside"===v||"inner"===v;if("center"===v)E=h.cx,k=h.cy,B="center";else{var P=(D?(h.r+h.r0)/2*T:h.r*T)+t,L=(D?(h.r+h.r0)/2*O:h.r*O)+n;if(E=P+3*T,k=L+3*O,!D){
// For roseType
var Q=P+T*(_+c-h.r),R=L+O*(_+c-h.r),j=Q+(T<0?-1:1)*I;
// Adjust textX because text align of edge is opposite
E="edge"===b?T<0?u+w:u+l-w:j+(T<0?-y:y),k=R,S=[[P,L],[Q,R],[j,R]]}B=D?"center":"edge"===b?T>0?"right":"left":T>0?"left":"right"}var N=Math.PI,F=0,z=m.get("rotate");if(Object(A.isNumber)(z))F=z*(N/180);else if("center"===v)F=0;else if("radial"===z||!0===z){F=T<0?-M+N:-M}else if("tangential"===z&&"outside"!==v&&"outer"!==v){var H=Math.atan2(T,O);H<0&&(H=2*N+H),O>0&&(H=N+H),F=H-N}
// Not sectorShape the inside label
if(a=!!F,f.x=E,f.y=k,f.rotation=F,f.setStyle({verticalAlign:"middle"}),D){f.setStyle({align:B});var U=f.states.select;U&&(U.x+=f.x,U.y+=f.y)}else{var G=f.getBoundingRect().clone();G.applyTransform(f.getComputedTransform());
// Text has a default 1px stroke. Exclude this.
var V=(f.style.margin||0)+2.1;G.y-=V/2,G.height+=V,i.push({label:f,labelLine:p,position:v,len:_,len2:I,minTurnAngle:C.get("minTurnAngle"),maxSurfaceAngle:C.get("maxSurfaceAngle"),surfaceNormal:new Pn.a(T,O),linePoints:S,textAlign:B,labelDistance:y,labelAlignTo:b,edgeDistance:w,bleedMargin:x,rect:G,unconstrainedWidth:G.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:D})}})),!a&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<e.length;f++){var d=e[f].label;Fn(e[f])||(d.x<t?(u=Math.min(u,d.x),c.push(e[f])):(h=Math.max(h,d.x),l.push(e[f])))}for(f=0;f<e.length;f++)if(!Fn(m=e[f])&&m.linePoints){if(null!=m.labelStyleWidth)continue;d=m.label;var p=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?d.x<t?p[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-p[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?d.x<t?u-o-m.bleedMargin:o+i-h-m.bleedMargin:d.x<t?d.x-o-m.bleedMargin:o+i-d.x-m.bleedMargin,m.targetTextWidth=g,Nn(m,g)}for(jn(l,t,n,r,1,0,a,0,s,h),jn(c,t,n,r,-1,0,a,0,s,u),f=0;f<e.length;f++){var m;if(!Fn(m=e[f])&&m.linePoints){d=m.label,p=m.linePoints;var v="edge"===m.labelAlignTo,y=d.style.padding,A=y?y[1]+y[3]:0,b=d.style.backgroundColor?0:A,w=m.rect.width+b,x=p[1][0]-p[2][0];v?d.x<t?p[2][0]=o+m.edgeDistance+w+m.labelDistance:p[2][0]=o+i-m.edgeDistance-w-m.labelDistance:(d.x<t?p[2][0]=d.x+m.labelDistance:p[2][0]=d.x-m.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=d.y}}}(i,t,n,c,l,f,u,h);for(var p=0;p<i.length;p++){var g=i[p],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&(Object(A.each)(m.states,d),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(v){var w=g.linePoints;y||!w?(Object(A.each)(v.states,d),v.ignore=!0):(Object(Ln.c)(w,g.minTurnAngle),Object(Ln.b)(w,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:w}),
// Set the anchor to the midpoint of sector
m.__hostTarget.textGuideLineConfig={anchor:new Pn.a(w[0][0],w[0][1])})}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/PieView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Piece of pie including Sector, Label, LabelLine
 */var Hn=/** @class */function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new K.a;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return Object(Re.a)(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel("emphasis"),c=e.getItemLayout(t),l=Object(A.extend)(rn(o.getModel("itemStyle"),c,!0),c);
// Ignore NaN data.
if(isNaN(l.startAngle))
// Use NaN shape to avoid drawing shape.
i.setShape(l);else{if(r){i.setShape(l);var u=a.getShallow("animationType");a.ecModel.ssr?(
// Use scale animation in SSR mode(opacity?)
// Because CSS SVG animation doesn't support very customized shape animation.
Ge.c(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):"scale"===u?(i.shape.r=c.r0,Ge.c(i,{shape:{r:c.r}},a,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Ge.c(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t)):(i.shape.endAngle=c.startAngle,Ge.h(i,{shape:{endAngle:c.endAngle}},a,t))}else Object(Ge.g)(i),
// Transition animation from the old shape
Ge.h(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,"style")),Object(qe.I)(i,o);var h=(c.startAngle+c.endAngle)/2,f=a.get("selectedOffset"),d=Math.cos(h)*f,p=Math.sin(h)*f,g=o.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(a,e,t),i.ensureState("emphasis").shape=Object(A.extend)({r:c.r+(s.get("scale")&&s.get("scaleSize")||0)},rn(s.getModel("itemStyle"),c)),Object(A.extend)(i.ensureState("select"),{x:d,y:p,shape:rn(o.getModel(["select","itemStyle"]),c)}),Object(A.extend)(i.ensureState("blur"),{shape:rn(o.getModel(["blur","itemStyle"]),c)});var m=i.getTextGuideLine(),v=i.getTextContent();m&&Object(A.extend)(m.ensureState("select"),{x:d,y:p}),
// TODO: needs dx, dy in zrender?
Object(A.extend)(v.ensureState("select"),{x:d,y:p}),Object(qe.J)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel("labelLine"),o=t.getItemVisual(n,"style"),s=o&&o.fill,c=o&&o.opacity;Object(Je.g)(r,Object(Je.e)(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var l=r.getTextContent();
// Set textConfig on sector.
r.setTextConfig({
// reset position, rotation
position:null,rotation:null}),
// Make sure update style on labelText after setLabelStyle.
// Because setLabelStyle will replace a new style on it.
l.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Dn.a,this.setTextGuideLine(h)),
// Default use item visual color
Object(Ln.d)(this,Object(Ln.a)(i),{stroke:s,opacity:Object(A.retrieve3)(a.get(["lineStyle","opacity"]),c,1)})}},t}(wt.a),Un=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,s=this.group;
// First render
if(!o&&a.count()>0){for(var c=a.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<a.count();++l)c=a.getItemLayout(l);c&&(i=c.startAngle)}
// remove empty-circle if it exists
// when all data are filtered, show lightgray empty circle
if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")){var u=Tn(e),h=new wt.a({shape:Object(A.extend)(Bn(e,n),u)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}a.diff(o).add((function(e){var t=new Hn(a,e,i);a.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off("click"),s.add(n),a.setItemGraphicEl(e,n)})).remove((function(t){var n=o.getItemGraphicEl(t);Ge.f(n,e,t)})).execute(),zn(e),
// Always use initial animation.
"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type="pie",t}(At.a),Gn=Un,Vn=n("b1d4"),Wn=n("b682");
// Pie view
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * [Usage]:
 * (1)
 * createListSimply(seriesModel, ['value']);
 * (2)
 * createListSimply(seriesModel, {
 *     coordDimensions: ['value'],
 *     dimensionsCount: 5
 * });
 */
function qn(e,t,n){t=Object(A.isArray)(t)&&{coordDimensions:t}||Object(A.extend)({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Object(Vn.b)(r,t).dimensions,a=new Wn.a(i,e);return a.initData(r,n),a}
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/helper/sourceHelper.js
var Yn=n("0f99"),Kn=/** @class */function(){function e(
// Function to get data after filtered. It stores all the encoding info
e,
// Function to get raw data before filtered.
t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();
// We find the name from the raw data. In case it's filtered by the legend component.
// Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.
return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),$n=lt.o(),Jn=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}
/**
   * @overwrite
   */return Object(Re.a)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),
// Enable legend selection for each data item
// Use a function instead of direct access because data reference may changed
this.legendVisualProvider=new Kn(A.bind(this.getData,this),A.bind(this.getRawData,this)),this._defaultLabelLine(t)},
/**
   * @overwrite
   */
t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},
/**
   * @overwrite
   */
t.prototype.getInitialData=function(){return qn(this,{coordDimensions:["value"],encodeDefaulter:A.curry(Yn.d,this)})},
/**
   * @overwrite
   */
t.prototype.getDataParams=function(t){var n=this.getData(),r=$n(n),i=r.seats;
// update seats when data is changed
if(!i){var a=[];n.each(n.mapDimension("value"),(function(e){a.push(e)})),i=r.seats=Object(xt.e)(a,n.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);
// seats may be empty when sum is 0
return o.percent=i[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){
// Extend labelLine emphasis
lt.f(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;
// Not show label line if `label.normal.show = false`
t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={
// zlevel: 0,
z:2,legendHoverLink:!0,colorBy:"data",
// 默认全局居中
center:["50%","50%"],radius:[0,"75%"],
// 默认顺时针
clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,
// 最小角度改为0
minAngle:0,
// If the angle of a sector less than `minShowLabelAngle`,
// the label will not be displayed.
minShowLabelAngle:0,
// 选中时扇区偏移量
selectedOffset:10,
// 选择模式，默认关闭，可选single，multiple
// selectedMode: false,
// 南丁格尔玫瑰图模式，'radius'（半径） | 'area'（面积）
// roseType: null,
percentPrecision:2,
// If still show when all data zero.
stillShowZeroSum:!0,
// cursor: null,
left:0,top:0,right:0,bottom:0,width:null,height:null,label:{
// color: 'inherit',
// If rotate around circle
rotate:0,show:!0,overflow:"truncate",
// 'outer', 'inside', 'center'
position:"outer",
// 'none', 'labelLine', 'edge'. Works only when position is 'outer'
alignTo:"none",
// Closest distance between label and chart edge.
// Works only position is 'outer' and alignTo is 'edge'.
edgeDistance:"25%",
// Works only position is 'outer' and alignTo is not 'edge'.
bleedMargin:10,
// Distance between text and label line.
distanceToLabelLine:5},
// Enabled when label.normal.position is 'outer'
labelLine:{show:!0,
// 引导线两段中的第一段长度
length:15,
// 引导线两段中的第二段长度
length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{
// color: 各异,
width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{
// Hide the overlapped label.
hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},
// If use strategy to avoid label overlapping
avoidLabelOverlap:!0,
// Animation type. Valid values: expansion, scale
animationType:"expansion",animationDuration:1e3,
// Animation type when update. Valid values: transition, expansion
animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ne.b),Xn=Jn;
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/LegendVisualProvider.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * LegendVisualProvider is an bridge that pick encoded color from data and
 * provide to the legend component.
 */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/scatter/ScatterSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Zn=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){return Object(je.a)(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){
// Each progressive series has individual key.
return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",
// zlevel: 0,
z:2,legendHoverLink:!0,symbolSize:10,
// symbolRotate: null,  // 图形旋转控制
large:!1,
// Available when large is true
largeThreshold:2e3,
// cursor: null,
itemStyle:{opacity:.8},emphasis:{scale:!0},
// If clip the overflow graphics
// Works on cartesian / polar series
clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ne.b),er=Zn,tr=n("9850"),nr=function(){},rr=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new nr},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,a=this.symbolProxy,o=a.shape,s=e.getContext?e.getContext():e,c=s&&i[0]<4,l=this.softClipShape;
// Do draw in afterBrush.
if(c)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var u=r[n++],h=r[n++];isNaN(u)||isNaN(h)||(l&&!l.contain(u,h)||(o.x=u-i[0]/2,o.y=h-i[1]/2,o.width=i[0],o.height=i[1],a.buildPath(e,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,i=this._ctx,a=this.softClipShape;if(i){
// PENDING If style or other canvas status changed?
for(e=this._off;e<n.length;){var o=n[e++],s=n[e++];isNaN(o)||isNaN(s)||(a&&!a.contain(o,s)||
// fillRect is faster than building a rect path and draw.
// And it support light globalCompositeOperation.
i.fillRect(o-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){
// Not consider transform
// Treat each element as a rect
// top down traverse
for(
// TODO ???
// Consider transform
var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=2*s,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){
// Ignore stroke for large symbol draw.
var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var h=n[u++],f=n[u++];o=Math.min(h,o),c=Math.max(h,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new tr.a(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(s.b),ir=/** @class */function(){function e(){this.group=new ze.a}
/**
   * Update symbols draw by new data
   */return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),
// Reset draw cursor.
e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),a=r&&r.shape.points;
// Merging the exists. Each element has 1e4 points.
// Consider the performance balance between too much elements and too much points in one shape(may affect hover optimization)
if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);
// Concat two array
s.set(a),s.set(i,o),
// Update endIndex
r.endIndex=e.end,r.setShape({points:s})}else{
// Clear
this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new rr({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,
// Create symbolProxy to build path for each data
e.symbolProxy=Object(Fe.a)(t.getVisual("symbol"),0,0,0,0),
// Use symbolProxy setColor method
e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<4;e.useStyle(
// Draw shadow when doing fillRect is extremely slow.
r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=t.getVisual("style"),s=o&&o.fill;s&&e.setColor(s);var c=Object(We.a)(e);
// Enable tooltip
// PENDING May have performance issue when path is extremely large
c.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(
// Provide dataIndex for tooltip
c.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),ar=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{
// TODO
// If this parameter should be a shape or a bounding volume
// shape will be more general.
// But bounding volume like bounding rect will be much faster in the contain calculation
clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();
// Must mark group dirty and make sure the incremental layer will be cleared
// PENDING
if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=zt("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;
// PENDING make `0.1` configurable, for example, `clipTolerance`?
return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new ir:new rt,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(At.a),or=ar,sr=n("b12f"),cr=n("6cb7"),lr=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,
// zlevel: 0,
z:0,left:"10%",top:60,right:"10%",bottom:70,
// If grid size contain label
containLabel:!1,
// width: {totalWidth} - left - right,
// height: {totalHeight} - top - bottom,
backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(cr.a),ur=lr,hr=n("2023"),fr=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",lt.b).models[0]},t.type="cartesian2dAxis",t}(cr.a);
/* harmony default export */A.mixin(fr,hr.a);
/* harmony default export */var dr={show:!0,
// zlevel: 0,
z:0,
// Inverse the axis.
inverse:!1,
// Axis name displayed.
name:"",
// 'start' | 'middle' | 'end'
nameLocation:"end",
// By degree. By default auto rotate by nameLocation.
nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},
// Use global text style by default.
nameTextStyle:{},
// The gap between axisName and axisLine.
nameGap:15,
// Default `false` to support tooltip.
silent:!1,
// Default `false` to avoid legacy user event listener fail.
triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},
// The arrow at both ends the the axis.
symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,
// Whether axisTick is inside the grid or outside the grid.
inside:!1,
// The length of axisTick.
length:5,lineStyle:{width:1}},axisLabel:{show:!0,
// Whether axisLabel is inside the grid or outside the grid.
inside:!1,rotate:0,
// true | false | null/undefined (auto)
showMinLabel:null,
// true | false | null/undefined (auto)
showMaxLabel:null,margin:8,
// formatter: null,
fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},pr=A.merge({
// The gap at both ends of the axis. For categoryAxis, boolean.
boundaryGap:!0,
// Set false to faster category collection.
deduplication:null,
// splitArea: {
// show: false
// },
splitLine:{show:!1},axisTick:{
// If tick is align with label when boundaryGap is true
alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dr),gr=A.merge({boundaryGap:[0,0],axisLine:{
// Not shown when other axis is categoryAxis in cartesian
show:"auto"},axisTick:{
// Not shown when other axis is categoryAxis in cartesian
show:"auto"},
// TODO
// min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]
splitNumber:5,minorTick:{
// Minor tick, not available for cateogry axis.
show:!1,
// Split number of minor ticks. The value should be in range of (0, 100)
splitNumber:5,
// Length of minor tick
length:3,
// Line style
lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},dr),mr={category:pr,value:gr,time:A.merge({splitNumber:6,axisLabel:{
// To eliminate labels that are not nice
showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gr),log:A.defaults({logBase:10},gr)},vr=n("8e43"),yr={value:1,category:1,time:1,log:1};
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisDefault.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisModelCreator.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Generate sub axis model class
 * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...
 */
function Ar(e,t,n,r){Object(A.each)(yr,(function(i,a){var o=Object(A.merge)(Object(A.merge)({},mr[a],!0),r,!0),s=/** @class */function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return Object(Re.a)(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(In.d)(this),r=n?Object(In.f)(e):{},i=t.getTheme();Object(A.merge)(e,i.get(a+"Axis")),Object(A.merge)(e,this.getDefaultOption()),e.type=br(e),n&&Object(In.h)(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=vr.a.createByAxisModel(this))},
/**
       * Should not be called before all of 'getInitailData' finished.
       * Because categories are collected during initializing data.
       */
n.prototype.getCategories=function(e){var t=this.option;
// FIXME
// warning if called before all of 'getInitailData' finished.
if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",br)}function br(e){
// Default axis with data is category axis
return e.type||(e.data?"category":"value")}
// EXTERNAL MODULE: ./node_modules/echarts/lib/coord/axisHelper.js + 1 modules
var wr=n("697e"),xr=/** @class */function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return A.map(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),A.filter(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Cr=n("1687"),_r=n("401b"),Ir=["x","y"];
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/Cartesian.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Er(e){return"interval"===e.type||"time"===e.type}var kr=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Ir,t}
/**
   * Calculate an affine transform matrix if two axes are time or value.
   * It's mainly for accelartion on the large time series data.
   */return Object(Re.a)(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(Er(e)&&Er(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){
// Accelerate data to point calculation on the special large time series data.
var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,h=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,h];this._invTransform=Object(Cr.invert)([],f)}}},
/**
   * Base axis will be used on stacking.
   */
t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new tr.a(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];
// Fast path
if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(_r.applyTransform)(n,e,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Object(_r.applyTransform)(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},
/**
   * Get rect area of cartesian.
   * Area will have a contain function to determine if a point is in the coordinate system.
   */
t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,a=Math.max(t[0],t[1])-r+e,o=Math.max(n[0],n[1])-i+e;return new tr.a(r,i,a,o)},t}(xr),Sr=kr,Br=n("84ce"),Mr=/** @class */function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;
/**
     * Index of axis, can be used as key
     * Injected outside.
     */return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return Object(Re.a)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},
/**
   * Each item cooresponds to this.getExtent(), which
   * means globalExtent[0] may greater than globalExtent[1],
   * unless `asc` is input.
   *
   * @param {boolean} [asc]
   * @return {Array.<number>}
   */
t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},
/**
   * Set ordinalSortInfo
   * @param info new OrdinalSortInfo
   */
t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Br.a),Tr=Mr;
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Can only be called after coordinate system creation stage.
 * (Can be called before coordinate system update stage).
 */
function Or(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,c=o?"onZero":s,l=i.dim,u=r.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,p="x"===l?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}
// Axis position
a.position=["y"===l?p[f[c]]:h[0],"x"===l?p[f[c]]:h[3]],
// Axis rotation
a.rotation=Math.PI/2*("x"===l?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?p[f[s]]-p[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),A.retrieve(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);
// Special label rotation
var m=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===c?-m:m,
// Over splitLine and splitArea
a.z2=1,a}function Dr(e){return"cartesian2d"===e.get("coordinateSystem")}function Pr(e){var t={xAxisModel:null,yAxisModel:null};return A.each(t,(function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,lt.b).models[0];t[r]=a})),t}
// EXTERNAL MODULE: ./node_modules/echarts/lib/scale/helper.js
var Lr=n("944e"),Qr=n("89e3"),Rr=Math.log;
// EXTERNAL MODULE: ./node_modules/echarts/lib/scale/Interval.js
function jr(e,t,n){var r=Qr.a.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),c=Object(wr.f)(e,t),l=c.extent,u=c.fixMin,h=c.fixMax;
// NOTE: There is a precondition for log scale  here:
// In log scale we store _interval and _extent of exponent value.
// So if we use the method of InternalScale to set/get these data.
// It process the exponent value, which is linear and what we want here.
if("log"===e.type){var f=Rr(e.base);l=[Rr(l[0])/f,Rr(l[1])/f]}e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:h});var d=r.getExtent.call(e);
// Need to update the rawExtent.
// Because value in rawExtent may be not parsed. e.g. 'dataMin', 'dataMax'
u&&(l[0]=d[0]),h&&(l[1]=d[1]);var p=r.getInterval.call(e),g=l[0],m=l[1];if(u&&h)
// User set min, max, divide to get new interval
p=(m-g)/o;else if(u)
// User set min, expand extent on the other side
for(m=l[0]+p*o;m<l[1]&&isFinite(m)&&isFinite(l[1]);)p=Object(Lr.c)(p),m=l[0]+p*o;else if(h)for(
// User set max, expand extent on the other side
g=l[1]-p*o;g>l[0]&&isFinite(g)&&isFinite(l[0]);)p=Object(Lr.c)(p),g=l[1]-p*o;else{e.getTicks().length-1>o&&(p=Object(Lr.c)(p));var v=p*o;m=Math.ceil(l[1]/p)*p,
// Not change the result that crossing zero.
(g=Object(xt.w)(m-v))<0&&l[0]>=0?(g=0,m=Object(xt.w)(v)):m>0&&l[1]<=0&&(m=0,g=-Object(xt.w)(v))}
// Adjust min, max based on the extent of alignTo. When min or max is set in alignTo scale
var y=(i[0].value-a[0].value)/s,A=(i[o].value-a[o].value)/s;
// NOTE: Must in setExtent -> setInterval -> setNiceExtent order.
r.setExtent.call(e,g+p*y,m+p*A),r.setInterval.call(e,p),(y||A)&&r.setNiceExtent.call(e,g+p,m-p)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/Grid.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Grid is a region which contains at most 4 cartesian systems
 *
 * TODO Default cartesian
 */
/**
 * Check if the axis is used in the specified grid.
 */
function Nr(e,t){return e.getCoordSysModel()===t}function Fr(e,t,n,
// Key: see `getOnZeroRecordKey`
r){n.getAxesOnZeroOf=function(){
// TODO: onZero of multiple axes.
return i?[i]:[]};
// onZero can not be enabled in these two situations:
// 1. When any other axis is a category axis.
// 2. When no axis is cross 0 point.
var i,a=e[t],o=n.model,s=o.get(["axisLine","onZero"]),c=o.get(["axisLine","onZeroAxisIndex"]);if(s){
// If target axis is specified.
if(null!=c)zr(a[c])&&(i=a[c]);else
// Find the first available other axis.
for(var l in a)if(a.hasOwnProperty(l)&&zr(a[l])&&!r[u(a[l])]){i=a[l];break}i&&(r[u(i)]=!0)}function u(e){return e.dim+"_"+e.index}}function zr(e){return e&&"category"!==e.type&&"time"!==e.type&&Object(wr.g)(e)}
/* harmony default export */var Hr=/** @class */function(){function e(e,t,n){
// FIXME:TS where used (different from registered type 'cartesian2d')?
this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ir,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(A.keys)(e),r=n.length;
// Axis is added in order of axisIndex.
if(r){
// Process once and calculate the ticks for those don't use alignTicks.
for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;// Convert to number.
// Only value and log axis without interval support alignTicks.
Object(Lr.e)(c)&&s.get("alignTicks")&&null==s.get("interval")?i.push(o):(Object(wr.i)(c,s),Object(Lr.e)(c)&&(
// Can only align to interval or log axis.
t=o))}
// All axes has set alignTicks. Pick the first one.
// PENDING. Should we find the axis that both set interval, min, max and align to this one?
i.length&&(t||(t=i.pop(),Object(wr.i)(t.scale,t.model)),Object(A.each)(i,(function(e){jr(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);
// Key: axisDim_axisIndex, value: boolean, whether onZero target.
var i={};Object(A.each)(n.x,(function(e){Fr(n,"y",e,i)})),Object(A.each)(n.y,(function(e){Fr(n,"x",e,i)})),
// Resize again if containLabel is enabled
// FIXME It may cause getting wrong grid size in data processing stage
this.resize(this.model,t)},
/**
   * Resize the grid
   */
e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),a=Object(In.g)(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function s(){Object(A.each)(o,(function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];
// Fast transform
e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?a.x:a.y)}))}s(),
// Minus label size
i&&(Object(A.each)(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Object(wr.b)(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);a[n]-=t[n]+r,"top"===e.position?a.y+=t.height+r:"left"===e.position&&(a.x+=t.width+r)}}})),s()),Object(A.each)(this._coordsList,(function(e){
// Calculate affine matrix to accelerate the data to point transform.
// If all the axes scales are time or value.
e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(A.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},
/**
   * @implements
   */
e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},
/**
   * @implements
   */
e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",lt.b).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",lt.b).models[0],o=e.gridModel,s=this._coordsList;if(r)t=r.coordinateSystem,Object(A.indexOf)(s,t)<0&&(t=null);else if(i&&a)t=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){o.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},
/**
   * @implements
   */
e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},
/**
   * Initialize cartesian coordinate systems
   */
e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(
// Create axis
t.eachComponent("xAxis",c("x"),this),t.eachComponent("yAxis",c("y"),this),!s.x||!s.y)
// Roll back when there no either x or y axis
return this._axesMap={},void(this._axesList=[]);function c(t){return function(n,r){if(Nr(n,e)){var c=n.get("position");"x"===t?
// Fix position
"top"!==c&&"bottom"!==c&&(
// Default bottom of X
c=a.bottom?"top":"bottom"):
// Fix position
"left"!==c&&"right"!==c&&(
// Default left of Y
c=a.left?"right":"left"),a[c]=!0;var l=new Tr(t,Object(wr.a)(n),[0,0],n.get("type"),c),u="category"===l.type;l.onBand=u&&n.get("boundaryGap"),l.inverse=n.get("inverse"),
// Inject axis into axisModel
n.axis=l,
// Inject axisModel into axis
l.model=n,
// Inject grid info axis
l.grid=i,
// Index of axis, can be used as key
l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}this._axesMap=o,
// Create cartesian2d
Object(A.each)(o.x,(function(t,n){Object(A.each)(o.y,(function(i,a){var o="x"+n+"y"+a,s=new Sr(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},
/**
   * Update cartesian properties from series.
   */
e.prototype._updateScale=function(e,t){function n(e,t){Object(A.each)(Object(wr.d)(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}
// Reset scale
Object(A.each)(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(Dr(e)){var r=Pr(e),i=r.xAxisModel,a=r.yAxisModel;if(!Nr(i,t)||!Nr(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis("x"),l=o.getAxis("y");n(s,c),n(s,l)}}),this)},
/**
   * @param dim 'x' or 'y' or 'auto' or null/undefined
   */
e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(A.each)(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Object(A.indexOf)(t,i)<0&&t.push(i),Object(A.indexOf)(n,a)<0&&n.push(a)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,a){var o=new e(i,t,n);o.name="grid_"+a,
// dataSampling requires axis extent, so resize
// should be performed in create stage.
o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)})),
// Inject the coordinateSystems into seriesModel
t.eachSeries((function(e){if(Dr(e)){var t=Pr(e),n=t.xAxisModel,r=t.yAxisModel;0;var i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},
// For deciding which dimensions to use when creating list data
e.dimensions=Ir,e}(),Ur=n("cb11"),Gr=n("4319"),Vr=Math.PI,Wr=/** @class */function(){function e(e,t){this.group=new ze.a,this.opt=t,this.axisModel=e,
// Default value
Object(A.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});
// FIXME Not use a separate text group?
var n=new ze.a({x:t.position[0],y:t.position[1],rotation:t.rotation});
// this.group.add(transformGroup);
// this._transformGroup = transformGroup;
n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!qr[e]},e.prototype.add=function(e){qr[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,a=Object(xt.v)(t-e);return Object(xt.l)(a)?(
// Label is parallel with axis line.
i=n>0?"top":"bottom",r="center"):Object(xt.l)(a-Vr)?(
// Label is inverse parallel with axis line.
i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<Vr?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),qr={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],c=[a[1],0],l=s[0]>c[0];o&&(Object(_r.applyTransform)(s,s,o),Object(_r.applyTransform)(c,c,o));var u=Object(A.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ur.a({shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Ve.subPixelOptimizeLine(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=t.get(["axisLine","symbol"]);if(null!=f){var d=t.get(["axisLine","symbolSize"]);Object(A.isString)(f)&&(
// Use the same arrow for start and end point
f=[f,f]),(Object(A.isString)(d)||Object(A.isNumber)(d))&&(
// Use the same size for width and height
d=[d,d]);var p=Object(Fe.b)(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],m=d[1];Object(A.each)([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-c[0])*(s[0]-c[0])+(s[1]-c[1])*(s[1]-c[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=Object(Fe.a)(f[r],-g/2,-m/2,g,m,u.stroke,!0),a=t.r+t.offset,o=l?c:s;
// Calculate arrow position with offset
i.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");"auto"===o&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick"));if(!o||i.scale.isBlank())return;for(var s=a.getModel("lineStyle"),c=r.tickDirection*a.get("length"),l=Jr(i.getTicksCoords(),t.transform,c,Object(A.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<l.length;u++)e.add(l[u]);return l}(n,r,t,e),a=function(e,t,n,r){var i=n.axis,a=Object(A.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]));if(!a||i.scale.isBlank())return;var o=n.getModel("axisLabel"),s=o.get("margin"),c=i.getViewLabels(),l=(Object(A.retrieve)(r.labelRotate,o.get("rotate"))||0)*Vr/180,u=Wr.innerTextLayout(r.rotation,l,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],d=Wr.isLabelSilent(n),p=n.get("triggerEvent");return Object(A.each)(c,(function(a,l){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,m=a.formattedLabel,v=a.rawLabel,y=o;if(h&&h[g]){var b=h[g];Object(A.isObject)(b)&&b.textStyle&&(y=new Gr.a(b.textStyle,o,n.ecModel))}var w=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(g),C=y.getShallow("align",!0)||u.textAlign,_=Object(A.retrieve2)(y.getShallow("alignMinLabel",!0),C),I=Object(A.retrieve2)(y.getShallow("alignMaxLabel",!0),C),E=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,k=Object(A.retrieve2)(y.getShallow("verticalAlignMinLabel",!0),E),S=Object(A.retrieve2)(y.getShallow("verticalAlignMaxLabel",!0),E),B=new K.a({x:x,y:r.labelOffset+r.labelDirection*s,rotation:u.rotation,silent:d,z2:10+(a.level||0),style:Object(Je.c)(y,{text:m,align:0===l?_:l===c.length-1?I:C,verticalAlign:0===l?k:l===c.length-1?S:E,fill:Object(A.isFunction)(w)?w(
// (1) In category axis with data zoom, tick is not the original
// index of axis.data. So tick should not be exposed to user
// in category axis.
// (2) Compatible with previous version, which always use formatted label as
// input. But in interval scale the formatted label is like '223,445', which
// maked user replace ','. So we modify it to return original val but remain
// it as 'string' to avoid error in replacing.
"category"===i.type?v:"value"===i.type?g+"":g,l):w})});
// Pack data for mouse event
if(B.anid="label_"+g,Ve.setTooltipConfig({el:B,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:v,tickIndex:l}}),p){var M=Wr.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=v,M.tickIndex=l,"category"===i.type&&(M.dataIndex=g),Object(We.a)(B).eventData=M}
// FIXME
t.add(B),B.updateTransform(),f.push(B),e.add(B),B.decomposeTransform()})),f}
/* harmony default export */(n,r,t,e);
// This bit fixes the label overlap issue for the time chart.
// See https://github.com/apache/echarts/issues/14266 for more.
if(function(e,t,n){if(Object(wr.j)(e.axis))return;
// If min or max are user set, we need to check
// If the tick on min(max) are overlap on their neighbour tick
// If they are overlapped, we need to hide the min(max) tick label
var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);
// FIXME
// Have not consider onBand yet, where tick els is more than label els.
t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],c=t[t.length-2],l=n[0],u=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(Yr(a),Yr(l)):Kr(a,o)&&(r?(Yr(o),Yr(u)):(Yr(a),Yr(l)));!1===i?(Yr(s),Yr(h)):Kr(c,s)&&(i?(Yr(c),Yr(f)):(Yr(s),Yr(h)))}(t,a,i),function(e,t,n,r){var i=n.axis,a=n.getModel("minorTick");if(!a.get("show")||i.scale.isBlank())return;var o=i.getMinorTicksCoords();if(!o.length)return;for(var s=a.getModel("lineStyle"),c=r*a.get("length"),l=Object(A.defaults)(s.getLineStyle(),Object(A.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<o.length;u++)for(var h=Jr(o[u],t.transform,c,l,"minorticks_"+u),f=0;f<h.length;f++)e.add(h[f])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Object(Qn.b)(Object(A.map)(a,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));Object(Qn.a)(o)}},axisName:function(e,t,n,r){var i=Object(A.retrieve)(e.axisName,t.get("name"));if(i){var a,o,s=t.get("nameLocation"),c=e.nameDirection,l=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,h=t.axis.getExtent(),f=h[0]>h[1]?-1:1,d=["start"===s?h[0]-f*u:"end"===s?h[1]+f*u:(h[0]+h[1])/2,
// Reuse labelOffset.
$r(s)?e.labelOffset+c*u:0],p=t.get("nameRotate");null!=p&&(p=p*Vr/180),$r(s)?a=Wr.innerTextLayout(e.rotation,null!=p?p:e.rotation,
// Adapt to axis.
c):(a=function(e,t,n,r){var i,a,o=Object(xt.v)(n-e),s=r[0]>r[1],c="start"===t&&!s||"start"!==t&&s;Object(xt.l)(o-Vr/2)?(a=c?"bottom":"top",i="center"):Object(xt.l)(o-1.5*Vr)?(a=c?"top":"bottom",i="center"):(a="middle",i=o<1.5*Vr&&o>Vr/2?c?"left":"right":c?"right":"left");return{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,s,p||0,h),null!=(o=e.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var g=l.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=Object(A.retrieve)(e.nameTruncateMaxWidth,m.maxWidth,o),b=new K.a({x:d[0],y:d[1],rotation:a.rotation,silent:Wr.isLabelSilent(t),style:Object(Je.c)(l,{text:i,font:g,overflow:"truncate",width:y,ellipsis:v,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||a.textAlign,verticalAlign:l.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(Ve.setTooltipConfig({el:b,componentModel:t,itemName:i}),b.__fullText=i,
// Id for animation
b.anid="name",t.get("triggerEvent")){var w=Wr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Object(We.a)(b).eventData=w}
// FIXME
r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/shape/Line.js
function Yr(e){e&&(e.ignore=!0)}function Kr(e,t){
// current and next has the same rotation.
var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){
// When checking intersect of two rotated labels, we use mRotationBack
// to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.
var i=Cr.identity([]);return Cr.rotate(i,i,-e.rotation),n.applyTransform(Cr.mul([],i,e.getLocalTransform())),r.applyTransform(Cr.mul([],i,t.getLocalTransform())),n.intersect(r)}}function $r(e){return"middle"===e||"center"===e}function Jr(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Object(_r.applyTransform)(o,o,t),Object(_r.applyTransform)(s,s,t));
// Tick line, Not use group transform to have better line draw
var u=new Ur.a({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ve.subPixelOptimizeLine(u.shape,u.style.lineWidth),u.anid=i+"_"+e[c].tickValue,a.push(u)}return a}var Xr=Wr;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/modelHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Build axisPointerModel, mergin tooltip.axisPointer model for each axis.
// allAxesInfo should be updated when setOption performed.
function Zr(e,t){var n={
/**
     * key: makeKey(axis.model)
     * value: {
     *      axis,
     *      coordSys,
     *      axisPointerModel,
     *      triggerTooltip,
     *      triggerEmphasis,
     *      involveSeries,
     *      snap,
     *      seriesModels,
     *      seriesDataCount
     * }
     */
axesInfo:{},seriesInvolved:!1,
/**
     * key: makeKey(coordSys.model)
     * value: Object: key makeKey(axis.model), value: axisInfo
     */
coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];
// Collect axes info.
Object(A.each)(n.getCoordinateSystems(),(function(n){
// Some coordinate system do not support axes, like geo.
if(n.axisPointerEnabled){var s=ri(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;
// Set tooltip (like 'cross') is a convenient way to show axisPointer
// for user. So we enable setting tooltip on coordSys model.
var l=n.model.getModel("tooltip",r);
// If axis tooltip used, choose tooltip axis for each coordSys.
// Notice this case: coordSys is `grid` but not `cartesian2D` here.
if(Object(A.each)(n.getAxes(),Object(A.curry)(d,!1,null)),n.getTooltipAxes&&r&&l.get("show")){
// Compatible with previous logic. But series.tooltip.trigger: 'axis'
// or series.data[n].tooltip.trigger: 'axis' are not support any more.
var u="axis"===l.get("trigger"),h="cross"===l.get(["axisPointer","type"]),f=n.getTooltipAxes(l.get(["axisPointer","axis"]));(u||h)&&Object(A.each)(f.baseAxes,Object(A.curry)(d,!h||"cross",u)),h&&Object(A.each)(f.otherAxes,Object(A.curry)(d,"cross",!1))}
// fromTooltip: true | false | 'cross'
// triggerTooltip: true | false | null
}function d(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||ni(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(e,t,n,r,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],c={};
// Compatible with previous behavior, tooltip axis does not show label by default.
// Only these properties can be overridden from tooltip to axisPointer.
Object(A.each)(s,(function(e){c[e]=Object(A.clone)(o.get(e))})),
// category axis do not auto snap, otherwise some tick that do not
// has value can not be hovered. value/time/log axis default snap if
// triggered from tooltip and trigger tooltip.
c.snap="category"!==e.type&&!!a,"cross"===o.get("type")&&(c.type="line");var l=c.label||(c.label={});
// Follow the convention, do not show label when triggered by tooltip by default.
if(null==l.show&&(l.show=!1),"cross"===i){
// When 'cross', both axes show labels.
var u=o.get(["label","show"]);
// If triggerTooltip, this is a base axis, which should better not use cross style
// (cross style is dashed by default)
if(l.show=null==u||u,!a){var h=c.lineStyle=o.get("crossStyle");h&&Object(A.defaults)(l,h.textStyle)}}return e.model.getModel("axisPointer",new Gr.a(c,n,r))}(u,l,i,t,r,s):h;var d=h.get("snap"),p=h.get("triggerEmphasis"),g=ri(u.model),m=s||d||"category"===u.type,v=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:p,involveSeries:m,snap:d,useHandle:ni(h),seriesModels:[],linkGroup:null};c[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=
/**
 * For example:
 * {
 *     axisPointer: {
 *         links: [{
 *             xAxisIndex: [2, 4],
 *             yAxisIndex: 'all'
 *         }, {
 *             xAxisId: ['a5', 'a7'],
 *             xAxisName: 'xxx'
 *         }]
 *     }
 * }
 */
function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(ei(a[r+"AxisId"],n.id)||ei(a[r+"AxisIndex"],n.componentIndex)||ei(a[r+"AxisName"],n.name))return i}}(a,u);if(null!=y){var b=o[y]||(o[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=a[y].mapper,v.linkGroup=b}}}}))}(n,e,t),
// Check seriesInvolved for performance, in case too many series in some chart.
n.seriesInvolved&&function(e,t){
// Prepare data for axis trigger
t.eachSeries((function(t){
// Notice this case: this coordSys is `cartesian2D` but not `grid`.
var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(A.each)(e.coordSysAxesInfo[ri(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function ei(e,t){return"all"===e||Object(A.isArray)(e)&&Object(A.indexOf)(e,t)>=0||e===t}function ti(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ri(e)]}function ni(e){return!!e.get(["handle","show"])}
/**
 * @param {module:echarts/model/Model} model
 * @return {string} unique key
 */function ri(e){return e.type+"||"+e.id}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/AxisView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var ii={},ai=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.render=function(t,n,r,i){
// FIXME
// This process should proformed after coordinate systems updated
// (axis scale updated), and should be performed each time update.
// So put it here temporarily, although it is not appropriate to
// put a model-writing procedure in `view`.
this.axisPointerClass&&function(e){var t=ti(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");
// Parse init value for category and time axis.
null!=o&&(o=r.parse(o));var s=ni(n);
// If `handle` used, `axisPointer` will always be displayed, so value
// and status should be initialized.
null==a&&(i.status=s?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(
// Pick a value on axis when initializing.
null==o||o>c[1])&&(
// Make handle displayed on the end of the axis when init, which looks better.
o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},
/**
   * Action handler.
   */
t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},
/**
   * @override
   */
t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},
/**
   * @override
   */
t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=function(e){var t=ti(e);return t&&t.axisPointerModel}(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){ii[e]=t},t.getAxisPointerClass=function(e){return e&&ii[e]},t.type="axis",t}(sr.a),oi=ai,si=Object(lt.o)();
/**
 * Base class of AxisView.
 */function ci(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){
// TODO: TYPE
var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0});if(l.length){
// For Making appropriate splitArea animation, the color and anid
// should be corresponding to previous one if possible.
var u=s.length,h=si(e).splitAreaColors,f=A.createHashMap(),d=0;if(h)for(var p=0;p<l.length;p++){var g=h.get(l[p].tickValue);if(null!=g){d=(g+(u-1)*p)%u;break}}var m=i.toGlobalCoord(l[0].coord),v=o.getAreaStyle();s=A.isArray(s)?s:[s];for(p=1;p<l.length;p++){var y=i.toGlobalCoord(l[p].coord),b=void 0,w=void 0,x=void 0,C=void 0;i.isHorizontal()?(b=m,w=c.y,x=y-b,C=c.height,m=b+x):(b=c.x,w=m,x=c.width,m=w+(C=y-w));var _=l[p-1].tickValue;null!=_&&f.set(_,d),t.add(new bt.a({anid:null!=_?"area_"+_:null,shape:{x:b,y:w,width:x,height:C},style:A.defaults({fill:s[d]},v),autoBatch:!0,silent:!0})),d=(d+1)%u}si(e).splitAreaColors=f}}}function li(e){si(e).splitAreaColors=null}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/CartesianAxisView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var ui=["axisLine","axisTickLabel","axisName"],hi=["splitArea","splitLine","minorSplitLine"],fi=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ze.a,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),s=Or(o,t),c=new Xr(t,A.extend({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Object(Lr.e)(n[r].getOtherAxis(t.axis).scale))
// Still show axis tick or axisLine if other axis is value / log
return!0;
// Not show axisTick or axisLine if other axis is category / time
return!1}},s));A.each(ui,c.add,c),this._axisGroup.add(c.getGroup()),A.each(hi,(function(e){t.get([e,"show"])&&di[e](this,this._axisGroup,t,o)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Ve.groupTransition(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){li(this)},t.type="cartesianAxis",t}(oi),di={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),c=!1!==a.get("showMinLine"),l=!1!==a.get("showMaxLine");s=A.isArray(s)?s:[s];for(var u=r.coordinateSystem.getRect(),h=i.isHorizontal(),f=0,d=i.getTicksCoords({tickModel:a}),p=[],g=[],m=o.getLineStyle(),v=0;v<d.length;v++){var y=i.toGlobalCoord(d[v].coord);if((0!==v||c)&&(v!==d.length-1||l)){var b=d[v].tickValue;h?(p[0]=y,p[1]=u.y,g[0]=y,g[1]=u.y+u.height):(p[0]=u.x,p[1]=y,g[0]=u.x+u.width,g[1]=y);var w=f++%s.length,x=new Ur.a({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:A.defaults({stroke:s[w]},m),silent:!0});Ve.subPixelOptimizeLine(x.shape,m.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),o=r.coordinateSystem.getRect(),s=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var l=[],u=[],h=a.getLineStyle(),f=0;f<c.length;f++)for(var d=0;d<c[f].length;d++){var p=i.toGlobalCoord(c[f][d].coord);s?(l[0]=p,l[1]=o.y,u[0]=p,u[1]=o.y+o.height):(l[0]=o.x,l[1]=p,u[0]=o.x+o.width,u[1]=p);var g=new Ur.a({anid:"minor_line_"+c[f][d].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0});Ve.subPixelOptimizeLine(g.shape,h.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){ci(e,t,n,r)}},pi=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="xAxis",t}(fi),gi=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=pi.type,t}return Object(Re.a)(t,e),t.type="yAxis",t}(fi),mi=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(Re.a)(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new bt.a({shape:e.coordinateSystem.getRect(),style:Object(A.defaults)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(sr.a),vi={
// gridIndex: 0,
// gridId: '',
offset:0};function yi(e){e.registerComponentView(mi),e.registerComponentModel(ur),e.registerCoordinateSystem("cartesian2d",Hr),Ar(e,"x",fr,vi),Ar(e,"y",fr,vi),e.registerComponentView(pi),e.registerComponentView(gi),e.registerPreprocessor((function(e){
// Only create grid when need
e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/scatter/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/radarLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Ai(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();A.each(i,(function(e,a){t.each(t.mapDimension(i[a].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=bi(i)?i:wi(r)}))})),
// Close polygon
t.each((function(e){
// TODO
// Is it appropriate to connect to the next data when some data is missing?
// Or, should trade it like `connectNull` in line chart?
var i=A.find(n[e],(function(e){return bi(e)}))||wi(r);
// Copy the first actual point to the end of the array
n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function bi(e){return!isNaN(e[0])&&!isNaN(e[1])}function wi(e){
// It is error-prone to input [NaN, NaN] into polygon, polygon.
// (probably cause problem when refreshing or animating)
return[e.cx,e.cy]}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/backwardCompat.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck
// Backward compat for radar chart in 2
function xi(e){var t=e.polar;if(t){A.isArray(t)||(t=[t]);var n=[];A.each(t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],A.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}A.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/shape/Polygon.js
var Ci=n("87b1"),_i=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=Fe.c(e.getItemVisual(t,"symbolSize")),i=Fe.a(n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function l(t,n,r,i,a,o){
// Simply rerender all
r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),Ve[o?"initProps":"updateProps"](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function u(e){return A.map(e,(function(e){return[r.cx,r.cy]}))}a.diff(o).add((function(t){var n=a.getItemLayout(t);if(n){var r=new Ci.a,i=new Dn.a,o={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),Ge.c(r,o,e,t),Ge.c(i,o,e,t);var s=new ze.a,c=new ze.a;s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,a,t,!0),a.setItemGraphicEl(t,s)}})).update((function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),c=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(l(i.shape.points,u.shape.points,c,a,t,!1),Object(Ge.g)(s),Object(Ge.g)(i),Ge.h(i,u,e),Ge.h(s,u,e),a.setItemGraphicEl(t,r))})).remove((function(e){i.remove(o.getItemGraphicEl(e))})).execute(),a.eachItemGraphicEl((function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),l=a.getItemVisual(t,"style"),u=l.fill;i.add(e),r.useStyle(A.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(qe.I)(r,n,"lineStyle"),Object(qe.I)(o,n,"areaStyle");var h=n.getModel("areaStyle"),f=h.isEmpty()&&h.parentModel.isEmpty();o.ignore=f,A.each(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();
// Won't be ignore if normal state is not ignore.
o.ensureState(e).ignore=r&&f})),o.useStyle(A.defaults(h.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof c.a){var r=e.style;e.useStyle(A.extend({
// TODO other properties like x, y ?
image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=A.clone(p);var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(null==i||isNaN(i))&&(i=""),Object(Je.g)(e,Object(Je.e)(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})})),Object(qe.J)(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(At.a),Ii=_i,Ei=n("217c"),ki=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}
// Overwrite
return Object(Re.a)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),
// Enable legend selection for each data item
// Use a function instead of direct access because data reference may changed
this.legendVisualProvider=new Kn(A.bind(this.getData,this),A.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return qn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=""===a?this.name:a,s=Object(Ei.e)(this,e);return Object(Ei.c)("section",{header:o,sortBlocks:!0,blocks:A.map(i,(function(t){var n=r.get(r.mapDimension(t.dim),e);return Object(Ei.c)("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(A.map(n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={
// zlevel: 0,
z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},
// areaStyle: {
// },
// itemStyle: {}
symbolSize:8},t}(Ne.b),Si=ki,Bi=mr.value;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/RadarView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Mi(e,t){return A.defaults({show:t},e)}var Ti=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),l=this.get("axisNameGap"),u=this.get("triggerEvent"),h=A.map(this.get("indicator")||[],(function(h){
// PENDING
null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var f=o;null!=h.color&&(f=A.defaults({color:h.color},o));
// Use same configuration
var d=A.merge(A.clone(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,
// axisType: axisType,
axisLabel:a,
// Compatible with 2 and use text
name:h.text,showName:s,nameLocation:"end",nameGap:l,
// min: 0,
nameTextStyle:f,triggerEvent:u},!1);if(A.isString(c)){var p=d.name;d.name=c.replace("{value}",null!=p?p:"")}else A.isFunction(c)&&(d.name=c(d.name,d));var g=new Gr.a(d,null,this.ecModel);return A.mixin(g,hr.a.prototype),
// For triggerEvent.
g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={
// zlevel: 0,
z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,
// Polygon or circle
shape:"polygon",axisLine:A.merge({lineStyle:{color:"#bbb"}},Bi.axisLine),axisLabel:Mi(Bi.axisLabel,!1),axisTick:Mi(Bi.axisTick,!1),
// axisType: 'value',
splitLine:Mi(Bi.splitLine,!0),splitArea:Mi(Bi.splitArea,!0),
// {text, min, max}
indicator:[]},t}(cr.a),Oi=Ti,Di=n("d9fc"),Pi=n("4573"),Li=["axisLine","axisTickLabel","axisName"],Qi=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=A.map(n,(function(e){var n=e.model.get("showName")?e.name:"";// hide name
return new Xr(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));A.each(r,(function(e){A.each(Li,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),o=i.getModel("lineStyle"),s=a.getModel("areaStyle"),c=i.get("show"),l=a.get("show"),u=o.get("color"),h=s.get("color"),f=A.isArray(u)?u:[u],d=A.isArray(h)?h:[h],p=[],g=[];if("circle"===r)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<m.length;b++){if(c)p[S(p,f,b)].push(new Di.a({shape:{cx:v,cy:y,r:m[b].coord}}));if(l&&b<m.length-1)g[S(g,d,b)].push(new Pi.a({shape:{cx:v,cy:y,r0:m[b].coord,r:m[b+1].coord}}))}else{var w,x=A.map(n,(function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),A.map(r,(function(e){return t.coordToPoint(e.coord,n)}))})),C=[];for(b=0;b<=w;b++){for(var _=[],I=0;I<n.length;I++)_.push(x[I][b]);
// Close
if(_[0]&&_.push(_[0].slice()),c)p[S(p,f,b)].push(new Dn.a({shape:{points:_}}));if(l&&C)g[S(g,d,b-1)].push(new Ci.a({shape:{points:_.concat(C)}}));C=_.slice().reverse()}}var E=o.getLineStyle(),k=s.getAreaStyle();
// Add splitArea before splitLine
A.each(g,(function(e,t){this.group.add(Ve.mergePath(e,{style:A.defaults({stroke:"none",fill:d[t%d.length]},k),silent:!0}))}),this),A.each(p,(function(e,t){this.group.add(Ve.mergePath(e,{style:A.defaults({fill:"none",stroke:f[t%f.length]},E),silent:!0}))}),this)}function S(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(sr.a),Ri=Qi,ji=/** @class */function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Object(Re.a)(t,e),t}(Br.a),Ni=/** @class */function(){function e(e,t,n){
/**
     *
     * Radar dimensions
     */
this.dimensions=[],this._model=e,this._indicatorAxes=Object(A.map)(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new ji(n,new Qr.a);return r.name=e.get("name"),
// Inject model and axis
r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},
// TODO: API should be coordToPoint([coord, indicatorIndex])
e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,a=Math.atan2(-n,t),o=1/0,s=-1,c=0
// Find the closest angle
// FIXME index can calculated directly
;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(a-l.angle);u<o&&(i=l,s=c,o=u)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i)/2;this.cx=xt.q(n[0],r),this.cy=xt.q(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;
// radius may be single value like `20`, `'80%'`, or array like `[10, '80%']`
var o=e.get("radius");(Object(A.isString)(o)||Object(A.isNumber)(o))&&(o=[0,o]),this.r0=xt.q(o[0],a),this.r=xt.q(o[1],a),Object(A.each)(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;
// Normalize to [-PI, PI]
n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Object(A.each)(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var a=t.getData();Object(A.each)(n,(function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber"),a=new Qr.a;a.setExtent(0,i),a.setInterval(1),
// Force all the axis fixing the maxSplitNumber.
Object(A.each)(n,(function(e,t){jr(e.scale,e.model,a)}))},e.prototype.convertToPixel=function(e,t,n){return null},e.prototype.convertFromPixel=function(e,t,n){return null},e.prototype.containPoint=function(e){return!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(
// Inject coordinate system
// @ts-ignore
e.coordinateSystem=r[e.get("radarIndex")||0])})),r},
/**
   * Radar dimensions is based on the data
   */
e.dimensions=[],e}();
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/radar/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Fi(e){e.registerCoordinateSystem("radar",Ni),e.registerComponentModel(Oi),e.registerComponentView(Ri),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();
// itemVisual symbol is for selected data
t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),
// visual is for unselected data
t.setVisual("legendIcon","roundRect")}})}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/radar/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/Eventful.js
var zi=n("6fd3"),Hi=n("607d"),Ui=n("1be7"),Gi="\0_ec_interaction_mutex";
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/event.js
function Vi(e,t){return!!Wi(e)[t]}function Wi(e){return e[Gi]||(e[Gi]={})}
/**
 * payload: {
 *     type: 'takeGlobalCursor',
 *     key: 'dataZoomSelect', or 'brush', or ...,
 *         If no userKey, release global cursor.
 * }
 */
// TODO: SELF REGISTERED.
function qi(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(
// When mouse is out of roamController rect,
// default befavoius should not be be disabled, otherwise
// page sliding is disabled, contrary to expectation.
Hi.g(r.event),Yi(e,t,n,r,i))}function Yi(e,t,n,r,i){
// Also provide behavior checker for event listener, for some case that
// multiple components share one listener.
i.isAvailableBehavior=Object(A.bind)(Ki,null,n,r),
// TODO should not have type issue.
e.trigger(t,i)}
// settings: {
//     zoomOnMouseWheel
//     moveOnMouseMove
//     moveOnMouseWheel
// }
// The value can be: true / false / 'shift' / 'ctrl' / 'alt'.
function Ki(e,t,n){var r=n[e];return!e||r&&(!Object(A.isString)(r)||t.event[r+"Key"])}
/* harmony default export */Ui.m({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},A.noop);var $i=/** @class */function(e){function t(t){var n=e.call(this)||this;n._zr=t;
// Avoid two roamController bind the same handler
var r=Object(A.bind)(n._mousedownHandler,n),i=Object(A.bind)(n._mousemoveHandler,n),a=Object(A.bind)(n._mouseupHandler,n),o=Object(A.bind)(n._mousewheelHandler,n),s=Object(A.bind)(n._pinchHandler,n);
/**
     * Notice: only enable needed types. For example, if 'zoom'
     * is not needed, 'zoom' should not be enabled, otherwise
     * default mousewheel behaviour (scroll page) will be disabled.
     */
return n.enable=function(e,n){
// Disable previous first
this.disable(),this._opt=Object(A.defaults)(Object(A.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,
// By default, wheel do not trigger move.
moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",a),t.off("mousewheel",o),t.off("pinch",s)},n}return Object(Re.a)(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Hi.d(e)){for(var t=e.target;t;){if(t.draggable)return;
// check if host is draggable
t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;
// Only check on mosedown, but not mousemove.
// Mouse can be out of target when mouse moving.
this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Ki("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Vi(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Hi.g(e.event),Yi(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Hi.d(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Ki("zoomOnMouseWheel",e,this._opt),n=Ki("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;
// wheelDelta maybe -0 in chrome mac.
if(0!==r&&(t||n)){
// If both `shouldZoom` and `shouldMove` is true, trigger
// their event both, and the final behavior is determined
// by event listener themselves.
if(t){
// Convenience:
// Mac and VM Windows on Mac: scroll up: zoom out.
// Windows: scroll up: zoom in.
// FIXME: Should do more test in different environment.
// wheelDelta is too complicated in difference nvironment
// (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel),
// although it has been normallized by zrender.
// wheelDelta of mouse wheel is bigger than touch pad.
var s=i>3?1.4:i>1?1.2:1.1;qi(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){
// FIXME: Should do more test in different environment.
var c=Math.abs(r);
// wheelDelta of mouse wheel is bigger than touch pad.
qi(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(c>3?.4:c>1?.15:.05),originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){Vi(this._zr,"globalPan")||qi(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(zi.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/roamHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * For geo and graph.
 */function Ji(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}
/**
 * For geo and graph.
 */function Xi(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,c=a.max||1/0;o=Math.max(Math.min(c,o),s)}var l=o/e.zoom;e.zoom=o,
// Keep the mouse center when scaling
i.x-=(n-i.x)*(l-1),i.y-=(r-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/cursorHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Zi={axisPointer:1,tooltip:1,brush:1};
/**
 * Avoid that: mouse click on a elements that is over geo or graph,
 * but roam is triggered.
 */function ea(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;
// If model is axisModel, it works only if it is injected with coordinateSystem.
return r&&r!==n&&!Zi.hasOwnProperty(r.mainType)&&i&&i.model!==n}
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/shape/Ellipse.js
var ta,na=n("ae69"),ra=n("342d"),ia=n("dded");
// EXTERNAL MODULE: ./node_modules/zrender/lib/tool/path.js + 1 modules
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/parseXML.js
function aa(e){Object(A.isString)(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/parseSVG.js
var oa={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},sa=Object(A.keys)(oa),ca={"alignment-baseline":"textBaseline","stop-color":"stopColor"},la=Object(A.keys)(ca),ua=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=aa(e);this._defsUsePending=[];var r=new ze.a;this._root=r;var i=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),ma(n,r,null,!0,!1);for(var c,l,u=n.firstChild;u;)this._parseNode(u,r,i,null,!1,!1),u=u.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=ba(a);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&null!=o&&null!=s&&(l=Ia(c,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;(r=new ze.a).add(f),f.scaleX=f.scaleY=l.scale,f.x=l.x,f.y=l.y}return t.ignoreRootClip||null==o||null==s||r.setClipPath(new bt.a({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:c,viewBoxTransform:l,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o,s=e.nodeName.toLowerCase(),c=r;if("defs"===s&&(i=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=t;else{if(!i){var l=ta[s];if(l&&Object(A.hasOwn)(ta,s)){o=l.call(this,e,t);var u=e.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(c=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:o});t.add(o)}}var f=ha[s];if(f&&Object(A.hasOwn)(ha,s)){var d=f.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(o&&o.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,o,n,c,i,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new u.a({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pa(t,n),ma(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=void(ta={g:function(e,t){var n=new ze.a;return pa(t,n),ma(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new bt.a;return pa(t,n),ma(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Di.a;return pa(t,n),ma(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Ur.a;return pa(t,n),ma(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new na.a;return pa(t,n),ma(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=ga(r));var i=new Ci.a({shape:{points:n||[]},silent:!0});return pa(t,i),ma(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=ga(r));var i=new Dn.a({shape:{points:n||[]},silent:!0});return pa(t,i),ma(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new c.a;return pa(t,n),ma(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new ze.a;return pa(t,o),ma(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",o=new ze.a;return pa(t,o),ma(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=e.getAttribute("d")||"",r=Object(ra.b)(n);return pa(t,r),ma(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}),e}(),ha={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new ct.a(t,n,r,i);return fa(e,a),da(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new ia.a(t,n,r);return fa(e,i),da(e,i),i}};function fa(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function da(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};_a(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function pa(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(A.defaults)(t.__inheritedStyle,e.__inheritedStyle))}function ga(e){for(var t=ba(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function ma(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(wa,(function(e,t,n){return r.push(t,n),""}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=ba(o);switch(i=i||Cr.create(),s){case"translate":Cr.translate(i,i,[parseFloat(c[0]),parseFloat(c[1]||"0")]);break;case"scale":Cr.scale(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case"rotate":Cr.rotate(i,i,-parseFloat(c[0])*xa,[parseFloat(c[1]||"0"),parseFloat(c[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(c[0])*xa);Cr.mul(i,[1,0,l,1,0,0],i);break;case"skewY":var u=Math.tan(parseFloat(c[0])*xa);Cr.mul(i,[1,u,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5])}}t.setLocalTransform(i)}}(e,t),_a(e,o,s),r||function(e,t,n){for(var r=0;r<sa.length;r++){var i=sa[r];null!=(a=e.getAttribute(i))&&(t[oa[i]]=a)}for(r=0;r<la.length;r++){var a;i=la[r];null!=(a=e.getAttribute(i))&&(n[ca[i]]=a)}}(e,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=ya(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=ya(a,"stroke",o.stroke,n)),Object(A.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=o[e]&&(a.style[e]=parseFloat(o[e]))})),Object(A.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=o[e]&&(a.style[e]=o[e])})),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Object(A.map)(ba(o.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}var va=/^url\(\s*#(.*?)\)/;function ya(e,t,n,r){var i=n&&n.match(va);if(!i)return"none"===n&&(n=null),n;var a=Object(A.trim)(i[1]);r.push([e,t,a])}var Aa=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ba(e){return e.match(Aa)||[]}var wa=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xa=Math.PI/180;var Ca=/([^\s:;]+)\s*:\s*([^:;]+)/g;function _a(e,t,n){var r,i=e.getAttribute("style");if(i)for(Ca.lastIndex=0;null!=(r=Ca.exec(i));){var a=r[1],o=Object(A.hasOwn)(oa,a)?oa[a]:null;o&&(t[o]=r[2]);var s=Object(A.hasOwn)(ca,a)?ca[a]:null;s&&(n[s]=r[2])}}function Ia(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}
// EXTERNAL MODULE: ./node_modules/echarts/lib/coord/geo/Region.js
var Ea=n("f279"),ka=Object(A.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path",
// <text> <tspan> are also enabled because some SVG might paint text itself,
// but still need to trigger events or tooltip.
"text","tspan",
// <g> is also enabled because this case: if multiple tags share one name
// and need label displayed, every tags will display the name, which is not
// expected. So we can put them into a <g name="xxx">. Thereby only one label
// displayed and located based on the bounding rect of the <g>.
"g"]),Sa=/** @class */function(){function e(e,t){this.type="geoSVG",
// All used graphics. key: hostKey, value: root
this._usedGraphicMap=Object(A.createHashMap)(),
// All unused graphics.
this._freedGraphics=[],this._mapName=e,
// Only perform parse to XML object here, which might be time
// consiming for large SVG.
// Although convert XML to zrender element is also time consiming,
// if we do it here, the clone of zrender elements has to be
// required. So we do it once for each geo instance, util real
// performance issues call for optimizing it.
this._parsedXML=aa(t)}return e.prototype.load=function(){
// In the "load" stage, graphic need to be built to
// get boundingRect for geo coordinate system.
var e=this._firstGraphic;
// Create the return data structure only when first graphic created.
// Because they will be used in geo coordinate system update stage,
// and `regions` will be mounted at `geo` coordinate system,
// in which there is no "view" info, so that it should better not to
// make references to graphic elements.
if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();
// PENDING: `nameMap` will not be supported until some real requirement come.
// if (nameMap) {
//     named = applyNameMap(named, nameMap);
// }
var t=function(e){var t=[],n=Object(A.createHashMap)();
// Create resions only for the first graphic.
return Object(A.each)(e,(function(e){
// Region has feature to calculate center for tooltip or other features.
// If there is a <g name="xxx">, the center should be the center of the
// bounding rect of the g.
if(null==e.namedFrom){var r=new Ea.d(e.name,e.el);
// PENDING: if `nameMap` supported, this region can not be mounted on
// `this`, but can only be created each time `load()` called.
t.push(r),
// PENDING: if multiple tag named with the same name, only one will be
// found by `_regionsMap`. `_regionsMap` is used to find a coordinate
// by name. We use `region.getCenter()` as the coordinate.
n.set(e.name,r)}})),{regions:t,regionsMap:n}}
// PENDING: `nameMap` will not be supported until some real requirement come.
// /**
//  * Use the alias in geoNameMap.
//  * The input `named` must not be modified.
//  */
// function applyNameMap(
//     named: GeoSVGGraphicRecord['named'],
//     nameMap: NameMap
// ): GeoSVGGraphicRecord['named'] {
//     const result = [] as GeoSVGGraphicRecord['named'];
//     for (let i = 0; i < named.length; i++) {
//         let regionGraphic = named[i];
//         const name = regionGraphic.name;
//         if (nameMap && nameMap.hasOwnProperty(name)) {
//             regionGraphic = extend({}, regionGraphic);
//             regionGraphic.name = name;
//         }
//         result.push(regionGraphic);
//     }
//     return result;
// }
// EXTERNAL MODULE: ./node_modules/echarts/lib/coord/geo/parseGeoJson.js
(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new ua).parse(r,i))||{}).root,Object(A.assert)(null!=n)}catch(e){throw new Error("Invalid svg format\n"+e.message)}
// Note: we keep the covenant that the root has no transform. So always add an extra root.
var a=new ze.a;a.add(n),a.isGeoSVGGraphicRoot=!0;
// [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]
// Consider: `<svg width="..." height="..." viewBox="...">`
// - the `width/height` we call it `svgWidth/svgHeight` for short.
// - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,
//   "viewport boundingRect", or `boundingRect` for short.
// - `viewBox` defines the transform from the real content ot the viewport.
//   `viewBox` has the same unit as the content of SVG.
//   If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become
//   different from the content of SVG. Otherwise, they are the same.
// If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:
// 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).
// 1. Make a transform from `viewBox` to `boundingRect`.
//    Note: only support `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve
//    the aspect ratio.
// 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])
//    (`Geo`/`View` will do this job).
//    Note: this transform might not preserve aspect radio, which depending on how users specify
//    viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,
//    but `geo.layoutCenter/layoutSize` will preserve aspect ratio).
// If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG
// layout look good.
// If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect
// of the SVG content and use them to make SVG layout look good.
var o=t.width,s=t.height,c=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,f=void 0,d=void 0;
// If both viewBox and svgWidth/svgHeight not specified,
// we have to determine how to layout those element to make them look good.
if(null!=o?(u=0,f=o):c&&(u=c.x,f=c.width),null!=s?(h=0,d=s):c&&(h=c.y,d=c.height),null==u||null==h){var p=n.getBoundingRect();null==u&&(u=p.x,f=p.width),null==h&&(h=p.y,d=p.height)}l=this._boundingRect=new tr.a(u,h,f,d)}if(c){var g=Ia(c,l);
// Only support `preserveAspectRatio 'xMidYMid'`
n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}
// SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.
// They do not strictly confine all of the content inside a display rect, but deliberately
// use a `viewBox` to define a displayable rect.
// PENDING:
// The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the
// edge might also be clipped, because region labels are put as `textContent` of the SVG path.
a.setClipPath(new bt.a({shape:l.plain()}));var m=[];return Object(A.each)(t.named,(function(e){var t;null!=ka.get(e.svgNodeTagLower)&&(m.push(e),
// Only named element has silent: false, other elements should
// act as background and has no user interaction.
(t=e.el).silent=!1,
// text|tspan will be converted to group.
t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:a,boundingRect:l,named:m}},
/**
   * Consider:
   * (1) One graphic element can not be shared by different `geoView` running simultaneously.
   *     Notice, also need to consider multiple echarts instances share a `mapRecord`.
   * (2) Converting SVG to graphic elements is time consuming.
   * (3) In the current architecture, `load` should be called frequently to get boundingRect,
   *     and it is called without view info.
   * So we maintain graphic elements in this module, and enables `view` to use/return these
   * graphics from/to the pool with it's uid.
   */
e.prototype.useGraphic=function(e/* , nameMap: NameMap */){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/GeoSVGResource.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * "region available" means that: enable users to set attribute `name="xxx"` on those tags
 * to make it be a region.
 * 1. region styles and its label styles can be defined in echarts opton:
 * ```js
 * geo: {
 *     regions: [{
 *         name: 'xxx',
 *         itemStyle: { ... },
 *         label: { ... }
 *     }, {
 *         ...
 *     },
 *     ...]
 * };
 * ```
 * 2. name can be duplicated in different SVG tag. All of the tags with the same name share
 * a region option. For exampel if there are two <path> representing two lung lobes. They have
 * no common parents but both of them need to display label "lung" inside.
 */for(var Ba=n("bda7"),Ma=[126,25],Ta="南海诸岛",Oa=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Da=0
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/fix/nanhai.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Fix for 南海诸岛
;Da<Oa.length;Da++)for(var Pa=0;Pa<Oa[Da].length;Pa++)Oa[Da][Pa][0]/=10.5,Oa[Da][Pa][1]/=-14,Oa[Da][Pa][0]+=Ma[0],Oa[Da][Pa][1]+=Ma[1];
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/fix/textCoord.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var La={"南海诸岛":[32,80],
// 全国
"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],
// '北京': [-10, 0],
"天津":[5,5]};
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Fix for 钓鱼岛
// let Region = require('../Region');
// let zrUtil = require('zrender/lib/core/util');
// let geoCoord = [126, 25];
var Qa=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/GeoJSONResource.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Built-in GEO fixer.
var Ra=/** @class */function(){function e(e,t,n){var r;
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/geoSourceManager.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/this.type="geoJSON",this._parsedMap=Object(A.createHashMap)(),this._mapName=e,this._specialAreas=n,
// PENDING: delay the parse to the first usage to rapid up the FMP?
this._geoJSON=(r=t,Object(A.isString)(r)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r)}
/**
   * @param nameMap can be null/undefined
   * @param nameProperty can be null/undefined
   */return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:ja(r)})}var i=Object(A.createHashMap)(),a=[];return Object(A.each)(n.regions,(function(t){var n=t.name;
// Try use the alias in geoNameMap
e&&Object(A.hasOwn)(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)})),{regions:a,boundingRect:n.boundingRect||new tr.a(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;
// https://jsperf.com/try-catch-performance-overhead
try{t=r?Object(Ba.a)(r,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)
// Already exists.
if(t[n].name===Ta)return;t.push(new Ea.c(Ta,A.map(Oa,(function(e){return{type:"polygon",exterior:e}})),Ma))}}(n,t),Object(A.each)(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=La[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:Qa[0]})}(n,e);
// Some area like Alaska in USA map needs to be tansformed
// to look better
var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},
/**
   * Only for exporting to users.
   * **MUST NOT** used internally.
   */
e.prototype.getMapForUser=function(){return{
// For backward compatibility, use geoJson
// PENDING: it has been returning them without clone.
// do we need to avoid outsite modification?
geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function ja(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var Na=Object(A.createHashMap)(),Fa=function(e,t,n){if(t.svg){var r=new Sa(e,t.svg);Na.set(e,r)}else{
// Recommend:
//     echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });
// Backward compatibility:
//     echarts.registerMap('eu', geoJSON, specialAreas);
//     echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });
var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new Ra(e,i,n);Na.set(e,r)}},za=function(e){return Na.get(e)},Ha=function(e){var t=Na.get(e);
// Do not support return SVG until some real requirement come.
return t&&"geoJSON"===t.type&&t.getMapForUser()},Ua=function(e,t,n){var r=Na.get(e);if(r)return r.load(t,n)},Ga=n("b3c1"),Va=n("19eb"),Wa=["rect","circle","line","ellipse","polygon","polyline","path"],qa=A.createHashMap(Wa),Ya=A.createHashMap(Wa.concat(["g"])),Ka=A.createHashMap(Wa.concat(["g"])),$a=Object(lt.o)();
/* harmony default export */function Ja(e){var t=e.getItemStyle(),n=e.get("areaColor");
// If user want the color not to be changed when hover,
// they should both set areaColor and color to be null.
return null!=n&&(t.fill=n),t}
// Only stroke can be used for line.
// Using fill in style if stroke not exits.
// TODO Not sure yet. Perhaps a separate `lineStyle`?
function Xa(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}function Za(e,t,n,r){
// All of the path are using `itemStyle`, because
// (1) Some SVG also use fill on polyline (The different between
// polyline and polygon is "open" or "close" but not fill or not).
// (2) For the common props like opacity, if some use itemStyle
// and some use `lineStyle`, it might confuse users.
// (3) Most SVG use <path>, where can not detect whether to draw a "line"
// or a filled shape, so use `itemStyle` for <path>.
var i=r.getModel("itemStyle"),a=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),c=Ja(i),l=Ja(a),u=Ja(s),h=Ja(o),f=e.data;if(f){
// Only visual color of each item will be used. It can be encoded by visualMap
// But visual color of series is used in symbol drawing
// Visual color for each series is for the symbol draw
var d=f.getItemVisual(n,"style"),p=f.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&d.fill&&(c.fill=d.fill),p&&(c.decal=Object(Ga.a)(p,e.api))}
// SVG text, tspan and image can be named but not supporeted
// to be styled by region option yet.
t.setStyle(c),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=l,t.ensureState("select").style=u,t.ensureState("blur").style=h,
// Enable blur
Object(qe.G)(t)}function eo(e,t,n,r,i,
// Exist only if `viewBuildCtx.data` exists.
a,
// If labelXY not provided, use `textConfig.position: 'inside'`
o){var s=e.data,c=e.isGeo,l=s&&isNaN(s.get(s.mapDimension("value"),a)),u=s&&s.getItemLayout(a);
// In the following cases label will be drawn
// 1. In map series and data value is NaN
// 2. In geo component
// 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout
if(c||l||u&&u.showLabel){var h=c?n:a,f=void 0;
// Consider dataIdx not found.
(!s||a>=0)&&(f=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;
// Caveat: must be called after `setDefaultStateProxy(el);` called.
// because textContent will be assign with `el.stateProxy` inside.
Object(Je.g)(t,Object(Je.e)(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},d);var p=t.getTextContent();if(p&&($a(p).ignore=p.ignore,t.textConfig&&o)){
// Compute a relative offset based on the el bounding rect.
var g=t.getBoundingRect().clone();
// Need to make sure the percent position base on the same rect in normal and
// emphasis state. Otherwise if using boundingRect of el, but the emphasis state
// has borderWidth (even 0.5px), the text position will be changed obviously
// if the position is very big like ['1234%', '1345%'].
t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}
// PENDING:
// If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified.
// But el.dataIndex is also used to determine whether user event should be triggered,
// where el.seriesIndex or el.dataModel must be specified. At present for a single el
// there is not case that "only label layout enabled but user event disabled", so here
// we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`.
t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function to(e,t,n,r,i,
// Exist only if `viewBuildCtx.data` exists.
a){
// setItemGraphicEl, setHoverStyle after all polygons and labels
// are added to the regionGroup
e.data?
// FIXME: when series-map use a SVG map, and there are duplicated name specified
// on different SVG elements, after `data.setItemGraphicEl(...)`:
// (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip
// can be triggered only mouse hover. That's correct.
// (2) only the last element will be kept in `data`, so that if trigger tooltip
// by `dispatchAction`, only the last one can be found and triggered. That might be
// not correct. We will fix it in future if anyone demanding that.
e.data.setItemGraphicEl(a,t):
// Package custom mouse event for geo component
Object(We.a)(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function no(e,t,n,r,i){e.data||Ve.setTooltipConfig({el:t,componentModel:i,itemName:n,
// @ts-ignore FIXME:TS fix the "compatible with each other"?
itemTooltipOption:r.get("tooltip")})}function ro(e,t,n,r,i){
// @ts-ignore FIXME:TS fix the "compatible with each other"?
t.highDownSilentOnTouch=!!i.get("selectedMode");
// @ts-ignore FIXME:TS fix the "compatible with each other"?
var a=r.getModel("emphasis"),o=a.get("focus");return Object(qe.J)(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Object(qe.n)(t,i,n),o}function io(e,
// Polygons include exterior and interiors. Or polylines.
t,n){var r,i=[];function a(){r=[]}function o(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){
// May have NaN values from stream.
isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),A.each(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}
/* harmony default export */var ao=/** @class */function(){function e(e){var t=new ze.a;this.uid=Object(Yt.c)("ec_map_draw"),this._controller=new $i(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ze.a),t.add(this._svgGroup=new ze.a)}return e.prototype.draw=function(e,t,n,r,i){var a="geo"===e.mainType,o=e.getData&&e.getData();
// Map series has data. GEO model that controlled by map series
// will be assigned with map data. Other GEO model has no data.
a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){o||t.getHostGeoModel()!==e||(o=t.getData())}));var s=e.coordinateSystem,c=this._regionsGroup,l=this.group,u=s.getTransformInfo(),h=u.raw,f=u.roam;!c.childAt(0)||i?(l.x=f.x,l.y=f.y,l.scaleX=f.scaleX,l.scaleY=f.scaleY,l.dirty()):Ge.h(l,f,e);var d=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:d,isGeo:a,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(e,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=A.createHashMap(),n=A.createHashMap(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(
// projection may return null point.
e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0
// If projectionStream is provided. Use it instead of single point project.
;r<e.length;++r){var i=l(e[r],n);i&&t.push(i)}return t}function h(e){return{shape:{points:u(e)}}}r.removeAll(),
// Only when the resource is GeoJSON, there is `geo.regions`.
A.each(e.geo.regions,(function(i){var u=i.name,f=t.get(u),d=n.get(u)||{},p=d.dataIdx,g=d.regionModel;
// Consider in GeoJson properties.name may be duplicated, for example,
// there is multiple region named "United Kindom" or "France" (so many
// colonies). And it is not appropriate to merge them in geo, which
// will make them share the same label and bring trouble in label
// location calculation.
if(!f){f=t.set(u,new ze.a),r.add(f),p=o?o.indexOfName(u):null;var m=(g=e.isGeo?a.getRegionModel(u):o?o.getItemModel(p):null).get("silent",!0);null!=m&&(f.silent=m),n.set(u,{dataIdx:p,regionModel:g})}var v=[],y=[];A.each(i.geometries,(function(e){
// Polygon and MultiPolygon
if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);c&&(t=io(t,c)),A.each(t,(function(e){v.push(new Ci.a(h(e)))}))}
// LineString and MultiLineString
else{var n=e.points;c&&(n=io(n,c,!0)),A.each(n,(function(e){y.push(new Dn.a(h(e)))}))}}));var b=l(i.getCenter(),s&&s.project);function w(t,n){if(t.length){var r=new R.a({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),Za(e,r,p,g),eo(e,r,u,g,a,p,b),n&&(Xa(r),A.each(r.states,Xa))}}w(v),w(y,!0)})),
// Ensure children have been added to `regionGroup` before calling them.
t.each((function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;to(e,t,r,s,a,o),no(e,t,r,s,a),ro(e,t,r,s,a)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=A.createHashMap(),i=!1;A.each(this._svgGraphicRecord.named,(function(t){
// Note that we also allow different elements have the same name.
// For example, a glyph of a city and the label of the city have
// the same name and their tooltip info can be defined in a single
// region option.
var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,c=t.el,l=o?o.indexOfName(n):null,u=a.getRegionModel(n);null!=qa.get(s)&&c instanceof Va.c&&Za(e,c,l,u),c instanceof Va.c&&(c.culling=!0);var h=u.get("silent",!0);
// If self named:
(null!=h&&(c.silent=h),
// We do not know how the SVG like so we'd better not to change z2.
// Otherwise it might bring some unexpected result. For example,
// an area hovered that make some inner city can not be clicked.
c.z2EmphasisLift=0,t.namedFrom)||(
// label should batter to be displayed based on the center of <g>
// if it is named rather than displayed on each child.
null!=Ka.get(s)&&eo(e,c,n,u,a,l,null),to(e,c,n,u,a,l),no(e,c,n,u,a),null!=Ya.get(s)&&("self"===ro(e,c,n,u,a)&&(i=!0),(r.get(n)||r.set(n,[])).push(c)))}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){
// It's a little complicated to support blurring the entire geoSVG in series-map.
// So do not support it until some requirements come.
// At present, in series-map, only regions can be blurred.
if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;
// Only support `opacity` here. Because not sure that other props are suitable for
// all of the elements generated by SVG (especially for Text/TSpan/Image/... ).
this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){
// PENDING: clear those settings to SVG elements when `_freeSVG`.
// (Currently it happen not to be needed.)
Object(qe.G)(e);var t=e.ensureState("blur").style||{};
// Do not overwrite the region style that already set from region option.
null==t.opacity&&null!=n&&(t.opacity=n),
// If `ensureState('blur').style = {}`, there will be default opacity.
// Enable `stateTransition` (animation).
e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=za(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=za(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;
// @ts-ignore FIXME:TS
a.zoomLimit=e.get("scaleLimit"),a.zoom=r.getZoom(),
// roamType is will be set default true if it is null
// @ts-ignore FIXME:TS
i.enable(e.get("roam")||!1);var o=e.mainType;function s(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Ji(a,e.dx,e.dy),n.dispatchAction(A.extend(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Xi(a,e.scale,e.originX,e.originY),n.dispatchAction(A.extend(s(),{totalZoom:a.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,a){return r.containPoint([i,a])&&!ea(t,n,e)}))},
/**
   * FIXME: this is a temporarily workaround.
   * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like
   * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries`
   * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified
   * props will have no chance to be restored.
   * Note: This reset should be after `clearStates` in `renderSeries` because `useStates` in
   * `renderSeries` will cache the modified `ignore` to `el._normalState`.
   * TODO:
   * Use clone/immutable in `LabelManager`?
   */
e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=$a(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),
// @ts-ignore FIXME:TS resolve type conflict
e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}(),oo=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){
// Not render if it is an toggleSelect action from self
if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){
// Not update map if it is an roam action from self
if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(a=this._mapDraw)&&i.add(a.group);else if(e.needsDrawMap){var a=this._mapDraw||new ao(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else
// Remove drawn map
this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,c=new Di.a({style:{
// Because the special of map draw.
// Which needs statistic of multiple series and draw on one map.
// And each series also need a symbol with legend color
// Layout and visual are put one the different data
// TODO
fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,
// Do not overlap the first series, on which labels are displayed.
z2:8+(s?0:qe.j+1)});
// Only the series that has the first value on the same region is in charge of rendering the label.
// But consider the case:
// series: [
//     {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]},
//     {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]}
// ]
// The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`.
// For backward compatibility, we follow the rule that render label `A` by the
// settings on series `X` but render label `C` by the settings on series `Y`.
if(!s){var l=e.mainSeries.getData(),u=r.getName(n),h=l.indexOfName(u),f=r.getItemModel(n),d=f.getModel("label"),p=l.getItemGraphicEl(h);
// `getFormattedLabel` needs to use `getData` inside. Here
// `mapModel.getData()` is shallow cloned from `mainSeries.getData()`.
// FIXME
// If this is not the `mainSeries`, the item model (like label formatter)
// set on original data item will never get. But it has been working
// like that from the beginning, and this scenario is rarely encountered.
// So it won't be fixed until we have to.
Object(Je.g)(c,Object(Je.e)(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:u}),c.disableLabelAnimation=!0,d.get("position")||c.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){Object(qe.H)(c,e)}}i.add(c)}}}))},t.type="map",t}(At.a),so=oo,co=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,
// Only first map series of same mapType will drawMap.
n.needsDrawMap=!1,
// Group of all map series with same mapType
n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e){for(var t=qn(this,{coordDimensions:["value"],encodeDefaulter:A.curry(Yn.d,this)}),n=A.createHashMap(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}var s=Ua(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A.each(s.regions,(function(e){var i,a=e.name,o=n.get(a),s=e.properties&&e.properties.echartsStyle;null==o?(i={name:a},r.push(i)):i=t.getRawDataItem(o),s&&A.merge(i,s)})),
// Complete data with missing regions. The consequent processes (like visual
// map and render) can not be performed without a "full data". For example,
// find `dataIndex` by name.
t.appendData(r),t},
/**
   * If no host geo model, return null, which means using a
   * inner exclusive geo model.
   */
t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},
// _fillOption(option, mapName) {
// Shallow clone
// option = zrUtil.extend({}, option);
// option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);
// return option;
// }
t.prototype.getRawValue=function(e){
// Use value stored in data instead because it is calculated from multiple series
// FIXME Provide all value of multiple series ?
var t=this.getData();return t.get(t.mapDimension("value"),e)},
/**
   * Get model of region
   */
t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},
/**
   * Map tooltip formatter
   */
t.prototype.formatTooltip=function(e,t,n){for(
// FIXME orignalData and data is a bit confusing
var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],c=0;c<o.length;c++){var l=o[c].originalData.indexOfName(a),u=r.mapDimension("value");isNaN(o[c].originalData.get(u,l))||s.push(o[c].name)}return Object(Ei.c)("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(Ei.c)("nameValue",{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Object(Fe.a)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),
// Map do not use itemStyle.borderWidth as border width
n.style.stroke="none",
// No rotation because no series visual symbol for map
t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={
// 一级层叠
// zlevel: 0,
// 二级层叠
z:2,coordinateSystem:"geo",
// map should be explicitly specified since ec3.
map:"",
// If `geoIndex` is not specified, a exclusive geo will be
// created. Otherwise use the specified geo component, and
// `map` and `mapType` are ignored.
// geoIndex: 0,
// 'center' | 'left' | 'right' | 'x%' | {number}
left:"center",
// 'center' | 'top' | 'bottom' | 'x%' | {number}
top:"center",
// right
// bottom
// width:
// height
// Aspect is width / height. Inited to be geoJson bbox aspect
// This parameter is used for scale this aspect
// Default value:
// for geoSVG source: 1,
// for geoJSON source: 0.75.
aspectScale:null,
// Layout with center and size
// If you want to put map in a fixed size box with right aspect ratio
// This two properties may be more convenient.
// layoutCenter: [50%, 50%]
// layoutSize: 100
showLegendSymbol:!0,
// Define left-top, right-bottom coords to control view
// For example, [ [180, 90], [-180, -90] ],
// higher priority than center and zoom
boundingCoords:null,
// Default on center of map
center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},
// scaleLimit: null,
itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ne.b),lo=co;
// @ts-ignore FIXME:TS fix the "compatible with each other"?
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/MapView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function uo(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),A.each(t,(function(e,t){for(var n,r,i,a=(n=A.map(e,(function(e){return e.getData()})),r=e[0].get("mapValueCalculation"),i={},A.each(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){
// Add prefix to avoid conflict with Object.prototype.
var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var a="ec-"+n[0].getName(t),o=0,s=1/0,c=-1/0,l=i[a].length,u=0;u<l;u++)s=Math.min(s,i[a][u]),c=Math.max(c,i[a][u]),o+=i[a][u];return 0===l?NaN:"min"===r?s:"max"===r?c:"average"===r?o/l:o}))),o=0;o<e.length;o++)e[o].originalData=e[o].getData();
// FIXME Put where?
for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(a.cloneShallow()),e[o].mainSeries=e[0]}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/mapSymbolLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function ho(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};A.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var a=r.getName(t),o=n.getRegion(a);
// If input series.data is [11, 22, '-'/null/undefined, 44],
// it will be filled with NaN: [11, 22, NaN, 44] and NaN will
// not be drawn. So here must validate if value is NaN.
if(o&&!isNaN(e)){var s=i[a]||0,c=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:c,offset:s})}}))}));
// Show label of those region not has legendIcon (which is offset 0)
var a=n.getData();a.each((function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)})),t[r]=!0}}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/View.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Simple view coordinate system
 * Mapping given x, y to transformd view x, y
 */var fo=_r.applyTransform;function po(e){var t=e.seriesModel;return t?t.coordinateSystem:null;// e.g., graph.
}
/* harmony default export */var go=/** @class */function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],
/**
     * Represents the transform brought by roam/zoom.
     * If `View['_viewRect']` applies roam transform,
     * we can get the final displayed rect.
     */
n._roamTransformable=new L.c,
/**
     * Represents the transform from `View['_rect']` to `View['_viewRect']`.
     */
n._rawTransformable=new L.c,n.name=t,n}return Object(Re.a)(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new tr.a(e,t,n,r),this._rect},
/**
   * @return {module:zrender/core/BoundingRect}
   */
t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new tr.a(e,t,n,r)},
/**
   * Transformed to particular position and size
   */
t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new tr.a(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},
/**
   * Set center of view
   */
t.prototype.setCenter=function(e,t){e&&(this._center=[Object(xt.q)(e[0],t.getWidth()),Object(xt.q)(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},
/**
   * Get default center without roam
   */
t.prototype.getDefaultCenter=function(){
// Rect before any transform
var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},
/**
   * Remove roam
   */
t.prototype._updateCenterAndZoom=function(){
// Must update after view transform updated
var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=_r.applyTransform([],r,e),n=_r.applyTransform([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},
/**
   * Update transform props on `this` based on the current
   * `this._roamTransformable` and `this._rawTransformable`.
   */
t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Cr.copy(this.transform||(this.transform=[]),t.transform||Cr.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Cr.invert(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new L.c;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},
/**
   * Get view rect after roam transform
   */
t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},
/**
   * Convert a single (lon, lat) data item to (x, y) point.
   */
t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?fo(n,e,r):_r.copy(n,e)},
/**
   * Convert a (x, y) point to (lon, lat) data
   */
t.prototype.pointToData=function(e){var t=this.invTransform;return t?fo([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=po(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=po(t);return r===this?r.pointToData(n):null},
/**
   * @implements
   */
t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(L.c),mo={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},vo=["lng","lat"],yo=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=vo,i.type="geo",
// Only store specified name coord via `addGeoCoord`.
i._nameCoordMap=A.createHashMap(),i.map=n;var a,o=r.projection,s=Ua(n,r.nameMap,r.nameProperty),c=za(n),l=(i.resourceType=c?c.type:null,i.regions=s.regions),u=mo[c.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o,o)
// Can't reuse the raw bounding rect
for(var h=0;h<l.length;h++){var f=l[h].getBoundingRect(o);(a=a||f.clone()).union(f)}else a=s.boundingRect;return i.setBoundingRect(a.x,a.y,a.width,a.height),
// aspectScale and invertLongitute actually is the parameters default raw projection.
// So we ignore them if projection is given.
// Ignore default aspect scale if projection exits.
i.aspectScale=o?1:A.retrieve2(r.aspectScale,u.aspectScale),
// Not invert longitude if projection exits.
i._invertLongitute=!o&&u.invertLongitute,i}return Object(Re.a)(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(
// Longitude is inverted.
i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new tr.a(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},
/**
   * Add geoCoord for indexing by name
   */
t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},
/**
   * Get geoCoord by name
   */
t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);
// Calculate center only on demand.
return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(A.isString(e)&&(
// Map area name to geoCoord
e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(
// projection may return null point.
e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(
// projection may return null point.
e=t.unproject(e)),e&&this.pointToProjected(e)},
/**
   * Point to projected data. Same with pointToData when projection is used.
   */
t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=Ao(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Ao(t);return r===this?r.pointToData(n):null},t}(go);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/Geo.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Ao(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",lt.b).models[0]||{}).coordinateSystem:null}
/* harmony default export */A.mixin(yo,go);var bo=yo;
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/geoCreator.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Resize method bound to the geo
 */function wo(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){
// Sample around the lng/lat rect and use projection to calculate actual bounding rect.
var a=this.projection;if(a){var o=r[0],s=r[1],c=i[0],l=i[1];r=[1/0,1/0],i=[-1/0,-1/0];
// TODO better way?
var u=function(e,t,n,o){for(var s=n-e,c=o-t,l=0;l<=100;l++){var u=l/100,h=a.project([e+s*u,t+c*u]);_r.min(r,r,h),_r.max(i,i,h)}};
// Top
u(o,s,c,s),
// Right
u(c,s,c,l),
// Bottom
u(c,l,o,l),
// Left
u(o,l,c,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var h,f,d,p=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),A=p.width/p.height*this.aspectScale,b=!1;if(g&&m&&(h=[xt.q(g[0],v),xt.q(g[1],y)],f=xt.q(m,Math.min(v,y)),isNaN(h[0])||isNaN(h[1])||isNaN(f)||(b=!0)),b)d={},A>1?(
// Width is same with size
d.width=f,d.height=f/A):(d.height=f,d.width=f*A),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{
// Use left/top/width/height
var w=e.getBoxLayoutParams();w.aspect=A,d=In.g(w,{width:v,height:y})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}
// Back compat for ECharts2, where the coord map is set on map series:
// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},
var xo=/** @class */function(){function e(){
// For deciding which dimensions to use when creating list data
this.dimensions=vo}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}
// FIXME Create each time may be slow
e.eachComponent("geo",(function(e,i){var a=e.get("map"),o=new bo(a+i,a,A.extend({nameMap:e.get("nameMap")},r(e)));o.zoomLimit=e.get("scaleLimit"),n.push(o),
// setGeoCoords(geo, geoModel);
e.coordinateSystem=o,o.model=e,
// Inject resize method
o.resize=wo,o.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));
// If has map series
var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),A.each(i,(function(e,i){var a=A.map(e,(function(e){return e.get("nameMap")})),o=new bo(i,i,A.extend({nameMap:A.mergeAll(a)},r(e[0])));o.zoomLimit=A.retrieve.apply(null,A.map(e,(function(e){return e.get("scaleLimit")}))),n.push(o),
// Inject resize method
o.resize=wo,o.resize(e[0],t),A.each(e,(function(e){e.coordinateSystem=o,function(e,t){A.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(o,e)}))})),n},
/**
   * Fill given regions array
   */
e.prototype.getFilledRegions=function(e,t,n,r){for(
// Not use the original
var i=(e||[]).slice(),a=A.createHashMap(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);var s=Ua(t,n,r);return A.each(s.regions,(function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&A.merge(n,r)})),i},e}(),Co=new xo,_o=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t,n){var r=za(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),
// Default label emphasis `show`
lt.f(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=Co.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=A.reduce(t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new Gr.a(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),A.createHashMap()),t.selectedMap||(t.selectedMap=n)},
/**
   * Get model of region.
   */
t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Gr.a(null,this,this.ecModel)},
/**
   * Format label
   * @param name Region name
   */
t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return A.isFunction(r)?(i.status=t,r(i)):A.isString(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},
// PENGING If selectedMode is null ?
t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={
// zlevel: 0,
z:0,show:!0,left:"center",top:"center",
// Default value:
// for geoSVG source: 1,
// for geoJSON source: 0.75.
aspectScale:null,
// /// Layout with center and size
// If you want to put map in a fixed size box with right aspect ratio
// This two properties may be more convenient
// layoutCenter: [50%, 50%]
// layoutSize: 100
silent:!1,
// Map type
map:"",
// Define left-top, right-bottom coords to control view
// For example, [ [180, 90], [-180, -90] ]
boundingCoords:null,
// Default on center of map
center:null,zoom:1,scaleLimit:null,
// selectedMode: false
label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(cr.a),Io=_o;
// CONCATENATED MODULE: ./node_modules/echarts/lib/action/roamHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Eo(e,t){
// Use projected coord as center because it's linear.
return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function ko(e,t,n,r){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Eo(e,s),r)),null!=o){if(n){var c=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),c)/i}
// Zoom on given point(originX, originY)
e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),h=(t.originY-e.y)*(o-1);e.x-=u,e.y-=h,e.updateTransform(),
// Get the new center
e.setCenter(Eo(e,s),r),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/event.js
var So=n("fadd"),Bo=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new ao(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Object(So.a)(e.target,(function(e){return null!=(t=Object(We.a)(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Object(We.a)(e).eventData;if(t)
// No need to traverse children.
return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(sr.a),Mo=Bo;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/geo/GeoView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/geo/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function To(e,t,n){Fa(e,t,n)}function Oo(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var a=n.coordinateSystem;Object(A.each)(a.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));
// Notice: there might be duplicated name in different regions.
var o=[];Object(A.each)(r,(function(e,t){r[t]&&o.push(t)})),i.push({geoIndex:n.componentIndex,
// Use singular, the same naming convention as the event `selectchanged`.
name:o})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",Co),e.registerComponentModel(Io),e.registerComponentView(Mo),e.registerImpl("registerMap",To),e.registerImpl("getMap",(function(e){return Ha(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),
/**
   * @payload
   * @property {string} [componentType=series]
   * @property {number} [dx]
   * @property {number} [dy]
   * @property {number} [zoom]
   * @property {number} [originX]
   * @property {number} [originY]
   */
e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var a=ko(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),
// All map series with same `map` use the same geo coordinate system
// So the center and zoom must be in sync. Include the series not selected by legend
"series"===r&&Object(A.each)(t.seriesGroup,(function(e){e.setCenter(a.center),e.setZoom(a.zoom)}))}}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/map/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/shape/BezierCurve.js
var Do=n("ac0f");
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/layoutHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* The tree layoutHelper implementation was originally copied from
* "d3.js"(https://github.com/d3/d3-hierarchy) with
* some modifications made for this project.
* (see more details in the comment of the specific method below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the licence of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/
/**
 * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing
 *       the tree.
 */
/**
 * Initialize all computational message for following algorithm.
 */
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * Computes a preliminary x coordinate for node. Before that, this function is
 * applied recursively to the children of node, as well as the function
 * apportion(). After spacing out the children by calling executeShifts(), the
 * node is placed to the midpoint of its outermost children.
 */
function Po(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!
/**
 * All other shifts, applied to the smaller subtrees between w- and w+, are
 * performed by this function.
 *
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 */
function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * The core of the algorithm. Here, a new subtree is combined with the
 * previous subtrees. Threads are used to traverse the inside and outside
 * contours of the left and right subtree up to the highest common level.
 * Whenever two nodes of the inside contours conflict, we compute the left
 * one of the greatest uncommon ancestors using the function nextAncestor()
 * and call moveSubtree() to shift the subtree and prepare the shifts of
 * smaller subtrees. Finally, we add a new thread (if necessary).
 */(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,h=s.hierNode.modifier;s=jo(s),a=No(a),s&&a;){i=jo(i),o=No(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+h-a.hierNode.prelim-l+r(s,a);f>0&&(zo(Fo(s,e,n),e,f),l+=f,c+=f),h+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!jo(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-c),a&&!No(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}
/**
 * This function is used to traverse the right contour of a subtree.
 * It returns the rightmost child of node or the thread of node. The function
 * returns null if and only if node is on the highest depth of its subtree.
 */(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * Computes all real x-coordinates by summing up the modifiers recursively.
 */function Lo(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Qo(e){return arguments.length?e:Ho}
/**
 * Transform the common coordinate to radial coordinate.
 */function Ro(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}
/**
 * Get the layout position of the whole view.
 */function jo(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}
/**
 * This function is used to traverse the left contour of a subtree (or a subforest).
 * It returns the leftmost child of node or the thread of node. The function
 * returns null if and only if node is on the highest depth of its subtree.
 */function No(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}
/**
 * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor.
 * Otherwise, returns the specified ancestor.
 */function Fo(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * Shifts the current subtree rooted at wr.
 * This is done by increasing prelim(w+) and modifier(w+) by shift.
 */function zo(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}
/**
 * The implementation of this function was originally copied from "d3.js"
 * <https://github.com/d3/d3-hierarchy/blob/4c1f038f2725d6eae2e49b61d01456400694bac4/src/tree.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 */function Ho(e,t){return e.parentNode===t.parentNode?1:2}
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/bbox.js
var Uo=n("e263"),Go=function(){this.parentPoint=[],this.childPoints=[]},Vo=/** @class */function(e){function t(t){return e.call(this,t)||this}return Object(Re.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Go},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(a[0],a[1]);var s=t.orient,c="TB"===s||"BT"===s?0:1,l=1-c,u=Object(xt.q)(t.forkPosition,1),h=[];h[c]=i[c],h[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(h[0],h[1]),e.moveTo(a[0],a[1]),h[c]=a[c],e.lineTo(h[0],h[1]),h[c]=o[c],e.lineTo(h[0],h[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var d=n[f];e.moveTo(d[0],d[1]),h[c]=d[c],e.lineTo(h[0],h[1])}},t}(s.b),Wo=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new ze.a,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){this._controller=new $i(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;"radial"===e.get("layout")?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var o=this._data;r.diff(o).add((function(t){qo(r,t)&&
// Create node and edge
Yo(r,t,null,a,e)})).update((function(t,n){var i=o.getItemGraphicEl(n);qo(r,t)?
// Update node and edge
Yo(r,t,i,a,e):i&&Jo(o,n,i,a,e)})).remove((function(t){var n=o.getItemGraphicEl(t);
// When remove a collapsed node of subtree, since the collapsed
// node haven't been initialized with a symbol element,
// you can't found it's symbol element through index.
// so if we want to remove the symbol element we should insure
// that the symbol element is not null.
n&&Jo(o,t,n,a,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])}));var i=[],a=[];Uo.d(r,i,a);
// If don't Store min max when collapse the root node after roam,
// the root node will disappear.
var o=this._min,s=this._max;
// If width or height is 0
a[0]-i[0]==0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]==0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=new go;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),c.setCenter(e.get("center"),t),c.setZoom(e.get("zoom")),
// Here we use viewCoordSys just for computing the 'position' and 'scale' of the group
this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!ea(t,n,e)})),i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Ji(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Xi(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),
// Only update label layout on zoom
n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(At.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/TreeView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function qo(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Yo(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual("style").fill,l=!1===o.isExpand&&0!==o.children.length?c:"#fff",u=e.tree.root,h=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(h.dataIndex),d=h.getLayout(),p=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:d,g=o.getLayout();a?((n=new Ze(e,t,null,{symbolInnerColor:l,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Ge.h(n,{x:g.x,y:g.y},i);var m=n.getSymbolPath();if("radial"===i.get("layout")){var v=u.children[0],y=v.getLayout(),b=v.children.length,w=void 0,x=void 0;if(g.x===y.x&&!0===o.isExpand&&v.children.length){var C={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};(w=Math.atan2(C.y-y.y,C.x-y.x))<0&&(w=2*Math.PI+w),(x=C.x<y.x)&&(w-=Math.PI)}else(w=Math.atan2(g.y-y.y,g.x-y.x))<0&&(w=2*Math.PI+w),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(x=g.x<y.x)&&(w-=Math.PI):(x=g.x>y.x)||(w-=Math.PI);var _=x?"left":"right",I=s.getModel("label"),E=I.get("rotate"),k=E*(Math.PI/180),S=m.getTextContent();S&&(m.setTextConfig({position:I.get("position")||_,rotation:null==E?-w:k,origin:"center"}),S.setStyle("verticalAlign","middle"))}
// Handle status
var B=s.get(["emphasis","focus"]),M="relative"===B?A.concatArray(o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===B?o.getAncestorsIndices():"descendant"===B?o.getDescendantIndices():null;M&&(
// Modify the focus to data indices.
Object(We.a)(n).focus=M),function(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get("edgeShape"),u=e.get("layout"),h=e.getOrient(),f=e.get(["lineStyle","curveness"]),d=e.get("edgeForkPosition"),p=c.getModel("lineStyle").getLineStyle(),g=r.__edge;
// curve edge from node -> parent
// polyline edge from node -> children
if("curve"===l)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Do.a({shape:Xo(u,h,f,i,i)})),Ge.h(g,{shape:Xo(u,h,f,a,o)},e));else if("polyline"===l)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],y=0;y<m.length;y++){var b=m[y].getLayout();v.push([b.x,b.y])}g||(g=r.__edge=new Vo({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:d}})),Ge.h(g,{shape:{parentPoint:[o.x,o.y],childPoints:v}},e)}}else 0;
// show all edge when edgeShape is 'curve', filter node `isExpand` is false when edgeShape is 'polyline'
g&&("polyline"!==l||t.isExpand)&&(g.useStyle(A.defaults({strokeNoScale:!0,fill:null},p)),Object(qe.I)(g,c,"lineStyle"),Object(qe.G)(g),s.add(g))}(i,o,u,n,p,d,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){
// NOTE: Ensure the parent elements will been blurred firstly.
// According to the return of getAncestorsIndices and getDescendantIndices
// TODO: A bit tricky.
var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===qe.d||Object(qe.H)(n.__edge,t)}})}function Ko(e,t,n,r,i){var a=$o(t.tree.root,e),o=a.source,s=a.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var l=t.getItemGraphicEl(o.dataIndex).__edge,u=c.__edge||(!1===o.isExpand||1===o.children.length?l:void 0),h=r.get("edgeShape"),f=r.get("layout"),d=r.get("orient"),p=r.get(["lineStyle","curveness"]);u&&("curve"===h?Ge.e(u,{shape:Xo(f,d,p,s,s),style:{opacity:0}},r,{cb:function(){n.remove(u)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&Ge.e(u,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(u)},removeOpt:i}))}}function $o(e,t){for(var n,r=t.parentNode===e?t:t.parentNode||t;null==(n=r.getLayout());)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function Jo(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=$o(e.tree.root,a).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Ge.e(n,{x:o.x+1,y:o.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),
// remove edge as parent node
a.children.forEach((function(t){Ko(t,e,r,i,s)})),
// remove edge as child node
Ko(a,e,r,i,s)}function Xo(e,t,n,r,i){var a,o,s,c,l,u,h,f;if("radial"===e){l=r.rawX,h=r.rawY,u=i.rawX,f=i.rawY;var d=Ro(l,h),p=Ro(l,h+(f-h)*n),g=Ro(u,f+(h-f)*n),m=Ro(u,f);return{x1:d.x||0,y1:d.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return l=r.x,h=r.y,u=i.x,f=i.y,"LR"!==t&&"RL"!==t||(a=l+(u-l)*n,o=h,s=u+(l-u)*n,c=f),"TB"!==t&&"BT"!==t||(a=l,o=h+(f-h)*n,s=u,c=f+(h-f)*n),{x1:l,y1:h,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}
/* harmony default export */var Zo=Wo,es=Object(lt.o)();
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/helper/linkSeriesData.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Link lists and struct (graph or tree)
 */function ts(e,t){if(es(r=this).mainData===r){
// Transfer datas to new main data.
var n=Object(A.extend)({},es(this).datas);n[this.dataType]=t,os(t,n,e)}else
// Modify the reference in main data to point newData.
ss(t,this.dataType,es(this).mainData,e);var r;return t}function ns(e,t){return e.struct&&e.struct.update(),t}function rs(e,t){
// cloneShallow, which brings about some fragilities, may be inappropriate
// to be exposed as an API. So for implementation simplicity we can make
// the restriction that cloneShallow of not-mainData should not be invoked
// outside, but only be invoked here.
return Object(A.each)(es(t).datas,(function(n,r){n!==t&&ss(n.cloneShallow(),r,t,e)})),t}
/**
 * Supplement method to List.
 *
 * @public
 * @param [dataType] If not specified, return mainData.
 */function is(e){var t=es(this).mainData;return null==e||null==t?t:es(t).datas[e]}
/**
 * Get list of all linked data
 */function as(){var e=es(this).mainData;return null==e?[{data:e}]:Object(A.map)(Object(A.keys)(es(e).datas),(function(t){return{type:t,data:es(e).datas[t]}}))}function os(e,t,n){es(e).datas={},Object(A.each)(t,(function(t,r){ss(t,r,e,n)}))}function ss(e,t,n,r){es(n).datas[t]=e,es(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),
// Supplement method.
e.getLinkedData=is,e.getLinkedDataAll=as}
/* harmony default export */var cs=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,os(t,n,e),
// Porxy data original methods.
Object(A.each)(n,(function(n){Object(A.each)(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(A.curry)(ts,e))}))})),
// Beyond transfer, additional features should be added to `cloneShallow`.
t.wrapMethod("cloneShallow",Object(A.curry)(rs,e)),
// Only mainData trigger change, because struct.update may trigger
// another changable methods, which may bring about dead lock.
Object(A.each)(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(A.curry)(ns,e))})),
// Make sure datas contains mainData.
Object(A.assert)(n[t.dataType]===t)},ls=/** @class */function(){function e(e,t){this.depth=0,this.height=0,
/**
     * Reference to list item.
     * Do not persistent dataIndex outside,
     * besause it may be changed by list.
     * If dataIndex -1,
     * this node is logical deleted (filtered) in list.
     */
this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}
/**
   * The node is removed.
   */return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){A.isFunction(e)&&(n=t,t=e,e=null),e=e||{},A.isString(e)&&(e={order:e});var r,i=e.order||"preorder",a=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var o=0;!r&&o<a.length;o++)a[o].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},
/**
   * Update depth and height of this subtree.
   */
e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},
/**
   * @param includeSelf Default false.
   * @return order: [root, child, grandchild, ...]
   */
e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},
/**
   * @return {Object} layout
   */
e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},
// @depcrecated
// getModel<T = unknown, S extends keyof T = keyof T>(path: S): Model<T[S]>
// eslint-disable-next-line @typescript-eslint/no-unused-vars
e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},
// TODO: TYPE More specific model
e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},
/**
   * Get item visual
   * FIXME: make return type better
   */
e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},
/**
   * index in parent's children
   */
e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},
/**
   * if this is an ancestor of another node
   *
   * @param node another node
   * @return if is ancestor
   */
e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},
/**
   * if this is an descendant of another node
   *
   * @param node another node
   * @return if is descendant
   */
e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/Tree.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Tree data structure
 */
/* harmony default export */var us=/** @class */function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},
/**
   * Update item available by list,
   * when list has been performed options like 'filterSelf' or 'map'.
   */
e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},
/**
   * Clear all layouts
   */
e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},
/**
   * data node format:
   * {
   *     name: ...
   *     value: ...
   *     children: [
   *         {
   *             name: ...
   *             value: ...
   *             children: ...
   *         },
   *         ...
   *     ]
   * }
   */
e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;!function e(t,n){var r=t.value;o=Math.max(o,A.isArray(r)?r.length:1),a.push(t);var s=new ls(Object(lt.e)(t.name,""),i);n?
/**
 * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,
 * so this function is not ready and not necessary to be public.
 */
function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):i.root=s,i._nodes.push(s);var c=t.children;if(c)for(var l=0;l<c.length;l++)e(c[l],s)}(t),i.root.updateDepthAndHeight(0);var s=Object(Vn.b)(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new Wn.a(s,n);return c.initData(a),r&&r(c),cs({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/treeHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function hs(e,t,n){if(e&&A.indexOf(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(A.isString(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}
// Not includes the given node at the last item.
function fs(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function ds(e,t){var n=fs(e);return A.indexOf(n,t)>=0}
// From root to the input node (the input node will be included).
function ps(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/TreeSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var gs=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,
// Do it self.
t.ignoreStyleOnData=!0,t}
/**
   * Init a tree data structure from data in option series
   */return Object(Re.a)(t,e),t.prototype.getInitialData=function(e){
// create a virtual root
var t={name:e.name,children:e.data},n=e.leaves||{},r=new Gr.a(n,this,this.ecModel),i=us.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}));var a=0;i.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);
// Add item.collapsed != null, because users can collapse node original in the series.data.
e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=o})),i.data},
/**
   * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'.
   * @returns {string} orient
   */
t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+"."+s,a=a.parentNode;return Object(Ei.c)("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},
// Add tree path to tooltip param
t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ps(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",
// can support the position parameters 'left', 'top','right','bottom', 'width',
// 'height' in the setOption() with 'merge' mode normal.
t.layoutMode="box",t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"view",
// the position of the whole view
left:"12%",top:"12%",right:"12%",bottom:"12%",
// the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
layout:"orthogonal",
// value can be 'polyline'
edgeShape:"curve",edgeForkPosition:"50%",
// true | false | 'move' | 'scale', see module:component/helper/RoamController.
roam:!1,
// Symbol size scale ratio in roam
nodeScaleRatio:.4,
// Default on center of graph
center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",
// borderColor: '#c23531',
borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ne.b),ms=gs;
/* harmony default export */
/**
 * Traverse the tree from top to bottom and do something
 */
function vs(e,t){for(var n,r=[e];n=r.pop();)if(
// jshint ignore:line
t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/treeLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function ys(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return In.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,a=0,o=null;"radial"===r?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=Qo((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,a=n.height,o=Qo());var s=e.getData().tree.root,c=s.children[0];if(c){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(
// jshint ignore:line
r=n.children,n.isExpand&&r.length)for(var a=r.length-1;a>=0;a--){var o=r[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}(s),
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/traversalHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Traverse the tree from bottom to top and do something
 */
function(e,t,n){for(var r,i=[e],a=[];r=i.pop();)if(
// jshint ignore:line
a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;r=a.pop();)
// jshint ignore:line
t(r,n)}(c,Po,o),s.hierNode.modifier=-c.hierNode.prelim,vs(c,Lo);var l=c,u=c,h=c;vs(c,(function(e){var t=e.getLayout().x;t<l.getLayout().x&&(l=e),t>u.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)}));var f=l===u?1:o(l,u)/2,d=f-l.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===r)p=i/(u.getLayout().x+f+d),
// here we use (node.depth - 1), bucause the real root's depth is 1
g=a/(h.depth-1||1),vs(c,(function(e){m=(e.getLayout().x+d)*p,v=(e.depth-1)*g;var t=Ro(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=a/(u.getLayout().x+f+d),p=i/(h.depth-1||1),vs(c,(function(e){v=(e.getLayout().x+d)*g,m="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=i/(u.getLayout().x+f+d),g=a/(h.depth-1||1),vs(c,(function(e){m=(e.getLayout().x+d)*p,v="TB"===y?(e.depth-1)*g:a-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/treeVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/(e,t)}))}function As(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");
// TODO Optimize
Object(A.extend)(r,n)}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/treeAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/treemapAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var bs=["treemapZoomToNode","treemapRender","treemapMove"];
// EXTERNAL MODULE: ./node_modules/echarts/lib/model/mixin/palette.js
var ws=n("4041");
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function xs(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(
// Use decal of level 1 node
var r=t;r&&r.depth>1;)r=r.parentNode;var i=Object(ws.b)(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",i)}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/TreemapSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Cs=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){
// Create a virtual root.
var n={name:e.name,children:e.data};_s(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new Gr.a({itemStyle:i},this,t);
// Used in "visual priority" in `treemapVisual.js`.
// This way is a little tricky, must satisfy the precondition:
//   1. There is no `treeNode.getModel('itemStyle.xxx')` used.
//   2. The `Model.prototype.getModel()` will not use any clone-like way.
r=e.levels=
/**
 * set default to level configuration
 */
function(e,t){var n,r,i=Object(lt.r)(t.get("color")),a=Object(lt.r)(t.get(["aria","decal","decals"]));if(!i)return;e=e||[],A.each(e,(function(e){var t=new Gr.a(e),i=t.get("color"),a=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(t.get(["itemStyle","decal"])||a&&"none"!==a)&&(r=!0)}));var o=e[0]||(e[0]={});n||(o.color=i.slice());!r&&a&&(o.decal=a.slice());return e}
/* harmony default export */(r,t);var o=A.map(r||[],(function(e){return new Gr.a(e,a,t)}),this),s=us.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?o[n.depth]:null;
// If no levelModel, we also need `designatedVisualModel`.
return e.parentModel=r||a,e}))}));
// Make sure always a new tree is created when setOption,
// in TreemapView, we check whether oldTree === newTree
// to choose mappings approach among old shapes and new shapes.
return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},
/**
   * @override
   * @param {number} dataIndex
   * @param {boolean} [mutipleSeries=false]
   */
t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Object(Ei.c)("nameValue",{name:a,value:i})},
/**
   * Add tree path to tooltip param
   *
   * @override
   * @param {number} dataIndex
   * @return {Object}
   */
t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ps(r,this),
// compatitable the previous code.
n.treePathInfo=n.treeAncestors,n},
/**
   * @public
   * @param {Object} layoutInfo {
   *                                x: containerGroup x
   *                                y: containerGroup y
   *                                width: containerGroup width
   *                                height: containerGroup height
   *                            }
   */
t.prototype.setLayoutInfo=function(e){
/**
     * @readOnly
     * @type {Object}
     */
this.layoutInfo=this.layoutInfo||{},A.extend(this.layoutInfo,e)},
/**
   * @param  {string} id
   * @return {number} index
   */
t.prototype.mapIdToIndex=function(e){
// A feature is implemented:
// index is monotone increasing with the sequence of
// input id at the first time.
// This feature can make sure that each data item and its
// mapped color have the same index between data list and
// color list at the beginning, which is useful for user
// to adjust data-color mapping.
/**
     * @private
     * @type {Object}
     */
var t=this._idIndexMap;t||(t=this._idIndexMap=A.createHashMap(),
/**
       * @private
       * @type {number}
       */
this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){xs(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={
// Disable progressive rendering
progressive:0,
// size: ['80%', '80%'],            // deprecated, compatible with ec2.
left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",
// to align specialized icon. ▷▶❒❐▼✚
zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",
// right
// bottom
emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,
// Do not use textDistance, for ellipsis rect just the same as treemap node rect.
distance:0,padding:5,position:"inside",
// formatter: null,
color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,
// formatter: null,
// color: '#fff',
overflow:"truncate",
// align: null,
verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],
// level[n].color (if necessary).
// + Specify color list of each level. level[0].color would be global
// color list if not specified. (see method `setDefault`).
// + But set as a empty array to forbid fetch color from global palette
// when using nodeModel.get('color'), otherwise nodes on deep level
// will always has color palette set and are not able to inherit color
// from parent node.
// + TreemapSeries.color can not be set as 'none', otherwise effect
// legend color fetching (see seriesColor.js).
colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,
// be rendered. Only works when sort is 'asc' or 'desc'.
childrenVisibleMin:null,
// grandchildren will not show.
// Why grandchildren? If not grandchildren but children,
// some siblings show children and some not,
// the appearance may be mess and not consistent,
levels:[]},t}(Ne.b);
/**
 * @param {Object} dataNode
 */function _s(e){
// Postorder travel tree.
// If value of none-leaf node is not set,
// calculate it by suming up the value of all children.
var t=0;A.each(e.children,(function(e){_s(e);var n=e.value;A.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;A.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),
// Value should not less than 0.
n<0&&(n=0),A.isArray(e.value)?e.value[0]=n:e.value=n}var Is=Cs,Es=n("80f0");
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/DataDiffer.js
function ks(e,t,n,r,i,a){var o=[[i?e:e-5,t],[e+n,t],[e+n,t+r],[i?e:e-5,t+r]];return!a&&o.splice(2,0,[e+n+5,t+r/2]),!i&&o.push([e,t+r/2]),o}
// Package custom mouse event.
function Ss(e,t,n){Object(We.a)(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ps(n,t)}}
/* harmony default export */var Bs=/** @class */function(){function e(e){this.group=new ze.a,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),c=o.getModel("textStyle"),l=s.getModel(["itemStyle","textStyle"]),u={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,c),this._renderContent(e,u,o,s,c,l,r),In.i(a,u.pos,u.box)}},
/**
   * Prepare render list and total width
   * @private
   */
e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Object(lt.e)(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+16,t.emptyItemWidth);t.totalWidth+=o+8,t.renderList.push({node:r,text:i,width:o})}},
/**
   * @private
   */
e.prototype._renderContent=function(e,t,n,r,i,a,o){for(
// Start rendering.
var s=0,c=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=In.e(t.pos,t.box),h=t.totalWidth,f=t.renderList,d=r.getModel("itemStyle").getItemStyle(),p=f.length-1;p>=0;p--){var g=f[p],m=g.node,v=g.width,y=g.text;
// Hdie text and shorten width if necessary.
h>u.width&&(h-=v-c,v=c,y=null);var b=new Ci.a({shape:{points:ks(s,0,v,l,p===f.length-1,0===p)},style:Object(A.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new K.a({style:Object(Je.c)(i,{text:y})}),textConfig:{position:"inside"},z2:1e4*qe.j,onclick:Object(A.curry)(o,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Object(Je.c)(a,{text:y}),b.ensureState("emphasis").style=d,Object(qe.J)(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),Ss(b,e,m),s+=v+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),Ms=/** @class */function(){function e(){this._storage=[],this._elExistsMap={}}
/**
   * Caution: a el can only be added once, otherwise 'done'
   * might not be called. This method checks this (by el.id),
   * suppresses adding and returns false when existing el found.
   *
   * @return Whether adding succeeded.
   */return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},
/**
   * Only execute when animation done/aborted.
   */
e.prototype.finished=function(e){return this._finishedCallback=e,this},
/**
   * Will stop exist animation firstly.
   */
e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(
// Guard.
e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/animation.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Animate multiple elements with a single done-callback.
 *
 * @example
 *  animation
 *      .createWrap()
 *      .add(el1, {x: 10, y: 10})
 *      .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)
 *      .done(function () { // done })
 *      .start('cubicOut');
 */
// EXTERNAL MODULE: ./node_modules/echarts/lib/model/mixin/makeStyleMapper.js
var Ts=n("282b"),Os=ze.a,Ds=bt.a,Ps="label",Ls="upperLabel",Qs=10*qe.j,Rs=2*qe.j,js=3*qe.j,Ns=Object(Ts.a)([["fill","color"],
// `borderColor` and `borderWidth` has been occupied,
// so use `stroke` to indicate the stroke of the rect.
["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Fs=function(e){
// Normal style props should include emphasis style props.
var t=Ns(e);
// Clear styles set by emphasis.
return t.stroke=t.fill=t.lineWidth=null,t},zs=Object(lt.o)(),Hs=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){var i=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(A.indexOf)(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var a=hs(r,["treemapZoomToNode","treemapRootToNode"],e),o=r&&r.type,s=e.layoutInfo,c=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&a&&l?{rootNodeGroup:l.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,h=this._giveContainerGroup(s),f=e.get("animation"),d=this._doRender(h,e,u);!f||c||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(h,d,e,u),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(
// FIXME
// 加一层containerGroup是为了clip，但是现在clip功能并没有实现。
t=this._containerGroup=new Os,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a={nodeGroup:[],background:[],content:[]},o={nodeGroup:[],background:[],content:[]},s=this._storage,c=[];function l(e,r,i,l){
/**
 * @inner
 * @return Return undefined means do not travel further.
 */
return function(e,t,n,r,i,a,o,s,c,l){
// Whether under viewRoot.
if(!o)
// Deleting nodes will be performed finally. This method just find
// element from old storage, or create new element, set them to new
// storage, and set styles.
return;
// -------------------------------------------------------------------
// Start of closure variables available in "Procedures in renderNode".
var u=o.getLayout(),h=e.getData(),f=o.getModel();if(
// Only for enabling highlight/downplay. Clear firstly.
// Because some node will not be rendered.
h.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var d=u.width,p=u.height,g=u.borderWidth,m=u.invisible,v=o.getRawIndex(),y=s&&s.getRawIndex(),b=o.viewChildren,w=u.upperHeight,x=b&&b.length,C=f.getModel("itemStyle"),_=f.getModel(["emphasis","itemStyle"]),I=f.getModel(["blur","itemStyle"]),E=f.getModel(["select","itemStyle"]),k=C.get("borderRadius")||0,S=H("nodeGroup",Os);if(!S)return;if(c.add(S),
// x,y are not set when el is above view root.
S.x=u.x||0,S.y=u.y||0,S.markRedraw(),zs(S).nodeWidth=d,zs(S).nodeHeight=p,u.isAboveViewRoot)return S;
// Background
var B=H("background",Ds,l,Rs);B&&R(S,B,x&&u.upperLabelHeight);var M=f.getModel("emphasis"),T=M.get("focus"),O=M.get("blurScope"),D=M.get("disabled"),P="ancestor"===T?o.getAncestorsIndices():"descendant"===T?o.getDescendantIndices():T;
// No children, render content.
if(x)
// Because of the implementation about "traverse" in graphic hover style, we
// can not set hover listener on the "group" of non-leaf node. Otherwise the
// hover event from the descendents will be listenered.
Object(qe.y)(S)&&Object(qe.F)(S,!1),B&&(Object(qe.F)(B,!D),
// Only for enabling highlight/downplay.
h.setItemGraphicEl(o.dataIndex,B),Object(qe.p)(B,P,O));else{var L=H("content",Ds,l,js);L&&j(S,L),B.disableMorphing=!0,B&&Object(qe.y)(B)&&Object(qe.F)(B,!1),Object(qe.F)(S,!D),
// Only for enabling highlight/downplay.
h.setItemGraphicEl(o.dataIndex,S);var Q=f.getShallow("cursor");Q&&L.attr("cursor",Q),Object(qe.p)(S,P,O)}return S;
// ----------------------------
// | Procedures in renderNode |
// ----------------------------
function R(t,n,r){var i=Object(We.a)(n);
// For tooltip.
if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:d,height:p,r:k}),m)
// If invisible, do not set visual, otherwise the element will
// change immediately before animation. We think it is OK to
// remain its origin color when moving out of the view window.
N(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,c=Fs(C);c.fill=s;var l=Ns(_);l.fill=_.get("borderColor");var u=Ns(I);u.fill=I.get("borderColor");var h=Ns(E);if(h.fill=E.get("borderColor"),r){var f=d-2*g;F(
// PENDING: convert ZRColor to ColorString for text.
n,s,a.opacity,{x:g,y:0,width:f,height:w})}
// For old bg.
else n.removeTextContent();n.setStyle(c),n.ensureState("emphasis").style=l,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(qe.G)(n)}t.add(n)}function j(t,n){var r=Object(We.a)(n);
// For tooltip.
r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(d-2*g,0),a=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:a,r:k}),m)
// If invisible, do not set visual, otherwise the element will
// change immediately before animation. We think it is OK to
// remain its origin color when moving out of the view window.
N(n);else{n.invisible=!1;var s=o.getVisual("style"),c=s.fill,l=Fs(C);l.fill=c,l.decal=s.decal;var u=Ns(_),h=Ns(I),f=Ns(E);
// PENDING: convert ZRColor to ColorString for text.
F(n,c,s.opacity,null),n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=f,Object(qe.G)(n)}t.add(n)}function N(e){
// Delay invisible setting utill animation finished,
// avoid element vanish suddenly before animation.
!e.invisible&&a.push(e)}function F(t,n,r,
// Can be null/undefined
i){var a=f.getModel(i?Ls:Ps),s=Object(lt.e)(f.get("name"),null),c=a.getShallow("show");Object(Je.g)(t,Object(Je.e)(f,i?Ls:Ps),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var h=l.style,d=Object(A.normalizeCssArray)(h.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-d[1]-d[3],0),n=Math.max((i?i.height:t.shape.height)-d[0]-d[2],0);h.width===e&&h.height===n||l.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,i,u);var p=l.getState("emphasis");z(p?p.style:null,i,u)}}function z(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+i:i}}function H(e,r,a,o){var s=null!=y&&n[e][y],c=i[e];
// Set to thisStorage
return s?(
// Remove from oldStorage
n[e][y]=null,U(c,s)):m||((s=new r)instanceof Va.c&&(s.z2=
// We cannot set all background with the same z, because the behaviour of
// drill down and roll up differ background creation sequence from tree
// hierarchy sequence, which cause lower background elements to overlap
// upper ones. So we calculate z based on depth.
// Moreover, we try to shrink down z interval to [0, 1] to avoid that
// treemap with large z overlaps other components.
function(e,t){return e*Qs+t}
/* harmony default export */(a,o)),G(c,s)),t[e][v]=s}function U(e,t){var n=e[v]={};t instanceof Os?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(A.extend)({},t.shape)}
// If a element is new, we need to find the animation start point carefully,
// otherwise it will looks strange when 'zoomToNode'.
function G(e,t){var n=e[v]={},a=o.parentNode,s=t instanceof ze.a;if(a&&(!r||"drillDown"===r.direction)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),
// When no parent old shape found, its parent is new too,
// so we can just use {x:0, y:0}.
s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}
// Fade in, user can be aware that these nodes are new.
n.fadein=!s}}(t,o,s,n,a,c,e,r,i,l)}
// Notice: When thisTree and oldTree are the same tree (see list.cloneShallow),
// the oldTree is actually losted, so we cannot find all of the old graphic
// elements from tree. So we use this strategy: make element storage, move
// from old storage to new storage, clear old storage.
!function e(t,n,r,i,a){
// When 'render' is triggered by action,
// 'this' and 'old' may be the same tree,
// we use rawIndex in that case.
i?(n=t,Object(A.each)(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new Es.a(n,t,o,o).add(s).update(s).remove(Object(A.curry)(s,null)).execute();function o(e){
// Identify by name or raw index.
return e.getId()}function s(o,s){var c=null!=o?t[o]:null,u=null!=s?n[s]:null,h=l(c,u,r,a);h&&e(c&&c.viewChildren||[],u&&u.viewChildren||[],h,i,a+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);
// Process all removing.
var u=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&Object(A.each)(e,(function(e,n){var r=t[n];Object(A.each)(e,(function(e){e&&(r.push(e),zs(e).willDelete=!0)}))})),t}(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var h=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===h.width&&f.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:function(){Object(A.each)(u,(function(e){Object(A.each)(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(A.each)(c,(function(e){e.invisible=!0,
// Setting invisible is for optimizing, so no need to set dirty,
// just mark as invisible.
e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(Object(A.isFunction)(i)?0:i)||0,s=(Object(A.isFunction)(a)?null:a)||"cubicOut",c=new Ms;
// Make delete animations.
Object(A.each)(t.willDeleteEls,(function(e,t){Object(A.each)(e,(function(e,n){if(!e.invisible){var i,a=e.parent,l=zs(a);// Always has parent, and parent is nodeGroup.
if(r&&"drillDown"===r.direction)i=a===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;l.willDelete||(
// Let node animate to right-bottom corner, cooperating with fadeout,
// which is appropriate for user understanding.
// Divided by 2 for reRoot rolling up effect.
u=l.nodeWidth/2,h=l.nodeHeight/2),i="nodeGroup"===t?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}
// TODO: do not support delay until necessary.
i&&c.add(e,i,o,0,s)}}))})),
// Make other animations
Object(A.each)(this._storage,(function(e,n){Object(A.each)(e,(function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof ze.a?null!=i.oldX&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=Object(A.extend)({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),a.style={opacity:1}):1!==e.style.opacity&&(a.style={opacity:1})),c.add(e,a,o,0,s))}))}),this),this._state="animating",c.finished(Object(A.bind)((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),
// Init controller.
t||((t=this._controller=new $i(e.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",Object(A.bind)(this._onPan,this)),t.on("zoom",Object(A.bind)(this._onZoom,this)));var r=new tr.a(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return r.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){
// These param must not be cached.
var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if("animating"!==this._state){
// These param must not be cached.
var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o,s=new tr.a(a.x,a.y,a.width,a.height),c=this._controllerHost;
// scaleLimit
o=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var f=l/c.zoom;c.zoom=l;var d=this.seriesModel.layoutInfo;
// Transform mouse coord from global to containerGroup.
t-=d.x,n-=d.y;
// Scale root bounding rect.
var p=Cr.create();Cr.translate(p,p,[-t,-n]),Cr.scale(p,p,[f,f]),Cr.translate(p,p,[t,n]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&Object(kt.k)(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Bs(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(ds(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},
/**
   * @override
   */
t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},
/**
   * @public
   * @param {number} x Global coord x.
   * @param {number} y Global coord y.
   * @return {Object} info If not found, return undefined;
   * @return {number} info.node Target node.
   * @return {number} info.offsetX x refer to target node.
   * @return {number} info.offsetY y refer to target node.
   */
t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];
// If invisible, there might be no element.
if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;
// For performance consideration, don't use 'getBoundingRect'.
if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;// Suppress visit subtree.
n={node:r,offsetX:a[0],offsetY:a[1]}}}),this),n},t.type="treemap",t}(At.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/TreemapView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Us=Hs,Gs=n("edae"),Vs=A.each,Ws=A.isObject,qs=-1,Ys=/** @class */function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=A.clone(t);this.type=r,this.mappingMethod=n,this._normalizeData=ic[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(Ks(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,A.each(t,(function(t,n){t.originIndex=n,
// piece.visual is "result visual value" but not
// a visual range, so it does not need to be normalized.
null!=t.visual&&(e.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(e){
// Hash categories.
var t=e.categories,n=e.categoryMap={},r=e.visual;
// Process visual map input.
if(Vs(t,(function(e,t){n[e]=t})),!A.isArray(r)){var i=[];A.isObject(r)?Vs(r,(function(e,t){var r=n[t];i[null!=r?r:qs]=e})):
// Is primary type, represents default visual.
i[-1]=r,r=rc(e,i)}
// Remove categories that has no visual,
// then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.
for(var a=t.length-1;a>=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}(i):Ks(i,!0):(
// mappingMethod === 'linear' or 'fixed'
A.assert("linear"!==n||i.dataExtent),Ks(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return A.bind(this._normalizeData,this)},
/**
   * List available visual types.
   *
   * @public
   * @return {Array.<string>}
   */
e.listVisualTypes=function(){return A.keys(e.visualHandlers)},
// /**
//  * @public
//  */
// static addVisualHandler(name, handler) {
//     visualHandlers[name] = handler;
// }
/**
   * @public
   */
e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},
/**
   * Convenient method.
   * Visual can be Object or Array or primary type.
   */
e.eachVisual=function(e,t,n){A.isObject(e)?A.each(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=A.isArray(t)?[]:A.isObject(t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o})),a},
/**
   * Retrieve visual properties from given object.
   */
e.retrieveVisuals=function(t){var n,r={};return t&&Vs(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},
/**
   * Give order to visual types, considering colorSaturation, colorAlpha depends on color.
   *
   * @public
   * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}
   *                                     IF Array, like: ['color', 'symbol', 'colorSaturation']
   * @return {Array.<string>} Sorted visual types.
   */
e.prepareVisualTypes=function(e){if(A.isArray(e))e=e.slice();else{if(!Ws(e))return[];var t=[];Vs(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){
// color should be front of colorSaturation, colorAlpha, ...
// symbol and symbolSize do not matter.
return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},
/**
   * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.
   * Other visuals are only depends on themself.
   */
e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},
/**
   * @param value
   * @param pieceList [{value: ..., interval: [min, max]}, ...]
   *                         Always from small to big.
   * @param findClosestWhenOutside Default to be false
   * @return index
   */
e.findPieceIndex=function(e,t,n){
// value has the higher priority.
for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(null!=s){if(s===e||A.isString(s)&&s===e+"")return a;n&&h(s,a)}}for(a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(ac(u[1],e,l[1]))return a}else if(l[1]===1/0){if(ac(u[0],l[0],e))return a}else if(ac(u[0],l[0],e)&&ac(u[1],e,l[1]))return a;n&&h(l[0],a),n&&h(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function h(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:Xs("color"),getColorMapper:function(){var e=this.option;return A.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Zs.call(this,e)}:function(t,n,r){
// If output rgb array
// which will be much faster and useful in pixel manipulation
var i=!!r;return!n&&(t=this._normalizeData(t)),r=J.fastLerp(t,e.parsedVisual,r),i?r:J.stringify(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return J.stringify(J.fastLerp(e,this.option.parsedVisual),"rgba")},category:Zs,piecewise:function(e,t){var n=nc.call(this,t);return null==n&&(n=J.stringify(J.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:ec}},colorHue:$s((function(e,t){return J.modifyHSL(e,t)})),colorSaturation:$s((function(e,t){return J.modifyHSL(e,null,t)})),colorLightness:$s((function(e,t){return J.modifyHSL(e,null,null,t)})),colorAlpha:$s((function(e,t){return J.modifyAlpha(e,t)})),decal:{applyVisual:Xs("decal"),_normalizedToVisual:{linear:null,category:Zs,piecewise:null,fixed:null}},opacity:{applyVisual:Xs("opacity"),_normalizedToVisual:tc([0,1])},liftZ:{applyVisual:Xs("liftZ"),_normalizedToVisual:{linear:ec,category:ec,piecewise:ec,fixed:ec}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:Js,category:Zs,piecewise:function(e,t){var n=nc.call(this,t);return null==n&&(n=Js.call(this,e)),n},fixed:ec}},symbolSize:{applyVisual:Xs("symbolSize"),_normalizedToVisual:tc([0,1])}},e}();
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/log.js
function Ks(e,t){var n=e.visual,r=[];A.isObject(n)?Vs(n,(function(e){r.push(e)})):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(
// Do not care visualArr.length === 0, which is illegal.
r[1]=r[0]),rc(e,r)}function $s(e){return{applyVisual:function(t,n,r){
// Only used in HSL
var i=this.mapValueToVisual(t);
// Must not be array value
r("color",e(n("color"),i))},_normalizedToVisual:tc([0,1])}}function Js(e){var t=this.option.visual;return t[Math.round(Object(xt.m)(e,[0,1],[0,t.length-1],!0))]||{};// TODO {}?
}function Xs(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Zs(e){var t=this.option.visual;return t[this.option.loop&&e!==qs?e%t.length:e]}function ec(){
// visual will be convert to array.
return this.option.visual[0]}
/**
 * Create mapped to numeric visual
 */function tc(e){return{linear:function(t){return Object(xt.m)(t,e,this.option.visual,!0)},category:Zs,piecewise:function(t,n){var r=nc.call(this,n);return null==r&&(r=Object(xt.m)(t,e,this.option.visual,!0)),r},fixed:ec}}function nc(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[Ys.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function rc(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=A.map(t,(function(e){var t=J.parse(e);return t||[0,0,0,1]}))),t}
/**
 * Normalizers by mapping methods.
 */var ic={linear:function(e){return Object(xt.m)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Ys.findPieceIndex(e,t,!0);if(null!=n)return Object(xt.m)(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;// ordinal value
return null==t?qs:t},fixed:A.noop};function ac(e,t,n){return e?t<=n:t<n}
/* harmony default export */var oc=Ys,sc=Object(lt.o)(),cc={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||lc(t,
// Visual should calculate from tree root but not view root.
{},e.getViewRoot().getAncestors(),e)}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/treemapVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function lc(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;
// Optimize
if(a&&!a.invisible&&a.isInView){var s,c=i.getModel("itemStyle"),l=function(e,t,n){var r=Object(A.extend)({},t),i=n.designatedVisualItemStyle;return Object(A.each)(["color","colorAlpha","colorSaturation"],(function(n){
// Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel
i[n]=t[n];var a=e.get(n);i[n]=null,null!=a&&(r[n]=a)})),r}(c,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),h=c.get("borderColor"),f=c.get("borderColorSaturation");null!=f&&(h=function(e,t){return null!=t?Object(J.modifyHSL)(t,null,null,e):null}(f,
// For performance, do not always execute 'calculateColor'.
s=uc(l))),u.stroke=h;var d=e.viewChildren;if(d&&d.length){var p=function(e,t,n,r,i,a){if(!a||!a.length)return;var o=fc(t,"color")||null!=i.color&&"none"!==i.color&&(fc(t,"colorAlpha")||fc(t,"colorSaturation"));if(!o)return;var s=t.get("visualMin"),c=t.get("visualMax"),l=n.dataExtent.slice();null!=s&&s<l[0]&&(l[0]=s),null!=c&&c>l[1]&&(l[1]=c);var u=t.get("colorMappingBy"),h={type:o.name,dataExtent:l,visual:o.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var f=new oc(h);return sc(f).drColorMappingBy=u,f}
// Notice: If we don't have the attribute 'colorRange', but only use
// attribute 'color' to represent both concepts of 'colorRange' and 'color',
// (It means 'colorRange' when 'color' is Array, means 'color' when not array),
// this problem will be encountered:
// If a level-1 node doesn't have children, and its siblings have children,
// and colorRange is set on level-1, then the node cannot be colored.
// So we separate 'colorRange' and 'color' to different attributes.
(0,i,a,0,l,d);
// Designate visual to children.
Object(A.each)(d,(function(e,t){
// If higher than viewRoot, only ancestors of viewRoot is needed to visit.
if(e.depth>=n.length||e===n[e.depth]){var a=function(e,t,n,r,i,a){var o=Object(A.extend)({},t);if(i){
// Only support color, colorAlpha, colorSaturation.
var s=i.type,c="color"===s&&sc(i).drColorMappingBy,l="index"===c?r:"id"===c?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(l)}return o}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/treemapLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* The treemap layout implementation was originally copied from
* "d3.js" with some modifications made for this project.
* (See more details in the comment of the method "squarify" below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/(i,l,e,t,p,r);lc(e,a,n,r)}}))}else s=uc(l),
// Apply visual to this node.
u.fill=s}}function uc(e){var t=hc(e,"color");if(t){var n=hc(e,"colorAlpha"),r=hc(e,"colorSaturation");return r&&(t=Object(J.modifyHSL)(t,null,null,r)),n&&(t=Object(J.modifyAlpha)(t,n)),t}}function hc(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function fc(e,t){
// 'colorRange', 'colorARange', 'colorSRange'.
// If not exists on this node, fetch from levels and series.
var n=e.get(t);return Object(A.isArray)(n)&&n.length?{name:t,range:n}:null}var dc=Math.max,pc=Math.min,gc=A.retrieve,mc=A.each,vc=["itemStyle","borderWidth"],yc=["itemStyle","gapWidth"],Ac=["upperLabel","show"],bc=["upperLabel","height"],wc={seriesType:"treemap",reset:function(e,t,n,r){
// Layout result in each node:
// {x, y, width, height, area, borderWidth}
var i=n.getWidth(),a=n.getHeight(),o=e.option,s=In.g(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),c=o.size||[],l=Object(xt.q)(gc(s.width,c[0]),i),u=Object(xt.q)(gc(s.height,c[1]),a),h=r&&r.type,f=hs(r,["treemapZoomToNode","treemapRootToNode"],e),d="treemapRender"===h||"treemapMove"===h?r.rootRect:null,p=e.getViewRoot(),g=fs(p);if("treemapMove"!==h){var m="treemapZoomToNode"===h?
// Return [containerWidth, containerHeight] as default.
function(e,t,n,r,i){
// If targetInfo.node exists, we zoom to the node,
// so estimate whole width and height by target node.
var a,o=(t||{}).node,s=[r,i];if(!o||o===n)return s;var c=r*i,l=c*e.option.zoomToNodeRatio;for(;a=o.parentNode;){for(
// jshint ignore:line
var u=0,h=a.children,f=0,d=h.length;f<d;f++)u+=h[f].getValue();var p=o.getValue();if(0===p)return s;l*=u/p;
// Considering border, suppose aspect ratio is 1.
var g=a.getModel(),m=g.get(vc);(l+=4*m*m+(3*m+Math.max(m,Ec(g)))*Math.pow(l,.5))>xt.a&&(l=xt.a),o=a}l<c&&(l=c);var v=Math.pow(l/c,.5);return[r*v,i*v]}
// Root position based on coord of containerGroup
(e,f,p,l,u):d?[d.width,d.height]:[l,u],v=o.sort;v&&"asc"!==v&&"desc"!==v&&(
// Default to be desc order.
v="desc");var y={squareRatio:o.squareRatio,sort:v,leafDepth:o.leafDepth};
// layout should be cleared because using updateView but not update.
p.hostTree.clearLayouts();
// TODO
// optimize: if out of view clip, do not layout.
// But take care that if do not render node out of view clip,
// how to calculate start po
var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(b),xc(p,y,!1,0),
// Supplement layout.
b=p.getLayout(),mc(g,(function(e,t){var n=(g[t+1]||p).getValue();e.setLayout(A.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var w=e.getData().tree.root;w.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;
// If targetInfo is fetched by 'retrieveTargetInfo',
// old tree and new tree are the same tree,
// so the node still exists and we can visit it.
var i=n.node,a=i.getLayout();if(!a)return r;
// Transform coord from local to container.
var o=[a.width/2,a.height/2],s=i;for(;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}
// Mark nodes visible for prunning when visual coding and rendering.
// Prunning depends on layout and root position, so we have to do it after layout.
(s,d,f),!0),e.setLayoutInfo(s),
// FIXME
// 现在没有clip功能，暂时取ec高宽。
Ic(w,
// Transform to base element coordinate system.
new tr.a(-s.x,-s.y,i,a),g,p,0)}};
/**
 * Layout treemap with squarify algorithm.
 * The original presentation of this algorithm
 * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk
 * <https://graphics.ethz.ch/teaching/scivis_common/Literature/squarifiedTreeMaps.pdf>.
 * The implementation of this algorithm was originally copied from "d3.js"
 * <https://github.com/d3/d3/blob/9cc9a875e636a1dcf36cc1e07bdf77e1ad6e2c74/src/layout/treemap.js>
 * with some modifications made for this program.
 * See the license statement at the head of this file.
 *
 * @protected
 * @param {module:echarts/data/Tree~TreeNode} node
 * @param {Object} options
 * @param {string} options.sort 'asc' or 'desc'
 * @param {number} options.squareRatio
 * @param {boolean} hideChildren
 * @param {number} depth
 */
function xc(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;
// Considering border and gap
var s=e.getModel(),c=s.get(vc),l=s.get(yc)/2,u=Ec(s),h=Math.max(c,u),f=c-l,d=h-l;e.setLayout({borderWidth:c,upperHeight:h,upperLabelHeight:u},!0);var p=(i=dc(i-2*f,0))*(a=dc(a-f-d,0)),g=
/**
 * Set area to each child, and calculate data extent for visual coding.
 */
function(e,t,n,r,i,a){var o=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var c=null!=r.leafDepth&&r.leafDepth<=a;
// leafDepth has higher priority.
if(i&&!c)return e.viewChildren=[];
// Sort children, order by desc.
o=A.filter(o,(function(e){return!e.isRemoved()})),
/**
 * Sort
 */
function(e,t){t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}))}
/**
 * Statistic
 */(o,s);var l=function(e,t,n){for(
// Calculate sum.
var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();
// Statistic data extent for latter visual coding.
// Notice: data extent should be calculate based on raw children
// but not filtered view children, otherwise visual mapping will not
// be stable when zoom (where children is filtered by visibleMin).
var o,s=e.get("visualDimension");
// The same as area dimension.
t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],mc(t,(function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)}))):o=[NaN,NaN];return{sum:r,dataExtent:o}}
/**
 * Computes the score for the specified row,
 * as the worst aspect ratio.
 */(t,o,s);if(0===l.sum)return e.viewChildren=[];if(l.sum=
/**
 * Consider 'visibleMin'. Modify viewChildren and get new sum.
 */
function(e,t,n,r,i){
// visibleMin is not supported yet when no option.sort.
if(!r)return n;
// Always travel from little value to big value.
for(var a=e.get("visibleMin"),o=i.length,s=o,c=o-1;c>=0;c--){var l=i["asc"===r?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return"asc"===r?i.splice(0,o-s):i.splice(s,o-s),n}(t,n,l.sum,s,o),0===l.sum)return e.viewChildren=[];
// Set area to each child.
for(var u=0,h=o.length;u<h;u++){var f=o[u].getValue()/l.sum*n;
// Do not use setLayout({...}, true), because it is needed to clear last layout.
o[u].setLayout({area:f})}c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0);return e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}(e,s,p,t,n,r);if(g.length){var m={x:f,y:d,width:i,height:a},v=pc(i,a),y=1/0,b=[];b.area=0;for(var w=0,x=g.length;w<x;){var C=g[w];b.push(C),b.area+=C.getLayout().area;var _=Cc(b,v,t.squareRatio);
// continue with this orientation
_<=y?(w++,y=_):(b.area-=b.pop().getLayout().area,_c(b,v,m,l,!1),v=pc(m.width,m.height),b.length=b.area=0,y=1/0)}if(b.length&&_c(b,v,m,l,!0),!n){var I=s.get("childrenVisibleMin");null!=I&&p<I&&(n=!0)}for(w=0,x=g.length;w<x;w++)xc(g[w],t,n,r+1)}}}function Cc(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)(o=e[a].getLayout().area)&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?dc(l*r/c,c/(l*i)):1/0}
/**
 * Positions the specified row of nodes. Modifies `rect`.
 */function _c(e,t,n,r,i){
// When rowFixedLength === rect.width,
// it is horizontal subdivision,
// rowFixedLength is the width of the subdivision,
// rowOtherLength is the height of the subdivision,
// and nodes will be positioned from left to right.
// wh[idx0WhenH] means: when horizontal,
//      wh[idx0WhenH] => wh[0] => 'width'.
//      xy[idx1WhenH] => xy[1] => 'y'.
var a=t===n.width?0:1,o=1-a,s=["x","y"],c=["width","height"],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var h=0,f=e.length;h<f;h++){var d=e[h],p={},g=u?d.getLayout().area/u:0,m=p[c[o]]=dc(u-2*r,0),v=n[s[a]]+n[c[a]]-l,y=h===f-1||v<g?v:g,A=p[c[a]]=dc(y-2*r,0);p[s[o]]=n[s[o]]+pc(r,m/2),p[s[a]]=l+pc(r,A/2),l+=y,d.setLayout(p,!0)}n[s[o]]+=u,n[c[o]]-=u}function Ic(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({
// isInView means: viewRoot sub tree + viewAbovePath
isInView:!0,
// invisible only means: outside view clip so that the node can not
// see but still layout for animation preparation but not render.
invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);
// Transform to child coordinate.
var c=new tr.a(t.x-a.x,t.y-a.y,t.width,t.height);mc(e.viewChildren||[],(function(e){Ic(e,c,n,r,i+1)}))}}function Ec(e){return e.get(Ac)?e.get(bc):0}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/treemap/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/categoryFilter.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function kc(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){Object(A.isNumber)(n)&&(n=i[n]);
// If in any legend component the status is not selected.
for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/categoryVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Sc(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var a=n.getName(r);
// Add prefix to avoid conflict with Object.prototype.
i["ec-"+a]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(
// Get color from palette.
s.fill=e.getColorFromPalette(a,t)),n.setItemVisual(r,"style",s);for(var c=["symbol","symbolSize","symbolKeepAspect"],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);null!=u&&n.setItemVisual(r,c[l],u)}})),
// Assign category color to visual
n.count()&&r.each((function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){Object(A.isString)(t)&&(t=i["ec-"+t]);var a=n.getItemVisual(t,"style"),o=r.ensureUniqueItemVisual(e,"style");Object(A.extend)(o,a);for(var s=["symbol","symbolSize","symbolKeepAspect"],c=0;c<s.length;c++)r.setItemVisual(e,s[c],n.getItemVisual(t,s[c]))}}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/edgeVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Bc(e){return e instanceof Array||(e=[e,e]),e}function Mc(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Bc(e.get("edgeSymbol")),i=Bc(e.get("edgeSymbolSize"));
// const colorQuery = ['lineStyle', 'color'] as const;
// const opacityQuery = ['lineStyle', 'opacity'] as const;
n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=Bc(r.getShallow("symbol",!0)),o=Bc(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(e,"style");switch(Object(A.extend)(c,s),c.stroke){case"source":var l=i.node1.getVisual("style");c.stroke=l&&l.fill;break;case"target":l=i.node2.getVisual("style");c.stroke=l&&l.fill}a[0]&&i.setVisual("fromSymbol",a[0]),a[1]&&i.setVisual("toSymbol",a[1]),o[0]&&i.setVisual("fromSymbolSize",o[0]),o[1]&&i.setVisual("toSymbolSize",o[1])}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck
var Tc="--\x3e",Oc=function(e){return e.get("autoCurveness")||null},Dc=function(e,t){var n=Oc(e),r=20,i=[];
// handler the function set
if(A.isNumber(n))r=n;else if(A.isArray(n))return void(e.__curvenessList=n);
// append length
t>r&&(r=t);
// make sure the length is even
var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},Pc=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(Tc)},Lc=function(e){var t=e.split(Tc);return[t[0],t[2],t[1]].join(Tc)},Qc=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};
/**
 * params handler
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @returns {*}
 */
/**
 * get curvature for edge
 * @param edge
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @param index
 */
function Rc(e,t,n,r){var i=Oc(t),a=A.isArray(i);if(!i)return null;var o=function(e,t){var n=Pc(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}
// if totalLen is Longer createCurveness
var l=function(e,t){return Qc(Pc(e.node1,e.node2,t),t)+Qc(Pc(e.node2,e.node1,t),t)}(e,t);Dc(t,l),e.lineStyle=e.lineStyle||{};
// if is opposite edge, must set curvenss to opposite number
var u=Pc(e.node1,e.node2,t),h=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return h[f+s];
// the opposite edge show outside
var d=Lc(u),p=Qc(d,t),g=h[s+p+f];
// isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite
return r?
// set as array may make the parity handle with the len of opposite
a?i&&0===i[0]?(p+f)%2?g:-g:((p%2?0:1)+f)%2?g:-g:(p+f)%2?g:-g:h[s+p+f]}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function jc(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),Nc(n,e)}}function Nc(e,t){e.eachEdge((function(e,n){var r=A.retrieve3(e.getModel().get(["lineStyle","curveness"]),-Rc(e,t,n,!0),0),i=_r.clone(e.node1.getLayout()),a=_r.clone(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/simpleLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Fc(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];Object(A.each)(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):
// Also {Array.<number>}, not undefined to avoid if...else... statement
r.setItemLayout(a,[NaN,NaN])}Nc(r.graph,e)}else t&&"none"!==t||jc(e)}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/graphHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function zc(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function Hc(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Uc=Math.PI,Gc=[];
/**
 * `basedOn` can be:
 * 'value':
 *     This layout is not accurate and have same bad case. For example,
 *     if the min value is very smaller than the max value, the nodes
 *     with the min value probably overlap even though there is enough
 *     space to layout them. So we only use this approach in the as the
 *     init layout of the force layout.
 *     FIXME
 *     Probably we do not need this method any more but use
 *     `basedOn: 'symbolSize'` in force layout if
 *     delay its init operations to GraphView.
 * 'symbolSize':
 *     This approach work only if all of the symbol size calculated.
 *     That is, the progressive rendering is not applied to graph.
 *     FIXME
 *     If progressive rendering is applied to graph some day,
 *     probably we have to use `basedOn: 'value'`.
 */
function Vc(e,t,n,r){var i=e.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:c,cy:l}),h){if(n){var f=i.pointToData(r),d=f[0],p=f[1],g=[d-c,p-l];_r.normalize(g,g),_r.scale(g,g,u),n.setLayout([c+g[0],l+g[1]],!0),qc(n,e.get(["circular","rotateLabel"]),c,l)}Wc[t](e,s,o,u,c,l,h),s.eachEdge((function(t,n){var r,i=A.retrieve3(t.getModel().get(["lineStyle","curveness"]),Rc(t,e,n),0),a=_r.clone(t.node1.getLayout()),o=_r.clone(t.node2.getLayout()),s=(a[0]+o[0])/2,u=(a[1]+o[1])/2;+i&&(r=[c*(i*=3)+s*(1-i),l*i+u*(1-i)]),t.setLayout([a,o,r])}))}}}var Wc={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum("value"),l=2*Math.PI/(c||o);t.eachNode((function(e){var t=e.getValue("value"),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n}))},symbolSize:function(e,t,n,r,i,a,o){var s=0;Gc.length=o;var c=zc(e);t.eachNode((function(e){var t=Hc(e);
// Normally this case will not happen, but we still add
// some the defensive code (2px is an arbitrary value).
isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);
// when `symbolSize / 2` is bigger than `r`.
isNaN(n)&&(n=Uc/2),Gc[e.dataIndex]=n,s+=2*n}));var l=(2*Uc-s)/o/2,u=0;t.eachNode((function(e){var t=l+Gc[e.dataIndex];u+=t,
// init circular layout for
// 1. layout undefined node
// 2. not fixed node
(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t}))}};function qc(e,t,n,r){var i=e.getGraphicEl();
// need to check if el exists. '-' value may not create node element.
if(i){var a=e.getModel().get(["label","rotate"])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=2*Math.PI+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?"left":"right";o.setTextConfig({rotation:-c,position:u,origin:"center"});var h=o.ensureState("emphasis");A.extend(h.textConfig||(h.textConfig={}),{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/circularLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Yc(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&Vc(e,"symbolSize")}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/forceHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* Some formulas were originally copied from "d3.js" with some
* modifications made for this project.
* (See more details in the comment of the method "step" below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/var Kc=_r.scaleAndAdd;
// function adjacentNode(n, e) {
//     return e.n1 === n ? e.n2 : e.n1;
// }
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/forceLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function $c(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel("force"),s=o.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Vc(e,"value"):jc(e);var c=i.getDataExtent("value"),l=a.getDataExtent("value"),u=o.get("repulsion"),h=o.get("edgeLength"),f=A.isArray(u)?u:[u,u],d=A.isArray(h)?h:[h,h];
// Larger value has smaller length
d=[d[1],d[0]];var p=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=Object(xt.m)(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=a.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),a=Object(xt.m)(t,l,d);isNaN(a)&&(a=(d[0]+d[1])/2);var o=i.getModel(),s=A.retrieve3(i.getModel().get(["lineStyle","curveness"]),-Rc(i,e,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=function(e,t,n){
// for (let i = 0; i < edges.length; i++) {
//     let e = edges[i];
//     let n1 = e.n1;
//     let n2 = e.n2;
//     n1.edges = n1.edges || [];
//     n2.edges = n2.edges || [];
//     n1.edges.push(e);
//     n2.edges.push(e);
// }
// Init position
for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=null==n.gravity?.1:n.gravity,u=0;u<r.length;u++){var h=r[u];h.p||(h.p=_r.create(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1])),h.pp=_r.clone(h.p),h.edges=null}
// Formula in 'Graph Drawing by Force-directed Placement'
// let k = scale * Math.sqrt(width * height / nodes.length);
// let k2 = k * k;
var f,d,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},
/**
     * Before step hook
     */
beforeStep:function(e){f=e},
/**
     * After step hook
     */
afterStep:function(e){d=e},
/**
     * Some formulas were originally copied from "d3.js"
     * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js
     * with some modifications made for this project.
     * See the license statement at the head of this file.
     */
step:function(e){f&&f(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;_r.sub(t,u.p,s.p);var h=_r.len(t)-o.d,p=u.w/(s.w+u.w);isNaN(p)&&(p=0),_r.normalize(t,t),!s.fixed&&Kc(s.p,s.p,t,p*h*g),!u.fixed&&Kc(u.p,u.p,t,-(1-p)*h*g)}}
// Gravity
for(a=0;a<n;a++)(A=r[a]).fixed||(_r.sub(t,c,A.p),
// let d = vec2.len(v12);
// vec2.scale(v12, v12, 1 / d);
// let gravityFactor = gravity;
Kc(A.p,A.p,t,l*g));
// Repulsive
// PENDING
for(a=0;a<n;a++){s=r[a];for(var m=a+1;m<n;m++){u=r[m],_r.sub(t,u.p,s.p),0===(h=_r.len(t))&&(
// Random repulse
_r.set(t,Math.random()-.5,Math.random()-.5),h=1);var v=(s.rep+u.rep)/h/h;!s.fixed&&Kc(s.pp,s.pp,t,v),!u.fixed&&Kc(u.pp,u.pp,t,-v)}}var y=[];for(a=0;a<n;a++){var A;(A=r[a]).fixed||(_r.sub(y,A.p,A.pp),Kc(A.p,A.p,y,g),_r.copy(A.pp,A.p))}var b=(g*=.992)<.01;d&&d(r,i,b),e&&e(b)}}}(p,g,{rect:m,gravity:o.get("gravity"),friction:o.get("friction")});v.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&
// Write back to layout instance
_r.copy(e[n].p,r.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,h=c.n2.p,f=l.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],_r.copy(f[0],u),_r.copy(f[1],h),+c.curveness&&(f[2]=[(u[0]+h[0])/2-(u[1]-h[1])*c.curveness,(u[1]+h[1])/2-(h[0]-u[0])*c.curveness]),l.setLayout(f)}})),e.forceLayout=v,e.preservedPoints=n,
// Step to get the layout
v.step()}else
// Remove prev injected forceLayout instance
e.forceLayout=null}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/createView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// FIXME Where to create the simple view coordinate system
function Jc(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),a=i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o=[],s=[];Uo.d(a,o,s),
// If width or height is 0
s[0]-o[0]==0&&(s[0]+=1,o[0]-=1),s[1]-o[1]==0&&(s[1]+=1,o[1]-=1);var c=(s[0]-o[0])/(s[1]-o[1]),l=function(e,t,n){var r=Object(A.extend)(e.getBoxLayoutParams(),{aspect:n});return Object(In.g)(r,{width:t.getWidth(),height:t.getHeight()})}(e,t,c);
// FIXME If get view rect after data processed?
// Position may be NaN, use view rect instead
isNaN(c)&&(o=[l.x,l.y],s=[l.x+l.width,l.y+l.height]);var u=s[0]-o[0],h=s[1]-o[1],f=l.width,d=l.height,p=e.coordinateSystem=new go;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(o[0],o[1],u,h),p.setViewRect(l.x,l.y,f,d),
// Update roam info
p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/LinePath.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Line path for bezier and straight line draw
 */var Xc=Ur.a.prototype,Zc=Do.a.prototype,el=function(){
// Start point
this.x1=0,this.y1=0,
// End point
this.x2=0,this.y2=0,this.percent=1};/** @class */!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(Re.a)(t,e)}(el);function tl(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var nl=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(Re.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new el},t.prototype.buildPath=function(e,t){tl(t)?Xc.buildPath.call(this,e,t):Zc.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return tl(this.shape)?Xc.pointAt.call(this,e):Zc.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=tl(t)?[t.x2-t.x1,t.y2-t.y1]:Zc.tangentAt.call(this,e);return _r.normalize(n,n)},t}(s.b),rl=["fromSymbol","toSymbol"];
/* harmony default export */function il(e){return"_"+e+"Type"}function al(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),c=Fe.c(i);return r+c+Fe.b(o||0,c)+(a||"")+(s||"")}
/**
 * @inner
 */function ol(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),c=Fe.c(i),l=Fe.b(o||0,c),u=Fe.a(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function sl(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var cl=/** @class */function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return Object(Re.a)(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new nl({name:"line",subPixelOptimize:!0});return sl(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,Ge.c(i,{shape:{percent:1}},r,t),this.add(i),Object(A.each)(rl,(function(n){var r=ol(n,e,t);
// symbols must added after line to make sure
// it will be updated after line#update.
// Or symbol position and rotation update in line#beforeUpdate will be one frame slow
this.add(r),this[il(n)]=al(n,e,t)}),this),this._updateCommonStl(e,t,n)},
// TODO More strict on the List type in parameters?
t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=e.getItemLayout(t),o={shape:{}};sl(o.shape,a),Ge.h(i,o,r,t),Object(A.each)(rl,(function(n){var r=al(n,e,t),i=il(n);
// Symbol changed
if(this[i]!==r){this.remove(this.childOfName(n));var a=ol(n,e,t);this.add(a)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,h=n&&n.blurScope;
// Optimization for large dataset
if(!n||e.hasItemOption){var f=e.getItemModel(t),d=f.getModel("emphasis");a=d.getModel("lineStyle").getLineStyle(),o=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),l=d.get("disabled"),u=d.get("focus"),h=d.get("blurScope"),c=Object(Je.e)(f)}var p=e.getItemVisual(t,"style"),g=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,i.ensureState("blur").style=o,i.ensureState("select").style=s,
// Update symbol
Object(A.each)(rl,(function(e){var t=this.childOfName(e);if(t){
// Share opacity and color with line.
t.setColor(g),t.style.opacity=p.opacity;for(var n=0;n<qe.g.length;n++){var r=qe.g[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||(s.style={});null!=o.stroke&&(c[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(c.opacity=o.opacity)}}t.markRedraw()}}),this);var m=r.getRawValue(t);Object(Je.g)(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?Object(xt.w)(m):m)+""});var v=this.getTextContent();
// Always set `textStyle` even if `normalStyle.text` is null, because default
// values have to be set on `normalStyle`.
if(v){var y=c.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,
// 'start', 'middle', 'end'
v.__position=y.get("position")||"middle";var b=y.get("distance");Object(A.isArray)(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Object(qe.J)(this,u,h,l)},t.prototype.highlight=function(){Object(qe.r)(this)},t.prototype.downplay=function(){Object(qe.C)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");sl(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();
// Quick reject
if(t||n||r&&!r.ignore){for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName("line");
// If line not changed
// FIXME Parent scale changed
if(this.__dirty||o.__dirty){var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=_r.sub([],l,c);if(_r.normalize(u,u),t&&(t.setPosition(c),C(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),C(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,f=void 0,d=r.__labelDistance,p=d[0]*i,g=d[1]*i,m=s/2,v=o.tangentAt(m),y=[v[1],-v[0]],A=o.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var w=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(w=Math.PI+w),r.rotation=w}var x=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-g,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=g,f="top";break;default:x=0,f="middle"}switch(r.__position){case"end":r.x=u[0]*p+l[0],r.y=u[1]*g+l[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",f=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":r.x=-u[0]*p+c[0],r.y=-u[1]*g+c[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",f=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*b+c[0],r.y=c[1]+x,h=v[0]<0?"right":"left",r.originX=-p*b,r.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=A[0],r.y=A[1]+x,h="center",r.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*b+l[0],r.y=l[1]+x,h=v[0]>=0?"right":"left",r.originX=p*b,r.originY=-x}r.scaleX=r.scaleY=i,r.setStyle({
// Use the user specified text align and baseline first
verticalAlign:r.__verticalAlign||f,align:r.__align||h})}}}function C(e,t){
// Fix #12388
// when symbol is set to be 'arrow' in markLine,
// symbolRotate value will be ignored, and compulsively use tangent angle.
// rotate by default if symbol rotation is not specified
var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(ze.a);
/* harmony default export */function ll(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(Je.e)(t)}}function ul(e){return isNaN(e[0])||isNaN(e[1])}function hl(e){return e&&!ul(e[0])&&!ul(e[1])}
/* harmony default export */var fl=/** @class */function(){function e(e){this.group=new ze.a,this._LineCtor=e||cl}return e.prototype.updateData=function(e){var t=this;
// Remove progressive els.
this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,
// There is no oldLineData only when first rendering or switching from
// stream mode to normal mode, where previous elements should be removed.
i||r.removeAll();var a=ll(e);e.diff(i).add((function(n){t._doAdd(e,n,a)})).update((function(n,r){t._doUpdate(i,e,r,n,a)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;
// Do not support update layout in incremental mode.
e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ll(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){if(hl(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Ve.traverseElements(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(hl(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);hl(t.getItemLayout(r))?(a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},e}(),dl=[],pl=[],gl=[],ml=ut.h,vl=_r.distSquare,yl=Math.abs;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/adjustEdge.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Al(e,t,n){for(var r,i=e[0],a=e[1],o=e[2],s=1/0,c=n*n,l=.1,u=.1;u<=.9;u+=.1){dl[0]=ml(i[0],a[0],o[0],u),dl[1]=ml(i[1],a[1],o[1],u),(d=yl(vl(dl,t)-c))<s&&(s=d,r=u)}
// Assume the segment is monotone，Find root through Bisection method
// At most 32 iteration
for(var h=0;h<32;h++){
// let prev = t - interval;
var f=r+l;
// v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);
// v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);
pl[0]=ml(i[0],a[0],o[0],r),pl[1]=ml(i[1],a[1],o[1],r),gl[0]=ml(i[0],a[0],o[0],f),gl[1]=ml(i[1],a[1],o[1],f);var d=vl(pl,t)-c;if(yl(d)<.01)break;
// let prevDiff = v2DistSquare(v1, center) - radiusSquare;
var p=vl(gl,t)-c;l/=2,d<0?p>=0?r+=l:r-=l:p>=0?r-=l:r+=l}return r}
// Adjust edge to avoid
function bl(e,t){var n=[],r=ut.n,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var c=e.getLayout(),l=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");c.__original||(c.__original=[_r.clone(c[0]),_r.clone(c[1])],c[2]&&c.__original.push(_r.clone(c[2])));var h=c.__original;
// Quadratic curve
if(null!=c[2]){if(_r.copy(i[0],h[0]),_r.copy(i[1],h[2]),_r.copy(i[2],h[1]),l&&"none"!==l){var f=Hc(e.node1),d=Al(i,h[0],f*t);
// Subdivide and get the second
r(i[0][0],i[1][0],i[2][0],d,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],d,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&"none"!==u){f=Hc(e.node2),d=Al(i,h[1],f*t);
// Subdivide and get the first
r(i[0][0],i[1][0],i[2][0],d,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],d,n),i[1][1]=n[1],i[2][1]=n[2]}
// Copy back to layout
_r.copy(c[0],i[0]),_r.copy(c[1],i[2]),_r.copy(c[2],i[1])}
// Line
else{if(_r.copy(a[0],h[0]),_r.copy(a[1],h[1]),_r.sub(o,a[1],a[0]),_r.normalize(o,o),l&&"none"!==l){f=Hc(e.node1);_r.scaleAndAdd(a[0],a[0],o,f*t)}if(u&&"none"!==u){f=Hc(e.node2);_r.scaleAndAdd(a[1],a[1],o,-f*t)}_r.copy(c[0],a[0]),_r.copy(c[1],a[1])}}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/GraphView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function wl(e){return"view"===e.type}var xl=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){var n=new rt,r=new fl,i=this.group;this._controller=new $i(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(wl(i)){var c={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(c):Ge.h(s,c,e)}
// Fix edge contact point with node
bl(e.getGraph(),zc(e));var l=e.getData();a.updateData(l);var u=e.getEdgeData();
// TODO: TYPE
o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,f=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,f);var d=e.get("layout");l.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),a=t.getModel();if(i){
// Update draggable
i.off("drag").off("dragend");var o=a.get("draggable");o&&i.on("drag",(function(a){switch(d){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,f),h.setFixed(n),
// Write position back to layout
l.setItemLayout(n,[i.x,i.y]);break;case"circular":l.setItemLayout(n,[i.x,i.y]),
// mark node fixed
t.setLayout({fixed:!0},!0),
// recalculate circular layout
Vc(e,"symbolSize",t,[a.offsetX,a.offsetY]),r.updateLayout(e);break;default:l.setItemLayout(n,[i.x,i.y]),
// update edge
Nc(e.getGraph(),e),r.updateLayout(e)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(o,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"])&&(Object(We.a)(i).focus=t.getAdjacentDataIndices())}})),l.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(We.a)(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=l.getLayout("cx"),m=l.getLayout("cy");l.graph.eachNode((function(e){qc(e,p,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))}()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!ea(t,n,e)})),wl(e.coordinateSystem)?(i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Ji(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Xi(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),bl(e.getGraph(),zc(e)),r._lineDraw.updateLayout(),
// Only update label layout on zoom
n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=zc(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){bl(e.getGraph(),zc(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(At.a),Cl=xl;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/data/Graph.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// id may be function name of Object, add a prefix to avoid this problem.
function _l(e){return"_EC_"+e}var Il=/** @class */function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},
/**
     * @type {Object.<string, module:echarts/data/Graph.Edge>}
     * @private
     */
this._edgesMap={},this._directed=e||!1}
/**
   * If is directed graph
   */return e.prototype.isDirected=function(){return this._directed},
/**
   * Add a new node
   */
e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[_l(e)]){var r=new El(e,t);return r.hostGraph=this,this.nodes.push(r),n[_l(e)]=r,r}},
/**
   * Get node by data index
   */
e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},
/**
   * Get node by id
   */
e.prototype.getNodeById=function(e){return this._nodesMap[_l(e)]},
/**
   * Add a new edge
   */
e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(
// PENDING
A.isNumber(e)&&(e=this.nodes[e]),A.isNumber(t)&&(t=this.nodes[t]),e instanceof El||(e=r[_l(e)]),t instanceof El||(t=r[_l(t)]),e&&t){var a=e.id+"-"+t.id,o=new kl(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},
/**
   * Get edge by data index
   */
e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},
/**
   * Get edge by two linked nodes
   */
e.prototype.getEdge=function(e,t){e instanceof El&&(e=e.id),t instanceof El&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},
/**
   * Iterate all nodes
   */
e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},
/**
   * Iterate all edges
   */
e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},
/**
   * Breadth first traverse
   * Return true to stop traversing
   */
e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof El||(t=this._nodesMap[_l(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;){var s=o.shift(),c=s[i];for(a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))
// Stop traversing
return;o.push(u),u.__visited=!0}}}}},
// TODO
// depthFirstTraverse(
//     cb, startNode, direction, context
// ) {
// };
// Filter update
e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));
// Update edge
for(i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},
/**
   * @return {module:echarts/data/Graph}
   */
e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),El=/** @class */function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}
/**
   * @return {number}
   */return e.prototype.degree=function(){return this.edges.length},
/**
   * @return {number}
   */
e.prototype.inDegree=function(){return this.inEdges.length},
/**
  * @return {number}
  */
e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=A.createHashMap(),t=A.createHashMap(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var i=[r.node1],a=[r.node2],o=0;o<i.length;){var s=i[o];o++,t.set(s.dataIndex,!0);for(var c=0;c<s.inEdges.length;c++)e.set(s.inEdges[c].dataIndex,!0),i.push(s.inEdges[c].node1)}for(o=0;o<a.length;){var l=a[o];o++,t.set(l.dataIndex,!0);for(c=0;c<l.outEdges.length;c++)e.set(l.outEdges[c].dataIndex,!0),a.push(l.outEdges[c].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),kl=/** @class */function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=A.createHashMap(),t=A.createHashMap();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)e.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}for(i=0;i<r.length;){var s=r[i];i++,t.set(s.dataIndex,!0);for(o=0;o<s.outEdges.length;o++)e.set(s.outEdges[o].dataIndex,!0),r.push(s.outEdges[o].node2)}return{edge:e.keys(),node:t.keys()}},e}();function Sl(e,t){return{
/**
     * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.
     */
getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},
// TODO: TYPE stricter type.
setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}A.mixin(El,Sl("hostGraph","data")),A.mixin(kl,Sl("hostGraph","edgeData"));
/* harmony default export */var Bl=Il,Ml=n("1f39");
// EXTERNAL MODULE: ./node_modules/echarts/lib/core/CoordinateSystem.js
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Tl(e,t,n,r,i){for(
// ??? TODO
// support dataset?
var a=new Bl(r),o=0;o<e.length;o++)a.addNode(A.retrieve(
// Id, name, dataIndex
e[o].id,e[o].name,o),o);var s=[],c=[],l=0;for(o=0;o<t.length;o++){var u=t[o],h=u.source,f=u.target;
// addEdge may fail when source or target not exists
a.addEdge(h,f,l)&&(c.push(u),s.push(A.retrieve(Object(lt.e)(u.id,null),h+" > "+f)),l++)}var d,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)d=Object(je.a)(e,n);else{var g=Ml.a.get(p),m=g&&g.dimensions||[];
// FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs
// `value` dimension, but graph need `value` dimension. It's better to
// uniform this behavior.
A.indexOf(m,"value")<0&&m.concat(["value"]);var v=Object(Vn.b)(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(d=new Wn.a(v,n)).initData(e)}var y=new Wn.a(["value"],n);return y.initData(c,s),i&&i(d,y),cs({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),
// Update dataIndex of nodes and edges because invalid edge may be removed
a.update(),a}
// EXTERNAL MODULE: ./node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js
var Ol=n("f6d8"),Dl=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Re.a)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}
// Provide data for legend select
this.legendVisualProvider=new Kn(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(lt.f)(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],i=e.data||e.nodes||[],a=this;if(i&&r){Oc(
// auto curveness
n=this)&&(n.__curvenessList=[],n.__edgeMap={},
// calc the array of curveness List
Dc(n));var o=Tl(i,r,this,!0,(function(e,t){
// Overwrite nodeData.getItemModel to
e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));
// TODO Inherit resolveParentPath by default in Model#getModel?
var n=Gr.a.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=r,e}))}));return A.each(o.edges,(function(e){!
/**
 * set edgeMap with key
 * @param {number|string|module:echarts/data/Graph.Node} n1
 * @param {number|string|module:echarts/data/Graph.Node} n2
 * @param {module:echarts/model/SeriesModel} seriesModel
 * @param {number} index
 */
function(e,t,n,r){if(Oc(n)){var i=Pc(e,t,n),a=n.__edgeMap,o=a[Lc(i)];
// set direction
a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}(e.node1,e.node2,this,e.dataIndex)}),this),o.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return null!=o&&c.push(o),null!=s&&c.push(s),Object(Ei.c)("nameValue",{name:c.join(" > "),value:i.value,noValue:null==i.value})}
// dataType === 'node' or empty
return Object(Ol.a)({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=A.map(this.option.categories||[],(function(e){
// Data must has value
return null!=e.value?e:A.extend({value:0},e)})),t=new Wn.a(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"view",
// Default option for all coordinate systems
// xAxisIndex: 0,
// yAxisIndex: 0,
// polarIndex: 0,
// geoIndex: 0,
legendHoverLink:!0,layout:null,
// Configuration of circular layout
circular:{rotateLabel:!1},
// Configuration of force directed layout
force:{initLayout:null,
// Node repulsion. Can be an array to represent range.
repulsion:[0,50],gravity:.1,
// Initial friction
friction:.6,
// Edge length. Can be an array to represent range.
edgeLength:30,layoutAnimation:!0},left:"center",top:"center",
// right: null,
// bottom: null,
// width: '80%',
// height: '80%',
symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,
// Default on center of graph
center:null,zoom:1,
// Symbol size scale ratio in roam
nodeScaleRatio:.6,
// cursor: null,
// categories: [],
// data: []
// Or
// nodes: []
// links: []
// Or
// edges: []
label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ne.b),Pl=Dl,Ll={type:"graphRoam",event:"graphRoam",update:"none"};
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/graph/GraphSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/PointerPath.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Ql=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Rl=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new Ql},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(s.b);function jl(e,t){var n=null==e?"":e+"";return t&&(Object(A.isString)(t)?n=t.replace("{value}",n):Object(A.isFunction)(t)&&(n=t(e))),n}var Nl=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/GaugeView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:Object(xt.q)(n[0],t.getWidth()),cy:Object(xt.q)(n[1],t.getHeight()),r:Object(xt.q)(e.get("radius"),a/2)}}(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,l=e.getModel("axisLine"),u=l.get("roundCap")?en:wt.a,h=l.get("show"),f=l.getModel("lineStyle"),d=f.get("width"),p=[s,c];Object(Q.b)(p,!o);for(var g=(c=p[1])-(s=p[0]),m=s,v=[],y=0;h&&y<r.length;y++){
// Clamp
var b=new u({shape:{startAngle:m,endAngle:c=s+g*Math.min(Math.max(r[y][0],0),1),cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-d,r:i.r},silent:!0});b.setStyle({fill:r[y][1]}),b.setStyle(f.getLineStyle(
// Because we use sector to simulate arc
// so the properties for stroking are useless
["color","width"])),v.push(b),m=c}v.reverse(),Object(A.each)(v,(function(e){return a.add(e)}));var w=function(e){
// Less than 0
if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];
// More than 1
return r[t-1][1]};this._renderTicks(e,t,n,w,i,s,c,o,d),this._renderTitleAndDetail(e,t,n,w,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,w,i,s,c,o,d)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l,u,h=this.group,f=i.cx,d=i.cy,p=i.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),x=y.get("splitNumber"),C=Object(xt.q)(v.get("length"),p),_=Object(xt.q)(y.get("length"),p),I=a,E=(o-a)/w,k=E/x,S=v.getModel("lineStyle").getLineStyle(),B=y.getModel("lineStyle").getLineStyle(),M=v.get("distance"),T=0;T<=w;T++){
// Split line
if(l=Math.cos(I),u=Math.sin(I),v.get("show")){var O=M?M+c:c,D=new Ur.a({shape:{x1:l*(p-O)+f,y1:u*(p-O)+d,x2:l*(p-C-O)+f,y2:u*(p-C-O)+d},style:S,silent:!0});"auto"===S.stroke&&D.setStyle({stroke:r(T/w)}),h.add(D)}
// Label
if(b.get("show")){O=b.get("distance")+M;var P=jl(Object(xt.w)(T/w*(m-g)+g),b.get("formatter")),L=r(T/w),Q=l*(p-C-O)+f,R=u*(p-C-O)+d,j=b.get("rotate"),N=0;"radial"===j?(N=-I+2*Math.PI)>Math.PI/2&&(N+=Math.PI):"tangential"===j?N=-I-Math.PI/2:Object(A.isNumber)(j)&&(N=j*Math.PI/180),0===N?h.add(new K.a({style:Object(Je.c)(b,{text:P,x:Q,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:l<-.4?"left":l>.4?"right":"center"},{inheritColor:L}),silent:!0})):h.add(new K.a({style:Object(Je.c)(b,{text:P,x:Q,y:R,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:Q,originY:R,rotation:N}))}
// Axis tick
if(y.get("show")&&T!==w){O=(O=y.get("distance"))?O+c:c;for(var F=0;F<=x;F++){l=Math.cos(I),u=Math.sin(I);var z=new Ur.a({shape:{x1:l*(p-O)+f,y1:u*(p-O)+d,x2:l*(p-_-O)+f,y2:u*(p-_-O)+d},silent:!0,style:B});"auto"===B.stroke&&z.setStyle({stroke:r((T+F/x)/w)}),h.add(z),I+=k}I-=k}else I+=E}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,l){var u=this.group,h=this._data,f=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),v=e.getData(),y=v.mapDimension("value"),b=+e.get("min"),w=+e.get("max"),x=[b,w],C=[a,o];function _(t,n){var r,a=v.getItemModel(t).getModel("pointer"),o=Object(xt.q)(a.get("width"),i.r),s=Object(xt.q)(a.get("length"),i.r),c=e.get(["pointer","icon"]),l=a.get("offsetCenter"),u=Object(xt.q)(l[0],i.r),h=Object(xt.q)(l[1],i.r),f=a.get("keepAspect");
// not exist icon type will be set 'rect'
return(r=c?Object(Fe.a)(c,u-o/2,h-s,o,s,null,f):new Rl({shape:{angle:-Math.PI/2,width:o,r:s,x:u,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function I(e,t){var n=g.get("roundCap")?en:wt.a,r=g.get("overlap"),o=r?g.get("width"):l/v.count(),c=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,h=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:u}});return r&&(h.z2=Object(xt.m)(v.get(y,e),[b,w],[100,0],!0)),h}(m||p)&&(v.diff(h).add((function(t){var n=v.get(y,t);if(p){var r=_(t,a);
// TODO hide pointer on NaN value?
Ge.c(r,{rotation:-((isNaN(+n)?C[0]:Object(xt.m)(n,x,C,!0))+Math.PI/2)},e),u.add(r),v.setItemGraphicEl(t,r)}if(m){var i=I(t,a),o=g.get("clip");Ge.c(i,{shape:{endAngle:Object(xt.m)(n,x,C,o)}},e),u.add(i),
// Add data index and series index for indexing the data by element
// Useful in tooltip
Object(We.b)(e.seriesIndex,v.dataType,t,i),d[t]=i}})).update((function(t,n){var r=v.get(y,t);if(p){var i=h.getItemGraphicEl(n),o=i?i.rotation:a,s=_(t,o);s.rotation=o,Ge.h(s,{rotation:-((isNaN(+r)?C[0]:Object(xt.m)(r,x,C,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var c=f[n],l=I(t,c?c.shape.endAngle:a),A=g.get("clip");Ge.h(l,{shape:{endAngle:Object(xt.m)(r,x,C,A)}},e),u.add(l),
// Add data index and series index for indexing the data by element
// Useful in tooltip
Object(We.b)(e.seriesIndex,v.dataType,t,l),d[t]=l}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof c.a){var h=s.style;s.useStyle(Object(A.extend)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Object(xt.m)(v.get(y,e),x,[0,1],!0))),s.z2EmphasisLift=0,Object(qe.I)(s,t),Object(qe.J)(s,i,a,o)}if(m){var f=d[e];f.useStyle(v.getItemVisual(e,"style")),f.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),f.z2EmphasisLift=0,Object(qe.I)(f,t),Object(qe.J)(f,i,a,o)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),a=n.get("offsetCenter"),o=n.get("keepAspect"),s=Object(Fe.a)(i,t.cx-r/2+Object(xt.q)(a[0],t.r),t.cy-r/2+Object(xt.q)(a[1],t.r),r,r,null,o);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension("value"),c=+e.get("min"),l=+e.get("max"),u=new ze.a,h=[],f=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){h[e]=new K.a({silent:!0}),f[e]=new K.a({silent:!0})})).update((function(e,t){h[e]=a._titleEls[t],f[e]=a._detailEls[t]})).execute(),o.each((function(t){var n=o.getItemModel(t),a=o.get(s,t),g=new ze.a,m=r(Object(xt.m)(a,[c,l],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),A=i.cx+Object(xt.q)(y[0],i.r),b=i.cy+Object(xt.q)(y[1],i.r);(S=h[t]).attr({z2:p?0:2,style:Object(Je.c)(v,{x:A,y:b,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(S)}var w=n.getModel("detail");if(w.get("show")){var x=w.get("offsetCenter"),C=i.cx+Object(xt.q)(x[0],i.r),_=i.cy+Object(xt.q)(x[1],i.r),I=Object(xt.q)(w.get("width"),i.r),E=Object(xt.q)(w.get("height"),i.r),k=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:m,S=f[t],B=w.get("formatter");S.attr({z2:p?0:2,style:Object(Je.c)(w,{x:C,y:_,text:jl(a,B),width:isNaN(I)?null:I,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Object(Je.h)(S,{normal:w},a,(function(e){return jl(e,B)})),d&&Object(Je.a)(S,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return jl(o?o.interpolatedValue:a,B)}}),g.add(S)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=f},t.type="gauge",t}(At.a),Fl=Nl,zl=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){return qn(this,["value"])},t.type="series.gauge",t.defaultOption={
// zlevel: 0,
z:2,colorBy:"data",
// 默认全局居中
center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,
// 最小值
min:0,
// 最大值
max:100,
// 分割段数，默认为10
splitNumber:10,
// 坐标轴线
axisLine:{
// 默认显示，属性show控制显示与否
show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},
// 坐标轴线
progress:{
// 默认显示，属性show控制显示与否
show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},
// 分隔线
splitLine:{
// 默认显示，属性show控制显示与否
show:!0,
// 属性length控制线长
length:10,distance:10,
// 属性lineStyle（详见lineStyle）控制线条样式
lineStyle:{color:"#63677A",width:3,type:"solid"}},
// 坐标轴小标记
axisTick:{
// 属性show控制显示与否，默认不显示
show:!0,
// 每份split细分多少段
splitNumber:5,
// 属性length控制线长
length:6,distance:10,
// 属性lineStyle控制线条样式
lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,
// formatter: null,
color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,
// x, y，单位px
offsetCenter:[0,"20%"],
// 其余属性默认使用全局文本样式，详见TEXTSTYLE
color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],
// x, y，单位px
offsetCenter:[0,"40%"],
// formatter: null,
// 其余属性默认使用全局文本样式，详见TEXTSTYLE
color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ne.b),Hl=zl;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/FunnelView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Ul=["itemStyle","opacity"],Gl=/** @class */function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new Dn.a,o=new K.a;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return Object(Re.a)(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel("emphasis"),c=a.get(Ul);c=null==c?1:c,n||Object(Ge.g)(r),
// Update common style
r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:o.points}),r.style.opacity=0,Ge.c(r,{style:{opacity:c}},i,t)):Ge.h(r,{style:{opacity:c},shape:{points:o.points}},i,t),Object(qe.I)(r,a),this._updateLabel(e,t),Object(qe.J)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,"style"),l=c.fill;Object(Je.g)(
// position will not be used in setLabelStyle
i,Object(Je.e)(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:l,
// insideFill: 'auto',
outsideFill:l});var u=s.linePoints;r.setShape({points:u}),n.textGuideLineConfig={anchor:u?new Pn.a(u[0][0],u[0][1]):null},
// Make sure update style on labelText after setLabelStyle.
// Because setLabelStyle will replace a new style on it.
Ge.h(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),Object(Ln.d)(n,Object(Ln.a)(o),{
// Default use item visual color
stroke:l})},t}(Ci.a),Vl=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add((function(e){var t=new Gl(r,e);r.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);Ge.f(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(At.a),Wl=Vl,ql=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),
// Enable legend selection for each data item
// Use a function instead of direct access because data reference may changed
this.legendVisualProvider=new Kn(A.bind(this.getData,this),A.bind(this.getRawData,this)),
// Extend labelLine emphasis
this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return qn(this,{coordDimensions:["value"],encodeDefaulter:A.curry(Yn.d,this)})},t.prototype._defaultLabelLine=function(e){
// Extend labelLine emphasis
Object(lt.f)(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;
// Not show label line if `label.normal.show = false`
t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},
// Overwrite
t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),a=n.getSum(i);
// Percent is 0 if sum is 0
return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={
// zlevel: 0,                  // 一级层叠
z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,
// width: {totalWidth} - left - right,
// height: {totalHeight} - top - bottom,
// 默认取数据最小最大值
// min: 0,
// max: 100,
minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{
// color: 各异,
width:1}},itemStyle:{
// color: 各异,
borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ne.b),Yl=ql;
/**
 * Piece of pie including Sector, Label, LabelLine
 */function Kl(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),a=
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/funnelLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e,t){return In.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),o=e.get("orient"),s=a.width,c=a.height,l=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],a="ascending"===t,o=0,s=e.count();o<s;o++)i[o]=o;
// Add custom sortable function & none sortable opetion by "options.sort"
return Object(A.isFunction)(t)?i.sort(t):"none"!==t&&i.sort((function(e,t){return a?r[e]-r[t]:r[t]-r[e]})),i}(n,i),u=a.x,h=a.y,f="horizontal"===o?[Object(xt.q)(e.get("minSize"),c),Object(xt.q)(e.get("maxSize"),c)]:[Object(xt.q)(e.get("minSize"),s),Object(xt.q)(e.get("maxSize"),s)],d=n.getDataExtent(r),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(d[0],0)),null==g&&(g=d[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y=(("horizontal"===o?s:c)-v*(n.count()-1))/n.count(),b=function(e,t){
// End point index is data.count() and we assign it 0
if("horizontal"===o){var i=n.get(r,e)||0,a=Object(xt.m)(i,[p,g],f,!0),l=void 0;switch(m){case"top":l=h;break;case"center":l=h+(c-a)/2;break;case"bottom":l=h+(c-a)}return[[t,l],[t,l+a]]}var d,v=n.get(r,e)||0,y=Object(xt.m)(v,[p,g],f,!0);switch(m){case"left":d=u;break;case"center":d=u+(s-y)/2;break;case"right":d=u+s-y}return[[d,t],[d+y,t]]};"ascending"===i&&(
// From bottom to top
y=-y,v=-v,"horizontal"===o?u+=s:h+=c,l=l.reverse());for(var w=0;w<l.length;w++){var x=l[w],C=l[w+1],_=n.getItemModel(x);if("horizontal"===o){var I=_.get(["itemStyle","width"]);null==I?I=y:(I=Object(xt.q)(I,s),"ascending"===i&&(I=-I));var E=b(x,u),k=b(C,u+I);u+=I+v,n.setItemLayout(x,{points:E.concat(k.slice().reverse())})}else{var S=_.get(["itemStyle","height"]);null==S?S=y:(S=Object(xt.q)(S,c),"ascending"===i&&(S=-S));E=b(x,h),k=b(C,h+S);h+=S+v,n.setItemLayout(x,{points:E.concat(k.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var r,i,a,o,s=e.getItemModel(n),c=s.getModel("label").get("position"),l=s.getModel("labelLine"),u=e.getItemLayout(n),h=u.points,f="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(f)"insideLeft"===c?(i=(h[0][0]+h[3][0])/2+5,a=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===c?(i=(h[1][0]+h[2][0])/2-5,a=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),o=[[i,a],[i,a]];else{var d=void 0,p=void 0,g=void 0,m=void 0,v=l.get("length");"left"===c?(
// Left side
d=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,i=(g=d-v)-5,r="right"):"right"===c?(
// Right side
d=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,i=(g=d+v)+5,r="left"):"top"===c?(
// Top side
d=(h[3][0]+h[0][0])/2,a=(m=(p=(h[3][1]+h[0][1])/2)-v)-5,r="center"):"bottom"===c?(
// Bottom side
d=(h[1][0]+h[2][0])/2,a=(m=(p=(h[1][1]+h[2][1])/2)+v)+5,r="center"):"rightTop"===c?(
// RightTop side
d="horizontal"===t?h[3][0]:h[1][0],p="horizontal"===t?h[3][1]:h[1][1],"horizontal"===t?(a=(m=p-v)-5,r="center"):(i=(g=d+v)+5,r="top")):"rightBottom"===c?(
// RightBottom side
d=h[2][0],p=h[2][1],"horizontal"===t?(a=(m=p+v)+5,r="center"):(i=(g=d+v)+5,r="bottom")):"leftTop"===c?(
// LeftTop side
d=h[0][0],p="horizontal"===t?h[0][1]:h[1][1],"horizontal"===t?(a=(m=p-v)-5,r="center"):(i=(g=d-v)-5,r="right")):"leftBottom"===c?(
// LeftBottom side
d="horizontal"===t?h[1][0]:h[3][0],p="horizontal"===t?h[1][1]:h[2][1],"horizontal"===t?(a=(m=p+v)+5,r="center"):(i=(g=d-v)-5,r="right")):(
// Right side or Bottom side
d=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,"horizontal"===t?(a=(m=p+v)+5,r="center"):(i=(g=d+v)+5,r="left")),"horizontal"===t?i=g=d:a=m=p,o=[[d,p],[g,m]]}u.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:f}}))}(n)}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/funnel/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/ParallelView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var $l=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new ze.a,n._initialized=!1,n}return Object(Re.a)(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},
/**
   * @override
   */
t.prototype.render=function(e,t,n,r){
// Clear previously rendered progressive elements.
this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=Zl(e);
// First create
if(a.diff(o).add((function(e){eu(Xl(a,i,e,c,s),a,e,l)})).update((function(t,n){var r=o.getItemGraphicEl(n),i=Jl(a,t,c,s);a.setItemGraphicEl(t,r),Ge.h(r,{shape:{points:i}},e,t),Object(Ge.g)(r),eu(r,a,t,l)})).remove((function(e){var t=o.getItemGraphicEl(e);i.remove(t)})).execute(),!this._initialized){this._initialized=!0;var u=function(e,t,n){var r=e.model,i=e.getRect(),a=new bt.a({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o="horizontal"===r.get("layout")?"width":"height";return a.setShape(o,0),Ge.c(a,{shape:{width:i.width,height:i.height}},t,n),a}(s,e,(function(){
// Callback will be invoked immediately if there is no animation
setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(u)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=Zl(t),s=this._progressiveEls=[],c=e.start;c<e.end;c++){var l=Xl(r,this._dataGroup,c,a,i);l.incremental=!0,eu(l,r,c,o),s.push(l)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(At.a);function Jl(e,t,n,r){for(var i,a=[],o=0;o<n.length;o++){var s=n[o],c=e.get(e.mapDimension(s),t);i=c,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||a.push(r.dataToPoint(c,s))}return a}function Xl(e,t,n,r,i){var a=Jl(e,n,r,i),o=new Dn.a({shape:{points:a},
// silent: true,
z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function Zl(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),t=Object(xt.o)(t),Object(A.eqNaN)(t)&&(t=0),{smooth:t}}function eu(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),a=i.getModel("emphasis");Object(qe.I)(e,i,"lineStyle"),Object(qe.J)(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}
// function simpleDiff(oldData, newData, dimensions) {
//     let oldLen;
//     if (!oldData
//         || !oldData.__plProgressive
//         || (oldLen = oldData.count()) !== newData.count()
//     ) {
//         return true;
//     }
//     let dimLen = dimensions.length;
//     for (let i = 0; i < oldLen; i++) {
//         for (let j = 0; j < dimLen; j++) {
//             if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {
//                 return true;
//             }
//         }
//     }
//     return false;
// }
// FIXME put in common util?
/* harmony default export */var tu=$l,nu=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){return Object(je.a)(null,this,{useEncodeDefaulter:Object(A.bind)(ru,null,this)})},
/**
   * User can get data raw indices on 'axisAreaSelected' event received.
   *
   * @return Raw indices
   */
t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ne.b);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/ParallelSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function ru(e){
// The mapping of parallelAxis dimension to data dimension can
// be specified in parallelAxis.option.dim. For example, if
// parallelAxis.option.dim is 'dim3', it mapping to the third
// dimension of data. But `data.encode` has higher priority.
// Moreover, parallelModel.dimension should not be regarded as data
// dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];
var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(A.each)(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}
/* harmony default export */var iu=nu,au=["lineStyle","opacity"],ou={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var a=t.getItemModel(n).get(au,!0);null!=a&&(i=a)}t.ensureUniqueItemVisual(n,"style").opacity=i}),e.start,e.end)}}}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/parallelVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function su(e){!
/**
 * Create a parallel coordinate if not exists.
 * @inner
 */
function(e){if(e.parallel)return;var t=!1;A.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}
/**
 * Merge aixs definition from parallel option (if exists) to axis option.
 * @inner
 */(e),function(e){var t=lt.r(e.parallelAxis);A.each(t,(function(t){if(A.isObject(t)){var n=t.parallelIndex||0,r=lt.r(e.parallel)[n];r&&r.parallelAxisDefault&&A.merge(t,r.parallelAxisDefault,!1)}}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/parallel/ParallelView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/(e)}var cu=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(A.each)(lu,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(A.bind)(e,this))}),this)),Object(Jt.b)(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(Jt.a)(this,"_throttledDispatchExpand"),Object(A.each)(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},
/**
   * @internal
   * @param {Object} [opt] If null, cancel the last action triggering for debounce.
   */
t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},
/**
   * @internal
   */
t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(A.extend)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(sr.a),lu={mousedown:function(e){uu(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(uu(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){
// Should do nothing when brushing.
if(!this._mouseDownPoint&&uu(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,
// Jumping uses animation, and sliding suppresses animation.
animation:"jump"===r?null:{duration:0}})}}};// > 4
function uu(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}
/* harmony default export */var hu=cu,fu=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&A.merge(t,e,!0),this._initDimensions()},
/**
   * Whether series or axis is in this coordinate system.
   */
t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(
// @ts-ignore FIXME: why "never" inferred in this.option[name]?
this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=A.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){
// Can not use this.contains here, because
// initialization has not been completed yet.
return(e.get("parallelIndex")||0)===this.componentIndex}),this);A.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={
// zlevel: 0,
z:0,left:80,top:60,right:80,bottom:60,
// width: {totalWidth} - left - right,
// height: {totalHeight} - top - bottom,
layout:"horizontal",
// FIXME
// naming?
axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,
// [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.
// Do not doc to user until necessary.
axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(cr.a),du=fu,pu=/** @class */function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return Object(Re.a)(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Br.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/ParallelModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/sliderMove.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Calculate slider move result.
 * Usage:
 * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as
 * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.
 * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.
 *
 * @param delta Move length.
 * @param handleEnds handleEnds[0] can be bigger then handleEnds[1].
 *              handleEnds will be modified in this method.
 * @param extent handleEnds is restricted by extent.
 *              extent[0] should less or equals than extent[1].
 * @param handleIndex Can be 'all', means that both move the two handleEnds.
 * @param minSpan The range of dataZoom can not be smaller than that.
 *              If not set, handle0 and cross handle1. If set as a non-negative
 *              number (including `0`), handles will push each other when reaching
 *              the minSpan.
 * @param maxSpan The range of dataZoom can not be larger than that.
 * @return The input handleEnds.
 */
function gu(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];
// Notice maxSpan and minSpan can be null/undefined.
if(null!=i&&(i=vu(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=vu(s,[0,o]),i=a=vu(s,[i,a]),r=0}t[0]=vu(t[0],n),t[1]=vu(t[1],n);var c=mu(t,r);t[r]+=e;
// Restrict in extent.
var l,u=i||0,h=n.slice();return c.sign<0?h[0]+=u:h[1]-=u,t[r]=vu(t[r],h),l=mu(t,r),null!=i&&(l.sign!==c.sign||l.span<i)&&(
// If minSpan exists, 'cross' is forbidden.
t[1-r]=t[r]+c.sign*i),
// Shrink span.
l=mu(t,r),null!=a&&l.span>a&&(t[1-r]=t[r]+l.sign*a),t}function mu(e,t){var n=e[t]-e[1-t];
// If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]
// is at left of handleEnds[1] for non-cross case.
return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function vu(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/Parallel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Parallel Coordinates
 * <https://en.wikipedia.org/wiki/Parallel_coordinates>
 */var yu=A.each,Au=Math.min,bu=Math.max,wu=Math.floor,xu=Math.ceil,Cu=xt.w,_u=Math.PI;function Iu(e,t){return Au(bu(e,t[0]),t[1])}function Eu(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function ku(e,t){var n,r,i=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,c=t.winInnerIndices,l=s,u=!1;return e<c[0]?(n=e*s,r=s):e<=c[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],l=a,u=!0):(n=i-(o-1-e)*s,r=s),{position:n,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:r}}
/* harmony default export */var Su=/** @class */function(){function e(e,t,n){this.type="parallel",
/**
     * key: dimension
     */
this._axesMap=A.createHashMap(),
/**
     * key: dimension
     * value: {position: [], rotation, }
     */
this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;yu(r,(function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new pu(e,wr.a(a),[0,0],a.get("type"),r)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),
// Injection
a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this}),this)},
/**
   * Update axis scale after data processed
   */
e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},
/**
   * Update properties from series
   */
e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();yu(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),wr.i(t.scale,t.model)}),this)}}),this)},
/**
   * Resize the parallel coordinate system.
   */
e.prototype.resize=function(e,t){this._rect=In.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],c=[0,s],l=this.dimensions.length,u=Iu(t.get("axisExpandWidth"),c),h=Iu(t.get("axisExpandCount")||0,[0,l]),f=t.get("axisExpandable")&&l>3&&l>h&&h>1&&u>0&&s>0,d=t.get("axisExpandWindow");d?(e=Iu(d[1]-d[0],c),d[1]=d[0]+e):(e=Iu(u*(h-1),c),(d=[u*(t.get("axisExpandCenter")||wu(l/2))-e/2])[1]=d[0]+e);var p=(s-e)/(l-h);
// Avoid axisCollapseWidth is too small.
p<3&&(p=0);
// Find the first and last indices > ewin[0] and < ewin[1].
var g=[wu(Cu(d[0]/u,1))+1,xu(Cu(d[1]/u,1))-1],m=p/u*d[0];
// Pos in ec coordinates.
return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:f,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:d,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),yu(n,(function(t,n){var a=(r.axisExpandable?ku:Eu)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:_u/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=Cr.create();Cr.rotate(u,u,l),Cr.translate(u,u,c),
// TODO
// tick layout info
// TODO
// update dimensions info based on axis order.
this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},
/**
   * Get axis by dim.
   */
e.prototype.getAxis=function(e){return this._axesMap.get(e)},
/**
   * Convert a dim value of a single item of series data to Point.
   */
e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},
/**
   * Travel data for one time, get activeState of each data item.
   * @param start the start dataIndex that travel from.
   * @param end the next dataIndex of the last dataIndex will be travel.
   */
e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,a=this.dimensions,o=[],s=[];A.each(a,(function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(c){u="active";for(var h=e.getValues(o,l),f=0,d=a.length;f<d;f++){if("inactive"===s[f].getActiveState(h[f])){u="inactive";break}}}else u="normal";t(u,l)}},
/**
   * Whether has any activeSet.
   */
e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},
/**
   * Convert coords of each axis to Point.
   *  Return point. For example: [10, 20]
   */
e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Ve.applyTransform([e,0],n.transform)},
/**
   * Get axis layout.
   */
e.prototype.getAxisLayout=function(e){return A.clone(this._axesLayout[e])},
/**
   * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.
   */
e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];
// Out of the area of coordinate system.
if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};
// Convert the point from global to expand coordinates.
var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,c="slide",l=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];
// For dragging operation convenience, the window should not be
// slided when mouse is the center area of the window.
if(l)h&&l&&s<i*u[0]?(c="jump",o=s-i*u[2]):h&&l&&s>i*(1-u[0])?(c="jump",o=s-i*(1-u[2])):(o=s-i*u[1])>=0&&(o=s-i*(1-u[1]))<=0&&(o=0),(o*=t.axisExpandWidth/l)?gu(o,r,a,"all"):c="none";else{var f=r[1]-r[0];(r=[bu(0,a[1]*s/f-f/2)])[1]=Au(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/parallel/parallelCreator.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Parallel coordinate system creater.
 */var Bu={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var a=new Su(r,e,t);a.name="parallel_"+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)})),
// Inject the coordinateSystems into seriesModel
e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",lt.b).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},Mu=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,
/**
     * @readOnly
     */
n.activeIntervals=[],n}return Object(Re.a)(t,e),t.prototype.getAreaSelectStyle=function(){return Object(Ts.a)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},
/**
   * The code of this feature is put on AxisModel but not ParallelAxis,
   * because axisModel can be alive after echarts updating but instance of
   * ParallelAxis having been disposed. this._activeInterval should be kept
   * when action dispatched (i.e. legend click).
   *
   * @param intervals `interval.length === 0` means set all active.
   */
t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=A.clone(e);
// Normalize
if(t)for(var n=t.length-1;n>=0;n--)xt.c(t[n])},
/**
   * @param value When only attempting detect whether 'no activeIntervals set',
   *        `value` is not needed to be input.
   */
t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";
// Simple optimization
if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(cr.a);
/* harmony default export */A.mixin(Mu,hr.a);
/* harmony default export */var Tu=Mu,Ou=!0,Du=Math.min,Pu=Math.max,Lu=Math.pow,Qu="globalPan",Ru={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ju={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Nu={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Fu=0,zu=/** @class */function(e){function t(t){var n=e.call(this)||this;
/**
     * @internal
     */return n._track=[],
/**
     * @internal
     */
n._covers=[],n._handlers={},n._zr=t,n.group=new ze.a,n._uid="brushController_"+Fu++,Object(A.each)(ph,(function(e,t){this._handlers[t]=Object(A.bind)(e,this)}),n),n}
/**
   * If set to `false`, select disabled.
   */return Object(Re.a)(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;
// Consider roam, which takes globalPan too.
this._enableGlobalPan||function(e,t,n){Wi(e)[t]=n}(t,Qu,this._uid),Object(A.each)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(A.merge)(Object(A.clone)(Nu),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=Wi(e);r[t]===n&&(r[t]=null)}(e,Qu,this._uid),Object(A.each)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},
/**
   * @param panelOpts If not pass, it is global brush.
   */
t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(A.each)(e,(function(e){t[e.panelId]=Object(A.clone)(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},
// eachCover(cb, context): void {
//     each(this._covers, cb, context);
// }
/**
   * Update covers.
   * @param coverConfigList
   *        If coverConfigList is null/undefined, all covers removed.
   */
t.prototype.updateCovers=function(e){e=Object(A.map)(e,(function(e){return Object(A.merge)(Object(A.clone)(Nu),e,!0)}));var t=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new Es.a(t,e,(function(e,t){return a(e.__brushOption,t)}),a).add(o).update(o).remove((function(e){t[e]!==i&&r.group.remove(t[e])})).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function o(a,o){var s=e[a];
// Consider setOption in event listener of brushSelect,
// where updating cover when creating should be forbidden.
if(null!=o&&t[o]===i)n[a]=t[o];else{var c=n[a]=null!=o?(t[o].__brushOption=s,t[o]):Uu(r,Hu(r,s));Wu(r,c)}}},t.prototype.unmount=function(){return this.enableBrush(!1),
// container may 'removeAll' outside.
$u(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(zi.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/BrushController.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Hu(e,t){var n=mh[t.brushType].createCover(e,t);return n.__brushOption=t,Vu(n,t),e.group.add(n),n}function Uu(e,t){var n=qu(t);return n.endCreating&&(n.endCreating(e,t),Vu(t,t.__brushOption)),t}function Gu(e,t){var n=t.__brushOption;qu(t).updateCoverShape(e,t,n.range,n)}function Vu(e,t){var n=t.z;null==n&&(n=1e4),e.traverse((function(e){e.z=n,e.z2=n}))}function Wu(e,t){qu(t).updateCommon(e,t),Gu(e,t)}function qu(e){return mh[e.__brushOption.brushType]}
// return target panel or `true` (means global panel)
function Yu(e,t,n){var r,i=e._panels;if(!i)return Ou;// Global panel
var a=e._transform;return Object(A.each)(i,(function(e){e.isTargetByCursor(t,n,a)&&(r=e)})),r}
// Return a panel or true
function Ku(e,t){var n=e._panels;if(!n)return Ou;// Global panel
var r=t.__brushOption.panelId;
// User may give cover without coord sys info,
// which is then treated as global panel.
return null!=r?n[r]:Ou}function $u(e){var t=e._covers,n=t.length;return Object(A.each)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Ju(e,t){var n=Object(A.map)(e._covers,(function(e){var t=e.__brushOption,n=Object(A.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Xu(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Zu(e,t,n,r){var i=new ze.a;return i.add(new bt.a({name:"main",style:rh(n),silent:!0,draggable:!0,cursor:"move",drift:Object(A.curry)(oh,e,t,i,["n","s","w","e"]),ondragend:Object(A.curry)(Ju,t,{isEnd:!0})})),Object(A.each)(r,(function(n){i.add(new bt.a({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(A.curry)(oh,e,t,i,n),ondragend:Object(A.curry)(Ju,t,{isEnd:!0})}))})),i}function eh(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=Pu(i,6),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],h=n[1][1],f=u-a+i/2,d=h-a+i/2,p=u-o,g=h-s,m=p+i,v=g+i;nh(e,t,"main",o,s,p,g),r.transformable&&(nh(e,t,"w",c,l,a,v),nh(e,t,"e",f,l,a,v),nh(e,t,"n",c,l,m,a),nh(e,t,"s",c,d,m,a),nh(e,t,"nw",c,l,a,a),nh(e,t,"ne",f,l,a,a),nh(e,t,"sw",c,d,a,a),nh(e,t,"se",f,d,a,a))}function th(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(rh(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(A.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),a=1===n.length?ah(e,n[0]):function(e,t){var n=[ah(e,t[0]),ah(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?ju[a]+"-resize":null})}))}function nh(e,t,n,r,i,a,o){var s,c,l,u,h,f=t.childOfName(n);f&&f.setShape((s=lh(e,t,[[r,i],[r+a,i+o]]),c=Du(s[0][0],s[1][0]),l=Du(s[0][1],s[1][1]),u=Pu(s[0][0],s[1][0]),h=Pu(s[0][1],s[1][1]),{x:c,y:l,width:u-c,height:h-l}))}function rh(e){return Object(A.defaults)({strokeNoScale:!0},e.brushStyle)}function ih(e,t,n,r){var i=[Du(e,n),Du(t,r)],a=[Pu(e,n),Pu(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function ah(e,t){var n=Ve.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Ve.getTransform(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function oh(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=ch(t,i,a);Object(A.each)(r,(function(e){var t=Ru[e];s[t[0]][t[1]]+=c[t[0]]})),o.range=e.fromRectRange(ih(s[0][0],s[1][0],s[0][1],s[1][1])),Wu(t,n),Ju(t,{isEnd:!1})}function sh(e,t,n,r){var i=t.__brushOption.range,a=ch(e,n,r);Object(A.each)(i,(function(e){e[0]+=a[0],e[1]+=a[1]})),Wu(e,t),Ju(e,{isEnd:!1})}function ch(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function lh(e,t,n){var r=Ku(e,t);return r&&r!==Ou?r.clipPath(n,e._transform):Object(A.clone)(n)}function uh(e){var t=e.event;t.preventDefault&&t.preventDefault()}function hh(e,t,n){return e.childOfName("main").contain(t,n)}function fh(e,t,n,r){var i,a=e._creatingCover,o=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return Lu(i*i+a*a,.5)>6}(e)||a){if(o&&!a){"single"===s.brushMode&&$u(e);var c=Object(A.clone)(s);c.brushType=dh(c.brushType,o),c.panelId=o===Ou?null:o.panelId,a=e._creatingCover=Hu(e,c),e._covers.push(a)}if(a){var l=mh[dh(e._brushType,o)];a.__brushOption.range=l.getCreatingRange(lh(e,a,e._track)),r&&(Uu(e,a),l.updateCommon(e,a)),Gu(e,a),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&Yu(e,t,n)&&$u(e)&&(i={isEnd:r,removeOnClick:!0});return i}function dh(e,t){return"auto"===e?t.defaultBrushType:e}var ph={mousedown:function(e){if(this._dragging)
// In case some browser do not support globalOut,
// and release mouse out side the browser.
gh(this,e);else if(!e.target||!e.target.draggable){uh(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=Yu(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(
// Check active
e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}
/**
 * key: brushType
 */(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=Yu(e,t,n);
// Check whether in covers.
if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Ou||s.panelId===a.panelId)&&mh[s.brushType].contain(i[o],n[0],n[1]))
// Use cursor style set on cover.
return}a&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){uh(e);var i=fh(this,e,r,!1);i&&Ju(this,i)}},mouseup:function(e){gh(this,e)}};function gh(e,t){if(e._dragging){uh(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),a=fh(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,
// trigger event should be at final, after procedure will be nested.
a&&Ju(e,a)}}var mh={lineX:vh(0),lineY:vh(1),rect:{createCover:function(e,t){function n(e){return e}return Zu({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Xu(e);return ih(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){eh(e,t,n,r)},updateCommon:th,contain:hh},polygon:{createCover:function(e,t){var n=new ze.a;
// Do not use graphic.Polygon because graphic.Polyline do not close the
// border of the shape when drawing, which is a better experience for user.
return n.add(new Dn.a({name:"main",style:rh(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),
// Use graphic.Polygon close the shape.
t.add(new Ci.a({name:"main",draggable:!0,drift:Object(A.curry)(sh,e,t),ondragend:Object(A.curry)(Ju,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:lh(e,t,n)})},updateCommon:th,contain:hh}};function vh(e){return{createCover:function(t,n){return Zu({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Xu(t);return[Du(n[0][e],n[1][e]),Pu(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=Ku(t,n);
// If brushWidth not specified, fit the panel.
if(o!==Ou&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),eh(t,n,c,i)},updateCommon:th,contain:hh}}
/* harmony default export */var yh=zu;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/brushHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Ah(e){return e=xh(e),function(t){return Ve.clipPointsByRect(t,e)}}function bh(e,t){return e=xh(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function wh(e,t,n){var r=xh(e);return function(e,i){return r.contain(i[0],i[1])&&!ea(e,t,n)}}
// Consider width/height is negative.
function xh(e){return tr.a.create(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/ParallelAxisView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Ch=["axisLine","axisTickLabel","axisName"],_h=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new yh(n.getZr())).on("brush",A.bind(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new ze.a,this.group.add(this._axisGroup),e.get("show")){var a=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}
/* harmony default export */(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),h=A.extend({strokeContainThreshold:c},u),f=new Xr(e,h);A.each(Ch,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,e,a,c,n),Ve.groupTransition(i,this._axisGroup,e)}}},
// /**
//  * @override
//  */
// updateVisual(axisModel, ecModel, api, payload) {
//     this._brushController && this._brushController
//         .updateCovers(getCoverInfoList(axisModel));
// }
t.prototype._refreshBrushController=function(e,t,n,r,i,a){
// After filtering, axis may change, select area needs to be update.
var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,.1*Math.abs(s)),l=tr.a.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Ah(l),isTargetByCursor:wh(l,a,r),getLinearBrushOtherExtent:bh(l,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return A.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=A.map(t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));
// Do not cache these object, because the mey be changed.
// If realtime is true, action is not dispatched on drag end, because
// the drag end emits the same params with the last drag move event,
// and may have some delay when using touch pad.
(!n.option.realtime===e.isEnd||e.removeOnClick)&&
// jshint ignore:line
this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(sr.a);var Ih=_h,Eh={type:"axisAreaSelect",event:"axisAreaSelected"};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/parallelAxisAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/parallel/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var kh={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Sh(e){e.registerComponentView(hu),e.registerComponentModel(du),e.registerCoordinateSystem("parallel",Bu),e.registerPreprocessor(su),e.registerComponentModel(Tu),e.registerComponentView(Ih),Ar(e,"parallel",Tu,kh),function(e){e.registerAction(Eh,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),
/**
   * @payload
   */
e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/parallel/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/SankeyView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Bh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},Mh=/** @class */function(e){function t(t){return e.call(this,t)||this}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new Bh},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(qe.r)(this)},t.prototype.downplay=function(){Object(qe.C)(this)},t}(s.b),Th=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,
// generate a bezire Curve for each edge
i.eachEdge((function(t){var n=new Mh,r=Object(We.a)(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,l,f,d,p,g,m,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),w=t.node1.getLayout(),x=t.node1.getModel(),C=x.get("localX"),_=x.get("localY"),I=t.node2.getLayout(),E=t.node2.getModel(),k=E.get("localX"),S=E.get("localY"),B=t.getLayout();n.shape.extent=Math.max(1,B.dy),n.shape.orient=h,"vertical"===h?(i=(null!=C?C*s:w.x)+B.sy,o=(null!=_?_*c:w.y)+w.dy,l=(null!=k?k*s:I.x)+B.ty,d=i,p=o*(1-b)+(f=null!=S?S*c:I.y)*b,g=l,m=o*b+f*(1-b)):(i=(null!=C?C*s:w.x)+w.dx,o=(null!=_?_*c:w.y)+B.sy,d=i*(1-b)+(l=null!=k?k*s:I.x)*b,p=o,g=i*b+l*(1-b),m=f=(null!=S?S*c:I.y)+B.ty),n.setShape({x1:i,y1:o,x2:l,y2:f,cpx1:d,cpy1:p,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),
// Special color, use source node color or target node color
Oh(n.style,h,t);var M=""+v.get("value"),T=Object(Je.e)(v,"edgeLabel");Object(Je.g)(n,T,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,"edge",i,
// ensure edgeLabel formatter is provided
// to prevent the inheritance from `label.formatter` of the series
Object(A.retrieve3)(a,T.normal&&T.normal.get("formatter"),M),o)}},labelDataIndex:t.dataIndex,defaultText:M}),n.setTextConfig({position:"inside"});var O=v.getModel("emphasis");Object(qe.I)(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return Oh(n,h,t),n})),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var D=O.get("focus");Object(qe.J)(n,"adjacency"===D?t.getAdjacentDataIndices():"trajectory"===D?t.getTrajectoryDataIndices():D,O.get("blurScope"),O.get("disabled"))})),
// Generate a rect for each node
i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),o=r.get("localY"),u=r.getModel("emphasis"),h=r.get(["itemStyle","borderRadius"])||0,f=new bt.a({shape:{x:null!=i?i*s:n.x,y:null!=o?o*c:n.y,width:n.dx,height:n.dy,r:h},style:r.getModel("itemStyle").getItemStyle(),z2:10});Object(Je.g)(f,Object(Je.e)(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle("fill",t.getVisual("color")),f.setStyle("decal",t.getVisual("style").decal),Object(qe.I)(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),Object(We.a)(f).dataType="node";var d=u.get("focus");Object(qe.J)(f,"adjacency"===d?t.getAdjacentDataIndices():"trajectory"===d?t.getTrajectoryDataIndices():d,u.get("blurScope"),u.get("disabled"))})),l.eachItemGraphicEl((function(t,i){l.getItemModel(i).get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&a.setClipPath(
// Add animation to the view
function(e,t,n){var r=new bt.a({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ge.c(r,{shape:{width:e.width+20}},t,n),r}
/* harmony default export */(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(At.a);
/**
 * Special color, use source node color or target node color
 * @param curveProps curve's style to parse
 * @param orient direction
 * @param edge current curve data
 */
function Oh(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(A.isString)(r)&&Object(A.isString)(i)&&(e.fill=new ct.a(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}var Dh=Th,Ph=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}
/**
   * Init a graph data structure from data in option series
   */return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)null!=i[o].depth&&i[o].depth>=0&&(a[i[o].depth]=new Gr.a(i[o],this,t));return Tl(r,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}))})).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},
/**
   * Return the graphic data structure
   *
   * @return graphic data structure
   */
t.prototype.getGraph=function(){return this.getData().graph},
/**
   * Get edge data of graphic data structure
   *
   * @return data structure of list
   */
t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}
// dataType === 'node' or empty do not show tooltip by default
if("edge"===n){var i=this.getDataParams(e,n),a=i.data,o=i.value,s=a.source+" -- "+a.target;return Object(Ei.c)("nameValue",{name:s,value:o,noValue:r(o)})}
// dataType === 'node'
var c=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return Object(Ei.c)("nameValue",{name:null!=l?l+"":null,value:c,noValue:r(c)})},t.prototype.optionUpdated=function(){},
// Override Series.getDataParams()
t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t).getLayout().value;r.value=i}return r},t.type="series.sankey",t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ne.b),Lh=Ph;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/SankeySeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/sankeyLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Qh(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=
/**
 * Get the layout position of the whole view
 */
function(e,t){return In.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=i;var a=i.width,o=i.height,s=e.getGraph(),c=s.nodes,l=s.edges;!
/**
 * Compute the value of each node by summing the associated edge's value
 */
function(e){A.each(e,(function(e){var t=Wh(e.outEdges,Vh),n=Wh(e.inEdges,Vh),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}
/**
 * Compute the x-position for each node.
 *
 * Here we use Kahn algorithm to detect cycle when we traverse
 * the node to computer the initial x position.
 */(c),function(e,t,n,r,i,a,o,s,c){(function(e,t,n,r,i,a,o){
// let kx = 0;
for(
// Used to mark whether the edge is deleted. if it is deleted,
// the value is 0, otherwise it is 1.
var s=[],c=[],l=[],u=[],h=0,f=0
// Storage each node's indegree.
;f<t.length;f++)s[f]=1;for(f=0;f<e.length;f++)c[f]=e[f].inEdges.length,0===c[f]&&l.push(e[f]);var d=-1;
// Traversing nodes using topological sorting to calculate the
// horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')
// position of the nodes.
for(;l.length;){for(var p=0;p<l.length;p++){var g=l[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>d&&(d=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y];s[t.indexOf(b)]=0;var w=b.node2;0==--c[e.indexOf(w)]&&u.indexOf(w)<0&&u.push(w)}}++h,l=u,u=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var x=d>h-1?d:h-1;o&&"left"!==o&&function(e,t,n,r){if("right"===t){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}A.each(e,(function(e){Rh(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&
/**
 * All the node without outEgdes are assigned maximum x-position and
 *     be aligned in the last column.
 *
 * @param nodes.  node of sankey view.
 * @param maxDepth.  use to assign to node without outEdges as x-position.
 */
function(e,t){A.each(e,(function(e){Rh(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}
/**
 * Scale node x-position to the width
 *
 * @param nodes  node of sankey view
 * @param kx   multiple used to scale nodes
 */(e,r)}(e,o,0,x);var C="vertical"===a?(i-n)/x:(r-n)/x;!function(e,t,n){A.each(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}
/**
 * Using Gauss-Seidel iterations method to compute the node depth(y-position)
 *
 * @param nodes  node of sankey view
 * @param edges  edge of sankey view
 * @param height  the whole height of the area to draw the view
 * @param nodeGap  the vertical distance between two nodes
 *     in the same column.
 * @param iterations  the number of iterations for the algorithm
 */(e,C,a)})(e,t,n,i,a,s,c),function(e,t,n,r,i,a,o){var s=function(e,t){var n=[],r="vertical"===t?"y":"x",i=Object(lt.j)(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),A.each(i.keys,(function(e){n.push(i.buckets.get(e))})),n}
/**
 * Compute the original y-position for each node
 */(e,o);(function(e,t,n,r,i,a){var o=1/0;A.each(e,(function(e){var t=e.length,s=0;A.each(e,(function(e){s+=e.getLayout().value}));var c="vertical"===a?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)})),A.each(e,(function(e){A.each(e,(function(e,t){var n=e.getLayout().value*o;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),A.each(t,(function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)}))}
/**
 * Resolve the collision of initialized depth (y-position)
 */)(s,t,n,r,i,o),jh(s,i,n,r,o);for(var c=1;a>0;a--)
// 0.99 is a experience parameter, ensure that each iterations of
// changes as small as possible.
Nh(s,c*=.99,o),jh(s,i,n,r,o),qh(s,c,o),jh(s,i,n,r,o)}(e,t,a,i,r,o,s),
/**
 * Compute the depth(y-position) of each edge
 */
function(e,t){var n="vertical"===t?"x":"y";A.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),A.each(e,(function(e){var t=0,n=0;A.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),A.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/sankeyVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/(e,s)}(c,l,n,r,a,o,0!==A.filter(c,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function Rh(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function jh(e,t,n,r,i){var a="vertical"===i?"x":"y";A.each(e,(function(e){var o,s,c;e.sort((function(e,t){return e.getLayout()[a]-t.getLayout()[a]}));for(var l=0,u=e.length,h="vertical"===i?"dx":"dy",f=0;f<u;f++)(c=l-(s=e[f]).getLayout()[a])>0&&(o=s.getLayout()[a]+c,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[h]+t;if((
// If the bottommost node goes outside the bounds, push it back up
c=l-t-("vertical"===i?r:n))>0){o=s.getLayout()[a]-c,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(f=u-2;f>=0;--f)(c=(s=e[f]).getLayout()[a]+s.getLayout()[h]+t-l)>0&&(o=s.getLayout()[a]-c,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}}))}
/**
 * Change the y-position of the nodes, except most the right side nodes
 * @param nodesByBreadth
 * @param alpha  parameter used to adjust the nodes y-position
 */function Nh(e,t,n){A.each(e.slice().reverse(),(function(e){A.each(e,(function(e){if(e.outEdges.length){var r=Wh(e.outEdges,Fh,n)/Wh(e.outEdges,Vh);if(isNaN(r)){var i=e.outEdges.length;r=i?Wh(e.outEdges,zh,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-Gh(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Gh(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function Fh(e,t){return Gh(e.node2,t)*e.getValue()}function zh(e,t){return Gh(e.node2,t)}function Hh(e,t){return Gh(e.node1,t)*e.getValue()}function Uh(e,t){return Gh(e.node1,t)}function Gh(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Vh(e){return e.getValue()}function Wh(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}
/**
 * Change the y-position of the nodes, except most the left side nodes
 */function qh(e,t,n){A.each(e,(function(e){A.each(e,(function(e){if(e.inEdges.length){var r=Wh(e.inEdges,Hh,n)/Wh(e.inEdges,Vh);if(isNaN(r)){var i=e.inEdges.length;r=i?Wh(e.inEdges,Uh,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-Gh(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Gh(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function Yh(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;A.each(n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)})),A.each(n,(function(t){var n=new oc({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))}))}r.length&&A.each(r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sankey/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/helper/dimensionHelper.js
var Kh=n("2f45"),$h=/** @class */function(){function e(){}
/**
   * @private
   */return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},
/**
   * @override
   */
e.prototype.getInitialData=function(e,t){
// When both types of xAxis and yAxis are 'value', layout is
// needed to be specified by user. Otherwise, layout can be
// judged by which axis is category.
var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type");
// FIXME
// Consider time axis.
"category"===o?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",n=a.getOrdinalMeta(),r=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var c=["x","y"],l="horizontal"===e.layout?0:1,u=this._baseAxisDim=c[l],h=c[1-l],f=[i,a],d=f[l].get("type"),p=f[1-l].get("type"),g=e.data;
// Clone a new data for next setOption({}) usage.
// Avoid modifying current data will affect further update.
if(g&&r){var m=[];A.each(g,(function(e,t){var n;A.isArray(e)?(n=e.slice(),
// Modify current using data.
e.unshift(t)):A.isArray(e.value)?((n=A.extend({},e)).value=n.value.slice(),
// Modify current using data.
e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,y=[{name:u,type:Object(Kh.a)(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(Kh.a)(p),dimsDef:v.slice()}];return qn(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:A.curry(Yn.c,y,this)})},
/**
   * If horizontal, base axis is x, otherwise y.
   * @override
   */
e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Jh=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,
// TODO
// box width represents group size, so dimension should have 'size'.
/**
     * @see <https://en.wikipedia.org/wiki/Box_plot>
     * The meanings of 'min' and 'max' depend on user,
     * and echarts do not need to know it.
     * @readOnly
     */
n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(Re.a)(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ne.b);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/Object(A.mixin)(Jh,$h,!0);
/* harmony default export */var Xh=Jh,Zh=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;
// There is no old data only when first rendering or switching from
// stream mode to normal mode, where previous elements should be removed.
this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;r.diff(a).add((function(e){if(r.hasValue(e)){var t=nf(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}})).update((function(e,t){var n=a.getItemGraphicEl(t);
// Empty data
if(r.hasValue(e)){var s=r.getItemLayout(e);n?(Object(Ge.g)(n),rf(s,n,r,e)):n=nf(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(At.a),ef=function(){},tf=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new ef},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(s.b);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/BoxplotView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function nf(e,t,n,r,i){var a=e.ends,o=new tf({shape:{points:i?af(a,r,e):a}});return rf(e,o,t,n,i),o}function rf(e,t,n,r,i){var a=n.hostModel;(0,Ve[i?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var o=n.getItemModel(r),s=o.getModel("emphasis");Object(qe.I)(t,o),Object(qe.J)(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function af(e,t,n){return A.map(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}
/* harmony default export */var of=Zh,sf=A.each;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/boxplotLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function cf(e){var t=
/**
 * Group series by axis.
 */
function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=A.indexOf(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}
/**
 * Calculate offset and box width for each series.
 */(e);sf(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,r=e.seriesModels,i=r.length,a=e.boxWidthList=[],o=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var c=0;sf(r,(function(e){c=Math.max(c,e.getData().count())}));var l=n.getExtent();t=Math.abs(l[1]-l[0])/c}sf(r,(function(e){var n=e.get("boxWidth");A.isArray(n)||(n=[n,n]),s.push([Object(xt.q)(n[0],t)||0,Object(xt.q)(n[1],t)||0])}));var u=.8*t-2,h=u/i*.3,f=(u-h*(i-1))/i,d=f/2-u/2;sf(r,(function(e,t){o.push(d),d+=h+f,a.push(Math.min(Math.max(f,s[t][0]),s[t][1]))}))}
/**
 * Calculate points location for each series.
 */(e),sf(t,(function(t,n){!function(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,c=["x","y"],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(null==l||u.length<5)return;for(var h=0;h<i.count();h++){var f=i.get(l,h),d=A(f,u[2],h),p=A(f,u[0],h),g=A(f,u[1],h),m=A(f,u[3],h),v=A(f,u[4],h),y=[];b(y,g,!1),b(y,m,!0),y.push(p,g,v,m),w(y,p),w(y,v),w(y,d),i.setItemLayout(h,{initBaseline:d[s],ends:y})}function A(e,n,a){var c,l=i.get(n,a),u=[];return u[o]=e,u[s]=l,isNaN(e)||isNaN(l)?c=[NaN,NaN]:(c=r.dataToPoint(u))[o]+=t,c}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function w(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * See:
 *  <https://en.wikipedia.org/wiki/Box_plot#cite_note-frigge_hoaglin_iglewicz-2>
 *  <http://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/boxplot.stats.html>
 *
 * Helper method for preparing data.
 *
 * @param rawData like
 *        [
 *            [12,232,443], (raw data set for the first box)
 *            [3843,5545,1232], (raw data set for the second box)
 *            ...
 *        ]
 * @param opt.boundIQR=1.5 Data less than min bound is outlier.
 *      default 1.5, means Q1 - 1.5 * (Q3 - Q1).
 *      If 'none'/0 passed, min bound will not be used.
 */(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/types.js
var lf=n("07fd"),uf={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==lf.c){0,Object(Gs.c)("")}var n=function(e,t){for(var n=[],r=[],i=(t=t||{}).boundIQR,a="none"===i||0===i,o=0;o<e.length;o++){var s=Object(xt.c)(e[o].slice()),c=Object(xt.r)(s,.25),l=Object(xt.r)(s,.5),u=Object(xt.r)(s,.75),h=s[0],f=s[s.length-1],d=(null==i?1.5:i)*(u-c),p=a?h:Math.max(h,c-d),g=a?f:Math.min(f,u+d),m=t.itemNameFormatter,v=Object(A.isFunction)(m)?m({value:o}):Object(A.isString)(m)?m.replace("{value}",o+""):o+"";n.push([v,p,c,l,u,g]);for(var y=0;y<s.length;y++){var b=s[y];if(b<p||b>g){var w=[v,b];r.push(w)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/boxplotTransform.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/candlestickVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var hf=["itemStyle","borderColor"],ff=["itemStyle","borderColor0"],df=["itemStyle","borderColorDoji"],pf=["itemStyle","color"],gf=["itemStyle","color0"];function mf(e,t){return t.get(e>0?pf:gf)}function vf(e,t){return t.get(0===e?df:e>0?hf:ff)}var yf={seriesType:"candlestick",plan:Object(Ft.a)(),
// For legend.
performRawSeries:!0,reset:function(e,t){
// Only visible series has each data be visual encoded
if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;null!=(n=e.next());){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=mf(i,r),a.stroke=vf(i,r)||a.fill;var o=t.ensureUniqueItemVisual(n,"style");Object(A.extend)(o,a)}}}}},Af=["color","borderColor"],bf=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){
// If there is clipPath created in large mode. Remove it.
this.group.removeClipPath(),
// Clear previously rendered progressive elements.
this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Ve.traverseElements(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();
// There is no old data only when first rendering or switching from
// stream mode to normal mode, where previous elements should be removed.
this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&_f(s,o))return;var c=Cf(o,n,!0);Ge.c(c,{shape:{points:o.ends}},e,n),If(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}})).update((function(o,c){var l=n.getItemGraphicEl(c);
// Empty data
if(t.hasValue(o)){var u=t.getItemLayout(o);a&&_f(s,u)?r.remove(l):(l?(Ge.h(l,{shape:{points:u.ends}},e,o),Object(Ge.g)(l)):l=Cf(u,o),If(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l))}else r.remove(l)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Bf(e,this.group);var t=e.get("clip",!0)?It(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,r=t.getData(),i=r.getLayout("isSimpleBox");null!=(n=e.next());){var a=Cf(r.getItemLayout(n),n);If(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){Bf(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(At.a),wf=function(){},xf=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new wf},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(s.b);
/* harmony default export */function Cf(e,t,n){var r=e.ends;return new xf({shape:{points:n?Ef(r,e):r},z2:100})}function _f(e,t){for(var n=!0,r=0;r<t.ends.length;r++)
// If any point are in the region.
if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function If(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Object(qe.I)(e,i);var a=t.getItemLayout(n).sign;A.each(e.states,(function(e,t){var n=i.getModel(t),r=mf(a,n),o=vf(a,n)||r,s=e.style||(e.style={});r&&(s.fill=r),o&&(s.stroke=o)}));var o=i.getModel("emphasis");Object(qe.J)(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Ef(e,t){return A.map(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var kf=function(){},Sf=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(Re.a)(t,e),t.prototype.getDefaultShape=function(){return new kf},t.prototype.buildPath=function(e,t){for(
// Drawing lines is more efficient than drawing
// a whole line or drawing rects.
var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(s.b);function Bf(e,t,n,r){var i=e.getData(),a=i.getLayout("largePoints"),o=new Sf({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Sf({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new Sf({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),Mf(1,o,e,i),Mf(-1,s,e,i),Mf(0,c,e,i),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function Mf(e,t,n,r){
// TODO put in visual?
var i=vf(e,n)||mf(e,n),a=n.getModel("itemStyle").getItemStyle(Af);
// Color must be excluded.
// Because symbol provide setColor individually to set fill and stroke
t.useStyle(a),t.style.fill=null,t.style.stroke=i}
/* harmony default export */var Tf=bf,Of=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}
/**
   * Get dimension for shadow in dataZoom
   * @return dimension name
   */return Object(Re.a)(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={
// zlevel: 0,
z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,
// xAxisIndex: 0,
// yAxisIndex: 0,
layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,
// borderColor: '#d24040',
// borderColor0: '#398f4f',
borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ne.b);
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/Object(A.mixin)(Of,$h,!0);
/* harmony default export */var Df=Of;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/preprocessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Pf(e){e&&A.isArray(e.series)&&
// Translate 'k' to 'candlestick'.
A.each(e.series,(function(e){A.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/candlestickLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Get the sign of a single data.
 *
 * @returns 0 for doji with hasDojiColor: true,
 *          1 for positive,
 *          -1 for negative.
 */
function Lf(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}
/* harmony default export */var Qf={seriesType:"candlestick",plan:Object(Ft.a)(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=function(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Object(xt.q)(Object(A.retrieve2)(e.get("barMaxWidth"),i),i),o=Object(xt.q)(Object(A.retrieve2)(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?Object(xt.q)(s,i):Math.max(Math.min(i/2,a),o)}(e,n),i=["x","y"],a=n.getDimensionIndex(n.mapDimension(i[0])),o=Object(A.map)(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=o[0],c=o[1],l=o[2],u=o[3];if(n.setLayout({candleWidth:r,
// The value is experimented visually.
isSimpleBox:r<=1.3}),!(a<0||o.length<4))return{progress:e.pipelineContext.large?function(n,r){
// Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...]
var i,o,h=Object(st.a)(4*n.count),f=0,d=[],p=[],g=r.getStore(),m=!!e.get(["itemStyle","borderColorDoji"]);for(;null!=(o=n.next());){var v=g.get(a,o),y=g.get(s,o),A=g.get(c,o),b=g.get(l,o),w=g.get(u,o);isNaN(v)||isNaN(b)||isNaN(w)?(h[f++]=NaN,f+=3):(h[f++]=Lf(g,o,y,A,c,m),d[0]=v,d[1]=b,i=t.dataToPoint(d,null,p),h[f++]=i?i[0]:NaN,h[f++]=i?i[1]:NaN,d[1]=w,i=t.dataToPoint(d,null,p),h[f++]=i?i[1]:NaN)}r.setLayout("largePoints",h)}:function(e,n){var i,o=n.getStore();for(;null!=(i=e.next());){var h=o.get(a,i),f=o.get(s,i),d=o.get(c,i),p=o.get(l,i),g=o.get(u,i),m=Math.min(f,d),v=Math.max(f,d),y=_(m,h),A=_(v,h),b=_(p,h),w=_(g,h),x=[];I(x,A,0),I(x,y,1),x.push(k(w),k(A),k(b),k(y));var C=!!n.getItemModel(i).get(["itemStyle","borderColorDoji"]);n.setItemLayout(i,{sign:Lf(o,i,f,d,c,C),initBaseline:f>d?A[1]:y[1],ends:x,brushRect:E(p,g,h)})}function _(e,n){var r=[];return r[0]=n,r[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function I(e,t,n){var i=t.slice(),a=t.slice();i[0]=Object(Ve.subPixelOptimize)(i[0]+r/2,1,!1),a[0]=Object(Ve.subPixelOptimize)(a[0]-r/2,1,!0),n?e.push(i,a):e.push(a,i)}function E(e,t,n){var i=_(e,n),a=_(t,n);return i[0]-=r/2,a[0]-=r/2,{x:i[0],y:i[1],width:r,height:a[1]-i[1]}}function k(e){return e[0]=Object(Ve.subPixelOptimize)(e[0],1),e}}}}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/candlestick/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/EffectSymbol.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Rf(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var jf=/** @class */function(e){function t(t,n){var r=e.call(this)||this,i=new Ze(t,n),a=new ze.a;return r.add(i),r.add(a),r.updateData(t,n),r}return Object(Re.a)(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){
// If width/height are set too small (e.g., set to 1) on ios10
// and macOS Sierra, a circle stroke become a rect, no matter what
// the scale is set. So we set width/height as 2. See #4136.
var o=Object(Fe.a)(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}Rf(i,e)},
/**
   * Update effect symbol
   */
t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}Rf(n,e)},
/**
   * Highlight symbol
   */
t.prototype.highlight=function(){Object(qe.r)(this)},
/**
   * Downplay symbol
   */
t.prototype.downplay=function(){Object(qe.C)(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},
/**
   * Update symbol properties
   */
t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=Object(Fe.c)(e.getItemVisual(t,"symbolSize")),c=e.getItemVisual(t,"style"),l=c&&c.fill,u=a.getModel("emphasis");i.setScale(s),i.traverse((function(e){e.setStyle("fill",l)}));var h=Object(Fe.b)(e.getItemVisual(t,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var f=e.getItemVisual(t,"symbolRotate");i.rotation=(f||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=a.get(["rippleEffect","scale"]),d.brushType=a.get(["rippleEffect","brushType"]),d.period=1e3*a.get(["rippleEffect","period"]),d.effectOffset=t/e.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=o,d.color=l,d.rippleEffectColor=a.get(["rippleEffect","color"]),d.rippleNumber=a.get(["rippleEffect","number"]),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(
// Not keep old effect config
this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===e&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,Object(qe.J)(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(ze.a),Nf=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(){this._symbolDraw=new rt(jf)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=zt("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Cr.clone(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(At.a),Ff=Nf,zf=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){return Object(je.a)(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",
// zlevel: 0,
z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,
// When to show the effect, option: 'render'|'emphasis'
showEffectOn:"render",clip:!0,
// Ripple effect config
rippleEffect:{period:4,
// Scale of ripple
scale:2.5,
// Brush type can be fill or stroke
brushType:"fill",
// Ripple number
number:3},universalTransition:{divideShape:"clone"},
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
// Polar coordinate system
// polarIndex: 0,
// Geo coordinate system
// geoIndex: 0,
// symbol: null,        // 图形类型
symbolSize:10},t}(Ne.b),Hf=zf;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/helper/EffectLine.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Provide effect for line
 */
var Uf=/** @class */function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return Object(Re.a)(t,e),t.prototype.createLine=function(e,t,n){return new cl(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");A.isArray(r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),o=n.get("color")||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(
// Remove previous
this.remove(s),(s=Object(Fe.a)(i,-.5,-.5,1,1,o)).z2=100,s.culling=!0,this.add(s)),
// Symbol may be removed if loop is false
s&&(
// Shadow color is same with color in default
s.setStyle("shadowColor",o),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=1e3*t.get("period"),o=t.get("loop"),s=t.get("roundTrip"),c=t.get("constantSpeed"),l=A.retrieve(t.get("delay"),(function(t){return t/e.count()*a/3}));if(
// Ignore when updating
r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=A.isFunction(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){a._updateSymbolPosition(e)}));r||o.done((function(){a.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){
// Not so accurate
return _r.dist(e.__p1,e.__cp1)+_r.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=ut.h,c=ut.i;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);
// Tangent
var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,
// enable continuity trail for 'line', 'rect', 'roundRect' symbolType
"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*_r.dist(o,a),
// make sure the last segment render within endPoint
1===i&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===e.__lastT?
// After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly.
e.scaleY=2*_r.dist(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(ze.a),Gf=/** @class */function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return Object(Re.a)(t,e),t.prototype._createPolyline=function(e,t,n){
// let seriesModel = lineData.hostModel;
var r=e.getItemLayout(t),i=new Dn.a({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};Ge.h(i,a,r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel("emphasis");a=l.getModel("lineStyle").getLineStyle(),c=l.get("disabled"),o=l.get("focus"),s=l.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,Object(qe.J)(this,o,s,c)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(ze.a),Vf=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}
// Override
return Object(Re.a)(t,e),t.prototype.createLine=function(e,t,n){return new Gf(e,t,n)},
// Override
t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=_r.dist(a,o),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},
// Override
t.prototype._getLineLength=function(){return this._length},
// Override
t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a,o=this._lastFrame;if(t<this._lastFramePercent){for(a=Math.min(o+1,i-1);a>=0&&!(r[a]<=t);a--);
// PENDING really need to do this ?
a=Math.min(a,i-2)}else{for(a=o;a<i&&!(r[a]>t);a++);a=Math.min(a-1,i-2)}var s=(t-r[a])/(r[a+1]-r[a]),c=n[a],l=n[a+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],h=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(h,u)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(Uf),Wf=Vf,qf=n("9680"),Yf=n("68ab"),Kf=function(){this.polyline=!1,this.curveness=0,this.segs=[]},$f=/** @class */function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Re.a)(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kf},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var a=r[n++];if(a>0){e.moveTo(r[n++],r[n++]);for(var o=1;o<a;o++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],c=r[n++],l=r[n++],u=r[n++];if(e.moveTo(s,c),i>0){var h=(s+l)/2-(c-u)*i,f=(c+u)/2-(l-s)*i;e.quadraticCurveTo(h,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],h=1;h<c;h++){var f=r[s++],d=r[s++];if(qf.a(l,u,f,d,a,e,t))return o}o++}else for(o=0,s=0;s<r.length;){l=r[s++],u=r[s++],f=r[s++],d=r[s++];if(i>0){var p=(l+f)/2-(u-d)*i,g=(u+d)/2-(f-l)*i;if(Yf.a(l,u,p,g,f,d,a,e,t))return o}else if(qf.a(l,u,f,d,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){
// Ignore stroke for large symbol draw.
var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new tr.a(n,r,i,a)}return e},t}(s.b),Jf=/** @class */function(){function e(){this.group=new ze.a}
/**
   * Update symbols draw by new data
   */return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},
/**
   * @override
   */
e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},
/**
   * @override
   */
e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),i=n&&n.shape.segs;
// Merging the exists. Each element has 1e4 points.
// Consider the performance balance between too much elements and too much points in one shape(may affect hover optimization)
if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);
// Concat two array
o.set(i),o.set(r,a),n.setShape({segs:o})}else{
// Clear
this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},
/**
   * @override
   */
e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new $f({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var a=Object(We.a)(e);
// Enable tooltip
// PENDING May have performance issue when path is extremely large
a.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(
// Provide dataIndex for tooltip
a.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Xf={seriesType:"lines",plan:Object(Ft.a)(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+2*l)}else s=new Float32Array(4*c);var h=0,f=[];for(u=i.start;u<i.end;u++){var d=e.getLineCoords(u,o);n&&(s[h++]=d);for(var p=0;p<d;p++)f=t.dataToPoint(o[p],!1,f),s[h++]=f[0],s[h++]=f[1]}a.setLayout("linesPoints",s)}else for(u=i.start;u<i.end;u++){var g=a.getItemModel(u),m=(d=e.getLineCoords(u,o),[]);if(n)for(var v=0;v<d;v++)m.push(t.dataToPoint(o[v]));else{m[0]=t.dataToPoint(o[0]),m[1]=t.dataToPoint(o[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}a.setItemLayout(u,m)}}}}}},Zf=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),c="svg"===s.painter.getType();c||s.painter.getLayer(a).clear(!0),
// Config layer with motion blur
null==this._lastZlevel||c||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(c||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get("clip",!0)&&It(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)
// TODO Don't have to do update in large mode. Only do it when there are millions of data.
return{update:!0};
// TODO Use same logic with ScatterView.
// Manually update layout
var a=Xf.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),
// Not in large mode
this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),a=t.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new Jf:new fl(i?r?Wf:Gf:r?Uf:cl),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){
// Not use motion when dragging or zooming
var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,
// Clear motion when lineDraw is removed
this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(At.a),ed=Zf,td="undefined"==typeof Uint32Array?Array:Uint32Array,nd="undefined"==typeof Float64Array?Array:Float64Array;
/* harmony default export */function rd(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(A.map)(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),Object(A.mergeAll)([t,e[0],e[1]])})))}var id=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(Re.a)(t,e),t.prototype.init=function(t){
// The input data may be null/undefined.
t.data=t.data||[],
// Not using preprocessor because mergeOption may not have series.type
rd(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(rd(t),t.data){
// Only update when have option data to merge.
var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(A.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(A.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(e);for(i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length},t.prototype._processFlatCoordsArray=function(e){var t=0;
// Stored as a typed array. In format
// Points Count(2) | x | y | x | y | Points Count(3) | x |  y | x | y | x | y |
if(this._flatCoords&&(t=this._flatCoords.length),Object(A.isNumber)(e[0])){for(var n=e.length,r=new td(n),i=new nd(n),a=0,o=0,s=0,c=0
// Store offset and len of each segment
;c<n;){s++;var l=e[c++];
// Offset
r[o++]=a+t,
// Len
r[o++]=l;for(var u=0;u<l;u++){var h=e[c++],f=e[c++];i[a++]=h,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new Wn.a(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){
// dataItem is simply coords
if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get("name");if(i)return i;var a=r.get("fromName"),o=r.get("toName"),s=[];return null!=a&&s.push(a),null!=o&&s.push(o),Object(Ei.c)("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",
// zlevel: 0,
z:2,legendHoverLink:!0,
// Cartesian coordinate system
xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],
// Geo coordinate system
geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,
// Available when large is true
largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ne.b),ad=id;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/linesVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function od(e){return e instanceof Array||(e=[e,e]),e}var sd={seriesType:"lines",reset:function(e){var t=od(e.get("symbol")),n=od(e.get("symbolSize")),r=e.getData();return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(e,t){var n=e.getItemModel(t),r=od(n.getShallow("symbol",!0)),i=od(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}:null}}};
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global Uint8ClampedArray */
var cd=/** @class */function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=$.d.createCanvas();this.canvas=e}
/**
   * Renders Heatmap and returns the rendered canvas
   * @param data array of data, each has x, y, value
   * @param width canvas width
   * @param height canvas height
   */return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),c=this._getGradient(i,"outOfRange"),l=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),f=e.length;u.width=t,u.height=n;for(var d=0;d<f;++d){var p=e[d],g=p[0],m=p[1],v=r(p[2]);
// draw with the circle brush with alpha
h.globalAlpha=v,h.drawImage(o,g-l,m-l)}if(!u.width||!u.height)
// Avoid "Uncaught DOMException: Failed to execute 'getImageData' on
// 'CanvasRenderingContext2D': The source height is 0."
return u;
// colorize the canvas using alpha value and set with gradient
for(var y=h.getImageData(0,0,u.width,u.height),A=y.data,b=0,w=A.length,x=this.minOpacity,C=this.maxOpacity-x;b<w;){v=A[b+3]/256;var _=4*Math.floor(255*v);
// Simple optimize to ignore the empty data
if(v>0){var I=a(v)?s:c;
// Any alpha > 0 will be mapped to [minOpacity, maxOpacity]
v>0&&(v=v*C+x),A[b++]=I[_],A[b++]=I[_+1],A[b++]=I[_+2],A[b++]=I[_+3]*v*256}else b+=4}return h.putImageData(y,0,0),u},
/**
   * get canvas of a black circle brush used for canvas to draw later
   */
e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=$.d.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;
// set brush size
e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),
// in order to render shadow without the distinct circle,
// draw the distinct circle in an invisible place,
// and use shadowOffset to draw shadow in the center of the canvas
r.shadowOffsetX=n,r.shadowBlur=this.blurSize,
// draw the shadow in black, and use alpha and shadow blur to generate
// color in color map
r.shadowColor="#000",
// draw circle in the left to the canvas
r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},
/**
   * get gradient color map
   * @private
   */
e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}(),ld=cd;function ud(e){var t=e.dimensions;
// Not use coordSys.type === 'geo' because coordSys maybe extended
return"lng"===t[0]&&"lat"===t[1]}var hd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),
// Clear previously rendered progressive elements.
this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):ud(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(
// geo does not support incremental rendering?
ud(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Ve.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a,o,s,c,l=e.coordinateSystem,u=Et(l,"cartesian2d");if(u){var h=l.getAxis("x"),f=l.getAxis("y");0,
// add 0.5px to avoid the gaps
a=h.getBandWidth()+.5,o=f.getBandWidth()+.5,s=h.scale.getExtent(),c=f.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),A=Object(Je.e)(e),b=e.getModel("emphasis"),w=b.get("focus"),x=b.get("blurScope"),C=b.get("disabled"),_=u?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=n;I<r;I++){var E=void 0,k=p.getItemVisual(I,"style");if(u){var S=p.get(_[0],I),B=p.get(_[1],I);
// Ignore empty data and out of extent data
if(isNaN(p.get(_[2],I))||isNaN(S)||isNaN(B)||S<s[0]||S>s[1]||B<c[0]||B>c[1])continue;var M=l.dataToPoint([S,B]);E=new bt.a({shape:{x:M[0]-a/2,y:M[1]-o/2,width:a,height:o},style:k})}else{
// Ignore empty data
if(isNaN(p.get(_[1],I)))continue;E=new bt.a({z2:1,shape:l.dataToRect([p.get(_[0],I)]).contentShape,style:k})}
// Optimization for large dataset
if(p.hasItemOption){var T=p.getItemModel(I),O=T.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),v=T.getModel(["select","itemStyle"]).getItemStyle(),
// Each item value struct in the data would be firstly
// {
//     itemStyle: { borderRadius: [30, 30] },
//     value: [2022, 02, 22]
// }
y=T.get(["itemStyle","borderRadius"]),w=O.get("focus"),x=O.get("blurScope"),C=O.get("disabled"),A=Object(Je.e)(T)}E.shape.r=y;var D=e.getRawValue(I),P="-";D&&null!=D[2]&&(P=D[2]+""),Object(Je.g)(E,A,{labelFetcher:e,labelDataIndex:I,defaultOpacity:k.opacity,defaultText:P}),E.ensureState("emphasis").style=g,E.ensureState("blur").style=m,E.ensureState("select").style=v,Object(qe.J)(E,w,x,C),E.incremental=i,
// PENDING
i&&(
// Rect must use hover layer if it's incremental.
E.states.emphasis.hoverLayer=!0),d.add(E),p.setItemGraphicEl(I,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new ld;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);
// Clamp on viewport
var h=Math.max(l.x,0),f=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),g=d-h,m=p-f,v=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],y=o.mapArray(v,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=h,i[1]-=f,i.push(r),i})),b=n.getExtent(),w="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(b,n.option.range):
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/HeatmapView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e,t,n){var r=e[1]-e[0],i=(t=A.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}))).length,a=0;return function(e){var r;
// Try to find in the location of the last found
for(r=a;r<i;r++)if((o=t[r].interval)[0]<=e&&e<=o[1]){a=r;break}if(r===i)
// Not found, back interation
for(r=a-1;r>=0;r--){var o;if((o=t[r].interval)[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}(b,n.getPieceList(),n.option.selected);s.update(y,g,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},w);var x=new c.a({style:{width:g,height:m,x:h,y:f,image:s.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(At.a),fd=hd,dd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){return Object(je.a)(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ml.a.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",
// zlevel: 0,
z:2,
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
// Geo coordinate system
geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ne.b),pd=dd;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/PictorialBarView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var gd=["itemStyle","borderWidth"],md=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],vd=new Di.a,yd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:md[+s],categoryDim:md[1-+s]};i.diff(a).add((function(e){if(i.hasValue(e)){var t=Ed(i,e),n=Ad(i,e,t,l),a=Bd(i,l,n);i.setItemGraphicEl(e,a),r.add(a),Pd(a,l,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=Ed(i,e),s=Ad(i,e,o,l),c=Td(i,s);n&&c!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Ge.h(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?xd(e,t,n,!0):Cd(e,t,n,!0);_d(e,n,!0),Id(e,t,n,!0)}(n,l,s):n=Bd(i,l,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,
// Add back
r.add(n),Pd(n,l,s)}else r.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&Md(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();
// Do clipping
var u=e.get("clip",!0)?It(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){Md(r,Object(We.a)(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(At.a);
// index: +isHorizontal
// Set or calculate default value about symbol, and calculate layout info.
function Ad(e,t,n,r){var i=e.getItemLayout(t),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",c=(n.get("symbolRotate")||0)*Math.PI/180||0,l=n.get("symbolPatternSize")||2,u=n.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!
// bar length can be negative.
function(e,t,n,r,i){var a,o=r.valueDim,s=e.get("symbolBoundingData"),c=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=c.toGlobalCoord(c.dataToCoord(0)),u=1-+(n[o.wh]<=0);if(A.isArray(s)){var h=[bd(c,s[0])-l,bd(c,s[1])-l];h[1]<h[0]&&h.reverse(),a=h[u]}else a=null!=s?bd(c,s)-l:t?r.coordSysExtent[o.index][u]-l:n[o.wh];i.boundingLength=a,t&&(i.repeatCutLength=n[o.wh]);
// if 'pxSign' means sign of pixel,  it can't be zero, or symbolScale will be zero
// and when borderWidth be settled, the actual linewidth will be NaN
var f="x"===o.xy,d=c.inverse;i.pxSign=f&&!d||!f&&d?a>=0?1:-1:a>0?1:-1}(n,a,i,r,h),
// Support ['100%', '100%']
function(e,t,n,r,i,a,o,s,c,l){var u,h=c.valueDim,f=c.categoryDim,d=Math.abs(n[f.wh]),p=e.getItemVisual(t,"symbolSize");u=A.isArray(p)?p.slice():null==p?["100%","100%"]:[p,p];
// Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is
// to complicated to calculate real percent value if considering scaled lineWidth.
// So the actual size will bigger than layout size if lineWidth is bigger than zero,
// which can be tolerated in pictorial chart.
u[f.index]=Object(xt.q)(u[f.index],d),u[h.index]=Object(xt.q)(u[h.index],r?d:Math.abs(a)),l.symbolSize=u;
// If x or y is less than zero, show reversed shape.
var g=l.symbolScale=[u[0]/s,u[1]/s];
// Follow convention, 'right' and 'top' is the normal scale.
g[h.index]*=(c.isHorizontal?-1:1)*o}(e,t,i,a,0,h.boundingLength,h.pxSign,l,r,h),function(e,t,n,r,i){
// In symbols are drawn with scale, so do not need to care about the case that width
// or height are too small. But symbol use strokeNoScale, where acture lineWidth should
// be calculated.
var a=e.get(gd)||0;a&&(vd.attr({scaleX:t[0],scaleY:t[1],rotation:n}),vd.updateTransform(),a/=vd.getLineScale(),a*=t[r.valueDim.index]);i.valueLineWidth=a||0}(n,h.symbolScale,c,r,h);var f=h.symbolSize,d=Object(Fe.b)(n.get("symbolOffset"),f);return function(e,t,n,r,i,a,o,s,c,l,u,h){var f=u.categoryDim,d=u.valueDim,p=h.pxSign,g=Math.max(t[d.index]+s,0),m=g;
// Note: rotation will not effect the layout of symbols, because user may
// want symbols to rotate on its center, which should not be translated
// when rotating.
if(r){var v=Math.abs(c),y=A.retrieve(e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var w=Object(xt.q)(y,t[d.index]),x=Math.max(g+2*w,0),C=b?0:2*w,_=Object(xt.k)(r),I=_?r:Ld((v+C)/x);x=g+2*(w=(v-I*g)/2/(b?I:Math.max(I-1,1))),C=b?0:2*w,
// Update repeatTimes when not all symbol will be shown.
_||"fixed"===r||(I=l?Ld((Math.abs(l)+C)/x):0),m=I*x-C,h.repeatTimes=I,h.symbolMargin=w}var E=p*(m/2),k=h.pathPosition=[];// 'center'
k[f.index]=n[f.wh]/2,k[d.index]="start"===o?E:"end"===o?c-E:c/2,a&&(k[0]+=a[0],k[1]+=a[1]);var S=h.bundlePosition=[];S[f.index]=n[f.xy],S[d.index]=n[d.xy];var B=h.barRectShape=A.extend({},n);B[d.wh]=p*Math.max(Math.abs(n[d.wh]),Math.abs(k[d.index]+E)),B[f.wh]=n[f.wh];var M=h.clipShape={};
// Consider that symbol may be overflow layout rect.
M[f.xy]=-n[f.xy],M[f.wh]=u.ecSize[f.wh],M[d.xy]=0,M[d.wh]=n[d.wh]}(n,f,i,a,0,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function bd(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function wd(e){var t=e.symbolPatternSize,n=Object(Fe.a)(
// Consider texture img, make a big size.
e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function xd(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,h=a[t.valueDim.index]+o+2*n.symbolMargin;for(Od(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?Dd(e,null,p(u),n,r):Dd(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),
// updateHoverAnimation(path, symbolMeta);
u++}));u<l;u++){var f=wd(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var d=p(u);Dd(f,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;
// (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index
// Otherwise: i = index;
return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=l-1-e),t[c.index]=h*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Cd(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Dd(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=wd(n),i.add(a),Dd(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}
// bar rect is used for label.
function _d(e,t,n){var r=A.extend({},t.barRectShape),i=e.__pictorialBarRect;i?Dd(i,null,{shape:r},t,n):((i=e.__pictorialBarRect=new bt.a({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(i))}function Id(e,t,n,r){
// If not clip, symbol will be remove and rebuilt.
if(n.symbolClip){var i=e.__pictorialClipPath,a=A.extend({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)Ge.h(i,{shape:a},s,c);else{a[o.wh]=0,i=new bt.a({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],Ve[r?"updateProps":"initProps"](i,{shape:l},s,c)}}}function Ed(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=kd,n.isAnimationEnabled=Sd,n}function kd(e){
// The order is the same as the z-order, see `symbolRepeatDiretion`.
return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Sd(){
// `animation` prop can be set on itemModel in pictorial bar chart.
return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Bd(e,t,n,r){
// bar is the main element for each data.
var i=new ze.a,a=new ze.a;
// bundle is used for location and clip.
return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?xd(i,t,n):Cd(i,0,n),_d(i,n,r),Id(i,t,n,r),i.__pictorialShapeStr=Td(e,n),i.__pictorialSymbolMeta=n,i}function Md(e,t,n,r){
// Not show text when animating
var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];Od(r,(function(e){a.push(e)})),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),
// I do not find proper remove animation for clip yet.
r.__pictorialClipPath&&(n=null),A.each(a,(function(e){Ge.e(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function Td(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Od(e,t,n){
// Do not use Group#eachChild, because it do not support remove.
A.each(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function Dd(e,t,n,r,i,a){t&&e.attr(t),
// when symbolCip used, only clip path has init animation, otherwise it would be weird effect.
r.symbolClip&&!i?n&&e.attr(n):n&&Ve[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function Pd(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),h=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");Od(e,(function(e){if(e instanceof c.a){var t=e.style;e.useStyle(A.extend({
// TODO other properties like dx, dy ?
image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=o,d&&(
// NOTE: Must after scale is set after updateAttr
r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,Object(Je.g)(g,Object(Je.e)(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Ke(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(qe.J)(e,h,f,a.get("disabled"))}function Ld(e){var t=Math.round(e);
// Escapse accurate error
return Math.abs(e-t)<1e-4?t:Math.ceil(e)}
/* harmony default export */var Qd=yd,Rd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(t){
// Disable stack.
return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(Yt.d)(qt.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",
// Pictorial bar do not clip by default because in many cases
// xAxis and yAxis are not displayed and it's expected not to clip
clip:!1,
// z can be set in data item, which is z2 actually.
// Disable progressive
progressive:0,emphasis:{
// By default pictorialBar do not hover scale. Hover scale is not suitable
// for the case that both has foreground and background.
scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(qt),jd=Rd;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/PictorialBarSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Nd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout("layoutInfo"),c=s.rect,l=s.boundaryGap;function u(e){return e.name}a.x=0,a.y=c.y+l[0];var h=new Es.a(this._layersSeries||[],o,u,u),f=[];function d(t,n,s){var c=i._layers;if("remove"!==t){for(var l,u,h=[],d=[],p=o[n].indices,g=0;g<p.length;g++){var m=r.getItemLayout(p[g]),v=m.x,y=m.y0,A=m.y;h.push(v,y),d.push(v,y+A),l=r.getItemVisual(p[g],"style")}var b=r.getItemLayout(p[0]),w=e.getModel("label").get("margin"),x=e.getModel("emphasis");if("add"===t){var C=f[n]=new ze.a;u=new yt({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(u),a.add(C),e.isAnimationEnabled()&&u.setClipPath(
// add animation to the view
function(e,t,n){var r=new bt.a({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ge.c(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}
/* harmony default export */(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{C=c[s];u=C.childAt(0),a.add(C),f[n]=C,Ge.h(u,{shape:{points:h,stackedOnPoints:d}},e),Object(Ge.g)(u)}Object(Je.g)(u,Object(Je.e)(e),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:l.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var _=u.getTextContent();
// TODO More label position options.
_&&(_.x=b.x-w,_.y=b.y0+b.y/2),u.useStyle(l),r.setItemGraphicEl(n,u),Object(qe.I)(u,e),Object(qe.J)(u,x.get("focus"),x.get("blurScope"),x.get("disabled"))}else a.remove(c[n])}h.add(Object(A.bind)(d,this,"add")).update(Object(A.bind)(d,this,"update")).remove(Object(A.bind)(d,this,"remove")).execute(),this._layersSeries=o,this._layers=f},t.type="themeRiver",t}(At.a);var Fd=Nd,zd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.init=function(t){
// eslint-disable-next-line
e.prototype.init.apply(this,arguments),
// Put this function here is for the sake of consistency of code style.
// Enable legend selection for each data item
// Use a function instead of direct access because data reference may changed
this.legendVisualProvider=new Kn(A.bind(this.getData,this),A.bind(this.getRawData,this))},
/**
   * If there is no value of a certain point in the time for some event,set it value to 0.
   *
   * @param {Array} data  initial data in the option
   * @return {Array}
   */
t.prototype.fixData=function(e){var t=e.length,n={},r=Object(lt.j)(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];
/**
     * Make sure every layer data get the same keys.
     * The value index tells which layer has visited.
     * {
     *  2014/01/01: -1
     * }
     */r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+"";n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},
/**
   * @override
   * @param  option  the initial option that user gave
   * @param  ecModel  the model object for themeRiver option
   */
t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",lt.b).models[0].get("type"),r=A.filter(e.data,(function(e){return void 0!==e[2]})),i=this.fixData(r||[]),a=[],o=this.nameMap=A.createHashMap(),s=0,c=0;c<i.length;++c)a.push(i[c][2]),o.get(i[c][2])||(o.set(i[c][2],s),s++);var l=Object(Vn.b)(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(Kh.a)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new Wn.a(l,this);return u.initData(i),u},
/**
   * The raw data is divided into multiple layers and each layer
   *     has same name.
   */
t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),a=Object(lt.j)(n,(function(t){return e.get("name",t)})),o=[];
// data group by name
return a.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),o.push({name:n,indices:t})})),o},
/**
   * Get data indices for show tooltip content
   */
t.prototype.getAxisTooltipData=function(e,t,n){A.isArray(e)||(e=e?[e]:[]);for(var r,i=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,c=0;c<s;++c){for(var l=Number.MAX_VALUE,u=-1,h=a[c].indices.length,f=0;f<h;++f){var d=i.get(e[0],a[c].indices[f]),p=Math.abs(d-t);p<=l&&(r=d,l=p,u=a[c].indices[f])}o.push(u)}return{dataIndices:o,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getName(e),a=r.get(r.mapDimension("value"),e);return Object(Ei.c)("nameValue",{name:i,value:a})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={
// zlevel: 0,
z:2,colorBy:"data",coordinateSystem:"singleAxis",
// gap in axis's orthogonal orientation
boundaryGap:["10%","10%"],
// legendHoverLink: true,
singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ne.b),Hd=zd;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Ud(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get("boundaryGap"),o=n.getAxis();(r.boundaryGap=a,"horizontal"===o.orient)?(a[0]=xt.q(a[0],i.height),a[1]=xt.q(a[1],i.height),Gd(t,e,i.height-a[0]-a[1])):(a[0]=xt.q(a[0],i.width),a[1]=xt.q(a[1],i.width),Gd(t,e,i.width-a[0]-a[1]));t.setLayout("layoutInfo",r)}))}
/**
 * The layout information about themeriver
 *
 * @param data  data in the series
 * @param seriesModel  the model object of themeRiver series
 * @param height  value used to compute every series height
 */function Gd(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),c=A.map(a,(function(t){return A.map(t.indices,(function(t){var n=i.dataToPoint(e.get(o,t));return n[1]=e.get(s,t),n}))})),l=
/**
 * Compute the baseLine of the rawdata
 * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics
 *
 * @param  data  the points in each layer
 */
function(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var h=r[u]+i[u];h>a&&(a=h)}return{y0:i,max:a}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/themeRiver/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */(c),u=l.y0,h=n/l.max,f=a.length,d=a[0].indices.length,p=0
// the data in each layer are organized into a series.
;p<d;++p){r=u[p]*h,e.setItemLayout(a[0].indices[p],{layerIndex:0,x:c[0][p][0],y0:r,y:c[0][p][1]*h});for(var g=1;g<f;++g)r+=c[g-1][p][1]*h,e.setItemLayout(a[g].indices[p],{layerIndex:g,x:c[g][p][0],y0:r,y:c[g][p][1]*h})}}
// EXTERNAL MODULE: ./node_modules/zrender/lib/contain/util.js
var Vd=n("857d"),Wd=/** @class */function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=2,a.textConfig={inside:!0},Object(We.a)(a).seriesIndex=n.seriesIndex;var o=new K.a({z2:4,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return Object(Re.a)(t,e),t.prototype.updateData=function(e,t,
// state: 'emphasis' | 'normal' | 'highlight' | 'downplay',
n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;Object(We.a)(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),c=t.getLayout(),l=A.extend({},c);l.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var h=t.getVisual("decal");h&&(u.decal=Object(Ga.a)(h,i));var f=rn(o.getModel("itemStyle"),l,!0);A.extend(l,f),A.each(qe.g,(function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();
// border radius
var r=rn(n,l);r&&(t.shape=r)})),e?(a.setShape(l),a.shape.r=c.r0,Ge.c(a,{shape:{r:c.r}},n,t.dataIndex)):(
// Disable animation for gradient since no interpolation method
// is supported for gradient
Ge.h(a,{shape:l},n),Object(Ge.g)(a)),a.useStyle(u),this._updateLabel(n);var d=o.getShallow("cursor");d&&a.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus"),g="relative"===p?A.concatArray(t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p;Object(qe.J)(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),h=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,d=r.get("show")&&!(null!=f&&Math.abs(a)<f);function p(e,t){var n=e.get(t);return null==n?r.get(t):n}u.ignore=!d,
// TODO use setLabelStyle
A.each(qe.a,(function(r){var f="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,g=d?u:u.ensureState(r),m=e.getFormattedLabel(h,r);d&&(m=m||t.node.name),g.style=Object(Je.c)(f,{},null,"normal"!==r,!0),m&&(g.style.text=m);
// Not displaying text when angle is too small
var v=f.get("show");null==v||d||(g.ignore=!v);var y,b=p(f,"position"),w=d?l:l.states[r],x=w.style.fill;w.textConfig={outsideFill:"inherit"===f.get("color")?x:null,inside:"outside"!==b};var C=p(f,"distance")||0,_=p(f,"align"),I=p(f,"rotate"),E=.5*Math.PI,k=1.5*Math.PI,S=Object(Vd.a)("tangential"===I?Math.PI/2-o:o),B=S>E&&!Object(xt.l)(S-E)&&S<k;"outside"===b?(y=i.r+C,_=B?"right":"left"):_&&"center"!==_?"left"===_?(y=i.r0+C,_=B?"right":"left"):"right"===_&&(y=i.r-C,_=B?"left":"right"):(
// Put label in the center if it's a circle
y=a===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,_="center"),g.style.align=_,g.style.verticalAlign=p(f,"verticalAlign")||"middle",g.x=y*s+i.cx,g.y=y*c+i.cy;var M=0;"radial"===I?M=Object(Vd.a)(-o)+(B?Math.PI:0):"tangential"===I?M=Object(Vd.a)(Math.PI/2-o)+(B?Math.PI:0):A.isNumber(I)&&(M=I*Math.PI/180),g.rotation=Object(Vd.a)(M)})),u.dirtyStyle()},t}(wt.a),qd="sunburstRootToNode",Yd="sunburstHighlight";
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/SunburstPiece.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/SunburstView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Kd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,
// @ts-ignore
r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(e){return e.getId()}function u(s,u){!function(r,i){l||!r||r.getValue()||(
// Not render data with value 0
r=null);if(r!==o&&i!==o)if(i&&i.piece)r?(
// Update
i.piece.updateData(!1,r,e,t,n),
// For tooltip
a.setItemGraphicEl(r.dataIndex,i.piece)):
// Remove
function(e){if(!e)return;e.piece&&(c.remove(e.piece),e.piece=null)}(i);else if(r){
// Add
var s=new Wd(r,e,t,n);c.add(s),
// For tooltip
a.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==u?null:i[u])}new Es.a(i,r,s,s).add(u).update(u).remove(A.curry(u,null)).execute()}(u,h),function(r,a){a.depth>0?(
// Render
i.virtualPiece?
// Update
i.virtualPiece.updateData(!1,r,e,t,n):(
// Add
i.virtualPiece=new Wd(r,e,t,n),c.add(i.virtualPiece)),
// TODO event scope
a.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(a.parentNode)}))):i.virtualPiece&&(
// Remove
c.remove(i.virtualPiece),i.virtualPiece=null)}(o,s),this._initEvents(),this._oldChildren=u},
/**
   * @private
   */
t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";Object(kt.k)(o,s)}}n=!0}}))}))},
/**
   * @private
   */
t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:qd,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},
/**
   * @implement
   */
t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type="sunburst",t}(At.a),$d=Kd,Jd=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(Re.a)(t,e),t.prototype.getInitialData=function(e,t){
// Create a virtual root.
var n={name:e.name,children:e.data};Xd(n);var r=this._levelModels=A.map(e.levels||[],(function(e){return new Gr.a(e,this,t)}),this),i=us.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),a=r[n.depth];return a&&(e.parentModel=a),e}))}));
// Make sure always a new tree is created when setOption,
// in TreemapView, we check whether oldTree === newTree
// to choose mappings approach among old shapes and new shapes.
return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},
/*
   * @override
   */
t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=ps(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){xs(this)},t.type="series.sunburst",t.defaultOption={
// zlevel: 0,
z:2,
// 默认全局居中
center:["50%","50%"],radius:[0,"75%"],
// 默认顺时针
clockwise:!0,startAngle:90,
// 最小角度改为0
minAngle:0,
// If still show when all data zero.
stillShowZeroSum:!0,
// 'rootToNode', 'link', or false
nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{
// could be: 'radial', 'tangential', or 'none'
rotate:"radial",show:!0,opacity:1,
// 'left' is for inner side of inside, and 'right' is for outer
// side for inside
align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},
// Animation type can be expansion, scale.
animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],
/**
     * Sort order.
     *
     * Valid values: 'desc', 'asc', null, or callback function.
     * 'desc' and 'asc' for descend and ascendant order;
     * null for not sorting;
     * example of callback function:
     * function(nodeA, nodeB) {
     *     return nodeA.getValue() - nodeB.getValue();
     * }
     */
sort:"desc"},t}(Ne.b);
/* harmony default export */function Xd(e){
// Postorder travel tree.
// If value of none-leaf node is not set,
// calculate it by suming up the value of all children.
var t=0;A.each(e.children,(function(e){Xd(e);var n=e.value;
// TODO First value of array must be a number
A.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;A.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),
// Value should not less than 0.
n<0&&(n=0),A.isArray(e.value)?e.value[0]=n:e.value=n}
/* harmony default export */var Zd=Jd,ep=Math.PI/180;
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/sunburstLayout.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// let PI2 = Math.PI * 2;
function tp(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");A.isArray(r)||(r=[0,r]),A.isArray(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=Object(xt.q)(t[0],i),c=Object(xt.q)(t[1],a),l=Object(xt.q)(r[0],o/2),u=Object(xt.q)(r[1],o/2),h=-e.get("startAngle")*ep,f=e.get("minAngle")*ep,d=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,m=e.get("sort");null!=m&&np(p,m);var v=0;A.each(p.children,(function(e){!isNaN(e.getValue())&&v++}));var y=p.getValue(),b=Math.PI/(y||v)*2,w=p.depth>0,x=p.height-(w?-1:1),C=(u-l)/(x||1),_=e.get("clockwise"),I=e.get("stillShowZeroSum"),E=_?1:-1,k=function(t,n){if(t){var r=n;
// Render self
if(t!==d){
// Tree node is virtual, so it doesn't need to be drawn
var i=t.getValue(),a=0===y&&I?b:i*b;a<f&&(a=f),
// else {
//     valueSumLargerThanMinAngle += value;
// }
r=n+E*a;var u=t.depth-g-(w?-1:1),h=l+C*u,p=l+C*(u+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),x=m.get("r",!0),S=m.get("radius",!0);null!=S&&(v=S[0],x=S[1]),null!=v&&(h=Object(xt.q)(v,o/2)),null!=x&&(p=Object(xt.q)(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:_,cx:s,cy:c,r0:h,r:p})}
// Render children
if(t.children&&t.children.length){
// currentAngle = startAngle;
var B=0;A.each(t.children,(function(e){B+=k(e,n+B)}))}return r-n}};
// Sum may be 0
// Virtual root node for roll up
if(w){var S=l,B=l+C,M=2*Math.PI;d.setLayout({angle:M,startAngle:h,endAngle:h+M,clockwise:_,cx:s,cy:c,r0:S,r:B})}k(p,h)}))}
/**
 * Init node children by order and update visual
 */function np(e,t){var n=e.children||[];e.children=
/**
 * Sort children nodes
 *
 * @param {TreeNode[]}               children children of node to be sorted
 * @param {string | function | null} sort sort method
 *                                   See SunburstSeries.js for details.
 */
function(e,t){if(A.isFunction(t)){var n=A.map(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),A.map(n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/sunburstVisual.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/(n,t),
// Init children recursively
n.length&&A.each(e.children,(function(e){np(e,t)}))}function rp(e){var t={};
// Default color strategy
e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),r=n.tree;r.eachNode((function(i){var a=i.getModel().getModel("itemStyle").getItemStyle();a.fill||(a.fill=function(e,n,r){for(
// Choose color from palette based on the first level.
var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(A.isString)(a)&&(
// Lighter on the deeper level.
a=Object(J.lift)(a,(e.depth-1)/(r-1)*.5)),a}(i,e,r.root.height));var o=n.ensureUniqueItemVisual(i.dataIndex,"style");Object(A.extend)(o,a)}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/sunburst/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/custom/CustomSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Also compat with ec4, where
// `visual('color') visual('borderColor')` is supported.
var ip={color:"fill",borderColor:"stroke"},ap={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},op=Object(lt.o)(),sp=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Object(je.a)(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=op(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",
// zlevel: 0,
z:2,legendHoverLink:!0,
// Custom series will not clip by default.
// Some case will use custom series to draw label
// For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight
clip:!1},t}(Ne.b),cp=sp;
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/cartesian/prepareCustom.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function lp(e,t){
// dataItem is necessary in log axis.
return t=t||[0,0],A.map(["x","y"],(function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))}),this)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/geo/prepareCustom.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function up(e,t){return t=t||[0,0],A.map([0,1],(function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/prepareCustom.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function hp(e,t){
// dataItem is necessary in log axis.
var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/prepareCustom.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// import AngleAxis from './AngleAxis.js';
function fp(e,t){
// dataItem is necessary in log axis.
return t=t||[0,0],A.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),a=t[r],o=e[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o));
// TODO: TYPE Check Angle Axis
return"Angle"===n&&(s=s*Math.PI/180),s}),this)}
/**
 * Whether need to call `convertEC4CompatibleStyle`.
 */
function dp(e,t,n,r){
// Since echarts5, `RectText` is separated from its host element and style.text
// does not exist any more. The compat work brings some extra burden on performance.
// So we provide:
// `legacy: true` force make compat.
// `legacy: false`, force do not compat.
// `legacy` not set: auto detect whether legacy.
//     But in this case we do not compat (difficult to detect and rare case):
//     Becuse custom series and graphic component support "merge", users may firstly
//     only set `textStrokeWidth` style or secondly only set `text`.
return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(A.hasOwn)(e,"text")))}
/**
 * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format.
 * @param hostStyle The properties might be modified.
 * @return If be text el, `textContentStyle` and `textConfig` will not be returned.
 *         Otherwise a `textContentStyle` and `textConfig` will be created, whose props area
 *         retried from the `hostStyle`.
 */function pp(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},Object(A.hasOwn)(o,"text")&&(a.text=o.text),Object(A.hasOwn)(o,"rich")&&(a.rich=o.rich),Object(A.hasOwn)(o,"textFill")&&(a.fill=o.textFill),Object(A.hasOwn)(o,"textStroke")&&(a.stroke=o.textStroke),Object(A.hasOwn)(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Object(A.hasOwn)(o,"fontSize")&&(a.fontSize=o.fontSize),Object(A.hasOwn)(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Object(A.hasOwn)(o,"fontWeight")&&(a.fontWeight=o.fontWeight),i={type:"text",style:a,
// ec4 does not support rectText trigger.
// And when text position is different in normal and emphasis
// => hover text trigger emphasis;
// => text position changed, leave mouse pointer immediately;
// That might cause incorrect state.
silent:!0},r={};var s=Object(A.hasOwn)(o,"textPosition");n?r.position=s?o.textPosition:"inside":s&&(r.position=o.textPosition),Object(A.hasOwn)(o,"textPosition")&&(r.position=o.textPosition),Object(A.hasOwn)(o,"textOffset")&&(r.offset=o.textOffset),Object(A.hasOwn)(o,"textRotation")&&(r.rotation=o.textRotation),Object(A.hasOwn)(o,"textDistance")&&(r.distance=o.textDistance)}return gp(a,e),Object(A.each)(a.rich,(function(e){gp(e,e)})),{textConfig:r,textContent:i}}
/**
 * The result will be set to `out`.
 */function gp(e,t){t&&(
// (1) For simplicity, make textXXX properties (deprecated since ec5) has
// higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10`
// on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached
// richText in ec5.
// (2) `out === richItem` if and only if `out` is text el or rich item.
// So we can overwrite existing props in `out` since textXXX has higher priority.
t.font=t.textFont||t.font,Object(A.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(A.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),Object(A.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(A.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(A.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),Object(A.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),Object(A.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(A.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),Object(A.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(A.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(A.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(A.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(A.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(A.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(A.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}
/**
 * Convert to pure echarts4 format style.
 * `itemStyle` will be modified, added with ec4 style properties from
 * `textStyle` and `textConfig`.
 *
 * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where
 * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke.
 */function mp(e,t,n){var r=e;
// See `custom.ts`, a trick to set extra `textPosition` firstly.
r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,a=e.fill||"#000";vp(r,t);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(A.each)(t.rich,(function(e){vp(e,e)})),r}function vp(e,t){t&&(Object(A.hasOwn)(t,"fill")&&(e.textFill=t.fill),Object(A.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),Object(A.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(A.hasOwn)(t,"font")&&(e.font=t.font),Object(A.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(A.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(A.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),Object(A.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(A.hasOwn)(t,"align")&&(e.textAlign=t.align),Object(A.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(A.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(A.hasOwn)(t,"width")&&(e.textWidth=t.width),Object(A.hasOwn)(t,"height")&&(e.textHeight=t.height),Object(A.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(A.hasOwn)(t,"padding")&&(e.textPadding=t.padding),Object(A.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(A.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(A.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(A.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(A.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(A.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(A.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(A.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(A.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(A.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(A.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}
// EXTERNAL MODULE: ./node_modules/zrender/lib/animation/Animator.js + 2 modules
var yp=n("06ad"),Ap={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},bp=Object(A.keys)(Ap),wp=(Object(A.reduce)(L.a,(function(e,t){return e[t]=1,e}),{}),L.a.join(", "),["","style","shape","extra"]),xp=Object(lt.o)();
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/customGraphicTransition.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Cp(e,t,n,r,i){var a=e+"Animation",o=Object(Ge.a)(e,r,i)||{},s=xp(t).userDuring;
// Only set when duration is > 0 and it's need to be animated.
return o.duration>0&&(
// For simplicity, if during not specified, the previous during will not work any more.
o.during=s?Object(A.bind)(Mp,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Object(A.extend)(o,n[a]),o}function _p(e,t,n,r){var i=(r=r||{}).dataIndex,a=r.isInit,o=r.clearStyle,c=n.isAnimationEnabled(),l=xp(e),u=t.style;l.userDuring=t.during;var h={},f={};if(function(e,t,n){for(var r=0;r<bp.length;r++){var i=bp[r],a=Ap[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(r=0;r<L.a.length;r++){var s=L.a[r];null!=t[s]&&(n[s]=t[s])}}(0,t,f),Op("shape",t,f),Op("extra",t,f),!a&&c&&(function(e,t,n){for(var r=t.transition,i=kp(r)?L.a:Object(lt.r)(r||[]),a=0;a<i.length;a++){var o=i[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=e[o];0,
// Do not clone, animator will perform that clone.
n[o]=s}}}(e,t,h),Tp("shape",e,t,h),Tp("extra",e,t,h),function(e,t,n,r){if(!n)return;var i,a=e.style;if(a){var o=n.transition,s=t.transition;if(o&&!kp(o)){var c=Object(lt.r)(o);!i&&(i=r.style={});for(var l=0;l<c.length;l++){var u=a[p=c[l]];
// Do not clone, see `checkNonStyleTansitionRefer`.
i[p]=u}}else if(e.getAnimationStyleProps&&(kp(s)||kp(o)||Object(A.indexOf)(s,"style")>=0)){var h=e.getAnimationStyleProps(),f=h?h.style:null;if(f){!i&&(i=r.style={});var d=Object(A.keys)(n);for(l=0;l<d.length;l++){var p;if(f[p=d[l]]){u=a[p];i[p]=u}}}}}}(e,t,u,h)),f.style=u,function(e,
// Can be null/undefined
t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(
// When style object changed, how to trade the existing animation?
// It is probably complicated and not needed to cover all the cases.
// But still need consider the case:
// (1) When using init animation on `style.opacity`, and before the animation
//     ended users triggers an update by mousewhel. At that time the init
//     animation should better be continued rather than terminated.
//     So after `useStyle` called, we should change the animation target manually
//     to continue the effect of the init animation.
// (2) PENDING: If the previous animation targeted at a `val1`, and currently we need
//     to update the value to `val2` and no animation declared, should be terminate
//     the previous animation or just modify the target of the animation?
//     Therotically That will happen not only on `style` but also on `shape` and
//     `transfrom` props. But we haven't handle this case at present yet.
// (3) PENDING: Is it proper to visit `animators` and `targetName`?
var i=e.animators,a=0;a<i.length;a++){var o=i[a];
// targetName is the "topKey".
"style"===o.targetName&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(
// Not set style here.
t.style=null,
// Set el to the final state firstly.
t&&e.attr(t),t.style=r)}(e,f,o),function(e,t){
// Merge by default.
Object(A.hasOwn)(t,"silent")&&(e.silent=t.silent),Object(A.hasOwn)(t,"ignore")&&(e.ignore=t.ignore),e instanceof Va.c&&Object(A.hasOwn)(t,"invisible")&&(e.invisible=t.invisible);e instanceof s.b&&Object(A.hasOwn)(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}
// Use it to avoid it be exposed to user.
(e,t),c)if(a){var d={};Object(A.each)(wp,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(A.extend)(e?d[e]:d,n.enterFrom))}));var p=Cp("enter",e,t,n,i);p.duration>0&&e.animateFrom(d,p)}else!function(e,t,n,r,
// Can be null/undefined
i){if(i){var a=Cp("update",e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}(e,t,i||0,n,h);
// Store leave to be used in leave transition.
Ip(e,t),u?e.dirty():e.markRedraw()}function Ip(e,t){for(
// Try merge to previous set leaveTo
var n=xp(e).leaveToProps,r=0;r<wp.length;r++){var i=wp[r],a=i?t[i]:t;a&&a.leaveTo&&(n||(n=xp(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(A.extend)(i?n[i]:n,a.leaveTo))}}function Ep(e,t,n,r){if(e){var i=e.parent,a=xp(e).leaveToProps;if(a){
// TODO TODO use leave after leaveAnimation in series is introduced
// TODO Data index?
var o=Cp("update",e,t,n,0);o.done=function(){i.remove(e),r&&r()},e.animateTo(a,o)}else i.remove(e),r&&r()}}function kp(e){return"all"===e}var Sp={},Bp={
// Usually other props do not need to be changed in animation during.
setTransform:function(e,t){return Sp.el[e]=t,this},getTransform:function(e){return Sp.el[e]},setShape:function(e,t){var n=Sp.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Sp.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Sp.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Sp.el.style;if(t)return t[e]},setExtra:function(e,t){return(Sp.el.extra||(Sp.el.extra={}))[e]=t,this},getExtra:function(e){var t=Sp.el.extra;if(t)return t[e]}};function Mp(){
// Do not provide "percent" until some requirements come.
// Because consider thies case:
// enterFrom: {x: 100, y: 30}, transition: 'x'.
// And enter duration is different from update duration.
// Thus it might be confused about the meaning of "percent" in during callback.
var e=this,t=e.el;if(t){
// If el is remove from zr by reason like legend, during still need to called,
// because el will be added back to zr and the prop value should not be incorrect.
var n=xp(t).userDuring,r=e.userDuring;
// Ensured a during is only called once in each animation frame.
// If a during is called multiple times in one frame, maybe some users' calculation logic
// might be wrong (not sure whether this usage exists).
// The case of a during might be called twice can be: by default there is a animator for
// 'x', 'y' when init. Before the init animation finished, call `setOption` to start
// another animators for 'style'/'shape'/'extra'.
n===r?(Sp.el=t,
// Give no `this` to user in "during" calling.
r(Bp)):
// release
e.el=e.userDuring=null}}function Tp(e,t,n,r){var i=n[e];if(i){var a,o=t[e];if(o){var s=n.transition,c=i.transition;if(c)if(!a&&(a=r[e]={}),kp(c))Object(A.extend)(a,o);else for(var l=Object(lt.r)(c),u=0;u<l.length;u++){var h=o[d=l[u]];a[d]=h}else if(kp(s)||Object(A.indexOf)(s,e)>=0){!a&&(a=r[e]={});var f=Object(A.keys)(o);for(u=0;u<f.length;u++){var d;h=o[d=f[u]];Dp(i[d],h)&&(a[d]=h)}}}}}function Op(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Object(A.keys)(r),o=0;o<a.length;o++){var s=a[o];
// To avoid share one object with different element, and
// to avoid user modify the object inexpectedly, have to clone.
i[s]=Object(yp.a)(r[s])}}function Dp(e,t){
// The same as `checkNonStyleTansitionRefer`.
return Object(A.isArrayLike)(e)?e!==t:null!=e&&isFinite(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Pp=Object(lt.o)(),Lp=["percent","easing","shape","style","extra"];
/**
 * Stop previous keyframe animation and restore the attributes.
 * Avoid new keyframe animation starts with wrong internal state when the percent: 0 is not set.
 */
function Qp(e){
// Stop previous keyframe animation.
e.stopAnimation("keyframe"),
// Restore
e.attr(Pp(e))}function Rp(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(A.isArray)(t))Object(A.each)(t,(function(t){Rp(e,t,n)}));else{var r=t.keyframes,i=t.duration;if(n&&null==i){
// Default to use duration of config.
// NOTE: animation config from payload will be ignored because they are mainly for transitions.
var a=Object(Ge.a)("enter",n,0);i=a&&a.duration}if(r&&i){var o=Pp(e);Object(A.each)(wp,(function(n){if(!n||e[n]){var a;
// Sort keyframes by percent.
r.sort((function(e,t){return e.percent-t.percent})),Object(A.each)(r,(function(r){
// Stop current animation.
var s=e.animators,c=n?r[n]:r;if(c){var l=Object(A.keys)(c);if(n||(
// PENDING performance?
l=Object(A.filter)(l,(function(e){return Object(A.indexOf)(Lp,e)<0}))),l.length){a||((a=e.animate(n,t.loop,!0)).scope="keyframe");for(var u=0;u<s.length;u++)
// Stop all other animation that is not keyframe.
s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var h=n?o[n]:o;Object(A.each)(l,(function(t){
// Save original value.
h[t]=((n?e[n]:e)||{})[t]})),a.whenWithKeys(i*r.percent,c,l,r.easing)}}})),a&&a.delay(t.delay||0).duration(i).start(t.easing)}}))}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/custom/CustomView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var jp="emphasis",Np="normal",Fp="blur",zp="select",Hp=[Np,jp,Fp,zp],Up={normal:["itemStyle"],emphasis:[jp,"itemStyle"],blur:[Fp,"itemStyle"],select:[zp,"itemStyle"]},Gp={normal:["label"],emphasis:[jp,"label"],blur:[Fp,"label"],select:[zp,"label"]},Vp=["x","y"],Wp={normal:{},emphasis:{},blur:{},select:{}},qp={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{
// The name exposed to user is always 'cartesian2d' but not 'grid'.
type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){
// do not provide "out" param
return e.dataToPoint(t)},size:A.bind(lp,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){
// do not provide "out" and noRoam param,
// Compatible with this usage:
// echarts.util.map(item.points, api.coord)
return e.dataToPoint(t)},size:A.bind(up,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){
// do not provide "out" param
return e.dataToPoint(t)},size:Object(A.bind)(hp,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:A.bind(fp,e)}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/calendar/prepareCustom.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/,calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/styleCompat.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/};function Yp(e){return e instanceof s.b}function Kp(e){return e instanceof Va.c}var $p=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){
// Clear previously rendered progressive elements.
this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=ng(e,a,t,n);i||
// Previous render is incremental render or first render.
// Needs remove the incremental rendered elements.
o.removeAll(),a.diff(i).add((function(t){ig(n,null,t,s(t,r),e,o,a)})).remove((function(t){var n=i.getItemGraphicEl(t);n&&Ep(n,op(n).option,e)})).update((function(t,c){var l=i.getItemGraphicEl(c);ig(n,l,t,s(t,r),e,o,a)})).execute();
// Do clipping
var c=e.get("clip",!0)?It(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=ng(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=ig(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){Ve.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;
// Enable to give a name on a group made by `renderItem`, and listen
// events that are triggered by its descendents.
for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type="custom",t}(At.a),Jp=$p;
/* harmony default export */function Xp(e){var t,n=e.type;
// Those graphic elements are not shapes. They should not be
// overwritten by users, so do them first.
if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=pg(r);
// Using pathRect brings convenience to users sacle svg path.
// Path is also used for icon, so layout 'center' by default.
t=Ve.makePath(a,null,i,r.layout||"center"),op(t).customPathData=a}else if("image"===n)t=new c.a({}),op(t).customImagePath=e.style.image;else if("text"===n)t=new K.a({});
// customInnerStore(el).customText = (elOption.style as TextStyleProps).text;
else if("group"===n)t=new ze.a;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=Ve.getShapeClass(n);if(!o){0,Object(Gs.c)("")}t=new o}return op(t).customGraphicType=n,t.name=e.name,
// Compat ec4: the default z2 lift is 1. If changing the number,
// some cases probably be broken: hierarchy layout along z, like circle packing,
// where emphasis only intending to modify color/border rather than lift z2.
t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Zp(
// Can be null/undefined
e,t,n,r,i,a,o){
// Stop and restore before update any other attributes.
Qp(t);var s=i&&i.normal.cfg;s&&
// PENDING: whether use user object directly rather than clone?
// TODO:5.0 textConfig transition animation?
t.setTextConfig(s),
// Default transition ['x', 'y']
r&&null==r.transition&&(r.transition=Vp);
// Do some normalization on style.
var c=r&&r.style;if(c){if("text"===t.type){var l=c;
// Compatible with ec4: if `textFill` or `textStroke` exists use them.
Object(A.hasOwn)(l,"textFill")&&(l.fill=l.textFill),Object(A.hasOwn)(l,"textStroke")&&(l.stroke=l.textStroke)}var u=void 0,h=Yp(t)?c.decal:null;e&&h&&(h.dirty=!0,u=Object(Ga.a)(h,e)),
// Always overwrite in case user specify this prop.
c.__decalPattern=u}Kp(t)&&(c&&(u=c.__decalPattern)&&(c.decal=u));_p(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),Rp(t,r.keyframeAnimation,a)}function eg(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;
// PENDING:5.0 support customize scale change and transition animation?
if(a){
// By default support auto lift color when hover whether `emphasis` specified.
var s=a.ensureState(e);if(!1===r){var c=a.getState(e);c&&(c.style=null)}else
// style is needed to enable default emphasis.
s.style=r||null;
// If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,
// remove hover style.
// If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not
// make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined.
o&&(s.textConfig=o),Object(qe.G)(a)}}function tg(e,t,n){var r=n===Np,i=r?t:cg(t,n),a=i?i.z2:null;null!=a&&((r?e:e.ensureState(n)).z2=a||0)}function ng(e,t,n,r){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(
// `coordSys.prepareCustoms` is used for external coord sys like bmap.
o=a.prepareCustoms?a.prepareCustoms(a):qp[a.type](a));for(var s,c,l=Object(A.defaults)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:
/**
   * @public
   * @param dim by default 0.
   * @param dataIndexInside by default `currDataIndexInside`.
   */
function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}
/**
   * @public
   * @param dim by default 0.
   * @param dataIndexInside by default `currDataIndexInside`.
   */,style:
/**
   * @deprecated The original intention of `api.style` is enable to set itemStyle
   * like other series. But it is not necessary and not easy to give a strict definition
   * of what it returns. And since echarts5 it needs to be make compat work. So
   * deprecates it since echarts5.
   *
   * By default, `visual` is applied to style (to support visualMap).
   * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,
   * it can be implemented as:
   * `api.style({stroke: api.visual('color'), fill: null})`;
   *
   * [Compat]: since ec5, RectText has been separated from its hosts el.
   * so `api.style()` will only return the style from `itemStyle` but not handle `label`
   * any more. But `series.label` config is never published in doc.
   * We still compat it in `api.style()`. But not encourage to use it and will still not
   * to pulish it to doc.
   * @public
   * @param dataIndexInside by default `currDataIndexInside`.
   */
function(n,r){0;null==r&&(r=s);var i=t.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,c=y(r,Np).getItemStyle();null!=a&&(c.fill=a),null!=o&&(c.opacity=o);var l={inheritColor:Object(A.isString)(a)?a:"#000"},u=b(r,Np),h=Je.c(u,null,l,!1,!0);h.text=u.getShallow("show")?Object(A.retrieve2)(e.getFormattedLabel(r,Np),Ke(t,r)):null;var f=Je.b(u,l,!1);return x(n,c),c=mp(c,h,f),n&&w(c,n),c.legacy=!0,c}
/**
   * @deprecated The reason see `api.style()`
   * @public
   * @param dataIndexInside by default `currDataIndexInside`.
   */,ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=y(r,jp).getItemStyle(),a=b(r,jp),o=Je.c(a,null,null,!0,!0);o.text=a.getShallow("show")?Object(A.retrieve3)(e.getFormattedLabel(r,jp),e.getFormattedLabel(r,Np),Ke(t,r)):null;var c=Je.b(a,null,!0);return x(n,i),i=mp(i,o,c),n&&w(i,n),i.legacy=!0,i},visual:
/**
   * @public
   * @param dataIndexInside by default `currDataIndexInside`.
   */
function(e,n){if(null==n&&(n=s),Object(A.hasOwn)(ip,e)){var r=t.getItemVisual(n,"style");return r?r[ip[e]]:null}
// Only support these visuals. Other visual might be inner tricky
// for performance (like `style`), do not expose to users.
if(Object(A.hasOwn)(ap,e))return t.getItemVisual(n,e)}
/**
   * @public
   * @return If not support, return undefined.
   */,barLayout:function(e){if("cartesian2d"===a.type){var t=a.getBaseAxis();return Object(Vt.b)(Object(A.defaults)({axis:t},e))}}
/**
   * @public
   */,currentSeriesIndices:function(){return n.getCurrentSeriesIndices()}
/**
   * @public
   * @return font string
   */,font:function(e){return Je.d(e,n)}},o.api||{}),u={
// The life cycle of context: current round of rendering.
// The global life cycle is probably not necessary, because
// user can store global status by themselves.
context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:rg(e.getData())},h={},f={},d={},p={},g=0;g<Hp.length;g++){var m=Hp[g];d[m]=e.getModel(Up[m]),p[m]=e.getModel(Gp[m])}function v(e){return e===s?c||(c=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(Up[n])):v(e).getModel(Up[n]):d[n]}function b(e,n){return t.hasItemOption?e===s?f[n]||(f[n]=v(e).getModel(Gp[n])):v(e).getModel(Gp[n]):p[n]}return function(e,n){return s=e,c=null,h={},f={},i&&i(Object(A.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),
// Can be used for optimization when zoom or roam.
actionType:n?n.type:null},u),l)};function w(e,t){for(var n in t)Object(A.hasOwn)(t,n)&&(e[n]=t[n])}function x(e,t){
// A trick to retrieve those props firstly, which are used to
// apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.
// (It's not reasonable but only for a degree of compat)
e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function rg(e){var t={};return Object(A.each)(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(t[i]=t[i]||[])[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function ig(e,t,n,r,i,a,o){
// [Rule]
// If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing.
//     (It seems that violate the "merge" principle, but most of users probably intuitively
//     regard "return;" as "show nothing element whatever", so make a exception to meet the
//     most cases.)
// The rule or "merge" see [STRATEGY_MERGE].
// If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing).
if(r){var s=ag(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Object(qe.J)(s,r.focus,r.blurScope,r.emphasisDisabled),s}a.remove(t)}function ag(e,t,n,r,i,a){var o=-1,s=t;t&&og(t,r,i)&&(
// Should keep at the original index, otherwise "merge by index" will be incorrect.
o=Object(A.indexOf)(a.childrenRef(),t),t=null);var c,l,u=!t,h=t;h?
// FIMXE:NEXT unified clearState?
// If in some case the performance issue arised, consider
// do not clearState but update cached normal state directly.
h.clearStates():(h=Xp(r),s&&(c=s,(l=h).copyTransform(c),Kp(l)&&Kp(c)&&(l.setStyle(c.style),l.z=c.z,l.z2=c.z2,l.zlevel=c.zlevel,l.invisible=c.invisible,l.ignore=c.ignore,Yp(l)&&Yp(c)&&l.setShape(c.shape)))),
// Need to set morph: false explictly to disable automatically morphing.
!1===r.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),Wp.normal.cfg=Wp.normal.conOpt=Wp.emphasis.cfg=Wp.emphasis.conOpt=Wp.blur.cfg=Wp.blur.conOpt=Wp.select.cfg=Wp.select.conOpt=null,Wp.isLegacy=!1,function(e,t,n,r,i,a){
// Group does not support textContent temporarily until necessary.
if(e.isGroup)return;
// Normal must be called before emphasis, for `isLegacy` detection.
sg(n,null,a),sg(n,jp,a);
// If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sense.
// So for simplicity, if "elOption hasOwnProperty of them but be null/undefined", we do not
// trade them as set to null to el.
// Especially:
// `elOption.textContent: false` means remove textContent.
// `elOption.textContent.emphasis.style: false` means remove the style from emphasis state.
var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(null!=o||null!=s||null!=l||null!=c){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},u?
// If in some case the performance issue arised, consider
// do not clearState but update cached normal state directly.
u.clearStates():(u=Xp(o),e.setTextContent(u)),Zp(null,u,t,o,null,r,i);for(var h=o&&o.style,f=0;f<Hp.length;f++){var d=Hp[f];if(d!==Np){var p=a[d].conOpt;eg(d,u,0,lg(o,p,d),null)}}h?u.dirty():u.markRedraw()}}}(h,n,r,i,u,Wp),function(e,t,n,r,i){
// Based on the "merge" principle, if no clipPath provided,
// do nothing. The exists clip will be totally removed only if
// `el.clipPath` is `false`. Otherwise it will be merged/replaced.
var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&og(o,a,r)&&(o=null),o||(o=Xp(a),e.setClipPath(o)),Zp(null,o,t,a,null,r,i)}
// If not define `clipPath` in option, do nothing unnecessary.
}(h,n,r,i,u),Zp(e,h,n,r,Wp,i,u),
// `elOption.info` enables user to mount some info on
// elements and use them in event handlers.
// Update them only when user specified, otherwise, remain.
Object(A.hasOwn)(r,"info")&&(op(h).info=r.info);for(var f=0;f<Hp.length;f++){var d=Hp[f];if(d!==Np){var p=cg(r,d);eg(d,h,0,lg(r,p,d),Wp)}}return function(e,t,n){
// Group not support textContent and not support z yet.
if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;
// Always erase.
r.z=i,r.zlevel=a;
// z2 must not be null/undefined, otherwise sort error may occur.
var o=t.z2;null!=o&&(r.z2=o||0);for(var s=0;s<Hp.length;s++)tg(r,t,Hp[s])}}(h,r,i),"group"===r.type&&
// Usage:
// (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates
//     that the existing children will not be removed, and enables the feature
//     that update some of the props of some of the children simply by construct
//     the returned children of `renderItem` like:
//     `var children = group.children = []; children[3] = {opacity: 0.5};`
// (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children
//     by child.name. But that might be lower performance.
// (3) If `elOption.$mergeChildren` is `false`, the existing children will be
//     replaced totally.
// (4) If `!elOption.children`, following the "merge" principle, nothing will
//     happen.
// (5) If `elOption.$mergeChildren` is not `false` neither `'byName'` and the
//     `el` is a group, and if any of the new child is null, it means to remove
//     the element at the same index, if exists. On the other hand, if the new
//     child is and empty object `{}`, it means to keep the element not changed.
// For implementation simpleness, do not provide a direct way to remove single
// child (otherwise the total indices of the children array have to be modified).
// User can remove a single child by setting its `ignore` to `true`.
function(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c="byName"===s||r.diffChildrenByName,l=!1===s;
// For better performance on roam update, only enter if necessary.
if(!o&&!c&&!l)return;if(c)return u={api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t},void new Es.a(u.oldChildren,u.newChildren,hg,hg,u).add(fg).update(fg).remove(dg).execute();var u;l&&t.removeAll();for(
// Mapping children of a group simply by index, which
// might be better performance.
var h=0;h<o;h++){var f=a[h],d=t.childAt(h);f?(null==f.ignore&&(
// The old child is set to be ignored if null (see comments
// below). So we need to set ignore to be false back.
f.ignore=!1),ag(e,d,n,f,i,t)):
// If the new element option is null, it means to remove the old
// element. But we cannot really remove the element from the group
// directly, because the element order may not be stable when this
// element is added back. So we set the element to be ignored.
d.ignore=!0}for(var p=t.childCount()-1;p>=h;p--){var g=t.childAt(p);ug(t,g,i)}}(e,h,n,r,i),o>=0?a.replaceAt(h,o):a.add(h),h}
// `el` must not be null/undefined.
function og(e,t,n){var r,i=op(e),a=t.type,o=t.shape,s=t.style;
// Always create new if universal transition is enabled.
// Because we do transition after render. It needs to know what old element is. Replacement will loose it.
return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&((r=o)&&(Object(A.hasOwn)(r,"pathData")||Object(A.hasOwn)(r,"d")))&&pg(o)!==i.customPathData||"image"===a&&Object(A.hasOwn)(s,"image")&&s.image!==i.customImagePath}function sg(e,t,n){var r=t?cg(e,t):e,i=t?lg(e,r,jp):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?cg(s,t):s:null;if(i&&(
// Because emphasis style has little info to detect legacy,
// if normal is legacy, emphasis is trade as legacy.
n.isLegacy||dp(i,a,!!o,!!c))){n.isLegacy=!0;var l=pp(i,a,!t);
// Explicitly specified `textConfig` and `textContent` has higher priority than
// the ones generated by legacy style. Otherwise if users use them and `api.style`
// at the same time, they not both work and hardly to known why.
!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;
// `textContent: {type: 'text'}`, the "type" is easy to be missing. So we tolerate it.
!u.type&&(u.type="text")}var h=t?n[t]:n.normal;h.cfg=o,h.conOpt=c}function cg(e,t){return t?e?e[t]:null:e}function lg(e,t,n){var r=t&&t.style;return null==r&&n===jp&&e&&(r=e.styleEmphasis),r}function ug(e,t,n){
// Do not support leave elements that are not mentioned in the latest
// `renderItem` return. Otherwise users may not have a clear and simple
// concept that how to control all of the elements.
t&&Ep(t,op(e).option,n)}function hg(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function fg(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;ag(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function dg(e){var t=this.context,n=t.oldChildren[e];n&&Ep(n,op(n).option,t.seriesModel)}
/**
 * @return SVG Path data.
 */function pg(e){
// "d" follows the SVG convention.
return e&&(e.pathData||e.d)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var gg=Object(lt.o)(),mg=A.clone,vg=A.bind,yg=/** @class */function(){function e(){this._dragging=!1,
/**
     * In px, arbitrary value. Do not set too small,
     * no animation is ok for most cases.
     */
this.animationThreshold=15}
/**
   * @implement
   */return e.prototype.render=function(e,t,n,r){var i=t.get("value"),a=t.get("status");
// Optimize: `render` will be called repeatedly during mouse move.
// So it is power consuming if performing `render` each time,
// especially on mobile device.
if(
// Bind them to `this`, not in closure, otherwise they will not
// be replaced when user calling setOption in not merge mode.
this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)
// Do not clear here, for animation better.
return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();
// Otherwise status is 'show'
var c={};this.makeElOption(c,i,e,t,n);
// Enable change axis pointer type.
var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var h=A.curry(Ag,t,u);this.updatePointerEl(o,c,h),this.updateLabelEl(o,c,h,t)}else o=this._group=new ze.a,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);Cg(o,t,!0),this._renderHandle(i)}},
/**
   * @implement
   */
e.prototype.remove=function(e){this.clear(e)},
/**
   * @implement
   */
e.prototype.dispose=function(e){this.clear(e)},
/**
   * @protected
   */
e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,a=t.get("snap");
// Value axis without snap always do not snap.
if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;
// It is important to auto animation when snap used. Consider if there is
// a dataZoom, animation will be disabled when too many points exist, while
// it will be enabled for better visual effect when little points exist.
if(a){var s=ti(e).seriesDataCount,c=r.getExtent();
// Approximate band width
return Math.abs(c[0]-c[1])/s>o}return!1}return!0===n},
/**
   * add {pointer, label, graphicKey} to elOption
   * @protected
   */
e.prototype.makeElOption=function(e,t,n,r,i){
// Should be implemenented by sub-class.
},
/**
   * @protected
   */
e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=gg(e).pointerEl=new Ve[i.type](mg(t.pointer));e.add(a)}},
/**
   * @protected
   */
e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=gg(e).labelEl=new K.a(mg(t.label));e.add(i),wg(i,r)}},
/**
   * @protected
   */
e.prototype.updatePointerEl=function(e,t,n){var r=gg(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},
/**
   * @protected
   */
e.prototype.updateLabelEl=function(e,t,n,r){var i=gg(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{
// Consider text length change in vertical axis, animation should
// be used on shape, otherwise the effect will be weird.
// TODOTODO
// shape: elOption.label.shape,
x:t.label.x,y:t.label.y}),wg(i,r))},
/**
   * @private
   */
e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Ve.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){
// For mobile device, prevent screen slider on the button.
Hi.g(e.event)},onmousedown:vg(this._onHandleDragMove,this,0,0),drift:vg(this._onHandleDragMove,this),ondragend:vg(this._onHandleDragEnd,this)}),r.add(i)),Cg(i,n,!1),
// update style
i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));
// update position
var s=a.get("size");A.isArray(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Jt.b(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){Ag(this._axisPointerModel,!t&&this._moveAnimation,this._handle,xg(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;
// Persistent for throttle.
var r=this.updateHandleTransform(xg(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xg(r)),gg(n).lastProp=null,this._doDispatchAxisPointer()}},
/**
   * Throttled method.
   */
e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");
// Consider snap or categroy axis, handle may be not consistent with
// axisPointer. So move handle to align the exact value position when
// drag ended.
this._moveHandleToValue(e),
// For the effect: tooltip will be shown when finger holding on handle
// button, and will be hidden after finger left handle button.
this._api.dispatchAction({type:"hideTip"})}},
/**
   * @private
   */
e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Jt.a(this,"_doDispatchAxisPointer")},
/**
   * @protected
   */
e.prototype.doClear=function(){
// Implemented by sub-class if necessary.
},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function Ag(e,t,n,r){
// Animation optimize.
bg(gg(n).lastProp,r)||(gg(n).lastProp=r,t?Ge.h(n,r,e):(n.stopAnimation(),n.attr(r)))}function bg(e,t){if(A.isObject(e)&&A.isObject(t)){var n=!0;return A.each(t,(function(t,r){n=n&&bg(e[r],t)})),!!n}return e===t}function wg(e,t){e[t.get(["label","show"])?"show":"hide"]()}function xg(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Cg(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}
/* harmony default export */var _g=yg;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/viewHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Ig(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}
/**
 * @param {Function} labelPos {align, verticalAlign, position}
 */function Eg(e,t,n,r,i){var a=kg(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),o=n.getModel("label"),s=kt.i(o.get("padding")||0),c=o.getFont(),u=l.d(a,c),h=i.position,f=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=i.align;"right"===p&&(h[0]-=f),"center"===p&&(h[0]-=f/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=d),"middle"===g&&(h[1]-=d/2),
// Not overflow ec container
// Do not overflow ec container
function(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(h,f,d,r);var m=o.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={
// shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},
x:h[0],y:h[1],style:Object(Je.c)(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:m}),
// Label should be over axisPointer.
z2:10}}function kg(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{
// If `precision` is set, width can be fixed (like '12.00500'), which
// helps to debounce when when moving label.
precision:i.precision}),o=i.formatter;if(o){var s={value:wr.c(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A.each(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),A.isString(o)?a=o.replace("{value}",a):A.isFunction(o)&&(a=o(s))}return a}function Sg(e,t,n){var r=Cr.create();return Cr.rotate(r,r,n.rotation),Cr.translate(r,r,n.position),Ve.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Bg(e,t,n,r,i,a){
// @ts-ignore
var o=Xr.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Eg(t,r,i,a,{position:Sg(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Mg(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Tg(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function Og(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Dg=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),c=Pg(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var u=Ig(r),h=Lg[s](a,l,c);h.style=u,e.graphicKey=h.type,e.pointer=h}Bg(
// @ts-ignore
t,e,Or(o.model,n),n,r,i)},
/**
   * @override
   */
t.prototype.getHandleTransform=function(e,t,n){var r=Or(t.axis.grid.model,t,{labelInside:!1});
// @ts-ignore
r.labelMargin=n.get(["handle","margin"]);var i=Sg(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},
/**
   * @override
   */
t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=Pg(a,i).getOtherAxis(i).getGlobalExtent(),c="x"===i.dim?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,h=[u,u];h[c]=l[c];return{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][c]}},t}(_g);function Pg(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Lg={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:Mg([t,n[0]],[t,n[1]],Qg(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Tg([t-r/2,n[0]],[r,i],Qg(e))}}};function Qg(e){return"x"===e.dim?0:1}
/* harmony default export */var Rg=Dg,jg=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="axisPointer",t.defaultOption={
// 'auto' means that show when triggered by tooltip or handle.
show:"auto",
// zlevel: 0,
z:50,type:"line",
// axispointer triggered by tootip determine snap automatically,
// see `modelHelper`.
snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],
// Do not set 'auto' here, otherwise global animation: false
// will not effect at this axispointer.
animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,
// eslint-disable-next-line
icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,
// handle margin is from symbol center to axis, which is stable when circular move.
margin:50,
// color: '#1b8bbd'
// color: '#2f4554'
color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,
// For mobile performance
throttle:40}},t}(cr.a),Ng=jg,Fg=n("22d1"),zg=Object(lt.o)(),Hg=A.each;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @param {string} key
 * @param {module:echarts/ExtensionAPI} api
 * @param {Function} handler
 *      param: {string} currTrigger
 *      param: {Array.<number>} point
 */
function Ug(e,t,n){if(!Fg.a.node){var r=t.getZr();zg(r).records||(zg(r).records={}),function(e,t){if(zg(e).initialized)return;function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};
// FIXME
// better approach?
// 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,
// which may be conflict, (axisPointer call showTip but tooltip call hideTip);
// So we have to add "final stage" to merge those dispatched actions.
return{dispatchAction:n,pendings:t}}(t);Hg(zg(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}zg(e).initialized=!0,n("click",A.curry(Vg,"click")),n("mousemove",A.curry(Vg,"mousemove")),
// useHandler('mouseout', onLeave);
n("globalout",Gg)}(r,t),(zg(r).records[e]||(zg(r).records[e]={})).handler=n}}function Gg(e,t,n){e.handler("leave",null,n)}function Vg(e,t,n,r){t.handler(e,n,r)}function Wg(e,t){if(!Fg.a.node){var n=t.getZr();(zg(n).records||{})[e]&&(zg(n).records[e]=null)}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/AxisPointerView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var qg=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";
// Register global listener in AxisPointerView to enable
// AxisPointerView to be independent to Tooltip.
Ug("axisPointer",n,(function(e,t,n){
// If 'none', it is not controlled by mouse totally.
"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){Wg("axisPointer",t)},t.prototype.dispose=function(e,t){Wg("axisPointer",t)},t.type="axisPointer",t}(sr.a),Yg=qg;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @param finder contains {seriesIndex, dataIndex, dataIndexInside}
 * @param ecModel
 * @return  {point: [x, y], el: ...} point Will not be null.
 */
function Kg(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=lt.u(a,e);if(null==o||o<0||A.isArray(o))return{point:[]};var s=a.getItemGraphicEl(o),c=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,h=l.dim,f="x"===u||"radius"===u?1:0,d=a.mapDimension(h),p=[];p[f]=a.get(d,o),p[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=c.dataToPoint(p)||[]}else r=c.dataToPoint(a.getValues(A.map(c.dimensions,(function(e){return a.mapDimension(e)})),o))||[];else if(s){
// Use graphic bounding rect
var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/axisTrigger.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var $g=Object(lt.o)();
/**
 * Basic logic: check all axis, if they do not demand show/highlight,
 * then hide/downplay them.
 *
 * @return content of event obj for echarts.connect.
 */function Jg(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Object(A.bind)(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;
// Pending
// See #6121. But we are not able to reproduce it yet.
if(s){nm(i)&&(
// Used in the default behavior of `connection`: use the sample seriesIndex
// and dataIndex. And also used in the tooltipView trigger.
i=Kg({seriesIndex:a.seriesIndex,
// Do not use dataIndexInside from other ec instance.
// FIXME: auto detect it?
dataIndex:a.dataIndex},t).point);var c=nm(i),l=a.axesInfo,u=s.axesInfo,h="leave"===r||nm(i),f={},d={},p={list:[],map:{}},g={showPointer:Object(A.curry)(Zg,d),showTooltip:Object(A.curry)(em,p)};
// Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).
// Notice: In this case, it is difficult to get the `point` (which is necessary to show
// tooltip, so if point is not given, we just use the point found by sample seriesIndex
// and dataIndex.
// Process for triggered axes.
Object(A.each)(s.coordSysMap,(function(e,t){
// If a point given, it must be contained by the coordinate system.
var n=c||e.containPoint(i);Object(A.each)(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,a=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(l,e);
// If no inputAxesInfo, no axis is restricted.
if(!h&&n&&(!l||a)){var o=a&&a.value;null!=o||c||(o=r.pointToData(i)),null!=o&&Xg(e,o,g,!1,f)}}))}));
// Process for linked axes.
var m={};return Object(A.each)(u,(function(e,t){var n=e.linkGroup;
// If axis has been triggered in the previous stage, it should not be triggered by link.
n&&!d[t]&&Object(A.each)(n.axesInfo,(function(t,r){var i=d[r];
// If srcValItem exist, source axis is triggered, so link to target axis.
if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,tm(t),tm(e)))),m[e.key]=a}}))})),Object(A.each)(m,(function(e,t){Xg(u[t],e,g,!0,f)})),function(e,t,n){var r=n.axesInfo=[];
// Basic logic: If no 'show' required, 'hide' this axisPointer.
Object(A.each)(t,(function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status="show"),i.value=a.value,
// For label formatter param and highlight.
i.seriesDataIndices=(a.payloadBatch||[]).slice()):
// If hide, value still need to be set, consider
// click legend to toggle axis blank.
!t.useHandle&&(i.status="hide"),
// If status is 'hide', should be no info in payload.
"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(d,u,f),function(e,t,n,r){
// Basic logic: If no showTip required, hideTip will be dispatched.
if(nm(t)||!e.list.length)return void r({type:"hideTip"});
// In most case only one axis (or event one series is used). It is
// convenient to fetch payload.seriesIndex and payload.dataIndex
// directly. So put the first seriesIndex and dataIndex of the first
// axis on the payload.
var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(p,i,e,o),function(e,t,n){
// FIXME
// highlight status modification should be a stage of main process?
// (Consider confilct (e.g., legend and axisPointer) and setOption)
var r=n.getZr(),i="axisPointerLastHighlights",a=$g(r)[i]||{},o=$g(r)[i]={};
// Update highlight/downplay status according to axisPointer model.
// Build hash map and remove duplicate incidentally.
Object(A.each)(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(A.each)(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));
// Diff.
var s=[],c=[];Object(A.each)(a,(function(e,t){!o[t]&&c.push(e)})),Object(A.each)(o,(function(e,t){!a[t]&&s.push(e)})),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,
// Not blur others when highlight in axisPointer.
notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,
// Not blur others when highlight in axisPointer.
notBlur:!0,batch:s})}(u,0,n),f}}function Xg(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){
// Heavy calculation. So put it after axis.containData checking.
var o=function(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Object(A.each)(t.seriesModels,(function(t,c){var l,u,h=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(h,e,n);u=f.dataIndices,l=f.nestestValue}else{if(!(u=t.getData().indicesOfNearest(h[0],e,
// Add a threshold to avoid find the wrong dataIndex
// when data length is not same.
// false,
"category"===n.type?.5:null)).length)return;l=t.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var d=e-l,p=Math.abs(d);
// Consider category case
p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=l,a.length=0),Object(A.each)(u,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:i}}(t,e),s=o.payloadBatch,c=o.snapToValue;
// Fill content of event obj for echarts.connect.
// By default use the first involved series data as a sample to connect.
s[0]&&null==i.seriesIndex&&Object(A.extend)(i,s[0]),
// If no linkSource input, this process is for collecting link
// target, where snap should not be accepted.
!r&&e.snap&&a.containData(c)&&null!=c&&(t=c),n.showPointer(e,t,s),
// Tooltip should always be snapToValue, otherwise there will be
// incorrect "axis value ~ series value" mapping displayed in tooltip.
n.showTooltip(e,o,c)}else n.showPointer(e,t)}function Zg(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function em(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;
// If no data, do not create anything in dataByCoordSys,
// whose length will be used to judge whether dispatch action.
if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=ri(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,
// Caustion: viewHelper.getValueLabel is actually on "view stage", which
// depends that all models have been updated. So it should not be performed
// here. Considering axisPointerModel used here is volatile, which is hard
// to be retrieve in TooltipView, we prepare parameters here.
valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function tm(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function nm(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function rm(e){
// CartesianAxisPointer is not supposed to be required here. But consider
// echarts.simple.js and online build tooltip, which only require gridSimple,
// CartesianAxisPointer should be able to required somewhere.
oi.registerAxisPointerClass("CartesianAxisPointer",Rg),e.registerComponentModel(Ng),e.registerComponentView(Yg),e.registerPreprocessor((function(e){
// Always has a global axisPointerModel for default setting.
if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;
// Normalize to array to avoid object mergin. But if link
// is not set, remain null/undefined, otherwise it will
// override existent link setting.
t&&!Object(A.isArray)(t)&&(e.axisPointer.link=[t])}})),
// This process should proformed after coordinate systems created
// and series data processed. So put it on statistic processing stage.
e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){
// Build axisPointerModel, mergin tooltip.axisPointer model for each axis.
// allAxesInfo should be updated when setOption performed.
e.getComponent("axisPointer").coordSysAxesInfo=Zr(e,t)})),
// Broadcast to all views.
e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Jg)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/grid/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var im=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get("type");if(l&&"none"!==l){var u=Ig(r),h=am[l](a,o,c,s);h.style=u,e.graphicKey=h.type,e.pointer=h}var f=function(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c,l,u,h=r.getRadiusAxis().getExtent();if("radius"===a.dim){var f=Cr.create();Cr.rotate(f,f,s),Cr.translate(f,f,[r.cx,r.cy]),c=Ve.applyTransform([o,-i],f);var d=t.getModel("axisLabel").get("rotate")||0,p=Xr.innerTextLayout(s,d*Math.PI/180,-1);
// @ts-ignore
l=p.textAlign,u=p.textVerticalAlign}else{
// angle axis
var g=h[1];c=r.coordToPoint([g+i,o]);var m=r.cx,v=r.cy;l=Math.abs(c[0]-m)/g<.3?"center":c[0]>m?"left":"right",u=Math.abs(c[1]-v)/g<.3?"middle":c[1]>v?"top":"bottom"}return{position:c,align:l,verticalAlign:u}}(t,n,0,o,r.get(["label","margin"]));Eg(e,n,r,i,f)},t}(_g);var am={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:Mg(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:Og(t.cx,t.cy,r[0],r[1],
// In ECharts y is negative if angle is positive
(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:Og(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},om=im,sm=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={
// zlevel: 0,
z:0,center:["50%","50%"],radius:"80%"},t}(cr.a),cm=sm,lm=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",lt.b).models[0]},t.type="polarAxis",t}(cr.a);
/* harmony default export */A.mixin(lm,hr.a);var um=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="angleAxis",t}(lm),hm=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="radiusAxis",t}(lm),fm=/** @class */function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(Re.a)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Br.a);fm.prototype.dataToRadius=Br.a.prototype.dataToCoord,fm.prototype.radiusToData=Br.a.prototype.coordToData;
/* harmony default export */var dm=fm,pm=Object(lt.o)(),gm=/** @class */function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(Re.a)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},
/**
   * Only be called in category axis.
   * Angle axis uses text height to decide interval
   *
   * @override
   * @return {number} Auto interval for cateogry axis tick and label
   */
t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=l.d(null==a?"":a+"",t.getFont(),"center","top"),u=Math.max(c.height,7)/s;
// 0/0 is NaN, 1/0 is Infinity.
isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),f=pm(e.model),d=f.lastAutoInterval,p=f.lastTickCount;
// Use cache to keep interval stable while moving zoom window,
// otherwise the calculated interval might jitter when the zoom
// window size is close to the interval-changing size.
return null!=d&&null!=p&&Math.abs(d-h)<=1&&Math.abs(p-i)<=1&&d>h?h=d:(f.lastTickCount=i,f.lastAutoInterval=h),h},t}(Br.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/AngleAxis.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/gm.prototype.dataToAngle=Br.a.prototype.dataToCoord,gm.prototype.angleToData=Br.a.prototype.coordToData;
/* harmony default export */var mm=gm,vm=["radius","angle"];
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/Polar.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function ym(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}
/* harmony default export */var Am=/** @class */function(){function e(e){this.dimensions=vm,this.type="polar",
/**
     * x of polar center
     */
this.cx=0,
/**
     * y of polar center
     */
this.cy=0,this._radiusAxis=new dm,this._angleAxis=new mm,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}
/**
   * If contain coord
   */return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},
/**
   * If contain data
   */
e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},
/**
   * Get axes by type of scale
   */
e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},
/**
   * Base axis will be used on stacking.
   *
   */
e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},
/**
   * Convert a single data item to (x, y) point.
   * Parameter data is an array which the first element is radius and the second is angle
   */
e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},
/**
   * Convert a (x, y) point to data
   */
e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},
/**
   * Convert a (x, y) point to (radius, angle) coord
   */
e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);
// Fix fixed extent in polarCreator
// FIXME
r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1
// move to angleExtent
;c<a||c>o;)c+=360*l;return[s,c]},
/**
   * Convert a (radius, angle) coord to (x, y) point
   */
e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},
/**
   * Get ring area of cartesian.
   * Area will have a contain function to determine if a point is in the coordinate system.
   */
e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){
// It's a ring shape.
// Start angle and end angle don't matter
var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;
// minus a tiny value 1e-4 in double side to avoid being clipped unexpectedly
// r == r0 contain nothing
return o!==s&&a-i<=o*o&&a+i>=s*s}}},e.prototype.convertToPixel=function(e,t,n){return ym(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ym(t)===this?this.pointToData(n):null},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/polar/polarCreator.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO Axis scale
/**
 * Resize method bound to the polar
 */
/**
 * Update polar
 */
function bm(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();
// Fix extent of category angle axis
if(
// Reset scale
r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();A.each(Object(wr.d)(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),A.each(Object(wr.d)(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Object(wr.i)(r.scale,r.model),Object(wr.i)(i.scale,i.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}
/**
 * Set common axis properties
 */
function wm(e,t){var n;if(e.type=t.get("type"),e.scale=Object(wr.a)(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}
// Inject axis instance
t.axis=e,e.model=t}var xm={dimensions:vm,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new Am(r+"");
// Inject resize and update method
i.update=bm;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),c=e.findAxisModel("angleAxis");wm(a,s),wm(o,c),function(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=Object(xt.q)(r[0],i),e.cy=Object(xt.q)(r[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,c=t.get("radius");null==c?c=[0,"100%"]:A.isArray(c)||(
// r0 = 0
c=[0,c]);var l=[Object(xt.q)(c[0],s),Object(xt.q)(c[1],s)];o.inverse?o.setExtent(l[1],l[0]):o.setExtent(l[0],l[1])}(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),
// Inject coordinateSystem to series
e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",lt.b).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},Cm=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];
/* harmony default export */function _m(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function Im(e){return e.getRadiusAxis().inverse?0:1}
// Remove the last tick which will overlap the first tick
function Em(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var km=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Re.a)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=A.map(n.getViewLabels(),(function(e){e=A.clone(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));Em(s),Em(a),A.each(Cm,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Sm[t](this.group,e,r,a,o,i,s)}),this)}},t.type="angleAxis",t}(oi),Sm={axisLine:function(e,t,n,r,i,a){var o,s=t.getModel(["axisLine","lineStyle"]),c=n.getAngleAxis(),l=Math.PI/180,u=c.getExtent(),h=Im(n),f=h?0:1,d=360===Math.abs(u[1]-u[0])?"Circle":"Arc";(o=0===a[f]?new Ve[d]({shape:{cx:n.cx,cy:n.cy,r:a[h],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:c.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Pi.a({shape:{cx:n.cx,cy:n.cy,r:a[h],r0:a[f]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(o)},axisTick:function(e,t,n,r,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),c=a[Im(n)],l=A.map(r,(function(e){return new Ur.a({shape:_m(n,[c,c+s],e.coord)})}));e.add(Ve.mergePath(l,{style:A.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),c=(o.get("inside")?-1:1)*s.get("length"),l=a[Im(n)],u=[],h=0;h<i.length;h++)for(var f=0;f<i[h].length;f++)u.push(new Ur.a({shape:_m(n,[l,l+c],i[h][f].coord)}));e.add(Ve.mergePath(u,{style:A.defaults(s.getModel("lineStyle").getLineStyle(),A.defaults(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel("axisLabel"),l=c.get("margin"),u=t.get("triggerEvent");
// Use length of ticksAngles because it may remove the last tick to avoid overlapping
A.each(o,(function(r,i){var o=c,h=r.tickValue,f=a[Im(n)],d=n.coordToPoint([f+l,r.coord]),p=n.cx,g=n.cy,m=Math.abs(d[0]-p)/f<.3?"center":d[0]>p?"left":"right",v=Math.abs(d[1]-g)/f<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];A.isObject(y)&&y.textStyle&&(o=new Gr.a(y.textStyle,c,c.ecModel))}var b=new K.a({silent:Xr.isLabelSilent(t),style:Object(Je.c)(o,{x:d[0],y:d[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:m,verticalAlign:v})});
// Pack data for mouse event
if(e.add(b),u){var w=Xr.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=r.rawLabel,Object(We.a)(b).eventData=w}}),this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var h=c++%s.length;l[h]=l[h]||[],l[h].push(new Ur.a({shape:_m(n,a,r[u].coord)}))}
// Simple optimization
// Batching the lines if color are the same
for(u=0;u<l.length;u++)e.add(Ve.mergePath(l[u],{style:A.defaults({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new Ur.a({shape:_m(n,a,i[c][l].coord)}));e.add(Ve.mergePath(s,{style:o.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,h=-r[0].coord*u,f=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),p=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var v=g===m?r[0].coord:r[g].coord,y=c++%s.length;l[y]=l[y]||[],l[y].push(new wt.a({shape:{cx:n.cx,cy:n.cy,r0:f,r:d,startAngle:h,endAngle:-v*u,clockwise:p},silent:!0})),h=-v*u}
// Simple optimization
// Batching the lines if color are the same
for(g=0;g<l.length;g++)e.add(Ve.mergePath(l[g],{style:A.defaults({fill:s[g%s.length]},o.getAreaStyle()),silent:!0}))}}},Bm=km,Mm=["axisLine","axisTickLabel","axisName"],Tm=["splitLine","splitArea","minorSplitLine"],Om=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Re.a)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new ze.a;this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),s=i.getTicksCoords(),c=i.getMinorTicksCoords(),l=o.getExtent()[0],u=i.getExtent(),h=
/**
 * @inner
 */
function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),
// Over splitLine and splitArea
z2:1}}
/* harmony default export */(a,e,l),f=new Xr(e,h);A.each(Mm,f.add,f),r.add(f.getGroup()),Ve.groupTransition(n,r,e),A.each(Tm,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&Dm[t](this.group,e,a,l,u,s,c)}),this)}},t.type="radiusAxis",t}(oi),Dm={splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),c=0,l=n.getAngleAxis(),u=Math.PI/180,h=l.getExtent(),f=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var d=[],p=0;p<a.length;p++){var g=c++%s.length;d[g]=d[g]||[],d[g].push(new Ve[f]({shape:{cx:n.cx,cy:n.cy,
// ensure circle radius >= 0
r:Math.max(a[p].coord,0),startAngle:-h[0]*u,endAngle:-h[1]*u,clockwise:l.inverse}}))}
// Simple optimization
// Batching the lines if color are the same
for(p=0;p<d.length;p++)e.add(Ve.mergePath(d[p],{style:A.defaults({stroke:s[p%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new Di.a({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(Ve.mergePath(c,{style:A.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,h=1;h<a.length;h++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new wt.a({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=a[h].coord}
// Simple optimization
// Batching the lines if color are the same
for(h=0;h<l.length;h++)e.add(Ve.mergePath(l[h],{style:A.defaults({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}};var Pm=Om;
// CONCATENATED MODULE: ./node_modules/echarts/lib/layout/barPolar.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Lm(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function Qm(e,t){return t.dim+e.model.componentIndex}
/* harmony default export */var Rm=function(e,t,n){var r={},i=
/**
 * Calculate bar width and offset for radial bar charts
 */
function(e){
// Columns info on each category axis. Key is polar name
var t={};A.each(e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=Qm(i,a),s=a.getExtent(),c="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=l.stacks;t[o]=l;var h=Lm(e);u[h]||l.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var f=Object(xt.q)(e.get("barWidth"),c),d=Object(xt.q)(e.get("barMaxWidth"),c),p=e.get("barGap"),g=e.get("barCategoryGap");f&&!u[h].width&&(f=Math.min(l.remainedWidth,f),u[h].width=f,l.remainedWidth-=f),d&&(u[h].maxWidth=d),null!=p&&(l.gap=p),null!=g&&(l.categoryGap=g)}));var n={};return A.each(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=Object(xt.q)(e.categoryGap,i),o=Object(xt.q)(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),
// Find if any auto calculated bar exceeded maxBarWidth
A.each(r,(function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,c--)})),
// Recalculate width again
l=(s-a)/(c+(c-1)*o),l=Math.max(l,0);var u,h=0;A.each(r,(function(e,t){e.width||(e.width=l),u=e,h+=e.width*(1+o)})),u&&(h-=u.width*o);var f=-h/2;A.each(r,(function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)}))})),n}(A.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){
// Check series coordinate, do layout for polar only
if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=Qm(n,a),s=Lm(e),c=i[o][s],l=c.offset,u=c.width,h=n.getOtherAxis(a),f=e.coordinateSystem.cx,d=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var m=t.mapDimension(h.dim),v=t.mapDimension(a.dim),y=Object(it.c)(t,m/* , baseDim */),A="radius"!==a.dim||!e.get("roundCap",!0),b=h.model.get("startValue"),w=h.dataToCoord(b||0),x=0,C=t.count();x<C;x++){var _=t.get(m,x),I=t.get(v,x),E=_>=0?"p":"n",k=w;
// Because of the barMinHeight, we can not use the value in
// stackResultDimension directly.
// Only ordinal axis can be stacked.
y&&(r[s][I]||(r[s][I]={p:w,n:w}),
// Should also consider #4243
k=r[s][I][E]);var S=void 0,B=void 0,M=void 0,T=void 0;
// radial sector
if("radius"===h.dim){var O=h.dataToCoord(_)-w,D=a.dataToCoord(I);Math.abs(O)<p&&(O=(O<0?-1:1)*p),S=k,B=k+O,T=(M=D-l)-u,y&&(r[s][I][E]=B)}
// tangential sector
else{var P=h.dataToCoord(_,A)-w,L=a.dataToCoord(I);Math.abs(P)<g&&(P=(P<0?-1:1)*g),B=(S=L+l)+u,M=k,T=k+P,
// if the previous stack is at the end of the ring,
// add a round to differentiate it from origin
// let extent = angleAxis.getExtent();
// let stackCoord = angle;
// if (stackCoord === extent[0] && value > 0) {
//     stackCoord = extent[1];
// }
// else if (stackCoord === extent[1] && value < 0) {
//     stackCoord = extent[0];
// }
y&&(r[s][I][E]=T)}t.setItemLayout(x,{cx:f,cy:d,r0:S,r:B,
// Consider that positive angle is anti-clockwise,
// while positive radian of sector is clockwise
startAngle:-M*Math.PI/180,endAngle:-T*Math.PI/180,
/**
         * Keep the same logic with bar in catesion: use end value to
         * control direction. Notice that if clockwise is true (by
         * default), the sector will always draw clockwisely, no matter
         * whether endAngle is greater or less than startAngle.
         */
clockwise:M>=T})}}}))},jm={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Nm={splitNumber:5},Fm=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="polar",t}(sr.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/polar/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/singleAxisHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function zm(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=["vertical"===o?l.vertical[a]:c[0],"horizontal"===o?l.horizontal[a]:c[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),A.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var u=t.rotate;return null==u&&(u=e.get(["axisLabel","rotate"])),i.labelRotation="top"===a?-u:u,i.z2=1,i}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/axis/SingleAxisView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Hm=["axisLine","axisTickLabel","axisName"],Um=["splitArea","splitLine"],Gm=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(Re.a)(t,e),t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new ze.a;var s=zm(t),c=new Xr(t,s);A.each(Hm,c.add,c),a.add(this._axisGroup),a.add(c.getGroup()),A.each(Um,(function(e){t.get([e,"show"])&&Vm[e](this,this.group,this._axisGroup,t)}),this),Ve.groupTransition(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){li(this)},t.type="singleAxis",t}(oi),Vm={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var c=o.get("width"),l=r.coordinateSystem.getRect(),u=i.isHorizontal(),h=[],f=0,d=i.getTicksCoords({tickModel:a}),p=[],g=[],m=0;m<d.length;++m){var v=i.toGlobalCoord(d[m].coord);u?(p[0]=v,p[1]=l.y,g[0]=v,g[1]=l.y+l.height):(p[0]=l.x,p[1]=v,g[0]=l.x+l.width,g[1]=v);var y=new Ur.a({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});Ve.subPixelOptimizeLine(y.shape,c);var b=f++%s.length;h[b]=h[b]||[],h[b].push(y)}var w=o.getLineStyle(["color"]);for(m=0;m<h.length;++m)t.add(Ve.mergePath(h[m],{style:A.defaults({stroke:s[m%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){ci(e,n,r,r)}},Wm=Gm,qm=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},
// Single coordinate system and single axis is the,
// which is used as the parent tooltip model.
// same model, so we set default tooltip show as true.
tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(cr.a);Object(A.mixin)(qm,hr.a.prototype);
/* harmony default export */var Ym=qm,Km=/** @class */function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.position=a||"bottom",o}
/**
   * Judge the orient of the axis.
   */return Object(Re.a)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Br.a),$m=["single"];
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/SingleAxis.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Jm(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}
/* harmony default export */var Xm=/** @class */function(){function e(e,t,n){this.type="single",this.dimension="single",
/**
     * Add it just for draw tooltip.
     */
this.dimensions=$m,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}
/**
   * Initialize single coordinate system.
   */return e.prototype._init=function(e,t,n){var r=this.dimension,i=new Km(r,wr.a(e),[0,0],e.get("type"),e.get("position")),a="category"===i.type;i.onBand=a&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},
/**
   * Update axis scale after data processed
   */
e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(A.each)(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),wr.i(this._axis.scale,this._axis.model)}}),this)},
/**
   * Resize the single coordinate system.
   */
e.prototype.resize=function(e,t){this._rect=Object(In.g)({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},
/**
   * Get axis.
   */
e.prototype.getAxis=function(){return this._axis},
/**
   * Get axis, add it just for draw tooltip.
   */
e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],
// Empty otherAxes
otherAxes:[]}},
/**
   * If contain point.
   */
e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},
/**
   * Convert the series data to concrete point.
   * Can be [val] | val
   */
e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return Jm(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Jm(t)===this?this.pointToData(n):null},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/single/singleCreator.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Single coordinate system creator.
 */
/**
 * Create single coordinate system and inject it into seriesModel.
 */var Zm={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var a=new Xm(r,e,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",lt.b).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:$m},ev=["x","y"],tv=["width","height"],nv=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=av(o,1-iv(a)),c=o.dataToPoint(t)[0],l=r.get("type");if(l&&"none"!==l){var u=Ig(r),h=rv[l](a,c,s);h.style=u,e.graphicKey=h.type,e.pointer=h}Bg(
// @ts-ignore
t,e,zm(n),n,r,i)},
/**
   * @override
   */
t.prototype.getHandleTransform=function(e,t,n){var r=zm(t,{labelInside:!1});
// @ts-ignore
r.labelMargin=n.get(["handle","margin"]);var i=Sg(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},
/**
   * @override
   */
t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=iv(i),s=av(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=av(a,1-o),u=(l[1]+l[0])/2,h=[u,u];return h[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(_g),rv={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:Mg([t,n[0]],[t,n[1]],iv(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Tg([t-r/2,n[0]],[r,i],iv(e))}}};
/* harmony default export */function iv(e){return e.isHorizontal()?0:1}function av(e,t){var n=e.getRect();return[n[ev[t]],n[ev[t]]+n[tv[t]]]}
/* harmony default export */var ov=nv,sv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="single",t}(sr.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/singleAxis/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/calendar/CalendarModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var cv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.init=function(t,n,r){var i=Object(In.f)(t);e.prototype.init.apply(this,arguments),lv(t,i)},
/**
   * @override
   */
t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),lv(this.option,t)},t.prototype.getCellSize=function(){
// Has been normalized
return this.option.cellSize},t.type="calendar",t.defaultOption={
// zlevel: 0,
z:2,left:80,top:60,cellSize:20,
// horizontal vertical
orient:"horizontal",
// month separate line style
splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},
// rect style  temporarily unused emphasis
itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},
// week text style
dayLabel:{show:!0,firstDay:0,
// start end
position:"start",margin:"50%",color:"#000"},
// month text style
monthLabel:{show:!0,
// start end
position:"start",margin:5,
// center or left
align:"center",formatter:null,color:"#000"},
// year text style
yearLabel:{show:!0,
// top bottom left right
position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(cr.a);function lv(e,t){
// Normalize cellSize
var n,r=e.cellSize;1===(n=A.isArray(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var i=A.map([0,1],(function(e){
// If user have set `width` or both `left` and `right`, cellSizeArr
// will be automatically set to 'auto', otherwise the default
// setting of cellSizeArr will make `width` setting not work.
return Object(In.j)(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(In.h)(e,t,{type:"box",ignoreSize:i})}
/* harmony default export */var uv=cv,hv=n("ef59"),fv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();
// range info
this._renderDayRect(e,a,r),
// _renderLines must be called prior to following function
this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},
// render day rect
t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToRect([s],!1).tl,l=new bt.a({shape:{x:c[0],y:c[1],width:a,height:o},cursor:"default",style:i});
// every rect
n.add(l)}},
// render separate line
t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),0===u&&(l=a.getDateInfo(t.start.y+"-"+t.start.m));var h=l.date;h.setMonth(h.getMonth()+1),l=a.getDateInfo(h)}function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}
// render top/left line
f(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),
// render bottom/right line
s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},
// get points at both ends
t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;
// both ends of the line are extend half lineWidth
return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},
// render split line
t.prototype._drawSplitline=function(e,t,n){var r=new Dn.a({z2:20,shape:{points:e},style:t});n.add(r)},
// render month line of one week points
t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToRect([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return Object(A.isString)(e)&&e?Object(kt.f)(e,t):Object(A.isFunction)(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):
// top
o-=i;var c=0;return"left"!==r&&"right"!==r||(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},
// render year
t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var d=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:f},g=this._formatterLabel(d,p),m=new K.a({z2:30,style:Object(Je.c)(i,{text:g}),silent:i.get("silent")});m.attr(this._yearTextPositionControl(m,h[o],n,o,a)),r.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a="left",o="top",s=e[0],c=e[1];return"horizontal"===n?(c+=i,t&&(a="center"),"start"===r&&(o="bottom")):(s+=i,t&&(o="middle"),"start"===r&&(a="right")),{x:s,y:c,align:a,verticalAlign:o}},
// render month and year text
t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),s=i.get("position"),c=i.get("align"),l=[this._tlpoints,this._blpoints];a&&!Object(A.isString)(a)||(a&&(
// case-sensitive
t=Object(hv.d)(a)||t),
// PENDING
// for ZH locale, original form is `一月` but current form is `1月`
a=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var f="center"===c,d=i.get("silent"),p=0;p<l[u].length-1;p++){var g=l[u][p].slice(),m=this._firstDayOfMonth[p];if(f){var v=this._firstDayPoints[p];g[h]=(v[h]+l[0][p+1][h])/2}var y=i.get("formatter"),b=a[+m.m-1],w={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},x=this._formatterLabel(y,w),C=new K.a({z2:30,style:Object(A.extend)(Object(Je.c)(i,{text:x}),this._monthTextPositionControl(g,f,n,s,o)),silent:d});r.add(C)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a="center",o="middle",s=e[0],c=e[1],l="start"===n;return"horizontal"===t?(s=s+r+(l?1:-1)*i[0]/2,a=l?"right":"left"):(c=c+r+(l?1:-1)*i[1]/2,o=l?"bottom":"top"),{x:s,y:c,align:a,verticalAlign:o}},
// render weeks
t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel("dayLabel");if(a.get("show")){var o=e.coordinateSystem,s=a.get("position"),c=a.get("nameMap"),l=a.get("margin"),u=o.getFirstDayOfWeek();if(!c||Object(A.isString)(c))c&&(
// case-sensitive
t=Object(hv.d)(c)||t),c=t.get(["time","dayOfWeekShort"])||Object(A.map)(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}));
// Use the first letter of `dayOfWeekAbbr` if `dayOfWeekShort` doesn't exist in the locale file
var h=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=Object(xt.q)(l,Math.min(f[1],f[0])),"start"===s&&(h=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var d=a.get("silent"),p=0;p<7;p++){var g,m=o.getNextNDay(h,p),v=o.dataToRect([m.time],!1).center;g=Math.abs((p+u)%7);var y=new K.a({z2:30,style:Object(A.extend)(Object(Je.c)(a,{text:c[g]}),this._weekTextPositionControl(v,r,s,l,f)),silent:d});i.add(y)}}},t.type="calendar",t}(sr.a),dv=fv,pv=864e5;
// EXTERNAL MODULE: ./node_modules/echarts/lib/core/locale.js + 2 modules
function gv(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}
/* harmony default export */var mv=/** @class */function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,
// Required in createListFromData
this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},
/**
   * getFirstDayOfWeek
   *
   * @example
   *     0 : start at Sunday
   *     1 : start at Monday
   *
   * @return {number}
   */
e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},
/**
   * get date info
   * }
   */
e.prototype.getDateInfo=function(e){var t=(e=xt.p(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),a=i<10?"0"+i:""+i,o=e.getDay();return{y:t+"",m:r,d:a,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+a,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];A.each([0,1],(function(e){l(i,e)&&(a[r[e]]=i[e]*o[e])}));var s={width:t.getWidth(),height:t.getHeight()},c=this._rect=In.g(a,s);function l(e,t){return null!=e[t]&&"auto"!==e[t]}
// Has been calculated out number.
A.each([0,1],(function(e){l(i,e)||(i[e]=c[r[e]]/o[e])})),this._sw=i[0],this._sh=i[1]},
/**
   * Convert a time data(time, value) item to (x, y) point.
   */
// TODO Clamp of calendar is not same with cartesian coordinate systems.
// It will return NaN if data exceeds.
e.prototype.dataToPoint=function(e,t){A.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;
// if not in range return [NaN, NaN]
if(t&&!(n.time>=r.start.time&&n.time<r.end.time+pv))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},
/**
   * Convert a (x, y) point to time data
   */
e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},
/**
   * Convert a time date item to (x, y) four point.
   */
e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},
/**
   * Convert a (x, y) point to time date
   *
   * @param  {Array} point point
   * @return {Object}       date
   */
e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=gv(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=gv(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return!1},
/**
   * initRange
   * Normalize to an [start, end] array
   */
e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(
// Convert [1990] to 1990
A.isArray(t)&&1===t.length&&(t=t[0]),A.isArray(t))e=t;else{var n=t.toString();
// One year.
// One month
if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);e=[r.formatedDate,a.formatedDate]}
// One day
/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)
// Not handling it.
return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},
/**
   * range info
   *
   * @private
   * @param  {Array} range range ['2017-01-01', '2017-07-08']
   *  If range[0] > range[1], they will not be reversed.
   * @return {Object}       obj
   */
e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/pv)-Math.floor(n[0].time/pv)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();
// Consider case1 (#11677 #10430):
// Set the system timezone as "UK", set the range to `['2016-07-01', '2016-12-31']`
// Consider case2:
// Firstly set system timezone as "Time Zone: America/Toronto",
// ```
// let first = new Date(1478412000000 - 3600 * 1000 * 2.5);
// let second = new Date(1478412000000);
// let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;
// ```
// will get wrong result because of DST. So we should fix it.
i.setDate(a+r-1);
// The bias can not over a month, so just compare date.
var s=i.getDate();if(s!==o)for(var c=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-n[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+n[0].day+6)/7),u=t?1-l:l-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:l,
// From 0.
nthWeek:u,fweek:n[0].day,lweek:n[1].day}},
/**
   * get date by nthWeeks and week day in range
   *
   * @private
   * @param  {number} nthWeek the week
   * @param  {number} day   the week day
   * @param  {Array} range [d1, d2]
   * @return {Object}
   */
e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(
// Inject coordinate system
e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/calendar/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function vv(e,t){var n;return A.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var yv=["transition","enterFrom","leaveTo"],Av=yv.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function bv(e,t,n){if(n&&(!e[n]&&t[n]&&(
// TODO avoid creating this empty object when there is no transition configuration.
e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?yv:Av,i=0;i<r.length;i++){var a=r[i];null==e[a]&&null!=t[a]&&(e[a]=t[a])}}var wv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(Re.a)(t,e),t.prototype.mergeOption=function(t,n){
// Prevent default merge to elements
var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=lt.q(i,a,"normalMerge"),s=this._elOptionsToUpdate=[];
// Clear elOptionsToUpdate
A.each(o,(function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;
// Set id and type after id assigned.
// Set parent id if not specified
if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}
// Clear
t.parentOption=null}(e,n),function(e,t,n){
// Update existing options, for `getOption` feature.
var r=A.extend({},n),i=e[t],a=n.$action||"merge";"merge"===a?i?(
// We can ensure that newElOptCopy and existElOption are not
// the same object, so `merge` will not change newElOptCopy.
A.merge(i,r,!0),
// Rigid body, use ignoreSize.
Object(In.h)(i,r,{ignoreSize:!0}),
// Will be used in render.
Object(In.c)(n,i),
// Copy transition info to new option so it can be used in the transition.
// DO IT AFTER merge
bv(n,i),bv(n,i,"shape"),bv(n,i,"style"),bv(n,i,"extra"),
// Copy clipPath
n.clipPath=i.clipPath):e[t]=r:"replace"===a?e[t]=r:"remove"===a&&
// null will be cleaned later.
i&&(e[t]=null)}(i,t,n),function(e,t){if(e&&(e.hv=t.hv=[
// Rigid body, don't care about `width`.
vv(t,["left","right"]),
// Rigid body, don't care about `height`.
vv(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[t],n))}),this),
// Clean
n.elements=A.filter(i,(function(e){
// $action should be volatile, otherwise option gotten from
// `getOption` will contain unexpected $action.
return e&&delete e.$action,null!=e}))},
/**
   * Convert
   * [{
   *  type: 'group',
   *  id: 'xx',
   *  children: [{type: 'circle'}, {type: 'polygon'}]
   * }]
   * to
   * [
   *  {type: 'group', id: 'xx'},
   *  {type: 'circle', parentId: 'xx'},
   *  {type: 'polygon', parentId: 'xx'}
   * ]
   */
t.prototype._flatten=function(e,t,n){A.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;
// here we don't judge if option.type is `group`
// when new option doesn't provide `type`, it will cause that the children can't be updated.
r&&r.length&&this._flatten(r,t,e),
// Deleting for JSON output, and for not affecting group creation.
delete e.children}}),this)},
// FIXME
// Pass to view using payload? setOption has a payload?
t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;
// Clear to avoid render duplicately when zooming.
return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(cr.a),xv={
// Reserved but not supported in graphic component.
path:null,compoundPath:null,
// Supported in graphic component.
group:ze.a,image:c.a,text:K.a},Cv=lt.o(),_v=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(){this._elMap=A.createHashMap()},t.prototype.render=function(e,t,n){
// Having leveraged between use cases and algorithm complexity, a very
// simple layout mechanism is used:
// The size(width/height) can be determined by itself or its parent (not
// implemented yet), but can not by its children. (Top-down travel)
// The location(x/y) can be determined by the bounding rect of itself
// (can including its descendants or not) and the size of its parent.
// (Bottom-up travel)
// When `chart.clear()` or `chart.setOption({...}, true)` with the same id,
// view will be reused.
e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},
/**
   * Update graphic elements.
   */
t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get("z"),a=e.get("zlevel");
// Top-down tranverse to assign graphic settings to each elements.
A.each(t,(function(t){var o=lt.e(t.id,null),s=null!=o?n.get(o):null,c=lt.e(t.parentId,null),l=null!=c?n.get(c):r,u=t.type,h=t.style;"text"===u&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var f=t.textContent,d=t.textConfig;if(h&&dp(h,u,!!d,!!f)){var p=pp(h,u,!0);!d&&p.textConfig&&(d=t.textConfig=p.textConfig),!f&&p.textContent&&(f=p.textContent)}
// Remove unnecessary props to avoid potential problems.
var g=
// Remove unnecessary props to avoid potential problems.
function(e){return e=A.extend({},e),A.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(In.a),(function(t){delete e[t]})),e}(t);
// For simple, do not support parent change, otherwise reorder is needed.
var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var b=s;(k=!s)?b=Ev(o,l,t.type,n):(b&&(Cv(b).isNew=!1),
// Stop and restore before update any other attributes.
Qp(b)),b&&(_p(b,g,e,{isInit:k}),Sv(b,t,i,a))}else if(y){kv(s,t,n,e);var w=Ev(o,l,t.type,n);w&&(_p(w,g,e,{isInit:!0}),Sv(w,t,i,a))}else"remove"===m&&(Ip(s,t),kv(s,t,n,e));var x=n.get(o);if(x&&f)if(v){var C=x.getTextContent();C?C.attr(f):x.setTextContent(new K.a(f))}else y&&x.setTextContent(new K.a(f));if(x){var _=t.clipPath;if(_){var I=_.type,E=void 0,k=!1;if(v){var S=x.getClipPath();E=(k=!S||Cv(S).type!==I)?Iv(I):S}else y&&(k=!0,E=Iv(I));x.setClipPath(E),_p(E,_,e,{isInit:k}),Rp(E,_.keyframeAnimation,e)}var B=Cv(x);x.setTextConfig(d),B.option=t,function(e,t,n){var r=Object(We.a)(e).eventData;
// Simple optimize for large amount of elements that no need event.
e.silent||e.ignore||r||(r=Object(We.a)(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});
// `elOption.info` enables user to mount some info on
// elements and use them in event handlers.
r&&(r.info=n.info)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/graphic/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/(x,e,t),Ve.setTooltipConfig({el:x,componentModel:e,itemName:x.name,itemTooltipOption:t.tooltip}),Rp(x,t.keyframeAnimation,e)}}))}},
/**
   * Locate graphic elements.
   */
t.prototype._relocate=function(e,t){
// Top-down to calculate percentage width/height of group
for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=["x","y"],c=0;c<n.length;c++){var l=n[c];if((p=null!=(d=lt.e(l.id,null))?i.get(d):null)&&p.isGroup){var u=(g=p.parent)===r,h=Cv(p),f=Cv(g);h.width=Object(xt.q)(h.option.width,u?a:f.width)||0,h.height=Object(xt.q)(h.option.height,u?o:f.height)||0}}
// Bottom-up tranvese all elements (consider ec resize) to locate elements.
for(c=n.length-1;c>=0;c--){var d,p;l=n[c];if(p=null!=(d=lt.e(l.id,null))?i.get(d):null){var g=p.parent,m=(f=Cv(g),g===r?{width:a,height:o}:{width:f.width,height:f.height}),v={},y=In.i(p,l,m,null,{hv:l.hv,boundingMode:l.bounding},v);if(!Cv(p).isNew&&y){for(var b=l.transition,w={},x=0;x<s.length;x++){var C=s[x],_=v[C];b&&(kp(b)||A.indexOf(b,C)>=0)?w[C]=_:p[C]=_}Object(Ge.h)(p,w,e,0)}else p.attr(v)}}},
/**
   * Clear all elements.
   */
t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){kv(n,Cv(n).option,t,e._lastGraphicModel)})),this._elMap=A.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(sr.a);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/graphic/GraphicView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Iv(e){var t=new(A.hasOwn(xv,e)?xv[e]:Ve.getShapeClass(e))({});return Cv(t).type=e,t}function Ev(e,t,n,r){var i=Iv(n);return t.add(i),r.set(e,i),Cv(i).id=e,Cv(i).isNew=!0,i}function kv(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse((function(e){kv(e,t,n,r)})),Ep(e,t,r),n.removeKey(Cv(e).id))}function Sv(e,t,n,r){e.isGroup||A.each([["cursor",Va.c.prototype.cursor],
// We should not support configure z and zlevel in the element level.
// But seems we didn't limit it previously. So here still use it to avoid breaking.
["zlevel",r||0],["z",n||0],
// z2 must not be null/undefined, otherwise sort error may occur.
["z2",0]],(function(n){var r=n[0];A.hasOwn(t,r)?e[r]=A.retrieve2(t[r],n[1]):null==e[r]&&(e[r]=n[1])})),A.each(A.keys(t),(function(n){
// Assign event handlers.
// PENDING: should enumerate all event names or use pattern matching?
if(0===n.indexOf("on")){var r=t[n];e[n]=A.isFunction(r)?r:null}})),A.hasOwn(t,"draggable")&&(e.draggable=t.draggable),
// Other attributes
null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/helper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Bv=["x","y","radius","angle","single"],Mv=["cartesian2d","polar","singleAxis"];
// Supported coords.
// FIXME: polar has been broken (but rarely used).
function Tv(e){return e+"Axis"}
/**
 * If two dataZoomModels has the same axis controlled, we say that they are 'linked'.
 * This function finds all linked dataZoomModels start from the given payload.
 */
function Ov(e,t){
// Key: `DataZoomAxisDimension`
var n,r=Object(A.createHashMap)(),i=[],a=Object(A.createHashMap)();
// Find the dataZooms specified by payload.
e.eachComponent({mainType:"dataZoom",query:t},(function(e){a.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!a.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){a.set(e.uid,!0),i.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}
/**
 * Find the first target coordinate system.
 * Available after model built.
 *
 * @return Like {
 *                  grid: [
 *                      {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},
 *                      {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},
 *                      ...
 *                  ],  // cartesians must not be null/undefined.
 *                  polar: [
 *                      {model: coord0, axisModels: [axis4], coordIndex: 0},
 *                      ...
 *                  ],  // polars must not be null/undefined.
 *                  singleAxis: [
 *                      {model: coord0, axisModels: [], coordIndex: 0}
 *                  ]
 *              }
 */function Dv(e){var t=e.ecModel,n={infoList:[],infoMap:Object(A.createHashMap)()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(Tv(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}})),n}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Pv=/** @class */function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){
// Remove duplication.
this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),Lv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,
/**
     * It is `[rangeModeForMin, rangeModeForMax]`.
     * The optional values for `rangeMode`:
     * + `'value'` mode: the axis extent will always be determined by
     *     `dataZoom.startValue` and `dataZoom.endValue`, despite
     *     how data like and how `axis.min` and `axis.max` are.
     * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`,
     *     where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`,
     *     and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`.
     *     Axis extent will be determined by the result of the percent of `[dMin, dMax]`.
     *
     * For example, when users are using dynamic data (update data periodically via `setOption`),
     * if in `'value`' mode, the window will be kept in a fixed value range despite how
     * data are appended, while if in `'percent'` mode, whe window range will be changed alone with
     * the appended data (suppose `axis.min` and `axis.max` are not specified).
     */
n._rangePropMode=["percent","percent"],n}return Object(Re.a)(t,e),t.prototype.init=function(e,t,n){var r=Qv(e);
/**
     * Suppose a "main process" start at the point that model prepared (that is,
     * model initialized or merged or method called in `action`).
     * We should keep the `main process` idempotent, that is, given a set of values
     * on `option`, we get the same result.
     *
     * But sometimes, values on `option` will be updated for providing users
     * a "final calculated value" (`dataZoomProcessor` will do that). Those value
     * should not be the base/input of the `main process`.
     *
     * So in that case we should save and keep the input of the `main process`
     * separately, called `settledOption`.
     *
     * For example, consider the case:
     * (Step_1) brush zoom the grid by `toolbox.dataZoom`,
     *     where the original input `option.startValue`, `option.endValue` are earsed by
     *     calculated value.
     * (Step)2) click the legend to hide and show a series,
     *     where the new range is calculated by the earsed `startValue` and `endValue`,
     *     which brings incorrect result.
     */this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=Qv(e);
// FIX #2591
Object(A.merge)(this.option,e,!0),Object(A.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(A.each)([["start","startValue"],["end","endValue"]],(function(e,r){
// start/end has higher priority over startValue/endValue if they
// both set, but we should make chart.setOption({endValue: 1000})
// effective, rather than chart.setOption({endValue: 1000, end: null}).
"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null);
// Otherwise do nothing and use the merge result.
}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(A.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(A.each)(Bv,(function(n){var r=this.getReferringComponents(Tv(n),lt.a);
// When user set axisIndex as a empty array, we think that user specify axisIndex
// but do not want use auto mode. Because empty array may be encountered when
// some error occurred.
if(r.specified){t=!0;var i=new Pv;Object(A.each)(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;
// Find axis that parallel to dataZoom as default.
if(r){var i="vertical"===t?"y":"x";a(n.findComponents({mainType:i+"Axis"}),i)}
// Find axis that parallel to dataZoom as default.
r&&a(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function a(t,n){
// At least use the first parallel axis as the target axis.
var i=t[0];if(i){var a=new Pv;
// Find parallel axes in the same grid.
if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",lt.b).models[0];o&&Object(A.each)(t,(function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",lt.b).models[0]&&a.add(e.componentIndex)}))}}}r&&
// If no parallel axis, find the first category axis as default. (Also consider polar).
Object(A.each)(Bv,(function(t){if(r){var i=n.findComponents({mainType:Tv(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new Pv;a.add(i[0].componentIndex),e.set(t,a),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;
// Find the first axis
return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(
// When first time user set throttle, auto throttle ends.
e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(A.each)([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(
// percentSpecified && valueSpecified
t[i]="percent");
// else remain its original setting.
}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(Tv(t),n))}),this),e},
/**
   * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel
   */
t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(A.each)(n.indexList,(function(n){e.call(t,r,n)}))}))},
/**
   * @return If not found, return null/undefined.
   */
t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},
/**
   * @return If not found, return null/undefined.
   */
t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Tv(e),t)},
/**
   * If not specified, set to undefined.
   */
t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(A.each)([["start","startValue"],["end","endValue"]],(function(r){
// Consider the pair <start, startValue>:
// If one has value and the other one is `null/undefined`, we both set them
// to `settledOption`. This strategy enables the feature to clear the original
// value in `settledOption` to `null/undefined`.
// But if both of them are `null/undefined`, we do not set them to `settledOption`
// and keep `settledOption` with the original value. This strategy enables users to
// only set <end or endValue> but not set <start or startValue> when calling
// `dispatchAction`.
// The pair <end, endValue> is treated in the same way.
null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(A.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},
/**
   * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);
   *
   * @return [startValue, endValue] value can only be '-' or finite number.
   */
t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},
/**
   * @param axisModel If axisModel given, find axisProxy
   *      corresponding to the axisModel
   */
t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;
// Find the first hosted axisProxy
for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}
// If no hosted proxy found, still need to return a proxy.
// This case always happens in toolbox dataZoom, where axes are all hosted by
// other dataZooms.
return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={
// zlevel: 0,
z:4,filterMode:"filter",start:0,end:100},t}(cr.a);
/**
 * Retrieve those raw params from option, which will be cached separately,
 * because they will be overwritten by normalized/calculated values in the main
 * process.
 */
function Qv(e){var t={};return Object(A.each)(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}
/* harmony default export */var Rv=Lv,jv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="dataZoom.select",t}(Rv),Nv=jv,Fv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(sr.a),zv=Fv,Hv=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="dataZoom.select",t}(zv),Uv=Hv,Gv=n("538f"),Vv=A.each,Wv=xt.c;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* harmony default export */var qv=/** @class */function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}
/**
   * Whether the axisProxy is hosted by dataZoomModel.
   */return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},
/**
   * @return Value can only be NaN or finite value.
   */
e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},
/**
   * @return {Array.<number>}
   */
e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return Object(A.indexOf)(Mv,t)>=0}(t)){var n=Tv(this._dimName),r=t.getReferringComponents(n,lt.b).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return A.clone(this._minMaxSpan)},
/**
   * Only calculate by given range and this._dataExtent, do not change anything.
   */
e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[];Vv(["start","end"],(function(c,l){var u=e[c],h=e[c+"Value"];
// Notice: dataZoom is based either on `percentProp` ('start', 'end') or
// on `valueProp` ('startValue', 'endValue'). (They are based on the data extent
// but not min/max of axis, which will be calculated by data window then).
// The former one is suitable for cases that a dataZoom component controls multiple
// axes with different unit or extent, and the latter one is suitable for accurate
// zoom by pixel (e.g., in dataZoomSelect).
// we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated
// only when setOption or dispatchAction, otherwise it remains its original value.
// (Why not only record `percentProp` and always map to `valueProp`? Because
// the map `valueProp` -> `percentProp` -> `valueProp` probably not the original
// `valueProp`. consider two axes constrolled by one dataZoom. They have different
// data extent. All of values that are overflow the `dataExtent` will be calculated
// to percent '100%').
"percent"===i[l]?(null==u&&(u=a[l]),
// Use scale.parse to math round for category or time axis.
h=r.parse(xt.m(u,a,n))):(t=!0,h=null==h?n[l]:r.parse(h),
// Calculating `percent` from `value` may be not accurate, because
// This calculation can not be inversed, because all of values that
// are overflow the `dataExtent` will be calculated to percent '100%'
u=xt.m(h,n,a)),
// valueWindow[idx] = round(boundValue);
// percentWindow[idx] = round(boundPercent);
// fallback to extent start/end when parsed value or percent is invalid
s[l]=null==h||isNaN(h)?n[l]:h,o[l]=null==u||isNaN(u)?a[l]:u})),Wv(s),Wv(o);
// The windows from user calling of `dispatchAction` might be out of the extent,
// or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we don't restrict window
// by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,
// where API is able to initialize/modify the window size even though `zoomLock`
// specified.
var c=this._minMaxSpan;function l(e,t,n,i,a){var o=a?"Span":"ValueSpan";gu(0,e,n,"all",c["min"+o],c["max"+o]);for(var s=0;s<2;s++)t[s]=xt.m(e[s],n,i,!0),a&&(t[s]=r.parse(t[s]))}return t?l(s,o,n,a,!1):l(o,s,a,n,!0),{valueWindow:s,percentWindow:o}},
/**
   * Notice: reset should not be called before series.restoreData() is called,
   * so it is recommended to be called in "process stage" but not "model init
   * stage".
   */
e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();
// Culculate data window and data extent, and record them.
this._dataExtent=function(e,t,n){var r=[1/0,-1/0];Vv(n,(function(e){Object(wr.k)(r,e.getData(),t)}));
// It is important to get "consistent" extent when more then one axes is
// controlled by a `dataZoom`, otherwise those axes will not be synchronized
// when zooming. But it is difficult to know what is "consistent", considering
// axes have different type or even different meanings (For example, two
// time axes are used to compare data of the same date in different years).
// So basically dataZoom just obtains extent by series.data (in category axis
// extent can be obtained from axis.data).
// Nevertheless, user can set min/max/scale on axes to make extent of axes
// consistent.
var i=e.getAxisModel(),a=Object(Gv.a)(i.axis.scale,i,r).calculate();return[a.min,a.max]}(this,this._dimName,t),
// `calculateDataWindow` uses min/maxSpan.
this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,
// Update axis setting then.
this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),a=this._valueWindow;"none"!==i&&
// FIXME
// Toolbox may has dataZoom injected. And if there are stacked bar chart
// with NaN data, NaN will be filtered and stack will be wrong.
// So we need to force the mode to be set empty.
// In fect, it is not a big deal that do not support filterMode-'filter'
// when using toolbox#dataZoom, utill tooltip#dataZoom support "single axis
// selection" some day, which might need "adapt to data extent on the
// otherAxis", which is disabled by filterMode-'empty'.
// But currently, stack has been fixed to based on value but not index,
// so this is not an issue any more.
// let otherAxisModel = this.getOtherAxisModel();
// if (dataZoomModel.get('$fromToolbox')
//     && otherAxisModel
//     && otherAxisModel.hasSeriesStacked
// ) {
//     filterMode = 'empty';
// }
// TODO
// filterMode 'weakFilter' and 'empty' is not optimized for huge data yet.
Vv(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var o=t.getStore(),s=A.map(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,c=0;c<r.length;c++){var l=o.get(s[c],e),u=!isNaN(l),h=l<a[0],f=l>a[1];if(u&&!h&&!f)return!0;u&&(i=!0),h&&(t=!0),f&&(n=!0)}
// If both left out and right out, do not filter.
return i&&t&&n}))}else Vv(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return function(e){return e>=a[0]&&e<=a[1]}(e)?e:NaN})));else{var r={};r[n]=a,
// console.time('select');
t.selectRange(r)}}));Vv(r,(function(e){t.setApproximateExtent(a,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Vv(["min","max"],(function(r){var i=t.get(r+"Span"),a=t.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),
// minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan
null!=a?i=xt.m(n[0]+a,n,[0,100],!0):null!=i&&(a=xt.m(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=a}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){
// [0, 500]: arbitrary value, guess axis extent.
var r=xt.g(n,[0,500]);r=Math.min(r,20);
// For value axis, if min/max/scale are not set, we just use the extent obtained
// by series data, which may be a little different from the extent calculated by
// `axisHelper.getScaleExtent`. But the different just affects the experience a
// little when zooming. So it will not be fixed until some users require it strongly.
var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}(),Yv={
// `dataZoomProcessor` will only be performed in needed series. Consider if
// there is a line series and a pie series, it is better not to update the
// line series if only pie series is needed to be updated.
getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var a=e.getComponent(Tv(r),i);t(r,i,a,n)}))}))}
// FIXME: it brings side-effect to `getTargetSeries`.
// Prepare axis proxies.
t((function(e,t,n,r){
// dispose all last axis proxy, in case that some axis are deleted.
n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,a){
// Different dataZooms may constrol the same axis. In that case,
// an axisProxy serves both of them.
i.__dzAxisProxy||(
// Use the first dataZoomModel as the main model of axisProxy.
i.__dzAxisProxy=new qv(t,r,a,e),n.push(i.__dzAxisProxy))}));var r=Object(A.createHashMap)();return Object(A.each)(n,(function(e){Object(A.each)(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},
// Consider appendData, where filter should be performed. Because data process is
// in block mode currently, it is not need to worry about that the overallProgress
// execute every frame.
overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){
// We calculate window and reset axis here but not in model
// init stage and not after action dispatch handler, because
// reset should be called after seriesData.restoreData.
e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),
// Caution: data zoom filtering is order sensitive when using
// percent range and no min/max/scale set on axis.
// For example, we have dataZoom definition:
// [
//      {xAxisIndex: 0, start: 30, end: 70},
//      {yAxisIndex: 0, start: 20, end: 80}
// ]
// In this case, [20, 80] of y-dataZoom should be based on data
// that have filtered by x-dataZoom using range of [30, 70],
// but should not be based on full raw data. Thus sliding
// x-dataZoom will change both ranges of xAxis and yAxis,
// while sliding y-dataZoom will only change the range of yAxis.
// So we should filter x-axis after reset x-axis immediately,
// and then reset y-axis and filter y-axis.
e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){
// Fullfill all of the range props so that user
// is able to get them from chart.getOption().
var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installCommon.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Kv=!1;function $v(e){Kv||(Kv=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Yv),
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/dataZoomAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerAction("dataZoom",(function(e,t){var n=Ov(t,e);Object(A.each)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){
// Default 'slider' when no type specified.
return"slider"})))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Jv(e){e.registerComponentModel(Nv),e.registerComponentView(Uv),$v(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/featureManager.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */var Xv=function(){},Zv={};function ey(e,t){Zv[e]=t}function ty(e){return Zv[e]}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/ToolboxModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var ny=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A.each(this.option.feature,(function(e,n){var r=ty(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),A.merge(e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,
// zlevel: 0,
orient:"horizontal",left:"right",top:"top",
// right
// bottom
backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},
// textStyle: {},
// feature
tooltip:{show:!1,position:"bottom"}},t}(cr.a),ry=ny;
/* harmony default export */function iy(e,t){var n=kt.i(t.get("padding")),r=t.getItemStyle(["color","opacity"]);
// FIXME
// `subPixelOptimizeRect` may bring some gap between edge of viewpart
// and background rect when setting like `left: 0`, `top: 0`.
// graphic.subPixelOptimizeRect(rect);
return r.fill=t.get("backgroundColor"),e=new bt.a({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/ToolboxView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var ay=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var a=+e.get("itemSize"),o="vertical"===e.get("orient"),s=e.get("feature")||{},c=this._features||(this._features={}),u=[];A.each(s,(function(e,t){u.push(t)})),new Es.a(this._featureNames||[],u).add(h).update(h).remove(A.curry(h,null)).execute(),
// Keep for diff.
this._featureNames=u,
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/listComponent.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck
/**
 * Layout list like component.
 * It will box layout each items in group of component and then position the whole group in the viewport
 * @param {module:zrender/group/Group} group
 * @param {module:echarts/model/Component} componentModel
 * @param {module:echarts/ExtensionAPI}
 */
function(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=Object(In.g)(r,a,i);Object(In.b)(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Object(In.i)(e,r,a,i)}(i,e,n),
// Render background after group is layout
// FIXME
i.add(iy(i.getBoundingRect(),e)),
// Adjust icon title positions to avoid them out of screen
o||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),s=e.getTextContent(),c=s&&s.ensureState("emphasis");
// const hoverStyle = icon.hoverStyle;
// TODO simplify code?
// May be background element
if(c&&!A.isFunction(c)&&t){var u=c.style||(c.style={}),h=l.d(t,K.a.makeFont(u)),f=e.x+i.x,d=!1;e.y+i.y+a+h.height>n.getHeight()&&(o.position="top",d=!0);var p=d?-5-h.height:a+10;f+h.width/2>n.getWidth()?(o.position=["100%",p],u.align="right"):f-h.width/2<0&&(o.position=[0,p],u.align="left")}}))}function h(l,h){var f,d=u[l],p=u[h],g=s[d],m=new Gr.a(g,e,e.ecModel);if(
// FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ?
r&&null!=r.newTitle&&r.featureName===d&&(g.title=r.newTitle),d&&!p){
// Create
if(function(e){return 0===e.indexOf("my")}
/* harmony default export */(d))f={onclick:m.option.onclick,featureName:d};else{var v=ty(d);if(!v)return;f=new v}c[d]=f}else
// If feature does not exist.
if(!(f=c[p]))return;f.uid=Object(Yt.c)("toolbox-feature"),f.model=m,f.ecModel=t,f.api=n;var y=f instanceof Xv;d||!p?!m.get("show")||y&&f.unusable?y&&f.remove&&f.remove(t,n):(!function(r,s,c){var l,u,h=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),d=s instanceof Xv&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};A.isString(d)?(l={})[c]=d:l=d;A.isString(p)?(u={})[c]=p:u=p;var g=r.iconPaths={};A.each(l,(function(c,l){var d=Ve.createIcon(c,{},{x:-a/2,y:-a/2,width:a,height:a});// TODO handling image
d.setStyle(h.getItemStyle()),d.ensureState("emphasis").style=f.getItemStyle();
// Text position calculation
// TODO: extract `textStyle` from `iconStyle` and use `createTextStyle`
var p=new K.a({style:{text:u[l],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:Object(Je.d)({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});d.setTextContent(p),Ve.setTooltipConfig({el:d,componentModel:e,itemName:l,formatterParamsExtra:{title:u[l]}}),d.__title=u[l],d.on("mouseover",(function(){
// Should not reuse above hoverStyle, which might be modified.
var t=f.getItemStyle(),r=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";p.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||r}),p.ignore=!e.get("showTitle"),
// Use enterEmphasis and leaveEmphasis provide by ec.
// There are flags managed by the echarts.
n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",l])&&n.leaveEmphasis(this),p.hide()})),("emphasis"===r.get(["iconStatus",l])?qe.r:qe.C)(d),i.add(d),d.on("click",A.bind(s.onclick,s,t,n,l)),g[l]=d}))}(m,f,d),m.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?qe.r:qe.C)(r[e])},f instanceof Xv&&f.render&&f.render(m,t,n,r)):y&&f.dispose&&f.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){A.each(this._features,(function(e){e instanceof Xv&&e.updateView&&e.updateView(e.model,t,n,r)}))},
// updateLayout(toolboxModel, ecModel, api, payload) {
//     zrUtil.each(this._features, function (feature) {
//         feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);
//     });
// },
t.prototype.remove=function(e,t){A.each(this._features,(function(n){n instanceof Xv&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){A.each(this._features,(function(n){n instanceof Xv&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(sr.a);var oy=ay,sy=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Fg.a.browser;
// Chrome, Firefox, New Edge
if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))
// @ts-ignore
if(window.navigator.msSaveOrOpenBlob||i){var c=o.split(","),l=c[0].indexOf("base64")>-1,u=i?decodeURIComponent(c[1]):c[1];
// data:[<mime type>][;charset=<charset>][;base64],<encoded data>
// only `atob` when the data uri is encoded with base64
// otherwise, like `svg` data uri exported by zrender,
// there will be an error, for it's not encoded with base64.
// (just a url-encoded string through `encodeURIComponent`)
l&&(u=window.atob(u));var h=r+"."+a;
// @ts-ignore
if(window.navigator.msSaveOrOpenBlob){for(var f=u.length,d=new Uint8Array(f);f--;)d[f]=u.charCodeAt(f);var p=new Blob([d]);// @ts-ignore
window.navigator.msSaveOrOpenBlob(p,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),m.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var y=n.get("lang"),A='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',b=window.open();b.document.write(A),b.document.title=r}else{var w=document.createElement("a");w.download=r+"."+a,w.target="_blank",w.href=o;var x=new MouseEvent("click",{
// some micro front-end framework， window maybe is a Proxy
view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(x)}
// IE or old Edge
},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",
// Default use option.backgroundColor
// backgroundColor: '#fff',
connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],
// use current pixel ratio of device by default
// pixelRatio: 1,
lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Xv),cy=sy,ly="__ec_magicType_stack__",uy=[["line","bar"],["stack"]],hy=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return A.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],
// Icon group
icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",
// eslint-disable-next-line
stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},
// `line`, `bar`, `stack`, `tiled`
title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);
// Not supported magicType
if(fy[n]){var a,o={series:[]};A.each(uy,(function(e){A.indexOf(e,n)>=0&&A.each(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(e){var t=e.subType,i=e.id,a=fy[n](t,i,e,r);a&&(
// PENDING If merge original option?
A.defaults(a,e.option),o.series.push(a));
// Modify boundaryGap
var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var c=s.getAxesByScale("ordinal")[0];if(c){var l=c.dim+"Axis",u=e.getReferringComponents(l,lt.b).models[0].componentIndex;o[l]=o[l]||[];for(var h=0;h<=u;h++)o[l][u]=o[l][u]||{};o[l][u].boundaryGap="bar"===n}}}));var s=n;
// Change title of stack
"stack"===n&&(
// use titles in model instead of ecModel
// as stack and tiled appears in pair, just flip them
// no need of checking stack state
a=A.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:o,newTitle:a,featureName:"magicType"})}},t}(Xv),fy={line:function(e,t,n,r){if("bar"===e)return A.merge({id:t,type:"line",
// Preserve data related option
data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return A.merge({id:t,type:"bar",
// Preserve data related option
data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===ly;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),A.merge({id:t,stack:i?"":ly},r.get(["option","stack"])||{},!0)}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global window, Uint8Array, document */
// TODO: SELF REGISTERED.
Ui.m({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));
/* harmony default export */var dy=hy,py=new Array(60).join("-"),gy="\t";
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/DataView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global document */
/* global document */function my(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}
/**
 * If a block is tsv format
 */var vy=new RegExp("[\t]+","g");
/**
 * @param {string} tsv
 * @return {Object}
 */function yy(e,t){var n=e.split(new RegExp("\n*"+py+"\n*","g")),r={series:[]};return A.each(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(gy)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=my(t.shift()).split(vy),r=[],i=A.map(n,(function(e){return{name:e,data:[]}})),a=0;a<t.length;a++){var o=my(t[a]).split(vy);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}(e),a=t[n],o=a.axisDim+"Axis";a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=my(t.shift()),r=[],i=0;i<t.length;i++){
// if line is empty, ignore it.
// there is a case that a user forgot to delete `\n`.
var a=my(t[i]);if(a){var o=a.split(vy),s="",c=void 0,l=!1;isNaN(o[0])?(
// First item is name
l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);1===c.length&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}(e);r.series.push(i)}})),r}var Ay=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.onclick=function(e,t){
// FIXME: better way?
setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");
// use padding to avoid 5px whitespace
i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";
// Create elements
var a=document.createElement("h4"),o=r.get("lang")||[];a.innerHTML=o[0]||r.get("title"),a.style.cssText="margin:10px 20px",a.style.color=r.get("textColor");var s=document.createElement("div"),c=document.createElement("textarea");s.style.cssText="overflow:auto";var l=r.get("optionToContent"),u=r.get("contentToOption"),h=function(e){var t,n,r,i=
/**
 * Group series into two types
 *  1. on category axis, like line, bar
 *  2. others, like scatter, pie
 */
function(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{
// TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.
var a=i.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}
/**
 * Assemble content of series on cateogory axis
 * @inner
 */(e);return{value:A.filter([(n=i.seriesGroupByCategoryAxis,r=[],A.each(n,(function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,a=[" "].concat(A.map(e.series,(function(e){return e.name}))),o=[n.model.getCategories()];A.each(e.series,(function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(
// Assemble table content
var s=[a.join(gy)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(gy))}r.push(s.join("\n"))})),r.join("\n\n"+py+"\n\n")),(t=i.other,A.map(t,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+gy:"")+r.join(gy))})),n.join("\n")})).join("\n\n"+py+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+py+"\n\n"),meta:i.meta}}(e);if(A.isFunction(l)){var f=l(t.getOption());A.isString(f)?s.innerHTML=f:A.isDom(f)&&s.appendChild(f)}else{
// Use default textarea
c.readOnly=r.get("readOnly");var d=c.style;
// eslint-disable-next-line max-len
d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=r.get("textColor"),d.borderColor=r.get("textareaBorderColor"),d.backgroundColor=r.get("textareaColor"),c.value=h.value,s.appendChild(c)}var p=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";
// eslint-disable-next-line max-len
var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var b=this;function w(){n.removeChild(i),b._dom=null}Object(Hi.a)(v,"click",w),Object(Hi.a)(y,"click",(function(){if(null==u&&null!=l||null!=u&&null==l)w();else{var e;try{e=A.isFunction(u)?u(s,t.getOption()):yy(c.value,p)}catch(e){throw w(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()}})),v.innerHTML=o[1],y.innerHTML=o[2],y.style.cssText=v.style.cssText=m,!r.get("readOnly")&&g.appendChild(y),g.appendChild(v),i.appendChild(a),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,
// eslint-disable-next-line
icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(Xv);
/**
 * @inner
 */function by(e,t){return A.map(e,(function(e,n){var r=t&&t[n];if(A.isObject(r)&&!A.isArray(r)){A.isObject(e)&&!A.isArray(e)||(e={value:e});
// original data has name but new data has no name
var i=null!=r.name&&null==e.name;
// Original data has option
return e=A.defaults(e,r),i&&delete e.name,e}return e}))}
// TODO: SELF REGISTERED.
Ui.m({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];A.each(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:by(e.data,i)})}else
// New created series
// Geuss the series type
n.push(A.extend({
// Default is scatter
type:"scatter"},e))})),t.mergeOption(A.defaults({series:n},e.newOption))}));
/* harmony default export */var wy=Ay,xy=A.each,Cy=Object(lt.o)();
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/history.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * History length of each dataZoom may be different.
 * this._history[0] is used to store origin range.
 */
function _y(e){var t=Cy(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/Restore.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Iy=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.onclick=function(e,t){!function(e){Cy(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,
// eslint-disable-next-line
icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(Xv);
// TODO: SELF REGISTERED.
Ui.m({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));
/* harmony default export */var Ey=Iy,ky=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Sy=/** @class */function(){
/**
   * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid
   *        Each can be {number|Array.<number>}. like: {xAxisIndex: [3, 4]}
   * @param opt.include include coordinate system types.
   */
function e(e,t,n){var r=this;this._targetInfoList=[];var i=My(t,e);Object(A.each)(Ty,(function(e,t){(!n||!n.include||Object(A.indexOf)(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){
// area.coordRange is the first of area.coordRanges
if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;
// In 'category' axis, coord to pixel is not reversible, so we can not
// rebuild range by coordRange accrately, which may bring trouble when
// brushing only one item. So we use __rangeOffset to rebuilding range
// by coordRange. And this it only used in brush component so it is no
// need to be adapted to coordRanges.
var r=Py[e.brushType](0,n,t);e.__rangeOffset={offset:Qy[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(A.each)(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(A.each)(r.coordSyses,(function(r){var i=Py[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},
/**
   * the `areas` is `BrushModel.areas`.
   * Called in layout stage.
   * convert `area.coordRange` to global range and set panelId to `area.range`.
   */
e.prototype.setInputRanges=function(e,t){Object(A.each)(e,(function(e){var n,r,i,a,o,s=this.findTargetInfo(e,t);
// convert coordRange to global range and set panelId.
if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;
// (1) area.range should always be calculate from coordRange but does
// not keep its original value, for the sake of the dataZoom scenario,
// where area.coordRange remains unchanged but area.range may be changed.
// (2) Only support converting one coordRange to pixel range in brush
// component. So do not consider `coordRanges`.
// (3) About __rangeOffset, see comment above.
var c=Py[e.brushType](0,s.coordSys,e.coordRange),l=e.__rangeOffset;e.range=l?Qy[e.brushType](c.values,l.offset,(n=c.xyMinMax,r=l.xyMinMax,i=jy(n),a=jy(r),o=[i[0]/a[0],i[1]/a[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):c.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(A.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Ah(r),isTargetByCursor:wh(r,e,n.coordSysModel),getLinearBrushOtherExtent:bh(r)}}))},e.prototype.controlSeries=function(e,t,n){
// Check whether area is bound in coord, and series do not belong to that coord.
// If do not do this check, some brush (like lineX) will controll all axes.
var r=this.findTargetInfo(e,n);return!0===r||r&&Object(A.indexOf)(r.coordSyses,t.coordinateSystem)>=0},
/**
   * If return Object, a coord found.
   * If return true, global found.
   * Otherwise nothing found.
   */
e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=My(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<Oy.length;s++)if(Oy[s](r,a))return a}return!0},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/helper/BrushTargetManager.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// FIXME
// how to genarialize to more coordinate systems.
function By(e){return e[0]>e[1]&&e.reverse(),e}function My(e,t){return Object(lt.s)(e,t,{includeMainTypes:ky})}var Ty={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Object(A.createHashMap)(),o={},s={};(n||r||i)&&(Object(A.each)(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0})),Object(A.each)(r,(function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0})),Object(A.each)(i,(function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),a.each((function(e){var i=e.coordinateSystem,a=[];Object(A.each)(i.getCartesians(),(function(e,t){(Object(A.indexOf)(n,e.getAxis("x").model)>=0||Object(A.indexOf)(r,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,
// Use the first one as the representitive coordSys.
coordSys:a[0],coordSyses:a,getPanelRect:Dy.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(A.each)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Dy.geo})}))}},Oy=[
// grid
function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},
// geo
function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Dy={grid:function(){
// grid is not Transformable.
return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();
// geo roam and zoom transform
return t.applyTransform(Ve.getTransform(e)),t}},Py={lineX:Object(A.curry)(Ly,0),lineY:Object(A.curry)(Ly,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[By([i[0],a[0]]),By([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(A.map)(n,(function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a})),xyMinMax:i}}};function Ly(e,t,n,r){var i=n.getAxis(["x","y"][e]),a=By(Object(A.map)([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var Qy={lineX:Object(A.curry)(Ry,0),lineY:Object(A.curry)(Ry,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(A.map)(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function Ry(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}
// We have to process scale caused by dataZoom manually,
// although it might be not accurate.
// Return [0~1, 0~1]
function jy(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}
/* harmony default export */var Ny=Sy,Fy=n("2f1f"),zy=A.each,Hy=Object(lt.p)("toolbox-dataZoom_"),Uy=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new yh(n.getZr()),this._brushController.on("brush",A.bind(this._onBrush,this)).mount()),function(e,t,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new Ny(Vy(e),t,{include:["grid"]}),s=o.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return _y(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){Gy[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new Ny(Vy(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}})),
/**
 * @param ecModel
 * @param newSnapshot key is dataZoomId
 */
function(e,t){var n=_y(e);
// If previous dataZoom can not be found,
// complete an range with current range.
xy(t,(function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){
// No origin range set, create one by current range.
var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}})),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var a=t.getAxis(e),o=a.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,o,r),c=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(i=gu(0,i.slice(),a.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];
// Convert from hash map to array.
zy(e,(function(e,n){t.push(A.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",
// Icon group
icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},
// `zoom`, `back`
title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Xv),Gy={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=_y(e),n=t[t.length-1];t.length>1&&t.pop();
// Find top for all dataZoom.
var r={};return xy(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}})),r}(this.ecModel))}};
// EXTERNAL MODULE: ./node_modules/echarts/lib/model/internalComponentCreator.js
function Vy(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};
// If both `xAxisIndex` `xAxisId` not set, it means 'all'.
// If both `yAxisIndex` `yAxisId` not set, it means 'all'.
// Some old cases set like this below to close yAxis control but leave xAxis control:
// `{ feature: { dataZoom: { yAxisIndex: false } }`.
return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}Object(Fy.b)("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],a=Vy(r),o=Object(lt.s)(e,a);return zy(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),zy(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,
// Default to be filter
filterMode:r.get("filterMode",!0)||"filter",
// Id for merge mapping.
id:Hy+t+a};o[n]=a,i.push(o)}}));
/* harmony default export */var Wy=Uy;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODOD: REGISTER IN INSTALL
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/TooltipModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var qy=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={
// zlevel: 0,
z:60,show:!0,
// tooltip main content
showContent:!0,
// 'trigger' only works on coordinate system.
// 'item' | 'axis' | 'none'
trigger:"item",
// 'click' | 'mousemove' | 'none'
triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",
// whether restraint content inside viewRect.
// If renderMode: 'richText', default true.
// If renderMode: 'html', defaut false (for backward compat).
confine:null,showDelay:0,hideDelay:100,
// Animation transition time, unit is second
transitionDuration:.4,enterable:!1,backgroundColor:"#fff",
// box shadow
shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,
// tooltip border radius, unit is px, default is 4
borderRadius:4,
// tooltip border width, unit is px, default is 0 (no border)
borderWidth:1,
// Tooltip inside padding, default is 5 for all direction
// Array is allowed to set up, right, bottom, left, same with css
// The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.
padding:null,
// Extra css text
extraCssText:"",
// axis indicator, trigger by axis
axisPointer:{
// default is line
// legal values: 'line' | 'shadow' | 'cross'
type:"line",
// Valid when type is line, appoint tooltip line locate on which line. Optional
// legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'
// default is 'auto', chose the axis which type is category.
// for multiply y axis, cartesian coord chose x axis, polar chose angle axis
axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",
// TODO formatter
textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(cr.a),Yy=qy;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/helper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global document */
function Ky(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function $y(e){if(Fg.a.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var Jy=$y(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Xy(e,t){if(!e)return t;t=Object(kt.j)(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global document, window */
var Zy=Xy($y(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),eA=Xy(Jy,"transform"),tA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Fg.a.transform3dSupported?"will-change:transform;":"");function nA(e,t,n){
// If using float on style, the final width of the dom might
// keep changing slightly while mouse move. So `toFixed(0)` them.
var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";
// not support transform, use `left` and `top` instead.
if(!Fg.a.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];
// support transform
var a=Fg.a.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+eA+":"+o+";":[["top",0],["left",0],[Jy,o]]}
/**
 * @param {Object} textStyle
 * @return {string}
 * @inner
 */function rA(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),c=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),u=e.getModel("textStyle"),h=Object(Ei.d)(e,"html"),f=c+"px "+l+"px "+o+"px "+s;return r.push("box-shadow:"+f),
// Animation transition. Do not animate when transitionDuration is 0.
t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Fg.a.transformSupported?","+eA+r:",left"+r+",top"+r),Zy+":"+i}(i,n)),a&&r.push("background-color:"+a),
// Border style
Object(A.each)(["width","color","radius"],(function(t){var n="border-"+t,i=Object(kt.j)(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))})),
// Text style
r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());
// @ts-ignore, leave it to the tooltip refactor.
var i=Object(A.retrieve2)(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+c+"px "+o+"px "+a),Object(A.each)(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(u)),
// Padding
null!=h&&r.push("padding:"+Object(kt.i)(h).join("px ")+"px"),r.join(";")+";"}
// If not able to make, do not modify the input `out`.
function iA(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&
// Some APPs might use scale on body, so we support CSS transform here.
Object(I.d)(e,o,n,r,i)}else{e[0]=r,e[1]=i;
// xy should be based on canvas root. But tooltipContent is
// the sibling of canvas root. So padding of ec container
// should be considered here.
var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var aA=/** @class */function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Fg.a.wxa)return null;var n=document.createElement("div");
// TODO: TYPE
n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(Object(A.isString)(i)?document.querySelector(i):Object(A.isDom)(i)?i:Object(A.isFunction)(i)&&i(e.getDom()));iA(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;
// FIXME
// Is it needed to trigger zr event manually if
// the browser do not support `pointer-events: none`.
var o=this;n.onmouseenter=function(){
// clear the timeout in hideLater and keep showing tooltip
o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!o._enterable){
// `pointer-events: none` is set to tooltip content div
// if `enterable` is set as `false`, and `el.onmousemove`
// can not be triggered. But in browser that do not
// support `pointer-events`, we need to do this:
// Try trigger zrender event to avoid mouse
// in and out shape too frequently
var t=r.handler,n=r.painter.getViewportRoot();Object(Hi.e)(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){
// set `_inContent` to `false` before `hideLater`
o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}
/**
   * Update when tooltip is rendered
   */return e.prototype.update=function(e){
// FIXME
// Move this logic to ec main?
if(!this._container){var t=this._api.getDom(),n=(a="position",(o=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a?o[a]:o:null),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}
// move tooltip if chart resized
var i,a,o,s=e.get("alwaysShowContent");s&&this._moveIfResized(),
// update alwaysShowContent
this._alwaysShowContent=s,
// update className
this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=tA+rA(e,!this._firstShow,this._longHide)+nA(i[0],i[1],!0)+"border-color:"+Object(kt.c)(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(null!=e){var o="";if(Object(A.isString)(i)&&"item"===n.get("trigger")&&!Ky(n)&&(o=function(e,t,n){if(!Object(A.isString)(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Object(kt.c)(t);var a,o,s="left"===(a=n)?"right":"right"===a?"left":"top"===a?"bottom":"top",c=Math.max(1.5*Math.round(i),6),l="",u=eA+":";Object(A.indexOf)(["left","right"],s)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var h=o*Math.PI/180,f=c+i,d=f*Math.abs(Math.cos(h))+f*Math.abs(Math.sin(h)),p=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+c+"px;height:"+c+"px;z-index:-1;",(l+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2))/100+"px")+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),Object(A.isString)(e))a.innerHTML=e+o;else if(e){
// Clear previous
a.innerHTML="",Object(A.isArray)(e)||(e=[e]);for(var s=0;s<e.length;s++)Object(A.isDom)(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);
// no arrow if empty
if(o&&a.childNodes.length){
// no need to create a new parent element, but it's not supported by IE 10 and older.
// const arrowEl = document.createRange().createContextualFragment(arrow);
var c=document.createElement("div");c.innerHTML=o,a.appendChild(c)}}}else a.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(iA(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,i=nA(n[0],n[1]);Object(A.each)(i,(function(e){r[e[0]]=e[1]}))}}},
/**
   * when `alwaysShowContent` is true,
   * move the tooltip after chart resized
   */
e.prototype._moveIfResized=function(){
// The ratio of left to width
var e=this._styleCoord[2],t=this._styleCoord[3];
// The ratio of top to height
this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Fg.a.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,
// Set show false to avoid invoke hideLater multiple times
this._show=!1,this._hideTimeout=setTimeout(Object(A.bind)(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}();
/* harmony default export */function oA(e){return Math.max(0,e)}function sA(e){var t=oA(e.shadowBlur||0),n=oA(e.shadowOffsetX||0),r=oA(e.shadowOffsetY||0);return{left:oA(t-n),right:oA(t+n),top:oA(t-r),bottom:oA(t+r)}}function cA(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}
/* harmony default export */var lA=/** @class */function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),cA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}
/**
   * Update when tooltip is rendered
   */return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),
// update alwaysShowContent
this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},
/**
   * Set tooltip content
   */
e.prototype.setContent=function(e,t,n,r,i){var a=this;A.isObject(e)&&Object(Gs.c)(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new K.a({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(Ei.d)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){a.el.style[e]=n.get(e)})),A.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){a.el.style[e]=o.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){
// clear the timeout in hideLater and keep showing tooltip
s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=sA(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;cA(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=oA(i.borderWidth||0),o=sA(i);
// rich text x, y do not include border.
n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},
/**
   * when `alwaysShowContent` is true,
   * move the tooltip after chart resized
   */
e.prototype._moveIfResized=function(){
// The ratio of left to width
var e=this._styleCoord[2],t=this._styleCoord[3];
// The ratio of top to height
this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,
// Set show false to avoid invoke hideLater multiple times
this._show=!1,this._hideTimeout=setTimeout(A.bind(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),uA=n("f876"),hA=n("38a2"),fA=new bt.a({shape:{x:-1,y:-1,width:2,height:2}}),dA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){if(!Fg.a.node&&t.getDom()){var n=e.getComponent("tooltip"),r=this._renderMode=Object(lt.i)(n.get("renderMode"));this._tooltipContent="richText"===r?new lA(t):new aA(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!Fg.a.node&&n.getDom()){
// Reset
this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),
// PENDING
// `mousemove` event will be triggered very frequently when the mouse moves fast,
// which causes that the `updatePosition` function was also called frequently.
// In Chrome with devtools open and Firefox, tooltip looks laggy and shakes. See #14695 #16101
// To avoid frequent triggering,
// consider throttling it in 50ms when transition is enabled
"richText"!==this._renderMode&&e.get("transitionDuration")?Object(Jt.b)(this,"_updatePosition",50,"fixRate"):Object(Jt.a)(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");Ug("itemTooltip",this._api,Object(A.bind)((function(t,n,r){
// If 'none', it is not controlled by mouse totally.
"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");
// Try to keep the tooltip show when refreshing
if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){
// Show tip next tick after other charts are rendered
// In case highlight action has wrong result
// FIXME
!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},
/**
   * Show tip manually by
   * dispatchAction({
   *     type: 'showTip',
   *     x: 10,
   *     y: 10
   * });
   * Or
   * dispatchAction({
   *      type: 'showTip',
   *      seriesIndex: 0,
   *      dataIndex or dataIndexInside or name
   * });
   *
   *  TODO Batch
   */
t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!Fg.a.node&&n.getDom()){var i=gA(r,n);
// Reset ticket
this._ticket="";
// When triggered from axisPointer.
var a=r.dataByCoordSys,o=
/**
 * Find target component by payload like:
 * ```js
 * { legendId: 'some_id', name: 'xxx' }
 * { toolboxIndex: 1, name: 'xxx' }
 * { geoName: 'some_name', name: 'xxx' }
 * ```
 * PENDING: at present only
 *
 * If not found, return null/undefined.
 */
function(e,t,n){var r=Object(lt.t)(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var a=Object(lt.v)(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!o)return;var s,c=n.getViewOfComponentModel(o);if(c.group.traverse((function(t){var n=Object(We.a)(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0;// stop
})),s)return{componentMainType:i,componentIndex:o.componentIndex,el:s}}
/* harmony default export */(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,
// When manully trigger, the mouse is not on the el, so we'd better to
// position tooltip on the bottom of the el and display arrow is possible.
positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var c=fA;c.x=r.x,c.y=r.y,c.update(),Object(We.a)(c).tooltipConfig={name:null,option:r.tooltip},
// Manually show tooltip while view is not using zrender elements.
this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=Kg(r,t),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.el,position:r.position,
// When manully trigger, the mouse is not on the el, so we'd better to
// position tooltip on the bottom of the el and display arrow is possible.
positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(
// FIXME
// should wrap dispatchAction like `axisPointer/globalListener` ?
n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(gA(r,n))},
// Be compatible with previous design, that is, when tooltip.type is 'axis' and
// dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer
// and tooltip.
t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=t.getSeriesByIndex(i);if(s)if("axis"===pA([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){
// Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed
this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,a;if("legend"===Object(We.a)(n).ssrType)
// Don't trigger tooltip for legend tooltip item
return;this._lastDataByCoordSys=null,Object(So.a)(n,(function(e){
// Always show item tooltip if mouse is on the element with dataIndex
return null!=Object(We.a)(e).dataIndex?(i=e,!0):
// Tooltip provided directly. Like legend.
null!=Object(We.a)(e).tooltipConfig?(a=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){
// showDelay is used in this case: tooltip.enterable is set
// as true. User intent to move mouse into tooltip and click
// something. `showDelay` makes it easier to enter the content
// but tooltip do not move immediately.
var n=e.get("showDelay");t=Object(A.bind)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=pA([t.tooltipOption],r),o=this._renderMode,s=[],c=Object(Ei.c)("section",{blocks:[],noHeader:!0}),l=[],u=new Ei.a;Object(A.each)(e,(function(e){Object(A.each)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var a=kg(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=Object(Ei.c)("section",{header:a,noHeader:!Object(A.trim)(a),sortBlocks:!0,blocks:[]});c.blocks.push(h),Object(A.each)(e.seriesDataIndices,(function(c){var f=n.getSeriesByIndex(c.seriesIndex),d=c.dataIndexInside,p=f.getDataParams(d);
// Can't find data.
if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=wr.c(t.axis,{value:i}),p.axisValueLabel=a,
// Pre-create marker style for makers. Users can assemble richText
// text in `formatter` callback and use those markers style.
p.marker=u.makeTooltipMarker("item",Object(kt.c)(p.color),o);var g=Object(hA.b)(f.formatTooltip(d,!0,null)),m=g.frag;if(m){var v=pA([f],r).get("valueFormatter");h.blocks.push(v?Object(A.extend)({valueFormatter:v},m):m)}g.text&&l.push(g.text),s.push(p)}}))}}))})),
// In most cases, the second axis is displays upper on the first one.
// So we reverse it to look better.
c.blocks.reverse(),l.reverse();var h=t.position,f=a.get("order"),d=Object(Ei.b)(c,u,o,f,n.get("useUTC"),a.get("textStyle"));d&&l.unshift(d);var p="richText"===o?"\n\n":"<br/>",g=l.join(p);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",i[0],i[1],h,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Object(We.a)(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),h=this._renderMode,f=e.positionDefault,d=pA([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=d.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(c,l),m=new Ei.a;
// Pre-create marker style for makers. Users can assemble richText
// text in `formatter` callback and use those markers style.
g.marker=m.makeTooltipMarker("item",Object(kt.c)(g.color),h);var v=Object(hA.b)(s.formatTooltip(c,!1,l)),y=d.get("order"),b=d.get("valueFormatter"),w=v.frag,x=w?Object(Ei.b)(b?Object(A.extend)({valueFormatter:b},w):w,m,h,y,r.get("useUTC"),d.get("textStyle")):v.text,C="item_"+s.name+"_"+c;this._showOrMove(d,(function(){this._showTooltipContent(d,x,g,C,e.offsetX,e.offsetY,e.position,e.target,m)})),
// FIXME
// duplicated showtip if manuallyShowTip is called from dispatchAction.
n({type:"showTip",dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=Object(We.a)(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(Object(A.isString)(a)){a={content:a,
// Fixed formatter
formatter:a},
// when `tooltipConfig.option` is a string rather than an object,
// we can't know if the content needs to be encoded
// for the sake of security, encode it by default.
o=!0}o&&r&&a.content&&((
// clone might be unnecessary?
a=Object(A.clone)(a)).content=Object(I.a)(a.content));var s=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&s.push(c),
// In most cases, component tooltip formatter has different params with series tooltip formatter,
// so that they cannot share the same formatter. Since the global tooltip formatter is used for series
// by convention, we do not use it as the default formatter for component.
s.push({formatter:a.content});var l=e.positionDefault,u=pA(s,this._tooltipModel,l?{position:l}:null),h=u.get("content"),f=Math.random()+"",d=new Ei.a;
// Do not check whether `trigger` is 'none' here, because `trigger`
// only works on coordinate system. In fact, we have not found case
// that requires setting `trigger` nothing on component yet.
this._showOrMove(u,(function(){
// Use formatterParams from element defined in component
// Avoid users modify it.
var n=Object(A.clone)(u.get("formatterParams")||{});this._showTooltipContent(u,h,n,f,e.offsetX,e.offsetY,e.position,t,d)})),
// If not dispatch showTip, tip may be hide triggered by axis.
n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(
// Use Model<TooltipOption> insteadof TooltipModel because this model may be from series or other options.
// Instead of top level tooltip.
e,t,n,r,i,a,o,s,c){if(
// Reset ticket
this._ticket="",e.get("showContent")&&e.get("show")){var l=this._tooltipContent;l.setEnterable(e.get("enterable"));var u=e.get("formatter");o=o||e.get("position");var h=t,f=this._getNearestPoint([i,a],n,e.get("trigger"),e.get("borderColor")).color;if(u)if(Object(A.isString)(u)){var d=e.ecModel.get("useUTC"),p=Object(A.isArray)(n)?n[0]:n;h=u,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Object(uA.h)(p.axisValue,h,d)),h=Object(kt.e)(h,n,!0)}else if(Object(A.isFunction)(u)){var g=Object(A.bind)((function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))}),this);this._ticket=r,h=u(n,r,g)}else h=u;l.setContent(h,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(A.isArray)(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(A.isArray)(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,
// Mouse x
r,
// Mouse y
i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var l=i.getSize(),u=e.get("align"),h=e.get("verticalAlign"),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),Object(A.isFunction)(t)&&(
// Callback of position can be an array or a string specify the position
t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),Object(A.isArray)(t))n=Object(xt.q)(t[0],s),r=Object(xt.q)(t[1],c);else if(Object(A.isObject)(t)){var d=t;d.width=l[0],d.height=l[1];var p=Object(In.g)(d,{width:s,height:c});n=p.x,r=p.y,u=null,
// When positionExpr is left/top/right/bottom,
// align and verticalAlign will not work.
h=null}
// Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element
else if(Object(A.isString)(t)&&o){var g=function(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case"inside":s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case"top":s=t.x+l/2-i/2,c=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,c=t.y+u+o;break;case"left":s=t.x-i-o,c=t.y+u/2-a/2;break;case"right":s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}(t,f,l,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];null!=a&&(
// Add extra 2 pixels for this case:
// At present the "values" in default tooltip are using CSS `float: right`.
// When the right edge of the tooltip box is on the right side of the
// viewport, the `float` layout might push the "values" to the second line.
e+c+a+2>r?e-=c+a:e+=a);null!=o&&(t+l+o>i?t-=l+o:t+=o);return[e,t]}(n,r,i,s,c,u?null:20,h?null:20);n=g[0],r=g[1]}if(u&&(n-=mA(u)?l[0]/2:"right"===u?l[0]:0),h&&(r-=mA(h)?l[1]/2:"bottom"===h?l[1]:0),Ky(e)){g=function(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,c);n=g[0],r=g[1]}i.moveTo(n,r)},
// FIXME
// Should we remove this but leave this to user?
t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(A.each)(n,(function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];(i=i&&o.length===s.length)&&Object(A.each)(o,(function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];(i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length)&&Object(A.each)(o,(function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),
// check is cbParams data value changed
r&&Object(A.each)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){
// Do not directly hideLater here, because this behavior may be prevented
// in dispatchAction when showTip is dispatched.
// FIXME
// duplicated hideTip if manuallyHideTip is called from dispatchAction.
this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Fg.a.node&&t.getDom()&&(Object(Jt.a)(this,"_updatePosition"),this._tooltipContent.dispose(),Wg("itemTooltip",t))},t.type="tooltip",t}(sr.a);
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/time.js
/**
 * From top to bottom. (the last one should be globalTooltipModel);
 */
function pA(e,t,n){
// Last is always tooltip model.
var r,i=t.ecModel;n?(r=new Gr.a(n,i,i),r=new Gr.a(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Gr.a&&(o=o.get("tooltip",!0)),
// In each data item tooltip can be simply write:
// {
//  value: 10,
//  tooltip: 'Something you need to know'
// }
Object(A.isString)(o)&&(o={formatter:o}),o&&(r=new Gr.a(o,r,i)))}return r}function gA(e,t){return e.dispatchAction||Object(A.bind)(t.dispatchAction,t)}function mA(e){return"center"===e||"middle"===e}var vA=dA;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/tooltip/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/preprocessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var yA=["rect","polygon","keep","clear"];function AA(e,t){var n=Object(lt.r)(e?e.brush:[]);if(n.length){var r=[];A.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;A.isArray(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a,o,s=i.feature||(i.feature={}),c=s.brush||(s.brush={}),l=c.type||(c.type=[]);l.push.apply(l,r),a=l,o={},A.each(a,(function(e){o[e]=1})),a.length=0,A.each(o,(function(e,t){a.push(t)})),t&&!l.length&&l.push.apply(l,yA)}}
// EXTERNAL MODULE: ./node_modules/echarts/lib/visual/helper.js
var bA=n("0924"),wA=A.each;
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/visualSolution.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @file Visual solution, for consistent option specification.
 */function xA(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function CA(e,t,n){var r={};return wA(t,(function(t){var i,a=r[t]=(
// Make sure hidden fields will not be visited by
// object iteration (with hasOwnProperty checking).
(i=function(){}).prototype.__hidden=i.prototype,new i);wA(e[t],(function(e,r){if(oc.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new oc(i),
// Prepare a alpha for opacity, for some case that opacity
// is not supported, such as rendering using gradient color.
"opacity"===r&&((i=A.clone(i)).type="colorAlpha",a.__hidden.__alphaForOpacity=new oc(i))}}))})),r}function _A(e,t,n){
// Visual attributes merge is not supported, otherwise it
// brings overcomplicated merge logic. See #2853. So if
// newOption has anyone of these keys, all of these keys
// will be reset. Otherwise, all keys remain.
var r;A.each(n,(function(e){t.hasOwnProperty(e)&&xA(t[e])&&(r=!0)})),r&&A.each(n,(function(n){t.hasOwnProperty(n)&&xA(t[n])?e[n]=A.clone(t[n]):delete e[n]}))}
/**
 * @param stateList
 * @param visualMappings
 * @param list
 * @param getValueState param: valueOrIndex, return: state.
 * @param scope Scope for getValueState
 * @param dimension Concrete dimension, if used.
 */
// ???! handle brush?
// EXTERNAL MODULE: ./node_modules/zrender/lib/contain/polygon.js
var IA=n("0655");
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/selector.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var EA={lineX:kA(0),lineY:kA(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&IA.a(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];return!!(IA.a(r,i,a)||IA.a(r,i+o,a)||IA.a(r,i,a+s)||IA.a(r,i+o,a+s)||tr.a.create(e).contain(c[0],c[1])||Object(Ve.linePolygonIntersect)(i,a,i+o,a,r)||Object(Ve.linePolygonIntersect)(i,a,i,a+s,r)||Object(Ve.linePolygonIntersect)(i+o,a,i+o,a+s,r)||Object(Ve.linePolygonIntersect)(i,a+s,i+o,a+s,r))||void 0}}};function kA(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return SA(t[e],i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),SA(s[0],o)||SA(s[1],o)||SA(o[0],s)||SA(o[1],s)}}}}function SA(e,t){return t[0]<=e&&e<=t[1]}
/* harmony default export */var BA=["inBrush","outOfBrush"],MA="__ecBrushSelect",TA="__ecInBrushSelectEvent";
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/visualEncoding.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function OA(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new Ny(t.option,e)).setInputRanges(t.areas,e)}))}
/**
 * Register the visual encoding if this modules required.
 */function DA(e,t,n){var r,i,a=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),OA(e),e.eachComponent({mainType:"brush"},(function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:A.clone(t.areas),selected:[]};
// Every brush component exists in event params, convenient
// for user to find by index.
a.push(o);var s=t.option,c=s.brushLink,l=[],u=[],h=[],f=!1;n||(
// Only the first throttle setting works.
r=s.throttleType,i=s.throttleDelay);
// Add boundingRect and selectors to range.
var d=A.map(t.areas,(function(e){var t=QA[e.brushType],n=A.defaults({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return EA[t].point(r,n,e)},rect:function(r){return EA[t].rect(r,n,e)}};
// Do not use function binding or curry for performance.
return n}(n),n})),p=CA(t.option,BA,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===c||!!l[e]}
// If no supported brush or no brush on the series,
// all visuals should be in original state.
function m(e){return!!e.length}
/**
     * Logic for each series: (If the logic has to be modified one day, do it carefully!)
     *
     * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers  ) => StepA: ┬record, ┬ StepB: ┬visualByRecord.
     *   !brushed┘    ├hasBrushExist ┤                            └nothing,┘        ├visualByRecord.
     *                └!hasBrushExist┘                                              └nothing.
     * ( !brushed  && ┬hasBrushExist ┬ && linkOthers  ) => StepA:  nothing,  StepB: ┬visualByRecord.
     *                └!hasBrushExist┘                                              └nothing.
     * ( brushed ┬ &&                     !linkOthers ) => StepA:  nothing,  StepB: ┬visualByCheck.
     *   !brushed┘                                                                  └nothing.
     * ( !brushed  &&                     !linkOthers ) => StepA:  nothing,  StepB:  nothing.
     */
// Step A
A.isArray(c)&&A.each(c,(function(e){l[e]=1})),e.eachSeries((function(n,r){var i=h[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;f=f||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(A.isArray(n)?A.indexOf(n,t)<0:t!==n)}(t,r))return;if(A.each(d,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f=f||m(i)})),g(r)&&m(i)){var a=n.getData();a.each((function(e){LA(n,i,a,e)&&(u[e]=1)}))}}
// Step B
(n,r,i)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};
// Every series exists in event params, convenient
// for user to find series by seriesIndex.
o.selected.push(n);var r=h[t],i=e.getData(),a=g(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return LA(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};
// If no supported brush or no brush, all visuals are in original state.
(g(t)?f:m(r))&&function(e,t,n,r,i,a){var o,s={};function c(e){return Object(bA.a)(n,o,e)}function l(e,t){Object(bA.c)(n,o,e,t)}function u(e,u){o=null==a?e:u;var h=n.getRawDataItem(o);
// Consider performance
// @ts-ignore
if(!h||!1!==h.visualMap)for(var f=r.call(i,e),d=t[f],p=s[f],g=0,m=p.length;g<m;g++){var v=p[g];d[v]&&d[v].applyVisual(e,c,l)}}A.each(e,(function(e){var n=oc.prepareVisualTypes(t[e]);s[e]=n})),null==a?n.each(u):n.each([a],u)}
/**
 * @param data
 * @param stateList
 * @param visualMappings <state, Object.<visualType, module:echarts/visual/VisualMapping>>
 * @param getValueState param: valueOrIndex, return: state.
 * @param dim dimension or dimension index.
 */(BA,p,i,a)}))})),function(e,t,n,r,i){
// This event will not be triggered when `setOpion`, otherwise dead lock may
// triggered when do `setOption` in event listener, which we do not find
// satisfactory way to solve yet. Some considered resolutions:
// (a) Diff with prevoius selected data ant only trigger event when changed.
// But store previous data and diff precisely (i.e., not only by dataIndex, but
// also detect value changes in selected data) might bring complexity or fragility.
// (b) Use spectial param like `silent` to suppress event triggering.
// But such kind of volatile param may be weird in `setOption`.
if(!i)return;var a=e.getZr();if(a[TA])return;a[MA]||(a[MA]=PA);var o=Jt.b(a,MA,n,t);o(e,r)}(t,r,i,a,n)}function PA(e,t){if(!e.isDisposed()){var n=e.getZr();n[TA]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[TA]=!1}}function LA(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}var QA={rect:function(e){return RA(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&RA(t)}};function RA(e){return new tr.a(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/BrushView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var jA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new yh(t.getZr())).on("brush",A.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){
// PENDING: `updateTransform` is a little tricky, whose layout need
// to be calculate mandatorily and other stages will not be performed.
// Take care the correctness of the logic. See #11754 .
OA(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){
// Do not update controller when drawing.
(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},
// updateLayout: updateController,
// updateVisual: updateController,
t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);
// Action is not dispatched on drag end, because the drag end
// emits the same params with the last drag move event, and
// may have some delay when using touch pad, which makes
// animation not smooth (when using debounce).
(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:A.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:A.clone(n),$from:t})},t.type="brush",t}(sr.a),NA=jA,FA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,
/**
     * @readOnly
     */
n.areas=[],
/**
     * Current brush painting area settings.
     * @readOnly
     */
n.brushOption={},n}return Object(Re.a)(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&_A(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};
// Always give default visual, consider setOption at the second time.
n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(
// Bigger than the highlight z lift, otherwise it will
// be effected by the highlight z when brush.
r.liftZ=5)},
/**
   * If `areas` is null/undefined, range state remain.
   */
t.prototype.setAreas=function(e){
// If areas is null/undefined, range state remain.
// This helps user to dispatchAction({type: 'brush'}) with no areas
// set but just want to get the current brush select info from a `brush` event.
e&&(this.areas=A.map(e,(function(e){return zA(this.option,e)}),this))},
/**
   * Set the current painting brush option.
   */
t.prototype.setBrushOption=function(e){this.brushOption=zA(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(cr.a);
/* harmony default export */function zA(e,t){return A.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Gr.a(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}
/* harmony default export */var HA=FA,UA=["rect","polygon","lineX","lineY","keep","clear"],GA=/** @class */function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",a=a||!!e.areas.length})),this._brushType=r,this._brushMode=i,A.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?a:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return A.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(
// Trigger parallel action firstly
t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",
// Clear all areas of all brush components.
areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){return{show:!0,type:UA.slice(),icon:{
/* eslint-disable */
rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},
// `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`
title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(Xv),VA=GA;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/toolbox/feature/Brush.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/title/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var WA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(Re.a)(t,e),t.type="title",t.defaultOption={
// zlevel: 0,
z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(cr.a),qA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),s=A.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),c=new K.a({style:Object(Je.c)(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get("subtext"),h=new K.a({style:Object(Je.c)(a,{text:u,fill:a.getTextColor(),y:l.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);c.silent=!f&&!p,h.silent=!d&&!p,f&&c.on("click",(function(){Object(kt.k)(f,"_"+e.get("target"))})),d&&h.on("click",(function(){Object(kt.k)(d,"_"+e.get("subtarget"))})),Object(We.a)(c).eventData=Object(We.a)(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(h);
// If no subText, but add subTextEl, there will be an empty line.
var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Object(In.g)(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));
// Adjust text align based on position
o||(
// Align left if title is on the left. center and right is same
// @ts-ignore
"middle"===(o=e.get("left")||e.get("right"))&&(o="center"),
// Adjust layout by text align
"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),s||(
// @ts-ignore
"center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var y={align:o,verticalAlign:s};c.setStyle(y),h.setStyle(y),
// Render background
// Get groupRect again because textAlign has been changed
g=r.getBoundingRect();var b=v.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new bt.a({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type="title",t}(sr.a);
// View
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/TimelineModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var YA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},
/**
   * @override
   */
t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},
/**
   * @return {number} currentIndex
   */
t.prototype.getCurrentIndex=function(){return this.option.currentIndex},
/**
   * @return {boolean}
   */
t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},
/**
   * @param {boolean} state true: play, false: stop
   */
t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},
/**
   * @return {boolean} true: play, false: stop
   */
t.prototype.getPlayState=function(){return!!this.option.autoPlay},
/**
   * @private
   */
t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(A.each)(n,(function(t,n){var r,a=Object(lt.e)(Object(lt.h)(t),"");Object(A.isObject)(t)?(r=Object(A.clone)(t)).value=n:r=n,e.push(r),i.push(a)}))):e=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new Wn.a([{name:"value",type:a}],this)).initData(e,i)},t.prototype.getData=function(){return this._data},
/**
   * @public
   * @return {Array.<string>} categoreis
   */
t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",
/**
   * @protected
   */
t.defaultOption={
// zlevel: 0,                  // 一级层叠
z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(cr.a),KA=YA,$A=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="timeline.slider",
/**
   * @protected
   */
t.defaultOption=Object(Yt.d)(KA.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",
// When using number, label position is not
// restricted by viewRect.
// positive: right/bottom, negative: left/top
show:!0,interval:"auto",rotate:0,
// formatter: null,
// 其余属性默认使用全局文本样式，详见TEXTSTYLE
color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",
// borderColor: 'rgba(194,53,49, 0.5)',
animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",
// eslint-disable-next-line max-len
nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",
// eslint-disable-next-line max-len
prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,
// 其余属性默认使用全局文本样式，详见TEXTSTYLE
color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(KA);
/* harmony default export */Object(A.mixin)($A,hA.a.prototype);
/* harmony default export */var JA=$A,XA=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="timeline",t}(sr.a),ZA=XA,eb=/** @class */function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.getLabelModel=function(){
// Force override
return this.model.getModel("label")},
/**
   * @override
   */
t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Br.a),tb=n("18c0"),nb=n("216a"),rb=Math.PI,ib=Object(lt.o)(),ab=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){this.api=t},
/**
   * @override
   */
t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return Object(Ei.c)("nameValue",{noName:!0,value:t})},Object(A.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,o,e)}),this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},
/**
   * @override
   */
t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},
/**
   * @override
   */
t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,i,a,o=e.get(["label","position"]),s=e.get("orient"),c=function(e,t){return In.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),l={horizontal:"center",vertical:(
// Auto label offset.
n=null==o||"auto"===o?"horizontal"===s?c.y+c.height/2<t.getHeight()/2?"-":"+":c.x+c.width/2<t.getWidth()/2?"+":"-":Object(A.isString)(o)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][o]:o)>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:rb/2},f="vertical"===s?c.height:c.width,d=e.getModel("controlStyle"),p=d.get("show",!0),g=p?d.get("itemSize"):0,m=p?d.get("itemGap"):0,v=g+m,y=e.get(["label","rotate"])||0;y=y*rb/180;var b=d.get("position",!0),w=p&&d.get("showPlayBtn",!0),x=p&&d.get("showPrevBtn",!0),C=p&&d.get("showNextBtn",!0),_=0,I=f;
// position[0] means left, position[1] means middle.
"left"===b||"bottom"===b?(w&&(r=[0,0],_+=v),x&&(i=[_,0],_+=v),C&&(a=[I-g,0],I-=v)):(
// 'top' 'right'
w&&(r=[I-g,0],I-=v),x&&(i=[0,0],_+=v),C&&(a=[I-g,0],I-=v));var E=[_,I];return e.get("inverse")&&E.reverse(),{viewRect:c,mainLength:f,orient:s,rotation:h[s],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||l[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[s],
// Based on mainGroup.
playPosition:r,prevBtnPosition:i,nextBtnPosition:a,axisExtent:E,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){
// Position is be called finally, because bounding rect is needed for
// adapt content to fill viewRect (auto adapt offset).
// Timeline may be not all in the viewRect when 'offset' is specified
// as a number, because it is more appropriate that label aligns at
// 'offset' but not the other edge defined by viewRect.
var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){
// transform to horizontal, inverse rotate by left-top point.
var a=Cr.create(),o=i.x,s=i.y+i.height;Cr.translate(a,a,[-o,-s]),Cr.rotate(a,a,-rb/2),Cr.translate(a,a,[o,s]),(i=i.clone()).applyTransform(a)}var c=m(i),l=m(n.getBoundingRect()),u=m(r.getBoundingRect()),h=[n.x,n.y],f=[r.x,r.y];f[0]=h[0]=c[0][0];var d,p=e.labelPosOpt;null==p||Object(A.isString)(p)?(v(h,l,c,1,d="+"===p?0:1),v(f,u,c,1,1-d)):(v(h,l,c,1,d=p>=0?0:1),f[1]=h[1]+p);function g(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function m(e){
// [[xmin, xmax], [ymin, ymax]]
return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(h),r.setPosition(f),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=function(e,t){if(t=t||e.get("type"),t)switch(t){
// Buildin scale
case"category":return new tb.a({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new nb.a({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:
// default to be value
return new Qr.a}}(t,r);
// Customize scale. The `tickValue` is `dataIndex`.
i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new eb("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new ze.a;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new Ur.a({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(A.extend)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Ur.a({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(A.defaults)({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],
// The value is dataIndex, see the customized scale.
Object(A.each)(o,(function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel("itemStyle"),l=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Object(A.bind)(i._changeTimeline,i,e.value)},f=ob(s,c,t,h);f.ensureState("emphasis").style=l.getItemStyle(),f.ensureState("progress").style=u.getItemStyle(),Object(qe.o)(f);var d=Object(We.a)(f);s.get("tooltip")?(d.dataIndex=e.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get("show")){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],Object(A.each)(o,(function(r){
// The tickValue is dataIndex, see the customized scale.
var o=r.tickValue,s=a.getItemModel(o),c=s.getModel("label"),l=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),f=new K.a({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(A.bind)(i._changeTimeline,i,o),silent:!1,style:Object(Je.c)(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=Object(Je.c)(l),f.ensureState("progress").style=Object(Je.c)(u),t.add(f),Object(qe.o)(f),ib(f).dataIndex=o,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),c=r.getPlayState(),u=r.get("inverse",!0);function h(e,n,c,u){if(e){var h=Object(l.g)(Object(A.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),i),i),f=function(e,t,n,r){var i=r.style,a=Ve.createIcon(e.get(["controlStyle",t]),r||{},new tr.a(n[0],n[1],n[2],n[3]));
// TODO createIcon won't use style in opt.
i&&a.setStyle(i);return a}
/**
 * Create symbol or update symbol
 * opt: basic position and event handlers
 */(r,n+"Icon",[0,-h/2,h,h],{x:e[0],y:e[1],originX:i/2,originY:0,rotation:u?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState("emphasis").style=s,t.add(f),Object(qe.o)(f)}}h(e.nextBtnPosition,"next",Object(A.bind)(this._changeTimeline,this,u?"-":"+")),h(e.prevBtnPosition,"prev",Object(A.bind)(this._changeTimeline,this,u?"+":"-")),h(e.playPosition,c?"stop":"play",Object(A.bind)(this._handlePlayClick,this,!c),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=Object(A.bind)(s._handlePointerDrag,s),e.ondragend=Object(A.bind)(s._handlePointerDragend,s),sb(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){sb(e,s._progressLine,a,n,r)}};
// Reuse when exists, for animation and drag.
this._currentPointer=ob(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=xt.c(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){
// Do not cache
var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return Ve.applyTransform(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,a){var o=i.dataToCoord(n),s=Math.abs(o-e);s<r&&(r=s,t=a)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",ib(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(ZA);
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/TimelineView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function ob(e,t,n,r,i,a){var o=t.get("color");if(i)i.setColor(o),n.add(i),// Group may be new, also need to add.
a&&a.onUpdate(i);else{var s=e.get("symbol");(i=Object(Fe.a)(s,-1,-1,2,2,o)).setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i)}
// Style
var c=t.getItemStyle(["color"]);i.setStyle(c),
// Transform and events.
r=Object(A.merge)({rectHover:!0,z2:100},r,!0);var l=Object(Fe.c)(e.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var u=Object(Fe.b)(e.get("symbolOffset"),l);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var h=e.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),
// FIXME
// (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,
// getBoundingRect will return wrong result.
// (This is supposed to be resolved in zrender, but it is a little difficult to
// leverage performance and auto updateTransform)
// (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.
i.updateTransform(),i}function sb(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}
/* harmony default export */var cb=ab;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/timelineAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/preprocessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck
function lb(e){var t=e&&e.timeline;A.isArray(t)||(t=t?[t]:[]),A.each(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};
// Compatible with ec2
n[t]&&(e.axisType=n[t],delete e.type);if(ub(e),hb(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});hb(r,"position")||(r.position=e.controlPosition),"none"!==r.position||hb(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}A.each(e.data||[],(function(e){A.isObject(e)&&!A.isArray(e)&&(!hb(e,"value")&&hb(e,"name")&&(
// In ec2, using name as value.
e.value=e.name),ub(e))}))}(e)}))}function ub(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};A.each(r,(function(e,t){a[t]||hb(i,t)||(i[t]=e)})),n.label&&!hb(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function hb(e,t){return e.hasOwnProperty(t)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/timeline/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function fb(e,t){if(!e)return!1;for(var n=Object(A.isArray)(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkerModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function db(e){Object(lt.f)(e,"label",["show"])}
// { [componentType]: MarkerModel }
var pb=Object(lt.o)(),gb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,
/**
     * If marker model is created by self from series
     */
n.createdBySelf=!1,n}
/**
   * @overrite
   */return Object(Re.a)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Fg.a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},
/**
   * @overrite
   */
t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries((function(e){
// mainType can be markPoint, markLine, markArea
var n=e.get(this.mainType,!0),a=pb(e)[i];n&&n.data?(a?a._mergeOption(n,t,!0):(r&&
// Default label emphasis `position` and `show`
db(n),A.each(n.data,(function(e){
// FIXME Overwrite fillLabel method ?
e instanceof Array?(db(e[0]),db(e[1])):db(e)})),a=this.createMarkerModelFromSeries(n,this,t),
// markerModel = new ImplementedMarkerModel(
//     markerOpt, this, ecModel
// );
A.extend(a,{mainType:this.mainType,
// Use the same series index and name
seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),pb(e)[i]=a):pb(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Object(Ei.c)("section",{header:this.name,blocks:[Object(Ei.c)("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=hA.a.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,
// Support three types of markers. Strict check.
t){return pb(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(cr.a);A.mixin(gb,hA.a.prototype);
/* harmony default export */var mb=gb,vb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={
// zlevel: 0,
z:5,symbol:"pin",symbolSize:50,
// symbolRotate: 0,
// symbolOffset: [0, 0]
tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(mb),yb=vb,Ab=n("b7d9");
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkPointModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/markerHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function bb(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function wb(e,t,n,r,i,a){var o=[],s=Object(it.c)(t,r/* , otherDataDim */)?t.getCalculationInfo("stackResultDimension"):r,c=kb(t,s,e),l=t.indicesOfNearest(s,c)[0];o[i]=t.get(n,l),o[a]=t.get(s,l);var u=t.get(r,l),h=xt.h(t.get(r,l));
// Make it simple, do not visit all stacked value to count precision.
return(h=Math.min(h,20))>=0&&(o[a]=+o[a].toFixed(h)),[o,u]}
// TODO Specified percent
var xb={min:Object(A.curry)(wb,"min"),max:Object(A.curry)(wb,"max"),average:Object(A.curry)(wb,"average"),median:Object(A.curry)(wb,"median")};
/**
 * Transform markPoint data item to format used in List by do the following
 * 1. Calculate statistic like `max`, `min`, `average`
 * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array
 */function Cb(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;
// 1. If not specify the position with pixel directly
// 2. If `coord` is not a data array. Which uses `xAxis`,
// `yAxis` to specify the coord on each dimension
// parseFloat first because item.x and item.y can be percent string like '20%'
if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!Object(A.isArray)(t.coord)&&Object(A.isArray)(i)){var a=_b(t,n,r,e);
// Clone the option
// Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value
if((t=Object(A.clone)(t)).type&&xb[t.type]&&a.baseAxis&&a.valueAxis){var o=Object(A.indexOf)(i,a.baseAxis.dim),s=Object(A.indexOf)(i,a.valueAxis.dim),c=xb[t.type](n,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],
// Force to use the value of calculated value.
// let item use the value without stack.
t.value=c[1]}else
// FIXME Only has one of xAxis and yAxis.
t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}
// x y is provided
if(null!=t.coord&&Object(A.isArray)(i))for(
// Each coord support max, min, average
var l=t.coord,u=0;u<2;u++)xb[l[u]]&&(l[u]=kb(n,n.mapDimension(i[u]),l[u]));else t.coord=[];return t}}function _b(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}
/**
 * Filter data which is out of coordinateSystem range
 * [dataFilter description]
 */(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Ib(
// Currently only polar and cartesian has containData.
e,t){
// Always return true if there is no coordSys
return!(e&&e.containData&&t.coord&&!bb(t))||e.containData(t.coord)}function Eb(e,t){return e?function(e,n,r,i){var a=i<2?e.coord&&e.coord[i]:e.value;return Object(Ab.d)(a,t[i])}:function(e,n,r,i){return Object(Ab.d)(e.value,t[i])}}function kb(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkerView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Sb=Object(lt.o)(),Bb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.init=function(){this.markerGroupMap=Object(A.createHashMap)()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){Sb(e).keep=!1})),t.eachSeries((function(e){var i=mb.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!Sb(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){Sb(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(A.each)(e,(function(e){var r=mb.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl((function(e){e&&(t?Object(qe.q)(e):Object(qe.B)(e))}))}))},t.type="marker",t}(sr.a),Mb=Bb;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkPointView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Tb(e,t,n){var r=t.coordinateSystem;e.each((function(i){var a,o=e.getItemModel(i),s=xt.q(o.get("x"),n.getWidth()),c=xt.q(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(c)){if(t.getMarkerPosition)
// Use the getMarkerPosition
a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var l=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);a=r.dataToPoint([l,u])}
// Use x, y if has any
}else a=[s,c];isNaN(s)||(a[0]=s),isNaN(c)||(a[1]=c),e.setItemLayout(i,a)}))}var Ob=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=mb.getMarkerModelFromSeries(e,"markPoint");t&&(Tb(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new rt),l=function(e,t,n){var r;r=e?Object(A.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};
// In map series data don't have lng and lat dimension. Fallback to same with coordSys
return Object(A.extend)(Object(A.extend)({},n),{name:e,
// DON'T use ordinalMeta to parse and collect ordinal.
ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Wn.a(r,n),a=Object(A.map)(n.get("data"),Object(A.curry)(Cb,t));e&&(a=Object(A.filter)(a,Object(A.curry)(Ib,e)));var o=Eb(!!e,r);return i.initData(a,null,o),i}
/* harmony default export */(i,e,t);
// FIXME
t.setData(l),Tb(t.getData(),e,r),l.each((function(e){var n=l.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),c=n.getShallow("symbolKeepAspect");
// TODO: refactor needed: single data item should not support callback function
if(Object(A.isFunction)(r)||Object(A.isFunction)(i)||Object(A.isFunction)(a)||Object(A.isFunction)(s)){var u=t.getRawValue(e),h=t.getDataParams(e);Object(A.isFunction)(r)&&(r=r(u,h)),Object(A.isFunction)(i)&&(
// FIXME 这里不兼容 ECharts 2.x，2.x 貌似参数是整个数据？
i=i(u,h)),Object(A.isFunction)(a)&&(a=a(u,h)),Object(A.isFunction)(s)&&(s=s(u,h))}var f=n.getModel("itemStyle").getItemStyle(),d=Object(bA.b)(o,"color");f.fill||(f.fill=d),l.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})})),
// TODO Text are wrong
c.updateData(l),this.group.add(c.group),
// Set host model for tooltip
// FIXME
l.eachItemGraphicEl((function(e){e.traverse((function(e){Object(We.a)(e).dataModel=t}))})),this.markKeep(c),c.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Mb);var Db=Ob;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/installMarkPoint.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkLineModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Pb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={
// zlevel: 0,
z:5,symbol:["circle","arrow"],symbolSize:[8,16],
// symbolRotate: 0,
symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(mb),Lb=Pb,Qb=Object(lt.o)(),Rb=function(e,t,n,r){var i,a=e.getData();if(Object(A.isArray)(r))i=r;else{
// Special type markLine like 'min', 'max', 'average', 'median'
var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var s=void 0,c=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),c=Object(A.retrieve)(r.yAxis,r.xAxis);else{var l=_b(r,a,t,e);s=l.valueAxis,c=kb(a,Object(it.b)(a,l.valueDataDim),o)}var u="x"===s.dim?0:1,h=1-u,f=Object(A.clone)(r),d={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,d.coord[h]=1/0;var p=n.get("precision");p>=0&&Object(A.isNumber)(c)&&(c=+c.toFixed(Math.min(p,20))),f.coord[u]=d.coord[u]=c,i=[f,d,{type:o,valueIndex:r.valueIndex,
// Force to use the value of calculated value.
value:c}]}else i=[]}var g=[Cb(e,i[0]),Cb(e,i[1]),Object(A.extend)({},i[2])];
// Avoid line data type is extended by from(to) data type
return g[2].type=g[2].type||null,
// Merge from option and to option into line option
Object(A.merge)(g[2],g[0]),Object(A.merge)(g[2],g[1]),g};
/* harmony default export */function jb(e){return!isNaN(e)&&!isFinite(e)}
// If a markLine has one dim
function Nb(e,t,n,r){var i=1-e,a=r.dimensions[e];return jb(t[i])&&jb(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function Fb(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;
// In case
// {
//  markLine: {
//    data: [{ yAxis: 2 }]
//  }
// }
if(n&&r&&(Nb(1,n,r,e)||Nb(0,n,r,e)))return!0}return Ib(e,t[0])&&Ib(e,t[1])}function zb(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),c=xt.q(s.get("x"),i.getWidth()),l=xt.q(s.get("y"),i.getHeight());if(isNaN(c)||isNaN(l)){
// Chart like bar may have there own marker positioning logic
if(r.getMarkerPosition)
// Use the getMarkerPosition
a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,h=e.get(u[0],t),f=e.get(u[1],t);a=o.dataToPoint([h,f])}
// Expand line to the edge of grid if value on one axis is Inifnity
// In case
//  markLine: {
//    data: [{
//      yAxis: 2
//      // or
//      type: 'average'
//    }]
//  }
if(Et(o,"cartesian2d")){
// TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug
var d=o.getAxis("x"),p=o.getAxis("y");u=o.dimensions;jb(e.get(u[0],t))?a[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):jb(e.get(u[1],t))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}
// Use x, y if has any
isNaN(c)||(a[0]=c),isNaN(l)||(a[1]=l)}else a=[c,l];e.setItemLayout(t,a)}var Hb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=mb.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=Qb(t).from,a=Qb(t).to;
// Update visual and layout of from symbol and to symbol
i.each((function(t){zb(i,t,!0,e,n),zb(a,t,!1,e,n)})),
// Update layout of line
r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new fl);this.group.add(c.group);var l=function(e,t,n){var r;r=e?Object(A.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};
// In map series data don't have lng and lat dimension. Fallback to same with coordSys
return Object(A.extend)(Object(A.extend)({},n),{name:e,
// DON'T use ordinalMeta to parse and collect ordinal.
ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Wn.a(r,n),a=new Wn.a(r,n),o=new Wn.a([],n),s=Object(A.map)(n.get("data"),Object(A.curry)(Rb,t,e,n));e&&(s=Object(A.filter)(s,Object(A.curry)(Fb,e)));var c=Eb(!!e,r);return i.initData(Object(A.map)(s,(function(e){return e[0]})),null,c),a.initData(Object(A.map)(s,(function(e){return e[1]})),null,c),o.initData(Object(A.map)(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:i,to:a,line:o}}
/* harmony default export */(i,e,t),u=l.from,h=l.to,f=l.line;Qb(t).from=u,Qb(t).to=h,
// Line data for tooltip and formatter
t.setData(f);
// TODO
// Functionally, `symbolSize` & `symbolOffset` can also be 2D array now.
// But the related logic and type definition are not finished yet.
// Finish it if required
var d=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,i){var a=t.getItemModel(n);zb(t,n,i,e,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(bA.b)(o,"color")),t.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),
// `0` should be considered as a valid value, so use `retrieve2` instead of `||`
symbolOffset:Object(A.retrieve2)(a.get("symbolOffset",!0),m[i?0:1]),symbolRotate:Object(A.retrieve2)(a.get("symbolRotate",!0),g[i?0:1]),
// TODO: when 2d array is supported, it should ignore parent
symbolSize:Object(A.retrieve2)(a.get("symbolSize"),p[i?0:1]),symbol:Object(A.retrieve2)(a.get("symbol",!0),d[i?0:1]),style:s})}
// TODO: support callback function like markPoint
Object(A.isArray)(d)||(d=[d,d]),Object(A.isArray)(p)||(p=[p,p]),Object(A.isArray)(g)||(g=[g,g]),Object(A.isArray)(m)||(m=[m,m]),
// Update visual and layout of from symbol and to symbol
l.from.each((function(e){v(u,e,!0),v(h,e,!1)})),
// Update visual and layout of line
f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();
// lineData.setItemVisual(idx, {
//     color: lineColor || fromData.getItemVisual(idx, 'color')
// });
f.setItemLayout(e,[u.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),c.updateData(f),
// Set host model for tooltip
// FIXME
l.line.eachItemGraphicEl((function(e){Object(We.a)(e).dataModel=t,e.traverse((function(e){Object(We.a)(e).dataModel=t}))})),this.markKeep(c),c.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Mb);var Ub=Hb;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/installMarkLine.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/MarkAreaModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Gb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={
// zlevel: 0,
// PENDING
z:1,tooltip:{trigger:"item"},
// markArea should fixed on the coordinate system
animation:!1,label:{show:!0,position:"top"},itemStyle:{
// color and borderColor default to use color from series
// color: 'auto'
// borderColor: 'auto'
borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(mb),Vb=Gb,Wb=Object(lt.o)(),qb=function(e,t,n,r){
// item may be null
var i=r[0],a=r[1];if(i&&a){var o=Cb(e,i),s=Cb(e,a),c=o.coord,l=s.coord;c[0]=Object(A.retrieve)(c[0],-1/0),c[1]=Object(A.retrieve)(c[1],-1/0),l[0]=Object(A.retrieve)(l[0],1/0),l[1]=Object(A.retrieve)(l[1],1/0);
// Merge option into one
var u=Object(A.mergeAll)([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};
/* harmony default export */function Yb(e){return!isNaN(e)&&!isFinite(e)}
// If a markArea has one dim
function Kb(e,t,n,r){var i=1-e;return Yb(t[i])&&Yb(n[i])}function $b(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return Et(e,"cartesian2d")?
// In case
// {
//  markArea: {
//    data: [{ yAxis: 2 }]
//  }
// }
!(!n||!r||!Kb(1,n,r)&&!Kb(0,n,r))||function(
// Currently only polar and cartesian has containData.
e,t,n){
// Always return true if there is no coordSys
return!(e&&e.containZone&&t.coord&&n.coord&&!bb(t)&&!bb(n))||e.containZone(t.coord,n.coord)}(e,i,a):Ib(e,i)||Ib(e,a)}
// dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']
function Jb(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),c=xt.q(s.get(n[0]),i.getWidth()),l=xt.q(s.get(n[1]),i.getHeight());if(isNaN(c)||isNaN(l)){
// Chart like bar may have there own marker positioning logic
if(r.getMarkerPosition){
// Consider the case that user input the right-bottom point first
// Pick the larger x and y as 'x1' and 'y1'
var u=e.getValues(["x0","y0"],t),h=e.getValues(["x1","y1"],t),f=o.clampData(u),d=o.clampData(h),p=[];"x0"===n[0]?p[0]=f[0]>d[0]?h[0]:u[0]:p[0]=f[0]>d[0]?u[0]:h[0],"y0"===n[1]?p[1]=f[1]>d[1]?h[1]:u[1]:p[1]=f[1]>d[1]?u[1]:h[1],
// Use the getMarkerPosition
a=r.getMarkerPosition(p,n,!0)}else{var g=[y=e.get(n[0],t),A=e.get(n[1],t)];o.clampData&&o.clampData(g,g),a=o.dataToPoint(g,!0)}if(Et(o,"cartesian2d")){
// TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug
var m=o.getAxis("x"),v=o.getAxis("y"),y=e.get(n[0],t),A=e.get(n[1],t);Yb(y)?a[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):Yb(A)&&(a[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}
// Use x, y if has any
isNaN(c)||(a[0]=c),isNaN(l)||(a[1]=l)}else a=[c,l];return a}var Xb=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Zb=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=mb.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(A.map)(Xb,(function(i){return Jb(r,t,i,e,n)}));
// Layout
r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new ze.a});this.group.add(c.group),this.markKeep(c);var l=function(e,t,n){var r,i,a=["x0","y0","x1","y1"];if(e){var o=Object(A.map)(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};
// In map series data don't have lng and lat dimension. Fallback to same with coordSys
return Object(A.extend)(Object(A.extend)({},r),{name:e,
// DON'T use ordinalMeta to parse and collect ordinal.
ordinalMeta:null})}));i=Object(A.map)(a,(function(e,t){return{name:e,type:o[t%2].type}})),r=new Wn.a(i,n)}else i=[{name:"value",type:"float"}],r=new Wn.a(i,n);var s=Object(A.map)(n.get("data"),Object(A.curry)(qb,t,e,n));e&&(s=Object(A.filter)(s,Object(A.curry)($b,e)));var c=e?function(e,t,n,r){
// TODO should convert to ParsedValue?
var a=e.coord[Math.floor(r/2)][r%2];return Object(Ab.d)(a,i[r])}:function(e,t,n,r){return Object(Ab.d)(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}
/* harmony default export */(i,e,t);
// Line data for tooltip and formatter
t.setData(l),
// Update visual and layout of line
l.each((function(t){
// Layout
var n=Object(A.map)(Xb,(function(n){return Jb(l,t,n,e,r)})),a=i.getAxis("x").scale,s=i.getAxis("y").scale,c=a.getExtent(),u=s.getExtent(),h=[a.parse(l.get("x0",t)),a.parse(l.get("x1",t))],f=[s.parse(l.get("y0",t)),s.parse(l.get("y1",t))];xt.c(h),xt.c(f);var d=!!(c[0]>h[1]||c[1]<h[0]||u[0]>f[1]||u[1]<f[0]);
// If none of the area is inside coordSys, allClipped is set to be true
// in layout so that label will not be displayed. See #12591
l.setItemLayout(t,{points:n,allClipped:d});var p=l.getItemModel(t).getModel("itemStyle").getItemStyle(),g=Object(bA.b)(o,"color");p.fill||(p.fill=g,Object(A.isString)(p.fill)&&(p.fill=J.modifyAlpha(p.fill,.4))),p.stroke||(p.stroke=g),
// Visual
l.setItemVisual(t,"style",p)})),l.diff(Wb(c).data).add((function(e){var t=l.getItemLayout(e);if(!t.allClipped){var n=new Ci.a({shape:{points:t.points}});l.setItemGraphicEl(e,n),c.group.add(n)}})).update((function(e,n){var r=Wb(c).data.getItemGraphicEl(n),i=l.getItemLayout(e);i.allClipped?r&&c.group.remove(r):(r?Ge.h(r,{shape:{points:i.points}},t,e):r=new Ci.a({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))})).remove((function(e){var t=Wb(c).data.getItemGraphicEl(e);c.group.remove(t)})).execute(),l.eachItemGraphicEl((function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,"style");e.useStyle(l.getItemVisual(n,"style")),Object(Je.g)(e,Object(Je.e)(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||"",inheritColor:Object(A.isString)(i.fill)?J.modifyAlpha(i.fill,1):"#000"}),Object(qe.I)(e,r),Object(qe.J)(e,null,null,r.get(["emphasis","disabled"])),Object(We.a)(e).dataModel=t})),Wb(c).data=l,c.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(Mb);var ew=Zb;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/marker/installMarkArea.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/LegendModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var tw=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",
// legend.width/height are maxWidth/maxHeight actually,
// whereas real width/height is calculated by its content.
// (Setting {left: 10, right: 10} does not make sense).
// So consider the case:
// `setOption({legend: {left: 10});`
// then `setOption({legend: {right: 10});`
// The previous `left` should be cleared by setting `ignoreSize`.
ignoreSize:!0},n}return Object(Re.a)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),A.isArray(t)&&A.each(t,(function(e,r){A.isString(e)&&(e={type:e}),t[r]=A.merge(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;
// If selectedMode is single, try to select one
if(e[0]&&"single"===this.get("selectedMode")){
// If has any selected in option.selected
for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){
// Force to unselect others
this.select(r),t=!0;break}}
// Try select the first if selectedMode is single
!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):i=!0}else i=!0;i&&Object(lt.n)(r)&&t.push(r.name)})),
/**
     * @type {Array.<string>}
     * @private
     */
this._availableNames=n;
// If legend.data is not specified in option, use availableNames as data,
// which is convenient for user preparing option.
var r=this.get("data")||t,i=A.createHashMap(),a=A.map(r,(function(e){
// Can be string or number
return(A.isString(e)||A.isNumber(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Gr.a(e,this,this.ecModel))}),this);
/**
     * @type {Array.<module:echarts/model/Model>}
     * @private
     */
this._data=A.filter(a,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;A.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;
// Default is true
t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;A.each(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;A.each(e,(function(e){var n=e.get("name",!0);
// Initially, default value is true
t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&A.indexOf(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={
// zlevel: 0,
z:4,show:!0,orient:"horizontal",left:"center",
// right: 'center',
top:0,
// bottom: null,
align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(cr.a),nw=tw,rw=A.curry,iw=A.each,aw=ze.a,ow=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Object(Re.a)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new aw),this.group.add(this._selectorGroup=new aw),this._isFirstRender=!0},
/**
   * @protected
   */
t.prototype.getContentGroup=function(){return this._contentGroup},
/**
   * @protected
   */
t.prototype.getSelectorGroup=function(){return this._selectorGroup},
/**
   * @override
   */
t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");
// selector has been normalized to an array in model
var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,o,a,s);
// Perform layout.
var c=e.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),h=In.g(c,l,u),f=this.layoutInner(e,i,h,r,o,s),d=In.g(A.defaults({width:f.width,height:f.height},c),l,u);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),
// Render background after group is layout.
this.group.add(this._backgroundEl=iy(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=A.createHashMap(),l=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),iw(t.getData(),(function(i,a){var o=i.get("name");
// Use empty string or \n as a newline string
if(!this.newlineDisabled&&(""===o||"\n"===o)){var h=new aw;
// @ts-ignore
return h.newline=!0,void s.add(h)}
// Representitive series.
var f=n.getSeriesByName(o)[0];if(!c.get(o)){
// Legend to control series.
if(f){var d=f.getData(),p=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),m=d.getVisual("style"),v=this._createItem(f,o,a,i,t,e,p,m,g,l,r);v.on("click",rw(sw,o,null,r,u)).on("mouseover",rw(lw,f.name,null,r,u)).on("mouseout",rw(uw,f.name,null,r,u)),n.ssr&&v.eachChild((function(e){var t=Object(We.a)(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),c.set(o,!0)}else
// Legend to control data. In pie and funnel.
n.eachRawSeries((function(s){
// In case multiple series has same data name
if(!c.get(o)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(o))return;var f=h.indexOfName(o),d=h.getItemVisual(f,"style"),p=h.getItemVisual(f,"legendIcon"),g=Object(J.parse)(d.fill);
// Color may be set to transparent in visualMap when data is out of range.
// Do not show nothing.
g&&0===g[3]&&(g[3]=.2,
// TODO color is set to 0, 0, 0, 0. Should show correct RGBA
d=A.extend(A.extend({},d),{fill:Object(J.stringify)(g,"rgba")}));var m=this._createItem(s,o,a,i,t,e,{},d,p,l,r);
// FIXME: consider different series has items with the same name.
m.on("click",rw(sw,null,o,r,u)).on("mouseover",rw(lw,null,o,r,u)).on("mouseout",rw(uw,null,o,r,u)),n.ssr&&m.eachChild((function(e){var t=Object(We.a)(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),c.set(o,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();iw(e,(function(e){var r=e.type,i=new K.a({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});a.add(i);var o=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);Object(Je.g)(i,{normal:o,emphasis:s},{defaultText:e.title}),Object(qe.o)(i)}))},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var h=e.visualDrawType,f=i.get("itemWidth"),d=i.get("itemHeight"),p=i.isSelected(t),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),v=r.get("icon"),y=function(e,t,n,r,i,a,o){
/**
   * Use series style if is inherit;
   * elsewise, use legend style
   */
function s(e,t){
// If lineStyle.width is 'auto', it is set to be 2 if series has border
"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),iw(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}
// itemStyle
var c=t.getModel("itemStyle"),l=c.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=c.getShallow("decal");l.decal=h&&"inherit"!==h?Object(Ga.a)(h,o):r.decal,"inherit"===l.fill&&(
/**
     * Series with visualDrawType as 'stroke' should have
     * series stroke as legend fill
     */
l.fill=r[i]);"inherit"===l.stroke&&(
/**
     * icon type with "emptyXXX" should use fill color
     * in visual style
     */
l.stroke=r[u]);"inherit"===l.opacity&&(
/**
     * Use lineStyle.opacity if drawType is stroke
     */
l.opacity=("fill"===i?r:n).opacity);s(l,r);
// lineStyle
var f=t.getModel("lineStyle"),d=f.getLineStyle();if(s(d,n),
// Fix auto color to real color
"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!a){var p=t.get("inactiveBorderWidth"),g=l[u];
/**
     * Since stroke is set to be inactiveBorderColor, it may occur that
     * there is no border in series but border in legend, so we need to
     * use border only when series has border if is set to be auto
     */l.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:d}}(c=v||c||"roundRect",r,o,s,h,p,u),b=new aw,w=r.getModel("textStyle");if(!A.isFunction(e.getLegendIcon)||v&&"inherit"!==v){
// Use default legend icon policy for most series
var x="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;// No rotation for no icon
b.add(function(e){var t=e.icon||"roundRect",n=Object(Fe.a)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:f,itemHeight:d,icon:c,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else
// Series has specific way to define legend icon
b.add(e.getLegendIcon({itemWidth:f,itemHeight:d,icon:c,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var C="left"===a?f+5:-5,_=a,I=i.get("formatter"),E=t;A.isString(I)&&I?E=I.replace("{name}",null!=t?t:""):A.isFunction(I)&&(E=I(t));var k=p?w.getTextColor():r.get("inactiveColor");b.add(new K.a({style:Object(Je.c)(w,{text:E,x:C,y:d/2,fill:k,align:_,verticalAlign:"middle"},{inheritColor:k})}));
// Add a invisible rect to increase the area of mouse hover
var S=new bt.a({shape:b.getBoundingRect(),style:{
// Cannot use 'invisible' because SVG SSR will miss the node
fill:"transparent"}}),B=r.getModel("tooltip");return B.get("show")&&Ve.setTooltipConfig({el:S,componentModel:i,itemName:t,itemTooltipOption:B.option}),b.add(S),b.eachChild((function(e){e.silent=!0})),S.silent=!l,this.getContentGroup().add(b),Object(qe.o)(b),
// @ts-ignore
b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();
// Place items in contentGroup.
In.b(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){
// Place buttons in selectorGroup
In.b(
// Buttons in selectorGroup always layout horizontally
"horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],f=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=0===d?"width":"height",g=0===d?"height":"width",m=0===d?"y":"x";"end"===a?h[d]+=c[p]+f:l[d]+=u[p]+f,
// Always align selector to content as 'middle'
h[1-d]+=c[g]/2-u[g]/2,s.x=h[0],s.y=h[1],o.x=l[0],o.y=l[1];var v={x:0,y:0};return v[p]=c[p]+f+u[p],v[g]=Math.max(c[g],u[g]),v[m]=Math.min(0,u[m]+h[1-d]),v}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},
/**
   * @protected
   */
t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(sr.a);function sw(e,t,n,r){
// downplay before unselect
uw(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),
// highlight after select
// TODO highlight immediately may cause animation loss.
lw(e,t,n,r)}function cw(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function lw(e,t,n,r){
// If element hover will move to a hoverLayer.
cw(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function uw(e,t,n,r){
// If element hover will move to a hoverLayer.
cw(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}
/* harmony default export */var hw=ow;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/legendFilter.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function fw(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){
// If in any legend component the status is not selected.
// Because in legend series is assumed selected when it is not in the legend data.
for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/legendAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function dw(e,t,n){var r="allSelect"===e||"inverseSelect"===e,i={},a=[];n.eachComponent({mainType:"legend",query:t},(function(n){r?n[e]():n[e](t.name),pw(n,i),a.push(n.componentIndex)}));var o={};
// make selectedMap from all legend components
// Return the event explicitly
return n.eachComponent("legend",(function(e){Object(A.each)(i,(function(t,n){
// Force other legend has same selected status
// Or the first is toggled to true and other are toggled to false
// In the case one legend has some item unSelected in option. And if other legend
// doesn't has the item, they will assume it is selected.
e[t?"select":"unSelect"](n)})),pw(e,o)})),r?{selected:o,
// return legendIndex array to tell the developers which legends are allSelect / inverseSelect
legendIndex:a}:{name:t.name,selected:o}}function pw(e,t){var n=t||{};return Object(A.each)(e.getData(),(function(t){var r=t.get("name");
// Wrap element
if("\n"!==r&&""!==r){var i=e.isSelected(r);Object(A.hasOwn)(n,r)?
// Unselected if any legend is unselected
n[r]=n[r]&&i:n[r]=i}})),n}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/installLegendPlain.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function gw(e){e.registerComponentModel(nw),e.registerComponentView(hw),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,fw),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){
/**
   * @event legendToggleSelect
   * @type {Object}
   * @property {string} type 'legendToggleSelect'
   * @property {string} [from]
   * @property {string} name Series name or data item name
   */
e.registerAction("legendToggleSelect","legendselectchanged",Object(A.curry)(dw,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(A.curry)(dw,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(A.curry)(dw,"inverseSelect")),
/**
   * @event legendSelect
   * @type {Object}
   * @property {string} type 'legendSelect'
   * @property {string} name Series name or data item name
   */
e.registerAction("legendSelect","legendselected",Object(A.curry)(dw,"select")),
/**
   * @event legendUnSelect
   * @type {Object}
   * @property {string} type 'legendUnSelect'
   * @property {string} name Series name or data item name
   */
e.registerAction("legendUnSelect","legendunselected",Object(A.curry)(dw,"unSelect"))}(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/ScrollableLegendModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var mw=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}
/**
   * @param {number} scrollDataIndex
   */return Object(Re.a)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Object(In.f)(t);e.prototype.init.call(this,t,n,r),vw(this,t,i)},
/**
   * @override
   */
t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),vw(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Object(Yt.d)(nw.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(nw);
// Do not `ignoreSize` to enable setting {left: 10, right: 10}.
function vw(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Object(In.h)(t,n,{type:"box",ignoreSize:!!r})}
/* harmony default export */var yw=mw,Aw=ze.a,bw=["width","height"],ww=["x","y"],xw=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(Re.a)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Aw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Aw)},
/**
   * @override
   */
t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},
/**
   * @override
   */
t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;
// Render content items.
e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get("pageIconSize",!0),h=A.isArray(u)?u:[u,u];
// FIXME: support be 'auto' adapt to size number text length,
// e.g., '3/12345' should not overlap with the control arrow button.
d("pagePrev",0);var f=n.getModel("pageTextStyle");function d(e,t){var r=e+"DataIndex",a=Ve.createIcon(n.get("pageIcons",!0)[n.getOrient().name][t],{
// Buttons will be created in each render, so we do not need
// to worry about avoiding using legendModel kept in scope.
onclick:A.bind(c._pageGo,c,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=e,l.add(a)}l.add(new K.a({name:"pageText",style:{
// Placeholder to calculate a proper layout.
text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},
/**
   * @override
   */
t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=bw[s],l=ww[s],u=bw[1-s],h=ww[1-s];i&&In.b(
// Buttons in selectorGroup always layout horizontally
"horizontal",o,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),d=o.getBoundingRect(),p=[-d.x,-d.y],g=A.clone(n);i&&(g[c]=n[c]-d[c]-f);var m=this._layoutContentAndController(e,r,g,s,c,u,h,l);if(i){if("end"===a)p[s]+=m[c]+f;else{var v=d[c]+f;p[s]-=v,m[l]-=v}m[c]+=d[c]+f,p[1-s]+=m[h]+m[u]/2-d[u]/2,m[u]=Math.max(m[u],d[u]),m[h]=Math.min(m[h],d[h]+p[1-s]),o.x=p[0],o.y=p[1],o.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;
// Place items in contentGroup.
In.b(e.get("orient"),c,e.get("itemGap"),r?n.width:null,r?null:n.height),In.b(
// Buttons in controller are layout always horizontally.
"horizontal",u,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),f=u.getBoundingRect(),d=this._showController=h[i]>n[i],p=[-h.x,-h.y];
// Remain contentPos when scroll animation perfroming.
// If first rendering, `contentGroup.position` is [0, 0], which
// does not make sense and may cause unexepcted animation if adopted.
t||(p[r]=c[s]);
// Layout container group based on 0.
var g=[0,0],m=[-f.x,-f.y],v=A.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));
// Place containerGroup and controllerGroup and contentGroup.
d&&(
// controller is on the right / bottom.
"end"===e.get("pageButtonPosition",!0)?m[r]+=n[i]-f[i]:g[r]+=f[i]+v);
// Always align controller to content as 'middle'.
m[1-r]+=h[a]/2-f[a]/2,c.setPosition(p),l.setPosition(g),u.setPosition(m);
// Calculate `mainRect` and set `clipPath`.
// mainRect should not be calculated by `this.group.getBoundingRect()`
// for sake of the overflow.
var y={x:0,y:0};
// Consider content may be overflow (should be clipped).
if(y[i]=d?n[i]:h[i],y[a]=Math.max(h[a],f[a]),
// `containerRect[yx] + containerPos[1 - orientIdx]` is 0.
y[o]=Math.min(0,f[o]+m[1-r]),l.__rectSize=n[i],d){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-v,0),b[a]=y[a],l.setClipPath(new bt.a({shape:b})),
// Consider content may be larger than container, container rect
// can not be obtained from `containerGroup.getBoundingRect()`.
l.__rectSize=b[i]}else
// Do not remove or ignore controller. Keep them set as placeholders.
u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));
// Content translate animation.
var w=this._getPageInfo(e);return null!=w.pageIndex&&Ge.h(c,{x:w.contentPosition[0],y:w.contentPosition[1]},
// When switch from "show controller" to "not show controller", view should be
// updated immediately without animation, otherwise causes weird effect.
d?e:null),this._updatePageInfoView(e,w),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;A.each(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],a=n.childOfName(r);a&&(a.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,s=t.pageCount;r&&i&&r.setStyle("text",A.isString(i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):i({current:o,total:s}))},
/**
   *  contentPosition: Array.<number>, null when data item not found.
   *  pageIndex: number, null when data item not found.
   *  pageCount: number, always be a number, can be 0.
   *  pagePrevDataIndex: number, null when no previous page.
   *  pageNextDataIndex: number, null when no next page.
   * }
   */
t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=bw[i],o=ww[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,h=u?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var d=y(l);f.contentPosition[i]=-d.s;
// Strategy:
// (1) Always align based on the left/top most item.
// (2) It is user-friendly that the last item shown in the
// current window is shown at the begining of next window.
// Otherwise if half of the last item is cut by the window,
// it will have no chance to display entirely.
// (3) Consider that item size probably be different, we
// have calculate pageIndex by size rather than item index,
// and we can not get page index directly by division.
// (4) The window is to narrow to contain more than
// one item, we should make sure that the page can be fliped.
for(var p=s+1,g=d,m=d,v=null;p<=u;++p)
// Half of the last item is out of the window.
(!(v=y(c[p]))&&m.e>g.s+r||v&&!A(v,g.s))&&(g=m.i>g.i?m:v)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount),m=v;for(p=s-1,g=d,m=d,v=null;p>=-1;--p)
// If the the end item does not intersect with the window started
// from the current item, a page can be settled.
(v=y(c[p]))&&A(m,v.s)||!(g.i<m.i)||(m=g,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=g.i),++f.pageCount,++f.pageIndex),g=v;return f;function y(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function A(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var a=r.__legendDataIndex;
// FIXME
// If the given targetDataIndex (from model) is illegal,
// we use defaultIndex. But the index on the legend model and
// action payload is still illegal. That case will not be
// changed until some scenario requires.
null==n&&null!=a&&(n=i),a===e&&(t=i)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(hw),Cw=xw;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/ScrollableLegendView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Separate legend and scrollable legend to reduce package size.
 */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/installLegendScroll.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function _w(e){Object(r.a)(gw),e.registerComponentModel(yw),e.registerComponentView(Cw),
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/scrollableLegendAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){
/**
   * @event legendScroll
   * @type {Object}
   * @property {string} type 'legendScroll'
   * @property {string} scrollDataIndex
   */
e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/legend/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Iw=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="dataZoom.inside",t.defaultOption=Object(Yt.d)(Rv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Rv),Ew=Iw,kw=Object(lt.o)();
/* harmony default export */function Sw(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}
/**
 * This action will be throttled.
 */
function Bw(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Mw(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}
/**
 * Merge roamController settings when multiple dataZooms share one roamController.
 */function Tw(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=kw(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(A.createHashMap)());r.each((function(e){
// `coordSysRecordMap` always exists (because it holds the `roam controller`, which should
// better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.
e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=Dv(e);Object(A.each)(n.infoList,(function(n){var i=n.model.uid,a=r.get(i)||r.set(i,function(e,t){
// These init props will never change after record created.
var n={model:t,containsPoint:Object(A.curry)(Mw,t),dispatchAction:Object(A.curry)(Bw,e),dataZoomInfoMap:null,controller:null},r=n.controller=new $i(e.getZr());
// Must not do anything depends on coordSysRecord outside the event handler here,
// because coordSysRecord not completed yet.
return Object(A.each)(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){
// Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove,
// moveOnMouseWheel, ...) enabled.
if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(t,n.model));
// Notice these props might be changed each time for a single dataZoomModel.
(a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(A.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),
// (1) Merge dataZoom settings for each coord sys and set to the roam controller.
// (2) Clear coord sys if not refered by any dataZoom.
r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];null!=a&&(t=i.get(a))}if(t){var o=function(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;
// DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated
// as string, it is probably revert to reserved word by compress tool. See #7411.
return e.each((function(e){var a=e.model,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");r[n+o]>r[n+t]&&(t=o),
// Prevent default move event by default. If one false, do not prevent. Otherwise
// users may be confused why it does not work when multiple insideZooms exist.
i=i&&a.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{
// RoamController will enable all of these functionalities,
// and the final behavior is determined by its event listener
// provided by each inside zoom.
zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),Jt.b(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else Sw(r,e)}))}))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/InsideZoomView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Ow=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(Re.a)(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(
// Hence the `throttle` util ensures to preserve command order,
// here simply updating range all the time will not cause missing
// any of the the roam change.
this.range=t.getPercentRange(),
// Reset controllers.
function(e,t,n){kw(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}(r,t,{pan:Object(A.bind)(Dw.pan,this),zoom:Object(A.bind)(Dw.zoom,this),scrollMove:Object(A.bind)(Dw.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=kw(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||Sw(n,o))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(zv),Dw={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Lw[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;
// Restrict range.
var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return gu(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:Pw((function(e,t,n,r,i,a){var o=Lw[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:Pw((function(e,t,n,r,i,a){return Lw[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta}))};function Pw(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s)return gu(e(o,s,t,n,r,i),o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}var Lw={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(
// axis.dim === 'y'
o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],
// ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);
// ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);
o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(
// 'angleAxis'
o.pixel=t[1]-e[1],
// ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);
// ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);
o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(
// 'vertical'
s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},Qw=Ow;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Rw(e){$v(e),e.registerComponentModel(Ew),e.registerComponentView(Qw),Tw(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var jw=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(Yt.d)(Rv.defaultOption,{show:!0,
// deault value can only be drived in view stage.
right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",
// dataBackgroundColor: '#ddd',
dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},
// Color of selected window.
fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
// Percent of the slider height
handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Rv),Nw=jw,Fw=bt.a,zw="horizontal",Hw="vertical",Uw=["line","bar","candlestick","scatter"],Gw={easing:"cubicOut",duration:100,delay:0},Vw=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){this.api=t,
// A unique handler for each dataZoom component
this._onBrush=Object(A.bind)(this._onBrush,this),this._onBrushEnd=Object(A.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Jt.b(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();
// Notice: this._resetInterval() should not be executed when payload.type
// is 'dataZoom', origin this._range should be maintained, otherwise 'pan'
// or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,
i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Jt.a(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new ze.a;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===zw?{
// Why using 'right', because right should be used in vertical,
// and it is better to be consistent for dealing with position param merge.
right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},o=In.f(e.option);
// Replace the placeholder value.
Object(A.each)(["right","top","width","height"],(function(e){"ph"===o[e]&&(o[e]=a[e])}));var s=In.g(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Hw&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;
// Transform barGroup.
a.attr(n!==zw||i?n===zw&&i?{scaleY:o?1:-1,scaleX:-1}:n!==Hw||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});
// Position barGroup
var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new Fw({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));
// Click panel, over shadow, below handles.
var i=new Fw({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(A.bind)(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,c=this._shadowPolylinePts;
// Not re-render if data doesn't change.
if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=.3*(l[1]-l[0]);
// Nice extent.
l=[l[0]-u,l[1]+u];var h,f=[0,t[1]],d=[0,t[0]],p=[[t[0],0],[0,0]],g=[],m=d[1]/(i.count()-1),v=0,y=Math.round(i.count()/t[0]);i.each([o],(function(e,t){if(y>0&&t%y)v+=m;else{
// FIXME
// Should consider axis.min/axis.max when drawing dataShadow.
// FIXME
// 应该使用统一的空判断？还是在list里进行空判断？
var n=null==e||isNaN(e)||""===e,r=n?0:Object(xt.m)(e,l,f,!0);
// See #4235.
// Attempt to draw data shadow precisely when there are empty value.
n&&!h&&t?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(p.push([v,0]),g.push([v,0])),p.push([v,r]),g.push([v,r]),v+=m,h=n}})),s=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];
// let dataBackgroundModel = dataZoomModel.getModel('dataBackground');
for(var A=this.dataZoomModel,b=0;b<3;b++){var w=x(1===b);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function x(e){var t=A.getModel(e?"selectedDataBackground":"dataBackground"),n=new ze.a,r=new Ci.a({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Dn.a({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){
// Find a representative series.
var n,r=this.ecModel;return e.eachTargetAxis((function(i,a){var o=e.getAxisProxy(i,a).getTargetSeriesModels();Object(A.each)(o,(function(e){if(!(n||!0!==t&&Object(A.indexOf)(Uw,e.get("type"))<0)){var o,s=r.getComponent(Tv(i),a).axis,c={x:"y",y:"x",radius:"angle",angle:"radius"}[i],l=e.coordinateSystem;null!=c&&l.getOtherAxis&&(o=l.getOtherAxis(s).inverse),c=e.getData().mapDimension(c),n={thisAxis:s,series:e,thisDim:i,otherDim:c,otherAxisInverse:o}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get("borderRadius")||0,l=o.get("brushSelect"),u=t.filler=new Fw({silent:l,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(u),
// Frame border.
i.add(new Fw({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{
// deprecated option
stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),
// Left and right handle to resize
Object(A.each)([0,1],(function(t){var a=o.get("handleIcon");!Fe.d[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(
// Compatitable with the old icon parsers. Which can use a path string without path://
a="path://"+a);var s=Object(Fe.a)(a,-1,0,2,2,null,!0);s.attr({cursor:Ww(this._orient),draggable:!0,drift:Object(A.bind)(this._onDragMove,this,t),ondragend:Object(A.bind)(this._onDragEnd,this),onmouseover:Object(A.bind)(this._showDataInfo,this,!0),onmouseout:Object(A.bind)(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get("handleSize");this._handleHeight=Object(xt.q)(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(qe.o)(s);var u=o.get("handleColor");// deprecated option
// Compatitable with previous version
null!=u&&(s.style.fill=u),i.add(n[t]=s);var h=o.getModel("textStyle"),f=(o.get("handleLabel")||{}).show||!1;e.add(r[t]=new K.a({silent:!0,invisible:!f,style:Object(Je.c)(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);
// Handle to move. Only visible when brushSelect is set true.
var h=u;if(l){var f=Object(xt.q)(o.get("moveHandleSize"),a[1]),d=t.moveHandle=new bt.a({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),p=.8*f,g=t.moveHandleIcon=Object(Fe.a)(o.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=a[1]+f/2-.5,d.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(a[1]/2,Math.max(f,10));(h=t.moveZone=new bt.a({invisible:!0,shape:{y:a[1]-m,height:f+m}})).on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),i.add(d),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:Ww(this._orient),drift:Object(A.bind)(this._onDragMove,this,"all"),ondragstart:Object(A.bind)(this._showDataInfo,this,!0),ondragend:Object(A.bind)(this._onDragEnd,this),onmouseover:Object(A.bind)(this._showDataInfo,this,!0),onmouseout:Object(A.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(xt.m)(e[0],[0,100],t,!0),Object(xt.m)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];gu(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?Object(xt.m)(a.minSpan,o,i,!0):null,null!=a.maxSpan?Object(xt.m)(a.maxSpan,o,i,!0):null);var s=this._range,c=this._range=Object(xt.c)([Object(xt.m)(r[0],i,o,!0),Object(xt.m)(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Object(xt.c)(n.slice()),i=this._size;Object(A.each)([0,1],(function(e){
// Handles
var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,
// This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.
// NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.
x:n[e]+(e?-1:1),y:i[1]/2-a/2})}),this),
// Filler
t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};
// Move handle
t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),
// Force update path on the invisible object
t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));
// update clip path of shadow.
for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new bt.a,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];
// FIXME
// date型，支持formatter，autoformatter（ec2 date.getAutoFormatter）
if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Object(xt.c)(this._handleEnds.slice());function h(e){
// Label
// Text should not transform by barGroup.
// Ignore handlers transform
var t=Ve.getTransform(n.handles[e].parent,this.group),o=Ve.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+5,c=Ve.applyTransform([u[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===zw?"middle":o,align:i===zw?o:"center",text:a[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return Object(A.isFunction)(r)?r(e,a):Object(A.isString)(r)?r.replace("{value}",a):a},
/**
   * @param isEmphasis true: show, false: hide
   */
t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),
// Highlight move handle
i.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,
// For mobile device, prevent screen slider on the button.
Hi.g(r.event);
// Transform dx, dy to bar coordination.
var i=this._displayables.sliderGroup.getLocalTransform(),a=Ve.applyTransform([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),
// Avoid dispatch dataZoom repeatly but range not changed,
// which cause bad visual effect when progressive enabled.
o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Pn.a(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;
// console.log(brushEndTime - this._brushStartTime);
if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Object(xt.c)([Object(xt.m)(n.x,r,i,!0),Object(xt.m)(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(
// For mobile device, prevent screen slider on the button.
Hi.g(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new Fw({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},
/**
   * This action will be throttled.
   */
t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Gw:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){
// Find the grid corresponding to the first axis referred by dataZoom.
var e,t=Dv(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(zv);
/* harmony default export */function Ww(e){return"vertical"===e?"ns-resize":"ew-resize"}
/* harmony default export */var qw=Vw;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Yw(e){e.registerComponentModel(Nw),e.registerComponentView(qw),$v(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/dataZoom/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/visualDefault.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @file Visual mapping.
 */
var Kw={
/**
   * @public
   */
get:function(e,t,n){var r=A.clone(($w[e]||{})[t]);return n&&A.isArray(r)?r[r.length-1]:r}},$w={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Jw=Kw,Xw=oc.mapVisual,Zw=oc.eachVisual,ex=A.isArray,tx=A.each,nx=xt.c,rx=xt.m,ix=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},
/**
     * [lowerBound, upperBound]
     */
n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(Re.a)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},
/**
   * @protected
   */
t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&_A(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},
/**
   * @protected
   */
t.prototype.resetVisual=function(e){var t=this.stateList;e=A.bind(e,this),this.controllerVisuals=CA(this.option.controller,t,e),this.targetVisuals=CA(this.option.target,t,e)},
/**
   * @public
   */
t.prototype.getItemSymbol=function(){return null},
/**
   * @protected
   * @return {Array.<number>} An array of series indices.
   */
t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=lt.r(e),t},
/**
   * @public
   */
t.prototype.eachTargetSeries=function(e,t){A.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},
/**
   * @pubilc
   */
t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},
/**
   * @example
   * this.formatValueText(someVal); // format single numeric value to text.
   * this.formatValueText(someVal, true); // format single category value to text.
   * this.formatValueText([min, max]); // format numeric min-max to text.
   * this.formatValueText([this.dataBound[0], max]); // using data lower bound.
   * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.
   *
   * @param value Real value, or this.dataBound[0 or 1].
   * @param isCategory Only available when value is number.
   * @param edgeSymbols Open-close symbol when value is interval.
   * @protected
   */
t.prototype.formatValueText=function(e,t,n){var r,i=this.option,a=i.precision,o=this.dataBound,s=i.formatter;n=n||["<",">"],A.isArray(e)&&(e=e.slice(),r=!0);var c=t?e:r?[l(e[0]),l(e[1])]:l(e);return A.isString(s)?s.replace("{value}",r?c[0]:c).replace("{value2}",r?c[1]:c):A.isFunction(s)?r?s(e[0],e[1]):s(e):r?e[0]===o[0]?n[0]+" "+c[1]:e[1]===o[1]?n[1]+" "+c[0]:c[0]+" - "+c[1]:c;function l(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(a,20))}},
/**
   * @protected
   */
t.prototype.resetExtent=function(){var e=this.option,t=nx([e.min,e.max]);
// Can not calculate data extent by data here.
// Because series and data may be modified in processing stage.
// So we do not support the feature "auto min/max".
this._dataExtent=t},
/**
   * PENDING:
   * delete this method if no outer usage.
   *
   * Return  Concrete dimension. If null/undefined is returned, no dimension is used.
   */
// getDataDimension(data: SeriesData) {
//     const optDim = this.option.dimension;
//     if (optDim != null) {
//         return data.getDimension(optDim);
//     }
//     const dimNames = data.dimensions;
//     for (let i = dimNames.length - 1; i >= 0; i--) {
//         const dimName = dimNames[i];
//         const dimInfo = data.getDimensionInfo(dimName);
//         if (!dimInfo.isCalculationCoord) {
//             return dimName;
//         }
//     }
// }
t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});A.merge(r,n),// Do not override
A.merge(i,n);// Do not override
var a=this.isCategory();function o(n){
// Compatible with ec2 dataRange.color.
// The mapping order of dataRange.color is: [high value, ..., low value]
// whereas inRange.color and outOfRange.color is [low value, ..., high value]
// Notice: ec2 has no inverse.
ex(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),
// Compatible with previous logic, always give a default color, otherwise
// simple config with no inRange and outOfRange will not work.
// Originally we use visualMap.color as the default color, but setOption at
// the second time the default color will be erased. So we change to use
// constant DEFAULT_COLOR.
// If user do not want the default color, set inRange: {color: null}.
n.inRange=n.inRange||{color:e.get("gradientColor")}}o.call(this,r),o.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},tx(r,(function(e,t){if(oc.isValidType(t)){var n=Jw.get(t,"inactive",a);null!=n&&(i[t]=n,
// Compatibable with ec2:
// Only inactive color to rgba(0,0,0,0) can not
// make label transparent, so use opacity also.
"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),
// completeInactive.call(this, target, 'outOfRange', 'inRange');
function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";tx(this.stateList,(function(o){var s=this.itemSize,c=e[o];
// Set inactive color for controller if no other color
// attr (like colorAlpha) specified.
c||(c=e[o]={color:a?r:[r]}),
// Consistent symbol and symbolSize if not specified.
null==c.symbol&&(c.symbol=t&&A.clone(t)||(a?i:[i])),null==c.symbolSize&&(c.symbolSize=n&&A.clone(n)||(a?s[0]:[s[0],s[0]])),
// Filter none
c.symbol=Xw(c.symbol,(function(e){return"none"===e?i:e}));
// Normalize symbolSize
var l=c.symbolSize;if(null!=l){var u=-1/0;
// symbolSize can be object when categories defined.
Zw(l,(function(e){e>u&&(u=e)})),c.symbolSize=Xw(l,(function(e){return rx(e,[0,u],[0,s[0]],!0)}))}}),this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},
/**
   * @public
   * @abstract
   */
t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},
/**
   * @public
   * @abstract
   */
t.prototype.getValueState=function(e){return null},
/**
   * FIXME
   * Do not publish to thirt-part-dev temporarily
   * util the interface is stable. (Should it return
   * a function but not visual meta?)
   *
   * @pubilc
   * @abstract
   * @param getColorVisual
   *        params: value, valueState
   *        return: color
   * @return {Object} visualMeta
   *        should includes {stops, outerColors}
   *        outerColor means [colorBeyondMinValue, colorBeyondMaxValue]
   */
t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,
// zlevel: 0,
z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,
// 接受数组分别设定上右下左边距，同css
textGap:10,precision:0,textStyle:{color:"#333"}},t}(cr.a),ax=ix,ox=[20,140],sx=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}
/**
   * @override
   */return Object(Re.a)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},
/**
   * @protected
   * @override
   */
t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=ox[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=ox[1])},
/**
   * @private
   */
t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(
// `range` should always be array (so we don't use other
// value like 'auto') for user-friend. (consider getOption).
e.auto=1,this.option.range=e):A.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},
/**
   * @protected
   * @override
   */
t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),A.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},
/**
   * @override
   */
t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},
/**
   * @public
   */
t.prototype.getSelected=function(){var e=this.getExtent(),t=xt.c((this.get("range")||[]).slice());
// Clamp
return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},
/**
   * @override
   */
t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();
// When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.
// range[1] is processed likewise.
return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},
/**
   * @implement
   */
t.prototype.getVisualMeta=function(e){var t=cx(this,"outOfRange",this.getExtent()),n=cx(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}
// Format to: outOfRange -- inRange -- outOfRange.
for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)
// If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.
t[o]<n[a]&&i(t[o],"outOfRange");for(var l=1;a<s;a++,l=0)
// If range is full, value beyond min, max will be clamped.
// make a singularity
l&&r.length&&i(n[a],"outOfRange"),i(n[a],"inRange");for(l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(
// make a singularity
l&&(r.length&&i(r[r.length-1].value,"outOfRange"),l=0),i(t[o],"outOfRange"));var u=r.length;return{stops:r,outerColors:[u?r[0].color:"transparent",u?r[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(Yt.d)(ax.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(ax);function cx(e,t,n){if(n[0]===n[1])return n.slice();
// When using colorHue mapping, it is not linear color any more.
// Moreover, canvas gradient seems not to be accurate linear.
// FIXME
// Should be arbitrary value 100? or based on pixel size?
for(var r=(n[1]-n[0])/200,i=n[0],a=[],o=0;o<=200&&i<n[1];o++)a.push(i),i+=r;return a.push(n[1]),a}
/* harmony default export */var lx=sx,ux=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(Re.a)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},
/**
   * @protected
   */
t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},
/**
   * @protected
   */
t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=kt.i(t.get("padding")||0),r=e.getBoundingRect();e.add(new bt.a({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},
/**
   * @protected
   * @param targetValue can be Infinity or -Infinity
   * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'
   * @param opts
   * @param opts.forceState Specify state, instead of using getValueState method.
   * @param opts.convertOpacityToAlpha For color gradient in controller widget.
   * @return {*} Visual value.
   */
t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,a={};
// Default values.
if("color"===t){var o=i.get("contentColor");a.color=o}function s(e){return a[e]}function c(e,t){a[e]=t}var l=i.controllerVisuals[r||i.getValueState(e)],u=oc.prepareVisualTypes(l);return A.each(u,(function(r){var i=l[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=l.__alphaForOpacity),oc.dependsOn(r,t)&&i&&i.applyVisual(e,s,c)})),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;In.i(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(sr.a),hx=ux,fx=[["left","right","width"],["top","bottom","height"]];
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/VisualMapView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @param visualMapModel
 * @param api
 * @param itemSize always [short, long]
 * @return {string} 'left' or 'right' or 'top' or 'bottom'
 */
function dx(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;
// Auto decision align.
for(var a={width:t.getWidth(),height:t.getHeight()},o="horizontal"===r.orient?1:0,s=fx[o],c=[0,null,10],l={},u=0;u<3;u++)l[fx[1-o][u]]=c[u],l[s[u]]=2===u?n[0]:r[s[u]];var h=[["x","width",3],["y","height",0]][o],f=Object(In.g)(l,a,r.padding);return s[(f.margin[h[2]]||0)+f[h[0]]+.5*f[h[1]]<.5*a[h[1]]?0:1]}
/**
 * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and
 * dataIndexInside means filtered index.
 */
// TODO: TYPE more specified payload types.
function px(e,t){return A.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/ContinuousView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var gx=xt.m,mx=A.each,vx=Math.min,yx=Math.max,Ax=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(Re.a)(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=A.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=A.bind(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),
// Do this for background size calculation.
this._updateView(!0),
// After updating view, inner shapes is built completely,
// and then background can be rendered.
this.renderBackground(t),
// Real update view
this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){
// Compatible with ec2, text[0] map to high value, text[1] map low value.
var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,a=i.get("textGap"),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),l=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new K.a({style:Object(Je.c)(h,{x:c[0],y:c[1],verticalAlign:"horizontal"===u?"middle":l,align:"horizontal"===u?l:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=dx(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new ze.a;s.add(c),
// Bar
c.add(n.outOfRange=bx()),c.add(n.inRange=bx(null,a?xx(this._orient):null,A.bind(this._dragHandle,this,"all",!1),A.bind(this._dragHandle,this,"all",!0))),
// A border radius clip.
c.setClipPath(new bt.a({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect("国"),u=yx(l.width,l.height);
// Handle
a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=A.bind(this._dragHandle,this,n,!1),s=A.bind(this._dragHandle,this,n,!0),c=Object(l.g)(e.get("handleSize"),r[0]),u=Object(Fe.a)(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=xx(this._orient);u.attr({cursor:h,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Hi.g(e.event)}}),u.x=r[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(qe.F)(u,!0),t.add(u);
// Text is always horizontal layout but should not be effected by
// transform (orient/inverse). So label is built separately but not
// use zrender/graphic/helper/RectText, and is located based on view
// group (according to handleLabelPoint) but not barGroup.
var f=this.visualMapModel.textStyleModel,d=new K.a({cursor:h,draggable:!0,drift:o,onmousemove:function(e){
// For mobile device, prevent screen slider on the button.
Hi.g(e.event)},ondragend:s,style:Object(Je.c)(f,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],g=this._shapes;g.handleThumbs[n]=u,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,r,i){var a=Object(l.g)(e.get("indicatorSize"),n[0]),o=Object(Fe.a)(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(o instanceof c.a){var u=o.style;o.useStyle(A.extend({
// TODO other properties like x, y ?
image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else o.useStyle(s);t.add(o);var h=this.visualMapModel.textStyleModel,f=new K.a({silent:!0,invisible:!0,style:Object(Je.c)(h,{x:0,y:0,text:""})});this.group.add(f);var d=[("horizontal"===i?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=o,p.indicatorLabel=f,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,
// dx is event from ondragend if isEnd is true. It's not used
n,r){if(this._useHandle){if(this._dragging=!t,!t){
// Transform dx, dy to bar coordination.
var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),
// Considering realtime, update view should be executed
// before dispatch action.
this._updateView()}
// dragEnd do not dispatch action when realtime.
t===!this.visualMapModel.get("realtime")&&
// jshint ignore:line
this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():wx(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[gx(t[0],n,r,!0),gx(t[1],n,r,!0)]},
/**
   * @private
   * @param {(number|string)} handleIndex 0 or 1 or 'all'
   * @param {number} dx
   * @param {number} dy
   */
t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];gu(t,r,i,e,
// cross is forbidden
0);var a=n.getExtent();
// Update data interval.
this._dataInterval=[gx(r[0],i,a,!0),gx(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,o);return{barColor:new ct.a(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){
// Considering colorHue, which is not linear, so we have to sample
// to calculate gradient color stops, but not only calculate head
// and tail.
var n=[],r=(e[1]-e[0])/100;// Arbitrary value.
n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var a=e[0]+r*i;if(a>e[1])break;n.push({color:this.getControllerVisual(a,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new ze.a("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform("left",n.mainGroup);mx([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var h=gx(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(h,"symbolSize");u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;
// Update handle label position.
var d=Ve.applyTransform(n.handleLabelPoints[l],Ve.getTransform(u,this.group));if("horizontal"===this._orient){
// If visualMap controls symbol size, an additional offset needs to be added to labels to avoid collision at minimum size.
// Offset reaches value of 0 at "maximum" position, so maximum position is not altered at all.
var p="left"===c||"top"===c?(o[0]-f)/2:(o[0]-f)/-2;d[1]+=p}a[l].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr("invisible",!1);var u=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),f=gx(e,a,s,!0),d=o[0]-h/2,p={x:l.x,y:l.y};
// Update handle label position.
l.y=f,l.x=d;var g=Ve.applyTransform(c.indicatorLabelPoint,Ve.getTransform(l,this.group)),m=c.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",c.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:y?v:"middle",align:y?"center":v});var A={x:d,y:f,style:{fill:u}},b={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};l.x=p.x,l.y=p.y,l.animateTo(A,w),m.animateTo(b,w)}else l.attr(A),m.attr(b);this._firstShowIndicator=!1;var x=this._shapes.handleLabels;if(x)for(var C=0;C<x.length;C++)
// Fade out handle labels.
// NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.
this.api.enterBlur(x[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);
// For hover link show when hover handle, which might be
// below or upper than sizeExtent.
r[1]=vx(yx(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){
// When mouse is out of handle, hoverLink still need
// to be displayed when realtime is set as false.
e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();
// For hover link show when hover handle, which might be below or upper than sizeExtent.
e=vx(yx(i[0],e),i[1]);var o=function(e,t,n){var r=6,i=e.get("hoverLinkDataSize");i&&(r=gx(i,t,n,!0)/2);return r}(n,a,i),s=[e-o,e+o],c=gx(e,i,a,!0),l=[gx(s[0],i,a,!0),gx(s[1],i,a,!0)];
// Consider data range is out of visualMap range, see test/visualMap-continuous.html,
// where china and india has very large population.
s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),
// Do not show indicator when mouse is over handle,
// otherwise labels overlap, especially when dragging.
t&&(l[0]===-1/0?this._showIndicator(c,l[1],"< ",o):l[1]===1/0?this._showIndicator(c,l[0],"> ",o):this._showIndicator(c,c,"≈ ",o));
// When realtime is set as false, handles, which are in barGroup,
// also trigger hoverLink, which help user to realize where they
// focus on when dragging. (see test/heatmap-large.html)
// When realtime is set as true, highlight will not show when hover
// handle, because the label on handle, which displays a exact value
// but not range, might mislead users.
var u=this._hoverLinkDataIndices,h=[];(t||wx(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=lt.d(u,h);this._dispatchHighDown("downplay",px(f[0],n)),this._dispatchHighDown("highlight",px(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Object(So.a)(e.target,(function(e){var n=Object(We.a)(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)
// Fade out handle labels.
// NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.
this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",px(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Ve.getTransform(t,r?null:this.group);return A.isArray(e)?Ve.applyTransform(e,i,n):Ve.transformDirection(e,i,n)},
// TODO: TYPE more specified payload types.
t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},
/**
   * @override
   */
t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(hx);function bx(e,t,n,r){return new Ci.a({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){
// For mobile device, prevent screen slider on the button.
Hi.g(e.event)},ondragend:r})}function wx(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function xx(e){return"vertical"===e?"ns-resize":"ew-resize"}
/* harmony default export */var Cx=Ax,_x={type:"selectDataRange",event:"dataRangeSelected",
// FIXME use updateView appears wrong
update:"update"},Ix=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},Ex=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r,i,a,o,s,c=e.pipelineContext;!t.isTargetSeries(e)||c&&c.large||n.push((r=t.stateList,i=t.targetVisuals,a=A.bind(t.getValueState,t),o=t.getDataDimensionIndex(e.getData()),s={},A.each(r,(function(e){var t=oc.prepareVisualTypes(i[e]);s[e]=t})),{progress:function(e,t){var n,r;function c(e){return Object(bA.a)(t,r,e)}function l(e,n){Object(bA.c)(t,r,e,n)}null!=o&&(n=t.getDimensionIndex(o));for(var u=t.getStore();null!=(r=e.next());){var h=t.getRawDataItem(r);
// Consider performance
// @ts-ignore
if(!h||!1!==h.visualMap)for(var f=null!=o?u.get(n,r):r,d=a(f),p=i[d],g=s[d],m=0,v=g.length;m<v;m++){var y=g[m];p[y]&&p[y].applyVisual(f,c,l)}}}}))})),n}},
// Only support color.
{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(A.bind(kx,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(
// visualMeta.dimension should be dimension index, but not concrete dimension.
i.dimension=a,r.push(i))}})),
// console.log(JSON.stringify(visualMetaList.map(a => a.stops)));
e.getData().setVisual("visualMeta",r)}}];
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/visualMapAction.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// FIXME
// performance and export for heatmap?
// value can be Infinity or -Infinity
function kx(e,t,n,r){for(var i=t.targetVisuals[r],a=oc.prepareVisualTypes(i),o={color:Object(bA.b)(e.getData(),"color")},s=0,c=a.length;s<c;s++){var l=a[s],u=i["opacity"===l?"__alphaForOpacity":l];u&&u.applyVisual(n,h,f)}return o.color;function h(e){return o[e]}function f(e,t){o[e]=t}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/preprocessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// @ts-nocheck
var Sx=A.each;function Bx(e){var t=e&&e.visualMap;A.isArray(t)||(t=t?[t]:[]),Sx(t,(function(e){if(e){
// rename splitList to pieces
Mx(e,"splitList")&&!Mx(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&A.isArray(t)&&Sx(t,(function(e){A.isObject(e)&&(Mx(e,"start")&&!Mx(e,"min")&&(e.min=e.start),Mx(e,"end")&&!Mx(e,"max")&&(e.max=e.end))}))}}))}function Mx(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/installCommon.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Tx=!1;function Ox(e){Tx||(Tx=!0,e.registerSubTypeDefaulter("visualMap",(function(e){
// Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.
return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(_x,Ix),Object(A.each)(Ex,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(Bx))}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Dx(e){e.registerComponentModel(lx),e.registerComponentView(Cx),Ox(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/PiecewiseModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Px=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,
/**
     * The order is always [low, ..., high].
     * [{text: string, interval: Array.<number>}, ...]
     */
n._pieceList=[],n}return Object(Re.a)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],Lx[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=A.clone(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=A.map(this._pieceList,(function(e){return e=A.clone(e),"inRange"!==t&&(
// FIXME
// outOfRange do not support special visual in pieces.
e.visual=null),e})))}))},
/**
   * @protected
   * @override
   */
t.prototype.completeVisualOption=function(){
// Consider this case:
// visualMap: {
//      pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]
// }
// where no inRange/outOfRange set but only pieces. So we should make
// default inRange/outOfRange for this case, otherwise visuals that only
// appear in `pieces` will not be taken into account in visual encoding.
var t=this.option,n={},r=oc.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}A.each(t.pieces,(function(e){A.each(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),A.each(n,(function(e,n){var r=!1;A.each(this.stateList,(function(e){r=r||a(t,e,n)||a(t.target,e,n)}),this),!r&&A.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Jw.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,
// Consider 'not specified' means true.
A.each(r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){
// Ensure there is only one selected.
var a=!1;A.each(r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)}),this)}
// thisOption.selectedMode === 'multiple', default: all selected.
},
/**
   * @public
   */
t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},
/**
   * @public
   */
t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},
/**
   * @public
   */
t.prototype.getPieceList=function(){return this._pieceList},
/**
   * @return {string}
   */
t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},
/**
   * @override
   */
t.prototype.setSelected=function(e){this.option.selected=A.clone(e)},
/**
   * @override
   */
t.prototype.getValueState=function(e){var t=oc.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},
/**
   * @public
   * @param pieceIndex piece index in visualMapModel.getPieceList()
   */
t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),(function(t,r){oc.findPieceIndex(t,n)===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},
/**
   * @private
   * @param piece piece.value or piece.interval is required.
   * @return  Can be Infinity or -Infinity
   */
t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){
// Do not support category. (category axis is ordinal, numerical)
if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),(a=i[i.length-1].interval[1])!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return A.each(i,(function(e){var t=e.interval;t&&(
// Fulfill gap.
t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function s(i,a){var o=r.getRepresentValue({interval:i});// Not category
a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}
// Suplement
},t.type="visualMap.piecewise",t.defaultOption=Object(Yt.d)(ax.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(ax),Lx={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;
// Precision auto-adaption
for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Object(xt.u)(e),A.each(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;A.each(t.categories,(function(t){
// FIXME category模式也使用pieceList，但在visualMapping中不是使用pieceList。
// 是否改一致。
e.push({text:this.formatValueText(t,!0),value:t})}),this),
// See "Order Rule".
Qx(t,e)},pieces:function(e){var t=this.option;A.each(t.pieces,(function(t,n){A.isObject(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(
// `min` `max` is legacy option.
// `lt` `gt` `lte` `gte` is recommended.
var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var h=[["gte","gt","min"],["lte","lt","max"]][u],f=0;f<3&&null==a[u];f++)a[u]=t[h[f]],o[u]=s[f],l[u]=2===f;null==a[u]&&(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(
// Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],
// we use value to lift the priority when min === max
r.value=a[0])}r.visual=oc.retrieveVisuals(t),e.push(r)}),this),
// See "Order Rule".
Qx(t,e),
// Only pieces
Object(xt.u)(e),A.each(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function Qx(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}
/* harmony default export */var Rx=Px,jx=/** @class */function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Re.a)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),s=t.itemSize,c=this._getViewData(),l=c.endsText,u=A.retrieve(t.get("showLabel",!0),!l),h=!t.get("selectedMode");l&&this._renderEndsText(e,l[0],s,u,o),A.each(c.viewPieceList,(function(r){var c=r.piece,l=new ze.a;l.onclick=A.bind(this._onItemClick,this,c),this._enableHoverLink(l,r.indexInModelPieceList);
// TODO Category
var f=t.getRepresentValue(c);if(this._createItemSymbol(l,f,[0,0,s[0],s[1]],h),u){var d=this.visualMapModel.getValueState(f);l.add(new K.a({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:c.text,verticalAlign:"middle",align:o,font:i,fill:a,opacity:"outOfRange"===d?.5:1},silent:h}))}e.add(l)}),this),l&&this._renderEndsText(e,l[1],s,u,o),In.b(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;
// TODO: TYPE More detailed action types
r.option.hoverLink&&n.api.dispatchAction({type:e,batch:px(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return dx(e,this.api,e.itemSize);
// horizontal, most case left unless specifying right.
var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new ze.a,o=this.visualMapModel.textStyleModel;a.add(new K.a({style:Object(Je.c)(o,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(a)}},
/**
   * @private
   * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.
   */
t.prototype._getViewData=function(){var e=this.visualMapModel,t=A.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");
// Order of model pieceList is always [low, ..., high]
return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Object(Fe.a)(
// symbol will be string
this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],
// color will be string
this.getControllerVisual(t,"color"));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=A.clone(n.selected),a=t.getSelectedMapKey(e);"single"===r||!0===r?(i[a]=!0,A.each(i,(function(e,t){i[t]=t===a}))):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(hx),Nx=jx;
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/PiecewiseView.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function Fx(e){e.registerComponentModel(Rx),e.registerComponentView(Nx),Ox(e)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/visualMap/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// CONCATENATED MODULE: ./node_modules/echarts/lib/visual/aria.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var zx={label:{enabled:!0},decal:{show:!1}},Hx=Object(lt.o)(),Ux={};function Gx(e,t){var n=e.getModel("aria");
// See "area enabled" detection code in `GlobalModel.ts`.
if(n.get("enabled")){var r=A.clone(zx);A.merge(r.label,e.getLocaleModel().get("aria"),!1),A.merge(n.option,r,!1),function(){if(n.getModel("decal").get("show")){
// Each type of series use one scope.
// Pie and funnel are using different scopes.
var t=A.createHashMap();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),Hx(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(A.isFunction(t.enableAriaDecal))
// Let series define how to use decal palette on data
t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Object(ws.b)(t.ecModel,t.name,Ux,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",l(i,r))}else{var a=t.getRawData(),o={},s=Hx(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var c=a.count();a.each((function(e){var r=o[e],i=a.getName(e)||e+"",u=Object(ws.b)(t.ecModel,i,s,c),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",l(h,u))}))}}function l(e,t){
// Merge decal from palette to decal from itemStyle.
// User do not need to specify all of the decal props.
var n=e?A.extend(A.extend({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var r=t.getZr().dom;
// TODO: support for SSR
if(!r)return;var a=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=A.defaults(o.option,a),!o.get("enabled"))return;if(r.setAttribute("role","img"),o.get("description"))return void r.setAttribute("aria-label",o.get("description"));var s,c=e.getSeriesCount(),l=o.get(["data","maxCount"])||10,u=o.get(["series","maxCount"])||10,h=Math.min(c,u);if(c<1)
// No series, no aria label
return;var f=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();s=f?i(o.get(["general","withTitle"]),{title:f}):o.get(["general","withoutTitle"]);var d=[];s+=i(c>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:c}),e.eachSeries((function(t,n){if(n<h){var r=void 0,a=t.get("name")?"withName":"withoutName";r=i(r=c>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(w=t.subType,x=e.getLocaleModel().get(["series","typeNames"]),x[w]||x.chart)});var s=t.getData();if(s.count()>l)r+=i(o.get(["data","partialData"]),{displayCnt:l});else r+=o.get(["data","allData"]);for(var u=o.get(["data","separator","middle"]),f=o.get(["data","separator","end"]),p=o.get(["data","excludeDimensionId"]),g=[],m=0;m<s.count();m++)if(m<l){var v=s.getName(m),y=p?A.filter(s.getValues(m),(function(e,t){return-1===A.indexOf(p,t)})):s.getValues(m),b=o.get(["data",v?"withName":"withoutName"]);g.push(i(b,{name:v,value:y.join(u)}))}r+=g.join(u)+f,d.push(r)}var w,x}));var p=o.getModel(["series","multiple","separator"]),g=p.get("middle"),m=p.get("end");s+=d.join(g)+m,r.setAttribute("aria-label",s)}()}function i(e,t){if(!A.isString(e))return e;var n=e;return A.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/aria/preprocessor.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function Vx(e){if(e&&e.aria){var t=e.aria;
// aria.show is deprecated and should use aria.enabled instead
null!=t.show&&(t.enabled=t.show),t.label=t.label||{},
// move description, general, series, data to be under aria.label
A.each(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/aria/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var Wx={value:"eq",
// PENDING: not good for literal semantic?
"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qx=/** @class */function(){function e(e){if(null==(this._condVal=Object(A.isString)(e)?new RegExp(e):Object(A.isRegExp)(e)?e:null)){0,Object(Gs.c)("")}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(A.isString)(t)?this._condVal.test(e):!!Object(A.isNumber)(t)&&this._condVal.test(e+"")},e}(),Yx=/** @class */function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Kx=/** @class */function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),$x=/** @class */function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),Jx=/** @class */function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Xx=/** @class */function(){function e(){}return e.prototype.evaluate=function(){
// Relational cond follow "and" logic internally.
for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0
// Call getValue with no `this`.
;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0},e}();
// type RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean;
function Zx(e,t){if(!0===e||!1===e){var n=new Yx;return n.value=e,n}return tC(e)||Object(Gs.c)(""),e.and?eC("and",e,t):e.or?eC("or",e,t):e.not?function(e,t){var n=e.not,r="";0;tC(n)||Object(Gs.c)(r);var i=new Jx;i.child=Zx(n,t),i.child||Object(Gs.c)(r);return i}(e,t):function(e,t){for(var n="",r=t.prepareGetValue(e),i=[],a=Object(A.keys)(e),o=e.parser,s=o?Object(Ab.c)(o):null,c=0;c<a.length;c++){var l=a[c];if("parser"!==l&&!t.valueGetterAttrMap.get(l)){var u=Object(A.hasOwn)(Wx,l)?Wx[l]:l,h=e[l],f=s?s(h):h,d=Object(Ab.b)(u,f)||"reg"===u&&new qx(f);d||Object(Gs.c)(n),i.push(d)}}i.length||
// No relational operator always disabled in case of dangers result.
Object(Gs.c)(n);var p=new Xx;return p.valueGetterParam=r,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}(e,t)}function eC(e,t,n){var r=t[e];Object(A.isArray)(r)||Object(Gs.c)(""),r.length||Object(Gs.c)("");var i="and"===e?new Kx:new $x;return i.children=Object(A.map)(r,(function(e){return Zx(e,n)})),i.children.length||Object(Gs.c)(""),i}function tC(e){return Object(A.isObject)(e)&&!Object(A.isArrayLike)(e)}var nC=/** @class */function(){function e(e,t){this._cond=Zx(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/transform/filterTransform.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var rC={type:"echarts:filter",
// PENDING: enhance to filter by index rather than create new data
transform:function(e){for(
// [Caveat] Fail-Fast:
// Do not return the whole dataset unless user config indicates it explicitly.
// For example, if no condition is specified by mistake, returning an empty result
// is better than returning the entire raw source for the user to find the mistake.
var t,n,r,i=e.upstream,a=(n=e.config,r={valueGetterAttrMap:Object(A.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;Object(A.hasOwn)(e,"dimension")||Object(Gs.c)("");var n=i.getDimensionInfo(t);return n||Object(Gs.c)(""),{dimIdx:n.index}},getValue:function(e){return i.retrieveValueFromItem(t,e.dimIdx)}},new nC(n,r)),o=[],s=0,c=i.count();s<c;s++)t=i.getRawDataItem(s),a.evaluate()&&o.push(t);return{data:o}}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/transform/sortTransform.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var iC={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=Object(lt.r)(n);i.length||Object(Gs.c)(r);var a=[];Object(A.each)(i,(function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;if(null==n&&Object(Gs.c)(r),"asc"!==i&&"desc"!==i&&Object(Gs.c)(r),s&&"min"!==s&&"max"!==s){0,Object(Gs.c)("")}if("asc"!==i&&"desc"!==i){0,Object(Gs.c)("")}var c=t.getDimensionInfo(n);c||Object(Gs.c)(r);var l=o?Object(Ab.c)(o):null;o&&!l&&Object(Gs.c)(r),a.push({dimIdx:c.index,parser:l,comparator:new Ab.a(i,s)})}));
// TODO: support it?
var o=t.sourceFormat;o!==lf.c&&o!==lf.e&&Object(Gs.c)(r);
// Other upstream format are all array.
for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort((function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(0!==c)return c}return 0})),{data:s}}};
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/transform/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// EXTERNAL MODULE: ./node_modules/echarts/lib/component/dataset/install.js
var aC=n("5e81"),oC=Q.a.CMD;
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/convertPath.js
function sC(e,t){return Math.abs(e-t)<1e-5}function cC(e){var t,n,r,i,a,o=e.data,s=e.len(),c=[],l=0,u=0,h=0,f=0;function d(e,n){t&&t.length>2&&c.push(t),t=[e,n]}function p(e,n,r,i){sC(e,r)&&sC(n,i)||t.push(e,n,r,i,r,i)}function g(e,n,r,i,a,o){var s=Math.abs(n-e),c=4*Math.tan(s/4)/3,l=n<e?-1:1,u=Math.cos(e),h=Math.sin(e),f=Math.cos(n),d=Math.sin(n),p=u*a+r,g=h*o+i,m=f*a+r,v=d*o+i,y=a*c*l,A=o*c*l;t.push(p-y*h,g+A*u,m+y*d,v-A*f,m,v)}for(var m=0;m<s;){var v=o[m++],y=1===m;switch(y&&(h=l=o[m],f=u=o[m+1],v!==oC.L&&v!==oC.C&&v!==oC.Q||(t=[h,f])),v){case oC.M:l=h=o[m++],u=f=o[m++],d(h,f);break;case oC.L:p(l,u,n=o[m++],r=o[m++]),l=n,u=r;break;case oC.C:t.push(o[m++],o[m++],o[m++],o[m++],l=o[m++],u=o[m++]);break;case oC.Q:n=o[m++],r=o[m++],i=o[m++],a=o[m++],t.push(l+2/3*(n-l),u+2/3*(r-u),i+2/3*(n-i),a+2/3*(r-a),i,a),l=i,u=a;break;case oC.A:var A=o[m++],b=o[m++],w=o[m++],x=o[m++],C=o[m++],_=o[m++]+C;m+=1;var I=!o[m++];n=Math.cos(C)*w+A,r=Math.sin(C)*x+b,y?d(h=n,f=r):p(l,u,n,r),l=Math.cos(_)*w+A,u=Math.sin(_)*x+b;for(var E=(I?-1:1)*Math.PI/2,k=C;I?k>_:k<_;k+=E){g(k,I?Math.max(k+E,_):Math.min(k+E,_),A,b,w,x)}break;case oC.R:h=l=o[m++],f=u=o[m++],n=h+o[m++],r=f+o[m++],d(n,f),p(n,f,n,r),p(n,r,h,r),p(h,r,h,f),p(h,f,n,f);break;case oC.Z:t&&p(l,u,h,f),l=h,u=f}}return t&&t.length>2&&c.push(t),c}function lC(e,t,n,r,i,a,o,s,c,l){if(sC(e,n)&&sC(t,r)&&sC(i,o)&&sC(a,s))c.push(o,s);else{var u=2/l,h=u*u,f=o-e,d=s-t,p=Math.sqrt(f*f+d*d);f/=p,d/=p;var g=n-e,m=r-t,v=i-o,y=a-s,A=g*g+m*m,b=v*v+y*y;if(A<h&&b<h)c.push(o,s);else{var w=f*g+d*m,x=-f*v-d*y;if(A-w*w<h&&w>=0&&b-x*x<h&&x>=0)c.push(o,s);else{var C=[],_=[];Object(ut.g)(e,n,i,o,.5,C),Object(ut.g)(t,r,a,s,.5,_),lC(C[0],_[0],C[1],_[1],C[2],_[2],C[3],_[3],c,l),lC(C[4],_[4],C[5],_[5],C[6],_[6],C[7],_[7],c,l)}}}}
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/dividePath.js
function uC(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(l=0;l<u;l++)c[l%o]+=1;return c}function hC(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),h=uC([c,l],u?0:1,t),f=(u?s:l)/h.length,d=0;d<h.length;d++)for(var p=(u?l:s)/h[d],g=0;g<h[d];g++){var m={};u?(m.startAngle=a+f*d,m.endAngle=a+f*(d+1),m.r0=r+p*g,m.r=r+p*(g+1)):(m.startAngle=a+p*g,m.endAngle=a+p*(g+1),m.r0=r+f*d,m.r=r+f*(d+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function fC(e,t,n,r){return e*r-n*t}function dC(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,h=s-a,f=fC(u,h,c,l);if(Math.abs(f)<1e-6)return null;var d=fC(e-i,t-a,u,h)/f;return d<0||d>1?null:new Pn.a(d*c+e,d*l+t)}function pC(e,t,n){var r=new Pn.a;Pn.a.sub(r,n,t),r.normalize();var i=new Pn.a;return Pn.a.sub(i,e,t),i.dot(r)}function gC(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function mC(e){var t=e.points,n=[],r=[];Object(Uo.d)(t,n,r);var i=new tr.a(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new Pn.a,u=new Pn.a;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),function(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=dC(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:pC(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort((function(e,t){return e.projPt-t.projPt}));var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var h=l;l=u,u=h}var f=[l.pt.x,l.pt.y],d=[u.pt.x,u.pt.y],p=[f],g=[d];for(a=l.idx+1;a<=u.idx;a++)gC(p,e[a].slice());for(gC(p,d),gC(p,f),a=u.idx+1;a<=l.idx+r;a++)gC(g,e[a%r].slice());return gC(g,f),gC(g,d),[{points:p},{points:g}]}(t,l,u)}function vC(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),a=e(t);vC(e,a[0],i,r),vC(e,a[1],n-i,r)}return r}function yC(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=uC([r,i],a?0:1,t),s=a?"width":"height",c=a?"height":"width",l=a?"x":"y",u=a?"y":"x",h=e[s]/o.length,f=0;f<o.length;f++)for(var d=e[c]/o[f],p=0;p<o[f];p++){var g={};g[l]=f*h,g[u]=p*d,g[s]=h,g[c]=d,g.x+=e.x,g.y+=e.y,n.push(g)}}(i,t,r),n=bt.a;break;case"sector":hC(i,t,r),n=wt.a;break;case"circle":hC({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=wt.a;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Object(A.map)(function(e,t){var n=cC(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],h=a[l++],f=a[l++],d=a[l++],p=a[l++],g=a[l++];lC(s,c,u,h,f,d,p,g,o,t),s=p,c=g}r.push(o)}return r}(e.getUpdatedPathProxy(),o),(function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)})),c=s.length;if(0===c)vC(mC,{points:s[0]},t,r);else if(c===t)for(var l=0;l<c;l++)r.push({points:s[l]});else{var u=0,h=Object(A.map)(s,(function(e){var t=[],n=[];Object(Uo.d)(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}}));h.sort((function(e,t){return t.area-e.area}));var f=t;for(l=0;l<c;l++){var d=h[l];if(f<=0)break;var p=l===c-1?f:Math.ceil(d.area/u*t);p<0||(vC(mC,{points:d.poly},p,r),f-=p)}}n=Ci.a}if(!n)return function(e,t){for(var n=[],r=0;r<t;r++)n.push(Object(ra.a)(e));return n}(e,t);var g,m,v=[];for(l=0;l<r.length;l++){var y=new n;y.setShape(r[l]),g=e,(m=y).setStyle(g.style),m.z=g.z,m.z2=g.z2,m.zlevel=g.zlevel,v.push(y)}return v}
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/morphPath.js
function AC(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,h=[o[0],o[1]],f=c,d=2;d<s;){var p=o[d-2],g=o[d-1],m=o[d++],v=o[d++],y=o[d++],A=o[d++],b=o[d++],w=o[d++];if(f<=0)h.push(m,v,y,A,b,w);else{for(var x=Math.min(f,u-1)+1,C=1;C<=x;C++){var _=C/x;Object(ut.g)(p,m,y,b,_,i),Object(ut.g)(g,v,A,w,_,a),p=i[3],g=a[3],h.push(i[1],a[1],i[2],a[2],p,g),m=i[5],v=a[5],y=i[6],A=a[6]}f-=x-1}}return o===e?[h,t]:[e,h]}function bC(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function wC(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],h=s*u-l*c;t+=h,n+=(s+l)*h,r+=(c+u)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function xC(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=6*l,h=0,f=0;f<s;f+=2){var d=0===f?u:(u+f-2)%c+2,p=e[d]-n[0],g=e[d+1]-n[1],m=t[f]-r[0]-p,v=t[f+1]-r[1]-g;h+=m*m+v*v}h<a&&(a=h,o=l)}return o}function CC(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function _C(e){return e.__isCombineMorphing}var IC="__mOriginal_";function EC(e,t,n){var r=IC+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=a?a.apply(this,t):i.apply(this,t),o&&o.apply(this,t),e}}function kC(e,t){var n=IC+t;e[n]&&(e[t]=e[n],e[n]=null)}function SC(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function BC(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=function(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,h=void 0;c?l?(r=u=(n=AC(c,l))[0],i=h=n[1]):(h=bC(i||c,c),u=c):(u=bC(r||l,l),h=l),a.push(u),o.push(h)}return[a,o]}(cC(n),cC(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();s&&SC(a,s),c&&SC(o,c),EC(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var l=function(e,t,n,r){for(var i,a=[],o=0;o<e.length;o++){var s=e[o],c=t[o],l=wC(s),u=wC(c);null==i&&(i=l[2]<0!=u[2]<0);var h=[],f=[],d=0,p=1/0,g=[],m=s.length;i&&(s=CC(s));for(var v=6*xC(s,c,l,u),y=m-2,A=0;A<y;A+=2){var b=(v+A)%y+2;h[A+2]=s[b]-l[0],h[A+3]=s[b+1]-l[1]}if(h[0]=s[v]-l[0],h[1]=s[v+1]-l[1],n>0)for(var w=r/n,x=-r/2;x<=r/2;x+=w){var C=Math.sin(x),_=Math.cos(x),I=0;for(A=0;A<s.length;A+=2){var E=h[A],k=h[A+1],S=c[A]-u[0],B=c[A+1]-u[1],M=S*_-B*C,T=S*C+B*_;g[A]=M,g[A+1]=T;var O=M-E,D=T-k;I+=O*O+D*D}if(I<p){p=I,d=x;for(var P=0;P<g.length;P++)f[P]=g[P]}}else for(var L=0;L<m;L+=2)f[L]=c[L]-u[0],f[L+1]=c[L+1]-u[1];a.push({from:h,to:f,fromCp:l,toCp:u,rotation:-d})}return a}(a,o,10,Math.PI),u=[];EC(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<l.length;a++){var o=l[a],s=o.from,c=o.to,h=o.rotation*n,f=o.fromCp,d=o.toCp,p=Math.sin(h),g=Math.cos(h);Object(_r.lerp)(i,f,d,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],A=v*r+(C=c[m])*n,b=y*r+(_=c[m+1])*n;u[m]=A*g-b*p+i[0],u[m+1]=A*p+b*g+i[1]}var w=u[0],x=u[1];e.moveTo(w,x);for(m=2;m<s.length;){var C=u[m++],_=u[m++],I=u[m++],E=u[m++],k=u[m++],S=u[m++];w===C&&x===_&&I===k&&E===S?e.lineTo(k,S):e.bezierCurveTo(C,_,I,E,k,S),w=k,x=S}}}})}function MC(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;return BC(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(A.defaults)({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){kC(t,"buildPath"),kC(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),r&&r()}},n)),t}function TC(e,t,n,r,i,a){e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var o,s=0,c=32768;c>0;c/=2){var l=0,u=0;(e&c)>0&&(l=1),(t&c)>0&&(u=1),s+=c*c*(3*l^u),0===u&&(1===l&&(e=c-1-e,t=c-1-t),o=e,e=t,t=o)}return s}function OC(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(A.map)(e,(function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}));return Object(A.map)(a,(function(a,o){return{cp:a,z:TC(a[0],a[1],t,n,r,i),path:e[o]}})).sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function DC(e){return yC(e.path,e.count)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/morphTransitionHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function PC(e){return Object(A.isArray)(e[0])}function LC(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}var s=0;
// If one has more paths than each one of many. average them.
for(i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1){
// Not enough
// Start from the first one.
if(!s)return n;s=0}a=c.length;var l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var QC={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0
// Fitting the alpha
;r<e.count;r++){var i=Object(ra.a)(e.path);i.setStyle("opacity",n),t.push(i)}return t},
// Use the default divider
split:null};function RC(e,t,n,r,i,a){if(e.length&&t.length){var o=Object(Ge.a)("update",r,i);if(o&&o.duration>0){var c,l,u=r.getModel("universalTransition").get("delay"),h=Object.assign({
// Need to setToFinal so the further calculation based on the style can be correct.
// Like emphasis color.
setToFinal:!0},o);PC(e)&&(
// manyToOne
c=e,l=t),PC(t)&&(
// oneToMany
c=t,l=e);for(var f=c?c===e:e.length>t.length,d=c?LC(l,c):LC(f?t:e,[f?e:t]),p=0,g=0;g<d.length;g++)p+=d[g].many.length;var m=0;for(g=0;g<d.length;g++)v(d[g],f,m,p),m+=d[g].many.length}}function v(e,t,r,i,o){var c=e.many,l=e.one;if(1!==c.length||o)for(var f=Object(A.defaults)({dividePath:QC[n],individualDelay:u&&function(e,t,n,a){return u(e+r,i)}},h),d=t?function(e,t,n){var r=[];!function e(t){for(var n=0;n<t.length;n++){var i=t[n];_C(i)?e(i.childrenRef()):i instanceof s.b&&r.push(i)}}(e);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var a=(n.dividePath||DC)({path:t,count:i});if(a.length!==i)return{fromIndividuals:[],toIndividuals:[],count:0};r=OC(r),a=OC(a);for(var o=n.done,c=n.during,l=n.individualDelay,u=new L.c,h=0;h<i;h++){var f=r[h],d=a[h];d.parent=t,d.copyTransform(u),l||BC(f,d)}function p(e){for(var t=0;t<a.length;t++)a[t].addSelfToZr(e)}function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,kC(t,"addSelfToZr"),kC(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return a},EC(t,"addSelfToZr",{after:function(e){p(e)}}),EC(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<a.length;t++)a[t].removeSelfFromZr(e)}});var m=a.length;if(l){var v=m,y=function(){0==--v&&(g(),o&&o())};for(h=0;h<m;h++){var b=l?Object(A.defaults)({delay:(n.delay||0)+l(h,m,r[h],a[h]),done:y},n):n;MC(r[h],a[h],b)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(A.defaults)({during:function(e){for(var n=0;n<m;n++){var r=a[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){g();for(var t=0;t<e.length;t++)kC(e[t],"updateTransform");o&&o()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:a,count:m}}(c,l,f):function(e,t,n){var r=t.length,i=[],a=n.dividePath||DC;if(_C(e)){!function e(t){for(var n=0;n<t.length;n++){var r=t[n];_C(r)?e(r.childrenRef()):r instanceof s.b&&i.push(r)}}(e.childrenRef());var o=i.length;if(o<r)for(var c=0,l=o;l<r;l++)i.push(Object(ra.a)(i[c++%o]));i.length=r}else{i=a({path:e,count:r});var u=e.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return{fromIndividuals:[],toIndividuals:[],count:0}}i=OC(i),t=OC(t);var h=n.individualDelay;for(l=0;l<r;l++){var f=h?Object(A.defaults)({delay:(n.delay||0)+h(l,r,i[l],t[l])},n):n;MC(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}(l,c,f),p=d.fromIndividuals,g=d.toIndividuals,m=p.length,y=0;y<m;y++){b=u?Object(A.defaults)({delay:u(y,m)},h):h;a(p[y],g[y],t?c[y]:e.one,t?e.one:c[y],b)}else{
// Is one to one
var b,w=t?c[0]:l,x=t?l:c[0];if(_C(w))
// Keep doing combine animation.
v({many:[w],one:x},!0,r,i,!0);else MC(w,x,b=u?Object(A.defaults)({delay:u(r,i)},h):h),a(w,x,w,x,b)}}}function jC(e){if(!e)return[];if(Object(A.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(jC(e[n]));return t}var r=[];return e.traverse((function(e){e instanceof s.b&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)})),r}
// CONCATENATED MODULE: ./node_modules/echarts/lib/animation/universalTransition.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Universal transitions that can animate between any shapes(series) and any properties in any amounts.
var NC=Object(lt.o)();function FC(e,t,n,r){
// try to get groupId from encode
var i=function(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&0===i.otherDims[t])return n[r]}}
// get value by dimension. (only get value of itemGroupId or childGroupId, so convert it to string)
(e,r?"itemChildGroupId":"itemGroupId");if(i){var a=function(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+""}}(e,t,i);return a}
// try to get groupId from raw data item
var o=e.getRawDataItem(t),s=r?"childGroupId":"groupId";return o&&o[s]?o[s]+"":
// fallback
r?void 0:n||e.getId(t)}
// flatten all data items from different serieses into one arrary
function zC(e){var t=[];return Object(A.each)(e,(function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>1e4))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:FC(n,a,r,!1),childGroupId:FC(n,a,r,!0),divide:e.divide,dataIndex:a})})),t}function HC(e,t,n){e.traverse((function(e){e instanceof s.b&&
// TODO use fade in animation for target element.
Object(Ge.c)(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function UC(e){if(e.parent){
// Bake parent transform to element.
// So it can still have proper transform to transition after it's removed.
var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function GC(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function VC(e,t,n){var r=zC(e),i=zC(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Object(A.extend)(Object(A.extend)({},n.style),e.style):e.style},i)}var o=!1,c=0,l=Object(A.createHashMap)(),u=Object(A.createHashMap)();
/**
   * With groupId and childGroupId, we can build parent-child relationships between dataItems.
   * However, we should mind the parent-child "direction" between old and new options.
   *
   * For example, suppose we have two dataItems from two series.data:
   *
   * dataA: [                          dataB: [
   *   {                                 {
   *     value: 5,                         value: 3,
   *     groupId: 'creatures',             groupId: 'animals',
   *     childGroupId: 'animals'           childGroupId: 'dogs'
   *   },                                },
   *   ...                               ...
   * ]                                 ]
   *
   * where dataA is belong to optionA and dataB is belong to optionB.
   *
   * When we `setOption(optionB)` from optionA, we choose childGroupId of dataItemA and groupId of
   * dataItemB as keys so the two keys are matched (both are 'animals'), then universalTransition
   * will work. This derection is "parent -> child".
   *
   * If we `setOption(optionA)` from optionB, we also choose groupId of dataItemB and childGroupId
   * of dataItemA as keys and universalTransition will work. This derection is "child -> parent".
   *
   * If there is no childGroupId specified, which means no multiLevelDrillDown/Up is needed and no
   * parent-child relationship exists. This direction is "none".
   *
   * So we need to know whether to use groupId or childGroupId as the key when we call the keyGetter
   * functions. Thus, we need to decide the direction first.
   *
   * The rule is:
   *
   * if (all childGroupIds in oldDiffItems and all groupIds in newDiffItems have common value) {
   *   direction = 'parent -> child';
   * } else if (all groupIds in oldDiffItems and all childGroupIds in newDiffItems have common value) {
   *   direction = 'child -> parent';
   * } else {
   *   direction = 'none';
   * }
   */r.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)}));
// traverse newDiffItems and decide the direction according to the rule
for(var h=0;h<i.length;h++){var f=i[h].groupId;if(u.get(f)){c=1;break}var d=i[h].childGroupId;if(d&&l.get(d)){c=2;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;
// TODO if specified dim
return t?r.getId(i):e?1===c?n.childGroupId:n.groupId:2===c?n.childGroupId:n.groupId}}
// Use id if it's very likely to be an one to one animation
// It's more robust than groupId
// TODO Check if key dimension is specified.
var g=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}(r,i),m={};if(!g)
// We may have different diff strategy with basicTransition if we use other dimension as key.
// If so, we can't simply check if oldEl is same with newEl. We need a map to check if oldEl is still being used in the new chart.
// We can't use the elements that already being morphed. Let it keep it's original basic transition.
for(h=0;h<i.length;h++){var v=i[h],y=v.data.getItemGraphicEl(v.dataIndex);y&&(m[y.id]=!0)}function b(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);
// Can't handle same elements.
l!==u?
// We can't use the elements that already being morphed
l&&m[l.id]||u&&(
// TODO: If keep animating the group in case
// some of the elements don't want to be morphed.
// TODO Label?
GC(u),l?(GC(l),
// If old element is doing leaving animation. stop it and remove it immediately.
UC(l),o=!0,RC(jC(l),jC(u),s.divide,c,e,a)):HC(u,c,e)):u&&function(e,t,n){var r=Object(Ge.a)("update",n,t);r&&e.traverse((function(e){if(e instanceof Va.c){var t=Object(Ge.b)(e);t&&e.animateFrom({style:t},r)}}))}(u,s.dataIndex,c)}new Es.a(r,i,p(!0,g),p(!1,g),null,"multiple").update(b).updateManyToOne((function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=Object(A.filter)(Object(A.map)(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==l&&!m[e.id]}));l&&(GC(l),u.length?(
// If old element is doing leaving animation. stop it and remove it immediately.
Object(A.each)(u,(function(e){GC(e),UC(e)})),o=!0,RC(jC(u),jC(l),n.divide,c,e,a)):HC(l,c,n.dataIndex));
// else keep oldEl leaving animation.
})).updateOneToMany((function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);
// We can't use the elements that already being morphed
if(!s||!m[s.id]){var c=Object(A.filter)(Object(A.map)(e,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==s})),l=i[e[0]].data.hostModel;c.length&&(Object(A.each)(c,(function(e){return GC(e)})),s?(GC(s),
// If old element is doing leaving animation. stop it and remove it immediately.
UC(s),o=!0,RC(jC(s),jC(c),n.divide,
// Use divide on old.
l,e[0],a)):Object(A.each)(c,(function(t){return HC(t,l,e[0])})));
// else keep oldEl leaving animation.
}})).updateManyToMany((function(e,t){
// If two data are same and both have groupId.
// Normally they should be diff by id.
new Es.a(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return i[e].data.getId(i[e].dataIndex)})).update((function(n,r){
// Use the original index
b(e[n],t[r])})).execute()})).execute(),o&&Object(A.each)(t,(function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Object(Ge.a)("update",t,0);// use 0 index.
r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(e){e instanceof s.b&&!e.animators.length&&
// We can't accept there still exists element that has no animation
// if universalTransition is enabled
e.animateFrom({style:{opacity:0}},i)}))}))}function WC(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function qC(e){return Object(A.isArray)(e)?e.sort().join(","):e}function YC(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function KC(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}
// EXTERNAL MODULE: ./node_modules/echarts/lib/label/installLabelLayout.js + 1 modules
var $C=n("ee29");
// CONCATENATED MODULE: ./node_modules/echarts/index.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// ----------------------------------------------
// All of the modules that are allowed to be
// imported are listed below.

// Users MUST NOT import other modules that are
// not included in this list.
// ----------------------------------------------
// -----------------
// Render engines
// -----------------
// Render via Canvas.
// echarts.init(dom, null, { renderer: 'canvas' })
Object(r.a)([a.a]),
// Render via SVG.
// echarts.init(dom, null, { renderer: 'svg' })
Object(r.a)([function(e){e.registerPainter("svg",Qe)}]),
// ----------------
// Charts (series)
// ----------------
// All of the series types, for example:
// chart.setOption({
//     series: [{
//         type: 'line' // or 'bar', 'pie', ...
//     }]
// });
Object(r.a)([function(e){e.registerChartView(Nt),e.registerSeriesModel(Ue),e.registerLayout(zt("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();
// Visual coding for legend
n&&!n.stroke&&(
// Fill in visual should be palette color if
// has color callback
n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),
// Down sample after filter
e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gt("line"))},function(e){e.registerChartView(Cn),e.registerSeriesModel($t),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,A.curry(Vt.c,"bar")),
// Do layout after other overall layout, which can prepare some information.
e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Vt.a)("bar")),
// Down sample after filter
e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gt("bar")),
/**
   * @payload
   * @property {string} [componentType=series]
   * @property {number} [dx]
   * @property {number} [dy]
   * @property {number} [zoom]
   * @property {number} [originX]
   * @property {number} [originY]
   */
e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/pie/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(Gn),e.registerSeriesModel(Xn),Object(_n.a)("pie",e.registerAction),e.registerLayout(Object(A.curry)(Mn,"pie")),e.registerProcessor(On("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf((function(e){
// handle negative value condition
var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(A.isNumber)(r)&&!isNaN(r)&&r<0)}))}})},function(e){
// In case developer forget to include grid component
Object(r.a)(yi),e.registerSeriesModel(er),e.registerChartView(or),e.registerLayout(zt("scatter"))},function(e){Object(r.a)(Fi),e.registerChartView(Ii),e.registerSeriesModel(Si),e.registerLayout(Ai),e.registerProcessor(On("radar")),e.registerPreprocessor(xi)},function(e){Object(r.a)(Oo),e.registerChartView(so),e.registerSeriesModel(lo),e.registerLayout(ho),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,uo),Object(_n.a)("map",e.registerAction)},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/tree/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(Zo),e.registerSeriesModel(ms),e.registerLayout(ys),e.registerVisual(As),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",
// Here we set 'none' instead of 'update', because roam action
// just need to update the transform matrix without having to recalculate
// the layout. So don't need to go through the whole update process, such
// as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.
update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=ko(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}(e)},function(e){e.registerSeriesModel(Is),e.registerChartView(Us),e.registerVisual(cc),e.registerLayout(wc),function(e){for(var t=0;t<bs.length;t++)e.registerAction({type:bs[t],update:"updateView"},A.noop);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var r=hs(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=ds(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))}))}(e)},function(e){e.registerChartView(Cl),e.registerSeriesModel(Pl),e.registerProcessor(kc),e.registerVisual(Sc),e.registerVisual(Mc),e.registerLayout(Fc),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Yc),e.registerLayout($c),e.registerCoordinateSystem("graphView",{dimensions:go.dimensions,create:Jc}),
// Register legacy focus actions
e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},A.noop),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},A.noop),
// Register roam action.
e.registerAction(Ll,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=ko(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/gauge/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(Fl),e.registerSeriesModel(Hl)},function(e){e.registerChartView(Wl),e.registerSeriesModel(Yl),e.registerLayout(Kl),e.registerProcessor(On("funnel"))},function(e){Object(r.a)(Sh),e.registerChartView(tu),e.registerSeriesModel(iu),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ou)},function(e){e.registerChartView(Dh),e.registerSeriesModel(Lh),e.registerLayout(Qh),e.registerVisual(Yh),e.registerAction({type:"dragNode",event:"dragnode",
// here can only use 'update' now, other value is not support in echarts.
update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/boxplot/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerSeriesModel(Xh),e.registerChartView(of),e.registerLayout(cf),e.registerTransform(uf)},function(e){e.registerChartView(Tf),e.registerSeriesModel(Df),e.registerPreprocessor(Pf),e.registerVisual(yf),e.registerLayout(Qf)},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/effectScatter/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(Ff),e.registerSeriesModel(Hf),e.registerLayout(zt("effectScatter"))},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/lines/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(ed),e.registerSeriesModel(ad),e.registerLayout(Xf),e.registerVisual(sd)},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/heatmap/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(fd),e.registerSeriesModel(pd)},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/bar/installPictorialBar.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(Qd),e.registerSeriesModel(jd),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(A.curry)(Vt.c,"pictorialBar")),
// Do layout after other overall layout, which can prepare some information.
e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Vt.a)("pictorialBar"))},function(e){e.registerChartView(Fd),e.registerSeriesModel(Hd),e.registerLayout(Ud),e.registerProcessor(On("themeRiver"))},function(e){e.registerChartView($d),e.registerSeriesModel(Zd),e.registerLayout(Object(A.curry)(tp,"sunburst")),e.registerProcessor(Object(A.curry)(On,"sunburst")),e.registerVisual(rp),function(e){e.registerAction({type:qd,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var r=hs(e,[qd],t);if(r){var i=t.getViewRoot();i&&(e.direction=ds(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))})),e.registerAction({type:Yd,update:"none"},(function(e,t,n){
// Clone
e=Object(A.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=hs(e,[Yd],t);n&&(e.dataIndex=n.node.dataIndex)})),
// Fast forward action
n.dispatchAction(Object(A.extend)(e,{type:"highlight"}))})),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t,n){e=Object(A.extend)({},e),n.dispatchAction(Object(A.extend)(e,{type:"downplay"}))}))}(e)},
// CONCATENATED MODULE: ./node_modules/echarts/lib/chart/custom/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function(e){e.registerChartView(Jp),e.registerSeriesModel(cp)}]),
// -------------------
// Coordinate systems
// -------------------
// All of the axis modules have been included in the
// coordinate system module below, do not need to
// make extra import.
// `cartesian` coordinate system. For some historical
// reasons, it is named as grid, for example:
// chart.setOption({
//     grid: {...},
//     xAxis: {...},
//     yAxis: {...},
//     series: [{...}]
// });
Object(r.a)((function(e){Object(r.a)(yi),Object(r.a)(rm)})),
// `polar` coordinate system, for example:
// chart.setOption({
//     polar: {...},
//     radiusAxis: {...},
//     angleAxis: {...},
//     series: [{
//         coordinateSystem: 'polar'
//     }]
// });
Object(r.a)((function(e){Object(r.a)(rm),oi.registerAxisPointerClass("PolarAxisPointer",om),e.registerCoordinateSystem("polar",xm),e.registerComponentModel(cm),e.registerComponentView(Fm),
// Model and view for angleAxis and radiusAxis
Ar(e,"angle",um,jm),Ar(e,"radius",hm,Nm),e.registerComponentView(Bm),e.registerComponentView(Pm),e.registerLayout(Object(A.curry)(Rm,"bar"))})),
// `geo` coordinate system, for example:
// chart.setOption({
//     geo: {...},
//     series: [{
//         coordinateSystem: 'geo'
//     }]
// });
Object(r.a)(Oo),
// `singleAxis` coordinate system (notice, it is a coordinate system
// with only one axis, work for chart like theme river), for example:
// chart.setOption({
//     singleAxis: {...}
//     series: [{type: 'themeRiver', ...}]
// });
Object(r.a)((function(e){Object(r.a)(rm),oi.registerAxisPointerClass("SingleAxisPointer",ov),e.registerComponentView(sv),
// Axis
e.registerComponentView(Wm),e.registerComponentModel(Ym),Ar(e,"single",Ym,Ym.defaultOption),e.registerCoordinateSystem("single",Zm)})),
// `parallel` coordinate system, only work for parallel series, for example:
// chart.setOption({
//     parallel: {...},
//     parallelAxis: [{...}, ...],
//     series: [{
//         type: 'parallel'
//     }]
// });
Object(r.a)(Sh),
// `calendar` coordinate system. for example,
// chart.setOption({
//     calendar: {...},
//     series: [{
//         coordinateSystem: 'calendar'
//     }]
// );
Object(r.a)((function(e){e.registerComponentModel(uv),e.registerComponentView(dv),e.registerCoordinateSystem("calendar",mv)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/graphic/GraphicModel.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/)),
// ------------------
// Other components
// ------------------
// `graphic` component, for example:
// chart.setOption({
//     graphic: {...}
// });
Object(r.a)((function(e){e.registerComponentModel(wv),e.registerComponentView(_v),e.registerPreprocessor((function(e){var t=e.graphic;
// Convert
// {graphic: [{left: 10, type: 'circle'}, ...]}
// or
// {graphic: {left: 10, type: 'circle'}}
// to
// {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}
Object(A.isArray)(t)?t[0]&&t[0].elements?
// Only one graphic instance can be instantiated. (We don't
// want that too many views are created in echarts._viewMap.)
e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))})),
// `toolbox` component, for example:
// chart.setOption({
//     toolbox: {...}
// });
Object(r.a)((function(e){e.registerComponentModel(ry),e.registerComponentView(oy),ey("saveAsImage",cy),ey("magicType",dy),ey("dataView",wy),ey("dataZoom",Wy),ey("restore",Ey),Object(r.a)(Jv)})),
// `tooltip` component, for example:
// chart.setOption({
//     tooltip: {...}
// });
Object(r.a)((function(e){Object(r.a)(rm),e.registerComponentModel(Yy),e.registerComponentView(vA),
/**
   * @action
   * @property {string} type
   * @property {number} seriesIndex
   * @property {number} dataIndex
   * @property {number} [x]
   * @property {number} [y]
   */
e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},A.noop),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},A.noop)})),
// `axisPointer` component, for example:
// chart.setOption({
//     tooltip: {axisPointer: {...}, ...}
// });
// Or
// chart.setOption({
//     axisPointer: {...}
// });
Object(r.a)(rm),
// `brush` component, for example:
// chart.setOption({
//     brush: {...}
// });
// Or
// chart.setOption({
//     tooltip: {feature: {brush: {...}}
// })
Object(r.a)((
// CONCATENATED MODULE: ./node_modules/echarts/lib/component/brush/install.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO
function(e){e.registerComponentView(NA),e.registerComponentModel(HA),e.registerPreprocessor(AA),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,DA),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),
/**
   * payload: {
   *      brushComponents: [
   *          {
   *              brushId,
   *              brushIndex,
   *              brushName,
   *              series: [
   *                  {
   *                      seriesId,
   *                      seriesIndex,
   *                      seriesName,
   *                      rawIndices: [21, 34, ...]
   *                  },
   *                  ...
   *              ]
   *          },
   *          ...
   *      ]
   * }
   */
e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},A.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},A.noop),ey("brush",VA)})),
// `title` component, for example:
// chart.setOption({
//     title: {...}
// });
Object(r.a)((function(e){e.registerComponentModel(WA),e.registerComponentView(qA)})),
// `timeline` component, for example:
// chart.setOption({
//     timeline: {...}
// });
Object(r.a)((function(e){e.registerComponentModel(JA),e.registerComponentView(cb),e.registerSubTypeDefaulter("timeline",(function(){
// Only slider now.
return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),
// The timeline has played to the end, trigger event
n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),
// Set normalized currentIndex to payload.
t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(A.defaults)({currentIndex:r.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(lb)})),
// `markPoint` component, for example:
// chart.setOption({
//     series: [{markPoint: {...}}]
// });
Object(r.a)((function(e){e.registerComponentModel(yb),e.registerComponentView(Db),e.registerPreprocessor((function(e){fb(e.series,"markPoint")&&(
// Make sure markPoint component is enabled
e.markPoint=e.markPoint||{})}))})),
// `markLine` component, for example:
// chart.setOption({
//     series: [{markLine: {...}}]
// });
Object(r.a)((function(e){e.registerComponentModel(Lb),e.registerComponentView(Ub),e.registerPreprocessor((function(e){fb(e.series,"markLine")&&(
// Make sure markLine component is enabled
e.markLine=e.markLine||{})}))})),
// `markArea` component, for example:
// chart.setOption({
//     series: [{markArea: {...}}]
// });
Object(r.a)((function(e){e.registerComponentModel(Vb),e.registerComponentView(ew),e.registerPreprocessor((function(e){fb(e.series,"markArea")&&(
// Make sure markArea component is enabled
e.markArea=e.markArea||{})}))})),
// `legend` component not scrollable. for example:
// chart.setOption({
//     legend: {...}
// });
Object(r.a)((function(e){Object(r.a)(gw),Object(r.a)(_w)})),
// `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.
Object(r.a)((function(e){Object(r.a)(Rw),Object(r.a)(Yw)})),
// `dataZoom` component providing drag, pinch, wheel behaviors
// inside coordinate system, for example:
// chart.setOption({
//     dataZoom: {type: 'inside'}
// });
Object(r.a)(Rw),
// `dataZoom` component providing a slider bar, for example:
// chart.setOption({
//     dataZoom: {type: 'slider'}
// });
Object(r.a)(Yw),
// `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.
Object(r.a)((function(e){Object(r.a)(Dx),Object(r.a)(Fx)})),
// `visualMap` component providing continuous bar, for example:
// chart.setOption({
//     visualMap: {type: 'continuous'}
// });
Object(r.a)(Dx),
// `visualMap` component providing pieces bar, for example:
// chart.setOption({
//     visualMap: {type: 'piecewise'}
// });
Object(r.a)(Fx),
// `aria` component providing aria, for example:
// chart.setOption({
//     aria: {...}
// });
Object(r.a)((function(e){e.registerPreprocessor(Vx),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Gx)}
// CONCATENATED MODULE: ./node_modules/echarts/lib/util/conditionalExpression.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/)),
// dataset transform
// chart.setOption({
//     dataset: {
//          transform: []
//     }
// });
Object(r.a)((function(e){e.registerTransform(rC),e.registerTransform(iC)})),Object(r.a)(aC.a),
// universal transition
// chart.setOption({
//     series: {
//         universalTransition: { enabled: true }
//     }
// })
Object(r.a)((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(A.each)(Object(lt.r)(n.seriesTransition),(function(e){Object(A.each)(Object(lt.r)(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][Ne.a]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){
// TODO api provide an namespace that can save stuff per instance
var r=NC(t);
// TODO multiple to multiple series.
if(r.oldSeries&&n.updatedSeries&&n.optionChanged){
// TODO transitionOpt was used in an old implementation and can be removed now
// Use give transition config if its' give;
var i=n.seriesTransition;if(i)Object(A.each)(Object(lt.r)(i),(function(e){!function(e,t,n,r){var i=[],a=[];Object(A.each)(Object(lt.r)(e.from),(function(e){var n=KC(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],
// TODO can specify divideShape in transition.
divide:YC(t.oldData[n]),groupIdDim:e.dimension})})),Object(A.each)(Object(lt.r)(e.to),(function(e){var r=KC(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:YC(i),groupIdDim:e.dimension})}})),i.length>0&&a.length>0&&VC(i,a,r)}(e,r,n,t)}));else{
// Else guess from series based on transition series key.
var a=function(e,t){var n=Object(A.createHashMap)(),r=Object(A.createHashMap)(),i=Object(A.createHashMap)();return Object(A.each)(e.oldSeries,(function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=WC(t),c=qC(s);r.set(c,{dataGroupId:a,data:o}),Object(A.isArray)(s)&&
// Same key can't in different array seriesKey.
Object(A.each)(s,(function(e){i.set(e,{key:c,dataGroupId:a,data:o})}))})),Object(A.each)(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),o=WC(e),s=qC(o),c=r.get(s);
// string transition key is the best match.
if(c)
// TODO check if data is same?
n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:YC(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:YC(a),data:a}]});else
// Transition from multiple series.
// e.g. 'female', 'male' -> ['female', 'male']
if(Object(A.isArray)(o)){var l=[];Object(A.each)(o,(function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:YC(t.data),data:t.data})})),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:YC(a)}]})}else{
// Try transition to multiple series.
// e.g. ['female', 'male'] -> 'female', 'male'
var u=i.get(o);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:YC(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:t,data:a,divide:YC(a)})}}}})),n}(r,n);Object(A.each)(a.keys(),(function(e){var n=a.get(e);VC(n.oldSeries,n.newSeries,t)}))}
// Reset
Object(A.each)(n.updatedSeries,(function(e){
// Reset;
e[Ne.a]&&(e[Ne.a]=!1)}))}
// Save all series of current update. Not only the updated one.
for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var h=o[u].getData();
// Only save the data that can have transition.
// Avoid large data costing too much extra memory
h.count()<1e4&&(s.push(o[u]),c.push(o[u].get("dataGroupId")),l.push(h))}}))})),
// label layout
// chart.setOption({
//     series: {
//         labelLayout: { hideOverlap: true }
//     }
// })
Object(r.a)($C.a)},
/***/3157:
/***/function(e,t,n){
// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
var r=n("8d87"),i=n("f083"),a=n("d77f");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(a(e),t)}})},
/***/3168:
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
n("7bb0")("Map");
/***/},
/***/"320c":
/***/function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/* eslint-disable no-unused-vars */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;
// Detect buggy property enumeration order in older V8 versions.
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
var e=new String("abc");// eslint-disable-line no-new-wrappers
if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){
// We don't expect any of the above to throw, but better to be safe.
return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(s[l]=n[l]);if(r){o=r(n);for(var u=0;u<o.length;u++)a.call(n,o[u])&&(s[o[u]]=n[o[u]])}}return s}},
/***/"323e":
/***/function(e,t,n){var r,i;
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
 * @license MIT */r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};
/**
   * Helpers
   */
function i(e,t,n){return e<t?t:e>n?n:e}
/**
   * (Internal) converts a percentage (`0..1`) to a bar translateX
   * percentage (`-100%..0%`).
   */function a(e){return 100*(-1+e)}
/**
   * (Internal) returns the correct CSS for changing the bar's
   * position given an n percentage, and speed and ease from Settings
   */function o(e,t,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+a(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+a(e)+"%,0)"}:{"margin-left":a(e)+"%"}).transition="all "+t+"ms "+n,i}
/**
   * (Internal) Queues a function to be executed.
   */
/**
   * Updates configuration.
   *
   *     NProgress.configure({
   *       minimum: 0.1
   *     });
   */
n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},
/**
   * Last number.
   */
n.status=null,
/**
   * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.
   *
   *     NProgress.set(0.4);
   *     NProgress.set(1.0);
   */
n.set=function(e){var t=n.isStarted();e=i(e,r.minimum,1),n.status=1===e?null:e;var a=n.render(!t),l=a.querySelector(r.barSelector),u=r.speed,h=r.easing;return a.offsetWidth,/* Repaint */
s((function(t){
// Set positionUsing if it hasn't already been set
""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),
// Add transition
c(l,o(e,u,h)),1===e?(
// Fade out
c(a,{transition:"none",opacity:1}),a.offsetWidth,/* Repaint */
setTimeout((function(){c(a,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},
/**
   * Shows the progress bar.
   * This is the same as setting the status to 0%, except that it doesn't go backwards.
   *
   *     NProgress.start();
   *
   */
n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},
/**
   * Hides the progress bar.
   * This is the *sort of* the same as setting the status to 100%, with the
   * difference being `done()` makes some placebo effect of some realistic motion.
   *
   *     NProgress.done();
   *
   * If `true` is passed, it will show the progress bar even if its hidden.
   *
   *     NProgress.done(true);
   */
n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},
/**
   * Increments by a random amount.
   */
n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},
/**
   * Waits for all supplied jQuery promises and
   * increases the progress as the promises resolve.
   *
   * @param $promise jQUery Promise
   */
e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},
/**
   * (Internal) renders the progress bar markup based on the `template`
   * setting.
   */
n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var i,o=t.querySelector(r.barSelector),s=e?"-100":a(n.status||0),l=document.querySelector(r.parent);return c(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(i=t.querySelector(r.spinnerSelector))&&d(i),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},
/**
   * Removes the element. Opposite of render().
   */
n.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},
/**
   * Checks if the progress bar is rendered.
   */
n.isRendered=function(){return!!document.getElementById("nprogress")},
/**
   * Determine which positioning CSS rule to use.
   */
n.getPositioningCSS=function(){
// Sniff on document.body.style
var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";
// Sniff prefixes
return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),c=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+a)in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,i[1],i[2])}}();
/**
   * (Internal) Applies css properties to an element, similar to the jQuery 
   * css method.
   *
   * While this helper does assist with vendor prefixed property names, it 
   * does not perform any manipulation of values prior to setting styles.
   */
/**
   * (Internal) Determines if an element or space separated list of class names contains a class name.
   */
function l(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}
/**
   * (Internal) Adds a class to an element.
   */function u(e,t){var n=f(e),r=n+t;l(n,t)||(
// Trim the opening space.
e.className=r.substring(1))}
/**
   * (Internal) Removes a class from an element.
   */function h(e,t){var n,r=f(e);l(e,t)&&(
// Replace the class name.
n=r.replace(" "+t+" "," "),
// Trim the opening and closing spaces.
e.className=n.substring(1,n.length-1))}
/**
   * (Internal) Gets a space separated list of the class names on the element. 
   * The list is wrapped with a single space on each end to facilitate finding 
   * matches within the list.
   */function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}
/**
   * (Internal) Removes an element from the DOM.
   */function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(i="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=i)},
/***/"327d":
/***/function(e,t,n){var r=n("50c6")((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));
/**
 * Creates an array of elements split into two groups, the first of which
 * contains elements `predicate` returns truthy for, the second of which
 * contains elements `predicate` returns falsey for. The predicate is
 * invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the array of grouped elements.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36, 'active': false },
 *   { 'user': 'fred',    'age': 40, 'active': true },
 *   { 'user': 'pebbles', 'age': 1,  'active': false }
 * ];
 *
 * _.partition(users, function(o) { return o.active; });
 * // => objects for [['fred'], ['barney', 'pebbles']]
 *
 * // The `_.matches` iteratee shorthand.
 * _.partition(users, { 'age': 1, 'active': false });
 * // => objects for [['pebbles'], ['barney', 'fred']]
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.partition(users, ['active', false]);
 * // => objects for [['barney', 'pebbles'], ['fred']]
 *
 * // The `_.property` iteratee shorthand.
 * _.partition(users, 'active');
 * // => objects for [['fred'], ['barney', 'pebbles']]
 */e.exports=r},
/***/"32b3":
/***/function(e,t,n){var r=n("872a"),i=n("9638"),a=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},
/***/"32e8":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/_util/vue-types/index.js + 1 modules
var r=n("4d91"),i=r.a.shape({subscribe:r.a.func.isRequired,setState:r.a.func.isRequired,getState:r.a.func.isRequired});
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/store/PropTypes.js
t.a={name:"StoreProvider",props:{store:i.isRequired},provide:function(){return{storeContext:this.$props}},render:function(){return this.$slots.default[0]}}},
/***/"32f4":
/***/function(e,t,n){var r=n("2d7c"),i=n("d327"),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;
/** Used for built-in method references. */e.exports=s},
/***/"335d":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/3397:
/***/function(e,t,n){
// 7.1.1 ToPrimitive(input [, PreferredType])
var r=n("7a41");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},
/***/3410:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("7b0b"),o=n("e163"),s=n("e177");
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},
/***/"342d":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"b",(function(){/* binding */return E})),n.d(t,"c",(function(){/* binding */return k})),n.d(t,"d",(function(){/* binding */return S})),n.d(t,"a",(function(){/* binding */return B}));
// EXTERNAL MODULE: ./node_modules/zrender/node_modules/tslib/tslib.es6.js
var r=n("21a1"),i=n("cbe5"),a=n("20c8"),o=n("401b"),s=a.a.CMD,c=[[],[],[]],l=Math.sqrt,u=Math.atan2;
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/Path.js + 3 modules
function h(e,t){if(t){var n,r,i,a,h,f,d=e.data,p=e.len(),g=s.M,m=s.C,v=s.L,y=s.R,A=s.A,b=s.Q;for(i=0,a=0;i<p;){switch(n=d[i++],a=i,r=0,n){case g:case v:r=1;break;case m:r=3;break;case b:r=2;break;case A:var w=t[4],x=t[5],C=l(t[0]*t[0]+t[1]*t[1]),_=l(t[2]*t[2]+t[3]*t[3]),I=u(-t[1]/_,t[0]/C);d[i]*=C,d[i++]+=w,d[i]*=_,d[i++]+=x,d[i++]*=C,d[i++]*=_,d[i++]+=I,d[i++]+=I,a=i+=2;break;case y:f[0]=d[i++],f[1]=d[i++],Object(o.applyTransform)(f,f,t),d[a++]=f[0],d[a++]=f[1],f[0]+=d[i++],f[1]+=d[i++],Object(o.applyTransform)(f,f,t),d[a++]=f[0],d[a++]=f[1]}for(h=0;h<r;h++){var E=c[h];E[0]=d[i++],E[1]=d[i++],Object(o.applyTransform)(E,E,t),d[a++]=E[0],d[a++]=E[1]}}e.increaseVersion()}}
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
var f=n("6d8b"),d=Math.sqrt,p=Math.sin,g=Math.cos,m=Math.PI;
// CONCATENATED MODULE: ./node_modules/zrender/lib/tool/path.js
function v(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function y(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))}function A(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))}function b(e,t,n,r,i,a,o,s,c,l,u){var h=c*(m/180),f=g(h)*(e-n)/2+p(h)*(t-r)/2,v=-1*p(h)*(e-n)/2+g(h)*(t-r)/2,b=f*f/(o*o)+v*v/(s*s);b>1&&(o*=d(b),s*=d(b));var w=(i===a?-1:1)*d((o*o*(s*s)-o*o*(v*v)-s*s*(f*f))/(o*o*(v*v)+s*s*(f*f)))||0,x=w*o*v/s,C=w*-s*f/o,_=(e+n)/2+g(h)*x-p(h)*C,I=(t+r)/2+p(h)*x+g(h)*C,E=A([1,0],[(f-x)/o,(v-C)/s]),k=[(f-x)/o,(v-C)/s],S=[(-1*f-x)/o,(-1*v-C)/s],B=A(k,S);if(y(k,S)<=-1&&(B=m),y(k,S)>=1&&(B=0),B<0){var M=Math.round(B/m*1e6)/1e6;B=2*m+M%2*m}u.addData(l,_,I,o,s,E,B,h,a)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.applyTransform=function(e){},t}(i.b);function _(e){return null!=e.setData}function I(e,t){var n=function(e){var t=new a.a;if(!e)return t;var n,r=0,i=0,o=r,s=i,c=a.a.CMD,l=e.match(w);if(!l)return t;for(var u=0;u<l.length;u++){for(var h=l[u],f=h.charAt(0),d=void 0,p=h.match(x)||[],g=p.length,m=0;m<g;m++)p[m]=parseFloat(p[m]);for(var v=0;v<g;){var y=void 0,A=void 0,C=void 0,_=void 0,I=void 0,E=void 0,k=void 0,S=r,B=i,M=void 0,T=void 0;switch(f){case"l":r+=p[v++],i+=p[v++],d=c.L,t.addData(d,r,i);break;case"L":r=p[v++],i=p[v++],d=c.L,t.addData(d,r,i);break;case"m":r+=p[v++],i+=p[v++],d=c.M,t.addData(d,r,i),o=r,s=i,f="l";break;case"M":r=p[v++],i=p[v++],d=c.M,t.addData(d,r,i),o=r,s=i,f="L";break;case"h":r+=p[v++],d=c.L,t.addData(d,r,i);break;case"H":r=p[v++],d=c.L,t.addData(d,r,i);break;case"v":i+=p[v++],d=c.L,t.addData(d,r,i);break;case"V":i=p[v++],d=c.L,t.addData(d,r,i);break;case"C":d=c.C,t.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":d=c.C,t.addData(d,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,A=i,M=t.len(),T=t.data,n===c.C&&(y+=r-T[M-4],A+=i-T[M-3]),d=c.C,S=p[v++],B=p[v++],r=p[v++],i=p[v++],t.addData(d,y,A,S,B,r,i);break;case"s":y=r,A=i,M=t.len(),T=t.data,n===c.C&&(y+=r-T[M-4],A+=i-T[M-3]),d=c.C,S=r+p[v++],B=i+p[v++],r+=p[v++],i+=p[v++],t.addData(d,y,A,S,B,r,i);break;case"Q":S=p[v++],B=p[v++],r=p[v++],i=p[v++],d=c.Q,t.addData(d,S,B,r,i);break;case"q":S=p[v++]+r,B=p[v++]+i,r+=p[v++],i+=p[v++],d=c.Q,t.addData(d,S,B,r,i);break;case"T":y=r,A=i,M=t.len(),T=t.data,n===c.Q&&(y+=r-T[M-4],A+=i-T[M-3]),r=p[v++],i=p[v++],d=c.Q,t.addData(d,y,A,r,i);break;case"t":y=r,A=i,M=t.len(),T=t.data,n===c.Q&&(y+=r-T[M-4],A+=i-T[M-3]),r+=p[v++],i+=p[v++],d=c.Q,t.addData(d,y,A,r,i);break;case"A":C=p[v++],_=p[v++],I=p[v++],E=p[v++],k=p[v++],b(S=r,B=i,r=p[v++],i=p[v++],E,k,C,_,I,d=c.A,t);break;case"a":C=p[v++],_=p[v++],I=p[v++],E=p[v++],k=p[v++],b(S=r,B=i,r+=p[v++],i+=p[v++],E,k,C,_,I,d=c.A,t)}}"z"!==f&&"Z"!==f||(d=c.Z,t.addData(d),r=o,i=s),n=d}return t.toStatic(),t}(e),r=Object(f.extend)({},t);return r.buildPath=function(e){if(_(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){h(n,e),this.dirtyShape()},r}function E(e,t){return new C(I(e,t))}function k(e,t){var n=I(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Object(r.a)(t,e),t}(C)}function S(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var o=e[a];n.push(o.getUpdatedPathProxy(!0))}var s=new i.b(t);return s.createPathProxy(),s.buildPath=function(e){if(_(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},s}function B(e,t){t=t||{};var n=new i.b;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?h(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}
/***/},
/***/3437:
/***/function(e,t,n){"use strict";
/* unused harmony export createLinearGradient */
/* unused harmony export createRadialGradient */
/* harmony export (binding) */function r(e){return isFinite(e)}function i(e,t,n){for(var i="radial"===t.type?function(e,t,n){var i=n.width,a=n.height,o=Math.min(i,a),s=null==t.x?.5:t.x,c=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(s=s*i+n.x,c=c*a+n.y,l*=o),s=r(s)?s:.5,c=r(c)?c:.5,l=l>=0&&r(l)?l:.5,e.createRadialGradient(s,c,0,s,c,l)}(e,t,n):function(e,t,n){var i=null==t.x?0:t.x,a=null==t.x2?1:t.x2,o=null==t.y?0:t.y,s=null==t.y2?0:t.y2;return t.global||(i=i*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,a=r(a)?a:1,o=r(o)?o:0,s=r(s)?s:0,e.createLinearGradient(i,o,a,s)}(e,t,n),a=t.colorStops,o=0;o<a.length;o++)i.addColorStop(a[o].offset,a[o].color);return i}function a(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function o(e){return parseInt(e,10)}function s(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var c=document.defaultView.getComputedStyle(e);return(e[i]||o(c[r])||o(e.style[r]))-(o(c[a])||0)-(o(c[s])||0)|0}
/***/n.d(t,"a",(function(){return i})),
/* harmony export (binding) */n.d(t,"c",(function(){return a})),
/* harmony export (binding) */n.d(t,"b",(function(){return s}))},
/***/"349e":
/***/function(e,t,n){e.exports=function(e,t){return i={},n.m=r=[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c&&(u.functional?(u._injectStyles=c,l=u.render,u.render=function(e,t){return c.call(t),l(e,t)}):(s=u.beforeCreate,u.beforeCreate=s?[].concat(s,c):[c])),{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r,i=n(2),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(n(29));var r=o(n(21)),i=o(n(41)),a=n(42);function o(e){return e&&e.__esModule?e:{default:e}}t.default={name:"JsonViewer",components:{JsonBox:r.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(e){return e.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var e=this.copyable;return{copyText:e.copyText||"copy",copiedText:e.copiedText||"copied!",timeout:e.timeout||2e3,align:e.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var e=this;this.debounceResized=(0,a.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new i.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(e.value,null,2)}}).on("success",(function(t){e.onCopied(t)}))},methods:{onResized:function(){this.debounceResized()},debResized:function(){var e=this;this.$nextTick((function(){e.$refs.jsonBox&&(250<=e.$refs.jsonBox.$el.clientHeight?e.expandableCode=!0:e.expandableCode=!1)}))},onCopied:function(e){var t=this;this.copied||(this.copied=!0,setTimeout((function(){t.copied=!1}),this.copyText.timeout),this.$emit("copied",e))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(e){this.$emit("keyclick",e)}}}},function(e,t,n){"use strict";n.r(t);var r,i=n(4),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=f(n(30)),a=f(n(31)),o=f(n(32)),s=f(n(33)),c=f(n(34)),l=f(n(35)),u=f(n(36)),h=f(n(37));function f(e){return e&&e.__esModule?e:{default:e}}t.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}},getPath:function(){for(var e=[this.keyName],t=this.$parent;t.depth;)t.$el.classList.contains("jv-node")&&e.push(t.keyName),t=t.$parent;return e.reverse()}},render:function(e){var t=this,n=[],f=void 0;null===this.value||void 0===this.value?f=a.default:Array.isArray(this.value)?f=l.default:"[object Date]"===Object.prototype.toString.call(this.value)?f=h.default:"object"===r(this.value)?f=c.default:"number"==typeof this.value?f=o.default:"string"==typeof this.value?f=i.default:"boolean"==typeof this.value?f=s.default:"function"==typeof this.value&&(f=u.default);var d=this.keyName&&this.value&&(Array.isArray(this.value)||"object"===r(this.value)&&"[object Date]"!==Object.prototype.toString.call(this.value));return!this.previewMode&&d&&n.push(e("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(e){e.altKey?t.toggleAll():t.toggle()}}})),this.keyName&&n.push(e("span",{class:{"jv-key":!0},domProps:{innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":"},on:{click:function(){t.onKeyclick(t.path)}}})),n.push(e(f,{class:{"jv-push":!0},props:{jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path},on:{"update:expand":function(e){t.expand=e},"update:expandAll":function(e){t.expand=e,t.forceExpandMe=t.expand}}})),e("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!d,toggle:!this.previewMode&&d}},n)}}},function(e,t,n){"use strict";n.r(t);var r,i=n(6),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/^\w+:\/\//;t.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(e){var t=this.jsonValue,n=r.test(t),i=void 0;return this.expand?(i={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"}).domProps=n?{innerHTML:'"'+(t='<a href="'+t+'" target="_blank" class="jv-link">'+t+"</a>").toString()+'"'}:{innerText:'"'+t.toString()+'"'}:i={class:{"jv-ellipsis":!0},on:{click:this.toggle},domProps:{innerText:"..."}},e("span",{},[this.canExtend&&e("span",{class:{"jv-toggle":!0,open:this.expand},on:{click:this.toggle}}),e("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),e("span",i)])}}},function(e,t,n){"use strict";n.r(t);var r,i=n(8),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(e,t){return e("span",{class:{"jv-item":!0,"jv-undefined":!0},domProps:{innerText:null===t.props.jsonValue?"null":"undefined"}})}}},function(e,t,n){"use strict";n.r(t);var r,i=n(10),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(e,t){var n=t.props;return e("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t=Number.isInteger(n.jsonValue),"jv-number-float":!t},domProps:{innerText:n.jsonValue.toString()}})}}},function(e,t,n){"use strict";n.r(t);var r,i=n(12),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(e,t){return e("span",{class:{"jv-item":!0,"jv-boolean":!0},domProps:{innerText:t.props.jsonValue.toString()}})}}},function(e,t,n){"use strict";n.r(t);var r,i=n(14),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n=n(21))&&n.__esModule?n:{default:n};t.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var e=this;if(!this.sort)return this.value;var t={};return Object.keys(this.value).sort().forEach((function(n){t[n]=e.value[n]})),t}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this;setTimeout((function(){t.value=e}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(e){var t,n=this,i=[];if(this.previewMode||this.keyName||i.push(e("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(e){e.altKey?n.toggleAll():n.toggle()}}})),i.push(e("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"{"}})),this.expand)for(var a in this.ordered)this.ordered.hasOwnProperty(a)&&(t=this.ordered[a],i.push(e(r.default,{key:a,props:{sort:this.sort,keyName:a,depth:this.depth+1,value:t,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+a}})));return!this.expand&&Object.keys(this.value).length&&i.push(e("span",{class:{"jv-ellipsis":!0},on:{click:function(e){e.altKey?n.toggleAll():n.toggle()}},attrs:{title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")"},domProps:{innerText:"..."}})),i.push(e("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"}"}})),e("span",i)}}},function(e,t,n){"use strict";n.r(t);var r,i=n(16),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n=n(21))&&n.__esModule?n:{default:n};t.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;0===n&&(this.value=[]),setTimeout((function(){e.length>n&&(t.value.push(e[n]),t.setValue(e,n+1))}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(e){var t=this,n=[];return this.previewMode||this.keyName||n.push(e("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(e){e.altKey?t.toggleAll():t.toggle()}}})),n.push(e("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"["}})),this.expand&&this.value.forEach((function(i,a){n.push(e(r.default,{key:a,props:{sort:t.sort,keyName:t.showArrayIndex?""+a:"",depth:t.depth+1,value:i,previewMode:t.previewMode,forceExpand:t.forceExpand,showArrayIndex:t.showArrayIndex,showDoubleQuotes:t.showDoubleQuotes,path:t.path+"."+a}}))})),!this.expand&&this.value.length&&n.push(e("span",{class:{"jv-ellipsis":!0},on:{click:function(e){e.altKey?t.toggleAll():t.toggle()}},attrs:{title:"click to reveal "+this.value.length+" hidden items"},domProps:{innerText:"..."}})),n.push(e("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"]"}})),e("span",n)}}},function(e,t,n){"use strict";n.r(t);var r,i=n(18),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(e,t){return e("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:t.props.jsonValue.toString()},domProps:{innerHTML:"&lt;function&gt;"}})}}},function(e,t,n){"use strict";n.r(t);var r,i=n(20),a=n.n(i);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(e,t){var n=t.props;return t=t.injections,n=n.jsonValue,e("span",{class:{"jv-item":!0,"jv-string":!0},domProps:{innerText:'"'+(0,t.timeformat)(n)+'"'}})}}},function(e,t,n){"use strict";n.r(t);var r,i=n(3);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(38);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/json-box.vue",t.default=a.exports},function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{ref:"viewer",class:e.jvClass},[e.copyable?t("div",{class:"jv-tooltip "+(e.copyText.align||"right")},[t("span",{ref:"clip",staticClass:"jv-button",class:{copied:e.copied}},[e._t("copy",(function(){return[e._v("\n        "+e._s(e.copied?e.copyText.copiedText:e.copyText.copyText)+"\n      ")]}),{copied:e.copied})],2)]):e._e(),e._v(" "),t("div",{staticClass:"jv-code",class:{open:e.expandCode,boxed:e.boxed}},[t("json-box",{ref:"jsonBox",attrs:{value:e.value,sort:e.sort,"preview-mode":e.previewMode,"show-array-index":e.showArrayIndex,"show-double-quotes":e.showDoubleQuotes},on:{keyclick:e.onKeyclick}})],1),e._v(" "),e.expandableCode&&e.boxed?t("div",{staticClass:"jv-more",on:{click:e.toggleExpandCode}},[t("span",{staticClass:"jv-toggle",class:{open:!!e.expandCode}})]):e._e()])}var i=[];r._withStripped=!0,n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){var r=n(39);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0};n(25)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];return r?t&&"function"==typeof btoa?(e=function(e){return e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e),"/*# ".concat(e," */")}(r),t=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")})),[n].concat(t).concat([e]).join("\n")):[n].join("\n"):n}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){var r,i,a,o={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return i=void 0===i?r.apply(this,arguments):i}),c=(a={},function(e){if(void 0===a[e]){var t=function(e){return document.querySelector(e)}.call(this,e);if(t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}),l=null,u=0,h=[],f=n(40);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(A(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(A(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i],o=t.base?a[0]+t.base:a[0];a={css:a[1],media:a[2],sourceMap:a[3]},r[o]?r[o].parts.push(a):n.push(r[o]={id:o,parts:[a]})}return n}function g(e,t){var n=c(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=h[h.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");e=c(e.insertInto+" "+e.insertAt.before),n.insertBefore(t,e)}}function m(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function v(e){var t=document.createElement("style");return e.attrs.type="text/css",y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function A(e,t){var n,r,i,a,o;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}return i=t.singleton?(o=u++,n=l=l||v(t),r=x.bind(null,n,o,!1),x.bind(null,n,o,!0)):e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=t,o=document.createElement("link"),a.attrs.type="text/css",a.attrs.rel="stylesheet",y(o,a.attrs),g(a,o),r=function(e,t,n){var r=n.css,i=n.sourceMap;n=void 0===t.convertToAbsoluteUrls&&i,(t.convertToAbsoluteUrls||n)&&(r=f(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),i=new Blob([r],{type:"text/css"}),r=e.href,e.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}.bind(null,n=o,t),function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css;if((t=t.media)&&e.setAttribute("media",t),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){m(n)}),r(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||r(e=t):i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}var s;for(e&&d(p(e,t),t),i=0;i<r.length;i++)if(0===(s=r[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete o[s.id]}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){n=n?"":r.css,e.styleSheet?e.styleSheet.cssText=w(t,n):(r=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r))}},function(e,t,n){var r=n(44);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0};n(25)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n=n(28))&&n.__esModule?n:{default:n};t.default=Object.assign(r.default,{install:function(e){e.component("JsonViewer",r.default)}})},function(e,t,n){"use strict";n.r(t);var r,i=n(22),a=n(1);for(r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n(43);var o=n(0);(i=Object(o.a)(a.default,i.a,i.b,!1,null,null,null)).options.__file="lib/json-viewer.vue",t.default=i.exports},function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t);var r,i=n(5);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-string.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(7);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-undefined.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(9);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-number.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(11);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-boolean.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(13);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-object.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(15);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-array.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(17);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-function.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r,i=n(19);for(r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var a=n(0);(a=Object(a.a)(i.default,void 0,void 0,!1,null,null,null)).options.__file="lib/types/json-date.vue",t.default=a.exports},function(e,t,n){"use strict";n(23)},function(e,t,n){(t=n(24)(!1)).push([e.i,".jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}\n",""]),e.exports=t},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){return t=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t})),/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(t)?e:(t=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:r+t.replace(/^\.\//,""),"url("+JSON.stringify(t)+")")}))}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=function(e,t){var n=Date.now(),r=void 0;return function(){for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];Date.now()-n<t&&r&&clearTimeout(r),r=setTimeout((function(){e.apply(void 0,a)}),t),n=Date.now()}}},function(e,t,n){"use strict";n(26)},function(e,t,n){var r=n(24),i=n(45);n=n(46),t=r(!1),n=i(n),t.push([e.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+n+');background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],n.c=i,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27);function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,i}(n("a026"),n("b311"));
/***/},
/***/"34ac":
/***/function(e,t,n){var r=n("9520"),i=n("1368"),a=n("1a8c"),o=n("dc57"),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,f=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");
/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */e.exports=
/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function(e){return!(!a(e)||i(e))&&(r(e)?f:s).test(o(e))}},
/***/"34ad":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return a}));
// EXTERNAL MODULE: ./node_modules/three/build/three.module.js
var r=n("5a89");
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/utils/BufferGeometryUtils.js
/**
 * @param {BufferGeometry} geometry
 * @param {number} drawMode
 * @return {BufferGeometry}
 */
function i(e,t){if(t===r.Mb)return e;if(t===r.Kb||t===r.Lb){let n=e.getIndex();
// generate index if not present
if(null===n){const t=[],r=e.getAttribute("position");if(void 0===r)return e;for(let e=0;e<r.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}

const i=n.count-2,a=[];if(t===r.Kb)
// gl.TRIANGLE_FAN
for(let e=1;e<=i;e++)a.push(n.getX(0)),a.push(n.getX(e)),a.push(n.getX(e+1));else
// gl.TRIANGLE_STRIP
for(let e=0;e<i;e++)e%2==0?(a.push(n.getX(e)),a.push(n.getX(e+1)),a.push(n.getX(e+2))):(a.push(n.getX(e+2)),a.push(n.getX(e+1)),a.push(n.getX(e)));a.length;
// build final geometry
const o=e.clone();return o.setIndex(a),o.clearGroups(),o}return e}
/**
 * Calculates the morphed attributes of a morphed/skinned BufferGeometry.
 * Helpful for Raytracing or Decals.
 * @param {Mesh | Line | Points} object An instance of Mesh, Line or Points.
 * @return {Object} An Object with original position/normal attributes and morphed ones.
 */
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/loaders/GLTFLoader.js
class a extends r.P{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register((function(e){return new h(e)})),this.register((function(e){return new y(e)})),this.register((function(e){return new A(e)})),this.register((function(e){return new b(e)})),this.register((function(e){return new d(e)})),this.register((function(e){return new p(e)})),this.register((function(e){return new g(e)})),this.register((function(e){return new m(e)})),this.register((function(e){return new u(e)})),this.register((function(e){return new v(e)})),this.register((function(e){return new f(e)})),this.register((function(e){return new c(e)})),this.register((function(e){return new w(e)})),this.register((function(e){return new x(e)}))}load(e,t,n,i){const a=this;let o;o=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:r.Q.extractUrlBase(e),
// Tells the LoadingManager to track an extra item, which resolves after
// the model is fully loaded. This means the count of items loaded will
// be incorrect, but ensures manager.onLoad() does not fire early.
this.manager.itemStart(e);const s=function(t){i&&i(t),a.manager.itemError(e),a.manager.itemEnd(e)},c=new r.t(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,(function(n){try{a.parse(n,o,(function(n){t(n),a.manager.itemEnd(e)}),s)}catch(e){s(e)}}),n,s)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,r){let i;const a={},o={},c=new TextDecoder;if("string"==typeof e)i=JSON.parse(e);else if(e instanceof ArrayBuffer){if(c.decode(new Uint8Array(e,0,4))===C){try{a[s.KHR_BINARY_GLTF]=new E(e)}catch(e){return void(r&&r(e))}i=JSON.parse(a[s.KHR_BINARY_GLTF].content)}else i=JSON.parse(c.decode(e))}else i=e;if(void 0===i.asset||i.asset.version[0]<2)return void(r&&r(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const u=new J(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e<this.pluginCallbacks.length;e++){const t=this.pluginCallbacks[e](u);o[t.name]=t,
// Workaround to avoid determining as unknown extension
// in addUnknownExtensionsToUserData().
// Remove this workaround if we move all the existing
// extension handlers to plugin system
a[t.name]=!0}if(i.extensionsUsed)for(let e=0;e<i.extensionsUsed.length;++e){const t=i.extensionsUsed[e],n=i.extensionsRequired||[];switch(t){case s.KHR_MATERIALS_UNLIT:a[t]=new l;break;case s.KHR_DRACO_MESH_COMPRESSION:a[t]=new k(i,this.dracoLoader);break;case s.KHR_TEXTURE_TRANSFORM:a[t]=new S;break;case s.KHR_MESH_QUANTIZATION:a[t]=new B;break;default:n.indexOf(t)>=0&&o[t]}}u.setExtensions(a),u.setPlugins(o),u.parse(n,r)}parseAsync(e,t){const n=this;return new Promise((function(r,i){n.parse(e,t,r,i)}))}}
/* GLTFREGISTRY */function o(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}
/*********************************/
/********** EXTENSIONS ***********/
/*********************************/const s={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};
/**
 * Punctual Lights Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_lights_punctual
 */class c{constructor(e){this.parser=e,this.name=s.KHR_LIGHTS_PUNCTUAL,
// Object3D instance caches
this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n<r;n++){const r=t[n];r.extensions&&r.extensions[this.name]&&void 0!==r.extensions[this.name].light&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){const t=this.parser,n="light:"+e;let i=t.cache.get(n);if(i)return i;const a=t.json,o=((a.extensions&&a.extensions[this.name]||{}).lights||[])[e];let s;const c=new r.j(16777215);void 0!==o.color&&c.fromArray(o.color);const l=void 0!==o.range?o.range:0;switch(o.type){case"directional":s=new r.o(c),s.target.position.set(0,0,-1),s.add(s.target);break;case"point":s=new r.lb(c),s.distance=l;break;case"spot":s=new r.Eb(c),s.distance=l,
// Handle spotlight properties.
o.spot=o.spot||{},o.spot.innerConeAngle=void 0!==o.spot.innerConeAngle?o.spot.innerConeAngle:0,o.spot.outerConeAngle=void 0!==o.spot.outerConeAngle?o.spot.outerConeAngle:Math.PI/4,s.angle=o.spot.outerConeAngle,s.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,s.target.position.set(0,0,-1),s.add(s.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+o.type)}
// Some lights (e.g. spot) default to a position other than the origin. Reset the position
// here, because node-level parsing will only override position if explicitly specified.
return s.position.set(0,0,0),s.decay=2,V(s,o),void 0!==o.intensity&&(s.intensity=o.intensity),s.name=t.createUniqueName(o.name||"light_"+e),i=Promise.resolve(s),t.cache.add(n,i),i}getDependency(e,t){if("light"===e)return this._loadLight(t)}createNodeAttachment(e){const t=this,n=this.parser,r=n.json.nodes[e],i=(r.extensions&&r.extensions[this.name]||{}).light;return void 0===i?null:this._loadLight(i).then((function(e){return n._getNodeRef(t.cache,i,e)}))}}
/**
 * Unlit Materials Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit
 */class l{constructor(){this.name=s.KHR_MATERIALS_UNLIT}getMaterialType(){return r.X}extendParams(e,t,n){const i=[];e.color=new r.j(1,1,1),e.opacity=1;const a=t.pbrMetallicRoughness;if(a){if(Array.isArray(a.baseColorFactor)){const t=a.baseColorFactor;e.color.fromArray(t),e.opacity=t[3]}void 0!==a.baseColorTexture&&i.push(n.assignTexture(e,"map",a.baseColorTexture,r.Tb))}return Promise.all(i)}}
/**
 * Materials Emissive Strength Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/blob/5768b3ce0ef32bc39cdf1bef10b948586635ead3/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md
 */class u{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const r=n.extensions[this.name].emissiveStrength;return void 0!==r&&(t.emissiveIntensity=r),Promise.resolve()}}
/**
 * Clearcoat Materials Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_clearcoat
 */class h{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],o=i.extensions[this.name];if(void 0!==o.clearcoatFactor&&(t.clearcoat=o.clearcoatFactor),void 0!==o.clearcoatTexture&&a.push(n.assignTexture(t,"clearcoatMap",o.clearcoatTexture)),void 0!==o.clearcoatRoughnessFactor&&(t.clearcoatRoughness=o.clearcoatRoughnessFactor),void 0!==o.clearcoatRoughnessTexture&&a.push(n.assignTexture(t,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),void 0!==o.clearcoatNormalTexture&&(a.push(n.assignTexture(t,"clearcoatNormalMap",o.clearcoatNormalTexture)),void 0!==o.clearcoatNormalTexture.scale)){const e=o.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new r.Ob(e,e)}return Promise.all(a)}}
/**
 * Iridescence Materials Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_iridescence
 */class f{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],a=r.extensions[this.name];return void 0!==a.iridescenceFactor&&(t.iridescence=a.iridescenceFactor),void 0!==a.iridescenceTexture&&i.push(n.assignTexture(t,"iridescenceMap",a.iridescenceTexture)),void 0!==a.iridescenceIor&&(t.iridescenceIOR=a.iridescenceIor),void 0===t.iridescenceThicknessRange&&(t.iridescenceThicknessRange=[100,400]),void 0!==a.iridescenceThicknessMinimum&&(t.iridescenceThicknessRange[0]=a.iridescenceThicknessMinimum),void 0!==a.iridescenceThicknessMaximum&&(t.iridescenceThicknessRange[1]=a.iridescenceThicknessMaximum),void 0!==a.iridescenceThicknessTexture&&i.push(n.assignTexture(t,"iridescenceThicknessMap",a.iridescenceThicknessTexture)),Promise.all(i)}}
/**
 * Sheen Materials Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_sheen
 */class d{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_SHEEN}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[];t.sheenColor=new r.j(0,0,0),t.sheenRoughness=0,t.sheen=1;const o=i.extensions[this.name];return void 0!==o.sheenColorFactor&&t.sheenColor.fromArray(o.sheenColorFactor),void 0!==o.sheenRoughnessFactor&&(t.sheenRoughness=o.sheenRoughnessFactor),void 0!==o.sheenColorTexture&&a.push(n.assignTexture(t,"sheenColorMap",o.sheenColorTexture,r.Tb)),void 0!==o.sheenRoughnessTexture&&a.push(n.assignTexture(t,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(a)}}
/**
 * Transmission Materials Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission
 * Draft: https://github.com/KhronosGroup/glTF/pull/1698
 */class p{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],a=r.extensions[this.name];return void 0!==a.transmissionFactor&&(t.transmission=a.transmissionFactor),void 0!==a.transmissionTexture&&i.push(n.assignTexture(t,"transmissionMap",a.transmissionTexture)),Promise.all(i)}}
/**
 * Materials Volume Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_volume
 */class g{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_VOLUME}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],o=i.extensions[this.name];t.thickness=void 0!==o.thicknessFactor?o.thicknessFactor:0,void 0!==o.thicknessTexture&&a.push(n.assignTexture(t,"thicknessMap",o.thicknessTexture)),t.attenuationDistance=o.attenuationDistance||1/0;const s=o.attenuationColor||[1,1,1];return t.attenuationColor=new r.j(s[0],s[1],s[2]),Promise.all(a)}}
/**
 * Materials ior Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_ior
 */class m{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_IOR}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const r=n.extensions[this.name];return t.ior=void 0!==r.ior?r.ior:1.5,Promise.resolve()}}
/**
 * Materials specular Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_specular
 */class v{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_SPECULAR}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?r.ab:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],o=i.extensions[this.name];t.specularIntensity=void 0!==o.specularFactor?o.specularFactor:1,void 0!==o.specularTexture&&a.push(n.assignTexture(t,"specularIntensityMap",o.specularTexture));const s=o.specularColorFactor||[1,1,1];return t.specularColor=new r.j(s[0],s[1],s[2]),void 0!==o.specularColorTexture&&a.push(n.assignTexture(t,"specularColorMap",o.specularColorTexture,r.Tb)),Promise.all(a)}}
/**
 * BasisU Texture Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu
 */class y{constructor(e){this.parser=e,this.name=s.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,n=t.json,r=n.textures[e];if(!r.extensions||!r.extensions[this.name])return null;const i=r.extensions[this.name],a=t.options.ktx2Loader;if(!a){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");
// Assumes that the extension is optional and that a fallback texture is present
return null}return t.loadTextureImage(e,i.source,a)}}
/**
 * WebP Texture Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_webp
 */class A{constructor(e){this.parser=e,this.name=s.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const a=i.extensions[t],o=r.images[a.source];let s=n.textureLoader;if(o.uri){const e=n.options.manager.getHandler(o.uri);null!==e&&(s=e)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,a.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");
// Fall back to PNG or JPEG.
return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;
// Lossy test image. Support for lossy images doesn't guarantee support for all
// WebP images, unfortunately.
t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}
/**
 * AVIF Texture Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_avif
 */class b{constructor(e){this.parser=e,this.name=s.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const a=i.extensions[t],o=r.images[a.source];let s=n.textureLoader;if(o.uri){const e=n.options.manager.getHandler(o.uri);null!==e&&(s=e)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,a.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");
// Fall back to PNG or JPEG.
return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;
// Lossy test image.
t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}
/**
 * meshopt BufferView Compression Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_meshopt_compression
 */class w{constructor(e){this.name=s.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const e=n.extensions[this.name],r=this.parser.getDependency("buffer",e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");
// Assumes that the extension is optional and that fallback buffer data is present
return null}return r.then((function(t){const n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then((function(e){return e.buffer})):i.ready.then((function(){const t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t}))}))}return null}}
/**
 * GPU Instancing Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_mesh_gpu_instancing
 *
 */class x{constructor(e){this.name=s.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const i=t.meshes[n.mesh];
// No Points or Lines + Instancing support yet
for(const e of i.primitives)if(e.mode!==D.TRIANGLES&&e.mode!==D.TRIANGLE_STRIP&&e.mode!==D.TRIANGLE_FAN&&void 0!==e.mode)return null;const a=n.extensions[this.name].attributes,o=[],s={};for(const e in a)o.push(this.parser.getDependency("accessor",a[e]).then((t=>(s[e]=t,s[e]))));return o.length<1?null:(o.push(this.parser.createNodeMesh(e)),Promise.all(o).then((e=>{const t=e.pop(),n=t.isGroup?t.children:[t],i=e[0].count,a=[];for(const e of n){
// Temporal variables
const t=new r.V,n=new r.Pb,o=new r.pb,c=new r.Pb(1,1,1),l=new r.A(e.geometry,e.material,i);for(let e=0;e<i;e++)s.TRANSLATION&&n.fromBufferAttribute(s.TRANSLATION,e),s.ROTATION&&o.fromBufferAttribute(s.ROTATION,e),s.SCALE&&c.fromBufferAttribute(s.SCALE,e),l.setMatrixAt(e,t.compose(n,o,c));
// Add instance attributes to the geometry, excluding TRS.
for(const t in s)"TRANSLATION"!==t&&"ROTATION"!==t&&"SCALE"!==t&&e.geometry.setAttribute(t,s[t]);
// Just in case
r.hb.prototype.copy.call(l,e),
// https://github.com/mrdoob/three.js/issues/18334
l.frustumCulled=!1,this.parser.assignFinalMaterial(l),a.push(l)}return t.isGroup?(t.clear(),t.add(...a),t):a[0]})))}}
/* BINARY EXTENSION */const C="glTF",_=1313821514,I=5130562;class E{constructor(e){this.name=s.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,12),n=new TextDecoder;if(this.header={magic:n.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==C)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const r=this.header.length-12,i=new DataView(e,12);let a=0;for(;a<r;){const t=i.getUint32(a,!0);a+=4;const r=i.getUint32(a,!0);if(a+=4,r===_){const r=new Uint8Array(e,12+a,t);this.content=n.decode(r)}else if(r===I){const n=12+a;this.body=e.slice(n,n+t)}
// Clients must ignore chunks with unknown types.
a+=t}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}}
/**
 * DRACO Mesh Compression Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression
 */class k{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=s.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const n=this.json,r=this.dracoLoader,i=e.extensions[this.name].bufferView,a=e.extensions[this.name].attributes,o={},s={},c={};for(const e in a){const t=j[e]||e.toLowerCase();o[t]=a[e]}for(const t in e.attributes){const r=j[t]||t.toLowerCase();if(void 0!==a[t]){const i=n.accessors[e.attributes[t]],a=P[i.componentType];c[r]=a.name,s[r]=!0===i.normalized}}return t.getDependency("bufferView",i).then((function(e){return new Promise((function(t){r.decodeDracoFile(e,(function(e){for(const t in e.attributes){const n=e.attributes[t],r=s[t];void 0!==r&&(n.normalized=r)}t(e)}),o,c)}))}))}}
/**
 * Texture Transform Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform
 */class S{constructor(){this.name=s.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return t.texCoord,void 0===t.offset&&void 0===t.rotation&&void 0===t.scale||(e=e.clone(),void 0!==t.offset&&e.offset.fromArray(t.offset),void 0!==t.rotation&&(e.rotation=t.rotation),void 0!==t.scale&&e.repeat.fromArray(t.scale),e.needsUpdate=!0),e}}
/**
 * Mesh Quantization Extension
 *
 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization
 */class B{constructor(){this.name=s.KHR_MESH_QUANTIZATION}}
/*********************************/
/********** INTERPOLATION ********/
/*********************************/
// Spline Interpolation
// Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#appendix-c-spline-interpolation
class M extends r.D{constructor(e,t,n,r){super(e,t,n,r)}copySampleValue_(e){
// Copies a sample value to the result buffer. See description of glTF
// CUBICSPLINE values layout in interpolate_() function below.
const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r;for(let e=0;e!==r;e++)t[e]=n[i+e];return t}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=2*o,c=3*o,l=r-t,u=(n-t)/l,h=u*u,f=h*u,d=e*c,p=d-c,g=-2*f+3*h,m=f-h,v=1-g,y=m-h+u;
// Layout of keyframe output values for CUBICSPLINE animations:
//   [ inTangent_1, splineVertex_1, outTangent_1, inTangent_2, splineVertex_2, ... ]
for(let e=0;e!==o;e++){const t=a[p+e+o],n=a[p+e+s]*l,r=a[d+e+o],c=a[d+e]*l;// splineVertex_k
// inTangent_k+1 * (t_k+1 - t_k)
i[e]=v*t+y*n+g*r+m*c}return i}}const T=new r.pb;class O extends M{interpolate_(e,t,n,r){const i=super.interpolate_(e,t,n,r);return T.fromArray(i).normalize().toArray(i),i}}
/*********************************/
/********** INTERNALS ************/
/*********************************/
/* CONSTANTS */const D={FLOAT:5126,
//FLOAT_MAT2: 35674,
FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},P={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},L={9728:r.db,9729:r.L,9984:r.fb,9985:r.N,9986:r.eb,9987:r.M},Q={33071:r.h,33648:r.cb,10497:r.xb},R={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},j={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},N={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},F={CUBICSPLINE:void 0,// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
// keyframe track will be initialized with a default interpolation type, then modified.
LINEAR:r.F,STEP:r.E},z="OPAQUE",H="MASK",U="BLEND";function G(e,t,n){
// Add unknown glTF extensions to an object's userData.
for(const r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}
/**
 * @param {Object3D|Material|BufferGeometry} object
 * @param {GLTF.definition} gltfDef
 */function V(e,t){void 0!==t.extras&&"object"==typeof t.extras&&Object.assign(e.userData,t.extras)}
/**
 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets
 *
 * @param {BufferGeometry} geometry
 * @param {Array<GLTF.Target>} targets
 * @param {GLTFParser} parser
 * @return {Promise<BufferGeometry>}
 */
/**
 * @param {Mesh} mesh
 * @param {GLTF.Mesh} meshDef
 */
function W(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(let n=0,r=t.weights.length;n<r;n++)e.morphTargetInfluences[n]=t.weights[n];
// .extras has user-defined data, so check that .extras.targetNames is an array.
if(t.extras&&Array.isArray(t.extras.targetNames)){const n=t.extras.targetNames;if(e.morphTargetInfluences.length===n.length){e.morphTargetDictionary={};for(let t=0,r=n.length;t<r;t++)e.morphTargetDictionary[n[t]]=t}}}function q(e){const t=e.extensions&&e.extensions[s.KHR_DRACO_MESH_COMPRESSION];let n;return n=t?"draco:"+t.bufferView+":"+t.indices+":"+Y(t.attributes):e.indices+":"+Y(e.attributes)+":"+e.mode,n}function Y(e){let t="";const n=Object.keys(e).sort();for(let r=0,i=n.length;r<i;r++)t+=n[r]+":"+e[n[r]]+";";return t}function K(e){
// Reference:
// https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization#encoding-quantized-data
switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}const $=new r.V;
/* GLTF PARSER */class J{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,
// loader object cache
this.cache=new o,
// associations between Three.js objects and glTF elements
this.associations=new Map,
// BufferGeometry caching
this.primitiveCache={},
// Node cache
this.nodeCache={},
// Object3D instance caches
this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},
// Track node names, to ensure no duplicates
this.nodeNamesUsed={};
// Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the
// expensive work of uploading a texture to the GPU off the main thread.
let n=!1,i=!1,a=-1;"undefined"!=typeof navigator&&(n=!0===/^((?!chrome|android).)*safari/i.test(navigator.userAgent),i=navigator.userAgent.indexOf("Firefox")>-1,a=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"==typeof createImageBitmap||n||i&&a<98?this.textureLoader=new r.Jb(this.options.manager):this.textureLoader=new r.y(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new r.t(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const n=this,r=this.json,i=this.extensions;
// Clear the loader cache
this.cache.removeAll(),this.nodeCache={},
// Mark the special nodes/meshes in json for efficient parse
this._invokeAll((function(e){return e._markDefs&&e._markDefs()})),Promise.all(this._invokeAll((function(e){return e.beforeRoot&&e.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(t){const a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};G(i,a,r),V(a,r),Promise.all(n._invokeAll((function(e){return e.afterRoot&&e.afterRoot(a)}))).then((function(){e(a)}))})).catch(t)}
/**
	 * Marks the special nodes/meshes in json for efficient parse.
	 */_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];
// Nothing in the node definition indicates whether it is a Bone or an
// Object3D. Use the skins' joint references to mark bones.
for(let n=0,r=t.length;n<r;n++){const r=t[n].joints;for(let t=0,n=r.length;t<n;t++)e[r[t]].isBone=!0}
// Iterate over all nodes, marking references to shared resources,
// as well as skeleton joints.
for(let t=0,r=e.length;t<r;t++){const r=e[t];void 0!==r.mesh&&(this._addNodeRef(this.meshCache,r.mesh),
// Nothing in the mesh definition indicates whether it is
// a SkinnedMesh or Mesh. Use the node's mesh reference
// to mark SkinnedMesh if node has skin.
void 0!==r.skin&&(n[r.mesh].isSkinnedMesh=!0)),void 0!==r.camera&&this._addNodeRef(this.cameraCache,r.camera)}}
/**
	 * Counts references to shared node / Object3D resources. These resources
	 * can be reused, or "instantiated", at multiple nodes in the scene
	 * hierarchy. Mesh, Camera, and Light instances are instantiated and must
	 * be marked. Non-scenegraph resources (like Materials, Geometries, and
	 * Textures) can be reused directly and are not marked here.
	 *
	 * Example: CesiumMilkTruck sample model reuses "Wheel" meshes.
	 */_addNodeRef(e,t){void 0!==t&&(void 0===e.refs[t]&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}
/** Returns a reference to a shared resource, cloning it if necessary. */_getNodeRef(e,t,n){if(e.refs[t]<=1)return n;const r=n.clone(),i=(e,t)=>{const n=this.associations.get(e);null!=n&&this.associations.set(t,n);for(const[n,r]of e.children.entries())i(r,t.children[n])};
// Propagates mappings to the cloned object, prevents mappings on the
// original object from being lost.
return i(n,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n<t.length;n++){const r=e(t[n]);if(r)return r}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const n=[];for(let r=0;r<t.length;r++){const i=e(t[r]);i&&n.push(i)}return n}
/**
	 * Requests the specified dependency asynchronously, with caching.
	 * @param {string} type
	 * @param {number} index
	 * @return {Promise<Object3D|Material|THREE.Texture|AnimationClip|ArrayBuffer|Object>}
	 */getDependency(e,t){const n=e+":"+t;let r=this.cache.get(n);if(!r){switch(e){case"scene":r=this.loadScene(t);break;case"node":r=this._invokeOne((function(e){return e.loadNode&&e.loadNode(t)}));break;case"mesh":r=this._invokeOne((function(e){return e.loadMesh&&e.loadMesh(t)}));break;case"accessor":r=this.loadAccessor(t);break;case"bufferView":r=this._invokeOne((function(e){return e.loadBufferView&&e.loadBufferView(t)}));break;case"buffer":r=this.loadBuffer(t);break;case"material":r=this._invokeOne((function(e){return e.loadMaterial&&e.loadMaterial(t)}));break;case"texture":r=this._invokeOne((function(e){return e.loadTexture&&e.loadTexture(t)}));break;case"skin":r=this.loadSkin(t);break;case"animation":r=this._invokeOne((function(e){return e.loadAnimation&&e.loadAnimation(t)}));break;case"camera":r=this.loadCamera(t);break;default:if(r=this._invokeOne((function(n){return n!=this&&n.getDependency&&n.getDependency(e,t)})),!r)throw new Error("Unknown type: "+e)}this.cache.add(n,r)}return r}
/**
	 * Requests all dependencies of the specified type asynchronously, with caching.
	 * @param {string} type
	 * @return {Promise<Array<Object>>}
	 */getDependencies(e){let t=this.cache.get(e);if(!t){const n=this,r=this.json[e+("mesh"===e?"es":"s")]||[];t=Promise.all(r.map((function(t,r){return n.getDependency(e,r)}))),this.cache.add(e,t)}return t}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views
	 * @param {number} bufferIndex
	 * @return {Promise<ArrayBuffer>}
	 */loadBuffer(e){const t=this.json.buffers[e],n=this.fileLoader;if(t.type&&"arraybuffer"!==t.type)throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");
// If present, GLB container is required to be the first buffer.
if(void 0===t.uri&&0===e)return Promise.resolve(this.extensions[s.KHR_BINARY_GLTF].body);const i=this.options;return new Promise((function(e,a){n.load(r.Q.resolveURL(t.uri,i.path),e,void 0,(function(){a(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))}))}))}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views
	 * @param {number} bufferViewIndex
	 * @return {Promise<ArrayBuffer>}
	 */loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then((function(e){const n=t.byteLength||0,r=t.byteOffset||0;return e.slice(r,r+n)}))}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#accessors
	 * @param {number} accessorIndex
	 * @return {Promise<BufferAttribute|InterleavedBufferAttribute>}
	 */loadAccessor(e){const t=this,n=this.json,i=this.json.accessors[e];if(void 0===i.bufferView&&void 0===i.sparse){const e=R[i.type],t=P[i.componentType],n=!0===i.normalized,a=new t(i.count*e);return Promise.resolve(new r.f(a,e,n))}const a=[];return void 0!==i.bufferView?a.push(this.getDependency("bufferView",i.bufferView)):a.push(null),void 0!==i.sparse&&(a.push(this.getDependency("bufferView",i.sparse.indices.bufferView)),a.push(this.getDependency("bufferView",i.sparse.values.bufferView))),Promise.all(a).then((function(e){const a=e[0],o=R[i.type],s=P[i.componentType],c=s.BYTES_PER_ELEMENT,l=c*o,u=i.byteOffset||0,h=void 0!==i.bufferView?n.bufferViews[i.bufferView].byteStride:void 0,f=!0===i.normalized;let d,p;
// The buffer is not interleaved if the stride is the item size in bytes.
if(h&&h!==l){
// Each "slice" of the buffer, as defined by 'count' elements of 'byteStride' bytes, gets its own InterleavedBuffer
// This makes sure that IBA.count reflects accessor.count properly
const e=Math.floor(u/h),n="InterleavedBuffer:"+i.bufferView+":"+i.componentType+":"+e+":"+i.count;let l=t.cache.get(n);l||(d=new s(a,e*h,i.count*h/c),
// Integer parameters to IB/IBA are in array elements, not bytes.
l=new r.B(d,h/c),t.cache.add(n,l)),p=new r.C(l,o,u%h/c,f)}else d=null===a?new s(i.count*o):new s(a,u,i.count*o),p=new r.f(d,o,f);
// https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#sparse-accessors
if(void 0!==i.sparse){const t=R.SCALAR,n=P[i.sparse.indices.componentType],c=i.sparse.indices.byteOffset||0,l=i.sparse.values.byteOffset||0,u=new n(e[1],c,i.sparse.count*t),h=new s(e[2],l,i.sparse.count*o);null!==a&&(
// Avoid modifying the original ArrayBuffer, if the bufferView wasn't initialized with zeroes.
p=new r.f(p.array.slice(),p.itemSize,p.normalized));for(let e=0,t=u.length;e<t;e++){const t=u[e];if(p.setX(t,h[e*o]),o>=2&&p.setY(t,h[e*o+1]),o>=3&&p.setZ(t,h[e*o+2]),o>=4&&p.setW(t,h[e*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return p}))}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#textures
	 * @param {number} textureIndex
	 * @return {Promise<THREE.Texture|null>}
	 */loadTexture(e){const t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r];let a=this.textureLoader;if(i.uri){const e=n.manager.getHandler(i.uri);null!==e&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){const i=this,a=this.json,o=a.textures[e],s=a.images[t],c=(s.uri||s.bufferView)+":"+o.sampler;if(this.textureCache[c])
// See https://github.com/mrdoob/three.js/issues/21559.
return this.textureCache[c];const l=this.loadImageSource(t,n).then((function(t){t.flipY=!1,t.name=o.name||s.name||"";const n=(a.samplers||{})[o.sampler]||{};return t.magFilter=L[n.magFilter]||r.L,t.minFilter=L[n.minFilter]||r.M,t.wrapS=Q[n.wrapS]||r.xb,t.wrapT=Q[n.wrapT]||r.xb,i.associations.set(t,{textures:e}),t})).catch((function(){return null}));return this.textureCache[c]=l,l}loadImageSource(e,t){const n=this,i=this.json,a=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then((e=>e.clone()));const o=i.images[e],s=self.URL||self.webkitURL;let c=o.uri||"",l=!1;if(void 0!==o.bufferView)
// Load binary image data from bufferView, if provided.
c=n.getDependency("bufferView",o.bufferView).then((function(e){l=!0;const t=new Blob([e],{type:o.mimeType});return c=s.createObjectURL(t),c}));else if(void 0===o.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then((function(e){return new Promise((function(n,i){let o=n;!0===t.isImageBitmapLoader&&(o=function(e){const t=new r.Ib(e);t.needsUpdate=!0,n(t)}),t.load(r.Q.resolveURL(e,a.path),o,void 0,i)}))})).then((function(e){var t;
// Clean up resources and configure Texture.
return!0===l&&s.revokeObjectURL(c),e.userData.mimeType=o.mimeType||((t=o.uri).search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/)?"image/jpeg":t.search(/\.webp($|\?)/i)>0||0===t.search(/^data\:image\/webp/)?"image/webp":"image/png"),e})).catch((function(e){throw e}));return this.sourceCache[e]=u,u}
/**
	 * Asynchronously assigns a texture to the given material parameters.
	 * @param {Object} materialParams
	 * @param {string} mapName
	 * @param {Object} mapDef
	 * @return {Promise<Texture>}
	 */assignTexture(e,t,n,r){const i=this;return this.getDependency("texture",n.index).then((function(a){if(!a)return null;
// Materials sample aoMap from UV set 1 and other maps from UV set 0 - this can't be configured
// However, we will copy UV set 0 to UV set 1 on demand for aoMap
if(void 0!==n.texCoord&&0!=n.texCoord&&("aoMap"!==t||n.texCoord),i.extensions[s.KHR_TEXTURE_TRANSFORM]){const e=void 0!==n.extensions?n.extensions[s.KHR_TEXTURE_TRANSFORM]:void 0;if(e){const t=i.associations.get(a);a=i.extensions[s.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return void 0!==r&&(a.encoding=r),e[t]=a,a}))}
/**
	 * Assigns final material to a Mesh, Line, or Points instance. The instance
	 * already has a material (generated from the glTF material options alone)
	 * but reuse of the same glTF material may require multiple threejs materials
	 * to accommodate different primitive types, defines, etc. New materials will
	 * be created if necessary, and reused from a cache.
	 * @param  {Object3D} mesh Mesh, Line, or Points instance.
	 */assignFinalMaterial(e){const t=e.geometry;let n=e.material;const i=void 0===t.attributes.tangent,a=void 0!==t.attributes.color,o=void 0===t.attributes.normal;if(e.isPoints){const e="PointsMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new r.nb,r.S.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,// glTF spec says points should be 1px
this.cache.add(e,t)),n=t}else if(e.isLine){const e="LineBasicMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new r.H,r.S.prototype.copy.call(t,n),t.color.copy(n.color),this.cache.add(e,t)),n=t}
// Clone the material if it will be modified
if(i||a||o){let e="ClonedMaterial:"+n.uuid+":";i&&(e+="derivative-tangents:"),a&&(e+="vertex-colors:"),o&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),a&&(t.vertexColors=!0),o&&(t.flatShading=!0),i&&(
// https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995
t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}
// workarounds for mesh and geometry
n.aoMap&&void 0===t.attributes.uv2&&void 0!==t.attributes.uv&&t.setAttribute("uv2",t.attributes.uv),e.material=n}getMaterialType(){return r.bb}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
	 * @param {number} materialIndex
	 * @return {Promise<Material>}
	 */loadMaterial(e){const t=this,n=this.json,i=this.extensions,a=n.materials[e];let o;const c={},l=[];if((a.extensions||{})[s.KHR_MATERIALS_UNLIT]){const e=i[s.KHR_MATERIALS_UNLIT];o=e.getMaterialType(),l.push(e.extendParams(c,a,t))}else{
// Specification:
// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#metallic-roughness-material
const n=a.pbrMetallicRoughness||{};if(c.color=new r.j(1,1,1),c.opacity=1,Array.isArray(n.baseColorFactor)){const e=n.baseColorFactor;c.color.fromArray(e),c.opacity=e[3]}void 0!==n.baseColorTexture&&l.push(t.assignTexture(c,"map",n.baseColorTexture,r.Tb)),c.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,c.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(l.push(t.assignTexture(c,"metalnessMap",n.metallicRoughnessTexture)),l.push(t.assignTexture(c,"roughnessMap",n.metallicRoughnessTexture))),o=this._invokeOne((function(t){return t.getMaterialType&&t.getMaterialType(e)})),l.push(Promise.all(this._invokeAll((function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,c)}))))}!0===a.doubleSided&&(c.side=r.p);const u=a.alphaMode||z;if(u===U?(c.transparent=!0,
// See: https://github.com/mrdoob/three.js/issues/17706
c.depthWrite=!1):(c.transparent=!1,u===H&&(c.alphaTest=void 0!==a.alphaCutoff?a.alphaCutoff:.5)),void 0!==a.normalTexture&&o!==r.X&&(l.push(t.assignTexture(c,"normalMap",a.normalTexture)),c.normalScale=new r.Ob(1,1),void 0!==a.normalTexture.scale)){const e=a.normalTexture.scale;c.normalScale.set(e,e)}return void 0!==a.occlusionTexture&&o!==r.X&&(l.push(t.assignTexture(c,"aoMap",a.occlusionTexture)),void 0!==a.occlusionTexture.strength&&(c.aoMapIntensity=a.occlusionTexture.strength)),void 0!==a.emissiveFactor&&o!==r.X&&(c.emissive=(new r.j).fromArray(a.emissiveFactor)),void 0!==a.emissiveTexture&&o!==r.X&&l.push(t.assignTexture(c,"emissiveMap",a.emissiveTexture,r.Tb)),Promise.all(l).then((function(){const n=new o(c);return a.name&&(n.name=a.name),V(n,a),t.associations.set(n,{materials:e}),a.extensions&&G(i,n,a),n}))}
/** When Object3D instances are targeted by animation, they need unique names. */createUniqueName(e){const t=r.ob.sanitizeNodeName(e||"");let n=t;for(let e=1;this.nodeNamesUsed[n];++e)n=t+"_"+e;return this.nodeNamesUsed[n]=!0,n}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#geometry
	 *
	 * Creates BufferGeometries from primitives.
	 *
	 * @param {Array<GLTF.Primitive>} primitives
	 * @return {Promise<Array<BufferGeometry>>}
	 */loadGeometries(e){const t=this,n=this.extensions,i=this.primitiveCache;function a(e){return n[s.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return X(n,e,t)}))}const o=[];for(let n=0,c=e.length;n<c;n++){const c=e[n],l=q(c),u=i[l];if(u)
// Use the cached geometry if it exists
o.push(u.promise);else{let e;
// Use DRACO geometry if available
e=c.extensions&&c.extensions[s.KHR_DRACO_MESH_COMPRESSION]?a(c):X(new r.g,c,t),
// Cache this geometry
i[l]={primitive:c,promise:e},o.push(e)}}return Promise.all(o)}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes
	 * @param {number} meshIndex
	 * @return {Promise<Group|Mesh|SkinnedMesh>}
	 */loadMesh(e){const t=this,n=this.json,a=this.extensions,o=n.meshes[e],s=o.primitives,c=[];for(let e=0,t=s.length;e<t;e++){const t=void 0===s[e].material?(void 0===(l=this.cache).DefaultMaterial&&(l.DefaultMaterial=new r.bb({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:r.v})),l.DefaultMaterial):this.getDependency("material",s[e].material);c.push(t)}
/**
 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material
 */
var l;return c.push(t.loadGeometries(s)),Promise.all(c).then((function(n){const c=n.slice(0,n.length-1),l=n[n.length-1],u=[];for(let n=0,h=l.length;n<h;n++){const h=l[n],f=s[n];
// 1. create Mesh
let d;const p=c[n];if(f.mode===D.TRIANGLES||f.mode===D.TRIANGLE_STRIP||f.mode===D.TRIANGLE_FAN||void 0===f.mode)
// .isSkinnedMesh isn't in glTF spec. See ._markDefs()
d=!0===o.isSkinnedMesh?new r.Bb(h,p):new r.W(h,p),!0===d.isSkinnedMesh&&
// normalize skin weights to fix malformed assets (see #15319)
d.normalizeSkinWeights(),f.mode===D.TRIANGLE_STRIP?d.geometry=i(d.geometry,r.Lb):f.mode===D.TRIANGLE_FAN&&(d.geometry=i(d.geometry,r.Kb));else if(f.mode===D.LINES)d=new r.J(h,p);else if(f.mode===D.LINE_STRIP)d=new r.G(h,p);else if(f.mode===D.LINE_LOOP)d=new r.I(h,p);else{if(f.mode!==D.POINTS)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+f.mode);d=new r.mb(h,p)}Object.keys(d.geometry.morphAttributes).length>0&&W(d,o),d.name=t.createUniqueName(o.name||"mesh_"+e),V(d,o),f.extensions&&G(a,d,f),t.assignFinalMaterial(d),u.push(d)}for(let n=0,r=u.length;n<r;n++)t.associations.set(u[n],{meshes:e,primitives:n});if(1===u.length)return u[0];const h=new r.w;t.associations.set(h,{meshes:e});for(let e=0,t=u.length;e<t;e++)h.add(u[e]);return h}))}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#cameras
	 * @param {number} cameraIndex
	 * @return {Promise<THREE.Camera>}
	 */loadCamera(e){let t;const n=this.json.cameras[e],i=n[n.type];if(i)return"perspective"===n.type?t=new r.kb(r.T.radToDeg(i.yfov),i.aspectRatio||1,i.znear||1,i.zfar||2e6):"orthographic"===n.type&&(t=new r.jb(-i.xmag,i.xmag,i.ymag,-i.ymag,i.znear,i.zfar)),n.name&&(t.name=this.createUniqueName(n.name)),V(t,n),Promise.resolve(t)}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
	 * @param {number} skinIndex
	 * @return {Promise<Skeleton>}
	 */loadSkin(e){const t=this.json.skins[e],n=[];for(let e=0,r=t.joints.length;e<r;e++)n.push(this._loadNodeShallow(t.joints[e]));return void 0!==t.inverseBindMatrices?n.push(this.getDependency("accessor",t.inverseBindMatrices)):n.push(null),Promise.all(n).then((function(e){const t=e.pop(),n=e,i=[],a=[];for(let e=0,o=n.length;e<o;e++){const o=n[e];if(o){i.push(o);const n=new r.V;null!==t&&n.fromArray(t.array,16*e),a.push(n)}}return new r.Ab(i,a)}))}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
	 * @param {number} animationIndex
	 * @return {Promise<AnimationClip>}
	 */loadAnimation(e){const t=this.json.animations[e],n=[],i=[],a=[],o=[],s=[];for(let e=0,r=t.channels.length;e<r;e++){const r=t.channels[e],c=t.samplers[r.sampler],l=r.target,u=l.node,h=void 0!==t.parameters?t.parameters[c.input]:c.input,f=void 0!==t.parameters?t.parameters[c.output]:c.output;n.push(this.getDependency("node",u)),i.push(this.getDependency("accessor",h)),a.push(this.getDependency("accessor",f)),o.push(c),s.push(l)}return Promise.all([Promise.all(n),Promise.all(i),Promise.all(a),Promise.all(o),Promise.all(s)]).then((function(n){const i=n[0],a=n[1],o=n[2],s=n[3],c=n[4],l=[];for(let e=0,t=i.length;e<t;e++){const t=i[e],n=a[e],u=o[e],h=s[e],f=c[e];if(void 0===t)continue;let d;switch(t.updateMatrix(),N[f.path]){case N.weights:d=r.gb;break;case N.rotation:d=r.qb;break;default:d=r.Rb}const p=t.name?t.name:t.uuid,g=void 0!==h.interpolation?F[h.interpolation]:r.F,m=[];N[f.path]===N.weights?t.traverse((function(e){e.morphTargetInfluences&&m.push(e.name?e.name:e.uuid)})):m.push(p);let v=u.array;if(u.normalized){const e=K(v.constructor),t=new Float32Array(v.length);for(let n=0,r=v.length;n<r;n++)t[n]=v[n]*e;v=t}for(let e=0,t=m.length;e<t;e++){const t=new d(m[e]+"."+N[f.path],n.array,v,g);
// Override interpolation with custom factory method.
"CUBICSPLINE"===h.interpolation&&(t.createInterpolant=function(e){return new(this instanceof r.qb?O:M)(this.times,this.values,this.getValueSize()/3,e)},
// Mark as CUBICSPLINE. `track.getInterpolation()` doesn't support custom interpolants.
t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0),l.push(t)}}const u=t.name?t.name:"animation_"+e;return new r.b(u,void 0,l)}))}createNodeMesh(e){const t=this.json,n=this,r=t.nodes[e];return void 0===r.mesh?null:n.getDependency("mesh",r.mesh).then((function(e){const t=n._getNodeRef(n.meshCache,r.mesh,e);
// if weights are provided on the node, override weights on the mesh.
return void 0!==r.weights&&t.traverse((function(e){if(e.isMesh)for(let t=0,n=r.weights.length;t<n;t++)e.morphTargetInfluences[t]=r.weights[t]})),t}))}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#nodes-and-hierarchy
	 * @param {number} nodeIndex
	 * @return {Promise<Object3D>}
	 */loadNode(e){const t=this,n=this.json.nodes[e],r=t._loadNodeShallow(e),i=[],a=n.children||[];for(let e=0,n=a.length;e<n;e++)i.push(t.getDependency("node",a[e]));const o=void 0===n.skin?Promise.resolve(null):t.getDependency("skin",n.skin);return Promise.all([r,Promise.all(i),o]).then((function(e){const t=e[0],n=e[1],r=e[2];null!==r&&
// This full traverse should be fine because
// child glTF nodes have not been added to this node yet.
t.traverse((function(e){e.isSkinnedMesh&&e.bind(r,$)}));for(let e=0,r=n.length;e<r;e++)t.add(n[e]);return t}))}
// ._loadNodeShallow() parses a single node.
// skin and child nodes are created and added in .loadNode() (no '_' prefix).
_loadNodeShallow(e){const t=this.json,n=this.extensions,i=this;
// This method is called from .loadNode() and .loadSkin().
// Cache a node to avoid duplication.
if(void 0!==this.nodeCache[e])return this.nodeCache[e];const a=t.nodes[e],o=a.name?i.createUniqueName(a.name):"",s=[],c=i._invokeOne((function(t){return t.createNodeMesh&&t.createNodeMesh(e)}));
// reserve node's name before its dependencies, so the root has the intended name.
return c&&s.push(c),void 0!==a.camera&&s.push(i.getDependency("camera",a.camera).then((function(e){return i._getNodeRef(i.cameraCache,a.camera,e)}))),i._invokeAll((function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)})).forEach((function(e){s.push(e)})),this.nodeCache[e]=Promise.all(s).then((function(t){let s;
// .isBone isn't in glTF spec. See ._markDefs
if(s=!0===a.isBone?new r.d:t.length>1?new r.w:1===t.length?t[0]:new r.hb,s!==t[0])for(let e=0,n=t.length;e<n;e++)s.add(t[e]);if(a.name&&(s.userData.name=a.name,s.name=o),V(s,a),a.extensions&&G(n,s,a),void 0!==a.matrix){const e=new r.V;e.fromArray(a.matrix),s.applyMatrix4(e)}else void 0!==a.translation&&s.position.fromArray(a.translation),void 0!==a.rotation&&s.quaternion.fromArray(a.rotation),void 0!==a.scale&&s.scale.fromArray(a.scale);return i.associations.has(s)||i.associations.set(s,{}),i.associations.get(s).nodes=e,s})),this.nodeCache[e]}
/**
	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#scenes
	 * @param {number} sceneIndex
	 * @return {Promise<Group>}
	 */loadScene(e){const t=this.extensions,n=this.json.scenes[e],i=this,a=new r.w;n.name&&(a.name=i.createUniqueName(n.name)),V(a,n),n.extensions&&G(t,a,n);const o=n.nodes||[],s=[];for(let e=0,t=o.length;e<t;e++)s.push(i.getDependency("node",o[e]));return Promise.all(s).then((function(e){for(let t=0,n=e.length;t<n;t++)a.add(e[t]);
// Removes dangling associations, associations that reference a node that
// didn't make it into the scene.
return i.associations=(e=>{const t=new Map;for(const[e,n]of i.associations)(e instanceof r.S||e instanceof r.Ib)&&t.set(e,n);return e.traverse((e=>{const n=i.associations.get(e);null!=n&&t.set(e,n)})),t})(a),a}))}}
/**
 * @param {BufferGeometry} geometry
 * @param {GLTF.Primitive} primitiveDef
 * @param {GLTFParser} parser
 */
/**
 * @param {BufferGeometry} geometry
 * @param {GLTF.Primitive} primitiveDef
 * @param {GLTFParser} parser
 * @return {Promise<BufferGeometry>}
 */
function X(e,t,n){const i=t.attributes,a=[];function o(t,r){return n.getDependency("accessor",t).then((function(t){e.setAttribute(r,t)}))}for(const t in i){const n=j[t]||t.toLowerCase();
// Skip attributes already provided by e.g. Draco extension.
n in e.attributes||a.push(o(i[t],n))}if(void 0!==t.indices&&!e.index){const r=n.getDependency("accessor",t.indices).then((function(t){e.setIndex(t)}));a.push(r)}return V(e,t),function(e,t,n){const i=t.attributes,a=new r.e;if(void 0===i.POSITION)return;{const e=n.json.accessors[i.POSITION],t=e.min,o=e.max;
// glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.
if(void 0===t||void 0===o)return;if(a.set(new r.Pb(t[0],t[1],t[2]),new r.Pb(o[0],o[1],o[2])),e.normalized){const t=K(P[e.componentType]);a.min.multiplyScalar(t),a.max.multiplyScalar(t)}}const o=t.targets;if(void 0!==o){const e=new r.Pb,t=new r.Pb;for(let r=0,i=o.length;r<i;r++){const i=o[r];if(void 0!==i.POSITION){const r=n.json.accessors[i.POSITION],a=r.min,o=r.max;
// glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.
if(void 0!==a&&void 0!==o){if(
// we need to get max of absolute components because target weight is [-1,1]
t.setX(Math.max(Math.abs(a[0]),Math.abs(o[0]))),t.setY(Math.max(Math.abs(a[1]),Math.abs(o[1]))),t.setZ(Math.max(Math.abs(a[2]),Math.abs(o[2]))),r.normalized){const e=K(P[r.componentType]);t.multiplyScalar(e)}
// Note: this assumes that the sum of all weights is at most 1. This isn't quite correct - it's more conservative
// to assume that each target can have a max weight of 1. However, for some use cases - notably, when morph targets
// are used to implement key-frame animations and as such only two are active at a time - this results in very large
// boxes. So for now we make a box that's sometimes a touch too small but is hopefully mostly of reasonable size.
e.max(t)}}}
// As per comment above this box isn't conservative, but has a reasonable size for a very large number of morph targets.
a.expandByVector(e)}e.boundingBox=a;const s=new r.Cb;a.getCenter(s.center),s.radius=a.min.distanceTo(a.max)/2,e.boundingSphere=s}(e,t,n),Promise.all(a).then((function(){return void 0!==t.targets?function(e,t,n){let r=!1,i=!1,a=!1;for(let e=0,n=t.length;e<n;e++){const n=t[e];if(void 0!==n.POSITION&&(r=!0),void 0!==n.NORMAL&&(i=!0),void 0!==n.COLOR_0&&(a=!0),r&&i&&a)break}if(!r&&!i&&!a)return Promise.resolve(e);const o=[],s=[],c=[];for(let l=0,u=t.length;l<u;l++){const u=t[l];if(r){const t=void 0!==u.POSITION?n.getDependency("accessor",u.POSITION):e.attributes.position;o.push(t)}if(i){const t=void 0!==u.NORMAL?n.getDependency("accessor",u.NORMAL):e.attributes.normal;s.push(t)}if(a){const t=void 0!==u.COLOR_0?n.getDependency("accessor",u.COLOR_0):e.attributes.color;c.push(t)}}return Promise.all([Promise.all(o),Promise.all(s),Promise.all(c)]).then((function(t){const n=t[0],o=t[1],s=t[2];return r&&(e.morphAttributes.position=n),i&&(e.morphAttributes.normal=o),a&&(e.morphAttributes.color=s),e.morphTargetsRelative=!0,e}))}(e,t.targets,n):e}))}
/***/},
/***/"34e1":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),a=n("46c4"),o=n("35a1");e.exports=function(e,t){t&&"string"==typeof e||i(e);var n=o(e);return a(i(void 0!==n?r(n,e):e))}},
/***/3511:
/***/function(e,t,n){"use strict";var r=TypeError;// 2 ** 53 - 1 == 9007199254740991
e.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},
/***/3529:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("f069"),s=n("e667"),c=n("2266");
// `Promise.race` method
// https://tc39.es/ecma262/#sec-promise.race
r({target:"Promise",stat:!0,forced:n("5eed")},{race:function(e){var t=this,n=o.f(t),r=n.reject,l=s((function(){var o=a(t.resolve);c(e,(function(e){i(o,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},
/***/3579:
/***/function(e,t,n){"use strict";
/* harmony default export */t.a={
// Options.jsx
items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",
// Pagination.jsx
prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}},
/***/"357d":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/3593:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("18ce"),i=n("c449"),a=n.n(i),o=n("a026");
/* harmony import */function s(e,t,n){var i=void 0,o=void 0,s=void 0;return Object(r.a)(e,"ant-motion-collapse-legacy",{start:function(){s&&a.a.cancel(s),t?
// not get offsetHeight when appear
// set it into raf get correct offsetHeight
0===(i=e.offsetHeight)?s=a()((function(){i=e.offsetHeight,e.style.height="0px",e.style.opacity="0"})):(e.style.height="0px",e.style.opacity="0"):(e.style.height=e.offsetHeight+"px",e.style.opacity="1")},active:function(){o&&a.a.cancel(o),o=a()((function(){e.style.height=(t?i:0)+"px",e.style.opacity=t?"1":"0"}))},end:function(){s&&a.a.cancel(s),o&&a.a.cancel(o),e.style.height="",e.style.opacity="",n&&n()}})}var c={enter:function(e,t){o.default.nextTick((function(){s(e,!0,t)}))},leave:function(e,t){return s(e,!1,t)}};
/* harmony default export */t.a=c},
/***/"35a1":
/***/function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),a=n("7234"),o=n("3f8c"),s=n("b622")("iterator");e.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},
/***/3648:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/3654:
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: registerAnimation, registerShape, Global
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
var r=n("2ef0"),i=/on(.+)(MouseEnter|MouseMove|MouseLeave|Click|DdlClick|MouseDown|MouseUp|TouchStart|TouchMove|TouchEnd)/;
// CONCATENATED MODULE: ./node_modules/viser/es/utils/EventUtils.js
function a(e,t,n,a){if(!r.isEmpty(n)){var o=i.exec(n);if(o&&!(o.length<=2)){var s=o[1].toLowerCase(),c=o[2].toLowerCase(),l=t+"-"+s;e.on(l+":"+c,(function(t){a&&a(t,e)}))}}}function o(e,t,n){if(!r.isEmpty(n)){var i=Object.keys(n).filter((function(e){return/^on/.test(e)}));r.isEmpty(i)||i.forEach((function(r){var i=r.slice(2,r.length).toLowerCase(),a=n[r];if(n.gemo&&i.indexOf("label")>=0){var o=i.replace("label","");e.on("label:"+o,(function(t){a&&a(t,e)}))}else t?e.on(t+":"+i,(function(t){a&&a(t,e)})):e.on(i,(function(t){a&&a(t,e)}))}))}}
//# sourceMappingURL=EventUtils.js.map
// CONCATENATED MODULE: ./node_modules/d3-format/src/formatDecimal.js
/* harmony default export */
// Computes the decimal coefficient and exponent of the specified number x with
// significant digits p, where x is positive and p is in [1, 21] or undefined.
// For example, formatDecimalParts(1.23) returns ["123", 0].
function s(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;// NaN, ±Infinity
var n,r=e.slice(0,n);
// The string returned by toExponential either has the form \d\.\d+e[-+]\d+
// (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}
// CONCATENATED MODULE: ./node_modules/d3-format/src/exponent.js
/* harmony default export */var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
// CONCATENATED MODULE: ./node_modules/d3-format/src/formatGroup.js
/* harmony default export */function l(e){if(!(t=c.exec(e)))throw new Error("invalid format: "+e);var t;return new u({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}// instanceof
function u(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}l.prototype=u.prototype,u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};
// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTrim.js
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
/* harmony default export */var h,f,d,p=function(e,t){var n=s(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},g={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return p(100*e,t)},r:p,s:function(e,t){var n=s(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(h=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+s(e,Math.max(0,t+a-1))[0];// less than 1y!
},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},m=function(e){return e},v=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
// CONCATENATED MODULE: ./node_modules/d3-format/src/formatPrefixAuto.js
f=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?m:(t=v.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?m:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(v.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"-":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=l(e)).fill,n=e.align,s=e.sign,p=e.symbol,m=e.zero,v=e.width,A=e.comma,b=e.precision,w=e.trim,x=e.type;
// The "n" type is an alias for ",g".
"n"===x?(A=!0,x="g"):g[x]||(void 0===b&&(b=12),w=!0,x="g"),
// If zero fill is specified, padding goes after sign and before digits.
(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");
// Compute the prefix and suffix.
// For SI-prefix, the suffix is lazily computed.
var C="$"===p?i:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",_="$"===p?a:/[%p]/.test(x)?u:"",I=g[x],E=/[defgprs%]/.test(x);
// What format function should we use?
// Is this an integer type?
// Can this type generate exponential notation?
function k(e){var i,a,l,u=C,p=_;if("c"===x)p=I(e)+p,e="";else{
// Determine the sign. -0 is not less than 0, but 1 / -0 is!
var g=(e=+e)<0||1/e<0;
// Perform the initial formatting.
// Break the formatted value into the integer “value” part that can be
// grouped, and fractional or exponential “suffix” part that is not.
if(e=isNaN(e)?d:I(Math.abs(e),b),
// Trim insignificant zeros.
w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),
// If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
g&&0==+e&&"+"!==s&&(g=!1),
// Compute the prefix and suffix.
u=(g?"("===s?s:f:"-"===s||"("===s?"":s)+u,p=("s"===x?y[8+h/3]:"")+p+(g&&"("===s?")":""),E)for(i=-1,a=e.length;++i<a;)if(48>(l=e.charCodeAt(i))||l>57){p=(46===l?o+e.slice(i+1):e.slice(i))+p,e=e.slice(0,i);break}}
// If the fill character is not "0", grouping is applied before padding.
A&&!m&&(e=r(e,1/0));
// Compute the padding.
var k=u.length+e.length+p.length,S=k<v?new Array(v-k+1).join(t):"";
// If the fill character is "0", grouping is applied after padding.
// Reconstruct the final output based on the desired alignment.
switch(A&&m&&(e=r(S+e,S.length?v-p.length:1/0),S=""),n){case"<":e=u+e+p+S;break;case"=":e=u+S+e+p;break;case"^":e=S.slice(0,k=S.length>>1)+u+e+p+S.slice(k);break;default:e=S+u+e+p}return c(e)}
// Set the default precision if not specified,
// or clamp the specified precision to the supported range.
// For significant precision, it must be in [1, 21].
// For fixed precision, it must be in [0, 20].
return b=void 0===b?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),k.toString=function(){return e+""},k}return{format:p,formatPrefix:function(e,t){var n,r=p(((e=l(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=s(Math.abs(n)))?n[1]:NaN)/3)))),a=Math.pow(10,-i),o=y[8+i/3];return function(e){return r(a*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=f.format,f.formatPrefix;
// CONCATENATED MODULE: ./node_modules/viser/es/components/setCustomFormatter.js
var A=function(e){var t=r.get(e,"formatter");if(r.isString(t))return e.formatter=function(e){return d(t)(e)},e;var n=function(t){if(e.hasOwnProperty(t)){var n=r.get(e[t],"formatter");r.isString(n)&&(e[t].formatter=function(e){return d(n)(e)})}};for(var i in e)n(i);return e},b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b.apply(this,arguments)};
//# sourceMappingURL=setCustomFormatter.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/components/setAxisConfig.js
var w=function(e,t,n){void 0===n&&(n=!1);var i=r.cloneDeep(t.axis),o=r.isArray(i);if(r.isNil(i)||!1===i||o&&0===i.length)return e.axis(!1);if(!0===i)return e.axis();for(var s=o?i:[i],c=t.coord,l=t.data,u=function(t){if(c&&"polar"===c.type&&"rotate"===c.direction&&function(e,t,n,i){var a=r.get(t,"polarLabel"),o=r.get(t,"polarLabel.rotate");if(o){var s={};"parallel"===o?s={rotate:n.startAngle,textAlign:"center"}:"normal"===o&&(s={rotate:n.startAngle+90,textAlign:"right"});var c=r.get(t,"polarLabel.offsetX"),l=r.get(t,"polarLabel.offsetY");i.forEach((function(n,r){e.guide().text(b({position:[r,0],content:i[r][t.dataKey],style:b({polarLabel:a},s)},c,l))}))}}(e,t,c,l),t.label&&(t.label=A(t.label)),!n)for(var i in t){if(t.hasOwnProperty(i))a(e,"axis","tickLine"===i?"ticks":i,t[i])}if(t.dataKey)if(!1===t.show)e.axis(t.dataKey,!1);else{var o=r.omit(t,["show","dataKey"]),s=o.label;if(s&&r.isNumber(s.density)&&0<s.density&&s.density<1&&r.isFunction(s.formatter)){var u=Math.floor(1/s.density),h=s.formatter;o.label.formatter=function(e,t,n){return n%u?" ":h(e,t,n)}}e.axis(t.dataKey,o)}else e.axis(t)},h=0,f=s;h<f.length;h++){u(f[h])}return e},x=function(e){return e*Math.PI/180},C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)};
//# sourceMappingURL=setAxisConfig.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/utils/PolarUtils.js
var _=function(e,t){var n=r.cloneDeep(t.coord);if(!n||!n.type)return e.coord("rect");var i=n.type;return"polar"===i||"theta"===i||"helix"===i?function(e,t){var n={};if(t.radius&&(t.radius<0||t.radius>1)||t.innerRadius&&(t.innerRadius<0||t.innerRadius>1))throw new Error("please set correct radius or innerRadius");if(t.radius&&(n=C({},n,{radius:t.radius})),t.innerRadius&&(n=C({},n,{innerRadius:t.innerRadius})),t.startAngle||t.endAngle){if(t.startAngle&&(t.startAngle<-360||t.startAngle>360))throw new Error("please set correct starAngle");if(n=C({},n,{startAngle:x(t.startAngle)}),t.endAngle&&(t.endAngle<-360||t.endAngle>360))throw new Error("please set correct endAngle");n=C({},n,{endAngle:x(t.endAngle)})}var r=e.coord(t.type,C({},n));switch(t.direction){case"rotate":r.transpose();break;case"xReverse":r.reflect("x");break;case"yReverse":r.reflect("y");break;case"reverse":r.reflect()}return t.rotate&&r.rotate(t.rotate),r}(e,n):"rect"===i?function(e,t){if(!t.direction)return e.coord("rect");switch(t.direction){case"BL":default:e.coord("rect");break;case"BR":e.coord("rect").scale(-1,1);break;case"LT":e.coord("rect").transpose().scale(1,-1);break;case"LB":e.coord("rect").transpose();break;case"RB":e.coord("rect").transpose().reflect();break;case"RT":e.coord("rect").transpose().reflect().scale(-1,1);break;case"TL":e.coord("rect").reflect();break;case"TR":e.coord("rect").reflect().scale(-1,1)}return e}(e,n):e.coord(i)},I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},I.apply(this,arguments)};
//# sourceMappingURL=setCoordConfig.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/components/setFilterConfig.js
var E=function(e,t,n){void 0===n&&(n=!1);var i=r.cloneDeep(t.guide),a=Array.isArray(i);if(!r.isNil(i)&&!r.isEmpty(i))return(a?i:[i]).forEach((function(t){n||o(e,"guide-"+t.type,t),"line"===t.type?function(e,t){if("parallel"===t.quickType){var n=t.data;e.guide().line(I({start:["min",n],end:["max",n]},t))}else"normal"===t.quickType?(n=t.data,e.guide().line(I({start:[n,"min"],end:[n,"max"]},t))):e.guide().line(t)}(e,t):"region"===t.type?e.guide().region(t):"arc"===t.type?function(e,t){if("parallel"===t.quickType){var n=t.data;e.guide().arc(I({start:["min",n],end:["max",n]},t)),e.guide().arc(I({start:["max",n],end:["min",n]},t))}else"normal"===t.quickType?(n=t.data,e.guide().line(I({start:[n,"min"],end:[n,"max"]},t))):e.guide().arc(t)}(e,t):"text"===t.type?e.guide().text(t):"image"===t.type?e.guide().image(t):"html"===t.type?e.guide().html(t):"dataMarker"===t.type?e.guide().dataMarker(t):"regionFilter"===t.type?e.guide().regionFilter(t):"dataRegion"===t.type&&e.guide().dataRegion(t)})),e};
//# sourceMappingURL=setGuideConfig.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/components/setLegendConfig.js
function k(e){return e.onHover=function(e){var t=e.shapes;e.geom.highlightShapes(t)},e}var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},B=[{type:"pie",series:{gemo:"interval",adjust:"stack"},coord:{type:"theta"}},{type:"sector",series:{gemo:"interval"},coord:{type:"polar"}},{type:"line",series:{gemo:"line"}},{type:"smoothLine",series:{gemo:"line",shape:"smooth"}},{type:"dashLine",series:{gemo:"line",shape:"dash"}},{type:"stackLine",series:{gemo:"line",adjust:"stack"}},{type:"area",series:{gemo:"area"}},{type:"stackArea",series:{gemo:"area",adjust:"stack"}},{type:"smoothArea",series:{gemo:"area",shape:"smooth"}},{type:"interval",series:{gemo:"interval"}},{type:"stackInterval",series:{gemo:"interval",adjust:"stack"}},{type:"dodgeInterval",series:{gemo:"interval",shape:"interval",adjust:"dodge"}},{type:"bar",series:{gemo:"interval"}},{type:"stackBar",series:{gemo:"interval",shape:"interval",adjust:"stack"}},{type:"dodgeBar",series:{gemo:"interval",shape:"interval",adjust:"dodge"}},{type:"point",series:{gemo:"point",shape:"hollowCircle"}},{type:"funnel",series:{gemo:"interval",adjust:"symmetric",shape:"funnel"}},{type:"pyramid",series:{gemo:"interval",adjust:"symmetric",shape:"pyramid"}},{type:"schema",series:{gemo:"schema",shape:"box"}},{type:"box",series:{gemo:"schema",shape:"box"}},{type:"candle",series:{gemo:"schema",shape:"candle"}},{type:"polygon",series:{gemo:"polygon"}},{type:"contour",series:{gemo:"contour"}},{type:"heatmap",series:{gemo:"heatmap"}},{type:"edge",series:{gemo:"edge"}},{type:"sankey",series:{gemo:"edge",shape:"sankey"}},{type:"errorBar",series:{gemo:"schema",shape:"errorbar"}},{type:"jitterPoint",series:{gemo:"point",adjust:"jitter"}},{type:"path",series:{gemo:"path"}},{type:"venn",series:{gemo:"venn"}}];
//# sourceMappingURL=setLegendConfig.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/components/setScaleConfig.js
var M=function(e,t,n){void 0===n&&(n=!1);var i=r.cloneDeep(t.series),s=r.isArray(i);if(r.isNil(i)||r.isEmpty(i))return e;var c,l=s?i:[i];return l=function(e,t){for(var n={},i=0,a=B;i<a.length;i++){var o=a[i];n[o.type]=o}for(var s=0;s<e.length;s++){var c=n[e[s].quickType];if(c&&(e[s]=S({},c.series,e[s]),t&&t.type&&r.get(c,"coord.type")&&r.get(c,"coord.type")!==t.type))throw new Error("quickType and coord had conflicted.")}return e}(l,t.coord),(l=r.sortBy(l,"zIndex")).forEach((function(t){for(var i in n||o(e,t.gemo,t),t)t.hasOwnProperty(i)&&a(e,"label",name,t[i]);c=
//# sourceMappingURL=setQuickType.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/components/setSeriesConfig.js
function(e,t){switch(t.gemo){case"line":default:e=e.line();break;case"area":e=e.area();break;case"bar":case"interval":e=e.interval();break;case"point":e=e.point();break;case"schema":e=e.schema();break;case"polygon":e=e.polygon();break;case"contour":e=e.contour();break;case"heatmap":e=e.heatmap();break;case"edge":e=e.edge();break;case"path":e=e.path();break;case"venn":e=e.venn()}return e}(e,t),c=function(e,t){var n=t.position;return r.isNil(n)?e:e.position(n)}(c,t),c=function(e,t){var n=t.adjust;return r.isNil(n)?e:e.adjust(n)}(c,t),c=function(e,t){var n=t.shape;return r.isString(n)?e.shape(n):r.isArray(n)&&n.length>=1?n[1]?e.shape(n[0],n[1]):e.shape(n[0]):e}(c,t),c=function(e,t){var n=t.color;return r.isString(n)?e.color(n):r.isArray(n)&&n.length>=1?n[1]?e.color(n[0],n[1]):e.color(n[0]):e}(c,t),c=function(e,t){var n=t.opacity;return r.isNumber(n)||r.isString(n)?e.opacity(n):r.isArray(n)&&n.length>=1?n[1]?e.opacity(n[0],n[1]):e.opacity(n[0]):e}(c,t),c=function(e,t){var n=t.size;return r.isNumber(n)||r.isString(n)?e.size(n):r.isArray(n)&&n.length>=1?n[1]?e.size(n[0],n[1]):e.size(n[0]):e}(c,t),c=function(e,t){var n=t.label;if(r.isString(n))return e.label(n);if(r.isArray(n)&&n.length>=2){if(r.isNumber(n[1].density)&&0<n[1].density&&n[1].density<1&&(r.isFunction(n[1].formatter)||r.isString(n[1].formatter))){var i=Math.floor(1/n[1].density),a=r.isString(n[1].formatter)?A(n[1]).formatter:n[1].formatter;n[1].formatter=function(e,t,n){return n%i?" ":a(e,t,n)}}return e.label.apply(e,n)}return e}(c,t),c=function(e,t){var n=t.tooltip;return r.isBoolean(n)||r.isString(n)?e.tooltip(n):r.isArray(n)&&n.length>=1?n[1]?e.tooltip(n[0],n[1]):e.tooltip(n[0]):e}(c,t),c=function(e,t){var n=t.style;return r.isArray(n)&&n.length>=1?n[1]?e.style(n[0],n[1]):e.style(n[0]):r.isPlainObject(n)?e.style(n):e}(c,t),c=function(e,t){var n=t.select;return r.isBoolean(n)?e.select(n):r.isArray(n)&&n.length>=1?n[1]?e.select(n[0],n[1]):e.select(n[0]):e}(c,t),c=function(e,t){var n=t.active;return r.isArray(n)?e.active.apply(e,n):r.isBoolean(n)||r.isPlainObject(n)?e.active(n):e}(c,t),c=function(e,t){var n=t.animate;return r.isEmpty(n)?e:e.animate(n)}(c,t)})),c},T=n("7f1a"),O=function(e,t,n){T.Shape.registerShape(e,t,n)},D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)};
//# sourceMappingURL=setSeriesConfig.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/components/setTooltipConfig.js
function P(e){return[["M",e[1].x,e[1].y],["L",e[2].x,e[2].y],["Z"],["M",((e[1].x||0)+(e[2].x||0))/2,((e[1].y||0)+(e[2].y||0))/2],["L",((e[0].x||0)+(e[3].x||0))/2,((e[0].y||0)+(e[3].y||0))/2],["Z"],["M",e[0].x,e[0].y],["L",e[3].x,e[3].y],["Z"]]}function L(e,t,n){var r,i,a,o,s=(r=e.x,i=t.x,o=i-(a=+r),function(e){return a+o*e}),c=s(n),l=s(1-n);return["C",c,e.y,l,t.y,t.x,t.y]}var Q=function(){O("edge","sankey",{drawShape:function(e,t){var n=e.points,r=e.style.curvature||.5,i=this.parsePath(function(e,t){var n=[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y]],r=L(e[1],e[3],t);n.push(r),n.push(["L",e[3].x,e[3].y]),n.push(["L",e[2].x,e[2].y]);var i=L(e[2],e[0],t);return n.push(i),n.push(["Z"]),n}(n,r));return t.addShape("path",{attrs:{stroke:"none",strokeOpacity:0,fill:e.color,opacity:e.opacity,path:i}})}})},R=function(){Q(),O("schema","errorbar",{getPoints:function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?[0,0,0]:r,a=e.size,o=void 0===a?0:a;return[{x:n-o/2*1,y:i[0]},{x:n-o/2*1,y:i[2]},{x:n+o/2*1,y:i[2]},{x:n+o/2*1,y:i[0]},{x:n,y:i[1]},{x:n-o/2*1,y:i[1]}]},drawShape:function(e,t){var n=t,r=e.points;return n.addShape("path",{attrs:D({stroke:e.color,strokeOpacity:e.opacity||1,lineWidth:e.style.lineWidth||1,fill:e.color,opacity:e.opacity||1,path:this.parsePath(P(r))},e.style)}),n}})},j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},j.apply(this,arguments)},N=n("7f1a"),F=n("b44f");
//# sourceMappingURL=Sankey.js.map
// CONCATENATED MODULE: ./node_modules/viser/es/shapes/loadShapes.js
/* harmony default export */var z=function(){function e(e){this.viewInstance={},this.config=r.cloneDeep(e),this.checkChartConfig(this.config),this.chartInstance=new N.Chart(this.config.chart)}return e.prototype.getWidth=function(){return this.chartInstance.get("width")},e.prototype.getHeight=function(){return this.chartInstance.get("height")},e.prototype.render=function(){var e=this.config,t=this.chartInstance;R(),this.setEvents(t,e),this.setDataSource(t,e.data),this.setCoord(t,e),this.setTooltip(t,e),this.setAxis(t,e),this.setContent(t,e),this.setLegend(t,e),this.setViews(t,e),this.setFacet(t,e),t.render(),this.setDefaultTooltip(t,e),this.setBrush(t,e)},e.prototype.repaint=function(e){var t=r.cloneDeep(e);this.checkChartConfig(t),this.renderDiffConfig(t)},e.prototype.destroy=function(e){e&&e.destroy()},e.prototype.clear=function(e){e&&e.clear()},e.prototype.checkChartConfig=function(e){var t=e.chart;if(!t||!t.height)throw new Error("please set correct chart option")},e.prototype.createView=function(e,t){var n={};t.start&&(n.start=t.start),t.end&&(n.end=t.end);var r=e.view(n);if(!t.viewId)throw new Error("you must set viewId");return this.viewInstance[t.viewId]=r,r},e.prototype.setEvents=function(e,t){o(e,"",t.chart)},e.prototype.setDataSource=function(e,t){r.isNil(t)||r.isEmpty(t)||e.source(t)},e.prototype.setFilter=function(e,t){return function(e,t){var n=r.cloneDeep(t.filter),i=r.isArray(n);if(!r.isEmpty(n)){for(var a=0,o=i?n:[n];a<o.length;a++){var s=o[a];s.dataKey&&s.callback&&e.filter(s.dataKey,s.callback)}return e}}(e,t)},e.prototype.setScale=function(e,t){return function(e,t){var n=r.cloneDeep(t.scale),i=r.isArray(n);if(!r.isEmpty(n)){for(var a={},o=0,s=i?n:[n];o<s.length;o++){var c=s[o];if(c.dataKey){var l=r.omit(c,"dataKey");a[c.dataKey]=l}}return a=A(a),e.scale(a)}}(e,t)},e.prototype.setCoord=function(e,t){return _(e,t)},e.prototype.setSeries=function(e,t,n){return void 0===n&&(n=!1),M(e,t,n)},e.prototype.setAxis=function(e,t,n){return void 0===n&&(n=!1),w(e,t,n)},e.prototype.setTooltip=function(e,t,n){return void 0===n&&(n=!1),function(e,t,n){void 0===n&&(n=!1);var i=r.cloneDeep(t.tooltip);if(r.isNil(i)||!1===i||!1===i.show)return e.tooltip(!1);for(var a in i)i.hasOwnProperty(a)&&("g2Tooltip"===a&&(i["g2-tooltip"]=i[a],i=r.omit(i,"g2Tooltip")),"g2TooltipTitle"===a&&(i["g2-tooltip-title"]=i[a],i=r.omit(i,"g2TooltipTitle")),"g2TooltipList"===a&&(i["g2-tooltip-list"]=i[a],i=r.omit(i,"g2TooltipList")),"g2TooltipListItem"===a&&(i["g2-tooltip-list-item"]=i[a],i=r.omit(i,"g2TooltipListItem")),"g2TooltipMaker"===a&&(i["g2-tooltip-maker"]=i[a],i=r.omit(i,"g2TooltipMaker")));return n||o(e,"tooltip",i),e.tooltip(i)}(e,t,n)},e.prototype.setDefaultTooltip=function(e,t){return function(e,t){var n=r.cloneDeep(t.tooltip);if(!r.isNil(n)&&!1!==n&&!1!==n.show&&n.defaultPoint){var i=n.defaultPoint,a=e.getXY(i);a&&e.showTooltip(a)}}(e,t)},e.prototype.setGuide=function(e,t,n){return void 0===n&&(n=!1),E(e,t,n)},e.prototype.setLegend=function(e,t,n){return void 0===n&&(n=!1),function(e,t,n){void 0===n&&(n=!1);var i=r.cloneDeep(t.legend),o=Array.isArray(i);if(r.isNil(i)||!1===i||o&&0===i.length)return e.legend(!1);if(!0===i)return e.legend();for(var s=0,c=o?i:[i];s<c.length;s++){var l=c[s];l.highlight&&(l=k(l));var u=function(t){if(l.hasOwnProperty(t)){if("onClick"===t){var r=l.onClick;l.onClick=function(t){r(t,e)}}n||a(e,"legend",t,l[t])}};for(var h in l)u(h);if(r.isNil(l.legendMarker)||(l["g2-legend-marker"]=l.legendMarker),r.isNil(l.legendListItem)||(l["g2-legend-list-item"]=l.legendListItem),r.isNil(l.legendTitle)||(l["g2-legend-title"]=l.legendTitle),r.isNil(l.legendList)||(l["g2-legend-list"]=l.legendList),(l=r.omit(l,["legendMarker","legendListItem","legendTitle","legendList"])).dataKey)if(!1===l.show)e.legend(l.dataKey,!1);else{var f=r.omit(l,["dataKey","show"]);e.legend(l.dataKey,f)}else e.legend(l)}return e}(e,t,n)},e.prototype.setContent=function(e,t,n){void 0===n&&(n=!1),this.setScale(e,t),this.setFilter(e,t),this.setSeries(e,t,n),this.setGuide(e,t,n)},e.prototype.setView=function(e,t,n,i){void 0===i&&(i=!1);var a=this.createView(t,e),o=e.data?e.data:n.data;return this.setDataSource(a,o),r.isNil(e.coord)||this.setCoord(a,e),r.isNil(e.tooltip)||this.setTooltip(a,e,i),r.isNil(e.axis)||this.setAxis(a,e,i),r.isNil(e.guide)||this.setGuide(a,e,i),this.setContent(a,e,i),a},e.prototype.setViews=function(e,t,n){void 0===n&&(n=!1);var i=r.cloneDeep(t.views),a=Array.isArray(i);if(!r.isNil(i)&&!r.isEmpty(i))for(var o=0,s=a?i:[i];o<s.length;o++){var c=s[o];this.setView(c,e,t,n)}},e.prototype.setFacetViews=function(e,t,n,i){void 0===i&&(i=!1),this.setDataSource(e,n.data),r.isNil(n.coord)||this.setCoord(e,n),r.isNil(n.tooltip)||this.setTooltip(e,n,i),r.isNil(n.axis)||this.setAxis(e,n,i),r.isNil(n.guide)||this.setGuide(e,n,i),this.setContent(e,n)},e.prototype.setFacet=function(e,t,n){var i=this;void 0===n&&(n=!1);var a=r.cloneDeep(t.facet);if(!r.isNil(a)&&!r.isEmpty(a)){var o=r.omit(a,["type","views"]);return r.isEmpty(a.views)&&!r.isFunction(a.views)||(r.isFunction(a.views)?o.eachView=function(e,t){i.setFacetViews(e,t,a.views(e,t),n)}:(a.views=Array.isArray(a.views)?a.views:[a.views],o.eachView=function(e,t){i.setFacetViews(e,t,a.views[0],n)})),e.facet(a.type,o)}},e.prototype.setBrush=function(e,t){if(!r.isNil(t.brush)&&!r.isEmpty(t.brush)){var n=t.brush,i=j({},t.brush,{canvas:e.get("canvas"),chart:e}),a=/on(BrushStart|BrushMove|BrushEnd|DragStart|DragMove|DragEnd)/;Object.keys(n).filter((function(e){return a.test(e)})).forEach((function(t){var r=a.exec(t);if(r&&r.length){var o="on"+r[0].toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}));i[o]=function(r){n[t](r,e)}}})),new F(i)}},e.prototype.repaintWidthHeight=function(e,t){var n=r.get(t,"chart.width");n&&e.changeWidth(n);var i=r.get(t,"chart.height");i&&e.changeHeight(i)},e.prototype.renderDiffConfig=function(e){var t=this.chartInstance;this.clear(t),this.setScale(t,e),this.setCoord(t,e),this.setFilter(t,e),this.setAxis(t,e,!0),this.setSeries(t,e,!0),this.setTooltip(t,e,!0),this.setGuide(t,e,!0),this.setViews(t,e,!0),this.setLegend(t,e,!0),this.setFacet(t,e,!0),this.repaintWidthHeight(t,e),e.data&&t.changeData(e.data),t.repaint(),this.setBrush(t,e)},e}(),H=(n("7f1a"),n("dcb1")),U=function(e){var t=document.getElementById(e.container);if(t){t.innerHTML="";var n=new H(e);return n.render(),n}},G=n("7f1a");
/* harmony default export */G.Global;
/* harmony default export */var V=function(e){if(!r.isNil(e)&&!r.isEmpty(e)){var t=function(e){var t=!1;if(r.isEmpty(e.data)||(t=!0),!r.isNil(e.views)&&(r.isPlainObject(e.views)&&!r.isEmpty(e.views.data)&&(t=!0),r.isArray(e.views)))for(var n=0,i=e.views;n<i.length;n++){var a=i[n];r.isEmpty(a.data)||(t=!0)}return t}(e);if(t){var n=new z(e);return n.render(),n}}};
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/viser-vue/es/typed.js
/* harmony default export */var W=function(e){for(var t=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];-1===t.indexOf(i)&&t.push(i)}return t}(e),n={},r=0,i=t;r<i.length;r++){n[i[r]]=null}return n}(["dataKey","position","title","tick","subTick","grid","labels","line","tickLine","subTickCount","subTickLine","useHtml","id","container","height","width","animate","forceFit","background","plotBackground","padding","theme","renderer","filter","type","direction","radius","innerRadius","startAngle","endAngle","rotate","type","fields","rowField","colField","colValue","rowValue","colIndex","rowIndex","showTitle","autoSetAxis","padding","colTitle","rowTitle","eachView","cols","rows","padding","line","lineSmooth","transpose","views","type","position","autoRotate","vStyle","content","offsetX","offsetY","top","zIndex","start","end","lineStyle","line","text","src","width","heigth","alignX","alignY","html","color","apply","lineLength","direction","display","dataKey","show","position","title","titleGap","custom","offset","offsetX","offsetY","items","itemGap","itemsGroup","itemMarginBottom","itemWidth","unCheckColor","background","allowAllCanceled","itemFormatter","marker","textStyle","clickable","hoverable","selectedMode","onHover","onClick","reversed","layout","backPadding","useHtml","autoWrap","autoPosition","container","containerTpl","itemTpl","legendMarker","legendListItem","legendTitle","legendList","legendStyle","slidable","attachLast","flipPage","name","reactive","sizeType","isSegment","defaultClickHandlerEnabled","data","viewId","scale","forceFit","quickType","position","gemo","adjust","color","shape","size","opacity","label","tooltip","vStyle","select","active","animate","x","y","items","show","triggerOn","showTitle","title","crosshairs","offset","inPlot","follow","shared","enterable","position","hideMarkers","containerTpl","itemTpl","g2Tooltip","g2TooltipTitle","g2TooltipList","g2TooltipListItem","g2TooltipMarker","onShow","onHide","onChange","defaultPoint","timeStamp","plotRange","htmlContent","useHtml","type","pie","sector","line","smoothLine","dashLine","area","stackArea","smoothArea","bar","stackBar","dodgeBar","interval","stackInterval","dodgeInterval","point","funnel","pyramid","schema","box","candle","polygon","contour","heatmap","edge","sankey","errorBar","jitterPoint","venn","canvas","startPoint","brushing","dragging","brushShape","container","polygonPath","type","dragable","dragoffX","dragoffY","inPlot","xField","yField","filter","onBrushstart","onBrushmove","onBrushend","onDragstart","onDragmove","onDragend","container","xAxis","yAxis","data","width","height","padding","start","end","minSpan","maxSpan","scales","fillerStyle","backgroundStyle","textStyle","handleStyle","backgroundChart","onChange","start","end","onMouseEnter","onMouseDown","onMouseMove","onMouseLeave","onMouseUp","onClick","onDblClick","onTouchStart","onTouchMove","onTouchEnd","onPlotEnter","onPlotMove","onPlotLeave","onPlotClick","onPlotDblClick","onTitleMouseDown","onTitleMouseMove","onTitleMouseLeave","onTitleMouseUp","onTitleClick","onTitleDblClick","onTitleTouchStart","onTitleTouchMove","onTitleTouchEnd","onItemMouseDown","onItemMouseMove","onItemMouseLeave","onItemMouseUp","onItemClick","onItemDblClick","onItemTouchStart","onItemTouchMove","onItemTouchEnd","onMarkerMouseDown","onMarkerMouseMove","onMarkerMouseLeave","onMarkerMouseUp","onMarkerClick","onMarkerDblClick","onMarkerTouchStart","onMarkerTouchMove","onMarkerTouchEnd","onTextMouseDown","onTextMouseMove","onTextMouseLeave","onTextMouseUp","onTextClick","onTextDblClick","onTextTouchStart","onTextTouchMove","onTextTouchEnd","onLabelMouseDown","onLabelMouseMove","onLabelMouseLeave","onLabelMouseUp","onLabelClick","onLabelDblClick","onLabelTouchStart","onLabelTouchMove","onLabelTouchEnd","onTicksMouseDown","onTicksMouseMove","onTicksMouseLeave","onTicksMouseUp","onTicksClick","onTicksDblClick","onTicksTouchStart","onTicksTouchMove","onTicksTouchEnd","onLineMouseDown","onLineMouseMove","onLineMouseLeave","onLineMouseUp","onLineClick","onLineDblClick","onLineTouchStart","onLineTouchMove","onLineTouchEnd","onGridMouseDown","onGridMouseMove","onGridMouseLeave","onGridMouseUp","onGridClick","onGridDblClick","onGridTouchStart","onGridTouchMove","onGridTouchEnd","onGuideRegionClick"]),q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)},Y=["pie","sector","line","smoothline","dashline","area","point","stackarea","stackline","smootharea","bar","stackbar","dodgebar","interval","stackinterval","dodgeinterval","funnel","pyramid","schema","box","candle","polygon","contour","heatmap","edge","sankey","errorbar","jitterpoint","path","venn"],K=["v-chart","v-lite-chart"],$=["v-plugin"],J=["data","scale","filter","viewId"],X=["position","quickType","gemo","adjust","color","shape","size","opacity","label","tooltip","style","animate"],Z=function(){var e=/[-_]+(.)?/g;function t(e,t){return t?t.toUpperCase():""}return function(n,r){return n.replace(r?new RegExp("["+r+"]+(.)?","g"):e,t)}}(),ee={data:function(){return{isViser:!0,jsonForD2:{}}},props:W,methods:{checkIsContainer:function(e){return!!(e.isViser&&K.concat(["v-view","v-facet","v-facet-view","v-plugin"]).indexOf(e.$options._componentTag)>-1)},findNearestRootComponent:function(e){if(this.checkIsContainer(e)){if("v-lite-chart"===e.$options._componentTag)throw Error("v-lite-chart should be no child elements.");return e}return e.$parent?this.findNearestRootComponent(e.$parent):null},createRootD2Json:function(){if("v-plugin"===this.$options._componentTag)return q({},ie(ae(this._props,J)),this.jsonForD2);var e=q({},ie(ae(this._props,J)),{chart:q({container:this.$el},ie(ae(this._props,null,J)))},this.jsonForD2);if("v-lite-chart"===this.$options._componentTag){var t=ie(this._props);Object.keys(t).forEach((function(n){var r=n.toLowerCase();Y.indexOf(r)>-1&&ne(e,"series",q({quickType:n},ae(t,X)))})),oe(e,"axis",!0),oe(e,"legend",!0),oe(e,"tooltip",!0)}return e},freshChart:function(e){if($.indexOf(this.$options._componentTag)>-1){var t=this.createRootD2Json();this.plugins=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"slider"===n&&(t.slider=U(r))}return t}(t)}else if(K.indexOf(this.$options._componentTag)>-1){t=this.createRootD2Json();e&&this.chart?this.chart.repaint(t):this.chart=V(t)}else if("v-view"===this.$options._componentTag){re((n=this.findNearestRootComponent(this.$parent)).jsonForD2,"views",q({},ie(ae(this._props)),this.jsonForD2,{viewId:this._uid}))}else if("v-facet-view"===this.$options._componentTag){(n=this.findNearestRootComponent(this.$parent)).jsonForD2.views=q({},ie(ae(this._props)),this.jsonForD2)}else if("v-facet"===this.$options._componentTag){(n=this.findNearestRootComponent(this.$parent)).jsonForD2.facet=q({},ie(ae(this._props)),this.jsonForD2)}else if("v-slider"===this.$options._componentTag){var n=this.findNearestRootComponent(this.$parent),r=ie(ae(this._props));ie(ae(this._props)).container||(r.container="viser-slider-"+Math.floor((new Date).getTime()+1e4*Math.random()).toString());var i=document.createElement("div");i.id=r.container,this.$parent.$el.appendChild(i),n.jsonForD2.slider=q({},r,this.jsonForD2)}else{if(!(n=this.findNearestRootComponent(this.$parent)))throw Error(this.$options._componentTag+" must be wrapped into v-chart or v-plugin");var a=this.$options._componentTag.replace(/-/g,"").slice(1),o=Z(this.$options._componentTag.slice(2));s=this._props,Object.keys(s).every((function(e){return void 0===s[e]}))?n.jsonForD2[a]=!0:Y.indexOf(a)>-1?ne(n.jsonForD2,"series",q({quickType:o},ie(ae(this._props)))):re(n.jsonForD2,a,q({},ie(ae(this._props)),{componentId:this._uid}))}var s}},created:function(){},mounted:function(){this.freshChart(!1)},updated:function(){this.freshChart(!0)},render:function(e){if(this.checkIsContainer(this))return e("div",null,this.$slots.default);var t=ie(ae(this._props));return e("div",{style:{display:"none"}},Object.keys(t).map((function(e){return e+":"+JSON.stringify(t[e])})))}},te={"v-chart":ee,"v-tooltip":ee,"v-legend":ee,"v-axis":ee,"v-brush":ee,"v-view":ee,"v-coord":ee,"v-series":ee,"v-facet":ee,"v-facet-view":ee,"v-lite-chart":ee,"v-guide":ee,"v-edge":ee,"v-point":ee,"v-pie":ee,"v-bar":ee,"v-stack-bar":ee,"v-dodge-bar":ee,"v-interval":ee,"v-stack-interval":ee,"v-dodge-interval":ee,"v-schema":ee,"v-line":ee,"v-smooth-line":ee,"v-dash-line":ee,"v-sector":ee,"v-area":ee,"v-stack-area":ee,"v-stack-line":ee,"v-smooth-area":ee,"v-funnel":ee,"v-pyramid":ee,"v-box":ee,"v-candle":ee,"v-polygon":ee,"v-contour":ee,"v-heatmap":ee,"v-sankey":ee,"v-error-bar":ee,"v-jitter-point":ee,"v-path":ee,"v-venn":ee,"v-plugin":ee,"v-slider":ee};
//# sourceMappingURL=typed.js.map
// CONCATENATED MODULE: ./node_modules/viser-vue/es/index.js
t.a={install:function(e,t){t||(t=Object.keys(te)),t.forEach((function(t){e.component(t,q({},te[t],{name:t}))}))}};function ne(e,t,n){e[t]||(e[t]=[]),ie(n),e[t].push(n)}function re(e,t,n){if(e[t]){e[t]&&"Object"===e[t].constructor.name&&(e[t]=[e[t]]);var r=-1;n&&n.viewId?e[t].forEach((function(e,t){e&&e.viewId&&e.viewId===n.viewId&&(r=t)})):n&&n.componentId&&e[t].forEach((function(e,t){e&&e.componentId&&e.componentId===n.componentId&&(r=t)})),-1===r?e[t].push(n):e[t][r]=q({},e[t][r],n)}else e[t]=n}function ie(e){var t=q({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}function ae(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=q({},e);return r.vStyle&&(r.style=r.vStyle,delete r.vStyle),null!==n&&n.forEach((function(e){delete r[e]})),null!==t&&Object.keys(r).forEach((function(e){-1===t.indexOf(e)&&delete r[e]})),r}function oe(e,t,n){e[t]||(e[t]=n)}},
/***/3698:
/***/function(e,t){e.exports=
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function(e,t){return null==e?void 0:e[t]}},
/***/"36b7":
/***/function(e,t,n){"use strict";var r=n("415f"),i=n("798a"),a="WeakSet";
// 23.4 WeakSet Objects
n("d168")(a,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{
// 23.4.3.1 WeakSet.prototype.add(value)
add:function(e){return r.def(i(this,a),e,!0)}},r,!1,!0)},
/***/"36bb":
/***/function(e,t,n){"use strict";
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
var r=n("f083"),i=n("cffc")(6),a="findIndex",o=!0;
// Shouldn't skip holes
a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{findIndex:function(e/* , that = undefined */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("66b7")(a)},
/***/3729:
/***/function(e,t,n){var r=n("9e69"),i=n("00fd"),a=n("29f3"),o=r?r.toStringTag:void 0;
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},
/***/3787:
/***/function(e,t,n){n("c183");var r=n("5524").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},
/***/"37a2":
/***/function(e,t,n){
// 7.2.8 IsRegExp(argument)
var r=n("9fe8"),i=n("1c2d"),a=n("de24")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},
/***/"37c5":
/***/function(e,t,n){"use strict";var r=n("e056");n("f083")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},
/***/"37e6":
/***/function(e,t,n){n("1cb7")("observable");
/***/},
/***/"37e8":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),a=n("9bf2"),o=n("825a"),s=n("fc6a"),c=n("df75");
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
// eslint-disable-next-line es/no-object-defineproperties -- safe
t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=c(t),l=i.length,u=0;l>u;)a.f(e,n=i[u++],r[n]);return e}},
/***/3818:
/***/function(e,t,n){var r=n("7e64"),i=n("8057"),a=n("32b3"),o=n("5b01"),s=n("0f0f"),c=n("e5383"),l=n("4359"),u=n("54eb"),h=n("1041"),f=n("a994"),d=n("1bac"),p=n("42a2"),g=n("c87c"),m=n("c2b6"),v=n("fa21"),y=n("6747"),A=n("0d24"),b=n("cc45"),w=n("1a8c"),x=n("d7ee"),C=n("ec69"),_=n("9934"),I="[object Arguments]",E="[object Function]",k="[object Object]",S={};
/** Used to compose bitmasks for cloning. */S[I]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[k]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[E]=S["[object WeakMap]"]=!1,e.exports=
/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function e(t,n,B,M,T,O){var D,P=1&n,L=2&n,Q=4&n;if(B&&(D=T?B(t,M,T,O):B(t)),void 0!==D)return D;if(!w(t))return t;var R=y(t);if(R){if(D=g(t),!P)return l(t,D)}else{var j=p(t),N=j==E||"[object GeneratorFunction]"==j;if(A(t))return c(t,P);if(j==k||j==I||N&&!T){if(D=L||N?{}:v(t),!P)return L?h(t,s(D,t)):u(t,o(D,t))}else{if(!S[j])return T?t:{};D=m(t,j,P)}}
// Check for circular references and return its corresponding clone.
O||(O=new r);var F=O.get(t);if(F)return F;O.set(t,D),x(t)?t.forEach((function(r){D.add(e(r,n,B,r,t,O))})):b(t)&&t.forEach((function(r,i){D.set(i,e(r,n,B,i,t,O))}));var z=R?void 0:(Q?L?d:f:L?_:C)(t);return i(z||t,(function(r,i){z&&(r=t[i=r]),
// Recursively populate clone (susceptible to call stack limits).
a(D,i,e(r,n,B,i,t,O))})),D}},
/***/3835:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return i}));
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
n("a4d3"),n("e01a"),n("d28b"),n("14d9"),n("d3b7"),n("3ca3"),n("ddb0");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var r=n("06c5");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
n("d9e2");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
function i(e,t){
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
return function(e){if(Array.isArray(e))return e}(e)||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||Object(r.a)(e,t)||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
/***/},
/***/3842:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"m",(function(){return o})),
/* harmony export (binding) */n.d(t,"q",(function(){return s})),
/* harmony export (binding) */n.d(t,"w",(function(){return c})),
/* harmony export (binding) */n.d(t,"c",(function(){return l})),
/* harmony export (binding) */n.d(t,"h",(function(){return u})),
/* harmony export (binding) */n.d(t,"i",(function(){return h})),
/* harmony export (binding) */n.d(t,"g",(function(){return f})),
/* harmony export (binding) */n.d(t,"f",(function(){return d})),
/* harmony export (binding) */n.d(t,"e",(function(){return p})),
/* harmony export (binding) */n.d(t,"b",(function(){return g})),
/* harmony export (binding) */n.d(t,"a",(function(){return m})),
/* harmony export (binding) */n.d(t,"v",(function(){return v})),
/* harmony export (binding) */n.d(t,"l",(function(){return y})),
/* harmony export (binding) */n.d(t,"p",(function(){return b})),
/* harmony export (binding) */n.d(t,"s",(function(){return w})),
/* harmony export (binding) */n.d(t,"t",(function(){return x})),
/* harmony export (binding) */n.d(t,"n",(function(){return C})),
/* harmony export (binding) */n.d(t,"r",(function(){return _})),
/* harmony export (binding) */n.d(t,"u",(function(){return I})),
/* harmony export (binding) */n.d(t,"o",(function(){return E})),
/* harmony export (binding) */n.d(t,"k",(function(){return k})),
/* harmony export (binding) */n.d(t,"j",(function(){return S})),
/* unused harmony export getGreatestCommonDividor */
/* harmony export (binding) */n.d(t,"d",(function(){return M}));
/* harmony import */var r=n("6d8b"),i=1e-4,a=20;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* A third-party license is embedded for some of the code in this file:
* The method "quantile" was copied from "d3.js".
* (See more details in the comment of the method below.)
* The use of the source code of this file is also subject to the terms
* and consitions of the license of "d3.js" (BSD-3Clause, see
* </licenses/LICENSE-d3>).
*/
/**
 * Linear mapping a value from domain to range
 * @param  val
 * @param  domain Domain extent domain[0] can be bigger than domain[1]
 * @param  range  Range extent range[0] can be bigger than range[1]
 * @param  clamp Default to be false
 */
function o(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(0===c)return 0===l?o:(o+s)/2;
// Avoid accuracy problem in edge, such as
// 146.39 - 62.83 === 83.55999999999999.
// See echarts/test/ut/spec/util/number.js#linearMap#accuracyError
// It is a little verbose for efficiency considering this method
// is a hotspot.
if(r)if(c>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}
/**
 * Convert a percent string to absolute number.
 * Returns NaN if percent is not a valid string or number
 */function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return r.isString(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function c(e,t,n){return null==t&&(t=10),
// Avoid range error
t=Math.min(Math.max(0,t),a),
// PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01'
e=(+e).toFixed(t),n?e:+e}
/**
 * Inplacd asc sort arr.
 * The input arr will be modified.
 */function l(e){return e.sort((function(e,t){return e-t})),e}
/**
 * Get precision.
 */function u(e){if(e=+e,isNaN(e))return 0;
// It is much faster than methods converting number to string as follows
//      let tmp = val.toString();
//      return tmp.length - 1 - tmp.indexOf('.');
// especially when precision is low
// Notice:
// (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`.
//     (see https://jsbench.me/2vkpcekkvw/1)
// (2) If the val is less than for example 1e-15, the result may be incorrect.
//     (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`)
if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return h(e)}
/**
 * Get precision with slow but safe method
 */function h(e){
// toLowerCase for: '3.4E-12'
var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;
// Consider scientific notation: '3.4e-12' '3.4e+12'
return Math.max(0,o-r)}
/**
 * Minimal dicernible data precisioin according to a single pixel.
 */function f(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}
/**
 * Get a data of given precision, assuring the sum of percentages
 * in valueList is 1.
 * The largest remainder method is used.
 * https://en.wikipedia.org/wiki/Largest_remainder_method
 *
 * @param valueList a list of all data
 * @param idx index of the data to be processed in valueList
 * @param precision integer number showing digits of precision
 * @return percent ranging from 0 to 100
 */function d(e,t,n){return e[t]&&p(e,n)[t]||0}
/**
 * Get a data of given precision, assuring the sum of percentages
 * in valueList is 1.
 * The largest remainder method is used.
 * https://en.wikipedia.org/wiki/Largest_remainder_method
 *
 * @param valueList a list of all data
 * @param precision integer number showing digits of precision
 * @return {Array<number>}
 */function p(e,t){var n=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];
// Has remainding votes.
for(var i=Math.pow(10,t),a=r.map(e,(function(e){return(isNaN(e)?0:e)/n*i*100})),o=100*i,s=r.map(a,(function(e){
// Assign automatic seats.
return Math.floor(e)})),c=r.reduce(s,(function(e,t){return e+t}),0),l=r.map(a,(function(e,t){return e-s[t]}));c<o;){for(
// Find next largest remainder.
var u=Number.NEGATIVE_INFINITY,h=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],h=f);
// Add a vote to max remainder.
++s[h],l[h]=0,++c}return r.map(s,(function(e){return e/i}))}
/**
 * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004
 * See <http://0.30000000000000004.com/>
 */function g(e,t){var n=Math.max(u(e),u(t)),r=e+t;
// const multiplier = Math.pow(10, maxPrecision);
// return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier;
// // PENDING: support more?
return n>a?r:c(r,n)}
// Number.MAX_SAFE_INTEGER, ie do not support.
var m=9007199254740991;
/**
 * To 0 - 2 * PI, considering negative radian.
 */function v(e){var t=2*Math.PI;return(e%t+t)%t}
/**
 * @param {type} radian
 * @return {boolean}
 */function y(e){return e>-i&&e<i}
// eslint-disable-next-line
var A=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;// jshint ignore:line
/**
 * @param value valid type: number | string | Date, otherwise return `new Date(NaN)`
 *   These values can be accepted:
 *   + An instance of Date, represent a time in its own time zone.
 *   + Or string in a subset of ISO 8601, only including:
 *     + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',
 *     + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',
 *     + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',
 *     all of which will be treated as local time if time zone is not specified
 *     (see <https://momentjs.com/>).
 *   + Or other string format, including (all of which will be treated as local time):
 *     '2012', '2012-3-1', '2012/3/1', '2012/03/01',
 *     '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'
 *   + a timestamp, which represent a time in UTC.
 * @return date Never be null/undefined. If invalid, return `new Date(NaN)`.
 */function b(e){if(e instanceof Date)return e;if(r.isString(e)){
// Different browsers parse date in different way, so we parse it manually.
// Some other issues:
// new Date('1970-01-01') is UTC,
// new Date('1970/01/01') and new Date('1970-1-01') is local.
// See issue #3623
var t=A.exec(e);if(!t)
// return Invalid Date.
return new Date(NaN);
// Use local time when no timezone offset is specified.
if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}
// match[n] can only be string or undefined.
// But take care of '12' + 1 => '121'.
return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}
/**
 * Quantity of a number. e.g. 0.1, 1, 10, 100
 *
 * @param val
 * @return
 */function w(e){return Math.pow(10,x(e))}
/**
 * Exponent of the quantity of a number
 * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3
 *
 * @param val non-negative value
 * @return
 */function x(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);
/**
   * exp is expected to be the rounded-down result of the base-10 log of val.
   * But due to the precision loss with Math.log(val), we need to restore it
   * using 10^exp to make sure we can get val back from exp. #11249
   */return e/Math.pow(10,t)>=10&&t++,t}
/**
 * find a “nice” number approximately equal to x. Round the number if round = true,
 * take ceiling if round = false. The primary observation is that the “nicest”
 * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.
 *
 * See "Nice Numbers for Graph Labels" of Graphic Gems.
 *
 * @param  val Non-negative value.
 * @param  round
 * @return Niced number
 */function C(e,t){var n=x(e),r=Math.pow(10,n),i=e/r;
// Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).
// 20 is the uppper bound of toFixed.
return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}
/**
 * This code was copied from "d3.js"
 * <https://github.com/d3/d3/blob/9cc9a875e636a1dcf36cc1e07bdf77e1ad6e2c74/src/arrays/quantile.js>.
 * See the license statement at the head of this file.
 * @param ascArr
 */function _(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}
/**
 * Order intervals asc, and split them when overlap.
 * expect(numberUtil.reformIntervals([
 *     {interval: [18, 62], close: [1, 1]},
 *     {interval: [-Infinity, -70], close: [0, 0]},
 *     {interval: [-70, -26], close: [1, 1]},
 *     {interval: [-26, 18], close: [1, 1]},
 *     {interval: [62, 150], close: [1, 1]},
 *     {interval: [106, 150], close: [1, 1]},
 *     {interval: [150, Infinity], close: [0, 0]}
 * ])).toEqual([
 *     {interval: [-Infinity, -70], close: [0, 0]},
 *     {interval: [-70, -26], close: [1, 1]},
 *     {interval: [-26, 18], close: [0, 1]},
 *     {interval: [18, 62], close: [0, 1]},
 *     {interval: [62, 150], close: [0, 1]},
 *     {interval: [150, Infinity], close: [0, 0]}
 * ]);
 * @param list, where `close` mean open or close
 *        of the interval, and Infinity can be used.
 * @return The origin list, which has been reformed.
 */function I(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!=1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}
/**
 * [Numeric is defined as]:
 *     `parseFloat(val) == val`
 * For example:
 * numeric:
 *     typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity,
 *     and they rounded by white-spaces or line-terminal like ' -123 \n ' (see es spec)
 * not-numeric:
 *     null, undefined, [], {}, true, false, 'NaN', NaN, '123ab',
 *     empty string, string with only white-spaces or line-terminal (see es spec),
 *     0x12, '0x12', '-0x12', 012, '012', '-012',
 *     non-string, ...
 *
 * @test See full test cases in `test/ut/spec/util/number.js`.
 * @return Must be a typeof number. If not numeric, return NaN.
 */function E(e){var t=parseFloat(e);return t==e&&(0!==t||!r.isString(e)||e.indexOf("x")<=0)?t:NaN}
/**
 * Definition of "numeric": see `numericToNumber`.
 */function k(e){return!isNaN(E(e))}
/**
 * Use random base to prevent users hard code depending on
 * this auto generated marker id.
 * @return An positive integer.
 */function S(){return Math.round(9*Math.random())}
/**
 * Get the greatest common divisor.
 *
 * @param {number} a one number
 * @param {number} b the other number
 */function B(e,t){return 0===t?e:B(t,e%t)}
/**
 * Get the least common multiple.
 *
 * @param {number} a one number
 * @param {number} b the other number
 */function M(e,t){return null==e?t:null==t?e:e*t/B(e,t)}
/***/},
/***/"384f":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("5388"),a=n("cb27"),o=a.Set,s=a.proto,c=r(s.forEach),l=r(s.keys),u=l(new o).next;e.exports=function(e,t,n){return n?i({iterator:l(e),next:u},t):c(e,t)}},
/***/3852:
/***/function(e,t,n){var r=n("96f3"),i=n("e2c0");
/**
 * Checks if `path` is a direct property of `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = { 'a': { 'b': 2 } };
 * var other = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.has(object, 'a');
 * // => true
 *
 * _.has(object, 'a.b');
 * // => true
 *
 * _.has(object, ['a', 'b']);
 * // => true
 *
 * _.has(other, 'a');
 * // => false
 */e.exports=function(e,t){return null!=e&&i(e,t,r)}},
/***/"387f":
/***/function(e,t,n){"use strict";
/**
 * Update an Error with the specified config, error code, and response.
 *
 * @param {Error} error The error to update.
 * @param {Object} config The config.
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
 * @param {Object} [request] The request.
 * @param {Object} [response] The response.
 * @returns {Error} The error.
 */e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{
// Standard
message:this.message,name:this.name,
// Microsoft
description:this.description,number:this.number,
// Mozilla
fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,
// Axios
config:this.config,code:this.code}},e}},
/***/"38a2":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return s})),
/* harmony export (binding) */n.d(t,"b",(function(){return c}));
/* harmony import */var r=n("6d8b"),i=n("2b17"),a=n("eda2"),o=/\{@(.+?)\}/g,s=/** @class */function(){function e(){}
/**
   * Get params for formatter
   */return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),c=s&&s[n.getItemVisual(e,"drawType")||"fill"],l=s&&s.stroke,u=this.mainType,h="series"===u,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,
// Param name list for mapping `a`, `b`, `c`, `d`, `e`
$vars:["seriesName","name","value"]}},
/**
   * Format label
   * @param dataIndex
   * @param status 'normal' by default
   * @param dataType
   * @param labelDimIndex Only used in some chart that
   *        use formatter in different dimensions, like radar.
   * @param formatter Formatter given outside.
   * @return return null/undefined if no formatter
   */
e.prototype.getFormattedLabel=function(e,t,n,s,c,l){t=t||"normal";var u=this.getData(n),h=this.getDataParams(e,n);(l&&(h.value=l.interpolatedValue),null!=s&&r.isArray(h.value)&&(h.value=h.value[s]),c)||(
// @ts-ignore
c=u.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return r.isFunction(c)?(h.status=t,h.dimensionIndex=s,c(h)):r.isString(c)?Object(a.e)(c,h).replace(o,(function(t,n){var a=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(a-1)&&(o=+o.slice(1,a-1));var s=Object(i.e)(u,e,o);if(l&&r.isArray(l.interpolatedValue)){var c=u.getDimensionIndex(o);c>=0&&(s=l.interpolatedValue[c])}return null!=s?s+"":""})):void 0},
/**
   * Get raw value in option
   */
e.prototype.getRawValue=function(e,t){return Object(i.e)(this.getData(t),e)},
/**
   * Should be implemented.
   * @param {number} dataIndex
   * @param {boolean} [multipleSeries=false]
   * @param {string} [dataType]
   */
e.prototype.formatTooltip=function(e,t,n){},e}();
/* harmony import */
// PENDING: previously we accept this type when calling `formatTooltip`,
// but guess little chance has been used outside. Do we need to backward
// compat it?
// type TooltipFormatResultLegacyObject = {
//     // `html` means the markup language text, either in 'html' or 'richText'.
//     // The name `html` is not appropriate because in 'richText' it is not a HTML
//     // string. But still support it for backward compatibility.
//     html: string;
//     markers: Dictionary<ColorString>;
// };
/**
 * For backward compat, normalize the return from `formatTooltip`.
 */
function c(e){var t,n;
// let markers: Dictionary<ColorString>;
return r.isObject(e)?e.type&&(n=e):t=e,{text:t,
// markers: markers || markersExisting,
frag:n}}
/***/},
/***/3901:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i})),
/* harmony export (binding) */n.d(t,"b",(function(){return o}));
/* harmony import */var r=n("282b"),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],a=Object(r.a)(i),o=/** @class */function(){function e(){}return e.prototype.getLineStyle=function(e){return a(this,e)},e}();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/},
/***/"392f":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("21a1"),i=n("19eb"),a=n("9850"),o=[],s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Object(r.a)(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new a.a(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(o)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(i.c);
/* harmony import */
/* harmony default export */t.a=s},
/***/3934:
/***/function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?
// Standard browser envs have full support of the APIs needed to test
// whether the request URL is of the same origin as current location.
function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");
/**
    * Parse a URL to discover it's components
    *
    * @param {String} url The URL to be parsed
    * @returns {Object}
    */
function i(e){var r=e;
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
return t&&(
// IE needs attribute set twice to normalize properties
n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}
/**
    * Determine if a URL shares the same origin as the current location
    *
    * @param {String} requestURL The URL to test
    * @returns {boolean} True if URL shares the same origin, otherwise false
    */
return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},
/***/3938:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarConfig=void 0;t.radarConfig={
/**
   * @description Whether to display this radar
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Legend name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Radar chart data
   * @type {Array}
   * @default data = []
   * @example data = [100, 200, 300]
   */
data:[],
/**
   * @description Radar default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
radarStyle:{lineWidth:1},
/**
   * @description Radar point configuration
   * @type {Object}
   */
point:{
/**
     * @description Whether to display radar point
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Point radius
     * @type {Number}
     * @default radius = 2
     */
radius:2,
/**
     * @description Radar point default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fill:"#fff"}},
/**
   * @description Radar label configuration
   * @type {Object}
   */
label:{
/**
     * @description Whether to display radar label
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Label position offset
     * @type {Array}
     * @default offset = [0, 0]
     */
offset:[0,0],
/**
     * @description Label gap between label and radar
     * @type {Number}
     * @default labelGap = 5
     */
labelGap:5,
/**
     * @description Label formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = 'Score-{value}'
     * @example formatter = (label) => (label)
     */
formatter:null,
/**
     * @description Radar label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fontSize:10}},
/**
   * @description Radar chart render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 10
   */
rLevel:10,
/**
   * @description Radar animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Radar animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrane:50}},
/***/"393a":
/***/function(e,t,n){"use strict";var r=n("e444"),i=n("512c"),a=n("ba01"),o=n("051b"),s=n("8a0d"),c=n("26dd"),l=n("92f0"),u=n("ce7a"),h=n("cc15")("iterator"),f=!([].keys&&"next"in[].keys()),d="keys",p="values",g=function(){return this};e.exports=function(e,t,n,m,v,y,A){c(n,t,m);var b,w,x,C=function(e){if(!f&&e in k)return k[e];switch(e){case d:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",I=v==p,E=!1,k=e.prototype,S=k[h]||k["@@iterator"]||v&&k[v],B=S||C(v),M=v?I?C("entries"):B:void 0,T="Array"==t&&k.entries||S;if(
// Fix native
T&&(x=u(T.call(new e)))!==Object.prototype&&x.next&&(
// Set @@toStringTag to native iterators
l(x,_,!0),
// fix for some old engines
r||"function"==typeof x[h]||o(x,h,g)),
// fix Array#{values, @@iterator}.name in V8 / FF
I&&S&&S.name!==p&&(E=!0,B=function(){return S.call(this)}),
// Define iterator
r&&!A||!f&&!E&&k[h]||o(k,h,B),
// Plug for library
s[t]=B,s[_]=g,v)if(b={values:I?B:C(p),keys:y?B:C(d),entries:M},A)for(w in b)w in k||a(k,w,b[w]);else i(i.P+i.F*(f||E),t,b);return b}},
/***/"395a":
/***/function(e,t,n){
// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask
var r=n("f083"),i=n("bde8")(),a=n("93e0").process,o="process"==n("1c2d")(a);r(r.G,{asap:function(e){var t=o&&a.domain;i(t?t.bind(e):e)}})},
/***/"395e":
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").has,a=n("8e16"),o=n("7f65"),s=n("5388"),c=n("2a62");
// `Set.prototype.isSupersetOf` method
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
e.exports=function(e){var t=r(this),n=o(e);if(a(t)<n.size)return!1;var l=n.getIterator();return!1!==s(l,(function(e){if(!i(t,e))return c(l,"normal",!1)}))}},
/***/"396a":
/***/function(e,t,n){
// 20.1.2.3 Number.isInteger(number)
var r=n("f083");r(r.S,"Number",{isInteger:n("2647")})},
/***/"39ad":
/***/function(e,t,n){
// false -> Array#indexOf
// true  -> Array#includes
var r=n("6ca1"),i=n("d16a"),a=n("9d11");e.exports=function(e){return function(t,n,o){var s,c=r(t),l=i(c.length),u=a(o,l);
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if(e&&n!=n){for(;l>u;)
// eslint-disable-next-line no-self-compare
if((s=c[u++])!=s)return!0;
// Array#indexOf ignores holes, Array#includes - not
}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},
/***/"39f3":
/***/function(e,t,n){var r=n("f083"),i=n("5d6f"),a=n("6373");r(r.S,"String",{
// 21.1.2.4 String.raw(callSite, ...substitutions)
raw:function(e){for(var t=i(e.raw),n=a(t.length),r=arguments.length,o=[],s=0;n>s;)o.push(String(t[s++])),s<r&&o.push(String(arguments[s]));return o.join("")}})},
/***/"39f9":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"39ff":
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"WeakMap");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"3a2f":
/***/function(e,t,n){"use strict";var r=n("93e0"),i=n("2761"),a=n("c94e"),o=n("de24")("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},
/***/"3a34":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){
// makes no sense without proper strict mode support
if(void 0!==this)return!0;try{
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!o(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},
/***/"3a8b":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("b4a0");
/* harmony default export */t.a=r.a},
/***/"3a9b":
/***/function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},
/***/"3a9b6":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="0 0 1024 1024",i="64 64 896 896",a="fill",o="outline",s="twotone";function c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return{tag:"svg",attrs:{viewBox:e,focusable:!1},children:t.map((function(e){return Array.isArray(e)?{tag:"path",attrs:{fill:e[0],d:e[1]}}:{tag:"path",attrs:{d:e}}}))}}function l(e,t,n){return{name:e,theme:t,icon:n}}t.AccountBookFill=l("account-book",a,c(i,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z")),t.AlertFill=l("alert",a,c(i,"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 0 1-32 32H225a32 32 0 0 1-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 0 1 8 8v96a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V76a8 8 0 0 1 8-8zM177.25 191.66a8 8 0 0 1 11.32 0l67.88 67.88a8 8 0 0 1 0 11.31l-39.6 39.6a8 8 0 0 1-11.31 0l-67.88-67.88a8 8 0 0 1 0-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 0 1 0 11.3l-67.88 67.9a8 8 0 0 1-11.32 0l-39.6-39.6a8 8 0 0 1 0-11.32l67.89-67.88a8 8 0 0 1 11.31 0zM192 892h640a32 32 0 0 1 32 32v24a8 8 0 0 1-8 8H168a8 8 0 0 1-8-8v-24a32 32 0 0 1 32-32zm148-317v253h64V575h-64z")),t.AlipaySquareFill=l("alipay-square",a,c(i,"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm29.4 663.2S703 689.4 598.7 639.5C528.8 725.2 438.6 777.3 345 777.3c-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9 114.3 38.2 140.2 40.2 140.2 40.2v122.3z")),t.AliwangwangFill=l("aliwangwang",a,c(i,"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-325.2 79c0 20.4-16.6 37.1-37.1 37.1-20.4 0-37.1-16.7-37.1-37.1v-55.1c0-20.4 16.6-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1zm175.2 0c0 20.4-16.6 37.1-37.1 37.1S644 476.8 644 456.4v-55.1c0-20.4 16.7-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1z")),t.AlipayCircleFill=l("alipay-circle",a,c(i,"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z")),t.AmazonCircleFill=l("amazon-circle",a,c(i,"M485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm35.8 262.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9 4.7-12.2 11.8-23.9 21.4-35 9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7z")),t.AndroidFill=l("android",a,c(i,"M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z")),t.AmazonSquareFill=l("amazon-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM547.8 326.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9s11.8-23.9 21.4-35c9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7zM485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4z")),t.ApiFill=l("api",a,c(i,"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z")),t.AppstoreFill=l("appstore",a,c(i,"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z")),t.AudioFill=l("audio",a,c(i,"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z")),t.AppleFill=l("apple",a,c(i,"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z")),t.BackwardFill=l("backward",a,c(r,"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z")),t.BankFill=l("bank",a,c(i,"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374z")),t.BehanceCircleFill=l("behance-circle",a,c(i,"M420.3 470.3c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1a50.5 50.5 0 0 0 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm86.5 286.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7z")),t.BellFill=l("bell",a,c(i,"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z")),t.BehanceSquareFill=l("behance-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z")),t.BookFill=l("book",a,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z")),t.BoxPlotFill=l("box-plot",a,c(i,"M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H448v432h344c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-728 80v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h152V296H232c-4.4 0-8 3.6-8 8z")),t.BugFill=l("bug",a,c(i,"M304 280h416c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z","M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5 28.9 16.9 61 28.8 95.3 34.5 4.4 0 8-3.6 8-8V484c0-4.4 3.6-8 8-8h60c4.4 0 8 3.6 8 8v464.2c0 4.4 3.6 8 8 8 34.3-5.7 66.4-17.6 95.3-34.5a281.38 281.38 0 0 0 123.2-149.5A120.4 120.4 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.CalculatorFill=l("calculator",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z")),t.BulbFill=l("bulb",a,c(i,"M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z")),t.BuildFill=l("build",a,c(i,"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM612 746H412V546h200v200zm268-268H680V278h200v200z")),t.CalendarFill=l("calendar",a,c(i,"M112 880c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V460H112v420zm768-696H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v176h800V216c0-17.7-14.3-32-32-32z")),t.CameraFill=l("camera",a,c(i,"M864 260H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 260H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V340c0-44.2-35.8-80-80-80zM512 716c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160zm-96-160a96 96 0 1 0 192 0 96 96 0 1 0-192 0z")),t.CarFill=l("car",a,c(i,"M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM220 418l72.7-199.9.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220z")),t.CaretDownFill=l("caret-down",a,c(r,"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z")),t.CaretLeftFill=l("caret-left",a,c(r,"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z")),t.CaretRightFill=l("caret-right",a,c(r,"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z")),t.CarryOutFill=l("carry-out",a,c(i,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM694.5 432.7L481.9 725.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z")),t.CaretUpFill=l("caret-up",a,c(r,"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z")),t.CheckCircleFill=l("check-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z")),t.CheckSquareFill=l("check-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L308.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H689c6.5 0 10.3 7.4 6.5 12.7z")),t.ChromeFill=l("chrome",a,c(i,"M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512 589.5 371.8 512 371.8 371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2 180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7 653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z")),t.CiCircleFill=l("ci-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-63.6 656c-103 0-162.4-68.6-162.4-182.6v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-4-46.1-37.6-77.6-87-77.6-61.1 0-95.6 45.4-95.6 126.9v49.3c0 80.3 34.5 125.1 95.6 125.1 49.3 0 82.8-29.5 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z")),t.ClockCircleFill=l("clock-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z")),t.CloseCircleFill=l("close-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z")),t.CloudFill=l("cloud",a,c(i,"M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3z")),t.CloseSquareFill=l("close-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM676.1 657.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9z")),t.CodeSandboxSquareFill=l("code-sandbox-square",a,c(i,"M307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM755.7 653.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zm-223.9 83.7l97.3-56.2v-94.1l87-49.5V418.5L531.8 525zm-20-352L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8z")),t.CodeSandboxCircleFill=l("code-sandbox-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm243.7 589.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zM307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zm203.9-151.8L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8zm20 352l97.3-56.2v-94.1l87-49.5V418.5L531.8 525z")),t.CodeFill=l("code",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM513.1 518.1l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3zM716 673c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8h185c4.1 0 7.5 3.6 7.5 8v48z")),t.CompassFill=l("compass",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM327.3 702.4c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2l98.7-225.5 132.1 132.1-225.5 98.7zm375.1-375.1l-98.7 225.5-132.1-132.1L697.1 322c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z")),t.CodepenCircleFill=l("codepen-circle",a,c(i,"M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z")),t.CodepenSquareFill=l("codepen-square",a,c(i,"M723.1 428L535.9 303.4v111.3l103.6 69.1zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zm23.9 154.2v111.3L723.1 597l-83.6-55.8zm-151.4-69.1L300.9 597l187.2 124.6V610.3l-103.6-69.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-90 485c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-47.8-44.6v-79.8l-59.8 39.9zm-460.4-79.8v79.8l59.8-39.9zm206.3-57.9V303.4L300.9 428l83.6 55.8z")),t.ContactsFill=l("contacts",a,c(i,"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM661 736h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.6-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H363a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112 61.5 0 111.4 50.1 111.4 112 0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zM512 474c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52c28.5 0 51.7-23.3 51.7-52s-23.2-52-51.7-52z")),t.ControlFill=l("control",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM404 683v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99zm279.6-143.9c.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1zM616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM403.4 566.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5z")),t.ContainerFill=l("container",a,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v529c0-.6.4-1 1-1h219.3l5.2 24.7C397.6 708.5 450.8 752 512 752s114.4-43.5 126.4-103.3l5.2-24.7H863c.6 0 1 .4 1 1V96c0-17.7-14.3-32-32-32zM712 493c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm0-160c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm151 354H694.1c-11.6 32.8-32 62.3-59.1 84.7-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H161c-.6 0-1-.4-1-1v242c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V686c0 .6-.4 1-1 1z")),t.CopyFill=l("copy",a,c(i,"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM382 896h-.2L232 746.2v-.2h150v150z")),t.CopyrightCircleFill=l("copyright-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm5.4 670c-110 0-173.4-73.2-173.4-194.9v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.6-3.2-8-7.4-4-49.5-40-83.4-93-83.4-65.3 0-102.1 48.5-102.1 135.5v52.6c0 85.7 36.9 133.6 102.1 133.6 52.8 0 88.7-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4z")),t.CreditCardFill=l("credit-card",a,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v160h896V192c0-17.7-14.3-32-32-32zM64 832c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V440H64v392zm579-184c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72z")),t.CrownFill=l("crown",a,c(i,"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z")),t.CustomerServiceFill=l("customer-service",a,c(i,"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384z")),t.DashboardFill=l("dashboard",a,c(i,"M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 0 1-11.3 0L261.7 352a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z")),t.DeleteFill=l("delete",a,c(i,"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z")),t.DiffFill=l("diff",a,c(i,"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z")),t.DingtalkCircleFill=l("dingtalk-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm227 385.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z")),t.DatabaseFill=l("database",a,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z")),t.DingtalkSquareFill=l("dingtalk-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM739 449.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z")),t.DislikeFill=l("dislike",a,c(i,"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z")),t.DollarCircleFill=l("dollar-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm22.3 665.2l.2 31.7c0 4.4-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4C401.3 723 359.5 672.4 355 617.4c-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.7 29.8 55.4 74.1 61.3V533.9l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-72.9 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.9 46.9 125.9 109.2.5 4.7-3.2 8.8-8 8.8h-44.9c-4 0-7.4-3-7.9-6.9-4-29.2-27.4-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 108.9 116.4 0 75.3-56 117.3-134.3 124.1zM426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-36.9 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.8-.6-5.6-1.3-8.8-2.2V677c42.6-3.8 72-27.2 72-66.4 0-30.7-15.9-50.7-63.2-65.1z")),t.DownCircleFill=l("down-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm184.5 353.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z")),t.DownSquareFill=l("down-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM696.5 412.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z")),t.DribbbleCircleFill=l("dribbble-circle",a,c(i,"M675.1 328.3a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6zm47.7-11.9c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 736c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm53.1-346.2c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm30.6 82.5c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4z")),t.DribbbleSquareFill=l("dribbble-square",a,c(i,"M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z")),t.DropboxCircleFill=l("dropbox-circle",a,c(i,"M663.8 455.5zm-151.5-93.8l-151.8 93.8 151.8 93.9 151.5-93.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm151.2 595.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1z")),t.DropboxSquareFill=l("dropbox-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM663.2 659.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1zM512.3 361.7l-151.8 93.8 151.8 93.9 151.5-93.9zm151.5 93.8z")),t.EnvironmentFill=l("environment",a,c(i,"M512 327c-29.9 0-58 11.6-79.2 32.8A111.6 111.6 0 0 0 400 439c0 29.9 11.7 58 32.8 79.2A111.6 111.6 0 0 0 512 551c29.9 0 58-11.7 79.2-32.8C612.4 497 624 468.9 624 439c0-29.9-11.6-58-32.8-79.2S541.9 327 512 327zm342.6-37.9a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z")),t.EditFill=l("edit",a,c(i,"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z")),t.ExclamationCircleFill=l("exclamation-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.EuroCircleFill=l("euro-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm63.5 375.8c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8h-136c-.3 4.4-.3 9.1-.3 13.8v36h136.2c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H444.9c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.2 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.3 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.8.3-12.8H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.7c19.7-94.2 92-149.9 198.6-149.9 20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346h.1c0 5.1-4.6 8.8-9.6 7.8-14.7-2.9-31.8-4.4-51.7-4.4-65.4 0-110.4 33.5-127.6 90.4h128.4z")),t.ExperimentFill=l("experiment",a,c(i,"M218.9 636.3l42.6 26.6c.1.1.3.2.4.3l12.7 8 .3.3a186.9 186.9 0 0 0 94.1 25.1c44.9 0 87.2-15.7 121-43.8a256.27 256.27 0 0 1 164.9-59.9c52.3 0 102.2 15.7 144.6 44.5l7.9 5-111.6-289V179.8h63.5c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8H264.7c-4.4 0-8 3.6-8 8v51.9c0 4.4 3.6 8 8 8h63.5v173.6L218.9 636.3zm333-203.1c22 0 39.9 17.9 39.9 39.9S573.9 513 551.9 513 512 495.1 512 473.1s17.9-39.9 39.9-39.9zM878 825.1l-29.9-77.4-85.7-53.5-.1.1c-.7-.5-1.5-1-2.2-1.5l-8.1-5-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-53 0-103.5-16.1-146.2-45.6l-28.9-18.1L146 825.1c-2.8 7.4-4.3 15.2-4.3 23 0 35.2 28.6 63.8 63.8 63.8h612.9c7.9 0 15.7-1.5 23-4.3a63.6 63.6 0 0 0 36.6-82.5z")),t.EyeInvisibleFill=l("eye-invisible",a,c(i,"M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z","M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z")),t.EyeFill=l("eye",a,c(i,"M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z")),t.FacebookFill=l("facebook",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-92.4 233.5h-63.9c-50.1 0-59.8 23.8-59.8 58.8v77.1h119.6l-15.6 120.7h-104V912H539.2V602.2H434.9V481.4h104.3v-89c0-103.3 63.1-159.6 155.3-159.6 44.2 0 82.1 3.3 93.2 4.8v107.9z")),t.FastBackwardFill=l("fast-backward",a,c(r,"M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z")),t.FastForwardFill=l("fast-forward",a,c(r,"M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z")),t.FileAddFill=l("file-add",a,c(i,"M480 580H372a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h108v108a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8V644h108a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H544V472a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v108zm374.6-291.3c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z")),t.FileExcelFill=l("file-excel",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 0 0-10.27-5.79h-38.44a12 12 0 0 0-6.4 1.85 12 12 0 0 0-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 0 0-1.84 6.39 12 12 0 0 0 12 12h34.46a12 12 0 0 0 10.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0 0 10.23 5.72h37.48a12 12 0 0 0 6.48-1.9 12 12 0 0 0 3.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 0 0 1.9-6.5 12 12 0 0 0-12-12h-35.7a12 12 0 0 0-10.29 5.84z")),t.FileExclamationFill=l("file-exclamation",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 784a40 40 0 1 0 0-80 40 40 0 0 0 0 80zm32-152V448a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v184a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8z")),t.FileImageFill=l("file-image",a,c(i,"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z")),t.FileMarkdownFill=l("file-markdown",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0 0 14.62 9.5h24.06a16 16 0 0 0 14.63-9.51l59.1-133.35V758a16 16 0 0 0 16.01 16H641a16 16 0 0 0 16-16V486a16 16 0 0 0-16-16h-34.75a16 16 0 0 0-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 0 0-14.67-9.61H383a16 16 0 0 0-16 16v272a16 16 0 0 0 16 16h27.13a16 16 0 0 0 16-16V600.93z")),t.FilePdfFill=l("file-pdf",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z")),t.FilePptFill=l("file-ppt",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 0 0-12 12v276a12 12 0 0 0 12 12h32.53a12 12 0 0 0 12-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z")),t.FileTextFill=l("file-text",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h384a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320zm0 136a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h184a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320z")),t.FileWordFill=l("file-word",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0 0 11.6 8.9h31.77a12 12 0 0 0 11.6-8.88l74.37-276a12 12 0 0 0 .4-3.12 12 12 0 0 0-12-12h-35.57a12 12 0 0 0-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 0 0 528.1 472h-32.2a12 12 0 0 0-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 0 0-11.68-9.29h-35.39a12 12 0 0 0-3.11.41 12 12 0 0 0-8.47 14.7l74.17 276A12 12 0 0 0 415.6 772h31.99a12 12 0 0 0 11.59-8.9l52.81-197z")),t.FileUnknownFill=l("file-unknown",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm110 227a32 32 0 1 0 0-64 32 32 0 0 0 0 64z")),t.FileZipFill=l("file-zip",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z")),t.FileFill=l("file",a,c(i,"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z")),t.FilterFill=l("filter",a,c(i,"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z")),t.FireFill=l("fire",a,c(i,"M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9z")),t.FlagFill=l("flag",a,c(i,"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32z")),t.FolderAddFill=l("folder-add",a,c(i,"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM632 577c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.2 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.8 0 7 3.2 7 7.1V528h84.5c4.1 0 7.5 3.2 7.5 7v42z")),t.FolderFill=l("folder",a,c(i,"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z")),t.FolderOpenFill=l("folder-open",a,c(i,"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z")),t.ForwardFill=l("forward",a,c(r,"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z")),t.FrownFill=l("frown",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.FundFill=l("fund",a,c(i,"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-92.3 194.4l-297 297.2a8.03 8.03 0 0 1-11.3 0L410.9 541.1 238.4 713.7a8.03 8.03 0 0 1-11.3 0l-36.8-36.8a8.03 8.03 0 0 1 0-11.3l214.9-215c3.1-3.1 8.2-3.1 11.3 0L531 565l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.2 3 3.2 8.1.1 11.2z")),t.FunnelPlotFill=l("funnel-plot",a,c(i,"M336.7 586h350.6l84.9-148H251.8zm543.4-432H143.9c-24.5 0-39.8 26.7-27.5 48L215 374h594l98.7-172c12.2-21.3-3.1-48-27.6-48zM349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V650H349v188z")),t.GiftFill=l("gift",a,c(i,"M160 894c0 17.7 14.3 32 32 32h286V550H160v344zm386 32h286c17.7 0 32-14.3 32-32V550H546v376zm334-616H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v140h366V310h68v172h366V342c0-17.7-14.3-32-32-32zm-402-4h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm138 0h-70v-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70z")),t.GithubFill=l("github",a,c(i,"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z")),t.GitlabFill=l("gitlab",a,c(i,"M910.5 553.2l-109-370.8c-6.8-20.4-23.1-34.1-44.9-34.1s-39.5 12.3-46.3 32.7l-72.2 215.4H386.2L314 181.1c-6.8-20.4-24.5-32.7-46.3-32.7s-39.5 13.6-44.9 34.1L113.9 553.2c-4.1 13.6 1.4 28.6 12.3 36.8l385.4 289 386.7-289c10.8-8.1 16.3-23.1 12.2-36.8z")),t.GoldenFill=l("golden",a,c(i,"M905.9 806.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zm-470.2-248c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8z")),t.GoogleCircleFill=l("google-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm167 633.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9C281.5 589 272 551.6 272 512s9.5-77 26.1-110.1c40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z")),t.GooglePlusCircleFill=l("google-plus-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm36.5 558.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z")),t.GooglePlusSquareFill=l("google-plus-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM548.5 622.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z")),t.GoogleSquareFill=l("google-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM679 697.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9A245.02 245.02 0 0 1 272 512c0-39.6 9.5-77 26.1-110.1 40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z")),t.HddFill=l("hdd",a,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM456 216c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm576-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm96-152c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48z")),t.HeartFill=l("heart",a,c(i,"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z")),t.HighlightFill=l("highlight",a,c(i,"M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2z")),t.HomeFill=l("home",a,c(i,"M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z")),t.HourglassFill=l("hourglass",a,c(i,"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194z")),t.Html5Fill=l("html5",a,c(i,"M145.2 96l66 746.6L512 928l299.6-85.4L878.9 96H145.2zm595 177.1l-4.8 47.2-1.7 19.5H382.3l8.2 94.2h335.1l-3.3 24.3-21.2 242.2-1.7 16.2-187 51.6v.3h-1.2l-.3.1v-.1h-.1l-188.6-52L310.8 572h91.1l6.5 73.2 102.4 27.7h.4l102-27.6 11.4-118.6H510.9v-.1H306l-22.8-253.5-1.7-24.3h460.3l-1.6 24.3z")),t.IdcardFill=l("idcard",a,c(i,"M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52 51.7-23.3 51.7-52-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z")),t.IeCircleFill=l("ie-circle",a,c(i,"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z")),t.IeSquareFill=l("ie-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM765.9 556.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zm-72.3-272.5c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z")),t.InfoCircleFill=l("info-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.InstagramFill=l("instagram",a,c(i,"M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z")),t.InsuranceFill=l("insurance",a,c(i,"M519.9 358.8h97.9v41.6h-97.9zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM411.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm296.5-49.2l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a5.9 5.9 0 0 1-8.9-1.4L430 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5z")),t.InteractionFill=l("interaction",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z")),t.InterationFill=l("interation",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z")),t.LayoutFill=l("layout",a,c(i,"M384 912h496c17.7 0 32-14.3 32-32V340H384v572zm496-800H384v164h528V144c0-17.7-14.3-32-32-32zm-768 32v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z")),t.LeftCircleFill=l("left-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178a8 8 0 0 1 12.7 6.5v46.8z")),t.LeftSquareFill=l("left-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM624 380.9c0 10.2-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.8z")),t.LikeFill=l("like",a,c(i,"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z")),t.LockFill=l("lock",a,c(i,"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z")),t.LinkedinFill=l("linkedin",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1 1 68.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z")),t.MailFill=l("mail",a,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-80.8 108.9L531.7 514.4c-7.8 6.1-18.7 6.1-26.5 0L189.6 268.9A7.2 7.2 0 0 1 194 256h648.8a7.2 7.2 0 0 1 4.4 12.9z")),t.MedicineBoxFill=l("medicine-box",a,c(i,"M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48zm4-372H360v-72h304v72z")),t.MediumCircleFill=l("medium-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm256 253.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z")),t.MediumSquareFill=l("medium-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM768 317.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z")),t.MehFill=l("meh",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.MessageFill=l("message",a,c(i,"M924.3 338.4a447.57 447.57 0 0 0-96.1-143.3 443.09 443.09 0 0 0-143-96.3A443.91 443.91 0 0 0 512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 0 0-141.7 96.5 445 445 0 0 0-95 142.8A449.89 449.89 0 0 0 65 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 0 0 199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 0 0 827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z")),t.MinusCircleFill=l("minus-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z")),t.MinusSquareFill=l("minus-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z")),t.MobileFill=l("mobile",a,c(i,"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z")),t.MoneyCollectFill=l("money-collect",a,c(i,"M911.5 699.7a8 8 0 0 0-10.3-4.8L840 717.2V179c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V762c0 3.3 2.1 6.3 5.3 7.5L501 909.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zm-243.8-377L564 514.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V703c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 322.8c-2.1-3.8-.7-8.7 3.2-10.8 1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 484.2h3.3L599 315.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8z")),t.PauseCircleFill=l("pause-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z")),t.PayCircleFill=l("pay-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm166.6 246.8L567.5 515.6h62c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V603h82c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V717c0 4.4-3.6 8-8 8h-54.3c-4.4 0-8-3.6-8-8v-68.1h-81.7c-4.4 0-8-3.6-8-8V611c0-4.4 3.6-8 8-8h81.7v-41.5h-81.7c-4.4 0-8-3.6-8-8v-29.9c0-4.4 3.6-8 8-8h61.4L345.4 310.8a8.07 8.07 0 0 1 7-11.9h60.7c3 0 5.8 1.7 7.1 4.4l90.6 180h3.4l90.6-180a8 8 0 0 1 7.1-4.4h59.5c4.4 0 8 3.6 8 8 .2 1.4-.2 2.7-.8 3.9z")),t.NotificationFill=l("notification",a,c(i,"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.6c-3.7 11.6-5.6 23.9-5.6 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1z")),t.PhoneFill=l("phone",a,c(i,"M885.6 230.2L779.1 123.8a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 0 0-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 0 1 553.1 553 395.34 395.34 0 0 1 437 633.8L353.2 550a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 0 0-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z")),t.PictureFill=l("picture",a,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 0 1-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z")),t.PieChartFill=l("pie-chart",a,c(i,"M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 0 0-282.5 117 397.47 397.47 0 0 0-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 0 0 155.6 31.5 398.57 398.57 0 0 0 282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0 0 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 0 0 588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z")),t.PlayCircleFill=l("play-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z")),t.PlaySquareFill=l("play-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6z")),t.PlusCircleFill=l("plus-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z")),t.PlusSquareFill=l("plus-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z")),t.PoundCircleFill=l("pound-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm146 658c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8V722z")),t.PrinterFill=l("printer",a,c(i,"M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z")),t.ProfileFill=l("profile",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM380 696c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm304 272c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48z")),t.ProjectFill=l("project",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM368 744c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464zm192-280c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184zm192 72c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256z")),t.PushpinFill=l("pushpin",a,c(i,"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z")),t.PropertySafetyFill=l("property-safety",a,c(i,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM648.3 332.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z")),t.QqCircleFill=l("qq-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z")),t.QqSquareFill=l("qq-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM722.5 676.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z")),t.QuestionCircleFill=l("question-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z")),t.ReadFill=l("read",a,c(i,"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM404 553.5c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm416 140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45z")),t.ReconciliationFill=l("reconciliation",a,c(i,"M676 623c-18.8 0-34 15.2-34 34s15.2 34 34 34 34-15.2 34-34-15.2-34-34-34zm204-455H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zM448 848H176V616h272v232zm0-296H176v-88h272v88zm20-272v-48h72v-56h64v56h72v48H468zm180 168v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8zm28 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-245c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v96zm-92 61c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z")),t.RedEnvelopeFill=l("red-envelope",a,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM647 470.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4v25.1c0 4.6-3.8 8.4-8.4 8.4h-63.3v28.6h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.6-3.6 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4l-87.5-161c-2.2-4.1-.7-9.1 3.4-11.4 1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.9 141.8 71.9-141.9a8.5 8.5 0 0 1 7.5-4.6h47.8c4.6 0 8.4 3.8 8.4 8.4-.1 1.5-.5 2.9-1.1 4.1zM512.6 323L289 148h446L512.6 323z")),t.RedditCircleFill=l("reddit-circle",a,c(i,"M584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm245 477.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zm-171.3 83c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm72 108a36 36 0 1 0 72 0 36 36 0 1 0-72 0z")),t.RedditSquareFill=l("reddit-square",a,c(i,"M296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm289.7 184.9c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM757 541.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zM584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM368 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0z")),t.RestFill=l("rest",a,c(i,"M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zM508 704c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zM291 256l22.4-76h397.2l22.4 76H291zm137 304a80 80 0 1 0 160 0 80 80 0 1 0-160 0z")),t.RightCircleFill=l("right-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z")),t.RocketFill=l("rocket",a,c(i,"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zM512 352a48.01 48.01 0 0 1 0 96 48.01 48.01 0 0 1 0-96zm116.1 432.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5z")),t.RightSquareFill=l("right-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM658.7 518.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z")),t.SafetyCertificateFill=l("safety-certificate",a,c(i,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM694.5 340.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z")),t.SaveFill=l("save",a,c(i,"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z")),t.ScheduleFill=l("schedule",a,c(i,"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.5-91.3l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.2c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.5 12.9 6.6l52.8 73.1 103.7-143.7c3-4.2 7.8-6.6 12.9-6.6H792c6.5.1 10.3 7.5 6.5 12.8z")),t.SecurityScanFill=l("security-scan",a,c(i,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM626.8 554c-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0 56.3 56.3 56.3 147.5 0 203.8zm-158.54-45.27a80.1 80.1 0 1 0 113.27-113.28 80.1 80.1 0 1 0-113.27 113.28z")),t.SettingFill=l("setting",a,c(i,"M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z")),t.ShopFill=l("shop",a,c(i,"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h274V736h128v176h274c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zm-72 568H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm0-568.1H214v-88h596v88z")),t.ShoppingFill=l("shopping",a,c(i,"M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-208 0H400v-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16z")),t.SketchCircleFill=l("sketch-circle",a,c(i,"M582.3 625.6l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zm-274.7 36L512 684.5l114.4-225.2zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm286.7 380.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-190.5-20.9L512 326.1l-96.2 97.2zM420.3 301.1l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8zm-222.4 7.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3z")),t.SketchSquareFill=l("sketch-square",a,c(i,"M608.2 423.3L512 326.1l-96.2 97.2zm-25.9 202.3l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-81.3 332.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-401.1 15.1L512 684.5l114.4-225.2zm-16.3-151.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3zm126.5-158.2l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8z")),t.SkinFill=l("skin",a,c(i,"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44z")),t.SlackCircleFill=l("slack-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm83.7-50.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM579.3 765c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134c-13.3 0-26.1-5.3-35.6-14.8S529 593.6 529 580.2c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z")),t.SlackSquareFill=l("slack-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z")),t.SkypeFill=l("skype",a,c(i,"M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-370 162.9c-134.2 0-194.2-66-194.2-115.4 0-25.4 18.7-43.1 44.5-43.1 57.4 0 42.6 82.5 149.7 82.5 54.9 0 85.2-29.8 85.2-60.3 0-18.3-9-38.7-45.2-47.6l-119.4-29.8c-96.1-24.1-113.6-76.1-113.6-124.9 0-101.4 95.5-139.5 185.2-139.5 82.6 0 180 45.7 180 106.5 0 26.1-22.6 41.2-48.4 41.2-49 0-40-67.8-138.7-67.8-49 0-76.1 22.2-76.1 53.9s38.7 41.8 72.3 49.5l88.4 19.6c96.8 21.6 121.3 78.1 121.3 131.3 0 82.3-63.3 143.9-191 143.9z")),t.SlidersFill=l("sliders",a,c(i,"M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-584-72h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm292 180h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8z")),t.SmileFill=l("smile",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.SnippetsFill=l("snippets",a,c(i,"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 486H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z")),t.SoundFill=l("sound",a,c(i,"M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zm174 132H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1z")),t.StarFill=l("star",a,c(i,"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z")),t.StepBackwardFill=l("step-backward",a,c(r,"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8")),t.StepForwardFill=l("step-forward",a,c(r,"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8")),t.StopFill=l("stop",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm234.8 736.5L223.5 277.2c16-19.7 34-37.7 53.7-53.7l523.3 523.3c-16 19.6-34 37.7-53.7 53.7z")),t.SwitcherFill=l("switcher",a,c(i,"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zM596 606c0 4.4-3.6 8-8 8H308c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h280c4.4 0 8 3.6 8 8v48zm284-494H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z")),t.TabletFill=l("tablet",a,c(i,"M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z")),t.TagFill=l("tag",a,c(i,"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM699 387c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z")),t.TagsFill=l("tags",a,c(i,"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm122.7-533.4c18.7-18.7 49.1-18.7 67.9 0 18.7 18.7 18.7 49.1 0 67.9-18.7 18.7-49.1 18.7-67.9 0-18.7-18.7-18.7-49.1 0-67.9zm283.8 282.9l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z")),t.TaobaoCircleFill=l("taobao-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z")),t.TaobaoSquareFill=l("taobao-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z")),t.ToolFill=l("tool",a,c(i,"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 0 0 419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z")),t.ThunderboltFill=l("thunderbolt",a,c(i,"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7z")),t.TrademarkCircleFill=l("trademark-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm164.7 660.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H378c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7zM523.9 357h-83.4v148H522c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z")),t.TwitterCircleFill=l("twitter-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm215.3 337.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z")),t.TrophyFill=l("trophy",a,c(i,"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.6 630.2 359 721.8 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.8 758.4 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6c-37.1-11.9-64-46.7-64-87.6V232h64v207.6zM840 352c0 41-26.9 75.8-64 87.6V232h64v120z")),t.TwitterSquareFill=l("twitter-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM727.3 401.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z")),t.UnlockFill=l("unlock",a,c(i,"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z")),t.UpCircleFill=l("up-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm178 555h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z")),t.UpSquareFill=l("up-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM690 624h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z")),t.UsbFill=l("usb",a,c(i,"M408 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm352 120V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-72 0H336V184h352v248zM568 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z")),t.WalletFill=l("wallet",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 464H528V448h320v128zm-268-64a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.VideoCameraFill=l("video-camera",a,c(i,"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z")),t.WarningFill=l("warning",a,c(i,"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.WeiboCircleFill=l("weibo-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z")),t.WechatFill=l("wechat",a,c(i,"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z")),t.WindowsFill=l("windows",a,c(i,"M523.8 191.4v288.9h382V128.1zm0 642.2l382 62.2v-352h-382zM120.1 480.2H443V201.9l-322.9 53.5zm0 290.4L443 823.2V543.8H120.1z")),t.YahooFill=l("yahoo",a,c(i,"M937.3 231H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7zm-77.4 450.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm225.2 225.2h-65.3L458.9 559.8v65.3h84.4v56.3H318.2v-56.3h84.4v-65.3L242.9 399.9h-37v-56.3h168.5v56.3h-37l93.4 93.5 28.1-28.1V400h168.8v56.2z")),t.WeiboSquareFill=l("weibo-square",a,c(i,"M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z")),t.YuqueFill=l("yuque",a,c(i,"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6z")),t.YoutubeFill=l("youtube",a,c(i,"M941.3 296.1a112.3 112.3 0 0 0-79.2-79.3C792.2 198 512 198 512 198s-280.2 0-350.1 18.7A112.12 112.12 0 0 0 82.7 296C64 366 64 512 64 512s0 146 18.7 215.9c10.3 38.6 40.7 69 79.2 79.3C231.8 826 512 826 512 826s280.2 0 350.1-18.8c38.6-10.3 68.9-40.7 79.2-79.3C960 658 960 512 960 512s0-146-18.7-215.9zM423 646V378l232 133-232 135z")),t.ZhihuSquareFill=l("zhihu-square",a,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM432.3 592.8l71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7h-110l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24.1-18.1zm335.5 116h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z")),t.ZhihuCircleFill=l("zhihu-circle",a,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-90.7 477.8l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24-18.1 71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7H421.3zm346.5 167h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z")),t.AccountBookOutline=l("account-book",o,c(i,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z")),t.AlertOutline=l("alert",o,c(i,"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z")),t.AlipayCircleOutline=l("alipay-circle",o,c(i,"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z")),t.AliwangwangOutline=l("aliwangwang",o,c(i,"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 0 1-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 0 1-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 0 1 217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z")),t.AndroidOutline=l("android",o,c(i,"M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z")),t.ApiOutline=l("api",o,c(i,"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z")),t.AppstoreOutline=l("appstore",o,c(i,"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z")),t.AudioOutline=l("audio",o,c(i,"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z")),t.AppleOutline=l("apple",o,c(i,"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z")),t.BackwardOutline=l("backward",o,c(r,"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z")),t.BankOutline=l("bank",o,c(i,"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z")),t.BellOutline=l("bell",o,c(i,"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z")),t.BehanceSquareOutline=l("behance-square",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z")),t.BookOutline=l("book",o,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z")),t.BoxPlotOutline=l("box-plot",o,c(i,"M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM296 368h88v288h-88V368zm432 288H448V368h280v288z")),t.BulbOutline=l("bulb",o,c(i,"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z")),t.BugOutline=l("bug",o,c(i,"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z","M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 0 0 123.2-149.5A120 120 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 0 1 308 680V412h408v268z")),t.CalculatorOutline=l("calculator",o,c(i,"M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z")),t.BuildOutline=l("build",o,c(i,"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z")),t.CalendarOutline=l("calendar",o,c(i,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z")),t.CameraOutline=l("camera",o,c(i,"M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z")),t.CarOutline=l("car",o,c(i,"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm239-167.6L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.CaretDownOutline=l("caret-down",o,c(r,"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z")),t.CaretLeftOutline=l("caret-left",o,c(r,"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z")),t.CaretRightOutline=l("caret-right",o,c(r,"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z")),t.CarryOutOutline=l("carry-out",o,c(i,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z")),t.CheckCircleOutline=l("check-circle",o,c(i,"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.CaretUpOutline=l("caret-up",o,c(r,"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z")),t.CheckSquareOutline=l("check-square",o,c(i,"M433.1 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.ChromeOutline=l("chrome",o,c(i,"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z")),t.ClockCircleOutline=l("clock-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z","M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z")),t.CloseCircleOutline=l("close-circle",o,c(i,"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z","M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.CloudOutline=l("cloud",o,c(i,"M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z")),t.CloseSquareOutline=l("close-square",o,c(i,"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.CodeOutline=l("code",o,c(i,"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.CodepenCircleOutline=l("codepen-circle",o,c(i,"M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z")),t.CompassOutline=l("compass",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 0 0-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 0 0-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z")),t.ContactsOutline=l("contacts",o,c(i,"M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z")),t.ContainerOutline=l("container",o,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z")),t.ControlOutline=l("control",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z")),t.CopyOutline=l("copy",o,c(i,"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z")),t.CreditCardOutline=l("credit-card",o,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-792 72h752v120H136V232zm752 560H136V440h752v352zm-237-64h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z")),t.CrownOutline=l("crown",o,c(i,"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z")),t.CustomerServiceOutline=l("customer-service",o,c(i,"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z")),t.DashboardOutline=l("dashboard",o,c(i,"M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z")),t.DeleteOutline=l("delete",o,c(i,"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z")),t.DiffOutline=l("diff",o,c(i,"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z")),t.DatabaseOutline=l("database",o,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.DislikeOutline=l("dislike",o,c(i,"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z")),t.DownCircleOutline=l("down-circle",o,c(i,"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.DownSquareOutline=l("down-square",o,c(i,"M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.8-5.3 0-12.7-6.5-12.7H643c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.DribbbleSquareOutline=l("dribbble-square",o,c(i,"M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z")),t.EnvironmentOutline=l("environment",o,c(i,"M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z")),t.EditOutline=l("edit",o,c(i,"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z")),t.ExclamationCircleOutline=l("exclamation-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z","M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z")),t.ExperimentOutline=l("experiment",o,c(i,"M512 472a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z")),t.EyeInvisibleOutline=l("eye-invisible",o,c(i,"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z","M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z")),t.EyeOutline=l("eye",o,c(i,"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z")),t.FacebookOutline=l("facebook",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z")),t.FastBackwardOutline=l("fast-backward",o,c(r,"M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z")),t.FastForwardOutline=l("fast-forward",o,c(r,"M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z")),t.FileAddOutline=l("file-add",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z")),t.FileExcelOutline=l("file-excel",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z")),t.FileExclamationOutline=l("file-exclamation",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM472 744a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm16-104h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8z")),t.FileImageOutline=l("file-image",o,c(i,"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z")),t.FileMarkdownOutline=l("file-markdown",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z")),t.FilePptOutline=l("file-ppt",o,c(i,"M424 476c-4.4 0-8 3.6-8 8v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.3c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1zm280-281.7L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z")),t.FileTextOutline=l("file-text",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z")),t.FilePdfOutline=l("file-pdf",o,c(i,"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z")),t.FileZipOutline=l("file-zip",o,c(i,"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z")),t.FileOutline=l("file",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z")),t.FilterOutline=l("filter",o,c(i,"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z")),t.FileWordOutline=l("file-word",o,c(i,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z")),t.FireOutline=l("fire",o,c(i,"M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z")),t.FileUnknownOutline=l("file-unknown",o,c(i,"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm78 195a32 32 0 1 0 64 0 32 32 0 1 0-64 0z")),t.FlagOutline=l("flag",o,c(i,"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z")),t.FolderAddOutline=l("folder-add",o,c(i,"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z")),t.FolderOutline=l("folder",o,c(i,"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z")),t.FolderOpenOutline=l("folder-open",o,c(i,"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z")),t.ForwardOutline=l("forward",o,c(r,"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z")),t.FrownOutline=l("frown",o,c(i,"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533z")),t.FundOutline=l("fund",o,c(i,"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L531 565 416.6 450.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z")),t.FunnelPlotOutline=l("funnel-plot",o,c(i,"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z")),t.GiftOutline=l("gift",o,c(i,"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z")),t.GithubOutline=l("github",o,c(i,"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z")),t.GitlabOutline=l("gitlab",o,c(i,"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z")),t.HeartOutline=l("heart",o,c(i,"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z")),t.HddOutline=l("hdd",o,c(i,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.HighlightOutline=l("highlight",o,c(i,"M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z")),t.HomeOutline=l("home",o,c(i,"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z")),t.HourglassOutline=l("hourglass",o,c(i,"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z")),t.Html5Outline=l("html5",o,c(i,"M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z")),t.IdcardOutline=l("idcard",o,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z")),t.InfoCircleOutline=l("info-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z","M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z")),t.InstagramOutline=l("instagram",o,c(i,"M512 306.9c-113.5 0-205.1 91.6-205.1 205.1S398.5 717.1 512 717.1 717.1 625.5 717.1 512 625.5 306.9 512 306.9zm0 338.4c-73.4 0-133.3-59.9-133.3-133.3S438.6 378.7 512 378.7 645.3 438.6 645.3 512 585.4 645.3 512 645.3zm213.5-394.6c-26.5 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9 47.9-21.3 47.9-47.9a47.84 47.84 0 0 0-47.9-47.9zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zm-88 235.8c-7.3 18.2-16.1 31.8-30.2 45.8-14.1 14.1-27.6 22.9-45.8 30.2C695.2 844.7 570.3 840 512 840c-58.3 0-183.3 4.7-235.9-16.1-18.2-7.3-31.8-16.1-45.8-30.2-14.1-14.1-22.9-27.6-30.2-45.8C179.3 695.2 184 570.3 184 512c0-58.3-4.7-183.3 16.1-235.9 7.3-18.2 16.1-31.8 30.2-45.8s27.6-22.9 45.8-30.2C328.7 179.3 453.7 184 512 184s183.3-4.7 235.9 16.1c18.2 7.3 31.8 16.1 45.8 30.2 14.1 14.1 22.9 27.6 30.2 45.8C844.7 328.7 840 453.7 840 512c0 58.3 4.7 183.2-16.2 235.8z")),t.InsuranceOutline=l("insurance",o,c(i,"M441.6 306.8L403 288.6a6.1 6.1 0 0 0-8.4 3.7c-17.5 58.5-45.2 110.1-82.2 153.6a6.05 6.05 0 0 0-1.2 5.6l13.2 43.5c1.3 4.4 7 5.7 10.2 2.4 7.7-8.1 15.4-16.9 23.1-26V656c0 4.4 3.6 8 8 8H403c4.4 0 8-3.6 8-8V393.1a429.2 429.2 0 0 0 33.6-79c1-2.9-.3-6-3-7.3zm26.8 9.2v127.2c0 4.4 3.6 8 8 8h65.9v18.6h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c1.9 3.1 6.2 3.8 8.9 1.4 31.6-26.8 58.7-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V536c21.3 41.7 47.5 77.5 78.1 106.9 2.6 2.5 6.8 2.1 8.9-.7l26.3-35.3c2-2.7 1.4-6.5-1.2-8.4-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8V478c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H476.4c-4.4 0-8 3.6-8 8zm51.5 42.8h97.9v41.6h-97.9v-41.6zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z")),t.InteractionOutline=l("interaction",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z")),t.InterationOutline=l("interation",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z")),t.LayoutOutline=l("layout",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z")),t.LeftCircleOutline=l("left-circle",o,c(i,"M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.LeftSquareOutline=l("left-square",o,c(i,"M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 0 0 0 13z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.LikeOutline=l("like",o,c(i,"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z")),t.LinkedinOutline=l("linkedin",o,c(i,"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 1 0-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z")),t.LockOutline=l("lock",o,c(i,"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z")),t.MedicineBoxOutline=l("medicine-box",o,c(i,"M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z")),t.MehOutline=l("meh",o,c(i,"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z")),t.MailOutline=l("mail",o,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z")),t.MessageOutline=l("message",o,c(i,"M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm200 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z")),t.MinusCircleOutline=l("minus-circle",o,c(i,"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.MinusSquareOutline=l("minus-square",o,c(i,"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.MobileOutline=l("mobile",o,c(i,"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.MoneyCollectOutline=l("money-collect",o,c(i,"M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM512 837.5l-256-93.1V184h512v560.4l-256 93.1zM660.6 312h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9z")),t.PauseCircleOutline=l("pause-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z")),t.PayCircleOutline=l("pay-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z")),t.NotificationOutline=l("notification",o,c(i,"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z")),t.PhoneOutline=l("phone",o,c(i,"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z")),t.PictureOutline=l("picture",o,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z")),t.PieChartOutline=l("pie-chart",o,c(i,"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552a398.46 398.46 0 0 0 117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952a398.46 398.46 0 0 0 282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z")),t.PlaySquareOutline=l("play-square",o,c(i,"M442.3 677.6l199.4-156.7a11.3 11.3 0 0 0 0-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.PlayCircleOutline=l("play-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z","M719.4 499.1l-296.1-215A15.9 15.9 0 0 0 398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 0 0 0-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z")),t.PlusCircleOutline=l("plus-circle",o,c(i,"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.PrinterOutline=l("printer",o,c(i,"M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z")),t.PlusSquareOutline=l("plus-square",o,c(i,"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.ProfileOutline=l("profile",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.ProjectOutline=l("project",o,c(i,"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.PushpinOutline=l("pushpin",o,c(i,"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z")),t.PropertySafetyOutline=l("property-safety",o,c(i,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM430.5 318h-46c-1.7 0-3.3.4-4.8 1.2a10.1 10.1 0 0 0-4 13.6l88 161.1h-45.2c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7h-63.1c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1a10.05 10.05 0 0 0-8.8-14.8h-45c-3.8 0-7.2 2.1-8.9 5.5l-73.2 144.3-72.9-144.3c-1.7-3.4-5.2-5.5-9-5.5z")),t.QuestionCircleOutline=l("question-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z","M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.ReadOutline=l("read",o,c(i,"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z")),t.ReconciliationOutline=l("reconciliation",o,c(i,"M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm204-523H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552zM704 408v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zM592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z")),t.RedEnvelopeOutline=l("red-envelope",o,c(i,"M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142zM832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z")),t.RestOutline=l("rest",o,c(i,"M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z","M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z")),t.RightCircleOutline=l("right-circle",o,c(i,"M666.7 505.5l-246-178A8 8 0 0 0 408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.RocketOutline=l("rocket",o,c(i,"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0 1 62.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z")),t.RightSquareOutline=l("right-square",o,c(i,"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.SafetyCertificateOutline=l("safety-certificate",o,c(i,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z")),t.ScheduleOutline=l("schedule",o,c(i,"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 136H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z")),t.SaveOutline=l("save",o,c(i,"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z")),t.SecurityScanOutline=l("security-scan",o,c(i,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z")),t.SettingOutline=l("setting",o,c(i,"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z")),t.ShoppingOutline=l("shopping",o,c(i,"M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z")),t.SkinOutline=l("skin",o,c(i,"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z")),t.SkypeOutline=l("skype",o,c(i,"M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 0 1-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 0 1-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0 1 71.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z")),t.SlackSquareOutline=l("slack-square",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z")),t.SlidersOutline=l("sliders",o,c(i,"M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74z")),t.SmileOutline=l("smile",o,c(i,"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z")),t.SnippetsOutline=l("snippets",o,c(i,"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z")),t.SoundOutline=l("sound",o,c(i,"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344z")),t.StarOutline=l("star",o,c(i,"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z")),t.StepBackwardOutline=l("step-backward",o,c(r,"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8")),t.StepForwardOutline=l("step-forward",o,c(r,"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8")),t.StopOutline=l("stop",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z")),t.SwitcherOutline=l("switcher",o,c(i,"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z")),t.TagOutline=l("tag",o,c(i,"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z")),t.TabletOutline=l("tablet",o,c(i,"M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.ShopOutline=l("shop",o,c(i,"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z")),t.TagsOutline=l("tags",o,c(i,"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1 0 67.88-67.89 48 48 0 1 0-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z")),t.TaobaoCircleOutline=l("taobao-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z")),t.ToolOutline=l("tool",o,c(i,"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z")),t.ThunderboltOutline=l("thunderbolt",o,c(i,"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z")),t.TrophyOutline=l("trophy",o,c(i,"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM184 352V232h64v207.6a91.99 91.99 0 0 1-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z")),t.UnlockOutline=l("unlock",o,c(i,"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z")),t.UpCircleOutline=l("up-circle",o,c(i,"M518.5 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z","M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z")),t.UpSquareOutline=l("up-square",o,c(i,"M334 624h46.9c10.2 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246A7.96 7.96 0 0 0 334 624z","M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.UsbOutline=l("usb",o,c(i,"M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-424 0V184h352v248H336zm120-184h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z")),t.VideoCameraOutline=l("video-camera",o,c(i,"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z")),t.WalletOutline=l("wallet",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.WarningOutline=l("warning",o,c(i,"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z")),t.WechatOutline=l("wechat",o,c(i,"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z")),t.WeiboCircleOutline=l("weibo-circle",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z")),t.WindowsOutline=l("windows",o,c(i,"M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z")),t.YahooOutline=l("yahoo",o,c(i,"M859.9 681.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm0 507C245.1 738 121 634.6 121 512.5c0-62.3 32.3-119.7 84.9-161v48.4h37l159.8 159.9v65.3h-84.4v56.3h225.1v-56.3H459v-65.3l103.5-103.6h65.3v-56.3H459v65.3l-28.1 28.1-93.4-93.5h37v-56.3H216.4c49.4-35 114.3-56.6 186.2-56.6 157.6 0 281.6 103.4 281.6 225.5S560.2 738 402.6 738zm534.7-507H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7z")),t.WeiboSquareOutline=l("weibo-square",o,c(i,"M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z")),t.YuqueOutline=l("yuque",o,c(i,"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z")),t.YoutubeOutline=l("youtube",o,c(i,"M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 0 0-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0 0 82.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z")),t.AlibabaOutline=l("alibaba",o,c(i,"M602.9 669.8c-37.2 2.6-33.6-17.3-11.5-46.2 50.4-67.2 143.7-158.5 147.9-225.2 5.8-86.6-81.3-113.4-171-113.4-62.4 1.6-127 18.9-171 34.6-151.6 53.5-246.6 137.5-306.9 232-62.4 93.4-43 183.2 91.8 185.8 101.8-4.2 170.5-32.5 239.7-68.2.5 0-192.5 55.1-263.9 14.7-7.9-4.2-15.7-10-17.8-26.2 0-33.1 54.6-67.7 86.6-78.7v-56.7c64.5 22.6 140.6 16.3 205.7-32 2.1 5.8 4.2 13.1 3.7 21h11c2.6-22.6-12.6-44.6-37.8-46.2 7.3 5.8 12.6 10.5 15.2 14.7l-1 1-.5.5c-83.9 58.8-165.3 31.5-173.1 29.9l46.7-45.7-13.1-33.1c92.9-32.5 169.5-56.2 296.9-78.7l-28.5-23 14.7-8.9c75.5 21 126.4 36.7 123.8 76.6-1 6.8-3.7 14.7-7.9 23.1C660.1 466.1 594 538 567.2 569c-17.3 20.5-34.6 39.4-46.7 58.3-13.6 19.4-20.5 37.3-21 53.5 2.6 131.8 391.4-61.9 468-112.9-111.7 47.8-232.9 93.5-364.6 101.9zm85-302.9c2.8 5.2 4.1 11.6 4.1 19.1-.1-6.8-1.4-13.3-4.1-19.1z")),t.AlignCenterOutline=l("align-center",o,c(i,"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.AlignLeftOutline=l("align-left",o,c(i,"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.AlignRightOutline=l("align-right",o,c(i,"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.AlipayOutline=l("alipay",o,c(i,"M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 0 1-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z")),t.AliyunOutline=l("aliyun",o,c(i,"M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0 1 32.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 0 1-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 0 1-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z")),t.AmazonOutline=l("amazon",o,c(i,"M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 0 0-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z")),t.AntCloudOutline=l("ant-cloud",o,c(i,"M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0 1 22.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 0 1-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-65.7 61.3a24 24 0 1 0 48 0 24 24 0 1 0-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z")),t.ApartmentOutline=l("apartment",o,c(i,"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z")),t.AntDesignOutline=l("ant-design",o,c(i,"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 0 0 0 76.4L474.6 944a54.14 54.14 0 0 0 76.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 0 0-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 1 0 212.6 0 106.3 106.2 0 1 0-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 0 0 0 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 0 0 0 68.6 48.7 48.7 0 0 0 68.7 0l121.8-121.7a53.93 53.93 0 0 0-.1-76.4z")),t.AreaChartOutline=l("area-chart",o,c(i,"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 0 0-11.3 0l-189 189.6a7.87 7.87 0 0 0-2.3 5.6V720c0 4.4 3.6 8 8 8z")),t.ArrowLeftOutline=l("arrow-left",o,c(i,"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z")),t.ArrowDownOutline=l("arrow-down",o,c(i,"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z")),t.ArrowUpOutline=l("arrow-up",o,c(i,"M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z")),t.ArrowsAltOutline=l("arrows-alt",o,c(i,"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L863.9 169a7.9 7.9 0 0 0-8.9-8.9zM416.6 562.3a8.03 8.03 0 0 0-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z")),t.ArrowRightOutline=l("arrow-right",o,c(i,"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z")),t.AuditOutline=l("audit",o,c(i,"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z")),t.BarChartOutline=l("bar-chart",o,c(i,"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z")),t.BarcodeOutline=l("barcode",o,c(i,"M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z")),t.BarsOutline=l("bars",o,c(r,"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z")),t.BgColorsOutline=l("bg-colors",o,c(i,"M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 0 0-12.8 0l-48 48a9.11 9.11 0 0 0 0 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z")),t.BehanceOutline=l("behance",o,c(i,"M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z")),t.BlockOutline=l("block",o,c(i,"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z")),t.BoldOutline=l("bold",o,c(i,"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z")),t.BorderBottomOutline=l("border-bottom",o,c(i,"M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z")),t.BorderLeftOutline=l("border-left",o,c(i,"M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.BorderOuterOutline=l("border-outer",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z")),t.BorderInnerOutline=l("border-inner",o,c(i,"M872 476H548V144h-72v332H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v332h72V548h324c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-426h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 260h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.BorderRightOutline=l("border-right",o,c(i,"M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.BorderHorizontalOutline=l("border-horizontal",o,c(i,"M540 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.BorderTopOutline=l("border-top",o,c(i,"M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.BorderVerticleOutline=l("border-verticle",o,c(i,"M872 476H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM152 382h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 642h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.BorderOutline=l("border",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z")),t.BranchesOutline=l("branches",o,c(i,"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0 0 34.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm408-491a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.CheckOutline=l("check",o,c(i,"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z")),t.CiOutline=l("ci",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm218-572.1h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z")),t.CloseOutline=l("close",o,c(i,"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z")),t.CloudDownloadOutline=l("cloud-download",o,c(i,"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z","M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z")),t.CloudServerOutline=l("cloud-server",o,c(i,"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z","M424 748a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm0-178a32 32 0 1 0 64 0 32 32 0 1 0-64 0z","M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z")),t.CloudSyncOutline=l("cloud-sync",o,c(i,"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z","M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 0 0 3 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 0 0-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z")),t.CloudUploadOutline=l("cloud-upload",o,c(i,"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z","M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z")),t.ClusterOutline=l("cluster",o,c(i,"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1 0 80 0 40 40 0 1 0-80 0z")),t.CodepenOutline=l("codepen",o,c(i,"M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 0 0-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z")),t.CodeSandboxOutline=l("code-sandbox",o,c(i,"M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z")),t.ColumHeightOutline=l("colum-height",o,c(i,"M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z")),t.ColumnWidthOutline=l("column-width",o,c(i,"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 0 0-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z")),t.ColumnHeightOutline=l("column-height",o,c(i,"M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z")),t.CoffeeOutline=l("coffee",o,c(r,"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z")),t.CopyrightOutline=l("copyright",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z")),t.DashOutline=l("dash",o,c(i,"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z")),t.DeploymentUnitOutline=l("deployment-unit",o,c(i,"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 0 1-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0 1 65.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z")),t.DesktopOutline=l("desktop",o,c(i,"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z")),t.DingdingOutline=l("dingding",o,c(i,"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z")),t.DisconnectOutline=l("disconnect",o,c(i,"M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 0 0-11.3 0L209.4 249a8.03 8.03 0 0 0 0 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z")),t.DollarOutline=l("dollar",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z")),t.DoubleRightOutline=l("double-right",o,c(i,"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z")),t.DotChartOutline=l("dot-chart",o,c(i,"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm118-224a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm158 228a96 96 0 1 0 192 0 96 96 0 1 0-192 0zm148-314a56 56 0 1 0 112 0 56 56 0 1 0-112 0z")),t.DoubleLeftOutline=l("double-left",o,c(i,"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z")),t.DownloadOutline=l("download",o,c(i,"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z")),t.DribbbleOutline=l("dribbble",o,c(i,"M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 0 1 512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z")),t.DropboxOutline=l("dropbox",o,c(i,"M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z")),t.EllipsisOutline=l("ellipsis",o,c(i,"M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z")),t.EnterOutline=l("enter",o,c(i,"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z")),t.EuroOutline=l("euro",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm117.7-588.6c-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H344c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H344c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H439.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H447.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8z")),t.ExceptionOutline=l("exception",o,c(i,"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.ExclamationOutline=l("exclamation",o,c(i,"M448 804a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z")),t.ExportOutline=l("export",o,c(i,"M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zm18.6-251.7L765 393.7c-5.3-4.2-13-.4-13 6.3v76H438c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z")),t.FallOutline=l("fall",o,c(i,"M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 388.3c-6.3-6.2-16.4-6.2-22.6 0L433.3 490 156.6 213.3a8.03 8.03 0 0 0-11.3 0l-45 45.2a8.03 8.03 0 0 0 0 11.3L422 591.7c6.2 6.3 16.4 6.3 22.6 0L546.4 490l226.1 226-59.3 59.3a8.01 8.01 0 0 0 4.7 13.6l199.2 24c5.1.7 9.5-3.7 8.8-8.9z")),t.FileDoneOutline=l("file-done",o,c(i,"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 0 0-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.FileSyncOutline=l("file-sync",o,c(i,"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8zm-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7.2-4.5-3.5-8.3-8-8.3z")),t.FileProtectOutline=l("file-protect",o,c(i,"M644.7 669.2a7.92 7.92 0 0 0-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 0 0-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z")),t.FileSearchOutline=l("file-search",o,c(i,"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 0 0 0-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z")),t.FileJpgOutline=l("file-jpg",o,c(r,"M874.6 301.8L596.8 21.3c-4.5-4.5-9.4-8.3-14.7-11.5-1.4-.8-2.8-1.6-4.3-2.3-.9-.5-1.9-.9-2.8-1.3-9-4-18.9-6.2-29-6.2H201c-39.8 0-73 32.2-73 72v880c0 39.8 33.2 72 73 72h623c39.8 0 71-32.2 71-72V352.5c0-19-7-37.2-20.4-50.7zM583 110.4L783.8 312H583V110.4zM823 952H200V72h311v240c0 39.8 33.2 72 73 72h239v568zM350 696.5c0 24.2-7.5 31.4-21.9 31.4-9 0-18.4-5.8-24.8-18.5L272.9 732c13.4 22.9 32.3 34.2 61.3 34.2 41.6 0 60.8-29.9 60.8-66.2V577h-45v119.5zM501.3 577H437v186h44v-62h21.6c39.1 0 73.1-19.6 73.1-63.6 0-45.8-33.5-60.4-74.4-60.4zm-.8 89H481v-53h18.2c21.5 0 33.4 6.2 33.4 24.9 0 18.1-10.5 28.1-32.1 28.1zm182.5-9v36h30v30.1c-4 2.9-11 4.7-17.7 4.7-34.3 0-50.7-21.4-50.7-58.2 0-36.1 19.7-57.4 47.1-57.4 15.3 0 25 6.2 34 14.4l23.7-28.3c-12.7-12.8-32.1-24.2-59.2-24.2-49.6 0-91.1 35.3-91.1 97 0 62.7 40 95.1 91.5 95.1 25.9 0 49.2-10.2 61.5-22.6V657H683z")),t.FontColorsOutline=l("font-colors",o,c(i,"M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 0 0 6-12.4L573.6 118.6a9.9 9.9 0 0 0-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z")),t.FontSizeOutline=l("font-size",o,c(i,"M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z")),t.ForkOutline=l("fork",o,c(i,"M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm336 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm192-552a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z")),t.FormOutline=l("form",o,c(i,"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z","M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 0 0-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z")),t.FullscreenExitOutline=l("fullscreen-exit",o,c(i,"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z")),t.FullscreenOutline=l("fullscreen",o,c(i,"M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z")),t.GatewayOutline=l("gateway",o,c(i,"M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z")),t.DownOutline=l("down",o,c(i,"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z")),t.DragOutline=l("drag",o,c(i,"M909.3 506.3L781.7 405.6a7.23 7.23 0 0 0-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 0 0-11.3 0L405.6 242.3a7.23 7.23 0 0 0 5.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 0 0 .1-11.4z")),t.GlobalOutline=l("global",o,c(i,"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0 0 10-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 0 0 3.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 0 0-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 0 1 887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 0 1-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 0 1 115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 0 1 540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 0 0 540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 0 1-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 0 0-81.5 55.9A373.86 373.86 0 0 1 137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 0 1-107.6 69.2z")),t.GooglePlusOutline=l("google-plus",o,c(i,"M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z")),t.GoogleOutline=l("google",o,c(i,"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z")),t.HeatMapOutline=l("heat-map",o,c(i,"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-790.4-23.9L512 231.9 858.7 832H165.3zm319-474.1l-228 394c-12.3 21.3 3.1 48 27.7 48h455.8c24.7 0 40.1-26.7 27.7-48L539.7 358c-6.2-10.7-17-16-27.7-16-10.8 0-21.6 5.3-27.7 16zm214 386H325.7L512 422l186.3 322zm-214-194.1l-57 98.4C415 669.5 430.4 696 455 696h114c24.6 0 39.9-26.5 27.7-47.7l-57-98.4c-6.1-10.6-16.9-15.9-27.7-15.9s-21.5 5.3-27.7 15.9zm57.1 98.4h-58.7l29.4-50.7 29.3 50.7z")),t.GoldOutline=l("gold",o,c(i,"M342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128zm2.5 282.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5z")),t.HistoryOutline=l("history",o,c(i,"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 0 0 3 14.1zm167.7 301.1l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 0 1-112.5 75.9 352.18 352.18 0 0 1-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 0 1-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 0 1 171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 0 1 112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 0 1 775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z")),t.IeOutline=l("ie",o,c(i,"M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z")),t.InboxOutline=l("inbox",o,c(r,"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z")),t.ImportOutline=l("import",o,c(i,"M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zM902 476H588v-76c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-76h314c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.InfoOutline=l("info",o,c(i,"M448 224a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z")),t.ItalicOutline=l("italic",o,c(i,"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z")),t.IssuesCloseOutline=l("issues-close",o,c(i,"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 0 0-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0 0 26 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 0 1-49.8 62.2A355.92 355.92 0 0 1 651.1 840a355 355 0 0 1-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 0 1-113.3-76.3A353.06 353.06 0 0 1 184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 0 1 138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 0 0 892 694z")),t.KeyOutline=l("key",o,c(i,"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 0 0 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z")),t.LaptopOutline=l("laptop",o,c(i,"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z")),t.LeftOutline=l("left",o,c(i,"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z")),t.LinkOutline=l("link",o,c(i,"M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z")),t.LineChartOutline=l("line-chart",o,c(i,"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z")),t.LineHeightOutline=l("line-height",o,c(i,"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7a7.14 7.14 0 0 0-11.3 0L713.6 306.3a7.23 7.23 0 0 0 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5a7.2 7.2 0 0 0-5.6-11.7z")),t.LineOutline=l("line",o,c(i,"M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.Loading3QuartersOutline=l("loading-3-quarters",o,c(r,"M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z")),t.LoadingOutline=l("loading",o,c(r,"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z")),t.LoginOutline=l("login",o,c(i,"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z")),t.LogoutOutline=l("logout",o,c(i,"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z")),t.ManOutline=l("man",o,c(i,"M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z")),t.MediumOutline=l("medium",o,c(i,"M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z")),t.MediumWorkmarkOutline=l("medium-workmark",o,c(r,"M517.2 590.55c0 3.55 0 4.36 2.4 6.55l13.43 13.25v.57h-59.57v-25.47a41.44 41.44 0 0 1-39.5 27.65c-30.61 0-52.84-24.25-52.84-68.87 0-41.8 23.99-69.69 57.65-69.69a35.15 35.15 0 0 1 34.61 21.67v-56.19a6.99 6.99 0 0 0-2.71-6.79l-12.8-12.45v-.56l59.33-7.04v177.37zm-43.74-8.09v-83.83a22.2 22.2 0 0 0-17.74-8.4c-14.48 0-28.47 13.25-28.47 52.62 0 36.86 12.07 49.88 27.1 49.88a23.91 23.91 0 0 0 19.11-10.27zm83.23 28.46V497.74a7.65 7.65 0 0 0-2.4-6.79l-13.19-13.74v-.57h59.56v114.8c0 3.55 0 4.36 2.4 6.54l13.12 12.45v.57l-59.49-.08zm-2.16-175.67c0-13.4 10.74-24.25 23.99-24.25 13.25 0 23.98 10.86 23.98 24.25 0 13.4-10.73 24.25-23.98 24.25s-23.99-10.85-23.99-24.25zm206.83 155.06c0 3.55 0 4.6 2.4 6.79l13.43 13.25v.57h-59.88V581.9a43.4 43.4 0 0 1-41.01 31.2c-26.55 0-40.78-19.56-40.78-56.59 0-17.86 0-37.43.56-59.41a6.91 6.91 0 0 0-2.4-6.55L620.5 477.2v-.57h59.09v73.81c0 24.25 3.51 40.42 18.54 40.42a23.96 23.96 0 0 0 19.35-12.2v-80.85a7.65 7.65 0 0 0-2.4-6.79l-13.27-13.82v-.57h59.56V590.3zm202.76 20.6c0-4.36.8-59.97.8-72.75 0-24.25-3.76-40.98-20.63-40.98a26.7 26.7 0 0 0-21.19 11.64 99.68 99.68 0 0 1 2.4 23.04c0 16.81-.56 38.23-.8 59.66a6.91 6.91 0 0 0 2.4 6.55l13.43 12.45v.56h-60.12c0-4.04.8-59.98.8-72.76 0-24.65-3.76-40.98-20.39-40.98-8.2.3-15.68 4.8-19.83 11.96v82.46c0 3.56 0 4.37 2.4 6.55l13.11 12.45v.56h-59.48V498.15a7.65 7.65 0 0 0-2.4-6.8l-13.19-14.14v-.57H841v28.78c5.53-19 23.13-31.76 42.7-30.96 19.82 0 33.26 11.16 38.93 32.34a46.41 46.41 0 0 1 44.77-32.34c26.55 0 41.58 19.8 41.58 57.23 0 17.87-.56 38.24-.8 59.66a6.5 6.5 0 0 0 2.72 6.55l13.11 12.45v.57h-59.88zM215.87 593.3l17.66 17.05v.57h-89.62v-.57l17.99-17.05a6.91 6.91 0 0 0 2.4-6.55V477.69c0-4.6 0-10.83.8-16.16L104.66 613.1h-.72l-62.6-139.45c-1.37-3.47-1.77-3.72-2.65-6.06v91.43a32.08 32.08 0 0 0 2.96 17.87l25.19 33.46v.57H0v-.57l25.18-33.55a32.16 32.16 0 0 0 2.96-17.78V457.97A19.71 19.71 0 0 0 24 444.15L6.16 420.78v-.56h63.96l53.56 118.1 47.17-118.1h62.6v.56l-17.58 19.8a6.99 6.99 0 0 0-2.72 6.8v139.37a6.5 6.5 0 0 0 2.72 6.55zm70.11-54.65v.56c0 34.6 17.67 48.5 38.38 48.5a43.5 43.5 0 0 0 40.77-24.97h.56c-7.2 34.2-28.14 50.36-59.48 50.36-33.82 0-65.72-20.61-65.72-68.39 0-50.2 31.98-70.25 67.32-70.25 28.46 0 58.76 13.58 58.76 57.24v6.95h-80.59zm0-6.95h39.42v-7.04c0-35.57-7.28-45.03-18.23-45.03-13.27 0-21.35 14.15-21.35 52.07h.16z")),t.MenuUnfoldOutline=l("menu-unfold",o,c(i,"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z")),t.MenuFoldOutline=l("menu-fold",o,c(i,"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z")),t.MenuOutline=l("menu",o,c(i,"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z")),t.MinusOutline=l("minus",o,c(i,"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z")),t.MonitorOutline=l("monitor",o,c(i,"M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 0 0-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 0 0-11.2-1.4l-37.9 29.7a7.97 7.97 0 0 0-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z")),t.MoreOutline=l("more",o,c(i,"M456 231a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0z")),t.OrderedListOutline=l("ordered-list",o,c(i,"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 0 0-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 0 0 2.1-5.4V432c0-2.2-1.8-4-4-4z")),t.NumberOutline=l("number",o,c(i,"M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z")),t.PauseOutline=l("pause",o,c(i,"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z")),t.PercentageOutline=l("percentage",o,c(i,"M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z")),t.PaperClipOutline=l("paper-clip",o,c(i,"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 0 0 174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z")),t.PicCenterOutline=l("pic-center",o,c(i,"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM848 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h672zM232 436h560v152H232V436z")),t.PicLeftOutline=l("pic-left",o,c(i,"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM608 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM152 436h400v152H152V436zm552 210c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z")),t.PlusOutline=l("plus",o,c(i,"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z","M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z")),t.PicRightOutline=l("pic-right",o,c(i,"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z")),t.PoundOutline=l("pound",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm138-209.8H469.8v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8H495c-7.2-22.6-13.4-45.7-13.4-70.5 0-43.5 34-70.2 87.3-70.2 21.5 0 42.5 4.1 60.4 10.5 5.2 1.9 10.6-2 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.8-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.3 6.9 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.1c3.4 14.7 5.9 29.4 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8V722c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z")),t.PoweroffOutline=l("poweroff",o,c(i,"M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z")),t.PullRequestOutline=l("pull-request",o,c(i,"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0z")),t.QqOutline=l("qq",o,c(i,"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z")),t.QuestionOutline=l("question",o,c(i,"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z")),t.RadarChartOutline=l("radar-chart",o,c(i,"M926.8 397.1l-396-288a31.81 31.81 0 0 0-37.6 0l-396 288a31.99 31.99 0 0 0-11.6 35.8l151.3 466a32 32 0 0 0 30.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z")),t.QrcodeOutline=l("qrcode",o,c(i,"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z")),t.RadiusBottomleftOutline=l("radius-bottomleft",o,c(i,"M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.RadiusBottomrightOutline=l("radius-bottomright",o,c(i,"M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z")),t.RadiusUpleftOutline=l("radius-upleft",o,c(i,"M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.RadiusUprightOutline=l("radius-upright",o,c(i,"M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z")),t.RadiusSettingOutline=l("radius-setting",o,c(i,"M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z")),t.RedditOutline=l("reddit",o,c(i,"M288 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm338.7 119.7c-23.1 18.2-68.9 37.8-114.7 37.8s-91.6-19.6-114.7-37.8c-14.4-11.3-35.3-8.9-46.7 5.5s-8.9 35.3 5.5 46.7C396.3 771.6 457.5 792 512 792s115.7-20.4 155.9-52.1a33.25 33.25 0 1 0-41.2-52.2zM960 456c0-61.9-50.1-112-112-112-42.1 0-78.7 23.2-97.9 57.6-57.6-31.5-127.7-51.8-204.1-56.5L612.9 195l127.9 36.9c11.5 32.6 42.6 56.1 79.2 56.1 46.4 0 84-37.6 84-84s-37.6-84-84-84c-32 0-59.8 17.9-74 44.2L603.5 123a33.2 33.2 0 0 0-39.6 18.4l-90.8 203.9c-74.5 5.2-142.9 25.4-199.2 56.2A111.94 111.94 0 0 0 176 344c-61.9 0-112 50.1-112 112 0 45.8 27.5 85.1 66.8 102.5-7.1 21-10.8 43-10.8 65.5 0 154.6 175.5 280 392 280s392-125.4 392-280c0-22.6-3.8-44.5-10.8-65.5C932.5 541.1 960 501.8 960 456zM820 172.5a31.5 31.5 0 1 1 0 63 31.5 31.5 0 0 1 0-63zM120 456c0-30.9 25.1-56 56-56a56 56 0 0 1 50.6 32.1c-29.3 22.2-53.5 47.8-71.5 75.9a56.23 56.23 0 0 1-35.1-52zm392 381.5c-179.8 0-325.5-95.6-325.5-213.5S332.2 410.5 512 410.5 837.5 506.1 837.5 624 691.8 837.5 512 837.5zM868.8 508c-17.9-28.1-42.2-53.7-71.5-75.9 9-18.9 28.3-32.1 50.6-32.1 30.9 0 56 25.1 56 56 .1 23.5-14.5 43.7-35.1 52zM624 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0z")),t.RedoOutline=l("redo",o,c(i,"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z")),t.ReloadOutline=l("reload",o,c(i,"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z")),t.RetweetOutline=l("retweet",o,c(r,"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0 0 11.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 0 0-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 0 0-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z")),t.RightOutline=l("right",o,c(i,"M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z")),t.RiseOutline=l("rise",o,c(i,"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 0 0 0 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0 0 13.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z")),t.RollbackOutline=l("rollback",o,c(i,"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 0 0 0 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z")),t.SafetyOutline=l("safety",o,c(r,"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z","M378.4 475.1a35.91 35.91 0 0 0-50.9 0 35.91 35.91 0 0 0 0 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0 0 48.1 0L730.6 434a33.98 33.98 0 0 0 0-48.1l-2.8-2.8a33.98 33.98 0 0 0-48.1 0L483 579.7 378.4 475.1z")),t.RobotOutline=l("robot",o,c(i,"M300 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z")),t.SearchOutline=l("search",o,c(i,"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z")),t.ScanOutline=l("scan",o,c(i,"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.ScissorOutline=l("scissor",o,c(i,"M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 0 0 288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z")),t.SelectOutline=l("select",o,c(i,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 0 0-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z")),t.ShakeOutline=l("shake",o,c(i,"M324 666a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm616.7-309.6L667.6 83.2C655.2 70.9 638.7 64 621.1 64s-34.1 6.8-46.5 19.2L83.3 574.5a65.85 65.85 0 0 0 0 93.1l273.2 273.2c12.3 12.3 28.9 19.2 46.5 19.2s34.1-6.8 46.5-19.2l491.3-491.3c25.6-25.7 25.6-67.5-.1-93.1zM403 880.1L143.9 621l477.2-477.2 259 259.2L403 880.1zM152.8 373.7a7.9 7.9 0 0 0 11.2 0L373.7 164a7.9 7.9 0 0 0 0-11.2l-38.4-38.4a7.9 7.9 0 0 0-11.2 0L114.3 323.9a7.9 7.9 0 0 0 0 11.2l38.5 38.6zm718.6 276.6a7.9 7.9 0 0 0-11.2 0L650.3 860.1a7.9 7.9 0 0 0 0 11.2l38.4 38.4a7.9 7.9 0 0 0 11.2 0L909.7 700a7.9 7.9 0 0 0 0-11.2l-38.3-38.5z")),t.ShareAltOutline=l("share-alt",o,c(i,"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 0 0 0-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z")),t.ShoppingCartOutline=l("shopping-cart",o,c(r,"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 0 0-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 1 0 0 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 0 0-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 0 0-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6z")),t.ShrinkOutline=l("shrink",o,c(i,"M881.7 187.4l-45.1-45.1a8.03 8.03 0 0 0-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L447.9 585a7.9 7.9 0 0 0-8.9-8.9z")),t.SlackOutline=l("slack",o,c(i,"M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 0 0-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z")),t.SmallDashOutline=l("small-dash",o,c(i,"M112 476h72v72h-72zm182 0h72v72h-72zm364 0h72v72h-72zm182 0h72v72h-72zm-364 0h72v72h-72z")),t.SolutionOutline=l("solution",o,c(i,"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z")),t.SketchOutline=l("sketch",o,c(i,"M925.6 405.1l-203-253.7a6.5 6.5 0 0 0-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 0 0 .2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 0 0 .2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z")),t.SortDescendingOutline=l("sort-descending",o,c(i,"M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM310.3 167.1a8 8 0 0 0-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z")),t.SortAscendingOutline=l("sort-ascending",o,c(i,"M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0 0 12.6 0l112-141.9c4.1-5.2.4-13-6.3-13z")),t.StockOutline=l("stock",o,c(i,"M904 747H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM165.7 621.8l39.7 39.5c3.1 3.1 8.2 3.1 11.3 0l234.7-233.9 97.6 97.3a32.11 32.11 0 0 0 45.2 0l264.2-263.2c3.1-3.1 3.1-8.2 0-11.3l-39.7-39.6a8.03 8.03 0 0 0-11.3 0l-235.7 235-97.7-97.3a32.11 32.11 0 0 0-45.2 0L165.7 610.5a7.94 7.94 0 0 0 0 11.3z")),t.SwapLeftOutline=l("swap-left",o,c(r,"M872 572H266.8l144.3-183c4.1-5.2.4-13-6.3-13H340c-9.8 0-19.1 4.5-25.1 12.2l-164 208c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z")),t.SwapRightOutline=l("swap-right",o,c(r,"M873.1 596.2l-164-208A32 32 0 0 0 684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z")),t.StrikethroughOutline=l("strikethrough",o,c(i,"M952 474H569.9c-10-2-20.5-4-31.6-6-15.9-2.9-22.2-4.1-30.8-5.8-51.3-10-82.2-20-106.8-34.2-35.1-20.5-52.2-48.3-52.2-85.1 0-37 15.2-67.7 44-89 28.4-21 68.8-32.1 116.8-32.1 54.8 0 97.1 14.4 125.8 42.8 14.6 14.4 25.3 32.1 31.8 52.6 1.3 4.1 2.8 10 4.3 17.8.9 4.8 5.2 8.2 9.9 8.2h72.8c5.6 0 10.1-4.6 10.1-10.1v-1c-.7-6.8-1.3-12.1-2-16-7.3-43.5-28-81.7-59.7-110.3-44.4-40.5-109.7-61.8-188.7-61.8-72.3 0-137.4 18.1-183.3 50.9-25.6 18.4-45.4 41.2-58.6 67.7-13.5 27.1-20.3 58.4-20.3 92.9 0 29.5 5.7 54.5 17.3 76.5 8.3 15.7 19.6 29.5 34.1 42H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h433.2c2.1.4 3.9.8 5.9 1.2 30.9 6.2 49.5 10.4 66.6 15.2 23 6.5 40.6 13.3 55.2 21.5 35.8 20.2 53.3 49.2 53.3 89 0 35.3-15.5 66.8-43.6 88.8-30.5 23.9-75.6 36.4-130.5 36.4-43.7 0-80.7-8.5-110.2-25-29.1-16.3-49.1-39.8-59.7-69.5-.8-2.2-1.7-5.2-2.7-9-1.2-4.4-5.3-7.5-9.7-7.5h-79.7c-5.6 0-10.1 4.6-10.1 10.1v1c.2 2.3.4 4.2.6 5.7 6.5 48.8 30.3 88.8 70.7 118.8 47.1 34.8 113.4 53.2 191.8 53.2 84.2 0 154.8-19.8 204.2-57.3 25-18.9 44.2-42.2 57.1-69 13-27.1 19.7-57.9 19.7-91.5 0-31.8-5.8-58.4-17.8-81.4-5.8-11.2-13.1-21.5-21.8-30.8H952c4.4 0 8-3.6 8-8v-60a8 8 0 0 0-8-7.9z")),t.SwapOutline=l("swap",o,c(i,"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z")),t.SyncOutline=l("sync",o,c(i,"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z")),t.TableOutline=l("table",o,c(i,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z")),t.TeamOutline=l("team",o,c(i,"M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z")),t.TaobaoOutline=l("taobao",o,c(i,"M168.5 273.7a68.7 68.7 0 1 0 137.4 0 68.7 68.7 0 1 0-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z")),t.ToTopOutline=l("to-top",o,c(i,"M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z")),t.TrademarkOutline=l("trademark",o,c(i,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 0 0 7.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z")),t.TransactionOutline=l("transaction",o,c(i,"M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7zM157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9 43.6-18.4 89.9-27.8 137.6-27.8 47.8 0 94.1 9.3 137.6 27.8 42.1 17.8 79.9 43.4 112.4 75.9 10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82 277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8zM934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4 352.57 352.57 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.57 352.57 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942 747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2z")),t.TwitterOutline=l("twitter",o,c(i,"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z")),t.UnderlineOutline=l("underline",o,c(i,"M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z")),t.UndoOutline=l("undo",o,c(i,"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 0 0-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 0 0-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z")),t.UnorderedListOutline=l("unordered-list",o,c(i,"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z")),t.UpOutline=l("up",o,c(i,"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 0 0 140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z")),t.UploadOutline=l("upload",o,c(i,"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z")),t.UserAddOutline=l("user-add",o,c(i,"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 888.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.UsergroupAddOutline=l("usergroup-add",o,c(i,"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z")),t.UserOutline=l("user",o,c(i,"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z")),t.UserDeleteOutline=l("user-delete",o,c(i,"M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 901.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z")),t.UsergroupDeleteOutline=l("usergroup-delete",o,c(i,"M888 784H664c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7zM824 484c0-109.4-87.9-198.3-196.9-200C516.3 282.3 424 373.2 424 484c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 754.6 326 826.8 324 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 707.7 563 684 624 684c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 598.7 658.2 612 624 612s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z")),t.VerticalAlignBottomOutline=l("vertical-align-bottom",o,c(i,"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z")),t.VerticalAlignMiddleOutline=l("vertical-align-middle",o,c(i,"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 0 0-11.3 0L405.6 752.3a7.23 7.23 0 0 0 5.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z")),t.VerticalAlignTopOutline=l("vertical-align-top",o,c(i,"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z")),t.VerticalRightOutline=l("vertical-right",o,c(i,"M326 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm444 72.4V164c0-6.8-7.9-10.5-13.1-6.1L335 512l421.9 354.1c5.2 4.4 13.1.7 13.1-6.1v-72.4c0-9.4-4.2-18.4-11.4-24.5L459.4 512l299.2-251.1c7.2-6.1 11.4-15.1 11.4-24.5z")),t.VerticalLeftOutline=l("vertical-left",o,c(i,"M762 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm-508 0v72.4c0 9.5 4.2 18.4 11.4 24.5L564.6 512 265.4 763.1c-7.2 6.1-11.4 15-11.4 24.5V860c0 6.8 7.9 10.5 13.1 6.1L689 512 267.1 157.9A7.95 7.95 0 0 0 254 164z")),t.WifiOutline=l("wifi",o,c(i,"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 0 0-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 0 0-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 0 0-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 1 0 128 0 64 64 0 1 0-128 0z")),t.ZhihuOutline=l("zhihu",o,c(i,"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z")),t.WeiboOutline=l("weibo",o,c(i,"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 0 0-106-34.3 28.45 28.45 0 0 0-21.9 33.8 28.39 28.39 0 0 0 33.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0 1 11.3 53.3 28.45 28.45 0 0 0 18.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 0 0-25.4 39.3 33.12 33.12 0 0 0 39.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z")),t.WomanOutline=l("woman",o,c(i,"M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z")),t.ZoomInOutline=l("zoom-in",o,c(i,"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z")),t.AccountBookTwoTone=l("account-book",s,(function(e,t){return c(i,[t,"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-65.6 121.8l-89.3 164.1h49.1c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4v33.7h65.4c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4V752c0 4.4-3.6 8-8 8h-41.3c-4.4 0-8-3.6-8-8v-53.8h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8h65.1v-33.7h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8H467l-89.3-164c-2.1-3.9-.7-8.8 3.2-10.9 1.1-.7 2.5-1 3.8-1h46a8 8 0 0 1 7.1 4.4l73.4 145.4h2.8l73.4-145.4c1.3-2.7 4.1-4.4 7.1-4.4h45c4.5 0 8 3.6 7.9 8 0 1.3-.4 2.6-1 3.8z"],[e,"M639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z"],[e,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z"])})),t.ZoomOutOutline=l("zoom-out",o,c(i,"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z")),t.AlertTwoTone=l("alert",s,(function(e,t){return c(i,[t,"M340 585c0-5.5 4.5-10 10-10h44c5.5 0 10 4.5 10 10v171h355V563c0-136.4-110.6-247-247-247S265 426.6 265 563v193h75V585z"],[e,"M216.9 310.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8zm348 712H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zm-639-96c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563z"])})),t.ApiTwoTone=l("api",s,(function(e,t){return c(i,[t,"M148.2 674.6zm106.7-92.3c-25 25-38.7 58.1-38.7 93.4s13.8 68.5 38.7 93.4c25 25 58.1 38.7 93.4 38.7 35.3 0 68.5-13.8 93.4-38.7l59.4-59.4-186.8-186.8-59.4 59.4zm420.8-366.1c-35.3 0-68.5 13.8-93.4 38.7l-59.4 59.4 186.8 186.8 59.4-59.4c24.9-25 38.7-58.1 38.7-93.4s-13.8-68.5-38.7-93.4c-25-25-58.1-38.7-93.4-38.7z"],[e,"M578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2a199.45 199.45 0 0 0-58.6 140.4c-.2 39.5 11.2 79.1 34.3 113.1l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7-24.9-24.9-38.7-58.1-38.7-93.4s13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4zm476-620.3l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7s68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4s-13.8 68.4-38.7 93.4z"])})),t.AppstoreTwoTone=l("appstore",s,(function(e,t){return c(i,[e,"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm52-668H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"],[t,"M212 212h200v200H212zm400 0h200v200H612zM212 612h200v200H212zm400 0h200v200H612z"])})),t.BankTwoTone=l("bank",s,(function(e,t){return c(i,[t,"M240.9 393.9h542.2L512 196.7z"],[e,"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374zM240.9 393.9L512 196.7l271.1 197.2H240.9z"])})),t.AudioTwoTone=l("audio",s,(function(e,t){return c(i,[t,"M512 552c54.3 0 98-43.2 98-96V232c0-52.8-43.7-96-98-96s-98 43.2-98 96v224c0 52.8 43.7 96 98 96z"],[e,"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"],[e,"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-98-392c0-52.8 43.7-96 98-96s98 43.2 98 96v224c0 52.8-43.7 96-98 96s-98-43.2-98-96V232z"])})),t.BellTwoTone=l("bell",s,(function(e,t){return c(i,[t,"M512 220c-55.6 0-107.8 21.6-147.1 60.9S304 372.4 304 428v340h416V428c0-55.6-21.6-107.8-60.9-147.1S567.6 220 512 220zm280 208c0-141.1-104.3-257.8-240-277.2v.1c135.7 19.4 240 136 240 277.1zM472 150.9v-.1C336.3 170.2 232 286.9 232 428c0-141.1 104.3-257.7 240-277.1z"],[e,"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zm208-120H304V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340z"])})),t.BookTwoTone=l("book",s,(function(e,t){return c(i,[e,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zM232 888V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752H232z"],[t,"M668 345.9V136h-96v211.4l49.5-35.4z"],[t,"M727.9 136v296.5c0 8.8-7.2 16-16 16-3.4 0-6.7-1.1-9.4-3.1L621.1 386l-83.8 59.9a15.9 15.9 0 0 1-22.3-3.7c-2-2.7-3-6-3-9.3V136H232v752h559.9V136h-64z"])})),t.BoxPlotTwoTone=l("box-plot",s,(function(e,t){return c(i,[t,"M296 368h88v288h-88zm152 0h280v288H448z"],[e,"M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM384 656h-88V368h88v288zm344 0H448V368h280v288z"])})),t.BugTwoTone=l("bug",s,(function(e,t){return c(i,[e,"M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308zm484 172v96c0 6.5-.22 12.95-.66 19.35C859.94 728.64 908 796.7 908 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-44.24-23.94-82.89-59.57-103.7a278.63 278.63 0 0 1-22.66 49.02 281.39 281.39 0 0 1-100.45 100.45C611.84 946.07 563.55 960 512 960s-99.84-13.93-141.32-38.23a281.39 281.39 0 0 1-100.45-100.45 278.63 278.63 0 0 1-22.66-49.02A119.95 119.95 0 0 0 188 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-79.3 48.07-147.36 116.66-176.65A284.12 284.12 0 0 1 232 680v-96H84a8 8 0 0 1-8-8v-56a8 8 0 0 1 8-8h148V412c-76.77 0-139-62.23-139-139a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8 63 63 0 0 0 63 63h560a63 63 0 0 0 63-63 8 8 0 0 1 8-8h60a8 8 0 0 1 8 8c0 76.77-62.23 139-139 139v100h148a8 8 0 0 1 8 8v56a8 8 0 0 1-8 8H792zM368 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-40.04 8.78-76.75 25.9-108.07a184.57 184.57 0 0 1 74.03-74.03C427.25 72.78 463.96 64 504 64h16c40.04 0 76.75 8.78 108.07 25.9a184.57 184.57 0 0 1 74.03 74.03C719.22 195.25 728 231.96 728 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-28.33-5.94-53.15-17.08-73.53a112.56 112.56 0 0 0-45.39-45.4C573.15 141.95 548.33 136 520 136h-16c-28.33 0-53.15 5.94-73.53 17.08a112.56 112.56 0 0 0-45.4 45.39C373.95 218.85 368 243.67 368 272z"],[t,"M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308z"])})),t.BulbTwoTone=l("bulb",s,(function(e,t){return c(i,[t,"M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z"],[e,"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"])})),t.CalculatorTwoTone=l("calculator",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm256.2-75h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zM576 335c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 265c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 104c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zM248 335c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48z"],[e,"M383.5 675l61.3-74.8c4.3-5.2.7-13.1-5.9-13.1h-50.8c-2.3 0-4.4 1-5.9 2.9l-34 41.6-34-41.6a7.69 7.69 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.4-1 5.9-2.9l35.5-43.5 35.5 43.5c1.4 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 6-13.2L383.5 675zM251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 369h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4z"])})),t.BuildTwoTone=l("build",s,(function(e,t){return c(i,[t,"M144 546h200v200H144zm268-268h200v200H412z"],[e,"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM344 746H144V546h200v200zm268 0H412V546h200v200zm0-268H412V278h200v200zm268 0H680V278h200v200z"])})),t.CalendarTwoTone=l("calendar",s,(function(e,t){return c(i,[t,"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z"],[e,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z"])})),t.CameraTwoTone=l("camera",s,(function(e,t){return c(i,[t,"M864 320H677.2l-17.1-47.8-22.9-64.2H386.7l-22.9 64.2-17.1 47.8H160c-4.4 0-8 3.6-8 8v456c0 4.4 3.6 8 8 8h704c4.4 0 8-3.6 8-8V328c0-4.4-3.6-8-8-8zM512 704c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160z"],[e,"M512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"],[e,"M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456z"])})),t.CarTwoTone=l("car",s,(function(e,t){return c(i,[t,"M199.6 474L184 517v237h656V517l-15.6-43H199.6zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z"],[e,"M720 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"],[e,"M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM840 754H184V517l15.6-43h624.8l15.6 43v237z"],[e,"M224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm420 23h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8z"])})),t.CarryOutTwoTone=l("carry-out",s,(function(e,t){return c(i,[e,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z"],[t,"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-17.5 128.8L481.9 725.5a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.9-6.6 13-6.6H688c6.5 0 10.3 7.4 6.5 12.8z"],[e,"M688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z"])})),t.CheckCircleTwoTone=l("check-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z"],[e,"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"])})),t.CheckSquareTwoTone=l("check-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm130-367.8h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H688c6.5 0 10.3 7.4 6.5 12.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L307.5 484.9c-3.8-5.3 0-12.7 6.5-12.7z"],[e,"M432.2 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7h-46.9c-10.3 0-19.9 5-25.9 13.3L458 584.3l-71.2-98.8c-6-8.4-15.7-13.3-25.9-13.3H314c-6.5 0-10.3 7.4-6.5 12.7l124.7 172.8z"])})),t.ClockCircleTwoTone=l("clock-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"],[e,"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z"])})),t.CloseCircleTwoTone=l("close-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 0 1-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z"],[e,"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"])})),t.CloudTwoTone=l("cloud",s,(function(e,t){return c(i,[t,"M791.9 492l-37.8-10-13.8-36.5c-8.6-22.7-20.6-44.1-35.7-63.4a245.73 245.73 0 0 0-52.4-49.9c-41.1-28.9-89.5-44.2-140-44.2s-98.9 15.3-140 44.2a245.6 245.6 0 0 0-52.4 49.9 240.47 240.47 0 0 0-35.7 63.4l-13.9 36.6-37.9 9.9a125.7 125.7 0 0 0-66.1 43.7A123.1 123.1 0 0 0 140 612c0 33.1 12.9 64.3 36.3 87.7 23.4 23.4 54.5 36.3 87.6 36.3h496.2c33.1 0 64.2-12.9 87.6-36.3A123.3 123.3 0 0 0 884 612c0-56.2-37.8-105.5-92.1-120z"],[e,"M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z"])})),t.CloseSquareTwoTone=l("close-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm163.9-473.9A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1z"],[e,"M354 671h58.9c4.8 0 9.3-2.1 12.3-5.7L512 561.8l86.8 103.5c3.1 3.6 7.6 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.3-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.8 0-9.3 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3.1-3.6-7.6-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z"])})),t.CodeTwoTone=l("code",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm339.5-223h185c4.1 0 7.5 3.6 7.5 8v48c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8zM308 610.3c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7z"],[e,"M321.1 679.1l192-161c3.9-3.2 3.9-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48z"])})),t.CompassTwoTone=l("compass",s,(function(e,t){return c(i,[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM327.6 701.7c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2L421 470.9 553.1 603l-225.5 98.7zm375.1-375.1L604 552.1 471.9 420l225.5-98.7c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z"],[e,"M322.3 696.4c-.4 1-.4 2.2 0 3.2.9 2.1 3.3 3 5.3 2.1L553.1 603 421 470.9l-98.7 225.5zm375.1-375.1L471.9 420 604 552.1l98.7-225.5c.4-1.1.4-2.2 0-3.2-.9-2.1-3.3-3-5.3-2.1z"],[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"])})),t.ContactsTwoTone=l("contacts",s,(function(e,t){return c(i,[t,"M460.3 526a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z"],[t,"M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM661 736h-43.8c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 39.9-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5h-43.9a8 8 0 0 1-8-8.4c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.7 26.4 71.9 72.8 74.7 126.1a8 8 0 0 1-8 8.4z"],[e,"M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52z"],[e,"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"])})),t.ContainerTwoTone=l("container",s,(function(e,t){return c(i,[t,"M635 771.7c-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H232v201h560V687h-97.9c-11.6 32.8-32 62.3-59.1 84.7z"],[e,"M320 501h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"],[e,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v201zm0-264H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v488z"],[e,"M320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"])})),t.ControlTwoTone=l("control",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM340.4 601.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5z"],[t,"M184 840h656V184H184v656zm436.4-499.1c-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1zM340 485V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99z"],[e,"M340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c41.7-13.5 72-52.8 72-99s-30.3-85.4-72-99V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c-41.7 13.5-72 52.8-72 99s30.3 85.4 72 99zm.1-116c.1-.2.2-.3.3-.5l1.5-2.4c0-.1.1-.1.1-.2l.9-1.2c0-.1.1-.2.2-.3 1-1.2 2.1-2.5 3.2-3.6l.2-.2c.4-.4.8-.7 1.2-1.1.8-.7 1.7-1.4 2.6-2.1h.1l1.2-.9c.1-.1.3-.2.4-.3 1.3-.8 2.6-1.5 3.9-2.2.2-.2.5-.3.7-.4.4-.2.7-.3 1.1-.5.3-.1.7-.3 1-.4.5-.1 1-.3 1.5-.5.4-.1.9-.3 1.3-.4l.9-.3 1.4-.3c.2-.1.5-.1.7-.2.7-.2 1.4-.3 2.1-.4.2-.1.4-.1.6-.1.5-.1 1.1-.2 1.7-.2.3-.1.5-.1.7-.1.8-.1 1.5-.1 2.3-.1s1.5.1 2.3.1c.3.1.5.1.7.1.6.1 1.1.1 1.7.2.2.1.4.1.6.1.7.1 1.4.3 2.1.4.2.1.5.1.7.2l1.4.3.9.3c.4.1.9.3 1.3.4.5.1 1 .3 1.5.5.3.1.7.3 1 .4.4.2.7.3 1.1.5.2.2.5.3.7.4 1.4.6 2.7 1.4 3.9 2.2.1.1.3.2.4.3l1.2.9h.1c.9.6 1.8 1.3 2.6 2.1.4.3.8.7 1.2 1.1l.2.2c1.2 1.1 2.2 2.3 3.2 3.6 0 .1.1.2.2.3l.9 1.2c0 .1.1.1.1.2l1.5 2.4A36.03 36.03 0 0 1 408 584c0 6.1-1.6 11.9-4.3 17-.1.2-.2.3-.3.5l-1.5 2.4c0 .1-.1.1-.1.2l-.9 1.2c0 .1-.1.2-.2.3-1 1.2-2.1 2.5-3.2 3.6l-.2.2c-.4.4-.8.7-1.2 1.1-.8.7-1.7 1.4-2.6 2.1h-.1l-1.2.9c-.1.1-.3.2-.4.3-1.3.8-2.6 1.5-3.9 2.2-.2.2-.5.3-.7.4-.4.2-.7.3-1.1.5-.3.1-.7.3-1 .4-.5.1-1 .3-1.5.5-.4.1-.9.3-1.3.4l-.9.3-1.4.3c-.2.1-.5.1-.7.2-.7.2-1.4.3-2.1.4-.2.1-.4.1-.6.1-.5.1-1.1.2-1.7.2-.3.1-.5.1-.7.1-.8.1-1.5.1-2.3.1s-1.5-.1-2.3-.1c-.3-.1-.5-.1-.7-.1-.6-.1-1.1-.1-1.7-.2-.2-.1-.4-.1-.6-.1-.7-.1-1.4-.3-2.1-.4-.2-.1-.5-.1-.7-.2l-1.4-.3-.9-.3c-.4-.1-.9-.3-1.3-.4-.5-.1-1-.3-1.5-.5-.3-.1-.7-.3-1-.4-.4-.2-.7-.3-1.1-.5-.2-.2-.5-.3-.7-.4-1.4-.6-2.7-1.4-3.9-2.2-.1-.1-.3-.2-.4-.3l-1.2-.9h-.1c-.9-.6-1.8-1.3-2.6-2.1-.4-.3-.8-.7-1.2-1.1l-.2-.2c-1.2-1.1-2.2-2.3-3.2-3.6 0-.1-.1-.2-.2-.3l-.9-1.2c0-.1-.1-.1-.1-.2l-1.5-2.4c-.1-.2-.2-.3-.3-.5-2.7-5-4.3-10.9-4.3-17s1.6-11.9 4.3-17zm280.3-27.9c-.1 0-.2-.1-.4-.1v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-.1 0-.2.1-.4.1 42-13.4 72.4-52.7 72.4-99.1 0-46.4-30.4-85.7-72.4-99.1.1 0 .2.1.4.1v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c.1 0 .2-.1.4-.1-42 13.4-72.4 52.7-72.4 99.1 0 46.4 30.4 85.7 72.4 99.1zM652 404c19.9 0 36 16.1 36 36s-16.1 36-36 36-36-16.1-36-36 16.1-36 36-36z"])})),t.CopyTwoTone=l("copy",s,(function(e,t){return c(i,[t,"M232 706h142c22.1 0 40 17.9 40 40v142h250V264H232v442z"],[e,"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32z"],[e,"M704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"])})),t.CreditCardTwoTone=l("credit-card",s,(function(e,t){return c(i,[t,"M136 792h752V440H136v352zm507-144c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72zM136 232h752v120H136z"],[e,"M651 728h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z"],[e,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V440h752v352zm0-440H136V232h752v120z"])})),t.CrownTwoTone=l("crown",s,(function(e,t){return c(i,[t,"M911.9 283.9v.5L835.5 865c-1 8-7.9 14-15.9 14H204.5c-8.1 0-14.9-6.1-16-14l-76.4-580.6v-.6 1.6L188.5 866c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.1-.5.1-1 0-1.5z"],[t,"M773.6 810.6l53.9-409.4-139.8 86.1L512 252.9 336.3 487.3l-139.8-86.1 53.8 409.4h523.3zm-374.2-189c0-62.1 50.5-112.6 112.6-112.6s112.6 50.5 112.6 112.6v1c0 62.1-50.5 112.6-112.6 112.6s-112.6-50.5-112.6-112.6v-1z"],[e,"M512 734.2c61.9 0 112.3-50.2 112.6-112.1v-.5c0-62.1-50.5-112.6-112.6-112.6s-112.6 50.5-112.6 112.6v.5c.3 61.9 50.7 112.1 112.6 112.1zm0-160.9c26.6 0 48.2 21.6 48.2 48.3 0 26.6-21.6 48.3-48.2 48.3s-48.2-21.6-48.2-48.3c0-26.6 21.6-48.3 48.2-48.3z"],[e,"M188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6v-.5c.3-6.4-6.7-10.8-12.3-7.4L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.5-3.4-12.6.9-12.2 7.3v.6L188.5 865zm147.8-377.7L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4H250.3l-53.8-409.4 139.8 86.1z"])})),t.CustomerServiceTwoTone=l("customer-service",s,(function(e,t){return c(i,[t,"M696 632h128v192H696zm-496 0h128v192H200z"],[e,"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"])})),t.DashboardTwoTone=l("dashboard",s,(function(e,t){return c(i,[t,"M512 188c-99.3 0-192.7 38.7-263 109-70.3 70.2-109 163.6-109 263 0 105.6 44.5 205.5 122.6 276h498.8A371.12 371.12 0 0 0 884 560c0-99.3-38.7-192.7-109-263-70.2-70.3-163.6-109-263-109zm-30 44c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.4l-31.1 31.1a8.03 8.03 0 0 1-11.3 0l-56.6-56.6a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.5l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.2 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 538v44c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8z"],[e,"M623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8z"],[e,"M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z"],[e,"M762.7 340.8l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zM750 538v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zM304.1 309.7a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"])})),t.DeleteTwoTone=l("delete",s,(function(e,t){return c(i,[t,"M292.7 840h438.6l24.2-512h-487z"],[e,"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z"])})),t.DiffTwoTone=l("diff",s,(function(e,t){return c(i,[t,"M232 264v624h432V413.8L514.2 264H232zm336 489c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-262v42c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7z"],[e,"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"],[e,"M553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888z"],[e,"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7z"])})),t.DatabaseTwoTone=l("database",s,(function(e,t){return c(i,[t,"M232 616h560V408H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 888h560V680H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 344h560V136H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"],[e,"M304 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-544a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"],[e,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z"])})),t.DislikeTwoTone=l("dislike",s,(function(e,t){return c(i,[t,"M273 100.1v428h.3l-.3-428zM820.4 525l-21.9-19 14-25.5a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-22.4-13.2-42.6-33.6-51.8H345v345.2c18.6 67.2 46.4 168 83.5 302.5a44.28 44.28 0 0 0 42.2 32.3c7.5.1 15-2.2 21.1-6.7 9.9-7.4 15.2-18.6 14.6-30.5l-9.6-198.4h314.4C829 605.5 840 587.1 840 568c0-16.5-7.1-32.2-19.6-43z"],[e,"M112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32zm773.9 358.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273l.3 428 85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zm-74.7 126.1H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3c-37.1-134.4-64.9-235.2-83.5-302.5V172h399.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z"])})),t.DownCircleTwoTone=l("down-circle",s,(function(e,t){return c(i,[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm184.4 277.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7z"],[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[e,"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z"])})),t.DownSquareTwoTone=l("down-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm150-440h46.9c10.3 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7z"],[e,"M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z"])})),t.EnvironmentTwoTone=l("environment",s,(function(e,t){return c(i,[t,"M724.4 224.9C667.7 169.5 592.3 139 512 139s-155.7 30.5-212.4 85.8C243.1 280 212 353.2 212 431.1c0 241.3 234.1 407.2 300 449.1 65.9-41.9 300-207.8 300-449.1 0-77.9-31.1-151.1-87.6-206.2zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"],[e,"M512 263c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8S624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"],[e,"M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1z"])})),t.EditTwoTone=l("edit",s,(function(e,t){return c(i,[t,"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z"],[e,"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z"])})),t.ExclamationCircleTwoTone=l("exclamation-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"])})),t.ExperimentTwoTone=l("experiment",s,(function(e,t){return c(i,[t,"M551.9 513c19.6 0 35.9-14.2 39.3-32.8A40.02 40.02 0 0 1 552 512a40 40 0 0 1-40-39.4v.5c0 22 17.9 39.9 39.9 39.9zM752 687.8l-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-41.2 0-81-9.8-116.7-28L210.5 844h603l-59.9-155.2-1.6-1z"],[e,"M879 824.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.6-107.6.1-.2c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1l.6 1.6L813.5 844h-603z"],[e,"M552 512c19.3 0 35.4-13.6 39.2-31.8.6-2.7.8-5.4.8-8.2 0-22.1-17.9-40-40-40s-40 17.9-40 40v.6a40 40 0 0 0 40 39.4z"])})),t.EyeInvisibleTwoTone=l("eye-invisible",s,(function(e,t){return c(i,[t,"M254.89 758.85l125.57-125.57a176 176 0 0 1 248.82-248.82L757 256.72Q651.69 186.07 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q69.27 145.91 173.09 221.05zM942.2 486.2Q889.46 375.11 816.7 305L672.48 449.27a176.09 176.09 0 0 1-227.22 227.21L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z"],[e,"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zM878.63 165.56L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z"],[e,"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z"])})),t.EyeTwoTone=l("eye",s,(function(e,t){return c(i,[t,"M81.8 537.8a60.3 60.3 0 0 1 0-51.5C176.6 286.5 319.8 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c-192.1 0-335.4-100.5-430.2-300.2z"],[t,"M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"],[e,"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z"],[e,"M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"])})),t.FileAddTwoTone=l("file-add",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm126 236v48c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V644H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V472c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"])})),t.FileExclamationTwoTone=l("file-exclamation",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-54 96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V448zm32 336c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M488 640h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm-16 104a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"])})),t.FileImageTwoTone=l("file-image",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-134 50c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328.1c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8.1 8.1 0 0 1 12.7 0l136.5 174c4.1 5.2.4 12.9-6.3 12.9z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"])})),t.FileExcelTwoTone=l("file-excel",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm51.6 120h35.7a12.04 12.04 0 0 1 10.1 18.5L546.1 623l84 130.4c3.6 5.6 2 13-3.6 16.6-2 1.2-4.2 1.9-6.5 1.9h-37.5c-4.1 0-8-2.1-10.2-5.7L510 664.8l-62.7 101.5c-2.2 3.5-6 5.7-10.2 5.7h-34.5a12.04 12.04 0 0 1-10.2-18.4l83.4-132.8-82.3-130.4c-3.6-5.7-1.9-13.1 3.7-16.6 1.9-1.3 4.1-1.9 6.4-1.9H442c4.2 0 8.1 2.2 10.3 5.8l61.8 102.4 61.2-102.3c2.2-3.6 6.1-5.8 10.3-5.8z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"])})),t.FileMarkdownTwoTone=l("file-markdown",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm72.3 122H641c6.6 0 12 5.4 12 12v272c0 6.6-5.4 12-12 12h-27.2c-6.6 0-12-5.4-12-12V581.7L535 732.3c-2 4.3-6.3 7.1-11 7.1h-24.1a12 12 0 0 1-11-7.1l-66.8-150.2V758c0 6.6-5.4 12-12 12H383c-6.6 0-12-5.4-12-12V486c0-6.6 5.4-12 12-12h35c4.8 0 9.1 2.8 11 7.2l83.2 191 83.1-191c1.9-4.4 6.2-7.2 11-7.2z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z"])})),t.FilePdfTwoTone=l("file-pdf",s,(function(e,t){return c(i,[t,"M509.2 490.8c-.7-1.3-1.4-1.9-2.2-2-2.9 3.3-2.2 31.5 2.7 51.4 4-13.6 4.7-40.5-.5-49.4zm-1.6 120.5c-7.7 20-18.8 47.3-32.1 71.4 4-1.6 8.1-3.3 12.3-5 17.6-7.2 37.3-15.3 58.9-20.2-14.9-11.8-28.4-27.7-39.1-46.2z"],[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm55 287.6c16.1-1.9 30.6-2.8 44.3-2.3 12.8.4 23.6 2 32 5.1.2.1.3.1.5.2.4.2.8.3 1.2.5.5.2 1.1.4 1.6.7.1.1.3.1.4.2 4.1 1.8 7.5 4 10.1 6.6 9.1 9.1 11.8 26.1 6.2 39.6-3.2 7.7-11.7 20.5-33.3 20.5-21.8 0-53.9-9.7-82.1-24.8-25.5 4.3-53.7 13.9-80.9 23.1-5.8 2-11.8 4-17.6 5.9-38 65.2-66.5 79.4-84.1 79.4-4.2 0-7.8-.9-10.8-2-6.9-2.6-12.8-8-16.5-15-.9-1.7-1.6-3.4-2.2-5.2-1.6-4.8-2.1-9.6-1.3-13.6l.6-2.7c.1-.2.1-.4.2-.6.2-.7.4-1.4.7-2.1 0-.1.1-.2.1-.3 4.1-11.9 13.6-23.4 27.7-34.6 12.3-9.8 27.1-18.7 45.9-28.4 15.9-28 37.6-75.1 51.2-107.4-10.8-41.8-16.7-74.6-10.1-98.6.9-3.3 2.5-6.4 4.6-9.1.2-.2.3-.4.5-.6.1-.1.1-.2.2-.2 6.3-7.5 16.9-11.9 28.1-11.5 16.6.7 29.7 11.5 33 30.1 1.7 8 2.2 16.5 1.9 25.7v.7c0 .5 0 1-.1 1.5-.7 13.3-3 26.6-7.3 44.7-.4 1.6-.8 3.2-1.2 5.2l-1 4.1-.1.3c.1.2.1.3.2.5l1.8 4.5c.1.3.3.7.4 1 .7 1.6 1.4 3.3 2.1 4.8v.1c8.7 18.8 19.7 33.4 33.9 45.1 4.3 3.5 8.9 6.7 13.9 9.8 1.8-.5 3.5-.7 5.3-.9z"],[t,"M391.5 761c5.7-4.4 16.2-14.5 30.1-34.7-10.3 9.4-23.4 22.4-30.1 34.7zm270.9-83l.2-.3h.2c.6-.4.5-.7.4-.9-.1-.1-4.5-9.3-45.1-7.4 35.3 13.9 43.5 9.1 44.3 8.6z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M535.9 585.3c-.8-1.7-1.5-3.3-2.2-4.9-.1-.3-.3-.7-.4-1l-1.8-4.5c-.1-.2-.1-.3-.2-.5l.1-.3.2-1.1c4-16.3 8.6-35.3 9.4-54.4v-.7c.3-8.6-.2-17.2-2-25.6-3.8-21.3-19.5-29.6-32.9-30.2-11.3-.5-21.8 4-28.1 11.4-.1.1-.1.2-.2.2-.2.2-.4.4-.5.6-2.1 2.7-3.7 5.8-4.6 9.1-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.4-51.2 107.4v.1c-27.7 14.3-64.1 35.8-73.6 62.9 0 .1-.1.2-.1.3-.2.7-.5 1.4-.7 2.1-.1.2-.1.4-.2.6-.2.9-.5 1.8-.6 2.7-.9 4-.4 8.8 1.3 13.6.6 1.8 1.3 3.5 2.2 5.2 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-2.6-2.6-6-4.8-10.1-6.6-.1-.1-.3-.1-.4-.2-.5-.2-1.1-.4-1.6-.7-.4-.2-.8-.3-1.2-.5-.2-.1-.3-.1-.5-.2-16.2-5.8-41.7-6.7-76.3-2.8l-5.3.6c-5-3-9.6-6.3-13.9-9.8-14.2-11.3-25.1-25.8-33.8-44.7zM391.5 761c6.7-12.3 19.8-25.3 30.1-34.7-13.9 20.2-24.4 30.3-30.1 34.7zM507 488.8c.8.1 1.5.7 2.2 2 5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4zm-19.2 188.9c-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4 10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2zm175.4-.9c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4z"])})),t.FilePptTwoTone=l("file-ppt",s,(function(e,t){return c(i,[t,"M464.5 516.2v108.4h38.9c44.7 0 71.2-10.9 71.2-54.3 0-34.4-20.1-54.1-53.9-54.1h-56.2z"],[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm90 218.4c0 55.2-36.8 94.1-96.2 94.1h-63.3V760c0 4.4-3.6 8-8 8H424c-4.4 0-8-3.6-8-8V484c0-4.4 3.6-8 8-8v.1h104c59.7 0 96 39.8 96 94.3z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M424 476.1c-4.4-.1-8 3.5-8 7.9v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.2c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1z"])})),t.FileTextTwoTone=l("file-text",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"])})),t.FileUnknownTwoTone=l("file-unknown",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 424c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm110-228.4c.7 44.9-29.7 84.5-74.3 98.9-5.7 1.8-9.7 7.3-9.7 13.3V672c0 5.5-4.5 10-10 10h-32c-5.5 0-10-4.5-10-10v-32c.2-19.8 15.4-37.3 34.7-40.1C549 596.2 570 574.3 570 549c0-28.1-25.8-51.5-58-51.5s-58 23.4-58 51.6c0 5.2-4.4 9.4-9.8 9.4h-32.4c-5.4 0-9.8-4.1-9.8-9.5 0-57.4 50.1-103.7 111.5-103 59.3.8 107.7 46.1 108.5 101.6z"],[e,"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm-78-195c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103z"])})),t.FileZipTwoTone=l("file-zip",s,(function(e,t){return c(i,[t,"M344 630h32v2h-32z"],[t,"M534 352V136H360v64h64v64h-64v64h64v64h-64v64h64v64h-64v62h64v160H296V520h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h-64v752h560V394H576a42 42 0 0 1-42-42z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z"],[e,"M296 392h64v64h-64zm0-128h64v64h-64zm0 318v160h128V582h-64v-62h-64v62zm48 50v-2h32v64h-32v-62zm16-432h64v64h-64zm0 256h64v64h-64zm0-128h64v64h-64z"])})),t.FileWordTwoTone=l("file-word",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0 1 11.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0 1 11.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"],[e,"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z"])})),t.FileTwoTone=l("file",s,(function(e,t){return c(i,[t,"M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z"])})),t.FilterTwoTone=l("filter",s,(function(e,t){return c(i,[t,"M420.6 798h182.9V642H420.6zM411 561.4l9.5 16.6h183l9.5-16.6L811.3 226H212.7z"],[e,"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V642h182.9v156zm9.5-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"])})),t.FireTwoTone=l("fire",s,(function(e,t){return c(i,[t,"M737 438.6c-9.6 15.5-21.1 30.7-34.4 45.6a73.1 73.1 0 0 1-51 24.4 73.36 73.36 0 0 1-53.4-18.8 74.01 74.01 0 0 1-24.4-59.8c3-47.4-12.4-103.1-45.8-165.7-16.9-31.4-37.1-58.2-61.2-80.4a240 240 0 0 1-12.1 46.5 354.26 354.26 0 0 1-58.2 101 349.6 349.6 0 0 1-58.6 56.8c-34 26.1-62 60-80.8 97.9a275.96 275.96 0 0 0-29.1 124c0 74.9 29.5 145.3 83 198.4 53.7 53.2 125 82.4 201 82.4s147.3-29.2 201-82.4c53.5-53 83-123.5 83-198.4 0-39.2-8.1-77.3-24-113.1-9.3-21-21-40.5-35-58.4z"],[e,"M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"])})),t.FolderAddTwoTone=l("folder-add",s,(function(e,t){return c(i,[t,"M372.5 256H184v512h656V370.4H492.1L372.5 256zM540 443.1V528h84.5c4.1 0 7.5 3.1 7.5 7v42c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1z"],[e,"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"],[e,"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1z"])})),t.FlagTwoTone=l("flag",s,(function(e,t){return c(i,[t,"M184 232h368v336H184z"],[t,"M624 632c0 4.4-3.6 8-8 8H504v73h336V377H624v255z"],[e,"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"])})),t.FolderTwoTone=l("folder",s,(function(e,t){return c(i,[e,"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"],[t,"M372.5 256H184v512h656V370.4H492.1z"])})),t.FolderOpenTwoTone=l("folder-open",s,(function(e,t){return c(i,[t,"M159 768h612.3l103.4-256H262.3z"],[e,"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"])})),t.FrownTwoTone=l("frown",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm224 112c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4 3.7-49.5 45.3-88.6 95.8-88.6s92 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533zm128-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"])})),t.FundTwoTone=l("fund",s,(function(e,t){return c(i,[e,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z"],[t,"M136 792h752V232H136v560zm56.4-130.5l214.9-215c3.1-3.1 8.2-3.1 11.3 0L533 561l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.1 3.1 3.1 8.2 0 11.3l-297 297.2a8.03 8.03 0 0 1-11.3 0L412.9 537.2 240.4 709.7a8.03 8.03 0 0 1-11.3 0l-36.7-36.9a8.03 8.03 0 0 1 0-11.3z"],[e,"M229.1 709.7c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L533 561 418.6 446.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z"])})),t.FunnelPlotTwoTone=l("funnel-plot",s,(function(e,t){return c(i,[t,"M420.6 798h182.9V650H420.6zM297.7 374h428.6l85-148H212.7zm113.2 197.4l8.4 14.6h185.3l8.4-14.6L689.6 438H334.4z"],[e,"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V650h182.9v148zm9.5-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z"])})),t.GiftTwoTone=l("gift",s,(function(e,t){return c(i,[t,"M546 378h298v104H546zM228 550h250v308H228zm-48-172h298v104H180zm366 172h250v308H546z"],[e,"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zM478 858H228V550h250v308zm0-376H180V378h298v104zm0-176h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm68-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm250 622H546V550h250v308zm48-376H546V378h298v104z"])})),t.HddTwoTone=l("hdd",s,(function(e,t){return c(i,[t,"M232 888h560V680H232v208zm448-140c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 616h560V408H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48zm-72-144h560V136H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48z"],[e,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z"],[e,"M312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-272h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 516a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"])})),t.HeartTwoTone=l("heart",s,(function(e,t){return c(i,[e,"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"],[t,"M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z"])})),t.HighlightTwoTone=l("highlight",s,(function(e,t){return c(i,[t,"M229.6 796.3h160.2l54.3-54.1-80.1-78.9zm220.7-397.1l262.8 258.9 147.3-145-262.8-259zm-77.1 166.1l171.4 168.9 68.6-67.6-171.4-168.9z"],[e,"M957.6 507.5L603.2 158.3a7.9 7.9 0 0 0-11.2 0L353.3 393.5a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8v55.2c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6L539 830a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.3H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.3l68.6-67.6 171.4 168.9-68.6 67.6zm168.5-76.1L450.3 399.2l147.3-145.1 262.8 259-147.3 145z"])})),t.HomeTwoTone=l("home",s,(function(e,t){return c(i,[t,"M512.1 172.6l-370 369.7h96V868H392V640c0-22.1 17.9-40 40-40h160c22.1 0 40 17.9 40 40v228h153.9V542.3H882L535.2 195.7l-23.1-23.1zm434.5 422.9c-6 6-13.1 10.8-20.8 13.9 7.7-3.2 14.8-7.9 20.8-13.9zm-887-34.7c5 30.3 31.4 53.5 63.1 53.5h.9c-31.9 0-58.9-23-64-53.5zm-.9-10.5v-1.9 1.9zm.1-2.6c.1-3.1.5-6.1 1-9.1-.6 2.9-.9 6-1 9.1z"],[e,"M951 510c0-.1-.1-.1-.1-.2l-1.8-2.1c-.1-.1-.2-.3-.4-.4-.7-.8-1.5-1.6-2.2-2.4L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.6 63.6 0 0 0-16 26.6l-.6 2.1-.3 1.1-.3 1.2c-.2.7-.3 1.4-.4 2.1 0 .1 0 .3-.1.4-.6 3-.9 6-1 9.1v3.3c0 .5 0 1 .1 1.5 0 .5 0 .9.1 1.4 0 .5.1 1 .1 1.5 0 .6.1 1.2.2 1.8 0 .3.1.6.1.9l.3 2.5v.1c5.1 30.5 32.2 53.5 64 53.5h42.5V940h691.7V614.3h43.4c8.6 0 16.9-1.7 24.5-4.9s14.7-7.9 20.8-13.9a63.6 63.6 0 0 0 18.7-45.3c0-14.7-5-28.8-14.3-40.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"])})),t.HourglassTwoTone=l("hourglass",s,(function(e,t){return c(i,[t,"M512 548c-42.2 0-81.9 16.4-111.7 46.3A156.63 156.63 0 0 0 354 706v134h316V706c0-42.2-16.4-81.9-46.3-111.7A156.63 156.63 0 0 0 512 548zM354 318c0 42.2 16.4 81.9 46.3 111.7C430.1 459.6 469.8 476 512 476s81.9-16.4 111.7-46.3C653.6 399.9 670 360.2 670 318V184H354v134z"],[e,"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z"])})),t.Html5TwoTone=l("html5",s,(function(e,t){return c(i,[e,"M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2z"],[t,"M209.9 155.4l56.7 641.2 245.2 69.6 244.1-69.6 57.8-641.2H209.9zm530.4 117.9l-4.8 47.2-1.7 19.5H381.7l8.2 94.2H511v-.2h214.7l-3.2 24.3-21.2 242.2-1.7 16.3-187.7 51.7v.4h-1.7l-188.6-52-11.3-144.7h91l6.5 73.2 102.4 27.7h.8v-.2l102.4-27.7 11.4-118.5H511.9v.1H305.4l-22.7-253.5L281 249h461l-1.7 24.3z"],[e,"M281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z"])})),t.IdcardTwoTone=l("idcard",s,(function(e,t){return c(i,[e,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z"],[t,"M136 792h752V232H136v560zm472-372c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm0 144c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48c0 4.4-3.2 8-7.1 8H615.1c-3.9 0-7.1-3.6-7.1-8v-48zM216.2 664.6c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.6 26.4 71.8 72.8 74.6 126.1a8 8 0 0 1-8 8.4h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224c-4.6 0-8.2-3.8-7.8-8.4z"],[t,"M321.3 463a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z"],[e,"M610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z"])})),t.InfoCircleTwoTone=l("info-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm32 588c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"])})),t.InsuranceTwoTone=l("insurance",s,(function(e,t){return c(i,[e,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"],[t,"M521.9 358.8h97.9v41.6h-97.9z"],[t,"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM413.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm257.9-340v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a6.38 6.38 0 0 1-4.8 1.4c-1.7-.3-3.2-1.3-4.1-2.8L432 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8z"],[e,"M443.7 306.9l-38.6-18.3c-3.4-1.6-7.3.2-8.4 3.7-17.5 58.5-45.2 110.2-82.2 153.6a5.7 5.7 0 0 0-1.2 5.6l13.2 43.5c1.4 4.5 7 5.8 10.2 2.4 7.7-8.1 15.4-16.8 23.1-26V656c0 4.4 3.6 8 8 8h37.3c4.4 0 8-3.6 8-8h.2V393.1a429.2 429.2 0 0 0 33.6-79c.9-2.8-.5-5.9-3.2-7.2zm26.8 9.1v127.4c0 4.4 3.6 8 8 8h65.9V470h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c.9 1.5 2.4 2.5 4.1 2.8 1.7.3 3.5-.2 4.8-1.4 31.6-26.8 58.6-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V535.9c21.3 41.7 47.5 77.6 78.1 106.9 2.6 2.5 6.7 2.2 8.9-.7l26.3-35.3c2-2.6 1.4-6.4-1.2-8.5-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8v-35.6c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H478.5c-4.4 0-8 3.6-8 8zm51.4 42.8h97.9v41.6h-97.9v-41.6z"])})),t.InteractionTwoTone=l("interaction",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z"],[e,"M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z"])})),t.InterationTwoTone=l("interation",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z"],[e,"M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z"])})),t.LayoutTwoTone=l("layout",s,(function(e,t){return c(i,[t,"M384 185h456v136H384zm-200 0h136v656H184zm696-73H144c-17.7 0-32 14.3-32 32v1c0-17.7 14.3-32 32-32h736c17.7 0 32 14.3 32 32v-1c0-17.7-14.3-32-32-32zM384 385h456v456H384z"],[e,"M880 113H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V145c0-17.7-14.3-32-32-32zM320 841H184V185h136v656zm520 0H384V385h456v456zm0-520H384V185h456v136z"])})),t.LeftCircleTwoTone=l("left-circle",s,(function(e,t){return c(i,[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm104 240.9c0 10.3-4.9 19.9-13.2 25.9L457.4 512l145.4 105.1c8.3 6 13.2 15.7 13.2 25.9v46.9c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9z"],[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[e,"M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"])})),t.LeftSquareTwoTone=l("left-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm181.3-334.5l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9c0 10.3-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.7 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.4l-246-178a7.95 7.95 0 0 1 0-12.9z"],[e,"M365.3 518.4l246 178c5.3 3.9 12.7.1 12.7-6.4v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a7.95 7.95 0 0 0 0 12.9z"])})),t.LikeTwoTone=l("like",s,(function(e,t){return c(i,[t,"M273 495.9v428l.3-428zm538.2-88.3H496.8l9.6-198.4c.6-11.9-4.7-23.1-14.6-30.5-6.1-4.5-13.6-6.8-21.1-6.7-19.6.1-36.9 13.4-42.2 32.3-37.1 134.4-64.9 235.2-83.5 302.5V852h399.4a56.85 56.85 0 0 0 33.6-51.8c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-14-25.5 21.9-19a56.76 56.76 0 0 0 19.6-43c0-19.1-11-37.5-28.8-48.4z"],[e,"M112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32zm773.9 5.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.5-65.5-111a67.67 67.67 0 0 0-34.3-9.3H572.3l6-122.9c1.5-29.7-9-57.9-29.5-79.4a106.4 106.4 0 0 0-77.9-33.4c-52 0-98 35-111.8 85.1l-85.8 310.8-.3 428h472.1c9.3 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37zM820.4 499l-21.9 19 14 25.5a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H345V506.8c18.6-67.2 46.4-168 83.5-302.5a44.28 44.28 0 0 1 42.2-32.3c7.5-.1 15 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.1 32.2-19.6 43z"])})),t.LockTwoTone=l("lock",s,(function(e,t){return c(i,[e,"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z"],[t,"M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z"],[e,"M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"])})),t.MailTwoTone=l("mail",s,(function(e,t){return c(i,[t,"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 0 1-68.7 0z"],[t,"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z"],[e,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z"])})),t.MedicineBoxTwoTone=l("medicine-box",s,(function(e,t){return c(i,[t,"M244.3 328L184 513.4V840h656V513.4L779.7 328H244.3zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48z"],[e,"M652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"],[e,"M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840z"])})),t.MehTwoTone=l("meh",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 144H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-24-144a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"])})),t.MessageTwoTone=l("message",s,(function(e,t){return c(i,[t,"M775.3 248.9a369.62 369.62 0 0 0-119-80A370.2 370.2 0 0 0 512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 0 0-80-119zM312 560a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M664 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"],[e,"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"],[e,"M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"])})),t.MinusCircleTwoTone=l("minus-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"],[e,"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"])})),t.MinusSquareTwoTone=l("minus-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48z"],[e,"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"])})),t.MobileTwoTone=l("mobile",s,(function(e,t){return c(i,[e,"M744 64H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H288V136h448v752z"],[t,"M288 888h448V136H288v752zm224-142c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"],[e,"M472 786a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"])})),t.PauseCircleTwoTone=l("pause-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-80 524c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"],[e,"M424 352h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"])})),t.MoneyCollectTwoTone=l("money-collect",s,(function(e,t){return c(i,[t,"M256 744.4l256 93.1 256-93.1V184H256v560.4zM359.7 313c1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 485.2h3.3L599 316.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8L564 515.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V704c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 323.8c-2.1-3.8-.7-8.7 3.2-10.8z"],[e,"M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM768 744.4l-256 93.1-256-93.1V184h512v560.4z"],[e,"M460.4 515.4h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6z"])})),t.NotificationTwoTone=l("notification",s,(function(e,t){return c(i,[t,"M229.6 678.1c-3.7 11.6-5.6 23.9-5.6 36.4 0-12.5 2-24.8 5.7-36.4h-.1zm76.3-260.2H184v188.2h121.9l12.9 5.2L840 820.7V203.3L318.8 412.7z"],[e,"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"])})),t.PhoneTwoTone=l("phone",s,(function(e,t){return c(i,[t,"M721.7 184.9L610.9 295.8l120.8 120.7-8 21.6A481.29 481.29 0 0 1 438 723.9l-21.6 8-.9-.9-119.8-120-110.8 110.9 104.5 104.5c10.8 10.7 26 15.7 40.8 13.2 117.9-19.5 235.4-82.9 330.9-178.4s158.9-213.1 178.4-331c2.5-14.8-2.5-30-13.3-40.8L721.7 184.9z"],[e,"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"])})),t.PictureTwoTone=l("picture",s,(function(e,t){return c(i,[e,"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z"],[t,"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z"],[t,"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 1 1 0 176 88 88 0 0 1 0-176z"],[t,"M276 368a28 28 0 1 0 56 0 28 28 0 1 0-56 0z"],[e,"M304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"])})),t.PlayCircleTwoTone=l("play-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm164.1 378.2L457.7 677.1a8.02 8.02 0 0 1-12.7-6.5V353a8 8 0 0 1 12.7-6.5l218.4 158.8a7.9 7.9 0 0 1 0 12.9z"],[e,"M676.1 505.3L457.7 346.5A8 8 0 0 0 445 353v317.6a8.02 8.02 0 0 0 12.7 6.5l218.4-158.9a7.9 7.9 0 0 0 0-12.9z"])})),t.PlaySquareTwoTone=l("play-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm240-484.7c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3z"],[e,"M442.3 677.6l199.4-156.8a11.2 11.2 0 0 0 0-17.6L442.3 346.5c-7.4-5.9-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.6 18.3 8.8z"])})),t.PieChartTwoTone=l("pie-chart",s,(function(e,t){return c(i,[t,"M316.2 920.5c-47.6-20.1-90.4-49-127.1-85.7a398.19 398.19 0 0 1-85.7-127.1A397.12 397.12 0 0 1 72 552.2v.2a398.57 398.57 0 0 0 117 282.5c36.7 36.7 79.4 65.5 127 85.6A396.64 396.64 0 0 0 471.6 952c27 0 53.6-2.7 79.7-7.9-25.9 5.2-52.4 7.8-79.3 7.8-54 .1-106.4-10.5-155.8-31.4zM560 472c-4.4 0-8-3.6-8-8V79.9c0-1.3.3-2.5.9-3.6-.9 1.3-1.5 2.9-1.5 4.6v383.7c0 4.4 3.6 8 8 8l383.6-1c1.6 0 3.1-.5 4.4-1.3-1 .5-2.2.7-3.4.7l-384 1z"],[t,"M619.8 147.6v256.6l256.4-.7c-13-62.5-44.3-120.5-90-166.1a332.24 332.24 0 0 0-166.4-89.8z"],[t,"M438 221.7c-75.9 7.6-146.2 40.9-200.8 95.5C174.5 379.9 140 463.3 140 552s34.5 172.1 97.2 234.8c62.3 62.3 145.1 96.8 233.2 97.2 88.2.4 172.7-34.1 235.3-96.2C761 733 794.6 662.3 802.3 586H438V221.7z"],[e,"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552v.2c0 53.9 10.6 106.2 31.4 155.5 20.1 47.6 49 90.4 85.7 127.1 36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952c26.9 0 53.4-2.6 79.3-7.8 26.1-5.3 51.7-13.1 76.4-23.6 47.6-20.1 90.4-49 127.1-85.7 36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552s34.5-172.1 97.2-234.8c54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8z"],[e,"M952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-3.4-.3-6.4 1.5-7.8 4.3a8.7 8.7 0 0 0-.9 3.6V464c0 4.4 3.6 8 8 8l384-1c1.2 0 2.3-.3 3.4-.7a8.1 8.1 0 0 0 4.6-7.9zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"])})),t.PlusCircleTwoTone=l("plus-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z"],[e,"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"])})),t.PlusSquareTwoTone=l("plus-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48z"],[e,"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"])})),t.PoundCircleTwoTone=l("pound-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm146 582.1c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8v39.8z"],[e,"M650 674.3H470v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.8-5.3-41h98.6c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8h-112c-7.2-22.6-13.4-45.8-13.4-70.5 0-43.6 34-70.2 87.3-70.2 21.4 0 42.5 4.1 60.4 10.5a8 8 0 0 0 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.9-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.4 6.8 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.2c3.4 14.8 5.9 29.5 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8v38.5c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z"])})),t.PrinterTwoTone=l("printer",s,(function(e,t){return c(i,[t,"M360 180h304v152H360zm492 220H172c-6.6 0-12 5.4-12 12v292h132V500h440v204h132V412c0-6.6-5.4-12-12-12zm-24 84c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z"],[e,"M852 332H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z"],[e,"M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8z"])})),t.ProfileTwoTone=l("profile",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm300-496c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zM380 328c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"],[e,"M340 656a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm152 320h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"])})),t.ProjectTwoTone=l("project",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm472-560c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280z"],[e,"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8z"])})),t.PushpinTwoTone=l("pushpin",s,(function(e,t){return c(i,[t,"M474.8 357.7l-24.5 24.5-34.4-3.8c-9.6-1.1-19.3-1.6-28.9-1.6-29 0-57.5 4.7-84.7 14.1-14 4.8-27.4 10.8-40.3 17.9l353.1 353.3a259.92 259.92 0 0 0 30.4-153.9l-3.8-34.4 24.5-24.5L800 415.5 608.5 224 474.8 357.7z"],[e,"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z"])})),t.PropertySafetyTwoTone=l("property-safety",s,(function(e,t){return c(i,[e,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"],[t,"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM593.9 318h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3L585 323.5a10 10 0 0 1 8.9-5.5z"],[e,"M438.9 323.5a9.88 9.88 0 0 0-8.9-5.5h-46c-1.7 0-3.3.4-4.8 1.2-4.9 2.7-6.6 8.8-4 13.6l88 161.1H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1c.8-1.5 1.2-3.1 1.1-4.8 0-5.5-4.5-10-10-10h-45a10 10 0 0 0-8.9 5.5l-73.2 144.3-72.9-144.3z"])})),t.QuestionCircleTwoTone=l("question-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm0 632c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"],[e,"M472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm151.6-415.3C593.6 290.5 554 276 512 276s-81.6 14.4-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.2 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5 0-39.3-17.2-76-48.4-103.3z"])})),t.ReconciliationTwoTone=l("reconciliation",s,(function(e,t){return c(i,[t,"M740 344H404V240H304v160h176c17.7 0 32 14.3 32 32v360h328V240H740v104zM584 448c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56zm92 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-341v96c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z"],[t,"M642 657a34 34 0 1 0 68 0 34 34 0 1 0-68 0z"],[e,"M592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm112-104v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"],[e,"M880 168H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552z"],[e,"M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z"])})),t.RedEnvelopeTwoTone=l("red-envelope",s,(function(e,t){return c(i,[e,"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z"],[t,"M492.3 397.2L232 193.1V888h560V193.1L531.8 397.2a31.99 31.99 0 0 1-39.5 0zm99.4 60.9h47.8a8.45 8.45 0 0 1 7.4 12.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4V665c0 4.6-3.8 8.4-8.4 8.4h-63.3V702h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.7-3.5 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4L377 470.4a8.4 8.4 0 0 1 3.4-11.4c1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.7 142 71.9-141.9a8.6 8.6 0 0 1 7.5-4.6z"],[t,"M232 136.7h31.7L512 331.3l248.3-194.6H792v-.7H232z"],[e,"M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142z"])})),t.RestTwoTone=l("rest",s,(function(e,t){return c(i,[t,"M326.4 844h363.2l44.3-520H282l44.4 520zM508 416c79.5 0 144 64.5 144 144s-64.5 144-144 144-144-64.5-144-144 64.5-144 144-144z"],[e,"M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"],[e,"M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z"])})),t.RightCircleTwoTone=l("right-circle",s,(function(e,t){return c(i,[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm154.7 378.4l-246 178c-5.3 3.8-12.7 0-12.7-6.5V643c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9z"],[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[e,"M666.7 505.5l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L566.6 512 421.2 617.1c-8.3 6-13.2 15.7-13.2 25.9v46.9c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.7 0-12.9z"])})),t.RocketTwoTone=l("rocket",s,(function(e,t){return c(i,[t,"M261.7 621.4c-9.4 14.6-17 30.3-22.5 46.6H324V558.7c-24.8 16.2-46 37.5-62.3 62.7zM700 558.7V668h84.8c-5.5-16.3-13.1-32-22.5-46.6a211.6 211.6 0 0 0-62.3-62.7zm-64-239.9l-124-147-124 147V668h248V318.8zM512 448a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zm-540-68h-84.8c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668zm64-184.9V318.8l124-147 124 147V668H388V483.1zm240.1 301.1c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM700 668V558.7a211.6 211.6 0 0 1 62.3 62.7c9.4 14.6 17 30.3 22.5 46.6H700z"],[e,"M464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"])})),t.RightSquareTwoTone=l("right-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm216-196.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9l-246 178c-5.3 3.9-12.7.1-12.7-6.4v-46.9z"],[e,"M412.7 696.4l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.7-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.4z"])})),t.SafetyCertificateTwoTone=l("safety-certificate",s,(function(e,t){return c(i,[e,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"],[t,"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z"],[e,"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"])})),t.SaveTwoTone=l("save",s,(function(e,t){return c(i,[t,"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z"],[e,"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"],[e,"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 0 0-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z"])})),t.ScheduleTwoTone=l("schedule",s,(function(e,t){return c(i,[t,"M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.4-91.2l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.3c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.4 12.9 6.6l52.8 73.1 103.6-143.7c3-4.1 7.8-6.6 12.8-6.5h54.9c6.5 0 10.3 7.4 6.5 12.7z"],[e,"M724.2 454.6L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"],[e,"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"],[e,"M416 632H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"])})),t.SecurityScanTwoTone=l("security-scan",s,(function(e,t){return c(i,[e,"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"],[t,"M460.7 451.1a80.1 80.1 0 1 0 160.2 0 80.1 80.1 0 1 0-160.2 0z"],[t,"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zm428.7 122.5c56.3 56.3 56.3 147.5 0 203.8-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0z"],[e,"M418.8 527.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.6 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 122.9-20.1 178.6zm65.4-133.3a80.1 80.1 0 0 1 113.3 0 80.1 80.1 0 0 1 0 113.3c-31.3 31.3-82 31.3-113.3 0s-31.3-82 0-113.3z"])})),t.SettingTwoTone=l("setting",s,(function(e,t){return c(i,[t,"M859.3 569.7l.2.1c3.1-18.9 4.6-38.2 4.6-57.3 0-17.1-1.3-34.3-3.7-51.1 2.4 16.7 3.6 33.6 3.6 50.5 0 19.4-1.6 38.8-4.7 57.8zM99 398.1c-.5-.4-.9-.8-1.4-1.3.7.7 1.4 1.4 2.2 2.1l65.5 55.9v-.1L99 398.1zm536.6-216h.1l-15.5-83.8c-.2-1-.4-1.9-.7-2.8.1.5.3 1.1.4 1.6l15.7 85zm54 546.5l31.4-25.8 92.8 32.9c17-22.9 31.3-47.5 42.6-73.6l-74.7-63.9 6.6-40.1c2.5-15.1 3.8-30.6 3.8-46.1s-1.3-31-3.8-46.1l-6.5-39.9 74.7-63.9c-11.4-26-25.6-50.7-42.6-73.6l-92.8 32.9-31.4-25.8c-23.9-19.6-50.6-35-79.3-45.8l-38.1-14.3-17.9-97a377.5 377.5 0 0 0-85 0l-17.9 97.2-37.9 14.3c-28.5 10.8-55 26.2-78.7 45.7l-31.4 25.9-93.4-33.2c-17 22.9-31.3 47.5-42.6 73.6l75.5 64.5-6.5 40c-2.5 14.9-3.7 30.2-3.7 45.5 0 15.2 1.3 30.6 3.7 45.5l6.5 40-75.5 64.5c11.4 26 25.6 50.7 42.6 73.6l93.4-33.2 31.4 25.9c23.7 19.5 50.2 34.9 78.7 45.7l37.8 14.5 17.9 97.2c28.2 3.2 56.9 3.2 85 0l17.9-97 38.1-14.3c28.8-10.8 55.4-26.2 79.3-45.8zm-177.1-50.3c-30.5 0-59.2-7.8-84.3-21.5C373.3 627 336 568.9 336 502c0-97.2 78.8-176 176-176 66.9 0 125 37.3 154.8 92.2 13.7 25 21.5 53.7 21.5 84.3 0 97.1-78.7 175.8-175.8 175.8zM207.2 812.8c-5.5 1.9-11.2 2.3-16.6 1.2 5.7 1.2 11.7 1 17.5-1l81.4-29c-.1-.1-.3-.2-.4-.3l-81.9 29.1zm717.6-414.7l-65.5 56c0 .2.1.5.1.7l65.4-55.9c7.1-6.1 11.1-14.9 11.2-24-.3 8.8-4.3 17.3-11.2 23.2z"],[t,"M935.8 646.6c.5 4.7 0 9.5-1.7 14.1l-.9 2.6a446.02 446.02 0 0 1-79.7 137.9l-1.8 2.1a32 32 0 0 1-35.1 9.5l-81.3-28.9a350 350 0 0 1-99.7 57.6l-15.7 85a32.05 32.05 0 0 1-25.8 25.7l-2.7.5a445.2 445.2 0 0 1-79.2 7.1h.3c26.7 0 53.4-2.4 79.4-7.1l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c1.6-4.7 2.1-9.7 1.5-14.5z"],[e,"M688 502c0-30.3-7.7-58.9-21.2-83.8C637 363.3 578.9 326 512 326c-97.2 0-176 78.8-176 176 0 66.9 37.3 125 92.2 154.8 24.9 13.5 53.4 21.2 83.8 21.2 97.2 0 176-78.8 176-176zm-288 0c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502z"],[e,"M594.1 952.2a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c1.7-4.6 2.2-9.4 1.7-14.1-.9-7.9-4.7-15.4-11-20.9l-65.3-55.9-.2-.1c3.1-19 4.7-38.4 4.7-57.8 0-16.9-1.2-33.9-3.6-50.5-.3-2.2-.7-4.4-1-6.6 0-.2-.1-.5-.1-.7l65.5-56c6.9-5.9 10.9-14.4 11.2-23.2.1-4-.5-8.1-1.9-12l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.4-44-99.6-57.6h-.1l-15.7-85c-.1-.5-.2-1.1-.4-1.6a32.08 32.08 0 0 0-25.4-24.1l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6a32.09 32.09 0 0 0 7.9 33.9c.5.4.9.9 1.4 1.3l66.3 56.6v.1c-3.1 18.8-4.6 37.9-4.6 57 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1c4.9 5.7 11.4 9.4 18.5 10.7 5.4 1 11.1.7 16.6-1.2l81.9-29.1c.1.1.3.2.4.3 29.7 24.3 62.8 43.6 98.6 57.1l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5c26.1 4.7 52.8 7.1 79.5 7.1h.3c26.6 0 53.3-2.4 79.2-7.1l2.7-.5zm-39.8-66.5a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97z"])})),t.ShopTwoTone=l("shop",s,(function(e,t){return c(i,[t,"M839.5 344h-655c-.3 0-.5.2-.5.5v91.2c0 59.8 49 108.3 109.3 108.3 40.7 0 76.2-22 95.1-54.7 2.9-5.1 8.4-8.3 14.3-8.3s11.3 3.2 14.3 8.3c18.8 32.7 54.3 54.7 95 54.7 40.8 0 76.4-22.1 95.1-54.9 2.9-5 8.2-8.1 13.9-8.1h.6c5.8 0 11 3.1 13.9 8.1 18.8 32.8 54.4 54.9 95.2 54.9C791 544 840 495.5 840 435.7v-91.2c0-.3-.2-.5-.5-.5z"],[e,"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234.4 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c3-1.3 6-2.6 9-4v242.2zM840 435.7c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z"])})),t.ShoppingTwoTone=l("shopping",s,(function(e,t){return c(i,[t,"M696 472c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88H400v88c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88h-96v456h560V384h-96v88z"],[e,"M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z"])})),t.SkinTwoTone=l("skin",s,(function(e,t){return c(i,[t,"M512 318c-79.2 0-148.5-48.8-176.7-120H182v196h119v432h422V394h119V198H688.7c-28.2 71.2-97.5 120-176.7 120z"],[e,"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"])})),t.SlidersTwoTone=l("sliders",s,(function(e,t){return c(i,[t,"M180 292h80v440h-80zm369 180h-74a3 3 0 0 0-3 3v74a3 3 0 0 0 3 3h74a3 3 0 0 0 3-3v-74a3 3 0 0 0-3-3zm215-108h80v296h-80z"],[e,"M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74zM320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440z"])})),t.SmileTwoTone=l("smile",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"],[e,"M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4zm-24-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"])})),t.SnippetsTwoTone=l("snippets",s,(function(e,t){return c(i,[t,"M450 510V336H232v552h432V550H490c-22.1 0-40-17.9-40-40z"],[e,"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z"])})),t.SoundTwoTone=l("sound",s,(function(e,t){return c(i,[t,"M275.4 424H146v176h129.4l18 11.7L586 803V221L293.3 412.3z"],[e,"M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM934 476H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582z"])})),t.StarTwoTone=l("star",s,(function(e,t){return c(i,[t,"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z"],[e,"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0 0 46.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z"])})),t.StopTwoTone=l("stop",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z"])})),t.SwitcherTwoTone=l("switcher",s,(function(e,t){return c(i,[t,"M184 840h528V312H184v528zm116-290h296v64H300v-64z"],[e,"M880 112H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z"],[e,"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528z"],[e,"M300 550h296v64H300z"])})),t.TabletTwoTone=l("tablet",s,(function(e,t){return c(i,[e,"M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752z"],[t,"M232 888h560V136H232v752zm280-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"],[e,"M472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"])})),t.TagTwoTone=l("tag",s,(function(e,t){return c(i,[t,"M589 164.6L189.3 564.3l270.4 270.4L859.4 435 836 188l-247-23.4zM680 432c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88z"],[e,"M680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"],[e,"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8a9.9 9.9 0 0 0 7.1 2.9c2.7 0 5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7z"])})),t.TagsTwoTone=l("tags",s,(function(e,t){return c(i,[t,"M477.5 694l311.9-311.8-19-224.6-224.6-19-311.9 311.9L477.5 694zm116-415.5a47.81 47.81 0 0 1 33.9-33.9c16.6-4.4 34.2.3 46.4 12.4a47.93 47.93 0 0 1 12.4 46.4 47.81 47.81 0 0 1-33.9 33.9c-16.6 4.4-34.2-.3-46.4-12.4a48.3 48.3 0 0 1-12.4-46.4z"],[t,"M476.6 792.6c-1.7-.2-3.4-1-4.7-2.3L137.7 456.1a8.03 8.03 0 0 1 0-11.3L515.9 66.6c1.2-1.3 2.9-2.1 4.7-2.3h-.4c-2.3-.2-4.7.6-6.3 2.3L135.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.8 1.9 4.3 2.6 6.7 2.3z"],[e,"M889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3zM652.3 337.3a47.81 47.81 0 0 0 33.9-33.9c4.4-16.6-.3-34.2-12.4-46.4a47.93 47.93 0 0 0-46.4-12.4 47.81 47.81 0 0 0-33.9 33.9c-4.4 16.6.3 34.2 12.4 46.4a48.3 48.3 0 0 0 46.4 12.4z"],[e,"M137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.3 1.3 2.9 2.1 4.7 2.3 2.4.3 4.8-.5 6.6-2.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3h-1.6c-1.8.2-3.4 1-4.7 2.3L137.7 444.8zm408.1-306.2l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9z"])})),t.ToolTwoTone=l("tool",s,(function(e,t){return c(i,[t,"M706.8 488.7a32.05 32.05 0 0 1-45.3 0L537 364.2a32.05 32.05 0 0 1 0-45.3l132.9-132.8a184.2 184.2 0 0 0-144 53.5c-58.1 58.1-69.3 145.3-33.6 214.6L439.5 507c-.1 0-.1-.1-.1-.1L209.3 737l79.2 79.2 274-274.1.1.1 8.8-8.8c69.3 35.7 156.5 24.5 214.6-33.6 39.2-39.1 57.3-92.1 53.6-143.9L706.8 488.7z"],[e,"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"])})),t.TrademarkCircleTwoTone=l("trademark-circle",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm170.7 584.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H384c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7z"],[t,"M529.9 357h-83.4v148H528c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z"],[e,"M605.4 549.3c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.4-131.1-144.2-131.1H384c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.7c4.4 0 8-3.6 8-8V561.2h88.7L610 720.4c1.3 2.8 4.1 4.6 7.2 4.6h62c1.2 0 2.4-.3 3.5-.8 3.9-2 5.6-6.8 3.5-10.7l-80.8-164.2zM528 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.6 0 46.8-29.8 72.4-82.8 72.4z"])})),t.UnlockTwoTone=l("unlock",s,(function(e,t){return c(i,[t,"M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z"],[e,"M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z"],[e,"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304z"])})),t.TrophyTwoTone=l("trophy",s,(function(e,t){return c(i,[t,"M320 480c0 49.1 19.1 95.3 53.9 130.1 34.7 34.8 81 53.9 130.1 53.9h16c49.1 0 95.3-19.1 130.1-53.9 34.8-34.7 53.9-81 53.9-130.1V184H320v296zM184 352c0 41 26.9 75.8 64 87.6-37.1-11.9-64-46.7-64-87.6zm364 382.5C665 721.8 758.4 630.2 773.8 514 758.3 630.2 665 721.7 548 734.5zM250.2 514C265.6 630.2 359 721.8 476 734.5 359 721.7 265.7 630.2 250.2 514z"],[e,"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6a91.99 91.99 0 0 1-64-87.6V232h64v207.6zM704 480c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z"])})),t.UpCircleTwoTone=l("up-circle",s,(function(e,t){return c(i,[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm178 479h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z"],[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[e,"M518.4 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7h46.9c10.3 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246z"])})),t.ThunderboltTwoTone=l("thunderbolt",s,(function(e,t){return c(i,[t,"M695.4 164.1H470.8L281.2 491.5h157.4l-60.3 241 319.8-305.1h-211z"],[e,"M848.1 359.3H627.8L825.9 109c4.1-5.3.4-13-6.3-13H436.1c-2.8 0-5.5 1.5-6.9 4L170.1 547.5c-3.1 5.3.7 12 6.9 12h174.4L262 917.1c-1.9 7.8 7.5 13.3 13.3 7.7L853.6 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.3 732.5l60.3-241H281.2l189.6-327.4h224.6L487.1 427.4h211L378.3 732.5z"])})),t.UpSquareTwoTone=l("up-square",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"],[t,"M184 840h656V184H184v656zm143.5-228.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7z"],[e,"M334 624h46.9c10.3 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7z"])})),t.UsbTwoTone=l("usb",s,(function(e,t){return c(i,[t,"M759.9 504H264.1c-26.5 0-48.1 19.7-48.1 44v292h592V548c0-24.3-21.6-44-48.1-44z"],[e,"M456 248h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"],[e,"M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zM336 184h352v248H336V184zm472 656H216V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v292z"])})),t.VideoCameraTwoTone=l("video-camera",s,(function(e,t){return c(i,[t,"M136 792h576V232H136v560zm64-488c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48z"],[e,"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226z"],[e,"M208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"])})),t.WalletTwoTone=l("wallet",s,(function(e,t){return c(i,[e,"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0-192H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200H184V184h656v200z"],[t,"M528 576h312V448H528v128zm92-104c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"],[e,"M580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"],[t,"M184 840h656V640H496c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32h344V184H184v656z"])})),t.WarningTwoTone=l("warning",s,(function(e,t){return c(i,[e,"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"],[t,"M172.2 828.1h679.6L512 239.9 172.2 828.1zM560 720a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm-16-304v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z"],[e,"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"])})),t.CiTwoTone=l("ci",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-63.5 522.8c49.3 0 82.8-29.4 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5C345.4 720 286 651.4 286 537.4v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-3.9-46.1-37.5-77.6-87-77.6-61.1 0-95.6 45.4-95.7 126.8v49.3c0 80.3 34.5 125.2 95.6 125.2zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z"],[e,"M730 311.9h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z"])})),t.CopyrightTwoTone=l("copyright",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm5.5 533c52.9 0 88.8-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4C407.4 734 344 660.8 344 539.1v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.7-3.2-8-7.4-4-49.6-40-83.4-93-83.4-65.2 0-102.1 48.5-102.2 135.5v52.6c0 85.7 36.8 133.6 102.1 133.6z"],[e,"M517.6 351.3c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"])})),t.DollarTwoTone=l("dollar",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-37 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.9-.6-5.7-1.3-8.8-2.2V677c42.6-3.8 72-27.3 72-66.4 0-30.7-15.9-50.7-63.2-65.1z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm22.4 589.2l.2 31.7c0 4.5-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4c-89-6.5-130.7-57.1-135.2-112.1-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.8 29.9 55.4 74.1 61.3V534l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-73 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.8 46.9 125.9 109.2a8.1 8.1 0 0 1-8 8.8h-44.9c-4 0-7.4-2.9-7.9-6.9-4-29.2-27.5-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 109 116.4 0 75.2-56 117.1-134.3 124z"],[e,"M559.7 488.8l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"])})),t.EuroTwoTone=l("euro",s,(function(e,t){return c(i,[e,"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"],[t,"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm117.1 581.1c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.4 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.7.3-12.8H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.8C388.5 345.7 460.7 290 567.4 290c20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346a8 8 0 0 1-9.6 7.8c-14.6-2.9-31.8-4.4-51.7-4.4-65.3 0-110.4 33.5-127.6 90.4h128.3c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8H432.5c-.3 4.4-.3 9.1-.3 13.8v36h136.4c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H438c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.3 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8z"],[e,"M619.6 670.5c-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H432.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H440.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H337c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H337c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8z"])})),t.GoldTwoTone=l("gold",s,(function(e,t){return c(i,[e,"M435.7 558.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128z"],[t,"M592.7 276H433.2l-20.8 128h201zM217.2 620l-20.7 128h200.9l-20.7-128zm430 0l-20.7 128h200.9l-20.7-128z"])})),t.CanlendarTwoTone=l("canlendar",s,(function(e,t){return c(i,[t,"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z"],[e,"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z"])}))},
/***/"3afb":
/***/function(e,t,n){var r=n("de24")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){/* empty */}}return!0}},
/***/"3b4a":
/***/function(e,t,n){var r=n("0b07"),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},
/***/"3bb4":
/***/function(e,t,n){var r=n("08cc"),i=n("ec69");
/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},
/***/"3bbe":
/***/function(e,t,n){"use strict";var r=n("1787"),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},
/***/"3c0e":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"3c35":
/***/function(e,t){
/* WEBPACK VAR INJECTION */(function(t){/* globals __webpack_amd_options__ */
e.exports=t;
/* WEBPACK VAR INJECTION */}).call(this,{})
/***/},
/***/"3c4e":
/***/function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}
// Protects from prototype poisoning and unexpected merging up the prototype chain.
function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=a(e[t],n)})),s(t).forEach((function(i){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
})(e,i)||(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=a(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||r,
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
// implementations can use it. The caller may not replace it.
n.cloneUnlessOtherwiseSpecified=a;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):a(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var h=u;e.exports=h},
/***/"3c55":
/***/function(e,t,n){
/**
 * Module dependencies.
 */
try{var r=n("cecd")}catch(e){r=n("cecd")}
/**
 * Whitespace regexp.
 */var i=/\s+/,a=Object.prototype.toString;
/**
 * toString reference.
 */
/**
 * Initialize a new ClassList for `el`.
 *
 * @param {Element} el
 * @api private
 */
function o(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}
/**
 * Add class `name` if not already present.
 *
 * @param {String} name
 * @return {ClassList}
 * @api public
 */
/**
 * Wrap `el` in a `ClassList`.
 *
 * @param {Element} el
 * @return {ClassList}
 * @api public
 */
e.exports=function(e){return new o(e)},o.prototype.add=function(e){
// classList
if(this.list)return this.list.add(e),this;
// fallback
var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},
/**
 * Remove class `name` when present, or
 * pass a regular expression to remove
 * any which match.
 *
 * @param {String|RegExp} name
 * @return {ClassList}
 * @api public
 */
o.prototype.remove=function(e){if("[object RegExp]"==a.call(e))return this.removeMatching(e);
// classList
if(this.list)return this.list.remove(e),this;
// fallback
var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},
/**
 * Remove all classes matching `re`.
 *
 * @param {RegExp} re
 * @return {ClassList}
 * @api private
 */
o.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},
/**
 * Toggle class `name`, can force state via `force`.
 *
 * For browsers that support classList, but do not support `force` yet,
 * the mistake will be detected and corrected.
 *
 * @param {String} name
 * @param {Boolean} force
 * @return {ClassList}
 * @api public
 */
o.prototype.toggle=function(e,t){
// classList
return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(
// fallback
void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},
/**
 * Return an array of classes.
 *
 * @return {Array}
 * @api public
 */
o.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(i);return""===e[0]&&e.shift(),e},
/**
 * Check if class `name` is present.
 *
 * @param {String} name
 * @return {ClassList}
 * @api public
 */
o.prototype.has=o.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},
/***/"3c77":
/***/function(e,t,n){
// https://github.com/tc39/proposal-global
var r=n("f083");r(r.G,{global:n("93e0")})},
/***/"3ca3":
/***/function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),a=n("69f3"),o=n("c6d2"),s=n("4754"),c="String Iterator",l=a.set,u=a.getterFor(c);
// `String.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
o(String,"String",(function(e){l(this,{type:c,string:i(e),index:0});
// `%StringIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},
/***/"3dd1":
/***/function(e,t,n){e.exports=function(){"use strict";function e(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(t,n){return t.get(e(t,n))}function r(e,n,r){t(e,n),n.set(e,r)}function i(t,n,r){return t.set(e(t,n),r),r}const a=100,o={},s=()=>{o.previousActiveElement instanceof HTMLElement?(o.previousActiveElement.focus(),o.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;o.restoreFocusTimeout=setTimeout((()=>{s(),t()}),a),// issues/900
window.scrollTo(n,r)})),l="swal2-",u=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce(((e,t)=>(e[t]=l+t,e)),/** @type {SwalClasses} */{}),h=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=l+t,e)),/** @type {SwalIcons} */{}),f=e=>e.charAt(0).toUpperCase()+e.slice(1)
/**
   * Standardize console warnings
   *
   * @param {string | string[]} message
   */,d=e=>{},p=e=>{},g=[],m=e=>{g.includes(e)||(g.push(e),d(e))},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},y=e=>"function"==typeof e?e():e
/**
   * @param {any} arg
   * @returns {boolean}
   */,A=e=>e&&"function"==typeof e.toPromise
/**
   * @param {any} arg
   * @returns {Promise<any>}
   */,b=e=>A(e)?e.toPromise():Promise.resolve(e)
/**
   * @param {any} arg
   * @returns {boolean}
   */,w=e=>e&&Promise.resolve(e)===e
/**
   * Gets the popup container which contains the backdrop and the popup itself.
   *
   * @returns {HTMLElement | null}
   */,x=()=>document.body.querySelector(`.${u.container}`)
/**
   * @param {string} selectorString
   * @returns {HTMLElement | null}
   */,C=e=>{const t=x();return t?t.querySelector(e):null},_=e=>C(`.${e}`),I=()=>_(u.popup)
/**
   * @returns {HTMLElement | null}
   */,E=()=>_(u.icon)
/**
   * @returns {HTMLElement | null}
   */,k=()=>_(u["icon-content"])
/**
   * @returns {HTMLElement | null}
   */,S=()=>_(u.title)
/**
   * @returns {HTMLElement | null}
   */,B=()=>_(u["html-container"])
/**
   * @returns {HTMLElement | null}
   */,M=()=>_(u.image)
/**
   * @returns {HTMLElement | null}
   */,T=()=>_(u["progress-steps"])
/**
   * @returns {HTMLElement | null}
   */,O=()=>_(u["validation-message"])
/**
   * @returns {HTMLButtonElement | null}
   */,D=()=>/** @type {HTMLButtonElement} */C(`.${u.actions} .${u.confirm}`)
/**
   * @returns {HTMLButtonElement | null}
   */,P=()=>/** @type {HTMLButtonElement} */C(`.${u.actions} .${u.cancel}`)
/**
   * @returns {HTMLButtonElement | null}
   */,L=()=>/** @type {HTMLButtonElement} */C(`.${u.actions} .${u.deny}`)
/**
   * @returns {HTMLElement | null}
   */,Q=()=>_(u["input-label"])
/**
   * @returns {HTMLElement | null}
   */,R=()=>C(`.${u.loader}`)
/**
   * @returns {HTMLElement | null}
   */,j=()=>_(u.actions)
/**
   * @returns {HTMLElement | null}
   */,N=()=>_(u.footer)
/**
   * @returns {HTMLElement | null}
   */,F=()=>_(u["timer-progress-bar"])
/**
   * @returns {HTMLElement | null}
   */,z=()=>_(u.close)
// https://github.com/jkup/focusable/blob/master/index.js
,H='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',U=()=>{const e=I();if(!e)return[];
/** @type {NodeListOf<HTMLElement>} */const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll(H),i=Array.from(r).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(i))].filter((e=>le(e)))},G=()=>Y(document.body,u.shown)&&!Y(document.body,u["toast-shown"])&&!Y(document.body,u["no-backdrop"]),V=()=>{const e=I();return!!e&&Y(e,u.toast)},W=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},q=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const i=n.querySelector("body");i&&Array.from(i.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},Y=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},K=(e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(u).includes(n)||Object.values(h).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))},$=(e,t,n)=>{if(K(e,t),!t.customClass)return;const r=t.customClass[/** @type {keyof SweetAlertCustomClass} */n];r&&("string"==typeof r||r.forEach?ee(e,r):d(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},J=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${u.popup} > .${u[t]}`);case"checkbox":return e.querySelector(`.${u.popup} > .${u.checkbox} input`);case"radio":return e.querySelector(`.${u.popup} > .${u.radio} input:checked`)||e.querySelector(`.${u.popup} > .${u.radio} input:first-child`);case"range":return e.querySelector(`.${u.popup} > .${u.range} input`);default:return e.querySelector(`.${u.popup} > .${u.input}`)}},X=e=>{
// place cursor at end of text in text input
if(e.focus(),"file"!==e.type){
// http://stackoverflow.com/a/2345915
const t=e.value;e.value="",e.value=t}},Z=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},ee=(e,t)=>{Z(e,t,!0)},te=(e,t)=>{Z(e,t,!1)},ne=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++){const r=n[e];if(r instanceof HTMLElement&&Y(r,t))return r}},re=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},ie=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ae=e=>{e&&(e.style.display="none")},oe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{ce(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},se=(e,t,n,r)=>{
/** @type {HTMLElement | null} */
const i=e.querySelector(t);i&&i.style.setProperty(n,r)},ce=function(e,t){t?ie(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ae(e)},le=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))
/**
   * @returns {boolean}
   */,ue=()=>!le(D())&&!le(L())&&!le(P())
/**
   * @param {HTMLElement} elem
   * @returns {boolean}
   */,he=e=>!!(e.scrollHeight>e.clientHeight)
/**
   * borrowed from https://stackoverflow.com/a/46352119
   *
   * @param {HTMLElement} elem
   * @returns {boolean}
   */,fe=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},de=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=F();n&&le(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},pe=()=>{const e=F();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},ge=()=>"undefined"==typeof window||"undefined"==typeof document,me=`\n <div aria-labelledby="${u.title}" aria-describedby="${u["html-container"]}" class="${u.popup}" tabindex="-1">\n   <button type="button" class="${u.close}"></button>\n   <ul class="${u["progress-steps"]}"></ul>\n   <div class="${u.icon}"></div>\n   <img class="${u.image}" />\n   <h2 class="${u.title}" id="${u.title}"></h2>\n   <div class="${u["html-container"]}" id="${u["html-container"]}"></div>\n   <input class="${u.input}" id="${u.input}" />\n   <input type="file" class="${u.file}" />\n   <div class="${u.range}">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="${u.select}" id="${u.select}"></select>\n   <div class="${u.radio}"></div>\n   <label class="${u.checkbox}">\n     <input type="checkbox" id="${u.checkbox}" />\n     <span class="${u.label}"></span>\n   </label>\n   <textarea class="${u.textarea}" id="${u.textarea}"></textarea>\n   <div class="${u["validation-message"]}" id="${u["validation-message"]}"></div>\n   <div class="${u.actions}">\n     <div class="${u.loader}"></div>\n     <button type="button" class="${u.confirm}"></button>\n     <button type="button" class="${u.deny}"></button>\n     <button type="button" class="${u.cancel}"></button>\n   </div>\n   <div class="${u.footer}"></div>\n   <div class="${u["timer-progress-bar-container"]}">\n     <div class="${u["timer-progress-bar"]}"></div>\n   </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ve=()=>{const e=x();return!!e&&(e.remove(),te([document.documentElement,document.body],[u["no-backdrop"],u["toast-shown"],u["has-column"]]),!0)},ye=()=>{o.currentInstance.resetValidationMessage()},Ae=()=>{const e=I(),t=ne(e,u.input),n=ne(e,u.file),r=e.querySelector(`.${u.range} input`),i=e.querySelector(`.${u.range} output`),a=ne(e,u.select),o=e.querySelector(`.${u.checkbox} input`),s=ne(e,u.textarea);t.oninput=ye,n.onchange=ye,a.onchange=ye,o.onchange=ye,s.oninput=ye,r.oninput=()=>{ye(),i.value=r.value},r.onchange=()=>{ye(),i.value=r.value}},be=e=>"string"==typeof e?document.querySelector(e):e
/**
   * @param {SweetAlertOptions} params
   */,we=e=>{const t=I();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},xe=e=>{"rtl"===window.getComputedStyle(e).direction&&ee(x(),u.rtl)},Ce=e=>{
// Clean up the old popup container if it exists
const t=ve();if(ge())return void p("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=u.container,t&&ee(n,u["no-transition"]),q(n,me);const r=be(e.target);r.appendChild(n),we(e),xe(r),Ae()},_e=(e,t)=>{
// DOM element
e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Ie(e,t):e&&q(t,e)},Ie=(e,t)=>{
// JQuery element(s)
e.jquery?Ee(t,e):q(t,e.toString())},Ee=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ke=(e,t)=>{const n=j(),r=R();n&&r&&(
// Actions (buttons) wrapper
t.showConfirmButton||t.showDenyButton||t.showCancelButton?ie(n):ae(n),
// Custom class
$(n,t,"actions"),
// Render all the buttons
Se(n,r,t),
// Loader
q(r,t.loaderHtml||""),$(r,t,"loader"))};
/** @type {GlobalState} */
/**
   * @param {HTMLElement} actions
   * @param {HTMLElement} loader
   * @param {SweetAlertOptions} params
   */
function Se(e,t,n){const r=D(),i=L(),a=P();r&&i&&a&&(
// Render buttons
Me(r,"confirm",n),Me(i,"deny",n),Me(a,"cancel",n),Be(r,i,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(i,r)):(e.insertBefore(a,t),e.insertBefore(i,t),e.insertBefore(r,t))))}
/**
   * @param {HTMLElement} confirmButton
   * @param {HTMLElement} denyButton
   * @param {HTMLElement} cancelButton
   * @param {SweetAlertOptions} params
   */function Be(e,t,n,r){r.buttonsStyling?(ee([e,t,n],u.styled),
// Buttons background colors
r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,ee(e,u["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,ee(t,u["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,ee(n,u["default-outline"]))):te([e,t,n],u.styled)}
/**
   * @param {HTMLElement} button
   * @param {'confirm' | 'deny' | 'cancel'} buttonType
   * @param {SweetAlertOptions} params
   */function Me(e,t,n){const r=/** @type {'Confirm' | 'Deny' | 'Cancel'} */f(t);ce(e,n[`show${r}Button`],"inline-block"),q(e,n[`${t}ButtonText`]||""),// Set caption text
e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),// ARIA label
// Add buttons custom classes
e.className=u[t],$(e,n,`${t}Button`)}
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */const Te=(e,t)=>{const n=z();n&&(q(n,t.closeButtonHtml||""),
// Custom class
$(n,t,"closeButton"),ce(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Oe=(e,t)=>{const n=x();n&&(De(n,t.backdrop),Pe(n,t.position),Le(n,t.grow),
// Custom class
$(n,t,"container"))};
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */
/**
   * @param {HTMLElement} container
   * @param {SweetAlertOptions['backdrop']} backdrop
   */
function De(e,t){"string"==typeof t?e.style.background=t:t||ee([document.documentElement,document.body],u["no-backdrop"])}
/**
   * @param {HTMLElement} container
   * @param {SweetAlertOptions['position']} position
   */function Pe(e,t){t&&(t in u?ee(e,u[t]):(d('The "position" parameter is not valid, defaulting to "center"'),ee(e,u.center)))}
/**
   * @param {HTMLElement} container
   * @param {SweetAlertOptions['grow']} grow
   */function Le(e,t){t&&ee(e,u[`grow-${t}`])}
/**
   * This module contains `WeakMap`s for each effectively-"private  property" that a `Swal` has.
   * For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
   * This is the approach that Babel will probably take to implement private methods/fields
   *   https://github.com/tc39/proposal-private-methods
   *   https://github.com/babel/babel/pull/7555
   * Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
   *   then we can use that language feature.
   */var Qe={innerParams:new WeakMap,domCache:new WeakMap};
/// <reference path="../../../../sweetalert2.d.ts"/>
/** @type {InputClass[]} */const Re=["input","file","range","select","radio","checkbox","textarea"],je=(e,t)=>{const n=I();if(!n)return;const r=Qe.innerParams.get(e),i=!r||t.input!==r.input;Re.forEach((e=>{const r=ne(n,u[e]);r&&(
// set attributes
ze(e,t.inputAttributes),
// set class
r.className=u[e],i&&ae(r))})),t.input&&(i&&Ne(t),
// set custom class
He(t))},Ne=e=>{if(!e.input)return;if(!qe[e.input])return void p(`Unexpected type of input! Expected ${Object.keys(qe).join(" | ")}, got "${e.input}"`);const t=Ve(e.input);if(!t)return;const n=qe[e.input](t,e);ie(t),
// input autofocus
e.inputAutoFocus&&setTimeout((()=>{X(n)}))},Fe=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},ze=(e,t)=>{const n=I();if(!n)return;const r=J(n,e);if(r){Fe(r);for(const e in t)r.setAttribute(e,t[e])}},He=e=>{if(!e.input)return;const t=Ve(e.input);t&&$(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),i=u["input-label"];r.setAttribute("for",e.id),r.className=i,"object"==typeof n.customClass&&ee(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Ve=e=>{const t=I();if(t)return ne(t,u[/** @type {SwalClass} */e]||u.input)},We=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:w(t)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},qe={};
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */
/**
   * @param {HTMLInputElement} input
   * @param {SweetAlertOptions} params
   * @returns {HTMLInputElement}
   */
qe.text=qe.email=qe.password=qe.number=qe.tel=qe.url=qe.search=qe.date=qe["datetime-local"]=qe.time=qe.week=qe.month=/** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
(e,t)=>(We(e,t.inputValue),Ge(e,e,t),Ue(e,t),e.type=t.input,e),
/**
   * @param {HTMLInputElement} input
   * @param {SweetAlertOptions} params
   * @returns {HTMLInputElement}
   */
qe.file=(e,t)=>(Ge(e,e,t),Ue(e,t),e),
/**
   * @param {HTMLInputElement} range
   * @param {SweetAlertOptions} params
   * @returns {HTMLInputElement}
   */
qe.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return We(n,t.inputValue),n.type=t.input,We(r,t.inputValue),Ge(n,e,t),e},
/**
   * @param {HTMLSelectElement} select
   * @param {SweetAlertOptions} params
   * @returns {HTMLSelectElement}
   */
qe.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");q(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ge(e,e,t),e},
/**
   * @param {HTMLInputElement} radio
   * @returns {HTMLInputElement}
   */
qe.radio=e=>(e.textContent="",e),
/**
   * @param {HTMLLabelElement} checkboxContainer
   * @param {SweetAlertOptions} params
   * @returns {HTMLInputElement}
   */
qe.checkbox=(e,t)=>{const n=J(I(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return q(r,t.inputPlaceholder||t.inputLabel),n},
/**
   * @param {HTMLTextAreaElement} textarea
   * @param {SweetAlertOptions} params
   * @returns {HTMLTextAreaElement}
   */
qe.textarea=(e,t)=>{We(e,t.inputValue),Ue(e,t),Ge(e,e,t);
/**
     * @param {HTMLElement} el
     * @returns {number}
     */
const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight)
// https://github.com/sweetalert2/sweetalert2/issues/2291;
return setTimeout((()=>{
// https://github.com/sweetalert2/sweetalert2/issues/1699
if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(I()).width);new MutationObserver((()=>{
// check if texarea is still in document (i.e. popup wasn't closed in the meantime)
if(!document.body.contains(e))return;const i=e.offsetWidth+n(e);i>r?I().style.width=`${i}px`:re(I(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */
const Ye=(e,t)=>{const n=B();n&&(oe(n),$(n,t,"htmlContainer"),
// Content as HTML
t.html?(_e(t.html,n),ie(n,"block")):t.text?(n.textContent=t.text,ie(n,"block")):ae(n),je(e,t))},Ke=(e,t)=>{const n=N();n&&(oe(n),ce(n,t.footer,"block"),t.footer&&_e(t.footer,n),
// Custom class
$(n,t,"footer"))},$e=(e,t)=>{const n=Qe.innerParams.get(e),r=E();if(r){
// if the given icon already rendered, apply the styling without re-rendering the icon
if(n&&t.icon===n.icon)
// Custom or default content
return tt(r,t),void Je(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(h).indexOf(t.icon))return p(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ae(r);ie(r),
// Custom or default content
tt(r,t),Je(r,t),
// Animate icon
ee(r,t.showClass&&t.showClass.icon)}else ae(r)}},Je=(e,t)=>{for(const[n,r]of Object.entries(h))t.icon!==n&&te(e,r);ee(e,t.icon&&h[t.icon]),
// Icon color
nt(e,t),
// Success icon background color
Xe(),
// Custom class
$(e,t,"icon")},Xe=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
/** @type {NodeListOf<HTMLElement>} */for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Ze='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',et='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',tt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";t.iconHtml?r=rt(t.iconHtml):"success"===t.icon?(r=Ze,n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?r=et:t.icon&&(r=rt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&q(e,r)},nt=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])se(e,n,"background-color",t.iconColor);se(e,".swal2-success-ring","border-color",t.iconColor)}},rt=e=>`<div class="${u["icon-content"]}">${e}</div>`
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */,it=(e,t)=>{const n=M();n&&(t.imageUrl?(ie(n,""),
// Src, alt
n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),
// Width, height
re(n,"width",t.imageWidth),re(n,"height",t.imageHeight),
// Class
n.className=u.image,$(n,t,"image")):ae(n))};
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */let at=!1,ot=0,st=0,ct=0,lt=0;
/**
   * @param {HTMLElement} popup
   */
const ut=e=>{e.addEventListener("mousedown",ft),document.body.addEventListener("mousemove",dt),e.addEventListener("mouseup",pt),e.addEventListener("touchstart",ft),document.body.addEventListener("touchmove",dt),e.addEventListener("touchend",pt)},ht=e=>{e.removeEventListener("mousedown",ft),document.body.removeEventListener("mousemove",dt),e.removeEventListener("mouseup",pt),e.removeEventListener("touchstart",ft),document.body.removeEventListener("touchmove",dt),e.removeEventListener("touchend",pt)},ft=e=>{const t=I();if(e.target===t||E().contains(/** @type {HTMLElement} */e.target)){at=!0;const n=gt(e);ot=n.clientX,st=n.clientY,ct=parseInt(t.style.insetInlineStart)||0,lt=parseInt(t.style.insetBlockStart)||0,ee(t,"swal2-dragging")}},dt=e=>{const t=I();if(at){let{clientX:n,clientY:r}=gt(e);t.style.insetInlineStart=`${ct+(n-ot)}px`,t.style.insetBlockStart=`${lt+(r-st)}px`}},pt=()=>{const e=I();at=!1,te(e,"swal2-dragging")},gt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=/** @type {MouseEvent} */e.clientX,n=/** @type {MouseEvent} */e.clientY):e.type.startsWith("touch")&&(t=/** @type {TouchEvent} */e.touches[0].clientX,n=/** @type {TouchEvent} */e.touches[0].clientY),{clientX:t,clientY:n}},mt=(e,t)=>{const n=x(),r=I();if(n&&r){
// Width
// https://github.com/sweetalert2/sweetalert2/issues/2170
if(t.toast){re(n,"width",t.width),r.style.width="100%";const e=R();e&&r.insertBefore(e,E())}else re(r,"width",t.width);
// Padding
re(r,"padding",t.padding),
// Color
t.color&&(r.style.color=t.color),
// Background
t.background&&(r.style.background=t.background),ae(O()),
// Classes
vt(r,t),t.draggable&&!t.toast?(ee(r,u.draggable),ut(r)):(te(r,u.draggable),ht(r))}},vt=(e,t)=>{const n=t.showClass||{};
// Default Class + showClass when updating Swal.update({})
e.className=`${u.popup} ${le(e)?n.popup:""}`,t.toast?(ee([document.documentElement,document.body],u["toast-shown"]),ee(e,u.toast)):ee(e,u.modal),
// Custom class
$(e,t,"popup"),
// TODO: remove in the next major
"string"==typeof t.customClass&&ee(e,t.customClass),
// Icon class (#1842)
t.icon&&ee(e,u[`icon-${t.icon}`])},yt=(e,t)=>{const n=T();if(!n)return;const{progressSteps:r,currentProgressStep:i}=t;r&&0!==r.length&&void 0!==i?(ie(n),n.textContent="",i>=r.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((e,a)=>{const o=At(e);if(n.appendChild(o),a===i&&ee(o,u["active-progress-step"]),a!==r.length-1){const e=bt(t);n.appendChild(e)}}))):ae(n)},At=e=>{const t=document.createElement("li");return ee(t,u["progress-step"]),q(t,e),t},bt=e=>{const t=document.createElement("li");return ee(t,u["progress-step-line"]),e.progressStepsDistance&&re(t,"width",e.progressStepsDistance),t},wt=(e,t)=>{const n=S();n&&(oe(n),ce(n,t.title||t.titleText,"block"),t.title&&_e(t.title,n),t.titleText&&(n.innerText=t.titleText),
// Custom class
$(n,t,"title"))},xt=(e,t)=>{mt(e,t),Oe(e,t),yt(e,t),$e(e,t),it(e,t),wt(e,t),Te(e,t),Ye(e,t),ke(e,t),Ke(e,t);const n=I();"function"==typeof t.didRender&&n&&t.didRender(n),o.eventEmitter.emit("didRender",n)},Ct=()=>le(I()),_t=()=>{var e;return null===(e=D())||void 0===e?void 0:e.click()},It=()=>{var e;return null===(e=L())||void 0===e?void 0:e.click()},Et=()=>{var e;return null===(e=P())||void 0===e?void 0:e.click()},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),St=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Bt=(e,t,n)=>{St(e),t.toast||(e.keydownHandler=e=>Dt(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:I(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Mt=(e,t)=>{var n;const r=U();
// search for visible elements and select the next possible match
if(r.length)
// rollover to first item
return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();
// no visible focusable elements, focus the popup
null===(n=I())||void 0===n||n.focus()},Tt=["ArrowRight","ArrowDown"],Ot=["ArrowLeft","ArrowUp"],Dt=(e,t,n)=>{e&&(
// Ignore keydown during IME composition
// https://developer.mozilla.org/en-US/docs/Web/API/Document/keydown_event#ignoring_keydown_during_ime_composition
// https://github.com/sweetalert2/sweetalert2/issues/720
// https://github.com/sweetalert2/sweetalert2/issues/2406
t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),
// ENTER
"Enter"===t.key?Pt(t,e):"Tab"===t.key?Lt(t):[...Tt,...Ot].includes(t.key)?Qt(t.key):"Escape"===t.key&&Rt(t,e,n)))},Pt=(e,t)=>{
// https://github.com/sweetalert2/sweetalert2/issues/2386
if(!y(t.allowEnterKey))return;const n=J(I(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;// do not submit
_t(),e.preventDefault()}},Lt=e=>{const t=e.target,n=U();let r=-1;for(let e=0;e<n.length;e++)if(t===n[e]){r=e;break}
// Cycle to the next button
e.shiftKey?Mt(r,-1):Mt(r,1),e.stopPropagation(),e.preventDefault()},Qt=e=>{const t=j(),n=D(),r=L(),i=P();if(!(t&&n&&r&&i))return;
/** @type HTMLElement[] */const a=[n,r,i];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=Tt.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;if(s){for(let e=0;e<t.children.length;e++){if(s=s[o],!s)return;if(s instanceof HTMLButtonElement&&le(s))break}s instanceof HTMLButtonElement&&s.focus()}},Rt=(e,t,n)=>{y(t.allowEscapeKey)&&(e.preventDefault(),n(kt.esc))};
/**
   * @param {HTMLElement} popup
   */
/**
   * This module contains `WeakMap`s for each effectively-"private  property" that a `Swal` has.
   * For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
   * This is the approach that Babel will probably take to implement private methods/fields
   *   https://github.com/tc39/proposal-private-methods
   *   https://github.com/babel/babel/pull/7555
   * Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
   *   then we can use that language feature.
   */
var jt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};
// From https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/
// Adding aria-hidden="true" to elements outside of the active modal dialog ensures that
// elements not within the active modal dialog will not be surfaced if a user opens a screen
// reader’s list of elements (headings, form controls, landmarks, etc.) in the document.
const Nt=()=>{const e=x();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))},Ft=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},zt="undefined"!=typeof window&&!!window.GestureEvent,Ht=()=>{if(zt&&!Y(document.body,u.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ee(document.body,u.iosfix),Ut()}},Ut=()=>{const e=x();if(!e)return;
/** @type {boolean} */let t;
/**
     * @param {TouchEvent} event
     */e.ontouchstart=e=>{t=Gt(e)},
/**
     * @param {TouchEvent} event
     */
e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Gt=e=>{const t=e.target,n=x(),r=B();return!(!n||!r||Vt(e)||Wt(e)||t!==n&&(he(n)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||
// #1603
"TEXTAREA"===t.tagName||he(r)&&
// #1944
r.contains(t)))},Vt=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Wt=e=>e.touches&&e.touches.length>1,qt=()=>{if(Y(document.body,u.iosfix)){const e=parseInt(document.body.style.top,10);te(document.body,u.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Yt=()=>{const e=document.createElement("div");e.className=u["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};
/**
   * Remember state in cases where opening and handling a modal will fiddle with it.
   * @type {number | null}
   */
let Kt=null;
/**
   * @param {string} initialBodyOverflow
   */const $t=e=>{
// for queues, do not do this more than once
null===Kt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(
// add padding so the content doesn't shift after removal of scrollbar
Kt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Kt+Yt()}px`);
// if the body has overflow
},Jt=()=>{null!==Kt&&(document.body.style.paddingRight=`${Kt}px`,Kt=null)};
/**
   * @param {SweetAlert} instance
   * @param {HTMLElement} container
   * @param {boolean} returnFocus
   * @param {Function} didClose
   */
function Xt(e,t,n,r){V()?cn(e,r):(c(n).then((()=>cn(e,r))),St(o)),
// workaround for https://github.com/sweetalert2/sweetalert2/issues/2088
// for some reason removing the container in Safari will scroll the document to bottom
zt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),G()&&(Jt(),qt(),Ft()),Zt()}
/**
   * Remove SweetAlert2 classes from body
   */function Zt(){te([document.documentElement,document.body],[u.shown,u["height-auto"],u["no-backdrop"],u["toast-shown"]])}
/**
   * Instance method to close sweetAlert
   *
   * @param {any} resolveValue
   */function en(e){e=an(e);const t=jt.swalPromiseResolve.get(this),n=tn(this);this.isAwaitingPromise?
// A swal awaiting for a promise (after a click on Confirm or Deny) cannot be dismissed anymore #2335
e.isDismissed||(rn(this),t(e)):n&&
// Resolve Swal promise
t(e)}const tn=e=>{const t=I();if(!t)return!1;const n=Qe.innerParams.get(e);if(!n||Y(t,n.hideClass.popup))return!1;te(t,n.showClass.popup),ee(t,n.hideClass.popup);const r=x();return te(r,n.showClass.backdrop),ee(r,n.hideClass.backdrop),on(e,t,n),!0};
/**
   * @param {any} error
   */function nn(e){const t=jt.swalPromiseReject.get(this);rn(this),t&&
// Reject Swal promise
t(e)}
/**
   * @param {SweetAlert} instance
   */const rn=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,
// The instance might have been previously partly destroyed, we must resume the destroy process in this case #2335
Qe.innerParams.get(e)||e._destroy())},an=e=>
// When user calls Swal.close()
void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),on=(e,t,n)=>{var r;const i=x(),a=fe(t);
// If animation is supported, animate
"function"==typeof n.willClose&&n.willClose(t),null===(r=o.eventEmitter)||void 0===r||r.emit("willClose",t),a?sn(e,t,i,n.returnFocus,n.didClose):
// Otherwise, remove immediately
Xt(e,i,n.returnFocus,n.didClose)},sn=(e,t,n,r,i)=>{o.swalCloseEventFinishedCallback=Xt.bind(null,e,n,r,i);
/**
     * @param {AnimationEvent | TransitionEvent} e
     */
const a=function(e){var n;e.target===t&&(null===(n=o.swalCloseEventFinishedCallback)||void 0===n||n.call(o),delete o.swalCloseEventFinishedCallback,t.removeEventListener("animationend",a),t.removeEventListener("transitionend",a))};t.addEventListener("animationend",a),t.addEventListener("transitionend",a)},cn=(e,t)=>{setTimeout((()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=o.eventEmitter)||void 0===n||n.emit("didClose"),
// instance might have been destroyed already
e._destroy&&e._destroy()}))},ln=e=>{let t=I();if(t||new fi,t=I(),!t)return;const n=R();V()?ae(E()):un(t,e),ie(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},un=(e,t)=>{const n=j(),r=R();n&&r&&(!t&&le(D())&&(t=D()),ie(n),t&&(ae(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),ee([e,n],u.loading))},hn=(e,t)=>{"select"===t.input||"radio"===t.input?mn(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(A(t.inputValue)||w(t.inputValue))&&(ln(D()),vn(e,t))},fn=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return dn(n);case"radio":return pn(n);case"file":return gn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},dn=e=>e.checked?1:0
/**
   * @param {HTMLInputElement} input
   * @returns {string | null}
   */,pn=e=>e.checked?e.value:null
/**
   * @param {HTMLInputElement} input
   * @returns {FileList | File | null}
   */,gn=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null
/**
   * @param {SweetAlert} instance
   * @param {SweetAlertOptions} params
   */,mn=(e,t)=>{const n=I();if(!n)return;
/**
     * @param {Record<string, any>} inputOptions
     */const r=e=>{"select"===t.input?yn(n,bn(e),t):"radio"===t.input&&An(n,bn(e),t)};A(t.inputOptions)||w(t.inputOptions)?(ln(D()),b(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):p("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},vn=(e,t)=>{const n=e.getInput();n&&(ae(n),b(t.inputValue).then((r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,ie(n),n.focus(),e.hideLoading()})).catch((t=>{p(`Error in inputValue promise: ${t}`),n.value="",ie(n),n.focus(),e.hideLoading()})))};
/**
   * @param {any} resolveValue
   * @returns {SweetAlertResult}
   */
/**
   * @param {HTMLElement} popup
   * @param {InputOptionFlattened[]} inputOptions
   * @param {SweetAlertOptions} params
   */
function yn(e,t,n){const r=ne(e,u.select);if(!r)return;
/**
     * @param {HTMLElement} parent
     * @param {string} optionLabel
     * @param {string} optionValue
     */const i=(e,t,r)=>{const i=document.createElement("option");i.value=r,q(i,t),i.selected=wn(r,n.inputValue),e.appendChild(i)};t.forEach((e=>{const t=e[0],n=e[1];
// <optgroup> spec:
// https://www.w3.org/TR/html401/interact/forms.html#h-17.6
// "...all OPTGROUP elements must be specified directly within a SELECT element (i.e., groups may not be nested)..."
// check whether this is a <optgroup>
if(Array.isArray(n)){
// if it is an array, then it is an <optgroup>
const e=document.createElement("optgroup");e.label=t,e.disabled=!1,// not configurable for now
r.appendChild(e),n.forEach((t=>i(e,t[1],t[0])))}else
// case of <option>
i(r,n,t)})),r.focus()}
/**
   * @param {HTMLElement} popup
   * @param {InputOptionFlattened[]} inputOptions
   * @param {SweetAlertOptions} params
   */function An(e,t,n){const r=ne(e,u.radio);if(!r)return;t.forEach((e=>{const t=e[0],i=e[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=u.radio,a.value=t,wn(t,n.inputValue)&&(a.checked=!0);const s=document.createElement("span");q(s,i),s.className=u.label,o.appendChild(a),o.appendChild(s),r.appendChild(o)}));const i=r.querySelectorAll("input");i.length&&i[0].focus()}
/**
   * Converts `inputOptions` into an array of `[value, label]`s
   *
   * @param {Record<string, any>} inputOptions
   * @typedef {string[]} InputOptionFlattened
   * @returns {InputOptionFlattened[]}
   */const bn=e=>{
/** @type {InputOptionFlattened[]} */
const t=[];return e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(
// case of <optgroup>
r=bn(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(
// case of <optgroup>
r=bn(r)),t.push([n,r])})),t},wn=(e,t)=>!!t&&t.toString()===e.toString(),xn=e=>{const t=Qe.innerParams.get(e);e.disableButtons(),t.input?In(e,"confirm"):Mn(e,!0)},Cn=e=>{const t=Qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?In(e,"deny"):kn(e,!1)},_n=(e,t)=>{e.disableButtons(),t(kt.cancel)},In=(e,t)=>{const n=Qe.innerParams.get(e);if(!n.input)return void p(`The "input" parameter is needed to be set when using returnInputValueOn${f(t)}`);const r=e.getInput(),i=fn(e,n);n.inputValidator?En(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?kn(e,i):Mn(e,i)},En=(e,t,n)=>{const r=Qe.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>b(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?kn(e,t):Mn(e,t)}))},kn=(e,t)=>{const n=Qe.innerParams.get(e||void 0);n.showLoaderOnDeny&&ln(L()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),rn(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>Bn(e||void 0,t)))):e.close({isDenied:!0,value:t})},Sn=(e,t)=>{e.close({isConfirmed:!0,value:t})},Bn=(e,t)=>{e.rejectPromise(t)},Mn=(e,t)=>{const n=Qe.innerParams.get(e||void 0);n.showLoaderOnConfirm&&ln(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preConfirm(t,n.validationMessage)))).then((n=>{le(O())||!1===n?(e.hideLoading(),rn(e)):Sn(e,void 0===n?t:n)})).catch((t=>Bn(e||void 0,t)))):Sn(e,t)};
/**
   * @param {string} optionValue
   * @param {SweetAlertInputValue} inputValue
   * @returns {boolean}
   */
/**
   * Hides loader and shows back the button which was hidden by .showLoading()
   */
function Tn(){
// do nothing if popup is closed
const e=Qe.innerParams.get(this);if(!e)return;const t=Qe.domCache.get(this);ae(t.loader),V()?e.icon&&ie(E()):On(t),te([t.popup,t.actions],u.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const On=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ie(t[0],"inline-block"):ue()&&ae(e.actions)};
/**
   * Gets the input DOM node, this method works with input parameter.
   *
   * @returns {HTMLInputElement | null}
   */function Dn(){const e=Qe.innerParams.get(this),t=Qe.domCache.get(this);return t?J(t.popup,e.input):null}
/**
   * @param {SweetAlert} instance
   * @param {string[]} buttons
   * @param {boolean} disabled
   */function Pn(e,t,n){const r=Qe.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}
/**
   * @param {HTMLInputElement | null} input
   * @param {boolean} disabled
   */function Ln(e,t){const n=I();if(n&&e)if("radio"===e.type){
/** @type {NodeListOf<HTMLInputElement>} */
const e=n.querySelectorAll(`[name="${u.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}
/**
   * Enable all the buttons
   * @this {SweetAlert}
   */function Qn(){Pn(this,["confirmButton","denyButton","cancelButton"],!1)}
/**
   * Disable all the buttons
   * @this {SweetAlert}
   */function Rn(){Pn(this,["confirmButton","denyButton","cancelButton"],!0)}
/**
   * Enable the input field
   * @this {SweetAlert}
   */function jn(){Ln(this.getInput(),!1)}
/**
   * Disable the input field
   * @this {SweetAlert}
   */function Nn(){Ln(this.getInput(),!0)}
/**
   * Show block with validation message
   *
   * @param {string} error
   * @this {SweetAlert}
   */function Fn(e){const t=Qe.domCache.get(this),n=Qe.innerParams.get(this);q(t.validationMessage,e),t.validationMessage.className=u["validation-message"],n.customClass&&n.customClass.validationMessage&&ee(t.validationMessage,n.customClass.validationMessage),ie(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",u["validation-message"]),X(r),ee(r,u.inputerror))}
/**
   * Hide block with validation message
   *
   * @this {SweetAlert}
   */function zn(){const e=Qe.domCache.get(this);e.validationMessage&&ae(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),te(t,u.inputerror))}const Hn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Un=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Gn={allowEnterKey:void 0},Vn=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Wn=e=>Object.prototype.hasOwnProperty.call(Hn,e),qn=e=>-1!==Un.indexOf(e),Yn=e=>Gn[e],Kn=e=>{Wn(e)||d(`Unknown parameter "${e}"`)},$n=e=>{Vn.includes(e)&&d(`The parameter "${e}" is incompatible with toasts`)},Jn=e=>{const t=Yn(e);t&&v(e,t)},Xn=e=>{!1===e.backdrop&&e.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Kn(t),e.toast&&$n(t),Jn(t)};
/**
   * Updates popup parameters.
   *
   * @param {SweetAlertOptions} params
   */
function Zn(e){const t=I(),n=Qe.innerParams.get(this);if(!t||Y(t,n.hideClass.popup))return void d("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=er(e),i=Object.assign({},n,r);xt(this,i),Qe.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}
/**
   * @param {SweetAlertOptions} params
   * @returns {SweetAlertOptions}
   */const er=e=>{const t={};return Object.keys(e).forEach((n=>{qn(n)?t[n]=e[n]:d(`Invalid parameter to update: ${n}`)})),t};
/**
   * Dispose the current SweetAlert2 instance
   */function tr(){const e=Qe.domCache.get(this),t=Qe.innerParams.get(this);t?(
// Check if there is another Swal closing
e.popup&&o.swalCloseEventFinishedCallback&&(o.swalCloseEventFinishedCallback(),delete o.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),o.eventEmitter.emit("didDestroy"),nr(this)):rr(this)}
/**
   * @param {SweetAlert} instance
   */const nr=e=>{rr(e),
// Unset this.params so GC will dispose it (#1569)
delete e.params,
// Unset globalState props so GC will dispose globalState (#1569)
delete o.keydownHandler,delete o.keydownTarget,
// Unset currentInstance
delete o.currentInstance},rr=e=>{
// If the current instance is awaiting a promise result, we keep the privateMethods to call them once the promise result is retrieved #2335
e.isAwaitingPromise?(ir(Qe,e),e.isAwaitingPromise=!0):(ir(jt,e),ir(Qe,e),delete e.isAwaitingPromise,
// Unset instance methods
delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},ir=(e,t)=>{for(const n in e)e[n].delete(t)};
/**
   * @param {SweetAlert} instance
   */var ar=Object.freeze({__proto__:null,_destroy:tr,close:en,closeModal:en,closePopup:en,closeToast:en,disableButtons:Rn,disableInput:Nn,disableLoading:Tn,enableButtons:Qn,enableInput:jn,getInput:Dn,handleAwaitingPromise:rn,hideLoading:Tn,rejectPromise:nn,resetValidationMessage:zn,showValidationMessage:Fn,update:Zn});
/**
   * @param {SweetAlertOptions} innerParams
   * @param {DomCache} domCache
   * @param {Function} dismissWith
   */const or=(e,t,n)=>{e.toast?sr(e,t,n):(
// Ignore click events that had mousedown on the popup but mouseup on the container
// This can happen when the user drags a slider
ur(t),
// Ignore click events that had mousedown on the container but mouseup on the popup
hr(t),fr(e,t,n))},sr=(e,t,n)=>{
// Closing toast by internal click
t.popup.onclick=()=>{e&&(cr(e)||e.timer||e.input)||n(kt.close)}},cr=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);
/**
   * @param {SweetAlertOptions} innerParams
   * @param {DomCache} domCache
   * @param {Function} dismissWith
   */let lr=!1;
/**
   * @param {DomCache} domCache
   */const ur=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},
// We only check if the mouseup target is the container because usually it doesn't
// have any other direct children aside of the popup
t.target===e.container&&(lr=!0)}}},hr=e=>{e.container.onmousedown=t=>{
// prevent the modal text from being selected on double click on the container (allowOutsideClick: false)
t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},
// We also need to check if the mouseup target is a child of the popup
(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(lr=!0)}}},fr=(e,t,n)=>{t.container.onclick=r=>{lr?lr=!1:r.target===t.container&&y(e.allowOutsideClick)&&n(kt.backdrop)}},dr=e=>"object"==typeof e&&e.jquery,pr=e=>e instanceof Element||dr(e),gr=e=>{const t={};return"object"!=typeof e[0]||pr(e[0])?["title","html","icon"].forEach(((n,r)=>{const i=e[r];"string"==typeof i||pr(i)?t[n]=i:void 0!==i&&p(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)})):Object.assign(t,e[0]),t};
/**
   * @param {DomCache} domCache
   */
/**
   * Main method to create a new SweetAlert2 popup
   *
   * @param  {...SweetAlertOptions} args
   * @returns {Promise<SweetAlertResult>}
   */
function mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}
/**
   * Returns an extended version of `Swal` containing `params` as defaults.
   * Useful for reusing Swal configuration.
   *
   * For example:
   *
   * Before:
   * const textPromptOptions = { input: 'text', showCancelButton: true }
   * const {value: firstName} = await Swal.fire({ ...textPromptOptions, title: 'What is your first name?' })
   * const {value: lastName} = await Swal.fire({ ...textPromptOptions, title: 'What is your last name?' })
   *
   * After:
   * const TextPrompt = Swal.mixin({ input: 'text', showCancelButton: true })
   * const {value: firstName} = await TextPrompt('What is your first name?')
   * const {value: lastName} = await TextPrompt('What is your last name?')
   *
   * @param {SweetAlertOptions} mixinParams
   * @returns {SweetAlert}
   */function vr(e){class t extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}
// @ts-ignore
return t}
/**
   * If `timer` parameter is set, returns number of milliseconds of timer remained.
   * Otherwise, returns undefined.
   *
   * @returns {number | undefined}
   */const yr=()=>o.timeout&&o.timeout.getTimerLeft(),Ar=()=>{if(o.timeout)return pe(),o.timeout.stop()},br=()=>{if(o.timeout){const e=o.timeout.start();return de(e),e}},wr=()=>{const e=o.timeout;return e&&(e.running?Ar():br())},xr=e=>{if(o.timeout){const t=o.timeout.increase(e);return de(t,!0),t}},Cr=()=>!(!o.timeout||!o.timeout.isRunning());
/**
   * Stop timer. Returns number of milliseconds of timer remained.
   * If `timer` parameter isn't set, returns undefined.
   *
   * @returns {number | undefined}
   */let _r=!1;const Ir={};
/**
   * @param {string} attr
   */function Er(){Ir[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,_r||(document.body.addEventListener("click",kr),_r=!0)}const kr=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Ir){const n=t.getAttribute(e);if(n)return void Ir[e].fire({template:n})}};
// Source: https://gist.github.com/mudge/5830382?permalink_comment_id=2691957#gistcomment-2691957
class Sr{constructor(){
/** @type {Events} */
this.events={}}
/**
     * @param {string} eventName
     * @returns {EventHandlers}
     */_getHandlersByEventName(e){return void 0===this.events[e]&&(
// not Set because we need to keep the FIFO order
// https://github.com/sweetalert2/sweetalert2/pull/2763#discussion_r1748990334
this.events[e]=[]),this.events[e]}
/**
     * @param {string} eventName
     * @param {EventHandler} eventHandler
     */on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}
/**
     * @param {string} eventName
     * @param {EventHandler} eventHandler
     */once(e,t){var n=this;
/**
       * @param {Array} args
       */const r=function(){n.removeListener(e,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];t.apply(n,a)};this.on(e,r)}
/**
     * @param {string} eventName
     * @param {Array} args
     */emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach((
/**
       * @param {EventHandler} eventHandler
       */
e=>{try{e.apply(this,n)}catch(e){}}))}
/**
     * @param {string} eventName
     * @param {EventHandler} eventHandler
     */removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}
/**
     * @param {string} eventName
     */removeAllListeners(e){void 0!==this.events[e]&&(
// https://github.com/sweetalert2/sweetalert2/pull/2763#discussion_r1749239222
this.events[e].length=0)}reset(){this.events={}}}o.eventEmitter=new Sr;
/**
   * @param {string} eventName
   * @param {EventHandler} eventHandler
   */
const Br=(e,t)=>{o.eventEmitter.on(e,t)},Mr=(e,t)=>{o.eventEmitter.once(e,t)},Tr=(e,t)=>{
// Remove all handlers for all events
e?t?
// Remove a specific handler
o.eventEmitter.removeListener(e,t):
// Remove all handlers for a specific event
o.eventEmitter.removeAllListeners(e):o.eventEmitter.reset()};
/**
   * @param {string} eventName
   * @param {EventHandler} eventHandler
   */var Or=Object.freeze({__proto__:null,argsToParams:gr,bindClickHandler:Er,clickCancel:Et,clickConfirm:_t,clickDeny:It,enableLoading:ln,fire:mr,getActions:j,getCancelButton:P,getCloseButton:z,getConfirmButton:D,getContainer:x,getDenyButton:L,getFocusableElements:U,getFooter:N,getHtmlContainer:B,getIcon:E,getIconContent:k,getImage:M,getInputLabel:Q,getLoader:R,getPopup:I,getProgressSteps:T,getTimerLeft:yr,getTimerProgressBar:F,getTitle:S,getValidationMessage:O,increaseTimer:xr,isDeprecatedParameter:Yn,isLoading:W,isTimerRunning:Cr,isUpdatableParameter:qn,isValidParameter:Wn,isVisible:Ct,mixin:vr,off:Tr,on:Br,once:Mr,resumeTimer:br,showLoading:ln,stopTimer:Ar,toggleTimer:wr});class Dr{
/**
     * @param {Function} callback
     * @param {number} delay
     */
constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}
/**
     * @returns {number}
     */start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}
/**
     * @returns {number}
     */stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}
/**
     * @param {number} n
     * @returns {number}
     */increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}
/**
     * @returns {number}
     */getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}
/**
     * @returns {boolean}
     */isRunning(){return this.running}}const Pr=["swal-title","swal-html","swal-footer"],Lr=e=>{const t="string"==typeof e.template?/** @type {HTMLTemplateElement} */document.querySelector(e.template):e.template;if(!t)return{};
/** @type {DocumentFragment} */const n=t.content;return Ur(n),Object.assign(Qr(n),Rr(n),jr(n),Nr(n),Fr(n),zr(n),Hr(n,Pr))},Qr=e=>{
/** @type {Record<string, any>} */
const t={};
/** @type {HTMLElement[]} */return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Gr(e,["name","value"]);const n=/** @type {keyof SweetAlertOptions} */e.getAttribute("name"),r=e.getAttribute("value");n&&r&&("boolean"==typeof Hn[n]?t[n]="false"!==r:"object"==typeof Hn[n]?t[n]=JSON.parse(r):t[n]=r)})),t},Rr=e=>{
/** @type {Record<string, any>} */
const t={};
/** @type {HTMLElement[]} */return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=/** @type {keyof SweetAlertOptions} */e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())})),t},jr=e=>{
/** @type {Record<string, any>} */
const t={};
/** @type {HTMLElement[]} */return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Gr(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${f(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))})),t},Nr=e=>{const t={},n=e.querySelector("swal-image");
/** @type {HTMLElement | null} */return n&&(Gr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Fr=e=>{const t={},n=e.querySelector("swal-icon");
/** @type {HTMLElement | null} */return n&&(Gr(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},zr=e=>{
/** @type {Record<string, any>} */
const t={},n=e.querySelector("swal-input");
/** @type {HTMLElement | null} */n&&(Gr(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")))
/** @type {HTMLElement[]} */;const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((e=>{Gr(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r}))),t},Hr=(e,t)=>{
/** @type {Record<string, any>} */
const n={};for(const r in t){const i=t[r],a=e.querySelector(i);
/** @type {HTMLElement | null} */a&&(Gr(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},Ur=e=>{const t=Pr.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||d(`Unrecognized element <${n}>`)}))},Gr=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&d([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},Vr=10,Wr=e=>{const t=x(),n=I();"function"==typeof e.willOpen&&e.willOpen(n),o.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;$r(t,n,e),
// scrolling is 'hidden' until animation is done, after that 'auto'
setTimeout((()=>{Yr(t,n)}),Vr),G()&&(Kr(t,e.scrollbarPadding,r),Nt()),V()||o.previousActiveElement||(o.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),o.eventEmitter.emit("didOpen",n),te(t,u["no-transition"])},qr=e=>{const t=I();if(e.target!==t)return;const n=x();t.removeEventListener("animationend",qr),t.removeEventListener("transitionend",qr),n.style.overflowY="auto"},Yr=(e,t)=>{fe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",qr),t.addEventListener("transitionend",qr)):e.style.overflowY="auto"},Kr=(e,t,n)=>{Ht(),t&&"hidden"!==n&&$t(n),
// sweetalert2/issues/1247
setTimeout((()=>{e.scrollTop=0}))},$r=(e,t,n)=>{ee(e,n.showClass.backdrop),n.animation?(
// this workaround with opacity is needed for https://github.com/sweetalert2/sweetalert2/issues/2059
t.style.setProperty("opacity","0","important"),ie(t,"grid"),setTimeout((()=>{
// Animate popup right after showing it
ee(t,n.showClass.popup),
// and remove the opacity workaround
t.style.removeProperty("opacity")}),Vr)):ie(t,"grid"),ee([document.documentElement,document.body],u.shown),n.heightAuto&&n.backdrop&&!n.toast&&ee([document.documentElement,document.body],u["height-auto"])};
/**
   * @param {SweetAlertOptions} params
   * @returns {SweetAlertOptions}
   */var Jr={
/**
     * @param {string} string
     * @param {string} [validationMessage]
     * @returns {Promise<string | void>}
     */
email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),
/**
     * @param {string} string
     * @param {string} [validationMessage]
     * @returns {Promise<string | void>}
     */
url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};
/**
   * @param {SweetAlertOptions} params
   */function Xr(e){
// Use default `inputValidator` for supported input types if not provided
e.inputValidator||("email"===e.input&&(e.inputValidator=Jr.email),"url"===e.input&&(e.inputValidator=Jr.url))}
/**
   * @param {SweetAlertOptions} params
   */function Zr(e){
// Determine if the custom target element is valid
(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),e.target="body")}
/**
   * Set type, text and actions on popup
   *
   * @param {SweetAlertOptions} params
   */function ei(e){Xr(e),
// showLoaderOnConfirm && preConfirm
e.showLoaderOnConfirm&&!e.preConfirm&&d("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Zr(e),
// Replace newlines with <br> in title
"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Ce(e)}
/** @type {SweetAlert} */let ti;var ni=new WeakMap;class ri{
/**
     * @param {...any} args
     * @this {SweetAlert}
     */
constructor(){
// Prevent run in Node env
if(
/**
       * @type {Promise<SweetAlertResult>}
       */
r(this,ni,void 0),"undefined"==typeof window)return;ti=this;
// @ts-ignore
for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=Object.freeze(this.constructor.argsToParams(t));
/** @type {Readonly<SweetAlertOptions>} */this.params=a,
/** @type {boolean} */
this.isAwaitingPromise=!1,i(ni,this,this._main(ti.params))}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Xn(Object.assign({},t,e)),o.currentInstance){const e=jt.swalPromiseResolve.get(o.currentInstance),{isAwaitingPromise:t}=o.currentInstance;o.currentInstance._destroy(),t||e({isDismissed:!0}),G()&&Ft()}o.currentInstance=ti;const n=ai(e,t);ei(n),Object.freeze(n),
// clear the previous timer
o.timeout&&(o.timeout.stop(),delete o.timeout),
// clear the restore focus timeout
clearTimeout(o.restoreFocusTimeout);const r=oi(ti);return xt(ti,n),Qe.innerParams.set(ti,n),ii(ti,r,n)}
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
then(e){return n(ni,this).then(e)}finally(e){return n(ni,this).finally(e)}}
/**
   * @param {SweetAlert} instance
   * @param {DomCache} domCache
   * @param {SweetAlertOptions} innerParams
   * @returns {Promise}
   */const ii=(e,t,n)=>new Promise(((r,i)=>{
// functions to handle all closings/dismissals
/**
       * @param {DismissReason} dismiss
       */
const a=t=>{e.close({isDismissed:!0,dismiss:t})};jt.swalPromiseResolve.set(e,r),jt.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{xn(e)},t.denyButton.onclick=()=>{Cn(e)},t.cancelButton.onclick=()=>{_n(e,a)},t.closeButton.onclick=()=>{a(kt.close)},or(n,t,a),Bt(o,n,a),hn(e,n),Wr(n),si(o,n,a),ci(t,n),
// Scroll container to top on open (#1247, #1946)
setTimeout((()=>{t.container.scrollTop=0}))})),ai=(e,t)=>{const n=Lr(e),r=Object.assign({},Hn,t,n,e);// precedence is described in #2131
return r.showClass=Object.assign({},Hn.showClass,r.showClass),r.hideClass=Object.assign({},Hn.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},oi=e=>{const t={popup:I(),container:x(),actions:j(),confirmButton:D(),denyButton:L(),cancelButton:P(),loader:R(),closeButton:z(),validationMessage:O(),progressSteps:T()};return Qe.domCache.set(e,t),t},si=(e,t,n)=>{const r=F();ae(r),t.timer&&(e.timeout=new Dr((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ie(r),$(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&
// timer can be already stopped or unset at this point
de(t.timer)}))))},ci=(e,t)=>{if(!t.toast)
// TODO: this is dumb, remove `allowEnterKey` param in the next major version
return y(t.allowEnterKey)?void(li(e)||ui(e,t)||Mt(-1,1)):(v("allowEnterKey"),void hi())},li=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&le(e))return e.focus(),!0;return!1},ui=(e,t)=>t.focusDeny&&le(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&le(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!le(e.confirmButton)||(e.confirmButton.focus(),0)),hi=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};
/**
   * @param {SweetAlertOptions} userParams
   * @param {SweetAlertOptions} mixinParams
   * @returns {SweetAlertOptions}
   */
// Dear russian users visiting russian sites. Let's have fun.
if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}
// Assign instance methods from src/instanceMethods/*.js to prototype
ri.prototype.disableButtons=Rn,ri.prototype.enableButtons=Qn,ri.prototype.getInput=Dn,ri.prototype.disableInput=Nn,ri.prototype.enableInput=jn,ri.prototype.hideLoading=Tn,ri.prototype.disableLoading=Tn,ri.prototype.showValidationMessage=Fn,ri.prototype.resetValidationMessage=zn,ri.prototype.close=en,ri.prototype.closePopup=en,ri.prototype.closeModal=en,ri.prototype.closeToast=en,ri.prototype.rejectPromise=nn,ri.prototype.update=Zn,ri.prototype._destroy=tr,
// Assign static methods from src/staticMethods/*.js to constructor
Object.assign(ri,Or),
// Proxy to instance methods to constructor, for now, for backwards compatibility
Object.keys(ar).forEach((e=>{
/**
     * @param {...any} args
     * @returns {any | undefined}
     */
ri[e]=function(){return ti&&ti[e]?ti[e](...arguments):null}})),ri.DismissReason=kt,ri.version="11.15.10";const fi=ri;
// @ts-ignore
return fi.default=fi,fi}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2)
/***/},
/***/"3e2f":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* reexport */return c}));
// UNUSED EXPORTS: VueShapeView, shapeMaps, connect, disconnect, isActive, getTeleport
// EXTERNAL MODULE: ./node_modules/@antv/x6/es/index.js + 463 modules
var r=n("5728");
// CONCATENATED MODULE: ./node_modules/@antv/x6-vue-shape/es/node.js
function i(e){const t=r.g.getForeignObjectMarkup();return e?[{tagName:e,selector:"body"},t]:[t]}r.d.registerNode("vue-shape",{view:"vue-shape-view",markup:i(),attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}},propHooks(e){if(null==e.markup){const t=e.primer;if(t){e.markup=i(t);let n={};switch(t){case"circle":n={refCx:"50%",refCy:"50%",refR:"50%"};break;case"ellipse":n={refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}e.attrs=r.i.merge({},{body:Object.assign({refWidth:null,refHeight:null},n)},e.attrs||{})}}return e}},!0);
//# sourceMappingURL=node.js.map
// EXTERNAL MODULE: ./node_modules/vue-demi/lib/index.mjs
var a=n("8afd"),o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};
// CONCATENATED MODULE: ./node_modules/@antv/x6-vue-shape/es/registry.js
const s={};function c(e){const{shape:t,component:n,inherit:i}=e,a=o(e,["shape","component","inherit"]);if(!t)throw new Error("should specify shape in config");s[t]={component:n},r.d.registerNode(t,Object.assign({inherit:i||"vue-shape"},a),!0)}
//# sourceMappingURL=registry.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6-vue-shape/es/teleport.js
let l=!1;const u=Object(a.reactive)({});function h(){return l}
//# sourceMappingURL=teleport.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6-vue-shape/es/view.js
class f extends r.h{getComponentContainer(){return this.selectors&&this.selectors.foContent}confirmUpdate(e){const t=super.confirmUpdate(e);return this.handleAction(t,f.action,(()=>{this.renderVueComponent()}))}targetId(){return`${this.graph.view.cid}:${this.cell.id}`}renderVueComponent(){this.unmountVueComponent();const e=this.getComponentContainer(),t=this.cell,n=this.graph;if(e){const{component:r}=s[t.shape];if(r)if(a.isVue2){const i=a.Vue2;this.vm=new i({el:e,render:e=>e(r,{node:t,graph:n}),provide:()=>({getNode:()=>t,getGraph:()=>n})})}else a.isVue3&&(h()?function(e,t,n,r,i){l&&(u[e]=Object(a.markRaw)(Object(a.defineComponent)({render:()=>Object(a.h)(a.Teleport,{to:n},[Object(a.h)(t,{node:r,graph:i})]),provide:()=>({getNode:()=>r,getGraph:()=>i})})))}(this.targetId(),r,e,t,n):(this.vm=Object(a.createApp)({render:()=>Object(a.h)(r,{node:t,graph:n}),provide:()=>({getNode:()=>t,getGraph:()=>n})}),this.vm.mount(e)))}}unmountVueComponent(){const e=this.getComponentContainer();return this.vm&&(a.isVue2&&this.vm.$destroy(),a.isVue3&&this.vm.unmount(),this.vm=null),e&&(e.innerHTML=""),e}onMouseDown(e,t,n){const r=e.target;if("input"===r.tagName.toLowerCase()){const e=r.getAttribute("type");if(null==e||["text","password","number","email","search","tel","url"].includes(e))return}super.onMouseDown(e,t,n)}unmount(){var e;return h()&&(e=this.targetId(),l&&delete u[e]),this.unmountVueComponent(),super.unmount(),this}}f.action="vue",f.config({bootstrap:[f.action],actions:{component:f.action}}),r.h.registry.register("vue-shape-view",f,!0)},
/***/"3e8a":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"3ec6":
/***/function(e,t,n){
// 26.1.9 Reflect.has(target, propertyKey)
var r=n("f083");r(r.S,"Reflect",{has:function(e,t){return t in e}})},
/***/"3eea":
/***/function(e,t,n){var r=n("7948"),i=n("3818"),a=n("4bb5"),o=n("e2e4"),s=n("8eeb"),c=n("e0e7"),l=n("c6cf"),u=n("1bac"),h=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=o(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=i(n,7,c));for(var h=t.length;h--;)a(n,t[h]);return n}));
/** Used to compose bitmasks for cloning. */e.exports=h},
/***/"3f2c":
/***/function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({0:function(e,t,n){e.exports=n("qtAY")},"8MIm":function(e,t,n){(e.exports=n("I1BE")(void 0)).push([e.i,'.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64, ) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\F101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\F102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\F103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\F104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\F105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\F106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\F107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\F108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\F109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\F10A"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\F10B"}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\F10C"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\F10D"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\F10E"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\F10F"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\F110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\F111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\F112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\F113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\F114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\F115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\F116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\F117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\F118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\F119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\F11A"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\F11B"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\F11C"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\F11D"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\F11E"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\F11F"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\F120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\F121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\F122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-4-3,.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill,.video-js .vjs-tech{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:9em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control,.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\F10D";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\F11D";font-size:1.5em;line-height:inherit}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-control{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{flex:auto;display:block}.video-js:not(.vjs-fullscreen).vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible),.video-js .vjs-menu :focus:not(:focus-visible),.video-js :focus:not(:focus-visible){outline:none;background:none}',""])},"8eWk":function(e,t,n){var r=n("LboF"),i=n("qFNJ");"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},I1BE:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var a=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(o).concat([a]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<e.length;i++){var o=e[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},Iab2:function(e,t,n){(function(n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){},r.send()}function i(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var s=o.URL||o.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?a(c):i(c.href)?r(e,t,n):a(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){a(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),n);else if(i(e))r(e,n,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var u=o.URL||o.webkitURL,h=u.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)||(e.exports=a)}).call(this,n("yLpj"))},LboF:function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var a=e[i],c=t.base?a[0]+t.base:a[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var h=s(u),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==h?(o[h].references++,o[h].updater(f)):o.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function d(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function m(e,t){var n,r,i;if(t.singleton){var a=g++;n=p||(p=l(t)),r=f.bind(null,n,a,!1),i=f.bind(null,n,a,!0)}else n=l(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);o[i].references--}for(var a=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=a}}}},LvDl:function(e,t,n){(function(e,r){var i;(function(){var a,o="Expected a function",s="__lodash_hash_undefined__",c="__lodash_placeholder__",l=16,u=32,h=64,f=128,d=256,p=1/0,g=9007199254740991,m=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",h],["rearg",d]],A="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",C="[object Error]",_="[object Function]",I="[object GeneratorFunction]",E="[object Map]",k="[object Number]",S="[object Object]",B="[object Promise]",M="[object RegExp]",T="[object Set]",O="[object String]",D="[object Symbol]",P="[object WeakMap]",L="[object ArrayBuffer]",Q="[object DataView]",R="[object Float32Array]",j="[object Float64Array]",N="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",H="[object Uint8Array]",U="[object Uint8ClampedArray]",G="[object Uint16Array]",V="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,J=RegExp(K.source),X=RegExp($.source),Z=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ae.source),se=/^\s+/,ce=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,he=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,Ae=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ie="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Be="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="['’]",Te="[\\ud800-\\udfff]",Oe="["+Be+"]",De="["+Ie+"]",Pe="\\d+",Le="[\\u2700-\\u27bf]",Qe="["+Ee+"]",Re="[^\\ud800-\\udfff"+Be+Pe+"\\u2700-\\u27bf"+Ee+ke+"]",je="\\ud83c[\\udffb-\\udfff]",Ne="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+ke+"]",Ue="(?:"+Qe+"|"+Re+")",Ge="(?:"+He+"|"+Re+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+De+"|"+je+")?",Ye="[\\ufe0e\\ufe0f]?",Ke=Ye+qe+"(?:\\u200d(?:"+[Ne,Fe,ze].join("|")+")"+Ye+qe+")*",$e="(?:"+[Le,Fe,ze].join("|")+")"+Ke,Je="(?:"+[Ne+De+"?",De,Fe,ze,Te].join("|")+")",Xe=RegExp(Me,"g"),Ze=RegExp(De,"g"),et=RegExp(je+"(?="+je+")|"+Je+Ke,"g"),tt=RegExp([He+"?"+Qe+"+"+Ve+"(?="+[Oe,He,"$"].join("|")+")",Ge+"+"+We+"(?="+[Oe,He+Ue,"$"].join("|")+")",He+"?"+Ue+"+"+Ve,He+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,$e].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Ie+Se+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ot={};ot[R]=ot[j]=ot[N]=ot[F]=ot[z]=ot[H]=ot[U]=ot[G]=ot[V]=!0,ot[A]=ot[b]=ot[L]=ot[w]=ot[Q]=ot[x]=ot[C]=ot[_]=ot[E]=ot[k]=ot[S]=ot[M]=ot[T]=ot[O]=ot[P]=!1;var st={};st[A]=st[b]=st[L]=st[Q]=st[w]=st[x]=st[R]=st[j]=st[N]=st[F]=st[z]=st[E]=st[k]=st[S]=st[M]=st[T]=st[O]=st[D]=st[H]=st[U]=st[G]=st[V]=!0,st[C]=st[_]=st[P]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,ht="object"==typeof e&&e&&e.Object===Object&&e,ft="object"==typeof self&&self&&self.Object===Object&&self,dt=ht||ft||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&"object"==typeof r&&r&&!r.nodeType&&r,mt=gt&&gt.exports===pt,vt=mt&&ht.process,yt=function(){try{return gt&&gt.require&&gt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),At=yt&&yt.isArrayBuffer,bt=yt&&yt.isDate,wt=yt&&yt.isMap,xt=yt&&yt.isRegExp,Ct=yt&&yt.isSet,_t=yt&&yt.isTypedArray;function It(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Tt(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Qt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var jt=Vt("length");function Nt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ft(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Ut,n)}function Ht(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Gt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function Vt(e){return function(t){return null==t?a:t[e]}}function Wt(e){return function(t){return null==e?a:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Jt(e){return function(t){return e(t)}}function Xt(e,t){return Dt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),an=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(e){return"\\"+ct[e]}function sn(e){return nt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==c||(e[n]=c,a[i++]=n)}return a}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function dn(e){return sn(e)?function(e){for(var t=et.lastIndex=0;et.test(e);)++t;return t}(e):jt(e)}function pn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&ce.test(e.charAt(t)););return t}var mn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),vn=function e(t){var n,r=(t=null==t?dt:vn.defaults(dt.Object(),t,vn.pick(dt,it))).Array,i=t.Date,ce=t.Error,Ie=t.Function,Ee=t.Math,ke=t.Object,Se=t.RegExp,Be=t.String,Me=t.TypeError,Te=r.prototype,Oe=Ie.prototype,De=ke.prototype,Pe=t["__core-js_shared__"],Le=Oe.toString,Qe=De.hasOwnProperty,Re=0,je=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=De.toString,Fe=Le.call(ke),ze=dt._,He=Se("^"+Le.call(Qe).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=mt?t.Buffer:a,Ge=t.Symbol,Ve=t.Uint8Array,We=Ue?Ue.allocUnsafe:a,qe=ln(ke.getPrototypeOf,ke),Ye=ke.create,Ke=De.propertyIsEnumerable,$e=Te.splice,Je=Ge?Ge.isConcatSpreadable:a,et=Ge?Ge.iterator:a,nt=Ge?Ge.toStringTag:a,ct=function(){try{var e=da(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ht=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ft=i&&i.now!==dt.Date.now&&i.now,pt=t.setTimeout!==dt.setTimeout&&t.setTimeout,gt=Ee.ceil,vt=Ee.floor,yt=ke.getOwnPropertySymbols,jt=Ue?Ue.isBuffer:a,Wt=t.isFinite,yn=Te.join,An=ln(ke.keys,ke),bn=Ee.max,wn=Ee.min,xn=i.now,Cn=t.parseInt,_n=Ee.random,In=Te.reverse,En=da(t,"DataView"),kn=da(t,"Map"),Sn=da(t,"Promise"),Bn=da(t,"Set"),Mn=da(t,"WeakMap"),Tn=da(ke,"create"),On=Mn&&new Mn,Dn={},Pn=Fa(En),Ln=Fa(kn),Qn=Fa(Sn),Rn=Fa(Bn),jn=Fa(Mn),Nn=Ge?Ge.prototype:a,Fn=Nn?Nn.valueOf:a,zn=Nn?Nn.toString:a;function Hn(e){if(is(e)&&!qo(e)&&!(e instanceof Wn)){if(e instanceof Vn)return e;if(Qe.call(e,"__wrapped__"))return za(e)}return new Vn(e)}var Un=function(){function e(){}return function(t){if(!rs(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Gn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Xn(e,t){var n=qo(e),r=!n&&Wo(e),i=!n&&!r&&Jo(e),a=!n&&!r&&!i&&fs(e),o=n||r||i||a,s=o?Kt(e.length,Be):[],c=s.length;for(var l in e)!t&&!Qe.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ba(l,c))||s.push(l);return s}function Zn(e){var t=e.length;return t?e[$r(0,t-1)]:a}function er(e,t){return Ra(Ti(e),lr(t,0,e.length))}function tr(e){return Ra(Ti(e))}function nr(e,t,n){(n!==a&&!Uo(e[t],n)||n===a&&!(t in e))&&sr(e,t,n)}function rr(e,t,n){var r=e[t];Qe.call(e,t)&&Uo(r,n)&&(n!==a||t in e)||sr(e,t,n)}function ir(e,t){for(var n=e.length;n--;)if(Uo(e[n][0],t))return n;return-1}function ar(e,t,n,r){return pr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function or(e,t){return e&&Oi(t,Ps(t),e)}function sr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function cr(e,t){for(var n=-1,i=t.length,o=r(i),s=null==e;++n<i;)o[n]=s?a:Bs(e,t[n]);return o}function lr(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,o){var s,c=1&t,l=2&t,u=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!rs(e))return e;var h=qo(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Qe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Ti(e,s)}else{var f=ma(e),d=f==_||f==I;if(Jo(e))return Ii(e,c);if(f==S||f==A||d&&!i){if(s=l||d?{}:ya(e),!c)return l?function(e,t){return Oi(e,ga(e),t)}(e,function(e,t){return e&&Oi(t,Ls(t),e)}(s,e)):function(e,t){return Oi(e,pa(e),t)}(e,or(s,e))}else{if(!st[f])return i?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case L:return Ei(e);case w:case x:return new i(+e);case Q:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case j:case N:case F:case z:case H:case U:case G:case V:return ki(e,n);case E:return new i;case k:case O:return new i(e);case M:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case D:return r=e,Fn?ke(Fn.call(r)):{}}}(e,f,c)}}o||(o=new Jn);var p=o.get(e);if(p)return p;o.set(e,s),ls(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,o))})):as(e)&&e.forEach((function(r,i){s.set(i,ur(r,t,n,i,e,o))}));var g=h?a:(u?l?oa:aa:l?Ls:Ps)(e);return kt(g||e,(function(r,i){g&&(r=e[i=r]),rr(s,i,ur(r,t,n,i,e,o))})),s}function hr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Me(o);return Da((function(){e.apply(a,n)}),t)}function dr(e,t,n,r){var i=-1,a=Tt,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Dt(t,Jt(n))),r?(a=Ot,o=!1):t.length>=200&&(a=Zt,o=!1,t=new $n(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var f=l;f--;)if(t[f]===h)continue e;c.push(u)}else a(t,h,r)||c.push(u)}return c}Hn.templateSettings={escape:Z,evaluate:ee,interpolate:te,variable:"",imports:{_:Hn}},Hn.prototype=Gn.prototype,Hn.prototype.constructor=Hn,Vn.prototype=Un(Gn.prototype),Vn.prototype.constructor=Vn,Wn.prototype=Un(Gn.prototype),Wn.prototype.constructor=Wn,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===s?a:n}return Qe.call(t,e)?t[e]:a},qn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==a:Qe.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===a?s:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=ir(t,e);return!(n<0||(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,0))},Yn.prototype.get=function(e){var t=this.__data__,n=ir(t,e);return n<0?a:t[n][1]},Yn.prototype.has=function(e){return ir(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(kn||Yn),string:new qn}},Kn.prototype.delete=function(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ha(this,e).get(e)},Kn.prototype.has=function(e){return ha(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,s),this},$n.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var pr=Li(xr),gr=Li(Cr,!0);function mr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(c===a?s==s&&!hs(s):n(s,c)))var c=s,l=o}return l}function yr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ar(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Aa),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?Ar(s,t-1,n,r,i):Pt(i,s):r||(i[i.length]=s)}return i}var br=Qi(),wr=Qi(!0);function xr(e,t){return e&&br(e,t,Ps)}function Cr(e,t){return e&&wr(e,t,Ps)}function _r(e,t){return Mt(t,(function(t){return es(e[t])}))}function Ir(e,t){for(var n=0,r=(t=wi(t,e)).length;null!=e&&n<r;)e=e[Na(t[n++])];return n&&n==r?e:a}function Er(e,t,n){var r=t(e);return qo(e)?r:Pt(r,n(e))}function kr(e){return null==e?e===a?"[object Undefined]":"[object Null]":nt&&nt in ke(e)?function(e){var t=Qe.call(e,nt),n=e[nt];try{e[nt]=a;var r=!0}catch(e){}var i=Ne.call(e);return r&&(t?e[nt]=n:delete e[nt]),i}(e):function(e){return Ne.call(e)}(e)}function Sr(e,t){return e>t}function Br(e,t){return null!=e&&Qe.call(e,t)}function Mr(e,t){return null!=e&&t in ke(e)}function Tr(e,t,n){for(var i=n?Ot:Tt,o=e[0].length,s=e.length,c=s,l=r(s),u=1/0,h=[];c--;){var f=e[c];c&&t&&(f=Dt(f,Jt(t))),u=wn(f.length,u),l[c]=!n&&(t||o>=120&&f.length>=120)?new $n(c&&f):a}f=e[0];var d=-1,p=l[0];e:for(;++d<o&&h.length<u;){var g=f[d],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?Zt(p,m):i(h,m,n))){for(c=s;--c;){var v=l[c];if(!(v?Zt(v,m):i(e[c],m,n)))continue e}p&&p.push(m),h.push(g)}}return h}function Or(e,t,n){var r=null==(e=Ba(e,t=wi(t,e)))?e:e[Na(Xa(t))];return null==r?a:It(r,e,n)}function Dr(e){return is(e)&&kr(e)==A}function Pr(e,t,n,r,i){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var s=qo(e),c=qo(t),l=s?b:ma(e),u=c?b:ma(t),h=(l=l==A?S:l)==S,f=(u=u==A?S:u)==S,d=l==u;if(d&&Jo(e)){if(!Jo(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Jn),s||fs(e)?ra(e,t,n,r,i,o):function(e,t,n,r,i,a,o){switch(n){case Q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case w:case x:case k:return Uo(+e,+t);case C:return e.name==t.name&&e.message==t.message;case M:case O:return e==t+"";case E:var s=cn;case T:var c=1&r;if(s||(s=hn),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=ra(s(e),s(t),r,i,a,o);return o.delete(e),u;case D:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=h&&Qe.call(e,"__wrapped__"),g=f&&Qe.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return o||(o=new Jn),i(m,v,n,r,o)}}return!!d&&(o||(o=new Jn),function(e,t,n,r,i,o){var s=1&n,c=aa(e),l=c.length;if(l!=aa(t).length&&!s)return!1;for(var u=l;u--;){var h=c[u];if(!(s?h in t:Qe.call(t,h)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){var m=e[h=c[u]],v=t[h];if(r)var y=s?r(v,m,h,t,e,o):r(m,v,h,e,t,o);if(!(y===a?m===v||i(m,v,n,r,o):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var A=e.constructor,b=t.constructor;A==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}(e,t,n,r,Pr,i))}function Lr(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=ke(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){var l=(c=n[i])[0],u=e[l],h=c[1];if(s&&c[2]){if(u===a&&!(l in e))return!1}else{var f=new Jn;if(r)var d=r(u,h,l,e,t,f);if(!(d===a?Pr(h,u,3,r,f):d))return!1}}return!0}function Qr(e){return!(!rs(e)||(t=e,je&&je in t))&&(es(e)?He:Ae).test(Fa(e));var t}function Rr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?qo(e)?Ur(e[0],e[1]):Hr(e):gc(e)}function jr(e){if(!Ia(e))return An(e);var t=[];for(var n in ke(e))Qe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Ia(e),n=[];for(var r in e)("constructor"!=r||!t&&Qe.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function zr(e,t){var n=-1,i=Ko(e)?r(e.length):[];return pr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function Hr(e){var t=fa(e);return 1==t.length&&t[0][2]?ka(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Ur(e,t){return xa(e)&&Ea(t)?ka(Na(e),t):function(n){var r=Bs(n,e);return r===a&&r===t?Ms(n,e):Pr(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&br(t,(function(o,s){if(i||(i=new Jn),rs(o))!function(e,t,n,r,i,o,s){var c=Ta(e,n),l=Ta(t,n),u=s.get(l);if(u)nr(e,n,u);else{var h=o?o(c,l,n+"",e,t,s):a,f=h===a;if(f){var d=qo(l),p=!d&&Jo(l),g=!d&&!p&&fs(l);h=l,d||p||g?qo(c)?h=c:$o(c)?h=Ti(c):p?(f=!1,h=Ii(l,!0)):g?(f=!1,h=ki(l,!0)):h=[]:ss(l)||Wo(l)?(h=c,Wo(c)?h=bs(c):rs(c)&&!es(c)||(h=ya(l))):f=!1}f&&(s.set(l,h),i(h,l,r,o,s),s.delete(l)),nr(e,n,h)}}(e,t,s,n,Gr,r,i);else{var c=r?r(Ta(e,s),o,s+"",e,t,i):a;c===a&&(c=o),nr(e,s,c)}}),Ls)}function Vr(e,t){var n=e.length;if(n)return ba(t+=t<0?n:0,n)?e[t]:a}function Wr(e,t,n){t=t.length?Dt(t,(function(e){return qo(e)?function(t){return Ir(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;return t=Dt(t,Jt(ua())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(zr(e,(function(e,n,i){return{criteria:Dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Si(i[r],a[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ir(e,o);n(s,o)&&ti(a,wi(o,e),s)}return a}function Yr(e,t,n,r){var i=r?Ht:zt,a=-1,o=t.length,s=e;for(e===t&&(t=Ti(t)),n&&(s=Dt(e,Jt(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&$e.call(s,c,1),$e.call(e,c,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ba(i)?$e.call(e,i,1):di(e,i)}}return e}function $r(e,t){return e+vt(_n()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>g)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Pa(Sa(e,t,oc),e+"")}function Zr(e){return Zn(Us(e))}function ei(e,t){var n=Us(e);return Ra(n,lr(t,0,n.length))}function ti(e,t,n,r){if(!rs(e))return e;for(var i=-1,o=(t=wi(t,e)).length,s=o-1,c=e;null!=c&&++i<o;){var l=Na(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var h=c[l];(u=r?r(h,l,c):a)===a&&(u=rs(h)?h:ba(t[i+1])?[]:{})}rr(c,l,u),c=c[l]}return e}var ni=On?function(e,t){return On.set(e,t),e}:oc,ri=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rc(t),writable:!0})}:oc;function ii(e){return Ra(Us(e))}function ai(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}function oi(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!hs(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ci(e,t,oc,n)}function ci(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,c=null===t,l=hs(t),u=t===a;i<o;){var h=vt((i+o)/2),f=n(e[h]),d=f!==a,p=null===f,g=f==f,m=hs(f);if(s)var v=r||g;else v=u?g&&(r||d):c?g&&d&&(r||!p):l?g&&d&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?i=h+1:o=h}return wn(o,4294967294)}function li(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Uo(s,c)){var c=s;a[i++]=0===o?0:o}}return a}function ui(e){return"number"==typeof e?e:hs(e)?m:+e}function hi(e){if("string"==typeof e)return e;if(qo(e))return Dt(e,hi)+"";if(hs(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fi(e,t,n){var r=-1,i=Tt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Ot;else if(a>=200){var l=t?null:Ji(e);if(l)return hn(l);o=!1,i=Zt,c=new $n}else c=t?[]:s;e:for(;++r<a;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),s.push(u)}else i(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s}function di(e,t){return null==(e=Ba(e,t=wi(t,e)))||delete e[Na(Xa(t))]}function pi(e,t,n,r){return ti(e,t,n(Ir(e,t)),r)}function gi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ai(e,r?0:a,r?a+1:i):ai(e,r?a+1:0,r?i:a)}function mi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function vi(e,t,n){var i=e.length;if(i<2)return i?fi(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],c=-1;++c<i;)c!=a&&(o[a]=dr(o[a]||s,e[c],t,n));return fi(Ar(o,1),t,n)}function yi(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var c=r<o?t[r]:a;n(s,e[r],c)}return s}function Ai(e){return $o(e)?e:[]}function bi(e){return"function"==typeof e?e:oc}function wi(e,t){return qo(e)?e:xa(e,t)?[e]:ja(ws(e))}var xi=Xr;function Ci(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:ai(e,t,n)}var _i=ht||function(e){return dt.clearTimeout(e)};function Ii(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function ki(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=hs(e),s=t!==a,c=null===t,l=t==t,u=hs(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||c&&n&&i||!s&&i||!l)return-1}return 0}function Bi(e,t,n,i){for(var a=-1,o=e.length,s=n.length,c=-1,l=t.length,u=bn(o-s,0),h=r(l+u),f=!i;++c<l;)h[c]=t[c];for(;++a<s;)(f||a<o)&&(h[n[a]]=e[a]);for(;u--;)h[c++]=e[a++];return h}function Mi(e,t,n,i){for(var a=-1,o=e.length,s=-1,c=n.length,l=-1,u=t.length,h=bn(o-c,0),f=r(h+u),d=!i;++a<h;)f[a]=e[a];for(var p=a;++l<u;)f[p+l]=t[l];for(;++s<c;)(d||a<o)&&(f[p+n[s]]=e[a++]);return f}function Ti(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Oi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var c=t[o],l=r?r(n[c],e[c],c,n,e):a;l===a&&(l=e[c]),i?sr(n,c,l):rr(n,c,l)}return n}function Di(e,t){return function(n,r){var i=qo(n)?Et:ar,a=t?t():{};return i(n,e,ua(r,2),a)}}function Pi(e){return Xr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&wa(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++r<i;){var c=n[r];c&&e(t,c,r,o)}return t}))}function Li(e,t){return function(n,r){if(null==n)return n;if(!Ko(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=ke(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Qi(e){return function(t,n,r){for(var i=-1,a=ke(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}function Ri(e){return function(t){var n=sn(t=ws(t))?pn(t):a,r=n?n[0]:t.charAt(0),i=n?Ci(n,1).join(""):t.slice(1);return r[e]()+i}}function ji(e){return function(t){return Lt(ec(Ws(t).replace(Xe,"")),e,"")}}function Ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Un(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function Fi(e){return function(t,n,r){var i=ke(t);if(!Ko(t)){var o=ua(n,3);t=Ps(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function zi(e){return ia((function(t){var n=t.length,r=n,i=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Me(o);if(i&&!c&&"wrapper"==ca(s))var c=new Vn([],!0)}for(r=c?r:n;++r<n;){var l=ca(s=t[r]),u="wrapper"==l?sa(s):a;c=u&&Ca(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ca(u[0])].apply(c,u[3]):1==s.length&&Ca(s)?c[l]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&qo(r))return c.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function Hi(e,t,n,i,o,s,c,l,u,h){var d=t&f,p=1&t,g=2&t,m=24&t,v=512&t,y=g?a:Ni(e);return function a(){for(var f=arguments.length,A=r(f),b=f;b--;)A[b]=arguments[b];if(m)var w=la(a),x=nn(A,w);if(i&&(A=Bi(A,i,o,m)),s&&(A=Mi(A,s,c,m)),f-=x,m&&f<h){var C=un(A,w);return Ki(e,t,Hi,a.placeholder,n,A,C,l,u,h-f)}var _=p?n:this,I=g?_[e]:e;return f=A.length,l?A=Ma(A,l):v&&f>1&&A.reverse(),d&&u<f&&(A.length=u),this&&this!==dt&&this instanceof a&&(I=y||Ni(I)),I.apply(_,A)}}function Ui(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Gi(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=hi(n),r=hi(r)):(n=ui(n),r=ui(r)),i=e(n,r)}return i}}function Vi(e){return ia((function(t){return t=Dt(t,Jt(ua())),Xr((function(n){var r=this;return e(t,(function(e){return It(e,r,n)}))}))}))}function Wi(e,t){var n=(t=t===a?" ":hi(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,gt(e/dn(t)));return sn(t)?Ci(pn(r),0,e).join(""):r.slice(0,e)}function qi(e){return function(t,n,i){return i&&"number"!=typeof i&&wa(t,n,i)&&(n=i=a),t=ms(t),n===a?(n=t,t=0):n=ms(n),function(e,t,n,i){for(var a=-1,o=bn(gt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,i=i===a?t<n?1:-1:ms(i),e)}}function Yi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=As(t),n=As(n)),e(t,n)}}function Ki(e,t,n,r,i,o,s,c,l,f){var d=8&t;t|=d?u:h,4&(t&=~(d?h:u))||(t&=-4);var p=[e,t,i,d?o:a,d?s:a,d?a:o,d?a:s,c,l,f],g=n.apply(a,p);return Ca(e)&&Oa(g,p),g.placeholder=r,La(g,e,t)}function $i(e){var t=Ee[e];return function(e,n){if(e=As(e),(n=null==n?0:wn(vs(n),292))&&Wt(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ji=Bn&&1/hn(new Bn([,-0]))[1]==p?function(e){return new Bn(e)}:hc;function Xi(e){return function(t){var n=ma(t);return n==E?cn(t):n==T?fn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,n,i,s,p,g,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(o);var y=i?i.length:0;if(y||(t&=-97,i=s=a),g=g===a?g:bn(vs(g),0),m=m===a?m:vs(m),y-=s?s.length:0,t&h){var A=i,b=s;i=s=a}var w=v?a:sa(e),x=[e,t,n,i,s,A,b,p,g,m];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?Bi(l,s,t[4]):s,e[4]=l?un(e[3],c):t[4]}(s=t[5])&&(l=e[5],e[5]=l?Mi(l,s,t[6]):s,e[6]=l?un(e[5],c):t[6]),(s=t[7])&&(e[7]=s),r&f&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(x,w),e=x[0],t=x[1],n=x[2],i=x[3],s=x[4],!(m=x[9]=x[9]===a?v?0:e.length:bn(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,n){var i=Ni(e);return function o(){for(var s=arguments.length,c=r(s),l=s,u=la(o);l--;)c[l]=arguments[l];var h=s<3&&c[0]!==u&&c[s-1]!==u?[]:un(c,u);return(s-=h.length)<n?Ki(e,t,Hi,o.placeholder,a,c,h,a,a,n-s):It(this&&this!==dt&&this instanceof o?i:e,this,c)}}(e,t,m):t!=u&&33!=t||s.length?Hi.apply(a,x):function(e,t,n,i){var a=1&t,o=Ni(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,h=r(u+c),f=this&&this!==dt&&this instanceof t?o:e;++l<u;)h[l]=i[l];for(;c--;)h[l++]=arguments[++s];return It(f,a?n:this,h)}}(e,t,n,i);else var C=function(e,t,n){var r=1&t,i=Ni(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return La((w?ni:Oa)(C,x),e,t)}function ea(e,t,n,r){return e===a||Uo(e,De[n])&&!Qe.call(r,n)?t:e}function ta(e,t,n,r,i,o){return rs(e)&&rs(t)&&(o.set(t,e),Gr(e,t,a,ta,o),o.delete(t)),e}function na(e){return ss(e)?a:e}function ra(e,t,n,r,i,o){var s=1&n,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var f=-1,d=!0,p=2&n?new $n:a;for(o.set(e,t),o.set(t,e);++f<c;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,o):r(g,m,f,e,t,o);if(v!==a){if(v)continue;d=!1;break}if(p){if(!Rt(t,(function(e,t){if(!Zt(p,t)&&(g===e||i(g,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(g!==m&&!i(g,m,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function ia(e){return Pa(Sa(e,a,qa),e+"")}function aa(e){return Er(e,Ps,pa)}function oa(e){return Er(e,Ls,ga)}var sa=On?function(e){return On.get(e)}:hc;function ca(e){for(var t=e.name+"",n=Dn[t],r=Qe.call(Dn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function la(e){return(Qe.call(Hn,"placeholder")?Hn:e).placeholder}function ua(){var e=Hn.iteratee||sc;return e=e===sc?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ha(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function fa(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ea(i)]}return t}function da(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Qr(n)?n:a}var pa=yt?function(e){return null==e?[]:(e=ke(e),Mt(yt(e),(function(t){return Ke.call(e,t)})))}:yc,ga=yt?function(e){for(var t=[];e;)Pt(t,pa(e)),e=qe(e);return t}:yc,ma=kr;function va(e,t,n){for(var r=-1,i=(t=wi(t,e)).length,a=!1;++r<i;){var o=Na(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ns(i)&&ba(o,i)&&(qo(e)||Wo(e))}function ya(e){return"function"!=typeof e.constructor||Ia(e)?{}:Un(qe(e))}function Aa(e){return qo(e)||Wo(e)||!!(Je&&e&&e[Je])}function ba(e,t){var n=typeof e;return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wa(e,t,n){if(!rs(n))return!1;var r=typeof t;return!!("number"==r?Ko(n)&&ba(t,n.length):"string"==r&&t in n)&&Uo(n[t],e)}function xa(e,t){if(qo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hs(e))||re.test(e)||!ne.test(e)||null!=t&&e in ke(t)}function Ca(e){var t=ca(e),n=Hn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=sa(n);return!!r&&e===r[0]}(En&&ma(new En(new ArrayBuffer(1)))!=Q||kn&&ma(new kn)!=E||Sn&&ma(Sn.resolve())!=B||Bn&&ma(new Bn)!=T||Mn&&ma(new Mn)!=P)&&(ma=function(e){var t=kr(e),n=t==S?e.constructor:a,r=n?Fa(n):"";if(r)switch(r){case Pn:return Q;case Ln:return E;case Qn:return B;case Rn:return T;case jn:return P}return t});var _a=Pe?es:Ac;function Ia(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Ea(e){return e==e&&!rs(e)}function ka(e,t){return function(n){return null!=n&&n[e]===t&&(t!==a||e in ke(n))}}function Sa(e,t,n){return t=bn(t===a?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=bn(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var c=r(t+1);++a<t;)c[a]=i[a];return c[t]=n(s),It(e,this,c)}}function Ba(e,t){return t.length<2?e:Ir(e,ai(t,0,-1))}function Ma(e,t){for(var n=e.length,r=wn(t.length,n),i=Ti(e);r--;){var o=t[r];e[r]=ba(o,n)?i[o]:a}return e}function Ta(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oa=Qa(ni),Da=pt||function(e,t){return dt.setTimeout(e,t)},Pa=Qa(ri);function La(e,t,n){var r=t+"";return Pa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(y,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(he):[]}(r),n)))}function Qa(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ra(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=$r(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var ja=function(e){var t=Ro(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function Na(e){if("string"==typeof e||hs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function za(e){if(e instanceof Wn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ha=Xr((function(e,t){return $o(e)?dr(e,Ar(t,1,$o,!0)):[]})),Ua=Xr((function(e,t){var n=Xa(t);return $o(n)&&(n=a),$o(e)?dr(e,Ar(t,1,$o,!0),ua(n,2)):[]})),Ga=Xr((function(e,t){var n=Xa(t);return $o(n)&&(n=a),$o(e)?dr(e,Ar(t,1,$o,!0),a,n):[]}));function Va(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Ft(e,ua(t,3),i)}function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=vs(n),i=n<0?bn(r+i,0):wn(i,r-1)),Ft(e,ua(t,3),i,!0)}function qa(e){return null!=e&&e.length?Ar(e,1):[]}function Ya(e){return e&&e.length?e[0]:a}var Ka=Xr((function(e){var t=Dt(e,Ai);return t.length&&t[0]===e[0]?Tr(t):[]})),$a=Xr((function(e){var t=Xa(e),n=Dt(e,Ai);return t===Xa(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Tr(n,ua(t,2)):[]})),Ja=Xr((function(e){var t=Xa(e),n=Dt(e,Ai);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,a,t):[]}));function Xa(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Za=Xr(eo);function eo(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var to=ia((function(e,t){var n=null==e?0:e.length,r=cr(e,t);return Kr(e,Dt(t,(function(e){return ba(e,n)?+e:e})).sort(Si)),r}));function no(e){return null==e?e:In.call(e)}var ro=Xr((function(e){return fi(Ar(e,1,$o,!0))})),io=Xr((function(e){var t=Xa(e);return $o(t)&&(t=a),fi(Ar(e,1,$o,!0),ua(t,2))})),ao=Xr((function(e){var t=Xa(e);return t="function"==typeof t?t:a,fi(Ar(e,1,$o,!0),a,t)}));function oo(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if($o(e))return t=bn(e.length,t),!0})),Kt(t,(function(t){return Dt(e,Vt(t))}))}function so(e,t){if(!e||!e.length)return[];var n=oo(e);return null==t?n:Dt(n,(function(e){return It(t,a,e)}))}var co=Xr((function(e,t){return $o(e)?dr(e,t):[]})),lo=Xr((function(e){return vi(Mt(e,$o))})),uo=Xr((function(e){var t=Xa(e);return $o(t)&&(t=a),vi(Mt(e,$o),ua(t,2))})),ho=Xr((function(e){var t=Xa(e);return t="function"==typeof t?t:a,vi(Mt(e,$o),a,t)})),fo=Xr(oo),po=Xr((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,so(e,n)}));function go(e){var t=Hn(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var vo=ia((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&ba(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:mo,args:[i],thisArg:a}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)})),yo=Di((function(e,t,n){Qe.call(e,n)?++e[n]:sr(e,n,1)})),Ao=Fi(Va),bo=Fi(Wa);function wo(e,t){return(qo(e)?kt:pr)(e,ua(t,3))}function xo(e,t){return(qo(e)?St:gr)(e,ua(t,3))}var Co=Di((function(e,t,n){Qe.call(e,n)?e[n].push(t):sr(e,n,[t])})),_o=Xr((function(e,t,n){var i=-1,a="function"==typeof t,o=Ko(e)?r(e.length):[];return pr(e,(function(e){o[++i]=a?It(t,e,n):Or(e,t,n)})),o})),Io=Di((function(e,t,n){sr(e,n,t)}));function Eo(e,t){return(qo(e)?Dt:zr)(e,ua(t,3))}var ko=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),So=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wa(e,t[0],t[1])?t=[]:n>2&&wa(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,Ar(t,1),[])})),Bo=ft||function(){return dt.Date.now()};function Mo(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Zi(e,f,a,a,a,a,t)}function To(e,t){var n;if("function"!=typeof t)throw new Me(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Oo=Xr((function(e,t,n){var r=1;if(n.length){var i=un(n,la(Oo));r|=u}return Zi(e,r,t,n,i)})),Do=Xr((function(e,t,n){var r=3;if(n.length){var i=un(n,la(Do));r|=u}return Zi(t,r,e,n,i)}));function Po(e,t,n){var r,i,s,c,l,u,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Me(o);function g(t){var n=r,o=i;return r=i=a,h=t,c=e.apply(o,n)}function m(e){return h=e,l=Da(y,t),f?g(e):c}function v(e){var n=e-u;return u===a||n>=t||n<0||d&&e-h>=s}function y(){var e=Bo();if(v(e))return A(e);l=Da(y,function(e){var n=t-(e-u);return d?wn(n,s-(e-h)):n}(e))}function A(e){return l=a,p&&r?g(e):(r=i=a,c)}function b(){var e=Bo(),n=v(e);if(r=arguments,i=this,u=e,n){if(l===a)return m(u);if(d)return _i(l),l=Da(y,t),g(u)}return l===a&&(l=Da(y,t)),c}return t=As(t)||0,rs(n)&&(f=!!n.leading,s=(d="maxWait"in n)?bn(As(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){l!==a&&_i(l),h=0,r=u=i=l=a},b.flush=function(){return l===a?c:A(Bo())},b}var Lo=Xr((function(e,t){return fr(e,1,t)})),Qo=Xr((function(e,t,n){return fr(e,As(t)||0,n)}));function Ro(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ro.Cache||Kn),n}function jo(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ro.Cache=Kn;var No=xi((function(e,t){var n=(t=1==t.length&&qo(t[0])?Dt(t[0],Jt(ua())):Dt(Ar(t,1),Jt(ua()))).length;return Xr((function(r){for(var i=-1,a=wn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return It(e,this,r)}))})),Fo=Xr((function(e,t){var n=un(t,la(Fo));return Zi(e,u,a,t,n)})),zo=Xr((function(e,t){var n=un(t,la(zo));return Zi(e,h,a,t,n)})),Ho=ia((function(e,t){return Zi(e,d,a,a,a,t)}));function Uo(e,t){return e===t||e!=e&&t!=t}var Go=Yi(Sr),Vo=Yi((function(e,t){return e>=t})),Wo=Dr(function(){return arguments}())?Dr:function(e){return is(e)&&Qe.call(e,"callee")&&!Ke.call(e,"callee")},qo=r.isArray,Yo=At?Jt(At):function(e){return is(e)&&kr(e)==L};function Ko(e){return null!=e&&ns(e.length)&&!es(e)}function $o(e){return is(e)&&Ko(e)}var Jo=jt||Ac,Xo=bt?Jt(bt):function(e){return is(e)&&kr(e)==x};function Zo(e){if(!is(e))return!1;var t=kr(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=kr(e);return t==_||t==I||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var as=wt?Jt(wt):function(e){return is(e)&&ma(e)==E};function os(e){return"number"==typeof e||is(e)&&kr(e)==k}function ss(e){if(!is(e)||kr(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=Qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Fe}var cs=xt?Jt(xt):function(e){return is(e)&&kr(e)==M},ls=Ct?Jt(Ct):function(e){return is(e)&&ma(e)==T};function us(e){return"string"==typeof e||!qo(e)&&is(e)&&kr(e)==O}function hs(e){return"symbol"==typeof e||is(e)&&kr(e)==D}var fs=_t?Jt(_t):function(e){return is(e)&&ns(e.length)&&!!ot[kr(e)]},ds=Yi(Fr),ps=Yi((function(e,t){return e<=t}));function gs(e){if(!e)return[];if(Ko(e))return us(e)?pn(e):Ti(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=ma(e);return(t==E?cn:t==T?hn:Us)(e)}function ms(e){return e?(e=As(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=ms(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?lr(vs(e),0,v):0}function As(e){if("number"==typeof e)return e;if(hs(e))return m;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=ye.test(e);return n||be.test(e)?ut(e.slice(2),n?2:8):ve.test(e)?m:+e}function bs(e){return Oi(e,Ls(e))}function ws(e){return null==e?"":hi(e)}var xs=Pi((function(e,t){if(Ia(t)||Ko(t))Oi(t,Ps(t),e);else for(var n in t)Qe.call(t,n)&&rr(e,n,t[n])})),Cs=Pi((function(e,t){Oi(t,Ls(t),e)})),_s=Pi((function(e,t,n,r){Oi(t,Ls(t),e,r)})),Is=Pi((function(e,t,n,r){Oi(t,Ps(t),e,r)})),Es=ia(cr),ks=Xr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&wa(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=Ls(o),c=-1,l=s.length;++c<l;){var u=s[c],h=e[u];(h===a||Uo(h,De[u])&&!Qe.call(e,u))&&(e[u]=o[u])}return e})),Ss=Xr((function(e){return e.push(a,ta),It(Rs,a,e)}));function Bs(e,t,n){var r=null==e?a:Ir(e,t);return r===a?n:r}function Ms(e,t){return null!=e&&va(e,t,Mr)}var Ts=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),rc(oc)),Os=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Qe.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Ds=Xr(Or);function Ps(e){return Ko(e)?Xn(e):jr(e)}function Ls(e){return Ko(e)?Xn(e,!0):Nr(e)}var Qs=Pi((function(e,t,n){Gr(e,t,n)})),Rs=Pi((function(e,t,n,r){Gr(e,t,n,r)})),js=ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=wi(t,e),r||(r=t.length>1),t})),Oi(e,oa(e),n),r&&(n=ur(n,7,na));for(var i=t.length;i--;)di(n,t[i]);return n})),Ns=ia((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Ms(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Dt(oa(e),(function(e){return[e]}));return t=ua(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Xi(Ps),Hs=Xi(Ls);function Us(e){return null==e?[]:Xt(e,Ps(e))}var Gs=ji((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Zs(ws(e).toLowerCase())}function Ws(e){return(e=ws(e))&&e.replace(xe,rn).replace(Ze,"")}var qs=ji((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=ji((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Ri("toLowerCase"),$s=ji((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Js=ji((function(e,t,n){return e+(n?" ":"")+Zs(t)})),Xs=ji((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Ri("toUpperCase");function ec(e,t,n){return e=ws(e),(t=n?a:t)===a?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var tc=Xr((function(e,t){try{return It(e,a,t)}catch(e){return Zo(e)?e:new ce(e)}})),nc=ia((function(e,t){return kt(t,(function(t){t=Na(t),sr(e,t,Oo(e[t],e))})),e}));function rc(e){return function(){return e}}var ic=zi(),ac=zi(!0);function oc(e){return e}function sc(e){return Rr("function"==typeof e?e:ur(e,1))}var cc=Xr((function(e,t){return function(n){return Or(n,e,t)}})),lc=Xr((function(e,t){return function(n){return Or(e,n,t)}}));function uc(e,t,n){var r=Ps(t),i=_r(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=_r(t,Ps(t)));var a=!(rs(n)&&"chain"in n&&!n.chain),o=es(e);return kt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function hc(){}var fc=Vi(Dt),dc=Vi(Bt),pc=Vi(Rt);function gc(e){return xa(e)?Vt(Na(e)):function(e){return function(t){return Ir(t,e)}}(e)}var mc=qi(),vc=qi(!0);function yc(){return[]}function Ac(){return!1}var bc,wc=Gi((function(e,t){return e+t}),0),xc=$i("ceil"),Cc=Gi((function(e,t){return e/t}),1),_c=$i("floor"),Ic=Gi((function(e,t){return e*t}),1),Ec=$i("round"),kc=Gi((function(e,t){return e-t}),0);return Hn.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=Mo,Hn.assign=xs,Hn.assignIn=Cs,Hn.assignInWith=_s,Hn.assignWith=Is,Hn.at=Es,Hn.before=To,Hn.bind=Oo,Hn.bindAll=nc,Hn.bindKey=Do,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Hn.chain=go,Hn.chunk=function(e,t,n){t=(n?wa(e,t,n):t===a)?1:bn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,c=r(gt(i/t));o<i;)c[s++]=ai(e,o,o+=t);return c},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Pt(qo(n)?Ti(n):[n],Ar(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Me(o);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var i=e[r];if(It(i[0],this,n))return It(i[1],this,n)}}))},Hn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return hr(n,e,t)}}(ur(e,1))},Hn.constant=rc,Hn.countBy=yo,Hn.create=function(e,t){var n=Un(e);return null==t?n:or(n,t)},Hn.curry=function e(t,n,r){var i=Zi(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Hn.curryRight=function e(t,n,r){var i=Zi(t,l,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Hn.debounce=Po,Hn.defaults=ks,Hn.defaultsDeep=Ss,Hn.defer=Lo,Hn.delay=Qo,Hn.difference=Ha,Hn.differenceBy=Ua,Hn.differenceWith=Ga,Hn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ai(e,(t=n||t===a?1:vs(t))<0?0:t,r):[]},Hn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ai(e,0,(t=r-(t=n||t===a?1:vs(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?gi(e,ua(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?gi(e,ua(t,3),!0):[]},Hn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wa(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vs(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:vs(r))<0&&(r+=i),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Hn.filter=function(e,t){return(qo(e)?Mt:yr)(e,ua(t,3))},Hn.flatMap=function(e,t){return Ar(Eo(e,t),1)},Hn.flatMapDeep=function(e,t){return Ar(Eo(e,t),p)},Hn.flatMapDepth=function(e,t,n){return n=n===a?1:vs(n),Ar(Eo(e,t),n)},Hn.flatten=qa,Hn.flattenDeep=function(e){return null!=e&&e.length?Ar(e,p):[]},Hn.flattenDepth=function(e,t){return null!=e&&e.length?Ar(e,t=t===a?1:vs(t)):[]},Hn.flip=function(e){return Zi(e,512)},Hn.flow=ic,Hn.flowRight=ac,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Hn.functions=function(e){return null==e?[]:_r(e,Ps(e))},Hn.functionsIn=function(e){return null==e?[]:_r(e,Ls(e))},Hn.groupBy=Co,Hn.initial=function(e){return null!=e&&e.length?ai(e,0,-1):[]},Hn.intersection=Ka,Hn.intersectionBy=$a,Hn.intersectionWith=Ja,Hn.invert=Ts,Hn.invertBy=Os,Hn.invokeMap=_o,Hn.iteratee=sc,Hn.keyBy=Io,Hn.keys=Ps,Hn.keysIn=Ls,Hn.map=Eo,Hn.mapKeys=function(e,t){var n={};return t=ua(t,3),xr(e,(function(e,r,i){sr(n,t(e,r,i),e)})),n},Hn.mapValues=function(e,t){var n={};return t=ua(t,3),xr(e,(function(e,r,i){sr(n,r,t(e,r,i))})),n},Hn.matches=function(e){return Hr(ur(e,1))},Hn.matchesProperty=function(e,t){return Ur(e,ur(t,1))},Hn.memoize=Ro,Hn.merge=Qs,Hn.mergeWith=Rs,Hn.method=cc,Hn.methodOf=lc,Hn.mixin=uc,Hn.negate=jo,Hn.nthArg=function(e){return e=vs(e),Xr((function(t){return Vr(t,e)}))},Hn.omit=js,Hn.omitBy=function(e,t){return Fs(e,jo(ua(t)))},Hn.once=function(e){return To(2,e)},Hn.orderBy=function(e,t,n,r){return null==e?[]:(qo(t)||(t=null==t?[]:[t]),qo(n=r?a:n)||(n=null==n?[]:[n]),Wr(e,t,n))},Hn.over=fc,Hn.overArgs=No,Hn.overEvery=dc,Hn.overSome=pc,Hn.partial=Fo,Hn.partialRight=zo,Hn.partition=ko,Hn.pick=Ns,Hn.pickBy=Fs,Hn.property=gc,Hn.propertyOf=function(e){return function(t){return null==e?a:Ir(e,t)}},Hn.pull=Za,Hn.pullAll=eo,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ua(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,a,n):e},Hn.pullAt=to,Hn.range=mc,Hn.rangeRight=vc,Hn.rearg=Ho,Hn.reject=function(e,t){return(qo(e)?Mt:yr)(e,jo(ua(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ua(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Kr(e,i),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Me(o);return Xr(e,t=t===a?t:vs(t))},Hn.reverse=no,Hn.sampleSize=function(e,t,n){return t=(n?wa(e,t,n):t===a)?1:vs(t),(qo(e)?er:ei)(e,t)},Hn.set=function(e,t,n){return null==e?e:ti(e,t,n)},Hn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ti(e,t,n,r)},Hn.shuffle=function(e){return(qo(e)?tr:ii)(e)},Hn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wa(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===a?r:vs(n)),ai(e,t,n)):[]},Hn.sortBy=So,Hn.sortedUniq=function(e){return e&&e.length?li(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?li(e,ua(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&wa(e,t,n)&&(t=n=a),(n=n===a?v:n>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!cs(t))&&!(t=hi(t))&&sn(e)?Ci(pn(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:bn(vs(t),0),Xr((function(n){var r=n[t],i=Ci(n,0,t);return r&&Pt(i,r),It(e,this,i)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?ai(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?ai(e,0,(t=n||t===a?1:vs(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ai(e,(t=r-(t=n||t===a?1:vs(t)))<0?0:t,r):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?gi(e,ua(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?gi(e,ua(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Me(o);return rs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Po(e,t,{leading:r,maxWait:t,trailing:i})},Hn.thru=mo,Hn.toArray=gs,Hn.toPairs=zs,Hn.toPairsIn=Hs,Hn.toPath=function(e){return qo(e)?Dt(e,Na):hs(e)?[e]:Ti(ja(ws(e)))},Hn.toPlainObject=bs,Hn.transform=function(e,t,n){var r=qo(e),i=r||Jo(e)||fs(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:rs(e)&&es(a)?Un(qe(e)):{}}return(i?kt:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Hn.unary=function(e){return Mo(e,1)},Hn.union=ro,Hn.unionBy=io,Hn.unionWith=ao,Hn.uniq=function(e){return e&&e.length?fi(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?fi(e,ua(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?fi(e,a,t):[]},Hn.unset=function(e,t){return null==e||di(e,t)},Hn.unzip=oo,Hn.unzipWith=so,Hn.update=function(e,t,n){return null==e?e:pi(e,t,bi(n))},Hn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:pi(e,t,bi(n),r)},Hn.values=Us,Hn.valuesIn=function(e){return null==e?[]:Xt(e,Ls(e))},Hn.without=co,Hn.words=ec,Hn.wrap=function(e,t){return Fo(bi(t),e)},Hn.xor=lo,Hn.xorBy=uo,Hn.xorWith=ho,Hn.zip=fo,Hn.zipObject=function(e,t){return yi(e||[],t||[],rr)},Hn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Hn.zipWith=po,Hn.entries=zs,Hn.entriesIn=Hs,Hn.extend=Cs,Hn.extendWith=_s,uc(Hn,Hn),Hn.add=wc,Hn.attempt=tc,Hn.camelCase=Gs,Hn.capitalize=Vs,Hn.ceil=xc,Hn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=As(n))==n?n:0),t!==a&&(t=(t=As(t))==t?t:0),lr(As(e),t,n)},Hn.clone=function(e){return ur(e,4)},Hn.cloneDeep=function(e){return ur(e,5)},Hn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:a)},Hn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:a)},Hn.conformsTo=function(e,t){return null==t||hr(e,t,Ps(t))},Hn.deburr=Ws,Hn.defaultTo=function(e,t){return null==e||e!=e?t:e},Hn.divide=Cc,Hn.endsWith=function(e,t,n){e=ws(e),t=hi(t);var r=e.length,i=n=n===a?r:lr(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Hn.eq=Uo,Hn.escape=function(e){return(e=ws(e))&&X.test(e)?e.replace($,an):e},Hn.escapeRegExp=function(e){return(e=ws(e))&&oe.test(e)?e.replace(ae,"\\$&"):e},Hn.every=function(e,t,n){var r=qo(e)?Bt:mr;return n&&wa(e,t,n)&&(t=a),r(e,ua(t,3))},Hn.find=Ao,Hn.findIndex=Va,Hn.findKey=function(e,t){return Nt(e,ua(t,3),xr)},Hn.findLast=bo,Hn.findLastIndex=Wa,Hn.findLastKey=function(e,t){return Nt(e,ua(t,3),Cr)},Hn.floor=_c,Hn.forEach=wo,Hn.forEachRight=xo,Hn.forIn=function(e,t){return null==e?e:br(e,ua(t,3),Ls)},Hn.forInRight=function(e,t){return null==e?e:wr(e,ua(t,3),Ls)},Hn.forOwn=function(e,t){return e&&xr(e,ua(t,3))},Hn.forOwnRight=function(e,t){return e&&Cr(e,ua(t,3))},Hn.get=Bs,Hn.gt=Go,Hn.gte=Vo,Hn.has=function(e,t){return null!=e&&va(e,t,Br)},Hn.hasIn=Ms,Hn.head=Ya,Hn.identity=oc,Hn.includes=function(e,t,n,r){e=Ko(e)?e:Us(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&zt(e,t,n)>-1},Hn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),zt(e,t,i)},Hn.inRange=function(e,t,n){return t=ms(t),n===a?(n=t,t=0):n=ms(n),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=As(e),t,n)},Hn.invoke=Ds,Hn.isArguments=Wo,Hn.isArray=qo,Hn.isArrayBuffer=Yo,Hn.isArrayLike=Ko,Hn.isArrayLikeObject=$o,Hn.isBoolean=function(e){return!0===e||!1===e||is(e)&&kr(e)==w},Hn.isBuffer=Jo,Hn.isDate=Xo,Hn.isElement=function(e){return is(e)&&1===e.nodeType&&!ss(e)},Hn.isEmpty=function(e){if(null==e)return!0;if(Ko(e)&&(qo(e)||"string"==typeof e||"function"==typeof e.splice||Jo(e)||fs(e)||Wo(e)))return!e.length;var t=ma(e);if(t==E||t==T)return!e.size;if(Ia(e))return!jr(e).length;for(var n in e)if(Qe.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return Pr(e,t)},Hn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Pr(e,t,a,n):!!r},Hn.isError=Zo,Hn.isFinite=function(e){return"number"==typeof e&&Wt(e)},Hn.isFunction=es,Hn.isInteger=ts,Hn.isLength=ns,Hn.isMap=as,Hn.isMatch=function(e,t){return e===t||Lr(e,t,fa(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Lr(e,t,fa(t),n)},Hn.isNaN=function(e){return os(e)&&e!=+e},Hn.isNative=function(e){if(_a(e))throw new ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Qr(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=os,Hn.isObject=rs,Hn.isObjectLike=is,Hn.isPlainObject=ss,Hn.isRegExp=cs,Hn.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=g},Hn.isSet=ls,Hn.isString=us,Hn.isSymbol=hs,Hn.isTypedArray=fs,Hn.isUndefined=function(e){return e===a},Hn.isWeakMap=function(e){return is(e)&&ma(e)==P},Hn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==kr(e)},Hn.join=function(e,t){return null==e?"":yn.call(e,t)},Hn.kebabCase=qs,Hn.last=Xa,Hn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=vs(n))<0?bn(r+i,0):wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Ut,i,!0)},Hn.lowerCase=Ys,Hn.lowerFirst=Ks,Hn.lt=ds,Hn.lte=ps,Hn.max=function(e){return e&&e.length?vr(e,oc,Sr):a},Hn.maxBy=function(e,t){return e&&e.length?vr(e,ua(t,2),Sr):a},Hn.mean=function(e){return Gt(e,oc)},Hn.meanBy=function(e,t){return Gt(e,ua(t,2))},Hn.min=function(e){return e&&e.length?vr(e,oc,Fr):a},Hn.minBy=function(e,t){return e&&e.length?vr(e,ua(t,2),Fr):a},Hn.stubArray=yc,Hn.stubFalse=Ac,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=Ic,Hn.nth=function(e,t){return e&&e.length?Vr(e,vs(t)):a},Hn.noConflict=function(){return dt._===this&&(dt._=ze),this},Hn.noop=hc,Hn.now=Bo,Hn.pad=function(e,t,n){e=ws(e);var r=(t=vs(t))?dn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(vt(i),n)+e+Wi(gt(i),n)},Hn.padEnd=function(e,t,n){e=ws(e);var r=(t=vs(t))?dn(e):0;return t&&r<t?e+Wi(t-r,n):e},Hn.padStart=function(e,t,n){e=ws(e);var r=(t=vs(t))?dn(e):0;return t&&r<t?Wi(t-r,n)+e:e},Hn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Cn(ws(e).replace(se,""),t||0)},Hn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wa(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=ms(e),t===a?(t=e,e=0):t=ms(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return wn(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return $r(e,t)},Hn.reduce=function(e,t,n){var r=qo(e)?Lt:qt,i=arguments.length<3;return r(e,ua(t,4),n,i,pr)},Hn.reduceRight=function(e,t,n){var r=qo(e)?Qt:qt,i=arguments.length<3;return r(e,ua(t,4),n,i,gr)},Hn.repeat=function(e,t,n){return t=(n?wa(e,t,n):t===a)?1:vs(t),Jr(ws(e),t)},Hn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var r=-1,i=(t=wi(t,e)).length;for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[Na(t[r])];o===a&&(r=i,o=n),e=es(o)?o.call(e):o}return e},Hn.round=Ec,Hn.runInContext=e,Hn.sample=function(e){return(qo(e)?Zn:Zr)(e)},Hn.size=function(e){if(null==e)return 0;if(Ko(e))return us(e)?dn(e):e.length;var t=ma(e);return t==E||t==T?e.size:jr(e).length},Hn.snakeCase=$s,Hn.some=function(e,t,n){var r=qo(e)?Rt:oi;return n&&wa(e,t,n)&&(t=a),r(e,ua(t,3))},Hn.sortedIndex=function(e,t){return si(e,t)},Hn.sortedIndexBy=function(e,t,n){return ci(e,t,ua(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&Uo(e[r],t))return r}return-1},Hn.sortedLastIndex=function(e,t){return si(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return ci(e,t,ua(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=si(e,t,!0)-1;if(Uo(e[n],t))return n}return-1},Hn.startCase=Js,Hn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:lr(vs(n),0,e.length),t=hi(t),e.slice(n,n+t.length)==t},Hn.subtract=kc,Hn.sum=function(e){return e&&e.length?Yt(e,oc):0},Hn.sumBy=function(e,t){return e&&e.length?Yt(e,ua(t,2)):0},Hn.template=function(e,t,n){var r=Hn.templateSettings;n&&wa(e,t,n)&&(t=a),e=ws(e),t=_s({},t,r,ea);var i,o,s=_s({},t.imports,r.imports,ea),c=Ps(s),l=Xt(s,c),u=0,h=t.interpolate||Ce,f="__p += '",d=Se((t.escape||Ce).source+"|"+h.source+"|"+(h===te?ge:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),p="//# sourceURL="+(Qe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(d,(function(t,n,r,a,s,c){return r||(r=a),f+=e.slice(u,c).replace(_e,on),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var g=Qe.call(t,"variable")&&t.variable;if(g){if(de.test(g))throw new ce("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(W,""):f).replace(q,"$1").replace(Y,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=tc((function(){return Ie(c,p+"return "+f).apply(a,l)}));if(m.source=f,Zo(m))throw m;return m},Hn.times=function(e,t){if((e=vs(e))<1||e>g)return[];var n=v,r=wn(e,v);t=ua(t),e-=v;for(var i=Kt(r,t);++n<e;)t(n);return i},Hn.toFinite=ms,Hn.toInteger=vs,Hn.toLength=ys,Hn.toLower=function(e){return ws(e).toLowerCase()},Hn.toNumber=As,Hn.toSafeInteger=function(e){return e?lr(vs(e),-9007199254740991,g):0===e?e:0},Hn.toString=ws,Hn.toUpper=function(e){return ws(e).toUpperCase()},Hn.trim=function(e,t,n){if((e=ws(e))&&(n||t===a))return $t(e);if(!e||!(t=hi(t)))return e;var r=pn(e),i=pn(t);return Ci(r,en(r,i),tn(r,i)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=ws(e))&&(n||t===a))return e.slice(0,gn(e)+1);if(!e||!(t=hi(t)))return e;var r=pn(e);return Ci(r,0,tn(r,pn(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=ws(e))&&(n||t===a))return e.replace(se,"");if(!e||!(t=hi(t)))return e;var r=pn(e);return Ci(r,en(r,pn(t))).join("")},Hn.truncate=function(e,t){var n=30,r="...";if(rs(t)){var i="separator"in t?t.separator:i;n="length"in t?vs(t.length):n,r="omission"in t?hi(t.omission):r}var o=(e=ws(e)).length;if(sn(e)){var s=pn(e);o=s.length}if(n>=o)return e;var c=n-dn(r);if(c<1)return r;var l=s?Ci(s,0,c).join(""):e.slice(0,c);if(i===a)return l+r;if(s&&(c+=l.length-c),cs(i)){if(e.slice(c).search(i)){var u,h=l;for(i.global||(i=Se(i.source,ws(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(h);)var f=u.index;l=l.slice(0,f===a?c:f)}}else if(e.indexOf(hi(i),c)!=c){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},Hn.unescape=function(e){return(e=ws(e))&&J.test(e)?e.replace(K,mn):e},Hn.uniqueId=function(e){var t=++Re;return ws(e)+t},Hn.upperCase=Xs,Hn.upperFirst=Zs,Hn.each=wo,Hn.eachRight=xo,Hn.first=Ya,uc(Hn,(bc={},xr(Hn,(function(e,t){Qe.call(Hn.prototype,t)||(bc[t]=e)})),bc),{chain:!1}),Hn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hn[e].placeholder=Hn})),kt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===a?1:bn(vs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(oc)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Or(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(jo(ua(e)))},Wn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(v)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Hn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Hn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Wn,l=s[0],u=c||qo(t),h=function(e){var t=i.apply(Hn,Pt([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,g=c&&!d;if(!o&&u){t=g?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:mo,args:[h],thisArg:a}),new Vn(m,f)}return p&&g?e.apply(this,s):(m=this.thru(h),p?r?m.value()[0]:m.value():m)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qo(i)?i:[],e)}return this[n]((function(n){return t.apply(qo(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=Hn[t];if(n){var r=n.name+"";Qe.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}})),Dn[Hi(a,2).name]=[{name:"wrapper",func:a}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=wn(t,e+o);break;case"takeRight":e=bn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,h=u.length,f=0,d=wn(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return mi(e,this.__actions__);var p=[];e:for(;c--&&f<d;){for(var g=-1,m=e[l+=t];++g<h;){var v=u[g],y=v.iteratee,A=v.type,b=y(m);if(2==A)m=b;else if(!b){if(1==A)continue e;break e}}p[f++]=m}return p},Hn.prototype.at=vo,Hn.prototype.chain=function(){return go(this)},Hn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===a&&(this.__values__=gs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=za(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:mo,args:[no],thisArg:a}),new Vn(t,this.__chain__)}return this.thru(no)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,et&&(Hn.prototype[et]=function(){return this}),Hn}();dt._=vn,(i=function(){return vn}.call(t,n,t,r))===a||(r.exports=i)}).call(this)}).call(this,n("yLpj"),n("YuTi")(e))},OKyS:function(e,t,n){var r=n("LboF"),i=n("8MIm");"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},UBF9:function(e,t,n){"use strict";var r=n("8eWk");n.n(r).a},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},qFNJ:function(e,t,n){(e.exports=n("I1BE")(void 0)).push([e.i,'.video-wrapper .show-time .video-js .vjs-time-control:not(.vjs-remaining-time){padding-left:.5em;padding-right:0;min-width:0;display:block}.video-wrapper .video-js .vjs-remaining-time{display:none}.video-wrapper .live .vjs-progress-control{visibility:hidden}.video-wrapper .av-loading .vjs-big-play-button,.video-wrapper .live .vjs-remaining-time,.video-wrapper .live .vjs-time-control{display:none}.video-wrapper .hide-big-play-button .vjs-big-play-button,.video-wrapper .hide-controls .vjs-control-bar,.video-wrapper .hide-fluent-button .live-player-fluent-btn,.video-wrapper .hide-fullscreen-button .vjs-fullscreen-control,.video-wrapper .hide-live-text .video-js .vjs-live-control .vjs-live-display,.video-wrapper .hide-pic-in-pic .video-js .vjs-picture-in-picture-control,.video-wrapper .hide-snapshot-button .vjs-snapshot-control,.video-wrapper .hide-stretch-button .live-player-stretch-btn,.video-wrapper .hide-waiting .vjs-seeking .vjs-loading-spinner,.video-wrapper .hide-waiting .vjs-waiting .vjs-loading-spinner,.video-wrapper .zoom-drawing .video-slot,.video-wrapper .zoom-drawing .video-title,.video-wrapper .zoom-drawing .vjs-control-bar{display:none!important}.video-wrapper .alt{position:absolute;left:0;top:0;right:0;bottom:0;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;color:#fff;text-align:center}.video-wrapper .alt>table{width:100%;height:100%}.video-wrapper .alt>table tr>td{vertical-align:middle}.video-wrapper .video-js .video-water{pointer-events:none;left:0;top:0;right:0;bottom:0;position:absolute}.video-wrapper .video-js .video-slot{font-size:14px}.video-wrapper .video-js .video-title{font-size:14px;position:absolute;top:5px;right:5px;color:#fff;background-color:hsla(0,0%,50%,.5);border-radius:2px;padding:5px;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.video-wrapper .video-js .vjs-control-bar .vjs-button{cursor:pointer;outline:none}.video-wrapper .video-js .vjs-control-bar .vjs-icon-cog:before,.video-wrapper .video-js .vjs-control-bar .vjs-icon-spinner:before{font-size:1.4em;line-height:1.87}.video-wrapper .video-js .vjs-control-bar .vjs-playback-rate .vjs-menu :focus:not(:focus-visible){outline:none;background:#fff}.video-wrapper .vjs-error-display{display:none}.video-wrapper .video-js .vjs-time-control{font-size:1.035em;line-height:2.93em}.video-wrapper .vjs-resolution-button{color:#ccc;font-family:VideoJS}.video-wrapper .vjs-resolution-button .vjs-resolution-button-staticlabel:before{content:"\\F110";font-size:1.8em;line-height:1.7em}.video-wrapper .vjs-resolution-button .vjs-resolution-button-label{width:100%;height:.6em;display:block!important}.video-wrapper .vjs-resolution-button .vjs-resolution-button-label-ie{width:100%;height:.4em;display:block!important}.video-wrapper .vjs-resolution-button ul.vjs-menu-content{width:4em!important}.video-wrapper .vjs-resolution-button .vjs-menu{left:0}.video-wrapper .vjs-resolution-button .vjs-menu li{text-transform:none;font-size:1em;line-height:1.5em;font-family:Arial,Helvetica,sans-serif}.video-wrapper .vjs-audio-button{display:none!important}.video-wrapper .video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-wrapper .vjs-button>.vjs-icon-placeholder:before{position:relative!important}.video-wrapper .video-js .vjs-play-progress:before{top:-.33em!important}.video-wrapper .video-js .vjs-control:focus,.video-wrapper .video-js .vjs-control:focus:before,.video-wrapper .video-js .vjs-control:hover:before{text-shadow:none!important}@media screen and (-webkit-min-device-pixel-ratio:0){.video-wrapper .video-js .vjs-control-bar{font-size:14px}.video-wrapper .video-js .vjs-slider-vertical .vjs-volume-level:before{left:-.33em!important}}.video-wrapper.video-wrapper-stretch .alt,.video-wrapper.video-wrapper-stretch .video-js .vjs-poster{background-size:100% 100%}',""])},qtAY:function(e,t,n){"use strict";n.r(t),n("OKyS");var r=n("LvDl"),i=n.n(r),a=n("Iab2"),o=n.n(a);videojs.options.controlBar={volumePanel:{inline:!1}},videojs.options.flash.swf="liveplayer.swf",videojs.options.techOrder=["html5","flash"],videojs.log.level("off"),flvjs.LoggingControl.enableAll=!1;var s={name:"live-player",data:function(){return{player:null,liveCheckTimer:0,hlsTimer:0,fluentBtnCls:"live-player-fluent-btn",stretchBtnCls:"live-player-stretch-btn",snapFromOutside:!1,snapForPoster:!1,snapForReload:!1,showSlot:!1,fluent_:!0,muted_:!0,stretch_:!1,poster_:"",subVideoUrl_:"",avLoading:!1,reloadCnt:0,updateTimeAt:0,startAt:0,playAt:0,pauseAt:0,pauseBgAt:0,endedAt:0,errorAt:0,flvMediaDataSource:{},flvConfig:{},resolutionName:{sd:"标清",hd:"高清",fhd:"超清",yh:"原画"},playbackRate_:1,fullscreen:!1,visible:!0,visibleChangeAt:0,speeds:[],zoomDrawing:!1}},props:{videoUrl:{type:String,default:""},subVideoUrl:{type:String,default:""},videoTitle:{type:String,default:""},poster:{default:""},autoplay:{type:Boolean,default:!0},live:{type:Boolean,default:!1},smart:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},currentTime:{type:Number,default:0},timeout:{type:Number,default:20},alt:{type:String,default:""},muted:{type:Boolean,default:!0},aspect:{type:String,default:"16:9"},videoBufferSize:{type:Number,default:204800},audioBufferSize:{type:Number,default:131072},hlsErrorSeek:{type:Number,default:5},hlsTestMethod:{type:String,default:"HEAD"},hlsTestInterval:{type:Number,default:1e3},reloadInterval:{type:Number,default:1e3},liveInterval:{type:Number,default:15e3},maxPauseSeconds:{type:Number,default:0},pauseWhenHidden:{type:Boolean,default:!0},fluent:{type:Boolean,default:!0},stretch:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},hideBigPlayButton:{type:Boolean,default:!1},hideSnapshotButton:{type:Boolean,default:!1},hideFullscreenButton:{type:Boolean,default:!1},hideFluentButton:{type:Boolean,default:!1},hideStretchButton:{type:Boolean,default:!1},hidePicInPic:{type:Boolean,default:!0},hideWaiting:{type:Boolean,default:!0},hideLiveText:{type:Boolean,default:!1},showTime:{type:Boolean,default:function(){return!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID}},showSpeed:{type:Boolean,default:!1},showCustomButton:{type:Boolean,default:!0},showCameraButton:{type:Boolean,default:!videojs.browser.IS_SAFARI&&!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID},debug:{type:Boolean,default:!1},hasvideo:{type:Boolean,default:void 0},hasaudio:{type:Boolean,default:void 0},resolution:{type:String,default:""},resolutiondefault:{type:String,default:"hd"},playbackRates:{type:Array,default:function(){return videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?[]:[.5,1,2,3]}},playbackRate:{type:Number,default:1},cors:{type:Boolean,default:!0},withCredentials:{type:Boolean,default:!1},customButtons:{type:String,default:""},autofocus:{type:Boolean,default:!1},dblclickFullscreen:{type:Boolean,default:!0},language:{type:String,default:navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"},disableContextMenu:{type:Boolean,default:!1},water:{type:String,default:""},waterMark:{type:String,default:""},watermark:{type:String,default:""},wm:{type:String,default:""},waterFont:{type:String,default:""},waterColor:{type:String,default:"rgba(240, 240, 240, 0.25)"},waterWidth:{type:Number,default:256},waterHeight:{type:Number,default:144},waterRotate:{type:Number,default:-20*Math.PI/120},rotate:{type:Number,default:0},rotateX:{type:Number,default:0},rotateY:{type:Number,default:0},bgTimeout:{type:Number,default:0},digitalZoom:{type:Boolean,default:!1},digitalZoomColor:{type:String,default:"rgba(235, 235, 235, 0.8)"}},beforeDestroy:function(){this.destroyVideoJS()},deactivated:function(){this.destroyVideoJS()},watch:{videoUrl:function(e){this.videoUrl?this.poster_=this.poster:this.poster_="",this.smart&&!this.subVideoUrl&&this.videoUrl&&(0!=this.videoUrl.indexOf("webrtc")||/_sub(\?|$)/.test(this.videoUrl)?/.flv(\?|$)/.test(this.videoUrl)&&!/_sub.flv(\?|$)/.test(this.videoUrl)?this.subVideoUrl_=this.videoUrl.replace(/(.flv(\?|$))/,"_sub$1"):/\/live.m3u8(\?|$)/.test(this.videoUrl)&&!/_sub\/live.m3u8(\?|$)/.test(this.videoUrl)&&(this.subVideoUrl_=this.videoUrl.replace(/(\/live.m3u8(\?|$))/,"_sub$1")):this.subVideoUrl_=this.videoUrl.replace(/(\?|$)/,"_sub$1")),this.videoUrl||this.subVideoUrl||(this.subVideoUrl_=""),this.reload()},subVideoUrl:function(e){this.subVideoUrl_=this.subVideoUrl,this.smart&&!this.subVideoUrl_&&this.videoUrl&&(0!=this.videoUrl.indexOf("webrtc")||/_sub(\?|$)/.test(this.videoUrl)?/.flv(\?|$)/.test(this.videoUrl)&&!/_sub.flv(\?|$)/.test(this.videoUrl)?this.subVideoUrl_=this.videoUrl.replace(/(.flv(\?|$))/,"_sub$1"):/\/live.m3u8(\?|$)/.test(this.videoUrl)&&!/_sub\/live.m3u8(\?|$)/.test(this.videoUrl)&&(this.subVideoUrl_=this.videoUrl.replace(/(\/live.m3u8(\?|$))/,"_sub$1")):this.subVideoUrl_=this.videoUrl.replace(/(\?|$)/,"_sub$1")),this.videoUrl||this.subVideoUrl||(this.subVideoUrl_=""),this.reload()},fullscreen:function(e){this.videoUrl&&this.subVideoUrl_&&this.videoUrl!=this.subVideoUrl_&&(this.webrtc&&0==this.videoUrl.indexOf("webrtc")&&0==this.subVideoUrl_.indexOf("webrtc")?this.rtcReloadTech():(this.http||this.ws)&&this.flv&&/\.flv.*$/.test(this.videoUrl)&&/\.flv.*$/.test(this.subVideoUrl_)&&this.flvReloadTech())},fluent:function(e){this.fluent_=e,this.reload()},muted:function(e){this.muted_=e,this.reload()},stretch:function(e){this.stretch_=e,this.reload()},poster:function(e){this.poster_=e},loop:function(e){this.reload()},currentTime:function(e){this.player&&this.player.currentTime(e)},language:function(e){this.reload()}},mounted:function(){this.muted_=this.muted,this.fluent_=this.fluent,this.stretch_=this.stretch,this.poster_=this.poster,this.playbackRate_=this.playbackRate,this.subVideoUrl_=this.subVideoUrl,this.smart&&!this.subVideoUrl_&&this.videoUrl&&(0!=this.videoUrl.indexOf("webrtc")||/_sub(\?|$)/.test(this.videoUrl)?/.flv(\?|$)/.test(this.videoUrl)&&!/_sub.flv(\?|$)/.test(this.videoUrl)?this.subVideoUrl_=this.videoUrl.replace(/(.flv(\?|$))/,"_sub$1"):/\/live.m3u8(\?|$)/.test(this.videoUrl)&&!/_sub\/live.m3u8(\?|$)/.test(this.videoUrl)&&(this.subVideoUrl_=this.videoUrl.replace(/(\/live.m3u8(\?|$))/,"_sub$1")):this.subVideoUrl_=this.videoUrl.replace(/(\?|$)/,"_sub$1")),this.debug&&(videojs.log.level("info"),flvjs.LoggingControl.enableAll=!0),this.initVideoJS()},computed:{videoType:function(){var e="video/mp4";return this.rtmp?e="rtmp/mp4":(this.http||this.ws)&&this.flv?e="video/x-flv":this.m3u8&&(e="application/x-mpegURL"),e},videoWrapperStyle:function(){if("100%"==this.aspect||"fullscreen"==this.aspect)return{width:"100%",height:"100%"};var e=this.aspect.split(":"),t=parseInt(e[0])||16;return{paddingBottom:(parseInt(e[1])||9)/t*100+"%",position:"relative",margin:"0 auto",overflow:"hidden"}},waterStyle:function(){return this.waterText?{background:"url("+this.createBase64()+") left top repeat"}:{}},waterText:function(){return this.water||this.waterMark||this.watermark||this.wm},rtmp:function(){return 0==(this.src||"").indexOf("rtmp")},http:function(){return 0==(this.src||"").indexOf("http")},webrtc:function(){return 0==(this.src||"").indexOf("webrtc")},ws:function(){return 0==(this.src||"").indexOf("ws")},mp4:function(){return/\.mp4.*$/.test(this.src||"")},m3u8:function(){return/\.m3u8.*$/.test(this.src||"")},flv:function(){return/\.flv.*$/.test(this.src||"")},alt2:function(){return this.alt?this.alt:"zh-CN"===this.language?"无信号":"No Video"},src:function(){var e=this.subVideoUrl_||this.videoUrl;return this.fullscreen&&(e=this.videoUrl||this.subVideoUrl_),e?0===e.indexOf("//")?location.protocol+e:0===e.indexOf("/")?location.protocol+"//"+location.host+e:e:""},blankHtml:function(){return this.poster_&&this.src?'\n                    <div class="alt" style="background-image:url(\''+this.poster_+"');\">\n                    </div>\n                ":'\n                    <div class="alt">\n                        <table>\n                            <tr>\n                                <td>'+this.alt2+"</td>\n                            </tr>\n                        </table>\n                    </div>\n                "},videoHtml:function(){return this.src?this.rtmp||this.http||this.flv||this.mp4||this.webrtc?'\n                        <video class="video-js vjs-default-skin vjs-big-play-centered" style="width: 100%; height: 100%; '+(this.stretch_?"object-fit: fill;":"")+'"\n                            webkit-playsinline="" playsinline="" x-webkit-airplay="allow" x5-playsinline=""\n                            preload="none" poster="'+this.poster_+'" '+(this.muted_?"muted":"")+" "+(this.loop?"loop":"")+'>\n                            <source src="'+this.src+'" type="'+this.videoType+'"></source>\n                            <p class="vjs-no-js">\n                                To view this video please enable JavaScript, and consider upgrading to a web browser that\n                                <a href="http://videojs.com/html5-video-support/" target="_blank">\n                                    supports HTML5 video\n                                </a>\n                            </p>\n                        </video>\n                    ':'\n                        <canvas style="width: 100%; height: 100%;"></canvas>\n                    ':this.blankHtml}},methods:{isMobile:function(){return videojs.browser.IS_IOS||videojs.browser.IS_ANDROID},hasUsableSWF:function(){return!!(void 0!==window.ActiveXObject?new ActiveXObject("ShockwaveFlash.ShockwaveFlash"):navigator.plugins["Shockwave Flash"])},reload:function(){this.reloadCnt++,this.debug,this.destroyVideoJS(),this.initVideoJS()},flvError:function(e){var t=this;this.debug,this.$emit("error",e),this.live&&this.src&&this.reloadInterval>0&&(this.reloadCnt?setTimeout((function(){t.flvReload()}),this.reloadInterval):this.flvReload())},flvReload:function(){this.player&&(this.avLoading=!0,!this.endedAt&&!this.player.isFullscreen()&&this.player.cameraButton&&this.visible?this.snapForReload||(this.debug,this.snapForReload=!0,this.pauseAt=0,this.player.cameraButton.el().click()):this.flvReloadTech())},flvReloadTech:function(){var e=this;if(this.debug,this.reloadCnt++,this.pauseAt=0,this.player.tech_.flvPlayer.unload(),this.player.tech_.flvPlayer.detachMediaElement(),this.player.tech_.flvPlayer.destroy(),this.player.tech_.flvPlayer=window.flvjs.createPlayer(Object.assign({},this.flvMediaDataSource,{type:void 0===this.flvMediaDataSource.type?"flv":this.flvMediaDataSource.type,url:this.getVideoUrl()}),this.flvConfig),this.player.tech_.flvPlayer.attachMediaElement(this.player.tech_.el_),this.player.tech_.flvPlayer.on("error",(function(t){e.flvError(t)})),this.player.tech_.flvPlayer.on("media_info",(function(t){e.$emit("media_info",t)})),this.showSpeed){var t=null;this.player.tech_.flvPlayer.on("statistics_info",(function(n){if(n&&n.speed)if(e.speeds.length<3){if(e.speeds.push(n.speed),!t){var r=e.$el.querySelectorAll(".video-js .vjs-control-bar .vjs-live-display");r.length>0&&(t=r[0])}}else if(t){e.speeds.shift(),e.speeds.push(n.speed);for(var i=0,a=0;a<e.speeds.length;a++)i+=e.speeds[a]||0;var o=i/e.speeds.length;o=8*o.toFixed(0),t.innerHTML=o+"Kbps"}}))}this.player.tech_.flvPlayer.load()},rtcError:function(e){var t=this;this.live&&this.src&&this.reloadInterval>0&&setTimeout((function(){t.rtcReload()}),this.reloadInterval)},rtcReload:function(){this.player&&(this.avLoading=!0,!this.endedAt&&!this.player.isFullscreen()&&this.player.cameraButton&&this.visible?this.snapForReload||(this.debug,this.snapForReload=!0,this.pauseAt=0,this.player.cameraButton.el().click()):this.rtcReloadTech())},rtcReloadTech:function(){this.debug,this.reloadCnt++,this.pauseAt=0,this.player.tech_.src=this.getVideoUrl(),this.player.tech_.reload()},loadResolutionlist:function(e){var t=this;if(""!=this.resolution){for(var n,r=this.resolution.split(","),i=[],a=0;a<r.length;a++)r[a],this.resolutiondefault,n="yh"==r[a]?this.videoUrl:this.videoUrl.replace(".m3u8","_"+r[a]+".m3u8"),i.push({src:n,type:this.videoType,label:this.resolutionName[r[a]],res:r[a]});e.updateSrc(i),e.on("resolutionchange",(function(){t.debug}))}},getCustomBtn:function(e){var t=this.$el.querySelectorAll(".video-js .vjs-control-bar .vjs-button."+e);return t.length>0?t[0]:null},customFlashButton:function(){var e=this;if(!this.getCustomBtn(this.fluentBtnCls)){for(var t=(i=this.player.controlBar.children().length)-1;t>=0;t--)if("FullscreenToggle"==this.player.controlBar.children()[t].name_)i=t;else if("SnapButton"==this.player.controlBar.children()[t].name_){i=t;break}var n=this.player.controlBar.addChild("button",{},i);n.name_="FluentButton",n.el_.classList.add(this.fluentBtnCls),n.el_.innerText=this.fluent_?this.player.localize("Fluent"):this.player.localize("Fast"),n.el_.title=this.fluent_?this.player.localize("Click switch to fast play"):this.player.localize("Click switch to fluent play");var r=function(){e.fluent_=!e.fluent_,n.el_.innerText=e.fluent_?e.player.localize("Fluent"):e.player.localize("Fast"),n.el_.title=e.fluent_?e.player.localize("Click switch to fast play"):e.player.localize("Click switch to fluent play"),e.player.tech_.setFluent(e.fluent_)};n.on("click",r),n.on("tap",r)}if(!this.getCustomBtn(this.stretchBtnCls)){var i;for(t=(i=this.player.controlBar.children().length)-1;t>=0;t--)if("FullscreenToggle"==this.player.controlBar.children()[t].name_)i=t;else if("SnapButton"==this.player.controlBar.children()[t].name_)i=t;else if("FluentButton"==this.player.controlBar.children()[t].name_){i=t;break}var a=this.player.controlBar.addChild("button",{},i);a.name_="StretchButton",a.el_.classList.add(this.stretchBtnCls),a.el_.innerText=this.stretch_?this.player.localize("STR"):this.player.localize("STD"),a.el_.title=this.stretch_?this.player.localize("Click switch to standard display"):this.player.localize("Click switch to stretch display"),r=function(){e.stretch_=!e.stretch_,a.el_.innerText=e.stretch_?e.player.localize("STR"):e.player.localize("STD"),a.el_.title=e.stretch_?e.player.localize("Click switch to standard display"):e.player.localize("Click switch to stretch display"),e.player.tech_.setStretch(e.stretch_)},a.on("click",r),a.on("tap",r)}},customH5Button:function(){var e=this;if(!this.getCustomBtn(this.stretchBtnCls)&&!videojs.browser.IE_VERSION){for(var t=this.player.controlBar.children().length,n=t-1;n>=0;n--)if("FullscreenToggle"==this.player.controlBar.children()[n].name_)t=n;else if("SnapButton"==this.player.controlBar.children()[n].name_){t=n;break}var r=this.player.controlBar.addChild("button",{},t);r.name_="StretchButton",r.el_.classList.add(this.stretchBtnCls),r.el_.innerText=this.stretch_?this.player.localize("STR"):this.player.localize("STD"),r.el_.title=this.stretch_?this.player.localize("Click switch to standard display"):this.player.localize("Click switch to stretch display");var i=function(){e.stretch_=!e.stretch_,r.el_.innerText=e.stretch_?e.player.localize("STR"):e.player.localize("STD"),r.el_.title=e.stretch_?e.player.localize("Click switch to standard display"):e.player.localize("Click switch to stretch display");var t=e.$el.querySelector("video");t?t.style.objectFit=e.stretch_?"fill":"":e.player.tech_.setStretch(e.stretch_)};r.on("click",i),r.on("tap",i)}this.addCustomButtons()},addCustomButtons:function(){var e=this;if(""!=this.customButtons){for(var t=this.player.controlBar.children().length,n=t-1;n>=0;n--)if("FullscreenToggle"==this.player.controlBar.children()[n].name_)t=n;else if("SnapButton"==this.player.controlBar.children()[n].name_)t=n;else if("StretchButton"==this.player.controlBar.children()[n].name_){t=n;break}var r=this.customButtons.split(",");for(n=r.length-1;n>=0;n--){var i=r[n].split(":"),a=this.player.controlBar.addChild("button",{},t);a.el_.innerHTML=i.length>1?"<i class='"+i[1]+"'></i>":r[n],a.el_.title=i[0],a.name_=i[0];var o=function(t){e.$emit("customButtons",(t.currentTarget||t.target).getAttribute("title"))};a.on("click",o),a.on("tap",o)}}},hotkeysOpt:function(){var e={volumeStep:.1,seekStep:5,enableModifiersForNumbers:!1,enableVolumeScroll:!1};return this.autofocus||(e.skipInitialFocus=!0,e.enableInactiveFocus=!1),e},destroyVideoJS:function(){this.liveCheckTimer&&(clearInterval(this.liveCheckTimer),this.liveCheckTimer=0),this.hlsTimer&&(clearTimeout(this.hlsTimer),this.hlsTimer=0),document.removeEventListener("visibilitychange",this.onVisibleChange),this.updateTimeAt=0,this.startAt=0,this.playAt=0,this.pauseAt=0,this.pauseBgAt=0,this.endedAt=0,this.errorAt=0,this.visibleChangeAt=0,this.showSlot=!1;var e=this.$el.querySelector(".video-js"),t=this.$el.querySelector(".video-wrapper");if(e&&t){var n=e.querySelector(".video-water");n&&(e.removeChild(n),t.appendChild(n));var r=e.querySelector(".video-slot");r&&(e.removeChild(r),t.appendChild(r));var i=e.querySelector(".video-title");i&&(e.removeChild(i),t.appendChild(i))}this.player&&this.player.dispose&&(this.player.dispose(),this.player=null),this.player&&this.player.destroy&&(this.player.destroy(),this.player=null),this.flvMediaDataSource={},this.flvConfig={},this.$el.querySelector(".video-inner").innerHTML=this.blankHtml,this.$emit("update:loading",!1)},getCurrentTime:function(){return this.player&&"function"==typeof this.player.currentTime?this.player.currentTime():-1},setCurrentTime:function(e){this.player&&"function"==typeof this.player.currentTime&&this.player.currentTime(e)},snap:function(){this.player&&this.player.cameraButton&&(this.snapFromOutside=!0,this.player.cameraButton.el().click())},play:function(){this.player&&this.player.play()},pause:function(){this.player&&this.player.pause()},paused:function(){return!!this.player&&this.player.paused()},setMuted:function(e){this.player&&this.player.muted(!!e)},getMuted:function(){return!!this.player&&this.player.muted()},setVolume:function(e){this.player&&this.player.volume(e)},getVolume:function(){return this.player?this.player.volume():0},setDuration:function(e){this.player&&this.player.duration(e)},getDuration:function(){return this.player?this.player.duration():0},getPlayer:function(){return this.player},getMediaInfo:function(){try{return this.player.tech_.flvPlayer._transmuxer._controller._demuxer._mediaInfo}catch(e){}return{}},isFullscreen:function(){return!!this.player&&this.player.isFullscreen()},getVideoUrl:function(){var e=this.subVideoUrl_||this.videoUrl;return this.isFullscreen()&&(e=this.videoUrl||this.subVideoUrl_),e?0===e.indexOf("//")?location.protocol+e:0===e.indexOf("/")?location.protocol+"//"+location.host+e:e:""},requestFullscreen:function(){this.player&&this.player.requestFullscreen()},exitFullscreen:function(){this.player&&this.player.exitFullscreen()},toggleFullscreen:function(){this.player&&(this.player.isFullscreen()?this.player.exitFullscreen():this.player.requestFullscreen())},convertDataURIToBinary:function(e){for(var t=";base64,",n=e.indexOf(t)+t.length,r=e.substring(n),i=window.atob(r),a=i.length,o=new Uint8Array(a),s=0;s<a;s++)o[s]=i.charCodeAt(s);return o},convertDataURIToMIME:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="data:",n=";base64,",r=e.indexOf(t);0==r&&(r+=t.length);var i=e.indexOf(n);return r>=0&&i>r?e.substring(r,i):""},saveFile:function(e){if(e&&e.length>100){this.poster_=e;var t=this.$el.querySelector("video");t&&t.setAttribute("poster",e)}if(this.snapForReload)return this.snapForReload=!1,void this.reload();if(this.snapForPoster)this.snapForPoster=!1;else{if(this.snapFromOutside)return this.$emit("snapOutside",e),void(this.snapFromOutside=!1);if(this.$emit("snapInside",e),e&&e.length>100){var n=this.convertDataURIToBinary(e),r=this.convertDataURIToMIME(e),i=".jpg",a=r.indexOf("/");a>0&&(i="."+r.substring(a+1)),o.a.saveAs(new Blob([n],{type:r}),(this.videoTitle||"snap")+"_"+(new Date).getTime()+i)}}},onVisibleChange:function(){this.visible="visible"===document.visibilityState,this.debug;var e=this.visibleChangeAt;if(this.visibleChangeAt=(new Date).getTime(),this.visible&&this.live&&this.videoUrl){if(this.bgTimeout>0&&e&&(new Date).getTime()-e>=this.bgTimeout&&this.src&&(!this.player||!this.player.isFullscreen()))return this.debug,void this.reload();if(this.liveInterval>0&&this.pauseBgAt&&(new Date).getTime()-this.pauseBgAt>=this.liveInterval&&this.src&&(!this.player||!this.player.isFullscreen()))return this.debug,void this.reload()}},debounceInitVideoJS:i.a.debounce((function(){this.initVideoJS()}),500),initVideoJSOK:function(){var e=this;this.player&&(document.addEventListener("visibilitychange",this.onVisibleChange),this.player.muted(this.muted_),this.player.on("canplay",(function(){e.$emit("canplay",e.player.duration())})),this.player.on("pause",(function(){e.updateTimeAt=0,e.pauseAt=(new Date).getTime(),e.visible||(e.pauseBgAt=e.pauseAt),e.$emit("pause",e.player.currentTime()),e.debug})),this.player.on("snap",(function(t,n){e.saveFile(n)})),this.player.on("volumechange",(function(t,n){e.muted_=e.player.muted(),e.$emit("volumechange",e.player.volume(),e.muted_)})),this.player.on("fullscreenchange",(function(){setTimeout((function(){e.fullscreen=e.isFullscreen(),e.$emit("fullscreen",e.fullscreen)}),0)})),(this.waterText||this.disableContextMenu)&&(this.player.tech_.el_.oncontextmenu=function(e){e.preventDefault()}),this.rotate&&(this.player.tech_.el_.style.transform="rotate("+this.rotate+"deg)"),this.rotateX&&(this.player.tech_.el_.style.transform="rotateX("+this.rotateX+"deg)"),this.rotateY&&(this.player.tech_.el_.style.transform="rotateY("+this.rotateY+"deg)"),this.startAt=(new Date).getTime(),this.initDigitalZoom());var t=this.$el.querySelector(".video-js"),n=this.$el.querySelector(".video-wrapper");if(t&&n){var r=n.querySelector(".video-water");r&&(n.removeChild(r),t.appendChild(r));var i=n.querySelector(".video-slot");i&&(n.removeChild(i),t.appendChild(i));var a=n.querySelector(".video-title");a&&(n.removeChild(a),t.appendChild(a))}this.showSlot=!0},initVideoJS:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.$el.querySelector(".video-inner").innerHTML=this.videoHtml,this.src){if(this.startAt=(new Date).getTime(),this.rtmp){var n=document.title;this.player=videojs(this.$el.querySelector("video"),{notSupportedMessage:"您的浏览器没有安装或开启Flash",tech:["flash"],autoplay:this.autoplay,stretch:this.stretch,fluent:this.fluent,controls:!0,userActions:{doubleClick:this.dblclickFullscreen},language:this.language}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",(function(){if(e.initVideoJSOK(),videojs.browser.IE_VERSION&&e.player.tech_.off("fullscreentoggle"),e.$emit("update:loading",!1),document.title=n,e.player.hotkeys(e.hotkeysOpt()),e.player.on("ended",(function(){e.endedAt=(new Date).getTime(),e.$emit("ended"),e.debug})),e.player.on("error",(function(t){e.errorAt=(new Date).getTime(),e.$emit("error",t)})),e.player.on("timeupdate",(function(){e.updateTimeAt=(new Date).getTime(),e.pauseAt=0,e.endedAt=0,e.errorAt=0,e.reloadCnt=0,e.$emit("timeupdate",e.player.currentTime())})),e.player.on("playing",(function(){e.playAt=(new Date).getTime(),e.$emit("play",e.player.currentTime()),e.debug})),e.showCustomButton&&e.customFlashButton(),!e.hasUsableSWF()){var t=e.$el.querySelector(".vjs-poster");t&&(t.style.display="none")}document.getElementsByClassName("vjs-picture-in-picture-control")[0].style.display="none"})),document.title=n,this.player.on("error",(function(t){(t=e.$el.querySelector(".vjs-error .vjs-error-display .vjs-modal-dialog-content")).innerHTML="<a href='http://www.adobe.com/go/getflashplayer' target='_blank'>"+t.textContent+"</a>"}))}else if((this.http||this.ws)&&this.flv)this.flvMediaDataSource={isLive:this.live,cors:this.cors,withCredentials:this.withCredentials},this.flvConfig={enableWorker:!1,enableStashBuffer:!1},videojs.browser.IE_VERSION&&(this.flvConfig.enableStashBuffer=!0,this.flvConfig.stashInitialSize=512e3),null!=this.hasaudio&&(this.flvMediaDataSource.hasAudio=this.hasaudio),null!=this.hasvideo&&(this.flvMediaDataSource.hasVideo=this.hasvideo),this.player=videojs(this.$el.querySelector("video"),{techOrder:["flvjs","html5"],controls:!0,flvjs:{mediaDataSource:this.flvMediaDataSource,config:this.flvConfig},userActions:{doubleClick:this.dblclickFullscreen},language:this.language}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",(function(){if(e.initVideoJSOK(),e.$emit("update:loading",!1),e.stretch_&&(e.player.tech_.el_.style.objectFit="fill"),e.player.hotkeys(e.hotkeysOpt()),e.player.tech_.flvPlayer.on("error",(function(t){e.errorAt=(new Date).getTime(),e.flvError(t)})),e.player.tech_.flvPlayer.on("media_info",(function(t){e.$emit("media_info",t)})),e.showSpeed){var t=null;e.player.tech_.flvPlayer.on("statistics_info",(function(n){if(n&&n.speed)if(e.speeds.length<3){if(e.speeds.push(n.speed),!t){var r=e.$el.querySelectorAll(".video-js .vjs-control-bar .vjs-live-display");r.length>0&&(t=r[0])}}else if(t){e.speeds.shift(),e.speeds.push(n.speed);for(var i=0,a=0;a<e.speeds.length;a++)i+=e.speeds[a]||0;var o=i/e.speeds.length;o=8*o.toFixed(0),t.innerHTML=o+"Kbps"}}))}e.player.on("canplay",(function(){e.autoplay&&e.player.tech_.flvPlayer.play().catch((function(){}))})),e.player.on("timeupdate",(function(){e.updateTimeAt=(new Date).getTime(),e.pauseAt=0,e.endedAt=0,e.errorAt=0;var t=e.player.currentTime();!e.snapForPoster&&!e.poster_&&t>2&&e.player.cameraButton&&(e.snapForPoster=!0,e.player.cameraButton.el().click()),e.reloadCnt=0,e.$emit("timeupdate",t)})),e.player.on("error",(function(t){e.errorAt=(new Date).getTime(),e.player.error_&&4===e.player.error_.code?e.flvError("MediaError"):e.flvError(e.player.error_||t)})),e.player.on("ended",(function(){e.endedAt=(new Date).getTime(),e.live&&e.flvError("ended"),e.$emit("ended"),e.debug})),e.player.on("playing",(function(){e.playAt=(new Date).getTime(),e.avLoading=!1,e.$emit("play",e.player.currentTime()),e.debug})),e.showCustomButton&&e.customH5Button()}));else if(this.http&&this.m3u8){var r=(new Date).getTime(),i=function(){if(!e.player){var n=document.title;""!=e.resolution?(-1==e.resolution.indexOf(e.resolutiondefault)&&(e.resolutiondefault="yh"),e.player=videojs(e.$el.querySelector("video"),{autoplay:e.autoplay,stretch:e.stretch,controls:!0,plugins:{videoJsResolutionSwitcher:{default:e.resolutiondefault,dynamicLabel:!0}},playbackRates:e.live?[]:e.playbackRates,userActions:{doubleClick:e.dblclickFullscreen},language:e.language}),e.loadResolutionlist(e.player)):e.player=videojs(e.$el.querySelector("video"),{autoplay:e.autoplay,stretch:e.stretch,controls:!0,playbackRates:e.live?[]:e.playbackRates,userActions:{doubleClick:e.dblclickFullscreen},language:e.language}),e.live||1==e.playbackRate_||e.player.playbackRate(e.playbackRate_),e.player.on("ratechange",(function(){e.playbackRate_=e.player.playbackRate()})),e.showCameraButton&&!e.waterText&&e.player.snapshot(),e.player.one("ready",(function(){if(e.initVideoJSOK(),e.avLoading=!1,e.$emit("update:loading",!1),document.title=n,e.player.hotkeys(e.hotkeysOpt()),e.player.on("ended",(function(){e.endedAt=(new Date).getTime(),e.$emit("ended"),e.debug})),e.player.on("timeupdate",(function(){e.updateTimeAt=(new Date).getTime(),e.pauseAt=0,e.endedAt=0,e.errorAt=0,e.reloadCnt=0,e.$emit("timeupdate",e.player.currentTime())})),e.player.on("play",(function(){e.player.removeClass("vjs-has-started"),e.debug})),e.player.on("playing",(function(){e.player.addClass("vjs-has-started"),e.playAt=(new Date).getTime(),e.$emit("play",e.player.currentTime()),e.debug})),e.player.tech().on("usage",(function(t){e.debug,t&&"hls-live-resync"===t.name&&e.$emit("error",t.name)})),e.player.one("unknow-segment-type",(function(t){e.debug&&t&&t.name,e.reloadInterval>0&&setTimeout((function(){e.destroyVideoJS(),e.initVideoJS()}),e.reloadInterval/2)})),e.player.one("error",(function(t,n){e.errorAt=(new Date).getTime();var r=e.player.tech();if(r&&"livehls"==r.name_){var i=r.error();i&&3===i.code&&(t="MediaError")}if(e.$emit("error",t),e.live)e.reloadInterval>0&&setTimeout((function(){e.destroyVideoJS(),e.initVideoJS()}),e.reloadInterval);else if(e.hlsErrorSeek>0){var a=e.player.currentTime()+e.hlsErrorSeek;e.destroyVideoJS(),e.initVideoJS(a)}})),document.title=n,e.live)e.player&&e.player.reloadSourceOnError();else if(e.player&&(e.currentTime>0||t>0)){var r=t||e.currentTime;videojs.browser.IE_VERSION?e.player.on("loadeddata",(function(){setTimeout((function(){e.player.currentTime(r)}),500)})):e.isMobile()?setTimeout((function(){var t=e.$el.querySelector("video");t&&(t.currentTime=r)}),3200):e.player.currentTime(r)}e.autoplay&&setTimeout((function(){var t=e.$el.querySelector(".vjs-big-play-button");if(t){var n=window.getComputedStyle(t);n&&"block"===n.display&&t.click()}}),2e3),e.showCustomButton&&e.customH5Button()}))}},a=function t(){var n=(new Date).getTime();if(e.timeout>0&&n-r>1e3*e.timeout)return e.hlsTimer&&clearTimeout(e.hlsTimer),e.hlsTimer=0,e.$emit("update:loading",!1),e.avLoading=!1,void e.$emit("message",{type:"error",message:"加载播放资源失败"});if(!e.src)return e.hlsTimer&&clearTimeout(e.hlsTimer),e.hlsTimer=0,e.$emit("update:loading",!1),void(e.avLoading=!1);e.$emit("update:loading",!0);var a=new XMLHttpRequest;a.open(e.hlsTestMethod,e.src,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status>=200&&a.status<300||304===a.status?(e.hlsTimer&&clearTimeout(e.hlsTimer),e.hlsTimer=0,i()):(e.debug,e.hlsTimer=setTimeout(t,e.hlsTestInterval)))},a.send()};this.live&&this.hlsTestMethod&&this.hlsTestInterval>0?a():i()}else this.webrtc?(this.player=videojs(this.$el.querySelector("video"),{techOrder:["webrtc","html5"],autoplay:this.autoplay,stretch:this.stretch,controls:!0,webrtc:{debug:this.debug,autoplay:this.autoplay},userActions:{doubleClick:this.dblclickFullscreen},language:this.language}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",(function(){e.initVideoJSOK(),e.$emit("update:loading",!1),e.stretch_&&(e.player.tech_.el_.style.objectFit="fill"),e.player.hotkeys(e.hotkeysOpt()),e.player.on("error",(function(t){e.errorAt=(new Date).getTime(),e.$emit("error",t),e.rtcError(t),e.debug})),e.player.tech().on("error",(function(t){e.errorAt=(new Date).getTime(),e.$emit("error",t),e.rtcError(t),e.debug})),e.player.on("timeupdate",(function(){e.updateTimeAt=(new Date).getTime(),e.pauseAt=0,e.endedAt=0,e.errorAt=0;var t=e.player.currentTime();!e.snapForPoster&&!e.poster_&&t>2&&e.player.cameraButton&&(e.snapForPoster=!0,e.player.cameraButton.el().click()),e.reloadCnt=0,e.$emit("timeupdate",t)})),e.player.on("ended",(function(){e.endedAt=(new Date).getTime(),e.live&&e.rtcError("ended"),e.$emit("ended"),e.debug})),e.player.on("playing",(function(){e.playAt=(new Date).getTime(),e.avLoading=!1,e.$emit("play",e.player.currentTime()),e.debug})),e.showCustomButton&&e.customH5Button()}))):(this.player=videojs(this.$el.querySelector("video"),{autoplay:this.autoplay,stretch:this.stretch,controls:!0,playbackRates:this.live?[]:this.playbackRates,userActions:{doubleClick:this.dblclickFullscreen},language:this.language}),this.live||1==this.playbackRate_||this.player.playbackRate(this.playbackRate_),this.player.on("ratechange",(function(){e.playbackRate_=e.player.playbackRate()})),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",(function(){e.initVideoJSOK(),e.$emit("update:loading",!1),e.stretch_&&(e.player.tech_.el_.style.objectFit="fill"),e.player.hotkeys(e.hotkeysOpt()),e.showCustomButton&&e.customH5Button(),e.player.on("ended",(function(){e.endedAt=(new Date).getTime(),e.$emit("ended"),e.debug})),e.player.on("timeupdate",(function(){e.updateTimeAt=(new Date).getTime(),e.pauseAt=0,e.endedAt=0,e.errorAt=0,e.reloadCnt=0,e.$emit("timeupdate",e.player.currentTime())})),e.player.on("playing",(function(){e.playAt=(new Date).getTime(),e.avLoading=!1,e.$emit("play",e.player.currentTime()),e.debug})),e.player.on("error",(function(t){e.errorAt=(new Date).getTime(),e.$emit("error",t)}))})));if(this.live&&this.liveInterval>0&&!(this.isMobile()&&this.http&&this.m3u8)){this.liveCheckTimer&&(clearInterval(this.liveCheckTimer),this.liveCheckTimer=0);var o=0;this.liveCheckTimer=setInterval((function(){if(!e.updateTimeAt){if(!e.playAt){var t=(new Date).getTime()-e.startAt;return e.debug,void(!(t>=e.liveInterval&&e.src)||e.player&&e.player.isFullscreen()||(e.debug,e.reload()))}return!e.pauseAt||e.errorAt||e.endedAt?(o++,e.debug,void(!(o>=3&&e.src)||e.player&&e.player.isFullscreen()||(e.debug,e.reload()))):(t=(new Date).getTime()-e.pauseAt,e.debug,void(!(e.maxPauseSeconds>0&&t>=1e3*e.maxPauseSeconds&&e.src)||e.player&&e.player.isFullscreen()||(e.debug,e.reload())))}o=0,t=(new Date).getTime()-e.updateTimeAt,e.debug,!(t>=e.liveInterval&&e.src)||e.player&&e.player.isFullscreen()||(e.debug,e.reload())}),this.liveInterval)}}},createBase64:function(){var e=this.waterWidth,t=this.waterHeight,n=document.createElement("canvas"),r=n.getContext("2d");if(r){r.fillStyle=this.waterColor,r.textAlign="left",r.textBaseline="middle";var i=24;this.waterFont?r.font=this.waterFont:(r.font="24px Arial, Helvetica, sans-serif",r.measureText(this.waterText+"田").width>e&&(i=20,r.font="20px Arial, Helvetica, sans-serif",r.measureText(this.waterText+"田").width>e&&(i=16,r.font="16px Arial, Helvetica, sans-serif",r.measureText(this.waterText+"田").width>e&&(i=12,r.font="12px Arial, Helvetica, sans-serif")))),r.rotate(this.waterRotate);for(var a=this.waterText.split(/\\n/),o=0;o<a.length;o++)r.fillText(a[o],e/20,t+o*(i+4))}return n.toDataURL("image/png")},initDigitalZoom:function(){var e=this;if(this.digitalZoom){this.debug;var t=this.$el.querySelector("video");if(this.player&&t){var n=this.player.getAttribute("id");if(n){var r=document.getElementById(n);if(r){var i=null,a=!1,o=!1,s=!1,c=void 0,l=void 0,u=void 0,h=void 0,f=null,d=!1,p=this.digitalZoomColor,g=null,m=n+"digital-zoom-rectangle",v=0,y=!1;r.addEventListener("mousedown",(function(e){if(e.target==t&&0==(i=e.button)){var n=Date.now();if(n-v<500)return y=!0,a=!1,c=0,void(l=0);y=!1,v=n,a=!0,c=e.offsetX,l=e.offsetY}})),r.addEventListener("mousemove",(function(n){if(!d&&!y&&0==i){if(s){if(s=!1,a||!(1==n.which||n.key&&1===n.key.length&&1==n.key.charCodeAt()))return t.style.cursor="",void(d?w():b());a=!0}if(!a)return;u=n.offsetX,h=n.offsetY;var v=Math.abs(u-c),x=Math.abs(h-l),C=void 0,_=void 0;if(_=h<l?h:l,(C=u<c?u:c)<0||_<0)return;if(v<3||x<3)return;g||(g=n.target),(f=document.querySelector("."+m))||((f=document.createElement("div")).className=m,f.style.cursor="zoom-in",f.style.position="absolute",f.style.border="2px dashed "+p,r.appendChild(f)),o=!0,t.style.cursor="zoom-in",e.zoomDrawing=!0,n.target==g?(f.style.left=C+"px",f.style.top=_+"px",f.style.width=v+"px",f.style.height=x+"px"):n&&n.target&&n.target.className==m?(f.style.width=Math.abs(u)+"px",f.style.height=Math.abs(h)+"px"):A(n)}})),r.addEventListener("mouseup",(function(e){a=!1,0!=i||y||(d?e.target==t&&w():b())}));var A=function(e){s=!0,0==i&&(a=!1)};r.addEventListener("mouseleave",A);var b=function(n){var i,a,s,c;if(f){if(i=parseInt(f.style.left),a=parseInt(f.style.top),s=parseInt(f.style.width),c=parseInt(f.style.height),r.removeChild(f),f=null,e.zoomDrawing=!1,!(s<3||c<3)){o&&(t.style.cursor="zoom-out");var l=t,u=l.offsetWidth,h=l.offsetHeight,p=u/s*100,g=h/c*100,m=a*(h/c),v=i*(u/s);e.stretch_||(u/s>h/c?(g=u/s*100,m=a*(u/s)):(p=h/c*100,v=i*(h/c))),l.style.top="-"+m+"px",l.style.left="-"+v+"px",l.style.width=p+"%",l.style.height=g+"%",d=!0}}else e.zoomDrawing=!1},w=function(e){t.style.cursor="",d=!1,o=!1,c=0,l=0;var n=t;n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",i=null}}}}}}}};n("UBF9");var c=function(e,t,n,r,i,a,o,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"player-wrapper"},[n("div",{class:["video-wrapper",{"video-wrapper-stretch":this.stretch_}],style:e.videoWrapperStyle},[n("div",{staticClass:"video-inner",class:{live:e.live,"av-loading":e.avLoading,"hide-waiting":e.hideWaiting,"hide-controls":!e.controls,"zoom-drawing":e.zoomDrawing,"hide-big-play-button":e.hideBigPlayButton,"hide-snapshot-button":e.hideSnapshotButton,"hide-fullscreen-button":e.hideFullscreenButton,"hide-stretch-button":e.hideStretchButton,"hide-fluent-button":e.hideFluentButton,"hide-pic-in-pic":e.hidePicInPic,"hide-live-text":e.hideLiveText,"show-time":e.showTime&&!e.live},staticStyle:{position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.waterText&&e.showSlot,expression:"waterText && showSlot"}],staticClass:"video-water",style:e.waterStyle}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSlot,expression:"showSlot"}],staticClass:"video-slot"},[e._t("default")],2),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.videoTitle&&e.showSlot,expression:"videoTitle && showSlot"}],staticClass:"video-title",attrs:{title:e.videoTitle}},[e._v(e._s(e.videoTitle))])])])}),[],!1,null,null,null).exports;c.install=function(e){"undefined"!=typeof window&&window.Vue&&(e=window.Vue),e.component(c.name,c)},t.default=c},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n}});
/***/},
/***/"3f6b":
/***/function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0};
/***/},
/***/"3f7e":
/***/function(e,t,n){"use strict";var r=n("b5db").match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},
/***/"3f84":
/***/function(e,t,n){
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
var r=n("f083");r(r.P,"Array",{copyWithin:n("f945")}),n("66b7")("copyWithin")},
/***/"3f8c":
/***/function(e,t,n){"use strict";e.exports={}},
/***/"3fab":
/***/function(e,t,n){var r=n("f083");r(r.P,"String",{
// 21.1.3.13 String.prototype.repeat(count)
repeat:n("6012")})},
/***/4002:
/***/function(e,t,n){"use strict";
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
n("3ca3");var r,i=n("23e7"),a=n("83ab"),o=n("f354"),s=n("cfe9"),c=n("0366"),l=n("e330"),u=n("cb2d"),h=n("edd0"),f=n("19aa"),d=n("1a2d"),p=n("60da"),g=n("4df4"),m=n("f36a"),v=n("6547").codeAt,y=n("5fb2"),A=n("577e"),b=n("d44e"),w=n("d6d6"),x=n("5352"),C=n("69f3"),_=C.set,I=C.getterFor("URL"),E=x.URLSearchParams,k=x.getState,S=s.URL,B=s.TypeError,M=s.parseInt,T=Math.floor,O=Math.pow,D=l("".charAt),P=l(/./.exec),L=l([].join),Q=l(1..toString),R=l([].pop),j=l([].push),N=l("".replace),F=l([].shift),z=l("".split),H=l("".slice),U=l("".toLowerCase),G=l([].unshift),V="Invalid scheme",W="Invalid host",q="Invalid port",Y=/[a-z]/i,K=/[\d+-.a-z]/i,$=/\d/,J=/^0x/i,X=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,n,r,i;
// ipv4
if("number"==typeof e){for(t=[],n=0;n<4;n++)G(t,e%256),e=T(e/256);return L(t,".")}
// ipv6
if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=Q(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},ce=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),le=p({},ce,{"#":1,"?":1,"{":1,"}":1}),ue=p({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),he=function(e,t){var n=v(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var n;return 2===e.length&&P(Y,D(e,0))&&(":"===(n=D(e,1))||!t&&"|"===n)},pe=function(e){var t;return e.length>1&&de(H(e,0,2))&&(2===e.length||"/"===(t=D(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===U(e)},me={},ve={},ye={},Ae={},be={},we={},xe={},Ce={},_e={},Ie={},Ee={},ke={},Se={},Be={},Me={},Te={},Oe={},De={},Pe={},Le={},Qe={},Re=function(e,t,n){var r,i,a,o=A(e);if(t){if(i=this.parse(o))throw new B(i);this.searchParams=null}else{if(void 0!==n&&(r=new Re(n,!0)),i=this.parse(o,null,r))throw new B(i);(a=k(new E)).bindURL(this),this.searchParams=a}};Re.prototype={type:"URL",
// https://url.spec.whatwg.org/#url-parsing
// eslint-disable-next-line max-statements -- TODO
parse:function(e,t,n){var i,a,o,s,c,l=this,u=t||me,h=0,f="",p=!1,v=!1,y=!1;for(e=A(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=N(e,re,""),e=N(e,ie,"$1")),e=N(e,ae,""),i=g(e);h<=i.length;){switch(a=i[h],u){case me:if(!a||!P(Y,a)){if(t)return V;u=ye;continue}f+=U(a),u=ve;break;case ve:if(a&&(P(K,a)||"+"===a||"-"===a||"."===a))f+=U(a);else{if(":"!==a){if(t)return V;f="",u=ye,h=0;continue}if(t&&(l.isSpecial()!==d(fe,f)||"file"===f&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&fe[l.scheme]===l.port&&(l.port=null));f="","file"===l.scheme?u=Be:l.isSpecial()&&n&&n.scheme===l.scheme?u=Ae:l.isSpecial()?u=Ce:"/"===i[h+1]?(u=be,h++):(l.cannotBeABaseURL=!0,j(l.path,""),u=Pe)}break;case ye:if(!n||n.cannotBeABaseURL&&"#"!==a)return V;if(n.cannotBeABaseURL&&"#"===a){l.scheme=n.scheme,l.path=m(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=Qe;break}u="file"===n.scheme?Be:we;continue;case Ae:if("/"!==a||"/"!==i[h+1]){u=we;continue}u=_e,h++;break;case be:if("/"===a){u=Ie;break}u=De;continue;case we:if(l.scheme=n.scheme,a===r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query;else if("/"===a||"\\"===a&&l.isSpecial())u=xe;else if("?"===a)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query="",u=Le;else{if("#"!==a){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.path.length--,u=De;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query,l.fragment="",u=Qe}break;case xe:if(!l.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=De;continue}u=Ie}else u=_e;break;case Ce:if(u=_e,"/"!==a||"/"!==D(f,h+1))continue;h++;break;case _e:if("/"!==a&&"\\"!==a){u=Ie;continue}break;case Ie:if("@"===a){p&&(f="%40"+f),p=!0,o=g(f);for(var b=0;b<o.length;b++){var w=o[b];if(":"!==w||y){var x=he(w,ue);y?l.password+=x:l.username+=x}else y=!0}f=""}else if(a===r||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()){if(p&&""===f)return"Invalid authority";h-=g(f).length+1,f="",u=Ee}else f+=a;break;case Ee:case ke:if(t&&"file"===l.scheme){u=Te;continue}if(":"!==a||v){if(a===r||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()){if(l.isSpecial()&&""===f)return W;if(t&&""===f&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(f))return s;if(f="",u=Oe,t)return;continue}"["===a?v=!0:"]"===a&&(v=!1),f+=a}else{if(""===f)return W;if(s=l.parseHost(f))return s;if(f="",u=Se,t===ke)return}break;case Se:if(!P($,a)){if(a===r||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()||t){if(""!==f){var C=M(f,10);if(C>65535)return q;l.port=l.isSpecial()&&C===fe[l.scheme]?null:C,f=""}if(t)return;u=Oe;continue}return q}f+=a;break;case Be:if(l.scheme="file","/"===a||"\\"===a)u=Me;else{if(!n||"file"!==n.scheme){u=De;continue}switch(a){case r:l.host=n.host,l.path=m(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=m(n.path),l.query="",u=Le;break;case"#":l.host=n.host,l.path=m(n.path),l.query=n.query,l.fragment="",u=Qe;break;default:pe(L(m(i,h),""))||(l.host=n.host,l.path=m(n.path),l.shortenPath()),u=De;continue}}break;case Me:if("/"===a||"\\"===a){u=Te;break}n&&"file"===n.scheme&&!pe(L(m(i,h),""))&&(de(n.path[0],!0)?j(l.path,n.path[0]):l.host=n.host),u=De;continue;case Te:if(a===r||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&de(f))u=De;else if(""===f){if(l.host="",t)return;u=Oe}else{if(s=l.parseHost(f))return s;if("localhost"===l.host&&(l.host=""),t)return;f="",u=Oe}continue}f+=a;break;case Oe:if(l.isSpecial()){if(u=De,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==r&&(u=De,"/"!==a))continue}else l.fragment="",u=Qe;else l.query="",u=Le;break;case De:if(a===r||"/"===a||"\\"===a&&l.isSpecial()||!t&&("?"===a||"#"===a)){if(".."===(c=U(c=f))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(l.shortenPath(),"/"===a||"\\"===a&&l.isSpecial()||j(l.path,"")):ge(f)?"/"===a||"\\"===a&&l.isSpecial()||j(l.path,""):("file"===l.scheme&&!l.path.length&&de(f)&&(l.host&&(l.host=""),f=D(f,0)+":"),j(l.path,f)),f="","file"===l.scheme&&(a===r||"?"===a||"#"===a))for(;l.path.length>1&&""===l.path[0];)F(l.path);"?"===a?(l.query="",u=Le):"#"===a&&(l.fragment="",u=Qe)}else f+=he(a,le);break;case Pe:"?"===a?(l.query="",u=Le):"#"===a?(l.fragment="",u=Qe):a!==r&&(l.path[0]+=he(a,se));break;case Le:t||"#"!==a?a!==r&&("'"===a&&l.isSpecial()?l.query+="%27":l.query+="#"===a?"%23":he(a,se)):(l.fragment="",u=Qe);break;case Qe:a!==r&&(l.fragment+=he(a,ce))}h++}},
// https://url.spec.whatwg.org/#host-parsing
parseHost:function(e){var t,n,r;if("["===D(e,0)){if("]"!==D(e,e.length-1))return W;if(t=function(e){var t,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,h=0,f=function(){return D(e,h)};if(":"===f()){if(":"!==D(e,1))return;h+=2,u=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=n=0;n<4&&P(ee,f());)t=16*t+M(f(),16),h++,n++;if("."===f()){if(0===n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."===f()&&r<4))return;h++}if(!P($,f()))return;for(;P($,f());){if(a=M(f(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;h++}c[l]=256*c[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;c[l++]=t}else{if(null!==u)return;h++,u=++l}}if(null!==u)for(o=l-u,l=7;0!==l&&o>0;)s=c[l],c[l--]=c[u+o-1],c[u+--o]=s;else if(8!==l)return;return c}(H(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=y(e),P(te,e))return W;if(t=function(e){var t,n,r,i,a,o,s,c=z(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=c[r]))return e;if(a=10,i.length>1&&"0"===D(i,0)&&(a=P(J,i)?16:8,i=H(i,8===a?1:2)),""===i)o=0;else{if(!P(10===a?Z:8===a?X:ee,i))return e;o=M(i,a)}j(n,o)}for(r=0;r<t;r++)if(o=n[r],r===t-1){if(o>=O(256,5-t))return null}else if(o>255)return null;for(s=R(n),r=0;r<n.length;r++)s+=n[r]*O(256,3-r);return s}(e),null===t)return W;this.host=t}else{if(P(ne,e))return W;for(t="",n=g(e),r=0;r<n.length;r++)t+=he(n[r],se);this.host=t}},
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},
// https://url.spec.whatwg.org/#include-credentials
includesCredentials:function(){return""!==this.username||""!==this.password},
// https://url.spec.whatwg.org/#is-special
isSpecial:function(){return d(fe,this.scheme)},
// https://url.spec.whatwg.org/#shorten-a-urls-path
shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&de(e[0],!0)||e.length--},
// https://url.spec.whatwg.org/#concept-url-serializer
serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=oe(i),null!==a&&(l+=":"+a)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+L(o,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},
// https://url.spec.whatwg.org/#dom-url-href
setHref:function(e){var t=this.parse(e);if(t)throw new B(t);this.searchParams.update()},
// https://url.spec.whatwg.org/#dom-url-origin
getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new je(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+oe(this.host)+(null!==t?":"+t:""):"null"},
// https://url.spec.whatwg.org/#dom-url-protocol
getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(A(e)+":",me)},
// https://url.spec.whatwg.org/#dom-url-username
getUsername:function(){return this.username},setUsername:function(e){var t=g(A(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=he(t[n],ue)}},
// https://url.spec.whatwg.org/#dom-url-password
getPassword:function(){return this.password},setPassword:function(e){var t=g(A(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=he(t[n],ue)}},
// https://url.spec.whatwg.org/#dom-url-host
getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?oe(e):oe(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},
// https://url.spec.whatwg.org/#dom-url-hostname
getHostname:function(){var e=this.host;return null===e?"":oe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},
// https://url.spec.whatwg.org/#dom-url-port
getPort:function(){var e=this.port;return null===e?"":A(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=A(e))?this.port=null:this.parse(e,Se))},
// https://url.spec.whatwg.org/#dom-url-pathname
getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Oe))},
// https://url.spec.whatwg.org/#dom-url-search
getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=A(e))?this.query=null:("?"===D(e,0)&&(e=H(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},
// https://url.spec.whatwg.org/#dom-url-searchparams
getSearchParams:function(){return this.searchParams.facade},
// https://url.spec.whatwg.org/#dom-url-hash
getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=A(e))?("#"===D(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,Qe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};
// `URL` constructor
// https://url.spec.whatwg.org/#url-class
var je=function(e/* , base */){var t=f(this,Ne),n=w(arguments.length,1)>1?arguments[1]:void 0,r=_(t,new Re(e,!1,n));a||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ne=je.prototype,Fe=function(e,t){return{get:function(){return I(this)[e]()},set:t&&function(e){return I(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(
// `URL.prototype.href` accessors pair
// https://url.spec.whatwg.org/#dom-url-href
h(Ne,"href",Fe("serialize","setHref")),
// `URL.prototype.origin` getter
// https://url.spec.whatwg.org/#dom-url-origin
h(Ne,"origin",Fe("getOrigin")),
// `URL.prototype.protocol` accessors pair
// https://url.spec.whatwg.org/#dom-url-protocol
h(Ne,"protocol",Fe("getProtocol","setProtocol")),
// `URL.prototype.username` accessors pair
// https://url.spec.whatwg.org/#dom-url-username
h(Ne,"username",Fe("getUsername","setUsername")),
// `URL.prototype.password` accessors pair
// https://url.spec.whatwg.org/#dom-url-password
h(Ne,"password",Fe("getPassword","setPassword")),
// `URL.prototype.host` accessors pair
// https://url.spec.whatwg.org/#dom-url-host
h(Ne,"host",Fe("getHost","setHost")),
// `URL.prototype.hostname` accessors pair
// https://url.spec.whatwg.org/#dom-url-hostname
h(Ne,"hostname",Fe("getHostname","setHostname")),
// `URL.prototype.port` accessors pair
// https://url.spec.whatwg.org/#dom-url-port
h(Ne,"port",Fe("getPort","setPort")),
// `URL.prototype.pathname` accessors pair
// https://url.spec.whatwg.org/#dom-url-pathname
h(Ne,"pathname",Fe("getPathname","setPathname")),
// `URL.prototype.search` accessors pair
// https://url.spec.whatwg.org/#dom-url-search
h(Ne,"search",Fe("getSearch","setSearch")),
// `URL.prototype.searchParams` getter
// https://url.spec.whatwg.org/#dom-url-searchparams
h(Ne,"searchParams",Fe("getSearchParams")),
// `URL.prototype.hash` accessors pair
// https://url.spec.whatwg.org/#dom-url-hash
h(Ne,"hash",Fe("getHash","setHash"))),
// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
u(Ne,"toJSON",(function(){return I(this).serialize()}),{enumerable:!0}),
// `URL.prototype.toString` method
// https://url.spec.whatwg.org/#URL-stringification-behavior
u(Ne,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),S){var ze=S.createObjectURL,He=S.revokeObjectURL;
// `URL.createObjectURL` method
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
ze&&u(je,"createObjectURL",c(ze,S)),
// `URL.revokeObjectURL` method
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
He&&u(je,"revokeObjectURL",c(He,S))}b(je,"URL"),i({global:!0,constructor:!0,forced:!o,sham:!a},{URL:je})},
/***/4003:
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083");r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},
/***/"401b":
/***/function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e){return[e[0],e[1]]}function o(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function c(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function u(e){return Math.sqrt(f(e))}n.r(t),
/* harmony export (binding) */n.d(t,"create",(function(){return r})),
/* harmony export (binding) */n.d(t,"copy",(function(){return i})),
/* harmony export (binding) */n.d(t,"clone",(function(){return a})),
/* harmony export (binding) */n.d(t,"set",(function(){return o})),
/* harmony export (binding) */n.d(t,"add",(function(){return s})),
/* harmony export (binding) */n.d(t,"scaleAndAdd",(function(){return c})),
/* harmony export (binding) */n.d(t,"sub",(function(){return l})),
/* harmony export (binding) */n.d(t,"len",(function(){return u})),
/* harmony export (binding) */n.d(t,"length",(function(){return h})),
/* harmony export (binding) */n.d(t,"lenSquare",(function(){return f})),
/* harmony export (binding) */n.d(t,"lengthSquare",(function(){return d})),
/* harmony export (binding) */n.d(t,"mul",(function(){return p})),
/* harmony export (binding) */n.d(t,"div",(function(){return g})),
/* harmony export (binding) */n.d(t,"dot",(function(){return m})),
/* harmony export (binding) */n.d(t,"scale",(function(){return v})),
/* harmony export (binding) */n.d(t,"normalize",(function(){return y})),
/* harmony export (binding) */n.d(t,"distance",(function(){return A})),
/* harmony export (binding) */n.d(t,"dist",(function(){return b})),
/* harmony export (binding) */n.d(t,"distanceSquare",(function(){return w})),
/* harmony export (binding) */n.d(t,"distSquare",(function(){return x})),
/* harmony export (binding) */n.d(t,"negate",(function(){return C})),
/* harmony export (binding) */n.d(t,"lerp",(function(){return _})),
/* harmony export (binding) */n.d(t,"applyTransform",(function(){return I})),
/* harmony export (binding) */n.d(t,"min",(function(){return E})),
/* harmony export (binding) */n.d(t,"max",(function(){return k}));var h=u;function f(e){return e[0]*e[0]+e[1]*e[1]}var d=f;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function y(e,t){var n=u(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function A(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=A;function w(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var x=w;function C(e,t){return e[0]=-t[0],e[1]=-t[1],e}function _(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function I(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function E(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function k(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}
/***/},
/***/4039:
/***/function(e,t,n){"use strict";
/**
 * @ignore
 * base event object for custom and dom event.
 * @author yiminghe@gmail.com
 */function r(){return!1}function i(){return!0}function a(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),a.prototype={isEventObject:1,constructor:a,isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r,preventDefault:function(){this.isDefaultPrevented=i},stopPropagation:function(){this.isPropagationStopped=i},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i,
// fixed 1.2
// call stopPropagation implicitly
this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=a,e.exports=t.default},
/***/4041:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return s})),
/* harmony export (binding) */n.d(t,"a",(function(){return o}));
/* harmony import */var r=n("e0d3"),i=Object(r.o)(),a=Object(r.o)(),o=/** @class */function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var a=Object(r.r)(this.get("color",!0)),o=this.get("colorLayer",!0);return c(this,i,a,o,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;
/***/(t=i)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function s(e,t,n,i){var o=Object(r.r)(e.get(["aria","decal","decals"]));return c(e,a,o,null,t,n,i)}
/**
 * @param name MUST NOT be null/undefined. Otherwise call this function
 *             twise with the same parameters will get different result.
 * @param scope default this.
 * @return Can be null/undefined
 */
function c(e,t,n,r,i,a,o){var s=t(a=a||e),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};
// Use `hasOwnProperty` to avoid conflict with Object.prototype.
if(l.hasOwnProperty(i))return l[i];var u=null!=o&&r?function(e,t){
// TODO palettes must be in order
for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;
// In case can't find in layered color palette.
if((u=u||n)&&u.length){var h=u[c];return i&&(l[i]=h),s.paletteIdx=(c+1)%u.length,h}}},
/***/4086:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("5a89");
/**
 * Loads a Wavefront .mtl file specifying materials
 */class i extends r.P{constructor(e){super(e)}
/**
	 * Loads and parses a MTL asset from a URL.
	 *
	 * @param {String} url - URL to the MTL file.
	 * @param {Function} [onLoad] - Callback invoked with the loaded object.
	 * @param {Function} [onProgress] - Callback for download progress.
	 * @param {Function} [onError] - Callback for download errors.
	 *
	 * @see setPath setResourcePath
	 *
	 * @note In order for relative texture references to resolve correctly
	 * you must call setResourcePath() explicitly prior to load.
	 */load(e,t,n,i){const a=this,o=""===this.path?r.Q.extractUrlBase(e):this.path,s=new r.t(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){try{t(a.parse(n,o))}catch(t){i&&i(t),a.manager.itemError(e)}}),n,i)}setMaterialOptions(e){return this.materialOptions=e,this}
/**
	 * Parses a MTL file.
	 *
	 * @param {String} text - Content of MTL file
	 * @return {MaterialCreator}
	 *
	 * @see setPath setResourcePath
	 *
	 * @note In order for relative texture references to resolve correctly
	 * you must call setResourcePath() explicitly prior to parse.
	 */parse(e,t){const n=e.split("\n");let r={};const i=/\s+/,o={};for(let e=0;e<n.length;e++){let t=n[e];if(t=t.trim(),0===t.length||"#"===t.charAt(0))
// Blank line or comment ignore
continue;const a=t.indexOf(" ");let s=a>=0?t.substring(0,a):t;s=s.toLowerCase();let c=a>=0?t.substring(a+1):"";if(c=c.trim(),"newmtl"===s)
// New material
r={name:c},o[c]=r;else if("ka"===s||"kd"===s||"ks"===s||"ke"===s){const e=c.split(i,3);r[s]=[parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2])]}else r[s]=c}const s=new a(this.resourcePath||t,this.materialOptions);return s.setCrossOrigin(this.crossOrigin),s.setManager(this.manager),s.setMaterials(o),s}}
/**
 * Create a new MTLLoader.MaterialCreator
 * @param baseUrl - Url relative to which textures are loaded
 * @param options - Set of options on how to construct the materials
 *                  side: Which side to apply the material
 *                        FrontSide (default), THREE.BackSide, THREE.DoubleSide
 *                  wrap: What type of wrapping to apply for textures
 *                        RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping
 *                  normalizeRGB: RGBs need to be normalized to 0-1 from 0-255
 *                                Default: false, assumed to be already normalized
 *                  ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's
 *                                  Default: false
 * @constructor
 */class a{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=void 0!==this.options.side?this.options.side:r.v,this.wrap=void 0!==this.options.wrap?this.options.wrap:r.xb}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){
// Convert materials info into normalized form based on options
const r=e[n],i={};t[n]=i;for(const e in r){let t=!0,n=r[e];const a=e.toLowerCase();switch(a){case"kd":case"ka":case"ks":
// Diffuse color (color under white light) using RGB values
this.options&&this.options.normalizeRGB&&(n=[n[0]/255,n[1]/255,n[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===n[0]&&0===n[1]&&0===n[2]&&(
// ignore
t=!1)}t&&(i[a]=n)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){
// Create material
const t=this,n=this.materialsInfo[e],i={name:e,side:this.side};function a(e,n){if(i[e])return;// Keep the first encountered texture
const a=t.getTextureParams(n,i),o=t.loadTexture((s=t.baseUrl,"string"!=typeof(c=a.url)||""===c?"":
// Absolute URL
/^https?:\/\//i.test(c)?c:s+c));var s,c;o.repeat.copy(a.scale),o.offset.copy(a.offset),o.wrapS=t.wrap,o.wrapT=t.wrap,"map"!==e&&"emissiveMap"!==e||(o.encoding=r.Tb),i[e]=o}for(const e in n){const t=n[e];let o;if(""!==t)switch(e.toLowerCase()){
// Ns is material specular exponent
case"kd":
// Diffuse color (color under white light) using RGB values
i.color=(new r.j).fromArray(t).convertSRGBToLinear();break;case"ks":
// Specular color (color when light is reflected from shiny surface) using RGB values
i.specular=(new r.j).fromArray(t).convertSRGBToLinear();break;case"ke":
// Emissive using RGB values
i.emissive=(new r.j).fromArray(t).convertSRGBToLinear();break;case"map_kd":
// Diffuse texture map
a("map",t);break;case"map_ks":
// Specular map
a("specularMap",t);break;case"map_ke":
// Emissive map
a("emissiveMap",t);break;case"norm":a("normalMap",t);break;case"map_bump":case"bump":
// Bump texture map
a("bumpMap",t);break;case"map_d":
// Alpha map
a("alphaMap",t),i.transparent=!0;break;case"ns":
// The specular exponent (defines the focus of the specular highlight)
// A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000.
i.shininess=parseFloat(t);break;case"d":o=parseFloat(t),o<1&&(i.opacity=o,i.transparent=!0);break;case"tr":o=parseFloat(t),this.options&&this.options.invertTrProperty&&(o=1-o),o>0&&(i.opacity=1-o,i.transparent=!0)}}return this.materials[e]=new r.Z(i),this.materials[e]}getTextureParams(e,t){const n={scale:new r.Ob(1,1),offset:new r.Ob(0,0)},i=e.split(/\s+/);let a;return a=i.indexOf("-bm"),a>=0&&(t.bumpScale=parseFloat(i[a+1]),i.splice(a,2)),a=i.indexOf("-s"),a>=0&&(n.scale.set(parseFloat(i[a+1]),parseFloat(i[a+2])),i.splice(a,4)),a=i.indexOf("-o"),a>=0&&(n.offset.set(parseFloat(i[a+1]),parseFloat(i[a+2])),i.splice(a,4)),n.url=i.join(" ").trim(),n}loadTexture(e,t,n,i,a){const o=void 0!==this.manager?this.manager:r.n;let s=o.getHandler(e);null===s&&(s=new r.Jb(o)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin);const c=s.load(e,n,i,a);return void 0!==t&&(c.mapping=t),c}}
/***/},
/***/"408a":
/***/function(e,t,n){"use strict";var r=n("e330");
// `thisNumberValue` abstract operation
// https://tc39.es/ecma262/#sec-thisnumbervalue
e.exports=r(1..valueOf)},
/***/"408c":
/***/function(e,t,n){var r=n("2b3e");
/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */e.exports=function(){return r.Date.now()}},
/***/4098:
/***/function(e,t,n){var r=n("f083"),i=n("67fe");
// 20.1.2.13 Number.parseInt(string, radix)
r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},
/***/"40d5":
/***/function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){
// eslint-disable-next-line es/no-function-prototype-bind -- safe
var e=function(){/* empty */}.bind();
// eslint-disable-next-line no-prototype-builtins -- safe
return"function"!=typeof e||e.hasOwnProperty("prototype")}))},
/***/4106:
/***/function(e,t,n){var r=n("4aad"),i=n("6751"),a=n("4b17"),o=n("76dd");
/**
 * Pads `string` on the left side if it's shorter than `length`. Padding
 * characters are truncated if they exceed `length`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.padStart('abc', 6);
 * // => '   abc'
 *
 * _.padStart('abc', 6, '_-');
 * // => '_-_abc'
 *
 * _.padStart('abc', 3);
 * // => 'abc'
 */e.exports=function(e,t,n){e=o(e);var s=(t=a(t))?i(e):0;return t&&s<t?r(t-s,n)+e:e}},
/***/"415f":
/***/function(e,t,n){"use strict";var r=n("c668"),i=n("4c8d").getWeak,a=n("d77f"),o=n("9fe8"),s=n("928a"),c=n("8fc4"),l=n("cffc"),u=n("2fb2"),h=n("798a"),f=l(5),d=l(6),p=0,g=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},v=function(e,t){return f(e.a,(function(e){return e[0]===t}))};m.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var l=e((function(e,r){s(e,l,t,"_i"),e._t=t,// collection type
e._i=p++,// collection id
e._l=void 0,// leak store for uncaught frozen objects
null!=r&&c(r,n,e[a],e)}));return r(l.prototype,{
// 23.3.3.2 WeakMap.prototype.delete(key)
// 23.4.3.3 WeakSet.prototype.delete(value)
delete:function(e){if(!o(e))return!1;var n=i(e);return!0===n?g(h(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},
// 23.3.3.4 WeakMap.prototype.has(key)
// 23.4.3.4 WeakSet.prototype.has(value)
has:function(e){if(!o(e))return!1;var n=i(e);return!0===n?g(h(this,t)).has(e):n&&u(n,this._i)}}),l},def:function(e,t,n){var r=i(a(t),!0);return!0===r?g(e).set(t,n):r[e._i]=n,e},ufstore:g}},
/***/"418c":
/***/function(e,t,n){"use strict";
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
n("e9d8")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},
/***/"41b2":
/***/function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("3f6b"),a=(r=i)&&r.__esModule?r:{default:r};t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},
/***/"41c3":
/***/function(e,t,n){var r=n("1a8c"),i=n("eac5"),a=n("ec8c"),o=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},
/***/"41d0":
/***/function(e,t){
// 消息扩展
const n=new Uint32Array(68),r=new Uint32Array(64);// W'
/**
 * 循环左移
 */
function i(e,t){const n=31&t;return e<<n|e>>>32-n}
/**
 * 二进制异或运算
 */function a(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n[r]=255&(e[r]^t[r]);return n}
/**
 * 压缩函数中的置换函数 P0(X) = X xor (X <<< 9) xor (X <<< 17)
 */function o(e){return e^i(e,9)^i(e,17)}
/**
 * 消息扩展中的置换函数 P1(X) = X xor (X <<< 15) xor (X <<< 23)
 */
/**
 * sm3 本体
 */
function s(e){let t=8*e.length,a=t%512;
// k 是满足 len + 1 + k = 448mod512 的最小的非负整数
// 如果 448 <= (512 % len) < 512，需要多补充 (len % 448) 比特'0'以满足总比特长度为512的倍数
a=a>=448?512-a%448-1:448-a-1;
// 填充
const s=new Array((a-7)/8),c=new Array(8);for(let e=0,t=s.length;e<t;e++)s[e]=0;for(let e=0,t=c.length;e<t;e++)c[e]=0;t=t.toString(2);for(let e=7;e>=0;e--)if(t.length>8){const n=t.length-8;c[e]=parseInt(t.substr(n),2),t=t.substr(0,n)}else t.length>0&&(c[e]=parseInt(t,2),t="");const l=new Uint8Array([...e,128,...s,...c]),u=new DataView(l.buffer,0),h=l.length/64,f=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let e=0;e<h;e++){n.fill(0),r.fill(0);
// 将消息分组B划分为 16 个字 W0， W1，……，W15
const t=16*e;for(let e=0;e<16;e++)n[e]=u.getUint32(4*(t+e),!1);
// W16 ～ W67：W[j] <- P1(W[j−16] xor W[j−9] xor (W[j−3] <<< 15)) xor (W[j−13] <<< 7) xor W[j−6]
for(let e=16;e<68;e++)n[e]=(d=n[e-16]^n[e-9]^i(n[e-3],15))^i(d,15)^i(d,23)^i(n[e-13],7)^n[e-6];
// W′0 ～ W′63：W′[j] = W[j] xor W[j+4]
for(let e=0;e<64;e++)r[e]=n[e]^n[e+4];
// 压缩
const a=2043430169,s=2055708042;
// 字寄存器
let c,l,h,p,g,m=f[0],v=f[1],y=f[2],A=f[3],b=f[4],w=f[5],x=f[6],C=f[7];for(let e=0;e<64;e++)g=e>=0&&e<=15?a:s,c=i(i(m,12)+b+i(g,e),7),l=c^i(m,12),h=(e>=0&&e<=15?m^v^y:m&v|m&y|v&y)+A+l+r[e],p=(e>=0&&e<=15?b^w^x:b&w|~b&x)+C+c+n[e],A=y,y=i(v,9),v=m,m=h,C=x,x=i(w,19),w=b,b=o(p);f[0]^=m,f[1]^=v,f[2]^=y,f[3]^=A,f[4]^=b,f[5]^=w,f[6]^=x,f[7]^=C}
// 转回 uint8
var d;const p=[];for(let e=0,t=f.length;e<t;e++){const t=f[e];p.push((4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t)}return p}
/**
 * hmac 实现
 */const c=new Uint8Array(64),l=new Uint8Array(64);for(let e=0;e<64;e++)c[e]=54,l[e]=92;e.exports={sm3:s,hmac:function(e,t){for(
// 密钥填充
t.length>64&&(t=s(t));t.length<64;)t.push(0);const n=a(t,c),r=a(t,l),i=s([...n,...e]);return s([...r,...i])}}
/***/},
/***/"41ef":
/***/function(e,t,n){"use strict";n.r(t),
/* harmony export (binding) */n.d(t,"parse",(function(){return v})),
/* harmony export (binding) */n.d(t,"lift",(function(){return A})),
/* harmony export (binding) */n.d(t,"toHex",(function(){return b})),
/* harmony export (binding) */n.d(t,"fastLerp",(function(){return w})),
/* harmony export (binding) */n.d(t,"fastMapToColor",(function(){return x})),
/* harmony export (binding) */n.d(t,"lerp",(function(){return C})),
/* harmony export (binding) */n.d(t,"mapToColor",(function(){return _})),
/* harmony export (binding) */n.d(t,"modifyHSL",(function(){return I})),
/* harmony export (binding) */n.d(t,"modifyAlpha",(function(){return E})),
/* harmony export (binding) */n.d(t,"stringify",(function(){return k})),
/* harmony export (binding) */n.d(t,"lum",(function(){return S})),
/* harmony export (binding) */n.d(t,"random",(function(){return B})),
/* harmony export (binding) */n.d(t,"liftColor",(function(){return T}));
/* harmony import */var r=n("d51b"),i=n("6d8b"),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};
/* harmony import */function o(e){return(e=Math.round(e))<0?0:e>255?255:e}function s(e){return e<0?0:e>1?1:e}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function h(e,t,n){return e+(t-e)*n}function f(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new r.a(20),g=null;function m(e,t){g&&d(g,t),g=p.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=p.get(e);if(n)return d(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in a)return d(t,a[r]),m(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(f(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),m(e,t),t):void f(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(f(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),m(e,t),t):void f(t,0,0,0,1):void 0;var s=r.indexOf("("),u=r.indexOf(")");if(-1!==s&&u+1===o){var h=r.substr(0,s),g=r.substr(s+1,u-(s+1)).split(","),v=1;switch(h){case"rgba":if(4!==g.length)return 3===g.length?f(t,+g[0],+g[1],+g[2],1):f(t,0,0,0,1);v=l(g.pop());case"rgb":return g.length>=3?(f(t,c(g[0]),c(g[1]),c(g[2]),3===g.length?v:l(g[3])),m(e,t),t):void f(t,0,0,0,1);case"hsla":return 4!==g.length?void f(t,0,0,0,1):(g[3]=l(g[3]),y(g,t),m(e,t),t);case"hsl":return 3!==g.length?void f(t,0,0,0,1):(y(g,t),m(e,t),t);default:return}}f(t,0,0,0,1)}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=l(e[1]),i=l(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return f(t=t||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function A(e,t){var n=v(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return k(n,4===n.length?"rgba":"rgb")}}function b(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),c=t[i],l=t[a],u=r-i;return n[0]=o(h(c[0],l[0],u)),n[1]=o(h(c[1],l[1],u)),n[2]=o(h(c[2],l[2],u)),n[3]=s(h(c[3],l[3],u)),n}}var x=w;function C(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),c=v(t[i]),l=v(t[a]),u=r-i,f=k([o(h(c[0],l[0],u)),o(h(c[1],l[1],u)),o(h(c[2],l[2],u)),s(h(c[3],l[3],u))],"rgba");return n?{color:f,leftIndex:i,rightIndex:a,value:r}:f}}var _=C;function I(e,t,n,r){var i,a=v(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),c=s-o,l=(s+o)/2;if(0===c)t=0,n=0;else{n=l<.5?c/(s+o):c/(2-s-o);var u=((s-r)/6+c/2)/c,h=((s-i)/6+c/2)/c,f=((s-a)/6+c/2)/c;r===s?t=f-h:i===s?t=1/3+u-f:a===s&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var d=[360*t,n,l];return null!=e[3]&&d.push(e[3]),d}}(a),null!=t&&(a[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(a[1]=l(n)),null!=r&&(a[2]=l(r)),k(y(a),"rgba")}function E(e,t){var n=v(e);if(n&&null!=t)return n[3]=s(t),k(n,"rgba")}function k(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function S(e,t){var n=v(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function B(){return k([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var M=new r.a(100);function T(e){if(Object(i.isString)(e)){var t=M.get(e);return t||(t=A(e,-.1),M.put(e,t)),t}if(Object(i.isGradientObject)(e)){var n=Object(i.extend)({},e);return n.colorStops=Object(i.map)(e.colorStops,(function(e){return{offset:e.offset,color:A(e.color,-.1)}})),n}return e}
/***/},
/***/"41f6":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/4245:
/***/function(e,t,n){var r=n("1290");
/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},
/***/42454:
/***/function(e,t,n){var r=n("f909"),i=n("2ec1")((function(e,t,n){r(e,t,n)}));
/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */e.exports=i},
/***/4282:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("42ee"),a=n("019f"),o=n("ed60"),s=n("8d87").f;
// B.2.2.4 Object.prototype.__lookupGetter__(P)
n("c94e")&&r(r.P+n("ac60"),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=a(e,!0);do{if(t=s(n,r))return t.get}while(n=o(n))}})},
/***/4284:
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},
/***/"428b":
/***/function(e,t,n){"use strict";
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
var r=n("7f21"),i=n("9fe8"),a=n("6373"),o=n("911a"),s=n("de24")("isConcatSpreadable");e.exports=function e(t,n,c,l,u,h,f,d){for(var p,g,m=u,v=0,y=!!f&&o(f,d,3);v<l;){if(v in c){if(p=y?y(c[v],v,n):c[v],g=!1,i(p)&&(g=void 0!==(g=p[s])?!!g:r(p)),g&&h>0)m=e(t,n,p,a(p.length),m,h-1)-1;else{if(m>=9007199254740991)throw TypeError();t[m]=p}m++}v++}return m}},
/***/"428f":
/***/function(e,t,n){"use strict";var r=n("cfe9");e.exports=r},
/***/"42a2":
/***/function(e,t,n){var r=n("b5a7"),i=n("79bc"),a=n("1cec"),o=n("c869"),s=n("39ff"),c=n("3729"),l=n("dc57"),u="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",g=l(r),m=l(i),v=l(a),y=l(o),A=l(s),b=c;
/** `Object#toString` result references. */
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=u||a&&b(a.resolve())!=h||o&&b(new o)!=f||s&&b(new s)!=d)&&(b=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case g:return p;case m:return u;case v:return h;case y:return f;case A:return d}return t}),e.exports=b},
/***/"42b6":
/***/function(e,t,n){
// 19.1.2.7 Object.getOwnPropertyNames(O)
n("0a66")("getOwnPropertyNames",(function(){return n("532c").f}));
/***/},
/***/"42e5":
/***/function(e,t,n){"use strict";var r=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();
/* harmony default export */t.a=r},
/***/"42ee":
/***/function(e,t,n){
// 7.1.13 ToObject(argument)
var r=n("688d");e.exports=function(e){return Object(r(e))}},
/***/4319:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/env.js
var r=n("22d1"),i=n("625e"),a=n("282b"),o=Object(a.a)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),s=/** @class */function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return o(this,e,t)},e}(),c=n("7837"),l=n("76a5"),u=["textStyle","color"],h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],f=new l.a,d=/** @class */function(){function e(){}
/**
   * Get color property or get color from option.textStyle.color
   */
// TODO Callback
return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(u):null)},
/**
   * Create font string from fontStyle, fontWeight, fontSize, fontFamily
   * @return {string}
   */
e.prototype.getFont=function(){return Object(c.d)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<h.length;n++)t[h[n]]=this.getShallow(h[n]);return f.useStyle(t),f.update(),f.getBoundingRect()},e}(),p=n("3901"),g=n("551f"),m=n("6d8b"),v=/** @class */function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},
/**
   * Merge the input option to me.
   */
e.prototype.mergeOption=function(e,t){Object(m.merge)(this.option,e,!0)},
// `path` can be 'a.b.c', so the return value type have to be `ModelOption`
// TODO: TYPE strict key check?
// get(path: string | string[], ignoreParent?: boolean): ModelOption;
e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(
// FIXME:TS do not know how to make it works
r=i.getShallow(e))}return r},
// `path` can be 'a.b.c', so the return value type have to be `Model<ModelOption>`
// getModel(path: string | string[], parentModel?: Model): Model;
// TODO 'a.b.c' is deprecated
e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},
/**
   * If model has option
   */
e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},
// Pending
e.prototype.clone=function(){return new(0,this.constructor)(Object(m.clone)(this.option))},
// setReadOnly(properties): void {
// clazzUtil.setReadOnly(this, properties);
// }
// If path is null/undefined, return null/undefined.
e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},
// Resolve path for parent. Perhaps useful when parent use a different property.
// Default to be a identity resolver.
// Can be modified to a different resolver.
e.prototype.resolveParentPath=function(e){return e},
// FIXME:TS check whether put this method here
e.prototype.isAnimationEnabled=function(){if(!r.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(
// obj could be number/string/... (like 0)
n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/clazz.js
// Enable Model.extend.
Object(i.b)(v),Object(i.a)(v),Object(m.mixin)(v,p.b),Object(m.mixin)(v,g.b),Object(m.mixin)(v,s),Object(m.mixin)(v,d);
/* harmony default export */t.a=v;
/***/},
/***/4359:
/***/function(e,t){e.exports=
/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},
/***/4362:
/***/function(e,t,n){var r,i;t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},i="/",t.cwd=function(){return i},t.chdir=function(e){r||(r=n("df7c")),i=r.resolve(e,i)},t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},
/***/4416:
/***/function(e,t){e.exports=
/**
 * Gets the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the last element of `array`.
 * @example
 *
 * _.last([1, 2, 3]);
 * // => 3
 */
function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},
/***/"448a":
/***/function(e,t,n){var r=n("2236"),i=n("11b0"),a=n("6613"),o=n("0676");e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"44ad":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),a=n("c6b6"),o=Object,s=r("".split);
// fallback for non-array-like ES3 and non-enumerable old V8 strings
e.exports=i((function(){
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins -- safe
return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},
/***/"44d2":
/***/function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),a=n("9bf2").f,o=r("unscopables"),s=Array.prototype;
// Array.prototype[@@unscopables]
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),
// add a key to Array.prototype[@@unscopables]
e.exports=function(e){s[o][e]=!0}},
/***/"44d5":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}
// Helper for phpString
function n(e,t,i){return 0==e.length?r(t):function(a,o){for(var s=e[0],c=0;c<s.length;c++)if(a.match(s[c][0]))return o.tokenize=n(e.slice(1),t),s[c][1];return o.tokenize=r(t,i),"string"}}function r(e,t){return function(n,r){return i(n,r,e,t)}}function i(e,t,r,i){
// "Complex" syntax
if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";
// Simple syntax
if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))
// After the variable name there may appear array or object operator.
return e.match("[",!1)&&(
// Match array operator
t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),e.match(/\-\>\w/,!1)&&(
// Match object operator
t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";
// Normal string
for(var a=!1;!e.eol()&&(a||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!a&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}a="\\"==e.next()&&!a}return"string"}var a="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[a,o,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var c={name:"clike",helperType:"php",keywords:t(a),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(o),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var a=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),a)return(t.tokStack||(t.tokStack=[])).push(a,0),t.tokenize=r(a,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&! --t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,c);function a(t,n){var a=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),a)return a&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var o="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,o=n.pending.style):o=r.token(t,n.curState);n.pending&&(n.pending=null);var s,c=t.current(),l=c.search(/<\?/);return-1!=l&&("string"==o&&(s=c.match(/[\'\"]$/))&&!/\?>/.test(c)?n.pending=s[0]:n.pending={end:t.pos,style:o},t.backUp(c.length-l)),o}return{startState:function(){var t=e.startState(r),a=n.startOpen?e.startState(i):null;return{html:t,php:a,curMode:n.startOpen?i:r,curState:n.startOpen?a:t,pending:null}},copyState:function(t){var n,a=t.html,o=e.copyState(r,a),s=t.php,c=s&&e.copyState(i,s);return n=t.curMode==r?o:c,{html:o,php:c,curMode:t.curMode,curState:n,pending:t.pending}},token:a,indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",c)}(n("56b3"),n("d69f"),n("4ba6"));
/***/},
/***/"44de":
/***/function(e,t,n){"use strict";e.exports=function(e,t){}},
/***/"44e7":
/***/function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),a=n("b622")("match");
// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},
/***/"44e8":
/***/function(e,t,n){var r=n("d77f"),i=n("9fe8"),a=n("e7ff");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},
/***/"453f":
/***/function(e,t,n){
// helper for String#{startsWith, endsWith, includes}
var r=n("37a2"),i=n("688d");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},
/***/4573:
/***/function(e,t,n){"use strict";
/* unused harmony export RingShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},o=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(i.b);
/* harmony import */o.prototype.type="ring",
/* harmony default export */t.a=o},
/***/4592:
/***/function(e,t){
// 20.2.2.14 Math.expm1(x)
var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},
/***/"45bc":
/***/function(e,t,n){var r=n("de24")("toPrimitive"),i=Date.prototype;r in i||n("0713")(i,r,n("5705"))
/***/},
/***/4625:
/***/function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){
// Nashorn bug:
//   https://github.com/zloirock/core-js/issues/1128
//   https://github.com/zloirock/core-js/issues/1130
if("Function"===r(e))return i(e)}},
/***/4656:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"466d":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),a=n("825a"),o=n("7234"),s=n("50c4"),c=n("577e"),l=n("1d80"),u=n("dc4a"),h=n("8aa5"),f=n("14c3");
// @@match logic
i("match",(function(e,t,n){return[
// `String.prototype.match` method
// https://tc39.es/ecma262/#sec-string.prototype.match
function(t){var n=l(this),i=o(t)?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},
// `RegExp.prototype[@@match]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
function(e){var r=a(this),i=c(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return f(r,i);var l=r.unicode;r.lastIndex=0;for(var u,d=[],p=0;null!==(u=f(r,i));){var g=c(u[0]);d[p]=g,""===g&&(r.lastIndex=h(i,s(r.lastIndex),l)),p++}return 0===p?null:d}]}))},
/***/"467f":
/***/function(e,t,n){"use strict";var r=n("2d83");
/**
 * Resolve or reject a Promise based on response status.
 *
 * @param {Function} resolve A function that resolves the promise.
 * @param {Function} reject A function that rejects the promise.
 * @param {object} response The response.
 */e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},
/***/"46bb":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.grid=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.grid;n=(0,l.deepMerge)((0,s.deepClone)(c.gridConfig,!0),n||{}),(0,o.doUpdate)({chart:e,series:[n],key:"grid",getGraphConfig:h})};var i=r(n("278c")),a=r(n("9523")),o=n("18ad"),s=n("5557"),c=n("9d85"),l=n("becb");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t){var n=e.animationCurve,r=e.animationFrame,o=e.rLevel,s=function(e,t){var n=(0,i.default)(t.chart.render.area,2),r=n[0],a=n[1],o=f(e.left,r),s=f(e.right,r),c=f(e.top,a),l=f(e.bottom,a);return{x:o,y:c,w:r-o-s,h:a-c-l}}(e,t),c=function(e){var t=e.style;return t}
/***/(e);return t.chart.gridArea=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s),[{name:"rect",index:o,animationCurve:n,animationFrame:r,shape:s,style:c}]}function f(e,t){return"number"==typeof e?e:"string"!=typeof e?0:t*parseInt(e)/100}},
/***/"46c4":
/***/function(e,t,n){"use strict";
// `GetIteratorDirect(obj)` abstract operation
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},
/***/"46cf":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={install:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).name||"ref";e.directive(t,{bind:function(t,n,r){e.nextTick((function(){n.value(r.componentInstance||t,r.key)})),n.value(r.componentInstance||t,r.key)},update:function(e,n,r,i){if(i.data&&i.data.directives){var a=i.data.directives.find((function(e){return e.name===t}));if(a&&a.value!==n.value)return a&&a.value(null,i.key),void n.value(r.componentInstance||e,r.key)}
// Should not have this situation
r.componentInstance===i.componentInstance&&r.elm===i.elm||n.value(r.componentInstance||e,r.key)},unbind:function(e,t,n){t.value(null,n.key)}})}}},
/***/4701:
/***/function(e,t,n){
/* eslint-disable no-case-declarations, max-len */
const{BigInteger:r}=n("e0c8")
/**
 * thanks for Tom Wu : http://www-cs-students.stanford.edu/~tjw/jsbn/
 *
 * Basic Javascript Elliptic Curve implementation
 * Ported loosely from BouncyCastle's Java EC code
 * Only Fp curves implemented for now
 */,i=new r("2"),a=new r("3")
/**
 * 椭圆曲线域元素
 */;class o{constructor(e,t){this.x=t,this.q=e}
/**
   * 判断相等
   */equals(e){return e===this||this.q.equals(e.q)&&this.x.equals(e.x)}
/**
   * 返回具体数值
   */toBigInteger(){return this.x}
/**
   * 取反
   */negate(){return new o(this.q,this.x.negate().mod(this.q))}
/**
   * 相加
   */add(e){return new o(this.q,this.x.add(e.toBigInteger()).mod(this.q))}
/**
   * 相减
   */subtract(e){return new o(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}
/**
   * 相乘
   */multiply(e){return new o(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}
/**
   * 相除
   */divide(e){return new o(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}
/**
   * 平方
   */square(){return new o(this.q,this.x.square().mod(this.q))}}class s{constructor(e,t,n,i){this.curve=e,this.x=t,this.y=n,
// 标准射影坐标系：zinv == null 或 z * zinv == 1
this.z=null==i?r.ONE:i,this.zinv=null}getX(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}
/**
   * 判断相等
   */equals(e){if(e===this)return!0;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();
// u = y2 * z1 - y1 * z2
if(!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(r.ZERO))return!1;
// v = x2 * z1 - x1 * z2
return e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(r.ZERO)}
/**
   * 是否是无穷远点
   */isInfinity(){return null===this.x&&null===this.y||this.z.equals(r.ZERO)&&!this.y.toBigInteger().equals(r.ZERO)}
/**
   * 取反，x 轴对称点
   */negate(){return new s(this.curve,this.x,this.y.negate(),this.z)}
/**
   * 相加
   *
   * 标准射影坐标系：
   *
   * λ1 = x1 * z2
   * λ2 = x2 * z1
   * λ3 = λ1 − λ2
   * λ4 = y1 * z2
   * λ5 = y2 * z1
   * λ6 = λ4 − λ5
   * λ7 = λ1 + λ2
   * λ8 = z1 * z2
   * λ9 = λ3^2
   * λ10 = λ3 * λ9
   * λ11 = λ8 * λ6^2 − λ7 * λ9
   * x3 = λ3 * λ11
   * y3 = λ6 * (λ9 * λ1 − λ11) − λ4 * λ10
   * z3 = λ10 * λ8
   */add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;const t=this.x.toBigInteger(),n=this.y.toBigInteger(),i=this.z,a=e.x.toBigInteger(),o=e.y.toBigInteger(),c=e.z,l=this.curve.q,u=t.multiply(c).mod(l),h=a.multiply(i).mod(l),f=u.subtract(h),d=n.multiply(c).mod(l),p=o.multiply(i).mod(l),g=d.subtract(p);if(r.ZERO.equals(f))return r.ZERO.equals(g)?this.twice():this.curve.infinity;const m=u.add(h),v=i.multiply(c).mod(l),y=f.square().mod(l),A=f.multiply(y).mod(l),b=v.multiply(g.square()).subtract(m.multiply(y)).mod(l),w=f.multiply(b).mod(l),x=g.multiply(y.multiply(u).subtract(b)).subtract(d.multiply(A)).mod(l),C=A.multiply(v).mod(l);return new s(this.curve,this.curve.fromBigInteger(w),this.curve.fromBigInteger(x),C)}
/**
   * 自加
   *
   * 标准射影坐标系：
   *
   * λ1 = 3 * x1^2 + a * z1^2
   * λ2 = 2 * y1 * z1
   * λ3 = y1^2
   * λ4 = λ3 * x1 * z1
   * λ5 = λ2^2
   * λ6 = λ1^2 − 8 * λ4
   * x3 = λ2 * λ6
   * y3 = λ1 * (4 * λ4 − λ6) − 2 * λ5 * λ3
   * z3 = λ2 * λ5
   */twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const e=this.x.toBigInteger(),t=this.y.toBigInteger(),n=this.z,r=this.curve.q,i=this.curve.a.toBigInteger(),o=e.square().multiply(a).add(i.multiply(n.square())).mod(r),c=t.shiftLeft(1).multiply(n).mod(r),l=t.square().mod(r),u=l.multiply(e).multiply(n).mod(r),h=c.square().mod(r),f=o.square().subtract(u.shiftLeft(3)).mod(r),d=c.multiply(f).mod(r),p=o.multiply(u.shiftLeft(2).subtract(f)).subtract(h.shiftLeft(1).multiply(l)).mod(r),g=c.multiply(h).mod(r);return new s(this.curve,this.curve.fromBigInteger(d),this.curve.fromBigInteger(p),g)}
/**
   * 倍点计算
   */multiply(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;
// 使用加减法
const t=e.multiply(a),n=this.negate();let r=this;for(let i=t.bitLength()-2;i>0;i--){r=r.twice();const a=t.testBit(i);a!==e.testBit(i)&&(r=r.add(a?this:n))}return r}}
/**
 * 椭圆曲线 y^2 = x^3 + ax + b
 */e.exports={ECPointFp:s,ECCurveFp:class{constructor(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new s(this,null,null)}
/**
   * 判断两个椭圆曲线是否相等
   */equals(e){return e===this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}
/**
   * 生成椭圆曲线域元素
   */fromBigInteger(e){return new o(this.q,e)}
/**
   * 解析 16 进制串为椭圆曲线点
   */decodePointHex(e){switch(parseInt(e.substr(0,2),16)){
// 第一个字节
case 0:return this.infinity;case 2:case 3:
// 压缩
const t=this.fromBigInteger(new r(e.substr(2),16));
// 对 p ≡ 3 (mod4)，即存在正整数 u，使得 p = 4u + 3
// 计算 y = (√ (x^3 + ax + b) % p)^(u + 1) modp
let n=this.fromBigInteger(t.multiply(t.square()).add(t.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new r("4")).add(r.ONE),this.q));
// 算出结果 2 进制最后 1 位不等于第 1 个字节减 2 则取反
return n.toBigInteger().mod(i).equals(new r(e.substr(0,2),16).subtract(i))||(n=n.negate()),new s(this,t,n);case 4:case 6:case 7:const a=(e.length-2)/2,o=e.substr(2,a),c=e.substr(a+2,a);return new s(this,this.fromBigInteger(new r(o,16)),this.fromBigInteger(new r(c,16)));default:
// 不支持
return null}}}}
/***/},
/***/"470c":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/4721:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return s}));
/* unused harmony export MapControls */
/* harmony import */var r=n("5a89");
// This set of controls performs orbiting, dollying (zooming), and panning.
// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).

//    Orbit - left mouse / touch: one-finger move
//    Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
//    Pan - right mouse, or left mouse + ctrl/meta/shiftKey, or arrow keys / touch: two-finger move
const i={type:"change"},a={type:"start"},o={type:"end"};class s extends r.s{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",// disable touch scroll
// Set to false to disable this control
this.enabled=!0,
// "target" sets the location of focus, where the object orbits around
this.target=new r.Pb,
// How far you can dolly in and out ( PerspectiveCamera only )
this.minDistance=0,this.maxDistance=1/0,
// How far you can zoom in and out ( OrthographicCamera only )
this.minZoom=0,this.maxZoom=1/0,
// How far you can orbit vertically, upper and lower limits.
// Range is 0 to Math.PI radians.
this.minPolarAngle=0,// radians
this.maxPolarAngle=Math.PI,// radians
// How far you can orbit horizontally, upper and lower limits.
// If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ], with ( max - min < 2 PI )
this.minAzimuthAngle=-1/0,// radians
this.maxAzimuthAngle=1/0,// radians
// Set to true to enable damping (inertia)
// If damping is enabled, you must call controls.update() in your animation loop
this.enableDamping=!1,this.dampingFactor=.05,
// This option actually enables dollying in and out; left as "zoom" for backwards compatibility.
// Set to false to disable zooming
this.enableZoom=!0,this.zoomSpeed=1,
// Set to false to disable rotating
this.enableRotate=!0,this.rotateSpeed=1,
// Set to false to disable panning
this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,// if false, pan orthogonal to world-space direction camera.up
this.keyPanSpeed=7,// pixels moved per arrow key push
// Set to true to automatically rotate around the target
// If auto-rotate is enabled, you must call controls.update() in your animation loop
this.autoRotate=!1,this.autoRotateSpeed=2,// 30 seconds per orbit when fps is 60
// The four arrow keys
this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},
// Mouse buttons
this.mouseButtons={LEFT:r.R.ROTATE,MIDDLE:r.R.DOLLY,RIGHT:r.R.PAN},
// Touch fingers
this.touches={ONE:r.Hb.ROTATE,TWO:r.Hb.DOLLY_PAN},
// for reset
this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,
// the target DOM element for key events
this._domElementKeyEvents=null,
// public methods
this.getPolarAngle=function(){return u.phi},this.getAzimuthalAngle=function(){return u.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",q),this._domElementKeyEvents=e},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",q),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(i),n.update(),c=s.NONE},
// this method is exposed, but perhaps it would be better if we can make it private...
this.update=function(){const t=new r.Pb,a=(new r.pb).setFromUnitVectors(e.up,new r.Pb(0,1,0)),o=a.clone().invert(),g=new r.Pb,m=new r.pb,v=2*Math.PI;
// so camera.up is the orbit axis
return function(){const e=n.object.position;t.copy(e).sub(n.target),
// rotate offset to "y-axis-is-up" space
t.applyQuaternion(a),
// angle from z-axis around y-axis
u.setFromVector3(t),n.autoRotate&&c===s.NONE&&k(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(u.theta+=h.theta*n.dampingFactor,u.phi+=h.phi*n.dampingFactor):(u.theta+=h.theta,u.phi+=h.phi);
// restrict theta to be between desired limits
let r=n.minAzimuthAngle,y=n.maxAzimuthAngle;
// update condition is:
// min(camera displacement, camera rotation in radians)^2 > EPS
// using small-angle approximation cos(x/2) = 1 - x^2 / 8
return isFinite(r)&&isFinite(y)&&(r<-Math.PI?r+=v:r>Math.PI&&(r-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),u.theta=r<=y?Math.max(r,Math.min(y,u.theta)):u.theta>(r+y)/2?Math.max(r,u.theta):Math.min(y,u.theta)),
// restrict phi to be between desired limits
u.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,u.phi)),u.makeSafe(),u.radius*=f,
// restrict radius to be between desired limits
u.radius=Math.max(n.minDistance,Math.min(n.maxDistance,u.radius)),
// move target to panned location
!0===n.enableDamping?n.target.addScaledVector(d,n.dampingFactor):n.target.add(d),t.setFromSpherical(u),
// rotate offset back to "camera-up-vector-is-up" space
t.applyQuaternion(o),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(h.theta*=1-n.dampingFactor,h.phi*=1-n.dampingFactor,d.multiplyScalar(1-n.dampingFactor)):(h.set(0,0,0),d.set(0,0,0)),f=1,!!(p||g.distanceToSquared(n.object.position)>l||8*(1-m.dot(n.object.quaternion))>l)&&(n.dispatchEvent(i),g.copy(n.object.position),m.copy(n.object.quaternion),p=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Y),n.domElement.removeEventListener("pointerdown",H),n.domElement.removeEventListener("pointercancel",V),n.domElement.removeEventListener("wheel",W),n.domElement.removeEventListener("pointermove",U),n.domElement.removeEventListener("pointerup",G),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",q),n._domElementKeyEvents=null)};
// internals
const n=this,s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let c=s.NONE;const l=1e-6,u=new r.Db,h=new r.Db;
// current position in spherical coordinates
let f=1;const d=new r.Pb;let p=!1;const g=new r.Ob,m=new r.Ob,v=new r.Ob,y=new r.Ob,A=new r.Ob,b=new r.Ob,w=new r.Ob,x=new r.Ob,C=new r.Ob,_=[],I={};function E(){return Math.pow(.95,n.zoomSpeed)}function k(e){h.theta-=e}function S(e){h.phi-=e}const B=function(){const e=new r.Pb;return function(t,n){e.setFromMatrixColumn(n,0),// get X column of objectMatrix
e.multiplyScalar(-t),d.add(e)}}(),M=function(){const e=new r.Pb;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),d.add(e)}}(),T=function(){const e=new r.Pb;return function(t,r){const i=n.domElement;if(n.object.isPerspectiveCamera){
// perspective
const a=n.object.position;e.copy(a).sub(n.target);let o=e.length();
// half of the fov is center to top of screen
o*=Math.tan(n.object.fov/2*Math.PI/180),
// we use only clientHeight here so aspect ratio does not distort speed
B(2*t*o/i.clientHeight,n.object.matrix),M(2*r*o/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(
// orthographic
B(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),M(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):n.enablePan=!1}}();function O(e){n.object.isPerspectiveCamera?f/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),p=!0):n.enableZoom=!1}function D(e){n.object.isPerspectiveCamera?f*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),p=!0):n.enableZoom=!1}

// event callbacks - update the object state

function P(e){g.set(e.clientX,e.clientY)}function L(e){y.set(e.clientX,e.clientY)}function Q(){if(1===_.length)g.set(_[0].pageX,_[0].pageY);else{const e=.5*(_[0].pageX+_[1].pageX),t=.5*(_[0].pageY+_[1].pageY);g.set(e,t)}}function R(){if(1===_.length)y.set(_[0].pageX,_[0].pageY);else{const e=.5*(_[0].pageX+_[1].pageX),t=.5*(_[0].pageY+_[1].pageY);y.set(e,t)}}function j(){const e=_[0].pageX-_[1].pageX,t=_[0].pageY-_[1].pageY,n=Math.sqrt(e*e+t*t);w.set(0,n)}function N(e){if(1==_.length)m.set(e.pageX,e.pageY);else{const t=J(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}v.subVectors(m,g).multiplyScalar(n.rotateSpeed);const t=n.domElement;k(2*Math.PI*v.x/t.clientHeight),// yes, height
S(2*Math.PI*v.y/t.clientHeight),g.copy(m)}function F(e){if(1===_.length)A.set(e.pageX,e.pageY);else{const t=J(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);A.set(n,r)}b.subVectors(A,y).multiplyScalar(n.panSpeed),T(b.x,b.y),y.copy(A)}function z(e){const t=J(e),r=e.pageX-t.x,i=e.pageY-t.y,a=Math.sqrt(r*r+i*i);x.set(0,a),C.set(0,Math.pow(x.y/w.y,n.zoomSpeed)),O(C.y),w.copy(x)}
// event handlers - FSM: listen for events and reset state
function H(e){!1!==n.enabled&&(0===_.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",U),n.domElement.addEventListener("pointerup",G)),
function(e){_.push(e)}(e),"touch"===e.pointerType?function(e){switch($(e),_.length){case 1:switch(n.touches.ONE){case r.Hb.ROTATE:if(!1===n.enableRotate)return;Q(),c=s.TOUCH_ROTATE;break;case r.Hb.PAN:if(!1===n.enablePan)return;R(),c=s.TOUCH_PAN;break;default:c=s.NONE}break;case 2:switch(n.touches.TWO){case r.Hb.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&j(),n.enablePan&&R(),c=s.TOUCH_DOLLY_PAN;break;case r.Hb.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&j(),n.enableRotate&&Q(),c=s.TOUCH_DOLLY_ROTATE;break;default:c=s.NONE}break;default:c=s.NONE}c!==s.NONE&&n.dispatchEvent(a)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case r.R.DOLLY:if(!1===n.enableZoom)return;!function(e){w.set(e.clientX,e.clientY)}(e),c=s.DOLLY;break;case r.R.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;L(e),c=s.PAN}else{if(!1===n.enableRotate)return;P(e),c=s.ROTATE}break;case r.R.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;P(e),c=s.ROTATE}else{if(!1===n.enablePan)return;L(e),c=s.PAN}break;default:c=s.NONE}c!==s.NONE&&n.dispatchEvent(a)}(e))}function U(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch($(e),c){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;N(e),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;F(e),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&z(e),n.enablePan&&F(e)}(e),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&z(e),n.enableRotate&&N(e)}(e),n.update();break;default:c=s.NONE}}(e):function(e){switch(c){case s.ROTATE:if(!1===n.enableRotate)return;!function(e){m.set(e.clientX,e.clientY),v.subVectors(m,g).multiplyScalar(n.rotateSpeed);const t=n.domElement;k(2*Math.PI*v.x/t.clientHeight),// yes, height
S(2*Math.PI*v.y/t.clientHeight),g.copy(m),n.update()}(e);break;case s.DOLLY:if(!1===n.enableZoom)return;!function(e){x.set(e.clientX,e.clientY),C.subVectors(x,w),C.y>0?O(E()):C.y<0&&D(E()),w.copy(x),n.update()}(e);break;case s.PAN:if(!1===n.enablePan)return;!function(e){A.set(e.clientX,e.clientY),b.subVectors(A,y).multiplyScalar(n.panSpeed),T(b.x,b.y),y.copy(A),n.update()}(e)}}(e))}function G(e){K(e),0===_.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",U),n.domElement.removeEventListener("pointerup",G)),n.dispatchEvent(o),c=s.NONE}function V(e){K(e)}function W(e){!1!==n.enabled&&!1!==n.enableZoom&&c===s.NONE&&(e.preventDefault(),n.dispatchEvent(a),function(e){e.deltaY<0?D(E()):e.deltaY>0&&O(E()),n.update()}(e),n.dispatchEvent(o))}function q(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?S(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):T(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?S(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):T(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?k(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):T(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?k(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):T(-n.keyPanSpeed,0),t=!0}t&&(
// prevent the browser from scrolling on cursor keys
e.preventDefault(),n.update())}(e)}function Y(e){!1!==n.enabled&&e.preventDefault()}function K(e){delete I[e.pointerId];for(let t=0;t<_.length;t++)if(_[t].pointerId==e.pointerId)return void _.splice(t,1)}function $(e){let t=I[e.pointerId];void 0===t&&(t=new r.Ob,I[e.pointerId]=t),t.set(e.pageX,e.pageY)}function J(e){const t=e.pointerId===_[0].pointerId?_[1]:_[0];return I[t.pointerId]}

n.domElement.addEventListener("contextmenu",Y),n.domElement.addEventListener("pointerdown",H),n.domElement.addEventListener("pointercancel",V),n.domElement.addEventListener("wheel",W,{passive:!1}),
// force an update at start
this.update()}}
// This set of controls performs orbiting, dollying (zooming), and panning.
// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default).
// This is very similar to OrbitControls, another set of touch behavior

//    Orbit - right mouse, or left mouse + ctrl/meta/shiftKey / touch: two-finger rotate
//    Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
//    Pan - left mouse, or arrow keys / touch: one-finger move
},
/***/4738:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("d256"),a=n("1626"),o=n("94ca"),s=n("8925"),c=n("b622"),l=n("8558"),u=n("c430"),h=n("1212"),f=i&&i.prototype,d=c("species"),p=!1,g=a(r.PromiseRejectionEvent),m=o("Promise",(function(){var e=s(i),t=e!==String(i);
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
// We can't detect it synchronously, so just check versions
if(!t&&66===h)return!0;
// We need Promise#{ catch, finally } in the pure version for preventing prototype pollution
if(u&&(!f.catch||!f.finally))return!0;
// We can't use @@species feature detection in V8 since it causes
// deoptimization and performance degradation
// https://github.com/zloirock/core-js/issues/679
if(!h||h<51||!/native code/.test(e)){
// Detect correctness of subclassing with @@species support
var n=new i((function(e){e(1)})),r=function(e){e((function(){/* empty */}),(function(){/* empty */}))};if((n.constructor={})[d]=r,!(p=n.then((function(){/* empty */}))instanceof r))return!0;
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
}return!(t||"BROWSER"!==l&&"DENO"!==l||g)}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},
/***/4754:
/***/function(e,t,n){"use strict";
// `CreateIterResultObject` abstract operation
// https://tc39.es/ecma262/#sec-createiterresultobject
e.exports=function(e,t){return{value:e,done:t}}},
/***/4759:
/***/function(e,t,n){
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var r=n("9fe8"),i=n("d77f"),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?// eslint-disable-line
function(e,t,r){try{(r=n("911a")(Function.call,n("8d87").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},
/***/"47f5":
/***/function(e,t,n){var r=n("2b03"),i=n("d9a8"),a=n("099a");
/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},
/***/4840:
/***/function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),a=n("7234"),o=n("b622")("species");
// `SpeciesConstructor` abstract operation
// https://tc39.es/ecma262/#sec-speciesconstructor
e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||a(n=r(s)[o])?t:i(n)}},
/***/4849:
/***/function(e,t,n){e.exports={default:n("3787"),__esModule:!0};
/***/},
/***/"485a":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),a=n("861d"),o=TypeError;
// `OrdinaryToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},
/***/"48a0":
/***/function(e,t,n){var r=n("242e"),i=n("950a")(r);
/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */e.exports=i},
/***/"48a9":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("21a1"),i=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return Object(r.a)(t,e),t}(n("42e5").a);
/* harmony import */
/* harmony default export */t.a=i},
/***/"498a":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim;
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
r({target:"String",proto:!0,forced:n("c8d2")("trim")},{trim:function(){return i(this)}})},
/***/"49bc":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfig=void 0;t.gridConfig={
/**
   * @description Grid left margin
   * @type {String|Number}
   * @default left = '10%'
   * @example left = '10%' | 10
   */
left:"10%",
/**
   * @description Grid right margin
   * @type {String|Number}
   * @default right = '10%'
   * @example right = '10%' | 10
   */
right:"10%",
/**
   * @description Grid top margin
   * @type {String|Number}
   * @default top = 60
   * @example top = '10%' | 60
   */
top:60,
/**
   * @description Grid bottom margin
   * @type {String|Number}
   * @default bottom = 60
   * @example bottom = '10%' | 60
   */
bottom:60,
/**
   * @description Grid default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
style:{fill:"rgba(0, 0, 0, 0)"},
/**
   * @description Grid render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = -30
   */
rLevel:-30,
/**
   * @description Grid animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Grid animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:30}},
/***/"49f4":
/***/function(e,t,n){var r=n("6044");
/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */e.exports=function(){this.__data__=r?r(null):{},this.size=0}},
/***/"4a15":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("41b2"),i=n.n(r),a=n("4d91"),o=n("daa3"),s={name:"MenuItemGroup",props:{renderMenuItem:a.a.func,index:a.a.number,className:a.a.string,subMenuKey:a.a.string,rootPrefixCls:a.a.string,disabled:a.a.bool.def(!0),title:a.a.any},isMenuItemGroup:!0,methods:{renderInnerMenuItem:function(e){var t=this.$props;return(0,t.renderMenuItem)(e,t.index,t.subMenuKey)}},render:function(){var e=arguments[0],t=i()({},this.$props),n=t.rootPrefixCls,r=t.title,a=n+"-item-group-title",s=n+"-item-group-list",c=i()({},Object(o.k)(this));return delete c.click,e("li",{on:c,class:n+"-item-group"},[e("div",{class:a,attrs:{title:"string"==typeof r?r:void 0}},[Object(o.g)(this,"title")]),e("ul",{class:s},[this.$slots.default&&this.$slots.default.map(this.renderInnerMenuItem)])])}};
/* harmony import */
/* harmony default export */t.a=s},
/***/"4a3f":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return g})),
/* harmony export (binding) */n.d(t,"b",(function(){return m})),
/* harmony export (binding) */n.d(t,"f",(function(){return v})),
/* harmony export (binding) */n.d(t,"c",(function(){return y})),
/* harmony export (binding) */n.d(t,"g",(function(){return A})),
/* harmony export (binding) */n.d(t,"e",(function(){return b})),
/* harmony export (binding) */n.d(t,"d",(function(){return w})),
/* harmony export (binding) */n.d(t,"h",(function(){return x})),
/* harmony export (binding) */n.d(t,"i",(function(){return C})),
/* harmony export (binding) */n.d(t,"m",(function(){return _})),
/* harmony export (binding) */n.d(t,"j",(function(){return I})),
/* harmony export (binding) */n.d(t,"n",(function(){return E})),
/* harmony export (binding) */n.d(t,"l",(function(){return k})),
/* harmony export (binding) */n.d(t,"k",(function(){return S}));
/* harmony import */var r=n("401b"),i=Math.pow,a=Math.sqrt,o=1e-8,s=1e-4,c=a(3),l=1/3,u=Object(r.create)(),h=Object(r.create)(),f=Object(r.create)();function d(e){return e>-o&&e<o}function p(e){return e>o||e<-o}function g(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function m(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function v(e,t,n,r,o,s){var u=r+3*(t-n)-e,h=3*(n-2*t+e),f=3*(t-e),p=e-o,g=h*h-3*u*f,m=h*f-9*u*p,v=f*f-3*h*p,y=0;if(d(g)&&d(m)){if(d(h))s[0]=0;else(B=-f/h)>=0&&B<=1&&(s[y++]=B)}else{var A=m*m-4*g*v;if(d(A)){var b=m/g,w=-b/2;(B=-h/u+b)>=0&&B<=1&&(s[y++]=B),w>=0&&w<=1&&(s[y++]=w)}else if(A>0){var x=a(A),C=g*h+1.5*u*(-m+x),_=g*h+1.5*u*(-m-x);(B=(-h-((C=C<0?-i(-C,l):i(C,l))+(_=_<0?-i(-_,l):i(_,l))))/(3*u))>=0&&B<=1&&(s[y++]=B)}else{var I=(2*g*h-3*u*m)/(2*a(g*g*g)),E=Math.acos(I)/3,k=a(g),S=Math.cos(E),B=(-h-2*k*S)/(3*u),M=(w=(-h+k*(S+c*Math.sin(E)))/(3*u),(-h+k*(S-c*Math.sin(E)))/(3*u));B>=0&&B<=1&&(s[y++]=B),w>=0&&w<=1&&(s[y++]=w),M>=0&&M<=1&&(s[y++]=M)}}return y}function y(e,t,n,r,i){var o=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,c=3*t-3*e,l=0;if(d(s)){if(p(o))(h=-c/o)>=0&&h<=1&&(i[l++]=h)}else{var u=o*o-4*s*c;if(d(u))i[0]=-o/(2*s);else if(u>0){var h,f=a(u),g=(-o-f)/(2*s);(h=(-o+f)/(2*s))>=0&&h<=1&&(i[l++]=h),g>=0&&g<=1&&(i[l++]=g)}}return l}function A(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,h=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=u,a[6]=c,a[7]=r}function b(e,t,n,i,o,c,l,d,p,m,v){var y,A,b,w,x,C=.005,_=1/0;u[0]=p,u[1]=m;for(var I=0;I<1;I+=.05)h[0]=g(e,n,o,l,I),h[1]=g(t,i,c,d,I),(w=Object(r.distSquare)(u,h))<_&&(y=I,_=w);_=1/0;for(var E=0;E<32&&!(C<s);E++)A=y-C,b=y+C,h[0]=g(e,n,o,l,A),h[1]=g(t,i,c,d,A),w=Object(r.distSquare)(h,u),A>=0&&w<_?(y=A,_=w):(f[0]=g(e,n,o,l,b),f[1]=g(t,i,c,d,b),x=Object(r.distSquare)(f,u),b<=1&&x<_?(y=b,_=x):C*=.5);return v&&(v[0]=g(e,n,o,l,y),v[1]=g(t,i,c,d,y)),a(_)}function w(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,h=0,f=1/c,d=1;d<=c;d++){var p=d*f,m=g(e,n,i,o,p),v=g(t,r,a,s,p),y=m-l,A=v-u;h+=Math.sqrt(y*y+A*A),l=m,u=v}return h}function x(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function C(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function _(e,t,n,r,i){var o=e-2*t+n,s=2*(t-e),c=e-r,l=0;if(d(o)){if(p(s))(h=-c/s)>=0&&h<=1&&(i[l++]=h)}else{var u=s*s-4*o*c;if(d(u))(h=-s/(2*o))>=0&&h<=1&&(i[l++]=h);else if(u>0){var h,f=a(u),g=(-s-f)/(2*o);(h=(-s+f)/(2*o))>=0&&h<=1&&(i[l++]=h),g>=0&&g<=1&&(i[l++]=g)}}return l}function I(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function E(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function k(e,t,n,i,o,c,l,d,p){var g,m=.005,v=1/0;u[0]=l,u[1]=d;for(var y=0;y<1;y+=.05){h[0]=x(e,n,o,y),h[1]=x(t,i,c,y),(C=Object(r.distSquare)(u,h))<v&&(g=y,v=C)}v=1/0;for(var A=0;A<32&&!(m<s);A++){var b=g-m,w=g+m;h[0]=x(e,n,o,b),h[1]=x(t,i,c,b);var C=Object(r.distSquare)(h,u);if(b>=0&&C<v)g=b,v=C;else{f[0]=x(e,n,o,w),f[1]=x(t,i,c,w);var _=Object(r.distSquare)(f,u);w<=1&&_<v?(g=w,v=_):m*=.5}}return p&&(p[0]=x(e,n,o,g),p[1]=x(t,i,c,g)),a(v)}function S(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,h=1;h<=o;h++){var f=h*u,d=x(e,n,i,f),p=x(t,r,a,f),g=d-s,m=p-c;l+=Math.sqrt(g*g+m*m),s=d,c=p}return l}
/***/},
/***/"4a47":
/***/function(e,t,n){"use strict";var r=n("1a14"),i=n("10db");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},
/***/"4a7b":
/***/function(e,t,n){"use strict";var r=n("c532");
/**
 * Config-specific merge-function which creates a new config-object
 * by merging two configuration objects together.
 *
 * @param {Object} config1
 * @param {Object} config2
 * @returns {Object} New object resulting from merging config2 to config1
 */e.exports=function(e,t){
// eslint-disable-next-line no-param-reassign
t=t||{};var n={},i=["url","method","params","data"],a=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(a,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])})),r.forEach(o,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=i.concat(a).concat(o),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},
/***/"4aa2":
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: SectorShape
// EXTERNAL MODULE: ./node_modules/zrender/node_modules/tslib/tslib.es6.js
var r=n("21a1"),i=n("cbe5"),a=n("6d8b"),o=Math.PI,s=2*o,c=Math.sin,l=Math.cos,u=Math.acos,h=Math.atan2,f=Math.abs,d=Math.sqrt,p=Math.max,g=Math.min,m=1e-4;
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/Path.js + 3 modules
function v(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/d(s*s+c*c),u=l*c,h=-l*s,f=e+u,g=t+h,m=n+u,v=r+h,y=(f+m)/2,A=(g+v)/2,b=m-f,w=v-g,x=b*b+w*w,C=i-a,_=f*v-m*g,I=(w<0?-1:1)*d(p(0,C*C*x-_*_)),E=(_*w-b*I)/x,k=(-_*b-w*I)/x,S=(_*w+b*I)/x,B=(-_*b+w*I)/x,M=E-y,T=k-A,O=S-y,D=B-A;return M*M+T*T>O*O+D*D&&(E=S,k=B),{cx:E,cy:k,x0:-u,y0:-h,x1:E*(i/C-1),y1:k*(i/C-1)}}function y(e,t){var n,r=p(t.r,0),i=p(t.r0||0,0),y=r>0;if(y||i>0){if(y||(r=i,i=0),i>r){var A=r;r=i,i=A}var b=t.startAngle,w=t.endAngle;if(!isNaN(b)&&!isNaN(w)){var x=t.cx,C=t.cy,_=!!t.clockwise,I=f(w-b),E=I>s&&I%s;if(E>m&&(I=E),r>m)if(I>s-m)e.moveTo(x+r*l(b),C+r*c(b)),e.arc(x,C,r,b,w,!_),i>m&&(e.moveTo(x+i*l(w),C+i*c(w)),e.arc(x,C,i,w,b,_));else{var k=void 0,S=void 0,B=void 0,M=void 0,T=void 0,O=void 0,D=void 0,P=void 0,L=void 0,Q=void 0,R=void 0,j=void 0,N=void 0,F=void 0,z=void 0,H=void 0,U=r*l(b),G=r*c(b),V=i*l(w),W=i*c(w),q=I>m;if(q){var Y=t.cornerRadius;Y&&(k=(n=function(e){var t;if(Object(a.isArray)(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(Y))[0],S=n[1],B=n[2],M=n[3]);var K=f(r-i)/2;if(T=g(K,B),O=g(K,M),D=g(K,k),P=g(K,S),R=L=p(T,O),j=Q=p(D,P),(L>m||Q>m)&&(N=r*l(w),F=r*c(w),z=i*l(b),H=i*c(b),I<o)){var $=function(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,h=s-a,f=h*c-u*l;if(!(f*f<m))return[e+(f=(u*(t-a)-h*(e-i))/f)*c,t+f*l]}(U,G,z,H,N,F,V,W);if($){var J=U-$[0],X=G-$[1],Z=N-$[0],ee=F-$[1],te=1/c(u((J*Z+X*ee)/(d(J*J+X*X)*d(Z*Z+ee*ee)))/2),ne=d($[0]*$[0]+$[1]*$[1]);R=g(L,(r-ne)/(te+1)),j=g(Q,(i-ne)/(te-1))}}}if(q)if(R>m){var re=g(B,R),ie=g(M,R),ae=v(z,H,U,G,r,re,_),oe=v(N,F,V,W,r,ie,_);e.moveTo(x+ae.cx+ae.x0,C+ae.cy+ae.y0),R<L&&re===ie?e.arc(x+ae.cx,C+ae.cy,R,h(ae.y0,ae.x0),h(oe.y0,oe.x0),!_):(re>0&&e.arc(x+ae.cx,C+ae.cy,re,h(ae.y0,ae.x0),h(ae.y1,ae.x1),!_),e.arc(x,C,r,h(ae.cy+ae.y1,ae.cx+ae.x1),h(oe.cy+oe.y1,oe.cx+oe.x1),!_),ie>0&&e.arc(x+oe.cx,C+oe.cy,ie,h(oe.y1,oe.x1),h(oe.y0,oe.x0),!_))}else e.moveTo(x+U,C+G),e.arc(x,C,r,b,w,!_);else e.moveTo(x+U,C+G);if(i>m&&q)if(j>m){re=g(k,j),ae=v(V,W,N,F,i,-(ie=g(S,j)),_),oe=v(U,G,z,H,i,-re,_);e.lineTo(x+ae.cx+ae.x0,C+ae.cy+ae.y0),j<Q&&re===ie?e.arc(x+ae.cx,C+ae.cy,j,h(ae.y0,ae.x0),h(oe.y0,oe.x0),!_):(ie>0&&e.arc(x+ae.cx,C+ae.cy,ie,h(ae.y0,ae.x0),h(ae.y1,ae.x1),!_),e.arc(x,C,i,h(ae.cy+ae.y1,ae.cx+ae.x1),h(oe.cy+oe.y1,oe.cx+oe.x1),_),re>0&&e.arc(x+oe.cx,C+oe.cy,re,h(oe.y1,oe.x1),h(oe.y0,oe.x0),!_))}else e.lineTo(x+V,C+W),e.arc(x,C,i,w,b,_);else e.lineTo(x+V,C+W)}else e.moveTo(x,C);e.closePath()}}}
// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Sector.js
var A=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},b=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultShape=function(){return new A},t.prototype.buildPath=function(e,t){y(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i.b);b.prototype.type="sector";
/* harmony default export */t.a=b;
/***/},
/***/"4aad":
/***/function(e,t,n){var r=n("b0a8"),i=n("ce86"),a=n("c32f"),o=n("aaec"),s=n("6751"),c=n("126d"),l=Math.ceil;
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=
/**
 * Creates the padding for `string` based on `length`. The `chars` string
 * is truncated if the number of characters exceeds `length`.
 *
 * @private
 * @param {number} length The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padding for `string`.
 */
function(e,t){var n=(t=void 0===t?" ":i(t)).length;if(n<2)return n?r(t,e):t;var u=r(t,l(e/s(t)));return o(t)?a(c(u),0,e).join(""):u.slice(0,e)}},
/***/"4ada":
/***/function(e,t,n){
// 20.2.2.22 Math.log2(x)
var r=n("f083");r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},
/***/"4afb":
/***/function(e,t,n){var r=n("f083");
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
r(r.S+r.F*!n("c94e"),"Object",{defineProperties:n("77f4")})},
/***/"4b12":
/***/function(e,t,n){
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var r=n("f083");r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>>16,c=i>>>16,l=(s*o>>>0)+(a*o>>>16);return s*c+(l>>>16)+((a*c>>>0)+(l&n)>>>16)}})},
/***/"4b17":
/***/function(e,t,n){var r=n("6428");
/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},
/***/"4b30":
/***/function(e,t,n){var r=Date.prototype,i="Invalid Date",a="toString",o=r[a],s=r.getTime;new Date(NaN)+""!=i&&n("77ea")(r,a,(function(){var e=s.call(this);
// eslint-disable-next-line no-self-compare
return e==e?o.call(this):i}))
/***/},
/***/"4b8b":
/***/function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}};
/***/},
/***/"4ba6":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";function t(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=a}function n(e,n,r,i){var a=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(a=e.context.indented),e.context=new t(a,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function a(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(o,c){var l,u,h=o.indentUnit,f=c.statementIndentUnit||h,d=c.dontAlignCalls,p=c.keywords||{},g=c.types||{},m=c.builtin||{},v=c.blockKeywords||{},y=c.defKeywords||{},A=c.atoms||{},b=c.hooks||{},w=c.multiLineStrings,x=!1!==c.indentStatements,C=!1!==c.indentSwitch,_=c.namespaceSeparator,I=c.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,E=c.numberStart||/[\d\.]/,k=c.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,S=c.isOperatorChar||/[+\-*&%=<>!?|\/]/,B=c.isIdentifierChar||/[\w\$_\xa1-\uffff]/,
// An optional function that takes a {string} token and returns true if it
// should be treated as a builtin.
M=c.isReservedIdentifier||!1;function T(e,t){var n=e.next();if(b[n]){var r=b[n](e,t);if(!1!==r)return r}if('"'==n||"'"==n)return t.tokenize=O(n),t.tokenize(e,t);if(I.test(n))return l=n,null;if(E.test(n)){if(e.backUp(1),e.match(k))return"number";e.next()}if("/"==n){if(e.eat("*"))return t.tokenize=D,D(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(S.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(S););return"operator"}if(e.eatWhile(B),_)for(;e.match(_);)e.eatWhile(B);var i=e.current();return s(p,i)?(s(v,i)&&(l="newstatement"),s(y,i)&&(u=!0),"keyword"):s(g,i)?"type":s(m,i)||M&&M(i)?(s(v,i)&&(l="newstatement"),"builtin"):s(A,i)?"atom":"variable"}function O(e){return function(t,n){for(var r,i=!1,a=!1;null!=(r=t.next());){if(r==e&&!i){a=!0;break}i=!i&&"\\"==r}return(a||!i&&!w)&&(n.tokenize=null),"string"}}function D(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function P(e,t){c.typeFirstDefinitions&&e.eol()&&a(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}
// Interface
return{startState:function(e){return{tokenize:null,context:new t((e||0)-h,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var o=t.context;if(e.sol()&&(null==o.align&&(o.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return P(e,t),null;l=u=null;var s=(t.tokenize||T)(e,t);if("comment"==s||"meta"==s)return s;if(null==o.align&&(o.align=!0),";"==l||":"==l||","==l&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==l)n(t,e.column(),"}");else if("["==l)n(t,e.column(),"]");else if("("==l)n(t,e.column(),")");else if("}"==l){for(;"statement"==o.type;)o=r(t);for("}"==o.type&&(o=r(t));"statement"==o.type;)o=r(t)}else l==o.type?r(t):x&&(("}"==o.type||"top"==o.type)&&";"!=l||"statement"==o.type&&"newstatement"==l)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||c.typeFirstDefinitions&&i(e,t,e.start)&&a(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),b.token){var h=b.token(e,t,s);void 0!==h&&(s=h)}return"def"==s&&!1===c.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=u?"def":s||l,P(e,t),s},indent:function(t,n){if(t.tokenize!=T&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,i=n&&n.charAt(0),a=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),c.dontIndentStatements)for(;"statement"==r.type&&c.dontIndentStatements.test(r.info);)r=r.prev;if(b.indent){var o=b.indent(t,r,n,h);if("number"==typeof o)return o}var s=r.prev&&"switch"==r.prev.info;if(c.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:f):!r.align||d&&")"==r.type?")"!=r.type||a?r.indented+(a?0:h)+(a||!s||/^(?:case|default)\b/.test(n)?0:h):r.indented+f:r.column+(a?0:1)},electricInput:C?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var c="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",l=o("int long char short double float unsigned signed void bool"),u=o("SEL instancetype id Class Protocol BOOL");
// Do not use this. Use the cTypes function below. This is global just to avoid
// excessive calls when cTypes is being called multiple times during a parse.
// Returns true if identifier is a "C" type.
// C type is defined as those that are reserved by the compiler (basicTypes),
// and those that end in _t (Reserved by POSIX for types)
// http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
function h(e){return s(l,e)||/.+_t$/.test(e)}
// Returns true if identifier is a "Objective C" type.
function f(e){return h(e)||s(u,e)}var d="case do else for if switch while struct enum union",p="struct enum union";function g(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=g;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function m(e,t){return"type"==t.prevToken&&"type"}
// For C and C++ (and ObjC): identifiers starting with __
// or _ followed by a capital letter are reserved for the compiler.
function v(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function y(e){return e.eatWhile(/[\w\.']/),"number"}function A(e,t){
// Raw strings.
if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=x,x(e,t))}
// Unicode strings/chars.
return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,/* eat */!1)&&"string":(
// Ignore this hook.
e.next(),!1)}function b(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}
// C#-style strings where "" escapes a quote.
function w(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}
// C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
// <delim> can be a string up to 16 characters long.
function x(e,t){
// Escape characters that have special regex meanings.
var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function C(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var a=0;a<t.length;++a)e.defineMIME(t[a],n)}function _(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function I(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=I(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=I(e+1),n.tokenize(t,n)}return"comment"}}function E(e){return function(t,n){for(var r,i=!1,a=!1;!t.eol();){if(!e&&!i&&t.match('"')){a=!0;break}if(e&&t.match('"""')){a=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!e}return!a&&e||(n.tokenize=null),"string"}}C(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:o(c),types:h,blockKeywords:o(d),defKeywords:o(p),typeFirstDefinitions:!0,atoms:o("NULL true false"),isReservedIdentifier:v,hooks:{"#":g,"*":m},modeProps:{fold:["brace","include"]}}),C(["text/x-c++src","text/x-c++hdr"],{name:"clike",
// Keywords from https://en.cppreference.com/w/cpp/keyword includes C++20.
keywords:o(c+"alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq"),types:h,blockKeywords:o(d+" class try catch"),defKeywords:o(p+" class namespace"),typeFirstDefinitions:!0,atoms:o("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:v,hooks:{"#":g,"*":m,u:A,U:A,L:A,R:A,0:y,1:y,2:y,3:y,4:y,5:y,6:y,7:y,8:y,9:y,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&b(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),C("text/x-java",{name:"clike",keywords:o("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:o("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:o("catch class do else finally for if switch try while"),defKeywords:o("class interface enum @interface"),typeFirstDefinitions:!0,atoms:o("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){
// Don't match the @interface keyword.
return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),C("text/x-csharp",{name:"clike",keywords:o("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:o("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:o("catch class do else finally for foreach if struct switch try while"),defKeywords:o("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:o("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=w,w(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),C("text/x-scala",{name:"clike",keywords:o(
/* scala */
"abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:o("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:o("catch class enum do else finally for forSome if match switch try while"),defKeywords:o("class enum def object package trait type val var"),atoms:o("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=_,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=I(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),C("text/x-kotlin",{name:"clike",keywords:o(
/*keywords*/
"package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:o(
/* package java.lang */
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:o("catch class do else finally for if where try while enum"),defKeywords:o("class val var object interface fun"),atoms:o("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=E(e.match('""')),t.tokenize(e,t)},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),C(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:o("for while do if else struct"),builtin:o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":g},modeProps:{fold:["brace","include"]}}),C("text/x-nesc",{name:"clike",keywords:o(c+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:o(d),atoms:o("null true false"),hooks:{"#":g},modeProps:{fold:["brace","include"]}}),C("text/x-objectivec",{name:"clike",keywords:o(c+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:f,builtin:o("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:o(d+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:o(p+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:v,hooks:{"#":g,"*":m},modeProps:{fold:["brace","include"]}}),C("text/x-squirrel",{name:"clike",keywords:o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:o("case catch class else for foreach if switch try while"),defKeywords:o("function local class"),typeFirstDefinitions:!0,atoms:o("true false null"),hooks:{"#":g},modeProps:{fold:["brace","include"]}});
// Ceylon Strings need to deal with interpolation
var k=null;function S(e){return function(t,n){for(var r,i=!1,a=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){a=!0;break}if(!i&&t.match("``")){k=S(e),a=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return a&&(n.tokenize=null),"string"}}C("text/x-ceylon",{name:"clike",keywords:o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){
// In Ceylon all identifiers that start with an uppercase are types
var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:o("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:o("class dynamic function interface module object package value"),builtin:o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:o("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=S(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!k||!e.match("`"))&&(t.tokenize=k,k=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n("56b3"));
/***/},
/***/"4bb5":
/***/function(e,t,n){var r=n("e2e4"),i=n("4416"),a=n("8296"),o=n("f4d6");
/**
 * The base implementation of `_.unset`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The property path to unset.
 * @returns {boolean} Returns `true` if the property is deleted, else `false`.
 */e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[o(i(t))]}},
/***/"4bc4":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return r})),
/* harmony export (binding) */n.d(t,"c",(function(){return i})),
/* harmony export (binding) */n.d(t,"b",(function(){return a}));var r=1,i=2,a=4},
/***/"4bf8":
/***/function(e,t,n){"use strict";
/* harmony default export */t.a={name:"MenuDivider",props:{disabled:{type:Boolean,default:!0},rootPrefixCls:String},render:function(){return(0,arguments[0])("li",{class:this.$props.rootPrefixCls+"-item-divider"})}}},
/***/"4c5c":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("db97"),i=n("8cdf"),a=n("9a4b");
/* harmony import */
/* harmony default export */t.a=
/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function(e){return Object(r.a)(e,a.a,i.a)}},
/***/"4c8d":
/***/function(e,t,n){var r=n("5689")("meta"),i=n("9fe8"),a=n("2fb2"),o=n("2761").f,s=0,c=Object.isExtensible||function(){return!0},l=!n("f937")((function(){return c(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,// object ID
w:{}}})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){
// return primitive with prefix
if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){
// can't set metadata to uncaught frozen object
if(!c(e))return"F";
// not necessary to add metadata
if(!t)return"E";
// add missing metadata
u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){
// can't set metadata to uncaught frozen object
if(!c(e))return!0;
// not necessary to add metadata
if(!t)return!1;
// add missing metadata
u(e)}return e[r].w},onFreeze:function(e){return l&&h.NEED&&c(e)&&!a(e,r)&&u(e),e}}},
/***/"4cef":
/***/function(e,t){
/** Used to match a single whitespace character. */
var n=/\s/;
/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},
/***/"4d20":
/***/function(e,t,n){var r=n("1917"),i=n("10db"),a=n("6ca1"),o=n("3397"),s=n("9c0e"),c=n("faf5"),l=Object.getOwnPropertyDescriptor;t.f=n("0bad")?l:function(e,t){if(e=a(e),t=o(t,!0),c)try{return l(e,t)}catch(e){/* empty */}if(s(e,t))return i(!r.f.call(e,t),e[t])}},
/***/"4d26":
/***/function(e,t,n){var r;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
/* global define */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},
/***/"4d63":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("cfe9"),a=n("e330"),o=n("94ca"),s=n("7156"),c=n("9112"),l=n("7c73"),u=n("241c").f,h=n("3a9b"),f=n("44e7"),d=n("577e"),p=n("90d8"),g=n("9f7f"),m=n("aeb0"),v=n("cb2d"),y=n("d039"),A=n("1a2d"),b=n("69f3").enforce,w=n("2626"),x=n("b622"),C=n("fce3"),_=n("107c"),I=x("match"),E=i.RegExp,k=E.prototype,S=i.SyntaxError,B=a(k.exec),M=a("".charAt),T=a("".replace),O=a("".indexOf),D=a("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,Q=/a/g,R=new E(L)!==L,j=g.MISSED_STICKY,N=g.UNSUPPORTED_Y,F=r&&(!R||j||C||_||y((function(){
// RegExp constructor can alter flags and IsRegExp works correct with @@match
// eslint-disable-next-line sonarjs/inconsistent-function-call -- required for testing
return Q[I]=!1,E(L)!==L||E(Q)===Q||"/a/i"!==String(E(L,"i"))})));
// `RegExp` constructor
// https://tc39.es/ecma262/#sec-regexp-constructor
if(o("RegExp",F)){for(var z=function(e,t){var n,r,i,a,o,u,g=h(k,this),m=f(e),v=void 0===t,y=[],w=e;if(!g&&m&&v&&e.constructor===z)return e;if((m||h(k,e))&&(e=e.source,v&&(t=p(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,C&&"dotAll"in L&&(r=!!t&&O(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,j&&"sticky"in L&&(i=!!t&&O(t,"y")>-1)&&N&&(t=T(t,/y/g,"")),_&&(a=function(e){for(var t,n=e.length,r=0,i="",a=[],o=l(null),s=!1,c=!1,u=0,h="";r<=n;r++){if("\\"===(t=M(e,r)))t+=M(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:
// ignore non-capturing groups
if(i+=t,"?:"===D(e,r+1,r+3))continue;B(P,D(e,r+1))&&(r+=2,c=!0),u++;continue;case">"===t&&c:if(""===h||A(o,h))throw new S("Invalid capture group name");o[h]=!0,a[a.length]=[h,u],c=!1,h="";continue}c?h+=t:i+=t}return[i,a]}(e),e=a[0],y=a[1]),o=s(E(e,t),g?this:k,z),(r||i||y.length)&&(u=b(o),r&&(u.dotAll=!0,u.raw=z(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=M(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+M(e,++r);return i}(e),n)),i&&(u.sticky=!0),y.length&&(u.groups=y)),e!==w)try{
// fails in old engines, but we have no alternatives for unsupported regex syntax
c(o,"source",""===w?"(?:)":w)}catch(e){/* empty */}return o},H=u(E),U=0;H.length>U;)m(z,E,H[U++]);k.constructor=z,z.prototype=k,v(i,"RegExp",z,{constructor:!0})}
// https://tc39.es/ecma262/#sec-get-regexp-@@species
w("RegExp")},
/***/"4d64":
/***/function(e,t,n){"use strict";var r=n("fc6a"),i=n("23cb"),a=n("07fa"),o=function(e){return function(t,n,o){var s=r(t),c=a(s);if(0===c)return!e&&-1;var l,u=i(o,c);
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare -- NaN check
if(e&&n!=n){for(;c>u;)
// eslint-disable-next-line no-self-compare -- NaN check
if((l=s[u++])!=l)return!0;
// Array#indexOf ignores holes, Array#includes - not
}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
includes:o(!0),
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf:o(!1)}},
/***/"4d88":
/***/function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},
/***/"4d8c":
/***/function(e,t,n){var r=n("5c69");
/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},
/***/"4d91":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/typeof.js
var r=n("1098"),i=n.n(r),a=n("60ed"),o=n.n(a),s=Object.prototype,c=s.toString,l=s.hasOwnProperty,u=/^\s*function (\w+)/,h=function(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(u);return n&&n[1]},f=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},d=Array.isArray||function(e){return"[object Array]"===c.call(e)},p=function(e){return"[object Function]"===c.call(e)},g=function(e,t){var n;return Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),n=t,Object.defineProperty(n,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}),function(e){Object.defineProperty(e,"def",{value:function(e){return void 0===e&&void 0===this.default?(this.default=void 0,this):p(e)||m(this,e)?(this.default=d(e)||o()(e)?function(){return e}:e,this):(v(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this)},enumerable:!1,writable:!1})}(t),p(t.validator)&&(t.validator=t.validator.bind(t)),t},m=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t,a=!0,s=void 0;o()(t)||(i={type:t});var c=i._vueTypes_name?i._vueTypes_name+" - ":"";return l.call(i,"type")&&null!==i.type&&(d(i.type)?(a=i.type.some((function(t){return e(t,n,!0)})),s=i.type.map((function(e){return h(e)})).join(" or ")):a="Array"===(s=h(i))?d(n):"Object"===s?o()(n):"String"===s||"Number"===s||"Boolean"===s||"Function"===s?function(e){if(null==e)return null;var t=e.constructor.toString().match(u);return t&&t[1]}(n)===s:n instanceof i.type),a?l.call(i,"validator")&&p(i.validator)?((a=i.validator(n))||!1!==r||v(c+"custom validation failed"),a):a:(!1===r&&v(c+'value "'+n+'" should be of type "'+s+'"'),!1)},v=function(){},y={get any(){return g("any",{type:null})},get func(){return g("function",{type:Function}).def(A.func)},get bool(){return g("boolean",{type:Boolean}).def(A.bool)},get string(){return g("string",{type:String}).def(A.string)},get number(){return g("number",{type:Number}).def(A.number)},get array(){return g("array",{type:Array}).def(A.array)},get object(){return g("object",{type:Object}).def(A.object)},get integer(){return g("integer",{type:Number,validator:function(e){return f(e)}}).def(A.integer)},get symbol(){return g("symbol",{type:null,validator:function(e){return"symbol"===(void 0===e?"undefined":i()(e))}})},custom:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return g(e.name||"<<anonymous function>>",{validator:function(){var n=e.apply(void 0,arguments);return n||v(this._vueTypes_name+" - "+t),n}})},oneOf:function(e){if(!d(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t='oneOf - value should be one of "'+e.join('", "')+'"',n=e.reduce((function(e,t){return null!=t&&-1===e.indexOf(t.constructor)&&e.push(t.constructor),e}),[]);return g("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||v(t),r}})},instanceOf:function(e){return g("instanceOf",{type:e})},oneOfType:function(e){if(!d(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(o()(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(n.type&&!p(n.validator)){if(d(n.type))return e.concat(n.type);e.push(n.type)}else p(n.validator)&&(t=!0);return e}return e.push(n),e}),[]);if(!t)
// we got just native objects (ie: Array, Object)
// delegate to Vue native prop check
return g("oneOfType",{type:n}).def(void 0);var r=e.map((function(e){return e&&d(e.type)?e.type.map(h):h(e)})).reduce((function(e,t){return e.concat(d(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||m(e.type,t,!0):m(e,t,!0)}));return n||v('oneOfType - value type should be one of "'+r+'"'),n})).def(void 0)},arrayOf:function(e){return g("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return m(e,t)}));return n||v('arrayOf - value must be an array of "'+h(e)+'"'),n}})},objectOf:function(e){return g("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return m(e,t[n])}));return n||v('objectOf - value must be an object of "'+h(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=g("shape",{type:Object,validator:function(r){var i=this;if(!o()(r))return!1;var a=Object.keys(r);
// check for required keys (if any)
return n.length>0&&n.some((function(e){return-1===a.indexOf(e)}))?(v('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):a.every((function(n){if(-1===t.indexOf(n))return!0===i._vueTypes_isLoose||(v('shape - object is missing "'+n+'" property'),!1);var a=e[n];return m(a,r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}},A={func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0};Object.defineProperty(y,"sensibleDefaults",{enumerable:!1,set:function(e){!1===e?A={}:!0===e?A={func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0}:o()(e)&&(A=e)},get:function(){return A}});
/* harmony default export */t.a=y;
/***/},
/***/"4de4":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter;
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
// with adding support of @@species
r({target:"Array",proto:!0,forced:!n("1dde")("filter")},{filter:function(e/* , thisArg */){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},
/***/"4df4":
/***/function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),a=n("7b0b"),o=n("9bdd"),s=n("e95a"),c=n("68ee"),l=n("07fa"),u=n("8418"),h=n("9a1f"),f=n("35a1"),d=Array;
// `Array.from` method implementation
// https://tc39.es/ecma262/#sec-array.from
e.exports=function(e/* , mapfn = undefined, thisArg = undefined */){var t=a(e),n=c(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,A,b,w,x,C=f(t),_=0;
// if the target is not iterable or it's an array with the default iterator - use a simple case
if(!C||this===d&&s(C))for(v=l(t),y=n?new this(v):d(v);v>_;_++)x=m?g(t[_],_):t[_],u(y,_,x);else for(y=n?new this:[],w=(b=h(t,C)).next;!(A=i(w,b)).done;_++)x=m?o(b,g,[A.value,_],!0):A.value,u(y,_,x);return y.length=_,y}},
/***/"4df5":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return g}));
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
var r=n("41b2"),i=n.n(r),a=n("a026"),o=n("4d91"),s=n("daa3"),c=n("fc25"),l={functional:!0,inject:{configProvider:{default:function(){return g}}},props:{componentName:o.a.string},render:function(e,t){var n=arguments[0],r=t.props,i=t.injections;return function(e){var t=(0,i.configProvider.getPrefixCls)("empty");switch(e){case"Table":case"List":return n(c.a,{attrs:{image:c.a.PRESENTED_IMAGE_SIMPLE}});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n(c.a,{attrs:{image:c.a.PRESENTED_IMAGE_SIMPLE},class:t+"-small"});default:return n(c.a)}}(r.componentName)}};
/* harmony default export */var u=function(e,t){return e(l,{attrs:{componentName:t}})},h=n("db14"),f=n("d49c"),d=n("e5cd");
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/base/index.js + 2 modules
var p={name:"AConfigProvider",props:{getPopupContainer:o.a.func,prefixCls:o.a.string,renderEmpty:o.a.func,csp:o.a.object,autoInsertSpaceInButton:o.a.bool,locale:o.a.object,pageHeader:o.a.object,transformCellText:o.a.func},provide:function(){var e=this;return this._proxyVm=new a.default({data:function(){return i()({},e.$props,{getPrefixCls:e.getPrefixCls,renderEmpty:e.renderEmptyComponent})}}),{configProvider:this._proxyVm._data}},watch:i()({},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/config-provider/index.js
function(){var e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e[t]=function(e){this._proxyVm._data[t]=e}})),e}(["prefixCls","csp","autoInsertSpaceInButton","locale","pageHeader","transformCellText"])),methods:{renderEmptyComponent:function(e,t){return(Object(s.g)(this,"renderEmpty",{},!1)||u)(e,t)},getPrefixCls:function(e,t){var n=this.$props.prefixCls,r=void 0===n?"ant":n;return t||(e?r+"-"+e:r)},renderProvider:function(e){return(0,this.$createElement)(f.b,{attrs:{locale:this.locale||e,_ANT_MARK__:f.a}},[this.$slots.default?Object(s.c)(this.$slots.default)[0]:null])}},render:function(){var e=this;return(0,arguments[0])(d.a,{scopedSlots:{default:function(t,n,r){return e.renderProvider(r)}}})}},g={getPrefixCls:function(e,t){return t||"ant-"+e},renderEmpty:u};
/* istanbul ignore next */
p.install=function(e){e.use(h.a),e.component(p.name,p)};
/* harmony default export */t.b=p;
/***/},
/***/"4e3e":
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("7d54")},
/***/"4e71":
/***/function(e,t,n){n("e198")("observable");
/***/},
/***/"4e82":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("59ed"),o=n("7b0b"),s=n("07fa"),c=n("083a"),l=n("577e"),u=n("d039"),h=n("addb"),f=n("a640"),d=n("3f7e"),p=n("99f4"),g=n("1212"),m=n("ea83"),v=[],y=i(v.sort),A=i(v.push),b=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),x=f("sort"),C=!u((function(){
// feature detection can be too slow, so check engines versions
if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,i="";
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));
// `Array.prototype.sort` method
// https://tc39.es/ecma262/#sec-array.prototype.sort
r({target:"Array",proto:!0,forced:b||!w||!x||!C},{sort:function(e){void 0!==e&&a(e);var t=o(this);if(C)return void 0===e?y(t):y(t,e);var n,r,i=[],u=s(t);for(r=0;r<u;r++)r in t&&A(i,t[r]);for(h(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}}(e)),n=s(i),r=0;r<n;)t[r]=i[r++];for(;r<u;)c(t,r++);return t}})},
/***/"4e86":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"4ea4":
/***/function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"4eb1":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,f.initNeedSeries)(n,l.radarConfig,"radar");r=function(e,t){var n=t.radarAxis;if(!n)return[];var r=(0,o.default)(n.centerPos,2),i=r[0],a=r[1];return e.forEach((function(e){var t=e.labelPosition.map((function(e){var t=(0,o.default)(e,2),n=t[0],r=t[1];return{textAlign:n>i?"left":"right",textBaseline:r>a?"top":"bottom"}}));e.labelAlign=t})),e}(r=function(e,t){var n=t.radarAxis;if(!n)return[];var r=n.centerPos,i=n.axisLineAngles;return e.forEach((function(e){var t=e.dataRadius,n=e.label.labelGap;e.labelPosition=t.map((function(e,t){return u.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([e+n,i[t]]))}))})),e}(r=function(e,t){var n=t.radarAxis;if(!n)return[];var r=n.indicator,i=n.axisLineAngles,a=n.radius,o=n.centerPos;return e.forEach((function(e){var t=e.data;e.dataRadius=[],e.radarPosition=r.map((function(n,r){var c=n.max,l=n.min,h=t[r];"number"!=typeof c&&(c=h),"number"!=typeof l&&(l=0),"number"!=typeof h&&(h=l);var f=(h-l)/(c-l)*a;return e.dataRadius[r]=f,u.getCircleRadianPoint.apply(void 0,(0,s.default)(o).concat([f,i[r]]))}))})),e}(r,e),e),e),(0,c.doUpdate)({chart:e,series:r,key:"radar",getGraphConfig:p,getStartGraphConfig:g,beforeChange:y}),(0,c.doUpdate)({chart:e,series:r,key:"radarPoint",getGraphConfig:A,getStartGraphConfig:b}),(0,c.doUpdate)({chart:e,series:r,key:"radarLabel",getGraphConfig:C})};var i=r(n("9523")),a=r(n("7037")),o=r(n("278c")),s=r(n("448a")),c=n("18ad"),l=n("9d85"),u=n("5557"),h=n("a870"),f=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){var t=e.animationCurve,n=e.animationFrame;return[{name:"polyline",index:e.rLevel,animationCurve:t,animationFrame:n,shape:m(e),style:v(e)}]}function g(e,t){var n=t.chart.radarAxis.centerPos,r=p(e)[0],i=r.shape.points.length,a=new Array(i).fill(0).map((function(e){return(0,s.default)(n)}));return r.shape.points=a,[r]}function m(e){return{points:e.radarPosition,close:!0}}function v(e){var t=e.radarStyle,n=e.color,r=(0,h.getRgbaValue)(n);r[3]=.5;var i={stroke:n,fill:(0,h.getColorFromRgbValue)(r)};return(0,f.deepMerge)(i,t)}function y(e,t){var n=t.shape,r=e.shape.points,i=r.length,a=n.points.length;if(a>i){var o=r.slice(-1)[0],c=new Array(a-i).fill(0).map((function(e){return(0,s.default)(o)}));r.push.apply(r,(0,s.default)(c))}else a<i&&r.splice(a)}function A(e){var t=e.radarPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"circle",index:i,animationCurve:n,animationFrame:r,visible:e.point.show,shape:w(e,a),style:x(e,a)}}))}function b(e){var t=A(e);return t.forEach((function(e){return e.shape.r=.01})),t}function w(e,t){var n=e.radarPosition,r=e.point.radius,i=n[t];return{rx:i[0],ry:i[1],r:r}}function x(e,t){var n=e.point,r=e.color,i=n.style;return(0,f.deepMerge)({stroke:r},i)}function C(e){var t=e.labelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"text",index:i,visible:e.label.show,animationCurve:n,animationFrame:r,shape:_(e,a),style:I(e,a)}}))}function _(e,t){var n,r,i,s,c,l,u,h,f=e.labelPosition,d=e.label,p=e.data,g=d.offset,m=d.formatter,v=(n=f[t],r=g,i=(0,o.default)(n,2),s=i[0],c=i[1],l=(0,o.default)(r,2),u=l[0],h=l[1],[s+u,c+h]),y=p[t]?p[t].toString():"0",A=(0,a.default)(m);return"string"===A&&(y=m.replace("{value}",y)),"function"===A&&(y=m(y)),{content:y,position:v}}function I(e,t){var n=e.label,r=e.color,a=e.labelAlign,o=n.style,s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fill:r},a[t]);return(0,f.deepMerge)(s,o)}
/***/},
/***/"4ebc":
/***/function(e,t,n){
// 7.2.2 IsArray(argument)
var r=n("4d88");e.exports=Array.isArray||function(e){return"Array"==r(e)}},
/***/"4ec0":
/***/function(e,t,n){
// 19.1.2.11 Object.isExtensible(O)
var r=n("9fe8");n("0a66")("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},
/***/"4ec9":
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's replaced to module below
n("6f48")},
/***/"4f50":
/***/function(e,t,n){var r=n("b760e"),i=n("e5383"),a=n("c8fe"),o=n("4359"),s=n("fa21"),c=n("d370"),l=n("6747"),u=n("dcbe"),h=n("0d24"),f=n("9520"),d=n("1a8c"),p=n("60ed"),g=n("73ac"),m=n("8adb"),v=n("8de2");
/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */e.exports=function(e,t,n,y,A,b,w){var x=m(e,n),C=m(t,n),_=w.get(C);if(_)r(e,n,_);else{var I=b?b(x,C,n+"",e,t,w):void 0,E=void 0===I;if(E){var k=l(C),S=!k&&h(C),B=!k&&!S&&g(C);I=C,k||S||B?l(x)?I=x:u(x)?I=o(x):S?(E=!1,I=i(C,!0)):B?(E=!1,I=a(C,!0)):I=[]:p(C)||c(C)?(I=x,c(x)?I=v(x):d(x)&&!f(x)||(I=s(C))):E=!1}E&&(
// Recursively merge objects and arrays (susceptible to call stack limits).
w.set(C,I),A(I,C,y,b,w),w.delete(C)),r(e,n,I)}}},
/***/"4f85":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return v}));
/* harmony import */var r=n("7fae"),i=n("6d8b"),a=n("22d1"),o=n("e0d3"),s=n("6cb7"),c=n("4041"),l=n("38a2"),u=n("f934"),h=n("9fbc"),f=n("625e"),d=n("f72b"),p=n("f6d8"),g=o.o();
/* harmony import */function m(e,t){return e.getName(t)||e.getId(t)}var v="__universalTransitionEnabled",y=/** @class */function(e){function t(){
// [Caution]: Because this class or desecendants can be used as `XXX.extend(subProto)`,
// the class members must not be initialized in constructor or declaration place.
// Otherwise there is bad case:
//   class A {xxx = 1;}
//   enableClassExtend(A);
//   class B extends A {}
//   var C = B.extend({xxx: 5});
//   var c = new C();
//   console.log(c.xxx); // expect 5 but always 1.
var t=null!==e&&e.apply(this,arguments)||this;
// ---------------------------------------
// Props about data selection
// ---------------------------------------
return t._selectedDataIndicesMap={},t}var n;return Object(r.a)(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(h.a)({count:b,reset:w}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(g(this).sourceManager=new d.a(this)).prepareSource();var r=this.getInitialData(e,n);C(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,
// If we reverse the order (make data firstly, and then make
// dataBeforeProcessed by cloneShallow), cloneShallow will
// cause data.graph.data !== data when using
// module:echarts/data/Graph or module:echarts/data/Tree.
// See module:echarts/data/helper/linkSeriesData
// Theoretically, it is unreasonable to call `seriesModel.getData()` in the model
// init or merge stage, because the data can be restored. So we do not `restoreData`
// and `setData` here, which forbids calling `seriesModel.getData()` in this stage.
// Call `seriesModel.getRawData()` instead.
// this.restoreData();
A(this),this._initSelectedMapFromData(r)},
/**
   * Util for merge default and theme to option
   */
t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(u.d)(this),r=n?Object(u.f)(e):{},a=this.subType;s.a.hasClass(a)&&(a+="Series"),i.merge(e,t.getTheme().get(this.subType)),i.merge(e,this.getDefaultOption()),
// Default label emphasis `show`
o.f(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(u.h)(e,r,n)},t.prototype.mergeOption=function(e,t){
// this.settingTask.dirty();
e=i.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(u.d)(this);n&&Object(u.h)(this.option,e,n);var r=g(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(e,t);C(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,g(this).dataBeforeProcessed=a,A(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){
// Default data label emphasis `show`
// FIXME Tree structure data ?
// FIXME Performance ?
if(e&&!i.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&o.f(e[n],"label",t)},
/**
   * Init a data structure from data related option in series
   * Must be overridden.
   */
t.prototype.getInitialData=function(e,t){},
/**
   * Append data to list
   */
t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},
/**
   * Consider some method like `filter`, `map` need make new data,
   * We should make sure that `seriesModel.getData()` get correct
   * data in the stream procedure. So we fetch data from upstream
   * each time `task.perform` called.
   */
t.prototype.getData=function(e){var t=I(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}
// When series is not alive (that may happen when click toolbox
// restore or setOption with not merge mode), series data may
// be still need to judge animation or something when graphic
// elements want to know whether fade out.
return g(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=I(this);if(t){var n=t.context;
// Consider case: filter, data sample.
// FIXME:TS never used, so comment it
// if (context.data !== data && task.modifyOutputEnd) {
//     task.setOutputEnd(data.count());
// }
n.outputData=e,
// Caution: setData should update context.data,
// Because getData may be called multiply in a
// single stage and expect to get the data just
// set. (For example, AxisProxy, x y both call
// getData and setDate sequentially).
// So the context.data should be fetched from
// upstream each time when a stage starts to be
// performed.
t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return i.createHashMap(e)},t.prototype.getSourceManager=function(){return g(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},
/**
   * Get data before processed
   */
t.prototype.getRawData=function(){return g(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},
/**
   * Get base axis if has coordinate system and has axis.
   * By default use coordSys.getBaseAxis();
   * Can be overridden for some chart.
   * @return {type} description
   */
t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;
// @ts-ignore
return e&&e.getBaseAxis&&e.getBaseAxis()},
/**
   * Default tooltip formatter
   *
   * @param dataIndex
   * @param multipleSeries
   * @param dataType
   * @param renderMode valid values: 'html'(by default) and 'richText'.
   *        'html' is used for rendering tooltip in extra DOM form, and the result
   *        string is used as DOM HTML content.
   *        'richText' is used for rendering tooltip in rich text form, for those where
   *        DOM operation is not supported.
   * @return formatted tooltip with `html` and `markers`
   *        Notice: The override method can also return string
   */
t.prototype.formatTooltip=function(e,t,n){return Object(p.a)({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;
// Disable animation if using echarts in node but not give ssr flag.
// In ssr mode, renderToString will generate svg with css animation.
if(a.a.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=c.a.prototype.getColorFromPalette.call(this,e,t,n);
// PENDING
return i||(i=r.getColorFromPalette(e,t,n)),i},
/**
   * Use `data.mapDimensionsAll(coordDim)` instead.
   * @deprecated
   */
t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},
/**
   * Get progressive rendering count each step
   */
t.prototype.getProgressive=function(){return this.get("progressive")},
/**
   * Get progressive rendering count each step
   */
t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},
// PENGING If selectedMode is null ?
t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<e.length;a++){var o=m(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=i.keys(e),n=[],r=0;r<t.length;r++){var a=e[t[r]];a>=0&&n.push(a)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[m(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var e=this.option.universalTransition;
// Quick reject
return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,a=this.option,o=a.selectedMode,s=t.length;if(o&&s)if("series"===o)a.selectedMap="all";else if("multiple"===o){i.isObject(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,l=0;l<s;l++){var u=t[l];
// TODO different types of data share same object.
c[f=m(e,u)]=!0,this._selectedDataIndicesMap[f]=e.getRawIndex(u)}}else if("single"===o||!0===o){var h=t[s-1],f=m(e,h);a.selectedMap=((n={})[f]=!0,n),this._selectedDataIndicesMap=((r={})[f]=e.getRawIndex(h),r)}},t.prototype._initSelectedMapFromData=function(e){
// Ignore select info in data if selectedMap exists.
// NOTE It's only for legacy usage. edge data is not supported.
if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},
// /**
//  * @see {module:echarts/stream/Scheduler}
//  */
// abstract pipeTask: null
t.registerClass=function(e){return s.a.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",
// Make sure the values can be accessed!
n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(s.a);
/**
 * MUST be called after `prepareSource` called
 * Here we need to make auto series, especially for auto legend. But we
 * do not modify series.name in option to avoid side effects.
 */
function A(e){
// User specified name has higher priority, otherwise it may cause
// series can not be queried unexpectedly.
var t=e.name;o.n(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function b(e){return e.model.getRawData().count()}function w(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),x}function x(e,t){
// Avoid repeat cloneShallow when data just created in reset.
t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}
// TODO refactor
function C(e,t){i.each(i.concatArray(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,i.curry(_,t))}))}function _(e,t){var n=I(e);return n&&
// Consider case: filter, selectRange
n.setOutputEnd((t||this).count()),t}function I(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){
// When pipline finished, the currrentTask keep the last
// task (renderTask).
var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}
/* harmony default export */i.mixin(y,l.a),i.mixin(y,c.a),Object(f.e)(y,s.a),t.b=y},
/***/"4fac":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return i}));
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/vector.js
var r=n("401b");
// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/smoothBezier.js
// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/poly.js
function i(e,t,n){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var o=function(e,t,n,i){var a,o,s,c,l=[],u=[],h=[],f=[];if(i){s=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)Object(r.min)(s,s,e[d]),Object(r.max)(c,c,e[d]);Object(r.min)(s,s,i[0]),Object(r.max)(c,c,i[1])}for(d=0,p=e.length;d<p;d++){var g=e[d];if(n)a=e[d?d-1:p-1],o=e[(d+1)%p];else{if(0===d||d===p-1){l.push(Object(r.clone)(e[d]));continue}a=e[d-1],o=e[d+1]}Object(r.sub)(u,o,a),Object(r.scale)(u,u,t);var m=Object(r.distance)(g,a),v=Object(r.distance)(g,o),y=m+v;0!==y&&(m/=y,v/=y),Object(r.scale)(h,u,-m),Object(r.scale)(f,u,v);var A=Object(r.add)([],g,h),b=Object(r.add)([],g,f);i&&(Object(r.max)(A,A,s),Object(r.min)(A,A,c),Object(r.max)(b,b,s),Object(r.min)(b,b,c)),l.push(A),l.push(b)}return n&&l.push(l.shift()),l}(a,i,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var s=a.length,c=0;c<(n?s:s-1);c++){var l=o[2*c],u=o[2*c+1],h=a[(c+1)%s];e.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{e.moveTo(a[0][0],a[0][1]);c=1;for(var f=a.length;c<f;c++)e.lineTo(a[c][0],a[c][1])}n&&e.closePath()}}
/***/},
/***/"4fad":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("6f53").entries;
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},
/***/"4fadd":
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("861d"),a=n("c6b6"),o=n("d86b"),s=Object.isExtensible,c=r((function(){s(1)}));
// `Object.isExtensible` method
// https://tc39.es/ecma262/#sec-object.isextensible
e.exports=c||o?function(e){return!!i(e)&&((!o||"ArrayBuffer"!==a(e))&&(!s||s(e)))}:s},
/***/"4fd5":
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=r.get,o=r.key;r.exp({getOwnMetadata:function(e,t/* , targetKey */){return a(e,i(t),arguments.length<3?void 0:o(arguments[2]))}})},
/***/5010:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("42ee"),a=n("019f"),o=n("ed60"),s=n("8d87").f;
// B.2.2.5 Object.prototype.__lookupSetter__(P)
n("c94e")&&r(r.P+n("ac60"),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=a(e,!0);do{if(t=s(n,r))return t.set}while(n=o(n))}})},
/***/5013:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("f937"),a=n("2aef"),o=1..toPrecision;r(r.P+r.F*(i((function(){
// IE7-
return"1"!==o.call(1,void 0)}))||!i((function(){
// V8 ~ Android 4.3-
o.call({})}))),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?o.call(t):o.call(t,e)}})},
/***/5087:
/***/function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),a=TypeError;
// `Assert: IsConstructor(argument) is true`
e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},
/***/"5092c":
/***/function(e,t){!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}([function(e,t,n){"use strict";t.a=function(e){var t=L.PM.activeLang;return o()(s.a,t)||(t="en"),i()(s.a[t],e)},t.b=function(e){return!function e(t){return t.filter((function(e){return![null,"",void 0].includes(e)})).reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e).length};var r=n(37),i=n.n(r),a=n(138),o=n.n(a),s=n(36)},function(e,t,n){"use strict";var r=n(40),i=L.Class.extend({includes:[r.a],options:{snappable:!0,snapDistance:20,tooltips:!0,cursorMarker:!0,finishOnDoubleClick:!1,finishOn:null,allowSelfIntersection:!0,templineStyle:{},hintlineStyle:{color:"#3388ff",dashArray:"5,5"},markerStyle:{draggable:!0}},initialize:function(e){var t=this;this._map=e,this.shapes=["Marker","CircleMarker","Line","Polygon","Rectangle","Circle","Cut"],this.shapes.forEach((function(e){t[e]=new L.PM.Draw[e](t._map)}))},setPathOptions:function(e){this.options.pathOptions=e},getShapes:function(){return this.shapes},enable:function(e,t){if(!e)throw new Error("Error: Please pass a shape as a parameter. Possible shapes are: ".concat(this.getShapes().join(",")));this.disable(),this[e].enable(t)},disable:function(){var e=this;this.shapes.forEach((function(t){e[t].disable()}))},addControls:function(){var e=this;this.shapes.forEach((function(t){e[t].addButton()}))}});t.a=i},function(e,t,n){"use strict";var r=n(40),i=n(151),a=L.Class.extend({includes:[i.a,r.a],options:{snappable:!0,snapDistance:20,allowSelfIntersection:!0,draggable:!0},isPolygon:function(){return this._layer instanceof L.Polygon}});t.a=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(25),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(16),i=n(66),a=n(67),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function i(e,t,n){return void 0===n&&(n={}),r({type:"Point",coordinates:e},t,n)}function a(e,t,n){void 0===n&&(n={});for(var i=0,a=e;i<a.length;i++){var o=a[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:e},t,n)}function o(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:e},t,n)}function s(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function c(e,t,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:e},t,n)}function l(e,t,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:e},t,n)}function u(e,t,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:e},t,n)}function h(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e*r}function f(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e/r}function d(e){return e%(2*Math.PI)*180/Math.PI}function p(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:t.earthRadius/1.0936},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1/1.0936},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=r,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return i(t).geometry;case"LineString":return o(t).geometry;case"Polygon":return a(t).geometry;case"MultiPoint":return l(t).geometry;case"MultiLineString":return c(t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e+" is invalid")}},t.point=i,t.points=function(e,t,n){return void 0===n&&(n={}),s(e.map((function(e){return i(e,t)})),n)},t.polygon=a,t.polygons=function(e,t,n){return void 0===n&&(n={}),s(e.map((function(e){return a(e,t)})),n)},t.lineString=o,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),s(e.map((function(e){return o(e,t)})),n)},t.featureCollection=s,t.multiLineString=c,t.multiPoint=l,t.multiPolygon=u,t.geometryCollection=function(e,t,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:e},t,n)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},t.radiansToLength=h,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return d(f(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=d,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return h(f(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[n];if(!i)throw new Error("invalid original units");var a=t.areaFactors[r];if(!a)throw new Error("invalid final units");return e/i*a},t.isNumber=p,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!p(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")},t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},function(e,t,n){var r=n(54),i=n(55),a=n(56),o=n(57),s=n(58);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(11);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(14)(Object,"create");e.exports=r},function(e,t,n){var r=n(80);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(64),i=n(71);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(7),i=n(3);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(4).Symbol;e.exports=r},function(e,t,n){var r=n(28);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(95),i=n(5),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var r=n(15),i=n(21);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(7),i=n(5);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(14)(n(4),"Map");e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(65))},function(e,t,n){var r=n(72),i=n(79),a=n(81),o=n(82),s=n(83);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(17),i=n(11);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(14),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(94)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){(function(e){var r=n(4),i=n(97),a="object"==typeof t&&t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(t,n(18)(e))},function(e,t,n){var r=n(99),i=n(100),a=n(101),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(105),i=n(107),a=n(20);e.exports=function(e){return a(e)?r(e,!0):i(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(118),i=n.n(r),a=n(119),o=n.n(a),s=n(120),c=n.n(s),l=n(121),u=n.n(l),h=n(122),f=n.n(h),d=n(123),p=n.n(d),g=n(124),m=n.n(g),v=n(125),y=n.n(v),A=n(126),b=n.n(A),w=n(127),x=n.n(w);t.a={en:i.a,de:o.a,it:c.a,ro:u.a,ru:f.a,es:p.a,nl:m.a,fr:y.a,pt_br:x.a,zh:b.a}},function(e,t,n){var r=n(130);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(6),i=n(131),a=n(132),o=n(135);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,n){var r=n(23),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){"use strict";var r=n(41),i={_initSnappableMarkers:function(){this.options.snapDistance=this.options.snapDistance||30,this._assignEvents(this._markers),this._layer.off("pm:dragstart",this._unsnap,this),this._layer.on("pm:dragstart",this._unsnap,this)},_assignEvents:function(e){var t=this;e.forEach((function(e){Array.isArray(e)?t._assignEvents(e):(e.off("drag",t._handleSnapping,t),e.on("drag",t._handleSnapping,t),e.off("dragend",t._cleanupSnapping,t),e.on("dragend",t._cleanupSnapping,t))}))},_unsnap:function(){delete this._snapLatLng},_cleanupSnapping:function(){delete this._snapList,this._map.off("pm:remove",this._handleSnapLayerRemoval,this),this.debugIndicatorLines&&this.debugIndicatorLines.forEach((function(e){e.remove()}))},_handleSnapLayerRemoval:function(e){var t=e.layer,n=this._snapList.findIndex((function(e){return e._leaflet_id===t._leaflet_id}));this._snapList.splice(n,1)},_handleSnapping:function(e){if(e.originalEvent.altKey)return!1;if(void 0===this._snapList&&this._createSnapList(e),this._snapList.length<=0)return!1;var t,n=e.target,r=this._calcClosestLayer(n.getLatLng(),this._snapList);t=r.layer instanceof L.Marker||r.layer instanceof L.CircleMarker?r.latlng:this._checkPrioritiySnapping(r);var i=this.options.snapDistance,a={marker:n,snapLatLng:t,segment:r.segment,layer:this._layer,layerInteractedWith:r.layer,distance:r.distance};if(a.marker.fire("pm:snapdrag",a),this._layer.fire("pm:snapdrag",a),r.distance<i){n.setLatLng(t),n._snapped=!0;var o=this._snapLatLng||{},s=t||{};o.lat===s.lat&&o.lng===s.lng||(this._snapLatLng=t,n.fire("pm:snap",a),this._layer.fire("pm:snap",a))}else this._snapLatLng&&(this._unsnap(a),n._snapped=!1,a.marker.fire("pm:unsnap",a),this._layer.fire("pm:unsnap",a));return!0},_checkPrioritiySnapping:function(e){var t,n=this._map,i=e.segment[0],a=e.segment[1],o=e.latlng,s=this._getDistance(n,i,o),c=this._getDistance(n,a,o),l=s<c?i:a,u=s<c?s:c;if(this.options.snapMiddle){var h=r.a.calcMiddleLatLng(n,i,a),f=this._getDistance(n,h,o);f<s&&f<c&&(l=h,u=f)}return t=u<this.options.snapDistance?l:o,Object.assign({},t)},_createSnapList:function(){var e=this,t=[],n=[],r=this._map;r.off("pm:remove",this._handleSnapLayerRemoval,this),r.on("pm:remove",this._handleSnapLayerRemoval,this),r.eachLayer((function(e){if((e instanceof L.Polyline||e instanceof L.Marker||e instanceof L.CircleMarker)&&!0!==e.options.snapIgnore){t.push(e);var r=L.polyline([],{color:"red",pmIgnore:!0});r._pmTempLayer=!0,n.push(r)}})),t=(t=(t=t.filter((function(t){return e._layer!==t}))).filter((function(e){return e._latlng||e._latlngs&&e._latlngs.length>0}))).filter((function(e){return!e._pmTempLayer})),this._otherSnapLayers?this._snapList=t.concat(this._otherSnapLayers):this._snapList=t,this.debugIndicatorLines=n},_calcClosestLayer:function(e,t){var n=this,r={};return t.forEach((function(t,i){var a=n._calcLayerDistances(e,t);n.debugIndicatorLines[i].setLatLngs([e,a.latlng]),(void 0===r.distance||a.distance<r.distance)&&((r=a).layer=t)})),r},_calcLayerDistances:function(e,t){var n,r,i=this,a=this._map,o=t instanceof L.Marker||t instanceof L.CircleMarker,s=t instanceof L.Polygon,c=e,l=o?t.getLatLng():t.getLatLngs();if(o)return{latlng:Object.assign({},l),distance:this._getDistance(a,l,c)};!function e(t){t.forEach((function(o,l){if(Array.isArray(o))e(o);else{var u,h=o;u=s?l+1===t.length?0:l+1:l+1===t.length?void 0:l+1;var f=t[u];if(f){var d=i._getDistanceToSegment(a,c,h,f);(void 0===r||d<r)&&(r=d,n=[h,f])}}}))}(l);var u=this._getClosestPointOnSegment(a,e,n[0],n[1]);return{latlng:Object.assign({},u),segment:n,distance:r}},_getClosestPointOnSegment:function(e,t,n,r){var i=e.getMaxZoom();i===1/0&&(i=e.getZoom());var a=e.project(t,i),o=e.project(n,i),s=e.project(r,i),c=L.LineUtil.closestPointOnSegment(a,o,s);return e.unproject(c,i)},_getDistanceToSegment:function(e,t,n,r){var i=e.latLngToLayerPoint(t),a=e.latLngToLayerPoint(n),o=e.latLngToLayerPoint(r);return L.LineUtil.pointToSegmentDistance(i,a,o)},_getDistance:function(e,t,n){return e.latLngToLayerPoint(t).distanceTo(e.latLngToLayerPoint(n))}};t.a=i},function(e,t,n){"use strict";t.a={calcMiddleLatLng:function(e,t,n){var r=e.project(t),i=e.project(n);return e.unproject(r._add(i)._divideBy(2))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);function i(e,t,n,r,i,a,o,s){var c,l,u,h,f={x:null,y:null,onLine1:!1,onLine2:!1};return 0==(c=(s-a)*(n-e)-(o-i)*(r-t))?null!==f.x&&null!==f.y&&f:(h=(n-e)*(l=t-a)-(r-t)*(u=e-i),l=((o-i)*l-(s-a)*u)/c,u=h/c,f.x=e+l*(n-e),f.y=t+l*(r-t),l>=0&&l<=1&&(f.onLine1=!0),u>=0&&u<=1&&(f.onLine2=!0),!(!f.onLine1||!f.onLine2)&&[f.x,f.y])}t.default=function(e){var t,n,a={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===e.type?e.geometry:e).type)t=[n.coordinates];else if("MultiLineString"===n.type)t=n.coordinates;else if("MultiPolygon"===n.type)t=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=n.coordinates}return t.forEach((function(e){t.forEach((function(t){for(var n=0;n<e.length-1;n++)for(var o=n;o<t.length-1;o++){if(e===t){if(1===Math.abs(n-o))continue;if(0===n&&o===e.length-2&&e[n][0]===e[e.length-1][0]&&e[n][1]===e[e.length-1][1])continue}var s=i(e[n][0],e[n][1],e[n+1][0],e[n+1][1],t[o][0],t[o][1],t[o+1][0],t[o+1][1]);s&&a.features.push(r.point([s[0],s[1]]))}}))})),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.getCoord=function(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")},t.getCoords=function(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},t.containsNumber=function e(t){if(t.length>1&&r.isNumber(t[0])&&r.isNumber(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")},t.geojsonType=function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},t.featureOf=function(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)},t.collectionOf=function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0,i=e.features;r<i.length;r++){var a=i[r];if(!a||"Feature"!==a.type||!a.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!a.geometry||a.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+a.geometry.type)}},t.getGeom=function(e){return"Feature"===e.type?e.geometry:e},t.getType=function(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}},function(e,t,n){!function(e){"use strict";function t(e,t){return e>t?1:e<t?-1:0}var n=function(e,n){void 0===e&&(e=t),void 0===n&&(n=!1),this._compare=e,this._root=null,this._size=0,this._noDuplicates=!!n},r={size:{configurable:!0}};n.prototype.rotateLeft=function(e){var t=e.right;t&&(e.right=t.left,t.left&&(t.left.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.left=e),e.parent=t},n.prototype.rotateRight=function(e){var t=e.left;t&&(e.left=t.right,t.right&&(t.right.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.right=e),e.parent=t},n.prototype._splay=function(e){for(;e.parent;){var t=e.parent;t.parent?t.left===e&&t.parent.left===t?(this.rotateRight(t.parent),this.rotateRight(t)):t.right===e&&t.parent.right===t?(this.rotateLeft(t.parent),this.rotateLeft(t)):t.left===e&&t.parent.right===t?(this.rotateRight(t),this.rotateLeft(t)):(this.rotateLeft(t),this.rotateRight(t)):t.left===e?this.rotateRight(t):this.rotateLeft(t)}},n.prototype.splay=function(e){for(var t,n,r,i,a;e.parent;)(n=(t=e.parent).parent)&&n.parent?((r=n.parent).left===n?r.left=e:r.right=e,e.parent=r):(e.parent=null,this._root=e),i=e.left,a=e.right,e===t.left?(n&&(n.left===t?(t.right?(n.left=t.right,n.left.parent=n):n.left=null,t.right=n,n.parent=t):(i?(n.right=i,i.parent=n):n.right=null,e.left=n,n.parent=e)),a?(t.left=a,a.parent=t):t.left=null,e.right=t,t.parent=e):(n&&(n.right===t?(t.left?(n.right=t.left,n.right.parent=n):n.right=null,t.left=n,n.parent=t):(a?(n.left=a,a.parent=n):n.left=null,e.right=n,n.parent=e)),i?(t.right=i,i.parent=t):t.right=null,e.left=t,t.parent=e)},n.prototype.replace=function(e,t){e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.parent=e.parent)},n.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},n.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},n.prototype.insert=function(e,t){var n=this._root,r=null,i=this._compare;if(this._noDuplicates)for(;n;){if(r=n,0===i(n.key,e))return;n=i(n.key,e)<0?n.right:n.left}else for(;n;)r=n,n=i(n.key,e)<0?n.right:n.left;return n={key:e,data:t,left:null,right:null,parent:r},r?i(r.key,n.key)<0?r.right=n:r.left=n:this._root=n,this.splay(n),this._size++,n},n.prototype.find=function(e){for(var t=this._root,n=this._compare;t;){var r=n(t.key,e);if(r<0)t=t.right;else{if(!(r>0))return t;t=t.left}}return null},n.prototype.contains=function(e){for(var t=this._root,n=this._compare;t;){var r=n(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1},n.prototype.remove=function(e){var t=this.find(e);if(!t)return!1;if(this.splay(t),t.left)if(t.right){var n=this.minNode(t.right);n.parent!==t&&(this.replace(n,n.right),n.right=t.right,n.right.parent=n),this.replace(t,n),n.left=t.left,n.left.parent=n}else this.replace(t,t.left);else this.replace(t,t.right);return this._size--,!0},n.prototype.removeNode=function(e){if(!e)return!1;if(this.splay(e),e.left)if(e.right){var t=this.minNode(e.right);t.parent!==e&&(this.replace(t,t.right),t.right=e.right,t.right.parent=t),this.replace(e,t),t.left=e.left,t.left.parent=t}else this.replace(e,e.left);else this.replace(e,e.right);return this._size--,!0},n.prototype.erase=function(e){var t=this.find(e);if(t){this.splay(t);var n=t.left,r=t.right,i=null;n&&(n.parent=null,i=this.maxNode(n),this.splay(i),this._root=i),r&&(n?i.right=r:this._root=r,r.parent=i),this._size--}},n.prototype.pop=function(){var e=this._root,t=null;if(e){for(;e.left;)e=e.left;t={key:e.key,data:e.data},this.remove(e.key)}return t},n.prototype.next=function(e){var t=e;if(t)if(t.right)for(t=t.right;t&&t.left;)t=t.left;else for(t=e.parent;t&&t.right===e;)e=t,t=t.parent;return t},n.prototype.prev=function(e){var t=e;if(t)if(t.left)for(t=t.left;t&&t.right;)t=t.right;else for(t=e.parent;t&&t.left===e;)e=t,t=t.parent;return t},n.prototype.forEach=function(e){for(var t=this._root,n=[],r=!1,i=0;!r;)t?(n.push(t),t=t.left):n.length>0?(e(t=n.pop(),i++),t=t.right):r=!0;return this},n.prototype.range=function(e,t,n,r){for(var i=[],a=this._compare,o=this._root;0!==i.length||o;)if(o)i.push(o),o=o.left;else{if(a((o=i.pop()).key,t)>0)break;if(a(o.key,e)>=0&&n.call(r,o))return this;o=o.right}return this},n.prototype.keys=function(){for(var e=this._root,t=[],n=[],r=!1;!r;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),n.push(e.key),e=e.right):r=!0;return n},n.prototype.values=function(){for(var e=this._root,t=[],n=[],r=!1;!r;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),n.push(e.data),e=e.right):r=!0;return n},n.prototype.at=function(e){for(var t=this._root,n=[],r=!1,i=0;!r;)if(t)n.push(t),t=t.left;else if(n.length>0){if(t=n.pop(),i===e)return t;i++,t=t.right}else r=!0;return null},n.prototype.load=function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=!1),0!==this._size)throw new Error("bulk-load: tree is not empty");var r=e.length;return n&&function e(t,n,r,i,a){if(!(r>=i)){for(var o=t[r+i>>1],s=r-1,c=i+1;;){do{s++}while(a(t[s],o)<0);do{c--}while(a(t[c],o)>0);if(s>=c)break;var l=t[s];t[s]=t[c],t[c]=l,l=n[s],n[s]=n[c],n[c]=l}e(t,n,r,c,a),e(t,n,c+1,i,a)}}(e,t,0,r-1,this._compare),this._root=function e(t,n,r,i,a){var o=a-i;if(o>0){var s=i+Math.floor(o/2),c={key:n[s],data:r[s],parent:t};return c.left=e(c,n,r,i,s),c.right=e(c,n,r,s+1,a),c}return null}(null,e,t,0,r),this._size=r,this},n.prototype.min=function(){var e=this.minNode(this._root);return e?e.key:null},n.prototype.max=function(){var e=this.maxNode(this._root);return e?e.key:null},n.prototype.isEmpty=function(){return null===this._root},r.size.get=function(){return this._size},n.createTree=function(e,t,r,i,a){return new n(r,a).load(e,t,i)},Object.defineProperties(n.prototype,r);var i=0,a=1,o=2,s=3,c=0,l=1,u=2,h=3;function f(e,t,n){null===t?(e.inOut=!1,e.otherInOut=!0):(e.isSubject===t.isSubject?(e.inOut=!t.inOut,e.otherInOut=t.otherInOut):(e.inOut=!t.otherInOut,e.otherInOut=t.isVertical()?!t.inOut:t.inOut),t&&(e.prevInResult=!d(t,n)||t.isVertical()?t.prevInResult:t)),e.inResult=d(e,n)}function d(e,t){switch(e.type){case i:switch(t){case c:return!e.otherInOut;case l:return e.otherInOut;case u:return e.isSubject&&e.otherInOut||!e.isSubject&&!e.otherInOut;case h:return!0}break;case o:return t===c||t===l;case s:return t===u;case a:return!1}return!1}var p=function(e,t,n,r,a){this.left=t,this.point=e,this.otherEvent=n,this.isSubject=r,this.type=a||i,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.inResult=!1,this.resultInOut=!1,this.isExteriorRing=!0};function g(e,t){return e[0]===t[0]&&e[1]===t[1]}function m(e,t,n){return(e[0]-n[0])*(t[1]-n[1])-(t[0]-n[0])*(e[1]-n[1])}function v(e,t){var n=e.point,r=t.point;return n[0]>r[0]?1:n[0]<r[0]?-1:n[1]!==r[1]?n[1]>r[1]?1:-1:function(e,t,n){return e.left!==t.left?e.left?1:-1:0!==m(n,e.otherEvent.point,t.otherEvent.point)?e.isBelow(t.otherEvent.point)?-1:1:!e.isSubject&&t.isSubject?1:-1}(e,t,n)}function y(e,t,n){var r=new p(t,!1,e,e.isSubject),i=new p(t,!0,e.otherEvent,e.isSubject);return g(e.point,e.otherEvent.point),r.contourId=i.contourId=e.contourId,v(i,e.otherEvent)>0&&(e.otherEvent.left=!0,i.left=!1),e.otherEvent.otherEvent=i,e.otherEvent=r,n.push(i),n.push(r),n}function A(e,t){return e[0]*t[1]-e[1]*t[0]}function b(e,t){return e[0]*t[0]+e[1]*t[1]}function w(e,t,n){var r=function(e,t,n,r,i){var a=[t[0]-e[0],t[1]-e[1]],o=[r[0]-n[0],r[1]-n[1]];function s(e,t,n){return[e[0]+t*n[0],e[1]+t*n[1]]}var c=[n[0]-e[0],n[1]-e[1]],l=A(a,o),u=l*l,h=b(a,a);if(u>0){var f=A(c,o)/l;if(f<0||f>1)return null;var d=A(c,a)/l;return d<0||d>1?null:0===f||1===f?i?null:[s(e,f,a)]:0===d||1===d?i?null:[s(n,d,o)]:[s(e,f,a)]}if((u=(l=A(c,a))*l)>0)return null;var p=b(a,c)/h,g=p+b(a,o)/h,m=Math.min(p,g),v=Math.max(p,g);return m<=1&&v>=0?1===m?i?null:[s(e,m>0?m:0,a)]:0===v?i?null:[s(e,v<1?v:1,a)]:i&&0===m&&1===v?null:[s(e,m>0?m:0,a),s(e,v<1?v:1,a)]:null}(e.point,e.otherEvent.point,t.point,t.otherEvent.point),i=r?r.length:0;if(0===i)return 0;if(1===i&&(g(e.point,t.point)||g(e.otherEvent.point,t.otherEvent.point)))return 0;if(2===i&&e.isSubject===t.isSubject)return 0;if(1===i)return g(e.point,r[0])||g(e.otherEvent.point,r[0])||y(e,r[0],n),g(t.point,r[0])||g(t.otherEvent.point,r[0])||y(t,r[0],n),1;var c=[],l=!1,u=!1;return g(e.point,t.point)?l=!0:1===v(e,t)?c.push(t,e):c.push(e,t),g(e.otherEvent.point,t.otherEvent.point)?u=!0:1===v(e.otherEvent,t.otherEvent)?c.push(t.otherEvent,e.otherEvent):c.push(e.otherEvent,t.otherEvent),l&&u||l?(t.type=a,e.type=t.inOut===e.inOut?o:s,l&&!u&&y(c[1].otherEvent,c[0].point,n),2):u?(y(c[0],c[1].point,n),3):c[0]!==c[3].otherEvent?(y(c[0],c[1].point,n),y(c[1],c[2].point,n),3):(y(c[0],c[1].point,n),y(c[3].otherEvent,c[2].point,n),3)}function x(e,t){if(e===t)return 0;if(0!==m(e.point,e.otherEvent.point,t.point)||0!==m(e.point,e.otherEvent.point,t.otherEvent.point))return g(e.point,t.point)?e.isBelow(t.otherEvent.point)?-1:1:e.point[0]===t.point[0]?e.point[1]<t.point[1]?-1:1:1===v(e,t)?t.isAbove(e.point)?-1:1:e.isBelow(t.point)?-1:1;if(e.isSubject!==t.isSubject)return e.isSubject?-1:1;var n=e.point,r=t.point;return n[0]===r[0]&&n[1]===r[1]?(n=e.otherEvent.point,r=t.otherEvent.point,n[0]===r[0]&&n[1]===r[1]?0:e.contourId>t.contourId?1:-1):1===v(e,t)?1:-1}function C(e,t,n,r){var i=e+1,a=t.length;if(i>a-1)return e-1;for(var o=t[e].point,s=t[i].point;i<a&&s[0]===o[0]&&s[1]===o[1];){if(!n[i])return i;s=t[++i].point}for(i=e-1;n[i]&&i>=r;)i--;return i}function _(e,t){var n,r,i,a=function(e){var t,n,r,i,a=[];for(n=0,r=e.length;n<r;n++)((t=e[n]).left&&t.inResult||!t.left&&t.otherEvent.inResult)&&a.push(t);for(var o=!1;!o;)for(o=!0,n=0,r=a.length;n<r;n++)n+1<r&&1===v(a[n],a[n+1])&&(i=a[n],a[n]=a[n+1],a[n+1]=i,o=!1);for(n=0,r=a.length;n<r;n++)(t=a[n]).pos=n;for(n=0,r=a.length;n<r;n++)(t=a[n]).left||(i=t.pos,t.pos=t.otherEvent.pos,t.otherEvent.pos=i);return a}(e),o={},s=[];for(n=0,r=a.length;n<r;n++)if(!o[n]){var c=[[]];a[n].isExteriorRing?t===u&&!a[n].isSubject&&s.length>1?s[s.length-1].push(c[0]):s.push(c):t!==u||a[n].isSubject||0!==s.length?0===s.length?s.push([[c]]):s[s.length-1].push(c[0]):s.push(c);var l=s.length-1,h=n,f=a[n].point;for(c[0].push(f);h>=n;)i=a[h],o[h]=!0,i.left?(i.resultInOut=!1,i.contourId=l):(i.otherEvent.resultInOut=!0,i.otherEvent.contourId=l),o[h=i.pos]=!0,c[0].push(a[h].point),h=C(h,a,o,n);i=a[h=-1===h?n:h],o[h]=o[i.pos]=!0,i.otherEvent.resultInOut=!0,i.otherEvent.contourId=l}return s}p.prototype.isBelow=function(e){var t=this.point,n=this.otherEvent.point;return this.left?(t[0]-e[0])*(n[1]-e[1])-(n[0]-e[0])*(t[1]-e[1])>0:(n[0]-e[0])*(t[1]-e[1])-(t[0]-e[0])*(n[1]-e[1])>0},p.prototype.isAbove=function(e){return!this.isBelow(e)},p.prototype.isVertical=function(){return this.point[0]===this.otherEvent.point[0]},p.prototype.clone=function(){var e=new p(this.point,this.left,this.otherEvent,this.isSubject,this.type);return e.inResult=this.inResult,e.prevInResult=this.prevInResult,e.isExteriorRing=this.isExteriorRing,e.inOut=this.inOut,e.otherInOut=this.otherInOut,e};var I=k,E=k;function k(e,t){if(!(this instanceof k))return new k(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||S,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}function S(e,t){return e<t?-1:e>t?1:0}k.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var i=e-1>>1,a=t[i];if(n(r,a)>=0)break;t[e]=a,e=i}t[e]=r},_down:function(e){for(var t=this.data,n=this.compare,r=this.length>>1,i=t[e];e<r;){var a=1+(e<<1),o=a+1,s=t[a];if(o<this.length&&n(t[o],s)<0&&(a=o,s=t[o]),n(s,i)>=0)break;t[e]=s,e=a}t[e]=i}},I.default=E;var B=Math.max,M=Math.min,T=0;function O(e,t,n,r,i,a){var o,s,c,l,u,h;for(o=0,s=e.length-1;o<s;o++)if(c=e[o],l=e[o+1],u=new p(c,!1,void 0,t),h=new p(l,!1,u,t),u.otherEvent=h,c[0]!==l[0]||c[1]!==l[1]){u.contourId=h.contourId=n,a||(u.isExteriorRing=!1,h.isExteriorRing=!1),v(u,h)>0?h.left=!0:u.left=!0;var f=c[0],d=c[1];i[0]=M(i[0],f),i[1]=M(i[1],d),i[2]=B(i[2],f),i[3]=B(i[3],d),r.push(u),r.push(h)}}var D=[];function P(e,t,r){"number"==typeof e[0][0][0]&&(e=[e]),"number"==typeof t[0][0][0]&&(t=[t]);var i=function(e,t,n){var r=null;return e.length*t.length==0&&(n===c?r=D:n===u?r=e:n!==l&&n!==h||(r=0===e.length?t:e)),r}(e,t,r);if(i)return i===D?null:i;var a=[1/0,1/0,-1/0,-1/0],o=[1/0,1/0,-1/0,-1/0],s=function(e,t,n,r,i){var a,o,s,c,l,h,f=new I(null,v);for(s=0,c=e.length;s<c;s++)for(l=0,h=(a=e[s]).length;l<h;l++)(o=0===l)&&T++,O(a[l],!0,T,f,n,o);for(s=0,c=t.length;s<c;s++)for(l=0,h=(a=t[s]).length;l<h;l++)o=0===l,i===u&&(o=!1),o&&T++,O(a[l],!1,T,f,r,o);return f}(e,t,a,o,r);return(i=function(e,t,n,r,i){var a=null;return(n[0]>r[2]||r[0]>n[2]||n[1]>r[3]||r[1]>n[3])&&(i===c?a=D:i===u?a=e:i!==l&&i!==h||(a=e.concat(t))),a}(e,t,a,o,r))?i===D?null:i:_(function(e,t,r,i,a,o){for(var s,l,h,d=new n(x),p=[],g=Math.min(i[2],a[2]);0!==e.length;){var m=e.pop();if(p.push(m),o===c&&m.point[0]>g||o===u&&m.point[0]>i[2])break;if(m.left){l=s=d.insert(m),s=s!==(h=d.minNode())?d.prev(s):null,l=d.next(l);var v=s?s.key:null;if(f(m,v,o),l&&2===w(m,l.key,e)&&(f(m,v,o),f(m,l.key,o)),s&&2===w(s.key,m,e)){var y=s;f(v,(y=y!==h?d.prev(y):null)?y.key:null,o),f(m,v,o)}}else m=m.otherEvent,l=s=d.find(m),s&&l&&(s=s!==h?d.prev(s):null,l=d.next(l),d.remove(m),l&&s&&w(s.key,l.key,e))}return p}(s,0,0,a,o,r),r)}var L={UNION:l,DIFFERENCE:u,INTERSECTION:c,XOR:h};e.union=function(e,t){return P(e,t,l)},e.diff=function(e,t){return P(e,t,u)},e.xor=function(e,t){return P(e,t,h)},e.intersection=function(e,t){return P(e,t,c)},e.operations=L,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);function i(e,t,n){if(null!==e)for(var r,a,o,s,c,l,u,h,f=0,d=0,p=e.type,g="FeatureCollection"===p,m="Feature"===p,v=g?e.features.length:1,y=0;y<v;y++){c=(h=!!(u=g?e.features[y].geometry:m?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var A=0;A<c;A++){var b=0,w=0;if(null!==(s=h?u.geometries[A]:u)){l=s.coordinates;var x=s.type;switch(f=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===t(l,d,y,b,w))return!1;d++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(!1===t(l[r],d,y,b,w))return!1;d++,"MultiPoint"===x&&b++}"LineString"===x&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(a=0;a<l[r].length-f;a++){if(!1===t(l[r][a],d,y,b,w))return!1;d++}"MultiLineString"===x&&b++,"Polygon"===x&&w++}"Polygon"===x&&b++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for(w=0,a=0;a<l[r].length;a++){for(o=0;o<l[r][a].length-f;o++){if(!1===t(l[r][a][o],d,y,b,w))return!1;d++}w++}b++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===i(s.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function a(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function o(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function s(e,t){var n,r,i,a,o,s,c,l,u,h,f=0,d="FeatureCollection"===e.type,p="Feature"===e.type,g=d?e.features.length:1;for(n=0;n<g;n++){for(s=d?e.features[n].geometry:p?e.geometry:e,l=d?e.features[n].properties:p?e.properties:{},u=d?e.features[n].bbox:p?e.bbox:void 0,h=d?e.features[n].id:p?e.id:void 0,o=(c=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<o;i++)if(null!==(a=c?s.geometries[i]:s))switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(a,f,l,u,h))return!1;break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===t(a.geometries[r],f,l,u,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,f,l,u,h))return!1;f++}}function c(e,t){s(e,(function(e,n,i,a,o){var s,c=null===e?null:e.type;switch(c){case null:case"Point":case"LineString":case"Polygon":return!1!==t(r.feature(e,i,{bbox:a,id:o}),n,0)&&void 0}switch(c){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var l=0;l<e.coordinates.length;l++){var u={type:s,coordinates:e.coordinates[l]};if(!1===t(r.feature(u,i),n,l))return!1}}))}function l(e,t){c(e,(function(e,n,a){var o=0;if(e.geometry){var s=e.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var c,l=0,u=0,h=0;return!1!==i(e,(function(i,s,f,d,p){if(void 0===c||n>l||d>u||p>h)return c=i,l=n,u=d,h=p,void(o=0);var g=r.lineString([c,i],e.properties);if(!1===t(g,n,a,p,o))return!1;o++,c=i}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");c(e,(function(e,n,i){if(null!==e.geometry){var a=e.geometry.type,o=e.geometry.coordinates;switch(a){case"LineString":if(!1===t(e,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(!1===t(r.lineString(o[s],e.properties),n,i,s))return!1}}}))}t.coordEach=i,t.coordReduce=function(e,t,n,r){var a=n;return i(e,(function(e,r,i,o,s){a=0===r&&void 0===n?e:t(a,e,r,i,o,s)}),r),a},t.propEach=a,t.propReduce=function(e,t,n){var r=n;return a(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.featureEach=o,t.featureReduce=function(e,t,n){var r=n;return o(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.coordAll=function(e){var t=[];return i(e,(function(e){t.push(e)})),t},t.geomEach=s,t.geomReduce=function(e,t,n){var r=n;return s(e,(function(e,i,a,o,s){r=0===i&&void 0===n?e:t(r,e,i,a,o,s)})),r},t.flattenEach=c,t.flattenReduce=function(e,t,n){var r=n;return c(e,(function(e,i,a){r=0===i&&0===a&&void 0===n?e:t(r,e,i,a)})),r},t.segmentEach=l,t.segmentReduce=function(e,t,n){var r=n,i=!1;return l(e,(function(e,a,o,s,c){r=!1===i&&void 0===n?e:t(r,e,a,o,s,c),i=!0})),r},t.lineEach=u,t.lineReduce=function(e,t,n){var r=n;return u(e,(function(e,i,a,o){r=0===i&&void 0===n?e:t(r,e,i,a,o)})),r},t.findSegment=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,a=t.multiFeatureIndex||0,o=t.geometryIndex||0,s=t.segmentIndex||0,c=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),c=c||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":c=c||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var l=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=l.length+s-1),r.lineString([l[s],l[s+1]],c,t);case"Polygon":return o<0&&(o=l.length+o),s<0&&(s=l[o].length+s-1),r.lineString([l[o][s],l[o][s+1]],c,t);case"MultiLineString":return a<0&&(a=l.length+a),s<0&&(s=l[a].length+s-1),r.lineString([l[a][s],l[a][s+1]],c,t);case"MultiPolygon":return a<0&&(a=l.length+a),o<0&&(o=l[a].length+o),s<0&&(s=l[a][o].length-s-1),r.lineString([l[a][o][s],l[a][o][s+1]],c,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,a=t.multiFeatureIndex||0,o=t.geometryIndex||0,s=t.coordIndex||0,c=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),c=c||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":c=c||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var l=n.coordinates;switch(n.type){case"Point":return r.point(l,c,t);case"MultiPoint":return a<0&&(a=l.length+a),r.point(l[a],c,t);case"LineString":return s<0&&(s=l.length+s),r.point(l[s],c,t);case"Polygon":return o<0&&(o=l.length+o),s<0&&(s=l[o].length+s),r.point(l[o][s],c,t);case"MultiLineString":return a<0&&(a=l.length+a),s<0&&(s=l[a].length+s),r.point(l[a][s],c,t);case"MultiPolygon":return a<0&&(a=l.length+a),o<0&&(o=l[a].length+o),s<0&&(s=l[a][o].length-s),r.point(l[a][o][s],c,t)}throw new Error("geojson is invalid")}},function(e,t,n){e.exports=n(47)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(48),i=(n.n(r),n(49)),a=(n.n(i),n(50)),o=n(128),s=n(1),c=(n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(2)),l=(n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159)),u=(n.n(l),n(160));n.n(u),L.PM=L.PM||{version:i.version,Map:a.a,Toolbar:o.a,Draw:s.a,Edit:c.a,activeLang:"en",initialize:function(){this.addInitHooks()},addInitHooks:function(){L.Map.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Map(this))})),L.LayerGroup.addInitHook((function(){this.pm=new L.PM.Edit.LayerGroup(this)})),L.Marker.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Edit.Marker(this))})),L.CircleMarker.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Edit.CircleMarker(this))})),L.Polyline.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Edit.Line(this))})),L.Polygon.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Edit.Polygon(this))})),L.Rectangle.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Edit.Rectangle(this))})),L.Circle.addInitHook((function(){this.options.pmIgnore||(this.pm=new L.PM.Edit.Circle(this))}))}},L.PM.initialize()},function(e,t){Array.prototype.findIndex=Array.prototype.findIndex||function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=0;i<n;i++)if(e.call(r,t[i],i,t))return i;return-1},Array.prototype.find=Array.prototype.find||function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=0;i<n;i++){var a=t[i];if(e.call(r,a,i,t))return a}},"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t){e.exports={name:"leaflet.pm",version:"2.2.0",description:"A Leaflet Plugin For Editing Geometry Layers in Leaflet 1.0",keywords:["leaflet","polygon management","geometry editing","map data","map overlay","polygon","geojson","leaflet-draw","data-field-geojson","ui-leaflet-draw"],files:["dist"],main:"dist/leaflet.pm.min.js",dependencies:{"@turf/difference":"^6.0.2","@turf/intersect":"^6.1.3","@turf/kinks":"6.x",lodash:"^4.17.15"},devDependencies:{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","babel-loader":"^8.0.6","css-loader":"^2.1.1",cypress:"^3.4.1",eslint:"^4.19.1","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^3.6.0","eslint-plugin-cypress":"^2.6.1","eslint-plugin-import":"^2.18.2","extract-text-webpack-plugin":"^3.0.2","file-loader":"^0.11.1",leaflet:"^1.5.1",prettier:"1.16.1","style-loader":"^0.19.0","uglifyjs-webpack-plugin":"^1.3.0","url-loader":"^0.6.2",webpack:"^3.12.0"},peerDependencies:{leaflet:"^1.2.0"},scripts:{start:"npm run dev",dev:"./node_modules/.bin/webpack --config=webpack.dev.js",test:"$(npm bin)/cypress run",cypress:"$(npm bin)/cypress open",build:"./node_modules/.bin/webpack --config=webpack.build.js",prepare:"npm run build","eslint-check":"eslint --print-config . | eslint-config-prettier-check",eslint:"eslint src/ --fix",prettier:"prettier --write '{src,cypress}/**/*.{js,css}'",lint:"npm run eslint && npm run prettier"},repository:{type:"git",url:"git://github.com/codeofsumit/leaflet.pm.git"},author:{name:"Sumit Kumar",email:"sk@outlook.com",url:"http://twitter.com/TweetsOfSumit"},license:"MIT",bugs:{url:"https://github.com/codeofsumit/leaflet.pm/issues"},homepage:"https://leafletpm.now.sh",prettier:{trailingComma:"es5",tabWidth:2,semi:!0,singleQuote:!0}}},function(e,t,n){"use strict";var r=n(51),i=n.n(r),a=n(36),o=L.Class.extend({initialize:function(e){this.map=e,this.Draw=new L.PM.Draw(e),this.Toolbar=new L.PM.Toolbar(e),this._globalRemovalMode=!1},setLang:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";t&&(a.a[e]=i()(a.a[n],t)),L.PM.activeLang=e,this.map.pm.Toolbar.reinit()},addControls:function(e){this.Toolbar.addControls(e)},removeControls:function(){this.Toolbar.removeControls()},toggleControls:function(){this.Toolbar.toggleControls()},controlsVisible:function(){return this.Toolbar.isVisible},enableDraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Polygon",t=arguments.length>1?arguments[1]:void 0;"Poly"===e&&(e="Polygon"),this.Draw.enable(e,t)},disableDraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Polygon";"Poly"===e&&(e="Polygon"),this.Draw.disable(e)},setPathOptions:function(e){this.Draw.setPathOptions(e)},findLayers:function(){var e=[];return this.map.eachLayer((function(t){(t instanceof L.Polyline||t instanceof L.Marker||t instanceof L.Circle||t instanceof L.CircleMarker)&&e.push(t)})),e=(e=e.filter((function(e){return!!e.pm}))).filter((function(e){return!e._pmTempLayer}))},removeLayer:function(e){var t=e.target;!(t._pmTempLayer||t.pm&&t.pm.dragging())&&(t.remove(),this.map.fire("pm:remove",{layer:t}))},globalDragModeEnabled:function(){return!!this._globalDragMode},enableGlobalDragMode:function(){var e=this.findLayers();this._globalDragMode=!0,e.forEach((function(e){e.pm.enableLayerDrag()})),this.map.on("layeradd",this.layerAddHandler,this),this.Toolbar.toggleButton("dragMode",this._globalDragMode),this._fireDragModeEvent(!0)},disableGlobalDragMode:function(){var e=this.findLayers();this._globalDragMode=!1,e.forEach((function(e){e.pm.disableLayerDrag()})),this.map.off("layeradd",this.layerAddHandler,this),this.Toolbar.toggleButton("dragMode",this._globalDragMode),this._fireDragModeEvent(!1)},_fireDragModeEvent:function(e){this.map.fire("pm:globaldragmodetoggled",{enabled:e,map:this.map})},toggleGlobalDragMode:function(){this.globalDragModeEnabled()?this.disableGlobalDragMode():this.enableGlobalDragMode()},layerAddHandler:function(e){var t=e.layer;t.pm&&!t._pmTempLayer&&(this.globalRemovalEnabled()&&(this.disableGlobalRemovalMode(),this.enableGlobalRemovalMode()),this.globalEditEnabled()&&(this.disableGlobalEditMode(),this.enableGlobalEditMode()),this.globalDragModeEnabled()&&(this.disableGlobalDragMode(),this.enableGlobalDragMode()))},disableGlobalRemovalMode:function(){var e=this;this._globalRemovalMode=!1,this.map.eachLayer((function(t){t.off("click",e.removeLayer,e)})),this.map.off("layeradd",this.layerAddHandler,this),this.Toolbar.toggleButton("deleteLayer",this._globalRemovalMode),this._fireRemovalModeEvent(!1)},enableGlobalRemovalMode:function(){var e=this;this._globalRemovalMode=!0,this.map.eachLayer((function(t){(function(e){return e.pm&&!(e.pm.options&&e.pm.options.preventMarkerRemoval)&&!(e instanceof L.LayerGroup)})(t)&&t.on("click",e.removeLayer,e)})),this.map.on("layeradd",this.layerAddHandler,this),this.Toolbar.toggleButton("deleteLayer",this._globalRemovalMode),this._fireRemovalModeEvent(!0)},_fireRemovalModeEvent:function(e){this.map.fire("pm:globalremovalmodetoggled",{enabled:e,map:this.map})},toggleGlobalRemovalMode:function(){this.globalRemovalEnabled()?this.disableGlobalRemovalMode():this.enableGlobalRemovalMode()},globalRemovalEnabled:function(){return!!this._globalRemovalMode},globalEditEnabled:function(){return this._globalEditMode},enableGlobalEditMode:function(e){var t=this.findLayers();this._globalEditMode=!0,t.forEach((function(t){t.pm.enable(e)})),this.map.on("layeradd",this.layerAddHandler,this),this.Toolbar.toggleButton("editPolygon",this._globalEditMode),this._fireEditModeEvent(!0)},disableGlobalEditMode:function(){var e=this.findLayers();this._globalEditMode=!1,e.forEach((function(e){e.pm.disable()})),this.map.on("layeroff",this.layerAddHandler,this),this.Toolbar.toggleButton("editPolygon",this._globalEditMode),this._fireEditModeEvent(!1)},_fireEditModeEvent:function(e){this.map.fire("pm:globaleditmodetoggled",{enabled:e,map:this.map})},toggleGlobalEditMode:function(e){this.globalEditEnabled()?this.disableGlobalEditMode():this.enableGlobalEditMode(e)}});t.a=o},function(e,t,n){var r=n(52),i=n(109)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(53),i=n(27),a=n(84),o=n(86),s=n(3),c=n(34),l=n(33);e.exports=function e(t,n,u,h,f){t!==n&&a(n,(function(a,c){if(f||(f=new r),s(a))o(t,n,c,u,e,h,f);else{var d=h?h(l(t,c),a,c+"",t,n,f):void 0;void 0===d&&(d=a),i(t,c,d)}}),c)}},function(e,t,n){var r=n(9),i=n(59),a=n(60),o=n(61),s=n(62),c=n(63);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(10),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(10);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(10);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(9);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(9),i=n(24),a=n(26);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(15),i=n(68),a=n(3),o=n(70),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,f=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?f:s).test(o(e))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(16),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(69),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(4)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(73),i=n(9),a=n(24);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(74),i=n(75),a=n(76),o=n(77),s=n(78);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(12);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(12),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(12),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(13);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(13);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(13);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(13);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(85)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}},function(e,t,n){var r=n(27),i=n(87),a=n(88),o=n(91),s=n(92),c=n(19),l=n(6),u=n(96),h=n(31),f=n(15),d=n(3),p=n(98),g=n(32),m=n(33),v=n(102);e.exports=function(e,t,n,y,A,b,w){var x=m(e,n),C=m(t,n),_=w.get(C);if(_)r(e,n,_);else{var I=b?b(x,C,n+"",e,t,w):void 0,E=void 0===I;if(E){var k=l(C),S=!k&&h(C),B=!k&&!S&&g(C);I=C,k||S||B?l(x)?I=x:u(x)?I=o(x):S?(E=!1,I=i(C,!0)):B?(E=!1,I=a(C,!0)):I=[]:p(C)||c(C)?(I=x,c(x)?I=v(x):d(x)&&!f(x)||(I=s(C))):E=!1}E&&(w.set(C,I),A(I,C,y,b,w),w.delete(C)),r(e,n,I)}}},function(e,t,n){(function(e){var r=n(4),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(t,n(18)(e))},function(e,t,n){var r=n(89);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(90);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(4).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(93),i=n(29),a=n(30);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},function(e,t,n){var r=n(3),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(7),i=n(5);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(20),i=n(5);e.exports=function(e){return i(e)&&r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(7),i=n(29),a=n(5),o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var r=n(7),i=n(21),a=n(5),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(25),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(t,n(18)(e))},function(e,t,n){var r=n(103),i=n(34);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(104),i=n(17);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),o?i(n,l,u):r(n,l,u)}return n}},function(e,t,n){var r=n(17),i=n(11),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(106),i=n(19),a=n(6),o=n(31),s=n(22),c=n(32),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&i(e),h=!n&&!u&&o(e),f=!n&&!u&&!h&&c(e),d=n||u||h||f,p=d?r(e.length,String):[],g=p.length;for(var m in e)!t&&!l.call(e,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(3),i=n(30),a=n(108),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(110),i=n(117);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t}))}},function(e,t,n){var r=n(35),i=n(111),a=n(113);e.exports=function(e,t){return a(i(e,t,r),e+"")}},function(e,t,n){var r=n(112),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=n(c),r(e,this,l)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(114),i=n(116)(r);e.exports=i},function(e,t,n){var r=n(115),i=n(28),a=n(35),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(11),i=n(20),a=n(22),o=n(3);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t){e.exports={tooltips:{placeMarker:"Click to place marker",firstVertex:"Click to place first vertex",continueLine:"Click to continue drawing",finishLine:"Click any existing marker to finish",finishPoly:"Click first marker to finish",finishRect:"Click to finish",startCircle:"Click to place circle center",finishCircle:"Click to finish circle",placeCircleMarker:"Click to place circle marker"},actions:{finish:"Finish",cancel:"Cancel",removeLastVertex:"Remove Last Vertex"},buttonTitles:{drawMarkerButton:"Draw Marker",drawPolyButton:"Draw Polygons",drawLineButton:"Draw Polyline",drawCircleButton:"Draw Circle",drawRectButton:"Draw Rectangle",editButton:"Edit Layers",dragButton:"Drag Layers",cutButton:"Cut Layers",deleteButton:"Remove Layers",drawCircleMarkerButton:"Draw Circle Marker"}}},function(e,t){e.exports={tooltips:{placeMarker:"Platziere den Marker mit Klick",firstVertex:"Platziere den ersten Marker mit Klick",continueLine:"Klicke, um weiter zu zeichnen",finishLine:"Beende mit Klick auf existierenden Marker",finishPoly:"Beende mit Klick auf ersten Marker",finishRect:"Beende mit Klick",startCircle:"Platziere das Kreiszentrum mit Klick",finishCircle:"Beende den Kreis mit Klick",placeCircleMarker:"Platziere den Kreismarker mit Klick"},actions:{finish:"Beenden",cancel:"Abbrechen",removeLastVertex:"Letzten Vertex löschen"},buttonTitles:{drawMarkerButton:"Marker zeichnen",drawPolyButton:"Polygon zeichnen",drawLineButton:"Polyline zeichnen",drawCircleButton:"Kreis zeichnen",drawRectButton:"Rechteck zeichnen",editButton:"Layer editieren",dragButton:"Layer bewegen",cutButton:"Layer schneiden",deleteButton:"Layer löschen",drawCircleMarkerButton:"Kreismarker zeichnen"}}},function(e,t){e.exports={tooltips:{placeMarker:"Clicca per posizionare un Marker",firstVertex:"Clicca per posizionare il primo vertice",continueLine:"Clicca per continuare a disegnare",finishLine:"Clicca qualsiasi marker esistente per terminare",finishPoly:"Clicca il primo marker per terminare",finishRect:"Clicca per terminare",startCircle:"Clicca per posizionare il punto centrale del cerchio",finishCircle:"Clicca per terminare il cerchio",placeCircleMarker:"Clicca per posizionare un Marker del cherchio"},actions:{finish:"Termina",cancel:"Annulla",removeLastVertex:"Rimuovi l'ultimo vertice"},buttonTitles:{drawMarkerButton:"Disegna Marker",drawPolyButton:"Disegna Poligoni",drawLineButton:"Disegna Polilinea",drawCircleButton:"Disegna Cerchio",drawRectButton:"Disegna Rettangolo",editButton:"Modifica Livelli",dragButton:"Sposta Livelli",cutButton:"Ritaglia Livelli",deleteButton:"Elimina Livelli",drawCircleMarkerButton:"Disegna Marker del Cherchio"}}},function(e,t){e.exports={tooltips:{placeMarker:"Adaugă un punct",firstVertex:"Apasă aici pentru a adăuga primul Vertex",continueLine:"Apasă aici pentru a continua desenul",finishLine:"Apasă pe orice obiect pentru a finisa desenul",finishPoly:"Apasă pe primul obiect pentru a finisa",finishRect:"Apasă pentru a finisa",startCircle:"Apasă pentru a desena un cerc",finishCircle:"Apasă pentru a finisa un cerc",placeCircleMarker:"Adaugă un punct"},actions:{finish:"Termină",cancel:"Anulează",removeLastVertex:"Șterge ultimul Vertex"},buttonTitles:{drawMarkerButton:"Adaugă o bulină",drawPolyButton:"Desenează un poligon",drawLineButton:"Desenează o linie",drawCircleButton:"Desenează un cerc",drawRectButton:"Desenează un dreptunghi",editButton:"Editează straturile",dragButton:"Mută straturile",cutButton:"Taie straturile",deleteButton:"Șterge straturile",placeCircleMarker:"Adaugă o bulină"}}},function(e,t){e.exports={tooltips:{placeMarker:"Щелкните, чтобы поместить маркер",firstVertex:"Нажмите, чтобы поместить первый объект",continueLine:"Нажмите, чтобы продолжить рисование",finishLine:"Щелкните любой существующий маркер для завершения",finishPoly:"Выберите первую точку, чтобы закончить",finishRect:"Нажмите, чтобы закончить",startCircle:"Нажмите чтобы добавить круг",finishCircle:"Нажмите чтобы закончить круг",placeCircleMarker:"Click to place circle marker"},actions:{finish:"Заканчивать",cancel:"Отмена",removeLastVertex:"Удалить последний объект на карте"},buttonTitles:{drawMarkerButton:"Добавить маркер",drawPolyButton:"Рисовать полигон",drawLineButton:"Рисовать Полилинию",drawCircleButton:"Рисовать круг",drawRectButton:"Рисовать Прямоугольник",editButton:"Редактировать слой",dragButton:"Перетаскивать слой",cutButton:"Вырезать слой",deleteButton:"Удалить слой",placeCircleMarker:"Щелкните, чтобы поместить маркер"}}},function(e,t){e.exports={tooltips:{placeMarker:"Presiona para colocar un marcador",firstVertex:"Presiona para colocar el primer vértice",continueLine:"Presiona para continuar dibujando",finishLine:"Presiona cualquier marcador existente para finalizar",finishPoly:"Presiona el primer marcador para finalizar",finishRect:"Presiona para finalizar",startCircle:"Presiona para colocar el centro del circulo",finishCircle:"Presiona para finalizar el circulo",placeCircleMarker:"Presiona para colocar un marcador de circulo"},actions:{finish:"Finalizar",cancel:"Cancelar",removeLastVertex:"Remover ultimo vértice"},buttonTitles:{drawMarkerButton:"Dibujar Marcador",drawPolyButton:"Dibujar Polígono",drawLineButton:"Dibujar Línea",drawCircleButton:"Dibujar Circulo",drawRectButton:"Dibujar Rectángulo",editButton:"Editar Capas",dragButton:"Arrastrar Capas",cutButton:"Cortar Capas",deleteButton:"Remover Capas",drawCircleMarkerButton:"Dibujar Marcador de Circulo"}}},function(e,t){e.exports={tooltips:{placeMarker:"Klik om een marker te plaatsen",firstVertex:"Klik om het eerste punt te plaatsen",continueLine:"Klik om te blijven tekenen",finishLine:"Klik op een bestaand punt om te beëindigen",finishPoly:"Klik op het eerst punt om te beëindigen",finishRect:"Klik om te beëindigen",startCircle:"Klik om het middelpunt te plaatsen",finishCircle:"Klik om de cirkel te beëindigen",placeCircleMarker:"Klik om een marker te plaatsen"},actions:{finish:"Bewaar",cancel:"Annuleer",removeLastVertex:"Verwijder laatste punt"},buttonTitles:{drawMarkerButton:"Plaats Marker",drawPolyButton:"Teken een vlak",drawLineButton:"Teken een lijn",drawCircleButton:"Teken een cirkel",drawRectButton:"Teken een vierkant",editButton:"Bewerk",dragButton:"Verplaats",cutButton:"Knip",deleteButton:"Verwijder",drawCircleMarkerButton:"Plaats Marker"}}},function(e,t){e.exports={tooltips:{placeMarker:"Cliquez pour placer un marqueur",firstVertex:"Cliquez pour placer le premier sommet",continueLine:"Cliquez pour continuer à dessiner",finishLine:"Cliquez sur n'importe quel marqueur pour terminer",finishPoly:"Cliquez sur le premier marqueur pour terminer",finishRect:"Cliquez pour terminer",startCircle:"Cliquez pour placer le centre du cercle",finishCircle:"Cliquez pour finir le cercle"},actions:{finish:"Terminer",cancel:"Annuler",removeLastVertex:"Retirer le dernier sommet"},buttonTitles:{drawMarkerButton:"Placer des marqueurs",drawPolyButton:"Dessiner des polygones",drawLineButton:"Dessiner des polylignes",drawCircleButton:"Dessiner un cercle",drawRectButton:"Dessiner un rectangle",editButton:"Éditer des calques",dragButton:"Déplacer des calques",cutButton:"Couper des calques",deleteButton:"Supprimer des calques"}}},function(e,t){e.exports={tooltips:{placeMarker:"单击放置标记",firstVertex:"单击放置首个顶点",continueLine:"单击继续绘制",finishLine:"单击任何存在的标记以完成",finishPoly:"单击第一个标记以完成",finishRect:"单击完成",startCircle:"单击放置圆心",finishCircle:"单击完成圆形"},actions:{finish:"完成",cancel:"取消",removeLastVertex:"移除最后的顶点"},buttonTitles:{drawMarkerButton:"绘制标记",drawPolyButton:"绘制多边形",drawLineButton:"绘制线段",drawCircleButton:"绘制圆形",drawRectButton:"绘制长方形",editButton:"编辑图层",dragButton:"拖拽图层",cutButton:"剪切图层",deleteButton:"删除图层"}}},function(e,t){e.exports={tooltips:{placeMarker:"Clique para posicionar o marcador",firstVertex:"Clique para posicionar o primeiro vértice",continueLine:"Clique para continuar desenhando",finishLine:"Clique em qualquer marcador existente para finalizar",finishPoly:"Clique no primeiro ponto para fechar o polígono",finishRect:"Clique para finalizar",startCircle:"Clique para posicionar o centro do círculo",finishCircle:"Clique para fechar o círculo"},actions:{finish:"Finalizar",cancel:"Cancelar",removeLastVertex:"Remover último vértice"},buttonTitles:{drawMarkerButton:"Desenhar um marcador",drawPolyButton:"Desenhar um polígono",drawLineButton:"Desenhar uma polilinha",drawCircleButton:"Desenhar um círculo",drawRectButton:"Desenhar um retângulo",editButton:"Editar camada(s)",dragButton:"Mover camada(s)",cutButton:"Recortar camada(s)",deleteButton:"Remover camada(s)"}}},function(e,t,n){"use strict";var r=n(129),i=n(0);L.Control.PMButton=r.a;var a=L.Class.extend({options:{drawMarker:!0,drawRectangle:!0,drawPolyline:!0,drawPolygon:!0,drawCircle:!0,drawCircleMarker:!0,editMode:!0,dragMode:!0,cutPolygon:!0,removalMode:!0,position:"topleft"},initialize:function(e){this.init(e)},reinit:function(){var e=this.isVisible;this.removeControls(),this._defineButtons(),e&&this.addControls()},init:function(e){this.map=e,this.buttons={},this.isVisible=!1,this.drawContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-draw leaflet-bar leaflet-control"),this.editContainer=L.DomUtil.create("div","leaflet-pm-toolbar leaflet-pm-edit leaflet-bar leaflet-control"),this._defineButtons()},getButtons:function(){return this.buttons},addControls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options;void 0!==e.editPolygon&&(e.editMode=e.editPolygon),void 0!==e.deleteLayer&&(e.removalMode=e.deleteLayer),L.Util.setOptions(this,e),this.applyIconStyle(),this._showHideButtons(),this.isVisible=!0},applyIconStyle:function(){var e=this.getButtons(),t={geomanIcons:{drawMarker:"control-icon leaflet-pm-icon-marker",drawPolyline:"control-icon leaflet-pm-icon-polyline",drawRectangle:"control-icon leaflet-pm-icon-rectangle",drawPolygon:"control-icon leaflet-pm-icon-polygon",drawCircle:"control-icon leaflet-pm-icon-circle",drawCircleMarker:"control-icon leaflet-pm-icon-circle-marker",editMode:"control-icon leaflet-pm-icon-edit",dragMode:"control-icon leaflet-pm-icon-drag",cutPolygon:"control-icon leaflet-pm-icon-cut",removalMode:"control-icon leaflet-pm-icon-delete"}};for(var n in e){var r=e[n];L.Util.setOptions(r,{className:t.geomanIcons[n]})}},removeControls:function(){var e=this.getButtons();for(var t in e)e[t].remove();this.isVisible=!1},toggleControls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options;this.isVisible?this.removeControls():this.addControls(e)},_addButton:function(e,t){return this.buttons[e]=t,this.options[e]=this.options[e]||!1,this.buttons[e]},triggerClickOnToggledButtons:function(e){for(var t in this.buttons)this.buttons[t]!==e&&this.buttons[t].toggled()&&this.buttons[t]._triggerClick()},toggleButton:function(e,t){return"editPolygon"===e&&(e="editMode"),"deleteLayer"===e&&(e="removalMode"),this.triggerClickOnToggledButtons(this.buttons[e]),this.buttons[e].toggle(t)},_defineButtons:function(){var e=this,t={className:"control-icon leaflet-pm-icon-marker",title:Object(i.a)("buttonTitles.drawMarkerButton"),jsClass:"Marker",onClick:function(){},afterClick:function(){e.map.pm.Draw.Marker.toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},n={title:Object(i.a)("buttonTitles.drawPolyButton"),className:"control-icon leaflet-pm-icon-polygon",jsClass:"Polygon",onClick:function(){},afterClick:function(){e.map.pm.Draw.Polygon.toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},r={className:"control-icon leaflet-pm-icon-polyline",title:Object(i.a)("buttonTitles.drawLineButton"),jsClass:"Line",onClick:function(){},afterClick:function(){e.map.pm.Draw.Line.toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["finish","removeLastVertex","cancel"]},a={title:Object(i.a)("buttonTitles.drawCircleButton"),className:"control-icon leaflet-pm-icon-circle",jsClass:"Circle",onClick:function(){},afterClick:function(){e.map.pm.Draw.Circle.toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},o={title:Object(i.a)("buttonTitles.drawCircleMarkerButton"),className:"control-icon leaflet-pm-icon-circle-marker",jsClass:"CircleMarker",onClick:function(){},afterClick:function(){e.map.pm.Draw.CircleMarker.toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},s={title:Object(i.a)("buttonTitles.drawRectButton"),className:"control-icon leaflet-pm-icon-rectangle",jsClass:"Rectangle",onClick:function(){},afterClick:function(){e.map.pm.Draw.Rectangle.toggle()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,actions:["cancel"]},c={title:Object(i.a)("buttonTitles.editButton"),className:"control-icon leaflet-pm-icon-edit",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalEditMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["cancel"]},l={title:Object(i.a)("buttonTitles.dragButton"),className:"control-icon leaflet-pm-icon-drag",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalDragMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["cancel"]},u={title:Object(i.a)("buttonTitles.cutButton"),className:"control-icon leaflet-pm-icon-cut",jsClass:"Cut",onClick:function(){},afterClick:function(){e.map.pm.Draw.Cut.toggle({snappable:!0,cursorMarker:!0,allowSelfIntersection:!1})},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["finish","removeLastVertex","cancel"]},h={title:Object(i.a)("buttonTitles.deleteButton"),className:"control-icon leaflet-pm-icon-delete",onClick:function(){},afterClick:function(){e.map.pm.toggleGlobalRemovalMode()},doToggle:!0,toggleStatus:!1,disableOtherButtons:!0,position:this.options.position,tool:"edit",actions:["cancel"]};this._addButton("drawMarker",new L.Control.PMButton(t)),this._addButton("drawPolyline",new L.Control.PMButton(r)),this._addButton("drawRectangle",new L.Control.PMButton(s)),this._addButton("drawPolygon",new L.Control.PMButton(n)),this._addButton("drawCircle",new L.Control.PMButton(a)),this._addButton("drawCircleMarker",new L.Control.PMButton(o)),this._addButton("editMode",new L.Control.PMButton(c)),this._addButton("dragMode",new L.Control.PMButton(l)),this._addButton("cutPolygon",new L.Control.PMButton(u)),this._addButton("removalMode",new L.Control.PMButton(h))},_showHideButtons:function(){this.removeControls();var e=this.getButtons();for(var t in e)this.options[t]&&(e[t].setPosition(this.options.position),e[t].addTo(this.map))}});t.a=a},function(e,t,n){"use strict";var r=n(0),i=L.Control.extend({options:{position:"topleft"},initialize:function(e){this._button=L.Util.setOptions(this,e)},onAdd:function(e){return this._map=e,this._container="edit"===this._button.tool?this._map.pm.Toolbar.editContainer:this._map.pm.Toolbar.drawContainer,this.buttonsDomNode=this._makeButton(this._button),this._container.appendChild(this.buttonsDomNode),this._container},onRemove:function(){return this.buttonsDomNode.remove(),this._container},getText:function(){return this._button.text},getIconUrl:function(){return this._button.iconUrl},destroy:function(){this._button={},this._update()},toggle:function(e){return this._button.toggleStatus="boolean"==typeof e?e:!this._button.toggleStatus,this._applyStyleClasses(),this._button.toggleStatus},toggled:function(){return this._button.toggleStatus},onCreate:function(){this.toggle(!1)},_triggerClick:function(e){this._button.onClick(e),this._clicked(e),this._button.afterClick(e)},_makeButton:function(e){var t=this,n=L.DomUtil.create("div","button-container",this._container),i=L.DomUtil.create("a","leaflet-buttons-control-button",n),a=L.DomUtil.create("div","leaflet-pm-actions-container",n),o=e.actions,s={cancel:{text:Object(r.a)("actions.cancel"),onClick:function(){this._triggerClick()}},removeLastVertex:{text:Object(r.a)("actions.removeLastVertex"),onClick:function(){this._map.pm.Draw[e.jsClass]._removeLastVertex()}},finish:{text:Object(r.a)("actions.finish"),onClick:function(t){this._map.pm.Draw[e.jsClass]._finishShape(t)}}};o.forEach((function(e){var n=s[e],r=L.DomUtil.create("a","leaflet-pm-action action-".concat(e),a);r.innerHTML=n.text,L.DomEvent.addListener(r,"click",n.onClick,t),L.DomEvent.disableClickPropagation(r)})),e.toggleStatus&&L.DomUtil.addClass(i,"active");var c=L.DomUtil.create("div","control-icon",i);return e.title&&c.setAttribute("title",e.title),e.iconUrl&&c.setAttribute("src",e.iconUrl),e.className&&L.DomUtil.addClass(c,e.className),L.DomEvent.addListener(i,"click",(function(){t._button.disableOtherButtons&&t._map.pm.Toolbar.triggerClickOnToggledButtons(t)})),L.DomEvent.addListener(i,"click",this._triggerClick,this),L.DomEvent.disableClickPropagation(i),n},_applyStyleClasses:function(){this._container&&(this._button.toggleStatus?L.DomUtil.addClass(this.buttonsDomNode,"active"):L.DomUtil.removeClass(this.buttonsDomNode,"active"))},_clicked:function(){this._button.doToggle&&this.toggle()}});t.a=i},function(e,t,n){var r=n(38),i=n(39);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(6),i=n(23),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(133)((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(134);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(26);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(136);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(16),i=n(137),a=n(6),o=n(23),s=1/0,c=r?r.prototype:void 0,l=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(139),i=n(140);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(38),i=n(19),a=n(6),o=n(22),s=n(21),c=n(39);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,h=!1;++l<u;){var f=c(t[l]);if(!(h=null!=e&&n(e,f)))break;e=e[f]}return h||++l!=u?h:!!(u=null==e?0:e.length)&&s(u)&&o(f,u)&&(a(e)||i(e))}},function(e,t,n){"use strict";var r=n(1),i=n(0);r.a.Marker=r.a.extend({initialize:function(e){this._map=e,this._shape="Marker",this.toolbarButtonName="drawMarker"},enable:function(e){var t=this;L.Util.setOptions(this,e),this._enabled=!0,this._map.on("click",this._createMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._hintMarker=L.marker([0,0],this.options.markerStyle),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this.options.tooltips&&this._hintMarker.bindTooltip(Object(i.a)("tooltips.placeMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._layer=this._hintMarker,this._map.on("mousemove",this._syncHintMarker,this),this._map.fire("pm:drawstart",{shape:this._shape,workingLayer:this._layer}),this._map.eachLayer((function(e){t.isRelevantMarker(e)&&e.pm.enable()}))},disable:function(){var e=this;this._enabled&&(this._map.off("click",this._createMarker,this),this._hintMarker.remove(),this._map.off("mousemove",this._syncHintMarker,this),this._map.eachLayer((function(t){e.isRelevantMarker(t)&&t.pm.disable()})),this._map.fire("pm:drawend",{shape:this._shape}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping(),this._enabled=!1)},isRelevantMarker:function(e){return e instanceof L.Marker&&e.pm&&!e._pmTempLayer},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_createMarker:function(e){if(e.latlng){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng(),n=new L.Marker(t,this.options.markerStyle);n.addTo(this._map),n.pm.enable(),this._map.fire("pm:create",{shape:this._shape,marker:n,layer:n}),this._cleanupSnapping()}},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}}})},function(e,t,n){"use strict";var r=n(42),i=n.n(r),a=n(1),o=n(0);a.a.Line=a.a.extend({initialize:function(e){this._map=e,this._shape="Line",this.toolbarButtonName="drawPolyline",this._doesSelfIntersect=!1},enable:function(e){L.Util.setOptions(this,e),this.options.finishOnDoubleClick&&!this.options.finishOn&&(this.options.finishOn="dblclick"),this._enabled=!0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.polyline([],this.options.templineStyle),this._layer._pmTempLayer=!0,this._layerGroup.addLayer(this._layer),this._hintline=L.polyline([],this.options.hintlineStyle),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._hintMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Object(o.a)("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._map._container.style.cursor="crosshair",this._map.on("click",this._createVertex,this),this.options.finishOn&&this._map.on(this.options.finishOn,this._finishShape,this),"dblclick"===this.options.finishOn&&(this.tempMapDoubleClickZoomState=this._map.doubleClickZoom._enabled,this.tempMapDoubleClickZoomState&&this._map.doubleClickZoom.disable()),this._map.on("mousemove",this._syncHintMarker,this),this._hintMarker.on("move",this._syncHintLine,this),this._map.fire("pm:drawstart",{shape:this._shape,workingLayer:this._layer}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[]},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._createVertex,this),this._map.off("mousemove",this._syncHintMarker,this),this.options.finishOn&&this._map.off(this.options.finishOn,this._finishShape,this),this.tempMapDoubleClickZoomState&&this._map.doubleClickZoom.enable(),this._map.removeLayer(this._layerGroup),this._map.fire("pm:drawend",{shape:this._shape}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},hasSelfIntersection:function(){return i()(this._layer.toGeoJSON(15)).features.length>0},_syncHintLine:function(){var e=this._layer.getLatLngs();if(e.length>0){var t=e[e.length-1];this._hintline.setLatLngs([t,this._hintMarker.getLatLng()])}},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}this.options.allowSelfIntersection||this._handleSelfIntersection(!0,e.latlng)},_handleSelfIntersection:function(e,t){var n=L.polyline(this._layer.getLatLngs());e&&(t||(t=this._hintMarker.getLatLng()),n.addLatLng(t));var r=i()(n.toGeoJSON(15));this._doesSelfIntersect=r.features.length>0,this._doesSelfIntersect?this._hintline.setStyle({color:"red"}):this._hintline.setStyle(this.options.hintlineStyle)},_removeLastVertex:function(){var e=this._layer.getLatLngs(),t=e.pop();if(e.length<1)this.disable();else{var n=this._layerGroup.getLayers().filter((function(e){return e instanceof L.Marker})).filter((function(e){return!L.DomUtil.hasClass(e._icon,"cursor-marker")})).find((function(e){return e.getLatLng()===t}));this._layerGroup.removeLayer(n),this._layer.setLatLngs(e),this._syncHintLine()}},_createVertex:function(e){if(this.options.allowSelfIntersection||(this._handleSelfIntersection(!0,e.latlng),!this._doesSelfIntersect)){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();if(t.equals(this._layer.getLatLngs()[0]))this._finishShape(e);else{var n=0===this._layer.getLatLngs().length;this._layer.addLatLng(t);var r=this._createMarker(t,n);this._hintline.setLatLngs([t,t]),this._layer.fire("pm:vertexadded",{shape:this._shape,workingLayer:this._layer,marker:r,latlng:t})}}},_finishShape:function(){if(this.options.allowSelfIntersection||(this._handleSelfIntersection(!1),!this._doesSelfIntersect)){var e=this._layer.getLatLngs();if(!(e.length<=1)){var t=L.polyline(e,this.options.pathOptions).addTo(this._map);this.disable(),this._map.fire("pm:create",{shape:this._shape,layer:t}),this.options.snappable&&this._cleanupSnapping()}}},_createMarker:function(e,t){var n=new L.Marker(e,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return n._pmTempLayer=!0,this._layerGroup.addLayer(n),n.on("click",this._finishShape,this),t&&this._hintMarker.setTooltipContent(Object(o.a)("tooltips.continueLine")),2===this._layer.getLatLngs().length&&this._hintMarker.setTooltipContent(Object(o.a)("tooltips.finishLine")),n}})},function(e,t,n){"use strict";var r=n(1),i=n(0);r.a.Polygon=r.a.Line.extend({initialize:function(e){this._map=e,this._shape="Polygon",this.toolbarButtonName="drawPolygon"},_finishShape:function(e){if(this.options.allowSelfIntersection||(this._handleSelfIntersection(!1),!this._doesSelfIntersect)){var t=this._layer.getLatLngs();if(!(t.length<=2)){e&&"dblclick"===e.type&&t.splice(t.length-1,1);var n=L.polygon(t,this.options.pathOptions).addTo(this._map);this.disable(),this._map.fire("pm:create",{shape:this._shape,layer:n}),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex}}},_createMarker:function(e,t){var n=new L.Marker(e,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return n._pmTempLayer=!0,this._layerGroup.addLayer(n),t&&(n.on("click",this._finishShape,this),this._tempSnapLayerIndex=this._otherSnapLayers.push(n)-1,this.options.snappable&&this._cleanupSnapping()),t&&this._hintMarker.setTooltipContent(Object(i.a)("tooltips.continueLine")),3===this._layer.getLatLngs().length&&this._hintMarker.setTooltipContent(Object(i.a)("tooltips.finishPoly")),n}})},function(e,t,n){"use strict";var r=n(1),i=n(0);r.a.Rectangle=r.a.extend({initialize:function(e){this._map=e,this._shape="Rectangle",this.toolbarButtonName="drawRectangle"},enable:function(e){if(L.Util.setOptions(this,e),this._enabled=!0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.rectangle([[0,0],[0,0]],this.options.pathOptions),this._layer._pmTempLayer=!0,this._startMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon rect-start-marker"}),draggable:!0,zIndexOffset:100,opacity:this.options.cursorMarker?1:0}),this._startMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._startMarker),this._hintMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.tooltips&&this._hintMarker.bindTooltip(Object(i.a)("tooltips.firstVertex"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this.options.cursorMarker){L.DomUtil.addClass(this._hintMarker._icon,"visible"),this._styleMarkers=[];for(var t=0;t<2;t+=1){var n=L.marker([0,0],{icon:L.divIcon({className:"marker-icon rect-style-marker"}),draggable:!0,zIndexOffset:100});n._pmTempLayer=!0,this._layerGroup.addLayer(n),this._styleMarkers.push(n)}}this._map._container.style.cursor="crosshair",this._map.on("click",this._placeStartingMarkers,this),this._map.on("mousemove",this._syncHintMarker,this),this._map.fire("pm:drawstart",{shape:this._shape,workingLayer:this._layer}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[]},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeStartingMarkers,this),this._map.off("mousemove",this._syncHintMarker,this),this._map.removeLayer(this._layerGroup),this._map.fire("pm:drawend",{shape:this._shape}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_placeStartingMarkers:function(e){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();L.DomUtil.addClass(this._startMarker._icon,"visible"),this._startMarker.setLatLng(t),this.options.cursorMarker&&this._styleMarkers&&this._styleMarkers.forEach((function(e){L.DomUtil.addClass(e._icon,"visible"),e.setLatLng(t)})),this._map.off("click",this._placeStartingMarkers,this),this._map.on("click",this._finishShape,this),this._hintMarker.setTooltipContent(Object(i.a)("tooltips.finishRect")),this._setRectangleOrigin()},_setRectangleOrigin:function(){var e=this._startMarker.getLatLng();e&&(this._layerGroup.addLayer(this._layer),this._layer.setLatLngs([e,e]),this._hintMarker.on("move",this._syncRectangleSize,this))},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}},_syncRectangleSize:function(){var e=this,t=this._startMarker.getLatLng(),n=this._hintMarker.getLatLng();if(this._layer.setBounds([t,n]),this.options.cursorMarker&&this._styleMarkers){var r=[];this._findCorners().forEach((function(t){t.equals(e._startMarker.getLatLng())||t.equals(e._hintMarker.getLatLng())||r.push(t)})),r.forEach((function(t,n){e._styleMarkers[n].setLatLng(t)}))}},_finishShape:function(e){var t=this._startMarker.getLatLng(),n=e.latlng,r=L.rectangle([t,n],this.options.pathOptions).addTo(this._map);this.disable(),this._map.fire("pm:create",{shape:this._shape,layer:r})},_findCorners:function(){var e=this._layer.getBounds();return[e.getNorthWest(),e.getNorthEast(),e.getSouthEast(),e.getSouthWest()]}})},function(e,t,n){"use strict";var r=n(1),i=n(0);r.a.Circle=r.a.extend({initialize:function(e){this._map=e,this._shape="Circle",this.toolbarButtonName="drawCircle"},enable:function(e){L.Util.setOptions(this,e),this.options.radius=0,this._enabled=!0,this._layerGroup=new L.LayerGroup,this._layerGroup._pmTempLayer=!0,this._layerGroup.addTo(this._map),this._layer=L.circle([0,0],this.options.templineStyle),this._layer._pmTempLayer=!0,this._layerGroup.addLayer(this._layer),this._centerMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon"}),draggable:!1,zIndexOffset:100}),this._centerMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._centerMarker),this._hintMarker=L.marker([0,0],{icon:L.divIcon({className:"marker-icon cursor-marker"})}),this._hintMarker._pmTempLayer=!0,this._layerGroup.addLayer(this._hintMarker),this.options.cursorMarker&&L.DomUtil.addClass(this._hintMarker._icon,"visible"),this.options.tooltips&&this._hintMarker.bindTooltip(Object(i.a)("tooltips.startCircle"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._hintline=L.polyline([],this.options.hintlineStyle),this._hintline._pmTempLayer=!0,this._layerGroup.addLayer(this._hintline),this._map._container.style.cursor="crosshair",this._map.on("click",this._placeCenterMarker,this),this._map.on("mousemove",this._syncHintMarker,this),this._map.fire("pm:drawstart",{shape:this._shape,workingLayer:this._layer}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._otherSnapLayers=[]},disable:function(){this._enabled&&(this._enabled=!1,this._map._container.style.cursor="",this._map.off("click",this._finishShape,this),this._map.off("click",this._placeCenterMarker,this),this._map.off("mousemove",this._syncHintMarker,this),this._map.removeLayer(this._layerGroup),this._map.fire("pm:drawend",{shape:this._shape}),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!1),this.options.snappable&&this._cleanupSnapping())},enabled:function(){return this._enabled},toggle:function(e){this.enabled()?this.disable():this.enable(e)},_syncHintLine:function(){var e=this._centerMarker.getLatLng();this._hintline.setLatLngs([e,this._hintMarker.getLatLng()])},_syncCircleRadius:function(){var e=this._centerMarker.getLatLng(),t=this._hintMarker.getLatLng(),n=e.distanceTo(t);this._layer.setRadius(n)},_syncHintMarker:function(e){if(this._hintMarker.setLatLng(e.latlng),this.options.snappable){var t=e;t.target=this._hintMarker,this._handleSnapping(t)}},_placeCenterMarker:function(e){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng();this._centerMarker.setLatLng(t),this._map.off("click",this._placeCenterMarker,this),this._map.on("click",this._finishShape,this),this._placeCircleCenter()},_placeCircleCenter:function(){var e=this._centerMarker.getLatLng();e&&(this._layer.setLatLng(e),this._hintMarker.on("move",this._syncHintLine,this),this._hintMarker.on("move",this._syncCircleRadius,this),this._hintMarker.setTooltipContent(Object(i.a)("tooltips.finishCircle")),this._layer.fire("pm:centerplaced",{shape:this._shape,workingLayer:this._layer,latlng:e}))},_finishShape:function(e){var t=this._centerMarker.getLatLng(),n=e.latlng,r=t.distanceTo(n),i=Object.assign({},this.options.pathOptions,{radius:r}),a=L.circle(t,i).addTo(this._map);this.disable(),this._map.fire("pm:create",{shape:this._shape,layer:a})},_createMarker:function(e){var t=new L.Marker(e,{draggable:!1,icon:L.divIcon({className:"marker-icon"})});return t._pmTempLayer=!0,this._layerGroup.addLayer(t),t}})},function(e,t,n){"use strict";var r=n(1),i=n(0);r.a.CircleMarker=r.a.Marker.extend({initialize:function(e){this._map=e,this._shape="CircleMarker",this.toolbarButtonName="drawCircleMarker"},enable:function(e){var t=this;L.Util.setOptions(this,e),this._enabled=!0,this._map.on("click",this._createMarker,this),this._map.pm.Toolbar.toggleButton(this.toolbarButtonName,!0),this._hintMarker=L.circleMarker([0,0],this.options.templineStyle),this._hintMarker._pmTempLayer=!0,this._hintMarker.addTo(this._map),this.options.tooltips&&this._hintMarker.bindTooltip(Object(i.a)("tooltips.placeCircleMarker"),{permanent:!0,offset:L.point(0,10),direction:"bottom",opacity:.8}).openTooltip(),this._layer=this._hintMarker,this._map.on("mousemove",this._syncHintMarker,this),this._map.fire("pm:drawstart",{shape:this._shape,workingLayer:this._layer}),this._map.eachLayer((function(e){t.isRelevantMarker(e)&&e.pm.enable()}))},isRelevantMarker:function(e){return e instanceof L.CircleMarker&&!(e instanceof L.Circle)&&e.pm&&!e._pmTempLayer},_createMarker:function(e){if(e.latlng){this._hintMarker._snapped||this._hintMarker.setLatLng(e.latlng);var t=this._hintMarker.getLatLng(),n=L.circleMarker(t,this.options.pathOptions);n.addTo(this._map),n.pm.enable(),this._map.fire("pm:create",{shape:this._shape,marker:n,layer:n}),this._cleanupSnapping()}}})},function(e,t,n){"use strict";var r=n(148),i=n.n(r),a=n(149),o=n(1);o.a.Cut=o.a.Polygon.extend({initialize:function(e){this._map=e,this._shape="Cut",this.toolbarButtonName="cutPolygon"},_cut:function(e){var t=this,n=this._map._layers;Object.keys(n).map((function(e){return n[e]})).filter((function(e){return e.pm})).filter((function(e){return e instanceof L.Polygon})).filter((function(t){return t!==e})).filter((function(t){try{return!!i()(e.toGeoJSON(15),t.toGeoJSON(15))}catch(e){return!1}})).forEach((function(n){var r=Object(a.a)(n.toGeoJSON(15),e.toGeoJSON(15)),i=L.geoJSON(r,n.options).addTo(t._map);i.addTo(t._map),i.pm.enable(t.options),i.pm.disable(),n.fire("pm:cut",{shape:t._shape,layer:i,originalLayer:n}),t._map.fire("pm:cut",{shape:t._shape,layer:i,originalLayer:n}),n._pmTempLayer=!0,e._pmTempLayer=!0,n.remove(),e.remove(),0===i.getLayers().length&&t._map.pm.removeLayer({target:i})}))},_finishShape:function(){if(this.options.allowSelfIntersection||(this._handleSelfIntersection(!1),!this._doesSelfIntersect)){var e=this._layer.getLatLngs(),t=L.polygon(e,this.options.pathOptions);this._cut(t),this.disable(),this._cleanupSnapping(),this._otherSnapLayers.splice(this._tempSnapLayerIndex,1),delete this._tempSnapLayerIndex}}})},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),a=n(43),o=r(n(44));t.default=function e(t,n,r){void 0===r&&(r={});var s=a.getGeom(t),c=a.getGeom(n);if("Polygon"===s.type&&"Polygon"===c.type){var l=o.intersection(s.coordinates,c.coordinates);if(null===l||0===l.length)return null;if(1===l.length){var u=l[0][0][0],h=l[0][0][l[0][0].length-1];return u[0]===h[0]&&u[1]===h[1]?i.polygon(l[0],r.properties):null}return i.multiPolygon(l,r.properties)}if("MultiPolygon"===s.type){for(var f=[],d=0,p=s.coordinates;d<p.length;d++){var g=p[d],m=e(a.getGeom(i.polygon(g)),c);if(m){var v=a.getGeom(m);if("Polygon"===v.type)f.push(v.coordinates);else{if("MultiPolygon"!==v.type)throw new Error("intersection is invalid");f=f.concat(v.coordinates)}}}return 0===f.length?null:1===f.length?i.polygon(f[0],r.properties):i.multiPolygon(f,r.properties)}if("MultiPolygon"===c.type)return e(c,s);throw new Error("poly1 and poly2 must be either polygons or multiPolygons")}},function(e,t,n){"use strict";var r=n(44),i=(n.n(r),n(150)),a=n.n(i),o=n(8),s=(n.n(o),n(43)),c=(n.n(s),n(45));function l(e){switch(e.type){case"Polygon":return a()(e)>1?e:null;case"MultiPolygon":var t=[];if(Object(c.flattenEach)(e,(function(e){a()(e)>1&&t.push(e.geometry.coordinates)})),t.length)return{type:"MultiPolygon",coordinates:t}}}n.n(c),t.a=function(e,t){var n=Object(s.getGeom)(e),i=Object(s.getGeom)(t),a=e.properties||{};if(n=l(n),i=l(i),!n)return null;if(!i)return Object(o.feature)(n,a);var c=r.diff(n.coordinates,i.coordinates);return 0===c.length?null:1===c.length?Object(o.polygon)(c[0],a):Object(o.multiPolygon)(c,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(45),i=6378137;function a(e){var t=0;if(e&&e.length>0){t+=Math.abs(o(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(o(e[n]))}return t}function o(e){var t,n,r,a,o,c,l=0,u=e.length;if(u>2){for(c=0;c<u;c++)c===u-2?(r=u-2,a=u-1,o=0):c===u-1?(r=u-1,a=0,o=1):(r=c,a=c+1,o=c+2),t=e[r],n=e[a],l+=(s(e[o][0])-s(t[0]))*Math.sin(s(n[1]));l=l*i*i/2}return l}function s(e){return e*Math.PI/180}t.default=function(e){return r.geomReduce(e,(function(e,t){return e+function(e){var t,n=0;switch(e.type){case"Polygon":return a(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=a(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)}),0)}},function(e,t,n){"use strict";var r={enableLayerDrag:function(){if(this._layer instanceof L.Marker)this._layer.dragging.enable();else{this._tempDragCoord=null;var e=this._layer._path?this._layer._path:this._layer._renderer._container;L.DomUtil.addClass(e,"leaflet-pm-draggable"),this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!0,this._layer.on("mousedown",this._dragMixinOnMouseDown,this)}},disableLayerDrag:function(){if(this._layer instanceof L.Marker)this._layer.dragging.disable();else{var e=this._layer._path?this._layer._path:this._layer._renderer._container;L.DomUtil.removeClass(e,"leaflet-pm-draggable"),this._safeToCacheDragState=!1,this._layer.off("mousedown",this._dragMixinOnMouseDown,this)}},_dragMixinOnMouseUp:function(){var e=this,t=this._layer._path?this._layer._path:this._layer._renderer._container;return this._originalMapDragState&&this._layer._map.dragging.enable(),this._safeToCacheDragState=!0,this._layer._map.off("mousemove",this._dragMixinOnMouseMove,this),this._layer._map.off("mouseup",this._dragMixinOnMouseUp,this),!!this._dragging&&(window.setTimeout((function(){e._dragging=!1,L.DomUtil.removeClass(t,"leaflet-pm-dragging"),e._layer.fire("pm:dragend"),e._fireEdit()}),10),!0)},_dragMixinOnMouseMove:function(e){var t=this._layer._path?this._layer._path:this._layer._renderer._container;this._dragging||(this._dragging=!0,L.DomUtil.addClass(t,"leaflet-pm-dragging"),this._layer.bringToFront(),this._originalMapDragState&&this._layer._map.dragging.disable(),this._layer.fire("pm:dragstart")),this._onLayerDrag(e)},_dragMixinOnMouseDown:function(e){e.originalEvent.button>0||(this._safeToCacheDragState&&(this._originalMapDragState=this._layer._map.dragging._enabled,this._safeToCacheDragState=!1),this._tempDragCoord=e.latlng,this._layer._map.on("mouseup",this._dragMixinOnMouseUp,this),this._layer._map.on("mousemove",this._dragMixinOnMouseMove,this))},dragging:function(){return this._dragging},_onLayerDrag:function(e){var t=e.latlng,n=t.lat-this._tempDragCoord.lat,r=t.lng-this._tempDragCoord.lng;if(this._layer instanceof L.CircleMarker)this._layer.setLatLng(t);else{var i=function e(t){return t.map((function(t){return Array.isArray(t)?e(t):{lat:t.lat+n,lng:t.lng+r}}))}(this._layer.getLatLngs());this._layer.setLatLngs(i)}this._tempDragCoord=t,this._layer.fire("pm:drag",e)}};t.a=r},function(e,t,n){"use strict";n(2).a.LayerGroup=L.Class.extend({initialize:function(e){var t=this;this._layerGroup=e,this._layers=this.findLayers(),this._layers.forEach((function(e){return t._initLayer(e)})),this._layerGroup.on("layeradd",(function(e){e.target._pmTempLayer||(t._layers=t.findLayers(),e.layer.pm&&t._initLayer(e.layer),e.target.pm.enabled()&&t.enable(t.getOptions()))}))},findLayers:function(){var e=this._layerGroup.getLayers();return(e=(e=e.filter((function(e){return!(e instanceof L.LayerGroup)}))).filter((function(e){return!!e.pm}))).filter((function(e){return!e._pmTempLayer}))},_initLayer:function(e){var t=this;["pm:edit","pm:update","pm:remove","pm:dragstart","pm:drag","pm:dragend","pm:snap","pm:unsnap","pm:cut","pm:intersect","pm:raiseMarkers","pm:markerdragend","pm:markerdragstart","pm:vertexadded","pm:vertexremoved","pm:centerplaced"].forEach((function(n){e.on(n,t._fireEvent,t)})),e.pm._layerGroup=this._layerGroup},_fireEvent:function(e){this._layerGroup.fireEvent(e.type,e)},toggleEdit:function(e){this._options=e,this._layers.forEach((function(t){t.pm.toggleEdit(e)}))},enable:function(e){this._options=e,this._layers.forEach((function(t){t.pm.enable(e)}))},disable:function(){this._layers.forEach((function(e){e.pm.disable()}))},enabled:function(){return!!this._layers.find((function(e){return e.pm.enabled()}))},dragging:function(){return!!this._layers.find((function(e){return e.pm.dragging()}))},getOptions:function(){return this._options}})},function(e,t,n){"use strict";var r=n(2);r.a.Marker=r.a.extend({initialize:function(e){this._layer=e,this._enabled=!1,this._layer.on("dragend",this._onDragEnd,this)},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{draggable:!0,snappable:!0};L.Util.setOptions(this,e),this._map=this._layer._map,this.enabled()||(this._enabled=!0,this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this),this.options.draggable&&this._layer.dragging.enable(),this.options.snappable&&this._initSnappableMarkers())},enabled:function(){return this._enabled},disable:function(){this._enabled=!1,this._layer.dragging&&this._layer.dragging.disable(),this._layer.off("contextmenu",this._removeMarker,this),this._layerEdited&&this._layer.fire("pm:update",{}),this._layerEdited=!1},_removeMarker:function(e){var t=e.target;t.remove(),t.fire("pm:remove")},_onDragEnd:function(e){e.target.fire("pm:edit"),this._layerEdited=!0},_initSnappableMarkers:function(){var e=this._layer;this.options.snapDistance=this.options.snapDistance||30,e.off("drag",this._handleSnapping,this),e.on("drag",this._handleSnapping,this),e.off("dragend",this._cleanupSnapping,this),e.on("dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this),e.on("pm:dragstart",this._unsnap,this)}})},function(e,t,n){"use strict";var r=n(42),i=n.n(r),a=n(37),o=n.n(a),s=n(2),c=n(41),l=n(0);s.a.Line=s.a.extend({initialize:function(e){this._layer=e,this._enabled=!1},toggleEdit:function(e){return this.enabled()?this.disable():this.enable(e),this.enabled()},enable:function(e){L.Util.setOptions(this,e),this._map=this._layer._map,this._map&&(this.enabled()||this.disable(),this._enabled=!0,this._initMarkers(),this._layer.on("remove",this._onLayerRemove,this),this.options.allowSelfIntersection||this._layer.on("pm:vertexremoved",this._handleSelfIntersectionOnVertexRemoval,this),this.options.allowSelfIntersection||(this.cachedColor||(this.cachedColor=this._layer.options.color),this.isRed=!1,this._handleLayerStyle()))},_onLayerRemove:function(e){this.disable(e.target)},enabled:function(){return this._enabled},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._layer;if(!this.enabled())return!1;if(e.pm._dragging)return!1;e.pm._enabled=!1,e.pm._markerGroup.clearLayers(),e.off("mousedown"),e.off("mouseup"),this._layer.off("remove",this._onLayerRemove,this),this.options.allowSelfIntersection||this._layer.off("pm:vertexremoved",this._handleSelfIntersectionOnVertexRemoval);var t=e._path?e._path:this._layer._renderer._container;return L.DomUtil.removeClass(t,"leaflet-pm-draggable"),this.hasSelfIntersection()&&L.DomUtil.removeClass(t,"leaflet-pm-invalid"),this._layerEdited&&this._layer.fire("pm:update",{}),this._layerEdited=!1,!0},hasSelfIntersection:function(){return i()(this._layer.toGeoJSON(15)).features.length>0},_handleSelfIntersectionOnVertexRemoval:function(){this._handleLayerStyle(!0),this.hasSelfIntersection()&&(this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers())},_handleLayerStyle:function(e){var t=this,n=this._layer;if(this.hasSelfIntersection()){if(this.isRed)return;e?(n.setStyle({color:"red"}),this.isRed=!0,window.setTimeout((function(){n.setStyle({color:t.cachedColor}),t.isRed=!1}),200)):(n.setStyle({color:"red"}),this.isRed=!0),this._layer.fire("pm:intersect",{intersection:i()(this._layer.toGeoJSON(15))})}else n.setStyle({color:this.cachedColor}),this.isRed=!1},_initMarkers:function(){var e=this,t=this._map,n=this._layer.getLatLngs();this._markerGroup&&this._markerGroup.clearLayers(),this._markerGroup=new L.LayerGroup,this._markerGroup._pmTempLayer=!0,t.addLayer(this._markerGroup),this._markers=function t(n){if(Array.isArray(n[0]))return n.map(t,e);var r=n.map(e._createMarker,e);return n.map((function(t,i){var a=e.isPolygon()?(i+1)%n.length:i+1;return e._createMiddleMarker(r[i],r[a])})),r}(n),this.options.snappable&&this._initSnappableMarkers()},_createMarker:function(e){var t=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return t._pmTempLayer=!0,t.on("dragstart",this._onMarkerDragStart,this),t.on("move",this._onMarkerDrag,this),t.on("dragend",this._onMarkerDragEnd,this),this.options.preventMarkerRemoval||t.on("contextmenu",this._removeMarker,this),this._markerGroup.addLayer(t),t},_createMiddleMarker:function(e,t){var n=this;if(!e||!t)return!1;var r=c.a.calcMiddleLatLng(this._map,e.getLatLng(),t.getLatLng()),i=this._createMarker(r),a=L.divIcon({className:"marker-icon marker-icon-middle"});return i.setIcon(a),e._middleMarkerNext=i,t._middleMarkerPrev=i,i.on("click",(function(){var r=L.divIcon({className:"marker-icon"});i.setIcon(r),n._addMarker(i,e,t)})),i.on("movestart",(function(){i.on("moveend",(function(){var e=L.divIcon({className:"marker-icon"});i.setIcon(e),i.off("moveend")})),n._addMarker(i,e,t)})),i},_addMarker:function(e,t,n){e.off("movestart"),e.off("click");var r=e.getLatLng(),i=this._layer._latlngs,a=this.findDeepMarkerIndex(this._markers,t),s=a.indexPath,c=a.index,l=a.parentPath,u=s.length>1?o()(i,l):i,h=s.length>1?o()(this._markers,l):this._markers;u.splice(c+1,0,r),h.splice(c+1,0,e),this._layer.setLatLngs(i),this._createMiddleMarker(t,e),this._createMiddleMarker(e,n),this._fireEdit(),this._layer.fire("pm:vertexadded",{layer:this._layer,marker:e,indexPath:this.findDeepMarkerIndex(this._markers,e).indexPath,latlng:r}),this.options.snappable&&this._initSnappableMarkers()},_removeMarker:function(e){if(!this.options.allowSelfIntersection){var t=this._layer.getLatLngs();this._coordsBeforeEdit=JSON.parse(JSON.stringify(t))}var n=e.target,r=this._layer.getLatLngs(),i=this.findDeepMarkerIndex(this._markers,n),a=i.indexPath,s=i.index,c=i.parentPath;if(a){var u,h,f=a.length>1?o()(r,c):r,d=a.length>1?o()(this._markers,c):this._markers;if(f.splice(s,1),this._layer.setLatLngs(r),f.length<=1&&(f.splice(0,f.length),this._layer.setLatLngs(r),this.disable(),this.enable(this.options)),Object(l.b)(r)&&this._layer.remove(),n._middleMarkerPrev&&this._markerGroup.removeLayer(n._middleMarkerPrev),n._middleMarkerNext&&this._markerGroup.removeLayer(n._middleMarkerNext),this._markerGroup.removeLayer(n),this.isPolygon()?(u=(s+1)%d.length,h=(s+(d.length-1))%d.length):(h=s-1<0?void 0:s-1,u=s+1>=d.length?void 0:s+1),u!==h){var p=d[h],g=d[u];this._createMiddleMarker(p,g)}d.splice(s,1),this._fireEdit(),this._layer.fire("pm:vertexremoved",{layer:this._layer,marker:n,indexPath:a})}},findDeepMarkerIndex:function(e,t){var n;e.some(function e(r){return function(i,a){var o=r.concat(a);return i._leaflet_id===t._leaflet_id?(n=o,!0):Array.isArray(i)&&i.some(e(o))}}([]));var r={};return n&&(r={indexPath:n,index:n[n.length-1],parentPath:n.slice(0,n.length-1)}),r},updatePolygonCoordsFromMarkerDrag:function(e){var t=this._layer.getLatLngs(),n=e.getLatLng(),r=this.findDeepMarkerIndex(this._markers,e),i=r.indexPath,a=r.index,s=r.parentPath;(i.length>1?o()(t,s):t).splice(a,1,n),this._layer.setLatLngs(t)},_onMarkerDrag:function(e){var t=e.target,n=this.findDeepMarkerIndex(this._markers,t),r=n.indexPath,i=n.index,a=n.parentPath;if(r){this.updatePolygonCoordsFromMarkerDrag(t);var s=r.length>1?o()(this._markers,a):this._markers,l=(i+1)%s.length,u=(i+(s.length-1))%s.length,h=t.getLatLng(),f=s[u].getLatLng(),d=s[l].getLatLng();if(t._middleMarkerNext){var p=c.a.calcMiddleLatLng(this._map,h,d);t._middleMarkerNext.setLatLng(p)}if(t._middleMarkerPrev){var g=c.a.calcMiddleLatLng(this._map,h,f);t._middleMarkerPrev.setLatLng(g)}this.options.allowSelfIntersection||this._handleLayerStyle()}},_onMarkerDragEnd:function(e){var t=e.target,n=this.findDeepMarkerIndex(this._markers,t).indexPath;if(!this.options.allowSelfIntersection&&this.hasSelfIntersection())return this._layer.setLatLngs(this._coordsBeforeEdit),this._coordsBeforeEdit=null,this._initMarkers(),void this._handleLayerStyle();this._layer.fire("pm:markerdragend",{markerEvent:e,indexPath:n}),this._fireEdit()},_onMarkerDragStart:function(e){var t=e.target,n=this.findDeepMarkerIndex(this._markers,t).indexPath;this._layer.fire("pm:markerdragstart",{markerEvent:e,indexPath:n}),this.options.allowSelfIntersection||(this._coordsBeforeEdit=this._layer.getLatLngs())},_fireEdit:function(){this._layerEdited=!0,this._layer.fire("pm:edit")}})},function(e,t,n){"use strict";var r=n(2);r.a.Polygon=r.a.Line.extend({})},function(e,t,n){"use strict";var r=n(2);r.a.Rectangle=r.a.Polygon.extend({_initMarkers:function(){var e=this._map,t=this._findCorners();this._markerGroup&&this._markerGroup.clearLayers(),this._markerGroup=new L.LayerGroup,this._markerGroup._pmTempLayer=!0,e.addLayer(this._markerGroup),this._markers=[],this._markers[0]=t.map(this._createMarker,this);var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(this._markers,1);this._cornerMarkers=n[0],this.options.snappable&&this._initSnappableMarkers()},_createMarker:function(e,t){var n=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return n._origLatLng=e,n._index=t,n._pmTempLayer=!0,n.on("dragstart",this._onMarkerDragStart,this),n.on("drag",this._onMarkerDrag,this),n.on("dragend",this._onMarkerDragEnd,this),n.on("pm:snap",this._adjustRectangleForMarkerSnap,this),this.options.preventMarkerRemoval||n.on("contextmenu",this._removeMarker,this),this._markerGroup.addLayer(n),n},_removeMarker:function(){return null},_onMarkerDragStart:function(e){var t=e.target,n=this._findCorners();t._oppositeCornerLatLng=n[(t._index+2)%4],t._snapped=!1,this._layer.fire("pm:markerdragstart",{markerEvent:e})},_onMarkerDrag:function(e){var t=e.target;void 0!==t._index&&(t._snapped||this._adjustRectangleForMarkerMove(t))},_onMarkerDragEnd:function(e){var t=this._findCorners();this._adjustAllMarkers(t),this._cornerMarkers.forEach((function(e){delete e._oppositeCornerLatLng})),this._layer.setLatLngs(t),this._layer.fire("pm:markerdragend",{markerEvent:e}),this._fireEdit()},_adjustRectangleForMarkerMove:function(e){L.extend(e._origLatLng,e._latlng);var t=e.getLatLng();this._layer.setBounds(L.latLngBounds(t,e._oppositeCornerLatLng)),this._adjustAdjacentMarkers(e),this._layer.redraw()},_adjustRectangleForMarkerSnap:function(e){if(this.options.snappable){var t=e.target;this._adjustRectangleForMarkerMove(t)}},_adjustAllMarkers:function(e){e.length&&4===e.length&&this._cornerMarkers.forEach((function(t,n){t.setLatLng(e[n])}))},_adjustAdjacentMarkers:function(e){if(e&&e.getLatLng&&e._oppositeCornerLatLng){var t=e.getLatLng(),n=e._oppositeCornerLatLng,r=[];this._findCorners().forEach((function(e){e.equals(t)||e.equals(n)||r.push(e)}));var i=0;2===r.length&&this._cornerMarkers.forEach((function(e){var a=e.getLatLng();a.equals(t)||a.equals(n)||(e.setLatLng(r[i]),i+=1)}))}},_findCorners:function(){var e=this._layer.getBounds();return[e.getNorthWest(),e.getNorthEast(),e.getSouthEast(),e.getSouthWest()]}})},function(e,t,n){"use strict";var r=n(2);r.a.Circle=r.a.extend({initialize:function(e){this._layer=e,this._enabled=!1},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},enabled:function(){return this._enabled},enable:function(e){var t=this;L.Util.setOptions(this,e),this._map=this._layer._map,this.enabled()||this.disable(),this._enabled=!0,this._initMarkers(),this._layer.on("remove",(function(e){t.disable(e.target)}))},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._layer;if(!this.enabled())return!1;if(e.pm._dragging)return!1;e.pm._enabled=!1,e.pm._helperLayers.clearLayers(),e.off("mousedown"),e.off("mouseup");var t=e._path?e._path:this._layer._renderer._container;return L.DomUtil.removeClass(t,"leaflet-pm-draggable"),this._layerEdited&&this._layer.fire("pm:update",{}),this._layerEdited=!1,!0},_initMarkers:function(){var e=this._map;this._helperLayers&&this._helperLayers.clearLayers(),this._helperLayers=new L.LayerGroup,this._helperLayers._pmTempLayer=!0,this._helperLayers.addTo(e);var t=this._layer.getLatLng(),n=this._layer._radius,r=this._getLatLngOnCircle(t,n);this._centerMarker=this._createCenterMarker(t),this._outerMarker=this._createOuterMarker(r),this._markers=[this._centerMarker,this._outerMarker],this._createHintLine(this._centerMarker,this._outerMarker),this.options.snappable&&this._initSnappableMarkers()},_getLatLngOnCircle:function(e,t){var n=this._map.project(e),r=L.point(n.x+t,n.y);return this._map.unproject(r)},_resizeCircle:function(){this._syncHintLine(),this._syncCircleRadius()},_moveCircle:function(e){var t=e.latlng;this._layer.setLatLng(t);var n=this._layer._radius,r=this._getLatLngOnCircle(t,n);this._outerMarker.setLatLng(r),this._syncHintLine(),this._layer.fire("pm:centerplaced",{layer:this._layer,latlng:t})},_onMarkerDragStart:function(e){this._layer.fire("pm:markerdragstart",{markerEvent:e})},_onMarkerDragEnd:function(e){this._fireEdit(),this._layer.fire("pm:markerdragend",{markerEvent:e})},_syncCircleRadius:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng(),n=e.distanceTo(t);this._layer.setRadius(n)},_syncHintLine:function(){var e=this._centerMarker.getLatLng(),t=this._outerMarker.getLatLng();this._hintline.setLatLngs([e,t])},_createHintLine:function(e,t){var n=e.getLatLng(),r=t.getLatLng();this._hintline=L.polyline([n,r],this.options.hintlineStyle),this._hintline._pmTempLayer=!0,this._helperLayers.addLayer(this._hintline)},_createCenterMarker:function(e){var t=this._createMarker(e);return L.DomUtil.addClass(t._icon,"leaflet-pm-draggable"),t.on("drag",this._moveCircle,this),t},_createOuterMarker:function(e){var t=this._createMarker(e);return t.on("drag",this._resizeCircle,this),t},_createMarker:function(e){var t=new L.Marker(e,{draggable:!0,icon:L.divIcon({className:"marker-icon"})});return t._origLatLng=e,t._pmTempLayer=!0,t.on("dragstart",this._onMarkerDragStart,this),t.on("dragend",this._onMarkerDragEnd,this),this._helperLayers.addLayer(t),t},_fireEdit:function(){this._layer.fire("pm:edit"),this._layerEdited=!0}})},function(e,t,n){"use strict";var r=n(2);r.a.CircleMarker=r.a.extend({initialize:function(e){this._layer=e,this._enabled=!1},toggleEdit:function(e){this.enabled()?this.disable():this.enable(e)},enabled:function(){return this._enabled},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{draggable:!0,snappable:!0};L.Util.setOptions(this,e),this._map=this._layer._map,this._map&&(this.enabled()||this.disable(),this._enabled=!0,this.options.preventMarkerRemoval||this._layer.on("contextmenu",this._removeMarker,this),this.options.draggable&&this.enableLayerDrag(),this.options.snappable&&this._initSnappableMarkers(),this._layer.on("pm:dragend",this._onMarkerDragEnd,this))},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._layer;if(!this.enabled())return!1;if(e.pm._dragging)return!1;if(e.pm._enabled=!1,e._path){var t=e._path;L.DomUtil.removeClass(t,"leaflet-pm-draggable")}return this._layerEdited&&this._layer.fire("pm:update",{}),this._layerEdited=!1,!0},_moveMarker:function(e){var t=e.latlng;this._layer.setLatLng(t).redraw()},_removeMarker:function(){this._layer.fire("pm:remove"),this._layer.remove()},_fireEdit:function(){this._layer.fire("pm:edit"),this._layerEdited=!0},_onMarkerDragEnd:function(e){this._layer.fire("pm:markerdragend",{markerEvent:e}),this._fireEdit()},_initSnappableMarkers:function(){var e=this._layer;this.options.snapDistance=this.options.snapDistance||30,e.off("pm:drag",this._handleSnapping,this),e.on("pm:drag",this._handleSnapping,this),e.off("pm:dragend",this._cleanupSnapping,this),e.on("pm:dragend",this._cleanupSnapping,this),e.off("pm:dragstart",this._unsnap,this),e.on("pm:dragstart",this._unsnap,this)}})},function(e,t){},function(e,t){}]);
/***/},
/***/"50c4":
/***/function(e,t,n){"use strict";var r=n("5926"),i=Math.min;
// `ToLength` abstract operation
// https://tc39.es/ecma262/#sec-tolength
e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0;// 2 ** 53 - 1 == 9007199254740991
}},
/***/"50c6":
/***/function(e,t,n){var r=n("a0c4"),i=n("243f"),a=n("badf"),o=n("6747");
/**
 * Creates a function like `_.groupBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} [initializer] The accumulator object initializer.
 * @returns {Function} Returns the new aggregator function.
 */e.exports=function(e,t){return function(n,s){var c=o(n)?r:i,l=t?t():{};return c(n,e,a(s,2),l)}}},
/***/"50d8":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},
/***/"50fc":
/***/function(e,t,n){n("1b1e")("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/"511f":
/***/function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},
/***/"512c":
/***/function(e,t,n){var r=n("ef08"),i=n("5524"),a=n("9c0c"),o=n("051b"),s=n("9c0e"),c="prototype",l=function(e,t,n){var u,h,f,d=e&l.F,p=e&l.G,g=e&l.S,m=e&l.P,v=e&l.B,y=e&l.W,A=p?i:i[t]||(i[t]={}),b=A[c],w=p?r:g?r[t]:(r[t]||{})[c];for(u in p&&(n=t),n)
// contains in native
(h=!d&&w&&void 0!==w[u])&&s(A,u)||(
// export native or passed
f=h?w[u]:n[u],
// prevent global pollution for namespaces
A[u]=p&&"function"!=typeof w[u]?n[u]:v&&h?a(f,r):y&&w[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t;
// make static versions for prototype methods
}(f):m&&"function"==typeof f?a(Function.call,f):f,
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
m&&((A.virtual||(A.virtual={}))[u]=f,
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
e&l.R&&b&&!b[u]&&o(b,u,f)))};
// type bitmap
l.F=1,// forced
l.G=2,// global
l.S=4,// static
l.P=8,// proto
l.B=16,// bind
l.W=32,// wrap
l.U=64,// safe
l.R=128,// real proto method for `library`
e.exports=l},
/***/5147:
/***/function(e,t,n){n("1b1e")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0);
/***/},
/***/5155:
/***/function(e,t,n){
// getting tag from 19.1.3.6 Object.prototype.toString()
var r=n("1c2d"),i=n("de24")("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){/* empty */}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},
/***/"518e":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("5a89");
/**
 * Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs.
 *
 * Supports both binary and ASCII encoded files, with automatic detection of type.
 *
 * The loader returns a non-indexed buffer geometry.
 *
 * Limitations:
 *  Binary decoding supports "Magics" color format (http://en.wikipedia.org/wiki/STL_(file_format)#Color_in_binary_STL).
 *  There is perhaps some question as to how valid it is to always assume little-endian-ness.
 *  ASCII decoding assumes file is UTF-8.
 *
 * Usage:
 *  const loader = new STLLoader();
 *  loader.load( './models/stl/slotted_disk.stl', function ( geometry ) {
 *    scene.add( new THREE.Mesh( geometry ) );
 *  });
 *
 * For binary STLs geometry might contain colors for vertices. To use it:
 *  // use the same code to load STL as above
 *  if (geometry.hasColors) {
 *    material = new THREE.MeshPhongMaterial({ opacity: geometry.alpha, vertexColors: true });
 *  } else { .... }
 *  const mesh = new THREE.Mesh( geometry, material );
 *
 * For ASCII STLs containing multiple solids, each solid is assigned to a different group.
 * Groups can be used to assign a different color by defining an array of materials with the same length of
 * geometry.groups and passing it to the Mesh constructor:
 *
 * const mesh = new THREE.Mesh( geometry, material );
 *
 * For example:
 *
 *  const materials = [];
 *  const nGeometryGroups = geometry.groups.length;
 *
 *  const colorMap = ...; // Some logic to index colors.
 *
 *  for (let i = 0; i < nGeometryGroups; i++) {
 *
 *		const material = new THREE.MeshPhongMaterial({
 *			color: colorMap[i],
 *			wireframe: false
 *		});
 *
 *  }
 *
 *  materials.push(material);
 *  const mesh = new THREE.Mesh(geometry, materials);
 */class i extends r.P{constructor(e){super(e)}load(e,t,n,i){const a=this,o=new r.t(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,(function(n){try{t(a.parse(n))}catch(t){i&&i(t),a.manager.itemError(e)}}),n,i)}parse(e){function t(e,t,n){
// Check if each byte in query matches the corresponding byte from the current offset
for(let r=0,i=e.length;r<i;r++)if(e[r]!==t.getUint8(n+r))return!1;return!0}
// start
const n=function(e){if("string"==typeof e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=255&e.charCodeAt(n);// implicitly assumes little-endian
return t.buffer||t}return e}(e);return function(e){const n=new DataView(e);if(84+50*n.getUint32(80,!0)===n.byteLength)return!0;
// An ASCII STL data must begin with 'solid ' as the first six bytes.
// However, ASCII STLs lacking the SPACE after the 'd' are known to be
// plentiful.  So, check the first 5 bytes for 'solid'.
// Several encodings, such as UTF-8, precede the text with up to 5 bytes:
// https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding
// Search for "solid" to start anywhere after those prefixes.
// US-ASCII ordinal values for 's', 'o', 'l', 'i', 'd'
const r=[115,111,108,105,100];for(let e=0;e<5;e++)
// If "solid" text is matched to the current offset, declare it to be an ASCII STL.
if(t(r,n,e))return!1;
// Couldn't find "solid" text at the beginning; it is binary STL.
return!0}(n)?function(e){const t=new DataView(e),n=t.getUint32(80,!0);let i,a,o,s,c,l,u,h,f=!1;
// process STL header
// check for default color in header ("COLOR=rgba" sequence).
for(let e=0;e<70;e++)1129270351/*COLO*/==t.getUint32(e,!1)&&82/*'R'*/==t.getUint8(e+4)&&61/*'='*/==t.getUint8(e+5)&&(f=!0,s=new Float32Array(3*n*3),c=t.getUint8(e+6)/255,l=t.getUint8(e+7)/255,u=t.getUint8(e+8)/255,h=t.getUint8(e+9)/255);const d=new r.g,p=new Float32Array(3*n*3),g=new Float32Array(3*n*3);for(let e=0;e<n;e++){const n=84+50*e,r=t.getFloat32(n,!0),h=t.getFloat32(n+4,!0),d=t.getFloat32(n+8,!0);if(f){const e=t.getUint16(n+48,!0);32768&e?(i=c,a=l,o=u):(
// facet has its own unique color
i=(31&e)/31,a=(e>>5&31)/31,o=(e>>10&31)/31)}for(let c=1;c<=3;c++){const l=n+12*c,u=3*e*3+3*(c-1);p[u]=t.getFloat32(l,!0),p[u+1]=t.getFloat32(l+4,!0),p[u+2]=t.getFloat32(l+8,!0),g[u]=r,g[u+1]=h,g[u+2]=d,f&&(s[u]=i,s[u+1]=a,s[u+2]=o)}}return d.setAttribute("position",new r.f(p,3)),d.setAttribute("normal",new r.f(g,3)),f&&(d.setAttribute("color",new r.f(s,3)),d.hasColors=!0,d.alpha=h),d}(n):function(e){const t=new r.g,n=/solid([\s\S]*?)endsolid/g,i=/facet([\s\S]*?)endfacet/g,a=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,o=new RegExp("vertex"+a+a+a,"g"),s=new RegExp("normal"+a+a+a,"g"),c=[],l=[],u=new r.Pb;let h,f=0,d=0,p=0;for(;null!==(h=n.exec(e));){d=p;const e=h[0];for(;null!==(h=i.exec(e));){let e=0,t=0;const n=h[0];for(;null!==(h=s.exec(n));)u.x=parseFloat(h[1]),u.y=parseFloat(h[2]),u.z=parseFloat(h[3]),t++;for(;null!==(h=o.exec(n));)c.push(parseFloat(h[1]),parseFloat(h[2]),parseFloat(h[3])),l.push(u.x,u.y,u.z),e++,p++;
// every face have to own ONE valid normal
0}const n=d,r=p-d;t.addGroup(n,r,f),f++}return t.setAttribute("position",new r.u(c,3)),t.setAttribute("normal",new r.u(l,3)),t}("string"!=typeof(i=e)?(new TextDecoder).decode(i):i);var i}}
/***/},
/***/"51eb":
/***/function(e,t,n){"use strict";var r=n("825a"),i=n("485a"),a=TypeError;
// `Date.prototype[@@toPrimitive](hint)` method implementation
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new a("Incorrect hint");return i(this,e)}},
/***/"51f5":
/***/function(e,t,n){var r=n("2b03"),i=n("badf"),a=n("4b17"),o=Math.max;
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=
/**
 * This method is like `_.find` except that it returns the index of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.findIndex(users, function(o) { return o.user == 'barney'; });
 * // => 0
 *
 * // The `_.matches` iteratee shorthand.
 * _.findIndex(users, { 'user': 'fred', 'active': false });
 * // => 1
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findIndex(users, ['active', false]);
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.findIndex(users, 'active');
 * // => 2
 */
function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(e,i(t,3),c)}},
/***/5210:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return b})),
/* harmony export (binding) */n.d(t,"b",(function(){return O})),
/* harmony export (binding) */n.d(t,"a",(function(){return D}));
/* harmony import */var r=n("19eb"),i=n("20c8"),a=n("5e76"),o=n("3437"),s=n("cbe5"),c=n("0da8"),l=n("dd4f"),u=n("6d8b"),h=n("8d1d"),f=n("4bc4"),d=n("726e"),p=new i.a(!0);
/* harmony import */function g(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function m(e){return"string"==typeof e&&"none"!==e}function v(e){var t=e.fill;return null!=t&&"none"!==t}function y(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function A(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function b(e,t,n){var r=Object(a.a)(t.image,t.__image,n);if(Object(a.c)(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*u.RADIAN_TO_DEGREE),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var w=["shadowBlur","shadowOffsetX","shadowOffsetY"],x=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function C(e,t,n,i,a){var o=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){M(e,a),o=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?r.b.opacity:s}(i||t.blend!==n.blend)&&(o||(M(e,a),o=!0),e.globalCompositeOperation=t.blend||r.b.blend);for(var c=0;c<w.length;c++){var l=w[c];(i||t[l]!==n[l])&&(o||(M(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(M(e,a),o=!0),e.shadowColor=t.shadowColor||r.b.shadowColor),o}function _(e,t,n,r,i){var a=T(t,i.inHover),o=r?null:n&&T(n,i.inHover)||{};if(a===o)return!1;var s=C(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(M(e,i),s=!0),m(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(M(e,i),s=!0),m(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(M(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(M(e,i),s=!0),e.lineWidth=c)}for(var l=0;l<x.length;l++){var u=x[l],h=u[0];(r||a[h]!==o[h])&&(s||(M(e,i),s=!0),e[h]=a[h]||u[1])}return s}function I(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}var E=1,k=2,S=3,B=4;function M(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function T(e,t){return t&&e.__hoverStyle||e.style}function O(e,t){D(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function D(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~f.a,void(t.__isRendered=!1);var u=t.__clipPaths,m=n.prevElClipPaths,w=!1,x=!1;if(m&&!Object(o.c)(u,m)||(m&&m.length&&(M(e,n),e.restore(),x=w=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),u&&u.length&&(M(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),I(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}(u,e,n),w=!0),n.prevElClipPaths=u),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var O=n.prevEl;O||(x=w=!0);var P,L,Q=t instanceof s.b&&t.autoBatch&&function(e){var t=v(e),n=g(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);w||(P=i,L=O.transform,P&&L?P[0]!==L[0]||P[1]!==L[1]||P[2]!==L[2]||P[3]!==L[3]||P[4]!==L[4]||P[5]!==L[5]:P||L)?(M(e,n),I(e,t)):Q||M(e,n);var R=T(t,n.inHover);t instanceof s.b?(n.lastDrawType!==E&&(x=!0,n.lastDrawType=E),_(e,t,O,x,n),Q&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,a=g(n),s=v(n),c=n.strokePercent,l=c<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var d=t.path||p,m=t.__dirty;if(!r){var w=n.fill,x=n.stroke,C=s&&!!w.colorStops,_=a&&!!x.colorStops,I=s&&!!w.image,E=a&&!!x.image,k=void 0,S=void 0,B=void 0,M=void 0,T=void 0;(C||_)&&(T=t.getBoundingRect()),C&&(k=m?Object(o.a)(e,w,T):t.__canvasFillGradient,t.__canvasFillGradient=k),_&&(S=m?Object(o.a)(e,x,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),I&&(B=m||!t.__canvasFillPattern?b(e,w,t):t.__canvasFillPattern,t.__canvasFillPattern=B),E&&(M=m||!t.__canvasStrokePattern?b(e,x,t):t.__canvasStrokePattern,t.__canvasStrokePattern=B),C?e.fillStyle=k:I&&(B?e.fillStyle=B:s=!1),_?e.strokeStyle=S:E&&(M?e.strokeStyle=M:a=!1)}var O,D,P=t.getGlobalScale();d.setScale(P[0],P[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(O=(i=Object(h.a)(t))[0],D=i[1]);var L=!0;(u||m&f.b)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),L=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),L&&d.rebuildPath(e,l?c:1),O&&(e.setLineDash(O),e.lineDashOffset=D),r||(n.strokeFirst?(a&&A(e,n),s&&y(e,n)):(s&&y(e,n),a&&A(e,n))),O&&e.setLineDash([])}(e,t,R,Q),Q&&(n.batchFill=R.fill||"",n.batchStroke=R.stroke||"")):t instanceof l.a?(n.lastDrawType!==S&&(x=!0,n.lastDrawType=S),_(e,t,O,x,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||d.a,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(a=(r=Object(h.a)(t))[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(g(n)&&e.strokeText(i,n.x,n.y),v(n)&&e.fillText(i,n.x,n.y)):(v(n)&&e.fillText(i,n.x,n.y),g(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}(e,t,R)):t instanceof c.a?(n.lastDrawType!==k&&(x=!0,n.lastDrawType=k),function(e,t,n,r,i){C(e,T(t,i.inHover),n&&T(n,i.inHover),r,i)}(e,t,O,x,n),function(e,t,n){var r=t.__image=Object(a.a)(n.image,t.__image,t,t.onload);if(r&&Object(a.c)(r)){var i=n.x||0,o=n.y||0,s=t.getWidth(),c=t.getHeight(),l=r.width/r.height;if(null==s&&null!=c?s=c*l:null==c&&null!=s?c=s/l:null==s&&null==c&&(s=r.width,c=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;e.drawImage(r,u,h,n.sWidth,n.sHeight,i,o,s,c)}else if(n.sx&&n.sy){var f=s-(u=n.sx),d=c-(h=n.sy);e.drawImage(r,u,h,f,d,i,o,s,c)}else e.drawImage(r,i,o,s,c)}}(e,t,R)):t.getTemporalDisplayables&&(n.lastDrawType!==B&&(x=!0,n.lastDrawType=B),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=t.getCursor(),o=r.length;a<o;a++){(u=r[a]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),D(e,u,s,a===o-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}for(var c=0,l=i.length;c<l;c++){var u;(u=i[c]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),D(e,u,s,c===l-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}
/***/(e,t,n)),Q&&r&&M(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}},
/***/"526b":
/***/function(e,t,n){
/* eslint-disable no-use-before-define */
const{BigInteger:r}=n("e0c8"),{encodeDer:i,decodeDer:a}=n("f9dd"),o=n("dffd"),s=n("41d0").sm3,{G:c,curve:l,n:u}=o.generateEcparam();
/**
 * sm3杂凑算法
 */
function h(e,t,n="1234567812345678"){
// z = hash(entl || userId || a || b || gx || gy || px || py)
n=o.utf8ToHex(n);const r=o.leftPad(c.curve.a.toBigInteger().toRadix(16),64),i=o.leftPad(c.curve.b.toBigInteger().toRadix(16),64),a=o.leftPad(c.getX().toBigInteger().toRadix(16),64),l=o.leftPad(c.getY().toBigInteger().toRadix(16),64);let u,h;if(128===t.length)u=t.substr(0,64),h=t.substr(64,64);else{const e=c.curve.decodePointHex(t);u=o.leftPad(e.getX().toBigInteger().toRadix(16),64),h=o.leftPad(e.getY().toBigInteger().toRadix(16),64)}const f=o.hexToArray(n+r+i+a+l+u+h),d=4*n.length;f.unshift(255&d),f.unshift(d>>8&255);const p=s(f);
// e = hash(z || msg)
return o.arrayToHex(s(p.concat(o.hexToArray(e))))}
/**
 * 计算公钥
 */function f(e){const t=c.multiply(new r(e,16));return"04"+o.leftPad(t.getX().toBigInteger().toString(16),64)+o.leftPad(t.getY().toBigInteger().toString(16),64)}
/**
 * 获取椭圆曲线点
 */function d(){const e=o.generateKeyPairHex(),t=l.decodePointHex(e.publicKey);return e.k=new r(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}e.exports={generateKeyPairHex:o.generateKeyPairHex,compressPublicKeyHex:o.compressPublicKeyHex,comparePublicKeyHex:o.comparePublicKeyHex,doEncrypt:
/**
 * 加密
 */
function(e,t,n=1){e="string"==typeof e?o.hexToArray(o.utf8ToHex(e)):Array.prototype.slice.call(e),t=o.getGlobalCurve().decodePointHex(t);// 先将公钥转成点
const i=o.generateKeyPairHex(),a=new r(i.privateKey,16);// 随机数 k
// c1 = k * G
let c=i.publicKey;c.length>128&&(c=c.substr(c.length-128));
// (x2, y2) = k * publicKey
const l=t.multiply(a),u=o.hexToArray(o.leftPad(l.getX().toBigInteger().toRadix(16),64)),h=o.hexToArray(o.leftPad(l.getY().toBigInteger().toRadix(16),64)),f=o.arrayToHex(s([].concat(u,e,h)));let d=1,p=0,g=[];// 256 位
const m=[].concat(u,h),v=()=>{
// (1) Hai = hash(z || ct)
// (2) ct++
g=s([...m,d>>24&255,d>>16&255,d>>8&255,255&d]),d++,p=0};v();// 先生成 Ha1
for(let t=0,n=e.length;t<n;t++)
// t = Ha1 || Ha2 || Ha3 || Ha4
p===g.length&&v(),
// c2 = msg ^ t
e[t]^=255&g[p++];const y=o.arrayToHex(e);return 0===n?c+y+f:c+f+y}
/**
 * 解密
 */,doDecrypt:function(e,t,n=1,{output:i="string"}={}){t=new r(t,16);let a=e.substr(128,64),c=e.substr(192);0===n&&(a=e.substr(e.length-64),c=e.substr(128,e.length-128-64));const l=o.hexToArray(c),u=o.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),h=o.hexToArray(o.leftPad(u.getX().toBigInteger().toRadix(16),64)),f=o.hexToArray(o.leftPad(u.getY().toBigInteger().toRadix(16),64));let d=1,p=0,g=[];// 256 位
const m=[].concat(h,f),v=()=>{
// (1) Hai = hash(z || ct)
// (2) ct++
g=s([...m,d>>24&255,d>>16&255,d>>8&255,255&d]),d++,p=0};v();// 先生成 Ha1
for(let e=0,t=l.length;e<t;e++)
// t = Ha1 || Ha2 || Ha3 || Ha4
p===g.length&&v(),
// c2 = msg ^ t
l[e]^=255&g[p++];
// c3 = hash(x2 || msg || y2)
return o.arrayToHex(s([].concat(h,l,f)))===a.toLowerCase()?"array"===i?l:o.arrayToUtf8(l):"array"===i?[]:""}
/**
 * 签名
 */,doSignature:function(e,t,{pointPool:n,der:a,hash:s,publicKey:c,userId:l}={}){let p="string"==typeof e?o.utf8ToHex(e):o.arrayToHex(e);s&&(p=h(p,
// sm3杂凑
c=c||f(t),l));const g=new r(t,16),m=new r(p,16);
// k
let v=null,y=null,A=null;do{do{let e;e=n&&n.length?n.pop():d(),v=e.k,
// r = (e + x1) mod n
y=m.add(e.x1).mod(u)}while(y.equals(r.ZERO)||y.add(v).equals(u));
// s = ((1 + dA)^-1 * (k - r * dA)) mod n
A=g.add(r.ONE).modInverse(u).multiply(v.subtract(y.multiply(g))).mod(u)}while(A.equals(r.ZERO));return a?i(y,A):o.leftPad(y.toString(16),64)+o.leftPad(A.toString(16),64);// asn.1 der 编码
}
/**
 * 验签
 */,doVerifySignature:function(e,t,n,{der:i,hash:s,userId:f}={}){let d,p,g="string"==typeof e?o.utf8ToHex(e):o.arrayToHex(e);if(s&&(
// sm3杂凑
g=h(g,n,f)),i){const e=a(t);// asn.1 der 解码
d=e.r,p=e.s}else d=new r(t.substring(0,64),16),p=new r(t.substring(64),16);const m=l.decodePointHex(n),v=new r(g,16),y=d.add(p).mod(u);if(y.equals(r.ZERO))return!1;
// x1y1 = s * G + t * PA
const A=c.multiply(p).add(m.multiply(y)),b=v.add(A.getX().toBigInteger()).mod(u);
// R = (e + x1) mod n
return d.equals(b)},getPublicKeyFromPrivateKey:f,getPoint:d,verifyPublicKey:o.verifyPublicKey}
/***/},
/***/5270:
/***/function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),a=n("2e67"),o=n("2444");
/**
 * Throws a `Cancel` if cancellation has been requested.
 */
function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}
/**
 * Dispatch a request to the server using the configured adapter.
 *
 * @param {object} config The config that is to be used for the request
 * @returns {Promise} The Promise to be fulfilled
 */e.exports=function(e){return s(e),
// Ensure headers exist
e.headers=e.headers||{},
// Transform request data
e.data=i(e.data,e.headers,e.transformRequest),
// Flatten headers
e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),
// Transform response data
t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),
// Transform response data
t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},
/***/"528d":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return m}));
/* harmony import */var r=n("92fa"),i=n.n(r),a=n("6042"),o=n.n(a),s=n("41b2"),c=n.n(s),l=n("4d91"),u=n("18a7"),h=n("b488"),f=n("ec44"),d=n("e90a"),p=n("2b89"),g=n("daa3"),m={attribute:l.a.object,rootPrefixCls:l.a.string,eventKey:l.a.oneOfType([l.a.string,l.a.number]),active:l.a.bool,selectedKeys:l.a.array,disabled:l.a.bool,title:l.a.any,index:l.a.number,inlineIndent:l.a.number.def(24),level:l.a.number.def(1),mode:l.a.oneOf(["horizontal","vertical","vertical-left","vertical-right","inline"]).def("vertical"),parentMenu:l.a.object,multiple:l.a.bool,value:l.a.any,isSelected:l.a.bool,manualRef:l.a.func.def(p.h),role:l.a.any,subMenuKey:l.a.string,itemIcon:l.a.any},v={name:"MenuItem",props:m,mixins:[h.a],isMenuItem:!0,created:function(){this.prevActive=this.active,
// invoke customized ref to expose component to mixin
this.callRef()},updated:function(){var e=this;this.$nextTick((function(){var t=e.$props,n=t.active,r=t.parentMenu,i=t.eventKey;e.prevActive||!n||r&&r["scrolled-"+i]?r&&r["scrolled-"+i]&&delete r["scrolled-"+i]:(Object(f.a)(e.$el,e.parentMenu.$el,{onlyScrollIfNeeded:!0}),r["scrolled-"+i]=!0),e.prevActive=n})),this.callRef()},beforeDestroy:function(){var e=this.$props;this.__emit("destroy",e.eventKey)},methods:{onKeyDown:function(e){if(e.keyCode===u.a.ENTER)return this.onClick(e),!0},onMouseLeave:function(e){var t=this.$props.eventKey;this.__emit("itemHover",{key:t,hover:!1}),this.__emit("mouseleave",{key:t,domEvent:e})},onMouseEnter:function(e){var t=this.eventKey;this.__emit("itemHover",{key:t,hover:!0}),this.__emit("mouseenter",{key:t,domEvent:e})},onClick:function(e){var t=this.$props,n=t.eventKey,r=t.multiple,i=t.isSelected,a={key:n,keyPath:[n],item:this,domEvent:e};this.__emit("click",a),r?i?this.__emit("deselect",a):this.__emit("select",a):i||this.__emit("select",a)},getPrefixCls:function(){return this.$props.rootPrefixCls+"-item"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getSelectedClassName:function(){return this.getPrefixCls()+"-selected"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},callRef:function(){this.manualRef&&this.manualRef(this)}},render:function(){var e,t=arguments[0],n=c()({},this.$props),r=(e={},o()(e,this.getPrefixCls(),!0),o()(e,this.getActiveClassName(),!n.disabled&&n.active),o()(e,this.getSelectedClassName(),n.isSelected),o()(e,this.getDisabledClassName(),n.disabled),e),a=c()({},n.attribute,{title:n.title,role:n.role||"menuitem","aria-disabled":n.disabled});"option"===n.role?
// overwrite to option
a=c()({},a,{role:"option","aria-selected":n.isSelected}):null!==n.role&&"none"!==n.role||(
// sometimes we want to specify role inside <li/> element
// <li><a role='menuitem'>Link</a></li> would be a good example
// in this case the role on <li/> should be "none" to
// remove the implied listitem role.
// https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html
a.role="none");
// In case that onClick/onMouseLeave/onMouseEnter is passed down from owner
var s={click:n.disabled?p.h:this.onClick,mouseleave:n.disabled?p.h:this.onMouseLeave,mouseenter:n.disabled?p.h:this.onMouseEnter},l={};"inline"===n.mode&&(l.paddingLeft=n.inlineIndent*n.level+"px");var u=c()({},Object(g.k)(this));p.g.props.forEach((function(e){return delete n[e]})),p.g.on.forEach((function(e){return delete u[e]}));var h={attrs:c()({},n,a),on:c()({},u,s)};return t("li",i()([h,{style:l,class:r}]),[this.$slots.default,Object(g.g)(this,"itemIcon",n)])}},y=Object(d.a)((function(e,t){var n=e.activeKey,r=e.selectedKeys,i=t.eventKey;return{active:n[t.subMenuKey]===i,isSelected:-1!==r.indexOf(i)}}))(v);
/* harmony import */
/* harmony default export */t.a=y},
/***/"52bd":
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t);
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/vc-pagination/locale/zh_CN.js
var r=n("3579"),i=n("41b2"),a=n.n(i),o={placeholder:"请选择时间"},s={lang:a()({placeholder:"请选择日期",rangePlaceholder:["开始日期","结束日期"]},{today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}),timePickerLocale:a()({},o)};
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
// should add whitespace between char in Button
s.lang.ok="确 定";
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
/* harmony default export */var c=s,l=c,u={locale:"zh-cn",Pagination:r.a,DatePicker:c,TimePicker:o,Calendar:l,ColorPicker:{"btn:save":"保存","btn:cancel":"取消","btn:clear":"清除"},
// locales for all comoponents
global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",selectAll:"全选当页",selectInvert:"反选当页",sortTitle:"排序",expand:"展开行",collapse:"关闭行"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/calendar/locale/zh_CN.js
/* harmony default export */t.default=u},
/***/"52c8":
/***/function(e,t,n){"use strict";var r=n("b5db");
// eslint-disable-next-line redos/no-vulnerable -- safe
e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},
/***/"52d5":
/***/function(e,t,n){"use strict";var r=n("2761"),i=n("fb32");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},
/***/"52e7":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("53a2"),i=Object(r.a)(Object.getPrototypeOf,Object);
/** Built-in value references. */
/* harmony default export */t.a=i},
/***/5319:
/***/function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),s=n("d039"),c=n("825a"),l=n("1626"),u=n("7234"),h=n("5926"),f=n("50c4"),d=n("577e"),p=n("1d80"),g=n("8aa5"),m=n("dc4a"),v=n("0cb2"),y=n("14c3"),A=n("b622")("replace"),b=Math.max,w=Math.min,x=a([].concat),C=a([].push),_=a("".indexOf),I=a("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[A]&&""===/./[A]("a","$0");
// @@replace logic
o("replace",(function(e,t,n){var a=k?"$":"$0";return[
// `String.prototype.replace` method
// https://tc39.es/ecma262/#sec-string.prototype.replace
function(e,n){var r=p(this),a=u(e)?void 0:m(e,A);return a?i(a,e,r,n):i(t,d(r),e,n)},
// `RegExp.prototype[@@replace]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
function(e,i){var o=c(this),s=d(e);if("string"==typeof i&&-1===_(i,a)&&-1===_(i,"$<")){var u=n(t,o,s,i);if(u.done)return u.value}var p=l(i);p||(i=d(i));var m,A=o.global;A&&(m=o.unicode,o.lastIndex=0);for(var E,k=[];null!==(E=y(o,s))&&(C(k,E),A);){""===d(E[0])&&(o.lastIndex=g(s,f(o.lastIndex),m))}for(var S,B="",M=0,T=0;T<k.length;T++){
// NOTE: This is equivalent to
//   captures = result.slice(1).map(maybeToString)
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
for(var O,D=d((E=k[T])[0]),P=b(w(h(E.index),s.length),0),L=[],Q=1;Q<E.length;Q++)C(L,void 0===(S=E[Q])?S:String(S));var R=E.groups;if(p){var j=x([D],L,P,s);void 0!==R&&C(j,R),O=d(r(i,void 0,j))}else O=v(D,s,P,L,R,i);P>=M&&(B+=I(s,M,P)+O,M=P+D.length)}return B+I(s,M)}]}),!!s((function(){var e=/./;
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!E||k)},
/***/"532c":
/***/function(e,t,n){
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var r=n("5d6f"),i=n("dbb2").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},
/***/5352:
/***/function(e,t,n){"use strict";
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
n("e260"),n("f6d6");var r=n("23e7"),i=n("cfe9"),a=n("157a"),o=n("d066"),s=n("c65b"),c=n("e330"),l=n("83ab"),u=n("f354"),h=n("cb2d"),f=n("edd0"),d=n("6964"),p=n("d44e"),g=n("dcc3"),m=n("69f3"),v=n("19aa"),y=n("1626"),A=n("1a2d"),b=n("0366"),w=n("f5df"),x=n("825a"),C=n("861d"),_=n("577e"),I=n("7c73"),E=n("5c6c"),k=n("9a1f"),S=n("35a1"),B=n("4754"),M=n("d6d6"),T=n("b622"),O=n("addb"),D=T("iterator"),P="URLSearchParams",L=P+"Iterator",Q=m.set,R=m.getterFor(P),j=m.getterFor(L),N=a("fetch"),F=a("Request"),z=a("Headers"),H=F&&F.prototype,U=z&&z.prototype,G=i.TypeError,V=i.encodeURIComponent,W=String.fromCharCode,q=o("String","fromCodePoint"),Y=parseInt,K=c("".charAt),$=c([].join),J=c([].push),X=c("".replace),Z=c([].shift),ee=c([].splice),te=c("".split),ne=c("".slice),re=c(/./.exec),ie=/\+/g,ae=/^[0-9a-f]+$/i,oe=function(e,t){var n=ne(e,t,t+2);return re(ae,n)?Y(n,16):NaN},se=function(e){for(var t=0,n=128;n>0&&e&n;n>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},le=function(e){for(var t=(e=X(e,ie," ")).length,n="",r=0;r<t;){var i=K(e,r);if("%"===i){if("%"===K(e,r+1)||r+3>t){n+="%",r++;continue}var a=oe(e,r+1);
// eslint-disable-next-line no-self-compare -- NaN check
if(a!=a){n+=i,r++;continue}r+=2;var o=se(a);if(0===o)i=W(a);else{if(1===o||o>4){n+="�",r++;continue}for(var s=[a],c=1;c<o&&!(++r+3>t||"%"!==K(e,r));){var l=oe(e,r+1);
// eslint-disable-next-line no-self-compare -- NaN check
if(l!=l){r+=3;break}if(l>191||l<128)break;J(s,l),r+=2,c++}if(s.length!==o){n+="�";continue}var u=ce(s);null===u?n+="�":i=q(u)}}n+=i,r++}return n},ue=/[!'()~]|%20/g,he={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return he[e]},de=function(e){return X(V(e),ue,fe)},pe=g((function(e,t){Q(this,{type:L,target:R(e).entries,index:0,kind:t})}),P,(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,B(void 0,!0);var r=t[n];switch(e.kind){case"keys":return B(r.key,!1);case"values":return B(r.value,!1)}return B([r.key,r.value],!1)}),!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ne(e,1):e:_(e)))};ge.prototype={type:P,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,a,o,c,l=this.entries,u=S(e);if(u)for(n=(t=k(e,u)).next;!(r=s(n,t)).done;){if(a=(i=k(x(r.value))).next,(o=s(a,i)).done||(c=s(a,i)).done||!s(a,i).done)throw new G("Expected sequence with length 2");J(l,{key:_(o.value),value:_(c.value)})}else for(var h in e)A(e,h)&&J(l,{key:h,value:_(e[h])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=te(e,"&"),a=0;a<i.length;)(t=i[a++]).length&&(n=te(t,"="),J(r,{key:le(Z(n)),value:le($(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],J(n,de(e.key)+"="+de(e.value));return $(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};
// `URLSearchParams` constructor
// https://url.spec.whatwg.org/#interface-urlsearchparams
var me=function(){v(this,ve);var e=Q(this,new ge(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},ve=me.prototype;
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
if(d(ve,{
// `URLSearchParams.prototype.append` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
append:function(e,t){var n=R(this);M(arguments.length,2),J(n.entries,{key:_(e),value:_(t)}),l||this.length++,n.updateURL()},
// `URLSearchParams.prototype.delete` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
delete:function(e/* , value */){for(var t=R(this),n=M(arguments.length,1),r=t.entries,i=_(e),a=n<2?void 0:arguments[1],o=void 0===a?a:_(a),s=0;s<r.length;){var c=r[s];if(c.key!==i||void 0!==o&&c.value!==o)s++;else if(ee(r,s,1),void 0!==o)break}l||(this.size=r.length),t.updateURL()},
// `URLSearchParams.prototype.get` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
get:function(e){var t=R(this).entries;M(arguments.length,1);for(var n=_(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},
// `URLSearchParams.prototype.getAll` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
getAll:function(e){var t=R(this).entries;M(arguments.length,1);for(var n=_(e),r=[],i=0;i<t.length;i++)t[i].key===n&&J(r,t[i].value);return r},
// `URLSearchParams.prototype.has` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
has:function(e/* , value */){for(var t=R(this).entries,n=M(arguments.length,1),r=_(e),i=n<2?void 0:arguments[1],a=void 0===i?i:_(i),o=0;o<t.length;){var s=t[o++];if(s.key===r&&(void 0===a||s.value===a))return!0}return!1},
// `URLSearchParams.prototype.set` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
set:function(e,t){var n=R(this);M(arguments.length,1);for(var r,i=n.entries,a=!1,o=_(e),s=_(t),c=0;c<i.length;c++)(r=i[c]).key===o&&(a?ee(i,c--,1):(a=!0,r.value=s));a||J(i,{key:o,value:s}),l||(this.size=i.length),n.updateURL()},
// `URLSearchParams.prototype.sort` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
sort:function(){var e=R(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},
// `URLSearchParams.prototype.forEach` method
forEach:function(e/* , thisArg */){for(var t,n=R(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},
// `URLSearchParams.prototype.keys` method
keys:function(){return new pe(this,"keys")},
// `URLSearchParams.prototype.values` method
values:function(){return new pe(this,"values")},
// `URLSearchParams.prototype.entries` method
entries:function(){return new pe(this,"entries")}},{enumerable:!0}),
// `URLSearchParams.prototype[@@iterator]` method
h(ve,D,ve.entries,{name:"entries"}),
// `URLSearchParams.prototype.toString` method
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
h(ve,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),
// `URLSearchParams.prototype.size` getter
// https://github.com/whatwg/url/pull/734
l&&f(ve,"size",{get:function(){return R(this).entries.length},configurable:!0,enumerable:!0}),p(me,P),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:me}),!u&&y(z)){var ye=c(U.has),Ae=c(U.set),be=function(e){if(C(e)){var t,n=e.body;if(w(n)===P)return t=e.headers?new z(e.headers):new z,ye(t,"content-type")||Ae(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),I(e,{body:E(0,_(n)),headers:E(0,t)})}return e};if(y(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e/* , init */){return N(e,arguments.length>1?be(arguments[1]):{})}}),y(F)){var we=function(e/* , init */){return v(this,H),new F(e,arguments.length>1?be(arguments[1]):{})};H.constructor=we,we.prototype=H,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:we})}}e.exports={URLSearchParams:me,getState:R}},
/***/5388:
/***/function(e,t,n){"use strict";var r=n("c65b");e.exports=function(e,t,n){for(var i,a,o=n?e:e.iterator,s=e.next;!(i=r(s,o)).done;)if(void 0!==(a=t(i.value)))return a}},
/***/"538f":
/***/function(e,t,n){"use strict";
/* unused harmony export ScaleRawExtentInfo */
/* harmony export (binding) */n.d(t,"a",(function(){return c}));
/* unused harmony export parseAxisModelMinMax */
/* harmony import */var r=n("6d8b"),i=n("e86a"),a=/** @class */function(){function e(e,t,
// Usually: data extent from all series on this axis.
n){this._prepareParams(e,t,n)}
/**
   * Parameters depending on outside (like model, user callback)
   * are prepared and fixed here.
   */return e.prototype._prepareParams=function(e,t,
// Usually: data extent from all series on this axis.
n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=t.get("min",!0);null==o&&(o=t.get("startValue",!0));var s=this._modelMinRaw=o;Object(r.isFunction)(s)?
// This callback always provides users the full data extent (before data is filtered).
this._modelMinNum=l(e,s({min:n[0],max:n[1]})):"dataMin"!==s&&(this._modelMinNum=l(e,s));var c=this._modelMaxRaw=t.get("max",!0);if(Object(r.isFunction)(c)?
// This callback always provides users the full data extent (before data is filtered).
this._modelMaxNum=l(e,c({min:n[0],max:n[1]})):"dataMax"!==c&&(this._modelMaxNum=l(e,c)),a)
// FIXME: there is a flaw here: if there is no "block" data processor like `dataZoom`,
// and progressive rendering is using, here the category result might just only contain
// the processed chunk rather than the entire result.
this._axisDataLen=t.getCategories().length;else{var u=t.get("boundaryGap"),h=Object(r.isArray)(u)?u:[u||0,u||0];"boolean"==typeof h[0]||"boolean"==typeof h[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(i.g)(h[0],1),Object(i.g)(h[1],1)]}},
/**
   * Calculate extent by prepared parameters.
   * This method has no external dependency and can be called duplicatedly,
   * getting the same result.
   * If parameters changed, should call this method to recalcuate.
   */
e.prototype.calculate=function(){
// Notice: When min/max is not set (that is, when there are null/undefined,
// which is the most common case), these cases should be ensured:
// (1) For 'ordinal', show all axis.data.
// (2) For others:
//      + `boundaryGap` is applied (if min/max set, boundaryGap is
//      disabled).
//      + If `needCrossZero`, min/max should be zero, otherwise, min/max should
//      be the result that originalExtent enlarged by boundaryGap.
// (3) If no data, it should be ensured that `scale.setBlank` is set.
var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s="dataMin"===this._modelMinRaw?t:this._modelMinNum,c="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=s,u=null!=c;null==s&&(s=e?i?0:NaN:t-a[0]*o),null==c&&(c=e?i?i-1:NaN:n+a[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==c||!isFinite(c))&&(c=NaN);var h=Object(r.eqNaN)(s)||Object(r.eqNaN)(c)||e&&!i;
// If data extent modified, need to recalculated to ensure cross zero.
this._needCrossZero&&(
// Axis is over zero and min is not set
s>0&&c>0&&!l&&(s=0),
// Axis is under zero and max is not set
s<0&&c<0&&!u&&(c=0));var f=this._determinedMin,d=this._determinedMax;
// Ensure min/max be finite number or NaN here. (not to be null/undefined)
// `NaN` means min/max axis is blank.
return null!=f&&(s=f,l=!0),null!=d&&(c=d,u=!0),{min:s,max:c,minFixed:l,maxFixed:u,isBlank:h}},e.prototype.modifyDataMinMax=function(e,t){this[s[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[o[e]]=t},e.prototype.freeze=function(){
// @ts-ignore
this.frozen=!0},e}(),o={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};
/* harmony import */
/**
 * Get scale min max and related info only depends on model settings.
 * This method can be called after coordinate system created.
 * For example, in data processing stage.
 *
 * Scale extent info probably be required multiple times during a workflow.
 * For example:
 * (1) `dataZoom` depends it to get the axis extent in "100%" state.
 * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.
 * (3) `coordSys.update` use it to finally decide the scale extent.
 * But the callback of `min`/`max` should not be called multiple times.
 * The code below should not be implemented repeatedly either.
 * So we cache the result in the scale instance, which will be recreated at the beginning
 * of the workflow (because `scale` instance will be recreated each round of the workflow).
 */
function c(e,t,
// Usually: data extent from all series on this axis.
n){
// Do not permit to recreate.
var r=e.rawExtentInfo;return r||(r=new a(e,t,n),
// @ts-ignore
e.rawExtentInfo=r,r)}function l(e,t){return null==t?null:Object(r.eqNaN)(t)?NaN:e.parse(t)}
/***/},
/***/5398:
/***/function(e,t,n){"use strict";
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
n("e9d8")("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},
/***/"53a2":
/***/function(e,t,n){"use strict";
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
/* harmony default export */t.a=function(e,t){return function(n){return e(t(n))}}},
/***/"53ca":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return r}));
/* harmony import */n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0")
/* harmony import */;function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)
/***/}},
/***/"53d3":
/***/function(e,t,n){
// https://tc39.github.io/ecma262/#sec-toindex
var r=n("9b6f"),i=n("6373");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},
/***/5406:
/***/function(e,t,n){
// 20.2.2.9 Math.cbrt(x)
var r=n("f083"),i=n("7bc9");r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},
/***/5494:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),a=n("edd0"),o=URLSearchParams.prototype,s=i(o.forEach);
// `URLSearchParams.prototype.size` getter
// https://github.com/whatwg/url/pull/734
r&&!("size"in o)&&a(o,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})
/***/},
/***/"54eb":
/***/function(e,t,n){var r=n("8eeb"),i=n("32f4");
/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t){return r(e,i(e),t)}},
/***/"551f":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i})),
/* harmony export (binding) */n.d(t,"b",(function(){return o}));
/* harmony import */var r=n("282b"),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],a=Object(r.a)(i),o=/** @class */function(){function e(){}return e.prototype.getItemStyle=function(e,t){return a(this,e,t)},e}();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/},
/***/5524:
/***/function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n);// eslint-disable-line no-undef
/***/},
/***/5530:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/* harmony import */n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("0643"),n("2382"),n("4e3e"),n("159b")
/* harmony import */;var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}
/***/},
/***/5557:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=p,t.eliminateBlur=g,t.checkPointIsInCircle=m,t.getTwoPointDistance=v,t.checkPointIsInPolygon=y,t.checkPointIsInSector=A,t.checkPointIsNearPolyline=w,t.checkPointIsInRect=
/**
 * @description Check if the point is inside the rect
 * @param {Array} point   Postion of point
 * @param {Number} x      Rect start x coordinate
 * @param {Number} y      Rect start y coordinate
 * @param {Number} width  Rect width
 * @param {Number} height Rect height
 * @return {Boolean} Result of check
 */
function(e,t,n,r,i){var o=(0,a.default)(e,2),s=o[0],c=o[1];return!(s<t)&&(!(c<n)&&(!(s>t+r)&&!(c>n+i)))}
/**
 * @description Get the coordinates of the rotated point
 * @param {Number} rotate Degree of rotation
 * @param {Array} point   Postion of point
 * @param {Array} origin  Rotation center
 * @param {Array} origin  Rotation center
 * @return {Number} Coordinates after rotation
 */,t.getRotatePointPos=x,t.getScalePointPos=C,t.getTranslatePointPos=_,t.getDistanceBetweenPointAndLine=I,t.getCircleRadianPoint=E,t.getRegularPolygonPoints=k,t.default=void 0;var i=r(n("448a")),a=r(n("278c")),o=r(n("7037")),s=Math.abs,c=Math.sqrt,l=Math.sin,u=Math.cos,h=Math.max,f=Math.min,d=Math.PI;
/**
 * @description Clone an object or array
 * @param {Object|Array} object Cloned object
 * @param {Boolean} recursion   Whether to use recursive cloning
 * @return {Object|Array} Clone object
 */
function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n=JSON.parse,r=JSON.stringify;if(!t)return n(r(e));var i=e instanceof Array?[]:{};if(e&&"object"===(0,o.default)(e))for(var a in e)e.hasOwnProperty(a)&&(e[a]&&"object"===(0,o.default)(e[a])?i[a]=p(e[a],!0):i[a]=e[a]);return i}
/**
 * @description Eliminate line blur due to 1px line width
 * @param {Array} points Line points
 * @return {Array} Line points after processed
 */function g(e){return e.map((function(e){var t=(0,a.default)(e,2),n=t[0],r=t[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}
/**
 * @description Check if the point is inside the circle
 * @param {Array} point Postion of point
 * @param {Number} rx   Circle x coordinate
 * @param {Number} ry   Circle y coordinate
 * @param {Number} r    Circle radius
 * @return {Boolean} Result of check
 */function m(e,t,n,r){return v(e,[t,n])<=r}
/**
 * @description Get the distance between two points
 * @param {Array} point1 point1
 * @param {Array} point2 point2
 * @return {Number} Distance between two points
 */function v(e,t){var n=(0,a.default)(e,2),r=n[0],i=n[1],o=(0,a.default)(t,2),l=o[0],u=o[1],h=s(r-l),f=s(i-u);return c(h*h+f*f)}
/**
 * @description Check if the point is inside the polygon
 * @param {Array} point  Postion of point
 * @param {Array} points The points that makes up a polyline
 * @return {Boolean} Result of check
 */function y(e,t){for(var n=0,r=(0,a.default)(e,2),i=r[0],o=r[1],s=t.length,c=1,l=t[0];c<=s;c++){var u=t[c%s];if(i>f(l[0],u[0])&&i<=h(l[0],u[0])&&o<=h(l[1],u[1])&&l[0]!==u[0]){var d=(i-l[0])*(u[1]-l[1])/(u[0]-l[0])+l[1];(l[1]===u[1]||o<=d)&&n++}l=u}return n%2==1}
/**
 * @description Check if the point is inside the sector
 * @param {Array} point       Postion of point
 * @param {Number} rx         Sector x coordinate
 * @param {Number} ry         Sector y coordinate
 * @param {Number} r          Sector radius
 * @param {Number} startAngle Sector start angle
 * @param {Number} endAngle   Sector end angle
 * @param {Boolean} clockWise Whether the sector angle is clockwise
 * @return {Boolean} Result of check
 */function A(e,t,n,r,i,o,s){if(!e)return!1;if(v(e,[t,n])>r)return!1;if(!s){var c=p([o,i]),l=(0,a.default)(c,2);i=l[0],o=l[1]}var u=i>o;if(u){var h=[o,i];i=h[0],o=h[1]}var f=o-i;if(f>=2*d)return!0;var g=(0,a.default)(e,2),m=g[0],y=g[1],A=E(t,n,r,i),w=(0,a.default)(A,2),x=w[0],C=w[1],_=E(t,n,r,o),I=(0,a.default)(_,2),k=[m-t,y-n],S=[x-t,C-n],B=[I[0]-t,I[1]-n],M=f>d;if(M){var T=p([B,S]),O=(0,a.default)(T,2);S=O[0],B=O[1]}var D=b(S,k)&&!b(B,k);return M&&(D=!D),u&&(D=!D),D}
/**
 * @description Determine if the point is in the clockwise direction of the vector
 * @param {Array} vArm   Vector
 * @param {Array} vPoint Point
 * @return {Boolean} Result of check
 */function b(e,t){var n=(0,a.default)(e,2),r=n[0],i=n[1],o=(0,a.default)(t,2);return-i*o[0]+r*o[1]>0}
/**
 * @description Check if the point is inside the polyline
 * @param {Array} point      Postion of point
 * @param {Array} polyline   The points that makes up a polyline
 * @param {Number} lineWidth Polyline linewidth
 * @return {Boolean} Result of check
 */function w(e,t,n){var r=n/2,o=t.map((function(e){var t=(0,a.default)(e,2);return[t[0],t[1]-r]})),s=t.map((function(e){var t=(0,a.default)(e,2);return[t[0],t[1]+r]}));return y(e,[].concat((0,i.default)(o),(0,i.default)(s.reverse())))}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360==0)return t;var r=(0,a.default)(t,2),i=r[0],o=r[1],s=(0,a.default)(n,2),c=s[0],h=s[1];return[(i-c)*u(e*=d/180)-(o-h)*l(e)+c,(i-c)*l(e)+(o-h)*u(e)+h]}
/**
 * @description Get the coordinates of the scaled point
 * @param {Array} scale  Scale factor
 * @param {Array} point  Postion of point
 * @param {Array} origin Scale center
 * @return {Number} Coordinates after scale
 */function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var r=(0,a.default)(t,2),i=r[0],o=r[1],s=(0,a.default)(n,2),c=s[0],l=s[1],u=(0,a.default)(e,2);return[(i-c)*u[0]+c,(o-l)*u[1]+l]}
/**
 * @description Get the coordinates of the scaled point
 * @param {Array} translate Translation distance
 * @param {Array} point     Postion of point
 * @return {Number} Coordinates after translation
 */function _(e,t){if(!e||!t)return!1;var n=(0,a.default)(t,2),r=n[0],i=n[1],o=(0,a.default)(e,2);return[r+o[0],i+o[1]]}
/**
 * @description Get the distance from the point to the line
 * @param {Array} point     Postion of point
 * @param {Array} lineBegin Line start position
 * @param {Array} lineEnd   Line end position
 * @return {Number} Distance between point and line
 */function I(e,t,n){if(!e||!t||!n)return!1;var r=(0,a.default)(e,2),i=r[0],o=r[1],l=(0,a.default)(t,2),u=l[0],h=l[1],f=(0,a.default)(n,2),d=f[0],p=f[1],g=p-h,m=u-d;return s(g*i+m*o+(h*(d-u)-u*(p-h)))/c(g*g+m*m)}
/**
 * @description Get the coordinates of the specified radian on the circle
 * @param {Number} x      Circle x coordinate
 * @param {Number} y      Circle y coordinate
 * @param {Number} radius Circle radius
 * @param {Number} radian Specfied radian
 * @return {Array} Postion of point
 */function E(e,t,n,r){return[e+u(r)*n,t+l(r)*n]}
/**
 * @description Get the points that make up a regular polygon
 * @param {Number} x     X coordinate of the polygon inscribed circle
 * @param {Number} y     Y coordinate of the polygon inscribed circle
 * @param {Number} r     Radius of the polygon inscribed circle
 * @param {Number} side  Side number
 * @param {Number} minus Radian offset
 * @return {Array} Points that make up a regular polygon
 */function k(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*d,a=2*d/r;return new Array(r).fill("").map((function(e,t){return t*a+i})).map((function(r){return E(e,t,n,r)}))}var S={deepClone:p,eliminateBlur:g,checkPointIsInCircle:m,checkPointIsInPolygon:y,checkPointIsInSector:A,checkPointIsNearPolyline:w,getTwoPointDistance:v,getRotatePointPos:x,getScalePointPos:C,getTranslatePointPos:_,getCircleRadianPoint:E,getRegularPolygonPoints:k,getDistanceBetweenPointAndLine:I};t.default=S},
/***/"55a3":
/***/function(e,t){e.exports=
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e){return this.__data__.has(e)}},
/***/"55c7":
/***/function(e,t,n){"use strict";var r=n("f937");e.exports=function(e,t){return!!e&&r((function(){
// eslint-disable-next-line no-useless-call
t?e.call(null,(function(){/* empty */}),1):e.call(null)}))}},
/***/"55c9":
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
n("7bb0")("WeakSet");
/***/},
/***/"55f1":
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: MenuMode, menuProps
// EXTERNAL MODULE: ./node_modules/babel-helper-vue-jsx-merge-props/index.js
var r=n("92fa"),i=n.n(r),a=n("6042"),o=n.n(a),s=n("41b2"),c=n.n(s),l=n("0464"),u=n("4bf8"),h=n("4a15"),f=n("da30"),d=n("a3a2"),p=n("daa3"),g=n("4d26"),m=n.n(g),v={name:"ASubMenu",isSubMenu:!0,props:c()({},d.a.props),inject:{menuPropsContext:{default:function(){return{}}}},methods:{onKeyDown:function(e){this.$refs.subMenu.onKeyDown(e)}},render:function(){var e=arguments[0],t=this.$slots,n=this.$scopedSlots,r=this.$props,i=r.rootPrefixCls,a=r.popupClassName,o=this.menuPropsContext.theme,s={props:c()({},this.$props,{popupClassName:m()(i+"-"+o,a)}),ref:"subMenu",on:Object(p.k)(this),scopedSlots:n},l=Object.keys(t);return e(d.a,s,[l.length?l.map((function(n){return e("template",{slot:n},[t[n]])})):null])}},y=n("4d91"),A=n("3593"),b=n("6a21"),w=n("528d"),x=n("f933");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/menu/MenuItem.js
function C(){}
/* harmony default export */var _={name:"MenuItem",inheritAttrs:!1,props:w.b,inject:{getInlineCollapsed:{default:function(){return C}},layoutSiderContext:{default:function(){return{}}}},isMenuItem:!0,methods:{onKeyDown:function(e){this.$refs.menuItem.onKeyDown(e)}},render:function(){var e=arguments[0],t=Object(p.l)(this),n=t.level,r=t.title,a=t.rootPrefixCls,o=this.getInlineCollapsed,s=this.$slots,l=this.$attrs,u=o(),h=r;void 0===r?h=1===n?s.default:"":!1===r&&(h="");var f={title:h};this.layoutSiderContext.sCollapsed||u||(f.title=null,
// Reset `visible` to fix control mode tooltip display not correct
// ref: https://github.com/ant-design/ant-design/issues/16742
f.visible=!1);var d={props:c()({},t,{title:r}),attrs:l,on:Object(p.k)(this)},g={props:c()({},f,{placement:"right",overlayClassName:a+"-inline-collapsed-tooltip"})};return e(x.a,g,[e(w.a,i()([d,{ref:"menuItem"}]),[s.default])])}},I=n("b488"),E=n("22a4"),k=n("4df5"),S=n("db14"),B=y.a.oneOf(["vertical","vertical-left","vertical-right","horizontal","inline"]),M={name:"AMenu",props:c()({},E.a,{theme:y.a.oneOf(["light","dark"]).def("light"),mode:B.def("vertical"),selectable:y.a.bool,selectedKeys:y.a.arrayOf(y.a.oneOfType([y.a.string,y.a.number])),defaultSelectedKeys:y.a.array,openKeys:y.a.array,defaultOpenKeys:y.a.array,openAnimation:y.a.oneOfType([y.a.string,y.a.object]),openTransitionName:y.a.string,prefixCls:y.a.string,multiple:y.a.bool,inlineIndent:y.a.number.def(24),inlineCollapsed:y.a.bool,isRootMenu:y.a.bool.def(!0),focusable:y.a.bool.def(!1)}),Divider:c()({},u.a,{name:"AMenuDivider"}),Item:c()({},_,{name:"AMenuItem"}),SubMenu:c()({},v,{name:"ASubMenu"}),ItemGroup:c()({},h.a,{name:"AMenuItemGroup"}),provide:function(){return{getInlineCollapsed:this.getInlineCollapsed,menuPropsContext:this.$props}},mixins:[I.a],inject:{layoutSiderContext:{default:function(){return{}}},configProvider:{default:function(){return k.a}}},model:{prop:"selectedKeys",event:"selectChange"},updated:function(){this.propsUpdating=!1},
// beforeDestroy() {
//   raf.cancel(this.mountRafId);
// },
watch:{mode:function(e,t){"inline"===t&&"inline"!==e&&(this.switchingModeFromInline=!0)},openKeys:function(e){this.setState({sOpenKeys:e})},inlineCollapsed:function(e){this.collapsedChange(e)},"layoutSiderContext.sCollapsed":function(e){this.collapsedChange(e)}},data:function(){var e=Object(p.l)(this);Object(b.a)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when Menu's `mode` is inline."),this.switchingModeFromInline=!1,this.leaveAnimationExecutedWhenInlineCollapsed=!1,this.inlineOpenKeys=[];var t=void 0;return"openKeys"in e?t=e.openKeys:"defaultOpenKeys"in e&&(t=e.defaultOpenKeys),{sOpenKeys:t}},methods:{collapsedChange:function(e){this.propsUpdating||(this.propsUpdating=!0,Object(p.s)(this,"openKeys")?e&&(
// 缩起时，openKeys置为空的动画会闪动，react可以通过是否传递openKeys避免闪动，vue不是很方便动态传递openKeys
this.switchingModeFromInline=!0):e?(this.switchingModeFromInline=!0,this.inlineOpenKeys=this.sOpenKeys,this.setState({sOpenKeys:[]})):(this.setState({sOpenKeys:this.inlineOpenKeys}),this.inlineOpenKeys=[]))},restoreModeVerticalFromInline:function(){this.switchingModeFromInline&&(this.switchingModeFromInline=!1,this.$forceUpdate())},
// Restore vertical mode when menu is collapsed responsively when mounted
// https://github.com/ant-design/ant-design/issues/13104
// TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
handleMouseEnter:function(e){this.restoreModeVerticalFromInline(),this.$emit("mouseenter",e)},handleTransitionEnd:function(e){
// when inlineCollapsed menu width animation finished
// https://github.com/ant-design/ant-design/issues/12864
var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,r="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&r.indexOf("anticon")>=0;
// Fix SVGElement e.target.className.indexOf is not a function
// https://github.com/ant-design/ant-design/issues/15699
(t||i)&&this.restoreModeVerticalFromInline()},handleClick:function(e){this.handleOpenChange([]),this.$emit("click",e)},handleSelect:function(e){this.$emit("select",e),this.$emit("selectChange",e.selectedKeys)},handleDeselect:function(e){this.$emit("deselect",e),this.$emit("selectChange",e.selectedKeys)},handleOpenChange:function(e){this.setOpenKeys(e),this.$emit("openChange",e),this.$emit("update:openKeys",e)},setOpenKeys:function(e){Object(p.s)(this,"openKeys")||this.setState({sOpenKeys:e})},getRealMenuMode:function(){var e=this.getInlineCollapsed();if(this.switchingModeFromInline&&e)return"inline";var t=this.$props.mode;return e?"vertical":t},getInlineCollapsed:function(){var e=this.$props.inlineCollapsed;return void 0!==this.layoutSiderContext.sCollapsed?this.layoutSiderContext.sCollapsed:e},getMenuOpenAnimation:function(e){var t=this.$props,n=t.openAnimation,r=t.openTransitionName,i=n||r;return void 0===n&&void 0===r&&("horizontal"===e?i="slide-up":"inline"===e?i={on:A.a}:
// When mode switch from inline
// submenu should hide without animation
this.switchingModeFromInline?(i="",this.switchingModeFromInline=!1):i="zoom-big"),i}},render:function(){var e,t=this,n=arguments[0],r=this.layoutSiderContext,a=this.$slots,s=r.collapsedWidth,u=this.configProvider.getPopupContainer,h=Object(p.l)(this),d=h.prefixCls,g=h.theme,m=h.getPopupContainer,v=(0,this.configProvider.getPrefixCls)("menu",d),y=this.getRealMenuMode(),A=this.getMenuOpenAnimation(y),b=(e={},o()(e,v+"-"+g,!0),o()(e,v+"-inline-collapsed",this.getInlineCollapsed()),e),w={props:c()({},Object(l.a)(h,["inlineCollapsed"]),{getPopupContainer:m||u,openKeys:this.sOpenKeys,mode:y,prefixCls:v}),on:c()({},Object(p.k)(this),{select:this.handleSelect,deselect:this.handleDeselect,openChange:this.handleOpenChange,mouseenter:this.handleMouseEnter}),nativeOn:{transitionend:this.handleTransitionEnd}};return Object(p.s)(this,"selectedKeys")||delete w.props.selectedKeys,"inline"!==y?(
// closing vertical popup submenu after click it
w.on.click=this.handleClick,w.props.openTransitionName=A):(w.on.click=function(e){t.$emit("click",e)},w.props.openAnimation=A),this.getInlineCollapsed()&&(0===s||"0"===s||"0px"===s)&&(w.props.openKeys=[]),n(f.a,i()([w,{class:b}]),[a.default])},
/* istanbul ignore next */
install:function(e){e.use(S.a),e.component(M.name,M),e.component(M.Item.name,M.Item),e.component(M.SubMenu.name,M.SubMenu),e.component(M.Divider.name,M.Divider),e.component(M.ItemGroup.name,M.ItemGroup)}};
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/_util/BaseMixin.js
t.a=M},
/***/5689:
/***/function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},
/***/5692:
/***/function(e,t,n){"use strict";var r=n("c6cd");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},
/***/"56b3":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// This is CodeMirror (https://codemirror.net), a code editor
// implemented in JavaScript on top of the browser's DOM.
// You can find some technical background for some of the code below
// at http://marijnhaverbeke.nl/blog/#cm-internals .
e.exports=function(){"use strict";
// Kludges for bugs and behavior differences that can't be feature
// detected are enabled based on userAgent etc sniffing.
var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\//.test(e),h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!a&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),A=/\bCrOS\b/.test(e),b=/win/i.test(t),w=h&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(h=!1,c=!0);
// Some browsers use the wrong event properties to signal cmd/ctrl on OS X
var x=y&&(l||h&&(null==w||w<12.11)),C=n||o&&s>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var I,E=function(e,t){var n=e.className,r=_(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function S(e,t){return k(e).appendChild(t)}function B(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}
// wrapper for elt, which removes the elt from the accessibility tree
function M(e,t,n,r){var i=B(e,t,n,r);return i.setAttribute("role","presentation"),i}function T(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function O(){
// IE and Edge may throw an "Unspecified Error" when accessing document.activeElement.
// IE < 10 will throw when accessed while the page is loading or in an iframe.
// IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.
var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function D(e,t){var n=e.className;_(t).test(n)||(e.className+=(n?" ":"")+t)}function P(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!_(n[r]).test(t)&&(t+=" "+n[r]);return t}I=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function Q(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function R(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}
// Counts the column offset in a string, taking tabs into account.
// Used mostly to find indentation.
function j(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var a=r||0,o=i||0;;){var s=e.indexOf("\t",a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}g?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(L=function(e){try{e.select()}catch(e){}});var N=function(){this.id=null};function F(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}
// Number of pixels added to scroller and sizer to hide scrollbar
N.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var z=30,H={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},G={origin:"*mouse"},V={origin:"+move"};
// Returned or thrown by various protocols to signal 'I'm not
// handling this'.
// The inverse of countColumn -- find the offset that corresponds to
// a particular column.
function W(e,t,n){for(var r=0,i=0;;){var a=e.indexOf("\t",r);-1==a&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,r=a+1,(i+=n-i%n)>=t)return r}}var q=[""];function Y(e){for(;q.length<=e;)q.push(K(q)+" ");return q[e]}function K(e){return e[e.length-1]}function $(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function X(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),t&&R(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}
// Extending unicode characters. A series of a non-extending char +
// any number of extending chars is treated as a single unit as far
// as editing and measuring is concerned. This is not fully correct,
// since some scripts/fonts/browsers also treat other configurations
// of code points as a group.
var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ae(e){return e.charCodeAt(0)>=768&&ie.test(e)}
// Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.
function oe(e,t,n){for(;(n<0?t>0:t<e.length)&&ae(e.charAt(t));)t+=n;return t}
// Returns the value from the range [`from`; `to`] that satisfies
// `pred` and is closest to `from`. Assumes that at least `to`
// satisfies `pred`. Supports `from` being greater than `to`.
function se(e,t,n){for(
// At any point we are certain `to` satisfies `pred`, don't know
// whether `from` does.
var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}
// BIDI HELPERS
function ce(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(t,n,"ltr")}var le=null;function ue(e,t,n){var r;le=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&"before"==n?r=i:le=i),a.from==t&&(a.from!=a.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}
// Bidirectional ordering algorithm
// See http://unicode.org/reports/tr9/tr9-13.html for the algorithm
// that this (partially) implements.
// One-char codes used for character types:
// L (L):   Left-to-Right
// R (R):   Right-to-Left
// r (AL):  Right-to-Left Arabic
// 1 (EN):  European Number
// + (ES):  European Number Separator
// % (ET):  European Number Terminator
// n (AN):  Arabic Number
// , (CS):  Common Number Separator
// m (NSM): Non-Spacing Mark
// b (BN):  Boundary Neutral
// s (B):   Paragraph Separator
// t (S):   Segment Separator
// w (WS):  Whitespace
// N (ON):  Other Neutrals
// Returns null if characters are ordered as they appear
// (left-to-right), or an array of sections ({from, to, level}
// objects) in the order in which they occur visually.
var he=function(){
// Character types for codepoints 0 to 0xff
var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";
// Character types for codepoints 0x600 to 0x6f9
function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,h=[],f=0;f<u;++f)h.push(n(e.charCodeAt(f)));
// W1. Examine each non-spacing mark (NSM) in the level run, and
// change the type of the NSM to the type of the previous
// character. If the NSM is at the start of the level run, it will
// get the type of sor.
for(var d=0,p=l;d<u;++d){var g=h[d];"m"==g?h[d]=p:p=g}
// W2. Search backwards from each instance of a European number
// until the first strong type (R, L, AL, or sor) is found. If an
// AL is found, change the type of the European number to Arabic
// number.
// W3. Change all ALs to R.
for(var m=0,v=l;m<u;++m){var y=h[m];"1"==y&&"r"==v?h[m]="n":a.test(y)&&(v=y,"r"==y&&(h[m]="R"))}
// W4. A single European separator between two European numbers
// changes to a European number. A single common separator between
// two numbers of the same type changes to that type.
for(var A=1,b=h[0];A<u-1;++A){var w=h[A];"+"==w&&"1"==b&&"1"==h[A+1]?h[A]="1":","!=w||b!=h[A+1]||"1"!=b&&"n"!=b||(h[A]=b),b=w}
// W5. A sequence of European terminators adjacent to European
// numbers changes to all European numbers.
// W6. Otherwise, separators and terminators change to Other
// Neutral.
for(var x=0;x<u;++x){var C=h[x];if(","==C)h[x]="N";else if("%"==C){var _=void 0;for(_=x+1;_<u&&"%"==h[_];++_);for(var I=x&&"!"==h[x-1]||_<u&&"1"==h[_]?"1":"N",E=x;E<_;++E)h[E]=I;x=_-1}}
// W7. Search backwards from each instance of a European number
// until the first strong type (R, L, or sor) is found. If an L is
// found, then change the type of the European number to L.
for(var k=0,S=l;k<u;++k){var B=h[k];"L"==S&&"1"==B?h[k]="L":a.test(B)&&(S=B)}
// N1. A sequence of neutrals takes the direction of the
// surrounding strong text if the text on both sides has the same
// direction. European and Arabic numbers act as if they were R in
// terms of their influence on neutrals. Start-of-level-run (sor)
// and end-of-level-run (eor) are used at level run boundaries.
// N2. Any remaining neutrals take the embedding direction.
for(var M=0;M<u;++M)if(i.test(h[M])){var T=void 0;for(T=M+1;T<u&&i.test(h[T]);++T);for(var O="L"==(M?h[M-1]:l),D=O==("L"==(T<u?h[T]:l))?O?"L":"R":l,P=M;P<T;++P)h[P]=D;M=T-1}
// Here we depart from the documented algorithm, in order to avoid
// building up an actual levels array. Since there are only three
// levels (0, 1, 2) in an implementation that doesn't take
// explicit embedding into account, we can build up the order on
// the fly, without following the level-based algorithm.
for(var L,Q=[],R=0;R<u;)if(o.test(h[R])){var j=R;for(++R;R<u&&o.test(h[R]);++R);Q.push(new c(0,j,R))}else{var N=R,F=Q.length;for(++R;R<u&&"L"!=h[R];++R);for(var z=N;z<R;)if(s.test(h[z])){N<z&&Q.splice(F,0,new c(1,N,z));var H=z;for(++z;z<R&&s.test(h[z]);++z);Q.splice(F,0,new c(2,H,z)),N=z}else++z;N<R&&Q.splice(F,0,new c(1,N,R))}return"ltr"==t&&(1==Q[0].level&&(L=e.match(/^\s+/))&&(Q[0].from=L[0].length,Q.unshift(new c(0,0,L[0].length))),1==K(Q).level&&(L=e.match(/\s+$/))&&(K(Q).to-=L[0].length,Q.push(new c(0,u-L[0].length,u)))),"rtl"==t?Q.reverse():Q}}();
// Get the bidi ordering for the given line (and cache it). Returns
// false for lines that are fully left-to-right, and an array of
// BidiSpan objects otherwise.
function fe(e,t){var n=e.order;return null==n&&(n=e.order=he(e.text,t)),n}
// EVENT HANDLING
// Lightweight event framework. on/off also work on DOM nodes,
// registering native DOM handlers.
var de=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||de).concat(n)}};function ge(e,t){return e._handlers&&e._handlers[t]||de}function me(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=F(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function ve(e,t/*, values...*/){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}
// The DOM events that CodeMirror handles can be overridden by
// registering a (non-DOM) handler on the editor for the event name,
// and preventDefault-ing the event in that handler.
function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),_e(t)||t.codemirrorIgnore}function Ae(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==F(n,t[r])&&n.push(t[r])}function be(e,t){return ge(e,t).length>0}
// Add on and off methods to a constructor's prototype, to make
// registering events on such objects more convenient.
function we(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}
// Due to the fact that we still support jurassic IE versions, some
// compatibility wrappers are needed.
function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ie(e){xe(e),Ce(e)}function Ee(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}
// Detect drag-and-drop
var Se,Be,Me=function(){
// There is *some* kind of drag-and-drop support in IE6-8, but I
// couldn't get it to work yet.
if(o&&s<9)return!1;var e=B("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Se){var t=B("span","​");S(e,B("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Se?B("span","​"):B("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}
// Feature-detect IE's crummy client rect reporting for bidi text
function Oe(e){if(null!=Be)return Be;var t=S(e,document.createTextNode("AخA")),n=I(t,0,1).getBoundingClientRect(),r=I(t,1,2).getBoundingClientRect();return k(e),!(!n||n.left==n.right)&&(Be=r.right-n.right<3);// Safari returns null in some cases (#2780)
}
// See if "".split is the broken IE version, if so, provide an
// alternative way to split lines.
var De,Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var a=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),t+=o+1):(n.push(a),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Qe="oncopy"in(De=B("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Re=null;function je(e){if(null!=Re)return Re;var t=S(e,B("span","x")),n=t.getBoundingClientRect(),r=I(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}
// Known modes, by name and by MIME
var Ne={},Fe={};
// Extra arguments are stored as the mode's dependencies, which is
// used by (legacy) mechanisms like loadmode.js to automatically
// load a mode. (Preferred mechanism is the require/define calls.)
function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function He(e,t){Fe[e]=t}
// Given a MIME type, a {name, ...options} config object, or a name
// string, return a mode config object.
function Ue(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}
// Given a mode spec (anything that resolveMode accepts), find and
// initialize an actual mode object.
function Ge(e,t){t=Ue(t);var n=Ne[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var i=Ve[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}
// This can be used to attach properties to mode objects from
// outside the actual mode definition.
var Ve={};function We(e,t){R(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}
// Given a mode and a state (for that mode), find the inner mode and
// state at the position that the state refers to.
function Ye(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}
// STRING STREAM
// Fed to the mode parsers, provides helper functions to make
// parsers more succinct.
var $e=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};
// Find the line object corresponding to the given line number.
function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}
// Get the part of a document between two positions, as an array of
// strings.
function Xe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i})),r}
// Get the lines between from and to, as array of strings.
function Ze(e,t,n){var r=[];// iter aborts when callback returns truthy value
return e.iter(t,n,(function(e){r.push(e.text)})),r}
// Update the height of a line, propagating the height change
// upwards to parent nodes.
function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}
// Given a line object, find its line number by walking up through
// its parent links.
function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=F(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}
// Find the line at the given vertical position, using the height
// information in the document tree.
function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue e}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}
// A Pos instance represents a position within the text.
function at(e,t,n){if(void 0===n&&(n=null),!(this instanceof at))return new at(e,t,n);this.line=e,this.ch=t,this.sticky=n}
// Compare two positions, return 0 if they are the same, a negative
// number when a is less, and a positive number otherwise.
function ot(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function ct(e){return at(e.line,e.ch)}function lt(e,t){return ot(e,t)<0?t:e}function ut(e,t){return ot(e,t)<0?e:t}
// Most of the external API clips given positions to make sure they
// actually exist within the document.
function ht(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return at(e.first,0);var n=e.first+e.size-1;return t.line>n?at(n,Je(e,n).text.length):dt(t,Je(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?at(e.line,t):n<0?at(e.line,0):e}function pt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}$e.prototype.eol=function(){return this.pos>=this.string.length},$e.prototype.sol=function(){return this.pos==this.lineStart},$e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$e.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},$e.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$e.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},$e.prototype.skipToEnd=function(){this.pos=this.string.length},$e.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$e.prototype.backUp=function(e){this.pos-=e},$e.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},$e.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},$e.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},$e.prototype.current=function(){return this.string.slice(this.start,this.pos)},$e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};
// Compute a style array (an array starting with a mode generation
// -- for invalidation -- followed by pairs of end positions and
// style strings), which is used to highlight the tokens on the
// line.
function vt(e,t,n,r){
// A styles array always starts with a number identifying the
// mode/overlays that it is based on (for easy invalidation).
var i=[e.state.modeGen],a={};
// Compute the base array of styles
Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){
// Ensure there's a token end at the current position, and that i points at it
for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+" ":"")+"overlay "+t}}),a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0
// Run overlays, adjust style array.
;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=At(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),a=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function At(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(r,!0,t);var a=kt(e,t,n),o=a>r.first&&Je(r,a-1).stateAfter,s=o?mt.fromSaved(r,o,a):new mt(r,Ke(r.mode),a);return r.iter(a,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}
// Lightweight form of highlight -- proceed over this line and
// update state, but don't save a style array. Used for lines that
// aren't currently visible.
function bt(e,t,n,r){var i=e.doc.mode,a=new $e(t,e.options.tabSize,n);for(a.start=a.pos=r||0,""==t&&wt(i,n.state);!a.eol();)xt(i,a,n.state),a.start=a.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ye(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function xt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ye(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof gt?new mt(e,qe(e.mode,t.state),n,t.lookAhead):new mt(e,qe(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Ct=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};
// Utility for getTokenAt and getLineTokens
function _t(e,t,n,r){var i,a,o=e.doc,s=o.mode,c=Je(o,(t=ft(o,t)).line),l=At(e,t.line,n),u=new $e(c.text,e.options.tabSize,l);for(r&&(a=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=xt(s,u,l.state),r&&a.push(new Ct(u,i,qe(o.mode,l.state)));return r?a:new Ct(u,i,l.state)}function It(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}
// Run the given mode's parser over a line, calling f for each token.
function Et(e,t,n,r,i,a,o){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var c,l=0,u=null,h=new $e(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&It(wt(n,r.state),a);!h.eol();){if(h.pos>e.options.maxHighlightLength?(s=!1,o&&bt(e,t,r,h.pos),h.pos=t.length,c=null):c=It(xt(n,h,r.state,f),a),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;l<h.start;)i(l=Math.min(h.start,l+5e3),u);u=c}h.start=h.pos}for(;l<h.pos;){
// Webkit seems to refuse to render text nodes longer than 57444
// characters, and returns inaccurate measurements in nodes
// starting around 5000 chars.
var p=Math.min(h.pos,l+5e3);i(p,u),l=p}}
// Finds the line to start with when starting a parse. Tries to
// find a line with a stateAfter, so that it can start with a
// valid state. If that fails, it returns the line with the
// smallest indentation, which tends to need the least context to
// parse correctly.
function kt(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=Je(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof gt?l.lookAhead:0)<=a.modeFrontier))return s;var u=j(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function St(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Je(e,r).stateAfter;
// change is on 3
// state on line 1 looked ahead 2 -- so saw 3
// test 1 + 2 < 3 should cover this
if(i&&(!(i instanceof gt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}
// Optimize some code when these features are not used.
var Bt=!1,Mt=!1;function Tt(){Bt=!0}function Ot(){Mt=!0}
// TEXTMARKER SPANS
function Dt(e,t,n){this.marker=e,this.from=t,this.to=n}
// Search an array of spans for a span matching the given marker.
function Pt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}
// Remove a span from an array, returning undefined if no spans are
// left (we don't store arrays for lines without spans).
function Lt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}
// Add a span to a line.
function Qt(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}
// Used for the algorithm that adjusts markers for a change in the
// document. These functions cut an array of spans at a given
// character position, returning an array of remaining chunks (or
// undefined if nothing remains).
function Rt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&"bookmark"==o.type&&(!n||!a.marker.insertLeft)){var s=null==a.to||(o.inclusiveRight?a.to>=t:a.to>t);(r||(r=[])).push(new Dt(o,a.from,s?null:a.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(null==a.to||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t);(r||(r=[])).push(new Dt(o,s?null:a.from-t,null==a.to?null:a.to-t))}}return r}
// Given a change object, compute the new set of marker spans that
// cover the line in which the change took place. Removes spans
// entirely within the change, reconnects spans belonging to the
// same marker that appear on both sides of the change, and cuts off
// spans partially within the change. Returns an array of span
// arrays with one element for each line in (after) the change.
function Nt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Je(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Je(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=0==ot(t.from,t.to),s=Rt(n,i,o),c=jt(r,a,o),l=1==t.text.length,u=K(t.text).length+(l?i:0);
// Get the spans that 'stick out' on both sides
if(s)
// Fix up .to properties of first
for(var h=0;h<s.length;++h){var f=s[h];if(null==f.to){var d=Pt(c,f.marker);d?l&&(f.to=null==d.to?null:d.to+u):f.to=i}}if(c)
// Fix up .from in last (or move them into first in case of sameLine)
for(var p=0;p<c.length;++p){var g=c[p];null!=g.to&&(g.to+=u),null==g.from?Pt(s,g.marker)||(g.from=u,l&&(s||(s=[])).push(g)):(g.from+=u,l&&(s||(s=[])).push(g))}
// Make sure we didn't create any zero-length spans
s&&(s=Ft(s)),c&&c!=s&&(c=Ft(c));var m=[s];if(!l){
// Fill gap with whole-line-spans
var v,y=t.text.length-2;if(y>0&&s)for(var A=0;A<s.length;++A)null==s[A].to&&(v||(v=[])).push(new Dt(s[A].marker,null,null));for(var b=0;b<y;++b)m.push(v);m.push(c)}return m}
// Remove spans that are empty and don't have a clearWhenEmpty
// option of false.
function Ft(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}
// Used to 'clip' out readOnly ranges when making a change.
function zt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=F(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(ot(l.to,s.from)<0||ot(l.from,s.to)>0)){var u=[c,1],h=ot(l.from,s.from),f=ot(l.to,s.to);(h<0||!o.inclusiveLeft&&!h)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}
// Connect or disconnect spans from a line.
function Ht(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ut(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}
// Helpers used when computing which overlapping collapsed span
// counts as the larger one.
function Gt(e){return e.inclusiveLeft?-1:0}function Vt(e){return e.inclusiveRight?1:0}
// Returns a number indicating which of two overlapping collapsed
// spans is larger (and thus includes the other). Falls back to
// comparing ids when the spans cover exactly the same range.
function Wt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),a=ot(r.from,i.from)||Gt(e)-Gt(t);if(a)return-a;var o=ot(r.to,i.to)||Vt(e)-Vt(t);return o||t.id-e.id}
// Find out whether a line ends or starts in a collapsed span. If
// so, return the marker for that span.
function qt(e,t){var n,r=Mt&&e.markedSpans;if(r)for(var i=void 0,a=0;a<r.length;++a)(i=r[a]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Wt(n,i.marker)<0)&&(n=i.marker);return n}function Yt(e){return qt(e,!0)}function Kt(e){return qt(e,!1)}function $t(e,t){var n,r=Mt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var a=r[i];a.marker.collapsed&&(null==a.from||a.from<t)&&(null==a.to||a.to>t)&&(!n||Wt(n,a.marker)<0)&&(n=a.marker)}return n}
// Test whether there exists a collapsed span that partially
// overlaps (covers the start or end, but not both) of a new span.
// Such overlap is not allowed.
function Jt(e,t,n,r,i){var a=Je(e,t),o=Mt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=ot(l.from,n)||Gt(c.marker)-Gt(i),h=ot(l.to,r)||Vt(c.marker)-Vt(i);if(!(u>=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?ot(l.to,n)>=0:ot(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?ot(l.from,r)<=0:ot(l.from,r)<0)))return!0}}}
// A visual line is a line as drawn on the screen. Folding, for
// example, can cause multiple logical lines to appear on the same
// visual line. This finds the start of the visual line that the
// given line is part of (usually that is the line itself).
function Xt(e){for(var t;t=Yt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}
// Returns an array of logical lines that continue the visual line
// started by the argument, or undefined if there are no such lines.
function en(e){for(var t,n;t=Kt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}
// Get the line number of the start of the visual line that the
// given line number is part of.
function tn(e,t){var n=Je(e,t),r=Xt(n);return n==r?t:tt(r)}
// Get the line number of the start of the next visual line after
// the given line.
function nn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!rn(e,r))return t;for(;n=Kt(r);)r=n.find(1,!0).line;return tt(r)+1}
// Compute whether a line is hidden. Lines count as hidden when they
// are part of a visual line that starts with another line, or when
// they are entirely covered by collapsed, non-widget span.
function rn(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&an(e,t,r))return!0}}function an(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return an(e,r.line,Pt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if((i=t.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&an(e,t,i))return!0}
// Find the height above the given line.
function on(e){for(var t=0,n=(e=Xt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;a=(n=a).parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}
// Compute the character length of a line, taking into account
// collapsed ranges (see markText) that might hide parts, and join
// other lines onto it.
function sn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Yt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Kt(r);){var a=t.find(0,!0);n-=r.text.length-a.from.ch,n+=(r=a.to.line).text.length-a.to.ch}return n}
// Find the longest line in the document.
function cn(e){var t=e.display,n=e.doc;t.maxLine=Je(n,n.first),t.maxLineLength=sn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=sn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}
// LINE DATA STRUCTURE
// Line objects. These hold state related to a line, including
// highlighting info (the styles array).
var ln=function(e,t,n){this.text=e,Ut(this,t),this.height=n?n(this):1};
// Change the content (text, markers) of a line. Automatically
// invalidates cached information and tries to re-estimate the
// line's height.
function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Ut(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}
// Detach a line from the document tree and its markers.
function hn(e){e.parent=null,Ht(e)}
// Convert a style as returned by a mode (either null, or a string
// containing one or more styles) to a CSS style. This is cached,
// and also looks for line-wide styles.
ln.prototype.lineNo=function(){return tt(this)},we(ln);var fn={},dn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}
// Render the DOM representation of the text of a line. Also builds
// up a 'line map', which points at the DOM nodes that represent
// specific stretches of text, and is used by the measuring code.
// The returned object contains the DOM node, this map, and
// information about line-wide styles that were set by the mode.
function gn(e,t){
// The padding-right forces the element to have a 'border', which
// is needed on Webkit to be able to get line-level bounding
// rectangles for it (in measureChar).
var n=M("span",null,null,c?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};
// Iterate over the logical lines that make up this visual line.
for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=vn,
// Optionally wire in some hacks into the token-rendering
// algorithm, to deal with browser quirks.
Oe(e.display.measure)&&(o=fe(a,e.doc.direction))&&(r.addToken=An(r.addToken,o)),r.map=[],wn(a,r,yt(e,a,t!=e.display.externalMeasured&&tt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=P(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=P(a.styleClasses.textClass,r.textClass||""))),
// Ensure at least a single node is present, for measuring.
0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),
// Store the map and a cache object for the current logical line
0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}
// See issue #2901
if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function mn(e){var t=B("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}
// Build up the DOM representation for a single token, and add it to
// the line map. Takes care to render special characters separately.
function vn(e,t,n,r,i,a,c){if(t){var l,u=e.splitSpaces?yn(t,e.trailingSpace):t,h=e.cm.state.specialChars,f=!1;if(h.test(t)){l=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var p=h.exec(t),g=p?p.index-d:t.length-d;if(g){var m=document.createTextNode(u.slice(d,d+g));o&&s<9?l.appendChild(B("span",[m])):l.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;d+=g+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,A=y-e.col%y;(v=l.appendChild(B("span",Y(A),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=A}else"\r"==p[0]||"\n"==p[0]?((v=l.appendChild(B("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),o&&s<9?l.appendChild(B("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,l),o&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||a){var b=n||"";r&&(b+=r),i&&(b+=i);var w=B("span",[l],b,a);if(c)for(var x in c)c.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,c[x]);return e.content.appendChild(w)}e.content.appendChild(l)}}
// Change some spaces to NBSP to prevent the browser from collapsing
// trailing spaces at the end of a line when rendering text (issue #1362).
function yn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var a=e.charAt(i);" "!=a||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(a=" "),r+=a,n=" "==a}return r}
// Work around nonsense dimensions being reported for stretches of
// right-to-left text.
function An(e,t){return function(n,r,i,a,o,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(
// Find the part that overlaps with the start of this text
var h=void 0,f=0;f<t.length&&!((h=t[f]).to>l&&h.from<=l);f++);if(h.to>=u)return e(n,r,i,a,o,s,c);e(n,r.slice(0,h.to-l),i,a,null,s,c),a=null,r=r.slice(h.to-l),l=h.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}
// Outputs a number of spans to make up a line, taking highlighting
// and marked text into account.
function wn(e,t,n){var r=e.markedSpans,i=e.text,a=0;if(r)for(var o,s,c,l,u,h,f,d=i.length,p=0,g=1,m="",v=0;;){if(v==p){// Update current marker set
c=l=u=s="",f=null,h=null,v=1/0;for(var y=[],A=void 0,b=0;b<r.length;++b){var w=r[b],x=w.marker;if("bookmark"==x.type&&w.from==p&&x.widgetNode)y.push(x);else if(w.from<=p&&(null==w.to||w.to>p||x.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,l=""),x.className&&(c+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(u+=" "+x.startStyle),x.endStyle&&w.to==v&&(A||(A=[])).push(x.endStyle,w.to),
// support for the old title property
// https://github.com/codemirror/CodeMirror/pull/5673
x.title&&((f||(f={})).title=x.title),x.attributes)for(var C in x.attributes)(f||(f={}))[C]=x.attributes[C];x.collapsed&&(!h||Wt(h.marker,x)<0)&&(h=w)}else w.from>p&&v>w.from&&(v=w.from)}if(A)for(var _=0;_<A.length;_+=2)A[_+1]==v&&(l+=" "+A[_]);if(!h||h.from==p)for(var I=0;I<y.length;++I)bn(t,0,y[I]);if(h&&(h.from||0)==p){if(bn(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var E=Math.min(d,v);;){if(m){var k=p+m.length;if(!h){var S=k>E?m.slice(0,E-p):m;t.addToken(t,S,o?o+c:c,u,p+S.length==v?l:"",s,f)}if(k>=E){m=m.slice(E-p),p=E;break}p=k,u=""}m=i.slice(a,a=n[g++]),o=pn(n[g++],t.cm.options)}}else for(var B=1;B<n.length;B+=2)t.addToken(t,i.slice(a,a=n[B]),pn(n[B+1],t.cm.options))}
// These objects are used to represent the visible (currently drawn)
// part of the document. A LineView may correspond to multiple
// logical lines, if those are connected by collapsed ranges.
function xn(e,t,n){
// The starting line
this.line=t,
// Continuing lines, if any
this.rest=en(t),
// Number of logical lines in this visual line
this.size=this.rest?tt(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}
// Create a range of LineView objects for the given lines.
function Cn(e,t,n){for(var r,i=[],a=t;a<n;a=r){var o=new xn(e.doc,Je(e.doc,a),a);r=a+o.size,i.push(o)}return i}var _n=null;function In(e){_n?_n.ops.push(e):e.ownsGroup=_n={ops:[e],delayedCallbacks:[]}}function En(e){
// Calls delayed callbacks and cursorActivity handlers until no
// new ones appear
var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function kn(e,t){var n=e.ownsGroup;if(n)try{En(n)}finally{_n=null,t(n)}}var Sn=null;
// Often, we want to signal events at a point where we are in the
// middle of some work, but don't want the handler to start calling
// other methods on the editor, which might be in an inconsistent
// state or simply not expect any other events to happen.
// signalLater looks whether there are any handlers, and schedules
// them to be executed when the last operation ends, or, if no
// operation is active, when a timeout fires.
function Bn(e,t/*, values...*/){var n=ge(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);_n?r=_n.delayedCallbacks:Sn?r=Sn:(r=Sn=[],setTimeout(Mn,0));for(var a=function(e){r.push((function(){return n[e].apply(null,i)}))},o=0;o<n.length;++o)a(o)}}function Mn(){var e=Sn;Sn=null;for(var t=0;t<e.length;++t)e[t]()}
// When an aspect of a line changes, a string is added to
// lineView.changes. This updates the relevant part of the line's
// DOM structure.
function Tn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var a=t.changes[i];"text"==a?Ln(e,t):"gutter"==a?Rn(e,t,n,r):"class"==a?Qn(e,t):"widget"==a&&jn(e,t,r)}t.changes=null}
// Lines with gutter elements, widgets or a background class need to
// be wrapped, and have the extra elements added to the wrapper div
function On(e){return e.node==e.text&&(e.node=B("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&s<8&&(e.node.style.zIndex=2)),e.node}function Dn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=On(t);t.background=r.insertBefore(B("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}
// Wrapper around buildLineContent which will reuse the structure
// in display.externalMeasured when possible.
function Pn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):gn(e,t)}
// Redraw the line's text. Interacts with the background and text
// classes because the mode may output tokens that influence these
// classes.
function Ln(e,t){var n=t.text.className,r=Pn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Qn(e,t)):n&&(t.text.className=n)}function Qn(e,t){Dn(e,t),t.line.wrapClass?On(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Rn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=On(t);t.gutterBackground=B("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var o=On(t),s=t.gutter=B("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),o.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(B("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var c=0;c<e.display.gutterSpecs.length;++c){var l=e.display.gutterSpecs[c].className,u=a.hasOwnProperty(l)&&a[l];u&&s.appendChild(B("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function jn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);Fn(e,t,n)}
// Build a line's DOM representation from scratch
function Nn(e,t,n,r){var i=Pn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Qn(e,t),Rn(e,t,n,r),Fn(e,t,r),t.node}
// A lineView may contain multiple logical lines (when merged by
// collapsed spans). The widgets for all of them need to be drawn.
function Fn(e,t,n){if(zn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)zn(e,t.rest[r],t,n,!1)}function zn(e,t,n,r,i){if(t.widgets)for(var a=On(n),o=0,s=t.widgets;o<s.length;++o){var c=s[o],l=B("div",[c.node],"CodeMirror-linewidget");c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),Hn(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?a.insertBefore(l,n.gutter||n.text):a.appendChild(l),Bn(c,"redraw")}}function Hn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Un(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!T(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),S(t.display.measure,B("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}
// Return true when the given mouse event happened in a widget
function Gn(e,t){for(var n=Ee(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}
// POSITION MEASUREMENT
function Vn(e){return e.lineSpace.offsetTop}function Wn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function qn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=S(e.measure,B("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Yn(e){return z-e.display.nativeBarWidth}function Kn(e){return e.display.scroller.clientWidth-Yn(e)-e.display.barWidth}function $n(e){return e.display.scroller.clientHeight-Yn(e)-e.display.barHeight}
// Ensure the lineView.wrapping.heights array is populated. This is
// an array of bottom offsets for the lines that make up a drawn
// line. When lineWrapping is on, there might be more than one
// height.
function Jn(e,t,n){var r=e.options.lineWrapping,i=r&&Kn(e);if(!t.measure.heights||r&&t.measure.width!=i){var a=t.measure.heights=[];if(r){t.measure.width=i;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var c=o[s],l=o[s+1];Math.abs(c.bottom-l.bottom)>2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}
// Find a line map (mapping character offsets to text nodes) and a
// measurement cache for the given line number. (A line view might
// contain multiple lines when collapsed ranges are present.)
function Xn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}
// Render a line into the hidden node display.externalMeasured. Used
// when measurement is needed for a line that's not in the viewport.
function Zn(e,t){var n=tt(t=Xt(t)),r=e.display.externalMeasured=new xn(e.doc,t,n);r.lineN=n;var i=r.built=gn(e,r);return r.text=i.pre,S(e.display.lineMeasure,i.pre),r}
// Get a {top, bottom, left, right} box (in line-local coordinates)
// for a given character.
function er(e,t,n,r){return rr(e,nr(e,t),n,r)}
// Find a line view that corresponds to the given line number.
function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Qr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}
// Measurement can be split in two steps, the set-up work that
// applies to the whole line, and the measurement of the actual
// character. Functions like coordsChar, that need to do a lot of
// measurements in a row, can thus ensure that the set-up work is
// only done once.
function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(Tn(e,r,n,Tr(e)),e.curOp.forceUpdate=!0),r||(r=Zn(e,t));var i=Xn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}
// Given a prepared measurement object, measures the position of an
// actual character (or fetches it from the cache).
function rr(e,t,n,r,i){t.before&&(n=-1);var a,o=n+(r||"");return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Jn(e,t.view,t.rect),t.hasHeights=!0),(a=cr(e,t,n,r)).bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var ir,ar={left:0,right:0,top:0,bottom:0};function or(e,t,n){
// First, search the line map for the text node corresponding to,
// or closest to, the target character.
for(var r,i,a,o,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,a=1,o="left"):t<c?a=1+(i=t-s):(l==e.length-3||t==c&&e[l+3]>t)&&(i=(a=c-s)-1,t>=c&&(o="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],o="left";if("right"==n&&i==c-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],o="right";break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:c}}function sr(e,t){var n=ar;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function cr(e,t,n,r){var i,a=or(t.map,n,r),c=a.node,l=a.start,u=a.end,h=a.collapse;if(3==c.nodeType){// If it is a text node, use a range to retrieve the coordinates.
for(var f=0;f<4;f++){// Retry a maximum of 4 times when nonsense rectangles are returned
for(;l&&ae(t.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+u<a.coverEnd&&ae(t.line.text.charAt(a.coverStart+u));)++u;if((i=o&&s<9&&0==l&&u==a.coverEnd-a.coverStart?c.parentNode.getBoundingClientRect():sr(I(c,l,u).getClientRects(),r)).left||i.right||0==l)break;u=l,l-=1,h="right"}o&&s<11&&(i=lr(e.display.measure,i))}else{var d;// If it is a widget, simply get the box for the whole widget.
l>0&&(h=r="right"),i=e.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(o&&s<9&&!l&&(!i||!i.left&&!i.right)){var p=c.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Mr(e.display),top:p.top,bottom:p.bottom}:ar}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,A=0;A<y.length-1&&!(v<y[A]);A++);var b=A?y[A-1]:0,w=y[A],x={left:("right"==h?i.right:i.left)-t.rect.left,right:("left"==h?i.left:i.right)-t.rect.left,top:b,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=g,x.rbottom=m),x}
// Work around problem with bounding client rects on ranges being
// returned incorrectly when zoomed on IE10 and below.
function lr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function hr(e){e.display.externalMeasure=null,k(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function fr(e){hr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function dr(){
// Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206
// which causes page_Offset and bounding client rects to use
// different reference viewports and invalidate our calculations.
return u&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pr(){return u&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Un(e.widgets[n]));return t}
// Converts a {top, bottom, left, right} box from line-local
// coordinates into another coordinate system. Context may be one of
// "line", "div" (display.lineDiv), "local"./null (editor), "window",
// or "page".
function mr(e,t,n,r,i){if(!i){var a=gr(t);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var o=on(t);if("local"==r?o+=Vn(e.display):o-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==r?0:pr());var c=s.left+("window"==r?0:dr());n.left+=c,n.right+=c}return n.top+=o,n.bottom+=o,n}
// Coverts a box from "div" coords to another coordinate system.
// Context may be "window", "page", "div", or "local"./null.
function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;
// First move into "page" coordinate system
if("page"==n)r-=dr(),i-=pr();else if("local"==n||!n){var a=e.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function yr(e,t,n,r,i){return r||(r=Je(e.doc,t.line)),mr(e,r,er(e,r,t.ch,i),n)}
// Returns a box for a given cursor position, which may have an
// 'other' property containing the position of the secondary cursor
// on a bidi boundary.
// A cursor Pos(line, char, "before") is on the same visual line as `char - 1`
// and after `char - 1` in writing order of `char - 1`
// A cursor Pos(line, char, "after") is on the same visual line as `char`
// and before `char` in writing order of `char`
// Examples (upper-case letters are RTL, lower-case are LTR):
//     Pos(0, 1, ...)
//     before   after
// ab     a|b     a|b
// aB     a|B     aB|
// Ab     |Ab     A|b
// AB     B|A     B|A
// Every position after the last character on a line is considered to stick
// to the last character on the line.
function Ar(e,t,n,r,i,a){function o(t,o){var s=rr(e,i,t,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,mr(e,r,s,n)}r=r||Je(e.doc,t.line),i||(i=nr(e,r));var s=fe(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return o("before"==l?c-1:c,"before"==l);function u(e,t,n){return o(n?e-1:e,1==s[t].level!=n)}var h=ue(s,c,l),f=le,d=u(c,h,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}
// Used to cheaply estimate the coordinates for a position. Used for
// intermediate scroll updates.
function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Mr(e.display)*t.ch);var r=Je(e.doc,t.line),i=on(r)+Vn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}
// Positions returned by coordsChar contain some extra information.
// xRel is the relative x position of the input coordinates compared
// to the found position (so xRel > 0 means the coordinates are to
// the right of the character position, for example). When outside
// is true, that means the coordinates lie outside the line's
// vertical range.
function wr(e,t,n,r,i){var a=at(e,t,n);return a.xRel=i,r&&(a.outside=!0),a}
// Compute the character position closest to the given coordinates.
// Input must be lineSpace-local ("div" coordinate system).
function xr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,!0,-1);var i=nt(r,n),a=r.first+r.size-1;if(i>a)return wr(r.first+r.size-1,Je(r,a).text.length,null,!0,1);t<0&&(t=0);for(var o=Je(r,i);;){var s=Er(e,o,i,t,n),c=$t(o,s.ch+(s.xRel>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=Je(r,i=l.line)}}function Cr(e,t,n,r){r-=gr(t);var i=t.text.length,a=se((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:a,end:i=se((function(t){return rr(e,n,t).top>r}),a,i)}}function _r(e,t,n,r){return n||(n=nr(e,t)),Cr(e,t,n,mr(e,t,rr(e,n,r),"line").top)}
// Returns true if the given side of a box is after the given
// coordinates, in top-to-bottom, left-to-right order.
function Ir(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Er(e,t,n,r,i){
// Move y into line-local coordinate space
i-=on(t);var a=nr(e,t),o=gr(t),s=0,c=t.text.length,l=!0,u=fe(t,e.doc.direction);
// When directly calling `measureCharPrepared`, we have to adjust
// for the widgets at this line.
// If the line isn't plain left-to-right text, first figure out
// which bidi section the coordinates fall into.
if(u){var h=(e.options.lineWrapping?Sr:kr)(e,t,n,a,u,r,i);
// The awkward -1 offsets are needed because findFirst (called
// on these below) will treat its first bound as inclusive,
// second as exclusive, but we want to actually address the
// characters in the part's range
s=(l=1!=h.level)?h.from:h.to-1,c=l?h.to:h.from-1}
// A binary search to find the first character whose bounding box
// starts after the coordinates. If we run across any whose box wrap
// the coordinates, store that.
var f,d,p=null,g=null,m=se((function(t){var n=rr(e,a,t);return n.top+=o,n.bottom+=o,!!Ir(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)}),s,c),v=!1;
// If a box around the coordinates was found, use that
if(g){
// Distinguish coordinates nearer to the left or right side of the box
var y=r-g.left<g.right-r,A=y==l;m=p+(A?0:1),d=A?"after":"before",f=y?g.left:g.right}else{
// (Adjust for extended bound, if necessary.)
l||m!=c&&m!=s||m++,
// To determine which side to associate with, get the box to the
// left of the character and compare it's vertical position to the
// coordinates
d=0==m?"after":m==t.text.length?"before":rr(e,a,m-(l?1:0)).bottom+o<=i==l?"after":"before";
// Now get accurate coordinates for this place, in order to get a
// base X position
var b=Ar(e,at(n,m,d),"line",t,a);f=b.left,v=i<b.top||i>=b.bottom}return wr(n,m=oe(t.text,m,1),d,v,r-f)}function kr(e,t,n,r,i,a,o){
// Bidi parts are sorted left-to-right, and in a non-line-wrapping
// situation, we can take this ordering to correspond to the visual
// ordering. This finds the first part whose end is after the given
// coordinates.
var s=se((function(s){var c=i[s],l=1!=c.level;return Ir(Ar(e,at(n,l?c.to:c.from,l?"before":"after"),"line",t,r),a,o,!0)}),0,i.length-1),c=i[s];
// If this isn't the first part, the part's start is also after
// the coordinates, and the coordinates aren't on the same line as
// that start, move one part back.
if(s>0){var l=1!=c.level,u=Ar(e,at(n,l?c.from:c.to,l?"after":"before"),"line",t,r);Ir(u,a,o,!0)&&u.top>o&&(c=i[s-1])}return c}function Sr(e,t,n,r,i,a,o){
// In a wrapped line, rtl text on wrapping boundaries can do things
// that don't correspond to the ordering in our `order` array at
// all, so a binary search doesn't work, and we want to return a
// part that only spans one line so that the binary search in
// coordsCharInner is safe. As such, we first find the extent of the
// wrapped line, and then do a flat search in which we discard any
// spans that aren't on the line.
var s=Cr(e,t,r,o),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,h=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=l||d.to<=c)){var p=rr(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,g=p<a?a-p+1e9:p-a;(!u||h>g)&&(u=d,h=g)}}return u||(u=i[i.length-1]),
// Clip the part to the wrapped line.
u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}
// Compute the default text height.
function Br(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=B("pre");
// Measure a bunch of lines, for browsers that compute
// fractional heights.
for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(B("br"));ir.appendChild(document.createTextNode("x"))}S(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),k(e.measure),n||1}
// Compute the default character width.
function Mr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=B("span","xxxxxxxxxx"),n=B("pre",[t]);S(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}
// Do a bulk-read of the DOM positions and sizes needed to draw the
// view, so that we don't interleave reading and writing to the DOM.
function Tr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=e.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Or(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}
// Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
// but using getBoundingClientRect to get a sub-pixel-accurate
// result.
function Or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}
// Returns a function that estimates the height of a line, to use as
// first approximation until the line becomes visible (and is thus
// properly measurable).
function Dr(e){var t=Br(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*t:a+t}}function Pr(e){var t=e.doc,n=Dr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}
// Given a mouse event, find the corresponding position. If liberal
// is false, it checks whether a gutter or scrollbar was clicked,
// and returns null if it was. forRect is used by rectangular
// selections, and tries to estimate a character position even for
// coordinates beyond the right of the text.
function Lr(e,t,n,r){var i=e.display;if(!n&&"true"==Ee(t).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();
// Fails unpredictably on IE[67] when mouse is dragged around quickly.
try{a=t.clientX-s.left,o=t.clientY-s.top}catch(t){return null}var c,l=xr(e,a,o);if(r&&1==l.xRel&&(c=Je(e.doc,l.line).text).length==l.ch){var u=j(c,c.length,e.options.tabSize)-c.length;l=at(l.line,Math.max(0,Math.round((a-qn(e.display).left)/Mr(e.display))-u))}return l}
// Find the view element corresponding to a given line. Return null
// when the line isn't visible.
function Qr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}
// Updates the display.view data structure for a given change to the
// document. From and to are in pre-change coordinates. Lendiff is
// the amount of lines added or subtracted by the change. This is
// used for changes that span multiple lines, or change the way
// lines are divided into visual lines. regLineChange (below)
// registers single-line changes.
function Rr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)// Change after
Mt&&tn(e.doc,t)<i.viewTo&&Nr(e);else if(n<=i.viewFrom)// Change before
Mt&&nn(e.doc,n+r)>i.viewFrom?Nr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)// Full overlap
Nr(e);else if(t<=i.viewFrom){// Top overlap
var a=Fr(e,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):Nr(e)}else if(n>=i.viewTo){// Bottom overlap
var o=Fr(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Nr(e)}else{// Gap in the middle
var s=Fr(e,t,t,-1),c=Fr(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(Cn(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Nr(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}
// Register a change to a single line. Type must be one of "text",
// "gutter", "class", "widget"
function jr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var a=r.view[Qr(e,t)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==F(o,n)&&o.push(n)}}}
// Clear the view.
function Nr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fr(e,t,n,r){var i,a=Qr(e,t),o=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:a,lineN:n};for(var s=e.display.viewFrom,c=0;c<a;c++)s+=o[c].size;if(s!=t){if(r>0){if(a==o.length-1)return null;i=s+o[a].size-t,a++}else i=s-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}
// Force the view to cover a given range, adding empty view element
// or clipping off existing ones as needed.
function zr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Qr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Cn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Qr(e,n)))),r.viewTo=n}
// Count the number of lines in the view whose DOM representation is
// out of date (or nonexistent).
function Hr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ur(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Gr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(t||o!=n.sel.primIndex){var s=n.sel.ranges[o];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();(c||e.options.showCursorWhenSelecting)&&Vr(e,s.head,i),c||qr(e,s,a)}}return r}
// Draws a cursor for the given range
function Vr(e,t,n){var r=Ar(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(B("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){
// Secondary cursor, shown when on a 'jump' in bi-directional text
var a=n.appendChild(B("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Wr(e,t){return e.top-t.top||e.left-t.left}
// Draws the given range as a highlighted selection
function qr(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),o=qn(e.display),s=o.left,c=Math.max(r.sizerWidth,Kn(e)-r.sizer.offsetLeft)-o.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(B("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n                             height: "+(r-t)+"px"))}function h(t,n,r){var a,o,h=Je(i,t),f=h.text.length;function d(n,r){return yr(e,at(t,n),"div",h,r)}function p(t,n,r){var i=_r(e,h,null,t),a="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),a)[a]}var g=fe(h,i.direction);return ce(g,n||0,null==r?f:r,(function(e,t,i,h){var m="ltr"==i,v=d(e,m?"left":"right"),y=d(t-1,m?"right":"left"),A=null==n&&0==e,b=null==r&&t==f,w=0==h,x=!g||h==g.length-1;if(y.top-v.top<=3){// Single line
var C=(l?b:A)&&x,_=(l?A:b)&&w?s:(m?v:y).left,I=C?c:(m?y:v).right;u(_,v.top,I-_,v.bottom)}else{// Multiple lines
var E,k,S,B;m?(E=l&&A&&w?s:v.left,k=l?c:p(e,i,"before"),S=l?s:p(t,i,"after"),B=l&&b&&x?c:y.right):(E=l?p(e,i,"before"):s,k=!l&&A&&w?c:v.right,S=!l&&b&&x?s:y.left,B=l?p(t,i,"after"):c),u(E,v.top,k-E,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(S,y.top,B-S,y.bottom)}(!a||Wr(v,a)<0)&&(a=v),Wr(y,a)<0&&(a=y),(!o||Wr(v,o)<0)&&(o=v),Wr(y,o)<0&&(o=y)})),{start:a,end:o}}var f=t.from(),d=t.to();if(f.line==d.line)h(f.line,f.ch,d.ch);else{var p=Je(i,f.line),g=Je(i,d.line),m=Xt(p)==Xt(g),v=h(f.line,f.ch,m?p.text.length+1:null).end,y=h(d.line,m?0:null,d.ch).start;m&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(a)}
// Cursor-blinking
function Yr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kr(e){e.state.focused||(e.display.input.focus(),Jr(e))}function $r(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Xr(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),
// This test prevents this from firing when a context
// menu is closed (since the input reset would kill the
// select-all detection hack)
e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Yr(e))}function Xr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}
// Read the actual heights of the rendered lines, and update their
// stored heights to match.
function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],a=e.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(o&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;c=u-n,n=u}else{var h=i.node.getBoundingClientRect();c=h.bottom-h.top,
// Check that lines don't extend past the right of the current
// editor width
!a&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-h.left-1)}var f=i.line.height-c;if((f>.005||f<-.005)&&(et(i.line,c),ei(i.line),i.rest))for(var d=0;d<i.rest.length;d++)ei(i.rest[d]);if(l>e.display.sizerWidth){var p=Math.ceil(l/Mr(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}
// Read and store the height of line widgets associated with the
// given line.
function ei(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}
// Compute the lines that are visible in a given viewport (defaults
// the the current scroll position). viewport may contain top,
// height, and ensure (see op.scrollToPos) properties.
function ti(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Vn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,a=nt(t,r),o=nt(t,i);
// Ensure is a {from: {line, ch}, to: {line, ch}} object, and
// forces those lines into the viewport (if possible).
if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<a?(a=s,o=nt(t,on(Je(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=o&&(a=nt(t,on(Je(t,c))-e.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}
// SCROLLING THINGS INTO VIEW
// If an editor sits on the top or bottom of the window, partially
// scrolled out of view, this ensures that the cursor is visible.
function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var a=B("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Vn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Yn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}
// Scroll a given position into view (immediately), verifying that
// it actually became visible (as line heights are accurately
// measured, the position of something may 'drift' during drawing).
function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(
// Set pos and end to the cursor positions around the character pos sticks to
// If pos.sticky == "before", that is around pos.ch - 1, otherwise around pos.ch
// If pos == Pos(_, 0, "before"), pos and end are unchanged
t=t.ch?at(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?at(t.line,t.ch+1,"before"):t);for(var a=0;a<5;a++){var o=!1,s=Ar(e,t),c=n&&n!=t?Ar(e,n):s,l=ai(e,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=l.scrollTop&&(fi(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=l.scrollLeft&&(pi(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return i}
// Scroll a given set of coordinates into view (immediately).
function ii(e,t){var n=ai(e,t);null!=n.scrollTop&&fi(e,n.scrollTop),null!=n.scrollLeft&&pi(e,n.scrollLeft)}
// Calculate a new scroll position needed to scroll the given
// rectangle into view. Returns an object with scrollTop and
// scrollLeft properties. When these are undefined, the
// vertical/horizontal position does not need to be adjusted.
function ai(e,t){var n=e.display,r=Br(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,a=$n(e),o={};t.bottom-t.top>a&&(t.bottom=t.top+a);var s=e.doc.height+Wn(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)o.scrollTop=c?0:t.top;else if(t.bottom>i+a){var u=Math.min(t.top,(l?s:t.bottom)-a);u!=i&&(o.scrollTop=u)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Kn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?o.scrollLeft=0:t.left<h?o.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>f+h-3&&(o.scrollLeft=t.right+(d?0:10)-f),o}
// Store a relative adjustment to the scroll position in the current
// operation (to be applied when the operation finishes).
function oi(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}
// Make sure that at the end of the operation the current cursor is
// shown.
function si(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ci(e,t,n){null==t&&null==n||ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ui(e),e.curOp.scrollToPos=t}
// When an operation has its scrollToPos property set, and another
// scroll action is applied before the end of the operation, this
// 'simulates' scrolling that position into view in a cheap way, so
// that the effect of intermediate scroll commands is not ignored.
function ui(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hi(e,br(e,t.from),br(e,t.to),t.margin))}function hi(e,t,n,r){var i=ai(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ci(e,i.scrollLeft,i.scrollTop)}
// Sync the scrollable area and scrollbars, ensure the viewport
// covers the visible area.
function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ui(e,{top:t}),di(e,t,!0),n&&Ui(e),Li(e,100))}function di(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}
// Sync scroller and scrollbar, ensure the gutter elements are
// aligned.
function pi(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,qi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}
// SCROLLBARS
// Prepare DOM reads needed to update the scrollbars. Done in one
// shot to minimize update/measure roundtrips.
function gi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Wn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mi=function(e,t,n){this.cm=n;var r=this.vert=B("div",[B("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=B("div",[B("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,
// Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);
// A bug in IE8 can cause this value to be negative, so guard it.
this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},mi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new N,this.disableVert=new N},mi.prototype.enableZeroWidthBar=function(e,t,n){function r(){
// To find out whether the scrollbar is still visible, we
// check whether the element under the pixel in the bottom
// right corner of the scrollbar box is the scrollbar box
// itself (when the bar is still visible) or its filler child
// (when the bar is hidden). If it is still visible, we keep
// it enabled, if it's hidden, we disable pointer events.
var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},mi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=function(){};function yi(e,t){t||(t=gi(e));var n=e.display.barWidth,r=e.display.barHeight;Ai(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),Ai(e,gi(e)),n=e.display.barWidth,r=e.display.barHeight}
// Re-synchronize the fake scrollbars with the actual size of the
// content.
function Ai(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){};var bi={native:mi,null:vi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),
// Prevent clicks in the scrollbars from killing focus
pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?pi(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}
// Operations are used to wrap a series of changes to the editor
// state in such a way that each change won't have to update the
// cursor and display (which would be awkward, slow, and
// error-prone). Instead, display updates are batched and then all
// combined and executed at once.
var xi=0;
// Start a new operation.
function Ci(e){e.curOp={cm:e,viewChanged:!1,// Flag that indicates that lines might need to be redrawn
startHeight:e.doc.height,// Used to detect need to update scrollbar
forceUpdate:!1,// Used to force a redraw
updateInput:0,// Whether to reset the input textarea
typing:!1,// Whether this reset should be careful to leave existing text (for compositing)
changeObjs:null,// Accumulated changes, for firing change events
cursorActivityHandlers:null,// Set of handlers to fire cursorActivity on
cursorActivityCalled:0,// Tracks which cursorActivity handlers have been called already
selectionChanged:!1,// Whether the selection needs to be redrawn
updateMaxLine:!1,// Set when the widest line needs to be determined anew
scrollLeft:null,scrollTop:null,// Intermediate scroll position, not pushed to DOM yet
scrollToPos:null,// Used to scroll to a specific position
focus:!1,id:++xi},In(e.curOp)}
// Finish an operation, updating the display and signalling delayed events
function _i(e){var t=e.curOp;t&&kn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ii(e)}))}
// The DOM updates done when an operation finishes are batched so
// that the minimum number of relayouts are required.
function Ii(e){for(var t=e.ops,n=0;n<t.length;n++)Ei(t[n]);for(var r=0;r<t.length;r++)ki(t[r]);for(var i=0;i<t.length;i++)Si(t[i]);for(var a=0;a<t.length;a++)Bi(t[a]);for(var o=0;o<t.length;o++)Mi(t[o])}function Ei(e){var t=e.cm,n=t.display;ji(t),e.updateMaxLine&&cn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ki(e){e.updatedDisplay=e.mustUpdate&&zi(e.cm,e.update)}function Si(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=gi(t),
// If the max line changed since it was last measured, measure it,
// and ensure the document's width matches it.
// updateDisplay_W2 will use these properties to do the actual resizing
n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Bi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&pi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==O();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&Wi(t,e.barMeasure),e.selectionChanged&&Yr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Kr(e.cm)}function Mi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Hi(t,e.update),
// Abort mouse wheel delta measurement, when scrolling explicitly
null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),
// Propagate the scroll position to the actual DOM scroller
null!=e.scrollTop&&di(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&pi(t,e.scrollLeft,!0,!0),
// If we need to scroll a specific position into view, do so.
e.scrollToPos&&ni(t,ri(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));
// Fire events for markers that are hidden/unidden by editing or
// undoing
var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||ve(i[o],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&ve(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),
// Fire change events, and delayed event handlers
e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}
// Run the given function in an operation
function Ti(e,t){if(e.curOp)return t();Ci(e);try{return t()}finally{_i(e)}}
// Wraps a function in an operation. Returns the wrapped function.
function Oi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ci(e);try{return t.apply(e,arguments)}finally{_i(e)}}}
// Used to add methods to editor and doc instances, wrapping them in
// operations.
function Di(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{_i(this)}}}function Pi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ci(t);try{return e.apply(this,arguments)}finally{_i(t)}}}
// HIGHLIGHT WORKER
function Li(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Q(Qi,e))}function Qi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=At(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(a){if(r.line>=e.display.viewFrom){// Visible
var o=a.styles,s=a.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,c=vt(e,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,u=c.classes;u?a.styleClasses=u:l&&(a.styleClasses=null);for(var h=!o||o.length!=a.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!h&&f<o.length;++f)h=o[f]!=a.styles[f];h&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=e.options.maxHighlightLength&&bt(e,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Li(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ti(e,(function(){for(var t=0;t<i.length;t++)jr(e,i[t],"text")}))}}
// DISPLAY DRAWING
var Ri=function(e,t,n){var r=e.display;this.viewport=t,
// Store some values that we'll need later (but don't want to force a relayout for)
this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Kn(e),this.force=n,this.dims=Tr(e),this.events=[]};function ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yn(e)+"px",t.scrollbarsClipped=!0)}function Ni(e){if(e.hasFocus())return null;var t=O();if(!t||!T(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&T(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Fi(e){if(e&&e.activeElt&&e.activeElt!=O()&&(e.activeElt.focus(),e.anchorNode&&T(document.body,e.anchorNode)&&T(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}
// Does the actual updating of the line display. Bails out
// (returning false) when there is nothing to be done and forced is
// false.
function zi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Nr(e),!1;
// Bail out if the visible area is already rendered and nothing changed.
if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;Yi(e)&&(Nr(e),t.dims=Tr(e));
// Compute a suitable new viewport (from & to)
var i=r.first+r.size,a=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Mt&&(a=tn(e.doc,a),o=nn(e.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zr(e,a,o),n.viewOffset=on(Je(e.doc,n.viewFrom)),
// Position the mover div to align with the current scroll position
e.display.mover.style.top=n.viewOffset+"px";var c=Hr(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;
// For big changes, we hide the enclosing element during the
// update, since that speeds up the operations on most browsers.
var l=Ni(e);return c>4&&(n.lineDiv.style.display="none"),Gi(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,
// There might have been a widget with a focused element that got
// hidden or updated, if so re-focus it.
Fi(l),
// Prevent selection and cursors from interfering with the scroll
// width and height.
k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Li(e,400)),n.updateLineNumbers=null,!0}function Hi(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Kn(e)||(
// Clip forced viewport to actual scrollable area.
n&&null!=n.top&&(n={top:Math.min(e.doc.height+Wn(e.display)-$n(e),n.top)}),
// Updated line heights might result in the drawn area not
// actually covering the viewport. Keep looping until it does.
t.visible=ti(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&zi(e,t);r=!1){Zr(e);var i=gi(e);Ur(e),yi(e,i),Wi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new Ri(e,t);if(zi(e,n)){Zr(e),Hi(e,n);var r=gi(e);Ur(e),yi(e,r),Wi(e,r),n.finish()}}
// Sync the actual display DOM structure with display.view, removing
// nodes for lines that are no longer in view, and creating the ones
// that are not there yet, and updating the ones that are out of
// date.
function Gi(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(t){var n=t.nextSibling;
// Works around a throw-scroll bug in OS X Webkit
return c&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}
// Loop over the elements in the view, syncing cur (the DOM nodes
// in display.lineDiv) with the view as we go.
for(var l=r.view,u=r.viewFrom,h=0;h<l.length;h++){var f=l[h];if(f.hidden);else if(f.node&&f.node.parentNode==a){// Already drawn
for(;o!=f.node;)o=s(o);var d=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(F(f.changes,"gutter")>-1&&(d=!1),Tn(e,f,u,n)),d&&(k(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(it(e.options,u)))),o=f.node.nextSibling}else{// Not drawn yet
var p=Nn(e,f,u,n);a.insertBefore(p,o)}u+=f.size}for(;o;)o=s(o)}function Vi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Wi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yn(e)+"px"}
// Re-align line numbers and gutter marks to compensate for
// horizontal scrolling.
function qi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Or(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){e.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}
// Used to ensure that the line number gutter is still the right
// size for the current document size. Returns true when an update
// is needed.
function Yi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(B("div",[B("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Vi(e.display),!0}return!1}function Ki(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var a=e[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!t)continue;r=!0}n.push({className:a,style:o})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}
// Rebuild the gutter elements, ensure the margin to the left of the
// code matches their width.
function $i(e){var t=e.gutters,n=e.gutterSpecs;k(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=t.appendChild(B("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Vi(e)}function Ji(e){$i(e.display),Rr(e),qi(e)}
// The display handles the DOM integration, both for input reading
// and content drawing. It holds references to DOM nodes and
// display-related state.
function Xi(e,t,r,i){var a=this;this.input=r,
// Covers bottom-right square when both scrollbars are present.
a.scrollbarFiller=B("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),
// Covers bottom of gutter when coverGutterNextToScrollbar is on
// and h scrollbar is present.
a.gutterFiller=B("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),
// Will contain the actual code, positioned to cover the viewport.
a.lineDiv=M("div",null,"CodeMirror-code"),
// Elements are added to these to represent selection and cursors.
a.selectionDiv=B("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=B("div",null,"CodeMirror-cursors"),
// A visibility: hidden element used to find the size of things.
a.measure=B("div",null,"CodeMirror-measure"),
// When lines outside of the viewport are measured, they are drawn in this.
a.lineMeasure=B("div",null,"CodeMirror-measure"),
// Wraps everything that needs to exist inside the vertically-padded coordinate system
a.lineSpace=M("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var l=M("div",[a.lineSpace],"CodeMirror-lines");
// Moved around its parent to cover visible view.
a.mover=B("div",[l],null,"position: relative"),
// Set to the height of the document, allowing scrolling.
a.sizer=B("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,
// Behavior of elts with overflow: auto and padding is
// inconsistent across browsers. This is used to ensure the
// scrollable area is big enough.
a.heightForcer=B("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),
// Will contain the gutters, if any.
a.gutters=B("div",null,"CodeMirror-gutters"),a.lineGutter=null,
// Actual scrollable element.
a.scroller=B("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),
// The element in which the editor lives.
a.wrapper=B("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),
// Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)
o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),c||n&&v||(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),
// Current rendered range (may be bigger than the view window).
a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,
// Information about the rendered lines.
a.view=[],a.renderedView=null,
// Holds info about a single rendered line when it was rendered
// for measurement, while not in view.
a.externalMeasured=null,
// Empty space (in pixels) above the view
a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,
// Used to only resize the line number gutter when necessary (when
// the amount of lines crosses a boundary that makes its width change)
a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,
// Set to true when a non-horizontal-scrolling line widget is
// added. As an optimization, line widget aligning is skipped when
// this is false.
a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,
// Tracks the maximum line length so that the horizontal scrollbar
// can be kept static when scrolling.
a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,
// Used for measuring wheel scrolling granularity
a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,
// True when shift is held down.
a.shift=!1,
// Used to track whether anything happened since the context menu
// was opened.
a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Ki(i.gutters,i.lineNumbers),$i(a),r.init(a)}
// Since the delta values reported on mouse wheel events are
// unstandardized between browsers and even browser versions, and
// generally horribly unpredictable, this code starts by measuring
// the scroll effect that the first few mouse wheel events have,
// and, from that, detects the way it can convert deltas to pixel
// offsets afterwards.

// The reason we want to know the amount a wheel event will scroll
// is that it gives us a chance to update the display before the
// actual scrolling happens, reducing flickering.
Ri.prototype.signal=function(e,t){be(e,t)&&this.events.push(arguments)},Ri.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)ve.apply(null,e.events[t])};var Zi=0,ea=null;
// Fill in a browser-detected starting value on browsers where we
// know one. These don't have to be accurate -- the result of them
// being wrong would just be a slight flicker on the first wheel
// scroll (if it is large enough).
function ta(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function na(e){var t=ta(e);return t.x*=ea,t.y*=ea,t}function ra(e,t){var r=ta(t),i=r.x,a=r.y,o=e.display,s=o.scroller,l=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||a&&u){
// Webkit browsers on OS X abort momentum scrolls when the target
// of the scroll event is removed from the scrollable element.
// This hack (see related code in patchDisplay) makes sure the
// element is kept around.
if(a&&y&&c)e:for(var f=t.target,d=o.view;f!=s;f=f.parentNode)for(var p=0;p<d.length;p++)if(d[p].node==f){e.display.currentWheelTarget=f;break e}
// On some browsers, horizontal scrolling will cause redraws to
// happen before the gutter has been realigned, causing it to
// wriggle around in a most unseemly way. When we have an
// estimated pixels/delta value, we just handle horizontal
// scrolling entirely here. It'll be slightly off from native, but
// better than glitching out.
if(i&&!n&&!h&&null!=ea)// Abort measurement, if in progress
return a&&u&&fi(e,Math.max(0,s.scrollTop+a*ea)),pi(e,Math.max(0,s.scrollLeft+i*ea)),
// Only prevent default scrolling if vertical scrolling is
// actually possible. Otherwise, it causes vertical scroll
// jitter on OSX trackpads when deltaX is small and deltaY
// is large (issue #3579)
(!a||a&&u)&&xe(t),void(o.wheelStartX=null);
// 'Project' the visible viewport to cover the area that is being
// scrolled into view (if we know enough to estimate it).
if(a&&null!=ea){var g=a*ea,m=e.doc.scrollTop,v=m+o.wrapper.clientHeight;g<0?m=Math.max(0,m+g-50):v=Math.min(e.doc.height,v+g+50),Ui(e,{top:m,bottom:v})}Zi<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=a,setTimeout((function(){if(null!=o.wheelStartX){var e=s.scrollLeft-o.wheelStartX,t=s.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(ea=(ea*Zi+n)/(Zi+1),++Zi)}}),200)):(o.wheelDX+=i,o.wheelDY+=a))}}
// Selection objects are immutable. A new one is created every time
// the selection changes. A selection is one or more non-overlapping
// (and non-touching) ranges, sorted, and an integer that indicates
// which one is the primary selection (the one that's scrolled into
// view, that getCursor returns, etc).
o?ea=-.53:n?ea=15:u?ea=-.7:f&&(ea=-1/3);var ia=function(e,t){this.ranges=e,this.primIndex=t};ia.prototype.primary=function(){return this.ranges[this.primIndex]},ia.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(!st(r.anchor,i.anchor)||!st(r.head,i.head))return!1}return!0},ia.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new aa(ct(e.ranges[n].anchor),ct(e.ranges[n].head));return new ia(t,this.primIndex)},ia.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},ia.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(ot(t,i.from())>=0&&ot(e,i.to())<=0)return r}return-1};var aa=function(e,t){this.anchor=e,this.head=t};
// Take an unsorted, potentially overlapping set of ranges, and
// build a selection out of it. 'Consumes' ranges array (modifying
// it).
function oa(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=F(t,i);for(var a=1;a<t.length;a++){var o=t[a],s=t[a-1],c=ot(s.to(),o.from());if(r&&!o.empty()?c>0:c>=0){var l=ut(s.from(),o.from()),u=lt(s.to(),o.to()),h=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,t.splice(--a,2,new aa(h?u:l,h?l:u))}}return new ia(t,n)}function sa(e,t){return new ia([new aa(e,t||e)],0)}
// Compute the position of the end of a change (its 'to' property
// refers to the pre-change end).
function ca(e){return e.text?at(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}
// Adjust a position to refer to the post-change position of the
// same text, or the end of the change if the change covers it.
function la(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return ca(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ca(t).ch-t.to.ch),at(n,r)}function ua(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new aa(la(i.anchor,t),la(i.head,t)))}return oa(e.cm,n,e.sel.primIndex)}function ha(e,t,n){return e.line==t.line?at(n.line,e.ch-t.ch+n.ch):at(n.line+(e.line-t.line),e.ch)}
// Used by replaceSelections to allow moving the selection to the
// start or around the replaced test. Hint may be "start" or "around".
function fa(e,t,n){for(var r=[],i=at(e.first,0),a=i,o=0;o<t.length;o++){var s=t[o],c=ha(s.from,i,a),l=ha(ca(s),i,a);if(i=s.to,a=l,"around"==n){var u=e.sel.ranges[o],h=ot(u.head,u.anchor)<0;r[o]=new aa(h?l:c,h?c:l)}else r[o]=new aa(c,c)}return new ia(r,e.sel.primIndex)}
// Used to get the editor into a consistent state again when options change.
function da(e){e.doc.mode=Ge(e.options,e.doc.modeOption),pa(e)}function pa(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Li(e,100),e.state.modeGen++,e.curOp&&Rr(e)}
// DOCUMENT DATA STRUCTURE
// By default, updates that start and end at the beginning of a line
// are treated specially, in order to make the association of line
// widgets and marker elements with the text behave more intuitive.
function ga(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}
// Perform a change on the document data structure.
function ma(e,t,n,r){function i(e){return n?n[e]:null}function a(e,n,i){un(e,n,i,r),Bn(e,"change",e,t)}function o(e,t){for(var n=[],a=e;a<t;++a)n.push(new ln(l[a],i(a),r));return n}var s=t.from,c=t.to,l=t.text,u=Je(e,s.line),h=Je(e,c.line),f=K(l),d=i(l.length-1),p=c.line-s.line;
// Adjust the line structure
if(t.full)e.insert(0,o(0,l.length)),e.remove(l.length,e.size-l.length);else if(ga(e,t)){
// This is a whole-line replace. Treated specially to make
// sure line objects move the way they are supposed to.
var g=o(0,l.length-1);a(h,h.text,d),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(u==h)if(1==l.length)a(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),d);else{var m=o(1,l.length-1);m.push(new ln(f+u.text.slice(c.ch),d,r)),a(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,m)}else if(1==l.length)a(u,u.text.slice(0,s.ch)+l[0]+h.text.slice(c.ch),i(0)),e.remove(s.line+1,p);else{a(u,u.text.slice(0,s.ch)+l[0],i(0)),a(h,f+h.text.slice(c.ch),d);var v=o(1,l.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Bn(e,"change",e,t)}
// Call f for all linked documents.
function va(e,t,n){function r(e,i,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=i){var c=a&&s.sharedHist;n&&!c||(t(s.doc,c),r(s.doc,e,c))}}}r(e,null,!0)}
// Attach a document to an editor.
function ya(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Pr(e),da(e),Aa(e),e.options.lineWrapping||cn(e),e.options.mode=t.modeOption,Rr(e)}function Aa(e){("rtl"==e.doc.direction?D:E)(e.display.lineDiv,"CodeMirror-rtl")}function ba(e){Ti(e,(function(){Aa(e),Rr(e)}))}function wa(e){
// Arrays of change events and selections. Doing something adds an
// event to done and clears undo. Undoing moves events from done
// to undone, redoing moves them in the other direction.
this.done=[],this.undone=[],this.undoDepth=1/0,
// Used to track when changes can be merged into a single undo
// event
this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,
// Used by the isClean() method
this.generation=this.maxGeneration=e||1}
// Create a history change event from an updateDoc-style change
// object.
function xa(e,t){var n={from:ct(t.from),to:ca(t),text:Xe(e,t.from,t.to)};return Ba(e,n,t.from.line,t.to.line+1),va(e,(function(e){return Ba(e,n,t.from.line,t.to.line+1)}),!0),n}
// Pop all selection events off the end of a history array. Stop at
// a change event.
function Ca(e){for(;e.length&&K(e).ranges;)e.pop()}
// Find the top change event in the history. Pop off selection
// events that are in the way.
function _a(e,t){return t?(Ca(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}
// Register a change in the history. Merges changes that are within
// a single operation, or are close together with an origin that
// allows merging (starting with "+") into a single event.
function Ia(e,t,n,r){var i=e.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(a=_a(i,i.lastOp==r)))
// Merge this change into the last event
o=K(a.changes),0==ot(t.from,t.to)&&0==ot(t.from,o.to)?
// Optimized case for simple insertion -- don't want to add
// new changesets for every character typed
o.to=ca(t):
// Add new sub-event
a.changes.push(xa(e,t));else{
// Can not be merged, start a new event.
var c=K(i.done);for(c&&c.ranges||Sa(e.sel,i.done),a={changes:[xa(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,o||ve(e,"historyAdded")}function Ea(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}
// Called whenever the selection changes, sets the new selection as
// the pending selection in the history, and pushes the old pending
// selection into the 'done' array when it was significantly
// different (in number of selected ranges, emptiness, or time).
function ka(e,t,n,r){var i=e.history,a=r&&r.origin;
// A new event is started when the previous origin does not match
// the current, or the origins don't allow matching. Origins
// starting with * are always merged, those starting with + are
// merged when similar and close together in time.
n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ea(e,a,K(i.done),t))?i.done[i.done.length-1]=t:Sa(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ca(i.undone)}function Sa(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}
// Used to store marked span information in the history.
function Ba(e,t,n,r){var i=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[a]=n.markedSpans),++a}))}
// When un/re-doing restores text containing marked spans, those
// that have been explicitly cleared should not be restored.
function Ma(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}
// Retrieve and filter the old marked spans stored in a change event.
function Ta(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Ma(n[i]));return r}
// Used for un/re-doing changes from the history. Combines the
// result of computing the existing spans with the set of spans that
// existed in the history (so that deleting around a span and then
// undoing brings back the span).
function Oa(e,t){var n=Ta(e,t),r=Nt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)e:for(var s=0;s<o.length;++s){for(var c=o[s],l=0;l<a.length;++l)if(a[l].marker==c.marker)continue e;a.push(c)}else o&&(n[i]=o)}return n}
// Used both to provide a JSON-safe object in .getHistory, and, when
// detaching a document, to split the history in two
function Da(e,t,n){for(var r=[],i=0;i<e.length;++i){var a=e[i];if(a.ranges)r.push(n?ia.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var c=0;c<o.length;++c){var l=o[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var h in l)(u=h.match(/^spans_(\d+)$/))&&F(t,Number(u[1]))>-1&&(K(s)[h]=l[h],delete l[h])}}}return r}
// The 'scroll' parameter given to many of these indicated whether
// the new cursor position should be scrolled into view after
// modifying the selection.
// If shift is held or the extend flag is set, extends a range to
// include a given position (and optionally a second position).
// Otherwise, simply returns the range between the given positions.
// Used for cursor motion and such.
function Pa(e,t,n,r){if(r){var i=e.anchor;if(n){var a=ot(t,i)<0;a!=ot(n,i)<0?(i=t,t=n):a!=ot(t,n)<0&&(t=n)}return new aa(i,t)}return new aa(n||t,t)}
// Extend the primary selection range, discard the rest.
function La(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),za(e,new ia([Pa(e.sel.primary(),t,n,i)],0),r)}
// Extend all selections (pos is an array of selections with length
// equal the number of selections)
function Qa(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a<e.sel.ranges.length;a++)r[a]=Pa(e.sel.ranges[a],t[a],null,i);za(e,oa(e.cm,r,e.sel.primIndex),n)}
// Updates a single range in the selection.
function Ra(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,za(e,oa(e.cm,i,e.sel.primIndex),r)}
// Reset the selection to a single range.
function ja(e,t,n,r){za(e,sa(t,n),r)}
// Give beforeSelectionChange handlers a change to influence a
// selection update.
function Na(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new aa(ft(e,t[r].anchor),ft(e,t[r].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?oa(e.cm,r.ranges,r.ranges.length-1):t}function Fa(e,t,n){var r=e.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=t,Ha(e,t,n)):za(e,t,n)}
// Set a new selection.
function za(e,t,n){Ha(e,t,n),ka(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ha(e,t,n){(be(e,"beforeSelectionChange")||e.cm&&be(e.cm,"beforeSelectionChange"))&&(t=Na(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);Ua(e,Va(e,t,r,!0)),n&&!1===n.scroll||!e.cm||si(e.cm)}function Ua(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),Bn(e,"cursorActivity",e))}
// Verify that the selection does not partially select any atomic
// marked ranges.
function Ga(e){Ua(e,Va(e,e.sel,null,!1))}
// Return a selection that does not partially select any atomic
// ranges.
function Va(e,t,n,r){for(var i,a=0;a<t.ranges.length;a++){var o=t.ranges[a],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],c=qa(e,o.anchor,s&&s.anchor,n,r),l=qa(e,o.head,s&&s.head,n,r);(i||c!=o.anchor||l!=o.head)&&(i||(i=t.ranges.slice(0,a)),i[a]=new aa(c,l))}return i?oa(e.cm,i,t.primIndex):t}function Wa(e,t,n,r,i){var a=Je(e,t.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],c=s.marker;if((null==s.from||(c.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(ve(c,"beforeCursorEnter"),c.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!c.atomic)continue;if(n){var l=c.find(r<0?1:-1),u=void 0;if((r<0?c.inclusiveRight:c.inclusiveLeft)&&(l=Ya(e,l,-r,l&&l.line==t.line?a:null)),l&&l.line==t.line&&(u=ot(l,n))&&(r<0?u<0:u>0))return Wa(e,l,t,r,i)}var h=c.find(r<0?-1:1);return(r<0?c.inclusiveLeft:c.inclusiveRight)&&(h=Ya(e,h,r,h.line==t.line?a:null)),h?Wa(e,h,t,r,i):null}}return t}
// Ensure a given position is not inside an atomic range.
function qa(e,t,n,r,i){var a=r||1,o=Wa(e,t,n,a,i)||!i&&Wa(e,t,n,a,!0)||Wa(e,t,n,-a,i)||!i&&Wa(e,t,n,-a,!0);return o||(e.cantEdit=!0,at(e.first,0))}function Ya(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,at(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line<e.first+e.size-1?at(t.line+1,0):null:new at(t.line,t.ch+n)}function Ka(e){e.setSelection(at(e.firstLine(),0),at(e.lastLine()),U)}
// UPDATING
// Allow "beforeChange" event handlers to influence a change
function $a(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,a){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),i&&(r.text=i),void 0!==a&&(r.origin=a)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}
// Apply a change to a document, and add it to the document's
// history, and propagating it to all linked documents.
function Ja(e,t,n){if(e.cm){if(!e.cm.curOp)return Oi(e.cm,Ja)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(be(e,"beforeChange")||e.cm&&be(e.cm,"beforeChange"))||(t=$a(e,t,!0))){
// Possibly split or suppress the update based on the presence
// of read-only spans in its range.
var r=Bt&&!n&&zt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Xa(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Xa(e,t)}}function Xa(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=ua(e,t);Ia(e,t,n,e.cm?e.cm.curOp.id:NaN),to(e,t,n,Nt(e,t));var r=[];va(e,(function(e,n){n||-1!=F(r,e.history)||(oo(e.history,t),r.push(e.history)),to(e,t,null,Nt(e,t))}))}}
// Revert a change stored in a document's history.
function Za(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,a=e.history,o=e.sel,s="undo"==t?a.done:a.undone,c="undo"==t?a.undone:a.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Sa(i,c),n&&!i.equals(e.sel))return void za(e,i,{clearRedo:!1});o=i}
// Build up a reverse change object to add to the opposite history
// stack (redo when undoing, and vice versa).
var u=[];Sa(o,c),c.push({changes:u,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var h=be(e,"beforeChange")||e.cm&&be(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,h&&!$a(e,r,!1))return s.length=0,{};u.push(xa(e,r));var a=n?ua(e,r):K(s);to(e,r,a,Oa(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:ca(r)});var o=[];
// Propagate to the linked documents
va(e,(function(e,t){t||-1!=F(o,e.history)||(oo(e.history,r),o.push(e.history)),to(e,r,null,Oa(e,r))}))},d=i.changes.length-1;d>=0;--d){var p=f(d);if(p)return p.v}}}}
// Sub-views need their line numbers shifted when text is added
// above or below them in the parent document.
function eo(e,t){if(0!=t&&(e.first+=t,e.sel=new ia($(e.sel.ranges,(function(e){return new aa(at(e.anchor.line+t,e.anchor.ch),at(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)jr(e.cm,r,"gutter")}}
// More lower-level change function, handling only a single document
// (not linked ones).
function to(e,t,n,r){if(e.cm&&!e.cm.curOp)return Oi(e.cm,to)(e,t,n,r);if(t.to.line<e.first)eo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){
// Clip the change to the size of this doc
if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);eo(e,i),t={from:at(e.first,0),to:at(t.to.line+i,t.to.ch),text:[K(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:at(a,Je(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=ua(e,t)),e.cm?no(e.cm,t,r):ma(e,t,r),Ha(e,n,U)}}
// Handle the interaction of a change to a document with the editor
// that this document is part of.
function no(e,t,n){var r=e.doc,i=e.display,a=t.from,o=t.to,s=!1,c=a.line;e.options.lineWrapping||(c=tt(Xt(Je(r,a.line))),r.iter(c,o.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Ae(e),ma(r,t,n,Dr(e)),e.options.lineWrapping||(r.iter(c,a.line+t.text.length,(function(e){var t=sn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),St(r,a.line),Li(e,400);var l=t.text.length-(o.line-a.line)-1;
// Remember that these lines changed, for updating the display
t.full?Rr(e):a.line!=o.line||1!=t.text.length||ga(e.doc,t)?Rr(e,a.line,o.line+1,l):jr(e,a.line,"text");var u=be(e,"changes"),h=be(e,"change");if(h||u){var f={from:a,to:o,text:t.text,removed:t.removed,origin:t.origin};h&&Bn(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ro(e,t,n,r,i){var a;r||(r=n),ot(r,n)<0&&(n=(a=[r,n])[0],r=a[1]),"string"==typeof t&&(t=e.splitLines(t)),Ja(e,{from:n,to:r,text:t,origin:i})}
// Rebasing/resetting history to deal with externally-sourced changes
function io(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}
// Tries to rebase an array of history events given a change in the
// document. If the change touches the same lines as the event, the
// event, and everything 'behind' it, is discarded. If the change is
// before the event, the event's positions are updated. Uses a
// copy-on-write scheme for the positions, to avoid having to
// reallocate them all on every rebase, but also avoid problems with
// shared position objects being unsafely updated.
function ao(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i],o=!0;if(a.ranges){a.copied||((a=e[i]=a.deepCopy()).copied=!0);for(var s=0;s<a.ranges.length;s++)io(a.ranges[s].anchor,t,n,r),io(a.ranges[s].head,t,n,r)}else{for(var c=0;c<a.changes.length;++c){var l=a.changes[c];if(n<l.from.line)l.from=at(l.from.line+r,l.from.ch),l.to=at(l.to.line+r,l.to.ch);else if(t<=l.to.line){o=!1;break}}o||(e.splice(0,i+1),i=0)}}}function oo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ao(e.done,n,r,i),ao(e.undone,n,r,i)}
// Utility for applying a change to a line by handle or number,
// returning the number and optionally registering the line as
// changed.
function so(e,t,n,r){var i=t,a=t;return"number"==typeof t?a=Je(e,ht(e,t)):i=tt(t),null==i?null:(r(a,i)&&e.cm&&jr(e.cm,i,n),a)}
// The document is represented as a BTree consisting of leaves, with
// chunk of lines in them, and branches, with up to ten leaves or
// other branch nodes below them. The top node is always a branch
// node, and is the document object itself (meaning it has
// additional methods and properties).

// All nodes have parent links. The tree is used both to go from
// line numbers to line objects, and to go from objects to numbers.
// It also indexes by height, and is used to convert between height
// and line object, and to find the total height of the document.

// See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html
function co(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function lo(e){var t=this;this.children=e;for(var n=0,r=0,i=0;i<e.length;++i){var a=e[i];n+=a.chunkSize(),r+=a.height,a.parent=t}this.size=n,this.height=r,this.parent=null}aa.prototype.from=function(){return ut(this.anchor,this.head)},aa.prototype.to=function(){return lt(this.anchor,this.head)},aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},co.prototype={chunkSize:function(){return this.lines.length},
// Remove the n lines at offset 'at'.
removeInner:function(e,t){for(var n=this,r=e,i=e+t;r<i;++r){var a=n.lines[r];n.height-=a.height,hn(a),Bn(a,"delete")}this.lines.splice(e,t)},
// Helper used to collapse a small branch into a single leaf.
collapse:function(e){e.push.apply(e,this.lines)},
// Insert the given array of lines at offset 'at', count them as
// having the given height.
insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=r},
// Used to iterate over a part of the tree.
iterN:function(e,t,n){for(var r=this,i=e+t;e<i;++e)if(n(r.lines[e]))return!0}},lo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],a=i.chunkSize();if(e<a){var o=Math.min(t,a-e),s=i.height;if(i.removeInner(e,o),n.height-=s-i.height,a==o&&(n.children.splice(r--,1),i.parent=null),0==(t-=o))break;e=0}else e-=a}
// If the result is smaller than 25 lines, ensure that it is a
// single leaf node.
if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof co))){var c=[];this.collapse(c),this.children=[new co(c)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var a=r.children[i],o=a.chunkSize();if(e<=o){if(a.insertInner(e,t,n),a.lines&&a.lines.length>50){for(
// To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.
// Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.
var s=a.lines.length%25+25,c=s;c<a.lines.length;){var l=new co(a.lines.slice(c,c+=25));a.height-=l.height,r.children.splice(++i,0,l),l.parent=r}a.lines=a.lines.slice(0,s),r.maybeSpill()}break}e-=o}},
// When a node has grown, check whether it should be split.
maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new lo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=F(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{// Become the parent node
var r=new lo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;i<this.children.length;++i){var a=r.children[i],o=a.chunkSize();if(e<o){var s=Math.min(t,o-e);if(a.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=o}}};
// Line widgets are block elements displayed above or below a line.
var uo=function(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t};function ho(e,t,n){on(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&oi(e,n)}function fo(e,t,n,r){var i=new uo(e,n,r),a=e.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),so(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,a&&!rn(e,t)){var r=on(t)<e.scrollTop;et(t,t.height+Un(i)),r&&oi(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&Bn(a,"lineWidgetAdded",a,i,"number"==typeof t?t:tt(t)),i}
// TEXTMARKERS
// Created with markText and setBookmark methods. A TextMarker is a
// handle that can be used to clear or find a marked position in the
// document. Line objects hold arrays (markedSpans) containing
// {from, to, marker} object pointing to such marker objects, and
// indicating that such a marker is present on that line. Multiple
// lines may point to the same marker when it spans across lines.
// The spans will have null for their from/to properties when the
// marker continues beyond the start/end of the line. Markers have
// links back to the lines they currently touch.
// Collapsed markers have unique ids, in order to be able to order
// them, which is needed for uniquely determining an outer marker
// when they overlap (they may nest, but not partially overlap).
uo.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=tt(r);if(null!=i&&n){for(var a=0;a<n.length;++a)n[a]==e&&n.splice(a--,1);n.length||(r.widgets=null);var o=Un(this);et(r,Math.max(0,r.height-o)),t&&(Ti(t,(function(){ho(t,r,-o),jr(t,i,"widget")})),Bn(t,"lineWidgetCleared",t,this,i))}},uo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Un(this)-t;i&&(rn(this.doc,r)||et(r,r.height+i),n&&Ti(n,(function(){n.curOp.forceUpdate=!0,ho(n,r,i),Bn(n,"lineWidgetChanged",n,e,tt(r))})))},we(uo);var po=0,go=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++po};
// Create a marker, wire it up to the right lines, and
function mo(e,t,n,r,i){
// Shared markers (across linked documents) are handled separately
// (markTextShared will call out to this again, once per
// document).
if(r&&r.shared)return yo(e,t,n,r,i);
// Ensure we are in an operation.
if(e.cm&&!e.cm.curOp)return Oi(e.cm,mo)(e,t,n,r,i);var a=new go(e,i),o=ot(t,n);
// Don't connect empty markers unless clearWhenEmpty is false
if(r&&R(r,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(
// Showing up as a widget implies collapsed (widget replaces text)
a.collapsed=!0,a.widgetNode=M("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Jt(e,t.line,t,n,a)||t.line!=n.line&&Jt(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ot()}a.addToHistory&&Ia(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(e){l&&a.collapsed&&!l.options.lineWrapping&&Xt(e)==l.display.maxLine&&(s=!0),a.collapsed&&c!=t.line&&et(e,0),Qt(e,new Dt(a,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c})),
// lineIsHidden depends on the presence of the spans, so needs a second pass
a.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),a.clearOnEnter&&pe(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(Tt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++po,a.atomic=!0),l){if(
// Sync editor state
s&&(l.curOp.updateMaxLine=!0),a.collapsed)Rr(l,t.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=t.line;u<=n.line;u++)jr(l,u,"text");a.atomic&&Ga(l.doc),Bn(l,"markerAdded",l,a)}return a}
// SHARED TEXTMARKERS
// A shared marker spans multiple linked documents. It is
// implemented as a meta-marker-object controlling multiple normal
// markers.
// Clear the marker.
go.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&Ci(t),be(this,"clear")){var r=this.find();r&&Bn(this,"clear",r.from,r.to)}for(var i=null,a=null,o=0;o<this.lines.length;++o){var s=e.lines[o],c=Pt(s.markedSpans,e);t&&!e.collapsed?jr(t,tt(s),"text"):t&&(null!=c.to&&(a=tt(s)),null!=c.from&&(i=tt(s))),s.markedSpans=Lt(s.markedSpans,c),null==c.from&&e.collapsed&&!rn(e.doc,s)&&t&&et(s,Br(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Xt(e.lines[l]),h=sn(u);h>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=h,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Rr(t,i,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ga(t.doc)),t&&Bn(t,"markerCleared",t,this,i,a),n&&_i(t),this.parent&&this.parent.clear()}},
// Find the position of the marker in the document. Returns a {from,
// to} object by default. Side can be passed to get a specific side
// -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the
// Pos objects returned contain a line object, rather than a line
// number (used to prevent looking up the same line twice).
go.prototype.find=function(e,t){var n,r,i=this;null==e&&"bookmark"==this.type&&(e=1);for(var a=0;a<this.lines.length;++a){var o=i.lines[a],s=Pt(o.markedSpans,i);if(null!=s.from&&(n=at(t?o:tt(o),s.from),-1==e))return n;if(null!=s.to&&(r=at(t?o:tt(o),s.to),1==e))return r}return n&&{from:n,to:r}},
// Signals that the marker's widget changed, and surrounding layout
// should be recomputed.
go.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ti(r,(function(){var i=t.line,a=tt(t.line),o=tr(r,a);if(o&&(ur(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=Un(n)-s;c&&et(i,i.height+c)}Bn(r,"markerChanged",r,e)}))},go.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=F(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},go.prototype.detachLine=function(e){if(this.lines.splice(F(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(go);var vo=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};function yo(e,t,n,r,i){(r=R(r)).shared=!1;var a=[mo(e,t,n,r,i)],o=a[0],s=r.widgetNode;return va(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),a.push(mo(e,ft(e,t),ft(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;o=K(a)})),new vo(a,o)}function Ao(e){return e.findMarks(at(e.first,0),e.clipPos(at(e.lastLine())),(function(e){return e.parent}))}function bo(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),a=e.clipPos(i.from),o=e.clipPos(i.to);if(ot(a,o)){var s=mo(e,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function wo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];va(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var a=n.markers[i];-1==F(r,a.doc)&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}vo.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();Bn(this,"clear")}},vo.prototype.find=function(e,t){return this.primary.find(e,t)},we(vo);var xo=0,Co=function(e,t,n,r,i){if(!(this instanceof Co))return new Co(e,t,n,r,i);null==n&&(n=0),lo.call(this,[new co([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=at(n,0);this.sel=sa(a),this.history=new wa(null),this.id=++xo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ma(this,{from:a,to:a,text:e}),za(this,sa(a),U)};Co.prototype=Z(lo.prototype,{constructor:Co,
// Iterate over the document. Supports two forms -- with only one
// argument, it calls that for each line in the document. With
// three, it iterates over the range given by the first two (with
// the second being non-inclusive).
iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},
// Non-public interface for adding and removing lines.
insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},
// From here, the methods are part of the public interface. Most
// are also available from CodeMirror (editor) instances.
getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Pi((function(e){var t=at(this.first,0),n=this.first+this.size-1;Ja(this,{from:t,to:at(n,Je(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ci(this.cm,0,0),za(this,sa(t),U)})),replaceRange:function(e,t,n,r){ro(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Xe(this,ft(this,e),ft(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Je(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Je(this,e)),Xt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Pi((function(e,t,n){ja(this,ft(this,"number"==typeof e?at(e,t||0):e),null,n)})),setSelection:Pi((function(e,t,n){ja(this,ft(this,e),ft(this,t||e),n)})),extendSelection:Pi((function(e,t,n){La(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:Pi((function(e,t){Qa(this,pt(this,e),t)})),extendSelectionsBy:Pi((function(e,t){Qa(this,pt(this,$(this.sel.ranges,e)),t)})),setSelections:Pi((function(e,t,n){var r=this;if(e.length){for(var i=[],a=0;a<e.length;a++)i[a]=new aa(ft(r,e[a].anchor),ft(r,e[a].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),za(this,oa(this.cm,i,t),n)}})),addSelection:Pi((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new aa(ft(this,e),ft(this,t||e))),za(this,oa(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var a=Xe(n,r[i].from(),r[i].to());t=t?t.concat(a):a}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var a=Xe(t,r[i].from(),r[i].to());!1!==e&&(a=a.join(e||t.lineSeparator())),n[i]=a}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Pi((function(e,t,n){for(var r=this,i=[],a=this.sel,o=0;o<a.ranges.length;o++){var s=a.ranges[o];i[o]={from:s.from(),to:s.to(),text:r.splitLines(e[o]),origin:n}}for(var c=t&&"end"!=t&&fa(this,i,t),l=i.length-1;l>=0;l--)Ja(r,i[l]);c?Fa(this,c):this.cm&&si(this.cm)})),undo:Pi((function(){Za(this,"undo")})),redo:Pi((function(){Za(this,"redo")})),undoSelection:Pi((function(){Za(this,"undo",!0)})),redoSelection:Pi((function(){Za(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new wa(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Da(this.history.done),undone:Da(this.history.undone)}},setHistory:function(e){var t=this.history=new wa(this.history.maxGeneration);t.done=Da(e.done.slice(0),null,!0),t.undone=Da(e.undone.slice(0),null,!0)},setGutterMarker:Pi((function(e,t,n){return so(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Pi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&so(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Je(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Pi((function(e,t,n){return so(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(_(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Pi((function(e,t,n){return so(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var a=i.match(_(n));if(!a)return!1;var o=a.index+a[0].length;e[r]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:Pi((function(e,t,n){return fo(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return mo(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return mo(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Je(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var c=o[s];null!=c.to&&i==e.line&&e.ch>=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+r;if(a>e)return t=e,!0;e-=a,++n})),ft(this,at(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){// iter aborts when callback returns a truthy value
t+=e.text.length+n})),t},copy:function(e){var t=new Co(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Co(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],bo(r,Ao(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Rs&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n)if(t.linked[n].doc==e){t.linked.splice(n,1),e.unlinkDoc(t),wo(Ao(t));break}
// If the histories were shared, split them again
if(e.history==this.history){var r=[e.id];va(e,(function(e){return r.push(e.id)}),!0),e.history=new wa(null),e.history.done=Da(this.history.done,r),e.history.undone=Da(this.history.undone,r)}},iterLinkedDocs:function(e){va(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Pe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Pi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ba(this.cm))}))}),
// Public alias.
Co.prototype.eachLine=Co.prototype.iter;
// Kludge to work around strange IE behavior where it'll sometimes
// re-fire a series of drag-related events right after the drop (#1551)
var _o=0;function Io(e){var t=this;if(So(t),!ye(t,e)&&!Gn(t.display,e)){xe(e),o&&(_o=+new Date);var n=Lr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())
// Might be a file drop, in which case we simply extract the text
// and insert it.
if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,c=function(e,r){if(!t.options.allowDropFileTypes||-1!=F(t.options.allowDropFileTypes,e.type)){var o=new FileReader;o.onload=Oi(t,(function(){var e=o.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),a[r]=e,++s==i){var c={from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(a.join(t.doc.lineSeparator())),origin:"paste"};Ja(t.doc,c),Fa(t.doc,sa(n,ca(c)))}})),o.readAsText(e)}},l=0;l<i;++l)c(r[l],l);else{// Normal drop
// Don't do a replace if the drop happened inside of the selected text.
if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void
// Ensure the editor is re-focused
setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Ha(t.doc,sa(n,n)),h)for(var f=0;f<h.length;++f)ro(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Eo(e,t){if(o&&(!e.state.draggingText||+new Date-_o<100))Ie(t);else if(!ye(e,t)&&!Gn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=B("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,e.display.wrapper.appendChild(n),
// Force a relayout, or Opera won't use our image for some obscure reason
n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}function ko(e,t){var n=Lr(e,t);if(n){var r=document.createDocumentFragment();Vr(e,n,r),e.display.dragCursor||(e.display.dragCursor=B("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),S(e.display.dragCursor,r)}}function So(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}
// These must be handled carefully, because naively registering a
// handler for each editor will cause the editors to never be
// garbage collected.
function Bo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Mo=!1;function To(){Mo||(Oo(),Mo=!0)}function Oo(){
// When the window resizes, we need to refresh active editors.
var e;pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Bo(Do)}),100))})),
// When the window loses focus, we want to show the editor as blurred
pe(window,"blur",(function(){return Bo(Xr)}))}
// Called when the window resizes
function Do(e){var t=e.display;
// Might be a text scaling operation, clear size caches.
t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}
// Number keys
for(var Po={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Lo=0;Lo<10;Lo++)Po[Lo+48]=Po[Lo+96]=String(Lo);
// Alphabetic keys
for(var Qo=65;Qo<=90;Qo++)Po[Qo]=String.fromCharCode(Qo);
// Function keys
for(var Ro=1;Ro<=12;Ro++)Po[Ro+111]=Po[Ro+63235]="F"+Ro;var jo={};
// KEYMAP DISPATCH
function No(e){var t,n,r,i,a=e.split(/-(?!$)/);e=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}
// This is a kludge to keep keymaps mostly working as raw objects
// (backwards compatibility) while at the same time support features
// like normalization and multi-stroke key bindings. It compiles a
// new normalized keymap, and then updates the old object to reflect
// this.
function Fo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=$(n.split(" "),No),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=r):(s=i.slice(0,a+1).join(" "),o="...");var c=t[s];if(c){if(c!=o)throw new Error("Inconsistent bindings for "+s)}else t[s]=o}delete e[n]}for(var l in t)e[l]=t[l];return e}function zo(e,t,n,r){var i=(t=Vo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return zo(e,t.fallthrough,n,r);for(var a=0;a<t.fallthrough.length;a++){var o=zo(e,t.fallthrough[a],n,r);if(o)return o}}}
// Modifier key presses don't count as 'real' key presses for the
// purpose of keymap fallthrough.
function Ho(e){var t="string"==typeof e?e:Po[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Uo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}
// Look up the name of a key as indicated by an event object.
function Go(e,t){if(h&&34==e.keyCode&&e.char)return!1;var n=Po[e.keyCode];return null!=n&&!e.altGraphKey&&(
// Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,
// so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)
3==e.keyCode&&e.code&&(n=e.code),Uo(n,e,t))}function Vo(e){return"string"==typeof e?jo[e]:e}
// Helper for deleting text near the selection(s), used to implement
// backspace, delete, and similar functionality.
function Wo(e,t){
// Build up a set of ranges to kill first, merging overlapping
// ranges.
for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var a=t(n[i]);r.length&&ot(a.from,K(r).to)<=0;){var o=r.pop();if(ot(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}
// Next, remove those actual ranges.
Ti(e,(function(){for(var t=r.length-1;t>=0;t--)ro(e.doc,"",r[t].from,r[t].to,"+delete");si(e)}))}function qo(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Yo(e,t,n){var r=qo(e,t.ch,n);return null==r?null:new at(t.line,r,n<0?"after":"before")}function Ko(e,t,n,r,i){if(e){var a=fe(n,t.doc.direction);if(a){var o,s=i<0?K(a):a[0],c=i<0==(1==s.level)?"after":"before";
// With a wrapped rtl chunk (possibly spanning multiple bidi parts),
// it could be that the last bidi part is not on the last visual line,
// since visual lines contain content order-consecutive chunks.
// Thus, in rtl, we are looking for the first (content-order) character
// in the rtl chunk that is on the last line (that is, the same line
// as the last (content-order) character).
if(s.level>0||"rtl"==t.doc.direction){var l=nr(t,n);o=i<0?n.text.length-1:0;var u=rr(t,l,o).top;o=se((function(e){return rr(t,l,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=qo(n,o,1))}else o=i<0?s.to:s.from;return new at(r,o,c)}}return new at(r,i<0?n.text.length:0,i<0?"before":"after")}function $o(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return Yo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ue(i,n.ch,n.sticky),o=i[a];if("ltr"==e.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))
// Case 1: We move within an ltr part in an ltr editor. Even with wrapped lines,
// nothing interesting happens.
return Yo(t,n,r);var s,c=function(e,n){return qo(t,e instanceof at?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||nr(e,t),_r(e,t,s,n)):{begin:0,end:t.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==e.doc.direction||1==o.level){var h=1==o.level==r<0,f=c(n,h?1:-1);if(null!=f&&(h?f<=o.to&&f<=u.end:f>=o.from&&f>=u.begin)){
// Case 2: We move within an rtl part or in an rtl editor on the same visual line
var d=h?"before":"after";return new at(n.line,f,d)}}
// Case 3: Could not move within this bidi part in this visual line, so leave
// the current bidi part
var p=function(e,t,r){for(var a=function(e,t){return t?new at(n.line,c(e,1),"before"):new at(n.line,e,"after")};e>=0&&e<i.length;e+=t){var o=i[e],s=t>0==(1!=o.level),l=s?r.begin:c(r.end,-1);if(o.from<=l&&l<o.to)return a(l,s);if(l=s?o.from:c(o.to,-1),r.begin<=l&&l<r.end)return a(l,s)}},g=p(a+r,r,u);
// Case 3a: Look for other bidi parts on the same visual line
if(g)return g;
// Case 3b: Look for other bidi parts on the next visual line
var m=r>0?u.end:c(u.begin,-1);return null==m||r>0&&m==t.text.length||!(g=p(r>0?0:i.length-1,r,l(m)))?null:g;
// Case 4: Nowhere to move
}
// Commands are parameter-less actions that can be performed on an
// editor, mostly used for keybindings.
jo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},
// Note that the save and find-related commands aren't defined by
// default. User code or addons can define them. Unknown commands
// are simply ignored.
jo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},
// Very basic readline/emacs-style bindings, which are standard on Mac.
jo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},jo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},jo.default=y?jo.macDefault:jo.pcDefault;var Jo={selectAll:Ka,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return Wo(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:at(t.head.line+1,0)}:{from:t.head,to:at(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Wo(e,(function(t){return{from:at(t.from().line,0),to:ft(e.doc,at(t.to().line+1,0))}}))},delLineLeft:function(e){return Wo(e,(function(e){return{from:at(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Wo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Wo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(at(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(at(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Xo(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Zo(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),V)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),V)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?es(e,t.head):r}),V)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=j(e.getLine(a.line),a.ch,r);t.push(Y(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},
// Swap the two chars left and right of each selection's head.
// Move cursor behind the two swapped characters afterwards.
// Doesn't consider line feeds a character.
// Doesn't scan more than one line above to find a character.
// Doesn't do anything on an empty line.
// Doesn't do anything with non-empty selections.
transposeChars:function(e){return Ti(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,a=Je(e.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new at(i.line,i.ch-1)),i.ch>0)i=new at(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),at(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var o=Je(e.doc,i.line-1).text;o&&(i=new at(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),at(i.line-1,o.length-1),i,"+transpose"))}n.push(new aa(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ti(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);si(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Xo(e,t){var n=Je(e.doc,t),r=Xt(n);return r!=n&&(t=tt(r)),Ko(!0,e,r,t,1)}function Zo(e,t){var n=Je(e.doc,t),r=Zt(n);return r!=n&&(t=tt(r)),Ko(!0,e,n,t,-1)}function es(e,t){var n=Xo(e,t.line),r=Je(e.doc,n.line),i=fe(r,e.doc.direction);if(!i||0==i[0].level){var a=Math.max(0,r.text.search(/\S/)),o=t.line==n.line&&t.ch<=a&&t.ch;return at(n.line,o?0:a,n.sticky)}return n}
// Run a handler that was bound to a key.
function ts(e,t,n){if("string"==typeof t&&!(t=Jo[t]))return!1;
// Ensure previous input has been read, so that the handler sees a
// consistent view of the document
e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ns(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=zo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&zo(t,e.options.extraKeys,n,e)||zo(t,e.options.keyMap,n,e)}
// Note that, despite the name, this function is also used to check
// for bound mouse clicks.
var rs=new N;function is(e,t,n,r){var i=e.state.keySeq;if(i){if(Ho(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rs.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),as(e,i+" "+t,n,r))return!0}return as(e,t,n,r)}function as(e,t,n,r){var i=ns(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Bn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),Yr(e)),!!i}
// Handle a key from the keydown event.
function os(e,t){var n=Go(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?is(e,"Shift-"+n,t,(function(t){return ts(e,t,!0)}))||is(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ts(e,t)})):is(e,n,t,(function(t){return ts(e,t)})))}
// Handle a key from the keypress event
function ss(e,t,n){return is(e,"'"+n+"'",t,(function(t){return ts(e,t,!0)}))}var cs=null;function ls(e){var t=this;if(t.curOp.focus=O(),!ye(t,e)){
// IE does strange things with escape.
o&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=os(t,e);h&&(cs=r?n:null,
// Opera has no cut event... we try to at least catch the key combo
r||88!=n||Qe||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),
// Turn mouse into crosshair when Alt is held on Mac.
18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||us(t)}}function us(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(E(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n))}D(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}function hs(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function fs(e){var t=this;if(!(Gn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(h&&n==cs)return cs=null,void xe(e);if(!h||e.which&&!(e.which<10)||!os(t,e)){var i=String.fromCharCode(null==r?n:r);
// Some browsers fire keypress events for backspace
"\b"!=i&&(ss(t,e,i)||t.display.input.onKeyPress(e))}}}var ds,ps,gs=400,ms=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vs(e,t){var n=+new Date;return ps&&ps.compare(n,e,t)?(ds=ps=null,"triple"):ds&&ds.compare(n,e,t)?(ps=new ms(n,e,t),ds=null,"double"):(ds=new ms(n,e,t),ps=null,"single")}
// A mouse down can be a single click, double click, triple click,
// start of selection drag, start of text drag, new cursor
// (ctrl-click), rectangle drag (alt-drag), or xwin
// middle-click-paste. Or it might be a click on something we should
// not interfere with, such as a scrollbar or widget.
function ys(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Gn(n,e))c||(
// Briefly turn off draggability, to allow widgets to do
// normal dragging things.
n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ks(t,e)){var r=Lr(t,e),i=ke(e),a=r?vs(r,i):"single";window.focus(),
// #3261: make sure, that we're not starting a second selection
1==i&&t.state.selectingText&&t.state.selectingText(e),r&&As(t,i,r,a,e)||(1==i?r?ws(t,r,a,e):Ee(e)==n.scroller&&xe(e):2==i?(r&&La(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?t.display.input.onContextMenu(e):$r(t)))}}function As(e,t,n,r,i){var a="Click";return"double"==r?a="Double"+a:"triple"==r&&(a="Triple"+a),is(e,Uo(a=(1==t?"Left":2==t?"Middle":"Right")+a,i),i,(function(t){if("string"==typeof t&&(t=Jo[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var a=A?n.shiftKey&&n.metaKey:n.altKey;i.unit=a?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}function ws(e,t,n,r){o?setTimeout(Q(Kr,e),0):e.curOp.focus=O();var i,a=bs(e,n,r),s=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?xs(e,r,t,a):_s(e,r,t,a)}
// Start a text drag. When it ends, see if any dragging actually
// happen, and treat as a click if it didn't.
function xs(e,t,n,r){var i=e.display,a=!1,l=Oi(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,me(i.wrapper.ownerDocument,"mouseup",l),me(i.wrapper.ownerDocument,"mousemove",u),me(i.scroller,"dragstart",h),me(i.scroller,"drop",l),a||(xe(t),r.addNew||La(e.doc,n,null,null,r.extend),
// Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)
c||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),u=function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return a=!0};
// Let the drag handler handle this.
c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,
// IE's approach to draggable
i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",h),pe(i.scroller,"drop",l),$r(e),setTimeout((function(){return i.input.focus()}),20)}function Cs(e,t,n){if("char"==n)return new aa(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new aa(at(t.line,0),ft(e.doc,at(t.line+1,0)));var r=n(e,t);return new aa(r.from,r.to)}
// Normal selection, as opposed to text dragging.
function _s(e,t,n,r){var i=e.display,a=e.doc;xe(t);var o,s,c=a.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=a.sel.contains(n),o=s>-1?l[s]:new aa(n,n)):(o=a.sel.primary(),s=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new aa(n,n)),n=Lr(e,t,!0,!0),s=-1;else{var u=Cs(e,n,r.unit);o=r.extend?Pa(o,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=l.length,za(a,oa(e,l.concat([o]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(za(a,oa(e,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Ra(a,s,o,G):(s=0,za(a,new ia([o],0),G),c=a.sel);var h=n;function f(t){if(0!=ot(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,u=j(Je(a,n.line).text,n.ch,l),f=j(Je(a,t.line).text,t.ch,l),d=Math.min(u,f),p=Math.max(u,f),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Je(a,g).text,y=W(v,d,l);d==p?i.push(new aa(at(g,y),at(g,y))):v.length>y&&i.push(new aa(at(g,y),at(g,W(v,p,l))))}i.length||i.push(new aa(n,n)),za(a,oa(e,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var A,b=o,w=Cs(e,t,r.unit),x=b.anchor;ot(w.anchor,x)>0?(A=w.head,x=ut(b.from(),w.anchor)):(A=w.anchor,x=lt(b.to(),w.head));var C=c.ranges.slice(0);C[s]=Is(e,new aa(ft(a,x),A)),za(a,oa(e,C,s),G)}}var d=i.wrapper.getBoundingClientRect(),p=0;
// Used to ensure timeout re-tries don't fire when another extend
// happened in the meantime (clearTimeout isn't reliable -- at
// least on Chrome, the timeouts still happen even when cleared,
// if the clear happens after their scheduled firing time).
function g(t){var n=++p,o=Lr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=ot(o,h)){e.curOp.focus=O(),f(o);var s=ti(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(Oi(e,(function(){p==n&&g(t)})),150)}else{var c=t.clientY<d.top?-20:t.clientY>d.bottom?20:0;c&&setTimeout(Oi(e,(function(){p==n&&(i.scroller.scrollTop+=c,g(t))})),50)}}function m(t){e.state.selectingText=!1,p=1/0,
// If e is null or undefined we interpret this as someone trying
// to explicitly cancel the selection rather than the user
// letting go of the mouse button.
t&&(xe(t),i.input.focus()),me(i.wrapper.ownerDocument,"mousemove",v),me(i.wrapper.ownerDocument,"mouseup",y),a.history.lastSelOrigin=null}var v=Oi(e,(function(e){0!==e.buttons&&ke(e)?g(e):m(e)})),y=Oi(e,m);e.state.selectingText=y,pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",y)}
// Used when mouse-selecting to adjust the anchor to the proper side
// of a bidi jump depending on the visual position of the head.
function Is(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var a=fe(i);if(!a)return t;var o=ue(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==a.length)return t;
// Compute the relative visual position of the head compared to the
// anchor (<0 is to the left, >0 to the right)
if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(a,r.ch,r.sticky),h=u-o||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?h<0:h>0}var f=a[l+(c?-1:0)],d=c==(1==f.level),p=d?f.from:f.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?t:new aa(new at(n.line,p,g),r)}
// Determines whether an event happened in the gutter, and fires the
// handlers for the corresponding event.
function Es(e,t,n,r){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!be(e,n))return _e(t);a-=s.top-o.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var l=o.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return ve(e,n,e,nt(e.doc,a),e.display.gutterSpecs[c].className,t),_e(t)}}function ks(e,t){return Es(e,t,"gutterClick",!0)}
// CONTEXT MENU HANDLING
// To make the context menu work, we need to briefly unhide the
// textarea (making it as unobtrusive as possible) to let the
// right-click take effect on it.
function Ss(e,t){Gn(e.display,t)||Bs(e,t)||ye(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Bs(e,t){return!!be(e,"gutterContextMenu")&&Es(e,t,"gutterContextMenu",!1)}function Ms(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}ms.prototype.compare=function(e,t,n){return this.time+gs>e&&0==ot(t,this.pos)&&n==this.button};var Ts={toString:function(){return"CodeMirror.Init"}},Os={},Ds={};function Ps(e){var t=e.optionHandlers;function n(n,r,i,a){e.defaults[n]=r,i&&(t[n]=a?function(e,t,n){n!=Ts&&i(e,t,n)}:i)}e.defineOption=n,
// Passed to option handlers when there is no old value.
e.Init=Ts,
// These two are, on init, called from the constructor because they
// have to be initialized before the editor can start at all.
n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,da(e)}),!0),n("indentUnit",2,da,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){pa(e),fr(e),Rr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var a=e.text.indexOf(t,i);if(-1==a)break;i=a+t.length,n.push(at(r,a))}r++}));for(var i=n.length-1;i>=0;i--)ro(e.doc,t,n[i],at(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ts&&e.refresh()})),n("specialCharPlaceholder",mn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor");// FIXME
}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ms(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Vo(t),i=n!=Ts&&Vo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Qs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Or(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){wi(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,Ur,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Xr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ls),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ur,!0),n("singleCursorHeightPerLine",!0,Ur,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,pa,!0),n("addModeClass",!1,pa,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,pa,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ls(e,t,n){if(!t!=!(n&&n!=Ts)){var r=e.display.dragFunctions,i=t?pe:me;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Qs(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),cn(e)),Pr(e),Rr(e),fr(e),setTimeout((function(){return yi(e)}),100)}
// A CodeMirror instance represents an editor. This is the object
// that user code is usually dealing with.
function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?R(t):{},
// Determine effective options based on given values and defaults.
R(Os,t,!1);var r=t.value;"string"==typeof r?r=new Co(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Rs.inputStyles[t.inputStyle](this),a=this.display=new Xi(e,r,i,t);for(var l in a.wrapper.CodeMirror=this,Ms(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],// stores maps added by addKeyMap
overlays:[],// highlighting overlays, as added by addOverlay
modeGen:0,// bumped when mode/overlay changes, used to invalidate highlighting info
overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,// used to disable editing during key handlers when in readOnly mode
pasteIncoming:-1,cutIncoming:-1,// help recognize paste/cut edits in input.poll
selectingText:!1,draggingText:!1,highlight:new N,// stores highlight worker timeout
keySeq:null,// Unfinished key sequence
specialChars:null},t.autofocus&&!v&&a.input.focus(),
// Override magic textarea content restore that IE sometimes does
// on our hidden textarea on reload
o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),js(this),To(),Ci(this),this.curOp.forceUpdate=!0,ya(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(Q(Jr,this),20):Xr(this),Ds)Ds.hasOwnProperty(l)&&Ds[l](n,t[l],Ts);Yi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Ns.length;++u)Ns[u](n);_i(this),
// Suppress optimizelegibility in Webkit, since it breaks text
// measuring on line wrapping boundaries.
c&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}
// The default configuration options.
// Attach the necessary event handlers when initializing the editor
function js(e){var t=e.display;pe(t.scroller,"mousedown",Oi(e,ys)),pe(t.scroller,"dblclick",
// Older IE's will not fire a second mousedown for a double click
o&&s<11?Oi(e,(function(t){if(!ye(e,t)){var n=Lr(e,t);if(n&&!ks(e,t)&&!Gn(e.display,t)){xe(t);var r=e.findWordAt(n);La(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||xe(t)}),
// Some browsers fire contextmenu *after* opening the menu, at
// which point we can't mess with it anymore. Context menu is
// handled in onMouseDown for these browsers.
pe(t.scroller,"contextmenu",(function(t){return Ss(e,t)}));
// Used to suppress mouse event handling when a touch happens
var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function c(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!a(i)&&!ks(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Gn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,o=e.coordsChar(t.activeTouch,"page");a=!r.prev||c(r,r.prev)?new aa(o,o):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(o):new aa(at(o.line,0),ft(e.doc,at(o.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),xe(n)}i()})),pe(t.scroller,"touchcancel",i),
// Sync scrolling between fake scrollbars and real scrollable
// area, ensure viewport is updated when scrolling.
pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),pi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),
// Listen to wheel events in order to try and update the viewport on time.
pe(t.scroller,"mousewheel",(function(t){return ra(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return ra(e,t)})),
// Prevent wrapper from ever scrolling
pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ie(t)},over:function(t){ye(e,t)||(ko(e,t),Ie(t))},start:function(t){return Eo(e,t)},drop:Oi(e,Io),leave:function(t){ye(e,t)||So(e)}};var l=t.input.getField();pe(l,"keyup",(function(t){return hs.call(e,t)})),pe(l,"keydown",Oi(e,ls)),pe(l,"keypress",Oi(e,fs)),pe(l,"focus",(function(t){return Jr(e,t)})),pe(l,"blur",(function(t){return Xr(e,t)}))}Rs.defaults=Os,
// Functions to run when options are changed.
Rs.optionHandlers=Ds;var Ns=[];
// Indent the given line. The how parameter can be "smart",
// "add"/null, "subtract", or "prev". When aggressive is false
// (typically set to true for forced single-line indents), empty
// lines are not indented, and places where the mode returns Pass
// are left alone.
function Fs(e,t,n,r){var i,a=e.doc;null==n&&(n="add"),"smart"==n&&(
// Fall back to "prev" when the mode doesn't have an indentation
// method.
a.mode.indent?i=At(e,t).state:n="prev");var o=e.options.tabSize,s=Je(a,t),c=j(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=a.mode.indent(i,s.text.slice(u.length),s.text))==H||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>a.first?j(Je(a,t-1).text,null,o):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var h="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/o);d;--d)f+=o,h+="\t";if(f<l&&(h+=Y(l-f)),h!=u)return ro(a,h,at(t,0),at(t,u.length),"+input"),s.stateAfter=null,!0;
// Ensure that, if the cursor was in the whitespace at the start
// of the line, it is moved to the end of that space.
for(var p=0;p<a.sel.ranges.length;p++){var g=a.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){var m=at(t,u.length);Ra(a,p,new aa(m,m));break}}}
// This will be set to a {lineWise: bool, text: [string]} object, so
// that, when pasting, we know what kind of selections the copied
// text was made out of.
Rs.defineInitHook=function(e){return Ns.push(e)};var zs=null;function Hs(e){zs=e}function Us(e,t,n,r,i){var a=e.doc;e.display.shift=!1,r||(r=a.sel);var o=+new Date-200,s="paste"==i||e.state.pasteIncoming>o,c=Pe(t),l=null;
// When pasting N lines into N selections, insert one line per selection
if(s&&r.ranges.length>1)if(zs&&zs.text.join("\n")==t){if(r.ranges.length%zs.text.length==0){l=[];for(var u=0;u<zs.text.length;u++)l.push(a.splitLines(zs.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=$(c,(function(e){return[e]})));
// Normal behavior is to insert the new text into every selection
for(var h=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],p=d.from(),g=d.to();d.empty()&&(n&&n>0?p=at(p.line,p.ch-n):e.state.overwrite&&!s?g=at(g.line,Math.min(Je(a,g.line).text.length,g.ch+K(c).length)):s&&zs&&zs.lineWise&&zs.text.join("\n")==t&&(p=g=at(p.line,0)));var m={from:p,to:g,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming>o?"cut":"+input")};Ja(e.doc,m),Bn(e,"inputRead",e,m)}t&&!s&&Vs(e,t),si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Gs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ti(t,(function(){return Us(t,n,0,null,"paste")})),!0}function Vs(e,t){
// When an 'electric' character is inserted, immediately trigger a reindent
if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=e.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(t.indexOf(a.electricChars.charAt(s))>-1){o=Fs(e,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Fs(e,i.head.line,"smart"));o&&Bn(e,"electricInput",e,i.head.line)}}}function Ws(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,a={anchor:at(i,0),head:at(i+1,0)};n.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:n}}function qs(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ys(){var e=B("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=B("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");
// The textarea is kept positioned near the cursor to prevent the
// fact that it'll be scrolled into view on input from scrolling
// our fake cursor out of view. On webkit, when wrap=off, paste is
// very slow. So make the area wide instead.
return c?e.style.width="1000px":e.setAttribute("wrap","off"),
// If border: 0; -- iOS fails to open keyboard (issue #1287)
g&&(e.style.border="1px solid black"),qs(e),t}
// The publicly visible API. Note that methodOp(f) means
// 'wrap f in an operation, performed on its `this` parameter'.
// This is not the complete set of editor methods. Most of the
// methods defined on the Doc type are also injected into
// CodeMirror.prototype, for backwards compatibility and
// convenience.
function Ks(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Oi(this,t[e])(this,n,i),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Vo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Di((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Rr(this)})),removeOverlay:Di((function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void Rr(t)}})),indentLine:Di((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Fs(this,e,t,n)})),indentSelection:Di((function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var a=n[i];if(a.empty())a.head.line>r&&(Fs(t,a.head.line,e,!0),r=a.head.line,i==t.doc.sel.primIndex&&si(t));else{var o=a.from(),s=a.to(),c=Math.max(r,o.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=c;l<r;++l)Fs(t,l,e);var u=t.doc.sel.ranges;0==o.ch&&n.length==u.length&&u[i].from().ch>0&&Ra(t.doc,i,new aa(o,u[i].to()),U)}}})),
// Fetch the parser token for a given character. Useful for hacks
// that want to inspect the mode state (say, for completion).
getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,at(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,a=e.ch;if(0==a)t=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]<a)){t=n[2*o+2];break}r=o+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var a=n[t],o=this.getModeAt(e);if("string"==typeof o[t])a[o[t]]&&i.push(a[o[t]]);else if(o[t])for(var s=0;s<o[t].length;s++){var c=a[o[t][s]];c&&i.push(c)}else o.helperType&&a[o.helperType]?i.push(a[o.helperType]):a[o.name]&&i.push(a[o.name]);for(var l=0;l<a._global.length;l++){var u=a._global[l];u.pred(o,r)&&-1==F(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(e,t){var n=this.doc;return At(this,(e=ht(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Ar(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return yr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return xr(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var a=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>a&&(e=a,i=!0),r=Je(this.doc,e)}else r=e;return mr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Br(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var a=this.display,o=(e=Ar(this,ft(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)o=e.top;else if("above"==r||"near"==r){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);
// Default to positioning above (if specified and possible); otherwise default to positioning below
("above"==r||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(o=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==i?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ii(this,{left:s,top:o,right:s+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:Di(ls),triggerOnKeyPress:Di(fs),triggerOnKeyUp:hs,triggerOnMouseDown:Di(ys),execCommand:function(e){if(Jo.hasOwnProperty(e))return Jo[e].call(null,this)},triggerElectric:Di((function(e){Vs(this,e)})),findPosH:function(e,t,n,r){var i=this,a=1;t<0&&(a=-1,t=-t);for(var o=ft(this.doc,e),s=0;s<t&&!(o=$s(i.doc,o,a,n,r)).hitSide;++s);return o},moveH:Di((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?$s(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),V)})),deleteH:Di((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Wo(this,(function(n){var i=$s(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=this,a=1,o=r;t<0&&(a=-1,t=-t);for(var s=ft(this.doc,e),c=0;c<t;++c){var l=Ar(i,s,"div");if(null==o?o=l.left:l.left=o,(s=Js(i,l,a,n)).hitSide)break}return s},moveV:Di((function(e,t){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(a)return e<0?o.from():o.to();var s=Ar(n,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var c=Js(n,s,e,t);return"page"==t&&o==r.sel.primary()&&oi(n,yr(n,c,"div").top-s.top),c}),V),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]})),
// Find the word at the given position (as returned by coordsChar).
findWordAt:function(e){var t=Je(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var a=t.charAt(n),o=ne(a,i)?function(e){return ne(e,i)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&o(t.charAt(n-1));)--n;for(;r<t.length&&o(t.charAt(r));)++r}return new aa(at(e.line,n),at(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==O()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Di((function(e,t){ci(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yn(this)-this.display.barHeight,width:e.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:$n(this),clientWidth:Kn(this)}},scrollIntoView:Di((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:at(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?li(this,e):hi(this,e.from,e.to,e.margin)})),setSize:Di((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&hr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){jr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return Ti(this,e)},startOperation:function(){return Ci(this)},endOperation:function(){return _i(this)},refresh:Di((function(){var e=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,fr(this),ci(this,this.doc.scrollLeft,this.doc.scrollTop),Vi(this.display),(null==e||Math.abs(e-Br(this.display))>.5)&&Pr(this),ve(this,"refresh",this)})),swapDoc:Di((function(e){var t=this.doc;return t.cm=null,
// Cancel the current text selection if any (#5821)
this.state.selectingText&&this.state.selectingText(),ya(this,e),fr(this),this.display.input.reset(),ci(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Bn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,a){e.registerHelper(t,r,a),n[t]._global.push({pred:i,val:a})}}
// Used for horizontal relative motion. Dir is -1 or 1 (left or
// right), unit can be "char", "column" (like char, but doesn't
// cross line boundaries), "word" (across next word), or "group" (to
// the start of next group of word or non-word-non-whitespace
// chars). The visually param controls whether, in right-to-left
// text, direction 1 means to move towards the next index in the
// string, or towards the character to the right of the current
// position. The resulting position will have a hitSide=true
// property if it reached the end of the document.
function $s(e,t,n,r,i){var a=t,o=n,s=Je(e,t.line);function c(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new at(r,t.ch,t.sticky),s=Je(e,r))}function l(r){var a;if(null==(a=i?$o(e.cm,s,t,n):Yo(s,t,n))){if(r||!c())return!1;t=Ko(i,e.cm,s,t.line,n)}else t=a;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var p=s.text.charAt(t.ch)||"\n",g=ne(p,f)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||d||g||(g="s"),u&&u!=g){n<0&&(n=1,l(),t.sticky="after");break}if(g&&(u=g),n>0&&!l(!d))break}var m=qa(e,t,a,o,!0);return st(a,m)&&(m.hitSide=!0),m}
// For relative vertical movement. Dir may be -1 or 1. Unit can be
// "page" or "line". The resulting position will have a hitSide=true
// property if it reached the end of the document.
function Js(e,t,n,r){var i,a,o=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*Br(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(a=xr(e,s,i)).outside;){if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}
// CONTENTEDITABLE INPUT STYLE
var Xs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Xn(n,r,t.line),a=fe(r,e.doc.direction),o="left";a&&(o=ue(a,t.ch)%2?"right":"left");var s=or(i.map,t.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function ec(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tc(e,t){return t&&(e.bad=!0),e}function nc(e,t,n,r,i){var a="",o=!1,s=e.doc.lineSeparator(),c=!1;function l(e){return function(t){return t.id==e}}function u(){o&&(a+=s,c&&(a+=s),o=c=!1)}function h(e){e&&(u(),a+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void h(n);var a,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(at(r,0),at(i+1,0),l(+d));return void(p.length&&(a=p[0].find(0))&&h(Xe(e.doc,a.from,a.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var m=0;m<t.childNodes.length;m++)f(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),g&&(o=!0)}else 3==t.nodeType&&h(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;f(t),t!=n;)t=t.nextSibling,c=!1;return a}function rc(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return tc(e.clipPos(at(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var a=e.display.view[i];if(a.node==r)return ic(a,t,n)}}function ic(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!T(r,t))return tc(at(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var a=e.rest?K(e.rest):e.line;return tc(at(tt(a),a.text.length),i)}var o=3==t.nodeType?t:null,s=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,n&&(n=o.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var a=i<0?c.map:l[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==n){var u=tt(i<0?e.line:e.rest[i]),h=a[o]+r;return(r<0||s!=t)&&(h=a[o+(r?1:0)]),at(u,h)}}}var h=u(o,s,n);if(h)return tc(h,i);
// FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems
for(var f=s.nextSibling,d=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(h=u(f,f.firstChild,0))return tc(at(h.line,h.ch-d),i);d+=f.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(h=u(p,p.firstChild,-1))return tc(at(h.line,h.ch+g),i);g+=p.textContent.length}}
// TEXTAREA INPUT STYLE
Xs.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function a(e){if(!ye(r,e)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ws(r);Hs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,U),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=zs.text.join("\n");
// iOS exposes the clipboard API, but seems to discard content inserted into it
if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}
// Old-fashioned briefly-focus-a-textarea hack
var o=Ys(),s=o.firstChild;r.display.lineSpace.insertBefore(o,r.display.lineSpace.firstChild),s.value=zs.text.join("\n");var c=document.activeElement;L(s),setTimeout((function(){r.display.lineSpace.removeChild(o),c.focus(),c==i&&n.showPrimarySelection()}),50)}}qs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){ye(r,e)||Gs(e,r)||
// IE doesn't fire input events, so we schedule a read for the pasted content in this way
s<=11&&setTimeout(Oi(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",a),pe(i,"cut",a)},Xs.prototype.prepareSelection=function(){var e=Gr(this.cm,!1);return e.focus=this.cm.state.focused,e},Xs.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Xs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xs.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),a=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom)e.removeAllRanges();else{var o=rc(t,e.anchorNode,e.anchorOffset),s=rc(t,e.focusNode,e.focusOffset);if(!o||o.bad||!s||s.bad||0!=ot(ut(o,s),i)||0!=ot(lt(o,s),a)){var c=t.display.view,l=i.line>=t.display.viewFrom&&Zs(t,i)||{node:c[0].measure.map[2],offset:0},u=a.line<t.display.viewTo&&Zs(t,a);if(!u){var h=c[c.length-1].measure,f=h.maps?h.maps[h.maps.length-1]:h.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(l&&u){var d,p=e.rangeCount&&e.getRangeAt(0);try{d=I(l.node,l.offset,u.offset,u.node)}catch(e){}// Our model of the DOM might be outdated, in which case the range we try to set can be impossible
d&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Xs.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Xs.prototype.showMultipleSelections=function(e){S(this.cm.display.cursorDiv,e.cursors),S(this.cm.display.selectionDiv,e.selection)},Xs.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Xs.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return T(this.div,t)},Xs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xs.prototype.blur=function(){this.div.blur()},Xs.prototype.getField=function(){return this.div},Xs.prototype.supportsTouch=function(){return!0},Xs.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Ti(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},Xs.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Xs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;
// On Android Chrome (version 56, at least), backspacing into an
// uneditable block element will put the cursor in that element,
// and then, because it's not editable, hide the virtual keyboard.
// Because Android doesn't allow us to actually detect backspace
// presses in a sane way, this code checks for when that happens
// and simulates a backspace press in this case.
if(m&&u&&this.cm.display.gutterSpecs.length&&ec(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rc(t,e.anchorNode,e.anchorOffset),r=rc(t,e.focusNode,e.focusOffset);n&&r&&Ti(t,(function(){za(t.doc,sa(n,r),U),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Xs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,a=r.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>r.firstLine()&&(o=at(o.line-1,Je(r.doc,o.line-1).length)),s.ch==Je(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=at(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(e=Qr(r,o.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=Qr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=tt(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(nc(r,n,l,t,c)),f=Xe(r.doc,at(t,0),at(c,Je(r.doc,c).text.length));h.length>1&&f.length>1;)if(K(h)==K(f))h.pop(),f.pop(),c--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),t++}for(var d=0,p=0,g=h[0],m=f[0],v=Math.min(g.length,m.length);d<v&&g.charCodeAt(d)==m.charCodeAt(d);)++d;for(var y=K(h),A=K(f),b=Math.min(y.length-(1==h.length?d:0),A.length-(1==f.length?d:0));p<b&&y.charCodeAt(y.length-p-1)==A.charCodeAt(A.length-p-1);)++p;
// Try to move start of change to start of selection if ambiguous
if(1==h.length&&1==f.length&&t==o.line)for(;d&&d>o.ch&&y.charCodeAt(y.length-p-1)==A.charCodeAt(A.length-p-1);)d--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var w=at(t,d),x=at(c,f.length?K(f).length-p:0);return h.length>1||h[0]||ot(w,x)?(ro(r.doc,h,w,x,"+input"),!0):void 0},Xs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xs.prototype.reset=function(){this.forceCompositionEnd()},Xs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Xs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Xs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ti(this.cm,(function(){return Rr(e.cm)}))},Xs.prototype.setUneditable=function(e){e.contentEditable="false"},Xs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Oi(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Xs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Xs.prototype.onContextMenu=function(){},Xs.prototype.resetPosition=function(){},Xs.prototype.needsContentAttribute=!0;var ac=function(e){this.cm=e,
// See input.poll and input.reset
this.prevInput="",
// Flag that indicates whether we expect input to appear real soon
// now (after some event like 'keypress' or 'input') and are
// polling intensively.
this.pollingFast=!1,
// Self-resetting timeout for the poller
this.polling=new N,
// Used to work around IE issue with selection being forgotten when focus moves away from textarea
this.hasSelection=!1,this.composing=null};function oc(e,t){
// Set autofocus to true if this textarea is focused, or if it has
// autofocus and no other element is focused.
if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=O();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,// Prevent this from being ran twice
r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function sc(e){e.off=me,e.on=pe,e.wheelEventPixels=na,e.Doc=Co,e.splitLines=Pe,e.countColumn=j,e.findColumn=W,e.isWordChar=te,e.Pass=H,e.signal=ve,e.Line=ln,e.changeEnd=ca,e.scrollbarModel=bi,e.Pos=at,e.cmpPos=ot,e.modes=Ne,e.mimeModes=Fe,e.resolveMode=Ue,e.getMode=Ge,e.modeExtensions=Ve,e.extendMode=We,e.copyState=qe,e.startState=Ke,e.innerMode=Ye,e.commands=Jo,e.keyMap=jo,e.keyName=Go,e.isModifierKey=Ho,e.lookupKey=zo,e.normalizeKeyMap=Fo,e.StringStream=$e,e.SharedTextMarker=vo,e.TextMarker=go,e.LineWidget=uo,e.e_preventDefault=xe,e.e_stopPropagation=Ce,e.e_stop=Ie,e.addClass=D,e.contains=T,e.rmClass=E,e.keyNames=Po}
// EDITOR CONSTRUCTOR
ac.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!ye(r,e)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ws(r);Hs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),
// Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)
g&&(i.style.width="0px"),pe(i,"input",(function(){o&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){ye(r,e)||Gs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",a),pe(i,"copy",a),pe(e.scroller,"paste",(function(t){if(!Gn(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();
// Pass the `paste` event to the textarea so it's handled by its event listener.
var a=new Event("paste");a.clipboardData=t.clipboardData,i.dispatchEvent(a)}})),
// Prevent normal selection in the editor (we handle our own)
pe(e.lineSpace,"selectstart",(function(t){Gn(e,t)||xe(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ac.prototype.createField=function(e){
// Wraps and hides input textarea
this.wrapper=Ys(),
// The semihidden textarea that is focused when the editor is
// focused, and receives input.
this.textarea=this.wrapper.firstChild},ac.prototype.prepareSelection=function(){
// Redraw the selection and/or cursor
var e=this.cm,t=e.display,n=e.doc,r=Gr(e);
// Move the hidden textarea near the cursor to prevent scrolling artifacts
if(e.options.moveInputWithCursor){var i=Ar(e,n.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},ac.prototype.showSelection=function(e){var t=this.cm.display;S(t.cursorDiv,e.cursors),S(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},
// Reset the input to correspond to the selection (or to be empty,
// when not typing and nothing is selected)
ac.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),o&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},ac.prototype.getField=function(){return this.textarea},ac.prototype.supportsTouch=function(){return!1},ac.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||O()!=this.textarea))try{this.textarea.focus()}catch(e){}// IE8 will throw if the textarea is display: none or not in DOM
},ac.prototype.blur=function(){this.textarea.blur()},ac.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ac.prototype.receivedFocus=function(){this.slowPoll()},
// Poll for input changes, using the normal rate of polling. This
// runs as long as the editor is focused.
ac.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},
// When an event has just come in that is likely to add or change
// something in the input textarea, we poll faster, to ensure that
// the change appears on the screen quickly.
ac.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},
// Read input from the textarea, and update the document to match.
// When something is selected, it is present in the textarea, and
// selected (unless it is huge, in which case a placeholder is
// used). When nothing is selected, the cursor sits after previously
// seen text (can be empty), which is stored in prevInput (we must
// not reset the textarea when typing, because that breaks IME).
ac.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;
// Since this is called a *lot*, try to bail out as cheaply as
// possible when it is clear that nothing happened. hasSelection
// will be the case when there is a lot of text in the textarea,
// in which case reading its value would be expensive.
if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;
// If nothing changed, bail.
if(i==r&&!t.somethingSelected())return!1;
// Work around nonsensical selection resetting in IE9/10, and
// inexplicable appearance of private area unicode characters on
// some key combos in Mac (#2689).
if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}
// Find the part of the input that is actually new
for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Ti(t,(function(){Us(t,i.slice(c),r.length-c,null,e.composing?"*compose":null),
// Don't leave long text in the textarea, since it makes further polling slow
i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ac.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ac.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},ac.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Lr(n,e),l=r.scroller.scrollTop;if(a&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Oi(n,za)(n.doc,sa(a),U);var u,f=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),// Work around Chrome issue (#2712)
r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),
// Adds "Select all" to context menu in FF
n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&m(),C){Ie(e);var g=function(){me(window,"mouseup",g),setTimeout(v,20)};pe(window,"mouseup",g)}else setTimeout(v,50)}// Opera is difficult.
// Reset the current text selection only if the click is done outside of the selection
// and 'resetSelectionOnContextMenu' option is true.
// Select-all will be greyed out if there's nothing to select, so
// this adds a zero-width space so that we can later check whether
// it got selected.
function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),a="​"+(e?i.value:"");i.value="⇚",// Used to catch context-menu undo
i.value=a,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=a.length,
// Re-set this, in case some other handler touched the
// selection in the meantime.
r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!o||o&&s<9)&&m();var e=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Oi(n,Ka)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},ac.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},ac.prototype.setUneditable=function(){},ac.prototype.needsContentAttribute=!1,Ps(Rs),Ks(Rs);
// Set up methods on CodeMirror's prototype to redirect to the editor's document.
var cc="iter insert remove copy getEditor constructor".split(" ");for(var lc in Co.prototype)Co.prototype.hasOwnProperty(lc)&&F(cc,lc)<0&&(Rs.prototype[lc]=function(e){return function(){return e.apply(this.doc,arguments)}}(Co.prototype[lc]));return we(Co),Rs.inputStyles={textarea:ac,contenteditable:Xs},
// Extra arguments are stored as the mode's dependencies, which is
// used by (legacy) mechanisms like loadmode.js to automatically
// load a mode. (Preferred mechanism is the require/define calls.)
Rs.defineMode=function(e/*, mode, …*/){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),ze.apply(this,arguments)},Rs.defineMIME=He,
// Minimal default mode.
Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),
// EXTENSIONS
Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){Co.prototype[e]=t},Rs.fromTextArea=oc,sc(Rs),Rs.version="5.46.0",Rs}();
/***/},
/***/"56ef":
/***/function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),c=i([].concat);
// all object keys, includes non-enumerable and symbols
e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},
/***/5705:
/***/function(e,t,n){"use strict";var r=n("d77f"),i=n("019f"),a="number";e.exports=function(e){if("string"!==e&&e!==a&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=a)}},
/***/5728:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"g",(function(){/* reexport */return Fp})),n.d(t,"h",(function(){/* reexport */return um})),n.d(t,"d",(function(){/* reexport */return Qm})),n.d(t,"a",(function(){/* reexport */return Xm})),n.d(t,"b",(function(){/* reexport */return tv})),n.d(t,"c",(function(){/* reexport */return nv})),n.d(t,"e",(function(){/* reexport */return cv})),n.d(t,"f",(function(){/* reexport */return pv})),n.d(t,"j",(function(){/* reexport */return wv})),n.d(t,"l",(function(){/* reexport */return Vv})),n.d(t,"m",(function(){/* reexport */return Jv})),n.d(t,"i",(function(){/* reexport */return l})),n.d(t,"k",(function(){/* reexport */return B}));
// UNUSED EXPORTS: isValidDefinition, attrPresets, attrRegistry, backgroundRegistry, connectionPointRegistry, connectorPresets, connectorRegistry, edgeAnchorRegistry, filterRegistry, Grid, gridPresets, gridRegistry, highlighterCheck, highlighterRegistry, markerRegistry, markerNormalize, nodeAnchorRegistry, portLabelLayoutPresets, portLabelLayoutRegistry, portLayoutPresets, portLayoutRegistry, Registry, routerPresets, routerRegistry, nodeToolPresets, nodeToolRegistry, edgeToolPresets, edgeToolRegistry, Cell, Node, Edge, Model, Collection, CellView, CellViewToStringTag, EdgeView, EdgeViewToStringTag, NodeViewToStringTag, ToolItem, ToolsView, View, GraphView, TransformManager, BackgroundManager, getOptions, defaults, Config, MiniMap, Scroller, Stencil, dijkstra, PriorityQueue, Interp, Timing, Basecoat, Disablable, Disposable, disposable, Dictionary, Dom, Events, isModifierKeyEqual, isModifierKeyMatch, parseModifierKey, NumberExt, IS_MAC, IS_IOS, IS_WINDOWS, IS_IE, IS_IE11, IS_EDGE, IS_NETSCAPE, IS_CHROME_APP, IS_CHROME, IS_OPERA, IS_FIREFOX, IS_SAFARI, SUPPORT_TOUCH, SUPPORT_POINTER, SUPPORT_PASSIVE, NO_FOREIGNOBJECT, SUPPORT_FOREIGNOBJECT, getHMRStatus, isApplyingHMR, isEventSupported, StringExt, Text, Vector, VectorToStringTag, ArrayExt, Color, CssLoader, DataUri, FunctionExt, Unit, Util, toDeg, toRad, normalize, Point, Line, Ellipse, Rectangle, Path, Segment, normalizePathData, Curve, Polyline, round, random, clamp, snapToGrid, containsPoint, squaredLength
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/array/index.js
var r={};n.r(r),n.d(r,"castArray",(function(){return P})),n.d(r,"difference",(function(){return me})),n.d(r,"groupBy",(function(){return kt})),n.d(r,"max",(function(){return Mt})),n.d(r,"sortBy",(function(){return Rt})),n.d(r,"sortedIndex",(function(){return Ht})),n.d(r,"sortedIndexBy",(function(){return Ut})),n.d(r,"union",(function(){return Yt})),n.d(r,"uniq",(function(){return Kt}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/number/number.js
var i={};n.r(i),n.d(i,"isNumber",(function(){return $t})),n.d(i,"clamp",(function(){return cn})),n.d(i,"mod",(function(){return ln})),n.d(i,"random",(function(){return un})),n.d(i,"isPercentage",(function(){return hn})),n.d(i,"normalizePercentage",(function(){return fn})),n.d(i,"parseCssNumeric",(function(){return dn})),n.d(i,"normalizeSides",(function(){return pn}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/css-loader/index.js
var a={};n.r(a),n.d(a,"ensure",(function(){return jn})),n.d(a,"clean",(function(){return Nn}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/datauri/index.js
var o={};n.r(o),n.d(o,"isDataUrl",(function(){return zn})),n.d(o,"imageToDataUri",(function(){return Hn})),n.d(o,"dataUriToBlob",(function(){return Un})),n.d(o,"downloadBlob",(function(){return Gn})),n.d(o,"downloadDataUri",(function(){return Vn})),n.d(o,"svgToDataUrl",(function(){return Wn}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/function/index.js
var s={};n.r(s),n.d(s,"isAsync",(function(){return Yn})),n.d(s,"isAsyncLike",(function(){return qn})),n.d(s,"toAsyncBoolean",(function(){return Kn})),n.d(s,"toDeferredBoolean",(function(){return $n})),n.d(s,"apply",(function(){return rr})),n.d(s,"call",(function(){return ir})),n.d(s,"debounce",(function(){return tr})),n.d(s,"throttle",(function(){return nr}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/string/string.js
var c={};n.r(c),n.d(c,"uniqueId",(function(){return so})),n.d(c,"lowerFirst",(function(){return ka})),n.d(c,"upperFirst",(function(){return wa})),n.d(c,"camelCase",(function(){return _a})),n.d(c,"kebabCase",(function(){return Ba})),n.d(c,"pascalCase",(function(){return Ma})),n.d(c,"constantCase",(function(){return Ta})),n.d(c,"dotCase",(function(){return Oa})),n.d(c,"pathCase",(function(){return Da})),n.d(c,"sentenceCase",(function(){return Pa})),n.d(c,"titleCase",(function(){return La})),n.d(c,"hashcode",(function(){return co})),n.d(c,"uuid",(function(){return lo})),n.d(c,"getSpellingSuggestion",(function(){return uo}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/object/object.js
var l={};n.r(l),n.d(l,"has",(function(){return wo})),n.d(l,"pick",(function(){return ko})),n.d(l,"merge",(function(){return Yo})),n.d(l,"isEqual",(function(){return Ko})),n.d(l,"isEmpty",(function(){return Zo})),n.d(l,"isObject",(function(){return We.a})),n.d(l,"isPlainObject",(function(){return Fo})),n.d(l,"clone",(function(){return ts})),n.d(l,"cloneDeep",(function(){return ns.a})),n.d(l,"defaults",(function(){return as})),n.d(l,"defaultsDeep",(function(){return cs})),n.d(l,"applyMixins",(function(){return ls})),n.d(l,"inherit",(function(){return hs})),n.d(l,"createClass",(function(){return ds})),n.d(l,"ensure",(function(){return ps})),n.d(l,"getValue",(function(){return gs})),n.d(l,"getNumber",(function(){return ms})),n.d(l,"getBoolean",(function(){return vs})),n.d(l,"isMaliciousProp",(function(){return ys})),n.d(l,"getByPath",(function(){return As})),n.d(l,"setByPath",(function(){return bs})),n.d(l,"unsetByPath",(function(){return ws})),n.d(l,"flatten",(function(){return xs}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/text/main.js
var u={};n.r(u),n.d(u,"annotate",(function(){return Cs})),n.d(u,"findAnnotationsAtIndex",(function(){return _s})),n.d(u,"findAnnotationsBetweenIndexes",(function(){return Is})),n.d(u,"shiftAnnotations",(function(){return Es})),n.d(u,"sanitize",(function(){return ks}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/dom/main.js
var h={};n.r(h),n.d(h,"CASE_SENSITIVE_ATTR",(function(){return Qa})),n.d(h,"getAttribute",(function(){return Ra})),n.d(h,"removeAttribute",(function(){return ja})),n.d(h,"setAttribute",(function(){return Na})),n.d(h,"setAttributes",(function(){return Fa})),n.d(h,"attr",(function(){return za})),n.d(h,"qualifyAttr",(function(){return Ha})),n.d(h,"kebablizeAttrs",(function(){return Ua})),n.d(h,"styleToObject",(function(){return Ga})),n.d(h,"mergeAttrs",(function(){return Va})),n.d(h,"uniqueId",(function(){return Yr})),n.d(h,"ensureId",(function(){return Kr})),n.d(h,"isSVGGraphicsElement",(function(){return $r})),n.d(h,"ns",(function(){return Jr})),n.d(h,"svgVersion",(function(){return Xr})),n.d(h,"createElement",(function(){return Zr})),n.d(h,"createElementNS",(function(){return ei})),n.d(h,"createSvgElement",(function(){return ti})),n.d(h,"createSvgDocument",(function(){return ni})),n.d(h,"parseXML",(function(){return ri})),n.d(h,"tagName",(function(){return ii})),n.d(h,"index",(function(){return ai})),n.d(h,"find",(function(){return oi})),n.d(h,"findOne",(function(){return si})),n.d(h,"findParentByClass",(function(){return ci})),n.d(h,"contains",(function(){return li})),n.d(h,"remove",(function(){return ui})),n.d(h,"empty",(function(){return hi})),n.d(h,"append",(function(){return fi})),n.d(h,"prepend",(function(){return di})),n.d(h,"before",(function(){return pi})),n.d(h,"after",(function(){return gi})),n.d(h,"appendTo",(function(){return mi})),n.d(h,"isElement",(function(){return vi})),n.d(h,"isHTMLElement",(function(){return yi})),n.d(h,"children",(function(){return Ai})),n.d(h,"getClass",(function(){return Hr})),n.d(h,"hasClass",(function(){return Ur})),n.d(h,"addClass",(function(){return Gr})),n.d(h,"removeClass",(function(){return Vr})),n.d(h,"toggleClass",(function(){return Wr})),n.d(h,"setPrefixedStyle",(function(){return Ja})),n.d(h,"getComputedStyle",(function(){return Xa})),n.d(h,"hasScrollbars",(function(){return Za})),n.d(h,"getVendorPrefixedName",(function(){return $a})),n.d(h,"clearSelection",(function(){return eo})),n.d(h,"isCSSVariable",(function(){return no})),n.d(h,"computeStyle",(function(){return ro})),n.d(h,"computeStyleInt",(function(){return io})),n.d(h,"css",(function(){return ao})),n.d(h,"getData",(function(){return po})),n.d(h,"setData",(function(){return go})),n.d(h,"data",(function(){return mo})),n.d(h,"prop",(function(){return yo})),n.d(h,"text",(function(){return Ds})),n.d(h,"measureText",(function(){return Ps})),n.d(h,"splitTextByLength",(function(){return Ls})),n.d(h,"breakText",(function(){return Qs})),n.d(h,"KAPPA",(function(){return Rs})),n.d(h,"sample",(function(){return Ns})),n.d(h,"lineToPathData",(function(){return Fs})),n.d(h,"polygonToPathData",(function(){return zs})),n.d(h,"polylineToPathData",(function(){return Hs})),n.d(h,"getPointsFromSvgElement",(function(){return Gs})),n.d(h,"circleToPathData",(function(){return Vs})),n.d(h,"ellipseToPathData",(function(){return Ws})),n.d(h,"rectangleToPathData",(function(){return qs})),n.d(h,"rectToPathData",(function(){return Ys})),n.d(h,"toPath",(function(){return Ks})),n.d(h,"toPathData",(function(){return $s})),n.d(h,"createSlicePathData",(function(){return Js})),n.d(h,"createSVGPoint",(function(){return tc})),n.d(h,"createSVGMatrix",(function(){return nc})),n.d(h,"createSVGTransform",(function(){return rc})),n.d(h,"transformStringToMatrix",(function(){return ic})),n.d(h,"matrixToTransformString",(function(){return ac})),n.d(h,"parseTransformString",(function(){return oc})),n.d(h,"decomposeMatrix",(function(){return cc})),n.d(h,"matrixToScale",(function(){return lc})),n.d(h,"matrixToRotation",(function(){return uc})),n.d(h,"matrixToTranslation",(function(){return hc})),n.d(h,"transform",(function(){return fc})),n.d(h,"translate",(function(){return dc})),n.d(h,"rotate",(function(){return pc})),n.d(h,"scale",(function(){return gc})),n.d(h,"getTransformToElement",(function(){return mc})),n.d(h,"getTransformToParentElement",(function(){return vc})),n.d(h,"toLocalPoint",(function(){return yc})),n.d(h,"get",(function(){return bc})),n.d(h,"register",(function(){return wc})),n.d(h,"unregister",(function(){return xc})),n.d(h,"Event",(function(){return Vc})),n.d(h,"EventObject",(function(){return Fc})),n.d(h,"MouseWheelHandle",(function(){return Yc})),n.d(h,"offset",(function(){return Kc})),n.d(h,"width",(function(){return $c})),n.d(h,"height",(function(){return Jc})),n.d(h,"position",(function(){return Xc}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/util/index.js
var f={};n.r(f),n.d(f,"normalizeMarker",(function(){return Zc})),n.d(f,"transformPoint",(function(){return el})),n.d(f,"transformLine",(function(){return tl})),n.d(f,"transformPolyline",(function(){return nl})),n.d(f,"transformRectangle",(function(){return rl})),n.d(f,"bbox",(function(){return il})),n.d(f,"getBBox",(function(){return al})),n.d(f,"getBoundingOffsetRect",(function(){return ol})),n.d(f,"toGeometryShape",(function(){return sl})),n.d(f,"translateAndAutoOrient",(function(){return cl})),n.d(f,"findShapeNode",(function(){return ll})),n.d(f,"getBBoxV2",(function(){return ul}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/animation/interp.js
var d={};n.r(d),n.d(d,"number",(function(){return pl})),n.d(d,"object",(function(){return gl})),n.d(d,"unit",(function(){return ml})),n.d(d,"color",(function(){return vl})),n.d(d,"transform",(function(){return yl}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/common/animation/timing.js
var p={};n.r(p),n.d(p,"linear",(function(){return Al})),n.d(p,"quad",(function(){return bl})),n.d(p,"cubic",(function(){return wl})),n.d(p,"inout",(function(){return xl})),n.d(p,"exponential",(function(){return Cl})),n.d(p,"bounce",(function(){return _l})),n.d(p,"decorators",(function(){return Il})),n.d(p,"easeInSine",(function(){return El})),n.d(p,"easeOutSine",(function(){return kl})),n.d(p,"easeInOutSine",(function(){return Sl})),n.d(p,"easeInQuad",(function(){return Bl})),n.d(p,"easeOutQuad",(function(){return Ml})),n.d(p,"easeInOutQuad",(function(){return Tl})),n.d(p,"easeInCubic",(function(){return Ol})),n.d(p,"easeOutCubic",(function(){return Dl})),n.d(p,"easeInOutCubic",(function(){return Pl})),n.d(p,"easeInQuart",(function(){return Ll})),n.d(p,"easeOutQuart",(function(){return Ql})),n.d(p,"easeInOutQuart",(function(){return Rl})),n.d(p,"easeInQuint",(function(){return jl})),n.d(p,"easeOutQuint",(function(){return Nl})),n.d(p,"easeInOutQuint",(function(){return Fl})),n.d(p,"easeInExpo",(function(){return zl})),n.d(p,"easeOutExpo",(function(){return Hl})),n.d(p,"easeInOutExpo",(function(){return Ul})),n.d(p,"easeInCirc",(function(){return Gl})),n.d(p,"easeOutCirc",(function(){return Vl})),n.d(p,"easeInOutCirc",(function(){return Wl})),n.d(p,"easeInBack",(function(){return ql})),n.d(p,"easeOutBack",(function(){return Yl})),n.d(p,"easeInOutBack",(function(){return Kl})),n.d(p,"easeInElastic",(function(){return $l})),n.d(p,"easeOutElastic",(function(){return Jl})),n.d(p,"easeInOutElastic",(function(){return Xl})),n.d(p,"easeOutBounce",(function(){return Zl})),n.d(p,"easeInBounce",(function(){return eu})),n.d(p,"easeInOutBounce",(function(){return tu}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/marker/main.js
var g={};n.r(g),n.d(g,"block",(function(){return oh})),n.d(g,"classic",(function(){return sh})),n.d(g,"diamond",(function(){return lh})),n.d(g,"path",(function(){return uh})),n.d(g,"cross",(function(){return hh})),n.d(g,"async",(function(){return fh})),n.d(g,"circle",(function(){return dh})),n.d(g,"circlePlus",(function(){return ph})),n.d(g,"ellipse",(function(){return gh}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/attr/main.js
var m={};n.r(m),n.d(m,"ref",(function(){return hu})),n.d(m,"refX",(function(){return fu})),n.d(m,"refY",(function(){return du})),n.d(m,"refDx",(function(){return pu})),n.d(m,"refDy",(function(){return gu})),n.d(m,"refWidth",(function(){return mu})),n.d(m,"refHeight",(function(){return vu})),n.d(m,"refRx",(function(){return yu})),n.d(m,"refRy",(function(){return Au})),n.d(m,"refRInscribed",(function(){return bu})),n.d(m,"refRCircumscribed",(function(){return wu})),n.d(m,"refCx",(function(){return xu})),n.d(m,"refCy",(function(){return Cu})),n.d(m,"refDResetOffset",(function(){return _u})),n.d(m,"refDKeepOffset",(function(){return Iu})),n.d(m,"refPointsResetOffset",(function(){return Eu})),n.d(m,"refPointsKeepOffset",(function(){return ku})),n.d(m,"refR",(function(){return Su})),n.d(m,"refD",(function(){return Bu})),n.d(m,"refPoints",(function(){return Mu})),n.d(m,"refX2",(function(){return Tu})),n.d(m,"refY2",(function(){return Ou})),n.d(m,"refWidth2",(function(){return Du})),n.d(m,"refHeight2",(function(){return Pu})),n.d(m,"fill",(function(){return Fu})),n.d(m,"stroke",(function(){return zu})),n.d(m,"text",(function(){return Hu})),n.d(m,"textWrap",(function(){return Uu})),n.d(m,"lineHeight",(function(){return Vu})),n.d(m,"textVerticalAnchor",(function(){return Wu})),n.d(m,"textPath",(function(){return qu})),n.d(m,"annotations",(function(){return Yu})),n.d(m,"eol",(function(){return Ku})),n.d(m,"displayEmpty",(function(){return $u})),n.d(m,"title",(function(){return Ju})),n.d(m,"xAlign",(function(){return Xu})),n.d(m,"yAlign",(function(){return Zu})),n.d(m,"resetOffset",(function(){return eh})),n.d(m,"style",(function(){return nh})),n.d(m,"html",(function(){return rh})),n.d(m,"filter",(function(){return ih})),n.d(m,"port",(function(){return ah})),n.d(m,"sourceMarker",(function(){return Ah})),n.d(m,"targetMarker",(function(){return bh})),n.d(m,"vertexMarker",(function(){return wh})),n.d(m,"connection",(function(){return _h})),n.d(m,"atConnectionLengthKeepGradient",(function(){return Ih})),n.d(m,"atConnectionLengthIgnoreGradient",(function(){return Eh})),n.d(m,"atConnectionRatioKeepGradient",(function(){return kh})),n.d(m,"atConnectionRatioIgnoreGradient",(function(){return Sh})),n.d(m,"atConnectionLength",(function(){return Bh})),n.d(m,"atConnectionRatio",(function(){return Mh}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/background/main.js
var v={};n.r(v),n.d(v,"flipX",(function(){return Lh})),n.d(v,"flipY",(function(){return Qh})),n.d(v,"flipXY",(function(){return Rh})),n.d(v,"watermark",(function(){return jh}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/connection-point/main.js
var y={};n.r(y),n.d(y,"bbox",(function(){return Uh})),n.d(y,"rect",(function(){return Gh})),n.d(y,"boundary",(function(){return Vh})),n.d(y,"anchor",(function(){return Wh}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/connector/main.js
var A={};n.r(A),n.d(A,"jumpover",(function(){return nf})),n.d(A,"loop",(function(){return rf})),n.d(A,"normal",(function(){return af})),n.d(A,"rounded",(function(){return of})),n.d(A,"smooth",(function(){return sf}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/edge-anchor/main.js
var b={};n.r(b),n.d(b,"closest",(function(){return df})),n.d(b,"length",(function(){return pf})),n.d(b,"orth",(function(){return gf})),n.d(b,"ratio",(function(){return mf}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/filter/main.js
var w={};n.r(w),n.d(w,"outline",(function(){return wf})),n.d(w,"highlight",(function(){return xf})),n.d(w,"blur",(function(){return Cf})),n.d(w,"dropShadow",(function(){return _f})),n.d(w,"grayScale",(function(){return If})),n.d(w,"sepia",(function(){return Ef})),n.d(w,"saturate",(function(){return kf})),n.d(w,"hueRotate",(function(){return Sf})),n.d(w,"invert",(function(){return Bf})),n.d(w,"brightness",(function(){return Mf})),n.d(w,"contrast",(function(){return Tf}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/grid/main.js
var x={};n.r(x),n.d(x,"dot",(function(){return Pf})),n.d(x,"fixedDot",(function(){return Lf})),n.d(x,"mesh",(function(){return Qf})),n.d(x,"doubleMesh",(function(){return Rf}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/highlighter/main.js
var C={};n.r(C),n.d(C,"className",(function(){return Uf})),n.d(C,"opacity",(function(){return Vf})),n.d(C,"stroke",(function(){return qf}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/node-anchor/main.js
var _={};n.r(_),n.d(_,"center",(function(){return Zf})),n.d(_,"top",(function(){return ed})),n.d(_,"bottom",(function(){return td})),n.d(_,"left",(function(){return nd})),n.d(_,"right",(function(){return rd})),n.d(_,"topLeft",(function(){return id})),n.d(_,"topRight",(function(){return ad})),n.d(_,"bottomLeft",(function(){return od})),n.d(_,"bottomRight",(function(){return sd})),n.d(_,"orth",(function(){return ld})),n.d(_,"nodeCenter",(function(){return ud})),n.d(_,"midSide",(function(){return hd}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/port-label-layout/main.js
var I={};n.r(I),n.d(I,"manual",(function(){return md})),n.d(I,"left",(function(){return vd})),n.d(I,"right",(function(){return yd})),n.d(I,"top",(function(){return Ad})),n.d(I,"bottom",(function(){return bd})),n.d(I,"outside",(function(){return wd})),n.d(I,"outsideOriented",(function(){return xd})),n.d(I,"inside",(function(){return Cd})),n.d(I,"insideOriented",(function(){return _d})),n.d(I,"radial",(function(){return Sd})),n.d(I,"radialOriented",(function(){return Bd}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/port-layout/main.js
var E={};n.r(E),n.d(E,"absolute",(function(){return Ld})),n.d(E,"ellipse",(function(){return Qd})),n.d(E,"ellipseSpread",(function(){return Rd})),n.d(E,"line",(function(){return Nd})),n.d(E,"left",(function(){return Fd})),n.d(E,"right",(function(){return zd})),n.d(E,"top",(function(){return Hd})),n.d(E,"bottom",(function(){return Ud}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/router/main.js
var k={};n.r(k),n.d(k,"normal",(function(){return qd})),n.d(k,"oneSide",(function(){return Yd})),n.d(k,"orth",(function(){return Zd})),n.d(k,"metro",(function(){return Tp})),n.d(k,"manhattan",(function(){return Bp})),n.d(k,"er",(function(){return Op})),n.d(k,"loop",(function(){return Pp}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/registry/connection-strategy/main.js
var S={};n.r(S),n.d(S,"noop",(function(){return tg})),n.d(S,"pinAbsolute",(function(){return ag})),n.d(S,"pinRelative",(function(){return ig}));
// NAMESPACE OBJECT: ./node_modules/@antv/x6/es/shape/index.js
var B={};n.r(B),n.d(B,"Circle",(function(){return im})),n.d(B,"Edge",(function(){return am})),n.d(B,"Ellipse",(function(){return om})),n.d(B,"HTML",(function(){return Nm})),n.d(B,"Image",(function(){return zm})),n.d(B,"Path",(function(){return Hm})),n.d(B,"Polygon",(function(){return Gm})),n.d(B,"Polyline",(function(){return Vm})),n.d(B,"Rect",(function(){return Wm})),n.d(B,"TextBlock",(function(){return Km}));function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function T(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function O(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;
// compatible with NodeList.prototype.forEach() before chrome 51
// https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
"object"==typeof window&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),
// compatible with ParentNode.append() before chrome 54
// https://github.com/jserz/js_piece/blob/master/DOM/ParentNode/append()/append().md
"undefined"!=typeof window&&[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((e=>{Object.hasOwn(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...e){const t=document.createDocumentFragment();e.forEach((e=>{const n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))})),this.appendChild(t)}})}));
//# sourceMappingURL=index.js.map
// EXTERNAL MODULE: ./node_modules/lodash-es/isArray.js
var D=n("ff51");
// CONCATENATED MODULE: ./node_modules/lodash-es/castArray.js
/**
 * Casts `value` as an array if it's not one.
 *
 * @static
 * @memberOf _
 * @since 4.4.0
 * @category Lang
 * @param {*} value The value to inspect.
 * @returns {Array} Returns the cast array.
 * @example
 *
 * _.castArray(1);
 * // => [1]
 *
 * _.castArray({ 'a': 1 });
 * // => [{ 'a': 1 }]
 *
 * _.castArray('abc');
 * // => ['abc']
 *
 * _.castArray(null);
 * // => [null]
 *
 * _.castArray(undefined);
 * // => [undefined]
 *
 * _.castArray();
 * // => []
 *
 * var array = [1, 2, 3];
 * console.log(_.castArray(array) === array);
 * // => true
 */
/* harmony default export */var P=function(){if(!arguments.length)return[];var e=arguments[0];return Object(D.a)(e)?e:[e]},L=n("0e59");
// EXTERNAL MODULE: ./node_modules/lodash-es/_MapCache.js + 14 modules
/* harmony default export */var Q=
/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};
// CONCATENATED MODULE: ./node_modules/lodash-es/_setCacheHas.js
/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
/* harmony default export */var R=function(e){return this.__data__.has(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_SetCache.js
/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */function j(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new L.a;++t<n;)this.add(e[t])}
// Add methods to `SetCache`.
j.prototype.add=j.prototype.push=Q,j.prototype.has=R;
/* harmony default export */var N=j;
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFindIndex.js
/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
/* harmony default export */var F=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsNaN.js
/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */
/* harmony default export */var z=function(e){return e!=e};
// CONCATENATED MODULE: ./node_modules/lodash-es/_strictIndexOf.js
/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
/* harmony default export */var H=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIndexOf.js
/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
/* harmony default export */var U=function(e,t,n){return t==t?H(e,t,n):F(e,z,n)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayIncludes.js
/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
/* harmony default export */var G=function(e,t){return!!(null==e?0:e.length)&&U(e,t,0)>-1};
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayIncludesWith.js
/**
 * This function is like `arrayIncludes` except that it accepts a comparator.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
/* harmony default export */var V=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayMap.js
/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
/* harmony default export */var W=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},q=n("a2fb");
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUnary.js
/* harmony default export */var Y=
// CONCATENATED MODULE: ./node_modules/lodash-es/_cacheHas.js
/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e,t){return e.has(t)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseDifference.js
/** Used as the size to enable large array optimizations. */
/* harmony default export */var K=
/**
 * The base implementation of methods like `_.difference` without support
 * for excluding multiple arrays or iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Array} values The values to exclude.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 */
function(e,t,n,r){var i=-1,a=G,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=W(t,Object(q.a)(n))),r?(a=V,o=!1):t.length>=200&&(a=Y,o=!1,t=new N(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var f=l;f--;)if(t[f]===h)continue e;c.push(u)}else a(t,h,r)||c.push(u)}return c},$=n("b4f1"),J=n("ca54"),X=n("f5fe"),Z=J.a?J.a.isConcatSpreadable:void 0;
// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayPush.js
/* harmony default export */var ee=
/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function(e){return Object(D.a)(e)||Object(X.a)(e)||!!(Z&&e&&e[Z])};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFlatten.js
/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */
/* harmony default export */var te=function e(t,n,r,i,a){var o=-1,s=t.length;for(r||(r=ee),a||(a=[]);++o<s;){var c=t[o];n>0&&r(c)?n>1?
// Recursively flatten arrays (susceptible to call stack limits).
e(c,n-1,r,i,a):Object($.a)(a,c):i||(a[a.length]=c)}return a};
// CONCATENATED MODULE: ./node_modules/lodash-es/identity.js
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
/* harmony default export */var ne=function(e){return e};
// CONCATENATED MODULE: ./node_modules/lodash-es/_apply.js
/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
/* harmony default export */var re=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ie=Math.max;
// CONCATENATED MODULE: ./node_modules/lodash-es/_overRest.js
/* Built-in method references for those with the same name as other `lodash` methods. */
/* harmony default export */var ae=
/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function(e,t,n){return t=ie(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ie(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),re(e,this,s)}};
// CONCATENATED MODULE: ./node_modules/lodash-es/constant.js
/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
/* harmony default export */var oe=function(e){return function(){return e}},se=n("0305"),ce=se.a?function(e,t){return Object(se.a)(e,"toString",{configurable:!0,enumerable:!1,value:oe(t),writable:!0})}:ne,le=Date.now;
// EXTERNAL MODULE: ./node_modules/lodash-es/_defineProperty.js
/* harmony default export */var ue=
/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function(e){var t=0,n=0;return function(){var r=le(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},he=ue(ce);
// CONCATENATED MODULE: ./node_modules/lodash-es/_setToString.js
/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
/* harmony default export */var fe=
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseRest.js
/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function(e,t){return he(ae(e,t,ne),e+"")},de=n("e56b"),pe=n("1147");
// EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLike.js
/* harmony default export */var ge=
// CONCATENATED MODULE: ./node_modules/lodash-es/isArrayLikeObject.js
/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function(e){return Object(pe.a)(e)&&Object(de.a)(e)},me=fe((function(e,t){return ge(e)?K(e,te(t,1,ge,!0)):[]})),ve=n("b84d");
// CONCATENATED MODULE: ./node_modules/lodash-es/difference.js
/**
 * Creates an array of `array` values not included in the other given arrays
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. The order and references of result values are
 * determined by the first array.
 *
 * **Note:** Unlike `_.pullAll`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...Array} [values] The values to exclude.
 * @returns {Array} Returns the new array of filtered values.
 * @see _.without, _.xor
 * @example
 *
 * _.difference([2, 1], [2, 3]);
 * // => [1]
 */
/* harmony default export */var ye=
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayAggregator.js
/**
 * A specialized version of `baseAggregator` for arrays.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */
function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r};
// CONCATENATED MODULE: ./node_modules/lodash-es/_createBaseFor.js
/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
/* harmony default export */var Ae=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}(),be=n("9a4b");
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseFor.js
/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
/* harmony default export */var we=
// CONCATENATED MODULE: ./node_modules/lodash-es/_createBaseEach.js
/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function(e,t){return function(n,r){if(null==n)return n;if(!Object(de.a)(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}((
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseForOwn.js
/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function(e,t){return e&&Ae(e,t,be.a)}
/* harmony default export */));
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseEach.js
/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */
/* harmony default export */var xe=
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseAggregator.js
/**
 * Aggregates elements of `collection` on `accumulator` with keys transformed
 * by `iteratee` and values set by `setter`.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */
function(e,t,n,r){return we(e,(function(e,i,a){t(r,e,n(e),a)})),r},Ce=n("a12c");
// EXTERNAL MODULE: ./node_modules/lodash-es/_Stack.js + 5 modules
/* harmony default export */var _e=
// CONCATENATED MODULE: ./node_modules/lodash-es/_arraySome.js
/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};
// CONCATENATED MODULE: ./node_modules/lodash-es/_equalArrays.js
/** Used to compose bitmasks for value comparisons. */
/* harmony default export */var Ie=
/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;
// Check that cyclic values are equal.
var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var h=-1,f=!0,d=2&n?new N:void 0;
// Ignore non-index properties.
for(a.set(e,t),a.set(t,e);++h<s;){var p=e[h],g=t[h];if(r)var m=o?r(g,p,h,t,e,a):r(p,g,h,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}
// Recursively compare arrays (susceptible to call stack limits).
if(d){if(!_e(t,(function(e,t){if(!Y(d,t)&&(p===e||i(p,e,n,r,a)))return d.push(t)}))){f=!1;break}}else if(p!==g&&!i(p,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f},Ee=n("09ee"),ke=n("6071");
// EXTERNAL MODULE: ./node_modules/lodash-es/_Uint8Array.js
/* harmony default export */var Se=
// CONCATENATED MODULE: ./node_modules/lodash-es/_mapToArray.js
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};
// CONCATENATED MODULE: ./node_modules/lodash-es/_setToArray.js
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
/* harmony default export */var Be=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Me=J.a?J.a.prototype:void 0,Te=Me?Me.valueOf:void 0;
// CONCATENATED MODULE: ./node_modules/lodash-es/_equalByTag.js
/** Used to compose bitmasks for value comparisons. */
/* harmony default export */var Oe=
/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Ee.a(e),new Ee.a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":
// Coerce booleans to `1` or `0` and dates to milliseconds.
// Invalid dates are coerced to `NaN`.
return Object(ke.a)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
// for more details.
return e==t+"";case"[object Map]":var s=Se;case"[object Set]":var c=1&r;if(s||(s=Be),e.size!=t.size&&!c)return!1;
// Assume cyclic values are equal.
var l=o.get(e);if(l)return l==t;r|=2,
// Recursively compare objects (susceptible to call stack limits).
o.set(e,t);var u=Ie(s(e),s(t),r,i,a,o);return o.delete(e),u;case"[object Symbol]":if(Te)return Te.call(e)==Te.call(t)}return!1},De=n("4c5c"),Pe=Object.prototype.hasOwnProperty;
// EXTERNAL MODULE: ./node_modules/lodash-es/_getAllKeys.js
/* harmony default export */var Le=
/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,r,i,a){var o=1&n,s=Object(De.a)(e),c=s.length;if(c!=Object(De.a)(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Pe.call(t,u)))return!1}
// Check that cyclic values are equal.
var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var g=e[u=s[l]],m=t[u];if(r)var v=o?r(m,g,u,t,e,a):r(g,m,u,e,t,a);
// Recursively compare objects (susceptible to call stack limits).
if(!(void 0===v?g===m||i(g,m,n,r,a):v)){d=!1;break}p||(p="constructor"==u)}if(d&&!p){var y=e.constructor,A=t.constructor;
// Non `Object` object instances with different constructors are not equal.
y==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof A&&A instanceof A||(d=!1)}return a.delete(e),a.delete(t),d},Qe=n("60ce"),Re=n("58e0"),je=n("a187"),Ne="[object Arguments]",Fe="[object Array]",ze="[object Object]",He=Object.prototype.hasOwnProperty;
// EXTERNAL MODULE: ./node_modules/lodash-es/_getTag.js + 3 modules
/* harmony default export */var Ue=
/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,r,i,a){var o=Object(D.a)(e),s=Object(D.a)(t),c=o?Fe:Object(Qe.a)(e),l=s?Fe:Object(Qe.a)(t),u=(c=c==Ne?ze:c)==ze,h=(l=l==Ne?ze:l)==ze,f=c==l;if(f&&Object(Re.a)(e)){if(!Object(Re.a)(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Ce.a),o||Object(je.a)(e)?Ie(e,t,n,r,i,a):Oe(e,t,c,n,r,i,a);if(!(1&n)){var d=u&&He.call(e,"__wrapped__"),p=h&&He.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,m=p?t.value():t;return a||(a=new Ce.a),i(g,m,n,r,a)}}return!!f&&(a||(a=new Ce.a),Le(e,t,n,r,i,a))};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsEqual.js
/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
/* harmony default export */var Ge=function e(t,n,r,i,a){return t===n||(null==t||null==n||!Object(pe.a)(t)&&!Object(pe.a)(n)?t!=t&&n!=n:Ue(t,n,r,i,e,a))};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsMatch.js
/** Used to compose bitmasks for value comparisons. */
/* harmony default export */var Ve=
/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],l=e[c],u=s[1];if(o&&s[2]){if(void 0===l&&!(c in e))return!1}else{var h=new Ce.a;if(r)var f=r(l,u,c,e,t,h);if(!(void 0===f?Ge(u,l,3,r,h):f))return!1}}return!0},We=n("2332");
// EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js
/* harmony default export */var qe=
// CONCATENATED MODULE: ./node_modules/lodash-es/_isStrictComparable.js
/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function(e){return e==e&&!Object(We.a)(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_getMatchData.js
/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
/* harmony default export */var Ye=function(e){for(var t=Object(be.a)(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,qe(i)]}return t};
// CONCATENATED MODULE: ./node_modules/lodash-es/_matchesStrictComparable.js
/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
/* harmony default export */var Ke=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMatches.js
/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
/* harmony default export */var $e=function(e){var t=Ye(e);return 1==t.length&&t[0][2]?Ke(t[0][0],t[0][1]):function(n){return n===e||Ve(n,e,t)}},Je=n("f0ce");
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js + 2 modules
/* harmony default export */var Xe=
/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function(e){return"symbol"==typeof e||Object(pe.a)(e)&&"[object Symbol]"==Object(Je.a)(e)},Ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/;
// CONCATENATED MODULE: ./node_modules/lodash-es/_isKey.js
/** Used to match property names within property paths. */
/* harmony default export */var tt=
/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function(e,t){if(Object(D.a)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xe(e))||(et.test(e)||!Ze.test(e)||null!=t&&e in Object(t))};
// CONCATENATED MODULE: ./node_modules/lodash-es/memoize.js
/** Error message constants. */
/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function nt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(nt.Cache||L.a),n}
// Expose `MapCache`.
nt.Cache=L.a;
/* harmony default export */var rt=nt;
// CONCATENATED MODULE: ./node_modules/lodash-es/_memoizeCapped.js
/** Used as the maximum memoize cache size. */
/* harmony default export */var it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/\\(\\)?/g,ot=
/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function(e){var t=rt(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46/* . */===e.charCodeAt(0)&&t.push(""),e.replace(it,(function(e,n,r,i){t.push(r?i.replace(at,"$1"):n||e)})),t})),st=J.a?J.a.prototype:void 0,ct=st?st.toString:void 0;
// CONCATENATED MODULE: ./node_modules/lodash-es/_stringToPath.js
/** Used to match property names within property paths. */
/* harmony default export */var lt=
/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function e(t){
// Exit early for strings to avoid a performance hit in some environments.
if("string"==typeof t)return t;if(Object(D.a)(t))
// Recursively convert values (susceptible to call stack limits).
return W(t,e)+"";if(Xe(t))return ct?ct.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};
// CONCATENATED MODULE: ./node_modules/lodash-es/toString.js
/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
/* harmony default export */var ut=function(e){return null==e?"":lt(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_castPath.js
/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
/* harmony default export */var ht=function(e,t){return Object(D.a)(e)?e:tt(e,t)?[e]:ot(ut(e))};
// CONCATENATED MODULE: ./node_modules/lodash-es/_toKey.js
/** Used as references for various `Number` constants. */
/* harmony default export */var ft=
/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function(e){if("string"==typeof e||Xe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseGet.js
/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
/* harmony default export */var dt=function(e,t){for(var n=0,r=(t=ht(t,e)).length;null!=e&&n<r;)e=e[ft(t[n++])];return n&&n==r?e:void 0};
// CONCATENATED MODULE: ./node_modules/lodash-es/get.js
/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
/* harmony default export */var pt=function(e,t,n){var r=null==e?void 0:dt(e,t);return void 0===r?n:r};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseHasIn.js
/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
/* harmony default export */var gt=function(e,t){return null!=e&&t in Object(e)},mt=n("7129"),vt=n("26ce");
// EXTERNAL MODULE: ./node_modules/lodash-es/_isIndex.js
/* harmony default export */var yt=
// CONCATENATED MODULE: ./node_modules/lodash-es/_hasPath.js
/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function(e,t,n){for(var r=-1,i=(t=ht(t,e)).length,a=!1;++r<i;){var o=ft(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Object(vt.a)(i)&&Object(mt.a)(o,i)&&(Object(D.a)(e)||Object(X.a)(e))};
// CONCATENATED MODULE: ./node_modules/lodash-es/hasIn.js
/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
/* harmony default export */var At=function(e,t){return null!=e&&yt(e,t,gt)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMatchesProperty.js
/** Used to compose bitmasks for value comparisons. */
/* harmony default export */var bt=
/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function(e,t){return tt(e)&&qe(t)?Ke(ft(e),t):function(n){var r=pt(n,e);return void 0===r&&r===t?At(n,e):Ge(t,r,3)}};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseProperty.js
/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
/* harmony default export */var wt=function(e){return function(t){return null==t?void 0:t[e]}};
// CONCATENATED MODULE: ./node_modules/lodash-es/_basePropertyDeep.js
/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
/* harmony default export */var xt=function(e){return function(t){return dt(t,e)}};
// CONCATENATED MODULE: ./node_modules/lodash-es/property.js
/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
/* harmony default export */var Ct=function(e){return tt(e)?wt(ft(e)):xt(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIteratee.js
/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
/* harmony default export */var _t=function(e){
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
return"function"==typeof e?e:null==e?ne:"object"==typeof e?Object(D.a)(e)?bt(e[0],e[1]):$e(e):Ct(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_createAggregator.js
/**
 * Creates a function like `_.groupBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} [initializer] The accumulator object initializer.
 * @returns {Function} Returns the new aggregator function.
 */
/* harmony default export */var It=function(e,t){return function(n,r){var i=Object(D.a)(n)?ye:xe,a=t?t():{};return i(n,e,_t(r,2),a)}},Et=Object.prototype.hasOwnProperty,kt=It((function(e,t,n){Et.call(e,n)?e[n].push(t):Object(ve.a)(e,n,[t])}));
// CONCATENATED MODULE: ./node_modules/lodash-es/groupBy.js
/** Used for built-in method references. */
/* harmony default export */var St=
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseExtremum.js
/**
 * The base implementation of methods like `_.max` and `_.min` which accepts a
 * `comparator` to determine the extremum value.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The iteratee invoked per iteration.
 * @param {Function} comparator The comparator used to compare values.
 * @returns {*} Returns the extremum value.
 */
function(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!Xe(o):n(o,s)))var s=o,c=a}return c};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseGt.js
/**
 * The base implementation of `_.gt` which doesn't coerce arguments.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if `value` is greater than `other`,
 *  else `false`.
 */
/* harmony default export */var Bt=function(e,t){return e>t};
// CONCATENATED MODULE: ./node_modules/lodash-es/max.js
/**
 * Computes the maximum value of `array`. If `array` is empty or falsey,
 * `undefined` is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {*} Returns the maximum value.
 * @example
 *
 * _.max([4, 2, 8, 6]);
 * // => 8
 *
 * _.max([]);
 * // => undefined
 */
/* harmony default export */var Mt=function(e){return e&&e.length?St(e,ne,Bt):void 0};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMap.js
/**
 * The base implementation of `_.map` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
/* harmony default export */var Tt=function(e,t){var n=-1,r=Object(de.a)(e)?Array(e.length):[];return we(e,(function(e,i,a){r[++n]=t(e,i,a)})),r};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSortBy.js
/**
 * The base implementation of `_.sortBy` which uses `comparer` to define the
 * sort order of `array` and replaces criteria objects with their corresponding
 * values.
 *
 * @private
 * @param {Array} array The array to sort.
 * @param {Function} comparer The function to define sort order.
 * @returns {Array} Returns `array`.
 */
/* harmony default export */var Ot=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};
// CONCATENATED MODULE: ./node_modules/lodash-es/_compareAscending.js
/**
 * Compares values to sort them in ascending order.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {number} Returns the sort order indicator for `value`.
 */
/* harmony default export */var Dt=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,a=Xe(e),o=void 0!==t,s=null===t,c=t==t,l=Xe(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0};
// CONCATENATED MODULE: ./node_modules/lodash-es/_compareMultiple.js
/**
 * Used by `_.orderBy` to compare multiple properties of a value to another
 * and stable sort them.
 *
 * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
 * specify an order of "desc" for descending or "asc" for ascending sort order
 * of corresponding values.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {boolean[]|string[]} orders The order to sort by for each property.
 * @returns {number} Returns the sort order indicator for `object`.
 */
/* harmony default export */var Pt=function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Dt(i[r],a[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}
// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
// that causes it, under certain circumstances, to provide the same value for
// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
// for more details.

// This also ensures a stable sort in V8 and other engines.
// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
return e.index-t.index};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseOrderBy.js
/**
 * The base implementation of `_.orderBy` without param guards.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
 * @param {string[]} orders The sort orders of `iteratees`.
 * @returns {Array} Returns the new sorted array.
 */
/* harmony default export */var Lt=function(e,t,n){t=t.length?W(t,(function(e){return Object(D.a)(e)?function(t){return dt(t,1===e.length?e[0]:e)}:e})):[ne];var r=-1;t=W(t,Object(q.a)(_t));var i=Tt(e,(function(e,n,i){return{criteria:W(t,(function(t){return t(e)})),index:++r,value:e}}));return Ot(i,(function(e,t){return Pt(e,t,n)}))};
// CONCATENATED MODULE: ./node_modules/lodash-es/_isIterateeCall.js
/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
/* harmony default export */var Qt=function(e,t,n){if(!Object(We.a)(n))return!1;var r=typeof t;return!!("number"==r?Object(de.a)(n)&&Object(mt.a)(t,n.length):"string"==r&&t in n)&&Object(ke.a)(n[t],e)},Rt=fe((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qt(e,t[0],t[1])?t=[]:n>2&&Qt(t[0],t[1],t[2])&&(t=[t[0]]),Lt(e,te(t,1),[])})),jt=Math.floor,Nt=Math.min;
// CONCATENATED MODULE: ./node_modules/lodash-es/sortBy.js
/**
 * Creates an array of elements, sorted in ascending order by the results of
 * running each element in a collection thru each iteratee. This method
 * performs a stable sort, that is, it preserves the original sort order of
 * equal elements. The iteratees are invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {...(Function|Function[])} [iteratees=[_.identity]]
 *  The iteratees to sort by.
 * @returns {Array} Returns the new sorted array.
 * @example
 *
 * var users = [
 *   { 'user': 'fred',   'age': 48 },
 *   { 'user': 'barney', 'age': 36 },
 *   { 'user': 'fred',   'age': 30 },
 *   { 'user': 'barney', 'age': 34 }
 * ];
 *
 * _.sortBy(users, [function(o) { return o.user; }]);
 * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
 *
 * _.sortBy(users, ['user', 'age']);
 * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
 */
/* harmony default export */var Ft=
/**
 * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
 * which invokes `iteratee` for `value` and each element of `array` to compute
 * their sort ranking. The iteratee is invoked with one argument; (value).
 *
 * @private
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {Function} iteratee The iteratee invoked per element.
 * @param {boolean} [retHighest] Specify returning the highest qualified index.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 */
function(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var o=(t=n(t))!=t,s=null===t,c=Xe(t),l=void 0===t;i<a;){var u=jt((i+a)/2),h=n(e[u]),f=void 0!==h,d=null===h,p=h==h,g=Xe(h);if(o)var m=r||p;else m=l?p&&(r||f):s?p&&f&&(r||!d):c?p&&f&&!d&&(r||!g):!d&&!g&&(r?h<=t:h<t);m?i=u+1:a=u}return Nt(a,4294967294)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSortedIndex.js
/** Used as references for the maximum length and index of an array. */
/* harmony default export */var zt=
/**
 * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
 * performs a binary search of `array` to determine the index at which `value`
 * should be inserted into `array` in order to maintain its sort order.
 *
 * @private
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {boolean} [retHighest] Specify returning the highest qualified index.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 */
function(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!Xe(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Ft(e,t,ne,n)};
// CONCATENATED MODULE: ./node_modules/lodash-es/sortedIndex.js
/**
 * Uses a binary search to determine the lowest index at which `value`
 * should be inserted into `array` in order to maintain its sort order.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * _.sortedIndex([30, 50], 40);
 * // => 1
 */
/* harmony default export */var Ht=function(e,t){return zt(e,t)};
// CONCATENATED MODULE: ./node_modules/lodash-es/sortedIndexBy.js
/**
 * This method is like `_.sortedIndex` except that it accepts `iteratee`
 * which is invoked for `value` and each element of `array` to compute their
 * sort ranking. The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The sorted array to inspect.
 * @param {*} value The value to evaluate.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {number} Returns the index at which `value` should be inserted
 *  into `array`.
 * @example
 *
 * var objects = [{ 'x': 4 }, { 'x': 5 }];
 *
 * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
 * // => 0
 */
/* harmony default export */var Ut=function(e,t,n){return Ft(e,t,_t(n,2))},Gt=n("a55c");
// EXTERNAL MODULE: ./node_modules/lodash-es/_Set.js
/* harmony default export */var Vt=
// CONCATENATED MODULE: ./node_modules/lodash-es/noop.js
/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function(){
// No operation performed.
},Wt=Gt.a&&1/Be(new Gt.a([,-0]))[1]==1/0?function(e){return new Gt.a(e)}:Vt;
// CONCATENATED MODULE: ./node_modules/lodash-es/_createSet.js
/** Used as references for various `Number` constants. */
/* harmony default export */var qt=
/**
 * The base implementation of `_.uniqBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */
function(e,t,n){var r=-1,i=G,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=V;else if(a>=200){var l=t?null:Wt(e);if(l)return Be(l);o=!1,i=Y,c=new N}else c=t?[]:s;e:for(;++r<a;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),s.push(u)}else i(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s},Yt=fe((function(e){return qt(te(e,1,ge,!0))}));
// CONCATENATED MODULE: ./node_modules/lodash-es/union.js
/**
 * Creates an array of unique values, in order, from all given arrays using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @returns {Array} Returns the new array of combined values.
 * @example
 *
 * _.union([2], [1, 2]);
 * // => [2, 1]
 */
/* harmony default export */var Kt=
// CONCATENATED MODULE: ./node_modules/lodash-es/uniq.js
/**
 * Creates a duplicate-free version of an array, using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons, in which only the first occurrence of each element
 * is kept. The order of result values is determined by the order they occur
 * in the array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniq([2, 1, 2]);
 * // => [2, 1]
 */
function(e){return e&&e.length?qt(e):[]};
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/array/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/lodash-es/isNumber.js
/** `Object#toString` result references. */
/* harmony default export */var $t=
/**
 * Checks if `value` is classified as a `Number` primitive or object.
 *
 * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
 * classified as numbers, use the `_.isFinite` method.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a number, else `false`.
 * @example
 *
 * _.isNumber(3);
 * // => true
 *
 * _.isNumber(Number.MIN_VALUE);
 * // => true
 *
 * _.isNumber(Infinity);
 * // => true
 *
 * _.isNumber('3');
 * // => false
 */
function(e){return"number"==typeof e||Object(pe.a)(e)&&"[object Number]"==Object(Je.a)(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseClamp.js
/**
 * The base implementation of `_.clamp` which doesn't coerce arguments.
 *
 * @private
 * @param {number} number The number to clamp.
 * @param {number} [lower] The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the clamped number.
 */
/* harmony default export */var Jt=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e},Xt=/\s/;
// CONCATENATED MODULE: ./node_modules/lodash-es/_trimmedEndIndex.js
/** Used to match a single whitespace character. */
/* harmony default export */var Zt=
/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */
function(e){for(var t=e.length;t--&&Xt.test(e.charAt(t)););return t},en=/^\s+/;
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseTrim.js
/** Used to match leading whitespace. */
/* harmony default export */var tn=
/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function(e){return e?e.slice(0,Zt(e)+1).replace(en,""):e},nn=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,an=/^0o[0-7]+$/i,on=parseInt;
// CONCATENATED MODULE: ./node_modules/lodash-es/toNumber.js
/** Used as references for various `Number` constants. */
/* harmony default export */var sn=
/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function(e){if("number"==typeof e)return e;if(Xe(e))return NaN;if(Object(We.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(We.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tn(e);var n=rn.test(e);return n||an.test(e)?on(e.slice(2),n?2:8):nn.test(e)?NaN:+e};
// CONCATENATED MODULE: ./node_modules/lodash-es/clamp.js
/**
 * Clamps `number` within the inclusive `lower` and `upper` bounds.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Number
 * @param {number} number The number to clamp.
 * @param {number} [lower] The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the clamped number.
 * @example
 *
 * _.clamp(-10, -5, 5);
 * // => -5
 *
 * _.clamp(10, -5, 5);
 * // => 5
 */
/* harmony default export */var cn=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=sn(n))==n?n:0),void 0!==t&&(t=(t=sn(t))==t?t:0),Jt(sn(e),t,n)};
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/number/number.js
/**
 * Returns the remainder of division of `n` by `m`. You should use this
 * instead of the built-in operation as the built-in operation does not
 * properly handle negative numbers.
 */function ln(e,t){return(e%t+t)%t}function un(e,t){if(null==t)t=null==e?1:e,// eslint-disable-line
e=0;else if(t<e){const n=e;e=t,// eslint-disable-line
t=n}return Math.floor(Math.random()*(t-e+1)+e)}function hn(e){return"string"==typeof e&&"%"===e.slice(-1)}function fn(e,t){if(null==e)return 0;let n;if("string"==typeof e){if(n=parseFloat(e),hn(e)&&(n/=100,Number.isFinite(n)))return n*t}else n=e;return Number.isFinite(n)?n>0&&n<1?n*t:n:0}function dn(e,t){const n=parseFloat(e);if(Number.isNaN(n))return null;
// determine the unit
let r;if(null==t)
// accept any unit, as well as no unit
r="[A-Za-z]*";else if(Array.isArray(t)){if(0===t.length)return null;r=t.join("|")}else"string"==typeof t&&(r=t);const i=function(t){const n=new RegExp(`(?:\\d+(?:\\.\\d+)*)(${t})$`).exec(e);return n?n[1]:null}(r);return null===i?null:{unit:i,value:n}}function pn(e){if("object"==typeof e){let t=0,n=0,r=0,i=0;return null!=e.vertical&&Number.isFinite(e.vertical)&&(n=i=e.vertical),null!=e.horizontal&&Number.isFinite(e.horizontal)&&(r=t=e.horizontal),null!=e.left&&Number.isFinite(e.left)&&(t=e.left),null!=e.top&&Number.isFinite(e.top)&&(n=e.top),null!=e.right&&Number.isFinite(e.right)&&(r=e.right),null!=e.bottom&&Number.isFinite(e.bottom)&&(i=e.bottom),{top:n,right:r,bottom:i,left:t}}let t=0;return null!=e&&Number.isFinite(e)&&(t=e),{top:t,right:t,bottom:t,left:t}}
//# sourceMappingURL=number.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/number/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/color/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/platform/index.js
/* eslint-disable no-underscore-dangle */
let gn=!1,mn=!1,vn=!1,yn=!1,An=!1,bn=!1,wn=!1,xn=!1,Cn=!1,_n=!1,In=!1,En=!1,kn=!1,Sn=!1,Bn=!1,Mn=!1;if("object"==typeof navigator){const e=navigator.userAgent;gn=e.indexOf("Macintosh")>=0,mn=!!e.match(/(iPad|iPhone|iPod)/g),vn=e.indexOf("Windows")>=0,yn=e.indexOf("MSIE")>=0,An=!!e.match(/Trident\/7\./),bn=!!e.match(/Edge\//),wn=e.indexOf("Mozilla/")>=0&&e.indexOf("MSIE")<0&&e.indexOf("Edge/")<0,Cn=e.indexOf("Chrome/")>=0&&e.indexOf("Edge/")<0,_n=e.indexOf("Opera/")>=0||e.indexOf("OPR/")>=0,In=e.indexOf("Firefox/")>=0,En=e.indexOf("AppleWebKit/")>=0&&e.indexOf("Chrome/")<0&&e.indexOf("Edge/")<0,"object"==typeof document&&(Mn=!document.createElementNS||"[object SVGForeignObjectElement]"!=`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||e.indexOf("Opera/")>=0)}if("object"==typeof window&&(xn=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,Sn=null!=window.PointerEvent&&!gn),"object"==typeof document){kn="ontouchstart"in document.documentElement;try{const e=Object.defineProperty({},"passive",{get(){Bn=!0}}),t=document.createElement("div");t.addEventListener&&t.addEventListener("click",(()=>{}),e)}catch(e){
// pass
}}const Tn=yn,On=bn,Dn=En,Pn=!Mn;function Ln(){return"apply"===function(){const e=window.module;return null!=e&&null!=e.hot&&null!=e.hot.status?e.hot.status():"unkonwn"}()}
// This function checks if the specified event is supported by the browser.
// Source: http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
const Qn={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/css-loader/index.js
const Rn=[];function jn(e,t){const n=Rn.find((t=>t.name===e));if(!(n&&(n.loadTimes+=1,n.loadTimes>1)||Ln())){const n=document.createElement("style");n.setAttribute("type","text/css"),n.textContent=t;const r=document.querySelector("head");r&&r.insertBefore(n,r.firstChild),Rn.push({name:e,loadTimes:1,styleElement:n})}}function Nn(e){const t=Rn.findIndex((t=>t.name===e));if(t>-1){const e=Rn[t];if(e.loadTimes-=1,e.loadTimes>0)return;let n=e.styleElement;n&&n.parentNode&&n.parentNode.removeChild(n),n=null,Rn.splice(t,1)}}
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/datauri/index.js
function Fn(e){const t=parseFloat(e);return Number.isNaN(t)?null:t}function zn(e){const t="data:";return e.substr(0,5)===t}
/**
 * Converts an image at `url` to base64-encoded data uri.
 * The mime type of the image is inferred from the `url` file extension.
 */function Hn(e,t){
// No need to convert to data uri if it is already in data uri.
if(!e||zn(e))
// Keep the async nature of the function.
return void setTimeout((()=>t(null,e)));const n=()=>{t(new Error(`Failed to load image: ${e}`))},r=window.FileReader?// chrome, IE10+
e=>{if(200===e.status){const r=new FileReader;r.onload=e=>{const n=e.target.result;t(null,n)},r.onerror=n,r.readAsDataURL(e.response)}else n()}:r=>{if(200===r.status){let n=e.split(".").pop()||"png";"svg"===n&&(n="svg+xml");const i=`data:image/${n};base64,`,a=new Uint8Array(r.response),o=i+btoa((e=>{const t=[];for(let n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return t.join("")})(a));t(null,o)}else n()},i=new XMLHttpRequest;i.responseType=window.FileReader?"blob":"arraybuffer",i.open("GET",e,!0),i.addEventListener("error",n),i.addEventListener("load",(()=>r(i))),i.send()}function Un(e){let t=e.replace(/\s/g,"");t=decodeURIComponent(t);const n=t.indexOf(","),r=t.slice(0,n),i=r.split(":")[1].split(";")[0],a=t.slice(n+1);let o;
// data may be encoded in base64
o=r.indexOf("base64")>=0?atob(a):unescape(encodeURIComponent(a));
// write the bytes of the string to a typed array
const s=new Uint8Array(o.length);for(let e=0;e<o.length;e+=1)s[e]=o.charCodeAt(e);return new Blob([s],{type:i})}function Gn(e,t){const n=window.navigator.msSaveBlob;if(n)
// requires IE 10+
// pulls up a save dialog
n(e,t);else{
// other browsers
// downloads directly in Chrome and Safari
// presents a save/open dialog in Firefox
// Firefox bug: `from` field in save dialog always shows `from:blob:`
// https://bugzilla.mozilla.org/show_bug.cgi?id=1053327
const n=window.URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),
// mark the url for garbage collection
window.URL.revokeObjectURL(n)}}function Vn(e,t){Gn(Un(e),t)}function Wn(e,t={}){let n=null;const r=t=>(null==n&&(n=function(e){const t=e.match(/<svg[^>]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return t&&t[2]?t[2].replace(/\s+/," ").split(" "):null}(e)),null!=n?Fn(n[t]):null),i=t=>{const n=e.match(t);return n&&n[2]?Fn(n[2]):null};let a=t.width;if(null==a&&(a=i(/<svg[^>]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==a&&(a=r(2)),null==a)throw new Error("Can not parse width from svg string");let o=t.height;if(null==o&&(o=i(/<svg[^>]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==o&&(o=r(3)),null==o)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(e).replace(/'/g,"%27").replace(/"/g,"%22")}`}
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/function/async.js
function qn(e){return"object"==typeof e&&e.then&&"function"==typeof e.then}function Yn(e){return null!=e&&(e instanceof Promise||qn(e))}function Kn(...e){const t=[];e.forEach((e=>{Array.isArray(e)?t.push(...e):t.push(e)}));if(t.some((e=>Yn(e)))){const e=t.map((e=>Yn(e)?e:Promise.resolve(!1!==e)));return Promise.all(e).then((e=>e.reduce(((e,t)=>!1!==t&&e),!0)))}return t.every((e=>!1!==e))}function $n(...e){const t=Kn(e);return"boolean"==typeof t?Promise.resolve(t):t}
//# sourceMappingURL=async.js.map
// EXTERNAL MODULE: ./node_modules/lodash-es/_root.js
var Jn=n("26ee"),Xn=function(){return Jn.a.Date.now()},Zn=Math.max,er=Math.min;
// CONCATENATED MODULE: ./node_modules/lodash-es/now.js
/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
/* harmony default export */var tr=
/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function(e,t,n){var r,i,a,o,s,c,l=0,u=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function p(e){var n=e-c;
// Either this is the first call, activity has stopped and we're at the
// trailing edge, the system time has gone backwards and we're treating
// it as the trailing edge, or we've hit the `maxWait` limit.
return void 0===c||n>=t||n<0||h&&e-l>=a}function g(){var e=Xn();if(p(e))return m(e);
// Restart the timer.
s=setTimeout(g,function(e){var n=t-(e-c);return h?er(n,a-(e-l)):n}(e))}function m(e){
// Only invoke if we have `lastArgs` which means `func` has been
// debounced at least once.
return s=void 0,f&&r?d(e):(r=i=void 0,o)}function v(){var e=Xn(),n=p(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return function(e){
// Invoke the leading edge.
// Reset any `maxWait` timer.
return l=e,
// Start the timer for the trailing edge.
s=setTimeout(g,t),u?d(e):o}(c);if(h)
// Handle invocations in a tight loop.
return clearTimeout(s),s=setTimeout(g,t),d(c)}return void 0===s&&(s=setTimeout(g,t)),o}return t=sn(t)||0,Object(We.a)(n)&&(u=!!n.leading,a=(h="maxWait"in n)?Zn(sn(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return void 0===s?o:m(Xn())},v};
// CONCATENATED MODULE: ./node_modules/lodash-es/throttle.js
/** Error message constants. */
/* harmony default export */var nr=
/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */
function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Object(We.a)(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),tr(e,t,{leading:r,maxWait:t,trailing:i})};
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/function/function.js
function rr(e,t,n){if(n)switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2]);case 4:return e.call(t,n[0],n[1],n[2],n[3]);case 5:return e.call(t,n[0],n[1],n[2],n[3],n[4]);case 6:return e.call(t,n[0],n[1],n[2],n[3],n[4],n[5]);default:return e.apply(t,n)}return e.call(t)}function ir(e,t,...n){return rr(e,t,n)}
//# sourceMappingURL=function.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/function/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/unit/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/angle.js
/**
 * Converts radian angle to degree angle.
 * @param rad The radians to convert.
 */
function ar(e){return 180*e/Math.PI%360}
/**
 * Converts degree angle to radian angle.
 * @param deg The degree angle to convert.
 * @param over360
 */const or=function(e,t=!1){return(t?e:e%360)*Math.PI/180};
/**
 * Returns the angle in degrees and clamps its value between `0` and `360`.
 */function sr(e){return e%360+(e<0?360:0)}
//# sourceMappingURL=angle.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/util.js
function cr(e,t=0){return Number.isInteger(e)?e:+e.toFixed(t)}function lr(e,t){let n,r;if(null==t?(r=null==e?1:e,n=0):(r=t,n=null==e?0:e),r<n){const e=n;n=r,r=e}return Math.floor(Math.random()*(r-n+1)+n)}function ur(e,t,n){return Number.isNaN(e)?NaN:Number.isNaN(t)||Number.isNaN(n)?0:t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}function hr(e,t){return t*Math.round(e/t)}function fr(e,t){return null!=t&&null!=e&&t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function dr(e,t){const n=e.x-t.x,r=e.y-t.y;return n*n+r*r}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/geometry.js
class pr{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}
//# sourceMappingURL=geometry.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/point.js
class gr extends pr{static create(e,t){return null==e||"number"==typeof e?new gr(e,t):gr.clone(e)}static clone(e){return gr.isPoint(e)?new gr(e.x,e.y):Array.isArray(e)?new gr(e[0],e[1]):new gr(e.x,e.y)}static equals(e,t){return e===t||null!=e&&null!=t&&(e.x===t.x&&e.y===t.y)}static rotateEx(e,t,n,r=new gr){const i=gr.clone(e),a=gr.clone(r),o=i.x-a.x,s=i.y-a.y,c=s*t+o*n;return new gr(o*t-s*n+a.x,c+a.y)}static toJSON(e){return gr.isPoint(e)?{x:e.x,y:e.y}:Array.isArray(e)?{x:e[0],y:e[1]}:{x:e.x,y:e.y}}
/**
     * Returns a new Point object from the given polar coordinates.
     * @see http://en.wikipedia.org/wiki/Polar_coordinate_system
     */static fromPolar(e,t,n=new gr){let r=Math.abs(e*Math.cos(t)),i=Math.abs(e*Math.sin(t));const a=gr.clone(n),o=sr(ar(t));return o<90?i=-i:o<180?(r=-r,i=-i):o<270&&(r=-r),new gr(a.x+r,a.y+i)}
/**
     * Converts rectangular to polar coordinates.
     */static toPolar(e,t=new gr){const n=gr.clone(e),r=gr.clone(t),i=n.x-r.x,a=n.y-r.y;return new gr(Math.sqrt(i*i+a*a),// r
or(r.theta(n)))}static equalPoints(e,t){if(null==e&&null!=t||null!=e&&null==t||null!=e&&null!=t&&e.length!==t.length)return!1;if(null!=e&&null!=t)for(let n=0,r=e.length;n<r;n+=1)if(!gr.equals(e[n],t[n]))return!1;return!0}
/**
     * Returns a point with random coordinates that fall within the range
     * `[x1, x2]` and `[y1, y2]`.
     */static random(e,t,n,r){return new gr(lr(e,t),lr(n,r))}static rotate(e,t,n){const r=or(sr(-t)),i=Math.sin(r),a=Math.cos(r);return gr.rotateEx(e,a,i,n)}static isPoint(e){return null!=e&&e instanceof gr}static isPointLike(e){return null!=e&&"object"==typeof e&&"number"==typeof e.x&&"number"==typeof e.y}static isPointData(e){return null!=e&&Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}constructor(e,t){super(),this.x=null==e?0:e,this.y=null==t?0:t}
/**
     * Rounds the point to the given precision.
     */round(e=0){return this.x=cr(this.x,e),this.y=cr(this.y,e),this}add(e,t){const n=gr.create(e,t);return this.x+=n.x,this.y+=n.y,this}update(e,t){const n=gr.create(e,t);return this.x=n.x,this.y=n.y,this}translate(e,t){const n=gr.create(e,t);return this.x+=n.x,this.y+=n.y,this}
/**
     * Rotate the point by `degree` around `center`.
     */rotate(e,t){const n=gr.rotate(this,e,t);return this.x=n.x,this.y=n.y,this}
/**
     * Scale point by `sx` and `sy` around the given `origin`. If origin is
     * not specified, the point is scaled around `0, 0`.
     */scale(e,t,n=new gr){const r=gr.create(n);return this.x=r.x+e*(this.x-r.x),this.y=r.y+t*(this.y-r.y),this}
/**
     * Chooses the point closest to this point from among `points`. If `points`
     * is an empty array, `null` is returned.
     */closest(e){if(1===e.length)return gr.create(e[0]);let t=null,n=1/0;return e.forEach((e=>{const r=this.squaredDistance(e);r<n&&(t=e,n=r)})),t?gr.create(t):null}
/**
     * Returns the distance between the point and another point `p`.
     */distance(e){return Math.sqrt(this.squaredDistance(e))}
/**
     * Returns the squared distance between the point and another point `p`.
     *
     * Useful for distance comparisons in which real distance is not necessary
     * (saves one `Math.sqrt()` operation).
     */squaredDistance(e){const t=gr.create(e),n=this.x-t.x,r=this.y-t.y;return n*n+r*r}manhattanDistance(e){const t=gr.create(e);return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}
/**
     * Returns the magnitude of the point vector.
     *
     * @see http://en.wikipedia.org/wiki/Magnitude_(mathematics)
     */magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y)||.01}
/**
     * Returns the angle(in degrees) between vector from this point to `p` and
     * the x-axis.
     */theta(e=new gr){const t=gr.create(e),n=-(t.y-this.y),r=t.x-this.x;let i=Math.atan2(n,r);
// Correction for III. and IV. quadrant.
return i<0&&(i=2*Math.PI+i),180*i/Math.PI}
/**
     * Returns the angle(in degrees) between vector from this point to `p1` and
     * the vector from this point to `p2`.
     *
     * The ordering of points `p1` and `p2` is important.
     *
     * The function returns a value between `0` and `180` when the angle (in the
     * direction from `p1` to `p2`) is clockwise, and a value between `180` and
     * `360` when the angle is counterclockwise.
     *
     * Returns `NaN` if either of the points `p1` and `p2` is equal with this point.
     */angleBetween(e,t){if(this.equals(e)||this.equals(t))return NaN;let n=this.theta(t)-this.theta(e);return n<0&&(n+=360),n}
/**
     * Returns the angle(in degrees) between the line from `(0,0)` and this point
     * and the line from `(0,0)` to `p`.
     *
     * The function returns a value between `0` and `180` when the angle (in the
     * direction from this point to `p`) is clockwise, and a value between `180`
     * and `360` when the angle is counterclockwise. Returns `NaN` if called from
     * point `(0,0)` or if `p` is `(0,0)`.
     */vectorAngle(e){return new gr(0,0).angleBetween(this,e)}
/**
     * Converts rectangular to polar coordinates.
     */toPolar(e){return this.update(gr.toPolar(this,e)),this}
/**
     * Returns the change in angle(in degrees) that is the result of moving the
     * point from its previous position to its current position.
     *
     * More specifically, this function computes the angle between the line from
     * the ref point to the previous position of this point(i.e. current position
     * `-dx`, `-dy`) and the line from the `ref` point to the current position of
     * this point.
     *
     * The function returns a positive value between `0` and `180` when the angle
     * (in the direction from previous position of this point to its current
     * position) is clockwise, and a negative value between `0` and `-180` when
     * the angle is counterclockwise.
     *
     * The function returns `0` if the previous and current positions of this
     * point are the same (i.e. both `dx` and `dy` are `0`).
     */changeInAngle(e,t,n=new gr){
// Revert the translation and measure the change in angle around x-axis.
return this.clone().translate(-e,-t).theta(n)-this.theta(n)}
/**
     * If the point lies outside the rectangle `rect`, adjust the point so that
     * it becomes the nearest point on the boundary of `rect`.
     */adhereToRect(e){return fr(e,this)||(this.x=Math.min(Math.max(this.x,e.x),e.x+e.width),this.y=Math.min(Math.max(this.y,e.y),e.y+e.height)),this}
/**
     * Returns the bearing(cardinal direction) between me and the given point.
     *
     * @see https://en.wikipedia.org/wiki/Cardinal_direction
     */bearing(e){const t=gr.create(e),n=or(this.y),r=or(t.y),i=this.x,a=t.x,o=or(a-i),s=Math.sin(o)*Math.cos(r),c=Math.cos(n)*Math.sin(r)-Math.sin(n)*Math.cos(r)*Math.cos(o);let l=ar(Math.atan2(s,c))-22.5;return l<0&&(l+=360),l=parseInt(l/45,10),["NE","E","SE","S","SW","W","NW","N"][l]}
/**
     * Returns the cross product of the vector from me to `p1` and the vector
     * from me to `p2`.
     *
     * The left-hand rule is used because the coordinate system is left-handed.
     */cross(e,t){if(null!=e&&null!=t){const n=gr.create(e),r=gr.create(t);return(r.x-this.x)*(n.y-this.y)-(r.y-this.y)*(n.x-this.x)}return NaN}
/**
     * Returns the dot product of this point with given other point.
     */dot(e){const t=gr.create(e);return this.x*t.x+this.y*t.y}diff(e,t){if("number"==typeof e)return new gr(this.x-e,this.y-t);const n=gr.create(e);return new gr(this.x-n.x,this.y-n.y)}
/**
     * Returns an interpolation between me and point `p` for a parametert in
     * the closed interval `[0, 1]`.
     */lerp(e,t){const n=gr.create(e);return new gr((1-t)*this.x+t*n.x,(1-t)*this.y+t*n.y)}
/**
     * Normalize the point vector, scale the line segment between `(0, 0)`
     * and the point in order for it to have the given length. If length is
     * not specified, it is considered to be `1`; in that case, a unit vector
     * is computed.
     */normalize(e=1){const t=e/this.magnitude();return this.scale(t,t)}
/**
     * Moves this point along the line starting from `ref` to this point by a
     * certain `distance`.
     */move(e,t){const n=gr.create(e),r=or(n.theta(this));return this.translate(Math.cos(r)*t,-Math.sin(r)*t)}
/**
     * Returns a point that is the reflection of me with the center of inversion
     * in `ref` point.
     */reflection(e){return gr.create(e).move(this,this.distance(e))}snapToGrid(e,t){return this.x=hr(this.x,e),this.y=hr(this.y,null==t?e:t),this}equals(e){const t=gr.create(e);return null!=t&&t.x===this.x&&t.y===this.y}clone(){return gr.clone(this)}
/**
     * Returns the point as a simple JSON object. For example: `{ x: 0, y: 0 }`.
     */toJSON(){return gr.toJSON(this)}serialize(){return`${this.x} ${this.y}`}}
//# sourceMappingURL=point.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/rectangle.js
class mr extends pr{static isRectangle(e){return null!=e&&e instanceof mr}static isRectangleLike(e){return null!=e&&"object"==typeof e&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.width&&"number"==typeof e.height}static create(e,t,n,r){return null==e||"number"==typeof e?new mr(e,t,n,r):mr.clone(e)}static clone(e){return mr.isRectangle(e)?e.clone():Array.isArray(e)?new mr(e[0],e[1],e[2],e[3]):new mr(e.x,e.y,e.width,e.height)}
/**
     * Returns a new rectangle from the given ellipse.
     */static fromEllipse(e){return new mr(e.x-e.a,e.y-e.b,2*e.a,2*e.b)}static fromSize(e){return new mr(0,0,e.width,e.height)}static fromPositionAndSize(e,t){return new mr(e.x,e.y,t.width,t.height)}get left(){return this.x}get top(){return this.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get origin(){return new gr(this.x,this.y)}get topLeft(){return new gr(this.x,this.y)}get topCenter(){return new gr(this.x+this.width/2,this.y)}get topRight(){return new gr(this.x+this.width,this.y)}get center(){return new gr(this.x+this.width/2,this.y+this.height/2)}get bottomLeft(){return new gr(this.x,this.y+this.height)}get bottomCenter(){return new gr(this.x+this.width/2,this.y+this.height)}get bottomRight(){return new gr(this.x+this.width,this.y+this.height)}get corner(){return new gr(this.x+this.width,this.y+this.height)}get rightMiddle(){return new gr(this.x+this.width,this.y+this.height/2)}get leftMiddle(){return new gr(this.x,this.y+this.height/2)}get topLine(){return new vr(this.topLeft,this.topRight)}get rightLine(){return new vr(this.topRight,this.bottomRight)}get bottomLine(){return new vr(this.bottomLeft,this.bottomRight)}get leftLine(){return new vr(this.topLeft,this.bottomLeft)}constructor(e,t,n,r){super(),this.x=null==e?0:e,this.y=null==t?0:t,this.width=null==n?0:n,this.height=null==r?0:r}getOrigin(){return this.origin}getTopLeft(){return this.topLeft}getTopCenter(){return this.topCenter}getTopRight(){return this.topRight}getCenter(){return this.center}getCenterX(){return this.x+this.width/2}getCenterY(){return this.y+this.height/2}getBottomLeft(){return this.bottomLeft}getBottomCenter(){return this.bottomCenter}getBottomRight(){return this.bottomRight}getCorner(){return this.corner}getRightMiddle(){return this.rightMiddle}getLeftMiddle(){return this.leftMiddle}getTopLine(){return this.topLine}getRightLine(){return this.rightLine}getBottomLine(){return this.bottomLine}getLeftLine(){return this.leftLine}
/**
     * Returns a rectangle that is the bounding box of the rectangle.
     *
     * If `angle` is specified, the bounding box calculation will take into
     * account the rotation of the rectangle by angle degrees around its center.
     */bbox(e){if(!e)return this.clone();const t=or(e),n=Math.abs(Math.sin(t)),r=Math.abs(Math.cos(t)),i=this.width*r+this.height*n,a=this.width*n+this.height*r;return new mr(this.x+(this.width-i)/2,this.y+(this.height-a)/2,i,a)}round(e=0){return this.x=cr(this.x,e),this.y=cr(this.y,e),this.width=cr(this.width,e),this.height=cr(this.height,e),this}add(e,t,n,r){const i=mr.create(e,t,n,r),a=Math.min(this.x,i.x),o=Math.min(this.y,i.y),s=Math.max(this.x+this.width,i.x+i.width),c=Math.max(this.y+this.height,i.y+i.height);return this.x=a,this.y=o,this.width=s-a,this.height=c-o,this}update(e,t,n,r){const i=mr.create(e,t,n,r);return this.x=i.x,this.y=i.y,this.width=i.width,this.height=i.height,this}inflate(e,t){const n=e,r=null!=t?t:e;return this.x-=n,this.y-=r,this.width+=2*n,this.height+=2*r,this}snapToGrid(e,t){const n=this.origin.snapToGrid(e,t),r=this.corner.snapToGrid(e,t);return this.x=n.x,this.y=n.y,this.width=r.x-n.x,this.height=r.y-n.y,this}translate(e,t){const n=gr.create(e,t);return this.x+=n.x,this.y+=n.y,this}scale(e,t,n=new gr){const r=this.origin.scale(e,t,n);return this.x=r.x,this.y=r.y,this.width*=e,this.height*=t,this}rotate(e,t=this.getCenter()){if(0!==e){const n=or(e),r=Math.cos(n),i=Math.sin(n);let a=this.getOrigin(),o=this.getTopRight(),s=this.getBottomRight(),c=this.getBottomLeft();a=gr.rotateEx(a,r,i,t),o=gr.rotateEx(o,r,i,t),s=gr.rotateEx(s,r,i,t),c=gr.rotateEx(c,r,i,t);const l=new mr(a.x,a.y,0,0);l.add(o.x,o.y,0,0),l.add(s.x,s.y,0,0),l.add(c.x,c.y,0,0),this.update(l)}return this}rotate90(){const e=(this.width-this.height)/2;this.x+=e,this.y-=e;const t=this.width;return this.width=this.height,this.height=t,this}
/**
     * Translates the rectangle by `rect.x` and `rect.y` and expand it by
     * `rect.width` and `rect.height`.
     */moveAndExpand(e){const t=mr.clone(e);return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this}
/**
     * Returns an object where `sx` and `sy` give the maximum scaling that can be
     * applied to the rectangle so that it would still fit into `limit`. If
     * `origin` is specified, the rectangle is scaled around it; otherwise, it is
     * scaled around its center.
     */getMaxScaleToFit(e,t=this.center){const n=mr.clone(e),r=t.x,i=t.y;
// Find the maximal possible scale for all corners, so when the scale
// is applied the point is still inside the rectangle.
let a=1/0,o=1/0,s=1/0,c=1/0,l=1/0,u=1/0,h=1/0,f=1/0;
// Top Left
const d=n.topLeft;d.x<r&&(a=(this.x-r)/(d.x-r)),d.y<i&&(l=(this.y-i)/(d.y-i));
// Bottom Right
const p=n.bottomRight;p.x>r&&(o=(this.x+this.width-r)/(p.x-r)),p.y>i&&(u=(this.y+this.height-i)/(p.y-i));
// Top Right
const g=n.topRight;g.x>r&&(s=(this.x+this.width-r)/(g.x-r)),g.y<i&&(h=(this.y-i)/(g.y-i));
// Bottom Left
const m=n.bottomLeft;return m.x<r&&(c=(this.x-r)/(m.x-r)),m.y>i&&(f=(this.y+this.height-i)/(m.y-i)),{sx:Math.min(a,o,s,c),sy:Math.min(l,u,h,f)}}
/**
     * Returns a number that specifies the maximum scaling that can be applied to
     * the rectangle along both axes so that it would still fit into `limit`. If
     * `origin` is specified, the rectangle is scaled around it; otherwise, it is
     * scaled around its center.
     */getMaxUniformScaleToFit(e,t=this.center){const n=this.getMaxScaleToFit(e,t);return Math.min(n.sx,n.sy)}containsPoint(e,t){return fr(this,gr.create(e,t))}containsRect(e,t,n,r){const i=mr.create(e,t,n,r),a=this.x,o=this.y,s=this.width,c=this.height,l=i.x,u=i.y,h=i.width,f=i.height;
// one of the dimensions is 0
return 0!==s&&0!==c&&0!==h&&0!==f&&(l>=a&&u>=o&&l+h<=a+s&&u+f<=o+c)}
/**
     * Returns an array of the intersection points of the rectangle and the line.
     * Return `null` if no intersection exists.
     */intersectsWithLine(e){const t=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],n=[],r=[];return t.forEach((t=>{const i=e.intersectsWithLine(t);null!==i&&r.indexOf(i.toString())<0&&(n.push(i),r.push(i.toString()))})),n.length>0?n:null}
/**
     * Returns the point on the boundary of the rectangle that is the intersection
     * of the rectangle with a line starting in the center the rectangle ending in
     * the point `p`.
     *
     * If `angle` is specified, the intersection will take into account the
     * rotation of the rectangle by `angle` degrees around its center.
     */intersectsWithLineFromCenterToPoint(e,t){const n=gr.clone(e),r=this.center;let i=null;null!=t&&0!==t&&n.rotate(t,r);const a=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],o=new vr(r,n);for(let e=a.length-1;e>=0;e-=1){const t=a[e].intersectsWithLine(o);if(null!==t){i=t;break}}return i&&null!=t&&0!==t&&i.rotate(-t,r),i}intersectsWithRect(e,t,n,r){const i=mr.create(e,t,n,r);
// no intersection
if(!this.isIntersectWithRect(i))return null;const a=this.origin,o=this.corner,s=i.origin,c=i.corner,l=Math.max(a.x,s.x),u=Math.max(a.y,s.y);return new mr(l,u,Math.min(o.x,c.x)-l,Math.min(o.y,c.y)-u)}isIntersectWithRect(e,t,n,r){const i=mr.create(e,t,n,r),a=this.origin,o=this.corner,s=i.origin,c=i.corner;return!(c.x<=a.x||c.y<=a.y||s.x>=o.x||s.y>=o.y)}
/**
     * Normalize the rectangle, i.e. make it so that it has non-negative
     * width and height. If width is less than `0`, the function swaps left and
     * right corners and if height is less than `0`, the top and bottom corners
     * are swapped.
     */normalize(){let e=this.x,t=this.y,n=this.width,r=this.height;return this.width<0&&(e=this.x+this.width,n=-this.width),this.height<0&&(t=this.y+this.height,r=-this.height),this.x=e,this.y=t,this.width=n,this.height=r,this}
/**
     * Returns a rectangle that is a union of this rectangle and rectangle `rect`.
     */union(e){const t=mr.clone(e),n=this.origin,r=this.corner,i=t.origin,a=t.corner,o=Math.min(n.x,i.x),s=Math.min(n.y,i.y),c=Math.max(r.x,a.x),l=Math.max(r.y,a.y);return new mr(o,s,c-o,l-s)}
/**
     * Returns a string ("top", "left", "right" or "bottom") denoting the side of
     * the rectangle which is nearest to the point `p`.
     */getNearestSideToPoint(e){const t=gr.clone(e),n=t.x-this.x,r=this.x+this.width-t.x,i=t.y-this.y;let a=n,o="left";return r<a&&(a=r,o="right"),i<a&&(a=i,o="top"),this.y+this.height-t.y<a&&(o="bottom"),o}
/**
     * Returns a point on the boundary of the rectangle nearest to the point `p`.
     */getNearestPointToPoint(e){const t=gr.clone(e);if(this.containsPoint(t)){const e=this.getNearestSideToPoint(t);if("left"===e)return new gr(this.x,t.y);if("top"===e)return new gr(t.x,this.y);if("right"===e)return new gr(this.x+this.width,t.y);if("bottom"===e)return new gr(t.x,this.y+this.height)}return t.adhereToRect(this)}equals(e){return null!=e&&e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}clone(){return new mr(this.x,this.y,this.width,this.height)}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height}}serialize(){return`${this.x} ${this.y} ${this.width} ${this.height}`}}
//# sourceMappingURL=rectangle.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/line.js
class vr extends pr{static isLine(e){return null!=e&&e instanceof vr}get center(){return new gr((this.start.x+this.end.x)/2,(this.start.y+this.end.y)/2)}constructor(e,t,n,r){super(),"number"==typeof e&&"number"==typeof t?(this.start=new gr(e,t),this.end=new gr(n,r)):(this.start=gr.create(e),this.end=gr.create(t))}getCenter(){return this.center}
/**
     * Rounds the line to the given `precision`.
     */round(e=0){return this.start.round(e),this.end.round(e),this}translate(e,t){return"number"==typeof e?(this.start.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.end.translate(e)),this}
/**
     * Rotate the line by `angle` around `origin`.
     */rotate(e,t){return this.start.rotate(e,t),this.end.rotate(e,t),this}
/**
     * Scale the line by `sx` and `sy` about the given `origin`. If origin is not
     * specified, the line is scaled around `0,0`.
     */scale(e,t,n){return this.start.scale(e,t,n),this.end.scale(e,t,n),this}
/**
     * Returns the length of the line.
     */length(){return Math.sqrt(this.squaredLength())}
/**
     * Useful for distance comparisons in which real length is not necessary
     * (saves one `Math.sqrt()` operation).
     */squaredLength(){const e=this.start.x-this.end.x,t=this.start.y-this.end.y;return e*e+t*t}
/**
     * Scale the line so that it has the requested length. The start point of
     * the line is preserved.
     */setLength(e){const t=this.length();if(!t)return this;const n=e/t;return this.scale(n,n,this.start)}parallel(e){const t=this.clone();if(!t.isDifferentiable())return t;const{start:n,end:r}=t,i=n.clone().rotate(270,r),a=r.clone().rotate(90,n);return n.move(a,e),r.move(i,e),t}
/**
     * Returns the vector of the line with length equal to length of the line.
     */vector(){return new gr(this.end.x-this.start.x,this.end.y-this.start.y)}
/**
     * Returns the angle of incline of the line.
     *
     * The function returns `NaN` if the start and end endpoints of the line
     * both lie at the same coordinates(it is impossible to determine the angle
     * of incline of a line that appears to be a point). The
     * `line.isDifferentiable()` function may be used in advance to determine
     * whether the angle of incline can be computed for a given line.
     */angle(){const e=new gr(this.start.x+1,this.start.y);return this.start.angleBetween(this.end,e)}
/**
     * Returns a rectangle that is the bounding box of the line.
     */bbox(){const e=Math.min(this.start.x,this.end.x),t=Math.min(this.start.y,this.end.y),n=Math.max(this.start.x,this.end.x),r=Math.max(this.start.y,this.end.y);return new mr(e,t,n-e,r-t)}
/**
     * Returns the bearing (cardinal direction) of the line.
     *
     * The return value is one of the following strings:
     * 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW' and 'N'.
     *
     * The function returns 'N' if the two endpoints of the line are coincident.
     */bearing(){return this.start.bearing(this.end)}
/**
     * Returns the point on the line that lies closest to point `p`.
     */closestPoint(e){return this.pointAt(this.closestPointNormalizedLength(e))}
/**
     * Returns the length of the line up to the point that lies closest to point `p`.
     */closestPointLength(e){return this.closestPointNormalizedLength(e)*this.length()}
/**
     * Returns a line that is tangent to the line at the point that lies closest
     * to point `p`.
     */closestPointTangent(e){return this.tangentAt(this.closestPointNormalizedLength(e))}
/**
     * Returns the normalized length (distance from the start of the line / total
     * line length) of the line up to the point that lies closest to point.
     */closestPointNormalizedLength(e){const t=this.vector().dot(new vr(this.start,e).vector()),n=Math.min(1,Math.max(0,t/this.squaredLength()));
// normalized returns `NaN` if this line has zero length
return Number.isNaN(n)?0:n}
/**
     * Returns a point on the line that lies `rate` (normalized length) away from
     * the beginning of the line.
     */pointAt(e){const t=this.start,n=this.end;return e<=0?t.clone():e>=1?n.clone():t.lerp(n,e)}
/**
     * Returns a point on the line that lies length away from the beginning of
     * the line.
     */pointAtLength(e){const t=this.start,n=this.end;let r=!0;e<0&&(r=!1,// start calculation from end point
e=-e);const i=this.length();if(e>=i)return r?n.clone():t.clone();const a=(r?e:i-e)/i;return this.pointAt(a)}
/**
     * Divides the line into two lines at the point that lies `rate` (normalized
     * length) away from the beginning of the line.
     */divideAt(e){const t=this.pointAt(e);return[new vr(this.start,t),new vr(t,this.end)]}
/**
     * Divides the line into two lines at the point that lies length away from
     * the beginning of the line.
     */divideAtLength(e){const t=this.pointAtLength(e);return[new vr(this.start,t),new vr(t,this.end)]}
/**
     * Returns `true` if the point `p` lies on the line. Return `false` otherwise.
     */containsPoint(e){const t=this.start,n=this.end;
// cross product of 0 indicates that this line and
// the vector to `p` are collinear.
if(0!==t.cross(e,n))return!1;const r=this.length();return!(new vr(t,e).length()>r)&&!(new vr(e,n).length()>r)}intersect(e,t){const n=e.intersectsWithLine(this,t);return n?Array.isArray(n)?n:[n]:null}
/**
     * Returns the intersection point of the line with another line. Returns
     * `null` if no intersection exists.
     */intersectsWithLine(e){const t=new gr(this.end.x-this.start.x,this.end.y-this.start.y),n=new gr(e.end.x-e.start.x,e.end.y-e.start.y),r=t.x*n.y-t.y*n.x,i=new gr(e.start.x-this.start.x,e.start.y-this.start.y),a=i.x*n.y-i.y*n.x,o=i.x*t.y-i.y*t.x;if(0===r||a*r<0||o*r<0)return null;if(r>0){if(a>r||o>r)return null}else if(a<r||o<r)return null;return new gr(this.start.x+a*t.x/r,this.start.y+a*t.y/r)}
/**
     * Returns `true` if a tangent line can be found for the line.
     *
     * Tangents cannot be found if both of the line endpoints are coincident
     * (the line appears to be a point).
     */isDifferentiable(){return!this.start.equals(this.end)}
/**
     * Returns the perpendicular distance between the line and point. The
     * distance is positive if the point lies to the right of the line, negative
     * if the point lies to the left of the line, and `0` if the point lies on
     * the line.
     */pointOffset(e){const t=gr.clone(e),n=this.start,r=this.end;return((r.x-n.x)*(t.y-n.y)-(r.y-n.y)*(t.x-n.x))/this.length()}pointSquaredDistance(e,t){const n=gr.create(e,t);return this.closestPoint(n).squaredDistance(n)}pointDistance(e,t){const n=gr.create(e,t);return this.closestPoint(n).distance(n)}
/**
     * Returns a line tangent to the line at point that lies `rate` (normalized
     * length) away from the beginning of the line.
     */tangentAt(e){if(!this.isDifferentiable())return null;const t=this.start,n=this.end,r=this.pointAt(e),i=new vr(t,n);return i.translate(r.x-t.x,r.y-t.y),i}
/**
     * Returns a line tangent to the line at point that lies `length` away from
     * the beginning of the line.
     */tangentAtLength(e){if(!this.isDifferentiable())return null;const t=this.start,n=this.end,r=this.pointAtLength(e),i=new vr(t,n);return i.translate(r.x-t.x,r.y-t.y),i}relativeCcw(e,t){const n=gr.create(e,t);let r=n.x-this.start.x,i=n.y-this.start.y;const a=this.end.x-this.start.x,o=this.end.y-this.start.y;let s=r*o-i*a;return 0===s&&(s=r*a+i*o,s>0&&(r-=a,i-=o,s=r*a+i*o,s<0&&(s=0))),s<0?-1:s>0?1:0}
/**
     * Return `true` if the line equals the other line.
     */equals(e){return null!=e&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}
/**
     * Returns another line which is a clone of the line.
     */clone(){return new vr(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}
//# sourceMappingURL=line.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/ellipse.js
class yr extends pr{static isEllipse(e){return null!=e&&e instanceof yr}static create(e,t,n,r){return null==e||"number"==typeof e?new yr(e,t,n,r):yr.parse(e)}static parse(e){return yr.isEllipse(e)?e.clone():Array.isArray(e)?new yr(e[0],e[1],e[2],e[3]):new yr(e.x,e.y,e.a,e.b)}static fromRect(e){const t=e.center;return new yr(t.x,t.y,e.width/2,e.height/2)}get center(){return new gr(this.x,this.y)}constructor(e,t,n,r){super(),this.x=null==e?0:e,this.y=null==t?0:t,this.a=null==n?0:n,this.b=null==r?0:r}
/**
     * Returns a rectangle that is the bounding box of the ellipse.
     */bbox(){return mr.fromEllipse(this)}
/**
     * Returns a point that is the center of the ellipse.
     */getCenter(){return this.center}inflate(e,t){const n=e,r=null!=t?t:e;return this.a+=2*n,this.b+=2*r,this}normalizedDistance(e,t){const n=gr.create(e,t),r=n.x-this.x,i=n.y-this.y,a=this.a,o=this.b;return r*r/(a*a)+i*i/(o*o)}containsPoint(e,t){return this.normalizedDistance(e,t)<=1}
/**
     * Returns an array of the intersection points of the ellipse and the line.
     * Returns `null` if no intersection exists.
     */intersectsWithLine(e){const t=[],n=this.a,r=this.b,i=e.start,a=e.end,o=e.vector(),s=i.diff(new gr(this.x,this.y)),c=new gr(o.x/(n*n),o.y/(r*r)),l=new gr(s.x/(n*n),s.y/(r*r)),u=o.dot(c),h=o.dot(l),f=h*h-u*(s.dot(l)-1);if(f<0)return null;if(f>0){const e=Math.sqrt(f),n=(-h-e)/u,r=(-h+e)/u;if((n<0||n>1)&&(r<0||r>1))
// outside
return null;n>=0&&n<=1&&t.push(i.lerp(a,n)),r>=0&&r<=1&&t.push(i.lerp(a,r))}else{const e=-h/u;if(!(e>=0&&e<=1))
// outside
return null;t.push(i.lerp(a,e))}return t}
/**
     * Returns the point on the boundary of the ellipse that is the
     * intersection of the ellipse with a line starting in the center
     * of the ellipse ending in the point `p`.
     *
     * If angle is specified, the intersection will take into account
     * the rotation of the ellipse by angle degrees around its center.
     */intersectsWithLineFromCenterToPoint(e,t=0){const n=gr.clone(e);t&&n.rotate(t,this.getCenter());const r=n.x-this.x,i=n.y-this.y;let a;if(0===r)return a=this.bbox().getNearestPointToPoint(n),t?a.rotate(-t,this.getCenter()):a;const o=i/r,s=o*o,c=this.a*this.a,l=this.b*this.b;let u=Math.sqrt(1/(1/c+s/l));u=r<0?-u:u;const h=o*u;return a=new gr(this.x+u,this.y+h),t?a.rotate(-t,this.getCenter()):a}
/**
     * Returns the angle between the x-axis and the tangent from a point. It is
     * valid for points lying on the ellipse boundary only.
     */tangentTheta(e){const t=gr.clone(e),n=t.x,r=t.y,i=this.a,a=this.b,o=this.bbox().center,s=o.x,c=o.y,l=n>o.x+i/2,u=n<o.x-i/2;let h,f;return l||u?(f=n>o.x?r-30:r+30,h=i*i/(n-s)-i*i*(r-c)*(f-c)/(a*a*(n-s))+s):(h=r>o.y?n+30:n-30,f=a*a/(r-c)-a*a*(n-s)*(h-s)/(i*i*(r-c))+c),new gr(h,f).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const n=mr.fromEllipse(this);n.rotate(e,t);const r=yr.fromRect(n);return this.a=r.a,this.b=r.b,this.x=r.x,this.y=r.y,this}translate(e,t){const n=gr.create(e,t);return this.x+=n.x,this.y+=n.y,this}equals(e){return null!=e&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}clone(){return new yr(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}
//# sourceMappingURL=ellipse.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/util.js
/* eslint-disable default-param-last */const Ar=new RegExp("^[\\s\\dLMCZz,.]*$");// eslint-disable-line prefer-regex-literals
/**
 * Returns the remainder of division of `n` by `m`. You should use this
 * instead of the built-in operation as the built-in operation does not
 * properly handle negative numbers.
 */
function br(e,t){return(e%t+t)%t}function wr(e,t={}){const n=[];return e&&e.length&&e.forEach((e=>{Array.isArray(e)?n.push({x:e[0],y:e[1]}):n.push({x:e.x,y:e.y})})),function(e,t,n,r,i){if(!e||0===e.length)return"";const a=[],o=e[e.length-1],s=null!=t&&t>0,c=t||0;
// Adds virtual waypoint in the center between start and end point
if(r&&s){// eslint-disable-line
const t=(e=e.slice())[0],n=new gr(o.x+(t.x-o.x)/2,o.y+(t.y-o.y)/2);e.splice(0,0,n)}let l=e[0],u=1;for(
// Draws the line segments
n?a.push("M",l.x,l.y):a.push("L",l.x,l.y);u<(r?e.length:e.length-1);){let t=e[br(u,e.length)],n=l.x-t.x,r=l.y-t.y;if(s&&(0!==n||0!==r)&&(null==i||i.indexOf(u-1)<0)){
// Draws a line from the last point to the current
// point with a spacing of size off the current point
// into direction of the last point
let i=Math.sqrt(n*n+r*r);const o=n*Math.min(c,i/2)/i,s=r*Math.min(c,i/2)/i,l=t.x+o,h=t.y+s;a.push("L",l,h);
// Draws a curve from the last point to the current
// point with a spacing of size off the current point
// into direction of the next point
let f=e[br(u+1,e.length)];
// Uses next non-overlapping point
for(;u<e.length-2&&0===Math.round(f.x-t.x)&&0===Math.round(f.y-t.y);)f=e[br(u+2,e.length)],u+=1;n=f.x-t.x,r=f.y-t.y,i=Math.max(1,Math.sqrt(n*n+r*r));const d=n*Math.min(c,i/2)/i,p=r*Math.min(c,i/2)/i,g=t.x+d,m=t.y+p;a.push("Q",t.x,t.y,g,m),t=new gr(g,m)}else a.push("L",t.x,t.y);l=t,u+=1}return r?a.push("Z"):a.push("L",o.x,o.y),a.map((e=>"string"==typeof e?e:+e.toFixed(3))).join(" ")}(n,t.round,null==t.initialMove||t.initialMove,t.close,t.exclude)}
/**
 * Converts the given arc to a series of curves.
 */function xr(e,t,n,r,i=0,a=0,o=0,s,c){if(0===n||0===r)return[];s-=e,// eslint-disable-line
c-=t,// eslint-disable-line
n=Math.abs(n),// eslint-disable-line
r=Math.abs(r);// eslint-disable-line
const l=-s/2,u=-c/2,h=Math.cos(i*Math.PI/180),f=Math.sin(i*Math.PI/180),d=h*l+f*u,p=-1*f*l+h*u,g=d*d,m=p*p,v=n*n,y=r*r,A=g/v+m/y;let b;if(A>1)n=Math.sqrt(A)*n,// eslint-disable-line
r=Math.sqrt(A)*r,// eslint-disable-line
b=0;else{let e=1;a===o&&(e=-1),b=e*Math.sqrt((v*y-v*m-y*g)/(v*m+y*g))}const w=b*n*p/r,x=-1*b*r*d/n,C=h*w-f*x+s/2,_=f*w+h*x+c/2;let I=Math.atan2((p-x)/r,(d-w)/n)-Math.atan2(0,1),E=I>=0?I:2*Math.PI+I;I=Math.atan2((-p-x)/r,(-d-w)/n)-Math.atan2((p-x)/r,(d-w)/n);let k=I>=0?I:2*Math.PI+I;0===o&&k>0?k-=2*Math.PI:0!==o&&k<0&&(k+=2*Math.PI);const S=2*k/Math.PI,B=Math.ceil(S<0?-1*S:S),M=k/B,T=8/3*Math.sin(M/4)*Math.sin(M/4)/Math.sin(M/2),O=h*n,D=h*r,P=f*n,L=f*r;let Q=Math.cos(E),R=Math.sin(E),j=-T*(O*R+L*Q),N=-T*(P*R-D*Q),F=0,z=0;const H=[];for(let n=0;n<B;n+=1){E+=M,Q=Math.cos(E),R=Math.sin(E),F=O*Q-L*R+C,z=P*Q+D*R+_;const r=-T*(O*R+L*Q),i=-T*(P*R-D*Q),a=6*n;H[a]=Number(j+e),H[a+1]=Number(N+t),H[a+2]=Number(F-r+e),H[a+3]=Number(z-i+t),H[a+4]=Number(F+e),H[a+5]=Number(z+t),j=F+r,N=z+i}return H.map((e=>+e.toFixed(2)))}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/polyline.js
/* eslint-disable no-constructor-return */
class Cr extends pr{static isPolyline(e){return null!=e&&e instanceof Cr}static parse(e){const t=e.trim();if(""===t)return new Cr;const n=[],r=t.split(/\s*,\s*|\s+/);for(let e=0,t=r.length;e<t;e+=2)n.push({x:+r[e],y:+r[e+1]});return new Cr(n)}get start(){return this.points[0]||null}get end(){return this.points[this.points.length-1]||null}constructor(e){if(super(),null!=e){if("string"==typeof e)return Cr.parse(e);this.points=e.map((e=>gr.create(e)))}else this.points=[]}scale(e,t,n=new gr){return this.points.forEach((r=>r.scale(e,t,n))),this}rotate(e,t){return this.points.forEach((n=>n.rotate(e,t))),this}translate(e,t){const n=gr.create(e,t);return this.points.forEach((e=>e.translate(n.x,n.y))),this}round(e=0){return this.points.forEach((t=>t.round(e))),this}bbox(){if(0===this.points.length)return new mr;let e=1/0,t=-1/0,n=1/0,r=-1/0;const i=this.points;for(let a=0,o=i.length;a<o;a+=1){const o=i[a],s=o.x,c=o.y;s<e&&(e=s),s>t&&(t=s),c<n&&(n=c),c>r&&(r=c)}return new mr(e,n,t-e,r-n)}closestPoint(e){const t=this.closestPointLength(e);return this.pointAtLength(t)}closestPointLength(e){const t=this.points,n=t.length;if(0===n||1===n)return 0;let r=0,i=0,a=1/0;for(let o=0,s=n-1;o<s;o+=1){const n=new vr(t[o],t[o+1]),s=n.length(),c=n.closestPointNormalizedLength(e),l=n.pointAt(c).squaredDistance(e);l<a&&(a=l,i=r+c*s),r+=s}return i}closestPointNormalizedLength(e){const t=this.length();if(0===t)return 0;return this.closestPointLength(e)/t}closestPointTangent(e){const t=this.closestPointLength(e);return this.tangentAtLength(t)}containsPoint(e){if(0===this.points.length)return!1;const t=gr.clone(e),n=t.x,r=t.y,i=this.points,a=i.length;let o=a-1,s=0;for(let c=0;c<a;c+=1){const a=i[o],l=i[c];if(t.equals(a))return!0;const u=new vr(a,l);if(u.containsPoint(e))return!0;
// do we have an intersection?
if(r<=a.y&&r>l.y||r>a.y&&r<=l.y){
// this conditional branch IS NOT entered when `segment` is collinear/coincident with `ray`
// (when `y === start.y === end.y`)
// this conditional branch IS entered when `segment` touches `ray` at only one point
// (e.g. when `y === start.y !== end.y`)
// since this branch is entered again for the following segment, the two touches cancel out
const t=a.x-n>l.x-n?a.x-n:l.x-n;if(t>=0){
// segment lies at least partially to the right of `p`
const i=new gr(n+t,r),a=new vr(e,i);// right
u.intersectsWithLine(a)&&(
// an intersection was detected to the right of `p`
s+=1)}// else: `segment` lies completely to the left of `p` (i.e. no intersection to the right)
}
// move to check the next polyline segment
o=c}
// returns `true` for odd numbers of intersections (even-odd algorithm)
return s%2==1}intersectsWithLine(e){const t=[];for(let n=0,r=this.points.length-1;n<r;n+=1){const r=this.points[n],i=this.points[n+1],a=e.intersectsWithLine(new vr(r,i));a&&t.push(a)}return t.length>0?t:null}isDifferentiable(){for(let e=0,t=this.points.length-1;e<t;e+=1){const t=this.points[e],n=this.points[e+1];if(new vr(t,n).isDifferentiable())return!0}return!1}length(){let e=0;for(let t=0,n=this.points.length-1;t<n;t+=1){const n=this.points[t],r=this.points[t+1];e+=n.distance(r)}return e}pointAt(e){const t=this.points,n=t.length;if(0===n)return null;if(1===n)return t[0].clone();if(e<=0)return t[0].clone();if(e>=1)return t[n-1].clone();const r=this.length()*e;return this.pointAtLength(r)}pointAtLength(e){const t=this.points,n=t.length;if(0===n)return null;if(1===n)return t[0].clone();let r=!0;e<0&&(r=!1,e=-e);let i=0;for(let a=0,o=n-1;a<o;a+=1){const n=r?a:o-1-a,s=t[n],c=t[n+1],l=new vr(s,c),u=s.distance(c);if(e<=i+u)return l.pointAtLength((r?1:-1)*(e-i));i+=u}return(r?t[n-1]:t[0]).clone()}tangentAt(e){const t=this.points.length;if(0===t||1===t)return null;e<0&&(e=0),e>1&&(e=1);const n=this.length()*e;return this.tangentAtLength(n)}tangentAtLength(e){const t=this.points,n=t.length;if(0===n||1===n)return null;let r,i=!0;e<0&&(i=!1,e=-e);let a=0;for(let o=0,s=n-1;o<s;o+=1){const n=i?o:s-1-o,c=t[n],l=t[n+1],u=new vr(c,l),h=c.distance(l);if(u.isDifferentiable()){
// has a tangent line (line length is not 0)
if(e<=a+h)return u.tangentAtLength((i?1:-1)*(e-a));r=u}a+=h}if(r){const e=i?1:0;return r.tangentAt(e)}return null}simplify(
// TODO: Accept startIndex and endIndex to specify where to start and end simplification
e={}){const t=this.points;
// we need at least 3 points
if(t.length<3)return this;const n=e.threshold||0;
// start at the beginning of the polyline and go forward
let r=0;
// we need at least one intermediate point (3 points) in every iteration
// as soon as that stops being true, we know we reached the end of the polyline
for(;t[r+2];){const e=r+1,i=r+2,a=t[r],o=t[e],s=t[i];new vr(a,s).closestPoint(o).distance(o)<=n?
// middle point is close enough to the chord = simplify
// 1) remove middle point:
t.splice(e,1):
// middle point is far from the chord
// 1) preserve middle point
// 2) in next iteration, move `currentIndex` by one step:
r+=1}
// `points` array was modified in-place
return this}toHull(){const e=this.points,t=e.length;if(0===t)return new Cr;
// Step 1: find the starting point -- point with
// the lowest y (if equality, highest x).
let n=e[0];for(let r=1;r<t;r+=1)(e[r].y<n.y||e[r].y===n.y&&e[r].x>n.x)&&(n=e[r]);
// Step 2: sort the list of points by angle between line
// from start point to current point and the x-axis (theta).
// Step 2a: create the point records = [point, originalIndex, angle]
const r=[];for(let i=0;i<t;i+=1){let t=n.theta(e[i]);0===t&&(
// Give highest angle to start point.
// The start point will end up at end of sorted list.
// The start point will end up at beginning of hull points list.
t=360),r.push([e[i],i,t])}
// Step 2b: sort the list in place
// Step 2c: duplicate start record from the top of
// the stack to the bottom of the stack.
if(r.sort(((e,t)=>{let n=e[2]-t[2];return 0===n&&(n=t[1]-e[1]),n})),r.length>2){const e=r[r.length-1];r.unshift(e)}
// Step 3
// ------
// Step 3a: go through sorted points in order and find those with
// right turns, and we want to get our results in clockwise order.
// Dictionary of points with left turns - cannot be on the hull.
const i={},a=[],o=e=>`${e[0].toString()}@${e[1]}`;
// Stack of records with right turns - hull point candidates.
for(;0!==r.length;){const e=r.pop(),t=e[0];
// Check if point has already been discarded.
if(i[o(e)])continue;let n=!1;for(;!n;)if(a.length<2)
// Not enough points for comparison, just add current point.
a.push(e),n=!0;else{const s=a.pop(),c=s[0],l=a.pop(),u=l[0],h=u.cross(c,t);if(h<0)
// Found a right turn.
a.push(l),a.push(s),a.push(e),n=!0;else if(0===h){
// the three points are collinear
// three options:
// there may be a 180 or 0 degree angle at lastHullPoint
// or two of the three points are coincident
// we have to take rounding errors into account
const e=1e-10,n=c.angleBetween(u,t);Math.abs(n-180)<e||c.equals(t)||u.equals(c)?(
// rouding around 180 to 180
// if the cross product is 0 because the angle is 180 degrees
// discard last hull point (add to insidePoints)
// insidePoints.unshift(lastHullPoint);
i[o(s)]=c,
// reenter second-to-last hull point (will be last at next iter)
a.push(l)):Math.abs((n+1)%360-1)<e&&(
// rounding around 0 and 360 to 0
// if the cross product is 0 because the angle is 0 degrees
// remove last hull point from hull BUT do not discard it
// reenter second-to-last hull point (will be last at next iter)
a.push(l),
// put last hull point back into the sorted point records list
r.push(s))}else
// found a left turn
// discard last hull point (add to insidePoints)
// insidePoints.unshift(lastHullPoint);
i[o(s)]=c,
// reenter second-to-last hull point (will be last at next iter of loop)
a.push(l)}}
// At this point, hullPointRecords contains the output points in clockwise order
// the points start with lowest-y,highest-x startPoint, and end at the same point
// Step 3b: remove duplicated startPointRecord from the end of the array
// Step 4: find the lowest originalIndex record and put it at the beginning of hull
let s;// the lowest originalIndex on the hull
a.length>2&&a.pop();let c=-1;// the index of the record with lowestHullIndex
for(let e=0,t=a.length;e<t;e+=1){const t=a[e][1];(void 0===s||t<s)&&(s=t,c=e)}let l=[];if(c>0){const e=a.slice(c),t=a.slice(0,c);l=e.concat(t)}else l=a;const u=[];for(let e=0,t=l.length;e<t;e+=1)u.push(l[e][0]);return new Cr(u)}equals(e){return null!=e&&(e.points.length===this.points.length&&e.points.every(((e,t)=>e.equals(this.points[t]))))}clone(){return new Cr(this.points.map((e=>e.clone())))}toJSON(){return this.points.map((e=>e.toJSON()))}serialize(){return this.points.map((e=>`${e.serialize()}`)).join(" ")}}
//# sourceMappingURL=polyline.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/curve.js
class _r extends pr{static isCurve(e){return null!=e&&e instanceof _r}static throughPoints(e){if(null==e||Array.isArray(e)&&e.length<2)throw new Error("At least 2 points are required");const t=function(e){const t=e.map((e=>gr.clone(e))),n=[],r=[],i=t.length-1;
// Special case: Bezier curve should be a straight line.
if(1===i)
// 3P1 = 2P0 + P3
return n[0]=new gr((2*t[0].x+t[1].x)/3,(2*t[0].y+t[1].y)/3),
// P2 = 2P1 – P0
r[0]=new gr(2*n[0].x-t[0].x,2*n[0].y-t[0].y),[n,r];
// Calculate first Bezier control points.
// Right hand side vector.
const a=[];
// Set right hand side X values.
for(let e=1;e<i-1;e+=1)a[e]=4*t[e].x+2*t[e+1].x;a[0]=t[0].x+2*t[1].x,a[i-1]=(8*t[i-1].x+t[i].x)/2;
// Get first control points X-values.
const o=Ir(a);
// Set right hand side Y values.
for(let e=1;e<i-1;e+=1)a[e]=4*t[e].y+2*t[e+1].y;a[0]=t[0].y+2*t[1].y,a[i-1]=(8*t[i-1].y+t[i].y)/2;
// Get first control points Y-values.
const s=Ir(a);
// Fill output arrays.
for(let e=0;e<i;e+=1)
// First control point.
n.push(new gr(o[e],s[e])),
// Second control point.
e<i-1?r.push(new gr(2*t[e+1].x-o[e+1],2*t[e+1].y-s[e+1])):r.push(new gr((t[i].x+o[i-1])/2,(t[i].y+s[i-1])/2));return[n,r]}
//# sourceMappingURL=curve.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/segment.js
(e),n=[];for(let r=0,i=t[0].length;r<i;r+=1){const i=new gr(t[0][r].x,t[0][r].y),a=new gr(t[1][r].x,t[1][r].y);n.push(new _r(e[r],i,a,e[r+1]))}return n}constructor(e,t,n,r){super(),this.PRECISION=3,this.start=gr.create(e),this.controlPoint1=gr.create(t),this.controlPoint2=gr.create(n),this.end=gr.create(r)}bbox(){const e=this.start,t=this.controlPoint1,n=this.controlPoint2,r=this.end,i=e.x,a=e.y,o=t.x,s=t.y,c=n.x,l=n.y,u=r.x,h=r.y,f=[],d=[],p=[[],[]];let g,m,v,y,A,b,w,x,C,_,I;for(let e=0;e<2;e+=1)if(0===e?(m=6*i-12*o+6*c,g=-3*i+9*o-9*c+3*u,v=3*o-3*i):(m=6*a-12*s+6*l,g=-3*a+9*s-9*l+3*h,v=3*s-3*a),Math.abs(g)<1e-12){if(Math.abs(m)<1e-12)continue;y=-v/m,y>0&&y<1&&d.push(y)}else w=m*m-4*v*g,x=Math.sqrt(w),w<0||(A=(-m+x)/(2*g),A>0&&A<1&&d.push(A),b=(-m-x)/(2*g),b>0&&b<1&&d.push(b));let E=d.length;const k=E;for(;E;)E-=1,y=d[E],I=1-y,C=I*I*I*i+3*I*I*y*o+3*I*y*y*c+y*y*y*u,p[0][E]=C,_=I*I*I*a+3*I*I*y*s+3*I*y*y*l+y*y*y*h,p[1][E]=_,f[E]={X:C,Y:_};d[k]=0,d[k+1]=1,f[k]={X:i,Y:a},f[k+1]={X:u,Y:h},p[0][k]=i,p[1][k]=a,p[0][k+1]=u,p[1][k+1]=h,d.length=k+2,p[0].length=k+2,p[1].length=k+2,f.length=k+2;const S=Math.min.apply(null,p[0]),B=Math.min.apply(null,p[1]),M=Math.max.apply(null,p[0]),T=Math.max.apply(null,p[1]);return new mr(S,B,M-S,T-B)}closestPoint(e,t={}){return this.pointAtT(this.closestPointT(e,t))}closestPointLength(e,t={}){const n=this.getOptions(t);return this.lengthAtT(this.closestPointT(e,n),n)}closestPointNormalizedLength(e,t={}){const n=this.getOptions(t),r=this.closestPointLength(e,n);if(!r)return 0;const i=this.length(n);return 0===i?0:r/i}closestPointT(e,t={}){const n=this.getPrecision(t),r=this.getDivisions(t),i=Math.pow(10,-n);// eslint-disable-line
let a=null,o=0,s=0,c=0,l=0,u=0,h=null;const f=r.length;let d=f>0?1/f:0;
// Recursively divide investigated subdivision, until distance between
// baselinePoint and closest path endpoint is within `10^(-precision)`,
// then return the closest endpoint of that final subdivision.
// eslint-disable-next-line
for(r.forEach(((t,n)=>{const r=t.start.distance(e),i=t.end.distance(e),f=r+i;(null==h||f<h)&&(a=t,o=n*d,s=(n+1)*d,c=r,l=i,h=f,u=t.endpointDistance())}));;){
// check if we have reached at least one required observed precision
// - calculated as: the difference in distances from point to start and end divided by the distance
// - note that this function is not monotonic = it doesn't converge stably but has "teeth"
// - the function decreases while one of the endpoints is fixed but "jumps" whenever we switch
// - this criterion works well for points lying far away from the curve
const t=c?Math.abs(c-l)/c:0,n=null!=l?Math.abs(c-l)/l:0;if(t<i||n<i||(!c||c<u*i||(!l||l<u*i)))return c<=l?o:s;
// otherwise, set up for next iteration
const r=a.divide(.5);d/=2;const h=r[0].start.distance(e),f=r[0].end.distance(e),p=h+f,g=r[1].start.distance(e),m=r[1].end.distance(e);p<=g+m?(a=r[0],s-=d,c=h,l=f):(a=r[1],o+=d,c=g,l=m)}}closestPointTangent(e,t={}){return this.tangentAtT(this.closestPointT(e,t))}containsPoint(e,t={}){return this.toPolyline(t).containsPoint(e)}divideAt(e,t={}){if(e<=0)return this.divideAtT(0);if(e>=1)return this.divideAtT(1);const n=this.tAt(e,t);return this.divideAtT(n)}divideAtLength(e,t={}){const n=this.tAtLength(e,t);return this.divideAtT(n)}divide(e){return this.divideAtT(e)}divideAtT(e){const t=this.start,n=this.controlPoint1,r=this.controlPoint2,i=this.end;if(e<=0)return[new _r(t,t,t,t),new _r(t,n,r,i)];if(e>=1)return[new _r(t,n,r,i),new _r(i,i,i,i)];const a=this.getSkeletonPoints(e),o=a.startControlPoint1,s=a.startControlPoint2,c=a.divider,l=a.dividerControlPoint1,u=a.dividerControlPoint2;return[new _r(t,o,s,c),new _r(c,l,u,i)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,n=this.controlPoint1,r=this.controlPoint2,i=this.end;
// shortcuts for `t` values that are out of range
if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:n.clone(),dividerControlPoint2:r.clone()};if(e>=1)return{startControlPoint1:n.clone(),startControlPoint2:r.clone(),divider:i.clone(),dividerControlPoint1:i.clone(),dividerControlPoint2:i.clone()};const a=new vr(t,n).pointAt(e),o=new vr(n,r).pointAt(e),s=new vr(r,i).pointAt(e),c=new vr(a,o).pointAt(e),l=new vr(o,s).pointAt(e);return{startControlPoint1:a,startControlPoint2:c,divider:new vr(c,l).pointAt(e),dividerControlPoint1:l,dividerControlPoint2:s}}getSubdivisions(e={}){const t=this.getPrecision(e);let n=[new _r(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===t)return n;let r=this.endpointDistance();const i=Math.pow(10,-t);// eslint-disable-line
// Recursively divide curve at `t = 0.5`, until the difference between
// observed length at subsequent iterations is lower than precision.
let a=0;
// eslint-disable-next-line
for(;;){a+=1;const e=[];n.forEach((t=>{
// dividing at t = 0.5 (not at middle length!)
const n=t.divide(.5);e.push(n[0],n[1])}));
// measure new length
const t=e.reduce(((e,t)=>e+t.endpointDistance()),0);
// check if we have reached required observed precision
// sine-like curves may have the same observed length in iteration 0 and 1 - skip iteration 1
// not a problem for further iterations because cubic curves cannot have more than two local extrema
// (i.e. cubic curves cannot intersect the baseline more than once)
// therefore two subsequent iterations cannot produce sampling with equal length
if(a>1&&(0!==t?(t-r)/t:0)<i)return e;n=e,r=t}}length(e={}){return this.getDivisions(e).reduce(((e,t)=>e+t.endpointDistance()),0)}lengthAtT(e,t={}){if(e<=0)return 0;const n=void 0===t.precision?this.PRECISION:t.precision;return this.divide(e)[0].length({precision:n})}pointAt(e,t={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const n=this.tAt(e,t);return this.pointAtT(n)}pointAtLength(e,t={}){const n=this.tAtLength(e,t);return this.pointAtT(n)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,t=this.controlPoint1,n=this.controlPoint2,r=this.end;return!(e.equals(t)&&t.equals(n)&&n.equals(r))}tangentAt(e,t={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const n=this.tAt(e,t);return this.tangentAtT(n)}tangentAtLength(e,t={}){if(!this.isDifferentiable())return null;const n=this.tAtLength(e,t);return this.tangentAtT(n)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const t=this.getSkeletonPoints(e),n=t.startControlPoint2,r=t.dividerControlPoint1,i=t.divider,a=new vr(n,r);
// move so that tangent line starts at the point requested
return a.translate(i.x-n.x,i.y-n.y),a}getPrecision(e={}){return null==e.precision?this.PRECISION:e.precision}getDivisions(e={}){if(null!=e.subdivisions)return e.subdivisions;const t=this.getPrecision(e);return this.getSubdivisions({precision:t})}getOptions(e={}){return{precision:this.getPrecision(e),subdivisions:this.getDivisions(e)}}tAt(e,t={}){if(e<=0)return 0;if(e>=1)return 1;const n=this.getOptions(t),r=this.length(n)*e;return this.tAtLength(r,n)}tAtLength(e,t={}){let n=!0;e<0&&(n=!1,e=-e);const r=this.getPrecision(t),i=this.getDivisions(t),a={precision:r,subdivisions:i};let o,s,c=null,l=0,u=0,h=0;const f=i.length;let d=f>0?1/f:0;for(let t=0;t<f;t+=1){const r=n?t:f-1-t,a=i[t],p=a.endpointDistance();if(e<=h+p){c=a,o=r*d,s=(r+1)*d,l=n?e-h:p+h-e,u=n?p+h-e:e-h;break}h+=p}if(null==c)return n?1:0;
// note that precision affects what length is recorded
// (imprecise measurements underestimate length by up to 10^(-precision) of the precise length)
// e.g. at precision 1, the length may be underestimated by up to 10% and cause this function to return 1
const p=this.length(a),g=Math.pow(10,-r);// eslint-disable-line
// recursively divide investigated subdivision:
// until distance between baselinePoint and closest path endpoint is within 10^(-precision)
// then return the closest endpoint of that final subdivision
// eslint-disable-next-line
for(;;){let e,t,n;if(e=0!==p?l/p:0,e<g)return o;if(e=0!==p?u/p:0,e<g)return s;
// otherwise, set up for next iteration
const r=c.divide(.5);d/=2;const i=r[0].endpointDistance(),a=r[1].endpointDistance();l<=i?(c=r[0],s-=d,t=l,n=i-t):(c=r[1],o+=d,t=l-i,n=a-t),l=t,u=n}}toPoints(e={}){const t=this.getDivisions(e),n=[t[0].start.clone()];return t.forEach((e=>n.push(e.end.clone()))),n}toPolyline(e={}){return new Cr(this.toPoints(e))}scale(e,t,n){return this.start.scale(e,t,n),this.controlPoint1.scale(e,t,n),this.controlPoint2.scale(e,t,n),this.end.scale(e,t,n),this}rotate(e,t){return this.start.rotate(e,t),this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return"number"==typeof e?(this.start.translate(e,t),this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return null!=e&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}clone(){return new _r(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}function Ir(e){const t=e.length,n=[],r=[];let i=2;n[0]=e[0]/i;
// Decomposition and forward substitution.
for(let a=1;a<t;a+=1)r[a]=1/i,i=(a<t-1?4:3.5)-r[a],n[a]=(e[a]-n[a-1])/i;for(let e=1;e<t;e+=1)
// Backsubstitution.
n[t-e-1]-=r[t-e]*n[t-e];return n}class Er extends pr{constructor(){super(...arguments),this.isVisible=!0,this.isSegment=!0,this.isSubpathStart=!1}get end(){return this.endPoint}get start(){if(null==this.previousSegment)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path, or segment has not yet been added to a path.)");return this.previousSegment.end}closestPointT(e,t){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(e);throw new Error("Neither `closestPointT` nor `closestPointNormalizedLength` method is implemented.")}
// eslint-disable-next-line
lengthAtT(e,t){if(e<=0)return 0;const n=this.length();return e>=1?n:n*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}
//# sourceMappingURL=segment.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/lineto.js
class kr extends Er{static create(...e){const t=e.length,n=e[0];
// line provided
if(vr.isLine(n))return new kr(n);
// points provided
if(gr.isPointLike(n))return 1===t?new kr(n):e.map((e=>new kr(e)));
// poly-line segment
// coordinates provided
if(2===t)return new kr(+e[0],+e[1]);
// poly-line segment
const r=[];for(let n=0;n<t;n+=2){const t=+e[n],i=+e[n+1];r.push(new kr(t,i))}return r}constructor(e,t){super(),vr.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=gr.create(e,t).round(2)}get type(){return"L"}get line(){return new vr(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[new kr(t[0]),new kr(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new kr(t[0]),new kr(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return null!=this.previousSegment&&!this.start.equals(this.end)}clone(){return new kr(this.end)}scale(e,t,n){return this.end.scale(e,t,n),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return"number"==typeof e?this.end.translate(e,t):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}
//# sourceMappingURL=lineto.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/close.js
class Sr extends Er{static create(){return new Sr}get end(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. MoveTo), or segment has not yet been added to a path.)");return this.subpathStartSegment.end}get type(){return"Z"}get line(){return new vr(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[
// do not actually cut into the segment, first divided part can stay as Z
t[1].isDifferentiable()?new kr(t[0]):this.clone(),new kr(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[t[1].isDifferentiable()?new kr(t[0]):this.clone(),new kr(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return!(!this.previousSegment||!this.subpathStartSegment)&&!this.start.equals(this.end)}scale(){return this}rotate(){return this}translate(){return this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}clone(){return new Sr}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return this.type}}
//# sourceMappingURL=close.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/moveto.js
class Br extends Er{static create(...e){const t=e.length,n=e[0];
// line provided
if(vr.isLine(n))return new Br(n);
// curve provided
if(_r.isCurve(n))return new Br(n);
// points provided
if(gr.isPointLike(n)){if(1===t)return new Br(n);
// this is a moveto-with-subsequent-poly-line segment
const r=[];
// points come one by one
for(let n=0;n<t;n+=1)0===n?r.push(new Br(e[n])):r.push(new kr(e[n]));return r}
// coordinates provided
if(2===t)return new Br(+e[0],+e[1]);
// this is a moveto-with-subsequent-poly-line segment
const r=[];for(let n=0;n<t;n+=2){const t=+e[n],i=+e[n+1];0===n?r.push(new Br(t,i)):r.push(new kr(t,i))}return r}constructor(e,t){super(),this.isVisible=!1,this.isSubpathStart=!0,vr.isLine(e)||_r.isCurve(e)?this.endPoint=e.end.clone().round(2):this.endPoint=gr.create(e,t).round(2)}get start(){throw new Error("Illegal access. Moveto segments should not need a start property.")}get type(){return"M"}bbox(){return null}closestPoint(){return this.end.clone()}closestPointLength(){return 0}closestPointNormalizedLength(){return 0}closestPointT(){return 1}closestPointTangent(){return null}length(){return 0}lengthAtT(){return 0}divideAt(){return[this.clone(),this.clone()]}divideAtLength(){return[this.clone(),this.clone()]}getSubdivisions(){return[]}pointAt(){return this.end.clone()}pointAtLength(){return this.end.clone()}pointAtT(){return this.end.clone()}tangentAt(){return null}tangentAtLength(){return null}tangentAtT(){return null}isDifferentiable(){return!1}scale(e,t,n){return this.end.scale(e,t,n),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return"number"==typeof e?this.end.translate(e,t):this.end.translate(e),this}clone(){return new Br(this.end)}equals(e){return this.type===e.type&&this.end.equals(e.end)}toJSON(){return{type:this.type,end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}
//# sourceMappingURL=moveto.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/curveto.js
class Mr extends Er{static create(...e){const t=e.length,n=e[0];
// curve provided
if(_r.isCurve(n))return new Mr(n);
// points provided
if(gr.isPointLike(n)){if(3===t)return new Mr(e[0],e[1],e[2]);
// this is a poly-bezier segment
const n=[];for(let r=0;r<t;r+=3)n.push(new Mr(e[r],e[r+1],e[r+2]));return n}
// coordinates provided
if(6===t)return new Mr(e[0],e[1],e[2],e[3],e[4],e[5]);
// this is a poly-bezier segment
const r=[];for(let n=0;n<t;n+=6)r.push(new Mr(e[n],e[n+1],e[n+2],e[n+3],e[n+4],e[n+5]));return r}constructor(e,t,n,r,i,a){super(),_r.isCurve(e)?(this.controlPoint1=e.controlPoint1.clone().round(2),this.controlPoint2=e.controlPoint2.clone().round(2),this.endPoint=e.end.clone().round(2)):"number"==typeof e?(this.controlPoint1=new gr(e,t).round(2),this.controlPoint2=new gr(n,r).round(2),this.endPoint=new gr(i,a).round(2)):(this.controlPoint1=gr.create(e).round(2),this.controlPoint2=gr.create(t).round(2),this.endPoint=gr.create(n).round(2))}get type(){return"C"}get curve(){return new _r(this.start,this.controlPoint1,this.controlPoint2,this.end)}bbox(){return this.curve.bbox()}closestPoint(e){return this.curve.closestPoint(e)}closestPointLength(e){return this.curve.closestPointLength(e)}closestPointNormalizedLength(e){return this.curve.closestPointNormalizedLength(e)}closestPointTangent(e){return this.curve.closestPointTangent(e)}length(){return this.curve.length()}divideAt(e,t={}){
// TODO: fix options
const n=this.curve.divideAt(e,t);return[new Mr(n[0]),new Mr(n[1])]}divideAtLength(e,t={}){
// TODO: fix options
const n=this.curve.divideAtLength(e,t);return[new Mr(n[0]),new Mr(n[1])]}divideAtT(e){const t=this.curve.divideAtT(e);return[new Mr(t[0]),new Mr(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.curve.pointAt(e)}pointAtLength(e){return this.curve.pointAtLength(e)}tangentAt(e){return this.curve.tangentAt(e)}tangentAtLength(e){return this.curve.tangentAtLength(e)}isDifferentiable(){if(!this.previousSegment)return!1;const e=this.start,t=this.controlPoint1,n=this.controlPoint2,r=this.end;return!(e.equals(t)&&t.equals(n)&&n.equals(r))}scale(e,t,n){return this.controlPoint1.scale(e,t,n),this.controlPoint2.scale(e,t,n),this.end.scale(e,t,n),this}rotate(e,t){return this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return"number"==typeof e?(this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return this.start.equals(e.start)&&this.end.equals(e.end)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)}clone(){return new Mr(this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.controlPoint1,t=this.controlPoint2,n=this.end;return[this.type,e.x,e.y,t.x,t.y,n.x,n.y].join(" ")}}
//# sourceMappingURL=curveto.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/normalize.js
function Tr(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}}function Or(e,t,n,r,i,a){const o=1/3,s=2/3;return[o*e+s*n,o*t+s*r,o*i+s*n,o*a+s*r,i,a]}function Dr(e,t,n,r,i,a,o,s,c,l){
// for more information of where this math came from visit:
// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
const u=120*Math.PI/180,h=Math.PI/180*(+i||0);let f,d,p,g,m,v=[];if(l)d=l[0],p=l[1],g=l[2],m=l[3];else{f=Tr(e,t,-h),e=f.x,// eslint-disable-line
t=f.y,// eslint-disable-line
f=Tr(s,c,-h);// eslint-disable-line
const i=(e-(s=f.x))/2,l=(t-(// eslint-disable-line
c=f.y))/2;let u=i*i/(n*n)+l*l/(r*r);u>1&&(u=Math.sqrt(u),n*=u,// eslint-disable-line
r*=u);const v=n*n,y=r*r,A=(a===o?-1:1)*Math.sqrt(Math.abs((v*y-v*l*l-y*i*i)/(v*l*l+y*i*i)));g=A*n*l/r+(e+s)/2,m=A*-r*i/n+(t+c)/2,d=Math.asin((t-m)/r),p=Math.asin((c-m)/r),d=e<g?Math.PI-d:d,p=s<g?Math.PI-p:p,d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),o&&d>p&&(d-=2*Math.PI),!o&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>u){const e=p,t=s,a=c;p=d+u*(o&&p>d?1:-1),// eslint-disable-line
v=Dr(s=g+n*Math.cos(p),// eslint-disable-line
c=m+r*Math.sin(p),n,r,i,0,o,t,a,[p,e,g,m])}y=p-d;const A=Math.cos(d),b=Math.sin(d),w=Math.cos(p),x=Math.sin(p),C=Math.tan(y/4),_=4/3*(n*C),I=4/3*(r*C),E=[e,t],k=[e+_*b,t-I*A],S=[s+_*x,c-I*w],B=[s,c];if(k[0]=2*E[0]-k[0],k[1]=2*E[1]-k[1],l)return[k,S,B].concat(v);{v=[k,S,B].concat(v).join().split(",");const e=[],t=v.length;for(let n=0;n<t;n+=1)e[n]=n%2?Tr(+v[n-1],+v[n],h).y:Tr(+v[n],+v[n+1],h).x;return e}}function Pr(e){const t=function(e){if(!e)return null;const t="\t\n\v\f\r   ᠎             　\u2028\u2029",n=new RegExp(`([a-z])[${t},]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[${t}]*,?[${t}]*)+)`,// eslint-disable-line
"ig"),r=new RegExp(
// eslint-disable-next-line
`(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[${t}]*,?[${t}]*`,"ig"),i={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[];
// https://regexper.com/#%28%5Ba-z%5D%29%5B%5Cs%2C%5D*%28%28-%3F%5Cd*%5C.%3F%5C%5Cd*%28%3F%3Ae%5B%5C-%2B%5D%3F%5Cd%2B%29%3F%5B%5Cs%5D*%2C%3F%5B%5Cs%5D*%29%2B%29
return e.replace(n,((e,t,n)=>{const o=[];let s=t.toLowerCase();n.replace(r,((e,t)=>(t&&o.push(+t),e))),"m"===s&&o.length>2&&(a.push([t,...o.splice(0,2)]),s="l",t="m"===t?"l":"L");const c=i[s];for(;o.length>=c&&(a.push([t,...o.splice(0,c)]),c););return e})),a}(e);
// if invalid string, return 'M 0 0'
if(!t||!t.length)return[["M",0,0]];let n=0,r=0,i=0,a=0;const o=[];for(let e=0,s=t.length;e<s;e+=1){const s=[];o.push(s);const c=t[e],l=c[0];if(l!==l.toUpperCase())switch(s[0]=l.toUpperCase(),s[0]){case"A":s[1]=c[1],s[2]=c[2],s[3]=c[3],s[4]=c[4],s[5]=c[5],s[6]=+c[6]+n,s[7]=+c[7]+r;break;case"V":s[1]=+c[1]+r;break;case"H":s[1]=+c[1]+n;break;case"M":i=+c[1]+n,a=+c[2]+r;for(let e=1,t=c.length;e<t;e+=1)s[e]=+c[e]+(e%2?n:r);break;default:for(let e=1,t=c.length;e<t;e+=1)s[e]=+c[e]+(e%2?n:r)}else for(let e=0,t=c.length;e<t;e+=1)s[e]=c[e];switch(s[0]){case"Z":n=+i,r=+a;break;case"H":n=s[1];break;case"V":r=s[1];break;case"M":i=s[s.length-2],a=s[s.length-1],n=s[s.length-2],r=s[s.length-1];break;default:n=s[s.length-2],r=s[s.length-1]}}return o}function Lr(e){const t=Pr(e),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null};function r(e,t,n){let r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=null,t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":return 0===parseFloat(e[1])||0===parseFloat(e[2])?["L",e[6],e[7]]:["C"].concat(Dr.apply(0,[t.x,t.y].concat(e.slice(1))));case"S":return"C"===n||"S"===n?(
// In 'S' case we have to take into account, if the previous command is C/S.
r=2*t.x-t.bx,// And reflect the previous
i=2*t.y-t.by):(
// or some else or nothing
r=t.x,i=t.y),["C",r,i].concat(e.slice(1));case"T":return"Q"===n||"T"===n?(
// In 'T' case we have to take into account, if the previous command is Q/T.
t.qx=2*t.x-t.qx,// And make a reflection similar
t.qy=2*t.y-t.qy):(
// or something else or nothing
t.qx=t.x,t.qy=t.y),["C"].concat(Or(t.x,t.y,t.qx,t.qy,e[1],e[2]));case"Q":return t.qx=e[1],t.qy=e[2],["C"].concat(Or(t.x,t.y,e[1],e[2],e[3],e[4]));case"H":return["L"].concat(e[1],t.y);case"V":return["L"].concat(t.x,e[1])}return e}function i(e,n){if(e[n].length>7){e[n].shift();const r=e[n];for(;r.length;)
// if created multiple 'C's, their original seg is saved
a[n]="A",n+=1,// eslint-disable-line
e.splice(n,0,["C"].concat(r.splice(0,6)));e.splice(n,1),s=t.length}}const a=[];// path commands of original path p
let o="",s=t.length;// holder for previous path command of original path
for(let e=0;e<s;e+=1){let s="";// temporary holder for original path command
t[e]&&(s=t[e][0]),"C"!==s&&(
// C is not saved yet, because it may be result of conversion
a[e]=s,// Save current path command
e>0&&(o=a[e-1])),
// Previous path command is inputted to processPath
t[e]=r(t[e],n,o),"A"!==a[e]&&"C"===s&&(a[e]="C"),
// which may produce multiple 'C's
// so we have to make sure that 'C' is also 'C' in original path
i(t,e);// fixArc adds also the right amount of 'A's to pcoms
const c=t[e],l=c.length;n.x=c[l-2],n.y=c[l-1],n.bx=parseFloat(c[l-4])||n.x,n.by=parseFloat(c[l-3])||n.y}
// make sure normalized path data string starts with an M segment
return t[0][0]&&"M"===t[0][0]||t.unshift(["M",0,0]),t}
/**
 * Converts provided SVG path data string into a normalized path data string.
 *
 * The normalization uses a restricted subset of path commands; all segments
 * are translated into lineto, curveto, moveto, and closepath segments.
 *
 * Relative path commands are changed into their absolute counterparts,
 * and chaining of coordinates is disallowed.
 *
 * The function will always return a valid path data string; if an input
 * string cannot be normalized, 'M 0 0' is returned.
 */function Qr(e){return Lr(e).map((e=>e.map((e=>"string"==typeof e?e:cr(e,2))))).join(",").split(",").join(" ")}
//# sourceMappingURL=normalize.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/path.js
class Rr extends pr{static isPath(e){return null!=e&&e instanceof Rr}static parse(e){if(!e)return new Rr;const t=new Rr,n=Qr(e).match(/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g);if(null!=n)for(let e=0,r=n.length;e<r;e+=1){const r=/(?:[a-zA-Z])|(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)?))|(?:(?:-?\.\d+))/g,i=n[e].match(r);// [type, coordinate1, coordinate2...]
if(null!=i){const e=i[0],n=i.slice(1).map((e=>+e)),r=Rr.createSegment.call(null,e,...n);t.appendSegment(r)}}return t}static createSegment(e,...t){if("M"===e)return Br.create.call(null,...t);if("L"===e)return kr.create.call(null,...t);if("C"===e)return Mr.create.call(null,...t);if("z"===e||"Z"===e)return Sr.create();throw new Error(`Invalid path segment type "${e}"`)}constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(vr.isLine(e[0])||_r.isCurve(e[0])){let t=null;e.forEach(((e,n)=>{0===n&&this.appendSegment(Rr.createSegment("M",e.start)),null==t||t.end.equals(e.start)||this.appendSegment(Rr.createSegment("M",e.start)),vr.isLine(e)?this.appendSegment(Rr.createSegment("L",e.end)):_r.isCurve(e)&&this.appendSegment(Rr.createSegment("C",e.controlPoint1,e.controlPoint2,e.end)),t=e}))}else{e.forEach((e=>{e.isSegment&&this.appendSegment(e)}))}else null!=e&&(vr.isLine(e)?(this.appendSegment(Rr.createSegment("M",e.start)),this.appendSegment(Rr.createSegment("L",e.end))):_r.isCurve(e)?(this.appendSegment(Rr.createSegment("M",e.start)),this.appendSegment(Rr.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):Cr.isPolyline(e)?e.points&&e.points.length&&e.points.forEach(((e,t)=>{const n=0===t?Rr.createSegment("M",e):Rr.createSegment("L",e);this.appendSegment(n)})):e.isSegment&&this.appendSegment(e))}get start(){const e=this.segments,t=e.length;if(0===t)return null;for(let n=0;n<t;n+=1){const t=e[n];if(t.isVisible)return t.start}
// if no visible segment, return last segment end point
return e[t-1].end}get end(){const e=this.segments,t=e.length;if(0===t)return null;for(let n=t-1;n>=0;n-=1){const t=e[n];if(t.isVisible)return t.end}
// if no visible segment, return last segment end point
return e[t-1].end}moveTo(...e){return this.appendSegment(Br.create.call(null,...e))}lineTo(...e){return this.appendSegment(kr.create.call(null,...e))}curveTo(...e){return this.appendSegment(Mr.create.call(null,...e))}arcTo(e,t,n,r,i,a,o){const s=this.end||new gr,c="number"==typeof a?xr(s.x,s.y,e,t,n,r,i,a,o):xr(s.x,s.y,e,t,n,r,i,a.x,a.y);if(null!=c)for(let e=0,t=c.length;e<t;e+=6)this.curveTo(c[e],c[e+1],c[e+2],c[e+3],c[e+4],c[e+5]);return this}quadTo(e,t,n,r){const i=this.end||new gr,a=["M",i.x,i.y];if("number"==typeof e)a.push("Q",e,t,n,r);else{const n=t;a.push("Q",e.x,e.y,n.x,n.y)}const o=Rr.parse(a.join(" "));return this.appendSegment(o.segments.slice(1)),this}close(){return this.appendSegment(Sr.create())}drawPoints(e,t={}){const n=wr(e,t),r=Rr.parse(n);r&&r.segments&&this.appendSegment(r.segments)}bbox(){const e=this.segments,t=e.length;if(0===t)return null;let n;for(let r=0;r<t;r+=1){const t=e[r];if(t.isVisible){const e=t.bbox();null!=e&&(n=n?n.union(e):e)}}if(null!=n)return n;
// if the path has only invisible elements, return end point of last segment
const r=e[t-1];return new mr(r.end.x,r.end.y,0,0)}appendSegment(e){const t=this.segments.length;let n,r=0!==t?this.segments[t-1]:null;if(Array.isArray(e))for(let t=0,i=e.length;t<i;t+=1){const i=e[t];n=this.prepareSegment(i,r,null),this.segments.push(n),r=n}else null!=e&&e.isSegment&&(n=this.prepareSegment(e,r,null),this.segments.push(n));return this}insertSegment(e,t){const n=this.segments.length;if(e<0&&(e=n+e+1),e>n||e<0)throw new Error("Index out of range.");let r,i=null,a=null;if(0!==n&&(e>=1?(i=this.segments[e-1],a=i.nextSegment):(i=null,a=this.segments[0])),Array.isArray(t))for(let n=0,o=t.length;n<o;n+=1){const o=t[n];r=this.prepareSegment(o,i,a),this.segments.splice(e+n,0,r),i=r}else r=this.prepareSegment(t,i,a),this.segments.splice(e,0,r);return this}removeSegment(e){const t=this.fixIndex(e),n=this.segments.splice(t,1)[0],r=n.previousSegment,i=n.nextSegment;
// link the previous and next segments together (if present)
return r&&(r.nextSegment=i),i&&(i.previousSegment=r),n.isSubpathStart&&i&&this.updateSubpathStartSegment(i),n}replaceSegment(e,t){const n=this.fixIndex(e);let r;const i=this.segments[n];let a=i.previousSegment;const o=i.nextSegment;let s=i.isSubpathStart;if(Array.isArray(t)){this.segments.splice(e,1);for(let n=0,i=t.length;n<i;n+=1){const i=t[n];r=this.prepareSegment(i,a,o),this.segments.splice(e+n,0,r),a=r,s&&r.isSubpathStart&&(s=!1)}}else r=this.prepareSegment(t,a,o),this.segments.splice(n,1,r),s&&r.isSubpathStart&&(
// already updated by `prepareSegment`
s=!1);s&&o&&this.updateSubpathStartSegment(o)}getSegment(e){const t=this.fixIndex(e);return this.segments[t]}fixIndex(e){const t=this.segments.length;if(0===t)throw new Error("Path has no segments.");let n=e;for(;n<0;)n=t+n;if(n>=t||n<0)throw new Error("Index out of range.");return n}segmentAt(e,t={}){const n=this.segmentIndexAt(e,t);return n?this.getSegment(n):null}segmentAtLength(e,t={}){const n=this.segmentIndexAtLength(e,t);return n?this.getSegment(n):null}segmentIndexAt(e,t={}){if(0===this.segments.length)return null;const n=ur(e,0,1),r=this.getOptions(t),i=this.length(r)*n;return this.segmentIndexAtLength(i,r)}segmentIndexAtLength(e,t={}){const n=this.segments.length;if(0===n)return null;let r=!0;e<0&&(r=!1,e=-e);const i=this.getPrecision(t),a=this.getSubdivisions(t);let o=0,s=null;for(let t=0;t<n;t+=1){const c=r?t:n-1-t,l=this.segments[c],u=a[c],h=l.length({precision:i,subdivisions:u});if(l.isVisible){if(e<=o+h)return c;s=c}o+=h}
// If length requested is higher than the length of the path, return
// last visible segment index. If no visible segment, return null.
return s}getSegmentSubdivisions(e={}){const t=this.getPrecision(e),n=[];for(let e=0,r=this.segments.length;e<r;e+=1){const r=this.segments[e].getSubdivisions({precision:t});n.push(r)}return n}updateSubpathStartSegment(e){let t=e.previousSegment,n=e;for(;n&&!n.isSubpathStart;)
// assign previous segment's subpath start segment to this segment
n.subpathStartSegment=null!=t?t.subpathStartSegment:null,t=n,n=n.nextSegment}prepareSegment(e,t,n){e.previousSegment=t,e.nextSegment=n,null!=t&&(t.nextSegment=e),null!=n&&(n.previousSegment=e);let r=e;return e.isSubpathStart&&(
// move to
e.subpathStartSegment=e,r=n),
// assign previous segment's subpath start (or self if it is a subpath start) to subsequent segments
null!=r&&this.updateSubpathStartSegment(r),e}closestPoint(e,t={}){const n=this.closestPointT(e,t);return n?this.pointAtT(n):null}closestPointLength(e,t={}){const n=this.getOptions(t),r=this.closestPointT(e,n);return r?this.lengthAtT(r,n):0}closestPointNormalizedLength(e,t={}){const n=this.getOptions(t),r=this.closestPointLength(e,n);if(0===r)return 0;const i=this.length(n);return 0===i?0:r/i}closestPointT(e,t={}){if(0===this.segments.length)return null;const n=this.getPrecision(t),r=this.getSubdivisions(t);let i,a=1/0;for(let t=0,o=this.segments.length;t<o;t+=1){const o=this.segments[t],s=r[t];if(o.isVisible){const r=o.closestPointT(e,{precision:n,subdivisions:s}),c=dr(o.pointAtT(r),e);c<a&&(i={segmentIndex:t,value:r},a=c)}}return i||{segmentIndex:this.segments.length-1,value:1}}closestPointTangent(e,t={}){if(0===this.segments.length)return null;const n=this.getPrecision(t),r=this.getSubdivisions(t);let i,a=1/0;for(let t=0,o=this.segments.length;t<o;t+=1){const o=this.segments[t],s=r[t];if(o.isDifferentiable()){const t=o.closestPointT(e,{precision:n,subdivisions:s}),r=dr(o.pointAtT(t),e);r<a&&(i=o.tangentAtT(t),a=r)}}return i||null}containsPoint(e,t={}){const n=this.toPolylines(t);if(!n)return!1;let r=0;for(let t=0,i=n.length;t<i;t+=1){n[t].containsPoint(e)&&(r+=1)}
// returns `true` for odd numbers of intersections (even-odd algorithm)
return r%2==1}pointAt(e,t={}){if(0===this.segments.length)return null;if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const n=this.getOptions(t),r=this.length(n)*e;return this.pointAtLength(r,n)}pointAtLength(e,t={}){if(0===this.segments.length)return null;if(0===e)return this.start.clone();let n=!0;e<0&&(n=!1,e=-e);const r=this.getPrecision(t),i=this.getSubdivisions(t);let a,o=0;for(let t=0,s=this.segments.length;t<s;t+=1){const c=n?t:s-1-t,l=this.segments[c],u=i[c],h=l.length({precision:r,subdivisions:u});if(l.isVisible){if(e<=o+h)return l.pointAtLength((n?1:-1)*(e-o),{precision:r,subdivisions:u});a=l}o+=h}
// if length requested is higher than the length of the path,
// return last visible segment endpoint
if(a)return n?a.end:a.start;
// if no visible segment, return last segment end point
return this.segments[this.segments.length-1].end.clone()}pointAtT(e){const t=this.segments,n=t.length;if(0===n)return null;// if segments is an empty array
const r=e.segmentIndex;if(r<0)return t[0].pointAtT(0);if(r>=n)return t[n-1].pointAtT(1);const i=ur(e.value,0,1);return t[r].pointAtT(i)}divideAt(e,t={}){if(0===this.segments.length)return null;const n=ur(e,0,1),r=this.getOptions(t),i=this.length(r)*n;return this.divideAtLength(i,r)}divideAtLength(e,t={}){if(0===this.segments.length)return null;let n=!0;e<0&&(n=!1,e=-e);const r=this.getPrecision(t),i=this.getSubdivisions(t);let a,o,s,c,l,u=0;for(let t=0,l=this.segments.length;t<l;t+=1){const h=n?t:l-1-t,f=this.getSegment(h),d={precision:r,subdivisions:i[h]},p=f.length(d);if(f.isDifferentiable()&&(s=f,c=h,e<=u+p)){o=h,a=f.divideAtLength((n?1:-1)*(e-u),d);break}u+=p}if(!s)return null;a||(o=c,l=n?1:0,a=s.divideAtT(l));
// create a copy of this path and replace the identified segment with its two divided parts:
const h=this.clone(),f=o;h.replaceSegment(f,a);const d=f;let p=f+1,g=f+2;
// do not insert the part if it looks like a point
a[0].isDifferentiable()||(h.removeSegment(d),p-=1,g-=1);
// insert a Moveto segment to ensure secondPath will be valid:
const m=h.getSegment(p).start;h.insertSegment(p,Rr.createSegment("M",m)),g+=1,
// do not insert the part if it looks like a point
a[1].isDifferentiable()||(h.removeSegment(g-1),g-=1);
// ensure that Closepath segments in secondPath will be assigned correct subpathStartSegment:
const v=g-d-1;for(let e=g,t=h.segments.length;e<t;e+=1){const t=this.getSegment(e-v),n=h.getSegment(e);if("Z"===n.type&&!t.subpathStartSegment.end.equals(n.subpathStartSegment.end)){
// pathCopy segment's subpathStartSegment is different from original segment's one
// convert this Closepath segment to a Lineto and replace it in pathCopy
const n=Rr.createSegment("L",t.end);h.replaceSegment(e,n)}}
// distribute pathCopy segments into two paths and return those:
return[new Rr(h.segments.slice(0,p)),new Rr(h.segments.slice(p))]}intersectsWithLine(e,t={}){const n=this.toPolylines(t);if(null==n)return null;let r=null;for(let t=0,i=n.length;t<i;t+=1){const i=n[t],a=e.intersect(i);a&&(null==r&&(r=[]),Array.isArray(a)?r.push(...a):r.push(a))}return r}isDifferentiable(){for(let e=0,t=this.segments.length;e<t;e+=1){if(this.segments[e].isDifferentiable())return!0}return!1}isValid(){const e=this.segments;return 0===e.length||"M"===e[0].type}length(e={}){if(0===this.segments.length)return 0;const t=this.getSubdivisions(e);let n=0;for(let e=0,r=this.segments.length;e<r;e+=1){const r=this.segments[e],i=t[e];n+=r.length({subdivisions:i})}return n}lengthAtT(e,t={}){const n=this.segments.length;if(0===n)return 0;let r=e.segmentIndex;if(r<0)return 0;let i=ur(e.value,0,1);r>=n&&(r=n-1,i=1);const a=this.getPrecision(t),o=this.getSubdivisions(t);let s=0;for(let e=0;e<r;e+=1){const t=this.segments[e],n=o[e];s+=t.length({precision:a,subdivisions:n})}const c=this.segments[r],l=o[r];return s+=c.lengthAtT(i,{precision:a,subdivisions:l}),s}tangentAt(e,t={}){if(0===this.segments.length)return null;const n=ur(e,0,1),r=this.getOptions(t),i=this.length(r)*n;return this.tangentAtLength(i,r)}tangentAtLength(e,t={}){if(0===this.segments.length)return null;let n=!0;e<0&&(n=!1,e=-e);const r=this.getPrecision(t),i=this.getSubdivisions(t);let a,o=0;for(let t=0,s=this.segments.length;t<s;t+=1){const c=n?t:s-1-t,l=this.segments[c],u=i[c],h=l.length({precision:r,subdivisions:u});if(l.isDifferentiable()){if(e<=o+h)return l.tangentAtLength((n?1:-1)*(e-o),{precision:r,subdivisions:u});a=l}o+=h}
// if length requested is higher than the length of the path, return tangent of endpoint of last valid segment
if(a){const e=n?1:0;return a.tangentAtT(e)}
// if no valid segment, return null
return null}tangentAtT(e){const t=this.segments.length;if(0===t)return null;const n=e.segmentIndex;if(n<0)return this.segments[0].tangentAtT(0);if(n>=t)return this.segments[t-1].tangentAtT(1);const r=ur(e.value,0,1);return this.segments[n].tangentAtT(r)}getPrecision(e={}){return null==e.precision?this.PRECISION:e.precision}getSubdivisions(e={}){if(null==e.segmentSubdivisions){const t=this.getPrecision(e);return this.getSegmentSubdivisions({precision:t})}return e.segmentSubdivisions}getOptions(e={}){return{precision:this.getPrecision(e),segmentSubdivisions:this.getSubdivisions(e)}}toPoints(e={}){const t=this.segments,n=t.length;if(0===n)return null;const r=this.getSubdivisions(e),i=[];let a=[];for(let e=0;e<n;e+=1){const n=t[e];if(n.isVisible){const t=r[e];t.length>0?
// eslint-disable-next-line no-loop-func
t.forEach((e=>a.push(e.start))):a.push(n.start)}else a.length>0&&(a.push(t[e-1].end),i.push(a),a=[])}return a.length>0&&(a.push(this.end),i.push(a)),i}toPolylines(e={}){const t=this.toPoints(e);return t?t.map((e=>new Cr(e))):null}scale(e,t,n){return this.segments.forEach((r=>r.scale(e,t,n))),this}rotate(e,t){return this.segments.forEach((n=>n.rotate(e,t))),this}translate(e,t){return"number"==typeof e?this.segments.forEach((n=>n.translate(e,t))):this.segments.forEach((t=>t.translate(e))),this}clone(){const e=new Rr;return this.segments.forEach((t=>e.appendSegment(t.clone()))),e}equals(e){if(null==e)return!1;const t=this.segments,n=e.segments,r=t.length;if(n.length!==r)return!1;for(let e=0;e<r;e+=1){const r=t[e],i=n[e];if(r.type!==i.type||!r.equals(i))return!1}return!0}toJSON(){return this.segments.map((e=>e.toJSON()))}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map((e=>e.serialize())).join(" ")}toString(){return this.serialize()}}
//# sourceMappingURL=path.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/path/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/geometry/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/marker/util.js
function jr(e,t,n){let r,i;"object"==typeof t?(r=t.x,i=t.y):(r=t,i=n);const a=Rr.parse(e),o=a.bbox();if(o){let e=-o.height/2-o.y,t=-o.width/2-o.x;"number"==typeof r&&(t-=r),"number"==typeof i&&(e-=i),a.translate(t,e)}return a.serialize()}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/class.js
const Nr=/[\t\r\n\f]/g,Fr=/\S+/g,zr=e=>` ${e} `;function Hr(e){return e&&e.getAttribute&&e.getAttribute("class")||""}function Ur(e,t){if(null==e||null==t)return!1;const n=zr(Hr(e)),r=zr(t);return 1===e.nodeType&&n.replace(Nr," ").includes(r)}function Gr(e,t){if(null!=e&&null!=t){if("function"==typeof t)return Gr(e,t(Hr(e)));if("string"==typeof t&&1===e.nodeType){const n=t.match(Fr)||[],r=zr(Hr(e)).replace(Nr," ");let i=n.reduce(((e,t)=>e.indexOf(zr(t))<0?`${e}${t} `:e),r);i=i.trim(),r!==i&&e.setAttribute("class",i)}}}function Vr(e,t){if(null!=e){if("function"==typeof t)return Vr(e,t(Hr(e)));if((!t||"string"==typeof t)&&1===e.nodeType){const n=(t||"").match(Fr)||[],r=zr(Hr(e)).replace(Nr," ");let i=n.reduce(((e,t)=>{const n=zr(t);return e.indexOf(n)>-1?e.replace(n," "):e}),r);i=t?i.trim():"",r!==i&&e.setAttribute("class",i)}}}function Wr(e,t,n){if(null!=e&&null!=t)if(null==n||"string"!=typeof t){if("function"==typeof t)return Wr(e,t(Hr(e),n),n);if("string"==typeof t){(t.match(Fr)||[]).forEach((t=>{Ur(e,t)?Vr(e,t):Gr(e,t)}))}}else n?Gr(e,t):Vr(e,t)}
//# sourceMappingURL=class.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/elem.js
let qr=0;function Yr(){return qr+=1,`v${qr}`}function Kr(e){return null!=e.id&&""!==e.id||(e.id=Yr()),e.id}
/**
 * Returns true if object is an instance of SVGGraphicsElement.
 * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement
 */function $r(e){return null!=e&&("function"==typeof e.getScreenCTM&&e instanceof SVGElement)}const Jr={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},Xr="1.1";function Zr(e,t=document){return t.createElement(e)}function ei(e,t=Jr.xhtml,n=document){return n.createElementNS(t,e)}function ti(e,t=document){return ei(e,Jr.svg,t)}function ni(e){if(e){const t=`<svg xmlns="${Jr.svg}" xmlns:xlink="${Jr.xlink}" version="${Xr}">${e}</svg>`,{documentElement:n}=ri(t,{async:!1});// lgtm[js/html-constructed-from-input]
return n}const t=document.createElementNS(Jr.svg,"svg");return t.setAttributeNS(Jr.xmlns,"xmlns:xlink",Jr.xlink),t.setAttribute("version",Xr),t}function ri(e,t={}){let n;try{const r=new DOMParser;if(null!=t.async){r.async=t.async}n=r.parseFromString(e,t.mimeType||"text/xml")}catch(e){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${e}`);return n}function ii(e,t=!0){const n=e.nodeName;return t?n.toLowerCase():n.toUpperCase()}function ai(e){let t=0,n=e.previousSibling;for(;n;)1===n.nodeType&&(t+=1),n=n.previousSibling;return t}function oi(e,t){return e.querySelectorAll(t)}function si(e,t){return e.querySelector(t)}function ci(e,t,n){const r=e.ownerSVGElement;let i=e.parentNode;for(;i&&i!==n&&i!==r;){if(Ur(i,t))return i;i=i.parentNode}return null}function li(e,t){const n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&16&e.compareDocumentPosition(n))}function ui(e){if(e){(Array.isArray(e)?e:[e]).forEach((e=>{e.parentNode&&e.parentNode.removeChild(e)}))}}function hi(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function fi(e,t){(Array.isArray(t)?t:[t]).forEach((t=>{null!=t&&e.appendChild(t)}))}function di(e,t){const n=e.firstChild;return n?pi(n,t):fi(e,t)}function pi(e,t){const n=e.parentNode;if(n){(Array.isArray(t)?t:[t]).forEach((t=>{null!=t&&n.insertBefore(t,e)}))}}function gi(e,t){const n=e.parentNode;if(n){(Array.isArray(t)?t:[t]).forEach((t=>{null!=t&&n.insertBefore(t,e.nextSibling)}))}}function mi(e,t){null!=t&&t.appendChild(e)}function vi(e){return!!e&&1===e.nodeType}
// Determines whether a node is an HTML node
function yi(e){try{
// Using W3 DOM2 (works for FF, Opera and Chrome)
return e instanceof HTMLElement}catch(t){
// Browsers not supporting W3 DOM2 don't have HTMLElement and
// an exception is thrown and we end up here. Testing some
// properties that all elements have (works on IE7)
return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}function Ai(e,t){const n=[];let r=e.firstChild;for(;r;r=r.nextSibling)1===r.nodeType&&(t&&!Ur(r,t)||n.push(r));return n}
//# sourceMappingURL=elem.js.map
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayReduce.js
/**
 * A specialized version of `_.reduce` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {*} [accumulator] The initial value.
 * @param {boolean} [initAccum] Specify using the first element of `array` as
 *  the initial value.
 * @returns {*} Returns the accumulated value.
 */
/* harmony default export */var bi=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n};
// CONCATENATED MODULE: ./node_modules/lodash-es/_basePropertyOf.js
/**
 * The base implementation of `_.propertyOf` without support for deep paths.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Function} Returns the new accessor function.
 */
/* harmony default export */var wi=function(e){return function(t){return null==e?void 0:e[t]}}({
// Latin-1 Supplement block.
"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss",
// Latin Extended-A block.
"Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),xi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ci=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");
// CONCATENATED MODULE: ./node_modules/lodash-es/_deburrLetter.js
/** Used to map Latin Unicode letters to basic Latin letters. */
/* harmony default export */var _i=
/**
 * Deburrs `string` by converting
 * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
 * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
 * letters to basic Latin letters and removing
 * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to deburr.
 * @returns {string} Returns the deburred string.
 * @example
 *
 * _.deburr('déjà vu');
 * // => 'deja vu'
 */
function(e){return(e=ut(e))&&e.replace(xi,wi).replace(Ci,"")},Ii=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
// CONCATENATED MODULE: ./node_modules/lodash-es/_asciiWords.js
/** Used to match words composed of alphanumeric characters. */
/* harmony default export */var Ei=
/**
 * Splits an ASCII `string` into an array of its words.
 *
 * @private
 * @param {string} The string to inspect.
 * @returns {Array} Returns the words of `string`.
 */
function(e){return e.match(Ii)||[]},ki=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
// CONCATENATED MODULE: ./node_modules/lodash-es/_hasUnicodeWord.js
/** Used to detect strings that need a more robust regexp to match words. */
/* harmony default export */var Si=
/**
 * Checks if `string` contains a word composed of Unicode symbols.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {boolean} Returns `true` if a word is found, else `false`.
 */
function(e){return ki.test(e)},Bi="\\ud800-\\udfff",Mi="\\u2700-\\u27bf",Ti="a-z\\xdf-\\xf6\\xf8-\\xff",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Di="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pi="["+Di+"]",Li="\\d+",Qi="["+Mi+"]",Ri="["+Ti+"]",ji="[^"+Bi+Di+Li+Mi+Ti+Oi+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",Fi="[\\ud800-\\udbff][\\udc00-\\udfff]",zi="["+Oi+"]",Hi="(?:"+Ri+"|"+ji+")",Ui="(?:"+zi+"|"+ji+")",Gi="(?:['’](?:d|ll|m|re|s|t|ve))?",Vi="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wi="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",qi="[\\ufe0e\\ufe0f]?",Yi=qi+Wi+("(?:\\u200d(?:"+["[^"+Bi+"]",Ni,Fi].join("|")+")"+qi+Wi+")*"),Ki="(?:"+[Qi,Ni,Fi].join("|")+")"+Yi,$i=RegExp([zi+"?"+Ri+"+"+Gi+"(?="+[Pi,zi,"$"].join("|")+")",Ui+"+"+Vi+"(?="+[Pi,zi+Hi,"$"].join("|")+")",zi+"?"+Hi+"+"+Gi,zi+"+"+Vi,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Li,Ki].join("|"),"g");
// CONCATENATED MODULE: ./node_modules/lodash-es/_unicodeWords.js
/** Used to compose unicode character classes. */
/* harmony default export */var Ji=
/**
 * Splits a Unicode `string` into an array of its words.
 *
 * @private
 * @param {string} The string to inspect.
 * @returns {Array} Returns the words of `string`.
 */
function(e){return e.match($i)||[]};
// CONCATENATED MODULE: ./node_modules/lodash-es/words.js
/**
 * Splits `string` into an array of its words.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to inspect.
 * @param {RegExp|string} [pattern] The pattern to match words.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the words of `string`.
 * @example
 *
 * _.words('fred, barney, & pebbles');
 * // => ['fred', 'barney', 'pebbles']
 *
 * _.words('fred, barney, & pebbles', /[^, ]+/g);
 * // => ['fred', 'barney', '&', 'pebbles']
 */
/* harmony default export */var Xi=function(e,t,n){return e=ut(e),void 0===(t=n?void 0:t)?Si(e)?Ji(e):Ei(e):e.match(t)||[]},Zi=RegExp("['’]","g");
// CONCATENATED MODULE: ./node_modules/lodash-es/_createCompounder.js
/** Used to compose unicode capture groups. */
/* harmony default export */var ea=
/**
 * Creates a function like `_.camelCase`.
 *
 * @private
 * @param {Function} callback The function to combine each word.
 * @returns {Function} Returns the new compounder function.
 */
function(e){return function(t){return bi(Xi(_i(t).replace(Zi,"")),e,"")}};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSlice.js
/**
 * The base implementation of `_.slice` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to slice.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the slice of `array`.
 */
/* harmony default export */var ta=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a};
// CONCATENATED MODULE: ./node_modules/lodash-es/_castSlice.js
/**
 * Casts `array` to a slice if it's needed.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {number} start The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the cast slice.
 */
/* harmony default export */var na=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:ta(e,t,n)},ra=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
// CONCATENATED MODULE: ./node_modules/lodash-es/_hasUnicode.js
/** Used to compose unicode character classes. */
/* harmony default export */var ia=
/**
 * Checks if `string` contains Unicode symbols.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {boolean} Returns `true` if a symbol is found, else `false`.
 */
function(e){return ra.test(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_asciiToArray.js
/**
 * Converts an ASCII `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */
/* harmony default export */var aa=function(e){return e.split("")},oa="\\ud800-\\udfff",sa="["+oa+"]",ca="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",la="\\ud83c[\\udffb-\\udfff]",ua="[^"+oa+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",da="(?:"+ca+"|"+la+")"+"?",pa="[\\ufe0e\\ufe0f]?",ga=pa+da+("(?:\\u200d(?:"+[ua,ha,fa].join("|")+")"+pa+da+")*"),ma="(?:"+[ua+ca+"?",ca,ha,fa,sa].join("|")+")",va=RegExp(la+"(?="+la+")|"+ma+ga,"g");
// CONCATENATED MODULE: ./node_modules/lodash-es/_unicodeToArray.js
/** Used to compose unicode character classes. */
/* harmony default export */var ya=
/**
 * Converts a Unicode `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */
function(e){return e.match(va)||[]};
// CONCATENATED MODULE: ./node_modules/lodash-es/_stringToArray.js
/**
 * Converts `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */
/* harmony default export */var Aa=function(e){return ia(e)?ya(e):aa(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_createCaseFirst.js
/**
 * Creates a function like `_.lowerFirst`.
 *
 * @private
 * @param {string} methodName The name of the `String` case method to use.
 * @returns {Function} Returns the new case function.
 */
/* harmony default export */var ba=function(e){return function(t){t=ut(t);var n=ia(t)?Aa(t):void 0,r=n?n[0]:t.charAt(0),i=n?na(n,1).join(""):t.slice(1);return r[e]()+i}},wa=ba("toUpperCase"),xa=ea((function(e,t,n){return e+(n?" ":"")+wa(t)}));
// CONCATENATED MODULE: ./node_modules/lodash-es/upperFirst.js
/**
 * Converts the first character of `string` to upper case.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.upperFirst('fred');
 * // => 'Fred'
 *
 * _.upperFirst('FRED');
 * // => 'FRED'
 */
/* harmony default export */var Ca=
// CONCATENATED MODULE: ./node_modules/lodash-es/capitalize.js
/**
 * Converts the first character of `string` to upper case and the remaining
 * to lower case.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to capitalize.
 * @returns {string} Returns the capitalized string.
 * @example
 *
 * _.capitalize('FRED');
 * // => 'Fred'
 */
function(e){return wa(ut(e).toLowerCase())},_a=ea((function(e,t,n){return t=t.toLowerCase(),e+(n?Ca(t):t)})),Ia=ea((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ea=ea((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ka=ba("toLowerCase");
// CONCATENATED MODULE: ./node_modules/lodash-es/camelCase.js
/**
 * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to convert.
 * @returns {string} Returns the camel cased string.
 * @example
 *
 * _.camelCase('Foo Bar');
 * // => 'fooBar'
 *
 * _.camelCase('--foo-bar--');
 * // => 'fooBar'
 *
 * _.camelCase('__FOO_BAR__');
 * // => 'fooBar'
 */
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/string/format.js
// @see: https://medium.com/@robertsavian/javascript-case-converters-using-lodash-4f2f964091cc
const Sa=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ba=Sa((e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase())),Ma=Sa((e=>xa(_a(e)).replace(/ /g,""))),Ta=Sa((e=>Ia(e).replace(/ /g,"_"))),Oa=Sa((e=>Ea(e).replace(/ /g,"."))),Da=Sa((e=>Ea(e).replace(/ /g,"/"))),Pa=Sa((e=>wa(Ea(e)))),La=Sa((e=>xa(_a(e)))),Qa=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits","preserveAspectRatio"];function Ra(e,t){return e.getAttribute(t)}function ja(e,t){const n=Ha(t);n.ns?e.hasAttributeNS(n.ns,n.local)&&e.removeAttributeNS(n.ns,n.local):e.hasAttribute(t)&&e.removeAttribute(t)}function Na(e,t,n){if(null==n)return ja(e,t);const r=Ha(t);r.ns&&"string"==typeof n?e.setAttributeNS(r.ns,t,n):"id"===t?e.id=`${n}`:e.setAttribute(t,`${n}`)}function Fa(e,t){Object.keys(t).forEach((n=>{Na(e,n,t[n])}))}function za(e,t,n){if(null==t){const t=e.attributes,n={};for(let e=0;e<t.length;e+=1)n[t[e].name]=t[e].value;return n}if("string"==typeof t&&void 0===n)return e.getAttribute(t);"object"==typeof t?Fa(e,t):Na(e,t,n)}function Ha(e){if(-1!==e.indexOf(":")){const t=e.split(":");return{ns:Jr[t[0]],local:t[1]}}return{ns:null,local:e}}function Ua(e){const t={};return Object.keys(e).forEach((n=>{const r=Qa.includes(n)?n:Ba(n);t[r]=e[n]})),t}function Ga(e){const t={};return e.split(";").forEach((e=>{const n=e.trim();if(n){const e=n.split("=");e.length&&(t[e[0].trim()]=e[1]?e[1].trim():"")}})),t}function Va(e,t){return Object.keys(t).forEach((n=>{if("class"===n)e[n]=e[n]?`${e[n]} ${t[n]}`:t[n];else if("style"===n){const r="object"==typeof e[n],i="object"==typeof t[n];let a,o;r&&i?(a=e[n],o=t[n]):r?(a=e[n],o=Ga(t[n])):i?(a=Ga(e[n]),o=t[n]):(a=Ga(e[n]),o=Ga(t[n])),e[n]=Va(a,o)}else e[n]=t[n]})),e}
//# sourceMappingURL=attr.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/prefix.js
const Wa=/-(.)/g;const qa={},Ya=["webkit","ms","moz","o"],Ka="undefined"!=typeof document?document.createElement("div").style:{};function $a(e){const t=e.replace(Wa,((e,t)=>t.toUpperCase()));if(null==qa[t]){const e=t.charAt(0).toUpperCase()+t.slice(1);qa[t]=t in Ka?t:function(e){for(let t=0;t<Ya.length;t+=1){const n=Ya[t]+e;if(n in Ka)return n}return null}(e)}return qa[t]}
//# sourceMappingURL=prefix.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/style.js
function Ja(e,t,n){const r=$a(t);null!=r&&(e[r]=n),e[t]=n}function Xa(e,t){
// IE9+
const n=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null);return n&&t?n.getPropertyValue(t)||n[t]:n}function Za(e){const t=Xa(e);return null!=t&&("scroll"===t.overflow||"auto"===t.overflow)}
//# sourceMappingURL=style.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/selection.js
const eo=function(){if("undefined"==typeof document)return function(){};const e=document;return e.selection?function(){e.selection.empty()}:window.getSelection?function(){const e=window.getSelection();e&&(e.empty?e.empty():e.removeAllRanges&&e.removeAllRanges())}:function(){}}(),to={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};
//# sourceMappingURL=selection.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/css.js
function no(e){return/^--/.test(e)}function ro(e,t,n){const r=window.getComputedStyle(e,null);return n?r.getPropertyValue(t)||void 0:r[t]||e.style[t]}function io(e,t){return parseInt(ro(e,t),10)||0}function ao(e,t,n){if("string"!=typeof t)
// eslint-disable-next-line
for(const n in t)ao(e,n,t[n]);else{const r=no(t);if(r||(t=$a(t)),void 0===n)return ro(e,t,r);r||(n=function(e,t){return to[e]||"number"!=typeof t?t:`${t}px`}(t,n));const i=e.style;r?i.setProperty(t,n):i[t]=n}}
//# sourceMappingURL=css.js.map
// CONCATENATED MODULE: ./node_modules/lodash-es/uniqueId.js
/** Used to generate unique IDs. */var oo=0;
/**
 * Generates a unique ID. If `prefix` is given, the ID is appended to it.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {string} [prefix=''] The value to prefix the ID with.
 * @returns {string} Returns the unique ID.
 * @example
 *
 * _.uniqueId('contact_');
 * // => 'contact_104'
 *
 * _.uniqueId();
 * // => '105'
 */
/* harmony default export */var so=function(e){var t=++oo;return ut(e)+t};
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/string/hashcode.js
/* eslint-disable no-bitwise */
/**
 * Return a simple hash code from a string.
 * Source from: https://github.com/sindresorhus/fnv1a/blob/master/index.js#L25
 */function co(e){let t=2166136261,n=!1,r=e;for(let e=0,i=r.length;e<i;e+=1){let i=r.charCodeAt(e);
// Non-ASCII characters trigger the Unicode escape logic
i>127&&!n&&(r=unescape(encodeURIComponent(r)),i=r.charCodeAt(e),n=!0),t^=i,t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24)}return t>>>0}
//# sourceMappingURL=hashcode.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/string/uuid.js
/* eslint-disable no-bitwise */function lo(){
// credit: http://stackoverflow.com/posts/2117523/revisions
// return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
//   const r = (Math.random() * 16) | 0
//   const v = c === 'x' ? r : (r & 0x3) | 0x8
//   return v.toString(16)
// })
let e="";const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let n=0,r=36;n<r;n+=1){const r=t[n],i=16*Math.random()|0;e+=("x"===r?i:"y"===r?3&i|8:r).toString(16)}return e}
//# sourceMappingURL=uuid.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/string/suggestion.js
// @see: https://github.com/microsoft/TypeScript/blob/master/src/compiler/checker.ts
/**
 * Given a name and a list of names that are not equal to the name, return a
 * spelling suggestion if there is one that is close enough. Names less than
 * length 3 only check for case-insensitive equality, not Levenshtein distance.
 *
 * - If there is a candidate that's the same except for case, return that.
 * - If there is a candidate that's within one edit of the name, return that.
 * - Otherwise, return the candidate with the smallest Levenshtein distance,
 *     except for candidates:
 *       * With no name
 *       * Whose length differs from the target name by more than 0.34 of the
 *         length of the name.
 *       * Whose levenshtein distance is more than 0.4 of the length of the
 *         name (0.4 allows 1 substitution/transposition for every 5 characters,
 *         and 1 insertion/deletion at 3 characters)
 */function uo(e,t,n){const r=Math.min(2,Math.floor(.34*e.length));
// If the best result isn't better than this, don't bother.
let i,a=Math.floor(.4*e.length)+1,o=!1;const s=e.toLowerCase();
// eslint-disable-next-line
for(const c of t){const t=n(c);if(void 0!==t&&Math.abs(t.length-s.length)<=r){const n=t.toLowerCase();if(n===s){if(t===e)continue;return c}if(o)continue;if(t.length<3)
// Don't bother, user would have noticed a
// 2-character name having an extra character.
continue;
// Only care about a result better than the best so far.
const r=ho(s,n,a-1);if(void 0===r)continue;r<3?(o=!0,i=c):(
// Debug.assert(distance < bestDistance)
a=r,i=c)}}return i}function ho(e,t,n){let r=new Array(t.length+1),i=new Array(t.length+1);// eslint-disable-line
// eslint-disable-line
/** Represents any value > max. We don't care about the particular value. */
const a=n+1;for(let e=0;e<=t.length;e+=1)r[e]=e;for(let o=1;o<=e.length;o+=1){const s=e.charCodeAt(o-1),c=o>n?o-n:1,l=t.length>n+o?n+o:t.length;i[0]=o;
/** Smallest value of the matrix in the ith column. */
let u=o;for(let e=1;e<c;e+=1)i[e]=a;for(let e=c;e<=l;e+=1){const n=s===t.charCodeAt(e-1)?r[e-1]:Math.min(
/* delete */r[e]+1,
/* insert */i[e-1]+1,
/* substitute */r[e-1]+2);i[e]=n,u=Math.min(u,n)}for(let e=l+1;e<=t.length;e+=1)i[e]=a;if(u>n)
// Give up -- everything in this column is > max
// and it can't get better in future columns.
return;const h=r;r=i,i=h}const o=r[t.length];return o>n?void 0:o}
//# sourceMappingURL=suggestion.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/string/string.js
//# sourceMappingURL=string.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/string/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/data.js
const fo=new WeakMap;function po(e,t){const n=c.camelCase(t),r=fo.get(e);if(r)return r[n]}function go(e,t,n){const r=c.camelCase(t),i=fo.get(e);i?i[r]=n:fo.set(e,{[r]:n})}function mo(e,t,n){if(!t)return fo.get(e);if("string"==typeof t)return void 0===n?po(e,t):void go(e,t,n);
// eslint-disable-next-line
for(const n in t)mo(e,n,t[n])}
//# sourceMappingURL=data.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/prop.js
const vo={
/* GENERAL */
class:"className",contenteditable:"contentEditable",
/* LABEL */
for:"htmlFor",
/* INPUT */
readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",
/* TABLE */
colspan:"colSpan",rowspan:"rowSpan",
/* IMAGE */
usemap:"useMap"};function yo(e,t,n){if(t){if("string"==typeof t)// eslint-disable-line
return t=vo[t]||t,arguments.length<3?e[t]:void(e[t]=n);
// eslint-disable-next-line
for(const n in t)yo(e,n,t[n])}}
//# sourceMappingURL=prop.js.map
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseHas.js
/** Used for built-in method references. */var Ao=Object.prototype.hasOwnProperty;
/** Used to check objects for own properties. */
/* harmony default export */var bo=
/**
 * The base implementation of `_.has` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function(e,t){return null!=e&&Ao.call(e,t)};
// CONCATENATED MODULE: ./node_modules/lodash-es/has.js
/**
 * Checks if `path` is a direct property of `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = { 'a': { 'b': 2 } };
 * var other = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.has(object, 'a');
 * // => true
 *
 * _.has(object, 'a.b');
 * // => true
 *
 * _.has(object, ['a', 'b']);
 * // => true
 *
 * _.has(other, 'a');
 * // => false
 */
/* harmony default export */var wo=function(e,t){return null!=e&&yt(e,t,bo)},xo=n("db72");
// EXTERNAL MODULE: ./node_modules/lodash-es/_assignValue.js
/* harmony default export */var Co=
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseSet.js
/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */
function(e,t,n,r){if(!Object(We.a)(e))return e;for(var i=-1,a=(t=ht(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var c=ft(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=o){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=Object(We.a)(u)?u:Object(mt.a)(t[i+1])?[]:{})}Object(xo.a)(s,c,l),s=s[c]}return e};
// CONCATENATED MODULE: ./node_modules/lodash-es/_basePickBy.js
/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */
/* harmony default export */var _o=function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=dt(e,o);n(s,o)&&Co(a,ht(o,e),s)}return a};
// CONCATENATED MODULE: ./node_modules/lodash-es/_basePick.js
/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */
/* harmony default export */var Io=function(e,t){return _o(e,t,(function(t,n){return At(e,n)}))};
// CONCATENATED MODULE: ./node_modules/lodash-es/flatten.js
/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */
/* harmony default export */var Eo=function(e){return(null==e?0:e.length)?te(e,1):[]};
// CONCATENATED MODULE: ./node_modules/lodash-es/_flatRest.js
/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */
/* harmony default export */var ko=function(e){return he(ae(e,void 0,Eo),e+"")}((function(e,t){return null==e?{}:Io(e,t)}));
// CONCATENATED MODULE: ./node_modules/lodash-es/pick.js
/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */
/* harmony default export */var So=
// CONCATENATED MODULE: ./node_modules/lodash-es/_assignMergeValue.js
/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function(e,t,n){(void 0!==n&&!Object(ke.a)(e[t],n)||void 0===n&&!(t in e))&&Object(ve.a)(e,t,n)},Bo=n("dff1"),Mo=n("1b89"),To=n("7804"),Oo=n("8583"),Do=n("bc9b"),Po=n("52e7"),Lo=Function.prototype,Qo=Object.prototype,Ro=Lo.toString,jo=Qo.hasOwnProperty,No=Ro.call(Object);
// EXTERNAL MODULE: ./node_modules/lodash-es/_cloneBuffer.js
/* harmony default export */var Fo=
/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function(e){if(!Object(pe.a)(e)||"[object Object]"!=Object(Je.a)(e))return!1;var t=Object(Po.a)(e);if(null===t)return!0;var n=jo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ro.call(n)==No};
// CONCATENATED MODULE: ./node_modules/lodash-es/_safeGet.js
/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
/* harmony default export */var zo=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ho=n("f842"),Uo=n("e3fa");
// EXTERNAL MODULE: ./node_modules/lodash-es/_copyObject.js
/* harmony default export */var Go=
// CONCATENATED MODULE: ./node_modules/lodash-es/toPlainObject.js
/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function(e){return Object(Ho.a)(e,Object(Uo.a)(e))};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMergeDeep.js
/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
/* harmony default export */var Vo=function(e,t,n,r,i,a,o){var s=zo(e,n),c=zo(t,n),l=o.get(c);if(l)So(e,n,l);else{var u=a?a(s,c,n+"",e,t,o):void 0,h=void 0===u;if(h){var f=Object(D.a)(c),d=!f&&Object(Re.a)(c),p=!f&&!d&&Object(je.a)(c);u=c,f||d||p?Object(D.a)(s)?u=s:ge(s)?u=Object(To.a)(s):d?(h=!1,u=Object(Bo.a)(c,!0)):p?(h=!1,u=Object(Mo.a)(c,!0)):u=[]:Fo(c)||Object(X.a)(c)?(u=s,Object(X.a)(s)?u=Go(s):Object(We.a)(s)&&!Object(Do.a)(s)||(u=Object(Oo.a)(c))):h=!1}h&&(
// Recursively merge objects and arrays (susceptible to call stack limits).
o.set(c,u),i(u,c,r,a,o),o.delete(c)),So(e,n,u)}};
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseMerge.js
/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
/* harmony default export */var Wo=function e(t,n,r,i,a){t!==n&&Ae(n,(function(o,s){if(a||(a=new Ce.a),Object(We.a)(o))Vo(t,n,s,r,e,i,a);else{var c=i?i(zo(t,s),o,s+"",t,n,a):void 0;void 0===c&&(c=o),So(t,s,c)}}),Uo.a)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_createAssigner.js
/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
/* harmony default export */var qo=function(e){return fe((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&Qt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))},Yo=qo((function(e,t,n){Wo(e,t,n)}));
// CONCATENATED MODULE: ./node_modules/lodash-es/merge.js
/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */
/* harmony default export */var Ko=
// CONCATENATED MODULE: ./node_modules/lodash-es/isEqual.js
/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays. `Object` objects are compared
 * by their own, not inherited, enumerable properties. Functions and DOM
 * nodes are compared by strict equality, i.e. `===`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.isEqual(object, other);
 * // => true
 *
 * object === other;
 * // => false
 */
function(e,t){return Ge(e,t)},$o=n("8cc4"),Jo=n("a724"),Xo=Object.prototype.hasOwnProperty;
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseKeys.js + 1 modules
/* harmony default export */var Zo=
/**
 * Checks if `value` is an empty object, collection, map, or set.
 *
 * Objects are considered empty if they have no own enumerable string keyed
 * properties.
 *
 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
 * jQuery-like collections are considered empty if they have a `length` of `0`.
 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
 * @example
 *
 * _.isEmpty(null);
 * // => true
 *
 * _.isEmpty(true);
 * // => true
 *
 * _.isEmpty(1);
 * // => true
 *
 * _.isEmpty([1, 2, 3]);
 * // => false
 *
 * _.isEmpty({ 'a': 1 });
 * // => false
 */
function(e){if(null==e)return!0;if(Object(de.a)(e)&&(Object(D.a)(e)||"string"==typeof e||"function"==typeof e.splice||Object(Re.a)(e)||Object(je.a)(e)||Object(X.a)(e)))return!e.length;var t=Object(Qe.a)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Object(Jo.a)(e))return!Object($o.a)(e).length;for(var n in e)if(Xo.call(e,n))return!1;return!0},es=n("09f4");
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseClone.js + 16 modules
/* harmony default export */var ts=
/**
 * Creates a shallow clone of `value`.
 *
 * **Note:** This method is loosely based on the
 * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
 * and supports cloning arrays, array buffers, booleans, date objects, maps,
 * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
 * arrays. The own enumerable properties of `arguments` objects are cloned
 * as plain objects. An empty object is returned for uncloneable values such
 * as error objects, functions, DOM nodes, and WeakMaps.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to clone.
 * @returns {*} Returns the cloned value.
 * @see _.cloneDeep
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var shallow = _.clone(objects);
 * console.log(shallow[0] === objects[0]);
 * // => true
 */
function(e){return Object(es.a)(e,4)},ns=n("5c8a"),rs=Object.prototype,is=rs.hasOwnProperty,as=fe((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Qt(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=Object(Uo.a)(a),s=-1,c=o.length;++s<c;){var l=o[s],u=e[l];(void 0===u||Object(ke.a)(u,rs[l])&&!is.call(e,l))&&(e[l]=a[l])}return e}));
// EXTERNAL MODULE: ./node_modules/lodash-es/cloneDeep.js
/* harmony default export */var os=
// CONCATENATED MODULE: ./node_modules/lodash-es/_customDefaultsMerge.js
/**
 * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
 * objects into destination objects that are passed thru.
 *
 * @private
 * @param {*} objValue The destination value.
 * @param {*} srcValue The source value.
 * @param {string} key The key of the property to merge.
 * @param {Object} object The parent object of `objValue`.
 * @param {Object} source The parent object of `srcValue`.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 * @returns {*} Returns the value to assign.
 */
function e(t,n,r,i,a,o){return Object(We.a)(t)&&Object(We.a)(n)&&(
// Recursively merge objects and arrays (susceptible to call stack limits).
o.set(n,t),Wo(t,n,void 0,e,o),o.delete(n)),t},ss=qo((function(e,t,n,r){Wo(e,t,n,r)})),cs=fe((function(e){return e.push(void 0,os),re(ss,void 0,e)}));
// CONCATENATED MODULE: ./node_modules/lodash-es/mergeWith.js
/**
 * This method is like `_.merge` except that it accepts `customizer` which
 * is invoked to produce the merged values of the destination and source
 * properties. If `customizer` returns `undefined`, merging is handled by the
 * method instead. The `customizer` is invoked with six arguments:
 * (objValue, srcValue, key, object, source, stack).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} customizer The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   if (_.isArray(objValue)) {
 *     return objValue.concat(srcValue);
 *   }
 * }
 *
 * var object = { 'a': [1], 'b': [2] };
 * var other = { 'a': [3], 'b': [4] };
 *
 * _.mergeWith(object, other, customizer);
 * // => { 'a': [1, 3], 'b': [2, 4] }
 */
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/object/mixins.js
/**
 * @see https://www.typescriptlang.org/docs/handbook/mixins.html
 */
function ls(e,...t){t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((n=>{"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))}))}))}
//# sourceMappingURL=mixins.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/object/inherit.js
const us=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;// eslint-disable-line no-proto
}||function(e,t){
// eslint-disable-next-line no-restricted-syntax
for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};
/**
 * @see https://github.com/microsoft/TypeScript/blob/5c85febb0ce9d6088cbe9b09cb42f73f9ee8ea05/src/compiler/transformers/es2015.ts#L4309
 */
// eslint-disable-next-line
function hs(e,t){function n(){this.constructor=e}us(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}const fs=/^\s*class\s+/.test(`${class{}}`)||/^\s*class\s*\{/.test(`${class{}}`);
/**
 * Extends class with specified class name.
 */function ds(e,t){let n;return fs?n=class extends t{}:(n=function(){return t.apply(this,arguments);// eslint-disable-line
},hs(n,t)),Object.defineProperty(n,"name",{value:e}),n}
//# sourceMappingURL=inherit.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/object/object.js
function ps(e,t){return null!=e?e:t}function gs(e,t,n){const r=null!=e?e[t]:null;return void 0!==n?ps(r,n):r}function ms(e,t,n){let r=null!=e?e[t]:null;return null==r?n:(r=+r,Number.isNaN(r)||!Number.isFinite(r)?n:r)}function vs(e,t,n){const r=null!=e?e[t]:null;return null==r?n:!!r}function ys(e){return"__proto__"===e}function As(e,t,n="/"){let r;const i=Array.isArray(t)?t:t.split(n);if(i.length)for(r=e;i.length;){const e=i.shift();if(Object(r)!==r||!e||!(e in r))return;r=r[e]}return r}function bs(e,t,n,r="/"){const i=Array.isArray(t)?t:t.split(r),a=i.pop();if(a&&!ys(a)){let t=e;i.forEach((e=>{ys(e)||(null==t[e]&&(t[e]={}),t=t[e])})),t[a]=n}return e}function ws(e,t,n="/"){const r=Array.isArray(t)?t.slice():t.split(n),i=r.pop();if(i)if(r.length>0){const t=As(e,r);t&&delete t[i]}else delete e[i];return e}
// eslint-disable-next-line default-param-last
function xs(e,t="/",n){const r={};Object.keys(e).forEach((i=>{const a=e[i];let o="object"==typeof a||Array.isArray(a);if(o&&n&&n(a)&&(o=!1),o){const e=xs(a,t,n);Object.keys(e).forEach((n=>{r[i+t+n]=e[n]}))}else r[i]=a}));
// eslint-disable-next-line no-restricted-syntax
for(const t in e)Object.prototype.hasOwnProperty.call(e,t);return r}
//# sourceMappingURL=object.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/object/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/text/annotate.js
function Cs(e,t,n={}){const r=n.offset||0,i=[],a=[];let o,s,c=null;for(let u=0;u<e.length;u+=1){o=a[u]=e[u];for(let i=0,s=t.length;i<s;i+=1){const s=t[i],c=s.start+r,l=s.end+r;u>=c&&u<l&&("string"==typeof o?o=a[u]={t:e[u],attrs:s.attrs}:o.attrs=Va(Va({},o.attrs),s.attrs),n.includeAnnotationIndices&&(null==o.annotations&&(o.annotations=[]),o.annotations.push(i)))}s=a[u-1],s?l.isObject(o)&&l.isObject(s)?
// Both previous item and the current one are annotations.
// If the attributes didn't change, merge the text.
JSON.stringify(o.attrs)===JSON.stringify(s.attrs)?c.t+=o.t:(i.push(c),c=o):l.isObject(o)||l.isObject(s)?(i.push(c),c=o):
// Both previous and current item are strings.
c=String(c||"")+String(o):c=o}return null!=c&&i.push(c),i}function _s(e,t){return e?e.filter((e=>e.start<t&&t<=e.end)):[]}function Is(e,t,n){return e?e.filter((e=>t>=e.start&&t<e.end||n>e.start&&n<=e.end||e.start>=t&&e.end<n)):[]}function Es(e,t,n){return e&&e.forEach((e=>{e.start<t&&e.end>=t?e.end+=n:e.start>=t&&(e.start+=n,e.end+=n)})),e}
//# sourceMappingURL=annotate.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/text/sanitize.js
/**
 * Replaces all spaces with the Unicode No-break space.
 * ref: http://www.fileformat.info/info/unicode/char/a0/index.htm
 *
 * IE would otherwise collapse all spaces into one. This is useful
 * e.g. in tests when you want to compare the actual DOM text content
 * without having to add the unicode character in the place of all spaces.
 */function ks(e){return e.replace(/ /g," ")}
//# sourceMappingURL=sanitize.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/text/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/text/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/vector/index.js
class Ss{get[Symbol.toStringTag](){return Bs}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}static isVector(e){if(null==e)return!1;if(e instanceof Ss)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===Bs)&&n.node instanceof SVGElement&&"function"==typeof n.sample&&"function"==typeof n.toPath}static create(e,t,n){return new Ss(e,t,n)}static createVectors(e){if("<"===e[0]){const t=ni(e),n=[];for(let e=0,r=t.childNodes.length;e<r;e+=1){const r=t.childNodes[e];n.push(Ss.create(document.importNode(r,!0)))}return n}return[Ss.create(e)]}static toNode(e){return Ss.isVector(e)?e.node:e}static toNodes(e){return Array.isArray(e)?e.map((e=>Ss.toNode(e))):[Ss.toNode(e)]}constructor(e,t,n){if(!e)throw new TypeError("Invalid element to create vector");let r;if(Ss.isVector(e))r=e.node;else if("string"==typeof e)if("svg"===e.toLowerCase())r=ni();else if("<"===e[0]){const t=ni(e);
// only import the first child
r=document.importNode(t.firstChild,!0)}else r=document.createElementNS(Jr.svg,e);else r=e;this.node=r,t&&this.setAttributes(t),n&&this.append(n)}transform(e,t){return null==e?fc(this.node):(fc(this.node,e,t),this)}translate(e,t=0,n={}){return null==e?dc(this.node):(dc(this.node,e,t,n),this)}rotate(e,t,n,r={}){return null==e?pc(this.node):(pc(this.node,e,t,n,r),this)}scale(e,t){return null==e?gc(this.node):(gc(this.node,e,t),this)}
/**
     * Returns an SVGMatrix that specifies the transformation necessary
     * to convert this coordinate system into `target` coordinate system.
     */getTransformToElement(e){const t=Ss.toNode(e);return mc(this.node,t)}removeAttribute(e){return ja(this.node,e),this}getAttribute(e){return Ra(this.node,e)}setAttribute(e,t){return Na(this.node,e,t),this}setAttributes(e){return Fa(this.node,e),this}attr(e,t){return null==e?za(this.node):"string"==typeof e&&void 0===t?za(this.node,e):("object"==typeof e?za(this.node,e):za(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:Ss.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?Ss.create(t):Ss.create("defs").appendTo(e)}text(e,t={}){return Ds(this.node,e,t),this}tagName(){return ii(this.node)}clone(){return Ss.create(this.node.cloneNode(!0))}remove(){return ui(this.node),this}empty(){return hi(this.node),this}append(e){return fi(this.node,Ss.toNodes(e)),this}appendTo(e){return mi(this.node,Ss.isVector(e)?e.node:e),this}prepend(e){return di(this.node,Ss.toNodes(e)),this}before(e){return pi(this.node,Ss.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(Ss.toNode(e),this.node),Ss.create(e)}first(){return this.node.firstChild?Ss.create(this.node.firstChild):null}last(){return this.node.lastChild?Ss.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?Ss.create(t):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(Ss.toNode(e))}find(e){const t=[],n=oi(this.node,e);if(n)for(let e=0,r=n.length;e<r;e+=1)t.push(Ss.create(n[e]));return t}findOne(e){const t=si(this.node,e);return t?Ss.create(t):null}findParentByClass(e,t){const n=ci(this.node,e,t);return n?Ss.create(n):null}matches(e){const t=this.node,n=(this.node.matches,t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null);return n&&n.call(t,e)}contains(e){return li(this.node,Ss.isVector(e)?e.node:e)}wrap(e){const t=Ss.create(e),n=this.node.parentNode;return null!=n&&n.insertBefore(t.node,this.node),t.append(this)}parent(e){let t=this;// eslint-disable-line @typescript-eslint/no-this-alias
// check for parent
if(null==t.node.parentNode)return null;
// get parent element
if(t=Ss.create(t.node.parentNode),null==e)return t;
// loop trough ancestors if type is given
do{if("string"==typeof e?t.matches(e):t instanceof e)return t}while(t=Ss.create(t.node.parentNode));return t}children(){const e=this.node.childNodes,t=[];for(let n=0;n<e.length;n+=1){1===e[n].nodeType&&t.push(Ss.create(e[n]))}return t}eachChild(e,t){const n=this.children();for(let r=0,i=n.length;r<i;r+=1)e.call(n[r],n[r],r,n),t&&n[r].eachChild(e,t);return this}index(){return ai(this.node)}hasClass(e){return Ur(this.node,e)}addClass(e){return Gr(this.node,e),this}removeClass(e){return Vr(this.node,e),this}toggleClass(e,t){return Wr(this.node,e,t),this}toLocalPoint(e,t){return yc(this.node,e,t)}
/**
     * Samples the underlying SVG element (it currently works only on
     * paths - where it is most useful anyway). Returns an array of objects
     * of the form `{ x: Number, y: Number, distance: Number }`. Each of these
     * objects represent a point on the path. This basically creates a discrete
     * representation of the path (which is possible a curve). The sampling
     * interval defines the accuracy of the sampling. In other words, we travel
     * from the beginning of the path to the end by interval distance (on the
     * path, not between the resulting points) and collect the discrete points
     * on the path. This is very useful in many situations. For example, SVG
     * does not provide a built-in mechanism to find intersections between two
     * paths. Using sampling, we can just generate bunch of points for each of
     * the path and find the closest ones from each set.
     */sample(e=1){return this.node instanceof SVGPathElement?Ns(this.node,e):[]}toPath(){return Ss.create(Ks(this.node))}toPathData(){return $s(this.node)}}const Bs=`X6.${Ss.name}`;
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/text.js
/* eslint-disable no-control-regex */function Ms(e,t,n){const r=n.eol,i=n.baseSize,a=n.lineHeight;let o,s=0;const c={},l=t.length-1;for(let a=0;a<=l;a+=1){let c=t[a],u=null;if("object"==typeof c){const e=c.attrs,t=Ss.create("tspan",e);o=t.node;let h=c.t;r&&a===l&&(h+=r),o.textContent=h;
// Per annotation className
const f=e.class;f&&t.addClass(f),
// set the list of indices of all the applied annotations
// in the `annotations` attribute. This list is a comma
// separated list of indices.
n.includeAnnotationIndices&&t.attr("annotations",c.annotations.join(",")),
// Check for max font size
u=parseFloat(e["font-size"]),void 0===u&&(u=i),u&&u>s&&(s=u)}else r&&a===l&&(c+=r),o=document.createTextNode(c||" "),i&&i>s&&(s=i);e.appendChild(o)}return s&&(c.maxFontSize=s),a?c.lineHeight=a:s&&(c.lineHeight=1.2*s),c}const Ts=/em$/;function Os(e,t){const n=parseFloat(e);return Ts.test(e)?n*t:n}function Ds(e,t,n={}){t=u.sanitize(t);// eslint-disable-line
const r=n.eol;let i=n.textPath;const a=n.textVerticalAnchor,o="middle"===a||"bottom"===a||"top"===a;
// Horizontal shift applied to all the lines but the first.
let s=n.x;void 0===s&&(s=e.getAttribute("x")||0);
// Annotations
const c=n.includeAnnotationIndices;let l=n.annotations;l&&!Array.isArray(l)&&(l=[l]);
// Shift all the <tspan> but first by one line (`1em`)
const h=n.lineHeight,f="auto"===h,d=f?"1.5em":h||"1em";let p=!0;const g=e.childNodes;if(1===g.length){const e=g[0];e&&"TITLE"===e.tagName.toUpperCase()&&(p=!1)}p&&hi(e),za(e,{
// Preserve spaces, do not consecutive spaces to get collapsed to one.
"xml:space":"preserve",
// An empty text gets rendered into the DOM in webkit-based browsers.
// In order to unify this behaviour across all browsers
// we rather hide the text element when it's empty.
display:t||n.displayEmpty?null:"none"});
// Set default font-size if none
const m=za(e,"font-size");let v,y,A=parseFloat(m);A||(A=16,!o&&!l||m||za(e,"font-size",`${A}`)),i?(
// Now all the `<tspan>`s will be inside the `<textPath>`.
"string"==typeof i&&(i={d:i}),v=function(e,t){const n=Ss.create(t),r=Ss.create("textPath"),i=e.d;if(i&&void 0===e["xlink:href"]){const e=Ss.create("path").attr("d",i).appendTo(n.defs());r.attr("xlink:href",`#${e.id}`)}return"object"==typeof e&&r.attr(e),r.node}(i,e)):v=document.createDocumentFragment();let b,w=0;const x=t.split("\n"),C=[],_=x.length-1;for(let e=0;e<=_;e+=1){y=d;let t="v-line";const n=ti("tspan");let a,o=x[e];if(o)if(l){a=Ms(n,u.annotate(o,l,{offset:-w,includeAnnotationIndices:c}),{eol:e!==_&&r,baseSize:A,lineHeight:f?null:d,includeAnnotationIndices:c});
// Get the line height based on the biggest font size
// in the annotations for this line.
const t=a.lineHeight;t&&f&&0!==e&&(y=t),0===e&&(b=.8*a.maxFontSize)}else r&&e!==_&&(o+=r),n.textContent=o;else{
// Make sure the textContent is never empty. If it is, add a dummy
// character and make it invisible, making the following lines correctly
// relatively positioned. `dy=1em` won't work with empty lines otherwise.
n.textContent="-",t+=" v-empty-line";const e=n.style;e.fillOpacity=0,e.strokeOpacity=0,l&&(a={})}a&&C.push(a),e>0&&n.setAttribute("dy",y),
// Firefox requires 'x' to be set on the first line
(e>0||i)&&n.setAttribute("x",s),n.className.baseVal=t,v.appendChild(n),w+=o.length+1}
// Y Alignment calculation
if(o)if(l)y=function(e,t,n,r){if(!Array.isArray(t))return 0;const i=t.length;if(!i)return 0;let a=t[0];const o=Os(a.maxFontSize,n)||n;let s=0;const c=Os(r,n);for(let e=1;e<i;e+=1)a=t[e],s+=Os(a.lineHeight,n)||c;const l=Os(a.maxFontSize,n)||n;let u;switch(e){case"middle":u=o/2-.15*l-s/2;break;case"bottom":u=-.25*l-s;break;default:u=.8*o}return u}(a,C,A,d);else if("top"===a)
// A shortcut for top alignment. It does not depend on font-size nor line-height
y="0.8em";else{let e;// remaining height
switch(_>0?(e=parseFloat(d)||1,e*=_,Ts.test(d)||(e/=A)):
// Single-line text
e=0,a){case"middle":y=.3-e/2+"em";break;case"bottom":y=-e-.3+"em"}}else 0===a?y="0em":a?y=a:(
// No vertical anchor is defined
y=0,
// Backwards compatibility - we change the `y` attribute instead of `dy`.
null==e.getAttribute("y")&&e.setAttribute("y",`${b||"0.8em"}`));v.firstChild.setAttribute("dy",y),e.appendChild(v)}function Ps(e,t={}){const n=document.createElement("canvas").getContext("2d");if(!e)return{width:0};const r=[],i=t["font-size"]?`${parseFloat(t["font-size"])}px`:"14px";return r.push(t["font-style"]||"normal"),r.push(t["font-variant"]||"normal"),r.push(t["font-weight"]||400),r.push(i),r.push(t["font-family"]||"sans-serif"),n.font=r.join(" "),n.measureText(e)}function Ls(e,t,n,r={}){if(t>=n)return[e,""];const i=e.length,a={};let o=Math.round(t/n*i-1);
// eslint-disable-next-line
for(o<0&&(o=0);o>=0&&o<i;){const n=e.slice(0,o),i=a[n]||Ps(n,r).width,s=e.slice(0,o+1),c=a[s]||Ps(s,r).width;if(a[n]=i,a[s]=c,i>t)o-=1;else{if(!(c<=t))break;o+=1}}return[e.slice(0,o),e.slice(o)]}function Qs(e,t,n={},r={}){const i=t.width,a=t.height,o=r.eol||"\n",s=n.fontSize||14,l=n.lineHeight?parseFloat(n.lineHeight):Math.ceil(1.4*s),u=Math.floor(a/l);if(e.indexOf(o)>-1){const i=c.uuid(),a=[];return e.split(o).forEach((e=>{const o=Qs(e,Object.assign(Object.assign({},t),{height:Number.MAX_SAFE_INTEGER}),n,Object.assign(Object.assign({},r),{eol:i}));o&&a.push(...o.split(i))})),a.slice(0,u).join(o)}const{width:h}=Ps(e,n);if(h<i)return e;const f=[];let d=e,p=h,g=r.ellipsis,m=0;g&&("string"!=typeof g&&(g="…"),m=Ps(g,n).width);for(let e=0;e<u;e+=1){if(!(p>i)){f.push(d);break}if(e===u-1){const[e]=Ls(d,i-m,p,n);f.push(g?`${e}${g}`:e)}else{const[e,t]=Ls(d,i,p,n);f.push(e),d=t,p=Ps(d,n).width}}return f.join(o)}
//# sourceMappingURL=text.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/path.js
const Rs=.551784;function js(e,t,n=NaN){const r=e.getAttribute(t);if(null==r)return n;const i=parseFloat(r);return Number.isNaN(i)?n:i}function Ns(e,t=1){const n=e.getTotalLength(),r=[];let i,a=0;for(;a<n;)i=e.getPointAtLength(a),r.push({distance:a,x:i.x,y:i.y}),a+=t;return r}function Fs(e){return["M",js(e,"x1"),js(e,"y1"),"L",js(e,"x2"),js(e,"y2")].join(" ")}function zs(e){const t=Gs(e);return 0===t.length?null:`${Us(t)} Z`}function Hs(e){const t=Gs(e);return 0===t.length?null:Us(t)}function Us(e){return`M ${e.map((e=>`${e.x} ${e.y}`)).join(" L")}`}function Gs(e){const t=[],n=e.points;if(n)for(let e=0,r=n.numberOfItems;e<r;e+=1)t.push(n.getItem(e));return t}function Vs(e){const t=js(e,"cx",0),n=js(e,"cy",0),r=js(e,"r"),i=r*Rs;// Control distance.
return["M",t,n-r,// Move to the first point.
"C",t+i,n-r,t+r,n-i,t+r,n,// I. Quadrant.
"C",t+r,n+i,t+i,n+r,t,n+r,// II. Quadrant.
"C",t-i,n+r,t-r,n+i,t-r,n,// III. Quadrant.
"C",t-r,n-i,t-i,n-r,t,n-r,// IV. Quadrant.
"Z"].join(" ")}function Ws(e){const t=js(e,"cx",0),n=js(e,"cy",0),r=js(e,"rx"),i=js(e,"ry")||r,a=r*Rs,o=i*Rs;return["M",t,n-i,// Move to the first point.
"C",t+a,n-i,t+r,n-o,t+r,n,// I. Quadrant.
"C",t+r,n+o,t+a,n+i,t,n+i,// II. Quadrant.
"C",t-a,n+i,t-r,n+o,t-r,n,// III. Quadrant.
"C",t-r,n-o,t-a,n-i,t,n-i,// IV. Quadrant.
"Z"].join(" ")}function qs(e){return Ys({x:js(e,"x",0),y:js(e,"y",0),width:js(e,"width",0),height:js(e,"height",0),rx:js(e,"rx",0),ry:js(e,"ry",0)})}function Ys(e){let t;const n=e.x,r=e.y,i=e.width,a=e.height,o=Math.min(e.rx||e["top-rx"]||0,i/2),s=Math.min(e.rx||e["bottom-rx"]||0,i/2),c=Math.min(e.ry||e["top-ry"]||0,a/2),l=Math.min(e.ry||e["bottom-ry"]||0,a/2);return t=o||s||c||l?["M",n,r+c,"v",a-c-l,"a",s,l,0,0,0,s,l,"h",i-2*s,"a",s,l,0,0,0,s,-l,"v",-(a-l-c),"a",o,c,0,0,0,-o,-c,"h",-(i-2*o),"a",o,c,0,0,0,-o,c,"Z"]:["M",n,r,"H",n+i,"V",r+a,"H",n,"V",r,"Z"],t.join(" ")}function Ks(e){const t=ti("path");za(t,za(e));const n=$s(e);return n&&t.setAttribute("d",n),t}function $s(e){const t=e.tagName.toLowerCase();switch(t){case"path":return e.getAttribute("d");case"line":return Fs(e);case"polygon":return zs(e);case"polyline":return Hs(e);case"ellipse":return Ws(e);case"circle":return Vs(e);case"rect":return qs(e)}throw new Error(`"${t}" cannot be converted to svg path element.`)}
// Inspired by d3.js https://github.com/mbostock/d3/blob/master/src/svg/arc.js
function Js(e,t,n,r){const i=2*Math.PI-1e-6,a=e,o=t;let s=n,c=r;if(c<s){const e=s;s=c,c=e}const l=c-s,u=l<Math.PI?"0":"1",h=Math.cos(s),f=Math.sin(s),d=Math.cos(c),p=Math.sin(c);return l>=i?a?// eslint-disable-next-line
`M0,${o}A${o},${o} 0 1,1 0,${-o}A${o},${o} 0 1,1 0,${o}M0,${a}A${a},${a} 0 1,0 0,${-a}A${a},${a} 0 1,0 0,${a}Z`:// eslint-disable-next-line
`M0,${o}A${o},${o} 0 1,1 0,${-o}A${o},${o} 0 1,1 0,${o}Z`:a?// eslint-disable-next-line
`M${o*h},${o*f}A${o},${o} 0 ${u},1 ${o*d},${o*p}L${a*d},${a*p}A${a},${a} 0 ${u},0 ${a*h},${a*f}Z`:// eslint-disable-next-line
`M${o*h},${o*f}A${o},${o} 0 ${u},1 ${o*d},${o*p}L0,0Z`}
//# sourceMappingURL=path.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/matrix.js
const Xs=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,Zs=/[ ,]+/,ec=/^(\w+)\((.*)\)/;
/**
 * Returns a SVG point object initialized with the `x` and `y` coordinates.
 * @see https://developer.mozilla.org/en/docs/Web/API/SVGPoint
 */
function tc(e,t){const n=ti("svg").createSVGPoint();return n.x=e,n.y=t,n}
/**
 * Returns the SVG transformation matrix initialized with the given matrix.
 *
 * The given matrix is an object of the form:
 * {
 *   a: number
 *   b: number
 *   c: number
 *   d: number
 *   e: number
 *   f: number
 * }
 *
 * @see https://developer.mozilla.org/en/docs/Web/API/SVGMatrix
 */function nc(e){const t=ti("svg").createSVGMatrix();if(null!=e){const n=e,r=["a","b","c","d","e","f"];for(const e of r)void 0!==n[e]&&(t[e]=n[e])}return t}
/**
 * Returns a SVG transform object.
 * @see https://developer.mozilla.org/en/docs/Web/API/SVGTransform
 */function rc(e){const t=ti("svg");return null!=e?(e instanceof DOMMatrix||(e=nc(e)),t.createSVGTransformFromMatrix(e)):t.createSVGTransform()}
/**
 * Returns the SVG transformation matrix built from the `transformString`.
 *
 * E.g. 'translate(10,10) scale(2,2)' will result in matrix:
 * `{ a: 2, b: 0, c: 0, d: 2, e: 10, f: 10}`
 */function ic(e){let t=nc();const n=null!=e&&e.match(Xs);if(!n)return t;for(let e=0,r=n.length;e<r;e+=1){const r=n[e].match(ec);if(r){let e,n,i,a,o,s=nc();const c=r[2].split(Zs);switch(r[1].toLowerCase()){case"scale":e=parseFloat(c[0]),n=void 0===c[1]?e:parseFloat(c[1]),s=s.scaleNonUniform(e,n);break;case"translate":i=parseFloat(c[0]),a=parseFloat(c[1]),s=s.translate(i,a);break;case"rotate":o=parseFloat(c[0]),i=parseFloat(c[1])||0,a=parseFloat(c[2])||0,s=0!==i||0!==a?s.translate(i,a).rotate(o).translate(-i,-a):s.rotate(o);break;case"skewx":o=parseFloat(c[0]),s=s.skewX(o);break;case"skewy":o=parseFloat(c[0]),s=s.skewY(o);break;case"matrix":s.a=parseFloat(c[0]),s.b=parseFloat(c[1]),s.c=parseFloat(c[2]),s.d=parseFloat(c[3]),s.e=parseFloat(c[4]),s.f=parseFloat(c[5]);break;default:continue}t=t.multiply(s)}}return t}function ac(e){const t=e||{};return`matrix(${null!=t.a?t.a:1},${null!=t.b?t.b:0},${null!=t.c?t.c:0},${null!=t.d?t.d:1},${null!=t.e?t.e:0},${null!=t.f?t.f:0})`}function oc(e){let t,n,r;if(e){const i=Zs;
// Allow reading transform string with a single matrix
if(e.trim().indexOf("matrix")>=0){const i=cc(ic(e));t=[i.translateX,i.translateY],n=[i.rotation],r=[i.scaleX,i.scaleY];const a=[];0===t[0]&&0===t[1]||a.push(`translate(${t.join(",")})`),1===r[0]&&1===r[1]||a.push(`scale(${r.join(",")})`),0!==n[0]&&a.push(`rotate(${n[0]})`),e=a.join(" ")}else{const a=e.match(/translate\((.*?)\)/);a&&(t=a[1].split(i));const o=e.match(/rotate\((.*?)\)/);o&&(n=o[1].split(i));const s=e.match(/scale\((.*?)\)/);s&&(r=s[1].split(i))}}const i=r&&r[0]?parseFloat(r[0]):1;return{raw:e||"",translation:{tx:t&&t[0]?parseInt(t[0],10):0,ty:t&&t[1]?parseInt(t[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:i,sy:r&&r[1]?parseFloat(r[1]):i}}}function sc(e,t){return{x:t.x*e.a+t.y*e.c+0,y:t.x*e.b+t.y*e.d+0}}
/**
 * Decomposes the SVG transformation matrix into separate transformations.
 *
 * Returns an object of the form:
 * {
 *   translateX: number
 *   translateY: number
 *   scaleX: number
 *   scaleY: number
 *   skewX: number
 *   skewY: number
 *   rotation: number
 * }
 *
 * @see https://developer.mozilla.org/en/docs/Web/API/SVGMatrix
 */function cc(e){
// @see https://gist.github.com/2052247
const t=sc(e,{x:0,y:1}),n=sc(e,{x:1,y:0}),r=180/Math.PI*Math.atan2(t.y,t.x)-90;return{skewX:r,skewY:180/Math.PI*Math.atan2(n.y,n.x),translateX:e.e,translateY:e.f,scaleX:Math.sqrt(e.a*e.a+e.b*e.b),scaleY:Math.sqrt(e.c*e.c+e.d*e.d),rotation:r}}function lc(e){let t,n,r,i;return e?(t=null==e.a?1:e.a,i=null==e.d?1:e.d,n=e.b,r=e.c):t=i=1,{sx:n?Math.sqrt(t*t+n*n):t,sy:r?Math.sqrt(r*r+i*i):i}}function uc(e){let t={x:0,y:1};e&&(t=sc(e,t));const n=180*Math.atan2(t.y,t.x)/Math.PI%360-90;return{angle:n%360+(n<0?360:0)}}function hc(e){return{tx:e&&e.e||0,ty:e&&e.f||0}}
//# sourceMappingURL=matrix.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/transform.js
function fc(e,t,n={}){if(null==t)return ic(za(e,"transform"));if(n.absolute)return void e.setAttribute("transform",ac(t));const r=e.transform,i=rc(t);r.baseVal.appendItem(i)}function dc(e,t,n=0,r={}){let i=za(e,"transform");const a=oc(i);if(null==t)return a.translation;i=a.raw,i=i.replace(/translate\([^)]*\)/g,"").trim();const o=`translate(${r.absolute?t:a.translation.tx+t},${r.absolute?n:a.translation.ty+n})`;
// Note that `translate()` is always the first transformation. This is
// usually the desired case.
e.setAttribute("transform",`${o} ${i}`.trim())}function pc(e,t,n,r,i={}){let a=za(e,"transform");const o=oc(a);if(null==t)return o.rotation;a=o.raw,a=a.replace(/rotate\([^)]*\)/g,"").trim(),t%=360;// eslint-disable-line
const s=`rotate(${i.absolute?t:o.rotation.angle+t}${null!=n&&null!=r?`,${n},${r}`:""})`;e.setAttribute("transform",`${a} ${s}`.trim())}function gc(e,t,n){let r=za(e,"transform");const i=oc(r);if(null==t)return i.scale;n=null==n?t:n,// eslint-disable-line
r=i.raw,r=r.replace(/scale\([^)]*\)/g,"").trim();const a=`scale(${t},${n})`;e.setAttribute("transform",`${r} ${a}`.trim())}
/**
 * Returns an DOMMatrix that specifies the transformation necessary
 * to convert `elem` coordinate system into `target` coordinate system.
 */function mc(e,t){if($r(t)&&$r(e)){const n=t.getScreenCTM(),r=e.getScreenCTM();if(n&&r)return n.inverse().multiply(r)}
// Could not get actual transformation matrix
return nc()}
/**
 * Returns an DOMMatrix that specifies the transformation necessary
 * to convert `elem` coordinate system into `target` coordinate system.
 * Unlike getTransformToElement, elem is child of target,Because of the reduction in DOM API calls,
 * there is a significant performance improvement.
 */function vc(e,t){let n=nc();if($r(t)&&$r(e)){let r=e;const i=[];for(;r&&r!==t;){const e=ic(r.getAttribute("transform")||null);i.push(e),r=r.parentNode}i.reverse().forEach((e=>{n=n.multiply(e)}))}return n}
/**
 * Converts a global point with coordinates `x` and `y` into the
 * coordinate space of the element.
 */function yc(e,t,n){const r=e instanceof SVGSVGElement?e:e.ownerSVGElement,i=r.createSVGPoint();i.x=t,i.y=n;try{const t=r.getScreenCTM(),n=i.matrixTransform(t.inverse()),a=mc(e,r).inverse();return n.matrixTransform(a)}catch(e){return i}}
//# sourceMappingURL=transform.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/hook.js
const Ac={};function bc(e){return Ac[e]||{}}function wc(e,t){Ac[e]=t}function xc(e){delete Ac[e]}
//# sourceMappingURL=hook.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/store.js
const Cc=new WeakMap;function _c(e){return Cc.get(e)}
//# sourceMappingURL=store.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/util.js
const Ic=()=>!0,Ec=()=>!1;function kc(e){e.stopPropagation()}const Sc=/[^\x20\t\r\n\f]+/g,Bc=/^([^.]*)(?:\.(.+)|)/;function Mc(e){return(e||"").match(Sc)||[""]}function Tc(e){const t=Bc.exec(e)||[];return{originType:t[1]?t[1].trim():t[1],namespaces:t[2]?t[2].split(".").map((e=>e.trim())).sort():[]}}function Oc(e){
// Accepts only:
//  - Node
//    - Node.ELEMENT_NODE
//    - Node.DOCUMENT_NODE
//  - Object
//    - Any
return 1===e.nodeType||9===e.nodeType||!+e.nodeType}let Dc=0;const Pc=new WeakMap;function Lc(e){return Pc.has(e)||(Pc.set(e,Dc),Dc+=1),Pc.get(e)}function Qc(e){return Pc.get(e)}function Rc(e,t){return Pc.set(e,t)}function jc(e){return null!=e&&e===e.window}function Nc(e,t){const n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||
// Support: IE 9 - 11+
// IE doesn't have `contains` on SVG.
!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/object.js
class Fc{static create(e){return e instanceof Fc?e:new Fc(e)}static addProperty(e,t){Object.defineProperty(Fc.prototype,e,{enumerable:!0,configurable:!0,get:"function"==typeof t?// eslint-disable-next-line
function(){if(this.originalEvent)return t(this.originalEvent)}:// eslint-disable-next-line
function(){if(this.originalEvent)return this.originalEvent[e]},set(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})}constructor(e,t){this.isDefaultPrevented=Ec,this.isPropagationStopped=Ec,this.isImmediatePropagationStopped=Ec,this.isSimulated=!1,this.preventDefault=()=>{const e=this.originalEvent;this.isDefaultPrevented=Ic,e&&!this.isSimulated&&e.preventDefault()},this.stopPropagation=()=>{const e=this.originalEvent;this.isPropagationStopped=Ic,e&&!this.isSimulated&&e.stopPropagation()},this.stopImmediatePropagation=()=>{const e=this.originalEvent;this.isImmediatePropagationStopped=Ic,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()},"string"==typeof e?this.type=e:e.type&&(this.originalEvent=e,this.type=e.type,
// Events bubbling up the document may have been marked as prevented
// by a handler lower down the tree; reflect the correct value.
this.isDefaultPrevented=e.defaultPrevented?Ic:Ec,
// Create target properties
this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.timeStamp=e.timeStamp),
// Put explicitly provided properties onto the event object
t&&Object.assign(this,t),
// Create a timestamp if incoming event doesn't have one
this.timeStamp||(this.timeStamp=Date.now())}}
// Common event props including KeyEvent and MouseEvent specific props.
const zc={bubbles:!0,cancelable:!0,eventPhase:!0,detail:!0,view:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,pointerId:!0,pointerType:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,touches:!0,changedTouches:!0,targetTouches:!0,which:!0,altKey:!0,ctrlKey:!0,metaKey:!0,shiftKey:!0};
//# sourceMappingURL=special.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/core.js
let Hc;function Uc(e,t,n,r,i){if(!Oc(e))return;
// Caller can pass in an object of custom data in lieu of the handler
let a;if("function"!=typeof n){const{handler:e,selector:t}=n,r=M(n,["handler","selector"]);n=e,// eslint-disable-line
i=t,// eslint-disable-line
a=r}
// Ensure that invalid selectors throw exceptions at attach time
// if (!isValidSelector(elem, selector)) {
//   throw new Error('Delegate event with invalid selector.')
// }
const o=(s=e,Cc.has(s)||Cc.set(s,{events:Object.create(null)}),Cc.get(s));
// Ensure the main handle
var s;let c=o.handler;null==c&&(c=o.handler=function(t,...n){return Hc!==t.type?function(e,t,...n){const r=Fc.create(t);r.delegateTarget=e;const i=bc(r.type);if(i.preDispatch&&!1===i.preDispatch(e,r))return;const a=function(e,t){const n=[],r=_c(e),i=r&&r.events&&r.events[t.type],a=i&&i.handlers||[],o=i?i.delegateCount:0;if(o>0&&
// Support: Firefox <=42 - 66+
// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
// Support: IE 11+
// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
!("click"===t.type&&"number"==typeof t.button&&t.button>=1))for(let r=t.target;r!==e;r=r.parentNode||e)
// Don't check non-elements
// Don't process clicks on disabled elements
if(1===r.nodeType&&("click"!==t.type||!0!==r.disabled)){const t=[],i={};for(let n=0;n<o;n+=1){const o=a[n],s=o.selector;if(null!=s&&null==i[s]){const t=[];e.querySelectorAll(s).forEach((e=>{t.push(e)})),i[s]=t.includes(r)}i[s]&&t.push(o)}t.length&&n.push({elem:r,handlers:t})}
// Add the remaining (directly-bound) handlers
return o<a.length&&n.push({elem:e,handlers:a.slice(o)}),n}(e,r);
// Run delegates first; they may want to stop propagation beneath us
for(let e=0,t=a.length;e<t&&!r.isPropagationStopped();e+=1){const t=a[e];r.currentTarget=t.elem;for(let e=0,i=t.handlers.length;e<i&&!r.isImmediatePropagationStopped();e+=1){const i=t.handlers[e];
// If event is namespaced, then each handler is only invoked if it is
// specially universal or its namespaces are a superset of the event's.
if(null==r.rnamespace||i.namespace&&r.rnamespace.test(i.namespace)){r.handleObj=i,r.data=i.data;const e=bc(i.originType).handle,a=e?e(t.elem,r,...n):i.handler.call(t.elem,r,...n);void 0!==a&&(r.result=a,!1===a&&(r.preventDefault(),r.stopPropagation()))}}}
// Call the postDispatch hook for the mapped type
i.postDispatch&&i.postDispatch(e,r);return r.result}(e,t,...n):void 0});
// Make sure that the handler has a unique ID, used to find/remove it later
const l=Lc(n);
// Handle multiple events separated by a space
Mc(t).forEach((t=>{const{originType:s,namespaces:u}=Tc(t);
// There *must* be a type, no attaching namespace-only handlers
if(!s)return;let h=s,f=bc(h);
// If selector defined, determine special event type, otherwise given type
h=(i?f.delegateType:f.bindType)||h,
// Update hook based on newly reset type
f=bc(h);
// handleObj is passed to all event handlers
const d=Object.assign({type:h,originType:s,data:r,selector:i,guid:l,handler:n,namespace:u.join(".")},a),p=o.events;
// Init the event handler queue if we're the first
let g=p[h];g||(g=p[h]={handlers:[],delegateCount:0},
// Only use addEventListener if the `hook.steup` returns false
f.setup&&!1!==f.setup(e,r,u,c)||function(e,t,n){null!=e.addEventListener&&e.addEventListener(t,n)}(e,h,c)),f.add&&(!function(e){Pc.delete(e)}(d.handler),f.add(e,d),Rc(d.handler,l)),
// Add to the element's handler list, delegates in front
i?(g.handlers.splice(g.delegateCount,0,d),g.delegateCount+=1):g.handlers.push(d)}))}function Gc(e,t,n,r,i){const a=_c(e);if(!a)return;const o=a.events;var s;o&&(
// Once for each type.namespace in types; type may be omitted
Mc(t).forEach((t=>{const{originType:s,namespaces:c}=Tc(t);
// Unbind all events (on this namespace, if provided) for the element
if(!s)return void Object.keys(o).forEach((i=>{Gc(e,i+t,n,r,!0)}));let l=s;const u=bc(l);l=(r?u.delegateType:u.bindType)||l;const h=o[l];if(!h)return;const f=c.length>0?new RegExp(`(^|\\.)${c.join("\\.(?:.*\\.|)")}(\\.|$)`):null,d=h.handlers.length;
// Remove matching events
for(let t=h.handlers.length-1;t>=0;t-=1){const a=h.handlers[t];!i&&s!==a.originType||n&&Qc(n)!==a.guid||!(null==f||a.namespace&&f.test(a.namespace))||!(null==r||r===a.selector||"**"===r&&a.selector)||(h.handlers.splice(t,1),a.selector&&(h.delegateCount-=1),u.remove&&u.remove(e,a))}d&&0===h.handlers.length&&(u.teardown&&!1!==u.teardown(e,c,a.handler)||function(e,t,n){null!=e.removeEventListener&&e.removeEventListener(t,n)}(e,l,a.handler),delete o[l])})),
// Remove data and the expando if it's no longer used
0===Object.keys(o).length&&(s=e,Cc.delete(s)))}Object.keys(zc).forEach((e=>Fc.addProperty(e,zc[e]))),
//# sourceMappingURL=object.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/special.js
// Prevent triggered image.load events from bubbling to window.load
wc("load",{noBubble:!0}),
// Support: Chrome <=73+
// Chrome doesn't alert on `event.preventDefault()`
// as the standard mandates.
wc("beforeunload",{postDispatch(e,t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}),
// For mouseenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
wc("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,t){let n;const r=t.relatedTarget,i=t.handleObj;return r&&(r===e||Nc(e,r))||(t.type=i.originType,n=i.handler.call(e,t),t.type="mouseover"),n}}),wc("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,t){let n;const r=t.relatedTarget,i=t.handleObj;return r&&(r===e||Nc(e,r))||(t.type=i.originType,n=i.handler.call(e,t),t.type="mouseout"),n}});
//# sourceMappingURL=core.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/main.js
/* eslint-disable no-param-reassign */
class Vc{static on(e,t,n,r,i){return Wc.on(e,t,n,r,i),e}static once(e,t,n,r,i){return Wc.on(e,t,n,r,i,!0),e}static off(e,t,n,r){return Wc.off(e,t,n,r),e}static trigger(e,t,n,
/**
     * When onlyHandlers is `true`
     * - Will not call `.event()` on the element it is triggered on. This means
     *   `.trigger('submit', [], true)` on a form will not call `.submit()` on
     *   the form.
     * - Events will not bubble up the DOM hierarchy; if they are not handled
     *   by the target element directly, they do nothing.
     */
r){return function(e,t,n,r){let i=e,a="string"==typeof e?e:e.type,o="string"==typeof e||null==i.namespace?[]:i.namespace.split(".");const s=n;
// Don't do events on text and comment nodes
if(3===s.nodeType||8===s.nodeType)return;a.indexOf(".")>-1&&(
// Namespaced trigger; create a regexp to match event type in handle()
o=a.split("."),a=o.shift(),o.sort());const c=a.indexOf(":")<0&&`on${a}`;
// Caller can pass in a EventObject, Object, or just an event type string
i=e instanceof Fc?e:new Fc(a,"object"==typeof e?e:null),i.namespace=o.join("."),i.rnamespace=i.namespace?new RegExp(`(^|\\.)${o.join("\\.(?:.*\\.|)")}(\\.|$)`):null,
// Clean up the event in case it is being reused
i.result=void 0,i.target||(i.target=s);const l=[i];Array.isArray(t)?l.push(...t):l.push(t);const u=bc(a);if(!r&&u.trigger&&!1===u.trigger(s,i,t))return;let h;
// Determine event propagation path in advance, per W3C events spec.
// Bubble up to document, then to window; watch for a global ownerDocument
const f=[s];if(!r&&!u.noBubble&&!jc(s)){h=u.delegateType||a;let e=s,t=s.parentNode;for(;null!=t;)f.push(t),e=t,t=t.parentNode;
// Only add window if we got to document
if(e===(s.ownerDocument||document)){const t=e.defaultView||e.parentWindow||window;f.push(t)}}let d=s;
// Fire handlers on the event path
for(let e=0,t=f.length;e<t&&!i.isPropagationStopped();e+=1){const t=f[e];d=t,i.type=e>1?h:u.bindType||a;
// Custom handler
const n=_c(t);n&&n.events[i.type]&&n.handler&&n.handler.call(t,...l);
// Native handler
const r=c&&t[c]||null;r&&Oc(t)&&(i.result=r.call(t,...l),!1===i.result&&i.preventDefault())}
// If nobody prevented the default action, do it now
if(i.type=a,!r&&!i.isDefaultPrevented()){const e=u.preventDefault;if((null==e||!1===e(f.pop(),i,t))&&Oc(s)&&c&&"function"==typeof s[a]&&!jc(s)){
// Don't re-trigger an onFOO event when we call its FOO() method
const e=s[c];e&&(s[c]=null),
// Prevent re-triggering of the same event, since we already bubbled it above
Hc=a,i.isPropagationStopped()&&d.addEventListener(a,kc),s[a](),i.isPropagationStopped()&&d.removeEventListener(a,kc),Hc=void 0,e&&(s[c]=e)}}i.result}(t,n,e,r),e}}var Wc,qc;(qc=Wc||(Wc={})).on=function e(t,n,r,i,a,o){
// Types can be a map of types/handlers
if("object"==typeof n)
// ( types-Object, selector, data )
return"string"!=typeof r&&(
// ( types-Object, data )
i=i||r,r=void 0),void Object.keys(n).forEach((a=>e(t,a,r,i,n[a],o)));if(null==i&&null==a?(
// ( types, fn )
a=r,i=r=void 0):null==a&&("string"==typeof r?(
// ( types, selector, fn )
a=i,i=void 0):(
// ( types, data, fn )
a=i,i=r,r=void 0)),!1===a)a=Ec;else if(!a)return;if(o){const e=a;
// Use same guid so caller can remove using origFn
Rc(a=function(n,...r){
// Can use an empty set, since event contains the info
return qc.off(t,n),e.call(this,n,...r)},Lc(e))}Uc(t,n,a,i,r)},qc.off=function e(t,n,r,i){const a=n;if(a&&null!=a.preventDefault&&null!=a.handleObj){const t=a.handleObj;e(a.delegateTarget,t.namespace?`${t.originType}.${t.namespace}`:t.originType,t.selector,t.handler)}else if("object"!=typeof n)!1!==r&&"function"!=typeof r||(
// ( types [, fn] )
i=r,r=void 0),!1===i&&(i=Ec),
// @ts-ignore
Gc(t,n,i,r);else{
// ( types-object [, selector] )
const i=n;Object.keys(i).forEach((n=>e(t,n,r,i[n])))}};
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/types.js
//# sourceMappingURL=types.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/event/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/mousewheel.js
class Yc{constructor(e,t,n){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=function(e){const t=document.createElement(Qn[e]||"div"),n=`on${e}`;let r=n in t;return r||(t.setAttribute(n,"return;"),r="function"==typeof t[n]),r}("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=t,this.onWheelGuard=n,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(e){if(null!=this.onWheelGuard&&!this.onWheelGuard(e))return;let t;this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault(),0===this.deltaX&&0===this.deltaY||(e.stopPropagation(),t=!0),!0===t&&0===this.animationFrameId&&(this.animationFrameId=requestAnimationFrame((()=>{this.didWheel(e)})))}didWheel(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}
//# sourceMappingURL=mousewheel.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/position.js
function Kc(e){const t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}}function $c(e){return e.getBoundingClientRect().width}function Jc(e){return e.getBoundingClientRect().height}function Xc(e){const t="fixed"===ro(e,"position");let n;if(t){const t=e.getBoundingClientRect();n={left:t.left,top:t.top}}else n=Kc(e);if(!t){const t=e.ownerDocument;let r=e.offsetParent||t.documentElement;for(;(r===t.body||r===t.documentElement)&&"static"===ro(r,"position");)r=r.parentNode;if(r!==e&&vi(r)){const e=Kc(r);n.top-=e.top+io(r,"borderTopWidth"),n.left-=e.left+io(r,"borderLeftWidth")}}return{top:n.top-io(e,"marginTop"),left:n.left-io(e,"marginLeft")}}
//# sourceMappingURL=position.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/main.js
// svg
// ---
// event
// postion
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dom/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/util/index.js
const Zc=jr;
/**
 * Transforms point by an SVG transformation represented by `matrix`.
 */function el(e,t){const n=h.createSVGPoint(e.x,e.y).matrixTransform(t);return new gr(n.x,n.y)}
/**
 * Transforms line by an SVG transformation represented by `matrix`.
 */function tl(e,t){return new vr(el(e.start,t),el(e.end,t))}
/**
 * Transforms polyline by an SVG transformation represented by `matrix`.
 */function nl(e,t){let n=e instanceof Cr?e.points:e;return Array.isArray(n)||(n=[]),new Cr(n.map((e=>el(e,t))))}function rl(e,t){const n=h.createSvgElement("svg").createSVGPoint();n.x=e.x,n.y=e.y;const r=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y;const i=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y+e.height;const a=n.matrixTransform(t);n.x=e.x,n.y=e.y+e.height;const o=n.matrixTransform(t),s=Math.min(r.x,i.x,a.x,o.x),c=Math.max(r.x,i.x,a.x,o.x),l=Math.min(r.y,i.y,a.y,o.y),u=Math.max(r.y,i.y,a.y,o.y);return new mr(s,l,c-s,u-l)}
/**
 * Returns the bounding box of the element after transformations are
 * applied. If `withoutTransformations` is `true`, transformations of
 * the element will not be considered when computing the bounding box.
 * If `target` is specified, bounding box will be computed relatively
 * to the `target` element.
 */function il(e,t,n){let r=null;const i=e.ownerSVGElement;
// If the element is not in the live DOM, it does not have a bounding
// box defined and so fall back to 'zero' dimension element.
if(!i)return new mr(0,0,0,0);try{r=e.getBBox()}catch(t){
// Fallback for IE.
r={x:e.clientLeft,y:e.clientTop,width:e.clientWidth,height:e.clientHeight}}if(t)return mr.create(r);return rl(r,h.getTransformToElement(e,n||i))}
/**
 * Returns the bounding box of the element after transformations are
 * applied. Unlike `bbox()`, this function fixes a browser implementation
 * bug to return the correct bounding box if this elemenent is a group of
 * svg elements (if `options.recursive` is specified).
 */function al(e,t={}){let n=null;
// If the element is not in the live DOM, it does not have a bounding box
// defined and so fall back to 'zero' dimension element.
// If the element is not an SVGGraphicsElement, we could not measure the
// bounding box either
if(!e.ownerSVGElement||!h.isSVGGraphicsElement(e)){if(h.isHTMLElement(e)){
// If the element is a HTMLElement, return the position relative to the body
const{left:t,top:n,width:r,height:i}=ol(e);return new mr(t,n,r,i)}return new mr(0,0,0,0)}let r=t.target;if(!t.recursive){try{n=e.getBBox()}catch(t){n={x:e.clientLeft,y:e.clientTop,width:e.clientWidth,height:e.clientHeight}}if(!r)return mr.create(n);
// transform like target
return rl(n,h.getTransformToElement(e,r))}
// recursive
{const t=e.childNodes,n=t.length;if(0===n)return al(e,{target:r});r||(r=e);let i=null;for(let e=0;e<n;e+=1){const n=t[e];let a=null;a=0===n.childNodes.length?al(n,{target:r}):al(n,{target:r,recursive:!0}),i=i?i.union(a):mr.create(a)}return i||new mr(0,0,0,0)}}function ol(e){let t=0,n=0,r=0,i=0;if(e){let a=e;for(;a;)t+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent,a&&(t+=parseInt(h.getComputedStyle(a,"borderLeft"),10),n+=parseInt(h.getComputedStyle(a,"borderTop"),10));r=e.offsetWidth,i=e.offsetHeight}return{left:t,top:n,width:r,height:i}}
/**
 * Convert the SVGElement to an equivalent geometric shape. The element's
 * transformations are not taken into account.
 *
 * SVGRectElement      => Rectangle
 *
 * SVGLineElement      => Line
 *
 * SVGCircleElement    => Ellipse
 *
 * SVGEllipseElement   => Ellipse
 *
 * SVGPolygonElement   => Polyline
 *
 * SVGPolylineElement  => Polyline
 *
 * SVGPathElement      => Path
 *
 * others              => Rectangle
 */function sl(e){const t=t=>{const n=e.getAttribute(t),r=n?parseFloat(n):0;return Number.isNaN(r)?0:r};switch(e instanceof SVGElement&&e.nodeName.toLowerCase()){case"rect":return new mr(t("x"),t("y"),t("width"),t("height"));case"circle":return new yr(t("cx"),t("cy"),t("r"),t("r"));case"ellipse":return new yr(t("cx"),t("cy"),t("rx"),t("ry"));case"polyline":{const t=h.getPointsFromSvgElement(e);return new Cr(t)}case"polygon":{const t=h.getPointsFromSvgElement(e);return t.length>1&&t.push(t[0]),new Cr(t)}case"path":{let t=e.getAttribute("d");return"string"==typeof(n=t)&&Ar.test(n)||(t=Qr(t)),Rr.parse(t)}case"line":return new vr(t("x1"),t("y1"),t("x2"),t("y2"))}
// Anything else is a rectangle
var n;return al(e)}function cl(e,t,n,r){const i=gr.create(t),a=gr.create(n);if(!r){r=e instanceof SVGSVGElement?e:e.ownerSVGElement}
// Clean-up previously set transformations except the scale.
// If we didn't clean up the previous transformations then they'd
// add up with the old ones. Scale is an exception as it doesn't
// add up, consider: `this.scale(2).scale(2).scale(2)`. The result
// is that the element is scaled by the factor 2, not 8.
const o=h.scale(e);e.setAttribute("transform","");const s=al(e,{target:r}).scale(o.sx,o.sy),c=h.createSVGTransform();
// 1. Translate to origin.
c.setTranslate(-s.x-s.width/2,-s.y-s.height/2);
// 2. Rotate around origin.
const l=h.createSVGTransform(),u=i.angleBetween(a,i.clone().translate(1,0));u&&l.setRotate(u,0,0);
// 3. Translate to the `position` + the offset (half my width)
//    towards the `reference` point.
const f=h.createSVGTransform(),d=i.clone().move(a,s.width/2);f.setTranslate(2*i.x-d.x,2*i.y-d.y);
// 4. Get the current transformation matrix of this node
const p=h.getTransformToElement(e,r),g=h.createSVGTransform();
// 5. Apply transformations and the scale
g.setMatrix(f.matrix.multiply(l.matrix.multiply(c.matrix.multiply(p.scale(o.sx,o.sy))))),e.setAttribute("transform",h.matrixToTransformString(g.matrix))}function ll(e){if(null==e)return null;let t=e;do{let e=t.tagName;if("string"!=typeof e)return null;if(e=e.toUpperCase(),h.hasClass(t,"x6-port"))t=t.nextElementSibling;else if("G"===e)t=t.firstElementChild;else{if("TITLE"!==e)break;t=t.nextElementSibling}}while(t);return t}
// BBox is calculated by the attribute and shape of the node.
// Because of the reduction in DOM API calls, there is a significant performance improvement.
function ul(e){const t=ll(e);if(!h.isSVGGraphicsElement(t)){if(h.isHTMLElement(e)){const{left:t,top:n,width:r,height:i}=ol(e);return new mr(t,n,r,i)}return new mr(0,0,0,0)}
// const transform = node.getAttribute('transform')
// if (transform) {
//   const nodeMatrix = Dom.transformStringToMatrix(transform)
//   return transformRectangle(bbox, nodeMatrix)
// }
return sl(t).bbox()||mr.create()}
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/algorithm/priorityqueue.js
const hl=(e,t)=>e-t
/**
 * An implementation of the Priority Queue abstract data type.
 *
 * @see: http://en.wikipedia.org/wiki/Priority_queue
 *
 * It is like a normal stack or queue, but where each item has assigned a
 * priority (a number). Items with higher priority are served before items
 * with lower priority. This implementation uses binary heap as an internal
 * representation of the queue. The time complexity of all the methods is as
 * follows:
 *
 * - create: `O(n)`
 * - insert: `O(log n)`
 * - remove: `O(log n)`
 * - peek: `O(1)`
 * - isEmpty: `O(1)`
 * - peekPriority: `O(1)`
 */;class fl{constructor(e={}){this.comparator=e.comparator||hl,this.index={},this.data=e.data||[],this.heapify()}
/**
     * Returns `true` if the priority queue is empty, `false` otherwise.
     */isEmpty(){return 0===this.data.length}
/**
     * Inserts a value with priority to the queue. Optionally pass a unique
     * id of this item. Passing unique IDs for each item you insert allows
     * you to use the `updatePriority()` operation.
     * @param priority
     * @param value
     * @param id
     */insert(e,t,n){const r={priority:e,value:t},i=this.data.length;return n&&(r.id=n,this.index[n]=i),this.data.push(r),this.bubbleUp(i),this}
/**
     * Returns the value of an item with the highest priority.
     */peek(){return this.data[0]?this.data[0].value:null}
/**
     * Returns the highest priority in the queue.
     */peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(e,t){const n=this.index[e];if(void 0===n)throw new Error(`Node with id '${e}' was not found in the heap.`);const r=this.data,i=r[n].priority,a=this.comparator(t,i);a<0?(r[n].priority=t,this.bubbleUp(n)):a>0&&(r[n].priority=t,this.bubbleDown(n))}
/**
     * Removes the item with the highest priority from the queue
     *
     * @returns The value of the removed item.
     */remove(){const e=this.data,t=e[0],n=e.pop();return(null==t?void 0:t.id)&&delete this.index[t.id],e.length>0&&(e[0]=n,n.id&&(this.index[n.id]=0),this.bubbleDown(0)),t?t.value:null}heapify(){for(let e=0;e<this.data.length;e+=1)this.bubbleUp(e)}bubbleUp(e){const t=this.data;let n,r,i=e;for(;i>0&&(r=i-1>>>1,this.comparator(t[i].priority,t[r].priority)<0);){n=t[r],t[r]=t[i];let e=t[i].id;null!=e&&(this.index[e]=r),t[i]=n,e=t[i].id,null!=e&&(this.index[e]=i),i=r}}bubbleDown(e){const t=this.data,n=t.length-1;let r=e;
// eslint-disable-next-line
for(;;){const e=1+(r<<1),i=e+1;let a=r;if(e<=n&&this.comparator(t[e].priority,t[a].priority)<0&&(a=e),i<=n&&this.comparator(t[i].priority,t[a].priority)<0&&(a=i),a===r)break;{const e=t[a];t[a]=t[r];let n=t[r].id;null!=n&&(this.index[n]=a),t[r]=e,n=t[r].id,null!=n&&(this.index[n]=r),r=a}}}}
//# sourceMappingURL=priorityqueue.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/algorithm/dijkstra.js
//# sourceMappingURL=dijkstra.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/algorithm/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/animation/util.js
const dl=/(-?(?:\d*\.\d+|\d+))\s*(px|em|rem|ch|vh|vw|vmin|vmax|%|cm|mm|in|pt|pc|ex|fr|deg|rad|turn)$/,pl=(e,t)=>{const n=t-e;return t=>e+n*t},gl=(e,t)=>{const n=Object.keys(e);return r=>{const i={};for(let a=n.length-1;-1!==a;a-=1){const o=n[a];i[o]=e[o]+(t[o]-e[o])*r}return i}},ml=(e,t)=>{const n=dl,r=n.exec(e),i=n.exec(t),a=i?i[1]:"",o=r?+r[1]:0,s=i?+i[1]:0,c=a.indexOf("."),l=c>0?a[1].length-c-1:0,u=s-o,h=r?r[2]:"";return e=>(o+u*e).toFixed(l)+h},vl=(e,t)=>{const n=parseInt(e.slice(1),16),r=parseInt(t.slice(1),16),i=255&n,a=(255&r)-i,o=65280&n,s=(65280&r)-o,c=16711680&n,l=(16711680&r)-c;return e=>`#${(1<<24|i+a*e&255|o+s*e&65280|c+l*e&16711680).toString(16).slice(1)}`},yl=(e,t)=>{
// 解析 transform 字符串中的函数和参数
const n=e=>{const t=[];if(!e)return t;const n=/(\w+)\(([^)]+)\)/g;let r=n.exec(e);for(;null!==r;)r[1]&&r[2]&&t.push({name:r[1],values:r[2].split(/\s*,\s*/).filter(Boolean)}),r=n.exec(e);return t},r=n(e),i=n(t);return 0===r.length||0===i.length?()=>e// 如果无法解析，返回初始值
:t=>{const n=[];
// 对每个 transform 函数进行插值
for(let e=0;e<Math.min(r.length,i.length);e++){const a=r[e],o=i[e];if(a&&o&&(a.name===o.name&&a.values.length>0&&a.values.length===o.values.length)){const e=[];
// 对每个参数进行插值
for(let n=0;n<a.values.length;n++){const r=a.values[n],i=o.values[n];if(void 0!==r&&void 0!==i)
// 检查是否是带单位的值
if(dl.test(r)||dl.test(i)){
// 使用 unit 插值函数处理带单位的值
const n=ml(r,i);e.push(n(t))}else if(Number.isNaN(parseFloat(r))||Number.isNaN(parseFloat(i)))
// 无法解析的值保持原样
e.push(r);else{
// 使用 number 插值函数处理纯数字
const n=pl(parseFloat(r),parseFloat(i));e.push(n(t).toString())}}e.length>0&&n.push(`${a.name}(${e.join(", ")})`)}}return n.length>0?n.join(" "):e}},Al=e=>e,bl=e=>e*e,wl=e=>e*e*e,xl=e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)},Cl=e=>Math.pow(2,10*(e-1))// eslint-disable-line
,_l=e=>{for(let t=0,n=1;;t+=n,n/=2)if(e>=(7-4*t)/11){const r=(11-6*t-11*e)/4;return-r*r+n*n}},Il={reverse:e=>t=>1-e(1-t),reflect:e=>t=>.5*(t<.5?e(2*t):2-e(2-2*t)),clamp:(e,t=0,n=1)=>r=>{const i=e(r);return i<t?t:i>n?n:i},back:(e=1.70158)=>t=>t*t*((e+1)*t-e),elastic:(e=1.5)=>t=>Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)};
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/animation/interp.js
/**
 * @file 插值函数
 * 提供数字、对象、单位、颜色、transform的插值函数。
 */
// Slight acceleration from zero to full speed
function El(e){return-1*Math.cos(e*(Math.PI/2))+1}
// Slight deceleration at the end
function kl(e){return Math.sin(e*(Math.PI/2))}
// Slight acceleration at beginning and slight deceleration at end
function Sl(e){return-.5*(Math.cos(Math.PI*e)-1)}
// Accelerating from zero velocity
function Bl(e){return e*e}
// Decelerating to zero velocity
function Ml(e){return e*(2-e)}
// Acceleration until halfway, then deceleration
function Tl(e){return e<.5?2*e*e:(4-2*e)*e-1}
// Accelerating from zero velocity
function Ol(e){return e*e*e}
// Decelerating to zero velocity
function Dl(e){const t=e-1;return t*t*t+1}
// Acceleration until halfway, then deceleration
function Pl(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}
// Accelerating from zero velocity
function Ll(e){return e*e*e*e}
// Decelerating to zero velocity
function Ql(e){const t=e-1;return 1-t*t*t*t}
// Acceleration until halfway, then deceleration
function Rl(e){const t=e-1;return e<.5?8*e*e*e*e:1-8*t*t*t*t}
// Accelerating from zero velocity
function jl(e){return e*e*e*e*e}
// Decelerating to zero velocity
function Nl(e){const t=e-1;return 1+t*t*t*t*t}
// Acceleration until halfway, then deceleration
function Fl(e){const t=e-1;return e<.5?16*e*e*e*e*e:1+16*t*t*t*t*t}
// Accelerate exponentially until finish
function zl(e){return 0===e?0:Math.pow(2,10*(e-1))}
// Initial exponential acceleration slowing to stop
function Hl(e){return 1===e?1:1-Math.pow(2,-10*e)}
// Exponential acceleration and deceleration
function Ul(e){if(0===e||1===e)return e;const t=2*e,n=t-1;return t<1?.5*Math.pow(2,10*n):.5*(2-Math.pow(2,-10*n))}
// Increasing velocity until stop
function Gl(e){const t=e/1;return-1*(Math.sqrt(1-t*e)-1)}
// Start fast, decreasing velocity until stop
function Vl(e){const t=e-1;return Math.sqrt(1-t*t)}
// Fast increase in velocity, fast decrease in velocity
function Wl(e){const t=2*e,n=t-2;return t<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-n*n)+1)}
// Slow movement backwards then fast snap to finish
function ql(e,t=1.70158){return e*e*((t+1)*e-t)}
// Fast snap to backwards point then slow resolve to finish
function Yl(e,t=1.70158){const n=e/1-1;return n*n*((t+1)*n+t)+1}
// Slow movement backwards, fast snap to past finish, slow resolve to finish
function Kl(e,t=1.70158){const n=2*e,r=n-2,i=1.525*t;return n<1?.5*n*n*((i+1)*n-i):.5*(r*r*((i+1)*r+i)+2)}
// Bounces slowly then quickly to finish
function $l(e,t=.7){if(0===e||1===e)return e;const n=e/1-1,r=1-t,i=r/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*n)*// eslint-disable-line
Math.sin((n-i)*(2*Math.PI)/r)}
// Fast acceleration, bounces to zero
function Jl(e,t=.7){const n=1-t,r=2*e;if(0===e||1===e)return e;const i=n/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*r)*// eslint-disable-line
Math.sin((r-i)*(2*Math.PI)/n)+1}
// Slow start and end, two bounces sandwich a fast motion
function Xl(e,t=.65){const n=1-t;if(0===e||1===e)return e;const r=2*e,i=r-1,a=n/(2*Math.PI)*Math.asin(1);return r<1?Math.pow(2,10*i)*// eslint-disable-line
Math.sin((i-a)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*i)*// eslint-disable-line
Math.sin((i-a)*(2*Math.PI)/n)*.5+1}
// Bounce to completion
function Zl(e){const t=e/1;if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){const e=t-1.5/2.75;return 7.5625*e*e+.75}if(t<2.5/2.75){const e=t-2.25/2.75;return 7.5625*e*e+.9375}{const e=t-2.625/2.75;return 7.5625*e*e+.984375}}
// Bounce increasing in velocity until completion
function eu(e){return 1-Zl(1-e)}
// Bounce in and bounce out
function tu(e){return e<.5?.5*eu(2*e):.5*Zl(2*e-1)+.5}
//# sourceMappingURL=timing.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/animation/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/event/util.js
function nu(e,t){const n=[];for(let r=0;r<e.length;r+=2){const i=rr(e[r],e[r+1],Array.isArray(t)?t:[t]);n.push(i)}return Kn(n)}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/event/events.js
class ru{constructor(){this.listeners={}}on(e,t,n){if(null==t)return this;this.listeners[e]||(this.listeners[e]=[]);return this.listeners[e].push(t,n),this}once(e,t,n){const r=(...i)=>(this.off(e,r),nu([t,n],i));return this.on(e,r,this)}off(e,t,n){
// remove all events.
if(!(e||t||n))return this.listeners={},this;const r=this.listeners;return(e?[e]:Object.keys(r)).forEach((e=>{const i=r[e];if(i)
// remove all events with specified name.
if(t||n)for(let e=i.length-2;e>=0;e-=2)t&&i[e]!==t||n&&i[e+1]!==n||i.splice(e,2);else delete r[e]})),this}trigger(e,...t){let n=!0;if("*"!==e){const r=this.listeners[e];null!=r&&(n=nu([...r],t))}const r=this.listeners["*"];return null!=r?Kn([n,nu([...r],[e,...t])]):n}emit(e,...t){return this.trigger(e,...t)}}
//# sourceMappingURL=events.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/event/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/base/disposable.js
/* eslint-disable no-underscore-dangle */class iu{get disposed(){return!0===this._disposed}dispose(){this._disposed=!0}}
/**
 * This is a decorator that automatically disposes the target object when the decorated method is called.
 * @returns A method decorator.
 */function au(){return(e,t,n)=>{const r=n.value,i=e.__proto__;// eslint-disable-line
n.value=function(...e){this.disposed||(r.call(this,...e),i.dispose.call(this))}}}
/**
 * A disposable object which delegates to a callback function.
 */
//# sourceMappingURL=disposable.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/base/basecoat.js
class ou extends ru{dispose(){this.off()}}T([au()],ou.prototype,"dispose",null),l.applyMixins(ou,iu);
//# sourceMappingURL=disablable.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/base/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/dictionary/index.js
class su{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(e){return this.map.has(e)}get(e){return this.map.get(e)}set(e,t){this.map.set(e,t),this.arr.push(e)}delete(e){const t=this.arr.indexOf(e);t>=0&&this.arr.splice(t,1);const n=this.map.get(e);return this.map.delete(e),n}each(e){this.arr.forEach((t=>{const n=this.map.get(t);e(n,t)}))}dispose(){this.clear()}}
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/modifier/index.js
function cu(e){const t=[],n=[];return Array.isArray(e)?t.push(...e):e.split("|").forEach((e=>{-1===e.indexOf("&")?t.push(e):n.push(...e.split("&"))})),{or:t,and:n}}function lu(e,t,n){if(null==t||Array.isArray(t)&&0===t.length)return!n||!0!==e.altKey&&!0!==e.ctrlKey&&!0!==e.metaKey&&!0!==e.shiftKey;const{or:r,and:i}=cu(t),a=t=>{const n=`${t.toLowerCase()}Key`;return!0===e[n]};return r.some((e=>a(e)))&&i.every((e=>a(e)))}
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/types.js
//# sourceMappingURL=types.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/common/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/registry.js
class uu{static create(e){return new uu(e)}constructor(e){this.options=Object.assign({},e),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(e,t,n=!1){if("object"==typeof e)return void Object.entries(e).forEach((([e,n])=>{this.register(e,n,t)}));!this.exist(e)||n||Ln()||this.onDuplicated(e);const r=this.options.process,i=r?s.call(r,this,e,t):t;return this.data[e]=i,i}unregister(e){const t=e?this.data[e]:null;return delete this.data[e],t}get(e){return e?this.data[e]:null}exist(e){return!!e&&null!=this.data[e]}onDuplicated(e){
// eslint-disable-next-line no-useless-catch
try{
// race
throw this.options.onConflict&&s.call(this.options.onConflict,this,e),new Error(`${c.upperFirst(this.options.type)} with name '${e}' already registered.`)}catch(e){throw e}}onNotFound(e,t){throw new Error(this.getSpellingSuggestion(e,t))}getSpellingSuggestion(e,t){const n=this.getSpellingSuggestionForName(e),r=t?`${t} ${c.lowerFirst(this.options.type)}`:this.options.type;
// eslint-disable-next-line
return`${c.upperFirst(r)} with name '${e}' does not exist.${n?` Did you mean '${n}'?`:""}`}getSpellingSuggestionForName(e){return c.getSpellingSuggestion(e,Object.keys(this.data),(e=>e))}}
//# sourceMappingURL=registry.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/ref.js
const hu={},fu={position:Lu("x","width","origin")},du={position:Lu("y","height","origin")},pu={position:Lu("x","width","corner")},gu={position:Lu("y","height","corner")},mu={set:Qu("width","width")},vu={set:Qu("height","height")},yu={set:Qu("rx","width")},Au={set:Qu("ry","height")},bu={set:(()=>{const e=Qu("r","width"),t=Qu("r","height");return function(n,r){const i=r.refBBox,a=i.height>i.width?e:t;return s.call(a,this,n,r)}})()},wu={set(e,{refBBox:t}){let n=parseFloat(e);const r=i.isPercentage(e);r&&(n/=100);const a=Math.sqrt(t.height*t.height+t.width*t.width);let o;return Number.isFinite(n)&&(o=r||n>=0&&n<=1?n*a:Math.max(n+a,0)),{r:o}}},xu={set:Qu("cx","width")},Cu={set:Qu("cy","height")},_u={set:ju({resetOffset:!0})},Iu={set:ju({resetOffset:!1})},Eu={set:Nu({resetOffset:!0})},ku={set:Nu({resetOffset:!1})},Su=bu,Bu=_u,Mu=Eu,Tu=fu,Ou=du,Du=mu,Pu=vu;
// if `refX` is in [0, 1] then `refX` is a fraction of bounding box width
// if `refX` is < 0 then `refX`'s absolute values is the right coordinate of the bounding box
// otherwise, `refX` is the left coordinate of the bounding box
// utils
// -----
function Lu(e,t,n){return(r,{refBBox:a})=>{if(null==r)return null;let o=parseFloat(r);const s=i.isPercentage(r);let c;if(s&&(o/=100),Number.isFinite(o)){const r=a[n];c=s||o>0&&o<1?r[e]+a[t]*o:r[e]+o}const l=new gr;return l[e]=c||0,l}}function Qu(e,t){return(n,{refBBox:r})=>{let a=parseFloat(n);const o=i.isPercentage(n);o&&(a/=100);const s={};if(Number.isFinite(a)){const n=o||a>=0&&a<=1?a*r[t]:Math.max(a+r[t],0);s[e]=n}return s}}function Ru(e,t){const n="x6-shape",r=t&&t.resetOffset;return(t,{elem:i,refBBox:a})=>{let o=h.data(i,n);if(!o||o.value!==t){
// only recalculate if value has changed
const r=e(t);o={value:t,shape:r,shapeBBox:r.bbox()},h.data(i,n,o)}const s=o.shape.clone(),c=o.shapeBBox.clone(),l=c.getOrigin(),u=a.getOrigin();c.x=u.x,c.y=u.y;const f=a.getMaxScaleToFit(c,u),d=0===c.width||0===a.width?1:f.sx,p=0===c.height||0===a.height?1:f.sy;
// `maxRectScaleToFit` can give Infinity if width or height is 0
return s.scale(d,p,l),r&&s.translate(-l.x,-l.y),s}}
// `d` attribute for SVGPaths
function ju(e){const t=Ru((function(e){return Rr.parse(e)}),e);return(e,n)=>({d:t(e,n).serialize()})}
// `points` attribute for SVGPolylines and SVGPolygons
function Nu(e){const t=Ru((e=>new Cr(e)),e);return(e,n)=>({points:t(e,n).serialize()})}
//# sourceMappingURL=ref.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/fill.js
const Fu={qualify:l.isPlainObject,set:(e,{view:t})=>`url(#${t.graph.defineGradient(e)})`},zu={qualify:l.isPlainObject,set(e,{view:t}){const n=t.cell,r=Object.assign({},e);if(n.isEdge()&&"linearGradient"===r.type){const e=t,i=e.sourcePoint,a=e.targetPoint;r.id=`gradient-${r.type}-${n.id}`,r.attrs=Object.assign(Object.assign({},r.attrs),{x1:i.x,y1:i.y,x2:a.x,y2:a.y,gradientUnits:"userSpaceOnUse"}),t.graph.defs.remove(r.id)}return`url(#${t.graph.defineGradient(r)})`}},Hu={qualify:(e,{attrs:t})=>null==t.textWrap||!l.isPlainObject(t.textWrap),set(e,{view:t,elem:n,attrs:r}){const i="x6-text",a=h.data(n,i),o=e=>{try{return JSON.parse(e)}catch(t){return e}},s={x:r.x,eol:r.eol,annotations:o(r.annotations),textPath:o(r["text-path"]||r.textPath),textVerticalAnchor:r["text-vertical-anchor"]||r.textVerticalAnchor,displayEmpty:"true"===(r["display-empty"]||r.displayEmpty),lineHeight:r["line-height"]||r.lineHeight},c=r["font-size"]||r.fontSize,l=JSON.stringify([e,s]);
// Updates the text only if there was a change in the string
// or any of its attributes.
if(c&&n.setAttribute("font-size",c),null==a||a!==l){
// Text Along Path Selector
const r=s.textPath;if(null!=r&&"object"==typeof r){const e=r.selector;if("string"==typeof e){const n=t.find(e)[0];n instanceof SVGPathElement&&(h.ensureId(n),s.textPath=Object.assign({"xlink:href":`#${n.id}`},r))}}h.text(n,`${e}`,s),h.data(n,i,l)}}},Uu={qualify:l.isPlainObject,set(e,{view:t,elem:n,attrs:r,refBBox:a}){const o=e,c=o.width||0;
// option `width`
i.isPercentage(c)?a.width*=parseFloat(c)/100:c<=0?a.width+=c:a.width=c;
// option `height`
const l=o.height||0;
// option `text`
let u;i.isPercentage(l)?a.height*=parseFloat(l)/100:l<=0?a.height+=l:a.height=l;let f=o.text;null==f&&(
// the edge of the label is assigned to txt
f=r.text||(null==n?void 0:n.textContent)),u=null!=f?h.breakText(`${f}`,a,{"font-weight":r["font-weight"]||r.fontWeight,"font-size":r["font-size"]||r.fontSize,"font-family":r["font-family"]||r.fontFamily,lineHeight:r.lineHeight},{
// svgDocument: view.graph.view.svg,
ellipsis:o.ellipsis}):"",s.call(Hu.set,this,u,{view:t,elem:n,attrs:r,refBBox:a,cell:t.cell})}},Gu=(e,{attrs:t})=>void 0!==t.text,Vu={qualify:Gu},Wu={qualify:Gu},qu={qualify:Gu},Yu={qualify:Gu},Ku={qualify:Gu},$u={qualify:Gu},Ju={qualify:(e,{elem:t})=>t instanceof SVGElement,set(e,{elem:t}){const n="x6-title",r=`${e}`,i=h.data(t,n);if(null==i||i!==r){h.data(t,n,r);
// Generally SVGTitleElement should be the first child
// element of its parent.
const e=t.firstChild;if(e&&"TITLE"===e.tagName.toUpperCase()){e.textContent=r}else{
// Create a new title
const n=document.createElementNS(t.namespaceURI,"title");n.textContent=r,t.insertBefore(n,e)}}}},Xu={offset:th("x","width","right")},Zu={offset:th("y","height","bottom")},eh={offset:(e,{refBBox:t})=>e?{x:-t.x,y:-t.y}:{x:0,y:0}};
//# sourceMappingURL=fill.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/stroke.js
function th(e,t,n){return(r,{refBBox:a})=>{const o=new gr;let s;return s="middle"===r?a[t]/2:r===n?a[t]:"number"==typeof r&&Number.isFinite(r)?r>-1&&r<1?-a[t]*r:-r:i.isPercentage(r)?a[t]*parseFloat(r)/100:0,o[e]=-(a[e]+s),o}}
//# sourceMappingURL=align.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/style.js
const nh={qualify:l.isPlainObject,set(e,{elem:t}){h.css(t,e)}},rh={set(e,{elem:t}){t.innerHTML=`${e}`}},ih={qualify:l.isPlainObject,set:(e,{view:t})=>`url(#${t.graph.defineFilter(e)})`},ah={set:e=>null!=e&&"object"==typeof e&&e.id?e.id:e},oh=e=>{var{size:t,width:n,height:r,offset:i,open:a}=e;return ch({size:t,width:n,height:r,offset:i},!0===a,!0,void 0,M(e,["size","width","height","offset","open"]))},sh=e=>{var{size:t,width:n,height:r,offset:i,factor:a}=e;return ch({size:t,width:n,height:r,offset:i},!1,!1,a,M(e,["size","width","height","offset","factor"]))};
//# sourceMappingURL=style.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/html.js
function ch(e,t,n,r=3/4,a={}){const o=e.size||10,s=e.width||o,c=e.height||o,l=new Rr,u={};if(t)l.moveTo(s,0).lineTo(0,c/2).lineTo(s,c),u.fill="none";else{if(l.moveTo(0,c/2),l.lineTo(s,0),!n){const e=i.clamp(r,0,1);l.lineTo(s*e,c/2)}l.lineTo(s,c),l.close()}return Object.assign(Object.assign(Object.assign({},u),a),{tagName:"path",d:jr(l.serialize(),{x:null!=e.offset?e.offset:-s/2})})}
//# sourceMappingURL=classic.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/marker/diamond.js
const lh=e=>{var{size:t,width:n,height:r,offset:i}=e,a=M(e,["size","width","height","offset"]);const o=t||10,s=n||o,c=r||o,l=new Rr;return l.moveTo(0,c/2).lineTo(s/2,0).lineTo(s,c/2).lineTo(s/2,c).close(),Object.assign(Object.assign({},a),{tagName:"path",d:jr(l.serialize(),null==i?-s/2:i)})},uh=e=>{var{d:t,offsetX:n,offsetY:r}=e,i=M(e,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},i),{tagName:"path",d:jr(t,n,r)})},hh=e=>{var{size:t,width:n,height:r,offset:i}=e,a=M(e,["size","width","height","offset"]);const o=t||10,s=n||o,c=r||o,l=new Rr;return l.moveTo(0,0).lineTo(s,c).moveTo(0,c).lineTo(s,0),Object.assign(Object.assign({},a),{tagName:"path",fill:"none",d:jr(l.serialize(),i||-s/2)})},fh=e=>{var{width:t,height:n,offset:r,open:i,flip:a}=e,o=M(e,["width","height","offset","open","flip"]);let s=n||6;const c=t||10,l=!0===i,u=!0===a,h=Object.assign(Object.assign({},o),{tagName:"path"});u&&(s=-s);const f=new Rr;return f.moveTo(0,s).lineTo(c,0),l?h.fill="none":(f.lineTo(c,s),f.close()),h.d=jr(f.serialize(),{x:r||-c/2,y:s/2}),h},dh=e=>{var{r:t}=e,n=M(e,["r"]);const r=t||5;return Object.assign(Object.assign({cx:r},n),{tagName:"circle",r:r})},ph=e=>{var{r:t}=e,n=M(e,["r"]);const r=t||5,i=new Rr;return i.moveTo(r,0).lineTo(r,2*r),i.moveTo(0,r).lineTo(2*r,r),{children:[Object.assign(Object.assign({},dh({r:r})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:jr(i.serialize(),-r)})]}},gh=e=>{var{rx:t,ry:n}=e,r=M(e,["rx","ry"]);const i=t||5,a=n||5;return Object.assign(Object.assign({cx:i},r),{tagName:"ellipse",rx:i,ry:a})},mh=g,vh=uu.create({type:"marker"});
//# sourceMappingURL=diamond.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/marker/path.js
vh.register(mh,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/marker.js
function yh(e){return"string"==typeof e||l.isPlainObject(e)}const Ah={qualify:yh,set:(e,{view:t,attrs:n})=>xh("marker-start",e,t,n)},bh={qualify:yh,set:(e,{view:t,attrs:n})=>xh("marker-end",e,t,n,{transform:"rotate(180)"})},wh={qualify:yh,set:(e,{view:t,attrs:n})=>xh("marker-mid",e,t,n)};function xh(e,t,n,r,i={}){const a="string"==typeof t?{name:t}:t,{name:o,args:s}=a,c=M(a,["name","args"]);let l=c;if(o&&"string"==typeof o){const e=vh.get(o);if(!e)return vh.onNotFound(o);l=e(Object.assign(Object.assign({},c),s))}const u=Object.assign(Object.assign(Object.assign({},function(e,t){const n={},r=e.stroke;
// The context 'fill' is disregared here. The usual case is to use the
// marker with a connection(for which 'fill' attribute is set to 'none').
"string"==typeof r&&(n.stroke=r,n.fill=r);if("marker-mid"!==t){const r=parseFloat(e.strokeWidth||e["stroke-width"]);if(Number.isFinite(r)&&r>1){const e=Math.ceil(r/2);n.refX="marker-start"===t?e:-e}}return n}
//# sourceMappingURL=marker.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/connection.js
(r,e)),i),l);return{[e]:`url(#${n.graph.defineMarker(u)})`}}const Ch=(e,{view:t})=>t.cell.isEdge(),_h={qualify:Ch,set(e,t){var n,r,i,a;const o=t.view,s=e.reverse||!1,c=e.stubs||0;let l;if(Number.isFinite(c)&&0!==c)if(s){let e,t;const s=o.getConnectionLength()||0;c<0?(e=(s+c)/2,t=-c):(e=c,t=s-2*c);const u=o.getConnection();l=null===(a=null===(i=null===(r=null===(n=null==u?void 0:u.divideAtLength(e))||void 0===n?void 0:n[1])||void 0===r?void 0:r.divideAtLength(t))||void 0===i?void 0:i[0])||void 0===a?void 0:a.serialize()}else{let e;if(c<0){e=((o.getConnectionLength()||0)+c)/2}else e=c;const t=o.getConnection();if(t){const n=t.divideAtLength(e),r=t.divideAtLength(-e);n&&r&&(l=`${n[0].serialize()} ${r[1].serialize()}`)}}return{d:l||o.getConnectionPathData()}}},Ih={qualify:Ch,set:Th("getTangentAtLength",{rotate:!0})},Eh={qualify:Ch,set:Th("getTangentAtLength",{rotate:!1})},kh={qualify:Ch,set:Th("getTangentAtRatio",{rotate:!0})},Sh={qualify:Ch,set:Th("getTangentAtRatio",{rotate:!1})},Bh=Ih,Mh=kh;
// utils
// -----
function Th(e,t){const n={x:1,y:0};return(r,i)=>{let a,o;const s=i.view,c=s[e](Number(r));return c?(o=t.rotate?c.vector().vectorAngle(n):0,a=c.start):(a=s.path.start,o=0),0===o||Number.isNaN(o)?{transform:`translate(${a.x},${a.y})`}:{transform:`translate(${a.x},${a.y}) rotate(${o})`}}}
//# sourceMappingURL=connection.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/raw.js
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/attr/index.js
function Oh(e,t,n){if(null!=e){if("string"==typeof e)return!0;if("function"!=typeof e.qualify||s.call(e.qualify,this,t,n))return!0}return!1}const Dh=Object.assign(Object.assign({},{xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"}),m),Ph=uu.create({type:"attribute definition"});Ph.register(Dh,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/background/flip-x.js
const Lh=e=>{
// d b
// d b
const t=document.createElement("canvas"),n=e.width,r=e.height;t.width=2*n,t.height=r;const i=t.getContext("2d");
// left image
return i.drawImage(e,0,0,n,r),
// flipped right image
i.translate(2*n,0),i.scale(-1,1),i.drawImage(e,0,0,n,r),t},Qh=e=>{
// d d
// q q
const t=document.createElement("canvas"),n=e.width,r=e.height;t.width=n,t.height=2*r;const i=t.getContext("2d");
// top image
return i.drawImage(e,0,0,n,r),
// flipped bottom image
i.translate(0,2*r),i.scale(1,-1),i.drawImage(e,0,0,n,r),t},Rh=e=>{
// d b
// q p
const t=document.createElement("canvas"),n=e.width,r=e.height;t.width=2*n,t.height=2*r;const i=t.getContext("2d");
// top-left image
return i.drawImage(e,0,0,n,r),
// xy-flipped bottom-right image
i.setTransform(-1,0,0,-1,t.width,t.height),i.drawImage(e,0,0,n,r),
// x-flipped top-right image
i.setTransform(-1,0,0,1,t.width,0),i.drawImage(e,0,0,n,r),
// y-flipped bottom-left image
i.setTransform(1,0,0,-1,0,t.height),i.drawImage(e,0,0,n,r),t},jh=(e,t)=>{const n=e.width,r=e.height,i=document.createElement("canvas");i.width=3*n,i.height=3*r;const a=i.getContext("2d"),o=null!=t.angle?-t.angle:-20,s=or(o),c=i.width/4,l=i.height/4;for(let t=0;t<4;t+=1)for(let i=0;i<4;i+=1)(t+i)%2>0&&(a.setTransform(1,0,0,1,(2*t-1)*c,(2*i-1)*l),a.rotate(s),a.drawImage(e,-n/2,-r/2,n,r));return i},Nh=Object.assign({},v);
//# sourceMappingURL=flip-x.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/background/flip-y.js
Nh["flip-x"]=Lh,Nh["flip-y"]=Qh,Nh["flip-xy"]=Rh;const Fh=uu.create({type:"background pattern"});
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-point/util.js
function zh(e,t,n){let r;if("object"==typeof n){if(Number.isFinite(n.y)){const r=new vr(t,e),{start:i,end:a}=r.parallel(n.y);t=i,// eslint-disable-line
e=a}r=n.x}else r=n;if(null==r||!Number.isFinite(r))return e;const i=e.distance(t);return 0===r&&i>0?e:e.move(t,-Math.min(r,i-1))}function Hh(e){const t=e.getAttribute("stroke-width");return null===t?0:parseFloat(t)||0}Fh.register(Nh,!0);
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-point/bbox.js
/**
 * Places the connection point at the intersection between the edge
 * path end segment and the target node bbox.
 */
const Uh=(e,t,n,r)=>{const i=t.getBBoxOfElement(n);r.stroked&&i.inflate(Hh(n)/2);const a=e.intersect(i);return zh(a&&a.length?e.start.closest(a):e.end,e.start,r.offset)},Gh=function(e,t,n,r,i){const a=t.cell,o=a.isNode()?a.getAngle():0;if(0===o)return s.call(Uh,this,e,t,n,r,i);const c=t.getUnrotatedBBoxOfElement(n);r.stroked&&c.inflate(Hh(n)/2);const l=c.getCenter(),u=e.clone().rotate(o,l),h=u.setLength(1e6).intersect(c);return zh(h&&h.length?u.start.closest(h).rotate(-o,l):e.end,e.start,r.offset)},Vh=(e,t,n,r)=>{let i,a;const o=e.end,s=r.selector;if(i="string"==typeof s?t.findOne(s):Array.isArray(s)?l.getByPath(n,s):function(e){if(null==e)return null;let t=e;do{let e=t.tagName;if("string"!=typeof e)return null;if(e=e.toUpperCase(),"G"===e)t=t.firstElementChild;else{if("TITLE"!==e)break;t=t.nextElementSibling}}while(t);return t}(n),!h.isSVGGraphicsElement(i)){if(i===n||!h.isSVGGraphicsElement(n))return o;i=n}const c=t.getShapeOfElement(i),u=t.getMatrixOfElement(i),d=t.getRootTranslatedMatrix(),p=t.getRootRotatedMatrix(),g=d.multiply(p).multiply(u),m=g.inverse(),v=f.transformLine(e,m),y=v.start.clone(),A=t.getDataOfElement(i);if(!1===r.insideout){null==A.shapeBBox&&(A.shapeBBox=c.bbox());const e=A.shapeBBox;if(null!=e&&e.containsPoint(y))return o}
// Caching segment subdivisions for paths
let b;if(!0===r.extrapolate&&v.setLength(1e6),Rr.isPath(c)){const e=r.precision||2;null==A.segmentSubdivisions&&(A.segmentSubdivisions=c.getSegmentSubdivisions({precision:e})),b={precision:e,segmentSubdivisions:A.segmentSubdivisions},a=v.intersect(c,b)}else a=v.intersect(c);a?Array.isArray(a)&&(a=y.closest(a)):!0===r.sticky&&(
// No intersection, find the closest point instead
a=mr.isRectangle(c)?c.getNearestPointToPoint(y):yr.isEllipse(c)?c.intersectsWithLineFromCenterToPoint(y):c.closestPoint(y,b));const w=a?f.transformPoint(a,g):o;let x=r.offset||0;return!1!==r.stroked&&("object"==typeof x?(x=Object.assign({},x),null==x.x&&(x.x=0),x.x+=Hh(i)/2):x+=Hh(i)/2),zh(w,e.start,x)};
//# sourceMappingURL=bbox.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-point/rect.js
/**
 * Places the connection point at the intersection between the
 * link path end segment and the element's unrotated bbox.
 */
/**
 * Places the connection point at the edge's endpoint.
 */
const Wh=(e,t,n,r)=>{const{alignOffset:i,align:a}=r;return a&&
//# sourceMappingURL=boundary.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-point/anchor.js
function(e,t,n=0){const{start:r,end:i}=e;let a,o,s,c;switch(t){case"left":c="x",a=i,o=r,s=-1;break;case"right":c="x",a=r,o=i,s=1;break;case"top":c="y",a=i,o=r,s=-1;break;case"bottom":c="y",a=r,o=i,s=1;break;default:return}r[c]<i[c]?a[c]=o[c]:o[c]=a[c],Number.isFinite(n)&&(a[c]+=s*n,o[c]+=s*n)}(e,a,i),zh(e.end,e.start,r.offset)},qh=y,Yh=uu.create({type:"connection point"});
//# sourceMappingURL=anchor.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-point/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-point/index.js
Yh.register(qh,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connector/jumpover.js
/* eslint-disable no-underscore-dangle */
// takes care of math. error for case when jump is too close to end of line
const Kh=1/3,$h=2/3;let Jh=[],Xh=[];function Zh(e,t,n=[]){const r=[e,...n,t],i=[];return r.forEach(((e,t)=>{const n=r[t+1];null!=n&&i.push(new vr(e,n))})),i}function ef(e,t){return new vr(e,t).squaredLength()}
/**
 * Split input line into multiple based on intersection points.
 */function tf(e,t,n,r){const i=new Rr;let a;
// first move to the start of a first line
return a=Rr.createSegment("M",e[0].start),i.appendSegment(a),e.forEach(((o,s)=>{if(Jh.includes(o)){let e,r,s,c;if("arc"===n){
// approximates semicircle with 2 curves
e=-90,
// determine rotation of arc based on difference between points
r=o.start.diff(o.end);(r.x<0||0===r.x&&r.y<0)&&(e+=180);const t=o.getCenter(),n=new vr(t,o.end).rotate(e,t);let l;
// first half
l=new vr(o.start,t),s=l.pointAt(2/3).rotate(e,o.start),c=n.pointAt(1/3).rotate(-e,n.end),a=Rr.createSegment("C",s,c,n.end),i.appendSegment(a),
// second half
l=new vr(t,o.end),s=n.pointAt(1/3).rotate(e,n.end),c=l.pointAt(1/3).rotate(-e,o.end),a=Rr.createSegment("C",s,c,o.end),i.appendSegment(a)}else if("gap"===n)a=Rr.createSegment("M",o.end),i.appendSegment(a);else if("cubic"===n){
// approximates semicircle with 1 curve
e=o.start.theta(o.end);const n=.6*t;let l=1.35*t;
// determine rotation of arc based on difference between points
r=o.start.diff(o.end);(r.x<0||0===r.x&&r.y<0)&&(l*=-1),s=new gr(o.start.x+n,o.start.y+l).rotate(e,o.start),c=new gr(o.end.x-n,o.end.y+l).rotate(e,o.end),a=Rr.createSegment("C",s,c,o.end),i.appendSegment(a)}}else{const t=e[s+1];0===r||!t||Jh.includes(t)?(a=Rr.createSegment("L",o.end),i.appendSegment(a)):function(e,t,n,r,i){const a=n.distance(r)/2,o=n.distance(i)/2,s=-Math.min(e,a),c=-Math.min(e,o),l=n.clone().move(r,s).round(),u=n.clone().move(i,c).round(),h=new gr(Kh*l.x+$h*n.x,$h*n.y+Kh*l.y),f=new gr(Kh*u.x+$h*n.x,$h*n.y+Kh*u.y);let d;d=Rr.createSegment("L",l),t.appendSegment(d),d=Rr.createSegment("C",h,f,u),t.appendSegment(d)}(r,i,o.end,o.start,t.end)}})),i}const nf=function(e,t,n,r={}){Jh=[],Xh=[],function(e){let t=e.graph._jumpOverUpdateList;
// first time setup for this paper
// add this link to a list so it can be updated when some other link is updated
if(null==t&&(t=e.graph._jumpOverUpdateList=[],e.graph.on("cell:mouseup",(()=>{const t=e.graph._jumpOverUpdateList;
// add timeout to wait for the target node to be connected
// fix https://github.com/antvis/X6/issues/3387
setTimeout((()=>{for(let e=0;e<t.length;e+=1)t[e].update()}))})),e.graph.on("model:reseted",(()=>{t=e.graph._jumpOverUpdateList=[]}))),t.indexOf(e)<0){t.push(e);
// watch for change of connector type or removal of link itself
// to remove the link from a list of jump over connectors
const n=()=>t.splice(t.indexOf(e),1);e.cell.once("change:connector",n),e.cell.once("removed",n)}}(this);const i=r.size||5,a=r.type||"arc",o=r.radius||0,s=r.ignoreConnectors||["smooth"],c=this.graph,l=c.model.getEdges();
// there is just one link, draw it directly
if(1===l.length)return tf(Zh(e,t,n),i,a,o);const u=this.cell,h=l.indexOf(u),f=c.options.connecting.connector||{},d=l.filter(((e,t)=>{const n=e.getConnector()||f;
// avoid jumping over links with connector type listed in `ignored connectors`.
return!s.includes(n.name)&&(
// filter out links that are above this one and  have the same connector type
// otherwise there would double hoops for each intersection
!(t>h)||"jumpover"!==n.name)})),p=d.map((e=>c.findViewByCell(e))),g=Zh(e,t,n),m=p.map((e=>null==e?[]:e===this?g:Zh(e.sourcePoint,e.targetPoint,e.routePoints))),v=[];g.forEach((e=>{
// iterate all links and grab the intersections with this line
// these are then sorted by distance so the line can be split more easily
const t=d.reduce(((t,n,r)=>{
// don't intersection with itself
if(n!==u){const n=function(e,t){const n=[];return t.forEach((t=>{const r=e.intersectsWithLine(t);if(r){const{x:e,y:i}=r,{start:a,end:o}=t,s=Math.round(a.x)===Math.round(e)&&Math.round(a.y)===Math.round(i),c=Math.round(o.x)===Math.round(e)&&Math.round(o.y)===Math.round(i);
// If the starting or ending point is the same as the intersection point, return
if(s||c)return;n.push(r)}})),n}(e,m[r]);t.push(...n)}return t}),[]).sort(((t,n)=>ef(e.start,t)-ef(e.start,n)));t.length>0?
// split the line based on found intersection points
v.push(...function(e,t,n){return t.reduce(((r,i,a)=>{
// skipping points that were merged with the previous line
// to make bigger arc over multiple lines that are close to each other
if(Xh.includes(i))return r;
// always grab the last line from buffer and modify it
const o=r.pop()||e,s=gr.create(i).move(o.start,-n);
// calculate start and end of jump by moving by a given size of jump
let c=gr.create(i).move(o.start,+n);
// now try to look at the next intersection point
const l=t[a+1];if(null!=l){const e=c.distance(l);e<=n&&(
// next point is close enough, move the jump end by this
// difference and mark the next point to be skipped
c=l.move(o.start,e),Xh.push(l))}else
// if the end is too close to possible jump, draw remaining line instead of a jump
if(s.distance(o.end)<2*n+1)return r.push(o),r;if(c.distance(o.start)<2*n+1)
// if the start of line is too close to jump, draw that line instead of a jump
return r.push(o),r;
// finally create a jump line
const u=new vr(s,c);
// it's just simple line but with a `isJump` property
return Jh.push(u),r.push(new vr(o.start,s),u,new vr(c,o.end)),r}),[])}(e,t,i)):
// without any intersection the line goes uninterrupted
v.push(e)}));const y=tf(v,i,a,o);return Jh=[],Xh=[],r.raw?y:y.serialize()},rf=(e,t,n,r={})=>{const i=3===n.length?0:1,a=gr.create(n[0+i]),o=gr.create(n[2+i]),s=gr.create(n[1+i]);if(!gr.equals(e,t)){const n=new gr((e.x+t.x)/2,(e.y+t.y)/2),r=n.angleBetween(gr.create(e).rotate(90,n),s);r>1&&(a.rotate(180-r,n),o.rotate(180-r,n),s.rotate(180-r,n))}const c=`\n     M ${e.x} ${e.y}\n     Q ${a.x} ${a.y} ${s.x} ${s.y}\n     Q ${o.x} ${o.y} ${t.x} ${t.y}\n  `;return r.raw?Rr.parse(c):c},af=(e,t,n,r={})=>{const i=[e,...n,t],a=new Cr(i),o=new Rr(a);return r.raw?o:o.serialize()},of=(e,t,n,r={})=>{const i=new Rr;i.appendSegment(Rr.createSegment("M",e));const a=1/3,o=2/3,s=r.radius||10;let c,l;for(let r=0,u=n.length;r<u;r+=1){const u=gr.create(n[r]),h=n[r-1]||e,f=n[r+1]||t;c=l||u.distance(h)/2,l=u.distance(f)/2;const d=-Math.min(s,c),p=-Math.min(s,l),g=u.clone().move(h,d).round(),m=u.clone().move(f,p).round(),v=new gr(a*g.x+o*u.x,o*u.y+a*g.y),y=new gr(a*m.x+o*u.x,o*u.y+a*m.y);i.appendSegment(Rr.createSegment("L",g)),i.appendSegment(Rr.createSegment("C",v,y,m))}return i.appendSegment(Rr.createSegment("L",t)),r.raw?i:i.serialize()},sf=(e,t,n,r={})=>{let i,a=r.direction;if(n&&0!==n.length){const r=[e,...n,t],a=_r.throughPoints(r);i=new Rr(a)}else if(
// If we have no route, use a default cubic bezier curve, cubic bezier
// requires two control points, the control points have `x` midway
// between source and target. This produces an S-like curve.
i=new Rr,i.appendSegment(Rr.createSegment("M",e)),a||(a=Math.abs(e.x-t.x)>=Math.abs(e.y-t.y)?"H":"V"),"H"===a){const n=(e.x+t.x)/2;i.appendSegment(Rr.createSegment("C",n,e.y,n,t.y,t.x,t.y))}else{const n=(e.y+t.y)/2;i.appendSegment(Rr.createSegment("C",e.x,n,t.x,n,t.x,t.y))}return r.raw?i:i.serialize()},cf=A,lf=uu.create({type:"connector"});
//# sourceMappingURL=jumpover.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connector/loop.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/node-anchor/util.js
// eslint-disable-next-line
function uf(e){return function(t,n,r,i){if(r instanceof Element){const a=this.graph.findViewByElem(r);let o;if(a)if(a.isEdgeElement(r)){o=hf(a,null!=i.fixedAt?i.fixedAt:"50%")}else o=a.getBBoxOfElement(r).getCenter();else o=new gr;return e.call(this,t,n,o,i)}return e.apply(this,arguments);// eslint-disable-line
}}function hf(e,t){const n=i.isPercentage(t),r="string"==typeof t?parseFloat(t):t;return n?e.getPointAtRatio(r/100):e.getPointAtLength(r)}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/edge-anchor/closest.js
lf.register(cf,!0);const ff=(e,t,n,r)=>{const i=e.getClosestPoint(n);return null!=i?i:new gr},df=uf(ff),pf=(e,t,n,r)=>{const i=null!=r.length?r.length:20;return e.getPointAtLength(i)},gf=uf((function(e,t,n,r){const i=1e6,a=e.getConnection(),o=e.getConnectionSubdivisions(),c=new vr(n.clone().translate(0,i),n.clone().translate(0,-i)),l=new vr(n.clone().translate(i,0),n.clone().translate(-i,0)),u=c.intersect(a,{segmentSubdivisions:o}),h=l.intersect(a,{segmentSubdivisions:o}),f=[];return u&&f.push(...u),h&&f.push(...h),f.length>0?n.closest(f):null!=r.fallbackAt?hf(e,r.fallbackAt):s.call(ff,this,e,t,n,r)})),mf=(e,t,n,r)=>{let i=null!=r.ratio?r.ratio:.5;return i>1&&(i/=100),e.getPointAtRatio(i)},vf=b,yf=uu.create({type:"edge endpoint"});
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/util.js
function Af(e,t){return null!=e?e:t}function bf(e,t){return null!=e&&Number.isFinite(e)?e:t}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/outline.js
function wf(e={}){const t=Af(e.color,"blue"),n=bf(e.width,1),r=bf(e.margin,2);return`\n    <filter>\n      <feFlood flood-color="${t}" flood-opacity="${bf(e.opacity,1)}" result="colored"/>\n      <feMorphology in="SourceAlpha" result="morphedOuter" operator="dilate" radius="${r+n}" />\n      <feMorphology in="SourceAlpha" result="morphedInner" operator="dilate" radius="${r}" />\n      <feComposite result="morphedOuterColored" in="colored" in2="morphedOuter" operator="in"/>\n      <feComposite operator="xor" in="morphedOuterColored" in2="morphedInner" result="outline"/>\n      <feMerge>\n        <feMergeNode in="outline"/>\n        <feMergeNode in="SourceGraphic"/>\n      </feMerge>\n    </filter>\n  `.trim()}
//# sourceMappingURL=outline.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/highlight.js
function xf(e={}){const t=Af(e.color,"red"),n=bf(e.blur,0),r=bf(e.width,1);return`\n      <filter>\n        <feFlood flood-color="${t}" flood-opacity="${bf(e.opacity,1)}" result="colored"/>\n        <feMorphology result="morphed" in="SourceGraphic" operator="dilate" radius="${r}"/>\n        <feComposite result="composed" in="colored" in2="morphed" operator="in"/>\n        <feGaussianBlur result="blured" in="composed" stdDeviation="${n}"/>\n        <feBlend in="SourceGraphic" in2="blured" mode="normal"/>\n      </filter>\n    `.trim()}
//# sourceMappingURL=highlight.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/blur.js
function Cf(e={}){const t=bf(e.x,2);return`\n    <filter>\n      <feGaussianBlur stdDeviation="${null!=e.y&&Number.isFinite(e.y)?[t,e.y]:t}"/>\n    </filter>\n  `.trim()}
//# sourceMappingURL=blur.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/drop-shadow.js
function _f(e={}){const t=bf(e.dx,0),n=bf(e.dy,0),r=Af(e.color,"black"),i=bf(e.blur,4),a=bf(e.opacity,1);return"SVGFEDropShadowElement"in window?`<filter>\n         <feDropShadow stdDeviation="${i}" dx="${t}" dy="${n}" flood-color="${r}" flood-opacity="${a}" />\n       </filter>`.trim():`<filter>\n         <feGaussianBlur in="SourceAlpha" stdDeviation="${i}" />\n         <feOffset dx="${t}" dy="${n}" result="offsetblur" />\n         <feFlood flood-color="${r}" />\n         <feComposite in2="offsetblur" operator="in" />\n         <feComponentTransfer>\n           <feFuncA type="linear" slope="${a}" />\n         </feComponentTransfer>\n         <feMerge>\n           <feMergeNode/>\n           <feMergeNode in="SourceGraphic"/>\n         </feMerge>\n       </filter>`.trim()}
//# sourceMappingURL=drop-shadow.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/gray-scale.js
function If(e={}){const t=bf(e.amount,1),n=.7152-.7152*(1-t);return`\n    <filter>\n      <feColorMatrix type="matrix" values="${.2126+.7874*(1-t)} ${n} ${.0722-.0722*(1-t)} 0 0 ${.2126-.2126*(1-t)} ${.7152+.2848*(1-t)} ${.0722-.0722*(1-t)} 0 0 ${.2126-.2126*(1-t)} ${n} ${.0722+.9278*(1-t)} 0 0 0 0 0 1 0"/>\n    </filter>\n  `.trim()}
//# sourceMappingURL=gray-scale.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/sepia.js
function Ef(e={}){const t=bf(e.amount,1);return`\n      <filter>\n        <feColorMatrix type="matrix" values="${.393+.607*(1-t)} ${.769-.769*(1-t)} ${.189-.189*(1-t)} 0 0 ${.349-.349*(1-t)} ${.686+.314*(1-t)} ${.168-.168*(1-t)} 0 0 ${.272-.272*(1-t)} ${.534-.534*(1-t)} ${.131+.869*(1-t)} 0 0 0 0 0 1 0"/>\n      </filter>\n    `.trim()}
//# sourceMappingURL=sepia.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/saturate.js
function kf(e={}){return`\n      <filter>\n        <feColorMatrix type="saturate" values="${1-bf(e.amount,1)}"/>\n      </filter>\n    `.trim()}
//# sourceMappingURL=saturate.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/hue-rotate.js
function Sf(e={}){return`\n      <filter>\n        <feColorMatrix type="hueRotate" values="${bf(e.angle,0)}"/>\n      </filter>\n    `.trim()}
//# sourceMappingURL=hue-rotate.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/invert.js
function Bf(e={}){const t=bf(e.amount,1),n=1-t;return`\n      <filter>\n        <feComponentTransfer>\n          <feFuncR type="table" tableValues="${t} ${n}"/>\n          <feFuncG type="table" tableValues="${t} ${n}"/>\n          <feFuncB type="table" tableValues="${t} ${n}"/>\n        </feComponentTransfer>\n      </filter>\n    `.trim()}
//# sourceMappingURL=invert.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/brightness.js
function Mf(e={}){const t=bf(e.amount,1);return`\n    <filter>\n      <feComponentTransfer>\n        <feFuncR type="linear" slope="${t}"/>\n        <feFuncG type="linear" slope="${t}"/>\n        <feFuncB type="linear" slope="${t}"/>\n      </feComponentTransfer>\n    </filter>\n  `.trim()}
//# sourceMappingURL=brightness.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/contrast.js
function Tf(e={}){const t=bf(e.amount,1),n=.5-t/2;return`\n    <filter>\n     <feComponentTransfer>\n        <feFuncR type="linear" slope="${t}" intercept="${n}"/>\n        <feFuncG type="linear" slope="${t}" intercept="${n}"/>\n        <feFuncB type="linear" slope="${t}" intercept="${n}"/>\n      </feComponentTransfer>\n    </filter>\n  `.trim()}
//# sourceMappingURL=contrast.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/filter/index.js
yf.register(vf,!0);const Of=w,Df=uu.create({type:"filter"});Df.register(Of,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/grid/dot.js
const Pf={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.thickness*t.sx,r=t.thickness*t.sy;h.attr(e,{width:n,height:r,rx:n,ry:r,fill:t.color})}},Lf={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.sx<=1?t.thickness*t.sx:t.thickness;h.attr(e,{width:n,height:n,rx:n,ry:n,fill:t.color})}},Qf={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const r=t.width,i=t.height,a=t.thickness;n=r-a>=0&&i-a>=0?["M",r,0,"H0 M0 0 V0",i].join(" "):"M 0 0 0 0",h.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},Rf=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const r=t.width,i=t.height,a=t.thickness;n=r-a>=0&&i-a>=0?["M",r,0,"H0 M0 0 V0",i].join(" "):"M 0 0 0 0",h.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(e,t){let n;const r=t.factor||1,i=t.width*r,a=t.height*r,o=t.thickness;n=i-o>=0&&a-o>=0?["M",i,0,"H0 M0 0 V0",a].join(" "):"M 0 0 0 0",
// update wrapper size
t.width=i,t.height=a,h.attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}}];
//# sourceMappingURL=dot.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/grid/fixed-dot.js
//# sourceMappingURL=double-mesh.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/grid/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/grid/index.js
class jf{constructor(){this.patterns={},this.root=Ss.create(h.createSvgDocument(),{width:"100%",height:"100%"},[h.createSvgElement("defs")]).node}add(e,t){const n=this.root.childNodes[0];n&&n.appendChild(t),this.patterns[e]=t,Ss.create("rect",{width:"100%",height:"100%",fill:`url(#${e})`}).appendTo(this.root)}get(e){return this.patterns[e]}has(e){return null!=this.patterns[e]}}const Nf=x,Ff=uu.create({type:"grid"});Ff.register(Nf,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/config/index.js
const zf={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix:e=>`${zf.prefixCls}-${e}`},Hf=zf.prefix("highlighted"),Uf={highlight(e,t,n){const r=n&&n.className||Hf;h.addClass(t,r)},unhighlight(e,t,n){const r=n&&n.className||Hf;h.removeClass(t,r)}},Gf=zf.prefix("highlight-opacity"),Vf={highlight(e,t){h.addClass(t,Gf)},unhighlight(e,t){h.removeClass(t,Gf)}},Wf={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},qf={highlight(e,t,n){const r=Yf(t,n);if(function(e){return null!=Kf[e]}(r))return;
// eslint-disable-next-line
n=l.defaultsDeep({},n,Wf);const i=Ss.create(t);let a,o;try{a=i.toPathData()}catch(e){
// Failed to get path data from magnet element.
// Draw a rectangle around the entire cell view instead.
o=f.bbox(i.node,!0),a=h.rectToPathData(Object.assign(Object.assign({},n),o))}const s=h.createSvgElement("path");
// const highlightVel = v.create('path').attr()
if(h.attr(s,Object.assign({d:a,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?h.kebablizeAttrs(n.attrs):null)),e.isEdgeElement(t))h.attr(s,"d",e.getConnectionPathData());else{let t=i.getTransformToElement(e.container);
// Add padding to the highlight element.
const r=n.padding;if(r){null==o&&(o=f.bbox(i.node,!0));const e=o.x+o.width/2,n=o.y+o.height/2;o=f.transformRectangle(o,t);const a=Math.max(o.width,1),s=Math.max(o.height,1),c=(a+r)/a,l=(s+r)/s,u=h.createSVGMatrix({a:c,b:0,c:0,d:l,e:e-c*e,f:n-l*n});t=t.multiply(u)}h.transform(s,t)}h.addClass(s,zf.prefix("highlight-stroke"));const c=e.cell,u=()=>$f(r);c.on("removed",u),c.model&&c.model.on("reseted",u),e.container.appendChild(s),function(e,t){Kf[e]=t}(r,s)},unhighlight(e,t,n){$f(Yf(t,n))}};
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/highlighter/class.js
function Yf(e,t){return h.ensureId(e),e.id+JSON.stringify(t)}const Kf={};function $f(e){const t=Kf[e];t&&(h.remove(t),delete Kf[e])}
//# sourceMappingURL=stroke.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/highlighter/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/highlighter/index.js
const Jf=C,Xf=uu.create({type:"highlighter"});Xf.register(Jf,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/node-anchor/bbox.js
const Zf=cd("center"),ed=cd("topCenter"),td=cd("bottomCenter"),nd=cd("leftMiddle"),rd=cd("rightMiddle"),id=cd("topLeft"),ad=cd("topRight"),od=cd("bottomLeft"),sd=cd("bottomRight");function cd(e){return(t,n,r,a={})=>{let o;o=t.cell.visible?a.rotate?t.getUnrotatedBBoxOfElement(n):t.getBBoxOfElement(n):t.cell.getBBox();const s=o[e];s.x+=i.normalizePercentage(a.dx,o.width),s.y+=i.normalizePercentage(a.dy,o.height);const c=t.cell;return a.rotate?s.rotate(-c.getAngle(),c.getBBox().getCenter()):s}}
//# sourceMappingURL=bbox.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/node-anchor/orth.js
const ld=uf(((e,t,n,r)=>{const i=sr(e.cell.getAngle()),a=e.cell.visible?e.getBBoxOfElement(t):e.cell.getBBox(),o=a.getCenter(),s=a.getTopLeft(),c=a.getBottomRight();let l=r.padding;if(Number.isFinite(l)||(l=0),s.y+l<=n.y&&n.y<=c.y-l){const e=n.y-o.y;o.x+=0===i||180===i?0:1*e/Math.tan(or(i)),o.y+=e}else if(s.x+l<=n.x&&n.x<=c.x-l){const e=n.x-o.x;o.y+=90===i||270===i?0:e*Math.tan(or(i)),o.x+=e}return o})),ud=function(e,t,n,r,i){const a=e.cell.getConnectionPoint(this.cell,i);return(r.dx||r.dy)&&a.translate(r.dx||0,r.dy||0),a},hd=uf(((e,t,n,r)=>{let i,a,o=0;const s=e.cell;r.rotate?(i=e.getUnrotatedBBoxOfElement(t),a=s.getBBox().getCenter(),o=s.getAngle()):i=s.visible?e.getBBoxOfElement(t):e.cell.getBBox();const c=r.padding;null!=c&&Number.isFinite(c)&&i.inflate(c),r.rotate&&n.rotate(o,a);const l=i.getNearestSideToPoint(n);let u;switch(l){case"left":u=i.getLeftMiddle();break;case"right":u=i.getRightMiddle();break;case"top":u=i.getTopCenter();break;case"bottom":u=i.getBottomCenter()}const h=r.direction;return"H"===h?"top"!==l&&"bottom"!==l||(u=n.x<=i.x+i.width?i.getLeftMiddle():i.getRightMiddle()):"V"===h&&(u=n.y<=i.y+i.height?i.getTopCenter():i.getBottomCenter()),r.rotate?u.rotate(-o,a):u})),fd=_,dd=uu.create({type:"node endpoint"});
/**
 * Tries to place the anchor of the edge inside the view bbox so that the
 * edge is made orthogonal. The anchor is placed along two line segments
 * inside the view bbox (between the centers of the top and bottom side and
 * between the centers of the left and right sides). If it is not possible
 * to place the anchor so that the edge would be orthogonal, the anchor is
 * placed at the center of the view bbox instead.
 */dd.register(fd,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-label-layout/util.js
const pd={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function gd(e,t){const{x:n,y:r,angle:i,attrs:a}=t||{};return l.defaultsDeep({},{angle:i,attrs:a,position:{x:n,y:r}},e,pd)}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-label-layout/side.js
const md=(e,t,n)=>gd({position:t.getTopLeft()},n),vd=(e,t,n)=>gd({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),yd=(e,t,n)=>gd({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),Ad=(e,t,n)=>gd({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n),bd=(e,t,n)=>gd({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n)
//# sourceMappingURL=side.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-label-layout/inout.js
,wd=(e,t,n)=>Id(e,t,!1,n),xd=(e,t,n)=>Id(e,t,!0,n),Cd=(e,t,n)=>Ed(e,t,!1,n),_d=(e,t,n)=>Ed(e,t,!0,n);function Id(e,t,n,r){const i=null!=r.offset?r.offset:15,a=t.getCenter().theta(e),o=kd(t);let s,c,l,u,h=0;return a<o[1]||a>o[2]?(s=".3em",c=i,l=0,u="start"):a<o[0]?(s="0",c=0,l=-i,n?(h=-90,u="start"):u="middle"):a<o[3]?(s=".3em",c=-i,l=0,u="end"):(s=".6em",c=0,l=i,n?(h=90,u="start"):u="middle"),gd({position:{x:Math.round(c),y:Math.round(l)},angle:h,attrs:{".":{y:s,"text-anchor":u}}},r)}function Ed(e,t,n,r){const i=null!=r.offset?r.offset:15,a=t.getCenter().theta(e),o=kd(t);let s,c,l,u,h=0;return a<o[1]||a>o[2]?(s=".3em",c=-i,l=0,u="end"):a<o[0]?(s=".6em",c=0,l=i,n?(h=90,u="start"):u="middle"):a<o[3]?(s=".3em",c=i,l=0,u="start"):(s="0em",c=0,l=-i,n?(h=-90,u="start"):u="middle"),gd({position:{x:Math.round(c),y:Math.round(l)},angle:h,attrs:{".":{y:s,"text-anchor":u}}},r)}function kd(e){const t=e.getCenter(),n=t.theta(e.getTopLeft()),r=t.theta(e.getBottomLeft()),i=t.theta(e.getBottomRight());return[n,t.theta(e.getTopRight()),i,r]}
//# sourceMappingURL=inout.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-label-layout/radial.js
const Sd=(e,t,n)=>Md(e.diff(t.getCenter()),!1,n),Bd=(e,t,n)=>Md(e.diff(t.getCenter()),!0,n);function Md(e,t,n){const r=null!=n.offset?n.offset:20,i=new gr(0,0),a=-e.theta(i);let o,s=".3em",c=a;return(a+90)%180==0?(o=t?"end":"middle",t||-270!==a||(s="0em")):a>-270&&a<-90?(o="start",c=a-180):o="end",gd({position:e.clone().move(i,r).diff(e).round().round().toJSON(),angle:t?c:0,attrs:{".":{y:s,"text-anchor":o}}},n)}
//# sourceMappingURL=radial.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-label-layout/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-label-layout/index.js
const Td=I,Od=uu.create({type:"port label layout"});
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-layout/util.js
function Dd(e,t={}){return new gr(i.normalizePercentage(t.x,e.width),i.normalizePercentage(t.y,e.height))}function Pd(e,t,n){return Object.assign({angle:t,position:e.toJSON()},n)}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-layout/absolute.js
Od.register(Td,!0);const Ld=(e,t)=>e.map((({x:e,y:n,angle:r})=>Pd(Dd(t,{x:e,y:n}),r||0))),Qd=(e,t,n)=>{const r=n.start||0,i=n.step||20;return jd(e,t,r,((e,t)=>(e+.5-t/2)*i))},Rd=(e,t,n)=>{const r=n.start||0,i=n.step||360/e.length;return jd(e,t,r,(e=>e*i))};
//# sourceMappingURL=absolute.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-layout/ellipse.js
function jd(e,t,n,r){const i=t.getCenter(),a=t.getTopCenter(),o=t.width/t.height,s=yr.fromRect(t),c=e.length;return e.map(((e,t)=>{const l=n+r(t,c),u=a.clone().rotate(-l,i).scale(o,1,i),h=e.compensateRotate?-s.tangentTheta(u):0;return(e.dx||e.dy)&&u.translate(e.dx||0,e.dy||0),e.dr&&u.move(i,e.dr),Pd(u.round(),h,e)}))}
//# sourceMappingURL=ellipse.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-layout/line.js
const Nd=(e,t,n)=>Gd(e,Dd(t,n.start||t.getOrigin()),Dd(t,n.end||t.getCorner()),n),Fd=(e,t,n)=>Gd(e,t.getTopLeft(),t.getBottomLeft(),n),zd=(e,t,n)=>Gd(e,t.getTopRight(),t.getBottomRight(),n),Hd=(e,t,n)=>Gd(e,t.getTopLeft(),t.getTopRight(),n),Ud=(e,t,n)=>Gd(e,t.getBottomLeft(),t.getBottomRight(),n);function Gd(e,t,n,r){const i=new vr(t,n),a=e.length;return e.map(((e,t)=>{var{strict:n}=e,o=M(e,["strict"]);const s=n||r.strict?(t+1)/(a+1):(t+.5)/a,c=i.pointAt(s);return(o.dx||o.dy)&&c.translate(o.dx||0,o.dy||0),Pd(c.round(),0,o)}))}
//# sourceMappingURL=line.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-layout/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/port-layout/index.js
const Vd=E,Wd=uu.create({type:"port layout"});Wd.register(Vd,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/normal.js
const qd=e=>[...e]
//# sourceMappingURL=normal.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/oneside.js
/**
 * Routes the edge always to/from a certain side
 */,Yd=(e,t,n)=>{const r=t.side||"bottom",a=i.normalizeSides(t.padding||40),o=n.sourceBBox,s=n.targetBBox,c=o.getCenter(),l=s.getCenter();let u,h,f;switch(r){case"top":f=-1,u="y",h="height";break;case"left":f=-1,u="x",h="width";break;case"right":f=1,u="x",h="width";break;default:f=1,u="y",h="height"}
// Move the points from the center of the element to outside of it.
return c[u]+=f*(o[h]/2+a[r]),l[u]+=f*(s[h]/2+a[r]),
// Make edge orthogonal (at least the first and last vertex).
f*(c[u]-l[u])>0?l[u]=c[u]:c[u]=l[u],[c.toJSON(),...e,l.toJSON()]};
//# sourceMappingURL=oneside.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/util.js
function Kd(e){return new mr(e.x,e.y,0,0)}function $d(e={}){const t=i.normalizeSides(e.padding||20);return{x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}function Jd(e,t={}){return e.sourceBBox.clone().moveAndExpand($d(t))}function Xd(e,t={}){return e.targetBBox.clone().moveAndExpand($d(t))}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/orth.js
/**
 * Returns a route with orthogonal line segments.
 */
const Zd=(e,t,n)=>{let r=Jd(n,t),i=Xd(n,t);const a=function(e,t={}){return e.sourceAnchor?e.sourceAnchor:Jd(e,t).getCenter()}(n,t),o=function(e,t={}){return e.targetAnchor?e.targetAnchor:Xd(e,t).getCenter()}(n,t);
// If anchor lies outside of bbox, the bbox expands to include it
r=r.union(Kd(a)),i=i.union(Kd(o));const s=e.map((e=>gr.create(e)));s.unshift(a),s.push(o);
// bearing of previous route segment
let c=null;const l=[];for(let e=0,n=s.length-1;e<n;e+=1){let a=null;const o=s[e],u=s[e+1],h=null!=ip(o,u);if(0===e)
// source
e+1===n?
// source -> target
// Expand one of the nodes by 1px to detect situations when the two
// nodes are positioned next to each other with no gap in between.
r.intersectsWithRect(i.clone().inflate(1))?a=lp(o,u,r,i):h||(a=cp(o,u,r,i)):
// source -> vertex
r.containsPoint(u)?a=lp(o,u,r,Kd(u).moveAndExpand($d(t))):h||(a=op(o,u,r));else if(e+1===n){
// vertex -> target
// prevent overlaps with previous line segment
const e=h&&ip(u,o)===c;i.containsPoint(o)||e?a=lp(o,u,Kd(o).moveAndExpand($d(t)),i,c):h||(a=sp(o,u,i,c))}else h||(
// vertex -> vertex
a=ap(o,u,c));
// set bearing for next iteration
a?(l.push(...a.points),c=a.direction):
// orthogonal route and not looped
c=ip(o,u),
// push `to` point to identified orthogonal vertices array
e+1<n&&l.push(u)}return l},ep={N:"S",S:"N",E:"W",W:"E"},tp={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};
/**
 * Bearing to opposite bearing map
 */
/**
 * Returns a point `p` where lines p,p1 and p,p2 are perpendicular
 * and p is not contained in the given box
 */
function np(e,t,n){let r=new gr(e.x,t.y);
// kept for reference
// if (bbox.containsPoint(p)) {
//   return null
// }
return n.containsPoint(r)&&(r=new gr(t.x,e.y)),r}
/**
 * Returns either width or height of a bbox based on the given bearing.
 */function rp(e,t){return e["W"===t||"E"===t?"width":"height"]}function ip(e,t){return e.x===t.x?e.y>t.y?"N":"S":e.y===t.y?e.x>t.x?"W":"E":null}function ap(e,t,n){const r=new gr(e.x,t.y),i=new gr(t.x,e.y),a=ip(e,r),o=ip(e,i),s=n?ep[n]:null,c=a===n||a!==s&&(o===s||o!==n)?r:i;return{points:[c],direction:ip(c,t)}}function op(e,t,n){const r=np(e,t,n);return{points:[r],direction:ip(r,t)}}function sp(e,t,n,i){const a=[new gr(e.x,t.y),new gr(t.x,e.y)],o=a.filter((e=>!n.containsPoint(e))),s=o.filter((t=>ip(t,e)!==i));let c;if(s.length>0)
// Try to pick a point which bears the same direction as the previous segment.
return c=s.filter((t=>ip(e,t)===i)).pop(),c=c||s[0],{points:[c],direction:ip(c,t)};{
// Here we found only points which are either contained in the element or they would create
// a link segment going in opposite direction from the previous one.
// We take the point inside element and move it outside the element in the direction the
// route is going. Now we can join this point with the current end (using freeJoin).
c=r.difference(a,o)[0];const s=gr.create(t).move(c,-rp(n,i)/2);return{points:[np(s,e,n),s],direction:ip(s,t)}}}function cp(e,t,n,r){let i=op(t,e,r);const a=i.points[0];if(n.containsPoint(a)){i=op(e,t,n);const o=i.points[0];if(r.containsPoint(o)){const s=gr.create(e).move(o,-rp(n,ip(e,o))/2),c=gr.create(t).move(a,-rp(r,ip(t,a))/2),l=new vr(s,c).getCenter(),u=op(e,l,n),h=ap(l,t,u.direction);i.points=[u.points[0],h.points[0]],i.direction=h.direction}}return i}
// Finds route for situations where one node is inside the other.
// Typically the route is directed outside the outer node first and
// then back towards the inner node.
function lp(e,t,n,r,i){const a=n.union(r).inflate(1),o=a.getCenter(),s=o.distance(t)>o.distance(e),c=s?t:e,l=s?e:t;
// start from the point which is closer to the boundary
let u,h,f,d;i?(
// Points on circle with radius equals 'W + H` are always outside the rectangle
// with width W and height H if the center of that circle is the center of that rectangle.
u=gr.fromPolar(a.width+a.height,tp[i],c),u=a.getNearestPointToPoint(u).move(u,-1)):u=a.getNearestPointToPoint(c).move(c,1),h=np(u,l,a),u.round().equals(h.round())?(h=gr.fromPolar(a.width+a.height,or(u.theta(c))+Math.PI/2,l),h=a.getNearestPointToPoint(h).move(l,1).round(),f=np(u,h,a),d=s?[h,f,u]:[u,f,h]):d=s?[h,u]:[u,h];return{points:d,direction:ip(s?u:h,t)}}
//# sourceMappingURL=orth.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/manhattan/options.js
const up={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeNodes:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){return hp(this.step,this)},directions(){const e=hp(this.step,this),t=hp(this.cost,this);return[{cost:t,offsetX:e,offsetY:0},{cost:t,offsetX:-e,offsetY:0},{cost:t,offsetX:0,offsetY:e},{cost:t,offsetX:0,offsetY:-e}]},penalties(){const e=hp(this.step,this);return{0:0,45:e/2,90:e/2}},paddingBox(){const e=hp(this.step,this);return{x:-e,y:-e,width:2*e,height:2*e}},fallbackRouter:Zd,draggingRouter:null,snapToGrid:!0};function hp(e,t){return"function"==typeof e?e.call(t):e}
//# sourceMappingURL=options.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/manhattan/obstacle-map.js
/**
 * Helper structure to identify whether a point lies inside an obstacle.
 */
class fp{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}
/**
     * Builds a map of all nodes for quicker obstacle queries i.e. is a point
     * contained in any obstacle?
     *
     * A simplified grid search.
     */build(e,t){const n=this.options,i=n.excludeTerminals.reduce(((n,r)=>{const i=t[r];if(i){const t=e.getCell(i.cell);t&&n.push(t)}return n}),[]);
// source or target node could be excluded from set of obstacles
let a=[];const o=e.getCell(t.getSourceCellId());o&&(a=r.union(a,o.getAncestors().map((e=>e.id))));const s=e.getCell(t.getTargetCellId());s&&(a=r.union(a,s.getAncestors().map((e=>e.id))));
// The graph is divided into smaller cells, where each holds information
// about which node belong to it. When we query whether a point lies
// inside an obstacle we don't need to go through all obstacles, we check
// only those in a particular cell.
const c=this.mapGridSize;return e.getNodes().reduce(((e,t)=>{const r=i.some((e=>e.id===t.id)),o=!!t.shape&&n.excludeShapes.includes(t.shape),s=n.excludeNodes.some((e=>"string"==typeof e?t.id===e:e===t)),l=a.includes(t.id),u=o||r||s||l;if(t.isVisible()&&!u){const r=t.getBBox().moveAndExpand(n.paddingBox),i=r.getOrigin().snapToGrid(c),a=r.getCorner().snapToGrid(c);for(let t=i.x;t<=a.x;t+=c)for(let n=i.y;n<=a.y;n+=c){const i=new gr(t,n).toString();null==e[i]&&(e[i]=[]),e[i].push(r)}}return e}),this.map),this}isAccessible(e){const t=e.clone().snapToGrid(this.mapGridSize).toString(),n=this.map[t];return!n||n.every((t=>!t.containsPoint(e)))}}
//# sourceMappingURL=obstacle-map.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/manhattan/sorted-set.js
class dp{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?
// item removal
this.items.splice(this.items.indexOf(e),1):this.hash[e]=1,this.values[e]=t;const n=r.sortedIndexBy(this.items,e,(e=>this.values[e]));this.items.splice(n,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=2),e}isOpen(e){return 1===this.hash[e]}isClose(e){return 2===this.hash[e]}isEmpty(){return 0===this.items.length}}
//# sourceMappingURL=sorted-set.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/manhattan/util.js
function pp(e,t){const n=e.sourceBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function gp(e,t){const n=e.targetBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function mp(e,t){if(e.sourceAnchor)return e.sourceAnchor;return pp(e,t).getCenter()}
// returns a direction index from start point to end point
// corrects for grid deformation between start and end
function vp(e,t,n,r,i){const a=360/n,o=e.theta(function(e,t,n,r){const i=r.step,a=t.x-e.x,o=t.y-e.y,s=a/n.x,c=o/n.y,l=s*i,u=c*i;return new gr(e.x+l,e.y+u)}
/**
 * Returns the change in direction between two direction angles.
 */(e,t,r,i)),s=sr(o+a/2);return a*Math.floor(s/a)}function yp(e,t){const n=Math.abs(e-t);return n>180?360-n:n}
// fix direction offsets according to current grid
function Ap(e,t){
// return step if diff = 0
if(!e)return t;const n=Math.abs(e),r=Math.round(n/t);
// return `abs` if less than one step apart
if(!r)return n;
// otherwise, return corrected step
return t+(n-r*t)/r}function bp(e,t){return e.round(t)}function wp(e,t,n){return bp(function(e,t){const n=t.source,r=hr(e.x-n.x,t.x)+n.x,i=hr(e.y-n.y,t.y)+n.y;return new gr(r,i)}(e.clone(),t),n)}function xp(e){return e.toString()}function Cp(e){return new gr(0===e.x?0:Math.abs(e.x)/e.x,0===e.y?0:Math.abs(e.y)/e.y)}function _p(e,t){let n=1/0;for(let r=0,i=t.length;r<i;r+=1){const i=e.manhattanDistance(t[r]);i<n&&(n=i)}return n}
// Find points around the bbox taking given directions into account
// lines are drawn from anchor in given directions, intersections recorded
// if anchor is outside bbox, only those directions that intersect get a rect point
// the anchor itself is returned as rect point (representing some directions)
// (since those directions are unobstructed by the bbox)
function Ip(e,t,n,r,i){const a=i.precision,o=i.directionMap,s=e.diff(t.getCenter()),c=Object.keys(o).reduce(((i,c)=>{if(n.includes(c)){const n=o[c],l=new gr(e.x+n.x*(Math.abs(s.x)+t.width),e.y+n.y*(Math.abs(s.y)+t.height)),u=new vr(e,l).intersect(t)||[];
// Create a line that is guaranteed to intersect the bbox if bbox
// is in the direction even if anchor lies outside of bbox.
let h,f=null;for(let t=0;t<u.length;t+=1){const n=u[t],r=e.squaredDistance(n);(null==h||r>h)&&(h=r,f=n)}
// If an intersection was found in this direction, it is our rectPoint
if(f){let e=wp(f,r,a);
// If the rectPoint lies inside the bbox, offset it by one more step
t.containsPoint(e)&&(e=wp(e.translate(n.x*r.x,n.y*r.y),r,a)),i.push(e)}}return i}),[]);
// if anchor lies outside of bbox, add it to the array of points
return t.containsPoint(e)||c.push(wp(e,r,a)),c}
// reconstructs a route by concatenating points with their parents
function Ep(e,t,n,r,i){const a=[];let o,s=Cp(i.diff(n)),c=xp(n),l=e[c];
// tailPoint is assumed to be aligned already
for(;l;){
// point is assumed to be aligned already
o=t[c];const n=Cp(o.diff(l));n.equals(s)||(a.unshift(o),s=n),
// parent is assumed to be aligned already
c=xp(l),l=e[c]}
// leadPoint is assumed to be aligned already
const u=t[c];return Cp(u.diff(r)).equals(s)||a.unshift(u),a}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/manhattan/router.js
/**
 * Finds the route between two points (`from`, `to`).
 */function kp(e,t,n,r,i){const a=i.precision;let o,c;o=mr.isRectangle(t)?bp(mp(e,i).clone(),a):bp(t.clone(),a),c=mr.isRectangle(n)?bp(function(e,t){return e.targetAnchor?e.targetAnchor:gp(e,t).getCenter()}(e,i).clone(),a):bp(n.clone(),a);
// Get grid for this route.
const l=(u=i.step,f=c,{source:(h=o).clone(),x:Ap(f.x-h.x,u),y:Ap(f.y-h.y,u)});
// Get pathfinding points.
// -----------------------
// get grid size in x and y dimensions, adapted to source and target positions
var u,h,f;const d=o,p=c;let g,m;
// There is an accessible route point on both sides.
if(g=mr.isRectangle(t)?Ip(d,t,i.startDirections,l,i):[d],m=mr.isRectangle(n)?Ip(c,n,i.endDirections,l,i):[p],
// take into account only accessible rect points (those not under obstacles)
g=g.filter((e=>r.isAccessible(e))),m=m.filter((e=>r.isAccessible(e))),g.length>0&&m.length>0){const e=new dp,t={},n={},o={};
// Keeps the actual points for given nodes of the open set.
for(let n=0,r=g.length;n<r;n+=1){
// startPoint is assumed to be aligned already
const r=g[n],i=xp(r);e.add(i,_p(r,m)),t[i]=r,o[i]=0}const s=i.previousDirectionAngle,c=void 0===s;
// undefined for first route
// directions
let u,h;const f=function(e,t){const n=t.step;return t.directions.forEach((t=>{t.gridOffsetX=t.offsetX/n*e.x,t.gridOffsetY=t.offsetY/n*e.y})),t.directions}(l,i),v=f.length,y=m.reduce(((e,t)=>{const n=xp(t);return e.push(n),e}),[]),A=gr.equalPoints(g,m);let b=i.maxLoopCount;for(;!e.isEmpty()&&b>0;){
// Get the closest item and mark it CLOSED
const g=e.pop(),w=t[g],x=n[g],C=o[g],_=w.equals(d),I=null==x;let E;E=I?c?_?null:vp(d,w,v,l,i):s:vp(x,w,v,l,i);
// Check if we reached any endpoint
if(!(I&&A)&&y.indexOf(g)>=0)return i.previousDirectionAngle=E,Ep(n,t,w,d,p);
// Go over all possible directions and find neighbors
for(let s=0;s<v;s+=1){u=f[s];const d=u.angle;
// Don't use the point changed rapidly.
if(h=yp(E,d),(!c||!_)&&h>i.maxDirectionChange)continue;const g=wp(w.clone().translate(u.gridOffsetX||0,u.gridOffsetY||0),l,a),A=xp(g);
// Closed points were already evaluated.
if(e.isClose(A)||!r.isAccessible(g))continue;
// Neighbor is an end point.
if(y.indexOf(A)>=0){if(!g.equals(p)){if(yp(d,vp(g,p,v,l,i))>i.maxDirectionChange)continue}}
// The current direction is ok.
// ----------------------------
const b=C+u.cost+(_?0:i.penalties[h]);
// Neighbor point has not been processed yet or the cost of
// the path from start is lower than previously calculated.
(!e.isOpen(A)||b<o[A])&&(t[A]=g,n[A]=w,o[A]=b,e.add(A,b+_p(g,m)))}b-=1}}return i.fallbackRoute?s.call(i.fallbackRoute,this,d,p,i):null}const Sp=function(e,t,n){const r=function(e){const t=Object.keys(e).reduce(((t,n)=>(t[n]="fallbackRouter"===n||"draggingRouter"===n||"fallbackRoute"===n?e[n]:hp(e[n],e),t)),{});if(t.padding){const e=i.normalizeSides(t.padding);t.paddingBox={x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}return t.directions.forEach((e=>{const t=new gr(0,0),n=new gr(e.offsetX,e.offsetY);e.angle=sr(t.theta(n))})),t}(t),a=pp(n,r),o=gp(n,r),c=mp(n,r),l=new fp(r).build(n.graph.model,n.cell),u=e.map((e=>gr.create(e))),h=[];
// The origin of first route's grid, does not need snapping
let f,d,p=c;for(let t=0,i=u.length;t<=i;t+=1){let i=null;
// This is the last iteration
if(f=d||a,d=u[t],null==d){d=o;
// If the target is a point, we should use dragging route
// instead of main routing method if it has been provided.
const e=n.cell;if((null==e.getSourceCellId()||null==e.getTargetCellId())&&"function"==typeof r.draggingRouter){const e=f===a?c:f,t=d.getOrigin();i=s.call(r.draggingRouter,n,e,t,r)}}
// Find the partial route
// Cannot found the partial route.
if(null==i&&(i=kp(n,f,d,l,r)),null===i)return s.call(r.fallbackRouter,this,e,r,n);
// Remove the first point if the previous partial route has
// the same point as last.
const g=i[0];g&&g.equals(p)&&i.shift(),
// Save tailPoint for next iteration
p=i[i.length-1]||p,h.push(...i)}return r.snapToGrid?function(e,t=10){if(e.length<=1)return e;for(let n=0,r=e.length;n<r-1;n+=1){const r=e[n],i=e[n+1];if(r.x===i.x){const e=t*Math.round(r.x/t);r.x!==e&&(r.x=e,i.x=e)}else if(r.y===i.y){const e=t*Math.round(r.y/t);r.y!==e&&(r.y=e,i.y=e)}}return e}(h,n.graph.grid.getGridSize()):h},Bp=function(e,t,n){return s.call(Sp,this,e,Object.assign(Object.assign({},up),t),n)},Mp={maxDirectionChange:45,
// an array of directions to find next points on the route
// different from start/end directions
directions(){const e=hp(this.step,this),t=hp(this.cost,this),n=Math.ceil(Math.sqrt(e*e<<1));// eslint-disable-line no-bitwise
return[{cost:t,offsetX:e,offsetY:0},{cost:n,offsetX:e,offsetY:e},{cost:t,offsetX:0,offsetY:e},{cost:n,offsetX:-e,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:n,offsetX:-e,offsetY:-e},{cost:t,offsetX:0,offsetY:-e},{cost:n,offsetX:e,offsetY:-e}]},
// a simple route used in situations when main routing method fails
// (exceed max number of loop iterations, inaccessible)
fallbackRoute(e,t,n){
// Find a route which breaks by 45 degrees ignoring all obstacles.
const r=e.theta(t),i=[];let a={x:t.x,y:e.y},o={x:e.x,y:t.y};if(r%180>90){const e=a;a=o,o=e}const s=r%90<45?a:o,c=new vr(e,s),l=90*Math.ceil(r/90),u=gr.fromPolar(c.squaredLength(),or(l+135),s),h=new vr(t,u),f=c.intersectsWithLine(h),d=f||t,p=f?d:e,g=360/n.directions.length,m=sr(p.theta(t)+g/2),v=g*Math.floor(m/g);return n.previousDirectionAngle=v,d&&i.push(d.round()),i.push(t),i}},Tp=function(e,t,n){return s.call(Bp,this,e,Object.assign(Object.assign({},Mp),t),n)},Op=(e,t,n)=>{const r=t.offset||32,i=null==t.min?16:t.min;let a=0,o=t.direction;const s=n.sourceBBox,c=n.targetBBox,l=s.getCenter(),u=c.getCenter();if("number"==typeof r&&(a=r),null==o){let e=c.left-s.right,t=c.top-s.bottom;e>=0&&t>=0?o=e>=t?"L":"T":e<=0&&t>=0?(e=s.left-c.right,o=e>=0&&e>=t?"R":"T"):e>=0&&t<=0?(t=s.top-c.bottom,o=t>=0?e>=t?"L":"B":"L"):(e=s.left-c.right,t=s.top-c.bottom,o=e>=0&&t>=0?e>=t?"R":"B":e<=0&&t>=0?"B":e>=0&&t<=0||Math.abs(e)>Math.abs(t)?"R":"B")}let h,f,d;"H"===o?o=u.x-l.x>=0?"L":"R":"V"===o&&(o=u.y-l.y>=0?"T":"B"),"center"===r&&("L"===o?a=(c.left-s.right)/2:"R"===o?a=(s.left-c.right)/2:"T"===o?a=(c.top-s.bottom)/2:"B"===o&&(a=(s.top-c.bottom)/2));const p="L"===o||"R"===o;if(p){if(u.y===l.y)return[...e];d="L"===o?1:-1,h="x",f="width"}else{if(u.x===l.x)return[...e];d="T"===o?1:-1,h="y",f="height"}const g=l.clone(),m=u.clone();if(g[h]+=d*(s[f]/2+a),m[h]-=d*(c[f]/2+a),p){const e=g.x,t=m.x,n=s.width/2+i,r=c.width/2+i;u.x>l.x?t<=e&&(g.x=Math.max(t,l.x+n),m.x=Math.min(e,u.x-r)):t>=e&&(g.x=Math.min(t,l.x-n),m.x=Math.max(e,u.x+r))}else{const e=g.y,t=m.y,n=s.height/2+i,r=c.height/2+i;u.y>l.y?t<=e&&(g.y=Math.max(t,l.y+n),m.y=Math.min(e,u.y-r)):t>=e&&(g.y=Math.min(t,l.y-n),m.y=Math.max(e,u.y+r))}return[g.toJSON(),...e,m.toJSON()]};
//# sourceMappingURL=router.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/manhattan/index.js
//# sourceMappingURL=er.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/loop.js
function Dp(e,t){if(null!=t&&!1!==t){const n="boolean"==typeof t?0:t;if(n>0){const t=gr.create(e[1]).move(e[2],n),r=gr.create(e[1]).move(e[0],n);return[t.toJSON(),...e,r.toJSON()]}{const t=e[1];return[Object.assign({},t),...e,Object.assign({},t)]}}return e}const Pp=(e,t,n)=>{const r=t.width||50,i=(t.height||80)/2,a=t.angle||"auto",o=n.sourceAnchor,s=n.targetAnchor,c=n.sourceBBox,l=n.targetBBox;if(o.equals(s)){const e=e=>{const t=or(e),n=Math.sin(t),a=Math.cos(t),s=new gr(o.x+a*r,o.y+n*r),c=new gr(s.x-a*i,s.y-n*i),l=c.clone().rotate(-90,s),u=c.clone().rotate(90,s);return[l.toJSON(),s.toJSON(),u.toJSON()]},n=e=>{const t=o.clone().move(e,-1),n=new vr(t,e);return!c.containsPoint(e)&&!c.intersectsWithLine(n)},s=[0,90,180,270,45,135,225,315];if("number"==typeof a)return Dp(e(a),t.merge);const l=c.getCenter();if(l.equals(o))return Dp(e(0),t.merge);const u=l.angleBetween(o,l.clone().translate(1,0));let h=e(u);if(n(h[1]))return Dp(h,t.merge);
// return the best vertices
for(let r=1,i=s.length;r<i;r+=1)if(h=e(u+s[r]),n(h[1]))return Dp(h,t.merge);return Dp(h,t.merge)}{const e=new vr(o,s);let a=e.parallel(-r),u=a.getCenter(),h=a.start.clone().move(a.end,i),f=a.end.clone().move(a.start,i);const d=e.parallel(-1),p=new vr(d.start,u),g=new vr(d.end,u);if((c.containsPoint(u)||l.containsPoint(u)||c.intersectsWithLine(p)||c.intersectsWithLine(g)||l.intersectsWithLine(p)||l.intersectsWithLine(g))&&(a=e.parallel(r),u=a.getCenter(),h=a.start.clone().move(a.end,i),f=a.end.clone().move(a.start,i)),t.merge){const e=new vr(o,s),t=new vr(u,e.center).setLength(Number.MAX_SAFE_INTEGER),r=c.intersectsWithLine(t),i=l.intersectsWithLine(t),a=r?Array.isArray(r)?r:[r]:[];i&&(Array.isArray(i)?a.push(...i):a.push(i));const h=e.center.closest(a);h?(n.sourceAnchor=h.clone(),n.targetAnchor=h.clone()):(n.sourceAnchor=e.center.clone(),n.targetAnchor=e.center.clone())}return Dp([h.toJSON(),u.toJSON(),f.toJSON()],t.merge)}},Lp=k,Qp=uu.create({type:"router"});
//# sourceMappingURL=loop.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/main.js
//# sourceMappingURL=main.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/router/index.js
function Rp(e){return null!=e&&"string"==typeof e}function jp(e,t={ns:h.ns.svg}){const n=document.createDocumentFragment(),r={},i={},a=[{markup:Array.isArray(e)?e:[e],parent:n,ns:t.ns}];for(;a.length>0;){const e=a.pop();let t=e.ns||h.ns.svg;const n=e.markup,o=e.parent;n.forEach((e=>{
// tagName
const n=e.tagName;if(!n)throw new TypeError("Invalid tagName");
// ns
e.ns&&(t=e.ns);const s=t?h.createElementNS(n,t):h.createElement(n),c=e.attrs;
// attrs
c&&h.attr(s,h.kebablizeAttrs(c));
// style
const l=e.style;l&&h.css(s,l);
// classname
const u=e.className;null!=u&&s.setAttribute("class",Array.isArray(u)?u.join(" "):u),
// textContent
e.textContent&&(s.textContent=e.textContent);
// selector
const f=e.selector;if(null!=f){if(i[f])throw new TypeError("Selector must be unique");i[f]=s}
// group
if(e.groupSelector){let t=e.groupSelector;Array.isArray(t)||(t=[t]),t.forEach((e=>{r[e]||(r[e]=[]),r[e].push(s)}))}o.appendChild(s);
// children
const d=e.children;Array.isArray(d)&&a.push({ns:t,markup:d,parent:s})}))}return Object.keys(r).forEach((e=>{if(i[e])throw new Error("Ambiguous group selector");i[e]=r[e]})),{fragment:n,selectors:i,groups:r}}function Np(e){return e instanceof SVGElement?h.createSvgElement("g"):h.createElement("div")}Qp.register(Lp,!0);
/**
 * Markup 所有的方法导出
 */
const Fp={isJSONMarkup:
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/markup.js
function(e){return null!=e&&!Rp(e)},isStringMarkup:Rp,clone:function(e){return null==e||Rp(e)?e:l.cloneDeep(e)}
/**
 * Removes blank space in markup to prevent create empty text node.
 */,sanitize:function(e){return`${e}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+</g,"><")},parseJSONMarkup:jp,createContainer:Np,renderMarkup:function(e){if(Rp(e)){const t=Ss.createVectors(e),n=t.length;if(1===n)return{elem:t[0].node};if(n>1){const e=Np(t[0].node);return t.forEach((t=>{e.appendChild(t.node)})),{elem:e}}return{}}const t=jp(e),n=t.fragment;let r=null;return n.childNodes.length>1?(r=Np(n.firstChild),r.appendChild(n)):r=n.firstChild,{elem:r,selectors:t.selectors}},parseLabelStringMarkup:function(e){const t=Ss.createVectors(e),n=document.createDocumentFragment();for(let e=0,r=t.length;e<r;e+=1){const r=t[e].node;n.appendChild(r)}return{fragment:n,selectors:{}}},getSelector:function e(t,n,r){if(null!=t){let i;const a=t.tagName.toLowerCase();if(t===n)return i="string"==typeof r?`> ${a} > ${r}`:`> ${a}`,i;const o=t.parentNode;if(o&&o.childNodes.length>1){i=`${a}:nth-child(${h.index(t)+1})`}else i=a;return r&&(i+=` > ${r}`),e(t.parentNode,n,i)}return r},getPortContainerMarkup:function(){return"g"},getPortMarkup:function(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}},getPortLabelMarkup:function(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}},getEdgeMarkup:function(){return[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}]},getForeignObjectMarkup:function(e=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:h.ns.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:h.ns.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:e?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}},zp={};
//# sourceMappingURL=markup.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/view/util.js
/**
 *  全局缓存 view，也不知道是用来干啥！
 */function Hp(e,t){return t?h.createSvgElement(e||"g"):h.createElementNS(e||"div")}function Up(e,t,n){if(!e||"."===e)return{elems:[t]};if(n){const t=n[e];if(t)return{elems:Array.isArray(t)?t:[t]}}if(zf.useCSSSelector){const n=e.includes(">")?`:scope ${e}`:e;return{isCSSSelector:!0,
// $(rootElem).find(selector).toArray() as Element[]
elems:Array.prototype.slice.call(t.querySelectorAll(n))}}return{elems:[]}}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/view/index.js
class Gp extends ou{get priority(){return 2}
/** If need remove `this.container` DOM */get disposeContainer(){return!0}constructor(){var e,t;super(),this.cid=c.uniqueId("v"),e=this.cid,t=this,zp[e]=t}confirmUpdate(e,t){return 0}empty(e=this.container){return h.empty(e),this}unmount(e=this.container){return h.remove(e),this}remove(e=this.container){var t;return e===this.container?(this.removeEventListeners(document),this.onRemove(),t=this.cid,delete zp[t],this.disposeContainer&&this.unmount(e)):this.unmount(e),this}onRemove(){}setClass(e,t=this.container){t.classList.value=Array.isArray(e)?e.join(" "):e}addClass(e,t=this.container){return h.addClass(t,Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return h.removeClass(t,Array.isArray(e)?e.join(" "):e),this}setStyle(e,t=this.container){return h.css(t,e),this}setAttrs(e,t=this.container){return null!=e&&null!=t&&h.attr(t,e),this}
/**
     * Returns the value of the specified attribute of `node`.
     *
     * If the node does not set a value for attribute, start recursing up
     * the DOM tree from node to lookup for attribute at the ancestors of
     * node. If the recursion reaches CellView's root node and attribute
     * is not found even there, return `null`.
     */findAttr(e,t=this.container){let n=t;for(;n&&1===n.nodeType;){const t=n.getAttribute(e);if(null!=t)return t;if(n===this.container)return null;n=n.parentNode}return null}find(e,t=this.container,n=this.selectors){return Up(e,t,n).elems}findOne(e,t=this.container,n=this.selectors){const r=this.find(e,t,n);return r.length>0?r[0]:null}findByAttr(e,t=this.container){let n=t;for(;null==n?void 0:n.getAttribute;){const t=n.getAttribute(e);if((null!=t||n===this.container)&&"false"!==t)return n;n=n.parentNode}
// If the overall cell has set `magnet === false`, then returns
// `null` to announce there is no magnet found for this cell.
// This is especially useful to set on cells that have 'ports'.
// In this case, only the ports have set `magnet === true` and the
// overall element has `magnet === false`.
return null}getSelector(e,t){let n;if(e===this.container)return"string"==typeof t&&(n=`> ${t}`),n;if(e){const r=h.index(e)+1;n=`${e.tagName.toLowerCase()}:nth-child(${r})`,t&&(n+=` > ${t}`),n=this.getSelector(e.parentNode,n)}return n}prefixClassName(e){return zf.prefix(e)}delegateEvents(e,t){if(null==e)return this;t||this.undelegateEvents();const n=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach((t=>{const r=t.match(n);if(null==r)return;const i=this.getEventHandler(e[t]);"function"==typeof i&&this.delegateEvent(r[1],r[2],i)})),this}undelegateEvents(){return h.Event.off(this.container,this.getEventNamespace()),this}delegateDocumentEvents(e,t){return this.addEventListeners(document,e,t),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(e,t,n){return h.Event.on(this.container,e+this.getEventNamespace(),t,n),this}undelegateEvent(e,t,n){const r=e+this.getEventNamespace();return null==t?h.Event.off(this.container,r):"string"==typeof t?h.Event.off(this.container,r,t,n):h.Event.off(this.container,r,t),this}addEventListeners(e,t,n){if(null==t)return this;const r=this.getEventNamespace();return Object.keys(t).forEach((i=>{const a=this.getEventHandler(t[i]);"function"==typeof a&&h.Event.on(e,i+r,n,a)})),this}removeEventListeners(e){return null!=e&&h.Event.off(e,this.getEventNamespace()),this}getEventNamespace(){return`.${zf.prefixCls}-event-${this.cid}`}getEventHandler(e){let t;if("string"==typeof e){const n=this[e];"function"==typeof n&&(t=(...e)=>n.call(this,...e))}else t=(...t)=>e.call(this,...t);return t}getEventTarget(e,t={}){
// Touchmove/Touchend event's target is not reflecting the element
// under the coordinates as mousemove does.
// It holds the element when a touchstart triggered.
const{target:n,type:r,clientX:i=0,clientY:a=0}=e;return t.fromPoint||"touchmove"===r||"touchend"===r?document.elementFromPoint(i,a):n}stopPropagation(e){return this.setEventData(e,{propagationStopped:!0}),this}isPropagationStopped(e){return!0===this.getEventData(e).propagationStopped}getEventData(e){return this.eventData(e)}setEventData(e,t){return this.eventData(e,t)}eventData(e,t){if(null==e)throw new TypeError("Event object required");let n=e.data;const r=`__${this.cid}__`;
// get
return null==t?null==n?{}:n[r]||{}:(
// set
null==n&&(n=e.data={}),null==n[r]?n[r]=Object.assign({},t):n[r]=Object.assign(Object.assign({},n[r]),t),n[r])}normalizeEvent(e){return function(e){var t;let n=e;const r=e.originalEvent,i=null===(t=null==r?void 0:r.changedTouches)||void 0===t?void 0:t[0];if(i){
// eslint-disable-next-line no-restricted-syntax
for(const t in e)void 0===i[t]&&(i[t]=e[t]);n=i}return n}(e)}dispose(){this.remove()}}T([au()],Gp.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/tool/util.js
let Vp=0;
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/tool/tool-item.js
class Wp extends Gp{static isToolItem(e){if(null==e)return!1;if(e instanceof Wp)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===qp)&&null!=n.graph&&null!=n.cell&&"function"==typeof n.config&&"function"==typeof n.update&&"function"==typeof n.focus&&"function"==typeof n.blur&&"function"==typeof n.show&&"function"==typeof n.hide&&"function"==typeof n.isVisible}static define(e){const t=l.createClass(function(e){return e?c.pascalCase(e):(Vp+=1,`CustomTool${Vp}`)}(e.name),Wp);return t.config(e),t}static getDefaults(){return this.defaults}static config(e){this.defaults=this.getOptions(e)}static getOptions(e){return l.merge(l.cloneDeep(this.getDefaults()),e)}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get name(){return this.options.name}get[Symbol.toStringTag](){return qp}constructor(e={}){super(),this.visible=!0,this.options=this.getOptions(e),this.container=Hp(this.options.tagName||"g",!1!==this.options.isSVGElement),h.addClass(this.container,this.prefixClassName("cell-tool")),"string"==typeof this.options.className&&h.addClass(this.container,this.options.className),this.init()}init(){}getOptions(e){return this.constructor.getOptions(e)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(e,t){return this.cellView=e,this.parent=t,this.stamp(this.container),this.cell.isEdge()?h.addClass(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&h.addClass(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const e=this.options.markup;if(e){const t=Fp.parseJSONMarkup(e);this.container.appendChild(t.fragment),this.childNodes=t.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(e){e&&e.setAttribute("data-cell-id",this.cellView.cell.id)}show(){return this.container.style.display="",this.visible=!0,this}hide(){return this.container.style.display="none",this.visible=!1,this}isVisible(){return this.visible}focus(){const e=this.options.focusOpacity;return null!=e&&Number.isFinite(e)&&(this.container.style.opacity=`${e}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(e){return null==this.graph||null==this.cellView||this.graph.view.guard(e,this.cellView)}}
// #region static
Wp.toStringTag=`X6.${Wp.name}`,Wp.defaults={isSVGElement:!0,tagName:"g"};const qp=`X6.${Wp.name}`;
//# sourceMappingURL=tool-item.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/attr.js
class Yp{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,t){let n,r,i,a;const o=[];
// divide the attributes between normal and special
return Object.keys(t).forEach((r=>{const i=t[r],a=this.getDefinition(r),l=s.call(Oh,this.view,a,i,{elem:e,attrs:t,cell:this.cell,view:this.view});if(a&&l)"string"==typeof a?(null==n&&(n={}),n[a]=i):null!==i&&o.push({name:r,definition:a});else{null==n&&(n={});const e=h.CASE_SENSITIVE_ATTR.includes(r)?r:c.kebabCase(r);n[e]=i}})),o.forEach((({name:e,definition:n})=>{const o=t[e];"function"==typeof n.set&&(null==r&&(r={}),r[e]=o);"function"==typeof n.offset&&(null==i&&(i={}),i[e]=o);"function"==typeof n.position&&(null==a&&(a={}),a[e]=o)})),{raw:t,normal:n,set:r,offset:i,position:a}}mergeProcessedAttrs(e,t){var n;e.set=Object.assign(Object.assign({},e.set),t.set),e.position=Object.assign(Object.assign({},e.position),t.position),e.offset=Object.assign(Object.assign({},e.offset),t.offset);
// Handle also the special transform property.
const r=null===(n=e.normal)||void 0===n?void 0:n.transform;null!=r&&t.normal&&(t.normal.transform=r),e.normal=t.normal}findAttrs(e,t,n,i){const a=[],o=new su;return Object.keys(e).forEach((s=>{const c=e[s];if(!l.isPlainObject(c))return;const{isCSSSelector:u,elems:h}=Up(s,t,i);n[s]=h;for(let e=0,t=h.length;e<t;e+=1){const n=h[e],l=i&&i[s]===n,f=o.get(n);if(f){f.array||(a.push(n),f.array=!0,f.attrs=[f.attrs],f.priority=[f.priority]);const e=f.attrs,i=f.priority;if(l)
// node referenced by `selector`
e.unshift(c),i.unshift(-1);else{
// node referenced by `groupSelector` or CSSSelector
const n=r.sortedIndex(i,u?-1:t);e.splice(n,0,c),i.splice(n,0,t)}}else o.set(n,{elem:n,attrs:c,priority:l?-1:t,array:!1})}})),a.forEach((e=>{const t=o.get(e),n=t.attrs;t.attrs=n.reduceRight(((e,t)=>l.merge(e,t)),{})})),o}updateRelativeAttrs(e,t,n){const r=t.raw||{};let i=t.normal||{};const a=t.set,o=t.position,c=t.offset,l=()=>({elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:n.clone()});if(null!=a&&Object.keys(a).forEach((e=>{const t=a[e],n=this.getDefinition(e);if(null!=n){const r=s.call(n.set,this.view,t,l());"object"==typeof r?i=Object.assign(Object.assign({},i),r):null!=r&&(
// @ts-expect-error
i[e]=r)}})),e instanceof HTMLElement)
// TODO: setting the `transform` attribute on HTMLElements
// via `node.style.transform = 'matrix(...)';` would introduce
// a breaking change (e.g. basic.TextBlock).
return void this.view.setAttrs(i,e);
// The final translation of the subelement.
const u=i.transform,d=u?`${u}`:null,p=h.transformStringToMatrix(d),g=new gr(p.e,p.f);u&&(delete i.transform,p.e=0,p.f=0);let m=!1;null!=o&&Object.keys(o).forEach((e=>{const t=o[e],n=this.getDefinition(e);if(null!=n){const e=s.call(n.position,this.view,t,l());null!=e&&(m=!0,g.translate(gr.create(e)))}})),
// The node bounding box could depend on the `size`
// set from the previous loop.
this.view.setAttrs(i,e);let v=!1;if(null!=c){
// Check if the node is visible
const t=this.view.getBoundingRectOfElement(e);if(t.width>0&&t.height>0){const n=f.transformRectangle(t,p);Object.keys(c).forEach((t=>{const i=c[t],a=this.getDefinition(t);if(null!=a){const t=s.call(a.offset,this.view,i,{elem:e,cell:this.cell,view:this.view,attrs:r,refBBox:n});null!=t&&(v=!0,g.translate(gr.create(t)))}}))}}(null!=u||m||v)&&(g.round(1),p.e=g.x,p.f=g.y,e.setAttribute("transform",h.matrixToTransformString(p)))}update(e,t,n){const r={},i=this.findAttrs(n.attrs||t,e,r,n.selectors),a=n.attrs?this.findAttrs(t,e,r,n.selectors):i,o=[];i.each((t=>{const i=t.elem,s=t.attrs,c=this.processAttrs(i,s);if(null==c.set&&null==c.position&&null==c.offset)this.view.setAttrs(c.normal,i);else{const t=a.get(i),l=t?t.attrs:null,u=l&&null==s.ref?l.ref:s.ref;let h;if(u){if(h=(r[u]||this.view.find(u,e,n.selectors))[0],!h)throw new Error(`"${u}" reference does not exist.`)}else h=null;const f={node:i,refNode:h,attributes:l,processedAttributes:c},d=o.findIndex((e=>e.refNode===i));
// If an element in the list is positioned relative to this one, then
// we want to insert this one before it in the list.
d>-1?o.splice(d,0,f):o.push(f)}}));const s=new su;let c;o.forEach((t=>{const r=t.node,i=t.refNode;let a;const o=null!=i&&null!=n.rotatableNode&&h.contains(n.rotatableNode,i);
// Find the reference element bounding box. If no reference was
// provided, we use the optional bounding box.
if(i&&(a=s.get(i)),!a){const t=o?n.rotatableNode:e;a=i?f.getBBox(i,{target:t}):n.rootBBox,i&&s.set(i,a)}let l;n.attrs&&t.attributes?(
// If there was a special attribute affecting the position amongst
// passed-in attributes we have to merge it with the rest of the
// element's attributes as they are necessary to update the position
// relatively (i.e `ref-x` && 'ref-dx').
l=this.processAttrs(r,t.attributes),this.mergeProcessedAttrs(l,t.processedAttributes)):l=t.processedAttributes;let u=a;o&&null!=n.rotatableNode&&!n.rotatableNode.contains(r)&&(
// If the referenced node is inside the rotatable group while the
// updated node is outside, we need to take the rotatable node
// transformation into account.
c||(c=h.transformStringToMatrix(h.attr(n.rotatableNode,"transform"))),u=f.transformRectangle(a,c)),this.updateRelativeAttrs(r,l,u)}))}}
//# sourceMappingURL=attr.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/cache.js
/**
 * 一个 element 的缓存类
 */class Kp{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new su,this.pathCache={}}get(e){return this.elemCache.has(e)||this.elemCache.set(e,{}),this.elemCache.get(e)}getData(e){const t=this.get(e);return t.data||(t.data={}),t.data}getMatrix(e){const t=this.get(e);if(null==t.matrix){const n=this.view.container;t.matrix=h.getTransformToParentElement(e,n)}return h.createSVGMatrix(t.matrix)}getShape(e){const t=this.get(e);return null==t.shape&&(t.shape=f.toGeometryShape(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return null==t.boundingRect&&(t.boundingRect=f.getBBoxV2(e)),t.boundingRect.clone()}}
//# sourceMappingURL=cache.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/flag.js
class $p{get cell(){return this.view.cell}constructor(e,t,n=[]){this.view=e;const r={},i={};let a=0;Object.keys(t).forEach((e=>{let n=t[e];Array.isArray(n)||(n=[n]),n.forEach((t=>{let n=r[t];n||(a+=1,n=r[t]=1<<a),i[e]|=n}))}));let o=n;
// 26 - 30 are reserved for paper flags
// 31+ overflows maximal number
if(Array.isArray(o)||(o=[o]),o.forEach((e=>{r[e]||(a+=1,r[e]=1<<a)})),a>25)throw new Error("Maximum number of flags exceeded.");this.flags=r,this.attrs=i,this.bootstrap=n}getFlag(e){const t=this.flags;return null==t?0:Array.isArray(e)?e.reduce(((e,n)=>e|t[n]),0):0|t[e]}hasAction(e,t){return e&this.getFlag(t)}removeAction(e,t){return e^e&this.getFlag(t)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let e=0;return this.attrs?(Object.keys(this.attrs).forEach((t=>{this.cell.hasChanged(t)&&(e|=this.attrs[t])})),e):e}}
//# sourceMappingURL=flag.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/cell/index.js
/* eslint-disable @typescript-eslint/no-unused-vars */class Jp extends Gp{static getDefaults(){return Jp.defaults}static isCellView(e){if(null==e)return!1;if(e instanceof Jp)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===Xp)&&"function"==typeof n.isNodeView&&"function"==typeof n.isEdgeView&&"function"==typeof n.confirmUpdate}static config(e){Jp.defaults=Jp.getOptions(e)}static getOptions(e){const t=(e,t)=>null!=t?r.uniq([...Array.isArray(e)?e:[e],...Array.isArray(t)?t:[t]]):Array.isArray(e)?[...e]:[e],n=l.cloneDeep(Jp.getDefaults()),{bootstrap:i,actions:a,events:o,documentEvents:s}=e,c=M(e,["bootstrap","actions","events","documentEvents"]);return i&&(n.bootstrap=t(n.bootstrap,i)),a&&Object.entries(a).forEach((([e,r])=>{const i=n.actions[e];r&&i?n.actions[e]=t(i,r):r&&(n.actions[e]=t(r))})),o&&(n.events=Object.assign(Object.assign({},n.events),o)),e.documentEvents&&(n.documentEvents=Object.assign(Object.assign({},n.documentEvents),s)),l.merge(n,c)}get[Symbol.toStringTag](){return Xp}constructor(e,t={}){super(),this.cell=e,this.options=this.ensureOptions(t),this.graph=this.options.graph,this.attr=new Yp(this),this.flag=new $p(this,this.options.actions,this.options.bootstrap),this.cache=new Kp(this),this.setContainer(this.ensureContainer()),this.setup(),this.init()}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(e){return this.getConstructor().getOptions(e)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return Hp(this.getContainerTagName(),this.options.isSvgElement)}setContainer(e){if(this.container!==e){this.undelegateEvents(),this.container=e,null!=this.options.events&&this.delegateEvents(this.options.events);const t=this.getContainerAttrs();null!=t&&this.setAttrs(t,e);const n=this.getContainerStyle();null!=n&&this.setStyle(n,e);const r=this.getContainerClassName();null!=r&&this.addClass(r,e)}return this}isNodeView(){return!1}isEdgeView(){return!1}render(){return this}confirmUpdate(e,t={}){return 0}getBootstrapFlag(){return this.flag.getBootstrapFlag()}getFlag(e){return this.flag.getFlag(e)}hasAction(e,t){return this.flag.hasAction(e,t)}removeAction(e,t){return this.flag.removeAction(e,t)}handleAction(e,t,n,r){if(this.hasAction(e,t)){n();const i=[t];return r&&("string"==typeof r?i.push(r):i.push(...r)),this.removeAction(e,i)}return e}setup(){this.cell.on("changed",this.onCellChanged,this)}onCellChanged({options:e}){this.onAttrsChange(e)}onAttrsChange(e){let t=this.flag.getChangedFlag();!e.updated&&t&&(e.dirty&&this.hasAction(t,"update")&&(t|=this.getFlag("render")),
// tool changes should be sync render
e.toolId&&(e.async=!1),null!=this.graph&&this.graph.renderer.requestViewUpdate(this,t,e))}parseJSONMarkup(e,t){const n=Fp.parseJSONMarkup(e),r=n.selectors,i=this.rootSelector;if(t&&i){if(r[i])throw new Error("Invalid root selector");r[i]=t}return n}can(e){let t=this.graph.options.interacting;if("function"==typeof t&&(t=s.call(t,this.graph,this)),"object"==typeof t){let n=t[e];return"function"==typeof n&&(n=s.call(n,this.graph,this)),!1!==n}return"boolean"==typeof t&&t}cleanCache(){return this.cache.clean(),this}getCache(e){return this.cache.get(e)}getDataOfElement(e){return this.cache.getData(e)}getMatrixOfElement(e){return this.cache.getMatrix(e)}getShapeOfElement(e){return this.cache.getShape(e)}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),r=this.getRootRotatedMatrix(),i=this.getRootTranslatedMatrix();return f.transformRectangle(t,i.multiply(r).multiply(n))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),r=this.getRootTranslatedMatrix();return f.transformRectangle(t,r.multiply(n))}getBBox(e={}){let t;if(e.useCellGeometry){const e=this.cell,n=e.isNode()?e.getAngle():0;t=e.getBBox().bbox(n)}else t=this.getBBoxOfElement(this.container);return this.graph.coord.localToGraphRect(t)}getRootTranslatedMatrix(){const e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return h.createSVGMatrix().translate(t.x,t.y)}getRootRotatedMatrix(){let e=h.createSVGMatrix();const t=this.cell,n=t.isNode()?t.getAngle():0;if(n){const r=t.getBBox(),i=r.width/2,a=r.height/2;e=e.translate(i,a).rotate(n).translate(-i,-a)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,t,n={}){null==n.rootBBox&&(n.rootBBox=new mr),null==n.selectors&&(n.selectors=this.selectors),this.attr.update(e,t,n)}isEdgeElement(e){return this.cell.isEdge()&&(null==e||e===this.container)}
// #region highlight
prepareHighlight(e,t={}){const n=e||this.container;return t.partial=n===this.container,n}highlight(e,t={}){const n=this.prepareHighlight(e,t);return this.notify("cell:highlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,t={}){const n=this.prepareHighlight(e,t);return this.notify("cell:unhighlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}),this}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
notifyUnhighlight(e,t){}
// #endregion
getEdgeTerminal(e,t,n,r,i){const a=this.cell,o=this.findAttr("port",e),s=e.getAttribute("data-selector"),c={cell:a.id};return null!=s&&(c.magnet=s),null!=o?(c.port=o,a.isNode()&&(a.hasPort(o)||null!=s||(
// port created via the `port` attribute (not API)
c.selector=this.getSelector(e)))):null==s&&this.container!==e&&(c.selector=this.getSelector(e)),c}getMagnetFromEdgeTerminal(e){const t=this.cell,n=this.container,r=e.port;let i,a=e.magnet;return null!=r&&t.isNode()&&t.hasPort(r)?i=this.findPortElem(r,a)||n:(a||(a=e.selector),a||null==r||(a=`[port="${r}"]`),i=this.findOne(a,n,this.selectors)),i}hasTools(e){const t=this.tools;return null!=t&&(null==e||t.name===e)}addTools(e){if(this.removeTools(),e){if(!this.can("toolsAddable"))return this;const t=Zp.isToolsView(e)?e:new Zp(e);this.tools=t,t.config({view:this}),t.mount()}return this}updateTools(e={}){return this.tools&&this.tools.update(e),this}removeTools(){return this.tools&&(this.tools.remove(),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}notify(e,t){return this.trigger(e,t),this.graph.trigger(e,t),this}getEventArgs(e,t,n){const r=this,i=r.cell;// eslint-disable-line @typescript-eslint/no-this-alias
return null==t||null==n?{e:e,view:r,cell:i}:{e:e,x:t,y:n,view:r,cell:i}}onClick(e,t,n){this.notify("cell:click",this.getEventArgs(e,t,n))}onDblClick(e,t,n){this.notify("cell:dblclick",this.getEventArgs(e,t,n))}onContextMenu(e,t,n){this.notify("cell:contextmenu",this.getEventArgs(e,t,n))}onMouseDown(e,t,n){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,t,n))}onMouseUp(e,t,n){this.notify("cell:mouseup",this.getEventArgs(e,t,n)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,t,n){this.notify("cell:mousemove",this.getEventArgs(e,t,n))}onMouseOver(e){this.notify("cell:mouseover",this.getEventArgs(e))}onMouseOut(e){this.notify("cell:mouseout",this.getEventArgs(e))}onMouseEnter(e){this.notify("cell:mouseenter",this.getEventArgs(e))}onMouseLeave(e){this.notify("cell:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,n,r){this.notify("cell:mousewheel",Object.assign({delta:r},this.getEventArgs(e,t,n)))}onCustomEvent(e,t,n,r){this.notify("cell:customevent",Object.assign({name:t},this.getEventArgs(e,n,r))),this.notify(t,Object.assign({},this.getEventArgs(e,n,r)))}onMagnetMouseDown(e,t,n,r){}onMagnetDblClick(e,t,n,r){}onMagnetContextMenu(e,t,n,r){}onLabelMouseDown(e,t,n){}checkMouseleave(e){const t=this.getEventTarget(e,{fromPoint:!0}),n=this.graph.findViewByElem(t);n!==this&&(
// Leaving the current view
this.onMouseLeave(e),n&&
// Entering another view
n.onMouseEnter(e))}dispose(){this.cell.off("changed",this.onCellChanged,this)}}Jp.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}},Jp.registry=uu.create({type:"view"}),T([au()],Jp.prototype,"dispose",null);const Xp=`X6.${Jp.name}`;
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/tool/tool-view.js
class Zp extends Gp{static isToolsView(e){if(null==e)return!1;if(e instanceof Zp)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===eg)&&null!=n.graph&&null!=n.cell&&"function"==typeof n.config&&"function"==typeof n.update&&"function"==typeof n.focus&&"function"==typeof n.blur&&"function"==typeof n.show&&"function"==typeof n.hide}get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return eg}constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}createContainer(e,t){const n=e?Hp("g",!0):Hp("div",!1);return h.addClass(n,this.prefixClassName("cell-tools")),t.className&&h.addClass(n,t.className),n}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!Jp.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(h.addClass(this.svgContainer,this.prefixClassName("edge-tools")),h.addClass(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(h.addClass(this.svgContainer,this.prefixClassName("node-tools")),h.addClass(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const t=this.options.items;if(!Array.isArray(t))return this;this.tools=[];const n=[];t.forEach((e=>{if(Wp.isToolItem(e))"vertices"===e.name?n.unshift(e):n.push(e);else{"vertices"===("object"==typeof e?e.name:e)?n.unshift(e):n.push(e)}}));for(let e=0;e<n.length;e+=1){const t=n[e];let r;if(Wp.isToolItem(t))r=t;else{const e="object"==typeof t?t.name:t,n="object"==typeof t&&t.args||{};if(e)if(this.cell.isNode()){const t=kg.get(e);if(!t)return kg.onNotFound(e);r=new t(n)}else if(this.cell.isEdge()){const t=Bg.get(e);if(!t)return Bg.onNotFound(e);r=new t(n)}}if(r){r.config(this.cellView,this),r.render();(!1!==r.options.isSVGElement?this.svgContainer:this.htmlContainer).appendChild(r.container),this.tools.push(r)}}return this}update(e={}){const t=this.tools;return t&&t.forEach((t=>{e.toolId!==t.cid&&t.isVisible()&&t.update()})),this}focus(e){const t=this.tools;return t&&t.forEach((t=>{e===t?t.show():t.hide()})),this}blur(e){const t=this.tools;return t&&t.forEach((t=>{t===e||t.isVisible()||(t.show(),t.update())})),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const e=this.tools;return e&&(e.forEach((e=>e.remove())),this.tools=null),h.remove(this.svgContainer),h.remove(this.htmlContainer),super.remove()}mount(){const e=this.tools,t=this.cellView;if(t&&e){const n=e.some((e=>!1!==e.options.isSVGElement)),r=e.some((e=>!1===e.options.isSVGElement));if(n){(this.options.local?t.container:t.graph.view.decorator).appendChild(this.svgContainer)}r&&this.graph.container.appendChild(this.htmlContainer)}return this}}Zp.toStringTag=`X6.${Zp.name}`;const eg=`X6.${Zp.name}`,tg=e=>e
//# sourceMappingURL=noop.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-strategy/pin.js;
//# sourceMappingURL=tool-view.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/tool/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/connection-strategy/noop.js
function ng(e,t){return 0===t?"0%":`${Math.round(e/t*100)}%`}function rg(e){return(t,n,r,i)=>n.isEdgeElement(r)?function(e,t,n,r,i){const a=n.getConnection();if(!a)return t;const o=a.closestPointLength(i);if(e){const e=a.length();t.anchor={name:"ratio",args:{ratio:o/e}}}else t.anchor={name:"length",args:{length:o}};return t}(e,t,n,0,i):function(e,t,n,r,i){const a=n.cell,o=a.getAngle(),s=n.getUnrotatedBBoxOfElement(r),c=a.getBBox().getCenter(),l=gr.create(i).rotate(o,c);let u=l.x-s.x,h=l.y-s.y;e&&(u=ng(u,s.width),h=ng(h,s.height));return t.anchor={name:"topLeft",args:{dx:u,dy:h,rotate:!0}},t}(e,t,n,r,i)}const ig=rg(!0),ag=rg(!1),og=S;
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/util.js
function sg(e,t,n,r){return s.call(og.pinRelative,this.graph,{},t,n,e,this.cell,r,{}).anchor}function cg(e,t){return t?e.cell.getBBox():e.cell.isEdge()?e.getConnection().bbox():e.getUnrotatedBBoxOfElement(e.container)}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/anchor.js
uu.create({type:"connection strategy"}).register(og,!0);class lg extends Wp{get type(){return this.options.type}onRender(){h.addClass(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const e=this.type;return this.cellView.getTerminalView(e)?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const e=this.childNodes;if(!e)return;const t=e.anchor;if(!t)return;const n=this.type,r=this.cellView,i=this.options,a=r.getTerminalAnchor(n),o=r.cell.prop([n,"anchor"]);t.setAttribute("transform",`translate(${a.x}, ${a.y})`);const s=o?i.customAnchorAttrs:i.defaultAnchorAttrs;s&&Object.keys(s).forEach((e=>{t.setAttribute(e,s[e])}))}updateArea(){const e=this.childNodes;if(!e)return;const t=e.area;if(!t)return;const n=this.type,r=this.cellView,i=r.getTerminalView(n);if(i){const e=i.cell,a=r.getTerminalMagnet(n);let o,s,c,l=this.options.areaPadding||0;Number.isFinite(l)||(l=0),i.isEdgeElement(a)?(o=i.getBBox(),s=0,c=o.getCenter()):(o=i.getUnrotatedBBoxOfElement(a),s=e.getAngle(),c=o.getCenter(),s&&c.rotate(-s,e.getBBox().getCenter())),o.inflate(l),h.attr(t,{x:-o.width/2,y:-o.height/2,width:o.width,height:o.height,transform:`translate(${c.x}, ${c.y}) rotate(${s})`})}}toggleArea(e){if(this.childNodes){const t=this.childNodes.area;t&&(t.style.display=e?"":"none")}}onMouseDown(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(e){const t=this.type,n=this.cell;e?n.prop([t,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):n.removeProp([t,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const t=this.type,n=this.cellView,r=n.getTerminalView(t);if(null==r)return;const i=this.normalizeEvent(e),a=r.cell,o=n.getTerminalMagnet(t);let c=this.graph.coord.clientToLocalPoint(i.clientX,i.clientY);const l=this.options.snap;if("function"==typeof l){const e=s.call(l,n,c,r,o,t,n,this);c=gr.create(e)}if(this.options.restrictArea)if(r.isEdgeElement(o)){const e=r.getClosestPoint(c);e&&(c=e)}else{const e=r.getUnrotatedBBoxOfElement(o),t=a.getAngle(),n=a.getBBox().getCenter(),i=c.clone().rotate(t,n);e.containsPoint(i)||(c=e.getNearestPointToPoint(i).rotate(-t,n))}let u;const h=this.options.anchor;"function"==typeof h&&(u=s.call(h,n,c,r,o,t,n,this)),this.resetAnchor(u),this.update()}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onMouseUp(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const t=this.cellView;this.options.removeRedundancies&&t.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const e=this.options.resetAnchor;e&&this.resetAnchor(!0===e?void 0:e),this.update()}}lg.defaults=Object.assign(Object.assign({},Wp.getDefaults()),{tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:sg,snap(e,t,n,r,i,a){const o=a.options.snapRadius||0,s="source"===r,c=s?0:-1,l=this.cell.getVertexAt(c)||this.getTerminalAnchor(s?"target":"source");return l&&(Math.abs(l.x-e.x)<o&&(e.x=l.x),Math.abs(l.y-e.y)<o&&(e.y=l.y)),e}});class ug extends lg{}ug.defaults=Object.assign(Object.assign({},lg.getDefaults()),{name:"source-anchor",type:"source"});class hg extends lg{}hg.defaults=Object.assign(Object.assign({},lg.getDefaults()),{name:"target-anchor",type:"target"});
//# sourceMappingURL=anchor.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/arrowhead.js
class fg extends Wp{get type(){return this.options.type}get ratio(){return this.options.ratio}init(){if(this.options.attrs){const e=this.options.attrs,{class:t}=e,n=M(e,["class"]);this.setAttrs(n,this.container),t&&h.addClass(this.container,t)}}onRender(){h.addClass(this.container,this.prefixClassName(`edge-tool-${this.type}-arrowhead`)),this.update()}update(){const e=this.ratio,t=this.cellView,n=t.getTangentAtRatio(e),r=n?n.start:t.getPointAtRatio(e),i=n&&n.vector().vectorAngle(new gr(1,0))||0;if(!r)return this;const a=h.createSVGMatrix().translate(r.x,r.y).rotate(i);return h.transform(this.container,a,{absolute:!0}),this}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.cellView;if(t.can("arrowheadMovable")){t.cell.startBatch("move-arrowhead",{ui:!0,toolId:this.cid});const n=this.graph.snapToGrid(e.clientX,e.clientY),r=t.prepareArrowheadDragging(this.type,{x:n.x,y:n.y,options:Object.assign(Object.assign({},this.options),{toolId:this.cid})});this.cellView.setEventData(e,r),this.delegateDocumentEvents(this.options.documentEvents,e.data),t.graph.view.undelegateEvents(),this.container.style.pointerEvents="none"}this.focus()}onMouseMove(e){const t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY);this.cellView.onMouseMove(t,n.x,n.y),this.update()}onMouseUp(e){this.undelegateDocumentEvents();const t=this.normalizeEvent(e),n=this.cellView,r=this.graph.snapToGrid(t.clientX,t.clientY);n.onMouseUp(t,r.x,r.y),this.graph.view.delegateEvents(),this.blur(),this.container.style.pointerEvents="",n.cell.stopBatch("move-arrowhead",{ui:!0,toolId:this.cid})}}fg.defaults=Object.assign(Object.assign({},Wp.getDefaults()),{tagName:"path",isSVGElement:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}});class dg extends fg{}dg.defaults=Object.assign(Object.assign({},fg.getDefaults()),{name:"source-arrowhead",type:"source",ratio:0,attrs:{d:"M 10 -8 -10 0 10 8 Z",fill:"#333",stroke:"#fff","stroke-width":2,cursor:"move"}});class pg extends fg{}pg.defaults=Object.assign(Object.assign({},fg.getDefaults()),{name:"target-arrowhead",type:"target",ratio:1,attrs:{d:"M -10 -8 10 0 -10 8 Z",fill:"#333",stroke:"#fff","stroke-width":2,cursor:"move"}});
//# sourceMappingURL=arrowhead.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/boundary.js
class gg extends Wp{onRender(){if(h.addClass(this.container,this.prefixClassName("cell-tool-boundary")),this.options.attrs){const e=this.options.attrs,{class:t}=e,n=M(e,["class"]);h.attr(this.container,h.kebablizeAttrs(n)),t&&h.addClass(this.container,t)}this.update()}update(){const e=this.cellView,t=this.options,{useCellGeometry:n,rotate:r}=t,a=i.normalizeSides(t.padding);let o=cg(e,n);this.parent.options.local&&(o=o.translate({x:-o.x,y:-o.y})),o=o.moveAndExpand({x:-a.left,y:-a.top,width:a.left+a.right,height:a.top+a.bottom});const s=e.cell;if(s.isNode()){const e=s.getAngle();if(null!=e)if(r&&!this.parent.options.local){const t=s.getBBox().getCenter();h.rotate(this.container,e,t.x,t.y,{absolute:!0})}else r||(o=o.bbox(e))}return h.attr(this.container,o.toJSON()),this}}gg.defaults=Object.assign(Object.assign({},Wp.getDefaults()),{name:"boundary",tagName:"rect",padding:10,useCellGeometry:!0,attrs:{fill:"none",stroke:"#333","stroke-width":.5,"stroke-dasharray":"5, 5","pointer-events":"none"}});
//# sourceMappingURL=boundary.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/button.js
class mg extends Wp{onRender(){h.addClass(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const e=this.cellView.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();h.transform(this.container,e,{absolute:!0})}getNodeMatrix(){const e=this.cellView,t=this.options;let{x:n=0,y:r=0}=t;const{offset:a,useCellGeometry:o,rotate:s}=t;let c=cg(e,o);const l=e.cell.getAngle();s||(c=c.bbox(l));let u=0,f=0;"number"==typeof a?(u=a,f=a):"object"==typeof a&&(u=a.x,f=a.y),n=i.normalizePercentage(n,c.width),r=i.normalizePercentage(r,c.height);let d=h.createSVGMatrix();return d=this.parent.options.local?d.translate(c.width/2,c.height/2):d.translate(c.x+c.width/2,c.y+c.height/2),s&&(d=d.rotate(l)),d=d.translate(n+u-c.width/2,r+f-c.height/2),d}getEdgeMatrix(){const e=this.cellView,t=this.options,{offset:n=0,distance:r=0,rotate:a}=t,o=i.normalizePercentage(r,1),s=o>=0&&o<=1?e.getTangentAtRatio(o):e.getTangentAtLength(o),c=s?s.start:e.getConnection().start,l=s&&s.vector().vectorAngle(new gr(1,0))||0;let u=h.createSVGMatrix().translate(c.x,c.y).rotate(l);return u="object"==typeof n?u.translate(n.x||0,n.y||0):u.translate(0,n),a||(u=u.rotate(-l)),u}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.options.onClick;"function"==typeof t&&s.call(t,this.cellView,{e:e,view:this.cellView,cell:this.cellView.cell,btn:this})}}mg.defaults=Object.assign(Object.assign({},Wp.getDefaults()),{name:"button",useCellGeometry:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}});class vg extends mg{}vg.defaults=Object.assign(Object.assign({},mg.getDefaults()),{name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,useCellGeometry:!0,onClick({view:e,btn:t}){t.parent.remove(),e.cell.remove({ui:!0,toolId:t.cid})}});
//# sourceMappingURL=button.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/editor.js
class yg extends Wp{constructor(){super(...arguments),this.labelIndex=-1,this.distance=.5,this.dblClick=this.onCellDblClick.bind(this)}onRender(){const e=this.cellView;e&&e.on("cell:dblclick",this.dblClick)}createElement(){const e=[this.prefixClassName((this.cell.isEdge()?"edge":"node")+"-tool-editor"),this.prefixClassName("cell-tool-editor")];this.editor=Hp("div",!1),this.addClass(e,this.editor),this.editor.contentEditable="true",this.container.appendChild(this.editor)}removeElement(){this.undelegateDocumentEvents(),this.editor&&(this.container.removeChild(this.editor),this.editor=null)}updateEditor(){const{cell:e,editor:t}=this;if(!t)return;const{style:n}=t;e.isNode()?this.updateNodeEditorTransform():e.isEdge()&&this.updateEdgeEditorTransform();
// set font style
const{attrs:r}=this.options;n.fontSize=`${r.fontSize}px`,n.fontFamily=r.fontFamily,n.color=r.color,n.backgroundColor=r.backgroundColor;
// set init value
const i=this.getCellText()||"";// clear display value when edit status because char ghosting.
return t.innerText=i,this.setCellText(""),this}updateNodeEditorTransform(){const{graph:e,cell:t,editor:n}=this;if(!n)return;let r=gr.create(),a=20,o="",{x:s,y:c}=this.options;const{width:l,height:u}=this.options;if(void 0!==s&&void 0!==c){const e=t.getBBox();s=i.normalizePercentage(s,e.width),c=i.normalizePercentage(c,e.height),r=e.topLeft.translate(s,c),a=e.width-2*s}else{const e=t.getBBox();r=e.center,a=e.width-4,o="translate(-50%, -50%)"}const h=e.scale(),{style:f}=n;r=e.localToGraph(r),f.left=`${r.x}px`,f.top=`${r.y}px`,f.transform=`scale(${h.sx}, ${h.sy}) ${o}`,f.minWidth=`${a}px`,"number"==typeof l&&(f.width=`${l}px`),"number"==typeof u&&(f.height=`${u}px`)}updateEdgeEditorTransform(){if(!this.event)return;const{graph:e,editor:t}=this;if(!t)return;let n=gr.create(),r=20;const{style:i}=t,a=this.event.target,o=a.parentElement;if(o&&h.hasClass(o,this.prefixClassName("edge-label"))){const e=o.getAttribute("data-index")||"0";this.labelIndex=parseInt(e,10);const t=o.getAttribute("transform"),{translation:i}=h.parseTransformString(t);n=new gr(i.tx,i.ty),r=f.getBBox(a).width}else{if(!this.options.labelAddable)return this;n=e.clientToLocal(gr.create(this.event.clientX,this.event.clientY));const t=this.cellView.path.closestPointLength(n);this.distance=t,this.labelIndex=-1}n=e.localToGraph(n);const s=e.scale();i.left=`${n.x}px`,i.top=`${n.y}px`,i.minWidth=`${r}px`,i.transform=`scale(${s.sx}, ${s.sy}) translate(-50%, -50%)`}updateCell(){const e=this.editor.innerText.replace(/\n$/,"")||"";
// set value, when value is null, we will remove label in edge
this.setCellText(""!==e?e:null),
// remove tool
this.removeElement()}onDocumentMouseUp(e){this.editor&&e.target!==this.editor&&this.updateCell()}onMouseLeave(){this.editor&&this.updateCell()}onCellDblClick({e:e}){this.editor||(e.stopPropagation(),this.removeElement(),this.event=e,this.createElement(),this.updateEditor(),this.autoFocus(),this.delegateDocumentEvents(this.options.documentEvents))}onMouseDown(e){e.stopPropagation()}autoFocus(){setTimeout((()=>{this.editor&&(this.editor.focus(),this.selectText())}))}selectText(){if(window.getSelection&&this.editor){const e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}getCellText(){const{getText:e}=this.options;if("function"==typeof e)return s.call(e,this.cellView,{cell:this.cell,index:this.labelIndex});if("string"==typeof e){if(this.cell.isNode())return this.cell.attr(e);if(this.cell.isEdge()&&-1!==this.labelIndex)return this.cell.prop(`labels/${this.labelIndex}/attrs/${e}`)}}setCellText(e){const t=this.options.setText;if("function"!=typeof t){if("string"==typeof t){if(this.cell.isNode())return void(null!==e&&this.cell.attr(t,e));if(this.cell.isEdge()){const n=this.cell;if(-1===this.labelIndex){if(e){const r={position:{distance:this.distance},attrs:{}};l.setByPath(r,`attrs/${t}`,e),n.appendLabel(r)}}else null!==e?n.prop(`labels/${this.labelIndex}/attrs/${t}`,e):"number"==typeof this.labelIndex&&n.removeLabelAt(this.labelIndex)}}}else s.call(t,this.cellView,{cell:this.cell,value:e,index:this.labelIndex,distance:this.distance})}onRemove(){const e=this.cellView;e&&e.off("cell:dblclick",this.dblClick),this.removeElement()}}yg.defaults=Object.assign(Object.assign({},Wp.getDefaults()),{tagName:"div",isSVGElement:!1,events:{mousedown:"onMouseDown",touchstart:"onMouseDown",mouseleave:"onMouseLeave"},documentEvents:{mouseup:"onDocumentMouseUp",touchend:"onDocumentMouseUp",touchcancel:"onDocumentMouseUp"}});class Ag extends yg{}Ag.defaults=l.merge({},yg.defaults,{attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:"text/text",setText:"text/text"});class bg extends yg{}bg.defaults=l.merge({},yg.defaults,{attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},labelAddable:!0,getText:"label/text",setText:"label/text"});
//# sourceMappingURL=editor.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/segments.js
class wg extends Wp{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}getPoints(){const e=this.cellView.routePoints;if(e.length<=2)return e;const t=[e[0]];for(let n=1;n<e.length-1;n++){const r=t[t.length-1],i=e[n],a=e[n+1];0!==(i.x-r.x)*(a.y-r.y)-(i.y-r.y)*(a.x-r.x)&&t.push(i)}return t.push(e[e.length-1]),t}onRender(){h.addClass(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,t=[...this.getPoints()];t.unshift(e.sourcePoint),t.push(e.targetPoint);for(let e=0,n=t.length;e<n-1;e+=1){const n=t[e],r=t[e+1],i=this.renderHandle(n,r,e);this.stamp(i.container),this.handles.push(i)}return this}renderHandle(e,t,n){const r=this.options.createHandle({index:n,graph:this.graph,guard:e=>this.guard(e),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(r),this.updateHandle(r,e,t),this.container.appendChild(r.container),this.startHandleListening(r),r}startHandleListening(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}stopHandleListening(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach((e=>{this.stopHandleListening(e),e.remove()}))}shiftHandleIndexes(e){const t=this.handles;for(let n=0,r=t.length;n<r;n+=1)t[n].options.index+=e}resetAnchor(e,t){const n=this.cellView.cell,r={ui:!0,toolId:this.cid};t?n.prop([e,"anchor"],t,r):n.removeProp([e,"anchor"],r)}snapHandle(e,t,n){const r=e.options.axis,i=e.options.index,a=this.cellView.cell.getVertices(),o=a[i-2]||n.sourceAnchor,s=a[i+1]||n.targetAnchor,c=this.options.snapRadius;return Math.abs(t[r]-o[r])<c?t[r]=o[r]:Math.abs(t[r]-s[r])<c&&(t[r]=s[r]),t}onHandleChanging({handle:e,e:t}){const n=this.graph,r=this.options,i=this.cellView,a=r.anchor,o=e.options.axis,c=e.options.index-1,u=this.getEventData(t),h=this.normalizeEvent(t),f=n.snapToGrid(h.clientX,h.clientY),d=this.snapHandle(e,f.clone(),u),p=l.cloneDeep(this.vertices);let g=p[c],m=p[c+1];
// First Segment
const v=i.sourceView,y=i.sourceBBox;let A=!1,b=!1;if(g?0===c?y.containsPoint(g)?(p.shift(),this.shiftHandleIndexes(-1),A=!0):(g[o]=d[o],b=!0):g[o]=d[o]:(g=i.sourceAnchor.toJSON(),g[o]=d[o],y.containsPoint(g)?A=!0:(p.unshift(g),this.shiftHandleIndexes(1),b=!0)),"function"==typeof a&&v){if(A){const e=u.sourceAnchor.clone();e[o]=d[o];const t=s.call(a,i,e,v,i.sourceMagnet||v.container,"source",i,this);this.resetAnchor("source",t)}b&&this.resetAnchor("source",u.sourceAnchorDef)}
// Last segment
const w=i.targetView,x=i.targetBBox;let C=!1,_=!1;if(m?c===p.length-2?x.containsPoint(m)?(p.pop(),C=!0):(m[o]=d[o],_=!0):m[o]=d[o]:(m=i.targetAnchor.toJSON(),m[o]=d[o],x.containsPoint(m)?C=!0:(p.push(m),_=!0)),"function"==typeof a&&w){if(C){const e=u.targetAnchor.clone();e[o]=d[o];const t=s.call(a,i,e,w,i.targetMagnet||w.container,"target",i,this);this.resetAnchor("target",t)}_&&this.resetAnchor("target",u.targetAnchorDef)}gr.equalPoints(p,this.vertices)||this.cellView.cell.setVertices(p,{ui:!0,toolId:this.cid}),this.updateHandle(e,g,m,0),r.stopPropagation||i.notifyMouseMove(h,f.x,f.y)}onHandleChange({handle:e,e:t}){const n=this.options,r=this.handles,i=this.cellView,a=e.options.index;if(Array.isArray(r)){for(let e=0,t=r.length;e<t;e+=1)e!==a&&r[e].hide();if(this.focus(),this.setEventData(t,{sourceAnchor:i.sourceAnchor.clone(),targetAnchor:i.targetAnchor.clone(),sourceAnchorDef:l.cloneDeep(this.cell.prop(["source","anchor"])),targetAnchorDef:l.cloneDeep(this.cell.prop(["target","anchor"]))}),this.cell.startBatch("move-segment",{ui:!0,toolId:this.cid}),!n.stopPropagation){const e=this.normalizeEvent(t),n=this.graph.snapToGrid(e.clientX,e.clientY);i.notifyMouseDown(e,n.x,n.y)}}}onHandleChanged({e:e}){const t=this.options,n=this.cellView;t.removeRedundancies&&n.removeRedundantLinearVertices({ui:!0,toolId:this.cid});const r=this.normalizeEvent(e),i=this.graph.snapToGrid(r.clientX,r.clientY);this.render(),this.blur(),this.cell.stopBatch("move-segment",{ui:!0,toolId:this.cid}),t.stopPropagation||n.notifyMouseUp(r,i.x,i.y),n.checkMouseleave(r),t.onChanged&&t.onChanged({edge:n.cell,edgeView:n})}updateHandle(e,t,n,r=0){const i=this.options.precision||0,a=Math.abs(t.x-n.x)<i,o=Math.abs(t.y-n.y)<i;if(a||o){const i=new vr(t,n);if(i.length()<this.options.threshold)e.hide();else{const t=i.getCenter(),n=a?"x":"y";t[n]+=r||0;const o=i.vector().vectorAngle(new gr(1,0));e.updatePosition(t.x,t.y,o,this.cellView),e.show(),e.options.axis=n}}else e.hide()}onRemove(){this.resetHandles()}}wg.defaults=Object.assign(Object.assign({},Wp.defaults),{name:"segments",precision:.5,threshold:40,snapRadius:10,stopPropagation:!0,removeRedundancies:!0,attrs:{width:20,height:8,x:-10,y:-4,rx:4,ry:4,fill:"#333",stroke:"#fff","stroke-width":2},createHandle:e=>new xg(e),anchor:sg});class xg extends Gp{constructor(e){super(),this.options=e,this.render(),this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"})}render(){this.container=Hp("rect",!0);const e=this.options.attrs;if("function"==typeof e){const t=wg.getDefaults();this.setAttrs(Object.assign(Object.assign({},t.attrs),e(this)))}else this.setAttrs(e);this.addClass(this.prefixClassName("edge-tool-segment"))}updatePosition(e,t,n,r){const i=r.getClosestPoint(new gr(e,t))||new gr(e,t);let a=h.createSVGMatrix().translate(i.x,i.y);if(i.equals({x:e,y:t}))a=a.rotate(n);else{let n=new vr(e,t,i.x,i.y).vector().vectorAngle(new gr(1,0));0!==n&&(n+=90),a=a.rotate(n)}this.setAttrs({transform:h.matrixToTransformString(a),cursor:n%180==0?"row-resize":"col-resize"})}onMouseDown(e){this.options.guard(e)||(this.trigger("change",{e:e,handle:this}),e.stopPropagation(),e.preventDefault(),this.options.graph.view.undelegateEvents(),this.delegateDocumentEvents({mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.data))}onMouseMove(e){this.emit("changing",{e:e,handle:this})}onMouseUp(e){this.emit("changed",{e:e,handle:this}),this.undelegateDocumentEvents(),this.options.graph.view.delegateEvents()}show(){this.container.style.display=""}hide(){this.container.style.display="none"}}
//# sourceMappingURL=segments.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/vertices.js
const Cg=zf.prefix("edge-tool-vertex-path");class _g extends Wp{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}onRender(){return this.addClass(this.prefixClassName("edge-tool-vertices")),this.options.addable&&this.updatePath(),this.resetHandles(),this.renderHandles(),this}update(){return this.vertices.length===this.handles.length?this.updateHandles():(this.resetHandles(),this.renderHandles()),this.options.addable&&this.updatePath(),this}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach((e=>{this.stopHandleListening(e),e.remove()}))}renderHandles(){const e=this.vertices;for(let t=0,n=e.length;t<n;t+=1){const n=e[t],r=this.options.createHandle,i=this.options.processHandle,a=r({index:t,graph:this.graph,guard:e=>this.guard(e)// eslint-disable-line no-loop-func
,attrs:this.options.attrs||{}});i&&i(a),a.updatePosition(n.x,n.y),this.stamp(a.container),this.container.appendChild(a.container),this.handles.push(a),this.startHandleListening(a)}}updateHandles(){const e=this.vertices;for(let t=0,n=e.length;t<n;t+=1){const n=e[t],r=this.handles[t];r&&r.updatePosition(n.x,n.y)}}updatePath(){const e=this.childNodes.connection;e&&e.setAttribute("d",this.cellView.getConnectionPathData())}startHandleListening(e){const t=this.cellView;t.can("vertexMovable")&&(e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)),t.can("vertexDeletable")&&e.on("remove",this.onHandleRemove,this)}stopHandleListening(e){const t=this.cellView;t.can("vertexMovable")&&(e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)),t.can("vertexDeletable")&&e.off("remove",this.onHandleRemove,this)}getNeighborPoints(e){const t=this.cellView,n=this.vertices,r=e>0?n[e-1]:t.sourceAnchor,i=e<n.length-1?n[e+1]:t.targetAnchor;return{prev:gr.create(r),next:gr.create(i)}}getMouseEventArgs(e){const t=this.normalizeEvent(e),{x:n,y:r}=this.graph.snapToGrid(t.clientX,t.clientY);return{e:t,x:n,y:r}}onHandleChange({e:e}){this.focus();const t=this.cellView;if(t.cell.startBatch("move-vertex",{ui:!0,toolId:this.cid}),!this.options.stopPropagation){const{e:n,x:r,y:i}=this.getMouseEventArgs(e);this.eventData(n,{start:{x:r,y:i}}),t.notifyMouseDown(n,r,i)}}onHandleChanging({handle:e,e:t}){const n=this.cellView,r=e.options.index,{e:i,x:a,y:o}=this.getMouseEventArgs(t),s={x:a,y:o};this.snapVertex(s,r),n.cell.setVertexAt(r,s,{ui:!0,toolId:this.cid}),e.updatePosition(s.x,s.y),this.options.stopPropagation||n.notifyMouseMove(i,a,o)}stopBatch(e){this.cell.stopBatch("move-vertex",{ui:!0,toolId:this.cid}),e&&this.cell.stopBatch("add-vertex",{ui:!0,toolId:this.cid})}onHandleChanged({e:e}){const t=this.options,n=this.cellView;if(t.addable&&this.updatePath(),!t.removeRedundancies)return void this.stopBatch(this.eventData(e).vertexAdded);n.removeRedundantLinearVertices({ui:!0,toolId:this.cid})&&this.render(),this.blur(),this.stopBatch(this.eventData(e).vertexAdded);const{e:r,x:i,y:a}=this.getMouseEventArgs(e);if(!this.options.stopPropagation){n.notifyMouseUp(r,i,a);const{start:e}=this.eventData(r);if(e){const{x:t,y:o}=e;t===i&&o===a&&n.onClick(r,i,a)}}n.checkMouseleave(r),t.onChanged&&t.onChanged({edge:n.cell,edgeView:n})}snapVertex(e,t){const n=this.options.snapRadius||0;if(n>0){const r=this.getNeighborPoints(t),i=r.prev,a=r.next;Math.abs(e.x-i.x)<n?e.x=i.x:Math.abs(e.x-a.x)<n&&(e.x=a.x),Math.abs(e.y-i.y)<n?e.y=r.prev.y:Math.abs(e.y-a.y)<n&&(e.y=a.y)}}onHandleRemove({handle:e,e:t}){if(this.options.removable){const n=e.options.index,r=this.cellView;r.cell.removeVertexAt(n,{ui:!0}),this.options.addable&&this.updatePath(),r.checkMouseleave(this.normalizeEvent(t))}}allowAddVertex(e){const t=this.guard(e),n=this.options.addable&&this.cellView.can("vertexAddable"),r=!this.options.modifiers||lu(e,this.options.modifiers);return!t&&n&&r}onPathMouseDown(e){const t=this.cellView;if(!this.allowAddVertex(e))return;e.stopPropagation(),e.preventDefault();const n=this.normalizeEvent(e),r=this.graph.snapToGrid(n.clientX,n.clientY).toJSON();t.cell.startBatch("add-vertex",{ui:!0,toolId:this.cid});const i=t.getVertexIndex(r.x,r.y);this.snapVertex(r,i),t.cell.insertVertex(r,i,{ui:!0,toolId:this.cid}),this.render();const a=this.handles[i];this.eventData(n,{vertexAdded:!0}),a.onMouseDown(n)}onRemove(){this.resetHandles()}}_g.defaults=Object.assign(Object.assign({},Wp.getDefaults()),{name:"vertices",snapRadius:20,addable:!0,removable:!0,removeRedundancies:!0,stopPropagation:!0,attrs:{r:6,fill:"#333",stroke:"#fff",cursor:"move","stroke-width":2},createHandle:e=>new Ig(e),markup:[{tagName:"path",selector:"connection",className:Cg,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${Cg}`]:"onPathMouseDown",[`touchstart .${Cg}`]:"onPathMouseDown"}});class Ig extends Gp{get graph(){return this.options.graph}constructor(e){super(),this.options=e,this.render(),this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDoubleClick"})}render(){this.container=Hp("circle",!0);const e=this.options.attrs;if("function"==typeof e){const t=_g.getDefaults();this.setAttrs(Object.assign(Object.assign({},t.attrs),e(this)))}else this.setAttrs(e);this.addClass(this.prefixClassName("edge-tool-vertex"))}updatePosition(e,t){this.setAttrs({cx:e,cy:t})}onMouseDown(e){this.options.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.delegateDocumentEvents({mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.data),this.emit("change",{e:e,handle:this}))}onMouseMove(e){this.emit("changing",{e:e,handle:this})}onMouseUp(e){this.emit("changed",{e:e,handle:this}),this.undelegateDocumentEvents(),this.graph.view.delegateEvents()}onDoubleClick(e){this.emit("remove",{e:e,handle:this})}}
//# sourceMappingURL=vertices.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/tool/index.js
/**
 * ========== NodeTool ==========
 */const Eg={boundary:gg,button:mg,"button-remove":vg,"node-editor":Ag},kg=uu.create({type:"node tool",process(e,t){if("function"==typeof t)return t;let n=Wp;const{inherit:r}=t,i=M(t,["inherit"]);if(r){const e=this.get(r);null==e?this.onNotFound(r,"inherited"):n=e}return null==i.name&&(i.name=e),n.define.call(n,i)}});kg.register(Eg,!0);
/**
 * ======== EdgeTool ==========
 */
const Sg={boundary:gg,vertices:_g,segments:wg,button:mg,"button-remove":vg,"source-anchor":ug,"target-anchor":hg,"source-arrowhead":dg,"target-arrowhead":pg,"edge-editor":bg},Bg=uu.create({type:"edge tool",process(e,t){if("function"==typeof t)return t;let n=Wp;const{inherit:r}=t,i=M(t,["inherit"]);if(r){const e=this.get(r);null==e?this.onNotFound(r,"inherited"):n=e}return null==i.name&&(i.name=e),n.define.call(n,i)}});Bg.register(Sg,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/registry/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/animation/animationEvent.js
/**
 * Web Animation API 的 AnimationPlaybackEvent 实现
 * 参考: https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect
 */
class Mg{constructor(e,t,n,r){var i;this.target=e,this.cell=null===(i=this.target.effect)||void 0===i?void 0:i.target,this.type=t,this.bubbles=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=0,this.timeStamp=performance.now(),this.currentTime=n,this.timelineTime=r}}
//# sourceMappingURL=animationEvent.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/animation/utils.js
function Tg(e){return"offset"!==e&&"easing"!==e&&"composite"!==e&&"computedOffset"!==e}function Og(e,t){return"reverse"===e||"alternate"===e&&t%2==1||"alternate-reverse"===e&&t%2==0}
//# sourceMappingURL=utils.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/animation/animation.js
/**
 * Web Animation API 的 Animation 实现，功能完善实现中
 * 参考: https://developer.mozilla.org/en-US/docs/Web/API/Animation
 */class Dg{constructor(e,t){this._effect=null,this._currentTime=null,this._playbackRate=1,this._playState="idle",this._rafId=null,this._startTime=null,this._pausedTime=null,this._timeline=null,this.id="",this.onfinish=null,this.oncancel=null,this._effect=e,this._timeline=null!=t?t:document.timeline}get effect(){return this._effect}get currentTime(){return this._currentTime}set currentTime(e){const t=this._timeline.currentTime;i.isNumber(t)&&(this._startTime=t-e,this._currentTime=e)}get playbackRate(){return this._playbackRate}set playbackRate(e){const t=this._playbackRate;this._playbackRate=e;const n=this._timeline.currentTime;
// 如果正在运行，调整开始时间以保持视觉连续性
if("running"===this._playState&&null!=this._startTime&&i.isNumber(n)){const r=(n-this._startTime)*t;this._startTime=n-r/e}}get playState(){return this._playState}get timeline(){return this._timeline}play(){if("running"===this._playState||!this._effect)return;const e=this._timeline.currentTime;i.isNumber(e)&&("paused"===this._playState?(
// 从暂停状态恢复
this._startTime=e-this._pausedTime/this._playbackRate,this._pausedTime=null):(
// 新开始播放
this._currentTime=0,this._startTime=e),this._playState="running",this._tick())}pause(){"running"===this._playState&&(this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this._pausedTime=this._currentTime,this._playState="paused")}finish(){var e;if(!this._effect)return;const t=this._effect.getComputedTiming(),n=this._playbackRate<0,{duration:r,endTime:i,direction:a,fill:o,iterations:s}=t;
// 根据 fill 模式设置最终状态
if("forwards"===o||"both"===o){const e=Og(a,n?0:s-1);this._effect.apply(e||n?0:r)}
// 清除所有动画效果
else"none"!==o&&"backwards"!==o||this._effect.apply(null);this._currentTime=n?0:i,this._playState="finished",this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null);const c=new Mg(this,"finish",this._currentTime,this._timeline.currentTime);null===(e=this.onfinish)||void 0===e||e.call(this,c),this._effect.target.notify("animation:finish",c)}cancel(){var e;if(!this._effect)return;this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this._playState="idle",this._currentTime=null,this._startTime=null,this._pausedTime=null,this._effect.apply(null);const t=new Mg(this,"cancel",this._currentTime,this._timeline.currentTime);null===(e=this.oncancel)||void 0===e||e.call(this,t),this._effect.target.notify("animation:cancel",t)}updatePlaybackRate(e){this.playbackRate=e}reverse(){this.playbackRate=-1*this.playbackRate}_tick(){const e=this._timeline.currentTime;if("running"!==this._playState||!this._effect||!i.isNumber(e))return;const t=this._effect.getComputedTiming(),{duration:n,delay:r,iterations:a,direction:o,endTime:s}=t,c=(e-this._startTime)*this._playbackRate,l=c-r;let u=Math.floor(l/n);if(c>=s||c<0||n<=0)this.finish();else{if(c>=r){
// 计算当前迭代的进度
let e=l%n;u=Math.min(u,a-1),
// 处理播放方向
Og(o,u)&&(e=n-e),
// 应用动画效果
this._effect.apply(e)}this._currentTime=c,this._rafId=requestAnimationFrame((()=>this._tick()))}}}
//# sourceMappingURL=animation.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/animation/animationManager.js
class Pg{constructor(){this.animations=[]}addAnimation(e){this.animations.push(e)}getAnimations(){return this.animations}cancelAnimations(){this.animations.forEach((e=>{e.cancel()}))}}
//# sourceMappingURL=animationManager.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/animation/keyframeEffect.js
/**
 * Web Animation API 的 KeyframeEffect 实现，功能完善实现中
 * 参考: https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect
 */class Lg{constructor(e,t,n){
// biome-ignore lint/suspicious/noExplicitAny: <属性类型存在多种可能>
this._originProps={},this._target=e,this._options=i.isNumber(n)?{duration:n}:Object.assign({},n),this.setKeyframes(t)}get target(){return this._target}getKeyframes(){if(!this._keyframes||0===this._keyframes.length)return[];
// 标准化关键帧数据
let e=[];
// 处理对象形式的关键帧,eg: {'position/x': [0, 100],'position/y': 100 }
if(Array.isArray(this._keyframes)&&(e=[...this._keyframes]),l.isPlainObject(this._keyframes)){const t=Object.values(this._keyframes).map((e=>r.castArray(e).length)),n=Math.max(...t);for(let t=0;t<n;t++){const n={};Object.entries(this._keyframes).forEach((([e,i])=>{const a=r.castArray(i)[t];Tg(e)&&null!=a&&(n[e]=a)})),e.push(n)}}return e=e.map(((e,t,n)=>{var r,i,a;const o=null!=e?e:{},s={};
// biome-ignore lint/suspicious/noExplicitAny: <属性类型存在多种可能>
return s.offset=o.offset,
// 确保每个关键帧都有 easing
s.easing=null!==(a=null!==(r=o.easing)&&void 0!==r?r:null===(i=n[t-1])||void 0===i?void 0:i.easing)&&void 0!==a?a:this.getComputedTiming().easing,
// 复制其他属性
Object.keys(o).forEach((e=>{Tg(e)&&(s[e]=o[e])})),s})),
// 计算 computedOffset
e=e.map(((t,n)=>(
// 如果 offset 未定义或为 null，则自动计算
null==t.offset?n===e.length-1?t.computedOffset=1:t.computedOffset=0===n?0:n/(e.length-1):t.computedOffset=t.offset,t))),e}setKeyframes(e){this._keyframes=e,this._computedKeyframes=this.getKeyframes(),
// 收集动画属性的原始值
this._computedKeyframes.forEach((e=>{Object.keys(e).forEach((e=>{Tg(e)&&null==this._originProps[e]&&(this._originProps[e]=this.target.getPropByPath(e))}))}))}getTiming(){return l.defaults(this._options,Qg)}getComputedTiming(){const e=this.getTiming(),t=e.duration*e.iterations;return Object.assign(Object.assign({},e),{activeDuration:t,endTime:t+e.delay})}apply(e){var t,n,r,a;if(!this._target||!this._computedKeyframes.length)return;
// 参数为null则回到初始状态
if(null==e)return void Object.entries(this._originProps).forEach((([e,t])=>{this.target.setPropByPath(e,t)}));const o=this.getComputedTiming().duration;if(o<0)return;
// 计算进度 (0-1)
const s=Math.min(e/o,1),l=this._computedKeyframes;
// 找到当前进度对应的关键帧
if(0===l.length)return;let u={computedOffset:0},h={computedOffset:1};for(const e of l)if(0===s&&0===e.computedOffset&&(u=e),1===s&&1===e.computedOffset&&(h=e),e.computedOffset<s&&(u=e),e.computedOffset>s){h=e;break}
// 计算两个关键帧之间的插值
const f=u.computedOffset,g=(s-f)/(h.computedOffset-f),m=null!==(t=u.easing)&&void 0!==t?t:h.easing,v=c.camelCase(m),y=null!==(n=p[v])&&void 0!==n?n:p.linear;
// 应用插值后的样式
for(const e in Object.assign(Object.assign({},u),h))if(Tg(e)&&(null!=u[e]||null!=h[e])){const t=null!==(r=u[e])&&void 0!==r?r:this._originProps[e],n=null!==(a=h[e])&&void 0!==a?a:this._originProps[e];let o;
// TODO: rgb color
o=String(t).startsWith("#")?d.color:e.endsWith("transform")&&!i.isNumber(t)?d.transform:dl.test(String(t))||dl.test(String(n))?d.unit:d.number;const s=o(t,n)(y(g));this.target.setPropByPath(e,s)}}}const Qg={delay:0,direction:"normal",duration:0,easing:"linear",fill:"none",iterations:1};
//# sourceMappingURL=keyframeEffect.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/animation/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/store.js
class Rg extends ou{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(l.cloneDeep(e)),this.changed={}}mutate(e,t={}){const n=!0===t.unset,r=!0===t.silent,i=[],a=this.changing;this.changing=!0,a||(this.previous=l.cloneDeep(this.data),this.changed={});const o=this.data,s=this.previous,c=this.changed;if(Object.keys(e).forEach((t=>{const r=t,a=e[r];l.isEqual(o[r],a)||i.push(r),l.isEqual(s[r],a)?delete c[r]:c[r]=a,n?delete o[r]:o[r]=a})),!r&&i.length>0&&(this.pending=!0,this.pendingOptions=t,i.forEach((e=>{this.emit("change:*",{key:e,options:t,store:this,current:o[e],previous:s[e]})}))),a)return this;if(!r)
// Changes can be recursively nested within `"change"` events.
for(;this.pending;)this.pending=!1,this.emit("changed",{current:o,previous:s,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}get(e,t){if(null==e)return this.data;const n=this.data[e];return null==n?t:n}getPrevious(e){if(this.previous){const t=this.previous[e];return null==t?void 0:t}}set(e,t,n){return null!=e&&("object"==typeof e?this.mutate(e,t):this.mutate({[e]:t},n)),this}remove(e,t){const n=void 0,r={};let i;if("string"==typeof e)r[e]=n,i=t;else if(Array.isArray(e))e.forEach((e=>r[e]=n)),i=t;else{
// eslint-disable-next-line
for(const e in this.data)r[e]=n;i=e}return this.mutate(r,Object.assign(Object.assign({},i),{unset:!0})),this}getByPath(e){return l.getByPath(this.data,e,"/")}setByPath(e,t,n={}){const r="/",i=Array.isArray(e)?[...e]:e.split(r),a=Array.isArray(e)?e.join(r):e,o=i[0],s=i.length;if(n.propertyPath=a,n.propertyValue=t,n.propertyPathArray=i,1===s)this.set(o,t,n);else{const a={};let c=a,u=o;
// Initialize the nested object. Subobjects are either arrays or objects.
// An empty array is created if the sub-key is an integer. Otherwise, an
// empty object is created.
for(let e=1;e<s;e+=1){const t=i[e],n=Number.isFinite(Number(t));c=c[u]=n?[]:{},u=t}
// Fills update with the `value` on `path`.
l.setByPath(a,i,t,r);const h=l.cloneDeep(this.data);
// If rewrite mode enabled, we replace value referenced by path with the
// new one (we don't merge).
n.rewrite&&l.unsetByPath(h,e,r);const f=l.merge(h,a);this.set(o,f[o],n)}return this}removeByPath(e,t){const n=Array.isArray(e)?e:e.split("/"),r=n[0];if(1===n.length)this.remove(r,t);else{const e=n.slice(1),i=l.cloneDeep(this.get(r));i&&l.unsetByPath(i,e),this.set(r,i,t)}return this}hasChanged(e){return null==e?Object.keys(this.changed).length>0:e in this.changed}
/**
     * Returns an object containing all the data that have changed,
     * or `null` if there are no changes. Useful for determining what
     * parts of a view need to be updated.
     */getChanges(e){if(null==e)return this.hasChanged()?l.cloneDeep(this.changed):null;const t=this.changing?this.previous:this.data,n={};let r;
// eslint-disable-next-line
for(const i in e){const a=e[i];l.isEqual(t[i],a)||(n[i]=a,r=!0)}return r?l.cloneDeep(n):null}
/**
     * Returns a copy of the store's `data` object.
     */toJSON(){return l.cloneDeep(this.data)}clone(){return new(0,this.constructor)(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}T([au()],Rg.prototype,"dispose",null);
//# sourceMappingURL=store.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/cell.js
class jg extends ou{static isCell(e){if(null==e)return!1;if(e instanceof jg)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===jg.toStringTag)&&"function"==typeof n.isNode&&"function"==typeof n.isEdge&&"function"==typeof n.prop&&"function"==typeof n.attr}static normalizeTools(e){if("string"==typeof e)return{items:[e]};if(Array.isArray(e))return{items:e};if(e.items)return e;if(Reflect.has(e,"local")){const t=e,{local:n}=t;return{local:n,items:[M(t,["local"])]}}return{items:[e]}}static getCommonAncestor(...e){const t=e.filter((e=>null!=e)).map((e=>e.getAncestors())).sort(((e,t)=>e.length-t.length));return t.shift().find((e=>t.every((t=>t.includes(e)))))||null}static getCellsBBox(e,t={}){let n=null;for(let r=0,i=e.length;r<i;r+=1){const i=e[r];let a=i.getBBox(t);if(a){if(i.isNode()){const e=i.getAngle();null!=e&&0!==e&&(a=a.bbox(e))}n=null==n?a:n.union(a)}}return n}static deepClone(e){const t=[e,...e.getDescendants({deep:!0})];return jg.cloneCells(t)}static cloneCells(e){const t=r.uniq(e),n=t.reduce(((e,t)=>(e[t.id]=t.clone(),e)),{});return t.forEach((e=>{const t=n[e.id];if(t.isEdge()){const e=t.getSourceCellId(),r=t.getTargetCellId();e&&n[e]&&
// Source is a node and the node is among the clones.
// Then update the source of the cloned edge.
t.setSource(Object.assign(Object.assign({},t.getSource()),{cell:n[e].id})),r&&n[r]&&
// Target is a node and the node is among the clones.
// Then update the target of the cloned edge.
t.setTarget(Object.assign(Object.assign({},t.getTarget()),{cell:n[r].id}))}
// Find the parent of the original cell
const r=e.getParent();r&&n[r.id]&&t.setParent(n[r.id]);
// Find the children of the original cell
const i=e.getChildren();if(i&&i.length){const e=i.reduce(((e,t)=>(
// Embedded cells that are not being cloned can not be carried
// over with other embedded cells.
n[t.id]&&e.push(n[t.id]),e)),[]);e.length>0&&t.setChildren(e)}})),n}static config(e){const{markup:t,propHooks:n,attrHooks:r}=e,i=M(e,["markup","propHooks","attrHooks"]);null!=t&&(this.markup=t),n&&(this.propHooks=this.propHooks.slice(),Array.isArray(n)?this.propHooks.push(...n):"function"==typeof n?this.propHooks.push(n):Object.values(n).forEach((e=>{"function"==typeof e&&this.propHooks.push(e)}))),r&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),r)),this.defaults=l.merge({},this.defaults,i)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:l.cloneDeep(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce(((t,n)=>n?s.call(n,e,t):t),t)}
// eslint-disable-next-line
static generateId(e={}){return c.uuid()}
// #endregion
get[Symbol.toStringTag](){return jg.toStringTag}constructor(e={}){super();const t=this.constructor.getDefaults(!0),n=l.merge({},this.preprocess(t),this.preprocess(e));this.id=n.id||jg.generateId(e),this.store=new Rg(n),this.animationManager=new Pg,this.setup(),this.init(),this.postprocess(e)}init(){}
// #region model
get model(){return this._model}set model(e){this._model!==e&&(this._model=e)}
// #endregion
preprocess(e,t){const n=e.id,r=this.constructor.applyPropHooks(this,e);return null==n&&!0!==t&&(r.id=jg.generateId(e)),r}postprocess(e){}// eslint-disable-line
setup(){this.store.on("change:*",(e=>{const{key:t,current:n,previous:r,options:i}=e;this.notify("change:*",{key:t,options:i,current:n,previous:r,cell:this}),this.notify(`change:${t}`,{options:i,current:n,previous:r,cell:this});const a=t;"source"!==a&&"target"!==a||this.notify("change:terminal",{type:a,current:n,previous:r,options:i,cell:this})})),this.store.on("changed",(({options:e})=>this.notify("changed",{options:e,cell:this}))),this.on("added",(({cell:e})=>{const t=this.store.get("animation");l.isEmpty(t)||t.forEach((t=>{e.animate(...t)}))}))}notify(e,t){this.trigger(e,t);const n=this.model;return n&&(n.notify(`cell:${e}`,t),this.isNode()?n.notify(`node:${e}`,Object.assign(Object.assign({},t),{node:this})):this.isEdge()&&n.notify(`edge:${e}`,Object.assign(Object.assign({},t),{edge:this}))),this}isNode(){return!1}isEdge(){return!1}isSameStore(e){return this.store===e.store}get view(){return this.store.get("view")}get shape(){return this.store.get("shape","")}getProp(e,t){return null==e?this.store.get():this.store.get(e,t)}setProp(e,t,n){if("string"==typeof e)this.store.set(e,t,n);else{const n=this.preprocess(e,!0);this.store.set(l.merge({},this.getProp(),n),t),this.postprocess(e)}return this}removeProp(e,t){return"string"==typeof e||Array.isArray(e)?this.store.removeByPath(e,t):this.store.remove(t),this}hasChanged(e){return null==e?this.store.hasChanged():this.store.hasChanged(e)}getPropByPath(e){return this.store.getByPath(e)}setPropByPath(e,t,n={}){return this.model&&(
// update inner reference
"children"===e?this._children=t?t.map((e=>this.model.getCell(e))).filter((e=>null!=e)):null:"parent"===e&&(this._parent=t?this.model.getCell(t):null)),this.store.setByPath(e,t,n),this}removePropByPath(e,t={}){const n=Array.isArray(e)?e:e.split("/");
// Once a property is removed from the `attrs` the CellView will
// recognize a `dirty` flag and re-render itself in order to remove
// the attribute from SVGElement.
return"attrs"===n[0]&&(t.dirty=!0),this.store.removeByPath(n,t),this}prop(e,t,n){return null==e?this.getProp():"string"==typeof e||Array.isArray(e)?1===arguments.length?this.getPropByPath(e):null==t?this.removePropByPath(e,n||{}):this.setPropByPath(e,t,n||{}):this.setProp(e,t||{})}previous(e){return this.store.getPrevious(e)}
// #endregion
// #region zIndex
get zIndex(){return this.getZIndex()}set zIndex(e){null==e?this.removeZIndex():this.setZIndex(e)}getZIndex(){return this.store.get("zIndex")}setZIndex(e,t={}){return this.store.set("zIndex",e,t),this}removeZIndex(e={}){return this.store.remove("zIndex",e),this}toFront(e={}){const t=this.model;if(t){let n,r=t.getMaxZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this],r=r-n.length+1;const i=t.total();let a=t.indexOf(this)!==i-n.length;a||(a=n.some(((e,t)=>e.getZIndex()!==r+t))),a&&this.batchUpdate("to-front",(()=>{r+=n.length,n.forEach(((t,n)=>{t.setZIndex(r+n,e)}))}))}return this}toBack(e={}){const t=this.model;if(t){let n,r=t.getMinZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this];let i=0!==t.indexOf(this);i||(i=n.some(((e,t)=>e.getZIndex()!==r+t))),i&&this.batchUpdate("to-back",(()=>{r-=n.length,n.forEach(((t,n)=>{t.setZIndex(r+n,e)}))}))}return this}
// #endregion
// #region markup
get markup(){return this.getMarkup()}set markup(e){null==e?this.removeMarkup():this.setMarkup(e)}getMarkup(){let e=this.store.get("markup");if(null==e){e=this.constructor.getMarkup()}return e}setMarkup(e,t={}){return this.store.set("markup",e,t),this}removeMarkup(e={}){return this.store.remove("markup",e),this}
// #endregion
// #region attrs
get attrs(){return this.getAttrs()}set attrs(e){null==e?this.removeAttrs():this.setAttrs(e)}getAttrs(){const e=this.store.get("attrs");return e?Object.assign({},e):{}}setAttrs(e,t={}){if(null==e)this.removeAttrs(t);else{const n=e=>this.store.set("attrs",e,t);if(!0===t.overwrite)n(e);else{const r=this.getAttrs();!1===t.deep?n(Object.assign(Object.assign({},r),e)):n(l.merge({},r,e))}}return this}replaceAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateAttrs(e,t={}){return this.setAttrs(e,Object.assign(Object.assign({},t),{deep:!1}))}removeAttrs(e={}){return this.store.remove("attrs",e),this}getAttrDefinition(e){if(!e)return null;const t=this.constructor.getAttrHooks()||{};let n=t[e]||Ph.get(e);if(!n){const r=c.camelCase(e);n=t[r]||Ph.get(r)}return n||null}getAttrByPath(e){return null==e||""===e?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}setAttrByPath(e,t,n={}){return this.setPropByPath(this.prefixAttrPath(e),t,n),this}removeAttrByPath(e,t={}){return this.removePropByPath(this.prefixAttrPath(e),t),this}prefixAttrPath(e){return Array.isArray(e)?["attrs"].concat(e):`attrs/${e}`}attr(e,t,n){return null==e?this.getAttrByPath():"string"==typeof e||Array.isArray(e)?1===arguments.length?this.getAttrByPath(e):null==t?this.removeAttrByPath(e,n||{}):this.setAttrByPath(e,t,n||{}):this.setAttrs(e,t||{})}
// #endregion
// #region visible
get visible(){return this.isVisible()}set visible(e){this.setVisible(e)}setVisible(e,t={}){return this.store.set("visible",e,t),this}isVisible(){return!1!==this.store.get("visible")}show(e={}){return this.isVisible()||this.setVisible(!0,e),this}hide(e={}){return this.isVisible()&&this.setVisible(!1,e),this}toggleVisible(e,t={}){const n="boolean"==typeof e?t:e;return("boolean"==typeof e?e:!this.isVisible())?this.show(n):this.hide(n),this}
// #endregion
// #region data
get data(){return this.getData()}set data(e){this.setData(e)}getData(){return this.store.get("data")}setData(e,t={}){if(null==e)this.removeData(t);else{const n=e=>this.store.set("data",e,t);if(!0===t.overwrite)n(e);else{const r=this.getData();!1===t.deep?n("object"==typeof e?Object.assign(Object.assign({},r),e):e):n(l.merge({},r,e))}}return this}replaceData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{deep:!1}))}removeData(e={}){return this.store.remove("data",e),this}
// #endregion
// #region parent children
get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const e=this.getParentId();if(e&&this.model){const t=this.model.getCell(e);return this._parent=t,t}return null}getChildren(){const e=this.store.get("children");if(e&&e.length&&this.model){const t=e.map((e=>{var t;return null===(t=this.model)||void 0===t?void 0:t.getCell(e)})).filter((e=>null!=e));return this._children=t,[...t]}return null}hasParent(){return null!=this.parent}isParentOf(e){return null!=e&&e.getParent()===this}isChildOf(e){return null!=e&&this.getParent()===e}eachChild(e,t){return this.children&&this.children.forEach(e,t),this}filterChild(e,t){return this.children?this.children.filter(e,t):[]}getChildCount(){return null==this.children?0:this.children.length}getChildIndex(e){return null==this.children?-1:this.children.indexOf(e)}getChildAt(e){return null!=this.children&&e>=0?this.children[e]:null}getAncestors(e={}){const t=[];let n=this.getParent();for(;n;)t.push(n),n=!1!==e.deep?n.getParent():null;return t}getDescendants(e={}){if(!1!==e.deep){
// breadth first
if(e.breadthFirst){const e=[],t=this.getChildren()||[];for(;t.length>0;){const n=t.shift(),r=n.getChildren();e.push(n),r&&t.push(...r)}return e}
// depth first
{const t=this.getChildren()||[];return t.forEach((n=>{t.push(...n.getDescendants(e))})),t}}return this.getChildren()||[]}isDescendantOf(e,t={}){if(null==e)return!1;if(!1!==t.deep){let t=this.getParent();for(;t;){if(t===e)return!0;t=t.getParent()}return!1}return this.isChildOf(e)}isAncestorOf(e,t={}){return null!=e&&e.isDescendantOf(this,t)}contains(e){return this.isAncestorOf(e)}getCommonAncestor(...e){return jg.getCommonAncestor(this,...e)}setParent(e,t={}){return this._parent=e,e?this.store.set("parent",e.id,t):this.store.remove("parent",t),this}setChildren(e,t={}){return this._children=e,null!=e?this.store.set("children",e.map((e=>e.id)),t):this.store.remove("children",t),this}unembed(e,t={}){const n=this.children;if(null!=n&&null!=e){const r=this.getChildIndex(e);-1!==r&&(n.splice(r,1),e.setParent(null,t),this.setChildren(n,t))}return this}embed(e,t={}){return e.addTo(this,t),this}addTo(e,t={}){return jg.isCell(e)?e.addChild(this,t):e.addCell(this,t),this}insertTo(e,t,n={}){return e.insertChild(this,t,n),this}addChild(e,t={}){return this.insertChild(e,void 0,t)}insertChild(e,t,n={}){if(null!=e&&e!==this){const r=e.getParent(),i=this!==r;let a=t;
// remove from old parent
if(null==a&&(a=this.getChildCount(),i||(a-=1)),r){const t=r.getChildren();if(t){const i=t.indexOf(e);i>=0&&(e.setParent(null,n),t.splice(i,1),r.setChildren(t,n))}}let o=this.children;if(null==o?(o=[],o.push(e)):o.splice(a,0,e),e.setParent(this,n),this.setChildren(o,n),i&&this.model){const e=this.model.getIncomingEdges(this),t=this.model.getOutgoingEdges(this);e&&e.forEach((e=>e.updateParent(n))),t&&t.forEach((e=>e.updateParent(n)))}this.model&&this.model.addCell(e,n)}return this}removeFromParent(e={}){const t=this.getParent();if(null!=t){const n=t.getChildIndex(this);t.removeChildAt(n,e)}return this}removeChild(e,t={}){const n=this.getChildIndex(e);return this.removeChildAt(n,t)}removeChildAt(e,t={}){const n=this.getChildAt(e);return null!=this.children&&null!=n&&(this.unembed(n,t),n.remove(t)),n}remove(e={}){return this.batchUpdate("remove",(()=>{const t=this.getParent();t&&t.removeChild(this,e),!1!==e.deep&&this.eachChild((t=>t.remove(e))),this.model&&this.model.removeCell(this,e),this.dispose()})),this}
// #endregion
// #region animation
animate(e,t){var n;const r=i.isNumber(t)?{duration:t}:Object.assign({},t),a=new Lg(this,e,r),o=new Dg(a,r.timeline);return this.animationManager.addAnimation(o),o.id=null!==(n=r.id)&&void 0!==n?n:"",o.play(),o}getAnimations(){return this.animationManager.getAnimations()}
// #endregion
// #region transform
// eslint-disable-next-line
translate(e,t,n){return this}scale(e,// eslint-disable-line
t,// eslint-disable-line
n,// eslint-disable-line
r){return this}addTools(e,t,n){const r=Array.isArray(e)?e:[e],i="string"==typeof t?t:null,a="object"==typeof t?t:"object"==typeof n?n:{};if(a.reset)return this.setTools({name:i,items:r,local:a.local},a);let o=l.cloneDeep(this.getTools());return null==o||null==i||o.name===i?(null==o&&(o={}),o.items||(o.items=[]),o.name=i,o.items=[...o.items,...r],this.setTools(Object.assign({},o),a)):void 0}setTools(e,t={}){return null==e?this.removeTools():this.store.set("tools",jg.normalizeTools(e),t),this}getTools(){return this.store.get("tools")}removeTools(e={}){return this.store.remove("tools",e),this}hasTools(e){const t=this.getTools();return null!=t&&(null==e||t.name===e)}hasTool(e){const t=this.getTools();return null!=t&&t.items.some((t=>"string"==typeof t?t===e:t.name===e))}removeTool(e,t={}){const n=l.cloneDeep(this.getTools());if(n){let r=!1;const i=n.items.slice(),a=e=>{i.splice(e,1),r=!0};if("number"==typeof e)a(e);else for(let t=i.length-1;t>=0;t-=1){const n=i[t];("string"==typeof n?n===e:n.name===e)&&a(t)}r&&(n.items=i,this.setTools(n,t))}return this}
// #endregion
// #region common
// eslint-disable-next-line
getBBox(e){return new mr}
// eslint-disable-next-line
getConnectionPoint(e,t){return new gr}toJSON(e={}){const t=Object.assign({},this.store.get()),n=Object.prototype.toString,r=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!t.shape){const e=this.constructor;throw new Error(`Unable to serialize ${r} missing "shape" prop, check the ${r} "${e.name||n.call(e)}"`)}const i=this.constructor,a=!0===e.diff,o=t.attrs||{},s=i.getDefaults(!0),c=a?this.preprocess(s,!0):s,u=c.attrs||{},h={};Object.entries(t).forEach((([e,i])=>{if(null!=i&&!Array.isArray(i)&&"object"==typeof i&&!l.isPlainObject(i))throw new Error(`Can only serialize ${r} with plain-object props, but got a "${n.call(i)}" type of key "${e}" on ${r} "${this.id}"`);if("attrs"!==e&&"shape"!==e&&a){const n=c[e];l.isEqual(i,n)&&delete t[e]}})),Object.keys(o).forEach((e=>{const t=o[e],n=u[e];Object.keys(t).forEach((r=>{const i=t[r],a=n?n[r]:null;null==i||"object"!=typeof i||Array.isArray(i)?null!=n&&l.isEqual(a,i)||(
// `value` is not an object, default attribute with `key` does not
// exist or it is different than the attribute value set on the cell.
null==h[e]&&(h[e]={}),h[e][r]=i):Object.keys(i).forEach((t=>{const o=i[t];if(null==n||null==a||!l.isObject(a)||!l.isEqual(a[t],o)){null==h[e]&&(h[e]={}),null==h[e][r]&&(h[e][r]={});h[e][r][t]=o}}))}))}));const f=Object.assign(Object.assign({},t),{attrs:l.isEmpty(h)?void 0:h});null==f.attrs&&delete f.attrs;const d=f;return 0===d.angle&&delete d.angle,l.cloneDeep(d)}clone(e={}){if(!e.deep){const t=Object.assign({},this.store.get());e.keepId||delete t.id,delete t.parent,delete t.children;return new(0,this.constructor)(t);// eslint-disable-line new-cap
}
// Deep cloning. Clone the cell itself and all its children.
return jg.deepClone(this)[this.id]}findView(e){return e.findViewByCell(this)}
// #endregion
// #region batch
startBatch(e,t={},n=this.model){return this.notify("batch:start",{name:e,data:t,cell:this}),n&&n.startBatch(e,Object.assign(Object.assign({},t),{cell:this})),this}stopBatch(e,t={},n=this.model){return n&&n.stopBatch(e,Object.assign(Object.assign({},t),{cell:this})),this.notify("batch:stop",{name:e,data:t,cell:this}),this}batchUpdate(e,t,n){
// The model is null after cell was removed(remove batch).
// So we should temp save model to trigger pairing batch event.
const r=this.model;this.startBatch(e,n,r);const i=t();return this.stopBatch(e,n,r),i}
// #endregion
// #region IDisposable
dispose(){this.removeFromParent(),this.animationManager.cancelAnimations(),this.store.dispose()}}jg.toStringTag="X6.cell",jg.defaults={},jg.attrHooks={},jg.propHooks=[],T([au()],jg.prototype,"dispose",null),jg.config({propHooks(e){var{tools:t}=e,n=M(e,["tools"]);return t&&(n.tools=jg.normalizeTools(t)),n}});
//# sourceMappingURL=cell.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/port.js
class Ng{constructor(e){this.ports=[],this.groups={},this.init(l.cloneDeep(e))}getPorts(){return this.ports}getGroup(e){return null!=e?this.groups[e]:null}getPortsByGroup(e){return this.ports.filter((t=>t.group===e||null==t.group&&null==e))}getPortsLayoutByGroup(e,t){const n=this.getPortsByGroup(e),r=e?this.getGroup(e):null,i=r?r.position:null,a=i?i.name:null;let o;if(null!=a){const e=Wd.get(a);if(null==e)return Wd.onNotFound(a);o=e}else o=Vd.left;const s=n.map((e=>e&&e.position&&e.position.args||{})),c=i&&i.args||{};return o(s,t,c).map(((e,r)=>{const i=n[r];return{portLayout:e,portId:i.id,portSize:i.size,portAttrs:i.attrs,labelSize:i.label.size,labelLayout:this.getPortLabelLayout(i,gr.create(e.position),t)}}))}init(e){const{groups:t,items:n}=e;null!=t&&Object.keys(t).forEach((e=>{this.groups[e]=this.parseGroup(t[e])})),Array.isArray(n)&&n.forEach((e=>{this.ports.push(this.parsePort(e))}))}parseGroup(e){return Object.assign(Object.assign({},e),{label:this.getLabel(e,!0),position:this.getPortPosition(e.position,!0)})}parsePort(e){const t=Object.assign({},e),n=this.getGroup(e.group)||{};return t.markup=t.markup||n.markup,t.attrs=l.merge({},n.attrs,t.attrs),t.position=this.createPosition(n,t),t.label=l.merge({},n.label,this.getLabel(t)),t.zIndex=this.getZIndex(n,t),t.size=Object.assign(Object.assign({},n.size),t.size),t}getZIndex(e,t){return"number"==typeof t.zIndex?t.zIndex:"number"==typeof e.zIndex||"auto"===e.zIndex?e.zIndex:"auto"}createPosition(e,t){return l.merge({name:"left",args:{}},e.position,{args:t.args})}getPortPosition(e,t=!1){if(null==e){if(t)return{name:"left",args:{}}}else{if("string"==typeof e)return{name:e,args:{}};if(Array.isArray(e))return{name:"absolute",args:{x:e[0],y:e[1]}};if("object"==typeof e)return e}return{args:{}}}getPortLabelPosition(e,t=!1){if(null==e){if(t)return{name:"left",args:{}}}else{if("string"==typeof e)return{name:e,args:{}};if("object"==typeof e)return e}return{args:{}}}getLabel(e,t=!1){const n=e.label||{};return n.position=this.getPortLabelPosition(n.position,t),n}getPortLabelLayout(e,t,n){const r=e.label.position.name||"left",i=e.label.position.args||{},a=Od.get(r)||Td.left;return a?a(t,n,i):null}}
//# sourceMappingURL=port.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/registry.js
let Fg,zg;function Hg(e,t){return t?null!=Fg&&Fg.exist(e):null!=zg&&zg.exist(e)}
//# sourceMappingURL=registry.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/node.js
const Ug="X6.node";let Gg=0;class Vg extends jg{static isNode(e){if(null==e)return!1;if(e instanceof Vg)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===Ug)&&"function"==typeof n.isNode&&"function"==typeof n.isEdge&&"function"==typeof n.prop&&"function"==typeof n.attr&&"function"==typeof n.size&&"function"==typeof n.position}static define(e){const{constructorName:t,overwrite:n}=e,r=M(e,["constructorName","overwrite"]),i=l.createClass(function(e){return e?c.pascalCase(e):(Gg+=1,`CustomNode${Gg}`)}(t||r.shape),
// biome-ignore lint/complexity/noThisInStatic: <修改后会导致渲染错误>
this);return i.config(r),r.shape&&Vg.registry.register(r.shape,i,n),i}static create(e){const t=e.shape||"rect",n=Vg.registry.get(t);return n?new n(e):Vg.registry.onNotFound(t)}get[Symbol.toStringTag](){return Vg.toStringTag}constructor(e={}){super(e),this.initPorts()}preprocess(e,t){const{x:n,y:r,width:i,height:a}=e,o=M(e,["x","y","width","height"]);if(null!=n||null!=r){const e=o.position;o.position=Object.assign(Object.assign({},e),{x:null!=n?n:e?e.x:0,y:null!=r?r:e?e.y:0})}if(null!=i||null!=a){const e=o.size;o.size=Object.assign(Object.assign({},e),{width:null!=i?i:e?e.width:0,height:null!=a?a:e?e.height:0})}return super.preprocess(o,t)}isNode(){return!0}size(e,t,n){return void 0===e?this.getSize():"number"==typeof e?this.setSize(e,t,n):this.setSize(e,t)}getSize(){const e=this.store.get("size");return e?Object.assign({},e):{width:1,height:1}}setSize(e,t,n){return"object"==typeof e?this.resize(e.width,e.height,t):this.resize(e,t,n),this}resize(e,t,n={}){this.startBatch("resize",n);const r=n.direction;if(r){const i=this.getSize();switch(r){case"left":case"right":
// Don't change height when resizing horizontally.
t=i.height;// eslint-disable-line
break;case"top":case"bottom":
// Don't change width when resizing vertically.
e=i.width}let a={right:0,"top-right":0,top:1,"top-left":1,left:2,"bottom-left":2,bottom:3,"bottom-right":3}[r];const o=sr(this.getAngle()||0);n.absolute&&(
// We are taking the node's rotation into account
a+=Math.floor((o+45)/90),a%=4);
// This is a rectangle in size of the un-rotated node.
const s=this.getBBox();
// Pick the corner point on the node, which meant to stay on its
// place before and after the rotation.
let c;c=0===a?s.getBottomLeft():1===a?s.getCorner():2===a?s.getTopRight():s.getOrigin();
// Find an image of the previous indent point. This is the position,
// where is the point actually located on the screen.
const l=c.clone().rotate(-o,s.getCenter()),u=Math.sqrt(e*e+t*t)/2;
// Every point on the element rotates around a circle with the centre of
// rotation in the middle of the element while the whole element is being
// rotated. That means that the distance from a point in the corner of
// the element (supposed its always rect) to the center of the element
// doesn't change during the rotation and therefore it equals to a
// distance on un-rotated element.
// We can find the distance as DISTANCE = (ELEMENTWIDTH/2)^2 + (ELEMENTHEIGHT/2)^2)^0.5.
// Now we are looking for an angle between x-axis and the line starting
// at image of fixed point and ending at the center of the element.
// We call this angle `alpha`.
// The image of a fixed point is located in n-th quadrant. For each
// quadrant passed going anti-clockwise we have to add 90 degrees.
// Note that the first quadrant has index 0.
// 3 | 2
// --c-- Quadrant positions around the element's center `c`
// 0 | 1
let h=a*Math.PI/2;
// Add an angle between the beginning of the current quadrant (line
// parallel with x-axis or y-axis going through the center of the
// element) and line crossing the indent of the fixed point and the
// center of the element. This is the angle we need but on the
// un-rotated element.
h+=Math.atan(a%2==0?t/e:e/t),
// Lastly we have to deduct the original angle the element was rotated
// by and that's it.
h-=or(o);
// With this angle and distance we can easily calculate the centre of
// the un-rotated element.
// Note that fromPolar constructor accepts an angle in radians.
const f=gr.fromPolar(u,h,l).clone().translate(e/-2,t/-2);
// The top left corner on the un-rotated element has to be half a width
// on the left and half a height to the top from the center. This will
// be the origin of rectangle we were looking for.
this.store.set("size",{width:e,height:t},n),this.setPosition(f.x,f.y,n)}else this.store.set("size",{width:e,height:t},n);return this.stopBatch("resize",n),this}scale(e,t,n,r={}){const i=this.getBBox().scale(e,t,null==n?void 0:n);return this.startBatch("scale",r),this.setPosition(i.x,i.y,r),this.resize(i.width,i.height,r),this.stopBatch("scale"),this}position(e,t,n){return"number"==typeof e?this.setPosition(e,t,n):this.getPosition(e)}getPosition(e={}){if(e.relative){const e=this.getParent();if(null!=e&&e.isNode()){const t=this.getPosition(),n=e.getPosition();return{x:t.x-n.x,y:t.y-n.y}}}const t=this.store.get("position");return t?Object.assign({},t):{x:0,y:0}}setPosition(e,t,n={}){let r,i,a;if("object"==typeof e?(r=e.x,i=e.y,a=t||{}):(r=e,i=t,a=n||{}),a.relative){const e=this.getParent();if(null!=e&&e.isNode()){const t=e.getPosition();r+=t.x,i+=t.y}}if(a.deep){const e=this.getPosition();this.translate(r-e.x,i-e.y,a)}else this.store.set("position",{x:r,y:i},a);return this}translate(e=0,t=0,n={}){if(0===e&&0===t)return this;
// Pass the initiator of the translation.
n.translateBy=n.translateBy||this.id;const r=this.getPosition();if(null!=n.restrict&&n.translateBy===this.id){
// We are restricting the translation for the element itself only. We get
// the bounding box of the element including all its embeds.
// All embeds have to be translated the exact same way as the element.
const i=this.getBBox({deep:!0}),a=n.restrict,o=r.x-i.x,s=r.y-i.y,c=Math.max(a.x+o,Math.min(a.x+a.width+o-i.width,r.x+e)),l=Math.max(a.y+s,Math.min(a.y+a.height+s-i.height,r.y+t));
// recalculate the translation taking the restrictions into account.
e=c-r.x,// eslint-disable-line
t=l-r.y}const i={x:r.x+e,y:r.y+t};
// To find out by how much an element was translated in event
// 'change:position' handlers.
if(n.tx=e,n.ty=t,n.transition){let r="object"!=typeof n.transition?{}:Object.assign({},n.transition);r=Object.assign({duration:100,fill:"forwards"},r),this.animate({"position/x":i.x,"position/y":i.y},r),this.eachChild((r=>{var i;(null===(i=n.exclude)||void 0===i?void 0:i.includes(r))||r.translate(e,t,n)}))}else this.startBatch("translate",n),this.store.set("position",i,n),this.eachChild((r=>{var i;(null===(i=n.exclude)||void 0===i?void 0:i.includes(r))||r.translate(e,t,n)})),this.stopBatch("translate",n);return this}angle(e,t){return null==e?this.getAngle():this.rotate(e,t)}getAngle(){return this.store.get("angle",0)}rotate(e,t={}){const n=this.getAngle();if(t.center){const r=this.getSize(),i=this.getPosition(),a=this.getBBox().getCenter();a.rotate(n-e,t.center);const o=a.x-r.width/2-i.x,s=a.y-r.height/2-i.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(i.x+o,i.y+s,t),this.rotate(e,Object.assign(Object.assign({},t),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",t.absolute?e:(n+e)%360,t);return this}
// #endregion
// #region common
getBBox(e={}){if(e.deep){const e=this.getDescendants({deep:!0,breadthFirst:!0});return e.push(this),jg.getCellsBBox(e)}return mr.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(e,t){const n=this.getBBox(),r=n.getCenter(),i=e.getTerminal(t);if(null==i)return r;const a=i.port;if(!a||!this.hasPort(a))return r;const o=this.getPort(a);if(!o||!o.group)return r;const s=this.getPortsPosition(o.group)[a].position,c=gr.create(s).translate(n.getOrigin()),l=this.getAngle();return l&&c.rotate(-l,r),c}
/**
     * Sets cell's size and position based on the children bbox and given padding.
     */fit(e={}){const t=(this.getChildren()||[]).filter((e=>e.isNode()));if(0===t.length)return this;this.startBatch("fit-embeds",e),e.deep&&t.forEach((t=>{t.fit(e)}));let{x:n,y:r,width:a,height:o}=jg.getCellsBBox(t);const s=i.normalizeSides(e.padding);return n-=s.left,r-=s.top,a+=s.left+s.right,o+=s.bottom+s.top,this.store.set({position:{x:n,y:r},size:{width:a,height:o}},e),this.stopBatch("fit-embeds"),this}
// #endregion
// #region ports
get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||Fp.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",Fp.clone(e),t),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||Fp.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,t={}){return this.store.set("portMarkup",Fp.clone(e),t),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||Fp.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,t={}){return this.store.set("portLabelMarkup",Fp.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return null==e.items&&(e.items=[]),e}getPorts(){return l.cloneDeep(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter((t=>t.group===e))}getPort(e){return l.cloneDeep(this.ports.items.find((t=>t.id&&t.id===e)))}getPortAt(e){return this.ports.items[e]||null}hasPorts(){return this.ports.items.length>0}hasPort(e){return-1!==this.getPortIndex(e)}getPortIndex(e){const t="string"==typeof e?e:e.id;return null!=t?this.ports.items.findIndex((e=>e.id===t)):-1}getPortsPosition(e){const t=this.getSize();return this.port.getPortsLayoutByGroup(e,new mr(0,0,t.width,t.height)).reduce(((e,t)=>{const n=t.portLayout;return e[t.portId]={position:Object.assign({},n.position),angle:n.angle||0},e}),{})}getPortProp(e,t){return this.getPropByPath(this.prefixPortPath(e,t))}setPortProp(e,t,n,r){if("string"==typeof t||Array.isArray(t)){const i=this.prefixPortPath(e,t),a=n;return this.setPropByPath(i,a,r)}const i=this.prefixPortPath(e),a=t;return this.setPropByPath(i,a,n)}removePortProp(e,t,n){return"string"==typeof t||Array.isArray(t)?this.removePropByPath(this.prefixPortPath(e,t),n):this.removePropByPath(this.prefixPortPath(e),t)}portProp(e,t,n,r){return null==t?this.getPortProp(e):"string"==typeof t||Array.isArray(t)?2===arguments.length?this.getPortProp(e,t):null==n?this.removePortProp(e,t,r):this.setPortProp(e,t,n,r):this.setPortProp(e,t,n)}prefixPortPath(e,t){const n=this.getPortIndex(e);if(-1===n)throw new Error(`Unable to find port with id: "${e}"`);return null==t||""===t?["ports","items",`${n}`]:Array.isArray(t)?["ports","items",`${n}`,...t]:`ports/items/${n}/${t}`}addPort(e,t){const n=[...this.ports.items];return n.push(e),this.setPropByPath("ports/items",n,t),this}addPorts(e,t){return this.setPropByPath("ports/items",[...this.ports.items,...e],t),this}insertPort(e,t,n){const r=[...this.ports.items];return r.splice(e,0,t),this.setPropByPath("ports/items",r,n),this}removePort(e,t={}){return this.removePortAt(this.getPortIndex(e),t)}removePortAt(e,t={}){if(e>=0){const n=[...this.ports.items];n.splice(e,1),t.rewrite=!0,this.setPropByPath("ports/items",n,t)}return this}removePorts(e,t){let n;if(Array.isArray(e)){if(n=t||{},e.length){n.rewrite=!0;const t=[...this.ports.items].filter((t=>!e.some((e=>{const n="string"==typeof e?e:e.id;return t.id===n}))));this.setPropByPath("ports/items",t,n)}}else n=e||{},n.rewrite=!0,this.setPropByPath("ports/items",[],n);return this}getParsedPorts(){return this.port.getPorts()}getParsedGroups(){return this.port.groups}getPortsLayoutByGroup(e,t){return this.port.getPortsLayoutByGroup(e,t)}initPorts(){this.updatePortData(),this.on("change:ports",(()=>{this.processRemovedPort(),this.updatePortData()}))}processRemovedPort(){const e=this.ports,t={};e.items.forEach((e=>{e.id&&(t[e.id]=!0)}));const n={};(this.store.getPrevious("ports")||{items:[]}).items.forEach((e=>{e.id&&!t[e.id]&&(n[e.id]=!0)}));const r=this.model;if(r&&!l.isEmpty(n)){r.getConnectedEdges(this,{incoming:!0}).forEach((e=>{const t=e.getTargetPortId();t&&n[t]&&e.remove()}));r.getConnectedEdges(this,{outgoing:!0}).forEach((e=>{const t=e.getSourcePortId();t&&n[t]&&e.remove()}))}}validatePorts(){const e={},t=[];return this.ports.items.forEach((n=>{"object"!=typeof n&&t.push(`Invalid port ${n}.`),null==n.id&&(n.id=this.generatePortId()),e[n.id]&&t.push("Duplicitied port id."),e[n.id]=!0})),t}generatePortId(){return c.uuid()}updatePortData(){const e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));const t=this.port?this.port.getPorts():null;this.port=new Ng(this.ports);const n=this.port.getPorts(),r=t?n.filter((e=>t.find((t=>t.id===e.id))?null:e)):[...n],i=t?t.filter((e=>n.find((t=>t.id===e.id))?null:e)):[];r.length>0&&this.notify("ports:added",{added:r,cell:this,node:this}),i.length>0&&this.notify("ports:removed",{removed:i,cell:this,node:this})}}var Wg;Vg.toStringTag=Ug,Vg.registry=uu.create({type:"node",process(e,t){if(Hg(e,!0))throw new Error(`Node with name '${e}' was registered by anthor Edge`);if("function"==typeof t)return t.config({shape:e}),t;let n=Vg;const{inherit:r}=t,i=M(t,["inherit"]);if(r)if("string"==typeof r){const e=this.get(r);null==e?this.onNotFound(r,"inherited"):n=e}else n=r;null==i.constructorName&&(i.constructorName=e);const a=n.define.call(n,i);return a.config({shape:e}),a}}),Vg.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}},Vg.config({propHooks(e){var{ports:t}=e,n=M(e,["ports"]);return t&&(n.ports=Array.isArray(t)?{items:t}:t),n}}),Wg=Vg.registry,zg=Wg;
//# sourceMappingURL=node.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/edge.js
const qg="X6.edge",Yg="basic.edge";let Kg=0;class $g extends jg{static parseStringLabel(e){return{attrs:{label:{text:e}}}}static isEdge(e){if(null==e)return!1;if(e instanceof $g)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===qg)&&"function"==typeof n.isNode&&"function"==typeof n.isEdge&&"function"==typeof n.prop&&"function"==typeof n.attr&&"function"==typeof n.disconnect&&"function"==typeof n.getSource&&"function"==typeof n.getTarget}static equalTerminals(e,t){const n=e,r=t;return n.cell===r.cell&&(n.port===r.port||null==n.port&&null==r.port)}static define(e){const{constructorName:t,overwrite:n}=e,r=M(e,["constructorName","overwrite"]),i=l.createClass(function(e){return e?c.pascalCase(e):(Kg+=1,`CustomEdge${Kg}`)}(t||r.shape),this);return i.config(r),r.shape&&$g.registry.register(r.shape,i,n),i}static create(e){const t=e.shape||"edge",n=$g.registry.get(t);return n?new n(e):$g.registry.onNotFound(t)}get[Symbol.toStringTag](){return $g.toStringTag}constructor(e={}){super(e)}preprocess(e,t){const{source:n,sourceCell:r,sourcePort:i,sourcePoint:a,target:o,targetCell:s,targetPort:c,targetPoint:l}=e,u=M(e,["source","sourceCell","sourcePort","sourcePoint","target","targetCell","targetPort","targetPoint"]),h=e=>"string"==typeof e||"number"==typeof e;if(null!=n)if(jg.isCell(n))u.source={cell:n.id};else if(h(n))u.source={cell:n};else if(gr.isPoint(n))u.source=n.toJSON();else if(Array.isArray(n))u.source={x:n[0],y:n[1]};else{const e=n.cell;jg.isCell(e)?u.source=Object.assign(Object.assign({},n),{cell:e.id}):u.source=n}if(null!=r||null!=i){let e=u.source;if(null!=r){const t=h(r)?r:r.id;e?e.cell=t:e=u.source={cell:t}}null!=i&&e&&(e.port=i)}else null!=a&&(u.source=gr.create(a).toJSON());if(null!=o)if(jg.isCell(o))u.target={cell:o.id};else if(h(o))u.target={cell:o};else if(gr.isPoint(o))u.target=o.toJSON();else if(Array.isArray(o))u.target={x:o[0],y:o[1]};else{const e=o.cell;jg.isCell(e)?u.target=Object.assign(Object.assign({},o),{cell:e.id}):u.target=o}if(null!=s||null!=c){let e=u.target;if(null!=s){const t=h(s)?s:s.id;e?e.cell=t:e=u.target={cell:t}}null!=c&&e&&(e.port=c)}else null!=l&&(u.target=gr.create(l).toJSON());return super.preprocess(u,t)}setup(){super.setup(),this.on("change:labels",(e=>this.onLabelsChanged(e))),this.on("change:vertices",(e=>this.onVertexsChanged(e)))}isEdge(){return!0}
// #region terminal
disconnect(e={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}get source(){return this.getSource()}set source(e){this.setSource(e)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(e,t,n={}){return this.setTerminal("source",e,t,n)}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(e,t,n={}){return this.setTerminal("target",e,t,n)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,t,n,r={}){
// `terminal` is a cell
if(jg.isCell(t))return this.store.set(e,l.merge({},n,{cell:t.id}),r),this;
// `terminal` is a point-like object
const i=t;return gr.isPoint(t)||null!=i.x&&null!=i.y?(this.store.set(e,l.merge({},n,{x:i.x,y:i.y}),r),this):(
// `terminal` is an object
this.store.set(e,l.cloneDeep(t),r),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(gr.isPointLike(t))return gr.create(t);const n=this.getTerminalCell(e);return n?n.getConnectionPoint(this,e):new gr}getSourceCell(){return this.getTerminalCell("source")}getTargetCell(){return this.getTerminalCell("target")}getTerminalCell(e){if(this.model){const t="source"===e?this.getSourceCellId():this.getTargetCellId();if(t)return this.model.getCell(t)}return null}getSourceNode(){return this.getTerminalNode("source")}getTargetNode(){return this.getTerminalNode("target")}getTerminalNode(e){let t=this;// eslint-disable-line
const n={};for(;t&&t.isEdge();){if(n[t.id])return null;n[t.id]=!0,t=t.getTerminalCell(e)}return t&&t.isNode()?t:null}
// #endregion
// #region router
get router(){return this.getRouter()}set router(e){null==e?this.removeRouter():this.setRouter(e)}getRouter(){return this.store.get("router")}setRouter(e,t,n){return"object"==typeof e?this.store.set("router",e,t):this.store.set("router",{name:e,args:t},n),this}removeRouter(e={}){return this.store.remove("router",e),this}
// #endregion
// #region connector
get connector(){return this.getConnector()}set connector(e){null==e?this.removeConnector():this.setConnector(e)}getConnector(){return this.store.get("connector")}setConnector(e,t,n){return"object"==typeof e?this.store.set("connector",e,t):this.store.set("connector",{name:e,args:t},n),this}removeConnector(e={}){return this.store.remove("connector",e)}
// #endregion
// #region labels
getDefaultLabel(){const e=this.constructor,t=this.store.get("defaultLabel")||e.defaultLabel||{};return l.cloneDeep(t)}get labels(){return this.getLabels()}set labels(e){this.setLabels(e)}getLabels(){return[...this.store.get("labels",[])].map((e=>this.parseLabel(e)))}setLabels(e,t={}){return this.store.set("labels",Array.isArray(e)?e:[e],t),this}insertLabel(e,t,n={}){const r=this.getLabels(),i=r.length;let a=null!=t&&Number.isFinite(t)?t:i;return a<0&&(a=i+a+1),r.splice(a,0,this.parseLabel(e)),this.setLabels(r,n)}appendLabel(e,t={}){return this.insertLabel(e,-1,t)}getLabelAt(e){const t=this.getLabels();return null!=e&&Number.isFinite(e)?this.parseLabel(t[e]):null}setLabelAt(e,t,n={}){if(null!=e&&Number.isFinite(e)){const r=this.getLabels();r[e]=this.parseLabel(t),this.setLabels(r,n)}return this}removeLabelAt(e,t={}){const n=this.getLabels(),r=null!=e&&Number.isFinite(e)?e:-1,i=n.splice(r,1);return this.setLabels(n,t),i.length?i[0]:null}parseLabel(e){if("string"==typeof e){return this.constructor.parseStringLabel(e)}return e}onLabelsChanged({previous:e,current:t}){const n=e&&t?t.filter((t=>e.find((e=>t===e||l.isEqual(t,e)))?null:t)):t?[...t]:[],r=e&&t?e.filter((e=>t.find((t=>e===t||l.isEqual(e,t)))?null:e)):e?[...e]:[];n.length>0&&this.notify("labels:added",{added:n,cell:this,edge:this}),r.length>0&&this.notify("labels:removed",{removed:r,cell:this,edge:this})}
// #endregion
// #region vertices
get vertices(){return this.getVertices()}set vertices(e){this.setVertices(e)}getVertices(){return[...this.store.get("vertices",[])]}setVertices(e,t={}){const n=Array.isArray(e)?e:[e];return this.store.set("vertices",n.map((e=>gr.toJSON(e))),t),this}insertVertex(e,t,n={}){const r=this.getVertices(),i=r.length;let a=null!=t&&Number.isFinite(t)?t:i;return a<0&&(a=i+a+1),r.splice(a,0,gr.toJSON(e)),this.setVertices(r,n)}appendVertex(e,t={}){return this.insertVertex(e,-1,t)}getVertexAt(e){if(null!=e&&Number.isFinite(e)){return this.getVertices()[e]}return null}setVertexAt(e,t,n={}){if(null!=e&&Number.isFinite(e)){const r=this.getVertices();r[e]=t,this.setVertices(r,n)}return this}removeVertexAt(e,t={}){const n=this.getVertices(),r=null!=e&&Number.isFinite(e)?e:-1;return n.splice(r,1),this.setVertices(n,t)}onVertexsChanged({previous:e,current:t}){const n=e&&t?t.filter((t=>e.find((e=>gr.equals(t,e)))?null:t)):t?[...t]:[],r=e&&t?e.filter((e=>t.find((t=>gr.equals(e,t)))?null:e)):e?[...e]:[];n.length>0&&this.notify("vertexs:added",{added:n,cell:this,edge:this}),r.length>0&&this.notify("vertexs:removed",{removed:r,cell:this,edge:this})}
// #endregion
// #region markup
getDefaultMarkup(){return this.store.get("defaultMarkup")||Fp.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}
// #endregion
// #region transform
/**
     * Translate the edge vertices (and source and target if they are points)
     * by `tx` pixels in the x-axis and `ty` pixels in the y-axis.
     */
translate(e,t,n={}){return n.translateBy=n.translateBy||this.id,n.tx=e,n.ty=t,this.applyToPoints((n=>({x:(n.x||0)+e,y:(n.y||0)+t})),n)}
/**
     * Scales the edge's points (vertices) relative to the given origin.
     */scale(e,t,n,r={}){return this.applyToPoints((r=>gr.create(r).scale(e,t,n).toJSON()),r)}applyToPoints(e,t={}){const n={},r=this.getSource(),i=this.getTarget();gr.isPointLike(r)&&(n.source=e(r)),gr.isPointLike(i)&&(n.target=e(i));const a=this.getVertices();return a.length>0&&(n.vertices=a.map(e)),this.store.set(n,t),this}
// #endregion
// #region common
getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),...this.getVertices().map((e=>gr.create(e))),this.getTargetPoint()];return new Cr(e)}updateParent(e){let t=null;const n=this.getSourceCell(),r=this.getTargetCell(),i=this.getParent();return n&&r&&(t=n===r||n.isDescendantOf(r)?r:r.isDescendantOf(n)?n:jg.getCommonAncestor(n,r)),
// Unembeds the edge if source and target has no common
// ancestor or common ancestor changed
i&&t&&t.id!==i.id&&i.unembed(this,e),
// Embeds the edge if source and target are not same
!t||i&&i.id===t.id||t.embed(this,e),t}hasLoop(e={}){const t=this.getSource(),n=this.getTarget(),r=t.cell,i=n.cell;if(!r||!i)return!1;let a=r===i;
// Note that there in the deep mode a edge can have a loop,
// even if it connects only a parent and its embed.
// A loop "target equals source" is valid in both shallow and deep mode.
// eslint-disable-next-line
if(!a&&e.deep&&this._model){const t=this.getSourceCell(),n=this.getTargetCell();t&&n&&(a=t.isAncestorOf(n,e)||n.isAncestorOf(t,e))}return a}getFragmentAncestor(){const e=[this,this.getSourceNode(),this.getTargetNode()].filter((e=>null!=e));return this.getCommonAncestor(...e)}isFragmentDescendantOf(e){const t=this.getFragmentAncestor();return!!t&&(t.id===e.id||t.isDescendantOf(e))}}$g.toStringTag=qg,$g.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}},$g.registry=uu.create({type:"edge",process(e,t){if(Hg(e,!1))throw new Error(`Edge with name '${e}' was registered by anthor Node`);if("function"==typeof t)return t.config({shape:e}),t;let n=$g;
// default inherit from 'dege'
const{inherit:r="edge"}=t,i=M(t,["inherit"]);if("string"==typeof r){const e=this.get(r||"edge");null==e&&r?this.onNotFound(r,"inherited"):n=e}else n=r;null==i.constructorName&&(i.constructorName=e);const a=n.define.call(n,i);return a.config({shape:e}),a}}),$g.defaults={},function(e){Fg=e}($g.registry),$g.config({shape:Yg,propHooks(e){const{label:t,vertices:n}=e,r=M(e,["label","vertices"]);if(t){null==r.labels&&(r.labels=[]);const e="string"==typeof t?$g.parseStringLabel(t):t;r.labels.push(e)}return n&&Array.isArray(n)&&(r.vertices=n.map((e=>gr.create(e).toJSON()))),r}}),$g.registry.register(Yg,$g);
//# sourceMappingURL=edge.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/collection.js
class Jg extends ou{constructor(e,t={}){super(),this.length=0,this.comparator=t.comparator||"zIndex",this.clean(),e&&this.reset(e,{silent:!0})}toJSON(){return this.cells.map((e=>e.toJSON()))}add(e,t,n){let r,i;"number"==typeof t?(r=t,i=Object.assign({merge:!1},n)):(r=this.length,i=Object.assign({merge:!1},t)),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);const a=Array.isArray(e)?e:[e],o=this.comparator&&"number"!=typeof t&&!1!==i.sort,s=this.comparator||null;let c=!1;const l=[],u=[];return a.forEach((e=>{const t=this.get(e);t?i.merge&&!e.isSameStore(t)&&(t.setProp(e.getProp(),n),// merge
u.push(t),o&&!c&&(c=null==s||"function"==typeof s?t.hasChanged():"string"==typeof s?t.hasChanged(s):s.some((e=>t.hasChanged(e))))):(l.push(e),this.reference(e))})),l.length&&(o&&(c=!0),this.cells.splice(r,0,...l),this.length=this.cells.length),c&&this.sort({silent:!0}),i.silent||(l.forEach(((e,t)=>{const n={cell:e,index:r+t,options:i};this.trigger("added",n),i.dryrun||e.notify("added",Object.assign({},n))})),c&&this.trigger("sorted"),(l.length||u.length)&&this.trigger("updated",{added:l,merged:u,removed:[],options:i})),this}remove(e,t={}){const n=Array.isArray(e)?e:[e],r=this.removeCells(n,t);return!t.silent&&r.length>0&&this.trigger("updated",{options:t,removed:r,added:[],merged:[]}),Array.isArray(e)?r:r[0]}removeCells(e,t){const n=[];for(let r=0;r<e.length;r+=1){const i=this.get(e[r]);if(null==i)continue;const a=this.cells.indexOf(i);this.cells.splice(a,1),this.length-=1,delete this.map[i.id],n.push(i),this.unreference(i),t.silent||(this.trigger("removed",{cell:i,index:a,options:t}),t.dryrun||i.notify("removed",{cell:i,index:a,options:t})),t.dryrun||i.remove()}return n}reset(e,t={}){const n=this.cells.slice();if(t.diff||(n.forEach((e=>{this.unreference(e),e.remove()})),this.clean()),this.add(e,Object.assign({silent:!0},t)),!t.silent){const e=this.cells.slice();this.trigger("reseted",{options:t,previous:n,current:e});const r=[],i=[];e.forEach((e=>{n.some((t=>t.id===e.id))||r.push(e)})),n.forEach((t=>{e.some((e=>e.id===t.id))||i.push(t)})),this.trigger("updated",{options:t,added:r,removed:i,merged:[]})}return this}push(e,t){return this.add(e,this.length,t)}pop(e){const t=this.at(this.length-1);return t?this.remove(t,e):null}unshift(e,t){return this.add(e,0,t)}shift(e){const t=this.at(0);return t?this.remove(t,e):null}get(e){if(null==e)return null;const t="string"==typeof e||"number"==typeof e?e:e.id;return this.map[t]||null}has(e){return null!=this.get(e)}at(e){return e<0&&(e+=this.length),this.cells[e]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(e){return this.cells.indexOf(e)}toArray(){return this.cells.slice()}sort(e={}){return null!=this.comparator&&(this.cells=r.sortBy(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}clone(){return new(0,this.constructor)(this.cells.slice(),{comparator:this.comparator})}reference(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}unreference(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}notifyCellEvent(e,t){const n=t.cell;this.trigger(`cell:${e}`,t),n&&(n.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},t),{node:n})):n.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},t),{edge:n})))}clean(){this.length=0,this.cells=[],this.map={}}dispose(){this.reset([])}}T([au()],Jg.prototype,"dispose",null);class Xg extends ou{static isModel(e){if(null==e)return!1;if(e instanceof Xg)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||"X6.Model"===t)&&"function"==typeof n.addNode&&"function"==typeof n.addEdge&&null!=n.collection}static toJSON(e,t={}){return{cells:e.map((e=>e.toJSON(t)))}}static fromJSON(e){const t=[];return Array.isArray(e)?t.push(...e):(e.cells&&t.push(...e.cells),e.nodes&&e.nodes.forEach((e=>{null==e.shape&&(e.shape="rect"),t.push(e)})),e.edges&&e.edges.forEach((e=>{null==e.shape&&(e.shape="edge"),t.push(e)}))),t.map((e=>{const t=e.shape;if(t){if(Vg.registry.exist(t))return Vg.create(e);if($g.registry.exist(t))return $g.create(e)}throw new Error("The `shape` should be specified when creating a node/edge instance")}))}constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new Jg(e),this.setup()}notify(e,t){this.trigger(e,t);const n=this.graph;return n&&("sorted"===e||"reseted"===e||"updated"===e?n.trigger(`model:${e}`,t):n.trigger(e,t)),this}setup(){const e=this.collection;e.on("sorted",(()=>this.notify("sorted",null))),e.on("updated",(e=>this.notify("updated",e))),e.on("cell:change:zIndex",(()=>this.sortOnChangeZ())),e.on("added",(({cell:e})=>{this.onCellAdded(e)})),e.on("removed",(e=>{const t=e.cell;this.onCellRemoved(t,e.options),
// Should trigger remove-event manually after cell was removed.
this.notify("cell:removed",e),t.isNode()?this.notify("node:removed",Object.assign(Object.assign({},e),{node:t})):t.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},e),{edge:t}))})),e.on("reseted",(e=>{this.onReset(e.current),this.notify("reseted",e)})),e.on("edge:change:source",(({edge:e})=>this.onEdgeTerminalChanged(e,"source"))),e.on("edge:change:target",(({edge:e})=>{this.onEdgeTerminalChanged(e,"target")}))}sortOnChangeZ(){this.collection.sort()}onCellAdded(e){const t=e.id;e.isEdge()?(
// Auto update edge's parent
e.updateParent(),this.edges[t]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[t]=!0}onCellRemoved(e,t){const n=e.id;if(e.isEdge()){delete this.edges[n];const t=e.getSource(),r=e.getTarget();if(null==t?void 0:t.cell){const e=this.outgoings[t.cell],r=e?e.indexOf(n):-1;r>=0&&(e.splice(r,1),0===e.length&&delete this.outgoings[t.cell])}if(null==r?void 0:r.cell){const e=this.incomings[r.cell],t=e?e.indexOf(n):-1;t>=0&&(e.splice(t,1),0===e.length&&delete this.incomings[r.cell])}}else delete this.nodes[n];t.clear||(t.disconnectEdges?this.disconnectConnectedEdges(e,t):this.removeConnectedEdges(e,t)),e.model===this&&(e.model=null)}onReset(e){this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach((e=>{this.onCellAdded(e)}))}onEdgeTerminalChanged(e,t){const n="source"===t?this.outgoings:this.incomings,r=e.previous(t);if(null==r?void 0:r.cell){const t=jg.isCell(r.cell)?r.cell.id:r.cell,i=n[t],a=i?i.indexOf(e.id):-1;a>=0&&(i.splice(a,1),0===i.length&&delete n[t])}const i=e.getTerminal(t);if(null==i?void 0:i.cell){const t=jg.isCell(i.cell)?i.cell.id:i.cell,r=n[t]||[];-1===r.indexOf(e.id)&&r.push(e.id),n[t]=r}}prepareCell(e,t){return e.model||t&&t.dryrun||(e.model=this),null==e.zIndex&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}resetCells(e,t={}){
// Do not update model at this time. Because if we just update the graph
// with the same json-data, the edge will reference to the old nodes.
return e.map((e=>this.prepareCell(e,Object.assign(Object.assign({},t),{dryrun:!0})))),this.collection.reset(e,t),
// Update model and trigger edge update it's references
e.map((e=>this.prepareCell(e,{options:t}))),this}clear(e={}){const t=this.getCells();if(0===t.length)return this;const n=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",(()=>{
// The nodes come after the edges.
const e=t.sort(((e,t)=>(e.isEdge()?1:2)-(t.isEdge()?1:2)));for(;e.length>0;){
// Note that all the edges are removed first, so it's safe to
// remove the nodes without removing the connected edges first.
const t=e.shift();t&&t.remove(n)}}),n),this}addNode(e,t={}){const n=Vg.isNode(e)?e:this.createNode(e);return this.addCell(n,t),n}updateNode(e,t={}){const n=this.createNode(e),r=n.getProp();return n.dispose(),this.updateCell(r,t)}createNode(e){return Vg.create(e)}addEdge(e,t={}){const n=$g.isEdge(e)?e:this.createEdge(e);return this.addCell(n,t),n}createEdge(e){return $g.create(e)}updateEdge(e,t={}){const n=this.createEdge(e),r=n.getProp();return n.dispose(),this.updateCell(r,t)}addCell(e,t={}){return Array.isArray(e)?this.addCells(e,t):(this.collection.has(e)||this.addings.has(e)||(this.addings.set(e,!0),this.collection.add(this.prepareCell(e,t),t),e.eachChild((e=>this.addCell(e,t))),this.addings.delete(e)),this)}addCells(e,t={}){const n=e.length;if(0===n)return this;const r=Object.assign(Object.assign({},t),{position:n-1,maxPosition:n-1});return this.startBatch("add",Object.assign(Object.assign({},r),{cells:e})),e.forEach((e=>{this.addCell(e,r),r.position-=1})),this.stopBatch("add",Object.assign(Object.assign({},r),{cells:e})),this}updateCell(e,t={}){const n=e.id&&this.getCell(e.id);return!!n&&this.batchUpdate("update",(()=>(Object.entries(e).forEach((([e,r])=>{n.setProp(e,r,t)})),!0)),e)}removeCell(e,t={}){const n="string"==typeof e?this.getCell(e):e;return n&&this.has(n)?this.collection.remove(n,t):null}updateCellId(e,t){if(e.id===t)return;this.startBatch("update",{id:t}),e.prop("id",t);const n=e.clone({keepId:!0});this.addCell(n);return this.getConnectedEdges(e).forEach((n=>{const r=n.getSourceCell(),i=n.getTargetCell();r===e&&n.setSource(Object.assign(Object.assign({},n.getSource()),{cell:t})),i===e&&n.setTarget(Object.assign(Object.assign({},n.getTarget()),{cell:t}))})),this.removeCell(e),this.stopBatch("update",{id:t}),n}removeCells(e,t={}){return e.length?this.batchUpdate("remove",(()=>e.map((e=>this.removeCell(e,t))))):[]}removeConnectedEdges(e,t={}){const n=this.getConnectedEdges(e);return n.forEach((e=>{e.remove(t)})),n}disconnectConnectedEdges(e,t={}){const n="string"==typeof e?e:e.id;this.getConnectedEdges(e).forEach((e=>{const r=e.getSourceCellId(),i=e.getTargetCellId();r===n&&e.setSource({x:0,y:0},t),i===n&&e.setTarget({x:0,y:0},t)}))}has(e){return this.collection.has(e)}total(){return this.collection.length}indexOf(e){return this.collection.indexOf(e)}
/**
     * Returns a cell from the graph by its id.
     */getCell(e){return this.collection.get(e)}
/**
     * Returns all the nodes and edges in the graph.
     */getCells(){return this.collection.toArray()}
/**
     * Returns the first cell (node or edge) in the graph. The first cell is
     * defined as the cell with the lowest `zIndex`.
     */getFirstCell(){return this.collection.first()}
/**
     * Returns the last cell (node or edge) in the graph. The last cell is
     * defined as the cell with the highest `zIndex`.
     */getLastCell(){return this.collection.last()}
/**
     * Returns the lowest `zIndex` value in the graph.
     */getMinZIndex(){const e=this.collection.first();return e&&e.getZIndex()||0}
/**
     * Returns the highest `zIndex` value in the graph.
     */getMaxZIndex(){const e=this.collection.last();return e&&e.getZIndex()||0}getCellsFromCache(e){return e?Object.keys(e).map((e=>this.getCell(e))).filter((e=>null!=e)):[]}
/**
     * Returns all the nodes in the graph.
     */getNodes(){return this.getCellsFromCache(this.nodes)}
/**
     * Returns all the edges in the graph.
     */getEdges(){return this.getCellsFromCache(this.edges)}
/**
     * Returns all outgoing edges for the node.
     */getOutgoingEdges(e){const t="string"==typeof e?e:e.id,n=this.outgoings[t];return n?n.map((e=>this.getCell(e))).filter((e=>null==e?void 0:e.isEdge())):null}
/**
     * Returns all incoming edges for the node.
     */getIncomingEdges(e){const t="string"==typeof e?e:e.id,n=this.incomings[t];return n?n.map((e=>this.getCell(e))).filter((e=>null==e?void 0:e.isEdge())):null}
/**
     * Returns edges connected with cell.
     */getConnectedEdges(e,t={}){const n=[],r="string"==typeof e?this.getCell(e):e;if(null==r)return n;const i={},a=t.indirect;let o=t.incoming,s=t.outgoing;null==o&&null==s&&(o=s=!0);const c=(e,t)=>{const r=t?this.getOutgoingEdges(e):this.getIncomingEdges(e);if(null!=r&&r.forEach((e=>{i[e.id]||(n.push(e),i[e.id]=!0,a&&(o&&c(e,!1),s&&c(e,!0)))})),a&&e.isEdge()){const r=t?e.getTargetCell():e.getSourceCell();(null==r?void 0:r.isEdge())&&(i[r.id]||(n.push(r),c(r,t)))}};if(s&&c(r,!0),o&&c(r,!1),t.deep){const e=r.getDescendants({deep:!0}),a={};e.forEach((e=>{e.isNode()&&(a[e.id]=!0)}));const c=(e,r)=>{const o=r?this.getOutgoingEdges(e.id):this.getIncomingEdges(e.id);null!=o&&o.forEach((e=>{if(!i[e.id]){const r=e.getSourceCell(),o=e.getTargetCell();if(!t.enclosed&&r&&a[r.id]&&o&&a[o.id])return;n.push(e),i[e.id]=!0}}))};e.forEach((e=>{e.isEdge()||(s&&c(e,!0),o&&c(e,!1))}))}return n}isBoundary(e,t){const n="string"==typeof e?this.getCell(e):e,r=t?this.getIncomingEdges(n):this.getOutgoingEdges(n);return null==r||0===r.length}getBoundaryNodes(e){const t=[];return Object.keys(this.nodes).forEach((n=>{if(this.isBoundary(n,e)){const e=this.getCell(n);e&&t.push(e)}})),t}
/**
     * Returns an array of all the roots of the graph.
     */getRoots(){return this.getBoundaryNodes(!0)}
/**
     * Returns an array of all the leafs of the graph.
     */getLeafs(){return this.getBoundaryNodes(!1)}
/**
     * Returns `true` if the node is a root node, i.e. there is no edges
     * coming to the node.
     */isRoot(e){return this.isBoundary(e,!0)}
/**
     * Returns `true` if the node is a leaf node, i.e. there is no edges
     * going out from the node.
     */isLeaf(e){return this.isBoundary(e,!1)}
/**
     * Returns all the neighbors of node in the graph. Neighbors are all
     * the nodes connected to node via either incoming or outgoing edge.
     */getNeighbors(e,t={}){let n=t.incoming,r=t.outgoing;null==n&&null==r&&(n=r=!0);const i=this.getConnectedEdges(e,t).reduce(((i,a)=>{const o=a.hasLoop(t),s=a.getSourceCell(),c=a.getTargetCell();return n&&s&&s.isNode()&&!i[s.id]&&(!o&&(s===e||t.deep&&s.isDescendantOf(e))||(i[s.id]=s)),r&&c&&c.isNode()&&!i[c.id]&&(!o&&(c===e||t.deep&&c.isDescendantOf(e))||(i[c.id]=c)),i}),{});if(e.isEdge()){if(n){const t=e.getSourceCell();(null==t?void 0:t.isNode())&&!i[t.id]&&(i[t.id]=t)}if(r){const t=e.getTargetCell();(null==t?void 0:t.isNode())&&!i[t.id]&&(i[t.id]=t)}}return Object.keys(i).map((e=>i[e]))}
/**
     * Returns `true` if `cell2` is a neighbor of `cell1`.
     */isNeighbor(e,t,n={}){let r=n.incoming,i=n.outgoing;return null==r&&null==i&&(r=i=!0),this.getConnectedEdges(e,n).some((e=>{const n=e.getSourceCell(),a=e.getTargetCell();return!(!r||!n||n.id!==t.id)||!(!i||!a||a.id!==t.id)}))}getSuccessors(e,t={}){const n=[];return this.search(e,((r,i)=>{r!==e&&this.matchDistance(i,t.distance)&&n.push(r)}),Object.assign(Object.assign({},t),{outgoing:!0})),n}
/**
     * Returns `true` if `cell2` is a successor of `cell1`.
     */isSuccessor(e,t,n={}){let r=!1;return this.search(e,((i,a)=>{if(i===t&&i!==e&&this.matchDistance(a,n.distance))return r=!0,!1}),Object.assign(Object.assign({},n),{outgoing:!0})),r}getPredecessors(e,t={}){const n=[];return this.search(e,((r,i)=>{r!==e&&this.matchDistance(i,t.distance)&&n.push(r)}),Object.assign(Object.assign({},t),{incoming:!0})),n}
/**
     * Returns `true` if `cell2` is a predecessor of `cell1`.
     */isPredecessor(e,t,n={}){let r=!1;return this.search(e,((i,a)=>{if(i===t&&i!==e&&this.matchDistance(a,n.distance))return r=!0,!1}),Object.assign(Object.assign({},n),{incoming:!0})),r}matchDistance(e,t){return null==t||("function"==typeof t?t(e):!(!Array.isArray(t)||!t.includes(e))||e===t)}
/**
     * Returns the common ancestor of the passed cells.
     */getCommonAncestor(...e){const t=[];return e.forEach((e=>{e&&(Array.isArray(e)?t.push(...e):t.push(e))})),jg.getCommonAncestor(...t)}
/**
     * Returns an array of cells that result from finding nodes/edges that
     * are connected to any of the cells in the cells array. This function
     * loops over cells and if the current cell is a edge, it collects its
     * source/target nodes; if it is an node, it collects its incoming and
     * outgoing edges if both the edge terminal (source/target) are in the
     * cells array.
     */getSubGraph(e,t={}){const n=[],r={},i=[],a=[],o=e=>{r[e.id]||(n.push(e),r[e.id]=e,e.isEdge()&&a.push(e),e.isNode()&&i.push(e))};return e.forEach((e=>{if(o(e),t.deep){e.getDescendants({deep:!0}).forEach((e=>{o(e)}))}})),a.forEach((e=>{
// For edges, include their source & target
const t=e.getSourceCell(),a=e.getTargetCell();t&&!r[t.id]&&(n.push(t),r[t.id]=t,t.isNode()&&i.push(t)),a&&!r[a.id]&&(n.push(a),r[a.id]=a,a.isNode()&&i.push(a))})),i.forEach((e=>{this.getConnectedEdges(e,t).forEach((e=>{const t=e.getSourceCell(),i=e.getTargetCell();!r[e.id]&&t&&r[t.id]&&i&&r[i.id]&&(n.push(e),r[e.id]=e)}))})),n}
/**
     * Clones the whole subgraph (including all the connected links whose
     * source/target is in the subgraph). If `options.deep` is `true`, also
     * take into account all the embedded cells of all the subgraph cells.
     *
     * Returns a map of the form: { [original cell ID]: [clone] }.
     */cloneSubGraph(e,t={}){const n=this.getSubGraph(e,t);return this.cloneCells(n)}cloneCells(e){return jg.cloneCells(e)}getNodesFromPoint(e,t){const n="number"==typeof e?{x:e,y:t||0}:e;return this.getNodes().filter((e=>e.getBBox().containsPoint(n)))}getNodesInArea(e,t,n,r,i){const a="number"==typeof e?new mr(e,t,n,r):mr.create(e),o="number"==typeof e?i:t,s=null==o?void 0:o.strict;return this.getNodes().filter((e=>{const t=e.angle(),n=e.getBBox().bbox(t);return s?a.containsRect(n):a.isIntersectWithRect(n)}))}getEdgesInArea(e,t,n,r,i){const a="number"==typeof e?new mr(e,t,n,r):mr.create(e),o="number"==typeof e?i:t,s=null==o?void 0:o.strict;return this.getEdges().filter((e=>{const t=e.getBBox();return 0===t.width?t.inflate(1,0):0===t.height&&t.inflate(0,1),s?a.containsRect(t):a.isIntersectWithRect(t)}))}getNodesUnderNode(e,t={}){const n=e.getBBox();return(null==t.by||"bbox"===t.by?this.getNodesInArea(n):this.getNodesFromPoint(n[t.by])).filter((t=>e.id!==t.id&&!t.isDescendantOf(e)))}
/**
     * Returns the bounding box that surrounds all cells in the graph.
     */getAllCellsBBox(){return this.getCellsBBox(this.getCells())}
/**
     * Returns the bounding box that surrounds all the given cells.
     */getCellsBBox(e,t={}){return jg.getCellsBBox(e,t)}
// #region search
search(e,t,n={}){n.breadthFirst?this.breadthFirstSearch(e,t,n):this.depthFirstSearch(e,t,n)}breadthFirstSearch(e,t,n={}){const r=[],i={},a={};for(r.push(e),a[e.id]=0;r.length>0;){const e=r.shift();if(null==e||i[e.id])continue;if(i[e.id]=!0,!1===s.call(t,this,e,a[e.id]))continue;this.getNeighbors(e,n).forEach((t=>{a[t.id]=a[e.id]+1,r.push(t)}))}}depthFirstSearch(e,t,n={}){const r=[],i={},a={};for(r.push(e),a[e.id]=0;r.length>0;){const e=r.pop();if(null==e||i[e.id])continue;if(i[e.id]=!0,!1===s.call(t,this,e,a[e.id]))continue;const o=this.getNeighbors(e,n),c=r.length;o.forEach((t=>{a[t.id]=a[e.id]+1,r.splice(c,0,t)}))}}
// #endregion
// #region shortest path
/** *
     * Returns an array of IDs of nodes on the shortest
     * path between source and target.
     */
getShortestPath(e,t,n={}){const r={};this.getEdges().forEach((e=>{const t=e.getSourceCellId(),i=e.getTargetCellId();t&&i&&(r[t]||(r[t]=[]),r[i]||(r[i]=[]),r[t].push(i),n.directed||r[i].push(t))}));const i="string"==typeof e?e:e.id,a=function(e,t,n=(e,t)=>1){const r={},i={},a={},o=new fl;for(r[t]=0,Object.keys(e).forEach((e=>{e!==t&&(r[e]=1/0),o.insert(r[e],e,e)}));!o.isEmpty();){const t=o.remove();a[t]=!0;const s=e[t];for(let e=0;e<s.length;e+=1){const c=s[e];if(!a[c]){const e=r[t]+n(t,c);e<r[c]&&(r[c]=e,i[c]=t,o.updatePriority(c,e))}}}return i}(r,i,n.weight),o=[];let s="string"==typeof t?t:t.id;for(a[s]&&o.push(s);a[s];){const e=a[s];o.unshift(e),s=e}return o}
// #endregion
// #region transform
/**
     * Translate all cells in the graph by `tx` and `ty` pixels.
     */
translate(e,t,n){return this.getCells().filter((e=>!e.hasParent())).forEach((r=>{r.translate(e,t,n)})),this}resize(e,t,n){return this.resizeCells(e,t,this.getCells(),n)}resizeCells(e,t,n,r={}){const i=this.getCellsBBox(n);if(i){const a=Math.max(e/i.width,0),o=Math.max(t/i.height,0),s=i.getOrigin();n.forEach((e=>{e.scale(a,o,s,r)}))}return this}
// #endregion
// #region serialize/deserialize
toJSON(e={}){return Xg.toJSON(this.getCells(),e)}parseJSON(e){return Xg.fromJSON(e)}fromJSON(e,t={}){let n=[];if(t.diff){const t=e,{nodes:r=[],edges:i=[]}=t,a=M(t,["nodes","edges"]),o=r.filter((e=>!this.nodes[e.id]))||[],s=i.filter((e=>!this.edges[e.id]))||[];n=this.parseJSON(Object.assign(Object.assign({},a),{nodes:o,edges:s}))}else n=this.parseJSON(e);return this.resetCells(n,t),this}
// #endregion
// #region batch
startBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:t}),this}stopBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:t}),this}batchUpdate(e,t,n={}){this.startBatch(e,n);const r=t();return this.stopBatch(e,n),r}hasActiveBatch(e=Object.keys(this.batches)){return(Array.isArray(e)?e:[e]).some((e=>this.batches[e]>0))}
// #endregion
dispose(){this.collection.dispose()}}T([au()],Xg.prototype,"dispose",null);
//# sourceMappingURL=model.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/model/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/base.js
const Zg={fill:"#ffffff",stroke:"#333333",strokeWidth:2};class em extends Vg{get label(){return this.getLabel()}set label(e){this.setLabel(e)}getLabel(){return this.getAttrByPath("text/text")}setLabel(e,t){return null==e?this.removeLabel():this.setAttrByPath("text/text",e,t),this}removeLabel(){return this.removeAttrByPath("text/text"),this}}
//# sourceMappingURL=base.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/util.js
function tm(e,t="body"){return[{tagName:e,selector:t},{tagName:"text",selector:"label"}]}function nm(e,t,n={}){const r={constructorName:e,markup:tm(e,n.selector),attrs:{[e]:Object.assign({},Zg)}};return(n.parent||em).define(l.merge(r,t,{shape:e}))}function rm(e){return"string"==typeof e?e:e.map((e=>Array.isArray(e)?e.join(","):gr.isPointLike(e)?`${e.x}, ${e.y}`:"")).join(" ")}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/circle.js
em.config({attrs:{text:Object.assign({},{fontSize:14,fill:"#000000",refX:.5,refY:.5,textAnchor:"middle",textVerticalAnchor:"middle",fontFamily:"Arial, helvetica, sans-serif"})},propHooks(e){const{label:t}=e,n=M(e,["label"]);return t&&l.setByPath(n,"attrs/text/text",t),n},visible:!0});const im=nm("circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%"}}}),am=$g.define({shape:"edge",markup:[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}],attrs:{lines:{connection:!0,strokeLinejoin:"round"},wrap:{strokeWidth:10},line:{stroke:"#333",strokeWidth:2,targetMarker:"classic"}}}),om=nm("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});
//# sourceMappingURL=circle.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/edge.js
//# sourceMappingURL=ellipse.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/base.js
class sm extends iu{get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}constructor(e){super(),this.graph=e,this.init()}init(){}}
//# sourceMappingURL=base.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/constants/index.js
const cm={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onDragEnd"},lm=1<<30;
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/node/index.js
class um extends Jp{constructor(){super(...arguments),this.portsCache={}}static isNodeView(e){if(null==e)return!1;if(e instanceof um)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===hm)&&"function"==typeof n.isNodeView&&"function"==typeof n.isEdgeView&&"function"==typeof n.confirmUpdate&&"function"==typeof n.update&&"function"==typeof n.findPortElem&&"function"==typeof n.resize&&"function"==typeof n.rotate&&"function"==typeof n.translate}get[Symbol.toStringTag](){return hm}getContainerClassName(){const e=[super.getContainerClassName(),this.prefixClassName("node")];return this.can("nodeMovable")||e.push(this.prefixClassName("node-immovable")),e.join(" ")}updateClassName(e){const t=e.target;if(t.hasAttribute("magnet")){
// port
const e=this.prefixClassName("port-unconnectable");this.can("magnetConnectable")?h.removeClass(t,e):h.addClass(t,e)}else{
// node
const e=this.prefixClassName("node-immovable");this.can("nodeMovable")?this.removeClass(e):this.addClass(e)}}isNodeView(){return!0}confirmUpdate(e,t={}){let n=e;return this.hasAction(n,"ports")&&(this.removePorts(),this.cleanPortsCache()),this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","resize","translate","rotate","ports","tools"])):(n=this.handleAction(n,"resize",(()=>this.resize()),"update"),n=this.handleAction(n,"update",(()=>this.update()
// `update()` will render ports when useCSSSelectors are enabled
),zf.useCSSSelector?"ports":null),n=this.handleAction(n,"translate",(()=>this.translate())),n=this.handleAction(n,"rotate",(()=>this.rotate())),n=this.handleAction(n,"ports",(()=>this.renderPorts())),n=this.handleAction(n,"tools",(()=>{this.getFlag("tools")===e?this.renderTools():this.updateTools(t)}))),n}update(e){this.cleanCache(),
// When CSS selector strings are used, make sure no rule matches port nodes.
zf.useCSSSelector&&this.removePorts();const t=this.cell,n=t.getSize(),r=t.getAttrs();this.updateAttrs(this.container,r,{attrs:e===r?null:e,rootBBox:new mr(0,0,n.width,n.height),selectors:this.selectors}),zf.useCSSSelector&&this.renderPorts()}renderMarkup(){const e=this.cell.markup;if(e){if("string"==typeof e)throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid node markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.appendChild(t.fragment)}render(){return this.empty(),this.renderMarkup(),this.resize(),this.updateTransform(),zf.useCSSSelector||this.renderPorts(),this.renderTools(),this.notify("view:render",{view:this}),this}resize(){this.cell.getAngle()&&this.rotate(),this.update()}translate(){this.updateTransform()}rotate(){this.updateTransform()}getTranslationString(){const e=this.cell.getPosition();return`translate(${e.x},${e.y})`}getRotationString(){const e=this.cell.getAngle();if(e){const t=this.cell.getSize();return`rotate(${e},${t.width/2},${t.height/2})`}}updateTransform(){let e=this.getTranslationString();const t=this.getRotationString();t&&(e+=` ${t}`),this.container.setAttribute("transform",e)}
// #region ports
findPortElem(e,t){const n=e?this.portsCache[e]:null;if(!n)return null;const r=n.portContentElement,i=n.portContentSelectors||{};return this.findOne(t,r,i)}cleanPortsCache(){this.portsCache={}}removePorts(){Object.values(this.portsCache).forEach((e=>{h.remove(e.portElement)}))}renderPorts(){const e=this.container,t=[];
// References to rendered elements without z-index
e.childNodes.forEach((e=>{t.push(e)}));const n=this.cell.getParsedPorts(),i=r.groupBy(n,"zIndex"),a="auto";
// render non-z first
i[a]&&i[a].forEach((n=>{const r=this.getPortElement(n);e.append(r),t.push(r)})),Object.keys(i).forEach((e=>{if(e!==a){const n=parseInt(e,10);this.appendPorts(i[e],n,t)}})),this.updatePorts()}appendPorts(e,t,n){const r=e.map((e=>this.getPortElement(e)));n[t]||t<0?h.before(n[Math.max(t,0)],r):h.append(this.container,r)}getPortElement(e){const t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}createPortElement(e){let t=Fp.renderMarkup(this.cell.getPortContainerMarkup());const n=t.elem;if(null==n)throw new Error("Invalid port container markup.");t=Fp.renderMarkup(this.getPortMarkup(e));const r=t.elem,i=t.selectors;if(null==r)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},r);let a="x6-port";e.group&&(a+=` x6-port-${e.group}`),h.addClass(n,a),h.addClass(n,"x6-port"),h.addClass(r,"x6-port-body"),n.appendChild(r);let o,s,c=i;if(this.existPortLabel(e)){if(t=Fp.renderMarkup(this.getPortLabelMarkup(e.label)),o=t.elem,s=t.selectors,null==o)throw new Error("Invalid port label markup.");if(i&&s){
// eslint-disable-next-line
for(const e in s)if(i[e]&&e!==this.rootSelector)throw new Error("Selectors within port must be unique.");c=Object.assign(Object.assign({},i),s)}h.addClass(o,"x6-port-label"),n.appendChild(o)}return this.portsCache[e.id]={portElement:n,portSelectors:c,portLabelElement:o,portLabelSelectors:s,portContentElement:r,portContentSelectors:i},this.graph.options.onPortRendered&&this.graph.options.onPortRendered({port:e,node:this.cell,container:n,selectors:c,labelContainer:o,labelSelectors:s,contentContainer:r,contentSelectors:i}),n}updatePorts(){const e=this.cell.getParsedGroups(),t=Object.keys(e);0===t.length?this.updatePortGroup():t.forEach((e=>{this.updatePortGroup(e)}))}updatePortGroup(e){const t=mr.fromSize(this.cell.getSize()),n=this.cell.getPortsLayoutByGroup(e,t);for(let e=0,t=n.length;e<t;e+=1){const t=n[e],r=t.portId,i=this.portsCache[r]||{},a=t.portLayout;if(
// @ts-expect-error
this.applyPortTransform(i.portElement,a),null!=t.portAttrs){const e={
// @ts-expect-error
selectors:i.portSelectors||{}};t.portSize&&(e.rootBBox=mr.fromSize(t.portSize)),
// @ts-expect-error
this.updateAttrs(i.portElement,t.portAttrs,e)}const o=t.labelLayout;
// @ts-expect-error
if(o&&i.portLabelElement&&(this.applyPortTransform(
// @ts-expect-error
i.portLabelElement,o,-(a.angle||0)),o.attrs)){const e={
// @ts-expect-error
selectors:i.portLabelSelectors||{}};t.labelSize&&(e.rootBBox=mr.fromSize(t.labelSize)),
// @ts-expect-error
this.updateAttrs(i.portLabelElement,o.attrs,e)}}}applyPortTransform(e,t,n=0){const r=t.angle,i=t.position,a=h.createSVGMatrix().rotate(n).translate(i.x||0,i.y||0).rotate(r||0);h.transform(e,a,{absolute:!0})}getPortMarkup(e){return e.markup||this.cell.portMarkup}getPortLabelMarkup(e){return e.markup||this.cell.portLabelMarkup}existPortLabel(e){return e.attrs&&e.attrs.text}getEventArgs(e,t,n){const r=this,i=r.cell;// eslint-disable-line
return null==t||null==n?{e:e,view:r,node:i,cell:i}:{e:e,x:t,y:n,view:r,node:i,cell:i}}getPortEventArgs(e,t,n){const r=this,i=r.cell,a=i;// eslint-disable-line
return n?{e:e,x:n.x,y:n.y,view:r,node:i,cell:a,port:t}:{e:e,view:r,node:i,cell:a,port:t}}notifyMouseDown(e,t,n){super.onMouseDown(e,t,n),this.notify("node:mousedown",this.getEventArgs(e,t,n))}notifyMouseMove(e,t,n){super.onMouseMove(e,t,n),this.notify("node:mousemove",this.getEventArgs(e,t,n))}notifyMouseUp(e,t,n){super.onMouseUp(e,t,n),this.notify("node:mouseup",this.getEventArgs(e,t,n))}notifyPortEvent(e,t,n){const r=this.findAttr("port",t.target);if(r){const i=t.type;"node:port:mouseenter"===e?t.type="mouseenter":"node:port:mouseleave"===e&&(t.type="mouseleave"),this.notify(e,this.getPortEventArgs(t,r,n)),t.type=i}}onClick(e,t,n){super.onClick(e,t,n),this.notify("node:click",this.getEventArgs(e,t,n)),this.notifyPortEvent("node:port:click",e,{x:t,y:n})}onDblClick(e,t,n){super.onDblClick(e,t,n),this.notify("node:dblclick",this.getEventArgs(e,t,n)),this.notifyPortEvent("node:port:dblclick",e,{x:t,y:n})}onContextMenu(e,t,n){super.onContextMenu(e,t,n),this.notify("node:contextmenu",this.getEventArgs(e,t,n)),this.notifyPortEvent("node:port:contextmenu",e,{x:t,y:n})}onMouseDown(e,t,n){this.isPropagationStopped(e)||(this.notifyMouseDown(e,t,n),this.notifyPortEvent("node:port:mousedown",e,{x:t,y:n}),this.startNodeDragging(e,t,n))}onMouseMove(e,t,n){const r=this.getEventData(e),i=r.action;if("magnet"===i)this.dragMagnet(e,t,n);else{if("move"===i){const i=r.targetView||this;i.dragNode(e,t,n),i.notify("node:moving",{e:e,x:t,y:n,view:i,cell:i.cell,node:i.cell})}this.notifyMouseMove(e,t,n),this.notifyPortEvent("node:port:mousemove",e,{x:t,y:n})}this.setEventData(e,r)}onMouseUp(e,t,n){const r=this.getEventData(e),i=r.action;if("magnet"===i)this.stopMagnetDragging(e,t,n);else if(this.notifyMouseUp(e,t,n),this.notifyPortEvent("node:port:mouseup",e,{x:t,y:n}),"move"===i){(r.targetView||this).stopNodeDragging(e,t,n)}const a=r.targetMagnet;a&&this.onMagnetClick(e,a,t,n),this.checkMouseleave(e)}onMouseOver(e){super.onMouseOver(e),this.notify("node:mouseover",this.getEventArgs(e)),
// mock mouseenter event,so we can get correct trigger time when move mouse from node to port
// wo also need to change e.type for use get correct event args
this.notifyPortEvent("node:port:mouseenter",e),this.notifyPortEvent("node:port:mouseover",e)}onMouseOut(e){super.onMouseOut(e),this.notify("node:mouseout",this.getEventArgs(e)),
// mock mouseleave event,so we can get correct trigger time when move mouse from port to node
// wo also need to change e.type for use get correct event args
this.notifyPortEvent("node:port:mouseleave",e),this.notifyPortEvent("node:port:mouseout",e)}onMouseEnter(e){this.updateClassName(e),super.onMouseEnter(e),this.notify("node:mouseenter",this.getEventArgs(e))}onMouseLeave(e){super.onMouseLeave(e),this.notify("node:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,n,r){super.onMouseWheel(e,t,n,r),this.notify("node:mousewheel",Object.assign({delta:r},this.getEventArgs(e,t,n)))}onMagnetClick(e,t,n,r){const i=this.graph;i.view.getMouseMovedCount(e)>i.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:t},this.getEventArgs(e,n,r)))}onMagnetDblClick(e,t,n,r){this.notify("node:magnet:dblclick",Object.assign({magnet:t},this.getEventArgs(e,n,r)))}onMagnetContextMenu(e,t,n,r){this.notify("node:magnet:contextmenu",Object.assign({magnet:t},this.getEventArgs(e,n,r)))}onMagnetMouseDown(e,t,n,r){this.startMagnetDragging(e,n,r)}onCustomEvent(e,t,n,r){this.notify("node:customevent",Object.assign({name:t},this.getEventArgs(e,n,r))),super.onCustomEvent(e,t,n,r)}prepareEmbedding(e){const t=this.graph,n=this.getEventData(e).cell||this.cell,r=t.findViewByCell(n),i=t.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e:e,node:n,view:r,cell:n,x:i.x,y:i.y,currentParent:n.getParent()})}processEmbedding(e,t){const n=t.cell||this.cell,i=t.graph||this.graph,a=i.options.embedding,o=a.findParent;let c="function"==typeof o?s.call(o,i,{view:this,node:this.cell}).filter((e=>jg.isCell(e)&&this.cell.id!==e.id&&!e.isDescendantOf(this.cell))):i.model.getNodesUnderNode(n,{by:o});
// Picks the node with the highest `z` index
if(a.frontOnly&&c.length>0){const e=r.groupBy(c,"zIndex"),t=r.max(Object.keys(e).map((e=>parseInt(e,10))));t&&(c=e[t])}
// Filter the nodes which is invisiable
c=c.filter((e=>e.visible));let l=null;const u=t.candidateEmbedView,h=a.validate;for(let e=c.length-1;e>=0;e-=1){const t=c[e];if(u&&u.cell.id===t.id){
// candidate remains the same
l=u;break}{const e=t.findView(i);if(h&&s.call(h,i,{child:this.cell,parent:e.cell,childView:this,parentView:e})){
// flip to the new candidate
l=e;break}}}this.clearEmbedding(t),l&&l.highlight(null,{type:"embedding"}),t.candidateEmbedView=l;const f=i.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e:e,cell:n,node:n,view:i.findViewByCell(n),x:f.x,y:f.y,currentParent:n.getParent(),candidateParent:l?l.cell:null})}clearEmbedding(e){const t=e.candidateEmbedView;t&&(t.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}finalizeEmbedding(e,t){this.graph.startBatch("embedding");const n=t.cell||this.cell,r=t.graph||this.graph,i=r.findViewByCell(n),a=n.getParent(),o=t.candidateEmbedView;if(o?(
// Candidate view is chosen to become the parent of the node.
o.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,null!=a&&a.id===o.cell.id||o.cell.insertChild(n,void 0,{ui:!0})):a&&a.unembed(n,{ui:!0}),r.model.getConnectedEdges(n,{deep:!0}).forEach((e=>{e.updateParent({ui:!0})})),i&&o){const t=r.snapToGrid(e.clientX,e.clientY);i.notify("node:embedded",{e:e,cell:n,x:t.x,y:t.y,node:n,view:r.findViewByCell(n),previousParent:a,currentParent:n.getParent()})}this.graph.stopBatch("embedding")}getDelegatedView(){let e=this.cell,t=this;// eslint-disable-line
for(;t&&!e.isEdge();){if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.findViewByCell(e)}return null}validateMagnet(e,t,n){if("passive"!==t.getAttribute("magnet")){const r=this.graph.options.connecting.validateMagnet;return!r||s.call(r,this.graph,{e:n,magnet:t,view:e,cell:e.cell})}return!1}startMagnetDragging(e,t,n){if(!this.can("magnetConnectable"))return;e.stopPropagation();const r=e.currentTarget,i=this.graph;this.setEventData(e,{targetMagnet:r}),this.validateMagnet(this,r,e)?(
// @ts-expect-error
i.options.magnetThreshold<=0&&this.startConnectting(e,r,t,n),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,t,n),i.view.delegateDragEvents(e,this)}startConnectting(e,t,n,r){this.graph.model.startBatch("add-edge");const i=this.createEdgeFromMagnet(t,n,r);i.setEventData(e,i.prepareArrowheadDragging("target",{x:n,y:r,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:i}),i.notifyMouseDown(e,n,r)}getDefaultEdge(e,t){let n;const r=this.graph.options.connecting.createEdge;return r&&(n=s.call(r,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),n}createEdgeFromMagnet(e,t,n){const r=this.graph,i=r.model,a=this.getDefaultEdge(this,e);return a.setSource(Object.assign(Object.assign({},a.getSource()),this.getEdgeTerminal(e,t,n,a,"source"))),a.setTarget(Object.assign(Object.assign({},a.getTarget()),{x:t,y:n})),a.addTo(i,{async:!1,ui:!0}),a.findView(r)}dragMagnet(e,t,n){const r=this.getEventData(e),i=r.edgeView;if(i)i.onMouseMove(e,t,n),this.autoScrollGraph(e.clientX,e.clientY);else{const i=this.graph,a=i.options.magnetThreshold,o=this.getEventTarget(e),s=r.targetMagnet;
// magnetThreshold when the pointer leaves the magnet
if("onleave"===a){if(s===o||s.contains(o))return;
// eslint-disable-next-line no-lonely-if
}else
// magnetThreshold defined as a number of movements
if(i.view.getMouseMovedCount(e)<=a)return;this.startConnectting(e,s,t,n)}}stopMagnetDragging(e,t,n){const r=this.eventData(e).edgeView;r&&(r.onMouseUp(e,t,n),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,t,n){this.notify("node:unhandled:mousedown",{e:e,x:t,y:n,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,t,n,r,i){let a=[i];const o=this.graph.getPlugin("selection");if(o&&o.isSelectionMovable()){const e=o.getSelectedCells();e.includes(i)&&(a=e.filter((e=>e.isNode())))}a.forEach((i=>{this.notify(e,{e:t,x:n,y:r,cell:i,node:i,view:i.findView(this.graph)})}))}getRestrictArea(e){const t=this.graph.options.translating.restrict,n="function"==typeof t?s.call(t,this.graph,e):t;return"number"==typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}startNodeDragging(e,t,n){const r=this.getDelegatedView();if(null==r||!r.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,t,n);this.setEventData(e,{targetView:r,action:"move"});const i=gr.create(r.cell.getPosition());r.setEventData(e,{moving:!1,offset:i.diff(t,n),restrict:this.getRestrictArea(r)})}dragNode(e,t,n){const r=this.cell,i=this.graph,a=i.getGridSize(),o=this.getEventData(e),s=o.offset,c=o.restrict;o.moving||(o.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,t,n,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const l=hr(t+s.x,a),u=hr(n+s.y,a);r.setPosition(l,u,{restrict:c,deep:!0,ui:!0}),i.options.embedding.enabled&&(o.embedding||(this.prepareEmbedding(e),o.embedding=!0),this.processEmbedding(e,o))}autoOffsetNode(){const e=this.cell,t=this.graph,n=Object.assign({id:e.id},e.getPosition()),r=t.getNodes().map((e=>{const t=e.getPosition();return{id:e.id,x:t.x,y:t.y}})).filter((e=>e.id!==n.id)),i=[[1,1],// offset to right bottom
[1,-1],// offset to right top
[-1,1],// offset to left bottom
[-1,-1]];let a=t.getGridSize();const o=e=>r.some((t=>t.x===e.x&&t.y===e.y));for(;o(n);){let r=!1;for(let t=0;t<i.length;t+=1){const s=i[t];if(!o({x:n.x+s[0]*a,y:n.y+s[1]*a})){e.translate(s[0]*a,s[1]*a),r=!0;break}}if(r)break;a+=t.getGridSize()}}stopNodeDragging(e,t,n){const r=this.getEventData(e),i=this.graph;if(r.embedding&&this.finalizeEmbedding(e,r),r.moving){i.options.translating.autoOffset&&this.autoOffsetNode(),this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,t,n,this.cell)}r.moving=!1,r.embedding=!1}
// eslint-disable-next-line
autoScrollGraph(e,t){const n=this.graph.getPlugin("scroller");n&&n.autoScroll(e,t)}}const hm=`X6.${um.name}`;um.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}}),um.registry.register("node",um,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/edge/index.js
class fm extends Jp{constructor(){super(...arguments),this.POINT_ROUNDING=2,this.labelDestroyFn={}}static isEdgeView(e){if(null==e)return!1;if(e instanceof fm)return!0;const t=e[Symbol.toStringTag],n=e;return(null==t||t===dm)&&"function"==typeof n.isNodeView&&"function"==typeof n.isEdgeView&&"function"==typeof n.confirmUpdate&&"function"==typeof n.update&&"function"==typeof n.getConnection}get[Symbol.toStringTag](){return dm}getContainerClassName(){return[super.getContainerClassName(),this.prefixClassName("edge")].join(" ")}get sourceBBox(){const e=this.sourceView;if(!e){const e=this.cell.getSource();return new mr(e.x,e.y)}const t=this.sourceMagnet;return e.isEdgeElement(t)?new mr(this.sourceAnchor.x,this.sourceAnchor.y):e.getBBoxOfElement(t||e.container)}get targetBBox(){const e=this.targetView;if(!e){const e=this.cell.getTarget();return new mr(e.x,e.y)}const t=this.targetMagnet;return e.isEdgeElement(t)?new mr(this.targetAnchor.x,this.targetAnchor.y):e.getBBoxOfElement(t||e.container)}isEdgeView(){return!0}confirmUpdate(e,t={}){let n=e;if(this.hasAction(n,"source")){if(!this.updateTerminalProperties("source"))return n;n=this.removeAction(n,"source")}if(this.hasAction(n,"target")){if(!this.updateTerminalProperties("target"))return n;n=this.removeAction(n,"target")}return this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","labels","tools"]),n):(n=this.handleAction(n,"update",(()=>this.update(t))),n=this.handleAction(n,"labels",(()=>this.onLabelsChange(t))),n=this.handleAction(n,"tools",(()=>this.renderTools())),n)}
// #region render
render(){return this.empty(),this.renderMarkup(),this.labelContainer=null,this.renderLabels(),this.update(),this.renderTools(),this.notify("view:render",{view:this}),this}renderMarkup(){const e=this.cell.markup;if(e){if("string"==typeof e)throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid edge markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.append(t.fragment)}customizeLabels(){if(this.labelContainer){const e=this.cell,t=e.labels;for(let n=0,r=t.length;n<r;n+=1){const r=t[n],i=this.labelCache[n],a=this.labelSelectors[n],o=this.graph.options.onEdgeLabelRendered;if(o){const t=o({edge:e,label:r,container:i,selectors:a});t&&(this.labelDestroyFn[n]=t)}}}}destroyCustomizeLabels(){const e=this.cell.labels;if(this.labelCache&&this.labelSelectors&&this.labelDestroyFn)for(let t=0,n=e.length;t<n;t+=1){const n=this.labelDestroyFn[t],r=this.labelCache[t],i=this.labelSelectors[t];n&&r&&i&&n({edge:this.cell,label:e[t],container:r,selectors:i})}this.labelDestroyFn={}}renderLabels(){const e=this.cell,t=e.getLabels(),n=t.length;let r=this.labelContainer;if(this.labelCache={},this.labelSelectors={},n<=0)return r&&r.parentNode&&r.parentNode.removeChild(r),this;r?this.empty(r):(r=h.createSvgElement("g"),this.addClass(this.prefixClassName("edge-labels"),r),this.labelContainer=r);for(let n=0,i=t.length;n<i;n+=1){const i=t[n],a=this.normalizeLabelMarkup(this.parseLabelMarkup(i.markup));let o,s;if(a)o=a.node,s=a.selectors;else{const t=e.getDefaultLabel(),n=this.normalizeLabelMarkup(this.parseLabelMarkup(t.markup));o=n.node,s=n.selectors}o.setAttribute("data-index",`${n}`),r.appendChild(o);const c=this.rootSelector;if(s[c])throw new Error("Ambiguous label root selector.");s[c]=o,this.labelCache[n]=o,this.labelSelectors[n]=s}return null==r.parentNode&&this.container.appendChild(r),this.updateLabels(),this.customizeLabels(),this}onLabelsChange(e={}){this.destroyCustomizeLabels(),this.shouldRerenderLabels(e)?this.renderLabels():this.updateLabels(),this.updateLabelPositions()}shouldRerenderLabels(e={}){const t=this.cell.previous("labels");if(null==t)return!0;
// Here is an optimization for cases when we know, that change does
// not require re-rendering of all labels.
if("propertyPathArray"in e&&"propertyValue"in e){
// The label is setting by `prop()` method
const n=e.propertyPathArray||[],r=n.length;if(r>1){if(t[n[1]]){if(2===r)
// We are changing the entire label. Need to check if the
// markup is also being changed.
return"object"==typeof e.propertyValue&&l.has(e.propertyValue,"markup");
// We are changing a label property but not the markup
if("markup"!==n[2])return!1}}}return!0}parseLabelMarkup(e){return e?"string"==typeof e?this.parseLabelStringMarkup(e):this.parseJSONMarkup(e):null}parseLabelStringMarkup(e){const t=Ss.createVectors(e),n=document.createDocumentFragment();for(let e=0,r=t.length;e<r;e+=1){const r=t[e].node;n.appendChild(r)}return{fragment:n,selectors:{}}}normalizeLabelMarkup(e){if(null==e)return;const t=e.fragment;if(!(t instanceof DocumentFragment&&t.hasChildNodes()))throw new Error("Invalid label markup.");let n;const r=t.childNodes;return n=r.length>1||"G"!==r[0].nodeName.toUpperCase()?Ss.create("g").append(t):Ss.create(r[0]),n.addClass(this.prefixClassName("edge-label")),{node:n.node,selectors:e.selectors}}updateLabels(){if(this.labelContainer){const e=this.cell,t=e.labels,n=this.can("edgeLabelMovable"),r=e.getDefaultLabel();for(let e=0,i=t.length;e<i;e+=1){const i=this.labelCache[e],a=this.labelSelectors[e];i.setAttribute("cursor",n?"move":"default");const o=t[e],s=l.merge({},r.attrs,o.attrs);this.updateAttrs(i,s,{selectors:a,rootBBox:o.size?mr.fromSize(o.size):void 0})}}}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}
// #endregion
// #region updating
update(e={}){var t;this.cleanCache(),this.updateConnection(e);const n=this.cell.getAttrs(),{text:r}=n,i=M(n,["text"]);if(null!=i){
// FIXME: safari 兼容，重新渲染一次edge 的g元素，确保重排/重绘能渲染出marker
if("g"===(null===(t=this.container)||void 0===t?void 0:t.tagName)&&this.isEdgeElement(this.container)&&Dn){const e=this.container.parentNode;if(e){const t=this.container.nextSibling;e.removeChild(this.container),e.insertBefore(this.container,t)}}this.updateAttrs(this.container,i,{selectors:this.selectors})}return this.updateLabelPositions(),this.updateTools(e),this}removeRedundantLinearVertices(e={}){const t=this.cell,n=t.getVertices(),r=[this.sourceAnchor,...n,this.targetAnchor],i=r.length,a=new Cr(r);a.simplify({threshold:.01});const o=a.points.map((e=>e.toJSON())),s=o.length;
// If simplification did not remove any redundant vertices.
return i===s?0:(
// Sets simplified polyline points as edge vertices.
// Removes first and last polyline points again (source/target anchors).
t.setVertices(o.slice(1,s-1),e),i-s)}getTerminalView(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalAnchor(e){switch(e){case"source":return gr.create(this.sourceAnchor);case"target":return gr.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return gr.create(this.sourcePoint);case"target":return gr.create(this.targetPoint);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalMagnet(e,t={}){switch(e){case"source":{if(t.raw)return this.sourceMagnet;const e=this.sourceView;return e?this.sourceMagnet||e.container:null}case"target":{if(t.raw)return this.targetMagnet;const e=this.targetView;return e?this.targetMagnet||e.container:null}default:throw new Error(`Unknown terminal type '${e}'`)}}updateConnection(e={}){const t=this.cell;
// The edge is being translated by an ancestor that will shift
// source, target and vertices by an equal distance.
// todo isFragmentDescendantOf is invalid
if(e.translateBy&&t.isFragmentDescendantOf(e.translateBy)){const t=e.tx||0,n=e.ty||0;this.routePoints=new Cr(this.routePoints).translate(t,n).points,this.translateConnectionPoints(t,n),this.path.translate(t,n)}else{const e=t.getVertices(),n=this.findAnchors(e);
// 1. Find anchor points
this.sourceAnchor=n.source,this.targetAnchor=n.target,
// 2. Find route points
this.routePoints=this.findRoutePoints(e);
// 3. Find connection points
const r=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=r.source,this.targetPoint=r.target;
// 4. Find Marker Connection Point
const i=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);
// 5. Make path
this.path=this.findPath(this.routePoints,i.source||this.sourcePoint,i.target||this.targetPoint)}this.cleanCache()}findAnchors(e){const t=this.cell,n=t.source,r=t.target,i=e[0],a=e[e.length-1];return r.priority&&!n.priority?this.findAnchorsOrdered("target",a,"source",i):this.findAnchorsOrdered("source",i,"target",a);
// Usual order
}findAnchorsOrdered(e,t,n,r){let i,a;const o=this.cell,s=o[e],c=o[n],l=this.getTerminalView(e),u=this.getTerminalView(n),h=this.getTerminalMagnet(e),f=this.getTerminalMagnet(n);if(l){let n;n=t?gr.create(t):u?f:gr.create(c),i=this.getAnchor(s.anchor,l,h,n,e)}else i=gr.create(s);if(u){const e=gr.create(r||i);a=this.getAnchor(c.anchor,u,f,e,n)}else a=gr.isPointLike(c)?gr.create(c):new gr;return{[e]:i,[n]:a}}getAnchor(e,t,n,r,i){const a=t.isEdgeElement(n),o=this.graph.options.connecting;let c,l="string"==typeof e?{name:e}:e;if(!l){const e=a?("source"===i?o.sourceEdgeAnchor:o.targetEdgeAnchor)||o.edgeAnchor:("source"===i?o.sourceAnchor:o.targetAnchor)||o.anchor;l="string"==typeof e?{name:e}:e}if(!l)throw new Error("Anchor should be specified.");const u=l.name;if(a){const e=yf.get(u);if("function"!=typeof e)return yf.onNotFound(u);c=s.call(e,this,t,n,r,l.args||{},i)}else{const e=dd.get(u);if("function"!=typeof e)return dd.onNotFound(u);c=s.call(e,this,t,n,r,l.args||{},i)}return c?c.round(this.POINT_ROUNDING):new gr}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||Lp.normal,n=this.cell.getRouter()||t;let r;if("function"==typeof n)r=s.call(n,this,e,{},this);else{const t="string"==typeof n?n:n.name,i="string"==typeof n?{}:n.args||{},a=t?Qp.get(t):Lp.normal;if("function"!=typeof a)return Qp.onNotFound(t);r=s.call(a,this,e,i,this)}return null==r?e.map((e=>gr.create(e))):r.map((e=>gr.create(e)))}findConnectionPoints(e,t,n){const r=this.cell,i=this.graph.options.connecting,a=r.getSource(),o=r.getTarget(),s=this.sourceView,c=this.targetView,l=e[0],u=e[e.length-1];
// source
let h,f;if(s&&!s.isEdgeElement(this.sourceMagnet)){const e=this.sourceMagnet||s.container,r=new vr(l||n,t),o=a.connectionPoint||i.sourceConnectionPoint||i.connectionPoint;h=this.getConnectionPoint(o,s,e,r,"source")}else h=t;
// target
if(c&&!c.isEdgeElement(this.targetMagnet)){const e=this.targetMagnet||c.container,r=o.connectionPoint||i.targetConnectionPoint||i.connectionPoint,a=new vr(u||t,n);f=this.getConnectionPoint(r,c,e,a,"target")}else f=n;return{source:h,target:f}}getConnectionPoint(e,t,n,r,i){const a=r.end;if(null==e)return a;const o="string"==typeof e?e:e.name,c="string"==typeof e?{}:e.args,l=Yh.get(o);if("function"!=typeof l)return Yh.onNotFound(o);const u=s.call(l,this,r,t,n,c||{},i);return u?u.round(this.POINT_ROUNDING):a}findMarkerPoints(e,t,n){const r=e=>{const t=this.cell.getAttrs(),n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){const i=t[n[r]];if(i[`${e}Marker`]||i[`${e}-marker`]){const e=i.strokeWidth||i["stroke-width"];if(e)return parseFloat(e);break}}return null},i=e[0],a=e[e.length-1];let o,s;const c=r("source");c&&(o=t.clone().move(i||n,-c));const l=r("target");return l&&(s=n.clone().move(a||t,-l)),this.sourceMarkerPoint=o||t.clone(),this.targetMarkerPoint=s||n.clone(),{source:o,target:s}}findPath(e,t,n){const r=this.cell.getConnector()||this.graph.options.connecting.connector;let i,a,o;if("string"==typeof r?i=r:(i=r.name,a=r.args),i){const e=lf.get(i);if("function"!=typeof e)return lf.onNotFound(i);o=e}else o=cf.normal;const c=s.call(o,this,t,n,e,Object.assign(Object.assign({},a),{raw:!0}),this);return"string"==typeof c?Rr.parse(c):c}translateConnectionPoints(e,t){this.sourcePoint.translate(e,t),this.targetPoint.translate(e,t),this.sourceAnchor.translate(e,t),this.targetAnchor.translate(e,t),this.sourceMarkerPoint.translate(e,t),this.targetMarkerPoint.translate(e,t)}updateLabelPositions(){if(null==this.labelContainer)return this;if(!this.path)return this;const e=this.cell,t=e.getLabels();if(0===t.length)return this;const n=e.getDefaultLabel(),r=this.normalizeLabelPosition(n.position);for(let e=0,n=t.length;e<n;e+=1){const n=t[e],i=this.labelCache[e];if(!i)continue;const a=this.normalizeLabelPosition(n.position),o=l.merge({},r,a),s=this.getLabelTransformationMatrix(o);i.setAttribute("transform",h.matrixToTransformString(s))}return this}updateTerminalProperties(e){const t=this.cell,n=this.graph,r=t[e],i=r&&r.cell,a=`${e}View`;
// terminal is a point
if(!i)return this[a]=null,this.updateTerminalMagnet(e),!0;const o=n.getCellById(i);if(!o)throw new Error(`Edge's ${e} node with id "${i}" not exists`);const s=o.findView(n);return!!s&&(this[a]=s,this.updateTerminalMagnet(e),!0)}updateTerminalMagnet(e){const t=`${e}Magnet`,n=this.getTerminalView(e);if(n){let r=n.getMagnetFromEdgeTerminal(this.cell[e]);r===n.container&&(r=null),this[t]=r}else this[t]=null}getLabelPositionAngle(e){const t=this.cell.getLabelAt(e);return t&&t.position&&"object"==typeof t.position&&t.position.angle||0}getLabelPositionArgs(e){const t=this.cell.getLabelAt(e);if(t&&t.position&&"object"==typeof t.position)return t.position.options}getDefaultLabelPositionArgs(){const e=this.cell.getDefaultLabel();if(e&&e.position&&"object"==typeof e.position)return e.position.options}mergeLabelPositionArgs(e,t){return null===e?null:void 0===e?null===t?null:t:l.merge({},t,e)}
// #endregion
getConnection(){return null!=this.path?this.path.clone():null}getConnectionPathData(){if(null==this.path)return"";const e=this.cache.pathCache;return l.has(e,"data")||(e.data=this.path.serialize()),e.data||""}getConnectionSubdivisions(){if(null==this.path)return null;const e=this.cache.pathCache;return l.has(e,"segmentSubdivisions")||(e.segmentSubdivisions=this.path.getSegmentSubdivisions()),e.segmentSubdivisions}getConnectionLength(){if(null==this.path)return 0;const e=this.cache.pathCache;return l.has(e,"length")||(e.length=this.path.length({segmentSubdivisions:this.getConnectionSubdivisions()})),e.length}getPointAtLength(e){return null==this.path?null:this.path.pointAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getPointAtRatio(e){return null==this.path?null:(i.isPercentage(e)&&(
// eslint-disable-next-line
e=parseFloat(e)/100),this.path.pointAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()}))}getTangentAtLength(e){return null==this.path?null:this.path.tangentAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getTangentAtRatio(e){return null==this.path?null:this.path.tangentAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPoint(e){return null==this.path?null:this.path.closestPoint(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPointLength(e){return null==this.path?null:this.path.closestPointLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getClosestPointRatio(e){return null==this.path?null:this.path.closestPointNormalizedLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}getLabelPosition(e,t,n,r){const i={distance:0};
// normalize data from the two possible signatures
let a,o=0;"number"==typeof n?(o=n,a=r):a=n,null!=a&&(i.options=a);
// identify distance/offset settings
const s=a&&a.absoluteOffset,c=!(a&&a.absoluteDistance),l=a&&a.absoluteDistance&&a.reverseDistance,u=this.path,h={segmentSubdivisions:this.getConnectionSubdivisions()},f=new gr(e,t),d=u.closestPointT(f,h),p=this.getConnectionLength()||0;let g,m,v=u.lengthAtT(d,h);if(c&&(v=p>0?v/p:0),l&&(
// fix for end point (-0 => 1)
v=-1*(p-v)||1),i.distance=v,s||(g=u.tangentAtT(d)),g)m=g.pointOffset(f);else{const e=u.pointAtT(d),t=f.diff(e);m={x:t.x,y:t.y}}return i.offset=m,i.angle=o,i}normalizeLabelPosition(e){return"number"==typeof e?{distance:e}:e}getLabelTransformationMatrix(e){const t=this.normalizeLabelPosition(e),n=t.options||{},r=t.angle||0,i=t.distance,a=i>0&&i<=1;let o=0;const s={x:0,y:0},c=t.offset;c&&("number"==typeof c?o=c:(null!=c.x&&(s.x=c.x),null!=c.y&&(s.y=c.y)));const l=0!==s.x||0!==s.y||0===o,u=n.keepGradient,f=n.ensureLegibility,d=this.path,p={segmentSubdivisions:this.getConnectionSubdivisions()},g=a?i*this.getConnectionLength():i,m=d.tangentAtLength(g,p);let v,y=r;if(m){if(l)v=m.start,v.translate(s);else{const e=m.clone();e.rotate(-90,m.start),e.setLength(o),v=e.end}u&&(y=m.angle()+r,f&&(y=sr((y+90)%180-90)))}else
// fallback - the connection has zero length
v=d.start,l&&v.translate(s);return h.createSVGMatrix().translate(v.x,v.y).rotate(y)}getVertexIndex(e,t){const n=this.cell.getVertices(),r=this.getClosestPointLength(new gr(e,t));let i=0;if(null!=r)for(const e=n.length;i<e;i+=1){const e=n[i],t=this.getClosestPointLength(e);if(null!=t&&r<t)break}return i}getEventArgs(e,t,n){const r=this,i=r.cell;// eslint-disable-line
return null==t||null==n?{e:e,view:r,edge:i,cell:i}:{e:e,x:t,y:n,view:r,edge:i,cell:i}}notifyUnhandledMouseDown(e,t,n){this.notify("edge:unhandled:mousedown",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})}notifyMouseDown(e,t,n){super.onMouseDown(e,t,n),this.notify("edge:mousedown",this.getEventArgs(e,t,n))}notifyMouseMove(e,t,n){super.onMouseMove(e,t,n),this.notify("edge:mousemove",this.getEventArgs(e,t,n))}notifyMouseUp(e,t,n){super.onMouseUp(e,t,n),this.notify("edge:mouseup",this.getEventArgs(e,t,n))}onClick(e,t,n){super.onClick(e,t,n),this.notify("edge:click",this.getEventArgs(e,t,n))}onDblClick(e,t,n){super.onDblClick(e,t,n),this.notify("edge:dblclick",this.getEventArgs(e,t,n))}onContextMenu(e,t,n){super.onContextMenu(e,t,n),this.notify("edge:contextmenu",this.getEventArgs(e,t,n))}onMouseDown(e,t,n){this.notifyMouseDown(e,t,n),this.startEdgeDragging(e,t,n)}onMouseMove(e,t,n){const r=this.getEventData(e);switch(r.action){case"drag-label":this.dragLabel(e,t,n);break;case"drag-arrowhead":this.dragArrowhead(e,t,n);break;case"drag-edge":this.dragEdge(e,t,n)}return this.notifyMouseMove(e,t,n),r}onMouseUp(e,t,n){const r=this.getEventData(e);switch(r.action){case"drag-label":this.stopLabelDragging(e,t,n);break;case"drag-arrowhead":this.stopArrowheadDragging(e,t,n);break;case"drag-edge":this.stopEdgeDragging(e,t,n)}return this.notifyMouseUp(e,t,n),this.checkMouseleave(e),r}onMouseOver(e){super.onMouseOver(e),this.notify("edge:mouseover",this.getEventArgs(e))}onMouseOut(e){super.onMouseOut(e),this.notify("edge:mouseout",this.getEventArgs(e))}onMouseEnter(e){super.onMouseEnter(e),this.notify("edge:mouseenter",this.getEventArgs(e))}onMouseLeave(e){super.onMouseLeave(e),this.notify("edge:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,n,r){super.onMouseWheel(e,t,n,r),this.notify("edge:mousewheel",Object.assign({delta:r},this.getEventArgs(e,t,n)))}onCustomEvent(e,t,n,r){if(h.findParentByClass(e.target,"edge-tool",this.container)){// no further action to be executed
if(e.stopPropagation(),this.can("useEdgeTools")){if("edge:remove"===t)return void this.cell.remove({ui:!0});this.notify("edge:customevent",Object.assign({name:t},this.getEventArgs(e,n,r)))}this.notifyMouseDown(e,n,r)}else this.notify("edge:customevent",Object.assign({name:t},this.getEventArgs(e,n,r))),super.onCustomEvent(e,t,n,r)}onLabelMouseDown(e,t,n){this.notifyMouseDown(e,t,n),this.startLabelDragging(e,t,n);this.getEventData(e).stopPropagation&&e.stopPropagation()}
// #region drag edge
startEdgeDragging(e,t,n){this.can("edgeMovable")?this.setEventData(e,{x:t,y:n,moving:!1,action:"drag-edge"}):this.notifyUnhandledMouseDown(e,t,n)}dragEdge(e,t,n){const r=this.getEventData(e);r.moving||(r.moving=!0,this.addClass("edge-moving"),this.notify("edge:move",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})),this.cell.translate(t-r.x,n-r.y,{ui:!0}),this.setEventData(e,{x:t,y:n}),this.notify("edge:moving",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})}stopEdgeDragging(e,t,n){const r=this.getEventData(e);r.moving&&(this.removeClass("edge-moving"),this.notify("edge:moved",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})),r.moving=!1}
// #endregion
// #region drag arrowhead
prepareArrowheadDragging(e,t){const n=this.getTerminalMagnet(e),r={action:"drag-arrowhead",x:t.x,y:t.y,isNewEdge:!0===t.isNewEdge,terminalType:e,initialMagnet:n,initialTerminal:l.clone(this.cell[e]),fallbackAction:t.fallbackAction||"revert",getValidateConnectionArgs:this.createValidateConnectionArgs(e),options:t.options};return this.beforeArrowheadDragging(r),r}createValidateConnectionArgs(e){const t=[];let n;t[4]=e,t[5]=this;let r=0,i=0;"source"===e?(r=2,n="target"):(i=2,n="source");const a=this.cell[n],o=a.cell;if(o){let e;const n=t[r]=this.graph.findViewByCell(o);n&&(e=n.getMagnetFromEdgeTerminal(a),e===n.container&&(e=void 0)),t[r+1]=e}return(e,n)=>(t[i]=e,t[i+1]=e.container===n?void 0:n,t)}beforeArrowheadDragging(e){e.zIndex=this.cell.zIndex,this.cell.toFront();const t=this.container.style;e.pointerEvents=t.pointerEvents,t.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(e)}afterArrowheadDragging(e){null!=e.zIndex&&(this.cell.setZIndex(e.zIndex,{ui:!0}),e.zIndex=null);this.container.style.pointerEvents=e.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(e)}validateConnection(e,t,n,r,i,a,o){const c=this.graph.options.connecting,l=c.allowLoop,u=c.allowNode,h=c.allowEdge,f=c.allowPort,d=c.allowMulti,p=c.validateConnection,g=a?a.cell:null,m="target"===i?n:e,v="target"===i?r:t;let y=!0;const A=c=>{const l="source"===i?o?o.port:null:g?g.getSourcePortId():null,u="target"===i?o?o.port:null:g?g.getTargetPortId():null;return s.call(c,this.graph,{edge:g,edgeView:a,sourceView:e,targetView:n,sourcePort:l,targetPort:u,sourceMagnet:t,targetMagnet:r,sourceCell:e?e.cell:null,targetCell:n?n.cell:null,type:i})};if(null!=l&&("boolean"==typeof l?l||e!==n||(y=!1):y=A(l)),y&&null!=f&&("boolean"==typeof f?!f&&v&&(y=!1):y=A(f)),y&&null!=h&&("boolean"==typeof h?!h&&fm.isEdgeView(m)&&(y=!1):y=A(h)),
// When judging nodes, the influence of the ports should be excluded,
// because the ports and nodes have the same terminalView
y&&null!=u&&null==v&&("boolean"==typeof u?!u&&um.isNodeView(m)&&(y=!1):y=A(u)),y&&null!=d&&a){const e=a.cell,t="source"===i?o:e.getSource(),n="target"===i?o:e.getTarget(),r=o?this.graph.getCellById(o.cell):null;if(t&&n&&t.cell&&n.cell&&r)if("function"==typeof d)y=A(d);else{const e=this.graph.model.getConnectedEdges(r,{outgoing:"source"===i,incoming:"target"===i});if(e.length)if("withPort"===d){e.some((e=>{const r=e.getSource(),i=e.getTarget();return r&&i&&r.cell===t.cell&&i.cell===n.cell&&null!=r.port&&r.port===t.port&&null!=i.port&&i.port===n.port}))&&(y=!1)}else if(!d){e.some((e=>{const r=e.getSource(),i=e.getTarget();return r&&i&&r.cell===t.cell&&i.cell===n.cell}))&&(y=!1)}}}return y&&null!=p&&(y=A(p)),y}allowConnectToBlank(e){const t=this.graph,n=t.options.connecting.allowBlank;if("function"!=typeof n)return!!n;const r=t.findViewByCell(e),i=e.getSourceCell(),a=e.getTargetCell(),o=t.findViewByCell(i),c=t.findViewByCell(a);return s.call(n,t,{edge:e,edgeView:r,sourceCell:i,targetCell:a,sourceView:o,targetView:c,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:r.sourceMagnet,targetMagnet:r.targetMagnet})}validateEdge(e,t,n){const r=this.graph;if(!this.allowConnectToBlank(e)){const t=e.getSourceCellId(),n=e.getTargetCellId();if(!t||!n)return!1}const i=r.options.connecting.validateEdge;return!i||s.call(i,r,{edge:e,type:t,previous:n})}arrowheadDragging(e,t,n,r){r.x=t,r.y=n,
// Checking views right under the pointer
r.currentTarget!==e&&(
// Unhighlight the previous view under pointer if there was one.
r.currentMagnet&&r.currentView&&r.currentView.unhighlight(r.currentMagnet,{type:"magnetAdsorbed"}),r.currentView=this.graph.findViewByElem(e),r.currentView?(
// If we found a view that is under the pointer, we need to find
// the closest magnet based on the real target element of the event.
r.currentMagnet=r.currentView.findMagnet(e),r.currentMagnet&&this.validateConnection(...r.getValidateConnectionArgs(r.currentView,r.currentMagnet),r.currentView.getEdgeTerminal(r.currentMagnet,t,n,this.cell,r.terminalType))?r.currentView.highlight(r.currentMagnet,{type:"magnetAdsorbed"}):
// This type of connection is not valid. Disregard this magnet.
r.currentMagnet=null):
// Make sure we'll unset previous magnet.
r.currentMagnet=null),r.currentTarget=e,this.cell.prop(r.terminalType,{x:t,y:n},Object.assign(Object.assign({},r.options),{ui:!0}))}arrowheadDragged(e,t,n){const r=e.currentView,i=e.currentMagnet;if(!i||!r)return;r.unhighlight(i,{type:"magnetAdsorbed"});const a=e.terminalType,o=r.getEdgeTerminal(i,t,n,this.cell,a);this.cell.setTerminal(a,o,{ui:!0})}snapArrowhead(e,t,n){const r=this.graph,{snap:i,allowEdge:a}=r.options.connecting,o="object"==typeof i&&i.radius||50,s="object"==typeof i&&i.anchor||"center",c=r.renderer.findViewsInArea({x:e-o,y:t-o,width:2*o,height:2*o},{nodeOnly:!0});if(a){const n=r.renderer.findEdgeViewsFromPoint({x:e,y:t},o).filter((e=>e!==this));c.push(...n)}const l=n.closestView||null,u=n.closestMagnet||null;let h;n.closestView=null,n.closestMagnet=null;let f=Number.MAX_SAFE_INTEGER;const d=new gr(e,t);let p;c.forEach((r=>{if("false"!==r.container.getAttribute("magnet")){if(r.isNodeView())h="center"===s?r.cell.getBBox().getCenter().distance(d):r.cell.getBBox().getNearestPointToPoint(d).distance(d);else if(r.isEdgeView()){const e=r.getClosestPoint(d);h=e?e.distance(d):Number.MAX_SAFE_INTEGER}h<o&&h<f&&(u===r.container||this.validateConnection(...n.getValidateConnectionArgs(r,null),r.getEdgeTerminal(r.container,e,t,this.cell,n.terminalType)))&&(f=h,n.closestView=r,n.closestMagnet=r.container)}r.container.querySelectorAll("[magnet]").forEach((i=>{if("false"!==i.getAttribute("magnet")){const a=r.getBBoxOfElement(i);h=d.distance(a.getCenter()),h<o&&h<f&&(u===i||this.validateConnection(...n.getValidateConnectionArgs(r,i),r.getEdgeTerminal(i,e,t,this.cell,n.terminalType)))&&(f=h,n.closestView=r,n.closestMagnet=i)}}))}));const g=n.terminalType,m=n.closestView,v=n.closestMagnet,y=u!==v;if(l&&y&&l.unhighlight(u,{type:"magnetAdsorbed"}),m){if(!y)return;m.highlight(v,{type:"magnetAdsorbed"}),p=m.getEdgeTerminal(v,e,t,this.cell,g)}else p={x:e,y:t};this.cell.setTerminal(g,p,{},Object.assign(Object.assign({},n.options),{ui:!0}))}snapArrowheadEnd(e){
// Finish off link snapping.
// Everything except view unhighlighting was already done on pointermove.
const t=e.closestView,n=e.closestMagnet;t&&n&&(t.unhighlight(n,{type:"magnetAdsorbed"}),e.currentMagnet=t.findMagnet(n)),e.closestView=null,e.closestMagnet=null}finishEmbedding(e){
// Resets parent of the edge if embedding is enabled
this.graph.options.embedding.enabled&&this.cell.updateParent()&&(
// Make sure we don't reverse to the original 'z' index
e.zIndex=null)}fallbackConnection(e){if("remove"===e.fallbackAction)this.cell.remove({ui:!0});else this.cell.prop(e.terminalType,e.initialTerminal,{ui:!0})}notifyConnectionEvent(e,t){const n=e.terminalType,r=e.initialTerminal,i=this.cell[n];if(i&&!$g.equalTerminals(r,i)){const a=this.graph,o=r,s=o.cell?a.getCellById(o.cell):null,c=o.port,l=s?a.findViewByCell(s):null,u=s||e.isNewEdge?null:gr.create(r).toJSON(),h=i,f=h.cell?a.getCellById(h.cell):null,d=h.port,p=f?a.findViewByCell(f):null,g=f?null:gr.create(i).toJSON();this.notify("edge:connected",{e:t,previousCell:s,previousPort:c,previousView:l,previousPoint:u,currentCell:f,currentView:p,currentPort:d,currentPoint:g,previousMagnet:e.initialMagnet,currentMagnet:e.currentMagnet,edge:this.cell,view:this,type:n,isNew:e.isNewEdge})}}highlightAvailableMagnets(e){const t=this.graph,n=t.model.getCells();e.marked={};for(let r=0,i=n.length;r<i;r+=1){const i=t.findViewByCell(n[r]);
// Prevent highlighting new edge
// Close https://github.com/antvis/X6/issues/2853
if(!i||i.cell.id===this.cell.id)continue;const a=Array.prototype.slice.call(i.container.querySelectorAll("[magnet]"));"false"!==i.container.getAttribute("magnet")&&a.push(i.container);const o=a.filter((t=>this.validateConnection(...e.getValidateConnectionArgs(i,t),i.getEdgeTerminal(t,e.x,e.y,this.cell,e.terminalType))));if(o.length>0){
// highlight all available magnets
for(let e=0,t=o.length;e<t;e+=1)i.highlight(o[e],{type:"magnetAvailable"});
// highlight the entire view
i.highlight(null,{type:"nodeAvailable"}),e.marked[i.cell.id]=o}}}unhighlightAvailableMagnets(e){const t=e.marked||{};Object.keys(t).forEach((e=>{const n=this.graph.findViewByCell(e);if(n){t[e].forEach((e=>{n.unhighlight(e,{type:"magnetAvailable"})})),n.unhighlight(null,{type:"nodeAvailable"})}})),e.marked=null}startArrowheadDragging(e,t,n){if(!this.can("arrowheadMovable"))return void this.notifyUnhandledMouseDown(e,t,n);const r=e.target.getAttribute("data-terminal"),i=this.prepareArrowheadDragging(r,{x:t,y:n});this.setEventData(e,i)}dragArrowhead(e,t,n){const r=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(t,n,r):this.arrowheadDragging(this.getEventTarget(e),t,n,r)}stopArrowheadDragging(e,t,n){const r=this.graph,i=this.getEventData(e);r.options.connecting.snap?this.snapArrowheadEnd(i):this.arrowheadDragged(i,t,n);this.validateEdge(this.cell,i.terminalType,i.initialTerminal)?(this.finishEmbedding(i),this.notifyConnectionEvent(i,e)):
// If the changed edge is not allowed, revert to its previous state.
this.fallbackConnection(i),this.afterArrowheadDragging(i)}
// #endregion
// #region drag lable
// eslint-disable-next-line @typescript-eslint/no-unused-vars
startLabelDragging(e,t,n){if(this.can("edgeLabelMovable")){const t=e.currentTarget,n=parseInt(t.getAttribute("data-index"),10),r=this.getLabelPositionAngle(n),i=this.getLabelPositionArgs(n),a=this.getDefaultLabelPositionArgs(),o=this.mergeLabelPositionArgs(i,a);this.setEventData(e,{index:n,positionAngle:r,positionArgs:o,stopPropagation:!0,action:"drag-label"})}else
// If labels can't be dragged no default action is triggered.
this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}dragLabel(e,t,n){const r=this.getEventData(e),i=this.cell.getLabelAt(r.index),a=l.merge({},i,{position:this.getLabelPosition(t,n,r.positionAngle,r.positionArgs)});this.cell.setLabelAt(r.index,a)}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
stopLabelDragging(e,t,n){}}const dm=`X6.${fm.name}`;fm.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],tools:["tools"],vertices:["vertices","update"]}}),fm.registry.register("edge",fm,!0);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/view/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/renderer/queueJob.js
const pm="idle",gm="raf",mm="timeout";class vm{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=16,this.initialTime=Date.now(),this.pendingJobs=new Map,this.scheduleMode=null}queueJob(e){if(e.priority&ym.PRIOR)e.cb();else{const t=this.pendingJobs.get(e.id);if(t){if(
// 仅更新已有任务的回调与优先级
t.cb=e.cb,e.priority!==t.priority){t.priority=e.priority;const n=this.queue.indexOf(t);if(n>=0){this.queue.splice(n,1);const e=this.findInsertionIndex(t);this.queue.splice(e,0,t)}}}else{const t=this.findInsertionIndex(e);this.queue.splice(t,0,e),this.pendingJobs.set(e.id,e)}}}queueFlush(){this.isFlushing||this.isFlushPending||(this.isFlushPending=!0,this.scheduleJob())}queueFlushSync(){this.isFlushing||this.isFlushPending||(this.isFlushPending=!0,this.flushJobsSync())}clearJobs(){this.queue.length=0,this.pendingJobs.clear(),this.isFlushing=!1,this.isFlushPending=!1,this.cancelScheduleJob()}flushJobs(e){this.isFlushPending=!1,this.isFlushing=!0;const t=this.getCurrentTime();let n=this.frameInterval;if(e&&"function"==typeof e.timeRemaining){const t=e.timeRemaining();
// 防止过长占用单帧
n=Math.max(0,Math.min(n,t))}for(;this.queue.length>0;){const e=this.queue.shift();if(e.cb(),this.pendingJobs.delete(e.id),this.getCurrentTime()-t>=n)break}this.isFlushing=!1,this.queue.length&&this.queueFlush()}flushJobsSync(){for(this.isFlushPending=!1,this.isFlushing=!0;this.queue.length>0;){const e=this.queue.shift();try{e.cb()}catch(e){}this.pendingJobs.delete(e.id)}this.isFlushing=!1}findInsertionIndex(e){let t=0,n=this.queue.length,r=n-1;const i=e.priority;for(;t<=r;){const e=(r-t>>1)+t;i<=this.queue[e].priority?t=e+1:(n=e,r=e-1)}return n}scheduleJob(){this.scheduleId&&this.cancelScheduleJob(),"requestAnimationFrame"in window?(this.scheduleMode=gm,this.scheduleId=window.requestAnimationFrame((()=>this.flushJobs()))):"requestIdleCallback"in window?(this.scheduleMode=pm,this.scheduleId=window.requestIdleCallback((e=>this.flushJobs(e)),{timeout:100})):(this.scheduleMode=mm,this.scheduleId=window.setTimeout((()=>this.flushJobs())))}cancelScheduleJob(){if(!this.scheduleId)return;const e={[pm]:null===window||void 0===window?void 0:window.cancelIdleCallback,[gm]:null===window||void 0===window?void 0:window.cancelAnimationFrame,[mm]:null===window||void 0===window?void 0:window.clearTimeout},t=this.scheduleMode,n=t?e[t]:void 0;"function"==typeof n&&n(this.scheduleId),this.scheduleId=0,this.scheduleMode=null}getCurrentTime(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():Date.now()-this.initialTime}}var ym;!function(e){e[e.Update=2]="Update",e[e.RenderEdge=4]="RenderEdge",e[e.RenderNode=8]="RenderNode",e[e.PRIOR=1048576]="PRIOR"}(ym||(ym={}));var Am;!function(e){e[e.CREATED=0]="CREATED",e[e.MOUNTED=1]="MOUNTED",e[e.WAITING=2]="WAITING"}(Am||(Am={}));class bm extends iu{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(e){super(),this.views={},this.willRemoveViews={},this.queue=new vm,this.graph=e,this.init()}init(){this.startListening(),this.renderViews(this.model.getCells())}startListening(){this.model.on("reseted",this.onModelReseted,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("reseted",this.onModelReseted,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}onModelReseted({options:e,previous:t}){let n=this.model.getCells();if(null==e?void 0:e.diff){const e=new Set(t);n=n.filter((t=>!e.has(t)))}else this.queue.clearJobs(),this.removeZPivots(),this.resetViews();this.renderViews(n,Object.assign(Object.assign({},e),{queue:n.map((e=>e.id))}))}onCellAdded({cell:e,options:t}){this.renderViews([e],t)}onCellRemoved({cell:e}){this.removeViews([e])}onCellZIndexChanged({cell:e,options:t}){const n=this.views[e.id];n&&this.requestViewUpdate(n.view,lm,t,ym.Update,!0)}onCellVisibleChanged({cell:e,current:t}){this.toggleVisible(e,!!t)}requestViewUpdate(e,t,n={},r=ym.Update,i=!0){const a=e.cell.id,o=this.views[a];if(!o)return;o.flag=t,o.options=n;(e.hasAction(t,["translate","resize","rotate"])||!1===n.async)&&(r=ym.PRIOR,// eslint-disable-line
i=!1);
// 对包含插入标记的任务使用独立的队列 id，避免与同一视图的后续更新任务去重合并
const s=t&lm?`${a}#insert`:a;this.queue.queueJob({id:s,priority:r,cb:()=>{this.renderViewInArea(e,t,n);const r=n.queue;if(r){const t=r.indexOf(e.cell.id);t>=0&&r.splice(t,1),0===r.length&&this.graph.trigger("render:done")}}});this.getEffectedEdges(e).forEach((e=>{this.requestViewUpdate(e.view,e.flag,n,r,!1)})),i&&this.flush()}setRenderArea(e){this.renderArea=e,
// 当可视渲染区域变化时，卸载不在区域内且已挂载的视图
Object.values(this.views).forEach((e=>{if(!e)return;const{view:t}=e;e.state===Am.MOUNTED&&(this.isUpdatable(t)||(
// 卸载 DOM
t.remove(),this.graph.trigger("view:unmounted",{view:t}),
// 切换到 WAITING 状态，等待重新进入区域时再插入
e.state=Am.WAITING,
// 确保重新进入可视区域后会重新插入，并执行视图的 render 等动作，让 react 等节点能重新展示
e.flag|=lm|t.getBootstrapFlag()))})),this.flushWaitingViews()}isViewMounted(e){if(null==e)return!1;const t=this.views[e.cell.id];return!!t&&t.state===Am.MOUNTED}renderViews(e,t={}){e.sort(((e,t)=>e.isNode()&&t.isEdge()?-1:0)),e.forEach((e=>{const n=e.id;let r=0,i=this.views[n];if(i)r=lm;else{const a=this.createCellView(e);a&&(a.graph=this.graph,r=lm|a.getBootstrapFlag(),i={view:a,flag:r,options:t,state:Am.CREATED},this.views[n]=i)}i&&this.requestViewUpdate(i.view,r,t,this.getRenderPriority(i.view),!1)})),this.flush()}renderViewInArea(e,t,n={}){const r=e.cell,i=r.id,a=this.views[i];if(!a)return;let o=0;this.isUpdatable(e)?(o=this.updateView(e,t,n),a.flag=o):(
// 视图不在当前可渲染区域内
a.state===Am.MOUNTED&&(
// 将已挂载但不在可视区域的视图从 DOM 中卸载
e.remove(),this.graph.trigger("view:unmounted",{view:e}),o=0),
// 标记为 WAITING 状态，以便在可视区域变化时重新渲染
a.state=Am.WAITING,
// 确保重新进入可视区域时能够重新插入到 DOM
a.flag=t|lm|e.getBootstrapFlag()),o&&(!r.isEdge()||o&e.getFlag(["source","target"])||this.queue.queueJob({id:i,priority:ym.RenderEdge,cb:()=>{this.updateView(e,t,n)}}))}removeViews(e){e.forEach((e=>{const t=e.id,n=this.views[t];n&&(this.willRemoveViews[t]=n,delete this.views[t],this.queue.queueJob({id:t,priority:this.getRenderPriority(n.view),cb:()=>{this.removeView(n.view)}}))})),this.flush()}flush(){this.graph.options.async?this.queue.queueFlush():this.queue.queueFlushSync()}flushWaitingViews(){Object.values(this.views).forEach((e=>{if(e&&e.state===Am.WAITING){const{view:t,flag:n,options:r}=e;this.requestViewUpdate(t,n,r,this.getRenderPriority(t),!1)}})),this.flush()}updateView(e,t,n={}){if(null==e)return 0;if(Jp.isCellView(e)){if(536870912&t)return this.removeView(e.cell),0;t&lm&&(this.insertView(e),t^=lm)}return t?e.confirmUpdate(t,n):0}insertView(e){const t=this.views[e.cell.id];if(t){const n=e.cell.getZIndex(),r=this.addZPivot(n);this.container.insertBefore(e.container,r),e.cell.isVisible()||this.toggleVisible(e.cell,!1),t.state=Am.MOUNTED,this.graph.trigger("view:mounted",{view:e})}}resetViews(){this.willRemoveViews=Object.assign(Object.assign({},this.views),this.willRemoveViews),Object.values(this.willRemoveViews).forEach((e=>{e&&this.removeView(e.view)})),this.views={},this.willRemoveViews={}}removeView(e){const t=e.cell,n=this.willRemoveViews[t.id];n&&e&&(n.view.remove(),delete this.willRemoveViews[t.id],this.graph.trigger("view:unmounted",{view:e}))}toggleVisible(e,t){const n=this.model.getConnectedEdges(e);for(let e=0,r=n.length;e<r;e+=1){const r=n[e];if(t){const e=r.getSourceCell(),t=r.getTargetCell();if(e&&!e.isVisible()||t&&!t.isVisible())continue;this.toggleVisible(r,!0)}else this.toggleVisible(r,!1)}const r=this.views[e.id];r&&h.css(r.view.container,{display:t?"unset":"none"})}addZPivot(e=0){null==this.zPivots&&(this.zPivots={});const t=this.zPivots;let n=t[e];if(n)return n;n=t[e]=document.createComment(`z-index:${e+1}`);let r=-1/0;
// eslint-disable-next-line
for(const n in t){const t=+n;t<e&&t>r&&(r=t)}const i=this.container;if(r!==-1/0){const e=t[r];i.insertBefore(n,e.nextSibling)}else i.insertBefore(n,i.firstChild);return n}removeZPivots(){this.zPivots&&Object.values(this.zPivots).forEach((e=>{e&&e.parentNode&&e.parentNode.removeChild(e)})),this.zPivots={}}createCellView(e){const t={graph:this.graph},n=this.graph.options.createCellView;if(n){const r=s.call(n,this.graph,e);if(r)return new r(e,t);// eslint-disable-line new-cap
if(null===r)
// null means not render
return null}const r=e.view;if(null!=r&&"string"==typeof r){const n=Jp.registry.get(r);return n?new n(e,t):Jp.registry.onNotFound(r)}return e.isNode()?new um(e,t):e.isEdge()?new fm(e,t):null}getEffectedEdges(e){const t=[],n=e.cell,r=this.model.getConnectedEdges(n);for(let e=0,i=r.length;e<i;e+=1){const i=r[e],a=this.views[i.id];if(!a)continue;const o=a.view;if(!this.isViewMounted(o))continue;const s=["update"];i.getTargetCell()===n&&s.push("target"),i.getSourceCell()===n&&s.push("source"),t.push({id:i.id,view:o,flag:o.getFlag(s)})}return t}isUpdatable(e){if(e.isNodeView())return!this.renderArea||this.renderArea.isIntersectWithRect(e.cell.getBBox());if(e.isEdgeView()){const t=e.cell,n=!this.renderArea||this.renderArea.isIntersectWithRect(t.getBBox());if(this.graph.virtualRender.isVirtualEnabled())return n;const r=t.getSourceCell(),i=t.getTargetCell();if(this.renderArea&&r&&i)return this.renderArea.isIntersectWithRect(r.getBBox())||this.renderArea.isIntersectWithRect(i.getBBox())}return!0}getRenderPriority(e){return e.cell.isNode()?ym.RenderNode:ym.RenderEdge}dispose(){this.stopListening(),
// clear views
Object.keys(this.views).forEach((e=>{this.views[e].view.dispose()})),this.views={}}}T([au()],bm.prototype,"dispose",null);
//# sourceMappingURL=scheduler.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/renderer/renderer.js
/* eslint-disable @typescript-eslint/no-unused-vars */
class wm extends sm{constructor(){super(...arguments),this.schedule=new bm(this.graph)}requestViewUpdate(e,t,n={}){this.schedule.requestViewUpdate(e,t,n)}isViewMounted(e){return this.schedule.isViewMounted(e)}setRenderArea(e){this.schedule.setRenderArea(e)}findViewByElem(e){if(null==e)return null;const t=this.options.container,n="string"==typeof e?t.querySelector(e):e instanceof Element?e:e[0];if(n){const e=this.graph.view.findAttr("data-cell-id",n);if(e){const t=this.schedule.views;if(t[e])return t[e].view}}return null}findViewByCell(e){if(null==e)return null;const t=jg.isCell(e)?e.id:e,n=this.schedule.views;return n[t]?n[t].view:null}findViewsFromPoint(e){const t={x:e.x,y:e.y};return this.model.getCells().map((e=>this.findViewByCell(e))).filter((e=>null!=e&&f.getBBox(e.container,{target:this.view.stage}).containsPoint(t)))}findEdgeViewsFromPoint(e,t=5){return this.model.getEdges().map((e=>this.findViewByCell(e))).filter((n=>{if(null!=n){const r=n.getClosestPoint(e);if(r)return r.distance(e)<=t}return!1}))}findViewsInArea(e,t={}){const n=mr.create(e);return this.model.getCells().map((e=>this.findViewByCell(e))).filter((e=>{if(e){if(t.nodeOnly&&!e.isNodeView())return!1;const r=f.getBBox(e.container,{target:this.view.stage});return 0===r.width?r.inflate(1,0):0===r.height&&r.inflate(0,1),t.strict?n.containsRect(r):n.isIntersectWithRect(r)}return!1}))}dispose(){this.schedule.dispose()}}T([au()],wm.prototype,"dispose",null);
//# sourceMappingURL=renderer.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/renderer/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/background.js
class xm extends sm{get elem(){return this.view.background}init(){this.startListening(),this.options.background&&this.draw(this.options.background)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}updateBackgroundImage(e={}){let t=e.size||"auto auto",n=e.position||"center";const r=this.graph.transform.getScale(),i=this.graph.translate();
// backgroundPosition
if("object"==typeof n){n=`${i.tx+r.sx*(n.x||0)}px ${i.ty+r.sy*(n.y||0)}px`}
// backgroundSize
"object"==typeof t&&(t=mr.fromSize(t).scale(r.sx,r.sy),t=`${t.width}px ${t.height}px`),this.elem.style.backgroundSize=t,this.elem.style.backgroundPosition=n}drawBackgroundImage(e,t={}){if(!(e instanceof HTMLImageElement))return void(this.elem.style.backgroundImage="");
// draw multiple times to show the last image
const n=this.optionsCache;if(n&&n.image!==t.image)return;let r;const i=t.opacity,a=t.size;let o=t.repeat||"no-repeat";const s=Fh.get(o);if("function"==typeof s){const n=t.quality||1;e.width*=n,e.height*=n;const i=s(e,t);if(!(i instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");r=i.toDataURL("image/png"),
// `repeat` was changed in pattern function
o=t.repeat&&o!==t.repeat?t.repeat:"repeat","object"==typeof a?(
// recalculate the tile size if an object passed in
a.width*=i.width/e.width,a.height*=i.height/e.height):void 0===a&&(
// calcule the tile size if no provided
t.size={width:i.width/n,height:i.height/n})}else r=e.src,void 0===a&&(t.size={width:e.width,height:e.height});null!=n&&"object"==typeof t.size&&t.image===n.image&&t.repeat===n.repeat&&t.quality===n.quality&&(n.size=l.clone(t.size));const c=this.elem.style;c.backgroundImage=`url(${r})`,c.backgroundRepeat=o,c.opacity=null==i||i>=1?"":`${i}`,this.updateBackgroundImage(t)}updateBackgroundColor(e){this.elem.style.backgroundColor=e||""}updateBackgroundOptions(e){this.graph.options.background=e}update(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}draw(e){const t=e||{};if(this.updateBackgroundOptions(e),this.updateBackgroundColor(t.color),t.image){this.optionsCache=l.clone(t);const n=document.createElement("img");n.onload=()=>this.drawBackgroundImage(n,e),n.setAttribute("crossorigin","anonymous"),n.src=t.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}T([au()],xm.prototype,"dispose",null);
//# sourceMappingURL=background.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/coord.js
class Cm extends sm{getClientMatrix(){return h.createSVGMatrix(this.view.stage.getScreenCTM())}
/**
     * Returns coordinates of the graph viewport, relative to the window.
     */getClientOffset(){
// see: https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
const e=this.view.svg.getBoundingClientRect();return new gr(e.left,e.top)}
/**
     * Returns coordinates of the graph viewport, relative to the document.
     */getPageOffset(){
// see: https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
return this.getClientOffset().translate(window.scrollX,window.scrollY)}snapToGrid(e,t){return("number"==typeof e?this.clientToLocalPoint(e,t):this.clientToLocalPoint(e.x,e.y)).snapToGrid(this.graph.getGridSize())}localToGraphPoint(e,t){const n=gr.create(e,t);return f.transformPoint(n,this.graph.matrix())}localToClientPoint(e,t){const n=gr.create(e,t);return f.transformPoint(n,this.getClientMatrix())}localToPagePoint(e,t){return("number"==typeof e?this.localToGraphPoint(e,t):this.localToGraphPoint(e)).translate(this.getPageOffset())}localToGraphRect(e,t,n,r){const i=mr.create(e,t,n,r);return f.transformRectangle(i,this.graph.matrix())}localToClientRect(e,t,n,r){const i=mr.create(e,t,n,r);return f.transformRectangle(i,this.getClientMatrix())}localToPageRect(e,t,n,r){return("number"==typeof e?this.localToGraphRect(e,t,n,r):this.localToGraphRect(e)).translate(this.getPageOffset())}graphToLocalPoint(e,t){const n=gr.create(e,t);return f.transformPoint(n,this.graph.matrix().inverse())}clientToLocalPoint(e,t){const n=gr.create(e,t);return f.transformPoint(n,this.getClientMatrix().inverse())}clientToGraphPoint(e,t){const n=gr.create(e,t);return f.transformPoint(n,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const n=gr.create(e,t).diff(this.getPageOffset());return this.graphToLocalPoint(n)}graphToLocalRect(e,t,n,r){const i=mr.create(e,t,n,r);return f.transformRectangle(i,this.graph.matrix().inverse())}clientToLocalRect(e,t,n,r){const i=mr.create(e,t,n,r);return f.transformRectangle(i,this.getClientMatrix().inverse())}clientToGraphRect(e,t,n,r){const i=mr.create(e,t,n,r);return f.transformRectangle(i,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,n,r){const i=mr.create(e,t,n,r),a=this.getPageOffset();return i.x-=a.x,i.y-=a.y,this.graphToLocalRect(i)}}
//# sourceMappingURL=coord.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/css.js
class _m extends sm{init(){zf.autoInsertCSS&&a.ensure("core",".x6-graph {\n  position: relative;\n  overflow: hidden;\n  outline: none;\n  touch-action: none;\n}\n.x6-graph-background,\n.x6-graph-grid,\n.x6-graph-svg {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-graph-background-stage,\n.x6-graph-grid-stage,\n.x6-graph-svg-stage {\n  user-select: none;\n}\n.x6-graph.x6-graph-pannable {\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n.x6-graph.x6-graph-panning {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n  user-select: none;\n}\n.x6-node {\n  cursor: move;\n  /* stylelint-disable-next-line */\n}\n.x6-node.x6-node-immovable {\n  cursor: default;\n}\n.x6-node * {\n  -webkit-user-drag: none;\n}\n.x6-node .scalable * {\n  vector-effect: non-scaling-stroke;\n}\n.x6-node [magnet='true'] {\n  cursor: crosshair;\n  transition: opacity 0.3s;\n}\n.x6-node [magnet='true']:hover {\n  opacity: 0.7;\n}\n.x6-node foreignObject {\n  display: block;\n  overflow: visible;\n  background-color: transparent;\n}\n.x6-node foreignObject > body {\n  position: static;\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: visible;\n  background-color: transparent;\n}\n.x6-edge .source-marker,\n.x6-edge .target-marker {\n  vector-effect: non-scaling-stroke;\n}\n.x6-edge .connection {\n  stroke-linejoin: round;\n  fill: none;\n}\n.x6-edge .connection-wrap {\n  cursor: move;\n  opacity: 0;\n  fill: none;\n  stroke: #000;\n  stroke-width: 15;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n.x6-edge .connection-wrap:hover {\n  opacity: 0.4;\n  stroke-opacity: 0.4;\n}\n.x6-edge .vertices {\n  cursor: move;\n  opacity: 0;\n}\n.x6-edge .vertices .vertex {\n  fill: #1abc9c;\n}\n.x6-edge .vertices .vertex :hover {\n  fill: #34495e;\n  stroke: none;\n}\n.x6-edge .vertices .vertex-remove {\n  cursor: pointer;\n  fill: #fff;\n}\n.x6-edge .vertices .vertex-remove-area {\n  cursor: pointer;\n  opacity: 0.1;\n}\n.x6-edge .vertices .vertex-group:hover .vertex-remove-area {\n  opacity: 1;\n}\n.x6-edge .arrowheads {\n  cursor: move;\n  opacity: 0;\n}\n.x6-edge .arrowheads .arrowhead {\n  fill: #1abc9c;\n}\n.x6-edge .arrowheads .arrowhead :hover {\n  fill: #f39c12;\n  stroke: none;\n}\n.x6-edge .tools {\n  cursor: pointer;\n  opacity: 0;\n}\n.x6-edge .tools .tool-options {\n  display: none;\n}\n.x6-edge .tools .tool-remove circle {\n  fill: #f00;\n}\n.x6-edge .tools .tool-remove path {\n  fill: #fff;\n}\n.x6-edge:hover .vertices,\n.x6-edge:hover .arrowheads,\n.x6-edge:hover .tools {\n  opacity: 1;\n}\n.x6-highlight-opacity {\n  opacity: 0.3;\n}\n.x6-cell-tool-editor {\n  position: relative;\n  display: inline-block;\n  min-height: 1em;\n  margin: 0;\n  padding: 0;\n  line-height: 1;\n  white-space: normal;\n  text-align: center;\n  vertical-align: top;\n  overflow-wrap: normal;\n  outline: none;\n  transform-origin: 0 0;\n  -webkit-user-drag: none;\n}\n.x6-edge-tool-editor {\n  border: 1px solid #275fc5;\n  border-radius: 2px;\n}\n")}dispose(){a.clean("core")}}T([au()],_m.prototype,"dispose",null);
//# sourceMappingURL=css.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/defs.js
class Im extends sm{get cid(){return this.graph.view.cid}get svg(){return this.view.svg}get defs(){return this.view.defs}isDefined(e){return null!=this.svg.getElementById(e)}filter(e){let t=e.id;const n=e.name;if(t||(t=`filter-${n}-${this.cid}-${c.hashcode(JSON.stringify(e))}`),!this.isDefined(t)){const r=Df.get(n);if(null==r)return Df.onNotFound(n);const i=r(e.args||{}),a=Object.assign(Object.assign({x:-1,y:-1,width:3,height:3,filterUnits:"objectBoundingBox"},e.attrs),{id:t});
// Set the filter area to be 3x the bounding box of the cell
// and center the filter around the cell.
Ss.create(Fp.sanitize(i),a).appendTo(this.defs)}return t}gradient(e){let t=e.id;const n=e.type;if(t||(t=`gradient-${n}-${this.cid}-${c.hashcode(JSON.stringify(e))}`),!this.isDefined(t)){const r=`<${n}>${e.stops.map((e=>{const t=null!=e.opacity&&Number.isFinite(e.opacity)?e.opacity:1;return`<stop offset="${e.offset}" stop-color="${e.color}" stop-opacity="${t}"/>`})).join("")}</${n}>`,i=Object.assign({id:t},e.attrs);Ss.create(r,i).appendTo(this.defs)}return t}marker(e){const{id:t,refX:n,refY:r,markerUnits:i,markerOrient:a,tagName:o,children:s}=e,l=M(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let u=t;if(u||(u=`marker-${this.cid}-${c.hashcode(JSON.stringify(e))}`),!this.isDefined(u)){"path"!==o&&
// remove unnecessary d attribute inherit from standard edge.
delete l.d;const e=Ss.create("marker",{refX:n,refY:r,id:u,overflow:"visible",orient:null!=a?a:"auto",markerUnits:i||"userSpaceOnUse"},s?s.map((e=>{var{tagName:t}=e,n=M(e,["tagName"]);return Ss.create(`${t}`||"path",h.kebablizeAttrs(Object.assign(Object.assign({},l),n)))})):[Ss.create(o||"path",h.kebablizeAttrs(l))]);this.defs.appendChild(e.node)}return u}remove(e){const t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}
//# sourceMappingURL=defs.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/grid.js
class Em extends sm{get elem(){return this.view.grid}get grid(){return this.options.grid}init(){this.startListening(),this.draw(this.grid)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}setVisible(e){this.grid.visible!==e&&(this.grid.visible=e,this.update())}getGridSize(){return this.grid.size}setGridSize(e){this.grid.size=Math.max(e,1),this.update()}show(){this.setVisible(!0),this.update()}hide(){this.setVisible(!1),this.update()}clear(){this.elem.style.backgroundImage=""}draw(e){this.clear(),this.instance=null,Object.assign(this.grid,e),this.patterns=this.resolveGrid(e),this.update()}update(e={}){const t=this.grid.size;if(t<=1||!this.grid.visible)return this.clear();const n=this.graph.matrix(),r=this.getInstance(),i=Array.isArray(e)?e:[e];this.patterns.forEach(((e,a)=>{const o=`pattern_${a}`,s=n.a||1,c=n.d||1,{update:l,markup:u}=e,f=M(e,["update","markup"]),d=Object.assign(Object.assign(Object.assign({},f),i[a]),{sx:s,sy:c,ox:n.e||0,oy:n.f||0,width:t*s,height:t*c});r.has(o)||r.add(o,Ss.create("pattern",{id:o,patternUnits:"userSpaceOnUse"},Ss.createVectors(u)).node);const p=r.get(o);"function"==typeof l&&l(p.childNodes[0],d);let g=d.ox%d.width;g<0&&(g+=d.width);let m=d.oy%d.height;m<0&&(m+=d.height),h.attr(p,{x:g,y:m,width:d.width,height:d.height})}));const a=(new XMLSerializer).serializeToString(r.root),o=`url(data:image/svg+xml;base64,${btoa(a)})`;this.elem.style.backgroundImage=o}getInstance(){return this.instance||(this.instance=new jf),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(null==t)return[Object.assign(Object.assign({},Nf.dot),e.args)];const n=Ff.get(t);if(n){let t=e.args||[];return Array.isArray(t)||(t=[t]),Array.isArray(n)?n.map(((e,n)=>Object.assign(Object.assign({},e),t[n]))):[Object.assign(Object.assign({},n),t[0])]}return Ff.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}T([au()],Em.prototype,"dispose",null);
//# sourceMappingURL=grid.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/highlight.js
class km extends sm{constructor(){super(...arguments),this.highlights={}}init(){this.startListening()}startListening(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}stopListening(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}onCellHighlight({view:e,magnet:t,options:n={}}){const r=this.resolveHighlighter(n);if(!r)return;const i=this.getHighlighterId(t,r);if(!this.highlights[i]){const n=r.highlighter;n.highlight(e,t,Object.assign({},r.args)),this.highlights[i]={cellView:e,magnet:t,highlighter:n,args:r.args}}}onCellUnhighlight({magnet:e,options:t={}}){const n=this.resolveHighlighter(t);if(!n)return;const r=this.getHighlighterId(e,n);this.unhighlight(r)}resolveHighlighter(e){const t=this.options;let n=e.highlighter;if(null==n){
// check for built-in types
const r=e.type;n=r&&t.highlighting[r]||t.highlighting.default}if(null==n)return null;const r="string"==typeof n?{name:n}:n,i=r.name,a=Xf.get(i);return null==a?Xf.onNotFound(i):(function(e,t){if("function"!=typeof t.highlight)throw new Error(`Highlighter '${e}' is missing required \`highlight()\` method`);if("function"!=typeof t.unhighlight)throw new Error(`Highlighter '${e}' is missing required \`unhighlight()\` method`)}(i,a),{name:i,highlighter:a,args:r.args||{}})}getHighlighterId(e,t){return h.ensureId(e),t.name+e.id+JSON.stringify(t.args)}unhighlight(e){const t=this.highlights[e];t&&(t.highlighter.unhighlight(t.cellView,t.magnet,t.args),delete this.highlights[e])}dispose(){Object.keys(this.highlights).forEach((e=>this.unhighlight(e))),this.stopListening()}}T([au()],km.prototype,"dispose",null);
//# sourceMappingURL=highlight.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/mousewheel.js
class Sm extends sm{constructor(){super(...arguments),this.cumulatedFactor=1}get widgetOptions(){return this.options.mousewheel}init(){this.container=this.graph.container,this.target=this.widgetOptions.global?document:this.container,this.mousewheelHandle=new h.MouseWheelHandle(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.widgetOptions.enabled&&this.enable(!0)}get disabled(){return!0!==this.widgetOptions.enabled}enable(e){(this.disabled||e)&&(this.widgetOptions.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.widgetOptions.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(e){const t=this.widgetOptions.guard;return(null==t||t(e))&&lu(e,this.widgetOptions.modifiers)}onMouseWheel(e){const t=this.widgetOptions.guard;if((null==t||t(e))&&lu(e,this.widgetOptions.modifiers)){const t=this.widgetOptions.factor||1.2;null==this.currentScale&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.transform.getScale().sx);e.deltaY<0?(
// zoomin
// ------
// Switches to 1% zoom steps below 15%
this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:
// Uses to 5% zoom steps for better grid rendering in
// webkit and to avoid rounding errors for zoom steps
this.cumulatedFactor=Math.round(this.currentScale*t*20)/20/this.currentScale,this.cumulatedFactor<=1&&(this.cumulatedFactor=1.05)):(
// zoomout
// -------
// Switches to 1% zoom steps below 15%
this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:
// Uses to 5% zoom steps for better grid rendering in
// webkit and to avoid rounding errors for zoom steps
this.cumulatedFactor=Math.round(this.currentScale*(1/t)*20)/20/this.currentScale,this.cumulatedFactor>=1&&(this.cumulatedFactor=.95)),this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const n=this.currentScale;let r=this.graph.transform.clampScale(n*this.cumulatedFactor);const a=this.widgetOptions.minScale||Number.MIN_SAFE_INTEGER,o=this.widgetOptions.maxScale||Number.MAX_SAFE_INTEGER;if(r=i.clamp(r,a,o),r!==n)if(this.widgetOptions.zoomAtMousePosition){const e=!!this.graph.getPlugin("scroller")?this.graph.clientToLocal(this.startPos):this.graph.clientToGraph(this.startPos);this.graph.zoom(r,{absolute:!0,center:e.clone()})}else this.graph.zoom(r,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}T([au()],Sm.prototype,"dispose",null);const Bm={x:0,y:0,scaling:{min:.01,max:16},grid:{size:10,visible:!1},background:!1,panning:{enabled:!0,eventTypes:["leftMouseDown"]},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:zf.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:zf.prefix("available-magnet")}}},connecting:{snap:!1,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,allowBlank:!0,allowMulti:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",router:"normal",connector:"normal",validateConnection:({type:e,sourceView:t,targetView:n})=>null!=("target"===e?n:t),createEdge:()=>new am},translating:{restrict:!1},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},async:!0,virtual:!1,guard:()=>!1};
//# sourceMappingURL=options.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/panning.js
class Mm extends sm{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&!0===this.widgetOptions.enabled}init(){this.onRightMouseDown=this.onRightMouseDown.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.startListening(),this.updateClassName()}startListening(){this.graph.on("blank:mousedown",this.onMouseDown,this),this.graph.on("node:unhandled:mousedown",this.onMouseDown,this),this.graph.on("edge:unhandled:mousedown",this.onMouseDown,this),h.Event.on(this.graph.container,"mousedown",this.onRightMouseDown),h.Event.on(document.body,{keydown:this.onKeyDown,keyup:this.onKeyUp}),this.mousewheelHandle=new h.MouseWheelHandle(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()}stopListening(){this.graph.off("blank:mousedown",this.onMouseDown,this),this.graph.off("node:unhandled:mousedown",this.onMouseDown,this),this.graph.off("edge:unhandled:mousedown",this.onMouseDown,this),h.Event.off(this.graph.container,"mousedown",this.onRightMouseDown),h.Event.off(document.body,{keydown:this.onKeyDown,keyup:this.onKeyUp}),this.mousewheelHandle&&this.mousewheelHandle.disable()}allowPanning(e,t){return e.spaceKey=this.isSpaceKeyPressed,this.pannable&&lu(e,this.widgetOptions.modifiers,t)}startPanning(e){const t=this.view.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.panning=!0,this.updateClassName(e),h.Event.on(document.body,{"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),h.Event.on(window,"mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.view.normalizeEvent(e),n=t.clientX-this.clientX,r=t.clientY-this.clientY;this.clientX=t.clientX,this.clientY=t.clientY,this.graph.translateBy(n,r)}
// eslint-disable-next-line
stopPanning(e){this.panning=!1,this.updateClassName(e),h.Event.off(document.body,".panning"),h.Event.off(window,".panning")}updateClassName(e){const t=this.widgetOptions.eventTypes;if(1===(null==t?void 0:t.length)&&t.includes("mouseWheel"))return;const n=this.view.container,r=this.view.prefixClassName("graph-panning"),i=this.view.prefixClassName("graph-pannable"),a=this.graph.getPlugin("selection"),o=a&&a.allowRubberband(e,!0),s=(null==t?void 0:t.includes("leftMouseDown"))&&!o;this.allowPanning(null!=e?e:{},!0)||this.allowPanning(null!=e?e:{})&&s?this.panning?(h.addClass(n,r),h.removeClass(n,i)):(h.removeClass(n,r),h.addClass(n,i)):this.panning||(h.removeClass(n,r),h.removeClass(n,i))}onMouseDown({e:e}){if(!this.allowBlankMouseDown(e))return;const t=this.graph.getPlugin("selection"),n=t&&t.allowRubberband(e,!0);(this.allowPanning(e,!0)||this.allowPanning(e)&&!n)&&this.startPanning(e)}onRightMouseDown(e){const t=this.widgetOptions.eventTypes;(null==t?void 0:t.includes("rightMouseDown"))&&2===e.button&&this.allowPanning(e,!0)&&this.startPanning(e)}onMouseWheel(e,t,n){this.graph.translateBy(-t,-n)}onKeyDown(e){32===e.which&&(this.isSpaceKeyPressed=!0),this.updateClassName(e)}onKeyUp(e){32===e.which&&(this.isSpaceKeyPressed=!1),this.updateClassName(e)}allowBlankMouseDown(e){const t=this.widgetOptions.eventTypes;return"string"==typeof e.type&&e.type.startsWith("touch")||"touch"===e.pointerType?null==t?void 0:t.includes("leftMouseDown"):(null==t?void 0:t.includes("leftMouseDown"))&&0===e.button||(null==t?void 0:t.includes("mouseWheelDown"))&&1===e.button}allowMouseWheel(e){var t;return this.pannable&&!e.ctrlKey&&(null===(t=this.widgetOptions.eventTypes)||void 0===t?void 0:t.includes("mouseWheel"))}autoPanning(e,t){const n=10,r=this.graph.getGraphArea();let i=0,a=0;e<=r.left+n&&(i=-10),t<=r.top+n&&(a=-10),e>=r.right-n&&(i=n),t>=r.bottom-n&&(a=n),0===i&&0===a||this.graph.translateBy(-i,-a)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}T([au()],Mm.prototype,"dispose",null);
//# sourceMappingURL=panning.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/size.js
class Tm extends sm{getScroller(){const e=this.graph.getPlugin("scroller");return e&&e.options.enabled?e:null}getContainer(){const e=this.getScroller();return e?e.container.parentElement:this.graph.container.parentElement}getSensorTarget(){const e=this.options.autoResize;if(e)return"boolean"==typeof e?this.getContainer()||void 0:e}init(){if(this.options.autoResize){const e=this.getSensorTarget();if(e){if("undefined"==typeof ResizeObserver)return;this.ro=new ResizeObserver((e=>{if(!e||0===e.length)return;const{width:t,height:n}=e[0].contentRect;this.resize(Math.round(t),Math.round(n))})),this.ro.observe(e);const t=e.offsetWidth,n=e.offsetHeight;this.resize(t,n)}}}resize(e,t){const n=this.getScroller();n?n.resize(e,t):this.graph.transform.resize(e,t)}dispose(){this.ro&&(this.ro.disconnect(),this.ro=void 0)}}T([au()],Tm.prototype,"dispose",null);
//# sourceMappingURL=size.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/transform.js
class Om extends sm{get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get stage(){return this.graph.view.stage}init(){this.resize()}
/**
     * Returns the current transformation matrix of the graph.
     */getMatrix(){const e=this.viewport.getAttribute("transform");
// Clone the cached current transformation matrix.
// If no matrix previously stored the identity matrix is returned.
return e!==this.viewportTransformString&&(
// `getCTM`: top-left relative to the SVG element
// `getScreenCTM`: top-left relative to the document
this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),h.createSVGMatrix(this.viewportMatrix)}
/**
     * Sets new transformation with the given `matrix`
     */setMatrix(e){const t=h.createSVGMatrix(e),n=h.matrixToTransformString(t);this.viewport.setAttribute("transform",n),this.viewportMatrix=t,this.viewportTransformString=n}resize(e,t){let n=void 0===e?this.options.width:e,r=void 0===t?this.options.height:t;this.options.width=n,this.options.height=r,"number"==typeof n&&(n=Math.round(n)),"number"==typeof r&&(r=Math.round(r)),this.container.style.width=null==n?"":`${n}px`,this.container.style.height=null==r?"":`${r}px`;const i=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},i)),this}getComputedSize(){let e=this.options.width,t=this.options.height;return i.isNumber(e)||(e=this.container.clientWidth),i.isNumber(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return h.matrixToScale(this.getMatrix())}scale(e,t=e,n=0,r=0,i=!0){// eslint-disable-line
if(e=this.clampScale(e),// eslint-disable-line
t=this.clampScale(t),i&&(n||r)){const i=this.getTranslation(),a=this.getScale(),o=n-(n-i.tx)*(e/a.sx),s=r-(r-i.ty)*(t/a.sy);o===i.tx&&s===i.ty||this.translate(o,s)}const a=this.getMatrix();return a.a=e,a.d=t,this.setMatrix(a),this.graph.trigger("scale",{sx:e,sy:t,ox:n,oy:r}),this}clampScale(e){const t=this.graph.options.scaling;return i.clamp(e,t.min||.01,t.max||16)}getZoom(){return this.getScale().sx}zoom(e,t){t=t||{};// eslint-disable-line
let n=e,r=e;const i=this.getScale(),a=this.getComputedSize();let o=a.width/2,s=a.height/2;return t.absolute||(n+=i.sx,r+=i.sy),t.scaleGrid&&(n=Math.round(n/t.scaleGrid)*t.scaleGrid,r=Math.round(r/t.scaleGrid)*t.scaleGrid),t.maxScale&&(n=Math.min(t.maxScale,n),r=Math.min(t.maxScale,r)),t.minScale&&(n=Math.max(t.minScale,n),r=Math.max(t.minScale,r)),t.center&&(o=t.center.x,s=t.center.y),n=this.clampScale(n),r=this.clampScale(r),this.scale(n,r,o,s),this}getRotation(){return h.matrixToRotation(this.getMatrix())}rotate(e,t,n){if(null==t||null==n){const e=f.getBBox(this.stage);t=e.width/2,// eslint-disable-line
n=e.height/2}const r=this.getMatrix().translate(t,n).rotate(e).translate(-t,-n);return this.setMatrix(r),this}getTranslation(){return h.matrixToTranslation(this.getMatrix())}translate(e,t){const n=this.getMatrix();n.e=e||0,n.f=t||0,this.setMatrix(n);const r=this.getTranslation();return this.options.x=r.tx,this.options.y=r.ty,this.graph.trigger("translate",Object.assign({},r)),this}setOrigin(e,t){return this.translate(e||0,t||0)}fitToContent(e,t,n,r){if("object"==typeof e){const i=e;e=i.gridWidth||1,// eslint-disable-line
t=i.gridHeight||1,// eslint-disable-line
n=i.padding||0,// eslint-disable-line
r=i}else e=e||1,// eslint-disable-line
t=t||1,// eslint-disable-line
n=n||0,// eslint-disable-line
null==r&&(r={});const a=i.normalizeSides(n),o=r.border||0,s=r.contentArea?mr.create(r.contentArea):this.getContentArea(r);o>0&&s.inflate(o);const c=this.getScale(),l=this.getTranslation(),u=c.sx,h=c.sy;s.x*=u,s.y*=h,s.width*=u,s.height*=h;let f=Math.max(Math.ceil((s.width+s.x)/e),1)*e,d=Math.max(Math.ceil((s.height+s.y)/t),1)*t,p=0,g=0;("negative"===r.allowNewOrigin&&s.x<0||"positive"===r.allowNewOrigin&&s.x>=0||"any"===r.allowNewOrigin)&&(p=Math.ceil(-s.x/e)*e,p+=a.left,f+=p),("negative"===r.allowNewOrigin&&s.y<0||"positive"===r.allowNewOrigin&&s.y>=0||"any"===r.allowNewOrigin)&&(g=Math.ceil(-s.y/t)*t,g+=a.top,d+=g),f+=a.right,d+=a.bottom,
// Make sure the resulting width and height are greater than minimum.
f=Math.max(f,r.minWidth||0),d=Math.max(d,r.minHeight||0),
// Make sure the resulting width and height are lesser than maximum.
f=Math.min(f,r.maxWidth||Number.MAX_SAFE_INTEGER),d=Math.min(d,r.maxHeight||Number.MAX_SAFE_INTEGER);const m=this.getComputedSize(),v=f!==m.width||d!==m.height;
// Change the dimensions only if there is a size discrepency or an origin change
return(p!==l.tx||g!==l.ty)&&this.translate(p,g),v&&this.resize(f,d),new mr(-p/u,-g/h,f/u,d/h)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},t=!0){let n,r;if(e.contentArea){const t=e.contentArea;n=this.graph.localToGraph(t),r=gr.create(t)}else n=this.getContentBBox(e),r=this.graph.graphToLocal(n);if(!n.width||!n.height)return;const a=i.normalizeSides(e.padding),o=e.minScale||0,s=e.maxScale||Number.MAX_SAFE_INTEGER,c=e.minScaleX||o,l=e.maxScaleX||s,u=e.minScaleY||o,h=e.maxScaleY||s;let f;if(e.viewportArea)f=e.viewportArea;else{const e=this.getComputedSize(),t=this.getTranslation();f={x:t.tx,y:t.ty,width:e.width,height:e.height}}f=mr.create(f).moveAndExpand({x:a.left,y:a.top,width:-a.left-a.right,height:-a.top-a.bottom});const d=this.getScale();let p=f.width/n.width*d.sx,g=f.height/n.height*d.sy;!1!==e.preserveAspectRatio&&(p=g=Math.min(p,g));
// snap scale to a grid
const m=e.scaleGrid;if(m&&(p=m*Math.floor(p/m),g=m*Math.floor(g/m)),
// scale min/max boundaries
p=i.clamp(p,c,l),g=i.clamp(g,u,h),this.scale(p,g),t){const e=this.options,t=f.x-r.x*p-e.x,n=f.y-r.y*g-e.y;this.translate(t,n)}}getContentArea(e={}){
// use geometry calc default
return!1!==e.useCellGeometry?this.model.getAllCellsBBox()||new mr:f.getBBox(this.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=mr.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const n=mr.create(e),r=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:r.options.x,y:r.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(t,!1);const i=n.getCenter();return this.centerPoint(i.x,i.y),this}zoomToFit(e={}){return this.zoomToRect(this.getContentArea(e),e)}centerPoint(e,t){const n=this.getComputedSize(),r=this.getScale(),i=this.getTranslation(),a=n.width/2,o=n.height/2;// eslint-disable-line
t="number"==typeof t?t:o,// eslint-disable-line
e=a-(e="number"==typeof e?e:a)*r.sx,// eslint-disable-line
t=o-t*r.sy,// eslint-disable-line
i.tx===e&&i.ty===t||this.translate(e,t)}centerContent(e){const t=this.graph.getContentArea(e).getCenter();this.centerPoint(t.x,t.y)}centerCell(e){return this.positionCell(e,"center")}positionPoint(e,t,n){const r=this.getComputedSize();
// eslint-disable-next-line
(t=i.normalizePercentage(t,Math.max(0,r.width)))<0&&(t=r.width+t),(
// eslint-disable-next-line
n=i.normalizePercentage(n,Math.max(0,r.height)))<0&&(n=r.height+n);const a=this.getTranslation(),o=this.getScale(),s=t-e.x*o.sx,c=n-e.y*o.sy;a.tx===s&&a.ty===c||this.translate(s,c)}positionRect(e,t){const n=mr.create(e);switch(t){case"center":return this.positionPoint(n.getCenter(),"50%","50%");case"top":return this.positionPoint(n.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(n.getTopRight(),"100%",0);case"right":return this.positionPoint(n.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(n.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(n.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(n.getBottomLeft(),0,"100%");case"left":return this.positionPoint(n.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(n.getTopLeft(),0,0);default:return this}}positionCell(e,t){const n=e.getBBox();return this.positionRect(n,t)}positionContent(e,t){const n=this.graph.getContentArea(t);return this.positionRect(n,e)}}
//# sourceMappingURL=transform.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/view.js
const Dm=`${zf.prefixCls}-graph`;class Pm extends Gp{static snapshoot(e){const t=e.cloneNode();return e.childNodes.forEach((e=>{t.appendChild(e)})),()=>{
// remove all attributes
for(
// remove all children
h.empty(e);e.attributes.length>0;)e.removeAttribute(e.attributes[0].name);
// restore attributes
for(let n=0,r=t.attributes.length;n<r;n+=1){const r=t.attributes[n];e.setAttribute(r.name,r.value)}
// restore children
t.childNodes.forEach((t=>{e.appendChild(t)}))}}
/** Graph's `this.container` is from outer, should not dispose */get disposeContainer(){return!1}get options(){return this.graph.options}constructor(e){super(),this.graph=e;const{selectors:t,fragment:n}=Fp.parseJSONMarkup(Pm.markup);this.background=t.background,this.grid=t.grid,this.svg=t.svg,this.defs=t.defs,this.viewport=t.viewport,this.primer=t.primer,this.stage=t.stage,this.decorator=t.decorator,this.overlay=t.overlay,this.container=this.options.container,this.restore=Pm.snapshoot(this.container),h.addClass(this.container,this.prefixClassName("graph")),h.append(this.container,n),this.delegateEvents()}delegateEvents(){const e=this.constructor;return super.delegateEvents(e.events),this}
/**
     * Guard the specified event. If the event is not interesting, it
     * returns `true`, otherwise returns `false`.
     */guard(e,t){
// handled as `contextmenu` type
return"mousedown"===e.type&&2===e.button||(!(!this.options.guard||!this.options.guard(e,t))||(e.data&&void 0!==e.data.guarded?e.data.guarded:!(t&&t.cell&&jg.isCell(t.cell))&&(this.svg!==e.target&&this.container!==e.target&&!this.svg.contains(e.target))))}findView(e){return this.graph.findViewByElem(e)}onDblClick(e){this.options.preventDefaultDblClick&&e.preventDefault();const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onDblClick(t,r.x,r.y):this.graph.trigger("blank:dblclick",{e:t,x:r.x,y:r.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onClick(t,r.x,r.y):this.graph.trigger("blank:click",{e:t,x:r.x,y:r.y})}}isPreventDefaultContextMenu(e){let t=this.options.preventDefaultContextMenu;return"function"==typeof t&&(t=s.call(t,this.graph,{view:e})),t}onContextMenu(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.isPreventDefaultContextMenu(n)&&e.preventDefault(),this.guard(t,n))return;const r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onContextMenu(t,r.x,r.y):this.graph.trigger("blank:contextmenu",{e:t,x:r.x,y:r.y})}delegateDragEvents(e,t){null==e.data&&(e.data={}),this.setEventData(e,{currentView:t||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});const n=this.constructor;this.delegateDocumentEvents(n.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){return this.getEventData(e).mouseMovedCount||0}onMouseDown(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;this.options.preventDefaultMouseDown&&e.preventDefault();const r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onMouseDown(t,r.x,r.y):(this.options.preventDefaultBlankAction&&["touchstart"].includes(t.type)&&e.preventDefault(),this.graph.trigger("blank:mousedown",{e:t,x:r.x,y:r.y})),this.delegateDragEvents(t,n)}onMouseMove(e){const t=this.getEventData(e),n=t.startPosition;if(n&&n.x===e.clientX&&n.y===e.clientY)return;null==t.mouseMovedCount&&(t.mouseMovedCount=0),t.mouseMovedCount+=1;if(t.mouseMovedCount<=this.options.moveThreshold)return;const r=this.normalizeEvent(e),i=this.graph.snapToGrid(r.clientX,r.clientY),a=t.currentView;a?a.onMouseMove(r,i.x,i.y):this.graph.trigger("blank:mousemove",{e:r,x:i.x,y:i.y}),this.setEventData(r,t)}onMouseUp(e){this.undelegateDocumentEvents();const t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY),r=this.getEventData(e).currentView;if(r?r.onMouseUp(t,n.x,n.y):this.graph.trigger("blank:mouseup",{e:t,x:n.x,y:n.y}),!e.isPropagationStopped()){const t=new h.EventObject(e,{type:"click",data:e.data});this.onClick(t)}e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOver(t);else{
// prevent border of paper from triggering this
if(this.container===t.target)return;this.graph.trigger("blank:mouseover",{e:t})}}onMouseOut(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOut(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseout",{e:t})}}onMouseEnter(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const r=this.graph.findViewByElem(t.relatedTarget);if(n){if(r===n)
// mouse moved from tool to view
return;n.onMouseEnter(t)}else{if(r)return;this.graph.trigger("graph:mouseenter",{e:t})}}onMouseLeave(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const r=this.graph.findViewByElem(t.relatedTarget);if(n){if(r===n)
// mouse moved from view to tool
return;n.onMouseLeave(t)}else{if(r)return;this.graph.trigger("graph:mouseleave",{e:t})}}onMouseWheel(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;const r=t.originalEvent,i=this.graph.snapToGrid(r.clientX,r.clientY),a=Math.max(-1,Math.min(1,r.wheelDelta||-r.detail));n?n.onMouseWheel(t,i.x,i.y,a):this.graph.trigger("blank:mousewheel",{e:t,delta:a,x:i.x,y:i.y})}onCustomEvent(e){const t=e.currentTarget,n=t.getAttribute("event")||t.getAttribute("data-event");if(n){const r=this.findView(t);if(r){const t=this.normalizeEvent(e);if(this.guard(t,r))return;const i=this.graph.snapToGrid(t.clientX,t.clientY);r.onCustomEvent(t,n,i.x,i.y)}}}handleMagnetEvent(e,t){const n=e.currentTarget,r=n.getAttribute("magnet");if(r&&"false"!==r.toLowerCase()){const r=this.findView(n);if(r){const i=this.normalizeEvent(e);if(this.guard(i,r))return;const a=this.graph.snapToGrid(i.clientX,i.clientY);s.call(t,this.graph,r,i,n,a.x,a.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,((e,t,n,r,i)=>{e.onMagnetMouseDown(t,n,r,i)}))}onMagnetDblClick(e){this.handleMagnetEvent(e,((e,t,n,r,i)=>{e.onMagnetDblClick(t,n,r,i)}))}onMagnetContextMenu(e){const t=this.findView(e.target);this.isPreventDefaultContextMenu(t)&&e.preventDefault(),this.handleMagnetEvent(e,((e,t,n,r,i)=>{e.onMagnetContextMenu(t,n,r,i)}))}onLabelMouseDown(e){const t=e.currentTarget,n=this.findView(t);if(n){const t=this.normalizeEvent(e);if(this.guard(t,n))return;const r=this.graph.snapToGrid(t.clientX,t.clientY);n.onLabelMouseDown(t,r.x,r.y)}}onImageDragStart(){
// This is the only way to prevent image dragging in Firefox that works.
// Setting -moz-user-select: none, draggable="false" attribute or
// user-drag: none didn't help.
return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}Pm.markup=[{ns:h.ns.xhtml,tagName:"div",selector:"background",className:`${Dm}-background`},{ns:h.ns.xhtml,tagName:"div",selector:"grid",className:`${Dm}-grid`},{ns:h.ns.svg,tagName:"svg",selector:"svg",className:`${Dm}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":h.ns.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${Dm}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${Dm}-svg-primer`},{tagName:"g",selector:"stage",className:`${Dm}-svg-stage`},{tagName:"g",selector:"decorator",className:`${Dm}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${Dm}-svg-overlay`}]}]}],Pm.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter  .${zf.prefixCls}-cell`]:"onMouseEnter",[`mouseleave  .${zf.prefixCls}-cell`]:"onMouseLeave",[`mouseenter  .${zf.prefixCls}-cell-tools`]:"onMouseEnter",[`mouseleave  .${zf.prefixCls}-cell-tools`]:"onMouseLeave",[`mousedown   .${zf.prefixCls}-cell [event]`]:"onCustomEvent",[`touchstart  .${zf.prefixCls}-cell [event]`]:"onCustomEvent",[`mousedown   .${zf.prefixCls}-cell [data-event]`]:"onCustomEvent",[`touchstart  .${zf.prefixCls}-cell [data-event]`]:"onCustomEvent",[`dblclick    .${zf.prefixCls}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${zf.prefixCls}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown   .${zf.prefixCls}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart  .${zf.prefixCls}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick    .${zf.prefixCls}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${zf.prefixCls}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown   .${zf.prefixCls}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart  .${zf.prefixCls}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart   .${zf.prefixCls}-cell image`]:"onImageDragStart",[`mousedown   .${zf.prefixCls}-edge .${zf.prefixCls}-edge-label`]:"onLabelMouseDown",[`touchstart  .${zf.prefixCls}-edge .${zf.prefixCls}-edge-label`]:"onLabelMouseDown"},Pm.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},T([au()],Pm.prototype,"dispose",null);class Lm extends sm{init(){this.resetRenderArea=s.throttle(this.resetRenderArea,200,{leading:!0}),this.resetRenderArea(),this.startListening()}bindScrollerEvents(e){this.scrollerRef=e,"function"==typeof e.on&&(e.on("pan:start",this.resetRenderArea,this),e.on("panning",this.resetRenderArea,this),e.on("pan:stop",this.resetRenderArea,this));const t=e.container;t&&(this.scrollerScrollHandler=e=>{this.resetRenderArea()},h.Event.on(t,"scroll",this.scrollerScrollHandler))}startListening(){this.graph.on("translate",this.resetRenderArea,this),this.graph.on("scale",this.resetRenderArea,this),this.graph.on("resize",this.resetRenderArea,this);const e=this.graph.getPlugin("scroller");e&&this.bindScrollerEvents(e)}stopListening(){this.graph.off("translate",this.resetRenderArea,this),this.graph.off("scale",this.resetRenderArea,this),this.graph.off("resize",this.resetRenderArea,this),this.unbindScroller()}onScrollerReady(e){this.scrollerRef!==e&&(this.unbindScroller(),this.bindScrollerEvents(e),this.resetRenderArea())}unbindScroller(){if(this.scrollerRef){"function"==typeof this.scrollerRef.off&&(this.scrollerRef.off("pan:start",this.resetRenderArea,this),this.scrollerRef.off("panning",this.resetRenderArea,this),this.scrollerRef.off("pan:stop",this.resetRenderArea,this));const e=this.scrollerRef.container;e&&this.scrollerScrollHandler&&h.Event.off(e,"scroll",this.scrollerScrollHandler),this.scrollerRef=void 0,this.scrollerScrollHandler=void 0}}setVirtualEnabled(e){const t=this.options.virtual;if("object"==typeof t){const n=t;this.options.virtual=Object.assign(Object.assign({},n),{enabled:e})}else this.options.virtual=e}enableVirtualRender(){this.setVirtualEnabled(!0),this.resetRenderArea()}disableVirtualRender(){this.setVirtualEnabled(!1),this.graph.renderer.setRenderArea(void 0)}isVirtualEnabled(){const e=this.options.virtual;return null!=e&&"object"==typeof e?!1!==e.enabled:!!e}getVirtualMargin(){const e=this.options.virtual;if("object"==typeof e){const t=e.margin;return"number"==typeof t?t:120}return 120}resetRenderArea(){if(this.isVirtualEnabled()){const e=this.graph.getGraphArea();if(e){
// 开启虚拟渲染时，为可视区域添加缓冲边距
const t=this.getVirtualMargin(),n=e.clone();return n.inflate(t,t),void this.graph.renderer.setRenderArea(n)}}}dispose(){this.stopListening()}}T([au()],Lm.prototype,"dispose",null);
//# sourceMappingURL=virtual-render.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/graph.js
class Qm extends ou{static isGraph(e){if(null==e)return!1;if(e instanceof Qm)return!0;const t=e[Symbol.toStringTag];return null==t||t===Qm.toStringTag}static render(e,t){const n=e instanceof HTMLElement?new Qm({container:e}):new Qm(e);return null!=t&&n.fromJSON(t),n}get container(){return this.options.container}get[Symbol.toStringTag](){return Qm.toStringTag}constructor(e){super(),this.installedPlugins=new Set,this.options=
//# sourceMappingURL=mousewheel.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/options.js
function(e){const{grid:t,panning:n,mousewheel:r,embedding:i}=e,a=M(e,["grid","panning","mousewheel","embedding"]),o=e.container;
// size
// ----
if(null==o)throw new Error("Ensure the container of the graph is specified and valid");null==a.width&&(a.width=o.clientWidth),null==a.height&&(a.height=o.clientHeight);const s=l.merge({},Bm,a),c={size:10,visible:!1};
// grid
// ----
return s.grid="number"==typeof t?{size:t,visible:!1}:"boolean"==typeof t?Object.assign(Object.assign({},c),{visible:t}):Object.assign(Object.assign({},c),t),["panning","mousewheel","embedding"].forEach((t=>{const n=e[t];"boolean"==typeof n?s[t].enabled=n:null!=n&&(s[t]=Object.assign(Object.assign({},s[t]),n))})),s}(e),this.css=new _m(this),this.view=new Pm(this),this.defs=new Im(this),this.coord=new Cm(this),this.transform=new Om(this),this.highlight=new km(this),this.grid=new Em(this),this.background=new xm(this),this.options.model?this.model=this.options.model:(this.model=new Xg,this.model.graph=this),this.renderer=new wm(this),this.panning=new Mm(this),this.mousewheel=new Sm(this),this.virtualRender=new Lm(this),this.size=new Tm(this)}
// #region model
isNode(e){return e.isNode()}isEdge(e){return e.isEdge()}resetCells(e,t={}){return this.model.resetCells(e,t),this}clearCells(e={}){return this.model.clear(e),this}toJSON(e={}){return this.model.toJSON(e)}parseJSON(e){return this.model.parseJSON(e)}fromJSON(e,t={}){return this.model.fromJSON(e,t),this}getCellById(e){return this.model.getCell(e)}addNode(e,t={}){return this.model.addNode(e,t)}addNodes(e,t={}){return this.addCell(e.map((e=>Vg.isNode(e)?e:this.createNode(e))),t)}createNode(e){return this.model.createNode(e)}removeNode(e,t={}){return this.model.removeCell(e,t)}addEdge(e,t={}){return this.model.addEdge(e,t)}addEdges(e,t={}){return this.addCell(e.map((e=>$g.isEdge(e)?e:this.createEdge(e))),t)}removeEdge(e,t={}){return this.model.removeCell(e,t)}createEdge(e){return this.model.createEdge(e)}addCell(e,t={}){return this.model.addCell(e,t),this}removeCell(e,t={}){return this.model.removeCell(e,t)}removeCells(e,t={}){return this.model.removeCells(e,t)}removeConnectedEdges(e,t={}){return this.model.removeConnectedEdges(e,t)}disconnectConnectedEdges(e,t={}){return this.model.disconnectConnectedEdges(e,t),this}hasCell(e){return this.model.has(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}
/**
     * Returns all the nodes in the graph.
     */getNodes(){return this.model.getNodes()}
/**
     * Returns all the edges in the graph.
     */getEdges(){return this.model.getEdges()}
/**
     * Returns all outgoing edges for the node.
     */getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}
/**
     * Returns all incoming edges for the node.
     */getIncomingEdges(e){return this.model.getIncomingEdges(e)}
/**
     * Returns edges connected with cell.
     */getConnectedEdges(e,t={}){return this.model.getConnectedEdges(e,t)}
/**
     * Returns an array of all the roots of the graph.
     */getRootNodes(){return this.model.getRoots()}
/**
     * Returns an array of all the leafs of the graph.
     */getLeafNodes(){return this.model.getLeafs()}
/**
     * Returns `true` if the node is a root node, i.e.
     * there is no  edges coming to the node.
     */isRootNode(e){return this.model.isRoot(e)}
/**
     * Returns `true` if the node is a leaf node, i.e.
     * there is no edges going out from the node.
     */isLeafNode(e){return this.model.isLeaf(e)}
/**
     * Returns all the neighbors of node in the graph. Neighbors are all
     * the nodes connected to node via either incoming or outgoing edge.
     */getNeighbors(e,t={}){return this.model.getNeighbors(e,t)}
/**
     * Returns `true` if `cell2` is a neighbor of `cell1`.
     */isNeighbor(e,t,n={}){return this.model.isNeighbor(e,t,n)}getSuccessors(e,t={}){return this.model.getSuccessors(e,t)}
/**
     * Returns `true` if `cell2` is a successor of `cell1`.
     */isSuccessor(e,t,n={}){return this.model.isSuccessor(e,t,n)}getPredecessors(e,t={}){return this.model.getPredecessors(e,t)}
/**
     * Returns `true` if `cell2` is a predecessor of `cell1`.
     */isPredecessor(e,t,n={}){return this.model.isPredecessor(e,t,n)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}
/**
     * Returns an array of cells that result from finding nodes/edges that
     * are connected to any of the cells in the cells array. This function
     * loops over cells and if the current cell is a edge, it collects its
     * source/target nodes; if it is an node, it collects its incoming and
     * outgoing edges if both the edge terminal (source/target) are in the
     * cells array.
     */getSubGraph(e,t={}){return this.model.getSubGraph(e,t)}
/**
     * Clones the whole subgraph (including all the connected links whose
     * source/target is in the subgraph). If `options.deep` is `true`, also
     * take into account all the embedded cells of all the subgraph cells.
     *
     * Returns a map of the form: { [original cell ID]: [clone] }.
     */cloneSubGraph(e,t={}){return this.model.cloneSubGraph(e,t)}cloneCells(e){return this.model.cloneCells(e)}getNodesFromPoint(e,t){return this.model.getNodesFromPoint(e,t)}getNodesInArea(e,t,n,r,i){return this.model.getNodesInArea(e,t,n,r,i)}getNodesUnderNode(e,t={}){return this.model.getNodesUnderNode(e,t)}searchCell(e,t,n={}){return this.model.search(e,t,n),this}
/** *
     * Returns an array of IDs of nodes on the shortest
     * path between source and target.
     */getShortestPath(e,t,n={}){return this.model.getShortestPath(e,t,n)}
/**
     * Returns the bounding box that surrounds all cells in the graph.
     */getAllCellsBBox(){return this.model.getAllCellsBBox()}
/**
     * Returns the bounding box that surrounds all the given cells.
     */getCellsBBox(e,t={}){return this.model.getCellsBBox(e,t)}startBatch(e,t={}){this.model.startBatch(e,t)}stopBatch(e,t={}){this.model.stopBatch(e,t)}batchUpdate(e,t,n){const r="string"==typeof e?e:"update",i="string"==typeof e?t:e,a="function"==typeof t?n:t;this.startBatch(r,a);const o=i();return this.stopBatch(r,a),o}updateCellId(e,t){return this.model.updateCellId(e,t)}
// #endregion
// #region view
findView(e){return jg.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return mr.isRectangleLike(e)?this.findViewsInArea(e):gr.isPointLike(e)?this.findViewsFromPoint(e):[]}findViewByCell(e){return this.renderer.findViewByCell(e)}findViewByElem(e){return this.renderer.findViewByElem(e)}findViewsFromPoint(e,t){const n="number"==typeof e?{x:e,y:t}:e;return this.renderer.findViewsFromPoint(n)}findViewsInArea(e,t,n,r,i){const a="number"==typeof e?{x:e,y:t,width:n,height:r}:e,o="number"==typeof e?i:t;return this.renderer.findViewsInArea(a,o)}matrix(e){return void 0===e?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,t){const n=this.getPlugin("scroller");return n?n.resize(e,t):this.transform.resize(e,t),this}scale(e,t=e,n=0,r=0){return void 0===e?this.transform.getScale():(this.transform.scale(e,t,n,r),this)}zoom(e,t){const n=this.getPlugin("scroller");if(n){if(void 0===e)return n.zoom();n.zoom(e,t)}else{if(void 0===e)return this.transform.getZoom();this.transform.zoom(e,t)}return this}zoomTo(e,t={}){const n=this.getPlugin("scroller");return n?n.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})):this.transform.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})),this}zoomToRect(e,t={}){const n=this.getPlugin("scroller");return n?n.zoomToRect(e,t):this.transform.zoomToRect(e,t),this}zoomToFit(e={}){const t=this.getPlugin("scroller");return t?t.zoomToFit(e):this.transform.zoomToFit(e),this}rotate(e,t,n){return void 0===e?this.transform.getRotation():(this.transform.rotate(e,t,n),this)}translate(e,t){return void 0===e?this.transform.getTranslation():(this.transform.translate(e,t),this)}translateBy(e,t){const n=this.translate(),r=n.tx+e,i=n.ty+t;return this.translate(r,i)}getGraphArea(){var e;const t=this.getPlugin("scroller");if(t){const n=null===(e=t.getVisibleArea)||void 0===e?void 0:e.call(t);if(n)return n}return this.transform.getGraphArea()}getContentArea(e={}){return this.transform.getContentArea(e)}getContentBBox(e={}){return this.transform.getContentBBox(e)}fitToContent(e,t,n,r){return this.transform.fitToContent(e,t,n,r)}scaleContentToFit(e={}){return this.transform.scaleContentToFit(e),this}
/**
     * Position the center of graph to the center of the viewport.
     */center(e){return this.centerPoint(e)}centerPoint(e,t,n){const r=this.getPlugin("scroller");return r?r.centerPoint(e,t,n):this.transform.centerPoint(e,t),this}centerContent(e){const t=this.getPlugin("scroller");return t?t.centerContent(e):this.transform.centerContent(e),this}centerCell(e,t){const n=this.getPlugin("scroller");return n?n.centerCell(e,t):this.transform.centerCell(e),this}positionPoint(e,t,n,r={}){const i=this.getPlugin("scroller");return i?i.positionPoint(e,t,n,r):this.transform.positionPoint(e,t,n),this}positionRect(e,t,n){const r=this.getPlugin("scroller");return r?r.positionRect(e,t,n):this.transform.positionRect(e,t),this}positionCell(e,t,n){const r=this.getPlugin("scroller");return r?r.positionCell(e,t,n):this.transform.positionCell(e,t),this}positionContent(e,t){const n=this.getPlugin("scroller");return n?n.positionContent(e,t):this.transform.positionContent(e,t),this}snapToGrid(e,t){return this.coord.snapToGrid(e,t)}pageToLocal(e,t,n,r){return mr.isRectangleLike(e)?this.coord.pageToLocalRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.pageToLocalRect(e,t,n,r):this.coord.pageToLocalPoint(e,t)}localToPage(e,t,n,r){return mr.isRectangleLike(e)?this.coord.localToPageRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.localToPageRect(e,t,n,r):this.coord.localToPagePoint(e,t)}clientToLocal(e,t,n,r){return mr.isRectangleLike(e)?this.coord.clientToLocalRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.clientToLocalRect(e,t,n,r):this.coord.clientToLocalPoint(e,t)}localToClient(e,t,n,r){return mr.isRectangleLike(e)?this.coord.localToClientRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.localToClientRect(e,t,n,r):this.coord.localToClientPoint(e,t)}localToGraph(e,t,n,r){return mr.isRectangleLike(e)?this.coord.localToGraphRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.localToGraphRect(e,t,n,r):this.coord.localToGraphPoint(e,t)}graphToLocal(e,t,n,r){return mr.isRectangleLike(e)?this.coord.graphToLocalRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.graphToLocalRect(e,t,n,r):this.coord.graphToLocalPoint(e,t)}clientToGraph(e,t,n,r){return mr.isRectangleLike(e)?this.coord.clientToGraphRect(e):"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?this.coord.clientToGraphRect(e,t,n,r):this.coord.clientToGraphPoint(e,t)}
// #endregion
// #region defs
defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}
// #endregion
// #region grid
getGridSize(){return this.grid.getGridSize()}setGridSize(e){return this.grid.setGridSize(e),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(e){return this.grid.draw(e),this}
// #endregion
// #region background
updateBackground(){return this.background.update(),this}drawBackground(e,t){const n=this.getPlugin("scroller");return null==n||null!=this.options.background&&t?this.background.draw(e):n.drawBackground(e,t),this}clearBackground(e){const t=this.getPlugin("scroller");return null==t||null!=this.options.background&&e?this.background.clear():t.clearBackground(e),this}
// #endregion
// #region virtual-render
enableVirtualRender(){return this.virtualRender.enableVirtualRender(),this}disableVirtualRender(){return this.virtualRender.disableVirtualRender(),this}
// #endregion
// #region mousewheel
isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(e){return null==e?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}
// #endregion
// #region panning
isPannable(){const e=this.getPlugin("scroller");return e?e.isPannable():this.panning.pannable}enablePanning(){const e=this.getPlugin("scroller");return e?e.enablePanning():this.panning.enablePanning(),this}disablePanning(){const e=this.getPlugin("scroller");return e?e.disablePanning():this.panning.disablePanning(),this}togglePanning(e){return null==e?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}
// #endregion
// #region plugin
handleScrollerPluginStateChange(e,t){"scroller"===e.name&&(t?this.virtualRender.onScrollerReady(e):this.virtualRender.unbindScroller())}use(e,...t){return this.installedPlugins.has(e)||(this.installedPlugins.add(e),e.init(this,...t),this.handleScrollerPluginStateChange(e,!0)),this}getPlugin(e){return Array.from(this.installedPlugins).find((t=>t.name===e))}getPlugins(e){return Array.from(this.installedPlugins).filter((t=>e.includes(t.name)))}enablePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const n=this.getPlugins(t);return null==n||n.forEach((e=>{var t;null===(t=null==e?void 0:e.enable)||void 0===t||t.call(e),this.handleScrollerPluginStateChange(e,!0)})),this}disablePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const n=this.getPlugins(t);return null==n||n.forEach((e=>{var t;null===(t=null==e?void 0:e.disable)||void 0===t||t.call(e),this.handleScrollerPluginStateChange(e,!1)})),this}isPluginEnabled(e){var t;const n=this.getPlugin(e);return null===(t=null==n?void 0:n.isEnabled)||void 0===t?void 0:t.call(n)}disposePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const n=this.getPlugins(t);return null==n||n.forEach((e=>{e.dispose(),this.handleScrollerPluginStateChange(e,!1),this.installedPlugins.delete(e)})),this}
// #endregion
// #region dispose
dispose(e=!0){e&&this.model.dispose(),this.css.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.highlight.dispose(),this.background.dispose(),this.mousewheel.dispose(),this.panning.dispose(),this.view.dispose(),this.renderer.dispose(),this.installedPlugins.forEach((e=>{e.dispose()}))}}Qm.toStringTag=`X6.${Qm.name}`,Qm.registerNode=Vg.registry.register,Qm.registerEdge=$g.registry.register,Qm.registerView=Jp.registry.register,Qm.registerAttr=Ph.register,Qm.registerGrid=Ff.register,Qm.registerFilter=Df.register,Qm.registerNodeTool=kg.register,Qm.registerEdgeTool=Bg.register,Qm.registerBackground=Fh.register,Qm.registerHighlighter=Xf.register,Qm.registerPortLayout=Wd.register,Qm.registerPortLabelLayout=Od.register,Qm.registerMarker=vh.register,Qm.registerRouter=Qp.register,Qm.registerConnector=lf.register,Qm.registerAnchor=dd.register,Qm.registerEdgeAnchor=yf.register,Qm.registerConnectionPoint=Yh.register,Qm.unregisterNode=Vg.registry.unregister,Qm.unregisterEdge=$g.registry.unregister,Qm.unregisterView=Jp.registry.unregister,Qm.unregisterAttr=Ph.unregister,Qm.unregisterGrid=Ff.unregister,Qm.unregisterFilter=Df.unregister,Qm.unregisterNodeTool=kg.unregister,Qm.unregisterEdgeTool=Bg.unregister,Qm.unregisterBackground=Fh.unregister,Qm.unregisterHighlighter=Xf.unregister,Qm.unregisterPortLayout=Wd.unregister,Qm.unregisterPortLabelLayout=Od.unregister,Qm.unregisterMarker=vh.unregister,Qm.unregisterRouter=Qp.unregister,Qm.unregisterConnector=lf.unregister,Qm.unregisterAnchor=dd.unregister,Qm.unregisterEdgeAnchor=yf.unregister,Qm.unregisterConnectionPoint=Yh.unregister,T([au()],Qm.prototype,"dispose",null);
//# sourceMappingURL=graph.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/html.js
const Rm="html",jm={};
/**
 * HTML shape
 */
class Nm extends Vg{
/**
     * HTML.register
     * @param config
     */
static register(e){const{shape:t,html:n,effect:r,inherit:i}=e,a=M(e,["shape","html","effect","inherit"]);if(!t)throw new Error("HTML.register should specify `shape` in config.");jm[t]={html:n,effect:r},Qm.registerNode(t,Object.assign({inherit:i||"html"},a),!0)}}Nm.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Fp.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),Vg.registry.register("html",Nm,!0);
/**
 * HTML node view
 */
class Fm extends um{init(){super.init(),this.cell.on("change:*",this.onCellChangeAny,this)}onCellChangeAny({key:e}){const t=jm[this.cell.shape];if(t){const{effect:n}=t;n&&!n.includes(e)||this.renderHTMLComponent()}}confirmUpdate(e){const t=super.confirmUpdate(e);return this.handleAction(t,Rm,(()=>this.renderHTMLComponent()))}renderHTMLComponent(){const e=this.selectors&&this.selectors.foContent;if(e){h.empty(e);const t=jm[this.cell.shape];if(!t)return;let{html:n}=t;"function"==typeof n&&(n=n(this.cell)),n&&("string"==typeof n?e.innerHTML=n:h.append(e,n))}}dispose(){this.cell.off("change:*",this.onCellChangeAny,this)}}T([au()],Fm.prototype,"dispose",null),Fm.config({bootstrap:[Rm],actions:{html:Rm}}),um.registry.register("html-view",Fm,!0);
//# sourceMappingURL=html.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/image.js
const zm=nm("image",{attrs:{image:{refWidth:"100%",refHeight:"100%"}},propHooks:function(e="xlink:href"){return t=>{const{imageUrl:n,imageWidth:r,imageHeight:i}=t,a=M(t,["imageUrl","imageWidth","imageHeight"]);if(null!=n||null!=r||null!=i){const t=()=>{if(a.attrs){const t=a.attrs.image;null!=n&&(t[e]=n),null!=r&&(t.width=r),null!=i&&(t.height=i),a.attrs.image=t}};a.attrs?(null==a.attrs.image&&(a.attrs.image={}),t()):(a.attrs={image:{}},t())}return a}}()},{selector:"image"}),Hm=em.define({shape:"path",markup:[{tagName:"rect",selector:"bg"},{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}],attrs:{bg:{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"none",pointerEvents:"all"},body:{fill:"none",stroke:"#000",strokeWidth:2}},propHooks(e){const{path:t}=e,n=M(e,["path"]);return t&&l.setByPath(n,"attrs/body/refD",t),n}});
//# sourceMappingURL=image.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/path.js
//# sourceMappingURL=path.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/poly.js
class Um extends em{get points(){return this.getPoints()}set points(e){this.setPoints(e)}getPoints(){return this.getAttrByPath("body/refPoints")}setPoints(e,t){return null==e?this.removePoints():this.setAttrByPath("body/refPoints",rm(e),t),this}removePoints(){return this.removeAttrByPath("body/refPoints"),this}}Um.config({propHooks(e){const{points:t}=e,n=M(e,["points"]);if(t){const e=rm(t);e&&l.setByPath(n,"attrs/body/refPoints",e)}return n}});
//# sourceMappingURL=poly.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/polygon.js
const Gm=nm("polygon",{},{parent:Um}),Vm=nm("polyline",{},{parent:Um}),Wm=nm("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}});
//# sourceMappingURL=polygon.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/polyline.js
const qm={shape:"text-block",markup:[{tagName:"rect",selector:"body"},(Ym=Pn,Ym?{tagName:"foreignObject",selector:"foreignObject",children:[{tagName:"div",ns:h.ns.xhtml,selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attrs:{textAnchor:"middle"}})],attrs:{body:Object.assign(Object.assign({},Zg),{refWidth:"100%",refHeight:"100%"}),foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}},propHooks(e){const{text:t}=e,n=M(e,["text"]);return t&&l.setByPath(n,"attrs/label/text",t),n},attrHooks:{text:{set(e,{cell:t,view:n,refBBox:r,elem:i,attrs:a}){if(!(i instanceof HTMLElement)){
// No foreign object
const o=a.style||{},c={text:e,width:-5,height:"100%"},l=Object.assign({textVerticalAnchor:"middle"},o),u=Dh.textWrap;return s.call(u.set,this,c,{cell:t,view:n,elem:i,refBBox:r,attrs:l}),{fill:o.color||null}}i.textContent=e},position(e,{refBBox:t,elem:n}){if(n instanceof SVGElement)return t.getCenter()}}}};
//# sourceMappingURL=rect.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/text-block.js
var Ym;const Km=em.define(qm),$m=`${zf.prefixCls}.clipboard.cells`;
//# sourceMappingURL=text-block.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/shape/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/events.js
//# sourceMappingURL=events.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/graph/index.js
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/clipboard/storage.js
//# sourceMappingURL=storage.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/clipboard/clipboard.js
class Jm{constructor(){this.cells=[]}copy(e,t,n={}){this.options=Object.assign({},n);const i=(Xg.isModel(t)?t:t.model).cloneSubGraph(e,n);
// sort asc by cell type
this.cells=r.sortBy(Object.keys(i).map((e=>i[e])),(e=>e.isEdge()?2:1)),this.serialize(n)}cut(e,t,n={}){this.copy(e,t,n);(Qm.isGraph(t)?t.model:t).batchUpdate("cut",(()=>{e.forEach((e=>e.remove()))}))}paste(e,t={}){const n=Object.assign(Object.assign({},this.options),t),{offset:r,edgeProps:i,nodeProps:a}=n;let o=20,s=20;r&&(o="number"==typeof r?r:r.dx,s="number"==typeof r?r:r.dy),this.deserialize(n);const c=this.cells;c.forEach((e=>{e.model=null,e.removeProp("zIndex"),(o||s)&&e.translate(o,s),a&&e.isNode()&&e.prop(a),i&&e.isEdge()&&e.prop(i)}));const l=Qm.isGraph(e)?e.model:e;return l.batchUpdate("paste",(()=>{l.addCells(this.cells)})),this.copy(c,e,t),c}serialize(e){!1!==e.useLocalStorage&&function(e){if(window.localStorage){const t=e.map((e=>e.toJSON()));localStorage.setItem($m,JSON.stringify(t))}}(this.cells)}deserialize(e){if(e.useLocalStorage){const e=function(){if(window.localStorage){const e=localStorage.getItem($m),t=e?JSON.parse(e):[];if(t)return Xg.fromJSON(t)}}();e&&(this.cells=e)}}isEmpty(e={}){return e.useLocalStorage&&
// With useLocalStorage turned on, no real cells can be obtained without deserialize first
// https://github.com/antvis/X6/issues/2573
this.deserialize(e),this.cells.length<=0}clean(){this.options={},this.cells=[],window.localStorage&&localStorage.removeItem($m)}}
//# sourceMappingURL=clipboard.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/clipboard/api.js
Qm.prototype.isClipboardEnabled=function(){const e=this.getPlugin("clipboard");return!!e&&e.isEnabled()},Qm.prototype.enableClipboard=function(){const e=this.getPlugin("clipboard");return e&&e.enable(),this},Qm.prototype.disableClipboard=function(){const e=this.getPlugin("clipboard");return e&&e.disable(),this},Qm.prototype.toggleClipboard=function(e){const t=this.getPlugin("clipboard");return t&&t.toggleEnabled(e),this},Qm.prototype.isClipboardEmpty=function(e){const t=this.getPlugin("clipboard");return!t||t.isEmpty(e)},Qm.prototype.getCellsInClipboard=function(){const e=this.getPlugin("clipboard");return e?e.getCellsInClipboard():[]},Qm.prototype.cleanClipboard=function(){const e=this.getPlugin("clipboard");return e&&e.clean(),this},Qm.prototype.copy=function(e,t){const n=this.getPlugin("clipboard");return n&&n.copy(e,t),this},Qm.prototype.cut=function(e,t){const n=this.getPlugin("clipboard");return n&&n.cut(e,t),this},Qm.prototype.paste=function(e,t){const n=this.getPlugin("clipboard");return n?n.paste(e,t):[]};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/clipboard/index.js
class Xm extends ou{get disabled(){return!0!==this.options.enabled}get cells(){return this.clipboardImpl.cells}constructor(e={}){super(),this.name="clipboard",this.options=Object.assign({enabled:!0},e)}init(e){this.graph=e,this.clipboardImpl=new Jm,this.clipboardImpl.deserialize(this.options)}
// #region api
isEnabled(){return!this.disabled}enable(){this.disabled&&(this.options.enabled=!0)}disable(){this.disabled||(this.options.enabled=!1)}toggleEnabled(e){
// the enabled state is not specified.
return void 0===e&&(e=!this.isEnabled()),e?this.enable():this.disable(),this}isEmpty(e={}){return this.clipboardImpl.isEmpty(e)}getCellsInClipboard(){return this.cells}clean(e){return this.disabled&&!e||(this.clipboardImpl.clean(),this.notify("clipboard:changed",{cells:[]})),this}copy(e,t={}){return this.disabled||(this.clipboardImpl.copy(e,this.graph,Object.assign(Object.assign({},this.commonOptions),t)),this.notify("clipboard:changed",{cells:e})),this}cut(e,t={}){return this.disabled||(this.clipboardImpl.cut(e,this.graph,Object.assign(Object.assign({},this.commonOptions),t)),this.notify("clipboard:changed",{cells:e})),this}paste(e={},t=this.graph){return this.disabled?[]:this.clipboardImpl.paste(t,Object.assign(Object.assign({},this.commonOptions),e))}
// #endregion
get commonOptions(){const e=this.options,{enabled:t}=e;return M(e,["enabled"])}notify(e,t){this.trigger(e,t),this.graph.trigger(e,t)}dispose(){this.clean(!0),this.off()}}T([au()],Xm.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// EXTERNAL MODULE: ./node_modules/dom-align/dist-web/index.js
var Zm=n("91a5");
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/dnd/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */const ev={
// animation: false,
getDragNode:e=>e.clone(),getDropNode:e=>e.clone()};
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/dnd/index.js
class tv extends Gp{get targetScroller(){return this.options.target.getPlugin("scroller")}get targetGraph(){return this.options.target}get targetModel(){return this.targetGraph.model}get snapline(){return this.options.target.getPlugin("snapline")}constructor(e){super(),this.name="dnd",this.options=Object.assign(Object.assign({},ev),e),this.init()}init(){a.ensure(this.name,".x6-widget-dnd {\n  position: absolute;\n  top: -10000px;\n  left: -10000px;\n  z-index: 999999;\n  display: none;\n  cursor: move;\n  opacity: 0.7;\n}\n.x6-widget-dnd.dragging {\n  display: inline-block;\n}\n.x6-widget-dnd.dragging * {\n  pointer-events: none !important;\n}\n.x6-widget-dnd .x6-graph {\n  background: transparent;\n  box-shadow: none;\n}\n"),this.container=document.createElement("div"),h.addClass(this.container,this.prefixClassName("widget-dnd")),this.draggingGraph=new Qm(Object.assign(Object.assign({},this.options.delegateGraphOptions),{container:document.createElement("div"),width:1,height:1,async:!1})),h.append(this.container,this.draggingGraph.container)}start(e,t){var n;const r=t;r.preventDefault(),this.targetModel.startBatch("dnd"),h.addClass(this.container,"dragging"),h.appendTo(this.container,this.options.draggingContainer||document.body),this.sourceNode=e,this.prepareDragging(e,r.clientX,r.clientY);const i=this.updateNodePosition(r.clientX,r.clientY);this.isSnaplineEnabled()&&(this.snapline.captureCursorOffset({e:r,node:e,cell:e,view:this.draggingView,x:i.x,y:i.y}),null===(n=this.draggingNode)||void 0===n||n.on("change:position",this.snap,this)),this.delegateDocumentEvents(cm,r.data)}isSnaplineEnabled(){var e;return null===(e=this.snapline)||void 0===e?void 0:e.isEnabled()}prepareDragging(e,t,n){const r=this.draggingGraph,i=r.model,a=this.options.getDragNode(e,{sourceNode:e,draggingGraph:r,targetGraph:this.targetGraph});a.position(0,0);let o=5;if(this.isSnaplineEnabled()&&(o+=this.snapline.options.tolerance||0),this.isSnaplineEnabled()||this.options.scaled){const e=this.targetGraph.transform.getScale();r.scale(e.sx,e.sy),o*=Math.max(e.sx,e.sy)}else r.scale(1,1);this.clearDragging(),
// if (this.options.animation) {
//   this.$container.stop(true, true)
// }
i.resetCells([a]);const s=r.findViewByCell(a);s.undelegateEvents(),s.cell.off("changed"),r.fitToContent({padding:o,allowNewOrigin:"any",useCellGeometry:!1});const c=s.getBBox();this.geometryBBox=s.getBBox({useCellGeometry:!0}),this.delta=this.geometryBBox.getTopLeft().diff(c.getTopLeft()),this.draggingNode=a,this.draggingView=s,this.draggingBBox=a.getBBox(),this.padding=o,this.updateGraphPosition(t,n)}updateGraphPosition(e,t){const n=this.delta,r=this.geometryBBox,i=this.padding||5,a={left:e-n.x-r.width/2-i,top:t-n.y-r.height/2-i};this.draggingGraph&&Object(Zm.b)(this.container,{clientX:a.left,clientY:a.top},{points:["tl"]})}updateNodePosition(e,t){const n=this.targetGraph.clientToLocal(e,t),r=this.draggingBBox;return r&&(n.x-=r.width/2,n.y-=r.height/2,this.draggingNode.position(n.x,n.y)),n}snap({cell:e,current:t,options:n}){const r=e;if(n.snapped){const e=this.draggingBBox;r.position(e.x+n.tx,e.y+n.ty,{silent:!0}),this.draggingView.translate(),r.position(t.x,t.y,{silent:!0}),this.snapOffset={x:n.tx,y:n.ty}}else this.snapOffset=null}onMouseMove(e){this.onDragging(e)}onMouseUp(e){this.onDragEnd(e)}onDragging(e){const t=this.draggingView;if(t){e.preventDefault();const n=this.normalizeEvent(e),r=n.clientX,i=n.clientY;this.updateGraphPosition(r,i);const a=this.updateNodePosition(r,i),o=this.targetGraph.options.embedding.enabled,s=(o||this.isSnaplineEnabled())&&this.isInsideValidArea({x:r,y:i});if(o){t.setEventData(n,{graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView});const e=t.getEventData(n);s?t.processEmbedding(n,e):t.clearEmbedding(e),this.candidateEmbedView=e.candidateEmbedView}
// update snapline
this.isSnaplineEnabled()&&(s?this.snapline.snapOnMoving({e:n,view:t,x:a.x,y:a.y}):this.snapline.hide())}}onDragEnd(e){const t=this.draggingNode;if(t){const n=this.normalizeEvent(e),r=this.draggingView,i=this.draggingBBox,a=this.snapOffset;let o=i.x,c=i.y;a&&(o+=a.x,c+=a.y),t.position(o,c,{silent:!0});const l=this.drop(t,{x:n.clientX,y:n.clientY}),u=e=>{e?(this.onDropped(t),this.targetGraph.options.embedding.enabled&&r&&(r.setEventData(n,{cell:e,graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView}),r.finalizeEmbedding(n,r.getEventData(n)))):this.onDropInvalid(),this.candidateEmbedView=null,this.targetModel.stopBatch("dnd")};s.isAsync(l)?(
// stop dragging
this.undelegateDocumentEvents(),l.then(u)):u(l)}}clearDragging(){this.draggingNode&&(this.sourceNode=null,this.draggingNode.remove(),this.draggingNode=null,this.draggingView=null,this.delta=null,this.padding=null,this.snapOffset=null,this.undelegateDocumentEvents())}onDropped(e){this.draggingNode===e&&(this.clearDragging(),h.removeClass(this.container,"dragging"),h.remove(this.container))}onDropInvalid(){const e=this.draggingNode;e&&this.onDropped(e)}isInsideValidArea(e){let t,n=null;const r=this.targetGraph,i=this.targetScroller;this.options.dndContainer&&(n=this.getDropArea(this.options.dndContainer));const a=null==n?void 0:n.containsPoint(e);if(i)if(i.options.autoResize)t=this.getDropArea(i.container);else{const e=this.getDropArea(i.container);t=this.getDropArea(r.container).intersectsWithRect(e)}else t=this.getDropArea(r.container);return!a&&t&&t.containsPoint(e)}getDropArea(e){const t=h.offset(e),n=document.body.scrollTop||document.documentElement.scrollTop,r=document.body.scrollLeft||document.documentElement.scrollLeft;return mr.create({x:t.left+parseInt(h.css(e,"border-left-width"),10)-r,y:t.top+parseInt(h.css(e,"border-top-width"),10)-n,width:e.clientWidth,height:e.clientHeight})}drop(e,t){if(this.isInsideValidArea(t)){const n=this.targetGraph,r=n.model,i=n.clientToLocal(t),a=this.sourceNode,o=this.options.getDropNode(e,{sourceNode:a,draggingNode:e,targetGraph:this.targetGraph,draggingGraph:this.draggingGraph}),c=o.getBBox();i.x+=c.x-c.width/2,i.y+=c.y-c.height/2;const l=this.snapOffset?1:n.getGridSize();o.position(hr(i.x,l),hr(i.y,l)),o.removeZIndex();const u=this.options.validateNode,h=!u||u(o,{sourceNode:a,draggingNode:e,droppingNode:o,targetGraph:n,draggingGraph:this.draggingGraph});return"boolean"==typeof h?h?(r.addCell(o,{stencil:this.cid}),o):null:s.toDeferredBoolean(h).then((e=>e?(r.addCell(o,{stencil:this.cid}),o):null))}return null}onRemove(){this.draggingGraph&&(this.draggingGraph.view.remove(),this.draggingGraph.dispose())}dispose(){this.remove(),a.clean(this.name)}}T([au()],tv.prototype,"dispose",null),
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/export/api.js
Qm.prototype.toSVG=function(e,t){const n=this.getPlugin("export");n&&n.toSVG(e,t)},Qm.prototype.toSVGAsync=function(e){return O(this,void 0,void 0,(function*(){return new Promise((t=>{this.toSVG(t,e)}))}))},Qm.prototype.toPNG=function(e,t){const n=this.getPlugin("export");n&&n.toPNG(e,t)},Qm.prototype.toPNGAsync=function(e){return O(this,void 0,void 0,(function*(){return new Promise((t=>{this.toPNG(t,e)}))}))},Qm.prototype.toJPEG=function(e,t){const n=this.getPlugin("export");n&&n.toJPEG(e,t)},Qm.prototype.toJPEGAsync=function(e){return O(this,void 0,void 0,(function*(){return new Promise((t=>{this.toJPEG(t,e)}))}))},Qm.prototype.exportPNG=function(e,t){const n=this.getPlugin("export");n&&n.exportPNG(e,t)},Qm.prototype.exportJPEG=function(e,t){const n=this.getPlugin("export");n&&n.exportJPEG(e,t)},Qm.prototype.exportSVG=function(e,t){const n=this.getPlugin("export");n&&n.exportSVG(e,t)};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/export/index.js
class nv extends ou{constructor(){super(...arguments),this.name="export"}get view(){return this.graph.view}init(e){this.graph=e}exportPNG(e="chart",t={}){this.toPNG((t=>{o.downloadDataUri(t,e)}),t)}exportJPEG(e="chart",t={}){this.toJPEG((t=>{o.downloadDataUri(t,e)}),t)}exportSVG(e="chart",t={}){this.toSVG((t=>{o.downloadDataUri(o.svgToDataUrl(t),e)}),t)}toSVG(e,t={}){this.notify("before:export",t),
// Keep pace with the doc: default values should apply only when
// the option keys are not present on the target object.
// If a key exists (even with `undefined`), we respect that and do not override.
Object.hasOwn(t,"copyStyles")||(t.copyStyles=!0),Object.hasOwn(t,"serializeImages")||(t.serializeImages=!0);const n=this.view.svg,r=Ss.create(n).clone();let i=r.node;const a=r.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`),c=t.viewBox||this.graph.graphToLocal(this.graph.getContentBBox()),l=t.preserveDimensions;if(l){const e="boolean"==typeof l?c:l;r.attr({width:e.width,height:e.height})}
// Copies style declarations from external stylesheets into inline `style` attributes by computing style differences.
// Implementation steps:
// 1) Compute default UA styles in an isolated document.
// 2) Compute styles in the current document for each original SVG node.
// 3) Build the diff (properties that differ from defaults).
// 4) Apply the diff to cloned SVG nodes via inline `style`.
if(r.removeAttribute("style").attr("viewBox",[c.x,c.y,c.width,c.height].join(" ")),a.removeAttribute("transform"),t.copyStyles){const e=n.ownerDocument,t=Array.from(n.querySelectorAll("*")),r=Array.from(i.querySelectorAll("*")),a=e.implementation.createHTMLDocument("x6-export-defaults"),o=a.importNode(n,!0);a.body.appendChild(o);const s=Array.from(o.querySelectorAll("*")),c={};s.forEach(((e,t)=>{const n=window.getComputedStyle(e,null),r={};
// Use the style declaration list for reliable property names.
for(let e=0;e<n.length;e+=1){const t=n[e],i=n.getPropertyValue(t);r[t]=i}c[t]=r}));const l={};t.forEach(((e,t)=>{const n=window.getComputedStyle(e,null),r=c[t]||{},i={};for(let e=0;e<n.length;e+=1){const t=n[e],a=n.getPropertyValue(t);a!==r[t]&&(i[t]=a)}l[t]=i})),r.forEach(((e,t)=>{h.css(e,l[t])}))}const u=t.stylesheet;if("string"==typeof u){const e=n.ownerDocument.implementation.createDocument(null,"xml",null).createCDATASection(u);r.prepend(Ss.create("style",{type:"text/css"},[e]))}const f=()=>{const n=t.beforeSerialize;if("function"==typeof n){const e=s.call(n,this.graph,i);e instanceof SVGSVGElement&&(i=e)}const r=(new XMLSerializer).serializeToString(i).replace(/&nbsp;/g," ");this.notify("after:export",t),e(r)};if(t.serializeImages){const e=r.find("image").map((e=>new Promise((t=>{const n=e.attr("xlink:href")||e.attr("href");o.imageToDataUri(n,((n,r)=>{!n&&r&&(e.attr("xlink:href",r),e.attr("href",r)),t()}))}))));Promise.all(e).then(f)}else f()}toDataURL(e,t){let n=t.viewBox||this.graph.getContentBBox();const r=i.normalizeSides(t.padding);t.width&&t.height&&(r.left+r.right>=t.width&&(r.left=r.right=0),r.top+r.bottom>=t.height&&(r.top=r.bottom=0));const a=new mr(-r.left,-r.top,r.left+r.right,r.top+r.bottom);if(t.width&&t.height){const e=n.width+r.left+r.right,i=n.height+r.top+r.bottom;a.scale(e/t.width,i/t.height)}n=mr.create(n).moveAndExpand(a);const o="number"==typeof t.width&&"number"==typeof t.height?{width:t.width,height:t.height}:n;let s=t.ratio?t.ratio:1;Number.isFinite(s)&&0!==s||(s=1);const c={width:Math.max(Math.round(o.width*s),1),height:Math.max(Math.round(o.height*s),1)};{const e=document.createElement("canvas"),t=e.getContext("2d");e.width=c.width,e.height=c.height;const n=c.width-1,r=c.height-1;t.fillStyle="rgb(1,1,1)",t.fillRect(n,r,1,1);const i=t.getImageData(n,r,1,1).data;if(1!==i[0]||1!==i[1]||1!==i[2])throw new Error("size exceeded")}const l=new Image;l.onload=()=>{const n=document.createElement("canvas");n.width=c.width,n.height=c.height;const r=n.getContext("2d");r.fillStyle=t.backgroundColor||"white",r.fillRect(0,0,c.width,c.height);try{r.drawImage(l,0,0,c.width,c.height);const i=n.toDataURL(t.type,t.quality);e(i)}catch(e){
// pass
}},this.toSVG((e=>{l.src=`data:image/svg+xml,${encodeURIComponent(e)}`}),Object.assign(Object.assign({},t),{viewBox:n,serializeImages:!0,preserveDimensions:Object.assign({},c)}))}toPNG(e,t={}){this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/png"}))}toJPEG(e,t={}){this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/jpeg"}))}notify(e,t){this.trigger(e,t),this.graph.trigger(e,t)}dispose(){this.off()}}
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/history/util.js
function rv(e){return"cell:added"===e}function iv(e){return"cell:removed"===e}function av(e){return null!=e&&e.startsWith("cell:change:")}function ov(e){const t=[];for(let n=0,r=e.length;n<r;n+=1){const r=e[n];let i=null;if(rv(r.event)){const t=r.data.id;for(let r=0;r<n;r+=1)if(e[r].data.id===t){i=r;break}}null!==i?t.splice(i,0,r):t.push(r)}return t}
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/history/validator.js
/**
 * Runs a set of callbacks to determine if a command is valid. This is
 * useful for checking if a certain action in your application does
 * lead to an invalid state of the graph.
 */T([au()],nv.prototype,"dispose",null);class sv extends ou{constructor(e){super(),this.map={},this.command=e.history,this.cancelInvalid=!1!==e.cancelInvalid,this.command.on("add",this.onCommandAdded,this)}onCommandAdded({cmds:e}){return Array.isArray(e)?e.every((e=>this.isValidCommand(e))):this.isValidCommand(e)}isValidCommand(e){if(e.options&&!1===e.options.validation)return!0;const t=e.event&&this.map[e.event]||[];let n=null;return t.forEach((t=>{let r=0;const i=a=>{const o=t[r];r+=1;try{o?o(a,e,i):n=a}catch(a){i(a)}};i(n)})),!n||(this.cancelInvalid&&this.command.cancel(),this.emit("invalid",{err:n}),!1)}validate(e,...t){const n=Array.isArray(e)?e:e.split(/\s+/);return t.forEach((e=>{if("function"!=typeof e)throw new Error(`${n.join(" ")} requires callback functions.`)})),n.forEach((e=>{null==this.map[e]&&(this.map[e]=[]),this.map[e].push(t)})),this}dispose(){this.command.off("add",this.onCommandAdded,this)}}T([au()],sv.prototype,"dispose",null),
//# sourceMappingURL=validator.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/history/api.js
Qm.prototype.isHistoryEnabled=function(){const e=this.getPlugin("history");return!!e&&e.isEnabled()},Qm.prototype.enableHistory=function(){const e=this.getPlugin("history");return e&&e.enable(),this},Qm.prototype.disableHistory=function(){const e=this.getPlugin("history");return e&&e.disable(),this},Qm.prototype.toggleHistory=function(e){const t=this.getPlugin("history");return t&&t.toggleEnabled(e),this},Qm.prototype.undo=function(e){const t=this.getPlugin("history");return t&&t.undo(e),this},Qm.prototype.redo=function(e){const t=this.getPlugin("history");return t&&t.redo(e),this},Qm.prototype.undoAndCancel=function(e){const t=this.getPlugin("history");return t&&t.cancel(e),this},Qm.prototype.canUndo=function(){const e=this.getPlugin("history");return!!e&&e.canUndo()},Qm.prototype.canRedo=function(){const e=this.getPlugin("history");return!!e&&e.canRedo()},Qm.prototype.cleanHistory=function(e){const t=this.getPlugin("history");return t&&t.clean(e),this},Qm.prototype.getHistoryStackSize=function(){return this.getPlugin("history").getSize()},Qm.prototype.getUndoStackSize=function(){return this.getPlugin("history").getUndoSize()},Qm.prototype.getRedoStackSize=function(){return this.getPlugin("history").getRedoSize()},Qm.prototype.getUndoRemainSize=function(){return this.getPlugin("history").getUndoRemainSize()};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/history/index.js
class cv extends ou{constructor(e={}){super(),this.name="history",this.batchCommands=null,this.batchLevel=0,this.lastBatchIndex=-1,this.freezed=!1,this.stackSize=0,// 0: not limit
this.handlers=[];const{stackSize:t=0}=e;this.stackSize=t,this.options=function(e){const t=["cell:added","cell:removed","cell:change:*"],n=["batch:start","batch:stop"],r=e.eventNames?e.eventNames.filter((e=>!(av(e)||t.includes(e)||n.includes(e)))):t;return Object.assign(Object.assign({enabled:!0},e),{eventNames:r,applyOptionsList:e.applyOptionsList||["propertyPath"],revertOptionsList:e.revertOptionsList||["propertyPath"]})}(e),this.validator=new sv({history:this,cancelInvalid:this.options.cancelInvalid})}init(e){this.graph=e,this.model=this.graph.model,this.clean(),this.startListening()}
// #region api
isEnabled(){return!this.disabled}enable(){this.disabled&&(this.options.enabled=!0)}disable(){this.disabled||(this.options.enabled=!1)}toggleEnabled(e){return null!=e?e!==this.isEnabled()&&(e?this.enable():this.disable()):this.isEnabled()?this.disable():this.enable(),this}undo(e={}){if(!this.disabled){const t=this.undoStack.pop();t&&(this.revertCommand(t,e),this.redoStack.push(t),this.notify("undo",t,e))}return this}redo(e={}){if(!this.disabled){const t=this.redoStack.pop();t&&(this.applyCommand(t,e),this.undoStackPush(t),this.notify("redo",t,e))}return this}
/**
     * Same as `undo()` but does not store the undo-ed command to the
     * `redoStack`. Canceled command therefore cannot be redo-ed.
     */cancel(e={}){if(!this.disabled){const t=this.undoStack.pop();t&&(this.revertCommand(t,e),this.redoStack=[],this.notify("cancel",t,e))}return this}getSize(){return this.stackSize}getUndoRemainSize(){const e=this.undoStack.length;return this.stackSize-e}getUndoSize(){return this.undoStack.length}getRedoSize(){return this.redoStack.length}canUndo(){return!this.disabled&&this.undoStack.length>0}canRedo(){return!this.disabled&&this.redoStack.length>0}clean(e={}){return this.undoStack=[],this.redoStack=[],this.notify("clean",null,e),this}
// #endregion
get disabled(){return!0!==this.options.enabled}validate(e,...t){return this.validator.validate(e,...t),this}startListening(){this.model.on("batch:start",this.initBatchCommand,this),this.model.on("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&this.options.eventNames.forEach(((e,t)=>{this.handlers[t]=this.addCommand.bind(this,e),this.model.on(e,this.handlers[t])})),this.validator.on("invalid",(e=>this.trigger("invalid",e)))}stopListening(){this.model.off("batch:start",this.initBatchCommand,this),this.model.off("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&(this.options.eventNames.forEach(((e,t)=>{this.model.off(e,this.handlers[t])})),this.handlers.length=0),this.validator.off("invalid")}createCommand(e){return{batch:!!e&&e.batch,data:{}}}revertCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?ov(e):[e];for(let e=n.length-1;e>=0;e-=1){const r=n[e],i=Object.assign(Object.assign({},t),l.pick(r.options,this.options.revertOptionsList||[]));this.executeCommand(r,!0,i)}this.freezed=!1}applyCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?ov(e):[e];for(let e=0;e<n.length;e+=1){const r=n[e],i=Object.assign(Object.assign({},t),l.pick(r.options,this.options.applyOptionsList||[]));this.executeCommand(r,!1,i)}this.freezed=!1}executeCommand(e,t,n){const r=this.model,i=r.getCell(e.data.id),a=e.event;
// const cell = cmd.modelChange ? model : model.getCell(cmd.data.id!)
if(rv(a)&&t||iv(a)&&!t)i&&i.remove(n);else if(rv(a)&&!t||iv(a)&&t){const t=e.data;t.node?r.addNode(t.props,n):t.edge&&r.addEdge(t.props,n)}else if(av(a)){const r=e.data,a=r.key;if(a&&i){const e=t?r.prev[a]:r.next[a];if("attrs"===r.key){this.ensureUndefinedAttrs(e,t?r.next[a]:r.prev[a])&&(
// recognize a `dirty` flag and re-render itself in order to remove
// the attribute from SVGElement.
n.dirty=!0)}i.prop(a,e,n)}}else{const r=this.options.executeCommand;r&&s.call(r,this,e,t,n)}}addCommand(e,t){if(this.freezed||this.disabled)return;const n=t,r=n.options||{};if(r.dryrun)return;if(rv(e)&&this.options.ignoreAdd||iv(e)&&this.options.ignoreRemove||av(e)&&this.options.ignoreChange)return;
// before
// ------
const i=this.options.beforeAddCommand;if(null!=i&&!1===s.call(i,this,e,t))return;"cell:change:*"===e&&(
// eslint-disable-next-line
e=`cell:change:${n.key}`);const a=n.cell,o=Xg.isModel(a);let c;if(this.batchCommands){
// In most cases we are working with same object, doing
// same action etc. translate an object piece by piece.
c=this.batchCommands[Math.max(this.lastBatchIndex,0)];
// Check if we are start working with new object or performing different
// action with it. Note, that command is uninitialized when lastCmdIndex
// equals -1. In that case we are done, command we were looking for is
// already set
const t=o&&!c.modelChange||c.data.id!==a.id,n=c.event!==e;if(this.lastBatchIndex>=0&&(t||n)){
// Trying to find command first, which was performing same
// action with the object as we are doing now with cell.
const t=this.batchCommands.findIndex((t=>(o&&t.modelChange||t.data.id===a.id)&&t.event===e));t<0||rv(e)||iv(e)?c=this.createCommand({batch:!0}):(c=this.batchCommands[t],this.batchCommands.splice(t,1)),this.batchCommands.push(c),this.lastBatchIndex=this.batchCommands.length-1}}else c=this.createCommand({batch:!1});
// add & remove
// ------------
if(rv(e)||iv(e)){const t=c.data;return c.event=e,c.options=r,t.id=a.id,t.props=l.cloneDeep(a.toJSON()),a.isEdge()?t.edge=!0:a.isNode()&&(t.node=!0),this.push(c,r)}
// change:*
// --------
if(av(e)){const n=t.key,i=c.data;return c.batch&&c.event||(
// Do this only once. Set previous data and action (also
// serves as a flag so that we don't repeat this branche).
c.event=e,c.options=r,i.key=n,null==i.prev&&(i.prev={}),i.prev[n]=l.cloneDeep(a.previous(n)),o?c.modelChange=!0:i.id=a.id),null==i.next&&(i.next={}),i.next[n]=l.cloneDeep(a.prop(n)),this.push(c,r)}
// others
// ------
const u=this.options.afterAddCommand;u&&s.call(u,this,e,t,c),this.push(c,r)}
/**
     * Gather multiple changes into a single command. These commands could
     * be reverted with single `undo()` call. From the moment the function
     * is called every change made on model is not stored into the undoStack.
     * Changes are temporarily kept until `storeBatchCommand()` is called.
     */
// eslint-disable-next-line
initBatchCommand(e){this.freezed||(this.batchCommands?this.batchLevel+=1:(this.batchCommands=[this.createCommand({batch:!0})],this.batchLevel=0,this.lastBatchIndex=-1))}
/**
     * Store changes temporarily kept in the undoStack. You have to call this
     * function as many times as `initBatchCommand()` been called.
     */storeBatchCommand(e){if(!this.freezed)if(this.batchCommands&&this.batchLevel<=0){const t=this.filterBatchCommand(this.batchCommands);t.length>0&&(this.redoStack=[],this.undoStackPush(t),this.consolidateCommands(),this.notify("add",t,e)),this.batchCommands=null,this.lastBatchIndex=-1,this.batchLevel=0}else this.batchCommands&&this.batchLevel>0&&(this.batchLevel-=1)}filterBatchCommand(e){let t=e.slice();const n=[];for(;t.length>0;){const e=t.shift(),r=e.event,i=e.data.id;if(null!=r&&(null!=i||e.modelChange)){if(rv(r)){const e=t.findIndex((e=>iv(e.event)&&e.data.id===i));if(e>=0){t=t.filter(((t,n)=>e<n||t.data.id!==i));continue}}else if(iv(r)){const e=t.findIndex((e=>rv(e.event)&&e.data.id===i));if(e>=0){t.splice(e,1);continue}}else if(av(r)){const t=e.data;if(l.isEqual(t.prev,t.next))continue}n.push(e)}}return n}notify(e,t,n){const r=null==t?null:Array.isArray(t)?t:[t];this.emit(e,{cmds:r,options:n}),this.graph.trigger(`history:${e}`,{cmds:r,options:n}),this.emit("change",{cmds:r,options:n}),this.graph.trigger("history:change",{cmds:r,options:n})}push(e,t){this.redoStack=[],e.batch?(this.lastBatchIndex=Math.max(this.lastBatchIndex,0),this.emit("batch",{cmd:e,options:t})):(this.undoStackPush(e),this.consolidateCommands(),this.notify("add",e,t))}
/**
     * Conditionally combine multiple undo items into one.
     *
     * Currently this is only used combine a `cell:changed:position` event
     * followed by multiple `cell:change:parent` and `cell:change:children`
     * events, such that a "move + embed" action can be undone in one step.
     *
     * See https://github.com/antvis/X6/issues/2421
     *
     * This is an ugly WORKAROUND. It does not solve deficiencies in the batch
     * system itself.
     */consolidateCommands(){var e;const t=this.undoStack[this.undoStack.length-1],n=this.undoStack[this.undoStack.length-2];
// We are looking for at least one cell:change:parent
// and one cell:change:children
if(!Array.isArray(t))return;const r=new Set(t.map((e=>e.event)));if(2!==r.size||!r.has("cell:change:parent")||!r.has("cell:change:children"))return;
// We are looking for events from user interactions
if(!t.every((e=>{var t;return e.batch&&(null===(t=e.options)||void 0===t?void 0:t.ui)})))return;
// We are looking for a command group with exactly one event, whose event
// type is cell:change:position, and is from user interactions
if(!Array.isArray(n)||1!==n.length)return;const i=n[0];"cell:change:position"===i.event&&(null===(e=i.options)||void 0===e?void 0:e.ui)&&(
// Actually consolidating the commands we get
n.push(...t),this.undoStack.pop())}undoStackPush(e){0!==this.stackSize?(this.undoStack.length>=this.stackSize&&this.undoStack.shift(),this.undoStack.push(e)):this.undoStack.push(e)}ensureUndefinedAttrs(e,t){let n=!1;return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).forEach((r=>{
// eslint-disable-next-line no-prototype-builtins
void 0===e[r]&&void 0!==t[r]?(e[r]=void 0,n=!0):"object"==typeof e[r]&&"object"==typeof t[r]&&(n=this.ensureUndefinedAttrs(e[r],t[r]))})),n}dispose(){this.validator.dispose(),this.clean(),this.stopListening(),this.off()}}T([au()],cv.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js
var lv=n("8a60"),uv=n.n(lv);
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/keyboard/util.js
/**
 * Format the event key.
 * @param key
 * @param formatFn
 * @returns
 */
function hv(e,t,n){const r=e.toLocaleLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command").replace("arrowup","up").replace("arrowright","right").replace("arrowdown","down").replace("arrowleft","left");return t?s.call(t,n,r):r}
/**
 * Whether the event is an input event.
 * @param e
 * @returns
 */function fv(e){var t;const n=e.target,r=null===(t=null==n?void 0:n.tagName)||void 0===t?void 0:t.toLowerCase();let i=["input","textarea"].includes(r);return"true"===h.attr(n,"contenteditable")&&(i=!0),i}
/**
 * Whether the event is a graph event.
 * @param e
 * @param t
 * @param container
 * @returns
 */class dv extends iu{get graph(){return this.options.graph}constructor(e){super(),this.options=e;const t=this.graph.getPlugin("scroller");this.container=t?t.container:this.graph.container,e.global?this.target=document:(this.target=this.container,this.disabled||
// ensure the container focusable
this.target.setAttribute("tabindex","-1"),
// change to mouseup event，prevent page stalling caused by focus
this.graph.on("cell:mouseup",this.focus.bind(this),this),this.graph.on("blank:mouseup",this.focus.bind(this),this)),this.mousetrap=
//# sourceMappingURL=util.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/keyboard/keyboard.js
/**
 * Create a Mousetrap instance for the keyboard.
 */
function(e){const t=new uv.a(e.target),n=t.stopCallback;return t.stopCallback=(r,i,a)=>!e.isEnabledForEvent(r)||!!n&&n.call(t,r,i,a),t}(this)}get disabled(){return!0!==this.options.enabled}enable(){this.disabled&&(this.options.enabled=!0,this.target instanceof HTMLElement&&this.target.setAttribute("tabindex","-1"))}disable(){this.disabled||(this.options.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}on(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)}off(e,t){this.mousetrap.unbind(this.getKeys(e),t)}clear(){this.mousetrap.reset()}trigger(e,t){this.mousetrap.trigger(hv(e,this.options.format,this.graph),t)}focus(e){if(fv(e.e))return;this.target.focus({preventScroll:!0})}getKeys(e){return(Array.isArray(e)?e:[e]).map((e=>hv(e,this.options.format,this.graph)))}isEnabledForEvent(e){const t=!this.disabled&&function(e,t,n){const r=e.target,i=e.currentTarget;return!!r&&(r===t||i===t||r===document.body||h.contains(n,r))}(e,this.target,this.container),n=fv(e);if(t){if(n&&("Backspace"===e.key||"Delete"===e.key))return!1;if(this.options.guard)return s.call(this.options.guard,this.graph,e)}return t}dispose(){this.mousetrap.reset()}}T([au()],dv.prototype,"dispose",null),
//# sourceMappingURL=keyboard.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/keyboard/api.js
Qm.prototype.isKeyboardEnabled=function(){const e=this.getPlugin("keyboard");return!!e&&e.isEnabled()},Qm.prototype.enableKeyboard=function(){const e=this.getPlugin("keyboard");return e&&e.enable(),this},Qm.prototype.disableKeyboard=function(){const e=this.getPlugin("keyboard");return e&&e.disable(),this},Qm.prototype.toggleKeyboard=function(e){const t=this.getPlugin("keyboard");return t&&t.toggleEnabled(e),this},Qm.prototype.bindKey=function(e,t,n){const r=this.getPlugin("keyboard");return r&&r.bindKey(e,t,n),this},Qm.prototype.unbindKey=function(e,t){const n=this.getPlugin("keyboard");return n&&n.unbindKey(e,t),this},Qm.prototype.clearKeys=function(){const e=this.getPlugin("keyboard");return e&&e.clear(),this},Qm.prototype.triggerKey=function(e,t){const n=this.getPlugin("keyboard");return n&&n.trigger(e,t),this};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/keyboard/index.js
class pv extends iu{constructor(e={}){super(),this.name="keyboard",this.options=Object.assign({enabled:!0},e)}init(e){this.keyboardImpl=new dv(Object.assign(Object.assign({},this.options),{graph:e}))}
// #region api
isEnabled(){return!this.keyboardImpl.disabled}enable(){this.keyboardImpl.enable()}disable(){this.keyboardImpl.disable()}toggleEnabled(e){
// the enabled state is not specified.
return void 0===e&&(e=!this.isEnabled()),e?this.enable():this.disable(),this}bindKey(e,t,n){return this.keyboardImpl.on(e,t,n),this}trigger(e,t){return this.keyboardImpl.trigger(e,t),this}clear(){return this.keyboardImpl.clear(),this}unbindKey(e,t){return this.keyboardImpl.off(e,t),this}
// #endregion
dispose(){this.keyboardImpl.dispose()}}T([au()],pv.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/selection/selection.js
class gv extends Gp{get graph(){return this.options.graph}get boxClassName(){return this.prefixClassName(vv.box)}get $boxes(){return h.children(this.container,this.boxClassName)}get handleOptions(){return this.options}constructor(e){super(),this.updateThrottleTimer=null,this.isDragging=!1,this.batchUpdating=!1,
// 逐帧批处理拖拽位移，降低 translate 重绘频率
this.dragRafId=null,
// 合并缩放/平移下的选择框刷新到每帧一次
this.transformRafId=null,this.dragPendingOffset=null,this.containerOffsetX=0,this.containerOffsetY=0,
// 拖拽过程的缓存，减少每次 move 重复计算
this.translatingCache=null,this.options=e,this.options.model&&(this.options.collection=this.options.model.collection),this.options.collection?this.collection=this.options.collection:(this.collection=new Jg([],{comparator:Av}),this.options.collection=this.collection),this.boxCount=0,this.boxesUpdated=!1,this.createContainer(),this.startListening()}startListening(){const e=this.graph,t=this.collection;this.delegateEvents({[`mousedown .${this.boxClassName}`]:"onSelectionBoxMouseDown",[`touchstart .${this.boxClassName}`]:"onSelectionBoxMouseDown",[`mousedown .${this.prefixClassName(vv.inner)}`]:"onSelectionContainerMouseDown",[`touchstart .${this.prefixClassName(vv.inner)}`]:"onSelectionContainerMouseDown"},!0),e.on("scale",this.onGraphTransformed,this),e.on("translate",this.onGraphTransformed,this),e.model.on("updated",this.onModelUpdated,this),t.on("added",this.onCellAdded,this),t.on("removed",this.onCellRemoved,this),t.on("reseted",this.onReseted,this),t.on("updated",this.onCollectionUpdated,this),t.on("node:change:position",this.onNodePositionChanged,this),t.on("cell:changed",this.onCellChanged,this)}stopListening(){const e=this.graph,t=this.collection;this.undelegateEvents(),e.off("scale",this.onGraphTransformed,this),e.off("translate",this.onGraphTransformed,this),
// 清理缩放/平移的 rAF 刷新与 throttleTimer
null!=this.transformRafId&&(cancelAnimationFrame(this.transformRafId),this.transformRafId=null),this.updateThrottleTimer&&(clearTimeout(this.updateThrottleTimer),this.updateThrottleTimer=null),e.model.off("updated",this.onModelUpdated,this),t.off("added",this.onCellAdded,this),t.off("removed",this.onCellRemoved,this),t.off("reseted",this.onReseted,this),t.off("updated",this.onCollectionUpdated,this),t.off("node:change:position",this.onNodePositionChanged,this),t.off("cell:changed",this.onCellChanged,this)}onRemove(){this.stopListening()}onGraphTransformed(){this.updateThrottleTimer&&(clearTimeout(this.updateThrottleTimer),this.updateThrottleTimer=null),
// 使用 rAF 将多次 transform 合并为每帧一次刷新
null==this.transformRafId&&(this.transformRafId=window.requestAnimationFrame((()=>{this.transformRafId=null,!this.isDragging&&this.collection.length>0&&this.refreshSelectionBoxes()})))}onCellChanged(){this.updateSelectionBoxes()}onNodePositionChanged({node:e,options:t}){const{showNodeSelectionBox:n,pointerEvents:r}=this.options,{ui:i,selection:a,translateBy:o,snapped:s}=t,c=(!0!==n||r&&"none"===this.getPointerEventsValue(r))&&!this.translating&&!a,l=i&&o&&e.id===o;if(c&&(l||s)){this.translating=!0;const n=e.position(),r=e.previous("position");if(r){const i=n.x-r.x,a=n.y-r.y;0===i&&0===a||this.translateSelectedNodes(i,a,e,t)}this.translating=!1}}onModelUpdated({removed:e}){(null==e?void 0:e.length)&&this.unselect(e)}isEmpty(){return this.length<=0}isSelected(e){return this.collection.has(e)}get length(){return this.collection.length}get cells(){return this.collection.toArray()}select(e,t={}){t.dryrun=!0;const n=this.filter(Array.isArray(e)?e:[e]);return this.collection.add(n,t),this}unselect(e,t={}){
// dryrun to prevent cell be removed from graph
return t.dryrun=!0,this.collection.remove(Array.isArray(e)?e:[e],t),this}reset(e,t={}){if(e){this.batchUpdating=!!t.batch;const n=this.cells,r=this.filter(Array.isArray(e)?e:[e]),i={},a={};for(const e of n)i[e.id]=e;for(const e of r)a[e.id]=e;const o=[],s=[];return r.forEach((e=>{i[e.id]||o.push(e)})),n.forEach((e=>{a[e.id]||s.push(e)})),s.length&&this.unselect(s,Object.assign(Object.assign({},t),{ui:!0})),o.length&&this.select(o,Object.assign(Object.assign({},t),{ui:!0})),this.updateContainer(),this.batchUpdating=!1,this}return this.clean(t)}clean(e={}){return this.length&&this.unselect(this.cells,e),
// 清理容器 transform 与位移累计
this.containerOffsetX=0,this.containerOffsetY=0,h.css(this.container,"transform",""),this}setFilter(e){this.options.filter=e}setContent(e){this.options.content=e}startSelecting(e){let t,n;
// Flow: startSelecting => adjustSelection => stopSelecting
e=this.normalizeEvent(e),// eslint-disable-line
this.clean();const r=this.graph.container;if(null!=e.offsetX&&null!=e.offsetY&&r.contains(e.target))t=e.offsetX,n=e.offsetY;else{const i=h.offset(r),a=r.scrollLeft,o=r.scrollTop;t=e.clientX-i.left+window.pageXOffset+a,n=e.clientY-i.top+window.pageYOffset+o}h.css(this.container,{top:n,left:t,width:1,height:1}),this.setEventData(e,{action:"selecting",clientX:e.clientX,clientY:e.clientY,offsetX:t,offsetY:n,scrollerX:0,scrollerY:0,moving:!1}),this.delegateDocumentEvents(yv,e.data)}filter(e){const t=this.options.filter;return e.filter((e=>Array.isArray(t)?t.some((t=>"string"==typeof t?e.shape===t:e.id===t.id)):"function"!=typeof t||s.call(t,this.graph,e)))}stopSelecting(e){
// 重置拖拽状态和清理定时器
this.isDragging=!1,this.boxesUpdated=!1,this.updateThrottleTimer&&(clearTimeout(this.updateThrottleTimer),this.updateThrottleTimer=null);const t=this.graph;switch(this.getEventData(e).action){case"selecting":{let e=h.width(this.container),n=h.height(this.container);const r=h.offset(this.container),i=t.pageToLocal(r.left,r.top),a=t.transform.getScale();e/=a.sx,n/=a.sy;const o=new mr(i.x,i.y,e,n),s=this.getCellViewsInArea(o).map((e=>e.cell));this.reset(s,{batch:!0}),this.hideRubberband();break}case"translating":{const n=t.snapToGrid(e.clientX,e.clientY);if(this.dragPendingOffset){const e=this.dragPendingOffset;this.dragPendingOffset=null,this.translateSelectedNodes(e.dx,e.dy),this.updateContainerPosition(e)}null!=this.dragRafId&&(cancelAnimationFrame(this.dragRafId),this.dragRafId=null),
// 重置容器 transform 与累计偏移
this.containerOffsetX=0,this.containerOffsetY=0,h.css(this.container,"transform",""),this.graph.model.stopBatch("move-selection"),
// 清理本次拖拽缓存
this.translatingCache=null,this.notifyBoxEvent("box:mouseup",e,n.x,n.y),this.repositionSelectionBoxesInPlace();break}default:this.clean()}this.undelegateDocumentEvents()}onMouseUp(e){const t=this.normalizeEvent(e);this.getEventData(t)&&this.stopSelecting(e)}onSelectionBoxMouseDown(e){this.handleSelectionMouseDown(e,!0)}onSelectionContainerMouseDown(e){this.handleSelectionMouseDown(e,!1)}handleSelectionMouseDown(e,t){var n;e.stopPropagation(),null===(n=e.preventDefault)||void 0===n||n.call(e);const r=this.normalizeEvent(e),i=this.graph.snapToGrid(r.clientX,r.clientY);
// 容器内的多选切换：按下修饰键时，不拖拽，直接切换选中状态
if(!t&&lu(r,this.options.multipleSelectionModifiers)){const e=this.graph.findViewsFromPoint(i.x,i.y).find((e=>e.isNodeView()));if(e){const t=e.cell;this.isSelected(t)?this.unselect(t,{ui:!0}):!1===this.options.multiple?this.reset(t,{ui:!0}):this.select(t,{ui:!0})}return}this.options.movable&&this.startTranslating(r);let a=t?this.getCellViewFromElem(r.target):null;if(!a){if(a=this.graph.findViewsFromPoint(i.x,i.y).filter((e=>this.isSelected(e.cell)))[0]||null,!a){const e=this.collection.first();e&&(a=this.graph.renderer.findViewByCell(e))}}a&&(this.setEventData(r,{activeView:a}),t&&this.notifyBoxEvent("box:mousedown",r,i.x,i.y),this.delegateDocumentEvents(yv,r.data))}startTranslating(e){this.graph.model.startBatch("move-selection");const t=this.graph.snapToGrid(e.clientX,e.clientY);this.setEventData(e,{action:"translating",clientX:t.x,clientY:t.y,originX:t.x,originY:t.y}),this.prepareTranslatingCache()}getRestrictArea(){const e=this.graph.options.translating.restrict,t="function"==typeof e?s.call(e,this.graph,null):e;return"number"==typeof t?this.graph.transform.getGraphArea().inflate(t):!0===t?this.graph.transform.getGraphArea():t||null}
// 根据当前选择的节点构建拖拽缓存
prepareTranslatingCache(){const e=this.collection.toArray().filter((e=>e.isNode())),t=new Set(e.map((e=>e.id))),n=this.collection.toArray().filter((e=>e.isEdge())),r=new Set,i=e=>e.getVertices().length>0||!e.getSourceCellId()||!e.getTargetCellId()
// 邻接边：仅当需要位移（有顶点或点端点）时加入缓存;
this.graph.model.getEdges().forEach((e=>{const n=e.getSourceCellId(),a=e.getTargetCellId();(null!=n&&t.has(n)||null!=a&&t.has(a))&&i(e)&&r.add(e)})),
// 选中的边（不一定与选中节点相邻）也需要考虑
n.forEach((e=>{i(e)&&r.add(e)})),this.translatingCache={selectedNodes:e,nodeIdSet:t,edgesToTranslate:Array.from(r)}}getSelectionOffset(e,t){let n=e.x-t.clientX,r=e.y-t.clientY;const i=this.getRestrictArea();if(i){const a=this.collection.toArray(),o=jg.getCellsBBox(a,{deep:!0})||mr.create(),s=i.x-o.x,c=i.y-o.y,l=i.x+i.width-(o.x+o.width),u=i.y+i.height-(o.y+o.height);if(n<s&&(n=s),r<c&&(r=c),l<n&&(n=l),u<r&&(r=u),!this.options.following){const i=e.x-t.originX,a=e.y-t.originY;n=i<=s||i>=l?0:n,r=a<=c||a>=u?0:r}}return{dx:n,dy:r}}updateSelectedNodesPosition(e){0===e.dx&&0===e.dy||(
// 合并偏移并在下一帧统一应用，减少高频重绘
this.dragPendingOffset?(this.dragPendingOffset.dx+=e.dx,this.dragPendingOffset.dy+=e.dy):this.dragPendingOffset={dx:e.dx,dy:e.dy},null==this.dragRafId&&(this.dragRafId=requestAnimationFrame((()=>{const e=this.dragPendingOffset||{dx:0,dy:0};this.dragPendingOffset=null,this.dragRafId=null,this.translateSelectedNodes(e.dx,e.dy),this.updateContainerPosition(e),this.boxesUpdated=!0,this.isDragging=!0}))))}autoScrollGraph(e,t){const n=this.graph.getPlugin("scroller");return(null==n?void 0:n.autoScroll)?n.autoScroll(e,t):{scrollerX:0,scrollerY:0}}adjustSelection(e){const t=this.normalizeEvent(e),n=this.getEventData(t);switch(n.action){case"selecting":{const e=n;!0!==e.moving&&(h.appendTo(this.container,this.graph.container),this.showRubberband(),e.moving=!0);const{scrollerX:r,scrollerY:i}=this.autoScrollGraph(t.clientX,t.clientY);e.scrollerX+=r,e.scrollerY+=i;const a=t.clientX-e.clientX+e.scrollerX,o=t.clientY-e.clientY+e.scrollerY;h.css(this.container,{left:a<0?e.offsetX+a:e.offsetX,top:o<0?e.offsetY+o:e.offsetY,width:Math.abs(a),height:Math.abs(o)});break}case"translating":{this.isDragging=!0;const r=this.graph.snapToGrid(t.clientX,t.clientY),i=n,a=this.getSelectionOffset(r,i);this.options.following?this.updateSelectedNodesPosition(a):this.updateContainerPosition(a),a.dx&&(i.clientX=r.x),a.dy&&(i.clientY=r.y),this.notifyBoxEvent("box:mousemove",e,r.x,r.y);break}}this.boxesUpdated=!1}translateSelectedNodes(e,t,n,r){var i,a;const o={},s=[];if(n&&(o[n.id]=!0),this.collection.toArray().forEach((e=>{e.getDescendants({deep:!0}).forEach((e=>{o[e.id]=!0}))})),null==r?void 0:r.translateBy){const e=this.graph.getCellById(r.translateBy);e&&(o[e.id]=!0,e.getDescendants({deep:!0}).forEach((e=>{o[e.id]=!0})),s.push(e))}const c=Object.assign(Object.assign({},r),{selection:this.cid,exclude:s}),l=null===(i=this.translatingCache)||void 0===i?void 0:i.selectedNodes,u=(null!=l?l:this.collection.toArray().filter((e=>e.isNode()))).filter((e=>!o[e.id]));
// 移动选中的节点，避免重复和嵌套
u.forEach((n=>{n.translate(e,t,c)}));
// 边移动缓存：仅移动需要位移的边（有顶点或点端点）
const h=null===(a=this.translatingCache)||void 0===a?void 0:a.edgesToTranslate,f=new Set;if(h)h.forEach((e=>{f.add(e)}));else{const e=new Set(u.map((e=>e.id)));this.graph.model.getEdges().forEach((t=>{const n=t.getSourceCellId(),r=t.getTargetCellId(),i=!!n&&e.has(n),a=!!r&&e.has(r);if(i||a){(t.getVertices().length>0||(!n||!r))&&f.add(t)}}))}
// 若选择了边（仅边、无节点），确保其也被移动（过滤无顶点且两端为节点的情况）
this.collection.toArray().filter((e=>e.isEdge()&&!o[e.id])).forEach((e=>{const t=e.getVertices().length>0,n=!e.getSourceCellId()||!e.getTargetCellId();(t||n)&&f.add(e)})),f.forEach((n=>{n.translate(e,t,c)}))}getCellViewsInArea(e){const t=this.graph,n={strict:this.options.strict};let r=[];return this.options.rubberNode&&(r=r.concat(t.model.getNodesInArea(e,n).map((e=>t.renderer.findViewByCell(e))).filter((e=>null!=e)))),this.options.rubberEdge&&(r=r.concat(t.model.getEdgesInArea(e,n).map((e=>t.renderer.findViewByCell(e))).filter((e=>null!=e)))),r}notifyBoxEvent(e,t,n,r){const i=this.getEventData(t).activeView;this.trigger(e,{e:t,view:i,x:n,y:r,cell:i.cell})}getSelectedClassName(e){return this.prefixClassName((e.isNode()?"node":"edge")+"-selected")}addCellSelectedClassName(e){const t=this.graph.renderer.findViewByCell(e);t&&t.addClass(this.getSelectedClassName(e))}removeCellUnSelectedClassName(e){const t=this.graph.renderer.findViewByCell(e);t&&t.removeClass(this.getSelectedClassName(e))}destroySelectionBox(e){this.removeCellUnSelectedClassName(e),this.canShowSelectionBox(e)&&(h.remove(this.container.querySelector(`[data-cell-id="${e.id}"]`)),0===this.$boxes.length&&this.hide(),this.boxCount=Math.max(0,this.boxCount-1))}destroyAllSelectionBoxes(e){e.forEach((e=>{this.removeCellUnSelectedClassName(e)})),this.hide(),h.remove(this.$boxes),this.boxCount=0}hide(){h.removeClass(this.container,this.prefixClassName(vv.rubberband)),h.removeClass(this.container,this.prefixClassName(vv.selected))}showRubberband(){h.addClass(this.container,this.prefixClassName(vv.rubberband))}hideRubberband(){h.removeClass(this.container,this.prefixClassName(vv.rubberband))}showSelected(){h.removeAttribute(this.container,"style"),h.addClass(this.container,this.prefixClassName(vv.selected))}createContainer(){this.container=document.createElement("div"),h.addClass(this.container,this.prefixClassName(vv.root)),this.options.className&&h.addClass(this.container,this.options.className),h.css(this.container,{willChange:"transform"}),this.selectionContainer=document.createElement("div"),h.addClass(this.selectionContainer,this.prefixClassName(vv.inner)),this.selectionContent=document.createElement("div"),h.addClass(this.selectionContent,this.prefixClassName(vv.content)),h.append(this.selectionContainer,this.selectionContent),h.attr(this.selectionContainer,"data-selection-length",this.collection.length),h.prepend(this.container,this.selectionContainer)}updateContainerPosition(e){if(e.dx||e.dy){const t=this.graph.transform.getScale();
// 使用 transform，避免频繁修改 left/top
this.containerOffsetX+=e.dx*t.sx,this.containerOffsetY+=e.dy*t.sy,h.css(this.container,"transform",`translate3d(${this.containerOffsetX}px, ${this.containerOffsetY}px, 0)`)}}updateContainer(){const e={x:1/0,y:1/0},t={x:0,y:0};this.collection.toArray().filter((e=>this.canShowSelectionBox(e))).forEach((n=>{const r=this.graph.renderer.findViewByCell(n);if(r){const n=r.getBBox({useCellGeometry:!0});e.x=Math.min(e.x,n.x),e.y=Math.min(e.y,n.y),t.x=Math.max(t.x,n.x+n.width),t.y=Math.max(t.y,n.y+n.height)}})),h.css(this.selectionContainer,{position:"absolute",pointerEvents:this.options.movable?"auto":"none",cursor:this.options.movable?"move":"default",left:e.x,top:e.y,width:t.x-e.x,height:t.y-e.y}),h.attr(this.selectionContainer,"data-selection-length",this.collection.length);const n=this.options.content;if(n)if("function"==typeof n){const e=s.call(n,this.graph,this,this.selectionContent);e&&(this.selectionContent.innerHTML=e)}else this.selectionContent.innerHTML=n;this.collection.length>0&&!this.container.parentNode?h.appendTo(this.container,this.graph.container):this.collection.length<=0&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}canShowSelectionBox(e){return e.isNode()&&!0===this.options.showNodeSelectionBox||e.isEdge()&&!0===this.options.showEdgeSelectionBox}getPointerEventsValue(e){return"string"==typeof e?e:e(this.cells)}createSelectionBox(e){if(this.addCellSelectedClassName(e),this.canShowSelectionBox(e)){const t=this.graph.renderer.findViewByCell(e);if(t){const n=t.getBBox({useCellGeometry:!0}),r=this.boxClassName,i=document.createElement("div"),a=this.options.pointerEvents;h.addClass(i,r),h.addClass(i,`${r}-${e.isNode()?"node":"edge"}`),h.attr(i,"data-cell-id",e.id),h.css(i,{position:"absolute",left:n.x,top:n.y,width:n.width,height:n.height,pointerEvents:a?this.getPointerEventsValue(a):"auto"}),h.appendTo(i,this.container),this.showSelected(),this.boxCount+=1}}}updateSelectionBoxes(){if(this.collection.length>0){if(this.isDragging)return;this.updateThrottleTimer&&clearTimeout(this.updateThrottleTimer),
// 节流：限制更新频率到60fps
this.updateThrottleTimer=setTimeout((()=>{this.refreshSelectionBoxes(),this.updateThrottleTimer=null}),16)}}refreshSelectionBoxes(){h.remove(this.$boxes),this.boxCount=0,this.collection.toArray().forEach((e=>{this.createSelectionBox(e)})),this.updateContainer(),this.boxesUpdated=!0}
// 按当前视图几何同步每个选择框的位置与尺寸
repositionSelectionBoxesInPlace(){const e=this.$boxes;if(0!==e.length){for(const t of e){const e=t.getAttribute("data-cell-id");if(!e)continue;const n=this.collection.get(e);if(!n)continue;const r=this.graph.renderer.findViewByCell(n);if(!r)continue;const i=r.getBBox({useCellGeometry:!0});h.css(t,{left:i.x,top:i.y,width:i.width,height:i.height})}this.updateContainer(),this.boxesUpdated=!0}else this.refreshSelectionBoxes()}getCellViewFromElem(e){const t=e.getAttribute("data-cell-id");if(t){const e=this.collection.get(t);if(e)return this.graph.renderer.findViewByCell(e)}return null}onCellRemoved({cell:e}){this.destroySelectionBox(e),this.batchUpdating||this.updateContainer()}onReseted({previous:e,current:t}){this.destroyAllSelectionBoxes(e),t.forEach((e=>{this.listenCellRemoveEvent(e),this.createSelectionBox(e)})),this.updateContainer()}onCellAdded({cell:e}){
// The collection do not known the cell was removed when cell was
// removed by interaction(such as, by "delete" shortcut), so we should
// manually listen to cell's remove event.
this.listenCellRemoveEvent(e),this.createSelectionBox(e),this.batchUpdating||this.updateContainer()}listenCellRemoveEvent(e){e.off("removed",this.onCellRemoved,this),e.on("removed",this.onCellRemoved,this)}onCollectionUpdated({added:e,removed:t,options:n}){e.forEach((e=>{this.trigger("cell:selected",{cell:e,options:n}),e.isNode()?this.trigger("node:selected",{cell:e,options:n,node:e}):e.isEdge()&&this.trigger("edge:selected",{cell:e,options:n,edge:e})})),t.forEach((e=>{this.trigger("cell:unselected",{cell:e,options:n}),e.isNode()?this.trigger("node:unselected",{cell:e,options:n,node:e}):e.isEdge()&&this.trigger("edge:unselected",{cell:e,options:n,edge:e})}));const r={added:e,removed:t,options:n,selected:this.cells.filter((e=>!!this.graph.getCellById(e.id)))};this.trigger("selection:changed",r)}
// #endregion
dispose(){this.clean(),this.remove(),this.off()}}T([au()],gv.prototype,"dispose",null);
// private
// -------
const mv="widget-selection",vv={root:mv,inner:`${mv}-inner`,box:`${mv}-box`,content:`${mv}-content`,rubberband:`${mv}-rubberband`,selected:`${mv}-selected`},yv={mousemove:"adjustSelection",touchmove:"adjustSelection",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"};function Av(e){return e.getAncestors().length}
//# sourceMappingURL=selection.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/selection/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/selection/api.js
Qm.prototype.isSelectionEnabled=function(){const e=this.getPlugin("selection");return!!e&&e.isEnabled()},Qm.prototype.enableSelection=function(){const e=this.getPlugin("selection");return e&&e.enable(),this},Qm.prototype.disableSelection=function(){const e=this.getPlugin("selection");return e&&e.disable(),this},Qm.prototype.toggleSelection=function(e){const t=this.getPlugin("selection");return t&&t.toggleEnabled(e),this},Qm.prototype.isMultipleSelection=function(){const e=this.getPlugin("selection");return!!e&&e.isMultipleSelection()},Qm.prototype.enableMultipleSelection=function(){const e=this.getPlugin("selection");return e&&e.enableMultipleSelection(),this},Qm.prototype.disableMultipleSelection=function(){const e=this.getPlugin("selection");return e&&e.disableMultipleSelection(),this},Qm.prototype.toggleMultipleSelection=function(e){const t=this.getPlugin("selection");return t&&t.toggleMultipleSelection(e),this},Qm.prototype.isSelectionMovable=function(){const e=this.getPlugin("selection");return!!e&&e.isSelectionMovable()},Qm.prototype.enableSelectionMovable=function(){const e=this.getPlugin("selection");return e&&e.enableSelectionMovable(),this},Qm.prototype.disableSelectionMovable=function(){const e=this.getPlugin("selection");return e&&e.disableSelectionMovable(),this},Qm.prototype.toggleSelectionMovable=function(e){const t=this.getPlugin("selection");return t&&t.toggleSelectionMovable(e),this},Qm.prototype.isRubberbandEnabled=function(){const e=this.getPlugin("selection");return!!e&&e.isRubberbandEnabled()},Qm.prototype.enableRubberband=function(){const e=this.getPlugin("selection");return e&&e.enableRubberband(),this},Qm.prototype.disableRubberband=function(){const e=this.getPlugin("selection");return e&&e.disableRubberband(),this},Qm.prototype.toggleRubberband=function(e){const t=this.getPlugin("selection");return t&&t.toggleRubberband(e),this},Qm.prototype.isStrictRubberband=function(){const e=this.getPlugin("selection");return!!e&&e.isStrictRubberband()},Qm.prototype.enableStrictRubberband=function(){const e=this.getPlugin("selection");return e&&e.enableStrictRubberband(),this},Qm.prototype.disableStrictRubberband=function(){const e=this.getPlugin("selection");return e&&e.disableStrictRubberband(),this},Qm.prototype.toggleStrictRubberband=function(e){const t=this.getPlugin("selection");return t&&t.toggleStrictRubberband(e),this},Qm.prototype.setRubberbandModifiers=function(e){const t=this.getPlugin("selection");return t&&t.setRubberbandModifiers(e),this},Qm.prototype.setSelectionFilter=function(e){const t=this.getPlugin("selection");return t&&t.setSelectionFilter(e),this},Qm.prototype.setSelectionDisplayContent=function(e){const t=this.getPlugin("selection");return t&&t.setSelectionDisplayContent(e),this},Qm.prototype.isSelectionEmpty=function(){const e=this.getPlugin("selection");return!e||e.isEmpty()},Qm.prototype.cleanSelection=function(e){const t=this.getPlugin("selection");return t&&t.clean(e),this},Qm.prototype.resetSelection=function(e,t){const n=this.getPlugin("selection");return n&&n.reset(e,t),this},Qm.prototype.getSelectedCells=function(){const e=this.getPlugin("selection");return e?e.getSelectedCells():[]},Qm.prototype.getSelectedCellCount=function(){const e=this.getPlugin("selection");return e?e.getSelectedCellCount():0},Qm.prototype.isSelected=function(e){const t=this.getPlugin("selection");return!!t&&t.isSelected(e)},Qm.prototype.select=function(e,t){const n=this.getPlugin("selection");return n&&n.select(e,t),this},Qm.prototype.unselect=function(e,t){const n=this.getPlugin("selection");return n&&n.unselect(e,t),this};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/selection/index.js
const bv={rubberband:!1,rubberNode:!0,rubberEdge:!1,// next version will set to true
pointerEvents:"auto",multiple:!0,multipleSelectionModifiers:["ctrl","meta"],movable:!0,strict:!1,selectCellOnMoved:!1,selectNodeOnMoved:!1,selectEdgeOnMoved:!1,following:!0,content:null,eventTypes:["leftMouseDown","mouseWheelDown"]};class wv extends ou{get rubberbandDisabled(){return!0!==this.options.enabled||!0!==this.options.rubberband}get disabled(){return!0!==this.options.enabled}get length(){return this.selectionImpl.length}get cells(){return this.selectionImpl.cells}constructor(e={}){super(),this.name="selection",this.movedMap=new WeakMap,this.unselectMap=new WeakMap,this.options=Object.assign(Object.assign({enabled:!0},bv),e),a.ensure(this.name,".x6-widget-selection {\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: none;\n  width: 0;\n  height: 0;\n  touch-action: none;\n}\n.x6-widget-selection-rubberband {\n  display: block;\n  overflow: visible;\n  opacity: 0.3;\n}\n.x6-widget-selection-selected {\n  display: block;\n}\n.x6-widget-selection-box {\n  cursor: move;\n}\n.x6-widget-selection-inner[data-selection-length='0'],\n.x6-widget-selection-inner[data-selection-length='1'] {\n  display: none;\n}\n.x6-widget-selection-content {\n  position: absolute;\n  top: 100%;\n  right: -20px;\n  left: -20px;\n  margin-top: 30px;\n  padding: 6px;\n  line-height: 14px;\n  text-align: center;\n  border-radius: 6px;\n}\n.x6-widget-selection-content:empty {\n  display: none;\n}\n.x6-widget-selection-rubberband {\n  background-color: #3498db;\n  border: 2px solid #2980b9;\n}\n.x6-widget-selection-box {\n  box-sizing: content-box !important;\n  margin-top: -4px;\n  margin-left: -4px;\n  padding-right: 4px;\n  padding-bottom: 4px;\n  border: 2px dashed #feb663;\n  box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-inner {\n  box-sizing: content-box !important;\n  margin-top: -8px;\n  margin-left: -8px;\n  padding-right: 12px;\n  padding-bottom: 12px;\n  border: 2px solid #feb663;\n  box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-content {\n  color: #fff;\n  font-size: 10px;\n  background-color: #6a6b8a;\n}\n")}init(e){this.graph=e,this.selectionImpl=new gv(Object.assign(Object.assign({},this.options),{graph:e})),this.resolvePanningSelectionConflict(),this.setup(),this.startListening()}
// #region api
isEnabled(){return!this.disabled}enable(){this.disabled&&(this.options.enabled=!0)}disable(){this.disabled||(this.options.enabled=!1)}toggleEnabled(e){return null!=e?e!==this.isEnabled()&&(e?this.enable():this.disable()):this.isEnabled()?this.disable():this.enable(),this}isMultipleSelection(){return this.isMultiple()}enableMultipleSelection(){return this.enableMultiple(),this}disableMultipleSelection(){return this.disableMultiple(),this}toggleMultipleSelection(e){return null!=e?e!==this.isMultipleSelection()&&(e?this.enableMultipleSelection():this.disableMultipleSelection()):this.isMultipleSelection()?this.disableMultipleSelection():this.enableMultipleSelection(),this}isSelectionMovable(){return!1!==this.options.movable}enableSelectionMovable(){return this.selectionImpl.options.movable=!0,this}disableSelectionMovable(){return this.selectionImpl.options.movable=!1,this}toggleSelectionMovable(e){return null!=e?e!==this.isSelectionMovable()&&(e?this.enableSelectionMovable():this.disableSelectionMovable()):this.isSelectionMovable()?this.disableSelectionMovable():this.enableSelectionMovable(),this}isRubberbandEnabled(){return!this.rubberbandDisabled}enableRubberband(){return this.rubberbandDisabled&&(this.options.rubberband=!0),this}disableRubberband(){return this.rubberbandDisabled||(this.options.rubberband=!1),this}toggleRubberband(e){return null!=e?e!==this.isRubberbandEnabled()&&(e?this.enableRubberband():this.disableRubberband()):this.isRubberbandEnabled()?this.disableRubberband():this.enableRubberband(),this}isStrictRubberband(){return!0===this.selectionImpl.options.strict}enableStrictRubberband(){return this.selectionImpl.options.strict=!0,this}disableStrictRubberband(){return this.selectionImpl.options.strict=!1,this}toggleStrictRubberband(e){return null!=e?e!==this.isStrictRubberband()&&(e?this.enableStrictRubberband():this.disableStrictRubberband()):this.isStrictRubberband()?this.disableStrictRubberband():this.enableStrictRubberband(),this}setRubberbandModifiers(e){this.setModifiers(e)}setSelectionFilter(e){return this.setFilter(e),this}setSelectionDisplayContent(e){return this.setContent(e),this}isEmpty(){return this.length<=0}clean(e={}){return this.selectionImpl.clean(e),this}reset(e,t={}){return this.selectionImpl.reset(e?this.getCells(e):[],t),this}getSelectedCells(){return this.cells}getSelectedCellCount(){return this.length}isSelected(e){return this.selectionImpl.isSelected(e)}select(e,t={}){const n=this.getCells(e);return n.length&&(this.isMultiple()?this.selectionImpl.select(n,t):this.reset(n.slice(0,1),t)),this}unselect(e,t={}){return this.selectionImpl.unselect(this.getCells(e),t),this}
// #endregion
setup(){this.selectionImpl.on("*",((e,t)=>{this.trigger(e,t),this.graph.trigger(e,t)}))}startListening(){this.graph.on("blank:mousedown",this.onBlankMouseDown,this),this.graph.on("blank:click",this.onBlankClick,this),this.graph.on("cell:mousemove",this.onCellMouseMove,this),this.graph.on("cell:mouseup",this.onCellMouseUp,this),this.selectionImpl.on("box:mousedown",this.onBoxMouseDown,this)}stopListening(){this.graph.off("blank:mousedown",this.onBlankMouseDown,this),this.graph.off("blank:click",this.onBlankClick,this),this.graph.off("cell:mousemove",this.onCellMouseMove,this),this.graph.off("cell:mouseup",this.onCellMouseUp,this),this.selectionImpl.off("box:mousedown",this.onBoxMouseDown,this)}onBlankMouseDown({e:e}){if(!this.allowBlankMouseDown(e))return;const t=this.graph.panning.allowPanning(e,!0),n=this.graph.getPlugin("scroller"),r=n&&n.allowPanning(e,!0);(this.allowRubberband(e,!0)||this.allowRubberband(e)&&!r&&!t)&&this.startRubberband(e)}allowBlankMouseDown(e){const t=this.options.eventTypes;return"string"==typeof e.type&&e.type.startsWith("touch")||"touch"===e.pointerType?null==t?void 0:t.includes("leftMouseDown"):(null==t?void 0:t.includes("leftMouseDown"))&&0===e.button||(null==t?void 0:t.includes("mouseWheelDown"))&&1===e.button}onBlankClick(){this.clean()}allowRubberband(e,t){const n=null!=e?e:{altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1};return!this.rubberbandDisabled&&lu(n,this.options.modifiers,t)}
/**
     * 当框选和画布拖拽平移触发条件相同时（相同事件 + 相同修饰键），框选优先触发，否则不互相影响。
     */resolvePanningSelectionConflict(){if(!0!==this.options.enabled||!0!==this.options.rubberband)return;const e=this.graph.options.panning;if(!e||!1===e.enabled)return;(()=>{var t,n;const r=null!==(t=this.options.eventTypes)&&void 0!==t?t:[],i=null!==(n=e.eventTypes)&&void 0!==n?n:[],a=new Set(i),o=r.some((e=>a.has(e))),s=function(e,t){if(null!=e&&null!=t){const n=cu(e),r=cu(t),i=n.or.sort(),a=r.or.sort(),o=n.and.sort(),s=r.and.sort(),c=(e,t)=>e.length===t.length&&(0===e.length||e.every(((e,n)=>e===t[n])));return c(i,a)&&c(o,s)}return null==e&&null==t}(e.modifiers,this.options.modifiers);return o&&s})()&&this.graph.panning.disablePanning()}allowMultipleSelection(e){return this.isMultiple()&&lu(e,this.options.multipleSelectionModifiers)}onCellMouseMove({cell:e}){this.movedMap.set(e,!0)}onCellMouseUp({e:e,cell:t}){const n=this.options;let r=this.disabled;!r&&this.movedMap.has(t)&&(r=!1===n.selectCellOnMoved,r||(r=!1===n.selectNodeOnMoved&&t.isNode()),r||(r=!1===n.selectEdgeOnMoved&&t.isEdge())),r||(this.allowMultipleSelection(e)?this.unselectMap.has(t)?this.unselectMap.delete(t):this.isSelected(t)?this.unselect(t):this.select(t):this.reset(t)),this.movedMap.delete(t)}onBoxMouseDown({e:e,cell:t}){this.disabled||this.allowMultipleSelection(e)&&(this.unselect(t),this.unselectMap.set(t,!0))}getCells(e){return(Array.isArray(e)?e:[e]).map((e=>"string"==typeof e?this.graph.getCellById(e):e)).filter((e=>null!=e))}startRubberband(e){return this.rubberbandDisabled||this.selectionImpl.startSelecting(e),this}isMultiple(){return!1!==this.options.multiple}enableMultiple(){return this.options.multiple=!0,this}disableMultiple(){return this.options.multiple=!1,this}setModifiers(e){return this.options.modifiers=e,this}setContent(e){return this.selectionImpl.setContent(e),this}setFilter(e){return this.selectionImpl.setFilter(e),this}dispose(){this.stopListening(),this.off(),this.selectionImpl.dispose(),a.clean(this.name)}}T([au()],wv.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/minimap/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */
const xv={width:300,height:200,padding:10,scalable:!0,minScale:.01,maxScale:16,graphOptions:{},createGraph:e=>new Qm(e)},Cv={mousemove:"doAction",touchmove:"doAction",mouseup:"stopAction",touchend:"stopAction"},_v="widget-minimap",Iv=`${_v}-viewport`,Ev=`${Iv}-zoom`;
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/minimap/index.js
T([au()],class extends Gp{get scroller(){return this.graph.getPlugin("scroller")}get graphContainer(){return this.scroller?this.scroller.container:this.graph.container}constructor(e){super(),this.name="minimap",this.options=Object.assign(Object.assign({},xv),e),a.ensure(this.name,".x6-widget-minimap {\n  position: relative;\n  display: table-cell;\n  box-sizing: border-box;\n  overflow: hidden;\n  text-align: center;\n  vertical-align: middle;\n  background-color: #fff;\n  user-select: none;\n}\n.x6-widget-minimap .x6-graph {\n  display: inline-block;\n  box-shadow: 0 0 4px 0 #eee;\n  cursor: pointer;\n}\n.x6-widget-minimap .x6-graph > svg {\n  pointer-events: none;\n  shape-rendering: optimizespeed;\n}\n.x6-widget-minimap .x6-graph .x6-node * {\n  /* stylelint-disable-next-line */\n  vector-effect: initial;\n}\n.x6-widget-minimap-viewport {\n  position: absolute;\n  box-sizing: content-box !important;\n  margin: -2px 0 0 -2px;\n  border: 2px solid #31d0c6;\n  cursor: move;\n}\n.x6-widget-minimap-viewport-zoom {\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  box-sizing: border-box;\n  width: 12px;\n  height: 12px;\n  margin: 0 -6px -6px 0;\n  background-color: #fff;\n  border: 2px solid #31d0c6;\n  border-radius: 50%;\n  cursor: nwse-resize;\n}\n")}init(e){this.graph=e,this.updateViewport=s.debounce(this.updateViewport.bind(this),0),this.container=document.createElement("div"),h.addClass(this.container,this.prefixClassName(_v));const t=document.createElement("div");this.container.appendChild(t),this.viewport=document.createElement("div"),h.addClass(this.viewport,this.prefixClassName(Iv)),this.options.scalable&&(this.zoomHandle=document.createElement("div"),h.addClass(this.zoomHandle,this.prefixClassName(Ev)),h.appendTo(this.zoomHandle,this.viewport)),h.append(this.container,this.viewport),h.css(this.container,{width:this.options.width,height:this.options.height,padding:this.options.padding}),this.options.container&&this.options.container.appendChild(this.container),this.sourceGraph=this.graph;const n=Object.assign(Object.assign({},this.options.graphOptions),{container:t,model:this.sourceGraph.model,interacting:!1,grid:!1,background:!1,embedding:!1,panning:!1});this.targetGraph=this.options.createGraph?this.options.createGraph(n):new Qm(n),this.updatePaper(this.sourceGraph.options.width,this.sourceGraph.options.height),this.startListening()}startListening(){this.scroller?h.Event.on(this.graphContainer,`scroll${this.getEventNamespace()}`,this.updateViewport):(this.sourceGraph.on("translate",this.onTransform,this),this.sourceGraph.on("scale",this.onTransform,this),this.sourceGraph.on("model:updated",this.onModelUpdated,this)),this.sourceGraph.on("resize",this.updatePaper,this),this.delegateEvents({mousedown:"startAction",touchstart:"startAction",[`mousedown .${this.prefixClassName("graph")}`]:"scrollTo",[`touchstart .${this.prefixClassName("graph")}`]:"scrollTo"})}stopListening(){this.scroller?h.Event.off(this.graphContainer,this.getEventNamespace()):(this.sourceGraph.off("translate",this.onTransform,this),this.sourceGraph.off("scale",this.onTransform,this),this.sourceGraph.off("model:updated",this.onModelUpdated,this)),this.sourceGraph.off("resize",this.updatePaper,this),this.undelegateEvents()}onRemove(){this.stopListening(),this.targetGraph.dispose(!1)}onTransform(e){(e.ui||this.targetGraphTransforming||!this.scroller)&&this.updateViewport()}onModelUpdated(){this.targetGraph.zoomToFit()}updatePaper(e,t){let n,r;"object"==typeof e?(n=e.width,r=e.height):(n=e,r=t);const i=this.sourceGraph.options,a=this.sourceGraph.transform.getScale(),o=this.options.width-2*this.options.padding,s=this.options.height-2*this.options.padding;n/=a.sx,// eslint-disable-line
r/=a.sy,// eslint-disable-line
this.ratio=Math.min(o/n,s/r);const c=this.ratio,l=i.x*c/a.sx,u=i.y*c/a.sy;return n*=c,// eslint-disable-line
r*=c,// eslint-disable-line
this.targetGraph.resize(n,r),this.targetGraph.translate(l,u),this.scroller?this.targetGraph.scale(c,c):this.targetGraph.zoomToFit(),this.updateViewport(),this}updateViewport(){const e=this.sourceGraph.transform.getScale(),t=this.targetGraph.transform.getScale(),n=this.scroller?this.scroller.clientToLocalPoint(0,0):this.graph.graphToLocal(0,0),r=h.position(this.targetGraph.container),i=this.targetGraph.translate();i.ty=i.ty||0,this.geometry={top:r.top+n.y*t.sy+i.ty,left:r.left+n.x*t.sx+i.tx,width:this.graphContainer.clientWidth*t.sx/e.sx,height:this.graphContainer.clientHeight*t.sy/e.sy},h.css(this.viewport,this.geometry)}startAction(e){const t=this.normalizeEvent(e),n=t.target===this.zoomHandle?"zooming":"panning",{tx:r,ty:i}=this.sourceGraph.translate(),a={action:n,clientX:t.clientX,clientY:t.clientY,scrollLeft:this.graphContainer.scrollLeft,scrollTop:this.graphContainer.scrollTop,zoom:this.sourceGraph.zoom(),scale:this.sourceGraph.transform.getScale(),geometry:this.geometry,translateX:r,translateY:i};this.targetGraphTransforming=!0,this.delegateDocumentEvents(Cv,a)}doAction(e){const t=this.normalizeEvent(e),n=t.clientX,r=t.clientY,i=t.data;switch(i.action){case"panning":{const e=this.sourceGraph.transform.getScale(),t=(n-i.clientX)*e.sx,a=(r-i.clientY)*e.sy;this.scroller?(this.graphContainer.scrollLeft=i.scrollLeft+t/this.ratio,this.graphContainer.scrollTop=i.scrollTop+a/this.ratio):this.sourceGraph.translate(i.translateX-t/this.ratio,i.translateY-a/this.ratio);break}case"zooming":{const e=i.scale,t=i.geometry,r=1+(i.clientX-n)/t.width/e.sx;i.frameId&&cancelAnimationFrame(i.frameId),i.frameId=requestAnimationFrame((()=>{this.sourceGraph.zoom(r*i.zoom,{absolute:!0,minScale:this.options.minScale,maxScale:this.options.maxScale})}));break}}}stopAction(){this.undelegateDocumentEvents(),this.targetGraphTransforming=!1}scrollTo(e){const t=this.normalizeEvent(e);let n,r;const i=this.targetGraph.translate();if(i.ty=i.ty||0,null==t.offsetX){const e=h.offset(this.targetGraph.container);n=t.pageX-e.left,r=t.pageY-e.top}else n=t.offsetX,r=t.offsetY;const a=(n-i.tx)/this.ratio,o=(r-i.ty)/this.ratio;this.sourceGraph.centerPoint(a,o)}dispose(){this.remove(),a.clean(this.name)}}.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/scroller/scroller.js
const kv="graph-scroller",Sv=`${kv}-paged`,Bv=`${kv}-content`,Mv=`${kv}-background`,Tv="transition-in-progress",Ov="transitionend.graph-scroller-transition",Dv={padding(){const e=this.getClientSize(),t=Math.max(this.options.minVisibleWidth||0,1)||1,n=Math.max(this.options.minVisibleHeight||0,1)||1,r=Math.max(e.width-t,0),i=Math.max(e.height-n,0);return{left:r,top:i,right:r,bottom:i}},minVisibleWidth:50,minVisibleHeight:50,pageVisible:!1,pageBreak:!1,autoResize:!0};function Pv(e){const t=l.merge({},Dv,e);null==t.pageWidth&&(t.pageWidth=e.graph.options.width),null==t.pageHeight&&(t.pageHeight=e.graph.options.height);const n=e.graph.options;return n.background&&t.enabled&&null==t.background&&(t.background=n.background,e.graph.background.clear()),t}class Lv extends Gp{get graph(){return this.options.graph}get model(){return this.graph.model}constructor(e){super(),this.padding={left:0,top:0,right:0,bottom:0},this.options=Pv(e),this.onUpdate=s.debounce(this.onUpdate,200);const t=this.graph.transform.getScale();this.sx=t.sx,this.sy=t.sy;const n=this.options.width||this.graph.options.width,r=this.options.height||this.graph.options.height;this.container=document.createElement("div"),h.addClass(this.container,this.prefixClassName(kv)),h.css(this.container,{width:n,height:r}),this.options.pageVisible&&h.addClass(this.container,this.prefixClassName(Sv)),this.options.className&&h.addClass(this.container,this.options.className);const i=this.graph.container;i.parentNode&&h.before(i,this.container),this.content=document.createElement("div"),h.addClass(this.content,this.prefixClassName(Bv)),h.css(this.content,{width:this.graph.options.width,height:this.graph.options.height}),
// custom background
this.background=document.createElement("div"),h.addClass(this.background,this.prefixClassName(Mv)),h.append(this.content,this.background),this.options.pageVisible||h.append(this.content,this.graph.view.grid),h.append(this.content,i),h.appendTo(this.content,this.container),this.startListening(),this.options.pageVisible||this.graph.grid.update(),this.backgroundManager=new Qv(this),this.options.autoResize||this.update()}startListening(){const e=this.graph,t=this.model;e.on("scale",this.onScale,this),e.on("resize",this.onResize,this),e.on("before:print",this.storeScrollPosition,this),e.on("before:export",this.storeScrollPosition,this),e.on("after:print",this.restoreScrollPosition,this),e.on("after:export",this.restoreScrollPosition,this),t.on("reseted",this.onUpdate,this),t.on("cell:added",this.onUpdate,this),t.on("cell:removed",this.onUpdate,this),t.on("cell:changed",this.onUpdate,this),this.delegateBackgroundEvents()}stopListening(){const e=this.graph,t=this.model;e.off("scale",this.onScale,this),e.off("resize",this.onResize,this),e.off("beforeprint",this.storeScrollPosition,this),e.off("beforeexport",this.storeScrollPosition,this),e.off("afterprint",this.restoreScrollPosition,this),e.off("afterexport",this.restoreScrollPosition,this),t.off("reseted",this.onUpdate,this),t.off("cell:added",this.onUpdate,this),t.off("cell:removed",this.onUpdate,this),t.off("cell:changed",this.onUpdate,this),this.undelegateBackgroundEvents()}enableAutoResize(){this.options.autoResize=!0}disableAutoResize(){this.options.autoResize=!1}onUpdate(){this.options.autoResize&&this.update()}delegateBackgroundEvents(e){const t=e||Pm.events;this.delegatedHandlers=Object.keys(t).reduce(((e,n)=>{const r=t[n];if(-1===n.indexOf(" "))if("function"==typeof r)e[n]=r;else{let t=this.graph.view[r];"function"==typeof t&&(t=t.bind(this.graph.view),e[n]=t)}return e}),{}),this.onBackgroundEvent=this.onBackgroundEvent.bind(this),Object.keys(this.delegatedHandlers).forEach((e=>{this.delegateEvent(e,{guarded:!1},this.onBackgroundEvent)}))}undelegateBackgroundEvents(){Object.keys(this.delegatedHandlers).forEach((e=>{this.undelegateEvent(e,this.onBackgroundEvent)}))}onBackgroundEvent(e){let t=!1;const n=e.target;if(this.options.pageVisible)t=this.options.background?this.background===n:this.content===n;else{const e=this.graph.view;t=e.background===n||e.grid===n}if(t){const t=this.delegatedHandlers[e.type];"function"==typeof t&&t.apply(this.graph,arguments)}}onResize(){this.cachedCenterPoint&&(this.centerPoint(this.cachedCenterPoint.x,this.cachedCenterPoint.y),this.updatePageBreak())}onScale({sx:e,sy:t,ox:n,oy:r}){this.updateScale(e,t),(n||r)&&(this.centerPoint(n,r),this.updatePageBreak());"function"==typeof this.options.autoResizeOptions&&this.update()}storeScrollPosition(){this.cachedScrollLeft=this.container.scrollLeft,this.cachedScrollTop=this.container.scrollTop}restoreScrollPosition(){this.container.scrollLeft=this.cachedScrollLeft,this.container.scrollTop=this.cachedScrollTop,this.cachedScrollLeft=null,this.cachedScrollTop=null}storeClientSize(){this.cachedClientSize={width:this.container.clientWidth,height:this.container.clientHeight}}restoreClientSize(){this.cachedClientSize=null}beforeManipulation(){(Tn||On)&&h.css(this.container,{visibility:"hidden"})}afterManipulation(){(Tn||On)&&h.css(this.container,{visibility:"visible"})}updatePageSize(e,t){null!=e&&(this.options.pageWidth=e),null!=t&&(this.options.pageHeight=t),this.updatePageBreak()}updatePageBreak(){if(this.pageBreak&&this.pageBreak.parentNode&&this.pageBreak.parentNode.removeChild(this.pageBreak),this.pageBreak=null,this.options.pageVisible&&this.options.pageBreak){const e=this.graph.options.width,t=this.graph.options.height,n=this.options.pageWidth*this.sx,r=this.options.pageHeight*this.sy;if(0===n||0===r)return;if(e>n||t>r){let i=!1;const a=document.createElement("div");for(let t=1,r=Math.floor(e/n);t<r;t+=1){const e=document.createElement("div");h.addClass(e,this.prefixClassName("graph-pagebreak-vertical")),h.css(e,{left:t*n}),h.appendTo(e,a),i=!0}for(let e=1,n=Math.floor(t/r);e<n;e+=1){const t=document.createElement("div");h.addClass(t,this.prefixClassName("graph-pagebreak-horizontal")),h.css(t,{top:e*r}),h.appendTo(t,a),i=!0}i&&(h.addClass(a,this.prefixClassName("graph-pagebreak")),h.after(this.graph.view.grid,a),this.pageBreak=a)}}}update(){const e=this.getClientSize();this.cachedCenterPoint=this.clientToLocalPoint(e.width/2,e.height/2);let t=this.options.autoResizeOptions;"function"==typeof t&&(t=s.call(t,this,this));const n=Object.assign({gridWidth:this.options.pageWidth,gridHeight:this.options.pageHeight,allowNewOrigin:"negative"},t);this.graph.fitToContent(this.getFitToContentOptions(n))}getFitToContentOptions(e){const t=this.sx,n=this.sy;return e.gridWidth&&(e.gridWidth*=t),e.gridHeight&&(e.gridHeight*=n),e.minWidth&&(e.minWidth*=t),e.minHeight&&(e.minHeight*=n),"object"==typeof e.padding?e.padding={left:(e.padding.left||0)*t,right:(e.padding.right||0)*t,top:(e.padding.top||0)*n,bottom:(e.padding.bottom||0)*n}:"number"==typeof e.padding&&(e.padding*=t),this.options.autoResize||(e.contentArea=mr.create()),e}updateScale(e,t){const n=this.graph.options,r=e/this.sx,i=t/this.sy;this.sx=e,this.sy=t,this.graph.translate(n.x*r,n.y*i),this.graph.transform.resize(n.width*r,n.height*i)}scrollbarPosition(e,t){if(null==e&&null==t)return{left:this.container.scrollLeft,top:this.container.scrollTop};const n={};return"number"==typeof e&&(n.scrollLeft=e),"number"==typeof t&&(n.scrollTop=t),h.prop(this.container,n),this}
/**
     * Try to scroll to ensure that the position (x,y) on the graph (in local
     * coordinates) is at the center of the viewport. If only one of the
     * coordinates is specified, only scroll in the specified dimension and
     * keep the other coordinate unchanged.
     */scrollToPoint(e,t){const n=this.getClientSize(),r=this.graph.matrix(),i={};return"number"==typeof e&&(i.scrollLeft=e-n.width/2+r.e+(this.padding.left||0)),"number"==typeof t&&(i.scrollTop=t-n.height/2+r.f+(this.padding.top||0)),h.prop(this.container,i),this}
/**
     * Try to scroll to ensure that the center of graph content is at the
     * center of the viewport.
     */scrollToContent(){const e=this.sx,t=this.sy,n=this.graph.getContentArea().getCenter();return this.scrollToPoint(n.x*e,n.y*t)}
/**
     * Try to scroll to ensure that the center of cell is at the center of
     * the viewport.
     */scrollToCell(e){const t=this.sx,n=this.sy,r=e.getBBox().getCenter();return this.scrollToPoint(r.x*t,r.y*n)}
/**
     * The center methods are more aggressive than the scroll methods. These
     * methods position the graph so that a specific point on the graph lies
     * at the center of the viewport, adding paddings around the paper if
     * necessary (e.g. if the requested point lies in a corner of the paper).
     * This means that the requested point will always move into the center
     * of the viewport. (Use the scroll functions to avoid adding paddings
     * and only scroll the viewport as far as the graph boundary.)
     */
/**
     * Position the center of graph to the center of the viewport.
     */center(e){return this.centerPoint(e)}centerPoint(e,t,n){const r=this.graph.matrix(),i=r.a,a=r.d,o=-r.e,s=-r.f,c=o+this.graph.options.width,l=s+this.graph.options.height;let u;// avoid multilple reflow
if(this.storeClientSize(),"number"==typeof e||"number"==typeof t){u=n;const r=this.getVisibleArea().getCenter();"number"==typeof e?e*=i:e=r.x,"number"==typeof t?t*=a:t=r.y}else u=e,e=(o+c)/2,// eslint-disable-line
t=(s+l)/2;if(u&&u.padding)return this.positionPoint({x:e,y:t},"50%","50%",u);const h=this.getPadding(),f=this.getClientSize(),d=f.width/2,p=f.height/2,g=d-h.left-e+o,m=d-h.right+e-c,v=p-h.top-t+s,y=p-h.bottom+t-l;this.addPadding(Math.max(g,0),Math.max(m,0),Math.max(v,0),Math.max(y,0));const A=this.scrollToPoint(e,t);return this.restoreClientSize(),A}centerContent(e){return this.positionContent("center",e)}centerCell(e,t){return this.positionCell(e,"center",t)}
/**
     * The position methods are a more general version of the center methods.
     * They position the graph so that a specific point on the graph lies at
     * requested coordinates inside the viewport.
     */
/**
     *
     */positionContent(e,t){const n=this.graph.getContentArea(t);return this.positionRect(n,e,t)}positionCell(e,t,n){const r=e.getBBox();return this.positionRect(r,t,n)}positionRect(e,t,n){const r=mr.create(e);switch(t){case"center":return this.positionPoint(r.getCenter(),"50%","50%",n);case"top":return this.positionPoint(r.getTopCenter(),"50%",0,n);case"top-right":return this.positionPoint(r.getTopRight(),"100%",0,n);case"right":return this.positionPoint(r.getRightMiddle(),"100%","50%",n);case"bottom-right":return this.positionPoint(r.getBottomRight(),"100%","100%",n);case"bottom":return this.positionPoint(r.getBottomCenter(),"50%","100%",n);case"bottom-left":return this.positionPoint(r.getBottomLeft(),0,"100%",n);case"left":return this.positionPoint(r.getLeftMiddle(),0,"50%",n);case"top-left":return this.positionPoint(r.getTopLeft(),0,0,n);default:return this}}positionPoint(e,t,n,r={}){const{padding:a}=r,o=M(r,["padding"]),s=i.normalizeSides(a),c=mr.fromSize(this.getClientSize()),l=c.clone().moveAndExpand({x:s.left,y:s.top,width:-s.right-s.left,height:-s.top-s.bottom});(
// eslint-disable-next-line
t=i.normalizePercentage(t,Math.max(0,l.width)))<0&&(t=l.width+t),(
// eslint-disable-next-line
n=i.normalizePercentage(n,Math.max(0,l.height)))<0&&(n=l.height+n);const u=l.getTopLeft().translate(t,n),h=c.getCenter().diff(u),f=this.zoom(),d=h.scale(1/f,1/f),p=gr.create(e).translate(d);return this.centerPoint(p.x,p.y,o)}zoom(e,t){if(null==e)return this.sx;// eslint-disable-line
let n,r;t=t||{};const i=this.getClientSize(),a=this.clientToLocalPoint(i.width/2,i.height/2);let o=e,s=e;if(t.absolute||(o+=this.sx,s+=this.sy),t.scaleGrid&&(o=Math.round(o/t.scaleGrid)*t.scaleGrid,s=Math.round(s/t.scaleGrid)*t.scaleGrid),t.maxScale&&(o=Math.min(t.maxScale,o),s=Math.min(t.maxScale,s)),t.minScale&&(o=Math.max(t.minScale,o),s=Math.max(t.minScale,s)),o=this.graph.transform.clampScale(o),s=this.graph.transform.clampScale(s),t.center){const e=o/this.sx,i=s/this.sy;n=t.center.x-(t.center.x-a.x)/e,r=t.center.y-(t.center.y-a.y)/i}else n=a.x,r=a.y;return this.beforeManipulation(),this.graph.transform.scale(o,s,n,r,!1),this.centerPoint(n,r),this.afterManipulation(),this}zoomToRect(e,t={}){const n=mr.create(e),r=this.graph;if(t.contentArea=n,null==t.viewportArea){const e=this.container.getBoundingClientRect();t.viewportArea={x:r.options.x,y:r.options.y,width:e.width,height:e.height}}this.beforeManipulation(),r.transform.scaleContentToFitImpl(t,!1);const i=n.getCenter();return this.centerPoint(i.x,i.y),this.afterManipulation(),this}zoomToFit(e={}){return this.zoomToRect(this.graph.getContentArea(e),e)}transitionToPoint(e,t,n){let r,i;"object"==typeof e&&(n=t,// eslint-disable-line
t=e.y,// eslint-disable-line
e=e.x),null==n&&(n={});const a=this.sx,o=Math.max(n.scale||a,1e-6),c=this.getClientSize(),l=new gr(e,t),u=this.clientToLocalPoint(c.width/2,c.height/2);if(a===o){const e=u.diff(l).scale(a,a).round();r=`translate(${e.x}px,${e.y}px)`}else{const e=o/(a-o)*l.distance(u),t=u.clone().move(l,e),n=this.localToBackgroundPoint(t).round();r=`scale(${o/a})`,i=`${n.x}px ${n.y}px`}const f=n.onTransitionEnd;return h.addClass(this.container,Tv),h.Event.off(this.content,Ov),h.Event.on(this.content,Ov,(n=>{this.syncTransition(o,{x:e,y:t}),"function"==typeof f&&s.call(f,this,n.originalEvent)})),h.css(this.content,{transform:r,transformOrigin:i,transition:"transform",transitionDuration:n.duration||"1s",transitionDelay:n.delay,transitionTimingFunction:n.timing}),this}syncTransition(e,t){return this.beforeManipulation(),this.graph.scale(e),this.removeTransition(),this.centerPoint(t.x,t.y),this.afterManipulation(),this}removeTransition(){return h.removeClass(this.container,Tv),h.Event.off(this.content,Ov),h.css(this.content,{transform:"",transformOrigin:"",transition:"",transitionDuration:"",transitionDelay:"",transitionTimingFunction:""}),this}transitionToRect(e,t={}){const n=mr.create(e),r=t.maxScale||1/0,i=t.minScale||Number.MIN_VALUE,a=t.scaleGrid||null,o=t.visibility||1,s=t.center?gr.create(t.center):n.getCenter(),c=this.getClientSize(),l=c.width*o,u=c.height*o;let h=new mr(s.x-l/2,s.y-u/2,l,u).getMaxUniformScaleToFit(n,s);return h=Math.min(h,r),a&&(h=Math.floor(h/a)*a),h=Math.max(i,h),this.transitionToPoint(s,Object.assign({scale:h},t))}startPanning(e){const t=this.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("pan:start",{e:t}),h.Event.on(document.body,{"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),h.Event.on(window,"mouseup.panning",this.stopPanning.bind(this))}pan(e){const t=this.normalizeEvent(e),n=t.clientX-this.clientX,r=t.clientY-this.clientY;this.container.scrollTop-=r,this.container.scrollLeft-=n,this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("panning",{e:t})}stopPanning(e){h.Event.off(document.body,".panning"),h.Event.off(window,".panning"),this.trigger("pan:stop",{e:e})}clientToLocalPoint(e,t){let n="object"==typeof e?e.x:e,r="object"==typeof e?e.y:t;const i=this.graph.matrix();return n+=this.container.scrollLeft-this.padding.left-i.e,r+=this.container.scrollTop-this.padding.top-i.f,new gr(n/i.a,r/i.d)}localToBackgroundPoint(e,t){const n="object"==typeof e?gr.create(e):new gr(e,t),r=this.graph.matrix(),i=this.padding;return f.transformPoint(n,r).translate(i.left,i.top)}resize(e,t){let n=null!=e?e:this.container.offsetWidth,r=null!=t?t:this.container.offsetHeight;"number"==typeof n&&(n=Math.round(n)),"number"==typeof r&&(r=Math.round(r)),this.options.width=n,this.options.height=r,h.css(this.container,{width:n,height:r}),this.update()}getClientSize(){return this.cachedClientSize?this.cachedClientSize:{width:this.container.clientWidth,height:this.container.clientHeight}}autoScroll(e,t){const n=10,r=this.container,i=r.getBoundingClientRect();let a=0,o=0;return e<=i.left+n&&(a=-10),t<=i.top+n&&(o=-10),e>=i.right-n&&(a=n),t>=i.bottom-n&&(o=n),0!==a&&(r.scrollLeft+=a),0!==o&&(r.scrollTop+=o),{scrollerX:a,scrollerY:o}}addPadding(e,t,n,r){let i=this.getPadding();this.padding={left:Math.round(i.left+(e||0)),top:Math.round(i.top+(n||0)),bottom:Math.round(i.bottom+(r||0)),right:Math.round(i.right+(t||0))},i=this.padding,h.css(this.content,{width:i.left+this.graph.options.width+i.right,height:i.top+this.graph.options.height+i.bottom});const a=this.graph.container;return a.style.left=`${this.padding.left}px`,a.style.top=`${this.padding.top}px`,this}getPadding(){const e=this.options.padding;return"function"==typeof e?i.normalizeSides(s.call(e,this,this)):i.normalizeSides(e)}
/**
     * Returns the untransformed size and origin of the current viewport.
     */getVisibleArea(){const e=this.graph.matrix(),t=this.getClientSize(),n={x:this.container.scrollLeft||0,y:this.container.scrollTop||0,width:t.width,height:t.height},r=f.transformRectangle(n,e.inverse());return r.x-=(this.padding.left||0)/this.sx,r.y-=(this.padding.top||0)/this.sy,r}isCellVisible(e,t={}){const n=e.getBBox(),r=this.getVisibleArea();return t.strict?r.containsRect(n):r.isIntersectWithRect(n)}isPointVisible(e){return this.getVisibleArea().containsPoint(e)}
/**
     * Lock the current viewport by disabling user scrolling.
     */lock(){return h.css(this.container,{overflow:"hidden"}),this}
/**
     * Enable user scrolling if previously locked.
     */unlock(){return h.css(this.container,{overflow:"scroll"}),this}onRemove(){this.stopListening()}dispose(){h.before(this.container,this.graph.container),this.remove()}}T([au()],Lv.prototype,"dispose",null);class Qv extends xm{get elem(){return this.scroller.background}constructor(e){super(e.graph),this.scroller=e,e.options.background&&this.draw(e.options.background)}init(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}updateBackgroundOptions(e){this.scroller.options.background=e}}
//# sourceMappingURL=scroller.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/scroller/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/scroller/api.js
Qm.prototype.lockScroller=function(){const e=this.getPlugin("scroller");return e&&e.lockScroller(),this},Qm.prototype.unlockScroller=function(){const e=this.getPlugin("scroller");return e&&e.unlockScroller(),this},Qm.prototype.updateScroller=function(){const e=this.getPlugin("scroller");return e&&e.updateScroller(),this},Qm.prototype.getScrollbarPosition=function(){const e=this.getPlugin("scroller");return e?e.getScrollbarPosition():{left:0,top:0}},Qm.prototype.setScrollbarPosition=function(e,t){const n=this.getPlugin("scroller");return n&&n.setScrollbarPosition(e,t),this};
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/stencil/grid.js
function Rv(e,t){return e.reduce(((e,n)=>Math.max(null==n?void 0:n.getSize()[t],e)),0)}function jv(e,t,n){const r=[];for(let i=n*t,a=i+n;i<a;i+=1)e[i]&&r.push(e[i]);return r}function Nv(e,t,n){const r=[];for(let i=t,a=e.length;i<a;i+=n)e[i]&&r.push(e[i]);return r}function Fv(e,t){return e.reduce(((e,t,n)=>(e.push(e[n]+t),e)),[t||0])}T([au()],
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/scroller/index.js
class extends ou{get pannable(){return!!this.options&&("object"==typeof this.options.pannable?this.options.pannable.enabled:!!this.options.pannable)}get container(){return this.scrollerImpl.container}constructor(e={}){super(),this.name="scroller",this.options=e,a.ensure(this.name,".x6-graph-scroller {\n  position: relative;\n  box-sizing: border-box;\n  overflow: scroll;\n  outline: none;\n}\n.x6-graph-scroller-content {\n  position: relative;\n}\n.x6-graph-scroller-background {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-graph-scroller .x6-graph {\n  position: absolute;\n  display: inline-block;\n  margin: 0;\n  box-shadow: none;\n}\n.x6-graph-scroller .x6-graph > svg {\n  display: block;\n}\n.x6-graph-scroller.x6-graph-scroller-paged .x6-graph {\n  box-shadow: 0 0 4px 0 #eee;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='false'] {\n  cursor: grab;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='true'] {\n  cursor: grabbing;\n  user-select: none;\n}\n.x6-graph-pagebreak {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-graph-pagebreak-vertical {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  box-sizing: border-box;\n  width: 1px;\n  border-left: 1px dashed #bdbdbd;\n}\n.x6-graph-pagebreak-horizontal {\n  position: absolute;\n  right: 0;\n  left: 0;\n  box-sizing: border-box;\n  height: 1px;\n  border-top: 1px dashed #bdbdbd;\n}\n")}init(e){this.graph=e;const t=Pv(Object.assign(Object.assign({enabled:!0},this.options),{graph:e}));this.options=t,this.scrollerImpl=new Lv(t),this.setup(),this.autoDisableGraphPanning(),this.startListening(),this.updateClassName(),this.scrollerImpl.center()}
// #region api
resize(e,t){this.scrollerImpl.resize(e,t)}resizePage(e,t){this.scrollerImpl.updatePageSize(e,t)}zoom(e,t){return void 0===e?this.scrollerImpl.zoom():(this.scrollerImpl.zoom(e,t),this)}zoomTo(e,t={}){return this.scrollerImpl.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})),this}zoomToRect(e,t={}){return this.scrollerImpl.zoomToRect(e,t),this}zoomToFit(e={}){return this.scrollerImpl.zoomToFit(e),this}center(e){return this.centerPoint(e)}centerPoint(e,t,n){return this.scrollerImpl.centerPoint(e,t,n),this}centerContent(e){return this.scrollerImpl.centerContent(e),this}centerCell(e,t){return this.scrollerImpl.centerCell(e,t),this}positionPoint(e,t,n,r={}){return this.scrollerImpl.positionPoint(e,t,n,r),this}positionRect(e,t,n){return this.scrollerImpl.positionRect(e,t,n),this}positionCell(e,t,n){return this.scrollerImpl.positionCell(e,t,n),this}positionContent(e,t){return this.scrollerImpl.positionContent(e,t),this}drawBackground(e,t){return null!=this.graph.options.background&&t||this.scrollerImpl.backgroundManager.draw(e),this}clearBackground(e){return null!=this.graph.options.background&&e||this.scrollerImpl.backgroundManager.clear(),this}isPannable(){return this.pannable}enablePanning(){this.pannable||(this.options.pannable=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.options.pannable=!1,this.updateClassName())}togglePanning(e){return null==e?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}lockScroller(){return this.scrollerImpl.lock(),this}unlockScroller(){return this.scrollerImpl.unlock(),this}updateScroller(){return this.scrollerImpl.update(),this}getScrollbarPosition(){return this.scrollerImpl.scrollbarPosition()}setScrollbarPosition(e,t){return this.scrollerImpl.scrollbarPosition(e,t),this}scrollToPoint(e,t){return this.scrollerImpl.scrollToPoint(e,t),this}scrollToContent(){return this.scrollerImpl.scrollToContent(),this}scrollToCell(e){return this.scrollerImpl.scrollToCell(e),this}transitionToPoint(e,t,n){return this.scrollerImpl.transitionToPoint(e,t,n),this}transitionToRect(e,t={}){return this.scrollerImpl.transitionToRect(e,t),this}enableAutoResize(){this.scrollerImpl.enableAutoResize()}disableAutoResize(){this.scrollerImpl.disableAutoResize()}autoScroll(e,t){return this.scrollerImpl.autoScroll(e,t)}clientToLocalPoint(e,t){return this.scrollerImpl.clientToLocalPoint(e,t)}getVisibleArea(){return this.scrollerImpl.getVisibleArea()}isCellVisible(e,t={}){return this.scrollerImpl.isCellVisible(e,t)}isPointVisible(e){return this.scrollerImpl.isPointVisible(e)}
// #endregion
setup(){this.scrollerImpl.on("*",((e,t)=>{this.trigger(e,t)}))}startListening(){let e=[];const t=this.options.pannable;e="object"==typeof t?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),h.Event.on(this.scrollerImpl.container,"mousedown",this.onRightMouseDown))}stopListening(){let e=[];const t=this.options.pannable;e="object"==typeof t?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&h.Event.off(this.scrollerImpl.container,"mousedown",this.onRightMouseDown)}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&(this.updateClassName(!0),this.scrollerImpl.startPanning(e),this.scrollerImpl.once("pan:stop",(()=>this.updateClassName(!1))))}preparePanning({e:e}){const t=this.allowPanning(e,!0),n=this.graph.getPlugin("selection"),r=n&&n.allowRubberband(e,!0);(t||this.allowPanning(e)&&!r)&&(this.updateClassName(!0),this.scrollerImpl.startPanning(e),this.scrollerImpl.once("pan:stop",(()=>this.updateClassName(!1))))}allowPanning(e,t){return this.pannable&&lu(e,this.options.modifiers,t)}updateClassName(e){const t=this.scrollerImpl.container,n=zf.prefix("graph-scroller-pannable");this.pannable?(h.addClass(t,n),t.dataset.panning=(!!e).toString()):h.removeClass(t,n)}
/**
     * 当 Scroller 插件启用时，默认关闭 Graph 的内置 panning，
     * 以避免滚动容器的拖拽与画布平移产生冲突。
     */autoDisableGraphPanning(){var e;const t=null===(e=this.graph)||void 0===e?void 0:e.panning;(null==t?void 0:t.pannable)&&t.disablePanning()}dispose(){this.scrollerImpl.dispose(),this.stopListening(),this.off(),a.clean(this.name)}}.prototype,"dispose",null);
//# sourceMappingURL=grid.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/stencil/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */
const zv={base:"widget-stencil",title:"widget-stencil-title",search:"widget-stencil-search",searchText:"widget-stencil-search-text",content:"widget-stencil-content",group:"widget-stencil-group",groupTitle:"widget-stencil-group-title",groupContent:"widget-stencil-group-content"},Hv="__default__",Uv=Object.assign({stencilGraphWidth:200,stencilGraphHeight:800,title:"Stencil",collapsable:!1,placeholder:"Search",notFoundText:"No matches found",layout(e,t){const n={columnWidth:this.options.stencilGraphWidth/2-10,columns:2,rowHeight:80,resizeToFit:!1,dx:10,dy:10};!function(e,t={}){const n=Xg.isModel(e)?e:(new Xg).resetCells(e,{sort:!1,dryrun:!0}),r=n.getNodes(),i=t.columns||1,a=Math.ceil(r.length/i),o=t.dx||0,s=t.dy||0,c=!1!==t.center,l=!0===t.resizeToFit,u=t.marginX||0,h=t.marginY||0,f=[];let d=t.columnWidth;if("compact"===d)for(let e=0;e<i;e+=1){const t=Nv(r,e,i);f.push(Rv(t,"width")+o)}else{null!=d&&"auto"!==d||(d=Rv(r,"width")+o);for(let e=0;e<i;e+=1)f.push(d)}const p=Fv(f,u),g=[];let m=t.rowHeight;if("compact"===m)for(let e=0;e<a;e+=1){const t=jv(r,e,i);g.push(Rv(t,"height")+s)}else{null!=m&&"auto"!==m||(m=Rv(r,"height")+s);for(let e=0;e<a;e+=1)g.push(m)}const v=Fv(g,h);n.startBatch("layout"),r.forEach(((e,n)=>{const r=n%i,a=Math.floor(n/i),u=f[r],h=g[a];let d=0,m=0,y=e.getSize();if(l){let n=u-2*o,r=h-2*s;const i=y.height*(y.width?n/y.width:1),a=y.width*(y.height?r/y.height:1);h<i?n=a:r=i,y={width:n,height:r},e.setSize(y,t)}c&&(d=(u-y.width)/2,m=(h-y.height)/2),e.position(p[r]+o+d,v[a]+s+m,t)})),n.stopBatch("layout")}(e,Object.assign(Object.assign(Object.assign({},n),this.options.layoutOptions),t?t.layoutOptions:{}))}},ev);
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/stencil/index.js
T([au()],class extends Gp{get targetScroller(){return this.options.target.getPlugin("scroller")}get targetGraph(){return this.options.target}get targetModel(){return this.targetGraph.model}constructor(e={}){super(),this.name="stencil",a.ensure(this.name,".x6-widget-dnd {\n  position: absolute;\n  top: -10000px;\n  left: -10000px;\n  z-index: 999999;\n  display: none;\n  cursor: move;\n  opacity: 0.7;\n  pointer-events: 'cursor';\n}\n.x6-widget-dnd.dragging {\n  display: inline-block;\n}\n.x6-widget-dnd.dragging * {\n  pointer-events: none !important;\n}\n.x6-widget-dnd .x6-graph {\n  background: transparent;\n  box-shadow: none;\n}\n.x6-widget-stencil {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-widget-stencil::after {\n  position: absolute;\n  top: 0;\n  display: block;\n  width: 100%;\n  height: 20px;\n  padding: 8px 0;\n  line-height: 20px;\n  text-align: center;\n  opacity: 0;\n  transition: top 0.1s linear, opacity 0.1s linear;\n  content: ' ';\n  pointer-events: none;\n}\n.x6-widget-stencil-content {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  height: auto;\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n.x6-widget-stencil .x6-node [magnet]:not([magnet='passive']) {\n  pointer-events: none;\n}\n.x6-widget-stencil-group {\n  padding: 0;\n  padding-bottom: 8px;\n  overflow: hidden;\n  user-select: none;\n}\n.x6-widget-stencil-group.collapsed {\n  height: auto;\n  padding-bottom: 0;\n}\n.x6-widget-stencil-group-title {\n  position: relative;\n  margin-top: 0;\n  margin-bottom: 0;\n  padding: 4px;\n  cursor: pointer;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  user-select: none;\n}\n.x6-widget-stencil .unmatched {\n  opacity: 0.3;\n}\n.x6-widget-stencil .x6-node.unmatched {\n  display: none;\n}\n.x6-widget-stencil-group.unmatched {\n  display: none;\n}\n.x6-widget-stencil-search-text {\n  position: relative;\n  z-index: 1;\n  box-sizing: border-box;\n  width: 100%;\n  height: 30px;\n  max-height: 30px;\n  line-height: 30px;\n  outline: 0;\n}\n.x6-widget-stencil.not-found::after {\n  opacity: 1;\n  content: attr(data-not-found-text);\n}\n.x6-widget-stencil.not-found.searchable::after {\n  top: 30px;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n  top: 50px;\n}\n.x6-widget-stencil {\n  color: #333;\n  background: #f5f5f5;\n}\n.x6-widget-stencil-content {\n  position: absolute;\n  top: 32px;\n}\n.x6-widget-stencil.searchable > .x6-widget-stencil-content {\n  top: 80px;\n}\n.x6-widget-stencil.not-found::after {\n  position: absolute;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n  top: 80px;\n}\n.x6-widget-stencil.not-found.searchable::after {\n  top: 60px;\n}\n.x6-widget-stencil-group {\n  height: auto;\n  margin-bottom: 1px;\n  padding: 0;\n  transition: none;\n}\n  .x6-widget-stencil-group .x6-graph {\n    background: transparent;\n    box-shadow: none;\n  }\n\n  .x6-widget-stencil .x6-node.x6-node-immovable {\n    cursor: move;\n  }\n.x6-widget-stencil-group.collapsed {\n  height: auto;\n  max-height: 31px;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n  position: relative;\n  left: 0;\n  box-sizing: border-box;\n  width: 100%;\n  height: 32px;\n  padding: 0 5px 0 8px;\n  color: #666;\n  font-weight: 700;\n  font-size: 12px;\n  line-height: 32px;\n  cursor: default;\n  transition: all 0.3;\n}\n.x6-widget-stencil-title:hover,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title:hover {\n  color: #444;\n}\n.x6-widget-stencil-title {\n  background: #e9e9e9;\n}\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n  background: #ededed;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title {\n  padding-left: 32px;\n  cursor: pointer;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n  position: absolute;\n  top: 6px;\n  left: 8px;\n  display: block;\n  width: 18px;\n  height: 18px;\n  margin: 0;\n  padding: 0;\n  background-color: transparent;\n  background-repeat: no-repeat;\n  background-position: 0 0;\n  border: none;\n  content: ' ';\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48L2c+PC9zdmc+');\n  opacity: 0.4;\n  transition: all 0.3s;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title:hover::before {\n  opacity: 0.6;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title::before {\n  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48cGF0aCBkPSJNOC44MTcgNS42MjN2Ni43NTZhLjU1OC41NTggMCAwMDEuMTE2IDBWNS42MjNhLjU1OC41NTggMCAxMC0xLjExNiAweiIvPjwvZz48L3N2Zz4=');\n  opacity: 0.4;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title:hover::before {\n  opacity: 0.6;\n}\n.x6-widget-stencil input[type='search'] {\n  appearance: textfield;\n}\n.x6-widget-stencil input[type='search']::-webkit-search-cancel-button,\n.x6-widget-stencil input[type='search']::-webkit-search-decoration {\n  appearance: none;\n}\n.x6-widget-stencil-search-text {\n  display: block;\n  width: 90%;\n  margin: 8px 5%;\n  padding-left: 8px;\n  color: #333;\n  background: #fff;\n  border: 1px solid #e9e9e9;\n  border-radius: 12px;\n  outline: 0;\n}\n.x6-widget-stencil-search-text:focus {\n  outline: 0;\n}\n.x6-widget-stencil::after {\n  color: #808080;\n  font-weight: 600;\n  font-size: 12px;\n  background: 0 0;\n}\n"),this.graphs={},this.groups={},this.options=Object.assign(Object.assign({},Uv),e),this.init()}init(){this.dnd=new tv(this.options),this.onSearch=s.debounce(this.onSearch,200),this.initContainer(),this.initSearch(),this.initContent(),this.initGroups(),this.setTitle(),this.startListening()}load(e,t){return Array.isArray(e)?this.loadGroup(e,t):this.options.groups&&Object.keys(this.options.groups).forEach((t=>{e[t]&&this.loadGroup(e[t],t)})),this}unload(e,t){return Array.isArray(e)?this.loadGroup(e,t,!0):this.options.groups&&Object.keys(this.options.groups).forEach((t=>{e[t]&&this.loadGroup(e[t],t,!0)})),this}toggleGroup(e){return this.isGroupCollapsed(e)?this.expandGroup(e):this.collapseGroup(e),this}collapseGroup(e){if(this.isGroupCollapsable(e)){const t=this.groups[e];t&&!this.isGroupCollapsed(e)&&(this.trigger("group:collapse",{name:e}),h.addClass(t,"collapsed"))}return this}expandGroup(e){if(this.isGroupCollapsable(e)){const t=this.groups[e];t&&this.isGroupCollapsed(e)&&(this.trigger("group:expand",{name:e}),h.removeClass(t,"collapsed"))}return this}isGroupCollapsable(e){const t=this.groups[e];return h.hasClass(t,"collapsable")}isGroupCollapsed(e){const t=this.groups[e];return t&&h.hasClass(t,"collapsed")}collapseGroups(){return Object.keys(this.groups).forEach((e=>{this.collapseGroup(e)})),this}expandGroups(){return Object.keys(this.groups).forEach((e=>{this.expandGroup(e)})),this}resizeGroup(e,t){const n=this.graphs[e];return n&&n.resize(t.width,t.height),this}addGroup(e){const t=Array.isArray(e)?e:[e];this.options.groups?this.options.groups.push(...t):this.options.groups=t,t.forEach((e=>{this.initGroup(e)}))}removeGroup(e){const t=Array.isArray(e)?e:[e];this.options.groups&&(this.options.groups=this.options.groups.filter((e=>!t.includes(e.name))),t.forEach((e=>{const t=this.graphs[e];this.unregisterGraphEvents(t),t.dispose(),delete this.graphs[e];const n=this.groups[e];h.remove(n),delete this.groups[e]})))}
// #endregion
initContainer(){this.container=document.createElement("div"),h.addClass(this.container,this.prefixClassName(zv.base)),h.attr(this.container,"data-not-found-text",this.options.notFoundText||"No matches found")}initContent(){this.content=document.createElement("div"),h.addClass(this.content,this.prefixClassName(zv.content)),h.appendTo(this.content,this.container)}buildGraphConfig(e){const t=this.options.stencilGraphOptions||{},n=null==e?void 0:e.graphOptions,r=Object.assign(Object.assign({},t),n);null==r.panning&&(r.panning=!1);return{mergedGraphOptions:r,width:e&&e.graphWidth||this.options.stencilGraphWidth,height:e&&e.graphHeight||this.options.stencilGraphHeight,model:r.model||new Xg}}createStencilGraph(e,t,n,r){const i=new Qm(Object.assign(Object.assign({},e),{container:document.createElement("div"),model:r,width:t,height:n,interacting:!1,preventDefaultBlankAction:!1}));return this.registerGraphEvents(i),i}initSearch(){this.options.search&&(h.addClass(this.container,"searchable"),h.append(this.container,this.renderSearch()))}initGroup(e){const t=document.createElement("div");h.addClass(t,this.prefixClassName(zv.group)),h.attr(t,"data-name",e.name),(null==e.collapsable&&this.options.collapsable||!1!==e.collapsable)&&h.addClass(t,"collapsable"),h.toggleClass(t,"collapsed",!0===e.collapsed);const n=document.createElement("h3");h.addClass(n,this.prefixClassName(zv.groupTitle)),n.innerHTML=e.title||e.name;const r=document.createElement("div");h.addClass(r,this.prefixClassName(zv.groupContent));const{mergedGraphOptions:i,width:a,height:o,model:s}=this.buildGraphConfig(e),c=this.createStencilGraph(i,a,o,s);h.append(r,c.container),h.append(t,[n,r]),h.appendTo(t,this.content),this.groups[e.name]=t,this.graphs[e.name]=c}initGroups(){if(this.clearGroups(),this.setCollapsableState(),this.options.groups&&this.options.groups.length)this.options.groups.forEach((e=>{this.initGroup(e)}));else{const{mergedGraphOptions:e,width:t,height:n,model:r}=this.buildGraphConfig(),i=this.createStencilGraph(e,t,n,r);h.append(this.content,i.container),this.graphs[Hv]=i}}setCollapsableState(){if(this.options.collapsable=this.options.collapsable&&this.options.groups&&this.options.groups.some((e=>!1!==e.collapsable)),this.options.collapsable){h.addClass(this.container,"collapsable");this.options.groups&&this.options.groups.every((e=>e.collapsed||!1===e.collapsable))?h.addClass(this.container,"collapsed"):h.removeClass(this.container,"collapsed")}else h.removeClass(this.container,"collapsable")}setTitle(){const e=document.createElement("div");h.addClass(e,this.prefixClassName(zv.title)),e.innerHTML=this.options.title,h.appendTo(e,this.container)}renderSearch(){const e=document.createElement("div");h.addClass(e,this.prefixClassName(zv.search));const t=document.createElement("input");return h.attr(t,{type:"search",placeholder:this.options.placeholder||"Search"}),h.addClass(t,this.prefixClassName(zv.searchText)),h.append(e,t),e}startListening(){const e=this.prefixClassName(zv.title),t=this.prefixClassName(zv.searchText),n=this.prefixClassName(zv.groupTitle);this.delegateEvents({[`click .${e}`]:"onTitleClick",[`touchstart .${e}`]:"onTitleClick",[`click .${n}`]:"onGroupTitleClick",[`touchstart .${n}`]:"onGroupTitleClick",[`input .${t}`]:"onSearch",[`focusin .${t}`]:"onSearchFocusIn",[`focusout .${t}`]:"onSearchFocusOut"})}stopListening(){this.undelegateEvents()}registerGraphEvents(e){e.on("cell:mousedown",this.onDragStart,this)}unregisterGraphEvents(e){e.off("cell:mousedown",this.onDragStart,this)}loadGroup(e,t,n){const r=this.getModel(t);if(r){const t=e.map((e=>Vg.isNode(e)?e:Vg.create(e)));!0===n?r.removeCells(t):r.resetCells(t)}const i=this.getGroup(t);let a=this.options.stencilGraphHeight;i&&null!=i.graphHeight&&(a=i.graphHeight);const o=i&&i.layout||this.options.layout;if(o&&r&&s.call(o,this,r,i),!a){const e=this.getGraph(t);e.fitToContent({minWidth:e.options.width,gridHeight:1,padding:i&&i.graphPadding||this.options.stencilGraphPadding||10})}return this}onDragStart(e){const{e:t,node:n}=e,r=this.getGroupByNode(n);if(r&&!1===r.nodeMovable)return;
// 当在 Stencil 中拖拽节点时，禁用该分组 Graph 的平移（panning）
const i=this.getGraph(r?r.name:void 0),a=!(!i||"function"!=typeof i.isPannable)&&i.isPannable();a&&i.disablePanning();
// 在拖拽结束（document mouseup/touchend）后恢复之前的 panning 状态。
const o=()=>{a&&i.enablePanning(),this.undelegateDocumentEvents()};this.delegateDocumentEvents({mouseup:o,touchend:o,touchcancel:o}),this.dnd.start(n,t)}filter(e,t){const n=Object.keys(this.graphs).reduce(((n,r)=>{const i=this.graphs[r],a=r===Hv?null:r,o=i.model.getNodes().filter((n=>{let r=!1;r="function"==typeof t?s.call(t,this,n,e,a,this):"boolean"==typeof t?t:this.isCellMatched(n,e,t,e.toLowerCase()!==e);const o=i.renderer.findViewByCell(n);return o&&h.toggleClass(o.container,"unmatched",!r),r})),c=o.length>0,l=this.options,u=new Xg;return u.resetCells(o),l.layout&&s.call(l.layout,this,u,this.getGroup(r)),this.groups[r]&&h.toggleClass(this.groups[r],"unmatched",!c),i.fitToContent({gridWidth:1,gridHeight:1,padding:l.stencilGraphPadding||10}),n||c}),!1);h.toggleClass(this.container,"not-found",!n)}isCellMatched(e,t,n,r){return!t||!n||Object.keys(n).some((i=>{if("*"===i||e.shape===i){const a=n[i];if("boolean"==typeof a)return a;return(Array.isArray(a)?a:[a]).some((n=>{let i=e.getPropByPath(n);return null!=i&&(i=`${i}`,r||(i=i.toLowerCase()),i.indexOf(t)>=0)}))}return!1}))}onSearch(e){this.filter(e.target.value,this.options.search)}onSearchFocusIn(){h.addClass(this.container,"is-focused")}onSearchFocusOut(){h.removeClass(this.container,"is-focused")}onTitleClick(){this.options.collapsable&&(h.toggleClass(this.container,"collapsed"),h.hasClass(this.container,"collapsed")?this.collapseGroups():this.expandGroups())}onGroupTitleClick(e){const t=e.target.closest(`.${this.prefixClassName(zv.group)}`);t&&this.toggleGroup(h.attr(t,"data-name")||"");const n=Object.keys(this.groups).every((e=>{const t=this.getGroup(e),n=this.groups[e];return t&&!1===t.collapsable||h.hasClass(n,"collapsed")}));h.toggleClass(this.container,"collapsed",n)}getModel(e){const t=this.getGraph(e);return t?t.model:null}getGraph(e){return this.graphs[e||Hv]}getGroup(e){const t=this.options.groups;return null!=e&&t&&t.length?t.find((t=>t.name===e)):null}getGroupByNode(e){const t=this.options.groups;return t?t.find((t=>{const n=this.getModel(t.name);return!!n&&n.has(e.id)})):null}clearGroups(){Object.keys(this.graphs).forEach((e=>{const t=this.graphs[e];this.unregisterGraphEvents(t),t.dispose()})),Object.keys(this.groups).forEach((e=>{const t=this.groups[e];h.remove(t)})),this.graphs={},this.groups={}}onRemove(){this.clearGroups(),this.dnd.remove(),this.stopListening(),this.undelegateDocumentEvents()}dispose(){this.remove(),a.clean(this.name)}}.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/snapline/snapline.js
class Gv extends Gp{get model(){return this.graph.model}get containerClassName(){return this.prefixClassName("widget-snapline")}get verticalClassName(){return`${this.containerClassName}-vertical`}get horizontalClassName(){return`${this.containerClassName}-horizontal`}constructor(e){super();const{graph:t}=e,n=M(e,["graph"]);this.graph=t,this.options=Object.assign({},n),this.offset={x:0,y:0},this.render(),this.disabled||this.startListening()}get disabled(){return!0!==this.options.enabled}enable(){this.disabled&&(this.options.enabled=!0,this.startListening())}disable(){this.disabled||(this.options.enabled=!1,this.stopListening())}setFilter(e){this.options.filter=e}render(){const e=this.containerWrapper=new Ss("svg"),t=this.horizontal=new Ss("line"),n=this.vertical=new Ss("line");e.addClass(this.containerClassName),t.addClass(this.horizontalClassName),n.addClass(this.verticalClassName),e.setAttribute("width","100%"),e.setAttribute("height","100%"),t.setAttribute("display","none"),n.setAttribute("display","none"),e.append([t,n]),this.options.className&&e.addClass(this.options.className),this.container=this.containerWrapper.node}startListening(){this.stopListening(),this.graph.on("node:mousedown",this.captureCursorOffset,this),this.graph.on("node:mousemove",this.snapOnMoving,this),this.model.on("batch:stop",this.onBatchStop,this),this.delegateDocumentEvents({mouseup:"hide",touchend:"hide"})}stopListening(){this.graph.off("node:mousedown",this.captureCursorOffset,this),this.graph.off("node:mousemove",this.snapOnMoving,this),this.model.off("batch:stop",this.onBatchStop,this),this.undelegateDocumentEvents()}onBatchStop({name:e,data:t}){"resize"===e&&this.snapOnResizing(t.cell,t)}captureCursorOffset({view:e,x:t,y:n}){const r=e.getDelegatedView();if(r&&this.isNodeMovable(r)){const r=e.cell.getPosition();this.offset={x:t-r.x,y:n-r.y}}}isNodeMovable(e){return e&&e.cell.isNode()&&e.can("nodeMovable")}getRestrictArea(e){const t=this.graph.options.translating.restrict,n="function"==typeof t?s.call(t,this.graph,e):t;return"number"==typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}snapOnResizing(e,t){if(this.options.resizing&&!t.snapped&&t.ui&&t.direction&&t.trueDirection){const n=this.graph.renderer.findViewByCell(e);if(n&&n.cell.isNode()){const i=e.getBBox(),a=i.bbox(e.getAngle()),o=a.getTopLeft(),s=a.getBottomRight(),c=sr(e.getAngle()),l=this.options.tolerance||0;let u,h,f,d,p,g;const m={vertical:0,horizontal:0},v=t.direction,y=t.trueDirection,A=t.relativeDirection;-1!==y.indexOf("right")?m.vertical=s.x:m.vertical=o.x,-1!==y.indexOf("bottom")?m.horizontal=s.y:m.horizontal=o.y,this.model.getNodes().some((t=>{if(this.isIgnored(e,t))return!1;const n=t.getBBox().bbox(t.getAngle()),i=n.getTopLeft(),o=n.getBottomRight(),c={vertical:[i.x,o.x],horizontal:[i.y,o.y]},v={};return Object.keys(c).forEach((e=>{const t=e,n=c[t].map((e=>({position:e,distance:Math.abs(e-m[t])}))).filter((e=>e.distance<=l));v[t]=r.sortBy(n,(e=>e.distance))})),null==u&&v.vertical.length>0&&(u=v.vertical[0].position,h=Math.min(a.y,n.y),f=Math.max(s.y,o.y)-h),null==d&&v.horizontal.length>0&&(d=v.horizontal[0].position,p=Math.min(a.x,n.x),g=Math.max(s.x,o.x)-p),null!=u&&null!=d})),this.hide();let b=0,w=0;null==d&&null==u||(null!=u&&(b=-1!==y.indexOf("right")?u-s.x:o.x-u),null!=d&&(w=-1!==y.indexOf("bottom")?d-s.y:o.y-d));let x=0,C=0;if(c%90==0)90===c||270===c?(x=w,C=b):(x=b,C=w);else{const e=c>=0&&c<90?1:c>=90&&c<180?4:c>=180&&c<270?3:2;null!=d&&null!=u&&(b<w?(w=0,d=void 0):(b=0,u=void 0));const t=or(c%90);b&&(x=3===e?b/Math.cos(t):b/Math.sin(t)),w&&(C=3===e?w/Math.cos(t):w/Math.sin(t));const n=1===e||3===e;switch(A){case"top":case"bottom":C=w?w/(n?Math.cos(t):Math.sin(t)):b/(n?Math.sin(t):Math.cos(t));break;case"left":case"right":x=b?b/(n?Math.cos(t):Math.sin(t)):w/(n?Math.sin(t):Math.cos(t))}}switch(A){case"top":case"bottom":x=0;break;case"left":case"right":C=0}const _=this.graph.getGridSize();let I=Math.max(i.width+x,_),E=Math.max(i.height+C,_);t.minWidth&&t.minWidth>_&&(I=Math.max(I,t.minWidth)),t.minHeight&&t.minHeight>_&&(E=Math.max(E,t.minHeight)),t.maxWidth&&(I=Math.min(I,t.maxWidth)),t.maxHeight&&(E=Math.min(E,t.maxHeight)),t.preserveAspectRatio&&(C<x?E=I*(i.height/i.width):I=E*(i.width/i.height)),I===i.width&&E===i.height||(e.resize(I,E,{direction:v,relativeDirection:A,trueDirection:y,snapped:!0,snaplines:this.cid,restrict:this.getRestrictArea(n)}),f&&(f+=E-i.height),g&&(g+=I-i.width));const k=e.getBBox().bbox(c);u&&Math.abs(k.x-u)>1&&Math.abs(k.width+k.x-u)>1&&(u=void 0),d&&Math.abs(k.y-d)>1&&Math.abs(k.height+k.y-d)>1&&(d=void 0),this.update({verticalLeft:u,verticalTop:h,verticalHeight:f,horizontalTop:d,horizontalLeft:p,horizontalWidth:g})}}}snapOnMoving({view:e,e:t,x:n,y:r}){const i=e.getEventData(t).delegatedView||e;if(!this.isNodeMovable(i))return;const a=i.cell,o=a.getSize(),s=a.getPosition(),c=new mr(n-this.offset.x,r-this.offset.y,o.width,o.height),l=a.getAngle(),u=c.getCenter(),h=c.bbox(l),f=h.getTopLeft(),d=h.getBottomRight(),p=this.options.tolerance||0;let g,m,v,y,A,b,w=0,x=0;if(this.model.getNodes().some((e=>{if(this.isIgnored(a,e))return!1;const t=e.getBBox().bbox(e.getAngle()),n=t.getCenter(),r=t.getTopLeft(),i=t.getBottomRight();return null==g&&(Math.abs(n.x-u.x)<p?(g=n.x,w=.5):Math.abs(r.x-f.x)<p?(g=r.x,w=0):Math.abs(r.x-d.x)<p?(g=r.x,w=1):Math.abs(i.x-d.x)<p?(g=i.x,w=1):Math.abs(i.x-f.x)<p&&(g=i.x),null!=g&&(m=Math.min(h.y,t.y),v=Math.max(d.y,i.y)-m)),null==y&&(Math.abs(n.y-u.y)<p?(y=n.y,x=.5):Math.abs(r.y-f.y)<p?y=r.y:Math.abs(r.y-d.y)<p?(y=r.y,x=1):Math.abs(i.y-d.y)<p?(y=i.y,x=1):Math.abs(i.y-f.y)<p&&(y=i.y),null!=y&&(A=Math.min(h.x,t.x),b=Math.max(d.x,i.x)-A)),null!=g&&null!=y})),this.hide(),null!=y||null!=g){null!=y&&(h.y=y-x*h.height),null!=g&&(h.x=g-w*h.width);const e=h.getCenter(),t=e.x-c.width/2,n=e.y-c.height/2,r=t-s.x,o=n-s.y;0===r&&0===o||(a.translate(r,o,{snapped:!0,restrict:this.getRestrictArea(i)}),b&&(b+=r),v&&(v+=o)),this.update({verticalLeft:g,verticalTop:m,verticalHeight:v,horizontalTop:y,horizontalLeft:A,horizontalWidth:b})}}isIgnored(e,t){return t.id===e.id||t.isDescendantOf(e)||!this.filter(t)}filter(e){const t=this.options.filter;return Array.isArray(t)?t.some((t=>"string"==typeof t?e.shape===t:e.id===t.id)):"function"!=typeof t||s.call(t,this.graph,e)}update(e){
// https://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations
if(e.horizontalTop){const t=this.graph.localToGraph(new gr(e.horizontalLeft,e.horizontalTop)),n=this.graph.localToGraph(new gr(e.horizontalLeft+e.horizontalWidth,e.horizontalTop));this.horizontal.setAttributes({x1:this.options.sharp?`${t.x}`:"0",y1:`${t.y}`,x2:this.options.sharp?`${n.x}`:"100%",y2:`${n.y}`,display:"inherit"})}else this.horizontal.setAttribute("display","none");if(e.verticalLeft){const t=this.graph.localToGraph(new gr(e.verticalLeft,e.verticalTop)),n=this.graph.localToGraph(new gr(e.verticalLeft,e.verticalTop+e.verticalHeight));this.vertical.setAttributes({x1:`${t.x}`,y1:this.options.sharp?`${t.y}`:"0",x2:`${n.x}`,y2:this.options.sharp?`${n.y}`:"100%",display:"inherit"})}else this.vertical.setAttribute("display","none");this.show()}resetTimer(){this.timer&&(clearTimeout(this.timer),this.timer=null)}show(){return this.resetTimer(),null==this.container.parentNode&&this.graph.container.appendChild(this.container),this}hide(){this.resetTimer(),this.vertical.setAttribute("display","none"),this.horizontal.setAttribute("display","none");const e=this.options.clean,t="number"==typeof e?e:!1!==e?3e3:0;return t>0&&(this.timer=window.setTimeout((()=>{null!==this.container.parentNode&&this.unmount()}),t)),this}onRemove(){this.stopListening(),this.hide()}dispose(){this.remove()}}T([au()],Gv.prototype,"dispose",null);
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/snapline/api.js
Qm.prototype.isSnaplineEnabled=function(){const e=this.getPlugin("snapline");return!!e&&e.isEnabled()},Qm.prototype.enableSnapline=function(){const e=this.getPlugin("snapline");return e&&e.enable(),this},Qm.prototype.disableSnapline=function(){const e=this.getPlugin("snapline");return e&&e.disable(),this},Qm.prototype.toggleSnapline=function(){const e=this.getPlugin("snapline");return e&&e.toggleEnabled(),this},Qm.prototype.hideSnapline=function(){const e=this.getPlugin("snapline");return e&&e.hide(),this},Qm.prototype.setSnaplineFilter=function(e){const t=this.getPlugin("snapline");return t&&t.setFilter(e),this},Qm.prototype.isSnaplineOnResizingEnabled=function(){const e=this.getPlugin("snapline");return!!e&&e.isOnResizingEnabled()},Qm.prototype.enableSnaplineOnResizing=function(){const e=this.getPlugin("snapline");return e&&e.enableOnResizing(),this},Qm.prototype.disableSnaplineOnResizing=function(){const e=this.getPlugin("snapline");return e&&e.disableOnResizing(),this},Qm.prototype.toggleSnaplineOnResizing=function(e){const t=this.getPlugin("snapline");return t&&t.toggleOnResizing(e),this},Qm.prototype.isSharpSnapline=function(){const e=this.getPlugin("snapline");return!!e&&e.isSharp()},Qm.prototype.enableSharpSnapline=function(){const e=this.getPlugin("snapline");return e&&e.enableSharp(),this},Qm.prototype.disableSharpSnapline=function(){const e=this.getPlugin("snapline");return e&&e.disableSharp(),this},Qm.prototype.toggleSharpSnapline=function(e){const t=this.getPlugin("snapline");return t&&t.toggleSharp(e),this},Qm.prototype.getSnaplineTolerance=function(){const e=this.getPlugin("snapline");if(e)return e.getTolerance()},Qm.prototype.setSnaplineTolerance=function(e){const t=this.getPlugin("snapline");return t&&t.setTolerance(e),this};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/snapline/index.js
class Vv extends iu{constructor(e={}){super(),this.name="snapline",this.options=Object.assign({enabled:!0,tolerance:10},e),a.ensure(this.name,".x6-widget-snapline {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  pointer-events: none;\n}\n.x6-widget-snapline-vertical,\n.x6-widget-snapline-horizontal {\n  stroke: #2ecc71;\n  stroke-width: 1px;\n}\n")}init(e){this.snaplineImpl=new Gv(Object.assign(Object.assign({},this.options),{graph:e}))}
// #region api
isEnabled(){return!this.snaplineImpl.disabled}enable(){this.snaplineImpl.enable()}disable(){this.snaplineImpl.disable()}toggleEnabled(e){if(null==e)return this.isEnabled()?this.disable():this.enable(),this;e!==this.isEnabled()&&(e?this.enable():this.disable())}hide(){return this.snaplineImpl.hide(),this}setFilter(e){return this.snaplineImpl.setFilter(e),this}isOnResizingEnabled(){return!0===this.snaplineImpl.options.resizing}enableOnResizing(){return this.snaplineImpl.options.resizing=!0,this}disableOnResizing(){return this.snaplineImpl.options.resizing=!1,this}toggleOnResizing(e){return null!=e?e!==this.isOnResizingEnabled()&&(e?this.enableOnResizing():this.disableOnResizing()):this.isOnResizingEnabled()?this.disableOnResizing():this.enableOnResizing(),this}isSharp(){return!0===this.snaplineImpl.options.sharp}enableSharp(){return this.snaplineImpl.options.sharp=!0,this}disableSharp(){return this.snaplineImpl.options.sharp=!1,this}toggleSharp(e){return null!=e?e!==this.isSharp()&&(e?this.enableSharp():this.disableSharp()):this.isSharp()?this.disableSharp():this.enableSharp(),this}getTolerance(){return this.snaplineImpl.options.tolerance}setTolerance(e){return this.snaplineImpl.options.tolerance=e,this}captureCursorOffset(e){this.snaplineImpl.captureCursorOffset(e)}snapOnMoving(e){this.snaplineImpl.snapOnMoving(e)}
// #endregion
dispose(){this.snaplineImpl.dispose(),a.clean(this.name)}}T([au()],Vv.prototype,"dispose",null);
//# sourceMappingURL=index.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/transform/style/raw.js
/* eslint-disable */
/**
 * Auto generated file, do not modify it!
 */
const Wv="has-widget-transform",qv=["nw","n","ne","e","se","s","sw","w"],Yv=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],Kv={minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,rotateGrid:15,rotatable:!0,preserveAspectRatio:!1,orthogonalResizing:!0,restrictedResizing:!1,autoScrollOnResizing:!0,allowReverse:!0};
//# sourceMappingURL=raw.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/transform/transform.js
class $v extends Gp{get model(){return this.graph.model}get view(){return this.graph.renderer.findViewByCell(this.node)}get containerClassName(){return this.prefixClassName("widget-transform")}get resizeClassName(){return`${this.containerClassName}-resize`}get rotateClassName(){return`${this.containerClassName}-rotate`}constructor(e,t,n){super(),this.node=t,this.graph=n,this.options=Object.assign(Object.assign({},Kv),e),this.render(),this.startListening()}startListening(){this.delegateEvents({[`mousedown .${this.resizeClassName}`]:"startResizing",[`touchstart .${this.resizeClassName}`]:"startResizing",[`mousedown .${this.rotateClassName}`]:"startRotating",[`touchstart .${this.rotateClassName}`]:"startRotating"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.node.on("removed",this.remove,this),this.model.on("reseted",this.remove,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this)}stopListening(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.node.off("removed",this.remove,this),this.model.off("reseted",this.remove,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this)}renderHandles(){this.container=document.createElement("div");const e=document.createElement("div");h.attr(e,"draggable","false");const t=e.cloneNode(!0);h.addClass(t,this.rotateClassName);const n=Yv.map((t=>{const n=e.cloneNode(!0);return h.addClass(n,this.resizeClassName),h.attr(n,"data-position",t),n}));this.empty(),h.append(this.container,[...n,t])}render(){return this.renderHandles(),this.view&&this.view.addClass(Wv),h.addClass(this.container,this.containerClassName),h.toggleClass(this.container,"no-orth-resize",this.options.preserveAspectRatio||!this.options.orthogonalResizing),h.toggleClass(this.container,"no-resize",!this.options.resizable),h.toggleClass(this.container,"no-rotate",!this.options.rotatable),this.options.className&&h.addClass(this.container,this.options.className),this.graph.container.appendChild(this.container),this.update()}update(){const e=this.graph.matrix(),t=this.node.getBBox();t.x*=e.a,t.x+=e.e,t.y*=e.d,t.y+=e.f,t.width*=e.a,t.height*=e.d;const n=sr(this.node.getAngle()),r=0!==n?`rotate(${n}deg)`:"";return h.css(this.container,{transform:r,width:t.width,height:t.height,left:t.x,top:t.y}),this.updateResizerDirections(),this}remove(){return this.view&&this.view.removeClass(Wv),super.remove()}onKnobMouseDown(){this.startHandle()}onKnobMouseUp(){this.stopHandle()}updateResizerDirections(){
// Update the directions on the resizer divs while the node being rotated.
// The directions are represented by cardinal points (N,S,E,W). For example
// the div originally pointed to north needs to be changed to point to south
// if the node was rotated by 180 degrees.
const e=sr(this.node.getAngle()),t=Math.floor(e*(qv.length/360));if(t!==this.prevShift){
// Create the current directions array based on the calculated shift.
const e=qv.slice(t).concat(qv.slice(0,t)),n=e=>`${this.containerClassName}-cursor-${e}`;this.container.querySelectorAll(`.${this.resizeClassName}`).forEach(((t,r)=>{h.removeClass(t,qv.map((e=>n(e))).join(" ")),h.addClass(t,n(e[r]))})),this.prevShift=t}}getTrueDirection(e){const t=sr(this.node.getAngle());let n=Yv.indexOf(e);return n+=Math.floor(t*(Yv.length/360)),n%=Yv.length,Yv[n]}toValidResizeDirection(e){return{top:"top-left",bottom:"bottom-right",left:"bottom-left",right:"top-right"}[e]||e}startResizing(e){e.stopPropagation(),this.model.startBatch("resize",{cid:this.cid});const t=h.attr(e.target,"data-position");this.prepareResizing(e,t),this.startAction(e)}prepareResizing(e,t){const n=this.getTrueDirection(t);let r=0,i=0;t.split("-").forEach((e=>{r={left:-1,right:1}[e]||r,i={top:-1,bottom:1}[e]||i}));const a=this.toValidResizeDirection(t),o={"top-right":"bottomLeft","top-left":"bottomRight","bottom-left":"topRight","bottom-right":"topLeft"}[a],s=sr(this.node.getAngle());this.setEventData(e,{selector:o,direction:a,trueDirection:n,relativeDirection:t,angle:s,resizeX:r,resizeY:i,action:"resizing"})}startRotating(e){e.stopPropagation(),this.model.startBatch("rotate",{cid:this.cid});const t=this.node.getBBox().getCenter(),n=this.normalizeEvent(e),r=this.graph.snapToGrid(n.clientX,n.clientY);this.setEventData(e,{center:t,action:"rotating",angle:sr(this.node.getAngle()),start:gr.create(r).theta(t)}),this.startAction(e)}onMouseMove(e){const t=this.graph.findViewByCell(this.node);let n=this.getEventData(e);if(n.action){const r=this.normalizeEvent(e);let a=r.clientX,o=r.clientY;const s=this.graph.getPlugin("scroller"),c=this.options.restrictedResizing;if(!0===c||"number"==typeof c){const e=!0===c?0:c,t=s?Math.max(e,8):e,n=this.graph.container.getBoundingClientRect();a=i.clamp(a,n.left+t,n.right-t),o=i.clamp(o,n.top+t,n.bottom-t)}else this.options.autoScrollOnResizing&&s&&s.autoScroll(a,o);const l=this.graph.snapToGrid(a,o),u=this.graph.getGridSize(),h=this.node,f=this.options;if("resizing"===n.action){n.resized||(t&&(t.addClass("node-resizing"),this.notify("node:resize",e,t)),n.resized=!0);const r=h.getBBox(),i=gr.create(l).rotate(n.angle,r.getCenter()).diff(r[n.selector]);let a=n.resizeX?i.x*n.resizeX:r.width,o=n.resizeY?i.y*n.resizeY:r.height;const s=a,c=o;if(a=hr(a,u),o=hr(o,u),a=Math.max(a,f.minWidth||u),o=Math.max(o,f.minHeight||u),a=Math.min(a,f.maxWidth||1/0),o=Math.min(o,f.maxHeight||1/0),f.preserveAspectRatio){const e=r.width*o/r.height,t=r.height*a/r.width;a<e?o=t:a=e}const d=n.relativeDirection;if(f.allowReverse&&(s<=-a||c<=-o)){let t;"left"===d?s<=-a&&(t="right"):"right"===d?s<=-a&&(t="left"):"top"===d?c<=-o&&(t="bottom"):"bottom"===d?c<=-o&&(t="top"):"top-left"===d?s<=-a&&c<=-o?t="bottom-right":s<=-a?t="top-right":c<=-o&&(t="bottom-left"):"top-right"===d?s<=-a&&c<=-o?t="bottom-left":s<=-a?t="top-left":c<=-o&&(t="bottom-right"):"bottom-left"===d?s<=-a&&c<=-o?t="top-right":s<=-a?t="bottom-right":c<=-o&&(t="top-left"):"bottom-right"===d&&(s<=-a&&c<=-o?t="top-left":s<=-a?t="bottom-left":c<=-o&&(t="top-right"));const n=t;this.stopHandle();const r=this.container.querySelector(`.${this.resizeClassName}[data-position="${n}"]`);this.startHandle(r),this.prepareResizing(e,n),this.onMouseMove(e)}if(r.width!==a||r.height!==o){const r={ui:!0,direction:n.direction,relativeDirection:n.relativeDirection,trueDirection:n.trueDirection,minWidth:f.minWidth,minHeight:f.minHeight,maxWidth:f.maxWidth,maxHeight:f.maxHeight,preserveAspectRatio:!0===f.preserveAspectRatio};h.resize(a,o,r),this.notify("node:resizing",e,t)}}else if("rotating"===n.action){n.rotated||(t&&(t.addClass("node-rotating"),this.notify("node:rotate",e,t)),n.rotated=!0);const r=h.getAngle(),i=n.start-gr.create(l).theta(n.center);let a=n.angle+i;f.rotateGrid&&(a=hr(a,f.rotateGrid)),a=sr(a),r!==a&&(h.rotate(a,{absolute:!0}),this.notify("node:rotating",e,t))}}}onMouseUp(e){const t=this.getEventData(e);t.action&&(this.stopAction(e),this.model.stopBatch("resizing"===t.action?"resize":"rotate",{cid:this.cid}))}startHandle(e){if(this.handle=e||null,h.addClass(this.container,`${this.containerClassName}-active`),e){h.addClass(e,`${this.containerClassName}-active-handle`);const t=e.getAttribute("data-position");if(t){const e=qv[Yv.indexOf(t)];h.addClass(this.container,`${this.containerClassName}-cursor-${e}`)}}}stopHandle(){if(h.removeClass(this.container,`${this.containerClassName}-active`),this.handle){h.removeClass(this.handle,`${this.containerClassName}-active-handle`);const e=this.handle.getAttribute("data-position");if(e){const t=qv[Yv.indexOf(e)];h.removeClass(this.container,`${this.containerClassName}-cursor-${t}`)}this.handle=null}}startAction(e){this.startHandle(e.target),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(cm,e.data)}stopAction(e){this.stopHandle(),this.undelegateDocumentEvents(),this.graph.view.delegateEvents();const t=this.graph.findViewByCell(this.node),n=this.getEventData(e);t&&(t.removeClass(`node-${n.action}`),"resizing"===n.action&&n.resized?this.notify("node:resized",e,t):"rotating"===n.action&&n.rotated&&this.notify("node:rotated",e,t))}notify(e,t,n,r={}){if(n){const i=n.graph,a=i.view.normalizeEvent(t),o=i.snapToGrid(a.clientX,a.clientY);this.trigger(e,Object.assign({e:a,view:n,node:n.cell,cell:n.cell,x:o.x,y:o.y},r))}}dispose(){this.stopListening(),this.remove(),this.off()}}T([au()],$v.prototype,"dispose",null),
//# sourceMappingURL=transform.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/transform/api.js
Qm.prototype.createTransformWidget=function(e){const t=this.getPlugin("transform");return t&&t.createWidget(e),this},Qm.prototype.clearTransformWidgets=function(){const e=this.getPlugin("transform");return e&&e.clearWidgets(),this};
//# sourceMappingURL=api.js.map
// CONCATENATED MODULE: ./node_modules/@antv/x6/es/plugin/transform/index.js
class Jv extends ou{constructor(e={}){super(),this.name="transform",this.widgets=new Map,this.disabled=!1,this.options=e,a.ensure(this.name,".x6-widget-transform {\n  position: absolute;\n  box-sizing: content-box !important;\n  margin: -5px 0 0 -5px;\n  padding: 4px;\n  border: 1px dashed #000;\n  border-radius: 5px;\n  user-select: none;\n  pointer-events: none;\n}\n.x6-widget-transform > div {\n  position: absolute;\n  box-sizing: border-box;\n  background-color: #fff;\n  border: 1px solid #000;\n  transition: background-color 0.2s;\n  pointer-events: auto;\n  -webkit-user-drag: none;\n  user-drag: none;\n  /* stylelint-disable-line */\n}\n.x6-widget-transform > div:hover {\n  background-color: #d3d3d3;\n}\n.x6-widget-transform-cursor-n {\n  cursor: n-resize;\n}\n.x6-widget-transform-cursor-s {\n  cursor: s-resize;\n}\n.x6-widget-transform-cursor-e {\n  cursor: e-resize;\n}\n.x6-widget-transform-cursor-w {\n  cursor: w-resize;\n}\n.x6-widget-transform-cursor-ne {\n  cursor: ne-resize;\n}\n.x6-widget-transform-cursor-nw {\n  cursor: nw-resize;\n}\n.x6-widget-transform-cursor-se {\n  cursor: se-resize;\n}\n.x6-widget-transform-cursor-sw {\n  cursor: sw-resize;\n}\n.x6-widget-transform-resize {\n  width: 10px;\n  height: 10px;\n  border-radius: 6px;\n}\n.x6-widget-transform-resize[data-position='top-left'] {\n  top: -5px;\n  left: -5px;\n}\n.x6-widget-transform-resize[data-position='top-right'] {\n  top: -5px;\n  right: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-left'] {\n  bottom: -5px;\n  left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-right'] {\n  right: -5px;\n  bottom: -5px;\n}\n.x6-widget-transform-resize[data-position='top'] {\n  top: -5px;\n  left: 50%;\n  margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom'] {\n  bottom: -5px;\n  left: 50%;\n  margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='left'] {\n  top: 50%;\n  left: -5px;\n  margin-top: -5px;\n}\n.x6-widget-transform-resize[data-position='right'] {\n  top: 50%;\n  right: -5px;\n  margin-top: -5px;\n}\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='top'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='right'] {\n  display: none;\n}\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='right'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='top'] {\n  display: none;\n}\n.x6-widget-transform.no-resize .x6-widget-transform-resize {\n  display: none;\n}\n.x6-widget-transform-rotate {\n  top: -20px;\n  left: -20px;\n  width: 12px;\n  height: 12px;\n  border-radius: 6px;\n  cursor: crosshair;\n}\n.x6-widget-transform.no-rotate .x6-widget-transform-rotate {\n  display: none;\n}\n.x6-widget-transform-active {\n  border-color: transparent;\n  pointer-events: all;\n}\n.x6-widget-transform-active > div {\n  display: none;\n}\n.x6-widget-transform-active > .x6-widget-transform-active-handle {\n  display: block;\n  background-color: #808080;\n}\n")}init(e){this.graph=e,this.disabled||this.startListening()}startListening(){this.graph.on("node:click",this.onNodeClick,this),this.graph.on("blank:mousedown",this.onBlankMouseDown,this)}stopListening(){this.graph.off("node:click",this.onNodeClick,this),this.graph.off("blank:mousedown",this.onBlankMouseDown,this)}enable(){this.disabled&&(this.disabled=!1,this.startListening())}disable(){this.disabled||(this.disabled=!0,this.stopListening())}isEnabled(){return!this.disabled}createWidget(e){this.clearWidgets();const t=this.createTransform(e);t&&(this.widgets.set(e,t),t.on("*",((e,t)=>{this.trigger(e,t),this.graph.trigger(e,t)})))}onNodeClick({node:e}){this.createWidget(e)}onBlankMouseDown(){this.clearWidgets()}createTransform(e){const t=this.getTransformOptions(e);return t.resizable||t.rotatable?new $v(t,e,this.graph):null}parseOptionGroup(e,t,n){const r={};return Object.keys(n||{}).forEach((i=>{const a=n[i];r[i]="function"==typeof a?a.call(e,t):a})),r}getTransformOptions(e){this.options.resizing||(this.options.resizing={enabled:!1}),this.options.rotating||(this.options.rotating={enabled:!1}),"boolean"==typeof this.options.resizing&&(this.options.resizing={enabled:this.options.resizing}),"boolean"==typeof this.options.rotating&&(this.options.rotating={enabled:this.options.rotating});const t=this.parseOptionGroup(this.graph,e,this.options.resizing),n=this.parseOptionGroup(this.graph,e,this.options.rotating);return{resizable:!!t.enabled,minWidth:t.minWidth||0,maxWidth:t.maxWidth||Number.MAX_SAFE_INTEGER,minHeight:t.minHeight||0,maxHeight:t.maxHeight||Number.MAX_SAFE_INTEGER,orthogonalResizing:"boolean"!=typeof t.orthogonal||t.orthogonal,restrictedResizing:!!t.restrict,autoScrollOnResizing:"boolean"!=typeof t.autoScroll||t.autoScroll,preserveAspectRatio:!!t.preserveAspectRatio,allowReverse:"boolean"!=typeof t.allowReverse||t.allowReverse,rotatable:!!n.enabled,rotateGrid:n.grid||15}}clearWidgets(){this.widgets.forEach(((e,t)=>{this.graph.getCellById(t.id)&&e.dispose()})),this.widgets.clear()}dispose(){this.clearWidgets(),this.stopListening(),this.off(),a.clean(this.name)}}T([au()],Jv.prototype,"dispose",null)},
/***/5741:
/***/function(e,t,n){
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var r=n("5d6f"),i=n("8d87").f;n("0a66")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},
/***/"577e":
/***/function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},
/***/5798:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"57a5":
/***/function(e,t,n){var r=n("91e9")(Object.keys,Object);
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=r},
/***/"57b9":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("d066"),a=n("b622"),o=n("cb2d");e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
// eslint-disable-next-line no-unused-vars -- required for .length
o(t,s,(function(e){return r(n,this)}),{arity:1})}},
/***/"57ba":
/***/function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("4849"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},
/***/"585a":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){/** Detect free variable `global` from Node.js. */
var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))
/***/},
/***/5899:
/***/function(e,t,n){"use strict";
// a string of all valid unicode whitespaces
e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},
/***/"589e":
/***/function(e,t,n){"use strict";
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
/* harmony default export */t.a=function(){return[]}},
/***/"58a8":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),a=n("577e"),o=n("5899"),s=r("".replace),c=RegExp("^["+o+"]+"),l=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var n=a(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={
// `String.prototype.{ trimLeft, trimStart }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
start:u(1),
// `String.prototype.{ trimRight, trimEnd }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimend
end:u(2),
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
trim:u(3)}},
/***/"58c1":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return u}));
/* harmony import */var r=n("92fa"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("4d91"),c=n("daa3");
/* harmony import */function l(e){return e.name||"Component"}function u(e){var t=e.props||{},n=e.methods||{},r={};Object.keys(t).forEach((function(e){r[e]=o()({},t[e],{required:!1})})),e.props.__propsSymbol__=s.a.any,e.props.children=s.a.array.def([]);var a={props:r,model:e.model,name:"Proxy_"+l(e),methods:{getProxyWrappedInstance:function(){return this.$refs.wrappedInstance}},render:function(){var t=arguments[0],n=this.$slots,r=void 0===n?{}:n,a=this.$scopedSlots,s=Object(c.l)(this),l={props:o()({},s,{__propsSymbol__:Symbol(),componentWillReceiveProps:o()({},s),children:r.default||s.children||[]}),on:Object(c.k)(this)};Object.keys(a).length&&(l.scopedSlots=a);var u=Object.keys(r);return t(e,i()([l,{ref:"wrappedInstance"}]),[u.length?u.map((function(e){return t("template",{slot:e},[r[e]])})):null])}};return Object.keys(n).map((function(e){a.methods[e]=function(){var t;return(t=this.getProxyWrappedInstance())[e].apply(t,arguments)}})),a}
/***/},
/***/"58c9":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return i})),
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Implementation of exported APIs. For example registerMap, getMap.
// The implementations will be registered when installing the component.
// Avoid these code being bundled to the core module.
var r={};
// TODO Type
function i(e,t){r[e]=t}function a(e){return r[e]}
/***/},
/***/"58e0":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* harmony import */var r=n("26ee"),i=n("2f74"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i.a;
/* harmony import */
/* harmony default export */t.a=c}).call(this,n("dd40")(e))
/***/},
/***/5926:
/***/function(e,t,n){"use strict";var r=n("b42e");
// `ToIntegerOrInfinity` abstract operation
// https://tc39.es/ecma262/#sec-tointegerorinfinity
e.exports=function(e){var t=+e;
// eslint-disable-next-line no-self-compare -- NaN check
return t!=t||0===t?0:r(t)}},
/***/"59ad":
/***/function(e,t){
// https://rwaldron.github.io/proposal-math-extensions/
e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r};
/***/},
/***/"59ed":
/***/function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),a=TypeError;
// `Assert: IsCallable(argument) is true`
e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},
/***/"5a34":
/***/function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},
/***/"5a43":
/***/function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"5a47":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("04f8"),a=n("d039"),o=n("7418"),s=n("7b0b");
// `Object.getOwnPropertySymbols` method
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
r({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},
/***/"5a5d":
/***/function(e,t,n){
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var r=n("30de"),i=n("68ae");e.exports=Object.keys||function(e){return r(e,i)}},
/***/"5a6b":
/***/function(e,t,n){
// https://github.com/tc39/proposal-object-values-entries
var r=n("f083"),i=n("2584")(!1);r(r.S,"Object",{values:function(e){return i(e)}})},
/***/"5a89":
/***/function(e,t,n){"use strict";
/* unused harmony export ACESFilmicToneMapping */
/* unused harmony export AddEquation */
/* unused harmony export AddOperation */
/* unused harmony export AdditiveAnimationBlendMode */
/* unused harmony export AdditiveBlending */
/* unused harmony export AlphaFormat */
/* unused harmony export AlwaysDepth */
/* unused harmony export AlwaysStencilFunc */
/* harmony export (binding) */n.d(t,"a",(function(){return Yu})),
/* unused harmony export AmbientLightProbe */
/* harmony export (binding) */n.d(t,"b",(function(){return bu})),
/* unused harmony export AnimationLoader */
/* harmony export (binding) */n.d(t,"c",(function(){return Ah})),
/* unused harmony export AnimationObjectGroup */
/* unused harmony export AnimationUtils */
/* unused harmony export ArcCurve */
/* unused harmony export ArrayCamera */
/* unused harmony export ArrowHelper */
/* unused harmony export Audio */
/* unused harmony export AudioAnalyser */
/* unused harmony export AudioContext */
/* unused harmony export AudioListener */
/* unused harmony export AudioLoader */
/* unused harmony export AxesHelper */
/* unused harmony export BackSide */
/* unused harmony export BasicDepthPacking */
/* unused harmony export BasicShadowMap */
/* harmony export (binding) */n.d(t,"d",(function(){return Xs})),
/* unused harmony export BooleanKeyframeTrack */
/* unused harmony export Box2 */
/* harmony export (binding) */n.d(t,"e",(function(){return In})),
/* unused harmony export Box3Helper */
/* unused harmony export BoxBufferGeometry */
/* unused harmony export BoxGeometry */
/* unused harmony export BoxHelper */
/* harmony export (binding) */n.d(t,"f",(function(){return Wr})),
/* harmony export (binding) */n.d(t,"g",(function(){return ri})),
/* unused harmony export BufferGeometryLoader */
/* unused harmony export ByteType */
/* unused harmony export Cache */
/* unused harmony export Camera */
/* unused harmony export CameraHelper */
/* unused harmony export CanvasTexture */
/* unused harmony export CapsuleBufferGeometry */
/* unused harmony export CapsuleGeometry */
/* unused harmony export CatmullRomCurve3 */
/* unused harmony export CineonToneMapping */
/* unused harmony export CircleBufferGeometry */
/* unused harmony export CircleGeometry */
/* harmony export (binding) */n.d(t,"h",(function(){return oe})),
/* harmony export (binding) */n.d(t,"i",(function(){return sh})),
/* harmony export (binding) */n.d(t,"j",(function(){return zr})),
/* unused harmony export ColorKeyframeTrack */
/* unused harmony export ColorManagement */
/* unused harmony export CompressedArrayTexture */
/* unused harmony export CompressedTexture */
/* harmony export (binding) */n.d(t,"k",(function(){return Bu})),
/* unused harmony export ConeBufferGeometry */
/* unused harmony export ConeGeometry */
/* unused harmony export CubeCamera */
/* unused harmony export CubeReflectionMapping */
/* unused harmony export CubeRefractionMapping */
/* unused harmony export CubeTexture */
/* unused harmony export CubeTextureLoader */
/* unused harmony export CubeUVReflectionMapping */
/* unused harmony export CubicBezierCurve */
/* unused harmony export CubicBezierCurve3 */
/* unused harmony export CubicInterpolant */
/* unused harmony export CullFaceBack */
/* unused harmony export CullFaceFront */
/* unused harmony export CullFaceFrontBack */
/* unused harmony export CullFaceNone */
/* harmony export (binding) */n.d(t,"l",(function(){return Bc})),
/* unused harmony export CurvePath */
/* unused harmony export CustomBlending */
/* unused harmony export CustomToneMapping */
/* unused harmony export CylinderBufferGeometry */
/* unused harmony export CylinderGeometry */
/* unused harmony export Cylindrical */
/* unused harmony export Data3DTexture */
/* unused harmony export DataArrayTexture */
/* unused harmony export DataTexture */
/* harmony export (binding) */n.d(t,"m",(function(){return Tu})),
/* unused harmony export DataUtils */
/* unused harmony export DecrementStencilOp */
/* unused harmony export DecrementWrapStencilOp */
/* harmony export (binding) */n.d(t,"n",(function(){return _u})),
/* unused harmony export DepthFormat */
/* unused harmony export DepthStencilFormat */
/* unused harmony export DepthTexture */
/* harmony export (binding) */n.d(t,"o",(function(){return qu})),
/* unused harmony export DirectionalLightHelper */
/* unused harmony export DiscreteInterpolant */
/* unused harmony export DisplayP3ColorSpace */
/* unused harmony export DodecahedronBufferGeometry */
/* unused harmony export DodecahedronGeometry */
/* harmony export (binding) */n.d(t,"p",(function(){return p})),
/* unused harmony export DstAlphaFactor */
/* unused harmony export DstColorFactor */
/* unused harmony export DynamicCopyUsage */
/* unused harmony export DynamicDrawUsage */
/* unused harmony export DynamicReadUsage */
/* unused harmony export EdgesGeometry */
/* unused harmony export EllipseCurve */
/* unused harmony export EqualDepth */
/* unused harmony export EqualStencilFunc */
/* harmony export (binding) */n.d(t,"q",(function(){return ne})),
/* unused harmony export EquirectangularRefractionMapping */
/* harmony export (binding) */n.d(t,"r",(function(){return cr})),
/* harmony export (binding) */n.d(t,"s",(function(){return Pt})),
/* unused harmony export ExtrudeBufferGeometry */
/* unused harmony export ExtrudeGeometry */
/* harmony export (binding) */n.d(t,"t",(function(){return Su})),
/* unused harmony export Float16BufferAttribute */
/* harmony export (binding) */n.d(t,"u",(function(){return Kr})),
/* unused harmony export Float64BufferAttribute */
/* unused harmony export FloatType */
/* unused harmony export Fog */
/* unused harmony export FogExp2 */
/* unused harmony export FramebufferTexture */
/* harmony export (binding) */n.d(t,"v",(function(){return f})),
/* unused harmony export Frustum */
/* unused harmony export GLBufferAttribute */
/* unused harmony export GLSL1 */
/* unused harmony export GLSL3 */
/* unused harmony export GreaterDepth */
/* unused harmony export GreaterEqualDepth */
/* unused harmony export GreaterEqualStencilFunc */
/* unused harmony export GreaterStencilFunc */
/* unused harmony export GridHelper */
/* harmony export (binding) */n.d(t,"w",(function(){return ds})),
/* unused harmony export HalfFloatType */
/* harmony export (binding) */n.d(t,"x",(function(){return Pu})),
/* unused harmony export HemisphereLightHelper */
/* unused harmony export HemisphereLightProbe */
/* unused harmony export IcosahedronBufferGeometry */
/* unused harmony export IcosahedronGeometry */
/* harmony export (binding) */n.d(t,"y",(function(){return oh})),
/* unused harmony export ImageLoader */
/* unused harmony export ImageUtils */
/* unused harmony export IncrementStencilOp */
/* unused harmony export IncrementWrapStencilOp */
/* harmony export (binding) */n.d(t,"z",(function(){return rc})),
/* unused harmony export InstancedBufferGeometry */
/* unused harmony export InstancedInterleavedBuffer */
/* harmony export (binding) */n.d(t,"A",(function(){return lc})),
/* unused harmony export Int16BufferAttribute */
/* unused harmony export Int32BufferAttribute */
/* unused harmony export Int8BufferAttribute */
/* unused harmony export IntType */
/* harmony export (binding) */n.d(t,"B",(function(){return _s})),
/* harmony export (binding) */n.d(t,"C",(function(){return Es})),
/* harmony export (binding) */n.d(t,"D",(function(){return cu})),
/* harmony export (binding) */n.d(t,"E",(function(){return ft})),
/* harmony export (binding) */n.d(t,"F",(function(){return dt})),
/* unused harmony export InterpolateSmooth */
/* unused harmony export InvertStencilOp */
/* unused harmony export KeepStencilOp */
/* unused harmony export KeyframeTrack */
/* unused harmony export LOD */
/* unused harmony export LatheBufferGeometry */
/* unused harmony export LatheGeometry */
/* unused harmony export Layers */
/* unused harmony export LessDepth */
/* unused harmony export LessEqualDepth */
/* unused harmony export LessEqualStencilFunc */
/* unused harmony export LessStencilFunc */
/* unused harmony export Light */
/* unused harmony export LightProbe */
/* harmony export (binding) */n.d(t,"G",(function(){return mc})),
/* unused harmony export Line3 */
/* harmony export (binding) */n.d(t,"H",(function(){return uc})),
/* unused harmony export LineCurve */
/* unused harmony export LineCurve3 */
/* unused harmony export LineDashedMaterial */
/* harmony export (binding) */n.d(t,"I",(function(){return bc})),
/* harmony export (binding) */n.d(t,"J",(function(){return Ac})),
/* harmony export (binding) */n.d(t,"K",(function(){return xt})),
/* harmony export (binding) */n.d(t,"L",(function(){return he})),
/* unused harmony export LinearInterpolant */
/* unused harmony export LinearMipMapLinearFilter */
/* unused harmony export LinearMipMapNearestFilter */
/* harmony export (binding) */n.d(t,"M",(function(){return de})),
/* harmony export (binding) */n.d(t,"N",(function(){return fe})),
/* harmony export (binding) */n.d(t,"O",(function(){return St})),
/* unused harmony export LinearToneMapping */
/* harmony export (binding) */n.d(t,"P",(function(){return Iu})),
/* harmony export (binding) */n.d(t,"Q",(function(){return Zu})),
/* unused harmony export LoadingManager */
/* unused harmony export LoopOnce */
/* unused harmony export LoopPingPong */
/* unused harmony export LoopRepeat */
/* unused harmony export LuminanceAlphaFormat */
/* unused harmony export LuminanceFormat */
/* harmony export (binding) */n.d(t,"R",(function(){return i})),
/* harmony export (binding) */n.d(t,"S",(function(){return Qr})),
/* unused harmony export MaterialLoader */
/* harmony export (binding) */n.d(t,"T",(function(){return Yt})),
/* harmony export (binding) */n.d(t,"U",(function(){return $t})),
/* harmony export (binding) */n.d(t,"V",(function(){return Xn})),
/* unused harmony export MaxEquation */
/* harmony export (binding) */n.d(t,"W",(function(){return yi})),
/* harmony export (binding) */n.d(t,"X",(function(){return Ur})),
/* unused harmony export MeshDepthMaterial */
/* unused harmony export MeshDistanceMaterial */
/* harmony export (binding) */n.d(t,"Y",(function(){return Zl})),
/* unused harmony export MeshMatcapMaterial */
/* unused harmony export MeshNormalMaterial */
/* harmony export (binding) */n.d(t,"Z",(function(){return $l})),
/* harmony export (binding) */n.d(t,"ab",(function(){return Kl})),
/* harmony export (binding) */n.d(t,"bb",(function(){return Yl})),
/* unused harmony export MeshToonMaterial */
/* unused harmony export MinEquation */
/* harmony export (binding) */n.d(t,"cb",(function(){return se})),
/* unused harmony export MixOperation */
/* unused harmony export MultiplyBlending */
/* unused harmony export MultiplyOperation */
/* harmony export (binding) */n.d(t,"db",(function(){return ce})),
/* unused harmony export NearestMipMapLinearFilter */
/* unused harmony export NearestMipMapNearestFilter */
/* harmony export (binding) */n.d(t,"eb",(function(){return ue})),
/* harmony export (binding) */n.d(t,"fb",(function(){return le})),
/* unused harmony export NeverDepth */
/* unused harmony export NeverStencilFunc */
/* unused harmony export NoBlending */
/* unused harmony export NoColorSpace */
/* unused harmony export NoToneMapping */
/* unused harmony export NormalAnimationBlendMode */
/* unused harmony export NormalBlending */
/* unused harmony export NotEqualDepth */
/* unused harmony export NotEqualStencilFunc */
/* harmony export (binding) */n.d(t,"gb",(function(){return gu})),
/* harmony export (binding) */n.d(t,"hb",(function(){return Cr})),
/* harmony export (binding) */n.d(t,"ib",(function(){return nh})),
/* unused harmony export ObjectSpaceNormalMap */
/* unused harmony export OctahedronBufferGeometry */
/* unused harmony export OctahedronGeometry */
/* unused harmony export OneFactor */
/* unused harmony export OneMinusDstAlphaFactor */
/* unused harmony export OneMinusDstColorFactor */
/* unused harmony export OneMinusSrcAlphaFactor */
/* unused harmony export OneMinusSrcColorFactor */
/* harmony export (binding) */n.d(t,"jb",(function(){return Xi})),
/* unused harmony export PCFShadowMap */
/* unused harmony export PCFSoftShadowMap */
/* unused harmony export PMREMGenerator */
/* unused harmony export Path */
/* harmony export (binding) */n.d(t,"kb",(function(){return ki})),
/* unused harmony export Plane */
/* unused harmony export PlaneBufferGeometry */
/* unused harmony export PlaneGeometry */
/* unused harmony export PlaneHelper */
/* harmony export (binding) */n.d(t,"lb",(function(){return Vu})),
/* unused harmony export PointLightHelper */
/* harmony export (binding) */n.d(t,"mb",(function(){return Ec})),
/* harmony export (binding) */n.d(t,"nb",(function(){return wc})),
/* unused harmony export PolarGridHelper */
/* unused harmony export PolyhedronBufferGeometry */
/* unused harmony export PolyhedronGeometry */
/* unused harmony export PositionalAudio */
/* harmony export (binding) */n.d(t,"ob",(function(){return mh})),
/* unused harmony export PropertyMixer */
/* unused harmony export QuadraticBezierCurve */
/* unused harmony export QuadraticBezierCurve3 */
/* harmony export (binding) */n.d(t,"pb",(function(){return nn})),
/* harmony export (binding) */n.d(t,"qb",(function(){return vu})),
/* unused harmony export QuaternionLinearInterpolant */
/* unused harmony export RED_GREEN_RGTC2_Format */
/* unused harmony export RED_RGTC1_Format */
/* unused harmony export REVISION */
/* unused harmony export RGBADepthPacking */
/* harmony export (binding) */n.d(t,"rb",(function(){return Ee})),
/* unused harmony export RGBAIntegerFormat */
/* unused harmony export RGBA_ASTC_10x10_Format */
/* unused harmony export RGBA_ASTC_10x5_Format */
/* unused harmony export RGBA_ASTC_10x6_Format */
/* unused harmony export RGBA_ASTC_10x8_Format */
/* unused harmony export RGBA_ASTC_12x10_Format */
/* unused harmony export RGBA_ASTC_12x12_Format */
/* unused harmony export RGBA_ASTC_4x4_Format */
/* unused harmony export RGBA_ASTC_5x4_Format */
/* unused harmony export RGBA_ASTC_5x5_Format */
/* unused harmony export RGBA_ASTC_6x5_Format */
/* unused harmony export RGBA_ASTC_6x6_Format */
/* unused harmony export RGBA_ASTC_8x5_Format */
/* unused harmony export RGBA_ASTC_8x6_Format */
/* unused harmony export RGBA_ASTC_8x8_Format */
/* unused harmony export RGBA_BPTC_Format */
/* unused harmony export RGBA_ETC2_EAC_Format */
/* unused harmony export RGBA_PVRTC_2BPPV1_Format */
/* unused harmony export RGBA_PVRTC_4BPPV1_Format */
/* unused harmony export RGBA_S3TC_DXT1_Format */
/* harmony export (binding) */n.d(t,"sb",(function(){return je})),
/* harmony export (binding) */n.d(t,"tb",(function(){return Ne})),
/* harmony export (binding) */n.d(t,"ub",(function(){return Ge})),
/* unused harmony export RGB_ETC2_Format */
/* unused harmony export RGB_PVRTC_2BPPV1_Format */
/* unused harmony export RGB_PVRTC_4BPPV1_Format */
/* harmony export (binding) */n.d(t,"vb",(function(){return Qe})),
/* unused harmony export RGFormat */
/* unused harmony export RGIntegerFormat */
/* unused harmony export RawShaderMaterial */
/* unused harmony export Ray */
/* harmony export (binding) */n.d(t,"wb",(function(){return bh})),
/* unused harmony export RectAreaLight */
/* unused harmony export RedFormat */
/* unused harmony export RedIntegerFormat */
/* unused harmony export ReinhardToneMapping */
/* harmony export (binding) */n.d(t,"xb",(function(){return ae})),
/* unused harmony export ReplaceStencilOp */
/* unused harmony export ReverseSubtractEquation */
/* unused harmony export RingBufferGeometry */
/* unused harmony export RingGeometry */
/* unused harmony export SIGNED_RED_GREEN_RGTC2_Format */
/* unused harmony export SIGNED_RED_RGTC1_Format */
/* harmony export (binding) */n.d(t,"yb",(function(){return kt})),
/* harmony export (binding) */n.d(t,"zb",(function(){return Cs})),
/* unused harmony export ShaderChunk */
/* unused harmony export ShaderLib */
/* unused harmony export ShaderMaterial */
/* unused harmony export ShadowMaterial */
/* unused harmony export Shape */
/* unused harmony export ShapeBufferGeometry */
/* unused harmony export ShapeGeometry */
/* unused harmony export ShapePath */
/* unused harmony export ShapeUtils */
/* unused harmony export ShortType */
/* harmony export (binding) */n.d(t,"Ab",(function(){return nc})),
/* unused harmony export SkeletonHelper */
/* harmony export (binding) */n.d(t,"Bb",(function(){return Js})),
/* unused harmony export Source */
/* harmony export (binding) */n.d(t,"Cb",(function(){return Un})),
/* unused harmony export SphereBufferGeometry */
/* unused harmony export SphereGeometry */
/* harmony export (binding) */n.d(t,"Db",(function(){return Ch})),
/* unused harmony export SphericalHarmonics3 */
/* unused harmony export SplineCurve */
/* harmony export (binding) */n.d(t,"Eb",(function(){return Fu})),
/* unused harmony export SpotLightHelper */
/* harmony export (binding) */n.d(t,"Fb",(function(){return zs})),
/* harmony export (binding) */n.d(t,"Gb",(function(){return ks})),
/* unused harmony export SrcAlphaFactor */
/* unused harmony export SrcAlphaSaturateFactor */
/* unused harmony export SrcColorFactor */
/* unused harmony export StaticCopyUsage */
/* unused harmony export StaticDrawUsage */
/* unused harmony export StaticReadUsage */
/* unused harmony export StereoCamera */
/* unused harmony export StreamCopyUsage */
/* unused harmony export StreamDrawUsage */
/* unused harmony export StreamReadUsage */
/* unused harmony export StringKeyframeTrack */
/* unused harmony export SubtractEquation */
/* unused harmony export SubtractiveBlending */
/* harmony export (binding) */n.d(t,"Hb",(function(){return a})),
/* unused harmony export TangentSpaceNormalMap */
/* unused harmony export TetrahedronBufferGeometry */
/* unused harmony export TetrahedronGeometry */
/* harmony export (binding) */n.d(t,"Ib",(function(){return bn})),
/* harmony export (binding) */n.d(t,"Jb",(function(){return Ou})),
/* unused harmony export TorusBufferGeometry */
/* unused harmony export TorusGeometry */
/* unused harmony export TorusKnotBufferGeometry */
/* unused harmony export TorusKnotGeometry */
/* unused harmony export Triangle */
/* harmony export (binding) */n.d(t,"Kb",(function(){return wt})),
/* harmony export (binding) */n.d(t,"Lb",(function(){return bt})),
/* harmony export (binding) */n.d(t,"Mb",(function(){return At})),
/* unused harmony export TubeBufferGeometry */
/* unused harmony export TubeGeometry */
/* unused harmony export TwoPassDoubleSide */
/* unused harmony export UVMapping */
/* harmony export (binding) */n.d(t,"Nb",(function(){return qr})),
/* unused harmony export Uint32BufferAttribute */
/* unused harmony export Uint8BufferAttribute */
/* unused harmony export Uint8ClampedBufferAttribute */
/* unused harmony export Uniform */
/* unused harmony export UniformsGroup */
/* unused harmony export UniformsLib */
/* unused harmony export UniformsUtils */
/* unused harmony export UnsignedByteType */
/* unused harmony export UnsignedInt248Type */
/* unused harmony export UnsignedIntType */
/* unused harmony export UnsignedShort4444Type */
/* unused harmony export UnsignedShort5551Type */
/* unused harmony export UnsignedShortType */
/* unused harmony export VSMShadowMap */
/* harmony export (binding) */n.d(t,"Ob",(function(){return Kt})),
/* harmony export (binding) */n.d(t,"Pb",(function(){return rn})),
/* harmony export (binding) */n.d(t,"Qb",(function(){return wn})),
/* harmony export (binding) */n.d(t,"Rb",(function(){return Au})),
/* unused harmony export VideoTexture */
/* unused harmony export WebGL1Renderer */
/* unused harmony export WebGL3DRenderTarget */
/* unused harmony export WebGLArrayRenderTarget */
/* unused harmony export WebGLCubeRenderTarget */
/* unused harmony export WebGLMultipleRenderTargets */
/* unused harmony export WebGLRenderTarget */
/* harmony export (binding) */n.d(t,"Sb",(function(){return bs})),
/* unused harmony export WebGLUtils */
/* unused harmony export WireframeGeometry */
/* unused harmony export WrapAroundEnding */
/* unused harmony export ZeroCurvatureEnding */
/* unused harmony export ZeroFactor */
/* unused harmony export ZeroSlopeEnding */
/* unused harmony export ZeroStencilOp */
/* unused harmony export _SRGBAFormat */
/* harmony export (binding) */n.d(t,"Tb",(function(){return Ct}));
/**
 * @license
 * Copyright 2010-2023 Three.js Authors
 * SPDX-License-Identifier: MIT
 */
const r="150",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},a={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},o=0,s=1,c=2,l=1,u=2,h=3,f=0,d=1,p=2,g=0,m=1,v=2,y=3,A=4,b=5,w=100,x=101,C=102,_=103,I=104,E=200,k=201,S=202,B=203,M=204,T=205,O=206,D=207,P=208,L=209,Q=210,R=0,j=1,N=2,F=3,z=4,H=5,U=6,G=7,V=0,W=1,q=2,Y=0,K=1,$=2,J=3,X=4,Z=5,ee=301,te=302,ne=303,re=304,ie=306,ae=1e3,oe=1001,se=1002,ce=1003,le=1004,ue=1005,he=1006,fe=1007,de=1008,pe=1009,ge=1010,me=1011,ve=1012,ye=1013,Ae=1014,be=1015,we=1016,xe=1017,Ce=1018,_e=1020,Ie=1021,Ee=1023,ke=1024,Se=1025,Be=1026,Me=1027,Te=1028,Oe=1029,De=1030,Pe=1031,Le=1033,Qe=33776,Re=33777,je=33778,Ne=33779,Fe=35840,ze=35841,He=35842,Ue=35843,Ge=36196,Ve=37492,We=37496,qe=37808,Ye=37809,Ke=37810,$e=37811,Je=37812,Xe=37813,Ze=37814,et=37815,tt=37816,nt=37817,rt=37818,it=37819,at=37820,ot=37821,st=36492,ct=36283,lt=36284,ut=36285,ht=36286,ft=2300,dt=2301,pt=2302,gt=2400,mt=2401,vt=2402,yt=2500,At=0,bt=1,wt=2,xt=3e3,Ct=3001,_t=3201,It=0,Et=1,kt="srgb",St="srgb-linear",Bt="display-p3",Mt=7680,Tt=35044,Ot="300 es",Dt=1035;// fallback for WebGL 1
/**
 * https://github.com/mrdoob/eventdispatcher.js/
 */
class Pt{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;
// Make a copy, in case listeners are removed while iterating.
const n=t.slice(0);for(let t=0,r=n.length;t<r;t++)n[t].call(this,e);e.target=null}}}const Lt=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let Qt=1234567;const Rt=Math.PI/180,jt=180/Math.PI;
// http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
function Nt(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;
// .toLowerCase() here flattens concatenated strings to save heap memory space.
return(Lt[255&e]+Lt[e>>8&255]+Lt[e>>16&255]+Lt[e>>24&255]+"-"+Lt[255&t]+Lt[t>>8&255]+"-"+Lt[t>>16&15|64]+Lt[t>>24&255]+"-"+Lt[63&n|128]+Lt[n>>8&255]+"-"+Lt[n>>16&255]+Lt[n>>24&255]+Lt[255&r]+Lt[r>>8&255]+Lt[r>>16&255]+Lt[r>>24&255]).toLowerCase()}function Ft(e,t,n){return Math.max(t,Math.min(n,e))}
// compute euclidean modulo of m % n
// https://en.wikipedia.org/wiki/Modulo_operation
function zt(e,t){return(e%t+t)%t}
// Linear mapping from range <a1, a2> to range <b1, b2>
// https://en.wikipedia.org/wiki/Linear_interpolation
function Ht(e,t,n){return(1-n)*e+n*t}
// http://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-lerp/
function Ut(e){return!(e&e-1)&&0!==e}function Gt(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function Vt(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function Wt(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function qt(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const Yt={DEG2RAD:Rt,RAD2DEG:jt,generateUUID:Nt,clamp:Ft,euclideanModulo:zt,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}
// https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/inverse-lerp-a-super-useful-yet-often-overlooked-function-r5230/
,inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:Ht,damp:function(e,t,n,r){return Ht(e,t,1-Math.exp(-n*r))}
// https://www.desmos.com/calculator/vcsjnyz7x4
,pingpong:function(e,t=1){return t-Math.abs(zt(e,2*t)-t)}
// http://en.wikipedia.org/wiki/Smoothstep
,smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)}
// Random integer from <low, high> interval
,randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))}
// Random float from <low, high> interval
,randFloat:function(e,t){return e+Math.random()*(t-e)}
// Random float from <-range/2, range/2> interval
,randFloatSpread:function(e){return e*(.5-Math.random())}
// Deterministic pseudo-random float in the interval [ 0, 1 ]
,seededRandom:function(e){void 0!==e&&(Qt=e);
// Mulberry32 generator
let t=Qt+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*Rt},radToDeg:function(e){return e*jt},isPowerOfTwo:Ut,ceilPowerOfTwo:Gt,floorPowerOfTwo:Vt,setQuaternionFromProperEuler:function(e,t,n,r,i){
// Intrinsic Proper Euler Angles - see https://en.wikipedia.org/wiki/Euler_angles
// rotations are applied to the axes in the order specified by 'order'
// rotation by angle 'a' is applied first, then by angle 'b', then by angle 'c'
// angles are in radians
const a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),h=a((t-r)/2),f=o((t-r)/2),d=a((r-t)/2),p=o((r-t)/2);switch(i){case"XYX":e.set(s*u,c*h,c*f,s*l);break;case"YZY":e.set(c*f,s*u,c*h,s*l);break;case"ZXZ":e.set(c*h,c*f,s*u,s*l);break;case"XZX":e.set(s*u,c*p,c*d,s*l);break;case"YXY":e.set(c*d,s*u,c*p,s*l);break;case"ZYZ":e.set(c*p,c*d,s*u,s*l)}},normalize:qt,denormalize:Wt};class Kt{constructor(e=0,t=0){Kt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){
// assumes min < max, componentwise
return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class $t{constructor(){$t.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(e,t,n,r,i,a,o,s,c){const l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],h=n[2],f=n[5],d=n[8],p=r[0],g=r[3],m=r[6],v=r[1],y=r[4],A=r[7],b=r[2],w=r[5],x=r[8];return i[0]=a*p+o*v+s*b,i[3]=a*g+o*y+s*w,i[6]=a*m+o*A+s*x,i[1]=c*p+l*v+u*b,i[4]=c*g+l*y+u*w,i[7]=c*m+l*A+u*x,i[2]=h*p+f*v+d*b,i[5]=h*g+f*y+d*w,i[8]=h*m+f*A+d*x,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,h=o*s-l*i,f=c*i-a*s,d=t*u+n*h+r*f;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);const p=1/d;return e[0]=u*p,e[1]=(r*c-l*n)*p,e[2]=(o*n-r*a)*p,e[3]=h*p,e[4]=(l*t-r*s)*p,e[5]=(r*i-o*t)*p,e[6]=f*p,e[7]=(n*s-c*t)*p,e[8]=(a*t-n*i)*p,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){const s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}
scale(e,t){return this.premultiply(Jt.makeScale(e,t)),this}rotate(e){return this.premultiply(Jt.makeRotation(-e)),this}translate(e,t){return this.premultiply(Jt.makeTranslation(e,t)),this}
// for 2D Transforms
makeTranslation(e,t){return this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){
// counterclockwise
const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}
equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Jt=new $t;function Xt(e){
// assumes larger values usually on last
for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;// account for PRIMITIVE_RESTART_FIXED_INDEX, #24565
return!1}const Zt={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function en(e,t){return new Zt[e](t)}function tn(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}class nn{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){
// fuzz-free, array-based Quaternion SLERP operation
let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3];const h=i[a+0],f=i[a+1],d=i[a+2],p=i[a+3];if(0===o)return e[t+0]=s,e[t+1]=c,e[t+2]=l,void(e[t+3]=u);if(1===o)return e[t+0]=h,e[t+1]=f,e[t+2]=d,void(e[t+3]=p);if(u!==p||s!==h||c!==f||l!==d){let e=1-o;const t=s*h+c*f+l*d+u*p,n=t>=0?1:-1,r=1-t*t;
// Skip the Slerp for tiny steps to avoid numeric problems:
if(r>Number.EPSILON){const i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,o=Math.sin(o*a)/i}const i=o*n;
// Normalize in case we just did a lerp:
if(s=s*e+h*i,c=c*e+f*i,l=l*e+d*i,u=u*e+p*i,e===1-o){const e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){const o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],h=i[a+1],f=i[a+2],d=i[a+3];return e[t]=o*d+l*u+s*f-c*h,e[t+1]=s*d+l*h+c*u-o*f,e[t+2]=c*d+l*f+o*h-s*u,e[t+3]=l*d-o*u-s*h-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),h=s(n/2),f=s(r/2),d=s(i/2);
// http://www.mathworks.com/matlabcentral/fileexchange/
// 	20696-function-to-convert-between-dcm-euler-angles-quaternions-and-euler-vectors/
//	content/SpinCalc.m
switch(a){case"XYZ":this._x=h*l*u+c*f*d,this._y=c*f*u-h*l*d,this._z=c*l*d+h*f*u,this._w=c*l*u-h*f*d;break;case"YXZ":this._x=h*l*u+c*f*d,this._y=c*f*u-h*l*d,this._z=c*l*d-h*f*u,this._w=c*l*u+h*f*d;break;case"ZXY":this._x=h*l*u-c*f*d,this._y=c*f*u+h*l*d,this._z=c*l*d+h*f*u,this._w=c*l*u-h*f*d;break;case"ZYX":this._x=h*l*u-c*f*d,this._y=c*f*u+h*l*d,this._z=c*l*d-h*f*u,this._w=c*l*u+h*f*d;break;case"YZX":this._x=h*l*u+c*f*d,this._y=c*f*u+h*l*d,this._z=c*l*d-h*f*u,this._w=c*l*u-h*f*d;break;case"XZY":this._x=h*l*u-c*f*d,this._y=c*f*u-h*l*d,this._z=c*l*d+h*f*u,this._w=c*l*u+h*f*d}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){
// http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm
// assumes axis is normalized
const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){
// http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm
// assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
const t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],h=n+o+u;if(h>0){const e=.5/Math.sqrt(h+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){const e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){const e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{const e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){
// assumes direction vectors vFrom and vTo are normalized
let n=e.dot(t)+1;return n<Number.EPSILON?(
// vFrom and vTo point in opposite directions
n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(
// crossVectors( vFrom, vTo ); // inlined to avoid cyclic dependency on Vector3
this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Ft(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){
// quaternion is assumed to have unit length
return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){
// from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm
const n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,a=this._w;
// http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/
let o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;const s=1-o*o;if(s<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(s),l=Math.atan2(c,o),u=Math.sin((1-t)*l)/c,h=Math.sin(t*l)/c;return this._w=a*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){
// Derived from http://planning.cs.uiuc.edu/node198.html
// Note, this source uses w, x, y, z ordering,
// so we swap the order below.
const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class rn{constructor(e=0,t=0,n=0){rn.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),// sprite.scale.set(x,y)
this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(on.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(on.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=s*t+a*r-o*n,l=s*n+o*t-i*r,u=s*r+i*n-a*t,h=-i*t-a*n-o*r;
// calculate result * inverse quat
return this.x=c*s+h*-i+l*-o-u*-a,this.y=l*s+h*-a+u*-i-c*-o,this.z=u*s+h*-o+c*-a-l*-i,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){
// input: THREE.Matrix4 affine matrix
// vector interpreted as a direction
const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){
// assumes min < max, componentwise
return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}
// TODO lengthSquared?
lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return an.copy(this).projectOnVector(e),this.sub(an)}reflect(e){
// reflect incident vector off plane orthogonal to normal
// normal is assumed to have unit length
return this.sub(an.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;
// clamp, to handle numerical problems
return Math.acos(Ft(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){
// Derived from https://mathworld.wolfram.com/SpherePointPicking.html
const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const an=new rn,on=new nn;function sn(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function cn(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}
/**
 * Matrices converting P3 <-> Rec. 709 primaries, without gamut mapping
 * or clipping. Based on W3C specifications for sRGB and Display P3,
 * and ICC specifications for the D50 connection space. Values in/out
 * are _linear_ sRGB and _linear_ Display P3.
 *
 * Note that both sRGB and Display P3 use the sRGB transfer functions.
 *
 * Reference:
 * - http://www.russellcottrell.com/photo/matrixCalculator.htm
 */const ln=(new $t).fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),un=(new $t).fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]),hn=new rn;
// Conversions from <source> to Linear-sRGB reference space.
const fn={[St]:e=>e,[kt]:e=>e.convertSRGBToLinear(),[Bt]:function(e){return e.convertSRGBToLinear(),hn.set(e.r,e.g,e.b).applyMatrix3(un),e.setRGB(hn.x,hn.y,hn.z)}},dn={[St]:e=>e,[kt]:e=>e.convertLinearToSRGB(),[Bt]:function(e){return hn.set(e.r,e.g,e.b).applyMatrix3(ln),e.setRGB(hn.x,hn.y,hn.z).convertLinearToSRGB()}},pn={enabled:!1,get legacyMode(){return!this.enabled},set legacyMode(e){this.enabled=!e},get workingColorSpace(){return St},set workingColorSpace(e){},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=fn[t],i=dn[n];if(void 0===r||void 0===i)throw new Error(`Unsupported color space conversion, "${t}" to "${n}".`);return i(r(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)}};
// Conversions to <target> from Linear-sRGB reference space.
let gn;class mn{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===gn&&(gn=tn("canvas")),gn.width=e.width,gn.height=e.height;const n=gn.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=gn}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=tn("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=255*sn(i[e]/255);return n.putImageData(r,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*sn(t[e]/255)):
// assuming float
t[e]=sn(t[e]);return{data:t,width:e.width,height:e.height}}return e}}class vn{constructor(e=null){this.isSource=!0,this.uuid=Nt(),this.data=e,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},r=this.data;if(null!==r){let e;if(Array.isArray(r)){
// cube texture
e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(yn(r[t].image)):e.push(yn(r[t]))}else
// texture
e=yn(r);n.url=e}return t||(e.images[this.uuid]=n),n}}function yn(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?mn.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:{}}let An=0;class bn extends Pt{constructor(e=bn.DEFAULT_IMAGE,t=bn.DEFAULT_MAPPING,n=oe,r=oe,i=he,a=de,o=Ee,s=pe,c=bn.DEFAULT_ANISOTROPY,l=xt){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:An++}),this.uuid=Nt(),this.name="",this.source=new vn(e),this.mipmaps=[],this.mapping=t,this.wrapS=n,this.wrapT=r,this.magFilter=i,this.minFilter=a,this.anisotropy=c,this.format=o,this.internalFormat=null,this.type=s,this.offset=new Kt(0,0),this.repeat=new Kt(1,1),this.center=new Kt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new $t,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,// valid values: 1, 2, 4, 8 (see http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml)
// Values of encoding !== THREE.LinearEncoding only supported on map, envMap and emissiveMap.
// Also changing the encoding after already used by a Material will not automatically make the Material
// update. You need to explicitly call Material.needsUpdate to trigger it to recompile.
this.encoding=l,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,// indicates whether a texture belongs to a render target or not
this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ae:e.x=e.x-Math.floor(e.x);break;case oe:e.x=e.x<0?0:1;break;case se:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case ae:e.y=e.y-Math.floor(e.y);break;case oe:e.y=e.y<0?0:1;break;case se:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}bn.DEFAULT_IMAGE=null,bn.DEFAULT_MAPPING=300,bn.DEFAULT_ANISOTROPY=1;class wn{constructor(e=0,t=0,n=0,r=1){wn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){
// http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/index.htm
// q is assumed to be normalized
this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){
// http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/index.htm
// assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
let t,n,r,i;// variables for result
const a=.01,// margin to allow for rounding errors
o=.1,// margin to distinguish between 0 and 180 degrees
s=e.elements,c=s[0],l=s[4],u=s[8],h=s[1],f=s[5],d=s[9],p=s[2],g=s[6],m=s[10];if(Math.abs(l-h)<a&&Math.abs(u-p)<a&&Math.abs(d-g)<a){
// singularity found
// first check for identity matrix which must have +1 for all terms
// in leading diagonal and zero in other terms
if(Math.abs(l+h)<o&&Math.abs(u+p)<o&&Math.abs(d+g)<o&&Math.abs(c+f+m-3)<o)
// this singularity is identity matrix so angle = 0
return this.set(1,0,0,0),this;// zero angle, arbitrary axis
// otherwise this singularity is angle = 180
t=Math.PI;const e=(c+1)/2,s=(f+1)/2,v=(m+1)/2,y=(l+h)/4,A=(u+p)/4,b=(d+g)/4;return e>s&&e>v?
// m11 is the largest diagonal term
e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=y/n,i=A/n):s>v?
// m22 is the largest diagonal term
s<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=y/r,i=b/r):
// m33 is the largest diagonal term so base result on this
v<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(v),n=A/i,r=b/i),this.set(n,r,i,t),this;// return 180 deg rotation
}
// as we have reached here there are no singularities so we can handle normally
let v=Math.sqrt((g-d)*(g-d)+(u-p)*(u-p)+(h-l)*(h-l));// used to normalize
return Math.abs(v)<.001&&(v=1),
// prevent divide by zero, should not happen if matrix is orthogonal and should be
// caught by singularity test above, but I've left it in just in case
this.x=(g-d)/v,this.y=(u-p)/v,this.z=(h-l)/v,this.w=Math.acos((c+f+m-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){
// assumes min < max, componentwise
return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}
/*
 In options, we can specify:
 * Texture parameters for an auto-generated target texture
 * depthBuffer/stencilBuffer: Booleans to indicate if we should generate these buffers
*/class xn extends Pt{constructor(e=1,t=1,n={}){super(),this.isWebGLRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new wn(0,0,e,t),this.scissorTest=!1,this.viewport=new wn(0,0,e,t);const r={width:e,height:t,depth:1};this.texture=new bn(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.internalFormat=void 0!==n.internalFormat?n.internalFormat:null,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:he,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null,this.samples=void 0!==n.samples?n.samples:0}setSize(e,t,n=1){this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;
// ensure image object is not shared, see #20328
const t=Object.assign({},e.texture.image);return this.texture.source=new vn(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Cn extends bn{constructor(e=null,t=1,n=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=ce,this.minFilter=ce,this.wrapR=oe,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class _n extends bn{constructor(e=null,t=1,n=1,r=1){
// We're going to add .setXXX() methods for setting properties later.
// Users can still set in DataTexture3D directly.
//	const texture = new THREE.DataTexture3D( data, width, height, depth );
// 	texture.anisotropy = 16;
// See #14839
super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=ce,this.minFilter=ce,this.wrapR=oe,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class In{constructor(e=new rn(1/0,1/0,1/0),t=new rn(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){let t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0;for(let s=0,c=e.length;s<c;s+=3){const c=e[s],l=e[s+1],u=e[s+2];c<t&&(t=c),l<n&&(n=l),u<r&&(r=u),c>i&&(i=c),l>a&&(a=l),u>o&&(o=u)}return this.min.set(t,n,r),this.max.set(i,a,o),this}setFromBufferAttribute(e){let t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0;for(let s=0,c=e.count;s<c;s++){const c=e.getX(s),l=e.getY(s),u=e.getZ(s);c<t&&(t=c),l<n&&(n=l),u<r&&(r=u),c>i&&(i=c),l>a&&(a=l),u>o&&(o=u)}return this.min.set(t,n,r),this.max.set(i,a,o),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=kn.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){
// this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes
return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){
// Computes the world-axis-aligned bounding box of an object (including its children),
// accounting for both the object's, and children's, world transforms
e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n)if(t&&null!=n.attributes&&void 0!==n.attributes.position){const t=n.attributes.position;for(let n=0,r=t.count;n<r;n++)kn.fromBufferAttribute(t,n).applyMatrix4(e.matrixWorld),this.expandByPoint(kn)}else null===n.boundingBox&&n.computeBoundingBox(),Sn.copy(n.boundingBox),Sn.applyMatrix4(e.matrixWorld),this.union(Sn);const r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){
// This can potentially have a divide by zero if the box
// has a size dimension of 0.
return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){
// using 6 splitting planes to rule out intersections.
return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){
// If that point is inside the sphere, the AABB and sphere intersect.
// Find the point on the AABB closest to the sphere center.
return this.clampPoint(e.center,kn),kn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){
// We compute the minimum and maximum dot product values. If those values
// are on the same side (back or front) of the plane, then there is no intersection.
let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;
// compute box center and extents
this.getCenter(Ln),Qn.subVectors(this.max,Ln),
// translate triangle to aabb origin
Bn.subVectors(e.a,Ln),Mn.subVectors(e.b,Ln),Tn.subVectors(e.c,Ln),
// compute edge vectors for triangle
On.subVectors(Mn,Bn),Dn.subVectors(Tn,Mn),Pn.subVectors(Bn,Tn);
// test against axes that are given by cross product combinations of the edges of the triangle and the edges of the aabb
// make an axis testing of each of the 3 sides of the aabb against each of the 3 sides of the triangle = 9 axis of separation
// axis_ij = u_i x f_j (u0, u1, u2 = face normals of aabb = x,y,z axes vectors since aabb is axis aligned)
let t=[0,-On.z,On.y,0,-Dn.z,Dn.y,0,-Pn.z,Pn.y,On.z,0,-On.x,Dn.z,0,-Dn.x,Pn.z,0,-Pn.x,-On.y,On.x,0,-Dn.y,Dn.x,0,-Pn.y,Pn.x,0];return!!Nn(t,Bn,Mn,Tn,Qn)&&(
// test 3 face normals from the aabb
t=[1,0,0,0,1,0,0,0,1],!!Nn(t,Bn,Mn,Tn,Qn)&&(
// finally testing the face normal of the triangle
// use already existing triangle edge vectors here
Rn.crossVectors(On,Dn),t=[Rn.x,Rn.y,Rn.z],Nn(t,Bn,Mn,Tn,Qn)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,kn).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(kn).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),
// ensure that if there is no overlap, the result is fully empty, not slightly empty with non-inf/+inf values that will cause subsequence intersects to erroneously return valid values.
this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){
// transform of empty box is an empty box.
return this.isEmpty()||(
// NOTE: I am using a binary pattern to specify all 2^3 combinations below
En[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),// 000
En[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),// 001
En[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),// 010
En[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),// 011
En[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),// 100
En[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),// 101
En[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),// 110
En[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),// 111
this.setFromPoints(En)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const En=[
new rn,
new rn,
new rn,
new rn,
new rn,
new rn,
new rn,
new rn],kn=new rn,Sn=new In,Bn=new rn,Mn=new rn,Tn=new rn,On=new rn,Dn=new rn,Pn=new rn,Ln=new rn,Qn=new rn,Rn=new rn,jn=new rn;function Nn(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){jn.fromArray(e,a);
// project the aabb onto the separating axis
const o=i.x*Math.abs(jn.x)+i.y*Math.abs(jn.y)+i.z*Math.abs(jn.z),s=t.dot(jn),c=n.dot(jn),l=r.dot(jn);
// project all 3 vertices of the triangle onto the separating axis
// actual test, basically see if either of the most extreme of the triangle points intersects r
if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)
// points of the projected triangle are outside the projected half-length of the aabb
// the axis is separating and we can exit
return!1}return!0}const Fn=new In,zn=new rn,Hn=new rn;class Un{constructor(e=new rn,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):Fn.setFromPoints(e).getCenter(n);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(
// Empty sphere produces empty bounding box
e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;zn.subVectors(e,this.center);const t=zn.lengthSq();if(t>this.radius*this.radius){
// calculate the minimal sphere
const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(zn,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Hn.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(zn.copy(e.center).add(Hn)),this.expandByPoint(zn.copy(e.center).sub(Hn))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Gn=new rn,Vn=new rn,Wn=new rn,qn=new rn,Yn=new rn,Kn=new rn,$n=new rn;class Jn{constructor(e=new rn,t=new rn(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Gn)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Gn.subVectors(e,this.origin).dot(this.direction);
// point behind the ray
return t<0?this.origin.distanceToSquared(e):(Gn.copy(this.origin).addScaledVector(this.direction,t),Gn.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){
// from https://github.com/pmjoniak/GeometricTools/blob/master/GTEngine/Include/Mathematics/GteDistRaySegment.h
// It returns the min distance between the ray and the segment
// defined by v0 and v1
// It can also set two optional targets :
// - The closest point on the ray
// - The closest point on the segment
Vn.copy(e).add(t).multiplyScalar(.5),Wn.copy(t).sub(e).normalize(),qn.copy(this.origin).sub(Vn);const i=.5*e.distanceTo(t),a=-this.direction.dot(Wn),o=qn.dot(this.direction),s=-qn.dot(Wn),c=qn.lengthSq(),l=Math.abs(1-a*a);let u,h,f,d;if(l>0)if(
// The ray and segment are not parallel.
u=a*s-o,h=a*o-s,d=i*l,u>=0)if(h>=-d)if(h<=d){
// region 0
// Minimum at interior points of ray and segment.
const e=1/l;u*=e,h*=e,f=u*(u+a*h+2*o)+h*(a*u+h+2*s)+c}else
// region 1
h=i,u=Math.max(0,-(a*h+o)),f=-u*u+h*(h+2*s)+c;else
// region 5
h=-i,u=Math.max(0,-(a*h+o)),f=-u*u+h*(h+2*s)+c;else h<=-d?(
// region 4
u=Math.max(0,-(-a*i+o)),h=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+h*(h+2*s)+c):h<=d?(
// region 3
u=0,h=Math.min(Math.max(-i,-s),i),f=h*(h+2*s)+c):(
// region 2
u=Math.max(0,-(a*i+o)),h=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+h*(h+2*s)+c);else
// Ray and segment are parallel.
h=a>0?-i:i,u=Math.max(0,-(a*h+o)),f=-u*u+h*(h+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Vn).addScaledVector(Wn,h),f}intersectSphere(e,t){Gn.subVectors(e.center,this.origin);const n=Gn.dot(this.direction),r=Gn.dot(Gn)-n*n,i=e.radius*e.radius;if(r>i)return null;const a=Math.sqrt(i-r),o=n-a,s=n+a;
// t0 = first intersect point - entrance on front of sphere
// test to see if t1 is behind the ray - if so, return null
return s<0?null:
// test to see if t0 is behind the ray:
// if it is, the ray is inside the sphere, so return the second exit point scaled by t1,
// in order to always return an intersect point that is in front of the ray.
o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)
// line is coplanar, return origin
return 0===e.distanceToPoint(this.origin)?0:null;
// Null is preferable to undefined since undefined means.... it is undefined
const n=-(this.origin.dot(e.normal)+e.constant)/t;
// Return if the ray never intersects the plane
return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){
// check if the ray lies on the plane first
const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0;
// ray origin is behind the plane (and is pointing behind it)
}intersectBox(e,t){let n,r,i,a,o,s;const c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(n=(e.min.x-h.x)*c,r=(e.max.x-h.x)*c):(n=(e.max.x-h.x)*c,r=(e.min.x-h.x)*c),l>=0?(i=(e.min.y-h.y)*l,a=(e.max.y-h.y)*l):(i=(e.max.y-h.y)*l,a=(e.min.y-h.y)*l),n>a||i>r?null:((i>n||isNaN(n))&&(n=i),(a<r||isNaN(r))&&(r=a),u>=0?(o=(e.min.z-h.z)*u,s=(e.max.z-h.z)*u):(o=(e.max.z-h.z)*u,s=(e.min.z-h.z)*u),n>s||o>r?null:((o>n||n!=n)&&(n=o),(s<r||r!=r)&&(r=s),
//return point closest to the ray (positive side)
r<0?null:this.at(n>=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,Gn)}intersectTriangle(e,t,n,r,i){
// Compute the offset origin, edges, and normal.
// from https://github.com/pmjoniak/GeometricTools/blob/master/GTEngine/Include/Mathematics/GteIntrRay3Triangle3.h
Yn.subVectors(t,e),Kn.subVectors(n,e),$n.crossVectors(Yn,Kn);
// Solve Q + t*D = b1*E1 + b2*E2 (Q = kDiff, D = ray direction,
// E1 = kEdge1, E2 = kEdge2, N = Cross(E1,E2)) by
//   |Dot(D,N)|*b1 = sign(Dot(D,N))*Dot(D,Cross(Q,E2))
//   |Dot(D,N)|*b2 = sign(Dot(D,N))*Dot(D,Cross(E1,Q))
//   |Dot(D,N)|*t = -sign(Dot(D,N))*Dot(Q,N)
let a,o=this.direction.dot($n);if(o>0){if(r)return null;a=1}else{if(!(o<0))return null;a=-1,o=-o}qn.subVectors(this.origin,e);const s=a*this.direction.dot(Kn.crossVectors(qn,Kn));
// b1 < 0, no intersection
if(s<0)return null;const c=a*this.direction.dot(Yn.cross(qn));
// b2 < 0, no intersection
if(c<0)return null;
// b1+b2 > 1, no intersection
if(s+c>o)return null;
// Line intersects triangle, check if ray does.
const l=-a*qn.dot($n);
// t < 0, no intersection
return l<0?null:this.at(l/o,i);
// Ray intersects triangle.
}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Xn{constructor(){Xn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(e,t,n,r,i,a,o,s,c,l,u,h,f,d,p,g){const m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=r,m[1]=i,m[5]=a,m[9]=o,m[13]=s,m[2]=c,m[6]=l,m[10]=u,m[14]=h,m[3]=f,m[7]=d,m[11]=p,m[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Xn).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){
// this method does not support reflection matrices
const t=this.elements,n=e.elements,r=1/Zn.setFromMatrixColumn(e,0).length(),i=1/Zn.setFromMatrixColumn(e,1).length(),a=1/Zn.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if("YXZ"===e.order){const e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if("ZXY"===e.order){const e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if("ZYX"===e.order){const e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if("YZX"===e.order){const e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}
// bottom row
return t[3]=0,t[7]=0,t[11]=0,
// last column
t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(tr,e,nr)}lookAt(e,t,n){const r=this.elements;return ar.subVectors(e,t),0===ar.lengthSq()&&(
// eye and target are in the same position
ar.z=1),ar.normalize(),rr.crossVectors(n,ar),0===rr.lengthSq()&&(
// up and z are parallel
1===Math.abs(n.z)?ar.x+=1e-4:ar.z+=1e-4,ar.normalize(),rr.crossVectors(n,ar)),rr.normalize(),ir.crossVectors(ar,rr),r[0]=rr.x,r[4]=ir.x,r[8]=ar.x,r[1]=rr.y,r[5]=ir.y,r[9]=ar.y,r[2]=rr.z,r[6]=ir.z,r[10]=ar.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],h=n[9],f=n[13],d=n[2],p=n[6],g=n[10],m=n[14],v=n[3],y=n[7],A=n[11],b=n[15],w=r[0],x=r[4],C=r[8],_=r[12],I=r[1],E=r[5],k=r[9],S=r[13],B=r[2],M=r[6],T=r[10],O=r[14],D=r[3],P=r[7],L=r[11],Q=r[15];return i[0]=a*w+o*I+s*B+c*D,i[4]=a*x+o*E+s*M+c*P,i[8]=a*C+o*k+s*T+c*L,i[12]=a*_+o*S+s*O+c*Q,i[1]=l*w+u*I+h*B+f*D,i[5]=l*x+u*E+h*M+f*P,i[9]=l*C+u*k+h*T+f*L,i[13]=l*_+u*S+h*O+f*Q,i[2]=d*w+p*I+g*B+m*D,i[6]=d*x+p*E+g*M+m*P,i[10]=d*C+p*k+g*T+m*L,i[14]=d*_+p*S+g*O+m*Q,i[3]=v*w+y*I+A*B+b*D,i[7]=v*x+y*E+A*M+b*P,i[11]=v*C+y*k+A*T+b*L,i[15]=v*_+y*S+A*O+b*Q,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],h=e[10],f=e[14];
//TODO: make this more efficient
//( based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm )
return e[3]*(+i*s*u-r*c*u-i*o*h+n*c*h+r*o*f-n*s*f)+e[7]*(+t*s*f-t*c*h+i*a*h-r*a*f+r*c*l-i*s*l)+e[11]*(+t*c*u-t*o*f-i*a*u+n*a*f+i*o*l-n*c*l)+e[15]*(-r*o*l-t*s*u+t*o*h+r*a*u-n*a*h+n*s*l)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){
// based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm
const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],h=e[10],f=e[11],d=e[12],p=e[13],g=e[14],m=e[15],v=u*g*c-p*h*c+p*s*f-o*g*f-u*s*m+o*h*m,y=d*h*c-l*g*c-d*s*f+a*g*f+l*s*m-a*h*m,A=l*p*c-d*u*c+d*o*f-a*p*f-l*o*m+a*u*m,b=d*u*s-l*p*s-d*o*h+a*p*h+l*o*g-a*u*g,w=t*v+n*y+r*A+i*b;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const x=1/w;return e[0]=v*x,e[1]=(p*h*i-u*g*i-p*r*f+n*g*f+u*r*m-n*h*m)*x,e[2]=(o*g*i-p*s*i+p*r*c-n*g*c-o*r*m+n*s*m)*x,e[3]=(u*s*i-o*h*i-u*r*c+n*h*c+o*r*f-n*s*f)*x,e[4]=y*x,e[5]=(l*g*i-d*h*i+d*r*f-t*g*f-l*r*m+t*h*m)*x,e[6]=(d*s*i-a*g*i-d*r*c+t*g*c+a*r*m-t*s*m)*x,e[7]=(a*h*i-l*s*i+l*r*c-t*h*c-a*r*f+t*s*f)*x,e[8]=A*x,e[9]=(d*u*i-l*p*i-d*n*f+t*p*f+l*n*m-t*u*m)*x,e[10]=(a*p*i-d*o*i+d*n*c-t*p*c-a*n*m+t*o*m)*x,e[11]=(l*o*i-a*u*i-l*n*c+t*u*c+a*n*f-t*o*f)*x,e[12]=b*x,e[13]=(l*p*r-d*u*r+d*n*h-t*p*h-l*n*g+t*u*g)*x,e[14]=(d*o*r-a*p*r-d*n*s+t*p*s+a*n*g-t*o*g)*x,e[15]=(a*u*r-l*o*r+l*n*s-t*u*s-a*n*h+t*o*h)*x,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){
// Based on http://www.gamedev.net/reference/articles/article1199.asp
const n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,h=i*c,f=i*l,d=i*u,p=a*l,g=a*u,m=o*u,v=s*c,y=s*l,A=s*u,b=n.x,w=n.y,x=n.z;return r[0]=(1-(p+m))*b,r[1]=(f+A)*b,r[2]=(d-y)*b,r[3]=0,r[4]=(f-A)*w,r[5]=(1-(h+m))*w,r[6]=(g+v)*w,r[7]=0,r[8]=(d+y)*x,r[9]=(g-v)*x,r[10]=(1-(h+p))*x,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=Zn.set(r[0],r[1],r[2]).length();const a=Zn.set(r[4],r[5],r[6]).length(),o=Zn.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],
// scale the rotation part
er.copy(this);const s=1/i,c=1/a,l=1/o;return er.elements[0]*=s,er.elements[1]*=s,er.elements[2]*=s,er.elements[4]*=c,er.elements[5]*=c,er.elements[6]*=c,er.elements[8]*=l,er.elements[9]*=l,er.elements[10]*=l,t.setFromRotationMatrix(er),n.x=i,n.y=a,n.z=o,this}makePerspective(e,t,n,r,i,a){const o=this.elements,s=2*i/(t-e),c=2*i/(n-r),l=(t+e)/(t-e),u=(n+r)/(n-r),h=-(a+i)/(a-i),f=-2*a*i/(a-i);return o[0]=s,o[4]=0,o[8]=l,o[12]=0,o[1]=0,o[5]=c,o[9]=u,o[13]=0,o[2]=0,o[6]=0,o[10]=h,o[14]=f,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}makeOrthographic(e,t,n,r,i,a){const o=this.elements,s=1/(t-e),c=1/(n-r),l=1/(a-i),u=(t+e)*s,h=(n+r)*c,f=(a+i)*l;return o[0]=2*s,o[4]=0,o[8]=0,o[12]=-u,o[1]=0,o[5]=2*c,o[9]=0,o[13]=-h,o[2]=0,o[6]=0,o[10]=-2*l,o[14]=-f,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Zn=new rn,er=new Xn,tr=new rn(0,0,0),nr=new rn(1,1,1),rr=new rn,ir=new rn,ar=new rn,or=new Xn,sr=new nn;class cr{constructor(e=0,t=0,n=0,r=cr.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){
// assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
const r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],h=r[6],f=r[10];switch(t){case"XYZ":this._y=Math.asin(Ft(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Ft(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(Ft(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Ft(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(Ft(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case"XZY":this._z=Math.asin(-Ft(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return or.makeRotationFromQuaternion(e),this.setFromRotationMatrix(or,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){
// WARNING: this discards revolution information -bhouston
return sr.setFromEuler(this),this.setFromQuaternion(sr,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}cr.DEFAULT_ORDER="XYZ";class lr{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return!!(this.mask&e.mask)}isEnabled(e){return!!(this.mask&1<<e)}}let ur=0;const hr=new rn,fr=new nn,dr=new Xn,pr=new rn,gr=new rn,mr=new rn,vr=new nn,yr=new rn(1,0,0),Ar=new rn(0,1,0),br=new rn(0,0,1),wr={type:"added"},xr={type:"removed"};class Cr extends Pt{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:ur++}),this.uuid=Nt(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Cr.DEFAULT_UP.clone();const e=new rn,t=new cr,n=new nn,r=new rn(1,1,1);t._onChange((function(){n.setFromEuler(t,!1)})),n._onChange((function(){t.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Xn},normalMatrix:{value:new $t}}),this.matrix=new Xn,this.matrixWorld=new Xn,this.matrixAutoUpdate=Cr.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.matrixWorldAutoUpdate=Cr.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,// checked by the renderer
this.layers=new lr,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){
// assumes axis is normalized
this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){
// assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){
// assumes q is normalized
this.quaternion.copy(e)}rotateOnAxis(e,t){
// rotate object on axis in object space
// axis is assumed to be normalized
return fr.setFromAxisAngle(e,t),this.quaternion.multiply(fr),this}rotateOnWorldAxis(e,t){
// rotate object on axis in world space
// axis is assumed to be normalized
// method assumes no rotated parent
return fr.setFromAxisAngle(e,t),this.quaternion.premultiply(fr),this}rotateX(e){return this.rotateOnAxis(yr,e)}rotateY(e){return this.rotateOnAxis(Ar,e)}rotateZ(e){return this.rotateOnAxis(br,e)}translateOnAxis(e,t){
// translate object by distance along axis in object space
// axis is assumed to be normalized
return hr.copy(e).applyQuaternion(this.quaternion),this.position.add(hr.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(yr,e)}translateY(e){return this.translateOnAxis(Ar,e)}translateZ(e){return this.translateOnAxis(br,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(dr.copy(this.matrixWorld).invert())}lookAt(e,t,n){
// This method does not support objects having non-uniformly-scaled parent(s)
e.isVector3?pr.copy(e):pr.set(e,t,n);const r=this.parent;this.updateWorldMatrix(!0,!1),gr.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?dr.lookAt(gr,pr,this.up):dr.lookAt(pr,gr,this.up),this.quaternion.setFromRotationMatrix(dr),r&&(dr.extractRotation(r.matrixWorld),fr.setFromRotationMatrix(dr),this.quaternion.premultiply(fr.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this||e&&e.isObject3D&&(null!==e.parent&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(wr)),this}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(xr)),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++){const t=this.children[e];t.parent=null,t.dispatchEvent(xr)}return this.children.length=0,this}attach(e){
// adds object as a child of this, while maintaining the object's world transform
// Note: This method does not support scene graphs having non-uniformly-scaled nodes(s)
return this.updateWorldMatrix(!0,!1),dr.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),dr.multiply(e.parent.matrixWorld)),e.applyMatrix4(dr),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){const r=this.children[n].getObjectByProperty(e,t);if(void 0!==r)return r}}getObjectsByProperty(e,t){let n=[];this[e]===t&&n.push(this);for(let r=0,i=this.children.length;r<i;r++){const i=this.children[r].getObjectsByProperty(e,t);i.length>0&&(n=n.concat(i))}return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(gr,e,mr),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(gr,vr,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);
// update children
const t=this.children;for(let n=0,r=t.length;n<r;n++){const r=t[n];!0!==r.matrixWorldAutoUpdate&&!0!==e||r.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;
// update children
if(!0===e&&null!==n&&!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++){const n=e[t];!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!1,!0)}}}toJSON(e){
// meta is a string when called from JSON.stringify
const t=void 0===e||"string"==typeof e,n={};
// meta is a hash used to collect geometries, materials.
// not providing it implies that this is the root object
// being serialized.
t&&(
// initialize meta obj
e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});
// standard Object3D serialization
const r={};
function i(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),!0===this.castShadow&&(r.castShadow=!0),!0===this.receiveShadow&&(r.receiveShadow=!0),!1===this.visible&&(r.visible=!1),!1===this.frustumCulled&&(r.frustumCulled=!1),0!==this.renderOrder&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),
// object specific properties
this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){const r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);

if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}

if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){const t=a(e.geometries),r=a(e.materials),i=a(e.textures),o=a(e.images),s=a(e.shapes),c=a(e.skeletons),l=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;
// extract data from the cache hash
// remove metadata on each item
// and return as array
function a(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t<e.children.length;t++){const n=e.children[t];this.add(n.clone())}return this}}Cr.DEFAULT_UP=new rn(0,1,0),Cr.DEFAULT_MATRIX_AUTO_UPDATE=!0,Cr.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const _r=new rn,Ir=new rn,Er=new rn,kr=new rn,Sr=new rn,Br=new rn,Mr=new rn,Tr=new rn,Or=new rn,Dr=new rn;class Pr{constructor(e=new rn,t=new rn,n=new rn){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),_r.subVectors(e,t),r.cross(_r);const i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}
// static/instance method to calculate barycentric coordinates
// based on: http://www.blackpawn.com/texts/pointinpoly/default.html
static getBarycoord(e,t,n,r,i){_r.subVectors(r,t),Ir.subVectors(n,t),Er.subVectors(e,t);const a=_r.dot(_r),o=_r.dot(Ir),s=_r.dot(Er),c=Ir.dot(Ir),l=Ir.dot(Er),u=a*c-o*o;
// collinear or singular triangle
if(0===u)
// arbitrary location outside of triangle?
// not sure if this is the best idea, maybe should be returning undefined
return i.set(-2,-1,-1);const h=1/u,f=(c*s-o*l)*h,d=(a*l-o*s)*h;
// barycentric coordinates must always sum to 1
return i.set(1-f-d,d,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,kr),kr.x>=0&&kr.y>=0&&kr.x+kr.y<=1}static getUV(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,kr),s.set(0,0),s.addScaledVector(i,kr.x),s.addScaledVector(a,kr.y),s.addScaledVector(o,kr.z),s}static isFrontFacing(e,t,n,r){
// strictly front facing
return _r.subVectors(n,t),Ir.subVectors(e,t),_r.cross(Ir).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return _r.subVectors(this.c,this.b),Ir.subVectors(this.a,this.b),.5*_r.cross(Ir).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Pr.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Pr.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return Pr.getUV(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return Pr.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Pr.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let a,o;
// algorithm thanks to Real-Time Collision Detection by Christer Ericson,
// published by Morgan Kaufmann Publishers, (c) 2005 Elsevier Inc.,
// under the accompanying license; see chapter 5.1.5 for detailed explanation.
// basically, we're distinguishing which of the voronoi regions of the triangle
// the point lies in with the minimum amount of redundant computation.
Sr.subVectors(r,n),Br.subVectors(i,n),Tr.subVectors(e,n);const s=Sr.dot(Tr),c=Br.dot(Tr);if(s<=0&&c<=0)
// vertex region of A; barycentric coords (1, 0, 0)
return t.copy(n);Or.subVectors(e,r);const l=Sr.dot(Or),u=Br.dot(Or);if(l>=0&&u<=l)
// vertex region of B; barycentric coords (0, 1, 0)
return t.copy(r);const h=s*u-l*c;if(h<=0&&s>=0&&l<=0)
// edge region of AB; barycentric coords (1-v, v, 0)
return a=s/(s-l),t.copy(n).addScaledVector(Sr,a);Dr.subVectors(e,i);const f=Sr.dot(Dr),d=Br.dot(Dr);if(d>=0&&f<=d)
// vertex region of C; barycentric coords (0, 0, 1)
return t.copy(i);const p=f*c-s*d;if(p<=0&&c>=0&&d<=0)
// edge region of AC; barycentric coords (1-w, 0, w)
return o=c/(c-d),t.copy(n).addScaledVector(Br,o);const g=l*d-f*u;if(g<=0&&u-l>=0&&f-d>=0)
// edge region of BC; barycentric coords (0, 1-w, w)
return Mr.subVectors(i,r),o=(u-l)/(u-l+(f-d)),t.copy(r).addScaledVector(Mr,o);// edge region of BC
// face region
const m=1/(g+p+h);
// u = va * denom
return a=p*m,o=h*m,t.copy(n).addScaledVector(Sr,a).addScaledVector(Br,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let Lr=0;class Qr extends Pt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Lr++}),this.uuid=Nt(),this.name="",this.type="Material",this.blending=m,this.side=f,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=M,this.blendDst=T,this.blendEquation=w,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=F,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Mt,this.stencilZFail=Mt,this.stencilZPass=Mt,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,// override the renderer's default precision for this material
this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n)continue;const r=this[t];void 0!==r&&(r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};
// standard Material serialization
// TODO: Copied from Object3D.toJSON
function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==m&&(n.blending=this.blending),this.side!==f&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,
// rotation (SpriteMaterial)
void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.forceSinglePass&&(n.forceSinglePass=this.forceSinglePass),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}const Rr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},jr={h:0,s:0,l:0},Nr={h:0,s:0,l:0};function Fr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class zr{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}set(e){return e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=kt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,pn.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=pn.workingColorSpace){return this.r=e,this.g=t,this.b=n,pn.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=pn.workingColorSpace){if(
// h,s,l ranges are in 0.0 - 1.0
e=zt(e,1),t=Ft(t,0,1),n=Ft(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Fr(i,r,e+1/3),this.g=Fr(i,r,e),this.b=Fr(i,r,e-1/3)}return pn.toWorkingColorSpace(this,r),this}setStyle(e,t=kt){function n(e){void 0!==e&&parseFloat(e)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){
// rgb / hsl
let e;const i=r[1],a=r[2];switch(i){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))
// rgb(255,0,0) rgba(255,0,0,0.5)
return this.r=Math.min(255,parseInt(e[1],10))/255,this.g=Math.min(255,parseInt(e[2],10))/255,this.b=Math.min(255,parseInt(e[3],10))/255,pn.toWorkingColorSpace(this,t),n(e[4]),this;if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))
// rgb(100%,0%,0%) rgba(100%,0%,0%,0.5)
return this.r=Math.min(100,parseInt(e[1],10))/100,this.g=Math.min(100,parseInt(e[2],10))/100,this.b=Math.min(100,parseInt(e[3],10))/100,pn.toWorkingColorSpace(this,t),n(e[4]),this;break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){
// hsl(120,50%,50%) hsla(120,50%,50%,0.5)
const r=parseFloat(e[1])/360,i=parseFloat(e[2])/100,a=parseFloat(e[3])/100;return n(e[4]),this.setHSL(r,i,a,t)}}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){
// hex color
const e=r[1],n=e.length;if(3===n)
// #ff0
return this.r=parseInt(e.charAt(0)+e.charAt(0),16)/255,this.g=parseInt(e.charAt(1)+e.charAt(1),16)/255,this.b=parseInt(e.charAt(2)+e.charAt(2),16)/255,pn.toWorkingColorSpace(this,t),this;if(6===n)
// #ff0000
return this.r=parseInt(e.charAt(0)+e.charAt(1),16)/255,this.g=parseInt(e.charAt(2)+e.charAt(3),16)/255,this.b=parseInt(e.charAt(4)+e.charAt(5),16)/255,pn.toWorkingColorSpace(this,t),this}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=kt){
// color keywords
const n=Rr[e.toLowerCase()];return void 0!==n&&
// red
this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=sn(e.r),this.g=sn(e.g),this.b=sn(e.b),this}copyLinearToSRGB(e){return this.r=cn(e.r),this.g=cn(e.g),this.b=cn(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=kt){return pn.fromWorkingColorSpace(Hr.copy(this),e),Ft(255*Hr.r,0,255)<<16^Ft(255*Hr.g,0,255)<<8^Ft(255*Hr.b,0,255)}getHexString(e=kt){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=pn.workingColorSpace){
// h,s,l ranges are in 0.0 - 1.0
pn.fromWorkingColorSpace(Hr.copy(this),t);const n=Hr.r,r=Hr.g,i=Hr.b,a=Math.max(n,r,i),o=Math.min(n,r,i);let s,c;const l=(o+a)/2;if(o===a)s=0,c=0;else{const e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4}s/=6}return e.h=s,e.s=c,e.l=l,e}getRGB(e,t=pn.workingColorSpace){return pn.fromWorkingColorSpace(Hr.copy(this),t),e.r=Hr.r,e.g=Hr.g,e.b=Hr.b,e}getStyle(e=kt){pn.fromWorkingColorSpace(Hr.copy(this),e);const t=Hr.r,n=Hr.g,r=Hr.b;return e!==kt?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`:`rgb(${255*t|0},${255*n|0},${255*r|0})`}offsetHSL(e,t,n){return this.getHSL(jr),jr.h+=e,jr.s+=t,jr.l+=n,this.setHSL(jr.h,jr.s,jr.l),this}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(jr),e.getHSL(Nr);const n=Ht(jr.h,Nr.h,t),r=Ht(jr.s,Nr.s,t),i=Ht(jr.l,Nr.l,t);return this.setHSL(n,r,i),this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Hr=new zr;zr.NAMES=Rr;class Ur extends Qr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new zr(16777215),// emissive
this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=V,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Gr=new rn,Vr=new Kt;class Wr{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Tt,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)Vr.fromBufferAttribute(this,t),Vr.applyMatrix3(e),this.setXY(t,Vr.x,Vr.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)Gr.fromBufferAttribute(this,t),Gr.applyMatrix3(e),this.setXYZ(t,Gr.x,Gr.y,Gr.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Gr.fromBufferAttribute(this,t),Gr.applyMatrix4(e),this.setXYZ(t,Gr.x,Gr.y,Gr.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Gr.fromBufferAttribute(this,t),Gr.applyNormalMatrix(e),this.setXYZ(t,Gr.x,Gr.y,Gr.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Gr.fromBufferAttribute(this,t),Gr.transformDirection(e),this.setXYZ(t,Gr.x,Gr.y,Gr.z);return this}set(e,t=0){
// Matching BufferAttribute constructor, do not normalize the array.
return this.array.set(e,t),this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Wt(t,this.array)),t}setX(e,t){return this.normalized&&(t=qt(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Wt(t,this.array)),t}setY(e,t){return this.normalized&&(t=qt(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Wt(t,this.array)),t}setZ(e,t){return this.normalized&&(t=qt(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Wt(t,this.array)),t}setW(e,t){return this.normalized&&(t=qt(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=qt(t,this.array),n=qt(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=qt(t,this.array),n=qt(n,this.array),r=qt(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=qt(t,this.array),n=qt(n,this.array),r=qt(r,this.array),i=qt(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==Tt&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}
// @deprecated
copyColorsArray(){}copyVector2sArray(){}copyVector3sArray(){}copyVector4sArray(){}}

class qr extends Wr{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class Yr extends Wr{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class Kr extends Wr{constructor(e,t,n){super(new Float32Array(e),t,n)}}let $r=0;const Jr=new Xn,Xr=new Cr,Zr=new rn,ei=new In,ti=new In,ni=new rn;class ri extends Pt{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:$r++}),this.uuid=Nt(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Xt(e)?Yr:qr)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new $t).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(e),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Jr.makeRotationFromQuaternion(e),this.applyMatrix4(Jr),this}rotateX(e){
// rotate geometry around world x-axis
return Jr.makeRotationX(e),this.applyMatrix4(Jr),this}rotateY(e){
// rotate geometry around world y-axis
return Jr.makeRotationY(e),this.applyMatrix4(Jr),this}rotateZ(e){
// rotate geometry around world z-axis
return Jr.makeRotationZ(e),this.applyMatrix4(Jr),this}translate(e,t,n){
// translate geometry
return Jr.makeTranslation(e,t,n),this.applyMatrix4(Jr),this}scale(e,t,n){
// scale geometry
return Jr.makeScale(e,t,n),this.applyMatrix4(Jr),this}lookAt(e){return Xr.lookAt(e),Xr.updateMatrix(),this.applyMatrix4(Xr.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Zr).negate(),this.translate(Zr.x,Zr.y,Zr.z),this}setFromPoints(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new Kr(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new In);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingBox.set(new rn(-1/0,-1/0,-1/0),new rn(1/0,1/0,1/0));else{if(void 0!==e){
// process morph attributes if present
if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];ei.setFromBufferAttribute(n),this.morphTargetsRelative?(ni.addVectors(this.boundingBox.min,ei.min),this.boundingBox.expandByPoint(ni),ni.addVectors(this.boundingBox.max,ei.max),this.boundingBox.expandByPoint(ni)):(this.boundingBox.expandByPoint(ei.min),this.boundingBox.expandByPoint(ei.max))}}else this.boundingBox.makeEmpty();isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)}}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Un);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingSphere.set(new rn,1/0);else if(e){
// first, find the center of the bounding sphere
const n=this.boundingSphere.center;
// process morph attributes if present
if(ei.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];ti.setFromBufferAttribute(n),this.morphTargetsRelative?(ni.addVectors(ei.min,ti.min),ei.expandByPoint(ni),ni.addVectors(ei.max,ti.max),ei.expandByPoint(ni)):(ei.expandByPoint(ti.min),ei.expandByPoint(ti.max))}ei.getCenter(n);
// second, try to find a boundingSphere with a radius smaller than the
// boundingSphere of the boundingBox: sqrt(3) smaller in the best case
let r=0;for(let t=0,i=e.count;t<i;t++)ni.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(ni));
// process morph attributes if present
if(t)for(let i=0,a=t.length;i<a;i++){const a=t[i],o=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)ni.fromBufferAttribute(a,t),o&&(Zr.fromBufferAttribute(e,t),ni.add(Zr)),r=Math.max(r,n.distanceToSquared(ni))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)}}computeTangents(){const e=this.index,t=this.attributes;
// based on http://www.terathon.com/code/tangent.html
// (per vertex tangents)
if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return;const n=e.array,r=t.position.array,i=t.normal.array,a=t.uv.array,o=r.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new Wr(new Float32Array(4*o),4));const s=this.getAttribute("tangent").array,c=[],l=[];for(let e=0;e<o;e++)c[e]=new rn,l[e]=new rn;const u=new rn,h=new rn,f=new rn,d=new Kt,p=new Kt,g=new Kt,m=new rn,v=new rn;function y(e,t,n){u.fromArray(r,3*e),h.fromArray(r,3*t),f.fromArray(r,3*n),d.fromArray(a,2*e),p.fromArray(a,2*t),g.fromArray(a,2*n),h.sub(u),f.sub(u),p.sub(d),g.sub(d);const i=1/(p.x*g.y-g.x*p.y);
// silently ignore degenerate uv triangles having coincident or colinear vertices
isFinite(i)&&(m.copy(h).multiplyScalar(g.y).addScaledVector(f,-p.y).multiplyScalar(i),v.copy(f).multiplyScalar(p.x).addScaledVector(h,-g.x).multiplyScalar(i),c[e].add(m),c[t].add(m),c[n].add(m),l[e].add(v),l[t].add(v),l[n].add(v))}let A=this.groups;0===A.length&&(A=[{start:0,count:n.length}]);for(let e=0,t=A.length;e<t;++e){const t=A[e],r=t.start;for(let e=r,i=r+t.count;e<i;e+=3)y(n[e+0],n[e+1],n[e+2])}const b=new rn,w=new rn,x=new rn,C=new rn;function _(e){x.fromArray(i,3*e),C.copy(x);const t=c[e];
// Gram-Schmidt orthogonalize
b.copy(t),b.sub(x.multiplyScalar(x.dot(t))).normalize(),
// Calculate handedness
w.crossVectors(C,t);const n=w.dot(l[e])<0?-1:1;s[4*e]=b.x,s[4*e+1]=b.y,s[4*e+2]=b.z,s[4*e+3]=n}for(let e=0,t=A.length;e<t;++e){const t=A[e],r=t.start;for(let e=r,i=r+t.count;e<i;e+=3)_(n[e+0]),_(n[e+1]),_(n[e+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new Wr(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else
// reset existing normals to zero
for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const r=new rn,i=new rn,a=new rn,o=new rn,s=new rn,c=new rn,l=new rn,u=new rn;
// indexed elements
if(e)for(let h=0,f=e.count;h<f;h+=3){const f=e.getX(h+0),d=e.getX(h+1),p=e.getX(h+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,d),a.fromBufferAttribute(t,p),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),o.fromBufferAttribute(n,f),s.fromBufferAttribute(n,d),c.fromBufferAttribute(n,p),o.add(l),s.add(l),c.add(l),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(d,s.x,s.y,s.z),n.setXYZ(p,c.x,c.y,c.z)}else
// non-indexed elements (unconnected triangle soup)
for(let e=0,o=t.count;e<o;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),n.setXYZ(e+0,l.x,l.y,l.z),n.setXYZ(e+1,l.x,l.y,l.z),n.setXYZ(e+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}}
// @deprecated since r144
merge(){return this}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)ni.fromBufferAttribute(e,t),ni.normalize(),e.setXYZ(t,ni.x,ni.y,ni.z)}toNonIndexed(){function e(e,t){const n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r);let o=0,s=0;for(let i=0,c=t.length;i<c;i++){o=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[s++]=n[o++]}return new Wr(a,r,i)}

if(null===this.index)return this;const t=new ri,n=this.index.array,r=this.attributes;
// attributes
for(const i in r){const a=e(r[i],n);t.setAttribute(i,a)}
// morph attributes
const i=this.morphAttributes;for(const r in i){const a=[],o=i[r];// morphAttribute: array of Float32BufferAttributes
for(let t=0,r=o.length;t<r;t++){const r=e(o[t],n);a.push(r)}t.morphAttributes[r]=a}t.morphTargetsRelative=this.morphTargetsRelative;
// groups
const a=this.groups;for(let e=0,n=a.length;e<n;e++){const n=a[e];t.addGroup(n.start,n.count,n.materialIndex)}return t}toJSON(){const e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};
// standard BufferGeometry serialization
if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}
// for simplicity the code assumes attributes are not shared across geometries, see #15811
e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const r=n[t];e.data.attributes[t]=r.toJSON(e.data)}const r={};let i=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){const r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const o=this.boundingSphere;return null!==o&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){
// reset
this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;
// used for storing cloned, shared data
const t={};
// name
this.name=e.name;
// index
const n=e.index;null!==n&&this.setIndex(n.clone(t));
// attributes
const r=e.attributes;for(const e in r){const n=r[e];this.setAttribute(e,n.clone(t))}
// morph attributes
const i=e.morphAttributes;for(const e in i){const n=[],r=i[e];// morphAttribute: array of Float32BufferAttributes
for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;
// groups
const a=e.groups;for(let e=0,t=a.length;e<t;e++){const t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}
// bounding box
const o=e.boundingBox;null!==o&&(this.boundingBox=o.clone());
// bounding sphere
const s=e.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),
// draw range
this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,
// user data
this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const ii=new Xn,ai=new Jn,oi=new Un,si=new rn,ci=new rn,li=new rn,ui=new rn,hi=new rn,fi=new rn,di=new Kt,pi=new Kt,gi=new Kt,mi=new rn,vi=new rn;class yi extends Cr{constructor(e=new ri,t=new Ur){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,r=n.attributes.position,i=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(r,e);const o=this.morphTargetInfluences;if(i&&o){fi.set(0,0,0);for(let n=0,r=i.length;n<r;n++){const r=o[n],s=i[n];0!==r&&(hi.fromBufferAttribute(s,e),a?fi.addScaledVector(hi,r):fi.addScaledVector(hi.sub(t),r))}t.add(fi)}return this.isSkinnedMesh&&this.boneTransform(e,t),t}raycast(e,t){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0===r)return;
// Checking boundingSphere distance to ray
if(null===n.boundingSphere&&n.computeBoundingSphere(),oi.copy(n.boundingSphere),oi.applyMatrix4(i),ai.copy(e.ray).recast(e.near),!1===oi.containsPoint(ai.origin)){if(null===ai.intersectSphere(oi,si))return;if(ai.origin.distanceToSquared(si)>(e.far-e.near)**2)return}

// Check boundingBox before continuing
if(ii.copy(i).invert(),ai.copy(e.ray).applyMatrix4(ii),null!==n.boundingBox&&!1===ai.intersectsBox(n.boundingBox))return;let a;const o=n.index,s=n.attributes.position,c=n.attributes.uv,l=n.attributes.uv2,u=n.groups,h=n.drawRange;if(null!==o)
// indexed buffer geometry
if(Array.isArray(r))for(let n=0,i=u.length;n<i;n++){const i=u[n],s=r[i.materialIndex];for(let n=Math.max(i.start,h.start),r=Math.min(o.count,Math.min(i.start+i.count,h.start+h.count));n<r;n+=3){const r=o.getX(n),u=o.getX(n+1),h=o.getX(n+2);a=Ai(this,s,e,ai,c,l,r,u,h),a&&(a.faceIndex=Math.floor(n/3),// triangle number in indexed buffer semantics
a.face.materialIndex=i.materialIndex,t.push(a))}}else{for(let n=Math.max(0,h.start),i=Math.min(o.count,h.start+h.count);n<i;n+=3){const i=o.getX(n),s=o.getX(n+1),u=o.getX(n+2);a=Ai(this,r,e,ai,c,l,i,s,u),a&&(a.faceIndex=Math.floor(n/3),// triangle number in indexed buffer semantics
t.push(a))}}else if(void 0!==s)
// non-indexed buffer geometry
if(Array.isArray(r))for(let n=0,i=u.length;n<i;n++){const i=u[n],o=r[i.materialIndex];for(let n=Math.max(i.start,h.start),r=Math.min(s.count,Math.min(i.start+i.count,h.start+h.count));n<r;n+=3){a=Ai(this,o,e,ai,c,l,n,n+1,n+2),a&&(a.faceIndex=Math.floor(n/3),// triangle number in non-indexed buffer semantics
a.face.materialIndex=i.materialIndex,t.push(a))}}else{for(let n=Math.max(0,h.start),i=Math.min(s.count,h.start+h.count);n<i;n+=3){a=Ai(this,r,e,ai,c,l,n,n+1,n+2),a&&(a.faceIndex=Math.floor(n/3),// triangle number in non-indexed buffer semantics
t.push(a))}}}}function Ai(e,t,n,r,i,a,o,s,c){e.getVertexPosition(o,ci),e.getVertexPosition(s,li),e.getVertexPosition(c,ui);const l=function(e,t,n,r,i,a,o,s){let c;if(c=t.side===d?r.intersectTriangle(o,a,i,!0,s):r.intersectTriangle(i,a,o,t.side===f,s),null===c)return null;vi.copy(s),vi.applyMatrix4(e.matrixWorld);const l=n.ray.origin.distanceTo(vi);return l<n.near||l>n.far?null:{distance:l,point:vi.clone(),object:e}}(e,t,n,r,ci,li,ui,mi);if(l){i&&(di.fromBufferAttribute(i,o),pi.fromBufferAttribute(i,s),gi.fromBufferAttribute(i,c),l.uv=Pr.getUV(mi,ci,li,ui,di,pi,gi,new Kt)),a&&(di.fromBufferAttribute(a,o),pi.fromBufferAttribute(a,s),gi.fromBufferAttribute(a,c),l.uv2=Pr.getUV(mi,ci,li,ui,di,pi,gi,new Kt));const e={a:o,b:s,c:c,normal:new rn,materialIndex:0};Pr.getNormal(ci,li,ui,e.normal),l.face=e}return l}class bi extends ri{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};const o=this;
// segments
r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);
// buffers
const s=[],c=[],l=[],u=[];
// helper variables
let h=0,f=0;function d(e,t,n,r,i,a,d,p,g,m,v){const y=a/g,A=d/m,b=a/2,w=d/2,x=p/2,C=g+1,_=m+1;let I=0,E=0;const k=new rn;
// generate vertices, normals and uvs
for(let a=0;a<_;a++){const o=a*A-w;for(let s=0;s<C;s++){const h=s*y-b;
// set values to correct vector component
k[e]=h*r,k[t]=o*i,k[n]=x,
// now apply vector to vertex buffer
c.push(k.x,k.y,k.z),
// set values to correct vector component
k[e]=0,k[t]=0,k[n]=p>0?1:-1,
// now apply vector to normal buffer
l.push(k.x,k.y,k.z),
// uvs
u.push(s/g),u.push(1-a/m),
// counters
I+=1}}
// indices
// 1. you need three indices to draw a single face
// 2. a single segment consists of two faces
// 3. so we need to generate six (2*3) indices per segment
for(let e=0;e<m;e++)for(let t=0;t<g;t++){const n=h+t+C*e,r=h+t+C*(e+1),i=h+(t+1)+C*(e+1),a=h+(t+1)+C*e;
// faces
s.push(n,r,a),s.push(r,i,a),
// increase counter
E+=6}
// add a group to the geometry. this will ensure multi material support
o.addGroup(f,E,v),
// calculate new start value for groups
f+=E,
// update total number of vertices
h+=I}
// build each side of the box geometry
d("z","y","x",-1,-1,n,t,e,a,i,0),// px
d("z","y","x",1,-1,n,t,-e,a,i,1),// nx
d("x","z","y",1,1,e,n,t,r,a,2),// py
d("x","z","y",1,-1,e,n,-t,r,a,3),// ny
d("x","y","z",1,-1,e,t,n,r,i,4),// pz
d("x","y","z",-1,-1,e,t,-n,r,i,5),// nz
// build geometry
this.setIndex(s),this.setAttribute("position",new Kr(c,3)),this.setAttribute("normal",new Kr(l,3)),this.setAttribute("uv",new Kr(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new bi(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}
/**
 * Uniform Utilities
 */function wi(e){const t={};for(const n in e){t[n]={};for(const r in e[n]){const i=e[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?t[n][r]=i.clone():Array.isArray(i)?t[n][r]=i.slice():t[n][r]=i}}return t}function xi(e){const t={};for(let n=0;n<e.length;n++){const r=wi(e[n]);for(const e in r)t[e]=r[e]}return t}function Ci(e){return null===e.getRenderTarget()&&e.outputEncoding===Ct?kt:St}
// Legacy
const _i={clone:wi,merge:xi};class Ii extends Qr{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,// set to use scene fog
this.lights=!1,// set to use scene lights
this.clipping=!1,// set to use user-defined clipping planes
this.extensions={derivatives:!1,// set to use derivatives
fragDepth:!1,// set to use fragment depth values
drawBuffers:!1,// set to use draw buffers
shaderTextureLOD:!1},
// When rendered geometry doesn't include these attributes but the material does,
// use these default values in WebGL. This avoids errors when buffer data is missing.
this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=wi(e.uniforms),this.uniformsGroups=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const n in this.uniforms){const r=this.uniforms[n].value;r&&r.isTexture?t.uniforms[n]={type:"t",value:r.toJSON(e).uuid}:r&&r.isColor?t.uniforms[n]={type:"c",value:r.getHex()}:r&&r.isVector2?t.uniforms[n]={type:"v2",value:r.toArray()}:r&&r.isVector3?t.uniforms[n]={type:"v3",value:r.toArray()}:r&&r.isVector4?t.uniforms[n]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?t.uniforms[n]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?t.uniforms[n]={type:"m4",value:r.toArray()}:t.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Ei extends Cr{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Xn,this.projectionMatrix=new Xn,this.projectionMatrixInverse=new Xn}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class ki extends Ei{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,// width of the film (default in millimeters)
this.filmOffset=0,// horizontal film offset (same unit as gauge)
this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}
/**
	 * Sets the FOV by focal length in respect to the current .filmGauge.
	 *
	 * The default film gauge is 35, so that the focal length can be specified for
	 * a 35mm (full frame) camera.
	 *
	 * Values for focal length and film gauge must have the same unit.
	 */setFocalLength(e){
/** see {@link http://www.bobatkins.com/photography/technical/field_of_view.html} */
const t=.5*this.getFilmHeight()/e;this.fov=2*jt*Math.atan(t),this.updateProjectionMatrix()}
/**
	 * Calculates the focal length from the current .fov and .filmGauge.
	 */getFocalLength(){const e=Math.tan(.5*Rt*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*jt*Math.atan(Math.tan(.5*Rt*this.fov)/this.zoom)}getFilmWidth(){
// film not completely covered in portrait format (aspect < 1)
return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){
// film not completely covered in landscape format (aspect > 1)
return this.filmGauge/Math.max(this.aspect,1)}
/**
	 * Sets an offset in a larger frustum. This is useful for multi-window or
	 * multi-monitor/multi-machine setups.
	 *
	 * For example, if you have 3x2 monitors and each monitor is 1920x1080 and
	 * the monitors are in grid like this
	 *
	 *   +---+---+---+
	 *   | A | B | C |
	 *   +---+---+---+
	 *   | D | E | F |
	 *   +---+---+---+
	 *
	 * then for each monitor you would call it like this
	 *
	 *   const w = 1920;
	 *   const h = 1080;
	 *   const fullWidth = w * 3;
	 *   const fullHeight = h * 2;
	 *
	 *   --A--
	 *   camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
	 *   --B--
	 *   camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
	 *   --C--
	 *   camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
	 *   --D--
	 *   camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
	 *   --E--
	 *   camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
	 *   --F--
	 *   camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
	 *
	 *   Note there is no reason monitors have to be the same size or in a grid.
	 */setViewOffset(e,t,n,r,i,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*Rt*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,o=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/o,r*=a.width/e,n*=a.height/o}const o=this.filmOffset;0!==o&&(i+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Si=-90;// negative fov is not an error
class Bi extends Cr{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n;const r=new ki(Si,1,e,t);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(1,0,0),this.add(r);const i=new ki(Si,1,e,t);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(-1,0,0),this.add(i);const a=new ki(Si,1,e,t);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(0,1,0),this.add(a);const o=new ki(Si,1,e,t);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(0,-1,0),this.add(o);const s=new ki(Si,1,e,t);s.layers=this.layers,s.up.set(0,1,0),s.lookAt(0,0,1),this.add(s);const c=new ki(Si,1,e,t);c.layers=this.layers,c.up.set(0,1,0),c.lookAt(0,0,-1),this.add(c)}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,a,o,s,c]=this.children,l=e.getRenderTarget(),u=e.toneMapping,h=e.xr.enabled;e.toneMapping=Y,e.xr.enabled=!1;const f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,a),e.setRenderTarget(n,3),e.render(t,o),e.setRenderTarget(n,4),e.render(t,s),n.texture.generateMipmaps=f,e.setRenderTarget(n,5),e.render(t,c),e.setRenderTarget(l),e.toneMapping=u,e.xr.enabled=h,n.texture.needsPMREMUpdate=!0}}class Mi extends bn{constructor(e,t,n,r,i,a,o,s,c,l){super(e=void 0!==e?e:[],t=void 0!==t?t:ee,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Ti extends xn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Mi(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.encoding),
// By convention -- likely based on the RenderMan spec from the 1990's -- cube maps are specified by WebGL (and three.js)
// in a coordinate system in which positive-x is to the right when looking up the positive-z axis -- in other words,
// in a left-handed coordinate system. By continuing this convention, preexisting cube maps continued to render correctly.
// three.js uses a right-handed coordinate system. So environment maps used in three.js appear to have px and nx swapped
// and the flag isRenderTargetTexture controls this conversion. The flip is not required when using WebGLCubeRenderTarget.texture
// as a cube texture (this is detected when isRenderTargetTexture is set to true for cube textures).
this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:he}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:/* glsl */"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:/* glsl */"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new bi(5,5,5),i=new Ii({name:"CubemapFromEquirect",uniforms:wi(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:d,blending:g});i.uniforms.tEquirect.value=t;const a=new yi(r,i),o=t.minFilter;
// Avoid blurred poles
t.minFilter===de&&(t.minFilter=he);return new Bi(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}}const Oi=new rn,Di=new rn,Pi=new $t;class Li{constructor(e=new rn(1,0,0),t=0){this.isPlane=!0,
// normal is assumed to be normalized
this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=Oi.subVectors(n,t).cross(Di.subVectors(e,t)).normalize();
// Q: should an error be thrown if normal is zero (e.g. degenerate plane)?
return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){
// Note: will lead to a divide by zero if the plane is invalid.
const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(Oi),r=this.normal.dot(n);if(0===r)
// line is coplanar, return origin
return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;
// Unsure if this is the correct method to handle this case.
const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){
// Note: this tests if a line intersects the plane, not whether it (or its end-points) are coplanar with it.
const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Pi.getNormalMatrix(e),r=this.coplanarPoint(Oi).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Qi=new Un,Ri=new rn;class ji{constructor(e=new Li,t=new Li,n=new Li,r=new Li,i=new Li,a=new Li){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){const t=this.planes,n=e.elements,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],h=n[8],f=n[9],d=n[10],p=n[11],g=n[12],m=n[13],v=n[14],y=n[15];return t[0].setComponents(o-r,u-s,p-h,y-g).normalize(),t[1].setComponents(o+r,u+s,p+h,y+g).normalize(),t[2].setComponents(o+i,u+c,p+f,y+m).normalize(),t[3].setComponents(o-i,u-c,p-f,y-m).normalize(),t[4].setComponents(o-a,u-l,p-d,y-v).normalize(),t[5].setComponents(o+a,u+l,p+d,y+v).normalize(),this}intersectsObject(e){const t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Qi.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Qi)}intersectsSprite(e){return Qi.center.set(0,0,0),Qi.radius=.7071067811865476,Qi.applyMatrix4(e.matrixWorld),this.intersectsSphere(Qi)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++){if(t[e].distanceToPoint(n)<r)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const r=t[n];
// corner at max distance
if(Ri.x=r.normal.x>0?e.max.x:e.min.x,Ri.y=r.normal.y>0?e.max.y:e.min.y,Ri.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Ri)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Ni(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Fi(e,t){const n=t.isWebGL2,r=new WeakMap;return{get:
function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){const e=r.get(t);return void((!e||e.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const a=r.get(t);void 0===a?r.set(t,function(t,r){const i=t.array,a=t.usage,o=e.createBuffer();let s;if(e.bindBuffer(r,o),e.bufferData(r,i,a),t.onUploadCallback(),i instanceof Float32Array)s=5126;else if(i instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");s=5131}else s=5123;else if(i instanceof Int16Array)s=5122;else if(i instanceof Uint32Array)s=5125;else if(i instanceof Int32Array)s=5124;else if(i instanceof Int8Array)s=5120;else if(i instanceof Uint8Array)s=5121;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);s=5121}return{buffer:o,type:s,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}(t,i)):a.version<t.version&&(!function(t,r,i){const a=r.array,o=r.updateRange;e.bindBuffer(i,t),-1===o.count?
// Not using update ranges
e.bufferSubData(i,0,a):(n?e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a,o.offset,o.count):e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a.subarray(o.offset,o.offset+o.count)),o.count=-1),r.onUploadCallback()}(a.buffer,t,i),a.version=t.version)}}}class zi extends ri{constructor(e=1,t=1,n=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};const i=e/2,a=t/2,o=Math.floor(n),s=Math.floor(r),c=o+1,l=s+1,u=e/o,h=t/s,f=[],d=[],p=[],g=[];for(let e=0;e<l;e++){const t=e*h-a;for(let n=0;n<c;n++){const r=n*u-i;d.push(r,-t,0),p.push(0,0,1),g.push(n/o),g.push(1-e/s)}}for(let e=0;e<s;e++)for(let t=0;t<o;t++){const n=t+c*e,r=t+c*(e+1),i=t+1+c*(e+1),a=t+1+c*e;f.push(n,r,a),f.push(r,i,a)}this.setIndex(f),this.setAttribute("position",new Kr(d,3)),this.setAttribute("normal",new Kr(p,3)),this.setAttribute("uv",new Kr(g,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new zi(e.width,e.height,e.widthSegments,e.heightSegments)}}const Hi={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n    float x2 = x * x;\n    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\n#ifdef USE_IRIDESCENCE\n\tvec3 BRDF_GGX_Iridescence( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float iridescence, const in vec3 iridescenceFresnel, const in float roughness ) {\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = mix( F_Schlick( f0, f90, dotVH ), iridescenceFresnel, iridescence );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660,  0.0556434,\n\t\t-1.5371385,  1.8760108, -0.2040259,\n\t\t-0.4985314,  0.0415560,  1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\t return vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat R21 = R12;\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = dFdx( surf_pos.xyz );\n\t\tvec3 vSigmaY = dFdy( surf_pos.xyz );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\treflectedLight.directSpecular += irradiance * BRDF_GGX_Iridescence( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness );\n\t#else\n\t\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmission.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, vec2 fullSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\t\n\t\tvec2 lodFudge = pow( 1.95, lod ) / fullSize;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec2 fullSize = vec2( textureSize( sampler, 0 ) );\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), fullSize, floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), fullSize, ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}"},Ui={common:{diffuse:{value:new zr(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new $t},uv2Transform:{value:new $t},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},// basic, lambert, phong
ior:{value:1.5},// physical
refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Kt(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new zr(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},
// TODO (abelnation): RectAreaLight BRDF data needs to be moved from example to main src
rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new zr(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new $t}},sprite:{diffuse:{value:new zr(16777215)},opacity:{value:1},center:{value:new Kt(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new $t}}},Gi={basic:{uniforms:xi([Ui.common,Ui.specularmap,Ui.envmap,Ui.aomap,Ui.lightmap,Ui.fog]),vertexShader:Hi.meshbasic_vert,fragmentShader:Hi.meshbasic_frag},lambert:{uniforms:xi([Ui.common,Ui.specularmap,Ui.envmap,Ui.aomap,Ui.lightmap,Ui.emissivemap,Ui.bumpmap,Ui.normalmap,Ui.displacementmap,Ui.fog,Ui.lights,{emissive:{value:new zr(0)}}]),vertexShader:Hi.meshlambert_vert,fragmentShader:Hi.meshlambert_frag},phong:{uniforms:xi([Ui.common,Ui.specularmap,Ui.envmap,Ui.aomap,Ui.lightmap,Ui.emissivemap,Ui.bumpmap,Ui.normalmap,Ui.displacementmap,Ui.fog,Ui.lights,{emissive:{value:new zr(0)},specular:{value:new zr(1118481)},shininess:{value:30}}]),vertexShader:Hi.meshphong_vert,fragmentShader:Hi.meshphong_frag},standard:{uniforms:xi([Ui.common,Ui.envmap,Ui.aomap,Ui.lightmap,Ui.emissivemap,Ui.bumpmap,Ui.normalmap,Ui.displacementmap,Ui.roughnessmap,Ui.metalnessmap,Ui.fog,Ui.lights,{emissive:{value:new zr(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Hi.meshphysical_vert,fragmentShader:Hi.meshphysical_frag},toon:{uniforms:xi([Ui.common,Ui.aomap,Ui.lightmap,Ui.emissivemap,Ui.bumpmap,Ui.normalmap,Ui.displacementmap,Ui.gradientmap,Ui.fog,Ui.lights,{emissive:{value:new zr(0)}}]),vertexShader:Hi.meshtoon_vert,fragmentShader:Hi.meshtoon_frag},matcap:{uniforms:xi([Ui.common,Ui.bumpmap,Ui.normalmap,Ui.displacementmap,Ui.fog,{matcap:{value:null}}]),vertexShader:Hi.meshmatcap_vert,fragmentShader:Hi.meshmatcap_frag},points:{uniforms:xi([Ui.points,Ui.fog]),vertexShader:Hi.points_vert,fragmentShader:Hi.points_frag},dashed:{uniforms:xi([Ui.common,Ui.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Hi.linedashed_vert,fragmentShader:Hi.linedashed_frag},depth:{uniforms:xi([Ui.common,Ui.displacementmap]),vertexShader:Hi.depth_vert,fragmentShader:Hi.depth_frag},normal:{uniforms:xi([Ui.common,Ui.bumpmap,Ui.normalmap,Ui.displacementmap,{opacity:{value:1}}]),vertexShader:Hi.meshnormal_vert,fragmentShader:Hi.meshnormal_frag},sprite:{uniforms:xi([Ui.sprite,Ui.fog]),vertexShader:Hi.sprite_vert,fragmentShader:Hi.sprite_frag},background:{uniforms:{uvTransform:{value:new $t},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Hi.background_vert,fragmentShader:Hi.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Hi.backgroundCube_vert,fragmentShader:Hi.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Hi.cube_vert,fragmentShader:Hi.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Hi.equirect_vert,fragmentShader:Hi.equirect_frag},distanceRGBA:{uniforms:xi([Ui.common,Ui.displacementmap,{referencePosition:{value:new rn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Hi.distanceRGBA_vert,fragmentShader:Hi.distanceRGBA_frag},shadow:{uniforms:xi([Ui.lights,Ui.fog,{color:{value:new zr(0)},opacity:{value:1}}]),vertexShader:Hi.shadow_vert,fragmentShader:Hi.shadow_frag}};Gi.physical={uniforms:xi([Gi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Kt(1,1)},clearcoatNormalMap:{value:null},iridescence:{value:0},iridescenceMap:{value:null},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},sheen:{value:0},sheenColor:{value:new zr(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new Kt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new zr(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new zr(1,1,1)},specularColorMap:{value:null}}]),vertexShader:Hi.meshphysical_vert,fragmentShader:Hi.meshphysical_frag};const Vi={r:0,b:0,g:0};function Wi(e,t,n,r,i,a,o){const s=new zr(0);let c,l,u=!0===a?0:1,h=null,p=0,g=null;function m(t,n){t.getRGB(Vi,Ci(e)),r.buffers.color.setClear(Vi.r,Vi.g,Vi.b,n,o)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),u=t,m(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,m(s,u)},render:function(r,a){let o=!1,v=!0===a.isScene?a.background:null;if(v&&v.isTexture){// use PMREM if the user wants to blur the background
v=(a.backgroundBlurriness>0?n:t).get(v)}
// Ignore background in AR
// TODO: Reconsider this.
const y=e.xr,A=y.getSession&&y.getSession();A&&"additive"===A.environmentBlendMode&&(v=null),null===v?m(s,u):v&&v.isColor&&(m(v,1),o=!0),(e.autoClear||o)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),v&&(v.isCubeTexture||v.mapping===ie)?(void 0===l&&(l=new yi(new bi(1,1,1),new Ii({name:"BackgroundCubeMaterial",uniforms:wi(Gi.backgroundCube.uniforms),vertexShader:Gi.backgroundCube.vertexShader,fragmentShader:Gi.backgroundCube.fragmentShader,side:d,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},
// add "envMap" material property so the renderer can evaluate it like for built-in materials
Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(l)),l.material.uniforms.envMap.value=v,l.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,l.material.uniforms.backgroundBlurriness.value=a.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=a.backgroundIntensity,l.material.toneMapped=v.encoding!==Ct,h===v&&p===v.version&&g===e.toneMapping||(l.material.needsUpdate=!0,h=v,p=v.version,g=e.toneMapping),l.layers.enableAll(),
// push to the pre-sorted opaque render list
r.unshift(l,l.geometry,l.material,0,0,null)):v&&v.isTexture&&(void 0===c&&(c=new yi(new zi(2,2),new Ii({name:"BackgroundMaterial",uniforms:wi(Gi.background.uniforms),vertexShader:Gi.background.vertexShader,fragmentShader:Gi.background.fragmentShader,side:f,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),
// add "map" material property so the renderer can evaluate it like for built-in materials
Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=v,c.material.uniforms.backgroundIntensity.value=a.backgroundIntensity,c.material.toneMapped=v.encoding!==Ct,!0===v.matrixAutoUpdate&&v.updateMatrix(),c.material.uniforms.uvTransform.value.copy(v.matrix),h===v&&p===v.version&&g===e.toneMapping||(c.material.needsUpdate=!0,h=v,p=v.version,g=e.toneMapping),c.layers.enableAll(),
// push to the pre-sorted opaque render list
r.unshift(c,c.geometry,c.material,0,0,null))}}}function qi(e,t,n,r){const i=e.getParameter(34921),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),o=r.isWebGL2||null!==a,s={},c=d(null);let l=c,u=!1;function h(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function f(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function d(e){const t=[],n=[],r=[];for(let e=0;e<i;e++)t[e]=0,n[e]=0,r[e]=0;return{
// for backward compatibility on non-VAO support browser
geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:r,object:e,attributes:{},index:null}}function p(){const e=l.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function g(e){m(e,0)}function m(n,i){const a=l.newAttributes,o=l.enabledAttributes,s=l.attributeDivisors;if(a[n]=1,0===o[n]&&(e.enableVertexAttribArray(n),o[n]=1),s[n]!==i){(r.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),s[n]=i}}function v(){const t=l.newAttributes,n=l.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function y(t,n,i,a,o,s){!0!==r.isWebGL2||5124!==i&&5125!==i?e.vertexAttribPointer(t,n,i,a,o,s):e.vertexAttribIPointer(t,n,i,o,s)}function A(){b(),u=!0,l!==c&&(l=c,h(l.object))}
// for backward-compatibility
function b(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:function(i,c,f,A,b){let w=!1;if(o){const t=function(t,n,i){const o=!0===i.wireframe;let c=s[t.id];void 0===c&&(c={},s[t.id]=c);let l=c[n.id];void 0===l&&(l={},c[n.id]=l);let u=l[o];void 0===u&&(u=d(r.isWebGL2?e.createVertexArray():a.createVertexArrayOES()),l[o]=u);return u}(A,f,c);l!==t&&(l=t,h(l.object)),w=function(e,t,n,r){const i=l.attributes,a=t.attributes;let o=0;const s=n.getAttributes();for(const t in s){if(s[t].location>=0){const n=i[t];let r=a[t];if(void 0===r&&("instanceMatrix"===t&&e.instanceMatrix&&(r=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(r=e.instanceColor)),void 0===n)return!0;if(n.attribute!==r)return!0;if(r&&n.data!==r.data)return!0;o++}}return l.attributesNum!==o||l.index!==r}(i,A,f,b),w&&function(e,t,n,r){const i={},a=t.attributes;let o=0;const s=n.getAttributes();for(const t in s){if(s[t].location>=0){let n=a[t];void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor));const r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,o++}}l.attributes=i,l.attributesNum=o,l.index=r}(i,A,f,b)}else{const e=!0===c.wireframe;l.geometry===A.id&&l.program===f.id&&l.wireframe===e||(l.geometry=A.id,l.program=f.id,l.wireframe=e,w=!0)}null!==b&&n.update(b,34963),(w||u)&&(u=!1,function(i,a,o,s){if(!1===r.isWebGL2&&(i.isInstancedMesh||s.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;p();const c=s.attributes,l=o.getAttributes(),u=a.defaultAttributeValues;for(const t in l){const r=l[t];if(r.location>=0){let a=c[t];if(void 0===a&&("instanceMatrix"===t&&i.instanceMatrix&&(a=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(a=i.instanceColor)),void 0!==a){const t=a.normalized,o=a.itemSize,c=n.get(a);
// TODO Attribute may not be available on context restore
if(void 0===c)continue;const l=c.buffer,u=c.type,h=c.bytesPerElement;if(a.isInterleavedBufferAttribute){const n=a.data,c=n.stride,f=a.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e<r.locationSize;e++)m(r.location+e,n.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let e=0;e<r.locationSize;e++)g(r.location+e);e.bindBuffer(34962,l);for(let e=0;e<r.locationSize;e++)y(r.location+e,o/r.locationSize,u,t,c*h,(f+o/r.locationSize*e)*h)}else{if(a.isInstancedBufferAttribute){for(let e=0;e<r.locationSize;e++)m(r.location+e,a.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=a.meshPerAttribute*a.count)}else for(let e=0;e<r.locationSize;e++)g(r.location+e);e.bindBuffer(34962,l);for(let e=0;e<r.locationSize;e++)y(r.location+e,o/r.locationSize,u,t,o*h,o/r.locationSize*e*h)}}else if(void 0!==u){const n=u[t];if(void 0!==n)switch(n.length){case 2:e.vertexAttrib2fv(r.location,n);break;case 3:e.vertexAttrib3fv(r.location,n);break;case 4:e.vertexAttrib4fv(r.location,n);break;default:e.vertexAttrib1fv(r.location,n)}}}}v()}(i,c,f,A),null!==b&&e.bindBuffer(34963,n.get(b).buffer))},reset:A,resetDefaultState:b,dispose:function(){A();for(const e in s){const t=s[e];for(const e in t){const n=t[e];for(const e in n)f(n[e].object),delete n[e];delete t[e]}delete s[e]}},releaseStatesOfGeometry:function(e){if(void 0===s[e.id])return;const t=s[e.id];for(const e in t){const n=t[e];for(const e in n)f(n[e].object),delete n[e];delete t[e]}delete s[e.id]},releaseStatesOfProgram:function(e){for(const t in s){const n=s[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)f(r[e].object),delete r[e];delete n[e.id]}},initAttributes:p,enableAttribute:g,disableUnusedAttributes:v}}function Yi(e,t,n,r){const i=r.isWebGL2;let a;
this.setMode=function(e){a=e},this.render=function(t,r){e.drawArrays(a,t,r),n.update(r,a,1)},this.renderInstances=function(r,o,s){if(0===s)return;let c,l;if(i)c=e,l="drawArraysInstanced";else if(c=t.get("ANGLE_instanced_arrays"),l="drawArraysInstancedANGLE",null===c)return;c[l](a,r,o,s),n.update(o,a,s)}}function Ki(e,t,n){let r;function i(t){if("highp"===t){if(e.getShaderPrecisionFormat(35633,36338).precision>0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const a="undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext;let o=void 0!==n.precision?n.precision:"highp";const s=i(o);s!==o&&(o=s);const c=a||t.has("WEBGL_draw_buffers"),l=!0===n.logarithmicDepthBuffer,u=e.getParameter(34930),h=e.getParameter(35660),f=e.getParameter(3379),d=e.getParameter(34076),p=e.getParameter(34921),g=e.getParameter(36347),m=e.getParameter(36348),v=e.getParameter(36349),y=h>0,A=a||t.has("OES_texture_float");return{isWebGL2:a,drawBuffers:c,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:o,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:d,maxAttributes:p,maxVertexUniforms:g,maxVaryings:m,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:A,floatVertexTextures:y&&A,maxSamples:a?e.getParameter(36183):0}}function $i(e){const t=this;let n=null,r=0,i=!1,a=!1;const o=new Li,s=new $t,c={value:null,needsUpdate:!1};function l(e,n,r,i){const a=null!==e?e.length:0;let l=null;if(0!==a){if(l=c.value,!0!==i||null===l){const t=r+4*a,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===l||l.length<t)&&(l=new Float32Array(t));for(let t=0,n=r;t!==a;++t,n+=4)o.copy(e[t]).applyMatrix4(i,s),o.normal.toArray(l,n),l[n+3]=o.constant}c.value=l,c.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,l}this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||
// enable state of previous frame - the clipping code has to
// run another frame in order to reset the state:
0!==r||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,l(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=l(e,t,0)},this.setState=function(o,s,u){const h=o.clippingPlanes,f=o.clipIntersection,d=o.clipShadows,p=e.get(o);if(!i||null===h||0===h.length||a&&!d)
// there's no local clipping
a?
// there's no global clipping
l(null):function(){c.value!==n&&(c.value=n,c.needsUpdate=r>0);t.numPlanes=r,t.numIntersection=0}();else{const e=a?0:r,t=4*e;let i=p.clippingState||null;c.value=i,// ensure unique state
i=l(h,s,t,u);for(let e=0;e!==t;++e)i[e]=n[e];p.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}}}function Ji(e){let t=new WeakMap;function n(e,t){return t===ne?e.mapping=ee:t===re&&(e.mapping=te),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const a=i.mapping;if(a===ne||a===re){if(t.has(i)){return n(t.get(i).texture,i.mapping)}{const a=i.image;if(a&&a.height>0){const o=new Ti(a.height/2);return o.fromEquirectangularTexture(e,i),t.set(i,o),i.addEventListener("dispose",r),n(o.texture,i.mapping)}
// image not yet ready. try the conversion next frame
return null}}}return i},dispose:function(){t=new WeakMap}}}class Xi extends Ei{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,a=n+e,o=r+t,s=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,o-=t*this.view.offsetY,s=o-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const Zi=[.125,.215,.35,.446,.526,.582],ea=20,ta=new Xi,na=new zr;
// The standard deviations (radians) associated with the extra mips. These are
// chosen to approximate a Trowbridge-Reitz distribution function times the
// geometric shadowing function. These sigma values squared must match the
// variance #defines in cube_uv_reflection_fragment.glsl.js.
let ra=null;
// Golden Ratio
const ia=(1+Math.sqrt(5))/2,aa=1/ia,oa=[
new rn(1,1,1),
new rn(-1,1,1),
new rn(1,1,-1),
new rn(-1,1,-1),
new rn(0,ia,aa),
new rn(0,ia,-aa),
new rn(aa,0,ia),
new rn(-aa,0,ia),
new rn(ia,aa,0),
new rn(-ia,aa,0)];
/**
 * This class generates a Prefiltered, Mipmapped Radiance Environment Map
 * (PMREM) from a cubeMap environment texture. This allows different levels of
 * blur to be quickly accessed based on material roughness. It is packed into a
 * special CubeUV format that allows us to perform custom interpolation so that
 * we can support nonlinear formats such as RGBE. Unlike a traditional mipmap
 * chain, it only goes down to the LOD_MIN level (above), and then creates extra
 * even more filtered 'mips' at the same LOD_MIN resolution, associated with
 * higher roughness levels. In this way we maintain resolution to smoothly
 * interpolate diffuse lighting while limiting sampling computation.
 *
 * Paper: Fast, Accurate Image-Based Lighting
 * https://drive.google.com/file/d/15y8r_UpKlU9SvV4ILb0C3qCPecS8pvLz/view
*/
class sa{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}
/**
	 * Generates a PMREM from a supplied Scene, which can be faster than using an
	 * image if networking bandwidth is low. Optional sigma specifies a blur radius
	 * in radians to be applied to the scene before PMREM generation. Optional near
	 * and far planes ensure the scene is rendered in its entirety (the cubeCamera
	 * is placed at the origin).
	 */fromScene(e,t=0,n=.1,r=100){ra=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}
/**
	 * Generates a PMREM from an equirectangular texture, which can be either LDR
	 * or HDR. The ideal input image size is 1k (1024 x 512),
	 * as this matches best with the 256 x 256 cubemap output.
	 */fromEquirectangular(e,t=null){return this._fromTexture(e,t)}
/**
	 * Generates a PMREM from an cubemap texture, which can be either LDR
	 * or HDR. The ideal input cube size is 256 x 256,
	 * as this matches best with the 256 x 256 cubemap output.
	 */fromCubemap(e,t=null){return this._fromTexture(e,t)}
/**
	 * Pre-compiles the cubemap shader. You can get faster start-up by invoking this method during
	 * your texture's network fetch for increased concurrency.
	 */compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=ha(),this._compileMaterial(this._cubemapMaterial))}
/**
	 * Pre-compiles the equirectangular shader. You can get faster start-up by invoking this method during
	 * your texture's network fetch for increased concurrency.
	 */compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=ua(),this._compileMaterial(this._equirectMaterial))}
/**
	 * Disposes of the PMREMGenerator's internal memory. Note that PMREMGenerator is a static class,
	 * so you should not need more than one PMREMGenerator object. If you do, calling dispose() on
	 * one of them will cause any others to also become unusable.
	 */dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}
// private interface
_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(ra),e.scissorTest=!1,la(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===ee||e.mapping===te?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):// Equirectangular
this._setSize(e.image.width/4),ra=this._renderer.getRenderTarget();const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:he,minFilter:he,generateMipmaps:!1,type:we,format:Ee,encoding:xt,depthBuffer:!1},r=ca(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=ca(e,t,n);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],r=[];let i=e;const a=e-4+1+Zi.length;for(let o=0;o<a;o++){const a=Math.pow(2,i);n.push(a);let s=1/a;o>e-4?s=Zi[o-e+4-1]:0===o&&(s=0),r.push(s);const c=1/(a-2),l=-c,u=1+c,h=[l,l,u,l,u,u,l,l,u,u,l,u],f=6,d=6,p=3,g=2,m=1,v=new Float32Array(p*d*f),y=new Float32Array(g*d*f),A=new Float32Array(m*d*f);for(let e=0;e<f;e++){const t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,p*d*e),y.set(h,g*d*e);const i=[e,e,e,e,e,e];A.set(i,m*d*e)}const b=new ri;b.setAttribute("position",new Wr(v,p)),b.setAttribute("uv",new Wr(y,g)),b.setAttribute("faceIndex",new Wr(A,m)),t.push(b),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(ea),i=new rn(0,1,0),a=new Ii({name:"SphericalGaussianBlur",defines:{n:ea,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:fa(),fragmentShader:/* glsl */"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:g,depthTest:!1,depthWrite:!1});return a}(r,e,t)}return r}_compileMaterial(e){const t=new yi(this._lodPlanes[0],e);this._renderer.compile(t,ta)}_sceneToCubeUV(e,t,n,r){const i=new ki(90,1,t,n),a=[1,-1,1,1,1,1],o=[1,1,1,-1,-1,-1],s=this._renderer,c=s.autoClear,l=s.toneMapping;s.getClearColor(na),s.toneMapping=Y,s.autoClear=!1;const u=new Ur({name:"PMREM.Background",side:d,depthWrite:!1,depthTest:!1}),h=new yi(new bi,u);let f=!1;const p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,f=!0):(u.color.copy(na),f=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(i.up.set(0,a[t],0),i.lookAt(o[t],0,0)):1===n?(i.up.set(0,0,a[t]),i.lookAt(0,o[t],0)):(i.up.set(0,a[t],0),i.lookAt(0,0,o[t]));const c=this._cubeSize;la(r,n*c,t>2?c:0,c,c),s.setRenderTarget(r),f&&s.render(h,i),s.render(e,i)}h.geometry.dispose(),h.material.dispose(),s.toneMapping=l,s.autoClear=c,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===ee||e.mapping===te;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=ha()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=ua());const i=r?this._cubemapMaterial:this._equirectMaterial,a=new yi(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const o=this._cubeSize;la(t,0,0,3*o,2*o),n.setRenderTarget(t),n.render(a,ta)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let t=1;t<this._lodPlanes.length;t++){const n=Math.sqrt(this._sigmas[t]*this._sigmas[t]-this._sigmas[t-1]*this._sigmas[t-1]),r=oa[(t-1)%oa.length];this._blur(e,t-1,t,n,r)}t.autoClear=n}
/**
	 * This is a two-pass Gaussian blur for a cubemap. Normally this is done
	 * vertically and horizontally, but this breaks down on a cube. Here we apply
	 * the blur latitudinally (around the poles), and then longitudinally (towards
	 * the poles) to approximate the orthogonally-separable blur. It is least
	 * accurate at the poles, but still does a decent job.
	 */_blur(e,t,n,r,i){const a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,"latitudinal",i),this._halfBlur(a,e,n,n,r,"longitudinal",i)}_halfBlur(e,t,n,r,i,a,o){const s=this._renderer,c=this._blurMaterial,l=new yi(this._lodPlanes[r],c),u=c.uniforms,h=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*h):2*Math.PI/39,d=i/f,p=isFinite(i)?1+Math.floor(3*d):ea,g=[];let m=0;for(let e=0;e<ea;++e){const t=e/d,n=Math.exp(-t*t/2);g.push(n),0===e?m+=n:e<p&&(m+=2*n)}for(let e=0;e<g.length;e++)g[e]=g[e]/m;u.envMap.value=e.texture,u.samples.value=p,u.weights.value=g,u.latitudinal.value="latitudinal"===a,o&&(u.poleAxis.value=o);const{_lodMax:v}=this;u.dTheta.value=f,u.mipInt.value=v-n;const y=this._sizeLods[r];la(t,3*y*(r>v-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),s.setRenderTarget(t),s.render(l,ta)}}function ca(e,t,n){const r=new xn(e,t,n);return r.texture.mapping=ie,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function la(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ua(){return new Ii({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:fa(),fragmentShader:/* glsl */"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:g,depthTest:!1,depthWrite:!1})}function ha(){return new Ii({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:fa(),fragmentShader:/* glsl */"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:g,depthTest:!1,depthWrite:!1})}function fa(){/* glsl */
return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function da(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const a=i.mapping,o=a===ne||a===re,s=a===ee||a===te;
// equirect/cube map to cubeUV conversion
if(o||s){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new sa(e)),r=o?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const a=i.image;if(o&&a&&a.height>0||s&&a&&function(e){let t=0;const n=6;for(let r=0;r<n;r++)void 0!==e[r]&&t++;return t===n}(a)){null===n&&(n=new sa(e));const a=o?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,a),i.addEventListener("dispose",r),a.texture}
// image not yet ready. try the conversion next frame
return null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function pa(e){const t={};function n(n){if(void 0!==t[n])return t[n];let r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){const t=n(e);return t}}}function ga(e,t,n,r){const i={},a=new WeakMap;function o(e){const s=e.target;null!==s.index&&t.remove(s.index);for(const e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener("dispose",o),delete i[s.id];const c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,
n.memory.geometries--}function s(e){const n=[],r=e.index,i=e.attributes.position;let o=0;if(null!==r){const e=r.array;o=r.version;for(let t=0,r=e.length;t<r;t+=3){const r=e[t+0],i=e[t+1],a=e[t+2];n.push(r,i,i,a,a,r)}}else{const e=i.array;o=i.version;for(let t=0,r=e.length/3-1;t<r;t+=3){const e=t+0,r=t+1,i=t+2;n.push(e,r,r,i,i,e)}}const s=new(Xt(n)?Yr:qr)(n,1);s.version=o;
// Updating index buffer in VAO now. See WebGLBindingStates
const c=a.get(e);c&&t.remove(c),
a.set(e,s)}return{get:function(e,t){return!0===i[t.id]||(t.addEventListener("dispose",o),i[t.id]=!0,n.memory.geometries++),t},update:function(e){const n=e.attributes;
// Updating index buffer in VAO now. See WebGLBindingStates.
for(const e in n)t.update(n[e],34962);
// morph targets
const r=e.morphAttributes;for(const e in r){const n=r[e];for(let e=0,r=n.length;e<r;e++)t.update(n[e],34962)}},getWireframeAttribute:function(e){const t=a.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&s(e)}else s(e);return a.get(e)}}}function ma(e,t,n,r){const i=r.isWebGL2;let a,o,s;
this.setMode=function(e){a=e},this.setIndex=function(e){o=e.type,s=e.bytesPerElement},this.render=function(t,r){e.drawElements(a,r,o,t*s),n.update(r,a,1)},this.renderInstances=function(r,c,l){if(0===l)return;let u,h;if(i)u=e,h="drawElementsInstanced";else if(u=t.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===u)return;u[h](a,c,o,r*s,l),n.update(c,a,l)}}function va(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.frame++,t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(e,n,r){switch(t.calls++,n){case 4:t.triangles+=r*(e/3);break;case 1:t.lines+=r*(e/2);break;case 3:t.lines+=r*(e-1);break;case 2:t.lines+=r*e;break;case 0:t.points+=r*e}}}}function ya(e,t){return e[0]-t[0]}function Aa(e,t){return Math.abs(t[1])-Math.abs(e[1])}function ba(e,t,n){const r={},i=new Float32Array(8),a=new WeakMap,o=new wn,s=[];for(let e=0;e<8;e++)s[e]=[e,0];return{update:function(c,l,u){const h=c.morphTargetInfluences;if(!0===t.isWebGL2){
// instead of using attributes, the WebGL 2 code path encodes morph targets
// into an array of data textures. Each layer represents a single morph target.
const f=l.morphAttributes.position||l.morphAttributes.normal||l.morphAttributes.color,d=void 0!==f?f.length:0;let p=a.get(l);if(void 0===p||p.count!==d){void 0!==p&&p.texture.dispose();const v=void 0!==l.morphAttributes.position,y=void 0!==l.morphAttributes.normal,A=void 0!==l.morphAttributes.color,b=l.morphAttributes.position||[],w=l.morphAttributes.normal||[],x=l.morphAttributes.color||[];let C=0;!0===v&&(C=1),!0===y&&(C=2),!0===A&&(C=3);let _=l.attributes.position.count*C,I=1;_>t.maxTextureSize&&(I=Math.ceil(_/t.maxTextureSize),_=t.maxTextureSize);const E=new Float32Array(_*I*4*d),k=new Cn(E,_,I,d);k.type=be,k.needsUpdate=!0;
// fill buffer
const S=4*C;for(let M=0;M<d;M++){const T=b[M],O=w[M],D=x[M],P=_*I*4*M;for(let L=0;L<T.count;L++){const Q=L*S;!0===v&&(o.fromBufferAttribute(T,L),E[P+Q+0]=o.x,E[P+Q+1]=o.y,E[P+Q+2]=o.z,E[P+Q+3]=0),!0===y&&(o.fromBufferAttribute(O,L),E[P+Q+4]=o.x,E[P+Q+5]=o.y,E[P+Q+6]=o.z,E[P+Q+7]=0),!0===A&&(o.fromBufferAttribute(D,L),E[P+Q+8]=o.x,E[P+Q+9]=o.y,E[P+Q+10]=o.z,E[P+Q+11]=4===D.itemSize?o.w:1)}}function B(){k.dispose(),a.delete(l),l.removeEventListener("dispose",B)}p={count:d,texture:k,size:new Kt(_,I)},a.set(l,p),l.addEventListener("dispose",B)}

let g=0;for(let R=0;R<h.length;R++)g+=h[R];const m=l.morphTargetsRelative?1:1-g;u.getUniforms().setValue(e,"morphTargetBaseInfluence",m),u.getUniforms().setValue(e,"morphTargetInfluences",h),u.getUniforms().setValue(e,"morphTargetsTexture",p.texture,n),u.getUniforms().setValue(e,"morphTargetsTextureSize",p.size)}else{
// When object doesn't have morph target influences defined, we treat it as a 0-length array
// This is important to make sure we set up morphTargetBaseInfluence / morphTargetInfluences
const j=void 0===h?0:h.length;let N=r[l.id];if(void 0===N||N.length!==j){
// initialise list
N=[];for(let G=0;G<j;G++)N[G]=[G,0];r[l.id]=N}
// Collect influences
for(let V=0;V<j;V++){const W=N[V];W[0]=V,W[1]=h[V]}N.sort(Aa);for(let q=0;q<8;q++)q<j&&N[q][1]?(s[q][0]=N[q][0],s[q][1]=N[q][1]):(s[q][0]=Number.MAX_SAFE_INTEGER,s[q][1]=0);s.sort(ya);const F=l.morphAttributes.position,z=l.morphAttributes.normal;let H=0;for(let Y=0;Y<8;Y++){const K=s[Y],$=K[0],J=K[1];$!==Number.MAX_SAFE_INTEGER&&J?(F&&l.getAttribute("morphTarget"+Y)!==F[$]&&l.setAttribute("morphTarget"+Y,F[$]),z&&l.getAttribute("morphNormal"+Y)!==z[$]&&l.setAttribute("morphNormal"+Y,z[$]),i[Y]=J,H+=J):(F&&!0===l.hasAttribute("morphTarget"+Y)&&l.deleteAttribute("morphTarget"+Y),z&&!0===l.hasAttribute("morphNormal"+Y)&&l.deleteAttribute("morphNormal"+Y),i[Y]=0)}
// GLSL shader uses formula baseinfluence * base + sum(target * influence)
// This allows us to switch between absolute morphs and relative morphs without changing shader code
// When baseinfluence = 1 - sum(influence), the above is equivalent to sum((target - base) * influence)
const U=l.morphTargetsRelative?1:1-H;u.getUniforms().setValue(e,"morphTargetBaseInfluence",U),u.getUniforms().setValue(e,"morphTargetInfluences",i)}}}}function wa(e,t,n,r){let i=new WeakMap;function a(e){const t=e.target;t.removeEventListener("dispose",a),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(e){const o=r.render.frame,s=e.geometry,c=t.get(e,s);
// Update once per frame
return i.get(c)!==o&&(t.update(c),i.set(c,o)),e.isInstancedMesh&&(!1===e.hasEventListener("dispose",a)&&e.addEventListener("dispose",a),n.update(e.instanceMatrix,34962),null!==e.instanceColor&&n.update(e.instanceColor,34962)),c},dispose:function(){i=new WeakMap}}}
/**
 * Uniforms of a program.
 * Those form a tree structure with a special top-level container for the root,
 * which you get by calling 'new WebGLUniforms( gl, program )'.
 *
 *
 * Properties of inner nodes including the top-level container:
 *
 * .seq - array of nested uniforms
 * .map - nested uniforms by name
 *
 *
 * Methods of all nodes except the top-level container:
 *
 * .setValue( gl, value, [textures] )
 *
 * 		uploads a uniform value(s)
 *  	the 'textures' parameter is needed for sampler uniforms
 *
 *
 * Static methods of the top-level container (textures factorizations):
 *
 * .upload( gl, seq, values, textures )
 *
 * 		sets uniforms in 'seq' to 'values[id].value'
 *
 * .seqWithValue( seq, values ) : filteredSeq
 *
 * 		filters 'seq' entries with corresponding entry in values
 *
 *
 * Methods of the top-level container (textures factorizations):
 *
 * .setValue( gl, name, value, textures )
 *
 * 		sets uniform with  name 'name' to 'value'
 *
 * .setOptional( gl, obj, prop )
 *
 * 		like .set for an optional property of the object
 *
 */const xa=new bn,Ca=new Cn,_a=new _n,Ia=new Mi,Ea=[],ka=[],Sa=new Float32Array(16),Ba=new Float32Array(9),Ma=new Float32Array(4);
// Flattening for arrays of vectors and matrices
function Ta(e,t,n){const r=e[0];if(r<=0||r>0)return e;
// unoptimized: ! isNaN( firstElem )
// see http://jacksondunstan.com/articles/983
const i=t*n;let a=Ea[i];if(void 0===a&&(a=new Float32Array(i),Ea[i]=a),0!==t){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Oa(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Da(e,t){for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}
// Texture unit allocation
function Pa(e,t){let n=ka[t];void 0===n&&(n=new Int32Array(t),ka[t]=n);for(let r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}
// --- Setters ---
// Note: Defining these methods externally, because they come in a bunch
// and this way their names minify.
// Single scalar
function La(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}
// Single float vector (from flat array or THREE.VectorN)
function Qa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Oa(n,t))return;e.uniform2fv(this.addr,t),Da(n,t)}}function Ra(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Oa(n,t))return;e.uniform3fv(this.addr,t),Da(n,t)}}function ja(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Oa(n,t))return;e.uniform4fv(this.addr,t),Da(n,t)}}
// Single matrix (from flat array or THREE.MatrixN)
function Na(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Oa(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Da(n,t)}else{if(Oa(n,r))return;Ma.set(r),e.uniformMatrix2fv(this.addr,!1,Ma),Da(n,r)}}function Fa(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Oa(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Da(n,t)}else{if(Oa(n,r))return;Ba.set(r),e.uniformMatrix3fv(this.addr,!1,Ba),Da(n,r)}}function za(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Oa(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Da(n,t)}else{if(Oa(n,r))return;Sa.set(r),e.uniformMatrix4fv(this.addr,!1,Sa),Da(n,r)}}
// Single integer / boolean
function Ha(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}
// Single integer / boolean vector (from flat array or THREE.VectorN)
function Ua(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Oa(n,t))return;e.uniform2iv(this.addr,t),Da(n,t)}}function Ga(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Oa(n,t))return;e.uniform3iv(this.addr,t),Da(n,t)}}function Va(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Oa(n,t))return;e.uniform4iv(this.addr,t),Da(n,t)}}
// Single unsigned integer
function Wa(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}
// Single unsigned integer vector (from flat array or THREE.VectorN)
function qa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Oa(n,t))return;e.uniform2uiv(this.addr,t),Da(n,t)}}function Ya(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Oa(n,t))return;e.uniform3uiv(this.addr,t),Da(n,t)}}function Ka(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Oa(n,t))return;e.uniform4uiv(this.addr,t),Da(n,t)}}
// Single texture (2D / Cube)
function $a(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2D(t||xa,i)}function Ja(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||_a,i)}function Xa(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(t||Ia,i)}function Za(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||Ca,i)}
// Helper to pick the right setter for the singular case
// Array of scalars
function eo(e,t){e.uniform1fv(this.addr,t)}
// Array of vectors (from flat array or array of THREE.VectorN)
function to(e,t){const n=Ta(t,this.size,2);e.uniform2fv(this.addr,n)}function no(e,t){const n=Ta(t,this.size,3);e.uniform3fv(this.addr,n)}function ro(e,t){const n=Ta(t,this.size,4);e.uniform4fv(this.addr,n)}
// Array of matrices (from flat array or array of THREE.MatrixN)
function io(e,t){const n=Ta(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function ao(e,t){const n=Ta(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function oo(e,t){const n=Ta(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}
// Array of integer / boolean
function so(e,t){e.uniform1iv(this.addr,t)}
// Array of integer / boolean vectors (from flat array)
function co(e,t){e.uniform2iv(this.addr,t)}function lo(e,t){e.uniform3iv(this.addr,t)}function uo(e,t){e.uniform4iv(this.addr,t)}
// Array of unsigned integer
function ho(e,t){e.uniform1uiv(this.addr,t)}
// Array of unsigned integer vectors (from flat array)
function fo(e,t){e.uniform2uiv(this.addr,t)}function po(e,t){e.uniform3uiv(this.addr,t)}function go(e,t){e.uniform4uiv(this.addr,t)}
// Array of textures (2D / 3D / Cube / 2DArray)
function mo(e,t,n){const r=this.cache,i=t.length,a=Pa(n,i);Oa(r,a)||(e.uniform1iv(this.addr,a),Da(r,a));for(let e=0;e!==i;++e)n.setTexture2D(t[e]||xa,a[e])}function vo(e,t,n){const r=this.cache,i=t.length,a=Pa(n,i);Oa(r,a)||(e.uniform1iv(this.addr,a),Da(r,a));for(let e=0;e!==i;++e)n.setTexture3D(t[e]||_a,a[e])}function yo(e,t,n){const r=this.cache,i=t.length,a=Pa(n,i);Oa(r,a)||(e.uniform1iv(this.addr,a),Da(r,a));for(let e=0;e!==i;++e)n.setTextureCube(t[e]||Ia,a[e])}function Ao(e,t,n){const r=this.cache,i=t.length,a=Pa(n,i);Oa(r,a)||(e.uniform1iv(this.addr,a),Da(r,a));for(let e=0;e!==i;++e)n.setTexture2DArray(t[e]||Ca,a[e])}
// Helper to pick the right setter for a pure (bottom-level) array
// --- Uniform Classes ---
class bo{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return La;// FLOAT
case 35664:return Qa;// _VEC2
case 35665:return Ra;// _VEC3
case 35666:return ja;// _VEC4
case 35674:return Na;// _MAT2
case 35675:return Fa;// _MAT3
case 35676:return za;// _MAT4
case 5124:case 35670:return Ha;// INT, BOOL
case 35667:case 35671:return Ua;// _VEC2
case 35668:case 35672:return Ga;// _VEC3
case 35669:case 35673:return Va;// _VEC4
case 5125:return Wa;// UINT
case 36294:return qa;// _VEC2
case 36295:return Ya;// _VEC3
case 36296:return Ka;// _VEC4
case 35678:// SAMPLER_2D
case 36198:// SAMPLER_EXTERNAL_OES
case 36298:// INT_SAMPLER_2D
case 36306:// UNSIGNED_INT_SAMPLER_2D
case 35682:// SAMPLER_2D_SHADOW
return $a;case 35679:// SAMPLER_3D
case 36299:// INT_SAMPLER_3D
case 36307:// UNSIGNED_INT_SAMPLER_3D
return Ja;case 35680:// SAMPLER_CUBE
case 36300:// INT_SAMPLER_CUBE
case 36308:// UNSIGNED_INT_SAMPLER_CUBE
case 36293:// SAMPLER_CUBE_SHADOW
return Xa;case 36289:// SAMPLER_2D_ARRAY
case 36303:// INT_SAMPLER_2D_ARRAY
case 36311:// UNSIGNED_INT_SAMPLER_2D_ARRAY
case 36292:// SAMPLER_2D_ARRAY_SHADOW
return Za}}(t.type)}}class wo{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return eo;// FLOAT
case 35664:return to;// _VEC2
case 35665:return no;// _VEC3
case 35666:return ro;// _VEC4
case 35674:return io;// _MAT2
case 35675:return ao;// _MAT3
case 35676:return oo;// _MAT4
case 5124:case 35670:return so;// INT, BOOL
case 35667:case 35671:return co;// _VEC2
case 35668:case 35672:return lo;// _VEC3
case 35669:case 35673:return uo;// _VEC4
case 5125:return ho;// UINT
case 36294:return fo;// _VEC2
case 36295:return po;// _VEC3
case 36296:return go;// _VEC4
case 35678:// SAMPLER_2D
case 36198:// SAMPLER_EXTERNAL_OES
case 36298:// INT_SAMPLER_2D
case 36306:// UNSIGNED_INT_SAMPLER_2D
case 35682:// SAMPLER_2D_SHADOW
return mo;case 35679:// SAMPLER_3D
case 36299:// INT_SAMPLER_3D
case 36307:// UNSIGNED_INT_SAMPLER_3D
return vo;case 35680:// SAMPLER_CUBE
case 36300:// INT_SAMPLER_CUBE
case 36308:// UNSIGNED_INT_SAMPLER_CUBE
case 36293:// SAMPLER_CUBE_SHADOW
return yo;case 36289:// SAMPLER_2D_ARRAY
case 36303:// INT_SAMPLER_2D_ARRAY
case 36311:// UNSIGNED_INT_SAMPLER_2D_ARRAY
case 36292:// SAMPLER_2D_ARRAY_SHADOW
return Ao}}(t.type)}}class xo{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const r=this.seq;for(let i=0,a=r.length;i!==a;++i){const a=r[i];a.setValue(e,t[a.id],n)}}}
// --- Top-level ---
// Parser - builds up the property tree from the path strings
const Co=/(\w+)(\])?(\[|\.)?/g;
// extracts
// 	- the identifier (member name or array index)
//  - followed by an optional right bracket (found when array index)
//  - followed by an optional left bracket or dot (type of subscript)

// Note: These portions can be read in a non-overlapping fashion and
// allow straightforward parsing of the hierarchy that WebGL encodes
// in the uniform names.
function _o(e,t){e.seq.push(t),e.map[t.id]=t}function Io(e,t,n){const r=e.name,i=r.length;
// reset RegExp object, because of the early exit of a previous run
for(Co.lastIndex=0;;){const a=Co.exec(r),o=Co.lastIndex;let s=a[1];const c="]"===a[2],l=a[3];// convert to integer
if(c&&(s|=0),void 0===l||"["===l&&o+2===i){
// bare name or "pure" bottom-level array "[0]" suffix
_o(n,void 0===l?new bo(s,e,t):new wo(s,e,t));break}{let e=n.map[s];void 0===e&&(e=new xo(s),_o(n,e)),n=e}}}
// Root Container
class Eo{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,35718);for(let r=0;r<n;++r){const n=e.getActiveUniform(t,r);Io(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,r){const i=this.map[t];void 0!==i&&i.setValue(e,n,r)}setOptional(e,t,n){const r=t[n];void 0!==r&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){const a=t[i],o=n[a.id];!1!==o.needsUpdate&&
// note: always updating when .needsUpdate is undefined
a.setValue(e,o.value,r)}}static seqWithValue(e,t){const n=[];for(let r=0,i=e.length;r!==i;++r){const i=e[r];i.id in t&&n.push(i)}return n}}function ko(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}let So=0;function Bo(e,t,n){const r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();if(r&&""===i)return"";const a=/ERROR: 0:(\d+)/.exec(i);if(a){
// --enable-privileged-webgl-extension
// console.log( '**' + type + '**', gl.getExtension( 'WEBGL_debug_shaders' ).getTranslatedShaderSource( shader ) );
const r=parseInt(a[1]);return n.toUpperCase()+"\n\n"+i+"\n\n"+function(e,t){const n=e.split("\n"),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e<a;e++){const i=e+1;r.push(`${i===t?">":" "} ${i}: ${n[e]}`)}return r.join("\n")}(e.getShaderSource(t),r)}return i}function Mo(e,t){const n=function(e){switch(e){case xt:return["Linear","( value )"];case Ct:return["sRGB","( value )"];default:return["Linear","( value )"]}}(t);return"vec4 "+e+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function To(e,t){let n;switch(t){case K:n="Linear";break;case $:n="Reinhard";break;case J:n="OptimizedCineon";break;case X:n="ACESFilmic";break;case Z:n="Custom";break;default:n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Oo(e){return""!==e}function Do(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Po(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}
// Resolve Includes
const Lo=/^[ \t]*#include +<([\w\d./]+)>/gm;function Qo(e){return e.replace(Lo,Ro)}function Ro(e,t){const n=Hi[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Qo(n)}
// Unroll Loops
const jo=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function No(e){return e.replace(jo,Fo)}function Fo(e,t,n,r){let i="";for(let e=parseInt(t);e<parseInt(n);e++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+e+" ]").replace(/UNROLLED_LOOP_INDEX/g,e);return i}

function zo(e){let t="precision "+e.precision+" float;\nprecision "+e.precision+" int;";return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function Ho(e,t,n,r){
// TODO Send this event to Three.js DevTools
// console.log( 'WebGLProgram', cacheKey );
const i=e.getContext(),a=n.defines;let o=n.vertexShader,s=n.fragmentShader;const c=function(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===l?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===u?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===h&&(t="SHADOWMAP_TYPE_VSM"),t}(n),f=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case ee:case te:t="ENVMAP_TYPE_CUBE";break;case ie:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),d=function(e){let t="ENVMAP_MODE_REFLECTION";e.envMap&&e.envMapMode===te&&(t="ENVMAP_MODE_REFRACTION");return t}(n),p=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case V:t="ENVMAP_BLENDING_MULTIPLY";break;case W:t="ENVMAP_BLENDING_MIX";break;case q:t="ENVMAP_BLENDING_ADD"}return t}(n),g=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,r=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:r,maxMip:n}}(n),m=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.tangentSpaceNormalMap||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Oo).join("\n")}(n),v=function(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(a),y=i.createProgram();let A,b,w=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(A=[v].filter(Oo).join("\n"),A.length>0&&(A+="\n"),b=[m,v].filter(Oo).join("\n"),b.length>0&&(b+="\n")):(A=[zo(n),"#define SHADER_NAME "+n.shaderName,v,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Oo).join("\n"),b=[m,zo(n),"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.envMap?"#define "+d:"",n.envMap?"#define "+p:"",g?"#define CUBEUV_TEXEL_WIDTH "+g.texelWidth:"",g?"#define CUBEUV_TEXEL_HEIGHT "+g.texelHeight:"",g?"#define CUBEUV_MAX_MIP "+g.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Y?"#define TONE_MAPPING":"",n.toneMapping!==Y?Hi.tonemapping_pars_fragment:"",// this code is required here because it is used by the toneMapping() function defined below
n.toneMapping!==Y?To("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Hi.encodings_pars_fragment,// this code is required here because it is used by the various encoding/decoding function defined below
Mo("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Oo).join("\n")),o=Qo(o),o=Do(o,n),o=Po(o,n),s=Qo(s),s=Do(s,n),s=Po(s,n),o=No(o),s=No(s),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(
// GLSL 3.0 conversion for built-in materials and ShaderMaterial
w="#version 300 es\n",A=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+A,b=["#define varying in",n.glslVersion===Ot?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Ot?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+b);const x=w+b+s,C=ko(i,35633,w+A+o),_=ko(i,35632,x);
// check for link errors
if(i.attachShader(y,C),i.attachShader(y,_),
// Force a particular attribute to index 0.
void 0!==n.index0AttributeName?i.bindAttribLocation(y,0,n.index0AttributeName):!0===n.morphTargets&&
// programs with morphTargets displace position out of attribute 0
i.bindAttribLocation(y,0,"position"),i.linkProgram(y),e.debug.checkShaderErrors){const e=i.getProgramInfoLog(y).trim(),t=i.getShaderInfoLog(C).trim(),n=i.getShaderInfoLog(_).trim();let r=!0,a=!0;if(!1===i.getProgramParameter(y,35714)){r=!1;Bo(i,C,"vertex"),Bo(i,_,"fragment")}else""!==e||""!==t&&""!==n||(a=!1);a&&(this.diagnostics={runnable:r,programLog:e,vertexShader:{log:t,prefix:A},fragmentShader:{log:n,prefix:b}})}
// Clean up
// Crashes in iOS9 and iOS10. #18402
// gl.detachShader( program, glVertexShader );
// gl.detachShader( program, glFragmentShader );
// set up caching for uniform locations
let I,E;return i.deleteShader(C),i.deleteShader(_),this.getUniforms=function(){return void 0===I&&(I=new Eo(i,y)),I},this.getAttributes=function(){return void 0===E&&(E=function(e,t){const n={},r=e.getProgramParameter(t,35721);for(let i=0;i<r;i++){const r=e.getActiveAttrib(t,i),a=r.name;let o=1;35674===r.type&&(o=2),35675===r.type&&(o=3),35676===r.type&&(o=4),
// console.log( 'THREE.WebGLProgram: ACTIVE VERTEX ATTRIBUTE:', name, i );
n[a]={type:r.type,location:e.getAttribLocation(t,a),locationSize:o}}return n}(i,y)),E},
// free resource
this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(y),this.program=void 0},
this.name=n.shaderName,this.id=So++,this.cacheKey=t,this.usedTimes=1,this.program=y,this.vertexShader=C,this.fragmentShader=_,this}let Uo=0;class Go{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(r)&&(a.add(r),r.usedTimes++),!1===a.has(i)&&(a.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const e of t)e.usedTimes--,0===e.usedTimes&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new Vo(e),t.set(e,n)),n}}class Vo{constructor(e){this.id=Uo++,this.code=e,this.usedTimes=0}}function Wo(e,t,n,r,i,a,o){const s=new lr,c=new Go,l=[],u=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let g=i.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};return{getParameters:function(a,s,l,y,A){const b=y.fog,w=A.geometry,x=a.isMeshStandardMaterial?y.environment:null,C=(a.isMeshStandardMaterial?n:t).get(a.envMap||x),_=C&&C.mapping===ie?C.image.height:null,I=v[a.type];
// heuristics to create shader parameters according to lights in the scene
// (not to blow over maxLights budget)
null!==a.precision&&(g=i.getMaxPrecision(a.precision),a.precision);

const E=w.morphAttributes.position||w.morphAttributes.normal||w.morphAttributes.color,k=void 0!==E?E.length:0;let S,B,M,T,O=0;if(void 0!==w.morphAttributes.position&&(O=1),void 0!==w.morphAttributes.normal&&(O=2),void 0!==w.morphAttributes.color&&(O=3),I){const e=Gi[I];S=e.vertexShader,B=e.fragmentShader}else S=a.vertexShader,B=a.fragmentShader,c.update(a),M=c.getVertexShaderID(a),T=c.getFragmentShaderID(a);const D=e.getRenderTarget(),P=a.alphaTest>0,L=a.clearcoat>0,Q=a.iridescence>0;return{isWebGL2:u,shaderID:I,shaderName:a.type,vertexShader:S,fragmentShader:B,defines:a.defines,customVertexShaderID:M,customFragmentShaderID:T,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:g,instancing:!0===A.isInstancedMesh,instancingColor:!0===A.isInstancedMesh&&null!==A.instanceColor,supportsVertexTextures:f,outputEncoding:null===D?e.outputEncoding:!0===D.isXRRenderTarget?D.texture.encoding:xt,map:!!a.map,matcap:!!a.matcap,envMap:!!C,envMapMode:C&&C.mapping,envMapCubeUVHeight:_,lightMap:!!a.lightMap,aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:a.normalMapType===Et,tangentSpaceNormalMap:a.normalMapType===It,decodeVideoTexture:!!a.map&&!0===a.map.isVideoTexture&&a.map.encoding===Ct,clearcoat:L,clearcoatMap:L&&!!a.clearcoatMap,clearcoatRoughnessMap:L&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:L&&!!a.clearcoatNormalMap,iridescence:Q,iridescenceMap:Q&&!!a.iridescenceMap,iridescenceThicknessMap:Q&&!!a.iridescenceThicknessMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,opaque:!1===a.transparent&&a.blending===m,alphaMap:!!a.alphaMap,alphaTest:P,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!w.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!w.attributes.color&&4===w.attributes.color.itemSize,vertexUvs:!!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatMap||a.clearcoatRoughnessMap||a.clearcoatNormalMap||a.iridescenceMap||a.iridescenceThicknessMap||a.displacementMap||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheenColorMap||a.sheenRoughnessMap),uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.iridescenceMap||a.iridescenceThicknessMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap||!a.displacementMap),fog:!!b,useFog:!0===a.fog,fogExp2:b&&b.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===A.isSkinnedMesh,morphTargets:void 0!==w.morphAttributes.position,morphNormals:void 0!==w.morphAttributes.normal,morphColors:void 0!==w.morphAttributes.color,morphTargetsCount:k,morphTextureStride:O,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:Y,useLegacyLights:e.useLegacyLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===p,flipSided:a.side===d,useDepthPacking:!!a.depthPacking,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()}},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.combine),e.push(t.vertexUvs),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){s.disableAll(),t.isWebGL2&&s.enable(0);t.supportsVertexTextures&&s.enable(1);t.instancing&&s.enable(2);t.instancingColor&&s.enable(3);t.map&&s.enable(4);t.matcap&&s.enable(5);t.envMap&&s.enable(6);t.lightMap&&s.enable(7);t.aoMap&&s.enable(8);t.emissiveMap&&s.enable(9);t.bumpMap&&s.enable(10);t.normalMap&&s.enable(11);t.objectSpaceNormalMap&&s.enable(12);t.tangentSpaceNormalMap&&s.enable(13);t.clearcoat&&s.enable(14);t.clearcoatMap&&s.enable(15);t.clearcoatRoughnessMap&&s.enable(16);t.clearcoatNormalMap&&s.enable(17);t.iridescence&&s.enable(18);t.iridescenceMap&&s.enable(19);t.iridescenceThicknessMap&&s.enable(20);t.displacementMap&&s.enable(21);t.specularMap&&s.enable(22);t.roughnessMap&&s.enable(23);t.metalnessMap&&s.enable(24);t.gradientMap&&s.enable(25);t.alphaMap&&s.enable(26);t.alphaTest&&s.enable(27);t.vertexColors&&s.enable(28);t.vertexAlphas&&s.enable(29);t.vertexUvs&&s.enable(30);t.vertexTangents&&s.enable(31);t.uvsVertexOnly&&s.enable(32);e.push(s.mask),s.disableAll(),t.fog&&s.enable(0);t.useFog&&s.enable(1);t.flatShading&&s.enable(2);t.logarithmicDepthBuffer&&s.enable(3);t.skinning&&s.enable(4);t.morphTargets&&s.enable(5);t.morphNormals&&s.enable(6);t.morphColors&&s.enable(7);t.premultipliedAlpha&&s.enable(8);t.shadowMapEnabled&&s.enable(9);t.useLegacyLights&&s.enable(10);t.doubleSided&&s.enable(11);t.flipSided&&s.enable(12);t.useDepthPacking&&s.enable(13);t.dithering&&s.enable(14);t.specularIntensityMap&&s.enable(15);t.specularColorMap&&s.enable(16);t.transmission&&s.enable(17);t.transmissionMap&&s.enable(18);t.thicknessMap&&s.enable(19);t.sheen&&s.enable(20);t.sheenColorMap&&s.enable(21);t.sheenRoughnessMap&&s.enable(22);t.decodeVideoTexture&&s.enable(23);t.opaque&&s.enable(24);e.push(s.mask)}(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=v[e.type];let n;if(t){const e=Gi[t];n=_i.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;
// Check if code has been already compiled
for(let e=0,t=l.length;e<t;e++){const t=l[e];if(t.cacheKey===n){r=t,++r.usedTimes;break}}return void 0===r&&(r=new Ho(e,n,t,a),l.push(r)),r},releaseProgram:function(e){if(0==--e.usedTimes){
// Remove from unordered set
const t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),
// Free WebGL resources
e.destroy()}},releaseShaderCache:function(e){c.remove(e)},
// Exposed for resource monitoring & error feedback via renderer.info:
programs:l,dispose:function(){c.dispose()}}}function qo(){let e=new WeakMap;return{get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,r){e.get(t)[n]=r},dispose:function(){e=new WeakMap}}}function Yo(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function Ko(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function $o(){const e=[];let t=0;const n=[],r=[],i=[];function a(n,r,i,a,o,s){let c=e[t];return void 0===c?(c={id:n.id,object:n,geometry:r,material:i,groupOrder:a,renderOrder:n.renderOrder,z:o,group:s},e[t]=c):(c.id=n.id,c.object=n,c.geometry=r,c.material=i,c.groupOrder=a,c.renderOrder=n.renderOrder,c.z=o,c.group=s),t++,c}return{opaque:n,transmissive:r,transparent:i,init:function(){t=0,n.length=0,r.length=0,i.length=0},push:function(e,t,o,s,c,l){const u=a(e,t,o,s,c,l);o.transmission>0?r.push(u):!0===o.transparent?i.push(u):n.push(u)},unshift:function(e,t,o,s,c,l){const u=a(e,t,o,s,c,l);o.transmission>0?r.unshift(u):!0===o.transparent?i.unshift(u):n.unshift(u)},finish:function(){
// Clear references from inactive renderItems in the list
for(let n=t,r=e.length;n<r;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||Yo),r.length>1&&r.sort(t||Ko),i.length>1&&i.sort(t||Ko)}}}function Jo(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let i;return void 0===r?(i=new $o,e.set(t,[i])):n>=r.length?(i=new $o,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function Xo(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new rn,color:new zr};break;case"SpotLight":n={position:new rn,direction:new rn,color:new zr,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new rn,color:new zr,distance:0,decay:0};break;case"HemisphereLight":n={direction:new rn,skyColor:new zr,groundColor:new zr};break;case"RectAreaLight":n={color:new zr,position:new rn,halfWidth:new rn,halfHeight:new rn}}return e[t.id]=n,n}}}let Zo=0;function es(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function ts(e,t){const n=new Xo,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Kt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Kt,shadowCameraNear:1,shadowCameraFar:1e3};
// TODO (abelnation): set RectAreaLight shadow uniforms
}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let e=0;e<9;e++)i.probe.push(new rn);const a=new rn,o=new Xn,s=new Xn;return{setup:function(a,o){let s=0,c=0,l=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,h=0,f=0,d=0,p=0,g=0,m=0,v=0,y=0,A=0;
// ordering : [shadow casting + map texturing, map texturing, shadow casting, none ]
a.sort(es);
// artist-friendly light intensity scaling factor
const b=!0===o?Math.PI:1;for(let e=0,t=a.length;e<t;e++){const t=a[e],o=t.color,w=t.intensity,x=t.distance,C=t.shadow&&t.shadow.map?t.shadow.map.texture:null;if(t.isAmbientLight)s+=o.r*w*b,c+=o.g*w*b,l+=o.b*w*b;else if(t.isLightProbe)for(let e=0;e<9;e++)i.probe[e].addScaledVector(t.sh.coefficients[e],w);else if(t.isDirectionalLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*b),t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,i.directionalShadow[u]=n,i.directionalShadowMap[u]=C,i.directionalShadowMatrix[u]=t.shadow.matrix,g++}i.directional[u]=e,u++}else if(t.isSpotLight){const e=n.get(t);e.position.setFromMatrixPosition(t.matrixWorld),e.color.copy(o).multiplyScalar(w*b),e.distance=x,e.coneCos=Math.cos(t.angle),e.penumbraCos=Math.cos(t.angle*(1-t.penumbra)),e.decay=t.decay,i.spot[f]=e;const a=t.shadow;if(t.map&&(i.spotLightMap[y]=t.map,y++,
// make sure the lightMatrix is up to date
// TODO : do it if required only
a.updateMatrices(t),t.castShadow&&A++),i.spotLightMatrix[f]=a.matrix,t.castShadow){const e=r.get(t);e.shadowBias=a.bias,e.shadowNormalBias=a.normalBias,e.shadowRadius=a.radius,e.shadowMapSize=a.mapSize,i.spotShadow[f]=e,i.spotShadowMap[f]=C,v++}f++}else if(t.isRectAreaLight){const e=n.get(t);e.color.copy(o).multiplyScalar(w),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),i.rectArea[d]=e,d++}else if(t.isPointLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*b),e.distance=t.distance,e.decay=t.decay,t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,n.shadowCameraNear=e.camera.near,n.shadowCameraFar=e.camera.far,i.pointShadow[h]=n,i.pointShadowMap[h]=C,i.pointShadowMatrix[h]=t.shadow.matrix,m++}i.point[h]=e,h++}else if(t.isHemisphereLight){const e=n.get(t);e.skyColor.copy(t.color).multiplyScalar(w*b),e.groundColor.copy(t.groundColor).multiplyScalar(w*b),i.hemi[p]=e,p++}}d>0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(
// WebGL 2
i.rectAreaLTC1=Ui.LTC_FLOAT_1,i.rectAreaLTC2=Ui.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")&&(i.rectAreaLTC1=Ui.LTC_HALF_1,i.rectAreaLTC2=Ui.LTC_HALF_2)),i.ambient[0]=s,i.ambient[1]=c,i.ambient[2]=l;const w=i.hash;w.directionalLength===u&&w.pointLength===h&&w.spotLength===f&&w.rectAreaLength===d&&w.hemiLength===p&&w.numDirectionalShadows===g&&w.numPointShadows===m&&w.numSpotShadows===v&&w.numSpotMaps===y||(i.directional.length=u,i.spot.length=f,i.rectArea.length=d,i.point.length=h,i.hemi.length=p,i.directionalShadow.length=g,i.directionalShadowMap.length=g,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=g,i.pointShadowMatrix.length=m,i.spotLightMatrix.length=v+y-A,i.spotLightMap.length=y,i.numSpotLightShadowsWithMaps=A,w.directionalLength=u,w.pointLength=h,w.spotLength=f,w.rectAreaLength=d,w.hemiLength=p,w.numDirectionalShadows=g,w.numPointShadows=m,w.numSpotShadows=v,w.numSpotMaps=y,i.version=Zo++)},setupView:function(e,t){let n=0,r=0,c=0,l=0,u=0;const h=t.matrixWorldInverse;for(let t=0,f=e.length;t<f;t++){const f=e[t];if(f.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(f.matrixWorld),a.setFromMatrixPosition(f.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(h),n++}else if(f.isSpotLight){const e=i.spot[c];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(h),e.direction.setFromMatrixPosition(f.matrixWorld),a.setFromMatrixPosition(f.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(h),c++}else if(f.isRectAreaLight){const e=i.rectArea[l];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(h),
// extract local rotation of light to derive width/height half vectors
s.identity(),o.copy(f.matrixWorld),o.premultiply(h),s.extractRotation(o),e.halfWidth.set(.5*f.width,0,0),e.halfHeight.set(0,.5*f.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),l++}else if(f.isPointLight){const e=i.point[r];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(h),r++}else if(f.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(f.matrixWorld),e.direction.transformDirection(h),u++}}},state:i}}function ns(e,t){const n=new ts(e,t),r=[],i=[];return{init:function(){r.length=0,i.length=0},state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:function(e){n.setup(r,e)},setupLightsView:function(e){n.setupView(r,e)},pushLight:function(e){r.push(e)},pushShadow:function(e){i.push(e)}}}function rs(e,t){let n=new WeakMap;return{get:function(r,i=0){const a=n.get(r);let o;return void 0===a?(o=new ns(e,t),n.set(r,[o])):i>=a.length?(o=new ns(e,t),a.push(o)):o=a[i],o},dispose:function(){n=new WeakMap}}}class is extends Qr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class as extends Qr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.referencePosition=new rn,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const os="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",ss="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function cs(e,t,n){let r=new ji;const i=new Kt,a=new Kt,o=new wn,s=new is({depthPacking:_t}),c=new as,u={},m=n.maxTextureSize,v={[f]:d,[d]:f,[p]:p},y=new Ii({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Kt},radius:{value:4}},vertexShader:os,fragmentShader:ss}),A=y.clone();A.defines.HORIZONTAL_PASS=1;const b=new ri;b.setAttribute("position",new Wr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const w=new yi(b,y),x=this;function C(n,r){const a=t.update(w);y.defines.VSM_SAMPLES!==n.blurSamples&&(y.defines.VSM_SAMPLES=n.blurSamples,A.defines.VSM_SAMPLES=n.blurSamples,y.needsUpdate=!0,A.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new xn(i.x,i.y)),
// vertical pass
y.uniforms.shadow_pass.value=n.map.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,a,y,w,null),
// horizontal pass
A.uniforms.shadow_pass.value=n.mapPass.texture,A.uniforms.resolution.value=n.mapSize,A.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,a,A,w,null)}function _(t,n,r,i,a,o){let l=null;const f=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==f)l=f;else if(l=!0===r.isPointLight?c:s,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){
// in this case we need a unique material instance reflecting the
// appropriate state
const e=l.uuid,t=n.uuid;let r=u[e];void 0===r&&(r={},u[e]=r);let i=r[t];void 0===i&&(i=l.clone(),r[t]=i),l=i}return l.visible=n.visible,l.wireframe=n.wireframe,l.side=o===h?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:v[n.side],l.alphaMap=n.alphaMap,l.alphaTest=n.alphaTest,l.map=n.map,l.clipShadows=n.clipShadows,l.clippingPlanes=n.clippingPlanes,l.clipIntersection=n.clipIntersection,l.displacementMap=n.displacementMap,l.displacementScale=n.displacementScale,l.displacementBias=n.displacementBias,l.wireframeLinewidth=n.wireframeLinewidth,l.linewidth=n.linewidth,!0===r.isPointLight&&!0===l.isMeshDistanceMaterial&&(l.referencePosition.setFromMatrixPosition(r.matrixWorld),l.nearDistance=i,l.farDistance=a),l}function I(n,i,a,o,s){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===h)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const r=t.update(n),i=n.material;if(Array.isArray(i)){const t=r.groups;for(let c=0,l=t.length;c<l;c++){const l=t[c],u=i[l.materialIndex];if(u&&u.visible){const t=_(n,u,o,a.near,a.far,s);e.renderBufferDirect(a,null,r,t,n,l)}}}else if(i.visible){const t=_(n,i,o,a.near,a.far,s);e.renderBufferDirect(a,null,r,t,n,null)}}const c=n.children;for(let e=0,t=c.length;e<t;e++)I(c[e],i,a,o,s)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=l,this.render=function(t,n,s){if(!1===x.enabled)return;if(!1===x.autoUpdate&&!1===x.needsUpdate)return;if(0===t.length)return;const c=e.getRenderTarget(),l=e.getActiveCubeFace(),u=e.getActiveMipmapLevel(),f=e.state;
// Set GL state for depth map.
f.setBlending(g),f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);
// render depth map
for(let c=0,l=t.length;c<l;c++){const l=t[c],u=l.shadow;if(void 0===u)continue;if(!1===u.autoUpdate&&!1===u.needsUpdate)continue;i.copy(u.mapSize);const d=u.getFrameExtents();if(i.multiply(d),a.copy(u.mapSize),(i.x>m||i.y>m)&&(i.x>m&&(a.x=Math.floor(m/d.x),i.x=a.x*d.x,u.mapSize.x=a.x),i.y>m&&(a.y=Math.floor(m/d.y),i.y=a.y*d.y,u.mapSize.y=a.y)),null===u.map){const e=this.type!==h?{minFilter:ce,magFilter:ce}:{};u.map=new xn(i.x,i.y,e),u.map.texture.name=l.name+".shadowMap",u.camera.updateProjectionMatrix()}e.setRenderTarget(u.map),e.clear();const p=u.getViewportCount();for(let e=0;e<p;e++){const t=u.getViewport(e);o.set(a.x*t.x,a.y*t.y,a.x*t.z,a.y*t.w),f.viewport(o),u.updateMatrices(l,e),r=u.getFrustum(),I(n,s,u.camera,l,this.type)}
// do blur pass for VSM
!0!==u.isPointLightShadow&&this.type===h&&C(u,s),u.needsUpdate=!1}x.needsUpdate=!1,e.setRenderTarget(c,l,u)}}function ls(e,t,n){const r=n.isWebGL2;
const i=new function(){let t=!1;const n=new wn;let r=null;const i=new wn(0,0,0,0);return{setMask:function(n){r===n||t||(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,r,a,o,s){!0===s&&(t*=o,r*=o,a*=o),n.set(t,r,a,o),!1===i.equals(n)&&(e.clearColor(t,r,a,o),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}},a=new function(){let t=!1,n=null,r=null,i=null;return{setTest:function(e){e?we(2929):xe(2929)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){switch(t){case R:e.depthFunc(512);break;case j:e.depthFunc(519);break;case N:e.depthFunc(513);break;case F:e.depthFunc(515);break;case z:e.depthFunc(514);break;case H:e.depthFunc(518);break;case U:e.depthFunc(516);break;case G:e.depthFunc(517);break;default:e.depthFunc(515)}r=t}},setLocked:function(e){t=e},setClear:function(t){i!==t&&(e.clearDepth(t),i=t)},reset:function(){t=!1,n=null,r=null,i=null}}},l=new function(){let t=!1,n=null,r=null,i=null,a=null,o=null,s=null,c=null,l=null;return{setTest:function(e){t||(e?we(2960):xe(2960))},setMask:function(r){n===r||t||(e.stencilMask(r),n=r)},setFunc:function(t,n,o){r===t&&i===n&&a===o||(e.stencilFunc(t,n,o),r=t,i=n,a=o)},setOp:function(t,n,r){o===t&&s===n&&c===r||(e.stencilOp(t,n,r),o=t,s=n,c=r)},setLocked:function(e){t=e},setClear:function(t){l!==t&&(e.clearStencil(t),l=t)},reset:function(){t=!1,n=null,r=null,i=null,a=null,o=null,s=null,c=null,l=null}}},u=new WeakMap,h=new WeakMap;let f={},V={},W=new WeakMap,q=[],Y=null,K=!1,$=null,J=null,X=null,Z=null,ee=null,te=null,ne=null,re=!1,ie=null,ae=null,oe=null,se=null,ce=null;const le=e.getParameter(35661);let ue=!1,he=0;const fe=e.getParameter(7938);-1!==fe.indexOf("WebGL")?(he=parseFloat(/^WebGL (\d)/.exec(fe)[1]),ue=he>=1):-1!==fe.indexOf("OpenGL ES")&&(he=parseFloat(/^OpenGL ES (\d)/.exec(fe)[1]),ue=he>=2);let de=null,pe={};const ge=e.getParameter(3088),me=e.getParameter(2978),ve=(new wn).fromArray(ge),ye=(new wn).fromArray(me);function Ae(t,n,r){const i=new Uint8Array(4),a=e.createTexture();// 4 is required to match default unpack alignment of 4.
e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(let t=0;t<r;t++)e.texImage2D(n+t,0,6408,1,1,0,6408,5121,i);return a}const be={};
function we(t){!0!==f[t]&&(e.enable(t),f[t]=!0)}function xe(t){!1!==f[t]&&(e.disable(t),f[t]=!1)}be[3553]=Ae(3553,3553,1),be[34067]=Ae(34067,34069,6),
// init
i.setClear(0,0,0,1),a.setClear(1),l.setClear(0),we(2929),a.setFunc(F),Ee(!1),ke(s),we(2884),Ie(g);const Ce={[w]:32774,[x]:32778,[C]:32779};if(r)Ce[_]=32775,Ce[I]=32776;else{const e=t.get("EXT_blend_minmax");null!==e&&(Ce[_]=e.MIN_EXT,Ce[I]=e.MAX_EXT)}const _e={[E]:0,[k]:1,[S]:768,[M]:770,[Q]:776,[P]:774,[O]:772,[B]:769,[T]:771,[L]:775,[D]:773};function Ie(t,n,r,i,a,o,s,c){if(t!==g){if(!1===K&&(we(3042),K=!0),t===b)
// custom blending
a=a||n,o=o||r,s=s||i,n===J&&a===ee||(e.blendEquationSeparate(Ce[n],Ce[a]),J=n,ee=a),r===X&&i===Z&&o===te&&s===ne||(e.blendFuncSeparate(_e[r],_e[i],_e[o],_e[s]),X=r,Z=i,te=o,ne=s),$=t,re=!1;else if(t!==$||c!==re){if(J===w&&ee===w||(e.blendEquation(32774),J=w,ee=w),c)switch(t){case m:e.blendFuncSeparate(1,771,1,771);break;case v:e.blendFunc(1,1);break;case y:e.blendFuncSeparate(0,769,0,1);break;case A:e.blendFuncSeparate(0,768,0,770)}else switch(t){case m:e.blendFuncSeparate(770,771,1,771);break;case v:e.blendFunc(770,1);break;case y:e.blendFuncSeparate(0,769,0,1);break;case A:e.blendFunc(0,768)}X=null,Z=null,te=null,ne=null,$=t,re=c}}else!0===K&&(xe(3042),K=!1)}
function Ee(t){ie!==t&&(t?e.frontFace(2304):e.frontFace(2305),ie=t)}function ke(t){t!==o?(we(2884),t!==ae&&(t===s?e.cullFace(1029):t===c?e.cullFace(1028):e.cullFace(1032))):xe(2884),ae=t}function Se(t,n,r){t?(we(32823),se===n&&ce===r||(e.polygonOffset(n,r),se=n,ce=r)):xe(32823)}return{buffers:{color:i,depth:a,stencil:l},enable:we,disable:xe,bindFramebuffer:function(t,n){return V[t]!==n&&(e.bindFramebuffer(t,n),V[t]=n,r&&(
// 36009 is equivalent to 36160
36009===t&&(V[36160]=n),36160===t&&(V[36009]=n)),!0)},drawBuffers:function(r,i){let a=q,o=!1;if(r)if(a=W.get(i),void 0===a&&(a=[],W.set(i,a)),r.isWebGLMultipleRenderTargets){const e=r.texture;if(a.length!==e.length||36064!==a[0]){for(let t=0,n=e.length;t<n;t++)a[t]=36064+t;a.length=e.length,o=!0}}else 36064!==a[0]&&(a[0]=36064,o=!0);else 1029!==a[0]&&(a[0]=1029,o=!0);o&&(n.isWebGL2?e.drawBuffers(a):t.get("WEBGL_draw_buffers").drawBuffersWEBGL(a))},useProgram:function(t){return Y!==t&&(e.useProgram(t),Y=t,!0)},setBlending:Ie,setMaterial:function(e,t){e.side===p?xe(2884):we(2884);let n=e.side===d;t&&(n=!n),Ee(n),e.blending===m&&!1===e.transparent?Ie(g):Ie(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),a.setFunc(e.depthFunc),a.setTest(e.depthTest),a.setMask(e.depthWrite),i.setMask(e.colorWrite);const r=e.stencilWrite;l.setTest(r),r&&(l.setMask(e.stencilWriteMask),l.setFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),l.setOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),Se(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits),!0===e.alphaToCoverage?we(32926):xe(32926)},setFlipSided:Ee,setCullFace:ke,setLineWidth:function(t){t!==oe&&(ue&&e.lineWidth(t),oe=t)},setPolygonOffset:Se,setScissorTest:function(e){e?we(3089):xe(3089)}
// texture
,activeTexture:function(t){void 0===t&&(t=33984+le-1),de!==t&&(e.activeTexture(t),de=t)},bindTexture:function(t,n,r){void 0===r&&(r=null===de?33984+le-1:de);let i=pe[r];void 0===i&&(i={type:void 0,texture:void 0},pe[r]=i),i.type===t&&i.texture===n||(de!==r&&(e.activeTexture(r),de=r),e.bindTexture(t,n||be[t]),i.type=t,i.texture=n)},unbindTexture:function(){const t=pe[de];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(e){}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(e){}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(e){}}

,updateUBOMapping:function(t,n){let r=h.get(n);void 0===r&&(r=new WeakMap,h.set(n,r));let i=r.get(t);void 0===i&&(i=e.getUniformBlockIndex(n,t.name),r.set(t,i))},uniformBlockBinding:function(t,n){const r=h.get(n).get(t);u.get(n)!==r&&(
// bind shader specific block index to global block point
e.uniformBlockBinding(n,r,t.__bindingPointIndex),u.set(n,r))}

,texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(e){}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(e){}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(e){}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(e){}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(e){}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(e){}},scissor:function(t){!1===ve.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),ve.copy(t))},viewport:function(t){!1===ye.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),ye.copy(t))},reset:function(){
// reset state
e.disable(3042),e.disable(2884),e.disable(2929),e.disable(32823),e.disable(3089),e.disable(2960),e.disable(32926),e.blendEquation(32774),e.blendFunc(1,0),e.blendFuncSeparate(1,0,1,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(513),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(519,0,4294967295),e.stencilOp(7680,7680,7680),e.clearStencil(0),e.cullFace(1029),e.frontFace(2305),e.polygonOffset(0,0),e.activeTexture(33984),e.bindFramebuffer(36160,null),!0===r&&(e.bindFramebuffer(36009,null),e.bindFramebuffer(36008,null)),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),
// reset internals
f={},de=null,pe={},V={},W=new WeakMap,q=[],Y=null,K=!1,$=null,J=null,X=null,Z=null,ee=null,te=null,ne=null,re=!1,ie=null,ae=null,oe=null,se=null,ce=null,ve.set(0,0,e.canvas.width,e.canvas.height),ye.set(0,0,e.canvas.width,e.canvas.height),i.reset(),a.reset(),l.reset()}}}function us(e,t,n,r,i,a,o){const s=i.isWebGL2,c=(i.maxTextures,i.maxCubemapSize),l=i.maxTextureSize,u=i.maxSamples,h=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,f="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),d=new WeakMap;let p;const g=new WeakMap;// maps WebglTexture objects to instances of Source
// cordova iOS (as of 5.0) still uses UIWebView, which provides OffscreenCanvas,
// also OffscreenCanvas.getContext("webgl"), but not OffscreenCanvas.getContext("2d")!
// Some implementations may only implement OffscreenCanvas partially (e.g. lacking 2d).
let m=!1;try{m="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(e){
// Ignore any errors
}function v(e,t){
// Use OffscreenCanvas when available. Specially needed in web workers
return m?
// eslint-disable-next-line compat/compat
new OffscreenCanvas(e,t):tn("canvas")}function y(e,t,n,r){let i=1;
// handle case if texture exceeds max size
// only perform resize if necessary
if((e.width>r||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){
// only perform resize for certain image types
if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const r=t?Vt:Math.floor,a=r(i*e.width),o=r(i*e.height);void 0===p&&(p=v(a,o));
// cube textures can't reuse the same canvas
const s=n?v(a,o):p;s.width=a,s.height=o;return s.getContext("2d").drawImage(e,0,0,a,o),s}return e}return e}function A(e){return Ut(e.width)&&Ut(e.height)}function b(e,t){return e.generateMipmaps&&t&&e.minFilter!==ce&&e.minFilter!==he}function w(t){e.generateMipmap(t)}function x(n,r,i,a,o=!1){if(!1===s)return r;if(null!==n&&void 0!==e[n])return e[n];let c=r;return 6403===r&&(5126===i&&(c=33326),5131===i&&(c=33325),5121===i&&(c=33321)),33319===r&&(5126===i&&(c=33328),5131===i&&(c=33327),5121===i&&(c=33323)),6408===r&&(5126===i&&(c=34836),5131===i&&(c=34842),5121===i&&(c=a===Ct&&!1===o?35907:32856),32819===i&&(c=32854),32820===i&&(c=32855)),33325!==c&&33326!==c&&33327!==c&&33328!==c&&34842!==c&&34836!==c||t.get("EXT_color_buffer_float"),c}function C(e,t,n){return!0===b(e,n)||e.isFramebufferTexture&&e.minFilter!==ce&&e.minFilter!==he?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}
// Fallback filters for non-power-of-2 textures
function _(e){return e===ce||e===le||e===ue?9728:9729}

function I(e){const t=e.target;t.removeEventListener("dispose",I),
function(e){const t=r.get(e);if(void 0===t.__webglInit)return;
// check if it's necessary to remove the WebGLTexture object
const n=e.source,i=g.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,
// the WebGLTexture object is not used anymore, remove it
0===r.usedTimes&&k(e),
// remove the weak map entry if no WebGLTexture uses the source anymore
0===Object.keys(i).length&&g.delete(n)}r.remove(e)}(t),t.isVideoTexture&&d.delete(t)}function E(t){const n=t.target;n.removeEventListener("dispose",E),function(t){const n=t.texture,i=r.get(t),a=r.get(n);void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),o.memory.textures--);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++)e.deleteFramebuffer(i.__webglFramebuffer[t]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[t]);else{if(e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer)for(let t=0;t<i.__webglColorRenderbuffer.length;t++)i.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(i.__webglColorRenderbuffer[t]);i.__webglDepthRenderbuffer&&e.deleteRenderbuffer(i.__webglDepthRenderbuffer)}if(t.isWebGLMultipleRenderTargets)for(let t=0,i=n.length;t<i;t++){const i=r.get(n[t]);i.__webglTexture&&(e.deleteTexture(i.__webglTexture),o.memory.textures--),r.remove(n[t])}r.remove(n),r.remove(t)}

(n)}function k(t){const n=r.get(t);e.deleteTexture(n.__webglTexture);const i=t.source;delete g.get(i)[n.__cacheKey],o.memory.textures--}let S=0;
function B(e,t){const i=r.get(e);if(e.isVideoTexture&&function(e){const t=o.render.frame;
// Check the last frame we updated the VideoTexture
d.get(e)!==t&&(d.set(e,t),e.update())}(e),!1===e.isRenderTargetTexture&&e.version>0&&i.__version!==e.version){const n=e.image;if(null===n);else if(!1!==n.complete)return void P(i,e,t)}n.bindTexture(3553,i.__webglTexture,33984+t)}const M={[ae]:10497,[oe]:33071,[se]:33648},T={[ce]:9728,[le]:9984,[ue]:9986,[he]:9729,[fe]:9985,[de]:9987};function O(n,a,o){if(o?(e.texParameteri(n,10242,M[a.wrapS]),e.texParameteri(n,10243,M[a.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,M[a.wrapR]),e.texParameteri(n,10240,T[a.magFilter]),e.texParameteri(n,10241,T[a.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),a.wrapS!==oe||a.wrapT,e.texParameteri(n,10240,_(a.magFilter)),e.texParameteri(n,10241,_(a.minFilter)),a.minFilter!==ce&&a.minFilter),!0===t.has("EXT_texture_filter_anisotropic")){const o=t.get("EXT_texture_filter_anisotropic");if(a.magFilter===ce)return;if(a.minFilter!==ue&&a.minFilter!==de)return;if(a.type===be&&!1===t.has("OES_texture_float_linear"))return;// verify extension for WebGL 1 and WebGL 2
if(!1===s&&a.type===we&&!1===t.has("OES_texture_half_float_linear"))return;// verify extension for WebGL 1 only
(a.anisotropy>1||r.get(a).__currentAnisotropy)&&(e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy)}}function D(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",I));
// create Source <-> WebGLTextures mapping if necessary
const i=n.source;let a=g.get(i);void 0===a&&(a={},g.set(i,a));
// check if there is already a WebGLTexture object for the given texture parameters
const s=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.encoding),t.join()}(n);if(s!==t.__cacheKey){
// if not, create a new instance of WebGLTexture
void 0===a[s]&&(
// create new entry
a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,
// when a new instance of WebGLTexture was created, a texture upload is required
// even if the image contents are identical
r=!0),a[s].usedTimes++;
// every time the texture cache key changes, it's necessary to check if an instance of
// WebGLTexture can be deleted in order to avoid a memory leak.
const i=a[t.__cacheKey];void 0!==i&&(a[t.__cacheKey].usedTimes--,0===i.usedTimes&&k(n)),
// store references to cache key and WebGLTexture object
t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function P(t,i,o){let c=3553;(i.isDataArrayTexture||i.isCompressedArrayTexture)&&(c=35866),i.isData3DTexture&&(c=32879);const u=D(t,i),h=i.source;n.bindTexture(c,t.__webglTexture,33984+o);const f=r.get(h);if(h.version!==f.__version||!0===u){n.activeTexture(33984+o),e.pixelStorei(37440,i.flipY),e.pixelStorei(37441,i.premultiplyAlpha),e.pixelStorei(3317,i.unpackAlignment),e.pixelStorei(37443,0);const t=function(e){return!s&&(e.wrapS!==oe||e.wrapT!==oe||e.minFilter!==ce&&e.minFilter!==he)}(i)&&!1===A(i.image);let r=y(i.image,t,!1,l);r=F(i,r);const d=A(r)||s,p=a.convert(i.format,i.encoding);let g,m=a.convert(i.type),v=x(i.internalFormat,p,m,i.encoding,i.isVideoTexture);O(c,i,d);const _=i.mipmaps,I=s&&!0!==i.isVideoTexture,E=void 0===f.__version||!0===u,k=C(i,r,d);if(i.isDepthTexture)
// populate depth texture with dummy data
v=6402,s?v=i.type===be?36012:i.type===Ae?33190:i.type===_e?35056:33189:i.type,
// validation checks for WebGL 1
i.format===Be&&6402===v&&i.type!==ve&&i.type!==Ae&&(i.type=Ae,m=a.convert(i.type)),i.format===Me&&6402===v&&(
// Depth stencil textures need the DEPTH_STENCIL internal format
// (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/)
v=34041,
// The error INVALID_OPERATION is generated by texImage2D if format and internalformat are
// DEPTH_STENCIL and type is not UNSIGNED_INT_24_8_WEBGL.
// (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/)
i.type!==_e&&(i.type=_e,m=a.convert(i.type))),
E&&(I?n.texStorage2D(3553,1,v,r.width,r.height):n.texImage2D(3553,0,v,r.width,r.height,0,p,m,null));else if(i.isDataTexture)
// use manually created mipmaps if available
// if there are no manual mipmaps
// set 0 level mipmap and then use GL to generate other mipmap levels
if(_.length>0&&d){I&&E&&n.texStorage2D(3553,k,v,_[0].width,_[0].height);for(let e=0,t=_.length;e<t;e++)g=_[e],I?n.texSubImage2D(3553,e,0,0,g.width,g.height,p,m,g.data):n.texImage2D(3553,e,v,g.width,g.height,0,p,m,g.data);i.generateMipmaps=!1}else I?(E&&n.texStorage2D(3553,k,v,r.width,r.height),n.texSubImage2D(3553,0,0,0,r.width,r.height,p,m,r.data)):n.texImage2D(3553,0,v,r.width,r.height,0,p,m,r.data);else if(i.isCompressedTexture)if(i.isCompressedArrayTexture){I&&E&&n.texStorage3D(35866,k,v,_[0].width,_[0].height,r.depth);for(let e=0,t=_.length;e<t;e++)g=_[e],i.format!==Ee?null!==p&&(I?n.compressedTexSubImage3D(35866,e,0,0,0,g.width,g.height,r.depth,p,g.data,0,0):n.compressedTexImage3D(35866,e,v,g.width,g.height,r.depth,0,g.data,0,0)):I?n.texSubImage3D(35866,e,0,0,0,g.width,g.height,r.depth,p,m,g.data):n.texImage3D(35866,e,v,g.width,g.height,r.depth,0,p,m,g.data)}else{I&&E&&n.texStorage2D(3553,k,v,_[0].width,_[0].height);for(let e=0,t=_.length;e<t;e++)g=_[e],i.format!==Ee?null!==p&&(I?n.compressedTexSubImage2D(3553,e,0,0,g.width,g.height,p,g.data):n.compressedTexImage2D(3553,e,v,g.width,g.height,0,g.data)):I?n.texSubImage2D(3553,e,0,0,g.width,g.height,p,m,g.data):n.texImage2D(3553,e,v,g.width,g.height,0,p,m,g.data)}else if(i.isDataArrayTexture)I?(E&&n.texStorage3D(35866,k,v,r.width,r.height,r.depth),n.texSubImage3D(35866,0,0,0,0,r.width,r.height,r.depth,p,m,r.data)):n.texImage3D(35866,0,v,r.width,r.height,r.depth,0,p,m,r.data);else if(i.isData3DTexture)I?(E&&n.texStorage3D(32879,k,v,r.width,r.height,r.depth),n.texSubImage3D(32879,0,0,0,0,r.width,r.height,r.depth,p,m,r.data)):n.texImage3D(32879,0,v,r.width,r.height,r.depth,0,p,m,r.data);else if(i.isFramebufferTexture){if(E)if(I)n.texStorage2D(3553,k,v,r.width,r.height);else{let e=r.width,t=r.height;for(let r=0;r<k;r++)n.texImage2D(3553,r,v,e,t,0,p,m,null),e>>=1,t>>=1}}else
// regular Texture (image, video, canvas)
// use manually created mipmaps if available
// if there are no manual mipmaps
// set 0 level mipmap and then use GL to generate other mipmap levels
if(_.length>0&&d){I&&E&&n.texStorage2D(3553,k,v,_[0].width,_[0].height);for(let e=0,t=_.length;e<t;e++)g=_[e],I?n.texSubImage2D(3553,e,0,0,p,m,g):n.texImage2D(3553,e,v,p,m,g);i.generateMipmaps=!1}else I?(E&&n.texStorage2D(3553,k,v,r.width,r.height),n.texSubImage2D(3553,0,0,0,p,m,r)):n.texImage2D(3553,0,v,p,m,r);b(i,d)&&w(c),f.__version=h.version,i.onUpdate&&i.onUpdate(i)}t.__version=i.version}
// Render targets
// Setup storage for target texture and bind it to correct framebuffer
function L(t,i,o,s,c){const l=a.convert(o.format,o.encoding),u=a.convert(o.type),f=x(o.internalFormat,l,u,o.encoding);r.get(i).__hasExternalTextures||(32879===c||35866===c?n.texImage3D(c,0,f,i.width,i.height,i.depth,0,l,u,null):n.texImage2D(c,0,f,i.width,i.height,0,l,u,null)),n.bindFramebuffer(36160,t),N(i)?h.framebufferTexture2DMultisampleEXT(36160,s,c,r.get(o).__webglTexture,0,j(i)):(3553===c||c>=34069&&c<=34074)&&// see #24753
e.framebufferTexture2D(36160,s,c,r.get(o).__webglTexture,0),n.bindFramebuffer(36160,null)}
// Setup storage for internal depth/stencil buffers and bind to correct framebuffer
function Q(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||N(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===be?i=36012:t.type===Ae&&(i=33190));const r=j(n);N(n)?h.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):e.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else e.renderbufferStorage(36161,i,n.width,n.height);e.framebufferRenderbuffer(36160,36096,36161,t)}else if(n.depthBuffer&&n.stencilBuffer){const i=j(n);r&&!1===N(n)?e.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):N(n)?h.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i<t.length;i++){const o=t[i],s=a.convert(o.format,o.encoding),c=a.convert(o.type),l=x(o.internalFormat,s,c,o.encoding),u=j(n);r&&!1===N(n)?e.renderbufferStorageMultisample(36161,u,l,n.width,n.height):N(n)?h.renderbufferStorageMultisampleEXT(36161,u,l,n.width,n.height):e.renderbufferStorage(36161,l,n.width,n.height)}}e.bindRenderbuffer(36161,null)}
// Setup resources for a Depth Texture for a FBO (needs an extension)
// Setup GL resources for a non-texture depth buffer
function R(t){const i=r.get(t),a=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,t),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
// upload an empty depth texture with framebuffer size
r.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),B(i.depthTexture,0);const a=r.get(i.depthTexture).__webglTexture,o=j(i);if(i.depthTexture.format===Be)N(i)?h.framebufferTexture2DMultisampleEXT(36160,36096,3553,a,0,o):e.framebufferTexture2D(36160,36096,3553,a,0);else{if(i.depthTexture.format!==Me)throw new Error("Unknown depthTexture format");N(i)?h.framebufferTexture2DMultisampleEXT(36160,33306,3553,a,0,o):e.framebufferTexture2D(36160,33306,3553,a,0)}}(i.__webglFramebuffer,t)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)n.bindFramebuffer(36160,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]=e.createRenderbuffer(),Q(i.__webglDepthbuffer[r],t,!1)}else n.bindFramebuffer(36160,i.__webglFramebuffer),i.__webglDepthbuffer=e.createRenderbuffer(),Q(i.__webglDepthbuffer,t,!1);n.bindFramebuffer(36160,null)}
// rebind framebuffer with external textures
function j(e){return Math.min(u,e.samples)}function N(e){const n=r.get(e);return s&&e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function F(e,n){const r=e.encoding,i=e.format;e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===Dt||r!==xt&&r===Ct&&!1===s&&(
// in WebGL 1, try to use EXT_sRGB extension and unsized formats
!0===t.has("EXT_sRGB")&&i===Ee?(e.format=Dt,
// it's not possible to generate mips in WebGL 1 with this extension
e.minFilter=he,e.generateMipmaps=!1):
// slow fallback (CPU decode)
n=mn.sRGBToLinear(n)),n}

this.allocateTextureUnit=function(){const e=S;return S+=1,e},this.resetTextureUnits=function(){S=0},this.setTexture2D=B,this.setTexture2DArray=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?P(i,e,t):n.bindTexture(35866,i.__webglTexture,33984+t)},this.setTexture3D=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?P(i,e,t):n.bindTexture(32879,i.__webglTexture,33984+t)},this.setTextureCube=function(t,i){const o=r.get(t);t.version>0&&o.__version!==t.version?function(t,i,o){if(6!==i.image.length)return;const l=D(t,i),u=i.source;n.bindTexture(34067,t.__webglTexture,33984+o);const h=r.get(u);if(u.version!==h.__version||!0===l){n.activeTexture(33984+o),e.pixelStorei(37440,i.flipY),e.pixelStorei(37441,i.premultiplyAlpha),e.pixelStorei(3317,i.unpackAlignment),e.pixelStorei(37443,0);const t=i.isCompressedTexture||i.image[0].isCompressedTexture,r=i.image[0]&&i.image[0].isDataTexture,f=[];for(let e=0;e<6;e++)f[e]=t||r?r?i.image[e].image:i.image[e]:y(i.image[e],!1,!0,c),f[e]=F(i,f[e]);const d=f[0],p=A(d)||s,g=a.convert(i.format,i.encoding),m=a.convert(i.type),v=x(i.internalFormat,g,m,i.encoding),_=s&&!0!==i.isVideoTexture,I=void 0===h.__version||!0===l;let E,k=C(i,d,p);if(O(34067,i,p),t){_&&I&&n.texStorage2D(34067,k,v,d.width,d.height);for(let e=0;e<6;e++){E=f[e].mipmaps;for(let t=0;t<E.length;t++){const r=E[t];i.format!==Ee?null!==g&&(_?n.compressedTexSubImage2D(34069+e,t,0,0,r.width,r.height,g,r.data):n.compressedTexImage2D(34069+e,t,v,r.width,r.height,0,r.data)):_?n.texSubImage2D(34069+e,t,0,0,r.width,r.height,g,m,r.data):n.texImage2D(34069+e,t,v,r.width,r.height,0,g,m,r.data)}}}else{E=i.mipmaps,_&&I&&(
// TODO: Uniformly handle mipmap definitions
// Normal textures and compressed cube textures define base level + mips with their mipmap array
// Uncompressed cube textures use their mipmap array only for mips (no base level)
E.length>0&&k++,n.texStorage2D(34067,k,v,f[0].width,f[0].height));for(let e=0;e<6;e++)if(r){_?n.texSubImage2D(34069+e,0,0,0,f[e].width,f[e].height,g,m,f[e].data):n.texImage2D(34069+e,0,v,f[e].width,f[e].height,0,g,m,f[e].data);for(let t=0;t<E.length;t++){const r=E[t].image[e].image;_?n.texSubImage2D(34069+e,t+1,0,0,r.width,r.height,g,m,r.data):n.texImage2D(34069+e,t+1,v,r.width,r.height,0,g,m,r.data)}}else{_?n.texSubImage2D(34069+e,0,0,0,g,m,f[e]):n.texImage2D(34069+e,0,v,g,m,f[e]);for(let t=0;t<E.length;t++){const r=E[t];_?n.texSubImage2D(34069+e,t+1,0,0,g,m,r.image[e]):n.texImage2D(34069+e,t+1,v,g,m,r.image[e])}}}b(i,p)&&
// We assume images for cube map have the same size.
w(34067),h.__version=u.version,i.onUpdate&&i.onUpdate(i)}t.__version=i.version}(o,t,i):n.bindTexture(34067,o.__webglTexture,33984+i)},this.rebindTextures=function(e,t,n){const i=r.get(e);void 0!==t&&L(i.__webglFramebuffer,e,e.texture,36064,3553),void 0!==n&&R(e)}
// Set up GL resources for the render target
,this.setupRenderTarget=function(t){const c=t.texture,l=r.get(t),u=r.get(c);t.addEventListener("dispose",E),!0!==t.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=e.createTexture()),u.__version=c.version,o.memory.textures++);const h=!0===t.isWebGLCubeRenderTarget,f=!0===t.isWebGLMultipleRenderTargets,d=A(t)||s;
// Setup framebuffer
if(h){l.__webglFramebuffer=[];for(let t=0;t<6;t++)l.__webglFramebuffer[t]=e.createFramebuffer()}else{if(l.__webglFramebuffer=e.createFramebuffer(),f&&i.drawBuffers){const n=t.texture;for(let t=0,i=n.length;t<i;t++){const i=r.get(n[t]);void 0===i.__webglTexture&&(i.__webglTexture=e.createTexture(),o.memory.textures++)}}if(s&&t.samples>0&&!1===N(t)){const r=f?c:[c];l.__webglMultisampledFramebuffer=e.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,l.__webglMultisampledFramebuffer);for(let n=0;n<r.length;n++){const i=r[n];l.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(36161,l.__webglColorRenderbuffer[n]);const o=a.convert(i.format,i.encoding),s=a.convert(i.type),c=x(i.internalFormat,o,s,i.encoding,!0===t.isXRRenderTarget),u=j(t);e.renderbufferStorageMultisample(36161,u,c,t.width,t.height),e.framebufferRenderbuffer(36160,36064+n,36161,l.__webglColorRenderbuffer[n])}e.bindRenderbuffer(36161,null),t.depthBuffer&&(l.__webglDepthRenderbuffer=e.createRenderbuffer(),Q(l.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(36160,null)}}
// Setup color buffer
if(h){n.bindTexture(34067,u.__webglTexture),O(34067,c,d);for(let e=0;e<6;e++)L(l.__webglFramebuffer[e],t,c,36064,34069+e);b(c,d)&&w(34067),n.unbindTexture()}else if(f){const e=t.texture;for(let i=0,a=e.length;i<a;i++){const a=e[i],o=r.get(a);n.bindTexture(3553,o.__webglTexture),O(3553,a,d),L(l.__webglFramebuffer,t,a,36064+i,3553),b(a,d)&&w(3553)}n.unbindTexture()}else{let e=3553;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&s&&(e=t.isWebGL3DRenderTarget?32879:35866),n.bindTexture(e,u.__webglTexture),O(e,c,d),L(l.__webglFramebuffer,t,c,36064,e),b(c,d)&&w(e),n.unbindTexture()}
// Setup depth and stencil buffers
t.depthBuffer&&R(t)},this.updateRenderTargetMipmap=function(e){const t=A(e)||s,i=!0===e.isWebGLMultipleRenderTargets?e.texture:[e.texture];for(let a=0,o=i.length;a<o;a++){const o=i[a];if(b(o,t)){const t=e.isWebGLCubeRenderTarget?34067:3553,i=r.get(o).__webglTexture;n.bindTexture(t,i),w(t),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(s&&t.samples>0&&!1===N(t)){const i=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],a=t.width,o=t.height;let s=16384;const c=[],l=t.stencilBuffer?33306:36096,u=r.get(t),h=!0===t.isWebGLMultipleRenderTargets;
// If MRT we need to remove FBO attachments
if(h)for(let t=0;t<i.length;t++)n.bindFramebuffer(36160,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064+t,36161,null),n.bindFramebuffer(36160,u.__webglFramebuffer),e.framebufferTexture2D(36009,36064+t,3553,null,0);n.bindFramebuffer(36008,u.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,u.__webglFramebuffer);for(let n=0;n<i.length;n++){c.push(36064+n),t.depthBuffer&&c.push(l);const d=void 0!==u.__ignoreDepthValues&&u.__ignoreDepthValues;if(!1===d&&(t.depthBuffer&&(s|=256),t.stencilBuffer&&(s|=1024)),h&&e.framebufferRenderbuffer(36008,36064,36161,u.__webglColorRenderbuffer[n]),!0===d&&(e.invalidateFramebuffer(36008,[l]),e.invalidateFramebuffer(36009,[l])),h){const t=r.get(i[n]).__webglTexture;e.framebufferTexture2D(36009,36064,3553,t,0)}e.blitFramebuffer(0,0,a,o,0,0,a,o,s,9728),f&&e.invalidateFramebuffer(36008,c)}
// If MRT since pre-blit we removed the FBO we need to reconstruct the attachments
if(n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,null),h)for(let t=0;t<i.length;t++){n.bindFramebuffer(36160,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064+t,36161,u.__webglColorRenderbuffer[t]);const a=r.get(i[t]).__webglTexture;n.bindFramebuffer(36160,u.__webglFramebuffer),e.framebufferTexture2D(36009,36064+t,3553,a,0)}n.bindFramebuffer(36009,u.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=R,this.setupFrameBufferTexture=L,this.useMultisampledRTT=N}function hs(e,t,n){const r=n.isWebGL2;return{convert:function(n,i=null){let a;if(n===pe)return 5121;if(n===xe)return 32819;if(n===Ce)return 32820;if(n===ge)return 5120;if(n===me)return 5122;if(n===ve)return 5123;if(n===ye)return 5124;if(n===Ae)return 5125;if(n===be)return 5126;if(n===we)return r?5131:(a=t.get("OES_texture_half_float"),null!==a?a.HALF_FLOAT_OES:null);if(n===Ie)return 6406;if(n===Ee)return 6408;if(n===ke)return 6409;if(n===Se)return 6410;if(n===Be)return 6402;if(n===Me)return 34041;
// WebGL 1 sRGB fallback
if(n===Dt)return a=t.get("EXT_sRGB"),null!==a?a.SRGB_ALPHA_EXT:null;
// WebGL2 formats.
if(n===Te)return 6403;if(n===Oe)return 36244;if(n===De)return 33319;if(n===Pe)return 33320;if(n===Le)return 36249;
// S3TC
if(n===Qe||n===Re||n===je||n===Ne)if(i===Ct){if(a=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===a)return null;if(n===Qe)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Re)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===je)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Ne)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(a=t.get("WEBGL_compressed_texture_s3tc"),null===a)return null;if(n===Qe)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Re)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===je)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Ne)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}
// PVRTC
if(n===Fe||n===ze||n===He||n===Ue){if(a=t.get("WEBGL_compressed_texture_pvrtc"),null===a)return null;if(n===Fe)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===ze)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===He)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Ue)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}
// ETC1
if(n===Ge)return a=t.get("WEBGL_compressed_texture_etc1"),null!==a?a.COMPRESSED_RGB_ETC1_WEBGL:null;
// ETC2
if(n===Ve||n===We){if(a=t.get("WEBGL_compressed_texture_etc"),null===a)return null;if(n===Ve)return i===Ct?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(n===We)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}
// ASTC
if(n===qe||n===Ye||n===Ke||n===$e||n===Je||n===Xe||n===Ze||n===et||n===tt||n===nt||n===rt||n===it||n===at||n===ot){if(a=t.get("WEBGL_compressed_texture_astc"),null===a)return null;if(n===qe)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Ye)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ke)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===$e)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Je)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Xe)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Ze)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===et)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===tt)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===nt)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===rt)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===it)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===at)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===ot)return i===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}
// BPTC
if(n===st){if(a=t.get("EXT_texture_compression_bptc"),null===a)return null;if(n===st)return i===Ct?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}
// RGTC
if(n===ct||n===lt||n===ut||n===ht){if(a=t.get("EXT_texture_compression_rgtc"),null===a)return null;if(n===st)return a.COMPRESSED_RED_RGTC1_EXT;if(n===lt)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===ut)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===ht)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}

return n===_e?r?34042:(a=t.get("WEBGL_depth_texture"),null!==a?a.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[n]?e[n]:null;
// if "p" can't be resolved, assume the user defines a WebGL constant as a string (fallback/workaround for packed RGB formats)
}}}class fs extends ki{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class ds extends Cr{constructor(){super(),this.isGroup=!0,this.type="Group"}}const ps={type:"move"};class gs{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new ds,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new ds,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new rn,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new rn),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new ds,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new rn,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new rn),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())
// Initialize hand with joints when connected
this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,a=null;const o=this._targetRay,s=this._grip,c=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(c&&e.hand){a=!0;for(const r of e.hand.values()){
// Update the joints groups with the XRJoint poses
const e=t.getJointPose(r,n),i=this._getHandJoint(c,r);
// The transform of this joint will be updated with the joint pose on each frame
null!==e&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=e.radius),i.visible=null!==e}
// Custom events
// Check pinchz
const r=c.joints["index-finger-tip"],i=c.joints["thumb-tip"],o=r.position.distanceTo(i.position),s=.02,l=.005;c.inputState.pinching&&o>s+l?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));null!==o&&(r=t.getPose(e.targetRaySpace,n),
// Some runtimes (namely Vive Cosmos with Vive OpenXR Runtime) have only grip space and ray space is equal to it
null===r&&null!==i&&(r=i),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(ps)))}return null!==o&&(o.visible=null!==r),null!==s&&(s.visible=null!==i),null!==c&&(c.visible=null!==a),this}
// private method
_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new ds;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class ms extends bn{constructor(e,t,n,r,i,a,o,s,c,l){if((l=void 0!==l?l:Be)!==Be&&l!==Me)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===Be&&(n=Ae),void 0===n&&l===Me&&(n=_e),super(null,r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==o?o:ce,this.minFilter=void 0!==s?s:ce,this.flipY=!1,this.generateMipmaps=!1}}class vs extends Pt{constructor(e,t){super();const n=this;let r=null,i=1,a=null,o="local-floor",s=1,c=null,l=null,u=null,h=null,f=null,d=null;const p=t.getContextAttributes();let g=null,m=null;const v=[],y=[],A=new Set,b=new Map,w=new ki;w.layers.enable(1),w.viewport=new wn;const x=new ki;x.layers.enable(2),x.viewport=new wn;const C=[w,x],_=new fs;_.layers.enable(1),_.layers.enable(2);let I=null,E=null;
function k(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=v[t];void 0!==n&&n.dispatchEvent({type:e.type,data:e.inputSource})}function S(){r.removeEventListener("select",k),r.removeEventListener("selectstart",k),r.removeEventListener("selectend",k),r.removeEventListener("squeeze",k),r.removeEventListener("squeezestart",k),r.removeEventListener("squeezeend",k),r.removeEventListener("end",S),r.removeEventListener("inputsourceschange",B);for(let e=0;e<v.length;e++){const t=y[e];null!==t&&(y[e]=null,v[e].disconnect(t))}I=null,E=null,
// restore framebuffer/rendering state
e.setRenderTarget(g),f=null,h=null,u=null,r=null,m=null,
P.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function B(e){
// Notify disconnected
for(let t=0;t<e.removed.length;t++){const n=e.removed[t],r=y.indexOf(n);r>=0&&(y[r]=null,v[r].disconnect(n))}
// Notify connected
for(let t=0;t<e.added.length;t++){const n=e.added[t];let r=y.indexOf(n);if(-1===r){
// Assign input source a controller that currently has no input source
for(let e=0;e<v.length;e++){if(e>=y.length){y.push(n),r=e;break}if(null===y[e]){y[e]=n,r=e;break}}
// If all controllers do currently receive input we ignore new ones
if(-1===r)break}const i=v[r];i&&i.connect(n)}}

this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=v[e];return void 0===t&&(t=new gs,v[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=v[e];return void 0===t&&(t=new gs,v[e]=t),t.getGripSpace()},this.getHand=function(e){let t=v[e];return void 0===t&&(t=new gs,v[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,n.isPresenting},this.setReferenceSpaceType=function(e){o=e,n.isPresenting},this.getReferenceSpace=function(){return c||a},this.setReferenceSpace=function(e){c=e},this.getBaseLayer=function(){return null!==h?h:f},this.getBinding=function(){return u},this.getFrame=function(){return d},this.getSession=function(){return r},this.setSession=async function(l){if(r=l,null!==r){if(g=e.getRenderTarget(),r.addEventListener("select",k),r.addEventListener("selectstart",k),r.addEventListener("selectend",k),r.addEventListener("squeeze",k),r.addEventListener("squeezestart",k),r.addEventListener("squeezeend",k),r.addEventListener("end",S),r.addEventListener("inputsourceschange",B),!0!==p.xrCompatible&&await t.makeXRCompatible(),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||p.antialias,alpha:p.alpha,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:i};f=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:f}),m=new xn(f.framebufferWidth,f.framebufferHeight,{format:Ee,type:pe,encoding:e.outputEncoding,stencilBuffer:p.stencil})}else{let n=null,a=null,o=null;p.depth&&(o=p.stencil?35056:33190,n=p.stencil?Me:Be,a=p.stencil?_e:Ae);const s={colorFormat:32856,depthFormat:o,scaleFactor:i};u=new XRWebGLBinding(r,t),h=u.createProjectionLayer(s),r.updateRenderState({layers:[h]}),m=new xn(h.textureWidth,h.textureHeight,{format:Ee,type:pe,depthTexture:new ms(h.textureWidth,h.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:p.stencil,encoding:e.outputEncoding,samples:p.antialias?4:0});e.properties.get(m).__ignoreDepthValues=h.ignoreDepthValues}m.isXRRenderTarget=!0,// TODO Remove this when possible, see #23278
this.setFoveation(s),c=null,a=await r.requestReferenceSpace(o),P.setContext(r),P.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const M=new rn,T=new rn;function O(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;_.near=x.near=w.near=e.near,_.far=x.far=w.far=e.far,I===_.near&&E===_.far||(
// Note that the new renderState won't apply until the next frame. See #18320
r.updateRenderState({depthNear:_.near,depthFar:_.far}),I=_.near,E=_.far);const t=e.parent,n=_.cameras;O(_,t);for(let e=0;e<n.length;e++)O(n[e],t);_.matrixWorld.decompose(_.position,_.quaternion,_.scale),
// update user camera and its children
e.matrix.copy(_.matrix),e.matrix.decompose(e.position,e.quaternion,e.scale);const i=e.children;for(let e=0,t=i.length;e<t;e++)i[e].updateMatrixWorld(!0);
// update projection matrix for proper view frustum culling
2===n.length?
/**
		 * Assumes 2 cameras that are parallel and share an X-axis, and that
		 * the cameras' projection and world matrices have already been set.
		 * And that near and far planes are identical for both cameras.
		 * Visualization of this technique: https://computergraphics.stackexchange.com/a/4765
		 */
function(e,t,n){M.setFromMatrixPosition(t.matrixWorld),T.setFromMatrixPosition(n.matrixWorld);const r=M.distanceTo(T),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],h=(a[8]+1)/a[0],f=o*u,d=o*h,p=r/(-u+h),g=p*-u;
// TODO: Better way to apply this offset?
t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(g),e.translateZ(p),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();
// Find the union of the frustum values of the cameras and scale
// the values so that the near plane's position does not change in world space,
// although must now be relative to the new union camera.
const m=o+p,v=s+p,y=f-g,A=d+(r-g),b=c*s/v*m,w=l*s/v*m;e.projectionMatrix.makePerspective(y,A,b,w,m,v)}(_,w,x):
// assume single camera setup (AR)
_.projectionMatrix.copy(w.projectionMatrix)},this.getCamera=function(){return _},this.getFoveation=function(){if(null!==h||null!==f)return s},this.setFoveation=function(e){
// 0 = no foveation = full resolution
// 1 = maximum foveation = the edges render at lower resolution
s=e,null!==h&&(h.fixedFoveation=e),null!==f&&void 0!==f.fixedFoveation&&(f.fixedFoveation=e)},this.getPlanes=function(){return A};
// Animation Loop
let D=null;const P=new Ni;P.setAnimationLoop((function(t,r){if(l=r.getViewerPose(c||a),d=r,null!==l){const t=l.views;null!==f&&(e.setRenderTargetFramebuffer(m,f.framebuffer),e.setRenderTarget(m));let n=!1;
// check if it's necessary to rebuild cameraVR's camera list
t.length!==_.cameras.length&&(_.cameras.length=0,n=!0);for(let r=0;r<t.length;r++){const i=t[r];let a=null;if(null!==f)a=f.getViewport(i);else{const t=u.getViewSubImage(h,i);a=t.viewport,
// For side-by-side projection, we only produce a single texture for both eyes.
0===r&&(e.setRenderTargetTextures(m,t.colorTexture,h.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(m))}let o=C[r];void 0===o&&(o=new ki,o.layers.enable(r),o.viewport=new wn,C[r]=o),o.matrix.fromArray(i.transform.matrix),o.projectionMatrix.fromArray(i.projectionMatrix),o.viewport.set(a.x,a.y,a.width,a.height),0===r&&_.matrix.copy(o.matrix),!0===n&&_.cameras.push(o)}}

for(let e=0;e<v.length;e++){const t=y[e],n=v[e];null!==t&&void 0!==n&&n.update(t,r,c||a)}if(D&&D(t,r),r.detectedPlanes){n.dispatchEvent({type:"planesdetected",data:r.detectedPlanes});let e=null;for(const t of A)r.detectedPlanes.has(t)||(null===e&&(e=[]),e.push(t));if(null!==e)for(const t of e)A.delete(t),b.delete(t),n.dispatchEvent({type:"planeremoved",data:t});for(const e of r.detectedPlanes)if(A.has(e)){const t=b.get(e);e.lastChangedTime>t&&(b.set(e,e.lastChangedTime),n.dispatchEvent({type:"planechanged",data:e}))}else A.add(e),b.set(e,r.lastChangedTime),n.dispatchEvent({type:"planeadded",data:e})}d=null})),this.setAnimationLoop=function(e){D=e},this.dispose=function(){}}}function ys(e,t){function n(n,r){n.opacity.value=r.opacity,r.color&&n.diffuse.value.copy(r.color),r.emissive&&n.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(n.map.value=r.map),r.alphaMap&&(n.alphaMap.value=r.alphaMap),r.bumpMap&&(n.bumpMap.value=r.bumpMap,n.bumpScale.value=r.bumpScale,r.side===d&&(n.bumpScale.value*=-1)),r.displacementMap&&(n.displacementMap.value=r.displacementMap,n.displacementScale.value=r.displacementScale,n.displacementBias.value=r.displacementBias),r.emissiveMap&&(n.emissiveMap.value=r.emissiveMap),r.normalMap&&(n.normalMap.value=r.normalMap,n.normalScale.value.copy(r.normalScale),r.side===d&&n.normalScale.value.negate()),r.specularMap&&(n.specularMap.value=r.specularMap),r.alphaTest>0&&(n.alphaTest.value=r.alphaTest);const i=t.get(r).envMap;if(i&&(n.envMap.value=i,n.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,n.reflectivity.value=r.reflectivity,n.ior.value=r.ior,n.refractionRatio.value=r.refractionRatio),r.lightMap){n.lightMap.value=r.lightMap;
// artist-friendly light intensity scaling factor
const t=!0===e.useLegacyLights?Math.PI:1;n.lightMapIntensity.value=r.lightMapIntensity*t}
// uv repeat and offset setting priorities
// 1. color map
// 2. specular map
// 3. displacementMap map
// 4. normal map
// 5. bump map
// 6. roughnessMap map
// 7. metalnessMap map
// 8. alphaMap map
// 9. emissiveMap map
// 10. clearcoat map
// 11. clearcoat normal map
// 12. clearcoat roughnessMap map
// 13. iridescence map
// 14. iridescence thickness map
// 15. specular intensity map
// 16. specular tint map
// 17. transmission map
// 18. thickness map
let a,o;r.aoMap&&(n.aoMap.value=r.aoMap,n.aoMapIntensity.value=r.aoMapIntensity),r.map?a=r.map:r.specularMap?a=r.specularMap:r.displacementMap?a=r.displacementMap:r.normalMap?a=r.normalMap:r.bumpMap?a=r.bumpMap:r.roughnessMap?a=r.roughnessMap:r.metalnessMap?a=r.metalnessMap:r.alphaMap?a=r.alphaMap:r.emissiveMap?a=r.emissiveMap:r.clearcoatMap?a=r.clearcoatMap:r.clearcoatNormalMap?a=r.clearcoatNormalMap:r.clearcoatRoughnessMap?a=r.clearcoatRoughnessMap:r.iridescenceMap?a=r.iridescenceMap:r.iridescenceThicknessMap?a=r.iridescenceThicknessMap:r.specularIntensityMap?a=r.specularIntensityMap:r.specularColorMap?a=r.specularColorMap:r.transmissionMap?a=r.transmissionMap:r.thicknessMap?a=r.thicknessMap:r.sheenColorMap?a=r.sheenColorMap:r.sheenRoughnessMap&&(a=r.sheenRoughnessMap),void 0!==a&&(
// backwards compatibility
a.isWebGLRenderTarget&&(a=a.texture),!0===a.matrixAutoUpdate&&a.updateMatrix(),n.uvTransform.value.copy(a.matrix)),r.aoMap?o=r.aoMap:r.lightMap&&(o=r.lightMap),void 0!==o&&(
// backwards compatibility
o.isWebGLRenderTarget&&(o=o.texture),!0===o.matrixAutoUpdate&&o.updateMatrix(),n.uv2Transform.value.copy(o.matrix))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Ci(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,r,i,a,o){r.isMeshBasicMaterial||r.isMeshLambertMaterial?n(e,r):r.isMeshToonMaterial?(n(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,r)):r.isMeshPhongMaterial?(n(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,r)):r.isMeshStandardMaterial?(n(e,r),function(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap);n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap);const r=t.get(n).envMap;r&&(
//uniforms.envMap.value = material.envMap; // part of uniforms common
e.envMapIntensity.value=n.envMapIntensity)}(e,r),r.isMeshPhysicalMaterial&&function(e,t,n){// also part of uniforms common
e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===d&&e.clearcoatNormalScale.value.negate()));t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=n.texture,e.transmissionSamplerSize.value.set(n.width,n.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap);t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}(e,r,o)):r.isMeshMatcapMaterial?(n(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,r)):r.isMeshDepthMaterial?n(e,r):r.isMeshDistanceMaterial?(n(e,r),function(e,t){e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}(e,r)):r.isMeshNormalMaterial?n(e,r):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,n,r){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map);t.alphaMap&&(e.alphaMap.value=t.alphaMap);t.alphaTest>0&&(e.alphaTest.value=t.alphaTest);
// uv repeat and offset setting priorities
// 1. color map
// 2. alpha map
let i;t.map?i=t.map:t.alphaMap&&(i=t.alphaMap);void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}(e,r,i,a):r.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map);t.alphaMap&&(e.alphaMap.value=t.alphaMap);t.alphaTest>0&&(e.alphaTest.value=t.alphaTest);
// uv repeat and offset setting priorities
// 1. color map
// 2. alpha map
let n;t.map?n=t.map:t.alphaMap&&(n=t.alphaMap);void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function As(e,t,n,r){let i={},a={},o=[];const s=n.isWebGL2?e.getParameter(35375):0;// binding points are global whereas block indices are per shader program
function c(e,t,n){const r=e.value;if(void 0===n[t]){
// cache entry does not exist so far
if("number"==typeof r)n[t]=r;else{const e=Array.isArray(r)?r:[r],i=[];for(let t=0;t<e.length;t++)i.push(e[t].clone());n[t]=i}return!0}
// compare current value with cached entry
if("number"==typeof r){if(n[t]!==r)return n[t]=r,!0}else{const e=Array.isArray(n[t])?n[t]:[n[t]],i=Array.isArray(r)?r:[r];for(let t=0;t<e.length;t++){const n=e[t];if(!1===n.equals(i[t]))return n.copy(i[t]),!0}}return!1}function l(e){const t={boundary:0,// bytes
storage:0};
// determine sizes according to STD140
return"number"==typeof e?(
// float/int
t.boundary=4,t.storage=4):e.isVector2?(
// vec2
t.boundary=8,t.storage=8):e.isVector3||e.isColor?(
// vec3
t.boundary=16,t.storage=12):e.isVector4?(
// vec4
t.boundary=16,t.storage=16):e.isMatrix3?(
// mat3 (in STD140 a 3x3 matrix is represented as 3x4)
t.boundary=48,t.storage=48):e.isMatrix4?(
// mat4
t.boundary=64,t.storage=64):e.isTexture,t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,h){let f=i[n.id];void 0===f&&(!function(e){
// determine total buffer size according to the STD140 layout
// Hint: STD140 is the only supported layout in WebGL 2
const t=e.uniforms;let n=0;// global buffer offset in bytes
const r=16;// size of a chunk in bytes
let i=0;// offset within a single chunk in bytes
for(let e=0,a=t.length;e<a;e++){const a=t[e],o={boundary:0,// bytes
storage:0},s=Array.isArray(a.value)?a.value:[a.value];for(let e=0,t=s.length;e<t;e++){const t=l(s[e]);o.boundary+=t.boundary,o.storage+=t.storage}
// the following two properties will be used for partial buffer updates
if(a.__data=new Float32Array(o.storage/Float32Array.BYTES_PER_ELEMENT),a.__offset=n,e>0){i=n%r;
// check for chunk overflow
0!==i&&r-i-o.boundary<0&&(
// add padding and adjust offset
n+=r-i,a.__offset=n)}n+=o.storage}
// ensure correct final padding
i=n%r,i>0&&(n+=r-i);

e.__size=n,e.__cache={}}(n),f=function(t){
// the setup of an UBO is independent of a particular shader program but global
const n=function(){for(let e=0;e<s;e++)if(-1===o.indexOf(e))return o.push(e),e;return 0}();t.__bindingPointIndex=n;const r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(35345,r),e.bufferData(35345,i,a),e.bindBuffer(35345,null),e.bindBufferBase(35345,n,r),r}(n),i[n.id]=f,n.addEventListener("dispose",u));
// ensure to update the binding points/block indices mapping for this program
const d=h.program;r.updateUBOMapping(n,d);
// update UBO once per frame
const p=t.render.frame;a[n.id]!==p&&(!function(t){const n=i[t.id],r=t.uniforms,a=t.__cache;e.bindBuffer(35345,n);for(let t=0,n=r.length;t<n;t++){const n=r[t];
// partly update the buffer if necessary
if(!0===c(n,t,a)){const t=n.__offset,r=Array.isArray(n.value)?n.value:[n.value];let i=0;for(let a=0;a<r.length;a++){const o=r[a],s=l(o);"number"==typeof o?(n.__data[0]=o,e.bufferSubData(35345,t+i,n.__data)):o.isMatrix3?(
// manually converting 3x3 to 3x4
n.__data[0]=o.elements[0],n.__data[1]=o.elements[1],n.__data[2]=o.elements[2],n.__data[3]=o.elements[0],n.__data[4]=o.elements[3],n.__data[5]=o.elements[4],n.__data[6]=o.elements[5],n.__data[7]=o.elements[0],n.__data[8]=o.elements[6],n.__data[9]=o.elements[7],n.__data[10]=o.elements[8],n.__data[11]=o.elements[0]):(o.toArray(n.__data,i),i+=s.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(35345,t,n.__data)}}e.bindBuffer(35345,null)}(n),a[n.id]=p)},dispose:function(){for(const t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}}}function bs(e={}){this.isWebGLRenderer=!0;const t=void 0!==e.canvas?e.canvas:function(){const e=tn("canvas");return e.style.display="block",e}(),n=void 0!==e.context?e.context:null,i=void 0===e.depth||e.depth,a=void 0===e.stencil||e.stencil,o=void 0!==e.antialias&&e.antialias,s=void 0===e.premultipliedAlpha||e.premultipliedAlpha,c=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,l=void 0!==e.powerPreference?e.powerPreference:"default",u=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat;let h;h=null!==n?n.getContextAttributes().alpha:void 0!==e.alpha&&e.alpha;let g=null,m=null;
// render() can be called from within a callback triggered by another render.
// We track this so that the nested render call gets its list and state isolated from the parent render call.
const v=[],y=[];
// public properties
this.domElement=t,
// Debug configuration container
this.debug={
/**
		 * Enables error checking and reporting when shader programs are being compiled
		 * @type {boolean}
		 */
checkShaderErrors:!0},
// clearing
this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,
// scene graph
this.sortObjects=!0,
// user-defined clipping
this.clippingPlanes=[],this.localClippingEnabled=!1,
// physically based shading
this.outputEncoding=xt,
// physical lights
this.useLegacyLights=!0,
// tone mapping
this.toneMapping=Y,this.toneMappingExposure=1;
// internal properties
const A=this;let b=!1,w=0,x=0,C=null,_=-1,I=null;
// internal state cache
const E=new wn,k=new wn;let S=null,B=t.width,M=t.height,T=1,O=null,D=null;

const P=new wn(0,0,B,M),L=new wn(0,0,B,M);let Q=!1;
// frustum
const R=new ji;
// clipping
let j=!1,N=!1,F=null;
// camera matrices cache
const z=new Xn,H=new rn,U={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function G(){return null===C?T:1}
// initialize
let V,W,q,K,$,J,X,Z,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,he,fe,ge,me,ve,ye=n;function Ae(e,n){for(let r=0;r<e.length;r++){const i=e[r],a=t.getContext(i,n);if(null!==a)return a}return null}try{const e={alpha:!0,depth:i,stencil:a,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};
// OffscreenCanvas does not have setAttribute, see #22811
if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${r}`),
// event listeners must be registered before WebGL context is created, see #12753
t.addEventListener("webglcontextlost",_e,!1),t.addEventListener("webglcontextrestored",Ie,!1),t.addEventListener("webglcontextcreationerror",ke,!1),null===ye){const t=["webgl2","webgl","experimental-webgl"];if(!0===A.isWebGL1Renderer&&t.shift(),ye=Ae(t,e),null===ye)throw Ae(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}
// Some experimental-webgl implementations do not have getShaderPrecisionFormat
void 0===ye.getShaderPrecisionFormat&&(ye.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(e){throw e}function xe(){V=new pa(ye),W=new Ki(ye,V,e),V.init(W),ge=new hs(ye,V,W),q=new ls(ye,V,W),K=new va,$=new qo,J=new us(ye,V,q,$,W,ge,K),X=new Ji(A),Z=new da(A),ee=new Fi(ye,W),me=new qi(ye,V,ee,W),te=new ga(ye,ee,K,me),ne=new wa(ye,te,ee,K),ue=new ba(ye,W,J),se=new $i($),re=new Wo(A,X,Z,V,W,me,se),ie=new ys(A,$),ae=new Jo,oe=new rs(V,W),le=new Wi(A,X,Z,q,ne,h,s),ce=new cs(A,ne,W),ve=new As(ye,K,W,q),he=new Yi(ye,V,K,W),fe=new ma(ye,V,K,W),K.programs=re.programs,A.capabilities=W,A.extensions=V,A.properties=$,A.renderLists=ae,A.shadowMap=ce,A.state=q,A.info=K}xe();
// xr
const Ce=new vs(A,ye);
// Events
function _e(e){e.preventDefault(),b=!0}function Ie(){b=!1;const e=K.autoReset,t=ce.enabled,n=ce.autoUpdate,r=ce.needsUpdate,i=ce.type;xe(),K.autoReset=e,ce.enabled=t,ce.autoUpdate=n,ce.needsUpdate=r,ce.type=i}function ke(e){}function Se(e){const t=e.target;t.removeEventListener("dispose",Se),
// Buffer deallocation
function(e){(function(e){const t=$.get(e).programs;void 0!==t&&(t.forEach((function(e){re.releaseProgram(e)})),e.isShaderMaterial&&re.releaseShaderCache(e))}
// Buffer rendering
)(e),$.remove(e)}(t)}this.xr=Ce,
// API
this.getContext=function(){return ye},this.getContextAttributes=function(){return ye.getContextAttributes()},this.forceContextLoss=function(){const e=V.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=V.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return T},this.setPixelRatio=function(e){void 0!==e&&(T=e,this.setSize(B,M,!1))},this.getSize=function(e){return e.set(B,M)},this.setSize=function(e,n,r=!0){Ce.isPresenting||(B=e,M=n,t.width=Math.floor(e*T),t.height=Math.floor(n*T),!0===r&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(B*T,M*T).floor()},this.setDrawingBufferSize=function(e,n,r){B=e,M=n,T=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(E)},this.getViewport=function(e){return e.copy(P)},this.setViewport=function(e,t,n,r){e.isVector4?P.set(e.x,e.y,e.z,e.w):P.set(e,t,n,r),q.viewport(E.copy(P).multiplyScalar(T).floor())},this.getScissor=function(e){return e.copy(L)},this.setScissor=function(e,t,n,r){e.isVector4?L.set(e.x,e.y,e.z,e.w):L.set(e,t,n,r),q.scissor(k.copy(L).multiplyScalar(T).floor())},this.getScissorTest=function(){return Q},this.setScissorTest=function(e){q.setScissorTest(Q=e)},this.setOpaqueSort=function(e){O=e},this.setTransparentSort=function(e){D=e},
// Clearing
this.getClearColor=function(e){return e.copy(le.getClearColor())},this.setClearColor=function(){le.setClearColor.apply(le,arguments)},this.getClearAlpha=function(){return le.getClearAlpha()},this.setClearAlpha=function(){le.setClearAlpha.apply(le,arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;e&&(r|=16384),t&&(r|=256),n&&(r|=1024),ye.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},
this.dispose=function(){t.removeEventListener("webglcontextlost",_e,!1),t.removeEventListener("webglcontextrestored",Ie,!1),t.removeEventListener("webglcontextcreationerror",ke,!1),ae.dispose(),oe.dispose(),$.dispose(),X.dispose(),Z.dispose(),ne.dispose(),me.dispose(),ve.dispose(),re.dispose(),Ce.dispose(),Ce.removeEventListener("sessionstart",Me),Ce.removeEventListener("sessionend",Te),F&&(F.dispose(),F=null),Oe.stop()},this.renderBufferDirect=function(e,t,n,r,i,a){null===t&&(t=U);// renderBufferDirect second parameter used to be fog (could be null)
const o=i.isMesh&&i.matrixWorld.determinant()<0,s=function(e,t,n,r,i){!0!==t.isScene&&(t=U);// scene could be a Mesh, Line, Points, ...
J.resetTextureUnits();const a=t.fog,o=r.isMeshStandardMaterial?t.environment:null,s=null===C?A.outputEncoding:!0===C.isXRRenderTarget?C.texture.encoding:xt,c=(r.isMeshStandardMaterial?Z:X).get(r.envMap||o),l=!0===r.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!r.normalMap&&!!n.attributes.tangent,h=!!n.morphAttributes.position,f=!!n.morphAttributes.normal,d=!!n.morphAttributes.color,p=r.toneMapped?A.toneMapping:Y,g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,v=void 0!==g?g.length:0,y=$.get(r),b=m.state.lights;if(!0===j&&(!0===N||e!==I)){const t=e===I&&r.id===_;
// we might want to call this function with some ClippingGroup
// object instead of the material, once it becomes feasible
// (#8465, #8379)
se.setState(r,e,t)}

let w=!1;r.version===y.__version?y.needsLights&&y.lightsStateVersion!==b.state.version||y.outputEncoding!==s||i.isInstancedMesh&&!1===y.instancing?w=!0:i.isInstancedMesh||!0!==y.instancing?i.isSkinnedMesh&&!1===y.skinning?w=!0:i.isSkinnedMesh||!0!==y.skinning?y.envMap!==c||!0===r.fog&&y.fog!==a?w=!0:void 0===y.numClippingPlanes||y.numClippingPlanes===se.numPlanes&&y.numIntersection===se.numIntersection?(y.vertexAlphas!==l||y.vertexTangents!==u||y.morphTargets!==h||y.morphNormals!==f||y.morphColors!==d||y.toneMapping!==p||!0===W.isWebGL2&&y.morphTargetsCount!==v)&&(w=!0):w=!0:w=!0:w=!0:(w=!0,y.__version=r.version);

let x=y.currentProgram;!0===w&&(x=Re(r,t,i));let E=!1,k=!1,S=!1;const B=x.getUniforms(),O=y.uniforms;q.useProgram(x.program)&&(E=!0,k=!0,S=!0);r.id!==_&&(_=r.id,k=!0);if(E||I!==e){
// load material specific uniforms
// (shader material also gets them for the sake of genericity)
if(B.setValue(ye,"projectionMatrix",e.projectionMatrix),W.logarithmicDepthBuffer&&B.setValue(ye,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),I!==e&&(I=e,
// lighting uniforms depend on the camera so enforce an update
// now, in case this material supports lights - or later, when
// the next material that does gets activated:
k=!0,// set to true on material change
S=!0),r.isShaderMaterial||r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshStandardMaterial||r.envMap){const t=B.map.cameraPosition;void 0!==t&&t.setValue(ye,H.setFromMatrixPosition(e.matrixWorld))}(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&B.setValue(ye,"isOrthographic",!0===e.isOrthographicCamera),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial||r.isShadowMaterial||i.isSkinnedMesh)&&B.setValue(ye,"viewMatrix",e.matrixWorldInverse)}
// skinning and morph target uniforms must be set even if material didn't change
// auto-setting of texture unit for bone and morph texture must go before other textures
// otherwise textures used for skinning and morphing can take over texture units reserved for other material textures
if(i.isSkinnedMesh){B.setOptional(ye,i,"bindMatrix"),B.setOptional(ye,i,"bindMatrixInverse");const e=i.skeleton;e&&W.floatVertexTextures&&(null===e.boneTexture&&e.computeBoneTexture(),B.setValue(ye,"boneTexture",e.boneTexture,J),B.setValue(ye,"boneTextureSize",e.boneTextureSize))}const D=n.morphAttributes;(void 0!==D.position||void 0!==D.normal||void 0!==D.color&&!0===W.isWebGL2)&&ue.update(i,n,x);(k||y.receiveShadow!==i.receiveShadow)&&(y.receiveShadow=i.receiveShadow,B.setValue(ye,"receiveShadow",i.receiveShadow));
// https://github.com/mrdoob/three.js/pull/24467#issuecomment-1209031512
r.isMeshGouraudMaterial&&null!==r.envMap&&(O.envMap.value=c,O.flipEnvMap.value=c.isCubeTexture&&!1===c.isRenderTargetTexture?-1:1);k&&(B.setValue(ye,"toneMappingExposure",A.toneMappingExposure),y.needsLights&&(
// the current material requires lighting info
// note: all lighting uniforms are always set correctly
// they simply reference the renderer's state for their
// values
// use the current material's .needsUpdate flags to set
// the GL state when required
L=S,(P=O).ambientLightColor.needsUpdate=L,P.lightProbe.needsUpdate=L,P.directionalLights.needsUpdate=L,P.directionalLightShadows.needsUpdate=L,P.pointLights.needsUpdate=L,P.pointLightShadows.needsUpdate=L,P.spotLights.needsUpdate=L,P.spotLightShadows.needsUpdate=L,P.rectAreaLights.needsUpdate=L,P.hemisphereLights.needsUpdate=L),
// refresh uniforms common to several materials
a&&!0===r.fog&&ie.refreshFogUniforms(O,a),ie.refreshMaterialUniforms(O,r,T,M,F),Eo.upload(ye,y.uniformsList,O,J));
// If uniforms are marked as clean, they don't need to be loaded to the GPU.
var P,L;r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(Eo.upload(ye,y.uniformsList,O,J),r.uniformsNeedUpdate=!1);r.isSpriteMaterial&&B.setValue(ye,"center",i.center);
// common matrices
// UBOs
if(B.setValue(ye,"modelViewMatrix",i.modelViewMatrix),B.setValue(ye,"normalMatrix",i.normalMatrix),B.setValue(ye,"modelMatrix",i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let t=0,n=e.length;t<n;t++)if(W.isWebGL2){const n=e[t];ve.update(n,x),ve.bind(n,x)}}return x}(e,t,n,r,i);q.setMaterial(r,o);
let c=n.index,l=1;!0===r.wireframe&&(c=te.getWireframeAttribute(n),l=2);

const u=n.drawRange,h=n.attributes.position;let f=u.start*l,d=(u.start+u.count)*l;null!==a&&(f=Math.max(f,a.start*l),d=Math.min(d,(a.start+a.count)*l)),null!==c?(f=Math.max(f,0),d=Math.min(d,c.count)):null!=h&&(f=Math.max(f,0),d=Math.min(d,h.count));const p=d-f;if(p<0||p===1/0)return;

let g;me.setup(i,r,s,n,c);let v=he;
if(null!==c&&(g=ee.get(c),v=fe,v.setIndex(g)),i.isMesh)!0===r.wireframe?(q.setLineWidth(r.wireframeLinewidth*G()),v.setMode(1)):v.setMode(4);else if(i.isLine){let e=r.linewidth;void 0===e&&(e=1),// Not using Line*Material
q.setLineWidth(e*G()),i.isLineSegments?v.setMode(1):i.isLineLoop?v.setMode(2):v.setMode(3)}else i.isPoints?v.setMode(0):i.isSprite&&v.setMode(4);if(i.isInstancedMesh)v.renderInstances(f,p,i.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);v.renderInstances(f,p,t)}else v.render(f,p)},
// Compile
this.compile=function(e,t){function n(e,t,n){!0===e.transparent&&e.side===p&&!1===e.forceSinglePass?(e.side=d,e.needsUpdate=!0,Re(e,t,n),e.side=f,e.needsUpdate=!0,Re(e,t,n),e.side=p):Re(e,t,n)}m=oe.get(e),m.init(),y.push(m),e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(m.pushLight(e),e.castShadow&&m.pushShadow(e))})),m.setupLights(A.useLegacyLights),e.traverse((function(t){const r=t.material;if(r)if(Array.isArray(r))for(let i=0;i<r.length;i++){n(r[i],e,t)}else n(r,e,t)})),y.pop(),m=null};
// Animation Loop
let Be=null;function Me(){Oe.stop()}function Te(){Oe.start()}const Oe=new Ni;function De(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)m.pushLight(e),e.castShadow&&m.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||R.intersectsSprite(e)){r&&H.setFromMatrixPosition(e.matrixWorld).applyMatrix4(z);const t=ne.update(e),i=e.material;i.visible&&g.push(e,t,i,n,H.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(e.isSkinnedMesh&&e.skeleton.frame!==K.render.frame&&(e.skeleton.update(),e.skeleton.frame=K.render.frame),!e.frustumCulled||R.intersectsObject(e))){r&&H.setFromMatrixPosition(e.matrixWorld).applyMatrix4(z);const t=ne.update(e),i=e.material;if(Array.isArray(i)){const r=t.groups;for(let a=0,o=r.length;a<o;a++){const o=r[a],s=i[o.materialIndex];s&&s.visible&&g.push(e,t,s,n,H.z,o)}}else i.visible&&g.push(e,t,i,n,H.z,null)}const i=e.children;for(let e=0,a=i.length;e<a;e++)De(i[e],t,n,r)}function Pe(e,t,n,r){const i=e.opaque,a=e.transmissive,s=e.transparent;m.setupLightsView(n),!0===j&&se.setGlobalState(A.clippingPlanes,n),a.length>0&&function(e,t,n){const r=W.isWebGL2;null===F&&(F=new xn(1024,1024,{generateMipmaps:!0,type:V.has("EXT_color_buffer_half_float")?we:pe,minFilter:de,samples:r&&!0===o?4:0}));

const i=A.getRenderTarget();A.setRenderTarget(F),A.clear();
// Turn off the features which can affect the frag color for opaque objects pass.
// Otherwise they are applied twice in opaque objects pass and transmission objects pass.
const a=A.toneMapping;A.toneMapping=Y,Le(e,t,n),A.toneMapping=a,J.updateMultisampleRenderTarget(F),J.updateRenderTargetMipmap(F),A.setRenderTarget(i)}(i,t,n),r&&q.viewport(E.copy(r)),i.length>0&&Le(i,t,n),a.length>0&&Le(a,t,n),s.length>0&&Le(s,t,n),
// Ensure depth buffer writing is enabled so it can be cleared on next render
q.buffers.depth.setTest(!0),q.buffers.depth.setMask(!0),q.buffers.color.setMask(!0),q.setPolygonOffset(!1)}function Le(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,a=e.length;i<a;i++){const a=e[i],o=a.object,s=a.geometry,c=null===r?a.material:r,l=a.group;o.layers.test(n.layers)&&Qe(o,t,n,s,c,l)}}function Qe(e,t,n,r,i,a){e.onBeforeRender(A,t,n,r,i,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(A,t,n,r,e,a),!0===i.transparent&&i.side===p&&!1===i.forceSinglePass?(i.side=d,i.needsUpdate=!0,A.renderBufferDirect(n,t,r,i,e,a),i.side=f,i.needsUpdate=!0,A.renderBufferDirect(n,t,r,i,e,a),i.side=p):A.renderBufferDirect(n,t,r,i,e,a),e.onAfterRender(A,t,n,r,i,a)}function Re(e,t,n){!0!==t.isScene&&(t=U);// scene could be a Mesh, Line, Points, ...
const r=$.get(e),i=m.state.lights,a=m.state.shadowsArray,o=i.state.version,s=re.getParameters(e,i.state,a,t,n),c=re.getProgramCacheKey(s);let l=r.programs;
// always update environment and fog - changing these trigger an getProgram call, but it's possible that the program doesn't change
r.environment=e.isMeshStandardMaterial?t.environment:null,r.fog=t.fog,r.envMap=(e.isMeshStandardMaterial?Z:X).get(e.envMap||r.environment),void 0===l&&(
// new material
e.addEventListener("dispose",Se),l=new Map,r.programs=l);let u=l.get(c);if(void 0!==u){
// early out if program and light state is identical
if(r.currentProgram===u&&r.lightsStateVersion===o)return je(e,s),u}else s.uniforms=re.getUniforms(e),e.onBuild(n,s,A),e.onBeforeCompile(s,A),u=re.acquireProgram(s,c),l.set(c,u),r.uniforms=s.uniforms;const h=r.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(h.clippingPlanes=se.uniform),je(e,s),
// store the light setup it was created for
r.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),r.lightsStateVersion=o,r.needsLights&&(
// wire up the material to this renderer's lighting state
h.ambientLightColor.value=i.state.ambient,h.lightProbe.value=i.state.probe,h.directionalLights.value=i.state.directional,h.directionalLightShadows.value=i.state.directionalShadow,h.spotLights.value=i.state.spot,h.spotLightShadows.value=i.state.spotShadow,h.rectAreaLights.value=i.state.rectArea,h.ltc_1.value=i.state.rectAreaLTC1,h.ltc_2.value=i.state.rectAreaLTC2,h.pointLights.value=i.state.point,h.pointLightShadows.value=i.state.pointShadow,h.hemisphereLights.value=i.state.hemi,h.directionalShadowMap.value=i.state.directionalShadowMap,h.directionalShadowMatrix.value=i.state.directionalShadowMatrix,h.spotShadowMap.value=i.state.spotShadowMap,h.spotLightMatrix.value=i.state.spotLightMatrix,h.spotLightMap.value=i.state.spotLightMap,h.pointShadowMap.value=i.state.pointShadowMap,h.pointShadowMatrix.value=i.state.pointShadowMatrix);const f=u.getUniforms(),d=Eo.seqWithValue(f.seq,h);return r.currentProgram=u,r.uniformsList=d,u}function je(e,t){const n=$.get(e);n.outputEncoding=t.outputEncoding,n.instancing=t.instancing,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Oe.setAnimationLoop((function(e){Be&&Be(e)})),"undefined"!=typeof self&&Oe.setContext(self),this.setAnimationLoop=function(e){Be=e,Ce.setAnimationLoop(e),null===e?Oe.stop():Oe.start()},Ce.addEventListener("sessionstart",Me),Ce.addEventListener("sessionend",Te),
// Rendering
this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return;if(!0===b)return;
// update scene graph
!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),
// update camera matrices and frustum
null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===Ce.enabled&&!0===Ce.isPresenting&&(!0===Ce.cameraAutoUpdate&&Ce.updateCamera(t),t=Ce.getCamera()),
!0===e.isScene&&e.onBeforeRender(A,e,t,C),m=oe.get(e,y.length),m.init(),y.push(m),z.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),R.setFromProjectionMatrix(z),N=this.localClippingEnabled,j=se.init(this.clippingPlanes,N),g=ae.get(e,v.length),g.init(),v.push(g),De(e,t,0,A.sortObjects),g.finish(),!0===A.sortObjects&&g.sort(O,D),
!0===j&&se.beginShadows();const n=m.state.shadowsArray;if(ce.render(n,e,t),!0===j&&se.endShadows(),
!0===this.info.autoReset&&this.info.reset(),
le.render(g,e),
// render scene
m.setupLights(A.useLegacyLights),t.isArrayCamera){const n=t.cameras;for(let t=0,r=n.length;t<r;t++){const r=n[t];Pe(g,e,r,r.viewport)}}else Pe(g,e,t);

null!==C&&(
// resolve multisample renderbuffers to a single-sample texture if necessary
J.updateMultisampleRenderTarget(C),
// Generate mipmap if we're using any kind of mipmap filtering
J.updateRenderTargetMipmap(C)),
!0===e.isScene&&e.onAfterRender(A,e,t),
// _gl.finish();
me.resetDefaultState(),_=-1,I=null,y.pop(),m=y.length>0?y[y.length-1]:null,v.pop(),g=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return w},this.getActiveMipmapLevel=function(){return x},this.getRenderTarget=function(){return C},this.setRenderTargetTextures=function(e,t,n){$.get(e.texture).__webglTexture=t,$.get(e.depthTexture).__webglTexture=n;const r=$.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||
// The multisample_render_to_texture extension doesn't work properly if there
// are midframe flushes and an external depth buffer. Disable use of the extension.
!0===V.has("WEBGL_multisampled_render_to_texture")&&(r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=$.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){C=e,w=t,x=n;let r=!0,i=null,a=!1,o=!1;if(e){const n=$.get(e);void 0!==n.__useDefaultFramebuffer?(
// We need to make sure to rebind the framebuffer.
q.bindFramebuffer(36160,null),r=!1):void 0===n.__webglFramebuffer?J.setupRenderTarget(e):n.__hasExternalTextures&&
// Color and depth texture must be rebound in order for the swapchain to update.
J.rebindTextures(e,$.get(e.texture).__webglTexture,$.get(e.depthTexture).__webglTexture);const s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(o=!0);const c=$.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=c[t],a=!0):i=W.isWebGL2&&e.samples>0&&!1===J.useMultisampledRTT(e)?$.get(e).__webglMultisampledFramebuffer:c,E.copy(e.viewport),k.copy(e.scissor),S=e.scissorTest}else E.copy(P).multiplyScalar(T).floor(),k.copy(L).multiplyScalar(T).floor(),S=Q;if(q.bindFramebuffer(36160,i)&&W.drawBuffers&&r&&q.drawBuffers(e,i),q.viewport(E),q.scissor(k),q.setScissorTest(S),a){const r=$.get(e.texture);ye.framebufferTexture2D(36160,36064,34069+t,r.__webglTexture,n)}else if(o){const r=$.get(e.texture),i=t||0;ye.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}_=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,o){if(!e||!e.isWebGLRenderTarget)return;let s=$.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(s=s[o]),s){q.bindFramebuffer(36160,s);try{const o=e.texture,s=o.format,c=o.type;if(s!==Ee&&ge.convert(s)!==ye.getParameter(35739))return;const l=c===we&&(V.has("EXT_color_buffer_half_float")||W.isWebGL2&&V.has("EXT_color_buffer_float"));if(!(c===pe||ge.convert(c)===ye.getParameter(35738)||c===be&&(W.isWebGL2||V.has("OES_texture_float")||V.has("WEBGL_color_buffer_float"))||l))return;
// the following if statement ensures valid read requests (no out-of-bounds pixels, see #8604)
t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ye.readPixels(t,n,r,i,ge.convert(s),ge.convert(c),a)}finally{
// restore framebuffer of current render target if necessary
const e=null!==C?$.get(C).__webglFramebuffer:null;q.bindFramebuffer(36160,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r);J.setTexture2D(t,0),ye.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,a),q.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const i=t.image.width,a=t.image.height,o=ge.convert(n.format),s=ge.convert(n.type);J.setTexture2D(n,0),
// As another texture upload may have changed pixelStorei
// parameters, make sure they are correct for the dstTexture
ye.pixelStorei(37440,n.flipY),ye.pixelStorei(37441,n.premultiplyAlpha),ye.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ye.texSubImage2D(3553,r,e.x,e.y,i,a,o,s,t.image.data):t.isCompressedTexture?ye.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,o,t.mipmaps[0].data):ye.texSubImage2D(3553,r,e.x,e.y,o,s,t.image),
// Generate mipmaps only when copying level 0
0===r&&n.generateMipmaps&&ye.generateMipmap(3553),q.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r,i=0){if(A.isWebGL1Renderer)return;const a=e.max.x-e.min.x+1,o=e.max.y-e.min.y+1,s=e.max.z-e.min.z+1,c=ge.convert(r.format),l=ge.convert(r.type);let u;if(r.isData3DTexture)J.setTexture3D(r,0),u=32879;else{if(!r.isDataArrayTexture)return;J.setTexture2DArray(r,0),u=35866}ye.pixelStorei(37440,r.flipY),ye.pixelStorei(37441,r.premultiplyAlpha),ye.pixelStorei(3317,r.unpackAlignment);const h=ye.getParameter(3314),f=ye.getParameter(32878),d=ye.getParameter(3316),p=ye.getParameter(3315),g=ye.getParameter(32877),m=n.isCompressedTexture?n.mipmaps[0]:n.image;ye.pixelStorei(3314,m.width),ye.pixelStorei(32878,m.height),ye.pixelStorei(3316,e.min.x),ye.pixelStorei(3315,e.min.y),ye.pixelStorei(32877,e.min.z),n.isDataTexture||n.isData3DTexture?ye.texSubImage3D(u,i,t.x,t.y,t.z,a,o,s,c,l,m.data):n.isCompressedArrayTexture?ye.compressedTexSubImage3D(u,i,t.x,t.y,t.z,a,o,s,c,m.data):ye.texSubImage3D(u,i,t.x,t.y,t.z,a,o,s,c,l,m),ye.pixelStorei(3314,h),ye.pixelStorei(32878,f),ye.pixelStorei(3316,d),ye.pixelStorei(3315,p),ye.pixelStorei(32877,g),
// Generate mipmaps only when copying level 0
0===i&&r.generateMipmaps&&ye.generateMipmap(u),q.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?J.setTextureCube(e,0):e.isData3DTexture?J.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?J.setTexture2DArray(e,0):J.setTexture2D(e,0),q.unbindTexture()},this.resetState=function(){w=0,x=0,C=null,q.reset(),me.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Object.defineProperties(bs.prototype,{
// @deprecated since r150
physicallyCorrectLights:{get:function(){return!this.useLegacyLights},set:function(e){this.useLegacyLights=!e}}});(class extends bs{}).prototype.isWebGL1Renderer=!0;class ws{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new zr(e),this.density=t}clone(){return new ws(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class xs{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new zr(e),this.near=t,this.far=n}clone(){return new xs(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}class Cs extends Cr{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t}
// @deprecated
get autoUpdate(){return this.matrixWorldAutoUpdate}set autoUpdate(e){this.matrixWorldAutoUpdate=e}}class _s{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Tt,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Nt()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Nt()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){
return void 0===e.arrayBuffers&&(e.arrayBuffers={}),
// generate UUID for array buffer if necessary
void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Nt()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const Is=new rn;class Es{constructor(e,t,n,r=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=r}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)Is.fromBufferAttribute(this,t),Is.applyMatrix4(e),this.setXYZ(t,Is.x,Is.y,Is.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Is.fromBufferAttribute(this,t),Is.applyNormalMatrix(e),this.setXYZ(t,Is.x,Is.y,Is.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Is.fromBufferAttribute(this,t),Is.transformDirection(e),this.setXYZ(t,Is.x,Is.y,Is.z);return this}setX(e,t){return this.normalized&&(t=qt(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=qt(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=qt(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=qt(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=Wt(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=Wt(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=Wt(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=Wt(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=qt(t,this.array),n=qt(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=qt(t,this.array),n=qt(n,this.array),r=qt(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=qt(t,this.array),n=qt(n,this.array),r=qt(r,this.array),i=qt(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this.data.array[e+3]=i,this}clone(e){if(void 0===e){const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new Wr(new this.array.constructor(e),this.itemSize,this.normalized)}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new Es(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(void 0===e){const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}
// de-interleave data and save it as an ordinary buffer attribute for now
return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,normalized:this.normalized}}
// save as true interleaved attribute
return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}class ks extends Qr{constructor(e){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new zr(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}let Ss;const Bs=new rn,Ms=new rn,Ts=new rn,Os=new Kt,Ds=new Kt,Ps=new Xn,Ls=new rn,Qs=new rn,Rs=new rn,js=new Kt,Ns=new Kt,Fs=new Kt;class zs extends Cr{constructor(e){if(super(),this.isSprite=!0,this.type="Sprite",void 0===Ss){Ss=new ri;const e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),t=new _s(e,5);Ss.setIndex([0,1,2,0,2,3]),Ss.setAttribute("position",new Es(t,3,0,!1)),Ss.setAttribute("uv",new Es(t,2,3,!1))}this.geometry=Ss,this.material=void 0!==e?e:new ks,this.center=new Kt(.5,.5)}raycast(e,t){e.camera,Ms.setFromMatrixScale(this.matrixWorld),Ps.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),Ts.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Ms.multiplyScalar(-Ts.z);const n=this.material.rotation;let r,i;0!==n&&(i=Math.cos(n),r=Math.sin(n));const a=this.center;Hs(Ls.set(-.5,-.5,0),Ts,a,Ms,r,i),Hs(Qs.set(.5,-.5,0),Ts,a,Ms,r,i),Hs(Rs.set(.5,.5,0),Ts,a,Ms,r,i),js.set(0,0),Ns.set(1,0),Fs.set(1,1);
// check first triangle
let o=e.ray.intersectTriangle(Ls,Qs,Rs,!1,Bs);if(null===o&&(
// check second triangle
Hs(Qs.set(-.5,.5,0),Ts,a,Ms,r,i),Ns.set(0,1),o=e.ray.intersectTriangle(Ls,Rs,Qs,!1,Bs),null===o))return;const s=e.ray.origin.distanceTo(Bs);s<e.near||s>e.far||t.push({distance:s,point:Bs.clone(),uv:Pr.getUV(Bs,Ls,Qs,Rs,js,Ns,Fs,new Kt),face:null,object:this})}copy(e,t){return super.copy(e,t),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}function Hs(e,t,n,r,i,a){
// compute position in camera space
Os.subVectors(e,n).addScalar(.5).multiply(r),
// to check if rotation is not zero
void 0!==i?(Ds.x=a*Os.x-i*Os.y,Ds.y=i*Os.x+a*Os.y):Ds.copy(Os),e.copy(t),e.x+=Ds.x,e.y+=Ds.y,
// transform to world space
e.applyMatrix4(Ps)}const Us=new rn,Gs=new rn;class Vs extends Cr{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let e=0,n=t.length;e<n;e++){const n=t[e];this.addLevel(n.object.clone(),n.distance,n.hysteresis)}return this.autoUpdate=e.autoUpdate,this}addLevel(e,t=0,n=0){t=Math.abs(t);const r=this.levels;let i;for(i=0;i<r.length&&!(t<r[i].distance);i++);return r.splice(i,0,{distance:t,hysteresis:n,object:e}),this.add(e),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(e){const t=this.levels;if(t.length>0){let n,r;for(n=1,r=t.length;n<r;n++){let r=t[n].distance;if(t[n].object.visible&&(r-=r*t[n].hysteresis),e<r)break}return t[n-1].object}return null}raycast(e,t){if(this.levels.length>0){Us.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(Us);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Us.setFromMatrixPosition(e.matrixWorld),Gs.setFromMatrixPosition(this.matrixWorld);const n=Us.distanceTo(Gs)/e.zoom;let r,i;for(t[0].object.visible=!0,r=1,i=t.length;r<i;r++){let e=t[r].distance;if(t[r].object.visible&&(e-=e*t[r].hysteresis),!(n>=e))break;t[r-1].object.visible=!1,t[r].object.visible=!0}for(this._currentLevel=r-1;r<i;r++)t[r].object.visible=!1}}toJSON(e){const t=super.toJSON(e);!1===this.autoUpdate&&(t.object.autoUpdate=!1),t.object.levels=[];const n=this.levels;for(let e=0,r=n.length;e<r;e++){const r=n[e];t.object.levels.push({object:r.object.uuid,distance:r.distance,hysteresis:r.hysteresis})}return t}}const Ws=new rn,qs=new wn,Ys=new wn,Ks=new rn,$s=new Xn;class Js extends yi{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Xn,this.bindMatrixInverse=new Xn}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}bind(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new wn,t=this.geometry.attributes.skinWeight;for(let n=0,r=t.count;n<r;n++){e.fromBufferAttribute(t,n);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode&&this.bindMatrixInverse.copy(this.bindMatrix).invert()}boneTransform(e,t){const n=this.skeleton,r=this.geometry;qs.fromBufferAttribute(r.attributes.skinIndex,e),Ys.fromBufferAttribute(r.attributes.skinWeight,e),Ws.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let e=0;e<4;e++){const r=Ys.getComponent(e);if(0!==r){const i=qs.getComponent(e);$s.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),t.addScaledVector(Ks.copy(Ws).applyMatrix4($s),r)}}return t.applyMatrix4(this.bindMatrixInverse)}}class Xs extends Cr{constructor(){super(),this.isBone=!0,this.type="Bone"}}class Zs extends bn{constructor(e=null,t=1,n=1,r,i,a,o,s,c=ce,l=ce,u,h){super(null,a,o,s,c,l,r,i,u,h),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const ec=new Xn,tc=new Xn;class nc{constructor(e=[],t=[]){this.uuid=Nt(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const e=this.bones,t=this.boneInverses;
// calculate inverse bone matrices if necessary
if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else
// handle special case
if(e.length!==t.length){this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new Xn)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const t=new Xn;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){
// recover the bind-time world matrices
for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}
// compute the local matrices, positions, rotations and scales
for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){const e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;
// flatten bone matrices to array
for(let r=0,i=e.length;r<i;r++){
// compute the offset between the current and the original transform
const i=e[r]?e[r].matrixWorld:tc;ec.multiplyMatrices(i,t[r]),ec.toArray(n,16*r)}null!==r&&(r.needsUpdate=!0)}clone(){return new nc(this.bones,this.boneInverses)}computeBoneTexture(){
// layout (1 matrix = 4 pixels)
//      RGBA RGBA RGBA RGBA (=> column1, column2, column3, column4)
//  with  8x8  pixel texture max   16 bones * 4 pixels =  (8 * 8)
//       16x16 pixel texture max   64 bones * 4 pixels = (16 * 16)
//       32x32 pixel texture max  256 bones * 4 pixels = (32 * 32)
//       64x64 pixel texture max 1024 bones * 4 pixels = (64 * 64)
let e=Math.sqrt(4*this.bones.length);// 4 pixels needed for 1 matrix
e=Gt(e),e=Math.max(e,4);const t=new Float32Array(e*e*4);// 4 floats per RGBA pixel
t.set(this.boneMatrices);// copy current values
const n=new Zs(t,e,e,Ee,be);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this.boneTextureSize=e,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){const n=this.bones[t];if(n.name===e)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let n=0,r=e.bones.length;n<r;n++){let r=t[e.bones[n]];void 0===r&&(r=new Xs),this.bones.push(r),this.boneInverses.push((new Xn).fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){const e={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,n=this.boneInverses;for(let r=0,i=t.length;r<i;r++){const i=t[r];e.bones.push(i.uuid);const a=n[r];e.boneInverses.push(a.toArray())}return e}}class rc extends Wr{constructor(e,t,n,r=1){super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const ic=new Xn,ac=new Xn,oc=[],sc=new Xn,cc=new yi;class lc extends yi{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new rc(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1;for(let e=0;e<n;e++)this.setMatrixAt(e,sc)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}raycast(e,t){const n=this.matrixWorld,r=this.count;if(cc.geometry=this.geometry,cc.material=this.material,void 0!==cc.material)for(let i=0;i<r;i++){
// calculate the world matrix for each instance
this.getMatrixAt(i,ic),ac.multiplyMatrices(n,ic),
// the mesh represents this single instance
cc.matrixWorld=ac,cc.raycast(e,oc);
// process the result of raycast
for(let e=0,n=oc.length;e<n;e++){const n=oc[e];n.instanceId=i,n.object=this,t.push(n)}oc.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new rc(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class uc extends Qr{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new zr(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const hc=new rn,fc=new rn,dc=new Xn,pc=new Jn,gc=new Un;class mc extends Cr{constructor(e=new ri,t=new uc){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;
// we assume non-indexed geometry
if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)hc.fromBufferAttribute(t,e-1),fc.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=hc.distanceTo(fc);e.setAttribute("lineDistance",new Kr(n,1))}return this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,a=n.drawRange;if(
// Checking boundingSphere distance to ray
null===n.boundingSphere&&n.computeBoundingSphere(),gc.copy(n.boundingSphere),gc.applyMatrix4(r),gc.radius+=i,!1===e.ray.intersectsSphere(gc))return;

dc.copy(r).invert(),pc.copy(e.ray).applyMatrix4(dc);const o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,c=new rn,l=new rn,u=new rn,h=new rn,f=this.isLineSegments?2:1,d=n.index,p=n.attributes.position;if(null!==d){for(let n=Math.max(0,a.start),r=Math.min(d.count,a.start+a.count)-1;n<r;n+=f){const r=d.getX(n),i=d.getX(n+1);c.fromBufferAttribute(p,r),l.fromBufferAttribute(p,i);if(pc.distanceSqToSegment(c,l,h,u)>s)continue;h.applyMatrix4(this.matrixWorld);//Move back to world space for distance calculation
const a=e.ray.origin.distanceTo(h);a<e.near||a>e.far||t.push({distance:a,
// What do we want? intersection point on the ray or on the segment??
// point: raycaster.ray.at( distance ),
point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,a.start),r=Math.min(p.count,a.start+a.count)-1;n<r;n+=f){c.fromBufferAttribute(p,n),l.fromBufferAttribute(p,n+1);if(pc.distanceSqToSegment(c,l,h,u)>s)continue;h.applyMatrix4(this.matrixWorld);//Move back to world space for distance calculation
const r=e.ray.origin.distanceTo(h);r<e.near||r>e.far||t.push({distance:r,
// What do we want? intersection point on the ray or on the segment??
// point: raycaster.ray.at( distance ),
point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}const vc=new rn,yc=new rn;class Ac extends mc{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;
// we assume non-indexed geometry
if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e<r;e+=2)vc.fromBufferAttribute(t,e),yc.fromBufferAttribute(t,e+1),n[e]=0===e?0:n[e-1],n[e+1]=n[e]+vc.distanceTo(yc);e.setAttribute("lineDistance",new Kr(n,1))}return this}}class bc extends mc{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class wc extends Qr{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new zr(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const xc=new Xn,Cc=new Jn,_c=new Un,Ic=new rn;class Ec extends Cr{constructor(e=new ri,t=new wc){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=e.material,this.geometry=e.geometry,this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,a=n.drawRange;if(
// Checking boundingSphere distance to ray
null===n.boundingSphere&&n.computeBoundingSphere(),_c.copy(n.boundingSphere),_c.applyMatrix4(r),_c.radius+=i,!1===e.ray.intersectsSphere(_c))return;

xc.copy(r).invert(),Cc.copy(e.ray).applyMatrix4(xc);const o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,c=n.index,l=n.attributes.position;if(null!==c){for(let n=Math.max(0,a.start),i=Math.min(c.count,a.start+a.count);n<i;n++){const i=c.getX(n);Ic.fromBufferAttribute(l,i),kc(Ic,i,s,r,e,t,this)}}else{for(let n=Math.max(0,a.start),i=Math.min(l.count,a.start+a.count);n<i;n++)Ic.fromBufferAttribute(l,n),kc(Ic,n,s,r,e,t,this)}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function kc(e,t,n,r,i,a,o){const s=Cc.distanceSqToPoint(e);if(s<n){const n=new rn;Cc.closestPointToPoint(e,n),n.applyMatrix4(r);const c=i.ray.origin.distanceTo(n);if(c<i.near||c>i.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,object:o})}}class Sc extends bn{constructor(e,t,n,r,i,a,o,s,c,l,u,h){super(null,a,o,s,c,l,r,i,u,h),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,
// no flipping for cube textures
// (also flipping doesn't work for compressed textures )
this.flipY=!1,
// can't generate mipmaps for compressed textures
// mips must be embedded in DDS files
this.generateMipmaps=!1}}
/**
 * Extensible curve object.
 *
 * Some common of curve methods:
 * .getPoint( t, optionalTarget ), .getTangent( t, optionalTarget )
 * .getPointAt( u, optionalTarget ), .getTangentAt( u, optionalTarget )
 * .getPoints(), .getSpacedPoints()
 * .getLength()
 * .updateArcLengths()
 *
 * This following curves inherit from THREE.Curve:
 *
 * -- 2D curves --
 * THREE.ArcCurve
 * THREE.CubicBezierCurve
 * THREE.EllipseCurve
 * THREE.LineCurve
 * THREE.QuadraticBezierCurve
 * THREE.SplineCurve
 *
 * -- 3D curves --
 * THREE.CatmullRomCurve3
 * THREE.CubicBezierCurve3
 * THREE.LineCurve3
 * THREE.QuadraticBezierCurve3
 *
 * A series of curves can be represented as a THREE.CurvePath.
 *
 **/
class Bc{constructor(){this.type="Curve",this.arcLengthDivisions=200}
// Virtual base class method to overwrite and implement in subclasses
//	- t [0 .. 1]
getPoint(){return null}
// Get point at relative position in curve according to arc length
// - u [0 .. 1]
getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}
// Get sequence of points using getPoint( t )
getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}
// Get sequence of points using getPointAt( u )
getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}
// Get total curve arc length
getLength(){const e=this.getLengths();return e[e.length-1]}
// Get list of cumulative segment lengths
getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let a=1;a<=e;a++)n=this.getPoint(a/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t;// { sums: cache, sum: sum }; Sum is in the last element.
}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}
// Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant
getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let a;// The targeted u distance value to get
a=t||e*n[i-1];
// binary search for the index with largest value smaller than target u distance
let o,s=0,c=i-1;for(;s<=c;)if(r=Math.floor(s+(c-s)/2),// less likely to overflow, though probably not issue here, JS doesn't really have integers, all numbers are floats
o=n[r]-a,o<0)s=r+1;else{if(!(o>0)){c=r;break;
// DONE
}c=r-1}if(r=c,n[r]===a)return r/(i-1);
// we could get finer grain at lengths, or use simple interpolation between two points
const l=n[r];return(r+(a-l)/(n[r+1]-l))/(i-1)}
// Returns a unit vector tangent at t
// In case any sub curve does not implement its tangent derivation,
// 2 points a small delta apart will be used to find its gradient
// which seems to give a reasonable approximation
getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;
// Capping in case of danger
r<0&&(r=0),i>1&&(i=1);const a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new Kt:new rn);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){
// see http://www.cs.indiana.edu/pub/techreports/TR425.pdf
const n=new rn,r=[],i=[],a=[],o=new rn,s=new Xn;
// compute the tangent vectors for each segment on the curve
for(let t=0;t<=e;t++){const n=t/e;r[t]=this.getTangentAt(n,new rn)}
// select an initial normal vector perpendicular to the first tangent vector,
// and in the direction of the minimum tangent xyz component
i[0]=new rn,a[0]=new rn;let c=Number.MAX_VALUE;const l=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),h<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);
// compute the slowly-varying normal and binormal vectors for each segment on the curve
for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>Number.EPSILON){o.normalize();const e=Math.acos(Ft(r[t-1].dot(r[t]),-1,1));// clamp for floating pt errors
i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}
// if the curve is closed, postprocess the vectors so the first and last normal vectors are the same
if(!0===t){let t=Math.acos(Ft(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)
// twist a little...
i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Mc extends Bc{constructor(e=0,t=0,n=1,r=1,i=0,a=2*Math.PI,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t){const n=t||new Kt,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const a=Math.abs(i)<Number.EPSILON;
// ensures that deltaAngle is 0 .. 2 PI
for(;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=a?0:r),!0!==this.aClockwise||a||(i===r?i=-r:i-=r);const o=this.aStartAngle+e*i;let s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;
// Rotate the point about the center of the ellipse.
s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}
/**
 * Centripetal CatmullRom Curve - which is useful for avoiding
 * cusps and self-intersections in non-uniform catmull rom curves.
 * http://www.cemyuksel.com/research/catmullrom_param/catmullrom.pdf
 *
 * curve.type accepts centripetal(default), chordal and catmullrom
 * curve.tension is used for catmullrom which defaults to 0.5
 */
/*
Based on an optimized c++ solution in
 - http://stackoverflow.com/questions/9489736/catmull-rom-curve-with-no-cusps-and-no-self-intersections/
 - http://ideone.com/NoEbVM

This CubicPoly class could be used for reusing some variables and calculations,
but for three.js curve use, it could be possible inlined and flatten into a single function call
which can be placed in CurveUtils.
*/
function Tc(){let e=0,t=0,n=0,r=0;
/*
	 * Compute coefficients for a cubic polynomial
	 *   p(s) = c0 + c1*s + c2*s^2 + c3*s^3
	 * such that
	 *   p(0) = x0, p(1) = x1
	 *  and
	 *   p'(0) = t0, p'(1) = t1.
	 */function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){
// compute tangents when parameterized in [t1,t2]
let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;
// rescale tangents for parametrization in [0,1]
c*=o,l*=o,i(t,n,c,l)},calc:function(i){const a=i*i;return e+t*i+n*a+r*(a*i)}}}

const Oc=new rn,Dc=new Tc,Pc=new Tc,Lc=new Tc;
/**
 * Bezier Curves formulas obtained from
 * https://en.wikipedia.org/wiki/B%C3%A9zier_curve
 */
function Qc(e,t,n,r,i){const a=.5*(r-t),o=.5*(i-n),s=e*e;return(2*n-2*r+a+o)*(e*s)+(-3*n+3*r-2*a-o)*s+a*e+n}

function Rc(e,t,n,r){return function(e,t){const n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,r)}

function jc(e,t,n,r,i){return function(e,t){const n=1-e;return n*n*n*t}(e,t)+function(e,t){const n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,r)+function(e,t){return e*e*e*t}(e,i)}class Nc extends Bc{constructor(e=new Kt,t=new Kt,n=new Kt,r=new Kt){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new Kt){const n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(jc(e,r.x,i.x,a.x,o.x),jc(e,r.y,i.y,a.y,o.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class Fc extends Bc{constructor(e=new Kt,t=new Kt){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new Kt){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}
// Line curve is linear, so we can overwrite default getPointAt
getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new Kt){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class zc extends Bc{constructor(e=new Kt,t=new Kt,n=new Kt){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new Kt){const n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Rc(e,r.x,i.x,a.x),Rc(e,r.y,i.y,a.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Hc extends Bc{constructor(e=new rn,t=new rn,n=new rn){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new rn){const n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Rc(e,r.x,i.x,a.x),Rc(e,r.y,i.y,a.y),Rc(e,r.z,i.z,a.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Uc extends Bc{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new Kt){const n=t,r=this.points,i=(r.length-1)*e,a=Math.floor(i),o=i-a,s=r[0===a?a:a-1],c=r[a],l=r[a>r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(Qc(o,s.x,c.x,l.x,u.x),Qc(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Kt).fromArray(n))}return this}}var Gc=Object.freeze({__proto__:null,ArcCurve:class extends Mc{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type="ArcCurve"}},CatmullRomCurve3:class extends Bc{constructor(e=[],t=!1,n="centripetal",r=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new rn){const n=t,r=this.points,i=r.length,a=(i-(this.closed?0:1))*e;let o,s,c=Math.floor(a),l=a-c;this.closed?c+=c>0?0:(Math.floor(Math.abs(c)/i)+1)*i:0===l&&c===i-1&&(c=i-2,l=1),// 4 points (p1 & p2 defined below)
this.closed||c>0?o=r[(c-1)%i]:(
// extrapolate first point
Oc.subVectors(r[0],r[1]).add(r[0]),o=Oc);const u=r[c%i],h=r[(c+1)%i];if(this.closed||c+2<i?s=r[(c+2)%i]:(
// extrapolate last point
Oc.subVectors(r[i-1],r[i-2]).add(r[i-1]),s=Oc),"centripetal"===this.curveType||"chordal"===this.curveType){
// init Centripetal / Chordal Catmull-Rom
const e="chordal"===this.curveType?.5:.25;let t=Math.pow(o.distanceToSquared(u),e),n=Math.pow(u.distanceToSquared(h),e),r=Math.pow(h.distanceToSquared(s),e);
// safety check for repeated points
n<1e-4&&(n=1),t<1e-4&&(t=n),r<1e-4&&(r=n),Dc.initNonuniformCatmullRom(o.x,u.x,h.x,s.x,t,n,r),Pc.initNonuniformCatmullRom(o.y,u.y,h.y,s.y,t,n,r),Lc.initNonuniformCatmullRom(o.z,u.z,h.z,s.z,t,n,r)}else"catmullrom"===this.curveType&&(Dc.initCatmullRom(o.x,u.x,h.x,s.x,this.tension),Pc.initCatmullRom(o.y,u.y,h.y,s.y,this.tension),Lc.initCatmullRom(o.z,u.z,h.z,s.z,this.tension));return n.set(Dc.calc(l),Pc.calc(l),Lc.calc(l)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new rn).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}},CubicBezierCurve:Nc,CubicBezierCurve3:class extends Bc{constructor(e=new rn,t=new rn,n=new rn,r=new rn){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new rn){const n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(jc(e,r.x,i.x,a.x,o.x),jc(e,r.y,i.y,a.y,o.y),jc(e,r.z,i.z,a.z,o.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}},EllipseCurve:Mc,LineCurve:Fc,LineCurve3:class extends Bc{constructor(e=new rn,t=new rn){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new rn){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}
// Line curve is linear, so we can overwrite default getPointAt
getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new rn){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},QuadraticBezierCurve:zc,QuadraticBezierCurve3:Hc,SplineCurve:Uc});
/**************************************************************
 *	Curved Path - a curve path is simply a array of connected
 *  curves, but retains the api of a curve
 **************************************************************/class Vc extends Bc{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){
// Add a line curve if start and end of lines are not connected
const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new Fc(t,e))}
// To get accurate point with reference to
// entire path distance at time t,
// following has to be done:
// 1. Length of each sub path have to be known
// 2. Locate and identify type of curve
// 3. Get t for the curve
// 4. Return curve.getPointAt(t')
getPoint(e,t){const n=e*this.getLength(),r=this.getCurveLengths();let i=0;
// To think about boundaries points.
for(;i<r.length;){if(r[i]>=n){const e=r[i]-n,a=this.curves[i],o=a.getLength(),s=0===o?0:1-e/o;return a.getPointAt(s,t)}i++}return null;
// loop where sum != 0, sum > d , sum+1 <d
}
// We cannot use the default THREE.Curve getPoint() with getLength() because in
// THREE.Curve, getLength() depends on getPoint() but in THREE.CurvePath
// getPoint() depends on getLength
getLength(){const e=this.getCurveLengths();return e[e.length-1]}
// cacheLengths must be recalculated.
updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}
// Compute lengths and cache them
// We cannot overwrite getLengths() because UtoT mapping uses it.
getCurveLengths(){
// We use cache values if curves and cache array are same length
if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;
// Get length of sub-curve
// Push sums into cached array
const e=[];let t=0;for(let n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let n;for(let r=0,i=this.curves;r<i.length;r++){const a=i[r],o=a.isEllipseCurve?2*e:a.isLineCurve||a.isLineCurve3?1:a.isSplineCurve?e*a.points.length:e,s=a.getPoints(o);for(let e=0;e<s.length;e++){const r=s[e];n&&n.equals(r)||(// ensures no consecutive points are duplicates
t.push(r),n=r)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new Gc[n.type]).fromJSON(n))}return this}}class Wc extends Vc{constructor(e){super(),this.type="Path",this.currentPoint=new Kt,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){// TODO consider referencing vectors instead of copying?
return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new Fc(this.currentPoint.clone(),new Kt(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,r){const i=new zc(this.currentPoint.clone(),new Kt(e,t),new Kt(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(e,t,n,r,i,a){const o=new Nc(this.currentPoint.clone(),new Kt(e,t),new Kt(n,r),new Kt(i,a));return this.curves.push(o),this.currentPoint.set(i,a),this}splineThru(e/*Array of Vector*/){const t=[this.currentPoint.clone()].concat(e),n=new Uc(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,r,i,a){const o=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+o,t+s,n,r,i,a),this}absarc(e,t,n,r,i,a){return this.absellipse(e,t,n,n,r,i,a),this}ellipse(e,t,n,r,i,a,o,s){const c=this.currentPoint.x,l=this.currentPoint.y;return this.absellipse(e+c,t+l,n,r,i,a,o,s),this}absellipse(e,t,n,r,i,a,o,s){const c=new Mc(e,t,n,r,i,a,o,s);if(this.curves.length>0){
// if a previous curve is present, attempt to join
const e=c.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(c);const l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class qc extends ri{constructor(e=[new Kt(0,-.5),new Kt(.5,0),new Kt(0,.5)],t=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),
// clamp phiLength so it's in range of [ 0, 2PI ]
r=Ft(r,0,2*Math.PI);
// buffers
const i=[],a=[],o=[],s=[],c=[],l=1/t,u=new rn,h=new Kt,f=new rn,d=new rn,p=new rn;let g=0,m=0;
// pre-compute normals for initial "meridian"
for(let t=0;t<=e.length-1;t++)switch(t){case 0:// special handling for 1st vertex on path
g=e[t+1].x-e[t].x,m=e[t+1].y-e[t].y,f.x=1*m,f.y=-g,f.z=0*m,p.copy(f),f.normalize(),s.push(f.x,f.y,f.z);break;case e.length-1:// special handling for last Vertex on path
s.push(p.x,p.y,p.z);break;default:// default handling for all vertices in between
g=e[t+1].x-e[t].x,m=e[t+1].y-e[t].y,f.x=1*m,f.y=-g,f.z=0*m,d.copy(f),f.x+=p.x,f.y+=p.y,f.z+=p.z,f.normalize(),s.push(f.x,f.y,f.z),p.copy(d)}
// generate vertices, uvs and normals
for(let i=0;i<=t;i++){const f=n+i*l*r,d=Math.sin(f),p=Math.cos(f);for(let n=0;n<=e.length-1;n++){
// vertex
u.x=e[n].x*d,u.y=e[n].y,u.z=e[n].x*p,a.push(u.x,u.y,u.z),
// uv
h.x=i/t,h.y=n/(e.length-1),o.push(h.x,h.y);
// normal
const r=s[3*n+0]*d,l=s[3*n+1],f=s[3*n+0]*p;c.push(r,l,f)}}
// indices
for(let n=0;n<t;n++)for(let t=0;t<e.length-1;t++){const r=t+n*e.length,a=r,o=r+e.length,s=r+e.length+1,c=r+1;
// faces
i.push(a,o,c),i.push(s,c,o)}
// build geometry
this.setIndex(i),this.setAttribute("position",new Kr(a,3)),this.setAttribute("uv",new Kr(o,2)),this.setAttribute("normal",new Kr(c,3))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new qc(e.points,e.segments,e.phiStart,e.phiLength)}}class Yc extends qc{constructor(e=1,t=1,n=4,r=8){const i=new Wc;i.absarc(0,-t/2,e,1.5*Math.PI,0),i.absarc(0,t/2,e,0,.5*Math.PI),super(i.getPoints(n),r),this.type="CapsuleGeometry",this.parameters={radius:e,height:t,capSegments:n,radialSegments:r}}static fromJSON(e){return new Yc(e.radius,e.length,e.capSegments,e.radialSegments)}}class Kc extends ri{constructor(e=1,t=32,n=0,r=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:r},t=Math.max(3,t);
// buffers
const i=[],a=[],o=[],s=[],c=new rn,l=new Kt;
// center point
a.push(0,0,0),o.push(0,0,1),s.push(.5,.5);for(let i=0,u=3;i<=t;i++,u+=3){const h=n+i/t*r;
// vertex
c.x=e*Math.cos(h),c.y=e*Math.sin(h),a.push(c.x,c.y,c.z),
// normal
o.push(0,0,1),
// uvs
l.x=(a[u]/e+1)/2,l.y=(a[u+1]/e+1)/2,s.push(l.x,l.y)}
// indices
for(let e=1;e<=t;e++)i.push(e,e+1,0);
// build geometry
this.setIndex(i),this.setAttribute("position",new Kr(a,3)),this.setAttribute("normal",new Kr(o,3)),this.setAttribute("uv",new Kr(s,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Kc(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class $c extends ri{constructor(e=1,t=1,n=1,r=32,i=1,a=!1,o=0,s=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:i,openEnded:a,thetaStart:o,thetaLength:s};const c=this;r=Math.floor(r),i=Math.floor(i);
// buffers
const l=[],u=[],h=[],f=[];
// helper variables
let d=0;const p=[],g=n/2;let m=0;
// generate geometry
function v(n){
// save the index of the first center vertex
const i=d,a=new Kt,p=new rn;let v=0;const y=!0===n?e:t,A=!0===n?1:-1;
// first we generate the center vertex data of the cap.
// because the geometry needs one set of uvs per face,
// we must generate a center vertex per face/segment
for(let e=1;e<=r;e++)
// vertex
u.push(0,g*A,0),
// normal
h.push(0,A,0),
// uv
f.push(.5,.5),
// increase index
d++;
// save the index of the last center vertex
const b=d;
// now we generate the surrounding vertices, normals and uvs
for(let e=0;e<=r;e++){const t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);
// vertex
p.x=y*i,p.y=g*A,p.z=y*n,u.push(p.x,p.y,p.z),
// normal
h.push(0,A,0),
// uv
a.x=.5*n+.5,a.y=.5*i*A+.5,f.push(a.x,a.y),
// increase index
d++}
// generate indices
for(let e=0;e<r;e++){const t=i+e,r=b+e;!0===n?
// face top
l.push(r,r+1,t):
// face bottom
l.push(r+1,r,t),v+=3}
// add a group to the geometry. this will ensure multi material support
c.addGroup(m,v,!0===n?1:2),
// calculate new start value for groups
m+=v}!function(){const a=new rn,v=new rn;let y=0;
// this will be used to calculate the normal
const A=(t-e)/n;
// generate vertices, normals and uvs
for(let c=0;c<=i;c++){const l=[],m=c/i,y=m*(t-e)+e;for(let e=0;e<=r;e++){const t=e/r,i=t*s+o,c=Math.sin(i),p=Math.cos(i);
// vertex
v.x=y*c,v.y=-m*n+g,v.z=y*p,u.push(v.x,v.y,v.z),
// normal
a.set(c,A,p).normalize(),h.push(a.x,a.y,a.z),
// uv
f.push(t,1-m),
// save index of vertex in respective row
l.push(d++)}
// now save vertices of the row in our index array
p.push(l)}
// generate indices
for(let e=0;e<r;e++)for(let t=0;t<i;t++){
// we use the index array to access the correct indices
const n=p[t][e],r=p[t+1][e],i=p[t+1][e+1],a=p[t][e+1];
// faces
l.push(n,r,a),l.push(r,i,a),
// update group counter
y+=6}
// add a group to the geometry. this will ensure multi material support
c.addGroup(m,y,0),
// calculate new start value for groups
m+=y}(),!1===a&&(e>0&&v(!0),t>0&&v(!1)),
// build geometry
this.setIndex(l),this.setAttribute("position",new Kr(u,3)),this.setAttribute("normal",new Kr(h,3)),this.setAttribute("uv",new Kr(f,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new $c(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class Jc extends $c{constructor(e=1,t=1,n=32,r=1,i=!1,a=0,o=2*Math.PI){super(0,e,t,n,r,i,a,o),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:a,thetaLength:o}}static fromJSON(e){return new Jc(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class Xc extends ri{constructor(e=[],t=[],n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};
// default buffer data
const i=[],a=[];function o(e,t,n,r){const i=r+1,a=[];
// we use this multidimensional array as a data structure for creating the subdivision
// construct all of the vertices for this subdivision
for(let r=0;r<=i;r++){a[r]=[];const o=e.clone().lerp(n,r/i),s=t.clone().lerp(n,r/i),c=i-r;for(let e=0;e<=c;e++)a[r][e]=0===e&&r===i?o:o.clone().lerp(s,e/c)}
// construct all of the faces
for(let e=0;e<i;e++)for(let t=0;t<2*(i-e)-1;t++){const n=Math.floor(t/2);t%2==0?(s(a[e][n+1]),s(a[e+1][n]),s(a[e][n])):(s(a[e][n+1]),s(a[e+1][n+1]),s(a[e+1][n]))}}function s(e){i.push(e.x,e.y,e.z)}function c(t,n){const r=3*t;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function l(e,t,n,r){r<0&&1===e.x&&(a[t]=e.x-1),0===n.x&&0===n.z&&(a[t]=r/2/Math.PI+.5)}
// Angle around the Y axis, counter-clockwise when looking from above.
function u(e){return Math.atan2(e.z,-e.x)}
// Angle above the XZ plane.
// the subdivision creates the vertex buffer data
!
// helper functions
function(e){const n=new rn,r=new rn,i=new rn;
// iterate over all faces and apply a subdivision with the given detail value
for(let a=0;a<t.length;a+=3)
// get the vertices of the face
c(t[a+0],n),c(t[a+1],r),c(t[a+2],i),
// perform subdivision
o(n,r,i,e)}(r),
// all vertices should lie on a conceptual sphere with a given radius
function(e){const t=new rn;
// iterate over the entire buffer and apply the radius to each vertex
for(let n=0;n<i.length;n+=3)t.x=i[n+0],t.y=i[n+1],t.z=i[n+2],t.normalize().multiplyScalar(e),i[n+0]=t.x,i[n+1]=t.y,i[n+2]=t.z}(n),
// finally, create the uv data
function(){const e=new rn;for(let n=0;n<i.length;n+=3){e.x=i[n+0],e.y=i[n+1],e.z=i[n+2];const r=u(e)/2/Math.PI+.5,o=(t=e,Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))/Math.PI+.5);a.push(r,1-o)}var t;(function(){const e=new rn,t=new rn,n=new rn,r=new rn,o=new Kt,s=new Kt,c=new Kt;for(let h=0,f=0;h<i.length;h+=9,f+=6){e.set(i[h+0],i[h+1],i[h+2]),t.set(i[h+3],i[h+4],i[h+5]),n.set(i[h+6],i[h+7],i[h+8]),o.set(a[f+0],a[f+1]),s.set(a[f+2],a[f+3]),c.set(a[f+4],a[f+5]),r.copy(e).add(t).add(n).divideScalar(3);const d=u(r);l(o,f+0,e,d),l(s,f+2,t,d),l(c,f+4,n,d)}})(),function(){
// handle case when face straddles the seam, see #3269
for(let e=0;e<a.length;e+=6){
// uv data of a single face
const t=a[e+0],n=a[e+2],r=a[e+4],i=Math.max(t,n,r),o=Math.min(t,n,r);
// 0.9 is somewhat arbitrary
i>.9&&o<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}()}(),
// build non-indexed geometry
this.setAttribute("position",new Kr(i,3)),this.setAttribute("normal",new Kr(i.slice(),3)),this.setAttribute("uv",new Kr(a,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Xc(e.vertices,e.indices,e.radius,e.details)}}class Zc extends Xc{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2,r=1/n;super([
// (±1, ±1, ±1)
-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,
// (0, ±1/φ, ±φ)
0,-r,-n,0,-r,n,0,r,-n,0,r,n,
// (±1/φ, ±φ, 0)
-r,-n,0,-r,n,0,r,-n,0,r,n,0,
// (±φ, 0, ±1/φ)
-n,0,-r,n,0,-r,-n,0,r,n,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Zc(e.radius,e.detail)}}const el=new rn,tl=new rn,nl=new rn,rl=new Pr;class il extends Wc{constructor(e){super(e),this.uuid=Nt(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t}
// get points of shape and holes (keypoints based on segments parameter)
extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){const n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push((new Wc).fromJSON(n))}return this}}
/**
 * Port from https://github.com/mapbox/earcut (v2.2.4)
 */const al=function(e,t,n=2){const r=t&&t.length,i=r?t[0]*n:e.length;let a=ol(e,0,i,n,!0);const o=[];if(!a||a.next===a.prev)return o;let s,c,l,u,h,f,d;
// if the shape is not too simple, we'll use z-order curve hash later; calculate polygon bbox
if(r&&(a=
// link every hole into the outer loop, producing a single-ring polygon without holes
function(e,t,n,r){const i=[];let a,o,s,c,l;for(a=0,o=t.length;a<o;a++)s=t[a]*r,c=a<o-1?t[a+1]*r:e.length,l=ol(e,s,c,r,!1),l===l.next&&(l.steiner=!0),i.push(vl(l));
// process holes from left to right
for(i.sort(dl),a=0;a<i.length;a++)n=pl(i[a],n);return n}(e,t,a,n)),e.length>80*n){s=l=e[0],c=u=e[1];for(let t=n;t<i;t+=n)h=e[t],f=e[t+1],h<s&&(s=h),f<c&&(c=f),h>l&&(l=h),f>u&&(u=f);
// minX, minY and invSize are later used to transform coords into integers for z-order calculation
d=Math.max(l-s,u-c),d=0!==d?32767/d:0}return cl(a,o,n,s,c,d,0),o};
// create a circular doubly linked list from polygon points in the specified winding order
function ol(e,t,n,r,i){let a,o;if(i===function(e,t,n,r){let i=0;for(let a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}(e,t,n,r)>0)for(a=t;a<n;a+=r)o=kl(a,e[a],e[a+1],o);else for(a=n-r;a>=t;a-=r)o=kl(a,e[a],e[a+1],o);return o&&wl(o,o.next)&&(Sl(o),o=o.next),o}
// eliminate colinear or duplicate points
function sl(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!wl(r,r.next)&&0!==bl(r.prev,r,r.next))r=r.next;else{if(Sl(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}
// main ear slicing loop which triangulates a polygon (given as a linked list)
function cl(e,t,n,r,i,a,o){if(!e)return;
// interlink polygon nodes in z-order
!o&&a&&
// interlink polygon nodes in z-order
function(e,t,n,r){let i=e;do{0===i.z&&(i.z=ml(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,
// Simon Tatham's linked list merge sort algorithm
// http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html
function(e){let t,n,r,i,a,o,s,c,l=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,r=n,s=0,t=0;t<l&&(s++,r=r.nextZ,r);t++);for(c=l;s>0||c>0&&r;)0!==s&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,l*=2}while(o>1)}
// z-order of a point given coords and inverse of the longer side of data bbox
(i)}(e,r,i,a);let s,c,l=e;
// iterate through ears, slicing them one by one
for(;e.prev!==e.next;)if(s=e.prev,c=e.next,a?ul(e,r,i,a):ll(e))
// cut off the triangle
t.push(s.i/n|0),t.push(e.i/n|0),t.push(c.i/n|0),Sl(e),
// skipping the next vertex leads to less sliver triangles
e=c.next,l=c.next;else
// if we looped through the whole remaining polygon and can't find any more ears
if((e=c)===l){
// try filtering points and slicing again
o?1===o?cl(e=hl(sl(e),t,n),t,n,r,i,a,2):2===o&&fl(e,t,n,r,i,a):cl(sl(e),t,n,r,i,a,1);break}}
// check whether a polygon node forms a valid ear with adjacent nodes
function ll(e){const t=e.prev,n=e,r=e.next;if(bl(t,n,r)>=0)return!1;// reflex, can't be an ear
// now make sure we don't have other points inside the potential ear
const i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=i<a?i<o?i:o:a<o?a:o,h=s<c?s<l?s:l:c<l?c:l,f=i>a?i>o?i:o:a>o?a:o,d=s>c?s>l?s:l:c>l?c:l;
// triangle bbox; min & max are calculated like this for speed
let p=r.next;for(;p!==t;){if(p.x>=u&&p.x<=f&&p.y>=h&&p.y<=d&&yl(i,s,a,c,o,l,p.x,p.y)&&bl(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function ul(e,t,n,r){const i=e.prev,a=e,o=e.next;if(bl(i,a,o)>=0)return!1;// reflex, can't be an ear
const s=i.x,c=a.x,l=o.x,u=i.y,h=a.y,f=o.y,d=s<c?s<l?s:l:c<l?c:l,p=u<h?u<f?u:f:h<f?h:f,g=s>c?s>l?s:l:c>l?c:l,m=u>h?u>f?u:f:h>f?h:f,v=ml(d,p,t,n,r),y=ml(g,m,t,n,r);
// triangle bbox; min & max are calculated like this for speed
let A=e.prevZ,b=e.nextZ;
// look for points inside the triangle in both directions
for(;A&&A.z>=v&&b&&b.z<=y;){if(A.x>=d&&A.x<=g&&A.y>=p&&A.y<=m&&A!==i&&A!==o&&yl(s,u,c,h,l,f,A.x,A.y)&&bl(A.prev,A,A.next)>=0)return!1;if(A=A.prevZ,b.x>=d&&b.x<=g&&b.y>=p&&b.y<=m&&b!==i&&b!==o&&yl(s,u,c,h,l,f,b.x,b.y)&&bl(b.prev,b,b.next)>=0)return!1;b=b.nextZ}
// look for remaining points in decreasing z-order
for(;A&&A.z>=v;){if(A.x>=d&&A.x<=g&&A.y>=p&&A.y<=m&&A!==i&&A!==o&&yl(s,u,c,h,l,f,A.x,A.y)&&bl(A.prev,A,A.next)>=0)return!1;A=A.prevZ}
// look for remaining points in increasing z-order
for(;b&&b.z<=y;){if(b.x>=d&&b.x<=g&&b.y>=p&&b.y<=m&&b!==i&&b!==o&&yl(s,u,c,h,l,f,b.x,b.y)&&bl(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}
// go through all polygon nodes and cure small local self-intersections
function hl(e,t,n){let r=e;do{const i=r.prev,a=r.next.next;!wl(i,a)&&xl(i,r,r.next,a)&&Il(i,a)&&Il(a,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),
// remove two nodes involved
Sl(r),Sl(r.next),r=e=a),r=r.next}while(r!==e);return sl(r)}
// try splitting polygon into two and triangulate them independently
function fl(e,t,n,r,i,a){
// look for a valid diagonal that divides the polygon into two
let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&Al(o,e)){
// split the polygon in two by the diagonal
let s=El(o,e);
// filter colinear points around the cuts
return o=sl(o,o.next),s=sl(s,s.next),
// run earcut on each half
cl(o,t,n,r,i,a,0),void cl(s,t,n,r,i,a,0)}e=e.next}o=o.next}while(o!==e)}function dl(e,t){return e.x-t.x}
// find a bridge between vertices that connects hole with an outer ring and link it
function pl(e,t){const n=
// David Eberly's algorithm for finding a bridge between hole and outer polygon
function(e,t){let n,r=t,i=-1/0;const a=e.x,o=e.y;
// find a segment intersected by a ray from the hole's leftmost point to the left;
// segment's endpoint with lesser x will be potential connection point
do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){const e=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=a&&e>i&&(i=e,n=r.x<r.next.x?r:r.next,e===a))return n;// hole touches outer segment; pick leftmost endpoint
}r=r.next}while(r!==t);if(!n)return null;
// look for points inside the triangle of hole point, segment intersection and endpoint;
// if there are no points found, we have a valid connection;
// otherwise choose the point of the minimum angle with the ray as connection point
const s=n,c=n.x,l=n.y;let u,h=1/0;r=n;do{a>=r.x&&r.x>=c&&a!==r.x&&yl(o<l?a:i,o,c,l,o<l?i:a,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(a-r.x),// tangential
Il(r,e)&&(u<h||u===h&&(r.x>n.x||r.x===n.x&&gl(n,r)))&&(n=r,h=u)),r=r.next}while(r!==s);return n}
// whether sector in vertex m contains sector in vertex p in the same coordinates
(e,t);if(!n)return t;const r=El(n,e);
// filter collinear points around the cuts
return sl(r,r.next),sl(n,n.next)}function gl(e,t){return bl(e.prev,e,t.prev)<0&&bl(t.next,e,e.next)<0}function ml(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((
// coords are transformed into non-negative 15-bit integer range
e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}
// find the leftmost node of a polygon ring
function vl(e){let t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}
// check if a point lies within a convex triangle
function yl(e,t,n,r,i,a,o,s){return(i-o)*(t-s)>=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}
// check if a diagonal between two polygon nodes is valid (lies in polygon interior)
function Al(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!
// check if a polygon diagonal intersects any polygon segments
function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&xl(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}
// check if a polygon diagonal is locally inside the polygon
(e,t)&&(// dones't intersect other edges
Il(e,t)&&Il(t,e)&&
// check if the middle point of a polygon diagonal is inside the polygon
function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}
// link two polygon vertices with a bridge; if the vertices belong to the same ring, it splits polygon into two;
// if one belongs to the outer ring and another to a hole, it merges it into a single ring
(e,t)&&(// locally visible
bl(e.prev,e,t.prev)||bl(e,t.prev,t))||// does not create opposite-facing sectors
wl(e,t)&&bl(e.prev,e,e.next)>0&&bl(t.prev,t,t.next)>0);// special zero-length case
}
// signed area of a triangle
function bl(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}
// check if two points are equal
function wl(e,t){return e.x===t.x&&e.y===t.y}
// check if two segments intersect
function xl(e,t,n,r){const i=_l(bl(e,t,n)),a=_l(bl(e,t,r)),o=_l(bl(n,r,e)),s=_l(bl(n,r,t));return i!==a&&o!==s||(// general case
!(0!==i||!Cl(e,n,t))||(// p1, q1 and p2 are collinear and p2 lies on p1q1
!(0!==a||!Cl(e,r,t))||(// p1, q1 and q2 are collinear and q2 lies on p1q1
!(0!==o||!Cl(n,e,r))||!(0!==s||!Cl(n,t,r)))))}
// for collinear points p, q, r, check if point q lies on segment pr
function Cl(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _l(e){return e>0?1:e<0?-1:0}function Il(e,t){return bl(e.prev,e,e.next)<0?bl(e,t,e.next)>=0&&bl(e,e.prev,t)>=0:bl(e,t,e.prev)<0||bl(e,e.next,t)<0}function El(e,t){const n=new Bl(e.i,e.x,e.y),r=new Bl(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}
// create a node and optionally link it with previous one (in a circular doubly linked list)
function kl(e,t,n,r){const i=new Bl(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Sl(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Bl(e,t,n){
// vertex index in coordinates array
this.i=e,
// vertex coordinates
this.x=t,this.y=n,
// previous and next vertex nodes in a polygon ring
this.prev=null,this.next=null,
// z-order curve value
this.z=0,
// previous and next nodes in z-order
this.prevZ=null,this.nextZ=null,
// indicates whether this is a steiner point
this.steiner=!1}class Ml{
// calculate area of the contour polygon
static area(e){const t=e.length;let n=0;for(let r=t-1,i=0;i<t;r=i++)n+=e[r].x*e[i].y-e[i].x*e[r].y;return.5*n}static isClockWise(e){return Ml.area(e)<0}static triangulateShape(e,t){const n=[],r=[],i=[];// flat array of vertices like [ x0,y0, x1,y1, x2,y2, ... ]
// final array of vertex indices like [ [ a,b,d ], [ b,c,d ] ]
Tl(e),Ol(n,e);
let a=e.length;t.forEach(Tl);for(let e=0;e<t.length;e++)r.push(a),a+=t[e].length,Ol(n,t[e]);

const o=al(n,r);

for(let e=0;e<o.length;e+=3)i.push(o.slice(e,e+3));return i}}function Tl(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function Ol(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}
/**
 * Creates extruded geometry from a path shape.
 *
 * parameters = {
 *
 *  curveSegments: <int>, // number of points on the curves
 *  steps: <int>, // number of points for z-side extrusions / used for subdividing segments of extrude spline too
 *  depth: <float>, // Depth to extrude the shape
 *
 *  bevelEnabled: <bool>, // turn on bevel
 *  bevelThickness: <float>, // how deep into the original shape bevel goes
 *  bevelSize: <float>, // how far from shape outline (including bevelOffset) is bevel
 *  bevelOffset: <float>, // how far from shape outline does bevel start
 *  bevelSegments: <int>, // number of bevel layers
 *
 *  extrudePath: <THREE.Curve> // curve to extrude shape along
 *
 *  UVGenerator: <Object> // object that provides UV generator functions
 *
 * }
 */class Dl extends ri{constructor(e=new il([new Kt(.5,.5),new Kt(-.5,.5),new Kt(-.5,-.5),new Kt(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,r=[],i=[];for(let t=0,n=e.length;t<n;t++){a(e[t])}
// build geometry
// functions
function a(e){const a=[],o=void 0!==t.curveSegments?t.curveSegments:12,s=void 0!==t.steps?t.steps:1,c=void 0!==t.depth?t.depth:1;
// options
let l=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:.2,h=void 0!==t.bevelSize?t.bevelSize:u-.1,f=void 0!==t.bevelOffset?t.bevelOffset:0,d=void 0!==t.bevelSegments?t.bevelSegments:3;const p=t.extrudePath,g=void 0!==t.UVGenerator?t.UVGenerator:Pl;
let m,v,y,A,b,w=!1;p&&(m=p.getSpacedPoints(s),w=!0,l=!1,// bevels not supported for path extrusion
// SETUP TNB variables
// TODO1 - have a .isClosed in spline?
v=p.computeFrenetFrames(s,!1),
// console.log(splineTube, 'splineTube', splineTube.normals.length, 'steps', steps, 'extrudePts', extrudePts.length);
y=new rn,A=new rn,b=new rn),
// Safeguards if bevels are not enabled
l||(d=0,u=0,h=0,f=0);
// Variables initialization
const x=e.extractPoints(o);let C=x.shape;const _=x.holes;if(!Ml.isClockWise(C)){C=C.reverse();
// Maybe we should also check if holes are in the opposite direction, just to be safe ...
for(let e=0,t=_.length;e<t;e++){const t=_[e];Ml.isClockWise(t)&&(_[e]=t.reverse())}}const I=Ml.triangulateShape(C,_),E=C;
/* Vertices */ // vertices has all points but contour has only points of circumference
for(let e=0,t=_.length;e<t;e++){const t=_[e];C=C.concat(t)}function k(e,t,n){return e.clone().addScaledVector(t,n)}const S=C.length,B=I.length;
// Find directions for point movement
function M(e,t,n){
// computes for inPt the corresponding point inPt' on a new contour
//   shifted by 1 unit (length of normalized vector) to the left
// if we walk along contour clockwise, this new contour is outside the old one
// inPt' is the intersection of the two lines parallel to the two
//  adjacent edges of inPt at a distance of 1 unit on the left side.
let r,i,a;// resulting translation vector for inPt
// good reading for geometry algorithms (here: line-line intersection)
// http://geomalgorithms.com/a05-_intersect-1.html
const o=e.x-t.x,s=e.y-t.y,c=n.x-e.x,l=n.y-e.y,u=o*o+s*s,h=o*l-s*c;if(Math.abs(h)>Number.EPSILON){
// not collinear
// length of vectors for normalizing
const h=Math.sqrt(u),f=Math.sqrt(c*c+l*l),d=t.x-s/h,p=t.y+o/h,g=((n.x-l/f-d)*l-(n.y+c/f-p)*c)/(o*l-s*c);
// vector from inPt to intersection point
r=d+o*g-e.x,i=p+s*g-e.y;
// Don't normalize!, otherwise sharp corners become ugly
//  but prevent crazy spikes
const m=r*r+i*i;if(m<=2)return new Kt(r,i);a=Math.sqrt(m/2)}else{
// handle special case of collinear edges
let e=!1;// assumes: opposite
o>Number.EPSILON?c>Number.EPSILON&&(e=!0):o<-Number.EPSILON?c<-Number.EPSILON&&(e=!0):Math.sign(s)===Math.sign(l)&&(e=!0),e?(
// console.log("Warning: lines are a straight sequence");
r=-s,i=o,a=Math.sqrt(u)):(
// console.log("Warning: lines are a straight spike");
r=o,i=s,a=Math.sqrt(u/2))}return new Kt(r/a,i/a)}const T=[];for(let e=0,t=E.length,n=t-1,r=e+1;e<t;e++,n++,r++)n===t&&(n=0),r===t&&(r=0),
//  (j)---(i)---(k)
// console.log('i,j,k', i, j , k)
T[e]=M(E[e],E[n],E[r]);const O=[];let D,P=T.concat();for(let e=0,t=_.length;e<t;e++){const t=_[e];D=[];for(let e=0,n=t.length,r=n-1,i=e+1;e<n;e++,r++,i++)r===n&&(r=0),i===n&&(i=0),
//  (j)---(i)---(k)
D[e]=M(t[e],t[r],t[i]);O.push(D),P=P.concat(D)}
// Loop bevelSegments, 1 for the front, 1 for the back
for(let e=0;e<d;e++){
//for ( b = bevelSegments; b > 0; b -- ) {
const t=e/d,n=u*Math.cos(t*Math.PI/2),r=h*Math.sin(t*Math.PI/2)+f;
// contract shape
for(let e=0,t=E.length;e<t;e++){const t=k(E[e],T[e],r);R(t.x,t.y,-n)}
// expand holes
for(let e=0,t=_.length;e<t;e++){const t=_[e];D=O[e];for(let e=0,i=t.length;e<i;e++){const i=k(t[e],D[e],r);R(i.x,i.y,-n)}}}const L=h+f;
// Back facing vertices
for(let e=0;e<S;e++){const t=l?k(C[e],P[e],L):C[e];w?(
// v( vert.x, vert.y + extrudePts[ 0 ].y, extrudePts[ 0 ].x );
A.copy(v.normals[0]).multiplyScalar(t.x),y.copy(v.binormals[0]).multiplyScalar(t.y),b.copy(m[0]).add(A).add(y),R(b.x,b.y,b.z)):R(t.x,t.y,0)}
// Add stepped vertices...
// Including front facing vertices
for(let e=1;e<=s;e++)for(let t=0;t<S;t++){const n=l?k(C[t],P[t],L):C[t];w?(
// v( vert.x, vert.y + extrudePts[ s - 1 ].y, extrudePts[ s - 1 ].x );
A.copy(v.normals[e]).multiplyScalar(n.x),y.copy(v.binormals[e]).multiplyScalar(n.y),b.copy(m[e]).add(A).add(y),R(b.x,b.y,b.z)):R(n.x,n.y,c/s*e)}
// Add bevel segments planes
//for ( b = 1; b <= bevelSegments; b ++ ) {
for(let e=d-1;e>=0;e--){const t=e/d,n=u*Math.cos(t*Math.PI/2),r=h*Math.sin(t*Math.PI/2)+f;
// contract shape
for(let e=0,t=E.length;e<t;e++){const t=k(E[e],T[e],r);R(t.x,t.y,c+n)}
// expand holes
for(let e=0,t=_.length;e<t;e++){const t=_[e];D=O[e];for(let e=0,i=t.length;e<i;e++){const i=k(t[e],D[e],r);w?R(i.x,i.y+m[s-1].y,m[s-1].x+n):R(i.x,i.y,c+n)}}}
/* Faces */
// Top and bottom faces
function Q(e,t){let n=e.length;for(;--n>=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);
//console.log('b', i,j, i-1, k,vertices.length);
for(let e=0,n=s+2*d;e<n;e++){const n=S*e,a=S*(e+1);N(t+r+n,t+i+n,t+i+a,t+r+a)}}}function R(e,t,n){a.push(e),a.push(t),a.push(n)}function j(e,t,i){F(e),F(t),F(i);const a=r.length/3,o=g.generateTopUV(n,r,a-3,a-2,a-1);z(o[0]),z(o[1]),z(o[2])}function N(e,t,i,a){F(e),F(t),F(a),F(t),F(i),F(a);const o=r.length/3,s=g.generateSideWallUV(n,r,o-6,o-3,o-2,o-1);z(s[0]),z(s[1]),z(s[3]),z(s[1]),z(s[2]),z(s[3])}function F(e){r.push(a[3*e+0]),r.push(a[3*e+1]),r.push(a[3*e+2])}function z(e){i.push(e.x),i.push(e.y)}!
/////  Internal functions
function(){const e=r.length/3;if(l){let e=0,t=S*e;// steps + 1
// Bottom faces
for(let e=0;e<B;e++){const n=I[e];j(n[2]+t,n[1]+t,n[0]+t)}e=s+2*d,t=S*e;
// Top faces
for(let e=0;e<B;e++){const n=I[e];j(n[0]+t,n[1]+t,n[2]+t)}}else{
// Bottom faces
for(let e=0;e<B;e++){const t=I[e];j(t[2],t[1],t[0])}
// Top faces
for(let e=0;e<B;e++){const t=I[e];j(t[0]+S*s,t[1]+S*s,t[2]+S*s)}}n.addGroup(e,r.length/3-e,0)}
// Create faces for the z-sides of the shape
(),
// Sides faces
function(){const e=r.length/3;let t=0;Q(E,t),t+=E.length;for(let e=0,n=_.length;e<n;e++){const n=_[e];Q(n,t),
//, true
t+=n.length}n.addGroup(e,r.length/3-e,1)}()}this.setAttribute("position",new Kr(r,3)),this.setAttribute("uv",new Kr(i,2)),this.computeVertexNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(let t=0,r=e.length;t<r;t++){const r=e[t];n.shapes.push(r.uuid)}else n.shapes.push(e.uuid);n.options=Object.assign({},t),void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){const n=[];for(let r=0,i=e.shapes.length;r<i;r++){const i=t[e.shapes[r]];n.push(i)}const r=e.options.extrudePath;return void 0!==r&&(e.options.extrudePath=(new Gc[r.type]).fromJSON(r)),new Dl(n,e.options)}}const Pl={generateTopUV:function(e,t,n,r,i){const a=t[3*n],o=t[3*n+1],s=t[3*r],c=t[3*r+1],l=t[3*i],u=t[3*i+1];return[new Kt(a,o),new Kt(s,c),new Kt(l,u)]},generateSideWallUV:function(e,t,n,r,i,a){const o=t[3*n],s=t[3*n+1],c=t[3*n+2],l=t[3*r],u=t[3*r+1],h=t[3*r+2],f=t[3*i],d=t[3*i+1],p=t[3*i+2],g=t[3*a],m=t[3*a+1],v=t[3*a+2];return Math.abs(s-u)<Math.abs(o-l)?[new Kt(o,1-c),new Kt(l,1-h),new Kt(f,1-p),new Kt(g,1-v)]:[new Kt(s,1-c),new Kt(u,1-h),new Kt(d,1-p),new Kt(m,1-v)]}};class Ll extends Xc{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2;super([-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],e,t),this.type="IcosahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Ll(e.radius,e.detail)}}class Ql extends Xc{constructor(e=1,t=0){super([1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],e,t),this.type="OctahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Ql(e.radius,e.detail)}}class Rl extends ri{constructor(e=.5,t=1,n=32,r=1,i=0,a=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:a},n=Math.max(3,n);
// buffers
const o=[],s=[],c=[],l=[];
// some helper variables
let u=e;const h=(t-e)/(r=Math.max(1,r)),f=new rn,d=new Kt;
// generate vertices, normals and uvs
for(let e=0;e<=r;e++){for(let e=0;e<=n;e++){
// values are generate from the inside of the ring to the outside
const r=i+e/n*a;
// vertex
f.x=u*Math.cos(r),f.y=u*Math.sin(r),s.push(f.x,f.y,f.z),
// normal
c.push(0,0,1),
// uv
d.x=(f.x/t+1)/2,d.y=(f.y/t+1)/2,l.push(d.x,d.y)}
// increase the radius for next row of vertices
u+=h}
// indices
for(let e=0;e<r;e++){const t=e*(n+1);for(let e=0;e<n;e++){const r=e+t,i=r,a=r+n+1,s=r+n+2,c=r+1;
// faces
o.push(i,a,c),o.push(a,s,c)}}
// build geometry
this.setIndex(o),this.setAttribute("position",new Kr(s,3)),this.setAttribute("normal",new Kr(c,3)),this.setAttribute("uv",new Kr(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Rl(e.innerRadius,e.outerRadius,e.thetaSegments,e.phiSegments,e.thetaStart,e.thetaLength)}}class jl extends ri{constructor(e=new il([new Kt(0,.5),new Kt(-.5,-.5),new Kt(.5,-.5)]),t=12){super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};
// buffers
const n=[],r=[],i=[],a=[];
// helper variables
let o=0,s=0;
// allow single and array values for "shapes" parameter
if(!1===Array.isArray(e))c(e);else for(let t=0;t<e.length;t++)c(e[t]),this.addGroup(o,s,t),// enables MultiMaterial support
o+=s,s=0;
// build geometry
// helper functions
function c(e){const o=r.length/3,c=e.extractPoints(t);let l=c.shape;const u=c.holes;
// check direction of vertices
!1===Ml.isClockWise(l)&&(l=l.reverse());for(let e=0,t=u.length;e<t;e++){const t=u[e];!0===Ml.isClockWise(t)&&(u[e]=t.reverse())}const h=Ml.triangulateShape(l,u);
// join vertices of inner and outer paths to a single array
for(let e=0,t=u.length;e<t;e++){const t=u[e];l=l.concat(t)}
// vertices, normals, uvs
for(let e=0,t=l.length;e<t;e++){const t=l[e];r.push(t.x,t.y,0),i.push(0,0,1),a.push(t.x,t.y)}
// indices
for(let e=0,t=h.length;e<t;e++){const t=h[e],r=t[0]+o,i=t[1]+o,a=t[2]+o;n.push(r,i,a),s+=3}}this.setIndex(n),this.setAttribute("position",new Kr(r,3)),this.setAttribute("normal",new Kr(i,3)),this.setAttribute("uv",new Kr(a,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t){if(t.shapes=[],Array.isArray(e))for(let n=0,r=e.length;n<r;n++){const r=e[n];t.shapes.push(r.uuid)}else t.shapes.push(e.uuid);return t}(this.parameters.shapes,e)}static fromJSON(e,t){const n=[];for(let r=0,i=e.shapes.length;r<i;r++){const i=t[e.shapes[r]];n.push(i)}return new jl(n,e.curveSegments)}}class Nl extends ri{constructor(e=1,t=32,n=16,r=0,i=2*Math.PI,a=0,o=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:r,phiLength:i,thetaStart:a,thetaLength:o},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));const s=Math.min(a+o,Math.PI);let c=0;const l=[],u=new rn,h=new rn,f=[],d=[],p=[],g=[];
// generate vertices, normals and uvs
for(let f=0;f<=n;f++){const m=[],v=f/n;
// special case for the poles
let y=0;0==f&&0==a?y=.5/t:f==n&&s==Math.PI&&(y=-.5/t);for(let n=0;n<=t;n++){const s=n/t;
// vertex
u.x=-e*Math.cos(r+s*i)*Math.sin(a+v*o),u.y=e*Math.cos(a+v*o),u.z=e*Math.sin(r+s*i)*Math.sin(a+v*o),d.push(u.x,u.y,u.z),
// normal
h.copy(u).normalize(),p.push(h.x,h.y,h.z),
// uv
g.push(s+y,1-v),m.push(c++)}l.push(m)}
// indices
for(let e=0;e<n;e++)for(let r=0;r<t;r++){const t=l[e][r+1],i=l[e][r],o=l[e+1][r],c=l[e+1][r+1];(0!==e||a>0)&&f.push(t,i,c),(e!==n-1||s<Math.PI)&&f.push(i,o,c)}
// build geometry
this.setIndex(f),this.setAttribute("position",new Kr(d,3)),this.setAttribute("normal",new Kr(p,3)),this.setAttribute("uv",new Kr(g,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Nl(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class Fl extends Xc{constructor(e=1,t=0){super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],e,t),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Fl(e.radius,e.detail)}}class zl extends ri{constructor(e=1,t=.4,n=12,r=48,i=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:r,arc:i},n=Math.floor(n),r=Math.floor(r);
// buffers
const a=[],o=[],s=[],c=[],l=new rn,u=new rn,h=new rn;
// generate vertices, normals and uvs
for(let a=0;a<=n;a++)for(let f=0;f<=r;f++){const d=f/r*i,p=a/n*Math.PI*2;
// vertex
u.x=(e+t*Math.cos(p))*Math.cos(d),u.y=(e+t*Math.cos(p))*Math.sin(d),u.z=t*Math.sin(p),o.push(u.x,u.y,u.z),
// normal
l.x=e*Math.cos(d),l.y=e*Math.sin(d),h.subVectors(u,l).normalize(),s.push(h.x,h.y,h.z),
// uv
c.push(f/r),c.push(a/n)}
// generate indices
for(let e=1;e<=n;e++)for(let t=1;t<=r;t++){
// indices
const n=(r+1)*e+t-1,i=(r+1)*(e-1)+t-1,o=(r+1)*(e-1)+t,s=(r+1)*e+t;
// faces
a.push(n,i,s),a.push(i,o,s)}
// build geometry
this.setIndex(a),this.setAttribute("position",new Kr(o,3)),this.setAttribute("normal",new Kr(s,3)),this.setAttribute("uv",new Kr(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new zl(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}class Hl extends ri{constructor(e=1,t=.4,n=64,r=8,i=2,a=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:r,p:i,q:a},n=Math.floor(n),r=Math.floor(r);
// buffers
const o=[],s=[],c=[],l=[],u=new rn,h=new rn,f=new rn,d=new rn,p=new rn,g=new rn,m=new rn;
// generate vertices, normals and uvs
for(let o=0;o<=n;++o){
// the radian "u" is used to calculate the position on the torus curve of the current tubular segment
const y=o/n*i*Math.PI*2;
// now we calculate two points. P1 is our current position on the curve, P2 is a little farther ahead.
// these points are used to create a special "coordinate space", which is necessary to calculate the correct vertex positions
v(y,i,a,e,f),v(y+.01,i,a,e,d),
// calculate orthonormal basis
g.subVectors(d,f),m.addVectors(d,f),p.crossVectors(g,m),m.crossVectors(p,g),
// normalize B, N. T can be ignored, we don't use it
p.normalize(),m.normalize();for(let e=0;e<=r;++e){
// now calculate the vertices. they are nothing more than an extrusion of the torus curve.
// because we extrude a shape in the xy-plane, there is no need to calculate a z-value.
const i=e/r*Math.PI*2,a=-t*Math.cos(i),d=t*Math.sin(i);
// now calculate the final vertex position.
// first we orient the extrusion with our basis vectors, then we add it to the current position on the curve
u.x=f.x+(a*m.x+d*p.x),u.y=f.y+(a*m.y+d*p.y),u.z=f.z+(a*m.z+d*p.z),s.push(u.x,u.y,u.z),
// normal (P1 is always the center/origin of the extrusion, thus we can use it to calculate the normal)
h.subVectors(u,f).normalize(),c.push(h.x,h.y,h.z),
// uv
l.push(o/n),l.push(e/r)}}
// generate indices
for(let e=1;e<=n;e++)for(let t=1;t<=r;t++){
// indices
const n=(r+1)*(e-1)+(t-1),i=(r+1)*e+(t-1),a=(r+1)*e+t,s=(r+1)*(e-1)+t;
// faces
o.push(n,i,s),o.push(i,a,s)}
// build geometry
// this function calculates the current position on the torus curve
function v(e,t,n,r,i){const a=Math.cos(e),o=Math.sin(e),s=n/t*e,c=Math.cos(s);i.x=r*(2+c)*.5*a,i.y=r*(2+c)*o*.5,i.z=r*Math.sin(s)*.5}this.setIndex(o),this.setAttribute("position",new Kr(s,3)),this.setAttribute("normal",new Kr(c,3)),this.setAttribute("uv",new Kr(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Hl(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}class Ul extends ri{constructor(e=new Hc(new rn(-1,-1,0),new rn(-1,1,0),new rn(1,1,0)),t=64,n=1,r=8,i=!1){super(),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:t,radius:n,radialSegments:r,closed:i};const a=e.computeFrenetFrames(t,i);
// expose internals
this.tangents=a.tangents,this.normals=a.normals,this.binormals=a.binormals;
// helper variables
const o=new rn,s=new rn,c=new Kt;let l=new rn;
// buffer
const u=[],h=[],f=[],d=[];function p(i){
// we use getPointAt to sample evenly distributed points from the given path
l=e.getPointAt(i/t,l);
// retrieve corresponding normal and binormal
const c=a.normals[i],f=a.binormals[i];
// generate normals and vertices for the current segment
for(let e=0;e<=r;e++){const t=e/r*Math.PI*2,i=Math.sin(t),a=-Math.cos(t);
// normal
s.x=a*c.x+i*f.x,s.y=a*c.y+i*f.y,s.z=a*c.z+i*f.z,s.normalize(),h.push(s.x,s.y,s.z),
// vertex
o.x=l.x+n*s.x,o.y=l.y+n*s.y,o.z=l.z+n*s.z,u.push(o.x,o.y,o.z)}}
// create buffer data
!
// functions
function(){for(let e=0;e<t;e++)p(e);
// if the geometry is not closed, generate the last row of vertices and normals
// at the regular position on the given path

// if the geometry is closed, duplicate the first row of vertices and normals (uvs will differ)
p(!1===i?t:0),
// uvs are generated in a separate function.
// this makes it easy compute correct values for closed geometries
function(){for(let e=0;e<=t;e++)for(let n=0;n<=r;n++)c.x=e/t,c.y=n/r,f.push(c.x,c.y)}(),
// finally create faces
function(){for(let e=1;e<=t;e++)for(let t=1;t<=r;t++){const n=(r+1)*(e-1)+(t-1),i=(r+1)*e+(t-1),a=(r+1)*e+t,o=(r+1)*(e-1)+t;
// faces
d.push(n,i,o),d.push(i,a,o)}}()}(),
// build geometry
this.setIndex(d),this.setAttribute("position",new Kr(u,3)),this.setAttribute("normal",new Kr(h,3)),this.setAttribute("uv",new Kr(f,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(e){
// This only works for built-in curves (e.g. CatmullRomCurve3).
// User defined curves or instances of CurvePath will not be deserialized.
return new Ul((new Gc[e.path.type]).fromJSON(e.path),e.tubularSegments,e.radius,e.radialSegments,e.closed)}}function Gl(e,t,n){const r=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`,i=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`;// coincident edge
return!0!==n.has(r)&&!0!==n.has(i)&&(n.add(r),n.add(i),!0)}var Vl=Object.freeze({__proto__:null,BoxGeometry:bi,CapsuleGeometry:Yc,CircleGeometry:Kc,ConeGeometry:Jc,CylinderGeometry:$c,DodecahedronGeometry:Zc,EdgesGeometry:class extends ri{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),i=Math.cos(Rt*t),a=e.getIndex(),o=e.getAttribute("position"),s=a?a.count:o.count,c=[0,0,0],l=["a","b","c"],u=new Array(3),h={},f=[];for(let e=0;e<s;e+=3){a?(c[0]=a.getX(e),c[1]=a.getX(e+1),c[2]=a.getX(e+2)):(c[0]=e,c[1]=e+1,c[2]=e+2);const{a:t,b:n,c:s}=rl;
// skip degenerate triangles
if(t.fromBufferAttribute(o,c[0]),n.fromBufferAttribute(o,c[1]),s.fromBufferAttribute(o,c[2]),rl.getNormal(nl),
// create hashes for the edge from the vertices
u[0]=`${Math.round(t.x*r)},${Math.round(t.y*r)},${Math.round(t.z*r)}`,u[1]=`${Math.round(n.x*r)},${Math.round(n.y*r)},${Math.round(n.z*r)}`,u[2]=`${Math.round(s.x*r)},${Math.round(s.y*r)},${Math.round(s.z*r)}`,u[0]!==u[1]&&u[1]!==u[2]&&u[2]!==u[0])
// iterate over every edge
for(let e=0;e<3;e++){
// get the first and next vertex making up the edge
const t=(e+1)%3,n=u[e],r=u[t],a=rl[l[e]],o=rl[l[t]],s=`${n}_${r}`,d=`${r}_${n}`;d in h&&h[d]?(
// if we found a sibling edge add it into the vertex array if
// it meets the angle threshold and delete the edge from the map.
nl.dot(h[d].normal)<=i&&(f.push(a.x,a.y,a.z),f.push(o.x,o.y,o.z)),h[d]=null):s in h||(
// if we've already got an edge here then skip adding a new one
h[s]={index0:c[e],index1:c[t],normal:nl.clone()})}}
// iterate over all remaining, unmatched edges and add them to the vertex array
for(const e in h)if(h[e]){const{index0:t,index1:n}=h[e];el.fromBufferAttribute(o,t),tl.fromBufferAttribute(o,n),f.push(el.x,el.y,el.z),f.push(tl.x,tl.y,tl.z)}this.setAttribute("position",new Kr(f,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}},ExtrudeGeometry:Dl,IcosahedronGeometry:Ll,LatheGeometry:qc,OctahedronGeometry:Ql,PlaneGeometry:zi,PolyhedronGeometry:Xc,RingGeometry:Rl,ShapeGeometry:jl,SphereGeometry:Nl,TetrahedronGeometry:Fl,TorusGeometry:zl,TorusKnotGeometry:Hl,TubeGeometry:Ul,WireframeGeometry:class extends ri{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},null!==e){
// buffer
const t=[],n=new Set,r=new rn,i=new rn;if(null!==e.index){
// indexed BufferGeometry
const a=e.attributes.position,o=e.index;let s=e.groups;0===s.length&&(s=[{start:0,count:o.count,materialIndex:0}]);
// create a data structure that contains all edges without duplicates
for(let e=0,c=s.length;e<c;++e){const c=s[e],l=c.start;for(let e=l,s=l+c.count;e<s;e+=3)for(let s=0;s<3;s++){const c=o.getX(e+s),l=o.getX(e+(s+1)%3);r.fromBufferAttribute(a,c),i.fromBufferAttribute(a,l),!0===Gl(r,i,n)&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}}else{
// non-indexed BufferGeometry
const a=e.attributes.position;for(let e=0,o=a.count/3;e<o;e++)for(let o=0;o<3;o++){
// three edges per triangle, an edge is represented as (index1, index2)
// e.g. the first triangle has the following edges: (0,1),(1,2),(2,0)
const s=3*e+o,c=3*e+(o+1)%3;r.fromBufferAttribute(a,s),i.fromBufferAttribute(a,c),!0===Gl(r,i,n)&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}
// build geometry
this.setAttribute("position",new Kr(t,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}}});class Wl extends Qr{constructor(e){super(),this.isShadowMaterial=!0,this.type="ShadowMaterial",this.color=new zr(0),this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.fog=e.fog,this}}class ql extends Ii{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type="RawShaderMaterial"}}class Yl extends Qr{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new zr(16777215),// diffuse
this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=It,this.normalScale=new Kt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Kl extends Yl{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Kt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Ft(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new zr(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new zr(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new zr(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._iridescence=0,this._transmission=0,this.setValues(e)}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class $l extends Qr{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new zr(16777215),// diffuse
this.specular=new zr(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=It,this.normalScale=new Kt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=V,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Jl extends Qr{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new zr(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=It,this.normalScale=new Kt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class Xl extends Qr{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=It,this.normalScale=new Kt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class Zl extends Qr{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new zr(16777215),// diffuse
this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=It,this.normalScale=new Kt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=V,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class eu extends Qr{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new zr(16777215),// diffuse
this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=It,this.normalScale=new Kt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class tu extends uc{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}
// same as Array.prototype.slice, but also works on typed arrays
function nu(e,t,n){return iu(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)}
// converts an array to a specific type
function ru(e,t,n){return!e||// let 'undefined' and 'null' pass
!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function iu(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}
// returns an array by which times and values can be sorted
function au(e){const t=e.length,n=new Array(t);for(let e=0;e!==t;++e)n[e]=e;return n.sort((function(t,n){return e[t]-e[n]})),n}
// uses the array previously returned by 'getKeyframeOrder' to sort data
function ou(e,t,n){const r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){const r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}
// function for parsing AOS keyframe formats
function su(e,t,n,r){let i=1,a=e[0];for(;void 0!==a&&void 0===a[r];)a=e[i++];if(void 0===a)return;// no data
let o=a[r];if(void 0!==o)// no data
if(Array.isArray(o))do{o=a[r],void 0!==o&&(t.push(a.time),n.push.apply(n,o)),a=e[i++]}while(void 0!==a);else if(void 0!==o.toArray)
// ...assume THREE.Math-ish
do{o=a[r],void 0!==o&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else
// otherwise push as-is
do{o=a[r],void 0!==o&&(t.push(a.time),n.push(o)),a=e[i++]}while(void 0!==a)}
/**
 * Abstract base class of interpolants over parametric samples.
 *
 * The parameter domain is one dimensional, typically the time or a path
 * along a curve defined by the data.
 *
 * The sample values can have any dimensionality and derived classes may
 * apply special interpretations to the data.
 *
 * This class provides the interval seek in a Template Method, deferring
 * the actual interpolation to derived classes.
 *
 * Time complexity is O(1) for linear access crossing at most two points
 * and O(log N) for random access, where N is the number of positions.
 *
 * References:
 *
 * 		http://www.oodesign.com/template-method-pattern.html
 *
 */
class cu{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,r=t[n],i=t[n-1];e:{t:{let a;n:{
//- See http://jsperf.com/comparison-to-undefined/3
//- slower code:
//-
//- 				if ( t >= t1 || t1 === undefined ) {
r:if(!(e<r)){for(let a=n+2;;){if(void 0===r){if(e<i)break r;
// after end
return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;// this loop
if(i=r,r=t[++n],e<r)
// we have arrived at the sought interval
break t}
// prepare binary search on the right side of the index
a=t.length;break n}
//- slower code:
//-					if ( t < t0 || t0 === undefined ) {
if(e>=i)
// the interval is valid
break e;{
// looping?
const o=t[1];e<o&&(n=2,// + 1, using the scan for the details
i=o);
// linear reverse scan
for(let a=n-2;;){if(void 0===i)
// before start
return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;// this loop
if(r=i,i=t[--n-1],e>=i)
// we have arrived at the sought interval
break t}
// prepare binary search on the left side of the index
a=n,n=0}}// linear scan
// binary search
for(;n<a;){const r=n+a>>>1;e<t[r]?a=r:n=r+1}
// check boundary cases, again
if(r=t[n],i=t[n-1],void 0===i)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===r)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}// seek
this._cachedIndex=n,this.intervalChanged_(n,i,r)}// validate_interval
return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){
// copies a sample value to the result buffer
const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}
// Template methods for derived classes:
interpolate_(){throw new Error("call to abstract method");
// implementations shall return this.resultBuffer
}intervalChanged_(){
// empty
}}
/**
 * Fast and simple cubic spline interpolant.
 *
 * It was derived from a Hermitian construction setting the first derivative
 * at each sample position to the linear slope between neighboring positions
 * over their parameter interval.
 */class lu extends cu{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:gt,endingEnd:gt}}intervalChanged_(e,t,n){const r=this.parameterPositions;let i=e-2,a=e+1,o=r[i],s=r[a];if(void 0===o)switch(this.getSettings_().endingStart){case mt:
// f'(t0) = 0
i=e,o=2*t-n;break;case vt:
// use the other end of the curve
i=r.length-2,o=t+r[i]-r[i+1];break;default:// ZeroCurvatureEnding
// f''(t0) = 0 a.k.a. Natural Spline
i=e,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case mt:
// f'(tN) = 0
a=e,s=2*n-t;break;case vt:
// use the other end of the curve
a=1,s=n+r[1]-r[0];break;default:// ZeroCurvatureEnding
// f''(tN) = 0, a.k.a. Natural Spline
a=e-1,s=t}const c=.5*(n-t),l=this.valueSize;this._weightPrev=c/(t-o),this._weightNext=c/(s-n),this._offsetPrev=i*l,this._offsetNext=a*l}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,f=this._weightNext,d=(n-t)/(r-t),p=d*d,g=p*d,m=-h*g+2*h*p-h*d,v=(1+h)*g+(-1.5-2*h)*p+(-.5+h)*d+1,y=(-1-f)*g+(1.5+f)*p+.5*d,A=f*g-f*p;
// evaluate polynomials
// combine data linearly
for(let e=0;e!==o;++e)i[e]=m*a[l+e]+v*a[c+e]+y*a[s+e]+A*a[u+e];return i}}class uu extends cu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=(n-t)/(r-t),u=1-l;for(let e=0;e!==o;++e)i[e]=a[c+e]*u+a[s+e]*l;return i}}
/**
 *
 * Interpolant that evaluates to the sample value at the position preceding
 * the parameter.
 */class hu extends cu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e/*, t0, t, t1 */){return this.copySampleValue_(e-1)}}class fu{constructor(e,t,n,r){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=ru(t,this.TimeBufferType),this.values=ru(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}
// Serialization (in static context, because of constructor invocation
// and automatic invocation of .toJSON):
static toJSON(e){const t=e.constructor;let n;
// derived classes can define a static toJSON method
if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{
// by default, we assume the data can be serialized as-is
n={name:e.name,times:ru(e.times,Array),values:ru(e.values,Array)};const t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}// mandatory
return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new hu(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new uu(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new lu(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case ft:t=this.InterpolantFactoryMethodDiscrete;break;case dt:t=this.InterpolantFactoryMethodLinear;break;case pt:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){
// fall back to default, unless the default itself is messed up
if(e===this.DefaultInterpolation)throw new Error(t);// fatal, in this case
this.setInterpolation(this.DefaultInterpolation)}return this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return ft;case this.InterpolantFactoryMethodLinear:return dt;case this.InterpolantFactoryMethodSmooth:return pt}}getValueSize(){return this.values.length/this.times.length}
// move all keyframes either forwards or backwards in time
shift(e){if(0!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}
// scale all keyframe times by a factor (useful for frame <-> seconds conversions)
scale(e){if(1!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}
// removes keyframes before and after animation without changing any values within the range [startTime, endTime].
// IMPORTANT: We do not shift around keys to the start of the track time, because for interpolated keys this will change their values
trim(e,t){const n=this.times,r=n.length;let i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;-1!==a&&n[a]>t;)--a;// inclusive -> exclusive bound
if(++a,0!==i||a!==r){
// empty tracks are forbidden, so keep at least one keyframe
i>=a&&(a=Math.max(a,1),i=a-1);const e=this.getValueSize();this.times=nu(n,i,a),this.values=nu(this.values,i*e,a*e)}return this}
// ensure we do not get a GarbageInGarbageOut situation, make sure tracks are at least minimally viable
validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!=0&&(e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(e=!1);let a=null;for(let t=0;t!==i;t++){const r=n[t];if("number"==typeof r&&isNaN(r)){e=!1;break}if(null!==a&&a>r){e=!1;break}a=r}if(void 0!==r&&iu(r))for(let t=0,n=r.length;t!==n;++t){const n=r[t];if(isNaN(n)){e=!1;break}}return e}
// removes equivalent sequential keys as common in morph target sequences
// (0,0,0,0,1,1,1,0,0,0,0,0,0,0) --> (0,0,1,1,0,0)
optimize(){
// times or values may be shared with other tracks, so overwriting is unsafe
const e=nu(this.times),t=nu(this.values),n=this.getValueSize(),r=this.getInterpolation()===pt,i=e.length-1;let a=1;for(let o=1;o<i;++o){let i=!1;const s=e[o];
// remove adjacent keyframes scheduled at the same time
if(s!==e[o+1]&&(1!==o||s!==e[0]))if(r)i=!0;else{
// remove unnecessary keyframes same as their neighbors
const e=o*n,r=e-n,a=e+n;for(let o=0;o!==n;++o){const n=t[e+o];if(n!==t[r+o]||n!==t[a+o]){i=!0;break}}}
// in-place compaction
if(i){if(o!==a){e[a]=e[o];const r=o*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}
// flush last keyframe (compaction looks ahead)
if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a!==e.length?(this.times=nu(e,0,a),this.values=nu(t,0,a*n)):(this.times=e,this.values=t),this}clone(){const e=nu(this.times,0),t=nu(this.values,0),n=new(0,this.constructor)(this.name,e,t);
// Interpolant argument to constructor is not saved, so copy the factory method directly.
return n.createInterpolant=this.createInterpolant,n}}fu.prototype.TimeBufferType=Float32Array,fu.prototype.ValueBufferType=Float32Array,fu.prototype.DefaultInterpolation=dt;
/**
 * A Track of Boolean keyframe values.
 */
class du extends fu{}du.prototype.ValueTypeName="bool",du.prototype.ValueBufferType=Array,du.prototype.DefaultInterpolation=ft,du.prototype.InterpolantFactoryMethodLinear=void 0,du.prototype.InterpolantFactoryMethodSmooth=void 0;
/**
 * A Track of keyframe values that represent color.
 */
class pu extends fu{}pu.prototype.ValueTypeName="color";
/**
 * A Track of numeric keyframe values.
 */
class gu extends fu{}gu.prototype.ValueTypeName="number";
/**
 * Spherical linear unit quaternion interpolant.
 */
class mu extends cu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t);let c=e*o;for(let e=c+o;c!==e;c+=4)nn.slerpFlat(i,0,a,c-o,a,c,s);return i}}
/**
 * A Track of quaternion keyframe values.
 */class vu extends fu{InterpolantFactoryMethodLinear(e){return new mu(this.times,this.values,this.getValueSize(),e)}}vu.prototype.ValueTypeName="quaternion",
// ValueBufferType is inherited
vu.prototype.DefaultInterpolation=dt,vu.prototype.InterpolantFactoryMethodSmooth=void 0;
/**
 * A Track that interpolates Strings
 */
class yu extends fu{}yu.prototype.ValueTypeName="string",yu.prototype.ValueBufferType=Array,yu.prototype.DefaultInterpolation=ft,yu.prototype.InterpolantFactoryMethodLinear=void 0,yu.prototype.InterpolantFactoryMethodSmooth=void 0;
/**
 * A Track of vectored keyframe values.
 */
class Au extends fu{}Au.prototype.ValueTypeName="vector";class bu{constructor(e,t=-1,n,r=2500){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Nt(),
// this means it should figure out its duration by scanning the tracks
this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(wu(n[e]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push(fu.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,a=[];for(let e=0;e<i;e++){let o=[],s=[];o.push((e+i-1)%i,e,(e+1)%i),s.push(0,1,0);const c=au(o);o=ou(o,1,c),s=ou(s,1,c),
// if there is a key at the first frame, duplicate it as the
// last frame as well for perfect loop.
r||0!==o[0]||(o.push(i),s.push(s[0])),a.push(new gu(".morphTargetInfluences["+t[e].name+"]",o,s).scale(1/n))}return new this(e,-1,a)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let e=0;e<n.length;e++)if(n[e].name===t)return n[e];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const r={},i=/^([\w-]*?)([\d]+)$/;
// tested with https://regex101.com/ on trick sequences
// such flamingo_flyA_003, flamingo_run1_003, crdeath0059
// sort morph target names into animation groups based
// patterns like Walk_001, Walk_002, Run_001, Run_002
for(let t=0,n=e.length;t<n;t++){const n=e[t],a=n.name.match(i);if(a&&a.length>1){const e=a[1];let t=r[e];t||(r[e]=t=[]),t.push(n)}}const a=[];for(const e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}
// parse the animation.hierarchy format
static parseAnimation(e,t){if(!e)return null;const n=function(e,t,n,r,i){
// only return track if there are actually keys.
if(0!==n.length){const a=[],o=[];su(n,a,o,r),
// empty keys are filtered out, so check again
0!==a.length&&i.push(new e(t,a,o))}},r=[],i=e.name||"default",a=e.fps||30,o=e.blendMode;
// automatic length determination in AnimationClip.
let s=e.length||-1;const c=e.hierarchy||[];for(let e=0;e<c.length;e++){const i=c[e].keys;
// skip empty tracks
if(i&&0!==i.length)
// process morph targets
if(i[0].morphTargets){
// figure out all morph targets used in this track
const e={};let t;for(t=0;t<i.length;t++)if(i[t].morphTargets)for(let n=0;n<i[t].morphTargets.length;n++)e[i[t].morphTargets[n]]=-1;
// create a track for each morph target with all zero
// morphTargetInfluences except for the keys in which
// the morphTarget is named.
for(const n in e){const e=[],a=[];for(let r=0;r!==i[t].morphTargets.length;++r){const r=i[t];e.push(r.time),a.push(r.morphTarget===n?1:0)}r.push(new gu(".morphTargetInfluence["+n+"]",e,a))}s=e.length*a}else{
// ...assume skeletal animation
const a=".bones["+t[e].name+"]";n(Au,a+".position",i,"pos",r),n(vu,a+".quaternion",i,"rot",r),n(Au,a+".scale",i,"scl",r)}}if(0===r.length)return null;return new this(i,s,r,o)}resetDuration(){let e=0;for(let t=0,n=this.tracks.length;t!==n;++t){const n=this.tracks[t];e=Math.max(e,n.times[n.times.length-1])}return this.duration=e,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function wu(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return gu;case"vector":case"vector2":case"vector3":case"vector4":return Au;case"color":return pu;case"quaternion":return vu;case"bool":case"boolean":return du;case"string":return yu}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){const t=[],n=[];su(e.keys,t,n,"value"),e.times=t,e.values=n}
// derived classes can define a static parse method
return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const xu={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(
// console.log( 'THREE.Cache', 'Adding key:', key );
this.files[e]=t)},get:function(e){if(!1!==this.enabled)
// console.log( 'THREE.Cache', 'Checking key:', key );
return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class Cu{constructor(e,t,n){const r=this;let i,a=!1,o=0,s=0;const c=[];
// Refer to #5689 for the reason why we don't set .onStart
// in the constructor
this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){s++,!1===a&&void 0!==r.onStart&&r.onStart(e,o,s),a=!0},this.itemEnd=function(e){o++,void 0!==r.onProgress&&r.onProgress(e,o,s),o===s&&(a=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return i?i(e):e},this.setURLModifier=function(e){return i=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){const t=c.indexOf(e);return-1!==t&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){const n=c[t],r=c[t+1];// see #17920
if(n.global&&(n.lastIndex=0),n.test(e))return r}return null}}}const _u=new Cu;class Iu{constructor(e){this.manager=void 0!==e?e:_u,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(r,i){n.load(e,r,t,i)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}const Eu={};class ku extends Error{constructor(e,t){super(e),this.response=t}}class Su extends Iu{constructor(e){super(e)}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=xu.get(e);if(void 0!==i)return this.manager.itemStart(e),setTimeout((()=>{t&&t(i),this.manager.itemEnd(e)}),0),i;
// Check if request is duplicate
if(void 0!==Eu[e])return void Eu[e].push({onLoad:t,onProgress:n,onError:r});
// Initialise array for duplicate requests
Eu[e]=[],Eu[e].push({onLoad:t,onProgress:n,onError:r});
// create request
const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),o=this.mimeType,s=this.responseType;
// record states ( avoid data race )
// start the fetch
fetch(a).then((t=>{if(200===t.status||0===t.status){
// Workaround: Checking if response.body === undefined for Alipay browser #23548
if(t.status,"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Eu[e],r=t.body.getReader(),i=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),a=i?parseInt(i):0,o=0!==a;let s=0;
// periodically read data into the new stream tracking while download progress
const c=new ReadableStream({start(e){!function t(){r.read().then((({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(r)}e.enqueue(i),t()}}))}()}});return new Response(c)}throw new ku(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)})).then((e=>{switch(s){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>(new DOMParser).parseFromString(e,o)));case"json":return e.json();default:if(void 0===o)return e.text();{
// sniff encoding
const t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then((e=>r.decode(e)))}}})).then((t=>{
// Add to cache only on HTTP success, so that we do not cache
// error response bodies as proper responses to requests.
xu.add(e,t);const n=Eu[e];delete Eu[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onLoad&&r.onLoad(t)}})).catch((t=>{
// Abort errors and other errors are handled the same
const n=Eu[e];if(void 0===n)
// When onLoad was called and url was deleted in `loading`
throw this.manager.itemError(e),t;delete Eu[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onError&&r.onError(t)}this.manager.itemError(e)})).finally((()=>{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}
/**
 * Abstract Base class to block based textures loader (dds, pvr, ...)
 *
 * Sub classes have to implement the parse() method which will be used in load().
 */
class Bu extends Iu{constructor(e){super(e)}load(e,t,n,r){const i=this,a=[],o=new Sc,s=new Su(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(i.withCredentials);let c=0;function l(l){s.load(e[l],(function(e){const n=i.parse(e,!0);a[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},c+=1,6===c&&(1===n.mipmapCount&&(o.minFilter=he),o.image=a,o.format=n.format,o.needsUpdate=!0,t&&t(o))}),n,r)}if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)l(t);else
// compressed cubemap texture stored in a single DDS file
s.load(e,(function(e){const n=i.parse(e,!0);if(n.isCubemap){const e=n.mipmaps.length/n.mipmapCount;for(let t=0;t<e;t++){a[t]={mipmaps:[]};for(let e=0;e<n.mipmapCount;e++)a[t].mipmaps.push(n.mipmaps[t*n.mipmapCount+e]),a[t].format=n.format,a[t].width=n.width,a[t].height=n.height}o.image=a}else o.image.width=n.width,o.image.height=n.height,o.mipmaps=n.mipmaps;1===n.mipmapCount&&(o.minFilter=he),o.format=n.format,o.needsUpdate=!0,t&&t(o)}),n,r);return o}}class Mu extends Iu{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,a=xu.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;const o=tn("img");function s(){l(),xu.add(e,this),t&&t(this),i.manager.itemEnd(e)}function c(t){l(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function l(){o.removeEventListener("load",s,!1),o.removeEventListener("error",c,!1)}return o.addEventListener("load",s,!1),o.addEventListener("error",c,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(o.crossOrigin=this.crossOrigin),i.manager.itemStart(e),o.src=e,o}}
/**
 * Abstract Base class to load generic binary textures formats (rgbe, hdr, ...)
 *
 * Sub classes have to implement the parse() method which will be used in load().
 */
class Tu extends Iu{constructor(e){super(e)}load(e,t,n,r){const i=this,a=new Zs,o=new Su(this.manager);return o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setPath(this.path),o.setWithCredentials(i.withCredentials),o.load(e,(function(e){const n=i.parse(e);n&&(void 0!==n.image?a.image=n.image:void 0!==n.data&&(a.image.width=n.width,a.image.height=n.height,a.image.data=n.data),a.wrapS=void 0!==n.wrapS?n.wrapS:oe,a.wrapT=void 0!==n.wrapT?n.wrapT:oe,a.magFilter=void 0!==n.magFilter?n.magFilter:he,a.minFilter=void 0!==n.minFilter?n.minFilter:he,a.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.encoding&&(a.encoding=n.encoding),void 0!==n.flipY&&(a.flipY=n.flipY),void 0!==n.format&&(a.format=n.format),void 0!==n.type&&(a.type=n.type),void 0!==n.mipmaps&&(a.mipmaps=n.mipmaps,a.minFilter=de),1===n.mipmapCount&&(a.minFilter=he),void 0!==n.generateMipmaps&&(a.generateMipmaps=n.generateMipmaps),a.needsUpdate=!0,t&&t(a,n))}),n,r),a}}class Ou extends Iu{constructor(e){super(e)}load(e,t,n,r){const i=new bn,a=new Mu(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,(function(e){i.image=e,i.needsUpdate=!0,void 0!==t&&t(i)}),n,r),i}}class Du extends Cr{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new zr(e),this.intensity=t}dispose(){
// Empty here in base class; some subclasses override.
}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}class Pu extends Du{constructor(e,t,n){super(e,n),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(Cr.DEFAULT_UP),this.updateMatrix(),this.groundColor=new zr(t)}copy(e,t){return super.copy(e,t),this.groundColor.copy(e.groundColor),this}}const Lu=new Xn,Qu=new rn,Ru=new rn;class ju{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Kt(512,512),this.map=null,this.mapPass=null,this.matrix=new Xn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new ji,this._frameExtents=new Kt(1,1),this._viewportCount=1,this._viewports=[new wn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;Qu.setFromMatrixPosition(e.matrixWorld),t.position.copy(Qu),Ru.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Ru),t.updateMatrixWorld(),Lu.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Lu),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Lu)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class Nu extends ju{constructor(){super(new ki(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*jt*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;n===t.fov&&r===t.aspect&&i===t.far||(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class Fu extends Du{constructor(e,t,n=0,r=Math.PI/3,i=0,a=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Cr.DEFAULT_UP),this.updateMatrix(),this.target=new Cr,this.distance=n,this.angle=r,this.penumbra=i,this.decay=a,this.map=null,this.shadow=new Nu}get power(){
// compute the light's luminous power (in lumens) from its intensity (in candela)
// by convention for a spotlight, luminous power (lm) = π * luminous intensity (cd)
return this.intensity*Math.PI}set power(e){
// set the light's intensity (in candela) from the desired luminous power (in lumens)
this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const zu=new Xn,Hu=new rn,Uu=new rn;class Gu extends ju{constructor(){super(new ki(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Kt(4,2),this._viewportCount=6,this._viewports=[
// These viewports map a cube-map onto a 2D texture with the
// following orientation:
//  xzXZ
//   y Y
// X - Positive x direction
// x - Negative x direction
// Y - Positive y direction
// y - Negative y direction
// Z - Positive z direction
// z - Negative z direction
// positive X
new wn(2,1,1,1),
// negative X
new wn(0,1,1,1),
// positive Z
new wn(3,1,1,1),
// negative Z
new wn(1,1,1,1),
// positive Y
new wn(3,0,1,1),
// negative Y
new wn(1,0,1,1)],this._cubeDirections=[new rn(1,0,0),new rn(-1,0,0),new rn(0,0,1),new rn(0,0,-1),new rn(0,1,0),new rn(0,-1,0)],this._cubeUps=[new rn(0,1,0),new rn(0,1,0),new rn(0,1,0),new rn(0,1,0),new rn(0,0,1),new rn(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),Hu.setFromMatrixPosition(e.matrixWorld),n.position.copy(Hu),Uu.copy(n.position),Uu.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Uu),n.updateMatrixWorld(),r.makeTranslation(-Hu.x,-Hu.y,-Hu.z),zu.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(zu)}}class Vu extends Du{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new Gu}get power(){
// compute the light's luminous power (in lumens) from its intensity (in candela)
// for an isotropic light source, luminous power (lm) = 4 π luminous intensity (cd)
return 4*this.intensity*Math.PI}set power(e){
// set the light's intensity (in candela) from the desired luminous power (in lumens)
this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Wu extends ju{constructor(){super(new Xi(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class qu extends Du{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Cr.DEFAULT_UP),this.updateMatrix(),this.target=new Cr,this.shadow=new Wu}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Yu extends Du{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Ku extends Du{constructor(e,t,n=10,r=10){super(e,t),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=n,this.height=r}get power(){
// compute the light's luminous power (in lumens) from its intensity (in nits)
return this.intensity*this.width*this.height*Math.PI}set power(e){
// set the light's intensity (in nits) from the desired luminous power (in lumens)
this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const t=super.toJSON(e);return t.object.width=this.width,t.object.height=this.height,t}}
/**
 * Primary reference:
 *   https://graphics.stanford.edu/papers/envmap/envmap.pdf
 *
 * Secondary reference:
 *   https://www.ppsloan.org/publications/StupidSH36.pdf
 */
// 3-band SH defined by 9 coefficients
class $u{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new rn)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}
// get the radiance in the direction of the normal
// target is a Vector3
getAt(e,t){
// normal is assumed to be unit length
const n=e.x,r=e.y,i=e.z,a=this.coefficients;
// band 0
return t.copy(a[0]).multiplyScalar(.282095),
// band 1
t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),
// band 2
t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}
// get the irradiance (radiance convolved with cosine lobe) in the direction of the normal
// target is a Vector3
// https://graphics.stanford.edu/papers/envmap/envmap.pdf
getIrradianceAt(e,t){
// normal is assumed to be unit length
const n=e.x,r=e.y,i=e.z,a=this.coefficients;// ( π / 4 ) * 0.546274
// band 0
return t.copy(a[0]).multiplyScalar(.886227),// π * 0.282095
// band 1
t.addScaledVector(a[1],1.023328*r),// ( 2 * π / 3 ) * 0.488603
t.addScaledVector(a[2],1.023328*i),t.addScaledVector(a[3],1.023328*n),
// band 2
t.addScaledVector(a[4],.858086*n*r),// ( π / 4 ) * 1.092548
t.addScaledVector(a[5],.858086*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),// ( π / 4 ) * 0.315392 * 3
t.addScaledVector(a[7],.858086*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(e,t=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}toArray(e=[],t=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}
// evaluate the basis functions
// shBasis is an Array[ 9 ]
static getBasisAt(e,t){
// normal is assumed to be unit length
const n=e.x,r=e.y,i=e.z;
// band 0
t[0]=.282095,
// band 1
t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,
// band 2
t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}class Ju extends Du{constructor(e=new $u,t=1){super(void 0,t),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,// TODO: Move this bit to Light.fromJSON();
this.sh.fromArray(e.sh),this}toJSON(e){const t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}}class Xu extends Iu{constructor(e){super(e),this.textures={}}load(e,t,n,r){const i=this,a=new Su(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,(function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r&&r(t),i.manager.itemError(e)}}),n,r)}parse(e){const t=this.textures;function n(e){return t[e],t[e]}const r=Xu.createMaterialFromType(e.type);
// Shader Material
if(void 0!==e.uuid&&(r.uuid=e.uuid),void 0!==e.name&&(r.name=e.name),void 0!==e.color&&void 0!==r.color&&r.color.setHex(e.color),void 0!==e.roughness&&(r.roughness=e.roughness),void 0!==e.metalness&&(r.metalness=e.metalness),void 0!==e.sheen&&(r.sheen=e.sheen),void 0!==e.sheenColor&&(r.sheenColor=(new zr).setHex(e.sheenColor)),void 0!==e.sheenRoughness&&(r.sheenRoughness=e.sheenRoughness),void 0!==e.emissive&&void 0!==r.emissive&&r.emissive.setHex(e.emissive),void 0!==e.specular&&void 0!==r.specular&&r.specular.setHex(e.specular),void 0!==e.specularIntensity&&(r.specularIntensity=e.specularIntensity),void 0!==e.specularColor&&void 0!==r.specularColor&&r.specularColor.setHex(e.specularColor),void 0!==e.shininess&&(r.shininess=e.shininess),void 0!==e.clearcoat&&(r.clearcoat=e.clearcoat),void 0!==e.clearcoatRoughness&&(r.clearcoatRoughness=e.clearcoatRoughness),void 0!==e.iridescence&&(r.iridescence=e.iridescence),void 0!==e.iridescenceIOR&&(r.iridescenceIOR=e.iridescenceIOR),void 0!==e.iridescenceThicknessRange&&(r.iridescenceThicknessRange=e.iridescenceThicknessRange),void 0!==e.transmission&&(r.transmission=e.transmission),void 0!==e.thickness&&(r.thickness=e.thickness),void 0!==e.attenuationDistance&&(r.attenuationDistance=e.attenuationDistance),void 0!==e.attenuationColor&&void 0!==r.attenuationColor&&r.attenuationColor.setHex(e.attenuationColor),void 0!==e.fog&&(r.fog=e.fog),void 0!==e.flatShading&&(r.flatShading=e.flatShading),void 0!==e.blending&&(r.blending=e.blending),void 0!==e.combine&&(r.combine=e.combine),void 0!==e.side&&(r.side=e.side),void 0!==e.shadowSide&&(r.shadowSide=e.shadowSide),void 0!==e.opacity&&(r.opacity=e.opacity),void 0!==e.transparent&&(r.transparent=e.transparent),void 0!==e.alphaTest&&(r.alphaTest=e.alphaTest),void 0!==e.depthTest&&(r.depthTest=e.depthTest),void 0!==e.depthWrite&&(r.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(r.colorWrite=e.colorWrite),void 0!==e.stencilWrite&&(r.stencilWrite=e.stencilWrite),void 0!==e.stencilWriteMask&&(r.stencilWriteMask=e.stencilWriteMask),void 0!==e.stencilFunc&&(r.stencilFunc=e.stencilFunc),void 0!==e.stencilRef&&(r.stencilRef=e.stencilRef),void 0!==e.stencilFuncMask&&(r.stencilFuncMask=e.stencilFuncMask),void 0!==e.stencilFail&&(r.stencilFail=e.stencilFail),void 0!==e.stencilZFail&&(r.stencilZFail=e.stencilZFail),void 0!==e.stencilZPass&&(r.stencilZPass=e.stencilZPass),void 0!==e.wireframe&&(r.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(r.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(r.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(r.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(r.rotation=e.rotation),1!==e.linewidth&&(r.linewidth=e.linewidth),void 0!==e.dashSize&&(r.dashSize=e.dashSize),void 0!==e.gapSize&&(r.gapSize=e.gapSize),void 0!==e.scale&&(r.scale=e.scale),void 0!==e.polygonOffset&&(r.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(r.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(r.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.dithering&&(r.dithering=e.dithering),void 0!==e.alphaToCoverage&&(r.alphaToCoverage=e.alphaToCoverage),void 0!==e.premultipliedAlpha&&(r.premultipliedAlpha=e.premultipliedAlpha),void 0!==e.forceSinglePass&&(r.forceSinglePass=e.forceSinglePass),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.toneMapped&&(r.toneMapped=e.toneMapped),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.vertexColors&&("number"==typeof e.vertexColors?r.vertexColors=e.vertexColors>0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const t in e.uniforms){const i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case"t":r.uniforms[t].value=n(i.value);break;case"c":r.uniforms[t].value=(new zr).setHex(i.value);break;case"v2":r.uniforms[t].value=(new Kt).fromArray(i.value);break;case"v3":r.uniforms[t].value=(new rn).fromArray(i.value);break;case"v4":r.uniforms[t].value=(new wn).fromArray(i.value);break;case"m3":r.uniforms[t].value=(new $t).fromArray(i.value);break;case"m4":r.uniforms[t].value=(new Xn).fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(r.glslVersion=e.glslVersion),void 0!==e.extensions)for(const t in e.extensions)r.extensions[t]=e.extensions[t];
// for PointsMaterial
if(void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),
// maps
void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(
// Blender exporter used to export a scalar. See #7459
t=[t,t]),r.normalScale=(new Kt).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new Kt).fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(r.iridescenceMap=n(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new{ShadowMaterial:Wl,SpriteMaterial:ks,RawShaderMaterial:ql,ShaderMaterial:Ii,PointsMaterial:wc,MeshPhysicalMaterial:Kl,MeshStandardMaterial:Yl,MeshPhongMaterial:$l,MeshToonMaterial:Jl,MeshNormalMaterial:Xl,MeshLambertMaterial:Zl,MeshDepthMaterial:is,MeshDistanceMaterial:as,MeshBasicMaterial:Ur,MeshMatcapMaterial:eu,LineDashedMaterial:tu,LineBasicMaterial:uc,Material:Qr}[e]}}class Zu{static decodeText(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);
// Avoid the String.fromCharCode.apply(null, array) shortcut, which
// throws a "maximum call stack size exceeded" error for large arrays.
let t="";for(let n=0,r=e.length;n<r;n++)
// Implicitly assumes little-endian.
t+=String.fromCharCode(e[n]);try{
// merges multi-byte utf-8 characters.
return decodeURIComponent(escape(t))}catch(e){// see #16358
return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,t){
// Invalid URL
return"string"!=typeof e||""===e?"":(
// Host Relative URL
/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),
// Absolute URL http://,https://,//
/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class eh extends ri{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){const e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}class th extends Iu{constructor(e){super(e)}load(e,t,n,r){const i=this,a=new Su(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,(function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r&&r(t),i.manager.itemError(e)}}),n,r)}parse(e){const t={},n={};function r(e,r){if(void 0!==t[r])return t[r];const i=e.interleavedBuffers[r],a=function(e,t){if(void 0!==n[t])return n[t];const r=e.arrayBuffers,i=r[t],a=new Uint32Array(i).buffer;return n[t]=a,a}(e,i.buffer),o=en(i.type,a),s=new _s(o,i.stride);return s.uuid=i.uuid,t[r]=s,s}const i=e.isInstancedBufferGeometry?new eh:new ri,a=e.data.index;if(void 0!==a){const e=en(a.type,a.array);i.setIndex(new Wr(e,1))}const o=e.data.attributes;for(const t in o){const n=o[t];let a;if(n.isInterleavedBufferAttribute){const t=r(e.data,n.data);a=new Es(t,n.itemSize,n.offset,n.normalized)}else{const e=en(n.type,n.array);a=new(n.isInstancedBufferAttribute?rc:Wr)(e,n.itemSize,n.normalized)}void 0!==n.name&&(a.name=n.name),void 0!==n.usage&&a.setUsage(n.usage),void 0!==n.updateRange&&(a.updateRange.offset=n.updateRange.offset,a.updateRange.count=n.updateRange.count),i.setAttribute(t,a)}const s=e.data.morphAttributes;if(s)for(const t in s){const n=s[t],a=[];for(let t=0,i=n.length;t<i;t++){const i=n[t];let o;if(i.isInterleavedBufferAttribute){const t=r(e.data,i.data);o=new Es(t,i.itemSize,i.offset,i.normalized)}else{const e=en(i.type,i.array);o=new Wr(e,i.itemSize,i.normalized)}void 0!==i.name&&(o.name=i.name),a.push(o)}i.morphAttributes[t]=a}e.data.morphTargetsRelative&&(i.morphTargetsRelative=!0);const c=e.data.groups||e.data.drawcalls||e.data.offsets;if(void 0!==c)for(let e=0,t=c.length;e!==t;++e){const t=c[e];i.addGroup(t.start,t.count,t.materialIndex)}const l=e.data.boundingSphere;if(void 0!==l){const e=new rn;void 0!==l.center&&e.fromArray(l.center),i.boundingSphere=new Un(e,l.radius)}return e.name&&(i.name=e.name),e.userData&&(i.userData=e.userData),i}}class nh extends Iu{constructor(e){super(e)}load(e,t,n,r){const i=this,a=""===this.path?Zu.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||a;const o=new Su(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,(function(n){let a=null;try{a=JSON.parse(n)}catch(e){return void(void 0!==r&&r(e))}const o=a.metadata;void 0!==o&&void 0!==o.type&&"geometry"!==o.type.toLowerCase()?i.parse(a,t):void 0!==r&&r(new Error("THREE.ObjectLoader: Can't load "+e))}),n,r)}async loadAsync(e,t){const n=""===this.path?Zu.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||n;const r=new Su(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials);const i=await r.loadAsync(e,t),a=JSON.parse(i),o=a.metadata;if(void 0===o||void 0===o.type||"geometry"===o.type.toLowerCase())throw new Error("THREE.ObjectLoader: Can't load "+e);return await this.parseAsync(a)}parse(e,t){const n=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),i=this.parseGeometries(e.geometries,r),a=this.parseImages(e.images,(function(){void 0!==t&&t(c)})),o=this.parseTextures(e.textures,a),s=this.parseMaterials(e.materials,o),c=this.parseObject(e.object,i,s,o,n),l=this.parseSkeletons(e.skeletons,c);
if(this.bindSkeletons(c,l),void 0!==t){let e=!1;for(const t in a)if(a[t].data instanceof HTMLImageElement){e=!0;break}!1===e&&t(c)}return c}async parseAsync(e){const t=this.parseAnimations(e.animations),n=this.parseShapes(e.shapes),r=this.parseGeometries(e.geometries,n),i=await this.parseImagesAsync(e.images),a=this.parseTextures(e.textures,i),o=this.parseMaterials(e.materials,a),s=this.parseObject(e.object,r,o,a,t),c=this.parseSkeletons(e.skeletons,s);return this.bindSkeletons(s,c),s}parseShapes(e){const t={};if(void 0!==e)for(let n=0,r=e.length;n<r;n++){const r=(new il).fromJSON(e[n]);t[r.uuid]=r}return t}parseSkeletons(e,t){const n={},r={};
// create skeletons
if(
// generate bone lookup table
t.traverse((function(e){e.isBone&&(r[e.uuid]=e)})),void 0!==e)for(let t=0,i=e.length;t<i;t++){const i=(new nc).fromJSON(e[t],r);n[i.uuid]=i}return n}parseGeometries(e,t){const n={};if(void 0!==e){const r=new th;for(let i=0,a=e.length;i<a;i++){let a;const o=e[i];switch(o.type){case"BufferGeometry":case"InstancedBufferGeometry":a=r.parse(o);break;default:o.type in Vl&&(a=Vl[o.type].fromJSON(o,t))}a.uuid=o.uuid,void 0!==o.name&&(a.name=o.name),void 0!==o.userData&&(a.userData=o.userData),n[o.uuid]=a}}return n}parseMaterials(e,t){const n={},r={};// MultiMaterial
if(void 0!==e){const i=new Xu;i.setTextures(t);for(let t=0,a=e.length;t<a;t++){const a=e[t];void 0===n[a.uuid]&&(n[a.uuid]=i.parse(a)),r[a.uuid]=n[a.uuid]}}return r}parseAnimations(e){const t={};if(void 0!==e)for(let n=0;n<e.length;n++){const r=e[n],i=bu.parse(r);t[i.uuid]=i}return t}parseImages(e,t){const n=this,r={};let i;function a(e){if("string"==typeof e){const t=e;return function(e){return n.manager.itemStart(e),i.load(e,(function(){n.manager.itemEnd(e)}),void 0,(function(){n.manager.itemError(e),n.manager.itemEnd(e)}))}(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(t)?t:n.resourcePath+t)}return e.data?{data:en(e.type,e.data),width:e.width,height:e.height}:null}if(void 0!==e&&e.length>0){const n=new Cu(t);i=new Mu(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t<n;t++){const n=e[t],i=n.url;if(Array.isArray(i)){
// load array of images e.g CubeTexture
const e=[];for(let t=0,n=i.length;t<n;t++){const n=a(i[t]);null!==n&&(n instanceof HTMLImageElement?e.push(n):
// special case: handle array of data textures for cube textures
e.push(new Zs(n.data,n.width,n.height)))}r[n.uuid]=new vn(e)}else{
// load single image
const e=a(n.url);r[n.uuid]=new vn(e)}}}return r}async parseImagesAsync(e){const t=this,n={};let r;async function i(e){if("string"==typeof e){const n=e,i=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(n)?n:t.resourcePath+n;return await r.loadAsync(i)}return e.data?{data:en(e.type,e.data),width:e.width,height:e.height}:null}if(void 0!==e&&e.length>0){r=new Mu(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t<r;t++){const r=e[t],a=r.url;if(Array.isArray(a)){
// load array of images e.g CubeTexture
const e=[];for(let t=0,n=a.length;t<n;t++){const n=a[t],r=await i(n);null!==r&&(r instanceof HTMLImageElement?e.push(r):
// special case: handle array of data textures for cube textures
e.push(new Zs(r.data,r.width,r.height)))}n[r.uuid]=new vn(e)}else{
// load single image
const e=await i(r.url);n[r.uuid]=new vn(e)}}}return n}parseTextures(e,t){function n(e,t){return"number"==typeof e?e:t[e]}const r={};if(void 0!==e)for(let i=0,a=e.length;i<a;i++){const a=e[i];a.image,t[a.image];const o=t[a.image],s=o.data;let c;Array.isArray(s)?(c=new Mi,6===s.length&&(c.needsUpdate=!0)):(c=s&&s.data?new Zs:new bn,s&&(c.needsUpdate=!0)),c.source=o,c.uuid=a.uuid,void 0!==a.name&&(c.name=a.name),void 0!==a.mapping&&(c.mapping=n(a.mapping,rh)),void 0!==a.offset&&c.offset.fromArray(a.offset),void 0!==a.repeat&&c.repeat.fromArray(a.repeat),void 0!==a.center&&c.center.fromArray(a.center),void 0!==a.rotation&&(c.rotation=a.rotation),void 0!==a.wrap&&(c.wrapS=n(a.wrap[0],ih),c.wrapT=n(a.wrap[1],ih)),void 0!==a.format&&(c.format=a.format),void 0!==a.internalFormat&&(c.internalFormat=a.internalFormat),void 0!==a.type&&(c.type=a.type),void 0!==a.encoding&&(c.encoding=a.encoding),void 0!==a.minFilter&&(c.minFilter=n(a.minFilter,ah)),void 0!==a.magFilter&&(c.magFilter=n(a.magFilter,ah)),void 0!==a.anisotropy&&(c.anisotropy=a.anisotropy),void 0!==a.flipY&&(c.flipY=a.flipY),void 0!==a.generateMipmaps&&(c.generateMipmaps=a.generateMipmaps),void 0!==a.premultiplyAlpha&&(c.premultiplyAlpha=a.premultiplyAlpha),void 0!==a.unpackAlignment&&(c.unpackAlignment=a.unpackAlignment),void 0!==a.userData&&(c.userData=a.userData),r[a.uuid]=c}return r}parseObject(e,t,n,r,i){let a,o,s;function c(e){return t[e],t[e]}function l(e){if(void 0!==e){if(Array.isArray(e)){const t=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];n[i],t.push(n[i])}return t}return n[e],n[e]}}function u(e){return r[e],r[e]}switch(e.type){case"Scene":a=new Cs,void 0!==e.background&&(Number.isInteger(e.background)?a.background=new zr(e.background):a.background=u(e.background)),void 0!==e.environment&&(a.environment=u(e.environment)),void 0!==e.fog&&("Fog"===e.fog.type?a.fog=new xs(e.fog.color,e.fog.near,e.fog.far):"FogExp2"===e.fog.type&&(a.fog=new ws(e.fog.color,e.fog.density))),void 0!==e.backgroundBlurriness&&(a.backgroundBlurriness=e.backgroundBlurriness),void 0!==e.backgroundIntensity&&(a.backgroundIntensity=e.backgroundIntensity);break;case"PerspectiveCamera":a=new ki(e.fov,e.aspect,e.near,e.far),void 0!==e.focus&&(a.focus=e.focus),void 0!==e.zoom&&(a.zoom=e.zoom),void 0!==e.filmGauge&&(a.filmGauge=e.filmGauge),void 0!==e.filmOffset&&(a.filmOffset=e.filmOffset),void 0!==e.view&&(a.view=Object.assign({},e.view));break;case"OrthographicCamera":a=new Xi(e.left,e.right,e.top,e.bottom,e.near,e.far),void 0!==e.zoom&&(a.zoom=e.zoom),void 0!==e.view&&(a.view=Object.assign({},e.view));break;case"AmbientLight":a=new Yu(e.color,e.intensity);break;case"DirectionalLight":a=new qu(e.color,e.intensity);break;case"PointLight":a=new Vu(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":a=new Ku(e.color,e.intensity,e.width,e.height);break;case"SpotLight":a=new Fu(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay);break;case"HemisphereLight":a=new Pu(e.color,e.groundColor,e.intensity);break;case"LightProbe":a=(new Ju).fromJSON(e);break;case"SkinnedMesh":o=c(e.geometry),s=l(e.material),a=new Js(o,s),void 0!==e.bindMode&&(a.bindMode=e.bindMode),void 0!==e.bindMatrix&&a.bindMatrix.fromArray(e.bindMatrix),void 0!==e.skeleton&&(a.skeleton=e.skeleton);break;case"Mesh":o=c(e.geometry),s=l(e.material),a=new yi(o,s);break;case"InstancedMesh":o=c(e.geometry),s=l(e.material);const t=e.count,n=e.instanceMatrix,r=e.instanceColor;a=new lc(o,s,t),a.instanceMatrix=new rc(new Float32Array(n.array),16),void 0!==r&&(a.instanceColor=new rc(new Float32Array(r.array),r.itemSize));break;case"LOD":a=new Vs;break;case"Line":a=new mc(c(e.geometry),l(e.material));break;case"LineLoop":a=new bc(c(e.geometry),l(e.material));break;case"LineSegments":a=new Ac(c(e.geometry),l(e.material));break;case"PointCloud":case"Points":a=new Ec(c(e.geometry),l(e.material));break;case"Sprite":a=new zs(l(e.material));break;case"Group":a=new ds;break;case"Bone":a=new Xs;break;default:a=new Cr}if(a.uuid=e.uuid,void 0!==e.name&&(a.name=e.name),void 0!==e.matrix?(a.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(a.matrixAutoUpdate=e.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)):(void 0!==e.position&&a.position.fromArray(e.position),void 0!==e.rotation&&a.rotation.fromArray(e.rotation),void 0!==e.quaternion&&a.quaternion.fromArray(e.quaternion),void 0!==e.scale&&a.scale.fromArray(e.scale)),void 0!==e.castShadow&&(a.castShadow=e.castShadow),void 0!==e.receiveShadow&&(a.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(a.shadow.bias=e.shadow.bias),void 0!==e.shadow.normalBias&&(a.shadow.normalBias=e.shadow.normalBias),void 0!==e.shadow.radius&&(a.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&a.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(a.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(a.visible=e.visible),void 0!==e.frustumCulled&&(a.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(a.renderOrder=e.renderOrder),void 0!==e.userData&&(a.userData=e.userData),void 0!==e.layers&&(a.layers.mask=e.layers),void 0!==e.children){const o=e.children;for(let e=0;e<o.length;e++)a.add(this.parseObject(o[e],t,n,r,i))}if(void 0!==e.animations){const t=e.animations;for(let e=0;e<t.length;e++){const n=t[e];a.animations.push(i[n])}}if("LOD"===e.type){void 0!==e.autoUpdate&&(a.autoUpdate=e.autoUpdate);const t=e.levels;for(let e=0;e<t.length;e++){const n=t[e],r=a.getObjectByProperty("uuid",n.object);void 0!==r&&a.addLevel(r,n.distance,n.hysteresis)}}return a}bindSkeletons(e,t){0!==Object.keys(t).length&&e.traverse((function(e){if(!0===e.isSkinnedMesh&&void 0!==e.skeleton){const n=t[e.skeleton];void 0===n||e.bind(n,e.bindMatrix)}}))}}const rh={UVMapping:300,CubeReflectionMapping:ee,CubeRefractionMapping:te,EquirectangularReflectionMapping:ne,EquirectangularRefractionMapping:re,CubeUVReflectionMapping:ie},ih={RepeatWrapping:ae,ClampToEdgeWrapping:oe,MirroredRepeatWrapping:se},ah={NearestFilter:ce,NearestMipmapNearestFilter:le,NearestMipmapLinearFilter:ue,LinearFilter:he,LinearMipmapNearestFilter:fe,LinearMipmapLinearFilter:de};class oh extends Iu{constructor(e){super(e),this.isImageBitmapLoader=!0,this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,a=xu.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;const o={};o.credentials="anonymous"===this.crossOrigin?"same-origin":"include",o.headers=this.requestHeader,fetch(e,o).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){xu.add(e,n),t&&t(n),i.manager.itemEnd(e)})).catch((function(t){r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)})),i.manager.itemStart(e)}}class sh{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=ch(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=ch();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function ch(){return("undefined"==typeof performance?Date:performance).now();// see #10732
}class lh{constructor(e,t,n){let r,i,a;
// buffer layout: [ incoming | accu0 | accu1 | orig | addAccu | (optional work) ]

// interpolators can use .buffer as their .result
// the data then goes to 'incoming'

// 'accu0' and 'accu1' are used frame-interleaved for
// the cumulative result and are compared to detect
// changes

// 'orig' stores the original state of the property

// 'add' is used for additive cumulative results

// 'work' is optional and is only present for quaternion types. It is used
// to store intermediate quaternion multiplication results
switch(this.binding=e,this.valueSize=n,t){case"quaternion":r=this._slerp,i=this._slerpAdditive,a=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,
// Use the regular mix function and for additive on these types,
// additive is not relevant for non-numeric types
i=this._select,a=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,i=this._lerpAdditive,a=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=a,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}
// accumulate data in the 'incoming' region into 'accu<i>'
accumulate(e,t){
// note: happily accumulating nothing when weight = 0, the caller knows
// the weight and shouldn't have made the call in the first place
const n=this.buffer,r=this.valueSize,i=e*r+r;let a=this.cumulativeWeight;if(0===a){
// accuN := incoming * weight
for(let e=0;e!==r;++e)n[i+e]=n[e];a=t}else{
// accuN := accuN + incoming * weight
a+=t;const e=t/a;this._mixBufferRegion(n,i,0,e,r)}this.cumulativeWeight=a}
// accumulate data in the 'incoming' region into 'add'
accumulateAdditive(e){const t=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&
// add = identity
this._setIdentity(),
// add := add + incoming * weight
this._mixBufferRegionAdditive(t,r,0,e,n),this.cumulativeWeightAdditive+=e}
// apply the state of 'accu<i>' to the binding when accus differ
apply(e){const t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,a=this.cumulativeWeightAdditive,o=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){
// accuN := accuN + original * ( 1 - cumulativeWeight )
const e=t*this._origIndex;this._mixBufferRegion(n,r,e,1-i,t)}a>0&&
// accuN := accuN + additive accuN
this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){
// value has changed -> update scene graph
o.setValue(n,r);break}}
// remember the state of the bound property and copy it to both accus
saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);
// accu[0..1] := orig -- initially detect changes against the original
for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];
// Add to identity for additive
this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}
// apply the state previously taken via 'saveOriginalState' to the binding
restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n<t;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]}
// mix functions
_select(e,t,n,r,i){if(r>=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){nn.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const a=this._workIndex*i;
// Store result in intermediate buffer offset
nn.multiplyQuaternionsFlat(e,a,e,t,e,n),
// Slerp to the intermediate result
nn.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){const a=1-r;for(let o=0;o!==i;++o){const i=t+o;e[i]=e[i]*a+e[n+o]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]+e[n+a]*r}}}
// Characters [].:/ are reserved for track binding syntax.
const uh="\\[\\]\\.:\\/",hh=new RegExp("["+uh+"]","g"),fh="[^"+uh+"]",dh="[^"+uh.replace("\\.","")+"]",ph=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",fh)+/(WCOD+)?/.source.replace("WCOD",dh)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",fh)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",fh)+"$"),gh=["material","materials","bones","map"];
// Note: This class uses a State pattern on a per-method basis:
// 'bind' sets 'this.getValue' / 'setValue' and shadows the
// prototype version of these methods with one that represents
// the bound state. When the property is not found, the methods
// become no-ops.
class mh{constructor(e,t,n){this.path=t,this.parsedPath=n||mh.parseTrackName(t),this.node=mh.findNode(e,this.parsedPath.nodeName),this.rootNode=e,
// initial state of these methods that calls 'bind'
this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new mh.Composite(e,t,n):new mh(e,t,n)}
/**
	 * Replaces spaces with underscores and removes unsupported characters from
	 * node names, to ensure compatibility with parseTrackName().
	 *
	 * @param {string} name Node name to be sanitized.
	 * @return {string}
	 */static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(hh,"")}static parseTrackName(e){const t=ph.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={
// directoryName: matches[ 1 ], // (tschw) currently unused
nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],// required
propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);
// Object names must be checked against an allowlist. Otherwise, there
// is no way to parse 'foo.bar.baz': 'baz' must be a property, but
// 'bar' could be the objectName, or part of a nodeName (which can
// include '.' characters).
-1!==gh.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;
// search into skeleton bones.
if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}
// search into node subtree.
if(e.children){const n=function(e){for(let r=0;r<e.length;r++){const i=e[r];if(i.name===t||i.uuid===t)return i;const a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}
// these are used to "bind" a nonexistent property
_getValue_unavailable(){}_setValue_unavailable(){}
// Getters
_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}
// Direct
_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}
// EntireArray
_setValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}
// ArrayElement
_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}
// HasToFromArray
_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}
// create getter / setter pair for a property in the scene graph
bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,r=t.propertyName;let i=t.propertyIndex;
// ensure there is a value node
if(e||(e=mh.findNode(this.rootNode,t.nodeName),this.node=e),
// set fail state so we can just 'return' on error
this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return;if(n){let r=t.objectIndex;
// special cases were we need to reach deeper into the hierarchy to get the face materials....
switch(n){case"materials":if(!e.material)return;if(!e.material.materials)return;e=e.material.materials;break;case"bones":if(!e.skeleton)return;
// potential future optimization: skip this if propertyIndex is already an integer
// and convert the integer string to a true integer.
e=e.skeleton.bones;
// support resolving morphTarget names into indices.
for(let t=0;t<e.length;t++)if(e[t].name===r){r=t;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material)return;if(!e.material.map)return;e=e.material.map;break;default:if(void 0===e[n])return;e=e[n]}if(void 0!==r){if(void 0===e[r])return;e=e[r]}}
// resolve property
const a=e[r];if(void 0===a){t.nodeName;return}
// determine versioning scheme
let o=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?// material
o=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(// node transform
o=this.Versioning.MatrixWorldNeedsUpdate);
// determine how the property gets bound
let s=this.BindingType.Direct;if(void 0!==i){
// access a sub element of the property array (only primitives are supported right now)
if("morphTargetInfluences"===r){
// potential optimization, skip this if propertyIndex is already an integer, and convert the integer string to a true integer.
// support resolving morphTarget names into indices.
if(!e.geometry)return;if(!e.geometry.morphAttributes)return;void 0!==e.morphTargetDictionary[i]&&(i=e.morphTargetDictionary[i])}s=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=i}else void 0!==a.fromArray&&void 0!==a.toArray?(
// must use copy for Object3D.Euler/Quaternion
s=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(s=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=r;
// select getter / setter
this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][o]}unbind(){this.node=null,
// back to the prototype version of getValue / setValue
// note: avoiding to mutate the shape of 'this' via 'delete'
this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}mh.Composite=class{constructor(e,t,n){const r=n||mh.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();// bind all binding
const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];
// and only call .getValue on the first
void 0!==r&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},mh.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},mh.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},mh.prototype.GetterByBindingType=[mh.prototype._getValue_direct,mh.prototype._getValue_array,mh.prototype._getValue_arrayElement,mh.prototype._getValue_toArray],mh.prototype.SetterByBindingTypeAndVersioning=[[
// Direct
mh.prototype._setValue_direct,mh.prototype._setValue_direct_setNeedsUpdate,mh.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[
// EntireArray
mh.prototype._setValue_array,mh.prototype._setValue_array_setNeedsUpdate,mh.prototype._setValue_array_setMatrixWorldNeedsUpdate],[
// ArrayElement
mh.prototype._setValue_arrayElement,mh.prototype._setValue_arrayElement_setNeedsUpdate,mh.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[
// HasToFromArray
mh.prototype._setValue_fromArray,mh.prototype._setValue_fromArray_setNeedsUpdate,mh.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class vh{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const i=t.tracks,a=i.length,o=new Array(a),s={endingStart:gt,endingEnd:gt};for(let e=0;e!==a;++e){const t=i[e].createInterpolant(null);o[e]=t,t.settings=s}this._interpolantSettings=s,this._interpolants=o,// bound by the mixer
// inside: PropertyMixer (managed by the mixer)
this._propertyBindings=new Array(a),this._cacheIndex=null,// for the memory manager
this._byClipCacheIndex=null,// for the memory manager
this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,this._loopCount=-1,
// global mixer time when the action is to be started
// it's set back to 'null' upon start of the action
this._startTime=null,
// scaled local time of the action
// gets clamped or wrapped to 0..clip.duration according to loop
this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,// no. of repetitions when looping
this.paused=!1,// true -> zero effective time scale
this.enabled=!0,// false -> zero effective weight
this.clampWhenFinished=!1,// keep feeding the last frame?
this.zeroSlopeAtStart=!0,// for smooth interpolation w/o separate
this.zeroSlopeAtEnd=!0}
// State & Scheduling
play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){// forget scheduling
return this.paused=!1,this.enabled=!0,this.time=0,// restart clip
this._loopCount=-1,// forget previous loops
this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}
// return true when play has been called
isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}
// Weight
// set the weight stopping any scheduled fading
// although .enabled = false yields an effective weight of zero, this
// method does *not* change .enabled, because it would be confusing
setEffectiveWeight(e){return this.weight=e,
// note: same logic as when updated at runtime
this._effectiveWeight=this.enabled?e:0,this.stopFading()}
// return the weight considering fading and .enabled
getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,i=r/n,a=n/r;e.warp(1,i,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}
// Time Scale Control
// set the time scale stopping any scheduled warping
// although .paused = true yields an effective time scale of zero, this
// method does *not* change .paused, because it would be confusing
setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}
// return the time scale considering warping and .paused
getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,i=r.time,a=this.timeScale;let o=this._timeScaleInterpolant;null===o&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);const s=o.parameterPositions,c=o.sampleValues;return s[0]=i,s[1]=i+n,c[0]=e/a,c[1]=t/a,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}
// Object Accessors
getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}
// Interna
_update(e,t,n,r){
// called by the mixer
if(!this.enabled)
// call ._updateWeight() to update ._effectiveWeight
return void this._updateWeight(e);const i=this._startTime;if(null!==i){
// check for scheduled start of action
const r=(e-i)*n;r<0||0===n?t=0:(this._startTime=null,// unschedule
t=n*r)}
// apply time scale and advance time
t*=this._updateTimeScale(e);const a=this._updateTime(t),o=this._updateWeight(e);
// note: _updateTime may disable the action resulting in
// an effective weight of 0
if(o>0){const e=this._interpolants,t=this._propertyBindings;if(2501===this.blendMode)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(o);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,o)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(
// faded out, disable
this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?
// motion has halted, pause
this.paused=!0:
// warp done - apply final time scale
this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const a=2202===n;if(0===e)return-1===i||!a||1&~i?r:t-r;if(2200===n){-1===i&&(
// just started
this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(// repetitive Repeat or PingPong
-1===i&&(
// just started
e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):
// when looping in reverse direction, the initial
// transition through zero counts as a repetition,
// so leave loopCount at -1
this._setEndings(0===this.repetitions,!0,a)),r>=t||r<0){
// wrap around
const n=Math.floor(r/t);// signed
r-=t*n,i+=Math.abs(n);const o=this.repetitions-i;if(o<=0)
// have to stop (switch state, clamp time, fire event)
this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{
// keep running
if(1===o){
// entering the last round
const t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(a&&!(1&~i))
// invert time for the "pong round"
return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=mt,r.endingEnd=mt):(
// assuming for LoopOnce atStart == atEnd == true
r.endingStart=e?this.zeroSlopeAtStart?mt:gt:vt,r.endingEnd=t?this.zeroSlopeAtEnd?mt:gt:vt)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);const o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}}const yh=new Float32Array(1);class Ah extends Pt{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,c=this._bindingsByRootAndName;let l=c[s];void 0===l&&(l={},c[s]=l);for(let e=0;e!==i;++e){const i=r[e],c=i.name;let u=l[c];if(void 0!==u)++u.referenceCount,a[e]=u;else{if(u=a[e],void 0!==u){
// existing binding, make sure the cache knows
null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,s,c));continue}const r=t&&t._propertyBindings[e].binding.parsedPath;u=new lh(mh.create(n,c,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,s,c),a[e]=u}o[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){
// this action has been forgotten by the cache, but the user
// appears to be still using it -> rebind
const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;
// increment reference counts / sort out state
for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;
// decrement reference counts / sort out state
for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}
// Memory manager
_initMemoryManager(){this._actions=[],// 'nActiveActions' followed by inactive ones
this._nActiveActions=0,this._actionsByClip={},
// inside:
// {
// 	knownActions: Array< AnimationAction > - used as prototypes
// 	actionByRoot: AnimationAction - lookup
// }
this._bindings=[],// 'nActiveBindings' followed by inactive ones
this._nActiveBindings=0,this._bindingsByRootAndName={},// inside: Map< name, PropertyMixer >
this._controlInterpolants=[],// same game as above
this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}
// Memory management for AnimationAction objects
_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t<this._nActiveActions}_addInactiveAction(e,t,n){const r=this._actions,i=this._actionsByClip;let a=i[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=a;else{const t=a.knownActions;e._byClipCacheIndex=t.length,t.push(e)}e._cacheIndex=r.length,r.push(e),a.actionByRoot[n]=e}_removeInactiveAction(e){const t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;const i=e._clip.uuid,a=this._actionsByClip,o=a[i],s=o.knownActions,c=s[s.length-1],l=e._byClipCacheIndex;c._byClipCacheIndex=l,s[l]=c,s.pop(),e._byClipCacheIndex=null;delete o.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete a[i],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==--n.referenceCount&&this._removeInactiveBinding(n)}}_lendAction(e){
// [ active actions |  inactive actions  ]
// [  active actions >| inactive actions ]
//                 s        a
//                  <-swap->
//                 a        s
const t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_takeBackAction(e){
// [  active actions  | inactive actions ]
// [ active actions |< inactive actions  ]
//        a        s
//         <-swap->
//        s        a
const t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}
// Memory management for PropertyMixer objects
_addInactiveBinding(e,t,n){const r=this._bindingsByRootAndName,i=this._bindings;let a=r[t];void 0===a&&(a={},r[t]=a),a[n]=e,e._cacheIndex=i.length,i.push(e)}_removeInactiveBinding(e){const t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,a=this._bindingsByRootAndName,o=a[r],s=t[t.length-1],c=e._cacheIndex;s._cacheIndex=c,t[c]=s,t.pop(),delete o[i],0===Object.keys(o).length&&delete a[r]}_lendBinding(e){const t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_takeBackBinding(e){const t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}
// Memory management of Interpolants for weight and time scale
_lendControlInterpolant(){const e=this._controlInterpolants,t=this._nActiveControlInterpolants++;let n=e[t];return void 0===n&&(n=new uu(new Float32Array(2),new Float32Array(2),1,yh),n.__cacheIndex=t,e[t]=n),n}_takeBackControlInterpolant(e){const t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i}
// return an action for a clip optionally using a custom root target
// object (this method allocates a lot of dynamic memory in case a
// previously unknown clip/root combination is specified)
clipAction(e,t,n){const r=t||this._root,i=r.uuid;let a="string"==typeof e?bu.findByName(r,e):e;const o=null!==a?a.uuid:e,s=this._actionsByClip[o];let c=null;if(void 0===n&&(n=null!==a?a.blendMode:yt),void 0!==s){const e=s.actionByRoot[i];if(void 0!==e&&e.blendMode===n)return e;
// we know the clip, so we don't have to parse all
// the bindings again but can just copy
c=s.knownActions[0],
// also, take the clip from the prototype action
null===a&&(a=c._clip)}
// clip must be known when specified via string
if(null===a)return null;
// allocate all resources required to run it
const l=new vh(this,a,t,n);return this._bindAction(l,c),
// and make the action known to the memory manager
this._addInactiveAction(l,o,i),l}
// get an existing action
existingAction(e,t){const n=t||this._root,r=n.uuid,i="string"==typeof e?bu.findByName(n,e):e,a=i?i.uuid:e,o=this._actionsByClip[a];return void 0!==o&&o.actionByRoot[r]||null}
// deactivates all previously scheduled actions
stopAllAction(){const e=this._actions;for(let t=this._nActiveActions-1;t>=0;--t)e[t].stop();return this}
// advance the time and update apply the animation
update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;
// run active actions
for(let o=0;o!==n;++o){t[o]._update(r,e,i,a)}
// update scene graph
const o=this._bindings,s=this._nActiveBindings;for(let e=0;e!==s;++e)o[e].apply(a);return this}
// Allows you to seek to a specific time in an animation.
setTime(e){this.time=0;// Zero out time attribute for AnimationMixer object;
for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;// Zero out time attribute for all associated AnimationAction objects.
return this.update(e);// Update used to set exact time. Returns "this" AnimationMixer object.
}
// return this mixer's root target object
getRoot(){return this._root}
// free all resources specific to a particular clip
uncacheClip(e){const t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){
// note: just calling _removeInactiveAction would mess up the
// iteration state and also require updating the state we can
// just throw away
const e=i.knownActions;for(let n=0,r=e.length;n!==r;++n){const r=e[n];this._deactivateAction(r);const i=r._cacheIndex,a=t[t.length-1];r._cacheIndex=null,r._byClipCacheIndex=null,a._cacheIndex=i,t[i]=a,t.pop(),this._removeInactiveBindingsForAction(r)}delete r[n]}}
// free all resources specific to a particular root target object
uncacheRoot(e){const t=e.uuid,n=this._actionsByClip;for(const e in n){const r=n[e].actionByRoot[t];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}const r=this._bindingsByRootAndName[t];if(void 0!==r)for(const e in r){const t=r[e];t.restoreOriginalState(),this._removeInactiveBinding(t)}}
// remove a targeted clip from the cache
uncacheAction(e,t){const n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}class bh{constructor(e,t,n=0,r=1/0){this.ray=new Jn(e,t),
// direction is assumed to be normalized (for accurate distance calculations)
this.near=n,this.far=r,this.camera=null,this.layers=new lr,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){
// direction is assumed to be normalized (for accurate distance calculations)
this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera&&(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),// set origin in plane of camera
this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t)}intersectObject(e,t=!0,n=[]){return xh(e,this,n,t),n.sort(wh),n}intersectObjects(e,t=!0,n=[]){for(let r=0,i=e.length;r<i;r++)xh(e[r],this,n,t);return n.sort(wh),n}}function wh(e,t){return e.distance-t.distance}function xh(e,t,n,r){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===r){const r=e.children;for(let e=0,i=r.length;e<i;e++)xh(r[e],t,n,!0)}}
/**
 * Ref: https://en.wikipedia.org/wiki/Spherical_coordinate_system
 *
 * The polar angle (phi) is measured from the positive y-axis. The positive y-axis is up.
 * The azimuthal angle (theta) is measured from the positive z-axis.
 */class Ch{constructor(e=1,t=0,n=0){// azimuthal angle
return this.radius=e,this.phi=t,// polar angle
this.theta=n,this}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}
// restrict phi to be between EPS and PI-EPS
makeSafe(){const e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(Ft(t/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}
/**
 * Ref: https://en.wikipedia.org/wiki/Cylindrical_coordinate_system
 */"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:r}})),"undefined"!=typeof window&&(window.__THREE__||(window.__THREE__=r))
/***/},
/***/"5a94":
/***/function(e,t,n){var r=n("b367")("keys"),i=n("8b1a");e.exports=function(e){return r[e]||(r[e]=i(e))}},
/***/"5b01":
/***/function(e,t,n){var r=n("8eeb"),i=n("ec69");
/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t){return e&&r(t,i(t),e)}},
/***/"5b1e":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("5d6f"),a=n("9b6f"),o=n("6373"),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n("55c7")(s)),"Array",{
// 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
lastIndexOf:function(e/* , fromIndex = @[*-1] */){
// convert -0 to +0
if(c)return s.apply(this,arguments)||0;var t=i(this),n=o(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},
/***/"5b90":
/***/function(e,t,n){"use strict";
/**
 * Determine if a DOM element matches a CSS selector
 *
 * @param {Element} elem
 * @param {String} selector
 * @return {Boolean}
 * @api public
 */
/**
 * Expose `matches`
 */
e.exports=function(e,t){
// Vendor-specific implementations of `Element.prototype.matches()`.
var n=window.Element.prototype,r=n.matches||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;if(!e||1!==e.nodeType)return!1;var i=e.parentNode;
// use native 'matches'
if(r)return r.call(e,t);
// native support for `matches` is missing and a fallback is required
for(var a=i.querySelectorAll(t),o=a.length,s=0;s<o;s++)if(a[s]===e)return!0;return!1}},
/***/"5bbd":
/***/function(e,t,n){"use strict";var r,i,a,o,s=n("cee8"),c=n("93e0"),l=n("911a"),u=n("5155"),h=n("f083"),f=n("9fe8"),d=n("2ce8"),p=n("928a"),g=n("8fc4"),m=n("1147a"),v=n("eb9a").set,y=n("bde8")(),A=n("e7ff"),b=n("2d5b"),w=n("64ff"),x=n("44e8"),C="Promise",_=c.TypeError,I=c.process,E=I&&I.versions,k=E&&E.v8||"",S=c[C],B="process"==u(I),M=function(){/* empty */},T=i=A.f,O=!!function(){try{
// correct subclassing with @@species support
var e=S.resolve(1),t=(e.constructor={})[n("de24")("species")]=function(e){e(M,M)};
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
return(B||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){/* empty */}}(),D=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o,s=i?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(i||(2==e._h&&R(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),// may throw
u&&(u.exit(),o=!0)),n===t.promise?l(_("Promise-chain cycle")):(a=D(n))?a.call(n,c,l):c(n)):l(r)}catch(e){u&&!o&&u.exit(),l(e)}};n.length>a;)o(n[a++]);// variable length - can't use forEach
e._c=[],e._n=!1,t&&!e._h&&L(e)}))}},L=function(e){v.call(c,(function(){var t,n,r,i=e._v,a=Q(e);if(a&&(t=b((function(){B?I.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
e._h=B||Q(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},Q=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){v.call(c,(function(){var t;B?I.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},j=function(e){var t=this;t._d||(t._d=!0,// unwrap
(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;// unwrap
try{if(n===e)throw _("Promise can't be resolved itself");(t=D(e))?y((function(){var r={_w:n,_d:!1};// wrap
try{t.call(e,l(N,r,1),l(j,r,1))}catch(e){j.call(r,e)}})):(n._v=e,n._s=1,P(n,!1))}catch(e){j.call({_w:n,_d:!1},e);// wrap
}}};
// constructor polyfill
O||(
// 25.4.3.1 Promise(executor)
S=function(e){p(this,S,C,"_h"),d(e),r.call(this);try{e(l(N,this,1),l(j,this,1))}catch(e){j.call(this,e)}},(
// eslint-disable-next-line no-unused-vars
r=function(e){this._c=[],// <- awaiting reactions
this._a=void 0,// <- checked in isUnhandled reactions
this._s=0,// <- state
this._d=!1,// <- done
this._v=void 0,// <- value
this._h=0,// <- rejection state, 0 - default, 1 - handled, 2 - unhandled
this._n=!1}).prototype=n("c668")(S.prototype,{
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
then:function(e,t){var n=T(m(this,S));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=B?I.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},
// 25.4.5.1 Promise.prototype.catch(onRejected)
catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=l(N,e,1),this.reject=l(j,e,1)},A.f=T=function(e){return e===S||e===o?new a(e):i(e)}),h(h.G+h.W+h.F*!O,{Promise:S}),n("27bd")(S,C),n("3a2f")(C),o=n("0ae2")[C],
// statics
h(h.S+h.F*!O,C,{
// 25.4.4.5 Promise.reject(r)
reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!O),C,{
// 25.4.4.6 Promise.resolve(x)
resolve:function(e){return x(s&&this===o?S:this,e)}}),h(h.S+h.F*!(O&&n("ebe8")((function(e){S.all(e).catch(M)}))),C,{
// 25.4.4.1 Promise.all(iterable)
all:function(e){var t=this,n=T(t),r=n.resolve,i=n.reject,a=b((function(){var n=[],a=0,o=1;g(e,!1,(function(e){var s=a++,c=!1;n.push(void 0),o++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--o||r(n))}),i)})),--o||r(n)}));return a.e&&i(a.v),n.promise},
// 25.4.4.4 Promise.race(iterable)
race:function(e){var t=this,n=T(t),r=n.reject,i=b((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},
/***/"5c02":
/***/function(e,t,n){
// 20.2.2.11 Math.clz32(x)
var r=n("f083");r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},
/***/"5c0c":
/***/function(e,t,n){
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
var r=n("2761"),i=n("8d87"),a=n("ed60"),o=n("2fb2"),s=n("f083"),c=n("fb32"),l=n("d77f"),u=n("9fe8");s(s.S,"Reflect",{set:function e(t,n,s/* , receiver */){var h,f,d=arguments.length<4?t:arguments[3],p=i.f(l(t),n);if(!p){if(u(f=a(t)))return e(f,n,s,d);p=c(0)}if(o(p,"value")){if(!1===p.writable||!u(d))return!1;if(h=i.f(d,n)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,r.f(d,n,h)}else r.f(d,n,c(0,s));return!0}return void 0!==p.set&&(p.set.call(d,s),!0)}})},
/***/"5c10":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("7433"),a=n("1c2d"),o=n("6fc7"),s=n("6373"),c=[].slice;
// fallback for not array-like ES3 strings and DOM objects
r(r.P+r.F*n("f937")((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=a(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=o(e,n),l=o(t,n),u=s(l-i),h=new Array(u),f=0;f<u;f++)h[f]="String"==r?this.charAt(i+f):this[i+f];return h}})},
/***/"5c3a":
/***/function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
dow:1,// Monday is the first day of the week.
doy:4}})}(n("c1df"));
/***/},
/***/"5c69":
/***/function(e,t,n){var r=n("087d"),i=n("0621");
/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */e.exports=function e(t,n,a,o,s){var c=-1,l=t.length;for(a||(a=i),s||(s=[]);++c<l;){var u=t[c];n>0&&a(u)?n>1?
// Recursively flatten arrays (susceptible to call stack limits).
e(u,n-1,a,o,s):r(s,u):o||(s[s.length]=u)}return s}},
/***/"5c6c":
/***/function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},
/***/"5c8a":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("09f4");
/** Used to compose bitmasks for cloning. */
/* harmony default export */t.a=
/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function(e){return Object(r.a)(e,5)}},
/***/"5ca0":
/***/function(e,t,n){var r=n("badf"),i=n("30c9"),a=n("ec69");
/**
 * Creates a `_.find` or `_.findLast` function.
 *
 * @private
 * @param {Function} findIndexFunc The function to find the collection index.
 * @returns {Function} Returns the new find function.
 */e.exports=function(e){return function(t,n,o){var s=Object(t);if(!i(t)){var c=r(n,3);t=a(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,o);return l>-1?s[c?t[l]:l]:void 0}}},
/***/"5cef":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("cffc")(0),a=n("55c7")([].forEach,!0);r(r.P+r.F*!a,"Array",{
// 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
forEach:function(e/* , thisArg */){return i(this,e,arguments[1])}})},
/***/"5d26":
/***/function(e,t,n){"use strict";
// B.2.3.14 String.prototype.sup()
n("e681")("sup",(function(e){return function(){return e(this,"sup","","")}}))},
/***/"5d29":
/***/function(e,t,n){
// 19.1.2.13 Object.isSealed(O)
var r=n("9fe8");n("0a66")("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},
/***/"5d6f":
/***/function(e,t,n){
// to indexed object, toObject with fallback for non-array-like ES3 strings
var r=n("dbaf"),i=n("688d");e.exports=function(e){return r(i(e))}},
/***/"5d89":
/***/function(e,t,n){var r=n("f8af");
/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},
/***/"5db7":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("a2bf"),a=n("59ed"),o=n("7b0b"),s=n("07fa"),c=n("65f0");
// `Array.prototype.flatMap` method
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
r({target:"Array",proto:!0},{flatMap:function(e/* , thisArg */){var t,n=o(this),r=s(n);return a(e),(t=c(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},
/***/"5e07":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"5e2e":
/***/function(e,t,n){var r=n("28c9"),i=n("69d5"),a=n("b4c0"),o=n("fba5"),s=n("67ca");
/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `ListCache`.
c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},
/***/"5e76":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return o})),
/* harmony export (binding) */n.d(t,"a",(function(){return s})),
/* harmony export (binding) */n.d(t,"c",(function(){return l}));
/* harmony import */var r=n("d51b"),i=n("726e"),a=new r.a(50);
/* harmony import */function o(e){if("string"==typeof e){var t=a.get(e);return t&&t.image}return e}function s(e,t,n,r,o){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=a.get(e),u={hostEl:n,cb:r,cbPayload:o};return s?!l(t=s.image)&&s.pending.push(u):((t=i.d.loadImage(e,c,c)).__zrImageSrc=e,a.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}return e}return t}function c(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}
/***/},
/***/"5e77":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){/* empty */}.name,l=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},
/***/"5e7e":
/***/function(e,t,n){"use strict";var r,i,a,o=n("23e7"),s=n("c430"),c=n("9adc"),l=n("cfe9"),u=n("c65b"),h=n("cb2d"),f=n("d2bb"),d=n("d44e"),p=n("2626"),g=n("59ed"),m=n("1626"),v=n("861d"),y=n("19aa"),A=n("4840"),b=n("2cf49").set,w=n("b575"),x=n("44de"),C=n("e667"),_=n("01b4"),I=n("69f3"),E=n("d256"),k=n("4738"),S=n("f069"),B="Promise",M=k.CONSTRUCTOR,T=k.REJECTION_EVENT,O=k.SUBCLASSING,D=I.getterFor(B),P=I.set,L=E&&E.prototype,Q=E,R=L,j=l.TypeError,N=l.document,F=l.process,z=S.f,H=z,U=!!(N&&N.createEvent&&l.dispatchEvent),G="unhandledrejection",V=function(e){var t;return!(!v(e)||!m(t=e.then))&&t},W=function(e,t){var n,r,i,a=t.value,o=1===t.state,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{s?(o||(2===t.rejection&&J(t),t.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),// can throw
h&&(h.exit(),i=!0)),n===e.promise?l(new j("Promise-chain cycle")):(r=V(n))?u(r,n,c,l):c(n)):l(a)}catch(e){h&&!i&&h.exit(),l(e)}},q=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&K(e)})))},Y=function(e,t,n){var r,i;U?((r=N.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!T&&(i=l["on"+e])?i(r):e===G&&x("Unhandled promise rejection",n)},K=function(e){u(b,l,(function(){var t,n=e.facade,r=e.value;if($(e)&&(t=C((function(){c?F.emit("unhandledRejection",r,n):Y(G,n,r)})),
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
e.rejection=c||$(e)?2:1,t.error))throw t.value}))},$=function(e){return 1!==e.rejection&&!e.parent},J=function(e){u(b,l,(function(){var t=e.facade;c?F.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new j("Promise can't be resolved itself");var r=V(t);r?w((function(){var n={done:!1};try{u(r,t,X(ee,n,e),X(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,q(e,!1))}catch(t){Z({done:!1},t,e)}}};
// constructor polyfill
if(M&&(
// 25.4.3.1 Promise(executor)
R=(Q=function(e){y(this,R),g(e),u(r,this);var t=D(this);try{e(X(ee,t),X(Z,t))}catch(e){Z(t,e)}}).prototype,
// `Promise.prototype.then` method
// https://tc39.es/ecma262/#sec-promise.prototype.then
(
// eslint-disable-next-line no-unused-vars -- required for `.length`
r=function(e){P(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=h(R,"then",(function(e,t){var n=D(this),r=z(A(this,Q));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=c?F.domain:void 0,0===n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(Z,t)},S.f=z=function(e){return e===Q||undefined===e?new i(e):H(e)},!s&&m(E)&&L!==Object.prototype)){a=L.then,O||
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
h(L,"then",(function(e,t){var n=this;return new Q((function(e,t){u(a,n,e,t)})).then(e,t);
// https://github.com/zloirock/core-js/issues/640
}),{unsafe:!0});
// make `.constructor === Promise` work for native promise-based APIs
try{delete L.constructor}catch(e){/* empty */}
// make `instanceof Promise` work for native promise-based APIs
f&&f(L,R)}
// `Promise` constructor
// https://tc39.es/ecma262/#sec-promise-executor
o({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:Q}),d(Q,B,!1,!0),p(B)},
/***/"5e81":
/***/function(e,t,n){"use strict";
/* unused harmony export DatasetModel */
/* harmony export (binding) */n.d(t,"a",(function(){return u}));
/* harmony import */var r=n("7fae"),i=n("6cb7"),a=n("b12f"),o=n("07fd"),s=n("f72b"),c=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(r.a)(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new s.a(this),Object(s.b)(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Object(s.b)(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:o.a},t}(i.a),l=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(r.a)(t,e),t.type="dataset",t}(a.a);
/* harmony import */function u(e){e.registerComponentModel(c),e.registerComponentView(l)}
/***/},
/***/"5ea3":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/** Detect free variable `global` from Node.js. */
var n="object"==typeof e&&e&&e.Object===Object&&e;
/* harmony default export */t.a=n}).call(this,n("c8ba"))
/***/},
/***/"5edf":
/***/function(e,t){e.exports=
/**
 * This function is like `arrayIncludes` except that it accepts a comparator.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},
/***/"5ee4":
/***/function(e,t,n){
// https://github.com/benjamingr/RexExp.escape
var r=n("f083"),i=n("7524")(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},
/***/"5eed":
/***/function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),a=n("4738").CONSTRUCTOR;e.exports=a||!i((function(e){r.all(e).then(void 0,(function(){/* empty */}))}))},
/***/"5fb2":
/***/function(e,t,n){"use strict";
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
var r=n("e330"),i=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,l=r(o.exec),u=Math.floor,h=String.fromCharCode,f=r("".charCodeAt),d=r([].join),p=r([].push),g=r("".replace),m=r("".split),v=r("".toLowerCase),y=function(e){
//  0..25 map to ASCII a..z or A..Z
// 26..35 map to ASCII 0..9
return e+22+75*(e<26)},A=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),r+=36;return u(r+36*e/(e+38))},b=function(e){var t=[];
// Convert the input in UCS-2 to an array of Unicode code points.
e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=f(e,n++);if(i>=55296&&i<=56319&&n<r){
// It's a high surrogate, and there is a next character.
var a=f(e,n++);56320==(64512&a)?// Low surrogate.
p(t,((1023&i)<<10)+(1023&a)+65536):(
// It's an unmatched surrogate; only append this code unit, in case the
// next code unit is the high surrogate of a surrogate pair.
p(t,i),n--)}else p(t,i)}return t}(e);
// Cache the length.
var n,r,a=e.length,o=128,l=0,g=72;
// Initialize the state.
// Handle the basic code points.
for(n=0;n<e.length;n++)(r=e[n])<128&&p(t,h(r));var m=t.length,v=m;// number of basic code points.
// Main encoding loop:
for(// number of code points that have been handled;
// Finish the basic string with a delimiter unless it's empty.
m&&p(t,"-");v<a;){
// All non-basic code points < n have been handled already. Find the next larger one:
var b=i;for(n=0;n<e.length;n++)(r=e[n])>=o&&r<b&&(b=r);
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
var w=v+1;if(b-o>u((i-l)/w))throw new c(s);for(l+=(b-o)*w,o=b,n=0;n<e.length;n++){if((r=e[n])<o&&++l>i)throw new c(s);if(r===o){for(
// Represent delta as a generalized variable-length integer.
var x=l,C=36;;){var _=C<=g?1:C>=g+26?26:C-g;if(x<_)break;var I=x-_,E=36-_;p(t,h(y(_+I%E))),x=u(I/E),C+=36}p(t,h(y(x))),g=A(l,w,v===m),l=0,v++}}l++,o++}return d(t,"")};e.exports=function(e){var t,n,r=[],i=m(g(v(e),o,"."),".");for(t=0;t<i.length;t++)n=i[t],p(r,l(a,n)?"xn--"+b(n):n);return d(r,".")}},
/***/6012:
/***/function(e,t,n){"use strict";var r=n("9b6f"),i=n("688d");e.exports=function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},
/***/6042:
/***/function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("4849"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},
/***/6044:
/***/function(e,t,n){var r=n("0b07")(Object,"create");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/6062:
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's replaced to module below
n("1c59")},
/***/6071:
/***/function(e,t,n){"use strict";
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
/* harmony default export */t.a=function(e,t){return e===t||e!=e&&t!=t}},
/***/"607d":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return c})),
/* harmony export (binding) */n.d(t,"c",(function(){return u})),
/* harmony export (binding) */n.d(t,"e",(function(){return h})),
/* harmony export (binding) */n.d(t,"a",(function(){return f})),
/* harmony export (binding) */n.d(t,"f",(function(){return d})),
/* harmony export (binding) */n.d(t,"g",(function(){return p})),
/* harmony export (binding) */n.d(t,"d",(function(){return g}));
/* harmony import */var r=n("22d1"),i=n("65ed"),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,o=[],s=r.a.browser.firefox&&+r.a.browser.version.split(".")[0]<39;
/* harmony import */function c(e,t,n,r){return n=n||{},r?l(e,t,n):s&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):l(e,t,n),n}function l(e,t,n){if(r.a.domSupported&&e.getBoundingClientRect){var a=t.clientX,s=t.clientY;if(Object(i.b)(e)){var c=e.getBoundingClientRect();return n.zrX=a-c.left,void(n.zrY=s-c.top)}if(Object(i.c)(o,e,a,s))return n.zrX=o[0],void(n.zrY=o[1])}n.zrX=n.zrY=0}function u(e){return e||window.event}function h(e,t,n){if(null!=(t=u(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&c(e,i,t,n)}else{c(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&a.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function f(e,t,n,r){e.addEventListener(t,n,r)}function d(e,t,n,r){e.removeEventListener(t,n,r)}var p=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function g(e){return 2===e.which||3===e.which}
/***/},
/***/"60ce":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_getNative.js + 4 modules
var r=n("63bc"),i=n("26ee"),a=Object(r.a)(i.a,"DataView"),o=n("ddc9"),s=Object(r.a)(i.a,"Promise"),c=n("a55c"),l=Object(r.a)(i.a,"WeakMap"),u=n("f0ce"),h=n("74b5"),f="[object Map]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",v=Object(h.a)(a),y=Object(h.a)(o.a),A=Object(h.a)(s),b=Object(h.a)(c.a),w=Object(h.a)(l),x=u.a;
// EXTERNAL MODULE: ./node_modules/lodash-es/_root.js
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
(a&&x(new a(new ArrayBuffer(1)))!=m||o.a&&x(new o.a)!=f||s&&x(s.resolve())!=d||c.a&&x(new c.a)!=p||l&&x(new l)!=g)&&(x=function(e){var t=Object(u.a)(e),n="[object Object]"==t?e.constructor:void 0,r=n?Object(h.a)(n):"";if(r)switch(r){case v:return m;case y:return f;case A:return d;case b:return p;case w:return g}return t})
/* harmony default export */;t.a=x;
/***/},
/***/"60da":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),a=n("c65b"),o=n("d039"),s=n("df75"),c=n("7418"),l=n("d1e7"),u=n("7b0b"),h=n("44ad"),f=Object.assign,d=Object.defineProperty,p=i([].concat);
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
e.exports=!f||o((function(){
// should have correct order of operations (Edge bug)
if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;
// should work with symbols and should have deterministic property order (V8 bug)
var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){for(// eslint-disable-line no-unused-vars -- required for `.length`
var n=u(e),i=arguments.length,o=1,f=c.f,d=l.f;i>o;)for(var g,m=h(arguments[o++]),v=f?p(s(m),f(m)):s(m),y=v.length,A=0;y>A;)g=v[A++],r&&!a(d,m,g)||(n[g]=m[g]);return n}:f},
/***/"60ed":
/***/function(e,t,n){var r=n("3729"),i=n("2dcb"),a=n("1310"),o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);
/** `Object#toString` result references. */e.exports=
/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},
/***/"60f1":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legendConfig=void 0;t.legendConfig={
/**
   * @description Whether to display legend
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Legend orient
   * @type {String}
   * @default orient = 'horizontal'
   * @example orient = 'horizontal' | 'vertical'
   */
orient:"horizontal",
/**
   * @description Legend left
   * @type {String|Number}
   * @default left = 'auto'
   * @example left = 'auto' | '10%' | 10
   */
left:"auto",
/**
   * @description Legend right
   * @type {String|Number}
   * @default right = 'auto'
   * @example right = 'auto' | '10%' | 10
   */
right:"auto",
/**
   * @description Legend top
   * @type {String|Number}
   * @default top = 'auto'
   * @example top = 'auto' | '10%' | 10
   */
top:"auto",
/**
   * @description Legend bottom
   * @type {String|Number}
   * @default bottom = 'auto'
   * @example bottom = 'auto' | '10%' | 10
   */
bottom:"auto",
/**
   * @description Legend item gap
   * @type {Number}
   * @default itemGap = 10
   */
itemGap:10,
/**
   * @description Icon width
   * @type {Number}
   * @default iconWidth = 25
   */
iconWidth:25,
/**
   * @description Icon height
   * @type {Number}
   * @default iconHeight = 10
   */
iconHeight:10,
/**
   * @description Whether legend is optional
   * @type {Boolean}
   * @default selectAble = true
   */
selectAble:!0,
/**
   * @description Legend data
   * @type {Array}
   * @default data = []
   */
data:[],
/**
   * @description Legend text default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},
/**
   * @description Legend icon default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
iconStyle:{},
/**
   * @description Legend text unselected default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},
/**
   * @description Legend icon unselected default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
iconUnselectedStyle:{fill:"#999"},
/**
   * @description Legend render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 20
   */
rLevel:20,
/**
   * @description Legend animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Legend animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50}},
/***/"60f7":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.legend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.legend;n?(n=function(e,t,n){var r=t.series,i=n.legendStatus,a=e.data.filter((function(e){var t=e.name,n=r.find((function(e){var n=e.name;return t===n}));return!!n&&(e.color||(e.color=n.color),e.icon||(e.icon=n.type),e)}));i&&i.length===e.data.length||(i=new Array(e.data.length).fill(!0));return a.forEach((function(e,t){return e.status=i[t]})),e.data=a,n.legendStatus=i,e}(n=function(e){var t=e.data;return e.data=t.map((function(e){var t=(0,o.default)(e);return"string"===t?{name:e}:"object"===t?e:{name:""}})),e}(n=(0,u.deepMerge)((0,c.deepClone)(l.legendConfig,!0),n)),t,e),n=function(e,t){var n=t.render.ctx,r=e.data,i=e.textStyle,a=e.textUnselectedStyle;return r.forEach((function(e){var t=e.status,r=e.name;e.textWidth=function(e,t,n){return e.font=function(e){var t=e.fontFamily,n=e.fontSize;return"".concat(n,"px ").concat(t)}(n),e.measureText(t).width}(n,r,t?i:a)})),e}(n,e),n=function(e,t){var n=e.orient;"vertical"===n?function(e,t){var n=function(e,t){var n=e.left,r=e.right,i=t.render.area[0],a=[n,r].findIndex((function(e){return"auto"!==e}));if(-1===a)return[!0,i-10];var o=[n,r][a];return"number"!=typeof o&&(o=parseInt(o)/100*i),[Boolean(a),o]}(e,t),r=(0,a.default)(n,2),i=r[0],o=r[1],s=function(e,t){var n=e.iconHeight,r=e.itemGap,i=e.data,a=e.top,o=e.bottom,s=t.render.area[1],c=i.length,l=c*n+(c-1)*r,u=[a,o].findIndex((function(e){return"auto"!==e}));if(-1===u)return(s-l)/2;var h=[a,o][u];return"number"!=typeof h&&(h=parseInt(h)/100*s),1===u&&(h=s-h-l),h}(e,t);!function(e,t){var n=e.data,r=e.iconWidth,i=e.iconHeight,a=e.itemGap,o=i/2;n.forEach((function(e,n){var s=e.textWidth,c=(i+a)*n+o,l=t?0-r:0,u=t?l-5-s:r+5;e.iconPosition=[l,c],e.textPosition=[u,c]}))}(e,i);var c={textAlign:"left",textBaseline:"middle"};e.data.forEach((function(e){var t=e.textPosition,n=e.iconPosition;e.textPosition=f(t,[o,s]),e.iconPosition=f(n,[o,s]),e.align=c}))}(e,t):function(e,t){var n=e.iconHeight,r=e.itemGap,i=function(e,t){var n=e.data,r=e.iconWidth,i=t.render.area[0],a=0,o=[[]];return n.forEach((function(t,n){var s=h(a,n,e);s+r+5+t.textWidth>=i&&(s=h(a=n,n,e),o.push([])),t.iconPosition=[s,0],t.textPosition=[s+r+5,0],o.slice(-1)[0].push(t)})),o}(e,t),a=i.map((function(n){return function(e,t,n){var r=t.left,i=t.right,a=t.iconWidth,o=t.itemGap,s=n.render.area[0],c=e.length,l=(0,u.mulAdd)(e.map((function(e){return e.textWidth})))+c*(5+a)+(c-1)*o,h=[r,i].findIndex((function(e){return"auto"!==e}));return-1===h?(s-l)/2:0===h?"number"==typeof r?r:parseInt(r)/100*s:("number"!=typeof i&&(i=parseInt(i)/100*s),s-(l+i))}(n,e,t)})),o=function(e,t){var n=e.top,r=e.bottom,i=e.iconHeight,a=t.render.area[1],o=[n,r].findIndex((function(e){return"auto"!==e})),s=i/2;if(-1===o){var c=t.gridArea;return c.y+c.h+45-s}return 0===o?"number"==typeof n?n-s:parseInt(n)/100*a-s:("number"!=typeof r&&(r=parseInt(r)/100*a),a-r-s)}(e,t),s={textAlign:"left",textBaseline:"middle"};i.forEach((function(e,t){return e.forEach((function(e){var i=e.iconPosition,c=e.textPosition,l=a[t],u=o+t*(r+n);e.iconPosition=f(i,[l,u]),e.textPosition=f(c,[l,u]),e.align=s}))}))}(e,t);return e}(n,e),n=[n]):n=[];(0,s.doUpdate)({chart:e,series:n,key:"legendIcon",getGraphConfig:d}),(0,s.doUpdate)({chart:e,series:n,key:"legendText",getGraphConfig:m})};var i=r(n("9523")),a=r(n("278c")),o=r(n("7037")),s=n("18ad"),c=n("5557"),l=n("9d85"),u=n("becb");function h(e,t,n){var r=n.data,i=n.iconWidth,a=n.itemGap,o=r.slice(e,t);return(0,u.mulAdd)(o.map((function(e){return e.textWidth})))+(t-e)*(a+5+i)}function f(e,t){var n=(0,a.default)(e,2),r=n[0],i=n[1],o=(0,a.default)(t,2);return[r+o[0],i+o[1]]}function d(e,t){var n=e.data,r=e.selectAble,a=e.animationCurve,o=e.animationFrame,s=e.rLevel;return n.map((function(n,c){return(0,i.default)({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:e.show,hover:r,click:r,animationCurve:a,animationFrame:o,shape:p(e,c),style:g(e,c)},"click",b(e,c,t))}))}function p(e,t){var n=e.data,r=e.iconWidth,i=e.iconHeight,o=(0,a.default)(n[t].iconPosition,2);return{x:o[0],y:o[1]-i/2,w:r,h:i}}function g(e,t){var n=e.data,r=e.iconStyle,i=e.iconUnselectedStyle,a=n[t],o=a.status,s=a.color,c=o?r:i;return(0,u.deepMerge)({fill:s},c)}function m(e,t){var n=e.data,r=e.selectAble,i=e.animationCurve,a=e.animationFrame,o=e.rLevel;return n.map((function(n,s){return{name:"text",index:o,visible:e.show,hover:r,animationCurve:i,animationFrame:a,hoverRect:A(e,s),shape:v(e,s),style:y(e,s),click:b(e,s,t)}}))}function v(e,t){var n=e.data[t],r=n.textPosition;return{content:n.name,position:r}}function y(e,t){var n=e.textStyle,r=e.textUnselectedStyle,i=e.data[t],a=i.status,o=i.align,s=a?n:r;return(0,u.deepMerge)((0,c.deepClone)(s,!0),o)}function A(e,t){var n=e.textStyle,r=e.textUnselectedStyle,i=e.data[t],o=i.status,s=(0,a.default)(i.textPosition,2),c=s[0],l=s[1],u=i.textWidth,h=(o?n:r).fontSize;return[c,l-h/2,u,h]}function b(e,t,n){var r=e.data[t].name;return function(){var e=n.chart,i=e.legendStatus,a=e.option,o=!i[t];a.series.find((function(e){return e.name===r})).show=o,i[t]=o,n.chart.setOption(a)}}
/***/},
/***/"61fe":
/***/function(e,t,n){
/**
 * Module dependencies
 */
var r=n("5b90");
/**
 * @param element {Element}
 * @param selector {String}
 * @param context {Element}
 * @return {Element}
 */e.exports=function(e,t,n){for(n=n||document,
// guard against orphans
e={parentNode:e};(e=e.parentNode)&&e!==n;)if(r(e,t))return e}},
/***/"625e":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"f",(function(){return c})),
/* harmony export (binding) */n.d(t,"d",(function(){return l})),
/* harmony export (binding) */n.d(t,"b",(function(){return u})),
/* harmony export (binding) */n.d(t,"e",(function(){return h})),
/* harmony export (binding) */n.d(t,"a",(function(){return d})),
/* harmony export (binding) */n.d(t,"c",(function(){return m}));
/* harmony import */var r=n("7fae"),i=n("6d8b"),a=".",o="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";
/* harmony import */
/**
 * Notice, parseClassType('') should returns {main: '', sub: ''}
 * @public
 */
function c(e){var t={main:"",sub:""};if(e){var n=e.split(a);t.main=n[0]||"",t.sub=n[1]||""}return t}
/**
 * @public
 */function l(e){return!(!e||!e[s])}
/**
 * Implements `ExtendableConstructor` for `rootClz`.
 *
 * @usage
 * ```ts
 * class Xxx {}
 * type XxxConstructor = typeof Xxx & ExtendableConstructor
 * enableClassExtend(Xxx as XxxConstructor);
 * ```
 */function u(e,t){e.$constructor=e,// FIXME: not necessary?
e.extend=function(e){var t,n,a=this;return n=a,i.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?t=/** @class */function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t}(a):(
// For backward compat, we both support ts class inheritance and this
// "extend" approach.
// The constructor should keep the same behavior as ts class inheritance:
// If this constructor/$constructor is not declared, auto invoke the super
// constructor.
// If this constructor/$constructor is declared, it is responsible for
// calling the super constructor.
t=function(){(e.$constructor||a).apply(this,arguments)},i.inherits(t,this)),i.extend(t.prototype,e),t[s]=!0,t.extend=this.extend,t.superCall=p,t.superApply=g,t.superClass=a,t}}
/**
 * A work around to both support ts extend and this extend mechanism.
 * on sub-class.
 * @usage
 * ```ts
 * class Component { ... }
 * classUtil.enableClassExtend(Component);
 * classUtil.enableClassManagement(Component, {registerWhenExtend: true});
 *
 * class Series extends Component { ... }
 * // Without calling `markExtend`, `registerWhenExtend` will not work.
 * Component.markExtend(Series);
 * ```
 */
function h(e,t){e.extend=t.extend}
// A random offset.
var f=Math.round(10*Math.random());
/**
 * Implements `CheckableConstructor` for `target`.
 * Can not use instanceof, consider different scope by
 * cross domain or es module import in ec extensions.
 * Mount a method "isInstance()" to Clz.
 *
 * @usage
 * ```ts
 * class Xxx {}
 * type XxxConstructor = typeof Xxx & CheckableConstructor;
 * enableClassCheck(Xxx as XxxConstructor)
 * ```
 */function d(e){var t=["__\0is_clz",f++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}
// superCall should have class info, which can not be fetched from 'this'.
// Consider this case:
// class A has method f,
// class B inherits class A, overrides method f, f call superApply('f'),
// class C inherits class B, does not override method f,
// then when method of class C is called, dead loop occurred.
function p(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function g(e,t,n){return this.superClass.prototype[t].apply(e,n)}
/**
 * Implements `ClassManager` for `target`
 *
 * @usage
 * ```ts
 * class Xxx {}
 * type XxxConstructor = typeof Xxx & ClassManager
 * enableClassManagement(Xxx as XxxConstructor);
 * ```
 */function m(e){
/**
   * Component model classes
   * key: componentType,
   * value:
   *     componentClass, when componentType is 'a'
   *     or Object.<subKey, componentClass>, when componentType is 'a.b'
   */
var t={};e.registerClass=function(e){
// `type` should not be a "instance member".
// If using TS class, should better declared as `static type = 'series.pie'`.
// otherwise users have to mount `type` on prototype manually.
// For backward compat and enable instance visit type via `this.type`,
// we still support fetch `type` from prototype.
var n,r=e.type||e.prototype.type;if(r){n=r,i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),
// If only static type declared, we assign it to prototype mandatorily.
e.prototype.type=r;var a=c(r);if(a.sub){if(a.sub!==o){var s=function(e){var n=t[e.main];n&&n[o]||((n=t[e.main]={})[o]=!0);return n}(a);s[a.sub]=e}}else t[a.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[o]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=c(e),r=[],a=t[n.main];return a&&a[o]?i.each(a,(function(e,t){t!==o&&r.push(e)})):r.push(a),r},e.hasClass=function(e){
// Just consider componentType.main.
var n=c(e);return!!t[n.main]},
/**
   * @return Like ['aa', 'bb'], but can not be ['aa.xx']
   */
e.getAllClassMainTypes=function(){var e=[];return i.each(t,(function(t,n){e.push(n)})),e},
/**
   * If a main type is container and has sub types
   */
e.hasSubTypes=function(e){var n=c(e),r=t[n.main];return r&&r[o]}}
// /**
//  * @param {string|Array.<string>} properties
//  */
// export function setReadOnly(obj, properties) {
// FIXME It seems broken in IE8 simulation of IE11
// if (!zrUtil.isArray(properties)) {
//     properties = properties != null ? [properties] : [];
// }
// zrUtil.each(properties, function (prop) {
//     let value = obj[prop];
//     Object.defineProperty
//         && Object.defineProperty(obj, prop, {
//             value: value, writable: false
//         });
//     zrUtil.isArray(obj[prop])
//         && Object.freeze
//         && Object.freeze(obj[prop]);
// });
// }
/***/},
/***/"62e4":
/***/function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],
// module.parent = undefined by default
e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e};
/***/},
/***/"62ee":
/***/function(e,t,n){"use strict";
// B.2.3.12 String.prototype.strike()
n("e681")("strike",(function(e){return function(){return e(this,"strike","","")}}))},
/***/"62fa":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("9b6f"),a=n("2aef"),o=n("6012"),s=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",h="0",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*l[n],l[n]=r%1e7,r=c(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=l[t],l[t]=c(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var n=String(l[e]);t=""===t?n:t+o.call(h,7-n.length)+n}return t},g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("f937")((function(){
// V8 ~ Android 4.3-
s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,c=a(this,u),l=i(e),m="",v=h;if(l<0||l>20)throw RangeError(u);
// eslint-disable-next-line no-self-compare
if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*g(2,69,1))-69,n=t<0?c*g(2,-t,1):c/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=l;r>=7;)f(1e7,0),r-=7;for(f(g(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),f(1,1),d(2),v=p()}else f(0,n),f(1<<-t,0),v=p()+o.call(h,l);return v=l>0?m+((s=v.length)<=l?"0."+o.call(h,l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l)):m+v}})},
/***/"62fd":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/6373:
/***/function(e,t,n){
// 7.1.15 ToLength
var r=n("9b6f"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0;// pow(2, 53) - 1 == 9007199254740991
}},
/***/6374:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=Object.defineProperty;
// eslint-disable-next-line es/no-object-defineproperty -- safe
e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},
/***/6397:
/***/function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="
/***/},
/***/"63bc":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/isFunction.js
var r,i=n("bc9b"),a=n("26ee").a["__core-js_shared__"],o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";
// EXTERNAL MODULE: ./node_modules/lodash-es/_root.js
/* harmony default export */var s=
/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function(e){return!!o&&o in e},c=n("2332"),l=n("74b5"),u=/^\[object .+?Constructor\]$/,h=Function.prototype,f=Object.prototype,d=h.toString,p=f.hasOwnProperty,g=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");
// EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js
/* harmony default export */var m=
/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function(e){return!(!Object(c.a)(e)||s(e))&&(Object(i.a)(e)?g:u).test(Object(l.a)(e))};
// CONCATENATED MODULE: ./node_modules/lodash-es/_getValue.js
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
/* harmony default export */var v=function(e,t){return null==e?void 0:e[t]};
// CONCATENATED MODULE: ./node_modules/lodash-es/_getNative.js
/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
/* harmony default export */t.a=function(e,t){var n=v(e,t);return m(n)?n:void 0};
/***/},
/***/6412:
/***/function(e,t,n){"use strict";
// https://github.com/mathiasbynens/String.prototype.at
var r=n("f083"),i=n("e960")(!0),a=n("f937")((function(){return"𠮷"!=="𠮷".at(0)}));r(r.P+r.F*a,"String",{at:function(e){return i(this,e)}})},
/***/6428:
/***/function(e,t,n){var r=n("b4b0"),i=1/0;
/** Used as references for various `Number` constants. */e.exports=
/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */
function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},
/***/"642a":
/***/function(e,t,n){var r=n("966f"),i=n("3bb4"),a=n("20ec");
/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},
/***/6438:
/***/function(e,t,n){
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var r=n("03d6"),i=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},
/***/6461:
/***/function(e,t,n){"use strict";
// https://github.com/tc39/proposal-string-pad-start-end
var r=n("f083"),i=n("1af4"),a=n("64ff"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*o,"String",{padStart:function(e/* , fillString = ' ' */){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},
/***/6497:
/***/function(e,t,n){"use strict";
// B.2.3.5 String.prototype.bold()
n("e681")("bold",(function(e){return function(){return e(this,"b","","")}}))},
/***/"64b3":
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=r.keys,o=r.key;r.exp({getOwnMetadataKeys:function(e/* , targetKey */){return a(i(e),arguments.length<2?void 0:o(arguments[1]))}})},
/***/"64ff":
/***/function(e,t,n){var r=n("93e0").navigator;e.exports=r&&r.userAgent||""},
/***/6547:
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),a=n("577e"),o=n("1d80"),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,n){var r,u,h=a(o(t)),f=i(n),d=h.length;return f<0||f>=d?e?"":void 0:(r=c(h,f))<55296||r>56319||f+1===d||(u=c(h,f+1))<56320||u>57343?e?s(h,f):r:e?l(h,f,f+2):u-56320+(r-55296<<10)+65536}};e.exports={
// `String.prototype.codePointAt` method
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
codeAt:u(!1),
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt:u(!0)}},
/***/6548:
/***/function(e,t,n){var r=n("26f1"),i=n("b760"),a=n("1c6a"),o=n("d77f"),s=n("ed60"),c=a.keys,l=a.key,u=function(e,t){var n=c(e,t),a=s(e);if(null===a)return n;var o=u(a,t);return o.length?n.length?i(new r(n.concat(o))):o:n};a.exp({getMetadataKeys:function(e/* , targetKey */){return u(o(e),arguments.length<2?void 0:l(arguments[1]))}})},
/***/6566:
/***/function(e,t,n){"use strict";var r=n("7c73"),i=n("edd0"),a=n("6964"),o=n("0366"),s=n("19aa"),c=n("7234"),l=n("2266"),u=n("c6d2"),h=n("4754"),f=n("2626"),d=n("83ab"),p=n("f183").fastKey,g=n("69f3"),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var h=e((function(e,i){s(e,f),m(e,{type:t,index:r(null),first:null,last:null,size:0}),d||(e.size=0),c(i)||l(i,e[u],{that:e,AS_ENTRIES:n})})),f=h.prototype,g=v(t),y=function(e,t,n){var r,i,a=g(e),o=A(e,t);
// change existing entry
return o?o.value=n:(a.last=o={index:i=p(t,!0),key:t,value:n,previous:r=a.last,next:null,removed:!1},a.first||(a.first=o),r&&(r.next=o),d?a.size++:e.size++,
// add to index
"F"!==i&&(a.index[i]=o)),e},A=function(e,t){var n,r=g(e),i=p(t);
// fast case
if("F"!==i)return r.index[i];
// frozen object case
for(n=r.first;n;n=n.next)if(n.key===t)return n};return a(f,{
// `{ Map, Set }.prototype.clear()` methods
// https://tc39.es/ecma262/#sec-map.prototype.clear
// https://tc39.es/ecma262/#sec-set.prototype.clear
clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),d?e.size=0:this.size=0},
// `{ Map, Set }.prototype.delete(key)` methods
// https://tc39.es/ecma262/#sec-map.prototype.delete
// https://tc39.es/ecma262/#sec-set.prototype.delete
delete:function(e){var t=this,n=g(t),r=A(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),d?n.size--:t.size--}return!!r},
// `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
// https://tc39.es/ecma262/#sec-map.prototype.foreach
// https://tc39.es/ecma262/#sec-set.prototype.foreach
forEach:function(e/* , that = undefined */){for(var t,n=g(this),r=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)
// revert to the last existing entry
for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},
// `{ Map, Set}.prototype.has(key)` methods
// https://tc39.es/ecma262/#sec-map.prototype.has
// https://tc39.es/ecma262/#sec-set.prototype.has
has:function(e){return!!A(this,e)}}),a(f,n?{
// `Map.prototype.get(key)` method
// https://tc39.es/ecma262/#sec-map.prototype.get
get:function(e){var t=A(this,e);return t&&t.value},
// `Map.prototype.set(key, value)` method
// https://tc39.es/ecma262/#sec-map.prototype.set
set:function(e,t){return y(this,0===e?0:e,t)}}:{
// `Set.prototype.add(value)` method
// https://tc39.es/ecma262/#sec-set.prototype.add
add:function(e){return y(this,e=0===e?0:e,e)}}),d&&i(f,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);
// `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
// https://tc39.es/ecma262/#sec-map.prototype.entries
// https://tc39.es/ecma262/#sec-map.prototype.keys
// https://tc39.es/ecma262/#sec-map.prototype.values
// https://tc39.es/ecma262/#sec-map.prototype-@@iterator
// https://tc39.es/ecma262/#sec-set.prototype.entries
// https://tc39.es/ecma262/#sec-set.prototype.keys
// https://tc39.es/ecma262/#sec-set.prototype.values
// https://tc39.es/ecma262/#sec-set.prototype-@@iterator
u(e,t,(function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})}),(function(){
// revert to the last existing entry
for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;
// get next entry
return e.target&&(e.last=n=n?n.next:e.state.first)?h(
// return step by kind
"keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(
// or finish the iteration
e.target=null,h(void 0,!0))}),n?"entries":"values",!n,!0),
// `{ Map, Set }.prototype[@@species]` accessors
// https://tc39.es/ecma262/#sec-get-map-@@species
// https://tc39.es/ecma262/#sec-get-set-@@species
f(t)}}},
/***/"656b":
/***/function(e,t,n){var r=n("e2e4"),i=n("f4d6");
/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},
/***/"658f":
/***/function(e,t,n){n("6858");for(var r=n("ef08"),i=n("051b"),a=n("8a0d"),o=n("cc15")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],h=u&&u.prototype;h&&!h[o]&&i(h,o,l),a[l]=a.Array}
/***/},
/***/"65ed":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"d",(function(){/* binding */return l})),n.d(t,"c",(function(){/* binding */return u})),n.d(t,"b",(function(){/* binding */return h})),n.d(t,"a",(function(){/* binding */return p}));
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/env.js
var r=n("22d1"),i=Math.log(2);
// CONCATENATED MODULE: ./node_modules/zrender/lib/core/fourPointsTransform.js
function a(e,t,n,r,o,s){var c=r+"-"+o,l=e.length;if(s.hasOwnProperty(c))return s[c];if(1===t){var u=Math.round(Math.log((1<<l)-1&~o)/i);return e[n][u]}for(var h=r|1<<n,f=n+1;r&1<<f;)f++;for(var d=0,p=0,g=0;p<l;p++){var m=1<<p;m&o||(d+=(g%2?-1:1)*e[n][p]*a(e,t-1,f,h,o|m,s),g++)}return s[c]=d,d}function o(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=a(n,8,0,0,0,r);if(0!==i){for(var o=[],s=0;s<8;s++)for(var c=0;c<8;c++)null==o[c]&&(o[c]=0),o[c]+=((s+c)%2?-1:1)*a(n,7,0===s?1:0,1<<s,1<<c,r)/i*t[s];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}
// CONCATENATED MODULE: ./node_modules/zrender/lib/core/dom.js
var s="___zrEVENTSAVED",c=[];function l(e,t,n,r,i){return u(c,t,r,i,!0)&&u(e,n,c[0],c[1])}function u(e,t,n,i,a){if(t.getBoundingClientRect&&r.a.domSupported&&!h(t)){var c=t[s]||(t[s]={}),l=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,c=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[c]+":0",r[1-s]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,c),u=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=[],c=[],l=!0,u=0;u<4;u++){var h=e[u].getBoundingClientRect(),f=2*u,d=h.left,p=h.top;s.push(d,p),l=l&&a&&d===a[f]&&p===a[f+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=s,t[r]=n?o(c,s):o(s,c))}(l,c,a);if(u)return u(e,n,i),!0}return!1}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}var f=/([&<>"'])/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function p(e){return null==e?"":(e+"").replace(f,(function(e,t){return d[t]}))}
/***/},
/***/"65f0":
/***/function(e,t,n){"use strict";var r=n("0b42");
// `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
e.exports=function(e,t){return new(r(e))(0===t?0:t)}},
/***/6613:
/***/function(e,t,n){n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3");var r=n("5a43");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/6621:
/***/function(e,t,n){
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var r=n("d77f"),i=n("77f4"),a=n("68ae"),o=n("964f")("IE_PROTO"),s=function(){/* empty */},c="prototype",l=function(){
// Thrash, waste and sodomy: IE GC bug
var e,t=n("8ad7")("iframe"),r=a.length;for(t.style.display="none",n("7433").appendChild(t),t.src="javascript:",(// eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[c][a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,
// add "__proto__" for Object.getPrototypeOf polyfill
n[o]=e):n=l(),void 0===t?n:i(n,t)}},
/***/"66ac":
/***/function(e,t,n){"use strict";
// 21.2.5.3 get RegExp.prototype.flags
var r=n("d77f");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},
/***/"66b7":
/***/function(e,t,n){
// 22.1.3.31 Array.prototype[@@unscopables]
var r=n("de24")("unscopables"),i=Array.prototype;null==i[r]&&n("0713")(i,r,{}),e.exports=function(e){i[r][e]=!0}},
/***/6747:
/***/function(e,t){
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var n=Array.isArray;e.exports=n},
/***/6751:
/***/function(e,t,n){var r=n("c9ca"),i=n("aaec"),a=n("ab81");
/**
 * Gets the number of symbols in `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the string size.
 */e.exports=function(e){return i(e)?a(e):r(e)}},
/***/"67ca":
/***/function(e,t,n){var r=n("cb5a");
/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},
/***/"67fe":
/***/function(e,t,n){var r=n("93e0").parseInt,i=n("e9d8").trim,a=n("69b4"),o=/^[-+]?0[xX]/;e.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(o.test(n)?16:10))}:r},
/***/6858:
/***/function(e,t,n){"use strict";var r=n("2f9a"),i=n("ea34"),a=n("8a0d"),o=n("6ca1");
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
e.exports=n("393a")(Array,"Array",(function(e,t){this._t=o(e),// target
this._i=0,// next index
this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
a.Arguments=a.Array,r("keys"),r("values"),r("entries")},
/***/"688d":
/***/function(e,t){
// 7.2.1 RequireObjectCoercible(argument)
e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e};
/***/},
/***/"68ab":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("4a3f");function i(e,t,n,i,a,o,s,c,l){if(0===s)return!1;var u=s;return!(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||c>e+u&&c>n+u&&c>a+u||c<e-u&&c<n-u&&c<a-u)&&Object(r.l)(e,t,n,i,a,o,c,l,null)<=u/2}
/***/},
/***/"68ae":
/***/function(e,t){
// IE 8- don't enum bug keys
e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
/***/},
/***/"68c0":
/***/function(e,t,n){"use strict";
// 21.1.3.25 String.prototype.trim()
n("e9d8")("trim",(function(e){return function(){return e(this,3)}}))},
/***/"68d6":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("cffc")(3);r(r.P+r.F*!n("55c7")([].some,!0),"Array",{
// 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
some:function(e/* , thisArg */){return i(this,e,arguments[1])}})},
/***/"68df":
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("8e16"),a=n("384f"),o=n("7f65");
// `Set.prototype.isSubsetOf` method
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
e.exports=function(e){var t=r(this),n=o(e);return!(i(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},
/***/"68e5":
/***/function(e,t,n){"use strict";
// 22.1.3.13 Array.prototype.join(separator)
var r=n("f083"),i=n("5d6f"),a=[].join;
// fallback for not array-like strings
r(r.P+r.F*(n("dbaf")!=Object||!n("55c7")(a)),"Array",{join:function(e){return a.call(i(this),void 0===e?",":e)}})},
/***/"68ee":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),a=n("1626"),o=n("f5df"),s=n("d066"),c=n("8925"),l=function(){/* empty */},u=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),d=!h.test(l),p=function(e){if(!a(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},g=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{
// we can't check .prototype since constructors produced by .bind haven't it
// `Function#toString` throws on some built-it function in some legacy engines
// (for example, `DOMQuad` and similar in FF41-)
return d||!!f(h,c(e))}catch(e){return!0}};g.sham=!0,
// `IsConstructor` abstract operation
// https://tc39.es/ecma262/#sec-isconstructor
e.exports=!u||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},
/***/"693d":
/***/function(e,t,n){"use strict";
// ECMAScript 6 symbols shim
var r=n("ef08"),i=n("9c0e"),a=n("0bad"),o=n("512c"),s=n("ba01"),c=n("e34a").KEY,l=n("4b8b"),u=n("b367"),h=n("92f0"),f=n("8b1a"),d=n("cc15"),p=n("fcd4"),g=n("e198"),m=n("0ae2f"),v=n("4ebc"),y=n("77e9"),A=n("7a41"),b=n("0983"),w=n("6ca1"),x=n("3397"),C=n("10db"),_=n("6f4f"),I=n("1836"),E=n("4d20"),k=n("fed5"),S=n("1a14"),B=n("9876"),M=E.f,T=S.f,O=I.f,D=r.Symbol,P=r.JSON,L=P&&P.stringify,Q="prototype",R=d("_hidden"),j=d("toPrimitive"),N={}.propertyIsEnumerable,F=u("symbol-registry"),z=u("symbols"),H=u("op-symbols"),U=Object[Q],G="function"==typeof D&&!!k.f,V=r.QObject,W=!V||!V[Q]||!V[Q].findChild,q=a&&l((function(){return 7!=_(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(U,t);r&&delete U[t],T(e,t,n),r&&e!==U&&T(U,t,r)}:T,Y=function(e){var t=z[e]=_(D[Q]);return t._k=e,t},K=G&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},$=function(e,t,n){return e===U&&$(H,t,n),y(e),t=x(t,!0),y(n),i(z,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=_(n,{enumerable:C(0,!1)})):(i(e,R)||T(e,R,C(1,{})),e[R][t]=!0),q(e,t,n)):T(e,t,n)},J=function(e,t){y(e);for(var n,r=m(t=w(t)),i=0,a=r.length;a>i;)$(e,n=r[i++],t[n]);return e},X=function(e){var t=N.call(this,e=x(e,!0));return!(this===U&&i(z,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,R)&&this[R][e])||t)},Z=function(e,t){if(e=w(e),t=x(t,!0),e!==U||!i(z,t)||i(H,t)){var n=M(e,t);return!n||!i(z,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=O(w(e)),r=[],a=0;n.length>a;)i(z,t=n[a++])||t==R||t==c||r.push(t);return r},te=function(e){for(var t,n=e===U,r=O(n?H:w(e)),a=[],o=0;r.length>o;)!i(z,t=r[o++])||n&&!i(U,t)||a.push(z[t]);return a};
// 19.4.1.1 Symbol([description])
G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(H,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),q(this,e,C(1,n))};return a&&W&&q(U,e,{configurable:!0,set:t}),Y(e)},s(D[Q],"toString",(function(){return this._k})),E.f=Z,S.f=$,n("6438").f=I.f=ee,n("1917").f=X,k.f=te,a&&!n("e444")&&s(U,"propertyIsEnumerable",X,!0),p.f=function(e){return Y(d(e))}),o(o.G+o.W+o.F*!G,{Symbol:D});for(var ne=
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)d(ne[re++]);for(var ie=B(d.store),ae=0;ie.length>ae;)g(ie[ae++]);o(o.S+o.F*!G,"Symbol",{
// 19.4.2.1 Symbol.for(key)
for:function(e){return i(F,e+="")?F[e]:F[e]=D(e)},
// 19.4.2.5 Symbol.keyFor(sym)
keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!G,"Object",{
// 19.1.2.2 Object.create(O [, Properties])
create:function(e,t){return void 0===t?_(e):J(_(e),t)},
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
defineProperty:$,
// 19.1.2.3 Object.defineProperties(O, Properties)
defineProperties:J,
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor:Z,
// 19.1.2.7 Object.getOwnPropertyNames(O)
getOwnPropertyNames:ee,
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols:te});
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var oe=l((function(){k.f(1)}));o(o.S+o.F*oe,"Object",{getOwnPropertySymbols:function(e){return k.f(b(e))}}),
// 24.3.2 JSON.stringify(value [, replacer [, space]])
P&&o(o.S+o.F*(!G||l((function(){var e=D();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
// V8 throws on boxed symbols
return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(A(t)||void 0!==e)&&!K(e))// IE8 returns string on undefined
return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,L.apply(P,r)}}),
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
D[Q][j]||n("051b")(D[Q],j,D[Q].valueOf),
// 19.4.3.5 Symbol.prototype[@@toStringTag]
h(D,"Symbol"),
// 20.2.1.9 Math[@@toStringTag]
h(Math,"Math",!0),
// 24.3.3 JSON[@@toStringTag]
h(r.JSON,"JSON",!0)},
/***/"694b":
/***/function(e,t,n){"use strict";
// do not edit .js files directly - edit src/index.jst
e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}
// true if both NaN, false otherwise
return t!=t&&n!=n}},
/***/6964:
/***/function(e,t,n){"use strict";var r=n("cb2d");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},
/***/6972:
/***/function(e,t,n){"use strict";var r=n("e960")(!0);
// `AdvanceStringIndex` abstract operation
// https://tc39.github.io/ecma262/#sec-advancestringindex
e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},
/***/"697e":
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"f",(function(){/* binding */return E})),n.d(t,"i",(function(){/* binding */return k})),n.d(t,"a",(function(){/* binding */return S})),n.d(t,"g",(function(){/* binding */return B})),n.d(t,"h",(function(){/* binding */return M})),n.d(t,"c",(function(){/* binding */return T})),n.d(t,"b",(function(){/* binding */return O})),n.d(t,"e",(function(){/* binding */return D})),n.d(t,"j",(function(){/* binding */return P})),n.d(t,"d",(function(){/* binding */return L})),n.d(t,"k",(function(){/* binding */return Q}));
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
var r=n("6d8b"),i=n("18c0"),a=n("89e3"),o=n("e0d8"),s=n("9d57"),c=n("9850"),l=n("216a"),u=n("7fae"),h=n("3842"),f=n("944e"),d=o.a.prototype,p=a.a.prototype,g=h.w,m=Math.floor,v=Math.ceil,y=Math.pow,A=Math.log,b=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new a.a,
// FIXME:TS actually used by `IntervalScale`
t._interval=0,t}
/**
   * @param Whether expand the ticks to niced extent.
   */return Object(u.a)(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent(),a=p.getTicks.call(this,e);return r.map(a,(function(e){var t=e.value,r=h.w(y(this.base,t));
// Fix #4158
return r=t===n[0]&&this._fixMin?x(r,i[0]):r,{value:r=t===n[1]&&this._fixMax?x(r,i[1]):r}}),this)},t.prototype.setExtent=function(e,t){var n=A(this.base);
// log(-Infinity) is NaN, so safe guard here
e=A(Math.max(0,e))/n,t=A(Math.max(0,t))/n,p.setExtent.call(this,e,t)},
/**
   * @return {number} end
   */
t.prototype.getExtent=function(){var e=this.base,t=d.getExtent.call(this);t[0]=y(e,t[0]),t[1]=y(e,t[1]);
// Fix #4158
var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=x(t[0],n[0])),this._fixMax&&(t[1]=x(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=A(e[0])/A(t),e[1]=A(e[1])/A(t),d.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){
// TODO
// filter value that <= 0
this.unionExtent(e.getApproximateExtent(t))},
/**
   * Update interval and extent of intervals for nice ticks
   * @param approxTickNum default 10 Given approx tick number
   */
t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=h.s(n);
// Interval should be integer
for(
// Filter ticks to get closer to the desired count.
e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[h.w(v(t[0]/r)*r),h.w(m(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){p.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=A(e)/A(this.base),f.a(e,this._extent)},t.prototype.normalize=function(e){return e=A(e)/A(this.base),f.f(e,this._extent)},t.prototype.scale=function(e){return e=f.g(e,this._extent),y(this.base,e)},t.type="log",t}(o.a),w=b.prototype;
// EXTERNAL MODULE: ./node_modules/echarts/lib/scale/Ordinal.js
function x(e,t){return g(e,h.h(t))}w.getMinorTicks=p.getMinorTicks,w.getLabel=p.getLabel,o.a.registerClass(b);
/* harmony default export */var C=b,_=n("ee1a"),I=n("538f");
// EXTERNAL MODULE: ./node_modules/echarts/lib/data/helper/dataStackHelper.js
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/axisHelper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Get axis scale extent before niced.
 * Item of returned array can only be number (including Infinity and NaN).
 *
 * Caution:
 * Precondition of calling this method:
 * The scale extent has been initialized using series data extent via
 * `scale.setExtent` or `scale.unionExtentFromData`;
 */
function E(e,t){var n=e.type,i=Object(I.a)(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var a=i.min,o=i.max,c=t.ecModel;if(c&&"time"/* || scaleType === 'interval' */===n){var l=Object(s.e)("bar",c),u=!1;if(r.each(l,(function(e){u=u||e.getBaseAxis()===t.axis})),u){
// Calculate placement of bars on axis. TODO should be decoupled
// with barLayout
var h=Object(s.d)(l),f=function(e,t,n,
// Only support cartesian coord yet.
i){
// Get Axis Length
var a=n.axis.getExtent(),o=Math.abs(a[1]-a[0]),c=Object(s.f)(i,n.axis);if(void 0===c)return{min:e,max:t};var l=1/0;r.each(c,(function(e){l=Math.min(e.offset,l)}));var u=-1/0;r.each(c,(function(e){u=Math.max(e.offset+e.width,u)})),l=Math.abs(l),u=Math.abs(u);var h=l+u,f=t-e,d=f/(1-(l+u)/o)-f;
// Calculate required buffer based on old range and overflow
return t+=d*(u/h),e-=d*(l/h),{min:e,max:t}}
// Precondition of calling this method:
// The scale extent has been initialized using series data extent via
// `scale.setExtent` or `scale.unionExtentFromData`;
(a,o,t,h);
// Adjust axis min and max to account for overflow
a=f.min,o=f.max}}return{extent:[a,o],
// "fix" means "fixed", the value should not be
// changed in the subsequent steps.
fixMin:i.minFixed,fixMax:i.maxFixed}}function k(e,t){var n=t,r=E(e,n),i=r.extent,a=n.get("splitNumber");e instanceof C&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),c="interval"===o||"time"===o;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),
// If some one specified the min, max. And the default calculated interval
// is not good enough. He can specify the interval. It is often appeared
// in angle axis with angle 0 - 360. Interval calculated in interval scale is hard
// to be 60.
// FIXME
null!=s&&e.setInterval&&e.setInterval(s)}
/**
 * @param axisType Default retrieve from model.type
 */function S(e,t){if(t=t||e.get("type"))switch(t){
// Buildin scale
case"category":return new i.a({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new l.a({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:
// case 'value'/'interval', 'log', or others.
return new(o.a.getClass(t)||a.a)}}
/**
 * Check if the axis cross 0
 */function B(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}
/**
 * @param axis
 * @return Label formatter function.
 *         param: {number} tickValue,
 *         param: {number} idx, the index in all ticks.
 *                         If category axis, this param is not required.
 *         return: {string} label string.
 */function M(e){var t,n,i=e.getLabelModel().get("formatter"),a="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=i,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):r.isString(i)?function(t){return function(n){
// For category axis, get raw value; for numeric axis,
// get formatted label like '1,333,444'.
var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(i):r.isFunction(i)?(t=i,function(n,r){
// The original intention of `idx` is "the index of the tick in all ticks".
// But the previous implementation of category axis do not consider the
// `axisLabel.interval`, which cause that, for example, the `interval` is
// `1`, then the ticks "name5", "name7", "name9" are displayed, where the
// corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep
// the definition here for back compatibility.
return null!=a&&(r=n.value-a),t(T(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function T(e,t){
// In category axis with data zoom, tick is not the original
// index of axis.data. So tick should not be exposed to user
// in category axis.
return"category"===e.type?e.scale.getLabel(t):t.value}
/**
 * @param axis
 * @return Be null/undefined if no labels.
 */function O(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,a,o=n.getExtent();
// Optimize for large category data, avoid call `getTicks()`.
a=n instanceof i.a?n.count():(r=n.getTicks()).length;var s,l,u,h,f,d,p,g,m=e.getLabelModel(),v=M(e),y=1;
// Simple optimization for large amount of labels
a>40&&(y=Math.ceil(a/40));for(var A=0;A<a;A+=y){var b=v(r?r[A]:{value:o[0]+A},A),w=m.getTextRect(b),x=(l=w,u=m.get("rotate")||0,h=void 0,f=void 0,d=void 0,p=void 0,g=void 0,h=u*Math.PI/180,f=l.width,d=l.height,p=f*Math.abs(Math.cos(h))+Math.abs(d*Math.sin(h)),g=f*Math.abs(Math.sin(h))+Math.abs(d*Math.cos(h)),new c.a(l.x,l.y,p,g));s?s.union(x):s=x}return s}}
/**
 * @param model axisLabelModel or axisTickModel
 * @return {number|String} Can be null|'auto'|number|function
 */
function D(e){var t=e.get("interval");return null==t?"auto":t}
/**
 * Set `categoryInterval` as 0 implicitly indicates that
 * show all labels regardless of overlap.
 * @param {Object} axis axisModel.axis
 */function P(e){return"category"===e.type&&0===D(e.getLabelModel())}function L(e,t){
// Remove duplicated dat dimensions caused by `getStackedDimension`.
var n={};
// Currently `mapDimensionsAll` will contain stack result dimension ('__\0ecstackresult').
// PENDING: is it reasonable? Do we need to remove the original dim from "coord dim" since
// there has been stacked result dim?
return r.each(e.mapDimensionsAll(t),(function(t){
// For example, the extent of the original dimension
// is [0.1, 0.5], the extent of the `stackResultDimension`
// is [7, 9], the final extent should NOT include [0.1, 0.5],
// because there is no graphic corresponding to [0.1, 0.5].
// See the case in `test/area-stack.html` `main1`, where area line
// stack needs `yAxis` not start from 0.
n[Object(_.b)(e,t)]=!0})),r.keys(n)}function Q(e,t,n){t&&r.each(L(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}
/***/},
/***/"697e7":
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t),
// EXPORTS
n.d(t,"init",(function(){/* binding */return ce})),n.d(t,"dispose",(function(){/* binding */return le})),n.d(t,"disposeAll",(function(){/* binding */return ue})),n.d(t,"getInstance",(function(){/* binding */return he})),n.d(t,"registerPainter",(function(){/* binding */return fe})),n.d(t,"getElementSSRData",(function(){/* binding */return de})),n.d(t,"registerSSRDataGetter",(function(){/* binding */return pe})),n.d(t,"version",(function(){/* binding */return ge}));
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/env.js
var r=n("22d1"),i=n("6d8b"),a=n("21a1"),o=n("401b"),s=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},c=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new s(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new s(t,e),"drag",e.event);var o=this.handler.findHover(n,r,t).target,c=this._dropTarget;this._dropTarget=o,t!==o&&(c&&o!==c&&this.handler.dispatchToElement(new s(c,e),"dragleave",e.event),o&&o!==c&&this.handler.dispatchToElement(new s(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),l=n("6fd3"),u=n("607d"),h=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=u.b(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in d)if(d.hasOwnProperty(t)){var n=d[t](this._track,e);if(n)return n}},e}();
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
function f(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var d={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,a=(e[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=f(i)/f(a);!isFinite(o)&&(o=1),t.pinchScale=o;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},p=n("9850"),g="silent";
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/BoundingRect.js
function m(){u.g(this.event)}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(a.a)(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(l.a),y=function(e,t){this.x=e,this.y=t},A=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],b=new p.a(0,0,0,0),w=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new y(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new v,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new c(o),o}return Object(a.a)(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(i.each(A,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=_(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new y(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new y(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,a=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:m}}(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,a),e.trigger&&e.trigger(t,a)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new y(e,t);if(C(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new p.a(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(b.copy(u.getBoundingRect()),u.transform&&b.applyTransform(u.transform),b.intersect(c)&&a.push(u))}if(a.length)for(var h=Math.PI/12,f=2*Math.PI,d=0;d<s;d+=4)for(var g=0;g<f;g+=h){if(C(a,i,e+d*Math.cos(g),t+d*Math.sin(g),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new h);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new y;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(l.a);function x(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||g}return!1}function C(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=x(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==g)){t.target=o;break}}}function _(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}
/* harmony default export */i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){w.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,s=_(this,i,a);if("mouseup"===e&&s||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||o.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var I=w,E=n("04f6"),k=n("4bc4"),S=!1;
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/timsort.js
function B(){S||(S=!0)}function M(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var T=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=M}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Object(E.a)(n,M)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=k.a),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(B(),l.z=0),isNaN(l.z2)&&(B(),l.z2=0),isNaN(l.zlevel)&&(B(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=i.indexOf(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),O=n("98b7"),D=n("06ad");
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/zrender/lib/animation/Animation.js
function P(){return(new Date).getTime()}var L,Q,R=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Object(a.a)(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=P()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Object(O.a)((function t(){e._running&&(Object(O.a)(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=P(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=P(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=P()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new D.b(e,t.loop);return this.addAnimator(n),n},t}(l.a),j=r.a.domSupported,N=(Q={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:L=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:i.map(L,(function(e){var t=e.replace("mouse","pointer");return Q.hasOwnProperty(t)?t:e}))}),F=["mousemove","mouseup"],z=["pointermove","pointerup"],H=!1;
/* harmony default export */function U(e){var t=e.pointerType;return"pen"===t||"touch"===t}function G(e){e&&(e.zrByTouch=!0)}function V(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var W=function(e,t){this.stopPropagation=i.noop,this.stopImmediatePropagation=i.noop,this.preventDefault=i.noop,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},q={mousedown:function(e){e=Object(u.e)(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(u.e)(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Object(u.e)(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){V(this,(e=Object(u.e)(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){H=!0,e=Object(u.e)(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){H||(e=Object(u.e)(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){G(e=Object(u.e)(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),q.mousemove.call(this,e),q.mousedown.call(this,e)},touchmove:function(e){G(e=Object(u.e)(this.dom,e)),this.handler.processGesture(e,"change"),q.mousemove.call(this,e)},touchend:function(e){G(e=Object(u.e)(this.dom,e)),this.handler.processGesture(e,"end"),q.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&q.click.call(this,e)},pointerdown:function(e){q.mousedown.call(this,e)},pointermove:function(e){U(e)||q.mousemove.call(this,e)},pointerup:function(e){q.mouseup.call(this,e)},pointerout:function(e){U(e)||q.mouseout.call(this,e)}};i.each(["click","dblclick","contextmenu"],(function(e){q[e]=function(t){t=Object(u.e)(this.dom,t),this.trigger(e,t)}}));var Y={pointermove:function(e){U(e)||Y.mousemove.call(this,e)},pointerup:function(e){Y.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function K(e,t){var n=t.domHandlers;r.a.pointerEventsSupported?i.each(N.pointer,(function(r){J(t,r,(function(t){n[r].call(e,t)}))})):(r.a.touchEventsSupported&&i.each(N.touch,(function(r){J(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),i.each(N.mouse,(function(r){J(t,r,(function(i){i=Object(u.c)(i),t.touching||n[r].call(e,i)}))})))}function $(e,t){function n(n){J(t,n,(function(r){r=Object(u.c)(r),V(e,r.target)||(r=function(e,t){return Object(u.e)(e.dom,new W(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}r.a.pointerEventsSupported?i.each(z,n):r.a.touchEventsSupported||i.each(F,n)}function J(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Object(u.a)(e.domTarget,t,n,r)}function X(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Object(u.f)(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Z=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},ee=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Z(t,q),j&&(r._globalHandlerScope=new Z(document,Y)),K(r,r._localHandlerScope),r}return Object(a.a)(t,e),t.prototype.dispose=function(){X(this._localHandlerScope),j&&X(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,j&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?$(this,t):X(t)}},t}(l.a),te=n("41ef"),ne=n("2cf4"),re=n("2dc5"),ie={},ae={};var oe,se=function(){function e(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new T,s=n.renderer||"canvas";ie[s]||(s=i.keys(ie)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var c=new ie[s](t,o,n,e),l=n.ssr||c.ssrOnly;this.storage=o,this.painter=c;var u,h=r.a.node||r.a.worker||l?null:new ee(c.getViewportRoot(),c.root),f=n.useCoarsePointer;(null==f||"auto"===f?r.a.touchEventsSupported:!!f)&&(u=i.retrieve2(n.pointerSize,44)),this.handler=new I(o,c,h,c.root,u),this.animation=new R({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return Object(te.lum)(e,1)<ne.b;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(te.lum)(t[i].color,1);return(n/=r)<ne.b}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=P();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=P();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof re.a&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete ae[e])},e}();function ce(e,t){var n=new se(i.guid(),e,t);return ae[n.id]=n,n}function le(e){e.dispose()}function ue(){for(var e in ae)ae.hasOwnProperty(e)&&ae[e].dispose();ae={}}function he(e){return ae[e]}function fe(e,t){ie[e]=t}function de(e){if("function"==typeof oe)return oe(e)}function pe(e){oe=e}var ge="5.6.1"},
/***/"69b4":
/***/function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff";
/***/},
/***/"69d5":
/***/function(e,t,n){var r=n("cb5a"),i=Array.prototype.splice;
/** Used for built-in method references. */e.exports=
/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},
/***/"69f3":
/***/function(e,t,n){"use strict";var r,i,a,o=n("cdce"),s=n("cfe9"),c=n("861d"),l=n("9112"),u=n("1a2d"),h=n("c6cd"),f=n("f772"),d=n("d012"),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(o||h.state){var v=h.state||(h.state=new m);
/* eslint-disable no-self-assign -- prototype methods protection */v.get=v.get,v.has=v.has,v.set=v.set,
/* eslint-enable no-self-assign -- prototype methods protection */
r=function(e,t){if(v.has(e))throw new g(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var y=f("state");d[y]=!0,r=function(e,t){if(u(e,y))throw new g(p);return t.facade=e,l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},
/***/"6a21":
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: resetWarned
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-util/warning.js
/* eslint-disable no-console */var r={};function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}
/* harmony default export */var o=function(e,t){a(i,e,t)};
/* eslint-enable */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/warning.js
/* harmony default export */t.a=function(e,t){o(e,"[antdv: "+t+"] "+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""))}},
/***/"6a70":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"6a71":
/***/function(e,t,n){var r=n("a243"),i=n("13e8");e.exports={changer:r,varyColor:i}
/***/},
/***/"6aa8":
/***/function(e,t,n){
// getting tag from 19.1.3.6 Object.prototype.toString()
var r=n("4d88"),i=n("cc15")("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){/* empty */}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},
/***/"6ace":
/***/function(e,t,n){"use strict";var r=n("37a2"),i=n("d77f"),a=n("1147a"),o=n("6972"),s=n("6373"),c=n("fef8"),l=n("e056"),u=n("f937"),h=Math.min,f=[].push,d="split",p="length",g="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));
// @@split logic
n("9ed1")("split",2,(function(e,t,n,u){var y;
// based on es5-shim implementation, need to rework it
return y="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];
// If `separator` is not a regex, use native split
if(!r(e))return n.call(i,e,t);for(var a,o,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?m:t>>>0,v=new RegExp(e.source,u+"g");(a=l.call(v,i))&&!((o=v[g])>h&&(c.push(i.slice(h,a.index)),a[p]>1&&a.index<i[p]&&f.apply(c,a.slice(1)),s=a[0][p],h=o,c[p]>=d));)v[g]===a.index&&v[g]++;// Avoid an infinite loop
return h===i[p]?!s&&v.test("")||c.push(""):c.push(i.slice(h)),c[p]>d?c.slice(0,d):c}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[
// `String.prototype.split` method
// https://tc39.github.io/ecma262/#sec-string.prototype.split
function(n,r){var i=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,i,r):y.call(String(i),n,r)},
// `RegExp.prototype[@@split]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
// NOTE: This cannot be properly polyfilled in engines that don't support
// the 'y' flag.
function(e,t){var r=u(y,e,this,t,y!==n);if(r.done)return r.value;var l=i(e),f=String(this),d=a(l,RegExp),p=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),A=new d(v?l:"^(?:"+l.source+")",g),b=void 0===t?m:t>>>0;if(0===b)return[];if(0===f.length)return null===c(A,f)?[f]:[];for(var w=0,x=0,C=[];x<f.length;){A.lastIndex=v?x:0;var _,I=c(A,v?f:f.slice(x));if(null===I||(_=h(s(A.lastIndex+(v?0:x)),f.length))===w)x=o(f,x,p);else{if(C.push(f.slice(w,x)),C.length===b)return C;for(var E=1;E<=I.length-1;E++)if(C.push(I[E]),C.length===b)return C;x=w=_}}return C.push(f.slice(w)),C}]}))},
/***/"6ada":
/***/function(e,t,n){"use strict";var r=n("6621"),i=n("fb32"),a=n("27bd"),o={};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
n("0713")(o,n("de24")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},
/***/"6b11":
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=r.key,o=r.set;r.exp({defineMetadata:function(e,t,n,r){o(e,t,i(n),a(r))}})},
/***/"6b75":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
/***/n.d(t,"a",(function(){return r}))},
/***/"6b90":
/***/function(e,t,n){n("acf2"),n("b874"),n("fca6"),n("4afb"),n("5741"),n("2a2d"),n("811a"),n("42b6"),n("7a29e"),n("d0f4"),n("d284"),n("0635"),n("5d29"),n("4ec0"),n("97d3"),n("7067"),n("a5e2"),n("fb3f"),n("ad51"),n("9960"),n("eb8c"),n("fb8d"),n("f9f3"),n("a8e4"),n("62fa"),n("5013"),n("a3d8"),n("0db5"),n("396a"),n("d248"),n("8c03"),n("c293"),n("066b"),n("18f1"),n("4098"),n("930b"),n("e03f"),n("7701"),n("5406"),n("5c02"),n("a581"),n("8072"),n("7df4"),n("2b76"),n("11da"),n("1296"),n("a05b"),n("4ada"),n("202e"),n("8848"),n("2a95c"),n("1b50"),n("7382"),n("39f3"),n("68c0"),n("f58c"),n("accc"),n("b245"),n("2424"),n("3fab"),n("00ad"),n("dd46"),n("24d7"),n("206a"),n("6497"),n("8a34"),n("9e9b"),n("2217"),n("7bf9"),n("08bf"),n("f787"),n("62ee"),n("e4a7"),n("5d26"),n("fe9d"),n("b3ed"),n("8233"),n("4b30"),n("45bc"),n("b4d5"),n("a406"),n("dbcc"),n("68e5"),n("5c10"),n("0821"),n("5cef"),n("1c9c"),n("0209"),n("68d6"),n("df59"),n("97a6"),n("aea1"),n("726c"),n("5b1e"),n("3f84"),n("ad62"),n("2faf"),n("36bb"),n("d5b8"),n("21d0"),n("7c3c"),n("37c5"),n("8904"),n("02f7"),n("8344"),n("0bbe"),n("076f"),n("6ace"),n("5bbd"),n("1bde"),n("26f1"),n("94bb"),n("36b7"),n("a0ab"),n("8808"),n("50fc"),n("a4b5"),n("5147"),n("f415"),n("7d24"),n("06e3"),n("0840"),n("2ccc"),n("9ac3"),n("786f"),n("d610"),n("dfd1"),n("2985"),n("1b18"),n("ee7f"),n("3157"),n("c512"),n("3ec6"),n("d804"),n("a134"),n("8f83"),n("5c0c"),n("d537"),n("a2cc"),n("9c0b"),n("e735"),n("6412"),n("6461"),n("9cec"),n("418c"),n("5398"),n("0b67"),n("a524"),n("37e6"),n("b806"),n("5a6b"),n("c92b"),n("a798"),n("227b"),n("4282"),n("5010"),n("c5c0"),n("74ef"),n("985b"),n("167a"),n("8f7a"),n("fbd9"),n("3168"),n("7371"),n("89b1"),n("55c9"),n("3c77"),n("71ae"),n("f96c"),n("085a"),n("942c"),n("9f1f"),n("9d1d"),n("0f00"),n("7bd6"),n("9dab"),n("4003"),n("ebb7"),n("6bf7"),n("4b12"),n("b2b1"),n("8870"),n("82a6"),n("6b11"),n("d5b2"),n("9165"),n("6548"),n("4fd5"),n("64b3"),n("c7ca"),n("15e3"),n("ba70"),n("395a"),n("14c9"),n("e93f"),n("c4ef"),n("04fa"),e.exports=n("0ae2")},
/***/"6bb3":
/***/function(e,t,n){"use strict";
/* unused harmony export Bounds */
/* unused harmony export Browser */
/* unused harmony export CRS */
/* unused harmony export Canvas */
/* unused harmony export Circle */
/* unused harmony export CircleMarker */
/* unused harmony export Class */
/* unused harmony export Control */
/* unused harmony export DivIcon */
/* unused harmony export DivOverlay */
/* unused harmony export DomEvent */
/* unused harmony export DomUtil */
/* unused harmony export Draggable */
/* unused harmony export Evented */
/* unused harmony export FeatureGroup */
/* unused harmony export GeoJSON */
/* unused harmony export GridLayer */
/* unused harmony export Handler */
/* unused harmony export Icon */
/* unused harmony export ImageOverlay */
/* unused harmony export LatLng */
/* unused harmony export LatLngBounds */
/* unused harmony export Layer */
/* unused harmony export LayerGroup */
/* unused harmony export LineUtil */
/* unused harmony export Map */
/* unused harmony export Marker */
/* unused harmony export Mixin */
/* unused harmony export Path */
/* unused harmony export Point */
/* unused harmony export PolyUtil */
/* unused harmony export Polygon */
/* unused harmony export Polyline */
/* unused harmony export Popup */
/* unused harmony export PosAnimation */
/* unused harmony export Projection */
/* unused harmony export Rectangle */
/* unused harmony export Renderer */
/* unused harmony export SVG */
/* unused harmony export SVGOverlay */
/* unused harmony export TileLayer */
/* unused harmony export Tooltip */
/* unused harmony export Transformation */
/* unused harmony export Util */
/* unused harmony export VideoOverlay */
/* unused harmony export bind */
/* unused harmony export bounds */
/* unused harmony export canvas */
/* unused harmony export circle */
/* unused harmony export circleMarker */
/* unused harmony export control */
/* unused harmony export divIcon */
/* unused harmony export extend */
/* unused harmony export featureGroup */
/* unused harmony export geoJSON */
/* unused harmony export geoJson */
/* unused harmony export gridLayer */
/* unused harmony export icon */
/* unused harmony export imageOverlay */
/* unused harmony export latLng */
/* unused harmony export latLngBounds */
/* unused harmony export layerGroup */
/* unused harmony export map */
/* unused harmony export marker */
/* unused harmony export point */
/* unused harmony export polygon */
/* unused harmony export polyline */
/* unused harmony export popup */
/* unused harmony export rectangle */
/* unused harmony export setOptions */
/* unused harmony export stamp */
/* unused harmony export svg */
/* unused harmony export svgOverlay */
/* unused harmony export tileLayer */
/* unused harmony export tooltip */
/* unused harmony export transformation */
/* unused harmony export version */
/* unused harmony export videoOverlay */
/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */
/*
 * @namespace Util
 *
 * Various utility functions, used by Leaflet internally.
 */
// @function extend(dest: Object, src?: Object): Object
// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.
function r(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}
// @function create(proto: Object, properties?: Object): Object
// Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)
var i=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();
// @function bind(fn: Function, …): Function
// Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
// Has a `L.bind()` shortcut.
function a(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}
// @property lastId: Number
// Last unique ID used by [`stamp()`](#util-stamp)
var o=0;
// @function stamp(obj: Object): Number
// Returns the unique ID of an object, assigning it one if it doesn't have it.
function s(e){return"_leaflet_id"in e||(e._leaflet_id=++o),e._leaflet_id}
// @function throttle(fn: Function, time: Number, context: Object): Function
// Returns a function which executes function `fn` with the given scope `context`
// (so that the `this` keyword refers to `context` inside `fn`'s code). The function
// `fn` will be called no more than one time per given amount of `time`. The arguments
// received by the bound function will be any arguments passed when binding the
// function, followed by any arguments passed when invoking the bound function.
// Has an `L.throttle` shortcut.
function c(e,t,n){var r,i,a,o;return o=function(){
// reset lock and call if queued
r=!1,i&&(a.apply(n,i),i=!1)},a=function(){r?
// called too soon, queue to call later
i=arguments:(
// call and lock until later
e.apply(n,arguments),setTimeout(o,t),r=!0)},a}
// @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number
// Returns the number `num` modulo `range` in such a way so it lies within
// `range[0]` and `range[1]`. The returned value will be always smaller than
// `range[1]` unless `includeMax` is set to `true`.
function l(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}
// @function falseFn(): Function
// Returns a function which always returns `false`.
function u(){return!1}
// @function formatNum(num: Number, precision?: Number|false): Number
// Returns the number `num` rounded with specified `precision`.
// The default `precision` value is 6 decimal places.
// `false` can be passed to skip any processing (can be useful to avoid round-off errors).
function h(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}
// @function trim(str: String): String
// Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)
function f(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
// @function splitWords(str: String): String[]
// Trims and splits the string on whitespace and returns the array of parts.
function d(e){return f(e).split(/\s+/)}
// @function setOptions(obj: Object, options: Object): Object
// Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.
function p(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?i(e.options):{}),t)e.options[n]=t[n];return e.options}
// @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String
// Converts an object into a parameter URL string, e.g. `{a: "foo", b: "bar"}`
// translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will
// be appended at the end. If `uppercase` is `true`, the parameter names will
// be uppercased (e.g. `'?A=foo&B=bar'`)
function g(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;
// @function template(str: String, data: Object): String
// Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`
// and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string
// `('Hello foo, bar')`. You can also specify functions instead of strings for
// data values — they will be evaluated passing `data` as an argument.
function v(e,t){return e.replace(m,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r}))}
// @function isArray(obj): Boolean
// Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)
var y=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};
// @function indexOf(array: Array, el: Object): Number
// Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)
function A(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}
// @property emptyImageUrl: String
// Data URI string containing a base64-encoded empty GIF image.
// Used as a hack to free memory from unused images on WebKit-powered
// mobile devices (by setting image `src` to this string).
var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
// inspired by https://paulirish.com/2011/requestanimationframe-for-smart-animating/
function w(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var x=0;
// fallback for IE 7-8
function C(e){var t=+new Date,n=Math.max(0,16-(t-x));return x=t+n,window.setTimeout(e,n)}var _=window.requestAnimationFrame||w("RequestAnimationFrame")||C,I=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};
// @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number
// Schedules `fn` to be executed when the browser repaints. `fn` is bound to
// `context` if given. When `immediate` is set, `fn` is called immediately if
// the browser doesn't have native support for
// [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),
// otherwise it's delayed. Returns a request ID that can be used to cancel the request.
function E(e,t,n){if(!n||_!==C)return _.call(window,a(e,t));e.call(t)}
// @function cancelAnimFrame(id: Number): undefined
// Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).
function k(e){e&&I.call(window,e)}
// @class Class
// @aka L.Class
// @section
// @uninheritable
// Thanks to John Resig and Dean Edwards for inspiration!
function S(){}S.extend=function(e){
// @function extend(props: Object): Function
// [Extends the current class](#class-inheritance) given the properties to be included.
// Returns a Javascript function that is a class constructor (to be called with `new`).
var t=function(){p(this),
// call the constructor
this.initialize&&this.initialize.apply(this,arguments),
// call all constructor hooks
this.callInitHooks()},n=t.__super__=this.prototype,a=i(n);
// inherit parent's statics
for(var o in a.constructor=t,t.prototype=a,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(t[o]=this[o]);
// mix static properties into the class
return e.statics&&r(t,e.statics),
// mix includes into the prototype
e.includes&&(!function(e){
/* global L: true */
if("undefined"==typeof L||!L||!L.Mixin)return;e=y(e)?e:[e];for(var t=0;t<e.length;t++)e[t],L.Mixin.Events}
/*
 * @class Evented
 * @aka L.Evented
 * @inherits Class
 *
 * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).
 *
 * @example
 *
 * ```js
 * map.on('click', function(e) {
 * 	alert(e.latlng);
 * } );
 * ```
 *
 * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:
 *
 * ```js
 * function onClick(e) { ... }
 *
 * map.on('click', onClick);
 * map.off('click', onClick);
 * ```
 */(e.includes),r.apply(null,[a].concat(e.includes))),
// mix given properties into the prototype
r(a,e),delete a.statics,delete a.includes,
// merge options
a.options&&(a.options=n.options?i(n.options):{},r(a.options,e.options)),a._initHooks=[],
// add method for calling all hooks
a.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=a._initHooks.length;e<t;e++)a._initHooks[e].call(this)}},t},
// @function include(properties: Object): this
// [Includes a mixin](#class-includes) into the current class.
S.include=function(e){var t=this.prototype.options;return r(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},
// @function mergeOptions(options: Object): this
// [Merges `options`](#class-options) into the defaults of the class.
S.mergeOptions=function(e){return r(this.prototype.options,e),this},
// @function addInitHook(fn: Function): this
// Adds a [constructor hook](#class-constructor-hooks) to the class.
S.addInitHook=function(e){// (Function) || (String, args...)
var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var B={
/* @method on(type: String, fn: Function, context?: Object): this
	 * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
	 *
	 * @alternative
	 * @method on(eventMap: Object): this
	 * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
	 */
on:function(e,t,n){
// types can be a map of types/handlers
if("object"==typeof e)for(var r in e)
// we don't process space-separated events here for performance;
// it's a hot path since Layer uses the on(obj) syntax
this._on(r,e[r],t);else for(var i=0,a=(
// types can be a string of space-separated words
e=d(e)).length;i<a;i++)this._on(e[i],t,n);return this},
/* @method off(type: String, fn?: Function, context?: Object): this
	 * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.
	 *
	 * @alternative
	 * @method off(eventMap: Object): this
	 * Removes a set of type/listener pairs.
	 *
	 * @alternative
	 * @method off: this
	 * Removes all listeners to all events on the object. This includes implicitly attached events.
	 */
off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=d(e);for(var i=1===arguments.length,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}else
// clear all listeners if called without arguments
delete this._events;return this},
// attach listener (without syntactic sugar now)
_on:function(e,t,n,r){if("function"==typeof t&&!1===this._listens(e,t,n))
// check if fn already there
{n===this&&(
// Less memory footprint.
n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){var r,i,a;if(this._events&&(r=this._events[e]))if(1!==arguments.length){if("function"==typeof t){
// find fn and remove it
var o=this._listens(e,t,n);if(!1!==o){var s=r[o];this._firingCount&&(
// set the removed listener to noop so that's not called if remove happens in fire
s.fn=u,
/* copy array in case events are being fired */
this._events[e]=r=r.slice()),r.splice(o,1)}}}else{// remove all
if(this._firingCount)
// Set all removed listeners to noop
// so they are not called if remove happens in fire
for(i=0,a=r.length;i<a;i++)r[i].fn=u;
// clear all listeners for a type if function isn't specified
delete this._events[e]}},
// @method fire(type: String, data?: Object, propagate?: Boolean): this
// Fires an event of the specified type. You can optionally provide a data
// object — the first argument of the listener function will contain its
// properties. The event can optionally be propagated to event parents.
fire:function(e,t,n){if(!this.listens(e,n))return this;var i=r({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var c=a[o],l=c.fn;
// off overwrites l.fn, so we need to copy fn to a var
c.once&&this.off(e,l,c.ctx),l.call(c.ctx||this,i)}this._firingCount--}}return n&&
// propagate the event to parents (set with addEventParent)
this._propagateEvent(i),this},
// @method listens(type: String, propagate?: Boolean): Boolean
// @method listens(type: String, fn: Function, context?: Object, propagate?: Boolean): Boolean
// Returns `true` if a particular event type has any listeners attached to it.
// The verification can optionally be propagated, it will return `true` if parents have the listener attached to it.
listens:function(e,t,n,r){
// we don't overwrite the input `fn` value, because we need to use it for propagation
var i=t;"function"!=typeof t&&(r=!!t,i=void 0,n=void 0);var a=this._events&&this._events[e];if(a&&a.length&&!1!==this._listens(e,i,n))return!0;if(r)
// also check parents for listeners if event propagates
for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0;return!1},
// returns the index (number) or false
_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(
// Less memory footprint.
n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},
// @method once(…): this
// Behaves as [`on(…)`](#evented-on), except the listener will only get fired once and then removed.
once:function(e,t,n){
// types can be a map of types/handlers
if("object"==typeof e)for(var r in e)
// we don't process space-separated events here for performance;
// it's a hot path since Layer uses the on(obj) syntax
this._on(r,e[r],t,!0);else for(var i=0,a=(
// types can be a string of space-separated words
e=d(e)).length;i<a;i++)this._on(e[i],t,n,!0);return this},
// @method addEventParent(obj: Evented): this
// Adds an event parent - an `Evented` that will receive propagated events
addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[s(e)]=e,this},
// @method removeEventParent(obj: Evented): this
// Removes an event parent, so it will stop receiving propagated events
removeEventParent:function(e){return this._eventParents&&delete this._eventParents[s(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,r({layer:e.target,propagatedFrom:e.target},e),!0)}};
// aliases; we should ditch those eventually
// @method addEventListener(…): this
// Alias to [`on(…)`](#evented-on)
B.addEventListener=B.on,
// @method removeEventListener(…): this
// Alias to [`off(…)`](#evented-off)
// @method clearAllEventListeners(…): this
// Alias to [`off()`](#evented-off)
B.removeEventListener=B.clearAllEventListeners=B.off,
// @method addOneTimeEventListener(…): this
// Alias to [`once(…)`](#evented-once)
B.addOneTimeEventListener=B.once,
// @method fireEvent(…): this
// Alias to [`fire(…)`](#evented-fire)
B.fireEvent=B.fire,
// @method hasEventListeners(…): Boolean
// Alias to [`listens(…)`](#evented-listens)
B.hasEventListeners=B.listens;var M=S.extend(B);
/*
 * @class Point
 * @aka L.Point
 *
 * Represents a point with `x` and `y` coordinates in pixels.
 *
 * @example
 *
 * ```js
 * var point = L.point(200, 300);
 * ```
 *
 * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:
 *
 * ```js
 * map.panBy([200, 300]);
 * map.panBy(L.point(200, 300));
 * ```
 *
 * Note that `Point` does not inherit from Leaflet's `Class` object,
 * which means new classes can't inherit from it, and new methods
 * can't be added to it with the `include` function.
 */function T(e,t,n){
// @property x: Number; The `x` coordinate of the point
this.x=n?Math.round(e):e,
// @property y: Number; The `y` coordinate of the point
this.y=n?Math.round(t):t}var O=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};
// @factory L.point(x: Number, y: Number, round?: Boolean)
// Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.
// @alternative
// @factory L.point(coords: Number[])
// Expects an array of the form `[x, y]` instead.
// @alternative
// @factory L.point(coords: Object)
// Expects a plain object of the form `{x: Number, y: Number}` instead.
function D(e,t,n){return e instanceof T?e:y(e)?new T(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new T(e.x,e.y):new T(e,t,n)}
/*
 * @class Bounds
 * @aka L.Bounds
 *
 * Represents a rectangular area in pixel coordinates.
 *
 * @example
 *
 * ```js
 * var p1 = L.point(10, 10),
 * p2 = L.point(40, 60),
 * bounds = L.bounds(p1, p2);
 * ```
 *
 * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
 *
 * ```js
 * otherBounds.intersects([[10, 10], [40, 60]]);
 * ```
 *
 * Note that `Bounds` does not inherit from Leaflet's `Class` object,
 * which means new classes can't inherit from it, and new methods
 * can't be added to it with the `include` function.
 */function P(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}
// @factory L.bounds(corner1: Point, corner2: Point)
// Creates a Bounds object from two corners coordinate pairs.
// @alternative
// @factory L.bounds(points: Point[])
// Creates a Bounds object from the given array of points.
function Q(e,t){return!e||e instanceof P?e:new P(e,t)}
/*
 * @class LatLngBounds
 * @aka L.LatLngBounds
 *
 * Represents a rectangular geographical area on a map.
 *
 * @example
 *
 * ```js
 * var corner1 = L.latLng(40.712, -74.227),
 * corner2 = L.latLng(40.774, -74.125),
 * bounds = L.latLngBounds(corner1, corner2);
 * ```
 *
 * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
 *
 * ```js
 * map.fitBounds([
 * 	[40.712, -74.227],
 * 	[40.774, -74.125]
 * ]);
 * ```
 *
 * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.
 *
 * Note that `LatLngBounds` does not inherit from Leaflet's `Class` object,
 * which means new classes can't inherit from it, and new methods
 * can't be added to it with the `include` function.
 */function R(e,t){// (LatLng, LatLng) or (LatLng[])
if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}
// TODO International date line?
// @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)
// Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.
// @alternative
// @factory L.latLngBounds(latlngs: LatLng[])
// Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).
function j(e,t){return e instanceof R?e:new R(e,t)}
/* @class LatLng
 * @aka L.LatLng
 *
 * Represents a geographical point with a certain latitude and longitude.
 *
 * @example
 *
 * ```
 * var latlng = L.latLng(50.5, 30.5);
 * ```
 *
 * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:
 *
 * ```
 * map.panTo([50, 30]);
 * map.panTo({lon: 30, lat: 50});
 * map.panTo({lat: 50, lng: 30});
 * map.panTo(L.latLng(50, 30));
 * ```
 *
 * Note that `LatLng` does not inherit from Leaflet's `Class` object,
 * which means new classes can't inherit from it, and new methods
 * can't be added to it with the `include` function.
 */function N(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");
// @property lat: Number
// Latitude in degrees
this.lat=+e,
// @property lng: Number
// Longitude in degrees
this.lng=+t,
// @property alt: Number
// Altitude in meters (optional)
void 0!==n&&(this.alt=+n)}
// @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng
// Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).
// @alternative
// @factory L.latLng(coords: Array): LatLng
// Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.
// @alternative
// @factory L.latLng(coords: Object): LatLng
// Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.
function F(e,t,n){return e instanceof N?e:y(e)&&"object"!=typeof e[0]?3===e.length?new N(e[0],e[1],e[2]):2===e.length?new N(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new N(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new N(e,t,n)}
/*
 * @namespace CRS
 * @crs L.CRS.Base
 * Object that defines coordinate reference systems for projecting
 * geographical points into pixel (screen) coordinates and back (and to
 * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See
 * [spatial reference system](https://en.wikipedia.org/wiki/Spatial_reference_system).
 *
 * Leaflet defines the most usual CRSs by default. If you want to use a
 * CRS not defined by default, take a look at the
 * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.
 *
 * Note that the CRS instances do not inherit from Leaflet's `Class` object,
 * and can't be instantiated. Also, new classes can't inherit from them,
 * and methods can't be added to them with the `include` function.
 */T.prototype={
// @method clone(): Point
// Returns a copy of the current point.
clone:function(){return new T(this.x,this.y)},
// @method add(otherPoint: Point): Point
// Returns the result of addition of the current and the given points.
add:function(e){
// non-destructive, returns a new point
return this.clone()._add(D(e))},_add:function(e){
// destructive, used directly for performance in situations where it's safe to modify existing point
return this.x+=e.x,this.y+=e.y,this},
// @method subtract(otherPoint: Point): Point
// Returns the result of subtraction of the given point from the current.
subtract:function(e){return this.clone()._subtract(D(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},
// @method divideBy(num: Number): Point
// Returns the result of division of the current point by the given number.
divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},
// @method multiplyBy(num: Number): Point
// Returns the result of multiplication of the current point by the given number.
multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},
// @method scaleBy(scale: Point): Point
// Multiply each coordinate of the current point by each coordinate of
// `scale`. In linear algebra terms, multiply the point by the
// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)
// defined by `scale`.
scaleBy:function(e){return new T(this.x*e.x,this.y*e.y)},
// @method unscaleBy(scale: Point): Point
// Inverse of `scaleBy`. Divide each coordinate of the current point by
// each coordinate of `scale`.
unscaleBy:function(e){return new T(this.x/e.x,this.y/e.y)},
// @method round(): Point
// Returns a copy of the current point with rounded coordinates.
round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},
// @method floor(): Point
// Returns a copy of the current point with floored coordinates (rounded down).
floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},
// @method ceil(): Point
// Returns a copy of the current point with ceiled coordinates (rounded up).
ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},
// @method trunc(): Point
// Returns a copy of the current point with truncated coordinates (rounded towards zero).
trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=O(this.x),this.y=O(this.y),this},
// @method distanceTo(otherPoint: Point): Number
// Returns the cartesian distance between the current and the given points.
distanceTo:function(e){var t=(e=D(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},
// @method equals(otherPoint: Point): Boolean
// Returns `true` if the given point has the same coordinates.
equals:function(e){return(e=D(e)).x===this.x&&e.y===this.y},
// @method contains(otherPoint: Point): Boolean
// Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).
contains:function(e){return e=D(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},
// @method toString(): String
// Returns a string representation of the point for debugging purposes.
toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},P.prototype={
// @method extend(point: Point): this
// Extends the bounds to contain the given point.
// @alternative
// @method extend(otherBounds: Bounds): this
// Extend the bounds to contain the given bounds
extend:function(e){var t,n;if(!e)return this;if(e instanceof T||"number"==typeof e[0]||"x"in e)t=n=D(e);else if(t=(e=Q(e)).min,n=e.max,!t||!n)return this;
// @property min: Point
// The top left corner of the rectangle.
// @property max: Point
// The bottom right corner of the rectangle.
return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},
// @method getCenter(round?: Boolean): Point
// Returns the center point of the bounds.
getCenter:function(e){return D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},
// @method getBottomLeft(): Point
// Returns the bottom-left point of the bounds.
getBottomLeft:function(){return D(this.min.x,this.max.y)},
// @method getTopRight(): Point
// Returns the top-right point of the bounds.
getTopRight:function(){// -> Point
return D(this.max.x,this.min.y)},
// @method getTopLeft(): Point
// Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).
getTopLeft:function(){return this.min;// left, top
},
// @method getBottomRight(): Point
// Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).
getBottomRight:function(){return this.max;// right, bottom
},
// @method getSize(): Point
// Returns the size of the given bounds
getSize:function(){return this.max.subtract(this.min)},
// @method contains(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle contains the given one.
// @alternative
// @method contains(point: Point): Boolean
// Returns `true` if the rectangle contains the given point.
contains:function(e){var t,n;return(e="number"==typeof e[0]||e instanceof T?D(e):Q(e))instanceof P?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},
// @method intersects(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle intersects the given bounds. Two bounds
// intersect if they have at least one point in common.
intersects:function(e){// (Bounds) -> Boolean
e=Q(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},
// @method overlaps(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
// overlap if their intersection is an area.
overlaps:function(e){// (Bounds) -> Boolean
e=Q(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},
// @method isValid(): Boolean
// Returns `true` if the bounds are properly initialized.
isValid:function(){return!(!this.min||!this.max)},
// @method pad(bufferRatio: Number): Bounds
// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
// For example, a ratio of 0.5 extends the bounds by 50% in each direction.
// Negative values will retract the bounds.
pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return Q(D(t.x-r,t.y-i),D(n.x+r,n.y+i))},
// @method equals(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle is equivalent to the given bounds.
equals:function(e){return!!e&&(e=Q(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},R.prototype={
// @method extend(latlng: LatLng): this
// Extend the bounds to contain the given point
// @alternative
// @method extend(otherBounds: LatLngBounds): this
// Extend the bounds to contain the given bounds
extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof N)t=e,n=e;else{if(!(e instanceof R))return e?this.extend(F(e)||j(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new N(t.lat,t.lng),this._northEast=new N(n.lat,n.lng)),this},
// @method pad(bufferRatio: Number): LatLngBounds
// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
// For example, a ratio of 0.5 extends the bounds by 50% in each direction.
// Negative values will retract the bounds.
pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new R(new N(t.lat-r,t.lng-i),new N(n.lat+r,n.lng+i))},
// @method getCenter(): LatLng
// Returns the center point of the bounds.
getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},
// @method getSouthWest(): LatLng
// Returns the south-west point of the bounds.
getSouthWest:function(){return this._southWest},
// @method getNorthEast(): LatLng
// Returns the north-east point of the bounds.
getNorthEast:function(){return this._northEast},
// @method getNorthWest(): LatLng
// Returns the north-west point of the bounds.
getNorthWest:function(){return new N(this.getNorth(),this.getWest())},
// @method getSouthEast(): LatLng
// Returns the south-east point of the bounds.
getSouthEast:function(){return new N(this.getSouth(),this.getEast())},
// @method getWest(): Number
// Returns the west longitude of the bounds
getWest:function(){return this._southWest.lng},
// @method getSouth(): Number
// Returns the south latitude of the bounds
getSouth:function(){return this._southWest.lat},
// @method getEast(): Number
// Returns the east longitude of the bounds
getEast:function(){return this._northEast.lng},
// @method getNorth(): Number
// Returns the north latitude of the bounds
getNorth:function(){return this._northEast.lat},
// @method contains(otherBounds: LatLngBounds): Boolean
// Returns `true` if the rectangle contains the given one.
// @alternative
// @method contains (latlng: LatLng): Boolean
// Returns `true` if the rectangle contains the given point.
contains:function(e){// (LatLngBounds) or (LatLng) -> Boolean
e="number"==typeof e[0]||e instanceof N||"lat"in e?F(e):j(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof R?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},
// @method intersects(otherBounds: LatLngBounds): Boolean
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
intersects:function(e){e=j(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},
// @method overlaps(otherBounds: LatLngBounds): Boolean
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
overlaps:function(e){e=j(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},
// @method toBBoxString(): String
// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},
// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
equals:function(e,t){return!!e&&(e=j(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},
// @method isValid(): Boolean
// Returns `true` if the bounds are properly initialized.
isValid:function(){return!(!this._southWest||!this._northEast)}},N.prototype={
// @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean
// Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.
equals:function(e,t){return!!e&&(e=F(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},
// @method toString(): String
// Returns a string representation of the point (for debugging purposes).
toString:function(e){return"LatLng("+h(this.lat,e)+", "+h(this.lng,e)+")"},
// @method distanceTo(otherLatLng: LatLng): Number
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
distanceTo:function(e){return U.distance(this,F(e))},
// @method wrap(): LatLng
// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
wrap:function(){return U.wrapLatLng(this)},
// @method toBounds(sizeInMeters: Number): LatLngBounds
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return j([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new N(this.lat,this.lng,this.alt)}};var z,H={
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
// Projects geographical coordinates into pixel coordinates for a given zoom.
latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},
// @method pointToLatLng(point: Point, zoom: Number): LatLng
// The inverse of `latLngToPoint`. Projects pixel coordinates on a given
// zoom into geographical coordinates.
pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},
// @method project(latlng: LatLng): Point
// Projects geographical coordinates into coordinates in units accepted for
// this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).
project:function(e){return this.projection.project(e)},
// @method unproject(point: Point): LatLng
// Given a projected coordinate returns the corresponding LatLng.
// The inverse of `project`.
unproject:function(e){return this.projection.unproject(e)},
// @method scale(zoom: Number): Number
// Returns the scale used when transforming projected coordinates into
// pixel coordinates for a particular zoom. For example, it returns
// `256 * 2^zoom` for Mercator-based CRS.
scale:function(e){return 256*Math.pow(2,e)},
// @method zoom(scale: Number): Number
// Inverse of `scale()`, returns the zoom level corresponding to a scale
// factor of `scale`.
zoom:function(e){return Math.log(e/256)/Math.LN2},
// @method getProjectedBounds(zoom: Number): Bounds
// Returns the projection's bounds scaled and transformed for the provided `zoom`.
getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new P(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
// Returns the distance between two geographical coordinates.
// @property code: String
// Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)
// @property wrapLng: Number[]
// An array of two numbers defining whether the longitude (horizontal) coordinate
// axis wraps around a given range and how. Defaults to `[-180, 180]` in most
// geographical CRSs. If `undefined`, the longitude axis does not wrap around.
// @property wrapLat: Number[]
// Like `wrapLng`, but for the latitude (vertical) axis.
// wrapLng: [min, max],
// wrapLat: [min, max],
// @property infinite: Boolean
// If true, the coordinate space will be unbounded (infinite in both axes)
infinite:!1,
// @method wrapLatLng(latlng: LatLng): LatLng
// Returns a `LatLng` where lat and lng has been wrapped according to the
// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new N(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
// Returns a `LatLngBounds` with the same size as the given one, ensuring
// that its center is within the CRS's bounds.
// Only accepts actual `L.LatLngBounds` instances, not arrays.
wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var a=e.getSouthWest(),o=e.getNorthEast();return new R(new N(a.lat-r,a.lng-i),new N(o.lat-r,o.lng-i))}},U=r({},H,{wrapLng:[-180,180],
// Mean Earth Radius, as recommended for use by
// the International Union of Geodesy and Geophysics,
// see https://rosettacode.org/wiki/Haversine_formula
R:6371e3,
// distance between two geographical points using spherical law of cosines approximation
distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,c=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*c}}),G=6378137,V={R:G,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new T(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new N((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:(z=G*Math.PI,new P([-z,-z],[z,z]))};
/*
 * @namespace CRS
 * @crs L.CRS.Earth
 *
 * Serves as the base for CRS that are global such that they cover the earth.
 * Can only be used as the base for other CRS and cannot be used directly,
 * since it does not have a `code`, `projection` or `transformation`. `distance()` returns
 * meters.
 */
/*
 * @class Transformation
 * @aka L.Transformation
 *
 * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`
 * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing
 * the reverse. Used by Leaflet in its projections code.
 *
 * @example
 *
 * ```js
 * var transformation = L.transformation(2, 5, -1, 10),
 * 	p = L.point(1, 2),
 * 	p2 = transformation.transform(p), //  L.point(7, 8)
 * 	p3 = transformation.untransform(p2); //  L.point(1, 2)
 * ```
 */
// factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)
// Creates a `Transformation` object with the given coefficients.
function W(e,t,n,r){if(y(e))
// use array properties
return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}
// factory L.transformation(a: Number, b: Number, c: Number, d: Number)
// @factory L.transformation(a: Number, b: Number, c: Number, d: Number)
// Instantiates a Transformation object with the given coefficients.
// @alternative
// @factory L.transformation(coefficients: Array): Transformation
// Expects an coefficients array of the form
// `[a: Number, b: Number, c: Number, d: Number]`.
function q(e,t,n,r){return new W(e,t,n,r)}
/*
 * @namespace CRS
 * @crs L.CRS.EPSG3857
 *
 * The most common CRS for online maps, used by almost all free and commercial
 * tile providers. Uses Spherical Mercator projection. Set in by default in
 * Map's `crs` option.
 */W.prototype={
// @method transform(point: Point, scale?: Number): Point
// Returns a transformed point, optionally multiplied by the given scale.
// Only accepts actual `L.Point` instances, not arrays.
transform:function(e,t){// (Point, Number) -> Point
return this._transform(e.clone(),t)},
// destructive transform (faster)
_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},
// @method untransform(point: Point, scale?: Number): Point
// Returns the reverse transformation of the given point, optionally divided
// by the given scale. Only accepts actual `L.Point` instances, not arrays.
untransform:function(e,t){return t=t||1,new T((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var Y=r({},U,{code:"EPSG:3857",projection:V,transformation:function(){var e=.5/(Math.PI*V.R);return q(e,.5,-e,.5)}()}),K=r({},Y,{code:"EPSG:900913"});
// @namespace SVG; @section
// There are several static functions which can be called without instantiating L.SVG:
// @function create(name: String): SVGElement
// Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),
// corresponding to the class name passed. For example, using 'line' will return
// an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).
function $(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}
// @function pointsToPath(rings: Point[], closed: Boolean): String
// Generates a SVG path string for multiple rings, with each ring turning
// into "M..L..L.." instructions
function J(e,t){var n,r,i,a,o,s,c="";for(n=0,i=e.length;n<i;n++){for(r=0,a=(o=e[n]).length;r<a;r++)c+=(r?"L":"M")+(s=o[r]).x+" "+s.y;
// closes the ring for polygons; "x" is VML syntax
c+=t?Le.svg?"z":"x":""}
// SVG complains about empty path strings
return c||"M0 0"}
/*
 * @namespace Browser
 * @aka L.Browser
 *
 * A namespace with static properties for browser/feature detection used by Leaflet internally.
 *
 * @example
 *
 * ```js
 * if (L.Browser.ielt9) {
 *   alert('Upgrade your browser, dude!');
 * }
 * ```
 */var X,Z=document.documentElement.style,ee="ActiveXObject"in window,te=ee&&!document.addEventListener,ne="msLaunchUri"in navigator&&!("documentMode"in document),re=Pe("webkit"),ie=Pe("android"),ae=Pe("android 2")||Pe("android 3"),oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=ie&&Pe("Google")&&oe<537&&!("AudioNode"in window),ce=!!window.opera,le=!ne&&Pe("chrome"),ue=Pe("gecko")&&!re&&!ce&&!ee,he=!le&&Pe("safari"),fe=Pe("phantom"),de="OTransition"in Z,pe=0===navigator.platform.indexOf("Win"),ge=ee&&"transition"in Z,me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ae,ve="MozPerspective"in Z,ye=!window.L_DISABLE_3D&&(ge||me||ve)&&!de&&!fe,Ae="undefined"!=typeof orientation||Pe("mobile"),be=Ae&&re,we=Ae&&me,xe=!window.PointerEvent&&window.MSPointerEvent,Ce=!(!window.PointerEvent&&!xe),_e="ontouchstart"in window||!!window.TouchEvent,Ie=!window.L_NO_TOUCH&&(_e||Ce),Ee=Ae&&ce,ke=Ae&&ue,Se=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Be=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){// eslint-disable-line getter-return
e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(e){
// Errors can safely be ignored since this is only a browser support test.
}return e}(),Me=!!document.createElement("canvas").getContext,Te=!(!document.createElementNS||!$("svg").createSVGRect),Oe=!!Te&&((X=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(X.firstChild&&X.firstChild.namespaceURI)),De=!Te&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();
// @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).
function Pe(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Le={ie:ee,ielt9:te,edge:ne,webkit:re,android:ie,android23:ae,androidStock:se,opera:ce,chrome:le,gecko:ue,safari:he,phantom:fe,opera12:de,win:pe,ie3d:ge,webkit3d:me,gecko3d:ve,any3d:ye,mobile:Ae,mobileWebkit:be,mobileWebkit3d:we,msPointer:xe,pointer:Ce,touch:Ie,touchNative:_e,mobileOpera:Ee,mobileGecko:ke,retina:Se,passiveEvents:Be,canvas:Me,svg:Te,vml:De,inlineSvg:Oe,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Qe=Le.msPointer?"MSPointerDown":"pointerdown",Re=Le.msPointer?"MSPointerMove":"pointermove",je=Le.msPointer?"MSPointerUp":"pointerup",Ne=Le.msPointer?"MSPointerCancel":"pointercancel",Fe={touchstart:Qe,touchmove:Re,touchend:je,touchcancel:Ne},ze={touchstart:function(e,t){
// IE10 specific: MsTouch needs preventDefault. See #2000
t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Rt(t);Ye(e,t)}
/*
 * Extends the event handling code with double tap support for mobile browsers.
 *
 * Note: currently most browsers fire native dblclick, with only a few exceptions
 * (see https://github.com/Leaflet/Leaflet/issues/7012#issuecomment-595087386)
 */,touchmove:Ye,touchend:Ye,touchcancel:Ye},He={},Ue=!1;
/*
 * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices.
 */
// Provides a touch events wrapper for (ms)pointer events.
// ref https://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
function Ge(e,t,n){return"touchstart"===t&&(
// need to keep track of what pointers and how many are active to provide e.touches emulation
Ue||(
// we listen document as any drags that end by moving the touch off the screen get fired there
document.addEventListener(Qe,Ve,!0),document.addEventListener(Re,We,!0),document.addEventListener(je,qe,!0),document.addEventListener(Ne,qe,!0),Ue=!0)),ze[t]?(n=ze[t].bind(this,n),e.addEventListener(Fe[t],n,!1),n):u}function Ve(e){He[e.pointerId]=e}function We(e){He[e.pointerId]&&(He[e.pointerId]=e)}function qe(e){delete He[e.pointerId]}function Ye(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],He)t.touches.push(He[n]);t.changedTouches=[t],e(t)}}
/*
 * @namespace DomUtil
 *
 * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)
 * tree, used by Leaflet internally.
 *
 * Most functions expecting or returning a `HTMLElement` also work for
 * SVG elements. The only difference is that classes refer to CSS classes
 * in HTML and SVG classes in SVG.
 */
// @property TRANSFORM: String
// Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit).
var Ke,$e,Je,Xe,Ze,et=mt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tt=mt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),nt="webkitTransition"===tt||"OTransition"===tt?tt+"End":"transitionend";
// webkitTransition comes first because some browser versions that drop vendor prefix don't do
// the same for the transitionend event, in particular the Android 4.1 stock browser
// @property TRANSITION: String
// Vendor-prefixed transition style name.
// @function get(id: String|HTMLElement): HTMLElement
// Returns an element given its DOM id, or returns the element itself
// if it was passed directly.
function rt(e){return"string"==typeof e?document.getElementById(e):e}
// @function getStyle(el: HTMLElement, styleAttrib: String): String
// Returns the value for a certain style attribute on an element,
// including computed values or values set through CSS.
function it(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}
// @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement
// Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.
function at(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}
// @function remove(el: HTMLElement)
// Removes `el` from its parent element
function ot(e){var t=e.parentNode;t&&t.removeChild(e)}
// @function empty(el: HTMLElement)
// Removes all of `el`'s children elements from `el`
function st(e){for(;e.firstChild;)e.removeChild(e.firstChild)}
// @function toFront(el: HTMLElement)
// Makes `el` the last child of its parent, so it renders in front of the other children.
function ct(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}
// @function toBack(el: HTMLElement)
// Makes `el` the first child of its parent, so it renders behind the other children.
function lt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}
// @function hasClass(el: HTMLElement, name: String): Boolean
// Returns `true` if the element's class attribute contains `name`.
function ut(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=pt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}
// @function addClass(el: HTMLElement, name: String)
// Adds `name` to the element's class attribute.
function ht(e,t){if(void 0!==e.classList)for(var n=d(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!ut(e,t)){var a=pt(e);dt(e,(a?a+" ":"")+t)}}
// @function removeClass(el: HTMLElement, name: String)
// Removes `name` from the element's class attribute.
function ft(e,t){void 0!==e.classList?e.classList.remove(t):dt(e,f((" "+pt(e)+" ").replace(" "+t+" "," ")))}
// @function setClass(el: HTMLElement, name: String)
// Sets the element's class.
function dt(e,t){void 0===e.className.baseVal?e.className=t:
// in case of SVG element
e.className.baseVal=t}
// @function getClass(el: HTMLElement): String
// Returns the element's class.
function pt(e){
// Check if the element is an SVGElementInstance and use the correspondingElement instead
// (Required for linked SVG elements in IE11.)
return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}
// @function setOpacity(el: HTMLElement, opacity: Number)
// Set the opacity of an element (including old IE support).
// `opacity` must be a number from `0` to `1`.
function gt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&function(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";
// filters collection throws an error if we try to retrieve a filter that doesn't exist
try{n=e.filters.item(r)}catch(e){
// don't set opacity to 1 if we haven't already set an opacity,
// it isn't needed and breaks transparent pngs.
if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}
// @function testProp(props: String[]): String|false
// Goes through the array of style names and returns the first name
// that is a valid style name for an element. If no such name is found,
// it returns false. Useful for vendor-prefixed styles like `transform`.
(e,t)}function mt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}
// @function setTransform(el: HTMLElement, offset: Point, scale?: Number)
// Resets the 3D CSS transform of `el` so it is translated by `offset` pixels
// and optionally scaled by `scale`. Does not have an effect if the
// browser doesn't support 3D CSS transforms.
function vt(e,t,n){var r=t||new T(0,0);e.style[et]=(Le.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}
// @function setPosition(el: HTMLElement, position: Point)
// Sets the position of `el` to coordinates specified by `position`,
// using CSS translate or top/left positioning depending on the browser
// (used by Leaflet internally to position its layers).
function yt(e,t){
/*eslint-disable */
e._leaflet_pos=t,
/* eslint-enable */
Le.any3d?vt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}
// @function getPosition(el: HTMLElement): Point
// Returns the coordinates of an element previously positioned with setPosition.
function At(e){
// this method is only used for elements previously positioned using setPosition,
// so it's safe to cache the position for performance
return e._leaflet_pos||new T(0,0)}
// @function disableTextSelection()
// Prevents the user from generating `selectstart` DOM events, usually generated
// when the user drags the mouse through a page with text. Used internally
// by Leaflet to override the behaviour of any click-and-drag interaction on
// the map. Affects drag interactions on the whole document.
// @function enableTextSelection()
// Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection).
if("onselectstart"in document)Ke=function(){kt(window,"selectstart",Rt)},$e=function(){Bt(window,"selectstart",Rt)};else{var bt=mt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ke=function(){if(bt){var e=document.documentElement.style;Je=e[bt],e[bt]="none"}},$e=function(){bt&&(document.documentElement.style[bt]=Je,Je=void 0)}}
// @function disableImageDrag()
// As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but
// for `dragstart` DOM events, usually generated when the user drags an image.
function wt(){kt(window,"dragstart",Rt)}
// @function enableImageDrag()
// Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection).
function xt(){Bt(window,"dragstart",Rt)}
// @function preventOutline(el: HTMLElement)
// Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline)
// of the element `el` invisible. Used internally by Leaflet to prevent
// focusable elements from displaying an outline when the user performs a
// drag interaction on them.
function Ct(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(_t(),Xe=e,Ze=e.style.outlineStyle,e.style.outlineStyle="none",kt(window,"keydown",_t))}
// @function restoreOutline()
// Cancels the effects of a previous [`L.DomUtil.preventOutline`]().
function _t(){Xe&&(Xe.style.outlineStyle=Ze,Xe=void 0,Ze=void 0,Bt(window,"keydown",_t))}
// @function getSizedParentNode(el: HTMLElement): HTMLElement
// Finds the closest parent node which size (width and height) is not null.
function It(e){do{e=e.parentNode}while(!(e.offsetWidth&&e.offsetHeight||e===document.body));return e}
// @function getScale(el: HTMLElement): Object
// Computes the CSS scale currently applied on the element.
// Returns an object with `x` and `y` members as horizontal and vertical scales respectively,
// and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
function Et(e){var t=e.getBoundingClientRect();// Read-only in old browsers.
return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}
/*
 * @namespace DomEvent
 * Utility functions to work with the [DOM events](https://developer.mozilla.org/docs/Web/API/Event), used by Leaflet internally.
 */
// Inspired by John Resig, Dean Edwards and YUI addEvent implementations.
// @function on(el: HTMLElement, types: String, fn: Function, context?: Object): this
// Adds a listener function (`fn`) to a particular DOM event type of the
// element `el`. You can optionally specify the context of the listener
// (object the `this` keyword will point to). You can also pass several
// space-separated types (e.g. `'click dblclick'`).
// @alternative
// @function on(el: HTMLElement, eventMap: Object, context?: Object): this
// Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
function kt(e,t,n,r){if(t&&"object"==typeof t)for(var i in t)Ot(e,i,t[i],n);else for(var a=0,o=(t=d(t)).length;a<o;a++)Ot(e,t[a],n,r);return this}var St="_leaflet_events";
// @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this
// Removes a previously added listener function.
// Note that if you passed a custom context to on, you must pass the same
// context to `off` in order to remove the listener.
// @alternative
// @function off(el: HTMLElement, eventMap: Object, context?: Object): this
// Removes a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
// @alternative
// @function off(el: HTMLElement, types: String): this
// Removes all previously added listeners of given types.
// @alternative
// @function off(el: HTMLElement): this
// Removes all previously added listeners from given HTMLElement
function Bt(e,t,n,r){if(1===arguments.length)Mt(e),delete e[St];else if(t&&"object"==typeof t)for(var i in t)Dt(e,i,t[i],n);else if(t=d(t),2===arguments.length)Mt(e,(function(e){return-1!==A(t,e)}));else for(var a=0,o=t.length;a<o;a++)Dt(e,t[a],n,r);return this}function Mt(e,t){for(var n in e[St]){var r=n.split(/\d/)[0];t&&!t(r)||Dt(e,r,null,null,n)}}var Tt={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ot(e,t,n,r){var i=t+s(n)+(r?"_"+s(r):"");if(e[St]&&e[St][i])return this;var a=function(t){return n.call(r||e,t||window.event)},o=a;!Le.touchNative&&Le.pointer&&0===t.indexOf("touch")?
// Needs DomEvent.Pointer.js
a=Ge(e,t,a):Le.touch&&"dblclick"===t?a=function(e,t){
// Most browsers handle double tap natively
e.addEventListener("dblclick",t);
// On some platforms the browser doesn't fire native dblclicks for touch events.
// It seems that in all such cases `detail` property of `click` event is always `1`.
// So here we rely on that fact to avoid excessive 'dblclick' simulation when not needed.
var n,r=0;function i(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){
// When clicking on an <input>, the browser generates a click on its
// <label> (and vice versa) triggering two clicks in quick succession.
// This ignores clicks on elements which are a label with a 'for'
// attribute (or children of such a label), but not children of
// a <input>.
var i=Nt(e);if(!i.some((function(e){return e instanceof HTMLLabelElement&&e.attributes.for}))||i.some((function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var a=Date.now();a-r<=200?2==++n&&t(function(e){
// in modern browsers `type` cannot be just overridden:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only
var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;// for debug purposes
return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}(e)):n=1,r=a}}}else n=e.detail}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}(e,a):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Tt[t]||t,a,!!Le.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){t=t||window.event,Ut(e,t)&&o(t)},e.addEventListener(Tt[t],a,!1)):e.addEventListener(t,o,!1):e.attachEvent("on"+t,a),e[St]=e[St]||{},e[St][i]=a}function Dt(e,t,n,r,i){i=i||t+s(n)+(r?"_"+s(r):"");var a=e[St]&&e[St][i];if(!a)return this;!Le.touchNative&&Le.pointer&&0===t.indexOf("touch")?function(e,t,n){Fe[t]&&e.removeEventListener(Fe[t],n,!1)}(e,t,a):Le.touch&&"dblclick"===t?function(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}(e,a):"removeEventListener"in e?e.removeEventListener(Tt[t]||t,a,!1):e.detachEvent("on"+t,a),e[St][i]=null}
// @function stopPropagation(ev: DOMEvent): this
// Stop the given event from propagation to parent elements. Used inside the listener functions:
// ```js
// L.DomEvent.on(div, 'click', function (ev) {
// 	L.DomEvent.stopPropagation(ev);
// });
// ```
function Pt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?// In case of Leaflet event.
e.originalEvent._stopped=!0:e.cancelBubble=!0,this}
// @function disableScrollPropagation(el: HTMLElement): this
// Adds `stopPropagation` to the element's `'wheel'` events (plus browser variants).
function Lt(e){return Ot(e,"wheel",Pt),this}
// @function disableClickPropagation(el: HTMLElement): this
// Adds `stopPropagation` to the element's `'click'`, `'dblclick'`, `'contextmenu'`,
// `'mousedown'` and `'touchstart'` events (plus browser variants).
function Qt(e){return kt(e,"mousedown touchstart dblclick contextmenu",Pt),e._leaflet_disable_click=!0,this}
// @function preventDefault(ev: DOMEvent): this
// Prevents the default action of the DOM Event `ev` from happening (such as
// following a link in the href of the a element, or doing a POST request
// with page reload when a `<form>` is submitted).
// Use it inside listener functions.
function Rt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}
// @function stop(ev: DOMEvent): this
// Does `stopPropagation` and `preventDefault` at the same time.
function jt(e){return Rt(e),Pt(e),this}
// @function getPropagationPath(ev: DOMEvent): Array
// Compatibility polyfill for [`Event.composedPath()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath).
// Returns an array containing the `HTMLElement`s that the given DOM event
// should propagate to (if not stopped).
function Nt(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}
// @function getMousePosition(ev: DOMEvent, container?: HTMLElement): Point
// Gets normalized mouse position from a DOM event relative to the
// `container` (border excluded) or to the whole page if not specified.
function Ft(e,t){if(!t)return new T(e.clientX,e.clientY);var n=Et(t),r=n.boundingClientRect;// left and top  values are in page scale (like the event clientX/Y)
return new T(
// offset.left/top values are in page scale (like clientX/Y),
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
(e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}
//  except , Safari and
// We need double the scroll pixels (see #7403 and #4538) for all Browsers
// except OSX (Mac) -> 3x, Chrome running on Linux 1x
var zt=Le.linux&&Le.chrome?window.devicePixelRatio:Le.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;
// @function getWheelDelta(ev: DOMEvent): Number
// Gets normalized wheel delta from a wheel DOM event, in vertical
// pixels scrolled (negative if scrolling down).
// Events from pointing devices without precise scrolling are mapped to
// a best guess of 60 pixels.
function Ht(e){return Le.edge?e.wheelDeltaY/2:// Don't trust window-geometry-based delta
e.deltaY&&0===e.deltaMode?-e.deltaY/zt:// Pixels
e.deltaY&&1===e.deltaMode?20*-e.deltaY:// Lines
e.deltaY&&2===e.deltaMode?60*-e.deltaY:// Pages
e.deltaX||e.deltaZ?0:// Skip horizontal/depth wheel events
e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:// Legacy IE pixels
e.detail&&Math.abs(e.detail)<32765?20*-e.detail:// Legacy Moz lines
e.detail?e.detail/-32765*60:// Legacy Moz pages
0}
// check if element really left/entered the event target (for mouseenter/mouseleave)
function Ut(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var Gt=M.extend({
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
// Run an animation of a given element to a new position, optionally setting
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
// `0.5` by default).
run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=At(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,
// @event start: Event
// Fired when the animation starts
this.fire("start"),this._animate()},
// @method stop()
// Stops the animation (if currently running).
stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){
// animation loop
this._animId=E(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),yt(this._el,n),
// @event step: Event
// Fired continuously during the animation.
this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,
// @event end: Event
// Fired when the animation ends.
this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Vt=M.extend({options:{
// @section Map State Options
// @option crs: CRS = L.CRS.EPSG3857
// The [Coordinate Reference System](#crs) to use. Don't change this if you're not
// sure what it means.
crs:Y,
// @option center: LatLng = undefined
// Initial geographic center of the map
center:void 0,
// @option zoom: Number = undefined
// Initial map zoom level
zoom:void 0,
// @option minZoom: Number = *
// Minimum zoom level of the map.
// If not specified and at least one `GridLayer` or `TileLayer` is in the map,
// the lowest of their `minZoom` options will be used instead.
minZoom:void 0,
// @option maxZoom: Number = *
// Maximum zoom level of the map.
// If not specified and at least one `GridLayer` or `TileLayer` is in the map,
// the highest of their `maxZoom` options will be used instead.
maxZoom:void 0,
// @option layers: Layer[] = []
// Array of layers that will be added to the map initially
layers:[],
// @option maxBounds: LatLngBounds = null
// When this option is set, the map restricts the view to the given
// geographical bounds, bouncing the user back if the user tries to pan
// outside the view. To set the restriction dynamically, use
// [`setMaxBounds`](#map-setmaxbounds) method.
maxBounds:void 0,
// @option renderer: Renderer = *
// The default method for drawing vector layers on the map. `L.SVG`
// or `L.Canvas` by default depending on browser support.
renderer:void 0,
// @section Animation Options
// @option zoomAnimation: Boolean = true
// Whether the map zoom animation is enabled. By default it's enabled
// in all browsers that support CSS3 Transitions except Android.
zoomAnimation:!0,
// @option zoomAnimationThreshold: Number = 4
// Won't animate zoom if the zoom difference exceeds this value.
zoomAnimationThreshold:4,
// @option fadeAnimation: Boolean = true
// Whether the tile fade animation is enabled. By default it's enabled
// in all browsers that support CSS3 Transitions except Android.
fadeAnimation:!0,
// @option markerZoomAnimation: Boolean = true
// Whether markers animate their zoom with the zoom animation, if disabled
// they will disappear for the length of the animation. By default it's
// enabled in all browsers that support CSS3 Transitions except Android.
markerZoomAnimation:!0,
// @option transform3DLimit: Number = 2^23
// Defines the maximum size of a CSS translation transform. The default
// value should not be changed unless a web browser positions layers in
// the wrong place after doing a large `panBy`.
transform3DLimit:8388608,// Precision limit of a 32-bit float
// @section Interaction Options
// @option zoomSnap: Number = 1
// Forces the map's zoom level to always be a multiple of this, particularly
// right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.
// By default, the zoom level snaps to the nearest integer; lower values
// (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`
// means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.
zoomSnap:1,
// @option zoomDelta: Number = 1
// Controls how much the map's zoom level will change after a
// [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`
// or `-` on the keyboard, or using the [zoom controls](#control-zoom).
// Values smaller than `1` (e.g. `0.5`) allow for greater granularity.
zoomDelta:1,
// @option trackResize: Boolean = true
// Whether the map automatically handles browser window resize to update itself.
trackResize:!0},initialize:function(e,t){// (HTMLElement or String, Object)
t=p(this,t),
// Make sure to assign internal flags at the beginning,
// to avoid inconsistent state in some edge cases.
this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),
// hack for https://github.com/Leaflet/Leaflet/issues/1980
this._onResize=a(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(F(t.center),t.zoom,{reset:!0}),this.callInitHooks(),
// don't animate on browsers without hardware-accelerated transitions or old Android/Opera
this._zoomAnimated=tt&&Le.any3d&&!Le.mobileOpera&&this.options.zoomAnimation,
// zoom transitions run with the same duration for all layers, so if one of transitionend events
// happens after starting zoom animation (propagating to the map pane), we know that it ended globally
this._zoomAnimated&&(this._createAnimProxy(),kt(this._proxy,nt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},
// @section Methods for modifying map state
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
// Sets the view of the map (geographical center and zoom) with the given
// animation options.
setView:function(e,t,n){if((t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(F(e),t,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n)&&(void 0!==n.animate&&(n.zoom=r({animate:n.animate},n.zoom),n.pan=r({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,n.zoom):this._tryAnimatedPan(e,n.pan)))
// prevent resize handler call, the view will refresh after animation anyway
return clearTimeout(this._sizeTimer),this;
// animation didn't start, just reset the map view
return this._resetView(e,t,n.pan&&n.pan.noMoveStart),this},
// @method setZoom(zoom: Number, options?: Zoom/pan options): this
// Sets the zoom of the map.
setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},
// @method zoomIn(delta?: Number, options?: Zoom options): this
// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
zoomIn:function(e,t){return e=e||(Le.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},
// @method zoomOut(delta?: Number, options?: Zoom options): this
// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
zoomOut:function(e,t){return e=e||(Le.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},
// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
// Zooms the map while keeping a specified geographical point on the map
// stationary (e.g. used internally for scroll zoom and double-click zoom).
// @alternative
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof T?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():j(e);var n=D(t.paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"==typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},
// @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this
// Sets a map view that contains the given geographical bounds with the
// maximum zoom level possible.
fitBounds:function(e,t){if(!(e=j(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},
// @method fitWorld(options?: fitBounds options): this
// Sets a map view that mostly contains the whole world with the maximum
// zoom level possible.
fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},
// @method panTo(latlng: LatLng, options?: Pan options): this
// Pans the map to a given center.
panTo:function(e,t){// (LatLng)
return this.setView(e,this._zoom,{pan:t})},
// @method panBy(offset: Point, options?: Pan options): this
// Pans the map by a given number of pixels (animated).
panBy:function(e,t){if(t=t||{},!(e=D(e).round()).x&&!e.y)return this.fire("moveend");
// If we pan too far, Chrome gets issues with tiles
// and makes them disappear or appear in the wrong place (slightly offset) #2602
if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;
// animate pan unless animate: false specified
if(this._panAnim||(this._panAnim=new Gt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),
// don't fire movestart if animating inertia
t.noMoveStart||this.fire("movestart"),!1!==t.animate){ht(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},
// @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this
// Sets the view of the map (geographical center and zoom) performing a smooth
// pan-zoom animation.
flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Le.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=F(e),t=void 0===t?o:t;var s=Math.max(a.x,a.y),c=s*this.getZoomScale(o,t),l=i.distanceTo(r)||1,u=1.42,h=2.0164;function f(e){var t=(c*c-s*s+(e?-1:1)*h*h*l*l)/(2*(e?c:s)*h*l),n=Math.sqrt(t*t+1)-t;
// workaround for floating point precision bug when sq = 0, log = -Infinite,
// thus triggering an infinite loop in flyTo
return n<1e-9?-18:Math.log(n)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}var g=f(0);function m(e){return s*(p(g)*(d(t=g+u*e)/p(t))-d(g))/h;var t}var v=Date.now(),y=(f(1)-g)/u,A=n.duration?1e3*n.duration:1e3*y*.8;return this._moveStart(!0,n.noMoveStart),function n(){var a=(Date.now()-v)/A,c=function(e){return 1-Math.pow(1-e,1.5)}(a)*y;a<=1?(this._flyToFrame=E(n,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(m(c)/l)),o),this.getScaleZoom(s/function(e){return s*(p(g)/p(g+u*e))}(c),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}.call(this),this},
// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
// but takes a bounds parameter like [`fitBounds`](#map-fitbounds).
flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},
// @method setMaxBounds(bounds: LatLngBounds): this
// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
setMaxBounds:function(e){return e=j(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},
// @method setMinZoom(zoom: Number): this
// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},
// @method setMaxZoom(zoom: Number): this
// Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).
setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},
// @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this
// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,j(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},
// @method panInside(latlng: LatLng, options?: padding options): this
// Pans the map the minimum amount to make the `latlng` visible. Use
// padding options to fit the display to more restricted bounds.
// If `latlng` is already within the (optionally padded) display bounds,
// the map will not be panned.
panInside:function(e,t){var n=D((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=Q([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},
// @method invalidateSize(options: Zoom/pan options): this
// Checks if the map container size changed and updates the map if so —
// call it after you've changed the map size dynamically, also animating
// pan by default. If `options.pan` is `false`, panning will not occur.
// If `options.debounceMoveend` is `true`, it will delay `moveend` event so
// that it doesn't happen often even if the method is called many
// times in a row.
// @alternative
// @method invalidateSize(animate: Boolean): this
// Checks if the map container size changed and updates the map if so —
// call it after you've changed the map size dynamically, also animating
// pan by default.
invalidateSize:function(e){if(!this._loaded)return this;e=r({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),i=t.divideBy(2).round(),o=n.divideBy(2).round(),s=i.subtract(o);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:n})):this},
// @section Methods for modifying map state
// @method stop(): this
// Stops the currently running `panTo` or `flyTo` animation, if any.
stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},
// @section Geolocation methods
// @method locate(options?: Locate options): this
// Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)
// event with location data on success or a [`locationerror`](#map-locationerror) event on failure,
// and optionally sets the map view to the user's location with respect to
// detection accuracy (or to the world view if geolocation failed).
// Note that, if your page doesn't use HTTPS, this method will fail in
// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
// See `Locate options` for more details.
locate:function(e){if(e=this._locateOptions=r({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=a(this._handleGeolocationResponse,this),n=a(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,n,e):navigator.geolocation.getCurrentPosition(t,n,e),this},
// @method stopLocate(): this
// Stops watching location previously initiated by `map.locate({watch: true})`
// and aborts resetting the map view if map.locate was called with
// `{setView: true}`.
stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),
// @section Location events
// @event locationerror: ErrorEvent
// Fired when geolocation (using the [`locate`](#map-locate) method) failed.
this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new N(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var a={latlng:t,bounds:n,timestamp:e.timestamp};for(var o in e.coords)"number"==typeof e.coords[o]&&(a[o]=e.coords[o]);
// @event locationfound: LocationEvent
// Fired when geolocation (using the [`locate`](#map-locate) method)
// went successfully.
this.fire("locationfound",a)}},
// TODO Appropriate docs section?
// @section Other Methods
// @method addHandler(name: String, HandlerClass: Function): this
// Adds a new `Handler` to the map, given its name and constructor function.
addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},
// @method remove(): this
// Destroys the map and clears all related event listeners.
remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{
// throws error in IE6-8
delete this._container._leaflet_id,delete this._containerId}catch(e){
/*eslint-disable */
this._container._leaflet_id=void 0,
/* eslint-enable */
this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ot(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&
// @section Map state change events
// @event unload: Event
// Fired when the map is destroyed with [remove](#map-remove) method.
this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ot(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},
// @section Other Methods
// @method createPane(name: String, container?: HTMLElement): HTMLElement
// Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,
// then returns it. The pane is created as a child of `container`, or
// as a child of the main map pane if not set.
createPane:function(e,t){var n=at("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},
// @section Methods for Getting Map State
// @method getCenter(): LatLng
// Returns the geographical center of the map view
getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},
// @method getZoom(): Number
// Returns the current zoom level of the map view
getZoom:function(){return this._zoom},
// @method getBounds(): LatLngBounds
// Returns the geographical bounds visible in the current map view
getBounds:function(){var e=this.getPixelBounds();return new R(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},
// @method getMinZoom(): Number
// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},
// @method getMaxZoom(): Number
// Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).
getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},
// @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number
// Returns the maximum zoom level on which the given bounds fit to the map
// view in its entirety. If `inside` (optional) is set to `true`, the method
// instead returns the minimum zoom level on which the map view fits into
// the given bounds in its entirety.
getBoundsZoom:function(e,t,n){// (LatLngBounds[, Boolean, Point]) -> Number
e=j(e),n=D(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=Q(this.project(s,r),this.project(o,r)).getSize(),u=Le.any3d?this.options.zoomSnap:1,h=c.x/l.x,f=c.y/l.y,d=t?Math.max(h,f):Math.min(h,f);return r=this.getScaleZoom(d,r),u&&(r=Math.round(r/(u/100))*(u/100),// don't jump if within 1% of a snap level
r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},
// @method getSize(): Point
// Returns the current size of the map container (in pixels).
getSize:function(){return this._size&&!this._sizeChanged||(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},
// @method getPixelBounds(): Bounds
// Returns the bounds of the current map view in projected pixel
// coordinates (sometimes useful in layer and overlay implementations).
getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new P(n,n.add(this.getSize()))},
// TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
// the map pane? "left point of the map layer" can be confusing, specially
// since there can be negative offsets.
// @method getPixelOrigin(): Point
// Returns the projected pixel coordinates of the top left point of
// the map layer (useful in custom layer and overlay implementations).
getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},
// @method getPixelWorldBounds(zoom?: Number): Bounds
// Returns the world's bounds in pixel coordinates for zoom level `zoom`.
// If `zoom` is omitted, the map's current zoom level is used.
getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},
// @section Other Methods
// @method getPane(pane: String|HTMLElement): HTMLElement
// Returns a [map pane](#map-pane), given its name or its HTML element (its identity).
getPane:function(e){return"string"==typeof e?this._panes[e]:e},
// @method getPanes(): Object
// Returns a plain object containing the names of all [panes](#map-pane) as keys and
// the panes as values.
getPanes:function(){return this._panes},
// @method getContainer: HTMLElement
// Returns the HTML element that contains the map.
getContainer:function(){return this._container},
// @section Conversion Methods
// @method getZoomScale(toZoom: Number, fromZoom: Number): Number
// Returns the scale factor to be applied to a map transition from zoom level
// `fromZoom` to `toZoom`. Used internally to help with zoom animations.
getZoomScale:function(e,t){
// TODO replace with universal implementation after refactoring projections
var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},
// @method getScaleZoom(scale: Number, fromZoom: Number): Number
// Returns the zoom level that the map would end up at, if it is at `fromZoom`
// level and everything is scaled by a factor of `scale`. Inverse of
// [`getZoomScale`](#map-getZoomScale).
getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},
// @method project(latlng: LatLng, zoom: Number): Point
// Projects a geographical coordinate `LatLng` according to the projection
// of the map's CRS, then scales it according to `zoom` and the CRS's
// `Transformation`. The result is pixel coordinate relative to
// the CRS origin.
project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(F(e),t)},
// @method unproject(point: Point, zoom: Number): LatLng
// Inverse of [`project`](#map-project).
unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(D(e),t)},
// @method layerPointToLatLng(point: Point): LatLng
// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
// returns the corresponding geographical coordinate (for the current zoom level).
layerPointToLatLng:function(e){var t=D(e).add(this.getPixelOrigin());return this.unproject(t)},
// @method latLngToLayerPoint(latlng: LatLng): Point
// Given a geographical coordinate, returns the corresponding pixel coordinate
// relative to the [origin pixel](#map-getpixelorigin).
latLngToLayerPoint:function(e){return this.project(F(e))._round()._subtract(this.getPixelOrigin())},
// @method wrapLatLng(latlng: LatLng): LatLng
// Returns a `LatLng` where `lat` and `lng` has been wrapped according to the
// map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the
// CRS's bounds.
// By default this means longitude is wrapped around the dateline so its
// value is between -180 and +180 degrees.
wrapLatLng:function(e){return this.options.crs.wrapLatLng(F(e))},
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
// Returns a `LatLngBounds` with the same size as the given one, ensuring that
// its center is within the CRS's bounds.
// By default this means the center longitude is wrapped around the dateline so its
// value is between -180 and +180 degrees, and the majority of the bounds
// overlaps the CRS's bounds.
wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(j(e))},
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
// Returns the distance between two geographical coordinates according to
// the map's CRS. By default this measures distance in meters.
distance:function(e,t){return this.options.crs.distance(F(e),F(t))},
// @method containerPointToLayerPoint(point: Point): Point
// Given a pixel coordinate relative to the map container, returns the corresponding
// pixel coordinate relative to the [origin pixel](#map-getpixelorigin).
containerPointToLayerPoint:function(e){// (Point)
return D(e).subtract(this._getMapPanePos())},
// @method layerPointToContainerPoint(point: Point): Point
// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
// returns the corresponding pixel coordinate relative to the map container.
layerPointToContainerPoint:function(e){// (Point)
return D(e).add(this._getMapPanePos())},
// @method containerPointToLatLng(point: Point): LatLng
// Given a pixel coordinate relative to the map container, returns
// the corresponding geographical coordinate (for the current zoom level).
containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(D(e));return this.layerPointToLatLng(t)},
// @method latLngToContainerPoint(latlng: LatLng): Point
// Given a geographical coordinate, returns the corresponding pixel coordinate
// relative to the map container.
latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(e)))},
// @method mouseEventToContainerPoint(ev: MouseEvent): Point
// Given a MouseEvent object, returns the pixel coordinate relative to the
// map container where the event took place.
mouseEventToContainerPoint:function(e){return Ft(e,this._container)},
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
// Given a MouseEvent object, returns the pixel coordinate relative to
// the [origin pixel](#map-getpixelorigin) where the event took place.
mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},
// @method mouseEventToLatLng(ev: MouseEvent): LatLng
// Given a MouseEvent object, returns geographical coordinate where the
// event took place.
mouseEventToLatLng:function(e){// (MouseEvent)
return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},
// map initialization methods
_initContainer:function(e){var t=this._container=rt(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");kt(t,"scroll",this._onScroll,this),this._containerId=s(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Le.any3d,ht(e,"leaflet-container"+(Le.touch?" leaflet-touch":"")+(Le.retina?" leaflet-retina":"")+(Le.ielt9?" leaflet-oldie":"")+(Le.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=it(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},
// @section
// Panes are DOM elements used to control the ordering of layers on the map. You
// can access panes with [`map.getPane`](#map-getpane) or
// [`map.getPanes`](#map-getpanes) methods. New panes can be created with the
// [`map.createPane`](#map-createpane) method.
// Every map has the following default panes that differ only in zIndex.
// @pane mapPane: HTMLElement = 'auto'
// Pane that contains all other map panes
this._mapPane=this.createPane("mapPane",this._container),yt(this._mapPane,new T(0,0)),
// @pane tilePane: HTMLElement = 200
// Pane for `GridLayer`s and `TileLayer`s
this.createPane("tilePane"),
// @pane overlayPane: HTMLElement = 400
// Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s
this.createPane("overlayPane"),
// @pane shadowPane: HTMLElement = 500
// Pane for overlay shadows (e.g. `Marker` shadows)
this.createPane("shadowPane"),
// @pane markerPane: HTMLElement = 600
// Pane for `Icon`s of `Marker`s
this.createPane("markerPane"),
// @pane tooltipPane: HTMLElement = 650
// Pane for `Tooltip`s.
this.createPane("tooltipPane"),
// @pane popupPane: HTMLElement = 700
// Pane for `Popup`s.
this.createPane("popupPane"),this.options.markerZoomAnimation||(ht(e.markerPane,"leaflet-zoom-hide"),ht(e.shadowPane,"leaflet-zoom-hide"))},
// private methods that modify map state
// @section Map state change events
_resetView:function(e,t,n){yt(this._mapPane,new T(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),
// @event viewreset: Event
// Fired when the map needs to redraw its content (this usually happens
// on map zoom or load). Very useful for creating custom overlays.
this.fire("viewreset"),
// @event load: Event
// Fired when the map is initialized (when its center and zoom are set
// for the first time).
r&&this.fire("load")},_moveStart:function(e,t){
// @event zoomstart: Event
// Fired when the map zoom is about to change (e.g. before zoom animation).
// @event movestart: Event
// Fired when the view of the map starts changing (e.g. user starts dragging the map).
return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&// Always fire 'zoom' if pinching because #3530
this.fire("zoom",n):(
// @event zoom: Event
// Fired repeatedly during any change in zoom level,
// including zoom and fly animations.
(i||n&&n.pinch)&&// Always fire 'zoom' if pinching because #3530
this.fire("zoom",n),
// @event move: Event
// Fired repeatedly during any movement of the map,
// including pan and fly animations.
this.fire("move",n)),this},_moveEnd:function(e){
// @event moveend: Event
// Fired when the center of the map stops changing
// (e.g. user stopped dragging the map or after non-centered zoom).
// @event zoomend: Event
// Fired when the map zoom changed, after any animations.
return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){yt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},
// DOM event handling
// @section Interaction events
_initEvents:function(e){this._targets={},this._targets[s(this._container)]=this;var t=e?Bt:kt;
// @event click: MouseEvent
// Fired when the user clicks (or taps) the map.
// @event dblclick: MouseEvent
// Fired when the user double-clicks (or double-taps) the map.
// @event mousedown: MouseEvent
// Fired when the user pushes the mouse button on the map.
// @event mouseup: MouseEvent
// Fired when the user releases the mouse button on the map.
// @event mouseover: MouseEvent
// Fired when the mouse enters the map.
// @event mouseout: MouseEvent
// Fired when the mouse leaves the map.
// @event mousemove: MouseEvent
// Fired while the mouse moves over the map.
// @event contextmenu: MouseEvent
// Fired when the user pushes the right mouse button on the map, prevents
// default browser context menu from showing if there are listeners on
// this event. Also fired on mobile when the user holds a single touch
// for a second (also called long press).
// @event keypress: KeyboardEvent
// Fired when the user presses a key from the keyboard that produces a character value while the map is focused.
// @event keydown: KeyboardEvent
// Fired when the user presses a key from the keyboard while the map is focused. Unlike the `keypress` event,
// the `keydown` event is fired for keys that produce a character value and for keys
// that do not produce a character value.
// @event keyup: KeyboardEvent
// Fired when the user releases a key from the keyboard while the map is focused.
t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Le.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=E((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&
// https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have
// a pixel offset on very high values, see: https://jsfiddle.net/dg6r5hhb/
this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,o=!1;a;){if((n=this._targets[s(a)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){
// Prevent firing click after you just dragged an object.
o=!0;break}if(n&&n.listens(t,!0)){if(i&&!Ut(a,e))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||o||i||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&
// prevents outline when clicking on keyboard-focusable element
Ct(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,n){if("click"===e.type){
// Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).
// @event preclick: MouseEvent
// Fired before mouse click on the map (sometimes useful when you
// want something to happen on click before any existing click
// handlers start running).
var i=r({},e);i.type="preclick",this._fireDOMEvent(i,i.type,n)}
// Find the layer the event is propagating from and its parents.
var a=this._findEventTargets(e,t);if(n){// pick only targets with listeners
for(var o=[],s=0;s<n.length;s++)n[s].listens(t,!0)&&o.push(n[s]);a=o.concat(a)}if(a.length){"contextmenu"===t&&Rt(e);var c=a[0],l={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var u=c.getLatLng&&(!c._radius||c._radius<=10);l.containerPoint=u?this.latLngToContainerPoint(c.getLatLng()):this.mouseEventToContainerPoint(e),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=u?c.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(s=0;s<a.length;s++)if(a[s].fire(t,l,!0),l.originalEvent._stopped||!1===a[s].options.bubblingMouseEvents&&-1!==A(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},
// @section Other Methods
// @method whenReady(fn: Function, context?: Object): this
// Runs the given function `fn` when the map gets initialized with
// a view (center and zoom) and at least one layer, or immediately
// if it's already initialized, optionally passing a function context.
whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},
// private methods for getting map state
_getMapPanePos:function(){return At(this._mapPane)||new T(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return Q([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},
// layer point of the current center
_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},
// offset of the specified place to the current center in pixels
_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},
// adjust center for view to get inside bounds
_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new P(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);
// If offset is less than a pixel, ignore.
// This prevents unstable projections from getting into
// an infinite loop of tiny offsets.
return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?e:this.unproject(r.add(o),t)},
// adjust offset for view to get inside bounds
_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new P(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},
// returns offset needed for pxBounds to get inside maxBounds at a specified zoom
_getBoundsOffset:function(e,t,n){var r=Q(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new T(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=Le.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){
// difference between the new and current centers in pixels
var n=this._getCenterOffset(e)._trunc();
// don't animate too far unless animate: true specified in options
return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=at("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=et,n=this._proxy.style[t];vt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),
// workaround for case when transform is the same and so transitionend event is not fired
n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ot(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();vt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;
// don't animate if disabled, not supported or zoom difference is too large
if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;
// offset is the pixel coords of the zoom origin relative to the current center
var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);
// don't animate if the zoom origin isn't within one screen from the current center, unless forced
return!(!0!==n.animate&&!this.getSize().contains(i))&&(E((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,
// remember what center/zoom to set after animation
this._animateToCenter=e,this._animateToZoom=t,ht(this._mapPane,"leaflet-zoom-anim")),
// @section Other Events
// @event zoomanim: ZoomAnimEvent
// Fired at least once per zoom animation. For continuous zoom, like pinch zooming, fired once per frame during zoom.
this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),
// Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693
setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ft(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});
/*
 * @class PosAnimation
 * @aka L.PosAnimation
 * @inherits Evented
 * Used internally for panning animations, utilizing CSS3 Transitions for modern browsers and a timer fallback for IE6-9.
 *
 * @example
 * ```js
 * var myPositionMarker = L.marker([48.864716, 2.294694]).addTo(map);
 *
 * myPositionMarker.on("click", function() {
 * 	var pos = map.latLngToLayerPoint(myPositionMarker.getLatLng());
 * 	pos.y -= 25;
 * 	var fx = new L.PosAnimation();
 *
 * 	fx.once('end',function() {
 * 		pos.y += 25;
 * 		fx.run(myPositionMarker._icon, pos, 0.8);
 * 	});
 *
 * 	fx.run(myPositionMarker._icon, pos, 0.3);
 * });
 *
 * ```
 *
 * @constructor L.PosAnimation()
 * Creates a `PosAnimation` object.
 *
 */
/*
 * @class Control
 * @aka L.Control
 * @inherits Class
 *
 * L.Control is a base class for implementing map controls. Handles positioning.
 * All other controls extend from this class.
 */
var Wt=S.extend({
// @section
// @aka Control Options
options:{
// @option position: String = 'topright'
// The position of the control (one of the map corners). Possible values are `'topleft'`,
// `'topright'`, `'bottomleft'` or `'bottomright'`
position:"topright"},initialize:function(e){p(this,e)},
/* @section
	 * Classes extending L.Control will inherit the following methods:
	 *
	 * @method getPosition: string
	 * Returns the position of the control.
	 */
getPosition:function(){return this.options.position},
// @method setPosition(position: string): this
// Sets the position of the control.
setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},
// @method getContainer: HTMLElement
// Returns the HTMLElement that contains the control.
getContainer:function(){return this._container},
// @method addTo(map: Map): this
// Adds the control to the given map.
addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return ht(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},
// @method remove: this
// Removes the control from the map it is currently active on.
remove:function(){return this._map?(ot(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){
// if map exists and event is not a keyboard event
this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),qt=function(e){return new Wt(e)};
/* @section Extension methods
 * @uninheritable
 *
 * Every control should extend from `L.Control` and (re-)implement the following methods.
 *
 * @method onAdd(map: Map): HTMLElement
 * Should return the container DOM element for the control and add listeners on relevant map events. Called on [`control.addTo(map)`](#control-addTo).
 *
 * @method onRemove(map: Map)
 * Optional method. Should contain all clean up code that removes the listeners previously added in [`onAdd`](#control-onadd). Called on [`control.remove()`](#control-remove).
 */
/* @namespace Map
 * @section Methods for Layers and Controls
 */
Vt.include({
// @method addControl(control: Control): this
// Adds the given control to the map
addControl:function(e){return e.addTo(this),this},
// @method removeControl(control: Control): this
// Removes the given control from the map
removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=at("div",t+"control-container",this._container);function r(r,i){var a=t+r+" "+t+i;e[r+i]=at("div",a,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ot(this._controlCorners[e]);ot(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});
/*
 * @class Control.Layers
 * @aka L.Control.Layers
 * @inherits Control
 *
 * The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the [detailed example](https://leafletjs.com/examples/layers-control/)). Extends `Control`.
 *
 * @example
 *
 * ```js
 * var baseLayers = {
 * 	"Mapbox": mapbox,
 * 	"OpenStreetMap": osm
 * };
 *
 * var overlays = {
 * 	"Marker": marker,
 * 	"Roads": roadsLayer
 * };
 *
 * L.control.layers(baseLayers, overlays).addTo(map);
 * ```
 *
 * The `baseLayers` and `overlays` parameters are object literals with layer names as keys and `Layer` objects as values:
 *
 * ```js
 * {
 *     "<someName1>": layer1,
 *     "<someName2>": layer2
 * }
 * ```
 *
 * The layer names can contain HTML, which allows you to add additional styling to the items:
 *
 * ```js
 * {"<img src='my-layer-icon' /> <span class='my-layer-item'>My Layer</span>": myLayer}
 * ```
 */
var Yt=Wt.extend({
// @section
// @aka Control.Layers options
options:{
// @option collapsed: Boolean = true
// If `true`, the control will be collapsed into an icon and expanded on mouse hover, touch, or keyboard activation.
collapsed:!0,position:"topright",
// @option autoZIndex: Boolean = true
// If `true`, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.
autoZIndex:!0,
// @option hideSingleBase: Boolean = false
// If `true`, the base layers in the control will be hidden when there is only one.
hideSingleBase:!1,
// @option sortLayers: Boolean = false
// Whether to sort the layers. When `false`, layers will keep the order
// in which they were added to the control.
sortLayers:!1,
// @option sortFunction: Function = *
// A [compare function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
// that will be used for sorting the layers, when `sortLayers` is `true`.
// The function receives both the `L.Layer` instances and their names, as in
// `sortFunction(layerA, layerB, nameA, nameB)`.
// By default, it sorts layers alphabetically by their name.
sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){
// Trigger expand after Layers Control has been inserted into DOM so that is now has an actual height.
return Wt.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},
// @method addBaseLayer(layer: Layer, name: String): this
// Adds a base layer (radio button entry) with the given name to the control.
addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},
// @method addOverlay(layer: Layer, name: String): this
// Adds an overlay (checkbox entry) with the given name to the control.
addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},
// @method removeLayer(layer: Layer): this
// Remove the given layer from the control.
removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(s(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},
// @method expand(): this
// Expand the control container if collapsed.
expand:function(){ht(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(ht(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},
// @method collapse(): this
// Collapse the control container if expanded.
collapse:function(){return ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=at("div",e),n=this.options.collapsed;
// makes this work on IE touch devices by stopping it from firing a mouseout event when the touch is released
t.setAttribute("aria-haspopup",!0),Qt(t),Lt(t);var r=this._section=at("section",e+"-list");n&&(this._map.on("click",this.collapse,this),kt(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=at("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),kt(i,{keydown:function(e){13===e.keyCode&&this._expandSafely()},
// Certain screen readers intercept the key event and instead send a click event
click:function(e){Rt(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=at("div",e+"-base",r),this._separator=at("div",e+"-separator",r),this._overlaysList=at("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&s(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(a((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;st(this._baseLayersList),st(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;
// Hide base layers section if there's only one layer.
return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(s(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;
// @namespace Map
// @section Layer events
// @event baselayerchange: LayersControlEvent
// Fired when the base layer is changed through the [layers control](#control-layers).
// @event overlayadd: LayersControlEvent
// Fired when an overlay is selected through the [layers control](#control-layers).
// @event overlayremove: LayersControlEvent
// Fired when an overlay is deselected through the [layers control](#control-layers).
// @namespace Control.Layers
n&&this._map.fire(n,t)},
// IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see https://stackoverflow.com/a/119079)
_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+s(this),r),this._layerControlInputs.push(t),t.layerId=s(e.layer),kt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;
// Helps from preventing layer control flicker when checkboxes are disabled
// https://github.com/Leaflet/Leaflet/issues/2771
var a=document.createElement("span");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){
// expanding the control on mobile with a click can cause adding a layer - we don't want this
if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)e=n[a],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);
// Bugfix issue 2318: Should remove all old layers before readding new ones
for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,kt(e,"click",Rt),this.expand();var t=this;setTimeout((function(){Bt(e,"click",Rt),t._preventClick=!1}))}}),Kt=Wt.extend({
// @section
// @aka Control.Zoom options
options:{position:"topleft",
// @option zoomInText: String = '<span aria-hidden="true">+</span>'
// The text set on the 'zoom in' button.
zoomInText:'<span aria-hidden="true">+</span>',
// @option zoomInTitle: String = 'Zoom in'
// The title set on the 'zoom in' button.
zoomInTitle:"Zoom in",
// @option zoomOutText: String = '<span aria-hidden="true">&#x2212;</span>'
// The text set on the 'zoom out' button.
zoomOutText:'<span aria-hidden="true">&#x2212;</span>',
// @option zoomOutTitle: String = 'Zoom out'
// The title set on the 'zoom out' button.
zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=at("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=at("a",n,r);return a.innerHTML=e,a.href="#",a.title=t,
/*
		 * Will force screen readers like VoiceOver to read this as "Zoom in - button"
		 */
a.setAttribute("role","button"),a.setAttribute("aria-label",t),Qt(a),kt(a,"click",jt),kt(a,"click",i,this),kt(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";ft(this._zoomInButton,t),ft(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(ht(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(ht(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});
// @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)
// Creates a layers control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.
// @namespace Map
// @section Control options
// @option zoomControl: Boolean = true
// Whether a [zoom control](#control-zoom) is added to the map by default.
Vt.mergeOptions({zoomControl:!0}),Vt.addInitHook((function(){this.options.zoomControl&&(
// @section Controls
// @property zoomControl: Control.Zoom
// The default zoom control (only available if the
// [`zoomControl` option](#map-zoomcontrol) was `true` when creating the map).
this.zoomControl=new Kt,this.addControl(this.zoomControl))}));
// @namespace Control.Zoom
// @factory L.control.zoom(options: Control.Zoom options)
// Creates a zoom control
var $t=Wt.extend({
// @section
// @aka Control.Scale options
options:{position:"bottomleft",
// @option maxWidth: Number = 100
// Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).
maxWidth:100,
// @option metric: Boolean = True
// Whether to show the metric scale line (m/km).
metric:!0,
// @option imperial: Boolean = True
// Whether to show the imperial scale line (mi/ft).
imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=at("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=at("div",t,n)),e.imperial&&(this._iScale=at("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Jt=Wt.extend({
// @section
// @aka Control.Attribution options
options:{position:"bottomright",
// @option prefix: String|false = 'Leaflet'
// The HTML text shown before the attributions. Pass `false` to disable.
prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Le.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){
// TODO ugly, refactor
for(var t in e.attributionControl=this,this._container=at("div","leaflet-control-attribution"),Qt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},
// @method setPrefix(prefix: String|false): this
// The HTML text shown before the attributions. Pass `false` to disable.
setPrefix:function(e){return this.options.prefix=e,this._update(),this},
// @method addAttribution(text: String): this
// Adds an attribution text (e.g. `'&copy; OpenStreetMap contributors'`).
addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},
// @method removeAttribution(text: String): this
// Removes an attribution text.
removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});
/*
 * @class Control.Scale
 * @aka L.Control.Scale
 * @inherits Control
 *
 * A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Extends `Control`.
 *
 * @example
 *
 * ```js
 * L.control.scale().addTo(map);
 * ```
 */
// @namespace Map
// @section Control options
// @option attributionControl: Boolean = true
// Whether a [attribution control](#control-attribution) is added to the map by default.
Vt.mergeOptions({attributionControl:!0}),Vt.addInitHook((function(){this.options.attributionControl&&(new Jt).addTo(this)}));Wt.Layers=Yt,Wt.Zoom=Kt,Wt.Scale=$t,Wt.Attribution=Jt,qt.layers=function(e,t,n){return new Yt(e,t,n)},qt.zoom=function(e){return new Kt(e)},qt.scale=function(e){return new $t(e)},qt.attribution=function(e){return new Jt(e)};
/*
	L.Handler is a base class for handler classes that are used internally to inject
	interaction features like dragging to classes like Map and Marker.
*/
// @class Handler
// @aka L.Handler
// Abstract class for map interaction handlers
var Xt=S.extend({initialize:function(e){this._map=e},
// @method enable(): this
// Enables the handler
enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},
// @method disable(): this
// Disables the handler
disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},
// @method enabled(): Boolean
// Returns `true` if the handler is enabled
enabled:function(){return!!this._enabled}
// @section Extension methods
// Classes inheriting from `Handler` must implement the two following methods:
// @method addHooks()
// Called when the handler is enabled, should add event hooks.
// @method removeHooks()
// Called when the handler is disabled, should remove the event hooks added previously.
});
// @section There is static function which can be called without instantiating L.Handler:
// @function addTo(map: Map, name: String): this
// Adds a new Handler to the given map with the given name.
Xt.addTo=function(e,t){return e.addHandler(t,this),this};var Zt=Le.touch?"touchstart mousedown":"mousedown",en=M.extend({options:{
// @section
// @aka Draggable options
// @option clickTolerance: Number = 3
// The max number of pixels a user can shift the mouse pointer during a click
// for it to be considered a valid click (as opposed to a mouse drag).
clickTolerance:3},
// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
// Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},
// @method enable()
// Enables the dragging ability
enable:function(){this._enabled||(kt(this._dragStartTarget,Zt,this._onDown,this),this._enabled=!0)},
// @method disable()
// Disables the dragging ability
disable:function(){this._enabled&&(
// If we're currently dragging this draggable,
// disabling it counts as first ending the drag.
en._dragging===this&&this.finishDrag(!0),Bt(this._dragStartTarget,Zt,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){
// Ignore the event if disabled; this happens in IE11
// under some circumstances, see #3666.
if(this._enabled&&(this._moved=!1,!ut(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)
// Finish dragging to avoid conflict with touchZoom
en._dragging===this&&this.finishDrag();else if(!(en._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(en._dragging=this,// Prevent dragging multiple objects at once.
this._preventOutline&&Ct(this._element),wt(),Ke(),this._moving))){
// @event down: Event
// Fired when a drag is about to start.
this.fire("down");var t=e.touches?e.touches[0]:e,n=It(this._element);this._startPoint=new T(t.clientX,t.clientY),this._startPos=At(this._element),
// Cache the scale, so that we can continuously compensate for it during drag (_onMove).
this._parentScale=Et(n);var r="mousedown"===e.type;kt(document,r?"mousemove":"touchmove",this._onMove,this),kt(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){
// Ignore the event if disabled; this happens in IE11
// under some circumstances, see #3666.
if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new T(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(
// We assume that the parent container's position, border and scale do not change for the duration of the drag.
// Therefore there is no need to account for the position and border (they are eliminated by the subtraction)
// and we can use the cached value for the scale.
n.x/=this._parentScale.x,n.y/=this._parentScale.y,Rt(e),this._moved||(
// @event dragstart: Event
// Fired when a drag starts
this.fire("dragstart"),this._moved=!0,ht(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,
// IE and Edge do not give the <use> element, so fetch it
// if necessary
window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ht(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};
// @event predrag: Event
// Fired continuously during dragging *before* each corresponding
// update of the element's position.
this.fire("predrag",e),yt(this._element,this._newPos),
// @event drag: Event
// Fired continuously during dragging.
this.fire("drag",e)},_onUp:function(){
// Ignore the event if disabled; this happens in IE11
// under some circumstances, see #3666.
this._enabled&&this.finishDrag()},finishDrag:function(e){ft(document.body,"leaflet-dragging"),this._lastTarget&&(ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Bt(document,"mousemove touchmove",this._onMove,this),Bt(document,"mouseup touchend touchcancel",this._onUp,this),xt(),$e();var t=this._moved&&this._moving;this._moving=!1,en._dragging=!1,t&&
// @event dragend: DragEndEvent
// Fired when the drag ends.
this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});
/*
 * @class Draggable
 * @aka L.Draggable
 * @inherits Evented
 *
 * A class for making DOM elements draggable (including touch support).
 * Used internally for map and marker dragging. Only works for elements
 * that were positioned with [`L.DomUtil.setPosition`](#domutil-setposition).
 *
 * @example
 * ```js
 * var draggable = new L.Draggable(elementToDrag);
 * draggable.enable();
 * ```
 */
/*
 * @namespace PolyUtil
 * Various utility functions for polygon geometries.
 */
/* @function clipPolygon(points: Point[], bounds: Bounds, round?: Boolean): Point[]
 * Clips the polygon geometry defined by the given `points` by the given bounds (using the [Sutherland-Hodgman algorithm](https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm)).
 * Used by Leaflet to only show polygon points that are on the screen or near, increasing
 * performance. Note that polygon points needs different algorithm for clipping
 * than polyline, so there's a separate method for it.
 */
function tn(e,t,n){var r,i,a,o,s,c,l,u,h,f=[1,4,2,8];for(i=0,l=e.length;i<l;i++)e[i]._code=hn(e[i],t);
// for each edge (left, bottom, right, top)
for(o=0;o<4;o++){for(u=f[o],r=[],i=0,a=(l=e.length)-1;i<l;a=i++)s=e[i],c=e[a],
// if a is inside the clip window
s._code&u?c._code&u||((h=un(c,s,u,t,n))._code=hn(h,t),r.push(h)):(
// if b is outside the clip window (a->b goes out of screen)
c._code&u&&((h=un(c,s,u,t,n))._code=hn(h,t),r.push(h)),r.push(s));e=r}return e}
/* @function polygonCenter(latlngs: LatLng[], crs: CRS): LatLng
 * Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the passed LatLngs (first ring) from a polygon.
 */function nn(e,t){var n,r,i,a,o,s,c,l,u;if(!e||0===e.length)throw new Error("latlngs not passed");pn(e)||(e=e[0]);var h=F([0,0]),f=j(e);
// tests showed that below 1700 rounding errors are happening
f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(
// getting a inexact center, to move the latlngs near to [0, 0] to prevent rounding errors
h=rn(e));var d=e.length,p=[];for(n=0;n<d;n++){var g=F(e[n]);p.push(t.project(F([g.lat-h.lat,g.lng-h.lng])))}
// polygon centroid algorithm;
for(s=c=l=0,n=0,r=d-1;n<d;r=n++)i=p[n],a=p[r],o=i.y*a.x-a.y*i.x,c+=(i.x+a.x)*o,l+=(i.y+a.y)*o,s+=3*o;
// Polygon is so small that all points are on same pixel.
u=0===s?p[0]:[c/s,l/s];var m=t.unproject(D(u));return F([m.lat+h.lat,m.lng+h.lng])}
/* @function centroid(latlngs: LatLng[]): LatLng
 * Returns the 'center of mass' of the passed LatLngs.
 */function rn(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=F(e[i]);t+=a.lat,n+=a.lng,r++}return F([t/r,n/r])}var an;
/*
 * @namespace LineUtil
 *
 * Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.
 */
// Simplify polyline with vertex reduction and Douglas-Peucker simplification.
// Improves rendering performance dramatically by lessening the number of points to draw.
// @function simplify(points: Point[], tolerance: Number): Point[]
// Dramatically reduces the number of points in a polyline while retaining
// its shape and returns a new array of simplified points, using the
// [Ramer-Douglas-Peucker algorithm](https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm).
// Used for a huge performance boost when processing/displaying Leaflet polylines for
// each zoom level and also reducing visual noise. tolerance affects the amount of
// simplification (lesser value means higher quality but slower and with more points).
// Also released as a separated micro-library [Simplify.js](https://mourner.github.io/simplify-js/).
function on(e,t){if(!t||!e.length)return e.slice();var n=t*t;
// stage 1: vertex reduction
return e=
// reduce points that are too close to each other to a single point
function(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)fn(e[r],e[i])>t&&(n.push(e[r]),i=r);i<a-1&&n.push(e[a-1]);return n}(e,n),
// stage 2: Douglas-Peucker simplification
e=
// Ramer-Douglas-Peucker simplification, see https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm
function(e,t){var n=e.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,cn(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}(e,n),e}
// @function pointToSegmentDistance(p: Point, p1: Point, p2: Point): Number
// Returns the distance between point `p` and segment `p1` to `p2`.
function sn(e,t,n){return Math.sqrt(dn(e,t,n,!0))}
// @function closestPointOnSegment(p: Point, p1: Point, p2: Point): Number
// Returns the closest point from a point `p` on a segment `p1` to `p2`.
function cn(e,t,n,r,i){var a,o,s,c=0;for(o=r+1;o<=i-1;o++)(s=dn(e[o],e[r],e[i],!0))>c&&(a=o,c=s);c>n&&(t[a]=1,cn(e,t,n,r,a),cn(e,t,n,a,i))}
// @function clipSegment(a: Point, b: Point, bounds: Bounds, useLastCode?: Boolean, round?: Boolean): Point[]|Boolean
// Clips the segment a to b by rectangular bounds with the
// [Cohen-Sutherland algorithm](https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm)
// (modifying the segment points directly!). Used by Leaflet to only show polyline
// points that are on the screen or near, increasing performance.
function ln(e,t,n,r,i){var a,o,s,c=r?an:hn(e,n),l=hn(t,n);
// save 2nd code to avoid calculating it on the next segment
for(an=l;;){
// if a,b is inside the clip window (trivial accept)
if(!(c|l))return[e,t];
// if a,b is outside the clip window (trivial reject)
if(c&l)return!1;
// other cases
s=hn(o=un(e,t,a=c||l,n,i),n),a===c?(e=o,c=s):(t=o,l=s)}}function un(e,t,n,r,i){var a,o,s=t.x-e.x,c=t.y-e.y,l=r.min,u=r.max;return 8&n?(// top
a=e.x+s*(u.y-e.y)/c,o=u.y):4&n?(// bottom
a=e.x+s*(l.y-e.y)/c,o=l.y):2&n?(// right
a=u.x,o=e.y+c*(u.x-e.x)/s):1&n&&(// left
a=l.x,o=e.y+c*(l.x-e.x)/s),new T(a,o,i)}function hn(e,t){var n=0;return e.x<t.min.x?// left
n|=1:e.x>t.max.x&&(// right
n|=2),e.y<t.min.y?// bottom
n|=4:e.y>t.max.y&&(// top
n|=8),n}
// square distance (to avoid unnecessary Math.sqrt calls)
function fn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}
// return closest point on segment or distance to that point
function dn(e,t,n,r){var i,a=t.x,o=t.y,s=n.x-a,c=n.y-o,l=s*s+c*c;return l>0&&((i=((e.x-a)*s+(e.y-o)*c)/l)>1?(a=n.x,o=n.y):i>0&&(a+=s*i,o+=c*i)),s=e.x-a,c=e.y-o,r?s*s+c*c:new T(a,o)}
// @function isFlat(latlngs: LatLng[]): Boolean
// Returns true if `latlngs` is a flat array, false is nested.
function pn(e){return!y(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function gn(e){return pn(e)}
/* @function polylineCenter(latlngs: LatLng[], crs: CRS): LatLng
 * Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the passed LatLngs (first ring) from a polyline.
 */function mn(e,t){var n,r,i,a,o,s,c,l;if(!e||0===e.length)throw new Error("latlngs not passed");pn(e)||(e=e[0]);var u=F([0,0]),h=j(e);
// tests showed that below 1700 rounding errors are happening
h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(
// getting a inexact center, to move the latlngs near to [0, 0] to prevent rounding errors
u=rn(e));var f=e.length,d=[];for(n=0;n<f;n++){var p=F(e[n]);d.push(t.project(F([p.lat-u.lat,p.lng-u.lng])))}for(n=0,r=0;n<f-1;n++)r+=d[n].distanceTo(d[n+1])/2;
// The line is so small in the current view that all points are on the same pixel.
if(0===r)l=d[0];else for(n=0,a=0;n<f-1;n++)if(o=d[n],s=d[n+1],(a+=i=o.distanceTo(s))>r){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var g=t.unproject(D(l));return F([g.lat+u.lat,g.lng+u.lng])}var vn={project:function(e){return new T(e.lng,e.lat)},unproject:function(e){return new N(e.y,e.x)},bounds:new P([-180,-90],[180,90])},yn={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),a/2);return r=-n*Math.log(Math.max(s,1e-10)),new T(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,a=Math.sqrt(1-i*i),o=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(o),c=0,l=.1;c<15&&Math.abs(l)>1e-7;c++)t=a*Math.sin(s),t=Math.pow((1-t)/(1+t),a/2),s+=l=Math.PI/2-2*Math.atan(o*t)-s;return new N(s*n,e.x*n/r)}},An=r({},U,{code:"EPSG:3395",projection:yn,transformation:function(){var e=.5/(Math.PI*yn.R);return q(e,.5,-e,.5)}()}),bn=r({},U,{code:"EPSG:4326",projection:vn,transformation:q(1/180,1,-1/180,.5)}),wn=r({},H,{projection:vn,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});
/*
 * @namespace Projection
 * @section
 * Leaflet comes with a set of already defined Projections out of the box:
 *
 * @projection L.Projection.LonLat
 *
 * Equirectangular, or Plate Carree projection — the most simple projection,
 * mostly used by GIS enthusiasts. Directly maps `x` as longitude, and `y` as
 * latitude. Also suitable for flat worlds, e.g. game maps. Used by the
 * `EPSG:4326` and `Simple` CRS.
 */H.Earth=U,H.EPSG3395=An,H.EPSG3857=Y,H.EPSG900913=K,H.EPSG4326=bn,H.Simple=wn;
/*
 * @class Layer
 * @inherits Evented
 * @aka L.Layer
 * @aka ILayer
 *
 * A set of methods from the Layer base class that all Leaflet layers use.
 * Inherits all methods, options and events from `L.Evented`.
 *
 * @example
 *
 * ```js
 * var layer = L.marker(latlng).addTo(map);
 * layer.addTo(map);
 * layer.remove();
 * ```
 *
 * @event add: Event
 * Fired after the layer is added to a map
 *
 * @event remove: Event
 * Fired after the layer is removed from a map
 */
var xn=M.extend({
// Classes extending `L.Layer` will inherit the following options:
options:{
// @option pane: String = 'overlayPane'
// By default the layer will be added to the map's [overlay pane](#map-overlaypane). Overriding this option will cause the layer to be placed on another pane by default.
pane:"overlayPane",
// @option attribution: String = null
// String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
attribution:null,bubblingMouseEvents:!0},
/* @section
	 * Classes extending `L.Layer` will inherit the following methods:
	 *
	 * @method addTo(map: Map|LayerGroup): this
	 * Adds the layer to the given map or layer group.
	 */
addTo:function(e){return e.addLayer(this),this},
// @method remove: this
// Removes the layer from the map it is currently active on.
remove:function(){return this.removeFrom(this._map||this._mapToAdd)},
// @method removeFrom(map: Map): this
// Removes the layer from the given map
// @alternative
// @method removeFrom(group: LayerGroup): this
// Removes the layer from the given `LayerGroup`
removeFrom:function(e){return e&&e.removeLayer(this),this},
// @method getPane(name? : String): HTMLElement
// Returns the `HTMLElement` representing the named pane on the map. If `name` is omitted, returns the pane for this layer.
getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[s(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[s(e)],this},
// @method getAttribution: String
// Used by the `attribution control`, returns the [attribution option](#gridlayer-attribution).
getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;
// check in case layer gets added and then removed before the map is ready
if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});
/* @section Extension methods
 * @uninheritable
 *
 * Every layer should extend from `L.Layer` and (re-)implement the following methods.
 *
 * @method onAdd(map: Map): this
 * Should contain code that creates DOM elements for the layer, adds them to `map panes` where they should belong and puts listeners on relevant map events. Called on [`map.addLayer(layer)`](#map-addlayer).
 *
 * @method onRemove(map: Map): this
 * Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in [`onAdd`](#layer-onadd). Called on [`map.removeLayer(layer)`](#map-removelayer).
 *
 * @method getEvents(): Object
 * This optional method should return an object like `{ viewreset: this._reset }` for [`addEventListener`](#evented-addeventlistener). The event handlers in this object will be automatically added and removed from the map with your layer.
 *
 * @method getAttribution(): String
 * This optional method should return a string containing HTML to be shown on the `Attribution control` whenever the layer is visible.
 *
 * @method beforeAdd(map: Map): this
 * Optional method. Called on [`map.addLayer(layer)`](#map-addlayer), before the layer is added to the map, before events are initialized, without waiting until the map is in a usable state. Use for early initialization only.
 */
/* @namespace Map
 * @section Layer events
 *
 * @event layeradd: LayerEvent
 * Fired when a new layer is added to the map.
 *
 * @event layerremove: LayerEvent
 * Fired when some layer is removed from the map
 *
 * @section Methods for Layers and Controls
 */Vt.include({
// @method addLayer(layer: Layer): this
// Adds the given layer to the map
addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=s(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},
// @method removeLayer(layer: Layer): this
// Removes the given layer from the map.
removeLayer:function(e){var t=s(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},
// @method hasLayer(layer: Layer): Boolean
// Returns `true` if the given layer is currently added to the map
hasLayer:function(e){return s(e)in this._layers},
/* @method eachLayer(fn: Function, context?: Object): this
	 * Iterates over the layers of the map, optionally specifying context of the iterator function.
	 * ```
	 * map.eachLayer(function(layer){
	 *     layer.bindPopup('Hello');
	 * });
	 * ```
	 */
eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?y(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[s(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=s(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,
// @section Map state change events
// @event zoomlevelschange: Event
// Fired when the number of zoomlevels on the map is changed due
// to adding or removing a layer.
n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});
/*
 * @class LayerGroup
 * @aka L.LayerGroup
 * @inherits Interactive layer
 *
 * Used to group several layers and handle them as one. If you add it to the map,
 * any layers added or removed from the group will be added/removed on the map as
 * well. Extends `Layer`.
 *
 * @example
 *
 * ```js
 * L.layerGroup([marker1, marker2])
 * 	.addLayer(polyline)
 * 	.addTo(map);
 * ```
 */
var Cn=xn.extend({initialize:function(e,t){var n,r;if(p(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},
// @method addLayer(layer: Layer): this
// Adds the given layer to the group.
addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},
// @method removeLayer(layer: Layer): this
// Removes the given layer from the group.
// @alternative
// @method removeLayer(id: Number): this
// Removes the layer with the given internal ID from the group.
removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},
// @method hasLayer(layer: Layer): Boolean
// Returns `true` if the given layer is currently added to the group.
// @alternative
// @method hasLayer(id: Number): Boolean
// Returns `true` if the given internal ID is currently added to the group.
hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},
// @method clearLayers(): this
// Removes all the layers from the group.
clearLayers:function(){return this.eachLayer(this.removeLayer,this)},
// @method invoke(methodName: String, …): this
// Calls `methodName` on every layer contained in this group, passing any
// additional parameters. Has no effect if the layers contained do not
// implement `methodName`.
invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},
// @method eachLayer(fn: Function, context?: Object): this
// Iterates over the layers of the group, optionally specifying context of the iterator function.
// ```js
// group.eachLayer(function (layer) {
// 	layer.bindPopup('Hello');
// });
// ```
eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},
// @method getLayer(id: Number): Layer
// Returns the layer with the given internal ID.
getLayer:function(e){return this._layers[e]},
// @method getLayers(): Layer[]
// Returns an array of all the layers added to the group.
getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},
// @method setZIndex(zIndex: Number): this
// Calls `setZIndex` on every layer contained in this group, passing the z-index.
setZIndex:function(e){return this.invoke("setZIndex",e)},
// @method getLayerId(layer: Layer): Number
// Returns the internal ID for a layer
getLayerId:function(e){return s(e)}}),_n=Cn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Cn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Cn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},
// @method setStyle(style: Path options): this
// Sets the given path options to each layer of the group that has a `setStyle` method.
setStyle:function(e){return this.invoke("setStyle",e)},
// @method bringToFront(): this
// Brings the layer group to the top of all other layers
bringToFront:function(){return this.invoke("bringToFront")},
// @method bringToBack(): this
// Brings the layer group to the back of all other layers
bringToBack:function(){return this.invoke("bringToBack")},
// @method getBounds(): LatLngBounds
// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
getBounds:function(){var e=new R;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),In=S.extend({
/* @section
	 * @aka Icon options
	 *
	 * @option iconUrl: String = null
	 * **(required)** The URL to the icon image (absolute or relative to your script path).
	 *
	 * @option iconRetinaUrl: String = null
	 * The URL to a retina sized version of the icon image (absolute or relative to your
	 * script path). Used for Retina screen devices.
	 *
	 * @option iconSize: Point = null
	 * Size of the icon image in pixels.
	 *
	 * @option iconAnchor: Point = null
	 * The coordinates of the "tip" of the icon (relative to its top left corner). The icon
	 * will be aligned so that this point is at the marker's geographical location. Centered
	 * by default if size is specified, also can be set in CSS with negative margins.
	 *
	 * @option popupAnchor: Point = [0, 0]
	 * The coordinates of the point from which popups will "open", relative to the icon anchor.
	 *
	 * @option tooltipAnchor: Point = [0, 0]
	 * The coordinates of the point from which tooltips will "open", relative to the icon anchor.
	 *
	 * @option shadowUrl: String = null
	 * The URL to the icon shadow image. If not specified, no shadow image will be created.
	 *
	 * @option shadowRetinaUrl: String = null
	 *
	 * @option shadowSize: Point = null
	 * Size of the shadow image in pixels.
	 *
	 * @option shadowAnchor: Point = null
	 * The coordinates of the "tip" of the shadow (relative to its top left corner) (the same
	 * as iconAnchor if not specified).
	 *
	 * @option className: String = ''
	 * A custom class name to assign to both icon and shadow images. Empty by default.
	 */
options:{popupAnchor:[0,0],tooltipAnchor:[0,0],
// @option crossOrigin: Boolean|String = false
// Whether the crossOrigin attribute will be added to the tiles.
// If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
crossOrigin:!1},initialize:function(e){p(this,e)},
// @method createIcon(oldIcon?: HTMLElement): HTMLElement
// Called internally when the icon has to be shown, returns a `<img>` HTML element
// styled according to the options.
createIcon:function(e){return this._createIcon("icon",e)},
// @method createShadow(oldIcon?: HTMLElement): HTMLElement
// As `createIcon`, but for the shadow beneath it.
createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var i=D(r),a=D("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),a&&(e.style.marginLeft=-a.x+"px",e.style.marginTop=-a.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Le.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});
// @factory L.layerGroup(layers?: Layer[], options?: Object)
// Create a layer group, optionally given an initial set of layers and an `options` object.
/*
 * @miniclass Icon.Default (Icon)
 * @aka L.Icon.Default
 * @section
 *
 * A trivial subclass of `Icon`, represents the icon to use in `Marker`s when
 * no icon is specified. Points to the blue marker image distributed with Leaflet
 * releases.
 *
 * In order to customize the default icon, just change the properties of `L.Icon.Default.prototype.options`
 * (which is a set of `Icon options`).
 *
 * If you want to _completely_ replace the default icon, override the
 * `L.Marker.prototype.options.icon` with your own icon instead.
 */
var En=In.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){
// @option imagePath: String
// `Icon.Default` will try to auto-detect the location of the
// blue icon images. If you are placing these images in a non-standard
// way, set this option to point to the right path.
return"string"!=typeof En.imagePath&&(// Deprecated, backwards-compatibility only
En.imagePath=this._detectIconPath()),(this.options.imagePath||En.imagePath)+In.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){// separate function to use in tests
var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=at("div","leaflet-default-icon-path",document.body),t=it(e,"background-image")||it(e,"backgroundImage");if(// IE8
document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),kn=Xt.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new en(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ht(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=At(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),c=Q(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!c.contains(a)){
// Compute incremental movement
var l=D((Math.max(c.max.x,a.x)-c.max.x)/(o.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(o.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(o.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(o.min.y-c.min.y)).multiplyBy(r);n.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),yt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=E(this._adjustPan.bind(this,e))}},_onDragStart:function(){
// @section Dragging events
// @event dragstart: Event
// Fired when the user starts dragging the marker.
// @event movestart: Event
// Fired when the marker starts moving (because of dragging).
this._oldLatLng=this._marker.getLatLng(),
// When using ES6 imports it could not be set when `Popup` was not imported as well
this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=E(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=At(t._icon),i=t._map.layerPointToLatLng(r);
// update shadow position
n&&yt(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,
// @event drag: Event
// Fired repeatedly while the user drags the marker.
t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){
// @event dragend: DragEndEvent
// Fired when the user stops dragging the marker.
k(this._panRequest),
// @event moveend: Event
// Fired when the marker stops moving (because of dragging).
delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Sn=xn.extend({
// @section
// @aka Marker options
options:{
// @option icon: Icon = *
// Icon instance to use for rendering the marker.
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
// If not specified, a common instance of `L.Icon.Default` is used.
icon:new En,
// Option inherited from "Interactive layer" abstract class
interactive:!0,
// @option keyboard: Boolean = true
// Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
keyboard:!0,
// @option title: String = ''
// Text for the browser tooltip that appear on marker hover (no tooltip by default).
// [Useful for accessibility](https://leafletjs.com/examples/accessibility/#markers-must-be-labelled).
title:"",
// @option alt: String = 'Marker'
// Text for the `alt` attribute of the icon image.
// [Useful for accessibility](https://leafletjs.com/examples/accessibility/#markers-must-be-labelled).
alt:"Marker",
// @option zIndexOffset: Number = 0
// By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively).
zIndexOffset:0,
// @option opacity: Number = 1.0
// The opacity of the marker.
opacity:1,
// @option riseOnHover: Boolean = false
// If `true`, the marker will get on top of others when you hover the mouse over it.
riseOnHover:!1,
// @option riseOffset: Number = 250
// The z-index offset used for the `riseOnHover` feature.
riseOffset:250,
// @option pane: String = 'markerPane'
// `Map pane` where the markers icon will be added.
pane:"markerPane",
// @option shadowPane: String = 'shadowPane'
// `Map pane` where the markers shadow will be added.
shadowPane:"shadowPane",
// @option bubblingMouseEvents: Boolean = false
// When `true`, a mouse event on this marker will trigger the same event on the map
// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
bubblingMouseEvents:!1,
// @option autoPanOnFocus: Boolean = true
// When `true`, the map will pan whenever the marker is focused (via
// e.g. pressing `tab` on the keyboard) to ensure the marker is
// visible within the map's bounds
autoPanOnFocus:!0,
// @section Draggable marker options
// @option draggable: Boolean = false
// Whether the marker is draggable with mouse/touch or not.
draggable:!1,
// @option autoPan: Boolean = false
// Whether to pan the map when dragging this marker near its edge or not.
autoPan:!1,
// @option autoPanPadding: Point = Point(50, 50)
// Distance (in pixels to the left/right and to the top/bottom) of the
// map edge to start panning the map.
autoPanPadding:[50,50],
// @option autoPanSpeed: Number = 10
// Number of pixels the map should pan by.
autoPanSpeed:10},
/* @section
	 *
	 * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
	 */
initialize:function(e,t){p(this,t),this._latlng=F(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},
// @method getLatLng: LatLng
// Returns the current geographical position of the marker.
getLatLng:function(){return this._latlng},
// @method setLatLng(latlng: LatLng): this
// Changes the marker position to the given point.
setLatLng:function(e){var t=this._latlng;
// @event move: Event
// Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
return this._latlng=F(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},
// @method setZIndexOffset(offset: Number): this
// Changes the [zIndex offset](#marker-zindexoffset) of the marker.
setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},
// @method getIcon: Icon
// Returns the current icon used by the marker
getIcon:function(){return this.options.icon},
// @method setIcon(icon: Icon): this
// Changes the marker icon.
setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;
// if we're not reusing the icon, remove the old one and init new one
n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),ht(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&kt(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(ht(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Bt(this._icon,"focus",this._panOnFocus,this),ot(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ot(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&yt(this._icon,e),this._shadow&&yt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(ht(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),kn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new kn(this),e&&this.dragging.enable()}},
// @method setOpacity(opacity: Number): this
// Changes the opacity of the marker.
setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&gt(this._icon,e),this._shadow&&gt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?D(t.iconSize):D(0,0),r=t.iconAnchor?D(t.iconAnchor):D(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});
/*
 * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable.
 */
/* @namespace Marker
 * @section Interaction handlers
 *
 * Interaction handlers are properties of a marker instance that allow you to control interaction behavior in runtime, enabling or disabling certain features such as dragging (see `Handler` methods). Example:
 *
 * ```js
 * marker.dragging.disable();
 * ```
 *
 * @property dragging: Handler
 * Marker dragging handler (by both mouse and touch). Only valid when the marker is on the map (Otherwise set [`marker.options.draggable`](#marker-draggable)).
 */
/*
 * @class Path
 * @aka L.Path
 * @inherits Interactive layer
 *
 * An abstract class that contains options and constants shared between vector
 * overlays (Polygon, Polyline, Circle). Do not use it directly. Extends `Layer`.
 */
var Bn=xn.extend({
// @section
// @aka Path options
options:{
// @option stroke: Boolean = true
// Whether to draw stroke along the path. Set it to `false` to disable borders on polygons or circles.
stroke:!0,
// @option color: String = '#3388ff'
// Stroke color
color:"#3388ff",
// @option weight: Number = 3
// Stroke width in pixels
weight:3,
// @option opacity: Number = 1.0
// Stroke opacity
opacity:1,
// @option lineCap: String= 'round'
// A string that defines [shape to be used at the end](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) of the stroke.
lineCap:"round",
// @option lineJoin: String = 'round'
// A string that defines [shape to be used at the corners](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linejoin) of the stroke.
lineJoin:"round",
// @option dashArray: String = null
// A string that defines the stroke [dash pattern](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dasharray). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
dashArray:null,
// @option dashOffset: String = null
// A string that defines the [distance into the dash pattern to start the dash](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dashoffset). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
dashOffset:null,
// @option fill: Boolean = depends
// Whether to fill the path with color. Set it to `false` to disable filling on polygons or circles.
fill:!1,
// @option fillColor: String = *
// Fill color. Defaults to the value of the [`color`](#path-color) option
fillColor:null,
// @option fillOpacity: Number = 0.2
// Fill opacity.
fillOpacity:.2,
// @option fillRule: String = 'evenodd'
// A string that defines [how the inside of a shape](https://developer.mozilla.org/docs/Web/SVG/Attribute/fill-rule) is determined.
fillRule:"evenodd",
// className: '',
// Option inherited from "Interactive layer" abstract class
interactive:!0,
// @option bubblingMouseEvents: Boolean = true
// When `true`, a mouse event on this path will trigger the same event on the map
// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
bubblingMouseEvents:!0},beforeAdd:function(e){
// Renderer is set here because we need to call renderer.getEvents
// before this.getEvents.
this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},
// @method redraw(): this
// Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.
redraw:function(){return this._map&&this._renderer._updatePath(this),this},
// @method setStyle(style: Path options): this
// Changes the appearance of a Path based on the options in the `Path options` object.
setStyle:function(e){return p(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},
// @method bringToFront(): this
// Brings the layer to the top of all path layers.
bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},
// @method bringToBack(): this
// Brings the layer to the bottom of all path layers.
bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){
// defined in child classes
this._project(),this._update()},_clickTolerance:function(){
// used when doing hit detection for Canvas layers
return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Mn=Bn.extend({
// @section
// @aka CircleMarker options
options:{fill:!0,
// @option radius: Number = 10
// Radius of the circle marker, in pixels
radius:10},initialize:function(e,t){p(this,t),this._latlng=F(e),this._radius=this.options.radius},
// @method setLatLng(latLng: LatLng): this
// Sets the position of a circle marker to a new location.
setLatLng:function(e){var t=this._latlng;
// @event move: Event
// Fired when the marker is moved via [`setLatLng`](#circlemarker-setlatlng). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
return this._latlng=F(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},
// @method getLatLng(): LatLng
// Returns the current geographical position of the circle marker
getLatLng:function(){return this._latlng},
// @method setRadius(radius: Number): this
// Sets the radius of a circle marker. Units are in pixels.
setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},
// @method getRadius(): Number
// Returns the current radius of the circle
getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Bn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new P(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},
// Needed by the `Canvas` renderer for interactivity
_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});
/*
 * @class CircleMarker
 * @aka L.CircleMarker
 * @inherits Path
 *
 * A circle of a fixed size with radius specified in pixels. Extends `Path`.
 */
/*
 * @class Circle
 * @aka L.Circle
 * @inherits CircleMarker
 *
 * A class for drawing circle overlays on a map. Extends `CircleMarker`.
 *
 * It's an approximation and starts to diverge from a real circle closer to poles (due to projection distortion).
 *
 * @example
 *
 * ```js
 * L.circle([50.5, 30.5], {radius: 200}).addTo(map);
 * ```
 */
var Tn=Mn.extend({initialize:function(e,t,n){if("number"==typeof t&&(
// Backwards compatibility with 0.7.x factory (latlng, radius, options?)
t=r({},n,{radius:t})),p(this,t),this._latlng=F(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");
// @section
// @aka Circle options
// @option radius: Number; Radius of the circle, in meters.
this._mRadius=this.options.radius},
// @method setRadius(radius: Number): this
// Sets the radius of a circle. Units are in meters.
setRadius:function(e){return this._mRadius=e,this.redraw()},
// @method getRadius(): Number
// Returns the current radius of a circle. Units are in meters.
getRadius:function(){return this._mRadius},
// @method getBounds(): LatLngBounds
// Returns the `LatLngBounds` of the path.
getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Bn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===U.distance){var i=Math.PI/180,a=this._mRadius/U.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),c=o.add(s).divideBy(2),l=n.unproject(c).lat,u=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(l*i))/(Math.cos(t*i)*Math.cos(l*i)))/i;(isNaN(u)||0===u)&&(u=a/Math.cos(Math.PI/180*t)),this._point=c.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:c.x-n.project([l,e-u]).x,this._radiusY=c.y-o.y}else{var h=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});
// @factory L.circle(latlng: LatLng, options?: Circle options)
// Instantiates a circle object given a geographical point, and an options object
// which contains the circle radius.
// @alternative
// @factory L.circle(latlng: LatLng, radius: Number, options?: Circle options)
// Obsolete way of instantiating a circle, for compatibility with 0.7.x code.
// Do not use in new applications or plugins.
/*
 * @class Polyline
 * @aka L.Polyline
 * @inherits Path
 *
 * A class for drawing polyline overlays on a map. Extends `Path`.
 *
 * @example
 *
 * ```js
 * // create a red polyline from an array of LatLng points
 * var latlngs = [
 * 	[45.51, -122.68],
 * 	[37.77, -122.43],
 * 	[34.04, -118.2]
 * ];
 *
 * var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
 *
 * // zoom the map to the polyline
 * map.fitBounds(polyline.getBounds());
 * ```
 *
 * You can also pass a multi-dimensional array to represent a `MultiPolyline` shape:
 *
 * ```js
 * // create a red polyline from an array of arrays of LatLng points
 * var latlngs = [
 * 	[[45.51, -122.68],
 * 	 [37.77, -122.43],
 * 	 [34.04, -118.2]],
 * 	[[40.78, -73.91],
 * 	 [41.83, -87.62],
 * 	 [32.76, -96.72]]
 * ];
 * ```
 */
var On=Bn.extend({
// @section
// @aka Polyline options
options:{
// @option smoothFactor: Number = 1.0
// How much to simplify the polyline on each zoom level. More means
// better performance and smoother look, and less means more accurate representation.
smoothFactor:1,
// @option noClip: Boolean = false
// Disable polyline clipping.
noClip:!1},initialize:function(e,t){p(this,t),this._setLatLngs(e)},
// @method getLatLngs(): LatLng[]
// Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
getLatLngs:function(){return this._latlngs},
// @method setLatLngs(latlngs: LatLng[]): this
// Replaces all the points in the polyline with the given array of geographical points.
setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},
// @method isEmpty(): Boolean
// Returns `true` if the Polyline has no LatLngs.
isEmpty:function(){return!this._latlngs.length},
// @method closestLayerPoint(p: Point): Point
// Returns the point closest to `p` on the Polyline.
closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,a=dn,o=0,s=this._parts.length;o<s;o++)for(var c=this._parts[o],l=1,u=c.length;l<u;l++){var h=a(e,t=c[l-1],n=c[l],!0);h<r&&(r=h,i=a(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},
// @method getCenter(): LatLng
// Returns the center ([centroid](https://en.wikipedia.org/wiki/Centroid)) of the polyline.
getCenter:function(){
// throws error when not yet added to map as this center calculation requires projected coordinates
if(!this._map)throw new Error("Must add layer to map before using getCenter()");return mn(this._defaultShape(),this._map.options.crs)},
// @method getBounds(): LatLngBounds
// Returns the `LatLngBounds` of the path.
getBounds:function(){return this._bounds},
// @method addLatLng(latlng: LatLng, latlngs?: LatLng[]): this
// Adds a given point to the polyline. By default, adds to the first ring of
// the polyline in case of a multi-polyline, but can be overridden by passing
// a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).
addLatLng:function(e,t){return t=t||this._defaultShape(),e=F(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new R,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return pn(this._latlngs)?this._latlngs:this._latlngs[0]},
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
_convertLatLngs:function(e){for(var t=[],n=pn(e),r=0,i=e.length;r<i;r++)n?(t[r]=F(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new T(e,e);this._rawPxBounds&&(this._pxBounds=new P([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},
// recursively turns latlngs into a set of rings with projected coordinates
_projectLatlngs:function(e,t,n){var r,i,a=e[0]instanceof N,o=e.length;if(a){for(i=[],r=0;r<o;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<o;r++)this._projectLatlngs(e[r],t,n)},
// clip polyline by renderer bounds so that we have less to render for performance
_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,i,a,o,s,c=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,a=(s=this._rings[t]).length;n<a-1;n++)(o=ln(s[n],s[n+1],e,n,!0))&&(c[r]=c[r]||[],c[r].push(o[0]),
// if segment goes out of screen, or it's the last one, it's the end of the line part
o[1]===s[n+1]&&n!==a-2||(c[r].push(o[1]),r++))}},
// simplify each clipped part of the polyline for performance
_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=on(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},
// Needed by the `Canvas` renderer for interactivity
_containsPoint:function(e,t){var n,r,i,a,o,s,c=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;
// hit detection for polylines
for(n=0,a=this._parts.length;n<a;n++)for(r=0,i=(o=(s=this._parts[n]).length)-1;r<o;i=r++)if((t||0!==r)&&sn(e,s[i],s[r])<=c)return!0;return!1}});
// @factory L.polyline(latlngs: LatLng[], options?: Polyline options)
// Instantiates a polyline object given an array of geographical points and
// optionally an options object. You can create a `Polyline` object with
// multiple separate lines (`MultiPolyline`) by passing an array of arrays
// of geographic points.
// Retrocompat. Allow plugins to support Leaflet versions before and after 1.1.
On._flat=gn;
/*
 * @class Polygon
 * @aka L.Polygon
 * @inherits Polyline
 *
 * A class for drawing polygon overlays on a map. Extends `Polyline`.
 *
 * Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.
 *
 *
 * @example
 *
 * ```js
 * // create a red polygon from an array of LatLng points
 * var latlngs = [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]];
 *
 * var polygon = L.polygon(latlngs, {color: 'red'}).addTo(map);
 *
 * // zoom the map to the polygon
 * map.fitBounds(polygon.getBounds());
 * ```
 *
 * You can also pass an array of arrays of latlngs, with the first array representing the outer shape and the other arrays representing holes in the outer shape:
 *
 * ```js
 * var latlngs = [
 *   [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
 *   [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
 * ];
 * ```
 *
 * Additionally, you can pass a multi-dimensional array to represent a MultiPolygon shape.
 *
 * ```js
 * var latlngs = [
 *   [ // first polygon
 *     [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
 *     [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
 *   ],
 *   [ // second polygon
 *     [[41, -111.03],[45, -111.04],[45, -104.05],[41, -104.05]]
 *   ]
 * ];
 * ```
 */
var Dn=On.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},
// @method getCenter(): LatLng
// Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the Polygon.
getCenter:function(){
// throws error when not yet added to map as this center calculation requires projected coordinates
if(!this._map)throw new Error("Must add layer to map before using getCenter()");return nn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=On.prototype._convertLatLngs.call(this,e),n=t.length;
// remove last point if it equals first one
return n>=2&&t[0]instanceof N&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){On.prototype._setLatLngs.call(this,e),pn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){
// polygons need a different clipping algorithm so we redefine that
var e=this._renderer._bounds,t=this.options.weight,n=new T(t,t);
// increase clip padding by stroke width to avoid stroke on clip edges
if(e=new P(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,a=this._rings.length;i<a;i++)(r=tn(this._rings[i],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},
// Needed by the `Canvas` renderer for interactivity
_containsPoint:function(e){var t,n,r,i,a,o,s,c,l=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;
// ray casting algorithm for detecting if point is in polygon
for(i=0,s=this._parts.length;i<s;i++)for(a=0,o=(c=(t=this._parts[i]).length)-1;a<c;o=a++)n=t[a],r=t[o],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);
// also check if it's on polygon stroke
return l||On.prototype._containsPoint.call(this,e,!0)}});
// @factory L.polygon(latlngs: LatLng[], options?: Polyline options)
/*
 * @class GeoJSON
 * @aka L.GeoJSON
 * @inherits FeatureGroup
 *
 * Represents a GeoJSON object or an array of GeoJSON objects. Allows you to parse
 * GeoJSON data and display it on the map. Extends `FeatureGroup`.
 *
 * @example
 *
 * ```js
 * L.geoJSON(data, {
 * 	style: function (feature) {
 * 		return {color: feature.properties.color};
 * 	}
 * }).bindPopup(function (layer) {
 * 	return layer.feature.properties.description;
 * }).addTo(map);
 * ```
 */
var Pn=_n.extend({
/* @section
	 * @aka GeoJSON options
	 *
	 * @option pointToLayer: Function = *
	 * A `Function` defining how GeoJSON points spawn Leaflet layers. It is internally
	 * called when data is added, passing the GeoJSON point feature and its `LatLng`.
	 * The default is to spawn a default `Marker`:
	 * ```js
	 * function(geoJsonPoint, latlng) {
	 * 	return L.marker(latlng);
	 * }
	 * ```
	 *
	 * @option style: Function = *
	 * A `Function` defining the `Path options` for styling GeoJSON lines and polygons,
	 * called internally when data is added.
	 * The default value is to not override any defaults:
	 * ```js
	 * function (geoJsonFeature) {
	 * 	return {}
	 * }
	 * ```
	 *
	 * @option onEachFeature: Function = *
	 * A `Function` that will be called once for each created `Feature`, after it has
	 * been created and styled. Useful for attaching events and popups to features.
	 * The default is to do nothing with the newly created layers:
	 * ```js
	 * function (feature, layer) {}
	 * ```
	 *
	 * @option filter: Function = *
	 * A `Function` that will be used to decide whether to include a feature or not.
	 * The default is to include all features:
	 * ```js
	 * function (geoJsonFeature) {
	 * 	return true;
	 * }
	 * ```
	 * Note: dynamically changing the `filter` option will have effect only on newly
	 * added data. It will _not_ re-evaluate already included features.
	 *
	 * @option coordsToLatLng: Function = *
	 * A `Function` that will be used for converting GeoJSON coordinates to `LatLng`s.
	 * The default is the `coordsToLatLng` static method.
	 *
	 * @option markersInheritOptions: Boolean = false
	 * Whether default Markers for "Point" type Features inherit from group options.
	 */
initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},
// @method addData( <GeoJSON> data ): this
// Adds a GeoJSON object to the layer.
addData:function(e){var t,n,r,i=y(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)
// only add this if geometry or geometries are set and not null
((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=Ln(e,a);return o?(o.feature=Hn(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},
// @method resetStyle( <Path> layer? ): this
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
// If `layer` is omitted, the style of all features in the current layer is reset.
resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(
// reset any custom styles
e.options=r({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},
// @method setStyle( <Function> style ): this
// Changes styles of GeoJSON vector layers with the given style function.
setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});
// @section
// There are several static functions which can be called without instantiating L.GeoJSON:
// @function geometryToLayer(featureData: Object, options?: GeoJSON options): Layer
// Creates a `Layer` from a given GeoJSON feature. Can use a custom
// [`pointToLayer`](#geojson-pointtolayer) and/or [`coordsToLatLng`](#geojson-coordstolatlng)
// functions if provided as options.
function Ln(e,t){var n,r,i,a,o="Feature"===e.type?e.geometry:e,s=o?o.coordinates:null,c=[],l=t&&t.pointToLayer,u=t&&t.coordsToLatLng||Rn;if(!s&&!o)return null;switch(o.type){case"Point":return Qn(l,e,n=u(s),t);case"MultiPoint":for(i=0,a=s.length;i<a;i++)n=u(s[i]),c.push(Qn(l,e,n,t));return new _n(c);case"LineString":case"MultiLineString":return r=jn(s,"LineString"===o.type?0:1,u),new On(r,t);case"Polygon":case"MultiPolygon":return r=jn(s,"Polygon"===o.type?1:2,u),new Dn(r,t);case"GeometryCollection":for(i=0,a=o.geometries.length;i<a;i++){var h=Ln({geometry:o.geometries[i],type:"Feature",properties:e.properties},t);h&&c.push(h)}return new _n(c);case"FeatureCollection":for(i=0,a=o.features.length;i<a;i++){var f=Ln(o.features[i],t);f&&c.push(f)}return new _n(c);default:throw new Error("Invalid GeoJSON object.")}}function Qn(e,t,n,r){return e?e(t,n):new Sn(n,r&&r.markersInheritOptions&&r)}
// @function coordsToLatLng(coords: Array): LatLng
// Creates a `LatLng` object from an array of 2 numbers (longitude, latitude)
// or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.
function Rn(e){return new N(e[1],e[0],e[2])}
// @function coordsToLatLngs(coords: Array, levelsDeep?: Number, coordsToLatLng?: Function): Array
// Creates a multidimensional array of `LatLng`s from a GeoJSON coordinates array.
// `levelsDeep` specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).
// Can use a custom [`coordsToLatLng`](#geojson-coordstolatlng) function.
function jn(e,t,n){for(var r,i=[],a=0,o=e.length;a<o;a++)r=t?jn(e[a],t-1,n):(n||Rn)(e[a]),i.push(r);return i}
// @function latLngToCoords(latlng: LatLng, precision?: Number|false): Array
// Reverse of [`coordsToLatLng`](#geojson-coordstolatlng)
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function.
function Nn(e,t){return void 0!==(e=F(e)).alt?[h(e.lng,t),h(e.lat,t),h(e.alt,t)]:[h(e.lng,t),h(e.lat,t)]}
// @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean, precision?: Number|false): Array
// Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs)
// `closed` determines whether the first point should be appended to the end of the array to close the feature, only used when `levelsDeep` is 0. False by default.
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function.
function Fn(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)
// Check for flat arrays required to ensure unbalanced arrays are correctly converted in recursion
i.push(t?Fn(e[a],pn(e[a])?0:t-1,n,r):Nn(e[a],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function zn(e,t){return e.feature?r({},e.feature,{geometry:t}):Hn(t)}
// @function asFeature(geojson: Object): Object
// Normalize GeoJSON geometries/features into GeoJSON features.
function Hn(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var Un={toGeoJSON:function(e){return zn(this,{type:"Point",coordinates:Nn(this.getLatLng(),e)})}};
// @namespace Marker
// @section Other methods
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the marker (as a GeoJSON `Point` Feature).
Sn.include(Un),
// @namespace CircleMarker
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the circle marker (as a GeoJSON `Point` Feature).
Tn.include(Un),Mn.include(Un),
// @namespace Polyline
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the polyline (as a GeoJSON `LineString` or `MultiLineString` Feature).
On.include({toGeoJSON:function(e){var t=!pn(this._latlngs);return zn(this,{type:(t?"Multi":"")+"LineString",coordinates:Fn(this._latlngs,t?1:0,!1,e)})}}),
// @namespace Polygon
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the polygon (as a GeoJSON `Polygon` or `MultiPolygon` Feature).
Dn.include({toGeoJSON:function(e){var t=!pn(this._latlngs),n=t&&!pn(this._latlngs[0]),r=Fn(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),zn(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),
// @namespace LayerGroup
Cn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),zn(this,{type:"MultiPoint",coordinates:t})},
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the layer group (as a GeoJSON `FeatureCollection`, `GeometryCollection`, or `MultiPoint`).
toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=Hn(i);
// Squash nested feature collections
"FeatureCollection"===a.type?r.push.apply(r,a.features):r.push(a)}}})),n?zn(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});
// Backward compatibility.
var Gn=xn.extend({
// @section
// @aka ImageOverlay options
options:{
// @option opacity: Number = 1.0
// The opacity of the image overlay.
opacity:1,
// @option alt: String = ''
// Text for the `alt` attribute of the image (useful for accessibility).
alt:"",
// @option interactive: Boolean = false
// If `true`, the image overlay will emit [mouse events](#interactive-layer) when clicked or hovered.
interactive:!1,
// @option crossOrigin: Boolean|String = false
// Whether the crossOrigin attribute will be added to the image.
// If a String is provided, the image will have its crossOrigin attribute set to the String provided. This is needed if you want to access image pixel data.
// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
crossOrigin:!1,
// @option errorOverlayUrl: String = ''
// URL to the overlay image to show in place of the overlay that failed to load.
errorOverlayUrl:"",
// @option zIndex: Number = 1
// The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the overlay layer.
zIndex:1,
// @option className: String = ''
// A custom class name to assign to the image. Empty by default.
className:""},initialize:function(e,t,n){// (String, LatLngBounds, Object)
this._url=e,this._bounds=j(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ht(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ot(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},
// @method setOpacity(opacity: Number): this
// Sets the opacity of the overlay.
setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},
// @method bringToFront(): this
// Brings the layer to the top of all overlays.
bringToFront:function(){return this._map&&ct(this._image),this},
// @method bringToBack(): this
// Brings the layer to the bottom of all overlays.
bringToBack:function(){return this._map&&lt(this._image),this},
// @method setUrl(url: String): this
// Changes the URL of the image.
setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},
// @method setBounds(bounds: LatLngBounds): this
// Update the bounds that this ImageOverlay covers
setBounds:function(e){return this._bounds=j(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},
// @method setZIndex(value: Number): this
// Changes the [zIndex](#imageoverlay-zindex) of the image overlay.
setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},
// @method getBounds(): LatLngBounds
// Get the bounds that this ImageOverlay covers
getBounds:function(){return this._bounds},
// @method getElement(): HTMLElement
// Returns the instance of [`HTMLImageElement`](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
// used by this overlay.
getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:at("img");ht(t,"leaflet-image-layer"),this._zoomAnimated&&ht(t,"leaflet-zoom-animated"),this.options.className&&ht(t,this.options.className),t.onselectstart=u,t.onmousemove=u,
// @event load: Event
// Fired when the ImageOverlay layer has loaded its image
t.onload=a(this.fire,this,"load"),t.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;vt(this._image,n,t)},_reset:function(){var e=this._image,t=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();yt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){gt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){
// @event error: Event
// Fired when the ImageOverlay layer fails to load its image
this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},
// @method getCenter(): LatLng
// Returns the center of the ImageOverlay.
getCenter:function(){return this._bounds.getCenter()}});
/*
 * @class ImageOverlay
 * @aka L.ImageOverlay
 * @inherits Interactive layer
 *
 * Used to load and display a single image over specific bounds of the map. Extends `Layer`.
 *
 * @example
 *
 * ```js
 * var imageUrl = 'https://maps.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
 * 	imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
 * L.imageOverlay(imageUrl, imageBounds).addTo(map);
 * ```
 */Gn.extend({
// @section
// @aka VideoOverlay options
options:{
// @option autoplay: Boolean = true
// Whether the video starts playing automatically when loaded.
// On some browsers autoplay will only work with `muted: true`
autoplay:!0,
// @option loop: Boolean = true
// Whether the video will loop back to the beginning when played.
loop:!0,
// @option keepAspectRatio: Boolean = true
// Whether the video will save aspect ratio after the projection.
// Relevant for supported browsers. See [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
keepAspectRatio:!0,
// @option muted: Boolean = false
// Whether the video starts on mute when loaded.
muted:!1,
// @option playsInline: Boolean = true
// Mobile browsers will play the video right where it is instead of open it up in fullscreen mode.
playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:at("video");if(ht(t,"leaflet-image-layer"),this._zoomAnimated&&ht(t,"leaflet-zoom-animated"),this.options.className&&ht(t,this.options.className),t.onselectstart=u,t.onmousemove=u,
// @event load: Event
// Fired when the video has finished loading the first frame
t.onloadeddata=a(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[t.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var s=at("source");s.src=this._url[o],t.appendChild(s)}}}
// @method getElement(): HTMLVideoElement
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
// used by this overlay.
});
/*
 * @class SVGOverlay
 * @aka L.SVGOverlay
 * @inherits ImageOverlay
 *
 * Used to load, display and provide DOM access to an SVG file over specific bounds of the map. Extends `ImageOverlay`.
 *
 * An SVG overlay uses the [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element.
 *
 * @example
 *
 * ```js
 * var svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
 * svgElement.setAttribute('xmlns', "http://www.w3.org/2000/svg");
 * svgElement.setAttribute('viewBox', "0 0 200 200");
 * svgElement.innerHTML = '<rect width="200" height="200"/><rect x="75" y="23" width="50" height="50" style="fill:red"/><rect x="75" y="123" width="50" height="50" style="fill:#0013ff"/>';
 * var svgElementBounds = [ [ 32, -130 ], [ 13, -100 ] ];
 * L.svgOverlay(svgElement, svgElementBounds).addTo(map);
 * ```
 */
Gn.extend({_initImage:function(){var e=this._image=this._url;ht(e,"leaflet-image-layer"),this._zoomAnimated&&ht(e,"leaflet-zoom-animated"),this.options.className&&ht(e,this.options.className),e.onselectstart=u,e.onmousemove=u}
// @method getElement(): SVGElement
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
// used by this overlay.
});
// @factory L.svgOverlay(svg: String|SVGElement, bounds: LatLngBounds, options?: SVGOverlay options)
// Instantiates an image overlay object given an SVG element and the geographical bounds it is tied to.
// A viewBox attribute is required on the SVG element to zoom in and out properly.
/*
 * @class DivOverlay
 * @inherits Interactive layer
 * @aka L.DivOverlay
 * Base model for L.Popup and L.Tooltip. Inherit from it for custom overlays like plugins.
 */
// @namespace DivOverlay
var Vn=xn.extend({
// @section
// @aka DivOverlay options
options:{
// @option interactive: Boolean = false
// If true, the popup/tooltip will listen to the mouse events.
interactive:!1,
// @option offset: Point = Point(0, 0)
// The offset of the overlay position.
offset:[0,0],
// @option className: String = ''
// A custom CSS class name to assign to the overlay.
className:"",
// @option pane: String = undefined
// `Map pane` where the overlay will be added.
pane:void 0,
// @option content: String|HTMLElement|Function = ''
// Sets the HTML content of the overlay while initializing. If a function is passed the source layer will be
// passed to the function. The function should return a `String` or `HTMLElement` to be used in the overlay.
content:""},initialize:function(e,t){e&&(e instanceof N||y(e))?(this._latlng=F(e),p(this,t)):(p(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},
// @method openOn(map: Map): this
// Adds the overlay to the map.
// Alternative to `map.openPopup(popup)`/`.openTooltip(tooltip)`.
openOn:function(e){// experimental, not the part of public api
return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},
// @method close(): this
// Closes the overlay.
// Alternative to `map.closePopup(popup)`/`.closeTooltip(tooltip)`
// and `layer.closePopup()`/`.closeTooltip()`.
close:function(){return this._map&&this._map.removeLayer(this),this},
// @method toggle(layer?: Layer): this
// Opens or closes the overlay bound to layer depending on its current state.
// Argument may be omitted only for overlay bound to layer.
// Alternative to `layer.togglePopup()`/`.toggleTooltip()`.
toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),
// open the overlay on the map
this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&gt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&gt(this._container,1),this.bringToFront(),this.options.interactive&&(ht(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(gt(this._container,0),this._removeTimeout=setTimeout(a(ot,void 0,this._container),200)):ot(this._container),this.options.interactive&&(ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},
// @namespace DivOverlay
// @method getLatLng: LatLng
// Returns the geographical point of the overlay.
getLatLng:function(){return this._latlng},
// @method setLatLng(latlng: LatLng): this
// Sets the geographical point where the overlay will open.
setLatLng:function(e){return this._latlng=F(e),this._map&&(this._updatePosition(),this._adjustPan()),this},
// @method getContent: String|HTMLElement
// Returns the content of the overlay.
getContent:function(){return this._content},
// @method setContent(htmlContent: String|HTMLElement|Function): this
// Sets the HTML content of the overlay. If a function is passed the source layer will be passed to the function.
// The function should return a `String` or `HTMLElement` to be used in the overlay.
setContent:function(e){return this._content=e,this.update(),this},
// @method getElement: String|HTMLElement
// Returns the HTML container of the overlay.
getElement:function(){return this._container},
// @method update: null
// Updates the overlay content, layout and position. Useful for updating the overlay after something inside changed, e.g. image loaded.
update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},
// @method isOpen: Boolean
// Returns `true` when the overlay is visible on the map.
isOpen:function(){return!!this._map&&this._map.hasLayer(this)},
// @method bringToFront: this
// Brings this overlay in front of other overlays (in the same map pane).
bringToFront:function(){return this._map&&ct(this._container),this},
// @method bringToBack: this
// Brings this overlay to the back of other overlays (in the same map pane).
bringToBack:function(){return this._map&&lt(this._container),this},
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof _n){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;// Unable to get source layer.
// set overlay source to this layer
this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&
// update the overlay (content, layout, etc...)
this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}
// @namespace DivOverlay
// @section DivOverlay events
// @event contentupdate: Event
// Fired when the content of the overlay is updated
this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=D(this.options.offset),n=this._getAnchor();this._zoomAnimated?yt(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;
// bottom position the overlay in case the height of the overlay changes (images loading etc)
this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});Vt.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),xn.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(p(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});
/*
 * @class Popup
 * @inherits DivOverlay
 * @aka L.Popup
 * Used to open popups in certain places of the map. Use [Map.openPopup](#map-openpopup) to
 * open popups while making sure that only one popup is open at one time
 * (recommended for usability), or use [Map.addLayer](#map-addlayer) to open as many as you want.
 *
 * @example
 *
 * If you want to just bind a popup to marker click and then open it, it's really easy:
 *
 * ```js
 * marker.bindPopup(popupContent).openPopup();
 * ```
 * Path overlays like polylines also have a `bindPopup` method.
 *
 * A popup can be also standalone:
 *
 * ```js
 * var popup = L.popup()
 * 	.setLatLng(latlng)
 * 	.setContent('<p>Hello world!<br />This is a nice popup.</p>')
 * 	.openOn(map);
 * ```
 * or
 * ```js
 * var popup = L.popup(latlng, {content: '<p>Hello world!<br />This is a nice popup.</p>')
 * 	.openOn(map);
 * ```
 */
// @namespace Popup
var Wn=Vn.extend({
// @section
// @aka Popup options
options:{
// @option pane: String = 'popupPane'
// `Map pane` where the popup will be added.
pane:"popupPane",
// @option offset: Point = Point(0, 7)
// The offset of the popup position.
offset:[0,7],
// @option maxWidth: Number = 300
// Max width of the popup, in pixels.
maxWidth:300,
// @option minWidth: Number = 50
// Min width of the popup, in pixels.
minWidth:50,
// @option maxHeight: Number = null
// If set, creates a scrollable container of the given height
// inside a popup if its content exceeds it.
// The scrollable container can be styled using the
// `leaflet-popup-scrolled` CSS class selector.
maxHeight:null,
// @option autoPan: Boolean = true
// Set it to `false` if you don't want the map to do panning animation
// to fit the opened popup.
autoPan:!0,
// @option autoPanPaddingTopLeft: Point = null
// The margin between the popup and the top left corner of the map
// view after autopanning was performed.
autoPanPaddingTopLeft:null,
// @option autoPanPaddingBottomRight: Point = null
// The margin between the popup and the bottom right corner of the map
// view after autopanning was performed.
autoPanPaddingBottomRight:null,
// @option autoPanPadding: Point = Point(5, 5)
// Equivalent of setting both top left and bottom right autopan padding to the same value.
autoPanPadding:[5,5],
// @option keepInView: Boolean = false
// Set it to `true` if you want to prevent users from panning the popup
// off of the screen while it is open.
keepInView:!1,
// @option closeButton: Boolean = true
// Controls the presence of a close button in the popup.
closeButton:!0,
// @option autoClose: Boolean = true
// Set it to `false` if you want to override the default behavior of
// the popup closing when another popup is opened.
autoClose:!0,
// @option closeOnEscapeKey: Boolean = true
// Set it to `false` if you want to override the default behavior of
// the ESC key for closing of the popup.
closeOnEscapeKey:!0,
// @option closeOnClick: Boolean = *
// Set it if you want to override the default behavior of the popup closing when user clicks
// on the map. Defaults to the map's [`closePopupOnClick`](#map-closepopuponclick) option.
// @option className: String = ''
// A custom CSS class name to assign to the popup.
className:""},
// @namespace Popup
// @method openOn(map: Map): this
// Alternative to `map.openPopup(popup)`.
// Adds the popup to the map and closes the previous one.
openOn:function(e){// experimental, not the part of public api
return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Vn.prototype.openOn.call(this,e)},onAdd:function(e){Vn.prototype.onAdd.call(this,e),
// @namespace Map
// @section Popup events
// @event popupopen: PopupEvent
// Fired when a popup is opened in the map
e.fire("popupopen",{popup:this}),this._source&&(
// @namespace Layer
// @section Popup events
// @event popupopen: PopupEvent
// Fired when a popup bound to this layer is opened
this._source.fire("popupopen",{popup:this},!0),
// For non-path layers, we toggle the popup when clicking
// again the layer, so prevent the map to reopen it.
this._source instanceof Bn||this._source.on("preclick",Pt))},onRemove:function(e){Vn.prototype.onRemove.call(this,e),
// @namespace Map
// @section Popup events
// @event popupclose: PopupEvent
// Fired when a popup in the map is closed
e.fire("popupclose",{popup:this}),this._source&&(
// @namespace Layer
// @section Popup events
// @event popupclose: PopupEvent
// Fired when a popup bound to this layer is closed
this._source.fire("popupclose",{popup:this},!0),this._source instanceof Bn||this._source.off("preclick",Pt))},getEvents:function(){var e=Vn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=at("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=at("div",e+"-content-wrapper",t);if(this._contentNode=at("div",e+"-content",n),Qt(t),Lt(this._contentNode),kt(t,"contextmenu",Pt),this._tipContainer=at("div",e+"-tip-container",t),this._tip=at("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=at("a",e+"-close-button",t);r.setAttribute("role","button"),// overrides the implicit role=link of <a> elements #7399
r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',kt(r,"click",(function(e){Rt(e),this.close()}),this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,a="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",ht(e,a)):ft(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();yt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan)
// We can endlessly recurse if keepInView is set and the view resets.
// Let's guard against that by exiting early if we're responding to our own autopan.
if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(it(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new T(this._containerLeft,-n-this._containerBottom);i._add(At(this._container));var a=e.layerPointToContainerPoint(i),o=D(this.options.autoPanPadding),s=D(this.options.autoPanPaddingTopLeft||o),c=D(this.options.autoPanPaddingBottomRight||o),l=e.getSize(),u=0,h=0;a.x+r+c.x>l.x&&(// right
u=a.x+r-l.x+c.x),a.x-u-s.x<0&&(// left
u=a.x-s.x),a.y+n+c.y>l.y&&(// bottom
h=a.y+n-l.y+c.y),a.y-h-s.y<0&&(// top
h=a.y-s.y),
// @namespace Map
// @section Popup events
// @event autopanstart: Event
// Fired when the map starts autopanning when opening a popup.
(u||h)&&(
// Track that we're autopanning, as this function will be re-ran on moveend
this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([u,h]))}},_getAnchor:function(){
// Where should we anchor the popup on the source layer?
return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});
// @namespace Popup
// @factory L.popup(options?: Popup options, source?: Layer)
// Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.
// @alternative
// @factory L.popup(latlng: LatLng, options?: Popup options)
// Instantiates a `Popup` object given `latlng` where the popup will open and an optional `options` object that describes its appearance and location.
/* @namespace Map
 * @section Interaction Options
 * @option closePopupOnClick: Boolean = true
 * Set it to `false` if you don't want popups to close when user clicks the map.
 */
Vt.mergeOptions({closePopupOnClick:!0}),
// @namespace Map
// @section Methods for Layers and Controls
Vt.include({
// @method openPopup(popup: Popup): this
// Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).
// @alternative
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
// Creates a popup with the specified content and options and opens it in the given point on a map.
openPopup:function(e,t,n){return this._initOverlay(Wn,e,t,n).openOn(this),this},
// @method closePopup(popup?: Popup): this
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),
/*
 * @namespace Layer
 * @section Popup methods example
 *
 * All layers share a set of methods convenient for binding popups to it.
 *
 * ```js
 * var layer = L.Polygon(latlngs).bindPopup('Hi There!').addTo(map);
 * layer.openPopup();
 * layer.closePopup();
 * ```
 *
 * Popups will also be automatically opened when the layer is clicked on and closed when the layer is removed from the map or another popup is opened.
 */
// @section Popup methods
xn.include({
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
// Binds a popup to the layer with the passed `content` and sets up the
// necessary event listeners. If a `Function` is passed it will receive
// the layer as the first argument and should return a `String` or `HTMLElement`.
bindPopup:function(e,t){return this._popup=this._initOverlay(Wn,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},
// @method unbindPopup(): this
// Removes the popup previously bound with `bindPopup`.
unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},
// @method openPopup(latlng?: LatLng): this
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
openPopup:function(e){return this._popup&&(this instanceof _n||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&
// open the popup on the map
this._popup.openOn(this._map)),this},
// @method closePopup(): this
// Closes the popup bound to this layer if it is open.
closePopup:function(){return this._popup&&this._popup.close(),this},
// @method togglePopup(): this
// Opens or closes the popup bound to this layer depending on its current state.
togglePopup:function(){return this._popup&&this._popup.toggle(this),this},
// @method isPopupOpen(): boolean
// Returns `true` if the popup bound to this layer is currently open.
isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},
// @method setPopupContent(content: String|HTMLElement|Popup): this
// Sets the content of the popup bound to this layer.
setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},
// @method getPopup(): Popup
// Returns the popup bound to this layer.
getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){
// prevent map click
jt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof Bn?(this._popup._source=t,this.openPopup(e.latlng)):
// treat it like a marker and figure out
// if we should toggle it open/closed
this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});
/*
 * @class Tooltip
 * @inherits DivOverlay
 * @aka L.Tooltip
 * Used to display small texts on top of map layers.
 *
 * @example
 * If you want to just bind a tooltip to marker:
 *
 * ```js
 * marker.bindTooltip("my tooltip text").openTooltip();
 * ```
 * Path overlays like polylines also have a `bindTooltip` method.
 *
 * A tooltip can be also standalone:
 *
 * ```js
 * var tooltip = L.tooltip()
 * 	.setLatLng(latlng)
 * 	.setContent('Hello world!<br />This is a nice tooltip.')
 * 	.addTo(map);
 * ```
 * or
 * ```js
 * var tooltip = L.tooltip(latlng, {content: 'Hello world!<br />This is a nice tooltip.'})
 * 	.addTo(map);
 * ```
 *
 *
 * Note about tooltip offset. Leaflet takes two options in consideration
 * for computing tooltip offsetting:
 * - the `offset` Tooltip option: it defaults to [0, 0], and it's specific to one tooltip.
 *   Add a positive x offset to move the tooltip to the right, and a positive y offset to
 *   move it to the bottom. Negatives will move to the left and top.
 * - the `tooltipAnchor` Icon option: this will only be considered for Marker. You
 *   should adapt this value if you use a custom icon.
 */
// @namespace Tooltip
var qn=Vn.extend({
// @section
// @aka Tooltip options
options:{
// @option pane: String = 'tooltipPane'
// `Map pane` where the tooltip will be added.
pane:"tooltipPane",
// @option offset: Point = Point(0, 0)
// Optional offset of the tooltip position.
offset:[0,0],
// @option direction: String = 'auto'
// Direction where to open the tooltip. Possible values are: `right`, `left`,
// `top`, `bottom`, `center`, `auto`.
// `auto` will dynamically switch between `right` and `left` according to the tooltip
// position on the map.
direction:"auto",
// @option permanent: Boolean = false
// Whether to open the tooltip permanently or only on mouseover.
permanent:!1,
// @option sticky: Boolean = false
// If true, the tooltip will follow the mouse instead of being fixed at the feature center.
sticky:!1,
// @option opacity: Number = 0.9
// Tooltip container opacity.
opacity:.9},onAdd:function(e){Vn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),
// @namespace Map
// @section Tooltip events
// @event tooltipopen: TooltipEvent
// Fired when a tooltip is opened in the map.
e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),
// @namespace Layer
// @section Tooltip events
// @event tooltipopen: TooltipEvent
// Fired when a tooltip bound to this layer is opened.
this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Vn.prototype.onRemove.call(this,e),
// @namespace Map
// @section Tooltip events
// @event tooltipclose: TooltipEvent
// Fired when a tooltip in the map is closed.
e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),
// @namespace Layer
// @section Tooltip events
// @event tooltipclose: TooltipEvent
// Fired when a tooltip bound to this layer is closed.
this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Vn.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=at("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,c=i.offsetWidth,l=i.offsetHeight,u=D(this.options.offset),h=this._getAnchor();"top"===s?(t=c/2,n=l):"bottom"===s?(t=c/2,n=0):"center"===s?(t=c/2,n=l/2):"right"===s?(t=0,n=l/2):"left"===s?(t=c,n=l/2):o.x<a.x?(s="right",t=0,n=l/2):(s="left",t=c+2*(u.x+h.x),n=l/2),e=e.subtract(D(t,n,!0)).add(u).add(h),ft(i,"leaflet-tooltip-right"),ft(i,"leaflet-tooltip-left"),ft(i,"leaflet-tooltip-top"),ft(i,"leaflet-tooltip-bottom"),ht(i,"leaflet-tooltip-"+s),yt(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&gt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){
// Where should we anchor the tooltip on the source layer?
return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});
// @namespace Tooltip
// @factory L.tooltip(options?: Tooltip options, source?: Layer)
// Instantiates a `Tooltip` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.
// @alternative
// @factory L.tooltip(latlng: LatLng, options?: Tooltip options)
// Instantiates a `Tooltip` object given `latlng` where the tooltip will open and an optional `options` object that describes its appearance and location.
// @namespace Map
// @section Methods for Layers and Controls
Vt.include({
// @method openTooltip(tooltip: Tooltip): this
// Opens the specified tooltip.
// @alternative
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
// Creates a tooltip with the specified content and options and open it.
openTooltip:function(e,t,n){return this._initOverlay(qn,e,t,n).openOn(this),this},
// @method closeTooltip(tooltip: Tooltip): this
// Closes the tooltip given as parameter.
closeTooltip:function(e){return e.close(),this}}),
/*
 * @namespace Layer
 * @section Tooltip methods example
 *
 * All layers share a set of methods convenient for binding tooltips to it.
 *
 * ```js
 * var layer = L.Polygon(latlngs).bindTooltip('Hi There!').addTo(map);
 * layer.openTooltip();
 * layer.closeTooltip();
 * ```
 */
// @section Tooltip methods
xn.include({
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
// Binds a tooltip to the layer with the passed `content` and sets up the
// necessary event listeners. If a `Function` is passed it will receive
// the layer as the first argument and should return a `String` or `HTMLElement`.
bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(qn,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},
// @method unbindTooltip(): this
// Removes the tooltip previously bound with `bindTooltip`.
unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},
// @method openTooltip(latlng?: LatLng): this
// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
openTooltip:function(e){return this._tooltip&&(this instanceof _n||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(
// open the tooltip on the map
this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},
// @method closeTooltip(): this
// Closes the tooltip bound to this layer if it is open.
closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},
// @method toggleTooltip(): this
// Opens or closes the tooltip bound to this layer depending on its current state.
toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},
// @method isTooltipOpen(): boolean
// Returns `true` if the tooltip bound to this layer is currently open.
isTooltipOpen:function(){return this._tooltip.isOpen()},
// @method setTooltipContent(content: String|HTMLElement|Tooltip): this
// Sets the content of the tooltip bound to this layer.
setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},
// @method getTooltip(): Tooltip
// Returns the tooltip bound to this layer.
getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&(kt(t,"focus",(function(){this._tooltip._source=e,this.openTooltip()}),this),kt(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map)
// If the map is moving, we will show the tooltip after it's done.
if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",(function(){t._openOnceFlag=!1,t._openTooltip(e)}))}else this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});
/*
 * @class DivIcon
 * @aka L.DivIcon
 * @inherits Icon
 *
 * Represents a lightweight icon for markers that uses a simple `<div>`
 * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.
 *
 * @example
 * ```js
 * var myIcon = L.divIcon({className: 'my-div-icon'});
 * // you can set .my-div-icon styles in CSS
 *
 * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
 * ```
 *
 * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.
 */
In.extend({options:{
// @section
// @aka DivIcon options
iconSize:[12,12],// also can be set through CSS
// iconAnchor: (Point),
// popupAnchor: (Point),
// @option html: String|HTMLElement = ''
// Custom HTML code to put inside the div element, empty by default. Alternatively,
// an instance of `HTMLElement`.
html:!1,
// @option bgPos: Point = [0, 0]
// Optional relative position of the background, in pixels
bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(st(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=D(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});
// @factory L.divIcon(options: DivIcon options)
// Creates a `DivIcon` instance with the given options.
In.Default=En;
/*
 * @class GridLayer
 * @inherits Layer
 * @aka L.GridLayer
 *
 * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.
 * GridLayer can be extended to create a tiled grid of HTML elements like `<canvas>`, `<img>` or `<div>`. GridLayer will handle creating and animating these DOM elements for you.
 *
 *
 * @section Synchronous usage
 * @example
 *
 * To create a custom layer, extend GridLayer and implement the `createTile()` method, which will be passed a `Point` object with the `x`, `y`, and `z` (zoom level) coordinates to draw your tile.
 *
 * ```js
 * var CanvasLayer = L.GridLayer.extend({
 *     createTile: function(coords){
 *         // create a <canvas> element for drawing
 *         var tile = L.DomUtil.create('canvas', 'leaflet-tile');
 *
 *         // setup tile width and height according to the options
 *         var size = this.getTileSize();
 *         tile.width = size.x;
 *         tile.height = size.y;
 *
 *         // get a canvas context and draw something on it using coords.x, coords.y and coords.z
 *         var ctx = tile.getContext('2d');
 *
 *         // return the tile so it can be rendered on screen
 *         return tile;
 *     }
 * });
 * ```
 *
 * @section Asynchronous usage
 * @example
 *
 * Tile creation can also be asynchronous, this is useful when using a third-party drawing library. Once the tile is finished drawing it can be passed to the `done()` callback.
 *
 * ```js
 * var CanvasLayer = L.GridLayer.extend({
 *     createTile: function(coords, done){
 *         var error;
 *
 *         // create a <canvas> element for drawing
 *         var tile = L.DomUtil.create('canvas', 'leaflet-tile');
 *
 *         // setup tile width and height according to the options
 *         var size = this.getTileSize();
 *         tile.width = size.x;
 *         tile.height = size.y;
 *
 *         // draw something asynchronously and pass the tile to the done() callback
 *         setTimeout(function() {
 *             done(error, tile);
 *         }, 1000);
 *
 *         return tile;
 *     }
 * });
 * ```
 *
 * @section
 */
var Yn=xn.extend({
// @section
// @aka GridLayer options
options:{
// @option tileSize: Number|Point = 256
// Width and height of tiles in the grid. Use a number if width and height are equal, or `L.point(width, height)` otherwise.
tileSize:256,
// @option opacity: Number = 1.0
// Opacity of the tiles. Can be used in the `createTile()` function.
opacity:1,
// @option updateWhenIdle: Boolean = (depends)
// Load new tiles only when panning ends.
// `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
// `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
// [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
updateWhenIdle:Le.mobile,
// @option updateWhenZooming: Boolean = true
// By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
updateWhenZooming:!0,
// @option updateInterval: Number = 200
// Tiles will not update more than once every `updateInterval` milliseconds when panning.
updateInterval:200,
// @option zIndex: Number = 1
// The explicit zIndex of the tile layer.
zIndex:1,
// @option bounds: LatLngBounds = undefined
// If set, tiles will only be loaded inside the set `LatLngBounds`.
bounds:null,
// @option minZoom: Number = 0
// The minimum zoom level down to which this layer will be displayed (inclusive).
minZoom:0,
// @option maxZoom: Number = undefined
// The maximum zoom level up to which this layer will be displayed (inclusive).
maxZoom:void 0,
// @option maxNativeZoom: Number = undefined
// Maximum zoom number the tile source has available. If it is specified,
// the tiles on all zoom levels higher than `maxNativeZoom` will be loaded
// from `maxNativeZoom` level and auto-scaled.
maxNativeZoom:void 0,
// @option minNativeZoom: Number = undefined
// Minimum zoom number the tile source has available. If it is specified,
// the tiles on all zoom levels lower than `minNativeZoom` will be loaded
// from `minNativeZoom` level and auto-scaled.
minNativeZoom:void 0,
// @option noWrap: Boolean = false
// Whether the layer is wrapped around the antimeridian. If `true`, the
// GridLayer will only be displayed once at low zoom levels. Has no
// effect when the [map CRS](#map-crs) doesn't wrap around. Can be used
// in combination with [`bounds`](#gridlayer-bounds) to prevent requesting
// tiles outside the CRS limits.
noWrap:!1,
// @option pane: String = 'tilePane'
// `Map pane` where the grid layer will be added.
pane:"tilePane",
// @option className: String = ''
// A custom class name to assign to the tile layer. Empty by default.
className:"",
// @option keepBuffer: Number = 2
// When panning the map, keep this many rows and columns of tiles before unloading them.
keepBuffer:2},initialize:function(e){p(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),ot(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},
// @method bringToFront: this
// Brings the tile layer to the top of all tile layers.
bringToFront:function(){return this._map&&(ct(this._container),this._setAutoZIndex(Math.max)),this},
// @method bringToBack: this
// Brings the tile layer to the bottom of all tile layers.
bringToBack:function(){return this._map&&(lt(this._container),this._setAutoZIndex(Math.min)),this},
// @method getContainer: HTMLElement
// Returns the HTML element that contains the tiles for this layer.
getContainer:function(){return this._container},
// @method setOpacity(opacity: Number): this
// Changes the [opacity](#gridlayer-opacity) of the grid layer.
setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},
// @method setZIndex(zIndex: Number): this
// Changes the [zIndex](#gridlayer-zindex) of the grid layer.
setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},
// @method isLoading: Boolean
// Returns `true` if any tile in the grid layer has not finished loading.
isLoading:function(){return this._loading},
// @method redraw: this
// Causes the layer to clear all the tiles and request them again.
redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(
// update tiles on move, but not more often than once per given interval
this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},
// @section Extension methods
// Layers extending `GridLayer` shall reimplement the following method.
// @method createTile(coords: Object, done?: Function): HTMLElement
// Called only internally, must be overridden by classes extending `GridLayer`.
// Returns the `HTMLElement` corresponding to the given `coords`. If the `done` callback
// is specified, it must be called when the tile has finished loading and drawing.
createTile:function(){return document.createElement("div")},
// @section
// @method getTileSize: Point
// Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.
getTileSize:function(){var e=this.options.tileSize;return e instanceof T?e:new T(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){// -Infinity for max, Infinity for min
for(
// go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back)
var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,a=n.length;i<a;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Le.ielt9)
// IE doesn't inherit filter opacity properly, so we're forced to set it on tiles
{gt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var a=Math.min(1,(e-i.loaded)/200);gt(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(k(this._fadeFrame),this._fadeFrame=E(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=at("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(ot(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=at("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),r.el.offsetWidth,this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)ot(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new T(+i,+a);s.z=+o;var c=this._tileCoordsToKey(s),l=this._tiles[c];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),o>r&&this._retainParent(i,a,o,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new T(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),c=this._tiles[s];c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!a||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),
// Flag to prevent _updateOpacity from pruning tiles during
// a zoom anim or a pinch gesture
this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();Le.any3d?vt(e.el,i,r):yt(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(2*r);return new P(i.subtract(a),i.add(a))},
// Private method to load tiles in the grid's active zoom level according to map bounds
_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){// if out of minzoom/maxzoom
var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,c=new P(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));
// Sanity check: panic if the tile range contains Infinity somewhere.
if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var u=this._tiles[l].coords;u.z===this._tileZoom&&c.contains(new T(u.x,u.y))||(this._tiles[l].current=!1)}
// _update just loads more tiles. If the tile zoom level differs too much
// from the map's, let _setView reset levels and prune old tiles.
if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{
// create a queue of coordinates to load tiles from
for(var h=i.min.y;h<=i.max.y;h++)for(var f=i.min.x;f<=i.max.x;f++){var d=new T(f,h);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:o.push(d)}}
// sort tile queue to load tiles in order of their distance to center
if(o.sort((function(e,t){return e.distanceTo(a)-t.distanceTo(a)})),0!==o.length){
// if it's the first batch of tiles to load
this._loading||(this._loading=!0,
// @event loading: Event
// Fired when the grid layer starts loading tiles.
this.fire("loading"));
// create DOM fragment to append tiles in one batch
var g=document.createDocumentFragment();for(f=0;f<o.length;f++)this._addTile(o[f],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){
// don't load tile if it's out of bounds and not wrapped
var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;
// don't load tile if it doesn't intersect the bounds in options
var r=this._tileCoordsToBounds(e);return j(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},
// converts tile coordinates to its geographical bounds
_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new R(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},
// converts tile coordinates to key for the tile cache
_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},
// converts tile cache key to coordinates
_keyToTileCoords:function(e){var t=e.split(":"),n=new T(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(ot(t.el),delete this._tiles[e],
// @event tileunload: TileEvent
// Fired when a tile is removed (e.g. when a tile goes off the screen).
this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){ht(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,
// update opacity on tiles in IE7-8 because of filter inheritance problems
Le.ielt9&&this.options.opacity<1&&gt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),a(this._tileReady,this,e));this._initTile(i),
// if createTile is defined with a second argument ("done" callback),
// we know that tile is async and will be ready later; otherwise
this.createTile.length<2&&
// mark tile as ready, but delay one frame for opacity animation to happen
E(a(this._tileReady,this,e,null,i)),yt(i,n),
// save tile in cache
this._tiles[r]={el:i,coords:e,current:!0},t.appendChild(i),
// @event tileloadstart: TileEvent
// Fired when a tile is requested and starts loading.
this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&
// @event tileerror: TileErrorEvent
// Fired when there is an error loading a tile.
this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(gt(n.el,0),k(this._fadeFrame),this._fadeFrame=E(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(ht(n.el,"leaflet-tile-loaded"),
// @event tileload: TileEvent
// Fired when a tile loads.
this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,
// @event load: Event
// Fired when the grid layer loaded all visible tiles.
this.fire("load"),Le.ielt9||!this._map._fadeAnimated?E(this._pruneTiles,this):
// Wait a bit more than 0.2 secs (the duration of the tile fade-in)
// to trigger a pruning.
setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new T(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new P(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});
// @factory L.gridLayer(options?: GridLayer options)
// Creates a new instance of GridLayer with the supplied options.
/*
 * @class TileLayer
 * @inherits GridLayer
 * @aka L.TileLayer
 * Used to load and display tile layers on the map. Note that most tile servers require attribution, which you can set under `Layer`. Extends `GridLayer`.
 *
 * @example
 *
 * ```js
 * L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar', attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
 * ```
 *
 * @section URL template
 * @example
 *
 * A string of the following form:
 *
 * ```
 * 'https://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'
 * ```
 *
 * `{s}` means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; `a`, `b` or `c` by default, can be omitted), `{z}` — zoom level, `{x}` and `{y}` — tile coordinates. `{r}` can be used to add "&commat;2x" to the URL to load retina tiles.
 *
 * You can use custom keys in the template, which will be [evaluated](#util-template) from TileLayer options, like this:
 *
 * ```
 * L.tileLayer('https://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});
 * ```
 */
var Kn=Yn.extend({
// @section
// @aka TileLayer options
options:{
// @option minZoom: Number = 0
// The minimum zoom level down to which this layer will be displayed (inclusive).
minZoom:0,
// @option maxZoom: Number = 18
// The maximum zoom level up to which this layer will be displayed (inclusive).
maxZoom:18,
// @option subdomains: String|String[] = 'abc'
// Subdomains of the tile service. Can be passed in the form of one string (where each letter is a subdomain name) or an array of strings.
subdomains:"abc",
// @option errorTileUrl: String = ''
// URL to the tile image to show in place of the tile that failed to load.
errorTileUrl:"",
// @option zoomOffset: Number = 0
// The zoom number used in tile URLs will be offset with this value.
zoomOffset:0,
// @option tms: Boolean = false
// If `true`, inverses Y axis numbering for tiles (turn this on for [TMS](https://en.wikipedia.org/wiki/Tile_Map_Service) services).
tms:!1,
// @option zoomReverse: Boolean = false
// If set to true, the zoom number used in tile URLs will be reversed (`maxZoom - zoom` instead of `zoom`)
zoomReverse:!1,
// @option detectRetina: Boolean = false
// If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.
detectRetina:!1,
// @option crossOrigin: Boolean|String = false
// Whether the crossOrigin attribute will be added to the tiles.
// If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
crossOrigin:!1,
// @option referrerPolicy: Boolean|String = false
// Whether the referrerPolicy attribute will be added to the tiles.
// If a String is provided, all tiles will have their referrerPolicy attribute set to the String provided.
// This may be needed if your map's rendering context has a strict default but your tile provider expects a valid referrer
// (e.g. to validate an API token).
// Refer to [HTMLImageElement.referrerPolicy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy) for valid String values.
referrerPolicy:!1},initialize:function(e,t){this._url=e,
// detecting retina displays, adjusting tileSize and zoom levels
(t=p(this,t)).detectRetina&&Le.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?
// make sure minZoom is lte maxZoom
t.minZoom=Math.min(t.maxZoom,t.minZoom):
// make sure maxZoom is gte minZoom
t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},
// @method setUrl(url: String, noRedraw?: Boolean): this
// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
// If the URL does not change, the layer will not be redrawn unless
// the noRedraw parameter is set to false.
setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},
// @method createTile(coords: Object, done?: Function): HTMLElement
// Called only internally, overrides GridLayer's [`createTile()`](#gridlayer-createtile)
// to return an `<img>` HTML element with the appropriate image URL given `coords`. The `done`
// callback is called when the tile has been loaded.
createTile:function(e,t){var n=document.createElement("img");return kt(n,"load",a(this._tileOnLoad,this,t,n)),kt(n,"error",a(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),
// for this new option we follow the documented behavior
// more closely by only setting the property when string
"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),
// The alt attribute is set to the empty string,
// allowing screen readers to ignore the decorative image tiles.
// https://www.w3.org/WAI/tutorials/images/decorative/
// https://www.w3.org/TR/html-aria/#el-img-empty-alt
n.alt="",n.src=this.getTileUrl(e),n},
// @section Extension methods
// @uninheritable
// Layers extending `TileLayer` might reimplement the following method.
// @method getTileUrl(coords: Object): String
// Called only internally, returns the URL for a tile given its coordinates.
// Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
getTileUrl:function(e){var t={r:Le.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=n),t["-y"]=n}return v(this._url,r(t,this.options))},_tileOnLoad:function(e,t){
// For https://github.com/Leaflet/Leaflet/issues/3332
Le.ielt9?setTimeout(a(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},
// stops loading all tiles in the background layer
_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=b;var n=this._tiles[e].coords;ot(t),delete this._tiles[e],
// @event tileabort: TileEvent
// Fired when a tile was loading but is now not wanted.
this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)
// Cancels any pending http requests associated with the tile
return t.el.setAttribute("src",b),Yn.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Yn.prototype._tileReady.call(this,e,t,n)}});
// @factory L.tilelayer(urlTemplate: String, options?: TileLayer options)
// Instantiates a tile layer object given a `URL template` and optionally an options object.
/*
 * @class TileLayer.WMS
 * @inherits TileLayer
 * @aka L.TileLayer.WMS
 * Used to display [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services as tile layers on the map. Extends `TileLayer`.
 *
 * @example
 *
 * ```js
 * var nexrad = L.tileLayer.wms("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
 * 	layers: 'nexrad-n0r-900913',
 * 	format: 'image/png',
 * 	transparent: true,
 * 	attribution: "Weather data © 2012 IEM Nexrad"
 * });
 * ```
 */
var $n=Kn.extend({
// @section
// @aka TileLayer.WMS options
// If any custom options not documented here are used, they will be sent to the
// WMS server as extra parameters in each request URL. This can be useful for
// [non-standard vendor WMS parameters](https://docs.geoserver.org/stable/en/user/services/wms/vendor.html).
defaultWmsParams:{service:"WMS",request:"GetMap",
// @option layers: String = ''
// **(required)** Comma-separated list of WMS layers to show.
layers:"",
// @option styles: String = ''
// Comma-separated list of WMS styles.
styles:"",
// @option format: String = 'image/jpeg'
// WMS image format (use `'image/png'` for layers with transparency).
format:"image/jpeg",
// @option transparent: Boolean = false
// If `true`, the WMS service will return images with transparency.
transparent:!1,
// @option version: String = '1.1.1'
// Version of the WMS service to use
version:"1.1.1"},options:{
// @option crs: CRS = null
// Coordinate Reference System to use for the WMS requests, defaults to
// map CRS. Don't change this if you're not sure what it means.
crs:null,
// @option uppercase: Boolean = false
// If `true`, WMS request parameter keys will be uppercase.
uppercase:!1},initialize:function(e,t){this._url=e;var n=r({},this.defaultWmsParams);
// all keys that are not TileLayer options go to WMS params
for(var i in t)i in this.options||(n[i]=t[i]);var a=(t=p(this,t)).detectRetina&&Le.retina?2:1,o=this.getTileSize();n.width=o.x*a,n.height=o.y*a,this.wmsParams=n},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Kn.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=Q(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===bn?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(","),s=Kn.prototype.getTileUrl.call(this,e);return s+g(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},
// @method setParams(params: Object, noRedraw?: Boolean): this
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
setParams:function(e,t){return r(this.wmsParams,e),t||this.redraw(),this}});
// @factory L.tileLayer.wms(baseUrl: String, options: TileLayer.WMS options)
// Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object.
Kn.WMS=$n;
/*
 * @class Renderer
 * @inherits Layer
 * @aka L.Renderer
 *
 * Base class for vector renderer implementations (`SVG`, `Canvas`). Handles the
 * DOM container of the renderer, its bounds, and its zoom animation.
 *
 * A `Renderer` works as an implicit layer group for all `Path`s - the renderer
 * itself can be added or removed to the map. All paths use a renderer, which can
 * be implicit (the map will decide the type of renderer and use it automatically)
 * or explicit (using the [`renderer`](#path-renderer) option of the path).
 *
 * Do not use this class directly, use `SVG` and `Canvas` instead.
 *
 * @event update: Event
 * Fired when the renderer updates its bounds, center and zoom, for example when
 * its map has moved
 */
var Jn=xn.extend({
// @section
// @aka Renderer options
options:{
// @option padding: Number = 0.1
// How much to extend the clip area around the map view (relative to its size)
// e.g. 0.1 would be 10% of map view in each direction
padding:.1},initialize:function(e){p(this,e),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),// defined by renderer implementations
// always keep transform-origin as 0 0
ht(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));Le.any3d?vt(this._container,a,n):yt(this._container,a)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){
// Update pixel bounds of renderer container (for positioning/sizing/clipping later)
// Subclasses are responsible of firing the 'update' event.
var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new P(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Xn=Jn.extend({
// @section
// @aka Canvas options
options:{
// @option tolerance: Number = 0
// How much to extend the click tolerance around a path/object on the map.
tolerance:0},getEvents:function(){var e=Jn.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){
// Set a flag so that a viewprereset+moveend+viewreset only updates&redraws once
this._postponeUpdatePaths=!0},onAdd:function(){Jn.prototype.onAdd.call(this),
// Redraw vectors since canvas is cleared upon removal,
// in case of removing the renderer itself from the map.
this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");kt(e,"mousemove",this._onMouseMove,this),kt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),kt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,ot(this._container),Bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Jn.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Le.retina?2:1;yt(t,e.min),
// set canvas size (also clearing it); use double size on retina
t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Le.retina&&this._ctx.scale(2,2),
// translate so we use the same path coordinates after canvas element moves
this._ctx.translate(-e.min.x,-e.min.y),
// Tell paths to redraw themselves
this.fire("update")}},_reset:function(){Jn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[s(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[s(e)],this._requestRedraw(e)},_updatePath:function(e){
// Redraw the union of the layer's old pixel
// bounds and the new pixel bounds.
this._extendRedrawBounds(e),e._project(),e._update(),
// The redraw will extend the redraw bounds
// with the new pixel bounds.
this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){
// Ignore dash array containing invalid lengths
if(t=Number(r[n]),isNaN(t))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||E(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),// clear layers in redraw bounds
this._draw(),// draw layers
this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,c=this._ctx;if(s){for(c.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],c[r?"lineTo":"moveTo"](a.x,a.y);t&&c.closePath()}this._fillStroke(c,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},
// Canvas obviously doesn't have mouse events for individual drawn objects,
// so we emulate that by calculating what's under the mouse on mousemove/click manually
_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(
// if we're leaving the layer, fire mouseout
ft(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(ht(this._container,"leaflet-interactive"),// change cursor
this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(a((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(
// Update first entry unless this is the
// single entry
this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(
// Update last entry unless this is the
// single entry
this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});
/*
 * @class Canvas
 * @inherits Renderer
 * @aka L.Canvas
 *
 * Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
 * Inherits `Renderer`.
 *
 * Due to [technical limitations](https://caniuse.com/canvas), Canvas is not
 * available in all web browsers, notably IE8, and overlapping geometries might
 * not display properly in some edge cases.
 *
 * @example
 *
 * Use Canvas by default for all paths in the map:
 *
 * ```js
 * var map = L.map('map', {
 * 	renderer: L.canvas()
 * });
 * ```
 *
 * Use a Canvas renderer with extra padding for specific vector geometries:
 *
 * ```js
 * var map = L.map('map');
 * var myRenderer = L.canvas({ padding: 0.5 });
 * var line = L.polyline( coordinates, { renderer: myRenderer } );
 * var circle = L.circle( center, { renderer: myRenderer } );
 * ```
 */
/*
 * Thanks to Dmitry Baranovsky and his Raphael library for inspiration!
 */
var Zn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){
// Do not return fn from catch block so `e` can be garbage collected
// See https://github.com/Leaflet/Leaflet/pull/7279
}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),er={_initContainer:function(){this._container=at("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Jn.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Zn("shape");ht(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Zn("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;ot(t),e.removeInteractiveTarget(t),delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=Zn("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=y(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=Zn("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ct(e._container)},_bringToBack:function(e){lt(e._container)}},tr=Le.vml?Zn:$,nr=Jn.extend({_initContainer:function(){this._container=tr("svg"),
// makes it possible to click through svg root; we'll reset it back in individual paths
this._container.setAttribute("pointer-events","none"),this._rootGroup=tr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ot(this._container),Bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Jn.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;
// set size of svg-container if changed
this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),
// movement: update container viewBox so that we don't have to change coordinates of individual layers
yt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},
// methods below are called by vector layers implementations
_initPath:function(e){var t=e._path=tr("path");
// @namespace Path
// @option className: String = null
// Custom class name set on an element. Only for SVG renderer.
e.options.className&&ht(t,e.options.className),e.options.interactive&&ht(t,"leaflet-interactive"),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ot(e._path),e.removeInteractiveTarget(e._path),delete this._layers[s(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,J(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";
// drawing a circle with two half-arcs
this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
_bringToFront:function(e){ct(e._path)},_bringToBack:function(e){lt(e._path)}});
/*
 * @class SVG
 *
 *
 * VML was deprecated in 2012, which means VML functionality exists only for backwards compatibility
 * with old versions of Internet Explorer.
 */
// mixin to redefine some SVG methods to handle VML syntax which is similar but with some differences
Le.vml&&nr.include(er),Vt.include({
// @namespace Map; @method getRenderer(layer: Path): Renderer
// Returns the instance of `Renderer` that should be used to render the given
// `Path`. It will ensure that the `renderer` options of the map and paths
// are respected, and that the renderers do exist on the map.
getRenderer:function(e){
// @namespace Path; @option renderer: Renderer
// Use this specific instance of `Renderer` for this path. Takes
// precedence over the map's [default renderer](#map-renderer).
var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){
// @namespace Map; @option preferCanvas: Boolean = false
// Whether `Path`s should be rendered on a `Canvas` renderer.
// By default, all `Path`s are rendered in a `SVG` renderer.
return this.options.preferCanvas&&
// @factory L.canvas(options?: Renderer options)
// Creates a Canvas renderer with the given options.
function(e){return Le.canvas?new Xn(e):null}(e)||
// @namespace SVG
// @factory L.svg(options?: Renderer options)
// Creates a SVG renderer with the given options.
function(e){return Le.svg||Le.vml?new nr(e):null}(e)}});
/*
 * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object.
 */
/*
 * @class Rectangle
 * @aka L.Rectangle
 * @inherits Polygon
 *
 * A class for drawing rectangle overlays on a map. Extends `Polygon`.
 *
 * @example
 *
 * ```js
 * // define rectangle geographical bounds
 * var bounds = [[54.559322, -5.767822], [56.1210604, -3.021240]];
 *
 * // create an orange rectangle
 * L.rectangle(bounds, {color: "#ff7800", weight: 1}).addTo(map);
 *
 * // zoom the map to the rectangle bounds
 * map.fitBounds(bounds);
 * ```
 *
 */
Dn.extend({initialize:function(e,t){Dn.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},
// @method setBounds(latLngBounds: LatLngBounds): this
// Redraws the rectangle with the passed bounds.
setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=j(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});
// @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)
nr.create=tr,nr.pointsToPath=J,Pn.geometryToLayer=Ln,Pn.coordsToLatLng=Rn,Pn.coordsToLatLngs=jn,Pn.latLngToCoords=Nn,Pn.latLngsToCoords=Fn,Pn.getFeature=zn,Pn.asFeature=Hn,
/*
 * L.Handler.BoxZoom is used to add shift-drag zoom interaction to the map
 * (zoom to a selected bounding box), enabled by default.
 */
// @namespace Map
// @section Interaction Options
Vt.mergeOptions({
// @option boxZoom: Boolean = true
// Whether the map can be zoomed to a rectangular area specified by
// dragging the mouse while pressing the shift key.
boxZoom:!0});var rr=Xt.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ot(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;
// Clear the deferred resetState if it hasn't executed yet, otherwise it
// will interrupt the interaction and orphan a box element in the container.
this._clearDeferredResetState(),this._resetState(),Ke(),wt(),this._startPoint=this._map.mouseEventToContainerPoint(e),kt(document,{contextmenu:jt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=at("div","leaflet-zoom-box",this._container),ht(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new P(this._point,this._startPoint),n=t.getSize();yt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ot(this._box),ft(this._container,"leaflet-crosshair")),$e(),xt(),Bt(document,{contextmenu:jt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){
// Postpone to next JS tick so internal click event handling
// still see it as "moved".
this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var t=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});
// @section Handlers
// @property boxZoom: Handler
// Box (shift-drag with mouse) zoom handler.
Vt.addInitHook("addHandler","boxZoom",rr),
/*
 * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.
 */
// @namespace Map
// @section Interaction Options
Vt.mergeOptions({
// @option doubleClickZoom: Boolean|String = true
// Whether the map can be zoomed in by double clicking on it and
// zoomed out by double clicking while holding shift. If passed
// `'center'`, double-click zoom will zoom to the center of the
//  view regardless of where the mouse was.
doubleClickZoom:!0});var ir=Xt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});
// @section Handlers

// Map properties include interaction handlers that allow you to control
// interaction behavior in runtime, enabling or disabling certain features such
// as dragging or touch zoom (see `Handler` methods). For example:

// ```js
// map.doubleClickZoom.disable();
// ```

// @property doubleClickZoom: Handler
// Double click zoom handler.
Vt.addInitHook("addHandler","doubleClickZoom",ir),
/*
 * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.
 */
// @namespace Map
// @section Interaction Options
Vt.mergeOptions({
// @option dragging: Boolean = true
// Whether the map is draggable with mouse/touch or not.
dragging:!0,
// @section Panning Inertia Options
// @option inertia: Boolean = *
// If enabled, panning of the map will have an inertia effect where
// the map builds momentum while dragging and continues moving in
// the same direction for some time. Feels especially nice on touch
// devices. Enabled by default.
inertia:!0,
// @option inertiaDeceleration: Number = 3000
// The rate with which the inertial movement slows down, in pixels/second².
inertiaDeceleration:3400,// px/s^2
// @option inertiaMaxSpeed: Number = Infinity
// Max speed of the inertial movement, in pixels/second.
inertiaMaxSpeed:1/0,// px/s
// @option easeLinearity: Number = 0.2
easeLinearity:.2,
// TODO refactor, move to CRS
// @option worldCopyJump: Boolean = false
// With this option enabled, the map tracks when you pan to another "copy"
// of the world and seamlessly jumps to the original one so that all overlays
// like markers and vector layers are still visible.
worldCopyJump:!1,
// @option maxBoundsViscosity: Number = 0.0
// If `maxBounds` is set, this option will control how solid the bounds
// are when dragging the map around. The default value of `0.0` allows the
// user to drag outside the bounds at normal speed, higher values will
// slow down map dragging outside bounds, and `1.0` makes the bounds fully
// solid, preventing the user from dragging outside the bounds.
maxBoundsViscosity:0});var ar=Xt.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new en(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}ht(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ft(this._map._container,"leaflet-grab"),ft(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=j(this._map.options.maxBounds);this._offsetLimit=Q(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){
// TODO refactor to be able to adjust map pane position after zoom
var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),c=s.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,c),u=s.multiplyBy(l/c),h=l/(n.inertiaDeceleration*o),f=u.multiplyBy(-h/2).round();f.x||f.y?(f=t._limitOffset(f,t.options.maxBounds),E((function(){t.panBy(f,{duration:h,easeLinearity:o,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});
// @section Handlers
// @property dragging: Handler
// Map dragging handler (by both mouse and touch).
Vt.addInitHook("addHandler","dragging",ar),
/*
 * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.
 */
// @namespace Map
// @section Keyboard Navigation Options
Vt.mergeOptions({
// @option keyboard: Boolean = true
// Makes the map focusable and allows users to navigate the map with keyboard
// arrows and `+`/`-` keys.
keyboard:!0,
// @option keyboardPanDelta: Number = 80
// Amount of pixels to pan when pressing an arrow key.
keyboardPanDelta:80});var or=Xt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;
// make the container focusable by tabbing
e.tabIndex<=0&&(e.tabIndex="0"),kt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){kt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=D(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset(D(t),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(i)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}jt(e)}}});
// @section Handlers
// @section Handlers
// @property keyboard: Handler
// Keyboard navigation handler.
Vt.addInitHook("addHandler","keyboard",or),
/*
 * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map.
 */
// @namespace Map
// @section Interaction Options
Vt.mergeOptions({
// @section Mouse wheel options
// @option scrollWheelZoom: Boolean|String = true
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
// it will zoom to the center of the view regardless of where the mouse was.
scrollWheelZoom:!0,
// @option wheelDebounceTime: Number = 40
// Limits the rate at which a wheel can fire (in milliseconds). By default
// user can't zoom via wheel more often than once per 40 ms.
wheelDebounceTime:40,
// @option wheelPxPerZoomLevel: Number = 60
// How many scroll pixels (as reported by [L.DomEvent.getWheelDelta](#domevent-getwheeldelta))
// mean a change of one full zoom level. Smaller values will make wheel-zooming
// faster (and vice versa).
wheelPxPerZoomLevel:60});var sr=Xt.extend({addHooks:function(){kt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Ht(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),r),jt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();// stop panning and fly animations if any
// map the delta with a sigmoid function to -4..4 range leaning on -1..1
var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,a=n?Math.ceil(i/n)*n:i,o=e._limitZoom(t+(this._delta>0?a:-a))-t;this._delta=0,this._startTime=null,o&&("center"===e.options.scrollWheelZoom?e.setZoom(t+o):e.setZoomAround(this._lastMousePos,t+o))}});
// @section Handlers
// @property scrollWheelZoom: Handler
// Scroll wheel zoom handler.
Vt.addInitHook("addHandler","scrollWheelZoom",sr);
// @namespace Map
// @section Interaction Options
Vt.mergeOptions({
// @section Touch interaction options
// @option tapHold: Boolean
// Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
tapHold:Le.touchNative&&Le.safari&&Le.mobile,
// @option tapTolerance: Number = 15
// The max number of pixels a user can shift his finger during touch
// for it to be considered a valid tap.
tapTolerance:15});var cr=Xt.extend({addHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new T(t.clientX,t.clientY),this._holdTimeout=setTimeout(a((function(){this._cancel(),this._isTapValid()&&(
// prevent simulated mouse events https://w3c.github.io/touch-events/#mouse-events
kt(document,"touchend",Rt),kt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),600),kt(document,"touchend touchcancel contextmenu",this._cancel,this),kt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){Bt(document,"touchend",Rt),Bt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),Bt(document,"touchend touchcancel contextmenu",this._cancel,this),Bt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new T(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,
// detail: 1,
screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});
// @section Handlers
// @property tapHold: Handler
// Long tap handler to simulate `contextmenu` event (useful in mobile Safari).
Vt.addInitHook("addHandler","tapHold",cr),
/*
 * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers.
 */
// @namespace Map
// @section Interaction Options
Vt.mergeOptions({
// @section Touch interaction options
// @option touchZoom: Boolean|String = *
// Whether the map can be zoomed by touch-dragging with two fingers. If
// passed `'center'`, it will zoom to the center of the view regardless of
// where the touch events (fingers) were. Enabled for touch-capable web
// browsers.
touchZoom:Le.touch,
// @option bounceAtZoomLimits: Boolean = true
// Set it to false if you don't want the map to zoom beyond min/max zoom
// and then bounce back when pinch-zooming.
bounceAtZoomLimits:!0});var lr=Xt.extend({addHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ft(this._map._container,"leaflet-touch-zoom"),Bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),kt(document,"touchmove",this._onTouchMove,this),kt(document,"touchend touchcancel",this._onTouchEnd,this),Rt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{
// Get delta from pinch to center, so centerLatLng is delta applied to initial pinchLatLng
var o=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===o.x&&0===o.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var s=a(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=E(s,this,!0),Rt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),Bt(document,"touchmove",this._onTouchMove,this),Bt(document,"touchend touchcancel",this._onTouchEnd,this),
// Pinch updates GridLayers' levels only when zoomSnap is off, so zoomSnap becomes noUpdate.
this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});
// @section Handlers
// @property touchZoom: Handler
// Touch zoom handler.
Vt.addInitHook("addHandler","touchZoom",lr),Vt.BoxZoom=rr,Vt.DoubleClickZoom=ir,Vt.Drag=ar,Vt.Keyboard=or,Vt.ScrollWheelZoom=sr,Vt.TapHold=cr,Vt.TouchZoom=lr},
/***/"6bb4":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */function r(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}
/***/n.d(t,"a",(function(){return r}))},
/***/"6bf7":
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083");r(r.S,"Math",{scale:n("59ad")})},
/***/"6c02":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"changeDefaultConfig",{enumerable:!0,get:function(){return a.changeDefaultConfig}}),t.default=void 0;var i=r(n("04fb")),a=n("9d85"),o=i.default;t.default=o},
/***/"6c29":
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: activeRingChart, borderBox1, borderBox10, borderBox11, borderBox12, borderBox13, borderBox2, borderBox3, borderBox4, borderBox5, borderBox6, borderBox7, borderBox8, borderBox9, capsuleChart, charts, conicalColumnChart, decoration1, decoration10, decoration11, decoration12, decoration2, decoration3, decoration4, decoration5, decoration6, decoration7, decoration8, decoration9, digitalFlop, flylineChart, flylineChartEnhanced, fullScreenContainer, loading, percentPond, scrollBoard, scrollRankingBoard, waterLevelPond
// EXTERNAL MODULE: ./node_modules/@jiaminghi/data-view/lib/components/activeRingChart/src/main.css
n("62fd");
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@jiaminghi/data-view/lib/components/activeRingChart/src/main.vue?vue&type=template&id=0cd75252
var r=n("2909"),i=n("5530"),a=(n("d81d"),n("13d5"),n("b0c0"),n("d3b7"),n("0643"),n("4e3e"),n("a573"),n("9d4a"),n("159b"),n("6c02")),o=n.n(a),s=n("3835"),c=(n("b680"),n("9886")),l=n.n(c),u=(n("0ca1"),n("becb")),h=n("5557"),f={name:"DvDigitalFlop",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{renderer:null,defaultConfig:{
/**
         * @description Number for digital flop
         * @type {Array<Number>}
         * @default number = []
         * @example number = [10]
         */
number:[],
/**
         * @description Content formatter
         * @type {String}
         * @default content = ''
         * @example content = '{nt}个'
         */
content:"",
/**
         * @description Number toFixed
         * @type {Number}
         * @default toFixed = 0
         */
toFixed:0,
/**
         * @description Text align
         * @type {String}
         * @default textAlign = 'center'
         * @example textAlign = 'center' | 'left' | 'right'
         */
textAlign:"center",
/**
         * @description rowGap
         * @type {Number}
         @default rowGap = 0
         */
rowGap:0,
/**
         * @description Text style configuration
         * @type {Object} {CRender Class Style}
         */
style:{fontSize:30,fill:"#3de7c9"},
/**
         * @description Number formatter
         * @type {Null|Function}
         */
formatter:void 0,
/**
         * @description CRender animationCurve
         * @type {String}
         * @default animationCurve = 'easeOutCubic'
         */
animationCurve:"easeOutCubic",
/**
         * @description CRender animationFrame
         * @type {String}
         * @default animationFrame = 50
         */
animationFrame:50},mergedConfig:null,graph:null}},watch:{config:function(){(0,this.update)()}},methods:{init:function(){var e=this.initRender,t=this.mergeConfig,n=this.initGraph;e(),t(),n()},initRender:function(){var e=this.$refs;this.renderer=new l.a(e["digital-flop"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(e,!0),t||{})},initGraph:function(){var e=this.getShape,t=this.getStyle,n=this.renderer,r=this.mergedConfig,i=r.animationCurve,a=r.animationFrame,o=e(),s=t();this.graph=n.add({name:"numberText",animationCurve:i,animationFrame:a,shape:o,style:s})},getShape:function(){var e=this.mergedConfig,t=e.number,n=e.content,r=e.toFixed,i=e.textAlign,a=e.rowGap,o=e.formatter,c=Object(s.a)(this.renderer.area,2),l=c[0],u=[l/2,c[1]/2];return"left"===i&&(u[0]=0),"right"===i&&(u[0]=l),{number:t,content:n,toFixed:r,position:u,rowGap:a,formatter:o}},getStyle:function(){var e=this.mergedConfig,t=e.style,n=e.textAlign;return Object(u.deepMerge)(t,{textAlign:n,textBaseline:"middle"})},update:function(){var e=this.mergeConfig,t=this.mergeShape,n=this.getShape,r=this.getStyle,i=this.graph,a=this.mergedConfig;if(i.animationEnd(),e(),i){var o=a.animationCurve,s=a.animationFrame,c=n(),l=r();t(i,c),i.animationCurve=o,i.animationFrame=s,i.animation("style",l,!0),i.animation("shape",c)}},mergeShape:function(e,t){e.shape.number.length!==t.number.length&&(e.shape.number=t.number)}},mounted:function(){(0,this.init)()}},d=n("2877"),p=Object(d.a)(f,(function(){var e=this._self._c;return e("div",{staticClass:"dv-digital-flop"},[e("canvas",{ref:"digital-flop"})])}),[],!1,null,null,null)
/* harmony default export */.exports,g={name:"DvActiveRingChart",components:{dvDigitalFlop:p},props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{
/**
         * @description Ring radius
         * @type {String|Number}
         * @default radius = '50%'
         * @example radius = '50%' | 100
         */
radius:"50%",
/**
         * @description Active ring radius
         * @type {String|Number}
         * @default activeRadius = '55%'
         * @example activeRadius = '55%' | 110
         */
activeRadius:"55%",
/**
         * @description Ring data
         * @type {Array<Object>}
         * @default data = [{ name: '', value: 0 }]
         */
data:[{name:"",value:0}],
/**
         * @description Ring line width
         * @type {Number}
         * @default lineWidth = 20
         */
lineWidth:20,
/**
         * @description Active time gap (ms)
         * @type {Number}
         * @default activeTimeGap = 3000
         */
activeTimeGap:3e3,
/**
         * @description Ring color (hex|rgb|rgba|color keywords)
         * @type {Array<String>}
         * @default color = [Charts Default Color]
         * @example color = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
         */
color:[],
/**
         * @description Digital flop style
         * @type {Object}
         */
digitalFlopStyle:{fontSize:25,fill:"#fff"},
/**
         * @description Digital flop toFixed
         * @type {Number}
         */
digitalFlopToFixed:0,
/**
         * @description Digital flop unit
         * @type {String}
         */
digitalFlopUnit:"",
/**
         * @description CRender animationCurve
         * @type {String}
         * @default animationCurve = 'easeOutCubic'
         */
animationCurve:"easeOutCubic",
/**
         * @description CRender animationFrame
         * @type {String}
         * @default animationFrame = 50
         */
animationFrame:50,
/**
         * @description showOriginValue
         * @type {Boolean}
         * @default showOriginValue = false
         */
showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}},computed:{digitalFlop:function(){var e=this.mergedConfig,t=this.activeIndex;if(!e)return{};var n,r=e.digitalFlopStyle,i=e.digitalFlopToFixed,a=e.data,o=e.showOriginValue,s=e.digitalFlopUnit,c=a.map((function(e){return e.value}));if(o)n=c[t];else{var l=c.reduce((function(e,t){return e+t}),0);n=parseFloat(c[t]/l*100)||0}return{content:"{nt}".concat(o?s:s||"%"),number:[n],style:r,toFixed:i}},ringName:function(){var e=this.mergedConfig,t=this.activeIndex;return e?e.data[t].name:""},fontSize:function(){var e=this.mergedConfig;return e?"font-size: ".concat(e.digitalFlopStyle.fontSize,"px;"):""}},watch:{config:function(){var e=this.animationHandler,t=this.mergeConfig,n=this.setRingOption;clearTimeout(e),this.activeIndex=0,t(),n()}},methods:{init:function(){var e=this.initChart,t=this.mergeConfig,n=this.setRingOption;e(),t(),n()},initChart:function(){var e=this.$refs;this.chart=new o.a(e["active-ring-chart"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(e,!0),t||{})},setRingOption:function(){var e=this.getRingOption,t=this.chart,n=this.ringAnimation,r=e();t.setOption(r,!0),n()},getRingOption:function(){var e=this.mergedConfig,t=(0,this.getRealRadius)();return e.data.forEach((function(e){e.radius=t})),{series:[Object(i.a)(Object(i.a)({type:"pie"},e),{},{outsideLabel:{show:!1}})],color:e.color}},getRealRadius:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.mergedConfig,n=this.chart,i=t.radius,a=t.activeRadius,o=t.lineWidth,s=Math.min.apply(Math,Object(r.a)(n.render.area))/2,c=o/2,l=e?a:i;return"number"!=typeof l&&(l=parseInt(l)/100*s),[l-c,l+c]},ringAnimation:function(){var e=this,t=this.activeIndex,n=this.getRingOption,r=this.chart,i=this.getRealRadius,a=i(),o=i(!0),s=n(),c=s.series[0].data;c.forEach((function(e,n){e.radius=n===t?o:a})),r.setOption(s,!0);var l=s.series[0].activeTimeGap;this.animationHandler=setTimeout((function(n){(t+=1)>=c.length&&(t=0),e.activeIndex=t,e.ringAnimation()}),l)}},mounted:function(){(0,this.init)()},beforeDestroy:function(){var e=this.animationHandler;clearTimeout(e)}},m=g,v=Object(d.a)(m,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-active-ring-chart"},[t("div",{ref:"active-ring-chart",staticClass:"active-ring-chart-container"}),t("div",{staticClass:"active-ring-info"},[t("dv-digital-flop",{attrs:{config:e.digitalFlop}}),t("div",{staticClass:"active-ring-name",style:e.fontSize},[e._v(e._s(e.ringName))])],1)])}),[],!1,null,null,null)
/* harmony default export */.exports,y=function(e){e.component(v.name,v)};n("fe7b"),n("99af");
// CONCATENATED MODULE: ./node_modules/@jiaminghi/data-view/lib/components/borderBox1/src/main.vue?vue&type=template&id=205f0004
// CONCATENATED MODULE: ./node_modules/@jiaminghi/data-view/lib/util/index.js
function A(e,t){return 1===arguments.length?parseInt(Math.random()*e+1,10):parseInt(Math.random()*(t-e+1)+e,10)}function b(e,t){const n=Math.abs(e[0]-t[0]),r=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+r*r)}function w(e){return(e?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}
// CONCATENATED MODULE: ./node_modules/@jiaminghi/data-view/lib/mixin/autoResize.js
/* harmony default export */var x={data:()=>({dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}),methods:{async autoResizeMixinInit(){const{initWH:e,getDebounceInitWHFun:t,bindDomResizeCallback:n,afterAutoResizeMixinInit:r}=this;await e(!1),t(),n(),"function"==typeof r&&r()},initWH(e=!0){const{$nextTick:t,$refs:n,ref:r,onResize:i}=this;return new Promise((a=>{t((t=>{const o=this.dom=n[r];this.width=o?o.clientWidth:0,this.height=o?o.clientHeight:0,o&&(!this.width||this.height),"function"==typeof i&&e&&i(),a()}))}))},getDebounceInitWHFun(){const{initWH:e}=this;this.debounceInitWHFun=function(e,t){let n;return function(){clearTimeout(n);const[r,i]=[this,arguments];n=setTimeout((()=>{t.apply(r,i)}),e)}}(100,e)},bindDomResizeCallback(){const{dom:e,debounceInitWHFun:t}=this;this.domObserver=function(e,t){const n=new(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)(t);return n.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),n}(e,t),window.addEventListener("resize",t)},unbindDomResizeCallback(){let{domObserver:e,debounceInitWHFun:t}=this;e&&(e.disconnect(),e.takeRecords(),e=null,window.removeEventListener("resize",t))}},mounted(){const{autoResizeMixinInit:e}=this;e()},beforeDestroy(){const{unbindDomResizeCallback:e}=this;e()}},C={name:"DvBorderBox1",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-1",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#4fd2dd","#235fa7"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}},_=C,I=Object(d.a)(_,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-1"},[t("svg",{staticClass:"border",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"10, 27 10, ".concat(e.height-27," 13, ").concat(e.height-24," 13, ").concat(e.height-21," 24, ").concat(e.height-11,"\n    38, ").concat(e.height-11," 41, ").concat(e.height-8," 73, ").concat(e.height-8," 75, ").concat(e.height-10," 81, ").concat(e.height-10,"\n    85, ").concat(e.height-6," ").concat(e.width-85,", ").concat(e.height-6," ").concat(e.width-81,", ").concat(e.height-10," ").concat(e.width-75,", ").concat(e.height-10,"\n    ").concat(e.width-73,", ").concat(e.height-8," ").concat(e.width-41,", ").concat(e.height-8," ").concat(e.width-38,", ").concat(e.height-11,"\n    ").concat(e.width-24,", ").concat(e.height-11," ").concat(e.width-13,", ").concat(e.height-21," ").concat(e.width-13,", ").concat(e.height-24,"\n    ").concat(e.width-10,", ").concat(e.height-27," ").concat(e.width-10,", 27 ").concat(e.width-13,", 25 ").concat(e.width-13,", 21\n    ").concat(e.width-24,", 11 ").concat(e.width-38,", 11 ").concat(e.width-41,", 8 ").concat(e.width-73,", 8 ").concat(e.width-75,", 10\n    ").concat(e.width-81,", 10 ").concat(e.width-85,", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24")}})]),e._l(e.border,(function(n){return t("svg",{key:n,class:"".concat(n," border"),attrs:{width:"150px",height:"150px"}},[t("polygon",{attrs:{fill:e.mergedColor[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"}},[t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[0],";").concat(e.mergedColor[1],";").concat(e.mergedColor[0]),dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{fill:e.mergedColor[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"}},[t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0],";").concat(e.mergedColor[1]),dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{fill:e.mergedColor[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"}},[t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[0],";").concat(e.mergedColor[1],";transparent"),dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])})),t("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),[],!1,null,null,null)
/* harmony default export */,E=I.exports,k=function(e){e.component(E.name,E)},S=(n("6ccd"),{name:"DvBorderBox10",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-10",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#1d48c4","#d3e1f8"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),B=S,M=Object(d.a)(B,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px ".concat(e.mergedColor[0])},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      4, 0 ".concat(e.width-4,", 0 ").concat(e.width,", 4 ").concat(e.width,", ").concat(e.height-4," ").concat(e.width-4,", ").concat(e.height,"\n      4, ").concat(e.height," 0, ").concat(e.height-4," 0, 4\n    ")}})]),e._l(e.border,(function(n){return t("svg",{key:n,class:"".concat(n," dv-border-svg-container"),attrs:{width:"150px",height:"150px"}},[t("polygon",{attrs:{fill:e.mergedColor[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"}})])})),t("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),[],!1,null,null,null)
/* harmony default export */,T=M.exports,O=function(e){e.component(T.name,T)},D=(n("4656"),n("a9e3"),n("a870")),P={name:"DvBorderBox11",mixins:[x],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=w();return{ref:"border-box-11",filterId:"border-box-11-filterId-".concat(e),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])},fade:D.fade},mounted:function(){(0,this.mergeColor)()}},L=P,Q=Object(d.a)(L,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-11"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[t("feMorphology",{attrs:{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"}}),t("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),t("feFlood",{attrs:{"flood-color":e.mergedColor[1],result:"glowColor"}}),t("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),t("feMerge",[t("feMergeNode",{attrs:{in:"softGlowColored"}}),t("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      20, 32 ".concat(.5*e.width-e.titleWidth/2,", 32 ").concat(.5*e.width-e.titleWidth/2+20,", 53\n      ").concat(.5*e.width+e.titleWidth/2-20,", 53 ").concat(.5*e.width+e.titleWidth/2,", 32\n      ").concat(e.width-20,", 32 ").concat(e.width-8,", 48 ").concat(e.width-8,", ").concat(e.height-25," ").concat(e.width-20,", ").concat(e.height-8,"\n      20, ").concat(e.height-8," 8, ").concat(e.height-25," 8, 50\n    ")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],filter:"url(#".concat(e.filterId,")"),points:"\n        ".concat((e.width-e.titleWidth)/2,", 30\n        20, 30 7, 50 7, ").concat(50+(e.height-167)/2,"\n        13, ").concat(55+(e.height-167)/2," 13, ").concat(135+(e.height-167)/2,"\n        7, ").concat(140+(e.height-167)/2," 7, ").concat(e.height-27,"\n        20, ").concat(e.height-7," ").concat(e.width-20,", ").concat(e.height-7," ").concat(e.width-7,", ").concat(e.height-27,"\n        ").concat(e.width-7,", ").concat(140+(e.height-167)/2," ").concat(e.width-13,", ").concat(135+(e.height-167)/2,"\n        ").concat(e.width-13,", ").concat(55+(e.height-167)/2," ").concat(e.width-7,", ").concat(50+(e.height-167)/2,"\n        ").concat(e.width-7,", 50 ").concat(e.width-20,", 30 ").concat((e.width+e.titleWidth)/2,", 30\n        ").concat((e.width+e.titleWidth)/2-20,", 7 ").concat((e.width-e.titleWidth)/2+20,", 7\n        ").concat((e.width-e.titleWidth)/2,", 30 ").concat((e.width-e.titleWidth)/2+20,", 52\n        ").concat((e.width+e.titleWidth)/2-20,", 52 ").concat((e.width+e.titleWidth)/2,", 30\n      ")}}),t("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n        ".concat((e.width+e.titleWidth)/2-5,", 30 ").concat((e.width+e.titleWidth)/2-21,", 11\n        ").concat((e.width+e.titleWidth)/2-27,", 11 ").concat((e.width+e.titleWidth)/2-8,", 34\n      ")}}),t("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n        ".concat((e.width-e.titleWidth)/2+5,", 30 ").concat((e.width-e.titleWidth)/2+22,", 49\n        ").concat((e.width-e.titleWidth)/2+28,", 49 ").concat((e.width-e.titleWidth)/2+8,", 26\n      ")}}),t("polygon",{attrs:{stroke:e.mergedColor[0],fill:e.fade(e.mergedColor[1]||e.defaultColor[1],30),filter:"url(#".concat(e.filterId,")"),points:"\n        ".concat((e.width+e.titleWidth)/2-11,", 37 ").concat((e.width+e.titleWidth)/2-32,", 11\n        ").concat((e.width-e.titleWidth)/2+23,", 11 ").concat((e.width-e.titleWidth)/2+11,", 23\n        ").concat((e.width-e.titleWidth)/2+33,", 49 ").concat((e.width+e.titleWidth)/2-22,", 49\n      ")}}),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"1",points:"\n        ".concat((e.width-e.titleWidth)/2-10,", 37 ").concat((e.width-e.titleWidth)/2-31,", 37\n        ").concat((e.width-e.titleWidth)/2-25,", 46 ").concat((e.width-e.titleWidth)/2-4,", 46\n      ")}},[t("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.7",points:"\n        ".concat((e.width-e.titleWidth)/2-40,", 37 ").concat((e.width-e.titleWidth)/2-61,", 37\n        ").concat((e.width-e.titleWidth)/2-55,", 46 ").concat((e.width-e.titleWidth)/2-34,", 46\n      ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.5",points:"\n        ".concat((e.width-e.titleWidth)/2-70,", 37 ").concat((e.width-e.titleWidth)/2-91,", 37\n        ").concat((e.width-e.titleWidth)/2-85,", 46 ").concat((e.width-e.titleWidth)/2-64,", 46\n      ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"1",points:"\n        ".concat((e.width+e.titleWidth)/2+30,", 37 ").concat((e.width+e.titleWidth)/2+9,", 37\n        ").concat((e.width+e.titleWidth)/2+3,", 46 ").concat((e.width+e.titleWidth)/2+24,", 46\n      ")}},[t("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.7",points:"\n        ".concat((e.width+e.titleWidth)/2+60,", 37 ").concat((e.width+e.titleWidth)/2+39,", 37\n        ").concat((e.width+e.titleWidth)/2+33,", 46 ").concat((e.width+e.titleWidth)/2+54,", 46\n      ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.5",points:"\n        ".concat((e.width+e.titleWidth)/2+90,", 37 ").concat((e.width+e.titleWidth)/2+69,", 37\n        ").concat((e.width+e.titleWidth)/2+63,", 46 ").concat((e.width+e.titleWidth)/2+84,", 46\n      ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("text",{staticClass:"dv-border-box-11-title",attrs:{x:"".concat(e.width/2),y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[e._v(" "+e._s(e.title)+" ")]),t("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#".concat(e.filterId,")"),points:"\n        7, ".concat(53+(e.height-167)/2," 11, ").concat(57+(e.height-167)/2,"\n        11, ").concat(133+(e.height-167)/2," 7, ").concat(137+(e.height-167)/2,"\n      ")}}),t("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#".concat(e.filterId,")"),points:"\n        ".concat(e.width-7,", ").concat(53+(e.height-167)/2," ").concat(e.width-11,", ").concat(57+(e.height-167)/2,"\n        ").concat(e.width-11,", ").concat(133+(e.height-167)/2," ").concat(e.width-7,", ").concat(137+(e.height-167)/2,"\n      ")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,R=Q.exports,j=function(e){e.component(R.name,R)},N=(n("3c0e"),{name:"DvBorderBox12",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=w();return{ref:"border-box-12",filterId:"borderr-box-12-filterId-".concat(e),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])},fade:D.fade},mounted:function(){(0,this.mergeColor)()}}),F=N,z=Object(d.a)(F,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-12"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[t("feMorphology",{attrs:{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"}}),t("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"2",result:"blurred"}}),t("feFlood",{attrs:{"flood-color":e.fade(e.mergedColor[1]||e.defaultColor[1],70),result:"glowColor"}},[t("animate",{attrs:{attributeName:"flood-color",values:"\n              ".concat(e.fade(e.mergedColor[1]||e.defaultColor[1],70),";\n              ").concat(e.fade(e.mergedColor[1]||e.defaultColor[1],30),";\n              ").concat(e.fade(e.mergedColor[1]||e.defaultColor[1],70),";\n            "),dur:"3s",begin:"0s",repeatCount:"indefinite"}})]),t("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),t("feMerge",[t("feMergeNode",{attrs:{in:"softGlowColored"}}),t("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),e.width&&e.height?t("path",{attrs:{fill:e.backgroundColor,"stroke-width":"2",stroke:e.mergedColor[0],d:"\n        M15 5 L ".concat(e.width-15," 5 Q ").concat(e.width-5," 5, ").concat(e.width-5," 15\n        L ").concat(e.width-5," ").concat(e.height-15," Q ").concat(e.width-5," ").concat(e.height-5,", ").concat(e.width-15," ").concat(e.height-5,"\n        L 15, ").concat(e.height-5," Q 5 ").concat(e.height-5," 5 ").concat(e.height-15," L 5 15\n        Q 5 5 15 5\n      ")}}):e._e(),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"}}),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"M ".concat(e.width-20," 5 L ").concat(e.width-15," 5 Q ").concat(e.width-5," 5 ").concat(e.width-5," 15 L ").concat(e.width-5," 20")}}),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"\n        M ".concat(e.width-20," ").concat(e.height-5," L ").concat(e.width-15," ").concat(e.height-5,"\n        Q ").concat(e.width-5," ").concat(e.height-5," ").concat(e.width-5," ").concat(e.height-15,"\n        L ").concat(e.width-5," ").concat(e.height-20,"\n      ")}}),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"\n        M 20 ".concat(e.height-5," L 15 ").concat(e.height-5,"\n        Q 5 ").concat(e.height-5," 5 ").concat(e.height-15,"\n        L 5 ").concat(e.height-20,"\n      ")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,H=z.exports,U=function(e){e.component(H.name,H)},G=(n("470c"),{name:"DvBorderBox13",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-13",defaultColor:["#6586ec","#2cf7fe"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),V=G,W=Object(d.a)(V,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-13"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("path",{attrs:{fill:e.backgroundColor,stroke:e.mergedColor[0],d:"\n        M 5 20 L 5 10 L 12 3  L 60 3 L 68 10\n        L ".concat(e.width-20," 10 L ").concat(e.width-5," 25\n        L ").concat(e.width-5," ").concat(e.height-5," L 20 ").concat(e.height-5,"\n        L 5 ").concat(e.height-20," L 5 20\n      ")}}),t("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:e.mergedColor[0],d:"M 16 9 L 61 9"}}),t("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M 5 20 L 5 10 L 12 3  L 60 3 L 68 10"}}),t("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M ".concat(e.width-5," ").concat(e.height-30," L ").concat(e.width-5," ").concat(e.height-5," L ").concat(e.width-30," ").concat(e.height-5)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,q=W.exports,Y=function(e){e.component(q.name,q)},K=(n("b72d"),{name:"DvBorderBox2",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-2",defaultColor:["#fff","rgba(255, 255, 255, 0.6)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),$=K,J=Object(d.a)($,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-2"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      7, 7 ".concat(e.width-7,", 7 ").concat(e.width-7,", ").concat(e.height-7," 7, ").concat(e.height-7,"\n    ")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"2, 2 ".concat(e.width-2," ,2 ").concat(e.width-2,", ").concat(e.height-2," 2, ").concat(e.height-2," 2, 2")}}),t("polyline",{attrs:{stroke:e.mergedColor[1],points:"6, 6 ".concat(e.width-6,", 6 ").concat(e.width-6,", ").concat(e.height-6," 6, ").concat(e.height-6," 6, 6")}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:"11",r:"1"}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:"11",r:"1"}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:e.height-11,r:"1"}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:e.height-11,r:"1"}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,X=J.exports,Z=function(e){e.component(X.name,X)},ee=(n("1e4c"),{name:"DvBorderBox3",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-3",defaultColor:["#2862b7","#2862b7"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),te=ee,ne=Object(d.a)(te,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-3"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      23, 23 ".concat(e.width-24,", 23 ").concat(e.width-24,", ").concat(e.height-24," 23, ").concat(e.height-24,"\n    ")}}),t("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:e.mergedColor[0],points:"4, 4 ".concat(e.width-22," ,4 ").concat(e.width-22,", ").concat(e.height-22," 4, ").concat(e.height-22," 4, 4")}}),t("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"10, 10 ".concat(e.width-16,", 10 ").concat(e.width-16,", ").concat(e.height-16," 10, ").concat(e.height-16," 10, 10")}}),t("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"16, 16 ".concat(e.width-10,", 16 ").concat(e.width-10,", ").concat(e.height-10," 16, ").concat(e.height-10," 16, 16")}}),t("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"22, 22 ".concat(e.width-4,", 22 ").concat(e.width-4,", ").concat(e.height-4," 22, ").concat(e.height-4," 22, 22")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,re=ne.exports,ie=function(e){e.component(re.name,re)},ae=(n("1dac"),{name:"DvBorderBox4",mixins:[x],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-4",defaultColor:["red","rgba(0,0,255,0.8)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),oe=ae,se=Object(d.a)(oe,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-4"},[t("svg",{class:"dv-border-svg-container ".concat(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      ".concat(e.width-15,", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n      16, 42 16, ").concat(e.height-32," 41, ").concat(e.height-7," ").concat(e.width-15,", ").concat(e.height-7,"\n    ")}}),t("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:e.mergedColor[0],points:"145, ".concat(e.height-5," 40, ").concat(e.height-5," 10, ").concat(e.height-35,"\n        10, 40 40, 5 150, 5 170, 20 ").concat(e.width-15,", 20")}}),t("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:e.mergedColor[1],points:"245, ".concat(e.height-1," 36, ").concat(e.height-1," 14, ").concat(e.height-23,"\n        14, ").concat(e.height-100)}}),t("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:e.mergedColor[0],points:"7, ".concat(e.height-40," 7, ").concat(e.height-75)}}),t("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:e.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),t("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:e.mergedColor[0],points:"5, 45 5, 140"}}),t("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:e.mergedColor[1],points:"14, 75 14, 180"}}),t("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:e.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),t("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:e.mergedColor[1],points:"158, 5 173, 16"}}),t("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:e.mergedColor[0],points:"200, 17 ".concat(e.width-10,", 17")}}),t("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:e.mergedColor[1],points:"385, 17 ".concat(e.width-10,", 17")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,ce=se.exports,le=function(e){e.component(ce.name,ce)},ue=(n("042d"),{name:"DvBorderBox5",mixins:[x],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-5",defaultColor:["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),he=ue,fe=Object(d.a)(he,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-5"},[t("svg",{class:"dv-border-svg-container  ".concat(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      10, 22 ".concat(e.width-22,", 22 ").concat(e.width-22,", ").concat(e.height-86," ").concat(e.width-84,", ").concat(e.height-24," 10, ").concat(e.height-24,"\n    ")}}),t("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:e.mergedColor[0],points:"8, 5 ".concat(e.width-5,", 5 ").concat(e.width-5,", ").concat(e.height-100,"\n        ").concat(e.width-100,", ").concat(e.height-5," 8, ").concat(e.height-5," 8, 5")}}),t("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:e.mergedColor[1],points:"3, 5 ".concat(e.width-20,", 5 ").concat(e.width-20,", ").concat(e.height-60,"\n        ").concat(e.width-74,", ").concat(e.height-5," 3, ").concat(e.height-5," 3, 5")}}),t("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:e.mergedColor[1],points:"50, 13 ".concat(e.width-35,", 13")}}),t("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:e.mergedColor[1],points:"15, 20 ".concat(e.width-35,", 20")}}),t("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:e.mergedColor[1],points:"15, ".concat(e.height-20," ").concat(e.width-110,", ").concat(e.height-20)}}),t("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:e.mergedColor[1],points:"15, ".concat(e.height-13," ").concat(e.width-110,", ").concat(e.height-13)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,de=fe.exports,pe=function(e){e.component(de.name,de)},ge=(n("4e86"),{name:"DvBorderBox6",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-6",defaultColor:["rgba(255, 255, 255, 0.35)","gray"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),me=ge,ve=Object(d.a)(me,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-6"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      9, 7 ".concat(e.width-9,", 7 ").concat(e.width-9,", ").concat(e.height-7," 9, ").concat(e.height-7,"\n    ")}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:"5",r:"2"}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:"5",r:"2"}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:e.height-5,r:"2"}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:e.height-5,r:"2"}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, 4 ".concat(e.width-10,", 4")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, ".concat(e.height-4," ").concat(e.width-10,", ").concat(e.height-4)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"5, 70 5, ".concat(e.height-70)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-5,", 70 ").concat(e.width-5,", ").concat(e.height-70)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, 10, 3, 50"}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, 30 7, 80"}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-3,", 10 ").concat(e.width-3,", 50")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-7,", 30 ").concat(e.width-7,", 80")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, ".concat(e.height-10," 3, ").concat(e.height-50)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, ".concat(e.height-30," 7, ").concat(e.height-80)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-3,", ").concat(e.height-10," ").concat(e.width-3,", ").concat(e.height-50)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-7,", ").concat(e.height-30," ").concat(e.width-7,", ").concat(e.height-80)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,ye=ve.exports,Ae=function(e){e.component(ye.name,ye)},be=(n("3648"),{name:"DvBorderBox7",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-7",defaultColor:["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),we=be,xe=Object(d.a)(we,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px ".concat(e.mergedColor[0],"; border: 1px solid ").concat(e.mergedColor[0],"; background-color: ").concat(e.backgroundColor)},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-25,", 0 ").concat(e.width,", 0 ").concat(e.width,", 25")}}),t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-25,", ").concat(e.height," ").concat(e.width,", ").concat(e.height," ").concat(e.width,", ").concat(e.height-25)}}),t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, ".concat(e.height-25," 0, ").concat(e.height," 25, ").concat(e.height)}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"".concat(e.width-10,", 0 ").concat(e.width,", 0 ").concat(e.width,", 10")}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"".concat(e.width-10,", ").concat(e.height," ").concat(e.width,", ").concat(e.height," ").concat(e.width,", ").concat(e.height-10)}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, ".concat(e.height-10," 0, ").concat(e.height," 10, ").concat(e.height)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,Ce=xe.exports,_e=function(e){e.component(Ce.name,Ce)},Ie=(n("733c"),{name:"DvBorderBox8",mixins:[x],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3},backgroundColor:{type:String,default:"transparent"},reverse:{type:Boolean,default:!1}},data:function(){var e=w();return{ref:"border-box-8",path:"border-box-8-path-".concat(e),gradient:"border-box-8-gradient-".concat(e),mask:"border-box-8-mask-".concat(e),defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){return 2*(this.width+this.height-5)},pathD:function(){var e=this.reverse,t=this.width,n=this.height;return e?"M 2.5, 2.5 L 2.5, ".concat(n-2.5," L ").concat(t-2.5,", ").concat(n-2.5," L ").concat(t-2.5,", 2.5 L 2.5, 2.5"):"M2.5, 2.5 L".concat(t-2.5,", 2.5 L").concat(t-2.5,", ").concat(n-2.5," L2.5, ").concat(n-2.5," L2.5, 2.5")}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),Ee=Ie,ke=Object(d.a)(Ee,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-8"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("path",{attrs:{id:e.path,d:e.pathD,fill:"transparent"}}),t("radialGradient",{attrs:{id:e.gradient,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t("mask",{attrs:{id:e.mask}},[t("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#".concat(e.gradient,")")}},[t("animateMotion",{attrs:{dur:"".concat(e.dur,"s"),path:e.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),t("polygon",{attrs:{fill:e.backgroundColor,points:"5, 5 ".concat(e.width-5,", 5 ").concat(e.width-5," ").concat(e.height-5," 5, ").concat(e.height-5)}}),t("use",{attrs:{stroke:e.mergedColor[0],"stroke-width":"1","xlink:href":"#".concat(e.path)}}),t("use",{attrs:{stroke:e.mergedColor[1],"stroke-width":"3","xlink:href":"#".concat(e.path),mask:"url(#".concat(e.mask,")")}},[t("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, ".concat(e.length),to:"".concat(e.length,", 0"),dur:"".concat(e.dur,"s"),repeatCount:"indefinite"}})])]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,Se=ke.exports,Be=function(e){e.component(Se.name,Se)},Me=(n("6fc2"),{name:"DvBorderBox9",mixins:[x],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=w();return{ref:"border-box-9",gradientId:"border-box-9-gradient-".concat(e),maskId:"border-box-9-mask-".concat(e),defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),Te=Me,Oe=Object(d.a)(Te,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-9"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"}},[t("animate",{attrs:{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),t("stop",{attrs:{offset:"0%","stop-color":e.mergedColor[0]}},[t("animate",{attrs:{attributeName:"stop-color",values:"".concat(e.mergedColor[0],";").concat(e.mergedColor[1],";").concat(e.mergedColor[0]),dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),t("stop",{attrs:{offset:"100%","stop-color":e.mergedColor[1]}},[t("animate",{attrs:{attributeName:"stop-color",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0],";").concat(e.mergedColor[1]),dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),t("mask",{attrs:{id:e.maskId}},[t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, ".concat(.4*e.height," 8, 3, ").concat(.4*e.width+7,", 3")}}),t("polyline",{attrs:{fill:"#fff",points:"8, ".concat(.15*e.height," 8, 3, ").concat(.1*e.width+7,", 3\n            ").concat(.1*e.width,", 8 14, 8 14, ").concat(.15*e.height-7,"\n          ")}}),t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"".concat(.5*e.width,", 3 ").concat(e.width-3,", 3, ").concat(e.width-3,", ").concat(.25*e.height)}}),t("polyline",{attrs:{fill:"#fff",points:"\n            ".concat(.52*e.width,", 3 ").concat(.58*e.width,", 3\n            ").concat(.58*e.width-7,", 9 ").concat(.52*e.width+7,", 9\n          ")}}),t("polyline",{attrs:{fill:"#fff",points:"\n            ".concat(.9*e.width,", 3 ").concat(e.width-3,", 3 ").concat(e.width-3,", ").concat(.1*e.height,"\n            ").concat(e.width-9,", ").concat(.1*e.height-7," ").concat(e.width-9,", 9 ").concat(.9*e.width+7,", 9\n          ")}}),t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, ".concat(.5*e.height," 8, ").concat(e.height-3," ").concat(.3*e.width+7,", ").concat(e.height-3)}}),t("polyline",{attrs:{fill:"#fff",points:"\n            8, ".concat(.55*e.height," 8, ").concat(.7*e.height,"\n            2, ").concat(.7*e.height-7," 2, ").concat(.55*e.height+7,"\n          ")}}),t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"".concat(.35*e.width,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(.35*e.height)}}),t("polyline",{attrs:{fill:"#fff",points:"\n            ".concat(.92*e.width,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(.8*e.height,"\n            ").concat(e.width-9,", ").concat(.8*e.height+7," ").concat(e.width-9,", ").concat(e.height-9," ").concat(.92*e.width+7,", ").concat(e.height-9,"\n          ")}})])],1),t("polygon",{attrs:{fill:e.backgroundColor,points:"\n      15, 9 ".concat(.1*e.width+1,", 9 ").concat(.1*e.width+4,", 6 ").concat(.52*e.width+2,", 6\n      ").concat(.52*e.width+6,", 10 ").concat(.58*e.width-7,", 10 ").concat(.58*e.width-2,", 6\n      ").concat(.9*e.width+2,", 6 ").concat(.9*e.width+6,", 10 ").concat(e.width-10,", 10 ").concat(e.width-10,", ").concat(.1*e.height-6,"\n      ").concat(e.width-6,", ").concat(.1*e.height-1," ").concat(e.width-6,", ").concat(.8*e.height+1," ").concat(e.width-10,", ").concat(.8*e.height+6,"\n      ").concat(e.width-10,", ").concat(e.height-10," ").concat(.92*e.width+7,", ").concat(e.height-10,"  ").concat(.92*e.width+2,", ").concat(e.height-6,"\n      11, ").concat(e.height-6," 11, ").concat(.15*e.height-2," 15, ").concat(.15*e.height-7,"\n    ")}}),t("rect",{attrs:{x:"0",y:"0",width:e.width,height:e.height,fill:"url(#".concat(e.gradientId,")"),mask:"url(#".concat(e.maskId,")")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */,De=Oe.exports,Pe=function(e){e.component(De.name,De)},Le=(n("335d"),n("cb29"),n("a630"),n("6062"),n("1e70"),n("79a4"),n("c1a1"),n("8b00"),n("a4e7"),n("1e5a"),n("72c3"),n("3ca3"),n("ddb0"),{name:"DvCapsuleChart",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{
/**
         * @description Capsule chart data
         * @type {Array<Object>}
         * @default data = []
         * @example data = [{ name: 'foo1', value: 100 }, { name: 'foo2', value: 100 }]
         */
data:[],
/**
         * @description Colors (hex|rgb|rgba|color keywords)
         * @type {Array<String>}
         * @default color = ['#37a2da', '#32c5e9', '#67e0e3', '#9fe6b8', '#ffdb5c', '#ff9f7f', '#fb7293']
         * @example color = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
         */
colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],
/**
         * @description Chart unit
         * @type {String}
         * @default unit = ''
         */
unit:"",
/**
         * @description Show item value
         * @type {Boolean}
         * @default showValue = false
         */
showValue:!1},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]}},watch:{config:function(){(0,this.calcData)()}},methods:{calcData:function(){var e=this.mergeConfig,t=this.calcCapsuleLengthAndLabelData;e(),t()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||{})},calcCapsuleLengthAndLabelData:function(){var e=this.mergedConfig.data;if(e.length){var t=e.map((function(e){return e.value})),n=Math.max.apply(Math,Object(r.a)(t));this.capsuleValue=t,this.capsuleLength=t.map((function(e){return n?e/n:0}));var i=n/5,a=Array.from(new Set(new Array(6).fill(0).map((function(e,t){return Math.ceil(t*i)}))));this.labelData=a,this.labelDataLength=Array.from(a).map((function(e){return n?e/n:0}))}}},mounted:function(){(0,this.calcData)()}}),Qe=Object(d.a)(Le,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-capsule-chart"},[e.mergedConfig?[t("div",{staticClass:"label-column"},[e._l(e.mergedConfig.data,(function(n){return t("div",{key:n.name},[e._v(e._s(n.name))])})),t("div",[e._v(" ")])],2),t("div",{staticClass:"capsule-container"},[e._l(e.capsuleLength,(function(n,r){return t("div",{key:r,staticClass:"capsule-item"},[t("div",{staticClass:"capsule-item-column",style:"width: ".concat(100*n,"%; background-color: ").concat(e.mergedConfig.colors[r%e.mergedConfig.colors.length],";")},[e.mergedConfig.showValue?t("div",{staticClass:"capsule-item-value"},[e._v(e._s(e.capsuleValue[r]))]):e._e()])])})),t("div",{staticClass:"unit-label"},e._l(e.labelData,(function(n,r){return t("div",{key:n+r},[e._v(e._s(n))])})),0)],2),e.mergedConfig.unit?t("div",{staticClass:"unit-text"},[e._v(e._s(e.mergedConfig.unit))]):e._e()]:e._e()],2)}),[],!1,null,null,null)
/* harmony default export */.exports,Re=function(e){e.component(Qe.name,Qe)},je=(n("8261"),{name:"DvCharts",mixins:[x],props:{option:{type:Object,default:function(){return{}}}},data:function(){var e=w();return{ref:"charts-container-".concat(e),chartRef:"chart-".concat(e),chart:null}},watch:{option:function(){var e=this.chart,t=this.option;e&&(t||(t={}),e.setOption(t,!0))}},methods:{afterAutoResizeMixinInit:function(){(0,this.initChart)()},initChart:function(){var e=this.$refs,t=this.chartRef,n=this.option,r=this.chart=new o.a(e[t]);n&&r.setOption(n)},onResize:function(){var e=this.chart;e&&e.resize()}}}),Ne=Object(d.a)(je,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-charts-container"},[t("div",{ref:e.chartRef,staticClass:"charts-canvas-container"})])}),[],!1,null,null,null)
/* harmony default export */.exports,Fe=function(e){e.component(Ne.name,Ne)},ze=(n("7ed3"),n("4e82"),{name:"DvConicalColumnChart",mixins:[x],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"conical-column-chart",defaultConfig:{
/**
         * @description Chart data
         * @type {Array<Object>}
         * @default data = []
         */
data:[],
/**
         * @description Chart img
         * @type {Array<String>}
         * @default img = []
         */
img:[],
/**
         * @description Chart font size
         * @type {Number}
         * @default fontSize = 12
         */
fontSize:12,
/**
         * @description Img side length
         * @type {Number}
         * @default imgSideLength = 30
         */
imgSideLength:30,
/**
         * @description Column color
         * @type {String}
         * @default columnColor = 'rgba(0, 194, 255, 0.4)'
         */
columnColor:"rgba(0, 194, 255, 0.4)",
/**
         * @description Text color
         * @type {String}
         * @default textColor = '#fff'
         */
textColor:"#fff",
/**
         * @description Show value
         * @type {Boolean}
         * @default showValue = false
         */
showValue:!1},mergedConfig:null,column:[]}},watch:{config:function(){(0,this.calcData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){(0,this.calcData)()},calcData:function(){var e=this.mergeConfig,t=this.initData,n=this.calcSVGPath;e(),t(),n()},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(e,!0),t||{})},initData:function(){var e=this.mergedConfig,t=e.data;(t=Object(h.deepClone)(t,!0)).sort((function(e,t){var n=e.value,r=t.value;return n>r?-1:n<r?1:n===r?0:void 0}));var n=t[0]?t[0].value:10;t=t.map((function(e){return Object(i.a)(Object(i.a)({},e),{},{percent:e.value/n})})),e.data=t},calcSVGPath:function(){var e=this.mergedConfig,t=this.width,n=this.height,r=e.imgSideLength,a=e.fontSize,o=e.data,s=t/(o.length+1),c=n-r-a-5,l=n-a-5;this.column=o.map((function(e,t){var n=e.percent,r=s*(t+1),o=s*t,u=s*(t+2),h=l-c*n,f=c*n*.6+h,d="\n          M".concat(o,", ").concat(l,"\n          Q").concat(r,", ").concat(f," ").concat(r,",").concat(h,"\n          M").concat(r,",").concat(h,"\n          Q").concat(r,", ").concat(f," ").concat(u,",").concat(l,"\n          L").concat(o,", ").concat(l,"\n          Z\n        "),p=(l+h)/2+a/2;return Object(i.a)(Object(i.a)({},e),{},{d:d,x:r,y:h,textY:p})}))}}}),He=Object(d.a)(ze,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-conical-column-chart"},[t("svg",{attrs:{width:e.width,height:e.height}},e._l(e.column,(function(n,r){return t("g",{key:r},[t("path",{attrs:{d:n.d,fill:e.mergedConfig.columnColor}}),t("text",{style:"fontSize:".concat(e.mergedConfig.fontSize,"px"),attrs:{fill:e.mergedConfig.textColor,x:n.x,y:e.height-4}},[e._v(" "+e._s(n.name)+" ")]),e.mergedConfig.img.length?t("image",{attrs:{"xlink:href":e.mergedConfig.img[r%e.mergedConfig.img.length],width:e.mergedConfig.imgSideLength,height:e.mergedConfig.imgSideLength,x:n.x-e.mergedConfig.imgSideLength/2,y:n.y-e.mergedConfig.imgSideLength}}):e._e(),e.mergedConfig.showValue?t("text",{style:"fontSize:".concat(e.mergedConfig.fontSize,"px"),attrs:{fill:e.mergedConfig.textColor,x:n.x,y:n.textY}},[e._v(" "+e._s(n.value)+" ")]):e._e()])})),0)])}),[],!1,null,null,null)
/* harmony default export */.exports,Ue=function(e){e.component(He.name,He)},Ge=(n("11b09"),{name:"DvDecoration1",mixins:[x],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:2.5,halfPointSideLength:1.25,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcRectsPosition,n=this.calcScale;e(),t(),n()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=Object(s.a)(e,2),a=i[0],o=i[1],c=a/(n+1),l=o/(t+1),u=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[c*(n+1),l*(t+1)]}))}));this.points=u.reduce((function(e,t){return[].concat(Object(r.a)(e),Object(r.a)(t))}),[])},calcRectsPosition:function(){var e=this.points,t=this.rowPoints,n=e[2*t-1],r=e[2*t-3];this.rects=[n,r]},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=Object(s.a)(n,2),i=r[0],a=r[1];this.svgScale=[e/i,t/a]},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),Ve=Object(d.a)(Ge,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-1"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[e._l(e.points,(function(n,r){return[Math.random()>.6?t("rect",{key:r,attrs:{fill:e.mergedColor[0],x:n[0]-e.halfPointSideLength,y:n[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[0],";transparent"),dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()]):e._e()]})),e.rects[0]?t("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[0][0]-e.pointSideLength,y:e.rects[0][1]-e.pointSideLength,width:2*e.pointSideLength,height:2*e.pointSideLength}},[t("animate",{attrs:{attributeName:"width",values:"0;".concat(2*e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"height",values:"0;".concat(2*e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"x",values:"".concat(e.rects[0][0],";").concat(e.rects[0][0]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",values:"".concat(e.rects[0][1],";").concat(e.rects[0][1]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):e._e(),e.rects[1]?t("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[1][0]-40,y:e.rects[1][1]-e.pointSideLength,width:40,height:2*e.pointSideLength}},[t("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"x",values:"".concat(e.rects[1][0],";").concat(e.rects[1][0]-40,";").concat(e.rects[1][0]),dur:"2s",repeatCount:"indefinite"}})]):e._e()],2)])}),[],!1,null,null,null)
/* harmony default export */.exports,We=function(e){e.component(Ve.name,Ve)},qe=(n("c423"),{name:"DvDecoration10",mixins:[x],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=w();return{ref:"decoration-10",animationId1:"d10ani1".concat(e),animationId2:"d10ani2".concat(e),animationId3:"d10ani3".concat(e),animationId4:"d10ani4".concat(e),animationId5:"d10ani5".concat(e),animationId6:"d10ani6".concat(e),animationId7:"d10ani7".concat(e),defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),Ye=Object(d.a)(qe,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-10"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polyline",{attrs:{stroke:e.mergedColor[1],"stroke-width":"2",points:"0, ".concat(e.height/2," ").concat(e.width,", ").concat(e.height/2)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"5, ".concat(e.height/2," ").concat(.2*e.width-3,", ").concat(e.height/2),"stroke-dasharray":"0, ".concat(.2*e.width),fill:"freeze"}},[t("animate",{attrs:{id:e.animationId2,attributeName:"stroke-dasharray",values:"0, ".concat(.2*e.width,";").concat(.2*e.width,", 0;"),dur:"3s",begin:"".concat(e.animationId1,".end"),fill:"freeze"}}),t("animate",{attrs:{attributeName:"stroke-dasharray",values:"".concat(.2*e.width,", 0;0, ").concat(.2*e.width),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"".concat(.2*e.width+3,", ").concat(e.height/2," ").concat(.8*e.width-3,", ").concat(e.height/2),"stroke-dasharray":"0, ".concat(.6*e.width)}},[t("animate",{attrs:{id:e.animationId4,attributeName:"stroke-dasharray",values:"0, ".concat(.6*e.width,";").concat(.6*e.width,", 0"),dur:"3s",begin:"".concat(e.animationId3,".end + 1s"),fill:"freeze"}}),t("animate",{attrs:{attributeName:"stroke-dasharray",values:"".concat(.6*e.width,", 0;0, ").concat(.6*e.width),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"".concat(.8*e.width+3,", ").concat(e.height/2," ").concat(e.width-5,", ").concat(e.height/2),"stroke-dasharray":"0, ".concat(.2*e.width)}},[t("animate",{attrs:{id:e.animationId6,attributeName:"stroke-dasharray",values:"0, ".concat(.2*e.width,";").concat(.2*e.width,", 0"),dur:"3s",begin:"".concat(e.animationId5,".end + 1s"),fill:"freeze"}}),t("animate",{attrs:{attributeName:"stroke-dasharray",values:"".concat(.2*e.width,", 0;0, ").concat(.3*e.width),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("circle",{attrs:{cx:"2",cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId1,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"0s;".concat(e.animationId7,".end"),dur:"0.3s",fill:"freeze"}})]),t("circle",{attrs:{cx:.2*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId3,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"".concat(e.animationId2,".end"),dur:"0.3s",fill:"freeze"}}),t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[1]),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("circle",{attrs:{cx:.8*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId5,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"".concat(e.animationId4,".end"),dur:"0.3s",fill:"freeze"}}),t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[1]),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("circle",{attrs:{cx:e.width-2,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId7,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"".concat(e.animationId6,".end"),dur:"0.3s",fill:"freeze"}}),t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[1]),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})])])])}),[],!1,null,null,null)
/* harmony default export */.exports,Ke=function(e){e.component(Ye.name,Ye)},$e=(n("3e8a"),{name:"DvDecoration11",mixins:[x],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])},fade:D.fade},mounted:function(){(0,this.mergeColor)()}}),Je=Object(d.a)($e,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-11"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 ".concat(e.height-10,", 25 ").concat(e.height-4,", 55 ").concat(e.height-4," 60 ").concat(e.height-10)}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"".concat(e.width-20," 10, ").concat(e.width-25," 4, ").concat(e.width-55," 4 ").concat(e.width-60," 10")}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"".concat(e.width-20," ").concat(e.height-10,", ").concat(e.width-25," ").concat(e.height-4,", ").concat(e.width-55," ").concat(e.height-4," ").concat(e.width-60," ").concat(e.height-10)}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[0]||e.defaultColor[0],20),stroke:e.mergedColor[0],points:"\n        20 10, 5 ".concat(e.height/2," 20 ").concat(e.height-10,"\n        ").concat(e.width-20," ").concat(e.height-10," ").concat(e.width-5," ").concat(e.height/2," ").concat(e.width-20," 10\n      ")}}),t("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:"25 18, 15 ".concat(e.height/2," 25 ").concat(e.height-18)}}),t("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:"".concat(e.width-25," 18, ").concat(e.width-15," ").concat(e.height/2," ").concat(e.width-25," ").concat(e.height-18)}})]),t("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */.exports,Xe=function(e){e.component(Je.name,Je)},Ze=(n("e11f"),n("a15b"),{name:"DvDecoration12",mixins:[x],props:{color:{type:Array,default:function(){return[]}},
/**
     * @description Scan animation dur
     */
scanDur:{type:Number,default:3},
/**
     * @description Halo animation dur
     */
haloDur:{type:Number,default:2}},data:function(){var e=w();return{ref:"decoration-12",gId:"decoration-12-g-".concat(e),gradientId:"decoration-12-gradient-".concat(e),defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color:function(){(0,this.mergeColor)()}},computed:{x:function(){return this.width/2},y:function(){return this.height/2}},methods:{init:function(){var e=this.mergeColor,t=this.calcPathD,n=this.calcPathColor,r=this.calcCircleR,i=this.calcSplitLinePoints,a=this.calcArcD;e(),t(),n(),r(),i(),a()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])},calcPathD:function(){var e=this.x,t=this.y,n=this.width,r=this.segment,i=this.sectorAngle,a=-Math.PI/2,o=i/r,s=n/4,c=Object(h.getCircleRadianPoint)(e,t,s,a);this.pathD=new Array(r).fill("").map((function(n,r){var i=Object(h.getCircleRadianPoint)(e,t,s,a-(r+1)*o).map((function(e){return e.toFixed(5)})),l="M".concat(c.join(",")," A").concat(s,", ").concat(s," 0 0 0 ").concat(i.join(","));return c=i,l}))},calcPathColor:function(){var e=Object(s.a)(this.mergedColor,1)[0],t=this.segment,n=100/(t-1);this.pathColor=new Array(t).fill(e).map((function(t,r){return Object(D.fade)(e,100-r*n)}))},calcCircleR:function(){this.segment;var e=this.ringNum,t=(this.width/2-this.ringWidth/2)/e;this.circleR=new Array(e).fill(0).map((function(e,n){return t*(n+1)}))},calcSplitLinePoints:function(){var e=this.x,t=this.y,n=this.width,r=Math.PI/6,i=n/2;this.splitLinePoints=new Array(6).fill("").map((function(n,a){var o=r*(a+1),s=o+Math.PI,c=Object(h.getCircleRadianPoint)(e,t,i,o),l=Object(h.getCircleRadianPoint)(e,t,i,s);return"".concat(c.join(",")," ").concat(l.join(","))}))},calcArcD:function(){var e=this.x,t=this.y,n=this.width,r=Math.PI/6,i=n/2-1;this.arcD=new Array(4).fill("").map((function(n,a){var o=r*(3*a+1),s=o+r,c=Object(h.getCircleRadianPoint)(e,t,i,o),l=Object(h.getCircleRadianPoint)(e,t,i,s);return"M".concat(c.join(",")," A").concat(e,", ").concat(t," 0 0 1 ").concat(l.join(","))}))},afterAutoResizeMixinInit:function(){(0,this.init)()},fade:D.fade}}),et=Object(d.a)(Ze,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-12"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("defs",[t("g",{attrs:{id:e.gId}},e._l(e.pathD,(function(n,r){return t("path",{key:n,attrs:{stroke:e.pathColor[r],"stroke-width":e.width/2,fill:"transparent",d:n}})})),0),t("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"transparent","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),e._l(e.circleR,(function(n){return t("circle",{key:n,attrs:{r:n,cx:e.x,cy:e.y,stroke:e.mergedColor[1],"stroke-width":.5,fill:"transparent"}})})),t("circle",{attrs:{r:"1",cx:e.x,cy:e.y,stroke:"transparent",fill:"url(#".concat(e.gradientId,")")}},[t("animate",{attrs:{attributeName:"r",values:"1;".concat(e.width/2),dur:"".concat(e.haloDur,"s"),repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:"".concat(e.haloDur,"s"),repeatCount:"indefinite"}})]),t("circle",{attrs:{r:"2",cx:e.x,cy:e.y,fill:e.mergedColor[1]}}),e.showSplitLine?t("g",e._l(e.splitLinePoints,(function(n){return t("polyline",{key:n,attrs:{points:n,stroke:e.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})})),0):e._e(),e._l(e.arcD,(function(n){return t("path",{key:n,attrs:{d:n,stroke:e.mergedColor[1],"stroke-width":"2",fill:"transparent"}})})),t("use",{attrs:{"xlink:href":"#".concat(e.gId)}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, ".concat(e.x," ").concat(e.y,";360, ").concat(e.x," ").concat(e.y),dur:"".concat(e.scanDur,"s"),repeatCount:"indefinite"}})],1)],2),t("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */.exports,tt=function(e){e.component(et.name,et)},nt=(n("9b06"),{name:"DvDecoration2",mixins:[x],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data:function(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()},reverse:function(){(0,this.calcSVGData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var e=this.reverse,t=this.width,n=this.height;e?(this.w=1,this.h=n,this.x=t/2,this.y=0):(this.w=t,this.h=1,this.x=0,this.y=n/2)},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),rt=Object(d.a)(nt,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-2"},[t("svg",{attrs:{width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}},[t("rect",{attrs:{x:e.x,y:e.y,width:e.w,height:e.h,fill:e.mergedColor[0]}},[t("animate",{attrs:{attributeName:e.reverse?"height":"width",from:"0",to:e.reverse?e.height:e.width,dur:"".concat(e.dur,"s"),calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:e.x,y:e.y,width:"1",height:"1",fill:e.mergedColor[1]}},[t("animate",{attrs:{attributeName:e.reverse?"y":"x",from:"0",to:e.reverse?e.height:e.width,dur:"".concat(e.dur,"s"),calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])}),[],!1,null,null,null)
/* harmony default export */.exports,it=function(e){e.component(rt.name,rt)},at=(n("5e07"),{name:"DvDecoration3",mixins:[x],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:7,halfPointSideLength:3.5,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=Object(s.a)(e,2),a=i[0],o=i[1],c=a/(n+1),l=o/(t+1),u=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[c*(n+1),l*(t+1)]}))}));this.points=u.reduce((function(e,t){return[].concat(Object(r.a)(e),Object(r.a)(t))}),[])},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=Object(s.a)(n,2),i=r[0],a=r[1];this.svgScale=[e/i,t/a]},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),ot=Object(d.a)(at,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-3"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[e._l(e.points,(function(n,r){return[t("rect",{key:r,attrs:{fill:e.mergedColor[0],x:n[0]-e.halfPointSideLength,y:n[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor.join(";")),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()])]}))],2)])}),[],!1,null,null,null)
/* harmony default export */.exports,st=function(e){e.component(ot.name,ot)},ct=(n("c2ca"),{name:"DvDecoration4",mixins:[x],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),lt=Object(d.a)(ct,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-4"},[t("div",{class:"container ".concat(e.reverse?"reverse":"normal"),style:e.reverse?"width:".concat(e.width,"px;height:5px;animation-duration:").concat(e.dur,"s"):"width:5px;height:".concat(e.height,"px;animation-duration:").concat(e.dur,"s")},[t("svg",{attrs:{width:e.reverse?e.width:5,height:e.reverse?5:e.height}},[t("polyline",{attrs:{stroke:e.mergedColor[0],points:e.reverse?"0, 2.5 ".concat(e.width,", 2.5"):"2.5, 0 2.5, ".concat(e.height)}}),t("polyline",{staticClass:"bold-line",attrs:{stroke:e.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:e.reverse?"0, 2.5 ".concat(e.width,", 2.5"):"2.5, 0 2.5, ".concat(e.height)}})])])])}),[],!1,null,null,null)
/* harmony default export */.exports,ut=function(e){e.component(lt.name,lt)},ht=(n("2848"),{name:"DvDecoration5",mixins:[x],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},data:function(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var e=this.width,t=this.height,n=[[0,.2*t],[.18*e,.2*t],[.2*e,.4*t],[.25*e,.4*t],[.27*e,.6*t],[.72*e,.6*t],[.75*e,.4*t],[.8*e,.4*t],[.82*e,.2*t],[e,.2*t]],r=[[.3*e,.8*t],[.7*e,.8*t]],i=Object(u.getPolylineLength)(n),a=Object(u.getPolylineLength)(r);n=n.map((function(e){return e.join(",")})).join(" "),r=r.map((function(e){return e.join(",")})).join(" "),this.line1Points=n,this.line2Points=r,this.line1Length=i,this.line2Length=a},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),ft=Object(d.a)(ht,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-5"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"3",points:e.line1Points}},[t("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, ".concat(e.line1Length/2,", 0, ").concat(e.line1Length/2),to:"0, 0, ".concat(e.line1Length,", 0"),dur:"".concat(e.dur,"s"),begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"}})]),t("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"2",points:e.line2Points}},[t("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, ".concat(e.line2Length/2,", 0, ").concat(e.line2Length/2),to:"0, 0, ".concat(e.line2Length,", 0"),dur:"".concat(e.dur,"s"),begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])}),[],!1,null,null,null)
/* harmony default export */.exports,dt=function(e){e.component(ft.name,ft)},pt=(n("c7c8"),{name:"DvDecoration6",mixins:[x],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:7,halfRectWidth:3.5,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcSVGData)()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=Object(s.a)(e,2),a=i[0],o=i[1],c=a/(n+1),l=o/(t+1),u=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[c*(n+1),l*(t+1)]}))}));this.points=u.reduce((function(e,t){return[].concat(Object(r.a)(e),Object(r.a)(t))}),[]);var h=this.heights=new Array(t*n).fill(0).map((function(e){return Math.random()>.8?A(.7*o,o):A(.2*o,.5*o)}));this.minHeights=new Array(t*n).fill(0).map((function(e,t){return h[t]*Math.random()})),this.randoms=new Array(t*n).fill(0).map((function(e){return Math.random()+1.5}))},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=Object(s.a)(n,2),i=r[0],a=r[1];this.svgScale=[e/i,t/a]},onResize:function(){(0,this.calcSVGData)()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),gt=Object(d.a)(pt,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-6"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[e._l(e.points,(function(n,r){return[t("rect",{key:r,attrs:{fill:e.mergedColor[Math.random()>.5?0:1],x:n[0]-e.halfRectWidth,y:n[1]-e.heights[r]/2,width:e.rectWidth,height:e.heights[r]}},[t("animate",{attrs:{attributeName:"y",values:"".concat(n[1]-e.minHeights[r]/2,";").concat(n[1]-e.heights[r]/2,";").concat(n[1]-e.minHeights[r]/2),dur:"".concat(e.randoms[r],"s"),keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"height",values:"".concat(e.minHeights[r],";").concat(e.heights[r],";").concat(e.minHeights[r]),dur:"".concat(e.randoms[r],"s"),keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}})])]}))],2)])}),[],!1,null,null,null)
/* harmony default export */.exports,mt=function(e){e.component(gt.name,gt)},vt=(n("d51d"),{name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),yt=Object(d.a)(vt,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-decoration-7"},[t("svg",{attrs:{width:"21px",height:"20px"}},[t("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),t("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),e._t("default"),t("svg",{attrs:{width:"21px",height:"20px"}},[t("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),t("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)}),[],!1,null,null,null)
/* harmony default export */.exports,At=function(e){e.component(yt.name,yt)},bt=(n("357d"),{name:"DvDecoration8",mixins:[x],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},data:function(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{xPos:function(e){var t=this.reverse,n=this.width;return t?n-e:e},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])}},mounted:function(){(0,this.mergeColor)()}}),wt=Object(d.a)(bt,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-8"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:"".concat(e.xPos(0),", 0 ").concat(e.xPos(30),", ").concat(e.height/2)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:"".concat(e.xPos(20),", 0 ").concat(e.xPos(50),", ").concat(e.height/2," ").concat(e.xPos(e.width),", ").concat(e.height/2)}}),t("polyline",{attrs:{stroke:e.mergedColor[1],fill:"transparent","stroke-width":"3",points:"".concat(e.xPos(0),", ").concat(e.height-3,", ").concat(e.xPos(200),", ").concat(e.height-3)}})])])}),[],!1,null,null,null)
/* harmony default export */.exports,xt=function(e){e.component(wt.name,wt)},Ct=(n("9ab4"),{name:"DvDecoration9",mixins:[x],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var e=w();return{ref:"decoration-9",polygonId:"decoration-9-polygon-".concat(e),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){(0,this.mergeColor)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcScale)()},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=Object(s.a)(n,2),i=r[0],a=r[1];this.svgScale=[e/i,t/a]},onResize:function(){(0,this.calcScale)()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||[])},fade:D.fade},mounted:function(){(0,this.mergeColor)()}}),_t=Object(d.a)(Ct,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-9"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[t("defs",[t("polygon",{attrs:{id:e.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"}})]),t("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:"".concat(e.dur,"s"),repeatCount:"indefinite"}})],1),t("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:"".concat(e.dur,"s"),repeatCount:"indefinite"}})],1),t("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),e._l(new Array(20).fill(0),(function(n,r){return t("use",{key:r,attrs:{"xlink:href":"#".concat(e.polygonId),stroke:e.mergedColor[1],fill:Math.random()>.4?"transparent":e.mergedColor[0]}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:"".concat(e.dur,"s"),begin:"".concat(r*e.dur/20,"s"),repeatCount:"indefinite"}})],1)})),t("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),e._t("default")],2)}),[],!1,null,null,null)
/* harmony default export */.exports,It=function(e){e.component(_t.name,_t)},Et=(n("bc96"),function(e){e.component(p.name,p)}),kt=(n("41f6"),n("25f0"),n("c7eb")),St=n("1da1"),Bt={name:"DvFlylineChart",mixins:[x],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=w();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-".concat(e),maskCircleId:"mask-circle-id-".concat(e),gradientId:"gradient-id-".concat(e),gradient2Id:"gradient2-id-".concat(e),defaultConfig:{
/**
         * @description Flyline chart center point
         * @type {Array<Number>}
         * @default centerPoint = [0, 0]
         */
centerPoint:[0,0],
/**
         * @description Flyline start points
         * @type {Array<Array<Number>>}
         * @default points = []
         * @example points = [[10, 10], [100, 100]]
         */
points:[],
/**
         * @description Flyline width
         * @type {Number}
         * @default lineWidth = 1
         */
lineWidth:1,
/**
         * @description Orbit color
         * @type {String}
         * @default orbitColor = 'rgba(103, 224, 227, .2)'
         */
orbitColor:"rgba(103, 224, 227, .2)",
/**
         * @description Flyline color
         * @type {String}
         * @default orbitColor = '#ffde93'
         */
flylineColor:"#ffde93",
/**
         * @description K value
         * @type {Number}
         * @default k = -0.5
         * @example k = -1 ~ 1
         */
k:-.5,
/**
         * @description Flyline curvature
         * @type {Number}
         * @default curvature = 5
         */
curvature:5,
/**
         * @description Flyline radius
         * @type {Number}
         * @default flylineRadius = 100
         */
flylineRadius:100,
/**
         * @description Flyline animation duration
         * @type {Array<Number>}
         * @default duration = [20, 30]
         */
duration:[20,30],
/**
         * @description Relative points position
         * @type {Boolean}
         * @default relative = true
         */
relative:!0,
/**
         * @description Back ground image url
         * @type {String}
         * @default bgImgUrl = ''
         * @example bgImgUrl = './img/bg.jpg'
         */
bgImgUrl:"",
/**
         * @description Text configuration
         * @type {Object}
         */
text:{
/**
           * @description Text offset
           * @type {Array<Number>}
           * @default offset = [0, 15]
           */
offset:[0,15],
/**
           * @description Text color
           * @type {String}
           * @default color = '#ffdb5c'
           */
color:"#ffdb5c",
/**
           * @description Text font size
           * @type {Number}
           * @default fontSize = 12
           */
fontSize:12},
/**
         * @description Halo configuration
         * @type {Object}
         */
halo:{
/**
           * @description Weather to show halo
           * @type {Boolean}
           * @default show = true
           * @example show = true | false
           */
show:!0,
/**
           * @description Halo animation duration (10 = 1s)
           * @type {Number}
           * @default duration = 30
           */
duration:30,
/**
           * @description Halo color
           * @type {String}
           * @default color = '#fb7293'
           */
color:"#fb7293",
/**
           * @description Halo max radius
           * @type {Number}
           * @default radius = 120
           */
radius:120},
/**
         * @description Center point img configuration
         * @type {Object}
         */
centerPointImg:{
/**
           * @description Center point img width
           * @type {Number}
           * @default width = 40
           */
width:40,
/**
           * @description Center point img height
           * @type {Number}
           * @default height = 40
           */
height:40,
/**
           * @description Center point img url
           * @type {String}
           * @default url = ''
           */
url:""},
/**
         * @description Points img configuration
         * @type {Object}
         * @default radius = 120
         */
pointsImg:{
/**
           * @description Points img width
           * @type {Number}
           * @default width = 15
           */
width:15,
/**
           * @description Points img height
           * @type {Number}
           * @default height = 15
           */
height:15,
/**
           * @description Points img url
           * @type {String}
           * @default url = ''
           */
url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config:function(){(0,this.calcData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){(0,this.calcData)()},calcData:function(){var e=this;return Object(St.a)(Object(kt.a)().mark((function t(){var n,r,i,a,o;return Object(kt.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.mergeConfig,r=e.createFlylinePaths,i=e.calcLineLengths,n(),r(),t.next=5,i();case 5:a=e.calcTimes,o=e.calcTexts,a(),o();case 8:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||{}),r=n.points;n.points=r.map((function(e){return e instanceof Array?{position:e,text:""}:e})),this.mergedConfig=n},createFlylinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=this.width,r=this.height,i=t.centerPoint,a=t.points,o=t.relative;a=a.map((function(e){return e.position})),o&&(i=[n*i[0],r*i[1]],a=a.map((function(e){var t=Object(s.a)(e,2),i=t[0],a=t[1];return[n*i,r*a]}))),this.paths=a.map((function(t){return e(i,t)}))},getPath:function(e,t){return[t,(0,this.getControlPoint)(e,t),e]},getControlPoint:function(e,t){var n=Object(s.a)(e,2),r=n[0],i=n[1],a=Object(s.a)(t,2),o=a[0],c=a[1],l=this.getKLinePointByx,u=this.mergedConfig,h=u.curvature,f=u.k,d=(r+o)/2,p=(i+c)/2,g=b([r,i],[o,c])/h,m=g/2,v=d,y=p;do{y=l(f,[d,p],v+=m)[1]}while(b([d,p],[v,y])<g);return[v,y]},getKLinePointByx:function(e,t,n){var r=Object(s.a)(t,2),i=r[0];return[n,r[1]-e*i+e*n]},calcLineLengths:function(){var e=this;return Object(St.a)(Object(kt.a)().mark((function t(){var n,r,i;return Object(kt.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.$nextTick,r=e.paths,i=e.$refs,t.next=3,n();case 3:e.lengths=r.map((function(e,t){return i["path".concat(t)][0].getTotalLength()}));case 4:case"end":return t.stop()}}),t)})))()},calcTimes:function(){var e=this.mergedConfig,t=e.duration,n=e.points;this.times=n.map((function(e){return A.apply(void 0,Object(r.a)(t))/10}))},calcTexts:function(){var e=this.mergedConfig.points;this.texts=e.map((function(e){return e.text}))},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,r=this.width,i=this.height;if(this.dev)(t/r).toFixed(2),(n/i).toFixed(2)}}},Mt=Object(d.a)(Bt,(function(){var e=this,t=e._self._c;return t("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url(".concat(e.mergedConfig?e.mergedConfig.bgImgUrl:"",")"),on:{click:e.consoleClickPos}},[e.mergedConfig?t("svg",{attrs:{width:e.width,height:e.height}},[t("defs",[t("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t("radialGradient",{attrs:{id:e.gradient2Id,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1),e.paths[0]?t("circle",{attrs:{id:"circle".concat(e.paths[0].toString()),cx:e.paths[0][2][0],cy:e.paths[0][2][1]}},[t("animate",{attrs:{attributeName:"r",values:"1;".concat(e.mergedConfig.halo.radius),dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):e._e()],1),e.paths[0]?t("image",{attrs:{"xlink:href":e.mergedConfig.centerPointImg.url,width:e.mergedConfig.centerPointImg.width,height:e.mergedConfig.centerPointImg.height,x:e.paths[0][2][0]-e.mergedConfig.centerPointImg.width/2,y:e.paths[0][2][1]-e.mergedConfig.centerPointImg.height/2}}):e._e(),t("mask",{attrs:{id:"maskhalo".concat(e.paths[0].toString())}},[e.paths[0]?t("use",{attrs:{"xlink:href":"#circle".concat(e.paths[0].toString()),fill:"url(#".concat(e.gradient2Id,")")}}):e._e()]),e.paths[0]&&e.mergedConfig.halo.show?t("use",{attrs:{"xlink:href":"#circle".concat(e.paths[0].toString()),fill:e.mergedConfig.halo.color,mask:"url(#maskhalo".concat(e.paths[0].toString(),")")}}):e._e(),e._l(e.paths,(function(n,r){return t("g",{key:r},[t("defs",[t("path",{ref:"path".concat(r),refInFor:!0,attrs:{id:"path".concat(n.toString()),d:"M".concat(n[0].toString()," Q").concat(n[1].toString()," ").concat(n[2].toString()),fill:"transparent"}})]),t("use",{attrs:{"xlink:href":"#path".concat(n.toString()),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.orbitColor}}),e.lengths[r]?t("use",{attrs:{"xlink:href":"#path".concat(n.toString()),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.flylineColor,mask:"url(#mask".concat(e.unique).concat(n.toString(),")")}},[t("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, ".concat(e.lengths[r]),to:"".concat(e.lengths[r],", 0"),dur:e.times[r]||0,repeatCount:"indefinite"}})]):e._e(),t("mask",{attrs:{id:"mask".concat(e.unique).concat(n.toString())}},[t("circle",{attrs:{cx:"0",cy:"0",r:e.mergedConfig.flylineRadius,fill:"url(#".concat(e.gradientId,")")}},[t("animateMotion",{attrs:{dur:e.times[r]||0,path:"M".concat(n[0].toString()," Q").concat(n[1].toString()," ").concat(n[2].toString()),rotate:"auto",repeatCount:"indefinite"}})],1)]),t("image",{attrs:{"xlink:href":e.mergedConfig.pointsImg.url,width:e.mergedConfig.pointsImg.width,height:e.mergedConfig.pointsImg.height,x:n[0][0]-e.mergedConfig.pointsImg.width/2,y:n[0][1]-e.mergedConfig.pointsImg.height/2}}),t("text",{style:"fontSize:".concat(e.mergedConfig.text.fontSize,"px;"),attrs:{fill:e.mergedConfig.text.color,x:n[0][0]+e.mergedConfig.text.offset[0],y:n[0][1]+e.mergedConfig.text.offset[1]}},[e._v(" "+e._s(e.texts[r])+" ")])])}))],2):e._e()])}),[],!1,null,null,null)
/* harmony default export */.exports,Tt=function(e){e.component(Mt.name,Mt)},Ot=(n("dbbf"),n("7db0"),n("fffc"),{name:"DvFlylineChartEnhanced",mixins:[x],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=w();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:"flyline-gradient-id-".concat(e),haloGradientId:"halo-gradient-id-".concat(e),
/**
       * @description Type Declaration
       * 
       * interface Halo {
       *    show?: boolean
       *    duration?: [number, number]
       *    color?: string
       *    radius?: number
       * }
       * 
       * interface Text {
       *    show?: boolean
       *    offset?: [number, number]
       *    color?: string
       *    fontSize?: number
       * }
       * 
       * interface Icon {
       *    show?: boolean
       *    src?: string
       *    width?: number
       *    height?: number
       * }
       * 
       * interface Point {
       *    name: string
       *    coordinate: [number, number]
       *    halo?: Halo
       *    text?: Text
       *    icon?: Icon
       * }
       * 
       * interface Line {
       *    width?: number
       *    color?: string
       *    orbitColor?: string
       *    duration?: [number, number]
       *    radius?: string
       * }
       * 
       * interface Flyline extends Line {
       *    source: string
       *    target: string
       * }
       * 
       * interface FlylineWithPath extends Flyline {
       *    d: string
       *    path: [[number, number], [number, number], [number, number]]
       *    key: string
       * }
       */
defaultConfig:{
/**
         * @description Flyline chart points
         * @type {Point[]}
         * @default points = []
         */
points:[],
/**
         * @description Lines
         * @type {Flyline[]}
         * @default lines = []
         */
lines:[],
/**
         * @description Global halo configuration
         * @type {Halo}
         */
halo:{
/**
           * @description Whether to show halo
           * @type {Boolean}
           * @default show = false
           */
show:!1,
/**
           * @description Halo animation duration (1s = 10)
           * @type {[number, number]}
           */
duration:[20,30],
/**
           * @description Halo color
           * @type {String}
           * @default color = '#fb7293'
           */
color:"#fb7293",
/**
           * @description Halo radius
           * @type {Number}
           * @default radius = 120
           */
radius:120},
/**
         * @description Global text configuration
         * @type {Text}
         */
text:{
/**
           * @description Whether to show text
           * @type {Boolean}
           * @default show = false
           */
show:!1,
/**
           * @description Text offset
           * @type {[number, number]}
           * @default offset = [0, 15]
           */
offset:[0,15],
/**
           * @description Text color
           * @type {String}
           * @default color = '#ffdb5c'
           */
color:"#ffdb5c",
/**
           * @description Text font size
           * @type {Number}
           * @default fontSize = 12
           */
fontSize:12},
/**
         * @description Global icon configuration
         * @type {Icon}
         */
icon:{
/**
           * @description Whether to show icon
           * @type {Boolean}
           * @default show = false
           */
show:!1,
/**
           * @description Icon src
           * @type {String}
           * @default src = ''
           */
src:"",
/**
           * @description Icon width
           * @type {Number}
           * @default width = 15
           */
width:15,
/**
           * @description Icon height
           * @type {Number}
           * @default width = 15
           */
height:15},
/**
         * @description Global line configuration
         * @type {Line}
         */
line:{
/**
           * @description Line width
           * @type {Number}
           * @default width = 1
           */
width:1,
/**
           * @description Flyline color
           * @type {String}
           * @default color = '#ffde93'
           */
color:"#ffde93",
/**
           * @description Orbit color
           * @type {String}
           * @default orbitColor = 'rgba(103, 224, 227, .2)'
           */
orbitColor:"rgba(103, 224, 227, .2)",
/**
           * @description Flyline animation duration
           * @type {[number, number]}
           * @default duration = [20, 30]
           */
duration:[20,30],
/**
           * @description Flyline radius
           * @type {Number}
           * @default radius = 100
           */
radius:100},
/**
         * @description Back ground image url
         * @type {String}
         * @default bgImgSrc = ''
         */
bgImgSrc:"",
/**
         * @description K value
         * @type {Number}
         * @default k = -0.5
         * @example k = -1 ~ 1
         */
k:-.5,
/**
         * @description Flyline curvature
         * @type {Number}
         * @default curvature = 5
         */
curvature:5,
/**
         * @description Relative points position
         * @type {Boolean}
         * @default relative = true
         */
relative:!0},
/**
       * @description Fly line data
       * @type {FlylineWithPath[]}
       * @default flylines = []
       */
flylines:[],
/**
       * @description Fly line lengths
       * @type {Number[]}
       * @default flylineLengths = []
       */
flylineLengths:[],
/**
       * @description Fly line points
       * @default flylinePoints = []
       */
flylinePoints:[],mergedConfig:null}},watch:{config:function(){(0,this.calcData)()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){(0,this.calcData)()},calcData:function(){var e=this;return Object(St.a)(Object(kt.a)().mark((function t(){var n,r,i,a;return Object(kt.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.mergeConfig,r=e.calcflylinePoints,i=e.calcLinePaths,n(),r(),i(),a=e.calcLineLengths,t.next=7,a();case 7:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||{}),r=n.points,i=n.lines,a=n.halo,o=n.text,s=n.icon,c=n.line;n.points=r.map((function(e){return e.halo=Object(u.deepMerge)(Object(h.deepClone)(a,!0),e.halo||{}),e.text=Object(u.deepMerge)(Object(h.deepClone)(o,!0),e.text||{}),e.icon=Object(u.deepMerge)(Object(h.deepClone)(s,!0),e.icon||{}),e})),n.lines=i.map((function(e){return Object(u.deepMerge)(Object(h.deepClone)(c,!0),e)})),this.mergedConfig=n},calcflylinePoints:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=e.relative,a=e.points;this.flylinePoints=a.map((function(e,a){var o=Object(s.a)(e.coordinate,2),c=o[0],l=o[1],u=e.halo,h=e.icon,f=e.text;i&&(e.coordinate=[c*t,l*n]),e.halo.time=A.apply(void 0,Object(r.a)(u.duration))/10;var d=h.width,p=h.height;e.icon.x=e.coordinate[0]-d/2,e.icon.y=e.coordinate[1]-p/2;var g=Object(s.a)(f.offset,2),m=g[0],v=g[1];return e.text.x=e.coordinate[0]+m,e.text.y=e.coordinate[1]+v,e.key="".concat(e.coordinate.toString()).concat(a),e}))},calcLinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=t.points,a=t.lines;this.flylines=a.map((function(t){var a=t.source,o=t.target,s=t.duration,c=n.find((function(e){return e.name===a})).coordinate,l=n.find((function(e){return e.name===o})).coordinate,u=e(c,l).map((function(e){return e.map((function(e){return parseFloat(e.toFixed(10))}))})),h="M".concat(u[0].toString()," Q").concat(u[1].toString()," ").concat(u[2].toString()),f="path".concat(u.toString()),d=A.apply(void 0,Object(r.a)(s))/10;return Object(i.a)(Object(i.a)({},t),{},{path:u,key:f,d:h,time:d})}))},getPath:function(e,t){return[e,(0,this.getControlPoint)(e,t),t]},getControlPoint:function(e,t){var n=Object(s.a)(e,2),r=n[0],i=n[1],a=Object(s.a)(t,2),o=a[0],c=a[1],l=this.getKLinePointByx,u=this.mergedConfig,h=u.curvature,f=u.k,d=(r+o)/2,p=(i+c)/2,g=b([r,i],[o,c])/h,m=g/2,v=d,y=p;do{y=l(f,[d,p],v+=m)[1]}while(b([d,p],[v,y])<g);return[v,y]},getKLinePointByx:function(e,t,n){var r=Object(s.a)(t,2),i=r[0];return[n,r[1]-e*i+e*n]},calcLineLengths:function(){var e=this;return Object(St.a)(Object(kt.a)().mark((function t(){var n,r,i;return Object(kt.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.$nextTick,r=e.flylines,i=e.$refs,t.next=3,n();case 3:e.flylineLengths=r.map((function(e){var t=e.key;return i[t][0].getTotalLength()}));case 4:case"end":return t.stop()}}),t)})))()},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,r=this.width,i=this.height;if(this.dev)(t/r).toFixed(2),(n/i).toFixed(2)}}}),Dt=Object(d.a)(Ot,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-flyline-chart-enhanced",style:"background-image: url(".concat(e.mergedConfig?e.mergedConfig.bgImgSrc:"",")"),on:{click:e.consoleClickPos}},[e.flylines.length?t("svg",{attrs:{width:e.width,height:e.height}},[t("defs",[t("radialGradient",{attrs:{id:e.flylineGradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t("radialGradient",{attrs:{id:e.haloGradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1)],1),e._l(e.flylinePoints,(function(n){return t("g",{key:n.key+Math.random()},[t("defs",[n.halo.show?t("circle",{attrs:{id:"halo".concat(e.unique).concat(n.key),cx:n.coordinate[0],cy:n.coordinate[1]}},[t("animate",{attrs:{attributeName:"r",values:"1;".concat(n.halo.radius),dur:"".concat(n.halo.time,"s"),repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:"".concat(n.halo.time,"s"),repeatCount:"indefinite"}})]):e._e()]),t("mask",{attrs:{id:"mask".concat(e.unique).concat(n.key)}},[n.halo.show?t("use",{attrs:{"xlink:href":"#halo".concat(e.unique).concat(n.key),fill:"url(#".concat(e.haloGradientId,")")}}):e._e()]),n.halo.show?t("use",{attrs:{"xlink:href":"#halo".concat(e.unique).concat(n.key),fill:n.halo.color,mask:"url(#mask".concat(e.unique).concat(n.key,")")}}):e._e(),n.icon.show?t("image",{attrs:{"xlink:href":n.icon.src,width:n.icon.width,height:n.icon.height,x:n.icon.x,y:n.icon.y}}):e._e(),n.text.show?t("text",{style:"fontSize:".concat(n.text.fontSize,"px;color:").concat(n.text.color),attrs:{fill:n.text.color,x:n.text.x,y:n.text.y}},[e._v(" "+e._s(n.name)+" ")]):e._e()])})),e._l(e.flylines,(function(n,r){return t("g",{key:n.key+Math.random()},[t("defs",[t("path",{ref:n.key,refInFor:!0,attrs:{id:n.key,d:n.d,fill:"transparent"}})]),t("use",{attrs:{"xlink:href":"#".concat(n.key),"stroke-width":n.width,stroke:n.orbitColor}}),t("mask",{attrs:{id:"mask".concat(e.unique).concat(n.key)}},[t("circle",{attrs:{cx:"0",cy:"0",r:n.radius,fill:"url(#".concat(e.flylineGradientId,")")}},[t("animateMotion",{attrs:{dur:n.time,path:n.d,rotate:"auto",repeatCount:"indefinite"}})],1)]),e.flylineLengths[r]?t("use",{attrs:{"xlink:href":"#".concat(n.key),"stroke-width":n.width,stroke:n.color,mask:"url(#mask".concat(e.unique).concat(n.key,")")}},[t("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, ".concat(e.flylineLengths[r]),to:"".concat(e.flylineLengths[r],", 0"),dur:n.time,repeatCount:"indefinite"}})]):e._e()])}))],2):e._e()])}),[],!1,null,null,null)
/* harmony default export */.exports,Pt=function(e){e.component(Dt.name,Dt)},Lt=(n("7cc8"),{name:"DvFullScreenContainer",mixins:[x],data:function(){return{ref:"full-screen-container",allWidth:0,scale:0,datavRoot:"",ready:!1}},methods:{afterAutoResizeMixinInit:function(){var e=this.initConfig,t=this.setAppScale;e(),t(),this.ready=!0},initConfig:function(){var e=this.dom,t=screen,n=t.width,r=t.height;this.allWidth=n,e.style.width="".concat(n,"px"),e.style.height="".concat(r,"px")},setAppScale:function(){var e=this.allWidth,t=this.dom,n=document.body.clientWidth;t.style.transform="scale(".concat(n/e,")")},onResize:function(){(0,this.setAppScale)()}}}),Qt=Object(d.a)(Lt,(function(){var e=this;return(0,e._self._c)("div",{ref:e.ref,attrs:{id:"dv-full-screen-container"}},[e.ready?[e._t("default")]:e._e()],2)}),[],!1,null,null,null)
/* harmony default export */.exports,Rt=function(e){e.component(Qt.name,Qt)},jt=(n("84cd"),{name:"DvLoading"}),Nt=Object(d.a)(jt,(function(){var e=this._self._c;return e("div",{staticClass:"dv-loading"},[e("svg",{attrs:{width:"50px",height:"50px"}},[e("circle",{attrs:{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"}})],1),e("circle",{attrs:{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),e("animate",{attrs:{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"}})],1)]),e("div",{staticClass:"loading-tip"},[this._t("default")],2)])}),[],!1,null,null,null)
/* harmony default export */.exports,Ft=function(e){e.component(Nt.name,Nt)},zt=(n("a157"),n("ac1f"),n("5319"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var e=w();return{gradientId1:"percent-pond-gradientId1-".concat(e),gradientId2:"percent-pond-gradientId2-".concat(e),width:0,height:0,defaultConfig:{
/**
         * @description Value
         * @type {Number}
         * @default value = 0
         */
value:0,
/**
         * @description Colors (hex|rgb|rgba|color keywords)
         * @type {Array<String>}
         * @default colors = ['#00BAFF', '#3DE7C9']
         * @example colors = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
         */
colors:["#3DE7C9","#00BAFF"],
/**
         * @description Border width
         * @type {Number}
         * @default borderWidth = 3
         */
borderWidth:3,
/**
         * @description Gap between border and pond
         * @type {Number}
         * @default borderGap = 3
         */
borderGap:3,
/**
         * @description Line dash
         * @type {Array<Number>}
         * @default lineDash = [5, 1]
         */
lineDash:[5,1],
/**
         * @description Text color
         * @type {String}
         * @default textColor = '#fff'
         */
textColor:"#fff",
/**
         * @description Border radius
         * @type {Number}
         * @default borderRadius = 5
         */
borderRadius:5,
/**
         * @description Local Gradient
         * @type {Boolean}
         * @default localGradient = false
         * @example localGradient = false | true
         */
localGradient:!1,
/**
         * @description Formatter
         * @type {String}
         * @default formatter = '{value}%'
         */
formatter:"{value}%"},mergedConfig:null}},computed:{rectWidth:function(){var e=this.mergedConfig,t=this.width;return e?t-e.borderWidth:0},rectHeight:function(){var e=this.mergedConfig,t=this.height;return e?t-e.borderWidth:0},points:function(){var e=this.mergedConfig,t=this.width,n=this.height/2;if(!e)return"0, ".concat(n," 0, ").concat(n);var r=e.borderWidth,i=e.borderGap,a=(t-2*(r+i))/100*e.value;return"\n        ".concat(r+i,", ").concat(n,"\n        ").concat(r+i+a,", ").concat(n+.001,"\n      ")},polylineWidth:function(){var e=this.mergedConfig,t=this.height;return e?t-2*(e.borderWidth+e.borderGap):0},linearGradient:function(){var e=this.mergedConfig;if(!e)return[];var t=e.colors,n=100/(t.length-1);return t.map((function(e,t){return[n*t,e]}))},polylineGradient:function(){var e=this.gradientId1,t=this.gradientId2,n=this.mergedConfig;return n&&n.localGradient?e:t},gradient2XPos:function(){var e=this.mergedConfig;if(!e)return"100%";var t=e.value;return"".concat(200-t,"%")},details:function(){var e=this.mergedConfig;if(!e)return"";var t=e.value;return e.formatter.replace("{value}",t)}},watch:{config:function(){(0,this.mergeConfig)()}},methods:{init:function(){var e=this;return Object(St.a)(Object(kt.a)().mark((function t(){var n,r,i;return Object(kt.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.initWH,r=e.config,i=e.mergeConfig,t.next=3,n();case 3:if(r){t.next=5;break}return t.abrupt("return");case 5:i();case 6:case"end":return t.stop()}}),t)})))()},initWH:function(){var e=this;return Object(St.a)(Object(kt.a)().mark((function t(){var n,r,i,a,o;return Object(kt.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.$nextTick,r=e.$refs,t.next=3,n();case 3:i=r["percent-pond"],a=i.clientWidth,o=i.clientHeight,e.width=a,e.height=o;case 6:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||{})}},mounted:function(){(0,this.init)()}}),Ht=Object(d.a)(zt,(function(){var e=this,t=e._self._c;return t("div",{ref:"percent-pond",staticClass:"dv-percent-pond"},[t("svg",[t("defs",[t("linearGradient",{attrs:{id:e.gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},e._l(e.linearGradient,(function(e){return t("stop",{key:e[0],attrs:{offset:"".concat(e[0],"%"),"stop-color":e[1]}})})),1),t("linearGradient",{attrs:{id:e.gradientId2,x1:"0%",y1:"0%",x2:e.gradient2XPos,y2:"0%"}},e._l(e.linearGradient,(function(e){return t("stop",{key:e[0],attrs:{offset:"".concat(e[0],"%"),"stop-color":e[1]}})})),1)],1),t("rect",{attrs:{x:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",y:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",rx:e.mergedConfig?e.mergedConfig.borderRadius:"0",ry:e.mergedConfig?e.mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":e.mergedConfig?e.mergedConfig.borderWidth:"0",stroke:"url(#".concat(e.gradientId1,")"),width:e.rectWidth>0?e.rectWidth:0,height:e.rectHeight>0?e.rectHeight:0}}),t("polyline",{attrs:{"stroke-width":e.polylineWidth,"stroke-dasharray":e.mergedConfig?e.mergedConfig.lineDash.join(","):"0",stroke:"url(#".concat(e.polylineGradient,")"),points:e.points}}),t("text",{attrs:{stroke:e.mergedConfig?e.mergedConfig.textColor:"#fff",fill:e.mergedConfig?e.mergedConfig.textColor:"#fff",x:e.width/2,y:e.height/2}},[e._v(" "+e._s(e.details)+" ")])])])}),[],!1,null,null,null)
/* harmony default export */.exports,Ut=function(e){e.component(Ht.name,Ht)},Gt=(n("037e"),n("14d9"),n("fb6a"),n("a434"),{name:"DvScrollBoard",mixins:[x],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-board",defaultConfig:{
/**
         * @description Board header
         * @type {Array<String>}
         * @default header = []
         * @example header = ['column1', 'column2', 'column3']
         */
header:[],
/**
         * @description Board data
         * @type {Array<Array>}
         * @default data = []
         */
data:[],
/**
         * @description Row num
         * @type {Number}
         * @default rowNum = 5
         */
rowNum:5,
/**
         * @description Header background color
         * @type {String}
         * @default headerBGC = '#00BAFF'
         */
headerBGC:"#00BAFF",
/**
         * @description Odd row background color
         * @type {String}
         * @default oddRowBGC = '#003B51'
         */
oddRowBGC:"#003B51",
/**
         * @description Even row background color
         * @type {String}
         * @default evenRowBGC = '#003B51'
         */
evenRowBGC:"#0A2732",
/**
         * @description Scroll wait time
         * @type {Number}
         * @default waitTime = 2000
         */
waitTime:2e3,
/**
         * @description Header height
         * @type {Number}
         * @default headerHeight = 35
         */
headerHeight:35,
/**
         * @description Column width
         * @type {Array<Number>}
         * @default columnWidth = []
         */
columnWidth:[],
/**
         * @description Column align
         * @type {Array<String>}
         * @default align = []
         * @example align = ['left', 'center', 'right']
         */
align:[],
/**
         * @description Show index
         * @type {Boolean}
         * @default index = false
         */
index:!1,
/**
         * @description index Header
         * @type {String}
         * @default indexHeader = '#'
         */
indexHeader:"#",
/**
         * @description Carousel type
         * @type {String}
         * @default carousel = 'single'
         * @example carousel = 'single' | 'page'
         */
carousel:"single",
/**
         * @description Pause scroll when mouse hovered
         * @type {Boolean}
         * @default hoverPause = true
         * @example hoverPause = true | false
         */
hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),this.animationIndex=0,t()}},methods:{handleHover:function(e,t,n,r,i){var a=this.mergedConfig,o=this.emitEvent,s=this.stopAnimation,c=this.animation;e&&o("mouseover",t,n,r,i),a.hoverPause&&(e?s():c(!0))},afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){var e=this.mergedConfig,t=this.calcWidths,n=this.calcHeights;e&&(t(),n())},calcData:function(){var e=this.mergeConfig,t=this.calcHeaderData,n=this.calcRowsData;e(),t(),n();var r=this.calcWidths,i=this.calcHeights,a=this.calcAligns;r(),i(),a(),(0,this.animation)(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||{})},calcHeaderData:function(){var e=this.mergedConfig,t=e.header,n=e.index,i=e.indexHeader;t.length?(t=Object(r.a)(t),n&&t.unshift(i),this.header=t):this.header=[]},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.index,a=e.headerBGC,o=e.rowNum;n&&(t=t.map((function(e,t){e=Object(r.a)(e);var n='<span class="index" style="background-color: '.concat(a,';">').concat(t+1,"</span>");return e.unshift(n),e})));var s=(t=t.map((function(e,t){return{ceils:e,rowIndex:t}}))).length;s>o&&s<2*o&&(t=[].concat(Object(r.a)(t),Object(r.a)(t))),t=t.map((function(e,t){return Object(i.a)(Object(i.a)({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcWidths:function(){var e=this.width,t=this.mergedConfig,n=this.rowsData,r=t.columnWidth,i=t.header,a=r.reduce((function(e,t){return e+t}),0),o=0;n[0]?o=n[0].ceils.length:i.length&&(o=i.length);var s=(e-a)/(o-r.length),c=new Array(o).fill(s);this.widths=Object(u.deepMerge)(c,r)},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,r=this.header,i=n.headerHeight,a=n.rowNum,o=n.data,s=t;r.length&&(s-=i);var c=s/a;this.avgHeight=c,e||(this.heights=new Array(o.length).fill(c))},calcAligns:function(){var e=this.header,t=this.mergedConfig,n=e.length,r=new Array(n).fill("left"),i=t.align;this.aligns=Object(u.deepMerge)(r,i)},animation:function(){var e=arguments,t=this;return Object(St.a)(Object(kt.a)().mark((function n(){var i,a,o,s,c,l,u,h,f,d,p,g,m,v,y,A,b,w;return Object(kt.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.length>0&&void 0!==e[0]&&e[0],o=t.needCalc,s=t.calcHeights,c=t.calcRowsData,o&&(c(),s(),t.needCalc=!1),l=t.avgHeight,u=t.animationIndex,h=t.mergedConfig,f=t.rowsData,d=t.animation,p=t.updater,g=h.waitTime,m=h.carousel,v=h.rowNum,y=f.length,!(v>=y)){n.next=8;break}return n.abrupt("return");case 8:if(!a){n.next=13;break}return n.next=11,new Promise((function(e){return setTimeout(e,g)}));case 11:if(p===t.updater){n.next=13;break}return n.abrupt("return");case 13:return A="single"===m?1:v,(b=f.slice(u)).push.apply(b,Object(r.a)(f.slice(0,u))),t.rows=b.slice(0,"page"===m?2*v:v+1),t.heights=new Array(y).fill(l),n.next=20,new Promise((function(e){return setTimeout(e,300)}));case 20:if(p===t.updater){n.next=22;break}return n.abrupt("return");case 22:(i=t.heights).splice.apply(i,[0,A].concat(Object(r.a)(new Array(A).fill(0)))),(w=(u+=A)-y)>=0&&(u=w),t.animationIndex=u,t.animationHandler=setTimeout(d,g-300);case 28:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)},emitEvent:function(e,t,n,r,i){var a=r.ceils,o=r.rowIndex;this.$emit(e,{row:a,ceil:i,rowIndex:o,columnIndex:n})},updateRows:function(e,t){var n=this.mergedConfig,a=this.animationHandler,o=this.animation;this.mergedConfig=Object(i.a)(Object(i.a)({},n),{},{data:Object(r.a)(e)}),this.needCalc=!0,"number"==typeof t&&(this.animationIndex=t),a||o(!0)}},destroyed:function(){(0,this.stopAnimation)()}}),Vt=Gt,Wt=Object(d.a)(Vt,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-scroll-board"},[e.header.length&&e.mergedConfig?t("div",{staticClass:"header",style:"background-color: ".concat(e.mergedConfig.headerBGC,";")},e._l(e.header,(function(n,r){return t("div",{key:"".concat(n).concat(r),staticClass:"header-item",style:"\n        height: ".concat(e.mergedConfig.headerHeight,"px;\n        line-height: ").concat(e.mergedConfig.headerHeight,"px;\n        width: ").concat(e.widths[r],"px;\n      "),attrs:{align:e.aligns[r]},domProps:{innerHTML:e._s(n)}})})),0):e._e(),e.mergedConfig?t("div",{staticClass:"rows",style:"height: ".concat(e.height-(e.header.length?e.mergedConfig.headerHeight:0),"px;")},e._l(e.rows,(function(n,r){return t("div",{key:"".concat(n.toString()).concat(n.scroll),staticClass:"row-item",style:"\n        height: ".concat(e.heights[r],"px;\n        line-height: ").concat(e.heights[r],"px;\n        background-color: ").concat(e.mergedConfig[n.rowIndex%2==0?"evenRowBGC":"oddRowBGC"],";\n      ")},e._l(n.ceils,(function(i,a){return t("div",{key:"".concat(i).concat(r).concat(a),staticClass:"ceil",style:"width: ".concat(e.widths[a],"px;"),attrs:{align:e.aligns[a]},domProps:{innerHTML:e._s(i)},on:{click:function(t){return e.emitEvent("click",r,a,n,i)},mouseenter:function(t){return e.handleHover(!0,r,a,n,i)},mouseleave:function(t){return e.handleHover(!1)}}})})),0)})),0):e._e()])}),[],!1,null,null,null)
/* harmony default export */.exports,qt=function(e){e.component(Wt.name,Wt)},Yt=(n("c280"),{name:"DvScrollRankingBoard",mixins:[x],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-ranking-board",defaultConfig:{
/**
         * @description Board data
         * @type {Array<Object>}
         * @default data = []
         */
data:[],
/**
         * @description Row num
         * @type {Number}
         * @default rowNum = 5
         */
rowNum:5,
/**
         * @description Scroll wait time
         * @type {Number}
         * @default waitTime = 2000
         */
waitTime:2e3,
/**
         * @description Carousel type
         * @type {String}
         * @default carousel = 'single'
         * @example carousel = 'single' | 'page'
         */
carousel:"single",
/**
         * @description Value unit
         * @type {String}
         * @default unit = ''
         * @example unit = 'ton'
         */
unit:"",
/**
         * @description Auto sort by value
         * @type {Boolean}
         * @default sort = true
         */
sort:!0,
/**
         * @description Value formatter
         * @type {Function}
         * @default valueFormatter = null
         */
valueFormatter:null},mergedConfig:null,rowsData:[],rows:[],heights:[],animationIndex:0,animationHandler:"",updater:0}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),t()}},methods:{afterAutoResizeMixinInit:function(){(0,this.calcData)()},onResize:function(){var e=this.mergedConfig,t=this.calcHeights;e&&t(!0)},calcData:function(){var e=this.mergeConfig,t=this.calcRowsData;e(),t(),(0,this.calcHeights)(),(0,this.animation)(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e||{})},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.rowNum;e.sort&&t.sort((function(e,t){var n=e.value,r=t.value;return n>r?-1:n<r?1:n===r?0:void 0}));var a=t.map((function(e){return e.value})),o=Math.min.apply(Math,Object(r.a)(a))||0,s=Math.abs(o),c=Math.max.apply(Math,Object(r.a)(a))||0,l=(Math.abs(c),c+s),u=(t=t.map((function(e,t){return Object(i.a)(Object(i.a)({},e),{},{ranking:t+1,percent:(e.value+s)/l*100})}))).length;u>n&&u<2*n&&(t=[].concat(Object(r.a)(t),Object(r.a)(t))),t=t.map((function(e,t){return Object(i.a)(Object(i.a)({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,r=n.rowNum,i=n.data,a=t/r;this.avgHeight=a,e||(this.heights=new Array(i.length).fill(a))},animation:function(){var e=arguments,t=this;return Object(St.a)(Object(kt.a)().mark((function n(){var i,a,o,s,c,l,u,h,f,d,p,g,m,v,y;return Object(kt.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.length>0&&void 0!==e[0]&&e[0],o=t.avgHeight,s=t.animationIndex,c=t.mergedConfig,l=t.rowsData,u=t.animation,h=t.updater,f=c.waitTime,d=c.carousel,p=c.rowNum,g=l.length,!(p>=g)){n.next=6;break}return n.abrupt("return");case 6:if(!a){n.next=11;break}return n.next=9,new Promise((function(e){return setTimeout(e,f)}));case 9:if(h===t.updater){n.next=11;break}return n.abrupt("return");case 11:return m="single"===d?1:p,(v=l.slice(s)).push.apply(v,Object(r.a)(l.slice(0,s))),t.rows=v.slice(0,p+1),t.heights=new Array(g).fill(o),n.next=18,new Promise((function(e){return setTimeout(e,300)}));case 18:if(h===t.updater){n.next=20;break}return n.abrupt("return");case 20:(i=t.heights).splice.apply(i,[0,m].concat(Object(r.a)(new Array(m).fill(0)))),(y=(s+=m)-g)>=0&&(s=y),t.animationIndex=s,t.animationHandler=setTimeout(u,f-300);case 26:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)}},destroyed:function(){(0,this.stopAnimation)()}}),Kt=Yt,$t=Object(d.a)(Kt,(function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-scroll-ranking-board"},e._l(e.rows,(function(n,r){return t("div",{key:n.toString()+n.scroll,staticClass:"row-item",style:"height: ".concat(e.heights[r],"px;")},[t("div",{staticClass:"ranking-info"},[t("div",{staticClass:"rank"},[e._v("No."+e._s(n.ranking))]),t("div",{staticClass:"info-name",domProps:{innerHTML:e._s(n.name)}}),t("div",{staticClass:"ranking-value"},[e._v(e._s(e.mergedConfig.valueFormatter?e.mergedConfig.valueFormatter(n):n.value+e.mergedConfig.unit))])]),t("div",{staticClass:"ranking-column"},[t("div",{staticClass:"inside-column",style:"width: ".concat(n.percent,"%;")},[t("div",{staticClass:"shine"})])])])})),0)}),[],!1,null,null,null)
/* harmony default export */.exports,Jt=function(e){e.component($t.name,$t)};
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@jiaminghi/data-view/lib/components/borderBox1/src/main.vue?vue&type=script&lang=js
/* harmony default export */n("fa10"),n("d9e2");
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@jiaminghi/data-view/lib/components/waterLevelPond/src/main.vue?vue&type=script&lang=js
/* harmony default export */var Xt={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var e=w();return{gradientId:"water-level-pond-".concat(e),defaultConfig:{
/**
         * @description Data
         * @type {Array<Number>}
         * @default data = []
         * @example data = [60, 40]
         */
data:[],
/**
         * @description Shape of wanter level pond
         * @type {String}
         * @default shape = 'rect'
         * @example shape = 'rect' | 'roundRect' | 'round'
         */
shape:"rect",
/**
         * @description Water wave number
         * @type {Number}
         * @default waveNum = 3
         */
waveNum:3,
/**
         * @description Water wave height (px)
         * @type {Number}
         * @default waveHeight = 40
         */
waveHeight:40,
/**
         * @description Wave opacity
         * @type {Number}
         * @default waveOpacity = 0.4
         */
waveOpacity:.4,
/**
         * @description Colors (hex|rgb|rgba|color keywords)
         * @type {Array<String>}
         * @default colors = ['#00BAFF', '#3DE7C9']
         * @example colors = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
         */
colors:["#3DE7C9","#00BAFF"],
/**
         * @description Formatter
         * @type {String}
         * @default formatter = '{value}%'
         */
formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}},computed:{radius:function(){var e=this.mergedConfig.shape;return"round"===e?"50%":"rect"===e?"0":"roundRect"===e?"10px":"0"},shape:function(){var e=this.mergedConfig.shape;return e||"rect"}},watch:{config:function(){var e=this.calcData;this.renderer.delAllGraph(),this.waves=[],setTimeout(e,0)}},methods:{init:function(){var e=this.initRender,t=this.config,n=this.calcData;e(),t&&n()},initRender:function(){var e=this.$refs;this.renderer=new l.a(e["water-pond-level"])},calcData:function(){var e=this.mergeConfig,t=this.calcSvgBorderGradient,n=this.calcDetails;e(),t(),n();var r=this.addWave,i=this.animationWave;r(),i()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(u.deepMerge)(Object(h.deepClone)(t,!0),e)},calcSvgBorderGradient:function(){var e=this.mergedConfig.colors,t=100/(e.length-1);this.svgBorderGradient=e.map((function(e,n){return[t*n,e]}))},calcDetails:function(){var e=this.mergedConfig,t=e.data,n=e.formatter;if(t.length){var i=Math.max.apply(Math,Object(r.a)(t));this.details=n.replace("{value}",i)}else this.details=""},addWave:function(){var e=this.renderer,t=this.getWaveShapes,n=this.getWaveStyle,r=this.drawed,i=t(),a=n();this.waves=i.map((function(t){return e.add({name:"smoothline",animationFrame:300,shape:t,style:a,drawed:r})}))},getWaveShapes:function(){var e=this.mergedConfig,t=this.renderer,n=this.mergeOffset,r=e.waveNum,i=e.waveHeight,a=e.data,o=Object(s.a)(t.area,2),c=o[0],l=o[1],u=4*r+4,h=c/r/2;return a.map((function(e){var t=new Array(u).fill(0).map((function(t,n){var r=(1-e/100)*l;return[c-h*n,n%2==0?r:r-i]}));return{points:t=t.map((function(e){return n(e,[2*h,0])}))}}))},mergeOffset:function(e,t){var n=Object(s.a)(e,2),r=n[0],i=n[1],a=Object(s.a)(t,2);return[r+a[0],i+a[1]]},getWaveStyle:function(){var e=this.renderer,t=this.mergedConfig,n=e.area[1];return{gradientColor:t.colors,gradientType:"linear",gradientParams:[0,0,0,n],gradientWith:"fill",opacity:t.waveOpacity,translate:[0,0]}},drawed:function(e,t){var n=e.shape.points,r=t.ctx,i=t.area,a=n[0],o=n.slice(-1)[0],s=i[1];r.lineTo(o[0],s),r.lineTo(a[0],s),r.closePath(),r.fill()},animationWave:function(){var e=arguments,t=this;return Object(St.a)(Object(kt.a)().mark((function n(){var r,i,a,o;return Object(kt.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:1,i=t.waves,a=t.renderer,!t.animation){n.next=4;break}return n.abrupt("return");case 4:return t.animation=!0,o=a.area[0],i.forEach((function(e){e.attr("style",{translate:[0,0]}),e.animation("style",{translate:[o,0]},!0)})),n.next=9,a.launchAnimation();case 9:if(t.animation=!1,a.graphs.length){n.next=12;break}return n.abrupt("return");case 12:t.animationWave(r+1);case 13:case"end":return n.stop()}}),n)})))()}},mounted:function(){(0,this.init)()},beforeDestroy:function(){this.renderer.delAllGraph(),this.waves=[]}},Zt=Xt,en=Object(d.a)(Zt,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-water-pond-level"},[e.renderer?t("svg",[t("defs",[t("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},e._l(e.svgBorderGradient,(function(e){return t("stop",{key:e[0],attrs:{offset:e[0],"stop-color":e[1]}})})),1)],1),e.renderer?t("text",{attrs:{stroke:"url(#".concat(e.gradientId,")"),fill:"url(#".concat(e.gradientId,")"),x:e.renderer.area[0]/2+8,y:e.renderer.area[1]/2+8}},[e._v(" "+e._s(e.details)+" ")]):e._e(),e.shape&&"round"!==e.shape?t("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===e.shape?10:0,ry:"roundRect"===e.shape?10:0,width:e.renderer.area[0]+12,height:e.renderer.area[1]+12,stroke:"url(#".concat(e.gradientId,")")}}):t("ellipse",{attrs:{cx:e.renderer.area[0]/2+8,cy:e.renderer.area[1]/2+8,rx:e.renderer.area[0]/2+5,ry:e.renderer.area[1]/2+5,stroke:"url(#".concat(e.gradientId,")")}})]):e._e(),t("canvas",{ref:"water-pond-level",style:"border-radius: ".concat(e.radius,";")})])}),[],!1,null,null,null)
/* harmony default export */.exports,tn=function(e){e.component(en.name,en)};
// CONCATENATED MODULE: ./node_modules/@jiaminghi/data-view/lib/components/waterLevelPond/src/main.vue?vue&type=script&lang=js
/* harmony default export */t.a=function(e){e.use(Rt),e.use(Ft),
// border box
e.use(k),e.use(Z),e.use(ie),e.use(le),e.use(pe),e.use(Ae),e.use(_e),e.use(Be),e.use(Pe),e.use(O),e.use(j),e.use(U),e.use(Y),
// decoration
e.use(We),e.use(it),e.use(st),e.use(ut),e.use(dt),e.use(mt),e.use(At),e.use(xt),e.use(It),e.use(Ke),e.use(Xe),e.use(tt),
// charts
e.use(Fe),e.use(y),e.use(Re),e.use(tn),e.use(Ut),e.use(Tt),e.use(Pt),e.use(Ue),e.use(Et),e.use(qt),e.use(Jt)}},
/***/"6c57":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9");
// `globalThis` object
// https://tc39.es/ecma262/#sec-globalthis
r({global:!0,forced:i.globalThis!==i},{globalThis:i})},
/***/"6ca1":
/***/function(e,t,n){
// to indexed object, toObject with fallback for non-array-like ES3 strings
var r=n("9fbb"),i=n("c901");e.exports=function(e){return r(i(e))}},
/***/"6cb7":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("7fae"),i=n("6d8b"),a=n("4319"),o=n("8918"),s=n("625e"),c=n("e0d3"),l=n("f934"),u=Object(c.o)(),h=/** @class */function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=o.c("ec_cpt_model"),i}var n;return Object(r.a)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=l.d(this),r=n?l.f(e):{},a=t.getTheme();i.merge(e,a.get(this.mainType)),i.merge(e,this.getDefaultOption()),n&&l.h(e,r,n)},t.prototype.mergeOption=function(e,t){i.merge(this.option,e,!0);var n=l.d(this);n&&l.h(this.option,e,n)},
/**
   * Called immediately after `init` or `mergeOption` of this instance called.
   */
t.prototype.optionUpdated=function(e,t){},
/**
   * [How to declare defaultOption]:
   *
   * (A) If using class declaration in typescript (since echarts 5):
   * ```ts
   * import {ComponentOption} from '../model/option.js';
   * export interface XxxOption extends ComponentOption {
   *     aaa: number
   * }
   * export class XxxModel extends Component {
   *     static type = 'xxx';
   *     static defaultOption: XxxOption = {
   *         aaa: 123
   *     }
   * }
   * Component.registerClass(XxxModel);
   * ```
   * ```ts
   * import {inheritDefaultOption} from '../util/component.js';
   * import {XxxModel, XxxOption} from './XxxModel.js';
   * export interface XxxSubOption extends XxxOption {
   *     bbb: number
   * }
   * class XxxSubModel extends XxxModel {
   *     static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, {
   *         bbb: 456
   *     })
   *     fn() {
   *         let opt = this.getDefaultOption();
   *         // opt is {aaa: 123, bbb: 456}
   *     }
   * }
   * ```
   *
   * (B) If using class extend (previous approach in echarts 3 & 4):
   * ```js
   * let XxxComponent = Component.extend({
   *     defaultOption: {
   *         xx: 123
   *     }
   * })
   * ```
   * ```js
   * let XxxSubComponent = XxxComponent.extend({
   *     defaultOption: {
   *         yy: 456
   *     },
   *     fn: function () {
   *         let opt = this.getDefaultOption();
   *         // opt is {xx: 123, yy: 456}
   *     }
   * })
   * ```
   */
t.prototype.getDefaultOption=function(){var e=this.constructor;
// If using class declaration, it is different to travel super class
// in legacy env and auto merge defaultOption. So if using class
// declaration, defaultOption should be merged manually.
if(!Object(s.d)(e))
// When using ts class, defaultOption must be declared as static.
return e.defaultOption;
// FIXME: remove this approach?
var t=u(this);if(!t.defaultOption){for(var n=[],r=e;r;){var a=r.prototype.defaultOption;a&&n.push(a),r=r.superClass}for(var o={},c=n.length-1;c>=0;c--)o=i.merge(o,n[c],!0);t.defaultOption=o}return t.defaultOption},
/**
   * Notice: always force to input param `useDefault` in case that forget to consider it.
   * The same behavior as `modelUtil.parseFinder`.
   *
   * @param useDefault In many cases like series refer axis and axis refer grid,
   *        If axis index / axis id not specified, use the first target as default.
   *        In other cases like dataZoom refer axis, if not specified, measn no refer.
   */
t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Object(c.v)(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){
// Consider itself having box layout configs.
var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},
/**
   * Get key for zlevel.
   * If developers don't configure zlevel. We will assign zlevel to series based on the key.
   * For example, lines with trail effect and progressive series will in an individual zlevel.
   */
t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(a.a);
/* harmony import */Object(s.e)(h,a.a),Object(s.c)(h),o.a(h),o.b(h,(function(e){var t=[];
// Hack dataset for convenience.
i.each(h.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),
// Ensure main type.
t=i.map(t,(function(e){return Object(s.f)(e).main})),"dataset"!==e&&i.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t}
/* harmony default export */)),t.a=h},
/***/"6cc5":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"6ccd":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"6d08":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){// Generated by CoffeeScript 1.12.2
(function(){var n,r,i,a,o,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,a=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),o=a-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(this);
//# sourceMappingURL=performance-now.js.map
/* WEBPACK VAR INJECTION */}).call(this,n("4362"))
/***/},
/***/"6d2f":
/***/function(e,t,n){
// check on default Array iterator
var r=n("8a0d"),i=n("cc15")("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},
/***/"6d61":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),a=n("e330"),o=n("94ca"),s=n("cb2d"),c=n("f183"),l=n("2266"),u=n("19aa"),h=n("1626"),f=n("7234"),d=n("861d"),p=n("d039"),g=n("1c7e"),m=n("d44e"),v=n("7156");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),A=-1!==e.indexOf("Weak"),b=y?"set":"add",w=i[e],x=w&&w.prototype,C=w,_={},I=function(e){var t=a(x[e]);s(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(A&&!d(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return A&&!d(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(A&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!h(w)||!(A||x.forEach&&!p((function(){(new w).entries().next()})))))
// create collection constructor
C=n.getConstructor(t,e,y,b),c.enable();else if(o(e,!0)){var E=new C,k=E[b](A?{}:-0,1)!==E,S=p((function(){E.has(1)})),B=g((function(e){new w(e)})),M=!A&&p((function(){for(
// V8 ~ Chromium 42- fails only with 5+ elements
var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)}));
// early implementations not supports chaining
B||((C=t((function(e,t){u(e,x);var n=v(new w,e,C);return f(t)||l(t,n[b],{that:n,AS_ENTRIES:y}),n}))).prototype=x,x.constructor=C),(S||M)&&(I("delete"),I("has"),y&&I("get")),(M||k)&&I(b),
// weak collections should not contains .clear method
A&&x.clear&&delete x.clear}return _[e]=C,r({global:!0,constructor:!0,forced:C!==w},_),m(C,e),A||n.setStrong(C,e,y),C}},
/***/"6d78":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function n(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=e.state.fullScreenRestore;t.style.width=n.width,t.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,(function(r,i,a){a==e.Init&&(a=!1),!a!=!i&&(i?t(r):n(r))}))}(n("56b3"));
/***/},
/***/"6d8b":
/***/function(e,t,n){"use strict";n.r(t),
/* harmony export (binding) */n.d(t,"guid",(function(){return m})),
/* harmony export (binding) */n.d(t,"logError",(function(){return v})),
/* harmony export (binding) */n.d(t,"clone",(function(){return y})),
/* harmony export (binding) */n.d(t,"merge",(function(){return A})),
/* harmony export (binding) */n.d(t,"mergeAll",(function(){return b})),
/* harmony export (binding) */n.d(t,"extend",(function(){return w})),
/* harmony export (binding) */n.d(t,"defaults",(function(){return x})),
/* harmony export (binding) */n.d(t,"createCanvas",(function(){return C})),
/* harmony export (binding) */n.d(t,"indexOf",(function(){return _})),
/* harmony export (binding) */n.d(t,"inherits",(function(){return I})),
/* harmony export (binding) */n.d(t,"mixin",(function(){return E})),
/* harmony export (binding) */n.d(t,"isArrayLike",(function(){return k})),
/* harmony export (binding) */n.d(t,"each",(function(){return S})),
/* harmony export (binding) */n.d(t,"map",(function(){return B})),
/* harmony export (binding) */n.d(t,"reduce",(function(){return M})),
/* harmony export (binding) */n.d(t,"filter",(function(){return T})),
/* harmony export (binding) */n.d(t,"find",(function(){return O})),
/* harmony export (binding) */n.d(t,"keys",(function(){return D})),
/* harmony export (binding) */n.d(t,"bind",(function(){return P})),
/* harmony export (binding) */n.d(t,"curry",(function(){return L})),
/* harmony export (binding) */n.d(t,"isArray",(function(){return Q})),
/* harmony export (binding) */n.d(t,"isFunction",(function(){return R})),
/* harmony export (binding) */n.d(t,"isString",(function(){return j})),
/* harmony export (binding) */n.d(t,"isStringSafe",(function(){return N})),
/* harmony export (binding) */n.d(t,"isNumber",(function(){return F})),
/* harmony export (binding) */n.d(t,"isObject",(function(){return z})),
/* harmony export (binding) */n.d(t,"isBuiltInObject",(function(){return H})),
/* harmony export (binding) */n.d(t,"isTypedArray",(function(){return U})),
/* harmony export (binding) */n.d(t,"isDom",(function(){return G})),
/* harmony export (binding) */n.d(t,"isGradientObject",(function(){return V})),
/* harmony export (binding) */n.d(t,"isImagePatternObject",(function(){return W})),
/* harmony export (binding) */n.d(t,"isRegExp",(function(){return q})),
/* harmony export (binding) */n.d(t,"eqNaN",(function(){return Y})),
/* harmony export (binding) */n.d(t,"retrieve",(function(){return K})),
/* harmony export (binding) */n.d(t,"retrieve2",(function(){return $})),
/* harmony export (binding) */n.d(t,"retrieve3",(function(){return J})),
/* harmony export (binding) */n.d(t,"slice",(function(){return X})),
/* harmony export (binding) */n.d(t,"normalizeCssArray",(function(){return Z})),
/* harmony export (binding) */n.d(t,"assert",(function(){return ee})),
/* harmony export (binding) */n.d(t,"trim",(function(){return te})),
/* harmony export (binding) */n.d(t,"setAsPrimitive",(function(){return re})),
/* harmony export (binding) */n.d(t,"isPrimitive",(function(){return ie})),
/* harmony export (binding) */n.d(t,"HashMap",(function(){return se})),
/* harmony export (binding) */n.d(t,"createHashMap",(function(){return ce})),
/* harmony export (binding) */n.d(t,"concatArray",(function(){return le})),
/* harmony export (binding) */n.d(t,"createObject",(function(){return ue})),
/* harmony export (binding) */n.d(t,"disableUserSelect",(function(){return he})),
/* harmony export (binding) */n.d(t,"hasOwn",(function(){return fe})),
/* harmony export (binding) */n.d(t,"noop",(function(){return de})),
/* harmony export (binding) */n.d(t,"RADIAN_TO_DEGREE",(function(){return pe}));
/* harmony import */var r=n("726e"),i=M(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),a=M(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),o=Object.prototype.toString,s=Array.prototype,c=s.forEach,l=s.filter,u=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p="__proto__",g=2311;function m(){return g++}function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function y(e){if(null==e||"object"!=typeof e)return e;var t=e,n=o.call(e);if("[object Array]"===n){if(!ie(e)){t=[];for(var r=0,s=e.length;r<s;r++)t[r]=y(e[r])}}else if(a[n]){if(!ie(e)){var c=e.constructor;if(c.from)t=c.from(e);else{t=new c(e.length);for(r=0,s=e.length;r<s;r++)t[r]=e[r]}}}else if(!i[n]&&!ie(e)&&!G(e))for(var l in t={},e)e.hasOwnProperty(l)&&l!==p&&(t[l]=y(e[l]));return t}function A(e,t,n){if(!z(t)||!z(e))return n?y(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==p){var i=e[r],a=t[r];!z(a)||!z(i)||Q(a)||Q(i)||G(a)||G(i)||H(a)||H(i)||ie(a)||ie(i)?!n&&r in e||(e[r]=y(t[r])):A(i,a,n)}return e}function b(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=A(n,e[r],t);return n}function w(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==p&&(e[n]=t[n]);return e}function x(e,t,n){for(var r=D(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var C=r.d.createCanvas;function _(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function I(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function E(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else x(e,t,n)}function k(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function S(e,t,n){if(e&&t)if(e.forEach&&e.forEach===c)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function B(e,t,n){if(!e)return[];if(!t)return X(e);if(e.map&&e.map===h)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function M(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function T(e,t,n){if(!e)return[];if(!t)return X(e);if(e.filter&&e.filter===l)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function O(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function D(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var P=d&&R(d.bind)?d.call.bind(d.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(u.call(arguments)))}};function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(u.call(arguments)))}}function Q(e){return Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)}function R(e){return"function"==typeof e}function j(e){return"string"==typeof e}function N(e){return"[object String]"===o.call(e)}function F(e){return"number"==typeof e}function z(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function H(e){return!!i[o.call(e)]}function U(e){return!!a[o.call(e)]}function G(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function V(e){return null!=e.colorStops}function W(e){return null!=e.image}function q(e){return"[object RegExp]"===o.call(e)}function Y(e){return e!=e}function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function $(e,t){return null!=e?e:t}function J(e,t,n){return null!=e?e:null!=t?t:n}function X(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return u.apply(e,t)}function Z(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ee(e,t){if(!e)throw new Error(t)}function te(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ne="__ec_primitive__";function re(e){e[ne]=!0}function ie(e){return e[ne]}var ae=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return D(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),oe="function"==typeof Map;var se=function(){function e(t){var n=Q(t);this.data=oe?new Map:new ae;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&S(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,r){e.call(t,n,r)}))},e.prototype.keys=function(){var e=this.data.keys();return oe?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function ce(e){return new se(e)}function le(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function ue(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&w(n,t),n}function he(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function fe(e,t){return e.hasOwnProperty(t)}function de(){}var pe=180/Math.PI;
/***/},
/***/"6d93":
/***/function(e,t,n){"use strict";n.r(t),
/* WEBPACK VAR INJECTION */function(e){/* harmony export (binding) */n.d(t,"Headers",(function(){return u})),
/* harmony export (binding) */n.d(t,"Request",(function(){return v})),
/* harmony export (binding) */n.d(t,"Response",(function(){return A})),
/* harmony export (binding) */n.d(t,"DOMException",(function(){return w})),
/* harmony export (binding) */n.d(t,"fetch",(function(){return x}));
/* eslint-disable no-prototype-builtins */
var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
// eslint-disable-next-line no-undef
void 0!==e&&e||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}
// Build a destructive iterator for the value list
function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;
/*
      fetch-mock wraps the Response object in an ES6 Proxy to
      provide useful test harness features such as flush. However, on
      ES5 browsers without fetch or Proxy support pollyfills must be used;
      the proxy-pollyfill is unable to proxy an attribute unless it exists
      on the object before the Proxy is created. This change ensures
      Response.bodyUsed exists on the instance, while maintaining the
      semantic of setting Request.bodyUsed in the constructor before
      _initBody is called.
    */
// eslint-disable-next-line no-self-assign
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),
// IE 10-11 can't handle a DataView body.
this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(d);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,a=h(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}
// HTTP methods whose capitalization should be normalized
u.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=c(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l(e)},u.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},u.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,a=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),m.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
// Search for a '_' parameter in the query string
var o=/([?&])_=[^&]*/;if(o.test(this.url))
// If it already exists then set the value with the current time
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var b=[301,302,303,307,308];A.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})};var w=r.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function x(e,t){return new Promise((function(n,a){var o=new v(e,t);if(o.signal&&o.signal.aborted)return a(new w("Aborted","AbortError"));var l=new XMLHttpRequest;function h(){l.abort()}if(l.onload=function(){var e,t,r={statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new u,
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
// https://github.com/github/fetch/issues/748
// https://github.com/zloirock/core-js/issues/751
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){}}})),t)};
// This check if specifically for when a user fetches a file locally from the file system
// Only if the status is out of a normal range
0===o.url.indexOf("file://")&&(l.status<200||l.status>599)?r.status=200:r.status=l.status,r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var i="response"in l?l.response:l.responseText;setTimeout((function(){n(new A(i,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){a(new w("Aborted","AbortError"))}),0)},l.open(o.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?l.withCredentials=!0:"omit"===o.credentials&&(l.withCredentials=!1),"responseType"in l&&(i.blob?l.responseType="blob":i.arrayBuffer&&(l.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof u||r.Headers&&t.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){f.push(s(e)),l.setRequestHeader(e,c(t.headers[e]))})),o.headers.forEach((function(e,t){-1===f.indexOf(t)&&l.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",h),l.onreadystatechange=function(){
// DONE (success or failure)
4===l.readyState&&o.signal.removeEventListener("abort",h)}),l.send(void 0===o._bodyInit?null:o._bodyInit)}))}x.polyfill=!0,r.fetch||(r.fetch=x,r.Headers=u,r.Request=v,r.Response=A)
/* WEBPACK VAR INJECTION */}.call(this,n("c8ba"))
/***/},
/***/"6d9f":
/***/function(e,t,n){
// all enumerable object keys, includes symbols
var r=n("5a5d"),i=n("10dd"),a=n("e171");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),c=a.f,l=0;s.length>l;)c.call(e,o=s[l++])&&t.push(o);return t}},
/***/"6da8":
/***/function(e,t){e.exports=
/**
 * Converts an ASCII `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */
function(e){return e.split("")}},
/***/"6dd8":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){
/**
 * A collection of shims that provide minimal functionality of the ES6 collections.
 *
 * These implementations are not meant to be used outside of the ResizeObserver
 * modules as they cover only a limited range of use cases.
 */
/* eslint-disable require-jsdoc, valid-jsdoc */
var n=function(){if("undefined"!=typeof Map)return Map;
/**
     * Returns index in provided array that matches the specified key.
     *
     * @param {Array<Array>} arr
     * @param {*} key
     * @returns {number}
     */function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}/** @class */
return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{
/**
             * @returns {boolean}
             */
get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),
/**
         * @param {*} key
         * @returns {*}
         */
t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},
/**
         * @param {*} key
         * @param {*} value
         * @returns {void}
         */
t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},
/**
         * @param {*} key
         * @returns {void}
         */
t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},
/**
         * @param {*} key
         * @returns {void}
         */
t.prototype.has=function(t){return!!~e(this.__entries__,t)},
/**
         * @returns {void}
         */
t.prototype.clear=function(){this.__entries__.splice(0)},
/**
         * @param {Function} callback
         * @param {*} [ctx=null]
         * @returns {void}
         */
t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};
/**
 * Detects whether window and document objects are available in current environment.
 */
// Minimum delay before invoking the update of observers.
var o=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=/** @class */function(){
/**
     * Creates a new instance of ResizeObserverController.
     *
     * @private
     */
function e(){
/**
         * Indicates whether DOM listeners have been added.
         *
         * @private {boolean}
         */
this.connected_=!1,
/**
         * Tells that controller has subscribed for Mutation Events.
         *
         * @private {boolean}
         */
this.mutationEventsAdded_=!1,
/**
         * Keeps reference to the instance of MutationObserver.
         *
         * @private {MutationObserver}
         */
this.mutationsObserver_=null,
/**
         * A list of connected observers.
         *
         * @private {Array<ResizeObserverSPI>}
         */
this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=
/**
 * Creates a wrapper function which ensures that provided callback will be
 * invoked only once during the specified delay period.
 *
 * @param {Function} callback - Function to be invoked after the delay period.
 * @param {number} delay - Delay after which to invoke callback.
 * @returns {Function}
 */
function(e,t){var n=!1,r=!1,i=0;
/**
     * Invokes the original callback function and schedules new invocation if
     * the "proxy" was called during current request.
     *
     * @returns {void}
     */function o(){n&&(n=!1,e()),r&&c()}
/**
     * Callback invoked after the specified delay. It will further postpone
     * invocation of the original function delegating it to the
     * requestAnimationFrame.
     *
     * @returns {void}
     */function s(){a(o)}
/**
     * Schedules invocation of the original function.
     *
     * @returns {void}
     */function c(){var e=Date.now();if(n){
// Reject immediately following calls.
if(e-i<2)return;
// Schedule new call to be in invoked when the pending one is resolved.
// This is important for "transitions" which never actually start
// immediately so there is a chance that we might miss one if change
// happens amids the pending invocation.
r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}
/**
     * Adds observer to observers list.
     *
     * @param {ResizeObserverSPI} observer - Observer to be added.
     * @returns {void}
     */return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),
// Add listeners if they haven't been added yet.
this.connected_||this.connect_()},
/**
     * Removes observer from observers list.
     *
     * @param {ResizeObserverSPI} observer - Observer to be removed.
     * @returns {void}
     */
e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);
// Remove observer if it's present in registry.
~n&&t.splice(n,1),
// Remove listeners if controller has no connected observers.
!t.length&&this.connected_&&this.disconnect_()},
/**
     * Invokes the update of observers. It will continue running updates insofar
     * it detects changes.
     *
     * @returns {void}
     */
e.prototype.refresh=function(){
// Continue running updates if changes have been detected as there might
// be future ones caused by CSS transitions.
this.updateObservers_()&&this.refresh()},
/**
     * Updates every observer from observers list and notifies them of queued
     * entries.
     *
     * @private
     * @returns {boolean} Returns "true" if any observer has detected changes in
     *      dimensions of it's elements.
     */
e.prototype.updateObservers_=function(){
// Collect observers that have active observations.
var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));
// Deliver notifications in a separate cycle in order to avoid any
// collisions between observers, e.g. when multiple instances of
// ResizeObserver are tracking the same element and the callback of one
// of them changes content dimensions of the observed target. Sometimes
// this may result in notifications being blocked for the rest of observers.
return e.forEach((function(e){return e.broadcastActive()})),e.length>0},
/**
     * Initializes DOM listeners.
     *
     * @private
     * @returns {void}
     */
e.prototype.connect_=function(){
// Do nothing if running in a non-browser environment or if listeners
// have been already added.
r&&!this.connected_&&(
// Subscription to the "Transitionend" event is used as a workaround for
// delayed transitions. This way it's possible to capture at least the
// final state of an element.
document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},
/**
     * Removes DOM listeners.
     *
     * @private
     * @returns {void}
     */
e.prototype.disconnect_=function(){
// Do nothing if running in a non-browser environment or if listeners
// have been already removed.
r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},
/**
     * "Transitionend" event handler.
     *
     * @private
     * @param {TransitionEvent} event
     * @returns {void}
     */
e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;
// Detect whether transition may affect dimensions of an element.
o.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},
/**
     * Returns instance of the ResizeObserverController.
     *
     * @returns {ResizeObserverController}
     */
e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},
/**
     * Holds reference to the controller's instance.
     *
     * @private {ResizeObserverController}
     */
e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){
// Return the local global object if it's not possible extract one from
// provided element.
return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=v(0,0,0,0);
// A list of substrings of CSS properties used to find transition events that
// might affect dimensions of observed elements.
/**
 * Converts provided string to a number.
 *
 * @param {number|string} value
 * @returns {number}
 */
function f(e){return parseFloat(e)||0}
/**
 * Extracts borders size from provided styles.
 *
 * @param {CSSStyleDeclaration} styles
 * @param {...string} positions - Borders positions (top, right, ...)
 * @returns {number}
 */function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}
/**
 * Extracts paddings sizes from provided styles.
 *
 * @param {CSSStyleDeclaration} styles
 * @returns {Object} Paddings box.
 */
/**
 * Calculates content rectangle of provided HTMLElement.
 *
 * @param {HTMLElement} target - Element for which to calculate the content rectangle.
 * @returns {DOMRectInit}
 */
function p(e){
// Client width & height properties can't be
// used exclusively as they provide rounded values.
var t=e.clientWidth,n=e.clientHeight;
// By this condition we can catch all non-replaced inline, hidden and
// detached elements. Though elements with width & height properties less
// than 0.5 will be discarded as well.

// Without it we would need to implement separate methods for each of
// those cases and it's not possible to perform a precise and performance
// effective test for hidden elements. E.g. even jQuery's ':visible' filter
// gives wrong results for elements with width & height less than 0.5.
if(!t&&!n)return h;var r=u(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=f(a)}return t}
/**
 * Calculates content rectangle of provided SVG element.
 *
 * @param {SVGGraphicsElement} target - Element content rectangle of which needs
 *      to be calculated.
 * @returns {DOMRectInit}
 */(r),a=i.left+i.right,o=i.top+i.bottom,s=f(r.width),c=f(r.height);
// Following steps can't be applied to the document's root element as its
// client[Width/Height] properties represent viewport area of the window.
// Besides, it's as well not necessary as the <html> itself neither has
// rendered scroll bars nor it can be clipped.
if(
// Width & height include paddings and borders when the 'border-box' box
// model is applied (except for IE).
"border-box"===r.boxSizing&&(
// Following conditions are required to handle Internet Explorer which
// doesn't include paddings and borders to computed CSS dimensions.
// We can say that if CSS dimensions + paddings are equal to the "client"
// properties then it's either IE, and thus we don't need to subtract
// anything, or an element merely doesn't have paddings/borders styles.
Math.round(s+a)!==t&&(s-=d(r,"left","right")+a),Math.round(c+o)!==n&&(c-=d(r,"top","bottom")+o)),!
/**
 * Checks whether provided element is a document element (<html>).
 *
 * @param {Element} target - Element to be checked.
 * @returns {boolean}
 */
function(e){return e===u(e).document.documentElement}
/**
 * Calculates an appropriate content rectangle for provided html or svg element.
 *
 * @param {Element} target - Element content rectangle of which needs to be calculated.
 * @returns {DOMRectInit}
 */(e)){
// In some browsers (only in Firefox, actually) CSS width & height
// include scroll bars size which can be removed at this step as scroll
// bars are the only difference between rounded dimensions + paddings
// and "client" properties, though that is not always true in Chrome.
var l=Math.round(s+a)-t,p=Math.round(c+o)-n;
// Chrome has a rather weird rounding of "client" properties.
// E.g. for an element with content width of 314.2px it sometimes gives
// the client width of 315px and for the width of 314.7px it may give
// 314px. And it doesn't happen all the time. So just ignore this delta
// as a non-relevant.
1!==Math.abs(l)&&(s-=l),1!==Math.abs(p)&&(c-=p)}return v(i.left,i.top,s,c)}
/**
 * Checks whether provided element is an instance of the SVGGraphicsElement.
 *
 * @param {Element} target - Element to be checked.
 * @returns {boolean}
 */var g=
// Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
// interface.
"undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?g(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):p(e):h}
/**
 * Creates rectangle with an interface of the DOMRectReadOnly.
 * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
 *
 * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
 * @returns {DOMRectReadOnly}
 */
/**
 * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
 * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
 *
 * @param {number} x - X coordinate.
 * @param {number} y - Y coordinate.
 * @param {number} width - Rectangle's width.
 * @param {number} height - Rectangle's height.
 * @returns {DOMRectInit}
 */
function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}
/**
 * Class that is responsible for computations of the content rectangle of
 * provided DOM element and for keeping track of it's changes.
 */var y=/** @class */function(){
/**
     * Creates an instance of ResizeObservation.
     *
     * @param {Element} target - Element to be observed.
     */
function e(e){
/**
         * Broadcasted width of content rectangle.
         *
         * @type {number}
         */
this.broadcastWidth=0,
/**
         * Broadcasted height of content rectangle.
         *
         * @type {number}
         */
this.broadcastHeight=0,
/**
         * Reference to the last observed content rectangle.
         *
         * @private {DOMRectInit}
         */
this.contentRect_=v(0,0,0,0),this.target=e}
/**
     * Updates content rectangle and tells whether it's width or height properties
     * have changed since the last broadcast.
     *
     * @returns {boolean}
     */return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},
/**
     * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
     * from the corresponding properties of the last observed content rectangle.
     *
     * @returns {DOMRectInit} Last observed content rectangle.
     */
e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),A=
/**
     * Creates an instance of ResizeObserverEntry.
     *
     * @param {Element} target - Element that is being observed.
     * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
     */
function(e,t){var n,r,i,a,o,s,c,u=(r=(n=t).x,i=n.y,a=n.width,o=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),
// Rectangle's properties are not writable and non-enumerable.
l(c,{x:r,y:i,width:a,height:o,top:i,right:r+a,bottom:o+i,left:r}),c);
// According to the specification following properties are not writable
// and are also not enumerable in the native implementation.

// Property accessors are not being used as they'd require to define a
// private WeakMap storage which may cause memory leaks in browsers that
// don't support this type of collections.
l(this,{target:e,contentRect:u})},b=/** @class */function(){
/**
     * Creates a new instance of ResizeObserver.
     *
     * @param {ResizeObserverCallback} callback - Callback function that is invoked
     *      when one of the observed elements changes it's content dimensions.
     * @param {ResizeObserverController} controller - Controller instance which
     *      is responsible for the updates of observer.
     * @param {ResizeObserver} callbackCtx - Reference to the public
     *      ResizeObserver instance which will be passed to callback function.
     */
function e(e,t,r){if(
/**
         * Collection of resize observations that have detected changes in dimensions
         * of elements.
         *
         * @private {Array<ResizeObservation>}
         */
this.activeObservations_=[],
/**
         * Registry of the ResizeObservation instances.
         *
         * @private {Map<Element, ResizeObservation>}
         */
this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}
/**
     * Starts observing provided element.
     *
     * @param {Element} target - Element to be observed.
     * @returns {void}
     */return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");
// Do nothing if current environment doesn't have the Element interface.
if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;
// Do nothing if element is already being observed.
t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),
// Force the update of observations.
this.controller_.refresh())}},
/**
     * Stops observing provided element.
     *
     * @param {Element} target - Element to stop observing.
     * @returns {void}
     */
e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");
// Do nothing if current environment doesn't have the Element interface.
if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;
// Do nothing if element is not being observed.
t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},
/**
     * Stops observing all elements.
     *
     * @returns {void}
     */
e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},
/**
     * Collects observation instances the associated element of which has changed
     * it's content rectangle.
     *
     * @returns {void}
     */
e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},
/**
     * Invokes initial callback function with a list of ResizeObserverEntry
     * instances collected from active resize observations.
     *
     * @returns {void}
     */
e.prototype.broadcastActive=function(){
// Do nothing if observer doesn't have active observations.
if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new A(e.target,e.broadcastRect())}));
// Create ResizeObserverEntry instance for every active observation.
this.callback_.call(e,t,e),this.clearActive()}},
/**
     * Clears the collection of active observations.
     *
     * @returns {void}
     */
e.prototype.clearActive=function(){this.activeObservations_.splice(0)},
/**
     * Tells whether observer has active observations.
     *
     * @returns {boolean}
     */
e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,x=
/**
     * Creates a new instance of ResizeObserver.
     *
     * @param {ResizeObserverCallback} callback - Callback that is invoked when
     *      dimensions of the observed elements change.
     */
function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new b(t,n,this);w.set(this,r)};
// Expose public methods of ResizeObserver.
["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var C=
// Export existing implementation if available.
void 0!==i.ResizeObserver?i.ResizeObserver:x;
/* harmony default export */t.a=C}).call(this,n("c8ba"))
/***/},
/***/"6eb9":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineConfig=void 0;t.lineConfig={
/**
   * @description Whether to display this line chart
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Legend name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Data stacking
   * The data value of the series element of the same stack
   * will be superimposed (the latter value will be superimposed on the previous value)
   * @type {String}
   * @default stack = ''
   */
stack:"",
/**
   * @description Smooth line
   * @type {Boolean}
   * @default smooth = false
   */
smooth:!1,
/**
   * @description Line x axis index
   * @type {Number}
   * @default xAxisIndex = 0
   * @example xAxisIndex = 0 | 1
   */
xAxisIndex:0,
/**
   * @description Line y axis index
   * @type {Number}
   * @default yAxisIndex = 0
   * @example yAxisIndex = 0 | 1
   */
yAxisIndex:0,
/**
   * @description Line chart data
   * @type {Array}
   * @default data = []
   * @example data = [100, 200, 300]
   */
data:[],
/**
   * @description Line default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
lineStyle:{lineWidth:1},
/**
   * @description Line point configuration
   * @type {Object}
   */
linePoint:{
/**
     * @description Whether to display line point
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Line point radius
     * @type {Number}
     * @default radius = 2
     */
radius:2,
/**
     * @description Line point default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fill:"#fff",lineWidth:1}},
/**
   * @description Line area configuration
   * @type {Object}
   */
lineArea:{
/**
     * @description Whether to display line area
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Line area gradient color (Hex|rgb|rgba)
     * @type {Array}
     * @default gradient = []
     */
gradient:[],
/**
     * @description Line area style default configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{opacity:.5}},
/**
   * @description Line label configuration
   * @type {Object}
   */
label:{
/**
     * @description Whether to display line label
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Line label position
     * @type {String}
     * @default position = 'top'
     * @example position = 'top' | 'center' | 'bottom'
     */
position:"top",
/**
     * @description Line label offset
     * @type {Array}
     * @default offset = [0, -10]
     */
offset:[0,-10],
/**
     * @description Line label formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = '{value}件'
     * @example formatter = (dataItem) => (dataItem.value)
     */
formatter:null,
/**
     * @description Line label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fontSize:10}},
/**
   * @description Line chart render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 10
   */
rLevel:10,
/**
   * @description Line animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Line animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50}},
/***/"6f19":
/***/function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),a=n("b980"),o=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(o?o(e,t):r(e,"stack",i(n,s)))}},
/***/"6f48":
/***/function(e,t,n){"use strict";
// `Map` constructor
// https://tc39.es/ecma262/#sec-map-objects
n("6d61")("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n("6566"))},
/***/"6f4f":
/***/function(e,t,n){
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var r=n("77e9"),i=n("85e7"),a=n("9742"),o=n("5a94")("IE_PROTO"),s=function(){/* empty */},c="prototype",l=function(){
// Thrash, waste and sodomy: IE GC bug
var e,t=n("05f5")("iframe"),r=a.length;for(t.style.display="none",n("9141").appendChild(t),t.src="javascript:",(// eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[c][a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,
// add "__proto__" for Object.getPrototypeOf polyfill
n[o]=e):n=l(),void 0===t?n:i(n,t)}},
/***/"6f53":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),a=n("e330"),o=n("e163"),s=n("df75"),c=n("fc6a"),l=a(n("d1e7").f),u=a([].push),h=r&&i((function(){
// eslint-disable-next-line es/no-object-create -- safe
var e=Object.create(null);return e[2]=2,!l(e,2)})),f=function(e){return function(t){for(var n,i=c(t),a=s(i),f=h&&null===o(i),d=a.length,p=0,g=[];d>p;)n=a[p++],r&&!(f?n in i:l(i,n))||u(g,e?[n,i[n]]:i[n]);return g}};e.exports={
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
entries:f(!0),
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
values:f(!1)}},
/***/"6f54":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/* harmony import */var r=n("41b2"),i=n.n(r);
/* harmony import */function a(e){var t=e,n=[];return{setState:function(e){t=i()({},t,e);for(var r=0;r<n.length;r++)n[r]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}
/***/},
/***/"6f6c":
/***/function(e,t){
/** Used to match `RegExp` flags from their coerced string values. */
var n=/\w*$/;
/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},
/***/"6fc2":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"6fc7":
/***/function(e,t,n){var r=n("9b6f"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},
/***/"6fcd":
/***/function(e,t,n){var r=n("50d8"),i=n("d370"),a=n("6747"),o=n("0d24"),s=n("c098"),c=n("73ac"),l=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function(e,t){var n=a(e),u=!n&&i(e),h=!n&&!u&&o(e),f=!n&&!u&&!h&&c(e),d=n||u||h||f,p=d?r(e.length,String):[],g=p.length;for(var m in e)!t&&!l.call(e,m)||d&&(
// Safari 9 has enumerable `arguments.length` in strict mode.
"length"==m||
// Node.js 0.10 has enumerable non-index properties on buffers.
h&&("offset"==m||"parent"==m)||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||
// Skip index properties.
s(m,g))||p.push(m);return p}},
/***/"6fd3":
/***/function(e,t,n){"use strict";var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var c=r[s];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,t[0]);break;case 2:c.h.call(c.ctx,t[0],t[1]);break;default:c.h.apply(c.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,c=0;c<s;c++){var l=r[c];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(o);break;case 1:l.h.call(o,t[0]);break;case 2:l.h.call(o,t[0],t[1]);break;default:l.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}();
/* harmony default export */t.a=r},
/***/7037:
/***/function(e,t,n){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},
/***/7067:
/***/function(e,t,n){
// 19.1.3.10 Object.is(value1, value2)
var r=n("f083");r(r.S,"Object",{is:n("a87b")})},
/***/7129:
/***/function(e,t,n){"use strict";
/** Used as references for various `Number` constants. */var r=/^(?:0|[1-9]\d*)$/;
/** Used to detect unsigned integer values. */
/* harmony default export */t.a=
/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},
/***/7149:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),a=n("c430"),o=n("d256"),s=n("4738").CONSTRUCTOR,c=n("cdf9"),l=i("Promise"),u=a&&!s;
// `Promise.resolve` method
// https://tc39.es/ecma262/#sec-promise.resolve
r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?o:this,e)}})},
/***/7156:
/***/function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),a=n("d2bb");
// makes subclassing work correct for wrapped built-ins
e.exports=function(e,t,n){var o,s;
// it can work only with native `setPrototypeOf`
return a&&
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},
/***/"71ae":
/***/function(e,t,n){
// https://github.com/tc39/proposal-global
var r=n("f083");r(r.S,"System",{global:n("93e0")})},
/***/7212:
/***/function(e,t,n){var r;e.exports=(r=n("d090"),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(e,t){e.exports=r},function(e,t){e.exports=function(e,t,n,r,i,a){var o,s=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(o=e,s=e.default);var l,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=r),l){var h=u.functional,f=h?u.render:u.beforeCreate;h?(u._injectStyles=l,u.render=function(e,t){return l.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,l):[l]}return{esModule:o,exports:s,options:u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n.n(r),a=n(8),o=n(1)(i.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=n.n(r),a=n(7),o=n(1)(i.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.swiperSlide=t.swiper=t.Swiper=void 0;var i=r(n(0)),a=r(n(2)),o=r(n(3)),s=window.Swiper||i.default,c=o.default,l=a.default,u=function(e,t){t&&(o.default.props.globalOptions.default=function(){return t}),e.component(o.default.name,o.default),e.component(a.default.name,a.default)},h={Swiper:s,swiper:c,swiperSlide:l,install:u};t.default=h,t.Swiper=s,t.swiper=c,t.swiperSlide=l,t.install=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"swiper-slide",data:function(){return{slideClass:"swiper-slide"}},ready:function(){this.update()},mounted:function(){this.update(),this.$parent&&this.$parent.options&&this.$parent.options.slideClass&&(this.slideClass=this.$parent.options.slideClass)},updated:function(){this.update()},attached:function(){this.update()},methods:{update:function(){this.$parent&&this.$parent.swiper&&this.$parent.update()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=window.Swiper||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0});var a=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"];t.default={name:"swiper",props:{options:{type:Object,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{swiper:null,classes:{wrapperClass:"swiper-wrapper"}}},ready:function(){this.swiper||this.mountInstance()},mounted:function(){if(!this.swiper){var e=!1;for(var t in this.classes)this.classes.hasOwnProperty(t)&&this.options[t]&&(e=!0,this.classes[t]=this.options[t]);e?this.$nextTick(this.mountInstance):this.mountInstance()}},activated:function(){this.update()},updated:function(){this.update()},beforeDestroy:function(){this.$nextTick((function(){this.swiper&&(this.swiper.destroy&&this.swiper.destroy(),delete this.swiper)}))},methods:{update:function(){this.swiper&&(this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update())},mountInstance:function(){var e=Object.assign({},this.globalOptions,this.options);this.swiper=new i(this.$el,e),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var e=this,t=this;a.forEach((function(n){e.swiper.on(n,(function(){t.$emit.apply(t,[n].concat(Array.prototype.slice.call(arguments))),t.$emit.apply(t,[n.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))}))}))}}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"swiper-container"},[e._t("parallax-bg"),e._v(" "),n("div",{class:e.classes.wrapperClass},[e._t("default")],2),e._v(" "),e._t("pagination"),e._v(" "),e._t("button-prev"),e._v(" "),e._t("button-next"),e._v(" "),e._t("scrollbar")],2)},i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.slideClass},[e._t("default")],2)},i={render:r,staticRenderFns:[]};t.a=i}]))},
/***/7234:
/***/function(e,t,n){"use strict";
// we can't use just `it == null` since of `document.all` special case
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
e.exports=function(e){return null==e}},
/***/"726c":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("27c4")(!1),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(o||!n("55c7")(a)),"Array",{
// 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
indexOf:function(e/* , fromIndex = 0 */){return o?a.apply(this,arguments)||0:i(this,e,arguments[1])}})},
/***/"726e":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return r})),
/* harmony export (binding) */n.d(t,"b",(function(){return i})),
/* harmony export (binding) */n.d(t,"a",(function(){return a})),
/* unused harmony export DEFAULT_TEXT_WIDTH_MAP */
/* harmony export (binding) */n.d(t,"d",(function(){return l})),
/* harmony export (binding) */n.d(t,"e",(function(){return u}));var r=12,i="sans-serif",a=r+"px "+i;var o,s,c=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!o){var n=l.createCanvas();o=n&&n.getContext("2d")}if(o)return s!==t&&(s=o.font=t||a),o.measureText(e);e=e||"";var i=/((?:\d+)?\.?\d*)px/.exec(t=t||a),u=i&&+i[1]||r,h=0;if(t.indexOf("mono")>=0)h=u*e.length;else for(var f=0;f<e.length;f++){var d=c[e[f]];h+=null==d?u:d*u}return{width:h}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function u(e){for(var t in l)e[t]&&(l[t]=e[t])}
/***/},
/***/7282:
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){/* empty */}}},
/***/"729e":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.pie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,l.pieConfig,"pie");r=function(e){return e.forEach((function(e){var t=m(e),n=m(e,!1);t=v(t),n=v(n),y(t,e),y(n,e,!1)})),e}(r=function(e){return e.forEach((function(e){var t=e.data,n=e.center;t.forEach((function(e){var t=e.startAngle,r=e.endAngle,i=e.radius,a=(t+r)/2,o=u.getCircleRadianPoint.apply(void 0,(0,s.default)(n).concat([i[1],a]));e.edgeCenterPos=o}))})),e}(r=function(e){return e.forEach((function(e){e.data.forEach((function(t){t.insideLabelPos=function(e,t){var n=e.center,r=t.startAngle,i=t.endAngle,a=(0,o.default)(t.radius,2),c=a[0],l=a[1],h=(c+l)/2,f=(r+i)/2;return u.getCircleRadianPoint.apply(void 0,(0,s.default)(n).concat([h,f]))}(e,t)}))})),e}(r=function(e){return e.forEach((function(e){var t=e.startAngle,n=e.data;n.forEach((function(e,r){var i=function(e,t){var n=2*Math.PI,r=e.slice(0,t+1),i=(0,h.mulAdd)(r.map((function(e){return e.percent}))),a=e[t].percent;return[n*(i-a)/100,n*i/100]}(n,r),a=(0,o.default)(i,2),s=a[0],c=a[1];e.startAngle=t+s,e.endAngle=t+c}))})),e}(r=function(e){return e.forEach((function(e){var t=e.data,n=e.percentToFixed,r=function(e){return(0,h.mulAdd)(e.map((function(e){return e.value})))}(t);t.forEach((function(e){var t=e.value;e.percent=t/r*100,e.percentForLabel=p(t/r*100,n)}));var i=(0,h.mulAdd)(t.slice(0,-1).map((function(e){return e.percent})));t.slice(-1)[0].percent=100-i,t.slice(-1)[0].percentForLabel=p(100-i,n)})),e}(r=function(e){var t=e.filter((function(e){return e.roseType}));return t.forEach((function(e){var t=e.radius,n=e.data,r=e.roseSort,i=function(e){var t=e.radius,n=e.roseIncrement;if("number"==typeof n)return n;if("auto"===n){var r=e.data,i=r.reduce((function(e,t){var n=t.radius;return[].concat((0,s.default)(e),(0,s.default)(n))}),[]),a=Math.min.apply(Math,(0,s.default)(i));return.6*(Math.max.apply(Math,(0,s.default)(i))-a)/(r.length-1||1)}return parseInt(n)/100*t[1]}(e),a=(0,s.default)(n);(n=function(e){return e.sort((function(e,t){var n=e.value,r=t.value;return n===r?0:n>r?-1:n<r?1:void 0}))}(n)).forEach((function(e,n){e.radius[1]=t[1]-i*n})),r?n.reverse():e.data=a,e.roseIncrement=i})),e}(r=function(e,t){var n=Math.min.apply(Math,(0,s.default)(t.render.area))/2;return e.forEach((function(e){var t=e.radius,r=e.data;t=d(t,n),r.forEach((function(e){var r=e.radius;r||(r=t),r=d(r,n),e.radius=r})),e.radius=t})),e}(r=function(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"==typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}(r,e),e))))))),(0,c.doUpdate)({chart:e,series:r,key:"pie",getGraphConfig:A,getStartGraphConfig:b,beforeChange:w}),(0,c.doUpdate)({chart:e,series:r,key:"pieInsideLabel",getGraphConfig:_}),(0,c.doUpdate)({chart:e,series:r,key:"pieOutsideLabelLine",getGraphConfig:k,getStartGraphConfig:S}),(0,c.doUpdate)({chart:e,series:r,key:"pieOutsideLabel",getGraphConfig:T,getStartGraphConfig:O})};var i=r(n("9523")),a=r(n("7037")),o=r(n("278c")),s=r(n("448a")),c=n("18ad"),l=n("222a"),u=n("5557"),h=n("becb");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t){return e instanceof Array||(e=[0,e]),e=e.map((function(e){return"number"==typeof e?e:parseInt(e)/100*t}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.toString().split("."),r=(n[1]||"0").slice(0,t);return n[1]=r,parseFloat(n.join("."))}function g(e){var t=e.outsideLabel.labelLineBendGap,n=function(e){var t=e.data,n=t.map((function(e){var t=(0,o.default)(e.radius,2);t[0];return t[1]}));return Math.max.apply(Math,(0,s.default)(n))}(e);return"number"!=typeof t&&(t=parseInt(t)/100*n),t+n}function m(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.data,r=e.center[0];return n.filter((function(e){var n=e.edgeCenterPos[0];return t?n<=r:n>r}))}function v(e){return e.sort((function(e,t){var n=(0,o.default)(e.edgeCenterPos,2),r=(n[0],n[1]),i=(0,o.default)(t.edgeCenterPos,2),a=(i[0],i[1]);return r>a?1:r<a?-1:r===a?0:void 0})),e}function y(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.center,i=t.outsideLabel,a=g(t);e.forEach((function(e){var t=e.edgeCenterPos,o=e.startAngle,c=e.endAngle,l=i.labelLineEndLength,f=(o+c)/2,d=u.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([a,f])),p=(0,s.default)(d);p[0]+=l*(n?-1:1),e.labelLine=[t,d,p],e.labelLineLength=(0,h.getPolylineLength)(e.labelLine),e.align={textAlign:"left",textBaseline:"middle"},n&&(e.align.textAlign="right")}))}function A(e){var t=e.data,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"pie",index:i,animationCurve:n,animationFrame:r,shape:x(e,a),style:C(e,a)}}))}function b(e){var t=e.animationDelayGap,n=e.startAnimationCurve,r=A(e);return r.forEach((function(e,r){e.animationCurve=n,e.animationDelay=r*t,e.shape.or=e.shape.ir})),r}function w(e){e.animationDelay=0}function x(e,t){var n=e.center,r=e.data[t],i=r.radius;return{startAngle:r.startAngle,endAngle:r.endAngle,ir:i[0],or:i[1],rx:n[0],ry:n[1]}}function C(e,t){var n=e.pieStyle,r=e.data[t].color;return(0,h.deepMerge)({fill:r},n)}function _(e){var t=e.animationCurve,n=e.animationFrame,r=e.data,i=e.rLevel;return r.map((function(r,a){return{name:"text",index:i,visible:e.insideLabel.show,animationCurve:t,animationFrame:n,shape:I(e,a),style:E(e,a)}}))}function I(e,t){var n=e.insideLabel,r=e.data,i=n.formatter,o=r[t],s=(0,a.default)(i),c="";return"string"===s&&(c=(c=(c=i.replace("{name}",o.name)).replace("{percent}",o.percentForLabel)).replace("{value}",o.value)),"function"===s&&(c=i(o)),{content:c,position:o.insideLabelPos}}function E(e,t){return e.insideLabel.style}function k(e){var t=e.animationCurve,n=e.animationFrame,r=e.data,i=e.rLevel;return r.map((function(r,a){return{name:"polyline",index:i,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:B(e,a),style:M(e,a)}}))}function S(e){var t=e.data,n=k(e);return n.forEach((function(e,n){e.style.lineDash=[0,t[n].labelLineLength]})),n}function B(e,t){return{points:e.data[t].labelLine}}function M(e,t){var n=e.outsideLabel,r=e.data,i=n.labelLineStyle,a=r[t].color;return(0,h.deepMerge)({stroke:a,lineDash:[r[t].labelLineLength,0]},i)}function T(e){var t=e.animationCurve,n=e.animationFrame,r=e.data,i=e.rLevel;return r.map((function(r,a){return{name:"text",index:i,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:D(e,a),style:P(e,a)}}))}function O(e){var t=e.data,n=T(e);return n.forEach((function(e,n){e.shape.position=t[n].labelLine[1]})),n}function D(e,t){var n=e.outsideLabel,r=e.data,i=n.formatter,o=r[t],s=o.labelLine,c=o.name,l=o.percentForLabel,u=o.value,h=(0,a.default)(i),f="";return"string"===h&&(f=(f=(f=i.replace("{name}",c)).replace("{percent}",l)).replace("{value}",u)),"function"===h&&(f=i(r[t])),{content:f,position:s[2]}}function P(e,t){var n=e.outsideLabel,r=e.data[t],a=r.color,o=r.align,s=n.style;return(0,h.deepMerge)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fill:a},o),s)}
/***/},
/***/"72af":
/***/function(e,t,n){var r=n("99cd")();
/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */e.exports=r},
/***/"72c3":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e9bc");
// `Set.prototype.union` method
// https://tc39.es/ecma262/#sec-set.prototype.union
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("union")},{union:i})},
/***/"72f0":
/***/function(e,t){e.exports=
/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function(e){return function(){return e}}},
/***/"72fa":
/***/function(e,t,n){const{sm3:r,hmac:i}=n("41d0")
/**
 * 补全16进制字符串
 */;
/**
 * 字节数组转 16 进制串
 */
function a(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}
/**
 * 转成字节数组
 */function o(e){const t=[];let n=e.length;var r,i;n%2!=0&&(i=n+1,e=(r=e).length>=i?r:new Array(i-r.length+1).join("0")+r),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}
/**
 * utf8 串转字节数组
 */e.exports=function(e,t){if(e="string"==typeof e?function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.codePointAt(n);if(r<=127)
// 单字节，标量值：00000000 00000000 0zzzzzzz
t.push(r);else if(r<=2047)
// 双字节，标量值：00000000 00000yyy yyzzzzzz
t.push(192|r>>>6),// 110yyyyy（0xc0-0xdf）
t.push(128|63&r);else if(r<=55295||r>=57344&&r<=65535)
// 三字节：标量值：00000000 xxxxyyyy yyzzzzzz
t.push(224|r>>>12),// 1110xxxx（0xe0-0xef）
t.push(128|r>>>6&63),// 10yyyyyy（0x80-0xbf）
t.push(128|63&r);else{if(!(r>=65536&&r<=1114111))
// 五、六字节，暂时不支持
throw t.push(r),new Error("input is not supported");
// 四字节：标量值：000wwwxx xxxxyyyy yyzzzzzz
n++,t.push(240|r>>>18&28),// 11110www（0xf0-0xf7）
t.push(128|r>>>12&63),// 10xxxxxx（0x80-0xbf）
t.push(128|r>>>6&63),// 10yyyyyy（0x80-0xbf）
t.push(128|63&r)}}return t}(e):Array.prototype.slice.call(e),t){if("hmac"!==(t.mode||"hmac"))throw new Error("invalid mode");let n=t.key;if(!n)throw new Error("invalid key");return n="string"==typeof n?o(n):Array.prototype.slice.call(n),a(i(e,n))}return a(r(e))}
/***/},
/***/7320:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/vc-pagination/locale/en_US.js
var r=n("2deb"),i=n("b4a0"),a=n("01c2"),o=n("3a8b");
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/date-picker/locale/en_US.js
t.a={locale:"en",Pagination:r.a,DatePicker:i.a,TimePicker:a.a,Calendar:o.a,ColorPicker:{"btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear"},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}}},
/***/"733c":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/7371:
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
n("7bb0")("Set");
/***/},
/***/7382:
/***/function(e,t,n){var r=n("f083"),i=n("6fc7"),a=String.fromCharCode,o=String.fromCodePoint;
// length should be 1, old FF problem
r(r.S+r.F*(!!o&&1!=o.length),"String",{
// 21.1.2.2 String.fromCodePoint(...codePoints)
fromCodePoint:function(e){for(// eslint-disable-line no-unused-vars
var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},
/***/7393:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"73ac":
/***/function(e,t,n){var r=n("743f"),i=n("b047f"),a=n("99d3"),o=a&&a.isTypedArray,s=o?i(o):r;
/* Node.js helper references. */e.exports=s},
/***/"73d9":
/***/function(e,t,n){"use strict";
// this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
n("44d2")("flatMap")},
/***/7418:
/***/function(e,t,n){"use strict";
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
t.f=Object.getOwnPropertySymbols},
/***/7433:
/***/function(e,t,n){var r=n("93e0").document;e.exports=r&&r.documentElement},
/***/"743f":
/***/function(e,t,n){var r=n("3729"),i=n("b218"),a=n("1310"),o={};
/** `Object#toString` result references. */o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=
/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},
/***/"74b5":
/***/function(e,t,n){"use strict";
/** Used for built-in method references. */var r=Function.prototype.toString;
/** Used to resolve the decompiled source of functions. */
/* harmony default export */t.a=
/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},
/***/"74ef":
/***/function(e,t,n){
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var r=n("f083");r(r.P+r.R,"Set",{toJSON:n("1ff6")("Set")})},
/***/"750a":
/***/function(e,t,n){var r=n("c869"),i=n("bcdf"),a=n("ac41"),o=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;
/** Used as references for various `Number` constants. */e.exports=o},
/***/7524:
/***/function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}};
/***/},
/***/7530:
/***/function(e,t,n){var r=n("1a8c"),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();
/** Built-in value references. */e.exports=a},
/***/"767a":
/***/function(e,t,n){"use strict";
/* harmony import */n("5798");
/* harmony import */},
/***/"76a5":
/***/function(e,t,n){"use strict";
/* unused harmony export DEFAULT_TEXT_ANIMATION_PROPS */
/* harmony export (binding) */n.d(t,"c",(function(){return A})),
/* harmony export (binding) */n.d(t,"b",(function(){return w}));
/* unused harmony export normalizeTextStyle */
/* harmony import */var r=n("21a1"),i=n("d409"),a=n("dd4f"),o=n("6d8b"),s=n("e86a"),c=n("0da8"),l=n("c7a2"),u=n("9850"),h=n("19eb"),f=n("726e"),d={fill:"#000"},p={style:Object(o.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.a.style)},g=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=d,n.attr(t),n}return Object(r.a)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,x(e=this.style),Object(o.each)(e.rich,x),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new u.a(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||d},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(o.extend)(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(o.keys)(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Object(o.extend)(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return p},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||f.a,n=e.padding,r=E(e),o=Object(i.a)(r,e),c=k(e),l=!!e.backgroundColor,h=o.outerHeight,d=o.outerWidth,p=o.contentWidth,g=o.lines,m=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=e.x||0,A=e.y||0,w=e.align||v.align||"left",x=e.verticalAlign||v.verticalAlign||"top",S=y,B=Object(s.b)(A,o.contentHeight,x);if(c||n){var M=Object(s.a)(y,d,w),T=Object(s.b)(A,h,x);c&&this._renderBackground(e,e,M,T,d,h)}B+=m/2,n&&(S=I(y,w,n),"top"===x?B+=n[0]:"bottom"===x&&(B-=n[2]));for(var O=0,D=!1,P=(_("fill"in e?e.fill:(D=!0,v.fill))),L=(C("stroke"in e?e.stroke:l||v.autoStroke&&!D?null:(O=2,v.stroke))),Q=e.textShadowBlur>0,R=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),j=o.calculatedLineHeight,N=0;N<g.length;N++){var F=this._getOrCreateChild(a.a),z=F.createStyle();F.useStyle(z),z.text=g[N],z.x=S,z.y=B,w&&(z.textAlign=w),z.textBaseline="middle",z.opacity=e.opacity,z.strokeFirst=!0,Q&&(z.shadowBlur=e.textShadowBlur||0,z.shadowColor=e.textShadowColor||"transparent",z.shadowOffsetX=e.textShadowOffsetX||0,z.shadowOffsetY=e.textShadowOffsetY||0),z.stroke=L,z.fill=P,L&&(z.lineWidth=e.lineWidth||O,z.lineDash=e.lineDash,z.lineDashOffset=e.lineDashOffset||0),z.font=t,b(z,e),B+=m,R&&F.setBoundingRect(new u.a(Object(s.a)(z.x,p,z.textAlign),Object(s.b)(z.y,j,z.textBaseline),p,j))}},t.prototype._updateRichTexts=function(){var e=this.style,t=E(e),n=Object(i.b)(t,e),r=n.width,a=n.outerWidth,o=n.outerHeight,c=e.padding,l=e.x||0,u=e.y||0,h=this._defaultStyle,f=e.align||h.align,d=e.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var p=Object(s.a)(l,a,f),g=Object(s.b)(u,o,d),m=p,v=g;c&&(m+=c[3],v+=c[0]);var y=m+r;k(e)&&this._renderBackground(e,e,p,g,a,o);for(var A=!!e.backgroundColor,b=0;b<n.lines.length;b++){for(var w=n.lines[b],x=w.tokens,C=x.length,_=w.lineHeight,I=w.width,S=0,B=m,M=y,T=C-1,O=void 0;S<C&&(!(O=x[S]).align||"left"===O.align);)this._placeToken(O,e,_,v,B,"left",A),I-=O.width,B+=O.width,S++;for(;T>=0&&"right"===(O=x[T]).align;)this._placeToken(O,e,_,v,M,"right",A),I-=O.width,M-=O.width,T--;for(B+=(r-(B-m)-(y-M)-I)/2;S<=T;)O=x[S],this._placeToken(O,e,_,v,B+O.width/2,"center",A),B+=O.width,S++;v+=_}},t.prototype._placeToken=function(e,t,n,r,i,c,l){var h=t.rich[e.styleName]||{};h.text=e.text;var d=e.verticalAlign,p=r+n/2;"top"===d?p=r+e.height/2:"bottom"===d&&(p=r+n-e.height/2),!e.isLineHolder&&k(h)&&this._renderBackground(h,t,"right"===c?i-e.width:"center"===c?i-e.width/2:i,p-e.height/2,e.width,e.height);var g=!!h.backgroundColor,m=e.textPadding;m&&(i=I(i,c,m),p-=e.height/2-m[0]-e.innerHeight/2);var v=this._getOrCreateChild(a.a),y=v.createStyle();v.useStyle(y);var A=this._defaultStyle,w=!1,x=0,E=_("fill"in h?h.fill:"fill"in t?t.fill:(w=!0,A.fill)),S=C("stroke"in h?h.stroke:"stroke"in t?t.stroke:g||l||A.autoStroke&&!w?null:(x=2,A.stroke)),B=h.textShadowBlur>0||t.textShadowBlur>0;y.text=e.text,y.x=i,y.y=p,B&&(y.shadowBlur=h.textShadowBlur||t.textShadowBlur||0,y.shadowColor=h.textShadowColor||t.textShadowColor||"transparent",y.shadowOffsetX=h.textShadowOffsetX||t.textShadowOffsetX||0,y.shadowOffsetY=h.textShadowOffsetY||t.textShadowOffsetY||0),y.textAlign=c,y.textBaseline="middle",y.font=e.font||f.a,y.opacity=Object(o.retrieve3)(h.opacity,t.opacity,1),b(y,h),S&&(y.lineWidth=Object(o.retrieve3)(h.lineWidth,t.lineWidth,x),y.lineDash=Object(o.retrieve2)(h.lineDash,t.lineDash),y.lineDashOffset=t.lineDashOffset||0,y.stroke=S),E&&(y.fill=E);var M=e.contentWidth,T=e.contentHeight;v.setBoundingRect(new u.a(Object(s.a)(y.x,M,y.textAlign),Object(s.b)(y.y,T,y.textBaseline),M,T))},t.prototype._renderBackground=function(e,t,n,r,i,a){var s,u,h,f=e.backgroundColor,d=e.borderWidth,p=e.borderColor,g=f&&f.image,m=f&&!g,v=e.borderRadius,y=this;if(m||e.lineHeight||d&&p){(s=this._getOrCreateChild(l.a)).useStyle(s.createStyle()),s.style.fill=null;var A=s.shape;A.x=n,A.y=r,A.width=i,A.height=a,A.r=v,s.dirtyShape()}if(m)(h=s.style).fill=f||null,h.fillOpacity=Object(o.retrieve2)(e.fillOpacity,1);else if(g){(u=this._getOrCreateChild(c.a)).onload=function(){y.dirtyStyle()};var b=u.style;b.image=f.image,b.x=n,b.y=r,b.width=i,b.height=a}d&&p&&((h=s.style).lineWidth=d,h.stroke=p,h.strokeOpacity=Object(o.retrieve2)(e.strokeOpacity,1),h.lineDash=e.borderDash,h.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var w=(s||u).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=Object(o.retrieve3)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return w(e)&&(t=[e.fontStyle,e.fontWeight,A(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(o.trim)(t)||e.textFont||e.font},t}(h.c),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];
/* harmony import */function A(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?f.c+"px":e+"px":e}function b(e,t){for(var n=0;n<y.length;n++){var r=y[n],i=t[r];null!=i&&(e[r]=i)}}function w(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function x(e){if(e){e.font=g.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||m[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||v[n]?n:"top",e.padding&&(e.padding=Object(o.normalizeCssArray)(e.padding))}}function C(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function _(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function I(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function E(e){var t=e.text;return null!=t&&(t+=""),t}function k(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}
/* harmony default export */t.a=g},
/***/"76d6":
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("d866")},
/***/"76dd":
/***/function(e,t,n){var r=n("ce86");
/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */e.exports=function(e){return null==e?"":r(e)}},
/***/"76de":
/***/function(e,t,n){n("5ee4"),e.exports=n("0ae2").RegExp.escape},
/***/7701:
/***/function(e,t,n){
// 20.2.2.7 Math.atanh(x)
var r=n("f083"),i=Math.atanh;
// Tor Browser bug: Math.atanh(-0) -> 0
r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},
/***/"77e9":
/***/function(e,t,n){var r=n("7a41");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},
/***/"77ea":
/***/function(e,t,n){var r=n("93e0"),i=n("0713"),a=n("2fb2"),o=n("5689")("src"),s=n("a070"),c="toString",l=(""+s).split(c);n("0ae2").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||i(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},
/***/"77f4":
/***/function(e,t,n){var r=n("2761"),i=n("d77f"),a=n("5a5d");e.exports=n("c94e")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,c=0;s>c;)r.f(e,n=o[c++],t[n]);return e}},
/***/7804:
/***/function(e,t,n){"use strict";
/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
/* harmony default export */t.a=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},
/***/7837:
/***/function(e,t,n){"use strict";
/* unused harmony export setLabelText */
/* harmony export (binding) */n.d(t,"g",(function(){return h})),
/* harmony export (binding) */n.d(t,"e",(function(){return f})),
/* harmony export (binding) */n.d(t,"c",(function(){return d})),
/* harmony export (binding) */n.d(t,"b",(function(){return p})),
/* harmony export (binding) */n.d(t,"d",(function(){return A})),
/* harmony export (binding) */n.d(t,"f",(function(){return b})),
/* harmony export (binding) */n.d(t,"h",(function(){return w})),
/* harmony export (binding) */n.d(t,"a",(function(){return x}));
/* harmony import */var r=n("76a5"),i=n("6d8b"),a=n("7d6c"),o=n("e0d3"),s=n("deca"),c={};
/* harmony import */function l(e,t){for(var n=0;n<a.g.length;n++){var r=a.g[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function u(e,t,n){var r,o=e.labelFetcher,s=e.labelDataIndex,c=e.labelDimIndex,l=t.normal;o&&(r=o.getFormattedLabel(s,"normal",null,c,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(i.isFunction)(e.defaultText)?e.defaultText(s,e,n):e.defaultText);for(var u={normal:r},h=0;h<a.g.length;h++){var f=a.g[h],d=t[f];u[f]=Object(i.retrieve2)(o?o.getFormattedLabel(s,f,null,c,d&&d.get("formatter")):null,r)}return u}function h(e,t,n,o){n=n||c;for(var s=e instanceof r.a,h=!1,f=0;f<a.a.length;f++){if((w=t[a.a[f]])&&w.getShallow("show")){h=!0;break}}var g=s?e:e.getTextContent();if(h){s||(
// Reuse the previous
g||(g=new r.a,e.setTextContent(g)),
// Use same state proxy
e.stateProxy&&(g.stateProxy=e.stateProxy));var m=u(n,t),v=t.normal,y=!!v.getShallow("show"),A=d(v,o&&o.normal,n,!1,!s);A.text=m.normal,s||
// Always create new
e.setTextConfig(p(v,n,!1));for(f=0;f<a.g.length;f++){var w,x=a.g[f];if(w=t[x]){var C=g.ensureState(x),_=!!Object(i.retrieve2)(w.getShallow("show"),y);if(_!==y&&(C.ignore=!_),C.style=d(w,o&&o[x],n,!0,!s),C.style.text=m[x],!s)e.ensureState(x).textConfig=p(w,n,!0)}}
// PENDING: if there is many requirements that emphasis position
// need to be different from normal position, we might consider
// auto silent is those cases.
g.silent=!!v.getShallow("silent"),
// Keep x and y
null!=g.style.x&&(A.x=g.style.x),null!=g.style.y&&(A.y=g.style.y),g.ignore=!y,
// Always create new style.
g.useStyle(A),g.dirty(),n.enableTextSetter&&(b(g).setLabelText=function(e){var r=u(n,t,e);l(g,r)})}else g&&(
// Not display rich text.
g.ignore=!0);e.dirty()}function f(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<a.g.length;r++){var i=a.g[r];n[i]=e.getModel([i,t])}return n}
/**
 * Set basic textStyle properties.
 */function d(e,t,
// Fixed style in the code. Can't be set by model.
n,r,a){var o={};
// textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);
/**
 * The uniform entry of set text style, that is, retrieve style definitions
 * from `model` and set to `textStyle` object.
 *
 * Never in merge mode, but in overwrite mode, that is, all of the text style
 * properties will be set. (Consider the states of normal and emphasis and
 * default value can be adopted, merge would make the logic too complicated
 * to manage.)
 */
return function(e,t,n,r,a){
// Consider there will be abnormal when merge hover style to normal style if given default value.
n=n||c;var o,s=t.ecModel,l=s&&s.option.textStyle,u=
// Consider case:
// {
//     data: [{
//         value: 12,
//         label: {
//             rich: {
//                 // no 'a' here but using parent 'a'.
//             }
//         }
//     }],
//     rich: {
//         a: { ... }
//     }
// }
// TODO TextStyleModel
function(e){
// Use object to remove duplicated names.
var t;for(;e&&e!==e.ecModel;){var n=(e.option||c).rich;if(n){t=t||{};for(var r=Object(i.keys)(n),a=0;a<r.length;a++){t[r[a]]=1}}e=e.parentModel}return t}(t);if(u)for(var h in o={},u)if(u.hasOwnProperty(h)){
// Cascade is supported in rich.
var f=t.getModel(["rich",h]);
// In rich, never `disableBox`.
// FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,
// the default color `'blue'` will not be adopted if no color declared in `rich`.
// That might confuses users. So probably we should put `textStyleModel` as the
// root ancestor of the `richTextStyle`. But that would be a break change.
y(o[h]={},f,l,n,r,a,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");null!=p&&(e.margin=p);y(e,t,l,n,r,a,!0,!1)}(o,e,n,r,a),t&&Object(i.extend)(o,t),o}function p(e,t,n){t=t||{};var r,a={},o=e.getShallow("rotate"),s=Object(i.retrieve2)(e.getShallow("distance"),n?null:5),c=e.getShallow("offset");
// 'outside' is not a valid zr textPostion value, but used
// in bar series, and magric type should be considered.
return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(a.position=r),null!=c&&(a.offset=c),null!=o&&(o*=Math.PI/180,a.rotation=o),null!=s&&(a.distance=s),
// fill and auto is determined by the color of path fill if it's not specified by developers.
a.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",a}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function y(e,t,n,r,a,o,s,l){
// In merge mode, default value should not be given.
n=!a&&n||c;var u=r&&r.inheritColor,h=t.getShallow("color"),f=t.getShallow("textBorderColor"),d=Object(i.retrieve2)(t.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=u||null),"inherit"!==f&&"auto"!==f||(f=u||null),o||(
// Only use default global textStyle.color if text is individual.
// Otherwise it will use the strategy of attached text color because text may be on a path.
h=h||n.color,f=f||n.textBorderColor),null!=h&&(e.fill=h),null!=f&&(e.stroke=f);var p=Object(i.retrieve2)(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var y=Object(i.retrieve2)(t.getShallow("textBorderType"),n.textBorderType);null!=y&&(e.lineDash=y);var A=Object(i.retrieve2)(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=A&&(e.lineDashOffset=A),a||null!=d||l||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),
// TODO
a||o||
// Set default finally.
null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);
// Do not use `getFont` here, because merge should be supported, where
// part of these properties may be changed in emphasis style, and the
// others should remain their original value got from normal style.
for(var b=0;b<g.length;b++){var w=g[b];null!=(C=Object(i.retrieve2)(t.getShallow(w),n[w]))&&(e[w]=C)}for(b=0;b<m.length;b++){w=m[b];null!=(C=t.getShallow(w))&&(e[w]=C)}if(null==e.verticalAlign){var x=t.getShallow("baseline");null!=x&&(e.verticalAlign=x)}if(!s||!r.disableBox){for(b=0;b<v.length;b++){var C;w=v[b];null!=(C=t.getShallow(w))&&(e[w]=C)}var _=t.getShallow("borderType");null!=_&&(e.borderDash=_),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!u||(e.backgroundColor=u),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!u||(e.borderColor=u)}}function A(e,t){var n=t&&t.getModel("textStyle");return Object(i.trim)([
// FIXME in node-canvas fontWeight is before fontStyle
e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var b=Object(o.o)();function w(e,t,n,r){if(e){var i=b(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function x(e,t,n,r,a){var c=b(e);if(c.valueAnimation&&c.prevValue!==c.value){var h=c.defaultInterpolatedText,f=Object(i.retrieve2)(c.interpolatedValue,c.prevValue),d=c.value;
// Consider the case that being animating, do not use the `obj.value`,
// Otherwise it will jump to the `obj.value` when this new animation started.
e.percent=0,(null==c.prevValue?s.c:s.h)(e,{
// percent is used to prevent animation from being aborted #15916
percent:1},r,t,null,(function(r){var i=Object(o.k)(n,c.precision,f,d,r);c.interpolatedValue=1===r?null:i;var s=u({labelDataIndex:t,labelFetcher:a,defaultText:h?h(i):i+""},c.statesModels,i);l(e,s)}))}}
/***/},
/***/7839:
/***/function(e,t,n){"use strict";
// IE8- don't enum bug keys
e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},
/***/"785a":
/***/function(e,t,n){"use strict";
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
var r=n("cc12")("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},
/***/"786f":
/***/function(e,t,n){
// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
var r=n("f083"),i=n("2ce8"),a=n("d77f"),o=(n("93e0").Reflect||{}).apply,s=Function.apply;
// MS Edge argumentsList argument is optional
r(r.S+r.F*!n("f937")((function(){o((function(){/* empty */}))})),"Reflect",{apply:function(e,t,n){var r=i(e),c=a(n);return o?o(r,t,c):s.call(r,t,c)}})},
/***/7948:
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},
/***/"796d":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("825a"),s=n("46c4"),c=n("34e1"),l=n("c5cc"),u=n("2a62"),h=n("c430"),f=l((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=o(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(n,"throw",e)}if(e=o(i(this.next,n)),this.done=!!e.done)return;try{this.inner=c(r(e.value,this.counter++),!1)}catch(e){u(n,"throw",e)}}}));
// `Iterator.prototype.flatMap` method
// https://tc39.es/ecma262/#sec-iterator.prototype.flatmap
r({target:"Iterator",proto:!0,real:!0,forced:h},{flatMap:function(e){return o(this),a(e),new f(s(this),{mapper:e,inner:null})}})},
/***/"798a":
/***/function(e,t,n){var r=n("9fe8");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},
/***/"79a4":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("953b");
// `Set.prototype.intersection` method
// https://tc39.es/ecma262/#sec-set.prototype.intersection
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:a})},
/***/"79bc":
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"Map");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"7a29":
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* harmony export (binding) */n.d(t,"p",(function(){return s})),
/* harmony export (binding) */n.d(t,"j",(function(){return l})),
/* unused harmony export round3 */
/* harmony export (binding) */n.d(t,"q",(function(){return h})),
/* unused harmony export round1 */
/* harmony export (binding) */n.d(t,"e",(function(){return f})),
/* harmony export (binding) */n.d(t,"a",(function(){return d})),
/* harmony export (binding) */n.d(t,"b",(function(){return p})),
/* harmony export (binding) */n.d(t,"i",(function(){return g})),
/* harmony export (binding) */n.d(t,"h",(function(){return m})),
/* unused harmony export getClipPathsKey */
/* harmony export (binding) */n.d(t,"l",(function(){return v})),
/* unused harmony export isSVGPattern */
/* harmony export (binding) */n.d(t,"n",(function(){return y})),
/* harmony export (binding) */n.d(t,"m",(function(){return A})),
/* harmony export (binding) */n.d(t,"o",(function(){return b})),
/* harmony export (binding) */n.d(t,"k",(function(){return w})),
/* harmony export (binding) */n.d(t,"d",(function(){return x})),
/* harmony export (binding) */n.d(t,"f",(function(){return C})),
/* harmony export (binding) */n.d(t,"g",(function(){return _})),
/* harmony export (binding) */n.d(t,"c",(function(){return I}));
/* harmony import */var r=n("6d8b"),i=n("41ef"),a=n("22d1"),o=Math.round;
/* harmony import */function s(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=Object(i.parse)(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var c=1e-4;function l(e){return e<c&&e>-c}function u(e){return o(1e3*e)/1e3}function h(e){return o(1e4*e)/1e4}function f(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+h(e[4])+","+h(e[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function g(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function m(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(e){return e&&!!e.image}function y(e){return v(e)||function(e){return e&&!!e.svgElement}(e)}function A(e){return"linear"===e.type}function b(e){return"radial"===e.type}function w(e){return e&&("linear"===e.type||"radial"===e.type)}function x(e){return"url(#"+e+")"}function C(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function _(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r.RADIAN_TO_DEGREE,a=Object(r.retrieve2)(e.scaleX,1),s=Object(r.retrieve2)(e.scaleY,1),c=e.skewX||0,l=e.skewY||0,u=[];return(t||n)&&u.push("translate("+t+"px,"+n+"px)"),i&&u.push("rotate("+i+")"),1===a&&1===s||u.push("scale("+a+","+s+")"),(c||l)&&u.push("skew("+o(c*r.RADIAN_TO_DEGREE)+"deg, "+o(l*r.RADIAN_TO_DEGREE)+"deg)"),u.join(" ")}var I=a.a.hasGlobalWindow&&Object(r.isFunction)(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:void 0!==e?function(t){return e.from(t).toString("base64")}:function(e){return null};
/* WEBPACK VAR INJECTION */}).call(this,n("b639").Buffer)
/***/},
/***/"7a29e":
/***/function(e,t,n){
// 19.1.2.5 Object.freeze(O)
var r=n("9fe8"),i=n("4c8d").onFreeze;n("0a66")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},
/***/"7a41":
/***/function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e};
/***/},
/***/"7a48":
/***/function(e,t,n){var r=n("6044"),i=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},
/***/"7a77":
/***/function(e,t,n){"use strict";
/**
 * A `Cancel` is an object that is thrown when an operation is canceled.
 *
 * @class
 * @param {string=} message The message.
 */function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},
/***/"7aac":
/***/function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},
/***/"7b00":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,a,o=t.indentUnit,s=n.tokenHooks,c=n.documentTypes||{},l=n.mediaTypes||{},u=n.mediaFeatures||{},h=n.mediaValueKeywords||{},f=n.propertyKeywords||{},d=n.nonStandardPropertyKeywords||{},p=n.fontProperties||{},g=n.counterDescriptors||{},m=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,A=n.lineComment,b=!0===n.supportsAtComponent;function w(e,t){return i=t,e}
// Tokenizers
function x(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),w("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?w(null,"compare"):'"'==n||"'"==n?(t.tokenize=C(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),w("atom","hash")):"!"==n?(e.match(/^\s*\w*/),w("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),w("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?w(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=_),w("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),w("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):e.match(/^\w+-/)?w("meta","meta"):void 0}function C(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),w("string","string")}}function _(e,t){return e.next(),// Must be '('
e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=C(")"),w(null,"(")}
// Context management
function I(e,t,n){this.type=e,this.indent=t,this.prev=n}function E(e,t,n,r){return e.context=new I(n,t.indentation()+(!1===r?0:o),e.context),n}function k(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function S(e,t,n){return T[n.context.type](e,t,n)}function B(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return S(e,t,n)}
// Parser
function M(e){var t=e.current().toLowerCase();a=v.hasOwnProperty(t)?"atom":m.hasOwnProperty(t)?"keyword":"variable"}var T={top:function(e,t,n){if("{"==e)return E(n,t,"block");if("}"==e&&n.context.prev)return k(n);if(b&&/@component/i.test(e))return E(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return E(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return E(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return E(n,t,"at");if("hash"==e)a="builtin";else if("word"==e)a="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return E(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return E(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return f.hasOwnProperty(r)?(a="property","maybeprop"):d.hasOwnProperty(r)?(a="string-2","maybeprop"):y?(a=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(a+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?T.top(e,t,n):(a="error","block")},maybeprop:function(e,t,n){return":"==e?E(n,t,"prop"):S(e,t,n)},prop:function(e,t,n){if(";"==e)return k(n);if("{"==e&&y)return E(n,t,"propBlock");if("}"==e||"{"==e)return B(e,t,n);if("("==e)return E(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)M(t);else if("interpolation"==e)return E(n,t,"interpolation")}else a+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?k(n):"word"==e?(a="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?B(e,t,n):")"==e?k(n):"("==e?E(n,t,"parens"):"interpolation"==e?E(n,t,"interpolation"):("word"==e&&M(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(a="variable-3",n.context.type):S(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&c.hasOwnProperty(t.current())?(a="tag",n.context.type):T.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return E(n,t,"atBlock_parens");if("}"==e||";"==e)return B(e,t,n);if("{"==e)return k(n)&&E(n,t,y?"block":"top");if("interpolation"==e)return E(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();a="only"==r||"not"==r||"and"==r||"or"==r?"keyword":l.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":h.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"string-2":v.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?B(e,t,n):"{"==e?k(n)&&E(n,t,y?"block":"top",!1):("word"==e&&(a="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?k(n):"{"==e||"}"==e?B(e,t,n,2):T.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?E(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(a="variable","restricted_atBlock_before"):S(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,k(n)):"word"==e?(a="@font-face"==n.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!g.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(a="variable","keyframes"):"{"==e?E(n,t,"top"):S(e,t,n)},at:function(e,t,n){return";"==e?k(n):"{"==e||"}"==e?B(e,t,n):("word"==e?a="tag":"hash"==e&&(a="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?k(n):"{"==e||";"==e?B(e,t,n):("word"==e?a="variable":"variable"!=e&&"("!=e&&")"!=e&&(a="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new I(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||x)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),a=n,"comment"!=i&&(t.state=T[t.state](i,e,t)),a},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(
// Dedent relative to current context.
i=Math.max(0,n.indent-o)):i=(
// Resume indentation from parent context.
n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:A,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(i),o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(o),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],l=t(c),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index",
// SVG-specific
"clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=t(u),f=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],d=t(f),p=t(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),g=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(m),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],A=t(y),b=n.concat(i).concat(o).concat(c).concat(u).concat(f).concat(m).concat(y);function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",b),e.defineMIME("text/css",{documentTypes:r,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:h,nonStandardPropertyKeywords:d,fontProperties:p,counterDescriptors:g,colorKeywords:v,valueKeywords:A,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:h,nonStandardPropertyKeywords:d,colorKeywords:v,valueKeywords:A,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:h,nonStandardPropertyKeywords:d,colorKeywords:v,valueKeywords:A,fontProperties:p,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:a,mediaFeatures:s,propertyKeywords:h,nonStandardPropertyKeywords:d,fontProperties:p,counterDescriptors:g,colorKeywords:v,valueKeywords:A,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n("56b3"));
/***/},
/***/"7b05":
/***/function(e,t,n){"use strict";
/* unused harmony export cloneVNode */
/* harmony export (binding) */n.d(t,"b",(function(){return h})),
/* harmony export (binding) */n.d(t,"a",(function(){return f}));
/* harmony import */var r=n("9b57"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("daa3"),c=n("4d26"),l=n.n(c);
/* harmony import */function u(e,t){var n=e.componentOptions,r=e.data,i={};n&&n.listeners&&(i=o()({},n.listeners));var a={};r&&r.on&&(a=o()({},r.on));var s=new e.constructor(e.tag,r?o()({},r,{on:a}):r,e.children,e.text,e.elm,e.context,n?o()({},n,{listeners:i}):n,e.asyncFactory);return s.ns=e.ns,s.isStatic=e.isStatic,s.key=e.key,s.isComment=e.isComment,s.fnContext=e.fnContext,s.fnOptions=e.fnOptions,s.fnScopeId=e.fnScopeId,s.isCloned=!0,t&&(e.children&&(s.children=h(e.children,!0)),n&&n.children&&(n.children=h(n.children,!0))),s}function h(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++)r[i]=u(e[i],t);return r}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=e;if(Array.isArray(e)&&(r=Object(s.c)(e)[0]),!r)return null;var a=u(r,n),c=t.props,h=void 0===c?{}:c,f=t.key,d=t.on,p=void 0===d?{}:d,g=t.nativeOn,m=void 0===g?{}:g,v=t.children,y=t.directives,A=void 0===y?[]:y,b=a.data||{},w={},x={},C=t.attrs,_=void 0===C?{}:C,I=t.ref,E=t.domProps,k=void 0===E?{}:E,S=t.style,B=void 0===S?{}:S,M=t.class,T=void 0===M?{}:M,O=t.scopedSlots,D=void 0===O?{}:O;
// // 函数式组件不支持clone  https://github.com/vueComponent/ant-design-vue/pull/1947
// warning(
//   !(node.fnOptions && node.fnOptions.functional),
//   `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
// );
return x="string"==typeof b.style?Object(s.y)(b.style):o()({},b.style,x),x="string"==typeof B?o()({},x,Object(s.y)(x)):o()({},x,B),"string"==typeof b.class&&""!==b.class.trim()?b.class.split(" ").forEach((function(e){w[e.trim()]=!0})):Array.isArray(b.class)?l()(b.class).split(" ").forEach((function(e){w[e.trim()]=!0})):w=o()({},b.class,w),"string"==typeof T&&""!==T.trim()?T.split(" ").forEach((function(e){w[e.trim()]=!0})):w=o()({},w,T),a.data=o()({},b,{style:x,attrs:o()({},b.attrs,_),class:w,domProps:o()({},b.domProps,k),scopedSlots:o()({},b.scopedSlots,D),directives:[].concat(i()(b.directives||[]),i()(A))}),a.componentOptions?(a.componentOptions.propsData=a.componentOptions.propsData||{},a.componentOptions.listeners=a.componentOptions.listeners||{},a.componentOptions.propsData=o()({},a.componentOptions.propsData,h),a.componentOptions.listeners=o()({},a.componentOptions.listeners,p),v&&(a.componentOptions.children=v)):(v&&(a.children=v),a.data.on=o()({},a.data.on||{},p)),a.data.on=o()({},a.data.on||{},m),void 0!==f&&(a.key=f,a.data.key=f),"string"==typeof I&&(a.data.ref=I),a}
/***/},
/***/"7b0b":
/***/function(e,t,n){"use strict";var r=n("1d80"),i=Object;
// `ToObject` abstract operation
// https://tc39.es/ecma262/#sec-toobject
e.exports=function(e){return i(r(e))}},
/***/"7b83":
/***/function(e,t,n){var r=n("7c64"),i=n("93ed"),a=n("2478"),o=n("a5245"),s=n("1fc8");
/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `MapCache`.
c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},
/***/"7b97":
/***/function(e,t,n){var r=n("7e64"),i=n("a2be"),a=n("1c3c"),o=n("b1e5"),s=n("42a2"),c=n("6747"),l=n("0d24"),u=n("73ac"),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,g,m,v){var y=c(e),A=c(t),b=y?f:s(e),w=A?f:s(t),x=(b=b==h?d:b)==d,C=(w=w==h?d:w)==d,_=b==w;if(_&&l(e)){if(!l(t))return!1;y=!0,x=!1}if(_&&!x)return v||(v=new r),y||u(e)?i(e,t,n,g,m,v):a(e,t,b,n,g,m,v);if(!(1&n)){var I=x&&p.call(e,"__wrapped__"),E=C&&p.call(t,"__wrapped__");if(I||E){var k=I?e.value():e,S=E?t.value():t;return v||(v=new r),m(k,S,n,g,v)}}return!!_&&(v||(v=new r),o(e,t,n,g,m,v))}},
/***/"7b9e":
/***/function(e,t,n){n("658f"),n("0b99"),e.exports=n("8aab")},
/***/"7bb0":
/***/function(e,t,n){"use strict";
// https://tc39.github.io/proposal-setmap-offrom/
var r=n("f083"),i=n("2ce8"),a=n("911a"),o=n("8fc4");e.exports=function(e){r(r.S,e,{from:function(e/* , mapFn, thisArg */){var t,n,r,s,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),null==e?new this:(n=[],t?(r=0,s=a(c,arguments[2],2),o(e,!1,(function(e){n.push(s(e,r++))}))):o(e,!1,n.push,n),new this(n))}})}},
/***/"7bc9":
/***/function(e,t){
// 20.2.2.28 Math.sign(x)
e.exports=Math.sign||function(e){
// eslint-disable-next-line no-self-compare
return 0==(e=+e)||e!=e?e:e<0?-1:1};
/***/},
/***/"7bd6":
/***/function(e,t,n){
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var r=n("f083");r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,a=n>>>0;return(t>>>0)-(r>>>0)-((~i&a|(i^~a)&i-a>>>0)>>>31)|0}})},
/***/"7bf9":
/***/function(e,t,n){"use strict";
// B.2.3.9 String.prototype.italics()
n("e681")("italics",(function(e){return function(){return e(this,"i","","")}}))},
/***/"7c3c":
/***/function(e,t,n){var r=n("93e0"),i=n("11e2"),a=n("2761").f,o=n("dbb2").f,s=n("37a2"),c=n("66ac"),l=r.RegExp,u=l,h=l.prototype,f=/a/g,d=/a/g,p=new l(f)!==f;if(n("c94e")&&(!p||n("f937")((function(){
// RegExp constructor can alter flags and IsRegExp works correct with @@match
return d[n("de24")("match")]=!1,l(f)!=f||l(d)==d||"/a/i"!=l(f,"i")})))){l=function(e,t){var n=this instanceof l,r=s(e),a=void 0===t;return!n&&r&&e.constructor===l&&a?e:i(p?new u(r&&!a?e.source:e,t):u((r=e instanceof l)?e.source:e,r&&a?c.call(e):t),n?this:h,l)};for(var g=function(e){e in l||a(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},m=o(u),v=0;m.length>v;)g(m[v++]);h.constructor=l,l.prototype=h,n("77ea")(r,"RegExp",l)}n("3a2f")("RegExp")},
/***/"7c64":
/***/function(e,t,n){var r=n("e24b"),i=n("5e2e"),a=n("79bc");
/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},
/***/"7c73":
/***/function(e,t,n){"use strict";
/* global ActiveXObject -- old IE, WSH */var r,i=n("825a"),a=n("37e8"),o=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),h="prototype",f="script",d=u("IE_PROTO"),p=function(){/* empty */},g=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){/* ignore */}var e,t,n;v="undefined"!=typeof document?document.domain&&r?m(r):(t=l("iframe"),n="java"+f+":",t.style.display="none",c.appendChild(t),
// https://github.com/zloirock/core-js/issues/475
t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(r);for(// WSH
var i=o.length;i--;)delete v[h][o[i]];return v()};s[d]=!0,
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
// eslint-disable-next-line es/no-object-create -- safe
e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=i(e),n=new p,p[h]=null,
// add "__proto__" for Object.getPrototypeOf polyfill
n[d]=e):n=v(),void 0===t?n:a.f(n,t)}},
/***/"7cc8":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"7d1c":
/***/function(e,t,n){"use strict";
// based on rc-tree 2.1.3
e.exports=n("1d31")},
/***/"7d1f":
/***/function(e,t,n){var r=n("087d"),i=n("6747");
/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},
/***/"7d24":
/***/function(e,t,n){n("1b1e")("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/"7d42":
/***/function(e,t,n){n("658f"),n("0b99"),e.exports=n("b1b3")},
/***/"7d54":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("59ed"),o=n("825a"),s=n("46c4");
// `Iterator.prototype.forEach` method
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){o(this),a(e);var t=s(this),n=0;i(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},
/***/"7d6c":
/***/function(e,t,n){"use strict";
/* unused harmony export HOVER_STATE_NORMAL */
/* harmony export (binding) */n.d(t,"d",(function(){return d})),
/* harmony export (binding) */n.d(t,"e",(function(){return p})),
/* harmony export (binding) */n.d(t,"g",(function(){return g})),
/* harmony export (binding) */n.d(t,"a",(function(){return m})),
/* harmony export (binding) */n.d(t,"j",(function(){return v})),
/* unused harmony export Z2_SELECT_LIFT */
/* harmony export (binding) */n.d(t,"c",(function(){return A})),
/* harmony export (binding) */n.d(t,"b",(function(){return b})),
/* harmony export (binding) */n.d(t,"f",(function(){return w})),
/* harmony export (binding) */n.d(t,"i",(function(){return x})),
/* harmony export (binding) */n.d(t,"h",(function(){return C})),
/* harmony export (binding) */n.d(t,"H",(function(){return P})),
/* unused harmony export clearStates */
/* harmony export (binding) */n.d(t,"G",(function(){return Q})),
/* unused harmony export enterEmphasisWhenMouseOver */
/* unused harmony export leaveEmphasisWhenMouseOut */
/* harmony export (binding) */n.d(t,"r",(function(){return N})),
/* harmony export (binding) */n.d(t,"C",(function(){return F})),
/* harmony export (binding) */n.d(t,"q",(function(){return z})),
/* harmony export (binding) */n.d(t,"B",(function(){return H})),
/* harmony export (binding) */n.d(t,"s",(function(){return U})),
/* harmony export (binding) */n.d(t,"D",(function(){return G})),
/* harmony export (binding) */n.d(t,"k",(function(){return W})),
/* unused harmony export blurSeries */
/* harmony export (binding) */n.d(t,"l",(function(){return Y})),
/* harmony export (binding) */n.d(t,"m",(function(){return K})),
/* harmony export (binding) */n.d(t,"t",(function(){return $})),
/* harmony export (binding) */n.d(t,"x",(function(){return J})),
/* harmony export (binding) */n.d(t,"w",(function(){return X})),
/* harmony export (binding) */n.d(t,"K",(function(){return Z})),
/* harmony export (binding) */n.d(t,"L",(function(){return ee})),
/* harmony export (binding) */n.d(t,"u",(function(){return te})),
/* harmony export (binding) */n.d(t,"o",(function(){return ne})),
/* unused harmony export disableHoverEmphasis */
/* harmony export (binding) */n.d(t,"J",(function(){return re})),
/* harmony export (binding) */n.d(t,"p",(function(){return ie})),
/* harmony export (binding) */n.d(t,"I",(function(){return se})),
/* harmony export (binding) */n.d(t,"F",(function(){return ce})),
/* harmony export (binding) */n.d(t,"y",(function(){return le})),
/* harmony export (binding) */n.d(t,"n",(function(){return ue})),
/* harmony export (binding) */n.d(t,"v",(function(){return he})),
/* harmony export (binding) */n.d(t,"A",(function(){return fe})),
/* harmony export (binding) */n.d(t,"z",(function(){return de})),
/* harmony export (binding) */n.d(t,"E",(function(){return pe}));
/* harmony import */var r=n("6d8b"),i=n("861c"),a=n("41ef"),o=n("e0d3"),s=n("cbe5"),c=1,l={},u=Object(o.o)(),h=Object(o.o)(),f=0,d=1,p=2,g=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,y=9,A="highlight",b="downplay",w="select",x="unselect",C="toggleSelect";
/* harmony import */function _(e){return null!=e&&"none"!==e}function I(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function E(e){
// Only mark the flag.
// States will be applied in the echarts.ts in next frame.
I(e,"emphasis",p)}function k(e){
// Only mark the flag.
// States will be applied in the echarts.ts in next frame.
e.hoverState===p&&I(e,"normal",f)}function S(e){I(e,"blur",d)}function B(e){e.hoverState===d&&I(e,"normal",f)}function M(e){e.selected=!0}function T(e){e.selected=!1}function O(e,t,n){t(e,n)}function D(e,t,n){O(e,t,n),e.isGroup&&e.traverse((function(e){O(e,t,n)}))}function P(e,t){switch(t){case"emphasis":e.hoverState=p;break;case"normal":e.hoverState=f;break;case"blur":e.hoverState=d;break;case"select":e.selected=!0}}
/**
 * If we reuse elements when rerender.
 * DON'T forget to clearStates before we update the style and shape.
 * Or we may update on the wrong state instead of normal state.
 */function L(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var o=n&&Object(r.indexOf)(n,"select")>=0,c=!1;if(e instanceof s.b){var l=u(e),h=o&&l.selectFill||l.normalFill,f=o&&l.selectStroke||l.normalStroke;if(_(h)||_(f)){var d=(i=i||{}).style||{};
// inherit case
"inherit"===d.fill?(c=!0,i=Object(r.extend)({},i),(d=Object(r.extend)({},d)).fill=h):!_(d.fill)&&_(h)?(c=!0,
// Not modify the original value.
i=Object(r.extend)({},i),
// Already being applied 'emphasis'. DON'T lift color multiple times.
(d=Object(r.extend)({},d)).fill=Object(a.liftColor)(h)):!_(d.stroke)&&_(f)&&(c||(i=Object(r.extend)({},i),d=Object(r.extend)({},d)),d.stroke=Object(a.liftColor)(f)),i.style=d}}if(i&&null==i.z2){c||(i=Object(r.extend)({},i));var p=e.z2EmphasisLift;i.z2=e.z2+(null!=p?p:v)}return i}(this,0,t,n);if("blur"===e)return function(e,t,n){var i=Object(r.indexOf)(e.currentStates,t)>=0,a=e.style.opacity,o=i?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],c=i[s];a[s]=null==c?r&&r[s]:c}for(o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&"style"===l.targetName&&l.saveTo(a,t)}return a}(e,["opacity"],t,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(
// clone state
n=Object(r.extend)({},n),s=Object(r.extend)({
// Already being applied 'emphasis'. DON'T mul opacity multiple times.
opacity:i?a:.1*o.opacity},s),n.style=s),n}(this,e,n);if("select"===e)return function(e,t,n){
// const hasSelect = indexOf(el.currentStates, stateName) >= 0;
if(n&&null==n.z2){n=Object(r.extend)({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:y)}return n}(this,0,n)}return n}
/**
 * Set hover style (namely "emphasis style") of element.
 * @param el Should not be `zrender/graphic/Group`.
 * @param focus 'self' | 'selfInSeries' | 'series'
 */function Q(e){e.stateProxy=L;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=L),n&&(n.stateProxy=L)}function R(e,t){!V(e,t)&&!e.__highByOuter&&D(e,E)}function j(e,t){!V(e,t)&&!e.__highByOuter&&D(e,k)}function N(e,t){e.__highByOuter|=1<<(t||0),D(e,E)}function F(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&D(e,k)}function z(e){D(e,S)}function H(e){D(e,B)}function U(e){D(e,M)}function G(e){D(e,T)}function V(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function W(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var a=h(r),o="series"===t,s=o?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!o&&i.push(s),a.isBlured&&(
// Leave blur anyway
s.group.traverse((function(e){B(e)})),o&&n.push(r)),a.isBlured=!1})),Object(r.each)(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function q(e,t,n,i){var a=i.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&H(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var s=a.getSeriesByIndex(e),c=s.coordinateSystem;c&&c.master&&(c=c.master);var l=[];a.eachSeries((function(e){var a=s===e,u=e.coordinateSystem;// If there is no coordinate system. use sameSeries instead.
if(u&&u.master&&(u=u.master),!(
// Not blur other series if blurScope series
"series"===n&&!a||"coordinateSystem"===n&&!(u&&c?u===c:a)||"series"===t&&a)){if(i.getViewOfSeriesModel(e).group.traverse((function(e){
// For the elements that have been triggered by other components,
// and are still required to be highlighted,
// because the current is directly forced to blur the element,
// it will cause the focus self to be unable to highlight, so skip the blur of this element.
e.__highByOuter&&a&&"self"===t||S(e)})),Object(r.isArrayLike)(t))o(e.getData(),t);else if(Object(r.isObject)(t))for(var f=Object(r.keys)(t),d=0;d<f.length;d++)o(e.getData(f[d]),t[f[d]]);l.push(e),h(e).isBlured=!0}})),a.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,a)}}))}}function Y(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){h(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){S(e)}))}}}function K(e,t,n){var a=e.seriesIndex,s=e.getData(t.dataType);if(s){var c=Object(o.u)(s,t);
// Pick the first one if there is multiple/none exists.
c=(Object(r.isArray)(c)?c[0]:c)||0;var l=s.getItemGraphicEl(c);if(!l)
// If data on dataIndex is NaN.
for(var u=s.count(),h=0;!l&&h<u;)l=s.getItemGraphicEl(h++);if(l){var f=Object(i.a)(l);q(a,f.focus,f.blurScope,n)}else{
// If there is no element put on the data. Try getting it from raw option
// TODO Should put it on seriesModel?
var d=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=d&&q(a,d,p,n)}}}function $(e,t,n,r){var a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=r.getModel().getComponent(e,t);if(!o)return a;var s=r.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var c,l=s.findHighDownDispatchers(n),u=0
// At presnet, the component (like Geo) only blur inside itself.
// So we do not use `blurScope` in component.
;u<l.length;u++)if("self"===Object(i.a)(l[u]).focus){c=!0;break}return{focusSelf:c,dispatchers:l}}function J(e,t,n){var a=Object(i.a)(e),o=$(a.componentMainType,a.componentIndex,a.componentHighDownName,n),s=o.dispatchers,c=o.focusSelf;
// If `findHighDownDispatchers` is supported on the component,
// highlight/downplay elements with the same name.
s?(c&&Y(a.componentMainType,a.componentIndex,n),Object(r.each)(s,(function(e){return R(e,t)}))):(
// Try blur all in the related series. Then emphasis the hoverred.
// TODO. progressive mode.
q(a.seriesIndex,a.focus,a.blurScope,n),"self"===a.focus&&Y(a.componentMainType,a.componentIndex,n),
// Other than series, component that not support `findHighDownDispatcher` will
// also use it. But in this case, highlight/downplay are only supported in
// mouse hover but not in dispatchAction.
R(e,t))}function X(e,t,n){W(n);var a=Object(i.a)(e),o=$(a.componentMainType,a.componentIndex,a.componentHighDownName,n).dispatchers;o?Object(r.each)(o,(function(e){return j(e,t)})):j(e,t)}function Z(e,t,n){if(fe(t)){var i=t.dataType,a=e.getData(i),s=Object(o.u)(a,t);Object(r.isArray)(s)||(s=[s]),e[t.type===C?"toggleSelect":t.type===w?"select":"unselect"](s,i)}}function ee(e){var t=e.getAllData();Object(r.each)(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?U(t):G(t)}))}))}function te(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(r.each)(n,(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}}))})),t}
/**
 * Enable the function that mouseover will trigger the emphasis state.
 *
 * NOTE:
 * This function should be used on the element with dataIndex, seriesIndex.
 *
 */function ne(e,t,n){ce(e,!0),D(e,Q),ie(e,t,n)}function re(e,t,n,r){r?function(e){ce(e,!1)}(e):ne(e,t,n)}function ie(e,t,n){var r=Object(i.a)(e);null!=t?(
// TODO dataIndex may be set after this function. This check is not useful.
// if (ecData.dataIndex == null) {
//     if (__DEV__) {
//         console.warn('focus can only been set on element with dataIndex');
//     }
// }
// else {
r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var ae=["emphasis","blur","select"],oe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};
/**
 * Set emphasis/blur/selected states of element.
 */
function se(e,t,n,
// default itemStyle
r){n=n||"itemStyle";for(var i=0;i<ae.length;i++){var a=ae[i],o=t.getModel([a,n]);
// Let it throw error if getterType is not found.
e.ensureState(a).style=r?r(o):o[oe[n]]()}}
/**
 *
 * Set element as highlight / downplay dispatcher.
 * It will be checked when element received mouseover event or from highlight action.
 * It's in change of all highlight/downplay behavior of it's children.
 *
 * @param el
 * @param el.highDownSilentOnTouch
 *        In touch device, mouseover event will be trigger on touchstart event
 *        (see module:zrender/dom/HandlerProxy). By this mechanism, we can
 *        conveniently use hoverStyle when tap on touch screen without additional
 *        code for compatibility.
 *        But if the chart/component has select feature, which usually also use
 *        hoverStyle, there might be conflict between 'select-highlight' and
 *        'hover-highlight' especially when roam is enabled (see geo for example).
 *        In this case, `highDownSilentOnTouch` should be used to disable
 *        hover-highlight on touch device.
 * @param asDispatcher If `false`, do not set as "highDownDispatcher".
 */function ce(e,t){var n=!1===t,r=e;
// Make `highDownSilentOnTouch` and `onStateChange` only work after
// `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.
e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),
// Simple optimize, since this method might be
// called for each elements of a group in some cases.
n&&!r.__highDownDispatcher||(
// Emphasis, normal can be triggered manually by API or other components like hover link.
// el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);
// Also keep previous record.
r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function le(e){return!(!e||!e.__highDownDispatcher)}
/**
 * Enable component highlight/downplay features:
 * + hover link (within the same name)
 * + focus blur in component
 */function ue(e,t,n){var r=Object(i.a)(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}
/**
 * Support highlight/downplay record on each elements.
 * For the case: hover highlight/downplay (legend, visualMap, ...) and
 * user triggered highlight/downplay should not conflict.
 * Only all of the highlightDigit cleared, return to normal.
 * @param {string} highlightKey
 * @return {number} highlightDigit
 */function he(e){var t=l[e];return null==t&&c<=32&&(t=l[e]=c++),t}function fe(e){var t=e.type;return t===w||t===x||t===C}function de(e){var t=e.type;return t===A||t===b}function pe(e){var t=u(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}
/***/},
/***/"7db0":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,a=n("44d2"),o="find",s=!0;
// Shouldn't skip holes
// eslint-disable-next-line es/no-array-prototype-find -- testing
o in[]&&Array(1)[o]((function(){s=!1})),
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
r({target:"Array",proto:!0,forced:s},{find:function(e/* , that = undefined */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
a(o)},
/***/"7df4":
/***/function(e,t,n){
// 20.2.2.16 Math.fround(x)
var r=n("f083");r(r.S,"Math",{fround:n("d49b")})},
/***/"7e64":
/***/function(e,t,n){var r=n("5e2e"),i=n("efb6"),a=n("2fcc"),o=n("802a"),s=n("55a3"),c=n("d02c");
/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function l(e){var t=this.__data__=new r(e);this.size=t.size}
// Add methods to `Stack`.
l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},
/***/"7e79":
/***/function(e,t,n){var r;self,r=()=>(()=>{var e={173:(e,t,n)=>{(e.exports=n(252)(!1)).push([e.id,'\n.vue-cropper[data-v-8ed66ddc] {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  box-sizing: border-box;\n  user-select: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  direction: ltr;\n  touch-action: none;\n  text-align: left;\n  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-8ed66ddc],\n.cropper-box-canvas[data-v-8ed66ddc],\n.cropper-drag-box[data-v-8ed66ddc],\n.cropper-crop-box[data-v-8ed66ddc],\n.cropper-face[data-v-8ed66ddc] {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  user-select: none;\n}\n.cropper-box-canvas img[data-v-8ed66ddc] {\n  position: relative;\n  text-align: left;\n  user-select: none;\n  transform: none;\n  max-width: none;\n  max-height: none;\n}\n.cropper-box[data-v-8ed66ddc] {\n  overflow: hidden;\n}\n.cropper-move[data-v-8ed66ddc] {\n  cursor: move;\n}\n.cropper-crop[data-v-8ed66ddc] {\n  cursor: crosshair;\n}\n.cropper-modal[data-v-8ed66ddc] {\n  background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-8ed66ddc] {\n  /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-8ed66ddc] {\n  display: block;\n  overflow: hidden;\n  width: 100%;\n  height: 100%;\n  outline: 1px solid #39f;\n  outline-color: rgba(51, 153, 255, 0.75);\n  user-select: none;\n}\n.cropper-view-box img[data-v-8ed66ddc] {\n  user-select: none;\n  text-align: left;\n  max-width: none;\n  max-height: none;\n}\n.cropper-face[data-v-8ed66ddc] {\n  top: 0;\n  left: 0;\n  background-color: #fff;\n  opacity: 0.1;\n}\n.crop-info[data-v-8ed66ddc] {\n  position: absolute;\n  left: 0px;\n  min-width: 65px;\n  text-align: center;\n  color: white;\n  line-height: 20px;\n  background-color: rgba(0, 0, 0, 0.8);\n  font-size: 12px;\n}\n.crop-line[data-v-8ed66ddc] {\n  position: absolute;\n  display: block;\n  width: 100%;\n  height: 100%;\n  opacity: 0.1;\n}\n.line-w[data-v-8ed66ddc] {\n  top: -3px;\n  left: 0;\n  height: 5px;\n  cursor: n-resize;\n}\n.line-a[data-v-8ed66ddc] {\n  top: 0;\n  left: -3px;\n  width: 5px;\n  cursor: w-resize;\n}\n.line-s[data-v-8ed66ddc] {\n  bottom: -3px;\n  left: 0;\n  height: 5px;\n  cursor: s-resize;\n}\n.line-d[data-v-8ed66ddc] {\n  top: 0;\n  right: -3px;\n  width: 5px;\n  cursor: e-resize;\n}\n.crop-point[data-v-8ed66ddc] {\n  position: absolute;\n  width: 8px;\n  height: 8px;\n  opacity: 0.75;\n  background-color: #39f;\n  border-radius: 100%;\n}\n.point1[data-v-8ed66ddc] {\n  top: -4px;\n  left: -4px;\n  cursor: nw-resize;\n}\n.point2[data-v-8ed66ddc] {\n  top: -5px;\n  left: 50%;\n  margin-left: -3px;\n  cursor: n-resize;\n}\n.point3[data-v-8ed66ddc] {\n  top: -4px;\n  right: -4px;\n  cursor: ne-resize;\n}\n.point4[data-v-8ed66ddc] {\n  top: 50%;\n  left: -4px;\n  margin-top: -3px;\n  cursor: w-resize;\n}\n.point5[data-v-8ed66ddc] {\n  top: 50%;\n  right: -4px;\n  margin-top: -3px;\n  cursor: e-resize;\n}\n.point6[data-v-8ed66ddc] {\n  bottom: -5px;\n  left: -4px;\n  cursor: sw-resize;\n}\n.point7[data-v-8ed66ddc] {\n  bottom: -5px;\n  left: 50%;\n  margin-left: -3px;\n  cursor: s-resize;\n}\n.point8[data-v-8ed66ddc] {\n  bottom: -5px;\n  right: -4px;\n  cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-8ed66ddc] {\n    position: absolute;\n    width: 20px;\n    height: 20px;\n    opacity: 0.45;\n    background-color: #39f;\n    border-radius: 100%;\n}\n.point1[data-v-8ed66ddc] {\n    top: -10px;\n    left: -10px;\n}\n.point2[data-v-8ed66ddc],\n  .point4[data-v-8ed66ddc],\n  .point5[data-v-8ed66ddc],\n  .point7[data-v-8ed66ddc] {\n    display: none;\n}\n.point3[data-v-8ed66ddc] {\n    top: -10px;\n    right: -10px;\n}\n.point4[data-v-8ed66ddc] {\n    top: 0;\n    left: 0;\n}\n.point6[data-v-8ed66ddc] {\n    bottom: -10px;\n    left: -10px;\n}\n.point8[data-v-8ed66ddc] {\n    bottom: -10px;\n    right: -10px;\n}\n}\n',""])},252:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var a=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(o).concat([a]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<e.length;i++){var o=e[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},125:(e,t,n)=>{var r=n(173);"string"==typeof r&&(r=[[e.id,r,""]]),n(723)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},723:(e,t,n)=>{var r,i,a={},o=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},c=function(){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=s.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),l=null,u=0,h=[],f=n(947);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=a[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(A(r.parts[o],t))}else{var s=[];for(o=0;o<r.parts.length;o++)s.push(A(r.parts[o],t));a[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i],o=t.base?a[0]+t.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function g(e,t){var n=c(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=h[h.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=c(e.insertAt.before,n);n.insertBefore(t,i)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=h.indexOf(e);t>=0&&h.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=n.nc;r&&(e.attrs.nonce=r)}return y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function A(e,t){var n,r,i,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var o=u++;n=l||(l=v(t)),r=x.bind(null,n,o,!1),i=x.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),g(e,t),t}(t),r=_.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=C.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var o=n[i];(s=a[o.id]).refs--,r.push(s)}for(e&&d(p(e,t),t),i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete a[s.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function C(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function _(e,t,n){var r=n.css,i=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||a)&&(r=f(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}},947:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,a=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(i=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{VueCropper:()=>l,default:()=>h});var e=function(){var e=this,t=e._self._c;return t("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:e.scaleImg,mouseout:e.cancelScale}},[e.imgs?t("div",{staticClass:"cropper-box"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}},[t("img",{ref:"cropperImg",attrs:{src:e.imgs,alt:"cropper-img"}})])]):e._e(),e._v(" "),t("div",{staticClass:"cropper-drag-box",class:{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping},on:{mousedown:e.startMove,touchstart:e.startMove}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"}},[t("span",{staticClass:"cropper-view-box"},[t("img",{style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"},attrs:{src:e.imgs,alt:"cropper-img"}})]),e._v(" "),t("span",{staticClass:"cropper-face cropper-move",on:{mousedown:e.cropMove,touchstart:e.cropMove}}),e._v(" "),e.info?t("span",{staticClass:"crop-info",style:{top:e.cropInfo.top}},[e._v(e._s(e.cropInfo.width)+" × "+e._s(e.cropInfo.height))]):e._e(),e._v(" "),e.fixedBox?e._e():t("span",[t("span",{staticClass:"crop-line line-w",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,1)}}}),e._v(" "),t("span",{staticClass:"crop-line line-a",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,1,0)}}}),e._v(" "),t("span",{staticClass:"crop-line line-s",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,2)}}}),e._v(" "),t("span",{staticClass:"crop-line line-d",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,2,0)}}}),e._v(" "),t("span",{staticClass:"crop-point point1",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,1,1)},touchstart:function(t){return e.changeCropSize(t,!0,!0,1,1)}}}),e._v(" "),t("span",{staticClass:"crop-point point2",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,1)}}}),e._v(" "),t("span",{staticClass:"crop-point point3",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,2,1)},touchstart:function(t){return e.changeCropSize(t,!0,!0,2,1)}}}),e._v(" "),t("span",{staticClass:"crop-point point4",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,1,0)}}}),e._v(" "),t("span",{staticClass:"crop-point point5",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,2,0)}}}),e._v(" "),t("span",{staticClass:"crop-point point6",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,1,2)},touchstart:function(t){return e.changeCropSize(t,!0,!0,1,2)}}}),e._v(" "),t("span",{staticClass:"crop-point point7",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,2)}}}),e._v(" "),t("span",{staticClass:"crop-point point8",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,2,2)},touchstart:function(t){return e.changeCropSize(t,!0,!0,2,2)}}})])])])};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e._withStripped=!0;var a={getData:function(e){return new Promise((function(t,n){var r={};(function(e){var t=null;return new Promise((function(n,r){if(e.src)if(/^data\:/i.test(e.src))t=function(e){e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var t=atob(e),n=t.length,r=new ArrayBuffer(n),i=new Uint8Array(r),a=0;a<n;a++)i[a]=t.charCodeAt(a);return r}(e.src),n(t);else if(/^blob\:/i.test(e.src)){var i=new FileReader;i.onload=function(e){t=e.target.result,n(t)},function(e){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="blob",t.onload=function(e){var t;200!=this.status&&0!==this.status||(t=this.response,i.readAsArrayBuffer(t))},t.send()}(e.src)}else{var a=new XMLHttpRequest;a.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";t=a.response,n(t),a=null},a.open("GET",e.src,!0),a.responseType="arraybuffer",a.send(null)}else r("img error")}))})(e).then((function(e){r.arrayBuffer=e,r.orientation=function(e){var t,n,r,i,a,o,s,c,l,u=new DataView(e),h=u.byteLength;if(255===u.getUint8(0)&&216===u.getUint8(1))for(c=2;c<h;){if(255===u.getUint8(c)&&225===u.getUint8(c+1)){o=c;break}c++}if(o&&(n=o+10,"Exif"===function(e,t,n){var r,i="";for(r=t,n+=t;r<n;r++)i+=String.fromCharCode(e.getUint8(r));return i}(u,o+4,4)&&((i=18761===(a=u.getUint16(n)))||19789===a)&&42===u.getUint16(n+2,i)&&(r=u.getUint32(n+4,i))>=8&&(s=n+r)),s)for(h=u.getUint16(s,i),l=0;l<h;l++)if(c=s+12*l+2,274===u.getUint16(c,i)){c+=8,t=u.getUint16(c,i);break}return t}(e),t(r)})).catch((function(e){n(e)}))}))}};const o=a,s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10},validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}}},computed:{cropInfo:function(){var e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE:function(){return navigator.userAgent,!!window.ActiveXObject||"ActiveXObject"in window},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(e){""!==e&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(e,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(e){e&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(e){for(var t=navigator.userAgent.split(" "),n="",r=new RegExp(e,"i"),i=0;i<t.length;i++)r.test(t[i])&&(n=t[i]);return n?n.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(e,t,n,r){var i=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var a=this.getVersion("version");a[0]>13&&a[1]>1&&(t=-1)}else{var o=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(o){var s=o[1];((s=s.split("_"))[0]>13||s[0]>=13&&s[1]>=4)&&(t=-1)}}var c=document.createElement("canvas"),l=c.getContext("2d");switch(l.save(),t){case 2:c.width=n,c.height=r,l.translate(n,0),l.scale(-1,1);break;case 3:c.width=n,c.height=r,l.translate(n/2,r/2),l.rotate(180*Math.PI/180),l.translate(-n/2,-r/2);break;case 4:c.width=n,c.height=r,l.translate(0,r),l.scale(1,-1);break;case 5:c.height=n,c.width=r,l.rotate(.5*Math.PI),l.scale(1,-1);break;case 6:c.width=r,c.height=n,l.translate(r/2,n/2),l.rotate(90*Math.PI/180),l.translate(-n/2,-r/2);break;case 7:c.height=n,c.width=r,l.rotate(.5*Math.PI),l.translate(n,-r),l.scale(-1,1);break;case 8:c.height=n,c.width=r,l.translate(r/2,n/2),l.rotate(-90*Math.PI/180),l.translate(-n/2,-r/2);break;default:c.width=n,c.height=r}l.drawImage(e,0,0,n,r),l.restore(),c.toBlob((function(e){var t=URL.createObjectURL(e);URL.revokeObjectURL(i.imgs),i.imgs=t}),"image/"+this.outputType,1)},checkedImg:function(){var e=this;if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(""===e.img)return e.$emit("imgLoad","error"),e.$emit("img-load","error"),!1;var n=t.width,r=t.height;o.getData(t).then((function(i){e.orientation=i.orientation||1;var a=Number(e.maxImgSize);!e.orientation&&n<a&r<a?e.imgs=e.img:(n>a&&(r=r/n*a,n=a),r>a&&(n=n/r*a,r=a),e.checkOrientationImage(t,e.orientation,n,r))}))},t.onerror=function(){e.$emit("imgLoad","error"),e.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var n=new XMLHttpRequest;n.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},n.open("GET",this.img,!0),n.responseType="blob",n.send()}else t.src=this.img},startMove:function(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==e.touches.length&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(e){var t=this;e.preventDefault();var n=this.scale,r=this.touches[0].clientX,i=this.touches[0].clientY,a=e.touches[0].clientX,o=e.touches[0].clientY,s=this.touches[1].clientX,c=this.touches[1].clientY,l=e.touches[1].clientX,u=e.touches[1].clientY,h=Math.sqrt(Math.pow(r-s,2)+Math.pow(i-c,2)),f=Math.sqrt(Math.pow(a-l,2)+Math.pow(o-u,2))-h,d=1,p=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*f;if(!this.touchNow){if(this.touchNow=!0,f>0?n+=Math.abs(p):f<0&&n>Math.abs(p)&&(n-=Math.abs(p)),this.touches=e.touches,setTimeout((function(){t.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n}},cancelTouchScale:function(e){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(e){var t=this;if(e.preventDefault(),e.touches&&2===e.touches.length)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var n,r,i="clientX"in e?e.clientX:e.touches[0].clientX,a="clientY"in e?e.clientY:e.touches[0].clientY;n=i-this.moveX,r=a-this.moveY,this.$nextTick((function(){if(t.centerBox){var e,i,a,o,s=t.getImgAxis(n,r,t.scale),c=t.getCropAxis(),l=t.trueHeight*t.scale,u=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:e=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(l-u)/2,i=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(u-l)/2,a=e-l+t.cropW,o=i-u+t.cropH;break;default:e=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,i=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,a=e-u+t.cropW,o=i-l+t.cropH}s.x1>=c.x1&&(n=e),s.y1>=c.y1&&(r=i),s.x2<=c.x2&&(n=a),s.y2<=c.y2&&(r=o)}t.x=n,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})}))},leaveImg:function(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(e){var t=this;e.preventDefault();var n=this.scale,r=e.deltaY||e.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var i=this.coe,a=(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)*r;a<0?n+=Math.abs(a):n>Math.abs(a)&&(n-=Math.abs(a));var o=a<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){t.scaling=!1,t.coe=t.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n},changeScale:function(e){var t=this.scale;e=e||1;var n=20;if((e*=n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth)>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(e){var t=this;e.preventDefault();var n="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,r="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick((function(){var e=n-t.cropX,i=r-t.cropY;if(e>0?(t.cropW=e+t.cropChangeX>t.w?t.w-t.cropChangeX:e,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(e)>t.w?t.cropChangeX:Math.abs(e),t.cropOffsertX=t.cropChangeX+e>0?t.cropChangeX+e:0),t.fixed){var a=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];a+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=e>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=a,t.cropOffsertY=t.cropOffsertY}else i>0?(t.cropH=i+t.cropChangeY>t.h?t.h-t.cropChangeY:i,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(i)>t.h?t.cropChangeY:Math.abs(i),t.cropOffsertY=t.cropChangeY+i>0?t.cropChangeY+i:0)}))},changeCropSize:function(e,t,n,r,i){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=n,this.changeCropTypeX=r,this.changeCropTypeY=i,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(e){var t=this;e.preventDefault();var n="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,r="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0,a=this.w,o=this.h,s=0,c=0;if(this.centerBox){var l=this.getImgAxis(),u=l.x2,h=l.y2;s=l.x1>0?l.x1:0,c=l.y1>0?l.y1:0,a>u&&(a=u),o>h&&(o=h)}var f=i(this.checkCropLimitSize(),2),d=f[0],p=f[1];this.$nextTick((function(){var e=n-t.cropX,i=r-t.cropY;if(t.canChangeX&&(1===t.changeCropTypeX?t.cropOldW-e<d?(t.cropW=d,t.cropOffsertX=t.cropOldW+t.cropChangeX-s-d):t.cropOldW-e>0?(t.cropW=a-t.cropChangeX-e<=a-s?t.cropOldW-e:t.cropOldW+t.cropChangeX-s,t.cropOffsertX=a-t.cropChangeX-e<=a-s?t.cropChangeX+e:s):(t.cropW=Math.abs(e)+t.cropChangeX<=a?Math.abs(e)-t.cropOldW:a-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):2===t.changeCropTypeX&&(t.cropOldW+e<d?t.cropW=d:t.cropOldW+e>0?(t.cropW=t.cropOldW+e+t.cropOffsertX<=a?t.cropOldW+e:a-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=a-t.cropChangeX+Math.abs(e+t.cropOldW)<=a-s?Math.abs(e+t.cropOldW):t.cropChangeX-s,t.cropOffsertX=a-t.cropChangeX+Math.abs(e+t.cropOldW)<=a-s?t.cropChangeX-Math.abs(e+t.cropOldW):s))),t.canChangeY&&(1===t.changeCropTypeY?t.cropOldH-i<p?(t.cropH=p,t.cropOffsertY=t.cropOldH+t.cropChangeY-c-p):t.cropOldH-i>0?(t.cropH=o-t.cropChangeY-i<=o-c?t.cropOldH-i:t.cropOldH+t.cropChangeY-c,t.cropOffsertY=o-t.cropChangeY-i<=o-c?t.cropChangeY+i:c):(t.cropH=Math.abs(i)+t.cropChangeY<=o?Math.abs(i)-t.cropOldH:o-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):2===t.changeCropTypeY&&(t.cropOldH+i<p?t.cropH=p:t.cropOldH+i>0?(t.cropH=t.cropOldH+i+t.cropOffsertY<=o?t.cropOldH+i:o-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=o-t.cropChangeY+Math.abs(i+t.cropOldH)<=o-c?Math.abs(i+t.cropOldH):t.cropChangeY-c,t.cropOffsertY=o-t.cropChangeY+Math.abs(i+t.cropOldH)<=o-c?t.cropChangeY-Math.abs(i+t.cropOldH):c))),t.canChangeX&&t.fixed){var l=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];l<p?(t.cropH=p,t.cropW=t.fixedNumber[0]*p/t.fixedNumber[1],1===t.changeCropTypeX&&(t.cropOffsertX=t.cropChangeX+(t.cropOldW-t.cropW))):l+t.cropOffsertY>o?(t.cropH=o-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],1===t.changeCropTypeX&&(t.cropOffsertX=t.cropChangeX+(t.cropOldW-t.cropW))):t.cropH=l}if(t.canChangeY&&t.fixed){var u=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];u<d?(t.cropW=d,t.cropH=t.fixedNumber[1]*d/t.fixedNumber[0]):u+t.cropOffsertX>a?(t.cropW=a-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=u}t.$emit("cropSizing",{cropW:t.cropW,cropH:t.cropH}),t.$emit("crop-sizing",{cropW:t.cropW,cropH:t.cropH})}))},checkCropLimitSize:function(){this.cropW,this.cropH;var e=this.limitMinSize,t=new Array;return t=Array.isArray(e)?e:[e,e],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize:function(e,t,n,r,i,a){var o=e/t,s=i,c=a;return s<n&&(s=n,c=Math.ceil(s/o)),c<r&&(c=r,(s=Math.ceil(c*o))<n&&(s=n,c=Math.ceil(s/o))),s<i&&(s=i,c=Math.ceil(s/o)),c<a&&(c=a,s=Math.ceil(c*o)),{width:s,height:c}},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);var e=i(this.checkCropLimitSize(),2),t=e[0],n=e[1],r=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,n,this.cropW,this.cropH):{width:t,height:n},a=r.width,o=r.height;a>this.cropW&&(this.cropW=a,this.cropOffsertX+a>this.w&&(this.cropOffsertX=this.w-a)),o>this.cropH&&(this.cropH=o,this.cropOffsertY+o>this.h&&(this.cropOffsertY=this.h-o)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&2===e.touches.length)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,n,r="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY;t=r-this.cropOffsertX,n=i-this.cropOffsertY,this.cropX=t,this.cropY=n,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(e,t){var n=this,r=0,i=0;e&&(e.preventDefault(),r="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick((function(){var e,a,o=r-n.cropX,s=i-n.cropY;if(t&&(o=n.cropOffsertX,s=n.cropOffsertY),e=o<=0?0:o+n.cropW>n.w?n.w-n.cropW:o,a=s<=0?0:s+n.cropH>n.h?n.h-n.cropH:s,n.centerBox){var c=n.getImgAxis();e<=c.x1&&(e=c.x1),e+n.cropW>c.x2&&(e=c.x2-n.cropW),a<=c.y1&&(a=c.y1),a+n.cropH>c.y2&&(a=c.y2-n.cropH)}n.cropOffsertX=e,n.cropOffsertY=a,n.$emit("cropMoving",{moving:!0,axis:n.getCropAxis()}),n.$emit("crop-moving",{moving:!0,axis:n.getCropAxis()})}))},getImgAxis:function(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;var r={x1:0,x2:0,y1:0,y2:0},i=this.trueWidth*n,a=this.trueHeight*n;switch(this.rotate){case 0:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n;break;case 1:case-1:case 3:case-3:r.x1=e+this.trueWidth*(1-n)/2+(i-a)/2,r.x2=r.x1+this.trueHeight*n,r.y1=t+this.trueHeight*(1-n)/2+(a-i)/2,r.y2=r.y1+this.trueWidth*n;break;default:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n}return r},getCropAxis:function(){var e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop:function(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(e){var t=this,n=document.createElement("canvas"),r=new Image,i=this.rotate,a=this.trueWidth,o=this.trueHeight,s=this.cropOffsertX,c=this.cropOffsertY;function l(e,t){n.width=Math.round(e),n.height=Math.round(t)}r.onload=function(){if(0!==t.cropW){var u=n.getContext("2d"),h=1;t.high&!t.full&&(h=window.devicePixelRatio),1!==t.enlarge&!t.full&&(h=Math.abs(Number(t.enlarge)));var f=t.cropW*h,d=t.cropH*h,p=a*t.scale*h,g=o*t.scale*h,m=(t.x-s+t.trueWidth*(1-t.scale)/2)*h,v=(t.y-c+t.trueHeight*(1-t.scale)/2)*h;switch(l(f,d),u.save(),i){case 0:t.full?(l(f/t.scale,d/t.scale),u.drawImage(r,m/t.scale,v/t.scale,p/t.scale,g/t.scale)):u.drawImage(r,m,v,p,g);break;case 1:case-3:t.full?(l(f/t.scale,d/t.scale),m=m/t.scale+(p/t.scale-g/t.scale)/2,v=v/t.scale+(g/t.scale-p/t.scale)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,v,-m-g/t.scale,p/t.scale,g/t.scale)):(m+=(p-g)/2,v+=(g-p)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,v,-m-g,p,g));break;case 2:case-2:t.full?(l(f/t.scale,d/t.scale),u.rotate(90*i*Math.PI/180),m/=t.scale,v/=t.scale,u.drawImage(r,-m-p/t.scale,-v-g/t.scale,p/t.scale,g/t.scale)):(u.rotate(90*i*Math.PI/180),u.drawImage(r,-m-p,-v-g,p,g));break;case 3:case-1:t.full?(l(f/t.scale,d/t.scale),m=m/t.scale+(p/t.scale-g/t.scale)/2,v=v/t.scale+(g/t.scale-p/t.scale)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,-v-p/t.scale,m,p/t.scale,g/t.scale)):(m+=(p-g)/2,v+=(g-p)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,-v-p,m,p,g));break;default:t.full?(l(f/t.scale,d/t.scale),u.drawImage(r,m/t.scale,v/t.scale,p/t.scale,g/t.scale)):u.drawImage(r,m,v,p,g)}u.restore()}else{var y=a*t.scale,A=o*t.scale,b=n.getContext("2d");switch(b.save(),i){case 0:l(y,A),b.drawImage(r,0,0,y,A);break;case 1:case-3:l(A,y),b.rotate(90*i*Math.PI/180),b.drawImage(r,0,-A,y,A);break;case 2:case-2:l(y,A),b.rotate(90*i*Math.PI/180),b.drawImage(r,-y,-A,y,A);break;case 3:case-1:l(A,y),b.rotate(90*i*Math.PI/180),b.drawImage(r,-y,0,y,A);break;default:l(y,A),b.drawImage(r,0,0,y,A)}b.restore()}e(n)},"data"!==this.img.substr(0,4)&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(e){var t=this;this.getCropChecked((function(n){e(n.toDataURL("image/"+t.outputType,t.outputSize))}))},getCropBlob:function(e){var t=this;this.getCropChecked((function(n){n.toBlob((function(t){return e(t)}),"image/"+t.outputType,t.outputSize)}))},showPreview:function(){var e=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((function(){e.isCanShow=!0}),16);var t=this.cropW,n=this.cropH,r=this.scale,i={};i.div={width:"".concat(t,"px"),height:"".concat(n,"px")};var a=(this.x-this.cropOffsertX)/r,o=(this.y-this.cropOffsertY)/r;i.w=t,i.h=n,i.url=this.imgs,i.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(a,"px, ").concat(o,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},i.html='\n      <div class="show-preview" style="width: '.concat(i.w,"px; height: ").concat(i.h,'px; overflow: hidden">\n        <div style="width: ').concat(t,"px; height: ").concat(n,'px">\n          <img src=').concat(i.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n          scale(").concat(r,")translate3d(").concat(a,"px, ").concat(o,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n        </div>\n      </div>'),this.$emit("realTime",i),this.$emit("real-time",i)},reload:function(){var e=this,t=new Image;t.onload=function(){e.w=parseFloat(window.getComputedStyle(e.$refs.cropper).width),e.h=parseFloat(window.getComputedStyle(e.$refs.cropper).height),e.trueWidth=t.width,e.trueHeight=t.height,e.original?e.scale=1:e.scale=e.checkedMode(),e.$nextTick((function(){e.x=-(e.trueWidth-e.trueWidth*e.scale)/2+(e.w-e.trueWidth*e.scale)/2,e.y=-(e.trueHeight-e.trueHeight*e.scale)/2+(e.h-e.trueHeight*e.scale)/2,e.loading=!1,e.autoCrop&&e.goAutoCrop(),e.$emit("img-load","success"),e.$emit("imgLoad","success"),setTimeout((function(){e.showPreview()}),20)}))},t.onerror=function(){e.$emit("imgLoad","error"),e.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var e=1,t=(this.trueWidth,this.trueHeight),n=this.mode.split(" ");switch(n[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":(t*=e=this.w/this.trueWidth)<this.h&&(e=(t=this.h)/this.trueHeight);break;default:try{var r=n[0];if(-1!==r.search("px")){r=r.replace("px","");var i=parseFloat(r)/this.trueWidth,a=1,o=n[1];-1!==o.search("px")&&(o=o.replace("px",""),a=(t=parseFloat(o))/this.trueHeight),e=Math.min(i,a)}if(-1!==r.search("%")&&(r=r.replace("%",""),e=parseFloat(r)/100*this.w/this.trueWidth),2===n.length&&"auto"===r){var s=n[1];-1!==s.search("px")&&(s=s.replace("px",""),e=(t=parseFloat(s))/this.trueHeight),-1!==s.search("%")&&(s=s.replace("%",""),e=(t=parseFloat(s)/100*this.h)/this.trueHeight)}}catch(t){e=1}}return e},goAutoCrop:function(e,t){if(""!==this.imgs&&null!==this.imgs){this.clearCrop(),this.cropping=!0;var n=this.w,r=this.h;if(this.centerBox){var i=Math.abs(this.rotate)%2>0,a=(i?this.trueHeight:this.trueWidth)*this.scale,o=(i?this.trueWidth:this.trueHeight)*this.scale;n=a<n?a:n,r=o<r?o:r}var s=e||parseFloat(this.autoCropWidth),c=t||parseFloat(this.autoCropHeight);0!==s&&0!==c||(s=.8*n,c=.8*r),s=s>n?n:s,c=c>r?r:c,this.fixed&&(c=s/this.fixedNumber[0]*this.fixedNumber[1]),c>this.h&&(s=(c=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(s,c)}},changeCrop:function(e,t){var n=this;if(this.centerBox){var r=this.getImgAxis();e>r.x2-r.x1&&(t=(e=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(e=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,this.checkCropLimitSize(),this.$nextTick((function(){n.cropOffsertX=(n.w-n.cropW)/2,n.cropOffsertY=(n.h-n.cropH)/2,n.centerBox&&n.moveCrop(null,!0)}))},refresh:function(){var e=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((function(){e.checkedImg()}))},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;var r=!0;if(this.centerBox){var i=this.getImgAxis(e,t,n),a=this.getCropAxis();i.x1>=a.x1&&(r=!1),i.x2<=a.x2&&(r=!1),i.y1>=a.y1&&(r=!1),i.y2<=a.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var e=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,n,r){for(var i=atob(this.toDataURL(n,r).split(",")[1]),a=i.length,o=new Uint8Array(a),s=0;s<a;s++)o[s]=i.charCodeAt(s);t(new Blob([o],{type:e.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}};n(125);var c=function(e,t,n,r,i,a){var o="function"==typeof e?e.options:e;return t&&(o.render=t,o.staticRenderFns=[],o._compiled=!0),a&&(o._scopeId="data-v-"+a),{exports:e,options:o}}(s,e,0,0,0,"8ed66ddc");const l=c.exports;var u=function(e){e.component("VueCropper",l)};"undefined"!=typeof window&&window.Vue&&u(window.Vue);const h={version:"0.5.11",install:u,VueCropper:l,vueCropper:l}})(),r})(),e.exports=r()},
/***/"7ec2":
/***/function(e,t,n){n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("d9e2"),n("14d9"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("1f68"),n("131a"),n("d3b7"),n("3ca3"),n("0643"),n("4e3e"),n("159b"),n("ddb0");var r=n("7037").default;function i(){"use strict";
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),o=new D(r||[]);return s(a,"_invoke",{value:B(e,n,o)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var g="suspendedStart",m="suspendedYield",v="executing",y="completed",A={};function b(){}function w(){}function x(){}var C={};f(C,l,(function(){return this}));var _=Object.getPrototypeOf,I=_&&_(_(P([])));I&&I!==a&&o.call(I,l)&&(C=I);var E=x.prototype=b.prototype=Object.create(C);function k(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==r(h)&&o.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function B(e,n,r){var i=g;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=M(s,r);if(c){if(c===A)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=p(e,n,r);if("normal"===l.type){if(i=r.done?y:m,l.arg===A)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var a=p(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,A;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,A):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=x,s(E,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,h,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},k(S.prototype),f(S.prototype,u,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var o=new S(d(e,t,r,i),a);return n.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(E),f(E,h,"Generator"),f(E,l,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),A}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"7ec7":
/***/function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var r=n(1)(n(2),n(15),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,a=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(i=e,a=e.default);var s="function"==typeof a?a.options:a;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}})),s.computed=c}return{esModule:i,exports:a,options:s}}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),n(4),n(11),n(13);var i=r(n(14));t.default={name:"VOwlCarousel",props:{items:{type:Number,default:3},margin:{type:Number,default:0},loop:{type:Boolean,default:!1},center:{type:Boolean,default:!1},mouseDrag:{type:Boolean,default:!0},touchDrag:{type:Boolean,default:!0},pullDrag:{type:Boolean,default:!0},freeDrag:{type:Boolean,default:!1},stagePadding:{type:Number,default:0},merge:{type:Boolean,default:!1},mergeFit:{type:Boolean,default:!1},autoWidth:{type:Boolean,default:!1},startPosition:{type:Number,default:0},uRLhashListener:{type:Boolean,default:!1},nav:{type:Boolean,default:!0},rewind:{type:Boolean,default:!0},navText:{type:Array,default:function(){return["next","prev"]}},navElement:{type:String,default:"div"},slideBy:{type:[Number,String],default:1},slideTransition:{type:String,default:""},dots:{type:Boolean,default:!0},dotsEach:{type:[Number,Boolean],default:!1},dotsData:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},lazyLoadEager:{type:Number,default:0},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Boolean,default:!1},autoplayTimeout:{type:Number,default:5e3},autoplayHoverPause:{type:Boolean,default:!1},smartSpeed:{type:Number,default:250},fluidSpeed:{type:[Number,Boolean],default:!1},navSpeed:{type:[Number,Boolean],default:!1},dragEndSpeed:{type:[Number,Boolean],default:!1},callbacks:{type:Boolean,default:!0},responsive:{type:Object,default:function(){}},responsiveRefreshRate:{type:Number,default:200},video:{type:Boolean,default:!1},videoHeight:{type:[Number,Boolean],default:!1},videoWidth:{type:[Number,Boolean],default:!1},animateOut:{type:[String,Boolean],default:!1},animateIn:{type:[String,Boolean],default:!1},fallbackEasing:{type:String,default:"swing"},info:{type:Function,default:function(){}},itemElement:{type:String,default:"div"},stageElement:{type:String,default:"div"},navContainer:{type:[String,Boolean],default:!1},dotsContainer:{type:[String,Boolean],default:!1},checkVisible:{type:Boolean,default:!0}},data:function(){return{showPrev:!1,showNext:!0,prevHandler:"carousel_prev_"+this.generateUniqueId(),elementHandle:"carousel_"+this.generateUniqueId(),nextHandler:"carousel_next_"+this.generateUniqueId()}},mounted:function(){var t=this,n=e("#"+this.elementHandle).owlCarousel({items:this.items,margin:this.margin,loop:this.loop,center:this.center,mouseDrag:this.mouseDrag,touchDrag:this.touchDrag,pullDrag:this.pullDrag,freeDrag:this.freeDrag,stagePadding:this.stagePadding,merge:this.merge,mergeFit:this.mergeFit,autoWidth:this.autoWidth,startPosition:this.startPosition,uRLhashListener:this.uRLhashListener,nav:this.nav,rewind:this.rewind,navText:this.navText,navElement:this.navElement,slideBy:this.slideBy,slideTransition:this.slideTransition,dots:this.dots,dotsEach:this.dotsEach,dotsData:this.dotsData,lazyLoad:this.lazyLoad,lazyLoadEager:this.lazyLoadEager,autoplay:this.autoplay,autoplaySpeed:this.autoplaySpeed,autoplayTimeout:this.autoplayTimeout,autoplayHoverPause:this.autoplayHoverPause,smartSpeed:this.smartSpeed,fluidSpeed:this.fluidSpeed,navSpeed:this.navSpeed,dragEndSpeed:this.dragEndSpeed,callbacks:this.callbacks,responsive:this.responsive,responsiveRefreshRate:this.responsiveRefreshRate,video:this.video,videoHeight:this.videoHeight,videoWidth:this.videoWidth,animateOut:this.animateOut,animateIn:this.animateIn,fallbackEasing:this.fallbackEasing,info:this.info,itemElement:this.itemElement,stageElement:this.stageElement,navContainer:this.navContainer,dotsContainer:this.dotsContainer,checkVisible:this.checkVisible});e("#"+this.prevHandler).click((function(){n.trigger("prev.owl.carousel")})),e("#"+this.nextHandler).click((function(){n.trigger("next.owl.carousel")})),i.default.forEach((function(e){n.on(e+".owl.carousel",(function(n){t.$emit(e,n)}))})),this.loop||n.on("changed.owl.carousel",(function(e){0===e.item.index?(t.showPrev=!1,t.showNext=!0):Math.floor(e.item.index+e.page.size)===e.item.count?(t.showPrev=!0,t.showNext=!1):(t.showPrev=!0,t.showNext=!0)}))},methods:{generateUniqueId:function(){return Math.random().toString(36).substring(2,15)}}}}).call(t,n(3))},function(e,t,n){var r;
/*!
	 * jQuery JavaScript Library v3.3.1
	 * https://jquery.com/
	 *
	 * Includes Sizzle.js
	 * https://sizzlejs.com/
	 *
	 * Copyright JS Foundation and other contributors
	 * Released under the MIT license
	 * https://jquery.org/license
	 *
	 * Date: 2018-01-20T17:24Z
	 */!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";function a(e,t,n){var r,i=(t=t||le).createElement("script");if(i.text=e,n)for(r in Ce)n[r]&&(i[r]=n[r]);t.head.appendChild(i).parentNode.removeChild(i)}function o(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ge[me.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=o(e);return!we(e)&&!xe(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function c(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function l(e,t,n){return we(t)?Ie.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?Ie.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?Ie.grep(e,(function(e){return pe.call(t,e)>-1!==n})):Ie.filter(t,e,n)}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function h(e){var t={};return Ie.each(e.match(Re)||[],(function(e,n){t[n]=!0})),t}function f(e){return e}function d(e){throw e}function p(e,t,n,r){var i;try{e&&we(i=e.promise)?i.call(e).done(t).fail(n):e&&we(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function g(){le.removeEventListener("DOMContentLoaded",g),n.removeEventListener("load",g),Ie.ready()}function m(e,t){return t.toUpperCase()}function v(e){return e.replace(ze,"ms-").replace(He,m)}function y(){this.expando=Ie.expando+y.uid++}function A(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:We.test(e)?JSON.parse(e):e)}function b(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(qe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=A(n)}catch(e){}Ve.set(e,t,n)}else n=void 0;return n}function w(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return Ie.css(e,t,"")},c=s(),l=n&&n[3]||(Ie.cssNumber[t]?"":"px"),u=(Ie.cssNumber[t]||"px"!==l&&+c)&&Ke.exec(Ie.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;o--;)Ie.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,Ie.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}function x(e){var t,n=e.ownerDocument,r=e.nodeName,i=Ze[r];return i||(t=n.body.appendChild(n.createElement(r)),i=Ie.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Ze[r]=i,i)}function C(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=Ge.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&Je(r)&&(i[a]=x(r))):"none"!==n&&(i[a]="none",Ge.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}function _(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&c(e,t)?Ie.merge([e],n):n}function I(e,t){for(var n=0,r=e.length;n<r;n++)Ge.set(e[n],"globalEval",!t||Ge.get(t[n],"globalEval"))}function E(e,t,n,r,i){for(var a,s,c,l,u,h,f=t.createDocumentFragment(),d=[],p=0,g=e.length;p<g;p++)if((a=e[p])||0===a)if("object"===o(a))Ie.merge(d,a.nodeType?[a]:a);else if(it.test(a)){for(s=s||f.appendChild(t.createElement("div")),c=(tt.exec(a)||["",""])[1].toLowerCase(),l=rt[c]||rt._default,s.innerHTML=l[1]+Ie.htmlPrefilter(a)+l[2],h=l[0];h--;)s=s.lastChild;Ie.merge(d,s.childNodes),(s=f.firstChild).textContent=""}else d.push(t.createTextNode(a));for(f.textContent="",p=0;a=d[p++];)if(r&&Ie.inArray(a,r)>-1)i&&i.push(a);else if(u=Ie.contains(a.ownerDocument,a),s=_(f.appendChild(a),"script"),u&&I(s),n)for(h=0;a=s[h++];)nt.test(a.type||"")&&n.push(a);return f}function k(){return!0}function S(){return!1}function B(){try{return le.activeElement}catch(e){}}function M(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)M(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=S;else if(!i)return e;return 1===a&&(o=i,i=function(e){return Ie().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=Ie.guid++)),e.each((function(){Ie.event.add(this,t,i,r,n)}))}function T(e,t){return c(e,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&Ie(e).children("tbody")[0]||e}function O(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function D(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function P(e,t){var n,r,i,a,o,s,c,l;if(1===t.nodeType){if(Ge.hasData(e)&&(a=Ge.access(e),o=Ge.set(t,a),l=a.events))for(i in delete o.handle,o.events={},l)for(n=0,r=l[i].length;n<r;n++)Ie.event.add(t,i,l[i][n]);Ve.hasData(e)&&(s=Ve.access(e),c=Ie.extend({},s),Ve.set(t,c))}}function L(e,t){var n=t.nodeName.toLowerCase();"input"===n&&et.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Q(e,t,n,r){t=fe.apply([],t);var i,o,s,c,l,u,h=0,f=e.length,d=f-1,p=t[0],g=we(p);if(g||f>1&&"string"==typeof p&&!be.checkClone&&ht.test(p))return e.each((function(i){var a=e.eq(i);g&&(t[0]=p.call(this,i,a.html())),Q(a,t,n,r)}));if(f&&(o=(i=E(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(c=(s=Ie.map(_(i,"script"),O)).length;h<f;h++)l=i,h!==d&&(l=Ie.clone(l,!0,!0),c&&Ie.merge(s,_(l,"script"))),n.call(e[h],l,h);if(c)for(u=s[s.length-1].ownerDocument,Ie.map(s,D),h=0;h<c;h++)l=s[h],nt.test(l.type||"")&&!Ge.access(l,"globalEval")&&Ie.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Ie._evalUrl&&Ie._evalUrl(l.src):a(l.textContent.replace(ft,""),u,l))}return e}function R(e,t,n){for(var r,i=t?Ie.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||Ie.cleanData(_(r)),r.parentNode&&(n&&Ie.contains(r.ownerDocument,r)&&I(_(r,"script")),r.parentNode.removeChild(r));return e}function j(e,t,n){var r,i,a,o,s=e.style;return(n=n||pt(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||Ie.contains(e.ownerDocument,e)||(o=Ie.style(e,t)),!be.pixelBoxStyles()&&dt.test(o)&&gt.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function N(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in wt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=bt.length;n--;)if((e=bt[n]+t)in wt)return e}function z(e){var t=Ie.cssProps[e];return t||(t=Ie.cssProps[e]=F(e)||e),t}function H(e,t,n){var r=Ke.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function U(e,t,n,r,i,a){var o="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=Ie.css(e,n+$e[o],!0,i)),r?("content"===n&&(c-=Ie.css(e,"padding"+$e[o],!0,i)),"margin"!==n&&(c-=Ie.css(e,"border"+$e[o]+"Width",!0,i))):(c+=Ie.css(e,"padding"+$e[o],!0,i),"padding"!==n?c+=Ie.css(e,"border"+$e[o]+"Width",!0,i):s+=Ie.css(e,"border"+$e[o]+"Width",!0,i));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-c-s-.5))),c}function G(e,t,n){var r=pt(e),i=j(e,t,r),a="border-box"===Ie.css(e,"boxSizing",!1,r),o=a;if(dt.test(i)){if(!n)return i;i="auto"}return o=o&&(be.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===Ie.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(i=parseFloat(i)||0)+U(e,t,n||(a?"border":"content"),o,r,i)+"px"}function V(e,t,n,r,i){return new V.prototype.init(e,t,n,r,i)}function W(){Ct&&(!1===le.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(W):n.setTimeout(W,Ie.fx.interval),Ie.fx.tick())}function q(){return n.setTimeout((function(){xt=void 0})),xt=Date.now()}function Y(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=$e[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function K(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function $(e,t,n){var r,i,a,o,s,c,l,u,h="width"in t||"height"in t,f=this,d={},p=e.style,g=e.nodeType&&Je(e),m=Ge.get(e,"fxshow");for(r in n.queue||(null==(o=Ie._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always((function(){f.always((function(){o.unqueued--,Ie.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],_t.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||Ie.style(e,r)}if((c=!Ie.isEmptyObject(t))||!Ie.isEmptyObject(d))for(r in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=m&&m.display)&&(l=Ge.get(e,"display")),"none"===(u=Ie.css(e,"display"))&&(l?u=l:(C([e],!0),l=e.style.display||l,u=Ie.css(e,"display"),C([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===Ie.css(e,"float")&&(c||(f.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,d)c||(m?"hidden"in m&&(g=m.hidden):m=Ge.access(e,"fxshow",{display:l}),a&&(m.hidden=!g),g&&C([e],!0),f.done((function(){for(r in g||C([e]),Ge.remove(e,"fxshow"),d)Ie.style(e,r,d[r])}))),c=K(g?m[r]:0,r,f),r in m||(m[r]=c.start,g&&(c.end=c.start,c.start=0))}function J(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=v(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=Ie.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}function X(e,t,n){var r,i,a=0,o=X.prefilters.length,s=Ie.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=xt||q(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Ie.extend({},t),opts:Ie.extend(!0,{specialEasing:{},easing:Ie.easing._default},n),originalProperties:t,originalOptions:n,startTime:xt||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Ie.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(J(u,l.opts.specialEasing);a<o;a++)if(r=X.prefilters[a].call(l,e,u,l.opts))return we(r.stop)&&(Ie._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return Ie.map(u,K,l),we(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Ie.fx.timer(Ie.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}function Z(e){return(e.match(Re)||[]).join(" ")}function ee(e){return e.getAttribute&&e.getAttribute("class")||""}function te(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Re)||[]}function ne(e,t,n,r){var i;if(Array.isArray(t))Ie.each(t,(function(t,i){n||Qt.test(e)?r(e,i):ne(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==o(t))r(e,t);else for(i in t)ne(e+"["+i+"]",t[i],n,r)}function re(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(Re)||[];if(we(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function ie(e,t,n,r){function i(s){var c;return a[s]=!0,Ie.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||a[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),i(l),!1)})),c}var a={},o=e===Yt;return i(t.dataTypes[0])||!a["*"]&&i("*")}function ae(e,t){var n,r,i=Ie.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Ie.extend(!0,e,r),e}function oe(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function se(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift())if("*"===a)a=c;else if("*"!==c&&c!==a){if(!(o=l[c+" "+a]||l["* "+a]))for(i in l)if((s=i.split(" "))[1]===a&&(o=l[c+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[i]:!0!==l[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+c+" to "+a}}}return{state:"success",data:t}}var ce=[],le=n.document,ue=Object.getPrototypeOf,he=ce.slice,fe=ce.concat,de=ce.push,pe=ce.indexOf,ge={},me=ge.toString,ve=ge.hasOwnProperty,ye=ve.toString,Ae=ye.call(Object),be={},we=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},xe=function(e){return null!=e&&e===e.window},Ce={type:!0,src:!0,noModule:!0},_e="3.3.1",Ie=function(e,t){return new Ie.fn.init(e,t)},Ee=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Ie.fn=Ie.prototype={jquery:_e,constructor:Ie,length:0,toArray:function(){return he.call(this)},get:function(e){return null==e?he.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Ie.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Ie.each(this,e)},map:function(e){return this.pushStack(Ie.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(he.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:de,sort:ce.sort,splice:ce.splice},Ie.extend=Ie.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||we(o)||(o={}),s===c&&(o=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(l&&r&&(Ie.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,a=n&&Array.isArray(n)?n:[]):a=n&&Ie.isPlainObject(n)?n:{},o[t]=Ie.extend(l,a,r)):void 0!==r&&(o[t]=r));return o},Ie.extend({expando:"jQuery"+(_e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==me.call(e)||(t=ue(e))&&(n=ve.call(t,"constructor")&&t.constructor,"function"!=typeof n||ye.call(n)!==Ae))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){a(e)},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(Ee,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?Ie.merge(n,"string"==typeof e?[e]:e):de.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:pe.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,o=[];if(s(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);return fe.apply([],o)},guid:1,support:be}),"function"==typeof Symbol&&(Ie.fn[Symbol.iterator]=ce[Symbol.iterator]),Ie.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){ge["[object "+t+"]"]=t.toLowerCase()}));var ke=
/*!
	 * Sizzle CSS Selector Engine v2.3.3
	 * https://sizzlejs.com/
	 *
	 * Copyright jQuery Foundation and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2016-08-08
	 */
function(e){function t(e,t,n,r){var i,a,o,s,c,l,u,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:z)!==D&&O(t),t=t||D,L)){if(11!==p&&(c=ve.exec(e)))if(i=c[1]){if(9===p){if(!(o=t.getElementById(i)))return n;if(o.id===i)return n.push(o),n}else if(f&&(o=f.getElementById(i))&&N(t,o)&&o.id===i)return n.push(o),n}else{if(c[2])return X.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&x.getElementsByClassName&&t.getElementsByClassName)return X.apply(n,t.getElementsByClassName(i)),n}if(x.qsa&&!W[e+" "]&&(!Q||!Q.test(e))){if(1!==p)f=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(we,xe):t.setAttribute("id",s=F),a=(l=E(e)).length;a--;)l[a]="#"+s+" "+d(l[a]);u=l.join(","),f=ye.test(e)&&h(t.parentNode)||t}if(u)try{return X.apply(n,f.querySelectorAll(u)),n}catch(e){}finally{s===F&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function o(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&_e(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r((function(t){return t=+t,r((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function h(e){return e&&void 0!==e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=U++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,c){var l,u,h,f=[H,s];if(c){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(h=t[F]||(t[F]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[a])&&l[0]===H&&l[1]===s)return f[2]=l[2];if(u[a]=f,f[2]=e(t,n,c))return!0}return!1}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,a=n.length;i<a;i++)t(e,n[i],r);return r}function v(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),l&&t.push(s)));return o}function y(e,t,n,i,a,o){return i&&!i[F]&&(i=y(i)),a&&!a[F]&&(a=y(a,o)),r((function(r,o,s,c){var l,u,h,f=[],d=[],p=o.length,g=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:v(g,f,e,s,c),A=n?a||(r?e:p||i)?[]:o:y;if(n&&n(y,A,s,c),i)for(l=v(A,d),i(l,[],s,c),u=l.length;u--;)(h=l[u])&&(A[d[u]]=!(y[d[u]]=h));if(r){if(a||e){if(a){for(l=[],u=A.length;u--;)(h=A[u])&&l.push(y[u]=h);a(null,A=[],l,c)}for(u=A.length;u--;)(h=A[u])&&(l=a?ee(r,h):f[u])>-1&&(r[l]=!(o[l]=h))}}else A=v(A===o?A.splice(p,A.length):A),a?a(null,o,A,c):X.apply(o,A)}))}function A(e){for(var t,n,r,i=e.length,a=C.relative[e[0].type],o=a||C.relative[" "],s=a?1:0,c=p((function(e){return e===t}),o,!0),l=p((function(e){return ee(t,e)>-1}),o,!0),u=[function(e,n,r){var i=!a&&(r||n!==B)||((t=n).nodeType?c(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=C.relative[e[s].type])u=[p(g(u),n)];else{if((n=C.filter[e[s].type].apply(null,e[s].matches))[F]){for(r=++s;r<i&&!C.relative[e[r].type];r++);return y(s>1&&g(u),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&A(e.slice(s,r)),r<i&&A(e=e.slice(r)),r<i&&d(e))}u.push(n)}return g(u)}function b(e,n){var i=n.length>0,a=e.length>0,o=function(r,o,s,c,l){var u,h,f,d=0,p="0",g=r&&[],m=[],y=B,A=r||a&&C.find.TAG("*",l),b=H+=null==y?1:Math.random()||.1,w=A.length;for(l&&(B=o===D||o||l);p!==w&&null!=(u=A[p]);p++){if(a&&u){for(h=0,o||u.ownerDocument===D||(O(u),s=!L);f=e[h++];)if(f(u,o||D,s)){c.push(u);break}l&&(H=b)}i&&((u=!f&&u)&&d--,r&&g.push(u))}if(d+=p,i&&p!==d){for(h=0;f=n[h++];)f(g,m,o,s);if(r){if(d>0)for(;p--;)g[p]||m[p]||(m[p]=$.call(c));m=v(m)}X.apply(c,m),l&&!r&&m.length>0&&d+n.length>1&&t.uniqueSort(c)}return l&&(H=b,B=y),g};return i?r(o):o}var w,x,C,_,I,E,k,S,B,M,T,O,D,P,L,Q,R,j,N,F="sizzle"+1*new Date,z=e.document,H=0,U=0,G=n(),V=n(),W=n(),q=function(e,t){return e===t&&(T=!0),0},Y={}.hasOwnProperty,K=[],$=K.pop,J=K.push,X=K.push,Z=K.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",oe=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),he=new RegExp(ae),fe=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,Ae=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,xe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){O()},_e=p((function(e){return!0===e.disabled&&("form"in e||"label"in e)}),{dir:"parentNode",next:"legend"});try{X.apply(K=Z.call(z.childNodes),z.childNodes),K[z.childNodes.length].nodeType}catch(e){X={apply:K.length?function(e,t){J.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(w in x=t.support={},I=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:z;return r!==D&&9===r.nodeType&&r.documentElement?(P=(D=r).documentElement,L=!I(D),z!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),x.attributes=i((function(e){return e.className="i",!e.getAttribute("className")})),x.getElementsByTagName=i((function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length})),x.getElementsByClassName=me.test(D.getElementsByClassName),x.getById=i((function(e){return P.appendChild(e).id=F,!D.getElementsByName||!D.getElementsByName(F).length})),x.getById?(C.filter.ID=function(e){var t=e.replace(Ae,be);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(Ae,be);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),C.find.TAG=x.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},C.find.CLASS=x.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&L)return t.getElementsByClassName(e)},R=[],Q=[],(x.qsa=me.test(D.querySelectorAll))&&(i((function(e){P.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&Q.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||Q.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||Q.push("~="),e.querySelectorAll(":checked").length||Q.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||Q.push(".#.+[+~]")})),i((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&Q.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&Q.push(":enabled",":disabled"),P.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&Q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),Q.push(",.*:")}))),(x.matchesSelector=me.test(j=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i((function(e){x.disconnectedMatch=j.call(e,"*"),j.call(e,"[s!='']:x"),R.push("!=",ae)})),Q=Q.length&&new RegExp(Q.join("|")),R=R.length&&new RegExp(R.join("|")),t=me.test(P.compareDocumentPosition),N=t||me.test(P.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},q=t?function(e,t){if(e===t)return T=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===z&&N(z,e)?-1:t===D||t.ownerDocument===z&&N(z,t)?1:M?ee(M,e)-ee(M,t):0:4&n?-1:1)}:function(e,t){if(e===t)return T=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,s=[e],c=[t];if(!i||!a)return e===D?-1:t===D?1:i?-1:a?1:M?ee(M,e)-ee(M,t):0;if(i===a)return o(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;s[r]===c[r];)r++;return r?o(s[r],c[r]):s[r]===z?-1:c[r]===z?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&O(e),n=n.replace(ue,"='$1']"),x.matchesSelector&&L&&!W[n+" "]&&(!R||!R.test(n))&&(!Q||!Q.test(n)))try{var r=j.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&O(e),N(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&O(e);var n=C.attrHandle[t.toLowerCase()],r=n&&Y.call(C.attrHandle,t.toLowerCase())?n(e,t,!L):void 0;return void 0!==r?r:x.attributes||!L?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(we,xe)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(T=!x.detectDuplicates,M=!x.sortStable&&e.slice(0),e.sort(q),T){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return M=null,e},_=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=_(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ae,be),e[3]=(e[3]||e[4]||e[5]||"").replace(Ae,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&he.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ae,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=G[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&G(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,n,r){return function(i){var a=t.attr(i,e);return null==a?"!="===n:!n||(a+="","="===n?a===r:"!="===n?a!==r:"^="===n?r&&0===a.indexOf(r):"*="===n?r&&a.indexOf(r)>-1:"$="===n?r&&a.slice(-r.length)===r:"~="===n?(" "+a.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(a===r||a.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,h,f,d,p,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!c&&!s,A=!1;if(m){if(a){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&y){for(A=(d=(l=(u=(h=(f=m)[F]||(f[F]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===H&&l[1])&&l[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(A=d=0)||p.pop();)if(1===f.nodeType&&++A&&f===t){u[e]=[H,d,A];break}}else if(y&&(A=d=(l=(u=(h=(f=t)[F]||(f[F]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===H&&l[1]),!1===A)for(;(f=++d&&f&&f[g]||(A=d=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++A||(y&&((u=(h=f[F]||(f[F]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]=[H,A]),f!==t)););return(A-=i)===r||A%r==0&&A/r>=0}}},PSEUDO:function(e,n){var i,a=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[F]?a(n):a.length>1?(i=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r((function(e,t){for(var r,i=a(e,n),o=i.length;o--;)e[r=ee(e,i[o])]=!(t[r]=i[o])})):function(e){return a(e,0,i)}):a}},pseudos:{not:r((function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[F]?r((function(e,t,n,r){for(var a,o=i(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:r((function(e){return function(n){return t(e,n).length>0}})),contains:r((function(e){return e=e.replace(Ae,be),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}})),lang:r((function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(Ae,be).toLowerCase(),function(t){var n;do{if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===P},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u((function(){return[0]})),last:u((function(e,t){return[t-1]})),eq:u((function(e,t,n){return[n<0?n+t:n]})),even:u((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:u((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:u((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:u((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},C.pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=c(w);return f.prototype=C.filters=C.pseudos,C.setFilters=new f,E=t.tokenize=function(e,n){var r,i,a,o,s,c,l,u=V[e+" "];if(u)return n?0:u.slice(0);for(s=e,c=[],l=C.preFilter;s;){for(o in r&&!(i=ce.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(a=[])),r=!1,(i=le.exec(s))&&(r=i.shift(),a.push({value:r,type:i[0].replace(se," ")}),s=s.slice(r.length)),C.filter)!(i=de[o].exec(s))||l[o]&&!(i=l[o](i))||(r=i.shift(),a.push({value:r,type:o,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):V(e,c).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],a=W[e+" "];if(!a){for(t||(t=E(e)),n=t.length;n--;)(a=A(t[n]))[F]?r.push(a):i.push(a);(a=W(e,b(i,r))).selector=e}return a},S=t.select=function(e,t,n,r){var i,a,o,s,c,l="function"==typeof e&&e,u=!r&&E(e=l.selector||e);if(n=n||[],1===u.length){if((a=u[0]=u[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&9===t.nodeType&&L&&C.relative[a[1].type]){if(!(t=(C.find.ID(o.matches[0].replace(Ae,be),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=de.needsContext.test(e)?0:a.length;i--&&(o=a[i],!C.relative[s=o.type]);)if((c=C.find[s])&&(r=c(o.matches[0].replace(Ae,be),ye.test(a[0].type)&&h(t.parentNode)||t))){if(a.splice(i,1),!(e=r.length&&d(a)))return X.apply(n,r),n;break}}return(l||k(e,u))(r,t,!L,n,!t||ye.test(e)&&h(t.parentNode)||t),n},x.sortStable=F.split("").sort(q).join("")===F,x.detectDuplicates=!!T,O(),x.sortDetached=i((function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))})),i((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||a("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),x.attributes&&i((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||a("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),i((function(e){return null==e.getAttribute("disabled")}))||a(te,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),t}(n);Ie.find=ke,Ie.expr=ke.selectors,Ie.expr[":"]=Ie.expr.pseudos,Ie.uniqueSort=Ie.unique=ke.uniqueSort,Ie.text=ke.getText,Ie.isXMLDoc=ke.isXML,Ie.contains=ke.contains,Ie.escapeSelector=ke.escape;var Se=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Ie(e).is(n))break;r.push(e)}return r},Be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Me=Ie.expr.match.needsContext,Te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Ie.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Ie.find.matchesSelector(r,e)?[r]:[]:Ie.find.matches(e,Ie.grep(t,(function(e){return 1===e.nodeType})))},Ie.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(Ie(e).filter((function(){for(t=0;t<r;t++)if(Ie.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)Ie.find(e,i[t],n);return r>1?Ie.uniqueSort(n):n},filter:function(e){return this.pushStack(l(this,e||[],!1))},not:function(e){return this.pushStack(l(this,e||[],!0))},is:function(e){return!!l(this,"string"==typeof e&&Me.test(e)?Ie(e):e||[],!1).length}});var Oe,De=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Pe=Ie.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Oe,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:De.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Ie?t[0]:t,Ie.merge(this,Ie.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:le,!0)),Te.test(r[1])&&Ie.isPlainObject(t))for(r in t)we(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=le.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):we(e)?void 0!==n.ready?n.ready(e):e(Ie):Ie.makeArray(e,this)};Pe.prototype=Ie.fn,Oe=Ie(le);var Le=/^(?:parents|prev(?:Until|All))/,Qe={children:!0,contents:!0,next:!0,prev:!0};Ie.fn.extend({has:function(e){var t=Ie(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(Ie.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&Ie(e);if(!Me.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&Ie.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?Ie.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?pe.call(Ie(e),this[0]):pe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Ie.uniqueSort(Ie.merge(this.get(),Ie(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Ie.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Se(e,"parentNode")},parentsUntil:function(e,t,n){return Se(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return Se(e,"nextSibling")},prevAll:function(e){return Se(e,"previousSibling")},nextUntil:function(e,t,n){return Se(e,"nextSibling",n)},prevUntil:function(e,t,n){return Se(e,"previousSibling",n)},siblings:function(e){return Be((e.parentNode||{}).firstChild,e)},children:function(e){return Be(e.firstChild)},contents:function(e){return c(e,"iframe")?e.contentDocument:(c(e,"template")&&(e=e.content||e),Ie.merge([],e.childNodes))}},(function(e,t){Ie.fn[e]=function(n,r){var i=Ie.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Ie.filter(r,i)),this.length>1&&(Qe[e]||Ie.uniqueSort(i),Le.test(e)&&i.reverse()),this.pushStack(i)}}));var Re=/[^\x20\t\r\n\f]+/g;Ie.Callbacks=function(e){e="string"==typeof e?h(e):Ie.extend({},e);var t,n,r,i,a=[],s=[],c=-1,l=function(){for(i=i||e.once,r=t=!0;s.length;c=-1)for(n=s.shift();++c<a.length;)!1===a[c].apply(n[0],n[1])&&e.stopOnFalse&&(c=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},u={add:function(){return a&&(n&&!t&&(c=a.length-1,s.push(n)),function t(n){Ie.each(n,(function(n,r){we(r)?e.unique&&u.has(r)||a.push(r):r&&r.length&&"string"!==o(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return Ie.each(arguments,(function(e,t){for(var n;(n=Ie.inArray(t,a,n))>-1;)a.splice(n,1),n<=c&&c--})),this},has:function(e){return e?Ie.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},Ie.extend({Deferred:function(e){var t=[["notify","progress",Ie.Callbacks("memory"),Ie.Callbacks("memory"),2],["resolve","done",Ie.Callbacks("once memory"),Ie.Callbacks("once memory"),0,"resolved"],["reject","fail",Ie.Callbacks("once memory"),Ie.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return Ie.Deferred((function(n){Ie.each(t,(function(t,r){var i=we(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&we(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){function a(e,t,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(e<o)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,we(l)?i?l.call(n,a(o,t,f,i),a(o,t,d,i)):(o++,l.call(n,a(o,t,f,i),a(o,t,d,i),a(o,t,f,t.notifyWith))):(r!==f&&(s=void 0,c=[n]),(i||t.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(n){Ie.Deferred.exceptionHook&&Ie.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(r!==d&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?u():(Ie.Deferred.getStackHook&&(u.stackTrace=Ie.Deferred.getStackHook()),n.setTimeout(u))}}var o=0;return Ie.Deferred((function(n){t[0][3].add(a(0,n,we(i)?i:f,n.notifyWith)),t[1][3].add(a(0,n,we(e)?e:f)),t[2][3].add(a(0,n,we(r)?r:d))})).promise()},promise:function(e){return null!=e?Ie.extend(e,i):i}},a={};return Ie.each(t,(function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=he.call(arguments),a=Ie.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?he.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(p(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||we(i[n]&&i[n].then)))return a.then();for(;n--;)p(i[n],o(n),a.reject);return a.promise()}});var je=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Ie.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&je.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},Ie.readyException=function(e){n.setTimeout((function(){throw e}))};var Ne=Ie.Deferred();Ie.fn.ready=function(e){return Ne.then(e).catch((function(e){Ie.readyException(e)})),this},Ie.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Ie.readyWait:Ie.isReady)||(Ie.isReady=!0,!0!==e&&--Ie.readyWait>0||Ne.resolveWith(le,[Ie]))}}),Ie.ready.then=Ne.then,"complete"===le.readyState||"loading"!==le.readyState&&!le.documentElement.doScroll?n.setTimeout(Ie.ready):(le.addEventListener("DOMContentLoaded",g),n.addEventListener("load",g));var Fe=function(e,t,n,r,i,a,s){var c=0,l=e.length,u=null==n;if("object"===o(n))for(c in i=!0,n)Fe(e,t,c,n[c],!0,a,s);else if(void 0!==r&&(i=!0,we(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(Ie(e),n)})),t))for(;c<l;c++)t(e[c],n,s?r:r.call(e[c],c,t(e[c],n)));return i?e:u?t.call(e):l?t(e[0],n):a},ze=/^-ms-/,He=/-([a-z])/g,Ue=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};y.uid=1,y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Ue(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[v(t)]=n;else for(r in t)i[v(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(v):(t=v(t))in r?[t]:t.match(Re)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||Ie.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!Ie.isEmptyObject(t)}};var Ge=new y,Ve=new y,We=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qe=/[A-Z]/g;Ie.extend({hasData:function(e){return Ve.hasData(e)||Ge.hasData(e)},data:function(e,t,n){return Ve.access(e,t,n)},removeData:function(e,t){Ve.remove(e,t)},_data:function(e,t,n){return Ge.access(e,t,n)},_removeData:function(e,t){Ge.remove(e,t)}}),Ie.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=Ve.get(a),1===a.nodeType&&!Ge.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=v(r.slice(5)),b(a,r,i[r]));Ge.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Ve.set(this,e)})):Fe(this,(function(t){var n;if(a&&void 0===t){if(void 0!==(n=Ve.get(a,e)))return n;if(void 0!==(n=b(a,e)))return n}else this.each((function(){Ve.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Ve.remove(this,e)}))}}),Ie.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ge.get(e,t),n&&(!r||Array.isArray(n)?r=Ge.access(e,t,Ie.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=Ie.queue(e,t),r=n.length,i=n.shift(),a=Ie._queueHooks(e,t),o=function(){Ie.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,o,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ge.get(e,n)||Ge.access(e,n,{empty:Ie.Callbacks("once memory").add((function(){Ge.remove(e,[t+"queue",n])}))})}}),Ie.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Ie.queue(this[0],e):void 0===t?this:this.each((function(){var n=Ie.queue(this,e,t);Ie._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Ie.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){Ie.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Ie.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Ge.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ye=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ke=new RegExp("^(?:([+-])=|)("+Ye+")([a-z%]*)$","i"),$e=["Top","Right","Bottom","Left"],Je=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&Ie.contains(e.ownerDocument,e)&&"none"===Ie.css(e,"display")},Xe=function(e,t,n,r){var i,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,r||[]),t)e.style[a]=o[a];return i},Ze={};Ie.fn.extend({show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Je(this)?Ie(this).show():Ie(this).hide()}))}});var et=/^(?:checkbox|radio)$/i,tt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nt=/^$|^module$|\/(?:java|ecma)script/i,rt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};rt.optgroup=rt.option,rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td;var it=/<|&#?\w+;/;!function(){var e=le.createDocumentFragment().appendChild(le.createElement("div")),t=le.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),be.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",be.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var at=le.documentElement,ot=/^key/,st=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ct=/^([^.]*)(?:\.(.+)|)/;Ie.event={global:{},add:function(e,t,n,r,i){var a,o,s,c,l,u,h,f,d,p,g,m=Ge.get(e);if(m)for(n.handler&&(n=(a=n).handler,i=a.selector),i&&Ie.find.matchesSelector(at,i),n.guid||(n.guid=Ie.guid++),(c=m.events)||(c=m.events={}),(o=m.handle)||(o=m.handle=function(t){return void 0!==Ie&&Ie.event.triggered!==t.type?Ie.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(Re)||[""]).length;l--;)d=g=(s=ct.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(h=Ie.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=Ie.event.special[d]||{},u=Ie.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Ie.expr.match.needsContext.test(i),namespace:p.join(".")},a),(f=c[d])||((f=c[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(d,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),Ie.event.global[d]=!0)},remove:function(e,t,n,r,i){var a,o,s,c,l,u,h,f,d,p,g,m=Ge.hasData(e)&&Ge.get(e);if(m&&(c=m.events)){for(l=(t=(t||"").match(Re)||[""]).length;l--;)if(d=g=(s=ct.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(h=Ie.event.special[d]||{},f=c[d=(r?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=f.length;a--;)u=f[a],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(a,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(e,u));o&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||Ie.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)Ie.event.remove(e,d+t[l],n,r,!0);Ie.isEmptyObject(c)&&Ge.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=Ie.event.fix(e),c=new Array(arguments.length),l=(Ge.get(this,"events")||{})[s.type]||[],u=Ie.event.special[s.type]||{};for(c[0]=s,t=1;t<arguments.length;t++)c[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(o=Ie.event.handlers.call(this,s,l),t=0;(i=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(r=((Ie.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,c))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,a,o,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],o={},n=0;n<c;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?Ie(i,this).index(l)>-1:Ie.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(Ie.Event.prototype,e,{enumerable:!0,configurable:!0,get:we(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Ie.expando]?e:new Ie.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==B()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===B()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&c(this,"input"))return this.click(),!1},_default:function(e){return c(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Ie.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Ie.Event=function(e,t){return this instanceof Ie.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?k:S,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Ie.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),void(this[Ie.expando]=!0)):new Ie.Event(e,t)},Ie.Event.prototype={constructor:Ie.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=k,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=k,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=k,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Ie.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ot.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&st.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},Ie.event.addProp),Ie.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){Ie.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||Ie.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),Ie.fn.extend({on:function(e,t,n,r){return M(this,e,t,n,r)},one:function(e,t,n,r){return M(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Ie(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=S),this.each((function(){Ie.event.remove(this,e,n,t)}))}});var lt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ut=/<script|<style|<link/i,ht=/checked\s*(?:[^=]|=\s*.checked.)/i,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;Ie.extend({htmlPrefilter:function(e){return e.replace(lt,"<$1></$2>")},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),c=Ie.contains(e.ownerDocument,e);if(!(be.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Ie.isXMLDoc(e)))for(o=_(s),r=0,i=(a=_(e)).length;r<i;r++)L(a[r],o[r]);if(t)if(n)for(a=a||_(e),o=o||_(s),r=0,i=a.length;r<i;r++)P(a[r],o[r]);else P(e,s);return(o=_(s,"script")).length>0&&I(o,!c&&_(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Ie.event.special,a=0;void 0!==(n=e[a]);a++)if(Ue(n)){if(t=n[Ge.expando]){if(t.events)for(r in t.events)i[r]?Ie.event.remove(n,r):Ie.removeEvent(n,r,t.handle);n[Ge.expando]=void 0}n[Ve.expando]&&(n[Ve.expando]=void 0)}}}),Ie.fn.extend({detach:function(e){return R(this,e,!0)},remove:function(e){return R(this,e)},text:function(e){return Fe(this,(function(e){return void 0===e?Ie.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Q(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||T(this,e).appendChild(e)}))},prepend:function(){return Q(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Q(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Q(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Ie.cleanData(_(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return Ie.clone(this,e,t)}))},html:function(e){return Fe(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ut.test(e)&&!rt[(tt.exec(e)||["",""])[1].toLowerCase()]){e=Ie.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(Ie.cleanData(_(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Q(this,arguments,(function(t){var n=this.parentNode;Ie.inArray(this,e)<0&&(Ie.cleanData(_(this)),n&&n.replaceChild(t,this))}),e)}}),Ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){Ie.fn[e]=function(e){for(var n,r=[],i=Ie(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),Ie(i[o])[t](n),de.apply(r,n.get());return this.pushStack(r)}}));var dt=new RegExp("^("+Ye+")(?!px)[a-z%]+$","i"),pt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},gt=new RegExp($e.join("|"),"i");!function(){function e(){if(l){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(c).appendChild(l);var e=n.getComputedStyle(l);r="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),i=36===t(e.width),l.style.position="absolute",a=36===l.offsetWidth||"absolute",at.removeChild(c),l=null}}function t(e){return Math.round(parseFloat(e))}var r,i,a,o,s,c=le.createElement("div"),l=le.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",be.clearCloneStyle="content-box"===l.style.backgroundClip,Ie.extend(be,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),a}}))}();var mt=/^(none|table(?!-c[ea]).+)/,vt=/^--/,yt={position:"absolute",visibility:"hidden",display:"block"},At={letterSpacing:"0",fontWeight:"400"},bt=["Webkit","Moz","ms"],wt=le.createElement("div").style;Ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=j(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=v(t),c=vt.test(t),l=e.style;return c||(t=z(s)),o=Ie.cssHooks[t]||Ie.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:l[t]:("string"==(a=typeof n)&&(i=Ke.exec(n))&&i[1]&&(n=w(e,t,i),a="number"),void(null!=n&&n==n&&("number"===a&&(n+=i&&i[3]||(Ie.cssNumber[s]?"":"px")),be.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))))}},css:function(e,t,n,r){var i,a,o,s=v(t);return vt.test(t)||(t=z(s)),(o=Ie.cssHooks[t]||Ie.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=j(e,t,r)),"normal"===i&&t in At&&(i=At[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),Ie.each(["height","width"],(function(e,t){Ie.cssHooks[t]={get:function(e,n,r){if(n)return!mt.test(Ie.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?G(e,t,r):Xe(e,yt,(function(){return G(e,t,r)}))},set:function(e,n,r){var i,a=pt(e),o="border-box"===Ie.css(e,"boxSizing",!1,a),s=r&&U(e,t,r,o,a);return o&&be.scrollboxSize()===a.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-U(e,t,"border",!1,a)-.5)),s&&(i=Ke.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=Ie.css(e,t)),H(e,n,s)}}})),Ie.cssHooks.marginLeft=N(be.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(j(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),Ie.each({margin:"",padding:"",border:"Width"},(function(e,t){Ie.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+$e[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(Ie.cssHooks[e+t].set=H)})),Ie.fn.extend({css:function(e,t){return Fe(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=pt(e),i=t.length;o<i;o++)a[t[o]]=Ie.css(e,t[o],!1,r);return a}return void 0!==n?Ie.style(e,t,n):Ie.css(e,t)}),e,t,arguments.length>1)}}),Ie.Tween=V,V.prototype={constructor:V,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||Ie.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(Ie.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=Ie.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Ie.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Ie.fx.step[e.prop]?Ie.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[Ie.cssProps[e.prop]]&&!Ie.cssHooks[e.prop]?e.elem[e.prop]=e.now:Ie.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Ie.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Ie.fx=V.prototype.init,Ie.fx.step={};var xt,Ct,_t=/^(?:toggle|show|hide)$/,It=/queueHooks$/;Ie.Animation=Ie.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return w(n.elem,e,Ke.exec(t),n),n}]},tweener:function(e,t){we(e)?(t=e,e=["*"]):e=e.match(Re);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[$],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),Ie.speed=function(e,t,n){var r=e&&"object"==typeof e?Ie.extend({},e):{complete:n||!n&&t||we(e)&&e,duration:e,easing:n&&t||t&&!we(t)&&t};return Ie.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in Ie.fx.speeds?r.duration=Ie.fx.speeds[r.duration]:r.duration=Ie.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){we(r.old)&&r.old.call(this),r.queue&&Ie.dequeue(this,r.queue)},r},Ie.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Je).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Ie.isEmptyObject(e),a=Ie.speed(t,n,r),o=function(){var t=X(this,Ie.extend({},e),a);(i||Ge.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=Ie.timers,o=Ge.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&It.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||Ie.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Ge.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=Ie.timers,o=r?r.length:0;for(n.finish=!0,Ie.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),Ie.each(["toggle","show","hide"],(function(e,t){var n=Ie.fn[t];Ie.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Y(t,!0),e,r,i)}})),Ie.each({slideDown:Y("show"),slideUp:Y("hide"),slideToggle:Y("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){Ie.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),Ie.timers=[],Ie.fx.tick=function(){var e,t=0,n=Ie.timers;for(xt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||Ie.fx.stop(),xt=void 0},Ie.fx.timer=function(e){Ie.timers.push(e),Ie.fx.start()},Ie.fx.interval=13,Ie.fx.start=function(){Ct||(Ct=!0,W())},Ie.fx.stop=function(){Ct=null},Ie.fx.speeds={slow:600,fast:200,_default:400},Ie.fn.delay=function(e,t){return e=Ie.fx&&Ie.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=le.createElement("input"),t=le.createElement("select").appendChild(le.createElement("option"));e.type="checkbox",be.checkOn=""!==e.value,be.optSelected=t.selected,(e=le.createElement("input")).value="t",e.type="radio",be.radioValue="t"===e.value}();var Et,kt=Ie.expr.attrHandle;Ie.fn.extend({attr:function(e,t){return Fe(this,Ie.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){Ie.removeAttr(this,e)}))}}),Ie.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?Ie.prop(e,t,n):(1===a&&Ie.isXMLDoc(e)||(i=Ie.attrHooks[t.toLowerCase()]||(Ie.expr.match.bool.test(t)?Et:void 0)),void 0!==n?null===n?void Ie.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=Ie.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!be.radioValue&&"radio"===t&&c(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Re);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Et={set:function(e,t,n){return!1===t?Ie.removeAttr(e,n):e.setAttribute(n,n),n}},Ie.each(Ie.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=kt[t]||Ie.find.attr;kt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=kt[o],kt[o]=i,i=null!=n(e,t,r)?o:null,kt[o]=a),i}}));var St=/^(?:input|select|textarea|button)$/i,Bt=/^(?:a|area)$/i;Ie.fn.extend({prop:function(e,t){return Fe(this,Ie.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[Ie.propFix[e]||e]}))}}),Ie.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&Ie.isXMLDoc(e)||(t=Ie.propFix[t]||t,i=Ie.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Ie.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||Bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),be.optSelected||(Ie.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Ie.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){Ie.propFix[this.toLowerCase()]=this})),Ie.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,c=0;if(we(e))return this.each((function(t){Ie(this).addClass(e.call(this,t,ee(this)))}));if((t=te(e)).length)for(;n=this[c++];)if(i=ee(n),r=1===n.nodeType&&" "+Z(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=Z(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,c=0;if(we(e))return this.each((function(t){Ie(this).removeClass(e.call(this,t,ee(this)))}));if(!arguments.length)return this.attr("class","");if((t=te(e)).length)for(;n=this[c++];)if(i=ee(n),r=1===n.nodeType&&" "+Z(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=Z(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):we(e)?this.each((function(n){Ie(this).toggleClass(e.call(this,n,ee(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=Ie(this),o=te(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=ee(this))&&Ge.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Ge.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Z(ee(n))+" ").indexOf(t)>-1)return!0;return!1}});var Mt=/\r/g;Ie.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=we(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,Ie(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Ie.map(i,(function(e){return null==e?"":e+""}))),(t=Ie.valHooks[this.type]||Ie.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=Ie.valHooks[i.type]||Ie.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Mt,""):null==n?"":n:void 0}}),Ie.extend({valHooks:{option:{get:function(e){var t=Ie.find.attr(e,"value");return null!=t?t:Z(Ie.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!c(n.parentNode,"optgroup"))){if(t=Ie(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=Ie.makeArray(t),o=i.length;o--;)((r=i[o]).selected=Ie.inArray(Ie.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),Ie.each(["radio","checkbox"],(function(){Ie.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Ie.inArray(Ie(e).val(),t)>-1}},be.checkOn||(Ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),be.focusin="onfocusin"in n;var Tt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};Ie.extend(Ie.event,{trigger:function(e,t,r,i){var a,o,s,c,l,u,h,f,d=[r||le],p=ve.call(e,"type")?e.type:e,g=ve.call(e,"namespace")?e.namespace.split("."):[];if(o=f=s=r=r||le,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+Ie.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),l=p.indexOf(":")<0&&"on"+p,(e=e[Ie.expando]?e:new Ie.Event(p,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:Ie.makeArray(t,[e]),h=Ie.event.special[p]||{},i||!h.trigger||!1!==h.trigger.apply(r,t))){if(!i&&!h.noBubble&&!xe(r)){for(c=h.delegateType||p,Tt.test(c+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),s=o;s===(r.ownerDocument||le)&&d.push(s.defaultView||s.parentWindow||n)}for(a=0;(o=d[a++])&&!e.isPropagationStopped();)f=o,e.type=a>1?c:h.bindType||p,(u=(Ge.get(o,"events")||{})[e.type]&&Ge.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&Ue(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),t)||!Ue(r)||l&&we(r[p])&&!xe(r)&&((s=r[l])&&(r[l]=null),Ie.event.triggered=p,e.isPropagationStopped()&&f.addEventListener(p,Ot),r[p](),e.isPropagationStopped()&&f.removeEventListener(p,Ot),Ie.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(e,t,n){var r=Ie.extend(new Ie.Event,n,{type:e,isSimulated:!0});Ie.event.trigger(r,null,t)}}),Ie.fn.extend({trigger:function(e,t){return this.each((function(){Ie.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return Ie.event.trigger(e,t,n,!0)}}),be.focusin||Ie.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){Ie.event.simulate(t,e.target,Ie.event.fix(e))};Ie.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Ge.access(r,t);i||r.addEventListener(e,n,!0),Ge.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ge.access(r,t)-1;i?Ge.access(r,t,i):(r.removeEventListener(e,n,!0),Ge.remove(r,t))}}}));var Dt=n.location,Pt=Date.now(),Lt=/\?/;Ie.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||Ie.error("Invalid XML: "+e),t};var Qt=/\[\]$/,Rt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;Ie.param=function(e,t){var n,r=[],i=function(e,t){var n=we(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!Ie.isPlainObject(e))Ie.each(e,(function(){i(this.name,this.value)}));else for(n in e)ne(n,e[n],t,i);return r.join("&")},Ie.fn.extend({serialize:function(){return Ie.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=Ie.prop(this,"elements");return e?Ie.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!Ie(this).is(":disabled")&&Nt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!et.test(e))})).map((function(e,t){var n=Ie(this).val();return null==n?null:Array.isArray(n)?Ie.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Ft=/%20/g,zt=/#.*$/,Ht=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Vt=/^(?:GET|HEAD)$/,Wt=/^\/\//,qt={},Yt={},Kt="*/".concat("*"),$t=le.createElement("a");$t.href=Dt.href,Ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt.href,type:"GET",isLocal:Gt.test(Dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Ie.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ae(ae(e,Ie.ajaxSettings),t):ae(Ie.ajaxSettings,e)},ajaxPrefilter:re(qt),ajaxTransport:re(Yt),ajax:function(e,t){function r(e,t,r,s){var l,f,d,b,w,x=t;u||(u=!0,c&&n.clearTimeout(c),i=void 0,o=s||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,r&&(b=oe(p,C,r)),b=se(p,b,C,l),l?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(Ie.lastModified[a]=w),(w=C.getResponseHeader("etag"))&&(Ie.etag[a]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=b.state,f=b.data,l=!(d=b.error))):(d=x,!e&&x||(x="error",e<0&&(e=0))),C.status=e,C.statusText=(t||x)+"",l?v.resolveWith(g,[f,x,C]):v.rejectWith(g,[C,x,d]),C.statusCode(A),A=void 0,h&&m.trigger(l?"ajaxSuccess":"ajaxError",[C,p,l?f:d]),y.fireWith(g,[C,x]),h&&(m.trigger("ajaxComplete",[C,p]),--Ie.active||Ie.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,a,o,s,c,l,u,h,f,d,p=Ie.ajaxSetup({},t),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?Ie(g):Ie.event,v=Ie.Deferred(),y=Ie.Callbacks("once memory"),A=p.statusCode||{},b={},w={},x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Ut.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)A[t]=[A[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),r(0,t),this}};if(v.promise(C),p.url=((e||p.url||Dt.href)+"").replace(Wt,Dt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Re)||[""],null==p.crossDomain){l=le.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Ie.param(p.data,p.traditional)),ie(qt,p,t,C),u)return C;for(f in(h=Ie.event&&p.global)&&0==Ie.active++&&Ie.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Vt.test(p.type),a=p.url.replace(zt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ft,"+")):(d=p.url.slice(a.length),p.data&&(p.processData||"string"==typeof p.data)&&(a+=(Lt.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(a=a.replace(Ht,"$1"),d=(Lt.test(a)?"&":"?")+"_="+Pt+++d),p.url=a+d),p.ifModified&&(Ie.lastModified[a]&&C.setRequestHeader("If-Modified-Since",Ie.lastModified[a]),Ie.etag[a]&&C.setRequestHeader("If-None-Match",Ie.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Kt+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(g,C,p)||u))return C.abort();if(x="abort",y.add(p.complete),C.done(p.success),C.fail(p.error),i=ie(Yt,p,t,C)){if(C.readyState=1,h&&m.trigger("ajaxSend",[C,p]),u)return C;p.async&&p.timeout>0&&(c=n.setTimeout((function(){C.abort("timeout")}),p.timeout));try{u=!1,i.send(b,r)}catch(e){if(u)throw e;r(-1,e)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return Ie.get(e,t,n,"json")},getScript:function(e,t){return Ie.get(e,void 0,t,"script")}}),Ie.each(["get","post"],(function(e,t){Ie[t]=function(e,n,r,i){return we(n)&&(i=i||r,r=n,n=void 0),Ie.ajax(Ie.extend({url:e,type:t,dataType:i,data:n,success:r},Ie.isPlainObject(e)&&e))}})),Ie._evalUrl=function(e){return Ie.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},Ie.fn.extend({wrapAll:function(e){var t;return this[0]&&(we(e)&&(e=e.call(this[0])),t=Ie(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return we(e)?this.each((function(t){Ie(this).wrapInner(e.call(this,t))})):this.each((function(){var t=Ie(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=we(e);return this.each((function(n){Ie(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){Ie(this).replaceWith(this.childNodes)})),this}}),Ie.expr.pseudos.hidden=function(e){return!Ie.expr.pseudos.visible(e)},Ie.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Ie.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Xt=Ie.ajaxSettings.xhr();be.cors=!!Xt&&"withCredentials"in Xt,be.ajax=Xt=!!Xt,Ie.ajaxTransport((function(e){var t,r;if(be.cors||Xt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),Ie.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),Ie.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Ie.globalEval(e),e}}}),Ie.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),Ie.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=Ie("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),le.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Zt=[],en=/(=)\?(?=&|$)|\?\?/;Ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||Ie.expando+"_"+Pt++;return this[e]=!0,e}}),Ie.ajaxPrefilter("json jsonp",(function(e,t,r){var i,a,o,s=!1!==e.jsonp&&(en.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=we(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(en,"$1"+i):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||Ie.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=n[i],n[i]=function(){o=arguments},r.always((function(){void 0===a?Ie(n).removeProp(i):n[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,Zt.push(i)),o&&we(a)&&a(o[0]),o=a=void 0})),"script"})),be.createHTMLDocument=function(){var e=le.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),Ie.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(be.createHTMLDocument?((r=(t=le.implementation.createHTMLDocument("")).createElement("base")).href=le.location.href,t.head.appendChild(r)):t=le),a=!n&&[],(i=Te.exec(e))?[t.createElement(i[1])]:(i=E([e],t,a),a&&a.length&&Ie(a).remove(),Ie.merge([],i.childNodes)));var r,i,a},Ie.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=Z(e.slice(s)),e=e.slice(0,s)),we(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&Ie.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(r?Ie("<div>").append(Ie.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},Ie.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){Ie.fn[t]=function(e){return this.on(t,e)}})),Ie.expr.pseudos.animated=function(e){return Ie.grep(Ie.timers,(function(t){return e===t.elem})).length},Ie.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l=Ie.css(e,"position"),u=Ie(e),h={};"static"===l&&(e.style.position="relative"),s=u.offset(),a=Ie.css(e,"top"),c=Ie.css(e,"left"),("absolute"===l||"fixed"===l)&&(a+c).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),we(t)&&(t=t.call(e,n,Ie.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):u.css(h)}},Ie.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){Ie.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===Ie.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Ie.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=Ie(e).offset()).top+=Ie.css(e,"borderTopWidth",!0),i.left+=Ie.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-Ie.css(r,"marginTop",!0),left:t.left-i.left-Ie.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===Ie.css(e,"position");)e=e.offsetParent;return e||at}))}}),Ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;Ie.fn[e]=function(r){return Fe(this,(function(e,r,i){var a;return xe(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i?a?a[t]:e[r]:void(a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i)}),e,r,arguments.length)}})),Ie.each(["top","left"],(function(e,t){Ie.cssHooks[t]=N(be.pixelPosition,(function(e,n){if(n)return n=j(e,t),dt.test(n)?Ie(e).position()[t]+"px":n}))})),Ie.each({Height:"height",Width:"width"},(function(e,t){Ie.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){Ie.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return Fe(this,(function(t,n,i){var a;return xe(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?Ie.css(t,n,s):Ie.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),Ie.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){Ie.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),Ie.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Ie.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),Ie.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),we(e))return r=he.call(arguments,2),i=function(){return e.apply(t||this,r.concat(he.call(arguments)))},i.guid=e.guid=e.guid||Ie.guid++,i},Ie.holdReady=function(e){e?Ie.readyWait++:Ie.ready(!0)},Ie.isArray=Array.isArray,Ie.parseJSON=JSON.parse,Ie.nodeName=c,Ie.isFunction=we,Ie.isWindow=xe,Ie.camelCase=v,Ie.type=o,Ie.now=Date.now,Ie.isNumeric=function(e){var t=Ie.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return Ie}.apply(t,[]))||(e.exports=r);var tn=n.jQuery,nn=n.$;return Ie.noConflict=function(e){return n.$===Ie&&(n.$=nn),e&&n.jQuery===Ie&&(n.jQuery=tn),Ie},i||(n.jQuery=n.$=Ie),Ie}))},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),n(9)("c9621516",r,!0)},function(e,t,n){var r=n(6);(e.exports=n(7)(!1)).push([e.id,'/**\n * Owl Carousel v2.3.4\n * Copyright 2013-2018 David Deutsch\n * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE\n */\n/*\n *  Owl Carousel - Core\n */\n.owl-carousel {\n  display: none;\n  width: 100%;\n  -webkit-tap-highlight-color: transparent;\n  /* position relative and z-index fix webkit rendering fonts issue */\n  position: relative;\n  z-index: 1; }\n  .owl-carousel .owl-stage {\n    position: relative;\n    -ms-touch-action: pan-Y;\n    touch-action: manipulation;\n    -moz-backface-visibility: hidden;\n    /* fix firefox animation glitch */ }\n  .owl-carousel .owl-stage:after {\n    content: ".";\n    display: block;\n    clear: both;\n    visibility: hidden;\n    line-height: 0;\n    height: 0; }\n  .owl-carousel .owl-stage-outer {\n    position: relative;\n    overflow: hidden;\n    /* fix for flashing background */\n    -webkit-transform: translate3d(0px, 0px, 0px); }\n  .owl-carousel .owl-wrapper,\n  .owl-carousel .owl-item {\n    -webkit-backface-visibility: hidden;\n    -moz-backface-visibility: hidden;\n    -ms-backface-visibility: hidden;\n    -webkit-transform: translate3d(0, 0, 0);\n    -moz-transform: translate3d(0, 0, 0);\n    -ms-transform: translate3d(0, 0, 0); }\n  .owl-carousel .owl-item {\n    position: relative;\n    min-height: 1px;\n    float: left;\n    -webkit-backface-visibility: hidden;\n    -webkit-tap-highlight-color: transparent;\n    -webkit-touch-callout: none; }\n  .owl-carousel .owl-item img {\n    display: block;\n    width: 100%; }\n  .owl-carousel .owl-nav.disabled,\n  .owl-carousel .owl-dots.disabled {\n    display: none; }\n  .owl-carousel .owl-nav .owl-prev,\n  .owl-carousel .owl-nav .owl-next,\n  .owl-carousel .owl-dot {\n    cursor: pointer;\n    -webkit-user-select: none;\n    -khtml-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none; }\n  .owl-carousel .owl-nav button.owl-prev,\n  .owl-carousel .owl-nav button.owl-next,\n  .owl-carousel button.owl-dot {\n    background: none;\n    color: inherit;\n    border: none;\n    padding: 0 !important;\n    font: inherit; }\n  .owl-carousel.owl-loaded {\n    display: block; }\n  .owl-carousel.owl-loading {\n    opacity: 0;\n    display: block; }\n  .owl-carousel.owl-hidden {\n    opacity: 0; }\n  .owl-carousel.owl-refresh .owl-item {\n    visibility: hidden; }\n  .owl-carousel.owl-drag .owl-item {\n    -ms-touch-action: pan-y;\n        touch-action: pan-y;\n    -webkit-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none; }\n  .owl-carousel.owl-grab {\n    cursor: move;\n    cursor: grab; }\n  .owl-carousel.owl-rtl {\n    direction: rtl; }\n  .owl-carousel.owl-rtl .owl-item {\n    float: right; }\n\n/* No Js */\n.no-js .owl-carousel {\n  display: block; }\n\n/*\n *  Owl Carousel - Animate Plugin\n */\n.owl-carousel .animated {\n  animation-duration: 1000ms;\n  animation-fill-mode: both; }\n\n.owl-carousel .owl-animated-in {\n  z-index: 0; }\n\n.owl-carousel .owl-animated-out {\n  z-index: 1; }\n\n.owl-carousel .fadeOut {\n  animation-name: fadeOut; }\n\n@keyframes fadeOut {\n  0% {\n    opacity: 1; }\n  100% {\n    opacity: 0; } }\n\n/*\n * \tOwl Carousel - Auto Height Plugin\n */\n.owl-height {\n  transition: height 500ms ease-in-out; }\n\n/*\n * \tOwl Carousel - Lazy Load Plugin\n */\n.owl-carousel .owl-item {\n  /**\n\t\t\tThis is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong\n\t\t\tcalculation of the height of the owl-item that breaks page layouts\n\t\t */ }\n  .owl-carousel .owl-item .owl-lazy {\n    opacity: 0;\n    transition: opacity 400ms ease; }\n  .owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {\n    max-height: 0; }\n  .owl-carousel .owl-item img.owl-lazy {\n    transform-style: preserve-3d; }\n\n/*\n * \tOwl Carousel - Video Plugin\n */\n.owl-carousel .owl-video-wrapper {\n  position: relative;\n  height: 100%;\n  background: #000; }\n\n.owl-carousel .owl-video-play-icon {\n  position: absolute;\n  height: 80px;\n  width: 80px;\n  left: 50%;\n  top: 50%;\n  margin-left: -40px;\n  margin-top: -40px;\n  background: url('+r(n(8))+") no-repeat;\n  cursor: pointer;\n  z-index: 1;\n  -webkit-backface-visibility: hidden;\n  transition: transform 100ms ease; }\n\n.owl-carousel .owl-video-play-icon:hover {\n  -ms-transform: scale(1.3, 1.3);\n      transform: scale(1.3, 1.3); }\n\n.owl-carousel .owl-video-playing .owl-video-tn,\n.owl-carousel .owl-video-playing .owl-video-play-icon {\n  display: none; }\n\n.owl-carousel .owl-video-tn {\n  opacity: 0;\n  height: 100%;\n  background-position: center center;\n  background-repeat: no-repeat;\n  background-size: contain;\n  transition: opacity 400ms ease; }\n\n.owl-carousel .owl-video-frame {\n  position: relative;\n  z-index: 1;\n  height: 100%;\n  width: 100%; }\n",""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var a=r(i),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<e.length;i++){var o=e[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){e.exports=n.p+"4a37f8008959c75f619bf0a3a4e2d7a2.png"},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(a(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(a(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:o}}}}function i(){var e=document.createElement("style");return e.type="text/css",h.appendChild(e),e}function a(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(p)return g;r.parentNode.removeChild(r)}if(m){var a=d++;r=f||(f=i()),t=o.bind(null,r,a,!1),n=o.bind(null,r,a,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function o(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document,l=n(10),u={},h=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,d=0,p=!1,g=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){p=n;var i=l(e,t);return r(i),function(t){for(var n=[],a=0;a<i.length;a++){var o=i[a];(s=u[o.id]).refs--,n.push(s)}for(t?r(i=l(e,t)):i=[],a=0;a<n.length;a++){var s;if(0===(s=n[a]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete u[s.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s={id:e+":"+i,css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}},function(e,t,n){var r=n(12);"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),n(9)("25bb882e",r,!0)},function(e,t,n){(e.exports=n(7)(!1)).push([e.id,"/**\n * Owl Carousel v2.3.4\n * Copyright 2013-2018 David Deutsch\n * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE\n */\n/*\n * \tDefault theme - Owl Carousel CSS File\n */\n.owl-theme .owl-nav {\n  margin-top: 10px;\n  text-align: center;\n  -webkit-tap-highlight-color: transparent; }\n  .owl-theme .owl-nav [class*='owl-'] {\n    color: #FFF;\n    font-size: 14px;\n    margin: 5px;\n    padding: 4px 7px;\n    background: #D6D6D6;\n    display: inline-block;\n    cursor: pointer;\n    border-radius: 3px; }\n    .owl-theme .owl-nav [class*='owl-']:hover {\n      background: #869791;\n      color: #FFF;\n      text-decoration: none; }\n  .owl-theme .owl-nav .disabled {\n    opacity: 0.5;\n    cursor: default; }\n\n.owl-theme .owl-nav.disabled + .owl-dots {\n  margin-top: 10px; }\n\n.owl-theme .owl-dots {\n  text-align: center;\n  -webkit-tap-highlight-color: transparent; }\n  .owl-theme .owl-dots .owl-dot {\n    display: inline-block;\n    zoom: 1;\n    *display: inline; }\n    .owl-theme .owl-dots .owl-dot span {\n      width: 10px;\n      height: 10px;\n      margin: 5px 7px;\n      background: #D6D6D6;\n      display: block;\n      -webkit-backface-visibility: visible;\n      transition: opacity 200ms ease;\n      border-radius: 30px; }\n    .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {\n      background: #869791; }\n",""])},function(e,t,n){(function(e,t){!function(e,n,r,i){function a(t,n){this.settings=null,this.options=e.extend({},a.Defaults,n),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy((function(t,n){this._handlers[n]=e.proxy(this[n],this)}),this)),e.each(a.Plugins,e.proxy((function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)}),this)),e.each(a.Workers,e.proxy((function(t,n){this._pipe.push({filter:n.filter,run:e.proxy(n.run,this)})}),this)),this.setup(),this.initialize()}a.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:n,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},a.Width={Default:"default",Inner:"inner",Outer:"outer"},a.Type={Event:"event",State:"state"},a.Plugins={},a.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,r=this.settings.rtl,i={width:"auto","margin-left":r?t:"","margin-right":r?"":t};!n&&this.$stage.children().css(i),e.css=i}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=null,r=this._items.length,i=!this.settings.autoWidth,a=[];for(e.items={merge:!1,width:t};r--;)n=this._mergers[r],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,e.items.merge=n>1||e.items.merge,a[r]=i?t*n:this._items[r].width();this._widths=a}},{filter:["items","settings"],run:function(){var t=[],n=this._items,r=this.settings,i=Math.max(2*r.items,4),a=2*Math.ceil(n.length/2),o=r.loop&&n.length?r.rewind?i:Math.max(i,a):0,s="",c="";for(o/=2;o>0;)t.push(this.normalize(t.length/2,!0)),s+=n[t[t.length-1]][0].outerHTML,t.push(this.normalize(n.length-1-(t.length-1)/2,!0)),c=n[t[t.length-1]][0].outerHTML+c,o-=1;this._clones=t,e(s).addClass("cloned").appendTo(this.$stage),e(c).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,n=-1,r=0,i=0,a=[];++n<t;)r=a[n-1]||0,i=this._widths[this.relative(n)]+this.settings.margin,a.push(r+i*e);this._coordinates=a}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,n={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(n)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,r=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],r.eq(t).css(e.css);else n&&(e.css.width=e.items.width,r.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,n,r,i=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,o=this.coordinates(this.current())+a,s=o+this.width()*i,c=[];for(n=0,r=this._coordinates.length;n<r;n++)e=this._coordinates[n-1]||0,t=Math.abs(this._coordinates[n])+a*i,(this.op(e,"<=",o)&&this.op(e,">",s)||this.op(t,"<",o)&&this.op(t,">",s))&&c.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+c.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],a.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},a.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");return t.length?(this._items=t.get().map((function(t){return e(t)})),this._mergers=this._items.map((function(){return 1})),void this.refresh()):(this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),void this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass))},a.prototype.initialize=function(){var e,t,n;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,n=this.$element.children(t).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},a.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},a.prototype.setup=function(){var t=this.viewport(),n=this.options.responsive,r=-1,i=null;n?(e.each(n,(function(e){e<=t&&e>r&&(r=Number(e))})),"function"==typeof(i=e.extend({},this.options,n[r])).stagePadding&&(i.stagePadding=i.stagePadding()),delete i.responsive,i.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+r))):i=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=r,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},a.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},a.prototype.prepare=function(t){var n=this.trigger("prepare",{content:t});return n.data||(n.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:n.data}),n.data},a.prototype.update=function(){for(var t=0,n=this._pipe.length,r=e.proxy((function(e){return this[e]}),this._invalidated),i={};t<n;)(this._invalidated.all||e.grep(this._pipe[t].filter,r).length>0)&&this._pipe[t].run(i),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},a.prototype.width=function(e){switch(e=e||a.Width.Default){case a.Width.Inner:case a.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},a.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},a.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},a.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},a.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},a.prototype.onDragStart=function(t){var n=null;3!==t.which&&(e.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(e.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(t),e(r).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(r).one("mousemove.owl.core touchmove.owl.core",e.proxy((function(t){var n=this.difference(this._drag.pointer,this.pointer(t));e(r).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},a.prototype.onDragMove=function(e){var t=null,n=null,r=null,i=this.difference(this._drag.pointer,this.pointer(e)),a=this.difference(this._drag.stage.start,i);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,a.x=((a.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),r=this.settings.pullDrag?-1*i.x/5:0,a.x=Math.max(Math.min(a.x,t+r),n+r)),this._drag.stage.current=a,this.animate(a.x))},a.prototype.onDragEnd=function(t){var n=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,a=n.x>0^this.settings.rtl?"left":"right";e(r).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==n.x?a:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=a,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},a.prototype.closest=function(t,n){var r=-1,a=30,o=this.width(),s=this.coordinates();return this.settings.freeDrag||e.each(s,e.proxy((function(e,c){return"left"===n&&t>c-a&&t<c+a?r=e:"right"===n&&t>c-o-a&&t<c-o+a?r=e+1:this.op(t,"<",c)&&this.op(t,">",s[e+1]!==i?s[e+1]:c-o)&&(r="left"===n?e+1:e),-1===r}),this)),this.settings.loop||(this.op(t,">",s[this.minimum()])?r=t=this.minimum():this.op(t,"<",s[this.maximum()])&&(r=t=this.maximum())),r},a.prototype.animate=function(t){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):n?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},a.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},a.prototype.current=function(e){if(e===i)return this._current;if(0===this._items.length)return i;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},a.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,(function(e,t){return t}))},a.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},a.prototype.normalize=function(e,t){var n=this._items.length,r=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=i:(e<0||e>=n+r)&&(e=((e-r/2)%n+n)%n+r/2),e},a.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},a.prototype.maximum=function(e){var t,n,r,i=this.settings,a=this._coordinates.length;if(i.loop)a=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge){if(t=this._items.length)for(n=this._items[--t].width(),r=this.$element.width();t--&&!((n+=this._items[t].width()+this.settings.margin)>r););a=t+1}else a=i.center?this._items.length-1:this._items.length-i.items;return e&&(a-=this._clones.length/2),Math.max(a,0)},a.prototype.minimum=function(e){return e?0:this._clones.length/2},a.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},a.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},a.prototype.clones=function(t){var n=this._clones.length/2,r=n+this._items.length,a=function(e){return e%2==0?r+e/2:n-(e+1)/2};return t===i?e.map(this._clones,(function(e,t){return a(t)})):e.map(this._clones,(function(e,n){return e===t?a(n):null}))},a.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},a.prototype.coordinates=function(t){var n,r=1,a=t-1;return t===i?e.map(this._coordinates,e.proxy((function(e,t){return this.coordinates(t)}),this)):(this.settings.center?(this.settings.rtl&&(r=-1,a=t+1),n=this._coordinates[t],n+=(this.width()-n+(this._coordinates[a]||0))/2*r):n=this._coordinates[a]||0,n=Math.ceil(n))},a.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},a.prototype.to=function(e,t){var n=this.current(),r=null,i=e-this.relative(n),a=(i>0)-(i<0),o=this._items.length,s=this.minimum(),c=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>o/2&&(i+=-1*a*o),(r=(((e=n+i)-s)%o+o)%o+s)!==e&&r-i<=c&&r-i>0&&(n=r-i,e=r,this.reset(n))):e=this.settings.rewind?(e%(c+=1)+c)%c:Math.max(s,Math.min(c,e)),this.speed(this.duration(n,e,t)),this.current(e),this.isVisible()&&this.update()},a.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},a.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},a.prototype.onTransitionEnd=function(e){return(e===i||(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)===this.$stage.get(0)))&&(this.leave("animating"),void this.trigger("translated"))},a.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==n?t=e(this.options.responsiveBaseElement).width():n.innerWidth?t=n.innerWidth:r.documentElement&&r.documentElement.clientWidth&&(t=r.documentElement.clientWidth),t},a.prototype.replace=function(n){this.$stage.empty(),this._items=[],n&&(n=n instanceof t?n:e(n)),this.settings.nestedItemSelector&&(n=n.find("."+this.settings.nestedItemSelector)),n.filter((function(){return 1===this.nodeType})).each(e.proxy((function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},a.prototype.add=function(n,r){var a=this.relative(this._current);r=r===i?this._items.length:this.normalize(r,!0),n=n instanceof t?n:e(n),this.trigger("add",{content:n,position:r}),n=this.prepare(n),0===this._items.length||r===this._items.length?(0===this._items.length&&this.$stage.append(n),0!==this._items.length&&this._items[r-1].after(n),this._items.push(n),this._mergers.push(1*n.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[r].before(n),this._items.splice(r,0,n),this._mergers.splice(r,0,1*n.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[a]&&this.reset(this._items[a].index()),this.invalidate("items"),this.trigger("added",{content:n,position:r})},a.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},a.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy((function(t,n){this.enter("pre-loading"),n=e(n),e(new Image).one("load",e.proxy((function(e){n.attr("src",e.target.src),n.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))}),this))},a.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(r).off(".owl.core"),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},a.prototype.op=function(e,t,n){var r=this.settings.rtl;switch(t){case"<":return r?e>n:e<n;case">":return r?e<n:e>n;case">=":return r?e<=n:e>=n;case"<=":return r?e>=n:e<=n}},a.prototype.on=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)},a.prototype.off=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)},a.prototype.trigger=function(t,n,r,i,o){var s={item:{count:this._items.length,index:this.current()}},c=e.camelCase(e.grep(["on",t,r],(function(e){return e})).join("-").toLowerCase()),l=e.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},s,n));return this._supress[t]||(e.each(this._plugins,(function(e,t){t.onTrigger&&t.onTrigger(l)})),this.register({type:a.Type.Event,name:t}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[c]&&this.settings[c].call(this,l)),l},a.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]===i&&(this._states.current[t]=0),this._states.current[t]++}),this))},a.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy((function(e,t){this._states.current[t]--}),this))},a.prototype.register=function(t){if(t.type===a.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var n=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!n||!n.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:n.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===a.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy((function(n,r){return e.inArray(n,this._states.tags[t.name])===r}),this)))},a.prototype.suppress=function(t){e.each(t,e.proxy((function(e,t){this._supress[t]=!0}),this))},a.prototype.release=function(t){e.each(t,e.proxy((function(e,t){delete this._supress[t]}),this))},a.prototype.pointer=function(e){var t={x:null,y:null};return(e=(e=e.originalEvent||e||n.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(t.x=e.pageX,t.y=e.pageY):(t.x=e.clientX,t.y=e.clientY),t},a.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},a.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each((function(){var r=e(this),i=r.data("owl.carousel");i||(i=new a(this,"object"==typeof t&&t),r.data("owl.carousel",i),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(t,n){i.register({type:a.Type.Event,name:n}),i.$element.on(n+".owl.carousel.core",e.proxy((function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([n]),i[n].apply(this,[].slice.call(arguments,1)),this.release([n]))}),i))}))),"string"==typeof t&&"_"!==t.charAt(0)&&i[t].apply(i,n)}))},e.fn.owlCarousel.Constructor=a}(window.Zepto||e,window,document),function(e,t){var n=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var e,n;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||e,window,document),function(e,t,n,r){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy((function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,a=n.center&&-1*i||0,o=(t.property&&t.property.value!==r?t.property.value:this._core.current())+a,s=this._core.clones().length,c=e.proxy((function(e,t){this.load(t)}),this);for(n.lazyLoadEager>0&&(i+=n.lazyLoadEager,n.loop&&(o-=n.lazyLoadEager,i++));a++<i;)this.load(s/2+this._core.relative(o)),s&&e.each(this._core.clones(this._core.relative(o)),c),o++}}),this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(n){var r=this._core.$stage.children().eq(n),i=r&&r.find(".owl-lazy");!i||e.inArray(r.get(0),this._loaded)>-1||(i.each(e.proxy((function(n,r){var i,a=e(r),o=t.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src")||a.attr("data-srcset");this._core.trigger("load",{element:a,url:o},"lazy"),a.is("img")?a.one("load.owl.lazy",e.proxy((function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:o},"lazy")}),this)).attr("src",o):a.is("source")?a.one("load.owl.lazy",e.proxy((function(){this._core.trigger("loaded",{element:a,url:o},"lazy")}),this)).attr("srcset",o):((i=new Image).onload=e.proxy((function(){a.css({"background-image":'url("'+o+'")',opacity:"1"}),this._core.trigger("loaded",{element:a,url:o},"lazy")}),this),i.src=o)}),this)),this._loaded.push(r.get(0)))},i.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||e,window,document),function(e,t){var n=function(r){this._core=r,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()}),this),"loaded.owl.lazy":e.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var i=this;e(t).on("load",(function(){i._core.settings.autoHeight&&i.update()})),e(t).resize((function(){i._core.settings.autoHeight&&(null!=i._intervalId&&clearTimeout(i._intervalId),i._intervalId=setTimeout((function(){i.update()}),250))}))};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var t=this._core._current,n=t+this._core.settings.items,r=this._core.settings.lazyLoad,i=this._core.$stage.children().toArray().slice(t,n),a=[],o=0;e.each(i,(function(t,n){a.push(e(n).height())})),(o=Math.max.apply(null,a))<=1&&r&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||e,window,document),function(e,t,n){var r=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var n=e(t.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,e(t.content)))}}),this)},this._core.options=e.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy((function(e){this.play(e)}),this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",r=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),i=e.attr("data-width")||this._core.settings.videoWidth,a=e.attr("data-height")||this._core.settings.videoHeight,o=e.attr("href");if(!o)throw new Error("Missing video URL.");if((r=o.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)n="youtube";else if(r[3].indexOf("vimeo")>-1)n="vimeo";else{if(!(r[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");n="vzaar"}r=r[6],this._videos[o]={type:n,id:r,width:i,height:a},t.attr("data-video",o),this.thumbnail(e,this._videos[o])},r.prototype.thumbnail=function(t,n){var r,i,a,o=n.width&&n.height?"width:"+n.width+"px;height:"+n.height+"px;":"",s=t.find("img"),c="src",l="",u=this._core.settings,h=function(n){i='<div class="owl-video-play-icon"></div>',r=u.lazyLoad?e("<div/>",{class:"owl-video-tn "+l,srcType:n}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+n+")"}),t.after(r),t.after(i)};return t.wrap(e("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(c="data-src",l="owl-lazy"),s.length?(h(s.attr(c)),s.remove(),!1):void("youtube"===n.type?(a="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg",h(a)):"vimeo"===n.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e[0].thumbnail_large,h(a)}}):"vzaar"===n.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e.framegrab_url,h(a)}}))},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(t){var n,r=e(t.target).closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],a=i.width||"100%",o=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),(n=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),n.attr("width",a),"youtube"===i.type?n.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?n.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&n.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),e(n).wrap('<div class="owl-video-frame" />').insertAfter(r.find(".owl-video")),this._playing=r.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||e,window,document),function(e,t,n,r){var i=function(t){this.core=t,this.core.options=e.extend({},i.Defaults,this.core.options),this.swapping=!0,this.previous=r,this.next=r,this.handlers={"change.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy((function(e){e.namespace&&(this.swapping="translated"==e.type)}),this),"translate.owl.carousel":e.proxy((function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};i.Defaults={animateOut:!1,animateIn:!1},i.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,n=e.proxy(this.clear,this),r=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),r.one(e.support.animation.end,n).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),a&&i.one(e.support.animation.end,n).addClass("animated owl-animated-in").addClass(a))}},i.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},i.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=i}(window.Zepto||e,window,document),function(e,t,n){var r=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy((function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":e.proxy((function(e,t,n){e.namespace&&this.play(t,n)}),this),"stop.owl.autoplay":e.proxy((function(e){e.namespace&&this.stop()}),this),"mouseover.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":e.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype._next=function(r){this._call=t.setTimeout(e.proxy(this._next,this,r),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||n.hidden||this._core.next(r||this._core.settings.autoplaySpeed)},r.prototype.read=function(){return(new Date).getTime()-this._time},r.prototype.play=function(n,r){var i;this._core.is("rotating")||this._core.enter("rotating"),n=n||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||n),n),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%n-i,this._timeout=n,this._call=t.setTimeout(e.proxy(this._next,this,r),n-i)},r.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},r.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||e,window,document),function(e){"use strict";var t=function(n){this._core=n,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())}),this),"remove.owl.carousel":e.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)}),this),"changed.owl.carousel":e.proxy((function(e){e.namespace&&"position"==e.property.name&&this.draw()}),this),"initialized.owl.carousel":e.proxy((function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":e.proxy((function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=e.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)};t.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var t,n=this._core.settings;for(t in this._controls.$relative=(n.navContainer?e(n.navContainer):e("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy((function(e){this.prev(n.navSpeed)}),this)),this._controls.$next=e("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy((function(e){this.next(n.navSpeed)}),this)),n.dotsData||(this._templates=[e('<button role="button">').addClass(n.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?e(n.dotsContainer):e("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy((function(t){var r=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(r,n.dotsSpeed)}),this)),this._overrides)this._core[t]=e.proxy(this[t],this)},t.prototype.destroy=function(){var e,t,n,r,i;for(e in i=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&i.navContainer?this._controls[t].html(""):this._controls[t].remove();for(r in this.overides)this._core[r]=this._overrides[r];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.clones().length/2,r=n+this._core.items().length,i=this._core.maximum(!0),a=this._core.settings,o=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if("page"!==a.slideBy&&(a.slideBy=Math.min(a.slideBy,a.items)),a.dots||"page"==a.slideBy)for(this._pages=[],e=n,t=0;e<r;e++){if(t>=o||0===t){if(this._pages.push({start:Math.min(i,e-n),end:e-n+o-1}),Math.min(i,e-n)===i)break;t=0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var t,n=this._core.settings,r=this._core.items().length<=n.items,i=this._core.relative(this._core.current()),a=n.loop||n.rewind;this._controls.$relative.toggleClass("disabled",!n.nav||r),n.nav&&(this._controls.$previous.toggleClass("disabled",!a&&i<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&i>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!n.dots||r),n.dots&&(t=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(t){var n=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},t.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy((function(e,n){return e.start<=t&&e.end>=t}),this)).pop()},t.prototype.getPosition=function(t){var n,r,i=this._core.settings;return"page"==i.slideBy?(n=e.inArray(this.current(),this._pages),r=this._pages.length,t?++n:--n,n=this._pages[(n%r+r)%r].start):(n=this._core.relative(this._core.current()),r=this._core.items().length,t?n+=i.slideBy:n-=i.slideBy),n},t.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},t.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},t.prototype.to=function(t,n,r){var i;!r&&this._pages.length?(i=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%i+i)%i].start,n)):e.proxy(this._overrides.to,this._core)(t,n)},e.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||e,window,document),function(e,t,n,r){"use strict";var i=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy((function(n){n.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":e.proxy((function(t){if(t.namespace){var n=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!n)return;this._hashes[n]=t.content}}),this),"changed.owl.carousel":e.proxy((function(n){if(n.namespace&&"position"===n.property.name){var r=this._core.items(this._core.relative(this._core.current())),i=e.map(this._hashes,(function(e,t){return e===r?t:null})).join();if(!i||t.location.hash.slice(1)===i)return;t.location.hash=i}}),this)},this._core.options=e.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy((function(e){var n=t.location.hash.substring(1),i=this._core.$stage.children(),a=this._hashes[n]&&i.index(this._hashes[n]);a!==r&&a!==this._core.current()&&this._core.to(this._core.relative(a),!1,!0)}),this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var n,r;for(n in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(n,this._handlers[n]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||e,window,document),function(e,t,n,r){function i(t,n){var i=!1,a=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+s.join(a+" ")+a).split(" "),(function(e,t){if(o[t]!==r)return i=!n||t,!1})),i}function a(e){return i(e,!0)}var o=e("<support>").get(0).style,s="Webkit Moz O ms".split(" "),c={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},l={csstransforms:function(){return!!i("transform")},csstransforms3d:function(){return!!i("perspective")},csstransitions:function(){return!!i("transition")},cssanimations:function(){return!!i("animation")}};l.csstransitions()&&(e.support.transition=new String(a("transition")),e.support.transition.end=c.transition.end[e.support.transition]),l.cssanimations()&&(e.support.animation=new String(a("animation")),e.support.animation.end=c.animation.end[e.support.animation]),l.csstransforms()&&(e.support.transform=new String(a("transform")),e.support.transform3d=l.csstransforms3d())}(window.Zepto||e,window,document)}).call(t,n(3),n(3))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["initialize","initialized","resize","resized","refresh","refreshed","update","updated","drag","dragged","translate","translated","to","changed"]},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showPrev,expression:"showPrev"}],attrs:{id:e.prevHandler}},[e._t("prev")],2),e._v(" "),n("div",{class:["owl-carousel","owl-theme"],attrs:{id:e.elementHandle}},[e._t("default")],2),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showNext,expression:"showNext"}],attrs:{id:e.nextHandler}},[e._t("next")],2)])},staticRenderFns:[]}}]);
/***/},
/***/"7ed2":
/***/function(e,t){e.exports=
/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},
/***/"7ed3":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"7f1a":
/***/function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){/******/
return function(e){// webpackBootstrap
/******/ // The module cache
/******/var t={};
/******/
/******/ // The require function
/******/function n(r){
/******/
/******/ // Check if module is in cache
/******/if(t[r])
/******/return t[r].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/var i=t[r]={
/******/i:r,
/******/l:!1,
/******/exports:{}
/******/};
/******/
/******/ // Execute the module function
/******/
/******/
/******/ // Return the exports of the module
/******/return e[r].call(i.exports,i,i.exports,n),
/******/
/******/ // Flag the module as loaded
/******/i.l=!0,i.exports;
/******/}
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/
/******/
/******/ // Load entry module and return exports
/******/return n.m=e,
/******/
/******/ // expose the module cache
/******/n.c=t,
/******/
/******/ // define getter function for harmony exports
/******/n.d=function(e,t,r){
/******/n.o(e,t)||
/******/Object.defineProperty(e,t,{
/******/configurable:!1,
/******/enumerable:!0,
/******/get:r
/******/})
/******/},
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/n.n=function(e){
/******/var t=e&&e.__esModule?
/******/function(){return e.default}:
/******/function(){return e};
/******/
/******/return n.d(t,"a",t),t;
/******/},
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},
/******/
/******/ // __webpack_public_path__
/******/n.p="",n(n.s=459);
/******/}
/************************************************************************/
/******/([
/* 0 */
/***/function(e,t,n){
/**
 * @fileOverview The util method based on the lodash.
 * @author dxq613@gmail.com
 * @see https://github.com/lodash/lodash
 */
var r=n(143),i=n(18),a=r.mix({},r,{assign:r.mix,
// simple mix
merge:r.deepMix,
// deep mix
cloneDeep:r.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:r.isNumberEqual,remove:r.pull,inArray:r.contains,
/**
   * 将用户输入的 padding 转换成 [top, right, bottom, right] 的模式
   * @param  {Number|Array} padding 输入的padding
   * @return {Array} 四个padding 值
   */
toAllPadding:function(e){var t=0,n=0,r=0,i=0;return a.isNumber(e)||a.isString(e)?t=n=r=i=e:a.isArray(e)?(t=e[0],r=a.isNil(e[1])?e[0]:e[1],i=a.isNil(e[2])?e[0]:e[2],n=a.isNil(e[3])?r:e[3]):a.isObject(e)&&(t=e.top||0,r=e.right||0,i=e.bottom||0,n=e.left||0),[t,r,i,n]},getClipByRange:function(e){var t=e.tl,n=e.br;return new i.Rect({attrs:{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}})}});a.Array={groupToMap:r.groupToMap,group:r.group,merge:r.merge,values:r.valuesOfKey,getRange:r.getRange,firstValue:r.firstValue,remove:r.pull},e.exports=a},
/* 1 */
/***/function(e,t,n){var r=n(59),i={};r.merge(i,r,{isColorProp:function(e){
// 是否是颜色属性
return["fill","stroke","fillStyle","strokeStyle"].includes(e)},isGradientColor:function(e){
// 是否是渐变色
return/^[r,R,L,l]{1}[\s]*\(/.test(e)},mixin:function(e,t){var n=e.CFG?"CFG":"ATTRS";if(e&&t){e._mixins=t,e[n]=e[n]||{};var r={};i.each(t,(function(t){i.augment(e,t);var a=t[n];a&&i.merge(r,a)})),e[n]=i.merge(r,e[n])}}}),e.exports=i},
/* 2 */
/***/function(e,t,n){var r=n(169),i={};r.merge(i,r,{mixin:function(e,t){var n=e.CFG?"CFG":"ATTRS";if(e&&t){e._mixins=t,e[n]=e[n]||{};var r={};i.each(t,(function(t){i.augment(e,t);var a=t[n];a&&i.merge(r,a)})),e[n]=i.merge(r,e[n])}}}),e.exports=i},
/* 3 */
/***/function(e,t,n){var r=n(22),i=n(5);e.exports=function(e,t){if(e)if(i(e))for(var n=0,a=e.length;n<a&&!1!==t(e[n],n);n++);else if(r(e))for(var o in e)if(e.hasOwnProperty(o)&&!1===t(e[o],o))break}},
/* 4 */
/***/function(e,t,n){
/**
 * @fileOverview The util method based on the lodash.
 * @author dxq613@gmail.com
 */
var r=n(51),i=n(143),a=i.mix({assign:i.mix,isFinite:isFinite,isNaN:isNaN,Group:r.Group,Event:r.Event},i);e.exports=a},
/* 5 */
/***/function(e,t,n){var r=n(14),i=Array.isArray?Array.isArray:function(e){return r(e,"Array")};e.exports=i},
/* 6 */
/***/function(e,t){e.exports=function(e){
/**
   * isNil(null) => true
   * isNil() => true
   */
return null==e}},
/* 7 */
/***/function(e,t,n){var r=n(1),i=n(227),a=n(116),o=n(79),s=["zIndex","capture","visible"],c=function e(t){e.superclass.constructor.call(this,t)};c.ATTRS={},r.extend(c,a);var l={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};r.augment(c,i,{isShape:!0,drawInner:function(e){var t=this,n=t._attrs;t.createPath(e);var i=e.globalAlpha;if(t.hasFill()){var a=n.fillOpacity;r.isNil(a)||1===a?e.fill():(e.globalAlpha=a,e.fill(),e.globalAlpha=i)}if(t.hasStroke()&&t._attrs.lineWidth>0){var o=n.strokeOpacity;r.isNil(o)||1===o||(e.globalAlpha=o),e.stroke()}t.afterPath(e)},afterPath:function(){},
/**
   * 击中图形时是否进行包围盒判断
   * @return {Boolean} [description]
   */
isHitBox:function(){return!0},
/**
   * 节点是否能够被击中
   * @param {Number} x x坐标
   * @param {Number} y y坐标
   * @return {Boolean} 是否在图形中
   */
isHit:function(e,t){var n=this,r=[e,t,1];// canvas
if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},
/**
   * @protected
   * 计算包围盒
   * @return {Object} 包围盒
   */
calculateBox:function(){return null},
// 获取拾取时线的宽度，需要考虑附加的线的宽度
getHitLineWidth:function(){var e=this._attrs,t=e.lineAppendWidth||0;// if (!attrs.stroke) {
//   return 0;
// }
return(e.lineWidth||0)+t},
// 清除当前的矩阵
clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var e=this._cfg.box;// 延迟计算
return e||((e=this.calculateBox())&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this._cfg.box=e),e},clone:function(){var e=this,t=null,n=e._attrs,i={};return r.each(n,(function(e,t){l[t]&&r.isArray(n[t])?i[t]=function(e){for(var t=[],n=0;n<e.length;n++)r.isArray(e[n])?t.push([].concat(e[n])):t.push(e[n]);return t}(n[t]):i[t]=n[t]})),t=new e.constructor({attrs:i}),// 对于一些在 cfg 中的特殊属性做 clone
r.each(s,(function(n){t._cfg[n]=e._cfg[n]})),t}}),e.exports=c},
/* 8 */
/***/function(e,t,n){
/**
 * @fileOverview 全局变量
 * @author dxq613
 */
var r=n(0),i=n(167),a={version:"3.5.19",renderer:"canvas",
// trackable: false,
trackingInfo:{},animate:!0,widthRatio:{
// 宽度所占的分类的比例
column:.5,
// 一般的柱状图占比 1/2
rose:.9999999,
// 玫瑰图柱状占比 1
multiplePie:1/1.3},
// 折线图、区域图、path 当只有一个数据时，是否显示成点
showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(e,t){i[e]=t},setTheme:function(e){var t={};t=r.isObject(e)?e:-1!==r.indexOf(Object.keys(i),e)?i[e]:i.default,r.deepMix(a,t)}};a.setTheme("default"),e.exports=a},
/* 9 */
/***/function(e,t,n){var r=n(2),i=n(350),a=n(172),o=n(93),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={},r.extend(s,a);var c={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};r.augment(s,i,{isShape:!0,drawInner:function(e){var t=this,n=t._attrs;t.createPath(e);var i=e.globalAlpha;if(t.hasFill()){var a=n.fillOpacity;r.isNil(a)||1===a?e.fill():(e.globalAlpha=a,e.fill(),e.globalAlpha=i)}if(t.hasStroke()&&t._attrs.lineWidth>0){var o=n.strokeOpacity;r.isNil(o)||1===o||(e.globalAlpha=o),e.stroke()}t.afterPath(e)},afterPath:function(){},
/**
   * 击中图形时是否进行包围盒判断
   * @return {Boolean} [description]
   */
isHitBox:function(){return!0},
/**
   * 节点是否能够被击中
   * @param {Number} x x坐标
   * @param {Number} y y坐标
   * @return {Boolean} 是否在图形中
   */
isHit:function(e,t){var n=this,r=[e,t,1];// canvas
if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},
/**
   * @protected
   * 计算包围盒
   * @return {Object} 包围盒
   */
calculateBox:function(){return null},
// 获取拾取时线的宽度，需要考虑附加的线的宽度
getHitLineWidth:function(){var e=this._attrs,t=e.lineAppendWidth||0;// if (!attrs.stroke) {
//   return 0;
// }
return(e.lineWidth||0)+t},
// 清除当前的矩阵
clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var e=this._cfg.box;// 延迟计算
return e||((e=this.calculateBox())&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this._cfg.box=e),e},clone:function(){var e=this,t=null,n=e._attrs,i={};return r.each(n,(function(e,t){c[t]&&r.isArray(n[t])?i[t]=function(e){for(var t=[],n=0;n<e.length;n++)r.isArray(e[n])?t.push([].concat(e[n])):t.push(e[n]);return t}(n[t]):i[t]=n[t]})),t=new e.constructor({attrs:i}),// zIndex也是绘图属性，但是在cfg中，特殊处理
t._cfg.zIndex=e._cfg.zIndex,t}}),e.exports=s},
/* 10 */
/***/function(e,t){function n(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}e.exports=function(e,t,r,i){return t&&n(e,t),r&&n(e,r),i&&n(e,i),e}},
/* 11 */
/***/function(e,t,n){
/**
 * 判断是否数字
 * @return {Boolean} 是否数字
 */
var r=n(14);e.exports=function(e){return r(e,"Number")}},
/* 12 */
/***/function(e,t,n){var r=n(14);e.exports=function(e){return r(e,"String")}},
/* 13 */
/***/function(e,t,n){
/**
 * 是否为函数
 * @param  {*} fn 对象
 * @return {Boolean}  是否函数
 */
var r=n(14);e.exports=function(e){return r(e,"Function")}},
/* 14 */
/***/function(e,t){var n={}.toString;e.exports=function(e,t){return n.call(e)==="[object "+t+"]"}},
/* 15 */
/***/function(e,t){e.exports=function(e){
/**
   * isArrayLike([1, 2, 3]) => true
   * isArrayLike(document.body.children) => true
   * isArrayLike('abc') => true
   * isArrayLike(Function) => false
   */
return null!==e&&"function"!=typeof e&&isFinite(e.length)}},
/* 16 */
/***/function(e,t){e.exports={FONT_FAMILY:'BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"'};
/***/},
/* 17 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(190),o=n(36),s=["min","max","median","start","end"],c=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=o.prototype;return c.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{xScales:null,yScales:null,el:null})},c.render=function(){}
/**
   * clear container
   * @override
   */,c.clear=function(){var e=this.get("el");e&&e.remove(),this.set("el",null)},c.destroy=function(){this.clear(),e.prototype.destroy.call(this)}
/**
   * show or hide
   * @protected
   * @param {Boolean} visible true means show, false means hide
   */,c.changeVisible=function(e){this.set("visible",e);var t=this.get("el");t&&(t.set?t.set("visible",e):t.style.display=e?"":"none")}
/**
   * calculate the canvas coordinate value
   * @protected
   * @param  {Coordinate} coord  the instance of Coordinate class
   * @param  {Object | Array | Function} position the value need to convert
   * @return {Object} return the result
   */,c.parsePoint=function(e,t){var n,r,o=this,s=o.get("xScales"),c=o.get("yScales");// 如果数据格式是 ['50%', '50%'] 的格式
if(i.isFunction(t)&&(t=t(s,c)),i.isArray(t)&&i.isString(t[0])&&-1!==t[0].indexOf("%"))return this._parsePercentPoint(e,t);if(i.isArray(t))
// Array，suuport for mixing of keyword, percent and value
n=o._getNormalizedValue(t[0],a.getFirstScale(s)),r=o._getNormalizedValue(t[1],a.getFirstScale(c));else for(var l in t){var u=t[l];s[l]&&(n=o._getNormalizedValue(u,s[l])),c[l]&&(r=o._getNormalizedValue(u,c[l],"y"))}return i.isNil(n)||i.isNil(r)||isNaN(n)||isNaN(r)?null:e.convert({x:n,y:r})}
/**
   * Normalized the value
   * @param  {String | Number} val   param
   * @param  {Scale} scale the instance of Scale
   * @return {Number}       return the normalized value
   */,c._getNormalizedValue=function(e,t){var n,r;return-1!==i.indexOf(s,e)?"start"===e?
// the start of coordinate
n=0:"end"===e?n=1:"median"===e?(r=t.isCategory?(t.values.length-1)/2:(t.min+t.max)/2,n=t.scale(r)):(r=t.isCategory?"min"===e?0:t.values.length-1:t[e],n=t.scale(r)):
// 数值
n=t.scale(e),n},c._parsePercentPoint=function(e,t){var n=parseFloat(t[0])/100,r=parseFloat(t[1])/100,i=e.start,a=e.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:e.width*n+o,y:e.height*r+s}},o}(o);e.exports=c},
/* 18 */
/***/function(e,t,n){var r=n(112);e.exports=r},
/* 19 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(85);
/* harmony reexport (binding) */n.d(t,"a",(function(){return r.e})),
/* harmony reexport (binding) */n.d(t,"f",(function(){return r.g})),
/* harmony reexport (binding) */n.d(t,"d",(function(){return r.f}));
/* harmony import */var i=n(241);
/* harmony reexport (binding) */n.d(t,"e",(function(){return i.a})),
/* harmony reexport (binding) */n.d(t,"c",(function(){return i.b}));
/* unused harmony reexport lch */
/* unused harmony reexport gray */
/* harmony import */var a=n(242);
/* harmony reexport (binding) */n.d(t,"b",(function(){return a.a}))},
/* 20 */
/***/function(e,t,n){var r=n(10),i=n(3),a=n(22),o=n(6),s=function(){var e=t.prototype;function t(e){this._initDefaultCfg(),r(this,e),this.init()}
/**
   * 度量初始化
   * @protected
   */return e._initDefaultCfg=function(){this.type="base",
/**
     * 格式化函数,输出文本或者tick时的格式化函数
     * @type {Function}
     */
this.formatter=null,
/**
     * 输出的值域
     * @type {Array}
     */
this.range=[0,1],
/**
     * 度量的标记
     * @type {Array}
     */
this.ticks=null,
/**
     * 参与度量计算的值，可选项
     * @type {Array}
     */
this.values=[]},e.init=function(){}
/**
   * 获取该度量的ticks,返回的是多个对象，
   *   - text: tick 的文本
   *   - value: 对应的度量转换后的值
   * <code>
   *   [
   *     {text: 0,value:0}
   *     {text: 1,value:0.2}
   *     {text: 2,value:0.4}
   *     {text: 3,value:0.6}
   *     {text: 4,value:0.8}
   *     {text: 5,value:1}
   *   ]
   * </code>
   * @param {Number} count 输出tick的个数的近似值，默认是 10
   * @return {Array} 返回 ticks 数组
   */,e.getTicks=function(){var e=this,t=e.ticks,n=[];return i(t,(function(t){var r;r=a(t)?t:{text:e.getText(t),tickValue:t,value:e.scale(t)},n.push(r)})),n}
/**
   * 获取格式化后的文本
   * @param  {*} value 输入的数据
   * @param  {*} key 字段的 key
   * @return {String} 格式化的文本
   */,e.getText=function(e,t){var n=this.formatter;return e=n?n(e,t):e,!o(e)&&e.toString||(e=""),e.toString()}
/**
   * 输出的值域最小值
   * @protected
   * @return {Number} 返回最小的值
   */,e.rangeMin=function(){return this.range[0]}
/**
   * 输出的值域最大值
   * @protected
   * @return {Number} 返回最大的值
   */,e.rangeMax=function(){var e=this.range;return e[e.length-1]}
/**
   * 度量转换后的结果，翻转回输入域
   * @param  {Number} value 需要翻转的数值
   * @return {*} 度量的输入值
   */,e.invert=function(e){return e}
/**
   * 将传入的值从非数值转换成数值格式，如分类字符串、时间字符串等
   * @param  {*} value 传入的值
   * @return {Number} 转换的值
   */,e.translate=function(e){return e}
/**
   * 进行度量转换
   * @param  {*} value 输入值
   * @return {Number} 输出值，在设定的输出值域之间，默认[0,1]
   */,e.scale=function(e){return e}
/**
   * 克隆一个新的scale,拥有跟当前scale相同的输入域、输出域等
   * @return {Scale} 克隆的度量
   */,e.clone=function(){var e=this,t=e.constructor,n={};return i(e,(function(t,r){n[r]=e[r]})),new t(n)}
/**
   * 更改度量的属性信息
   * @param  {Object} info 属性信息
   * @chainable
   * @return {Scale} 返回自身的引用
   */,e.change=function(e){return this.ticks=null,r(this,e),this.init(),this},t}();e.exports=s},
/* 21 */
/***/function(e,t,n){
/**
 * @fileOverview 工厂类，管理各种类型的 shape
 * @author dxq613@gmail.com
 */
var r=n(0),i=n(25),a=r.PathUtil,o={},s={_coord:null,
/**
   * 绘制图形
   * @param {Object} cfg 配置项
   * @param {Object} container 容器
   * @return {Object} shape 创建的 shape
   */
draw:function(e,t){return this.drawShape?this.drawShape(e,t):null},
/**
   * 获取绘制图形需要的点, 可以不定义，则使用默认的
  getPoints(cfg) {
    if (this.getShapePoints) {
      return this.getShapePoints(cfg);
    }
    return null;
  },*/
/**
   * 设置坐标系
   * @param {Coord} coord 坐标系
   */
setCoord:function(e){this._coord=e},
/**
   * 0～1 path 转 画布 path
   * @param  {path} path 路径
   * @param  {Boolean} islineToArc 是否转换成圆弧
   * @return {path} path 转换到画布坐标的path
   */
parsePath:function(e,t){var n=this._coord;return e=a.parsePathString(e),e=n.isPolar&&!1!==t?i.convertPolarPath(n,e):i.convertNormalPath(n,e)},
/**
   * 0～1 point 转 画布 point
   * @param  {point} point 节点
   * @return {point} point 转换后的点
   */
parsePoint:function(e){return this._coord.convertPoint(e)},
/**
   * 0～1 points 转 画布 points
   * @param  {points} points 节点集合
   * @return {points} points 转换后的多个节点
   */
parsePoints:function(e){var t=this._coord,n=[];return r.each(e,(function(e){n.push(t.convertPoint(e))})),n}},c={defaultShapeType:null,setCoord:function(e){this._coord=e},getShape:function(e){var t=this;r.isArray(e)&&(e=e[0]);var n=t[e]||t[t.defaultShapeType];return n._coord=t._coord,n},getShapePoints:function(e,t){var n=this.getShape(e);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(t)},getDefaultPoints:function(){return[]},getMarkerCfg:function(e,t){var n=this.getShape(e);if(!n.getMarkerCfg){var r=this.defaultShapeType;n=this.getShape(r)}return n.getMarkerCfg(t)},getSelectedCfg:function(){return{}},drawShape:function(e,t,n){var r=this.getShape(e).draw(t,n);return r&&(r.setSilent("origin",t.origin),r._id=t.yIndex?t._id+t.yIndex:t._id,r.name=this.name),r}};// 注册 Geometry 获取图形的入口
o.registerFactory=function(e,t){var n=r.upperFirst(e),i=r.assign({},c,t);return o[n]=i,i.name=e,i},// 注册图形
o.registerShape=function(e,t,n){var i=r.upperFirst(e),a=o[i],c=r.assign({},s,n);return a[t]=c,c},// 获得Geom 对应的 shapeFactory
o.getShapeFactory=function(e){return e=e||"point",this[r.upperFirst(e)]},e.exports=o},
/* 22 */
/***/function(e,t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){
/**
   * isObject({}) => true
   * isObject([1, 2, 3]) => true
   * isObject(Function) => true
   * isObject(null) => false
   */
var t=void 0===e?"undefined":n(e);return null!==e&&"object"===t||"function"===t}},
/* 23 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview 所有 Geometry 的基类
 * @author dxq613@gmail.com
 */var i=n(104),a=n(335),o=n(164),s=n(0),c=n(8),l=n(343),u=n(21),h=n(395),f=n(396),d=n(397),p=n(398),g=["color","shape","size"],m="_origin";// 转换成对象的数组 [{type: 'adjust'}]
function v(e){
// 如果是字符串或者对象转换成数组
return(s.isString(e)||s.isPlainObject(e))&&(e=[e]),s.each(e,(function(t,n){s.isObject(t)||(e[n]={type:t})})),e}
/**
 * 几何标记
 * @class Geom
 */var y=function(e){var t,n;n=e,(t=y).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=y.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */function y(t){var n;return(n=e.call(this,t)||this).viewTheme=n.get("viewTheme"),s.assign(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),h,f,d),n.get("container")&&n._initContainer(),n._initOptions(),n}// 初始化时对配置项的格式化
return o.getDefaultCfg=function(){return{
/**
       * 标记 _id 用于区分执行动画
       * @type {String}
       */
_id:null,
/**
       * 类型
       * @type {String}
       */
type:"base",
/**
       * 坐标系
       * @type {Object}
       */
coord:null,
/**
       * 属性映射集
       * @protected
       * @type {Object}
       */
attrs:{},
/**
       * 所属的View
       * @type {View}
       */
view:null,
/**
       * 几何标记显示的数据
       * @type {Array}
       */
data:[],
/**
       * 相关的度量
       * @type {Object}
       */
scales:{},
/**
       * 绘图容器
       * @type {Object}
       */
container:null,
/**
       * 文本容器
       * @type {Object}
       */
labelContainer:null,
/**
       * 图形容器
       * @type {Object}
       */
shapeContainer:null,
/**
       * 几何标记的一些配置项，用于延迟生成图表
       * @type {Object}
       */
attrOptions:{},
// 样式配置项
styleOptions:null,
// 选中时的配置项
selectedOptions:null,
// active 时的配置项
activedOptions:null,
/**
       * 某些类存在默认的adjust，不能更改 adjust
       * @type {Boolean}
       */
hasDefaultAdjust:!1,
// 数据调整类型
adjusts:null,
/**
       * 使用形状的类型
       * @protected
       * @type {String}
       */
shapeType:null,
/**
       * 是否生成多个点来绘制图形
       * @protected
       * @type {Boolean}
       */
generatePoints:!1,
/**
       * 数据是否进行排序
       * @type {Boolean}
       */
sortable:!1,labelCfg:null,
/**
       * 是否共享 tooltip
       * @type {Boolean}
       */
shareTooltip:!0,tooltipCfg:null,
/**
       * 是否执行动画，默认执行
       * @type {Boolean}
       */
animate:!0,
/**
       * 动画配置
       * @type {[type]}
       */
animateCfg:null,visible:!0}},o._initOptions=function(){var e=this.get("adjusts");e&&(e=v(e),this.set("adjusts",e))},o._createScale=function(e,t){var n=this.get("scales"),r=n[e];return r||(r=this.get("view").createScale(e,t),n[e]=r),r},o._setAttrOptions=function(e,t){this.get("attrOptions")[e]=t},o._createAttrOption=function(e,t,n,r){var i={};i.field=t,n?s.isFunction(n)?i.callback=n:i.values=n:"color"!==e&&(i.values=r),this._setAttrOptions(e,i)}
/**
   * 位置属性映射
   * @chainable
   * @param  {String} field 字段名
   * @return {Geom} geom 当前几何标记
   */,o.position=function(e){return this._setAttrOptions("position",{field:e}),this}
/**
   * 颜色属性映射
   * @chainable
   * @param  {String} field 字段名
   * @param  {Array|Function} values 颜色的数组或者回调函数
   * @return {Geom} geom 当前几何标记
   */,o.color=function(e,t){var n=this.viewTheme||c;return this._createAttrOption("color",e,t,n.colors),this}
/**
   * 大小属性映射
   * @chainable
   * @param  {String} field 字段名
   * @param  {Array|Function} values 大小的数组或者回调函数
   * @return {Geom} geom 当前几何标记
   */,o.size=function(e,t){var n=this.viewTheme||c;return this._createAttrOption("size",e,t,n.sizes),this}
/**
   * 形状属性映射
   * @chainable
   * @param  {String} field 字段名
   * @param  {Array|Function} values 大小的数组或者回调函数
   * @return {Geom} geom 当前几何标记
   */,o.shape=function(e,t){var n=this.viewTheme||c,r=this.get("type"),i=n.shapes[r]||[];return this._createAttrOption("shape",e,t,i),this}
/**
   * 透明度属性映射
   * @chainable
   * @param  {String} field 字段名
   * @param  {Array|Function} values 透明度的数组或者回调函数
   * @return {Geom} geom 当前几何标记
   */,o.opacity=function(e,t){var n=this.viewTheme||c;return this._createAttrOption("opacity",e,t,n.opacities),this},o.style=function(e,t){var n,r=this.get("styleOptions");return r||(r={},this.set("styleOptions",r)),s.isObject(e)&&(t=e,e=null),e&&(n=p(e)),r.fields=n,r.style=t,this},o.label=function(e,t,n){var r,i=this.get("labelCfg");// const scales = Util.map(self.get('labelCfg').fields, field => self._createScale(field));
return i||(i={},this.set("labelCfg",i)),e&&(r=p(e)),i.fields=r,// 如果存在回调函数
s.isFunction(t)?(n||(n={}),i.callback=t):s.isObject(t)&&(
// 如果没有设置回调函数
n=t),i.globalCfg=n,this},o.tooltip=function(e,t){var n,r=this.get("tooltipCfg");return r||(r={}),!1===e?
// geom 关闭 tooltip
this.set("tooltipCfg",!1):(e&&(n=p(e)),r.fields=n,r.cfg=t),this.set("tooltipCfg",r),this},o.animate=function(e){return this.set("animateCfg",e),this}
/**
   * 是否允许使用默认的图形激活交互
   * @param  {Boolean} enable 是否允许激活开关
   * @param {Object} cfg 激活的配置项
   * @return {Geom}    返回 geom 自身
   */,o.active=function(e,t){return!1===e?this.set("allowActive",!1):s.isObject(e)?(this.set("allowActive",!0),this.set("activedOptions",e)):(this.set("allowActive",!0),this.set("activedOptions",t)),this}
/**
   * 对 geometry 进行数据调整
   * @chainable
   * @param  {String|Array|null} adjusts 数据调整的类型
   * @return {Object} geometry 对象
   */,o.adjust=function(e){return this.get("hasDefaultAdjust")||(e&&(e=v(e)),this.set("adjusts",e)),this}
/**
   * 设置图形的选中模式
   * @param  {Boolean|Object} enable 布尔类型用于模式开关，对象类型用于配置
   * @param  {Object} cfg    选中配置项
   * @return {Geom}          返回 geom 自身
   */,o.select=function(e,t){return!1===e?this.set("allowSelect",!1):s.isObject(e)?(this.set("allowSelect",!0),this.set("selectedOptions",e)):(this.set("allowSelect",!0),this.set("selectedOptions",t)),this},o.hasAdjust=function(e){var t=this.get("adjusts");if(!e)return!1;var n=!1;return s.each(t,(function(t){if(t.type===e)return n=!0,!1})),n},o.hasStack=function(){var e=this.get("isStacked");return s.isNil(e)&&(e=this.hasAdjust("stack"),this.set("isStacked",e)),e},o.isInCircle=function(){var e=this.get("coord");return e&&e.isPolar},o._initContainer=function(){var e=this,t=e.get("shapeContainer");if(!t){var n=e.get("container"),r=e.get("view"),i=r&&r.get("_id");t=n.addGroup({viewId:i,visible:e.get("visible")}),e.set("shapeContainer",t)}},o.init=function(){var e=this;if(e._initContainer(),e._initAttrs(),e.get("tooltipCfg")&&e.get("tooltipCfg").fields){var t=e.get("tooltipCfg").fields;s.each(t,(function(t){e._createScale(t)}))}var n=e._processData();e.get("adjusts")&&e._adjust(n),e.set("dataArray",n)}// step 1: init attrs
,o._initAttrs=function(){var e=this,t=e.get("attrs"),n=e.get("attrOptions"),r=e.get("coord"),a=e.viewTheme||c,o=!1;for(var l in n)if(n.hasOwnProperty(l)){var u=n[l],h=s.upperFirst(l),f=p(u.field);"position"===l&&(u.coord=r,// 饼图坐标系下，填充一维
1===f.length&&"theta"===r.type&&(f.unshift("1"),o=!0));for(var d=[],g=0;g<f.length;g++){var m=f[g],v=e._createScale(m);"color"===l&&s.isNil(u.values)&&(
// 设置 color 的默认色值
v.values.length<=8?u.values=o?a.colors_pie:a.colors:v.values.length<=16?u.values=o?a.colors_pie_16:a.colors_16:u.values=a.colors_24,s.isNil(u.values)&&(u.values=a.colors)),d.push(v)}// 饼图需要填充满整个空间
if("theta"===r.type&&"position"===l&&d.length>1){var y=d[1],A=Math.max.apply(null,y.values);isFinite(A)||(A=1),y.change({nice:!1,min:0,max:A})}u.scales=d;var b=new i[h](u);t[l]=b}}// step 2: 处理数据
,o._processData=function(){for(var e=this.get("data"),t=[],n=this._groupData(e),r=0;r<n.length;r++){var i=n[r],a=this._saveOrigin(i);t.push(this._numberic(a))}return t}// step 2.1 数据分组
,o._groupData=function(e){var t=this._getGroupScales().map((function(e){return e.field}));return s.Array.group(e,t)}// step 2.2 数据调整前保存原始数据
,o._saveOrigin=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i={};for(var a in r)i[a]=r[a];// const obj = Util.mix({}, origin);
i[m]=r,t.push(i)}return t}// step 2.3 将分类数据翻译成数据, 仅对位置相关的度量进行数字化处理
,o._numberic=function(e){for(var t=this.getAttr("position").scales,n=[],r=0;r<e.length;r++){for(var i=e[r],a=!0,o=0;o<Math.min(2,t.length);o++){var s=t[o];if(s.isCategory){var c=s.field;i[c]=s.translate(i[c]),Number.isNaN(i[c])&&(
// 当分类为 NaN 时，说明该条数据不在定义域内，需要过滤掉
a=!1)}}a&&n.push(i)}return n},o._getGroupScales=function(){var e=this,t=e.get("groupScales");if(!t){t=[];var n=e.get("attrs");s.each(n,(function(e){if(g.includes(e.type)){var n=e.scales;s.each(n,(function(e){e.isCategory&&-1===s.indexOf(t,e)&&t.push(e)}))}})),e.set("groupScales",t)}return t},o._updateStackRange=function(e,t,n){for(var r=s.Array.merge(n),i=t.min,a=t.max,o=0;o<r.length;o++){var c=r[o];// 过滤掉非法数据
if(s.isArray(c[e])){var l=Math.min.apply(null,c[e]),u=Math.max.apply(null,c[e]);l<i&&(i=l),u>a&&(a=u)}}(i<t.min||a>t.max)&&t.change({min:i,max:a})}// step 2.2 调整数据
,o._adjust=function(e){
// 当数据为空的时候，就不需要对数据进行调整了
if(e&&e.length){var t=this,n=t.get("adjusts"),r=this.viewTheme||c,i=t.getYScale(),o=t.getXScale(),l=o.field,u=i?i.field:null;s.each(n,(function(n){var c=s.mix({xField:l,yField:u},n),h=s.upperFirst(n.type);if("Dodge"===h){var f=[];if(o.isCategory||o.isIdentity)f.push("x");else{if(i)throw new Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}c.adjustNames=f,c.dodgeRatio=c.dodgeRatio||r.widthRatio.column}else if("Stack"===h){var d=t.get("coord");if(!i){
// 一维的情况下获取高度和默认size
c.height=d.getHeight();var p=t.getDefaultValue("size")||3;c.size=p}// 不进行 transpose 时，用户又没有设置这个参数时，默认从上向下
!d.isTransposed&&s.isNil(c.reverseOrder)&&(c.reverseOrder=!0)}new a[h](c).processAdjust(e),"Stack"===h&&i&&t._updateStackRange(u,i,e)}))}}
/**
   * @internal 设置coord，通常外部容器变化时，coord 会发生变化
   * @param {Object} coord 坐标系
   */,o.setCoord=function(e){this.set("coord",e);var t=this.getAttr("position");this.get("shapeContainer").setMatrix(e.matrix),t&&(t.coord=e)}// step 3 绘制
,o.paint=function(){var e=this,t=e.get("dataArray"),n=[],r=e.getShapeFactory();r.setCoord(e.get("coord")),e.set("shapeFactory",r);var i=e.get("shapeContainer");e._beforeMapping(t);for(var a=0;a<t.length;a++){var o=t[a],c=a;o=e._mapping(o),n.push(o),e.draw(o,i,r,c)}e.get("labelCfg")&&e._addLabels(s.union.apply(null,n),i.get("children")),e.get("sortable")?e.set("dataArray",n):e._sort(n)},o._sort=function(e){var t=this.getXScale(),n=t.field;s.each(e,(function(e){e.sort((function(e,r){return t.translate(e[m][n])-t.translate(r[m][n])}))})),this.set("dataArray",e)}// step 3.1 before mapping
,o._beforeMapping=function(e){var t=this;if(t.get("sortable")){var n=t.getXScale(),r=n.field;s.each(e,(function(e){e.sort((function(e,t){return n.translate(e[r])-n.translate(t[r])}))}))}t.get("generatePoints")&&(s.each(e,(function(e){t._generatePoints(e)})),s.each(e,(function(t,n){var r=e[n+1];r&&(t[0].nextPoints=r[0].points)})))}// step 3.2 add labels
,o._addLabels=function(e,t){var n=this,r=n.get("type"),i=n.get("viewTheme")||c,a=n.get("coord"),o=l.getLabelsClass(a.type,r),u=n.get("container"),h=s.map(n.get("labelCfg").fields,(function(e){return n._createScale(e)})),f=u.addGroup(o,{_id:this.get("_id"),labelCfg:s.mix({scales:h},n.get("labelCfg")),coord:a,geom:n,geomType:r,yScale:n.getYScale(),viewTheme:i,visible:n.get("visible")});f.showLabels(e,t),n.set("labelContainer",f)}
/**
   * @protected
   * 获取图形的工厂类
   * @return {Object} 工厂类对象
   */,o.getShapeFactory=function(){var e=this.get("shapeFactory");if(!e){var t=this.get("shapeType");e=u.getShapeFactory(t),this.set("shapeFactory",e)}return e}// step 3.2 generate points
,o._generatePoints=function(e){for(var t=this,n=t.getShapeFactory(),r=t.getAttr("shape"),i=0;i<e.length;i++){var a=e[i],o=t.createShapePointsCfg(a),s=r?t._getAttrValues(r,a):null,c=n.getShapePoints(s,o);a.points=c}}
/**
   * 获取图形对应点的配置项
   * @protected
   * @param  {Object} obj 数据对象
   * @return {Object} cfg 获取图形对应点的配置项
   */,o.createShapePointsCfg=function(e){var t=this.getXScale(),n=this.getYScale();return{x:this._normalizeValues(e[t.field],t),y:// 存在没有 y 的情况
n?this._normalizeValues(e[n.field],n):e.y?e.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}}
/**
   * @protected
   * 如果y轴的最小值小于0则返回0，否则返回最小值
   * @return {Number} y轴上的最小值
   */,o.getYMinValue=function(){var e=this.getYScale(),t=e.min,n=e.max;return t>=0?t:n<=0?n:0}// 将数据归一化
,o._normalizeValues=function(e,t){var n=[];if(s.isArray(e))for(var r=0;r<e.length;r++){var i=e[r];n.push(t.scale(i))}else n=t.scale(e);return n}// step 3.2 mapping
,o._mapping=function(e){for(var t=this.get("attrs"),n=[],r=0;r<e.length;r++){var i=e[r],a={};for(var o in a[m]=i[m],a.points=i.points,a.nextPoints=i.nextPoints,t)if(t.hasOwnProperty(o)){var c=t[o],l=c.names,u=this._getAttrValues(c,i);if(l.length>1)
// position 之类的生成多个字段的属性
for(var h=0;h<u.length;h++){var f=u[h];a[l[h]]=s.isArray(f)&&1===f.length?f[0]:f}else a[l[0]]=1===u.length?u[0]:u}n.push(a)}return n}// 获取属性映射的值
,o._getAttrValues=function(e,t){for(var n=e.scales,r=[],i=0;i<n.length;i++){var a=n[i],o=a.field;"identity"===a.type?r.push(a.value):r.push(t[o])}return e.mapping.apply(e,r)},o.getAttrValue=function(e,t){var n=this.getAttr(e),r=null;return n&&(r=this._getAttrValues(n,t)[0]),r},o.getDefaultValue=function(e){var t=this.get(e),n=this.getAttr(e);if(n){var r=n.getScale(e);"identity"===r.type&&(t=r.value)}return t}
/**
   * step 3.3 draw
   * @protected
   * @param  {Array} data 绘制图形
   * @param {Object} container 绘图容器
   * @param {Object} shapeFactory 绘制图形的工厂类
   * @param {Number} index 每个 shape 的索引值
   */,o.draw=function(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];this.drawPoint(a,t,n,r+i)}},o.getCallbackCfg=function(e,t,n){if(!e)return t;var r={},i=e.map((function(e){return n[e]}));return s.each(t,(function(e,t){s.isFunction(e)?r[t]=e.apply(null,i):r[t]=e})),r},o._getShapeId=function(e){var t=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)s.each(n,(function(n){t+="-"+e[n]}));else{var r,i=this.get("type"),a=this.getXScale(),o=this.getYScale(),c=a.field||"x",l=o.field||"y",u=e[l];r=a.isIdentity?a.value:e[c],t+="interval"===i||"schema"===i?"-"+r:"line"===i||"area"===i||"path"===i?"-"+i:"-"+r+"-"+u;var h=this._getGroupScales();s.isEmpty(h)||s.each(h,(function(n){var r=n.field;"identity"!==n.type&&(t+="-"+e[r])}))}return t},o.getDrawCfg=function(e){var t=this,n={origin:e,x:e.x,y:e.y,color:e.color,size:e.size,shape:e.shape,isInCircle:t.isInCircle(),opacity:e.opacity},r=t.get("styleOptions");return r&&r.style&&(n.style=t.getCallbackCfg(r.fields,r.style,e[m])),t.get("generatePoints")&&(n.points=e.points,n.nextPoints=e.nextPoints),t.get("animate")&&(
// _id 字段仅用于动画
n._id=t._getShapeId(e[m])),n},o.appendShapeInfo=function(e,t){e&&(e.setSilent("index",t),e.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&e.setSilent("animateCfg",this.get("animateCfg")))},o._applyViewThemeShapeStyle=function(e,t,n){
// applying view theme
var r=this.viewTheme||c,i=n.name;t?t&&(t.indexOf("hollow")>-1||t.indexOf("liquid")>-1)&&(i="hollow"+s.upperFirst(i)):n.defaultShapeType.indexOf("hollow")>-1&&(i="hollow"+s.upperFirst(i));var a=r.shape[i]||{};e.style=s.mix({},a,e.style)},o.drawPoint=function(e,t,n,r){var i=this,a=e.shape,o=i.getDrawCfg(e);i._applyViewThemeShapeStyle(o,a,n);var s=n.drawShape(a,o,t);i.appendShapeInfo(s,r)}
/**
   * 获取属性
   * @protected
   * @param {String} name 属性名
   * @return {Scale} 度量
   */,o.getAttr=function(e){return this.get("attrs")[e]}
/**
   * 获取 x 对应的度量
   * @return {Scale} x 对应的度量
   */,o.getXScale=function(){return this.getAttr("position").scales[0]}
/**
   * 获取 y 对应的度量
   * @return {Scale} y 对应的度量
   */,o.getYScale=function(){return this.getAttr("position").scales[1]},o.getShapes=function(){var e=[],t=this.get("shapeContainer").get("children");return s.each(t,(function(t){t.get("origin")&&
// 过滤 label
e.push(t)})),e},o.getAttrsForLegend=function(){var e=this.get("attrs"),t=[];return s.each(e,(function(e){g.includes(e.type)&&t.push(e)})),t},o.getFieldsForLegend=function(){var e=[],t=this.get("attrOptions");return s.each(g,(function(n){var r=t[n];r&&r.field&&s.isString(r.field)&&(e=e.concat(r.field.split("*")))})),s.uniq(e)},o.changeVisible=function(e,t){this.set("visible",e);var n=this.get("shapeContainer");n&&n.set("visible",e);var r=this.get("labelContainer");r&&r.set("visible",e),!t&&n&&n.get("canvas").draw()},o.reset=function(){this.set("attrOptions",{}),this.clearInner()},o.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var e=this.get("shapeContainer");e&&e.clear();// 由于 Labels 对应的模块需要生成group，所以这个地方需要删除
var t=this.get("labelContainer");t&&t.remove(),this.set("attrs",{}),this.set("groupScales",null),// if (!this.get('hasDefaultAdjust')) {
//   this.set('adjusts', null);
// }
this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},o.clear=function(){this.clearInner(),this.set("scales",{})},o.destroy=function(){this.clear();var t=this.get("shapeContainer");t&&t.remove(),this.offEvents(),e.prototype.destroy.call(this)},o.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},o.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},y}(o);e.exports=y},
/* 24 */
/***/function(e,t,n){e.exports={Axis:n(344),Component:n(92),Guide:n(372),Label:n(381),Legend:n(382),Tooltip:n(388)};
/***/},
/* 25 */
/***/function(e,t,n){
/**
 * @fileOverview 计算path 使用的工具方法
 * @author dxq613@gmail.com
 */
var r=n(0),i=n(392);function a(e,t){var n=e.getCenter();return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function o(e,t){for(var n=e.length,r=[e[0]],i=1;i<n;i+=2){var a=t.convertPoint({x:e[i],y:e[i+1]});r.push(a.x,a.y)}return r}var s={
// 线的path
getLinePath:function(e,t){return function(e,t){if(!e.length)return[];for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r];0===r?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}return t&&n.push(["Z"]),n}(e,t)},
// get spline： 限定了范围的平滑线
getSplinePath:function(e,t,n){var a=[],o=e[0],c=null;if(e.length<=2)return s.getLinePath(e,t);r.each(e,(function(e){c&&c.x===e.x&&c.y===e.y||(a.push(e.x),a.push(e.y),c=e)})),n=n||[// 范围
[0,0],[1,1]];var l=i.catmullRom2bezier(a,t,n);return l.unshift(["M",o.x,o.y]),l},getPointRadius:function(e,t){return a(e,t)},getPointAngle:function(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)},convertNormalPath:function(e,t){var n=[];return r.each(t,(function(t){switch(t[0].toLowerCase()){case"m":case"l":case"c":n.push(o(t,e));break;default:n.push(t)}})),n},convertPolarPath:function(e,t){var n,i,s=[];// 过滤多余的直线
return r.each(t,(function(r,c){switch(r[0].toLowerCase()){case"m":case"c":case"q":s.push(o(r,e));break;case"l":n=t[c-1],i=r,(e.isTransposed?n[n.length-2]===i[1]:n[n.length-1]===i[2])?s=s.concat(function(e,t,n){
// const radius = coord.getRadius();
// const inner = coord.innerRadius || 0;
// let innerRadius = inner * radius;
var r=n.isTransposed,i=n.startAngle,o=n.endAngle,s={x:e[1],y:e[2]},c={x:t[1],y:t[2]},l=[],u=r?"y":"x",h=Math.abs(c[u]-s[u])*(o-i),f=c[u]>=s[u]?1:0,d=h>Math.PI?1:0,p=n.convertPoint(c),g=a(n,p);if(g>=.5)
// 小于1像素的圆在图像上无法识别
if(h===2*Math.PI){var m={x:(c.x+s.x)/2,y:(c.y+s.y)/2},v=n.convertPoint(m);l.push(["A",g,g,0,d,f,v.x,v.y]),l.push(["A",g,g,0,d,f,p.x,p.y])}else l.push(["A",g,g,0,d,f,p.x,p.y]);return l}// 当存在整体的圆时，去除圆前面和后面的线，防止出现直线穿过整个圆的情形
(n,i,e)):
// y 不相等，所以直接转换
s.push(o(r,e));break;default:s.push(r)}})),function(e){r.each(e,(function(t,n){if("a"===t[0].toLowerCase()){var r=e[n-1],i=e[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(s),s}};e.exports=s},
/* 26 */
/***/function(e,t,n){var r=n(6);e.exports=function(e){return r(e)?"":e.toString()}},
/* 27 */
/***/function(e,t,n){var r=n(28),i=n(5);function a(e,t,n,o){for(var s in n=n||0,o=o||5,t)if(t.hasOwnProperty(s)){var c=t[s];null!==c&&r(c)?(r(e[s])||(e[s]={}),n<o?a(e[s],c,n+1,o):e[s]=t[s]):i(c)?(e[s]=[],e[s]=e[s].concat(c)):void 0!==c&&(e[s]=c)}}e.exports=function(){for(var e=new Array(arguments.length),t=e.length,n=0;n<t;n++)e[n]=arguments[n];for(var r=e[0],i=1;i<t;i++)a(r,e[i]);return r}},
/* 28 */
/***/function(e,t,n){var r=n(63),i=n(14);e.exports=function(e){
/**
   * isObjectLike(new Foo) => false
   * isObjectLike([1, 2, 3]) => false
   * isObjectLike({ x: 0, y: 0 }) => true
   * isObjectLike(Object.create(null)) => true
   */
if(!r(e)||!i(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},
/* 29 */
/***/function(e,t,n){var r=n(15);e.exports=function(e){return r(e)?Array.prototype.slice.call(e):[]}},
/* 30 */
/***/function(e,t){// numbers less than this is considered as 0
e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(e-t)<n}},
/* 31 */
/***/function(e,t,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;e.exports={parseRadius:function(e){var t=0,n=0,i=0,a=0;return r.isArray(e)?1===e.length?t=n=i=a=e[0]:2===e.length?(t=i=e[0],n=a=e[1]):3===e.length?(t=e[0],n=a=e[1],i=e[2]):(t=e[0],n=e[1],i=e[2],a=e[3]):t=n=i=a=e,{r1:t,r2:n,r3:i,r4:a}},parsePath:function(e){return e=e||[],r.isArray(e)?e:r.isString(e)?(e=e.match(i),r.each(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}r.each(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}}},
/* 32 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.c=function(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(e)?t:e)},
/* harmony export (immutable) */t.b=function(e){return 1==(e=+e)?a:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Object(r.a)(isNaN(t)?n:t)}},
/* harmony export (immutable) */t.a=a;
/* harmony import */var r=n(137);function i(e,t){return function(n){return e+n*t}}function a(e,t){var n=t-e;return n?i(e,n):Object(r.a)(isNaN(e)?t:e)}
/***/},
/* 33 */
/***/function(e,t,n){
/**
 * @fileOverview the Attribute base class
 */
var r=n(12),i=n(5),a=n(6),o=n(10),s=n(3);function c(e,t){return r(t)?t:e.invert(e.scale(t))}
/**
 * 所有视觉通道属性的基类
 * @class Attr
 */var l=function(){function e(e){var t=this;
/**
     * 属性的类型
     * @type {String}
     */this.type="base",
/**
     * 属性的名称
     * @type {String}
     */
this.name=null,
/**
     * 回调函数
     * @type {Function}
     */
this.method=null,
/**
     * 备选的值数组
     * @type {Array}
     */
this.values=[],
/**
     * 属性内部的度量
     * @type {Array}
     */
this.scales=[],
/**
     * 是否通过线性取值, 如果未指定，则根据数值的类型判定
     * @type {Boolean}
     */
this.linear=null;
/**
     * 当用户设置的 callback 返回 null 时, 应该返回默认 callback 中的值
     */
var n=null,r=this.callback;if(e.callback){var i=e.callback;n=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var s=i.apply(void 0,n);return a(s)&&(s=r.apply(t,n)),s}}o(this,e),n&&o(this,{callback:n})}// 获取属性值，将值映射到视觉通道
var t=e.prototype;return t._getAttrValue=function(e,t){var n=this.values;if(e.isCategory&&!this.linear)return n[e.translate(t)%n.length];var r=e.scale(t);return this.getLinearValue(r)},
/**
   * 如果进行线性映射，返回对应的映射值
   * @protected
   * @param  {Number} percent 百分比
   * @return {*}  颜色值、形状、大小等
   */
t.getLinearValue=function(e){var t=this.values,n=t.length-1,r=Math.floor(n*e),i=n*e-r,a=t[r];return a+((r===n?a:t[r+1])-a)*i},
/**
   * 默认的回调函数
   * @param {*} value 回调函数的值
   * @type {Function}
   * @return {Array} 返回映射后的值
   */
t.callback=function(e){var t=this.scales[0];return"identity"===t.type?t.value:this._getAttrValue(t,e)},
/**
   * 根据度量获取属性名
   * @return {Array} dims of this Attribute
   */
t.getNames=function(){for(var e=this.scales,t=this.names,n=Math.min(e.length,t.length),r=[],i=0;i<n;i++)r.push(t[i]);return r},
/**
   * 根据度量获取维度名
   * @return {Array} dims of this Attribute
   */
t.getFields=function(){var e=this.scales,t=[];return s(e,(function(e){t.push(e.field)})),t},
/**
   * 根据名称获取度量
   * @param  {String} name the name of scale
   * @return {Scale} scale
   */
t.getScale=function(e){return this.scales[this.names.indexOf(e)]},
/**
   * 映射数据
   * @param {*} param1...paramn 多个数值
   * @return {Array} 映射的值组成的数组
   */
t.mapping=function(){for(var e=this.scales,t=this.callback,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r;if(t){for(var o=0,s=r.length;o<s;o++)r[o]=this._toOriginParam(r[o],e[o]);a=t.apply(this,r)}return a=[].concat(a)},// 原始的参数
t._toOriginParam=function(e,t){var n=e;if(!t.isLinear)if(i(e)){n=[];for(var r=0,a=e.length;r<a;r++)n.push(c(t,e[r]))}else n=c(t,e);return n},e}();e.exports=l},
/* 34 */
/***/function(e,t,n){var r=n(10),i=function(){var e=t.prototype;function t(e){this._initDefaultCfg(),r(this,e)}
/**
   * @override
   */return e._initDefaultCfg=function(){this.adjustNames=["x","y"];// 调整的维度，默认,x,y都做调整
},e.processAdjust=function(){},t}();e.exports=i},
/* 35 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(36),a=n(4),o=n(187),s=n(188),c=n(16).FONT_FAMILY,l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var l=i.prototype;return l.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return a.mix({},t,{
/**
       * 用于动画，唯一标识的 id
       * @type {[type]}
       */
_id:null,zIndex:4,
/**
       * 坐标轴上的坐标点
       * @type {Array}
       */
ticks:null,
/**
       * 坐标轴线的配置信息，如果设置成null，则不显示轴线
       * @type {Object}
       */
line:null,
/**
       * 坐标轴刻度线的配置,如果设置成null，则不显示刻度线
       * @type {Object}
       */
tickLine:null,
/**
       * 次刻度线个数配置
       * @type {Number}
       */
subTickCount:0,
/**
       * 次刻度线样式配置
       * @type {Object}
       */
subTickLine:null,
/**
       * 网格线配置，如果值为 null，则不显示
       * @type {Object}
       */
grid:null,
/**
       * 坐标轴文本配置
       * @type {Object}
       */
label:{offset:0,offsetX:0,offsetY:0,textStyle:{},
// 坐标轴文本样式
autoRotate:!0,autoHide:!1,formatter:null},labelItems:[],
/**
       * 坐标轴标题配置
       * @type {Object}
       */
title:{autoRotate:!0,
// 文本是否自动旋转
textStyle:{}},autoPaint:!0})},l.beforeRender=function(){var e=this,t=e.get("title"),n=e.get("label"),r=e.get("grid");t&&e.set("title",a.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c,textAlign:"center"},offset:48},t)),n&&e.set("label",a.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c},offset:10},n)),r&&e.set("grid",a.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},r))},l.render=function(){var e=this;e.beforeRender(),e.get("label")&&e.renderLabels(),e.get("autoPaint")&&e.paint(),a.isNil(e.get("title"))||e.renderTitle(),e.get("group").sort()},l.renderLabels=function(){var e=this,t=e.get("group"),n=e.get("label"),r=new s({name:"axis-label"});e.set("labelRenderer",r),r.set("labelCfg",n),a.each(["formatter","htmlTemplate","labelLine","textStyle","useHtml"],(function(e){n[e]&&r.set(e,n[e])})),r.set("coord",e.get("coord")),r.set("group",t.addGroup()),r.set("canvas",e.get("canvas"))},l._parseTicks=function(e){for(var t=(e=e||[]).length,n=0;n<t;n++){var r=e[n];a.isObject(r)||(e[n]=this.parseTick(r,n,t))}return this.set("ticks",e),e},l._addTickItem=function(e,t,n,r){void 0===r&&(r="");var i=this.get("tickItems"),a=this.get("subTickItems"),o=this.getTickEnd(t,n,e),s={x1:t.x,y1:t.y,x2:o.x,y2:o.y};i||(i=[]),a||(a=[]),"sub"===r?a.push(s):i.push(s),this.set("tickItems",i),this.set("subTickItems",a)},l._renderLine=function(){var e,t=this,n=t.get("line");if(n){e=t.getLinePath(),n=a.mix({path:e},n);var r=t.get("group").addShape("path",{attrs:n});r.name="axis-line",t.get("appendInfo")&&r.setSilent("appendInfo",t.get("appendInfo")),t.set("lineShape",r)}},l._processCatTicks=function(){var e=this,t=e.get("label"),n=e.get("tickLine"),r=e.get("ticks");r=e._parseTicks(r);for(var i=e._getNormalizedTicks(r),a=0;a<i.length;a+=3){var o=e.getTickPoint(i[a]),s=e.getTickPoint(i[a+1]),c=e.getTickPoint(i[a+2]),l=Math.floor(a/3),u=r[l];n&&(0===l&&e._addTickItem(l,s,n.length),e._addTickItem(l,c,n.length)),t&&e.addLabel(u,o,l)}},l._getNormalizedTicks=function(e){var t=0;e.length>1&&(t=(e[1].value-e[0].value)/2);for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.value,s=i.value-t,c=i.value+t;n.push(o,s,c)}var l=a.arrayUtil.getRange(n);return n.map((function(e){return(e-l.min)/(l.max-l.min)}))},l.addLabel=function(e,t,n){var r=this,i=r.get("labelItems"),o=r.get("labelRenderer"),s=a.deepMix({},r.get("label"));if(o){var c=r.get("_labelOffset");a.isNil(r.get("label").offset)||(c=r.get("label").offset);var l=r.getSideVector(c,t,n);t={x:t.x+l[0]+s.offsetX,y:t.y+l[1]+s.offsetY},s.text=e.text,s.x=t.x,s.y=t.y,s.point=t,s.textAlign=r.getTextAnchor(l),t.rotate&&(s.rotate=t.rotate),i.push(s)}},l._processTicks=function(){var e=this,t=e.get("label"),n=e.get("subTickCount"),r=e.get("tickLine"),i=e.get("ticks");if(i=e._parseTicks(i),a.each(i,(function(n,i){var a=e.getTickPoint(n.value,i);r&&e._addTickItem(i,a,r.length),t&&e.addLabel(n,a,i)})),n){
// 如果有设置次级分点，添加次级tick
var o=e.get("subTickLine");a.each(i,(function(t,a){if(a>0){var s=t.value-i[a-1].value;s/=e.get("subTickCount")+1;for(var c=1;c<=n;c++){var l={text:"",value:a?i[a-1].value+c*s:c*s},u=e.getTickPoint(l.value),h=void 0;h=o&&o.length?o.length:parseInt(.6*r.length,10),e._addTickItem(c-1,u,h,"sub")}}}))}},l._addTickLine=function(e,t){var n=this,r=a.mix({},t),i=[];a.each(e,(function(e){i.push(["M",e.x1,e.y1]),i.push(["L",e.x2,e.y2])})),delete r.length,r.path=i;var o=n.get("group").addShape("path",{attrs:r});o.name="axis-ticks",o._id=n.get("_id")+"-ticks",o.set("coord",n.get("coord")),n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo"))},l._renderTicks=function(){var e=this,t=e.get("tickItems"),n=e.get("subTickItems");if(!a.isEmpty(t)){var r=e.get("tickLine");e._addTickLine(t,r)}if(!a.isEmpty(n)){var i=e.get("subTickLine")||e.get("tickLine");e._addTickLine(n,i)}},l._renderGrid=function(){var e=this.get("grid");if(e){e.coord=this.get("coord"),e.appendInfo=this.get("appendInfo");var t=this.get("group");this.set("gridGroup",t.addGroup(o,e))}},l._renderLabels=function(){var e=this.get("labelRenderer"),t=this.get("labelItems");e&&(e.set("items",t),e._dryDraw())},l.paint=function(){var e=this,t=e.get("tickLine"),n=!0;t&&t.hasOwnProperty("alignWithLabel")&&(n=t.alignWithLabel),e._renderLine();var r=e.get("type");"cat"!==r&&"timeCat"!==r||!1!==n?e._processTicks():e._processCatTicks(),e._renderTicks(),e._renderGrid(),e._renderLabels();var i=this.get("label");i&&i.autoRotate&&e.autoRotateLabels(),i&&i.autoHide&&e.autoHideLabels()},l.parseTick=function(e,t,n){return{text:e,value:t/(n-1)}},l.getTextAnchor=function(e){return Math.abs(e[1]/e[0])>=1?"center":e[0]>0?"start":"end"},l.getMaxLabelWidth=function(e){var t=e.getLabels(),n=0;return a.each(t,(function(e){var t=e.getBBox().width;n<t&&(n=t)})),n},l.getMaxLabelHeight=function(e){var t=e.getLabels(),n=0;return a.each(t,(function(e){var t=e.getBBox().height;n<t&&(n=t)})),n},l.destroy=function(){var t=this;if(!t.destroyed){var n=t.get("gridGroup");n&&n.remove();var r=this.get("labelRenderer");r&&r.destroy(),t.get("group").destroy(),e.prototype.destroy.call(this)}},l.clear=function(){var e=this,t=e.get("group");if(!t.get("destroyed")&&t.get("children").length){var n=e.get("gridGroup");n&&n.clear();var r=this.get("labelRenderer");r&&r.clear(),e.get("group").clear()}}
/**
   * 旋转文本
   * @abstract
   * @return {[type]} [description]
   */,l.autoRotateLabels=function(){}
/**
   * 文本自动防遮罩
   * @abstract
   * @return {[type]} [description]
   */,l.autoHideLabels=function(){}
/**
   * 渲染标题
   * @abstract
   * @return {[type]} [description]
   */,l.renderTitle=function(){}
/**
   * 获取坐标轴线的 path
   * @abstract
   * @return {[type]} [description]
   */,l.getLinePath=function(){}
/**
   * 获取 tick 在画布上的位置
   * @abstract
   * @return {[type]} [description]
   */,l.getTickPoint=function(){}
/**
   * 获取标示坐标点的线的终点
   * @abstract
   * @return {[type]} [description]
   */,l.getTickEnd=function(){}
/**
   * 获取距离坐标轴的向量
   * @abstract
   * @return {[type]} [description]
   */,l.getSideVector=function(){},i}(i);e.exports=l},
/* 36 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;// 配置
return a.getDefaultCfg=function(){return{
// 顶层标志位
_id:null,
// 用于动画
// 容器
canvas:null,container:null,
// html，可选
group:null,
// G Group，可选
// 交互属性
capture:!1,
// props
coord:null,offset:[0,0],plotRange:null,
// BBox
position:[0,0],visible:!0,zIndex:1}}// 基础生命周期
,a._init=function(){},a.clear=function(){},a.destroy=function(){
// 之前未指定销毁
e.prototype.destroy.call(this)}// 绘图
,a.beforeRender=function(){},a.render=function(){}// 初始化、绑事件和绘图
,a.afterRender=function(){},a.beforeDraw=function(){},a.draw=function(){}// 单纯更新视图
,a.afterDraw=function(){}// visibility
,a.show=function(){},a.hide=function(){}// props operating syntactic sugar
,a.setOffset=function(){},a.setPosition=function(){},a.setVisible=function(){},a.setZIndex=function(){},i}(n(92));e.exports=i},
/* 37 */
/***/function(e,t,n){var r=n(2),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};e.exports={parseRadius:function(e){var t=0,n=0,i=0,a=0;return r.isArray(e)?1===e.length?t=n=i=a=e[0]:2===e.length?(t=i=e[0],n=a=e[1]):3===e.length?(t=e[0],n=a=e[1],i=e[2]):(t=e[0],n=e[1],i=e[2],a=e[3]):t=n=i=a=e,{r1:t,r2:n,r3:i,r4:a}},parsePath:function(e){return e=e||[],r.isArray(e)?e:r.isString(e)?(e=e.match(i),r.each(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}r.each(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},numberToColor:function(e){
// 增加缓存
var t=o[e];if(!t){for(var n=e.toString(16),r=n.length;r<6;r++)n="0"+n;t="#"+n,o[e]=t}return t}}},
/* 38 */
/***/function(e,t,n){
/**
 * @fileOverview The measurement of linear data scale function
 * @author dxq613@gmail.com
 */
var r=n(6),i=n(3),a=n(20),o=n(208),s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this);var t=this;t.type="linear",t.isLinear=!0,
/**
     * 是否为了用户习惯，优化min,max和ticks，如果进行优化，则会根据生成的ticks调整min,max，否则舍弃(min,max)范围之外的ticks
     * @type {Boolean}
     * @default false
     */
t.nice=!1,
/**
     * min value of the scale
     * @type {Number}
     * @default null
     */
t.min=null,
/**
     * min value limitted of the scale
     * @type {Number}
     * @default null
     */
t.minLimit=null,
/**
     * max value of the scale
     * @type {Number}
     * @default null
     */
t.max=null,
/**
     * max value limitted of the scale
     * @type {Number}
     * @default null
     */
t.maxLimit=null,
/**
     * 自动生成标记时的个数
     * @type {Number}
     * @default null
     */
t.tickCount=null,
/**
     * 坐标轴点之间的间距，指的是真实数据的差值
     * @type {Number}
     * @default null
     */
t.tickInterval=null,
/**
     * 坐标轴点之间的最小间距，指的是真实数据的差值
     * @type {Number}
     * @default null
     */
t.minTickInterval=null,
/**
     * 用于计算坐标点时逼近的数组
     * @type {Array}
     */
t.snapArray=null}
/**
   * @protected
   * @override
   */,s.init=function(){var e=this;if(e.ticks){var t=e.ticks,n=e.translate(t[0]),i=e.translate(t[t.length-1]);(r(e.min)||e.min>n)&&(e.min=n),(r(e.max)||e.max<i)&&(e.max=i)}else e.min=e.translate(e.min),e.max=e.translate(e.max),e.initTicks()}
/**
   * 计算坐标点
   * @protected
   * @return {Array} 计算完成的坐标点
   */,s.calculateTicks=function(){var e=this.min,t=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,a=this.tickInterval,s=this.minTickInterval,c=this.snapArray;if(1===i)throw new Error("linear scale'tickCount should not be 1");if(t<e)throw new Error("max: "+t+" should not be less than min: "+e);return o({min:e,max:t,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:a,minTickInterval:s,snapArray:c}).ticks}// 初始化ticks
,s.initTicks=function(){var e=this,t=e.calculateTicks();if(e.nice)
// 如果需要优化显示的tick
e.ticks=t,e.min=t[0],e.max=t[t.length-1];else{var n=[];i(t,(function(t){t>=e.min&&t<=e.max&&n.push(t)})),// 如果 ticks 为空，直接输入最小值、最大值
n.length||(n.push(e.min),n.push(e.max)),e.ticks=n}}
/**
   * @override
   */,s.scale=function(e){if(r(e))return NaN;var t=this.max,n=this.min;if(t===n)return 0;var i=(e-n)/(t-n),a=this.rangeMin();return a+i*(this.rangeMax()-a)}
/**
   * @override
   */,s.invert=function(e){var t=(e-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+t*(this.max-this.min)},a}(a);a.Linear=s,e.exports=s},
/* 39 */
/***/function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(5);e.exports=function e(t){if("object"!==(void 0===t?"undefined":r(t))||null===t)return t;var n=void 0;if(i(t)){n=[];for(var a=0,o=t.length;a<o;a++)"object"===r(t[a])&&null!=t[a]?n[a]=e(t[a]):n[a]=t[a]}else for(var s in n={},t)"object"===r(t[s])&&null!=t[s]?n[s]=e(t[s]):n[s]=t[s];return n}},
/* 40 */
/***/function(e,t,n){var r=n(63),i=n(15),a=n(12);e.exports=function e(t,n){if(t===n)return!0;if(!t||!n)return!1;if(a(t)||a(n))return!1;if(i(t)||i(n)){if(t.length!==n.length)return!1;for(var o=!0,s=0;s<t.length&&(o=e(t[s],n[s]));s++);return o}if(r(t)||r(n)){var c=Object.keys(t),l=Object.keys(n);if(c.length!==l.length)return!1;for(var u=!0,h=0;h<c.length&&(u=e(t[c[h]],n[c[h]]));h++);return u}return!1}},
/* 41 */
/***/function(e,t){e.exports=function(e,t,n){return e<t?t:e>n?n:e}},
/* 42 */
/***/function(e,t,n){var r=n(218);r.translate=function(e,t,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(e,i,t)},r.rotate=function(e,t,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(e,i,t)},r.scale=function(e,t,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(e,i,t)},e.exports=r},
/* 43 */
/***/function(e,t,n){var r=n(1).vec2;e.exports={at:function(e,t,n){return(t-e)*n+e},pointDistance:function(e,t,n,i,a,o){var s=[n-e,i-t];if(r.exactEquals(s,[0,0]))return NaN;var c=[-s[1],s[0]];r.normalize(c,c);var l=[a-e,o-t];return Math.abs(r.dot(l,c))},box:function(e,t,n,r,i){var a=i/2,o=Math.min(e,n),s=Math.max(e,n);return{minX:o-a,minY:Math.min(t,r)-a,maxX:s+a,maxY:Math.max(t,r)+a}},len:function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}}},
/* 44 */
/***/function(e,t,n){var r=n(1);function i(e,t,n,r){return{x:Math.cos(r)*n+e,y:Math.sin(r)*n+t}}function a(e,t,n,r){var i,a;return r?e<t?(i=t-e,a=2*Math.PI-n+e):e>n&&(i=2*Math.PI-e+t,a=e-n):(i=e-t,a=n-e),i>a?n:t}function o(e,t,n,i){var o=0;return n-t>=2*Math.PI&&(o=2*Math.PI),t=r.mod(t,2*Math.PI),n=r.mod(n,2*Math.PI)+o,e=r.mod(e,2*Math.PI),i?t>=n?e>n&&e<t?e:a(e,n,t,!0):e<t||e>n?e:a(e,t,n):t<=n?t<e&&e<n?e:a(e,t,n,!0):e>t||e<n?e:a(e,n,t)}function s(e,t,n,i,a,s,c,l,u){var h=[c,l],f=[e,t],d=r.vec2.subtract([],h,f),p=r.vec2.angleTo([1,0],d);p=o(p,i,a,s);var g=[n*Math.cos(p)+e,n*Math.sin(p)+t];return u&&(u.x=g[0],u.y=g[1]),r.vec2.distance(g,h)}e.exports={nearAngle:o,projectPoint:function(e,t,n,r,i,a,o,c){var l={};return s(e,t,n,r,i,a,o,c,l),l},pointDistance:s,box:function(e,t,n,a,s,c){var l=Math.PI/2,u=Math.PI,h=3*Math.PI/2,f=[],d=o(0,a,s,c);0===d&&f.push(i(e,t,n,0)),(d=o(l,a,s,c))===l&&f.push(i(e,t,n,l)),(d=o(u,a,s,c))===u&&f.push(i(e,t,n,u)),(d=o(h,a,s,c))===h&&f.push(i(e,t,n,h)),f.push(i(e,t,n,a)),f.push(i(e,t,n,s));var p=1/0,g=-1/0,m=1/0,v=-1/0;return r.each(f,(function(e){p>e.x&&(p=e.x),g<e.x&&(g=e.x),m>e.y&&(m=e.y),v<e.y&&(v=e.y)})),{minX:p,minY:m,maxX:g,maxY:v}}}},
/* 45 */
/***/function(e,t,n){var r=n(31),i=n(46),a=Math.PI,o=Math.sin,s=Math.cos,c=Math.atan2,l=a/3;function u(e,t,n,r,i,u,h){var f,d,p,g,m,v,y;if(!t.fill){
// 闭合的不绘制箭头
var A=t.arrowLength||10,b=t.arrowAngle?t.arrowAngle*a/180:l;// 转换为弧
// Calculate angle
y=c(r-u,n-i),
/* // Adjust angle correctly
    angle -= PI;*/
// Calculate offset to place arrow at edge of path
m=Math.abs(t.lineWidth*s(y))/2,v=Math.abs(t.lineWidth*o(y))/2,h&&(m=-m,v=-v),// Calculate coordinates for left half of arrow
f=i+A*s(y+b/2),d=u+A*o(y+b/2),// Calculate coordinates for right half of arrow
p=i+A*s(y-b/2),g=u+A*o(y-b/2),e.beginPath(),// Draw left half of arrow
e.moveTo(f-m,d-v),e.lineTo(i-m,u-v),// Draw right half of arrow
e.lineTo(p-m,g-v),// Visually connect arrow to path
e.moveTo(i-m,u-v),e.lineTo(i+m,u+v),// Move back to end of path
e.moveTo(i,u),e.stroke()}}function h(e,t,n,a,c,l,u){var h=u?t.startArrow:t.endArrow,f=h.d,d=c-n,p=l-a,g=Math.atan2(p,d),m=function(e){var t,n=[],a=r.parsePath(e.path);if(!Array.isArray(a)||0===a.length||"M"!==a[0][0]&&"m"!==a[0][0])return!1;for(var o=a.length,s=0;s<a.length;s++){var c=a[s];t=new i(c,t,s===o-1),n.push(t)}return n}
/**
 * 如果自定义箭头并且有 d 需要做偏移，如果直接画，线条会超出箭头尖端，因此需要根据箭头偏移 d, 返回线需要缩短的距离
 * |----------------
 * |<|--------------
 * |
 * @param {Number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 * @param {number} d  箭头沿线条方向的偏移距离
 * @return {{dx: number, dy: number}} 返回线条偏移距离
 */(h);if(m){f&&(c-=s(g)*f,l-=o(g)*f),e.save(),e.beginPath(),e.translate(c,l),e.rotate(g);for(var v=0;v<m.length;v++)m[v].draw(e);e.setTransform(1,0,0,1,0,0),e.fillStyle=e.strokeStyle,e.fill(),e.restore()}}e.exports={addStartArrow:function(e,t,n,r,i,a){"object"==typeof t.startArrow?h(e,t,n,r,i,a,!0):t.startArrow&&u(e,t,n,r,i,a,!0)},addEndArrow:function(e,t,n,r,i,a){"object"==typeof t.endArrow?h(e,t,n,r,i,a,!1):t.endArrow&&u(e,t,n,r,i,a,!1)},getShortenOffset:function(e,t,n,r,i){var a=Math.atan2(r-t,n-e);return{dx:s(a)*i,dy:o(a)*i}}}},
/* 46 */
/***/function(e,t,n){var r=n(1),i=n(79),a=n(80),o=n(118),s=n(119),c=r.vec3,l=r.mat3,u=["m","l","c","a","q","h","v","t","s","z"];function h(e,t,n){
// 获取绝对坐标
return{x:n.x+e,y:n.y+t}}function f(e,t){
// 点对称
return{x:t.x+(t.x-e.x),y:t.y+(t.y-e.y)}}function d(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function p(e,t){return(e[0]*t[0]+e[1]*t[1])/(d(e)*d(t))}function g(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(p(e,t))}var m=function(e,t,n){this.preSegment=t,this.isLast=n,this.init(e,t)};r.augment(m,{init:function(e,t){var n=e[0];t=t||{endPoint:{x:0,y:0}};var i,a,o,s,c=u.indexOf(n)>=0,l=c?n.toUpperCase():n,d=e,m=t.endPoint,v=d[1],y=d[2];// /[a-z]/.test(command);
switch(l){default:break;case"M":s=c?h(v,y,m):{x:v,y:y},this.command="M",this.params=[m,s],this.subStart=s,this.endPoint=s;break;case"L":s=c?h(v,y,m):{x:v,y:y},this.command="L",this.params=[m,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-m.x,s.y-m.y]},this.startTangent=function(){return[m.x-s.x,m.y-s.y]};break;case"H":s=c?h(v,0,m):{x:v,y:m.y},this.command="L",this.params=[m,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-m.x,s.y-m.y]},this.startTangent=function(){return[m.x-s.x,m.y-s.y]};break;case"V":s=c?h(0,v,m):{x:m.x,y:v},this.command="L",this.params=[m,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-m.x,s.y-m.y]},this.startTangent=function(){return[m.x-s.x,m.y-s.y]};break;case"Q":c?(i=h(v,y,m),a=h(d[3],d[4],m)):(i={x:v,y:y},a={x:d[3],y:d[4]}),this.command="Q",this.params=[m,i,a],this.subStart=t.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]};break;case"T":a=c?h(v,y,m):{x:v,y:y},"Q"===t.command?(i=f(t.params[1],m),this.command="Q",this.params=[m,i,a],this.subStart=t.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]}):(this.command="TL",this.params=[m,a],this.subStart=t.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-m.x,a.y-m.y]},this.startTangent=function(){return[m.x-a.x,m.y-a.y]});break;case"C":c?(i=h(v,y,m),a=h(d[3],d[4],m),o=h(d[5],d[6],m)):(i={x:v,y:y},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[m,i,a,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]};break;case"S":c?(a=h(v,y,m),o=h(d[3],d[4],m)):(a={x:v,y:y},o={x:d[3],y:d[4]}),"C"===t.command?(i=f(t.params[2],m),this.command="C",this.params=[m,i,a,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]}):(this.command="SQ",this.params=[m,a,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[m.x-a.x,m.y-a.y]});break;case"A":var A=v,b=y,w=d[3],x=d[4],C=d[5];s=c?h(d[6],d[7],m):{x:d[6],y:d[7]},this.command="A";var _=function(e,t,n,i,a,o,s){var c=r.mod(r.toRadian(s),2*Math.PI),l=e.x,u=e.y,h=t.x,f=t.y,d=Math.cos(c)*(l-h)/2+Math.sin(c)*(u-f)/2,m=-1*Math.sin(c)*(l-h)/2+Math.cos(c)*(u-f)/2,v=d*d/(a*a)+m*m/(o*o);v>1&&(a*=Math.sqrt(v),o*=Math.sqrt(v));var y=a*a*(m*m)+o*o*(d*d),A=Math.sqrt((a*a*(o*o)-y)/y);n===i&&(A*=-1),isNaN(A)&&(A=0);var b=A*a*m/o,w=A*-o*d/a,x=(l+h)/2+Math.cos(c)*b-Math.sin(c)*w,C=(u+f)/2+Math.sin(c)*b+Math.cos(c)*w,_=g([1,0],[(d-b)/a,(m-w)/o]),I=[(d-b)/a,(m-w)/o],E=[(-1*d-b)/a,(-1*m-w)/o],k=g(I,E);return p(I,E)<=-1&&(k=Math.PI),p(I,E)>=1&&(k=0),0===i&&k>0&&(k-=2*Math.PI),1===i&&k<0&&(k+=2*Math.PI),[e,x,C,a,o,_,k,c,i]}(m,s,x,C,A,b,w);this.params=_;var I=t.subStart;this.subStart=I,this.endPoint=s;var E=_[5]%(2*Math.PI);r.isNumberEqual(E,2*Math.PI)&&(E=0);var k=_[6]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var S=.001;this.startTangent=function(){0===C&&(S*=-1);var e=_[3]*Math.cos(E-S)+_[1],t=_[4]*Math.sin(E-S)+_[2];return[e-I.x,t-I.y]},this.endTangent=function(){var e=_[6];e-2*Math.PI<1e-4&&(e=0);var t=_[3]*Math.cos(E+e+S)+_[1],n=_[4]*Math.sin(E+e-S)+_[2];return[m.x-t,m.y-n]};break;case"Z":this.command="Z",this.params=[m,t.subStart],this.subStart=t.subStart,this.endPoint=t.subStart}},isInside:function(e,t,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,e,t))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,e,t);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,e,t);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,e,t);case"A":var u=o,h=u[1],f=u[2],d=u[3],p=u[4],g=u[5],m=u[6],v=u[7],y=u[8],A=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;u=[e,t,1];var x=[1,0,0,0,1,0,0,0,1];return l.translate(x,x,[-h,-f]),l.rotate(x,x,-v),l.scale(x,x,[1/b,1/w]),c.transformMat3(u,u,x),i.arcline(0,0,A,g,g+m,1-y,n,u[0],u[1])}return!1},draw:function(e){var t,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":e.moveTo(a[1].x,a[1].y);break;case"TL":case"L":e.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":t=a[1],n=a[2],e.quadraticCurveTo(t.x,t.y,n.x,n.y);break;case"C":t=a[1],n=a[2],r=a[3],e.bezierCurveTo(t.x,t.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],c=o[2],l=o[3],u=o[4],h=o[5],f=o[6],d=o[7],p=o[8],g=l>u?l:u,m=l>u?1:l/u,v=l>u?u/l:1;e.translate(s,c),e.rotate(d),e.scale(m,v),e.arc(0,0,g,h,h+f,1-p),e.scale(1/m,1/v),e.rotate(-d),e.translate(-s,-c);break;case"Z":e.closePath()}},shortenDraw:function(e,t,n){var r,i,a,o=this.command,s=this.params;switch(o){default:break;case"M":e.moveTo(s[1].x-t,s[1].y-n);break;case"TL":case"L":e.lineTo(s[1].x-t,s[1].y-n);break;case"SQ":case"Q":r=s[1],i=s[2],e.quadraticCurveTo(r.x,r.y,i.x-t,i.y-n);break;case"C":r=s[1],i=s[2],a=s[3],e.bezierCurveTo(r.x,r.y,i.x,i.y,a.x-t,a.y-n);break;case"A":var c=s,l=c[1],u=c[2],h=c[3],f=c[4],d=c[5],p=c[6],g=c[7],m=c[8],v=h>f?h:f,y=h>f?1:h/f,A=h>f?f/h:1;e.translate(l,u),e.rotate(g),e.scale(y,A),e.arc(0,0,v,d,d+p,1-m),e.scale(1/y,1/A),e.rotate(-g),e.translate(-l,-u);break;case"Z":e.closePath()}},getBBox:function(e){var t,n,r,i,c=e/2,l=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(l[0].x,l[1].x)-c,maxX:Math.max(l[0].x,l[1].x)+c,minY:Math.min(l[0].y,l[1].y)-c,maxY:Math.max(l[0].y,l[1].y)+c};break;case"SQ":case"Q":for(r=0,i=(n=o.extrema(l[0].x,l[1].x,l[2].x)).length;r<i;r++)n[r]=o.at(l[0].x,l[1].x,l[2].x,n[r]);for(n.push(l[0].x,l[2].x),r=0,i=(t=o.extrema(l[0].y,l[1].y,l[2].y)).length;r<i;r++)t[r]=o.at(l[0].y,l[1].y,l[2].y,t);t.push(l[0].y,l[2].y),this.box={minX:Math.min.apply(Math,n)-c,maxX:Math.max.apply(Math,n)+c,minY:Math.min.apply(Math,t)-c,maxY:Math.max.apply(Math,t)+c};break;case"C":for(r=0,i=(n=a.extrema(l[0].x,l[1].x,l[2].x,l[3].x)).length;r<i;r++)n[r]=a.at(l[0].x,l[1].x,l[2].x,l[3].x,n[r]);for(r=0,i=(t=a.extrema(l[0].y,l[1].y,l[2].y,l[3].y)).length;r<i;r++)t[r]=a.at(l[0].y,l[1].y,l[2].y,l[3].y,t[r]);n.push(l[0].x,l[3].x),t.push(l[0].y,l[3].y),this.box={minX:Math.min.apply(Math,n)-c,maxX:Math.max.apply(Math,n)+c,minY:Math.min.apply(Math,t)-c,maxY:Math.max.apply(Math,t)+c};break;case"A":
// todo 待优化
var u=l,h=u[1],f=u[2],d=u[3],p=u[4],g=u[5],m=u[6],v=u[7],y=u[8],A=g,b=g+m,w=s.xExtrema(v,d,p),x=1/0,C=-1/0,_=[A,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var I=w+r;1===y?A<I&&I<b&&_.push(I):b<I&&I<A&&_.push(I)}for(r=0,i=_.length;r<i;r++){var E=s.xAt(v,d,p,h,_[r]);E<x&&(x=E),E>C&&(C=E)}var k=s.yExtrema(v,d,p),S=1/0,B=-1/0,M=[A,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var T=k+r;1===y?A<T&&T<b&&M.push(T):b<T&&T<A&&M.push(T)}for(r=0,i=M.length;r<i;r++){var O=s.yAt(v,d,p,f,M[r]);O<S&&(S=O),O>B&&(B=O)}this.box={minX:x-c,maxX:C+c,minY:S-c,maxY:B+c}}}}),e.exports=m},
/* 47 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){return t-=e=+e,function(n){return e+t*n}}},
/* 48 */
/***/function(e,t,n){var r=n(15),i=Array.prototype.indexOf;e.exports=function(e,t){return!!r(e)&&i.call(e,t)>-1}},
/* 49 */
/***/function(e,t){e.exports=function(e){for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);return t}},
/* 50 */
/***/function(e,t,n){e.exports={mat3:n(42),vec2:n(75),vec3:n(76),transform:n(77)};
/***/},
/* 51 */
/***/function(e,t,n){e.exports={Canvas:n(345),Group:n(171),Shape:n(9),Arc:n(175),Circle:n(176),Dom:n(177),Ellipse:n(178),Fan:n(179),Image:n(180),Line:n(181),Marker:n(95),Path:n(182),Polygon:n(183),Polyline:n(184),Rect:n(185),Text:n(186),PathSegment:n(55),PathUtil:n(96),Event:n(170),
// version, etc.
version:"3.3.6"};
/***/},
/* 52 */
/***/function(e,t,n){var r=n(2).vec2;e.exports={at:function(e,t,n){return(t-e)*n+e},pointDistance:function(e,t,n,i,a,o){var s=[n-e,i-t];if(r.exactEquals(s,[0,0]))return NaN;var c=[-s[1],s[0]];r.normalize(c,c);var l=[a-e,o-t];return Math.abs(r.dot(l,c))},box:function(e,t,n,r,i){var a=i/2,o=Math.min(e,n),s=Math.max(e,n);return{minX:o-a,minY:Math.min(t,r)-a,maxX:s+a,maxY:Math.max(t,r)+a}},len:function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}}},
/* 53 */
/***/function(e,t,n){var r=n(2);function i(e,t,n,r){return{x:Math.cos(r)*n+e,y:Math.sin(r)*n+t}}function a(e,t,n,r){var i,a;return r?e<t?(i=t-e,a=2*Math.PI-n+e):e>n&&(i=2*Math.PI-e+t,a=e-n):(i=e-t,a=n-e),i>a?n:t}function o(e,t,n,i){var o=0;return n-t>=2*Math.PI&&(o=2*Math.PI),t=r.mod(t,2*Math.PI),n=r.mod(n,2*Math.PI)+o,e=r.mod(e,2*Math.PI),i?t>=n?e>n&&e<t?e:a(e,n,t,!0):e<t||e>n?e:a(e,t,n):t<=n?t<e&&e<n?e:a(e,t,n,!0):e>t||e<n?e:a(e,n,t)}function s(e,t,n,i,a,s,c,l,u){var h=[c,l],f=[e,t],d=r.vec2.subtract([],h,f),p=r.vec2.angleTo([1,0],d);p=o(p,i,a,s);var g=[n*Math.cos(p)+e,n*Math.sin(p)+t];return u&&(u.x=g[0],u.y=g[1]),r.vec2.distance(g,h)}e.exports={nearAngle:o,projectPoint:function(e,t,n,r,i,a,o,c){var l={};return s(e,t,n,r,i,a,o,c,l),l},pointDistance:s,box:function(e,t,n,a,s,c){var l=Math.PI/2,u=Math.PI,h=3*Math.PI/2,f=[],d=o(0,a,s,c);0===d&&f.push(i(e,t,n,0)),(d=o(l,a,s,c))===l&&f.push(i(e,t,n,l)),(d=o(u,a,s,c))===u&&f.push(i(e,t,n,u)),(d=o(h,a,s,c))===h&&f.push(i(e,t,n,h)),f.push(i(e,t,n,a)),f.push(i(e,t,n,s));var p=1/0,g=-1/0,m=1/0,v=-1/0;return r.each(f,(function(e){p>e.x&&(p=e.x),g<e.x&&(g=e.x),m>e.y&&(m=e.y),v<e.y&&(v=e.y)})),{minX:p,minY:m,maxX:g,maxY:v}}}},
/* 54 */
/***/function(e,t,n){var r=n(37),i=n(55),a=Math.PI,o=Math.sin,s=Math.cos,c=Math.atan2,l=a/3;function u(e,t,n,r,i,u,h){var f,d,p,g,m,v,y;if(!t.fill){
// 闭合的不绘制箭头
var A=t.arrowLength||10,b=t.arrowAngle?t.arrowAngle*a/180:l;// 转换为弧
// Calculate angle
y=c(r-u,n-i),
/* // Adjust angle correctly
    angle -= PI;*/
// Calculate offset to place arrow at edge of path
m=Math.abs(t.lineWidth*s(y))/2,v=Math.abs(t.lineWidth*o(y))/2,h&&(m=-m,v=-v),// Calculate coordinates for left half of arrow
f=i+A*s(y+b/2),d=u+A*o(y+b/2),// Calculate coordinates for right half of arrow
p=i+A*s(y-b/2),g=u+A*o(y-b/2),e.beginPath(),// Draw left half of arrow
e.moveTo(f-m,d-v),e.lineTo(i-m,u-v),// Draw right half of arrow
e.lineTo(p-m,g-v),// Visually connect arrow to path
e.moveTo(i-m,u-v),e.lineTo(i+m,u+v),// Move back to end of path
e.moveTo(i,u),e.stroke()}}function h(e,t,n,a,o,s,c){var l=c?t.startArrow:t.endArrow,u=l.d,h=0,f=o-n,d=s-a,p=Math.atan(f/d);0===d&&f<0?h=Math.PI:f>0&&d>0?h=Math.PI/2-p:f<0&&d<0?h=-Math.PI/2-p:f>=0&&d<0?h=-p-Math.PI/2:f<=0&&d>0&&(h=Math.PI/2-p);var g=function(e){var t,n=[],a=r.parsePath(e.path);if(!Array.isArray(a)||0===a.length||"M"!==a[0][0]&&"m"!==a[0][0])return!1;for(var o=a.length,s=0;s<a.length;s++){var c=a[s];t=new i(c,t,s===o-1),n.push(t)}return n}(l);if(g){u&&(c?(o+=Math.sin(Math.abs(p))*u,s=s+Math.cos(Math.abs(p))*u-.5*e.lineWidth):(o-=Math.sin(Math.abs(p))*u,s=s-Math.cos(Math.abs(p))*u+.5*e.lineWidth)),e.save(),e.beginPath(),e.translate(o,s),e.rotate(h);for(var m=0;m<g.length;m++)g[m].draw(e);e.setTransform(1,0,0,1,0,0),e.fillStyle=e.strokeStyle,e.fill(),e.restore()}}e.exports={addStartArrow:function(e,t,n,r,i,a){"object"==typeof t.startArrow?h(e,t,n,r,i,a,!0):t.startArrow&&u(e,t,n,r,i,a,!0)},addEndArrow:function(e,t,n,r,i,a){"object"==typeof t.endArrow?h(e,t,n,r,i,a,!1):t.endArrow&&u(e,t,n,r,i,a,!1)}}},
/* 55 */
/***/function(e,t,n){var r=n(2),i=n(93),a=n(94),o=n(173),s=n(174),c=r.vec3,l=r.mat3,u=["m","l","c","a","q","h","v","t","s","z"];function h(e,t,n){
// 获取绝对坐标
return{x:n.x+e,y:n.y+t}}function f(e,t){
// 点对称
return{x:t.x+(t.x-e.x),y:t.y+(t.y-e.y)}}function d(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function p(e,t){return(e[0]*t[0]+e[1]*t[1])/(d(e)*d(t))}function g(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(p(e,t))}var m=function(e,t,n){this.preSegment=t,this.isLast=n,this.init(e,t)};r.augment(m,{init:function(e,t){var n=e[0];t=t||{endPoint:{x:0,y:0}};var i,a,o,s,c=u.indexOf(n)>=0,l=c?n.toUpperCase():n,d=e,m=t.endPoint,v=d[1],y=d[2];// /[a-z]/.test(command);
switch(l){default:break;case"M":s=c?h(v,y,m):{x:v,y:y},this.command="M",this.params=[m,s],this.subStart=s,this.endPoint=s;break;case"L":s=c?h(v,y,m):{x:v,y:y},this.command="L",this.params=[m,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-m.x,s.y-m.y]},this.startTangent=function(){return[m.x-s.x,m.y-s.y]};break;case"H":s=c?h(v,0,m):{x:v,y:m.y},this.command="L",this.params=[m,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-m.x,s.y-m.y]},this.startTangent=function(){return[m.x-s.x,m.y-s.y]};break;case"V":s=c?h(0,v,m):{x:m.x,y:v},this.command="L",this.params=[m,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-m.x,s.y-m.y]},this.startTangent=function(){return[m.x-s.x,m.y-s.y]};break;case"Q":c?(i=h(v,y,m),a=h(d[3],d[4],m)):(i={x:v,y:y},a={x:d[3],y:d[4]}),this.command="Q",this.params=[m,i,a],this.subStart=t.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]};break;case"T":a=c?h(v,y,m):{x:v,y:y},"Q"===t.command?(i=f(t.params[1],m),this.command="Q",this.params=[m,i,a],this.subStart=t.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]}):(this.command="TL",this.params=[m,a],this.subStart=t.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-m.x,a.y-m.y]},this.startTangent=function(){return[m.x-a.x,m.y-a.y]});break;case"C":c?(i=h(v,y,m),a=h(d[3],d[4],m),o=h(d[5],d[6],m)):(i={x:v,y:y},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[m,i,a,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]};break;case"S":c?(a=h(v,y,m),o=h(d[3],d[4],m)):(a={x:v,y:y},o={x:d[3],y:d[4]}),"C"===t.command?(i=f(t.params[2],m),this.command="C",this.params=[m,i,a,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[m.x-i.x,m.y-i.y]}):(this.command="SQ",this.params=[m,a,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[m.x-a.x,m.y-a.y]});break;case"A":var A=v,b=y,w=d[3],x=d[4],C=d[5];s=c?h(d[6],d[7],m):{x:d[6],y:d[7]},this.command="A";var _=function(e,t,n,i,a,o,s){var c=r.mod(r.toRadian(s),2*Math.PI),l=e.x,u=e.y,h=t.x,f=t.y,d=Math.cos(c)*(l-h)/2+Math.sin(c)*(u-f)/2,m=-1*Math.sin(c)*(l-h)/2+Math.cos(c)*(u-f)/2,v=d*d/(a*a)+m*m/(o*o);v>1&&(a*=Math.sqrt(v),o*=Math.sqrt(v));var y=a*a*(m*m)+o*o*(d*d),A=Math.sqrt((a*a*(o*o)-y)/y);n===i&&(A*=-1),isNaN(A)&&(A=0);var b=A*a*m/o,w=A*-o*d/a,x=(l+h)/2+Math.cos(c)*b-Math.sin(c)*w,C=(u+f)/2+Math.sin(c)*b+Math.cos(c)*w,_=g([1,0],[(d-b)/a,(m-w)/o]),I=[(d-b)/a,(m-w)/o],E=[(-1*d-b)/a,(-1*m-w)/o],k=g(I,E);return p(I,E)<=-1&&(k=Math.PI),p(I,E)>=1&&(k=0),0===i&&k>0&&(k-=2*Math.PI),1===i&&k<0&&(k+=2*Math.PI),[e,x,C,a,o,_,k,c,i]}(m,s,x,C,A,b,w);this.params=_;var I=t.subStart;this.subStart=I,this.endPoint=s;var E=_[5]%(2*Math.PI);r.isNumberEqual(E,2*Math.PI)&&(E=0);var k=_[6]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var S=.001;this.startTangent=function(){0===C&&(S*=-1);var e=_[3]*Math.cos(E-S)+_[1],t=_[4]*Math.sin(E-S)+_[2];return[e-I.x,t-I.y]},this.endTangent=function(){var e=_[6];e-2*Math.PI<1e-4&&(e=0);var t=_[3]*Math.cos(E+e+S)+_[1],n=_[4]*Math.sin(E+e-S)+_[2];return[m.x-t,m.y-n]};break;case"Z":this.command="Z",this.params=[m,t.subStart],this.subStart=t.subStart,this.endPoint=t.subStart}},isInside:function(e,t,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,e,t))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,e,t);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,e,t);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,e,t);case"A":var u=o,h=u[1],f=u[2],d=u[3],p=u[4],g=u[5],m=u[6],v=u[7],y=u[8],A=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;u=[e,t,1];var x=[1,0,0,0,1,0,0,0,1];return l.translate(x,x,[-h,-f]),l.rotate(x,x,-v),l.scale(x,x,[1/b,1/w]),c.transformMat3(u,u,x),i.arcline(0,0,A,g,g+m,1-y,n,u[0],u[1])}return!1},draw:function(e){var t,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":e.moveTo(a[1].x,a[1].y);break;case"TL":case"L":e.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":t=a[1],n=a[2],e.quadraticCurveTo(t.x,t.y,n.x,n.y);break;case"C":t=a[1],n=a[2],r=a[3],e.bezierCurveTo(t.x,t.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],c=o[2],l=o[3],u=o[4],h=o[5],f=o[6],d=o[7],p=o[8],g=l>u?l:u,m=l>u?1:l/u,v=l>u?u/l:1;e.translate(s,c),e.rotate(d),e.scale(m,v),e.arc(0,0,g,h,h+f,1-p),e.scale(1/m,1/v),e.rotate(-d),e.translate(-s,-c);break;case"Z":e.closePath()}},getBBox:function(e){var t,n,r,i,c=e/2,l=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(l[0].x,l[1].x)-c,maxX:Math.max(l[0].x,l[1].x)+c,minY:Math.min(l[0].y,l[1].y)-c,maxY:Math.max(l[0].y,l[1].y)+c};break;case"SQ":case"Q":for(r=0,i=(n=o.extrema(l[0].x,l[1].x,l[2].x)).length;r<i;r++)n[r]=o.at(l[0].x,l[1].x,l[2].x,n[r]);for(n.push(l[0].x,l[2].x),r=0,i=(t=o.extrema(l[0].y,l[1].y,l[2].y)).length;r<i;r++)t[r]=o.at(l[0].y,l[1].y,l[2].y,t);t.push(l[0].y,l[2].y),this.box={minX:Math.min.apply(Math,n)-c,maxX:Math.max.apply(Math,n)+c,minY:Math.min.apply(Math,t)-c,maxY:Math.max.apply(Math,t)+c};break;case"C":for(r=0,i=(n=a.extrema(l[0].x,l[1].x,l[2].x,l[3].x)).length;r<i;r++)n[r]=a.at(l[0].x,l[1].x,l[2].x,l[3].x,n[r]);for(r=0,i=(t=a.extrema(l[0].y,l[1].y,l[2].y,l[3].y)).length;r<i;r++)t[r]=a.at(l[0].y,l[1].y,l[2].y,l[3].y,t[r]);n.push(l[0].x,l[3].x),t.push(l[0].y,l[3].y),this.box={minX:Math.min.apply(Math,n)-c,maxX:Math.max.apply(Math,n)+c,minY:Math.min.apply(Math,t)-c,maxY:Math.max.apply(Math,t)+c};break;case"A":
// todo 待优化
var u=l,h=u[1],f=u[2],d=u[3],p=u[4],g=u[5],m=u[6],v=u[7],y=u[8],A=g,b=g+m,w=s.xExtrema(v,d,p),x=1/0,C=-1/0,_=[A,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var I=w+r;1===y?A<I&&I<b&&_.push(I):b<I&&I<A&&_.push(I)}for(r=0,i=_.length;r<i;r++){var E=s.xAt(v,d,p,h,_[r]);E<x&&(x=E),E>C&&(C=E)}var k=s.yExtrema(v,d,p),S=1/0,B=-1/0,M=[A,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var T=k+r;1===y?A<T&&T<b&&M.push(T):b<T&&T<A&&M.push(T)}for(r=0,i=M.length;r<i;r++){var O=s.yAt(v,d,p,f,M[r]);O<S&&(S=O),O>B&&(B=O)}this.box={minX:x-c,maxX:C+c,minY:S-c,maxY:B+c}}}}),e.exports=m},
/* 56 */
/***/function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}
/**
 * @fileOverview the base class of Coordinate
 * @author sima.zhang
 */var a=n(50),o=n(10),s=a.mat3,c=a.vec3,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this.getDefaultCfg();o(this,n,t),this.init()}return i(e,[{key:"getDefaultCfg",
/**
     * 获取默认的配置属性
     * @protected
     * @return {Object} 默认属性
     */
value:function(){return{
/**
         * Mark x y is transposed.
         * @type {Boolean}
         */
isTransposed:!1,
/**
         * The matrix of coordinate
         * @type {Array}
         */
matrix:[1,0,0,0,1,0,0,0,1]}}}]),i(e,[{key:"init",value:function(){var e=this.start,t=this.end,n={x:(e.x+t.x)/2,y:(e.y+t.y)/2};this.center=n,this.width=Math.abs(t.x-e.x),this.height=Math.abs(t.y-e.y)}},{key:"_swapDim",value:function(e){var t=this[e];if(t){var n=t.start;t.start=t.end,t.end=n}}},{key:"getCenter",value:function(){return this.center}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"convertDim",value:function(e,t){var n=this[t],r=n.start;return r+e*(n.end-r)}},{key:"invertDim",value:function(e,t){var n=this[t],r=n.start;return(e-r)/(n.end-r)}
/**
     * 将归一化的坐标点数据转换为画布坐标
     * @override
     * @param  {Object} point 归一化的坐标点
     * @return {Object}       返回画布坐标
     */},{key:"convertPoint",value:function(e){return e}
/**
     * 将画布坐标转换为归一化的坐标点数据
     * @override
     * @param  {Object} point 画布坐标点数据
     * @return {Object}       归一化后的数据点
     */},{key:"invertPoint",value:function(e){return e}
/**
     * 将坐标点进行矩阵变换
     * @param  {Number} x   对应 x 轴画布坐标
     * @param  {Number} y   对应 y 轴画布坐标
     * @param  {Number} tag 默认为 0，可取值 0, 1
     * @return {Array}     返回变换后的三阶向量 [x, y, z]
     */},{key:"applyMatrix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=[e,t,n];return c.transformMat3(i,i,r),i}
/**
     * 将坐标点进行矩阵逆变换
     * @param  {Number} x   对应 x 轴画布坐标
     * @param  {Number} y   对应 y 轴画布坐标
     * @param  {Number} tag 默认为 0，可取值 0, 1
     * @return {Array}     返回矩阵逆变换后的三阶向量 [x, y, z]
     */},{key:"invertMatrix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=s.invert([],r),a=[e,t,n];return c.transformMat3(a,a,i),a}
/**
     * 将归一化的坐标点数据转换为画布坐标，并根据坐标系当前矩阵进行变换
     * @param  {Object} point 归一化的坐标点
     * @return {Object}       返回进行矩阵变换后的画布坐标
     */},{key:"convert",value:function(e){var t=this.convertPoint(e),n=t.x,r=t.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}}
/**
     * 将进行过矩阵变换画布坐标转换为归一化坐标
     * @param  {Object} point 画布坐标
     * @return {Object}       返回归一化的坐标点
     */},{key:"invert",value:function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})}
/**
     * 坐标系旋转变换
     * @param  {Number} radian 旋转弧度
     * @return {Object}        返回坐标系对象
     */},{key:"rotate",value:function(e){var t=this.matrix,n=this.center;return s.translate(t,t,[-n.x,-n.y]),s.rotate(t,t,e),s.translate(t,t,[n.x,n.y]),this}
/**
     * 坐标系反射变换
     * @param  {String} dim 反射维度
     * @return {Object}     返回坐标系对象
     */},{key:"reflect",value:function(e){return"x"===e?this._swapDim("x"):this._swapDim("y"),this}
/**
     * 坐标系比例变换
     * @param  {Number} s1 x 方向缩放比例
     * @param  {Number} s2 y 方向缩放比例
     * @return {Object}    返回坐标系对象
     */},{key:"scale",value:function(e,t){var n=this.matrix,r=this.center;return s.translate(n,n,[-r.x,-r.y]),s.scale(n,n,[e,t]),s.translate(n,n,[r.x,r.y]),this}
/**
     * 坐标系平移变换
     * @param  {Number} x x 方向平移像素
     * @param  {Number} y y 方向平移像素
     * @return {Object}   返回坐标系对象
     */},{key:"translate",value:function(e,t){var n=this.matrix;return s.translate(n,n,[e,t]),this}
/**
     * 将坐标系 x y 两个轴进行转置
     * @return {Object} 返回坐标系对象
     */},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),e}();e.exports=l},
/* 57 */
/***/function(e,t,n){
/**
 * @fileOverview shape 的辅助方法
 * @author dxq613@gmail.com
 */
var r=n(0),i={splitPoints:function(e){var t=[],n=e.x,i=e.y;return i=r.isArray(i)?i:[i],r.each(i,(function(e,i){var a={x:r.isArray(n)?n[i]:n,y:e};t.push(a)})),t},addFillAttrs:function(e,t){t.color&&(e.fill=t.color),r.isNumber(t.opacity)&&(e.opacity=e.fillOpacity=t.opacity)},addStrokeAttrs:function(e,t){t.color&&(e.stroke=t.color),r.isNumber(t.opacity)&&(e.opacity=e.strokeOpacity=t.opacity)}};e.exports=i},
/* 58 */
/***/function(e,t,n){"use strict";
/* unused harmony export CREATED */
/* harmony export (binding) */n.d(t,"c",(function(){return c})),
/* harmony export (binding) */n.d(t,"d",(function(){return l})),
/* unused harmony export STARTED */
/* unused harmony export RUNNING */
/* harmony export (binding) */n.d(t,"b",(function(){return h})),
/* harmony export (binding) */n.d(t,"a",(function(){return f})),
/* harmony export (immutable) */t.g=function(e,t){var n=d(e,t);if(n.state>s)throw new Error("too late; already scheduled");return n},
/* harmony export (immutable) */t.h=function(e,t){var n=d(e,t);if(n.state>u)throw new Error("too late; already running");return n},
/* harmony export (immutable) */t.f=d;
/* harmony import */var r=n(509),i=n(101),a=Object(r.a)("start","end","cancel","interrupt"),o=[],s=0,c=1,l=2,u=3,h=5,f=6;
/* harmony import */function d(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}
/* harmony default export */t.e=function(e,t,n,r,d,p){var g=e.__transition;if(g){if(n in g)return}else e.__transition={};!function(e,t,n){var r,a=e.__transition;// Initialize the self timer when the transition is created.
// Note the actual delay is not known until the first callback!
function o(e){n.state=c,n.timer.restart(s,n.delay,n.time),// If the elapsed delay is less than our first sleep, start immediately.
n.delay<=e&&s(e-n.delay)}function s(o){var h,g,m,v;// If the state is not SCHEDULED, then we previously errored on start.
if(n.state!==c)return p();for(h in a)if((v=a[h]).name===n.name){// While this element already has a starting transition during this frame,
// defer starting an interrupting transition until that transition has a
// chance to tick (and possibly end); see d3/d3-transition#54!
if(v.state===u)return Object(i.timeout)(s);// Interrupt the active transition, if any.
4===v.state?(v.state=f,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete a[h]):+h<t&&(v.state=f,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete a[h])}// Defer the first tick to end of the current frame; see d3/d3#1576.
// Note the transition may be canceled after start and before the first tick!
// Note this must be scheduled before the start event; see d3/d3-transition#16!
// Assuming this is successful, subsequent callbacks go straight to tick.
if(Object(i.timeout)((function(){n.state===u&&(n.state=4,n.timer.restart(d,n.delay,n.time),d(o))})),// Dispatch the start event.
// Note this must be done before the tween are initialized.
n.state=l,n.on.call("start",e,e.__data__,n.index,n.group),n.state===l){for(// interrupted
n.state=u,// Initialize the tween, deleting null tween.
r=new Array(m=n.tween.length),h=0,g=-1;h<m;++h)(v=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(r[++g]=v);r.length=g+1}}function d(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(p),n.state=h,1),a=-1,o=r.length;++a<o;)r[a].call(e,i);// Dispatch the end event.
n.state===h&&(n.on.call("end",e,e.__data__,n.index,n.group),p())}function p(){for(var r in n.state=f,n.timer.stop(),delete a[t],a)return;// eslint-disable-line no-unused-vars
delete e.__transition}a[t]=n,n.timer=Object(i.timer)(o,0,n.time)}
/***/(e,n,{name:t,index:r,
// For context during callback.
group:d,
// For context during callback.
on:a,tween:o,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:s})}},
/* 59 */
/***/function(e,t,n){e.exports={isFunction:n(13),isObject:n(22),isBoolean:n(60),isNil:n(6),isString:n(12),isArray:n(5),isNumber:n(11),isEmpty:n(61),
// isBlank
uniqueId:n(62),clone:n(39),deepMix:n(27),assign:n(10),
// simpleMix
merge:n(27),
// mix
upperFirst:n(64),
// ucfirst
each:n(3),isEqual:n(40),toArray:n(29),extend:n(65),augment:n(66),remove:n(67),isNumberEqual:n(30),toRadian:n(68),toDegree:n(69),mod:n(70),clamp:n(41),createDom:n(71),modifyCSS:n(72),requestAnimationFrame:n(73),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(42),vec2:n(75),vec3:n(76),transform:n(77)};
/***/},
/* 60 */
/***/function(e,t,n){
/**
 * 是否是布尔类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */
var r=n(14);e.exports=function(e){return r(e,"Boolean")}},
/* 61 */
/***/function(e,t,n){var r=n(6),i=n(15),a=n(113),o=n(114),s=Object.prototype.hasOwnProperty;e.exports=function(e){
/**
   * isEmpty(null) => true
   * isEmpty() => true
   * isEmpty(true) => true
   * isEmpty(1) => true
   * isEmpty([1, 2, 3]) => false
   * isEmpty('abc') => false
   * isEmpty({ a: 1 }) => false
   */
if(r(e))return!0;if(i(e))return!e.length;var t=a(e);if("Map"===t||"Set"===t)return!e.size;if(o(e))return!Object.keys(e).length;for(var n in e)if(s.call(e,n))return!1;return!0}},
/* 62 */
/***/function(e,t){var n,r=(n={},function(e){return n[e=e||"g"]?n[e]+=1:n[e]=1,e+n[e]});e.exports=r},
/* 63 */
/***/function(e,t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){
/**
   * isObjectLike({}) => true
   * isObjectLike([1, 2, 3]) => true
   * isObjectLike(Function) => false
   * isObjectLike(null) => false
   */
return"object"===(void 0===e?"undefined":n(e))&&null!==e}},
/* 64 */
/***/function(e,t,n){var r=n(26);e.exports=function(e){var t=r(e);return t.charAt(0).toUpperCase()+t.substring(1)}},
/* 65 */
/***/function(e,t,n){var r=n(13),i=n(10);e.exports=function(e,t,n,a){
// 如果只提供父类构造函数，则自动生成子类构造函数
r(t)||(n=t,t=e,e=function(){});var o=Object.create?function(e,t){return Object.create(e,{constructor:{value:t}})}:function(e,t){function n(){}n.prototype=e;var r=new n;return r.constructor=t,r},s=o(t.prototype,e);// new superclass(),//实例化父类作为子类的prototype
return e.prototype=i(s,e.prototype),// 指定子类的prototype
e.superclass=o(t.prototype,t),i(s,n),i(e,a),e}},
/* 66 */
/***/function(e,t,n){var r=n(13),i=n(29),a=n(10);e.exports=function(e){for(var t=i(arguments),n=1;n<t.length;n++){var o=t[n];r(o)&&(o=o.prototype),a(e.prototype,o)}}},
/* 67 */
/***/function(e,t){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice;e.exports=function(e){for(var t=a.call(arguments,1),n=0;n<t.length;n++)for(var o=t[n],s=-1;(s=i.call(e,o))>-1;)r.call(e,s,1);return e}},
/* 68 */
/***/function(e,t){var n=Math.PI/180;e.exports=function(e){return n*e}},
/* 69 */
/***/function(e,t){var n=180/Math.PI;e.exports=function(e){return n*e}},
/* 70 */
/***/function(e,t){e.exports=function(e,t){return(e%t+t)%t}},
/* 71 */
/***/function(e,t){
/**
 * 创建DOM 节点
 * @param  {String} str Dom 字符串
 * @return {HTMLElement}  DOM 节点
 */
var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};e.exports=function(e){var t=i.test(e)&&RegExp.$1;t in a||(t="*");var n=a[t];e=e.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+e;var r=n.childNodes[0];return n.removeChild(r),r}},
/* 72 */
/***/function(e,t){e.exports=function(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e};
/***/},
/* 73 */
/***/function(e,t){e.exports=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return setTimeout(e,16)};return t(e)};
/***/},
/* 74 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMatrixArrayType=
/**
 * Sets the type of array used when creating new vectors and matrices
 *
 * @param {Type} type Array type, such as Float32Array or Array
 */
function(e){t.ARRAY_TYPE=e},t.toRadian=
/**
 * Convert Degree To Radian
 *
 * @param {Number} a Angle in Degrees
 */
function(e){return e*i}
/**
 * Tests whether or not the arguments have approximately the same value, within an absolute
 * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less
 * than or equal to 1.0, and a relative tolerance is used for larger values)
 *
 * @param {Number} a The first number to test.
 * @param {Number} b The second number to test.
 * @returns {Boolean} True if the numbers are approximately equal, false otherwise.
 */,t.equals=function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))}
/***/;
/**
 * Common utilities
 * @module glMatrix
 */
// Configuration Constants
var r=t.EPSILON=1e-6;t.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,t.RANDOM=Math.random;var i=Math.PI/180},
/* 75 */
/***/function(e,t,n){var r=n(219),i=n(41);r.angle=function(e,t){var n=r.dot(e,t)/(r.length(e)*r.length(t));return Math.acos(i(n,-1,1))},
/**
 * 向量 v1 到 向量 v2 夹角的方向
 * @param  {Array} v1 向量
 * @param  {Array} v2 向量
 * @return {Boolean} >= 0 顺时针 < 0 逆时针
 */
r.direction=function(e,t){return e[0]*t[1]-t[0]*e[1]},r.angleTo=function(e,t,n){var i=r.angle(e,t),a=r.direction(e,t)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e},e.exports=r},
/* 76 */
/***/function(e,t,n){var r=n(220);e.exports=r},
/* 77 */
/***/function(e,t,n){var r=n(39),i=n(3),a=n(42);e.exports=function(e,t){return e=r(e),i(t,(function(t){switch(t[0]){case"t":a.translate(e,e,[t[1],t[2]]);break;case"s":a.scale(e,e,[t[1],t[2]]);break;case"r":a.rotate(e,e,t[1]);break;case"m":a.multiply(e,e,t[1]);break;default:return!1}})),e}},
/* 78 */
/***/function(e,t,n){var r=n(1),i=function(e,t,n,r){this.type=e,// 事件类型
this.target=null,// 目标
this.currentTarget=null,// 当前目标
this.bubbles=n,// 冒泡
this.cancelable=r,// 是否能够阻止
this.timeStamp=(new Date).getTime(),// 时间戳
this.defaultPrevented=!1,// 阻止默认
this.propagationStopped=!1,// 阻止冒泡
this.removed=!1,// 是否被移除
this.event=t};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),e.exports=i},
/* 79 */
/***/function(e,t,n){var r=n(43),i=n(118),a=n(80),o=n(44);e.exports={line:function(e,t,n,i,a,o,s){var c=r.box(e,t,n,i,a);if(!this.box(c.minX,c.maxX,c.minY,c.maxY,o,s))return!1;var l=r.pointDistance(e,t,n,i,o,s);return!isNaN(l)&&l<=a/2},polyline:function(e,t,n,r){var i=e.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=e[a][0],s=e[a][1],c=e[a+1][0],l=e[a+1][1];if(this.line(o,s,c,l,t,n,r))return!0}return!1},cubicline:function(e,t,n,r,i,o,s,c,l,u,h){return a.pointDistance(e,t,n,r,i,o,s,c,u,h)<=l/2},quadraticline:function(e,t,n,r,a,o,s,c,l){return i.pointDistance(e,t,n,r,a,o,c,l)<=s/2},arcline:function(e,t,n,r,i,a,s,c,l){return o.pointDistance(e,t,n,r,i,a,c,l)<=s/2},rect:function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},circle:function(e,t,n,r,i){return Math.pow(r-e,2)+Math.pow(i-t,2)<=Math.pow(n,2)},box:function(e,t,n,r,i,a){return e<=i&&i<=t&&n<=a&&a<=r}}},
/* 80 */
/***/function(e,t,n){var r=n(1),i=r.vec2;function a(e,t,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*e+3*a*t)}function o(e,t,n,r,o,s,c,l,u,h,f){var d,p,g,m,v,y,A,b,w=.005,x=1/0,C=[u,h];for(p=0;p<1;p+=.05)g=[a(e,n,o,c,p),a(t,r,s,l,p)],(m=i.squaredDistance(C,g))<x&&(d=p,x=m);x=1/0;for(var _=0;_<32&&!(w<1e-4);_++)b=d+w,g=[a(e,n,o,c,A=d-w),a(t,r,s,l,A)],m=i.squaredDistance(C,g),A>=0&&m<x?(d=A,x=m):(y=[a(e,n,o,c,b),a(t,r,s,l,b)],v=i.squaredDistance(C,y),b<=1&&v<x?(d=b,x=v):w*=.5);return f&&(f.x=a(e,n,o,c,d),f.y=a(t,r,s,l,d)),Math.sqrt(x)}function s(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}e.exports={at:a,derivativeAt:function(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)},projectPoint:function(e,t,n,r,i,a,s,c,l,u){var h={};return o(e,t,n,r,i,a,s,c,l,u,h),h},pointDistance:o,extrema:function(e,t,n,i){var a,o,s,c=3*e-9*t+9*n-3*i,l=6*t-12*n+6*i,u=3*n-3*i,h=[];if(r.isNumberEqual(c,0))r.isNumberEqual(l,0)||(a=-u/l)>=0&&a<=1&&h.push(a);else{var f=l*l-4*c*u;r.isNumberEqual(f,0)?h.push(-l/(2*c)):f>0&&(o=(-l-(s=Math.sqrt(f)))/(2*c),(a=(-l+s)/(2*c))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h},len:function(e,t,n,i,a,o,c,l,u){r.isNil(u)&&(u=1);for(var h=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var m=h*f[g]+h,v=s(m,e,n,a,c),y=s(m,t,i,o,l),A=v*v+y*y;p+=d[g]*Math.sqrt(A)}return h*p}}},
/* 81 */
/***/function(e,t,n){var r=n(1),i=n(7),a=n(31),o=n(46),s=function e(t){e.superclass.constructor.call(this,t)};s.Symbols={
// 圆
circle:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},
// 正方形
square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},
// 菱形
diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},
// 三角形
triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["z"]]},
// 倒三角形
"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.radius||e.r,i=this.getHitLineWidth()/2+r;return{minX:t-i,minY:n-i,maxX:t+i,maxY:n+i}},_getPath:function(){var e,t=this._attrs,n=t.x,i=t.y,a=t.radius||t.r,o=t.symbol||"circle";return(e=r.isFunction(o)?o:s.Symbols[o])?e(n,i,a):null},createPath:function(e){var t=this._cfg.segments;if(!t||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());e.beginPath(),t=[];for(var i=0;i<r.length;i++){var s=r[i];n=new o(s,n,i===r.length-1),t.push(n),n.draw(e)}this._cfg.segments=t,this._cfg.hasUpdate=!1}else{e.beginPath();for(var c=0;c<t.length;c++)t[c].draw(e)}}}),e.exports=s},
/* 82 */
/***/function(e,t,n){var r=n(59),i="\t\n\v\f\r   ᠎             　\u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(e){if(!e)return null;if("object"==typeof e)return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(a,(function(e,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(e,t){t&&a.push(+t)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=t[s]&&(n.push([r].concat(a.splice(0,t[s]))),t[s]););})),n},c=function(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4===r?a[3]={x:+e[0],y:+e[1]}:i-2===r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(e,t,n,r,i){var a=[];if(null===i&&null===r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!==i){var o=Math.PI/180,s=e+n*Math.cos(-r*o),c=e+n*Math.cos(-i*o);a=[["M",s,t+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,c,t+n*Math.sin(-i*o)]]}else a=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},u=function(e){if(!(e=s(e))||!e.length)return[["M",0,0]];var t,n,r=[],i=0,a=0,o=0,u=0,h=0;"M"===e[0][0]&&(o=i=+e[0][1],u=a=+e[0][2],h++,r[0]=["M",i,a]);for(var f,d,p=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),g=h,m=e.length;g<m;g++){if(r.push(f=[]),(t=(d=e[g])[0])!==t.toUpperCase())switch(f[0]=t.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+i,f[7]=+d[7]+a;break;case"V":f[1]=+d[1]+a;break;case"H":f[1]=+d[1]+i;break;case"R":for(var v=2,y=(n=[i,a].concat(d.slice(1))).length;v<y;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(c(n,p));break;case"O":r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),f=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,u=+d[2]+a;break;
// for lint
default:for(var A=1,b=d.length;A<b;A++)f[A]=+d[A]+(A%2?i:a)}else if("R"===t)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(c(n,p)),f=["R"].concat(d.slice(-2));else if("O"===t)r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===t)r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),f=["U"].concat(r[r.length-1].slice(-2));else for(var w=0,x=d.length;w<x;w++)f[w]=d[w];if("O"!==(t=t.toUpperCase()))switch(f[0]){case"Z":i=+o,a=+u;break;case"H":i=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],u=f[f.length-1];break;
// for lint
default:i=f[f.length-2],a=f[f.length-1]}}return r},h=function(e,t,n,r){return[e,t,n,r,n,r]},f=function(e,t,n,r,i,a){var o=1/3,s=2/3;return[o*e+s*n,o*t+s*r,o*i+s*n,o*a+s*r,i,a]},d=function e(t,n,r,i,a,o,s,c,l,u){
// for more information of where this math came from visit:
// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
r===i&&(r+=1);var h,f,d,p,g,m=120*Math.PI/180,v=Math.PI/180*(+a||0),y=[],A=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}};if(u)f=u[0],d=u[1],p=u[2],g=u[3];else{t=(h=A(t,n,-v)).x,n=h.y,c=(h=A(c,l,-v)).x,l=h.y,t===c&&n===l&&(
// 若弧的起始点和终点重叠则错开一点
c+=1,l+=1);// const cos = Math.cos(Math.PI / 180 * angle);
// const sin = Math.sin(Math.PI / 180 * angle);
var b=(t-c)/2,w=(n-l)/2,x=b*b/(r*r)+w*w/(i*i);x>1&&(r*=x=Math.sqrt(x),i*=x);var C=r*r,_=i*i,I=(o===s?-1:1)*Math.sqrt(Math.abs((C*_-C*w*w-_*b*b)/(C*w*w+_*b*b)));p=I*r*w/i+(t+c)/2,g=I*-i*b/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),f=t<p?Math.PI-f:f,d=c<p?Math.PI-d:d,f<0&&(f=2*Math.PI+f),d<0&&(d=2*Math.PI+d),s&&f>d&&(f-=2*Math.PI),!s&&d>f&&(d-=2*Math.PI)}var E=d-f;if(Math.abs(E)>m){var k=d,S=c,B=l;d=f+m*(s&&d>f?1:-1),y=e(c=p+r*Math.cos(d),l=g+i*Math.sin(d),r,i,a,0,s,S,B,[d,k,p,g])}E=d-f;var M=Math.cos(f),T=Math.sin(f),O=Math.cos(d),D=Math.sin(d),P=Math.tan(E/4),L=4/3*r*P,Q=4/3*i*P,R=[t,n],j=[t+L*T,n-Q*M],N=[c+L*D,l-Q*O],F=[c,l];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],u)return[j,N,F].concat(y);for(var z=[],H=0,U=(y=[j,N,F].concat(y).join().split(",")).length;H<U;H++)z[H]=H%2?A(y[H-1],y[H],v).y:A(y[H],y[H+1],v).x;return z},p=function(e,t){var n,r=u(e),i=t&&u(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],c=[],l="",p="",g=function(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(d.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"===n||"S"===n?(
// In "S" case we have to take into account, if the previous command is C/S.
r=2*t.x-t.bx,// And reflect the previous
i=2*t.y-t.by):(
// or some else or nothing
r=t.x,i=t.y),e=["C",r,i].concat(e.slice(1));break;case"T":"Q"===n||"T"===n?(
// In "T" case we have to take into account, if the previous command is Q/T.
t.qx=2*t.x-t.qx,// And make a reflection similar
t.qy=2*t.y-t.qy):(
// or something else or nothing
t.qx=t.x,t.qy=t.y),e=["C"].concat(f(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(f(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(h(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(h(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(h(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(h(t.x,t.y,t.X,t.Y))}return e},m=function(e,t){if(e[t].length>7){e[t].shift();for(var a=e[t];a.length;)s[t]="A",// if created multiple C:s, their original seg is saved
i&&(c[t]="A"),// the same as above
e.splice(t++,0,["C"].concat(a.splice(0,6)));e.splice(t,1),n=Math.max(r.length,i&&i.length||0)}},v=function(e,t,a,o,s){e&&t&&"M"===e[s][0]&&"M"!==t[s][0]&&(t.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=e[s][1],a.y=e[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(l=r[y][0]),// save current path command
"C"!==l&&(
// C is not saved yet, because it may be result of conversion
s[y]=l,// Save current path command
y&&(p=s[y-1])),r[y]=g(r[y],a,p),// Previous path command is inputted to processPath
"A"!==s[y]&&"C"===l&&(s[y]="C"),// A is the only command
// which may produce multiple C:s
// so we have to make sure that C is also C in original path
m(r,y),// fixArc adds also the right amount of A:s to pcoms1
i&&(
// the same procedures is done to p2
i[y]&&(l=i[y][0]),"C"!==l&&(c[y]=l,y&&(p=c[y-1])),i[y]=g(i[y],o,p),"A"!==c[y]&&"C"===l&&(c[y]="C"),m(i,y)),v(r,i,a,o,y),v(i,r,o,a,y);var A=r[y],b=i&&i[y],w=A.length,x=i&&b.length;a.x=A[w-2],a.y=A[w-1],a.bx=parseFloat(A[w-4])||a.x,a.by=parseFloat(A[w-3])||a.y,o.bx=i&&(parseFloat(b[x-4])||o.x),o.by=i&&(parseFloat(b[x-3])||o.y),o.x=i&&b[x-2],o.y=i&&b[x-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,m=function(e){return e.join(",").replace(g,"$1")},v=function(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n},y=function(e,t,n,r,i,a,o,s,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=l*u[d]+l,g=v(p,e,n,i,o),m=v(p,t,r,a,s),y=g*g+m*m;f+=h[d]*Math.sqrt(y)}return l*f},A=function(e,t,n,r,i,a,o,s){for(var c,l,u,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*e-12*n+6*i,c=-3*e+9*n-9*i+3*o,u=3*n-3*e):(l=6*t-12*r+6*a,c=-3*t+9*r-9*a+3*s,u=3*r-3*t),Math.abs(c)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-u/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*u*c,m=Math.sqrt(g);if(!(g<0)){var v=(-l+m)/(2*c);v>0&&v<1&&f.push(v);var y=(-l-m)/(2*c);y>0&&y<1&&f.push(y)}}for(var A,b=f.length,w=b;b--;)A=1-(h=f[b]),d[0][b]=A*A*A*e+3*A*A*h*n+3*A*h*h*i+h*h*h*o,d[1][b]=A*A*A*t+3*A*A*h*r+3*A*h*h*a+h*h*h*s;return d[0][w]=e,d[1][w]=t,d[0][w+1]=o,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},b=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)<Math.min(i,o)||Math.min(e,n)>Math.max(i,o)||Math.max(t,r)<Math.min(a,s)||Math.min(t,r)>Math.max(a,s))){var c=(e-n)*(a-s)-(t-r)*(i-o);if(c){var l=((e*r-t*n)*(i-o)-(e-n)*(i*s-a*o))/c,u=((e*r-t*n)*(a-s)-(t-r)*(i*s-a*o))/c,h=+l.toFixed(2),f=+u.toFixed(2);if(!(h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:u}}}},w=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},x=function(e,t,n,r,i){if(i)return[["M",+e+ +i,t],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=m,a},C=function(e,t,n,r){return null===e&&(e=t=n=r=0),null===t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:x(e,t,n,r),vb:[e,t,n,r].join(" ")}},_=function(e,t,n,i,a,o,s,c){r.isArray(e)||(e=[e,t,n,i,a,o,s,c]);var l=A.apply(null,e);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},I=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,d=f*c,p=e+2*c*(n-e)+f*(i-2*n+e),g=t+2*c*(r-t)+f*(a-2*r+t),m=n+2*c*(i-n)+f*(o-2*i+n),v=r+2*c*(a-r)+f*(s-2*a+r);// (mx > nx || my < ny) && (alpha += 180);
return{x:u*e+3*h*c*n+3*l*c*c*i+d*o,y:u*t+3*h*c*r+3*l*c*c*a+d*s,m:{x:p,y:g},n:{x:m,y:v},start:{x:l*e+c*n,y:l*t+c*r},end:{x:l*i+c*o,y:l*a+c*s},alpha:90-180*Math.atan2(p-m,g-v)/Math.PI}},E=function(e,t,n){if(!function(e,t){return e=C(e),t=C(t),w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(_(e),_(t)))return n?0:[];for(var r=~~(y.apply(0,e)/8),i=~~(y.apply(0,t)/8),a=[],o=[],s={},c=n?0:[],l=0;l<r+1;l++){var u=I.apply(0,e.concat(l/r));a.push({x:u.x,y:u.y,t:l/r})}for(var h=0;h<i+1;h++){var f=I.apply(0,t.concat(h/i));o.push({x:f.x,y:f.y,t:h/i})}for(var d=0;d<r;d++)for(var p=0;p<i;p++){var g=a[d],m=a[d+1],v=o[p],A=o[p+1],x=Math.abs(m.x-g.x)<.001?"y":"x",E=Math.abs(A.x-v.x)<.001?"y":"x",k=b(g.x,g.y,m.x,m.y,v.x,v.y,A.x,A.y);if(k){if(s[k.x.toFixed(4)]===k.y.toFixed(4))continue;s[k.x.toFixed(4)]=k.y.toFixed(4);var S=g.t+Math.abs((k[x]-g[x])/(m[x]-g[x]))*(m.t-g.t),B=v.t+Math.abs((k[E]-v[E])/(A[E]-v[E]))*(A.t-v.t);S>=0&&S<=1&&B>=0&&B<=1&&(n?c++:c.push({x:k.x,y:k.y,t1:S,t2:B}))}}return c};function k(e,t){var n=[],r=[];return e.length&&function e(t,i){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-i)*t[o][0]+i*t[o+1][0],(1-i)*t[o][1]+i*t[o+1][1]];e(a,i)}}(e,t),{left:n,right:r.reverse()}}var S=function(e,t,n){if(1===n)return[[].concat(e)];var r=[];if("L"===t[0]||"C"===t[0]||"Q"===t[0])r=r.concat(function(e,t,n){var r=[[e[1],e[2]]];n=n||2;var i=[];"A"===t[0]?(r.push(t[6]),r.push(t[7])):"C"===t[0]?(r.push([t[1],t[2]]),r.push([t[3],t[4]]),r.push([t[5],t[6]])):"S"===t[0]||"Q"===t[0]?(r.push([t[1],t[2]]),r.push([t[3],t[4]])):r.push([t[1],t[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var c=k(a,o/(1-o*s));i.push(c.left),a=c.right}return i.push(a),i.map((function(e){var t=[];return 4===e.length&&(t.push("C"),t=t.concat(e[2])),e.length>=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t.concat(e[e.length-1])}))}(e,t,n));else{var i=[].concat(e);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},B=function(e,t){if(e.length!==t.length)return!1;var n=!0;return r.each(e,(function(e,r){if(e!==t[r])return n=!1,!1})),n};function M(e,t,n){var r=null,i=n;return t<i&&(i=t,r="add"),e<i&&(i=e,r="del"),{type:r,min:i}}
/*
 * https://en.wikipedia.org/wiki/Levenshtein_distance
 * 计算两条path的编辑距离
 */ // 将两个点均分成count个点
function T(e,t,n){for(var r,i=[].concat(e),a=1/(n+1),o=O(t)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(e.length*a))?i.unshift([o[0]*a+e[r][0]*(1-a),o[1]*a+e[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+e[r][0]*(1-a),o[1]*a+e[r][1]*(1-a)]);return i}
/*
 * 抽取pathSegment中的关键点
 * M,L,A,Q,H,V一个端点
 * Q, S抽取一个端点，一个控制点
 * C抽取一个端点，两个控制点
 */function O(e){var t=[];switch(e[0]){case"M":case"L":case"T":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"H":case"V":t.push([e[1],e[1]])}return t}e.exports={parsePathString:s,parsePathArray:m,pathTocurve:p,pathToAbsolute:u,catmullRomToBezier:c,rectPath:x,fillPath:function(e,t){if(1===e.length)return e;var n=e.length-1,r=t.length-1,i=n/r,a=[];if(1===e.length&&"M"===e[0][0]){for(var o=0;o<r-n;o++)e.push(e[0]);return e}for(var s=0;s<r;s++){var c=Math.floor(i*s);a[c]=(a[c]||0)+1}var l=a.reduce((function(t,r,i){return i===n?t.concat(e[n]):t.concat(S(e[i],e[i+1],r))}),[]);return l.unshift(e[0]),"Z"!==t[r]&&"z"!==t[r]||l.push("Z"),l},fillPathByDiff:function(e,t){var n=function(e,t){var n,r,i=e.length,a=t.length,o=0;if(0===i||0===a)return null;for(var s=[],c=0;c<=i;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=a;l++)s[0][l]={min:l};for(var u=1;u<=i;u++){n=e[u-1];for(var h=1;h<=a;h++){r=t[h-1],o=B(n,r)?0:1;var f=s[u-1][h].min+1,d=s[u][h-1].min+1,p=s[u-1][h-1].min+o;s[u][h]=M(f,d,p)}}return s}(e,t),r=e.length,i=t.length,a=[],o=1,s=1;// 如果source和target不是完全不相等
if(n[r][i]!==r){
// 获取从source到target所需改动
for(var c=1;c<=r;c++){var l=n[c][c].min;s=c;for(var u=o;u<=i;u++)n[c][u].min<l&&(l=n[c][u].min,s=u);o=s,n[c][o].type&&a.push({index:c-1,type:n[c][o].type})}// 对source进行增删path
for(var h=a.length-1;h>=0;h--)o=a[h].index,"add"===a[h].type?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}// source尾部补齐
var f=i-(r=e.length);if(r<i)for(var d=0;d<f;d++)"z"===e[r-1][0]||"Z"===e[r-1][0]?e.splice(r-2,0,e[r-2]):e.push(e[r-1]),r+=1;return e},formatPath:function(e,t){if(e.length<=1)return e;for(var n,r=0;r<t.length;r++)if(e[r][0]!==t[r][0])switch(
// 获取fromPath的pathSegment的端点，根据toPath的指令对其改造
n=O(e[r]),t[r][0]){case"M":e[r]=["M"].concat(n[0]);break;case"L":e[r]=["L"].concat(n[0]);break;case"A":e[r]=[].concat(t[r]),e[r][6]=n[0][0],e[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){e[r]=t[r];break}n=T(n,e[r-1],1)}e[r]=["Q"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"T":e[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){e[r]=t[r];break}n=T(n,e[r-1],2)}e[r]=["C"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"S":if(n.length<2){if(!(r>0)){e[r]=t[r];break}n=T(n,e[r-1],1)}e[r]=["S"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;default:e[r]=t[r]}return e},intersection:function(e,t){return function(e,t,n){var r,i,a,o,s,c,l,u,h,f;e=p(e),t=p(t);for(var d=n?0:[],g=0,m=e.length;g<m;g++){var v=e[g];if("M"===v[0])r=s=v[1],i=c=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,c,s,c],r=s,i=c);for(var y=0,A=t.length;y<A;y++){var b=t[y];if("M"===b[0])a=l=b[1],o=u=b[2];else{"C"===b[0]?(f=[a,o].concat(b.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,u,l,u],a=l,o=u);var w=E(h,f,n);if(n)d+=w;else{for(var x=0,C=w.length;x<C;x++)w[x].segment1=g,w[x].segment2=y,w[x].bez1=h,w[x].bez2=f;d=d.concat(w)}}}}}return d}(e,t)}}},
/* 83 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.b=d,
/* harmony export (immutable) */t.a=g,
/* harmony export (immutable) */t.c=m,
/* harmony export (immutable) */t.d=v;var
// how frequently we check for clock skew
r,i,a=0,
// is an animation frame pending?
o=0,
// is a timeout pending?
s=0,c=0,l=0,u=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function d(){return l||(f(p),l=h.now()+u)}function p(){l=0}function g(){this._call=this._time=this._next=null}function m(e,t,n){var r=new g;return r.restart(e,t,n),r}function v(){d(),// Get the current time, if not already set.
++a;for(// Pretend we’ve set an alarm, if we haven’t already.
var e,t=r;t;)(e=l-t._time)>=0&&t._call.call(null,e),t=t._next;--a}function y(){l=(c=h.now())+u,a=o=0;try{v()}finally{a=0,function(){for(var e,t,n=r,a=1/0;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);i=e,b(a)}(),l=0}}function A(){var e=h.now(),t=e-c;t>1e3&&(u-=t,c=e)}function b(e){a||(// Soonest alarm already set, or will be.
o&&(o=clearTimeout(o)),// Strictly less than if we recomputed clockNow.
e-l>24?(e<1/0&&(o=setTimeout(y,e-h.now()-u)),s&&(s=clearInterval(s))):(s||(c=h.now(),s=setInterval(A,1e3)),a=1,f(y)))}
/***/g.prototype=m.prototype={constructor:g,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==t?0:+t),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},
/* 84 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(19),i=n(135),a=n(138),o=n(139),s=n(47),c=n(140),l=n(141),u=n(137);
/* harmony import */
/* harmony default export */t.a=function(e,t){var n,h=typeof t;return null==t||"boolean"===h?Object(u.a)(t):("number"===h?s.a:"string"===h?(n=Object(r.a)(t))?(t=n,i.a):l.a:t instanceof r.a?i.a:t instanceof Date?o.a:Array.isArray(t)?a.a:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?c.a:s.a)(e,t)}},
/* 85 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=i,
/* harmony export (binding) */n.d(t,"d",(function(){return a})),
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (immutable) */t.e=b,
/* harmony export (immutable) */t.h=C,
/* harmony export (immutable) */t.g=_,
/* harmony export (immutable) */t.b=I,
/* unused harmony export hslConvert */
/* harmony export (immutable) */t.f=T;
/* harmony import */var r=n(86);function i(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,l,l]+"\\)$"),m=new RegExp("^hsla\\("+[c,l,l,c]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function A(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new I(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?x(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?x(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=h.exec(e))?new I(t[1],t[2],t[3],1):(t=f.exec(e))?new I(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=d.exec(e))?x(t[1],t[2],t[3],t[4]):(t=p.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g.exec(e))?B(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?B(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?w(v[e]):"transparent"===e?new I(NaN,NaN,NaN,0):null}function w(e){return new I(e>>16&255,e>>8&255,255&e,1)}function x(e,t,n,r){return r<=0&&(e=t=n=NaN),new I(e,t,n,r)}function C(e){return e instanceof i||(e=b(e)),e?new I((e=e.rgb()).r,e.g,e.b,e.opacity):new I}function _(e,t,n,r){return 1===arguments.length?C(e):new I(e,t,n,null==r?1:r)}function I(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function E(){return"#"+S(this.r)+S(this.g)+S(this.b)}function k(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function S(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function B(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new O(e,t,n,r)}function M(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new O;if(e instanceof O)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,c=o-a,l=(o+a)/2;return c?(s=t===o?(n-r)/c+6*(n<r):n===o?(r-t)/c+2:(t-n)/c+4,c/=l<.5?o+a:2-o-a,s*=60):c=l>0&&l<1?0:s,new O(s,c,l,e.opacity)}function T(e,t,n,r){return 1===arguments.length?M(e):new O(e,t,n,null==r?1:r)}function O(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}
/* From FvD 13.37, CSS Color Module Level 3 */
function D(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}
/***/Object(r.a)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,
// Deprecated! Use color.formatHex.
formatHex:y,formatHsl:function(){return M(this).formatHsl()},formatRgb:A,toString:A}),Object(r.a)(I,_,Object(r.b)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new I(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new I(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,
// Deprecated! Use color.formatHex.
formatHex:E,formatRgb:k,toString:k})),Object(r.a)(O,T,Object(r.b)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new O(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new I(D(e>=240?e-240:e+120,i,r),D(e,i,r),D(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},
/* 86 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.b=function(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}
/***/,
/* harmony default export */t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},
/* 87 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */function r(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}
/* harmony default export */t.a=r,t.b=function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[i],o=e[i+1],s=i>0?e[i-1]:2*a-o,c=i<t-1?e[i+2]:2*o-a;return r((n-i/t)*t,s,a,o,c)}}},
/* 88 */
/***/function(e,t,n){var r=n(3),i=n(15);e.exports=function(e,t){if(!i(e))return e;var n=[];return r(e,(function(e,r){t(e,r)&&n.push(e)})),n}},
/* 89 */
/***/function(e,t,n){var r=n(6),i=n(5),a=n(3);e.exports=function(e,t){for(var n=[],o={},s=0;s<e.length;s++){var c=e[s][t];r(c)||(i(c)||(c=[c]),a(c,(function(e){o[e]||(n.push(e),o[e]=!0)})))}return n}},
/* 90 */
/***/function(e,t,n){var r;
/*!
 * EventEmitter v5.1.0 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */!function(t){"use strict";
/**
   * Class for managing events.
   * Can be extended to provide event functionality in other classes.
   *
   * @class EventEmitter Manages event registering and emitting.
   */function i(){}// Shortcuts to improve speed and size
var a=i.prototype,o=t.EventEmitter;
/**
   * Finds the index of the listener for the event in its storage array.
   *
   * @param {Function[]} listeners Array of listeners to search through.
   * @param {Function} listener Method to look for.
   * @return {Number} Index of the specified listener, -1 if not found
   * @api private
   */
function s(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}
/**
   * Alias a method while keeping the context correct, to allow for overwriting of target method.
   *
   * @param {String} name The name of the target method.
   * @return {Function} The aliased method
   * @api private
   */function c(e){return function(){return this[e].apply(this,arguments)}}
/**
   * Returns the listener array for the specified event.
   * Will initialise the event object and listener arrays if required.
   * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.
   * Each property in the object response is an array of listener functions.
   *
   * @param {String|RegExp} evt Name of the event to return the listeners from.
   * @return {Function[]|Object} All listener functions for the event.
   */function l(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&l(e.listener)}
/**
   * Adds a listener function to the specified event.
   * The listener will not be added if it is a duplicate.
   * If the listener returns true then it will be removed after it is called.
   * If you pass a regular expression as the event name then the listener will be added to all events that match it.
   *
   * @param {String|RegExp} evt Name of the event to attach the listener to.
   * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
   * @return {Object} Current instance of EventEmitter for chaining.
   */a.getListeners=function(e){var t,n,r=this._getEvents();// Return a concatenated array of all matching events if
// the selector is a regular expression.
if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},
/**
   * Takes a list of listener objects and flattens it into a list of listener functions.
   *
   * @param {Object[]} listeners Raw listener objects.
   * @return {Function[]} Just the listener functions.
   */
a.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},
/**
   * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.
   *
   * @param {String|RegExp} evt Name of the event to return the listeners from.
   * @return {Object} All listener functions for an event in an object.
   */
a.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},a.addListener=function(e,t){if(!l(t))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(e),i="object"==typeof t;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},
/**
   * Alias of addListener
   */
a.on=c("addListener"),
/**
   * Semi-alias of addListener. It will add a listener that will be
   * automatically removed after its first execution.
   *
   * @param {String|RegExp} evt Name of the event to attach the listener to.
   * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},
/**
   * Alias of addOnceListener.
   */
a.once=c("addOnceListener"),
/**
   * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.
   * You need to tell it what event names should be matched by a regex.
   *
   * @param {String} evt Name of the event to create.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.defineEvent=function(e){return this.getListeners(e),this},
/**
   * Uses defineEvent to define multiple events.
   *
   * @param {String[]} evts An array of event names to define.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},
/**
   * Removes a listener function from the specified event.
   * When passed a regular expression as the event name, it will remove the listener from all events that match it.
   *
   * @param {String|RegExp} evt Name of the event to remove the listener from.
   * @param {Function} listener Method to remove from the event.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&-1!==(n=s(i[r],t))&&i[r].splice(n,1);return this},
/**
   * Alias of removeListener
   */
a.off=c("removeListener"),
/**
   * Adds listeners in bulk using the manipulateListeners method.
   * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.
   * You can also pass it a regular expression to add the array of listeners to all events that match it.
   * Yeah, this function does quite a bit. That's probably a bad thing.
   *
   * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.
   * @param {Function[]} [listeners] An optional array of listener functions to add.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.addListeners=function(e,t){
// Pass through to manipulateListeners
return this.manipulateListeners(!1,e,t)},
/**
   * Removes listeners in bulk using the manipulateListeners method.
   * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
   * You can also pass it an event name and an array of listeners to be removed.
   * You can also pass it a regular expression to remove the listeners from all events that match it.
   *
   * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.
   * @param {Function[]} [listeners] An optional array of listener functions to remove.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.removeListeners=function(e,t){
// Pass through to manipulateListeners
return this.manipulateListeners(!0,e,t)},
/**
   * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.
   * The first argument will determine if the listeners are removed (true) or added (false).
   * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
   * You can also pass it an event name and an array of listeners to be added/removed.
   * You can also pass it a regular expression to manipulate the listeners of all events that match it.
   *
   * @param {Boolean} remove True if you want to remove listeners, false if you want to add.
   * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.
   * @param {Function[]} [listeners] An optional array of listener functions to add/remove.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.manipulateListeners=function(e,t,n){var r,i,a=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;// If evt is an object then pass each of its properties to this method
if("object"!=typeof t||t instanceof RegExp)for(
// So evt must be a string
// And listeners must be an array of listeners
// Loop over it and pass each one to the multiple method
r=n.length;r--;)a.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&(
// Pass the single listener straight through to the singular method
"function"==typeof i?a.call(this,r,i):
// Otherwise pass back to the multiple function
o.call(this,r,i));return this},
/**
   * Removes all listeners from a specified event.
   * If you do not specify an event then all listeners will be removed.
   * That means every event will be emptied.
   * You can also pass a regex to remove all events that match it.
   *
   * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();// Remove different things depending on the state of evt
if("string"===n)
// Remove all listeners for the specified event
delete r[e];else if(e instanceof RegExp)
// Remove all events matching the regex.
for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else
// Remove all listeners in all events
delete this._events;return this},
/**
   * Alias of removeEvent.
   *
   * Added to mirror the node API.
   */
a.removeAllListeners=c("removeEvent"),
/**
   * Emits an event of your choice.
   * When emitted, every listener attached to that event will be executed.
   * If you pass the optional argument array then those arguments will be passed to every listener upon execution.
   * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.
   * So they will not arrive within the array on the other side, they will be separate.
   * You can also pass a regular expression to emit to all events that match it.
   *
   * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
   * @param {Array} [args] Optional array of arguments to be passed to each listener.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.emitEvent=function(e,t){var n,r,i,a,o=this.getListenersAsObject(e);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;i<n.length;i++)
// If the listener returns true then it shall be removed from the event
// The function is executed either with a basic call or an apply if there is an args array
!0===(r=n[i]).once&&this.removeListener(e,r.listener),r.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},
/**
   * Alias of emitEvent
   */
a.trigger=c("emitEvent"),
/**
   * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.
   * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.
   *
   * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
   * @param {...*} Optional additional arguments to be passed to each listener.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},
/**
   * Sets the current value to check against when executing listeners. If a
   * listeners return value matches the one set here then it will be removed
   * after execution. This value defaults to true.
   *
   * @param {*} value The new value to check for when executing listeners.
   * @return {Object} Current instance of EventEmitter for chaining.
   */
a.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},
/**
   * Fetches the current value to check against when executing listeners. If
   * the listeners return value matches this one then it should be removed
   * automatically. It will return true by default.
   *
   * @return {*|Boolean} The current value to check for or the default, true.
   * @api private
   */
a._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},
/**
   * Fetches the events object and creates one if required.
   *
   * @return {Object} The events storage object.
   * @api private
   */
a._getEvents=function(){return this._events||(this._events={})},
/**
   * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.
   *
   * @return {Function} Non conflicting EventEmitter class.
   */
i.noConflict=function(){return t.EventEmitter=o,i},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}(this||{})},
/* 91 */
/***/function(e,t,n){var r=n(18).Group,i=n(24).Label,a=n(8),o=n(0),s=["line","point","path"],c="_origin",l=function e(t){e.superclass.constructor.call(this,t)};o.extend(l,r),o.augment(l,{getDefaultCfg:function(){return{label:a.label,
/**
       * 用户传入的文本配置信息
       * @type {Object}
       */
labelCfg:null,
/**
       * 所在的坐标系
       * @type {Object}
       */
coord:null,
/**
       * 图表的类型
       * @type {String}
       */
geomType:null,zIndex:6}},_renderUI:function(){l.superclass._renderUI.call(this),this.initLabelsCfg();var e=this.addGroup(),t=this.addGroup({elCls:"x-line-group"}),n=this.get("labelRenderer");this.set("labelsGroup",e),this.set("lineGroup",t),this.get("labelRenderer").set("group",e),n.set("group",e),n.set("lineGroup",t)},
// 初始化labels的配置项
initLabelsCfg:function(){var e=this,t=new i,n=e.getDefaultLabelCfg(),r=e.get("labelCfg");// Util.merge(labels, labelCfg.cfg);
o.deepMix(n,r.globalCfg||r.cfg),t.set("config",!1),n.labelLine&&t.set("labelLine",n.labelLine),t.set("coord",e.get("coord")),this.set("labelRenderer",t),e.set("label",n)},
/**
   * @protected
   * 默认的文本样式
   * @return {Object} default label config
   */
getDefaultLabelCfg:function(){var e=this,t=e.get("labelCfg").cfg||e.get("labelCfg").globalCfg,n=e.get("geomType"),r=e.get("viewTheme")||a;return"polygon"===n||t&&t.offset<0&&-1===o.indexOf(s,n)?o.deepMix({},e.get("label"),r.innerLabels,t):o.deepMix({},e.get("label"),r.label,t)},
/**
   * @protected
   * 获取labels
   * @param {Array} points points
   * @param {Array} shapes shapes
   * @return {Array} label items
   */
getLabelsItems:function(e,t){var n=this,r=[],i=n.get("geom"),a=n.get("coord");n._getLabelCfgs(e,t);var s=n.get("labelItemCfgs");// 获取label相关的x，y的值，获取具体的x,y,防止存在数组
return o.each(e,(function(e,t){var l=e[c],u=s[t];if(u){o.isArray(u.text)||(u.text=[u.text]);var h=u.text.length;o.each(u.text,(function(t,s){if(o.isNil(t)||""===t)r.push(null);else{var c=n.getLabelPoint(u,e,s);(c=o.mix({},u,c)).textAlign||(c.textAlign=n.getLabelAlign(c,s,h)),i&&(c._id=i._getShapeId(l)+"-glabel-"+s+"-"+c.text),c.coord=a,r.push(c)}}))}else r.push(null)})),r},
/* /!*
   * @protected
   * 如果发生冲突则会调整文本的位置
   * @param {Array} items 文本的集合
   * @param {Array} shapes 关联形状
   * @return {Array} adjusted items
   *!/
  adjustItems(items, shapes) {
    // 多边形shape的label位于其可视中心
    if (this.get('geomType') === 'polygon') {
      let index,
        shape,
        path,
        center,
        points;
      Util.each(items, (item, i) => {
        if (!item) return;
        shape = shapes[ i ];
        path = shape.attr('path');
        points = [[]];
        index = 0;
        path.forEach((segment, i) => {
          if (segment[ 0 ] === 'z' || segment[ 0 ] === 'Z' && i !== path.length - 1) {
            points.push([]);
            index += 1;
          }
          if (segment.length === 3) {
            points[ index ].push([ segment[ 1 ], segment[ 2 ] ]);
          }
        });
        center = visualCenter(points);
        item.x = center.x;
        item.y = center.y;
      });
    }
    return items;
  }
  */
adjustItems:function(e){return o.each(e,(function(e){e&&(e.offsetX&&(e.x+=e.offsetX),e.offsetY&&(e.y+=e.offsetY))})),e},
/**
   * drawing lines to labels
   * @param  {Array} items labels
   * @param  {Object} labelLine configuration for label lines
   */
drawLines:function(e){var t=this;o.each(e,(function(e){e&&e.offset>0&&t.lineToLabel(e)}))},
// 定义连接线
lineToLabel:function(){},
/**
   * @protected
   * 获取文本的位置信息
   * @param {Array} labelCfg labels
   * @param {Object} point point
   * @param {Number} index index
   * @return {Object} point
   */
getLabelPoint:function(e,t,n){var r=this,i=r.get("coord"),a=e.text.length;function s(t,n){var r,i;// 计算多边形重心: https://en.wikipedia.org/wiki/Centroid#Of_a_polygon
return o.isArray(t)&&(1===e.text.length?
// 如果仅一个label,多个y,取最后一个y
t.length<=2?t=t[t.length-1]:(r=t,i=0,o.each(r,(function(e){i+=e})),t=i/r.length):t=t[n]),t}var c={text:e.text[n]};// 多边形场景,多用于地图
if(t&&"polygon"===this.get("geomType")){var l=function(e,t){if(o.isNumber(e)&&o.isNumber(t))return[e,t];for(var n,r,i=-1,a=0,s=0,c=e.length-1,l=0;++i<e.length;)n=c,c=i,l+=r=e[n]*t[c]-e[c]*t[n],a+=(e[n]+e[c])*r,s+=(t[n]+t[c])*r;return[a/(l*=3),s/l]}(t.x,t.y);// 多边形的场景也有 x 和 y 只是数字的情况，譬如当 x 和 y 都是分类字段的时候 @see #1184
c.x=l[0],c.y=l[1]}else c.x=s(t.x,n),c.y=s(t.y,n);// get nearest point of the shape as the label line start point
if(t&&t.nextPoints&&("funnel"===t.shape||"pyramid"===t.shape)){var u=-1/0;t.nextPoints.forEach((function(e){(e=i.convert(e)).x>u&&(u=e.x)})),c.x=(c.x+u)/2}// sharp edge of the pyramid
"pyramid"===t.shape&&!t.nextPoints&&t.points&&t.points.forEach((function(e){e=i.convert(e),(o.isArray(e.x)&&!t.x.includes(e.x)||o.isNumber(e.x)&&t.x!==e.x)&&(c.x=(c.x+e.x)/2)})),e.position&&r.setLabelPosition(c,t,n,e.position);var h=r.getLabelOffset(e,n,a);return e.offsetX&&(h.x+=e.offsetX),e.offsetY&&(h.y+=e.offsetY),r.transLabelPoint(c),c.start={x:c.x,y:c.y},c.x+=h.x,c.y+=h.y,c.color=t.color,c},setLabelPosition:function(){},transLabelPoint:function(e){var t=this.get("coord").applyMatrix(e.x,e.y,1);e.x=t[0],e.y=t[1]},getOffsetVector:function(e){var t=e.offset||0,n=this.get("coord");return n.isTransposed?n.applyMatrix(t,0):n.applyMatrix(0,t)},
// 获取默认的偏移量
getDefaultOffset:function(e){var t=0,n=this.get("coord"),r=this.getOffsetVector(e);
// 如果x,y翻转，则偏移x
t=n.isTransposed?r[0]:r[1];var i=this.get("yScale");return i&&e.point&&e.point[i.field]<0&&(t*=-1),t},
// 获取文本的偏移位置，x,y
getLabelOffset:function(e,t,n){var r=this.getDefaultOffset(e),i=this.get("coord").isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};
// 判断是否小于0
return s[a]=t>0||1===n?r*o:r*o*-1,s},getLabelAlign:function(e,t,n){var r="center";if(this.get("coord").isTransposed){var i=this.getDefaultOffset(e);// var vector = coord.applyMatrix(offset,0);
r=i<0?"right":0===i?"center":"left",n>1&&0===t&&("right"===r?r="left":"left"===r&&(r="right"))}return r},_getLabelValue:function(e,t){o.isArray(t)||(t=[t]);var n=[];return o.each(t,(function(t){var r=e[t.field];if(o.isArray(r)){var i=[];o.each(r,(function(e){i.push(t.getText(e))})),r=i}else r=t.getText(r);(o.isNil(r)||""===r)&&n.push(null),n.push(r)})),n},
// 获取每个label的配置
_getLabelCfgs:function(e){var t=this,n=this.get("labelCfg"),r=n.scales,i=this.get("label"),s=t.get("viewTheme")||a,l=[];n.globalCfg&&n.globalCfg.type&&t.set("type",n.globalCfg.type),o.each(e,(function(e,a){var u={},h=e[c],f=t._getLabelValue(h,r);if(n.callback){
// callback中应使用原始数据，而不是数据字符串
var d=r.map((function(e){return h[e.field]}));// 将point信息以及index信息也返回，方便能够根据point以及index，返回不同的配置
u=n.callback.apply(null,[].concat(d,[e,a]))}if(u||0===u){if(o.isString(u)||o.isNumber(u)?u={text:u}:(u.text=u.content||f[0],delete u.content),u=o.mix({},i,n.globalCfg||{},u),// 兼容旧的源数据写在item.point中
e.point=h,u.point=h,u.htmlTemplate&&(u.useHtml=!0,u.text=u.htmlTemplate.call(null,u.text,e,a),delete u.htmlTemplate),u.formatter&&(u.text=u.formatter.call(null,u.text,e,a),delete u.formatter),u.label){
// 兼容有些直接写在labelCfg.label的配置
var p=u.label;delete u.label,u=o.mix(u,p)}if(u.textStyle){
// 兼容旧写法，globalCfg的offset优先级高
delete u.textStyle.offset;var g=u.textStyle;o.isFunction(g)&&(u.textStyle=g.call(null,u.text,e,a))}u.labelLine&&(u.labelLine=o.mix({},i.labelLine,u.labelLine)),// 因为 defaultCfg.textStyle 有可能是函数，所以这里可能没有把主题的 label 样式合进来
u.textStyle=o.mix({},i.textStyle,s.label.textStyle,u.textStyle),delete u.items,l.push(u)}else l.push(null)})),this.set("labelItemCfgs",l)},showLabels:function(e,t){var n=this,r=n.get("labelRenderer"),i=n.getLabelsItems(e,t);t=[].concat(t);var a=n.get("type");i=n.adjustItems(i,t),n.drawLines(i),r.set("items",i.filter((function(e,n){return!!e||(t.splice(n,1),!1)}))),a&&(r.set("shapes",t),r.set("type",a),r.set("points",e)),r.set("canvas",this.get("canvas")),r.draw()},destroy:function(){this.get("labelRenderer").destroy(),// 清理文本
l.superclass.destroy.call(this)}}),// Util.assign(GeomLabels.prototype, Labels.LabelslabelRenderer);
e.exports=l},
/* 92 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview Chart、View、Geometry 的基类
 * @author dxq613@gmail.com
 */var i=n(90),a=n(4),o=function(e){var t,n;n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;function o(t){var n,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call(this)||this),i={visible:!0},o=r.getDefaultCfg();return r._attrs=i,a.deepMix(i,o,t),n}return i.getDefaultCfg=function(){return{}},i.get=function(e){return this._attrs[e]},i.set=function(e,t){this._attrs[e]=t}
/**
   * @protected
   * @param {Boolean} visible 是否可见
   * 显示、隐藏
   */,i.changeVisible=function(){},i.destroy=function(){var e=this;e._attrs={},e.removeAllListeners(),e.destroyed=!0},o}(i);e.exports=o},
/* 93 */
/***/function(e,t,n){var r=n(52),i=n(173),a=n(94),o=n(53);e.exports={line:function(e,t,n,i,a,o,s){var c=r.box(e,t,n,i,a);if(!this.box(c.minX,c.maxX,c.minY,c.maxY,o,s))return!1;var l=r.pointDistance(e,t,n,i,o,s);return!isNaN(l)&&l<=a/2},polyline:function(e,t,n,r){var i=e.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=e[a][0],s=e[a][1],c=e[a+1][0],l=e[a+1][1];if(this.line(o,s,c,l,t,n,r))return!0}return!1},cubicline:function(e,t,n,r,i,o,s,c,l,u,h){return a.pointDistance(e,t,n,r,i,o,s,c,u,h)<=l/2},quadraticline:function(e,t,n,r,a,o,s,c,l){return i.pointDistance(e,t,n,r,a,o,c,l)<=s/2},arcline:function(e,t,n,r,i,a,s,c,l){return o.pointDistance(e,t,n,r,i,a,c,l)<=s/2},rect:function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},circle:function(e,t,n,r,i){return Math.pow(r-e,2)+Math.pow(i-t,2)<=Math.pow(n,2)},box:function(e,t,n,r,i,a){return e<=i&&i<=t&&n<=a&&a<=r}}},
/* 94 */
/***/function(e,t,n){var r=n(2),i=r.vec2;function a(e,t,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*e+3*a*t)}function o(e,t,n,r,o,s,c,l,u,h,f){var d,p,g,m,v,y,A,b,w=.005,x=1/0,C=[u,h];for(p=0;p<1;p+=.05)g=[a(e,n,o,c,p),a(t,r,s,l,p)],(m=i.squaredDistance(C,g))<x&&(d=p,x=m);x=1/0;for(var _=0;_<32&&!(w<1e-4);_++)b=d+w,g=[a(e,n,o,c,A=d-w),a(t,r,s,l,A)],m=i.squaredDistance(C,g),A>=0&&m<x?(d=A,x=m):(y=[a(e,n,o,c,b),a(t,r,s,l,b)],v=i.squaredDistance(C,y),b<=1&&v<x?(d=b,x=v):w*=.5);return f&&(f.x=a(e,n,o,c,d),f.y=a(t,r,s,l,d)),Math.sqrt(x)}function s(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}e.exports={at:a,derivativeAt:function(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)},projectPoint:function(e,t,n,r,i,a,s,c,l,u){var h={};return o(e,t,n,r,i,a,s,c,l,u,h),h},pointDistance:o,extrema:function(e,t,n,i){var a,o,s,c=3*e-9*t+9*n-3*i,l=6*t-12*n+6*i,u=3*n-3*i,h=[];if(r.isNumberEqual(c,0))r.isNumberEqual(l,0)||(a=-u/l)>=0&&a<=1&&h.push(a);else{var f=l*l-4*c*u;r.isNumberEqual(f,0)?h.push(-l/(2*c)):f>0&&(o=(-l-(s=Math.sqrt(f)))/(2*c),(a=(-l+s)/(2*c))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h},len:function(e,t,n,i,a,o,c,l,u){r.isNil(u)&&(u=1);for(var h=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var m=h*f[g]+h,v=s(m,e,n,a,c),y=s(m,t,i,o,l),A=v*v+y*y;p+=d[g]*Math.sqrt(A)}return h*p}}},
/* 95 */
/***/function(e,t,n){var r=n(2),i=n(9),a=n(37),o=n(55),s=function e(t){e.superclass.constructor.call(this,t)};s.Symbols={
// 圆
circle:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},
// 正方形
square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},
// 菱形
diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},
// 三角形
triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["z"]]},
// 倒三角形
"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.radius,i=this.getHitLineWidth()/2+r;return{minX:t-i,minY:n-i,maxX:t+i,maxY:n+i}},_getPath:function(){var e,t=this._attrs,n=t.x,i=t.y,a=t.radius||t.r,o=t.symbol||"circle";return(e=r.isFunction(o)?o:s.Symbols[o])?e(n,i,a):null},createPath:function(e){var t=this._cfg.segments;if(!t||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());e.beginPath(),t=[];for(var i=0;i<r.length;i++){var s=r[i];n=new o(s,n,i===r.length-1),t.push(n),n.draw(e)}this._cfg.segments=t,this._cfg.hasUpdate=!1}else{e.beginPath();for(var c=0;c<t.length;c++)t[c].draw(e)}}}),e.exports=s},
/* 96 */
/***/function(e,t,n){var r=n(169),i="\t\n\v\f\r   ᠎             　\u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(e){if(!e)return null;if("object"==typeof e)return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(a,(function(e,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(e,t){t&&a.push(+t)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=t[s]&&(n.push([r].concat(a.splice(0,t[s]))),t[s]););})),n},c=function(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4===r?a[3]={x:+e[0],y:+e[1]}:i-2===r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(e,t,n,r,i){var a=[];if(null===i&&null===r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!==i){var o=Math.PI/180,s=e+n*Math.cos(-r*o),c=e+n*Math.cos(-i*o);a=[["M",s,t+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,c,t+n*Math.sin(-i*o)]]}else a=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},u=function(e){if(!(e=s(e))||!e.length)return[["M",0,0]];var t,n,r=[],i=0,a=0,o=0,u=0,h=0;"M"===e[0][0]&&(o=i=+e[0][1],u=a=+e[0][2],h++,r[0]=["M",i,a]);for(var f,d,p=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),g=h,m=e.length;g<m;g++){if(r.push(f=[]),(t=(d=e[g])[0])!==t.toUpperCase())switch(f[0]=t.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+i,f[7]=+d[7]+a;break;case"V":f[1]=+d[1]+a;break;case"H":f[1]=+d[1]+i;break;case"R":for(var v=2,y=(n=[i,a].concat(d.slice(1))).length;v<y;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(c(n,p));break;case"O":r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),f=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,u=+d[2]+a;break;
// for lint
default:for(var A=1,b=d.length;A<b;A++)f[A]=+d[A]+(A%2?i:a)}else if("R"===t)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(c(n,p)),f=["R"].concat(d.slice(-2));else if("O"===t)r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===t)r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),f=["U"].concat(r[r.length-1].slice(-2));else for(var w=0,x=d.length;w<x;w++)f[w]=d[w];if("O"!==(t=t.toUpperCase()))switch(f[0]){case"Z":i=+o,a=+u;break;case"H":i=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],u=f[f.length-1];break;
// for lint
default:i=f[f.length-2],a=f[f.length-1]}}return r},h=function(e,t,n,r){return[e,t,n,r,n,r]},f=function(e,t,n,r,i,a){var o=1/3,s=2/3;return[o*e+s*n,o*t+s*r,o*i+s*n,o*a+s*r,i,a]},d=function e(t,n,r,i,a,o,s,c,l,u){
// for more information of where this math came from visit:
// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
r===i&&(r+=1);var h,f,d,p,g,m=120*Math.PI/180,v=Math.PI/180*(+a||0),y=[],A=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}};if(u)f=u[0],d=u[1],p=u[2],g=u[3];else{t=(h=A(t,n,-v)).x,n=h.y,c=(h=A(c,l,-v)).x,l=h.y,t===c&&n===l&&(
// 若弧的起始点和终点重叠则错开一点
c+=1,l+=1);// const cos = Math.cos(Math.PI / 180 * angle);
// const sin = Math.sin(Math.PI / 180 * angle);
var b=(t-c)/2,w=(n-l)/2,x=b*b/(r*r)+w*w/(i*i);x>1&&(r*=x=Math.sqrt(x),i*=x);var C=r*r,_=i*i,I=(o===s?-1:1)*Math.sqrt(Math.abs((C*_-C*w*w-_*b*b)/(C*w*w+_*b*b)));p=I*r*w/i+(t+c)/2,g=I*-i*b/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),f=t<p?Math.PI-f:f,d=c<p?Math.PI-d:d,f<0&&(f=2*Math.PI+f),d<0&&(d=2*Math.PI+d),s&&f>d&&(f-=2*Math.PI),!s&&d>f&&(d-=2*Math.PI)}var E=d-f;if(Math.abs(E)>m){var k=d,S=c,B=l;d=f+m*(s&&d>f?1:-1),y=e(c=p+r*Math.cos(d),l=g+i*Math.sin(d),r,i,a,0,s,S,B,[d,k,p,g])}E=d-f;var M=Math.cos(f),T=Math.sin(f),O=Math.cos(d),D=Math.sin(d),P=Math.tan(E/4),L=4/3*r*P,Q=4/3*i*P,R=[t,n],j=[t+L*T,n-Q*M],N=[c+L*D,l-Q*O],F=[c,l];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],u)return[j,N,F].concat(y);for(var z=[],H=0,U=(y=[j,N,F].concat(y).join().split(",")).length;H<U;H++)z[H]=H%2?A(y[H-1],y[H],v).y:A(y[H],y[H+1],v).x;return z},p=function(e,t){var n,r=u(e),i=t&&u(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],c=[],l="",p="",g=function(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(d.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"===n||"S"===n?(
// In "S" case we have to take into account, if the previous command is C/S.
r=2*t.x-t.bx,// And reflect the previous
i=2*t.y-t.by):(
// or some else or nothing
r=t.x,i=t.y),e=["C",r,i].concat(e.slice(1));break;case"T":"Q"===n||"T"===n?(
// In "T" case we have to take into account, if the previous command is Q/T.
t.qx=2*t.x-t.qx,// And make a reflection similar
t.qy=2*t.y-t.qy):(
// or something else or nothing
t.qx=t.x,t.qy=t.y),e=["C"].concat(f(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(f(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(h(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(h(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(h(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(h(t.x,t.y,t.X,t.Y))}return e},m=function(e,t){if(e[t].length>7){e[t].shift();for(var a=e[t];a.length;)s[t]="A",// if created multiple C:s, their original seg is saved
i&&(c[t]="A"),// the same as above
e.splice(t++,0,["C"].concat(a.splice(0,6)));e.splice(t,1),n=Math.max(r.length,i&&i.length||0)}},v=function(e,t,a,o,s){e&&t&&"M"===e[s][0]&&"M"!==t[s][0]&&(t.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=e[s][1],a.y=e[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(l=r[y][0]),// save current path command
"C"!==l&&(
// C is not saved yet, because it may be result of conversion
s[y]=l,// Save current path command
y&&(p=s[y-1])),r[y]=g(r[y],a,p),// Previous path command is inputted to processPath
"A"!==s[y]&&"C"===l&&(s[y]="C"),// A is the only command
// which may produce multiple C:s
// so we have to make sure that C is also C in original path
m(r,y),// fixArc adds also the right amount of A:s to pcoms1
i&&(
// the same procedures is done to p2
i[y]&&(l=i[y][0]),"C"!==l&&(c[y]=l,y&&(p=c[y-1])),i[y]=g(i[y],o,p),"A"!==c[y]&&"C"===l&&(c[y]="C"),m(i,y)),v(r,i,a,o,y),v(i,r,o,a,y);var A=r[y],b=i&&i[y],w=A.length,x=i&&b.length;a.x=A[w-2],a.y=A[w-1],a.bx=parseFloat(A[w-4])||a.x,a.by=parseFloat(A[w-3])||a.y,o.bx=i&&(parseFloat(b[x-4])||o.x),o.by=i&&(parseFloat(b[x-3])||o.y),o.x=i&&b[x-2],o.y=i&&b[x-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,m=function(e){return e.join(",").replace(g,"$1")},v=function(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n},y=function(e,t,n,r,i,a,o,s,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=l*u[d]+l,g=v(p,e,n,i,o),m=v(p,t,r,a,s),y=g*g+m*m;f+=h[d]*Math.sqrt(y)}return l*f},A=function(e,t,n,r,i,a,o,s){for(var c,l,u,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*e-12*n+6*i,c=-3*e+9*n-9*i+3*o,u=3*n-3*e):(l=6*t-12*r+6*a,c=-3*t+9*r-9*a+3*s,u=3*r-3*t),Math.abs(c)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-u/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*u*c,m=Math.sqrt(g);if(!(g<0)){var v=(-l+m)/(2*c);v>0&&v<1&&f.push(v);var y=(-l-m)/(2*c);y>0&&y<1&&f.push(y)}}for(var A,b=f.length,w=b;b--;)A=1-(h=f[b]),d[0][b]=A*A*A*e+3*A*A*h*n+3*A*h*h*i+h*h*h*o,d[1][b]=A*A*A*t+3*A*A*h*r+3*A*h*h*a+h*h*h*s;return d[0][w]=e,d[1][w]=t,d[0][w+1]=o,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},b=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)<Math.min(i,o)||Math.min(e,n)>Math.max(i,o)||Math.max(t,r)<Math.min(a,s)||Math.min(t,r)>Math.max(a,s))){var c=(e-n)*(a-s)-(t-r)*(i-o);if(c){var l=((e*r-t*n)*(i-o)-(e-n)*(i*s-a*o))/c,u=((e*r-t*n)*(a-s)-(t-r)*(i*s-a*o))/c,h=+l.toFixed(2),f=+u.toFixed(2);if(!(h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:u}}}},w=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},x=function(e,t,n,r,i){if(i)return[["M",+e+ +i,t],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=m,a},C=function(e,t,n,r){return null===e&&(e=t=n=r=0),null===t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:x(e,t,n,r),vb:[e,t,n,r].join(" ")}},_=function(e,t,n,i,a,o,s,c){r.isArray(e)||(e=[e,t,n,i,a,o,s,c]);var l=A.apply(null,e);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},I=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,d=f*c,p=e+2*c*(n-e)+f*(i-2*n+e),g=t+2*c*(r-t)+f*(a-2*r+t),m=n+2*c*(i-n)+f*(o-2*i+n),v=r+2*c*(a-r)+f*(s-2*a+r);// (mx > nx || my < ny) && (alpha += 180);
return{x:u*e+3*h*c*n+3*l*c*c*i+d*o,y:u*t+3*h*c*r+3*l*c*c*a+d*s,m:{x:p,y:g},n:{x:m,y:v},start:{x:l*e+c*n,y:l*t+c*r},end:{x:l*i+c*o,y:l*a+c*s},alpha:90-180*Math.atan2(p-m,g-v)/Math.PI}},E=function(e,t,n){if(!function(e,t){return e=C(e),t=C(t),w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(_(e),_(t)))return n?0:[];for(var r=~~(y.apply(0,e)/8),i=~~(y.apply(0,t)/8),a=[],o=[],s={},c=n?0:[],l=0;l<r+1;l++){var u=I.apply(0,e.concat(l/r));a.push({x:u.x,y:u.y,t:l/r})}for(var h=0;h<i+1;h++){var f=I.apply(0,t.concat(h/i));o.push({x:f.x,y:f.y,t:h/i})}for(var d=0;d<r;d++)for(var p=0;p<i;p++){var g=a[d],m=a[d+1],v=o[p],A=o[p+1],x=Math.abs(m.x-g.x)<.001?"y":"x",E=Math.abs(A.x-v.x)<.001?"y":"x",k=b(g.x,g.y,m.x,m.y,v.x,v.y,A.x,A.y);if(k){if(s[k.x.toFixed(4)]===k.y.toFixed(4))continue;s[k.x.toFixed(4)]=k.y.toFixed(4);var S=g.t+Math.abs((k[x]-g[x])/(m[x]-g[x]))*(m.t-g.t),B=v.t+Math.abs((k[E]-v[E])/(A[E]-v[E]))*(A.t-v.t);S>=0&&S<=1&&B>=0&&B<=1&&(n?c++:c.push({x:k.x,y:k.y,t1:S,t2:B}))}}return c};function k(e,t){var n=[],r=[];return e.length&&function e(t,i){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-i)*t[o][0]+i*t[o+1][0],(1-i)*t[o][1]+i*t[o+1][1]];e(a,i)}}(e,t),{left:n,right:r.reverse()}}var S=function(e,t,n){if(1===n)return[[].concat(e)];var r=[];if("L"===t[0]||"C"===t[0]||"Q"===t[0])r=r.concat(function(e,t,n){var r=[[e[1],e[2]]];n=n||2;var i=[];"A"===t[0]?(r.push(t[6]),r.push(t[7])):"C"===t[0]?(r.push([t[1],t[2]]),r.push([t[3],t[4]]),r.push([t[5],t[6]])):"S"===t[0]||"Q"===t[0]?(r.push([t[1],t[2]]),r.push([t[3],t[4]])):r.push([t[1],t[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var c=k(a,o/(1-o*s));i.push(c.left),a=c.right}return i.push(a),i.map((function(e){var t=[];return 4===e.length&&(t.push("C"),t=t.concat(e[2])),e.length>=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t.concat(e[e.length-1])}))}(e,t,n));else{var i=[].concat(e);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},B=function(e,t){if(e.length!==t.length)return!1;var n=!0;return r.each(e,(function(e,r){if(e!==t[r])return n=!1,!1})),n};function M(e,t,n){var r=null,i=n;return t<i&&(i=t,r="add"),e<i&&(i=e,r="del"),{type:r,min:i}}
/*
 * https://en.wikipedia.org/wiki/Levenshtein_distance
 * 计算两条path的编辑距离
 */ // 将两个点均分成count个点
function T(e,t,n){for(var r,i=[].concat(e),a=1/(n+1),o=O(t)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(e.length*a))?i.unshift([o[0]*a+e[r][0]*(1-a),o[1]*a+e[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+e[r][0]*(1-a),o[1]*a+e[r][1]*(1-a)]);return i}
/*
 * 抽取pathSegment中的关键点
 * M,L,A,Q,H,V一个端点
 * Q, S抽取一个端点，一个控制点
 * C抽取一个端点，两个控制点
 */function O(e){var t=[];switch(e[0]){case"M":case"L":case"T":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"H":case"V":t.push([e[1],e[1]])}return t}e.exports={parsePathString:s,parsePathArray:m,pathTocurve:p,pathToAbsolute:u,catmullRomToBezier:c,rectPath:x,fillPath:function(e,t){if(1===e.length)return e;var n=e.length-1,r=t.length-1,i=n/r,a=[];if(1===e.length&&"M"===e[0][0]){for(var o=0;o<r-n;o++)e.push(e[0]);return e}for(var s=0;s<r;s++){var c=Math.floor(i*s);a[c]=(a[c]||0)+1}var l=a.reduce((function(t,r,i){return i===n?t.concat(e[n]):t.concat(S(e[i],e[i+1],r))}),[]);return l.unshift(e[0]),"Z"!==t[r]&&"z"!==t[r]||l.push("Z"),l},fillPathByDiff:function(e,t){var n=function(e,t){var n,r,i=e.length,a=t.length,o=0;if(0===i||0===a)return null;for(var s=[],c=0;c<=i;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=a;l++)s[0][l]={min:l};for(var u=1;u<=i;u++){n=e[u-1];for(var h=1;h<=a;h++){r=t[h-1],o=B(n,r)?0:1;var f=s[u-1][h].min+1,d=s[u][h-1].min+1,p=s[u-1][h-1].min+o;s[u][h]=M(f,d,p)}}return s}(e,t),r=e.length,i=t.length,a=[],o=1,s=1;// 如果source和target不是完全不相等
if(n[r][i]!==r){
// 获取从source到target所需改动
for(var c=1;c<=r;c++){var l=n[c][c].min;s=c;for(var u=o;u<=i;u++)n[c][u].min<l&&(l=n[c][u].min,s=u);o=s,n[c][o].type&&a.push({index:c-1,type:n[c][o].type})}// 对source进行增删path
for(var h=a.length-1;h>=0;h--)o=a[h].index,"add"===a[h].type?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}// source尾部补齐
var f=i-(r=e.length);if(r<i)for(var d=0;d<f;d++)"z"===e[r-1][0]||"Z"===e[r-1][0]?e.splice(r-2,0,e[r-2]):e.push(e[r-1]),r+=1;return e},formatPath:function(e,t){if(e.length<=1)return e;for(var n,r=0;r<t.length;r++)if(e[r][0]!==t[r][0])switch(
// 获取fromPath的pathSegment的端点，根据toPath的指令对其改造
n=O(e[r]),t[r][0]){case"M":e[r]=["M"].concat(n[0]);break;case"L":e[r]=["L"].concat(n[0]);break;case"A":e[r]=[].concat(t[r]),e[r][6]=n[0][0],e[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){e[r]=t[r];break}n=T(n,e[r-1],1)}e[r]=["Q"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"T":e[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){e[r]=t[r];break}n=T(n,e[r-1],2)}e[r]=["C"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"S":if(n.length<2){if(!(r>0)){e[r]=t[r];break}n=T(n,e[r-1],1)}e[r]=["S"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;default:e[r]=t[r]}return e},intersection:function(e,t){return function(e,t,n){var r,i,a,o,s,c,l,u,h,f;e=p(e),t=p(t);for(var d=n?0:[],g=0,m=e.length;g<m;g++){var v=e[g];if("M"===v[0])r=s=v[1],i=c=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,c,s,c],r=s,i=c);for(var y=0,A=t.length;y<A;y++){var b=t[y];if("M"===b[0])a=l=b[1],o=u=b[2];else{"C"===b[0]?(f=[a,o].concat(b.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,u,l,u],a=l,o=u);var w=E(h,f,n);if(n)d+=w;else{for(var x=0,C=w.length;x<C;x++)w[x].segment1=g,w[x].segment2=y,w[x].bez1=h,w[x].bez2=f;d=d.concat(w)}}}}}return d}(e,t)}}},
/* 97 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview The base class of continuous legend
 * @author sima.zhang
 */var i=n(4),a=n(192),o=n(385),s=n(16).FONT_FAMILY,c=i.Event,l=i.Group,u=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var u=a.prototype;return u.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 类型
       * @type {String}
       */
type:"continuous-legend",
/**
       * 子项
       * @type {Array}
       */
items:null,
/**
       * 布局方式
       * horizontal 水平
       * vertical 垂直
       * @type {String}
       */
layout:"vertical",
/**
       * 宽度
       * @type {Number}
       */
width:20,
/**
       * 高度
       * @type {Number}
       */
height:156,
/**
       * 默认文本图形属性
       * @type {ATTRS}
       */
textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:s},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},
/**
       * 连续图例是否可滑动
       * @type {Boolean}
       */
slidable:!0,
/**
       * 两头滑块的样式
       * @type {object}
       */
triggerAttr:{fill:"#fff",
// shadowOffsetX: -2,
// shadowOffsetY: 2,
shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},
/**
       * slider 的范围
       * @type {array}}
       */
_range:[0,100],
/**
       * 中间 bar 背景灰色
       * @type {ATTRS}
       */
middleBackgroundStyle:{fill:"#D9D9D9"},
/**
       * 文本与图例间距
       * @type {Number}
       */
textOffset:4,
/**
       * line segment to seperate the unslidable slider blocks
       * @type {object}
       */
lineStyle:{lineWidth:1,stroke:"#fff"},
/**
       * the pointer while activate the legend by mouse hovering or called by outside
       * @type {object}
       */
pointerStyle:{
// color: '#ccc',
fill:"rgb(230, 230, 230)"}})},u._calStartPoint=function(){var e={x:10,y:this.get("titleGap")-8},t=this.get("titleShape");if(t){var n=t.getBBox();e.y+=n.height}return e},u.beforeRender=function(){var t=this.get("items");i.isArray(t)&&!i.isEmpty(t)&&(e.prototype.beforeRender.call(this),this.set("firstItem",t[0]),this.set("lastItem",t[t.length-1]))},u._formatItemValue=function(e){var t=this.get("formatter")||this.get("itemFormatter");return t&&(e=t.call(this,e)),e},u.render=function(){e.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},u._renderSlider=function(){var e=new l,t=new l,n=new l,r=this._calStartPoint(),i=this.get("group").addGroup(o,{minHandleElement:e,maxHandleElement:t,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});i.translate(r.x,r.y),this.set("slider",i),this._renderSliderShape().attr("clip",i.get("middleHandleElement")),this._renderTrigger()}// the middle bar
,u._addMiddleBar=function(e,t,n){// frontground of the middle bar
// background of the middle bar
return e.addShape(t,{attrs:i.mix({},n,this.get("middleBackgroundStyle"))}),e.addShape(t,{attrs:n})},u._renderTrigger=function(){var e=this.get("firstItem"),t=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),a=this.get("triggerAttr"),o=i.mix({},a),s=i.mix({},a),c=i.mix({text:this._formatItemValue(e.value)+""},r),l=i.mix({text:this._formatItemValue(t.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,c),this._addVerticalTrigger("max",s,l)):(this._addHorizontalTrigger("min",o,c),this._addHorizontalTrigger("max",s,l))},u._addVerticalTrigger=function(e,t,n){var r=this.get("slider").get(e+"HandleElement"),a=this.get("width"),o=r.addShape("rect",{attrs:i.mix({x:a/2-8-2,y:"min"===e?0:-8,width:18,height:8},t)}),s=r.addShape("text",{attrs:i.mix(n,{x:a+this.get("textOffset"),y:"max"===e?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),c="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",c),s.attr("cursor",c),this.set(e+"ButtonElement",o),this.set(e+"TextElement",s)},u._addHorizontalTrigger=function(e,t,n){var r=this.get("slider").get(e+"HandleElement"),a=r.addShape("rect",{attrs:i.mix({x:"min"===e?-8:0,y:-8-this.get("height")/2,width:8,height:16},t)}),o=r.addShape("text",{attrs:i.mix(n,{x:"min"===e?-12:12,y:4+this.get("textOffset")+10,textAlign:"min"===e?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";a.attr("cursor",s),o.attr("cursor",s),this.set(e+"ButtonElement",a),this.set(e+"TextElement",o)},u._bindEvents=function(){var e=this;this.get("slidable")&&this.get("slider").on("sliderchange",(function(t){var n=t.range,r=e.get("firstItem").value,i=e.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);e._updateElement(a,o);var s=new c("itemfilter",t,!0,!0);s.range=[a,o],e.emit("itemfilter",s)})),this.get("hoverable")&&(this.get("group").on("mousemove",i.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",i.wrapBehavior(this,"_onMouseLeave")))}// update the text of min and max trigger
,u._updateElement=function(e,t){var n=this.get("minTextElement"),r=this.get("maxTextElement");t>1&&(
// 对于大于 1 的值，默认显示为整数
e=parseInt(e,10),t=parseInt(t,10)),n.attr("text",this._formatItemValue(e)+""),r.attr("text",this._formatItemValue(t)+"")},u._onMouseLeave=function(){var e=this.get("group").findById("hoverPointer");e&&e.destroy();var t=this.get("group").findById("hoverText");t&&t.destroy(),this.get("canvas").draw()}// activate the legend while mouse moving
,u._onMouseMove=function(e){var t,n=this.get("height"),r=this.get("width"),i=this.get("items"),a=this.get("canvas").get("el").getBoundingClientRect(),o=this.get("group").getBBox();if("vertical"===this.get("layout")){var s=5;"color-legend"===this.get("type")&&(s=30);var c=this.get("titleGap"),l=this.get("titleShape");l&&(c+=l.getBBox().maxY-l.getBBox().minY);var u=e.clientY||e.event.clientY;u=u-a.y-this.get("group").attr("matrix")[7]+o.y-s+c,t=i[0].value+(1-u/n)*(i[i.length-1].value-i[0].value)}else{var h=e.clientX||e.event.clientX;h=h-a.x-this.get("group").attr("matrix")[6],t=i[0].value+h/r*(i[i.length-1].value-i[0].value)}t=t.toFixed(2),this.activate(t),this.emit("mousehover",{value:t})}// activated by mouse moving or being called
,u.activate=function(e){if(e){var t=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),r=this.get("items");if(!(e<r[0].value||e>r[r.length-1].value)){var a,o=this.get("height"),s=this.get("width"),c=this.get("titleShape"),l=this.get("titleGap"),u=[],h=(e-r[0].value)/(r[r.length-1].value-r[0].value);if("vertical"===this.get("layout")){
// revise the offset
var f=0,d=0;"color-legend"===this.get("type")&&(f=l,c&&(f+=c.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?f-=13:(f=l-15,c&&(f+=c.getBBox().height)),d+=10),u=[[d,(h=(1-h)*o)+f],[d-10,h+f-5],[d-10,h+f+5]],a=i.mix({},{x:s+this.get("textOffset")/2+d,y:h+f,text:this._formatItemValue(e)+""},this.get("textStyle"),{textAlign:"start"})}else{var p=0,g=0;"color-legend"===this.get("type")&&(p=l,c&&(p+=c.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?
// hoverPointer三角形的高
p-=7:(p=l,c||(p-=7)),g+=10),u=[[(h*=s)+g,p],[h+g-5,p-10],[h+g+5,p-10]],a=i.mix({},{x:h-5,y:o+this.get("textOffset")+p,text:this._formatItemValue(e)+""},this.get("textStyle"))}var m=i.mix(a,this.get("hoverTextStyle"));n?
// mouse move, update hoverText
n.attr(m):(
// mouse enter the legend, add hoverText
n=this.get("group").addShape("text",{attrs:m})).set("id","hoverText"),t?
// mouse move, update hoverPointer
t.attr(i.mix({points:u},this.get("pointerStyle"))):(
// mouse enter the legend, add hoverPointer
t=this.get("group").addShape("Polygon",{attrs:i.mix({points:u},this.get("pointerStyle"))})).set("id","hoverPointer"),this.get("canvas").draw()}}},u.deactivate=function(){var e=this.get("group").findById("hoverPointer");e&&e.destroy();var t=this.get("group").findById("hoverText");t&&t.destroy(),this.get("canvas").draw()},a}(a);e.exports=u},
/* 98 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(92),a=n(4),o=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=i.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return a.mix({},t,{
/**
       * tooltip container
       * @type {Dom / String}
       */
/**
       * 右下角坐标
       * @type {Number}
       */
x:0,
/**
       * y 右下角坐标
       * @type {Number}
       */
y:0,
/**
       * tooltip 记录项
       * @type {Array}
       */
items:null,
/**
       * tooltip 标题
       * @type {Array}
       */
titleContent:null,
/**
       * 是否展示 title
       * @type {Boolean}
       */
showTitle:!0,
/**
       * 视图范围
       * @type {Object}
       */
plotRange:null,
/**
       * x轴上，移动到位置的偏移量
       * @type {Number}
       */
offset:10,
// TODO:支持xy两个方向上的offset
/**
       * 时间戳
       * @type {Number}
       */
timeStamp:0,
/**
       * 将 tooltip 展示在指定区域内
       * @type {Boolean}
       */
inPlot:!0,
/**
       * tooltip 辅助线配置
       * @type {Object}
       */
crosshairs:null})},o.isContentChange=function(e,t){var n=this.get("titleContent"),r=this.get("items"),i=!(e===n&&r.length===t.length);return i||a.each(t,(function(e,t){var n=r[t];for(var o in e)if(e.hasOwnProperty(o)&&!a.isObject(e[o])&&e[o]!==n[o]){i=!0;break}if(i)return!1})),i},o.setContent=function(e,t){var n=(new Date).valueOf();return this.set("items",t),this.set("titleContent",e),this.set("timeStamp",n),this.render(),this},o.setPosition=function(e,t){this.set("x",e),this.set("y",t)},o.render=function(){},o.clear=function(){},o.show=function(){this.set("visible",!0)},o.hide=function(){this.set("visible",!1)},i}(i);e.exports=o},
/* 99 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return P})),
/* harmony export (immutable) */t.a=L;
/* harmony import */var r=n(472),i=n(473),a=n(474),o=n(475),s=n(445),c=n(477),l=n(478),u=n(479),h=n(480),f=n(481),d=n(482),p=n(483),g=n(484),m=n(485),v=n(486),y=n(487),A=n(488),b=n(447),w=n(489),x=n(490),C=n(491),_=n(492),I=n(493),E=n(494),k=n(495),S=n(496),B=n(497),M=n(498),T=n(499),O=n(433),D=n(500),P=[null];
/* harmony import */function L(e,t){this._groups=e,this._parents=t}function Q(){return new L([[document.documentElement]],P)}L.prototype=Q.prototype={constructor:L,select:r.a,selectAll:i.a,filter:a.a,data:o.a,enter:s.b,exit:c.a,join:l.a,merge:u.a,order:h.a,sort:f.a,call:d.a,nodes:p.a,node:g.a,size:m.a,empty:v.a,each:y.a,attr:A.a,style:b.a,property:w.a,classed:x.a,text:C.a,html:_.a,raise:I.a,lower:E.a,append:k.a,insert:S.a,remove:B.a,clone:M.a,datum:T.a,on:O.b,dispatch:D.a},
/* harmony default export */t.b=Q},
/* 100 */
/***/function(e,t,n){
/**
 * @fileOverview 提取公共代码到util方法
 * @author dxq613@gmail.com
 */
var r=n(12),i=n(111);e.exports={toTimeStamp:function(e){return r(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),i(e)&&(e=e.getTime()),e}}},
/* 101 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/* harmony import */var r=n(83);
/* harmony reexport (binding) */n.d(t,"now",(function(){return r.b})),
/* harmony reexport (binding) */n.d(t,"timer",(function(){return r.c})),
/* harmony reexport (binding) */n.d(t,"timerFlush",(function(){return r.d}));
/* harmony import */var i=n(229);
/* harmony reexport (binding) */n.d(t,"timeout",(function(){return i.a}));
/* harmony import */var a=n(230);
/* harmony reexport (binding) */n.d(t,"interval",(function(){return a.a}))},
/* 102 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/* harmony import */var r=n(471);
/* harmony reexport (binding) */n.d(t,"create",(function(){return r.a}));
/* harmony import */var i=n(418);
/* harmony reexport (binding) */n.d(t,"creator",(function(){return i.a}));
/* harmony import */var a=n(501);
/* harmony reexport (binding) */n.d(t,"local",(function(){return a.a}));
/* harmony import */var o=n(444);
/* harmony reexport (binding) */n.d(t,"matcher",(function(){return o.a}));
/* harmony import */var s=n(502);
/* harmony reexport (binding) */n.d(t,"mouse",(function(){return s.a}));
/* harmony import */var c=n(429);
/* harmony reexport (binding) */n.d(t,"namespace",(function(){return c.a}));
/* harmony import */var l=n(430);
/* harmony reexport (binding) */n.d(t,"namespaces",(function(){return l.a}));
/* harmony import */var u=n(419);
/* harmony reexport (binding) */n.d(t,"clientPoint",(function(){return u.a}));
/* harmony import */var h=n(442);
/* harmony reexport (binding) */n.d(t,"select",(function(){return h.a}));
/* harmony import */var f=n(503);
/* harmony reexport (binding) */n.d(t,"selectAll",(function(){return f.a}));
/* harmony import */var d=n(99);
/* harmony reexport (binding) */n.d(t,"selection",(function(){return d.b}));
/* harmony import */var p=n(431);
/* harmony reexport (binding) */n.d(t,"selector",(function(){return p.a}));
/* harmony import */var g=n(443);
/* harmony reexport (binding) */n.d(t,"selectorAll",(function(){return g.a}));
/* harmony import */var m=n(447);
/* harmony reexport (binding) */n.d(t,"style",(function(){return m.b}));
/* harmony import */var v=n(504);
/* harmony reexport (binding) */n.d(t,"touch",(function(){return v.a}));
/* harmony import */var y=n(505);
/* harmony reexport (binding) */n.d(t,"touches",(function(){return y.a}));
/* harmony import */var A=n(432);
/* harmony reexport (binding) */n.d(t,"window",(function(){return A.a}));
/* harmony import */var b=n(433);
/* harmony reexport (binding) */n.d(t,"event",(function(){return b.c})),
/* harmony reexport (binding) */n.d(t,"customEvent",(function(){return b.a}))},
/* 103 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/* harmony import */var r=n(231);
/* harmony reexport (binding) */n.d(t,"easeLinear",(function(){return r.a}));
/* harmony import */var i=n(232);
/* harmony reexport (binding) */n.d(t,"easeQuad",(function(){return i.b})),
/* harmony reexport (binding) */n.d(t,"easeQuadIn",(function(){return i.a})),
/* harmony reexport (binding) */n.d(t,"easeQuadOut",(function(){return i.c})),
/* harmony reexport (binding) */n.d(t,"easeQuadInOut",(function(){return i.b}));
/* harmony import */var a=n(233);
/* harmony reexport (binding) */n.d(t,"easeCubic",(function(){return a.b})),
/* harmony reexport (binding) */n.d(t,"easeCubicIn",(function(){return a.a})),
/* harmony reexport (binding) */n.d(t,"easeCubicOut",(function(){return a.c})),
/* harmony reexport (binding) */n.d(t,"easeCubicInOut",(function(){return a.b}));
/* harmony import */var o=n(234);
/* harmony reexport (binding) */n.d(t,"easePoly",(function(){return o.b})),
/* harmony reexport (binding) */n.d(t,"easePolyIn",(function(){return o.a})),
/* harmony reexport (binding) */n.d(t,"easePolyOut",(function(){return o.c})),
/* harmony reexport (binding) */n.d(t,"easePolyInOut",(function(){return o.b}));
/* harmony import */var s=n(235);
/* harmony reexport (binding) */n.d(t,"easeSin",(function(){return s.b})),
/* harmony reexport (binding) */n.d(t,"easeSinIn",(function(){return s.a})),
/* harmony reexport (binding) */n.d(t,"easeSinOut",(function(){return s.c})),
/* harmony reexport (binding) */n.d(t,"easeSinInOut",(function(){return s.b}));
/* harmony import */var c=n(236);
/* harmony reexport (binding) */n.d(t,"easeExp",(function(){return c.b})),
/* harmony reexport (binding) */n.d(t,"easeExpIn",(function(){return c.a})),
/* harmony reexport (binding) */n.d(t,"easeExpOut",(function(){return c.c})),
/* harmony reexport (binding) */n.d(t,"easeExpInOut",(function(){return c.b}));
/* harmony import */var l=n(237);
/* harmony reexport (binding) */n.d(t,"easeCircle",(function(){return l.b})),
/* harmony reexport (binding) */n.d(t,"easeCircleIn",(function(){return l.a})),
/* harmony reexport (binding) */n.d(t,"easeCircleOut",(function(){return l.c})),
/* harmony reexport (binding) */n.d(t,"easeCircleInOut",(function(){return l.b}));
/* harmony import */var u=n(238);
/* harmony reexport (binding) */n.d(t,"easeBounce",(function(){return u.c})),
/* harmony reexport (binding) */n.d(t,"easeBounceIn",(function(){return u.a})),
/* harmony reexport (binding) */n.d(t,"easeBounceOut",(function(){return u.c})),
/* harmony reexport (binding) */n.d(t,"easeBounceInOut",(function(){return u.b}));
/* harmony import */var h=n(239);
/* harmony reexport (binding) */n.d(t,"easeBack",(function(){return h.b})),
/* harmony reexport (binding) */n.d(t,"easeBackIn",(function(){return h.a})),
/* harmony reexport (binding) */n.d(t,"easeBackOut",(function(){return h.c})),
/* harmony reexport (binding) */n.d(t,"easeBackInOut",(function(){return h.b}));
/* harmony import */var f=n(240);
/* harmony reexport (binding) */n.d(t,"easeElastic",(function(){return f.c})),
/* harmony reexport (binding) */n.d(t,"easeElasticIn",(function(){return f.a})),
/* harmony reexport (binding) */n.d(t,"easeElasticOut",(function(){return f.c})),
/* harmony reexport (binding) */n.d(t,"easeElasticInOut",(function(){return f.b}))},
/* 104 */
/***/function(e,t,n){e.exports={Position:n(330),Color:n(331),Shape:n(332),Size:n(333),Opacity:n(334),ColorUtil:n(165)};
/***/},
/* 105 */
/***/function(e,t,n){
/**
 * @fileOverview Scale entry, used to reference all the scales
 * @author dxq613@gmail.com
 */
var r=n(106),i=n(20);i.Linear=n(38),i.Identity=n(209),i.Cat=n(108),i.Time=n(210),i.TimeCat=n(212),i.Log=n(213),i.Pow=n(214);var a=function(e){if(i.hasOwnProperty(e)){var t=r(e);i[t]=function(t){return new i[e](t)}}};for(var o in i)a(o);var s=["cat","timeCat"];i.isCategory=function(e){return s.indexOf(e)>=0},e.exports=i},
/* 106 */
/***/function(e,t,n){var r=n(26);e.exports=function(e){var t=r(e);return t.charAt(0).toLowerCase()+t.substring(1)}},
/* 107 */
/***/function(e,t){// 取小于当前值的
function n(e,t){var n=e.length;if(0===n)return NaN;var r=e[0];if(t<e[0])return NaN;if(t>=e[n-1])return e[n-1];for(var i=1;i<e.length&&!(t<e[i]);i++)r=e[i];return r}// 大于当前值的第一个
function r(e,t){var n,r=e.length;if(0===r)return NaN;// var pre = values[0];
if(t>e[r-1])return NaN;if(t<e[0])return e[0];for(var i=1;i<e.length;i++)if(t<=e[i]){n=e[i];break}return n}var i={
// 获取逼近的数值
snapFactorTo:function(e,t,n){
// 假设 v = -512,isFloor = true
if(isNaN(e))return NaN;var r=1;// 计算系数
if(0!==e){e<0&&(r=-1);// v = 512
var a=// 获取系数
function(e){var t=1;if(e===1/0||e===-1/0)throw new Error("Not support Infinity!");if(e<1){for(var n=0;e<1;)t/=10,e*=10,n++;// 浮点数计算出现问题
t.toString().length>12&&(t=parseFloat(t.toFixed(n)))}else for(;e>10;)t*=10,e/=10;return t}(e*=r);r*=a,// factor = -100
e/=a}e="floor"===n?i.snapFloor(t,e):"ceil"===n?i.snapCeiling(t,e):i.snapTo(t,e);var o=parseFloat((e*r).toPrecision(12));// 如果出现浮点数计算问题，需要处理一下
// 如果出现浮点数计算问题，需要处理一下
return Math.abs(r)<1&&o.toString().length>12&&(o=e/parseInt(1/r)*(r>0?1:-1)),o},
// 获取逼近的倍数
snapMultiple:function(e,t,n){return("ceil"===n?Math.ceil(e/t):"floor"===n?Math.floor(e/t):Math.round(e/t))*t},
/**
   * 获取逼近的值，用于对齐数据
   * @param  {Array} values   数据集合
   * @param  {Number} value   数值
   * @return {Number} 逼近的值
   */
snapTo:function(e,t){
// 这里假定values是升序排列
var i=n(e,t),a=r(e,t);if(isNaN(i)||isNaN(a)){if(e[0]>=t)return e[0];var o=e[e.length-1];if(o<=t)return o}return Math.abs(t-i)<Math.abs(a-t)?i:a},
/**
   * 获取逼近的最小值，用于对齐数据
   * @param  {Array} values   数据集合
   * @param  {Number} value   数值
   * @return {Number} 逼近的最小值
   */
snapFloor:function(e,t){
// 这里假定values是升序排列
return n(e,t)},
/**
   * 获取逼近的最大值，用于对齐数据
   * @param  {Array} values   数据集合
   * @param  {Number} value   数值
   * @return {Number} 逼近的最大值
   */
snapCeiling:function(e,t){
// 这里假定values是升序排列
return r(e,t)},fixedBase:function(e,t){var n=t.toString(),r=n.indexOf("."),i=n.indexOf("e-");// 判断是否带小数点，1.000001 1.23e-9
if(r<0&&i<0)
// base为整数
return Math.round(e);var a=i>=0?parseInt(n.substr(i+2),10):n.substr(r+1).length;return a>20&&(a=20),parseFloat(e.toFixed(a))}};e.exports=i},
/* 108 */
/***/function(e,t,n){var r=n(20),i=n(109),a=n(3),o=n(11),s=n(12),c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=r.prototype;return c._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this),this.type="cat",
/**
     * 是否分类度量
     * @type {Boolean}
     */
this.isCategory=!0,this.isRounding=!0}
/**
   * @override
   */,c.init=function(){var e=this,t=e.values,n=e.tickCount;if(a(t,(function(e,n){t[n]=e.toString()})),!e.ticks){var r=t;n&&(r=i({maxCount:n,data:t,isRounding:e.isRounding}).ticks),this.ticks=r}}
/**
   * @override
   */,c.getText=function(t){return-1===this.values.indexOf(t)&&o(t)&&(t=this.values[Math.round(t)]),e.prototype.getText.call(this,t)}
/**
   * @override
   */,c.translate=function(e){var t=this.values.indexOf(e);return-1===t&&o(e)?t=e:-1===t&&(t=NaN),t}
/**
   * @override
   */,c.scale=function(e){var t=this.rangeMin(),n=this.rangeMax();return(s(e)||-1!==this.values.indexOf(e))&&(e=this.translate(e)),t+(this.values.length>1?e/(this.values.length-1):e)*(n-t)}
/**
   * @override
   */,c.invert=function(e){if(s(e))
// 如果已经是字符串
return e;var t=this.rangeMin(),n=this.rangeMax();// 归一到 范围内
e<t&&(e=t),e>n&&(e=n);var r=(e-t)/(n-t),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},r}(r);r.Cat=c,e.exports=c},
/* 109 */
/***/function(e,t,n){
/**
 * @fileOverview 计算分类的的坐标点
 * @author dxq613@gmail.com
 */
var r=n(3);e.exports=function(e){var t,n,i,a={},o=[],s=e.isRounding,c=(t=e.data,n=[],r(t,(function(e){n=n.concat(e)})),n),l=c.length,u=e.maxCount||8;if(s?(
// 取整操作
i=function(e,t){var n;for(n=t;n>0&&e%n!=0;n--);// 如果是素数，没有可以整除的数字
if(1===n)for(n=t;n>0&&(e-1)%n!=0;n--);return n}(l-1,u-1)+1,// 如果计算出来只有两个坐标点，则直接使用传入的 maxCount
2===i?i=u:i<u-4&&(i=u-4)):i=u,!s&&l<=i+i/2)o=[].concat(c);else{for(var h=parseInt(l/(i-1),10),f=c.map((function(e,t){return t%h==0?c.slice(t,t+h):null})).filter((function(e){return e})),d=1,p=f.length;d<p&&(s?d*h<l-h:d<i-1);d++)o.push(f[d][0]);if(c.length){o.unshift(c[0]);var g=c[l-1];-1===o.indexOf(g)&&o.push(g)}}return a.categories=c,a.ticks=o,a}},
/* 110 */
/***/function(e,t,n){var r;!function(){"use strict";
/**
   * Parse or format dates
   * @class fecha
   */var i={},a=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,o=/\d\d?/,s=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,c=/\[([^]*?)\]/gm,l=function(){};function u(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function h(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}function f(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],g=u(p,3),m=u(d,3);i.i18n={dayNamesShort:m,dayNames:d,monthNamesShort:g,monthNames:p,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var v={D:function(e){return e.getDate()},DD:function(e){return f(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDay()},dd:function(e){return f(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return f(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return String(e.getFullYear()).substr(2)},YYYY:function(e){return f(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return f(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return f(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return f(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return f(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return f(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return f(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+f(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},y={D:[o,function(e,t){e.day=t}],Do:[new RegExp(o.source+s.source),function(e,t){e.day=parseInt(t,10)}],M:[o,function(e,t){e.month=t-1}],YY:[o,function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:[o,function(e,t){e.hour=t}],m:[o,function(e,t){e.minute=t}],s:[o,function(e,t){e.second=t}],YYYY:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],d:[o,l],ddd:[s,l],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(e,t){"Z"===t&&(t="+00:00");var n,r=(t+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};y.dd=y.d,y.dddd=y.ddd,y.DD=y.D,y.mm=y.m,y.hh=y.H=y.HH=y.h,y.MM=y.M,y.ss=y.s,y.A=y.a,// Some common format strings
i.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},
/***
   * Format a date
   * @method format
   * @param {Date|number} dateObj
   * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
   */
i.format=function(e,t,n){var r=n||i.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=i.masks[t]||t||i.masks.default;var o=[];// Make literals inactive by replacing them with ??
// Inline literal values back into the formatted value
// Apply formatting rules
return(t=(t=t.replace(c,(function(e,t){return o.push(t),"??"}))).replace(a,(function(t){return t in v?v[t](e,r):t.slice(1,t.length-1)}))).replace(/\?\?/g,(function(){return o.shift()}))},
/**
   * Parse a date string into an object, changes - into /
   * @method parse
   * @param {string} dateStr Date string
   * @param {string} format Date parse format
   * @returns {Date|boolean}
   */
i.parse=function(e,t,n){var r=n||i.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");// Avoid regular expression denial of service, fail early for really long strings
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
if(t=i.masks[t]||t,e.length>1e3)return!1;var o=!0,s={};if(t.replace(a,(function(t){if(y[t]){var n=y[t],i=e.search(n[0]);~i?e.replace(n[0],(function(t){return n[1](s,t,r),e=e.substr(i+t.length),t})):o=!1}return y[t]?"":t.slice(1,t.length-1)})),!o)return!1;var c,l=new Date;return!0===s.isPm&&null!=s.hour&&12!=+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12==+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,c=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):c=new Date(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),c},
/* istanbul ignore next */
void 0!==e&&e.exports?e.exports=i:void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},
/* 111 */
/***/function(e,t,n){var r=n(14);e.exports=function(e){return r(e,"Date")}},
/* 112 */
/***/function(e,t,n){e.exports={Canvas:n(215),Group:n(115),Shape:n(7),Arc:n(120),Circle:n(121),Dom:n(122),Ellipse:n(123),Fan:n(124),Image:n(125),Line:n(126),Marker:n(81),Path:n(127),Polygon:n(128),Polyline:n(129),Rect:n(130),Text:n(131),PathSegment:n(46),PathUtil:n(82),Event:n(78),EventEmitter:n(117),
// version, etc.
version:"3.4.10"};
/***/},
/* 113 */
/***/function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).replace(/^\[object /,"").replace(/\]$/,"")}},
/* 114 */
/***/function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},
/* 115 */
/***/function(e,t,n){var r=n(1),i=n(116),a=n(226),o={},s="_INDEX",c=["zIndex","capture","visible"];function l(e,t,n){for(var r,i=e.length-1;i>=0;i--){var a=e[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(t,n):a.isHit(t,n)&&(r=a)),r)break}return r}var u=function e(t){e.superclass.constructor.call(this,t),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};function h(e){if(!e._cfg&&e!==u){var t=e.superclass.constructor;t&&!t._cfg&&h(t),e._cfg={},r.merge(e._cfg,t._cfg),r.merge(e._cfg,e.CFG)}}r.extend(u,i),r.augment(u,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return h(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(e,t){var n=this.get("canvas");t=t||{};var i=o[e];if(i||(i=r.upperFirst(e),o[e]=i),t.attrs&&n){var s=t.attrs;if("text"===e){
// 临时解决
var c=n.get("fontFamily");c&&(s.fontFamily=s.fontFamily?s.fontFamily:c)}}t.canvas=n,t.type=e;var l=new a[i](t);return this.add(l),l},
/** 添加图组
   * @param  {Function|Object|undefined} param 图组类
   * @param  {Object} cfg 配置项
   * @return {Object} rst 图组
   */
addGroup:function(e,t){var n,i=this.get("canvas");if(t=r.merge({},t),r.isFunction(e))t?(t.canvas=i,t.parent=this,n=new e(t)):n=new e({canvas:i,parent:this}),this.add(n);else if(r.isObject(e))e.canvas=i,n=new u(e),this.add(n);else{if(void 0!==e)return!1;n=new u,this.add(n)}return n},
/** 绘制背景
   * @param  {Array} padding 内边距
   * @param  {Attrs} attrs 图形属性
   * @param  {Shape} backShape 背景图形
   * @return {Object} 背景层对象
   */
renderBack:function(e,t){var n=this.get("backShape"),i=this.getBBox();// const parent = this.get('parent'); // getParent
return r.merge(t,{x:i.minX-e[3],y:i.minY-e[0],width:i.width+e[1]+e[3],height:i.height+e[0]+e[2]}),n?n.attr(t):n=this.addShape("rect",{zIndex:-1,attrs:t}),this.set("backShape",n),this.sort(),n},removeChild:function(e,t){if(arguments.length>=2)this.contain(e)&&e.remove(t);else{if(1===arguments.length){if(!r.isBoolean(e))return this.contain(e)&&e.remove(!0),this;t=e}0===arguments.length&&(t=!0),u.superclass.remove.call(this,t)}return this},
/**
   * 向组中添加shape或者group
   * @param {Object} items 图形或者分组
   * @return {Object} group 本尊
   */
add:function(e){var t=this,n=t.get("children");if(r.isArray(e))r.each(e,(function(e){var n=e.get("parent");n&&n.removeChild(e,!1),t._setCfgProperty(e)})),t._cfg.children=n.concat(e);else{var i=e,a=i.get("parent");a&&a.removeChild(i,!1),t._setCfgProperty(i),n.push(i)}return t},_setCfgProperty:function(e){var t=this._cfg;e.set("parent",this),e.set("canvas",t.canvas),t.timeline&&e.set("timeline",t.timeline)},contain:function(e){return this.get("children").indexOf(e)>-1},getChildByIndex:function(e){return this.get("children")[e]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var e=this.get("children").length-1;return this.getChildByIndex(e)},getBBox:function(){var e=1/0,t=-1/0,n=1/0,i=-1/0,a=this.get("children");a.length>0?r.each(a,(function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var a=r.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],c=[a.maxX,a.minY,1],l=[a.maxX,a.maxY,1];r.apply(o),r.apply(s),r.apply(c),r.apply(l);var u=Math.min(o[0],s[0],c[0],l[0]),h=Math.max(o[0],s[0],c[0],l[0]),f=Math.min(o[1],s[1],c[1],l[1]),d=Math.max(o[1],s[1],c[1],l[1]);u<e&&(e=u),h>t&&(t=h),f<n&&(n=f),d>i&&(i=d)}})):(e=0,t=0,n=0,i=0);var o={minX:e,minY:n,maxX:t,maxY:i};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var e,t=this.get("children");// 稳定排序
return r.each(t,(function(e,t){return e[s]=t,e})),t.sort((e=function(e,t){return e.get("zIndex")-t.get("zIndex")},function(t,n){var r=e(t,n);return 0===r?t[s]-n[s]:r})),this},findById:function(e){return this.find((function(t){return t.get("id")===e}))},
/**
   * 根据查找函数查找分组或者图形
   * @param  {Function} fn 匹配函数
   * @return {Canvas.Base} 分组或者图形
   */
find:function(e){if(r.isString(e))return this.findById(e);var t=this.get("children"),n=null;return r.each(t,(function(t){if(e(t)?n=t:t.find&&(n=t.find(e)),n)return!1})),n},
/**
   * @param  {Function} fn filter mathod
   * @return {Array} all the matching shapes and groups
   */
findAll:function(e){var t=this.get("children"),n=[],i=[];return r.each(t,(function(t){e(t)&&n.push(t),t.findAllBy&&(i=t.findAllBy(e),n=n.concat(i))})),n},
/**
   * @Deprecated
   * @param  {Function} fn filter method
   * @return {Object} found shape or group
   */
findBy:function(e){var t=this.get("children"),n=null;return r.each(t,(function(t){if(e(t)?n=t:t.findBy&&(n=t.findBy(e)),n)return!1})),n},
/**
   * @Deprecated
   * @param  {Function} fn filter mathod
   * @return {Array} all the matching shapes and groups
   */
findAllBy:function(e){var t=this.get("children"),n=[],i=[];return r.each(t,(function(t){e(t)&&n.push(t),t.findAllBy&&(i=t.findAllBy(e),n=n.concat(i))})),n},getShape:function(e,t){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[e,t,1];i.invert(o,r.get("canvas")),// 已经在外面转换
i.isPointInPath(o[0],o[1])&&(n=l(a,e,t))}else n=l(a,e,t);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,t=0;t<e.length;t++)e[t].clearTotalMatrix()}},clear:function(e){if(!this.get("destroyed")){for(var t=this._cfg.children,n=t.length-1;n>=0;n--)t[n].remove(!0,e);return this._cfg.children=[],this}},destroy:function(){this.get("destroyed")||(this.clear(),u.superclass.destroy.call(this))},clone:function(){var e=this,t=e._cfg.children,n=e._attrs,i={};r.each(n,(function(e,t){i[t]="matrix"===t?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}(n[t]):n[t]}));var a=new u({attrs:i,canvas:e.get("canvas")});return r.each(t,(function(e){a.add(e.clone())})),// 对于一些在 cfg 中的特殊属性做 clone
r.each(c,(function(t){a._cfg[t]=e._cfg[t]})),a}}),e.exports=u},
/* 116 */
/***/function(e,t,n){var r=n(1),i=n(222),a=n(223),o=n(224),s=n(225),c=function(e){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},// 配置存放地
r.assign(this._cfg,this.getDefaultCfg(),e),// Element.CFG不合并，提升性能 合并默认配置，用户配置->继承默认配置->Element默认配置
this.initAttrs(this._cfg.attrs),// 初始化绘图属性
this._cfg.attrs={},this.initTransform(),// 初始化变换
this.init()};c.CFG={
/**
   * 唯一标示
   * @type {Number}
   */
id:null,
/**
   * Z轴的层叠关系，Z值越大离用户越近
   * @type {Number}
   */
zIndex:0,
/**
   * Canvas对象
   * @type: {Object}
   */
canvas:null,
/**
   * 父元素指针
   * @type {Object}
   */
parent:null,
/**
   * 用来设置当前对象是否能被捕捉
   * true 能
   * false 不能
   * 对象默认是都可以被捕捉的, 当capture为false时，group.getShape(x, y)方法无法获得该元素
   * 通过将不必要捕捉的元素的该属性设置成false, 来提高捕捉性能
   * @type {Boolean}
   **/
capture:!0,
/**
   * 画布的上下文
   * @type {Object}
   */
context:null,
/**
   * 是否显示
   * @type {Boolean}
   */
visible:!0,
/**
   * 是否被销毁
   * @type: {Boolean}
   */
destroyed:!1},r.augment(c,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},
/**
   * 获取默认的配置信息
   * @protected
   * @return {Object} 默认的属性
   */
getDefaultCfg:function(){return{}},set:function(e,t){return"zIndex"===e&&this._beforeSetZIndex&&this._beforeSetZIndex(t),"loading"===e&&this._beforeSetLoading&&this._beforeSetLoading(t),this._cfg[e]=t,this},
// deprecated
setSilent:function(e,t){this._cfg[e]=t},get:function(e){return this._cfg[e]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(e,t){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(t?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(e||void 0===e)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),// 移除所有的事件
this._cfg={destroyed:!0})},toFront:function(){var e=this._cfg,t=e.parent;if(t){var n=t._cfg.children,r=e.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),e.el=null)}},toBack:function(){var e=this._cfg,t=e.parent;if(t){var n=t._cfg.children,r=e.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(e){var t=this._cfg.parent;this._cfg.zIndex=e,r.isNil(t)||t.sort();var n=this._cfg.el;if(n){var i=t._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return e},_setAttrs:function(e){return this.attr(e),e},setZIndex:function(e){return this._cfg.zIndex=e,this._beforeSetZIndex(e)},clone:function(){return r.clone(this)},getBBox:function(){}}),e.exports=c},
/* 117 */
/***/function(e,t,n){var r=n(59),i=Array.prototype.slice,a=function(){};r.augment(a,{on:function(e,t,n){var i=this;if(!r.isFunction(t))throw new TypeError("listener should be a function");return i._cfg._events||(i._cfg._events={}),i._cfg._events[e]||(i._cfg._events[e]=[]),i._cfg._events[e].push({callback:t,one:n}),this},one:function(e,t){return this.on(e,t,!0),this},emit:function(e){if(!this.get("destroyed")&&this._cfg._events&&!r.isEmpty(this._cfg._events)){var t=this._cfg._events[e];if(!r.isEmpty(t))for(var n=arguments,a=i.call(n,1),o=t.length,s=0;s<o;)t[s]&&(t[s].callback.apply(this,a),t[s]&&t[s].one?(t.splice(s,1),o--):s++)}},trigger:function(){this.emit.apply(this,arguments)},off:function(e,t){var n=this._cfg._events;if(n&&!r.isEmpty(n)){if(0===arguments.length)return this._cfg._events={},this;if(n[e]){var i=function(e,t){for(var n=e.length;n--;)if(e[n].callback===t)return n;return-1}(n[e],t);i>=0&&n[e].splice(i,1),0===n[e].length&&delete n[e]}}},removeEvent:function(e){return void 0===e?this._cfg._events={}:delete this._cfg._events[e],this},_getEvents:function(){return this._cfg._events||{}}}),e.exports=a},
/* 118 */
/***/function(e,t,n){var r=n(1),i=r.vec2;function a(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function o(e,t,n,r,o,s,c,l,u){var h,f,d,p,g,m,v,y=.005,A=1/0,b=[c,l];for(g=0;g<1;g+=.05)d=[a(e,n,o,g),a(t,r,s,g)],(f=i.squaredDistance(b,d))<A&&(h=g,A=f);for(A=1/0,v=0;v<32&&!(y<1e-4);v++){var w=h-y,x=h+y;d=[a(e,n,o,w),a(t,r,s,w)],f=i.squaredDistance(b,d),w>=0&&f<A?(h=w,A=f):(p=[a(e,n,o,x),a(t,r,s,x)],m=i.squaredDistance(b,p),x<=1&&m<A?(h=x,A=m):y*=.5)}return u&&(u.x=a(e,n,o,h),u.y=a(t,r,s,h)),Math.sqrt(A)}e.exports={at:a,projectPoint:function(e,t,n,r,i,a,s,c){var l={};return o(e,t,n,r,i,a,s,c,l),l},pointDistance:o,extrema:function(e,t,n){var i=e+n-2*t;if(r.isNumberEqual(i,0))return[.5];var a=(e-t)/i;return a<=1&&a>=0?[a]:[]}}},
/* 119 */
/***/function(e,t){e.exports={xAt:function(e,t,n,r,i){return t*Math.cos(e)*Math.cos(i)-n*Math.sin(e)*Math.sin(i)+r},yAt:function(e,t,n,r,i){return t*Math.sin(e)*Math.cos(i)+n*Math.cos(e)*Math.sin(i)+r},xExtrema:function(e,t,n){return Math.atan(-n/t*Math.tan(e))},yExtrema:function(e,t,n){return Math.atan(n/(t*Math.tan(e)))}};
/***/},
/* 120 */
/***/function(e,t,n){var r=n(1),i=n(7),a=n(44),o=n(45);function s(e,t,n){return e+t*Math.cos(n)}function c(e,t,n){return e+t*Math.sin(n)}var l=function e(t){e.superclass.constructor.call(this,t)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.r,i=e.startAngle,o=e.endAngle,s=e.clockwise,c=this.getHitLineWidth()/2,l=a.box(t,n,r,i,o,s);return l.minX-=c,l.minY-=c,l.maxX+=c,l.maxY+=c,l},getStartTangent:function(){var e=this._attrs,t=e.x,n=e.y,r=e.startAngle,i=e.r,a=e.clockwise,o=Math.PI/180;a&&(o*=-1);var l=[],u=s(t,i,r+o),h=c(n,i,r+o),f=s(t,i,r),d=c(n,i,r);return l.push([u,h]),l.push([f,d]),l},getEndTangent:function(){var e=this._attrs,t=e.x,n=e.y,r=e.endAngle,i=e.r,a=e.clockwise,o=Math.PI/180,l=[];a&&(o*=-1);var u=s(t,i,r+o),h=c(n,i,r+o),f=s(t,i,r),d=c(n,i,r);return l.push([f,d]),l.push([u,h]),l},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,i=t.r,a=t.startAngle,o=t.endAngle,s=t.clockwise;(e=e||self.get("context")).beginPath(),e.arc(n,r,i,a,o,s)},afterPath:function(e){var t=this._attrs;if(e=e||this.get("context"),t.startArrow){var n=this.getStartTangent();o.addStartArrow(e,t,n[0][0],n[0][1],n[1][0],n[1][1])}if(t.endArrow){var r=this.getEndTangent();o.addEndArrow(e,t,r[0][0],r[0][1],r[1][0],r[1][1])}}}),e.exports=l},
/* 121 */
/***/function(e,t,n){var r=n(1),i=n(7),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.r,i=this.getHitLineWidth()/2+r;return{minX:t-i,minY:n-i,maxX:t+i,maxY:n+i}},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,i=t.r;e.beginPath(),e.arc(n,r,i,0,2*Math.PI,!1),e.closePath()}}),e.exports=a},
/* 122 */
/***/function(e,t,n){var r=n(1),i=n(7),a=function e(t){e.superclass.constructor.call(this,t)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.width,i=e.height,a=this.getHitLineWidth()/2;return{minX:t-a,minY:n-a,maxX:t+r+a,maxY:n+i+a}}}),e.exports=a},
/* 123 */
/***/function(e,t,n){var r=n(1),i=n(7),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.rx,i=e.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:t-o,minY:n-s,maxX:t+o,maxY:n+s}},createPath:function(e){var t=this._attrs,n=t.x,i=t.y,a=t.rx,o=t.ry;e=e||self.get("context");var s=a>o?a:o,c=a>o?1:a/o,l=a>o?o/a:1,u=[1,0,0,0,1,0,0,0,1];r.mat3.scale(u,u,[c,l]),r.mat3.translate(u,u,[n,i]),e.beginPath(),e.save(),e.transform(u[0],u[1],u[3],u[4],u[6],u[7]),e.arc(0,0,s,0,2*Math.PI),e.restore(),e.closePath()}}),e.exports=a},
/* 124 */
/***/function(e,t,n){var r=n(1),i=n(7),a=n(44),o=function e(t){e.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.rs,i=e.re,o=e.startAngle,s=e.endAngle,c=e.clockwise,l=this.getHitLineWidth(),u=a.box(t,n,r,o,s,c),h=a.box(t,n,i,o,s,c),f=l/2;return{minX:Math.min(u.minX,h.minX)-f,minY:Math.min(u.minY,h.minY)-f,maxX:Math.max(u.maxX,h.maxX)+f,maxY:Math.max(u.maxY,h.maxY)+f}},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,i=t.rs,a=t.re,o=t.startAngle,s=t.endAngle,c=t.clockwise,l={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},u={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(e=e||self.get("context")).beginPath(),e.moveTo(l.x,l.y),e.lineTo(u.x,u.y),e.arc(n,r,a,o,s,c),e.lineTo(h.x,h.y),e.arc(n,r,i,s,o,!c),e.closePath()}}),e.exports=o},
/* 125 */
/***/function(e,t,n){var r=n(1),i=n(7),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var e=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===e.img||this._setAttrImg();var t=e.x,n=e.y;return{minX:t,minY:n,maxX:t+e.width,maxY:n+e.height}},_beforeSetLoading:function(e){var t=this.get("canvas");return!1===e&&!0===this.get("toDraw")&&(this._cfg.loading=!1,t.draw()),e},_setAttrImg:function(){var e=this,t=e._attrs,n=t.img;if(!r.isString(n))return n instanceof Image?(t.width||e.attr("width",n.width),t.height||e.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(t.width||e.attr("width",Number(n.getAttribute("width"))),t.height||e.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(t.width||e.attr("width",n.width),t.height||e.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(e.get("destroyed"))return!1;e.attr("imgSrc",n),e.attr("img",i);var t=e.get("callback");t&&t.call(e),e.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",e.set("loading",!0)},drawInner:function(e){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(e),this._cfg.hasUpdate=!1)},_drawImage:function(e){var t=this._attrs,n=t.x,i=t.y,a=t.img,o=t.width,s=t.height,c=t.sx,l=t.sy,u=t.swidth,h=t.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(c)||r.isNil(l)||r.isNil(u)||r.isNil(h))return void e.drawImage(f,n,i,o,s);if(!(r.isNil(c)||r.isNil(l)||r.isNil(u)||r.isNil(h)))return void e.drawImage(f,c,l,u,h,n,i,o,s)}}}),e.exports=a},
/* 126 */
/***/function(e,t,n){var r=n(1),i=n(7),a=n(45),o=n(43),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var e=this._attrs,t=e.x1,n=e.y1,r=e.x2,i=e.y2,a=this.getHitLineWidth();return o.box(t,n,r,i,a)},createPath:function(e){var t=this._attrs,n=t.x1,r=t.y1,i=t.x2,o=t.y2;// 如果定义了箭头，并且是自定义箭头，线条相应缩进
if(t.startArrow&&t.startArrow.d){var s=a.getShortenOffset(n,r,i,o,t.startArrow.d);n+=s.dx,r+=s.dy}if(t.endArrow&&t.endArrow.d){var c=a.getShortenOffset(n,r,i,o,t.endArrow.d);i-=c.dx,o-=c.dy}(e=e||this.get("context")).beginPath(),e.moveTo(n,r),e.lineTo(i,o)},afterPath:function(e){var t=this._attrs,n=t.x1,r=t.y1,i=t.x2,o=t.y2;e=e||this.get("context"),t.startArrow&&a.addStartArrow(e,t,i,o,n,r),t.endArrow&&a.addEndArrow(e,t,n,r,i,o)},getPoint:function(e){var t=this._attrs;return{x:o.at(t.x1,t.x2,e),y:o.at(t.y1,t.y2,e)}}}),e.exports=s},
/* 127 */
/***/function(e,t,n){var r=n(1),i=n(7),a=n(46),o=n(31),s=n(45),c=n(82),l=n(80),u=function e(t){e.superclass.constructor.call(this,t)};u.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(u,i),r.augment(u,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(e){var t=this;if(r.isNil(e))return t.setSilent("segments",null),void t.setSilent("box",void 0);var n,i=o.parsePath(e),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var c=i.length,l=0;l<i.length;l++){var u=i[l];n=new a(u,n,l===c-1),s.push(n)}t.setSilent("segments",s),t.setSilent("tCache",null),t.setSilent("totalLength",null),t.setSilent("box",null)}},calculateBox:function(){var e=this.get("segments");if(!e)return null;var t=this.getHitLineWidth(),n=1/0,i=-1/0,a=1/0,o=-1/0;return r.each(e,(function(e){e.getBBox(t);var r=e.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<a&&(a=r.minY),r.maxY>o&&(o=r.maxY))})),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:i,maxY:o}},_setTcache:function(){var e,t,n,i,a=0,o=0,s=[],c=this._cfg.curve;c&&(r.each(c,(function(e,t){n=c[t+1],i=e.length,n&&(a+=l.len(e[i-2],e[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),this._cfg.totalLength=a,0!==a?(r.each(c,(function(r,u){n=c[u+1],i=r.length,n&&((e=[])[0]=o/a,t=l.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=t,e[1]=o/a,s.push(e))})),this._cfg.tCache=s):this._cfg.tCache=[])},getTotalLength:function(){var e=this.get("totalLength");return r.isNil(e)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):e},_calculateCurve:function(){var e=this._attrs.path;this._cfg.curve=c.pathTocurve(e)},getStartTangent:function(){var e,t,n,i,a=this.get("segments");if(a.length>1)if(e=a[0].endPoint,t=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([e.x-o[0],e.y-o[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getEndTangent:function(){var e,t,n,i,a=this.get("segments"),o=a.length;if(o>1)if(e=a[o-2].endPoint,t=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([t.x-s[0],t.y-s[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getPoint:function(e){var t,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,c=a[n+1];return{x:l.at(o[s-2],c[1],c[3],c[5],1-t),y:l.at(o[s-1],c[2],c[4],c[6],1-t)}},createPath:function(e){var t=this,n=t._attrs,i=t.get("segments");if(r.isArray(i)){var a=i.length;if(0!==a){if((e=e||t.get("context")).beginPath(),n.startArrow&&n.startArrow.d){
// 如果 startArrow 需要做偏移，为了保证 path 长度一定，需要向内缩进一定距离
// 如果直接修改 PathSegment 的 params 会导致画布每重绘一次线条便缩短一截
// 所以在绘制时计算要缩进的距离，直接绘制出来
var o=t.getStartTangent(),c=s.getShortenOffset(o[0][0],o[0][1],o[1][0],o[1][1],n.startArrow.d);i[0].shortenDraw(e,c.dx,c.dy)}else i[0].draw(e);for(var l=1;l<a-2;l++)i[l].draw(e);if(n.endArrow&&n.endArrow.d){
// 如果 endArrow 需要做偏移，跟 startArrow 一样处理
// 为了防止结尾为 'Z' 的 segment 缩短不起效，需要取最后两个 segment 特殊处理
var u=t.getEndTangent(),h=s.getShortenOffset(u[0][0],u[0][1],u[1][0],u[1][1],n.endArrow.d),f=i[a-1];"Z"===f.command.toUpperCase()?(i[a-2]&&i[a-2].shortenDraw(e,h.dx,h.dy),f.draw(e)):(a>2&&i[a-2].draw(e),f.shortenDraw(e,h.dx,h.dy))}else i[a-2]&&i[a-2].draw(e),i[a-1].draw(e)}}},afterPath:function(e){var t=this,n=t._attrs,i=t.get("segments"),a=n.path;if(e=e||t.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=t.getStartTangent();s.addStartArrow(e,n,o[0][0],o[0][1],o[1][0],o[1][1]);var c=t.getEndTangent();s.addEndArrow(e,n,c[0][0],c[0][1],c[1][0],c[1][1])}}}),e.exports=u},
/* 128 */
/***/function(e,t,n){var r=n(1),i=n(7),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this._attrs.points,t=this.getHitLineWidth();if(!e||0===e.length)return null;var n=1/0,i=1/0,a=-1/0,o=-1/0;r.each(e,(function(e){var t=e[0],r=e[1];t<n&&(n=t),t>a&&(a=t),r<i&&(i=r),r>o&&(o=r)}));var s=t/2;return{minX:n-s,minY:i-s,maxX:a+s,maxY:o+s}},createPath:function(e){var t=this._attrs.points;t.length<2||((e=e||this.get("context")).beginPath(),r.each(t,(function(t,n){0===n?e.moveTo(t[0],t[1]):e.lineTo(t[0],t[1])})),e.closePath())}}),e.exports=a},
/* 129 */
/***/function(e,t,n){var r=n(1),i=n(7),a=n(45),o=n(43),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,
// 缓存各点的t
getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var e=this._attrs,t=this.getHitLineWidth(),n=e.points;if(!n||0===n.length)return null;var i=1/0,a=1/0,o=-1/0,s=-1/0;r.each(n,(function(e){var t=e[0],n=e[1];t<i&&(i=t),t>o&&(o=t),n<a&&(a=n),n>s&&(s=n)}));var c=t/2;return{minX:i-c,minY:a-c,maxX:o+c,maxY:s+c}},_setTcache:function(){var e,t,n=this._attrs.points,i=0,a=0,s=[];n&&0!==n.length&&(r.each(n,(function(e,t){n[t+1]&&(i+=o.len(e[0],e[1],n[t+1][0],n[t+1][1]))})),i<=0||(r.each(n,(function(r,c){n[c+1]&&((e=[])[0]=a/i,t=o.len(r[0],r[1],n[c+1][0],n[c+1][1]),a+=t,e[1]=a/i,s.push(e))})),this.tCache=s))},createPath:function(e){var t,n=this._attrs,r=n.points;if(!(r.length<2)){var i=r.length-1,o=r[0][0],s=r[0][1],c=r[i][0],l=r[i][1];// 如果定义了箭头，并且是自定义箭头，线条相应缩进
if(n.startArrow&&n.startArrow.d){var u=a.getShortenOffset(r[0][0],r[0][1],r[1][0],r[1][1],n.startArrow.d);o+=u.dx,s+=u.dy}if(n.endArrow&&n.endArrow.d){var h=a.getShortenOffset(r[i-1][0],r[i-1][1],r[i][0],r[i][1],n.endArrow.d);c-=h.dx,l-=h.dy}for((e=e||this.get("context")).beginPath(),e.moveTo(o,s),t=1;t<i;t++)e.lineTo(r[t][0],r[t][1]);e.lineTo(c,l)}},getStartTangent:function(){var e=this.__attrs.points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},getEndTangent:function(){var e=this.__attrs.points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},afterPath:function(e){var t=this._attrs,n=t.points,r=n.length-1;e=e||this.get("context"),t.startArrow&&a.addStartArrow(e,t,n[1][0],n[1][1],n[0][0],n[0][1]),t.endArrow&&a.addEndArrow(e,t,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(e){var t,n,i=this._attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),r.each(a,(function(r,i){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(i[n][0],i[n+1][0],t),y:o.at(i[n][1],i[n+1][1],t)}}}),e.exports=s},
/* 130 */
/***/function(e,t,n){var r=n(1),i=n(31).parseRadius,a=n(7),o=function e(t){e.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,a),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.width,i=e.height,a=this.getHitLineWidth()/2;return{minX:t-a,minY:n-a,maxX:t+r+a,maxY:n+i+a}},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,a=t.width,o=t.height,s=t.radius;if((e=e||this.get("context")).beginPath(),0===s)
// 改成原生的rect方法
e.rect(n,r,a,o);else{var c=i(s);e.moveTo(n+c.r1,r),e.lineTo(n+a-c.r2,r),0!==c.r2&&e.arc(n+a-c.r2,r+c.r2,c.r2,-Math.PI/2,0),e.lineTo(n+a,r+o-c.r3),0!==c.r3&&e.arc(n+a-c.r3,r+o-c.r3,c.r3,0,Math.PI/2),e.lineTo(n+c.r4,r+o),0!==c.r4&&e.arc(n+c.r4,r+o-c.r4,c.r4,Math.PI/2,Math.PI),e.lineTo(n,r+c.r1),0!==c.r1&&e.arc(n+c.r1,r+c.r1,c.r1,Math.PI,1.5*Math.PI),e.closePath()}}}),e.exports=o},
/* 131 */
/***/function(e,t,n){var r=n(1),i=n(7),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var e=this._attrs.fontSize;e&&+e<12&&
// 小于 12 像素的文本进行 scale 处理
this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+e/12,+e/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){
// var self = this;
var e=this._attrs,t=e.fontSize,n=e.fontFamily,r=e.fontWeight,i=e.fontStyle,a=e.fontVariant;// self.attr('fontVariant');
// self.attr('font', [fontStyle, fontVariant, fontWeight, fontSize + 'px', fontFamily].join(' '));
e.font=[i,a,r,t+"px",n].join(" ")},_setAttrText:function(){var e=this._attrs,t=e.text,n=null;if(r.isString(t))if(-1!==t.indexOf("\n")){var i=(n=t.split("\n")).length;e.lineCount=i}else e.lineCount=1;e.textArr=n},_getTextHeight:function(){var e=this._attrs,t=e.lineCount,n=1*e.fontSize;return t>1?n*t+this._getSpaceingY()*(t-1):n},isHitBox:function(){return!1},calculateBox:function(){var e=this,t=e._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var r=t.x,i=t.y,a=e.measureText();// attrs.width
if(!a)
// 如果width不存在，四点共其实点
return{minX:r,minY:i,maxX:r,maxY:i};var o=e._getTextHeight(),s=t.textAlign,c=t.textBaseline,l=e.getHitLineWidth(),u={x:r,y:i-o};// attrs.height
s&&("end"===s||"right"===s?u.x-=a:"center"===s&&(u.x-=a/2)),c&&("top"===c?u.y+=o:"middle"===c&&(u.y+=o/2)),this.set("startPoint",u);var h=l/2;return{minX:u.x-h,minY:u.y-h,maxX:u.x+a+h,maxY:u.y+o+h}},_getSpaceingY:function(){var e=this._attrs,t=e.lineHeight,n=1*e.fontSize;return t?t-n:.14*n},drawInner:function(e){var t=this,n=t._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),e.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,c=n.y;if(e.beginPath(),t.hasStroke()){var l=n.strokeOpacity;r.isNil(l)||1===l||(e.globalAlpha=l),o?t._drawTextArr(e,!1):e.strokeText(a,s,c),e.globalAlpha=1}if(t.hasFill()){var u=n.fillOpacity;r.isNil(u)||1===u||(e.globalAlpha=u),o?t._drawTextArr(e,!0):e.fillText(a,s,c)}i.hasUpdate=!1}},_drawTextArr:function(e,t){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),c=this._attrs.x,l=this._attrs.y,u=this.getBBox(),h=u.maxY-u.minY;r.each(i,(function(r,i){n=l+i*(s+o)-h+o,// bottom;
"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),t?e.fillText(r,c,n):e.strokeText(r,c,n)}))},measureText:function(){var e,t=this._attrs,n=t.text,i=t.font,a=t.textArr,o=0;if(!r.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=i,a?r.each(a,(function(t){e=s.measureText(t).width,o<e&&(o=e),s.restore()})):(o=s.measureText(n).width,s.restore()),o}}}),e.exports=a},
/* 132 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=
// tpmt is two power minus ten times t scaled to [0,1]
function(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}
/***/},
/* 133 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
/* harmony import */var r=n(84);
/* harmony reexport (binding) */n.d(t,"interpolate",(function(){return r.a}));
/* harmony import */var i=n(138);
/* harmony reexport (binding) */n.d(t,"interpolateArray",(function(){return i.a}));
/* harmony import */var a=n(87);
/* harmony reexport (binding) */n.d(t,"interpolateBasis",(function(){return a.b}));
/* harmony import */var o=n(136);
/* harmony reexport (binding) */n.d(t,"interpolateBasisClosed",(function(){return o.a}));
/* harmony import */var s=n(139);
/* harmony reexport (binding) */n.d(t,"interpolateDate",(function(){return s.a}));
/* harmony import */var c=n(47);
/* harmony reexport (binding) */n.d(t,"interpolateNumber",(function(){return c.a}));
/* harmony import */var l=n(140);
/* harmony reexport (binding) */n.d(t,"interpolateObject",(function(){return l.a}));
/* harmony import */var u=n(243);
/* harmony reexport (binding) */n.d(t,"interpolateRound",(function(){return u.a}));
/* harmony import */var h=n(141);
/* harmony reexport (binding) */n.d(t,"interpolateString",(function(){return h.a}));
/* harmony import */var f=n(244);
/* harmony reexport (binding) */n.d(t,"interpolateTransformCss",(function(){return f.a})),
/* harmony reexport (binding) */n.d(t,"interpolateTransformSvg",(function(){return f.b}));
/* harmony import */var d=n(247);
/* harmony reexport (binding) */n.d(t,"interpolateZoom",(function(){return d.a}));
/* harmony import */var p=n(135);
/* harmony reexport (binding) */n.d(t,"interpolateRgb",(function(){return p.a})),
/* harmony reexport (binding) */n.d(t,"interpolateRgbBasis",(function(){return p.b})),
/* harmony reexport (binding) */n.d(t,"interpolateRgbBasisClosed",(function(){return p.c}));
/* harmony import */var g=n(248);
/* harmony reexport (binding) */n.d(t,"interpolateHsl",(function(){return g.a})),
/* harmony reexport (binding) */n.d(t,"interpolateHslLong",(function(){return g.b}));
/* harmony import */var m=n(249);
/* harmony reexport (binding) */n.d(t,"interpolateLab",(function(){return m.a}));
/* harmony import */var v=n(250);
/* harmony reexport (binding) */n.d(t,"interpolateHcl",(function(){return v.a})),
/* harmony reexport (binding) */n.d(t,"interpolateHclLong",(function(){return v.b}));
/* harmony import */var y=n(251);
/* harmony reexport (binding) */n.d(t,"interpolateCubehelix",(function(){return y.b})),
/* harmony reexport (binding) */n.d(t,"interpolateCubehelixLong",(function(){return y.a}));
/* harmony import */var A=n(252);
/* harmony reexport (binding) */n.d(t,"quantize",(function(){return A.a}))},
/* 134 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return r})),
/* harmony export (binding) */n.d(t,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},
/* 135 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return c})),
/* harmony export (binding) */n.d(t,"c",(function(){return l}));
/* harmony import */var r=n(19),i=n(87),a=n(136),o=n(32);
/* harmony import */function s(e){return function(t){var n,i,a=t.length,o=new Array(a),s=new Array(a),c=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(t[n]),o[n]=i.r||0,s[n]=i.g||0,c[n]=i.b||0;return o=e(o),s=e(s),c=e(c),i.opacity=1,function(e){return i.r=o(e),i.g=s(e),i.b=c(e),i+""}}}
/* harmony default export */t.a=function e(t){var n=Object(o.b)(t);function i(e,t){var i=n((e=Object(r.f)(e)).r,(t=Object(r.f)(t)).r),a=n(e.g,t.g),s=n(e.b,t.b),c=Object(o.a)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=s(t),e.opacity=c(t),e+""}}return i.gamma=e,i}(1);var c=s(i.b),l=s(a.a)},
/* 136 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(87);
/* harmony default export */t.a=function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t),a=e[(i+t-1)%t],o=e[i%t],s=e[(i+1)%t],c=e[(i+2)%t];return Object(r.a)((n-i/t)*t,a,o,s,c)}}},
/* 137 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return function(){return e}}},
/* 138 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(84);
/* harmony default export */t.a=function(e,t){var n,i=t?t.length:0,a=e?Math.min(i,e.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r.a)(e[n],t[n]);for(;n<i;++n)s[n]=t[n];return function(e){for(n=0;n<a;++n)s[n]=o[n](e);return s}}},
/* 139 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}},
/* 140 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(84);
/* harmony default export */t.a=function(e,t){var n,i={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=Object(r.a)(e[n],t[n]):a[n]=t[n];return function(e){for(n in i)a[n]=i[n](e);return a}}},
/* 141 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(47),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");
/* harmony default export */t.a=function(e,t){var
// scan index for next number in b
n,
// current match in a
o,
// current match in b
s,c=i.lastIndex=a.lastIndex=0,
// string preceding current number in b, if any
l=-1,
// index in s
u=[],
// string constants and placeholders
h=[];// number interpolators
// Coerce inputs to strings.
// Interpolate pairs of numbers in a & b.
for(e+="",t+="";(n=i.exec(e))&&(o=a.exec(t));)(s=o.index)>c&&(
// a string precedes the next number in b
s=t.slice(c,s),u[l]?u[l]+=s:u[++l]=s),(n=n[0])===(o=o[0])?
// numbers in a & b match
u[l]?u[l]+=o:u[++l]=o:(
// interpolate non-matching numbers
u[++l]=null,h.push({i:l,x:Object(r.a)(n,o)})),c=a.lastIndex;// Add remains of b.
// Special optimization for only a single match.
// Otherwise, interpolate each of the numbers and rejoin the string.
return c<t.length&&(s=t.slice(c),u[l]?u[l]+=s:u[++l]=s),u.length<2?h[0]?function(e){return function(t){return e(t)+""}}(h[0].x):function(e){return function(){return e}}(t):(t=h.length,function(e){for(var n,r=0;r<t;++r)u[(n=h[r]).i]=n.x(e);return u.join("")})}},
/* 142 */
/***/function(e,t,n){
/**
 * @fileOverview Default animation configuration for geoms
 * @author sima.zhang
 */
var r=n(0),i=n(328),a={appear:{duration:450,easing:"easeQuadOut"},
// 初始入场动画配置
update:{duration:450,easing:"easeQuadInOut"},
// 更新时发生变更的动画配置
enter:{duration:400,easing:"easeQuadInOut",delay:100},
// 更新时新增元素的入场动画配置
leave:{duration:350,easing:"easeQuadIn"}},o={line:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},path:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},area:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},edge:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}},interval:{appear:function(e){var t;return e.isPolar?(t=i.appear.zoomIn,(e.isTransposed||"theta"===e.type)&&(t=i.appear.fanIn)):t=e.isRect?e.isTransposed?i.appear.scaleInX:i.appear.scaleInY:i.appear.zoomIn,t},enter:function(e){return e.isRect||e.isTransposed||"theta"===e.type?i.enter.fadeIn:i.enter.zoomIn},leave:function(){return i.leave.fadeOut},update:function(e){if("theta"===e.type)return i.update.fanIn}},point:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},schema:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return i.appear.fadeIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(e){if(e.isPolar)return i.appear.fadeIn}},"axis-ticks":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(e){if(e.isPolar)return i.appear.fadeIn}},"axis-grid":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(e){if(e.isPolar)return i.appear.fadeIn}},"axis-grid-rect":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(){return i.leave.fadeIn}},labelLine:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}}};o.Action=i,o.defaultCfg=a,// 获取动画
o.getAnimation=function(e,t,n){var i=this[e];if(i){var a=i[n];if(r.isFunction(a))return a(t)}return!1},// 获取动画配置
o.getAnimateCfg=function(e,t){var n=a[t];return this[e]&&this[e].cfg&&this[e].cfg[t]?r.deepMix({},n,this[e].cfg[t]):n},// 注册动画
o.registerAnimation=function(e,t,n){this.Action[e]||(this.Action[e]={}),this.Action[e][t]=n},e.exports=o},
/* 143 */
/***/function(e,t,n){var r=n(3),i=n(10),a=n(266),o=n(275),s=n(286),c=n(289),l=n(293),u=n(50),h=n(302),f=n(306),d=n(312),p=n(316),g={
// collections
DOMUtil:a,DomUtil:a,MatrixUtil:u,PathUtil:f,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:c,mathUtil:l,matrixUtil:u,objectUtil:h,stringUtil:d,pathUtil:f,typeUtil:p,
// others
augment:n(66),clone:n(39),debounce:n(322),deepMix:n(27),each:r,extend:n(65),filter:n(88),group:n(160),groupBy:n(162),groupToMap:n(161),indexOf:n(323),isEmpty:n(61),isEqual:n(40),isEqualWith:n(324),map:n(325),mix:i,pick:n(326),throttle:n(327),toArray:n(29),toString:n(26),uniqueId:n(62)};r([a,o,s,c,l,u,h,f,d,p],(function(e){i(g,e)})),e.exports=g},
/* 144 */
/***/function(e,t,n){var r=n(145),i=n(6);e.exports=function(e,t){var n=r(t),a=n.length;if(i(e))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(t[s]!==e[s]||!(s in e))return!1}return!0}},
/* 145 */
/***/function(e,t,n){var r=n(3),i=n(13),a=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return r(e,(function(n,r){i(e)&&"prototype"===r||t.push(r)})),t};e.exports=a},
/* 146 */
/***/function(e,t,n){var r=n(15),i=Array.prototype.splice;e.exports=function(e,t){if(!r(e))return[];for(var n=e?t.length:0,a=n-1;n--;){var o=void 0,s=t[n];n!==a&&s===o||(o=s,i.call(e,s,1))}return e}},
/* 147 */
/***/function(e,t,n){var r=n(3),i=n(48);e.exports=function(e){var t=[];return r(e,(function(e){i(t,e)||t.push(e)})),t}},
/* 148 */
/***/function(e,t,n){var r=n(5),i=n(13),a=n(3);e.exports=function(e,t){if(r(e)){var n=e[0],o=void 0;o=i(t)?t(e[0]):e[0][t];var s=void 0;return a(e,(function(e){(s=i(t)?t(e):e[t])>o&&(n=e,o=s)})),n}}},
/* 149 */
/***/function(e,t){e.exports=parseInt;
/***/},
/* 150 */
/***/function(e,t){e.exports=function(e,t){return e.hasOwnProperty(t)};
/***/},
/* 151 */
/***/function(e,t,n){var r=n(3),i=n(13),a=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return r(e,(function(n,r){i(e)&&"prototype"===r||t.push(n)})),t};e.exports=a},
/* 152 */
/***/function(e,t,n){var r=n(153);e.exports=function(e,t,n,i,a){if(a)return[["M",+e+ +a,t],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,i-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-i],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",e,t],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=r,o}},
/* 153 */
/***/function(e,t){var n=/,?([a-z]),?/gi;e.exports=function(e){return e.join(",").replace(n,"$1")}},
/* 154 */
/***/function(e,t,n){var r=n(155),i=function e(t,n,r,i,a,o,s,c,l,u){
// for more information of where this math came from visit:
// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
r===i&&(r+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),d=[],p=void 0,g=void 0,m=void 0,v=void 0,y=void 0,A=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}};if(u)g=u[0],m=u[1],v=u[2],y=u[3];else{t=(p=A(t,n,-f)).x,n=p.y,c=(p=A(c,l,-f)).x,l=p.y,t===c&&n===l&&(
// 若弧的起始点和终点重叠则错开一点
c+=1,l+=1);// const cos = Math.cos(Math.PI / 180 * angle);
// const sin = Math.sin(Math.PI / 180 * angle);
var b=(t-c)/2,w=(n-l)/2,x=b*b/(r*r)+w*w/(i*i);x>1&&(r*=x=Math.sqrt(x),i*=x);var C=r*r,_=i*i,I=(o===s?-1:1)*Math.sqrt(Math.abs((C*_-C*w*w-_*b*b)/(C*w*w+_*b*b)));v=I*r*w/i+(t+c)/2,y=I*-i*b/r+(n+l)/2,g=Math.asin(((n-y)/i).toFixed(9)),m=Math.asin(((l-y)/i).toFixed(9)),g=t<v?Math.PI-g:g,m=c<v?Math.PI-m:m,g<0&&(g=2*Math.PI+g),m<0&&(m=2*Math.PI+m),s&&g>m&&(g-=2*Math.PI),!s&&m>g&&(m-=2*Math.PI)}var E=m-g;if(Math.abs(E)>h){var k=m,S=c,B=l;m=g+h*(s&&m>g?1:-1),d=e(c=v+r*Math.cos(m),l=y+i*Math.sin(m),r,i,a,0,s,S,B,[m,k,v,y])}E=m-g;var M=Math.cos(g),T=Math.sin(g),O=Math.cos(m),D=Math.sin(m),P=Math.tan(E/4),L=4/3*r*P,Q=4/3*i*P,R=[t,n],j=[t+L*T,n-Q*M],N=[c+L*D,l-Q*O],F=[c,l];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],u)return[j,N,F].concat(d);for(var z=[],H=0,U=(d=[j,N,F].concat(d).join().split(",")).length;H<U;H++)z[H]=H%2?A(d[H-1],d[H],f).y:A(d[H],d[H+1],f).x;return z},a=function(e,t,n,r){return[e,t,n,r,n,r]},o=function(e,t,n,r,i,a){var o=1/3,s=2/3;return[o*e+s*n,o*t+s*r,o*i+s*n,o*a+s*r,i,a]};e.exports=function(e,t){var n=r(e),s=t&&r(t),c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=[],h=[],f="",d="",p=void 0,g=function(e,t,n){var r=void 0,s=void 0;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(i.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"===n||"S"===n?(
// In "S" case we have to take into account, if the previous command is C/S.
r=2*t.x-t.bx,// And reflect the previous
s=2*t.y-t.by):(
// or some else or nothing
r=t.x,s=t.y),e=["C",r,s].concat(e.slice(1));break;case"T":"Q"===n||"T"===n?(
// In "T" case we have to take into account, if the previous command is Q/T.
t.qx=2*t.x-t.qx,// And make a reflection similar
t.qy=2*t.y-t.qy):(
// or something else or nothing
t.qx=t.x,t.qy=t.y),e=["C"].concat(o(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(o(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(a(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(a(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(a(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(a(t.x,t.y,t.X,t.Y))}return e},m=function(e,t){if(e[t].length>7){e[t].shift();for(var r=e[t];r.length;)u[t]="A",// if created multiple C:s, their original seg is saved
s&&(h[t]="A"),// the same as above
e.splice(t++,0,["C"].concat(r.splice(0,6)));e.splice(t,1),p=Math.max(n.length,s&&s.length||0)}},v=function(e,t,r,i,a){e&&t&&"M"===e[a][0]&&"M"!==t[a][0]&&(t.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=e[a][1],r.y=e[a][2],p=Math.max(n.length,s&&s.length||0))};p=Math.max(n.length,s&&s.length||0);for(var y=0;y<p;y++){n[y]&&(f=n[y][0]),// save current path command
"C"!==f&&(
// C is not saved yet, because it may be result of conversion
u[y]=f,// Save current path command
y&&(d=u[y-1])),n[y]=g(n[y],c,d),// Previous path command is inputted to processPath
"A"!==u[y]&&"C"===f&&(u[y]="C"),// A is the only command
// which may produce multiple C:s
// so we have to make sure that C is also C in original path
m(n,y),// fixArc adds also the right amount of A:s to pcoms1
s&&(
// the same procedures is done to p2
s[y]&&(f=s[y][0]),"C"!==f&&(h[y]=f,y&&(d=h[y-1])),s[y]=g(s[y],l,d),"A"!==h[y]&&"C"===f&&(h[y]="C"),m(s,y)),v(n,s,c,l,y),v(s,n,l,c,y);var A=n[y],b=s&&s[y],w=A.length,x=s&&b.length;c.x=A[w-2],c.y=A[w-1],c.bx=parseFloat(A[w-4])||c.x,c.by=parseFloat(A[w-3])||c.y,l.bx=s&&(parseFloat(b[x-4])||l.x),l.by=s&&(parseFloat(b[x-3])||l.y),l.x=s&&b[x-2],l.y=s&&b[x-1]}return s?[n,s]:n}},
/* 155 */
/***/function(e,t,n){var r=n(156),i=n(157);function a(e,t,n,r,i){var a=[];if(null===i&&null===r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!==i){var o=Math.PI/180,s=e+n*Math.cos(-r*o),c=e+n*Math.cos(-i*o);a=[["M",s,t+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,c,t+n*Math.sin(-i*o)]]}else a=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a}e.exports=function(e){if(!(e=r(e))||!e.length)return[["M",0,0]];var t=[],n=0,o=0,s=0,c=0,l=0,u=void 0,h=void 0;"M"===e[0][0]&&(s=n=+e[0][1],c=o=+e[0][2],l++,t[0]=["M",n,o]);for(var f,d,p=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),g=l,m=e.length;g<m;g++){if(t.push(f=[]),(u=(d=e[g])[0])!==u.toUpperCase())switch(f[0]=u.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+n,f[7]=+d[7]+o;break;case"V":f[1]=+d[1]+o;break;case"H":f[1]=+d[1]+n;break;case"R":for(var v=2,y=(h=[n,o].concat(d.slice(1))).length;v<y;v++)h[v]=+h[v]+n,h[++v]=+h[v]+o;t.pop(),t=t.concat(i(h,p));break;case"O":t.pop(),(h=a(n,o,d[1],d[2])).push(h[0]),t=t.concat(h);break;case"U":t.pop(),t=t.concat(a(n,o,d[1],d[2],d[3])),f=["U"].concat(t[t.length-1].slice(-2));break;case"M":s=+d[1]+n,c=+d[2]+o;break;
// for lint
default:for(var A=1,b=d.length;A<b;A++)f[A]=+d[A]+(A%2?n:o)}else if("R"===u)h=[n,o].concat(d.slice(1)),t.pop(),t=t.concat(i(h,p)),f=["R"].concat(d.slice(-2));else if("O"===u)t.pop(),(h=a(n,o,d[1],d[2])).push(h[0]),t=t.concat(h);else if("U"===u)t.pop(),t=t.concat(a(n,o,d[1],d[2],d[3])),f=["U"].concat(t[t.length-1].slice(-2));else for(var w=0,x=d.length;w<x;w++)f[w]=d[w];if("O"!==(u=u.toUpperCase()))switch(f[0]){case"Z":n=+s,o=+c;break;case"H":n=f[1];break;case"V":o=f[1];break;case"M":s=f[f.length-2],c=f[f.length-1];break;
// for lint
default:n=f[f.length-2],o=f[f.length-1]}}return t}},
/* 156 */
/***/function(e,t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r="\t\n\v\f\r   ᠎             　\u2028\u2029",i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");// Parses given path string into an array of arrays of path segments
e.exports=function(e){if(!e)return null;if((void 0===e?"undefined":n(e))===n([]))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(e).replace(i,(function(e,n,i){var o=[],s=n.toLowerCase();if(i.replace(a,(function(e,t){t&&o.push(+t)})),"m"===s&&o.length>2&&(r.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&r.push([n,o[0]]),"r"===s)r.push([n].concat(o));else for(;o.length>=t[s]&&(r.push([n].concat(o.splice(0,t[s]))),t[s]););})),r}},
/* 157 */
/***/function(e,t){
// http://schepers.cc/getting-to-the-point
e.exports=function(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4===r?a[3]={x:+e[0],y:+e[1]}:i-2===r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};
/***/},
/* 158 */
/***/function(e,t,n){var r=n(26);e.exports=function(e){return r(e).toLowerCase()}},
/* 159 */
/***/function(e,t,n){var r=n(26);e.exports=function(e){return r(e).toUpperCase()}},
/* 160 */
/***/function(e,t,n){var r=n(161);e.exports=function(e,t){if(!t)return[e];var n=r(e,t),i=[];for(var a in n)i.push(n[a]);return i}},
/* 161 */
/***/function(e,t,n){var r=n(13),i=n(5),a=n(162);e.exports=function(e,t){if(!t)return{0:e};if(!r(t)){var n=i(t)?t:t.replace(/\s+/g,"").split("*");t=function(e){// 避免出现数字作为Key的情况，会进行按照数字的排序
for(var t="_",r=0,i=n.length;r<i;r++)t+=e[n[r]]&&e[n[r]].toString();return t}}return a(e,t)}},
/* 162 */
/***/function(e,t,n){var r=n(3),i=n(5),a=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(!t||!i(e))return e;var n={},o=null;return r(e,(function(e){o=t(e),a.call(n,o)?n[o].push(e):n[o]=[e]})),n}},
/* 163 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview G2 图表的入口文件
 * @author dxq613@gmail.com
 */var i=n(0),a=n(329),o=n(18).Canvas,s=i.DomUtil,c=n(8),l=n(414),u=n(200),h=n(202),f=n(201),d=n(203),p="auto";function g(e,t){return i.isEqualWith(e,t,(function(e,t){return e===t}))}
/**
 * 图表的入口
 * @class Chart
 */var m=function(e){var t,n;function m(){return e.apply(this,arguments)||this}n=e,(t=m).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var v=m.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */return v.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix(t,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:c.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:c.renderer,
// renderer: 'svg',
views:[]})},v.init=function(){var t=this,n=t.get("viewTheme");t._initCanvas(),t._initPlot(),t._initEvents(),e.prototype.init.call(this);var r=new u.Tooltip({chart:t,viewTheme:n,options:{}});t.set("tooltipController",r);var i=new u.Legend({chart:t,viewTheme:n});t.set("legendController",i),t.set("_id","chart"),// 防止同用户设定的 id 同名
t.emit("afterinit")},v._isAutoPadding=function(){var e=this.get("padding");return i.isArray(e)?e.includes(p):e===p},v._getAutoPadding=function(){for(var e=this.get("padding"),t=this.get("frontPlot").getBBox(),n=this.get("backPlot"),r=f(n,d(this.get("plotRange"))),a=h(t,r),o=[0-a.minY,// 上面超出的部分
a.maxX-this.get("width"),// 右边超出的部分
a.maxY-this.get("height"),// 下边超出的部分
0-a.minX],s=i.toAllPadding(e),c=0// 图例在最前面的一层
;c<s.length;c++)if(s[c]===p){var l=Math.max(0,o[c]);s[c]=l+this.get("autoPaddingAppend")}return s}// 初始化画布
,v._initCanvas=function(){var e=this.get("container"),t=this.get("id");// 如果未设置 container 使用 ID, 兼容 2.x 版本
!e&&t&&(e=t,this.set("container",t));var n=this.get("width"),r=this.get("height");if(i.isString(e)){if(!(e=document.getElementById(e)))throw new Error("Please specify the container for the chart!");this.set("container",e)}var a=s.createDom('<div style="position:relative;"></div>');e.appendChild(a),this.set("wrapperEl",a),this.get("forceFit")&&(n=s.getWidth(e,n),this.set("width",n));var c=this.get("renderer"),l=new o({containerDOM:a,width:n,height:r,
// NOTICE: 有问题找青湳
pixelRatio:"svg"===c?1:this.get("pixelRatio"),renderer:c});this.set("canvas",l)}// 初始化绘图区间
,v._initPlot=function(){var e=this;e._initPlotBack();// 最底层的是背景相关的 group
var t=e.get("canvas"),n=t.addGroup({zIndex:1}),r=t.addGroup({zIndex:0}),i=t.addGroup({zIndex:3});// 图表前面的容器
e.set("backPlot",n),e.set("middlePlot",r),e.set("frontPlot",i)}// 初始化背景
,v._initPlotBack=function(){var e=this,t=e.get("canvas"),n=e.get("viewTheme"),r=t.addGroup(l,{padding:this.get("padding"),plotBackground:i.mix({},n.plotBackground,e.get("plotBackground")),background:i.mix({},n.background,e.get("background"))});e.set("plot",r),e.set("plotRange",r.get("plotRange"))},v._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",i.wrapBehavior(this,"_initForceFitEvent"))},v._initForceFitEvent=function(){var e=setTimeout(i.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",e)}// 绘制图例
,v._renderLegends=function(){var e=this.get("options").legends;if(i.isNil(e)||!1!==e){
// 没有关闭图例
var t=this.get("legendController");if(t.options=e||{},t.plotRange=this.get("plotRange"),e&&e.custom)
// 用户自定义图例
t.addCustomLegend();else{var n=this.getAllGeoms(),r=[];i.each(n,(function(e){var n=e.get("view"),a=e.getAttrsForLegend();i.each(a,(function(a){var o=a.type,s=a.getScale(o);if(s.field&&"identity"!==s.type&&!function(e,t){var n=!1;return i.each(e,(function(e){var r=[].concat(e.values),i=[].concat(t.values);e.type!==t.type||e.field!==t.field||r.sort().toString()!==i.sort().toString()||(n=!0)})),n}(r,s)){r.push(s);var c=n.getFilteredOutValues(s.field);t.addLegend(s,a,e,c)}}))}));// 双轴的情况
var a=this.getYScales();0===r.length&&a.length>1&&t.addMixedLegend(a,n)}t.alignLegends()}}// 绘制 tooltip
,v._renderTooltips=function(){var e=this.get("options");if(i.isNil(e.tooltip)||!1!==e.tooltip){
// 用户没有关闭 tooltip
var t=this.get("tooltipController");t.options=e.tooltip||{},t.renderTooltip()}}
/**
   * 获取所有的几何标记
   * @return {Array} 所有的几何标记
   */,v.getAllGeoms=function(){var e=[];e=e.concat(this.get("geoms"));var t=this.get("views");return i.each(t,(function(t){e=e.concat(t.get("geoms"))})),e}
/**
   * 自适应宽度
   * @chainable
   * @return {Chart} 图表对象
   */,v.forceFit=function(){var e=this;if(e&&!e.destroyed){var t=e.get("container"),n=e.get("width"),r=s.getWidth(t,n);if(0!==r&&r!==n){var i=e.get("height");e.changeSize(r,i)}return e}},v.resetPlot=function(){var e=this.get("plot"),t=this.get("padding");g(t,e.get("padding"))||(
// 重置 padding，仅当padding 发生更改
e.set("padding",t),e.repaint())}
/**
   * 改变大小
   * @param  {Number} width  图表宽度
   * @param  {Number} height 图表高度
   * @return {Chart} 图表对象
   */,v.changeSize=function(e,t){var n=this;n.get("canvas").changeSize(e,t);var r=this.get("plot");return n.set("width",e),n.set("height",t),// change size 时重新计算边框
r.repaint(),// 保持边框不变，防止自动 padding 时绘制多遍
this.set("keepPadding",!0),n.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),n}
/**
   * 改变宽度
   * @param  {Number} width  图表宽度
   * @return {Chart} 图表对象
   */,v.changeWidth=function(e){return this.changeSize(e,this.get("height"))}
/**
   * 改变宽度
   * @param  {Number} height  图表高度
   * @return {Chart} 图表对象
   */,v.changeHeight=function(e){return this.changeSize(this.get("width"),e)}
/**
   * 创建一个视图
   * @param  {Object} cfg 视图的配置项
   * @return {View} 视图对象
   */,v.view=function(e){(e=e||{}).theme=this.get("theme"),e.parent=this,e.backPlot=this.get("backPlot"),e.middlePlot=this.get("middlePlot"),e.frontPlot=this.get("frontPlot"),e.canvas=this.get("canvas"),i.isNil(e.animate)&&(e.animate=this.get("animate")),e.options=i.mix({},this._getSharedOptions(),e.options);var t=new a(e);return t.set("_id","view"+this.get("views").length),// 标识 ID，防止同用户设定的 id 重名
this.get("views").push(t),this.emit("addview",{view:t}),t}// isShapeInView() {
//   return true;
// }
,v.removeView=function(e){var t=this.get("views");i.Array.remove(t,e),e.destroy()},v._getSharedOptions=function(){var e=this.get("options"),t={};return i.each(["scales","coord","axes"],(function(n){t[n]=i.cloneDeep(e[n])})),t}
/**
   * @override
   * 当前chart 的范围
   */,v.getViewRegion=function(){var e=this.get("plotRange");return{start:e.bl,end:e.tr}}
/**
   * 设置图例配置信息
   * @param  {String|Object} field 字段名
   * @param  {Object} [cfg] 图例的配置项
   * @return {Chart} 当前的图表对象
   */,v.legend=function(e,t){var n=this.get("options");n.legends||(n.legends={});var r={};return!1===e?n.legends=!1:i.isObject(e)?r=e:i.isString(e)?r[e]=t:r=t,i.mix(n.legends,r),this}
/**
   * 设置提示信息
   * @param  {String|Object} visible 是否可见
   * @param  {Object} [cfg] 提示信息的配置项
   * @return {Chart} 当前的图表对象
   */,v.tooltip=function(e,t){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===e?n.tooltip=!1:i.isObject(e)?i.mix(n.tooltip,e):i.mix(n.tooltip,t),this}
/**
   * 清空图表
   * @return {Chart} 当前的图表对象
   */,v.clear=function(){this.emit("beforeclear");for(var t=this.get("views");t.length>0;)t.shift().destroy();e.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},v.clearInner=function(){var t=this.get("views");i.each(t,(function(e){e.clearInner()}));var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var r=this.get("legendController");r&&r.clear()}e.prototype.clearInner.call(this)}// chart 除了view 上绘制的组件外，还会绘制图例和 tooltip
,v.drawComponents=function(){e.prototype.drawComponents.call(this),// 一般是点击图例时，仅仅隐藏某些选项，而不销毁图例
this.get("keepLegend")||this._renderLegends()}
/**
   * 绘制图表
   * @override
   */,v.render=function(){var t=this;// 需要自动计算边框，则重新设置
if(!t.get("keepPadding")&&t._isAutoPadding()){t.beforeRender(),// 初始化各个 view 和 绘制
t.drawComponents();var n=t._getAutoPadding(),r=t.get("plot");// 在计算出来的边框不一致的情况，重新改变边框
g(r.get("padding"),n)||(r.set("padding",n),r.repaint())}var a=t.get("middlePlot");if(t.get("limitInPlot")&&!a.attr("clip")){var o=i.getClipByRange(t.get("plotRange"));// TODO Polar coord
a.attr("clip",o)}e.prototype.render.call(this),t._renderTooltips()},v.repaint=function(){
// 重绘时需要判定当前的 padding 是否发生过改变，如果发生过改变进行调整
// 需要判定是否使用了自动 padding
this.get("keepPadding")||this.resetPlot(),e.prototype.repaint.call(this)}
/**
   * @override
   * 显示或者隐藏
   */,v.changeVisible=function(e){var t=e?"":"none";this.get("wrapperEl").style.display=t}
/**
   * 返回图表的 dataUrl 用于生成图片
   * @return {String} dataUrl 路径
   */,v.toDataURL=function(){var e=this.get("canvas"),t=this.get("renderer"),n=e.get("el"),r="";if("svg"===t){var i=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(i,o.documentElement);var s=(new XMLSerializer).serializeToString(o);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===t&&(r=n.toDataURL("image/png"));return r}
/**
   * 图表导出功能
   * @param  {String} [name] 图片的名称，默认为 chart(.png|.svg)
   */,v.downloadImage=function(e){var t=this,n=document.createElement("a"),r=t.get("renderer"),i=(e||"chart")+("svg"===r?".svg":".png");t.get("canvas").get("timeline").stopAllAnimations(),setTimeout((function(){var e=t.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){for(var a=e.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),c=s.length,l=new Uint8Array(c);c--;)l[c]=s.charCodeAt(c);var u=new Blob([l],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(u,i):n.addEventListener("click",(function(){n.download=i,n.href=window.URL.createObjectURL(u)}))}else n.addEventListener("click",(function(){n.download=i,n.href=e}));var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),n.dispatchEvent(h)}),16)}
/**
   * 根据坐标点显示对应的 tooltip
   * @param  {Object} point 画布上的点
   * @return {Chart}       返回 chart 实例
   */,v.showTooltip=function(e){var t=this.getViewsByPoint(e);return t.length&&this.get("tooltipController").showTooltip(e,t),this}
/**
   * 将tooltip 锁定到当前位置不能移动
   * @return {Chart}       返回 chart 实例
   */,v.lockTooltip=function(){return this.get("tooltipController").lockTooltip(),this}
/**
   * 将tooltip 锁定解除
   * @return {Chart}       返回 chart 实例
   */,v.unlockTooltip=function(){return this.get("tooltipController").unlockTooltip(),this}
/**
   * 隐藏 tooltip
  * @return {Chart}       返回 chart 实例
   */,v.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this}
/**
   * 根据传入的画布坐标，获取该处的 tooltip 上的记录信息
   * @param  {Object} point 画布坐标点
   * @return {Array}       返回结果
   */,v.getTooltipItems=function(e){var t=this.getViewsByPoint(e),n=[];return i.each(t,(function(t){var r=t.get("geoms");i.each(r,(function(t){var r=t.get("dataArray"),a=[];i.each(r,(function(n){var r=t.findPoint(e,n);if(r){var i=t.getTipItems(r);a=a.concat(i)}})),n=n.concat(a)}))})),n}
/**
   * @override
   * 销毁图表
   */,v.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var t=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),e.prototype.destroy.call(this),t.destroy(),window.removeEventListener("resize",i.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},m}(a);e.exports=m},
/* 164 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview Chart、View、Geometry 的基类
 * @author dxq613@gmail.com
 */var i=n(90),a=n(0),o=function(e){var t,n;n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;function o(t){var n,r={visible:!0},i=(n=e.call(this)||this).getDefaultCfg();return n._attrs=r,a.assign(r,i,t),n}return i.getDefaultCfg=function(){return{}},i.get=function(e){return this._attrs[e]},i.set=function(e,t){this._attrs[e]=t},i.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},i.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))}
/**
   * @protected
   * @param {Boolean} visible 是否可见
   * 显示、隐藏
   */,i.changeVisible=function(){},i.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},o}(i);e.exports=o},
/* 165 */
/***/function(e,t,n){
/**
 * @fileOverview 颜色计算的辅助方法
 * @author dxq613@gmail.com
 */
var r=n(11),i=n(12),a=n(3),o=/rgba?\(([\s.,0-9]+)\)/;// 获取颜色之间的插值
function s(e,t,n,r){return e[r]+(t[r]-e[r])*n}// 数组转换成颜色
function c(e){return"#"+l(e[0])+l(e[1])+l(e[2])}// 将数值从 0-255 转换成16进制字符串
function l(e){return 1===(e=(e=Math.round(e)).toString(16)).length&&(e="0"+e),e}// rgb 颜色转换成数组
function u(e){var t=[];return t.push(parseInt(e.substr(1,2),16)),t.push(parseInt(e.substr(3,2),16)),t.push(parseInt(e.substr(5,2),16)),t}var h={},f=null,d={
/**
   * 将颜色转换到 rgb 的格式
   * @param  {String} color 颜色
   * @return {String} 将颜色转换到 '#ffffff' 的格式
   */
toRGB:function(e){
// 如果已经是 rgb的格式
return"#"===e[0]&&7===e.length?e:(f||(
// 防止防止在页头报错
(t=document.createElement("i")).title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),f=t),h[e]?n=h[e]:(f.style.color=e,n=document.defaultView.getComputedStyle(f,"").getPropertyValue("color"),n=c(o.exec(n)[1].split(/\s*,\s*/)),h[e]=n),n);// 创建辅助 tag 取颜色
var t,n},rgb2arr:u,
/**
   * 获取渐变函数
   * @param  {Array} colors 多个颜色
   * @return {String} 颜色值
   */
gradient:function(e){var t=[];return i(e)&&(e=e.split("-")),a(e,(function(e){-1===e.indexOf("#")&&(e=d.toRGB(e)),t.push(u(e))})),function(e){return function(e,t){(isNaN(t)||!r(t)||t<0)&&(t=0),t>1&&(t=1);var n=e.length-1,i=Math.floor(n*t),a=n*t-i,o=e[i],l=i===n?o:e[i+1];return c([s(o,l,a,0),s(o,l,a,1),s(o,l,a,2)])}(t,e)}}};e.exports=d},
/* 166 */
/***/function(e,t,n){var r=n(3),i={values:n(89)};// 默认的y的值
e.exports={
/**
   * 对应的维度是否可以调整
   * @protected
   * @param  {String}  dimName 可以调整的维度 x,y
   * @return {Boolean} 是否可以调整
   */
isAdjust:function(e){return this.adjustNames.indexOf(e)>=0},
/**
   * @protected
   * 获取可调整度量对应的值
   * @param  {Frame} mergeData 数据
   * @return {Object} 值的映射
   */
_getDimValues:function(e){var t=this,n={},a=[];if(t.xField&&t.isAdjust("x")&&a.push(t.xField),t.yField&&t.isAdjust("y")&&a.push(t.yField),r(a,(function(t){var r=i.values(e,t);r.sort((function(e,t){return e-t})),n[t]=r})),!t.yField&&t.isAdjust("y")){
// 只有一维的情况下,同时调整y
var o=[0,1];// 默认分布在y轴的 0.1 与 0.2 之间
n.y=o}return n},adjustData:function(e,t){var n=this,i=n._getDimValues(t);r(e,(function(t,a){
// 遍历所有数据集合
r(i,(function(r,i){
// 根据不同的度量分别调整位置
n.adjustDim(i,r,t,e.length,a)}))}))},getAdjustRange:function(e,t,n){var r,i,a=n.indexOf(t),o=n.length;return!this.yField&&this.isAdjust("y")?(r=0,i=1):o>1?(r=0===a?n[0]:n[a-1],i=a===o-1?n[o-1]:n[a+1],0!==a?r+=(t-r)/2:r-=(i-t)/2,a!==o-1?i-=(i-t)/2:i+=(t-n[o-2])/2):(r=0===t?0:t-.5,i=0===t?1:t+.5),{pre:r,next:i}},
/**
   * 对数据进行分组
   * @param  {Array} data 数据
   * @param  {String} dim 分组的字段
   * @return {Object}  分组的键值对映射
   */
groupData:function(e,t){var n={};return r(e,(function(e){var r=e[t];void 0===r&&(r=e[t]=0),n[r]||(n[r]=[]),n[r].push(e)})),n}}},
/* 167 */
/***/function(e,t,n){
/**
 * @fileOverview Theme entry
 * @author sima.zhang
 */
var r={default:n(168),dark:n(342)};e.exports=r},
/* 168 */
/***/function(e,t){var n,r,i="#1890FF",a='BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',o={defaultColor:i,
// 默认主题色
plotCfg:{padding:[20,20,95,80]},fontFamily:a,defaultLegendPosition:"bottom",
// 默认图例的展示位置
colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{
// zIndex: 1, // 默认上下方向的坐标轴位于左右坐标轴的上方
position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:a},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:a}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:a}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:a}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:a}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:a}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:a}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:a}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:a}},
// 在theta坐标系下的饼图文本内部的样式
thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,
// layout 为 vertical 时各个图例项的间距
width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:a},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:a},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:a},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:a},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},
// 定义 html 渲染图例的样式
html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:a,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={listStyleType:"none",cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),
// 不能滑动的连续图例样式
gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:a},
// 图例项文本的样式
lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],
// 图例跟四个边的坐标轴、绘图区域的间距
legendMargin:24},tooltip:(r={useHtml:!0,crosshairs:!1,offset:15,marker:{symbol:"circle",activeSymbol:"circle"}},r["g2-tooltip"]={position:"absolute",visibility:"hidden",
// @2018-07-25 by blue.lb 这里去掉浮动，火狐上存在样式错位
// whiteSpace: 'nowrap',
zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={listStyleType:"none",marginBottom:"4px",padding:0,marginTop:0,marginLeft:0,marginRight:0},r["g2-tooltip-marker"]={width:"5px",height:"5px",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r),tooltipMarker:{symbol:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},
// 提示信息在折线图、区域图上形成点的样式
tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},
// tooltip 辅助背景框样式
tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:i,radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:i,radius:3},interval:{lineWidth:0,fill:i,fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:i,fillOpacity:.6},polygon:{lineWidth:0,fill:i,fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},line:{stroke:i,lineWidth:2,fill:null},edge:{stroke:i,lineWidth:1,fill:null},schema:{stroke:i,lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:a,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:a}},region:{style:{lineWidth:0,
// 辅助框的边框宽度
fill:"#000",
// 辅助框填充的颜色
fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};
/**
 * @fileOverview G2 3.0 default theme
 * @author sima.zhang
 */e.exports=o},
/* 169 */
/***/function(e,t,n){e.exports={isFunction:n(13),isObject:n(22),isBoolean:n(60),isNil:n(6),isString:n(12),isArray:n(5),isNumber:n(11),isEmpty:n(61),
// isBlank
uniqueId:n(62),clone:n(39),deepMix:n(27),assign:n(10),
// simpleMix
merge:n(27),
// mix
upperFirst:n(64),
// ucfirst
each:n(3),isEqual:n(40),toArray:n(29),extend:n(65),augment:n(66),remove:n(67),isNumberEqual:n(30),toRadian:n(68),toDegree:n(69),mod:n(70),clamp:n(41),createDom:n(71),modifyCSS:n(72),requestAnimationFrame:n(73),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(42),vec2:n(75),vec3:n(76),transform:n(77)};
/***/},
/* 170 */
/***/function(e,t,n){var r=n(2),i=function(e,t,n,r){this.type=e,// 事件类型
this.target=null,// 目标
this.currentTarget=null,// 当前目标
this.bubbles=n,// 冒泡
this.cancelable=r,// 是否能够阻止
this.timeStamp=(new Date).getTime(),// 时间戳
this.defaultPrevented=!1,// 阻止默认
this.propagationStopped=!1,// 阻止冒泡
this.removed=!1,// 是否被移除
this.event=t};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),e.exports=i},
/* 171 */
/***/function(e,t,n){var r=n(2),i=n(172),a=n(349),o={},s="_INDEX";function c(e,t,n){for(var r,i=e.length-1;i>=0;i--){var a=e[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(t,n):a.isHit(t,n)&&(r=a)),r)break}return r}var l=function e(t){e.superclass.constructor.call(this,t),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};function u(e){if(!e._cfg&&e!==l){var t=e.superclass.constructor;t&&!t._cfg&&u(t),e._cfg={},r.merge(e._cfg,t._cfg),r.merge(e._cfg,e.CFG)}}r.extend(l,i),r.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return u(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(e,t){var n=this.get("canvas");t=t||{};var i=o[e];if(i||(i=r.upperFirst(e),o[e]=i),t.attrs&&n){var s=t.attrs;if("text"===e){
// 临时解决
var c=n.get("fontFamily");c&&(s.fontFamily=s.fontFamily?s.fontFamily:c)}}t.canvas=n,t.type=e;var l=new a[i](t);return this.add(l),l},
/** 添加图组
   * @param  {Function|Object|undefined} param 图组类
   * @param  {Object} cfg 配置项
   * @return {Object} rst 图组
   */
addGroup:function(e,t){var n,i=this.get("canvas");if(t=r.merge({},t),r.isFunction(e))t?(t.canvas=i,t.parent=this,n=new e(t)):n=new e({canvas:i,parent:this}),this.add(n);else if(r.isObject(e))e.canvas=i,n=new l(e),this.add(n);else{if(void 0!==e)return!1;n=new l,this.add(n)}return n},
/** 绘制背景
   * @param  {Array} padding 内边距
   * @param  {Attrs} attrs 图形属性
   * @param  {Shape} backShape 背景图形
   * @return {Object} 背景层对象
   */
renderBack:function(e,t){var n=this.get("backShape"),i=this.getBBox();// const parent = this.get('parent'); // getParent
return r.merge(t,{x:i.minX-e[3],y:i.minY-e[0],width:i.width+e[1]+e[3],height:i.height+e[0]+e[2]}),n?n.attr(t):n=this.addShape("rect",{zIndex:-1,attrs:t}),this.set("backShape",n),this.sort(),n},removeChild:function(e,t){if(arguments.length>=2)this.contain(e)&&e.remove(t);else{if(1===arguments.length){if(!r.isBoolean(e))return this.contain(e)&&e.remove(!0),this;t=e}0===arguments.length&&(t=!0),l.superclass.remove.call(this,t)}return this},
/**
   * 向组中添加shape或者group
   * @param {Object} items 图形或者分组
   * @return {Object} group 本尊
   */
add:function(e){var t=this,n=t.get("children");if(r.isArray(e))r.each(e,(function(e){var n=e.get("parent");n&&n.removeChild(e,!1),t._setCfgProperty(e)})),t._cfg.children=n.concat(e);else{var i=e,a=i.get("parent");a&&a.removeChild(i,!1),t._setCfgProperty(i),n.push(i)}return t},_setCfgProperty:function(e){var t=this._cfg;e.set("parent",this),e.set("canvas",t.canvas),t.timeline&&e.set("timeline",t.timeline)},contain:function(e){return this.get("children").indexOf(e)>-1},getChildByIndex:function(e){return this.get("children")[e]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var e=this.get("children").length-1;return this.getChildByIndex(e)},getBBox:function(){var e=1/0,t=-1/0,n=1/0,i=-1/0,a=this.get("children");a.length>0?r.each(a,(function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var a=r.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],c=[a.maxX,a.minY,1],l=[a.maxX,a.maxY,1];r.apply(o),r.apply(s),r.apply(c),r.apply(l);var u=Math.min(o[0],s[0],c[0],l[0]),h=Math.max(o[0],s[0],c[0],l[0]),f=Math.min(o[1],s[1],c[1],l[1]),d=Math.max(o[1],s[1],c[1],l[1]);u<e&&(e=u),h>t&&(t=h),f<n&&(n=f),d>i&&(i=d)}})):(e=0,t=0,n=0,i=0);var o={minX:e,minY:n,maxX:t,maxY:i};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var e,t=this.get("children");// 稳定排序
return r.each(t,(function(e,t){return e[s]=t,e})),t.sort((e=function(e,t){return e.get("zIndex")-t.get("zIndex")},function(t,n){var r=e(t,n);return 0===r?t[s]-n[s]:r})),this},findById:function(e){return this.find((function(t){return t.get("id")===e}))},
/**
   * 根据查找函数查找分组或者图形
   * @param  {Function} fn 匹配函数
   * @return {Canvas.Base} 分组或者图形
   */
find:function(e){if(r.isString(e))return this.findById(e);var t=this.get("children"),n=null;return r.each(t,(function(t){if(e(t)?n=t:t.find&&(n=t.find(e)),n)return!1})),n},
/**
   * @param  {Function} fn filter mathod
   * @return {Array} all the matching shapes and groups
   */
findAll:function(e){var t=this.get("children"),n=[],i=[];return r.each(t,(function(t){e(t)&&n.push(t),t.findAllBy&&(i=t.findAllBy(e),n=n.concat(i))})),n},
/**
   * @Deprecated
   * @param  {Function} fn filter method
   * @return {Object} found shape or group
   */
findBy:function(e){var t=this.get("children"),n=null;return r.each(t,(function(t){if(e(t)?n=t:t.findBy&&(n=t.findBy(e)),n)return!1})),n},
/**
   * @Deprecated
   * @param  {Function} fn filter mathod
   * @return {Array} all the matching shapes and groups
   */
findAllBy:function(e){var t=this.get("children"),n=[],i=[];return r.each(t,(function(t){e(t)&&n.push(t),t.findAllBy&&(i=t.findAllBy(e),n=n.concat(i))})),n},getShape:function(e,t){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[e,t,1];i.invert(o,r.get("canvas")),// 已经在外面转换
i.isPointInPath(o[0],o[1])&&(n=c(a,e,t))}else n=c(a,e,t);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,t=0;t<e.length;t++)e[t].clearTotalMatrix()}},clear:function(e){for(var t=this._cfg.children,n=t.length-1;n>=0;n--)t[n].remove(!0,e);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var e=this._cfg.children,t=new l;return r.each(e,(function(e){t.add(e.clone())})),t}}),e.exports=l},
/* 172 */
/***/function(e,t,n){var r=n(2),i=n(346),a=n(347),o=n(348),s=n(90),c=function(e){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},// 配置存放地
r.assign(this._cfg,this.getDefaultCfg(),e),// Element.CFG不合并，提升性能 合并默认配置，用户配置->继承默认配置->Element默认配置
this.initAttrs(this._cfg.attrs),// 初始化绘图属性
this._cfg.attrs={},this.initTransform(),// 初始化变换
this.init()};c.CFG={
/**
   * 唯一标示
   * @type {Number}
   */
id:null,
/**
   * Z轴的层叠关系，Z值越大离用户越近
   * @type {Number}
   */
zIndex:0,
/**
   * Canvas对象
   * @type: {Object}
   */
canvas:null,
/**
   * 父元素指针
   * @type {Object}
   */
parent:null,
/**
   * 用来设置当前对象是否能被捕捉
   * true 能
   * false 不能
   * 对象默认是都可以被捕捉的, 当capture为false时，group.getShape(x, y)方法无法获得该元素
   * 通过将不必要捕捉的元素的该属性设置成false, 来提高捕捉性能
   * @type {Boolean}
   **/
capture:!0,
/**
   * 画布的上下文
   * @type {Object}
   */
context:null,
/**
   * 是否显示
   * @type {Boolean}
   */
visible:!0,
/**
   * 是否被销毁
   * @type: {Boolean}
   */
destroyed:!1},r.augment(c,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},
/**
   * 获取默认的配置信息
   * @protected
   * @return {Object} 默认的属性
   */
getDefaultCfg:function(){return{}},set:function(e,t){return"zIndex"===e&&this._beforeSetZIndex&&this._beforeSetZIndex(t),"loading"===e&&this._beforeSetLoading&&this._beforeSetLoading(t),this._cfg[e]=t,this},
// deprecated
setSilent:function(e,t){this._cfg[e]=t},get:function(e){return this._cfg[e]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(e,t){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(t?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(e||void 0===e)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),// 移除所有的事件
this._cfg={destroyed:!0})},toFront:function(){var e=this._cfg,t=e.parent;if(t){var n=t._cfg.children,r=e.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),e.el=null)}},toBack:function(){var e=this._cfg,t=e.parent;if(t){var n=t._cfg.children,r=e.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(e){var t=this._cfg.parent;this._cfg.zIndex=e,r.isNil(t)||t.sort();var n=this._cfg.el;if(n){var i=t._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return e},_setAttrs:function(e){return this.attr(e),e},setZIndex:function(e){return this._cfg.zIndex=e,this._beforeSetZIndex(e)},clone:function(){return r.clone(this)},getBBox:function(){}}),e.exports=c},
/* 173 */
/***/function(e,t,n){var r=n(2),i=r.vec2;function a(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function o(e,t,n,r,o,s,c,l,u){var h,f,d,p,g,m,v,y=.005,A=1/0,b=[c,l];for(g=0;g<1;g+=.05)d=[a(e,n,o,g),a(t,r,s,g)],(f=i.squaredDistance(b,d))<A&&(h=g,A=f);for(A=1/0,v=0;v<32&&!(y<1e-4);v++){var w=h-y,x=h+y;d=[a(e,n,o,w),a(t,r,s,w)],f=i.squaredDistance(b,d),w>=0&&f<A?(h=w,A=f):(p=[a(e,n,o,x),a(t,r,s,x)],m=i.squaredDistance(b,p),x<=1&&m<A?(h=x,A=m):y*=.5)}return u&&(u.x=a(e,n,o,h),u.y=a(t,r,s,h)),Math.sqrt(A)}e.exports={at:a,projectPoint:function(e,t,n,r,i,a,s,c){var l={};return o(e,t,n,r,i,a,s,c,l),l},pointDistance:o,extrema:function(e,t,n){var i=e+n-2*t;if(r.isNumberEqual(i,0))return[.5];var a=(e-t)/i;return a<=1&&a>=0?[a]:[]}}},
/* 174 */
/***/function(e,t){e.exports={xAt:function(e,t,n,r,i){return t*Math.cos(e)*Math.cos(i)-n*Math.sin(e)*Math.sin(i)+r},yAt:function(e,t,n,r,i){return t*Math.sin(e)*Math.cos(i)+n*Math.cos(e)*Math.sin(i)+r},xExtrema:function(e,t,n){return Math.atan(-n/t*Math.tan(e))},yExtrema:function(e,t,n){return Math.atan(n/(t*Math.tan(e)))}};
/***/},
/* 175 */
/***/function(e,t,n){var r=n(2),i=n(9),a=n(53),o=n(54);function s(e,t,n){return e+t*Math.cos(n)}function c(e,t,n){return e+t*Math.sin(n)}var l=function e(t){e.superclass.constructor.call(this,t)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.r,i=e.startAngle,o=e.endAngle,s=e.clockwise,c=this.getHitLineWidth()/2,l=a.box(t,n,r,i,o,s);return l.minX-=c,l.minY-=c,l.maxX+=c,l.maxY+=c,l},getStartTangent:function(){var e=this._attrs,t=e.x,n=e.y,r=e.startAngle,i=e.r,a=e.clockwise,o=Math.PI/180;a&&(o*=-1);var l=[],u=s(t,i,r+o),h=c(n,i,r+o),f=s(t,i,r),d=c(n,i,r);return l.push([u,h]),l.push([f,d]),l},getEndTangent:function(){var e=this._attrs,t=e.x,n=e.y,r=e.endAngle,i=e.r,a=e.clockwise,o=Math.PI/180,l=[];a&&(o*=-1);var u=s(t,i,r+o),h=c(n,i,r+o),f=s(t,i,r),d=c(n,i,r);return l.push([f,d]),l.push([u,h]),l},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,i=t.r,a=t.startAngle,o=t.endAngle,s=t.clockwise;(e=e||self.get("context")).beginPath(),e.arc(n,r,i,a,o,s)},afterPath:function(e){var t=this._attrs;if(e=e||this.get("context"),t.startArrow){var n=this.getStartTangent();o.addStartArrow(e,t,n[0][0],n[0][1],n[1][0],n[1][1])}if(t.endArrow){var r=this.getEndTangent();o.addEndArrow(e,t,r[0][0],r[0][1],r[1][0],r[1][1])}}}),e.exports=l},
/* 176 */
/***/function(e,t,n){var r=n(2),i=n(9),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.r,i=this.getHitLineWidth()/2+r;return{minX:t-i,minY:n-i,maxX:t+i,maxY:n+i}},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,i=t.r;e.beginPath(),e.arc(n,r,i,0,2*Math.PI,!1),e.closePath()}}),e.exports=a},
/* 177 */
/***/function(e,t,n){var r=n(2),i=n(9),a=function e(t){e.superclass.constructor.call(this,t)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.width,i=e.height,a=this.getHitLineWidth()/2;return{minX:t-a,minY:n-a,maxX:t+r+a,maxY:n+i+a}}}),e.exports=a},
/* 178 */
/***/function(e,t,n){var r=n(2),i=n(9),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.rx,i=e.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:t-o,minY:n-s,maxX:t+o,maxY:n+s}},createPath:function(e){var t=this._attrs,n=t.x,i=t.y,a=t.rx,o=t.ry;e=e||self.get("context");var s=a>o?a:o,c=a>o?1:a/o,l=a>o?o/a:1,u=[1,0,0,0,1,0,0,0,1];r.mat3.scale(u,u,[c,l]),r.mat3.translate(u,u,[n,i]),e.beginPath(),e.save(),e.transform(u[0],u[1],u[3],u[4],u[6],u[7]),e.arc(0,0,s,0,2*Math.PI),e.restore(),e.closePath()}}),e.exports=a},
/* 179 */
/***/function(e,t,n){var r=n(2),i=n(9),a=n(53),o=function e(t){e.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.rs,i=e.re,o=e.startAngle,s=e.endAngle,c=e.clockwise,l=this.getHitLineWidth(),u=a.box(t,n,r,o,s,c),h=a.box(t,n,i,o,s,c),f=l/2;return{minX:Math.min(u.minX,h.minX)-f,minY:Math.min(u.minY,h.minY)-f,maxX:Math.max(u.maxX,h.maxX)+f,maxY:Math.max(u.maxY,h.maxY)+f}},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,i=t.rs,a=t.re,o=t.startAngle,s=t.endAngle,c=t.clockwise,l={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},u={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(e=e||self.get("context")).beginPath(),e.moveTo(l.x,l.y),e.lineTo(u.x,u.y),e.arc(n,r,a,o,s,c),e.lineTo(h.x,h.y),e.arc(n,r,i,s,o,!c),e.closePath()}}),e.exports=o},
/* 180 */
/***/function(e,t,n){var r=n(2),i=n(9),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var e=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===e.img||this._setAttrImg();var t=e.x,n=e.y;return{minX:t,minY:n,maxX:t+e.width,maxY:n+e.height}},_beforeSetLoading:function(e){var t=this.get("canvas");return!1===e&&!0===this.get("toDraw")&&(this._cfg.loading=!1,t.draw()),e},_setAttrImg:function(){var e=this,t=e._attrs,n=t.img;if(!r.isString(n))return n instanceof Image?(t.width||e.attr("width",n.width),t.height||e.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(t.width||e.attr("width",Number(n.getAttribute("width"))),t.height||e.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(t.width||e.attr("width",n.width),t.height||e.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(e.get("destroyed"))return!1;e.attr("imgSrc",n),e.attr("img",i);var t=e.get("callback");t&&t.call(e),e.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",e.set("loading",!0)},drawInner:function(e){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(e),this._cfg.hasUpdate=!1)},_drawImage:function(e){var t=this._attrs,n=t.x,i=t.y,a=t.img,o=t.width,s=t.height,c=t.sx,l=t.sy,u=t.swidth,h=t.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(c)||r.isNil(l)||r.isNil(u)||r.isNil(h))return void e.drawImage(f,n,i,o,s);if(!(r.isNil(c)||r.isNil(l)||r.isNil(u)||r.isNil(h)))return void e.drawImage(f,c,l,u,h,n,i,o,s)}}}),e.exports=a},
/* 181 */
/***/function(e,t,n){var r=n(2),i=n(9),a=n(54),o=n(52),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var e=this._attrs,t=e.x1,n=e.y1,r=e.x2,i=e.y2,a=this.getHitLineWidth();return o.box(t,n,r,i,a)},createPath:function(e){var t=this._attrs,n=t.x1,r=t.y1,i=t.x2,a=t.y2;(e=e||self.get("context")).beginPath(),e.moveTo(n,r),e.lineTo(i,a)},afterPath:function(e){var t=this._attrs,n=t.x1,r=t.y1,i=t.x2,o=t.y2;e=e||this.get("context"),t.startArrow&&a.addStartArrow(e,t,i,o,n,r),t.endArrow&&a.addEndArrow(e,t,n,r,i,o)},getPoint:function(e){var t=this._attrs;return{x:o.at(t.x1,t.x2,e),y:o.at(t.y1,t.y2,e)}}}),e.exports=s},
/* 182 */
/***/function(e,t,n){var r=n(2),i=n(9),a=n(55),o=n(37),s=n(54),c=n(96),l=n(94),u=function e(t){e.superclass.constructor.call(this,t)};u.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(u,i),r.augment(u,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(e){var t=this;if(r.isNil(e))return t.setSilent("segments",null),void t.setSilent("box",void 0);var n,i=o.parsePath(e),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var c=i.length,l=0;l<i.length;l++){var u=i[l];n=new a(u,n,l===c-1),s.push(n)}t.setSilent("segments",s),t.setSilent("tCache",null),t.setSilent("box",null)}},calculateBox:function(){var e=this.get("segments");if(!e)return null;var t=this.getHitLineWidth(),n=1/0,i=-1/0,a=1/0,o=-1/0;return r.each(e,(function(e){e.getBBox(t);var r=e.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<a&&(a=r.minY),r.maxY>o&&(o=r.maxY))})),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:i,maxY:o}},_setTcache:function(){var e,t,n,i,a=0,o=0,s=[],c=this._cfg.curve;c&&(r.each(c,(function(e,t){n=c[t+1],i=e.length,n&&(a+=l.len(e[i-2],e[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),r.each(c,(function(r,u){n=c[u+1],i=r.length,n&&((e=[])[0]=o/a,t=l.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=t,e[1]=o/a,s.push(e))})),this._cfg.tCache=s)},_calculateCurve:function(){var e=this._attrs.path;this._cfg.curve=c.pathTocurve(e)},getStartTangent:function(){var e,t,n,i,a=this.get("segments");if(a.length>1)if(e=a[0].endPoint,t=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([e.x-o[0],e.y-o[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getEndTangent:function(){var e,t,n,i,a=this.get("segments"),o=a.length;if(o>1)if(e=a[o-2].endPoint,t=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([t.x-s[0],t.y-s[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getPoint:function(e){var t,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,c=a[n+1];return{x:l.at(o[s-2],c[1],c[3],c[5],1-t),y:l.at(o[s-1],c[2],c[4],c[6],1-t)}},createPath:function(e){var t=this.get("segments");if(r.isArray(t)){(e=e||this.get("context")).beginPath();for(var n=t.length,i=0;i<n;i++)t[i].draw(e)}},afterPath:function(e){var t=this,n=t._attrs,i=t.get("segments"),a=n.path;if(e=e||t.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=t.getStartTangent();s.addStartArrow(e,n,o[0][0],o[0][1],o[1][0],o[1][1]);var c=t.getEndTangent();s.addEndArrow(e,n,c[0][0],c[0][1],c[1][0],c[1][1])}}}),e.exports=u},
/* 183 */
/***/function(e,t,n){var r=n(2),i=n(9),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this._attrs.points,t=this.getHitLineWidth();if(!e||0===e.length)return null;var n=1/0,i=1/0,a=-1/0,o=-1/0;r.each(e,(function(e){var t=e[0],r=e[1];t<n&&(n=t),t>a&&(a=t),r<i&&(i=r),r>o&&(o=r)}));var s=t/2;return{minX:n-s,minY:i-s,maxX:a+s,maxY:o+s}},createPath:function(e){var t=this._attrs.points;t.length<2||((e=e||this.get("context")).beginPath(),r.each(t,(function(t,n){0===n?e.moveTo(t[0],t[1]):e.lineTo(t[0],t[1])})),e.closePath())}}),e.exports=a},
/* 184 */
/***/function(e,t,n){var r=n(2),i=n(9),a=n(54),o=n(52),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,
// 缓存各点的t
getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var e=this._attrs,t=this.getHitLineWidth(),n=e.points;if(!n||0===n.length)return null;var i=1/0,a=1/0,o=-1/0,s=-1/0;r.each(n,(function(e){var t=e[0],n=e[1];t<i&&(i=t),t>o&&(o=t),n<a&&(a=n),n>s&&(s=n)}));var c=t/2;return{minX:i-c,minY:a-c,maxX:o+c,maxY:s+c}},_setTcache:function(){var e,t,n=this._attrs.points,i=0,a=0,s=[];n&&0!==n.length&&(r.each(n,(function(e,t){n[t+1]&&(i+=o.len(e[0],e[1],n[t+1][0],n[t+1][1]))})),i<=0||(r.each(n,(function(r,c){n[c+1]&&((e=[])[0]=a/i,t=o.len(r[0],r[1],n[c+1][0],n[c+1][1]),a+=t,e[1]=a/i,s.push(e))})),this.tCache=s))},createPath:function(e){var t,n,r=this._attrs.points;if(!(r.length<2)){for((e=e||this.get("context")).beginPath(),e.moveTo(r[0][0],r[0][1]),n=1,t=r.length-1;n<t;n++)e.lineTo(r[n][0],r[n][1]);e.lineTo(r[t][0],r[t][1])}},getStartTangent:function(){var e=this.__attrs.points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},getEndTangent:function(){var e=this.__attrs.points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},afterPath:function(e){var t=this._attrs,n=t.points,r=n.length-1;e=e||this.get("context"),t.startArrow&&a.addStartArrow(e,t,n[1][0],n[1][1],n[0][0],n[0][1]),t.endArrow&&a.addEndArrow(e,t,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(e){var t,n,i=this._attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),r.each(a,(function(r,i){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(i[n][0],i[n+1][0],t),y:o.at(i[n][1],i[n+1][1],t)}}}),e.exports=s},
/* 185 */
/***/function(e,t,n){var r=n(2),i=n(37).parseRadius,a=n(9),o=function e(t){e.superclass.constructor.call(this,t)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,a),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var e=this._attrs,t=e.x,n=e.y,r=e.width,i=e.height,a=this.getHitLineWidth()/2;return{minX:t-a,minY:n-a,maxX:t+r+a,maxY:n+i+a}},createPath:function(e){var t=this._attrs,n=t.x,r=t.y,a=t.width,o=t.height,s=t.radius;if((e=e||this.get("context")).beginPath(),0===s)
// 改成原生的rect方法
e.rect(n,r,a,o);else{var c=i(s);e.moveTo(n+c.r1,r),e.lineTo(n+a-c.r2,r),0!==c.r2&&e.arc(n+a-c.r2,r+c.r2,c.r2,-Math.PI/2,0),e.lineTo(n+a,r+o-c.r3),0!==c.r3&&e.arc(n+a-c.r3,r+o-c.r3,c.r3,0,Math.PI/2),e.lineTo(n+c.r4,r+o),0!==c.r4&&e.arc(n+c.r4,r+o-c.r4,c.r4,Math.PI/2,Math.PI),e.lineTo(n,r+c.r1),0!==c.r1&&e.arc(n+c.r1,r+c.r1,c.r1,Math.PI,1.5*Math.PI),e.closePath()}}}),e.exports=o},
/* 186 */
/***/function(e,t,n){var r=n(2),i=n(9),a=function e(t){e.superclass.constructor.call(this,t)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var e=this._attrs.fontSize;e&&+e<12&&
// 小于 12 像素的文本进行 scale 处理
this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+e/12,+e/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){
// var self = this;
var e=this._attrs,t=e.fontSize,n=e.fontFamily,r=e.fontWeight,i=e.fontStyle,a=e.fontVariant;// self.attr('fontVariant');
// self.attr('font', [fontStyle, fontVariant, fontWeight, fontSize + 'px', fontFamily].join(' '));
e.font=[i,a,r,t+"px",n].join(" ")},_setAttrText:function(){var e=this._attrs,t=e.text,n=null;if(r.isString(t)&&-1!==t.indexOf("\n")){var i=(n=t.split("\n")).length;e.lineCount=i}e.textArr=n},_getTextHeight:function(){var e=this._attrs,t=e.lineCount,n=1*e.fontSize;return t>1?n*t+this._getSpaceingY()*(t-1):n},isHitBox:function(){return!1},calculateBox:function(){var e=this,t=e._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var r=t.x,i=t.y,a=e.measureText();// attrs.width
if(!a)
// 如果width不存在，四点共其实点
return{minX:r,minY:i,maxX:r,maxY:i};var o=e._getTextHeight(),s=t.textAlign,c=t.textBaseline,l=e.getHitLineWidth(),u={x:r,y:i-o};// attrs.height
s&&("end"===s||"right"===s?u.x-=a:"center"===s&&(u.x-=a/2)),c&&("top"===c?u.y+=o:"middle"===c&&(u.y+=o/2)),this.set("startPoint",u);var h=l/2;return{minX:u.x-h,minY:u.y-h,maxX:u.x+a+h,maxY:u.y+o+h}},_getSpaceingY:function(){var e=this._attrs,t=e.lineHeight,n=1*e.fontSize;return t?t-n:.14*n},drawInner:function(e){var t=this,n=t._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),e.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,c=n.y;if(e.beginPath(),t.hasStroke()){var l=n.strokeOpacity;r.isNil(l)||1===l||(e.globalAlpha=l),o?t._drawTextArr(e,!1):e.strokeText(a,s,c),e.globalAlpha=1}if(t.hasFill()){var u=n.fillOpacity;r.isNil(u)||1===u||(e.globalAlpha=u),o?t._drawTextArr(e,!0):e.fillText(a,s,c)}i.hasUpdate=!1}},_drawTextArr:function(e,t){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),c=this._attrs.x,l=this._attrs.y,u=this.getBBox(),h=u.maxY-u.minY;r.each(i,(function(r,i){n=l+i*(s+o)-h+o,// bottom;
"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),t?e.fillText(r,c,n):e.strokeText(r,c,n)}))},measureText:function(){var e,t=this._attrs,n=t.text,i=t.font,a=t.textArr,o=0;if(!r.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=i,a?r.each(a,(function(t){e=s.measureText(t).width,o<e&&(o=e),s.restore()})):(o=s.measureText(n).width,s.restore()),o}}}),e.exports=a},
/* 187 */
/***/function(e,t,n){var r=n(51).Group,i=n(4),a=function e(t){e.superclass.constructor.call(this,t)};i.extend(a,r),i.augment(a,{getDefaultCfg:function(){
// const cfg = super.getDefaultCfg();
return{zIndex:1,
/**
       * 栅格线的类型
       *  - line 不封闭的线
       *  - polygon 封闭的多边形
       * @type {String}
       */
type:"line",
/**
       * 线的样式配置
       * @type {Object}
       */
lineStyle:null,
/**
       * 线集合的配置
       * @type {Array}
       */
items:null,
/**
       * 为网格设置交替的背景色，指定一个值则先渲染奇数层，两个值则交替渲染
       * @type {String | Array}
       */
alternateColor:null,matrix:null,
/**
       * 是否隐藏第一条网格线，默认为 false
       * @type {Boolean}
       */
hideFirstLine:!1,
/**
       * 是否隐藏最后一条网格线，默认为 false
       * @type {Boolean}
       */
hideLastLine:!1,
/**
       * 0基线不在轴线上时，是否强调0基线
       * @type {Boolean}
       */
hightLightZero:!1,
/**
       * 0基线样式
       * @type {Object}
       */
zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},_renderUI:function(){a.superclass._renderUI.call(this),this._drawLines()},_drawLines:function(){var e=this,t=e.get("lineStyle"),n=e.get("items");n&&n.length&&(e._precessItems(n),e._drawGridLines(n,t))},_precessItems:function(e){var t,n=this;i.each(e,(function(e,r){t&&n.get("alternateColor")&&n._drawAlternativeBg(e,t,r),t=e}))},_drawGridLines:function(e,t){var n,r,a,o,s=this,c=this.get("type"),l=e.length;"line"===c||"polygon"===c?i.each(e,(function(e,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===l-1||(o=e.points,r=[],"line"===c?(r.push(["M",o[0].x,o[0].y]),r.push(["L",o[o.length-1].x,o[o.length-1].y])):i.each(o,(function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])})),a=s._drawZeroLine(c,u)?i.mix({},s.get("zeroLineStyle"),{path:r}):i.mix({},t,{path:r}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=e._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})):i.each(e,(function(e,c){s.get("hideFirstLine")&&0===c||s.get("hideLastLine")&&c===l-1||(o=e.points,r=[],i.each(o,(function(e,t){var n=e.radius;0===t?r.push(["M",e.x,e.y]):r.push(["A",n,n,0,0,e.flag,e.x,e.y])})),a=i.mix({},t,{path:r}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=e._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}))},_drawZeroLine:function(e,t){var n=this.get("tickValues");return!("line"!==e||!n||0!==n[t]||!this.get("hightLightZero"))},_drawAlternativeBg:function(e,t,n){var r,a,o,s=this,c=s.get("alternateColor");i.isString(c)?a=c:i.isArray(c)&&(a=c[0],o=c[1]),n%2==0?o&&(r=s._getBackItem(t.points,e.points,o)):a&&(r=s._getBackItem(t.points,e.points,a));var l=s.addShape("Path",{attrs:r});l.name="axis-grid-rect",l._id=e._id&&e._id.replace("grid","grid-rect"),l.set("coord",s.get("coord")),s.get("appendInfo")&&l.setSilent("appendInfo",s.get("appendInfo"))},_getBackItem:function(e,t,n){var r=[],a=this.get("type");if("line"===a)r.push(["M",e[0].x,e[0].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]);else if("polygon"===a){i.each(e,(function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])}));for(var o=t.length-1;o>=0;o--)r.push(["L",t[o].x,t[o].y]);r.push(["Z"])}else{var s=e[0].flag;i.each(e,(function(e,t){var n=e.radius;0===t?r.push(["M",e.x,e.y]):r.push(["A",n,n,0,0,e.flag,e.x,e.y])}));for(var c=t.length-1;c>=0;c--){var l=t[c],u=l.radius;c===t.length-1?r.push(["M",l.x,l.y]):r.push(["A",u,u,0,0,1===s?0:1,l.x,l.y])}}return{fill:n,path:r}}}),e.exports=a},
/* 188 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=i.DomUtil,o=n(36),s={scatter:n(365),map:n(366),treemap:n(367)},c=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=o.prototype;return c.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{name:"label",
/**
       * label类型
       * @type {(String)}
       */
type:"default",
/**
       * 默认文本样式
       * @type {Array}
       */
textStyle:null,
/**
       * 文本显示格式化回调函数
       * @type {Function}
       */
formatter:null,
/**
       * 显示的文本集合
       * @type {Array}
       */
items:null,
/**
       * 是否使用html渲染label
       * @type {String}
       */
useHtml:!1,
/**
       * html 渲染时用的容器的模板，必须存在 class = "g-labels"
       * @type {String}
       */
containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',
/**
       * html 渲染时单个 label 的模板，必须存在 class = "g-label"
       * @type {String}
       */
itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',
/**
       * label牵引线定义
       * @type {String || Object}
       */
labelLine:!1,
/**
       * label牵引线容器
       * @type Object
       */
lineGroup:null,
/**
       * 需添加label的shape
       * @type Object
       */
shapes:null,
/**
       * 默认为true。为false时指定直接用items渲染文本，不进行config
       * @type Object
       */
config:!0,
/**
       * 是否进行拾取
       * @type Object
       */
capture:!0})}
/*
   * 清空label容器
   */,c.clear=function(){var t=this.get("group"),n=this.get("container");t&&!t.get("destroyed")&&t.clear(),n&&(n.innerHTML=""),e.prototype.clear.call(this)}
/**
   * 销毁group
   */,c.destroy=function(){var t=this.get("group"),n=this.get("container");t.destroy||t.destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),e.prototype.destroy.call(this)}
/**
   * label绘制全过程
   */,c.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},c._dryDraw=function(){var e=this,t=e.get("items"),n=e.getLabels(),r=n.length;i.each(t,(function(t,i){if(i<r){var a=n[i];e.changeLabel(a,t)}else{var o=e._addLabel(t,i);o&&(o._id=t._id,o.set("coord",t.coord))}}));for(var a=r-1;a>=t.length;a--)n[a].remove();e._adjustLabels(),!e.get("labelLine")&&e.get("config")||e.drawLines()}
/**
   * 更新label
   * 1. 将items与group中的children对比，更新/新增/删除labels
   * 2. labels布局优化
   * 3. 画label连接线
   * 4. 绘制到画布
   */,c.draw=function(){this._dryDraw(),this.get("canvas").draw()}
/*
   * 更新label
   * oldLabel shape或label dom
   * newLabel label data
   * index items中的下标
   */,c.changeLabel=function(e,t){if(e)if(e.tagName){var n=this._createDom(t);e.innerHTML=n.innerHTML,this._setCustomPosition(t,e)}else e._id=t._id,e.attr("text",t.text),e.attr("x")===t.x&&e.attr("y")===t.y||(e.resetMatrix(),t.textStyle.rotate&&(e.rotateAtStart(t.textStyle.rotate),delete t.textStyle.rotate),e.attr(t))}
/**
   * 显示label
   */,c.show=function(){var e=this.get("group"),t=this.get("container");e&&e.show(),t&&(t.style.opacity=1)}
/**
   * 隐藏label
   */,c.hide=function(){var e=this.get("group"),t=this.get("container");e&&e.hide(),t&&(t.style.opacity=0)}
/**
   * 画label连接线
   */,c.drawLines=function(){var e=this;"boolean"==typeof e.get("labelLine")&&e.set("labelLine",{});var t=e.get("lineGroup");!t||t.get("destroyed")?(t=e.get("group").addGroup({elCls:"x-line-group"}),e.set("lineGroup",t)):t.clear(),i.each(e.get("items"),(function(n){e.lineToLabel(n,t)}))},c.lineToLabel=function(e,t){var n=this;if(n.get("config")||e.labelLine){var r=e.labelLine||n.get("labelLine"),a=void 0===e.capture?n.get("capture"):e.capture,o=r.path;if(o&&i.isFunction(r.path)&&(o=r.path(e)),!o){var s=e.start||{x:e.x-e._offset.x,y:e.y-e._offset.y};o=[["M",s.x,s.y],["L",e.x,e.y]]}var c=e.color;c||(c=e.textStyle&&e.textStyle.fill?e.textStyle.fill:"#000");var l=t.addShape("path",{attrs:i.mix({path:o,fill:null,stroke:c},r),capture:a});// label 对应线的动画关闭
l.name=n.get("name"),// generate labelLine id according to label id
l._id=e._id&&e._id.replace("glabel","glabelline"),l.set("coord",n.get("coord"))}}// 根据type对label布局
,c._adjustLabels=function(){var e=this,t=e.get("type"),n=e.getLabels(),r=e.get("shapes"),i=s[t];"default"!==t&&i&&i(n,r)}
/**
   * 获取当前所有label实例
   * @return {Array} 当前label实例
   */,c.getLabels=function(){var e=this.get("container");return e?i.toArray(e.childNodes):this.get("group").get("children")}// 先计算label的所有配置项，然后生成label实例
,c._addLabel=function(e,t){var n=e;return this.get("config")&&(n=this._getLabelCfg(e,t)),this._createText(n)},c._getLabelCfg=function(e,t){var n=this.get("textStyle")||{},r=this.get("formatter"),a=this.get("htmlTemplate");if(!i.isObject(e)){var o=e;(e={}).text=o}return i.isFunction(n)&&(n=n(e.text,e,t)),r&&(e.text=r(e.text,e,t)),a&&(e.useHtml=!0,i.isFunction(a)&&(e.text=a(e.text,e,t))),i.isNil(e.text)&&(e.text=""),e.text=e.text+"",i.mix({},e,{textStyle:n},{x:e.x||0,y:e.y||0})}
/**
   * label初始化，主要针对html容器
   */,c._init=function(){if(!this.get("group")){var e=this.get("canvas").addGroup({id:"label-group"});this.set("group",e)}},c.initHtmlContainer=function(){var e=this.get("container");if(e)i.isString(e)&&(e=document.getElementById(e))&&this.set("container",e);else{var t=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;e=a.createDom(t),n.style.position="relative",n.appendChild(e),this.set("container",e)}return e}// 分html dom和G shape两种情况生成label实例
,c._createText=function(e){
// @2018-11-29 by blue.lb 这里由于使用delete导致之后的配置无法获取到point和rotate，出现问题，深拷贝一次比较好
var t,n=i.deepMix({},e),r=this.get("container"),a=void 0===n.capture?this.get("capture"):n.capture;if(!n.useHtml&&!n.htmlTemplate){var o=this.get("name"),s=n.point,c=this.get("group");delete n.point;// 临时解决，否则影响动画
var l=n.rotate;// textStyle中的rotate虽然可以正常画出，但是在做动画的时候可能会导致动画异常。移出，在定义好shape后通过transform实现效果。
return n.textStyle&&(n.textStyle.rotate&&(l=n.textStyle.rotate,delete n.textStyle.rotate),n=i.mix({x:n.x,y:n.y,textAlign:n.textAlign,text:n.text},n.textStyle)),t=c.addShape("text",{attrs:n,capture:a}),l&&(
// rotate是用角度定义的，转换为弧度
Math.abs(l)>2*Math.PI&&(l=l/180*Math.PI),t.transform([["t",-n.x,-n.y],["r",l],["t",n.x,n.y]])),t.setSilent("origin",s||n),t.name=o,// 用于事件标注
this.get("appendInfo")&&t.setSilent("appendInfo",this.get("appendInfo")),t}r||(r=this.initHtmlContainer());var u=this._createDom(n);r.appendChild(u),this._setCustomPosition(n,u)},c._createDom=function(e){var t=this.get("itemTpl"),n=i.substitute(t,{text:e.text});return a.createDom(n)}// 根据文本对齐方式确定dom位置
,c._setCustomPosition=function(e,t){var n=e.textAlign||"left",r=e.y,i=e.x,o=a.getOuterWidth(t);r-=a.getOuterHeight(t)/2,"center"===n?i-=o/2:"right"===n&&(i-=o),t.style.top=parseInt(r,10)+"px",t.style.left=parseInt(i,10)+"px"},o}(o);e.exports=c},
/* 189 */
/***/function(e,t){var n=function(){function e(){this.bitmap=[]}var t=e.prototype;return t.hasGap=function(e){for(var t=!0,n=this.bitmap,r=Math.floor(e.minX),i=Math.ceil(e.maxX),a=Math.floor(e.minY),o=Math.ceil(e.maxY)-1,s=r;s<i;s++)if(n[s]){if(s===r||s===i-1){for(var c=a;c<=o;c++)if(n[s][c]){t=!1;break}}else if(n[s][a]||n[s][o]){t=!1;break}}else n[s]=[];return t},t.fillGap=function(e){for(var t=this.bitmap,n=Math.floor(e.minX),r=Math.ceil(e.maxX)-1,i=Math.floor(e.minY),a=Math.ceil(e.maxY)-1,o=n;o<=r;o++){for(var s=i;s<a;s+=8)t[o]||(t[o]=[]),t[o][s]=!0;t[o][a]=!0}for(var c=i;c<=a;c++)t[n][c]=!0,t[r][c]=!0},e}();e.exports=n},
/* 190 */
/***/function(e,t,n){var r=n(4);e.exports={getFirstScale:function(e){var t;return r.each(e,(function(e){if(e)return t=e,!1})),t}}},
/* 191 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(192),o=n(16).FONT_FAMILY,s=i.Event,c=i.Group;// const Global = require('../../global');
// const CONTAINER_CLASS = 'g2-legend';
function l(e,t){var n=null,r=t instanceof c||"legendGroup"===t.name?t.get("value"):t;return i.each(e,(function(e){if(e.value===r)return n=e,!1})),n}function u(e,t){return e.findBy((function(e){return e.name===t}))}var h=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * type标识
       * @type {String}
       */
type:"category-legend",
/**
       * 子项集合
       * @type {Array}
       */
items:null,
/**
       * TODO：rename
       * 图例项水平方向的间距
       * @type {Number}
       */
itemGap:5,
/**
       * TODO：rename
       * 图例项垂直方向的间距
       * @type {Number}
       */
itemMarginBottom:8,
/**
       * 图例项图组
       * @type {Group}
       */
itemsGroup:null,
/**
       * 布局方式： horizontal，vertical
       * @type {String}
       */
layout:"horizontal",
/**
       * 是否允许全部取消，默认 false，即必须保留一个被选中
       * @type {Boolean}
       */
allowAllCanceled:!1,
/**
       * 边框内边距
       * @type {Array}
       */
backPadding:[0,0,0,0],
/**
       * 图例项取消选中的颜色
       * @type {String}
       */
unCheckColor:"#ccc",
/**
       * 图例背景层属性设置
       * @type {Obejct}
       */
background:{fill:"#fff",fillOpacity:0},
/**
       * 图例项的宽度，当图例有很多图例项，并且用户想要这些图例项在同一平面内垂直对齐，此时这个属性可帮用户实现此效果
       * @type {Number}
       */
itemWidth:null,
/**
       * 图例文字样式
       * @type {ATTRS}
       */
textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:o},
/**
       * marker 和文字的距离
       * @type {Number}
       */
_wordSpaceing:8,
/**
       * 图例项是否可点击，默认为 true
       * @type {Boolean}
       */
clickable:!0,
/**
       * TODO: rename
       * 图例项的选择模式，多选和单选 multiple、single
       * @type {String}
       */
selectedMode:"multiple",
/**
       * 图例项的顺序是否要逆序，默认为 false
       * @type {Boolean}
       */
reversed:!1,
/**
       * 是否自动换行
       * @type {Boolean}
       */
autoWrap:!0,
/**
       * 是否以增加 border 的方式高亮 hover 的 item。若为 false ，则降低其他 item 的透明度。
       * @type {Boolean}
       */
highlight:!1,
/**
       * 非highlight方式下，鼠标hover到legend样式
       * @type {Number}
       */
activeOpacity:.7,
/**
       * 非highlight方式下，非鼠标hover到的legend样式
       * @type {Number}
       */
inactiveOpacity:1})}// rendering
,c.render=function(){e.prototype.render.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems()}// user iteraction
,c._bindEvents=function(){this.get("hoverable")&&(this.get("group").on("mousemove",i.wrapBehavior(this,"_onMousemove")),this.get("group").on("mouseleave",i.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.get("group").on("click",i.wrapBehavior(this,"_onClick"))}// return the target's parent legend object
,c._getLegendItem=function(e){var t=e.get("parent");return t&&"legendGroup"===t.name?t:null}// activate an item by reduce the opacity of other items.
// it is reserved for bi-direction interaction between charts / graph and legend
,c.activate=function(e){var t=this,n=this,r=n.get("itemsGroup").get("children"),i=void 0;r.forEach((function(r){if(i=u(r,"legend-marker")){var a=r.get("checked");t.get("highlight")?
// change stroke color
r.get("value")===e&&a?i.attr("stroke","#333"):i.attr("stroke",null):
// change opacity
r.get("value")===e&&i.attr("fillOpacity",n.get("activeOpacity"))}})),this.get("canvas").draw()}// restore the opacity of items
// it is reserved for bi-direction interaction between charts / graph and legend
,c.deactivate=function(){var e=this,t=this,n=t.get("itemsGroup").get("children"),r=void 0,i=this.get("unCheckColor");n.forEach((function(n){if(r=u(n,"legend-marker"))if(e.get("highlight")){var a=r.get("oriStroke"),o=n.get("checked");a=a&&!o?i:"",r.attr("stroke",a)}else r.attr("fillOpacity",t.get("inactiveOpacity"))})),this.get("canvas").draw()}// mouse move listener of an item
// when mouse over an item, reduce the opacity of the other items.
,c._onMousemove=function(e){var t=this._getLegendItem(e.currentTarget);if(t&&t.get("checked")){var n=this.get("items"),r=new s("itemhover",e,!0,!0);r.item=l(n,t),r.checked=t.get("checked"),r.currentTarget=e.currentTarget,// change the opacity of other items
this.deactivate(),this.activate(t.get("value")),this.emit("itemhover",r)}else this.deactivate(),this.emit("itemunhover",e);this.get("canvas").draw()}// mouse leave listener of an item
,c._onMouseleave=function(e){this.deactivate(),this.get("canvas").draw(),this.emit("itemunhover",e)}// the click listener of an item
,c._onClick=function(e){var t=this._getLegendItem(e.currentTarget),n=this.get("items");if(t&&!t.get("destroyed")){var r=t.get("checked"),a=this.get("selectedMode"),o=l(n,t),c=new s("itemclick",e,!0,!0);if(c.item=o,c.currentTarget=t,c.appendInfo=e.currentTarget.get("appendInfo"),c.checked="single"===a||!r,!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return void this.emit("clicklastitem",c);var h=this.get("unCheckColor"),f=this.get("textStyle").fill,d=void 0,p=void 0,g=void 0;if("single"===a){var m=this.get("itemsGroup").get("children");i.each(m,(function(e){d=u(e,"legend-marker"),p=u(e,"legend-text"),g=u(e,"legend-item"),e!==t?(d.attr("fill")&&d.attr("fill",h),d.attr("stroke")&&d.attr("stroke",h),p.attr("fill",h),d.setSilent("checked",!1),p.setSilent("checked",!1),g.setSilent("checked",!1),e.setSilent("checked",!1)):(d.attr("fill")&&o&&o.marker&&d.attr("fill",o.marker.fill),d.attr("stroke")&&o&&o.marker&&d.attr("stroke",o.marker.stroke),p.attr("fill",f),d.setSilent("checked",!0),p.setSilent("checked",!0),g.setSilent("checked",!0),e.setSilent("checked",!0))}))}else d=u(t,"legend-marker"),p=u(t,"legend-text"),g=u(t,"legend-item"),d.attr("fill")&&o&&o.marker&&d.attr("fill",r?h:o.marker.fill),d.attr("stroke")&&o&&o.marker&&d.attr("stroke",r?h:o.marker.stroke),p.attr("fill",r?h:f),t.setSilent("checked",!r),d.setSilent("checked",!r),p.setSilent("checked",!r),g.setSilent("checked",!r);this.emit("itemclick",c)}this.get("canvas").draw()}// render the items
,c._renderItems=function(){var e=this,t=this.get("items");if(this.get("reversed")&&t.reverse(),i.each(t,(function(t,n){e._addItem(t,n)})),this.get("highlight")){var n=this.get("itemsGroup").get("children"),r=void 0;n.forEach((function(e){(r=u(e,"legend-marker")).get("oriStroke")||(r.attr("stroke")?r.set("oriStroke",r.attr("stroke")):r.set("oriStroke",""))}))}}// format the item value
,c._formatItemValue=function(e){var t=this.get("formatter")||this.get("itemFormatter");return t&&(e=t.call(this,e)),e}// find x of next item
,c._getNextX=function(){var e=this.get("layout"),t=this.get("itemGap"),n=this.get("itemsGroup"),r=this.get("itemWidth"),a=n.get("children"),o=0;return"horizontal"===e&&
// 水平布局
i.each(a,(function(e){o+=(r||e.getBBox().width)+t})),o}// find y of next item
,c._getNextY=function(){var e=this.get("itemMarginBottom"),t=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),r=this.get("itemsGroup"),a=this.get("titleShape"),o=r.get("children"),s=t;return a&&(s+=a.getBBox().height),"vertical"===n&&
// 竖直布局
i.each(o,(function(t){s+=t.getBBox().height+e})),s}// add an item to the canvas
,c._addItem=function(e){var t=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),a=this.get("unCheckColor"),s=t.addGroup({x:n,y:r,value:e.value,checked:e.checked});// @2018-10-20 by blue.lb 需要设置viewId，否则在emit的时候，parent获取不到viewId
s.set("viewId",this.get("viewId"));var c=this.get("textStyle"),l=this.get("_wordSpaceing"),u=0;if(e.marker){
// 如果有marker添加marker
var h=i.mix({},e.marker,{x:e.marker.radius+n,y:r});e.checked||(h.fill&&(h.fill=a),h.stroke&&(h.stroke=a));var f=s.addShape("marker",{type:"marker",attrs:h});f.attr("cursor","pointer"),f.name="legend-marker",u+=f.getBBox().width+l}var d=i.mix({},{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:o},c,{x:u+n,y:r,text:this._formatItemValue(e.value)});e.checked||i.mix(d,{fill:a});var p=s.addShape("text",{attrs:d});p.attr("cursor","pointer"),p.name="legend-text",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo"));// 添加一个包围矩形，用于事件支持
var g=s.getBBox(),m=this.get("itemWidth"),v=s.addShape("rect",{attrs:{x:n,y:r-g.height/2,fill:"#fff",fillOpacity:0,width:m||g.width,height:g.height}});return v.attr("cursor","pointer"),v.setSilent("origin",e),// 保存图例项相关的数据，便于事件操作
v.name="legend-item",this.get("appendInfo")&&v.setSilent("appendInfo",this.get("appendInfo")),s.name="legendGroup",s}// auto break the line for horizontal layout
,c._adjustHorizontal=function(){var e=this.get("itemsGroup"),t=e.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),a=this.get("itemMarginBottom"),o=this.get("titleShape")?this.get("titleGap"):0,s=0,c=0,l=void 0,u=void 0,h=void 0,f=this.get("itemWidth");e.getBBox().width>n&&i.each(t,(function(e){h=e.getBBox(),l=f||h.width,u=h.height+a,n-c<l&&(s++,c=0),e.move(c,s*u+o),c+=l+r}))}// auto break the column for vertical layout
,c._adjustVertical=function(){var e=this.get("itemsGroup"),t=this.get("titleShape"),n=e.get("children"),r=this.get("maxLength"),a=this.get("itemGap"),o=this.get("itemMarginBottom"),s=this.get("titleGap"),c=t?t.getBBox().height+s:0,l=this.get("itemWidth"),u=c,h=void 0,f=void 0,d=void 0,p=0,g=0;e.getBBox().height>r&&i.each(n,(function(e){d=e.getBBox(),h=d.width,f=d.height,l?p=l+a:h>p&&(p=h+a),r-u<f?(u=c,g+=p,e.move(g,c)):e.move(g,u),u+=f+o}))}// automatically break the line / column while the width / height exceeds maxLength
,c._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},c.getWidth=function(){return e.prototype.getWidth.call(this)},c.getHeight=function(){return e.prototype.getHeight.call(this)},c.move=function(t,n){e.prototype.move.call(this,t,n)},a}(a);e.exports=h},
/* 192 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(36),o=n(16).FONT_FAMILY,s=function(e){var t,n;n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=s.prototype;function s(t){var n;return(n=e.call(this,t)||this)._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}return a.getDefaultCfg=function(){return{
/**
       * Group 容器
       * @type {Object}
       */
container:null,
/**
       * 图例标题配置
       * @type {Object}
       */
title:null,
/**
       * 图例项文本格式化
       * @type {Function}
       */
formatter:null,
/**
       * 鼠标 hover 到图例上的默认交互是否开启
       * @type {Boolean}
       */
hoverable:!0,
/**
       * TODO：rename
       * 图例标题距离图例项的距离
       * @type {Number}
       */
titleGap:15,
/**
       * legend 相对于 container 的位置
       * @type {Array}
       */
position:[0,0],
/**
       * legend 在 position 位置上的偏移量
       * @type {Array}
       */
offset:[0,0],
/**
       * legend 在 position 位置上沿 x 轴的偏移量。若同时设置了 offset 和 offsetX， 以 offsetX 为准
       * @type {Number}
       */
offsetX:null,
/**
       * legend 在 position 位置上沿 y 轴的偏移量。若同时设置了 offset 和 offsetY， 以 offsetY 为准
       * @type {Number}
       */
offsetY:null}},a._init=function(){var e=this.get("group"),t=this.get("container");this.set("canvas",t.get("canvas"));var n=this.get("position");e||(e=t.addGroup({x:0-n[0],y:0-n[1]})),this.set("group",e)},a._adjustPositionOffset=function(){var e=this.get("position"),t=this.get("offset"),n=this.get("offsetX"),r=this.get("offsetY");i.isArray(t)||(t="vertical"===this.get("layout")?[t,0]:[0,t]),n&&(t[0]=n),r&&(t[1]=r);var a=this.get("group").getBBox();this.move(-a.minX+e[0]+t[0],-a.minY+e[1]+t[1])},a.beforeRender=function(){var e=this.get("group").addGroup();this.set("itemsGroup",e)},a.render=function(){this._renderTitle()}// render the title of the legend
,a._renderTitle=function(){var e=this.get("title"),t=this.get("titleGap");if(t=t||0,e&&e.text){var n=this.get("group").addShape("text",{attrs:i.mix({x:0,y:0-t,fill:"#333",textBaseline:"middle",fontFamily:o},e)});n.name="legend-title",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",n)}}// return the count of checked items
,a.getCheckedCount=function(){var e=this.get("itemsGroup").get("children");return i.filter(e,(function(e){return e.get("checked")})).length}// set items for the legend
,a.setItems=function(e){this.set("items",e),this.clear(),this.render()}// add an item into the legend
,a.addItem=function(e){this.get("items").push(e),this.clear(),this.render()}// clear all the items of the legend
,a.clear=function(){this.get("itemsGroup").clear(),this.get("group").clear(),this.beforeRender()}// destroy the legend
,a.destroy=function(){var t=this.get("group");t&&t.destroy(),this._attrs={},this.removeAllListeners(),e.prototype.destroy.call(this)}// return the width of the legend
,a.getWidth=function(){return this.get("group").getBBox().width}// return the height of the legend
,a.getHeight=function(){return this.get("group").getBBox().height},a.move=function(e,t){this.get("group").move(e,t)},a.draw=function(){this.get("canvas").draw()},s}(a);e.exports=s},
/* 193 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(191),o=n(16).FONT_FAMILY,s=i.DomUtil,c=i.Group,l="g2-legend",u="g2-legend-title",h="g2-legend-list",f="g2-legend-list-item",d="g2-legend-text",p="g2-legend-marker";// find a dom node from the chidren of the node with className.
function g(e,t){return e.getElementsByClassName(t)[0]}function m(e,t){var n=e.className;return i.isNil(n)||(n=n.split(" ")).indexOf(t)>-1?e:e.parentNode?e.parentNode.className===l?e.parentNode:m(e.parentNode,t):null}function v(e,t){var n=null,r=t instanceof c?t.get("value"):t;return i.each(e,(function(e){if(e.value===r)return n=e,!1})),n}var y=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * type 标识
       * @type {String}
       */
type:"category-legend",
/**
       * html 容器
       * @type {DOM}
       */
container:null,
/**
       * 使用html时的外层模板
       * @type {String}
       */
containerTpl:'<div class="'+l+'"><h4 class="'+u+'"></h4><ul class="'+h+'"></ul></div>',
/**
       * html 模板
       * @type {String|Function}
       */
itemTpl:'<li class="'+f+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+p+'" style="background-color:{color};"></i><span class="'+d+'">{value}</span></li>',
/**
       * html style
       * @type {Attrs}
       */
legendStyle:{},
/**
       * 图例文字样式
       * @type {ATTRS}
       */
textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:o},
/**
       * 当文本太长时是否进行缩略
       * @type {Boolean}
       */
abridgeText:!1,
/**
       * abridgeText 为 true 时，鼠标放置在 item 上时显示全称的悬浮 div 的 html 模板
       * @type {String}
       */
tipTpl:'<div class="textTip"></div>',
/**
       * abridgeText 为 true 时，鼠标放置在 item 上时显示全称的悬浮 div 的样式
       * @type {Attrs}
       */
tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},
/**
       * useHtml 为 true 时生效，用于自动定位
       * @type {[type]}
       */
autoPosition:!0})},c._init=function(){},c.beforeRender=function(){},c.render=function(){this._renderHTML()}// user interaction
,c._bindEvents=function(){var e=this,t=g(this.get("legendWrapper"),h);this.get("hoverable")&&(t.onmousemove=function(t){return e._onMousemove(t)},t.onmouseout=function(t){return e._onMouseleave(t)}),this.get("clickable")&&(t.onclick=function(t){return e._onClick(t)})}// mouse move listener of an item
// when mouse over an item, reduce the opacity of the other items.
,c._onMousemove=function(e){var t=this.get("items"),n=e.target,r=n.className;if(!((r=r.split(" ")).indexOf(l)>-1||r.indexOf(h)>-1)){var i=m(n,f),a=v(t,i.getAttribute("data-value"));a?(
// change the opacity of other items
this.deactivate(),this.activate(i.getAttribute("data-value")),this.emit("itemhover",{item:a,currentTarget:i,checked:a.checked})):a||(
// restore the opacity of all the items
this.deactivate(),this.emit("itemunhover",e))}}// mouse leave listener of an item
,c._onMouseleave=function(e){
// restore the opacity of all the items when mouse leave
this.deactivate(),this.emit("itemunhover",e)}// the click listener of an item
,c._onClick=function(e){var t=this,n=g(this.get("legendWrapper"),h),r=this.get("unCheckColor"),a=this.get("items"),o=this.get("selectedMode"),s=n.childNodes,c=e.target,u=c.className;if(!((u=u.split(" ")).indexOf(l)>-1||u.indexOf(h)>-1)){var y=m(c,f),A=g(y,d),b=g(y,p),w=v(a,y.getAttribute("data-value"));if(w){var x=y.className,C=y.getAttribute("data-color");if("single"===o)
// 单选模式
// update checked status
w.checked=!0,// 其他图例项全部置灰
i.each(s,(function(e){e!==y?(g(e,p).style.backgroundColor=r,e.className=e.className.replace("checked","unChecked"),e.style.color=r,v(a,e.getAttribute("data-value")).checked=!1):(A&&(A.style.color=t.get("textStyle").fill),b&&(b.style.backgroundColor=C),y.className=x.replace("unChecked","checked"))}));else{
// 混合模式
var _=-1!==x.indexOf("checked"),I=0;// domClass.includes('checked');
if(i.each(s,(function(e){-1!==e.className.indexOf("checked")&&
// .includes('checked')
I++})),!this.get("allowAllCanceled")&&_&&1===I)return void this.emit("clicklastitem",{item:w,currentTarget:y,checked:"single"===o||w.checked});// 在判断最后一个图例后再更新checked状态，防止点击最后一个图例item时图例样式没有变化但是checked状态改变了 fix #422
w.checked=!w.checked,_?(b&&(b.style.backgroundColor=r),y.className=x.replace("checked","unChecked"),y.style.color=r):(b&&(b.style.backgroundColor=C),y.className=x.replace("unChecked","checked"),y.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:w,currentTarget:y,checked:"single"===o||w.checked})}}}// activate an item by reduce the opacity of other items.
// it is reserved for bi-direction interaction between charts / graph and legend
,c.activate=function(e){var t=this,n=this,r=n.get("items"),i=v(r,e);g(n.get("legendWrapper"),h).childNodes.forEach((function(e){var a=g(e,p),o=v(r,e.getAttribute("data-value"));if(t.get("highlight")){if(o===i&&o.checked)return void(a.style.border="1px solid #333")}else o===i?a.style.opacity=n.get("activeOpacity"):o.checked&&(a.style.opacity=n.get("inactiveOpacity"));// if (childItem !== item && childItem.checked) {
//   if (this.get('highlight')) {
//     childMarkerDom.style.border = '1px solid #fff';
//   } else childMarkerDom.style.opacity = 0.5;
// } else {
//   if (this.get('highlight')) {
//     childMarkerDom.style.border = '1px solid #333';
//   } else childMarkerDom.style.opacity = 1;
// }
}))}// restore the opacity of items
// it is reserved for bi-direction interaction between charts / graph and legend
,c.deactivate=function(){var e=this,t=this;g(t.get("legendWrapper"),h).childNodes.forEach((function(n){var r=g(n,p);e.get("highlight")?r.style.border="1px solid #fff":r.style.opacity=t.get("inactiveOpacity")}))},c._renderHTML=function(){var e=this,t=this.get("container"),n=this.get("title"),r=this.get("containerTpl"),a=s.createDom(r),c=g(a,u),m=g(a,h),v=this.get("unCheckColor"),y=i.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:o,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",
// 默认样式
textBaseline:"middle",fontFamily:o},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));// const canvas = this.get('canvas');
// fix：IE 9 兼容问题，先加入 legendWrapper
// let container = this.get('container');
if(/^\#/.test(t)||"string"==typeof t&&t.constructor===String){
// 如果传入 dom 节点的 id
var A=t.replace("#","");(t=document.getElementById(A)).appendChild(a)}else{var b=this.get("position"),w={};w="left"===b||"right"===b?{maxHeight:(this.get("maxLength")||t.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||t.offsetWidth)+"px"},s.modifyCSS(a,i.mix({},y.CONTAINER_CLASS,w,this.get(l))),t.appendChild(a)}s.modifyCSS(m,i.mix({},y.LIST_CLASS,this.get(h))),// render title
c&&(n&&n.text?(c.innerHTML=n.text,s.modifyCSS(c,i.mix({},y.TITLE_CLASS,this.get(u),n))):a.removeChild(c));// 开始渲染图例项
var x=this.get("items"),C=this.get("itemTpl"),_=this.get("position"),I=this.get("layout"),E="right"===_||"left"===_||"vertical"===I?"block":"inline-block",k=i.mix({},y.LIST_ITEM_CLASS,{display:E},this.get(f)),S=i.mix({},y.MARKER_CLASS,this.get(p));// append the tip div as a brother node of legend dom
if(i.each(x,(function(t,n){var r,o=t.checked,c=e._formatItemValue(t.value),l=t.marker.fill||t.marker.stroke,u=o?l:v;r=i.isFunction(C)?C(c,u,o,n):C;var h=i.substitute(r,i.mix({},t,{index:n,checked:o?"checked":"unChecked",value:c,color:u,originColor:l,
// @2018-07-09 by blue.lb 修复如果legend值中存在双引号"时, 导致的无法点击触发legend正常操作bug
originValue:t.value.replace(/\"/g,"&quot;")})),f=s.createDom(h);// li
f.style.color=e.get("textStyle").fill;var y=g(f,p),A=g(f,d);// abridge the text if the width of the text exceeds the width of the item
if(s.modifyCSS(f,k),y&&s.modifyCSS(y,S),// textDom && DomUtil.modifyCSS(textDom, this.get('textStyle'));
o||(f.style.color=v,y&&(y.style.backgroundColor=v)),m.appendChild(f),e.get("abridgeText")){var b=c,w=f.offsetWidth,x=e.get("textStyle").fontSize;// const itemWidth = parseFloat(this.get(ITEM_CLASS).width.substr(0, this.get(ITEM_CLASS).width.length - 2));
isNaN(x)&&(
// 6.5pt = 6.5 * 1/72 * 96 = 8.6px
-1!==x.indexOf("pt")?x=1*parseFloat(x.substr(0,x.length-2))/72*96:-1!==x.indexOf("px")&&(x=parseFloat(x.substr(0,x.length-2))));var _=x*b.length,I=Math.floor(w/x);w<2*x?
// unable to contain '...'
b="":w<_&&I>1&&(b=b.substr(0,I-1)+"..."),A.innerText=b,// show the text tip while mouse hovering an item
f.addEventListener("mouseover",(function(){var e=g(a.parentNode,"textTip");e.style.display="block",e.style.left=f.offsetLeft+f.offsetWidth+"px",e.style.top=f.offsetTop+15+"px",e.innerText=c})),// hide the text tip while mouse leave the item
f.addEventListener("mouseout",(function(){g(a.parentNode,"textTip").style.display="none"}))}})),this.get("abridgeText")){var B=this.get("tipTpl"),M=s.createDom(B),T=this.get("tipStyle");s.modifyCSS(M,T),a.parentNode.appendChild(M),// hide the tip while mouse entering the tip dom
M.addEventListener("mouseover",(function(){M.style.display="none"}))}this.set("legendWrapper",a)},c._adjustPositionOffset=function(){// @2018-12-29 by maplor. if autoPosition is false, don't set inline-style
if(!1!==this.get("autoPosition")){var e=this.get("position"),t=this.get("offset"),n=this.get("offsetX"),r=this.get("offsetY");n&&(t[0]=n),r&&(t[1]=r);var i=this.get("legendWrapper");i.style.left=e[0]+"px",i.style.top=e[1]+"px",i.style.marginLeft=t[0]+"px",i.style.marginTop=t[1]+"px"}},c.getWidth=function(){return s.getOuterWidth(this.get("legendWrapper"))},c.getHeight=function(){return s.getOuterHeight(this.get("legendWrapper"))},c.move=function(t,n){/^\#/.test(this.get("container"))?e.prototype.move.call(this,t,n):(s.modifyCSS(this.get("legendWrapper"),{left:t+"px",top:n+"px"}),this.set("x",t),this.set("y",n))},c.destroy=function(){var t=this.get("legendWrapper");t&&t.parentNode&&t.parentNode.removeChild(t),e.prototype.destroy.call(this)},a}(a);e.exports=y},
/* 194 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(36),a=n(4),o=function(e){var t,n;n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;function o(t){var n;return(n=e.call(this,t)||this)._init_(),n.render(),n}return i.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return a.mix({},t,{
/**
        * crosshair的类型
        * @type {String}
        */
type:null,
/**
       * 画在哪层视图
       * @type {G-Element}
       */
plot:null,
/**
       * x轴上，移动到位置的偏移量
       * @type {Number}
       */
plotRange:null,
/**
       * 默认rect crosshair样式
       * @type {Object}
       */
rectStyle:{fill:"#CCD6EC",opacity:.3},
/**
        * 默认line crosshair样式
        * @type {Object}
        */
lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},i._init_=function(){var e,t=this.get("plot");e="rect"===this.type?t.addGroup({zIndex:0}):t.addGroup(),this.set("container",e)},i._addLineShape=function(e,t){var n=this.get("container").addShape("line",{capture:!1,attrs:e});// shape.hide();
return this.set("crossLineShape"+t,n),n},i._renderHorizontalLine=function(e,t){var n=a.mix(this.get("lineStyle"),this.get("style")),r=a.mix({x1:t?t.bl.x:e.get("width"),y1:0,x2:t?t.br.x:0,y2:0},n);this._addLineShape(r,"X")},i._renderVerticalLine=function(e,t){var n=a.mix(this.get("lineStyle"),this.get("style")),r=a.mix({x1:0,y1:t?t.bl.y:e.get("height"),x2:0,y2:t?t.tl.y:0},n);this._addLineShape(r,"Y")},i._renderBackground=function(e,t){var n=a.mix(this.get("rectStyle"),this.get("style")),r=this.get("container"),i=a.mix({x:t?t.tl.x:0,y:t?t.tl.y:e.get("height"),width:t?t.br.x-t.bl.x:e.get("width"),height:t?Math.abs(t.tl.y-t.bl.y):e.get("height")},n),o=r.addShape("rect",{attrs:i,capture:!1});// shape.hide();
return this.set("crosshairsRectShape",o),o},i._updateRectShape=function(e){var t,n=this.get("crosshairsRectShape"),r=this.get("isTransposed"),i=e[0],o=e[e.length-1],s=r?"y":"x",c=r?"height":"width",l=i[s];if(e.length>1&&i[s]>o[s]&&(l=o[s]),this.get("width"))
// 用户定义了 width
n.attr(s,l-this.get("crosshairs").width/2),n.attr(c,this.get("width"));else if(a.isArray(i.point[s])&&!i.size){
// 直方图
var u=i.point[s][1]-i.point[s][0];n.attr(s,i.point[s][0]),n.attr(c,u)}else t=3*i.size/4,n.attr(s,l-t),1===e.length?n.attr(c,3*i.size/2):n.attr(c,Math.abs(o[s]-i[s])+2*t)},i.render=function(){var e=this.get("canvas"),t=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(e,t);break;case"y":this._renderVerticalLine(e,t);break;case"cross":this._renderHorizontalLine(e,t),this._renderVerticalLine(e,t);break;case"rect":this._renderBackground(e,t);break;default:n?this._renderHorizontalLine(e,t):this._renderVerticalLine(e,t)}},i.show=function(){var t=this.get("container");e.prototype.show.call(this),t.show()},i.hide=function(){var t=this.get("container");e.prototype.hide.call(this),t.hide()},i.clear=function(){var t=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),e.prototype.clear.call(this),t.clear()},i.destroy=function(){var t=this.get("container");e.prototype.destroy.call(this),t.remove()},i.setPosition=function(e,t,n){var r=this.get("crossLineShapeX"),i=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");i&&!i.get("destroyed")&&
// 第一次进入时，画布需要单独绘制，所以需要先设定corss的位置
i.move(e,0),r&&!r.get("destroyed")&&r.move(0,t),a&&!a.get("destroyed")&&this._updateRectShape(n)},o}(i);e.exports=o},
/* 195 */
/***/function(e,t){var n=20,r={_calcTooltipPosition:function(e,t,n,r,i,a){var o=0,s=0,c=20;if(a){var l=a.getBBox();o=l.width,s=l.height,e=l.x,t=l.y,c=5}switch(n){case"inside":e=e+o/2-r/2,t=t+s/2-i/2;break;case"top":e=e+o/2-r/2,t=t-i-c;break;case"left":e=e-r-c,t=t+s/2-i/2;break;case"right":e=e+o+c,t=t+s/2-i/2;break;default:e=e+o/2-r/2,t=t+s+c}return[e,t]},_constraintPositionInBoundary:function(e,t,r,i,a,o){return e+r+n>a?e=(e-=r+n)<0?0:e:e+n<0?e=n:e+=n,t+i+n>o?t=(t-=i+n)<0?0:t:t+n<0?t=n:t+=n,[e,t]},_constraintPositionInPlot:function(e,t,n,r,i,a){return e+n>i.tr.x&&(
// fix: https://github.com/antvis/g2/issues/1414
// 当 enterable 开启时，如果设置 tooltip 与鼠标的间距过大根本就追逐不上 tooltip
e-=a?n+1:n+40),e<i.tl.x&&(e=i.tl.x),a||(t+r>i.bl.y&&(t-=r+40),t<i.tl.y&&(t=i.tl.y)),[e,t]}};e.exports=r},
/* 196 */
/***/function(e,t,n){var r=n(4),i={setMarkers:function(e,t){var n=this,i=n.get("markerGroup"),a=n.get("frontPlot");i?i.clear():(i=a.addGroup({zIndex:1,capture:!1}),n.set("markerGroup",i)),r.each(e,(function(e){var n=r.mix({fill:e.color,symbol:"circle",shadowColor:e.color},t,{x:e.x,y:e.y});e.marker&&e.marker.activeSymbol&&(n.symbol=e.marker.activeSymbol),i.addShape("marker",{color:e.color,attrs:n})})),this.set("markerItems",e)},clearMarkers:function(){var e=this.get("markerGroup");e&&e.clear()}};e.exports=i},
/* 197 */
/***/function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var a=n(51),o=n(194),s=n(196),c=n(195),l=n(98),u=n(4),h=n(16).FONT_FAMILY,f=u.DomUtil,d=u.MatrixUtil,p=function(e){var t,n;n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var l=p.prototype;function p(t){var n;n=e.call(this,t)||this,u.assign(r(n),c),u.assign(r(n),s);// crosshair
var i=n.get("crosshairs");if(i){var a="rect"===i.type?n.get("backPlot"):n.get("frontPlot"),l=new o(u.mix({plot:a,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));l.hide(),n.set("crosshairGroup",l)}return n._init_(),n.get("items")&&n.render(),n}return l.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return u.mix({},t,{
/**
       * 默认背景板样式
       * @type {Object}
       */
boardStyle:{x:0,y:0,width:100,height:100,fill:"rgba(255, 255, 255, 0.9)",radius:4,stroke:"#e2e2e2",lineWidth:1},
/**
       * 默认title样式
       * @type {Object}
       */
titleStyle:{fontFamily:h,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},
/**
       * 默认marker样式
       * @type {Object}
       */
markerStyle:{radius:4},
/**
       * 默认name样式
       * @type {Object}
       */
nameStyle:{fontFamily:h,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},
/**
       * 默认value样式
       * @type {Object}
       */
valueStyle:{fontFamily:h,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:30},
/**
       * 默认padding值
       * @type {Object}
       */
padding:{top:20,right:20,bottom:20,left:20},
/**
       * 默认item之间的gap
       * @type {Number}
       */
itemGap:10,
/**
       * 默认tooltip位置移动动画的时长
       * @type {Number}
       */
animationDuration:200})},l._init_=function(){var e=this,t=e.get("padding"),n=e.get("frontPlot"),r=n.addGroup({capture:!1});e.set("markerGroup",r);// container
var i=n.addGroup();i.hide(),e.set("container",i);// board
var a=i.addShape("rect",{attrs:u.mix({},e.get("boardStyle"))});e.set("board",a);// title
var o=e.get("titleStyle");if(e.get("showTitle")){var s=i.addShape("text",{attrs:u.mix({x:t.left,y:t.top},o)});e.set("titleShape",s),s.name="tooltip-title"}// items
var c=i.addGroup();c.move(t.left,t.top+o.lineHeight+o.padding),e.set("itemsGroup",c)},l.render=function(){var e=this;e.clear();var t=e.get("container"),n=e.get("board"),r=e.get("showTitle"),i=e.get("titleContent"),a=this.get("titleShape"),o=this.get("itemsGroup"),s=e.get("items"),c=e.get("padding");if(a&&r&&a.attr("text",i),o){var l=e.get("itemGap"),h=0;u.each(s,(function(t){var n=e._addItem(t);n.move(0,h),o.add(n);var r=n.getBBox().height;h+=r+l}))}// update board based on bbox
var f=t.getBBox(),d=f.width+c.right,p=f.height+c.bottom;n.attr("width",d),n.attr("height",p),// align value text to right
e._alignToRight(d)},l.clear=function(){var e=this.get("titleShape"),t=this.get("itemsGroup"),n=this.get("board");e.text="",t.clear(),n.attr("width",0),n.attr("height",0)},l.show=function(){this.get("container").show();var t=this.get("crosshairGroup");t&&t.show();var n=this.get("markerGroup");n&&n.show(),e.prototype.show.call(this),this.get("canvas").draw()},l.hide=function(){this.get("container").hide();var t=this.get("crosshairGroup");t&&t.hide();var n=this.get("markerGroup");n&&n.hide(),e.prototype.hide.call(this),this.get("canvas").draw()},l.destroy=function(){var t=this.get("container"),n=this.get("crosshairGroup");n&&n.destroy();var r=this.get("markerGroup");r&&r.remove(),e.prototype.destroy.call(this),t.remove()},l.setPosition=function(t,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=f.getWidth(o),c=f.getHeight(o),l=a.getBBox(),h=l.width,p=l.height,g=t,m=n;if(this.get("position")){var v=l.width,y=l.height;t=(i=this._calcTooltipPosition(t,n,this.get("position"),v,y,r))[0],n=i[1]}else t=(i=this._constraintPositionInBoundary(t,n,h,p,s,c))[0],n=i[1];if(this.get("inPlot")){
// tooltip 必须限制在绘图区域内
var A=this.get("plotRange");t=(i=this._constraintPositionInPlot(t,n,h,p,A,this.get("enterable")))[0],n=i[1]}var b=this.get("markerItems");u.isEmpty(b)||(g=b[0].x,m=b[0].y);var w=d.transform([1,0,0,0,1,0,0,0,1],[["t",t,n]]);a.stopAnimate(),a.animate({matrix:w},this.get("animationDuration"));var x=this.get("crosshairGroup");if(x){var C=this.get("items");x.setPosition(g,m,C)}e.prototype.setPosition.call(this,t,n)},l._addItem=function(e){var t=new a.Group,n=this.get("markerStyle").radius;// marker
if(e.marker){var r=u.mix({},e.marker,{x:e.marker.radius/2,y:0,symbol:e.marker.activeSymbol||e.marker.symbol});t.addShape("marker",{attrs:r}),n=e.marker.radius}// name
var i=this.get("nameStyle");t.addShape("text",{attrs:u.mix({x:n+i.padding,y:0,text:e.name},i)});// value
var o=this.get("valueStyle");return t.addShape("text",{attrs:u.mix({x:t.getBBox().width+o.padding,y:0,text:e.value},o)}),t},l._alignToRight=function(e){var t=this,n=this.get("itemsGroup").get("children");u.each(n,(function(n){var r=n.get("children")[2],i=r.getBBox().width,a=e-i-2*t.get("padding").right;r.attr("x",a)}))},p}(l);e.exports=p},
/* 198 */
/***/function(e,t,n){var r=n(91),i=n(25),a=n(0),o=function e(t){e.superclass.constructor.call(this,t)};a.extend(o,r),a.augment(o,{getPointRauis:function(e,t){return i.getPointRadius(e,t)},getCirclePoint:function(e,t,n){var r=this,i=r.get("coord"),a=i.getCenter(),o=r._isEmitLabels(),s=r.getPointRauis(i,n);return 0===s?null:(i.isTransposed&&s>t&&!o?e+=2*Math.asin(t/(2*s)):s+=t,{x:a.x+s*Math.cos(e),y:a.y+s*Math.sin(e),angle:e,r:s})},getArcPoint:function(e,t){var n;// 圆弧上的中点
// var coord = self.get('coord');
return t=t||0,n=a.isArray(e.x)||a.isArray(e.y)?{x:a.isArray(e.x)?e.x[t]:e.x,y:a.isArray(e.y)?e.y[t]:e.y}:e,this.transLabelPoint(n),n},
// 获取点所在的角度
getPointAngle:function(e){var t=this.get("coord");return i.getPointAngle(t,e)},
// 获取中心的位置
getMiddlePoint:function(e){var t=this.get("coord"),n=e.length,r={x:0,y:0};return a.each(e,(function(e){r.x+=e.x,r.y+=e.y})),r.x/=n,r.y/=n,r=t.convert(r)},
// 是否居中
_isToMiddle:function(e){return e.x.length>2},
/**
   * @protected
   * 获取文本的位置信息
   * @param {Array} label labels
   * @param {Object} point point
   * @param {Number} index index
   * @return {Object} point
   */
getLabelPoint:function(e,t,n){
// if (Util.isNil(point.x)) return;
var r,i=this,a=e.text[n],o=1;i._isToMiddle(t)?r=i.getMiddlePoint(t.points):(1===e.text.length&&0===n?n=1:0===n&&(o=-1),r=i.getArcPoint(t,n));var s=i.getDefaultOffset(e);s*=o;var c=i.getPointAngle(r),l=i.getCirclePoint(c,s,r);if(l?(l.text=a,l.angle=c,l.color=t.color):l={text:""},e.autoRotate||void 0===e.autoRotate){var u=l.textStyle?l.textStyle.rotate:null;u||(u=l.rotate||i.getLabelRotate(c,s,t)),l.rotate=u}return l.start={x:r.x,y:r.y},l},_isEmitLabels:function(){return this.get("label").labelEmit},
/**
   * @protected
   * 获取文本旋转的方向
   * @param {Number} angle angle
   * @return {Number} angle
   */
getLabelRotate:function(e){var t;return t=180*e/Math.PI,t+=90,this._isEmitLabels()&&(t-=90),t&&(t>90?t-=180:t<-90&&(t+=180)),t/180*Math.PI},
// override
getLabelAlign:function(e){var t,n=this,r=n.get("coord");if(n._isEmitLabels())t=e.angle<=Math.PI/2&&e.angle>-Math.PI/2?"left":"right";else if(r.isTransposed){var i=r.getCenter(),a=n.getDefaultOffset(e);t=Math.abs(e.x-i.x)<1?"center":e.angle>Math.PI||e.angle<=0?a>0?"left":"right":a>0?"right":"left"}else t="center";return t}}),e.exports=o},
/* 199 */
/***/function(e,t){e.exports={toFront:function(e){var t=e.get("parent").get("children").indexOf(e);e.set("_originIndex",t),e.toFront()},resetZIndex:function(e){var t=e.get("parent"),n=e.get("_originIndex"),r=t.get("children"),i=r.indexOf(e);n>=0&&n!==i&&(r.splice(i,1),// 从数组中移除
r.splice(n,0,e))}};
/***/},
/* 200 */
/***/function(e,t,n){e.exports={Scale:n(399),Coord:n(400),Axis:n(405),Guide:n(406),Legend:n(409),Tooltip:n(411),Event:n(412)};
/***/},
/* 201 */
/***/function(e,t,n){var r=n(18),i=n(0),a=n(202);function o(e,t,n){void 0===n&&(n=1);var r=[e.x,e.y,n];return i.vec3.transformMat3(r,r,t),{x:r[0],y:r[1]}}e.exports=function(e,t){var n=t;return i.each(e.get("children"),(function(e){
// 这段代码假设了子元素是 axis，同时 title 超出长度，
// 这种临时代码需要在 4.0 中修复掉
e instanceof r.Group&&i.each(e.get("children"),(function(e){if(e instanceof r.Group&&e.get("children").length||e instanceof r.Path)n=a(n,e.getBBox());else if(e instanceof r.Text){
// title
var t=function(e){var t=e.getBBox(),n={x:t.minX,y:t.minY},r={x:t.maxX,y:t.maxY},i=e.attr("matrix");return n=o(n,i),r=o(r,i),{minX:n.x,minY:n.y,maxX:r.x,maxY:r.y}}(e);n=a(n,t)}}))})),n}},
/* 202 */
/***/function(e,t){e.exports=function(e,t){return{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}};
/***/},
/* 203 */
/***/function(e,t){e.exports=function(e){return{minX:e.tl.x,minY:e.tl.y,maxX:e.br.x,maxY:e.br.y}};
/***/},
/* 204 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=_,
/* harmony export (immutable) */t.b=I,
/* harmony export (immutable) */t.c=function(){return++C};
/* harmony import */var r=n(102),i=n(512),a=n(526),o=n(527),s=n(528),c=n(529),l=n(530),u=n(531),h=n(532),f=n(533),d=n(534),p=n(535),g=n(536),m=n(537),v=n(538),y=n(539),A=n(540),b=n(541),w=n(421),x=n(542),C=0;
/* harmony import */function _(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function I(e){return Object(r.selection)().transition(e)}var E=r.selection.prototype;_.prototype=I.prototype={constructor:_,select:d.a,selectAll:p.a,filter:l.a,merge:u.a,selection:g.a,transition:b.a,call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:h.a,attr:i.a,attrTween:a.a,style:m.a,styleTween:v.a,text:y.a,textTween:A.a,remove:f.a,tween:w.a,delay:o.a,duration:s.a,ease:c.a,end:x.a}},
/* 205 */
/***/function(e,t,n){var r=n(0),i=r.DomUtil,a=["start","process","end","reset"],o=function(){var e=t.prototype;function t(e,t){var n=this,i=n.getDefaultCfg();r.assign(n,i,e),n.view=n.chart=t,n.canvas=t.get("canvas"),n._bindEvents()}return e.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},e._start=function(e){var t=this;t.preStart&&t.preStart(e),t.start(e),t.onStart&&t.onStart(e)},e._process=function(e){var t=this;t.preProcess&&t.preProcess(e),t.process(e),t.onProcess&&t.onProcess(e)},e._end=function(e){var t=this;t.preEnd&&t.preEnd(e),t.end(e),t.onEnd&&t.onEnd(e)},e._reset=function(e){var t=this;t.preReset&&t.preReset(e),t.reset(e),t.onReset&&t.onReset(e)},e.start=function(){// TODO override
},e.process=function(){// TODO override
},e.end=function(){// TODO override
},e.reset=function(){// TODO override
},e._bindEvents=function(){var e=this,t=e.canvas.get("canvasDOM");e._clearEvents(),r.each(a,(function(n){var a=r.upperFirst(n);e["_on"+a+"Listener"]=i.addEventListener(t,e[n+"Event"],r.wrapBehavior(e,"_"+n))}))},e._clearEvents=function(){var e=this;r.each(a,(function(t){var n="_on"+r.upperFirst(t)+"Listener";e[n]&&e[n].remove()}))},e.destroy=function(){this._clearEvents()},t}();e.exports=o},
/* 206 */
/***/function(e,t,n){var r=n(105),i=n(18),a=n(142),o=n(163),s=n(8),c=n(21),l=n(0),u={
// version
version:s.version,
// visual encoding
Animate:a,Chart:o,Global:s,Scale:r,Shape:c,Util:l,
// render engine
G:i,DomUtil:l.DomUtil,MatrixUtil:l.MatrixUtil,PathUtil:l.PathUtil,// G2.track = function(enable) {
//   Global.trackable = enable;
// };
// require('./track');
track:function(){}};// 保证两个版本共存
"undefined"!=typeof window&&(window.G2||(window.G2=u)),e.exports=u},
/* 207 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.c=function(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(e)?t:e)},
/* harmony export (immutable) */t.b=function(e){return 1==(e=+e)?a:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Object(r.a)(isNaN(t)?n:t)}},
/* harmony export (immutable) */t.a=a;
/* harmony import */var r=n(451);function i(e,t){return function(n){return e+n*t}}function a(e,t){var n=t-e;return n?i(e,n):Object(r.a)(isNaN(e)?t:e)}
/***/},
/* 208 */
/***/function(e,t,n){
/**
 * @fileOverview 自动计算数字坐标轴
 * @author dxq613@gmail.com
 */
var r=n(6),i=n(11),a=n(107),o=[1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[1,2,4,5,10];e.exports=function(e){var t=e.min,n=e.max,c=e.interval,l=e.minTickInterval,u=[],h=e.minCount||5,f=e.maxCount||7,d=h===f,p=r(e.minLimit)?-1/0:e.minLimit,g=r(e.maxLimit)?1/0:e.maxLimit,m=(h+f)/2,v=m,y=e.snapArray?e.snapArray:d?o:s;if(// 如果限定大小范围，同时大小范围等于用户传入的范围，同时限定了个数，interval 按照个数均分
t===p&&n===g&&d&&(c=(n-t)/(v-1)),r(t)&&(t=0),r(n)&&(n=0),Math.abs(n-t)<1e-12&&(0===t?n=1:t>0?t=0:n=0,n-t<5&&!c&&n-t>=1&&(c=1)),r(c)){
// 计算间距
var A=(n-t)/(m-1);c=a.snapFactorTo(A,y,"ceil"),f!==h&&((v=parseInt((n-t)/c,10))>f&&(v=f),v<h&&(v=h),// 不确定tick的个数时，使得tick偏小
c=a.snapFactorTo((n-t)/(v-1),y))}// interval should not be less than minTickInterval
if(i(l)&&c<l&&(c=l),e.interval||f!==h){
// 校正 max 和 min
n=Math.min(a.snapMultiple(n,c,"ceil"),g),// 向上逼近
t=Math.max(a.snapMultiple(t,c,"floor"),p),// 向下逼近
v=Math.round((n-t)/c),t=a.fixedBase(t,c),// 当min为负数的时候，fixedBase后，min可能会大于minLimit，导致最终产出的tick是大于minLimit的，所以必须进行修正
n=a.fixedBase(n,c);for(var b=null;t>p&&p>-1/0&&(null===b||t<b);)
// 保证计算出来的刻度最小值 min， 不大于数据最小值 min
b=t,t=a.fixedBase(t-c,c)}else{m=parseInt(m,10);// 取整
var w,x=(n+t)/2,C=a.snapMultiple(x,c,"ceil"),_=Math.floor((m-2)/2),I=C+_*c;w=m%2==0?C-_*c:C-(_+1)*c;// 如果减去intervl, fixBase后，新的minTick没有大于之前的值，就退出，防止死循环
for(var E=null;I<n&&(null===E||I>E);)
// 保证计算出来的刻度最大值 maxTick 不小于数据最大值 max
E=I,I=a.fixedBase(I+c,c);// 如果减去intervl, fixBase后，新的minTick没有小于之前的值，就退出，防止死循环
for(var k=null;w>t&&(null===k||w<k);)
// 保证计算出来的刻度最小值 minTick 不大于数据最小值 min
k=w,w=a.fixedBase(w-c,c);n=I,t=w}n=Math.min(n,g),t=Math.max(t,p),u.push(t);for(var S=1;S<v;S++){var B=a.fixedBase(c*S+t,c);B<n&&u.push(B)}return u[u.length-1]<n&&u.push(n),{min:t,max:n,interval:c,count:v,ticks:u}}},
/* 209 */
/***/function(e,t,n){var r=n(20),i=n(11),a=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",
/**
     * 常量值
     * @type {*}
     */
this.value=null}
/**
   * @override
   */,a.getText=function(){return this.value.toString()}
/**
   * @override
   */,a.scale=function(e){return this.value!==e&&i(e)?e:this.range[0]}
/**
   * @override
   */,a.invert=function(){return this.value},r}(r);r.Identity=a,e.exports=a},
/* 210 */
/***/function(e,t,n){
/**
 * @fileOverview The measurement of linear data scale function
 * @author dxq613@gmail.com
 */
var r=n(110),i=n(3),a=n(6),o=n(12),s=n(20),c=n(38),l=n(211),u=n(100),h=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=s.prototype;return c._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"}
/**
   * @override
   */,c.init=function(){var t=this,n=t.values;if(n&&n.length){
// 重新计算最大最小值
var r=[],o=1/0,s=o,c=0;// 使用一个循环，计算min,max,secondMin
i(n,(function(e){var n=t._toTimeStamp(e);if(isNaN(n))throw new TypeError("Invalid Time: "+e);o>n?(s=o,o=n):s>n&&(s=n),c<n&&(c=n),r.push(n)})),// 存在多个值时，设置最小间距
n.length>1&&(t.minTickInterval=s-o),(a(t.min)||t._toTimeStamp(t.min)>o)&&(t.min=o),(a(t.max)||t._toTimeStamp(t.max)<c)&&(t.max=c)}e.prototype.init.call(this)},c.calculateTicks=function(){var e=this,t=e.min,n=e.max,r=e.tickCount,i=e.tickInterval;return l({min:t,max:n,minCount:r,maxCount:r,interval:i,minInterval:e.minTickInterval}).ticks}
/**
   * @override
   */,c.getText=function(e){var t=this.formatter;return e=this.translate(e),e=t?t(e):r.format(e,this.mask)}
/**
   * @override
   */,c.scale=function(t){return o(t)&&(t=this.translate(t)),e.prototype.scale.call(this,t)}
/**
   * @override
   */,c.translate=function(e){return this._toTimeStamp(e)}// 将时间转换为时间戳
,c._toTimeStamp=function(e){return u.toTimeStamp(e)},s}(c);s.Time=h,e.exports=h},
/* 211 */
/***/function(e,t,n){
/**
 * @fileOverview 计算时间坐标轴
 * @author dxq613@gmail.com
 */
var r=n(107),i=n(6),a=[1,2,4,6,8,12],o=6e4,s=36e5,c=864e5;function l(e){return new Date(e).getFullYear()}function u(e){return new Date(e,0,1).getTime()}function h(e){return new Date(e).getMonth()}function f(e,t){return new Date(e,t,1).getTime()}e.exports=function(e){var t,n=e.minInterval,d=[],p=e.min,g=e.max,m=e.interval;// 计算间距
if(// 如果最大值和最小值相等，则设置最大值大于最小值一天
g===p&&(g=p+c),i(m)){var v=c,y=365*v;// 年代表的秒
m=parseInt((g-p)/(e.maxCount||6),10),n&&n>m&&(m=n);var A=m/y,b=l(p);// 大于半年
if(A>.51){for(var w=Math.ceil(A),x=l(g),C=b// interval = year * yms;
;C<=x+w;C+=w)d.push(u(C));m=null}else if(A>.0834){for(
// 大于一个月
var _=Math.ceil(A/.0834),I=h(p),E=function(e,t){var n=l(e),r=l(t),i=h(e);return 12*(r-n)+(h(t)-i)%12}(p,g),k=0;k<=E+_;k+=_)d.push(f(b,k+I));m=null}else if(m>.5*v){
// 大于一天
var S=new Date(p),B=S.getFullYear(),M=S.getMonth(p),T=S.getDate(),O=Math.ceil(m/v),D=function(e,t){return Math.ceil((t-e)/c)}(p,g);m=O*v;for(var P=0;P<D+O;P+=O)d.push(new Date(B,M,T+P).getTime())}else if(m>s){
// 大于一个小时
var L=new Date(p),Q=L.getFullYear(),R=L.getMonth(p),j=L.getDate(),N=L.getHours(),F=r.snapTo(a,Math.ceil(m/s)),z=function(e,t){return Math.ceil((t-e)/s)}(p,g);m=F*s;for(var H=0;H<=z+F;H+=F)d.push(new Date(Q,R,j,N+H).getTime())}else if(m>o){
// 最小单位是分钟
var U=function(e,t){return Math.ceil((t-e)/6e4)}(p,g),G=Math.ceil(m/o);m=G*o;for(var V=0;V<=U+G;V+=G)d.push(p+V*o)}else{m<1e3&&(m=1e3),p=1e3*Math.floor(p/1e3);var W=Math.ceil((g-p)/1e3),q=Math.ceil(m/1e3);m=1e3*q;for(var Y=0;Y<W+q;Y+=q)d.push(p+1e3*Y)}}if(!d.length){p=1e3*Math.floor(p/1e3),t=((g=1e3*Math.ceil(g/1e3))-p)/m;for(var K=0;K<=t;K++)d.push(r.fixedBase(m*K+p,m))}return{max:g,min:p,interval:m,ticks:d,count:d.length}}},
/* 212 */
/***/function(e,t,n){
/**
 * @fileOverview 时间数据作为分类类型
 * @author dxq613@gmail.com
 */
var r=n(20),i=n(108),a=n(110),o=n(109),s=n(100),c=n(3),l=n(11),u=n(22),h=n(12),f=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this),this.type="timeCat",
/**
     * 是否需要排序，默认进行排序
     * @type {Boolean}
     */
this.sortable=!0,this.tickCount=5,
/**
     * 时间格式化
     * @type {String}
     */
this.mask="YYYY-MM-DD"},i.init=function(){var e=this,t=this.values;// 针对时间分类类型，会将时间统一转换为时间戳
c(t,(function(n,r){t[r]=e._toTimeStamp(n)})),this.sortable&&
// 允许排序
t.sort((function(e,t){return e-t})),e.ticks||(e.ticks=this.calculateTicks())}
/**
   * 计算 ticks
   * @return {array} 返回 ticks 数组
   */,i.calculateTicks=function(){var e=this,t=e.tickCount;return t?o({maxCount:t,data:e.values,isRounding:e.isRounding}).ticks:e.values}
/**
   * @override
   */,i.translate=function(e){e=this._toTimeStamp(e);var t=this.values.indexOf(e);return-1===t&&(t=l(e)&&e<this.values.length?e:NaN),t}
/**
   * @override
   */,i.scale=function(e){var t=this.rangeMin(),n=this.rangeMax(),r=this.translate(e);return t+(1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0)*(n-t)}
/**
   * @override
   */,i.getText=function(e){var t="",n=this.translate(e);t=n>-1?this.values[n]:e;var r=this.formatter;return t=parseInt(t,10),t=r?r(t):a.format(t,this.mask)}
/**
   * @override
   */,i.getTicks=function(){var e=this,t=this.ticks,n=[];return c(t,(function(t){var r;r=u(t)?t:{text:h(t)?t:e.getText(t),value:e.scale(t),tickValue:t},n.push(r)})),n}// 将时间转换为时间戳
,i._toTimeStamp=function(e){return s.toTimeStamp(e)},r}(i);r.TimeCat=f,e.exports=f},
/* 213 */
/***/function(e,t,n){
/**
 * @fileOverview 使用度量，进行log转换
 * @author dxq613@gmail.com
 */
var r=n(3),i=n(20);// 计算log
function a(e,t){return 1===e?1:Math.log(t)/Math.log(e)}
/**
 * 度量的log计算
 * @class Scale.Log
 */var o=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this),this.type="log",
/**
     * @override
     * log 的坐标点的个数控制在10个以下
     * @type {Number}
     */
this.tickCount=10,
/**
     * 进行log计算的基数
     * @type {Number}
     */
this.base=2,// 最小的tick，仅内部使用
this._minTick=null}
/**
   * @override
   */,o.calculateTicks=function(){var e,t=this,n=t.base;if(t.min<0)throw new Error("The minimum value must be greater than zero!");var i=a(n,t.max);if(t.min>0)e=Math.floor(a(n,t.min));else{var o=t.values,s=t.max;// 查找大于0的第一个值, 如果都小于0，默认为1
r(o,(function(e){e>0&&e<s&&(s=e)})),s===t.max&&(s=t.max/n),s>1&&(s=1),e=Math.floor(a(n,s)),t._minTick=e,t.positiveMin=s}for(var c=i-e,l=t.tickCount,u=Math.ceil(c/l),h=[],f=e;f<i+u;f+=u)h.push(Math.pow(n,f));return 0===t.min&&h.unshift(0),h}// 获取度量计算时，value占的定义域百分比
,o._getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;// 如果值小于等于0，则按照0处理
if(e<=0)return 0;var r=this.base,i=this.positiveMin;// 如果min == 0, 则根据比0大的最小值，计算比例关系。这个最小值作为坐标轴上的第二个tick，第一个是0但是不显示
return i&&(n=1*i/r),// 如果数值小于次小值，那么就计算 value / 次小值 占整体的比例
e<i?e/i/(a(r,t)-a(r,n)):(a(r,e)-a(r,n))/(a(r,t)-a(r,n))}
/**
   * @override
   */,o.scale=function(e){var t=this._getScalePercent(e),n=this.rangeMin();return n+t*(this.rangeMax()-n)}
/**
   * @override
   */,o.invert=function(e){var t,n=this.base,r=a(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===e)return 0;var c=1/(r-(t=a(n,s/n)))*o;// 0 到 positiveMin的占比
if(e<c)
// 落到 0 - positiveMin 之间
return e/c*s}else t=a(n,this.min);var l=(e-i)/o*(r-t)+t;return Math.pow(n,l)},i}(n(38));i.Log=o,e.exports=o},
/* 214 */
/***/function(e,t,n){
/**
 * @fileOverview 使用pow进行度量计算
 * @author dxq613@gmail.com
 */
var r=n(20);// 求以a为次幂，结果为b的基数，如 x^^a = b;求x
function i(e,t){var n=Math.E;// 使用换底公式求底
return Math.pow(n,Math.log(t)/e)}
/**
 * 度量的Pow计算
 * @class Scale.Log
 */var a=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a._initDefaultCfg=function(){e.prototype._initDefaultCfg.call(this),this.type="pow",
/**
     * @override
     * pow 的坐标点的个数控制在10个以下
     * @type {Number}
     */
this.tickCount=10,
/**
     * 进行pow计算的基数
     * @type {Number}
     */
this.exponent=2}
/**
   * @override
   */,a.calculateTicks=function(){var e,t=this,n=t.exponent,r=Math.ceil(i(n,t.max));if((e=t.min>=0?Math.floor(i(n,t.min)):0)>r){var a=r;r=e,e=a}for(var o=r-e,s=t.tickCount,c=Math.ceil(o/s),l=[],u=e;u<r+c;u+=c)l.push(Math.pow(u,n));return l}// 获取度量计算时，value占的定义域百分比
,a._getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;var r=this.exponent;return(i(r,e)-i(r,n))/(i(r,t)-i(r,n))}
/**
   * @override
   */,a.scale=function(e){var t=this._getScalePercent(e),n=this.rangeMin();return n+t*(this.rangeMax()-n)}
/**
   * @override
   */,a.invert=function(e){var t=(e-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,r=i(n,this.max),a=i(n,this.min),o=t*(r-a)+a;return Math.pow(o,n)},r}(n(38));r.Pow=a,e.exports=a},
/* 215 */
/***/function(e,t,n){var r=n(216).detect,i=n(1),a=n(221),o=n(115),s=n(228),c=n(253),l=r(),u=l&&"firefox"===l.name,h=function e(t){e.superclass.constructor.call(this,t)};h.CFG={eventEnable:!0,
/**
   * 像素宽度
   * @type {Number}
   */
width:null,
/**
   * 像素高度
   * @type {Number}
   */
height:null,
/**
   * 画布宽度
   * @type {Number}
   */
widthCanvas:null,
/**
   * 画布高度
   * @type {Number}
   */
heightCanvas:null,
/**
   * CSS宽
   * @type {String}
   */
widthStyle:null,
/**
   * CSS高
   * @type {String}
   */
heightStyle:null,
/**
   * 容器DOM
   * @type {Object}
   */
containerDOM:null,
/**
   * 当前Canvas的DOM
   * @type {Object}
   */
canvasDOM:null,
/**
   * 屏幕像素比
   * @type {Number}
   */
pixelRatio:null,
/**
   * 渲染器，默认是canvas
   * @type {String}
   */
renderer:"canvas",
/**
   * 是否支持 CSS Transform
   * CSS transform 目前尚未经过长时间验证，为了避免影响上层业务，默认关闭，上层按需开启
   */
supportCSSTransform:!1},i.extend(h,o),i.augment(h,a,{init:function(){h.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this.registerEvent(this)},_scale:function(){if("svg"!==this._cfg.renderType){var e=this.get("pixelRatio");this.scale(e,e)}},_setGlobalParam:function(){var e=this.get("renderer")||"canvas";"svg"===e?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",i.getRatio()),this._cfg.renderType=e;var t=c[e];this._cfg.renderer=t,this._cfg.canvas=this;var n=new s(this);this._cfg.timeline=n},_setContainer:function(){var e=this.get("containerId"),t=this.get("containerDOM");t||(t=document.getElementById(e),this.set("containerDOM",t)),i.modifyCSS(t,{position:"relative"})},_initPainter:function(){var e=this.get("containerDOM"),t=new this._cfg.renderer.painter(e);this._cfg.painter=t,this._cfg.canvasDOM=this._cfg.el=t.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var e=this.get("canvasDOM"),t=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");e.style.width=r,e.style.height=i,e.setAttribute("width",t),e.setAttribute("height",n)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSize:function(e,t){var n=this.get("pixelRatio"),r=e*n,i=t*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",e+"px"),this.set("heightStyle",t+"px"),this.set("width",e),this.set("height",t),this._resize()},getPointByEvent:function(e){if(this.get("supportCSSTransform")){var t=this.get("pixelRatio")||1;// For Firefox <= 38
if(u&&!i.isNil(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX*t,y:e.layerY*t};if(!i.isNil(e.offsetX))
// For IE6+, Firefox >= 39, Chrome, Safari, Opera
return{x:e.offsetX*t,y:e.offsetY*t}}// should calculate by self for other cases, like Safari in ios
// TODO: support CSS transform
var n=this.getClientByEvent(e),r=n.x,a=n.y;return this.getPointByClient(r,a)},
// 获取 touch 事件的 clientX 和 clientY 需要单独处理
getClientByEvent:function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},
/**
   * 将窗口坐标转变成 canvas 坐标
   * @param  {Number} clientX 窗口x坐标
   * @param  {Number} clientY 窗口y坐标
   * @return {Object} canvas坐标
   */
getPointByClient:function(e,t){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(e-i.left)*r,y:(t-i.top)*r}},getClientByPoint:function(e,t){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:e/r+n.left,clientY:t/r+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(e,t,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,e,t,n):h.superclass.getShape.call(this,e,t)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var e=this._cfg,t=e.containerDOM,n=e.canvasDOM;n&&t&&t.removeChild(n),e.timeline.stop(),h.superclass.destroy.call(this)}}),e.exports=h},
/* 216 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
/* WEBPACK VAR INJECTION */function(e){/* harmony export (binding) */n.d(t,"BrowserInfo",(function(){return i})),
/* harmony export (binding) */n.d(t,"NodeInfo",(function(){return a})),
/* harmony export (binding) */n.d(t,"SearchBotDeviceInfo",(function(){return o})),
/* harmony export (binding) */n.d(t,"BotInfo",(function(){return s})),
/* harmony export (binding) */n.d(t,"ReactNativeInfo",(function(){return c})),
/* harmony export (immutable) */t.detect=function(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?p(navigator.userAgent):m()},
/* harmony export (immutable) */t.browserName=function(e){var t=d(e);return t?t[0]:null},
/* harmony export (immutable) */t.parseUserAgent=p,
/* harmony export (immutable) */t.detectOS=g,
/* harmony export (immutable) */t.getNodeVersion=m;var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},a=function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform},o=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,// NOTE: deprecated test name instead
this.name="bot",this.version=null,this.os=null},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=3,h=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){
// opted for using reduce here rather than Array#first with a regex.test call
// this is primarily because using the reduce we only perform the regex
// execution once rather than once for the test and for the exec again below
// probably something that needs to be benchmarked though
return""!==e&&h.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var a=i.exec(e);return!!a&&[r,a]}),!1)}function p(e){var t=d(e);if(!t)return null;var n=t[0],a=t[1];if("searchbot"===n)return new s;// Do not use RegExp for split operation as some browser do not support it (See: http://blog.stevenlevithan.com/archives/cross-browser-split)
var c=a[1]&&a[1].split(".").join("_").split("_").slice(0,3);c?c.length<u&&(c=r(r([],c,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}
/* WEBPACK VAR INJECTION */(u-c.length),!0)):c=[];var h=c.join("."),f=g(e),p=l.exec(e);return p&&p[1]?new o(n,h,f,p[1]):new i(n,h,f)}function g(e){for(var t=0,n=f.length;t<n;t++){var r=f[t],i=r[0];if(r[1].exec(e))return i}return null}function m(){return void 0!==e&&e.version?new a(e.version.slice(1)):null}}.call(t,n(217))
/***/},
/* 217 */
/***/function(e,t){
// shim for using process in browser
var n,r,i=e.exports={};// cached from whatever global is present so that test runners that stub it
// don't break things.  But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals.  It's inside a
// function because try/catches deoptimize in certain engines.
function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)
//normal enviroments in sane situations
return setTimeout(e,0);// if setTimeout wasn't available but was latter defined
if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{
// when when somebody has screwed with setTimeout but no I.E. maddness
return n(e,0)}catch(t){try{
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return n.call(null,e,0)}catch(t){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)
//normal enviroments in sane situations
return clearTimeout(e);// if clearTimeout wasn't available but was latter defined
if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{
// when when somebody has screwed with setTimeout but no I.E. maddness
return r(e)}catch(t){try{
// When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
return r.call(null,e)}catch(t){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return r.call(this,e)}}}(e)}}// v8 likes predictible objects
function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",// empty string to avoid regexp issues
i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},
/* 218 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sub=t.mul=void 0,t.create=
/**
 * 3x3 Matrix
 * @module mat3
 */
/**
 * Creates a new identity mat3
 *
 * @returns {mat3} a new 3x3 matrix
 */
function(){var e=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}
/**
 * Copies the upper-left 3x3 values into the given mat3.
 *
 * @param {mat3} out the receiving 3x3 matrix
 * @param {mat4} a   the source 4x4 matrix
 * @returns {mat3} out
 */,t.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}
/**
 * Creates a new mat3 initialized with values from an existing matrix
 *
 * @param {mat3} a matrix to clone
 * @returns {mat3} a new 3x3 matrix
 */,t.clone=function(e){var t=new r.ARRAY_TYPE(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}
/**
 * Copy the values from one mat3 to another
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the source matrix
 * @returns {mat3} out
 */,t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}
/**
 * Create a new mat3 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m10 Component in column 1, row 0 position (index 3)
 * @param {Number} m11 Component in column 1, row 1 position (index 4)
 * @param {Number} m12 Component in column 1, row 2 position (index 5)
 * @param {Number} m20 Component in column 2, row 0 position (index 6)
 * @param {Number} m21 Component in column 2, row 1 position (index 7)
 * @param {Number} m22 Component in column 2, row 2 position (index 8)
 * @returns {mat3} A new mat3
 */,t.fromValues=function(e,t,n,i,a,o,s,c,l){var u=new r.ARRAY_TYPE(9);return u[0]=e,u[1]=t,u[2]=n,u[3]=i,u[4]=a,u[5]=o,u[6]=s,u[7]=c,u[8]=l,u}
/**
 * Set the components of a mat3 to the given values
 *
 * @param {mat3} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m10 Component in column 1, row 0 position (index 3)
 * @param {Number} m11 Component in column 1, row 1 position (index 4)
 * @param {Number} m12 Component in column 1, row 2 position (index 5)
 * @param {Number} m20 Component in column 2, row 0 position (index 6)
 * @param {Number} m21 Component in column 2, row 1 position (index 7)
 * @param {Number} m22 Component in column 2, row 2 position (index 8)
 * @returns {mat3} out
 */,t.set=function(e,t,n,r,i,a,o,s,c,l){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=c,e[8]=l,e}
/**
 * Set a mat3 to the identity matrix
 *
 * @param {mat3} out the receiving matrix
 * @returns {mat3} out
 */,t.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}
/**
 * Transpose the values of a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the source matrix
 * @returns {mat3} out
 */,t.transpose=function(e,t){
// If we are transposing ourselves we can skip a few steps but have to cache some values
if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}
/**
 * Inverts a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the source matrix
 * @returns {mat3} out
 */,t.invert=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*o-s*l,f=-u*a+s*c,d=l*a-o*c,p=n*h+r*f+i*d;return p?(p=1/p,e[0]=h*p,e[1]=(-u*r+i*l)*p,e[2]=(s*r-i*o)*p,e[3]=f*p,e[4]=(u*n-i*c)*p,e[5]=(-s*n+i*a)*p,e[6]=d*p,e[7]=(-l*n+r*c)*p,e[8]=(o*n-r*a)*p,e):null}
/**
 * Calculates the adjugate of a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the source matrix
 * @returns {mat3} out
 */,t.adjoint=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8];return e[0]=o*u-s*l,e[1]=i*l-r*u,e[2]=r*s-i*o,e[3]=s*c-a*u,e[4]=n*u-i*c,e[5]=i*a-n*s,e[6]=a*l-o*c,e[7]=r*c-n*l,e[8]=n*o-r*a,e}
/**
 * Calculates the determinant of a mat3
 *
 * @param {mat3} a the source matrix
 * @returns {Number} determinant of a
 */,t.determinant=function(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*(l*a-o*c)+n*(-l*i+o*s)+r*(c*i-a*s)}
/**
 * Multiplies two mat3's
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the first operand
 * @param {mat3} b the second operand
 * @returns {mat3} out
 */,t.multiply=i,t.translate=
/**
 * Translate a mat3 by the given vector
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the matrix to translate
 * @param {vec2} v vector to translate by
 * @returns {mat3} out
 */
function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=n[0],d=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e[6]=f*r+d*o+l,e[7]=f*i+d*s+u,e[8]=f*a+d*c+h,e}
/**
 * Rotates a mat3 by the given angle
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat3} out
 */,t.rotate=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=Math.sin(n),d=Math.cos(n);return e[0]=d*r+f*o,e[1]=d*i+f*s,e[2]=d*a+f*c,e[3]=d*o-f*r,e[4]=d*s-f*i,e[5]=d*c-f*a,e[6]=l,e[7]=u,e[8]=h,e},t.scale=
/**
 * Scales the mat3 by the dimensions in the given vec2
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the matrix to rotate
 * @param {vec2} v the vec2 to scale the matrix by
 * @returns {mat3} out
 **/
function(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}
/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.translate(dest, dest, vec);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {vec2} v Translation vector
 * @returns {mat3} out
 */,t.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}
/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.rotate(dest, dest, rad);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat3} out
 */,t.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}
/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.scale(dest, dest, vec);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {vec2} v Scaling vector
 * @returns {mat3} out
 */,t.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}
/**
 * Copies the values from a mat2d into a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {mat2d} a the matrix to copy
 * @returns {mat3} out
 **/,t.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}
/**
* Calculates a 3x3 matrix from the given quaternion
*
* @param {mat3} out mat3 receiving operation result
* @param {quat} q Quaternion to create matrix from
*
* @returns {mat3} out
*/,t.fromQuat=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,h=r*s,f=i*o,d=i*s,p=i*c,g=a*o,m=a*s,v=a*c;return e[0]=1-h-p,e[3]=u-v,e[6]=f+m,e[1]=u+v,e[4]=1-l-p,e[7]=d-g,e[2]=f-m,e[5]=d+g,e[8]=1-l-h,e}
/**
* Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix
*
* @param {mat3} out mat3 receiving operation result
* @param {mat4} a Mat4 to derive the normal matrix from
*
* @returns {mat3} out
*/,t.normalFromMat4=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=t[9],f=t[10],d=t[11],p=t[12],g=t[13],m=t[14],v=t[15],y=n*s-r*o,A=n*c-i*o,b=n*l-a*o,w=r*c-i*s,x=r*l-a*s,C=i*l-a*c,_=u*g-h*p,I=u*m-f*p,E=u*v-d*p,k=h*m-f*g,S=h*v-d*g,B=f*v-d*m,M=y*B-A*S+b*k+w*E-x*I+C*_;return M?(M=1/M,e[0]=(s*B-c*S+l*k)*M,e[1]=(c*E-o*B-l*I)*M,e[2]=(o*S-s*E+l*_)*M,e[3]=(i*S-r*B-a*k)*M,e[4]=(n*B-i*E+a*I)*M,e[5]=(r*E-n*S-a*_)*M,e[6]=(g*C-m*x+v*w)*M,e[7]=(m*b-p*C-v*A)*M,e[8]=(p*x-g*b+v*y)*M,e):null}
/**
 * Generates a 2D projection matrix with the given bounds
 *
 * @param {mat3} out mat3 frustum matrix will be written into
 * @param {number} width Width of your gl context
 * @param {number} height Height of gl context
 * @returns {mat3} out
 */,t.projection=function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}
/**
 * Returns a string representation of a mat3
 *
 * @param {mat3} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */,t.str=function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"}
/**
 * Returns Frobenius norm of a mat3
 *
 * @param {mat3} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */,t.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+Math.pow(e[6],2)+Math.pow(e[7],2)+Math.pow(e[8],2))}
/**
 * Adds two mat3's
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the first operand
 * @param {mat3} b the second operand
 * @returns {mat3} out
 */,t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e}
/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the first operand
 * @param {mat3} b the second operand
 * @returns {mat3} out
 */,t.subtract=a,t.multiplyScalar=
/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat3} out the receiving matrix
 * @param {mat3} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat3} out
 */
function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e}
/**
 * Adds two mat3's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat3} out the receiving vector
 * @param {mat3} a the first operand
 * @param {mat3} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat3} out
 */,t.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e}
/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {mat3} a The first matrix.
 * @param {mat3} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */,t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]}
/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {mat3} a The first matrix.
 * @param {mat3} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */,t.equals=function(e,t){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=t[0],d=t[1],p=t[2],g=t[3],m=t[4],v=t[5],y=t[6],A=t[7],b=t[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-p)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-m)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-v)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(l-y)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-A)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(h-b)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))}
/**
 * Alias for {@link mat3.multiply}
 * @function
 */;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(74));function i(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=n[0],d=n[1],p=n[2],g=n[3],m=n[4],v=n[5],y=n[6],A=n[7],b=n[8];return e[0]=f*r+d*o+p*l,e[1]=f*i+d*s+p*u,e[2]=f*a+d*c+p*h,e[3]=g*r+m*o+v*l,e[4]=g*i+m*s+v*u,e[5]=g*a+m*c+v*h,e[6]=y*r+A*o+b*l,e[7]=y*i+A*s+b*u,e[8]=y*a+A*c+b*h,e}function a(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}t.mul=i,t.sub=a},
/* 219 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.sqrLen=t.sqrDist=t.dist=t.div=t.mul=t.sub=t.len=void 0,t.create=a,t.clone=
/**
 * Creates a new vec2 initialized with values from an existing vector
 *
 * @param {vec2} a vector to clone
 * @returns {vec2} a new 2D vector
 */
function(e){var t=new i.ARRAY_TYPE(2);return t[0]=e[0],t[1]=e[1],t}
/**
 * Creates a new vec2 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @returns {vec2} a new 2D vector
 */,t.fromValues=function(e,t){var n=new i.ARRAY_TYPE(2);return n[0]=e,n[1]=t,n}
/**
 * Copy the values from one vec2 to another
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the source vector
 * @returns {vec2} out
 */,t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e}
/**
 * Set the components of a vec2 to the given values
 *
 * @param {vec2} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @returns {vec2} out
 */,t.set=function(e,t,n){return e[0]=t,e[1]=n,e}
/**
 * Adds two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec2} out
 */,t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}
/**
 * Subtracts vector b from vector a
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec2} out
 */,t.subtract=o,t.multiply=s,t.divide=c,t.ceil=
/**
 * Math.ceil the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a vector to ceil
 * @returns {vec2} out
 */
function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}
/**
 * Math.floor the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a vector to floor
 * @returns {vec2} out
 */,t.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}
/**
 * Returns the minimum of two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec2} out
 */,t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}
/**
 * Returns the maximum of two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec2} out
 */,t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}
/**
 * Math.round the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a vector to round
 * @returns {vec2} out
 */,t.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e}
/**
 * Scales a vec2 by a scalar number
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec2} out
 */,t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}
/**
 * Adds two vec2's after scaling the second operand by a scalar value
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec2} out
 */,t.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}
/**
 * Calculates the euclidian distance between two vec2's
 *
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {Number} distance between a and b
 */,t.distance=l,t.squaredDistance=u,t.length=h,t.squaredLength=f,t.negate=
/**
 * Negates the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a vector to negate
 * @returns {vec2} out
 */
function(e,t){return e[0]=-t[0],e[1]=-t[1],e}
/**
 * Returns the inverse of the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a vector to invert
 * @returns {vec2} out
 */,t.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}
/**
 * Normalize a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a vector to normalize
 * @returns {vec2} out
 */,t.normalize=function(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(
//TODO: evaluate use of glm_invsqrt here?
i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i),e}
/**
 * Calculates the dot product of two vec2's
 *
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {Number} dot product of a and b
 */,t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]}
/**
 * Computes the cross product of two vec2's
 * Note that the cross product must by definition produce a 3D vector
 *
 * @param {vec3} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec3} out
 */,t.cross=function(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e}
/**
 * Performs a linear interpolation between two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec2} out
 */,t.lerp=function(e,t,n,r){var i=t[0],a=t[1];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e}
/**
 * Generates a random vector with the given scale
 *
 * @param {vec2} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec2} out
 */,t.random=function(e,t){t=t||1;var n=2*i.RANDOM()*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e}
/**
 * Transforms the vec2 with a mat2
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the vector to transform
 * @param {mat2} m matrix to transform with
 * @returns {vec2} out
 */,t.transformMat2=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i,e[1]=n[1]*r+n[3]*i,e}
/**
 * Transforms the vec2 with a mat2d
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the vector to transform
 * @param {mat2d} m matrix to transform with
 * @returns {vec2} out
 */,t.transformMat2d=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}
/**
 * Transforms the vec2 with a mat3
 * 3rd vector component is implicitly '1'
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the vector to transform
 * @param {mat3} m matrix to transform with
 * @returns {vec2} out
 */,t.transformMat3=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7],e}
/**
 * Transforms the vec2 with a mat4
 * 3rd vector component is implicitly '0'
 * 4th vector component is implicitly '1'
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the vector to transform
 * @param {mat4} m matrix to transform with
 * @returns {vec2} out
 */,t.transformMat4=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e}
/**
 * Rotate a 2D vector
 * @param {vec2} out The receiving vec2
 * @param {vec2} a The vec2 point to rotate
 * @param {vec2} b The origin of the rotation
 * @param {Number} c The angle of rotation
 * @returns {vec2} out
 */,t.rotate=function(e,t,n,r){
//Translate point to the origin
var i=t[0]-n[0],a=t[1]-n[1],o=Math.sin(r),s=Math.cos(r);//perform rotation and translate to correct position
return e[0]=i*s-a*o+n[0],e[1]=i*o+a*s+n[1],e}
/**
 * Get the angle between two 2D vectors
 * @param {vec2} a The first operand
 * @param {vec2} b The second operand
 * @returns {Number} The angle in radians
 */,t.angle=function(e,t){var n=e[0],r=e[1],i=t[0],a=t[1],o=n*n+r*r;o>0&&(
//TODO: evaluate use of glm_invsqrt here?
o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(
//TODO: evaluate use of glm_invsqrt here?
s=1/Math.sqrt(s));var c=(n*i+r*a)*o*s;return c>1?0:c<-1?Math.PI:Math.acos(c)}
/**
 * Returns a string representation of a vector
 *
 * @param {vec2} a vector to represent as a string
 * @returns {String} string representation of the vector
 */,t.str=function(e){return"vec2("+e[0]+", "+e[1]+")"}
/**
 * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
 *
 * @param {vec2} a The first vector.
 * @param {vec2} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */,t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]}
/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {vec2} a The first vector.
 * @param {vec2} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */,t.equals=function(e,t){var n=e[0],r=e[1],a=t[0],o=t[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))}
/**
 * Alias for {@link vec2.length}
 * @function
 */;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}
/**
 * 2 Dimensional Vector
 * @module vec2
 */
/**
 * Creates a new, empty vec2
 *
 * @returns {vec2} a new 2D vector
 */(n(74));function a(){var e=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0),e}function o(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}
/**
 * Multiplies two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec2} out
 */function s(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}
/**
 * Divides two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {vec2} out
 */function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function l(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)}
/**
 * Calculates the squared euclidian distance between two vec2's
 *
 * @param {vec2} a the first operand
 * @param {vec2} b the second operand
 * @returns {Number} squared distance between a and b
 */function u(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}
/**
 * Calculates the length of a vec2
 *
 * @param {vec2} a vector to calculate length of
 * @returns {Number} length of a
 */function h(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)}
/**
 * Calculates the squared length of a vec2
 *
 * @param {vec2} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */function f(e){var t=e[0],n=e[1];return t*t+n*n}t.len=h,t.sub=o,t.mul=s,t.div=c,t.dist=l,t.sqrDist=u,t.sqrLen=f,t.forEach=(r=a(),function(e,t,n,i,a,o){var s=void 0,c=void 0;for(t||(t=2),n||(n=0),c=i?Math.min(i*t+n,e.length):e.length,s=n;s<c;s+=t)r[0]=e[s],r[1]=e[s+1],a(r,r,o),e[s]=r[0],e[s+1]=r[1];return e})},
/* 220 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.sqrLen=t.len=t.sqrDist=t.dist=t.div=t.mul=t.sub=void 0,t.create=a,t.clone=
/**
 * Creates a new vec3 initialized with values from an existing vector
 *
 * @param {vec3} a vector to clone
 * @returns {vec3} a new 3D vector
 */
function(e){var t=new i.ARRAY_TYPE(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}
/**
 * Calculates the length of a vec3
 *
 * @param {vec3} a vector to calculate length of
 * @returns {Number} length of a
 */,t.length=o,t.fromValues=s,t.copy=
/**
 * Copy the values from one vec3 to another
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the source vector
 * @returns {vec3} out
 */
function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}
/**
 * Set the components of a vec3 to the given values
 *
 * @param {vec3} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @returns {vec3} out
 */,t.set=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}
/**
 * Adds two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */,t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}
/**
 * Subtracts vector b from vector a
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */,t.subtract=c,t.multiply=l,t.divide=u,t.ceil=
/**
 * Math.ceil the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a vector to ceil
 * @returns {vec3} out
 */
function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}
/**
 * Math.floor the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a vector to floor
 * @returns {vec3} out
 */,t.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}
/**
 * Returns the minimum of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */,t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}
/**
 * Returns the maximum of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */,t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}
/**
 * Math.round the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a vector to round
 * @returns {vec3} out
 */,t.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}
/**
 * Scales a vec3 by a scalar number
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec3} out
 */,t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}
/**
 * Adds two vec3's after scaling the second operand by a scalar value
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec3} out
 */,t.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}
/**
 * Calculates the euclidian distance between two vec3's
 *
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {Number} distance between a and b
 */,t.distance=h,t.squaredDistance=f,t.squaredLength=d,t.negate=
/**
 * Negates the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a vector to negate
 * @returns {vec3} out
 */
function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}
/**
 * Returns the inverse of the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a vector to invert
 * @returns {vec3} out
 */,t.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}
/**
 * Normalize a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a vector to normalize
 * @returns {vec3} out
 */,t.normalize=p,t.dot=g,t.cross=
/**
 * Computes the cross product of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */
function(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=i*c-a*s,e[1]=a*o-r*c,e[2]=r*s-i*o,e}
/**
 * Performs a linear interpolation between two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */,t.lerp=function(e,t,n,r){var i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e}
/**
 * Performs a hermite interpolation with two control points
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @param {vec3} c the third operand
 * @param {vec3} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */,t.hermite=function(e,t,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,c=o*(a-2)+a,l=o*(a-1),u=o*(3-2*a);return e[0]=t[0]*s+n[0]*c+r[0]*l+i[0]*u,e[1]=t[1]*s+n[1]*c+r[1]*l+i[1]*u,e[2]=t[2]*s+n[2]*c+r[2]*l+i[2]*u,e}
/**
 * Performs a bezier interpolation with two control points
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @param {vec3} c the third operand
 * @param {vec3} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */,t.bezier=function(e,t,n,r,i,a){var o=1-a,s=o*o,c=a*a,l=s*o,u=3*a*s,h=3*c*o,f=c*a;return e[0]=t[0]*l+n[0]*u+r[0]*h+i[0]*f,e[1]=t[1]*l+n[1]*u+r[1]*h+i[1]*f,e[2]=t[2]*l+n[2]*u+r[2]*h+i[2]*f,e}
/**
 * Generates a random vector with the given scale
 *
 * @param {vec3} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec3} out
 */,t.random=function(e,t){t=t||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=r*t,e}
/**
 * Transforms the vec3 with a mat4.
 * 4th vector component is implicitly '1'
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the vector to transform
 * @param {mat4} m matrix to transform with
 * @returns {vec3} out
 */,t.transformMat4=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}
/**
 * Transforms the vec3 with a mat3.
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the vector to transform
 * @param {mat3} m the 3x3 matrix to transform with
 * @returns {vec3} out
 */,t.transformMat3=function(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}
/**
 * Transforms the vec3 with a quat
 * Can also be used for dual quaternions. (Multiply it with the real part)
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the vector to transform
 * @param {quat} q quaternion to transform with
 * @returns {vec3} out
 */,t.transformQuat=function(e,t,n){
// benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed
var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],c=t[1],l=t[2],u=i*l-a*c,h=a*s-r*l,f=r*c-i*s,d=i*f-a*h,p=a*u-r*f,g=r*h-i*u,m=2*o;return u*=m,h*=m,f*=m,// vec3.scale(uuv, uuv, 2);
d*=2,p*=2,g*=2,// return vec3.add(out, a, vec3.add(out, uv, uuv));
e[0]=s+u+d,e[1]=c+h+p,e[2]=l+f+g,e}
/**
 * Rotate a 3D vector around the x-axis
 * @param {vec3} out The receiving vec3
 * @param {vec3} a The vec3 point to rotate
 * @param {vec3} b The origin of the rotation
 * @param {Number} c The angle of rotation
 * @returns {vec3} out
 */,t.rotateX=function(e,t,n,r){var i=[],a=[];//Translate point to the origin
return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],//perform rotation
a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),//translate to correct position
e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}
/**
 * Rotate a 3D vector around the y-axis
 * @param {vec3} out The receiving vec3
 * @param {vec3} a The vec3 point to rotate
 * @param {vec3} b The origin of the rotation
 * @param {Number} c The angle of rotation
 * @returns {vec3} out
 */,t.rotateY=function(e,t,n,r){var i=[],a=[];//Translate point to the origin
return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],//perform rotation
a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),//translate to correct position
e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}
/**
 * Rotate a 3D vector around the z-axis
 * @param {vec3} out The receiving vec3
 * @param {vec3} a The vec3 point to rotate
 * @param {vec3} b The origin of the rotation
 * @param {Number} c The angle of rotation
 * @returns {vec3} out
 */,t.rotateZ=function(e,t,n,r){var i=[],a=[];//Translate point to the origin
return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],//perform rotation
a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],//translate to correct position
e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}
/**
 * Get the angle between two 3D vectors
 * @param {vec3} a The first operand
 * @param {vec3} b The second operand
 * @returns {Number} The angle in radians
 */,t.angle=function(e,t){var n=s(e[0],e[1],e[2]),r=s(t[0],t[1],t[2]);p(n,n),p(r,r);var i=g(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}
/**
 * Returns a string representation of a vector
 *
 * @param {vec3} a vector to represent as a string
 * @returns {String} string representation of the vector
 */,t.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}
/**
 * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
 *
 * @param {vec3} a The first vector.
 * @param {vec3} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */,t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}
/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {vec3} a The first vector.
 * @param {vec3} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */,t.equals=function(e,t){var n=e[0],r=e[1],a=e[2],o=t[0],s=t[1],c=t[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-c)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}
/**
 * Alias for {@link vec3.subtract}
 * @function
 */;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}
/**
 * 3 Dimensional Vector
 * @module vec3
 */
/**
 * Creates a new, empty vec3
 *
 * @returns {vec3} a new 3D vector
 */(n(74));function a(){var e=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function o(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}
/**
 * Creates a new vec3 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @returns {vec3} a new 3D vector
 */function s(e,t,n){var r=new i.ARRAY_TYPE(3);return r[0]=e,r[1]=t,r[2]=n,r}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}
/**
 * Multiplies two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}
/**
 * Divides two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {vec3} out
 */function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function h(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}
/**
 * Calculates the squared euclidian distance between two vec3's
 *
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {Number} squared distance between a and b
 */function f(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}
/**
 * Calculates the squared length of a vec3
 *
 * @param {vec3} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */function d(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function p(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(
//TODO: evaluate use of glm_invsqrt here?
a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e}
/**
 * Calculates the dot product of two vec3's
 *
 * @param {vec3} a the first operand
 * @param {vec3} b the second operand
 * @returns {Number} dot product of a and b
 */function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}t.sub=c,t.mul=l,t.div=u,t.dist=h,t.sqrDist=f,t.len=o,t.sqrLen=d,t.forEach=(r=a(),function(e,t,n,i,a,o){var s=void 0,c=void 0;for(t||(t=3),n||(n=0),c=i?Math.min(i*t+n,e.length):e.length,s=n;s<c;s+=t)r[0]=e[s],r[1]=e[s+1],r[2]=e[s+2],a(r,r,o),e[s]=r[0],e[s+1]=r[1],e[s+2]=r[2];return e})},
/* 221 */
/***/function(e,t,n){var r=n(1),i=n(78),a=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave"],o=function(){return(new Date).getTime()},s=null,c=null,l={},u=null,h=0;e.exports={registerEvent:function(){var e=this,t=this.get("el");r.each(a,(function(n){t.addEventListener(n,(function(t){e._triggerEvent(n,t)}),!1)})),// special cases
t.addEventListener("touchstart",(function(t){r.isEmpty(t.touches)||e._triggerEvent("touchstart",t.touches[0])}),!1),t.addEventListener("touchmove",(function(t){r.isEmpty(t.touches)||e._triggerEvent("touchmove",t.touches[0])}),!1),t.addEventListener("touchend",(function(t){r.isEmpty(t.changedTouches)||e._triggerEvent("touchend",t.changedTouches[0])}),!1),t.addEventListener("contextmenu",(function(t){e._triggerEvent("contextmenu",t),t.preventDefault()}),!1)},_getEmitter:function(e,t){if(e){if(!r.isEmpty(e._getEvents()))return e;var n=e.get("parent");if(n&&!t.propagationStopped)return this._getEmitter(n,t)}},_getEventObj:function(e,t,n,r){var a=new i(e,t,!0,!0);// 事件的x,y应该是基于画布左上角的，与canvas的matrix无关
return a.x=n.x,a.y=n.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(e,t){var n=this,r=n.getPointByEvent(t),i=n.getShape(r.x,r.y,t),a=n.get("el");if(// svg原生事件取不到dragover, dragout, drop等事件的对象。这边需要走数学拾取。
u&&"svg"===n.getRenderer()&&(i=n.getShape(r.x,r.y)),"mousemove"===e){if(s&&s!==i&&(n._emitEvent("mouseout",t,r,s),n._emitEvent("mouseleave",t,r,s),u&&n._emitEvent("dragleave",t,r,s),// 当 mouseleave 触发时，如果拾取到其他 shape 的 mouseenter ，鼠标样式会正常
// 当鼠标移出 shape 但是移动到画布上时，没有shape，就不恢复样式。这里判断一下，直接重置
i&&!i.destroyed||(a.style.cursor="default")),u&&(n._emitEvent("drag",t,r,u),
/**
         * H5原生事件中drag同时不会触发mousemove
         * 但是在上层具有嵌套关系的item事件计算中需要用到drag时的mousemove
         * 才能计算dragenter etc.
         */
n._emitEvent("mousemove",t,r,i)),i){if(!u)if(c===i){var f=o()-h,d=l.x-t.clientX,p=l.y-t.clientY;f>120||d*d+p*p>40?(u=i,c=null,this._emitEvent("dragstart",t,r,i)):n._emitEvent("mousemove",t,r,i)}else n._emitEvent("mousemove",t,r,i);s!==i&&(n._emitEvent("mouseenter",t,r,i),n._emitEvent("mouseover",t,r,i),u&&n._emitEvent("dragenter",t,r,i))}else{var g=n._getEventObj("mousemove",t,r,n);n.emit("mousemove",g)}s=i}else if(this._emitEvent(e,t,r,i||this),// e.button === 0 保证按下左键，防止点击右键触发click
u||"mousedown"!==e||0!==t.button||(c=i,l={x:t.clientX,y:t.clientY},h=o()),"mouseup"===e&&0===t.button){var m=l.x-t.clientX,v=l.y-t.clientY,y=m*m+v*v,A=o();(y<40||A-h<200)&&(h=0,this._emitEvent("click",t,r,c||this)),u&&(u._cfg.capture=!0,this._emitEvent("dragend",t,r,u),u=null,this._emitEvent("drop",t,r,i||this)),c=null}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_emitEvent:function(e,t,n,r){var i=this._getEventObj(e,t,n,r),a=this._getEmitter(r,t);return a&&!a.get("destroyed")&&a.emit(e,i),a}}},
/* 222 */
/***/function(e,t,n){var r=n(1);e.exports={canFill:!1,canStroke:!1,initAttrs:function(e){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),e)),this},getDefaultAttrs:function(){return{}},
/**
   * 设置或者设置属性，有以下 4 种情形：
   *   - name 不存在, 则返回属性集合
   *   - name 为字符串，value 为空，获取属性值
   *   - name 为字符串，value 不为空，设置属性值，返回 this
   *   - name 为键值对，value 为空，设置属性值
   *
   * @param  {String | Object} name  属性名
   * @param  {*} value 属性值
   * @return {*} 属性值
   */
attr:function(e,t){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(e)){
// self._attrs = Util.deepMix(self._attrs, name);
for(var i in e)this._setAttr(i,e[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(e,t),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[e]},_setAttr:function(e,t){var n=this,r=this._attrs;r[e]=t,"fill"!==e&&"stroke"!==e?"opacity"!==e?"clip"===e&&t?n._setClip(t):"path"===e&&n._afterSetAttrPath?n._afterSetAttrPath(t):"transform"!==e?"rotate"===e&&n.rotateAtStart(t):n.transform(t):r.globalAlpha=t:r[e+"Style"]=t},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(e){e._cfg.renderer=this._cfg.renderer,e._cfg.canvas=this._cfg.canvas,e._cfg.parent=this._cfg.parent,e.hasFill=function(){return!0}}}},
/* 223 */
/***/function(e,t,n){var r=n(1);// 是否未改变
function i(e){return 1===e[0]&&0===e[1]&&0===e[3]&&1===e[4]&&0===e[6]&&0===e[7]}// 是否仅仅是scale
function a(e){return 0===e[1]&&0===e[3]&&0===e[6]&&0===e[7]}function o(e,t){i(t)||(a(t)?(e[0]*=t[0],e[4]*=t[4]):r.mat3.multiply(e,e,t))}e.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(e,t){var n=this._attrs.matrix;return r.mat3.translate(n,n,[e,t]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(e){var t=this._attrs.matrix;return r.mat3.rotate(t,t,e),this.clearTotalMatrix(),this.attr("matrix",t),this},scale:function(e,t){var n=this._attrs.matrix;return r.mat3.scale(n,n,[e,t]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(e){var t=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(e)>2*Math.PI&&(e=e/180*Math.PI),this.transform([["t",-t,-n],["r",e],["t",t,n]])},move:function(e,t){var n=this.get("x")||0,r=this.get("y")||0;// 当前的x
// 当前的y
return this.translate(e-n,t-r),this.set("x",e),this.set("y",t),this},transform:function(e){var t=this,n=this._attrs.matrix;return r.each(e,(function(e){switch(e[0]){case"t":t.translate(e[1],e[2]);break;case"s":t.scale(e[1],e[2]);break;case"r":t.rotate(e[1]);break;case"m":t.attr("matrix",r.mat3.multiply([],n,e[1])),t.clearTotalMatrix()}})),t},setTransform:function(e){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(e)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(e){return this.attr("matrix",e),this.clearTotalMatrix(),this},apply:function(e,t){var n;return n=t?this._getMatrixByRoot(t):this.attr("matrix"),r.vec3.transformMat3(e,e,n),this},
// 获取到达指定根节点的矩阵
_getMatrixByRoot:function(e){e=e||this;for(var t=this,n=[];t!==e;)n.unshift(t),t=t.get("parent");n.unshift(t);var i=[1,0,0,0,1,0,0,0,1];return r.each(n,(function(e){r.mat3.multiply(i,e.attr("matrix"),i)})),i},
/**
   * 应用到当前元素上的总的矩阵
   * @return {Matrix} 矩阵
   */
getTotalMatrix:function(){var e=this._cfg.totalMatrix;if(!e){e=[1,0,0,0,1,0,0,0,1];var t=this._cfg.parent;t&&o(e,t.getTotalMatrix()),o(e,this.attr("matrix")),this._cfg.totalMatrix=e}return e},
// 清除当前的矩阵
clearTotalMatrix:function(){// this._cfg.totalMatrix = null;
},invert:function(e){var t=this.getTotalMatrix();// 单精屏幕下大多数矩阵没变化
if(a(t))e[0]/=t[0],e[1]/=t[4];else{var n=r.mat3.invert([],t);n&&r.vec3.transformMat3(e,e,n)}return this},resetTransform:function(e){var t=this.attr("matrix");// 不改变时
i(t)||e.transform(t[0],t[1],t[3],t[4],t[6],t[7])}}},
/* 224 */
/***/function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i=n(1),a={delay:"delay",repeat:"repeat",rotate:"rotate"};function o(e,t){var n={},r=t._attrs;for(var i in e.attrs)n[i]=r[i];return n}e.exports={
/**
   * 执行动画
   * @param  {Object}   toProps  动画最终状态
   * @param  {Number}   duration 动画执行时间
   * @param  {String}   easing   动画缓动效果
   * @param  {Function} callback 动画执行后的回调
   * @param  {Number}   delay    动画延迟时间
   */
animate:function(e,t,n,s,c){void 0===c&&(c=0);var l=this;l.set("animating",!0);var u=l.get("timeline");u||(u=l.get("canvas").get("timeline"),l.setSilent("timeline",u));var h=l.get("animators")||[];// 初始化tick
u._timer||u.initTimer(),i.isNumber(s)&&(c=s,s=null),i.isFunction(n)?(s=n,n="easeLinear"):n=n||"easeLinear";var f={repeat:e.repeat,duration:t,easing:n,callback:s,delay:c,startTime:u.getTime(),id:i.uniqueId()};if(e.onFrame)f.onFrame=e.onFrame;else{var d=function(e,t){var n={matrix:null,attrs:{}},r=t._attrs;for(var o in e)"transform"===o?n.matrix=i.transform(t.getMatrix(),e[o]):"matrix"===o?n.matrix=e[o]:i.isColorProp(o)&&i.isGradientColor(e[o])?
// 渐变色不支持动画, 直接跳色
n.attrs[o]=e[o]:a[o]||r[o]===e[o]||("rotate"===o&&(t._attrs.rotate=t._attrs.rotate||0),n.attrs[o]=e[o]);return n}(e,l);f=r({fromAttrs:o(d,l),toAttrs:d.attrs,fromMatrix:i.clone(l.getMatrix()),toMatrix:d.matrix},f)}// 如果动画队列中已经有这个图形了
h.length>0?
// 先检查是否需要合并属性。若有相同的动画，将该属性从前一个动画中删除,直接用后一个动画中
h=function(e,t){if(t.onFrame)return e;var n=t.delay,r=Object.prototype.hasOwnProperty;return i.each(t.toAttrs,(function(t,a){i.each(e,(function(e){n<e.startTime+e.duration&&r.call(e.toAttrs,a)&&(delete e.toAttrs[a],delete e.fromAttrs[a])}))})),t.toMatrix&&i.each(e,(function(e){n<e.startTime+e.duration&&e.toMatrix&&delete e.toMatrix})),e}(h,f):
// 否则将图形添加到队列
u.addAnimator(l),h.push(f),l.setSilent("animators",h),l.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var e=this,t=this.get("animators");// 将动画执行到最后一帧，执行回调
i.each(t,(function(t){e.attr(t.toAttrs||t.onFrame(1)),t.toMatrix&&e.attr("matrix",t.toMatrix),t.callback&&t.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var e=this,t=e.get("timeline");// 记录下是在什么时候暂停的
return e.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),e},resumeAnimate:function(){var e=this,t=e.get("timeline").getTime(),n=e.get("animators"),r=e.get("pause").pauseTime;// 之后更新属性需要计算动画已经执行的时长，如果暂停了，就把初始时间调后
return i.each(n,(function(e){e.startTime=e.startTime+(t-r),e._paused=!1,e._pauseTime=null})),e.setSilent("pause",{isPaused:!1}),e.setSilent("animators",n),e}}},
/* 225 */
/***/function(e,t,n){var r=n(1),i=n(78),a=n(117),o=["click","mousedown","mouseup","dblclick","contextmenu","mouseout","mouseover","mousemove","dragstart","drag","dragend","dragenter","dragleave","drop"],s=function(){};r.augment(s,a,{emit:function(e,t){var n=arguments;if(a.prototype.emit.apply(this,n),!(n.length>=2&&n[1]instanceof i&&n[1].propagationStopped)&&o.indexOf(e)>=0&&t.target===this
/* prevent bubbling multiple times */)for(var r=this._cfg.parent;r&&!r.get("destroyed");)r.emit.apply(r,n),r=r._cfg.parent}}),e.exports=s},
/* 226 */
/***/function(e,t,n){var r=n(7);r.Arc=n(120),r.Circle=n(121),r.Dom=n(122),r.Ellipse=n(123),r.Fan=n(124),r.Image=n(125),r.Line=n(126),r.Marker=n(81),r.Path=n(127),r.Polygon=n(128),r.Polyline=n(129),r.Rect=n(130),r.Text=n(131),e.exports=r},
/* 227 */
/***/function(e,t,n){var r=n(1),i=n(79),a={arc:n(44),ellipse:n(119),line:n(43)},o=r.createDom('<canvas width="1" height="1"></canvas>').getContext("2d");function s(e,t,n){return n.createPath(o),o.isPointInPath(e,t)}var c={arc:function(e,t){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,c=n.endAngle,l=n.clockwise,u=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,c,l,u,e,t)},circle:function(e,t){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),c=this.hasFill(),l=this.hasStroke();return c&&l?i.circle(r,a,o,e,t)||i.arcline(r,a,o,0,2*Math.PI,!1,s,e,t):c?i.circle(r,a,o,e,t):!!l&&i.arcline(r,a,o,0,2*Math.PI,!1,s,e,t)},dom:function(e,t){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,e,t)},ellipse:function(e,t){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,c=n.y,l=n.rx,u=n.ry,h=this.getHitLineWidth(),f=l>u?l:u,d=l>u?1:l/u,p=l>u?u/l:1,g=[e,t,1],m=[1,0,0,0,1,0,0,0,1];r.mat3.scale(m,m,[d,p]),r.mat3.translate(m,m,[s,c]);var v=r.mat3.invert([],m);return r.vec3.transformMat3(g,g,v),a&&o?i.circle(0,0,f,g[0],g[1])||i.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1]):a?i.circle(0,0,f,g[0],g[1]):!!o&&i.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1])},fan:function(e,t){var n=this,o=n.hasFill(),s=n.hasStroke(),c=n._attrs,l=c.x,u=c.y,h=c.rs,f=c.re,d=c.startAngle,p=c.endAngle,g=c.clockwise,m=[e-l,t-u],v=r.vec2.angleTo([1,0],m);function y(){var e=a.arc.nearAngle(v,d,p,g);if(r.isNumberEqual(v,e)){var t=r.vec2.squaredLength(m);if(h*h<=t&&t<=f*f)return!0}return!1}function A(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*h+l,y:Math.sin(d)*h+u},o={x:Math.cos(d)*f+l,y:Math.sin(d)*f+u},s={x:Math.cos(p)*h+l,y:Math.sin(p)*h+u},c={x:Math.cos(p)*f+l,y:Math.sin(p)*f+u};return!!(i.line(a.x,a.y,o.x,o.y,r,e,t)||i.line(s.x,s.y,c.x,c.y,r,e,t)||i.arcline(l,u,h,d,p,g,r,e,t)||i.arcline(l,u,f,d,p,g,r,e,t))}return o&&s?y()||A():o?y():!!s&&A()},image:function(e,t){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,e,t)},line:function(e,t){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,c=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,c,e,t)},path:function(e,t){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function c(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o<s;o++)if(i[o].isInside(e,t,a))return!0;return!1}}return a&&o?s(e,t,n)||c():a?s(e,t,n):!!o&&c()},marker:function(e,t){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,e,t)},polygon:function(e,t){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs.points;if(r.length<2)return!1;var a=n.getHitLineWidth(),o=r.slice(0);return r.length>=3&&o.push(r[0]),i.polyline(o,a,e,t)}return r&&a?s(e,t,n)||o():r?s(e,t,n):!!a&&o()},polyline:function(e,t){var n=this._attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var a=n.lineWidth;return i.polyline(r,a,e,t)}return!1},rect:function(e,t){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,c=r.height,l=r.radius,u=n.getHitLineWidth();if(0===l){var h=u/2;return i.line(a-h,o,a+s+h,o,u,e,t)||i.line(a+s,o-h,a+s,o+c+h,u,e,t)||i.line(a+s+h,o+c,a-h,o+c,u,e,t)||i.line(a,o+c+h,a,o-h,u,e,t)}return i.line(a+l,o,a+s-l,o,u,e,t)||i.line(a+s,o+l,a+s,o+c-l,u,e,t)||i.line(a+s-l,o+c,a+l,o+c,u,e,t)||i.line(a,o+c-l,a,o+l,u,e,t)||i.arcline(a+s-l,o+l,l,1.5*Math.PI,2*Math.PI,!1,u,e,t)||i.arcline(a+s-l,o+c-l,l,0,.5*Math.PI,!1,u,e,t)||i.arcline(a+l,o+c-l,l,.5*Math.PI,Math.PI,!1,u,e,t)||i.arcline(a+l,o+l,l,Math.PI,1.5*Math.PI,!1,u,e,t)}return r&&a?s(e,t,n)||o():r?s(e,t,n):!!a&&o()},text:function(e,t){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,e,t)}};e.exports={isPointInPath:function(e,t){var n=c[this.type];return!!n&&n.call(this,e,t)}}},
/* 228 */
/***/function(e,t,n){var r=n(1),i=n(82),a=n(101),o=n(103),s=n(133),c=s.interpolate,l=s.interpolateArray,u=function(e){
// 待执行动画的队列
this._animators=[],// 当前时间
this._current=0,// 计时器实例
this._timer=null,// 画布
this.canvas=e};function h(e,t,n){var a,s=t.startTime;// 如果还没有开始执行或暂停，先不更新
if(n<s+t.delay||t.isPaused)return!1;var u=t.duration,h=t.easing;if(// 已执行时间
n=n-s-t.delay,t.repeat)a=n%u/u,a=o[h](a);else{if(!((a=n/u)<1)){var f=t.toAttrs||t.onFrame(1);return e.attr(f),t.toMatrix&&e.setMatrix(t.toMatrix),!0}a=o[h](a)}if(t.onFrame){var d=t.onFrame(a);e.attr(d)}else!function(e,t,n){var a={},o=t.toAttrs,s=t.fromAttrs,u=t.toMatrix;// 此刻属性
if(!e.get("destroyed")){var h;//  差值函数
for(var f in o)if(!r.isEqual(s[f],o[f]))if("path"===f){var d=o[f],p=s[f];d.length>p.length?(d=i.parsePathString(o[f]),// 终点状态
p=i.parsePathString(s[f]),// 起始状态
p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),t.fromAttrs.path=p,t.toAttrs.path=d):t.pathFormatted||(d=i.parsePathString(o[f]),p=i.parsePathString(s[f]),p=i.formatPath(p,d),t.fromAttrs.path=p,t.toAttrs.path=d,t.pathFormatted=!0),a[f]=[];for(var g=0;g<d.length;g++){for(var m=d[g],v=p[g],y=[],A=0;A<m.length;A++)r.isNumber(m[A])&&v&&r.isNumber(v[A])?(h=c(v[A],m[A]),y.push(h(n))):y.push(m[A]);a[f].push(y)}}else r.isColorProp(f)&&r.isGradientColor(o[f])?
// 渐变色直接赋值，不做插值
a[f]=o[f]:(h=c(s[f],o[f]),a[f]=h(n));if(u){var b=l(t.fromMatrix,u)(n);e.setMatrix(b)}e.attr(a)}}(e,t,a);return!1}r.augment(u,{initTimer:function(){var e,t,n,r=this,i=this;i._timer=a.timer((function(a){if(i._current=a,r._animators.length>0){for(var o=r._animators.length-1;o>=0;o--)if((e=r._animators[o]).get("destroyed"))
// 如果已经被销毁，直接移出队列
i.removeAnimator(o);else{if(!e.get("pause").isPaused)for(var s=(t=e.get("animators")).length-1;s>=0;s--)n=t[s],h(e,n,a)&&(t.splice(s,1),n.callback&&n.callback());0===t.length&&i.removeAnimator(o)}r.canvas.draw()}}))},addAnimator:function(e){this._animators.push(e)},removeAnimator:function(e){this._animators.splice(e,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(e){e.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),e.exports=u},
/* 229 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(83);
/* harmony default export */t.a=function(e,t,n){var i=new r.a;return t=null==t?0:+t,i.restart((function(n){i.stop(),e(n+t)}),t,n),i}},
/* 230 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(83);
/* harmony default export */t.a=function(e,t,n){var i=new r.a,a=t;return null==t?(i.restart(e,t,n),i):(t=+t,n=null==n?Object(r.b)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=t,n),e(o)}),t,n),i)}},
/* 231 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return+e}
/***/},
/* 232 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return e*e},
/* harmony export (immutable) */t.c=function(e){return e*(2-e)},
/* harmony export (immutable) */t.b=function(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}
/***/},
/* 233 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return e*e*e},
/* harmony export (immutable) */t.c=function(e){return--e*e*e+1},
/* harmony export (immutable) */t.b=function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}
/***/},
/* 234 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return r})),
/* harmony export (binding) */n.d(t,"c",(function(){return i})),
/* harmony export (binding) */n.d(t,"b",(function(){return a}));var r=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),i=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),a=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3)},
/* 235 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return 1==+e?1:1-Math.cos(e*i)},
/* harmony export (immutable) */t.c=function(e){return Math.sin(e*i)},
/* harmony export (immutable) */t.b=function(e){return(1-Math.cos(r*e))/2}
/***/;var r=Math.PI,i=r/2},
/* 236 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return Object(r.a)(1-+e)},
/* harmony export (immutable) */t.c=function(e){return 1-Object(r.a)(e)},
/* harmony export (immutable) */t.b=function(e){return((e*=2)<=1?Object(r.a)(1-e):2-Object(r.a)(e-1))/2}
/***/;
/* harmony import */var r=n(132)},
/* 237 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return 1-Math.sqrt(1-e*e)},
/* harmony export (immutable) */t.c=function(e){return Math.sqrt(1- --e*e)},
/* harmony export (immutable) */t.b=function(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}
/***/},
/* 238 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return 1-d(1-e)},
/* harmony export (immutable) */t.c=d,
/* harmony export (immutable) */t.b=function(e){return((e*=2)<=1?1-d(1-e):d(e-1)+1)/2}
/***/;var r=4/11,i=6/11,a=8/11,o=3/4,s=9/11,c=10/11,l=15/16,u=21/22,h=63/64,f=1/r/r;function d(e){return(e=+e)<r?f*e*e:e<a?f*(e-=i)*e+o:e<c?f*(e-=s)*e+l:f*(e-=u)*e+h}},
/* 239 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i})),
/* harmony export (binding) */n.d(t,"c",(function(){return a})),
/* harmony export (binding) */n.d(t,"b",(function(){return o}));var r=1.70158,i=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(r),a=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(r),o=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(r)},
/* 240 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a})),
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s}));
/* harmony import */var r=n(132),i=2*Math.PI,a=function e(t,n){var a=Math.asin(1/(t=Math.max(1,t)))*(n/=i);function o(e){return t*Object(r.a)(- --e)*Math.sin((a-e)/n)}return o.amplitude=function(t){return e(t,n*i)},o.period=function(n){return e(t,n)},o}(1,.3),o=function e(t,n){var a=Math.asin(1/(t=Math.max(1,t)))*(n/=i);function o(e){return 1-t*Object(r.a)(e=+e)*Math.sin((e+a)/n)}return o.amplitude=function(t){return e(t,n*i)},o.period=function(n){return e(t,n)},o}(1,.3),s=function e(t,n){var a=Math.asin(1/(t=Math.max(1,t)))*(n/=i);function o(e){return((e=2*e-1)<0?t*Object(r.a)(-e)*Math.sin((a-e)/n):2-t*Object(r.a)(e)*Math.sin((a+e)/n))/2}return o.amplitude=function(t){return e(t,n*i)},o.period=function(n){return e(t,n)},o}(1,.3)},
/* 241 */
/***/function(e,t,n){"use strict";
/* unused harmony export gray */
/* harmony export (immutable) */t.a=p,
/* unused harmony export Lab */
/* unused harmony export lch */
/* harmony export (immutable) */t.b=w;
/* unused harmony export Hcl */
/* harmony import */var r=n(86),i=n(85),a=n(134),o=.96422,s=1,c=.82521,l=4/29,u=6/29,h=3*u*u,f=u*u*u;
/* harmony import */function d(e){if(e instanceof g)return new g(e.l,e.a,e.b,e.opacity);if(e instanceof x)return C(e);e instanceof i.b||(e=Object(i.h)(e));var t,n,r=A(e.r),a=A(e.g),l=A(e.b),u=m((.2225045*r+.7168786*a+.0606169*l)/s);return r===a&&a===l?t=n=u:(t=m((.4360747*r+.3850649*a+.1430804*l)/o),n=m((.0139322*r+.0971045*a+.7141733*l)/c)),new g(116*u-16,500*(t-u),200*(u-n),e.opacity)}function p(e,t,n,r){return 1===arguments.length?d(e):new g(e,t,n,null==r?1:r)}function g(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function m(e){return e>f?Math.pow(e,1/3):e/h+l}function v(e){return e>u?e*e*e:h*(e-l)}function y(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function A(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function b(e){if(e instanceof x)return new x(e.h,e.c,e.l,e.opacity);if(e instanceof g||(e=d(e)),0===e.a&&0===e.b)return new x(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*a.b;return new x(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function w(e,t,n,r){return 1===arguments.length?b(e):new x(e,t,n,null==r?1:r)}function x(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function C(e){if(isNaN(e.h))return new g(e.l,0,0,e.opacity);var t=e.h*a.a;return new g(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Object(r.a)(g,p,Object(r.b)(i.a,{brighter:function(e){return new g(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new g(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=o*v(t),e=s*v(e),n=c*v(n),new i.b(y(3.1338561*t-1.6168667*e-.4906146*n),y(-.9787684*t+1.9161415*e+.033454*n),y(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Object(r.a)(x,w,Object(r.b)(i.a,{brighter:function(e){return new x(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new x(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return C(this).rgb()}}))},
/* 242 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=p;
/* unused harmony export Cubehelix */
/* harmony import */var r=n(86),i=n(85),a=n(134),o=-.14861,s=1.78277,c=-.29227,l=-.90649,u=1.97294,h=u*l,f=u*s,d=s*c-l*o;
/* harmony import */function p(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof g)return new g(e.h,e.s,e.l,e.opacity);e instanceof i.b||(e=Object(i.h)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(d*r+h*t-f*n)/(d+h-f),s=r-o,p=(u*(n-o)-c*s)/l,m=Math.sqrt(p*p+s*s)/(u*o*(1-o)),
// NaN if l=0 or l=1
v=m?Math.atan2(p,s)*a.b-120:NaN;return new g(v<0?v+360:v,m,o,e.opacity)}(e):new g(e,t,n,null==r?1:r)}function g(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Object(r.a)(g,p,Object(r.b)(i.a,{brighter:function(e){return e=null==e?i.c:Math.pow(i.c,e),new g(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.d:Math.pow(i.d,e),new g(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a.a,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),h=Math.sin(e);return new i.b(255*(t+n*(o*r+s*h)),255*(t+n*(c*r+l*h)),255*(t+n*(u*r)),this.opacity)}}))},
/* 243 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}},
/* 244 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s}));
/* harmony import */var r=n(47),i=n(245);
/* harmony import */function a(e,t,n,i){function a(e){return e.length?e.pop()+" ":""}return function(o,s){var c=[],
// string constants and placeholders
l=[];// number interpolators
// gc
return o=e(o),s=e(s),function(e,i,a,o,s,c){if(e!==a||i!==o){var l=s.push("translate(",null,t,null,n);c.push({i:l-4,x:Object(r.a)(e,a)},{i:l-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,c,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),// shortest path
o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(e,t)})):t&&n.push(a(n)+"rotate("+t+i)}(o.rotate,s.rotate,c,l),function(e,t,n,o){e!==t?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(e,t)}):t&&n.push(a(n)+"skewX("+t+i)}(o.skewX,s.skewX,c,l),function(e,t,n,i,o,s){if(e!==n||t!==i){var c=o.push(a(o)+"scale(",null,",",null,")");s.push({i:c-4,x:Object(r.a)(e,n)},{i:c-2,x:Object(r.a)(t,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,c,l),o=s=null,function(e){for(var t,n=-1,r=l.length;++n<r;)c[(t=l[n]).i]=t.x(e);return c.join("")}}}var o=a(i.a,"px, ","px)","deg)"),s=a(i.b,", ",")",")")},
/* 245 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return"none"===e?s.b:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=e,e=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),e=e.slice(7,-1).split(","),Object(s.a)(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},
/* harmony export (immutable) */t.b=function(e){return null==e?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",e),(e=o.transform.baseVal.consolidate())?(e=e.matrix,Object(s.a)(e.a,e.b,e.c,e.d,e.e,e.f)):s.b)}
/***/;
/* harmony import */var r,i,a,o,s=n(246)},
/* 246 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};
/* harmony default export */t.a=function(e,t,n,i,a,o){var s,c,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,l/=c),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:c}}},
/* 247 */
/***/function(e,t,n){"use strict";var r=Math.SQRT2;function i(e){return((e=Math.exp(e))+1/e)/2}// p0 = [ux0, uy0, w0]
// p1 = [ux1, uy1, w1]
/* harmony default export */t.a=function(e,t){var n,a,o=e[0],s=e[1],c=e[2],l=t[0],u=t[1],h=t[2],f=l-o,d=u-s,p=f*f+d*d;// Special case for u0 ≅ u1.
if(p<1e-12)a=Math.log(h/c)/r,n=function(e){return[o+e*f,s+e*d,c*Math.exp(r*e*a)]};else{var g=Math.sqrt(p),m=(h*h-c*c+4*p)/(2*c*2*g),v=(h*h-c*c-4*p)/(2*h*2*g),y=Math.log(Math.sqrt(m*m+1)-m),A=Math.log(Math.sqrt(v*v+1)-v);a=(A-y)/r,n=function(e){var t,n=e*a,l=i(y),u=c/(2*g)*(l*(t=r*n+y,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[o+u*f,s+u*d,c*l/i(r*n+y)]}}return n.duration=1e3*a,n}},
/* 248 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return o}));
/* harmony import */var r=n(19),i=n(32);
/* harmony import */function a(e){return function(t,n){var a=e((t=Object(r.d)(t)).h,(n=Object(r.d)(n)).h),o=Object(i.a)(t.s,n.s),s=Object(i.a)(t.l,n.l),c=Object(i.a)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(e),t.opacity=c(e),t+""}}}
/* harmony default export */t.a=a(i.c);var o=a(i.a);
/***/},
/* 249 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e,t){var n=Object(i.a)((e=Object(r.e)(e)).l,(t=Object(r.e)(t)).l),a=Object(i.a)(e.a,t.a),o=Object(i.a)(e.b,t.b),s=Object(i.a)(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=a(t),e.b=o(t),e.opacity=s(t),e+""}}
/***/;
/* harmony import */var r=n(19),i=n(32);
/* harmony import */},
/* 250 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return o}));
/* harmony import */var r=n(19),i=n(32);
/* harmony import */function a(e){return function(t,n){var a=e((t=Object(r.c)(t)).h,(n=Object(r.c)(n)).h),o=Object(i.a)(t.c,n.c),s=Object(i.a)(t.l,n.l),c=Object(i.a)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=s(e),t.opacity=c(e),t+""}}}
/* harmony default export */t.a=a(i.c);var o=a(i.a);
/***/},
/* 251 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o}));
/* harmony import */var r=n(19),i=n(32);
/* harmony import */function a(e){return function t(n){function a(t,a){var o=e((t=Object(r.b)(t)).h,(a=Object(r.b)(a)).h),s=Object(i.a)(t.s,a.s),c=Object(i.a)(t.l,a.l),l=Object(i.a)(t.opacity,a.opacity);return function(e){return t.h=o(e),t.s=s(e),t.l=c(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,a.gamma=t,a}(1)}
/* harmony default export */t.b=a(i.c);var o=a(i.a);
/***/},
/* 252 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}},
/* 253 */
/***/function(e,t,n){e.exports={canvas:n(254),svg:n(257)};
/***/},
/* 254 */
/***/function(e,t,n){e.exports={painter:n(255)};
/***/},
/* 255 */
/***/function(e,t,n){var r=n(1),i=n(256),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function e(e){if(!e)return null;var t=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+t+'"></canvas>');return e.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var t=e.prototype;return t.beforeDraw=function(){var e=this.canvas;this.context&&this.context.clearRect(0,0,e.width,e.height)},t.draw=function(e){var t=this;t.animateHandler?t.toDraw=!0:function n(){t.animateHandler=r.requestAnimationFrame((function(){t.animateHandler=void 0,t.toDraw&&n()})),t.beforeDraw();try{t._drawGroup(e)}catch(e){}finally{t.toDraw=!1}}()},t.drawSync=function(e){this.beforeDraw(),this._drawGroup(e)},t._drawGroup=function(e){if(!e._cfg.removed&&!e._cfg.destroyed&&e._cfg.visible){var t=e._cfg.children,n=null;this.setContext(e);for(var r=0;r<t.length;r++)n=t[r],t[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(e)}},t._drawShape=function(e){e._cfg.removed||e._cfg.destroyed||!e._cfg.visible||(this.setContext(e),e.drawInner(this.context),this.restoreContext(e),e._cfg.attrs=e._attrs,e._cfg.hasUpdate=!1)},t.setContext=function(e){var t=this.context,n=e._attrs.clip;t.save(),n&&(
// context.save();
n.resetTransform(t),n.createPath(t),t.clip()),this.resetContext(e),e.resetTransform(t)},t.restoreContext=function(){this.context.restore()},t.resetContext=function(e){var t=this.context,n=e._attrs;// var canvas = this.get('canvas');
if(!e.isGroup)for(var o in n)if(a.indexOf(o)>-1){
// 非canvas属性不附加
var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,e,t)),"strokeStyle"===o&&(s=i.parseStyle(s,e,t)),"lineDash"===o&&t.setLineDash?r.isArray(s)?t.setLineDash(s):r.isString(s)&&t.setLineDash(s.split(" ")):t[o]=s}},e}();e.exports=o},
/* 256 */
/***/function(e,t,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;// const numColorCache = {};
function u(e,t){var n=e.match(l);r.each(n,(function(e){e=e.split(":"),t.addColorStop(e[0],e[1])}))}e.exports={parsePath:function(e){return e=e||[],r.isArray(e)?e:r.isString(e)?(e=e.match(i),r.each(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}r.each(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},parseStyle:function(e,t,n){if(r.isString(e)){if("("===e[1]||"("===e[2]){if("l"===e[0])
// regexLG.test(color)
return function(e,t,n){var i,a,s=o.exec(e),c=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),l=s[2],h=t.getBBox();c>=0&&c<.5*Math.PI?(i={x:h.minX,y:h.minY},a={x:h.maxX,y:h.maxY}):.5*Math.PI<=c&&c<Math.PI?(i={x:h.maxX,y:h.minY},a={x:h.minX,y:h.maxY}):Math.PI<=c&&c<1.5*Math.PI?(i={x:h.maxX,y:h.maxY},a={x:h.minX,y:h.minY}):(i={x:h.minX,y:h.maxY},a={x:h.maxX,y:h.minY});var f=Math.tan(c),d=f*f,p=(a.x-i.x+f*(a.y-i.y))/(d+1)+i.x,g=f*(a.x-i.x+f*(a.y-i.y))/(d+1)+i.y,m=n.createLinearGradient(i.x,i.y,p,g);return u(l,m),m}(e,t,n);if("r"===e[0])
// regexRG.test(color)
return function(e,t,n){var r=s.exec(e),i=parseFloat(r[1]),a=parseFloat(r[2]),o=parseFloat(r[3]),c=r[4];// 环半径为0时，默认无渐变，取渐变序列的最后一个颜色
if(0===o){var h=c.match(l);return h[h.length-1].split(":")[1]}var f=t.getBBox(),d=f.maxX-f.minX,p=f.maxY-f.minY,g=Math.sqrt(d*d+p*p)/2,m=n.createRadialGradient(f.minX+d*i,f.minY+p*a,o*g,f.minX+d/2,f.minY+p/2,g);return u(c,m),m}(e,t,n);if("p"===e[0])
// regexPR.test(color)
return function(e,t,n){if(t.get("patternSource")&&t.get("patternSource")===e)return t.get("pattern");var r,i,a=c.exec(e),o=a[1],s=a[2];// Function to be called when pattern loads
function l(){
// Create pattern
r=n.createPattern(i,o),t.setSilent("pattern",r),// be a cache
t.setSilent("patternSource",e)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;default:o="no-repeat"}return i=new Image,// If source URL is not a data URL
s.match(/^data:/i)||(
// Set crossOrigin for this image
i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,// Fix onload() bug in IE9
i.src=i.src),r}(e,t,n)}return e}}
/* ,
  numberToColor(num) {
    // 增加缓存
    let color = numColorCache[num];
    if (!color) {
      let str = num.toString(16);
      for (let i = str.length; i < 6; i++) {
        str = '0' + str;
      }
      color = '#' + str;
      numColorCache[num] = color;
    }
    return color;
  }*/}},
/* 257 */
/***/function(e,t,n){e.exports={painter:n(258),getShape:n(265)};
/***/},
/* 258 */
/***/function(e,t,n){var r=n(1),i=n(31).parseRadius,a=n(81),o=n(259),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},c={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},l={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},u={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(){function e(e){if(!e)return null;var t=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+t+'"></svg>');return e.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var t=e.prototype;return t.draw=function(e){var t=this;t.animateHandler?t.toDraw=!0:function n(){t.animateHandler=r.requestAnimationFrame((function(){t.animateHandler=void 0,t.toDraw&&n()}));try{t._drawChildren(e)}catch(e){}finally{t.toDraw=!1}}()},t.drawSync=function(e){this._drawChildren(e)},t._drawGroup=function(e,t){var n=e._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(e){e.parentNode&&e.parentNode.removeChild(e)})),n.tobeRemoved=[]),this._drawShape(e,t),n.children&&n.children.length>0&&this._drawChildren(e))},t._drawChildren=function(e){var t,n=e._cfg.children;// 防止在画children的时候，父group已经被destroy
if(n)for(var r=0;r<n.length;r++)(t=n[r]).isGroup?this._drawGroup(t,r):this._drawShape(t,r)},t._drawShape=function(e,t){var n=this,r=e._attrs,i=e._cfg,a=i.el;// 删除
i.removed||i.destroyed?a&&a.parentNode.removeChild(i.el):(// 新增节点
!a&&i.parent&&(n._createDom(e,t),n._updateShape(e)),a=i.el,!1!==i.visible?(i.visible&&a.hasAttribute("visibility")&&a.removeAttribute("visibility"),// 更新
i.hasUpdate&&n._updateShape(e),r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip)):a.setAttribute("visibility","hidden"))},t._updateShape=function(e){var t=this,n=e._attrs,i=e._cfg.attrs;if(i)if(e._cfg.el||t._createDom(e),"clip"in n&&this._setClip(e,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(e),"text"!==e.type){for(var a in"fan"===e.type&&t._updateFan(e),"marker"===e.type&&e._cfg.el.setAttribute("d",t._assembleMarker(n)),"rect"===e.type&&e._cfg.el.setAttribute("d",t._assembleRect(n)),n)n[a]!==i[a]&&t._setAttribute(e,a,n[a]);e._cfg.attrs=r.deepMix({},e._attrs),e._cfg.hasUpdate=!1}else t._updateText(e)},t._setAttribute=function(e,t,n){var i=e.type,a=e._attrs,o=e._cfg.el,s=this.context;// 计算marker路径
if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(t))// 圆和椭圆不是x, y， 是cx, cy。 marker的x,y 用于计算marker的路径，不需要写到dom
if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(t))o.setAttribute("c"+t,parseInt(n,10));else{// 多边形
if("polygon"===i&&"points"===t)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map((function(e){return e[0]+","+e[1]}))).join(" ")),void o.setAttribute("points",n);// 设置path
if("path"===t&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else// 设置图片
if("img"!==t){if("transform"===t)return n?void this._setTransform(e):void o.removeAttribute("transform");if("rotate"===t)return n?void this._setTransform(e):void o.removeAttribute("transform");if("matrix"!==t)if("fillStyle"!==t&&"strokeStyle"!==t){if("clip"!==t)if(~t.indexOf("Arrow"))if(t=c[t],n){var l=null;l="boolean"==typeof n?s.getDefaultArrow(a,t):s.addArrow(a,t),o.setAttribute(t,"url(#"+l+")"),e._cfg[t]=l}else e._cfg[t]=null,o.removeAttribute(t);else// foreignObject
"html"===t&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),c[t]&&o.setAttribute(c[t],n)}else this._setColor(e,t,n);else this._setTransform(e)}else this._setImage(e,n)}},t._createDom=function(e,t){var n=s[e.type],r=e._attrs,i=e._cfg.parent;if(!n)throw new Error("the type"+e.type+"is not supported by svg");var a=document.createElementNS("http://www.w3.org/2000/svg",n);if(e._cfg.id&&(a.id=e._cfg.id),e._cfg.el=a,i){var o=i._cfg.el;if(void 0===t)o.appendChild(a);else{var c=i._cfg.el.childNodes;// svg下天然有defs作为子节点，svg下子元素index需要+1
"svg"===o.tagName&&(t+=1),c.length<=t?o.appendChild(a):o.insertBefore(a,c[t])}}return e._cfg.attrs={},"text"===e.type?(a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(r.stroke||r.strokeStyle||a.setAttribute("stroke","none"),r.fill||r.fillStyle||a.setAttribute("fill","none")),a},t._assembleMarker=function(e){var t=e.r;if(void 0===e.r&&(t=e.radius),isNaN(Number(e.x))||isNaN(Number(e.y))||isNaN(Number(t)))return"";var n="";return n="function"==typeof e.symbol?e.symbol(e.x,e.y,t):a.Symbols[e.symbol||"circle"](e.x,e.y,t),r.isArray(n)&&(n=n.map((function(e){return e.join(" ")})).join("")),n},t._assembleRect=function(e){var t=e.x,n=e.y,a=e.width,o=e.height,s=e.radius;if(!s)return"M "+t+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var c=i(s);return r.isArray(s)?1===s.length?c.r1=c.r2=c.r3=c.r4=s[0]:2===s.length?(c.r1=c.r3=s[0],c.r2=c.r4=s[1]):3===s.length?(c.r1=s[0],c.r2=c.r4=s[1],c.r3=s[2]):(c.r1=s[0],c.r2=s[1],c.r3=s[2],c.r4=s[3]):c.r1=c.r2=c.r3=c.r4=s,[["M "+(t+c.r1)+","+n],["l "+(a-c.r1-c.r2)+",0"],["a "+c.r2+","+c.r2+",0,0,1,"+c.r2+","+c.r2],["l 0,"+(o-c.r2-c.r3)],["a "+c.r3+","+c.r3+",0,0,1,"+-c.r3+","+c.r3],["l "+(c.r3+c.r4-a)+",0"],["a "+c.r4+","+c.r4+",0,0,1,"+-c.r4+","+-c.r4],["l 0,"+(c.r4+c.r1-o)],["a "+c.r1+","+c.r1+",0,0,1,"+c.r1+","+-c.r1],["z"]].join(" ")},t._formatPath=function(e){return~(e=e.map((function(e){return e.join(" ")})).join("")).indexOf("NaN")?"":e},t._setTransform=function(e){for(var t=e._attrs.matrix,n=e._cfg.el,r=[],i=0;i<9;i+=3)r.push(t[i]+","+t[i+1]);-1===(r=r.join(",")).indexOf("NaN")&&n.setAttribute("transform","matrix("+r+")")},t._setImage=function(e,t){var n=e._attrs,i=e._cfg.el;if(r.isString(t))i.setAttribute("href",t);else if(t instanceof Image)n.width||(i.setAttribute("width",t.width),e._attrs.width=t.width),n.height||(i.setAttribute("height",t.height),e._attrs.height=t.height),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&r.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",t.width),a.setAttribute("height",t.height),a.getContext("2d").putImageData(t,0,0),n.width||(i.setAttribute("width",t.width),e._attrs.width=t.width),n.height||(i.setAttribute("height",t.height),e._attrs.height=t.height),i.setAttribute("href",a.toDataURL())}},t._updateFan=function(e){function t(e,t,n){return{x:t*Math.cos(e)+n.x,y:t*Math.sin(e)+n.y}}var n=e._attrs,i=e._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,c=n.endAngle;r.isNumberEqual(c-s,2*Math.PI)&&(c-=1e-5);var l=t(s,n.re,a),u=t(c,n.re,a),h=c>s?1:0,f=Math.abs(c-s)>Math.PI?1:0,d=n.rs,p=n.re,g=t(s,n.rs,a),m=t(c,n.rs,a);n.rs>0?(o.push("M "+u.x+","+u.y),o.push("L "+m.x+","+m.y),o.push("A "+d+","+d+",0,"+f+","+(1===h?0:1)+","+g.x+","+g.y),o.push("L "+l.x+" "+l.y)):(o.push("M "+a.x+","+a.y),o.push("L "+l.x+","+l.y)),o.push("A "+p+","+p+",0,"+f+","+h+","+u.x+","+u.y),n.rs>0?o.push("L "+m.x+","+m.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},t._updateText=function(e){var t=e._attrs,n=e._cfg.attrs,r=e._cfg.el;for(var i in this._setFont(e),t)if(t[i]!==n[i]){if("text"===i){this._setText(e,""+t[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(e,i,t[i]);continue}if("matrix"===i){this._setTransform(e);continue}c[i]&&r.setAttribute(c[i],t[i])}e._cfg.attrs=Object.assign({},e._attrs),e._cfg.hasUpdate=!1},t._setFont=function(e){var t=e.get("el"),n=e._attrs,r=n.fontSize;t.setAttribute("alignment-baseline",l[n.textBaseline]||"baseline"),t.setAttribute("text-anchor",u[n.textAlign]||"left"),r&&+r<12&&(
// 小于 12 像素的文本进行 scale 处理
n.matrix=[1,0,0,0,1,0,0,0,1],e.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},t._setText=function(e,t){var n=e._cfg.el,i=e._attrs.textBaseline||"bottom";if(t)if(~t.indexOf("\n")){var a=e._attrs.x,o=t.split("\n"),s=o.length-1,c="";r.each(o,(function(e,t){0===t?"alphabetic"===i?c+='<tspan x="'+a+'" dy="'+-s+'em">'+e+"</tspan>":"top"===i?c+='<tspan x="'+a+'" dy="0.9em">'+e+"</tspan>":"middle"===i?c+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+e+"</tspan>":"bottom"===i?c+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+e+"</tspan>":"hanging"===i&&(c+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+e+"</tspan>"):c+='<tspan x="'+a+'" dy="1em">'+e+"</tspan>"})),n.innerHTML=c}else n.innerHTML=t;else n.innerHTML=""},t._setClip=function(e,t){var n=e._cfg.el;if(t)if(n.hasAttribute("clip-path"))t._cfg.hasUpdate&&this._updateShape(t);else{this._createDom(t),this._updateShape(t);var r=this.context.addClip(t);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},t._setColor=function(e,t,n){var r=e._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(c[t],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(c[t],"url(#"+o+")")}else r.setAttribute(c[t],n);else r.setAttribute(c[t],"none")},t._setShadow=function(e){var t=e._cfg.el,n=e._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),t.setAttribute("filter","url(#"+i+")")}else t.removeAttribute("filter")},e}();e.exports=h},
/* 259 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/9.
 */
var r=n(1),i=n(260),a=n(261),o=n(262),s=n(263),c=n(264),l=function(){function e(e){var t=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}var t=e.prototype;return t.find=function(e,t){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(e,t)){r=n[i].id;break}return r},t.findById=function(e){for(var t=this.children,n=null,r=0;r<t.length;r++)if(t[r].id===e){n=t[r];break}return n},t.add=function(e){this.children.push(e),e.canvas=this.canvas,e.parent=this},t.getDefaultArrow=function(e,t){var n=e.stroke||e.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(e,t);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},t.addGradient=function(e){var t=new i(e);return this.el.appendChild(t.el),this.add(t),t.id},t.addArrow=function(e,t){var n=new o(e,t);return this.el.appendChild(n.el),n.id},t.addShadow=function(e){var t=new a(e);return this.el.appendChild(t.el),this.add(t),t.id},t.addPattern=function(e){var t=new c(e);return this.el.appendChild(t.el),this.add(t),t.id},t.addClip=function(e){var t=new s(e);return this.el.appendChild(t.el),this.add(t),t.id},e}();e.exports=l},
/* 260 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/9.
 */
var r=n(1),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(e){var t=e.match(o);if(!t)return"";var n="";return t.sort((function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])})),r.each(t,(function(e){e=e.split(":"),n+='<stop offset="'+e[0]+'" stop-color="'+e[1]+'"></stop>'})),n}var c=function(){function e(e){var t=null,n=r.uniqueId("gradient_");return"l"===e.toLowerCase()[0]?function(e,t){var n,a,o=i.exec(e),c=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2];c>=0&&c<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=c&&c<Math.PI?(n={x:1,y:0},a={x:0,y:1}):Math.PI<=c&&c<1.5*Math.PI?(n={x:1,y:1},a={x:0,y:0}):(n={x:0,y:1},a={x:1,y:0});var u=Math.tan(c),h=u*u,f=(a.x-n.x+u*(a.y-n.y))/(h+1)+n.x,d=u*(a.x-n.x+u*(a.y-n.y))/(h+1)+n.y;t.setAttribute("x1",n.x),t.setAttribute("y1",n.y),t.setAttribute("x2",f),t.setAttribute("y2",d),t.innerHTML=s(l)}(e,t=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(e,t){var n=a.exec(e),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),c=n[4];t.setAttribute("cx",r),t.setAttribute("cy",i),t.setAttribute("r",o),t.innerHTML=s(c)}(e,t=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),t.setAttribute("id",n),this.el=t,this.id=n,this.cfg=e,this}return e.prototype.match=function(e,t){return this.cfg===t},e}();e.exports=c},
/* 261 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/10.
 */
var r=n(1),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function e(e){this.type="filter";var t=document.createElementNS("http://www.w3.org/2000/svg","filter");// expand the filter region to fill in shadows
return r.each(a,(function(e,n){t.setAttribute(n,e)})),this.el=t,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}var t=e.prototype;return t.match=function(e,t){if(this.type!==e)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(e){if(i[e]!==t[e])return n=!1,!1})),n},t.update=function(e,t){var n=this.cfg;return n[i[e]]=t,this._parseShadow(n,this.el),this},t._parseShadow=function(e,t){var n='<feDropShadow \n      dx="'+(e.dx||0)+'" \n      dy="'+(e.dy||0)+'" \n      stdDeviation="'+(e.blur?e.blur/10:0)+'"\n      flood-color="'+(e.color?e.color:"#000")+'"\n      flood-opacity="'+(e.opacity?e.opacity:1)+'"\n      />';t.innerHTML=n},e}();e.exports=o},
/* 262 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/11.
 */
var r=n(1),i=function(){function e(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",e.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=e["marker-start"===t?"startArrow":"endArrow"],this.stroke=e.stroke||"#000",!0===this.cfg?this._setDefaultPath(t,a):this._setMarker(e.lineWidth,a),this}var t=e.prototype;return t.match=function(){return!1},t._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},t._setMarker=function(e,t){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(e){return e.join(" ")})).join("")),t.setAttribute("d",i),n.appendChild(t),a&&n.setAttribute("refX",a/e)},t.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}();e.exports=i},
/* 263 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/14.
 */
var r=n(1),i=function(){function e(e){this.type="clip";var t=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=t,this.id=r.uniqueId("clip_"),t.id=this.id;var n=e._cfg.el;// just in case the clip shape is also a shape needs to be drawn
return t.appendChild(n.cloneNode(!0)),this.cfg=e,this}var t=e.prototype;return t.match=function(){return!1},t.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}();e.exports=i},
/* 264 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/9.
 */
var r=n(1),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function e(e){var t=document.createElementNS("http://www.w3.org/2000/svg","pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");t.appendChild(n);var a=r.uniqueId("pattern_");t.id=a,this.el=t,this.id=a,this.cfg=e;var o=i.exec(e)[2];n.setAttribute("href",o);var s=new Image;function c(){t.setAttribute("width",s.width),t.setAttribute("height",s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?c():(s.onload=c,// Fix onload() bug in IE9
s.src=s.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}();e.exports=a},
/* 265 */
/***/function(e,t){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};e.exports=function(e,t,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(e){return e._cfg&&e._cfg.el===i}))}},
/* 266 */
/***/function(e,t,n){e.exports={addEventListener:n(267),createDom:n(71),getBoundingClientRect:n(268),getHeight:n(269),getOuterHeight:n(270),getOuterWidth:n(271),getRatio:n(272),getStyle:n(273),getWidth:n(274),modifyCSS:n(72),requestAnimationFrame:n(73)};
/***/},
/* 267 */
/***/function(e,t){
/**
 * 添加事件监听器
 * @param  {Object} target DOM对象
 * @param  {String} eventType 事件名
 * @param  {Funtion} callback 回调函数
 * @return {Object} 返回对象
 */
e.exports=function(e,t,n){if(e){if(e.addEventListener)return e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}};if(e.attachEvent)return e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}}};
/***/},
/* 268 */
/***/function(e,t){e.exports=function(e,t){if(e&&e.getBoundingClientRect){var n=e.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return t||null};
/***/},
/* 269 */
/***/function(e,t){
/**
 * 获取高度
 * @param  {HTMLElement} el dom节点
 * @param  {Number} defaultValue 默认值
 * @return {Number} 高度
 */
e.exports=function(e,t){var n=this.getStyle(e,"height",t);return"auto"===n&&(n=e.offsetHeight),parseFloat(n)};
/***/},
/* 270 */
/***/function(e,t){
/**
 * 获取外层高度
 * @param  {HTMLElement} el dom节点
 * @param  {Number} defaultValue 默认值
 * @return {Number} 高度
 */
e.exports=function(e,t){var n=this.getHeight(e,t),r=parseFloat(this.getStyle(e,"borderTopWidth"))||0,i=parseFloat(this.getStyle(e,"paddingTop"))||0,a=parseFloat(this.getStyle(e,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(e,"borderBottomWidth"))||0)+i+a};
/***/},
/* 271 */
/***/function(e,t){
/**
 * 获取外层宽度
 * @param  {HTMLElement} el dom节点
 * @param  {Number} defaultValue 默认值
 * @return {Number} 宽度
 */
e.exports=function(e,t){var n=this.getWidth(e,t),r=parseFloat(this.getStyle(e,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(e,"paddingLeft"))||0,a=parseFloat(this.getStyle(e,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(e,"borderRightWidth"))||0)+i+a};
/***/},
/* 272 */
/***/function(e,t){e.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2};
/***/},
/* 273 */
/***/function(e,t,n){var r=n(6);
/**
 * 获取样式
 * @param  {Object} dom DOM节点
 * @param  {String} name 样式名
 * @param  {Any} defaultValue 默认值
 * @return {String} 属性值
 */e.exports=function(e,t,n){try{return window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.currentStyle[t]}catch(e){return r(n)?null:n}}},
/* 274 */
/***/function(e,t){
/**
 * 获取宽度
 * @param  {HTMLElement} el  dom节点
 * @param  {Number} defaultValue 默认值
 * @return {Number} 宽度
 */
e.exports=function(e,t){var n=this.getStyle(e,"width",t);return"auto"===n&&(n=e.offsetWidth),parseFloat(n)};
/***/},
/* 275 */
/***/function(e,t,n){e.exports={contains:n(48),difference:n(276),find:n(277),firstValue:n(278),flatten:n(279),flattenDeep:n(280),getRange:n(281),merge:n(49),pull:n(67),pullAt:n(146),reduce:n(282),remove:n(283),sortBy:n(284),union:n(285),uniq:n(147),valuesOfKey:n(89)};
/***/},
/* 276 */
/***/function(e,t,n){var r=n(88),i=n(48);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(e,(function(e){return!i(t,e)}))}},
/* 277 */
/***/function(e,t,n){var r=n(13),i=n(28),a=n(144);e.exports=function(e,t){var n=void 0;if(r(t)&&(n=t),i(t)&&(n=function(e){return a(e,t)}),n)for(var o=0;o<e.length;o+=1)if(n(e[o]))return e[o];return null}},
/* 278 */
/***/function(e,t,n){var r=n(6),i=n(5);e.exports=function(e,t){for(var n=null,a=0;a<e.length;a++){var o=e[a][t];if(!r(o)){n=i(o)?o[0]:o;break}}return n}},
/* 279 */
/***/function(e,t,n){var r=n(5),i=n(3);e.exports=function(e){if(!r(e))return e;var t=[];return i(e,(function(e){r(e)?i(e,(function(e){t.push(e)})):t.push(e)})),t}},
/* 280 */
/***/function(e,t,n){var r=n(5);
/**
 * Flattens `array` a single level deep.
 *
 * @param {Array} arr The array to flatten.
 * @param {Array} result The array to return.
 * @return {Array} Returns the new flattened array.
 * @example
 *
 * flattenDeep([1, [2, [3, [4]], 5]]);  // => [1, 2, 3, 4, 5]
 */e.exports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(t))for(var i=0;i<t.length;i+=1)e(t[i],n);else n.push(t);return n}},
/* 281 */
/***/function(e,t,n){var r=n(88),i=n(5);e.exports=function(e){if(!(
// 存在 NaN 时，min,max 判定会出问题
e=r(e,(function(e){return!isNaN(e)}))).length)
// 如果没有数值则直接返回0
return{min:0,max:0};if(i(e[0])){for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);e=t}var a=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:a}}},
/* 282 */
/***/function(e,t,n){var r=n(5),i=n(28),a=n(3);e.exports=function(e,t,n){if(!r(e)&&!i(e))return e;var o=n;return a(e,(function(e,n){o=t(o,e,n)})),o}},
/* 283 */
/***/function(e,t,n){var r=n(15),i=n(146);e.exports=function(e,t){
/**
   * const arr = [1, 2, 3, 4]
   * const evens = remove(arr, n => n % 2 == 0)
   * console.log(arr) // => [1, 3]
   * console.log(evens) // => [2, 4]
   */
var n=[];if(!r(e))return n;for(var a=-1,o=[],s=e.length;++a<s;){var c=e[a];t(c,a,e)&&(n.push(c),o.push(a))}return i(e,o),n}},
/* 284 */
/***/function(e,t,n){var r=n(12),i=n(13),a=n(5);e.exports=function(e,t){var n=void 0;if(i(t))n=function(e,n){return t(e)-t(n)};else{var o=[];r(t)?o.push(t):a(t)&&(o=t),n=function(e,t){for(var n=0;n<o.length;n+=1){var r=o[n];if(e[r]>t[r])return 1;if(e[r]<t[r])return-1}return 0}}return e.sort(n),e}},
/* 285 */
/***/function(e,t,n){var r=n(3),i=n(29),a=n(147);e.exports=function(){var e=[],t=i(arguments);return r(t,(function(t){e=e.concat(t)})),a(e)}},
/* 286 */
/***/function(e,t,n){e.exports={getWrapBehavior:n(287),wrapBehavior:n(288)};
/***/},
/* 287 */
/***/function(e,t){e.exports=
/**
 * 获取封装的事件
 * @protected
 * @param  {Object} obj   对象
 * @param  {String} action 事件名称
 * @return {Function}        返回事件处理函数
 */
function(e,t){return e["_wrap_"+t]}},
/* 288 */
/***/function(e,t){e.exports=
/**
 * 封装事件，便于使用上下文this,和便于解除事件时使用
 * @protected
 * @param  {Object} obj   对象
 * @param  {String} action 事件名称
 * @return {Function}        返回事件处理函数
 */
function(e,t){if(e["_wrap_"+t])return e["_wrap_"+t];var n=function(n){e[t](n)};return e["_wrap_"+t]=n,n}},
/* 289 */
/***/function(e,t,n){var r=n(290);e.exports={number2color:r,numberToColor:r,parsePath:n(291),parseRadius:n(292)}},
/* 290 */
/***/function(e,t){var n={};e.exports=function(e){
// 增加缓存
var t=n[e];if(!t){for(var r=e.toString(16),i=r.length;i<6;i++)r="0"+r;t="#"+r,n[e]=t}return t}},
/* 291 */
/***/function(e,t,n){var r=n(5),i=n(12),a=n(3),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;e.exports=function(e){return r(e=e||[])?e:i(e)?(e=e.match(o),a(e,(function(t,n){if((t=t.match(s))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}a(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},
/* 292 */
/***/function(e,t,n){var r=n(5);e.exports=function(e){var t=0,n=0,i=0,a=0;return r(e)?1===e.length?t=n=i=a=e[0]:2===e.length?(t=i=e[0],n=a=e[1]):3===e.length?(t=e[0],n=a=e[1],i=e[2]):(t=e[0],n=e[1],i=e[2],a=e[3]):t=n=i=a=e,{r1:t,r2:n,r3:i,r4:a}}},
/* 293 */
/***/function(e,t,n){var r=n(30);e.exports={clamp:n(41),fixedBase:n(294),isDecimal:n(295),isEven:n(296),isInteger:n(297),isNegative:n(298),isNumberEqual:r,isOdd:n(299),isPositive:n(300),maxBy:n(148),minBy:n(301),mod:n(70),snapEqual:r,toDegree:n(69),toInt:n(149),toInteger:n(149),toRadian:n(68)}},
/* 294 */
/***/function(e,t){e.exports=function(e,t){var n=t.toString(),r=n.indexOf(".");if(-1===r)return Math.round(e);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(e.toFixed(i))}},
/* 295 */
/***/function(e,t,n){var r=n(11);e.exports=function(e){return r(e)&&e%1!=0}},
/* 296 */
/***/function(e,t,n){var r=n(11);e.exports=function(e){return r(e)&&e%2==0}},
/* 297 */
/***/function(e,t,n){var r=n(11),i=Number.isInteger?Number.isInteger:function(e){return r(e)&&e%1==0};e.exports=i},
/* 298 */
/***/function(e,t,n){var r=n(11);e.exports=function(e){return r(e)&&e<0}},
/* 299 */
/***/function(e,t,n){var r=n(11);e.exports=function(e){return r(e)&&e%2!=0}},
/* 300 */
/***/function(e,t,n){var r=n(11);e.exports=function(e){return r(e)&&e>0}},
/* 301 */
/***/function(e,t,n){var r=n(5),i=n(13),a=n(3);e.exports=function(e,t){if(r(e)){var n=e[0],o=void 0;o=i(t)?t(e[0]):e[0][t];var s=void 0;return a(e,(function(e){(s=i(t)?t(e):e[t])<o&&(n=e,o=s)})),n}}},
/* 302 */
/***/function(e,t,n){e.exports={forIn:n(303),has:n(150),hasKey:n(304),hasValue:n(305),keys:n(145),isMatch:n(144),values:n(151)};
/***/},
/* 303 */
/***/function(e,t,n){e.exports=n(3);
/***/},
/* 304 */
/***/function(e,t,n){e.exports=n(150);
/***/},
/* 305 */
/***/function(e,t,n){var r=n(48),i=n(151);e.exports=function(e,t){return r(i(e),t)}},
/* 306 */
/***/function(e,t,n){var r=n(307),i=n(155),a=n(154),o=n(157);e.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(308),fillPathByDiff:n(309),formatPath:n(311),intersection:r,pathIntersection:r,parsePathArray:n(153),parsePathString:n(156),pathToAbsolute:i,path2absolute:i,pathTocurve:a,path2curve:a,rectPath:n(152)}},
/* 307 */
/***/function(e,t,n){var r=n(5),i=n(152),a=n(154),o=function(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n},s=function(e,t,n,r,i,a,s,c,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var g=u*h[p]+u,m=o(g,e,n,i,s),v=o(g,t,r,a,c),y=m*m+v*v;d+=f[p]*Math.sqrt(y)}return u*d},c=function(e,t,n,r,i,a,o,s){for(var c=[],l=[[],[]],u=void 0,h=void 0,f=void 0,d=void 0,p=0;p<2;++p)if(0===p?(h=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*o,f=3*n-3*e):(h=6*t-12*r+6*a,u=-3*t+9*r-9*a+3*s,f=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(d=-f/h)>0&&d<1&&c.push(d)}else{var g=h*h-4*f*u,m=Math.sqrt(g);if(!(g<0)){var v=(-h+m)/(2*u);v>0&&v<1&&c.push(v);var y=(-h-m)/(2*u);y>0&&y<1&&c.push(y)}}for(var A=c.length,b=A,w=void 0;A--;)w=1-(d=c[A]),l[0][A]=w*w*w*e+3*w*w*d*n+3*w*d*d*i+d*d*d*o,l[1][A]=w*w*w*t+3*w*w*d*r+3*w*d*d*a+d*d*d*s;return l[0][b]=e,l[1][b]=t,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},l=function(e,t,n,r,i,a,o,s){if(!(Math.max(e,n)<Math.min(i,o)||Math.min(e,n)>Math.max(i,o)||Math.max(t,r)<Math.min(a,s)||Math.min(t,r)>Math.max(a,s))){var c=(e-n)*(a-s)-(t-r)*(i-o);if(c){var l=((e*r-t*n)*(i-o)-(e-n)*(i*s-a*o))/c,u=((e*r-t*n)*(a-s)-(t-r)*(i*s-a*o))/c,h=+l.toFixed(2),f=+u.toFixed(2);if(!(h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:u}}}},u=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},h=function(e,t,n,r){return null===e&&(e=t=n=r=0),null===t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:i(e,t,n,r),vb:[e,t,n,r].join(" ")}},f=function(e,t,n,i,a,o,s,l){r(e)||(e=[e,t,n,i,a,o,s,l]);var u=c.apply(null,e);return h(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},d=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,d=f*c,p=e+2*c*(n-e)+f*(i-2*n+e),g=t+2*c*(r-t)+f*(a-2*r+t),m=n+2*c*(i-n)+f*(o-2*i+n),v=r+2*c*(a-r)+f*(s-2*a+r);// (mx > nx || my < ny) && (alpha += 180);
return{x:u*e+3*h*c*n+3*l*c*c*i+d*o,y:u*t+3*h*c*r+3*l*c*c*a+d*s,m:{x:p,y:g},n:{x:m,y:v},start:{x:l*e+c*n,y:l*t+c*r},end:{x:l*i+c*o,y:l*a+c*s},alpha:90-180*Math.atan2(p-m,g-v)/Math.PI}},p=function(e,t,n){if(!function(e,t){return e=h(e),t=h(t),u(t,e.x,e.y)||u(t,e.x2,e.y)||u(t,e.x,e.y2)||u(t,e.x2,e.y2)||u(e,t.x,t.y)||u(e,t.x2,t.y)||u(e,t.x,t.y2)||u(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(f(e),f(t)))return n?0:[];for(var r=~~(s.apply(0,e)/8),i=~~(s.apply(0,t)/8),a=[],o=[],c={},p=n?0:[],g=0;g<r+1;g++){var m=d.apply(0,e.concat(g/r));a.push({x:m.x,y:m.y,t:g/r})}for(var v=0;v<i+1;v++){var y=d.apply(0,t.concat(v/i));o.push({x:y.x,y:y.y,t:v/i})}for(var A=0;A<r;A++)for(var b=0;b<i;b++){var w=a[A],x=a[A+1],C=o[b],_=o[b+1],I=Math.abs(x.x-w.x)<.001?"y":"x",E=Math.abs(_.x-C.x)<.001?"y":"x",k=l(w.x,w.y,x.x,x.y,C.x,C.y,_.x,_.y);if(k){if(c[k.x.toFixed(4)]===k.y.toFixed(4))continue;c[k.x.toFixed(4)]=k.y.toFixed(4);var S=w.t+Math.abs((k[I]-w[I])/(x[I]-w[I]))*(x.t-w.t),B=C.t+Math.abs((k[E]-C[E])/(_[E]-C[E]))*(_.t-C.t);S>=0&&S<=1&&B>=0&&B<=1&&(n?p++:p.push({x:k.x,y:k.y,t1:S,t2:B}))}}return p};e.exports=function(e,t){return function(e,t,n){e=a(e),t=a(t);for(var r=void 0,i=void 0,o=void 0,s=void 0,c=void 0,l=void 0,u=void 0,h=void 0,f=void 0,d=void 0,g=n?0:[],m=0,v=e.length;m<v;m++){var y=e[m];if("M"===y[0])r=c=y[1],i=l=y[2];else{"C"===y[0]?(f=[r,i].concat(y.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,c,l,c,l],r=c,i=l);for(var A=0,b=t.length;A<b;A++){var w=t[A];if("M"===w[0])o=u=w[1],s=h=w[2];else{"C"===w[0]?(d=[o,s].concat(w.slice(1)),o=d[6],s=d[7]):(d=[o,s,o,s,u,h,u,h],o=u,s=h);var x=p(f,d,n);if(n)g+=x;else{for(var C=0,_=x.length;C<_;C++)x[C].segment1=m,x[C].segment2=A,x[C].bez1=f,x[C].bez2=d;g=g.concat(x)}}}}}return g}(e,t)}},
/* 308 */
/***/function(e,t){function n(e,t){var n=[],r=[];return e.length&&function e(t,i){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-i)*t[o][0]+i*t[o+1][0],(1-i)*t[o][1]+i*t[o+1][1]];e(a,i)}}(e,t),{left:n,right:r.reverse()}}function r(e,t,r){if(1===r)return[[].concat(e)];var i=[];if("L"===t[0]||"C"===t[0]||"Q"===t[0])i=i.concat(function(e,t,r){var i=[[e[1],e[2]]];r=r||2;var a=[];"A"===t[0]?(i.push(t[6]),i.push(t[7])):"C"===t[0]?(i.push([t[1],t[2]]),i.push([t[3],t[4]]),i.push([t[5],t[6]])):"S"===t[0]||"Q"===t[0]?(i.push([t[1],t[2]]),i.push([t[3],t[4]])):i.push([t[1],t[2]]);for(var o=i,s=1/r,c=0;c<r-1;c++){var l=n(o,s/(1-s*c));a.push(l.left),o=l.right}return a.push(o),a.map((function(e){var t=[];return 4===e.length&&(t.push("C"),t=t.concat(e[2])),e.length>=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t.concat(e[e.length-1])}))}(e,t,r));else{var a=[].concat(e);"M"===a[0]&&(a[0]="L");for(var o=0;o<=r-1;o++)i.push(a)}return i}e.exports=function(e,t){if(1===e.length)return e;var n=e.length-1,i=t.length-1,a=n/i,o=[];if(1===e.length&&"M"===e[0][0]){for(var s=0;s<i-n;s++)e.push(e[0]);return e}for(var c=0;c<i;c++){var l=Math.floor(a*c);o[l]=(o[l]||0)+1}var u=o.reduce((function(t,i,a){return a===n?t.concat(e[n]):t.concat(r(e[a],e[a+1],i))}),[]);return u.unshift(e[0]),"Z"!==t[i]&&"z"!==t[i]||u.push("Z"),u}},
/* 309 */
/***/function(e,t,n){var r=n(310);function i(e,t,n){var r=null,i=n;return t<i&&(i=t,r="add"),e<i&&(i=e,r="del"),{type:r,min:i}}
/*
 * https://en.wikipedia.org/wiki/Levenshtein_distance
 * 计算两条path的编辑距离
 */e.exports=function(e,t){var n=function(e,t){var n=e.length,a=t.length,o=void 0,s=void 0,c=0;if(0===n||0===a)return null;for(var l=[],u=0;u<=n;u++)l[u]=[],l[u][0]={min:u};for(var h=0;h<=a;h++)l[0][h]={min:h};for(var f=1;f<=n;f++){o=e[f-1];for(var d=1;d<=a;d++){s=t[d-1],c=r(o,s)?0:1;var p=l[f-1][d].min+1,g=l[f][d-1].min+1,m=l[f-1][d-1].min+c;l[f][d]=i(p,g,m)}}return l}(e,t),a=e.length,o=t.length,s=[],c=1,l=1;// 如果source和target不是完全不相等
if(n[a][o]!==a){
// 获取从source到target所需改动
for(var u=1;u<=a;u++){var h=n[u][u].min;l=u;for(var f=c;f<=o;f++)n[u][f].min<h&&(h=n[u][f].min,l=f);c=l,n[u][c].type&&s.push({index:u-1,type:n[u][c].type})}// 对source进行增删path
for(var d=s.length-1;d>=0;d--)c=s[d].index,"add"===s[d].type?e.splice(c,0,[].concat(e[c])):e.splice(c,1)}// source尾部补齐
if((a=e.length)<o)for(var p=0;p<o-a;p++)"z"===e[a-1][0]||"Z"===e[a-1][0]?e.splice(a-2,0,e[a-2]):e.push(e[a-1]);return e}},
/* 310 */
/***/function(e,t,n){var r=n(3);e.exports=function(e,t){if(e.length!==t.length)return!1;var n=!0;return r(e,(function(e,r){if(e!==t[r])return n=!1,!1})),n}},
/* 311 */
/***/function(e,t){
/*
 * 抽取pathSegment中的关键点
 * M,L,A,Q,H,V一个端点
 * Q, S抽取一个端点，一个控制点
 * C抽取一个端点，两个控制点
 */
function n(e){var t=[];switch(e[0]){case"M":case"L":case"T":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"H":case"V":t.push([e[1],e[1]])}return t}// 将两个点均分成count个点
function r(e,t,r){for(var i=[].concat(e),a=void 0,o=1/(r+1),s=n(t)[0],c=1;c<=r;c++)o*=c,0===(a=Math.floor(e.length*o))?i.unshift([s[0]*o+e[a][0]*(1-o),s[1]*o+e[a][1]*(1-o)]):i.splice(a,0,[s[0]*o+e[a][0]*(1-o),s[1]*o+e[a][1]*(1-o)]);return i}e.exports=function(e,t){if(e.length<=1)return e;for(var i=void 0,a=0;a<t.length;a++)if(e[a][0]!==t[a][0])switch(
// 获取fromPath的pathSegment的端点，根据toPath的指令对其改造
i=n(e[a]),t[a][0]){case"M":e[a]=["M"].concat(i[0]);break;case"L":e[a]=["L"].concat(i[0]);break;case"A":e[a]=[].concat(t[a]),e[a][6]=i[0][0],e[a][7]=i[0][1];break;case"Q":if(i.length<2){if(!(a>0)){e[a]=t[a];break}i=r(i,e[a-1],1)}e[a]=["Q"].concat(i.reduce((function(e,t){return e.concat(t)}),[]));break;case"T":e[a]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(a>0)){e[a]=t[a];break}i=r(i,e[a-1],2)}e[a]=["C"].concat(i.reduce((function(e,t){return e.concat(t)}),[]));break;case"S":if(i.length<2){if(!(a>0)){e[a]=t[a];break}i=r(i,e[a-1],1)}e[a]=["S"].concat(i.reduce((function(e,t){return e.concat(t)}),[]));break;default:e[a]=t[a]}return e}},
/* 312 */
/***/function(e,t,n){var r={lc:n(313),lowerCase:n(158),lowerFirst:n(106),substitute:n(314),uc:n(315),upperCase:n(159),upperFirst:n(64)};e.exports=r},
/* 313 */
/***/function(e,t,n){e.exports=n(158);
/***/},
/* 314 */
/***/function(e,t){e.exports=function(e,t){return e&&t?e.replace(/\\?\{([^{}]+)\}/g,(function(e,n){return"\\"===e.charAt(0)?e.slice(1):void 0===t[n]?"":t[n]})):e}},
/* 315 */
/***/function(e,t,n){e.exports=n(159);
/***/},
/* 316 */
/***/function(e,t,n){var r=n(14),i={getType:n(113),isArray:n(5),isArrayLike:n(15),isBoolean:n(60),isFunction:n(13),isNil:n(6),isNull:n(317),isNumber:n(11),isObject:n(22),isObjectLike:n(63),isPlainObject:n(28),isPrototype:n(114),isType:r,isUndefined:n(318),isString:n(12),isRegExp:n(319),isDate:n(111),isArguments:n(320),isError:n(321)};e.exports=i},
/* 317 */
/***/function(e,t){e.exports=function(e){return null===e}},
/* 318 */
/***/function(e,t){e.exports=function(e){return void 0===e}},
/* 319 */
/***/function(e,t,n){var r=n(14);e.exports=function(e){return r(e,"RegExp")}},
/* 320 */
/***/function(e,t,n){
/**
 * 是否是参数类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */
var r=n(14);e.exports=function(e){return r(e,"Arguments")}},
/* 321 */
/***/function(e,t,n){
/**
 * 是否是参数类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */
var r=n(14);e.exports=function(e){return r(e,"Error")}},
/* 322 */
/***/function(e,t){e.exports=function(e,t,n){var r=void 0;return function(){var i=this,a=arguments,o=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(i,a)}),t),o&&e.apply(i,a)}}},
/* 323 */
/***/function(e,t,n){var r=n(15);e.exports=function(e,t){if(!r(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var i=-1,a=0;a<e.length;a++)if(e[a]===t){i=a;break}return i}},
/* 324 */
/***/function(e,t,n){var r=n(13),i=n(40);e.exports=function(e,t,n){return r(n)?!!n(e,t):i(e,t)}},
/* 325 */
/***/function(e,t,n){var r=n(3),i=n(15);e.exports=function(e,t){if(!i(e))return e;var n=[];return r(e,(function(e,r){n.push(t(e,r))})),n}},
/* 326 */
/***/function(e,t,n){var r=n(3),i=n(28),a=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(null===e||!i(e))return{};var n={};return r(t,(function(t){a.call(e,t)&&(n[t]=e[t])})),n}},
/* 327 */
/***/function(e,t){e.exports=function(e,t,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,a=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=l,o=e.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}},
/* 328 */
/***/function(e,t,n){
/**
 * @fileOverview Default animation funciton
 * @author sima.zhang
 */
var r=n(0),i=n(18),a=r.PathUtil;function o(e,t){var n,i,a=// 获取图形的包围盒
function(e){if(r.isEmpty(e))return null;var t=e[0].x,n=e[0].x,i=e[0].y,a=e[0].y;return r.each(e,(function(e){t=t>e.x?e.x:t,n=n<e.x?e.x:n,i=i>e.y?e.y:i,a=a<e.y?e.y:a})),{minX:t,maxX:n,minY:i,maxY:a,centerX:(t+n)/2,centerY:(i+a)/2}}(e.points||e.get("origin").points),o=t.startAngle,s=t.endAngle-o;return t.isTransposed?(n=a.maxY*s,i=a.minY*s):(n=a.maxX*s,i=a.minX*s),{startAngle:i+=o,endAngle:n+=o}}function s(e,t,n){var i={};return e.delay&&(i.delay=r.isFunction(e.delay)?e.delay(t,n):e.delay),i.easing=r.isFunction(e.easing)?e.easing(t,n):e.easing,i.duration=r.isFunction(e.duration)?e.duration(t,n):e.duration,i.callback=e.callback,i}function c(e,t){var n,r=e._id,i=e.get("index"),a=e.getBBox(),o=e.get("origin").points,c=(a.minX+a.maxX)/2,l=[c,
// 当顶点在零点之下
n=o[0].y-o[1].y<=0?a.maxY:a.minY,1];e.apply(l),e.attr("transform",[["t",-c,-n],["s",1,.01],["t",c,n]]);var u={transform:[["t",-c,-n],["s",1,100],["t",c,n]]},h=s(t,i,r);e.animate(u,h.duration,h.easing,h.callback,h.delay)}function l(e,t){var n,r=e._id,i=e.get("index"),a=e.getBBox(),o=e.get("origin").points,c=(a.minY+a.maxY)/2,l=[
// 当顶点在零点之下
n=o[0].y-o[1].y>0?a.maxX:a.minX,c,1];e.apply(l),e.attr({transform:[["t",-n,-c],["s",.01,1],["t",n,c]]});var u={transform:[["t",-n,-c],["s",100,1],["t",n,c]]},h=s(t,i,r);e.animate(u,h.duration,h.easing,h.callback,h.delay)}function u(e,t,n){var r,i,a=e._id,o=e.get("index");if(n.isPolar&&"point"!==e.name)r=n.getCenter().x,i=n.getCenter().y;else{var c=e.getBBox();r=(c.minX+c.maxX)/2,i=(c.minY+c.maxY)/2}var l=[r,i,1];e.apply(l),e.attr({transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]});var u={transform:[["t",-r,-i],["s",100,100],["t",r,i]]},h=s(t,o,a);e.animate(u,h.duration,h.easing,h.callback,h.delay)}function h(e,t){if("path"===e.get("type")){var n=e._id,r=e.get("index"),i=a.pathToAbsolute(e.attr("path"));e.attr("path",[i[0]]);var o={path:i},c=s(t,r,n);e.animate(o,c.duration,c.easing,c.callback,c.delay)}}function f(e,t,n,r,a){var o,c=function(e){var t,n,r,a,o,s=e.start,c=e.end,l=e.getWidth(),u=e.getHeight(),h=200;return e.isPolar?(a=e.getRadius(),r=e.getCenter(),t=e.startAngle,n=e.endAngle,(o=new i.Fan({attrs:{x:r.x,y:r.y,rs:0,re:a+h,startAngle:t,endAngle:t}})).endState={endAngle:n}):(o=new i.Rect({attrs:{x:s.x-h,y:c.y-h,width:e.isTransposed?l+400:0,height:e.isTransposed?0:u+400}}),e.isTransposed?o.endState={height:u+400}:o.endState={width:l+400}),o.isClip=!0,o}(n),l=e.get("canvas"),u=e._id,h=e.get("index");r?(c.attr("startAngle",r),c.attr("endAngle",r),o={endAngle:a}):o=c.endState,c.set("canvas",l),e.attr("clip",c),e.setSilent("animating",!0);var f=s(t,h,u);c.animate(o,f.duration,f.easing,(function(){e&&!e.get("destroyed")&&(e.attr("clip",null),e.setSilent("cacheShape",null),e.setSilent("animating",!1),c.remove())}),f.delay)}function d(e,t){var n=e._id,i=e.get("index"),a=r.isNil(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),o=r.isNil(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity");e.attr("fillOpacity",0),e.attr("strokeOpacity",0);var c={fillOpacity:a,strokeOpacity:o},l=s(t,i,n);e.animate(c,l.duration,l.easing,l.callback,l.delay)}function p(e,t,n){var r=o(e,n),i=r.endAngle;f(e,t,n,r.startAngle,i)}// 默认动画库
e.exports={enter:{clipIn:f,zoomIn:u,pathIn:h,scaleInY:c,scaleInX:l,fanIn:p,fadeIn:d},leave:{lineWidthOut:function(e,t){var n={lineWidth:0,opacity:0},r=e._id,i=s(t,e.get("index"),r);e.animate(n,i.duration,i.easing,(function(){e.remove()}),i.delay)},zoomOut:function(e,t,n){var r,i,a=e._id,o=e.get("index");if(n.isPolar&&"point"!==e.name)r=n.getCenter().x,i=n.getCenter().y;else{var c=e.getBBox();r=(c.minX+c.maxX)/2,i=(c.minY+c.maxY)/2}var l=[r,i,1];e.apply(l);var u={transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]},h=s(t,o,a);e.animate(u,h.duration,h.easing,(function(){e.remove()}),h.delay)},pathOut:function(e,t){if("path"===e.get("type")){var n=e._id,r=e.get("index"),i={path:[a.pathToAbsolute(e.attr("path"))[0]]},o=s(t,r,n);e.animate(i,o.duration,o.easing,(function(){e.remove()}),o.delay)}},fadeOut:function(e,t){var n=e._id,r={fillOpacity:0,strokeOpacity:0},i=s(t,e.get("index"),n);e.animate(r,i.duration,i.easing,(function(){e.remove()}),i.delay)}},appear:{clipIn:f,zoomIn:u,pathIn:h,scaleInY:c,scaleInX:l,fanIn:p,fadeIn:d},update:{fadeIn:d,fanIn:p,lineSlideLeft:function(e,t,n){if("line"===e.name){var r=e.get("canvas"),o=e.get("cacheShape"),c=e._id,l=e.get("index"),u=new i.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",r);var h=a.pathToAbsolute(o.attrs.path),f=a.pathToAbsolute(e.attr("path")),d=h[1][1]-h[0][1],p=h[h.length-1][1]+d,g=f[f.length-1][2],m=h.concat([["L",p,g]]);e.apply([0,0,1]),e.attr("clip",u),e.attr("path",m);var v={transform:[["t",-d,0]]},y=s(t,l,c);e.animate(v,y.duration,y.easing,(function(){e&&!e.get("destroyed")&&(e.attr("path",f),e.attr({transform:[["t",d,0]]}),e.attr("clip",null),e.setSilent("cacheShape",null),u.remove())}),y.delay)}},areaSlideLeft:function(e,t,n){if("area"===e.name){var r=e.get("canvas"),o=e.get("cacheShape"),c=e._id,l=e.get("index"),u=new i.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",r);var h=a.pathToAbsolute(o.attrs.path),f=a.pathToAbsolute(e.attr("path")),d=h[1][1]-h[0][1],p=Math.floor(h.length/2),g=h[p-1][1]+d,m=f[p-1][2],v=[].concat(h.slice(0,p),[["L",g,m],["L",g,f[p][2]]],h.slice(p));e.apply([0,0,1]),e.attr("clip",u),e.attr("path",v);var y={transform:[["t",-d,0]]},A=s(t,l,c);e.animate(y,A.duration,A.easing,(function(){e&&!e.get("destroyed")&&(e.attr("path",f),e.attr({transform:[["t",d,0]]}),e.attr("clip",null),e.setSilent("cacheShape",null),u.remove())}),A.delay)}}}}},
/* 329 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview view
 * @author dxq613@gmail.com
 */var i=n(164),a=n(23),o=n(0),s=n(200),c=n(8),l=n(167),u="_origin",h=n(413);function f(e,t,n){var r=(e-t)/(n-t);return r>=0&&r<=1}function d(e,t){var n=!1;if(e)if("theta"===e.type){var r=e.start,i=e.end;n=f(t.x,r.x,i.x)&&f(t.y,r.y,i.y)}else{var a=e.invert(t);n=a.x>=0&&a.y>=0&&a.x<=1&&a.y<=1}return n}var p={};o.each(a,(function(e,t){var n=o.lowerFirst(t);p[n]=function(t){var n=new e(t);return this.addGeom(n),n}}));
/**
 * 图表中的视图
 * @class View
 */
var g=function(e){var t,n;n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=f.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */function f(t){var n,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call(this,t)||this);return r._setTheme(),o.each(a,(function(e,t){var n=o.lowerFirst(t);r[n]=function(t){void 0===t&&(t={}),t.viewTheme=r.get("viewTheme");var n=new e(t);return r.addGeom(n),n}})),// Util.mix(this, ViewGeoms);
r.init(),n}return i.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,
// 是否展示 tooltip
animate:c.animate,visible:!0}},i._setTheme=function(){var e=this.get("theme"),t={},n={};o.isObject(e)?n=e:-1!==o.indexOf(Object.keys(l),e)&&(n=l[e]),o.deepMix(t,c,n),this.set("viewTheme",t)}
/**
   * @protected
   * 初始化
   */,i.init=function(){this._initViewPlot(),// 先创建容器
this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()}// 初始化配置项
,i._initOptions=function(){var e=this,t=o.mix({},e.get("options"));// 防止修改原始值
t.scales||(t.scales={}),t.coord||(t.coord={}),!1===t.animate&&this.set("animate",!1),(!1===t.tooltip||o.isNull(t.tooltip))&&
// 配置项方式关闭 tooltip
this.set("tooltipEnable",!1),t.geoms&&t.geoms.length&&o.each(t.geoms,(function(t){e._createGeom(t)}));var n=e.get("scaleController");n&&(n.defs=t.scales);var r=e.get("coordController");r&&r.reset(t.coord),this.set("options",t)},i._createGeom=function(e){var t,n=e.type;this[n]&&(t=this[n](),o.each(e,(function(e,n){var r;t[n]&&(o.isObject(e)&&e.field?
// 配置项传入
"label"===e?t[n](e.field,e.callback,e.cfg):(o.each(e,(function(e,t){"field"!==t&&(r=e)})),t[n](e.field,r)):t[n](e))})))}// 初始化所有的控制器
,i._initControllers=function(){var e=this,t=e.get("options"),n=e.get("viewTheme"),r=e.get("canvas"),i=new s.Scale({viewTheme:n,defs:t.scales}),a=new s.Coord(t.coord);this.set("scaleController",i),this.set("coordController",a);var o=new s.Axis({canvas:r,viewTheme:n});this.set("axisController",o);var c=new s.Guide({viewTheme:n,options:t.guides||[]});this.set("guideController",c)},i._initViewPlot=function(){this.get("viewContainer")||
// 用于 geom 的绘制
this.set("viewContainer",this.get("middlePlot"))},i._initGeoms=function(){for(var e=this.get("geoms"),t=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),i=0;i<e.length;i++){var a=e[i];a.set("data",t),a.set("coord",n),a.set("_id",r+"-geom"+i),a.set("keyFields",this.get("keyFields")),a.init()}},i._clearGeoms=function(){for(var e=this.get("geoms"),t=0;t<e.length;t++)e[t].clear()},i._removeGeoms=function(){for(var e=this.get("geoms");e.length>0;)e.shift().destroy()},i._drawGeoms=function(){this.emit("beforedrawgeoms");for(var e=this.get("geoms"),t=this.get("coord"),n=0;n<e.length;n++){var r=e[n];r.setCoord(t),r.paint()}this.emit("afterdrawgeoms")},i.isShapeInView=function(e){var t=this.get("_id"),n=e._id;if(n)return n.split("-")[0]===t;for(var r=e;r;){if(r.get("viewId")===t)return!0;r=r.get("parent")}return!1}
/**
   * View 所在的范围
   * @protected
   * @return {Object} View 所在的范围
   */,i.getViewRegion=function(){var e,t,n=this,r=n.get("parent");if(r){var i=r.getViewRegion(),a=n._getViewRegion(i.start,i.end);e=a.start,t=a.end}else e=n.get("start"),t=n.get("end");return{start:e,end:t}}// 获取 range 所在的范围
,i._getViewRegion=function(e,t){var n=this.get("start"),r=this.get("end"),i=n.x,a=1-r.y,s=r.x,c=1-n.y,l=this.get("padding"),u=o.toAllPadding(l),h=u[0],f=u[1],d=u[2],p=u[3];return{start:{x:i*(t.x-e.x)+e.x+p,y:a*(t.y-e.y)+e.y-d},end:{x:s*(t.x-e.x)+e.x-f,y:c*(t.y-e.y)+e.y+h}}},i._createCoord=function(){var e=this.get("coordController"),t=this.getViewRegion(),n=e.createCoord(t.start,t.end);this.set("coord",n)},i._renderAxes=function(){var e=this.get("options").axes;if(!1!==e){var t=this.get("axisController");t.container=this.get("backPlot"),t.coord=this.get("coord"),t.options=e||{};var n=this.getXScale(),r=this.getYScales(),i=this.get("_id");t.createAxis(n,r,i)}},i._renderGuides=function(){var e=this.get("guideController");if(!o.isEmpty(e.options)){var t=this.get("coord");e.view=this,e.backContainer=this.get("backPlot"),e.frontContainer=this.get("frontPlot"),e.xScales=this._getScales("x"),e.yScales=this._getScales("y"),e.render(t)}}// 注册事件
,i._bindEvents=function(){var e=new s.Event({view:this,canvas:this.get("canvas")});e.bindEvents(),this.set("eventController",e)}// 清理时间
,i._clearEvents=function(){var e=this.get("eventController");e&&e.clearEvents()},i._getScales=function(e){for(var t=this.get("geoms"),n={},r=0;r<t.length;r++){var i=t[r],a="x"===e?i.getXScale():i.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},i._adjustScale=function(){this._setCatScalesRange();for(var e=this.get("geoms"),t=this.get("scaleController").defs,n=0;n<e.length;n++){var r=e[n];if("interval"===r.get("type")){var i=r.getYScale(),a=i.field,o=i.min,s=i.max,c=i.type;t[a]&&t[a].min||"time"===c||(o>0?i.change({min:0}):s<=0&&
// 当柱状图全为负值时也需要从 0 开始生长
i.change({max:0}))}}},i._setCatScalesRange=function(){var e=this,t=e.get("coord"),n=e.get("viewTheme"),r=e.getXScale(),i=e.getYScales(),a=[];r&&a.push(r),a=a.concat(i);var s=t.isPolar&&function(e){var t=e.startAngle,n=e.endAngle;return!(!o.isNil(t)&&!o.isNil(n)&&n-t<2*Math.PI)}(t),c=e.get("scaleController").defs;o.each(a,(function(e){if((e.isCategory||e.isIdentity)&&e.values&&(!c[e.field]||!c[e.field].range)){var r,i=e.values.length;if(1===i)r=[.5,1];// 只有一个分类时,防止计算出现 [0.5,0.5]的状态
else{var a=0;r=s?t.isTransposed?[(a=1/i*n.widthRatio.multiplePie)/2,1-a/2]:[0,1-1/i]:[a=1/i*1/2,1-a]}e.range=r}}))},i.getXScale=function(){var e=this.get("geoms"),t=null;// 如果进行过滤，那么 geom 默认隐藏时会出现不一致
// 默认隐藏时坐标轴不绘制，但是调用了 geom.show() 后，则图形显示了，坐标轴依然不见
/* .filter(function(geom) {
      return geom.get('visible');
    }); */return o.isEmpty(e)||(t=e[0].getXScale()),t},i.getYScales=function(){for(var e=this.get("geoms"),t=[],n=0
/* .filter(function(geom) {
      return geom.get('visible');
    }); */;n<e.length;n++){var r=e[n].getYScale();r&&-1===o.indexOf(t,r)&&t.push(r)}return t}
/**
   * 获取数据对应在画布空间的坐标
   * @param  {Object} item 原始数据
   * @return {Object}      返回对应的画布上的坐标点
   */,i.getXY=function(e){var t,n,r=this,i=r.get("coord"),a=r._getScales("x"),s=r._getScales("y");for(var c in e)a[c]&&(t=a[c].scale(e[c])),s[c]&&(n=s[c].scale(e[c]));return o.isNil(t)||o.isNil(n)?null:i.convert({x:t,y:n})}
/**
   * 获取逼近的点的数据集合
   * @param  {Object} point 画布上的像素点
   * @return {Array} 数据
   */,i.getSnapRecords=function(e){var t=this.get("geoms"),n=[];return o.each(t,(function(t){var r,i=t.get("dataArray");o.each(i,(function(i){(r=t.findPoint(e,i))&&n.push(r)}))})),n}
/**
   * @protected
   * 添加几何标记
   * @param {Geom} geom 几何标记
   */,i.addGeom=function(e){var t=this;t.get("geoms").push(e),e.set("view",t);var n=t.get("viewContainer");e.set("container",n),e.set("animate",t.get("animate")),e.bindEvents()}
/**
   * @protected
   * 移除几何标记
   * @param {Geom} geom 几何标记
   */,i.removeGeom=function(e){var t=this.get("geoms");o.Array.remove(t,e),e.destroy()},i.createScale=function(e,t){var n=this.get("scales"),r=this.get("parent"),i=n[e];// const filters = this._getFilters();
if(!t){var a=this.get("filteredData"),o=this._getFieldsForLegend();// 过滤导致数据为空时，需要使用全局数据
// 参与过滤的字段的度量也根据全局数据来生成
t=a.length&&!o.includes(e)?a:this.get("data")}var s=this.get("scaleController");if(i){if(i.sync){
// 防止 view 内部创建的scale，Chart 上的scale 范围更大
var c=s.createScale(e,t);this._syncScale(i,c)}}else{if((i=s.createScale(e,t)).sync&&r){var l=r.createScale(e,t);i=this._getSyncScale(l,i)}n[e]=i}return i},i._getFieldsForLegend=function(){var e=[],t=this.get("geoms");return o.each(t,(function(t){var n=t.getFieldsForLegend();e=e.concat(n)})),o.uniq(e)}// 如果需要同步度量，则使得 values,min,max的范围最大
,i._getSyncScale=function(e,t){return e.type!==t.type?t:(this._syncScale(e,t),e)},i._syncScale=function(e,t){var n=o.union(e.values,t.values);if(t.isLinear){var r=Math.max(e.max,t.max),i=Math.min(e.min,t.min);e.max===r&&e.min===i||e.change({min:i,max:r,values:n})}n.length!==e.values.length&&e.change({values:n})}
/**
   * @protected
   * 获取过滤后的值（需要显示的值）
   * @param {String} field 度量
   * @return {Array.<String>} 滤后的值
   */,i.getFilteredValues=function(e){var t=this.get("scales")[e].values,n=this._getFilters();return n&&n[e]?t.filter(n[e]):t.slice(0)}
/**
   * @protected
   * 获取被过滤的值（不需显示的值）
   * @param {String} field 度量
   * @return {Array.<String>} 滤出的值
   */,i.getFilteredOutValues=function(e){var t,n=this.get("scales")[e].values,r=this._getFilters();return t=r&&r[e]?n.filter((function(){return!r[e].apply(r,arguments)})):[],t},i.filter=function(e,t){var n=this.get("options");n.filters||(n.filters={}),n.filters[e]=t,this.get("scaleController").filters=n.filters}// 获取 filters
,i._getFilters=function(){return this.get("options").filters}// 执行 filter 数据
,i.execFilter=function(e){var t=this._getFilters();return t&&(e=e.filter((function(e){var n=!0;return o.each(t,(function(t,r){if(t&&!(n=t(e[r],e)))return!1})),n}))),e},i.axis=function(e,t){var n=this.get("options");return!1===e?n.axes=!1:(n.axes||(n.axes={}),n.axes[e]=t),this},i.guide=function(){return this.get("guideController")},i._getKeyFields=function(e){var t=[];o.each(e,(function(e,n){e.key&&t.push(n)})),this.set("keyFields",t)},i.scale=function(e,t){var n=this.get("options").scales;return o.isObject(e)?o.mix(n,e):n[e]=t,this._getKeyFields(n),this},i.tooltip=function(e){return this.set("tooltipEnable",e),this},i.animate=function(e){return this.get("options").animate=e,this.set("animate",e),this},i.changeOptions=function(e){return this.set("options",e),this._initOptions(e),this}
/**
   * @internal 查找包含指定点的视图
   * @param  {Object} point 点的位置
   * @return {Array} 多个视图
   */,i.getViewsByPoint=function(e){var t=[],n=this.get("views");return d(this.get("coord"),e)&&t.push(this),o.each(n,(function(n){n.get("visible")&&d(n.get("coord"),e)&&t.push(n)})),t}
/**
   * 遍历所有的 shape ，用户更改 shape 后进行刷新
   * @param  {Function} fn 回调函数包含参数：record,shape,geom,view
   * @return {View} 当前视图
   */,i.eachShape=function(e){var t=this,n=t.get("views"),r=t.get("canvas");o.each(n,(function(t){t.eachShape(e)}));var i=this.get("geoms");return o.each(i,(function(n){var r=n.getShapes();o.each(r,(function(r){var i=r.get("origin");if(o.isArray(i)){var a=i.map((function(e){return e[u]}));e(a,r,n,t)}else{var s=i[u];e(s,r,n,t)}}))})),r.draw(),this}
/**
   * 遍历所有的 shape ，回调函数中 true / false 控制图形是否显示
   * @param  {Function} fn 回调函数包含参数：record,shape,geom,view
   * @return {View} 当前视图
   */,i.filterShape=function(e){return this.eachShape((function(t,n,r,i){e(t,n,r,i)?n.show():n.hide()})),this},i.clearInner=function(){this.set("scales",{}),this.emit("beforeclearinner"),this.get("options").geoms=null,this._clearGeoms(),// reset guide
this.get("guideController")&&this.get("guideController").reset(),// clear axis
this.get("axisController")&&this.get("axisController").clear(),this.emit("afterclearinner")}
/**
   * 清除视图内容，包括 geoms
   * @return {View} 当前视图
   */,i.clear=function(){return this.get("options").filters=null,this._removeGeoms(),// const container = this.get('viewContainer');
// container.clear();
this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this}
/**
   * 设置坐标系信息
   * @param  {String} type 类型
   * @param  {Object} cfg  配置项
   * @return {Object} coordController 坐标系的管理器
   */,i.coord=function(e,t){var n=this.get("coordController");return n.reset({type:e,cfg:t}),n}
/**
   * 当父元素边框发生改变时坐标系需要重新调整
   * @protected
   */,i.resetCoord=function(){this._createCoord()},i.source=function(e,t){return this._initData(e),t&&this.scale(t),this.emit("setdata"),this},i.changeData=function(e){return this.emit("beforechangedata"),this._initData(e),this.emit("afterchangedata"),this.repaint(),this},i._initData=function(e){var t=this.get("dataView");t&&(t.off("change",o.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),e&&e.isDataView&&(e.on("change",o.wrapBehavior(this,"_onViewChange")),this.set("dataView",e),e=e.rows),this.set("data",e)},i._onViewChange=function(){this.emit("beforechangedata");var e=this.get("dataView").rows;this.set("data",e),this.emit("afterchangedata"),this.repaint()}// 初始化各个 view 和绘制辅助元素
,i.beforeRender=function(){var e=this.get("views");// 如果存在 views 则初始化子 view 的方法
o.each(e,(function(e){e.beforeRender()})),this.initView()}// 绘制坐标轴、图例、辅助元素等图表组件
,i.drawComponents=function(){var e=this.get("views");// 如果存在 views 则初始化子 view 的方法
o.each(e,(function(e){e.drawComponents()})),this._renderAxes(),this._renderGuides()}// 绘制图形
,i.drawCanvas=function(e){if(!e){var t=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var r=this.get("isUpdate");o.each(t,(function(e){h.execAnimation(e,r)})),h.execAnimation(this,r)}else n.draw()}},i.render=function(e){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(e),this.emit("afterrender"),this.set("rendered",!0),this},i.initView=function(){var e=this.get("data")||[],t=this.execFilter(e);this.set("filteredData",t),// if (!Util.isEmpty(data)) {
this._createCoord(),// draw geometry 前绘制区域可能会发生改变
this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},i.paint=function(){var e=this.get("views");// 绘制
o.each(e,(function(e){e.paint()}));var t=this.get("data");o.isEmpty(t)||this._drawGeoms(),// 如果 view 隐藏了，隐藏所有的图形和坐标轴
this.get("visible")||this.changeVisible(!1,!0)},i.changeVisible=function(e,t){var n=this.get("geoms");o.each(n,(function(t){
// if (geom.get('visible')) { // geom 隐藏时不受
t.changeVisible(e,!0);// }
})),this.get("axisController")&&this.get("axisController").changeVisible(e),this.get("guideController")&&this.get("guideController").changeVisible(e),t||this.get("canvas").draw()},i.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},i.destroy=function(){this._clearEvents();var t=this.get("dataView");t&&t.off("change",o.getWrapBehavior(this,"_onViewChange")),this.clear(),e.prototype.destroy.call(this)},f}(i);e.exports=g},
/* 330 */
/***/function(e,t,n){var r=n(6),i=n(5),a=n(3),o=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).names=["x","y"],n.type="position",n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.prototype.mapping=function(e,t){var n,o,s,c=this.scales,l=this.coord,u=c[0],h=c[1];if(r(e)||r(t))return[];if(i(t)&&i(e)){n=[],o=[];for(var f=0,d=0,p=e.length,g=t.length;f<p&&d<g;f++,d++)s=l.convertPoint({x:u.scale(e[f]),y:h.scale(t[d])}),n.push(s.x),o.push(s.y)}else if(i(t))e=u.scale(e),o=[],a(t,(function(t){t=h.scale(t),s=l.convertPoint({x:e,y:t}),n&&n!==s.x?(i(n)||(n=[n]),n.push(s.x)):n=s.x,o.push(s.y)}));else if(i(e))t=h.scale(t),n=[],a(e,(function(e){e=u.scale(e),s=l.convertPoint({x:e,y:t}),o&&o!==s.y?(i(o)||(o=[o]),o.push(s.y)):o=s.y,n.push(s.x)}));else{e=u.scale(e),t=h.scale(t);var m=l.convertPoint({x:e,y:t});n=m.x,o=m.y}return[n,o]},o}(n(33));e.exports=o},
/* 331 */
/***/function(e,t,n){var r=n(12),i=n(165),a=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).names=["color"],n.type="color",n.gradient=null,r(n.values)&&(n.linear=!0),n}
/**
   * @override
   */return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.getLinearValue=function(e){var t=this.gradient;if(!t){var n=this.values;t=i.gradient(n),this.gradient=t}return t(e)},a}(n(33));e.exports=a},
/* 332 */
/***/function(e,t,n){var r=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).names=["shape"],n.type="shape",n.gradient=null,n}
/**
   * @override
   */return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.getLinearValue=function(e){var t=this.values;return t[Math.round((t.length-1)*e)]},r}(n(33));e.exports=r},
/* 333 */
/***/function(e,t,n){var r=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).names=["size"],n.type="size",n.gradient=null,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n(33));e.exports=r},
/* 334 */
/***/function(e,t,n){var r=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).names=["opacity"],n.type="opacity",n.gradient=null,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n(33));e.exports=r},
/* 335 */
/***/function(e,t,n){
// 完整版下使用支持按照某个字段进行分组的 dodge
var r=n(10),i=n(34),a=n(336),o=n(337),s=n(166),c=n(338),l=n(339);r(i.prototype,s),r(a.prototype,s,c),r(o.prototype,l),i.Jitter=n(340),i.Symmetric=n(341),i.Dodge=a,i.Stack=o,e.exports=i},
/* 336 */
/***/function(e,t,n){var r=n(34),i=n(3),a=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a._initDefaultCfg=function(){
/**
     * 调整过程中,2个数据的间距
     * @type {Number}
     */
this.marginRatio=.5,
/**
     * 调整占单位宽度的比例,例如：占2个分类间距的 1/2
     * @type {Number}
     */
this.dodgeRatio=.5,this.adjustNames=["x","y"]},a.getDodgeOffset=function(e,t,n){var r=e.pre,i=e.next,a=i-r,o=a*this.dodgeRatio/n,s=this.marginRatio*o;return(r+i)/2+(.5*(a-n*o-(n-1)*s)+((t+1)*o+t*s)-.5*o-.5*a)},a.processAdjust=function(e){var t=this,n=e.length,r=t.xField;i(e,(function(e,i){for(var a=0,o=e.length;a<o;a++){var s=e[a],c=s[r],l={pre:1===o?c-1:c-.5,next:1===o?c+1:c+.5},u=t.getDodgeOffset(l,i,n);s[r]=u}}))},r}(r);r.Dodge=a,e.exports=a},
/* 337 */
/***/function(e,t,n){var r=n(5),i=n(6),a=n(34),o=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=a.prototype;return o._initDefaultCfg=function(){this.xField=null,// 调整对应的 x 方向对应的字段名称
this.yField=null},o.processAdjust=function(e){this.processStack(e)},o.processStack=function(e){var t=this,n=t.xField,a=t.yField,o=e.length,s={positive:{},negative:{}};// 层叠顺序翻转
t.reverseOrder&&(e=e.slice(0).reverse());for(var c=0;c<o;c++)for(var l=e[c],u=0,h=l.length;u<h;u++){var f=l[u],d=f[n]||0,p=f[a],g=d.toString();if(p=r(p)?p[1]:p,!i(p)){var m=p>=0?"positive":"negative";s[m][g]||(s[m][g]=0),f[a]=[s[m][g],p+s[m][g]],s[m][g]+=p}}},a}(a);a.Stack=o,e.exports=o},
/* 338 */
/***/function(e,t,n){var r={merge:n(49),values:n(89)},i=n(160),a=n(3);e.exports={
/**
   * @protected
   * @override
   */
processAdjust:function(e){var t=this,n=r.merge(e),a=t.dodgeBy,o=e;a&&(
// 如果指定了分组dim的字段
o=i(n,a)),t.cacheMap={},t.adjDataArray=o,t.mergeData=n,t.adjustData(o,n),t.adjDataArray=null,t.mergeData=null},getDistribution:function(e){var t=this.adjDataArray,n=this.cacheMap,i=n[e];return i||(i={},a(t,(function(t,n){var o=r.values(t,e);o.length||o.push(0),a(o,(function(e){i[e]||(i[e]=[]),i[e].push(n)}))})),n[e]=i),i},adjustDim:function(e,t,n,r,i){var o=this,s=o.getDistribution(e),c=o.groupData(n,e);// 根据值分组
a(c,(function(n,r){var c;r=parseFloat(r),c=1===t.length?{pre:t[0]-1,next:t[0]+1}:o.getAdjustRange(e,r,t),a(n,(function(t){var n=t[e],r=s[n],a=r.indexOf(i);t[e]=o.getDodgeOffset(c,a,r.length)}))}))}}},
/* 339 */
/***/function(e,t){e.exports={_initDefaultCfg:function(){this.xField=null,// 调整对应的 x 方向对应的字段名称
this.yField=null,// 调整对应的 y 方向对应的字段名称
this.height=null,// 仅有一个维度调整时，总的高度
this.size=10,// 单个点的大小
this.reverseOrder=!1,// 是否反序进行层叠
this.adjustNames=["y"]},processOneDimStack:function(e){var t=this,n=t.xField,r=t.yField||"y",i=t.height,a={};// 如果层叠的顺序翻转
t.reverseOrder&&(e=e.slice(0).reverse());for(var o=0,s=e.length;o<s;o++)// cates
for(var c=e[o],l=0,u=c.length;l<u;l++){var h=c[l],f=2*(h.size||t.size)/i,d=h[n];a[d]||(a[d]=f/2),h[r]=a[d],a[d]+=f}},processAdjust:function(e){this.yField?this.processStack(e):this.processOneDimStack(e)}};
/***/},
/* 340 */
/***/function(e,t,n){var r=n(3),i=n(10),a={merge:n(49)},o=n(34),s=n(166),c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o._initDefaultCfg=function(){this.xField=null,// 调整对应的 x 方向对应的字段名称
this.yField=null,// 调整对应的 y 方向对应的字段名称
this.adjustNames=["x","y"],// 指x,y
this.groupFields=null},o.processAdjust=function(e){var t=this,n=a.merge(e);t.adjDataArray=e,t.mergeData=n,t.adjustData(e,n),t.adjFrames=null,t.mergeData=null},o.getAdjustOffset=function(e,t){var n=t-e;// 随机位置，均匀分布
return e+.05*n+.9*n*Math.random()},// adjust group data
o._adjustGroup=function(e,t,n,i){var a=this,o=a.getAdjustRange(t,n,i);r(e,(function(e){e[t]=a.getAdjustOffset(o.pre,o.next);// 获取调整的位置
}))},o.adjustDim=function(e,t,n){var i=this,a=i.groupData(n,e);r(a,(function(n,r){r=parseFloat(r),i._adjustGroup(n,e,r,t)}))},i}(o);i(c.prototype,s),o.Jitter=c,e.exports=c},
/* 341 */
/***/function(e,t,n){var r=n(3),i=n(148),a=n(5),o={merge:n(49)},s=n(34),c=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=s.prototype;return c._initDefaultCfg=function(){this.xField=null,// 调整对应的 x 方向对应的字段名称
this.yField=null,// 调整对应的 y 方向对应的字段名称
this.cacheMax=null,// 缓存的最大值
this.adjustNames=["y"],// Only support stack y
this.groupFields=null},// 获取最大的y值
c._getMax=function(e){var t=this.mergeData,n=i(t,(function(t){var n=t[e];return a(n)?Math.max.apply(null,n):n}))[e];return a(n)?Math.max.apply(null,n):n},// 获取每个字段最大的值
c._getXValuesMax=function(){var e=this,t=e.yField,n=e.xField,i={},o=e.mergeData;return r(o,(function(e){var r=e[n],o=e[t],s=a(o)?Math.max.apply(null,o):o;i[r]=i[r]||0,i[r]<s&&(i[r]=s)})),i},// 入口函数
c.processAdjust=function(e){var t=this,n=o.merge(e);t.mergeData=n,t._processSymmetric(e),t.mergeData=null},// 处理对称
c._processSymmetric=function(e){var t,n=this,i=n.xField,o=n.yField,s=n._getMax(o),c=e[0][0];c&&a(c[o])&&(t=n._getXValuesMax()),r(e,(function(e){r(e,(function(e){var n,c=e[o];if(a(c)){var l=e[i],u=t[l];n=(s-u)/2;var h=[];
/* eslint-disable no-loop-func */r(c,(function(e){
// 多个字段
h.push(n+e)})),
/* eslint-enable no-loop-func */
e[o]=h}else n=(s-c)/2,e[o]=[n,c+n]}))}))},s}(s);s.Symmetric=c,e.exports=c},
/* 342 */
/***/function(e,t,n){var r,i,a=n(0),o=n(168),s=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},
// 容器区域
plotBackground:{fill:"#1F1F1F"},
// 绘图区域
axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},
// 图例项文本的样式
unCheckColor:"#bfbfbf"},html:(r={},r["g2-legend"]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i["g2-tooltip"]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},i),tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#fff",opacity:.1}},
// tooltip 辅助背景框样式
tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{
// TODO
style:{lineWidth:0,
// 辅助框的边框宽度
fill:"#000",
// 辅助框填充的颜色
fillOpacity:.04}}}});
/**
 * @fileOverview G2 3.0 dark theme
 * @author sima.zhang
 */e.exports=s},
/* 343 */
/***/function(e,t,n){var r=n(91),i=n(198),a=n(393),o=n(394),s={getLabelsClass:function(e,t){var n=r;return"polar"===e?n=i:"theta"===e?
// pie chart
n=a:"interval"!==t&&"polygon"!==t||(
// bar
n=o),n}};e.exports=s},
/* 344 */
/***/function(e,t,n){var r=n(35);r.Base=r,r.Circle=n(368),r.Grid=n(187),r.Helix=n(369),r.Line=n(370),r.Polyline=n(371),e.exports=r},
/* 345 */
/***/function(e,t,n){var r=n(2),i=n(170),a=n(171),o=n(351),s=n(352),c=function e(t){e.superclass.constructor.call(this,t)};c.CFG={eventEnable:!0,
/**
   * 像素宽度
   * @type {Number}
   */
width:null,
/**
   * 像素高度
   * @type {Number}
   */
height:null,
/**
   * 画布宽度
   * @type {Number}
   */
widthCanvas:null,
/**
   * 画布高度
   * @type {Number}
   */
heightCanvas:null,
/**
   * CSS宽
   * @type {String}
   */
widthStyle:null,
/**
   * CSS高
   * @type {String}
   */
heightStyle:null,
/**
   * 容器DOM
   * @type {Object}
   */
containerDOM:null,
/**
   * 当前Canvas的DOM
   * @type {Object}
   */
canvasDOM:null,
/**
   * 屏幕像素比
   * @type {Number}
   */
pixelRatio:null,
/**
   * 渲染器，默认是canvas
   * @type {String}
   */
renderer:"canvas"},r.extend(c,a),r.augment(c,{init:function(){c.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(e,t){if(e){if(!r.isEmpty(e._getEvents()))return e;var n=e.get("parent");if(n&&!t.propagationStopped)return this.getEmitter(n,t)}},_getEventObj:function(e,t,n,r){var a=new i(e,t,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=t.clientX,a.clientY=t.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(e,t){var n,r=this.getPointByClient(t.clientX,t.clientY),i=this.getShape(r.x,r.y,t),a=this.get("el");if("mousemove"===e){var o=this.get("preShape");if(o&&o!==i){var s=this._getEventObj("mouseleave",t,r,o);(n=this.getEmitter(o,t))&&n.emit("mouseleave",s),a.style.cursor="default"}if(i){var c=this._getEventObj("mousemove",t,r,i);if((n=this.getEmitter(i,t))&&n.emit("mousemove",c),o!==i){var l=this._getEventObj("mouseenter",t,r,i);n&&n.emit("mouseenter",l,t)}}else{var u=this._getEventObj("mousemove",t,r,this);this.emit("mousemove",u)}this.set("preShape",i)}else{var h=this._getEventObj(e,t,r,i||this);(n=this.getEmitter(i,t))&&n!==this&&n.emit(e,h),this.emit(e,h)}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_registEvents:function(){var e=this,t=e.get("el");r.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],(function(n){t.addEventListener(n,(function(t){e._triggerEvent(n,t)}),!1)})),// special cases
t.addEventListener("touchstart",(function(t){r.isEmpty(t.touches)||e._triggerEvent("touchstart",t.touches[0])}),!1),t.addEventListener("touchmove",(function(t){r.isEmpty(t.touches)||e._triggerEvent("touchmove",t.touches[0])}),!1),t.addEventListener("touchend",(function(t){r.isEmpty(t.changedTouches)||e._triggerEvent("touchend",t.changedTouches[0])}),!1)},_scale:function(){var e=this.get("pixelRatio");this.scale(e,e)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio());var e=s[this.get("renderer")||"canvas"];this._cfg.renderer=e,this._cfg.canvas=this;var t=new o(this);this._cfg.timeline=t},_setContainer:function(){var e=this.get("containerId"),t=this.get("containerDOM");t||(t=document.getElementById(e),this.set("containerDOM",t)),r.modifyCSS(t,{position:"relative"})},_initPainter:function(){var e=this.get("containerDOM"),t=new this._cfg.renderer.painter(e);this._cfg.painter=t,this._cfg.canvasDOM=this._cfg.el=t.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var e=this.get("canvasDOM"),t=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");e.style.width=r,e.style.height=i,e.setAttribute("width",t),e.setAttribute("height",n)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSize:function(e,t){var n=this.get("pixelRatio"),r=e*n,i=t*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",e+"px"),this.set("heightStyle",t+"px"),this.set("width",e),this.set("height",t),this._resize()},
/**
   * 将窗口坐标转变成 canvas 坐标
   * @param  {Number} clientX 窗口x坐标
   * @param  {Number} clientY 窗口y坐标
   * @return {Object} canvas坐标
   */
getPointByClient:function(e,t){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(e-i.left)*r,y:(t-i.top)*r}},getClientByPoint:function(e,t){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:e/r+n.left,clientY:t/r+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(e,t,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,e,t,n):c.superclass.getShape.call(this,e,t)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var e=this._cfg,t=e.containerDOM,n=e.canvasDOM;n&&t&&t.removeChild(n),e.timeline.stop(),c.superclass.destroy.call(this)}}),e.exports=c},
/* 346 */
/***/function(e,t,n){var r=n(2);e.exports={canFill:!1,canStroke:!1,initAttrs:function(e){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),e)),this},getDefaultAttrs:function(){return{}},
/**
   * 设置或者设置属性，有以下 4 种情形：
   *   - name 不存在, 则返回属性集合
   *   - name 为字符串，value 为空，获取属性值
   *   - name 为字符串，value 不为空，设置属性值，返回 this
   *   - name 为键值对，value 为空，设置属性值
   *
   * @param  {String | Object} name  属性名
   * @param  {*} value 属性值
   * @return {*} 属性值
   */
attr:function(e,t){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(e)){
// self._attrs = Util.deepMix(self._attrs, name);
for(var i in e)this._setAttr(i,e[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(e,t),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[e]},_setAttr:function(e,t){var n=this,r=this._attrs;r[e]=t,"fill"!==e&&"stroke"!==e?"opacity"!==e?"clip"===e&&t?n._setClip(t):"path"===e&&n._afterSetAttrPath?n._afterSetAttrPath(t):"transform"!==e?"rotate"===e&&n.rotateAtStart(t):n.transform(t):r.globalAlpha=t:r[e+"Style"]=t},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(e){e._cfg.renderer=this._cfg.renderer,e._cfg.canvas=this._cfg.canvas,e._cfg.parent=this._cfg.parent,e.hasFill=function(){return!0}}}},
/* 347 */
/***/function(e,t,n){var r=n(2);// 是否未改变
function i(e){return 1===e[0]&&0===e[1]&&0===e[3]&&1===e[4]&&0===e[6]&&0===e[7]}// 是否仅仅是scale
function a(e){return 0===e[1]&&0===e[3]&&0===e[6]&&0===e[7]}function o(e,t){i(t)||(a(t)?(e[0]*=t[0],e[4]*=t[4]):r.mat3.multiply(e,e,t))}e.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(e,t){var n=this._attrs.matrix;return r.mat3.translate(n,n,[e,t]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(e){var t=this._attrs.matrix;return r.mat3.rotate(t,t,e),this.clearTotalMatrix(),this.attr("matrix",t),this},scale:function(e,t){var n=this._attrs.matrix;return r.mat3.scale(n,n,[e,t]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(e){var t=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(e)>2*Math.PI&&(e=e/180*Math.PI),this.transform([["t",-t,-n],["r",e],["t",t,n]])},move:function(e,t){var n=this.get("x")||0,r=this.get("y")||0;// 当前的x
// 当前的y
return this.translate(e-n,t-r),this.set("x",e),this.set("y",t),this},transform:function(e){var t=this,n=this._attrs.matrix;return r.each(e,(function(e){switch(e[0]){case"t":t.translate(e[1],e[2]);break;case"s":t.scale(e[1],e[2]);break;case"r":t.rotate(e[1]);break;case"m":t.attr("matrix",r.mat3.multiply([],n,e[1])),t.clearTotalMatrix()}})),t},setTransform:function(e){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(e)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(e){return this.attr("matrix",e),this.clearTotalMatrix(),this},apply:function(e,t){var n;return n=t?this._getMatrixByRoot(t):this.attr("matrix"),r.vec3.transformMat3(e,e,n),this},
// 获取到达指定根节点的矩阵
_getMatrixByRoot:function(e){e=e||this;for(var t=this,n=[];t!==e;)n.unshift(t),t=t.get("parent");n.unshift(t);var i=[1,0,0,0,1,0,0,0,1];return r.each(n,(function(e){r.mat3.multiply(i,e.attr("matrix"),i)})),i},
/**
   * 应用到当前元素上的总的矩阵
   * @return {Matrix} 矩阵
   */
getTotalMatrix:function(){var e=this._cfg.totalMatrix;if(!e){e=[1,0,0,0,1,0,0,0,1];var t=this._cfg.parent;t&&o(e,t.getTotalMatrix()),o(e,this.attr("matrix")),this._cfg.totalMatrix=e}return e},
// 清除当前的矩阵
clearTotalMatrix:function(){// this._cfg.totalMatrix = null;
},invert:function(e){var t=this.getTotalMatrix();// 单精屏幕下大多数矩阵没变化
if(a(t))e[0]/=t[0],e[1]/=t[4];else{var n=r.mat3.invert([],t);n&&r.vec3.transformMat3(e,e,n)}return this},resetTransform:function(e){var t=this.attr("matrix");// 不改变时
i(t)||e.transform(t[0],t[1],t[3],t[4],t[6],t[7])}}},
/* 348 */
/***/function(e,t,n){var r=n(2),i={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};function o(e,t){var n={},r=t._attrs;for(var i in e.attrs)n[i]=r[i];return n}e.exports={
/**
   * 执行动画
   * @param  {Object}   toProps  动画最终状态
   * @param  {Number}   duration 动画执行时间
   * @param  {String}   easing   动画缓动效果
   * @param  {Function} callback 动画执行后的回调
   * @param  {Number}   delay    动画延迟时间
   */
animate:function(e,t,n,s,c){void 0===c&&(c=0);var l=this;l.set("animating",!0);var u=l.get("timeline");u||(u=l.get("canvas").get("timeline"),l.setSilent("timeline",u));var h=l.get("animators")||[];// 初始化tick
u._timer||u.initTimer(),r.isNumber(s)&&(c=s,s=null),r.isFunction(n)?(s=n,n="easeLinear"):n=n||"easeLinear";var f=function(e,t){var n={matrix:null,attrs:{}},o=t._attrs;for(var s in e)if("transform"===s)n.matrix=r.transform(t.getMatrix(),e[s]);else if("rotate"===s)n.matrix=r.transform(t.getMatrix(),[["r",e[s]]]);else if("matrix"===s)n.matrix=e[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(e[s]))
// 渐变色不支持动画
continue;i[s]||o[s]===e[s]||(n.attrs[s]=e[s])}return n}(e,l),d={fromAttrs:o(f,l),toAttrs:f.attrs,fromMatrix:r.clone(l.getMatrix()),toMatrix:f.matrix,duration:t,easing:n,callback:s,delay:c,startTime:u.getTime(),id:r.uniqueId()};// 记录动画属性
// 如果动画队列中已经有这个图形了
h.length>0?
// 先检查是否需要合并属性。若有相同的动画，将该属性从前一个动画中删除,直接用后一个动画中
h=function(e,t){var n=t.delay,i=Object.prototype.hasOwnProperty;return r.each(t.toAttrs,(function(t,a){r.each(e,(function(e){n<e.startTime+e.duration&&i.call(e.toAttrs,a)&&(delete e.toAttrs[a],delete e.fromAttrs[a])}))})),t.toMatrix&&r.each(e,(function(e){n<e.startTime+e.duration&&e.toMatrix&&delete e.toMatrix})),e}(h,d):
// 否则将图形添加到队列
u.addAnimator(l),h.push(d),l.setSilent("animators",h),l.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var e=this,t=this.get("animators");// 将动画执行到最后一帧，执行回调
r.each(t,(function(t){e.attr(t.toAttrs),t.toMatrix&&e.attr("matrix",t.toMatrix),t.callback&&t.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var e=this,t=e.get("timeline");// 记录下是在什么时候暂停的
return e.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),e},resumeAnimate:function(){var e=this,t=e.get("timeline").getTime(),n=e.get("animators"),i=e.get("pause").pauseTime;// 之后更新属性需要计算动画已经执行的时长，如果暂停了，就把初始时间调后
return r.each(n,(function(e){e.startTime=e.startTime+(t-i),e._paused=!1,e._pauseTime=null})),e.setSilent("pause",{isPaused:!1}),e.setSilent("animators",n),e}}},
/* 349 */
/***/function(e,t,n){var r=n(9);r.Arc=n(175),r.Circle=n(176),r.Dom=n(177),r.Ellipse=n(178),r.Fan=n(179),r.Image=n(180),r.Line=n(181),r.Marker=n(95),r.Path=n(182),r.Polygon=n(183),r.Polyline=n(184),r.Rect=n(185),r.Text=n(186),e.exports=r},
/* 350 */
/***/function(e,t,n){var r=n(2),i=n(93),a={arc:n(53),ellipse:n(174),line:n(52)},o=r.createDom('<canvas width="500" height="500"></canvas>').getContext("2d");function s(e,t,n){return n.createPath(o),o.isPointInPath(e,t)}var c={arc:function(e,t){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,c=n.endAngle,l=n.clockwise,u=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,c,l,u,e,t)},circle:function(e,t){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),c=this.hasFill(),l=this.hasStroke();return c&&l?i.circle(r,a,o,e,t)||i.arcline(r,a,o,0,2*Math.PI,!1,s,e,t):c?i.circle(r,a,o,e,t):!!l&&i.arcline(r,a,o,0,2*Math.PI,!1,s,e,t)},dom:function(e,t){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,e,t)},ellipse:function(e,t){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,c=n.y,l=n.rx,u=n.ry,h=this.getHitLineWidth(),f=l>u?l:u,d=l>u?1:l/u,p=l>u?u/l:1,g=[e,t,1],m=[1,0,0,0,1,0,0,0,1];r.mat3.scale(m,m,[d,p]),r.mat3.translate(m,m,[s,c]);var v=r.mat3.invert([],m);return r.vec3.transformMat3(g,g,v),a&&o?i.circle(0,0,f,g[0],g[1])||i.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1]):a?i.circle(0,0,f,g[0],g[1]):!!o&&i.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1])},fan:function(e,t){var n=this,o=n.hasFill(),s=n.hasStroke(),c=n._attrs,l=c.x,u=c.y,h=c.rs,f=c.re,d=c.startAngle,p=c.endAngle,g=c.clockwise,m=[e-l,t-u],v=r.vec2.angleTo([1,0],m);function y(){var e=a.arc.nearAngle(v,d,p,g);if(r.isNumberEqual(v,e)){var t=r.vec2.squaredLength(m);if(h*h<=t&&t<=f*f)return!0}return!1}function A(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*h+l,y:Math.sin(d)*h+u},o={x:Math.cos(d)*f+l,y:Math.sin(d)*f+u},s={x:Math.cos(p)*h+l,y:Math.sin(p)*h+u},c={x:Math.cos(p)*f+l,y:Math.sin(p)*f+u};return!!(i.line(a.x,a.y,o.x,o.y,r,e,t)||i.line(s.x,s.y,c.x,c.y,r,e,t)||i.arcline(l,u,h,d,p,g,r,e,t)||i.arcline(l,u,f,d,p,g,r,e,t))}return o&&s?y()||A():o?y():!!s&&A()},image:function(e,t){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,e,t)},line:function(e,t){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,c=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,c,e,t)},path:function(e,t){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function c(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o<s;o++)if(i[o].isInside(e,t,a))return!0;return!1}}return a&&o?s(e,t,n)||c():a?s(e,t,n):!!o&&c()},marker:function(e,t){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,e,t)},polygon:function(e,t){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs.points;if(r.length<2)return!1;var a=n.getHitLineWidth(),o=r.slice(0);return r.length>=3&&o.push(r[0]),i.polyline(o,a,e,t)}return r&&a?s(e,t,n)||o():r?s(e,t,n):!!a&&o()},polyline:function(e,t){var n=this._attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var a=n.lineWidth;return i.polyline(r,a,e,t)}return!1},rect:function(e,t){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,c=r.height,l=r.radius,u=n.getHitLineWidth();if(0===l){var h=u/2;return i.line(a-h,o,a+s+h,o,u,e,t)||i.line(a+s,o-h,a+s,o+c+h,u,e,t)||i.line(a+s+h,o+c,a-h,o+c,u,e,t)||i.line(a,o+c+h,a,o-h,u,e,t)}return i.line(a+l,o,a+s-l,o,u,e,t)||i.line(a+s,o+l,a+s,o+c-l,u,e,t)||i.line(a+s-l,o+c,a+l,o+c,u,e,t)||i.line(a,o+c-l,a,o+l,u,e,t)||i.arcline(a+s-l,o+l,l,1.5*Math.PI,2*Math.PI,!1,u,e,t)||i.arcline(a+s-l,o+c-l,l,0,.5*Math.PI,!1,u,e,t)||i.arcline(a+l,o+c-l,l,.5*Math.PI,Math.PI,!1,u,e,t)||i.arcline(a+l,o+l,l,Math.PI,1.5*Math.PI,!1,u,e,t)}return r&&a?s(e,t,n)||o():r?s(e,t,n):!!a&&o()},text:function(e,t){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,e,t)}};e.exports={isPointInPath:function(e,t){var n=c[this.type];return!!n&&n.call(this,e,t)}}},
/* 351 */
/***/function(e,t,n){var r=n(2),i=n(96),a=n(101),o=n(103),s=n(133),c=s.interpolate,l=s.interpolateArray,u=function(e){
// 待执行动画的队列
this._animators=[],// 当前时间
this._current=0,// 计时器实例
this._timer=null,// 画布
this.canvas=e};function h(e,t,n){var a,s=t.startTime;// 如果还没有开始执行或暂停，先不更新
if(n<s+t.delay||t.isPaused)return!1;var u=t.duration,h=t.easing;if(// 已执行时间
n=n-s-t.delay,t.toAttrs.repeat)a=n%u/u,a=o[h](a);else{if(!((a=n/u)<1))return e.attr(t.toAttrs),t.toMatrix&&e.setMatrix(t.toMatrix),!0;a=o[h](a)}return function(e,t,n){var a={},o=t.toAttrs,s=t.fromAttrs,u=t.toMatrix;// 此刻属性
if(!e.get("destroyed")){var h;//  差值函数
for(var f in o)if(!r.isEqual(s[f],o[f]))if("path"===f){var d=o[f],p=s[f];d.length>p.length?(d=i.parsePathString(o[f]),// 终点状态
p=i.parsePathString(s[f]),// 起始状态
p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),t.fromAttrs.path=p,t.toAttrs.path=d):t.pathFormatted||(d=i.parsePathString(o[f]),p=i.parsePathString(s[f]),p=i.formatPath(p,d),t.fromAttrs.path=p,t.toAttrs.path=d,t.pathFormatted=!0),a[f]=[];for(var g=0;g<d.length;g++){for(var m=d[g],v=p[g],y=[],A=0;A<m.length;A++)r.isNumber(m[A])&&v&&r.isNumber(v[A])?(h=c(v[A],m[A]),y.push(h(n))):y.push(m[A]);a[f].push(y)}}else h=c(s[f],o[f]),a[f]=h(n);if(u){var b=l(t.fromMatrix,u)(n);e.setMatrix(b)}e.attr(a)}}(e,t,a),!1}r.augment(u,{initTimer:function(){var e,t,n,r=this,i=this;i._timer=a.timer((function(a){if(i._current=a,r._animators.length>0){for(var o=r._animators.length-1;o>=0;o--)if((e=r._animators[o]).get("destroyed"))
// 如果已经被销毁，直接移出队列
i.removeAnimator(o);else{if(!e.get("pause").isPaused)for(var s=(t=e.get("animators")).length-1;s>=0;s--)n=t[s],h(e,n,a)&&(t.splice(s,1),n.callback&&n.callback());0===t.length&&i.removeAnimator(o)}r.canvas.draw()}}))},addAnimator:function(e){this._animators.push(e)},removeAnimator:function(e){this._animators.splice(e,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(e){e.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),e.exports=u},
/* 352 */
/***/function(e,t,n){e.exports={canvas:n(353),svg:n(356)};
/***/},
/* 353 */
/***/function(e,t,n){e.exports={painter:n(354)};
/***/},
/* 354 */
/***/function(e,t,n){var r=n(2),i=n(355),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function e(e){if(!e)return null;var t=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+t+'"></canvas>');return e.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var t=e.prototype;return t.beforeDraw=function(){var e=this.canvas;this.context&&this.context.clearRect(0,0,e.width,e.height)},t.draw=function(e){var t=this;t.animateHandler?t.toDraw=!0:function n(){t.animateHandler=r.requestAnimationFrame((function(){t.animateHandler=void 0,t.toDraw&&n()})),t.beforeDraw();try{t._drawGroup(e)}catch(e){t.toDraw=!1}t.toDraw=!1}()},t.drawSync=function(e){this.beforeDraw(),this._drawGroup(e)},t._drawGroup=function(e){if(!e._cfg.removed&&!e._cfg.destroyed&&e._cfg.visible){var t=e._cfg.children,n=null;this.setContext(e);for(var r=0;r<t.length;r++)n=t[r],t[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(e)}},t._drawShape=function(e){e._cfg.removed||e._cfg.destroyed||!e._cfg.visible||(this.setContext(e),e.drawInner(this.context),this.restoreContext(e),e._cfg.attrs=e._attrs,e._cfg.hasUpdate=!1)},t.setContext=function(e){var t=this.context,n=e._attrs.clip;t.save(),n&&(
// context.save();
n.resetTransform(t),n.createPath(t),t.clip()),this.resetContext(e),e.resetTransform(t)},t.restoreContext=function(){this.context.restore()},t.resetContext=function(e){var t=this.context,n=e._attrs;// var canvas = this.get('canvas');
if(!e.isGroup)for(var o in n)if(a.indexOf(o)>-1){
// 非canvas属性不附加
var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,e,t)),"strokeStyle"===o&&(s=i.parseStyle(s,e,t)),"lineDash"===o&&t.setLineDash?r.isArray(s)?t.setLineDash(s):r.isString(s)&&t.setLineDash(s.split(" ")):t[o]=s}},e}();e.exports=o},
/* 355 */
/***/function(e,t,n){var r=n(2),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u={};function h(e,t){var n=e.match(l);r.each(n,(function(e){e=e.split(":"),t.addColorStop(e[0],e[1])}))}e.exports={parsePath:function(e){return e=e||[],r.isArray(e)?e:r.isString(e)?(e=e.match(i),r.each(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}r.each(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},parseStyle:function(e,t,n){if(r.isString(e)){if("("===e[1]||"("===e[2]){if("l"===e[0])
// regexLG.test(color)
return function(e,t,n){var i,a,s=o.exec(e),c=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),l=s[2],u=t.getBBox();c>=0&&c<.5*Math.PI?(i={x:u.minX,y:u.minY},a={x:u.maxX,y:u.maxY}):.5*Math.PI<=c&&c<Math.PI?(i={x:u.maxX,y:u.minY},a={x:u.minX,y:u.maxY}):Math.PI<=c&&c<1.5*Math.PI?(i={x:u.maxX,y:u.maxY},a={x:u.minX,y:u.minY}):(i={x:u.minX,y:u.maxY},a={x:u.maxX,y:u.minY});var f=Math.tan(c),d=f*f,p=(a.x-i.x+f*(a.y-i.y))/(d+1)+i.x,g=f*(a.x-i.x+f*(a.y-i.y))/(d+1)+i.y,m=n.createLinearGradient(i.x,i.y,p,g);return h(l,m),m}(e,t,n);if("r"===e[0])
// regexRG.test(color)
return function(e,t,n){var r=s.exec(e),i=parseFloat(r[1]),a=parseFloat(r[2]),o=parseFloat(r[3]),c=r[4];// 环半径为0时，默认无渐变，取渐变序列的最后一个颜色
if(0===o){var u=c.match(l);return u[u.length-1].split(":")[1]}var f=t.getBBox(),d=f.maxX-f.minX,p=f.maxY-f.minY,g=Math.sqrt(d*d+p*p)/2,m=n.createRadialGradient(f.minX+d*i,f.minY+p*a,o*g,f.minX+d/2,f.minY+p/2,g);return h(c,m),m}(e,t,n);if("p"===e[0])
// regexPR.test(color)
return function(e,t,n){if(t.get("patternSource")&&t.get("patternSource")===e)return t.get("pattern");var r,i,a=c.exec(e),o=a[1],s=a[2];// Function to be called when pattern loads
function l(){
// Create pattern
r=n.createPattern(i,o),t.setSilent("pattern",r),// be a cache
t.setSilent("patternSource",e)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;default:o="no-repeat"}return i=new Image,// If source URL is not a data URL
s.match(/^data:/i)||(
// Set crossOrigin for this image
i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,// Fix onload() bug in IE9
i.src=i.src),r}(e,t,n)}return e}},numberToColor:function(e){
// 增加缓存
var t=u[e];if(!t){for(var n=e.toString(16),r=n.length;r<6;r++)n="0"+n;t="#"+n,u[e]=t}return t}}},
/* 356 */
/***/function(e,t,n){e.exports={painter:n(357),getShape:n(364)};
/***/},
/* 357 */
/***/function(e,t,n){var r=n(2),i=n(37).parseRadius,a=n(95),o=n(358),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},c={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},l={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},u={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(){function e(e){if(!e)return null;var t=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+t+'"></svg>');return e.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var t=e.prototype;return t.draw=function(e){var t=this;t.animateHandler?t.toDraw=!0:function n(){t.animateHandler=r.requestAnimationFrame((function(){t.animateHandler=void 0,t.toDraw&&n()}));try{e.resetMatrix(),t._drawGroup(e,!1)}catch(e){t.toDraw=!1}t.toDraw=!1}()},t.drawSync=function(e){this._drawChildren(e,!1)},t._drawGroup=function(e,t){var n=e._cfg;n.removed||n.destroyed||(
/**
     * FIXME redraw: 为了使元素置顶的临时解决方案
     * 如果直接将dom元素重排可以解决部分问题。但是如果重排后的group中有新增的shape，置顶效果就没有了
     * 所以只能删除原有节点，新增节点以及所有子节点。这时候哪怕shape有el，也需要判断一下是否需要重绘
     */
!n.el&&n.attrs&&(t=!0),n.tobeRemoved&&(r.each(n.tobeRemoved,(function(e){e.parentNode&&e.parentNode.removeChild(e)})),n.tobeRemoved=[]),this._drawShape(e,t),n.children&&n.children.length>0&&this._drawChildren(e,t))},t._drawChildren=function(e,t){var n,r=e._cfg.children;// 防止在画children的时候，父group已经被destroy
if(r){if(e._cfg.el&&!t){
// FIXME 这边是为了解决一个group中有元素已经生成el，还有一些没生成el时，没生成el的置底效果不work
var i=e._cfg.el.childNodes.length+1;0!==i&&i!==r.length&&(t=!0)}for(var a=0;a<r.length;a++)(n=r[a]).isGroup?this._drawGroup(n,t):this._drawShape(n,t)}},t._drawShape=function(e,t){var n=this,r=e._attrs,i=e._cfg,a=i.el;// 删除
i.removed||i.destroyed?a&&a.parentNode.removeChild(i.el):(// 重绘节点
t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null),// 新增节点
!a&&i.parent&&(n._createDom(e),n._updateShape(e)),a=i.el,!1!==i.visible?(i.visible&&a.hasAttribute("visibility")&&a.removeAttribute("visibility"),// 更新
i.hasUpdate&&n._updateShape(e),r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip)):a.setAttribute("visibility","hidden"))},t._updateShape=function(e){var t=this,n=e._attrs,i=e._cfg.attrs;if(i)if(e._cfg.el||t._createDom(e),"clip"in n&&this._setClip(e,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(e),"text"!==e.type){for(var a in"fan"===e.type&&t._updateFan(e),"marker"===e.type&&e._cfg.el.setAttribute("d",t._assembleMarker(n)),"rect"===e.type&&e._cfg.el.setAttribute("d",t._assembleRect(n)),n)n[a]!==i[a]&&t._setAttribute(e,a,n[a]);e._cfg.attrs=r.deepMix({},e._attrs),e._cfg.hasUpdate=!1}else t._updateText(e)},t._setAttribute=function(e,t,n){var i=e.type,a=e._attrs,o=e._cfg.el,s=this.context;// 计算marker路径
if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(t))// 圆和椭圆不是x, y， 是cx, cy。 marker的x,y 用于计算marker的路径，不需要写到dom
if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(t))o.setAttribute("c"+t,parseInt(n,10));else{// 多边形
if("polygon"===i&&"points"===t)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map((function(e){return e[0]+","+e[1]}))).join(" ")),void o.setAttribute("points",n);// 设置path
if("path"===t&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else// 设置图片
if("img"!==t){if("transform"===t)return n?void this._setTransform(e):void o.removeAttribute("transform");if("rotate"===t)return n?void this._setTransform(e):void o.removeAttribute("transform");if("matrix"!==t)if("fillStyle"!==t&&"strokeStyle"!==t){if("clip"!==t)if(~t.indexOf("Arrow"))if(t=c[t],n){var l=null;l="boolean"==typeof n?s.getDefaultArrow(a,t):s.addArrow(a,t),o.setAttribute(t,"url(#"+l+")"),e._cfg[t]=l}else e._cfg[t]=null,o.removeAttribute(t);else// foreignObject
"html"===t&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),c[t]&&o.setAttribute(c[t],n)}else this._setColor(e,t,n);else this._setTransform(e)}else this._setImage(e,n)}},t._createDom=function(e){var t=s[e.type],n=e._attrs;if(!t)throw new Error("the type"+e.type+"is not supported by svg");var r=document.createElementNS("http://www.w3.org/2000/svg",t);return e._cfg.el=r,e._cfg.parent&&e._cfg.parent.get("el").appendChild(r),e._cfg.attrs={},"text"===e.type?(r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||r.setAttribute("stroke","none"),n.fill||n.fillStyle||r.setAttribute("fill","none")),r},t._assembleMarker=function(e){var t=e.r;if(void 0===e.r&&(t=e.radius),isNaN(Number(e.x))||isNaN(Number(e.y))||isNaN(Number(t)))return"";var n="";return n="function"==typeof e.symbol?e.symbol(e.x,e.y,t):a.Symbols[e.symbol||"circle"](e.x,e.y,t),r.isArray(n)&&(n=n.map((function(e){return e.join(" ")})).join("")),n},t._assembleRect=function(e){var t=e.x,n=e.y,a=e.width,o=e.height,s=e.radius;if(!s)return"M "+t+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var c=i(s);return r.isArray(s)?1===s.length?c.r1=c.r2=c.r3=c.r4=s[0]:2===s.length?(c.r1=c.r3=s[0],c.r2=c.r4=s[1]):3===s.length?(c.r1=s[0],c.r2=c.r4=s[1],c.r3=s[2]):(c.r1=s[0],c.r2=s[1],c.r3=s[2],c.r4=s[3]):c.r1=c.r2=c.r3=c.r4=s,[["M "+(t+c.r1)+","+n],["l "+(a-c.r1-c.r2)+",0"],["a "+c.r2+","+c.r2+",0,0,1,"+c.r2+","+c.r2],["l 0,"+(o-c.r2-c.r3)],["a "+c.r3+","+c.r3+",0,0,1,"+-c.r3+","+c.r3],["l "+(c.r3+c.r4-a)+",0"],["a "+c.r4+","+c.r4+",0,0,1,"+-c.r4+","+-c.r4],["l 0,"+(c.r4+c.r1-o)],["a "+c.r1+","+c.r1+",0,0,1,"+c.r1+","+-c.r1],["z"]].join(" ")},t._formatPath=function(e){return~(e=e.map((function(e){return e.join(" ")})).join("")).indexOf("NaN")?"":e},t._setTransform=function(e){for(var t=e._attrs.matrix,n=e._cfg.el,r=[],i=0;i<9;i+=3)r.push(t[i]+","+t[i+1]);-1===(r=r.join(",")).indexOf("NaN")&&n.setAttribute("transform","matrix("+r+")")},t._setImage=function(e,t){var n=e._attrs,i=e._cfg.el;if(r.isString(t))i.setAttribute("href",t);else if(t instanceof Image)n.width||(i.setAttribute("width",t.width),e._attrs.width=t.width),n.height||(i.setAttribute("height",t.height),e._attrs.height=t.height),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&r.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",t.width),a.setAttribute("height",t.height),a.getContext("2d").putImageData(t,0,0),n.width||(i.setAttribute("width",t.width),e._attrs.width=t.width),n.height||(i.setAttribute("height",t.height),e._attrs.height=t.height),i.setAttribute("href",a.toDataURL())}},t._updateFan=function(e){function t(e,t,n){return{x:t*Math.cos(e)+n.x,y:t*Math.sin(e)+n.y}}var n=e._attrs,i=e._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,c=n.endAngle;r.isNumberEqual(c-s,2*Math.PI)&&(c-=1e-5);var l=t(s,n.re,a),u=t(c,n.re,a),h=c>s?1:0,f=Math.abs(c-s)>Math.PI?1:0,d=n.rs,p=n.re,g=t(s,n.rs,a),m=t(c,n.rs,a);n.rs>0?(o.push("M "+u.x+","+u.y),o.push("L "+m.x+","+m.y),o.push("A "+d+","+d+",0,"+f+","+(1===h?0:1)+","+g.x+","+g.y),o.push("L "+l.x+" "+l.y)):(o.push("M "+a.x+","+a.y),o.push("L "+l.x+","+l.y)),o.push("A "+p+","+p+",0,"+f+","+h+","+u.x+","+u.y),n.rs>0?o.push("L "+m.x+","+m.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},t._updateText=function(e){var t=e._attrs,n=e._cfg.attrs,r=e._cfg.el;for(var i in this._setFont(e),t)if(t[i]!==n[i]){if("text"===i){this._setText(e,""+t[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(e,i,t[i]);continue}if("matrix"===i){this._setTransform(e);continue}c[i]&&r.setAttribute(c[i],t[i])}e._cfg.attrs=Object.assign({},e._attrs),e._cfg.hasUpdate=!1},t._setFont=function(e){var t=e.get("el"),n=e._attrs,r=n.fontSize;t.setAttribute("alignment-baseline",l[n.textBaseline]||"baseline"),t.setAttribute("text-anchor",u[n.textAlign]||"left"),r&&+r<12&&(
// 小于 12 像素的文本进行 scale 处理
n.matrix=[1,0,0,0,1,0,0,0,1],e.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},t._setText=function(e,t){var n=e._cfg.el,i=e._attrs.textBaseline||"bottom";if(t)if(~t.indexOf("\n")){var a=e._attrs.x,o=t.split("\n"),s=o.length-1,c="";r.each(o,(function(e,t){0===t?"alphabetic"===i?c+='<tspan x="'+a+'" dy="'+-s+'em">'+e+"</tspan>":"top"===i?c+='<tspan x="'+a+'" dy="0.9em">'+e+"</tspan>":"middle"===i?c+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+e+"</tspan>":"bottom"===i?c+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+e+"</tspan>":"hanging"===i&&(c+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+e+"</tspan>"):c+='<tspan x="'+a+'" dy="1em">'+e+"</tspan>"})),n.innerHTML=c}else n.innerHTML=t;else n.innerHTML=""},t._setClip=function(e,t){var n=e._cfg.el;if(t)if(n.hasAttribute("clip-path"))t._cfg.hasUpdate&&this._updateShape(t);else{this._createDom(t),this._updateShape(t);var r=this.context.addClip(t);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},t._setColor=function(e,t,n){var r=e._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(c[t],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(c[t],"url(#"+o+")")}else r.setAttribute(c[t],n);else r.setAttribute(c[t],"none")},t._setShadow=function(e){var t=e._cfg.el,n=e._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),t.setAttribute("filter","url(#"+i+")")}else t.removeAttribute("filter")},e}();e.exports=h},
/* 358 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/9.
 */
var r=n(2),i=n(359),a=n(360),o=n(361),s=n(362),c=n(363),l=function(){function e(e){var t=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}var t=e.prototype;return t.find=function(e,t){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(e,t)){r=n[i].id;break}return r},t.findById=function(e){for(var t=this.children,n=null,r=0;r<t.length;r++)if(t[r].id===e){n=t[r];break}return n},t.add=function(e){this.children.push(e),e.canvas=this.canvas,e.parent=this},t.getDefaultArrow=function(e,t){var n=e.stroke||e.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(e,t);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},t.addGradient=function(e){var t=new i(e);return this.el.appendChild(t.el),this.add(t),t.id},t.addArrow=function(e,t){var n=new o(e,t);return this.el.appendChild(n.el),n.id},t.addShadow=function(e){var t=new a(e);return this.el.appendChild(t.el),this.add(t),t.id},t.addPattern=function(e){var t=new c(e);return this.el.appendChild(t.el),this.add(t),t.id},t.addClip=function(e){var t=new s(e);return this.el.appendChild(t.el),this.add(t),t.id},e}();e.exports=l},
/* 359 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/9.
 */
var r=n(2),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(e){var t=e.match(o);if(!t)return"";var n="";return t.sort((function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])})),r.each(t,(function(e){e=e.split(":"),n+='<stop offset="'+e[0]+'" stop-color="'+e[1]+'"></stop>'})),n}var c=function(){function e(e){var t=null,n=r.uniqueId("gradient_");return"l"===e.toLowerCase()[0]?function(e,t){var n,a,o=i.exec(e),c=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2];c>=0&&c<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=c&&c<Math.PI?(n={x:1,y:0},a={x:0,y:1}):Math.PI<=c&&c<1.5*Math.PI?(n={x:1,y:1},a={x:0,y:0}):(n={x:0,y:1},a={x:1,y:0});var u=Math.tan(c),h=u*u,f=(a.x-n.x+u*(a.y-n.y))/(h+1)+n.x,d=u*(a.x-n.x+u*(a.y-n.y))/(h+1)+n.y;t.setAttribute("x1",n.x),t.setAttribute("y1",n.y),t.setAttribute("x2",f),t.setAttribute("y2",d),t.innerHTML=s(l)}(e,t=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(e,t){var n=a.exec(e),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),c=n[4];t.setAttribute("cx",r),t.setAttribute("cy",i),t.setAttribute("r",o),t.innerHTML=s(c)}(e,t=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),t.setAttribute("id",n),this.el=t,this.id=n,this.cfg=e,this}return e.prototype.match=function(e,t){return this.cfg===t},e}();e.exports=c},
/* 360 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/10.
 */
var r=n(2),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function e(e){this.type="filter";var t=document.createElementNS("http://www.w3.org/2000/svg","filter");// expand the filter region to fill in shadows
return r.each(a,(function(e,n){t.setAttribute(n,e)})),this.el=t,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}var t=e.prototype;return t.match=function(e,t){if(this.type!==e)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(e){if(i[e]!==t[e])return n=!1,!1})),n},t.update=function(e,t){var n=this.cfg;return n[i[e]]=t,this._parseShadow(n,this.el),this},t._parseShadow=function(e,t){var n='<feDropShadow \n      dx="'+(e.dx||0)+'" \n      dy="'+(e.dy||0)+'" \n      stdDeviation="'+(e.blur?e.blur/10:0)+'"\n      flood-color="'+(e.color?e.color:"#000")+'"\n      flood-opacity="'+(e.opacity?e.opacity:1)+'"\n      />';t.innerHTML=n},e}();e.exports=o},
/* 361 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/11.
 */
var r=n(2),i=function(){function e(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",e.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=e["marker-start"===t?"startArrow":"endArrow"],this.stroke=e.stroke||"#000",!0===this.cfg?this._setDefaultPath(t,a):this._setMarker(e.lineWidth,a),this}var t=e.prototype;return t.match=function(){return!1},t._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},t._setMarker=function(e,t){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(e){return e.join(" ")})).join("")),t.setAttribute("d",i),n.appendChild(t),a&&n.setAttribute("refX",a/e)},t.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}();e.exports=i},
/* 362 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/14.
 */
var r=n(2),i=function(){function e(e){this.type="clip";var t=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=t,this.id=r.uniqueId("clip_"),t.id=this.id;var n=e._cfg.el;// just in case the clip shape is also a shape needs to be drawn
return t.appendChild(n.cloneNode(!0)),this.cfg=e,this}var t=e.prototype;return t.match=function(){return!1},t.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}();e.exports=i},
/* 363 */
/***/function(e,t,n){
/**
 * Created by Elaine on 2018/5/9.
 */
var r=n(2),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function e(e){var t=document.createElementNS("http://www.w3.org/2000/svg","pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");t.appendChild(n);var a=r.uniqueId("pattern_");t.id=a,this.el=t,this.id=a,this.cfg=e;var o=i.exec(e)[2];n.setAttribute("href",o);var s=new Image;function c(){t.setAttribute("width",s.width),t.setAttribute("height",s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?c():(s.onload=c,// Fix onload() bug in IE9
s.src=s.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}();e.exports=a},
/* 364 */
/***/function(e,t){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};e.exports=function(e,t,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(e){return e._cfg&&e._cfg.el===i}))}},
/* 365 */
/***/function(e,t,n){var r=n(189);
/*
   *  根据如下规则尝试放置label
   *                5
   *        ------------------
   *        |    1   |   0   |
   *    8   —————————4————————   7
   *        |    2   |   3   |
   *        ——————————————————
   *                 6
   */function i(e,t,n,r){var i=e.getBBox(),a=i.width,o=i.height,s={x:t,y:n,textAlign:"center"};switch(r){case 0:s.y-=o/2,s.textAlign="left";break;case 1:s.y-=o/2,s.textAlign="right";break;case 2:s.y+=o/2,s.textAlign="right";break;case 3:s.y+=o/2,s.textAlign="left";break;case 5:s.y-=o/2;break;case 6:s.y+=o/2;break;case 7:s.x+=a/2,s.textAlign="left";break;case 8:s.x-=a/2,s.textAlign="right"}return e.attr(s),e.getBBox()}e.exports=function(e){for(var t,n,a,o,s,c=new r,l=[],u=0;u<e.length;u++){a=(n=e[u]).attr("x"),o=n.attr("y"),s=!1;for(var h=0;h<8;h++)if(t=i(n,a,o,h),c.hasGap(t)){c.fillGap(t),s=!0;break}s||l.push(n)}for(var f=0;f<l.length;f++)l[f].remove();return s}},
/* 366 */
/***/function(e,t,n){var r=n(189);function i(e,t){var n,r=e.attr("x"),i=e.attr("y"),a=e.getBBox(),o=Math.sqrt(a.width*a.width+a.height*a.height),s=1,c=0,l=0,u=function(e){return[(e*=.1)*Math.cos(e),e*Math.sin(e)]};if(t.hasGap(a))return t.fillGap(a),!0;for(var h=!1,f=0;Math.min(Math.abs(c),Math.abs(l))<o&&f<20;)if(c=~~(n=u(s+=-1))[0],l=~~n[1],e.attr({x:r+c,y:i+l}),f++,t.hasGap(e.getBBox())){t.fillGap(a),h=!0;break}return h}e.exports=function(e){for(var t,n=new r,a=[],o=0;o<e.length;o++)i(t=e[o],n)||a.push(t);for(var s=0;s<a.length;s++)a[s].remove()}},
/* 367 */
/***/function(e,t){e.exports=function(e,t){for(var n,r,i=[],a=0;a<e.length;a++)n=e[a].getBBox(),r=t[a].getBBox(),(n.width>r.width||n.height>r.height||n.width*n.height>r.width*r.height)&&i.push(e[a]);for(var o=0;o<i.length;o++)i[o].remove()};
/***/},
/* 368 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(35),o=i.MatrixUtil.vec2,s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=a.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 坐标轴的类型
       * @type {String}
       */
type:"circle",
/**
       * 指定刻度之间的间距
       * @type {Number}
       */
tickInterval:null,
/**
       * 开始弧度
       * @type {Number}
       */
startAngle:-Math.PI/2,
/**
       * 结束弧度
       * @type {Number}
       */
endAngle:3*Math.PI/2,line:{
// @type {Attrs} 坐标轴线的图形属性,如果设置成null，则不显示轴线
lineWidth:1,stroke:"#C0D0E0"},tickLine:{
// @type {Attrs} 标注坐标线的图形属性
lineWidth:1,stroke:"#C0D0E0",length:5},
/**
       * 默认文本距离轴线的距离
       * @type {Number}
       */
_labelOffset:5})},s.parseTick=function(e,t,n){return{text:e,value:t/n}},s._getCirclePoint=function(e,t){var n=this.get("center");return t=t||this.get("radius"),{x:n.x+Math.cos(e)*t,y:n.y+Math.sin(e)*t}},s.getTickPoint=function(e){var t=this,n=t.get("startAngle"),r=n+(t.get("endAngle")-n)*e;return t._getCirclePoint(r)},s.getSideVector=function(e,t){var n=this.get("center"),r=[t.x-n.x,t.y-n.y];if(!i.isNil(e)){var a=o.length(r);o.scale(r,r,e/a)}return r},s.getSidePoint=function(e,t){var n=this.getSideVector(t,e);return{x:e.x+n[0],y:e.y+n[1]}},s.getTickEnd=function(e,t){var n=this.get("tickLine");return t=t||n.length,this.getSidePoint(e,t)},s.getTextAnchor=function(e){var t;return i.snapEqual(e[0],0)?t="center":e[0]>0?t="left":e[0]<0&&(t="right"),t},s.getLinePath=function(){var e=this,t=e.get("center"),n=t.x,r=t.y,i=e.get("radius"),a=i,o=e.get("startAngle"),s=e.get("endAngle"),c=e.get("inner"),l=[];if(Math.abs(s-o)===2*Math.PI)l=[["M",n,r],["m",0,-a],["a",i,a,0,1,1,0,2*a],["a",i,a,0,1,1,0,-2*a],["z"]];else{var u=e._getCirclePoint(o),h=e._getCirclePoint(s),f=Math.abs(s-o)>Math.PI?1:0,d=o>s?0:1;if(c){var p=e.getSideVector(c*i,u),g=e.getSideVector(c*i,h),m={x:p[0]+n,y:p[1]+r},v={x:g[0]+n,y:g[1]+r};l=[["M",m.x,m.y],["L",u.x,u.y],["A",i,a,0,f,d,h.x,h.y],["L",v.x,v.y],["A",i*c,a*c,0,f,Math.abs(d-1),m.x,m.y]]}else l=[["M",n,r],["L",u.x,u.y],["A",i,a,0,f,d,h.x,h.y],["L",n,r]]}return l},s.addLabel=function(t,n,r){var i=this,a=i.get("label").offset||i.get("_labelOffset")||.001;n=i.getSidePoint(n,a),e.prototype.addLabel.call(this,t,n,r)},s.autoRotateLabels=function(){var e=this,t=e.get("ticks"),n=e.get("labelRenderer");if(n&&t.length>12){
// 小于12个文本时文本不旋转
var r=e.get("radius"),a=e.get("startAngle"),o=e.get("endAngle")-a,s=o/(t.length-1),c=Math.sin(s/2)*r*2,l=e.getMaxLabelWidth(n);i.each(n.get("group").get("children"),(function(e,n){var r=t[n].value*o+a,i=r%(2*Math.PI);l<c?(
// 文本的最大宽度大于
i<=0&&(r+=Math.PI),i>Math.PI&&(r-=Math.PI),r-=Math.PI/2,e.attr("textAlign","center")):i>Math.PI/2?r-=Math.PI:i<Math.PI/2*-1&&(r+=Math.PI),e.rotateAtStart(r)}))}},a}(a);e.exports=s},
/* 369 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(35),o=i.MatrixUtil,s=i.PathUtil,c=o.vec2,l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{inner:0,type:"helix",line:{
// @type {Attrs} 坐标轴线的图形属性,如果设置成null，则不显示轴线
lineWidth:1,stroke:"#C0D0E0"},tickLine:{
// @type {Attrs} 标注坐标线的图形属性
lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,
// 螺旋系数
a:0,
// 画布中心坐标
center:null,
// 坐标轴绘制起点
axisStart:null,
// 坐标轴的n个坐标点
crp:[]})},o.getLinePath=function(){var e=this.get("crp"),t=this.get("axisStart"),n=s.catmullRomToBezier(e);return n.unshift(["M",t.x,t.y]),n},o.getTickPoint=function(e){var t=this,n=t.get("startAngle"),r=n+(t.get("endAngle")-n)*e;return t._getHelixPoint(r)},o._getHelixPoint=function(e){var t=this,n=t.get("center"),r=t.get("a")*e+t.get("inner");// 螺线方程
return{x:n.x+Math.cos(e)*r,y:n.y+Math.sin(e)*r}},o.getSideVector=function(e,t){var n=this.get("center"),r=[t.x-n.x,t.y-n.y];if(e){var i=c.length(r);c.scale(r,r,e/i)}return r},o.getSidePoint=function(e,t){var n=this.getSideVector(t,e);return{x:e.x+n[0],y:e.y+n[1]}},o.getTickEnd=function(e,t){var n=this.get("tickLine");return t=t||n.length,this.getSidePoint(e,t)},a}(a);e.exports=l},
/* 370 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(35),a=n(4),o=a.MatrixUtil.vec2,s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=i.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return a.mix({},t,{x:null,
// @type {Number} 距离初始位置的x轴偏移量,仅对于左侧、右侧的纵向坐标有效
y:null,
// @type {Number} 距离初始位置的y轴偏移量，仅对顶部、底部的横向坐标轴有效
line:{
// @type {Attrs} 坐标轴线的图形属性,如果设置成null，则不显示轴线
lineWidth:1,stroke:"#C0D0E0"},tickLine:{
// @type {Attrs} 标注坐标线的图形属性
lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,
// @type {Object} 起点
end:null})},s._getAvgLabelLength=function(e){var t=e.get("group").get("children");return t[1].attr("x")-t[0].attr("x")},s._getAvgLabelHeightSpace=function(e){var t=e.get("group").get("children");return t[1].attr("y")-t[0].attr("y")}
/**
   * 获取距离坐标轴的向量
   * @override
   * @param  {Number} offset 偏移值
   * @return {Array}        返回二维向量
   */,s.getSideVector=function(e){var t=this,n=t.get("isVertical"),r=t.get("factor");// if (Util.isArray(offset)) {
//   return offset.map(value => value * factor);
// }
if(!a.isNumber(e))return[0,0];var i=t.get("start"),s=t.get("end"),c=t.getAxisVector(),l=o.normalize([],c),u=!1;(n&&i.y<s.y||!n&&i.x>s.x)&&(u=!0);var h=o.vertical([],l,u);return o.scale([],h,e*r)},s.getAxisVector=function(){var e=this.get("start"),t=this.get("end");return[t.x-e.x,t.y-e.y]},s.getLinePath=function(){var e=this.get("start"),t=this.get("end"),n=[];return n.push(["M",e.x,e.y]),n.push(["L",t.x,t.y]),n},s.getTickEnd=function(e,t){var n=this.getSideVector(t);return{x:e.x+n[0],y:e.y+n[1]}},s.getTickPoint=function(e){var t=this.get("start"),n=this.get("end"),r=n.x-t.x,i=n.y-t.y;return{x:t.x+r*e,y:t.y+i*e}},s.renderTitle=function(){var e=this,t=e.get("title"),n=e.getTickPoint(.5),r=t.offset;if(a.isNil(r)){
// 没有指定 offset 则自动计算
r=20;var i=e.get("labelsGroup");i&&(r+=e.getMaxLabelWidth(i)+(e.get("label").offset||e.get("_labelOffset")))}var s=t.textStyle,c=a.mix({},s);if(t.text){var l=e.getAxisVector();// 坐标轴方向的向量
if(t.autoRotate&&a.isNil(s.rotate)){
// 自动旋转并且用户没有指定标题的旋转角度
var u=0;if(!a.snapEqual(l[1],0)){
// 所有水平坐标轴，文本不转置
var h=[l[0],l[1]];u=o.angleTo(h,[1,0],!0)}c.rotate=u*(180/Math.PI)}else a.isNil(s.rotate)||(
// 用户设置了旋转角度就以用户设置的为准
c.rotate=s.rotate/180*Math.PI);var f,d=e.getSideVector(r),p=t.position;f="start"===p?{x:this.get("start").x+d[0],y:this.get("start").y+d[1]}:"end"===p?{x:this.get("end").x+d[0],y:this.get("end").y+d[1]}:{x:n.x+d[0],y:n.y+d[1]},c.x=f.x,c.y=f.y,c.text=t.text;var g=e.get("group").addShape("Text",{zIndex:2,attrs:c});g.name="axis-title",e.get("appendInfo")&&g.setSilent("appendInfo",e.get("appendInfo"))}},s.autoRotateLabels=function(){var e=this,t=e.get("labelRenderer"),n=e.get("title");if(t){var r=t.get("group").get("children"),i=e.get("label").offset,o=n?n.offset:48;if(o<0)
// 如果是负的的话就不旋转
return;var s,c,l=e.getAxisVector();// 坐标轴的向量，仅处理水平或者垂直的场景
if(a.snapEqual(l[0],0)&&n&&n.text)
// 坐标轴垂直，由于不知道边距，只能防止跟title重合，如果title不存在，则不自动旋转
(c=e.getMaxLabelWidth(t))>o-i-12&&(s=-1*Math.acos((o-i-12)/c));else if(a.snapEqual(l[1],0)&&r.length>1){
// 坐标轴水平，不考虑边距，根据最长的和平均值进行翻转
var u=Math.abs(e._getAvgLabelLength(t));(c=e.getMaxLabelWidth(t))>u&&(s=Math.asin(1.25*(o-i-12)/c))}if(s){var h=e.get("factor");a.each(r,(function(e){e.rotateAtStart(s),a.snapEqual(l[1],0)&&(h>0?e.attr("textAlign","left"):e.attr("textAlign","right"))}))}}},s.autoHideLabels=function(){var e,t,n=this,r=n.get("labelRenderer");if(r){var i=r.get("group").get("children"),o=n.getAxisVector();// 坐标轴的向量，仅处理水平或者垂直的场景
if(i.length<2)return;if(a.snapEqual(o[0],0)){
// 坐标轴垂直
var s=n.getMaxLabelHeight(r)+8,c=Math.abs(n._getAvgLabelHeightSpace(r));s>c&&(e=s,t=c)}else if(a.snapEqual(o[1],0)&&i.length>1){
// 坐标轴水平
var l=n.getMaxLabelWidth(r)+8,u=Math.abs(n._getAvgLabelLength(r));l>u&&(e=l,t=u)}if(e&&t){var h=Math.ceil(e/t);a.each(i,(function(e,t){t%h!=0&&e.attr("text","")}))}}},i}(i);e.exports=s},
/* 371 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(35),o=i.MatrixUtil,s=i.PathUtil,c=o.vec2,l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{type:"polyline"})},o.getLinePath=function(){var e=this,t=e.get("tickPoints"),n=e.get("start"),r=e.get("end"),a=[];a.push(n.x),a.push(n.y),i.each(t,(function(e){a.push(e.x),a.push(e.y)})),a.push(r.x),a.push(r.y);var o=s.catmullRomToBezier(a);return o.unshift(["M",n.x,n.y]),o},o.getTickPoint=function(e,t){return this.get("tickPoints")[t]},o.getTickEnd=function(e,t,n){var r=this.get("tickLine"),i=t||r.length,a=this.getSideVector(i,e,n);return{x:e.x+a[0],y:e.y+a[1]}},o.getSideVector=function(e,t,n){var r;if(0===n){if((r=this.get("start")).x===t.x&&r.y===t.y)return[0,0]}else r=this.get("tickPoints")[n-1];var i=[t.x-r.x,t.y-r.y],a=c.normalize([],i),o=c.vertical([],a,!1);return c.scale([],o,e)},a}(a);e.exports=l},
/* 372 */
/***/function(e,t,n){e.exports={Guide:n(17),Arc:n(373),DataMarker:n(374),DataRegion:n(375),Html:n(376),Image:n(377),Line:n(378),Region:n(379),Text:n(380)};
/***/},
/* 373 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(17),o=Math.PI,s=Math.atan;function c(e,t){var n,r=e.x-t.x,i=e.y-t.y;return 0===i?n=r<0?o/2:270*o/180:r>=0&&i>0?n=2*o-s(r/i):r<=0&&i<0?n=o-s(r/i):r>0&&i<0?n=o+s(-r/i):r<0&&i>0&&(n=s(r/-i)),n}var l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=a.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 辅助元素类型
       * @type {String}
       */
name:"arc",
/**
       * 辅助弧线的起始点
       * @type {Object | Function | Array}
       */
start:null,
/**
       * 辅助弧线的终止点
       * @type {Object | Function | Array}
       */
end:null,
/**
       * 辅助文本的样式配置
       * @type {Object}
       */
style:{stroke:"#999",lineWidth:1}})},s.render=function(e,t){var n=this,r=n.parsePoint(e,n.get("start")),a=n.parsePoint(e,n.get("end"));// 只要有一个点无意义，则不绘制
if(r&&a){var s,l=e.getCenter(),u=Math.sqrt((r.x-l.x)*(r.x-l.x)+(r.y-l.y)*(r.y-l.y)),h=c(r,l),f=c(a,l);if(f<h&&(f+=2*o),i.isNumberEqual(r.x,a.x)&&i.isNumberEqual(r.y,a.y)&&(n.get("start")[0]!==n.get("end")[0]||n.get("start")[1]!==n.get("end")[1]))s=[["M",r.x,r.y],["A",u,u,0,1,1,2*l.x-r.x,2*l.y-r.y],["A",u,u,0,1,1,r.x,r.y]];else{var d=(f-h)%(2*o)>o?1:0;s=[["M",r.x,r.y],["A",u,u,0,d,1,a.x,a.y]]}var p=t.addShape("path",{zIndex:n.get("zIndex"),attrs:i.mix({path:s},n.get("style"))});p.name="guide-arc",n.get("appendInfo")&&p.setSilent("appendInfo",n.get("appendInfo")),n.set("el",p)}},a}(a);e.exports=l},
/* 374 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},
// end of style
display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},o.render=function(e,t){var n=this,r=n.parsePoint(e,n.get("position"));if(r){// container
var i=t.addGroup();i.name="guide-data-marker";// markerGroup.translate(point.x, point.y);
var a,o,s=n._getElementPosition(r),c=n.get("display");// add line
if(c.line){var l=s.line;a=n._drawLine(l,i)}// add text
if(c.text&&n.get("content")){var u=s.text;o=n._drawText(u,i)}// add circle
if(c.point){var h=s.point;n._drawPoint(h,i)}if(n.get("autoAdjust")){var f=i.getBBox(),d=f.minX,p=f.minY,g=f.maxX,m=f.maxY,v=e.start,y=e.end;if(o){d<=v.x&&
// 左侧超出
o.attr("textAlign","start"),g>=y.x&&
// 右侧超出
o.attr("textAlign","end");var A=n.get("direction");if("upward"===A&&p<=y.y||"upward"!==A&&m>=v.y){
// 上方或者下方超出
var b,w;"upward"===A&&p<=y.y?(b="top",w=1):(b="bottom",w=-1),o.attr("textBaseline",b);var x=0;if(n.get("display").line){x=n.get("lineLength");var C=[["M",r.x,r.y],["L",r.x,r.y+x*w]];a.attr("path",C)}var _=r.y+(x+2)*w;o.attr("y",_)}}}n.get("appendInfo")&&i.setSilent("appendInfo",n.get("appendInfo")),n.set("el",i)}},o._getElementPosition=function(e){var t=this,n=e.x,r=e.y,i=t.get("display").line?t.get("lineLength"):0,a=t.get("direction");t.get("style").text.textBaseline="upward"===a?"bottom":"top";var o="upward"===a?-1:1;return{point:{x:n,y:r},line:[{x:n,y:r},{x:n,y:i*o+r}],text:{x:n,y:(i+2)*o+r}}},o._drawLine=function(e,t){var n=this.get("style").line,r=[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y]];return t.addShape("path",{attrs:i.mix({path:r},n)})},o._drawText=function(e,t){var n=this.get("style").text;return t.addShape("text",{attrs:i.mix({text:this.get("content")},n,e)})},o._drawPoint=function(e,t){var n=this.get("style").point;return t.addShape("circle",{attrs:i.mix({},n,e)})},a}(n(17));e.exports=a},
/* 375 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(190),o=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{name:"dataRegion",start:null,
// 只支持数值
end:null,
// 只支持数值
content:"",
// 文本内容
style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},s.render=function(e,t,n){var r=this,a=r.get("lineLength")||0,o=r._getRegionData(e,n);// draw region
if(o.length){var s=r._getBBox(o),c=[];c.push(["M",o[0].x,s.yMin-a]);for(var l=0,u=o.length;l<u;l++){var h=["L",o[l].x,o[l].y];c.push(h)}c.push(["L",o[o.length-1].x,s.yMin-a]);// draw
var f=r.get("style"),d=f.region,p=f.text,g=t.addGroup();g.name="guide-data-region",g.addShape("path",{attrs:i.mix({path:c},d)});var m=r.get("content");m&&g.addShape("Text",{attrs:i.mix({x:(s.xMin+s.xMax)/2,y:s.yMin-a,text:m},p)}),r.get("appendInfo")&&g.setSilent("appendInfo",r.get("appendInfo")),r.set("el",g)}},s._getRegionData=function(e,t){for(var n,r=this,o=r.get("start"),s=r.get("end"),c=a.getFirstScale(r.get("xScales")).field,l=a.getFirstScale(r.get("yScales")).field,u=i.isArray(o)?o[0]:o[c],h=i.isArray(s)?s[0]:s[c],f=[],d=0,p=t.length;d<p;d++){var g=t[d];if(g[c]===u&&(n=d),d>=n){var m=r.parsePoint(e,[g[c],g[l]]);// 判断是否是有效点
m&&f.push(m)}if(g[c]===h)break}return f},s._getBBox=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t.push(e[r].x),n.push(e[r].y);var a=i.arrayUtil.getRange(t),o=i.arrayUtil.getRange(n);return{xMin:a.min,xMax:a.max,yMin:o.min,yMax:o.max}},o}(n(17));e.exports=o},
/* 376 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=i.DomUtil,o=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{name:"html",zIndex:7,position:null,
/**
       * Horizontal alignment, can be 'left'、'middle'、'right'
       * @type {String}
       */
alignX:"middle",
/**
       * vertical alignment, can be 'top'、'middle'、'bottom'
       * @type {String}
       */
alignY:"middle",
/**
       * Horizontal offset
       * @type {Number}
       */
offsetX:null,
/**
       * Vertical offset
       * @type {Number}
       */
offsetY:null,
/**
      * html content
      *@type {String | Function}
      */
html:null})}
/**
   * render Html Guide
   * @override
   * @param {Coordinate} coord the instance of Coordinate class
   * @param {Container} container the container which contain the guide component
   */,s.render=function(e,t){var n=this,r=n.parsePoint(e,n.get("position"));if(r){var o=t.get("canvas").get("el").parentNode,s=a.createDom('<div class="g-guide"></div>');o.appendChild(s);var c=n.get("htmlContent")||n.get("html");i.isFunction(c)&&(c=c(n.get("xScales"),n.get("yScales")));var l=a.createDom(c);s.appendChild(l),a.modifyCSS(s,{position:"absolute"}),n._setDomPosition(s,l,r),n.set("el",s)}},s._setDomPosition=function(e,t,n){var r=this,i=r.get("alignX"),o=r.get("alignY"),s=a.getOuterWidth(t),c=a.getOuterHeight(t),l={x:n.x,y:n.y};"middle"===i&&"top"===o?l.x-=Math.round(s/2):"middle"===i&&"bottom"===o?(l.x-=Math.round(s/2),l.y-=Math.round(c)):"left"===i&&"bottom"===o?l.y-=Math.round(c):"left"===i&&"middle"===o?l.y-=Math.round(c/2):"left"===i&&"top"===o?(l.x=n.x,l.y=n.y):"right"===i&&"bottom"===o?(l.x-=Math.round(s),l.y-=Math.round(c)):"right"===i&&"middle"===o?(l.x-=Math.round(s),l.y-=Math.round(c/2)):"right"===i&&"top"===o?l.x-=Math.round(s):(
// 默认位于中心点
l.x-=Math.round(s/2),l.y-=Math.round(c/2));var u=r.get("offsetX");u&&(l.x+=u);var h=r.get("offsetY");h&&(l.y+=h),a.modifyCSS(e,{top:Math.round(l.y)+"px",left:Math.round(l.x)+"px",visibility:"visible",zIndex:r.get("zIndex")})}
/**
   * clear html guide
   * @override
   */,s.clear=function(){var e=this.get("el");e&&e.parentNode&&e.parentNode.removeChild(e)},o}(n(17));e.exports=o},
/* 377 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{type:"image",
/**
       * the start of image
       * @type {Object | Function | Array}
       */
start:null,
/**
       * the end of image
       * @type {Object | Function | Array}
       */
end:null,
/**
       * image url
       * @type {String}
       */
src:null,
/**
       * Horizontal offset
       * @type {Number}
       */
offsetX:null,
/**
       * Vertical offset
       * @type {Number}
       */
offsetY:null})},o.render=function(e,t){var n=this,r=n.parsePoint(e,n.get("start"));if(r){var i={x:r.x,y:r.y};if(i.img=n.get("src"),n.get("end")){var a=n.parsePoint(e,n.get("end"));if(!a)return;// cfg.width = Math.abs(end.x - start.x);
// cfg.height = Math.abs(end.y - start.y);
i.width=a.x-r.x,i.height=a.y-r.y}else
// 如果咩有指定结束点，则 start 为图片的左上角坐标
i.width=n.get("width")||32,i.height=n.get("height")||32;n.get("offsetX")&&(i.x+=n.get("offsetX")),n.get("offsetY")&&(i.y+=n.get("offsetY"));var o=t.addShape("Image",{zIndex:1,attrs:i});o.name="guide-image",n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")),n.set("el",o)}},a}(n(17));e.exports=a},
/* 378 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(17),o=i.MatrixUtil.vec2,s=n(16).FONT_FAMILY,c=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 辅助元素类型
       * @type {String}
       */
name:"line",
/**
       * 辅助线的起点位置
       * @type {Object | Function | Array}
       */
start:null,
/**
       * 辅助线的终点位置
       * @type {Object | Function | Array}
       */
end:null,
/**
       * 辅助线的图形样式
       * @type {Object}
       */
lineStyle:{stroke:"#000",lineWidth:1},
/**
       * 辅助文本配置
       * @type {Object}
       */
text:{position:"end",
// 文本的显示位置： start / center / end / 百分比
autoRotate:!0,
// 文本是否沿着辅助线的方向自动旋转
style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:s},
// 辅助文本的样式
content:null}})},c.render=function(e,t){var n=this,r=n.parsePoint(e,n.get("start")),i=n.parsePoint(e,n.get("end"));if(r&&i){var a=t.addGroup({viewId:t.get("viewId")});n._drawLines(r,i,a);var o=n.get("text");o&&o.content&&n._drawText(r,i,a),n.set("el",a)}},c._drawLines=function(e,t,n){var r=[["M",e.x,e.y],["L",t.x,t.y]],a=n.addShape("Path",{attrs:i.mix({path:r},this.get("lineStyle"))});a.name="guide-line",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},c._drawText=function(e,t,n){var r,a=this.get("text"),s=a.position,c=a.style||{};((r="start"===s?0:"center"===s?.5:i.isString(s)&&-1!==s.indexOf("%")?parseInt(s,10)/100:i.isNumber(s)?s:1)>1||r<0)&&(r=1);var l={x:e.x+(t.x-e.x)*r,y:e.y+(t.y-e.y)*r};if(a.offsetX&&(
// 设置了偏移量
l.x+=a.offsetX),a.offsetY&&(
// 设置了偏移量
l.y+=a.offsetY),l.text=a.content,l=i.mix({},l,c),a.autoRotate&&i.isNil(c.rotate)){
// 自动旋转且用户没有设置旋转角度
var u=o.angleTo([t.x-e.x,t.y-e.y],[1,0],1);l.rotate=u}else i.isNil(c.rotate)||(
// 用户设置了旋转角度
l.rotate=c.rotate*Math.PI/180);var h=n.addShape("Text",{attrs:l});h.name="guide-line-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"))},a}(a);e.exports=c},
/* 379 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},o.render=function(e,t){var n=this,r=n.get("style"),a=n._getPath(e);if(a.length){var o=t.addShape("path",{zIndex:n.get("zIndex"),attrs:i.mix({path:a},r)});o.name="guide-region",n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")),n.set("el",o)}},o._getPath=function(e){var t=this,n=t.parsePoint(e,t.get("start")),r=t.parsePoint(e,t.get("end"));return n&&r?[["M",n.x,n.y],["L",r.x,n.y],["L",r.x,r.y],["L",n.x,r.y],["z"]]:[]},a}(n(17));e.exports=a},
/* 380 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 辅助元素类型
       * @type {String}
       */
name:"text",
/**
       * 辅助文本的位置
       * @type {Object | Function | Array}
       */
position:null,
/**
       * 辅助文本的显示文字
       * @type {String}
       */
content:null,
/**
       * 辅助文本的样式配置
       * @type {Object}
       */
style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},
/**
       * x 方向的偏移量
       * @type {Number}
       */
offsetX:null,
/**
       * y 方向的偏移量
       * @type {Number}
       */
offsetY:null,top:!0})},o.render=function(e,t){var n=this,r=n.parsePoint(e,n.get("position"));if(r){var a=i.mix({},n.get("style")),o=n.get("offsetX"),s=n.get("offsetY");o&&(r.x+=o),s&&(r.y+=s),a.rotate&&(a.rotate=a.rotate*Math.PI/180);var c=t.addShape("Text",{zIndex:n.get("zIndex"),attrs:i.mix({text:n.get("content")},a,r)});c.name="guide-text",n.get("appendInfo")&&c.setSilent("appendInfo",n.get("appendInfo")),n.set("el",c)}},a}(n(17));e.exports=a},
/* 381 */
/***/function(e,t,n){var r=n(188);e.exports=r},
/* 382 */
/***/function(e,t,n){
/**
 * @fileOverview The entry of legend
 * @author sima.zhang
 */
e.exports={Category:n(191),
// 分类图例
CatHtml:n(193),
// 分类图例
CatPageHtml:n(383),
// 分类图例
// Tail: require('./tail'), // 尾部跟随图例
Color:n(384),
// 颜色图例
Size:n(386),
// 大小图例（适用于除映射点大小以外的其他大小）
CircleSize:n(387)};
/***/},
/* 383 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(193),o=n(16).FONT_FAMILY,s=i.DomUtil,c="rgba(0,0,0,0.65)",l="rgba(0,0,0,0.25)";function u(e,t){return e.getElementsByClassName(t)[0]}var h=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var h=a.prototype;return h.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * type标识
       * @type {String}
       */
type:"category-page-legend",
/**
       * html 容器
       * @type {DOM}
       */
container:null,
/**
       * 向上 / 下翻页图标的样式
       * @type {ATTRS}
       */
caretStyle:{fill:"rgba(0,0,0,0.65)"},
/**
       * 页码文字的样式
       * @type {ATTRS}
       */
pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:o,cursor:"default"},
/**
       * 翻页块 DOM 的样式
       * @type {ATTRS}
       */
slipDomStyle:{width:"auto",height:"auto",position:"absolute"},
/**
       * 翻页块 DOM
       * @type {String}
       */
slipTpl:'<div class="g2-slip" ><svg viewBox="64 64 896 896" class="g2-caret-up" data-icon="left" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg><p class="cur-pagenum" style = "display:inline-block;vertical-align:middle;">1</p><p class="next-pagenum" style = "display:inline-block;vertical-align:middle;"">/2</p><svg viewBox="64 64 896 896" class="g2-caret-down" data-icon="right" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></div>',
/**
       * 翻页块的宽度，用于设置翻页块相对于 legend 的位置
       * @type {Number}
       */
slipWidth:65,
/**
       * legend 内容超出容器的处理方式
       * @type {String}
       */
legendOverflow:"unset"})},h.render=function(){e.prototype._renderHTML.call(this),this._renderFlipPage()},h._renderFlipPage=function(){var e=this.get("legendWrapper"),t=u(e,"g2-legend-list"),n=this.get("position"),r=this.get("layout"),a="right"===n||"left"===n||"vertical"===r,o=a?"block":"inline-block",h=e.offsetHeight;// ul
// 翻页
if(e.scrollHeight>h){
// append a slip div
var f=this.get("slipTpl"),d=s.createDom(f),p=u(d,"g2-caret-up"),g=u(d,"g2-caret-down");s.modifyCSS(p,this.get("caretStyle")),s.modifyCSS(p,{fill:"rgba(0,0,0,0.25)"}),s.modifyCSS(g,this.get("caretStyle"));var m=u(d,"cur-pagenum"),v=u(d,"next-pagenum"),y=this.get("pageNumStyle");if(s.modifyCSS(m,i.mix({},y,{paddingLeft:"10px"})),s.modifyCSS(v,i.mix({},y,{opacity:.3,paddingRight:"10px"})),// layout at the center-bottom of the legendWrapper
s.modifyCSS(d,i.mix({},this.get("slipDomStyle"),a?{top:h+"px"}:{right:0,top:"50%",
// 横向布局的时候，分页在右侧居中对齐
transform:"translate(0, -50%)"})),e.style.overflow=this.get("legendOverflow"),e.appendChild(d),!a){var A=Math.max(e.offsetWidth-10-d.offsetWidth,0);// 横向布局的时候更新list的宽度
s.modifyCSS(t,{maxWidth:A+"px"})}for(var b=t.childNodes,w=0,x=1,C=[],_=0;_<b.length;_++)b[_].style.display=o,(w=b[_].offsetTop+b[_].offsetHeight)>h&&(x++,C.forEach((function(e){e.style.display="none"})),C=[]),C.push(b[_]);v.innerText="/"+x,// initialize the page
b.forEach((function(e){e.style.display=o,(w=e.offsetTop+e.offsetHeight)>h&&(e.style.display="none")})),// 上翻事件
p.addEventListener("click",(function(){
// it is the 1st page
if(b[0].style.display!==o){// otherwise
var e=-1;b.forEach((function(t,n){t.style.display===o&&(e=-1===e?n:e,t.style.display="none")}));for(var t=e-1;t>=0&&(b[t].style.display=o,w=b[e-1].offsetTop+b[e-1].offsetHeight,b[t].style.display="none",w<=h);t--)b[t].style.display=o;// change the page number
var n=Number.parseInt(m.innerText,10)-1;p.style.fill=1===n?l:c,g.style.fill=c,m.innerText=n}})),// 下翻事件
g.addEventListener("click",(function(){
// it is the last page
if(b[b.length-1].style.display!==o){// otherwise
var e=-1;b.forEach((function(t,n){t.style.display===o&&(e=n,t.style.display="none")}));for(var t=e+1;t<b.length&&(b[t].style.display=o,w=b[t].offsetTop+b[t].offsetHeight,b[t].style.display="none",w<=h);t++)b[t].style.display=o;// change the page number
var n=Number.parseInt(m.innerText,10)+1;g.style.fill=n===x?l:c,p.style.fill=c,m.innerText=n}})),this.set("slipDom",d)}},h.destroy=function(){var t=this.get("slipDom");t&&t.parentNode&&t.parentNode.removeChild(t),e.prototype.destroy.call(this)},a}(a);e.exports=h},
/* 384 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview The class of the gradient color legend
 * @author sima.zhang
 */var i=n(104).ColorUtil,a=n(4),o=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return a.mix({},t,{
/**
       * 类型
       * @type {String}
       */
type:"color-legend",
/**
       * 布局方式
       * horizontal 水平
       * vertical 垂直
       * @type {String}
       */
layout:"vertical",
/**
       * 两头滑块的样式
       * @type {object}
       */
triggerAttr:{fill:"#fff",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc",radius:3},
/**
       * 同一分段是否使用相同颜色而不使用渐变色，在 slidable = false 时生效
       * @type {boolean}
       */
isSegment:!1})},s._setPercentage=function(){var e=this.get("items");if(!e[0].percentage){var t=e[0].value,n=e[e.length-1].value;a.each(e,(function(e){e.percentage=(e.value-t)/(n-t)}))}}// render the slider while slidable === true
,s._renderSliderShape=function(){this._setPercentage();var e,t=this.get("slider").get("backgroundElement"),n=this.get("width"),r=this.get("height"),o=this.get("layout"),s=this.get("items"),c="";// gradient color distributed according to the percentage
return"vertical"===o?(c+="l (90) ",a.each(s,(function(t){e=i.toRGB(t.color),c+=1-t.percentage+":"+e+" "}))):(c+="l (0) ",a.each(s,(function(t){e=i.toRGB(t.color),c+=t.percentage+":"+e+" "}))),this._addMiddleBar(t,"Rect",{x:0,y:0,width:n,height:r,fill:c,strokeOpacity:0})}// render the silder while slidable === false
,s._renderUnslidable=function(){this._setPercentage();var e=this.get("titleShape"),t=this.get("titleGap");t=e?e.getBBox().height+t:t;var n,r=this.get("width"),o=this.get("height"),s=this.get("layout"),c=this.get("items"),l="",u=[],h=this.get("group").addGroup(),f=c.length;// gradient color distributed according to the percentage
if("vertical"===s){l+="l (90) ";for(var d=0;d<f;d+=1){if(0!==d&&d!==f-1&&(u.push(["M",0,o-c[d].percentage*o]),u.push(["L",r,o-c[d].percentage*o])),n=i.toRGB(c[d].color),l+=1-c[d].percentage+":"+n+" ",this.get("isSegment")&&d>0){
// one color instead of gradient color for a block while isSegment === true
var p=i.toRGB(c[d-1].color);l+=1-c[d].percentage+":"+p+" "}h.addShape("text",{attrs:a.mix({},{x:r+this.get("textOffset")/2,y:o-c[d].percentage*o,text:this._formatItemValue(c[d].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{
// horizontal
l+="l (0) ";for(var g=0;g<f;g+=1){if(0!==g&&g!==f-1&&(u.push(["M",c[g].percentage*r,0]),u.push(["L",c[g].percentage*r,o])),n=i.toRGB(c[g].color),this.get("isSegment")&&g>0){var m=i.toRGB(c[g-1].color);l+=c[g].percentage+":"+m+" "}l+=c[g].percentage+":"+n+" ",h.addShape("text",{attrs:a.mix({},{x:c[g].percentage*r,y:o+5+this.get("textOffset"),text:this._formatItemValue(c[g].value)+""},this.get("textStyle"))})}}h.addShape("rect",{attrs:{x:0,y:0,width:r,height:o,fill:l,strokeOpacity:0}}),// the white line segment to seperate color blocks
h.addShape("path",{attrs:a.mix({path:u},this.get("lineStyle"))}),h.move(0,t)},o}(n(97));// TODO：ColorUtil 包需要从 attr 包中抽离
e.exports=o},
/* 385 */
/***/function(e,t,n){
/**
 * @fileOverview The class of slider
 * @author sima.zhang
 */
var r=n(4),i=r.DomUtil,a=r.Group,o=function e(t){e.superclass.constructor.call(this,t)};r.extend(o,a),r.augment(o,{getDefaultCfg:function(){return{
/**
       * 范围
       * @type {Array}
       */
range:null,
/**
       * 中滑块属性
       * 透明的，用于用户交互
       * @type {ATTRS}
       */
middleAttr:{fill:"#fff",fillOpacity:0},
/**
       * 背景
       * @type {G-Element}
       */
backgroundElement:null,
/**
       * 下滑块
       * @type {G-Element}
       */
minHandleElement:null,
/**
       * 上滑块
       * @type {G-Element}
       */
maxHandleElement:null,
/**
       * 中块，
       * 透明的，用于用户交互
       * @type {G-Element}
       */
middleHandleElement:null,
/**
       * 当前的激活的元素
       * @type {G-Element}
       */
currentTarget:null,
/**
       * 布局方式： horizontal，vertical
       * @type {String}
       */
layout:"vertical",
/**
       * 宽
       * @type {Number}
       */
width:null,
/**
       * 高
       * @type {Number}
       */
height:null,
/**
       * 当前的PageX
       * @type {Number}
       */
pageX:null,
/**
       * 当前的PageY
       * @type {Number}
       */
pageY:null}},
// arrange the zindex and cursors of each element
_beforeRenderUI:function(){var e=this.get("layout"),t=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===e?"ns-resize":"ew-resize";this.add([t,n,r]),this.set("middleHandleElement",i),t.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor","move"),n.attr("cursor",a),r.attr("cursor",a),this.sort()},
// rendering
_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(e){var t=this.get("range"),n=t[0]/100,r=t[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),c=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===e?(c.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,a),s.translate(r*i,a)):(c.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},
// if the target matches name
_isElement:function(e,t){var n=this.get(t);return e===n||!!n.isGroup&&n.get("children").indexOf(e)>-1},
// get the result range after adding diff to range
// insure that the result out of the interval [0, 100]
_getRange:function(e,t){var n=e+t;return n=(n=n>100?100:n)<0?0:n},_updateStatus:function(e,t){var n="x"===e?this.get("width"):this.get("height");e=r.upperFirst(e);var i,a=this.get("range"),o=this.get("page"+e),s=this.get("currentTarget"),c=this.get("rangeStash"),l="vertical"===this.get("layout")?-1:1,u=t["page"+e],h=(u-o)/n*100*l;// the min and max trigger overlap, range[0] and range[1] change together
a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(
// user drags the min trigger
this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0])),// user drags the max trigger
this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]))),// the user drags the middle bar
this._isElement(s,"middleHandleElement")&&(
// the diffrence between min and max trigger while mouse down
i=c[1]-c[0],a[0]=this._getRange(h,a[0]),// keep the diffStashRange
a[1]=a[0]+i,a[1]>100&&(a[1]=100,a[0]=a[1]-i)),this.emit("sliderchange",{range:a}),this.set("page"+e,u),this._renderUI(),this.get("canvas").draw()},
// the listener of mouse down
_onMouseDown:function(e){var t=e.currentTarget,n=e.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",t),// stash the range
this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var e=this.get("canvas").get("containerDOM");// this.on('mousemove', Util.wrapBehavior(this, '_onCanvasMouseMove'));
this.onMouseMoveListener=i.addEventListener(e,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(e,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(e,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},
// listener of mouse click and move = drag
_onCanvasMouseMove:function(e){this._mouseOutArea(e)||("horizontal"===this.get("layout")?this._updateStatus("x",e):this._updateStatus("y",e))},
// listener of mouse up
_onCanvasMouseUp:function(){this._removeDocumentEvents()},
// remove listeners
_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},
// if the mouse is out of the area
_mouseOutArea:function(e){var t=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),r=n.getBBox(),i=n.attr("matrix")[6],a=n.attr("matrix")[7],o=i+r.width,s=a+r.height,c=e.clientX-t.x,l=e.clientY-t.y;return c<i||c>o||l<a||l>s}}),e.exports=o},
/* 386 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview The class of the gradient color legend
 * @author sima.zhang
 */var i=n(4),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 类型
       * @type {String}
       */
type:"size-legend",width:100,height:200,
/**
       * 不能滑动时圈的样式
       * @type {ATTRS}
       */
_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},
/**
       * 中间 bar 的前景颜色
       * @type {ATTRS}
       */
frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})}// render the slider shape
,o._renderSliderShape=function(){var e=this.get("slider").get("backgroundElement"),t=this.get("layout"),n=this.get("width"),r=this.get("height"),a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===t?[[0,0],[n,0],[n,r],[n-4,r]]:[[0,a+r/2],[0,a+r/2-4],[n,a-r/2],[n,a+r/2]];return this._addMiddleBar(e,"Polygon",i.mix({points:s},o))}// render the middle bar while slidable === false,
// there are no triggers for this situation
,o._renderUnslidable=function(){var e=this.get("layout"),t=this.get("width"),n=this.get("height"),r=this.get("frontMiddleBarStyle"),a="vertical"===e?[[0,0],[t,0],[t,n],[t-4,n]]:[[0,n],[0,n-4],[t,0],[t,n]];this.get("group").addGroup().addShape("Polygon",{attrs:i.mix({points:a},r)});var o=this._formatItemValue(this.get("firstItem").value),s=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(t+10,n-3,o),// min
this._addText(t+10,3,s)):(this._addText(0,n,o),// min
this._addText(t,n,s))}// add min and max text while slidable === false
,o._addText=function(e,t,n){var r=this.get("group").addGroup(),a=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?r.addShape("text",{attrs:i.mix({x:e+this.get("textOffset"),y:t,text:0===n?"0":n},a)}):(t+=s+this.get("textOffset")-20,o||(t+=10),r.addShape("text",{attrs:i.mix({x:e,y:t,text:0===n?"0":n},a)}))},a}(n(97));e.exports=a},
/* 387 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview The class of the size legend
 * @author sima.zhang
 * @author ye liu
 */var i=n(4),a=n(97),o=16,s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=a.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 类型
       * @type {String}
       */
type:"size-circle-legend",width:100,height:200,
/**
       * 不能滑动时圈的样式
       * @type {ATTRS}
       */
_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},
/**
       * 滑块的样式
       * @type {ATTRS}
       */
triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},
/**
       * 中间 bar 的前景颜色
       * @type {ATTRS}
       */
frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})}// render the slider shape
,s._renderSliderShape=function(){var e=this.get("slider").get("backgroundElement"),t=this.get("layout"),n="vertical"===t?2:this.get("width"),r="vertical"===t?this.get("height"):2,a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===t?[[0,0],[n,0],[n,r],[0,r]]:[[0,a+r],[0,a-r],[5+n-4,a-r],[5+n-4,a+r]];return this._addMiddleBar(e,"Polygon",i.mix({points:s},o))}// triggers while layout === horizontal
,s._addHorizontalTrigger=function(e,t,n,r){var a=this.get("slider").get(e+"HandleElement"),o=-this.get("height")/2,s=a.addShape("circle",{attrs:i.mix({x:0,y:o,r:r},t)}),c=a.addShape("text",{attrs:i.mix(n,{x:0,y:o+r+10,textAlign:"center",textBaseline:"middle"})}),l="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",l),c.attr("cursor",l),this.set(e+"ButtonElement",s),this.set(e+"TextElement",c)}// triggers while layout === vertical
,s._addVerticalTrigger=function(e,t,n,r){var a=this.get("slider").get(e+"HandleElement"),o=a.addShape("circle",{attrs:i.mix({x:0,y:0,r:r},t)}),s=a.addShape("text",{attrs:i.mix(n,{x:r+10,y:0,textAlign:"start",textBaseline:"middle"})}),c="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",c),s.attr("cursor",c),this.set(e+"ButtonElement",o),this.set(e+"TextElement",s)}// render the triggers
,s._renderTrigger=function(){var e=this.get("firstItem"),t=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),a=this.get("triggerAttr"),o=i.mix({},a),s=i.mix({},a),c=i.mix({text:this._formatItemValue(e.value)+""},r),l=i.mix({text:this._formatItemValue(t.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,c,5),this._addVerticalTrigger("max",s,l,16)):(this._addHorizontalTrigger("min",o,c,5),this._addHorizontalTrigger("max",s,l,16))}// user interactions
,s._bindEvents=function(){var e=this;this.get("slidable")&&this.get("slider").on("sliderchange",(function(t){var n=t.range,r=e.get("firstItem").value,i=e.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r),s=5+n[0]/100*11,c=5+n[1]/100*11;e._updateElement(a,o,s,c);var l=new Event("itemfilter",t,!0,!0);l.range=[a,o],e.emit("itemfilter",l)}))}// update the triggers
,s._updateElement=function(t,n,r,i){
// update the text of the triggers
e.prototype._updateElement.call(this,t,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),c=this.get("maxButtonElement");if(// update the radius of the triggers
s.attr("r",r),c.attr("r",i),"vertical"===this.get("layout"))a.attr("x",r+10),o.attr("x",i+10);else{var l=-this.get("height")/2;a.attr("y",l+r+10),o.attr("y",l+i+10)}}// add a circle for slidable === false
,s._addCircle=function(e,t,n,r,a){var o=this.get("group").addGroup(),s=this.get("_unslidableCircleStyle"),c=this.get("textStyle"),l=this.get("titleShape"),u=this.get("titleGap");l&&(u+=l.getBBox().height),o.addShape("circle",{attrs:i.mix({x:e,y:t+u,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:i.mix({x:a+20+this.get("textOffset"),y:t+u,text:0===r?"0":r},c)}):o.addShape("text",{attrs:i.mix({x:e,y:t+u+a+13+this.get("textOffset"),text:0===r?"0":r},c)})}// the circles while slidable === false
,s._renderUnslidable=function(){var e=this.get("firstItem").value,t=this.get("lastItem").value;if(e>t){var n=t;t=e,e=n}var r=this._formatItemValue(e),i=this._formatItemValue(t),a=e<5?5:e,s=t>o?o:t;a>s&&(a=5,s=o),"vertical"===this.get("layout")?(this._addCircle(s,s,a,r,2*s),// min
this._addCircle(s,2*s+16+a,s,i,2*s)):(this._addCircle(s,s,a,r,2*s),// min
this._addCircle(2*s+16+a,s,s,i,2*s))},s.activate=function(t){this.get("slidable")&&e.prototype.activate.call(this,t)},a}(a);// const Global = require('../../global');
e.exports=s},
/* 388 */
/***/function(e,t,n){var r=n(98);r.Html=n(389),r.Canvas=n(197),r.Mini=n(391),e.exports=r},
/* 389 */
/***/function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var o=n(51),s=n(98),c=n(4),l=c.DomUtil,u=n(390),h=n(194),f=n(195),d=n(196),p="g2-tooltip",g="g2-tooltip-title",m="g2-tooltip-list",v="g2-tooltip-marker",y="g2-tooltip-value",A=o.Marker;function b(e,t){return e.getElementsByClassName(t)[0]}var w=function(e){var t,n;n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var o=s.prototype;function s(t){var n;n=e.call(this,t)||this,c.assign(i(n),f),c.assign(i(n),d);var r=u;n.style=function(e,t){return Object.keys(e).forEach((function(n){t[n]&&(e[n]=c.mix(e[n],t[n]))})),e}(r,t),n._init_(),n.get("items")&&n.render();// crosshair
var a=n.get("crosshairs");if(a){var o="rect"===a.type?n.get("backPlot"):n.get("frontPlot"),s=new h(c.mix({plot:o,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));s.hide(),n.set("crosshairGroup",s)}return n}return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return c.mix({},t,{
/**
         * tooltip 容器模板
         * @type {String}
      */
containerTpl:' <div class="'+p+'"> <div class="'+g+'"></div><ul class="'+m+'"></ul></div>',
/**
       * tooltip 列表项模板
       * @type {String}
       */
itemTpl:'<li data-index={index}>\n      <svg viewBox="0 0 5 5" class="'+v+'"></svg>\n      {name}<span class="'+y+'">{value}</span></li>',
/**
       * tooltip html内容
       * @type {String}
       */
htmlContent:null,
/**
       * tooltip 内容跟随鼠标移动
       * @type {Boolean}
       */
follow:!0,
/**
       * 是否允许鼠标停留在 tooltip 上，默认不允许
       * @type {Boolean}
       */
enterable:!1})},o._init_=function(){var e,t=this,n=t.get("containerTpl"),r=t.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(n)){
// 如果传入 dom 节点的 id
var i=n.replace("#","");e=document.getElementById(i)}else e=l.createDom(n),l.modifyCSS(e,t.style[p]),r.appendChild(e),r.style.position="relative";t.set("container",e)}},o.render=function(){var e=this;if(e.clear(),e.get("htmlContent")){var t=e.get("canvas").get("el").parentNode,n=e._getHtmlContent();t.appendChild(n),e.set("container",n)}else e._renderTpl()},o._renderTpl=function(){var e=this,t=e.get("showTitle"),n=e.get("titleContent"),r=e.get("container"),i=b(r,g),a=b(r,m),o=e.get("items");i&&t&&(l.modifyCSS(i,e.style[g]),i.innerHTML=n),a&&(l.modifyCSS(a,e.style[m]),c.each(o,(function(t,n){a.appendChild(e._addItem(t,n))})))},o.clear=function(){var e=this.get("container");if(this.get("htmlContent"))e&&e.remove();else{var t=b(e,g),n=b(e,m);t&&(t.innerHTML=""),n&&(n.innerHTML="")}},o.show=function(){var t=this.get("container");if(t&&!this.destroyed){t.style.visibility="visible",t.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var r=this.get("markerGroup");r&&r.show(),e.prototype.show.call(this),this.get("canvas").draw()}},o.hide=function(){var t=this.get("container");// relative: https://github.com/antvis/g2/issues/1221
if(t&&!this.destroyed){t.style.visibility="hidden",t.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var r=this.get("markerGroup");r&&r.hide(),e.prototype.hide.call(this),this.get("canvas").draw()}},o.destroy=function(){var t=this.get("container"),n=this.get("containerTpl");t&&!/^\#/.test(n)&&t.parentNode.removeChild(t);var r=this.get("crosshairGroup");r&&r.destroy();var i=this.get("markerGroup");i&&i.remove(),e.prototype.destroy.call(this)},o._getMarkerSvg=function(e){var t,n=e.marker||{},r=n.activeSymbol||n.symbol;return c.isFunction(r)?t=r:c.isString(r)&&(t=A.Symbols[r]),'<path d="'+(t=c.isFunction(t)?t:A.Symbols.circle)(2.5,2.5,2.5).reduce((function(e,t){return""+e+t[0]+t.slice(1).join(",")}),"")+'" fill="'+(n.fill||"none")+'" stroke="'+(n.stroke||"none")+'" />'},o._addItem=function(e,t){var n=this.get("itemTpl"),i=c.substitute(n,c.mix({index:t},e)),a=l.createDom(i);// TODO: 有可能是个回调函数
l.modifyCSS(a,this.style["g2-tooltip-list-item"]);var o=b(a,v);if(o){l.modifyCSS(o,r({},this.style[v],{borderRadius:"unset"}));var s=this._getMarkerSvg(e);o.innerHTML=s}var u=b(a,y);return u&&l.modifyCSS(u,this.style[y]),a},o._getHtmlContent=function(){var e=this.get("htmlContent")(this.get("titleContent"),this.get("items"));return l.createDom(e)},o.setPosition=function(t,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=l.getWidth(o),u=l.getHeight(o),h=a.clientWidth,f=a.clientHeight,d=t,p=n,g=this.get("prePosition")||{x:0,y:0};if(// @2019-01-30 by blue.lb 由于display:none的元素获取clientWidth和clientHeight的值为0，这里强制显隐一下，其实直接在show和hide中去掉display设置最好，猜测为了更好的兼容浏览器
h||(a.style.display="block",h=a.clientWidth,f=a.clientHeight,a.style.display="none"),this.get("enterable")?(i=[t,n-=a.clientHeight/2],g&&t-g.x>0?
// 留 1px 防止鼠标点击事件无法在画布上触发
t-=a.clientWidth+1:t+=1):this.get("position")?(
// @2019-01-30 by blue.lb 这里应该是多余代码
// const containerWidth = container.clientWidth;
// const containerHeight = container.clientHeight;
t=(i=this._calcTooltipPosition(t,n,this.get("position"),h,f,r))[0],n=i[1]):(t=(i=this._constraintPositionInBoundary(t,n,h,f,s,u))[0],n=i[1]),this.get("inPlot")){
// tooltip 必须限制在绘图区域内
var m=this.get("plotRange");t=(i=this._constraintPositionInPlot(t,n,h,f,m,this.get("enterable")))[0],n=i[1]}var v=this.get("markerItems");c.isEmpty(v)||(d=v[0].x,p=v[0].y),this.set("prePosition",i),this.get("follow")&&(a.style.left=t+"px",a.style.top=n+"px");var y=this.get("crosshairGroup");if(y){var A=this.get("items");y.setPosition(d,p,A)}e.prototype.setPosition.call(this,t,n)},s}(s);e.exports=w},
/* 390 */
/***/function(e,t,n){var r,i=n(16).FONT_FAMILY,a=((r={crosshairs:!1,offset:15})["g2-tooltip"]={position:"absolute",visibility:"hidden",
// @2018-07-25 by blue.lb 这里去掉浮动，火狐上存在样式错位
// whiteSpace: 'nowrap',
zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r);e.exports=a},
/* 391 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(4),a=n(197),o=n(16).FONT_FAMILY,s=i.DomUtil,c=i.MatrixUtil,l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var l=a.prototype;return l.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * 默认背景板样式
       * @type {Object}
       */
boardStyle:{x:0,y:0,width:0,height:0,
// fill: 'rgba(50, 50, 50, 1)',
radius:3},
/**
       * 默认value样式
       * @type {Object}
       * */
valueStyle:{x:0,y:0,text:"",fontFamily:o,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},
/**
       * 默认padding值
       * @type {Object}
       */
padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},l._init_=function(){var e=this,t=e.get("padding"),n=e.get("frontPlot").addGroup();e.set("container",n);// board
var r=n.addShape("rect",{attrs:i.mix({},e.get("boardStyle"))});e.set("board",r);// triangleShpe
var a=n.addShape("path",{attrs:{fill:e.get("boardStyle").fill}});e.set("triangleShape",a);// itemGroup
var o=n.addGroup();o.move(t.left,t.top);// value
var s=o.addShape("text",{attrs:i.mix({},e.get("valueStyle"))});e.set("valueShape",s)},l.render=function(){var e=this;e.clear();var t=e.get("board"),n=e.get("valueShape"),r=e.get("padding"),i=e.get("items")[0];n&&n.attr("text",i.value);// update board based on bbox
var a=n?n.getBBox():{width:80,height:30},o=r.left+a.width+r.right,s=r.top+a.height+r.bottom;t.attr("width",o),t.attr("height",s),// update triangle shape
e._centerTriangleShape()},l.clear=function(){this.get("valueShape").attr("text","")},l.setPosition=function(e,t,n){var r=this,i=r.get("container"),a=r.get("plotRange"),o=i.getBBox(),l=o.width,u=o.height;if(e-=l/2,!n||"point"!==n.name&&"interval"!==n.name||(t=n.getBBox().y),t-=u,this.get("inPlot"))
// constrain in plot
e<a.tl.x?(e=a.tl.x,r._leftTriangleShape()):e+l/2>a.tr.x?(e=a.tr.x-l,r._rightTriangleShape()):r._centerTriangleShape(),t<a.tl.y?t=a.tl.y:t+u>a.bl.y&&(t=a.bl.y-u);else{
// constrain in dom
var h=this.get("canvas").get("el"),f=s.getWidth(h),d=s.getHeight(h);e<0?(e=0,r._leftTriangleShape()):e+l/2>f?(e=f-l,r._rightTriangleShape()):r._centerTriangleShape(),t<0?t=0:t+u>d&&(t=d-u)}var p=c.transform([1,0,0,0,1,0,0,0,1],[["t",e,t]]);i.stopAnimate(),i.animate({matrix:p},this.get("animationDuration"))},l._centerTriangleShape=function(){var e=this.get("triangleShape"),t=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height,o=[["M",0,0],["L",t,0],["L",t/2,n],["L",0,0],["Z"]];e.attr("path",o),e.move(i/2-t/2,a-1)},l._leftTriangleShape=function(){var e=this.get("triangleShape"),t=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox().height,i=[["M",0,0],["L",t,0],["L",0,n+3],["L",0,0],["Z"]];e.attr("path",i),e.move(0,r-3)},l._rightTriangleShape=function(){var e=this.get("triangleShape"),t=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height,o=[["M",0,0],["L",t,0],["L",t,n+4],["L",0,0],["Z"]];e.attr("path",o),e.move(i-t-1,a-4)},a}(a);e.exports=l},
/* 392 */
/***/function(e,t,n){var r=n(0).MatrixUtil.vec2;e.exports={catmullRom2bezier:function(e,t,n){for(var i=!!t,a=[],o=0,s=e.length;o<s;o+=2)a.push([e[o],e[o+1]]);for(var c,l,u,h=function(e,t,n,i){var a,o,s,c,l=[],u=!!i;if(u){s=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,f=e.length;h<f;h++){var d=e[h];s=r.min([],s,d),c=r.max([],c,d)}s=r.min([],s,i[0]),c=r.max([],c,i[1])}for(var p=0,g=e.length;p<g;p++){var m=e[p];if(n)a=e[p?p-1:g-1],o=e[(p+1)%g];else{if(0===p||p===g-1){l.push(m);continue}a=e[p-1],o=e[p+1]}var v=[];v=r.sub(v,o,a),v=r.scale(v,v,t);var y=r.distance(m,a),A=r.distance(m,o),b=y+A;0!==b&&(y/=b,A/=b);var w=r.scale([],v,-y),x=r.scale([],v,A),C=r.add([],m,w),_=r.add([],m,x);u&&(C=r.max([],C,s),C=r.min([],C,c),_=r.max([],_,s),_=r.min([],_,c)),l.push(C),l.push(_)}return n&&l.push(l.shift()),l}(a,.4,i,n),f=a.length,d=[],p=0;p<f-1;p++)c=h[2*p],l=h[2*p+1],u=a[p+1],d.push(["C",c[0],c[1],l[0],l[1],u[0],u[1]]);return i&&(c=h[f],l=h[f+1],u=a[0],d.push(["C",c[0],c[1],l[0],l[1],u[0],u[1]])),d}}},
/* 393 */
/***/function(e,t,n){var r=n(0),i=n(198),a=n(25),o=n(8);function s(e,t,n){return{x:e.x+n*Math.cos(t),y:e.y+n*Math.sin(t)}}var c=function e(t){e.superclass.constructor.call(this,t)};r.extend(c,i),r.augment(c,{getDefaultCfg:function(){return{label:o.thetaLabels}},getDefaultOffset:function(e){return e.offset||0},
/**
   * @protected
   * to avoid overlapping
   * @param {Array} items labels to be placed
   * @return {Array} items
   */
adjustItems:function(e){var t=e[0]?e[0].offset:0;return t>0&&(e=this._distribute(e,t)),c.superclass.adjustItems.call(this,e)},
/**
   * @private
   * distribute labels
   * @param {Array} labels labels
   * @param {Number} offset offset
   * @return {Array} labels
   */
_distribute:function(e,t){var n=this,r=n.get("coord"),i=r.getRadius(),a=n.get("label").labelHeight,o=r.getCenter(),s=2*(i+t)+2*a,c={start:r.start,end:r.end},l=n.get("geom");if(l){var u=l.get("view");c=u.getViewRegion()}// step 1: separate labels
var h=[[],// left
[]];return e.forEach((function(e){e&&("right"===e.textAlign?
// left
h[0].push(e):
// right or center will be put on the right side
h[1].push(e))})),h.forEach((function(e,t){
// step 2: reduce labels
var n=parseInt(s/a,10);e.length>n&&(e.sort((function(e,t){
// sort by percentage DESC
return t["..percent"]-e["..percent"]})),e.splice(n,e.length-n)),// step 3: distribute position (x and y)
e.sort((function(e,t){
// sort by y ASC
return e.y-t.y})),function(e,t,n,r,i){
// adjust y position of labels to avoid overlapping
var a,o=!0,s=n.start,c=n.end,l=Math.min(s.y,c.y),u=Math.abs(s.y-c.y),h=0,f=Number.MIN_VALUE,d=e.map((function(e){return e.y>h&&(h=e.y),e.y<f&&(f=e.y),{size:t,targets:[e.y-l]}}));for(f-=l,h-l>u&&(u=h-l);o;)for(
/* eslint no-loop-func: 0 */
d.forEach((function(e){var t=(Math.min.apply(f,e.targets)+Math.max.apply(f,e.targets))/2;e.pos=Math.min(Math.max(f,t-e.size/2),u-e.size)})),// detect overlapping and join boxes
o=!1,a=d.length;a--;)if(a>0){var p=d[a-1],g=d[a];p.pos+p.size>g.pos&&(
// overlapping
p.size+=g.size,p.targets=p.targets.concat(g.targets),// overflow, shift up
p.pos+p.size>u&&(p.pos=u-p.size),d.splice(a,1),// removing box
o=!0)}a=0,// step 4: normalize y and adjust x
d.forEach((function(n){var r=l+t/2;// middle of the label
n.targets.forEach((function(){e[a].y=n.pos+r,r+=t,a++}))})),// (x - cx)^2 + (y - cy)^2 = totalR^2
e.forEach((function(e){var t=e.r*e.r,n=Math.pow(Math.abs(e.y-r.y),2);if(t<n)e.x=r.x;else{var a=Math.sqrt(t-n);
// right
e.x=i?r.x+a:r.x-a}}))}(e,a,c,o,t)})),h[0].concat(h[1])},
// 连接线
lineToLabel:function(e){var t=this.get("coord"),n=t.getRadius(),r=e.offset,i=e.orignAngle||e.angle,a=t.getCenter(),o=s(a,i,n+2.5),c=s(a,i,n+r/2);e.labelLine||(e.labelLine=this.get("label").labelLine||{}),e.labelLine.path=["M"+o.x,o.y+" Q"+c.x,c.y+" "+e.x,e.y].join(",")},
/**
   * @protected
   * get rotation for label
   * @param {Number} angle angle
   * @param {Number} offset offset
   * @return {Number} rotate
   */
getLabelRotate:function(e,t){var n;return t<0&&((n=180*e/Math.PI)>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},
/**
   * @protected
   * get text align for label
   * @param {Object} point point
   * @return {String} align
   */
getLabelAlign:function(e){var t,n=this.get("coord").getCenter();return t=e.angle<=Math.PI/2&&e.x>=n.x?"left":"right",this.getDefaultOffset(e)<=0&&(t="right"===t?"left":"right"),t},getArcPoint:function(e){return e},getPointAngle:function(e){var t=this,n=t.get("coord"),i={x:r.isArray(e.x)?e.x[0]:e.x,y:e.y[0]};t.transLabelPoint(i);// 转换到画布坐标，如果坐标系发生改变
var o,s={x:r.isArray(e.x)?e.x[1]:e.x,y:e.y[1]};t.transLabelPoint(s);var c=a.getPointAngle(n,i);if(e.points&&e.points[0].y===e.points[1].y)o=c;else{var l=a.getPointAngle(n,s);c>=l&&(
// 100% pie slice
l+=2*Math.PI),o=c+(l-c)/2}return o},getCirclePoint:function(e,t){var n=this.get("coord"),r=n.getCenter(),i=n.getRadius()+t,a=s(r,e,i);return a.angle=e,a.r=i,a}}),e.exports=c},
/* 394 */
/***/function(e,t,n){var r=n(0),i=n(91),a=function e(t){e.superclass.constructor.call(this,t)};r.extend(a,i),r.augment(a,{setLabelPosition:function(e,t,n,i){r.isFunction(i)&&(i=i(e.text,t._origin,n));var a=this.get("coord"),o=a.isTransposed,s=a.convertPoint(t.points[0]),c=a.convertPoint(t.points[2]),l=(s.x-c.x)/2*(o?-1:1),u=(s.y-c.y)/2*(o?-1:1);switch(i){case"right":o?(e.x-=l,e.y+=u,e.textAlign=e.textAlign||"center"):(e.x-=l,e.y+=u,e.textAlign=e.textAlign||"left");break;case"left":o?(e.x-=l,e.y-=u,e.textAlign=e.textAlign||"center"):(e.x+=l,e.y+=u,e.textAlign=e.textAlign||"right");break;case"bottom":o?(e.x-=2*l,e.textAlign=e.textAlign||"left"):(e.y+=2*u,e.textAlign=e.textAlign||"center");break;case"middle":o?e.x-=l:e.y+=u,e.textAlign=e.textAlign||"center";break;case"top":e.textAlign=o?e.textAlign||"left":e.textAlign||"center"}}}),e.exports=a},
/* 395 */
/***/function(e,t,n){
/**
 * @fileOverview The tooltip handler
 * @author sima.zhang
 */
var r=n(0),i=n(8).defaultColor,a="_origin";function o(e){return e.alias||e.field}var s={_getIntervalSize:function(e){var t=null,n=this.get("type"),i=this.get("coord");if(i.isRect&&("interval"===n||"schema"===n)){t=this.getSize(e[a]);// 如果字段发生了映射，宽度计算就会报错
var o=i.isTransposed?"y":"x";r.isArray(e[o])&&(t=t<Math.abs(e[o][1]-e[o][0])?null:t)}return t},_snapEqual:function(e,t,n){return e=n.translate(e),t=n.translate(t),n.isCategory?e===t:r.snapEqual(e,t)},_getScaleValueByPoint:function(e){var t=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(e).x;return this.isInCircle()&&i>(1+r.rangeMax())/2&&(i=r.rangeMin()),t=r.invert(i),r.isCategory&&(t=r.translate(t)),t},_getOriginByPoint:function(e){var t=this.getXScale(),n=this.getYScale(),r=t.field,i=n.field,a=this.get("coord").invert(e),o=t.invert(a.x),s=n.invert(a.y),c={};return c[r]=o,c[i]=s,c},_getScale:function(e){var t=this.get("scales"),n=null;return r.each(t,(function(t){if(t.field===e)return n=t,!1})),n},
// 获取值对应的度量
_getTipValueScale:function(){var e,t=this.getAttrsForLegend();r.each(t,(function(t){var n=t.getScale(t.type);if(n.isLinear)
// 如果指定字段是非position的，同时是连续的
return e=n,!1}));var n=this.getXScale(),i=this.getYScale();return!e&&i&&"..y"===i.field?n:e||i||n},_getTipTitleScale:function(e){var t=this;if(e)return t._getScale(e);var n,i=t.getAttr("position").getFields();return r.each(i,(function(e){if(!e.includes(".."))return n=e,!1})),t._getScale(n)},_filterValue:function(e,t){var n=this.get("coord"),i=this.getYScale(),o=i.field,s=n.invert(t).y;s=i.invert(s);var c=e[e.length-1];return r.each(e,(function(e){var t=e[a];if(t[o][0]<=s&&t[o][1]>=s)return c=e,!1})),c},getXDistance:function(){var e=this,t=e.get("xDistance");if(!t){var n=e.getXScale();if(n.isCategory)t=1;else{var i=n.values,a=n.translate(i[0]),o=a;// values 是无序的
r.each(i,(function(e){
// 时间类型需要 translate
(e=n.translate(e))<a&&(a=e),e>o&&(o=e)}));var s=i.length;// 应该是除以 length - 1
t=(o-a)/(s-1)}e.set("xDistance",t)}return t},findPoint:function(e,t){var n=this,i=n.get("type"),o=n.getXScale(),s=n.getYScale(),c=o.field,l=s.field,u=null;if(r.indexOf(["heatmap","point"],i)>-1){var h=n.get("coord").invert(e),f=o.invert(h.x),d=s.invert(h.y),p=1/0;return r.each(t,(function(e){var t=Math.pow(e[a][c]-f,2)+Math.pow(e[a][l]-d,2);t<p&&(p=t,u=e)})),u}var g=t[0],m=t[t.length-1];if(!g)return u;var v=n._getScaleValueByPoint(e),y=g[a][c],A=g[a][l],b=m[a][c],w=s.isLinear&&r.isArray(A);// 根据该点获得对应度量后数据的值
// 考虑 x 维度相同，y 是数组区间的情况
// 如果x的值是数组
if(r.isArray(y))r.each(t,(function(e){var t=e[a];if(o.translate(t[c][0])<=v&&o.translate(t[c][1])>=v){if(!w)return u=e,!1;r.isArray(u)||(u=[]),u.push(e)}})),r.isArray(u)&&(u=this._filterValue(u,e));else{var x;if(o.isLinear||"timeCat"===o.type){if((v>o.translate(b)||v<o.translate(y))&&(v>o.max||v<o.min))return null;for(var C,_=0,I=t.length-1;_<=I;){C=Math.floor((_+I)/2);var E=t[C][a][c];if(n._snapEqual(E,v,o))return t[C];o.translate(E)<=o.translate(v)?(_=C+1,m=t[C],x=t[C+1]):(0===I&&(m=t[0]),I=C-1)}}else r.each(t,(function(e,i){var s=e[a];if(n._snapEqual(s[c],v,o)){if(!w)return u=e,!1;r.isArray(u)||(u=[]),u.push(e)}else o.translate(s[c])<=v&&(m=e,x=t[i+1])})),r.isArray(u)&&(u=this._filterValue(u,e));m&&x&&Math.abs(o.translate(m[a][c])-v)>Math.abs(o.translate(x[a][c])-v)&&(m=x)}var k=n.getXDistance();// 每个分类间的平均间距
return!u&&Math.abs(o.translate(m[a][c])-v)<=k/2&&(u=m),u},
/**
   * @protected
   * 获取tooltip的标题
   * @param  {Object} origin 点的原始信息
   * @param  {String} titleField 标题的字段
   * @return {String} 提示信息的标题
   */
getTipTitle:function(e,t){var n="",r=this._getTipTitleScale(t);if(r){var i=e[r.field];n=r.getText(i)}else if("heatmap"===this.get("type")){
// 热力图在不存在 title 的时候特殊处理
var a=this.getXScale(),o=this.getYScale();n="( "+a.getText(e[a.field])+", "+o.getText(e[o.field])+" )"}return n},getTipValue:function(e,t){var n,i=t.field,a=e.key;if(n=e[i],r.isArray(n)){var o=[];r.each(n,(function(e){o.push(t.getText(e))})),n=o.join("-")}else n=t.getText(n,a);return n},
/**
   * @protected
   * 获取tooltip的名称
   * @param  {Object} origin 点的原始信息
   * @return {String} 提示信息的名称
   */
getTipName:function(e){var t,n,i=this._getGroupScales();if(i.length&&
// 如果存在分组类型，取第一个分组类型
r.each(i,(function(e){return n=e,!1})),n){var a=n.field;t=n.getText(e[a])}else t=o(this._getTipValueScale());return t},
/**
   * 获取点对应tooltip的信息
   * @protected
   * @param  {Object} point 原始的数据记录
   * @param  {String} titleField tooltipTitle 配置信息
   * @return {Array}  一条或者多条记录
   */
getTipItems:function(e,t){var n,s,c=this,l=e[a],u=c.getTipTitle(l,t),h=c.get("tooltipCfg"),f=[];function d(t,n,a){if(!r.isNil(n)&&""!==n){
// 值为null的时候，忽视
var o={title:u,point:e,name:t||u,value:n,color:e.color||i,marker:!0};o.size=c._getIntervalSize(e),f.push(r.mix({},o,a))}}if(h){var p=h.fields,g=h.cfg,m=[];if(r.each(p,(function(e){m.push(l[e])})),g){
// 存在回调函数
r.isFunction(g)&&(g=g.apply(null,m));var v=r.mix({},{point:e,title:u,color:e.color||i,marker:!0},g);v.size=c._getIntervalSize(e),f.push(v)}else r.each(p,(function(e){if(!r.isNil(l[e])){
// 字段数据为null ,undefined时不显示
var t=c._getScale(e);n=o(t),s=t.getText(l[e]),d(n,s)}}))}else{var y=c._getTipValueScale();r.isNil(l[y.field])||(
// 字段数据为null ,undefined时不显示
s=c.getTipValue(l,y),d(n=c.getTipName(l),s))}return f},isShareTooltip:function(){var e,t=this.get("shareTooltip"),n=this.get("type"),i=this.get("view");if(e=i.get("parent")?i.get("parent").get("options"):i.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(t=!1)}else this.getYScale()&&!r.inArray(["contour","point","polygon","edge"],n)||(t=!1);return e.tooltip&&r.isBoolean(e.tooltip.shared)&&(
// 以用户设置的为准
t=e.tooltip.shared),t}};e.exports=s},
/* 396 */
/***/function(e,t,n){
/**
 * @fileOverview the interaction when geom was actived
 * @author sima.zhang
 */
var r=n(0),i=n(199),a="_originActiveAttrs";function o(e,t){if(!e)return!0;if(e.length!==t.length)return!0;var n=!1;return r.each(t,(function(t,i){if(!function(e,t){if(r.isNil(e)||r.isNil(t))return!1;var n=e.get("origin"),i=t.get("origin");return r.isEqual(n,i)}(t,e[i]))return n=!0,!1})),n}function s(e,t){var n={};return r.each(e,(function(e,i){var a=t.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a})),n}var c={_isAllowActive:function(){var e=this.get("allowActive");if(!r.isNil(e))return e;
// 用户未设置，使用默认的策略
var t=this.get("view"),n=this.isShareTooltip();// 默认情况下，tooltip 关闭或者 tooltip 模式为 shared === false 的时候允许 active
return!1===t.get("options").tooltip||!n},_onMouseenter:function(e){var t=this,n=e.shape,r=t.get("shapeContainer");n&&r.contain(n)&&t._isAllowActive()&&
// shape.get('animating')
t.setShapesActived(n)},_onMouseleave:function(){var e=this,t=e.get("view").get("canvas");e.get("activeShapes")&&(e.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var e=this,t=e.get("view"),n=e.get("type");t.on(n+":mouseenter",r.wrapBehavior(e,"_onMouseenter")),t.on(n+":mouseleave",r.wrapBehavior(e,"_onMouseleave"))},_offActiveAction:function(){var e=this,t=e.get("view"),n=e.get("type");t.off(n+":mouseenter",r.getWrapBehavior(e,"_onMouseenter")),t.off(n+":mouseleave",r.getWrapBehavior(e,"_onMouseleave"))},_setActiveShape:function(e){var t=this,n=t.get("activedOptions")||{},o=e.get("origin"),c=o.shape||t.getDefaultValue("shape");r.isArray(c)&&(c=c[0]);var l=t.get("shapeFactory"),u=r.mix({},e.attr(),{origin:o}),h=l.getActiveCfg(c,u);n.style&&r.mix(h,n.style);var f=s(h,e);e.setSilent(a,f),n.animate?e.animate(h,300):e.attr(h),i.toFront(e)},setShapesActived:function(e){var t=this;r.isArray(e)||(e=[e]);var n=t.get("activeShapes");// 获取上次被激活的 shapes
if(o(n,e)){var i=t.get("view").get("canvas"),a=t.get("activedOptions");a&&a.highlight?(
// 上次的动画未完成，所以要停止掉动画
r.each(e,(function(e){e.get("animating")&&e.stopAnimate()})),t.highlightShapes(e)):(n&&t.clearActivedShapes(),r.each(e,(function(e){e.get("animating")&&e.stopAnimate(),e.get("visible")&&
// && !shape.get('selected')
t._setActiveShape(e)}))),t.set("activeShapes",e),// shapeContainer.sort(); // toFront, resetZIndex 不需要再排序
i.draw()}},clearActivedShapes:function(){var e=this,t=e.get("shapeContainer"),n=e.get("activedOptions"),o=n&&n.animate;if(t&&!t.get("destroyed")){var s=e.get("activeShapes");if(r.each(s,(function(e){
// if (!activeShape.get('selected')) {
var t=e.get(a);o?(e.stopAnimate(),e.animate(t,300)):e.attr(t),i.resetZIndex(e),e.setSilent(a,null)})),e.get("preHighlightShapes")){var c=t.get("children");r.each(c,(function(e){
// if (!shape.get('selected')) {
var t=e.get(a);t&&(o?(e.stopAnimate(),e.animate(t,300)):e.attr(t),i.resetZIndex(e),e.setSilent(a,null));// }
}))}// 恢复原来排序
// const children = shapeContainer.get('children');
// children.sort((obj1, obj2) => {
//   return obj1._INDEX - obj2._INDEX;
// });
e.set("activeShapes",null),e.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(e){var t=this,n=t.get("shapeContainer"),i=[];if(n){var a=t.getXScale().field,o=t.getShapes(),s=t._getOriginByPoint(e);r.each(o,(function(e){var t=e.get("origin");e.get("visible")&&t&&t._origin[a]===s[a]&&i.push(e)}))}return i},getSingleShapeByPoint:function(e){var t,n=this.get("shapeContainer"),r=n.get("canvas").get("pixelRatio");if(n&&(t=n.getShape(e.x*r,e.y*r)),t&&t.get("origin"))return t},highlightShapes:function(e,t){var n=this;r.isArray(e)||(e=[e]);var c=n.get("activeShapes");// 获取上次被激活的 shapes
if(o(c,e)){c&&n.clearActivedShapes();var l=n.getShapes(),u=n.get("activedOptions"),h=u&&u.animate,f=u&&u.style;r.each(l,(function(n){var o={};n.stopAnimate(),-1!==r.indexOf(e,n)?(r.mix(o,f,t),// shape.setZIndex(1); // 提前
i.toFront(n)):(r.mix(o,{fillOpacity:.3,
// @2018-07-11 by blue.lb 由于线图只有stoke，fillOpacity不生效，最好还是直接改成整个图形透明度opacity
opacity:.3}),i.resetZIndex(n));var c=s(o,n);n.setSilent(a,c),h?n.animate(o,300):n.attr(o)})),n.set("preHighlightShapes",e),n.set("activeShapes",e)}}};e.exports=c},
/* 397 */
/***/function(e,t,n){
/**
 * @fileOverview the interaction when geom was selected
 * @author sima.zhang
 */
var r=n(0),i=n(199);function a(e,t){if(r.isNil(e)||r.isNil(t))return!1;var n=e.get("origin"),i=t.get("origin");return r.isEqual(n,i)}var o={_isAllowSelect:function(){var e=this.get("allowSelect");if(!r.isNil(e))
// 用户设置了 select 配置
return e;var t=this.get("type"),n=this.get("coord"),i=n&&n.type;return"interval"===t&&"theta"===i},_onClick:function(e){var t=this;if(t._isAllowSelect()){
// 允许选中下才执行
// self.clearActivedShapes(); // 不需要清除hover效果
var n=e.shape,r=t.get("shapeContainer");n&&r.contain(n)&&
// 去除 !shape.get('animating') 的判定，点击反馈更加及时
t.setShapeSelected(n)}},_bindSelectedAction:function(){var e=this,t=e.get("view"),n=e.get("type");t.on(n+":click",r.wrapBehavior(e,"_onClick"))},_offSelectedAction:function(){var e=this,t=e.get("view"),n=e.get("type");t.off(n+":click",r.getWrapBehavior(e,"_onClick"))},_setShapeStatus:function(e,t){var n=this,a=n.get("view"),o=n.get("selectedOptions")||{},s=!1!==o.animate,c=a.get("canvas");e.set("selected",t);var l=e.get("origin");if(t){
// 选中状态
var u=l.shape||n.getDefaultValue("shape");r.isArray(u)&&(u=u[0]);var h=n.get("shapeFactory"),f=r.mix({geom:n,point:l},o),d=h.getSelectedCfg(u,f);r.mix(d,f.style),// 用户设置的优先级更高
e.get("_originAttrs")||(
// 缓存原有属性
e.get("animating")&&
// 停止动画
e.stopAnimate(),e.set("_originAttrs",function(e,t){var n={};return r.each(e,(function(e,i){"transform"===i&&(i="matrix");var a=t.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a})),n}(d,e))),// 选中时图形要到最上面
o.toFront&&i.toFront(e),s?e.animate(d,300):(e.attr(d),c.draw())}else{var p=e.get("_originAttrs");// 取消选中时，要恢复到原先的位置
o.toFront&&i.resetZIndex(e),e.set("_originAttrs",null),s?e.animate(p,300):(e.attr(p),c.draw())}},setShapeSelected:function(e){var t=this,n=t._getSelectedShapes(),i=t.get("selectedOptions")||{},o=!1!==i.cancelable;// 选中状态是否允许取消，默认允许
if("multiple"===i.mode)
// 支持多选
-1===r.indexOf(n,e)?(n.push(e),t._setShapeStatus(e,!0)):o&&(
// 图形已经被选中并且选中状态允许取消选中
r.Array.remove(n,e),t._setShapeStatus(e,!1));else{var s=n[0];o&&(
// 如果允许取消，则选中null
e=a(s,e)?null:e),a(s,e)||(s&&t._setShapeStatus(s,!1),e&&t._setShapeStatus(e,!0))}},clearSelected:function(){var e=this,t=e.get("shapeContainer");if(t&&!t.get("destroyed")){var n=e._getSelectedShapes();r.each(n,(function(t){e._setShapeStatus(t,!1),t.set("_originAttrs",null)}))}},
/**
   * 设置记录对应的图形选中
   * @param {Object} record 选中的记录
   * @chainable
   * @return {Geom} 返回当前的 Geometry
   */
setSelected:function(e){var t=this,n=t.getShapes();return r.each(n,(function(n){var r=n.get("origin");r&&r._origin===e&&t.setShapeSelected(n)})),this},_getSelectedShapes:function(){var e=this.getShapes(),t=[];return r.each(e,(function(e){e.get("selected")&&t.push(e)})),this.set("selectedShapes",t),t}};e.exports=o},
/* 398 */
/***/function(e,t,n){var r=n(0);e.exports=function(e){return r.isArray(e)?e:r.isString(e)?e.split("*"):[e]}},
/* 399 */
/***/function(e,t,n){
/**
 * @fileOverview 度量的控制器
 * @author dxq613@gmail.com
 */
var r=n(105),i=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o="linear",s="cat",c="time",l=function(){function e(e){
// defs 列定义
this.defs={},this.viewTheme={scales:{}},// filtered fields
this.filters={},i.assign(this,e)}var t=e.prototype;return t._getDef=function(e){var t=this.defs,n=this.viewTheme,r=null;return(n.scales[e]||t[e])&&(r=i.mix({},n.scales[e]),// 处理覆盖属性的问题
i.each(t[e],(function(e,t){i.isNil(e)?delete r[t]:r[t]=e})),this.filters[e]&&(delete r.min,delete r.max)),r},t._getDefaultType=function(e,t){var n=o,r=i.Array.firstValue(t,e);return i.isArray(r)&&(r=r[0]),a.test(r)?n=c:i.isString(r)&&(n=s),n},t._getScaleCfg=function(e,t,n){var a={field:t},o=i.Array.values(n,t);if(a.values=o,!r.isCategory(e)&&"time"!==e){var s=i.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===e&&(a.nice=!1),a},t.createScale=function(e,t){var n,a=this,o=a._getDef(e),s=t||[],c=i.Array.firstValue(s,e);if(i.isNumber(e)||i.isNil(c)&&!o)n=r.identity({value:e,field:e.toString(),values:[e]});else{
// 如果已经定义过这个度量
var l;o&&(l=o.type),l=l||a._getDefaultType(e,s);var u=a._getScaleCfg(l,e,s);o&&i.mix(u,o),n=r[l](u)}return n},e}();e.exports=l},
/* 400 */
/***/function(e,t,n){
/**
 * @fileOverview The controller of coordinate
 * @author sima.zhang
 */
var r=n(0),i=n(401),a=function(){function e(e){this.type="rect",this.actions=[],this.cfg={},r.mix(this,e),this.option=e||{}}var t=e.prototype;return t.reset=function(e){return this.actions=e.actions||[],this.type=e.type,this.cfg=e.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},t._execActions=function(e){var t=this.actions;r.each(t,(function(t){var n=t[0];e[n](t[1],t[2])}))},t.hasAction=function(e){var t=this.actions,n=!1;return r.each(t,(function(t){if(e===t[0])return n=!0,!1})),n}
/**
   * 创建坐标系对象
   * @param  {Object} start 坐标系起始点
   * @param  {Object} end   坐标系结束点
   * @return {Function} 坐标系的构造函数
   */,t.createCoord=function(e,t){var n,a,o=this,s=o.type,c=o.cfg,l=r.mix({start:e,end:t},c);return"theta"===s?(
// definition of theta coord
n=i.Polar,o.hasAction("transpose")||o.transpose(),(a=new n(l)).type=s):a=new(n=i[r.upperFirst(s||"")]||i.Rect)(l),o._execActions(a),a},t.rotate=function(e){return e=e*Math.PI/180,this.actions.push(["rotate",e]),this},t.reflect=function(e){return this.actions.push(["reflect",e]),this},t.scale=function(e,t){return this.actions.push(["scale",e,t]),this},t.transpose=function(){return this.actions.push(["transpose"]),this},e}();e.exports=a},
/* 401 */
/***/function(e,t,n){"use strict";
/**
 * @fileOverview the entry of coordinate
 * @author sima.zhang1990@gmail.com
 */var r=n(56);r.Cartesian=n(402),r.Rect=r.Cartesian,r.Polar=n(403),r.Helix=n(404),e.exports=r},
/* 402 */
/***/function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t,n){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},c(e,t,n||e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
/**
 * @fileOverview the class of Cartesian Coordinate
 * @author sima.zhang
 */var u=n(10),h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,l(t).call(this,e)))._init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),o(t,[{key:"getDefaultCfg",
/**
     * @override
     */
value:function(){var e=c(l(t.prototype),"getDefaultCfg",this).call(this);return u({},e,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),o(t,[{key:"_init",value:function(){var e=this.start,t=this.end,n={start:e.x,end:t.x},r={start:e.y,end:t.y};this.x=n,this.y=r}},{key:"convertPoint",value:function(e){var t,n;return this.isTransposed?(t=e.y,n=e.x):(t=e.x,n=e.y),{x:this.convertDim(t,"x"),y:this.convertDim(n,"y")}}},{key:"invertPoint",value:function(e){var t=this.invertDim(e.x,"x"),n=this.invertDim(e.y,"y");return this.isTransposed?{x:n,y:t}:{x:t,y:n}}}]),t}(n(56));e.exports=h},
/* 403 */
/***/function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t,n){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},c(e,t,n||e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
/**
 * @fileOverview the class of Polar Coordinate
 * @author sima.zhang
 */var u=n(50),h=n(30),f=n(10),d=n(56),p=u.mat3,g=u.vec2,m=u.vec3,v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,l(t).call(this,e)))._init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),o(t,[{key:"getDefaultCfg",value:function(){var e=c(l(t.prototype),"getDefaultCfg",this).call(this);return f({},e,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),o(t,[{key:"_init",value:function(){for(var e=this.radius,t=this.innerRadius,n=this.center,r=this.startAngle,i=this.endAngle;i<r;)i+=2*Math.PI;this.endAngle=i;var a,o,s=this.getOneBox(),c=s.maxX-s.minX,l=s.maxY-s.minY,u=Math.abs(s.minX)/c,h=Math.abs(s.minY)/l,f=this.width,d=this.height;d/l>f/c?(
// width为主
a=f/c,o={x:n.x-(.5-u)*f,y:n.y-(.5-h)*a*l}):(
// height为主
a=d/l,o={x:n.x-(.5-u)*a*c,y:n.y-(.5-h)*d}),e?e>0&&e<=1?e*=a:(e<=0||e>a)&&(e=a):e=a;var p={start:r,end:i},g={start:t*e,end:e};this.x=p,this.y=g,this.radius=e,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value:function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(e),Math.cos(t)],r=[0,Math.sin(e),Math.sin(t)],i=Math.min(e,t);i<Math.max(e,t);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}}},{key:"getRadius",value:function(){return this.radius}},{key:"convertPoint",value:function(e){var t=this.getCenter(),n=this.isTransposed?e.y:e.x,r=this.isTransposed?e.x:e.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:t.x+Math.cos(n)*r,y:t.y+Math.sin(n)*r}}},{key:"invertPoint",value:function(e){var t=this.getCenter(),n=[e.x-t.x,e.y-t.y],r=this.x,i=[1,0,0,0,1,0,0,0,1];p.rotate(i,i,r.start);var a=[1,0,0];m.transformMat3(a,a,i),a=[a[0],a[1]];var o=g.angleTo(a,n,r.end<r.start);h(o,2*Math.PI)&&(o=0);var s=g.length(n),c=o/(r.end-r.start);c=r.end-r.start>0?c:-c;var l=this.invertDim(s,"y"),u={};return u.x=this.isTransposed?l:c,u.y=this.isTransposed?c:l,u}}]),t}(d);e.exports=v},
/* 404 */
/***/function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t,n){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},c(e,t,n||e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
/**
 * @fileOverview the class of Helix Coordinate
 * @author sima.zhang
 */var u=n(50),h=n(30),f=n(10),d=n(56),p=u.vec2,g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,l(t).call(this,e)))._init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),o(t,[{key:"getDefaultCfg",value:function(){var e=c(l(t.prototype),"getDefaultCfg",this).call(this);return f({},e,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),o(t,[{key:"_init",value:function(){var e=this.width,t=this.height,n=this.radius,r=this.innerRadius,i=this.startAngle,a=this.endAngle,o=(a-i)/(2*Math.PI)+1,s=Math.min(e,t)/2;n&&n>=0&&n<=1&&(s*=n);var c=Math.floor(s*(1-r)/o),l=c/(2*Math.PI),u={start:i,end:a},h={start:r*s,end:r*s+.99*c};this.a=l,this.d=c,this.x=u,this.y=h}},{key:"getCenter",value:function(){return this.center}
/**
     * 将百分比数据变成屏幕坐标
     * @param  {Object} point 归一化的点坐标
     * @return {Object}       返回对应的屏幕坐标
     */},{key:"convertPoint",value:function(e){var t,n,r=this.a,i=this.center;this.isTransposed?(t=e.y,n=e.x):(t=e.x,n=e.y);var a=this.convertDim(t,"x"),o=r*a,s=this.convertDim(n,"y");return{x:i.x+Math.cos(a)*(o+s),y:i.y+Math.sin(a)*(o+s)}}
/**
     * 将屏幕坐标点还原成百分比数据
     * @param  {Object} point 屏幕坐标
     * @return {Object}       返回对应的归一化后的数据
     */},{key:"invertPoint",value:function(e){var t=this.center,n=this.a,r=this.d+this.y.start,i=p.subtract([],[e.x,e.y],[t.x,t.y]),a=p.angleTo(i,[1,0],!0),o=a*n;// 坐标与原点的连线在第一圈上的交点，最小r值
p.length(i)<o&&(
// 坐标与原点的连线不可能小于最小r值，但不排除因小数计算产生的略小于rMin的情况
o=p.length(i));var s=n*(// 当前点位于第index圈
a=2*Math.floor((p.length(i)-o)/r)*Math.PI+a),c=p.length(i)-s;c=h(c,0)?0:c;var l=this.invertDim(a,"x"),u=this.invertDim(c,"y");l=h(l,0)?0:l,u=h(u,0)?0:u;var f={};return f.x=this.isTransposed?u:l,f.y=this.isTransposed?l:u,f}}]),t}(d);e.exports=g},
/* 405 */
/***/function(e,t,n){
/**
 * @fileOverview The controller of axis
 * @author sima.zhang
 */
var r=n(0),i=n(24).Axis,a=r.MatrixUtil.vec2;function o(e,t){return void 0===t&&(t=0),"middle"===e&&(t=.5),e.includes("%")&&(t=parseInt(e,10)/100),t}var s=function(){function e(e){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],r.mix(this,e)}var t=e.prototype;return t._isHide=function(e){
// 对应的坐标轴是否隐藏
var t=this.options;return!(!t||!1!==t[e])},t._getMiddleValue=function(e,t,n,r){if(0===e&&!r)return 0;if(1===e)return 1;var i=t[n+1].value;return r||1!==i?(e+i)/2:1},t._getLineRange=function(e,t,n,r){var i,a,s,c=t.field,l=this.options,u="";// TODO middle & percentage for position
if(l[c]&&l[c].position&&(u=l[c].position),"x"===n){
// x轴的坐标轴,底部的横坐标
var h="top"===u?1:0;i={x:0,y:h=o(u,h)},a={x:1,y:h},s=!1}else{
// y轴坐标轴
if(r){
// 多轴的情况
var f="left"===u?0:1;i={x:f=o(u,f),y:0},a={x:f,y:1}}else{
// 单个y轴，或者第一个y轴
var d="right"===u?1:0;i={x:d=o(u,d),y:0},a={x:d,y:1}}s=!0}return{start:i=e.convert(i),end:a=e.convert(a),isVertical:s}},t._getLineCfg=function(e,t,n,r){var i=this._getLineRange(e,t,n,r),a=i.isVertical,o=i.start,s=i.end,c=e.center;return e.isTransposed&&(a=!a),{isVertical:a,factor:a&&o.x>c.x||!a&&o.y>c.y?1:-1,start:o,end:s}}// 获取圆弧坐标轴配置项信息
,t._getCircleCfg=function(e){var t,n={},r=e.x,i=e.y,o=i.start>i.end;t=e.isTransposed?{x:o?0:1,y:0}:{x:0,y:o?0:1},t=e.convert(t);var s,c=e.circleCentre,l=[t.x-c.x,t.y-c.y],u=[1,0],h=(s=t.y>c.y?a.angle(l,u):-1*a.angle(l,u))+(r.end-r.start);return n.startAngle=s,n.endAngle=h,n.center=c,n.radius=Math.sqrt(Math.pow(t.x-c.x,2)+Math.pow(t.y-c.y,2)),n.inner=e.innerRadius||0,n},t._getRadiusCfg=function(e){var t,n,r=e.x.start<0?-1:1;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{factor:r,start:e.convert(t),end:e.convert(n)}}// 确定坐标轴的位置
,t._getAxisPosition=function(e,t,n,r){var i="",a=this.options;// 用户自己定义了 position
// const VALID_POSITIONS = [
//   'top',
//   'left',
//   'right',
//   'bottom'
// ];
if(a[r]&&a[r].position)i=a[r].position;// if (VALID_POSITIONS.indexOf(position) > -1) {
//   return position;
// }
else{var o=e.type;e.isRect?"x"===t?i="bottom":"y"===t&&(i=n?"right":"left"):i="helix"===o?"helix":"x"===t?e.isTransposed?"radius":"circle":e.isTransposed?"circle":"radius"}return i}// 获取坐标轴构成的配置信息
,t._getAxisDefaultCfg=function(e,t,n,i){var a=this.viewTheme,o={},s=this.options,c=t.field;if((o=r.deepMix({},a.axis[i],o,s[c])).viewTheme=a,o.title){var l=r.isPlainObject(o.title)?o.title:{};l.text=l.text||t.alias||c,r.deepMix(o,{title:l})}return o.ticks=t.getTicks(),e.isPolar&&!t.isCategory&&"x"===n&&Math.abs(e.endAngle-e.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=e,o.label&&r.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&r.deepMix(o,s.xField),o}// 确定坐标轴的配置信息
,t._getAxisCfg=function(e,t,n,i,a,o){void 0===a&&(a="");var s=this,c=s._getAxisPosition(e,i,a,t.field),l=s._getAxisDefaultCfg(e,t,i,c);if(!r.isEmpty(l.grid)&&n){
// 生成 gridPoints
var u=[],h=[],f=function(e){var t=[];if(e.length>0){var n=(t=e.slice(0))[0],r=t[t.length-1];0!==n.value&&t.unshift({value:0}),1!==r.value&&t.push({value:1})}return t}(n.getTicks());// 没有垂直的坐标点时不会只栅格
if(f.length){var d=function(e,t,n){var r=[];return e.length<1||(e.length>=2&&t&&n&&r.push({text:"",tickValue:"",value:0}),0!==e[0].value&&r.push({text:"",tickValue:"",value:0}),1!==(r=r.concat(e))[r.length-1].value&&r.push({text:"",tickValue:"",value:1})),r}(l.ticks,t.isLinear,"center"===l.grid.align);r.each(d,(function(n,c){h.push(n.tickValue);var p=[],g=n.value;if("center"===l.grid.align&&(g=s._getMiddleValue(g,d,c,t.isLinear)),!r.isNil(g)){var m=e.x,v=e.y;r.each(f,(function(t){var n="x"===i?g:t.value,r="x"===i?t.value:g,a=e.convert({x:n,y:r});if(e.isPolar){var o=e.circleCentre;v.start>v.end&&(r=1-r),a.flag=m.start>m.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}p.push(a)})),u.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:p})}}))}l.grid.items=u,l.grid.tickValues=h}return l.type=t.type,l},t._getHelixCfg=function(e){for(var t={},n=e.a,r=e.startAngle,i=e.endAngle,a=[],o=0;o<=100;o++){var s=e.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var c=e.convert({x:0,y:0});// 内半径
return t.a=n,t.startAngle=r,t.endAngle=i,t.crp=a,t.axisStart=c,t.center=e.center,t.inner=e.y.start,t},t._drawAxis=function(e,t,n,a,o,s,c){var l,u,h=this.container,f=this.canvas;// 每个坐标轴 start end 等绘制边界的信息
"cartesian"===e.type?(l=i.Line,u=this._getLineCfg(e,t,a,c)):"helix"===e.type&&"x"===a?(l=i.Helix,u=this._getHelixCfg(e)):"x"===a?(l=i.Circle,u=this._getCircleCfg(e)):(l=i.Line,u=this._getRadiusCfg(e));var d=this._getAxisCfg(e,t,n,a,c,o);d=r.mix({},d,u),"y"===a&&s&&"circle"===s.get("type")&&(d.circle=s),d._id=o+"-"+a,r.isNil(c)||(d._id=o+"-"+a+c),r.mix(d,{canvas:f,
// 每个 axis 需要单独的 group，
// 否则所有的 aixs 的文本都混在一起了
// 同时无法知道是哪个坐标轴的事件
group:h.addGroup({viewId:o})});var p=new l(d);return p.render(),this.axes.push(p),p},t.createAxis=function(e,t,n){var i,a=this,o=this.coord,s=o.type;// theta坐标系默认不绘制坐标轴
"theta"===s||"polar"===s&&o.isTransposed||(e&&!a._isHide(e.field)&&(i=a._drawAxis(o,e,t[0],"x",n)),r.isEmpty(t)||"helix"===s||r.each(t,(function(t,r){a._isHide(t.field)||a._drawAxis(o,t,e,"y",n,i,r)})))},t.changeVisible=function(e){var t=this.axes;r.each(t,(function(t){t.set("visible",e)}))},t.clear=function(){var e=this.axes;r.each(e,(function(e){e.destroy()})),this.axes=[]},e}();e.exports=s},
/* 406 */
/***/function(e,t,n){var r=n(0),i=n(407),a=function(){function e(e){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,r.mix(this,e)}var t=e.prototype;return t._creatGuides=function(){var e=this,t=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;// @2019-01-18 by blue.lb 这里如果给 backContainer 添加 group 的话，会直接导致 BBoxOfBackPlot 函数中计算 element.getBBox() 出错
return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),t.forEach((function(t){var o=t.type,c=r.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},t);o=r.upperFirst(o);var l=new i[o](c);e.guides.push(l)})),e.guides},t.line=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"line"},e)),this},t.arc=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"arc"},e)),this},t.text=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"text"},e)),this},t.image=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"image"},e)),this},t.region=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"region"},e)),this},t.regionFilter=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"regionFilter"},e)),this},t.dataMarker=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"dataMarker"},e)),this},t.dataRegion=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"dataRegion"},e)),this},t.html=function(e){return void 0===e&&(e={}),this.options.push(r.mix({type:"html"},e)),this},t.render=function(e){var t=this,n=t.view,i=n&&n.get("data"),a=t._creatGuides();r.each(a,(function(r){var a;
// 默认 guide 绘制到 backPlot，用户也可以声明 top: true，显示在最上层
// @2019-01-18 by blue.lb 直接用传入的就行
a=r.get("top")?t.frontGroup||t.frontContainer:t.backGroup||t.backContainer,r.render(e,a,i,n)}))},t.clear=function(){this.options=[],this.reset()},t.changeVisible=function(e){var t=this.guides;r.each(t,(function(t){t.changeVisible(e)}))},t.reset=function(){var e=this.guides;r.each(e,(function(e){e.clear()})),this.guides=[],// @2019-01-18 by blue.lb 删除这部分
this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},e}();e.exports=a},
/* 407 */
/***/function(e,t,n){var r=n(24).Guide,i=n(408);r.RegionFilter=i,e.exports=r},
/* 408 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(0),a=n(17),o=n(112).Path,s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=a.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},s.render=function(e,t,n,r){var i=this,a=t.addGroup();a.name="guide-region-filter",r.once("afterpaint",(function(){
// 2018-08-08 by blue.lb padding为auto时，会导致重新绘制一次，这时候layer已经被销毁了
if(!a.get("destroyed")){i._drawShapes(r,a);var t=i._drawClip(e);a.attr({clip:t}),i.set("clip",t),i.get("appendInfo")&&a.setSilent("appendInfo",i.get("appendInfo")),i.set("el",a)}}))},s._drawShapes=function(e,t){var n=this,r=[];return e.getAllGeoms().map((function(e){var a=e.getShapes(),o=e.get("type");return n._geomFilter(o)&&a.map((function(e){var a=e.type,o=i.cloneDeep(e.attr());// const shapeAttr = Util.mix({}, shape.attr());
n._adjustDisplay(o);var s=t.addShape(a,{attrs:o});return r.push(s),e})),e})),r},s._drawClip=function(e){var t=this,n=t.parsePoint(e,t.get("start")),r=t.parsePoint(e,t.get("end")),i=[["M",n.x,n.y],["L",r.x,n.y],["L",r.x,r.y],["L",n.x,r.y],["z"]];return new o({attrs:{path:i,opacity:1}})},s._adjustDisplay=function(e){var t=this.get("color");e.fill&&(e.fill=e.fillStyle=t),e.stroke=e.strokeStyle=t},s._geomFilter=function(e){var t=this.get("apply");return!t||i.contains(t,e)},s.clear=function(){e.prototype.clear.call(this);var t=this.get("clip");t&&t.remove()},a}(a);e.exports=s},
/* 409 */
/***/function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i=n(0),a=n(24).Legend,o=n(410),s=n(21),c=n(201),l=n(203),u=n(8),h="_origin",f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,d=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"],p=function(){function e(e){var t=this;t.options={},i.mix(t,e),t.clear();var n=t.chart;t.container=n.get("frontPlot"),t.plotRange=n.get("plotRange")}var t=e.prototype;return t.clear=function(){var e=this.legends;this.backRange=null,i.each(e,(function(e){i.each(e,(function(e){e.destroy()}))})),this.legends={}}// 获取坐标轴等背景元素占的范围，防止遮挡坐标轴
,t.getBackRange=function(){var e=this.backRange;if(!e){var t=this.chart.get("backPlot");e=c(t,l(this.chart.get("plotRange")));var n=this.plotRange;e.maxX-e.minX<n.br.x-n.tl.x&&e.maxY-e.minY<n.br.y-n.tl.y&&(
// 如果背景小于则直接使用 plotRange
e={minX:n.tl.x,minY:n.tl.y,maxX:n.br.x,maxY:n.br.y}),this.backRange=e}return e},t._isFieldInView=function(e,t,n){var r=!1,a=n.get("scales")[e];return a&&a.values&&(r=i.inArray(a.values,t)),r},t._bindClickEvent=function(e,t,n){var r=this,a=r.chart,o=a.get("views"),s=t.field,c=r.options;e.on("itemclick",(function(t){if(c.onClick&&!0!==c.defaultClickHandlerEnabled)c.onClick(t);else{
// if 'defaultClickHandlerEnabled' is true the default click behavior would be worked.
var l=t.item,u=t.checked,h="single"===e.get("selectedMode"),f=l.dataValue;// import: 需要取该图例项原始的数值
u?(i.Array.remove(n,f),r._isFieldInView(s,f,a)&&a.filter(s,(function(e){return h?e===f:!i.inArray(n,e)})),i.each(o,(function(e){r._isFieldInView(s,f,e)&&e.filter(s,(function(e){return h?e===f:!i.inArray(n,e)}))}))):h||(n.push(f),r._isFieldInView(s,f,a)&&a.filter(s,(function(e){return!i.inArray(n,e)})),i.each(o,(function(e){r._isFieldInView(s,f,e)&&e.filter(s,(function(e){return!i.inArray(n,e)}))}))),c.onClick&&c.onClick(t),a.set("keepLegend",!0),// 图例不重新渲染
a.set("keepPadding",!0),// 边框不重新计算
a.repaint(),a.set("keepPadding",!1),a.set("keepLegend",!1)}}))},t._bindClickEventForMix=function(e){var t=this.chart.getAllGeoms();e.on("itemclick",(function(e){var n=e.item.field;e.checked?i.each(t,(function(e){e.getYScale().field===n&&e.show()})):i.each(t,(function(e){e.getYScale().field===n&&e.hide()}))}))},t._filterLabels=function(e,t,n){if(e.get("gLabel"))e.get("gLabel").set("visible",n);else{var r=t.get("labelCfg");if(r&&r.fields&&r.fields.length>0){var a=t.getXScale(),o=t.getYScale(),s=a.field,c=o.field,l=e.get("origin")._origin,u=t.get("labelContainer").get("labelsGroup").get("children");i.each(u,(function(t){var r=t.get("origin")||[];r[s]===l[s]&&r[c]===l[c]&&(t.set("visible",n),e.set("gLabel",t))}))}}},t._bindFilterEvent=function(e,t){var n=this,r=this.chart,a=t.field;e.on("itemfilter",(function(e){var t=e.range;r.filterShape((function(e,r,o){
// @2018-12-21 by blue.lb 由于数值0直接被类型转换为false，这里需要做更精确一点的判断
if(!i.isNil(e[a])){var s=e[a]>=t[0]&&e[a]<=t[1];// shape 带 label，则还需要隐藏 label
return n._filterLabels(r,o,s),s}return!0}));for(var o=r.getAllGeoms()||[],s=function(e){var n=o[e];"heatmap"===n.get("type")&&f((function(){n.drawWithRange(t)}))},c=0;c<o.length;c++)s(c)}))},t._getShapeData=function(e){var t=e.get("origin");return i.isArray(t)&&(t=t[0]),t[h]},t._bindHoverEvent=function(e,t){var n=this,r=n.chart,a=r.getAllGeoms(),o=n.options,s=r.get("canvas");e.on("itemhover",(function(e){var r=e.item.value,c=n.pre;if(c){if(c===r)return}else i.each(a,(function(a){var c=a.get("shapeContainer"),l=a.getShapes(),u=[];if(t){var h=a.get("scales")[t];i.each(l,(function(e){var a=n._getShapeData(e);a&&function(e,t,n){return!i.isNil(n)&&(e=n.translate(e),t=n.translate(t),n.isCategory?e===t:Math.abs(e-t)<=1)}(a[t],r,h)&&u.push(e)}))}else a.getYScale().field===r&&(u=l);i.isEmpty(u)||(e.shapes=u,e.geom=a,o.onHover?(o.onHover(e),c.sort(),s.draw()):a.setShapesActived(u))})),n.pre=r})),e.on("itemunhover",(function(e){n.pre=null,o.onUnhover&&o.onUnhover(e),i.each(a,(function(e){e.get("activeShapes")&&(e.clearActivedShapes(),s.draw())}))}))},t._isFiltered=function(e,t,n){if(!e.isCategory)return!0;var r=!0;return n=e.invert(n),i.each(t,(function(t){if(e.getText(t)===e.getText(n))return r=!1,!1})),r},t._alignLegend=function(e,t,n,r){var i=this,a=i.viewTheme,o=i.container.get("canvas"),s=o.get("width"),c=o.get("height"),l=i.totalRegion,u=i.plotRange,h=i.getBackRange(),f=e.get("offset")[0]||0,d=e.get("offset")[1]||0,p=e.getHeight(),g=e.getWidth(),m=a.legend.margin,v=a.legend.legendMargin,y=i.legends[r].length,A=r.split("-"),b=0,w=0,x=y>1?l:n;if("left"===A[0]||"right"===A[0])c=u.br.y,b=i._getXAlign(A[0],s,n,h,g,m),
// @2018-10-19 by blue.lb 由于legend中并不存在y属性，这里需要先获取group再获取y值
// @2019-03-21 by blue.lb 由于内部实现问题，usehtml部分的实例可以直接获取x、y的
w=t?(t.get("y")||t.get("group").get("y"))+t.getHeight()+v:i._getYAlignVertical(A[1],c,x,h,0,m,o.get("height"));else if("top"===A[0]||"bottom"===A[0])if(w=i._getYAlignHorizontal(A[0],c,n,h,p,m),t){var C=t.getWidth();// @2018-10-19 by blue.lb 由于legend中并不存在x属性，这里需要先获取group再获取x值
// @2019-03-21 by blue.lb 由于内部实现问题，usehtml部分的实例可以直接获取x、y的
b=(t.get("x")||t.get("group").get("x"))+C+v}else b=i._getXAlign(A[1],s,x,h,0,m),"right"===A[1]&&(b=u.br.x-x.totalWidth);e.move(b+f,w+d)},t._getXAlign=function(e,t,n,r,i,a){var o=r.minX-i-a[3]<0?0:r.minX-i-a[3],s="left"===e?o:r.maxX+a[1];return"center"===e&&(s=(t-n.totalWidth)/2),s},t._getYAlignHorizontal=function(e,t,n,r,i,a){return"top"===e?r.minY-i-a[0]:r.maxY+a[2]},t._getYAlignVertical=function(e,t,n,r,i,a,o){var s="top"===e?r.minY-i-a[0]:t-n.totalHeight;return"center"===e&&(s=(o-n.totalHeight)/2),s},t._getSubRegion=function(e){var t=0,n=0,r=0,a=0;return i.each(e,(function(e){var i=e.getWidth(),o=e.getHeight();t<i&&(t=i),r+=i,n<o&&(n=o),a+=o})),{maxWidth:t,totalWidth:r,maxHeight:n,totalHeight:a}},t._getRegion=function(){var e=this,t=e.viewTheme,n=e.legends,r=t.legend.legendMargin,a=[],o=0,s=0;return i.each(n,(function(t){var n=e._getSubRegion(t);a.push(n),o+=n.totalWidth+r,s+=n.totalHeight+r})),{totalWidth:o,totalHeight:s,subs:a}},t._addCategoryLegend=function(e,t,n,c,l){var h=this,f=e.field,d=h.options,p=d[f];p&&(d=p);var g=h.legends;g[l]=g[l]||[];var m=h.container,v=[],y=e.getTicks(),A=!0,b=n.get("shapeType")||"point",w=n.getDefaultValue("shape")||"circle";d[f]&&d[f].marker?(
// 用户为 field 对应的图例定义了 marker
w=d[f].marker,b="point",A=!1):d.marker&&(w=d.marker,b="point",A=!1);var x=h.chart,C=h.viewTheme,_=x.get("canvas"),I=h.plotRange,E=l.split("-"),k="right"===E[0]||"left"===E[0]?I.bl.y-I.tr.y:_.get("width");i.each(y,(function(t){var r=t.text,a=t.value,o=e.invert(a),l={isInCircle:n.isInCircle()},f=!c||h._isFiltered(e,c,a),d=n.getAttr("color"),p=n.getAttr("shape");if(d)
// 存在颜色映射
if(d.callback&&d.callback.length>1){
// 多参数映射，阻止程序报错
var g=Array(d.callback.length-1).fill("");l.color=d.mapping.apply(d,[o].concat(g)).join("")||C.defaultColor}else l.color=d.mapping(o).join("")||C.defaultColor;if(A&&p)
// 存在形状映射
if(p.callback&&p.callback.length>1){
// 多参数映射，阻止程序报错
var m=Array(p.callback.length-1).fill("");w=p.mapping.apply(p,[o].concat(m)).join("")}else w=p.mapping(o).join("");var y=s.getShapeFactory(b).getMarkerCfg(w,l);u.legendMarkerRadius&&(y.radius=u.legendMarkerRadius),i.isFunction(w)&&(y.symbol=w),v.push({value:r,
// 图例项显示文本的内容
dataValue:o,
// 图例项对应原始数据中的数值
checked:f,marker:y})}));var S,B=i.deepMix({},C.legend[E[0]],d[f]||d,{viewId:x.get("_id"),maxLength:k,items:v,container:m,position:[0,0]});if(B.title&&i.deepMix(B,{title:{text:e.alias||e.field}}),h._isTailLegend(d,n))B.chart=h.chart,B.geom=n,S=new o(B);else if(d.useHtml){var M=m.get("canvas").get("el");if(m=d.container,i.isString(m)&&/^\#/.test(m)){
// 如果传入 dom 节点的 id
var T=m.replace("#","");m=document.getElementById(T)}m||(m=M.parentNode),B.container=m,void 0===B.legendStyle&&(B.legendStyle={}),B.legendStyle.CONTAINER_CLASS=r({},B.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===M.style.zIndex?1:parseInt(M.style.zIndex,10)+1}),d.flipPage?(B.legendStyle.CONTAINER_CLASS.height="right"===E[0]||"left"===E[0]?k+"px":"auto",B.legendStyle.CONTAINER_CLASS.width="right"!==E[0]&&"left"!==E[0]?k+"px":"auto",S=new a.CatPageHtml(B)):S=new a.CatHtml(B)}else S=new a.Category(B);return h._bindClickEvent(S,e,c),g[l].push(S),S},t._bindChartMove=function(e){var t=this.chart,n=this.legends;t.on("plotmove",(function(t){var r=!1;if(t.target){var a=t.target.get("origin");if(a){var o=a[h]||a[0][h],s=e.field;if(o){var c=o[s];i.each(n,(function(e){i.each(e,(function(e){r=!0,!e.destroyed&&e.activate(c)}))}))}}}r||i.each(n,(function(e){i.each(e,(function(e){!e.destroyed&&e.deactivate()}))}))}))},t._addContinuousLegend=function(e,t,n){var r=this,o=r.legends;o[n]=o[n]||[];var s,c,l,u=r.container,h=e.field,f=e.getTicks(),d=[],p=r.viewTheme;i.each(f,(function(n){var r=n.value,i=e.invert(r),a=t.mapping(i).join("");d.push({value:n.tickValue,
// tick.text
attrValue:a,color:a,scaleValue:r}),0===r&&(c=!0),1===r&&(l=!0)})),c||d.push({value:e.min,attrValue:t.mapping(0).join(""),color:t.mapping(0).join(""),scaleValue:0}),l||d.push({value:e.max,attrValue:t.mapping(1).join(""),color:t.mapping(1).join(""),scaleValue:1});var g=r.options,m=n.split("-"),v=p.legend[m[0]];(g&&!1===g.slidable||g[h]&&!1===g[h].slidable)&&(v=i.mix({},v,p.legend.gradient));var y=i.deepMix({},v,g[h]||g,{items:d,attr:t,formatter:e.formatter,container:u,position:[0,0]});if(y.title&&i.deepMix(y,{title:{text:e.alias||e.field}}),"color"===t.type)s=new a.Color(y);else{if("size"!==t.type)return;s=g&&"circle"===g.sizeType?new a.CircleSize(y):new a.Size(y)}return r._bindFilterEvent(s,e),o[n].push(s),s},t._isTailLegend=function(e,t){if(e.hasOwnProperty("attachLast")&&e.attachLast){var n=t.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},t._adjustPosition=function(e,t){var n;if(t)n="right-top";else if(i.isArray(e))n=String(e[0])+"-"+String(e[1]);else{var r=e.split("-");1===r.length?(
// 只用了left/right/bottom/top一个位置定位
"left"===r[0]&&(n="left-bottom"),"right"===r[0]&&(n="right-bottom"),"top"===r[0]&&(n="top-center"),"bottom"===r[0]&&(n="bottom-center")):n=e}return n},t.addLegend=function(e,t,n,r){var i=this,a=i.options,o=e.field,s=a[o],c=i.viewTheme;if(!1===s)
// 如果不显示此图例
return null;if(s&&s.custom)i.addCustomLegend(o);else{var l,u=a.position||c.defaultLegendPosition;u=i._adjustPosition(u,i._isTailLegend(a,n)),s&&s.position&&(
// 如果对某个图例单独设置 position，则对 position 重新赋值
u=i._adjustPosition(s.position,i._isTailLegend(s,n))),(l=e.isLinear?i._addContinuousLegend(e,t,u):i._addCategoryLegend(e,t,n,r,u))&&(i._bindHoverEvent(l,o),a.reactive&&i._bindChartMove(e))}}
/**
   * 自定义图例
   * @param {string} field 自定义图例的数据字段名，可以为空
   * @return {object} legend 自定义图例实例
   */,t.addCustomLegend=function(e){var t=this,n=t.chart,r=t.viewTheme,o=t.container,s=t.options;e&&(s=s[e]);var c=s.position||r.defaultLegendPosition;c=t._adjustPosition(c);var l=t.legends;l[c]=l[c]||[];var h=s.items;if(h){var f=n.getAllGeoms();i.each(h,(function(e){var t=function(e,t){var n;return i.each(e,(function(e){e.get("visible")&&e.getYScale().field===t&&(n=e)})),n}(f,e.value);i.isPlainObject(e.marker)?
// 用户传入对象 item.marker = { symbol: 'circle', fill: 'red', radius: 3 }
e.marker.radius=e.marker.radius||u.legendMarkerRadius||4.5:(
// 直接传入字符串或者回调函数时转换为对象，如 item.marker = 'circle'
e.marker={symbol:e.marker||"circle",radius:u.legendMarkerRadius||4.5},-1!==i.indexOf(d,e.marker.symbol)?e.marker.stroke=e.fill:e.marker.fill=e.fill);var n=e.marker.symbol;i.isString(n)&&-1!==n.indexOf("hollow")&&(e.marker.symbol=i.lowerFirst(n.substr(6))),e.checked=!!i.isNil(e.checked)||e.checked,e.geom=t}));var p,g=n.get("canvas"),m=t.plotRange,v=c.split("-"),y="right"===v[0]||"left"===v[0]?m.bl.y-m.tr.y:g.get("width"),A=i.deepMix({},r.legend[v[0]],s,{maxLength:y,items:h,container:o,position:[0,0]});if(s.useHtml){var b=s.container;if(/^\#/.test(o)){
// 如果传入 dom 节点的 id
var w=b.replace("#","");b=document.getElementById(w)}else b||(b=o.get("canvas").get("el").parentNode);A.container=b,void 0===A.legendStyle&&(A.legendStyle={}),A.legendStyle.CONTAINER_CLASS||(A.legendStyle.CONTAINER_CLASS={height:"right"===v[0]||"left"===v[0]?y+"px":"auto",width:"right"!==v[0]&&"left"!==v[0]?y+"px":"auto",position:"absolute",overflow:"auto"}),p=s.flipPage?new a.CatPageHtml(A):new a.CatHtml(A)}else p=new a.Category(A);return l[c].push(p),p.on("itemclick",(function(e){s.onClick&&
// 用户自定义了图例点击事件
s.onClick(e)})),t._bindHoverEvent(p),p}},t.addMixedLegend=function(e,t){var n=this,r=n.options,a=[];i.each(e,(function(e){var n=e.alias||e.field,o=r[e.field];i.each(t,(function(t){if(t.getYScale()===e&&e.values&&e.values.length>0&&!1!==o){var r=t.get("shapeType")||"point",i=t.getDefaultValue("shape")||"circle",c=s.getShapeFactory(r),l={color:t.getDefaultValue("color")},h=c.getMarkerCfg(i,l);u.legendMarkerRadius&&(h.radius=u.legendMarkerRadius);var f={value:n,marker:h,field:e.field};a.push(f)}}))}));// end of scale loop
var o={custom:!0,items:a};n.options=i.deepMix({},o,n.options);var c=n.addCustomLegend();n._bindClickEventForMix(c)},t.alignLegends=function(){var e=this,t=e.legends,n=e._getRegion(t);e.totalRegion=n;var r=0;return i.each(t,(function(t,a){var o=
/* self._getRegion(legendItems)*/
n.subs[r];i.each(t,(function(n,r){var i=t[r-1];n.get("useHtml")&&!n.get("autoPosition")||e._alignLegend(n,i,o,a)})),r++})),this},e}();e.exports=p},
/* 410 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview The class of tail legend
 * @author Ye Liu
 */var i=n(0),a=n(24),o=n(8),s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=a.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{
/**
       * type标识
       * @type {String}
       */
type:"tail-legend",
/**
       * 布局方式
       * horizontal 水平
       * vertical 垂直
       * @type {String}
       */
layout:"vertical",autoLayout:!0})},s._addItem=function(e){var t=this.get("itemsGroup"),n=this._getNextX(),r=this.get("unCheckColor"),a=t.addGroup({x:0,y:0,value:e.value,scaleValue:e.scaleValue,checked:e.checked});a.translate(n,0),a.set("viewId",t.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),c=0;if(e.marker){
// 如果有marker添加marker
var l=i.mix({},e.marker,{x:e.marker.radius,y:0});e.checked||(l.fill&&(l.fill=r),l.stroke&&(l.stroke=r));var u=a.addShape("marker",{type:"marker",attrs:l});u.attr("cursor","pointer"),u.name="legend-marker",c+=u.getBBox().width+s}var h=i.mix({},o,{x:c,y:0,text:this._formatItemValue(e.value)});e.checked||i.mix(h,{fill:r});var f=a.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));// 添加一个包围矩形，用于事件支持
var d=a.getBBox(),p=this.get("itemWidth"),g=a.addShape("rect",{attrs:{x:n,y:0-d.height/2,fill:"#fff",fillOpacity:0,width:p||d.width,height:d.height}});return g.attr("cursor","pointer"),g.setSilent("origin",e),// 保存图例项相关的数据，便于事件操作
g.name="legend-item",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},s._adjust=function(){var e=this;if(e.get("geom")){e.get("group").attr("matrix")[7]=0;var t=e.get("geom").get("dataArray"),n=this.get("itemsGroup").get("children"),r=0;i.each(n,(function(e){var n=t[r],a=n[n.length-1].y;i.isArray(a)&&(a=a[1]);var o=e.getBBox().height,s=e.get("x"),c=a-o/2;e.translate(s,c),r++})),e.get("autoLayout")&&e._antiCollision(n)}},s.render=function(){var t=this;e.prototype.render.call(this),this.get("chart").once("afterpaint",(function(){t._adjust()}))},s._getPreviousY=function(e){return e.attr("matrix")[7]+e.getBBox().height},s._adjustDenote=function(e,t,n){var r=2*-o.legend.legendMargin;e.addShape("path",{attrs:{path:"M-2,"+t+"L"+r+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},s._antiCollision=function(e){if(void 0===e&&(e=[]),e.length){var t=this;e.sort((function(e,t){return e.attr("matrix")[7]-t.attr("matrix")[7]}));var n=!0,r=t.get("chart").get("plotRange"),i=r.tl.y,a=Math.abs(i-r.bl.y),o=e[0].getBBox().height,s=Number.MIN_VALUE,c=0,l=e.map((function(e){var t=e.attr("matrix")[7];return t>c&&(c=t),t<s&&(s=t),{size:e.getBBox().height,targets:[t-i]}}));s-=i;for(var u=0;n;){for(var h=0;h<l.length;h++){var f=l[h],d=(Math.min.apply(s,f.targets)+Math.max.apply(s,f.targets))/2;f.pos=Math.min(Math.max(s,d-f.size/2),a-f.size)}for(n=!1,u=l.length;u--;)if(u>0){var p=l[u-1],g=l[u];p.pos+p.size>g.pos&&(
// overlapping
p.size+=g.size,p.targets=p.targets.concat(g.targets),l.splice(u,1),n=!0)}// end of while i
}// end of while
// adjust y
u=0;var m=this.get("itemsGroup").addGroup();l.forEach((function(n){var r=i+o;n.targets.forEach((function(){var i=e[u].attr("matrix")[7],a=n.pos+r-o/2;Math.abs(i-a)>o/2&&t._adjustDenote(m,a,i-t.get("group").attr("matrix")[7]/2),e[u].translate(0,-i),e[u].translate(0,a),r+=o,u++}))}))}}// end of antiCollision
,a}(a.Legend.Category);// const Category = require('./category');
e.exports=s},
/* 411 */
/***/function(e,t,n){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}
/**
 * @fileOverview The controller of tooltip
 * @author sima.zhang
 */var i=n(0),a=n(21),o=n(24).Tooltip,s=i.MatrixUtil.vec2,c=["line","area","path","areaStack"],l=["line","area","point"],u=["marker","showMarker"];// 判断是否有样式
function h(e,t){return!!e&&(!!e.className&&(i.isNil(e.className.baseVal)?e.className:e.className.baseVal).includes(t))}// 去除重复的值, 去除不同图形相同数据，只展示一份即可
function f(e){var t=[];return i.each(e,(function(e){var n=function(e,t){var n=-1;return i.each(e,(function(e,r){var a=!0;for(var o in t)if(t.hasOwnProperty(o)&&!u.includes(o)&&!i.isObject(t[o])&&t[o]!==e[o]){a=!1;break}if(a)return n=r,!1})),n}(t,e);-1===n?t.push(e):t[n]=e})),t}var d=function(){function e(e){i.assign(this,e),this.timeStamp=0,// tooltip 锁定不能移动
this.locked=!1}var t=e.prototype;return t._normalizeEvent=function(e){var t=this.chart,n=this._getCanvas(),r=n.getPointByClient(e.clientX,e.clientY),i=n.get("pixelRatio");r.x=r.x/i,r.y=r.y/i;var a=t.getViewsByPoint(r);return r.views=a,r},t._getCanvas=function(){return this.chart.get("canvas")},t._getTriggerEvent=function(){var e,t=this.options.triggerOn;return t&&"mousemove"!==t?"click"===t?e="plotclick":"none"===t&&(e=null):e="plotmove",e},t._getDefaultTooltipCfg=function(){var e=this,t=e.chart,n=e.viewTheme,r=e.options,a=i.mix({},n.tooltip),o=t.getAllGeoms().filter((function(e){return e.get("visible")})),s=[];i.each(o,(function(e){var t=e.get("type"),n=e.get("adjusts"),r=!1;n&&i.each(n,(function(e){if("symmetric"===e.type||"Symmetric"===e.type)return r=!0,!1})),-1!==i.indexOf(s,t)||r||s.push(t)}));var c,u=!(!o.length||!o[0].get("coord"))&&o[0].get("coord").isTransposed;if(o.length&&o[0].get("coord")&&"cartesian"===o[0].get("coord").type)if("interval"===s[0]&&!1!==r.shared){
// 直角坐标系下 interval 的 crosshair 为矩形背景框
var h=i.mix({},n.tooltipCrosshairsRect);h.isTransposed=u,c={zIndex:0,
// 矩形背景框不可覆盖 geom
crosshairs:h}}else if(i.indexOf(l,s[0])>-1){var f=i.mix({},n.tooltipCrosshairsLine);f.isTransposed=u,c={crosshairs:f}}return i.mix(a,c,{})},t._bindEvent=function(){var e=this.chart,t=this._getTriggerEvent();t&&(e.on(t,i.wrapBehavior(this,"onMouseMove")),e.on("plotleave",i.wrapBehavior(this,"onMouseOut")))},t._offEvent=function(){var e=this.chart,t=this._getTriggerEvent();t&&(e.off(t,i.getWrapBehavior(this,"onMouseMove")),e.off("plotleave",i.getWrapBehavior(this,"onMouseOut")))},t._setTooltip=function(e,t,n,r){var a=this,o=a.tooltip,s=a.prePoint;if(!s||s.x!==e.x||s.y!==e.y){t=f(t),a.prePoint=e;var c=a.chart,l=a.viewTheme,u=i.isArray(e.x)?e.x[e.x.length-1]:e.x,h=i.isArray(e.y)?e.y[e.y.length-1]:e.y;o.get("visible")||c.emit("tooltip:show",{x:u,y:h,tooltip:o});var d=t[0],p=d.title||d.name;o.isContentChange(p,t)&&(c.emit("tooltip:change",{tooltip:o,x:u,y:h,items:t}),// bugfix: when set the title in the tooltip:change event does not take effect.
p=t[0].title||t[0].name,o.setContent(p,t),i.isEmpty(n)?(o.clearMarkers(),// clearMarkers 只会将 markerItems 从 markerGroup 中移除
// 所以我们还要将 markerItems 从 tooltip 中移除
// 这么做是为了防止上一次设置 marker 时的 markerItems 影响此次 tooltip 辅助线的定位
o.set("markerItems",[])):!0===a.options.hideMarkers?
// 不展示 tooltip marker
o.set("markerItems",n):o.setMarkers(n,l.tooltipMarker)),r===this._getCanvas()&&"mini"===o.get("type")?
// filter mini tooltip
o.hide():(o.setPosition(u,h,r),o.show())}},t.hideTooltip=function(){var e=this.tooltip,t=this.chart,n=this._getCanvas();this.prePoint=null,e.hide(),t.emit("tooltip:hide",{tooltip:e}),n.draw()},t.onMouseMove=function(e){
// 锁定时不移动 tooltip
if(!i.isEmpty(e.views)&&!this.locked){var t=this.timeStamp,n=+new Date,r={x:e.x,y:e.y};n-t>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(r,e.views,e.shape),this.timeStamp=n)}},t.onMouseOut=function(e){var t=this.tooltip;// 锁定 tooltip 时不隐藏
t.get("visible")&&t.get("follow")&&!this.locked&&(// 除非离开 plot 时鼠标依然在图形上，这段逻辑没有意义
// if (ev && ev.target !== canvas) {
//   return;
// }
e&&e.toElement&&(h(e.toElement,"g2-tooltip")||function(e,t){for(var n=e.parentNode,r=!1;n&&n!==document.body;){if(h(n,t)){r=!0;break}n=n.parentNode}return r}(e.toElement,"g2-tooltip"))||this.hideTooltip())},t.renderTooltip=function(){var e=this;if(!e.tooltip){var t,n=e.chart,r=e.viewTheme,a=e._getCanvas(),s=e._getDefaultTooltipCfg(),c=e.options;(c=i.deepMix({plotRange:n.get("plotRange"),capture:!1,canvas:a,frontPlot:n.get("frontPlot"),viewTheme:r.tooltip,backPlot:n.get("backPlot")},s,c)).crosshairs&&"rect"===c.crosshairs.type&&(c.zIndex=0),c.visible=!1,"mini"===c.type?(c.crosshairs=!1,// this.options.shared = false;
c.position="top",t=new o.Mini(c)):t=c.useHtml?new o.Html(c):new o.Canvas(c),e.tooltip=t;var l=e._getTriggerEvent(),u=t.get("container");t.get("enterable")||"plotmove"!==l||
// 鼠标不允许进入 tooltip 容器
u&&(u.onmousemove=function(t){
// 避免 tooltip 频繁闪烁
var r=e._normalizeEvent(t);n.emit(l,r)}),// 优化：鼠标移入 tooltipContainer 然后再移出时，需要隐藏 tooltip
u&&(u.onmouseleave=function(){e.locked||e.hideTooltip()}),e._bindEvent()}},t._formatMarkerOfItem=function(e,t,n){var r=this.options,a=n.point;if(a&&a.x&&a.y){
// hotfix: make sure there is no null value
var o=i.isArray(a.x)?a.x[a.x.length-1]:a.x,s=i.isArray(a.y)?a.y[a.y.length-1]:a.y;a=e.applyMatrix(o,s,1),n.x=a[0],n.y=a[1],n.showMarker=!0,// bugfix
// 由于tooltip是DOM而不是Canvas，设置渐变色时，marker无法正常显示
// 如果，设置的颜色是渐变色并且设置了tooltip使用html方式渲染，则取渐变色的起始颜色作为marker的颜色，暂时解决这个问题
"l("!==n.color.substring(0,2)||r.hasOwnProperty("useHtml")&&!r.useHtml||(n.color=n.color.split(" ")[1].substring(2));var l=this._getItemMarker(t,n);if(n.marker=l,-1!==i.indexOf(c,t.get("type")))return n}return null},t.lockTooltip=function(){this.locked=!0},t.unlockTooltip=function(){this.locked=!1},t.showTooltip=function(e,t,n){var r=this,a=this;if(!i.isEmpty(t)&&e){this.tooltip||this.renderTooltip();var o=a.options,c=[],l=[];if(i.each(t,(function(t){if(!t.get("tooltipEnable"))
// 如果不显示tooltip，则跳过
return!0;var n=t.get("geoms"),s=t.get("coord");i.each(n,(function(t){var n=t.get("type");if(t.get("visible")&&!1!==t.get("tooltipCfg")){var u=t.get("dataArray");if(t.isShareTooltip()||!1===o.shared&&i.inArray(["area","line","path","polygon"],n)){
// 打补丁解决 bug: https://github.com/antvis/g2/issues/1248
// 当 interval 对应的 color 和 x 字段相同的时候，并且包含 dodge，items 取值逻辑不一样
// 这种情况下，每一个 x 字段分成一组
var h=t.getXScale(),f=t.getAttr("color"),d=f?f.field:void 0;if("interval"===n&&h.field===d&&t.hasAdjust("dodge")){
// 找不到不为空的
var p=i.find(u,(function(n){return!!t.findPoint(e,n)}));// 转为 tooltip items
i.each(p,(function(e){var n=t.getTipItems(e,o.title);i.each(n,(function(e){var n=a._formatMarkerOfItem(s,t,e);n&&c.push(n)})),l=l.concat(n)}))}else i.each(u,(function(n){var r=t.findPoint(e,n);if(r){var u=t.getTipItems(r,o.title);i.each(u,(function(e){var n=a._formatMarkerOfItem(s,t,e);n&&c.push(n)})),l=l.concat(u)}}))}else{var g=t.get("shapeContainer"),m=g.get("canvas").get("pixelRatio"),v=g.getShape(e.x*m,e.y*m);v&&v.get("visible")&&v.get("origin")&&(l=t.getTipItems(v.get("origin"),o.title)),i.each(l,(function(e){var n=r._formatMarkerOfItem(s,t,e);n&&c.push(n)}))}}})),i.each(l,(function(e){var t=e.point,n=i.isArray(t.x)?t.x[t.x.length-1]:t.x,r=i.isArray(t.y)?t.y[t.y.length-1]:t.y;t=s.applyMatrix(n,r,1),e.x=t[0],e.y=t[1]}))})),l.length){var u=l[0];// bugfix: multiple tooltip items with different titles
if(!l.every((function(e){return e.title===u.title}))){var h=u,f=1/0;l.forEach((function(t){var n=s.distance([e.x,e.y],[t.x,t.y]);n<f&&(f=n,h=t)})),l=l.filter((function(e){return e.title===h.title})),c=c.filter((function(e){return e.title===h.title}))}if(!1===o.shared&&l.length>1){var d=l[0],p=Math.abs(e.y-d.y);i.each(l,(function(t){Math.abs(e.y-t.y)<=p&&(d=t,p=Math.abs(e.y-t.y))})),d&&d.x&&d.y&&(c=[d]),l=[d]}// 3.0 采用当前鼠标位置作为 tooltip 的参考点
// if (!Util.isEmpty(markersItems)) {
//   point = markersItems[0];
// }
a._setTooltip(e,l,c,n)}else a.hideTooltip()}},t.clear=function(){var e=this.tooltip;e&&e.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},t._getItemMarker=function(e,t){var n=this.options.marker||this.viewTheme.tooltip.marker;if(i.isFunction(n)){var o=e.get("shapeType")||"point",s=e.getDefaultValue("shape")||"circle",c=a.getShapeFactory(o),l={color:t.color};return n(c.getMarkerCfg(s,l),t)}return r({fill:t.color},n)},e}();e.exports=d},
/* 412 */
/***/function(e,t,n){
/**
 * @fileOverview The controller of chart's events
 * @author sima.zhang
 */
var r=n(0);function i(e,t){if(r.isNil(e)||r.isNil(t))return!1;var n=e.get("origin"),i=t.get("origin");// hotfix: if both shapes have no data，just compare shapes.
return r.isNil(n)&&r.isNil(i)?r.isEqual(e,t):r.isEqual(n,i)}function a(e){e.shape&&e.shape.get("origin")&&(e.data=e.shape.get("origin"))}var o=function(){function e(e){this.view=null,this.canvas=null,r.assign(this,e),this._init()}var t=e.prototype;return t._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},t._getShapeEventObj=function(e){return{x:e.x/this.pixelRatio,y:e.y/this.pixelRatio,target:e.target,
// canvas 元素
toElement:e.event.toElement||e.event.relatedTarget}},t._getShape=function(e,t){return this.view.get("canvas").getShape(e,t)},t._getPointInfo=function(e){var t=this.view,n={x:e.x/this.pixelRatio,y:e.y/this.pixelRatio},r=t.getViewsByPoint(n);return n.views=r,n},t._getEventObj=function(e,t,n){return{x:t.x,y:t.y,target:e.target,
// canvas 元素
toElement:e.event.toElement||e.event.relatedTarget,
// 目标元素
views:n}},t.bindEvents=function(){var e=this.canvas;e.on("mousedown",r.wrapBehavior(this,"onDown")),e.on("mousemove",r.wrapBehavior(this,"onMove")),e.on("mouseleave",r.wrapBehavior(this,"onOut")),e.on("mouseup",r.wrapBehavior(this,"onUp")),e.on("click",r.wrapBehavior(this,"onClick")),e.on("dblclick",r.wrapBehavior(this,"onClick")),e.on("touchstart",r.wrapBehavior(this,"onTouchstart")),e.on("touchmove",r.wrapBehavior(this,"onTouchmove")),e.on("touchend",r.wrapBehavior(this,"onTouchend"))},t._triggerShapeEvent=function(e,t,n){if(e&&e.name&&!e.get("destroyed")){var r=this.view;if(r.isShapeInView(e)){var i=e.name+":"+t;n.view=r,n.appendInfo=e.get("appendInfo"),// appendInfo is defined by user
r.emit(i,n);var a=r.get("parent");a&&
// chart 上也需要抛出该事件，本期先不抛出
a.emit(i,n)}}},t.onDown=function(e){var t=this.view,n=this._getShapeEventObj(e);n.shape=this.currentShape,a(n),t.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},t.onMove=function(e){var t=this,n=t.view,r=t.currentShape;// 如果图形被销毁，则设置当前 shape 为空
r&&r.get("destroyed")&&(r=null,t.currentShape=null);var o=t._getShape(e.x,e.y)||e.currentTarget,s=t._getShapeEventObj(e);if(s.shape=o,a(s),n.emit("mousemove",s),t._triggerShapeEvent(o,"mousemove",s),r&&!i(r,o)){var c=t._getShapeEventObj(e);c.shape=r,c.toShape=o,a(c),t._triggerShapeEvent(r,"mouseleave",c)}if(o&&!i(r,o)){var l=t._getShapeEventObj(e);l.shape=o,l.fromShape=r,a(l),t._triggerShapeEvent(o,"mouseenter",l)}t.currentShape=o;var u=t._getPointInfo(e),h=t.curViews||[];0===h.length&&u.views.length&&n.emit("plotenter",t._getEventObj(e,u,u.views)),// point.views 是指当前 view 或者子 view，不会取跟当前 view 同一层级的兄弟元素（view)
h.length&&0===u.views.length&&n.emit("plotleave",t._getEventObj(e,u,h)),u.views.length&&((s=t._getEventObj(e,u,u.views)).shape=o,a(s),n.emit("plotmove",s)),t.curViews=u.views},t.onOut=function(e){var t=this,n=t.view,r=t._getPointInfo(e),i=t.curViews||[],a=t._getEventObj(e,r,i);// 只有没有padding 时，当前依然在 view 的 plotRange 情况下才会出现这个情况，保证 plotleave 触发
!t.curViews||0===t.curViews.length||a.toElement&&"CANVAS"===a.toElement.tagName||(n.emit("plotleave",a),t.curViews=[])},t.onUp=function(e){var t=this.view,n=this._getShapeEventObj(e);n.shape=this.currentShape,t.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},t.onClick=function(e){var t=this,n=t.view,i=t._getShape(e.x,e.y)||e.currentTarget,o=t._getShapeEventObj(e);o.shape=i,a(o),n.emit("click",o),t._triggerShapeEvent(i,e.type,o),t.currentShape=i;var s=t._getPointInfo(e),c=s.views;if(!r.isEmpty(c)){var l=t._getEventObj(e,s,c);if(t.currentShape){var u=t.currentShape;l.shape=u,a(l)}"dblclick"===e.type?(n.emit("plotdblclick",l),n.emit("dblclick",o)):n.emit("plotclick",l)}},t.onTouchstart=function(e){var t=this.view,n=this._getShape(e.x,e.y)||e.currentTarget,r=this._getShapeEventObj(e);r.shape=n,a(r),t.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},t.onTouchmove=function(e){var t=this.view,n=this._getShape(e.x,e.y)||e.currentTarget,r=this._getShapeEventObj(e);r.shape=n,a(r),t.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},t.onTouchend=function(e){var t=this.view,n=this._getShapeEventObj(e);n.shape=this.currentShape,a(n),t.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},t.clearEvents=function(){var e=this.canvas;e.off("mousemove",r.getWrapBehavior(this,"onMove")),e.off("mouseleave",r.getWrapBehavior(this,"onOut")),e.off("mousedown",r.getWrapBehavior(this,"onDown")),e.off("mouseup",r.getWrapBehavior(this,"onUp")),e.off("click",r.getWrapBehavior(this,"onClick")),e.off("dblclick",r.getWrapBehavior(this,"onClick")),e.off("touchstart",r.getWrapBehavior(this,"onTouchstart")),e.off("touchmove",r.getWrapBehavior(this,"onTouchmove")),e.off("touchend",r.getWrapBehavior(this,"onTouchend"))},e}();e.exports=o},
/* 413 */
/***/function(e,t,n){
/**
 * @fileOverview The entry of chart's animation
 * @author sima.zhang
 */
var r=n(0),i=n(142),a=r.MatrixUtil.mat3;// 获取图组内所有的shapes
function o(e,t){var n=[];if(!1===e.get("animate"))return[];var i=e.get("children");return r.each(i,(function(e){if(e.isGroup)n=n.concat(o(e,t));else if(e.isShape&&e._id){var r=e._id;(r=r.split("-")[0])===t&&n.push(e)}})),n}function s(e,t,n,r){return r?i.Action[n][r]:i.getAnimation(e,t,n)}function c(e,t,n){var a=i.getAnimateCfg(e,t);return n&&n[t]?r.deepMix({},a,n[t]):a}function l(e,t,n,i){var o,l,u=!1;if(i){
// Step: leave -> update -> enter
var h=[],f=[];// 存储的是 shapes
// 存储的是 shapes
r.each(t,(function(t){var n=e[t._id];n?(t.setSilent("cacheShape",n),h.push(t),delete e[t._id]):f.push(t)})),r.each(e,(function(e){var t=e.name,i=e.coord,h=e._id,f=e.attrs,d=e.index,p=e.type;if(l=c(t,"leave",e.animateCfg),o=s(t,i,"leave",l.animation),r.isFunction(o)){var g=n.addShape(p,{attrs:f,index:d});if(g._id=h,g.name=t,i&&"label"!==t){var m=g.getMatrix(),v=a.multiply([],m,i.matrix);g.setMatrix(v)}u=!0,o(g,l,i)}})),r.each(h,(function(e){var t=e.name,n=e.get("coord"),i=e.get("cacheShape").attrs;// 判断如果属性相同的话就不进行变换
if(!r.isEqual(i,e.attr())){if(l=c(t,"update",e.get("animateCfg")),o=s(t,n,"update",l.animation),r.isFunction(o))o(e,l,n);else{var a=r.cloneDeep(e.attr());e.attr(i),e.animate(a,l.duration,l.easing,(function(){e.setSilent("cacheShape",null)}))}u=!0}})),r.each(f,(function(e){var t=e.name,n=e.get("coord");l=c(t,"enter",e.get("animateCfg")),o=s(t,n,"enter",l.animation),r.isFunction(o)&&(o(e,l,n),u=!0)}))}else r.each(t,(function(e){var t=e.name,n=e.get("coord");l=c(t,"appear",e.get("animateCfg")),o=s(t,n,"appear",l.animation),r.isFunction(o)&&(o(e,l,n),u=!0)}));return u}e.exports={execAnimation:function(e,t){var n=e.get("middlePlot"),i=e.get("backPlot"),a=e.get("_id"),s=e.get("canvas"),c=s.get(a+"caches")||[];0===c.length&&(t=!1);var u=o(n,a),h=o(i,a),f=u.concat(h);s.setSilent(a+"caches",function(e){var t={};return r.each(e,(function(e){if(e._id&&!e.isClip){var n=e._id;t[n]={_id:n,type:e.get("type"),attrs:r.cloneDeep(e.attr()),
// 原始属性
name:e.name,index:e.get("index"),animateCfg:e.get("animateCfg"),coord:e.get("coord")}}})),t}(f)),l(c,t?f:u,s,t)||s.draw()}}},
/* 414 */
/***/function(e,t,n){
/**
 * @fileOverview The class of canvas plot
 * @author sima.zhang
 */
var r=n(0),i=n(18).Group,a=function e(t){e.superclass.constructor.call(this,t)};r.extend(a,i),r.augment(a,{getDefaultCfg:function(){return{
/**
       * 类型
       * @type {String}
       */
type:"plotBack",
/**
       * 画布边距
       * @type {Number | Array | Object | "auto"}
       */
padding:null,
/**
       * 大背景
       * @type {Object}
       */
background:null,
/**
       * 绘图区域范围
       * @type {Object}
       */
plotRange:null,
/**
       * 绘图区域背景
       * @type {Object}
       */
plotBackground:null}},_beforeRenderUI:function(){this._calculateRange()},_renderUI:function(){this._renderBackground(),this._renderPlotBackground()},_renderBackground:function(){var e=this,t=e.get("background");if(t){var n=this.get("canvas"),i={x:0,y:0,width:e.get("width")||n.get("width"),height:e.get("height")||n.get("height")},a=e.get("backgroundShape");a?a.attr(i):(a=this.addShape("rect",{attrs:r.mix(i,t)}),this.set("backgroundShape",a))}},_renderPlotBackground:function(){var e=this,t=e.get("plotBackground");if(t){var n=e.get("plotRange"),i=n.br.x-n.bl.x,a=n.br.y-n.tr.y,o=n.tl,s={x:o.x,y:o.y,width:i,height:a},c=e.get("plotBackShape");c?c.attr(s):(t.image?(s.img=t.image,c=e.addShape("image",{attrs:s})):(
// 矩形
r.mix(s,t),c=e.addShape("rect",{attrs:s})),e.set("plotBackShape",c))}},_convert:function(e,t){if(r.isString(e))if("auto"===e)e=0;else if(e.includes("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");e=parseInt(e,10)/100,e=t?e*i:e*a}return e},_calculateRange:function(){var e=this,t=e.get("plotRange");r.isNil(t)&&(t={});var n=e.get("padding"),i=this.get("canvas"),a=e.get("width")||i.get("width"),o=e.get("height")||i.get("height"),s=r.toAllPadding(n),c=e._convert(s[0],!1),l=e._convert(s[1],!0),u=e._convert(s[2],!1),h=e._convert(s[3],!0),f=Math.min(h,a-l),d=Math.max(h,a-l),p=Math.min(o-u,c),g=Math.max(o-u,c);t.tl={x:f,y:p},// top-left
t.tr={x:d,y:p},// top-right
t.bl={x:f,y:g},// bottom-left
t.br={x:d,y:g},// bottom-right
t.cc={x:(d+f)/2,y:(g+p)/2},this.set("plotRange",t)},repaint:function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this}}),e.exports=a},
/* 415 */
/***/function(e,t,n){
/**
 * @fileOverview 需要计算所占x轴上的宽度的辅助类
 * @author sima.zhang1990@gmail.com
 * @author dxq613@gmail.com
 */
var r=n(8),i=n(0),a={getDefaultSize:function(){var e=this.get("defaultSize"),t=this.get("viewTheme")||r;if(!e){var n,a=this.get("coord"),o=this.getXScale(),s=o.values,c=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var l=// 已经排序后的数据查找距离最小的
function(e,t){var n=e.length;// 日期类型的 values 经常上文本类型，所以需要转换一下
i.isString(e[0])&&(e=e.map((function(e){return t.translate(e)})));for(var r=e[1]-e[0],a=2;a<n;a++){var o=e[a]-e[a-1];r>o&&(r=o)}return r}(s,o);n=(o.max-o.min)/l,s.length>n&&(n=s.length)}else n=s.length;var u=o.range,h=1/n,f=1;if(this.isInCircle()?
// 极坐标下多层环图
f=a.isTransposed&&n>1?t.widthRatio.multiplePie:t.widthRatio.rose
/* if (dataArray.length > 1) {
          normalizeSize *= (range[1] - range[0]);
        } */:(o.isLinear&&(h*=u[1]-u[0]),f=t.widthRatio.column),h*=f,this.hasAdjust("dodge")){var d=this._getDodgeCfg(c),p=d.dodgeCount,g=d.dodgeRatio;h/=p,g>0&&(h=g*h/f)}e=h,this.set("defaultSize",e)}return e},_getDodgeCfg:function(e){var t,n,r=this.get("adjusts"),a=e.length;if(i.each(r,(function(e){"dodge"===e.type&&(t=e.dodgeBy,n=e.dodgeRatio)})),t){var o=i.Array.merge(e);a=i.Array.values(o,t).length}return{dodgeCount:a,dodgeRatio:n}},getDimWidth:function(e){var t=this.get("coord"),n=t.convertPoint({x:0,y:0}),r=t.convertPoint({x:"x"===e?1:0,y:"x"===e?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var e=this.get("coord");// x轴的长度
return this.isInCircle()&&!e.isTransposed?(e.endAngle-e.startAngle)*e.radius:this.getDimWidth("x")},_toNormalizedSize:function(e){return e/this._getWidth()},_toCoordSize:function(e){return this._getWidth()*e},getNormalizedSize:function(e){var t=this.getAttrValue("size",e);return t=i.isNil(t)?this.getDefaultSize():this._toNormalizedSize(t)},getSize:function(e){var t=this.getAttrValue("size",e);if(i.isNil(t)){var n=this.getDefaultSize();t=this._toCoordSize(n)}return t}};e.exports=a},
/* 416 */
/***/function(e,t,n){
/**
 * @fileOverview 分割数据用于处理存在 null 值的折线图、区域图
 * @author dxq613@gmail.com
 */
var r=n(0),i=n(8);e.exports={splitData:function(e){var t=this.get("viewTheme")||i;if(!e.length)return[];var n,a=[],o=[],s=this.getYScale().field;return r.each(e,(function(e){n=e._origin?e._origin[s]:e[s],t.connectNulls?
// 如果忽视 Null 直接连接节点，则将 value = null 的数据过滤掉
r.isNil(n)||o.push(e):r.isArray(n)&&r.isNil(n[0])||r.isNil(n)?o.length&&(a.push(o),o=[]):o.push(e)})),o.length&&a.push(o),a}}},
/* 417 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview 路径图，无序的线图
 * @author dxq613@gmail.com
 */var i=n(23),a=n(416),o=n(0),s=function(e){var t,n;n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=s.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */function s(t){var n;return n=e.call(this,t)||this,o.assign(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),a),n}return i.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="path",t.shapeType="line",t},i.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return n.isStack=this.hasStack(),n},i.draw=function(e,t,n,r){var i=this,a=this.splitData(e),s=this.getDrawCfg(e[0]);i._applyViewThemeShapeStyle(s,s.shape,n),s.origin=e,// path,line 等图的origin 是整个序列
o.each(a,(function(e,a){if(!o.isEmpty(e)){s.splitedIndex=a,// 传入分割片段索引 用于生成id
s.points=e;var c=n.drawShape(s.shape,s,t);i.appendShapeInfo(c,r+a)}}))},s}(i);i.Path=s,e.exports=s},
/* 418 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(429),i=n(430);
/* harmony import */function a(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===i.b&&t.documentElement.namespaceURI===i.b?t.createElement(e):t.createElementNS(n,e)}}function o(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}
/* harmony default export */t.a=function(e){var t=Object(r.a)(e);return(t.local?o:a)(t)}},
/* 419 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}},
/* 420 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},
/* 421 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.b=function(e,t,n){var i=e._id;return e.each((function(){var e=Object(r.h)(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Object(r.f)(e,i).value[t]}}
/***/;
/* harmony import */var r=n(58);function i(e,t){var n,i;return function(){var a=Object(r.h)(this,e),o=a.tween;// If this node shared tween with the previous node,
// just assign the updated shared tween and we’re done!
// Otherwise, copy-on-write.
if(o!==n)for(var s=0,c=(i=n=o).length;s<c;++s)if(i[s].name===t){(i=i.slice()).splice(s,1);break}a.tween=i}}function a(e,t,n){var i,a;if("function"!=typeof n)throw new Error;return function(){var o=Object(r.h)(this,e),s=o.tween;// If this node shared tween with the previous node,
// just assign the updated shared tween and we’re done!
// Otherwise, copy-on-write.
if(s!==i){a=(i=s).slice();for(var c={name:t,value:n},l=0,u=a.length;l<u;++l)if(a[l].name===t){a[l]=c;break}l===u&&a.push(c)}o.tween=a}}
/* harmony default export */t.a=function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o,s=Object(r.f)(this.node(),n).tween,c=0,l=s.length;c<l;++c)if((o=s[c]).name===e)return o.value;return null}return this.each((null==t?i:a)(n,e,t))}},
/* 422 */
/***/function(e,t,n){
/**
 * @fileOverview facets of chart
 * @author dxq613@gmail.com
 */
var r=n(8),i=n(0),a=i.assign,o=i.isNil,s=i.isArray,c=i.cloneDeep,l=i.wrapBehavior,u=i.getWrapBehavior,h=function(){var e=t.prototype;function t(e){var t=this.getDefaultCfg();a(this,t,e),this.init()}return e.getDefaultCfg=function(){return{chart:null,group:null,
/**
       * 是否默认显示每个分面的title
       * @type {Boolean}
       */
showTitle:!0,
/**
       * 是否自动修改坐标轴的信息
       * @type {Boolean}
       */
autoSetAxis:!0,
/**
       * View 的内边框
       * @type {Number|Array}
       */
padding:10,
/**
       * 遍历每个view 的回调函数
       * @type {Function}
       */
eachView:null,
/**
       * 分面的字段名列表
       * @type {Array}
       */
fields:[],
/**
       * 列值的的标题
       * @type {Object}
       */
colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},e.init=function(){if(!this.chart)throw new Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},e.initContainer=function(){var e=this.chart.get("frontPlot").addGroup();this.group=e},e.initViews=function(){for(var e=this.chart,t=e.get("data"),n=this.eachView,r=this.generateFacets(t),i=0;i<r.length;i++){var a=r[i],o=a.region,s=e.view({start:o.start,end:o.end,padding:this.padding});s.source(a.data),this.beforeProcessView(s,a),n&&n(s,a),this.afterProcessView(s,a),a.view=s}this.facets=r}
/**
   * 处理 view 前
   * @protected
   */,e.beforeProcessView=function(){}
/**
   * 处理view
   * @param {Object} view 视图
   * @param {Object} facet 分面信息
   * @protected
   */,e.afterProcessView=function(e,t){this.autoSetAxis&&this.processAxis(e,t)},e.processAxis=function(e,t){var n=e.get("options"),r=e.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,a=s(i)?i:i.split("*").map((function(e){return e.trim()})),c=a[0],l=a[1];o(n.axes)&&(n.axes={});var u=n.axes;!1!==u&&(c&&!1!==u[c]&&(u[c]=u[c]||{},this.setXAxis(c,u,t)),l&&!1!==u[l]&&(u[l]=u[l]||{},this.setYAxis(l,u,t)))}},e.setXAxis=function(){},e.setYAxis=function(){}// 默认显示各列的标题
,e.renderTitle=function(e,t){this.drawColTitle(e,t)},e.getScaleText=function(e,t,n){var r;if(e){var i=n.get("scales")[e];i||(i=n.createScale(e)),r=i.getText(t)}else r=t;return r},e.drawColTitle=function(e,t){var n=this.getScaleText(t.colField,t.colValue,e),r=a({position:["50%","0%"],content:n},this.colTitle);e.guide().text(r)},e.drawRowTitle=function(e,t){var n=this.getScaleText(t.rowField,t.rowValue,e),r=a({position:["100%","50%"],content:n},c(this.rowTitle));e.guide().text(r)}
/**
   * 数据过滤器
   * @protected
   * @param {Array} conditions 过滤条件
   * @return {Function} 过滤函数
   */,e.getFilter=function(e){return function(t){var n=!0;return e.forEach((function(e){var r=e.field,i=e.value,a=!0;!o(i)&&r&&(a=t[r]===i),n=n&&a})),n}}
/**
   * 获取字段对应的值
   * @protected
   * @param  {String} field 字段名
   * @param  {Array} data 数据
   * @return {Array} 字段对应的值
   */,e.getFieldValues=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i][e];o(a)||r[a]||(n.push(a),r[a]=!0)}return n},e.getRegion=function(e,t,n,r){var i=1/t,a=1/e,o={x:i*n,y:a*r};// x轴方向的每个分面的偏移
return{start:o,end:{x:o.x+i,y:o.y+a}}}
/**
   * 生成分面
   * @protected
   * @return {Array} 多个分面集合
   */,e.generateFacets=function(){return[]},e._bindEvent=function(){var e=this.chart;e.on("afterchangedata",l(this,"onDataChange")),e.on("beforeclear",l(this,"onClear")),e.on("beforedestroy",l(this,"destroy")),e.on("beforepaint",l(this,"onPaint")),e.on("setdata",l(this,"onDataChange"))},e._clearEvent=function(){var e=this.chart;e&&(e.off("afterchangedata",u(this,"onDataChange")),e.off("beforeclear",u(this,"onClear")),e.off("beforedestroy",u(this,"destroy")),e.off("beforepaint",u(this,"onPaint")),e.off("setdata",u(this,"onDataChange")))},e._clearFacets=function(){var e=this.facets,t=this.chart;if(e)for(var n=0;n<e.length;n++){var r=e[n];t.removeView(r.view)}this.facets=null},e.onClear=function(){this.onRemove()},e.onPaint=function(){if(this.showTitle)for(var e=this.facets,t=0;t<e.length;t++){var n=e[t],r=n.view;this.renderTitle(r,n)}},e.onDataChange=function(){this._clearFacets(),this.initViews()},e.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},e.destroy=function(){this.onRemove(),this.destroyed=!0},t}();e.exports=h},
/* 423 */
/***/function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}
/**
 * @fileOverview interval geometry
 * @author dxq613@gmail.com
 */var a=n(23),o=n(0),s=n(415);n(424);var c=function(e){r(n,e);var t=n.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */function n(t){var n;return n=e.call(this,t)||this,o.assign(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),s),n}return t.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="interval",t.shapeType="interval",t.generatePoints=!0,t},t.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t);return n.size=this.getNormalizedSize(t),n},t.clearInner=function(){e.prototype.clearInner.call(this),this.set("defaultSize",null)},n}(a),l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(c),u=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"dodge"}],t},t}(c),h=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"symmetric"}],t},t}(c);c.Stack=l,c.Dodge=u,c.Symmetric=h,a.Interval=c,a.IntervalStack=l,a.IntervalDodge=u,a.IntervalSymmetric=h,e.exports=c},
/* 424 */
/***/function(e,t,n){
/**
 * @fileOverview interval shapes
 * @author dxq613@gmail.com
 * @author sima.zhang1990@gmail.com
 * @author huangtonger@aliyun.com
 */
var r=n(0),i=n(21),a=n(25),o=n(57),s=n(8),c=n(18),l=r.PathUtil;// 获取柱状图的几个点
function u(e,t){var n,i,a=e.x,o=e.y,s=e.y0,c=e.size,l=s,u=o;r.isArray(o)&&(u=o[1],l=o[0]),r.isArray(a)?(n=a[0],i=a[1]):(n=a-c/2,i=a+c/2);var h=[];return h.push({x:n,y:l},{x:n,y:u}),t?h.push({x:i,y:(u+l)/2}):h.push({x:i,y:u},{x:i,y:l}),h}function h(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r){var i=0===n?"M":"L";t.push([i,r.x,r.y])}}var a=e[0];return t.push(["L",a.x,a.y]),t.push(["z"]),t}function f(e){var t=s.shape.interval,n=r.mix({},t,e.style);return o.addFillAttrs(n,e),e.color&&(n.stroke=n.stroke||e.color),n}function d(e){var t=s.shape.hollowInterval,n=r.mix({},t,e.style);return o.addStrokeAttrs(n,e),n}function p(e,t){var n=[],i=e.points,a=e.nextPoints;return r.isNil(a)?t?n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[2].x,i[2].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",a[1].x,a[1].y],["L",a[0].x,a[0].y],["Z"]),n}// 获取选中时的样式，当前仅支持饼图
function g(e,t){var n,i=t.geom.get("coord"),o=t.point;if(i&&"theta"===i.type){var s=function(e,t){var n,i,o,s,c=t.getRadius(),l=c*t.innerRadius;return!r.isArray(e.x)&&r.isArray(e.y)&&(e.x=[e.x,e.x]),r.isArray(e.x)?(o={x:e.x[0],y:e.y[0]},s={x:e.x[1],y:e.y[1]},n=a.getPointAngle(t,o),(i=a.getPointAngle(t,s))<=n&&(
// 考虑占比百分百的情形
i+=2*Math.PI)):(s=e,n=t.startAngle,i=a.getPointAngle(t,s)),{r:c,ir:l,startAngle:n,endAngle:i}}(o,i),c=(s.endAngle-s.startAngle)/2+s.startAngle;n={transform:[["t",7.5*Math.cos(c),7.5*Math.sin(c)]]}}return r.mix({},n)}var m=i.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(e,t){return!e||r.inArray(["rect","funnel","pyramid"],e)?{fillOpacity:(t.fillOpacity||t.opacity||1)-.15}:{lineWidth:(t.lineWidth||0)+1}},getDefaultPoints:function(e){return u(e)},getSelectedCfg:function(e,t){return g(0,t)}});// 默认柱状图
// 水波图
/**
 * 用贝塞尔曲线模拟正弦波
 * Using Bezier curves to fit sine wave.
 * There is 4 control points for each curve of wave,
 * which is at 1/4 wave length of the sine wave.
 *
 * The control points for a wave from (a) to (d) are a-b-c-d:
 *          c *----* d
 *     b *
 *       |
 * ... a * ..................
 *
 * whose positions are a: (0, 0), b: (0.5, 0.5), c: (1, 1), d: (PI / 2, 1)
 *
 * @param {number} x          x position of the left-most point (a)
 * @param {number} stage      0-3, stating which part of the wave it is
 * @param {number} waveLength wave length of the sine wave
 * @param {number} amplitude  wave amplitude
 * @return {Array} 正弦片段曲线
 */
function v(e,t,n,r){return 0===t?[[e+.5*n/Math.PI/2,r/2],[e+.5*n/Math.PI,r],[e+n/4,r]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),r],[e+.5*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-r/2],[e+.5*n/Math.PI,-r],[e+n/4,-r]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-r],[e+.5*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}
/**
 * 获取水波路径
 * @param  {number} radius          半径
 * @param  {number} waterLevel      水位
 * @param  {number} waveLength      波长
 * @param  {number} phase           相位
 * @param  {number} amplitude       震幅
 * @param  {number} cx              圆心x
 * @param  {number} cy              圆心y
 * @return {Array}  path            路径
 * @reference http://gitlab.alipay-inc.com/datavis/g6/blob/1.2.0/src/graph/utils/path.js#L135
 */function y(e,t,n,r,i,a,o){// map phase to [-Math.PI * 2, 0]
for(var s=2*Math.ceil(2*e/n*4),c=[];r<2*-Math.PI;)r+=2*Math.PI;for(;r>0;)r-=2*Math.PI;var l=a-e+(r=r/Math.PI/2*n)-2*e;
/**
   * top-left corner as start point
   *
   * draws this point
   *  |
   * \|/
   *  ~~~~~~~~
   *  |      |
   *  +------+
   */c.push(["M",l,t]);for(
/**
   * top wave
   *
   * ~~~~~~~~ <- draws this sine wave
   * |      |
   * +------+
   */
var u=0,h=0;h<s;++h){var f=v(h*n/4,h%4,n,i);c.push(["C",f[0][0]+l,-f[0][1]+t,f[1][0]+l,-f[1][1]+t,f[2][0]+l,-f[2][1]+t]),h===s-1&&(u=f[2][0])}
/**
   * top-right corner
   *
   *                       ~~~~~~~~
   * 3. draws this line -> |      | <- 1. draws this line
   *                       +------+
   *                          ^
   *                          |
   *                  2. draws this line
   */return c.push(["L",u+l,o+e]),c.push(["L",l,o+e]),c.push(["L",l,t]),c}
/**
 * 添加水波
 * @param {number} x           中心x
 * @param {number} y           中心y
 * @param {number} level       水位等级 0～1
 * @param {number} waveCount   水波数
 * @param {number} colors      色值
 * @param {number} group       图组
 * @param {number} clip        用于剪切的图形
 * @param {number} radius      绘制图形的高度
 */function A(e,t,n,r,i,a,o,c){for(var l=o.getBBox(),u=l.maxX-l.minX,h=l.maxY-l.minY,f=0;f<r;f++){var d=a.addShape("path",{attrs:{path:y(c,l.minY+h*n,u/4,0,u/64,e,t),fill:i[f],clip:o}});// FIXME wave animation error in svg
"canvas"===s.renderer&&d.animate({transform:[["t",u/2,0]],repeat:!0},5e3-300*f)}}i.registerShape("interval","rect",{draw:function(e,t){var n=f(e),i=h(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=f(e),n=e.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},t)}}),// 空心柱状图
i.registerShape("interval","hollowRect",{draw:function(e,t){var n=d(e),i=h(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=d(e),n=e.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},t)}}),// 线形柱状图
i.registerShape("interval","line",{getPoints:function(e){return n=(t=e).x,i=t.y,a=t.y0,o=[],r.isArray(i)?r.each(i,(function(e,t){o.push({x:r.isArray(n)?n[t]:n,y:e})})):o.push({x:n,y:i},{x:n,y:a}),o;var t,n,i,a,o},draw:function(e,t){var n=d(e);n.lineWidth=e.size||1;// size 就是线的宽度
var i=h(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=d(e);return r.mix({symbol:"line",radius:5},t)}}),// 钉子形的柱状图
i.registerShape("interval","tick",{getPoints:function(e){return n=(t=e).x,i=r.isArray(t.y)?t.y[1]:t.y,a=r.isArray(t.y)?t.y[0]:t.y0,o=t.size,(s=[]).push({x:n-o/2,y:i},{x:n+o/2,y:i},{x:n,y:i},{x:n,y:a},{x:n-o/2,y:a},{x:n+o/2,y:a}),s;var t,n,i,a,o,s},draw:function(e,t){var n=d(e);// @2018-12-25 by blue.lb 经过测试发现size代表的是宽度，而style中的lineWidth才是设置线宽，放在interval暂时先特殊处理
n.lineWidth||(n.lineWidth=2);var i=function(e){var t=[];return t.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]),t}(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=d(e);return r.mix({symbol:"tick",radius:5},t)}}),// 漏斗图
i.registerShape("interval","funnel",{getPoints:function(e){// 漏斗图的 size 是柱状图的两倍
return e.size=2*e.size,u(e)},draw:function(e,t){var n=f(e),i=p(e,!0);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=f(e);return r.mix({symbol:"square",radius:4},t)}}),// 金字塔图
i.registerShape("interval","pyramid",{getPoints:function(e){// 漏斗图的 size 是柱状图的两倍
return e.size=2*e.size,u(e,!0)},draw:function(e,t){var n=f(e),i=p(e,!1);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=f(e);return r.mix({symbol:"square",radius:4},t)}}),i.registerShape("interval","liquid-fill-gauge",{draw:function(e,t){var n=0,i=1/0;r.each(e.points,(function(e){e.x<i&&(i=e.x),n+=e.x}));var a=n/e.points.length,o=this.parsePoint({x:a,y:.5}),s=this.parsePoint({x:i,y:.5}),l=o.x-s.x,u=Math.min(l,s.y),h=f(e),p=new c.Circle({attrs:{x:o.x,y:o.y,r:u}});return A(o.x,o.y,e.y/(2*o.y),1,[h.fill],t,p,4*u),t.addShape("circle",{attrs:r.mix(d(e),{x:o.x,y:o.y,r:u+u/8})})}});var b={};i.registerShape("interval","liquid-fill-path",{draw:function(e,t){var n=r.mix({},f(e)),i=e.shape[1],a=0,o=1/0;r.each(e.points,(function(e){e.x<o&&(o=e.x),a+=e.x}));var s,c=a/e.points.length,u=this.parsePoint({x:c,y:.5}),h=this.parsePoint({x:o,y:.5}),p=u.x-h.x,g=Math.min(p,h.y);if(b[i])s=b[i];else{var m=l.parsePathString(i);b[i]=s={segments:m}}var v=[];n.rotate&&(v.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var y=t.addShape("path",{attrs:r.mix(n,{fillOpacity:0,path:s.segments})}),w=r.cloneDeep(y.getBBox()),x=w.maxX-w.minX,C=w.maxY-w.minY,_=2*g/Math.max(x,C);y.transform(v.concat([["s",_,_]]));var I=_*x/2,E=_*C/2;// (bbox.maxX - bbox.minX) / 2;
// (bbox.maxY - bbox.minY) / 2;
y.transform([["t",u.x-I,u.y-E]]),A(u.x,u.y,e.y/(2*u.y),1,[n.fill],t,y,4*h.y);var k=t.addShape("path",{attrs:r.mix(d(e),{path:s.segments})});return k.transform(v.concat([["s",_,_],["t",u.x-I,u.y-E]])),k}}),i.registerShape("interval","top-line",{draw:function(e,t){var n=f(e),i=e.style||{},a=[["M",e.points[1].x,e.points[1].y],["L",e.points[2].x,e.points[2].y]],o={stroke:i.stroke||"white",lineWidth:i.lineWidth||1,path:this.parsePath(a)},s=h(e.points);s=this.parsePath(s),delete n.stroke;// 不在柱子上绘制线
var c=t.addShape("path",{attrs:r.mix(n,{zIndex:0,path:s})});return t.addShape("path",{zIndex:1,attrs:o}),c},getMarkerCfg:function(e){var t=f(e),n=e.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},t)}}),e.exports=m},
/* 425 */
/***/function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}
/**
 * @fileOverview 线图
 * @author dxq613@gmail.com
 */var a=n(23),o=n(417);n(426);var s=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */
t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="line",t.sortable=!0,t},t}(o),c=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(s);s.Stack=c,a.Line=s,a.LineStack=c,e.exports=s},
/* 426 */
/***/function(e,t,n){
/**
 * @fileOverview line shapes
 * @author dxq613@gmail.com
 * @author sima.zhang1990@gmail.com
 * @author huangtonger@aliyun.com
 */
var r=n(0),i=n(25),a=n(57),o=n(21),s=n(8),c=[1,1],l=[5.5,1];function u(e){var t=s.shape.line,n=r.mix({},t,e.style);return a.addStrokeAttrs(n,e),e.size&&(n.lineWidth=e.size),n}function h(e){var t=s.shape.line,n=r.mix({lineWidth:2,radius:6},t,e.style);return a.addStrokeAttrs(n,e),n}// 获取带有上下区间的 path
// 单条 path
function f(e,t,n,r){var a;if(t){
// 直角坐标系下绘制曲线时限制最大值、最小值
var o=r.constraint;n&&e.length&&e.push({x:e[0].x,y:e[0].y}),a=i.getSplinePath(e,!1,o)}else a=i.getLinePath(e,!1),n&&a.push(["Z"]);return a}// get line path
function d(e,t){var n=e.points,i=e.isInCircle,o=n[0];return r.isArray(o.y)?function(e,t,n,r){for(var i=[],o=r.isStack,s=[],c=0;c<e.length;c++){var l=e[c],u=a.splitPoints(l);s.push(u[0]),i.push(u[1])}var h=f(i,t,n,r),d=f(s,t,n,r);return o?h:h.concat(d)}(n,t,i,e):f(n,t,i,e)}// 插值的图形
function p(e,t){var n=function(e,t){var n=[];return r.each(e,(function(r,i){var a=e[i+1];n.push(r),a&&(n=n.concat(t(r,a)))})),n}// 插值的图形path，不考虑null
(e.points,t);return function(e){var t=[];return r.each(e,(function(e,n){var r=0===n?["M",e.x,e.y]:["L",e.x,e.y];t.push(r)})),t}(n)}function g(e,t,n){return[["M",e-n,t],["L",e+n,t]]}function m(e,t,n){return[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]]}// get marker cfg
function v(e,t){return r.mix({symbol:t?m:g},h(e))}function y(e,t){return r.mix({symbol:t},h(e))}// 当只有一个数据时绘制点
// regist line geom
var A=o.registerFactory("line",{
// 默认的shape
defaultShapeType:"line",
/* getMarkerCfg(type, cfg) {
    const lineObj = Line[type] || Line.line;
    return lineObj.getMarkerCfg(cfg);
  }, */
getActiveCfg:function(e,t){return{lineWidth:(t.lineWidth||0)+1}},
// 计算点 如果存在多个点，分割成单个的点, 不考虑多个x对应一个y的情况
getDefaultPoints:function(e){return a.splitPoints(e)},drawShape:function(e,t,n){var i,a=this.getShape(e);return i=1===t.points.length&&s.showSinglePoint?function(e,t,n){var i=t.points[0];return n.addShape("circle",{attrs:r.mix({x:i.x,y:i.y,r:2,fill:t.color},t.style)})}(0,t,n):a.draw(t,n),i&&(i.set("origin",t.origin),i._id=t.splitedIndex?t._id+t.splitedIndex:t._id,i.name=this.name),i}});// draw line shape
o.registerShape("line","line",{draw:function(e,t){var n=u(e),i=d(e,!1);return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return v(e)}}),// 点线 ···
o.registerShape("line","dot",{draw:function(e,t){var n=u(e),i=d(e,!1);return t.addShape("path",{attrs:r.mix(n,{path:i,lineDash:c})})},getMarkerCfg:function(e){var t=v(e,!1);return t.lineDash=c,t}}),// 断线 - - -
o.registerShape("line","dash",{draw:function(e,t){var n=u(e),i=d(e,!1);return t.addShape("path",{attrs:r.mix({path:i,lineDash:l},n)})},getMarkerCfg:function(e){var t=v(e,!1);return t.lineDash=t.lineDash||l,t}}),// draw smooth line shape
o.registerShape("line","smooth",{draw:function(e,t){var n=u(e),i=this._coord;// 曲线的限制
e.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=d(e,!0);return t.addShape("path",{attrs:r.mix(n,{path:a})})},getMarkerCfg:function(e){return v(e,!0)}}),o.registerShape("line","hv",{draw:function(e,t){var n=u(e),i=p(e,(function(e,t){var n=[];return n.push({x:t.x,y:e.y}),n}));return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return y(e,(function(e,t,n){return[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]]}))}}),o.registerShape("line","vh",{draw:function(e,t){var n=u(e),i=p(e,(function(e,t){var n=[];return n.push({x:e.x,y:t.y}),n}));return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return y(e,(function(e,t,n){return[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]]}))}}),o.registerShape("line","hvh",{draw:function(e,t){var n=u(e),i=p(e,(function(e,t){var n=[],r=(t.x-e.x)/2+e.x;return n.push({x:r,y:e.y}),n.push({x:r,y:t.y}),n}));return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return y(e,(function(e,t,n){return[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]]}))}}),o.registerShape("line","vhv",{draw:function(e,t){var n=u(e),i=p(e,(function(e,t){var n=[],r=(t.y-e.y)/2+e.y;return n.push({x:e.x,y:r}),n.push({x:t.x,y:r}),n}));return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return y(e,(function(e,t){
// 宽 13px，高 8px
return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}))}}),A.spline=A.smooth,e.exports=A},
/* 427 */
/***/function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}
/**
 * @fileOverview 点图
 * @author dxq613@gmail.com
 */var a=n(23),o=n(0);n(428);var s=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */return n.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="point",t.shapeType="point",t.generatePoints=!0,t},n.drawPoint=function(e,t,n,r){var i,a=this,s=e.shape,c=a.getDrawCfg(e);if(a._applyViewThemeShapeStyle(c,s,n),o.isArray(e.y)){var l=a.hasStack();o.each(e.y,(function(e,o){c.y=e,c.yIndex=o,l&&0===o||(i=n.drawShape(s,c,t),a.appendShapeInfo(i,r+o))}))}else o.isNil(e.y)||(i=n.drawShape(s,c,t),a.appendShapeInfo(i,r))},t}(a),c=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"jitter"}],t},t}(s),l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(s);s.Jitter=c,s.Stack=l,a.Point=s,a.PointJitter=c,a.PointStack=l,e.exports=s},
/* 428 */
/***/function(e,t,n){
/**
 * @fileOverview point shapes
 * @author dxq613@gmail.com
 * @author sima.zhang1990@gmail.com
 * @author huangtonger@aliyun.com
 */
var r=n(0),i=n(57),a=n(8),o=n(21),s=n(18).Marker,c=r.PathUtil,l=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],u=Math.sqrt(3);function h(e){var t=a.shape.point,n=r.mix({},t,e.style);return i.addFillAttrs(n,e),r.isNumber(e.size)&&(n.radius=e.size),n}function f(e){var t=a.shape.hollowPoint,n=r.mix({},t,e.style);return i.addStrokeAttrs(n,e),r.isNumber(e.size)&&(n.radius=e.size),n}// 增加marker
r.mix(s.Symbols,{hexagon:function(e,t,n){var r=n/2*u;return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]},bowtie:function(e,t,n){var r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]},cross:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},tick:function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},plus:function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},hyphen:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},line:function(e,t,n){return[["M",e,t-n],["L",e,t+n]]}});var d=o.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(e,t){
// 点放大 + 颜色加亮
var n,i=t.radius;return{radius:i+1,shadowBlur:i,shadowColor:n=e&&(0===e.indexOf("hollow")||-1!==r.indexOf(l,e))||!e?t.stroke||t.strokeStyle:t.fill||t.fillStyle,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(e){return i.splitPoints(e)}});// 用于桑基图的节点
o.registerShape("point","rect",{draw:function(e,t){var n=h(e),i=function(e){var t=e.points[0].x,n=e.points[0].y,r=e.size[0],i=e.size[1];return[["M",t-.5*r,n-.5*i],["L",t+.5*r,n-.5*i],["L",t+.5*r,n+.5*i],["L",t-.5*r,n+.5*i],["z"]]}(e);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){var t=h(e);return t.symbol="rect",t.radius=4.5,t}}),// 添加shapes
r.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],(function(e){o.registerShape("point",e,{draw:function(t,n){
// cfg.points = this.parsePoints(cfg.points);
var i=h(t);return n.addShape("Marker",{attrs:r.mix(i,{symbol:e,x:t.x,y:t.y})})},getMarkerCfg:function(t){var n=h(t);return n.symbol=e,n.radius=4.5,n}}),// 添加该 shape 对应的 hollowShape
o.registerShape("point","hollow"+r.upperFirst(e),{draw:function(t,n){
// cfg.points = this.parsePoints(cfg.points);
var i=f(t);return n.addShape("Marker",{attrs:r.mix(i,{symbol:e,x:t.x,y:t.y})})},getMarkerCfg:function(t){var n=f(t);return n.symbol=e,n.radius=4.5,n}})})),// 添加 hollowShapes
r.each(l,(function(e){o.registerShape("point",e,{draw:function(t,n){var i=f(t);return n.addShape("Marker",{attrs:r.mix(i,{symbol:e,x:t.x,y:t.y})})},getMarkerCfg:function(t){var n=f(t);return n.symbol=e,n.radius=4.5,n}})})),// image
o.registerShape("point","image",{draw:function(e,t){return e.points=this.parsePoints(e.points),t.addShape("image",{attrs:{x:e.points[0].x-e.size/2,y:e.points[0].y-e.size,width:e.size,height:e.size,img:e.shape[1]}})}});// path
var p={};o.registerShape("point","path",{draw:function(e,t){var n,i=r.mix({},f(e),h(e)),a=e.shape[1],o=e.size||10;if(p[a])n=p[a];else{var s=c.parsePathString(a),l=r.flatten(s).filter((function(e){return r.isNumber(e)}));p[a]=n={range:Math.max.apply(null,l)-Math.min.apply(null,l),segments:s}}var u=o/n.range,d=[];i.rotate&&(d.push(["r",i.rotate/180*Math.PI]),delete i.rotate);var g=t.addShape("path",{attrs:r.mix(i,{path:n.segments})});return d.push(["s",u,u],["t",e.x,e.y]),g.transform(d),g}}),e.exports=d},
/* 429 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(430);
/* harmony default export */t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},
/* 430 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";
/* harmony default export */t.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},
/* 431 */
/***/function(e,t,n){"use strict";function r(){}
/* harmony default export */t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},
/* 432 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView;// node is a Document
}},
/* 433 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return i})),
/* harmony export (immutable) */t.a=function(e,t,n,r){var a=i;e.sourceEvent=i,i=e;try{return t.apply(n,r)}finally{i=a}}
/***/;var r={},i=null;function a(e,t,n){return e=o(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function o(e,t,n){return function(r){var a=i;// Events can be reentrant (e.g., focus).
i=r;try{e.call(this,this.__data__,t,n)}finally{i=a}}}function s(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function c(e,t,n){var i=r.hasOwnProperty(e.type)?a:o;return function(r,a,o){var s,c=this.__on,l=i(t,a,o);if(c)for(var u=0,h=c.length;u<h;++u)if((s=c[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=t);this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,capture:n},c?c.push(s):this.__on=[s]}}
/* harmony default export */"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"})),t.b=function(e,t,n){var r,i,a=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=a.length;if(!(arguments.length<2)){for(l=t?c:s,null==n&&(n=!1),r=0;r<o;++r)this.each(l(a[r],t,n));return this}var l=this.node().__on;if(l)for(var u,h=0,f=l.length;h<f;++h)for(r=0,u=l[h];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value}},
/* 434 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(433);
/* harmony default export */t.a=function(){for(var e,t=r.c;e=t.sourceEvent;)t=e;return t}},
/* 435 */
/***/function(e,t,n){"use strict";
/* harmony import */n(436),n(452),n(437),n(450),n(453),n(513),n(514);var r=n(420);
/* unused harmony reexport interpolate */
/* harmony import */
/* harmony reexport (binding) */n.d(t,"a",(function(){return r.a})),n(438),n(454),n(515);
/* harmony import */var i=n(455);
/* unused harmony reexport interpolateNumberArray */
/* harmony import */
/* harmony reexport (binding) */n.d(t,"c",(function(){return i.a}));
/* harmony import */var a=n(516);
/* harmony reexport (binding) */n.d(t,"d",(function(){return a.a})),
/* harmony reexport (binding) */n.d(t,"e",(function(){return a.b})),n(519);
/* harmony import */var o=n(449);
/* unused harmony reexport interpolateZoom */
/* harmony import */
/* harmony reexport (binding) */n.d(t,"b",(function(){return o.a})),n(520),n(521),n(522),n(523),n(524),n(525)},
/* 436 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(19),i=n(449),a=n(452),o=n(453),s=n(420),c=n(454),l=n(455),u=n(451),h=n(438);
/* harmony import */
/* harmony default export */t.a=function(e,t){var n,f=typeof t;return null==t||"boolean"===f?Object(u.a)(t):("number"===f?s.a:"string"===f?(n=Object(r.a)(t))?(t=n,i.a):l.a:t instanceof r.a?i.a:t instanceof Date?o.a:Object(h.b)(t)?h.a:Array.isArray(t)?a.a:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?c.a:s.a)(e,t)}},
/* 437 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */function r(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}
/* harmony default export */t.a=r,t.b=function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[i],o=e[i+1],s=i>0?e[i-1]:2*a-o,c=i<t-1?e[i+2]:2*o-a;return r((n-i/t)*t,s,a,o,c)}}},
/* 438 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.b=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}
/***/,
/* harmony default export */t.a=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}}},
/* 439 */
/***/function(e,t){e.exports=function(e){return(e.get("scaleController")||{}).defs};
/***/},
/* 440 */
/***/function(e,t,n){var r=n(439);e.exports=function(e,t){var n=r(e);if(n&&n[t])return n[t]}},
/* 441 */
/***/function(e,t,n){var r=n(0),i=n(100);e.exports=function(e,t){var n,a=t.field,o=t.type,s=r.Array.values(e,a);return"linear"===o?(n=r.Array.getRange(s),t.min<n.min&&(n.min=t.min),t.max>n.max&&(n.max=t.max)):"timeCat"===o?(r.each(s,(function(e,t){s[t]=i.toTimeStamp(e)})),s.sort((function(e,t){return e-t})),n=s):n=s,n}},
/* 442 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99);
/* harmony default export */t.a=function(e){return"string"==typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},
/* 443 */
/***/function(e,t,n){"use strict";function r(){return[]}
/* harmony default export */t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},
/* 444 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return function(){return this.matches(e)}}},
/* 445 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=a;
/* harmony import */var r=n(446),i=n(99);
/* harmony import */function a(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}
/* harmony default export */t.b=function(){return new i.a(this._enter||this._groups.map(r.a),this._parents)},a.prototype={constructor:a,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}},
/* 446 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return new Array(e.length)}},
/* 447 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.b=s;
/* harmony import */var r=n(432);function i(e){return function(){this.style.removeProperty(e)}}function a(e,t,n){return function(){this.style.setProperty(e,t,n)}}function o(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}
/* harmony default export */function s(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}
/***/t.a=function(e,t,n){return arguments.length>1?this.each((null==t?i:"function"==typeof t?o:a)(e,t,null==n?"":n)):s(this.node(),e)}},
/* 448 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(58);
/* harmony default export */t.a=function(e,t){var n,i,a,o=e.__transition,s=!0;if(o){for(a in t=null==t?null:t+"",o)(n=o[a]).name===t?(i=n.state>r.d&&n.state<r.b,n.state=r.a,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[a]):s=!1;s&&delete e.__transition}}},
/* 449 */
/***/function(e,t,n){"use strict";
/* unused harmony export rgbBasis */
/* unused harmony export rgbBasisClosed */
/* harmony import */var r=n(19),i=n(437),a=n(450),o=n(207);
/* harmony import */function s(e){return function(t){var n,i,a=t.length,o=new Array(a),s=new Array(a),c=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(t[n]),o[n]=i.r||0,s[n]=i.g||0,c[n]=i.b||0;return o=e(o),s=e(s),c=e(c),i.opacity=1,function(e){return i.r=o(e),i.g=s(e),i.b=c(e),i+""}}}
/* harmony default export */t.a=function e(t){var n=Object(o.b)(t);function i(e,t){var i=n((e=Object(r.f)(e)).r,(t=Object(r.f)(t)).r),a=n(e.g,t.g),s=n(e.b,t.b),c=Object(o.a)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=s(t),e.opacity=c(t),e+""}}return i.gamma=e,i}(1),s(i.b),s(a.a)},
/* 450 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(437);
/* harmony default export */t.a=function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t),a=e[(i+t-1)%t],o=e[i%t],s=e[(i+1)%t],c=e[(i+2)%t];return Object(r.a)((n-i/t)*t,a,o,s,c)}}},
/* 451 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return function(){return e}}},
/* 452 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=i;
/* harmony import */var r=n(436);
/* harmony import */function i(e,t){var n,i=t?t.length:0,a=e?Math.min(i,e.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r.a)(e[n],t[n]);for(;n<i;++n)s[n]=t[n];return function(e){for(n=0;n<a;++n)s[n]=o[n](e);return s}}
/***/n(438)},
/* 453 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}},
/* 454 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(436);
/* harmony default export */t.a=function(e,t){var n,i={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=Object(r.a)(e[n],t[n]):a[n]=t[n];return function(e){for(n in i)a[n]=i[n](e);return a}}},
/* 455 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(420),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");
/* harmony default export */t.a=function(e,t){var
// scan index for next number in b
n,
// current match in a
o,
// current match in b
s,c=i.lastIndex=a.lastIndex=0,
// string preceding current number in b, if any
l=-1,
// index in s
u=[],
// string constants and placeholders
h=[];// number interpolators
// Coerce inputs to strings.
// Interpolate pairs of numbers in a & b.
for(e+="",t+="";(n=i.exec(e))&&(o=a.exec(t));)(s=o.index)>c&&(
// a string precedes the next number in b
s=t.slice(c,s),u[l]?u[l]+=s:u[++l]=s),(n=n[0])===(o=o[0])?
// numbers in a & b match
u[l]?u[l]+=o:u[++l]=o:(
// interpolate non-matching numbers
u[++l]=null,h.push({i:l,x:Object(r.a)(n,o)})),c=a.lastIndex;// Add remains of b.
// Special optimization for only a single match.
// Otherwise, interpolate each of the numbers and rejoin the string.
return c<t.length&&(s=t.slice(c),u[l]?u[l]+=s:u[++l]=s),u.length<2?h[0]?function(e){return function(t){return e(t)+""}}(h[0].x):function(e){return function(){return e}}(t):(t=h.length,function(e){for(var n,r=0;r<t;++r)u[(n=h[r]).i]=n.x(e);return u.join("")})}},
/* 456 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(19),i=n(435);
/* harmony import */
/* harmony default export */t.a=function(e,t){var n;return("number"==typeof t?i.a:t instanceof r.a?i.b:(n=Object(r.a)(t))?(t=n,i.b):i.c)(e,t)}},
/* 457 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview 分面的基类
 * @author dxq613@gmail.com
 */var i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="rect",t},a.generateFacets=function(e){var t=this,n=t.fields,r=[],i=1,a=1,o=n[0],s=n[1],c=[""],l=[""];return o&&(c=t.getFieldValues(o,e),a=c.length),s&&(l=t.getFieldValues(s,e),i=l.length),// 获取每个维度对应的frame
c.forEach((function(n,u){l.forEach((function(h,f){var d=[{field:o,value:n,values:c},{field:s,value:h,values:l}],p=t.getFilter(d),g=e.filter(p),m={type:t.type,colValue:n,rowValue:h,colField:o,rowField:s,colIndex:u,rowIndex:f,cols:a,rows:i,data:g,region:t.getRegion(i,a,u,f)};r.push(m)}))})),r}// 设置 x 坐标轴的文本、title 是否显示
,a.setXAxis=function(e,t,n){n.rowIndex!==n.rows-1?(t[e].title=null,t[e].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(t[e].title=null)}// 设置 y 坐标轴的文本、title 是否显示
,a.setYAxis=function(e,t,n){0!==n.colIndex?(t[e].title=null,t[e].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(t[e].title=null)},a.renderTitle=function(e,t){0===t.rowIndex&&this.drawColTitle(e,t),t.colIndex===t.cols-1&&this.drawRowTitle(e,t)},i}(n(422));
/**
 * 矩形的 facet 有以下属性：
 * - colField 列的字段
 * - rowField 行的字段
 * - colValue 列字段的值
 * - rowValue 行字段的值
 * - cols 列数
 * - rows 行数
 * - colIndex 列的序号
 * - rowIndex 行的序号
 */
/**
 * 用于生成分面的类
 * @class Facets.Rect
 */e.exports=i},
/* 458 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview list facets, support cols
 */var i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);// 用户不设置时就显示一行
return t.type="list",t.cols=null,t},a.generateFacets=function(e){var t=this,n=t.fields[0];if(!n)throw"Please specify for the field for facet!";var r=t.getFieldValues(n,e),i=r.length,a=t.cols||i,o=parseInt((i+a-1)/a),s=[];return r.forEach((function(c,l){var u=parseInt(l/a),h=l%a,f=[{field:n,value:c,values:r}],d=t.getFilter(f),p=e.filter(d),g={type:t.type,count:i,colValue:c,colField:n,rowField:null,rowValue:c,colIndex:h,rowIndex:u,cols:a,rows:o,data:p,region:t.getRegion(o,a,h,u)};s.push(g)})),s}// 设置 x 坐标轴的文本、title 是否显示
,a.setXAxis=function(e,t,n){
// 当是最后一行或者下面没有 view 时文本不显示
n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(t[e].label=null,t[e].title=null)}// 设置 y 坐标轴的文本、title 是否显示
,a.setYAxis=function(e,t,n){0!==n.colIndex&&(t[e].title=null,t[e].label=null)},i}(n(422));
/**
 * 用于生成分面的类
 * @class Facets.List
 */e.exports=i},
/* 459 */
/***/function(e,t,n){var r=n(206);// geoms
n(460),n(462),n(464),n(423),n(425),n(417),n(427),n(465),n(467),n(469),n(545),// facets
n(547),// interaction
n(552),e.exports=r},
/* 460 */
/***/function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}
/**
 * @fileOverview 面积图
 * @author dxq613@gmail.com
 */var a=n(23),o=n(416),s=n(0);n(461);var c=function(e){r(n,e);var t=n.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */function n(t){var n;return n=e.call(this,t)||this,s.assign(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o),n}return t.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="area",t.shapeType="area",t.generatePoints=!0,t.sortable=!0,t},t.draw=function(e,t,n,r){var i=this,a=this.getDrawCfg(e[0]);i._applyViewThemeShapeStyle(a,a.shape,n);var o=this.splitData(e);a.origin=e,// path,line,area 等图的origin 是整个序列
s.each(o,(function(e,o){a.splitedIndex=o;// 传入分割片段索引 用于生成id
var s=e.map((function(e){return e.points}));a.points=s;var c=n.drawShape(a.shape,a,t);i.appendShapeInfo(c,r+o)}))},n}(a),l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(c);c.Stack=l,a.Area=c,a.AreaStack=l,e.exports=c},
/* 461 */
/***/function(e,t,n){
/**
 * @fileOverview area shape
 * @author dxq613@gmail.com
 * @author sima.zhang1990@gmail.com
 */
var r=n(0),i=n(21),a=n(25),o=n(57),s=n(8);function c(e){var t=s.shape.hollowArea,n=r.mix({},t,e.style);return o.addStrokeAttrs(n,e),r.isNumber(e.size)&&(n.lineWidth=e.size),n}function l(e){var t=s.shape.area,n=r.mix({},t,e.style);return o.addFillAttrs(n,e),e.color&&(n.stroke=n.stroke||e.color),r.isNumber(e.size)&&(n.lineWidth=e.size),n}function u(e,t,n){var i=[],o=[],s=[],c=[],l=e.isInCircle;return r.each(e.points,(function(e){s.push(e[1]),c.push(e[0])})),// if (!isInCircle) {
c=c.reverse(),// }
o.push(s,c),r.each(o,(function(r,o){var s=[],c=(r=n.parsePoints(r))[0];l&&r.push({x:c.x,y:c.y}),s=t?a.getSplinePath(r,!1,e.constraint):a.getLinePath(r,!1),o>0&&(s[0][0]="L"),i=i.concat(s)})),i.push(["Z"]),i}// get marker cfg
function h(e){return{symbol:function(e,t,n){return[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},radius:5,fill:e.color,fillOpacity:.6}}// 鼠标悬浮触发active状态
var f=i.registerFactory("area",{defaultShapeType:"area",
/**
   * @override
   * @protected
   * 计算点 如果存在多个点，分割成单个的点, 不考虑多个x对应一个y的情况
   * 单点则补上y0点
   */
getDefaultPoints:function(e){var t=[],n=e.x,i=e.y,a=e.y0;return i=r.isArray(i)?i:[a,i],r.each(i,(function(e){t.push({x:n,y:e})})),t},
// 获取激活的图形属性
getActiveCfg:function(e,t){return function(e,t){if("line"===e||"smoothLine"===e)return{lineWidth:(t.lineWidth||0)+1};var n=t.fillOpacity||t.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}// 当只有一个数据时绘制点
(e,t)},drawShape:function(e,t,n){var i,a=this.getShape(e);return i=1===t.points.length&&s.showSinglePoint?function(e,t,n){var i=e._coord.convertPoint(t.points[0][1]);return n.addShape("circle",{attrs:r.mix({x:i.x,y:i.y,r:2,fill:t.color},t.style)})}(this,t,n):a.draw(t,n),i&&(i.set("origin",t.origin),i._id=t.splitedIndex?t._id+t.splitedIndex:t._id,i.name=this.name),i},getSelectedCfg:function(e,t){return t&&t.style?t.style:this.getActiveCfg(e,t)}});// 默认：填充区域图
i.registerShape("area","area",{draw:function(e,t){var n=l(e),i=u(e,!1,this);// path = this.parsePath(path, false);
return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return h(e)}}),// 填充平滑区域图
i.registerShape("area","smooth",{draw:function(e,t){var n=l(e),i=this._coord;// 曲线的限制
e.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=u(e,!0,this);// path = this.parsePath(path, false);
return t.addShape("path",{attrs:r.mix(n,{path:a})})},getMarkerCfg:function(e){return h(e)}}),// 封闭的折线
i.registerShape("area","line",{draw:function(e,t){var n=c(e),i=u(e,!1,this);// path = this.parsePath(path, false);
return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return h(e)}}),// 封闭的平滑线
i.registerShape("area","smoothLine",{draw:function(e,t){var n=c(e),i=u(e,!0,this);return t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return h(e)}}),f.spline=f.smooth,e.exports=f},
/* 462 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview 边，用于关系图的边
 * @author dxq613@gmail.com
 */var i=n(23);n(463);var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */
i.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="edge",t.shapeType="edge",t.generatePoints=!0,t},i}(i);i.Edge=a,e.exports=a},
/* 463 */
/***/function(e,t,n){
/**
 * @fileOverview 边的 shape
 * @author dxq613@gmail.com
 */
var r=n(0),i=n(21),a=n(57),o=n(8),s=n(25),c=1/3;function l(e){var t=o.shape.edge,n=r.mix({},t,e.style);return a.addStrokeAttrs(n,e),e.size&&(n.lineWidth=e.size),n}var u=i.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(e){return a.splitPoints(e)},getActiveCfg:function(e,t){return{lineWidth:(t.lineWidth||0)+1}}});function h(e,t){var n=[];n.push({x:e.x,y:.5*e.y+1*t.y/2}),n.push({y:.5*e.y+1*t.y/2,x:t.x}),n.push(t);var i=["C"];return r.each(n,(function(e){i.push(e.x,e.y)})),i}function f(e,t){var n=[];n.push({x:t.x,y:t.y}),n.push(e);var i=["Q"];return r.each(n,(function(e){i.push(e.x,e.y)})),i}i.registerShape("edge","line",{draw:function(e,t){var n=this.parsePoints(e.points),i=l(e),a=s.getLinePath(n);return t.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4.5},l(e))}}),i.registerShape("edge","vhv",{draw:function(e,t){var n=e.points,i=l(e),a=function(e,t){var n=[];n.push({y:e.y*(1-c)+t.y*c,x:e.x}),n.push({y:e.y*(1-c)+t.y*c,x:t.x}),n.push(t);var i=[["M",e.x,e.y]];return r.each(n,(function(e){i.push(["L",e.x,e.y])})),i}(n[0],n[1]);return a=this.parsePath(a),t.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4.5},l(e))}}),i.registerShape("edge","smooth",{draw:function(e,t){var n=e.points,i=l(e),a=function(e,t){var n=h(e,t),r=[["M",e.x,e.y]];return r.push(n),r}(n[0],n[1]);return a=this.parsePath(a),t.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4.5},l(e))}}),//  弧线包括笛卡尔坐标系下的半圆弧线、极坐标系下以圆心为控制点的二阶曲线、笛卡尔坐标系下带权重的三阶曲线、极坐标系下带权重的以圆心为控制点的二阶曲线
i.registerShape("edge","arc",{draw:function(e,t){var n,i,a=e.points,o=a.length>2?"weight":"normal",s=l(e);if(e.isInCircle){var c={x:0,y:1};"normal"===o?i=function(e,t,n){var r=f(t,n),i=[["M",e.x,e.y]];return i.push(r),i}(a[0],a[1],c):(s.fill=s.stroke,i=function(e,t){var n=f(e[1],t),r=f(e[3],t),i=[["M",e[0].x,e[0].y]];return i.push(r),i.push(["L",e[3].x,e[3].y]),i.push(["L",e[2].x,e[2].y]),i.push(n),i.push(["L",e[1].x,e[1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]),i}(a,c)),i=this.parsePath(i),n=t.addShape("path",{attrs:r.mix(s,{path:i})})}else if("normal"===o)a=this.parsePoints(a),n=t.addShape("arc",{attrs:r.mix(s,{x:(a[1].x+a[0].x)/2,y:a[0].y,r:Math.abs(a[1].x-a[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{i=[["M",a[0].x,a[0].y],["L",a[1].x,a[1].y]];var u=h(a[1],a[3]),d=h(a[2],a[0]);i.push(u),i.push(["L",a[3].x,a[3].y]),i.push(["L",a[2].x,a[2].y]),i.push(d),i.push(["Z"]),i=this.parsePath(i),s.fill=s.stroke,n=t.addShape("path",{attrs:r.mix(s,{path:i})})}return n},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4.5},l(e))}}),e.exports=u},
/* 464 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview heatmap
 * @author leungwensen@gmail.com
 */var i=n(104).ColorUtil,a=n(23),o=n(0),s="_origin",c="shadowCanvas",l="valueRange",u="imageShape",h="mappedData",f="grayScaleBlurredCanvas",d="heatmapSize",p=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var p=a.prototype;
/**
   * get default configuration
   * @protected
   * @return {Object} configuration
   */return p.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);// cfg.shapeType = 'heatmap';
return t.type="heatmap",t.paletteCache={},t},p._prepareRange=function(){var e=this,t=e.get(h),n=e.getAttr("color").field,r=1/0,i=-1/0;t.forEach((function(e){var t=e[s][n];t>i&&(i=t),t<r&&(r=t)})),r===i&&(r=i-1);var a=[r,i];e.set(l,a)},p._prepareSize=function(){var e=this,t=e.getDefaultValue("size");o.isNumber(t)||(t=e._getDefaultSize());var n=e.get("styleOptions"),r=n&&o.isObject(n.style)?n.style.blur:null;o.isFinite(r)&&null!==r||(r=t/2),e.set(d,{blur:r,radius:t})},p._getDefaultSize=function(){var e=this.getAttr("position"),t=this.get("coord");return Math.min(t.width/(4*e.scales[0].ticks.length),t.height/(4*e.scales[1].ticks.length))},p._colorize=function(e){for(var t=this.getAttr("color"),n=e.data,r=this.get("paletteCache"),a=3;a<n.length;a+=4){var o=n[a];// get gradient color from opacity value
if(o){var s=void 0;r[o]?s=r[o]:(s=i.rgb2arr(t.gradient(o/256)),r[o]=s),// const palette = colorUtil.rgb2arr(colorAttr.gradient(alpha / 256));
n[a-3]=s[0],n[a-2]=s[1],n[a-1]=s[2],n[a]=o}}},p._prepareGreyScaleBlurredCircle=function(e,t){var n=this.get(f);n||(n=document.createElement("canvas"),this.set(f,n));var r=e+t,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),// ctx.shadowOffsetX = ctx.shadowOffsetY = r2 * 2;
i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=t,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,e,0,2*Math.PI,!0),i.closePath(),i.fill()},p._drawGrayScaleBlurredCircle=function(e,t,n,r,i){var a=this.get(f);i.globalAlpha=r,i.drawImage(a,e-n,t-n)},p._getShadowCanvasCtx=function(){var e=this,t=e.get(c);t||(t=document.createElement("canvas"),e.set(c,t));var n=e.get("coord");return n&&(t.width=n.width,t.height=n.height),t.getContext("2d")},p._clearShadowCanvasCtx=function(){var e=this._getShadowCanvasCtx();e.clearRect(0,0,e.canvas.width,e.canvas.height)},p._getImageShape=function(){var e=this,t=e.get(u);return t||(t=e.get("container").addShape("Image",{}),e.set(u,t),t)},p.clear=function(){
// @2019-02-28 by blue.lb 由于设置了SHADOW_CANVAS作为像素缓存canvas，每次销毁chart时，也需要清除该缓冲区
this._clearShadowCanvasCtx(),e.prototype.clear.call(this)},p.drawWithRange=function(e){var t=this,n=t.get("coord"),r=n.start,i=n.end,a=n.width,o=n.height,c=t.getAttr("color").field,l=t.get(d);// canvas size
// prepare shadow canvas context
t._clearShadowCanvasCtx();var u=t._getShadowCanvasCtx(),f=t.get(h);// filter data
e&&(f=f.filter((function(t){return t[s][c]<=e[1]&&t[s][c]>=e[0]})));// step1. draw points with shadow
for(var p=t._getScale(c),g=0;g<f.length;g++){var m=f[g],v=t.getDrawCfg(m),y=p.scale(m[s][c]);t._drawGrayScaleBlurredCircle(v.x-r.x,v.y-i.y,l.radius+l.blur,y,u)}// step2. convert pixels
var A=u.getImageData(0,0,a,o);t._clearShadowCanvasCtx(),t._colorize(A),u.putImageData(A,0,0);var b=t._getImageShape();b.attr("x",r.x),b.attr("y",i.y),b.attr("width",a),b.attr("height",o),b.attr("img",u.canvas)},p.draw=function(e
/* , container, shapeFactory, index */){var t=this;t.set(h,e),t._prepareRange(),t._prepareSize();var n=t.get(d);t._prepareGreyScaleBlurredCircle(n.radius,n.blur);var r=t.get(l);t.drawWithRange(r)},a}(a);// TODO: ColorUtil 独立成包，从 attr 包中抽离
a.Heatmap=p,e.exports=p},
/* 465 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview 多边形
 * @author dxq613@gmail.com
 */var i=n(23),a=n(0);n(466);var o=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=i.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="polygon",t.shapeType="polygon",t.generatePoints=!0,t},o.createShapePointsCfg=function(t){var n,r=e.prototype.createShapePointsCfg.call(this,t),i=r.x,o=r.y;if(!a.isArray(i)||!a.isArray(o)){
// x y 都是数组时，不做处理
var s=this.getXScale(),c=this.getYScale(),l=.5/(s.values?s.values.length:s.ticks.length),u=.5/(c.values?c.values.length:c.ticks.length);s.isCategory&&c.isCategory?(
// 如果x,y都是分类
i=[i-l,i-l,i+l,i+l],o=[o-u,o+u,o+u,o-u]):a.isArray(i)?(
// x 是数组
i=[(n=i)[0],n[0],n[1],n[1]],o=[o-u/2,o+u/2,o+u/2,o-u/2]):a.isArray(o)&&(
// y 是数组
o=[(n=o)[0],n[1],n[1],n[0]],i=[i-l/2,i-l/2,i+l/2,i+l/2]),r.x=i,r.y=o}return r},i}(i);i.Polygon=o,e.exports=o},
/* 466 */
/***/function(e,t,n){
/**
 * @fileOverview line shapes
 * @author dxq613@gmail.com
 * @author sima.zhang1990@gmail.com
 * @author huangtonger@aliyun.com
 # @author liuye10@yahoo.com
 */
var r=n(0),i=n(21),a=n(57),o=n(8);function s(e){var t=o.shape.polygon,n=r.mix({},t,e.style);return a.addFillAttrs(n,e),n}function c(e){for(var t=e[0],n=1,i=[["M",t.x,t.y]];n<e.length;){var a=e[n];a.x===e[n-1].x&&a.y===e[n-1].y||(i.push(["L",a.x,a.y]),a.x===t.x&&a.y===t.y&&n<e.length-1&&(t=e[n+1],i.push(["Z"]),i.push(["M",t.x,t.y]),n++)),n++}return r.isEqual(i[i.length-1],t)||i.push(["L",t.x,t.y]),i.push(["Z"]),i}// regist line geom
var l=i.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(e){var t=[];return r.each(e.x,(function(n,r){var i=e.y[r];t.push({x:n,y:i})})),t},getActiveCfg:function(e,t){var n=t.lineWidth||1;return"hollow"===e?{lineWidth:n+1}:{
// lineWidth,
fillOpacity:(t.fillOpacity||t.opacity||1)-.08}},getSelectedCfg:function(e,t){return t&&t.style?t.style:this.getActiveCfg(e,t)}});i.registerShape("polygon","polygon",{draw:function(e,t){if(!r.isEmpty(e.points)){var n=s(e),i=c(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})}},getMarkerCfg:function(e){return r.mix({symbol:"square",radius:4},s(e))}}),i.registerShape("polygon","hollow",{draw:function(e,t){if(!r.isEmpty(e.points)){var n=function(e){var t=o.shape.hollowPolygon,n=r.mix({},t,e.style);return a.addStrokeAttrs(n,e),n}(e),i=c(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})}},getMarkerCfg:function(e){return r.mix({symbol:"square",radius:4},s(e))}}),e.exports=l},
/* 467 */
/***/function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}
/**
 * @fileOverview 自定义图形
 * @author dxq613@gmail.com
 */var a=n(23),o=n(0),s=n(415);n(468);var c=function(e){r(n,e);var t=n.prototype;
/**
   * 获取默认的配置属性
   * @protected
   * @return {Object} 默认属性
   */function n(t){var n;return n=e.call(this,t)||this,o.assign(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),s),n}return t.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="schema",t.shapeType="schema",t.generatePoints=!0,t},t.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t);return n.size=this.getNormalizedSize(t),n},t.clearInner=function(){e.prototype.clearInner.call(this),this.set("defaultSize",null)},n}(a),l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"dodge"}],t},t}(c);c.Dodge=l,a.Schema=c,a.SchemaDodge=l,e.exports=c},
/* 468 */
/***/function(e,t,n){
/**
 * @fileOverview 自定义的 shape
 * @author dxq613@gmail.com
 * @author sima.zhang1990@gmail.com
 */
var r=n(0),i=n(21),a=n(57),o=n(8);function s(e){r.isArray(e)||(e=[e]);var t=e[0],n=e[e.length-1],i=e.length>1?e[1]:t;// 最小值
return{min:t,
// 最小值
max:n,
// 最大值
min1:i,max1:e.length>3?e[3]:n,median:e.length>2?e[2]:i}}function c(e,t,n){var i,a,o,c,l=[];return r.isArray(t)?i=[[e-n/2,(
// 2维
a=s(t)).max],[e+n/2,a.max],[e,a.max],[e,a.max1],[e-n/2,a.min1],[e-n/2,a.max1],[e+n/2,a.max1],[e+n/2,a.min1],[e,a.min1],[e,a.min],[e-n/2,a.min],[e+n/2,a.min],[e-n/2,a.median],[e+n/2,a.median]]:(
// 只有一个维度
t=t||.5,i=[[(a=s(e)).min,t-n/2],[a.min,t+n/2],[a.min,t],[a.min1,t],[a.min1,t-n/2],[a.min1,t+n/2],[a.max1,t+n/2],[a.max1,t-n/2],[a.max1,t],[a.max,t],[a.max,t-n/2],[a.max,t+n/2],[a.median,t-n/2],[a.median,t+n/2]]),o=i,c=l,r.each(o,(function(e){c.push({x:e[0],y:e[1]})})),l}// 获取K线图的points
function l(e,t,n){var i=function(e){r.isArray(e)||(e=[e]);// 从大到小排序
var t=e.sort((function(e,t){return e<t?1:-1})),n=t.length;if(n<4)for(var i=t[n-1],a=0;a<4-n;a++)t.push(i);return t}(t);// 按照顺时针连接
return[{x:e,y:i[0]},{x:e,y:i[1]},{x:e-n/2,y:i[2]},{x:e-n/2,y:i[1]},{x:e+n/2,y:i[1]},{x:e+n/2,y:i[2]},{x:e,y:i[2]},{x:e,y:i[3]}]}var u=i.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(e,t){if("box"===e)return{lineWidth:(t.lineWidth||1)+1};var n=t.fillOpacity||t.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}},getSelectedCfg:function(e,t){return t&&t.style?t.style:this.getActiveCfg(e,t)}});// 箱线图
i.registerShape("schema","box",{getPoints:function(e){return c(e.x,e.y,e.size)},draw:function(e,t){var n,i=function(e){var t=o.shape.schema,n=r.mix({},t,e.style);return a.addStrokeAttrs(n,e),n}(e),s=[["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],// 封闭 z
["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]];return s=this.parsePath(s),t.addShape("path",{attrs:r.mix(i,{path:s})})},getMarkerCfg:function(e){return{symbol:function(e,t,n){var r=c(e,[t-6,t-3,t,t+3,t+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},radius:6,lineWidth:1,stroke:e.color}}}),// K线
i.registerShape("schema","candle",{getPoints:function(e){return l(e.x,e.y,e.size)},draw:function(e,t){var n,i=function(e){var t=o.shape.schema,n=r.mix({},t,e.style);return a.addFillAttrs(n,e),e.color&&(n.stroke=e.color||n.stroke),n}(e),s=[["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]];return s=this.parsePath(s),t.addShape("path",{attrs:r.mix(i,{path:s})})},getMarkerCfg:function(e){return{symbol:function(e,t,n){var r=l(e,t=[t+7.5,t+3,t-3,t-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},lineWidth:1,stroke:e.color,fill:e.color,radius:6}}}),e.exports=u},
/* 469 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview Venn Diagram
 * @author leungwensen@gmail.com
 */var i=n(23),a=n(0),o=n(470),s=o.venn,c=o.scaleSolution,l=o.circlePath,u=o.intersectionAreaPath,h=o.computeTextCentres;n(544);var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=i.prototype;
/**
   * get default configuration
   * @protected
   * @return {Object} configuration
   */return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);// super.draw(data, container, shapeFactory, index);
return t.type="venn",t.shapeType="venn",t.generatePoints=!1,t},o._getAttrValues=function(t,n){return"position"===t.type?[n.x,n.y]:e.prototype._getAttrValues.call(this,t,n)},o.sets=function(e){return this.set("setsField",e),this},o._initAttrs=function(){var t=this;e.prototype._initAttrs.call(this);var n=t.get("attrOptions"),r=t.get("setsField")||"sets",i=t.get("data"),o=n.size?n.size.field:"size";// prepare data
i.forEach((function(e){e.sets=e[r],e._sets=e[r].join("&"),e.size=e[o]}));var f=s(i),d=t.get("coord"),p=[Math.min(d.x.end,d.x.start),Math.max(d.x.end,d.x.start)],g=[Math.min(d.y.end,d.y.start),Math.max(d.y.end,d.y.start)],m=p[1]-p[0],v=g[1]-g[0],y=t.get("styleOptions"),A=y&&a.isObject(y.style)?y.style.padding:0;// scaling
a.isFinite(A)||(A=0);var b=c(f,m,v,A),w=h(b,i);i.forEach((function(e){var t=e.sets,n=t.join(",");if(e.id=n,1===t.length){var r=b[n];e.path=l(r.x,r.y,r.radius),a.assign(e,r)}else{var i=t.map((function(e){return b[e]})),o=u(i);/[zZ]$/.test(o)||(o+="Z"),e.path=o;var s=w[n]||{x:0,y:0};a.assign(e,s)}}))}// createShapePointsCfg(obj) {
//   const xScale = this.getXScale();
//   const yScale = this.getYScale();
//   return {
//     x: obj[xScale.field],
//     y: obj[yScale.field],
//     y0: yScale ? yScale.scale(this.getYMinValue()) : undefined
//   };
// }
// paint() {
//   super.paint();
//   const self = this;
//   const dataArray = self.get('dataArray');
//   const shapeContainer = self.get('shapeContainer');
//   // add labels
//   dataArray.forEach(row => {
//     const cfg = self.getDrawCfg(row[0]);
//     const origin = cfg.origin._origin;
//     shapeContainer.addShape('text', {
//       attrs: Util.mix({}, {
//         x: origin.x,
//         y: origin.y,
//         text: origin.label || '',
//         fontSize: 18,
//         fill: cfg.shape === 'hollow' ? cfg.color : '#666',
//         textAlign: 'center',
//         textBaseline: 'middle'
//       }, cfg.style ? cfg.style.textStyle : {})
//     });
//   });
// }
,i}(i);i.Venn=f,e.exports=f},
/* 470 */
/***/function(e,t,n){!function(e,t){"use strict";var n=1e-10;
/** Returns the intersection area of a bunch of circles (where each circle
   is an object having an x,y and radius property) */function r(e,t){
// get all the intersection points of the circles
var r,c=a(e),l=c.filter((function(t){return i(t,e)})),h=0,f=0,d=[];// filter out points that aren't included in all the circles
// if we have intersection points that are within all the circles,
// then figure out the area contained by them
if(l.length>1){
// sort the points by angle from the center of the polygon, which lets
// us just iterate over points to get the edges
var p=u(l);for(r=0;r<l.length;++r){var g=l[r];g.angle=Math.atan2(g.x-p.x,g.y-p.y)}l.sort((function(e,t){return t.angle-e.angle}));// iterate over all points, get arc between the points
// and update the areas
var m=l[l.length-1];for(r=0;r<l.length;++r){var v=l[r];// polygon area updates easily ...
f+=(m.x+v.x)*(v.y-m.y);for(// updating the arc area is a little more involved
var y={x:(v.x+m.x)/2,y:(v.y+m.y)/2},A=null,b=0;b<v.parentIndex.length;++b)if(m.parentIndex.indexOf(v.parentIndex[b])>-1){
// figure out the angle halfway between the two points
// on the current circle
var w=e[v.parentIndex[b]],x=Math.atan2(v.x-w.x,v.y-w.y),C=Math.atan2(m.x-w.x,m.y-w.y),_=C-x;_<0&&(_+=2*Math.PI);// and use that angle to figure out the width of the
// arc
var I=C-_/2,E=s(y,{x:w.x+w.radius*Math.sin(I),y:w.y+w.radius*Math.cos(I)});// clamp the width to the largest is can actually be
// (sometimes slightly overflows because of FP errors)
E>2*w.radius&&(E=2*w.radius),// pick the circle whose arc has the smallest width
(null===A||A.width>E)&&(A={circle:w,width:E,p1:v,p2:m})}null!==A&&(d.push(A),h+=o(A.circle.radius,A.width),m=v)}}else{
// no intersection points, is either disjoint - or is completely
// overlapped. figure out which by examining the smallest circle
var k=e[0];for(r=1;r<e.length;++r)e[r].radius<k.radius&&(k=e[r]);// make sure the smallest circle is completely contained in all
// the other circles
var S=!1;for(r=0;r<e.length;++r)if(s(e[r],k)>Math.abs(k.radius-e[r].radius)){S=!0;break}S?h=f=0:(h=k.radius*k.radius*Math.PI,d.push({circle:k,p1:{x:k.x,y:k.y+k.radius},p2:{x:k.x-n,y:k.y+k.radius},width:2*k.radius}))}return f/=2,t&&(t.area=h+f,t.arcArea=h,t.polygonArea=f,t.arcs=d,t.innerPoints=l,t.intersectionPoints=c),h+f}
/** returns whether a point is contained by all of a list of circles */function i(e,t){for(var r=0;r<t.length;++r)if(s(e,t[r])>t[r].radius+n)return!1;return!0}
/** Gets all intersection points between a bunch of circles */function a(e){for(var t=[],n=0;n<e.length;++n)for(var r=n+1;r<e.length;++r)for(var i=l(e[n],e[r]),a=0;a<i.length;++a){var o=i[a];o.parentIndex=[n,r],t.push(o)}return t}
/** Circular segment area calculation. See http://mathworld.wolfram.com/CircularSegment.html */function o(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}
/** euclidean distance between two points */function s(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}
/** Returns the overlap area of two circles of radius r1 and r2 - that
  have their centers separated by distance d. Simpler faster
  circle intersection for only two circles */function c(e,t,n){
// no overlap
if(n>=e+t)return 0;// completely overlapped
if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var r=t-(n*n-e*e+t*t)/(2*n);return o(e,e-(n*n-t*t+e*e)/(2*n))+o(t,r)}
/** Given two circles (containing a x/y/radius attributes),
  returns the intersecting points if possible.
  note: doesn't handle cases where there are infinitely many
  intersection points (circles are equivalent):, or only one intersection point*/function l(e,t){var n=s(e,t),r=e.radius,i=t.radius;// if to far away, or self contained - can't be done
if(n>=r+i||n<=Math.abs(r-i))return[];var a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),c=e.x+a*(t.x-e.x)/n,l=e.y+a*(t.y-e.y)/n,u=-(t.y-e.y)*(o/n),h=-(t.x-e.x)*(o/n);return[{x:c+u,y:l-h},{x:c-u,y:l+h}]}
/** Returns the center of a bunch of points */function u(e){for(var t={x:0,y:0},n=0;n<e.length;++n)t.x+=e[n].x,t.y+=e[n].y;return t.x/=e.length,t.y/=e.length,t}
/** finds the zeros of a function, given two starting points (which must
   * have opposite signs */function h(e,t,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),c=n-t;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return t;if(0===s)return n;for(var l=0;l<i;++l){var u=t+(c/=2),h=e(u);if(h*o>=0&&(t=u),Math.abs(c)<a||0===h)return u}return t+c}// need some basic operations on vectors, rather than adding a dependency,
// just define here
function f(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function d(e,t){return f(e).map((function(){return f(t)}))}function p(e,t){for(var n=0,r=0;r<e.length;++r)n+=e[r]*t[r];return n}function g(e){return Math.sqrt(p(e,e))}function m(e,t,n){for(var r=0;r<t.length;++r)e[r]=t[r]*n}function v(e,t,n,r,i){for(var a=0;a<e.length;++a)e[a]=t*n[a]+r*i[a]}
/** minimizes a function using the downhill simplex method */function y(e,t,n){var r,i=(n=n||{}).maxIterations||200*t.length,a=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,s=n.minErrorDelta||1e-6,c=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,u=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,d=t.length,p=new Array(d+1);// initialize simplex.
p[0]=t,p[0].fx=e(t),p[0].id=0;for(var g=0;g<d;++g){var m=t.slice();m[g]=m[g]?m[g]*a:o,p[g+1]=m,p[g+1].fx=e(m),p[g+1].id=g+1}function y(e){for(var t=0;t<e.length;t++)p[d][t]=e[t];p[d].fx=e.fx}for(var A=function(e,t){return e.fx-t.fx},b=t.slice(),w=t.slice(),x=t.slice(),C=t.slice(),_=0;_<i;++_){if(p.sort(A),n.history){
// copy the simplex (since later iterations will mutate) and
// sort it to have a consistent order between iterations
var I=p.map((function(e){var t=e.slice();return t.fx=e.fx,t.id=e.id,t}));I.sort((function(e,t){return e.id-t.id})),n.history.push({x:p[0].slice(),fx:p[0].fx,simplex:I})}for(r=0,g=0;g<d;++g)r=Math.max(r,Math.abs(p[0][g]-p[1][g]));if(Math.abs(p[0].fx-p[d].fx)<s&&r<c)break;// compute the centroid of all but the worst point in the simplex
for(g=0;g<d;++g){b[g]=0;for(var E=0;E<d;++E)b[g]+=p[E][g];b[g]/=d}// reflect the worst point past the centroid  and compute loss at reflected
// point
var k=p[d];// if the reflected point is the best seen, then possibly expand
if(v(w,1+l,b,-l,k),w.fx=e(w),w.fx<p[0].fx)v(C,1+u,b,-u,k),C.fx=e(C),C.fx<w.fx?y(C):y(w);else if(w.fx>=p[d-1].fx){var S=!1;if(w.fx>k.fx?(
// do an inside contraction
v(x,1+h,b,-h,k),x.fx=e(x),x.fx<k.fx?y(x):S=!0):(
// do an outside contraction
v(x,1-h*l,b,h*l,k),x.fx=e(x),x.fx<w.fx?y(x):S=!0),S){
// if we don't contract here, we're done
if(f>=1)break;// do a reduction
for(g=1;g<p.length;++g)v(p[g],1-f,p[0],f,p[g]),p[g].fx=e(p[g])}}else y(w)}return p.sort(A),{fx:p[0].fx,x:p[0]}}/// searches along line 'pk' for a point that satifies the wolfe conditions
/// See 'Numerical Optimization' by Nocedal and Wright p59-60
/// f : objective function
/// pk : search direction
/// current: object containing current gradient/loss
/// next: output: contains next gradient/loss
/// returns a: step size taken
function A(e,t,n,r,i,a,o){var s=n.fx,c=p(n.fxprime,t),l=s,u=s,h=c,f=0;function d(u,f,d){for(var g=0;g<16;++g)if(i=(u+f)/2,v(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),h=p(r.fxprime,t),l>s+a*i*c||l>=d)f=i;else{if(Math.abs(h)<=-o*c)return i;h*(f-u)>=0&&(f=u),u=i,d=l}return 0}i=i||1,a=a||1e-6,o=o||.1;for(var g=0;g<10;++g){if(v(r.x,1,n.x,i,t),l=r.fx=e(r.x,r.fxprime),h=p(r.fxprime,t),l>s+a*i*c||g&&l>=u)return d(f,i,u);if(Math.abs(h)<=-o*c)return i;if(h>=0)return d(i,f,l);u=l,f=i,i*=2}return i}function b(e,t,n){
// allocate all memory up front here, keep out of the loop for perfomance
// reasons
var r,i,a,o={x:t.slice(),fx:0,fxprime:t.slice()},s={x:t.slice(),fx:0,fxprime:t.slice()},c=t.slice(),l=1;a=(n=n||{}).maxIterations||20*t.length,o.fx=e(o.x,o.fxprime),m(r=o.fxprime.slice(),o.fxprime,-1);for(var u=0;u<a;++u){if(l=A(e,r,o,s,l),// todo: history in wrong spot?
n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:l}),l){
// update direction using Polak–Ribiere CG method
v(c,1,s.fxprime,-1,o.fxprime);var h=p(o.fxprime,o.fxprime);v(r,Math.max(0,p(c,s.fxprime)/h),r,-1,s.fxprime),i=o,o=s,s=i}else
// faiiled to find point that satifies wolfe conditions.
// reset direction for next iteration
m(r,o.fxprime,-1);if(g(o.fxprime)<=1e-5)break}return n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:l}),o}
/** given a list of set objects, and their corresponding overlaps.
  updates the (x, y, radius) attribute on each set such that their positions
  roughly correspond to the desired overlaps */function w(e,t){(t=t||{}).maxIterations=t.maxIterations||500;var n,r=t.initialLayout||k,i=t.lossFunction||M,a=r(// add in missing pairwise areas as having 0 size
e=_(e),t),o=[],s=[];for(n in a)a.hasOwnProperty(n)&&(o.push(a[n].x),o.push(a[n].y),s.push(n));// optimize initial layout from our loss function
for(var c=y((function(t){for(var n={},r=0;r<s.length;++r){var o=s[r];n[o]={x:t[2*r],y:t[2*r+1],radius:a[o].radius}}return i(n,e)}),o,t),l=c.x,u=0// transform solution vector back to x/y points
;u<s.length;++u)n=s[u],a[n].x=l[2*u],a[n].y=l[2*u+1];return a}var x=1e-10;
/** Returns the distance necessary for two circles of radius r1 + r2 to
  have the overlap area 'overlap' */function C(e,t,n){
// handle complete overlapped circles
return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+x?Math.abs(e-t):h((function(r){return c(e,t,r)-n}),0,e+t)}
/** Missing pair-wise intersection area data can cause problems:
   treating as an unknown means that sets will be laid out overlapping,
   which isn't what people expect. To reflect that we want disjoint sets
   here, set the overlap to 0 for all missing pairwise set intersections */function _(e){e=e.slice();// two circle intersections that aren't defined
var t,n,r,i,a=[],o={};for(t=0;t<e.length;++t){var s=e[t];1==s.sets.length?a.push(s.sets[0]):2==s.sets.length&&(o[[r=s.sets[0],i=s.sets[1]]]=!0,o[[i,r]]=!0)}for(a.sort((function(e,t){return e>t})),t=0;t<a.length;++t)for(r=a[t],n=t+1;n<a.length;++n)[r,i=a[n]]in o||e.push({sets:[r,i],size:0});return e}/// Returns two matrices, one of the euclidean distances between the sets
/// and the other indicating if there are subset or disjoint set relationships
function I(e,t,n){
// initialize an empty distance matrix between all the points
var r=d(t.length,t.length),i=d(t.length,t.length);// compute required distances between all the sets such that
// the areas match
return e.filter((function(e){return 2==e.sets.length})).map((function(e){var a=n[e.sets[0]],o=n[e.sets[1]],s=C(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;// also update constraints to indicate if its a subset or disjoint
// relationship
var c=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?c=1:e.size<=1e-10&&(c=-1),i[a][o]=i[o][a]=c})),{distances:r,constraints:i}}/// computes the gradient and loss simulatenously for our constrained MDS optimizer
function E(e,t,n,r){var i,a=0;for(i=0;i<t.length;++i)t[i]=0;for(i=0;i<n.length;++i)for(var o=e[2*i],s=e[2*i+1],c=i+1;c<n.length;++c){var l=e[2*c],u=e[2*c+1],h=n[i][c],f=r[i][c],d=(l-o)*(l-o)+(u-s)*(u-s),p=Math.sqrt(d),g=d-h*h;f>0&&p<=h||f<0&&p>=h||(a+=2*g*g,t[2*i]+=4*g*(o-l),t[2*i+1]+=4*g*(s-u),t[2*c]+=4*g*(l-o),t[2*c+1]+=4*g*(u-s))}return a}/// takes the best working variant of either constrained MDS or greedy
function k(e,t){var n=B(e,t),r=t.lossFunction||M;// greedylayout is sufficient for all 2/3 circle cases. try out
// constrained MDS for higher order problems, take its output
// if it outperforms. (greedy is aesthetically better on 2/3 circles
// since it axis aligns)
if(e.length>=8){var i=S(e,t);r(i,e)+1e-8<r(n,e)&&(n=i)}return n}/// use the constrained MDS variant to generate an initial layout
function S(e,t){var n,r=(t=t||{}).restarts||10,i=[],a={};// bidirectionally map sets to a rowid  (so we can create a matrix)
for(n=0;n<e.length;++n){var o=e[n];1==o.sets.length&&(a[o.sets[0]]=i.length,i.push(o))}var s=I(e,i,a),c=s.distances,l=s.constraints,u=g(c.map(g))/c.length;// keep distances bounded, things get messed up otherwise.
// TODO: proper preconditioner?
c=c.map((function(e){return e.map((function(e){return e/u}))}));var h,d,p=function(e,t){return E(e,t,c,l)};for(n=0;n<r;++n)d=b(p,f(2*c.length).map(Math.random),t),(!h||d.fx<h.fx)&&(h=d);var v=h.x,y={};// translate rows back to (x,y,radius) coordinates
for(n=0;n<i.length;++n){var A=i[n];y[A.sets[0]]={x:v[2*n]*u,y:v[2*n+1]*u,radius:Math.sqrt(A.size/Math.PI)}}if(t.history)for(n=0;n<t.history.length;++n)m(t.history[n].x,u);return y}
/** Lays out a Venn diagram greedily, going from most overlapped sets to
  least overlapped, attempting to position each new set such that the
  overlapping areas to already positioned sets are basically right */function B(e,t){for(var n,r=t&&t.lossFunction?t.lossFunction:M,i={},a={},o=0// define a circle for each set
;o<e.length;++o){var s=e[o];1==s.sets.length&&(n=s.sets[0],i[n]={x:1e10,y:1e10,rowid:i.length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},a[n]=[])}// map each set to a list of all the other sets that overlap it
for(e=e.filter((function(e){return 2==e.sets.length})),o=0;o<e.length;++o){var c=e[o],u=c.hasOwnProperty("weight")?c.weight:1,h=c.sets[0],f=c.sets[1];// completely overlapped circles shouldn't be positioned early here
c.size+x>=Math.min(i[h].size,i[f].size)&&(u=0),a[h].push({set:f,size:c.size,weight:u}),a[f].push({set:h,size:c.size,weight:u})}// get list of most overlapped sets
var d=[];for(n in a)if(a.hasOwnProperty(n)){var p=0;for(o=0;o<a[n].length;++o)p+=a[n][o].size*a[n][o].weight;d.push({set:n,size:p})}// sort by size desc
function g(e,t){return t.size-e.size}d.sort(g);// keep track of what sets have been laid out
var m={};function v(e){return e.set in m}// adds a point to the output
function y(e,t){i[t].x=e.x,i[t].y=e.y,m[t]=!0}// add most overlapped set at (0,0)
// get distances between all points. TODO, necessary?
// answer: probably not
// var distances = venn.getDistanceMatrices(circles, areas).distances;
for(y({x:0,y:0},d[0].set),o=1;o<d.length;++o){var A=d[o].set,b=a[A].filter(v);if(n=i[A],b.sort(g),0===b.length)
// this shouldn't happen anymore with addMissingAreas
throw"ERROR: missing pairwise overlap information";for(var w=[],_=0;_<b.length;++_){
// get appropriate distance from most overlapped already added set
var I=i[b[_].set],E=C(n.radius,I.radius,b[_].size);// sample positions at 90 degrees for maximum aesthetics
w.push({x:I.x+E,y:I.y}),w.push({x:I.x-E,y:I.y}),w.push({y:I.y+E,x:I.x}),w.push({y:I.y-E,x:I.x});// if we have at least 2 overlaps, then figure out where the
// set should be positioned analytically and try those too
for(var k=_+1;k<b.length;++k)for(var S=i[b[k].set],B=C(n.radius,S.radius,b[k].size),T=l({x:I.x,y:I.y,radius:E},{x:S.x,y:S.y,radius:B}),O=0;O<T.length;++O)w.push(T[O])}// we have some candidate positions for the set, examine loss
// at each position to figure out where to put it at
var D=1e50,P=w[0];for(_=0;_<w.length;++_){i[A].x=w[_].x,i[A].y=w[_].y;var L=r(i,e);L<D&&(D=L,P=w[_])}y(P,A)}return i}
/** Given a bunch of sets, and the desired overlaps between these sets - computes
  the distance from the actual overlaps to the desired overlaps. Note that
  this method ignores overlaps of more than 2 circles */function M(e,t){var n=0;function i(t){return t.map((function(t){return e[t]}))}for(var a=0;a<t.length;++a){var o,l=t[a];if(1!=l.sets.length){if(2==l.sets.length){var u=e[l.sets[0]],h=e[l.sets[1]];o=c(u.radius,h.radius,s(u,h))}else o=r(i(l.sets));n+=(l.hasOwnProperty("weight")?l.weight:1)*(o-l.size)*(o-l.size)}}return n}// orientates a bunch of circles to point in orientation
function T(e,t,n){var r;// shift circles so largest circle is at (0, 0)
if(null===n?e.sort((function(e,t){return t.radius-e.radius})):e.sort(n),e.length>0){var i=e[0].x,a=e[0].y;for(r=0;r<e.length;++r)e[r].x-=i,e[r].y-=a}// rotate circles so that second largest is at an angle of 'orientation'
// from largest
if(2==e.length&&s(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){var o,c,l=Math.atan2(e[1].x,e[1].y)-t,u=Math.cos(l),h=Math.sin(l);for(r=0;r<e.length;++r)o=e[r].x,c=e[r].y,e[r].x=u*o-h*c,e[r].y=h*o+u*c}// mirror solution if third solution is above plane specified by
// first two circles
if(e.length>2){for(var f=Math.atan2(e[2].x,e[2].y)-t;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var d=e[1].y/(1e-10+e[1].x);for(r=0;r<e.length;++r){var p=(e[r].x+d*e[r].y)/(1+d*d);e[r].x=2*p-e[r].x,e[r].y=2*p*d-e[r].y}}}}function O(e){// path compression step in union find
function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){var r=t(e),i=t(n);r.parent=i}// get the union of all overlapping sets
// union-find clustering to get disjoint sets
e.map((function(e){e.parent=e}));for(var r=0;r<e.length;++r)for(var i=r+1;i<e.length;++i){var a=e[r].radius+e[i].radius;s(e[r],e[i])+1e-10<a&&n(e[i],e[r])}// find all the disjoint clusters and group them together
var o,c={};for(r=0;r<e.length;++r)(o=t(e[r]).parent.setid)in c||(c[o]=[]),c[o].push(e[r]);// cleanup bookkeeping
e.map((function(e){delete e.parent}));// return in more usable form
var l=[];for(o in c)c.hasOwnProperty(o)&&l.push(c[o]);return l}function D(e){var t=function(t){return{max:Math.max.apply(null,e.map((function(e){return e[t]+e.radius}))),min:Math.min.apply(null,e.map((function(e){return e[t]-e.radius})))}};return{xRange:t("x"),yRange:t("y")}}function P(e,t,n){null===t&&(t=Math.PI/2);// work with a list instead of a dictionary, and take a copy so we
// don't mutate input
var r,i,a=[];for(i in e)if(e.hasOwnProperty(i)){var o=e[i];a.push({x:o.x,y:o.y,radius:o.radius,setid:i})}// get all the disjoint clusters
var s=O(a);// orientate all disjoint sets, get sizes
for(r=0;r<s.length;++r){T(s[r],t,n);var c=D(s[r]);s[r].size=(c.xRange.max-c.xRange.min)*(c.yRange.max-c.yRange.min),s[r].bounds=c}s.sort((function(e,t){return t.size-e.size}));var l=(// orientate the largest at 0,0, and get the bounds
a=s[0]).bounds,u=(l.xRange.max-l.xRange.min)/50;function h(e,t,n){if(e){var r,i,o,s=e.bounds;t?r=l.xRange.max-s.xRange.min+u:(r=l.xRange.max-s.xRange.max,(o=(s.xRange.max-s.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(r+=o)),n?i=l.yRange.max-s.yRange.min+u:(i=l.yRange.max-s.yRange.max,(o=(s.yRange.max-s.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(i+=o));for(var c=0;c<e.length;++c)e[c].x+=r,e[c].y+=i,a.push(e[c])}}for(var f=1;f<s.length;)h(s[f],!0,!1),h(s[f+1],!1,!0),h(s[f+2],!0,!0),f+=3,// have one cluster (in top left). lay out next three relative
// to it in a grid
l=D(a);// convert back to solution form
var d={};for(r=0;r<a.length;++r)d[a[r].setid]=a[r];return d}
/** Scales a solution from venn.venn or venn.greedyLayout such that it fits in
  a rectangle of width/height - with padding around the borders. also
  centers the diagram in the available space at the same time */function L(e,t,n,r){var i=[],a=[];for(var o in e)e.hasOwnProperty(o)&&(a.push(o),i.push(e[o]));t-=2*r,n-=2*r;var s=D(i),c=s.xRange,l=s.yRange;if(c.max==c.min||l.max==l.min)return e;for(var u=t/(c.max-c.min),h=n/(l.max-l.min),f=Math.min(h,u),
// while we're at it, center the diagram too
d=(t-(c.max-c.min)*f)/2,p=(n-(l.max-l.min)*f)/2,g={},m=0;m<i.length;++m){var v=i[m];g[a[m]]={radius:f*v.radius,x:r+d+(v.x-c.min)*f,y:r+p+(v.y-l.min)*f}}return g}
/*global console:true*/function Q(){var e=600,n=350,r=15,i=1e3,a=Math.PI/2,o=!0,s=!0,c=!0,l=null,u=null,
// mimic the behaviour of d3.scale.category10 from the previous
// version of d3
h={},
// so this is the same as d3.schemeCategory10, which is only defined in d3 4.0
// since we can support older versions of d3 as long as we don't force this,
// I'm hackily redefining below. TODO: remove this and change to d3.schemeCategory10
f=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],d=0,p=function(e){if(e in h)return h[e];var t=h[e]=f[d];return(d+=1)>=f.length&&(d=0),t},g=w,m=M;function v(h){var f=h.datum(),d={};// handle 0-sized sets by removing from input
f.forEach((function(e){0==e.size&&1==e.sets.length&&(d[e.sets[0]]=1)})),f=f.filter((function(e){return!e.sets.some((function(e){return e in d}))}));var v={},y={};if(f.length>0){var A=g(f,{lossFunction:m});o&&(A=P(A,a,u)),v=L(A,e,n,r),y=z(v,f)}// Figure out the current label for each set. These can change
// and D3 won't necessarily update (fixes https://github.com/benfred/venn.js/issues/103)
var b={};function w(e){return e.sets in b?b[e.sets]:1==e.sets.length?""+e.sets[0]:void 0}// create svg if not already existing
f.forEach((function(e){e.label&&(b[e.sets]=e.label)})),h.selectAll("svg").data([v]).enter().append("svg");var x=h.select("svg").attr("width",e).attr("height",n),C={},_=!1;// to properly transition intersection areas, we need the
// previous circles locations. load from elements
x.selectAll(".venn-area path").each((function(e){var n=t.select(this).attr("d");1==e.sets.length&&n&&(_=!0,C[e.sets[0]]=G(n))}));// interpolate intersection area paths between previous and
// current paths
var I=function(t){return function(r){return V(t.sets.map((function(t){var i=C[t],a=v[t];return i||(i={x:e/2,y:n/2,radius:1}),a||(a={x:e/2,y:n/2,radius:1}),{x:i.x*(1-r)+a.x*r,y:i.y*(1-r)+a.y*r,radius:i.radius*(1-r)+a.radius*r}})))}},E=x.selectAll(".venn-area").data(f,(function(e){return e.sets})),k=E.enter().append("g").attr("class",(function(e){return"venn-area venn-"+(1==e.sets.length?"circle":"intersection")})).attr("data-venn-sets",(function(e){return e.sets.join("_")})),S=k.append("path"),B=k.append("text").attr("class","label").text((function(e){return w(e)})).attr("text-anchor","middle").attr("dy",".35em").attr("x",e/2).attr("y",n/2);// update data, joining on the set ids
// apply minimal style if wanted
c&&(S.style("fill-opacity","0").filter((function(e){return 1==e.sets.length})).style("fill",(function(e){return p(e.sets)})).style("fill-opacity",".25"),B.style("fill",(function(e){return 1==e.sets.length?p(e.sets):"#444"})));// update existing, using pathTween if necessary
var M=h;_?(M=h.transition("venn").duration(i)).selectAll("path").attrTween("d",I):M.selectAll("path").attr("d",(function(e){return V(e.sets.map((function(e){return v[e]})))}));var T=M.selectAll("text").filter((function(e){return e.sets in y})).text((function(e){return w(e)})).attr("x",(function(e){return Math.floor(y[e.sets].x)})).attr("y",(function(e){return Math.floor(y[e.sets].y)}));s&&(_?
// d3 4.0 uses 'on' for events on transitions,
// but d3 3.0 used 'each' instead. switch appropiately
"on"in T?T.on("end",R(v,w)):T.each("end",R(v,w)):T.each(R(v,w)));// remove old
var O=E.exit().transition("venn").duration(i).remove();O.selectAll("path").attrTween("d",I);var D=O.selectAll("text").attr("x",e/2).attr("y",n/2);// if we've been passed a fontSize explicitly, use it to
// transition
return null!==l&&(B.style("font-size","0px"),T.style("font-size",l),D.style("font-size","0px")),{circles:v,textCentres:y,nodes:E,enter:k,update:M,exit:O}}return v.wrap=function(e){return arguments.length?(s=e,v):s},v.width=function(t){return arguments.length?(e=t,v):e},v.height=function(e){return arguments.length?(n=e,v):n},v.padding=function(e){return arguments.length?(r=e,v):r},v.colours=function(e){return arguments.length?(p=e,v):p},v.fontSize=function(e){return arguments.length?(l=e,v):l},v.duration=function(e){return arguments.length?(i=e,v):i},v.layoutFunction=function(e){return arguments.length?(g=e,v):g},v.normalize=function(e){return arguments.length?(o=e,v):o},v.styled=function(e){return arguments.length?(c=e,v):c},v.orientation=function(e){return arguments.length?(a=e,v):a},v.orientationOrder=function(e){return arguments.length?(u=e,v):u},v.lossFunction=function(e){return arguments.length?(m=e,v):m},v}// sometimes text doesn't fit inside the circle, if thats the case lets wrap
// the text here such that it fits
// todo: looks like this might be merged into d3 (
// https://github.com/mbostock/d3/issues/1642),
// also worth checking out is
// http://engineering.findthebest.com/wrapping-axis-labels-in-d3-js/
// this seems to be one of those things that should be easy but isn't
function R(e,n){return function(){for(var r,i=t.select(this),a=i.datum(),o=e[a.sets[0]].radius||50,s=n(a)||"",c=s.split(/\s+/).reverse(),l=3,u=(s.length+c.length)/l,h=c.pop(),f=[h],d=0,p=1.1,
// ems
g=i.text(null).append("tspan").text(h);h=c.pop();)f.push(h),r=f.join(" "),g.text(r),r.length>u&&g.node().getComputedTextLength()>o&&(f.pop(),g.text(f.join(" ")),f=[h],g=i.append("tspan").text(h),d++);var m=.35-d*p/2,v=i.attr("x"),y=i.attr("y");i.selectAll("tspan").attr("x",v).attr("y",y).attr("dy",(function(e,t){return m+t*p+"em"}))}}function j(e,t,n){var r,i,a=t[0].radius-s(t[0],e);for(r=1;r<t.length;++r)(i=t[r].radius-s(t[r],e))<=a&&(a=i);for(r=0;r<n.length;++r)(i=s(n[r],e)-n[r].radius)<=a&&(a=i);return a}// compute the center of some circles by maximizing the margin of
// the center point relative to the circles (interior) after subtracting
// nearby circles (exterior)
function N(e,t){
// get an initial estimate by sampling around the interior circles
// and taking the point with the biggest margin
var n,i=[];for(n=0;n<e.length;++n){var a=e[n];i.push({x:a.x,y:a.y}),i.push({x:a.x+a.radius/2,y:a.y}),i.push({x:a.x-a.radius/2,y:a.y}),i.push({x:a.x,y:a.y+a.radius/2}),i.push({x:a.x,y:a.y-a.radius/2})}var o=i[0],c=j(i[0],e,t);for(n=1;n<i.length;++n){var l=j(i[n],e,t);l>=c&&(o=i[n],c=l)}// maximize the margin numerically
var h=y((function(n){return-1*j({x:n[0],y:n[1]},e,t)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,f={x:h[0],y:h[1]},d=!0;for(n=0;n<e.length;++n)if(s(f,e[n])>e[n].radius){d=!1;break}for(n=0;n<t.length;++n)if(s(f,t[n])<t[n].radius){d=!1;break}if(!d)if(1==e.length)f={x:e[0].x,y:e[0].y};else{var p={};r(e,p),f=0===p.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==p.arcs.length?{x:p.arcs[0].circle.x,y:p.arcs[0].circle.y}:t.length?N(e,[]):u(p.arcs.map((function(e){return e.p1})))}return f}// given a dictionary of {setid : circle}, returns
// a dictionary of setid to list of circles that completely overlap it
function F(e){var t={},n=[];for(var r in e)n.push(r),t[r]=[];for(var i=0;i<n.length;i++)for(var a=e[n[i]],o=i+1;o<n.length;++o){var c=e[n[o]],l=s(a,c);l+c.radius<=a.radius+1e-10?t[n[o]].push(n[i]):l+a.radius<=c.radius+1e-10&&t[n[i]].push(n[o])}return t}function z(e,t){for(var n={},r=F(e),i=0;i<t.length;++i){for(var a=t[i].sets,o={},s={},c=0;c<a.length;++c){o[a[c]]=!0;// keep track of any circles that overlap this area,
// and don't consider for purposes of computing the text
// centre
for(var l=r[a[c]],u=0;u<l.length;++u)s[l[u]]=!0}var h=[],f=[];for(var d in e)d in o?h.push(e[d]):d in s||f.push(e[d]);var p=N(h,f);n[a]=p,p.disjoint&&t[i].size}return n}// sorts all areas in the venn diagram, so that
// a particular area is on top (relativeTo) - and
// all other areas are so that the smallest areas are on top
function H(e,t){for(
// figure out sets that are completly overlapped by relativeTo
var n=F(e.selectAll("svg").datum()),r={},i=0;i<t.sets.length;++i){var a=t.sets[i];for(var o in n)for(var s=n[o],c=0;c<s.length;++c)if(s[c]==a){r[o]=!0;break}}// checks that all sets are in exclude;
function l(e){for(var t=0;t<e.length;++t)if(!(e[t]in r))return!1;return!0}// need to sort div's so that Z order is correct
e.selectAll("g").sort((function(e,n){
// highest order set intersections first
return e.sets.length!=n.sets.length?e.sets.length-n.sets.length:e==t?l(n.sets)?-1:1:n==t?l(e.sets)?1:-1:n.size-e.size}))}function U(e,t,n){var r=[];return r.push("\nM",e,t),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}// inverse of the circlePath function, returns a circle object from an svg path
function G(e){var t=e.split(" ");return{x:parseFloat(t[1]),y:parseFloat(t[2]),radius:-parseFloat(t[4])}}
/** returns a svg path of the intersection area of a bunch of circles */function V(e){var t={};r(e,t);var n=t.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return U(i.x,i.y,i.radius)}for(
// draw path around arcs
var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var s=n[o],c=s.circle.radius,l=s.width>c;a.push("\nA",c,c,0,l?1:0,1,s.p1.x,s.p1.y)}return a.join(" ")}e.intersectionArea=r,e.circleCircleIntersection=l,e.circleOverlap=c,e.circleArea=o,e.distance=s,e.venn=w,e.greedyLayout=B,e.scaleSolution=L,e.normalizeSolution=P,e.bestInitialLayout=k,e.lossFunction=M,e.disjointCluster=O,e.distanceFromIntersectArea=C,e.VennDiagram=Q,e.wrapText=R,e.computeTextCentres=z,e.computeTextCentre=N,e.sortAreas=H,e.circlePath=U,e.circleFromPath=G,e.intersectionAreaPath=V,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(102),n(506));
/***/},
/* 471 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(418),i=n(442);
/* harmony import */
/* harmony default export */t.a=function(e){return Object(i.a)(Object(r.a)(e).call(document.documentElement))}},
/* 472 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99),i=n(431);
/* harmony import */
/* harmony default export */t.a=function(e){"function"!=typeof e&&(e=Object(i.a)(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var s,c,l=t[o],u=l.length,h=a[o]=new Array(u),f=0;f<u;++f)(s=l[f])&&(c=e.call(s,s.__data__,f,l))&&("__data__"in s&&(c.__data__=s.__data__),h[f]=c);return new r.a(a,this._parents)}},
/* 473 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99),i=n(443);
/* harmony import */
/* harmony default export */t.a=function(e){"function"!=typeof e&&(e=Object(i.a)(e));for(var t=this._groups,n=t.length,a=[],o=[],s=0;s<n;++s)for(var c,l=t[s],u=l.length,h=0;h<u;++h)(c=l[h])&&(a.push(e.call(c,c.__data__,h,l)),o.push(c));return new r.a(a,o)}},
/* 474 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99),i=n(444);
/* harmony import */
/* harmony default export */t.a=function(e){"function"!=typeof e&&(e=Object(i.a)(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var s,c=t[o],l=c.length,u=a[o]=[],h=0;h<l;++h)(s=c[h])&&e.call(s,s.__data__,h,c)&&u.push(s);return new r.a(a,this._parents)}},
/* 475 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99),i=n(445),a=n(476);
/* harmony import */ // Protect against keys like “__proto__”.
function o(e,t,n,r,a,o){// Put any non-null nodes that fit into update.
// Put any null nodes into enter.
// Put any remaining data into enter.
for(var s,c=0,l=t.length,u=o.length;c<u;++c)(s=t[c])?(s.__data__=o[c],r[c]=s):n[c]=new i.a(e,o[c]);// Put any non-null nodes that don’t fit into exit.
for(;c<l;++c)(s=t[c])&&(a[c]=s)}function s(e,t,n,r,a,o,s){var c,l,u,h={},f=t.length,d=o.length,p=new Array(f);// Compute the key for each node.
// If multiple nodes have the same key, the duplicates are added to exit.
for(c=0;c<f;++c)(l=t[c])&&(p[c]=u="$"+s.call(l,l.__data__,c,t),u in h?a[c]=l:h[u]=l);// Compute the key for each datum.
// If there a node associated with this key, join and add it to update.
// If there is not (or the key is a duplicate), add it to enter.
for(c=0;c<d;++c)(l=h[u="$"+s.call(e,o[c],c,o)])?(r[c]=l,l.__data__=o[c],h[u]=null):n[c]=new i.a(e,o[c]);// Add any remaining nodes that were not bound to data to exit.
for(c=0;c<f;++c)(l=t[c])&&h[p[c]]===l&&(a[c]=l)}
/* harmony default export */t.a=function(e,t){if(!e)return v=new Array(this.size()),d=-1,this.each((function(e){v[++d]=e})),v;var n=t?s:o,i=this._parents,c=this._groups;"function"!=typeof e&&(e=Object(a.a)(e));for(var l=c.length,u=new Array(l),h=new Array(l),f=new Array(l),d=0;d<l;++d){var p=i[d],g=c[d],m=g.length,v=e.call(p,p&&p.__data__,d,i),y=v.length,A=h[d]=new Array(y),b=u[d]=new Array(y);n(p,g,A,b,f[d]=new Array(m),v,t);// Now connect the enter nodes to their following update node, such that
// appendChild can insert the materialized enter node before this node,
// rather than at the end of the parent node.
for(var w,x,C=0,_=0;C<y;++C)if(w=A[C]){for(C>=_&&(_=C+1);!(x=b[_])&&++_<y;);w._next=x||null}}return(u=new r.a(u,i))._enter=h,u._exit=f,u}},
/* 476 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return function(){return e}}},
/* 477 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(446),i=n(99);
/* harmony import */
/* harmony default export */t.a=function(){return new i.a(this._exit||this._groups.map(r.a),this._parents)}},
/* 478 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i}},
/* 479 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99);
/* harmony default export */t.a=function(e){for(var t=this._groups,n=e._groups,i=t.length,a=n.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,u=t[c],h=n[c],f=u.length,d=s[c]=new Array(f),p=0;p<f;++p)(l=u[p]||h[p])&&(d[p]=l);for(;c<i;++c)s[c]=t[c];return new r.a(s,this._parents)}},
/* 480 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}},
/* 481 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99);
/* harmony default export */function i(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}
/***/t.a=function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=i);for(var n=this._groups,a=n.length,o=new Array(a),s=0;s<a;++s){for(var c,l=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f])&&(h[f]=c);h.sort(t)}return new r.a(o,this._parents).order()}},
/* 482 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}},
/* 483 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e}},
/* 484 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}},
/* 485 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){var e=0;return this.each((function(){++e})),e}},
/* 486 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){return!this.node()}},
/* 487 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],o=0,s=a.length;o<s;++o)(i=a[o])&&e.call(i,i.__data__,o,a);return this}},
/* 488 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(429);function i(e){return function(){this.removeAttribute(e)}}function a(e){return function(){this.removeAttributeNS(e.space,e.local)}}function o(e,t){return function(){this.setAttribute(e,t)}}function s(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function c(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function l(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}
/* harmony default export */t.a=function(e,t){var n=Object(r.a)(e);if(arguments.length<2){var u=this.node();return n.local?u.getAttributeNS(n.space,n.local):u.getAttribute(n)}return this.each((null==t?n.local?a:i:"function"==typeof t?n.local?l:c:n.local?s:o)(n,t))}},
/* 489 */
/***/function(e,t,n){"use strict";function r(e){return function(){delete this[e]}}function i(e,t){return function(){this[e]=t}}function a(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}
/* harmony default export */t.a=function(e,t){return arguments.length>1?this.each((null==t?r:"function"==typeof t?a:i)(e,t)):this.node()[e]}},
/* 490 */
/***/function(e,t,n){"use strict";function r(e){return e.trim().split(/^|\s+/)}function i(e){return e.classList||new a(e)}function a(e){this._node=e,this._names=r(e.getAttribute("class")||"")}function o(e,t){for(var n=i(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function s(e,t){for(var n=i(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function c(e){return function(){o(this,e)}}function l(e){return function(){s(this,e)}}function u(e,t){return function(){(t.apply(this,arguments)?o:s)(this,e)}}
/* harmony default export */a.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}},t.a=function(e,t){var n=r(e+"");if(arguments.length<2){for(var a=i(this.node()),o=-1,s=n.length;++o<s;)if(!a.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?u:t?c:l)(n,t))}},
/* 491 */
/***/function(e,t,n){"use strict";function r(){this.textContent=""}function i(e){return function(){this.textContent=e}}function a(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}
/* harmony default export */t.a=function(e){return arguments.length?this.each(null==e?r:("function"==typeof e?a:i)(e)):this.node().textContent}},
/* 492 */
/***/function(e,t,n){"use strict";function r(){this.innerHTML=""}function i(e){return function(){this.innerHTML=e}}function a(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}
/* harmony default export */t.a=function(e){return arguments.length?this.each(null==e?r:("function"==typeof e?a:i)(e)):this.node().innerHTML}},
/* 493 */
/***/function(e,t,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}
/* harmony default export */t.a=function(){return this.each(r)}},
/* 494 */
/***/function(e,t,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}
/* harmony default export */t.a=function(){return this.each(r)}},
/* 495 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(418);
/* harmony default export */t.a=function(e){var t="function"==typeof e?e:Object(r.a)(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}},
/* 496 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(418),i=n(431);
/* harmony import */function a(){return null}
/* harmony default export */t.a=function(e,t){var n="function"==typeof e?e:Object(r.a)(e),o=null==t?a:"function"==typeof t?t:Object(i.a)(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)}))}},
/* 497 */
/***/function(e,t,n){"use strict";function r(){var e=this.parentNode;e&&e.removeChild(this)}
/* harmony default export */t.a=function(){return this.each(r)}},
/* 498 */
/***/function(e,t,n){"use strict";function r(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function i(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}
/* harmony default export */t.a=function(e){return this.select(e?i:r)}},
/* 499 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){return arguments.length?this.property("__data__",e):this.node().__data__}},
/* 500 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(432);function i(e,t,n){var i=Object(r.a)(e),a=i.CustomEvent;"function"==typeof a?a=new a(t,n):(a=i.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function a(e,t){return function(){return i(this,e,t)}}function o(e,t){return function(){return i(this,e,t.apply(this,arguments))}}
/* harmony default export */t.a=function(e,t){return this.each(("function"==typeof t?o:a)(e,t))}},
/* 501 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=i;var r=0;function i(){return new a}function a(){this._="@"+(++r).toString(36)}a.prototype=i.prototype={constructor:a,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}}},
/* 502 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(434),i=n(419);
/* harmony import */
/* harmony default export */t.a=function(e){var t=Object(r.a)();return t.changedTouches&&(t=t.changedTouches[0]),Object(i.a)(e,t)}},
/* 503 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(99);
/* harmony default export */t.a=function(e){return"string"==typeof e?new r.a([document.querySelectorAll(e)],[document.documentElement]):new r.a([null==e?[]:e],r.c)}},
/* 504 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(434),i=n(419);
/* harmony import */
/* harmony default export */t.a=function(e,t,n){arguments.length<3&&(n=t,t=Object(r.a)().changedTouches);for(var a,o=0,s=t?t.length:0;o<s;++o)if((a=t[o]).identifier===n)return Object(i.a)(e,a);return null}},
/* 505 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(434),i=n(419);
/* harmony import */
/* harmony default export */t.a=function(e,t){null==t&&(t=Object(r.a)().touches);for(var n=0,a=t?t.length:0,o=new Array(a);n<a;++n)o[n]=Object(i.a)(e,t[n]);return o}},
/* 506 */
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(507);
/* harmony import */var r=n(204);
/* harmony import */
/* harmony reexport (binding) */n.d(t,"transition",(function(){return r.b}));
/* harmony import */var i=n(543);
/* harmony reexport (binding) */n.d(t,"active",(function(){return i.a}));
/* harmony import */var a=n(448);
/* harmony reexport (binding) */n.d(t,"interrupt",(function(){return a.a}))},
/* 507 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(102),i=n(508),a=n(511);
/* harmony import */r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=a.a},
/* 508 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(448);
/* harmony default export */t.a=function(e){return this.each((function(){Object(r.a)(this,e)}))}},
/* 509 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(510);
/* harmony reexport (binding) */n.d(t,"a",(function(){return r.a}))},
/* 510 */
/***/function(e,t,n){"use strict";var r={value:function(){}};function i(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new a(r)}function a(e){this._=e}function o(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function s(e,t,n){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=r,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}
/* harmony default export */a.prototype=i.prototype={constructor:a,on:function(e,t){var n,r,i=this._,a=(r=i,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),c=-1,l=a.length;// If no callback was specified, return the callback of the given type and name.
if(!(arguments.length<2)){// If a type was specified, set the callback for the given type and name.
// Otherwise, if a null callback was specified, remove callbacks of the given name.
if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++c<l;)if(n=(e=a[c]).type)i[n]=s(i[n],e.name,t);else if(null==t)for(n in i)i[n]=s(i[n],e.name,null);return this}for(;++c<l;)if((n=(e=a[c]).type)&&(n=o(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new a(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}},t.a=i},
/* 511 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(204),i=n(58),a=n(103),o=n(101),s={time:null,
// Set on use.
delay:0,duration:250,ease:a.easeCubicInOut};
/* harmony import */function c(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return s.time=Object(o.now)(),s;return n}
/* harmony default export */t.a=function(e){var t,n;e instanceof r.a?(t=e._id,e=e._name):(t=Object(r.c)(),(n=s).time=Object(o.now)(),e=null==e?null:e+"");for(var a=this._groups,l=a.length,u=0;u<l;++u)for(var h,f=a[u],d=f.length,p=0;p<d;++p)(h=f[p])&&Object(i.e)(h,e,t,p,f,n||c(h,t));return new r.a(a,this._parents,e,t)}},
/* 512 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(435),i=n(102),a=n(421),o=n(456);
/* harmony import */function s(e){return function(){this.removeAttribute(e)}}function c(e){return function(){this.removeAttributeNS(e.space,e.local)}}function l(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function u(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function h(e,t,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(e))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,c));this.removeAttribute(e)}}function f(e,t,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(e.space,e.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,c));this.removeAttributeNS(e.space,e.local)}}
/* harmony default export */t.a=function(e,t){var n=Object(i.namespace)(e),d="transform"===n?r.e:o.a;return this.attrTween(e,"function"==typeof t?(n.local?f:h)(n,d,Object(a.b)(this,"attr."+e,t)):null==t?(n.local?c:s)(n):(n.local?u:l)(n,d,t))}},
/* 513 */
/***/function(e,t,n){
/***/},
/* 514 */
/***/function(e,t,n){"use strict";
/* harmony import */n(207)},
/* 515 */
/***/function(e,t,n){
/***/},
/* 516 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s}));
/* harmony import */var r=n(420),i=n(517);
/* harmony import */function a(e,t,n,i){function a(e){return e.length?e.pop()+" ":""}return function(o,s){var c=[],
// string constants and placeholders
l=[];// number interpolators
// gc
return o=e(o),s=e(s),function(e,i,a,o,s,c){if(e!==a||i!==o){var l=s.push("translate(",null,t,null,n);c.push({i:l-4,x:Object(r.a)(e,a)},{i:l-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,c,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),// shortest path
o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(e,t)})):t&&n.push(a(n)+"rotate("+t+i)}(o.rotate,s.rotate,c,l),function(e,t,n,o){e!==t?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(e,t)}):t&&n.push(a(n)+"skewX("+t+i)}(o.skewX,s.skewX,c,l),function(e,t,n,i,o,s){if(e!==n||t!==i){var c=o.push(a(o)+"scale(",null,",",null,")");s.push({i:c-4,x:Object(r.a)(e,n)},{i:c-2,x:Object(r.a)(t,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,c,l),o=s=null,function(e){for(var t,n=-1,r=l.length;++n<r;)c[(t=l[n]).i]=t.x(e);return c.join("")}}}var o=a(i.a,"px, ","px)","deg)"),s=a(i.b,", ",")",")")},
/* 517 */
/***/function(e,t,n){"use strict";
/* harmony export (immutable) */t.a=function(e){return"none"===e?s.b:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=e,e=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),e=e.slice(7,-1).split(","),Object(s.a)(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},
/* harmony export (immutable) */t.b=function(e){return null==e?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",e),(e=o.transform.baseVal.consolidate())?(e=e.matrix,Object(s.a)(e.a,e.b,e.c,e.d,e.e,e.f)):s.b)}
/***/;
/* harmony import */var r,i,a,o,s=n(518)},
/* 518 */
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};
/* harmony default export */t.a=function(e,t,n,i,a,o){var s,c,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,l/=c),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:c}}},
/* 519 */
/***/function(e,t,n){"use strict";Math.SQRT2},
/* 520 */
/***/function(e,t,n){"use strict";
/* unused harmony export hslLong */
/* harmony import */var r=n(19),i=n(207);
/* harmony import */function a(e){return function(t,n){var a=e((t=Object(r.d)(t)).h,(n=Object(r.d)(n)).h),o=Object(i.a)(t.s,n.s),s=Object(i.a)(t.l,n.l),c=Object(i.a)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(e),t.opacity=c(e),t+""}}}
/* unused harmony default export */a(i.c),a(i.a)},
/* 521 */
/***/function(e,t,n){"use strict";
/* unused harmony export default */
/* harmony import */n(19),n(207)},
/* 522 */
/***/function(e,t,n){"use strict";
/* unused harmony export hclLong */
/* harmony import */var r=n(19),i=n(207);
/* harmony import */function a(e){return function(t,n){var a=e((t=Object(r.c)(t)).h,(n=Object(r.c)(n)).h),o=Object(i.a)(t.c,n.c),s=Object(i.a)(t.l,n.l),c=Object(i.a)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=s(e),t.opacity=c(e),t+""}}}
/* unused harmony default export */a(i.c),a(i.a)},
/* 523 */
/***/function(e,t,n){"use strict";
/* unused harmony export cubehelixLong */
/* harmony import */var r=n(19),i=n(207);
/* harmony import */function a(e){return function t(n){function a(t,a){var o=e((t=Object(r.b)(t)).h,(a=Object(r.b)(a)).h),s=Object(i.a)(t.s,a.s),c=Object(i.a)(t.l,a.l),l=Object(i.a)(t.opacity,a.opacity);return function(e){return t.h=o(e),t.s=s(e),t.l=c(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,a.gamma=t,a}(1)}
/* unused harmony default export */a(i.c),a(i.a)},
/* 524 */
/***/function(e,t,n){
/***/},
/* 525 */
/***/function(e,t,n){
/***/},
/* 526 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(102);function i(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function a(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}
/* harmony default export */t.a=function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var o=Object(r.namespace)(e);return this.tween(n,(o.local?i:a)(o,t))}},
/* 527 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(58);function i(e,t){return function(){Object(r.g)(this,e).delay=+t.apply(this,arguments)}}function a(e,t){return t=+t,function(){Object(r.g)(this,e).delay=t}
/* harmony default export */}t.a=function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?i:a)(t,e)):Object(r.f)(this.node(),t).delay}},
/* 528 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(58);function i(e,t){return function(){Object(r.h)(this,e).duration=+t.apply(this,arguments)}}function a(e,t){return t=+t,function(){Object(r.h)(this,e).duration=t}
/* harmony default export */}t.a=function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?i:a)(t,e)):Object(r.f)(this.node(),t).duration}},
/* 529 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(58);
/* harmony default export */t.a=function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){Object(r.h)(this,e).ease=t}}(t,e)):Object(r.f)(this.node(),t).ease}},
/* 530 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(102),i=n(204);
/* harmony import */
/* harmony default export */t.a=function(e){"function"!=typeof e&&(e=Object(r.matcher)(e));for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o)for(var s,c=t[o],l=c.length,u=a[o]=[],h=0;h<l;++h)(s=c[h])&&e.call(s,s.__data__,h,c)&&u.push(s);return new i.a(a,this._parents,this._name,this._id)}},
/* 531 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(204);
/* harmony default export */t.a=function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,a=n.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,u=t[c],h=n[c],f=u.length,d=s[c]=new Array(f),p=0;p<f;++p)(l=u[p]||h[p])&&(d[p]=l);for(;c<i;++c)s[c]=t[c];return new r.a(s,this._parents,this._name,this._id)}},
/* 532 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(58);
/* harmony default export */t.a=function(e,t){var n=this._id;return arguments.length<2?Object(r.f)(this.node(),n).on.on(e):this.each(function(e,t,n){var i,a,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?r.g:r.h;return function(){var r=o(this,e),s=r.on;// If this node shared a dispatch with the previous node,
// just assign the updated shared dispatch and we’re done!
// Otherwise, copy-on-write.
s!==i&&(a=(i=s).copy()).on(t,n),r.on=a}}(n,e,t))}},
/* 533 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e}},
/* 534 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(102),i=n(204),a=n(58);
/* harmony import */
/* harmony default export */t.a=function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Object(r.selector)(e));for(var o=this._groups,s=o.length,c=new Array(s),l=0;l<s;++l)for(var u,h,f=o[l],d=f.length,p=c[l]=new Array(d),g=0;g<d;++g)(u=f[g])&&(h=e.call(u,u.__data__,g,f))&&("__data__"in u&&(h.__data__=u.__data__),p[g]=h,Object(a.e)(p[g],t,n,g,p,Object(a.f)(u,n)));return new i.a(c,this._parents,t,n)}},
/* 535 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(102),i=n(204),a=n(58);
/* harmony import */
/* harmony default export */t.a=function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Object(r.selectorAll)(e));for(var o=this._groups,s=o.length,c=[],l=[],u=0;u<s;++u)for(var h,f=o[u],d=f.length,p=0;p<d;++p)if(h=f[p]){for(var g,m=e.call(h,h.__data__,p,f),v=Object(a.f)(h,n),y=0,A=m.length;y<A;++y)(g=m[y])&&Object(a.e)(g,t,n,y,m,v);c.push(m),l.push(h)}return new i.a(c,l,t,n)}},
/* 536 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(102).selection.prototype.constructor;
/* harmony default export */t.a=function(){return new r(this._groups,this._parents)}},
/* 537 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(435),i=n(102),a=n(58),o=n(421),s=n(456);
/* harmony import */function c(e){return function(){this.style.removeProperty(e)}}
/* harmony default export */t.a=function(e,t,n){var l="transform"==(e+="")?r.d:s.a;return null==t?this.styleTween(e,function(e,t){var n,r,a;return function(){var o=Object(i.style)(this,e),s=(this.style.removeProperty(e),Object(i.style)(this,e));return o===s?null:o===n&&s===r?a:a=t(n=o,r=s)}}(e,l)).on("end.style."+e,c(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,a,o;return function(){var s=Object(i.style)(this,e),c=n(this),l=c+"";return null==c&&(this.style.removeProperty(e),l=c=Object(i.style)(this,e)),s===l?null:s===r&&l===a?o:(a=l,o=t(r=s,c))}}(e,l,Object(o.b)(this,"style."+e,t))).each(function(e,t){var n,r,i,o,s="style."+t,l="end."+s;return function(){var u=Object(a.h)(this,e),h=u.on,f=null==u.value[s]?o||(o=c(t)):void 0;// If this node shared a dispatch with the previous node,
// just assign the updated shared dispatch and we’re done!
// Otherwise, copy-on-write.
h===n&&i===f||(r=(n=h).copy()).on(l,i=f),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,a,o=n+"";return function(){var s=Object(i.style)(this,e);return s===o?null:s===r?a:a=t(r=s,n)}}(e,l,t),n).on("end.style."+e,null)}},
/* 538 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,a,n)),r}return a._value=t,a}(e,t,null==n?"":n))}},
/* 539 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(421);
/* harmony default export */t.a=function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Object(r.b)(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))}},
/* 540 */
/***/function(e,t,n){"use strict";
/* harmony default export */t.a=function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))}},
/* 541 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(204),i=n(58);
/* harmony import */
/* harmony default export */t.a=function(){for(var e=this._name,t=this._id,n=Object(r.c)(),a=this._groups,o=a.length,s=0;s<o;++s)for(var c,l=a[s],u=l.length,h=0;h<u;++h)if(c=l[h]){var f=Object(i.f)(c,t);Object(i.e)(c,e,n,h,l,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new r.a(a,this._parents,e,n)}},
/* 542 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(58);
/* harmony default export */t.a=function(){var e,t,n=this,i=n._id,a=n.size();return new Promise((function(o,s){var c={value:s},l={value:function(){0==--a&&o()}};n.each((function(){var n=Object(r.h)(this,i),a=n.on;// If this node shared a dispatch with the previous node,
// just assign the updated shared dispatch and we’re done!
// Otherwise, copy-on-write.
a!==e&&((t=(e=a).copy())._.cancel.push(c),t._.interrupt.push(c),t._.end.push(l)),n.on=t}))}))}},
/* 543 */
/***/function(e,t,n){"use strict";
/* harmony import */var r=n(204),i=n(58),a=[null];
/* harmony import */
/* harmony default export */t.a=function(e,t){var n,o,s=e.__transition;if(s)for(o in t=null==t?null:t+"",s)if((n=s[o]).state>i.c&&n.name===t)return new r.a([[e]],a,t,+o);return null}},
/* 544 */
/***/function(e,t,n){
/**
 * @fileOverview venn shapes
 * @author leungwensen@gmail.com
 */
var r=n(0),i=n(21),a=n(57),o=n(8),s=r.PathUtil;function c(e){var t=o.shape.venn,n=r.mix({},t,e.style);return a.addFillAttrs(n,e),n}// register venn geom
var l=i.registerFactory("venn",{defaultShapeType:"venn",getActiveCfg:function(e,t){var n=t.lineWidth||1;return"hollow"===e?{lineWidth:n+1}:{
// lineWidth,
fillOpacity:(t.fillOpacity||t.opacity||1)-.08}},getSelectedCfg:function(e,t){return t&&t.style?t.style:this.getActiveCfg(e,t)}});i.registerShape("venn","venn",{draw:function(e,t){var n=e.origin._origin.path,i=c(e),a=s.parsePathString(n);return t.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4},c(e))}}),i.registerShape("venn","hollow",{draw:function(e,t){var n=e.origin._origin.path,i=function(e){var t=o.shape.hollowVenn,n=r.mix({},t,e.style);return a.addStrokeAttrs(n,e),n}(e),c=s.parsePathString(n);return t.addShape("path",{attrs:r.mix(i,{path:c})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4},c(e))}}),e.exports=l},
/* 545 */
/***/function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}
/**
 * @fileOverview Venn Diagram
 * @author leungwensen@gmail.com
 */var a=n(23),o=n(0),s=n(415);n(546);var c=function(e){r(n,e);var t=n.prototype;
/**
   * get default configuration
   * @protected
   * @return {Object} configuration
   */function n(t){var n;return n=e.call(this,t)||this,o.assign(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),s),n}return t.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);// super.draw(data, container, shapeFactory, index);
return t.type="violin",t.shapeType="violin",t.generatePoints=!0,t},t.createShapePointsCfg=function(t){var n=e.prototype.createShapePointsCfg.call(this,t);n.size=this.getNormalizedSize(t);var r=this.get("_sizeField");return n._size=t._origin[r],n},t.clearInner=function(){e.prototype.clearInner.call(this),this.set("defaultSize",null)},t._initAttrs=function(){var t=this,n=t.get("attrOptions"),r=n.size?n.size.field:t.get("_sizeField")?t.get("_sizeField"):"size";t.set("_sizeField",r),delete n.size,e.prototype._initAttrs.call(this)},n}(a),l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"dodge"}],t},t}(c);c.Dodge=l,a.Violin=c,a.ViolinDodge=l,e.exports=c},
/* 546 */
/***/function(e,t,n){
/**
 * @fileOverview venn shapes
 * @author leungwensen@gmail.com
 */
var r=n(0),i=n(21),a=n(57),o=n(8),s=n(25);function c(e){var t=o.shape.venn,n=r.mix({},t,e.style);return a.addFillAttrs(n,e),e.color&&(n.stroke=n.stroke||e.color),n}function l(e){var t=o.shape.hollowVenn,n=r.mix({},t,e.style);return a.addStrokeAttrs(n,e),n}function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r){var i=0===n?"M":"L";t.push([i,r.x,r.y])}}var a=e[0];return a&&(t.push(["L",a.x,a.y]),t.push(["z"])),t}function h(e){for(var t=e.length/2,n=[],r=[],i=0;i<e.length;i++)i<t?n.push(e[i]):r.push(e[i]);var a=s.getSplinePath(n,!1),o=s.getSplinePath(r,!1);r.length&&a.push(["L",r[0].x,r[0].y]),o.shift();var c=a.concat(o);return n.length&&c.push(["L",n[0].x,n[0].y]),c.push(["z"]),c}// register violin geom shape
var f=i.registerFactory("violin",{defaultShapeType:"violin",getDefaultPoints:function(e){var t,n,i=e.size/2,a=[],o=(t=e._size,n=Math.max.apply(null,t),t.map((function(e){return e/n})));return r.each(e.y,(function(t,n){var r=o[n]*i,s=0===n,c=n===e.y.length-1;a.push({isMin:s,isMax:c,x:e.x-r,y:t}),a.unshift({isMin:s,isMax:c,x:e.x+r,y:t})})),a},getActiveCfg:function(e,t){var n=t.lineWidth||1;return"hollow"===e?{lineWidth:n+1}:{
// lineWidth,
fillOpacity:(t.fillOpacity||t.opacity||1)-.08}},getSelectedCfg:function(e,t){return t&&t.style?t.style:this.getActiveCfg(e,t)}});// normal violin, filled path
i.registerShape("violin","violin",{draw:function(e,t){var n=c(e),i=u(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4},c(e))}}),// smooth spline violin, filled path
i.registerShape("violin","smooth",{draw:function(e,t){var n=c(e),i=h(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4},c(e))}}),// hollow violin, stroked path
i.registerShape("violin","hollow",{draw:function(e,t){var n=l(e),i=u(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4},l(e))}}),// hollow smooth spline violin, stroked path
i.registerShape("violin","smoothHollow",{draw:function(e,t){var n=l(e),i=h(e.points);return i=this.parsePath(i),t.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(e){return r.mix({symbol:"circle",radius:4},l(e))}}),e.exports=f},
/* 547 */
/***/function(e,t,n){
/**
 * @fileOverview Facet 的入口
 * @author dxq613@gmail.com
 */
var r=n(0),i=n(163),a={};a.Rect=n(457),a.List=n(458),a.Circle=n(548),a.Tree=n(549),a.Mirror=n(550),a.Matrix=n(551),i.prototype.facet=function(e,t){var n=a[r.upperFirst(e)];if(!n)throw new Error("Not support such type of facets as: "+e);var i=this.get("facets");i&&i.destroy(),t.chart=this;var o=new n(t);this.set("facets",o)},e.exports=a},
/* 548 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview circle facets
 * @author dxq613@gmail.com
 */function i(e,t,n){return{x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}}var a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=a.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="circle",t},o.getRegion=function(e,t){var n=2*Math.PI/e,r=-1*Math.PI/2+n*t,a=.5/(1+1/Math.sin(n/2)),o=i({x:.5,y:.5},.5-a,r),s=5*Math.PI/4,c=1*Math.PI/4;// 画布半径
// 左下角
return{start:i(o,a,s),end:i(o,a,c)}},o.generateFacets=function(e){var t=this,n=t.fields[0];if(!n)throw"Please specify for the field for facet!";var r=t.getFieldValues(n,e),i=r.length,a=[];return r.forEach((function(o,s){var c=[{field:n,value:o,values:r}],l=t.getFilter(c),u=e.filter(l),h={type:t.type,colValue:o,colField:n,colIndex:s,cols:i,rows:1,rowIndex:0,data:u,region:t.getRegion(i,s)};a.push(h)})),a},a}(n(422));e.exports=a},
/* 549 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview tree facets
 * @author dxq613@gmail.com
 */var i=n(422),a=n(0).assign,o=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=i.prototype;return o.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="tree",t.line={lineWidth:1,stroke:"#ddd"},t.lineSmooth=!1,t},o.generateFacets=function(e){var t=this;if(!t.fields.length)throw"Please specify for the fields for facet!";var n=[],r=t.getRootFacet(e);// if (self.showRoot) {
return n.push(r),// }
r.children=t.getChildFacets(e,1,n),t.setRegion(n),n},o.getRootFacet=function(e){var t=this;return{type:t.type,rows:t.getRows(),rowIndex:0,colIndex:0,colValue:t.rootTitle,data:e}},o.getRows=function(){return this.fields.length+1}// get child
,o.getChildFacets=function(e,t,n){var r=this,i=r.fields;if(!(i.length<t)){var a=[],o=i[t-1],s=r.getFieldValues(o,e);return s.forEach((function(i,c){var l=[{field:o,value:i,values:s}],u=r.getFilter(l),h=e.filter(u);if(h.length){var f={type:r.type,colValue:i,colField:o,colIndex:c,rows:r.getRows(),rowIndex:t,data:h,children:r.getChildFacets(h,t+1,n)};a.push(f),n.push(f)}})),a}}// 设置 region
,o.setRegion=function(e){var t=this;t.forceColIndex(e),e.forEach((function(e){e.region=t.getRegion(e.rows,e.cols,e.colIndex,e.rowIndex)}))}// set column index of facets
,o.forceColIndex=function(e){var t=this,n=[],r=0;e.forEach((function(e){t.isLeaf(e)&&(n.push(e),e.colIndex=r,r++)})),n.forEach((function(e){e.cols=n.length}));for(var i=t.fields.length-1;i>=0;i--)// var yIndex = maxLevel - i;
for(var a=t.getFacetsByLevel(e,i),o=0;o<a.length;o++){var s=a[o];t.isLeaf(s)||(s.originColIndex=s.colIndex,s.colIndex=t.getRegionIndex(s.children),s.cols=n.length)}}// get facet use level
,o.getFacetsByLevel=function(e,t){var n=[];return e.forEach((function(e){e.rowIndex===t&&n.push(e)})),n}// set facets region
,o.getRegion=function(e,t,n,r){var i=1/t,a=1/e,o={x:i*n,y:a*r};// x轴方向的每个分面的偏移
return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}}// if the facet has children , make it's column index in the middle of it's children
,o.getRegionIndex=function(e){var t=e[0];return(e[e.length-1].colIndex-t.colIndex)/2+t.colIndex}// is  a leaf without children
,o.isLeaf=function(e){return!e.children||!e.children.length},o.setXAxis=function(e,t,n){
// 当是最后一行或者下面没有 view 时文本不显示
n.rowIndex!==n.rows-1&&(t[e].label=null,t[e].title=null)}// 设置 y 坐标轴的文本、title 是否显示
,o.setYAxis=function(e,t,n){0!==n.originColIndex&&0!==n.colIndex&&(t[e].title=null,t[e].label=null)}// 绘制完成后
,o.onPaint=function(){e.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},o.drawLines=function(e,t){var n=this,r=t.addGroup();e.forEach((function(e){if(!n.isLeaf(e)){var t=e.children;n._addFacetLines(e,t,r)}}))}// add lines with it's children
,o._addFacetLines=function(e,t,n){var r=this,i=e.view.getViewRegion(),a={x:i.start.x+(i.end.x-i.start.x)/2,y:i.start.y};t.forEach((function(e){var t=e.view.getViewRegion(),i={x:t.start.x+(t.end.x-t.start.x)/2,y:t.end.y},o={x:a.x,y:a.y+(i.y-a.y)/2},s={x:i.x,y:o.y};r._drawLine([a,o,s,i],n)}))},o._getPath=function(e){var t=[];return this.lineSmooth?(t.push(["M",e[0].x,e[0].y]),t.push(["C",e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y])):e.forEach((function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t}// draw line width points
,o._drawLine=function(e,t){var n=this._getPath(e),r=this.line;t.addShape("path",{attrs:a({path:n},r)})},i}(i);e.exports=o},
/* 550 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview mirror facets
 * @author dxq613@gmail.com
 */var i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="mirror",this.transpose=!1,t},a.init=function(){var t=this;t.transpose?(t.cols=2,t.rows=1):(t.cols=1,t.rows=2),e.prototype.init.call(this)},a.beforeProcessView=function(e,t){this.transpose?t.colIndex%2==0?e.coord().transpose().scale(-1,1):e.coord().transpose():t.rowIndex%2!=0&&e.coord().scale(1,-1)},a.renderTitle=function(e,t){this.transpose?this.drawColTitle(e,t):this.drawRowTitle(e,t)},a.setXAxis=function(e,t,n){
// 当是最后一行或者下面没有 view 时文本不显示
1!==n.colIndex&&1!==n.rowIndex||(t[e].label=null,t[e].title=null)},a.setYAxis=function(){},i}(n(458));e.exports=i},
/* 551 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}
/**
 * @fileOverview Use matrices to compare different fields
 * @author dxq613@gmail.com
 */var i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="matrix",t.showTitle=!1,t},a.generateFacets=function(e){for(var t=this,n=t.fields,r=n.length,i=r,a=[],o=0;o<i;o++)for(var s=n[o],c=0;c<r;c++){var l=n[c],u={type:t.type,colValue:s,rowValue:l,colField:s,rowField:l,colIndex:o,rowIndex:c,cols:i,rows:r,data:e,region:t.getRegion(r,i,o,c)};a.push(u)}return a}// 设置 x 坐标轴的文本、title 是否显示
,a.setXAxis=function(e,t,n){n.rowIndex!==n.rows-1&&(t[e].title=null,t[e].label=null)}// 设置 y 坐标轴的文本、title 是否显示
,a.setYAxis=function(e,t,n){0!==n.colIndex&&(t[e].title=null,t[e].label=null)},i}(n(457));e.exports=i},
/* 552 */
/***/function(e,t,n){
/**
 * @fileOverview Interaction
 * @author leungwensen@gmail.com
 */
var r=n(206),i=n(163),a=n(0),o={Base:n(205),Brush:n(553),Drag:n(554),ScrollBar:n(556),ShapeSelect:n(558),Slider:n(559),Zoom:n(561)};r._Interactions={},r.registerInteraction=function(e,t){r._Interactions[e]=t},r.getInteraction=function(e){return r._Interactions[e]},// binding on View
i.prototype.getInteractions=function(){var e=this;return e._interactions||(e._interactions={}),e._interactions},i.prototype._setInteraction=function(e,t){var n=this.getInteractions();n[e]&&n[e]!==t&&
// only one interaction for a key
n[e].destroy(),n[e]=t},i.prototype.clearInteraction=function(e){var t=this.getInteractions();e?(t[e]&&(t[e]._reset(),t[e].destroy()),delete t[e]):a.each(t,(function(e,n){e._reset(),e.destroy(),delete t[n]}))},i.prototype.interact=i.prototype.interaction=function(e,t){var n=this,i=new(r.getInteraction(e))(t,n);return n._setInteraction(e,i),n},r.registerInteraction("brush",o.Brush),r.registerInteraction("Brush",o.Brush),r.registerInteraction("drag",o.Drag),r.registerInteraction("Drag",o.Drag),r.registerInteraction("zoom",o.Zoom),r.registerInteraction("Zoom",o.Zoom),r.registerInteraction("scroll-bar",o.ScrollBar),r.registerInteraction("ScrollBar",o.ScrollBar),r.registerInteraction("shape-select",o.ShapeSelect),r.registerInteraction("ShapeSelect",o.ShapeSelect),r.registerInteraction("slider",o.Slider),r.registerInteraction("Slider",o.Slider),e.exports=o},
/* 553 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(0),a=n(205),o=["X","Y","XY","POLYGON"],s=function(e){var t,n;n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=s.prototype;function s(t,n){var r,i=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r=e.call(this,t,n)||this);i.filter=!i.draggable,i.type=i.type.toUpperCase(),i.chart=n,o.includes(i.type)||(i.type="XY");var a,s=i.canvas;if(s&&(s.get("children").map((function(e){return"plotBack"===e.get("type")?(a=e.get("plotRange"),!1):e})),i.plot={start:a.bl,end:a.tr}),n){var c=n.get("coord");i.plot={start:c.start,end:c.end},n.on("afterrender",(function(){i.plot={start:c.start,end:c.end}})),i.isTransposed=c.isTransposed;var l=n._getScales("x"),u=n._getScales("y");i.xScale=i.xField?l[i.xField]:n.getXScale(),i.yScale=i.yField?u[i.yField]:n.getYScales()[0]}return r}// onBurshstart() { }
// onBrushmove() { }
// onBrushend() {}
// onDragstart() {}
// onDragmove() {}
// onDragend() {}
return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{type:"XY",startPoint:null,brushing:!1,dragging:!1,brushShape:null,container:null,polygonPath:null,style:{fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},draggable:!1,dragOffX:0,dragOffY:0,inPlot:!0,xField:null,yField:null})},a.start=function(e){var t=this,n=t.canvas,r=t.type,i=t.brushShape;if(r){t.brushing&&
// 鼠标移动到图表外up, 回到图表内点击即结束绘制，mousedown的时候却正在绘制中
t.end(e);var a={x:e.offsetX,y:e.offsetY};if(a.x){var o=t.plot&&t.inPlot,s=n.get("canvasDOM"),c=n.get("pixelRatio");if(t.selection&&(t.selection=null),t.draggable&&i&&!i.get("destroyed")){
// allow drag the brushShape
if(i.isHit(a.x*c,a.y*c)){if(s.style.cursor="move",t.selection=i,t.dragging=!0,"X"===r)t.dragoffX=a.x-i.attr("x"),t.dragoffY=0;else if("Y"===r)t.dragoffX=0,t.dragoffY=a.y-i.attr("y");else if("XY"===r)t.dragoffX=a.x-i.attr("x"),t.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var l=i.getBBox();t.dragoffX=a.x-l.minX,t.dragoffY=a.y-l.minY}t.onDragstart&&t.onDragstart(e)}t.prePoint=a}if(!t.dragging){
// brush start
t.onBrushstart&&t.onBrushstart(a);var u=t.container;if(o){var h=t.plot,f=h.start,d=h.end;if(a.x<f.x||a.x>d.x||a.y<d.y||a.y>f.y)return}s.style.cursor="crosshair",t.startPoint=a,t.brushShape=null,t.brushing=!0,u?u.clear():(u=n.addGroup({zIndex:5})).initTransform(),t.container=u,"POLYGON"===r&&(t.polygonPath="M "+a.x+" "+a.y)}}}},a.process=function(e){var t=this,n=t.brushing,r=t.dragging,a=t.type,o=t.plot,s=t.startPoint,c=t.xScale,l=t.yScale,u=t.canvas;if(n||r){var h={x:e.offsetX,y:e.offsetY},f=u.get("canvasDOM");if(n){f.style.cursor="crosshair";var d,p,g,m,v=o.start,y=o.end,A=t.polygonPath,b=t.brushShape,w=t.container;t.plot&&t.inPlot&&(h=t._limitCoordScope(h)),"Y"===a?(d=v.x,p=h.y>=s.y?s.y:h.y,g=Math.abs(v.x-y.x),m=Math.abs(s.y-h.y)):"X"===a?(d=h.x>=s.x?s.x:h.x,p=y.y,g=Math.abs(s.x-h.x),m=Math.abs(y.y-v.y)):"XY"===a?(h.x>=s.x?(d=s.x,p=h.y>=s.y?s.y:h.y):(d=h.x,p=h.y>=s.y?s.y:h.y),g=Math.abs(s.x-h.x),m=Math.abs(s.y-h.y)):"POLYGON"===a&&(A+="L "+h.x+" "+h.y,t.polygonPath=A,b?!b.get("destroyed")&&b.attr(i.mix({},b._attrs,{path:A})):b=w.addShape("path",{attrs:i.mix(t.style,{path:A})})),"POLYGON"!==a&&(b?!b.get("destroyed")&&b.attr(i.mix({},b._attrs,{x:d,y:p,width:g,height:m})):b=w.addShape("rect",{attrs:i.mix(t.style,{x:d,y:p,width:g,height:m})})),t.brushShape=b}else if(r){f.style.cursor="move";var x=t.selection;if(x&&!x.get("destroyed"))if("POLYGON"===a){var C=t.prePoint;t.selection.translate(h.x-C.x,h.y-C.y)}else t.dragoffX&&x.attr("x",h.x-t.dragoffX),t.dragoffY&&x.attr("y",h.y-t.dragoffY)}t.prePoint=h,u.draw();var _=t._getSelected(),I=_.data,E=_.shapes,k=_.xValues,S=_.yValues,B={data:I,shapes:E};c&&(B[c.field]=k),l&&(B[l.field]=S),// 将框选的数据传递给 ev，供 onEnd 钩子使用
i.mix(e,B),B.x=h.x,B.y=h.y,t.onDragmove&&t.onDragmove(B),t.onBrushmove&&t.onBrushmove(B)}},a.end=function(e){var t=this;if(t.brushing||t.dragging){var n=t.data,r=t.shapes,a=t.xValues,o=t.yValues,s=t.canvas,c=t.type,l=t.startPoint,u=t.chart,h=t.container,f=t.xScale,d=t.yScale,p=e.offsetX,g=e.offsetY;if(s.get("canvasDOM").style.cursor="default",null!==l){if(Math.abs(l.x-p)<=1&&Math.abs(l.y-g)<=1)
// 防止点击事件
return t.brushing=!1,t.dragging=!1,h.clear(),void s.draw();var m={data:n,shapes:r};if(f&&(m[f.field]=a),d&&(m[d.field]=o),// 将框选的数据传递给 ev，供 onEnd 钩子使用
i.mix(e,m),m.x=p,m.y=g,t.dragging)t.dragging=!1,t.onDragend&&t.onDragend(m);else if(t.brushing){t.brushing=!1;var v=t.brushShape,y=t.polygonPath;"POLYGON"===c&&(y+="z",v&&!v.get("destroyed")&&v.attr(i.mix({},v._attrs,{path:y})),t.polygonPath=y,s.draw()),t.onBrushend?t.onBrushend(m):u&&t.filter&&(h.clear(),// clear the brush
// filter data
!t.isTransposed&&"X"===c||t.isTransposed&&"Y"===c?f&&u.filter(f.field,(function(e){return a.indexOf(e)>-1})):(!t.isTransposed&&"Y"===c||t.isTransposed&&"X"===c||f&&u.filter(f.field,(function(e){return a.indexOf(e)>-1})),d&&u.filter(d.field,(function(e){return o.indexOf(e)>-1}))),u.repaint())}}}},a.reset=function(){var e=this,t=e.chart,n=e.filter,r=e.brushShape,i=e.canvas;this._init(),// 重置各种参考值
t&&n&&(t.get("options").filters={},t.repaint()),r&&(r.destroy(),i.draw())},a._limitCoordScope=function(e){var t=this.plot,n=t.start,r=t.end;return e.x<n.x&&(e.x=n.x),e.x>r.x&&(e.x=r.x),e.y<r.y&&(e.y=r.y),e.y>n.y&&(e.y=n.y),e},a._getSelected=function(){var e=this,t=e.chart,n=e.xScale,r=e.yScale,i=e.brushShape,a=e.canvas,o=a.get("pixelRatio"),s=[],c=[],l=[],u=[];return t&&t.get("geoms").map((function(e){return e.getShapes().map((function(e){var t=e.get("origin");return Array.isArray(t)||(
// 线图、区域图等
t=[t]),t.map((function(t){if(i.isHit(t.x*o,t.y*o)){s.push(e);var a=t._origin;u.push(a),n&&c.push(a[n.field]),r&&l.push(a[r.field])}return t})),e})),e})),e.shapes=s,e.xValues=c,e.yValues=l,e.data=u,a.draw(),{data:u,xValues:c,yValues:l,shapes:s}},s}(a);// G2.registerInteraction('brush', Brush);
// G2.registerInteraction('Brush', Brush);
e.exports=s},
/* 554 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(0),a=n(205),o=n(555),s=n(440),c=n(441),l=864e5,u=["X","Y","XY"],h=function(e){var t,n;n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=h.prototype;function h(t,n){var r,a=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r=e.call(this,t,n)||this);a.type=a.type.toUpperCase(),a.chart=n,a.coord=n.get("coord");var s=a.data=n.get("data");// pre process
o(n);var l=n.getYScales(),h=n.getXScale();l.push(h);var f=n.get("scaleController");return l.forEach((function(e){var t=e.field;a.limitRange[t]=c(s,e);var n=f.defs[t]||{};a.originScaleDefsByField[t]=i.mix(n,{nice:!!n.nice}),e.isLinear&&(a.stepByField[t]=(e.max-e.min)*a.stepRatio)})),u.includes(a.type)||(a.type="X"),a._disableTooltip(),r}// onDragstart() { }
// onDrag() { }
// onDragend() { }
return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{type:"X",stepRatio:.05,limitRange:{},stepByField:{},threshold:20,originScaleDefsByField:{},previousPoint:null,isDragging:!1})},a._disableTooltip=function(){var e=this.chart;e.get("tooltipController")&&(this._showTooltip=!0,e.tooltip(!1))},a._enableTooltip=function(e){var t=this.chart;this._showTooltip&&(t.tooltip(!0),t.showTooltip(e))},a._applyTranslate=function(e,t,n){void 0===t&&(t=0),e.isLinear?this._translateLinearScale(e,t,n):this._translateCatScale(e,t,n)},a._translateCatScale=function(e,t,n){var r=this.chart,a=e.type,o=e.field,c=e.values,u=e.ticks,h=s(r,o),f=this.limitRange[o],d=t/n,p=c.length,g=Math.max(1,Math.abs(parseInt(d*p))),m=f.indexOf(c[0]),v=f.indexOf(c[p-1]);if(t>0&&m>=0){
// right
for(var y=0;y<g&&m>0;y++)m-=1,v-=1;var A=f.slice(m,v+1),b=null;if("timeCat"===a){for(var w=u.length>2?u[1]-u[0]:l,x=u[0]-w;x>=A[0];x-=w)u.unshift(x);b=u}r.scale(o,i.mix({},h,{values:A,ticks:b}))}else if(t<0&&v<=f.length-1){
// left
for(var C=0;C<g&&v<f.length-1;C++)m+=1,v+=1;var _=f.slice(m,v+1),I=null;if("timeCat"===a){for(var E=u.length>2?u[1]-u[0]:l,k=u[u.length-1]+E;k<=_[_.length-1];k+=E)u.push(k);I=u}r.scale(o,i.mix({},h,{values:_,ticks:I}))}},a._translateLinearScale=function(e,t,n){var r=this.chart,a=this.limitRange,o=e.min,c=e.max,l=e.field;if(o!==a[l].min||c!==a[l].max){var u=t/n,h=c-o,f=s(r,l);r.scale(l,i.mix({},f,{nice:!1,min:o+u*h,max:c+u*h}))}},a.start=function(e){var t=this;t.canvas.get("canvasDOM").style.cursor="pointer",// const coord = chart.get('coord');
t.isDragging=!0,t.previousPoint={x:e.x,y:e.y},t._disableTooltip()},a.process=function(e){var t=this;if(t.isDragging){var n=t.chart,r=t.type,i=t.canvas,a=t.coord,o=t.threshold;i.get("canvasDOM").style.cursor="move";// const coord = chart.get('coord');
var s=t.previousPoint,c=e,l=c.x-s.x,u=c.y-s.y,h=!1;if(Math.abs(l)>o&&r.indexOf("X")>-1){h=!0;var f=n.getXScale();t._applyTranslate(f,f.isLinear?-l:l,a.width)}Math.abs(u)>o&&r.indexOf("Y")>-1&&(h=!0,n.getYScales().forEach((function(e){t._applyTranslate(e,c.y-s.y,a.height)}))),h&&(t.previousPoint=c,n.repaint())}},a.end=function(e){var t=this;t.isDragging=!1,t.canvas.get("canvasDOM").style.cursor="default",t._enableTooltip(e)},a.reset=function(){var e=this,t=e.view,n=e.originScaleDefsByField,r=t.getYScales(),i=t.getXScale();r.push(i),r.forEach((function(e){if(e.isLinear){var r=e.field;t.scale(r,n[r])}})),t.repaint(),e._disableTooltip()},h}(a);e.exports=h},
/* 555 */
/***/function(e,t,n){var r=n(0),i=n(100),a=n(439);e.exports=function(e){e.on("beforeinitgeoms",(function(){e.set("limitInPlot",!0);var t=e.get("data"),n=a(e);if(!n)return t;var o=e.get("geoms"),s=!1;r.each(o,(function(e){if(["area","line","path"].includes(e.get("type")))return s=!0,!1}));var c=[];if(r.each(n,(function(e,t){!s&&e&&(e.values||e.min||e.max)&&c.push(t)})),0===c.length)return t;var l=[];r.each(t,(function(e){var t=!0;r.each(c,(function(a){var o=e[a];if(o){var s=n[a];if("timeCat"===s.type){var c=s.values;r.isNumber(c[0])&&(o=i.toTimeStamp(o))}(s.values&&!s.values.includes(o)||s.min&&o<s.min||s.max&&o>s.max)&&(t=!1)}})),t&&l.push(e)})),e.set("filteredData",l)}))}},
/* 556 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(0),a=n(205),o=n(557),s=n(441),c=function(e){var t,n;n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=c.prototype;function c(t,n){var r,a=(r=e.call(this,t,n)||this).getDefaultCfg();return n.set("_scrollBarCfg",i.deepMix({},a,t)),n.set("_limitRange",{}),n.get("_horizontalBar")||n.get("_verticalBar")||r._renderScrollBars(),r}return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,type:"X",xStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:0,offsetY:-10},yStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:8,offsetY:0}})},a._renderScrollBars=function(){var e=this.chart,t=e.get("_scrollBarCfg");if(t){var n=e.get("data"),r=e.get("plotRange");r.width=Math.abs(r.br.x-r.bl.x),r.height=Math.abs(r.tl.y-r.bl.y);var i=e.get("backPlot"),a=e.get("canvas").get("height"),c=e.get("_limitRange"),l=t.type;if(l.indexOf("X")>-1){var u=t.xStyle,h=u.offsetX,f=u.offsetY,d=u.lineCap,p=u.backgroundColor,g=u.fillerColor,m=u.size,v=e.getXScale(),y=c[v.field];y||(y=s(n,v),c[v.field]=y);var A=o(v,y,v.type),b=e.get("_horizontalBar"),w=a-m/2+f;b?b.get("children")[1].attr({x1:Math.max(r.bl.x+r.width*A[0]+h,r.bl.x),x2:Math.min(r.bl.x+r.width*A[1]+h,r.br.x)}):((b=i.addGroup({className:"horizontalBar"})).addShape("line",{attrs:{x1:r.bl.x+h,y1:w,x2:r.br.x+h,y2:w,lineWidth:m,stroke:p,lineCap:d}}),b.addShape("line",{attrs:{x1:Math.max(r.bl.x+r.width*A[0]+h,r.bl.x),y1:w,x2:Math.min(r.bl.x+r.width*A[1]+h,r.br.x),y2:w,lineWidth:m,stroke:g,lineCap:d}}),e.set("_horizontalBar",b))}if(l.indexOf("Y")>-1){var x=t.yStyle,C=x.offsetX,_=x.offsetY,I=x.lineCap,E=x.backgroundColor,k=x.fillerColor,S=x.size,B=e.getYScales()[0],M=c[B.field];M||(M=s(n,B),c[B.field]=M);var T=o(B,M,B.type),O=e.get("_verticalBar"),D=S/2+C;O?O.get("children")[1].attr({y1:Math.max(r.tl.y+r.height*T[0]+_,r.tl.y),y2:Math.min(r.tl.y+r.height*T[1]+_,r.bl.y)}):((O=i.addGroup({className:"verticalBar"})).addShape("line",{attrs:{x1:D,y1:r.tl.y+_,x2:D,y2:r.bl.y+_,lineWidth:S,stroke:E,lineCap:I}}),O.addShape("line",{attrs:{x1:D,y1:Math.max(r.tl.y+r.height*T[0]+_,r.tl.y),x2:D,y2:Math.min(r.tl.y+r.height*T[1]+_,r.bl.y),lineWidth:S,stroke:k,lineCap:I}}),e.set("_verticalBar",O))}}},a._clear=function(){var e=this.chart;if(e){var t=e.get("_horizontalBar"),n=e.get("_verticalBar");t&&t.remove(!0),n&&n.remove(!0),e.set("_horizontalBar",null),e.set("_verticalBar",null)}},a._bindEvents=function(){this._onAfterclearOrBeforechangedata=this._onAfterclearOrBeforechangedata.bind(this),this._onAfterclearinner=this._onAfterclearinner.bind(this),this._onAfterdrawgeoms=this._onAfterdrawgeoms.bind(this);var e=this.chart;e.on("afterclear",this._onAfterclearOrBeforechangedata),e.on("beforechangedata",this._onAfterclearOrBeforechangedata),e.on("afterclearinner",this._onAfterclearinner),e.on("afterdrawgeoms",this._onAfterdrawgeoms)},a._onAfterclearOrBeforechangedata=function(){this.chart&&this.chart.set("_limitRange",{})},a._onAfterclearinner=function(){this._clear()},a._onAfterdrawgeoms=function(){this._renderScrollBars()},a._clearEvents=function(){var e=this.chart;e&&(e.off("afterclear",this._onAfterclearOrBeforechangedata),e.off("beforechangedata",this._onAfterclearOrBeforechangedata),e.off("afterclearinner",this._onAfterclearinner),e.off("afterdrawgeoms",this._onAfterdrawgeoms))},a.destroy=function(){this._clearEvents(),this._clear(),this.canvas.draw()},c}(a);e.exports=c},
/* 557 */
/***/function(e,t){e.exports=function(e,t,n){if(!e)return[0,1];var r=0,i=0;if("linear"===n){var a=t.min,o=t.max-a;r=(e.min-a)/o,i=(e.max-a)/o}else{var s=t,c=e.values,l=s.indexOf(c[0]),u=s.indexOf(c[c.length-1]);r=l/(s.length-1),i=u/(s.length-1)}return[r,i]};
/***/},
/* 558 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(0);function a(e,t){var n={};for(var r in t)n[r]=e[r];return n}var o=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=o.prototype;return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},s.start=function(e){var t,n=this,r=n.view,o=[];if(r.eachShape((function(n,r){r.isPointInPath(e.x,e.y)?t=r:o.push(r)})),t)if(t.get("_selected")){
// 已经被选中
if(!n.cancelable)
// 不允许取消选中则不处理
return;n.reset()}else{
// 未被选中
var s=n.selectStyle,c=n.unSelectStyle,l=a(t.attr(),t);// 获取选中效果对应的本来效果,保存下来
t.set("_originAttrs",l),t.attr(s),i.each(o,(function(e){var t=e.get("_originAttrs");// 先恢复到默认状态下
t&&e.attr(t),e.set("_selected",!1),// 保存未选中效果对应的原始效果
c&&(t=a(e.attr(),c),e.set("_originAttrs",t),e.attr(c))})),t.set("_selected",!0),n.selectedShape=t,n.canvas.draw()}else n.reset()},s.end=function(e){var t=this.selectedShape;t&&!t.get("destroyed")&&t.get("origin")&&(e.data=t.get("origin")._origin,// 绘制数据，包含原始数据啊
e.shapeInfo=t.get("origin"),e.shape=t,e.selected=!!t.get("_selected"))},s.reset=function(){var e=this;if(e.selectedShape){var t=e.view.get("geoms")[0].get("container").get("children")[0].get("children");i.each(t,(function(e){var t=e.get("_originAttrs");t&&(e._attrs=t,e.set("_originAttrs",null)),e.set("_selected",!1)})),e.canvas.draw()}},o}(n(205));e.exports=o},
/* 559 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(560),a=n(163),o=n(0),s=n(18),c=n(8),l=n(205),u=n(440),h=n(439),f=s.Canvas,d=o.DomUtil,p=o.isNumber,g=function(e){var t,n;n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=l.prototype;function l(t,n){var r,i=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r=e.call(this,t,n)||this);return i._initContainer(),i._initStyle(),i.render(),r}return s.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return o.mix({},t,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,height:26,width:"auto",
// 默认自适应
padding:c.plotCfg.padding,container:null,xAxis:null,yAxis:null,
// 选中区域的样式
fillerStyle:{fill:"#BDCCED",fillOpacity:.3},
// 滑动条背景样式
backgroundStyle:{stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},range:[0,100],layout:"horizontal",
// 文本颜色
textStyle:{fill:"#545454"},
// 滑块的样式
handleStyle:{img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},
// 背景图表的配置，如果为 false 则表示不渲染
backgroundChart:{type:["area"],
// 图表的类型，可以是字符串也可是是数组
color:"#CCD6EC"}})},s._initContainer=function(){var e=this,t=e.container;if(!t)throw new Error("Please specify the container for the Slider!");o.isString(t)?e.domContainer=document.getElementById(t):e.domContainer=t},s.forceFit=function(){var e=this;if(e&&!e.destroyed){var t=d.getWidth(e.domContainer),n=e.height;if(t!==e.domWidth){var r=e.canvas;r.changeSize(t,n),// 改变画布尺寸
e.bgChart&&e.bgChart.changeWidth(t),r.clear(),e._initWidth(),e._initSlider(),// 初始化滑动条
e._bindEvent(),r.draw()}}},s._initForceFitEvent=function(){var e=this,t=setTimeout(o.wrapBehavior(e,"forceFit"),200);clearTimeout(e.resizeTimer),e.resizeTimer=t},s._initStyle=function(){var e=this;e.handleStyle=o.mix({width:e.height,height:e.height},e.handleStyle),"auto"===e.width&&
// 宽度自适应
window.addEventListener("resize",o.wrapBehavior(e,"_initForceFitEvent"))},s._initWidth=function(){var e,t=this;e="auto"===t.width?d.getWidth(t.domContainer):t.width,t.domWidth=e;var n=o.toAllPadding(t.padding);"horizontal"===t.layout?(t.plotWidth=e-n[1]-n[3],t.plotPadding=n[3],t.plotHeight=t.height):"vertical"===t.layout&&(t.plotWidth=t.width,t.plotHeight=t.height-n[0]-n[2],t.plotPadding=n[0])},s._initCanvas=function(){var e=this,t=e.domWidth,n=e.height,r=new f({width:t,height:n,containerDOM:e.domContainer,capture:!1}),i=r.get("el");i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=3,e.canvas=r},s._initBackground=function(){var e,t=this,n=this.chart,r=n.getAllGeoms[0],i=t.data=t.data||n.get("data"),s=n.getXScale(),c=t.xAxis||s.field,l=t.yAxis||n.getYScales()[0].field,u=o.deepMix(((e={})[""+c]={range:[0,1]},e),h(n),t.scales);if(// 用户列定义
delete u[c].min,delete u[c].max,!i)
// 没有数据，则不创建
throw new Error("Please specify the data!");if(!c)throw new Error("Please specify the xAxis!");if(!l)throw new Error("Please specify the yAxis!");var f=t.backgroundChart,d=f.type||r.get("type"),p=f.color||"grey",g=f.shape;o.isArray(d)||(d=[d]);var m=o.toAllPadding(t.padding),v=new a({container:t.container,width:t.domWidth,height:t.height,padding:[0,m[1],0,m[3]],animate:!1});v.source(i),v.scale(u),v.axis(!1),v.tooltip(!1),v.legend(!1),o.each(d,(function(e,t){var n=v[e]().position(c+"*"+l).opacity(1),r=o.isArray(p)?p[t]:p;r&&(o.isObject(r)?
// 通过 { field: 'ss', colors: [ ] } 的方式申明color
r.field&&n.color(r.field,r.colors):n.color(r));var i=o.isArray(g)?g[t]:g;i&&(o.isObject(i)?
// 通过 { field: 'ss', shapes: [ ], callback } 的方式申明shape
i.field&&n.shape(i.field,i.callback||i.shapes):n.shape(i))})),v.render(),t.bgChart=v,t.scale="horizontal"===t.layout?v.getXScale():v.getYScales()[0],"vertical"===t.layout&&v.destroy()},s._initRange=function(){var e=this,t=e.startRadio,n=e.endRadio,r=e._startValue,i=e._endValue,a=e.scale,o=0,s=1;// startRadio 优先级高于 start
p(t)?o=t:r&&(o=a.scale(a.translate(r))),// endRadio 优先级高于 end
p(n)?s=n:i&&(s=a.scale(a.translate(i)));var c=e.minSpan,l=e.maxSpan,u=0;if("time"===a.type||"timeCat"===a.type){
// 时间类型已排序
var h=a.values,f=h[0];u=h[h.length-1]-f}else a.isLinear&&(u=a.max-a.min);u&&c&&(e.minRange=c/u*100),u&&l&&(e.maxRange=l/u*100);var d=[100*o,100*s];return e.range=d,d},s._getHandleValue=function(e){var t=this,n=t.range,r=n[0]/100,i=n[1]/100,a=t.scale;return"min"===e?t._startValue?t._startValue:a.invert(r):t._endValue?t._endValue:a.invert(i)},s._initSlider=function(){var e=this,t=e.canvas,n=e._initRange(),r=e.scale,a=t.addGroup(i,{middleAttr:e.fillerStyle,range:n,minRange:e.minRange,maxRange:e.maxRange,layout:e.layout,width:e.plotWidth,height:e.plotHeight,backgroundStyle:e.backgroundStyle,textStyle:e.textStyle,handleStyle:e.handleStyle,minText:r.getText(e._getHandleValue("min")),maxText:r.getText(e._getHandleValue("max"))});"horizontal"===e.layout?a.translate(e.plotPadding,0):"vertical"===e.layout&&a.translate(0,e.plotPadding),e.rangeElement=a},s._updateElement=function(e,t){var n=this,r=n.chart,i=n.scale,a=n.rangeElement,s=i.field,c=a.get("minTextElement"),l=a.get("maxTextElement"),h=i.invert(e),f=i.invert(t),d=i.getText(h),p=i.getText(f);c.attr("text",d),l.attr("text",p),n._startValue=d,n._endValue=p,n.onChange&&n.onChange({startText:d,endText:p,startValue:h,endValue:f,startRadio:e,endRadio:t}),r.scale(s,o.mix({},u(r,s),{nice:!1,min:h,max:f})),r.repaint()},s._bindEvent=function(){var e=this;e.rangeElement.on("sliderchange",(function(t){var n=t.range,r=n[0]/100,i=n[1]/100;e._updateElement(r,i)}))},s.clear=function(){var e=this;e.canvas.clear(),e.bgChart&&e.bgChart.destroy(),e.bgChart=null,e.scale=null,e.canvas.draw()},s.repaint=function(){this.clear(),this.render()},s.render=function(){var e=this;e._initWidth(),e._initCanvas(),e._initBackground(),e._initSlider(),e._bindEvent(),e.canvas.draw()},s.destroy=function(){var e=this;clearTimeout(e.resizeTimer),e.rangeElement.off("sliderchange"),e.bgChart&&e.bgChart.destroy(),e.canvas.destroy();for(var t=e.domContainer;t.hasChildNodes();)t.removeChild(t.firstChild);window.removeEventListener("resize",o.getWrapBehavior(e,"_initForceFitEvent")),e.destroyed=!0},l}(l);e.exports=g},
/* 560 */
/***/function(e,t,n){var r=n(0),i=n(18).Group,a=r.DomUtil,o=function e(t){e.superclass.constructor.call(this,t)};r.extend(o,i),r.augment(o,{getDefaultCfg:function(){return{
/**
       * 范围
       * @type {Array}
       */
range:null,
/**
       * 中滑块属性
       * @type {ATTRS}
       */
middleAttr:null,
/**
       * 背景
       * @type {G-Element}
       */
backgroundElement:null,
/**
       * 下滑块
       * @type {G-Element}
       */
minHandleElement:null,
/**
       * 上滑块
       * @type {G-Element}
       */
maxHandleElement:null,
/**
       * 中块
       * @type {G-Element}
       */
middleHandleElement:null,
/**
       * 当前的激活的元素
       * @type {G-Element}
       */
currentTarget:null,
/**
       * 布局方式： horizontal，vertical
       * @type {String}
       */
layout:"vertical",
/**
       * 宽
       * @type {Number}
       */
width:null,
/**
       * 高
       * @type {Number}
       */
height:null,
/**
       * 当前的PageX
       * @type {Number}
       */
pageX:null,
/**
       * 当前的PageY
       * @type {Number}
       */
pageY:null}},_initHandle:function(e){var t,n,i,a=this,o=a.addGroup(),s=a.get("layout"),c=a.get("handleStyle"),l=c.img,u=c.width,h=c.height;if("horizontal"===s){var f=c.width;i="ew-resize",n=o.addShape("Image",{attrs:{x:-f/2,y:0,width:f,height:h,img:l,cursor:i}}),t=o.addShape("Text",{attrs:r.mix({x:"min"===e?-(f/2+5):f/2+5,y:h/2,textAlign:"min"===e?"end":"start",textBaseline:"middle",text:"min"===e?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))})}else i="ns-resize",n=o.addShape("Image",{attrs:{x:0,y:-h/2,width:u,height:h,img:l,cursor:i}}),t=o.addShape("Text",{attrs:r.mix({x:u/2,y:"min"===e?h/2+5:-(h/2+5),textAlign:"center",textBaseline:"middle",text:"min"===e?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))});return this.set(e+"TextElement",t),this.set(e+"IconElement",n),o},_initSliderBackground:function(){var e=this.addGroup();return e.initTransform(),e.translate(0,0),e.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),e},_beforeRenderUI:function(){var e=this._initSliderBackground(),t=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",t),this.set("maxHandleElement",n),this.set("backgroundElement",e),e.set("zIndex",0),r.set("zIndex",1),t.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(e){var t=this.get("range"),n=t[0]/100,r=t[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),c=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===e?(c.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(c.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},_isElement:function(e,t){
// 判断是否是该元素
var n=this.get(t);return e===n||!!n.isGroup&&n.get("children").indexOf(e)>-1},_getRange:function(e,t){var n=e+t;return n=(n=n>100?100:n)<0?0:n},_limitRange:function(e,t,n){n[0]=this._getRange(e,n[0]),n[1]=n[0]+t,n[1]>100&&(n[1]=100,n[0]=n[1]-t)},_updateStatus:function(e,t){var n="x"===e?this.get("width"):this.get("height");e=r.upperFirst(e);var i,a=this.get("range"),o=this.get("page"+e),s=this.get("currentTarget"),c=this.get("rangeStash"),l="vertical"===this.get("layout")?-1:1,u=t["page"+e],h=(u-o)/n*100*l,f=this.get("minRange"),d=this.get("maxRange");a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),d&&a[1]-a[0]>=d&&this._limitRange(h,d,a)),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),d&&a[1]-a[0]>=d&&this._limitRange(h,d,a))),this._isElement(s,"middleHandleElement")&&(i=c[1]-c[0],this._limitRange(h,i,a)),this.emit("sliderchange",{range:a}),this.set("page"+e,u),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(e){var t=e.currentTarget,n=e.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",t),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var e=this.get("canvas").get("containerDOM");this.onMouseMoveListener=a.addEventListener(e,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(e,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),// @2018-06-06 by blue.lb 添加mouseleave事件监听，让用户在操作出滑块区域后有一个“正常”的效果，可以正常重新触发滑块的操作流程
this.onMouseLeaveListener=a.addEventListener(e,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(e){"horizontal"===this.get("layout")?this._updateStatus("x",e):this._updateStatus("y",e)},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()}}),e.exports=o},
/* 561 */
/***/function(e,t,n){function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(0),a=n(205),o=n(440),s=n(441),c=["X","Y","XY"],l=function(e){var t,n;n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=l.prototype;function l(t,n){var r,a=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r=e.call(this,t,n)||this);a.chart=n,a.type=a.type.toUpperCase();var o=a.data=n.get("data"),l=n.getYScales(),u=n.getXScale();l.push(u);var h=n.get("scaleController");return l.forEach((function(e){var t=e.field,n=h.defs[t]||{};a.limitRange[t]=s(o,e),a.originScaleDefsByField[t]=i.mix(n,{nice:!!n.nice}),e.isLinear?a.stepByField[t]=(e.max-e.min)*a.stepRatio:a.stepByField[t]=a.catStep})),c.includes(a.type)||(a.type="X"),r}// onZoom() { }
// onZoomin() { }
// onZoomout() { }
return a.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{processEvent:"mousewheel",type:"X",stepRatio:.05,stepByField:{},minScale:1,maxScale:4,catStep:2,limitRange:{},originScaleDefsByField:{}})},a._applyScale=function(e,t,n,r){void 0===n&&(n=0);var a=this,s=a.chart,c=a.stepByField;if(e.isLinear){var l=e.min,u=e.max,h=e.field,f=1-n,d=c[h]*t,p=l+d*n,g=u-d*f;if(g>p){var m=o(s,h);// @2019-02-28 by blue.lb 这里需要将原始scale的配置整合新算出的最大及最小值
s.scale(h,i.mix({},m,{nice:!1,min:p,max:g}))}}else{var v=e.field,y=e.values,A=a.chart,b=A.get("coord"),w=o(A,v),x=a.limitRange[v],C=x.length,_=C/a.maxScale,I=C/a.minScale,E=y.length,k=b.invertPoint(r).x,S=E-t*this.catStep,B=parseInt(S*k),M=S+B;if(t>0&&E>=_){
// zoom out
var T=B,O=M;M>E&&(O=E-1,T=E-S);var D=y.slice(T,O);A.scale(v,i.mix({},w,{values:D}))}else if(t<0&&E<=I){
// zoom in
var P=x.indexOf(y[0]),L=x.indexOf(y[E-1]),Q=Math.max(0,P-B),R=Math.min(L+M,C),j=x.slice(Q,R);A.scale(v,i.mix({},w,{values:j}))}}},a.process=function(e){var t=this,n=t.chart,r=t.type,i=n.get("coord"),a=e.deltaY,o=i.invertPoint(e);if(a){t.onZoom&&t.onZoom(a,o,t),a>0?t.onZoomin&&t.onZoomin(a,o,t):t.onZoomout&&t.onZoomout(a,o,t);var s=a/Math.abs(a);r.indexOf("X")>-1&&t._applyScale(n.getXScale(),s,o.x,e),r.indexOf("Y")>-1&&n.getYScales().forEach((function(n){t._applyScale(n,s,o.y,e)}))}n.repaint()},a.reset=function(){var e=this.view,t=this.originScaleDefsByField,n=e.getYScales(),r=e.getXScale();n.push(r),n.forEach((function(n){if(n.isLinear){var r=n.field;e.scale(r,t[r])}})),e.repaint()},l}(a);// G2.registerInteraction('zoom', Zoom);
// G2.registerInteraction('Zoom', Zoom);
e.exports=l}
/******/])},e.exports=r()},
/***/"7f21":
/***/function(e,t,n){
// 7.2.2 IsArray(argument)
var r=n("1c2d");e.exports=Array.isArray||function(e){return"Array"==r(e)}},
/***/"7f65":
/***/function(e,t,n){"use strict";var r=n("59ed"),i=n("825a"),a=n("c65b"),o=n("5926"),s=n("46c4"),c="Invalid size",l=RangeError,u=TypeError,h=Math.max,f=function(e,t){this.set=e,this.size=h(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},
// `GetSetRecord` abstract operation
// https://tc39.es/proposal-set-methods/#sec-getsetrecord
e.exports=function(e){i(e);var t=+e.size;
// NOTE: If size is undefined, then numSize will be NaN
// eslint-disable-next-line no-self-compare -- NaN check
if(t!=t)throw new u(c);var n=o(t);if(n<0)throw new l(c);return new f(e,n)}},
/***/"7fae":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* unused harmony export __assign */
/* unused harmony export __rest */
/* unused harmony export __decorate */
/* unused harmony export __param */
/* unused harmony export __metadata */
/* unused harmony export __awaiter */
/* unused harmony export __generator */
/* unused harmony export __createBinding */
/* unused harmony export __exportStar */
/* unused harmony export __values */
/* unused harmony export __read */
/* unused harmony export __spread */
/* unused harmony export __spreadArrays */
/* unused harmony export __spreadArray */
/* unused harmony export __await */
/* unused harmony export __asyncGenerator */
/* unused harmony export __asyncDelegator */
/* unused harmony export __asyncValues */
/* unused harmony export __makeTemplateObject */
/* unused harmony export __importStar */
/* unused harmony export __importDefault */
/* unused harmony export __classPrivateFieldGet */
/* unused harmony export __classPrivateFieldSet */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create},
/***/"802a":
/***/function(e,t){e.exports=
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function(e){return this.__data__.get(e)}},
/***/8057:
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},
/***/8060:
/***/function(e,t,n){e.exports={sm2:n("526b"),sm3:n("72fa"),sm4:n("10d1")}
/***/},
/***/8072:
/***/function(e,t,n){
// 20.2.2.14 Math.expm1(x)
var r=n("f083"),i=n("4592");r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},
/***/"80b9":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return c})),
/* harmony export (binding) */n.d(t,"d",(function(){return l})),
/* harmony export (binding) */n.d(t,"b",(function(){return u})),
/* harmony export (binding) */n.d(t,"c",(function(){return h})),
/* harmony export (binding) */n.d(t,"e",(function(){return f}));
/* harmony import */var r=n("6d8b"),i=n("e0d3"),a=n("ec6f"),o=Object(i.o)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},c=/** @class */function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},
/**
   * @caution Can only be used when `dimensionOmitted: true`.
   *
   * Get index by user defined dimension name (i.e., not internal generate name).
   * That is, get index from `dimensionsDefine`.
   * If no `dimensionsDefine`, or no name get, return -1.
   */
e.prototype.getSourceDimensionIndex=function(e){return Object(r.retrieve2)(this._dimNameMap.get(e),-1)},
/**
   * @caution Can only be used when `dimensionOmitted: true`.
   *
   * Notice: may return `null`/`undefined` if user not specify dimension names.
   */
e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Object(a.f)(this.source),n=!f(e),r="",i=[],o=0,c=0;o<e;o++){var l=void 0,u=void 0,h=void 0,d=this.dimensions[c];
// The list has been sorted by `storeDimIndex` asc.
if(d&&d.storeDimIndex===o)l=t?d.name:null,u=d.type,h=d.ordinalMeta,c++;else{var p=this.getSourceDimension(o);p&&(l=t?p.name:null,u=p.type)}i.push({property:l,type:u,ordinalMeta:h}),
// If retrieving data by index,
//   use <index, type, ordinalMeta> to determine whether data can be shared.
//   (Because in this case there might be no dimension name defined in dataset, but indices always exists).
//   (Indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash).
// Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`),
//   use <property, type, ordinalMeta> in hash.
!t||null==l||d&&d.isCalculationCoord||(r+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=s[u]||"f",h&&(r+=h.uid),r+="$"}
// Source from endpoint(usually series) will be read differently
// when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different.
// So we use this three props as key.
var g=this.source;return{dimensions:i,hash:[g.seriesLayoutBy,g.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];
// The list has been sorted by `storeDimIndex` asc.
if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,
// If append dimension on a data store, consider the store
// might be shared by different series, series dimensions not
// really map to store dimensions.
this._updateDimOmitted(!0)},e}();
/* harmony import */function l(e){return e instanceof c}function u(e){for(var t=Object(r.createHashMap)(),n=0;n<(e||[]).length;n++){var i=e[n],a=Object(r.isObject)(i)?i.name:i;null!=a&&null==t.get(a)&&t.set(a,n)}return t}function h(e){var t=o(e);return t.dimNameMap||(t.dimNameMap=u(e.dimensionsDefine))}function f(e){return e>30}
/***/},
/***/"80f0":
/***/function(e,t,n){"use strict";
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function r(e){return null==e?0:e.length||1}function i(e){return e}var a=/** @class */function(){
/**
   * @param context Can be visited by this.context in callback.
   */
function e(e,t,n,r,a,
// By default: 'oneToOne'.
o){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,
// Visible in callback via `this.context`;
this.context=a,this._diffModeMultiple="multiple"===o}
/**
   * Callback function when add a data
   */return e.prototype.add=function(e){return this._add=e,this},
/**
   * Callback function when update a data
   */
e.prototype.update=function(e){return this._update=e,this},
/**
   * Callback function when update a data and only work in `cbMode: 'byKey'`.
   */
e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},
/**
   * Callback function when update a data and only work in `cbMode: 'byKey'`.
   */
e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},
/**
   * Callback function when update a data and only work in `cbMode: 'byKey'`.
   */
e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},
/**
   * Callback function when remove a data
   */
e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],c=n[s],l=r(c);
// idx can never be empty array here. see 'set null' logic below.
if(l>1){
// Consider there is duplicate key (for example, use dataItem.name as key).
// We should make sure every item in newArr and oldArr can be visited.
var u=c.shift();1===c.length&&(n[s]=c[0]),this._update&&this._update(u,o)}else 1===l?(n[s]=null,this._update&&this._update(c,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},
/**
   * For example, consider the case:
   * oldData: [o0, o1, o2, o3, o4, o5, o6, o7],
   * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8],
   * Where:
   *     o0, o1, n0 has key 'a' (many to one)
   *     o5, n4, n5, n6 has key 'b' (one to many)
   *     o2, n1 has key 'c' (one to one)
   *     n2, n3 has key 'd' (add)
   *     o3, o4 has key 'e' (remove)
   *     o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove)
   * Then:
   *     (The order of the following directives are not ensured.)
   *     this._updateManyToOne(n0, [o0, o1]);
   *     this._updateOneToMany([n4, n5, n6], o5);
   *     this._update(n1, o2);
   *     this._remove(o3);
   *     this._remove(o4);
   *     this._remove(o6);
   *     this._remove(o7);
   *     this._add(n2);
   *     this._add(n3);
   *     this._add(n7);
   *     this._add(n8);
   */
e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var c=a[s],l=n[c],u=i[c],h=r(l),f=r(u);if(h>1&&1===f)this._updateManyToOne&&this._updateManyToOne(u,l),i[c]=null;else if(1===h&&f>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[c]=null;else if(1===h&&1===f)this._update&&this._update(u,l),i[c]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[c]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=r(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else 1===o&&this._add&&this._add(a);
// Support both `newDataKeyArr` are duplication removed or not removed.
t[i]=null}},e.prototype._initIndexMap=function(e,
// Can be null.
t,
// In 'byKey', the output `keyArr` is duplication removed.
// In 'byIndex', the output `keyArr` is not duplication removed and
//     its indices are accurately corresponding to `arr`.
n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){
// Add prefix to avoid conflict with Object.prototype.
var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),t){var c=t[s],l=r(c);0===l?(
// Simple optimize: in most cases, one index has one key,
// do not need array.
t[s]=o,a&&n.push(s)):1===l?t[s]=[c,o]:c.push(o)}}},e}();
/* harmony default export */t.a=a},
/***/8119:
/***/function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},
/***/"811a":
/***/function(e,t,n){
// 19.1.2.14 Object.keys(O)
var r=n("42ee"),i=n("5a5d");n("0a66")("keys",(function(){return function(e){return i(r(e))}}))},
/***/8172:
/***/function(e,t,n){"use strict";var r=n("e065"),i=n("57b9");
// `Symbol.toPrimitive` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.toprimitive
r("toPrimitive"),
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
i()},
/***/"81ca":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"81d5":
/***/function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),a=n("07fa");
// `Array.prototype.fill` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.fill
e.exports=function(e/* , start = 0, end = @length */){for(var t=r(this),n=a(t),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=void 0===c?n:i(c,n);l>s;)t[s++]=e;return t}},
/***/"820e":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("f069"),s=n("e667"),c=n("2266");
// `Promise.allSettled` method
// https://tc39.es/ecma262/#sec-promise.allsettled
r({target:"Promise",stat:!0,forced:n("5eed")},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),o=[],s=0,l=1;c(e,(function(e){var a=s++,c=!1;l++,i(n,t,e).then((function(e){c||(c=!0,o[a]={status:"fulfilled",value:e},--l||r(o))}),(function(e){c||(c=!0,o[a]={status:"rejected",reason:e},--l||r(o))}))})),--l||r(o)}));return u.error&&l(u.value),n.promise}})},
/***/8233:
/***/function(e,t,n){
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var r=n("f083"),i=n("bcd0");
// PhantomJS / old WebKit has a broken implementations
r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},
/***/8237:
/***/function(module,exports,__webpack_require__){
/* WEBPACK VAR INJECTION */(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
/**
 * [js-md5]{@link https://github.com/emn178/js-md5}
 *
 * @namespace md5
 * @version 0.7.3
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer})
/**
   * @method hex
   * @memberof md5
   * @description Output hash as hex string
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {String} Hex string
   * @example
   * md5.hex('The quick brown fox jumps over the lazy dog');
   * // equal to
   * md5('The quick brown fox jumps over the lazy dog');
   */
/**
   * @method digest
   * @memberof md5
   * @description Output hash as bytes array
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Array} Bytes array
   * @example
   * md5.digest('The quick brown fox jumps over the lazy dog');
   */
/**
   * @method array
   * @memberof md5
   * @description Output hash as bytes array
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Array} Bytes array
   * @example
   * md5.array('The quick brown fox jumps over the lazy dog');
   */
/**
   * @method arrayBuffer
   * @memberof md5
   * @description Output hash as ArrayBuffer
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {ArrayBuffer} ArrayBuffer
   * @example
   * md5.arrayBuffer('The quick brown fox jumps over the lazy dog');
   */
/**
   * @method buffer
   * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
   * @memberof md5
   * @description Output hash as ArrayBuffer
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {ArrayBuffer} ArrayBuffer
   * @example
   * md5.buffer('The quick brown fox jumps over the lazy dog');
   */
/**
   * @method base64
   * @memberof md5
   * @description Output hash as base64 string
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {String} base64 string
   * @example
   * md5.base64('The quick brown fox jumps over the lazy dog');
   */;var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null==e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};
/**
   * @method create
   * @memberof md5
   * @description Create Md5 object
   * @returns {Md5} Md5 object.
   * @example
   * var hash = md5.create();
   */
/**
   * @method update
   * @memberof md5
   * @description Create and update Md5 object
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Md5} Md5 object.
   * @example
   * var hash = md5.update('The quick brown fox jumps over the lazy dog');
   * // equal to
   * var hash = md5.create();
   * hash.update('The quick brown fox jumps over the lazy dog');
   */
/**
   * Md5 class
   * @class Md5
   * @description This is internal class.
   * @see {@link md5.create}
   */
function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}
/**
   * @method update
   * @memberof Md5
   * @instance
   * @description Update hash
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Md5} Md5 object.
   * @see {@link md5.update}
   */Md5.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw ERROR;t=!0}for(var r,i,a=0,o=e.length,s=this.blocks,c=this.buffer8;a<o;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)if(ARRAY_BUFFER)for(i=this.start;a<o&&i<64;++a)c[i++]=e[a];else for(i=this.start;a<o&&i<64;++a)s[i>>2]|=e[a]<<SHIFT[3&i++];else if(ARRAY_BUFFER)for(i=this.start;a<o&&i<64;++a)(r=e.charCodeAt(a))<128?c[i++]=r:r<2048?(c[i++]=192|r>>6,c[i++]=128|63&r):r<55296||r>=57344?(c[i++]=224|r>>12,c[i++]=128|r>>6&63,c[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),c[i++]=240|r>>18,c[i++]=128|r>>12&63,c[i++]=128|r>>6&63,c[i++]=128|63&r);else for(i=this.start;a<o&&i<64;++a)(r=e.charCodeAt(a))<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,r,i,a,o=this.blocks;this.first?t=((t=((e=((e=o[0]-680876937)<<7|e>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&e)+o[1]-117830708)<<12|r>>>20)+e|0)&(-271733879^e))+o[2]-1126478375)<<17|n>>>15)+r|0)&(r^e))+o[3]-1316259209)<<22|t>>>10)+n|0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((r=this.h3)^t&(n^r))+o[0]-680876936)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+o[1]-389564586)<<12|r>>>20)+e|0)&(e^t))+o[2]+606105819)<<17|n>>>15)+r|0)&(r^e))+o[3]-1044525330)<<22|t>>>10)+n|0),t=((t+=((e=((e+=(r^t&(n^r))+o[4]-176418897)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+o[5]+1200080426)<<12|r>>>20)+e|0)&(e^t))+o[6]-1473231341)<<17|n>>>15)+r|0)&(r^e))+o[7]-45705983)<<22|t>>>10)+n|0,t=((t+=((e=((e+=(r^t&(n^r))+o[8]+1770035416)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+o[9]-1958414417)<<12|r>>>20)+e|0)&(e^t))+o[10]-42063)<<17|n>>>15)+r|0)&(r^e))+o[11]-1990404162)<<22|t>>>10)+n|0,t=((t+=((e=((e+=(r^t&(n^r))+o[12]+1804603682)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+o[13]-40341101)<<12|r>>>20)+e|0)&(e^t))+o[14]-1502002290)<<17|n>>>15)+r|0)&(r^e))+o[15]+1236535329)<<22|t>>>10)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+o[1]-165796510)<<5|e>>>27)+t|0)^t))+o[6]-1069501632)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+o[11]+643717713)<<14|n>>>18)+r|0)^r))+o[0]-373897302)<<20|t>>>12)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+o[5]-701558691)<<5|e>>>27)+t|0)^t))+o[10]+38016083)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+o[15]-660478335)<<14|n>>>18)+r|0)^r))+o[4]-405537848)<<20|t>>>12)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+o[9]+568446438)<<5|e>>>27)+t|0)^t))+o[14]-1019803690)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+o[3]-187363961)<<14|n>>>18)+r|0)^r))+o[8]+1163531501)<<20|t>>>12)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+o[13]-1444681467)<<5|e>>>27)+t|0)^t))+o[2]-51403784)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+o[7]+1735328473)<<14|n>>>18)+r|0)^r))+o[12]-1926607734)<<20|t>>>12)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+o[5]-378558)<<4|e>>>28)+t|0))+o[8]-2022574463)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+o[11]+1839030562)<<16|n>>>16)+r|0))+o[14]-35309556)<<23|t>>>9)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+o[1]-1530992060)<<4|e>>>28)+t|0))+o[4]+1272893353)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+o[7]-155497632)<<16|n>>>16)+r|0))+o[10]-1094730640)<<23|t>>>9)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+o[13]+681279174)<<4|e>>>28)+t|0))+o[0]-358537222)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+o[3]-722521979)<<16|n>>>16)+r|0))+o[6]+76029189)<<23|t>>>9)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+o[9]-640364487)<<4|e>>>28)+t|0))+o[12]-421815835)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+o[15]+530742520)<<16|n>>>16)+r|0))+o[2]-995338651)<<23|t>>>9)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+o[0]-198630844)<<6|e>>>26)+t|0)|~n))+o[7]+1126891415)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+o[14]-1416354905)<<15|n>>>17)+r|0)|~e))+o[5]-57434055)<<21|t>>>11)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+o[12]+1700485571)<<6|e>>>26)+t|0)|~n))+o[3]-1894986606)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+o[10]-1051523)<<15|n>>>17)+r|0)|~e))+o[1]-2054922799)<<21|t>>>11)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+o[8]+1873313359)<<6|e>>>26)+t|0)|~n))+o[15]-30611744)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+o[6]-1560198380)<<15|n>>>17)+r|0)|~e))+o[13]+1309151649)<<21|t>>>11)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+o[4]-145523070)<<6|e>>>26)+t|0)|~n))+o[11]-1120210379)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+o[2]+718787259)<<15|n>>>17)+r|0)|~e))+o[9]-343485551)<<21|t>>>11)+n|0,this.first?(this.h0=e+1732584193|0,this.h1=t-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+e|0,this.h1=this.h1+t|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},
/**
   * @method hex
   * @memberof Md5
   * @instance
   * @description Output hash as hex string
   * @returns {String} Hex string
   * @see {@link md5.hex}
   * @example
   * hash.hex();
   */
Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},
/**
   * @method toString
   * @memberof Md5
   * @instance
   * @description Output hash as hex string
   * @returns {String} Hex string
   * @see {@link md5.hex}
   * @example
   * hash.toString();
   */
Md5.prototype.toString=Md5.prototype.hex,
/**
   * @method digest
   * @memberof Md5
   * @instance
   * @description Output hash as bytes array
   * @returns {Array} Bytes array
   * @see {@link md5.digest}
   * @example
   * hash.digest();
   */
Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},
/**
   * @method array
   * @memberof Md5
   * @instance
   * @description Output hash as bytes array
   * @returns {Array} Bytes array
   * @see {@link md5.array}
   * @example
   * hash.array();
   */
Md5.prototype.array=Md5.prototype.digest,
/**
   * @method arrayBuffer
   * @memberof Md5
   * @instance
   * @description Output hash as ArrayBuffer
   * @returns {ArrayBuffer} ArrayBuffer
   * @see {@link md5.arrayBuffer}
   * @example
   * hash.arrayBuffer();
   */
Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},
/**
   * @method buffer
   * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
   * @memberof Md5
   * @instance
   * @description Output hash as ArrayBuffer
   * @returns {ArrayBuffer} ArrayBuffer
   * @see {@link md5.buffer}
   * @example
   * hash.buffer();
   */
Md5.prototype.buffer=Md5.prototype.arrayBuffer,
/**
   * @method base64
   * @memberof Md5
   * @instance
   * @description Output hash as base64 string
   * @returns {String} base64 string
   * @see {@link md5.base64}
   * @example
   * hash.base64();
   */
Md5.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),a=0;a<15;)e=i[a++],t=i[a++],n=i[a++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=i[a],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(
/**
     * @method md5
     * @description Md5 hash function, export to global in browsers.
     * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
     * @returns {String} md5 hashes
     * @example
     * md5(''); // d41d8cd98f00b204e9800998ecf8427e
     * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
     * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
     *
     * // It also supports UTF-8 encoding
     * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
     *
     * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
     * md5([]); // d41d8cd98f00b204e9800998ecf8427e
     * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
     */
root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"))
/***/},
/***/"825a":
/***/function(e,t,n){"use strict";var r=n("861d"),i=String,a=TypeError;
// `Assert: Type(argument) is Object`
e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},
/***/8261:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/8296:
/***/function(e,t,n){var r=n("656b"),i=n("2b10");
/**
 * Gets the parent value at `path` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} path The path to get the parent value of.
 * @returns {*} Returns the parent value.
 */e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},
/***/"82a6":
/***/function(e,t,n){"use strict";
// https://github.com/tc39/proposal-promise-try
var r=n("f083"),i=n("e7ff"),a=n("2d5b");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},
/***/"832c":
/***/function(e,t,n){var r=n("9fe8"),i=n("7f21"),a=n("de24")("species");e.exports=function(e){var t;return i(e)&&(
// cross-realm fallback
"function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},
/***/8344:
/***/function(e,t,n){"use strict";var r=n("d77f"),i=n("6373"),a=n("6972"),o=n("fef8");
// @@match logic
n("9ed1")("match",1,(function(e,t,n,s){return[
// `String.prototype.match` method
// https://tc39.github.io/ecma262/#sec-string.prototype.match
function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},
// `RegExp.prototype[@@match]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
function(e){var t=s(n,e,this);if(t.done)return t.value;var c=r(e),l=String(this);if(!c.global)return o(c,l);var u=c.unicode;c.lastIndex=0;for(var h,f=[],d=0;null!==(h=o(c,l));){var p=String(h[0]);f[d]=p,""===p&&(c.lastIndex=a(l,i(c.lastIndex),u)),d++}return 0===d?null:f}]}))},
/***/"83ab":
/***/function(e,t,n){"use strict";var r=n("d039");
// Detect IE8's incomplete defineProperty implementation
e.exports=!r((function(){
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},
/***/"83b9":
/***/function(e,t,n){"use strict";var r=n("cb27"),i=n("384f"),a=r.Set,o=r.add;e.exports=function(e){var t=new a;return i(e,(function(e){o(t,e)})),t}},
/***/"83b9e":
/***/function(e,t,n){"use strict";var r=n("d925"),i=n("e683");
/**
 * Creates a new URL by combining the baseURL with the requestedURL,
 * only when the requestedURL is not already an absolute URL.
 * If the requestURL is absolute, this function returns the requestedURL untouched.
 *
 * @param {string} baseURL The base URL
 * @param {string} requestedURL Absolute or relative URL to combine
 * @returns {string} The combined full path
 */
e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},
/***/8418:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},
/***/8496:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
var r=n("41b2"),i=n.n(r),a=n("a026"),o=n("46cf"),s=n.n(o),c=n("4d91"),l=n("6bb4"),u=n("daa3"),h=n("d41d"),f=n("c8c6"),d=n("6a21"),p=n("1098"),g=n.n(p),m=n("91a5");function v(e){return e&&"object"===(void 0===e?"undefined":g()(e))&&e.window===e}function y(e,t){var n=Math.floor(e),r=Math.floor(t);return Math.abs(n-r)<=1}
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/_util/vnode.js
var A=n("7b05"),b=n("0644"),w=n.n(b);
// EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-align/Align.js
function x(e){return"function"==typeof e&&e?e():null}function C(e){return"object"===(void 0===e?"undefined":g()(e))&&e?e:null}
/* harmony default export */var _={props:{childrenProps:c.a.object,align:c.a.object.isRequired,target:c.a.oneOfType([c.a.func,c.a.object]).def((function(){return window})),monitorBufferTime:c.a.number.def(50),monitorWindowResize:c.a.bool.def(!1),disabled:c.a.bool.def(!1)},data:function(){return this.aligned=!1,{}},mounted:function(){var e=this;this.$nextTick((function(){e.prevProps=i()({},e.$props);var t=e.$props;
// if parent ref not attached .... use document.getElementById
!e.aligned&&e.forceAlign(),!t.disabled&&t.monitorWindowResize&&e.startMonitorWindowResize()}))},updated:function(){var e=this;this.$nextTick((function(){var t,n,r=e.prevProps,a=e.$props,o=!1;if(!a.disabled){var s=e.$el,c=s?s.getBoundingClientRect():null;if(r.disabled)o=!0;else{var l=x(r.target),u=x(a.target),h=C(r.target),f=C(a.target);v(l)&&v(u)?
// Skip if is window
o=!1:(l!==u||// Element change
l&&!u&&f||// Change from element to point
h&&f&&u||// Change from point to element
f&&!((t=h)===(n=f)||t&&n&&("pageX"in n&&"pageY"in n?t.pageX===n.pageX&&t.pageY===n.pageY:"clientX"in n&&"clientY"in n&&t.clientX===n.clientX&&t.clientY===n.clientY)))&&(o=!0);
// If source element size changed
var d=e.sourceRect||{};o||!s||y(d.width,c.width)&&y(d.height,c.height)||(o=!0)}e.sourceRect=c}o&&e.forceAlign(),a.monitorWindowResize&&!a.disabled?e.startMonitorWindowResize():e.stopMonitorWindowResize(),e.prevProps=i()({},e.$props,{align:w()(e.$props.align)})}))},beforeDestroy:function(){this.stopMonitorWindowResize()},methods:{startMonitorWindowResize:function(){this.resizeHandler||(this.bufferMonitor=
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-align/util.js
function(e,t){var n=void 0;function r(){n&&(clearTimeout(n),n=null)}function i(){r(),n=setTimeout(e,t)}return i.clear=r,i}(this.forceAlign,this.$props.monitorBufferTime),this.resizeHandler=Object(f.a)(window,"resize",this.bufferMonitor))},stopMonitorWindowResize:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)},forceAlign:function(){var e=this.$props,t=e.disabled,n=e.target,r=e.align;if(!t&&n){var i=this.$el,a=Object(u.k)(this),o=void 0,s=x(n),c=C(n),h=document.activeElement;s?o=Object(m.a)(i,s,r):c&&(o=Object(m.b)(i,c,r)),function(e,t){
// Focus back if is in the container
e!==document.activeElement&&Object(l.a)(t,e)&&e.focus()}(h,i),this.aligned=!0,a.align&&a.align(i,o)}}},render:function(){var e=this.$props.childrenProps,t=Object(u.n)(this)[0];return t&&e?Object(A.a)(t,{props:e}):t}},I=n("92fa"),E=n.n(I),k={props:{visible:c.a.bool,hiddenClassName:c.a.string},render:function(){var e=arguments[0],t=this.$props,n=t.hiddenClassName,r=(t.visible,null);if(n||!this.$slots.default||this.$slots.default.length>1){r=e("div",{class:""},[this.$slots.default])}else r=this.$slots.default[0];return r}},S={props:{hiddenClassName:c.a.string.def(""),prefixCls:c.a.string,visible:c.a.bool},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.visible,i=t.hiddenClassName,a={on:Object(u.k)(this)};return e("div",E()([a,{class:r?"":i}]),[e(k,{class:n+"-content",attrs:{visible:r}},[this.$slots.default])])}},B=n("18ce"),M=n("b488"),T={name:"VCTriggerPopup",mixins:[M.a],props:{visible:c.a.bool,getClassNameFromAlign:c.a.func,getRootDomNode:c.a.func,align:c.a.any,destroyPopupOnHide:c.a.bool,prefixCls:c.a.string,getContainer:c.a.func,transitionName:c.a.string,animation:c.a.any,maskAnimation:c.a.string,maskTransitionName:c.a.string,mask:c.a.bool,zIndex:c.a.number,popupClassName:c.a.any,popupStyle:c.a.object.def((function(){return{}})),stretch:c.a.string,point:c.a.shape({pageX:c.a.number,pageY:c.a.number})},data:function(){return this.domEl=null,{
// Used for stretch
stretchChecked:!1,targetWidth:void 0,targetHeight:void 0}},mounted:function(){var e=this;this.$nextTick((function(){e.rootNode=e.getPopupDomNode(),e.setStretchSize()}))},
// 如添加会导致动画失效，如放开会导致快速输入时闪动 https://github.com/vueComponent/ant-design-vue/issues/1327，
// 目前方案是保留动画，闪动问题(动画多次执行)进一步定位
// beforeUpdate() {
//   if (this.domEl && this.domEl.rcEndListener) {
//     this.domEl.rcEndListener();
//     this.domEl = null;
//   }
// },
updated:function(){var e=this;this.$nextTick((function(){e.setStretchSize()}))},beforeDestroy:function(){this.$el.parentNode?this.$el.parentNode.removeChild(this.$el):this.$el.remove&&this.$el.remove()},methods:{onAlign:function(e,t){var n=this.$props.getClassNameFromAlign(t);
// FIX: https://github.com/react-component/trigger/issues/56
// FIX: https://github.com/react-component/tooltip/issues/79
this.currentAlignClassName!==n&&(this.currentAlignClassName=n,e.className=this.getClassName(n));var r=Object(u.k)(this);r.align&&r.align(e,t)},
// Record size if stretch needed
setStretchSize:function(){var e=this.$props,t=e.stretch,n=e.getRootDomNode,r=e.visible,i=this.$data,a=i.stretchChecked,o=i.targetHeight,s=i.targetWidth;if(t&&r){var c=n();if(c){var l=c.offsetHeight,u=c.offsetWidth;o===l&&s===u&&a||this.setState({stretchChecked:!0,targetHeight:l,targetWidth:u})}}else a&&this.setState({stretchChecked:!1})},getPopupDomNode:function(){return this.$refs.popupInstance?this.$refs.popupInstance.$el:null},getTargetElement:function(){return this.$props.getRootDomNode()},
// `target` on `rc-align` can accept as a function to get the bind element or a point.
// ref: https://www.npmjs.com/package/rc-align
getAlignTarget:function(){var e=this.$props.point;return e||this.getTargetElement},getMaskTransitionName:function(){var e=this.$props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},getTransitionName:function(){var e=this.$props,t=e.transitionName,n=e.animation;return t||("string"==typeof n?t=""+n:n&&n.props&&n.props.name&&(t=n.props.name)),t},getClassName:function(e){return this.$props.prefixCls+" "+this.$props.popupClassName+" "+e},getPopupElement:function(){var e=this,t=this.$createElement,n=this.$props,r=this.$slots,a=this.getTransitionName,o=this.$data,s=o.stretchChecked,c=o.targetHeight,l=o.targetWidth,h=n.align,f=n.visible,d=n.prefixCls,p=n.animation,m=n.popupStyle,v=n.getClassNameFromAlign,y=n.destroyPopupOnHide,A=n.stretch,b=this.getClassName(this.currentAlignClassName||v(h));
// const hiddenClassName = `${prefixCls}-hidden`
f||(this.currentAlignClassName=null);var w={};A&&(
// Stretch with target
-1!==A.indexOf("height")?w.height="number"==typeof c?c+"px":c:-1!==A.indexOf("minHeight")&&(w.minHeight="number"==typeof c?c+"px":c),-1!==A.indexOf("width")?w.width="number"==typeof l?l+"px":l:-1!==A.indexOf("minWidth")&&(w.minWidth="number"==typeof l?l+"px":l),
// Delay force align to makes ui smooth
s||
// sizeStyle.visibility = 'hidden'
setTimeout((function(){e.$refs.alignInstance&&e.$refs.alignInstance.forceAlign()}),0));var x={props:{prefixCls:d,visible:f},class:b,on:Object(u.k)(this),ref:"popupInstance",style:i()({},w,m,this.getZIndexStyle())},C={props:{appear:!0,css:!1}},I=a(),E=!!I,k={beforeEnter:function(){
// el.style.display = el.__vOriginalDisplay
// this.$refs.alignInstance.forceAlign();
},enter:function(t,n){
// render 后 vue 会移除通过animate动态添加的 class导致动画闪动，延迟两帧添加动画class，可以进一步定位或者重写 transition 组件
e.$nextTick((function(){e.$refs.alignInstance?e.$refs.alignInstance.$nextTick((function(){e.domEl=t,Object(B.a)(t,I+"-enter",n)})):n()}))},beforeLeave:function(){e.domEl=null},leave:function(e,t){Object(B.a)(e,I+"-leave",t)}};if("object"===(void 0===p?"undefined":g()(p))){E=!0;var M=p.on,T=void 0===M?{}:M,O=p.props,D=void 0===O?{}:O;C.props=i()({},C.props,D),C.on=i()({},k,T)}else C.on=k;return E||(C={}),t("transition",C,y?[f?t(_,{attrs:{target:this.getAlignTarget(),monitorWindowResize:!0,align:h},key:"popup",ref:"alignInstance",on:{align:this.onAlign}},[t(S,x,[r.default])]):null]:[t(_,{directives:[{name:"show",value:f}],attrs:{target:this.getAlignTarget(),monitorWindowResize:!0,disabled:!f,align:h},key:"popup",ref:"alignInstance",on:{align:this.onAlign}},[t(S,x,[r.default])])])},getZIndexStyle:function(){var e={},t=this.$props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},getMaskElement:function(){var e=this.$createElement,t=this.$props,n=null;if(t.mask){var r=this.getMaskTransitionName();n=e(k,{directives:[{name:"show",value:t.visible}],style:this.getZIndexStyle(),key:"mask",class:t.prefixCls+"-mask",attrs:{visible:t.visible}}),r&&(n=e("transition",{attrs:{appear:!0,name:r}},[n]))}return n}},render:function(){var e=arguments[0],t=this.getMaskElement,n=this.getPopupElement;return e("div",[t(),n()])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-align/index.js
// based on vc-align 2.4.5
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-trigger/utils.js
function O(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function D(){}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/ContainerRender.js
/* harmony default export */var P={props:{autoMount:c.a.bool.def(!0),autoDestroy:c.a.bool.def(!0),visible:c.a.bool,forceRender:c.a.bool.def(!1),parent:c.a.any,getComponent:c.a.func.isRequired,getContainer:c.a.func.isRequired,children:c.a.func.isRequired},mounted:function(){this.autoMount&&this.renderComponent()},updated:function(){this.autoMount&&this.renderComponent()},beforeDestroy:function(){this.autoDestroy&&this.removeContainer()},methods:{removeContainer:function(){this.container&&(this._component&&this._component.$destroy(),this.container.parentNode.removeChild(this.container),this.container=null,this._component=null)},renderComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=this.visible,r=this.forceRender,i=this.getContainer,a=this.parent,o=this;if(n||a._component||a.$refs._component||r){var s=this.componentEl;this.container||(this.container=i(),s=document.createElement("div"),this.componentEl=s,this.container.appendChild(s));
// self.getComponent 不要放在 render 中，会因为响应式数据问题导致，多次触发 render
var c={component:o.getComponent(e)};this._component?this._component.setComponent(c):this._component=new this.$root.constructor({el:s,parent:o,data:{_com:c},mounted:function(){this.$nextTick((function(){t&&t.call(o)}))},updated:function(){this.$nextTick((function(){t&&t.call(o)}))},methods:{setComponent:function(e){this.$data._com=e}},render:function(){return this.$data._com.component}})}}},render:function(){return this.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-trigger/Trigger.js
a.default.use(s.a,{name:"ant-ref"});var L=["click","mousedown","touchstart","mouseenter","mouseleave","focus","blur","contextmenu"],Q={name:"Trigger",mixins:[M.a],props:{action:c.a.oneOfType([c.a.string,c.a.arrayOf(c.a.string)]).def([]),showAction:c.a.any.def([]),hideAction:c.a.any.def([]),getPopupClassNameFromAlign:c.a.any.def((function(){return""})),
// onPopupVisibleChange: PropTypes.func.def(noop),
afterPopupVisibleChange:c.a.func.def(D),popup:c.a.any,popupStyle:c.a.object.def((function(){return{}})),prefixCls:c.a.string.def("rc-trigger-popup"),popupClassName:c.a.string.def(""),popupPlacement:c.a.string,builtinPlacements:c.a.object,popupTransitionName:c.a.oneOfType([c.a.string,c.a.object]),popupAnimation:c.a.any,mouseEnterDelay:c.a.number.def(0),mouseLeaveDelay:c.a.number.def(.1),zIndex:c.a.number,focusDelay:c.a.number.def(0),blurDelay:c.a.number.def(.15),getPopupContainer:c.a.func,getDocument:c.a.func.def((function(){return window.document})),forceRender:c.a.bool,destroyPopupOnHide:c.a.bool.def(!1),mask:c.a.bool.def(!1),maskClosable:c.a.bool.def(!0),
// onPopupAlign: PropTypes.func.def(noop),
popupAlign:c.a.object.def((function(){return{}})),popupVisible:c.a.bool,defaultPopupVisible:c.a.bool.def(!1),maskTransitionName:c.a.oneOfType([c.a.string,c.a.object]),maskAnimation:c.a.string,stretch:c.a.string,alignPoint:c.a.bool},provide:function(){return{vcTriggerContext:this}},inject:{vcTriggerContext:{default:function(){return{}}},savePopupRef:{default:function(){return D}},dialogContext:{default:function(){return null}}},data:function(){var e=this,t=this.$props,n=void 0;return n=Object(u.s)(this,"popupVisible")?!!t.popupVisible:!!t.defaultPopupVisible,L.forEach((function(t){e["fire"+t]=function(n){e.fireEvents(t,n)}})),{prevPopupVisible:n,sPopupVisible:n,point:null}},watch:{popupVisible:function(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick((function(){e.renderComponent(null),e.updatedCal()}))},updated:function(){var e=this;this.renderComponent(null,(function(){e.sPopupVisible!==e.prevPopupVisible&&e.afterPopupVisibleChange(e.sPopupVisible),e.prevPopupVisible=e.sPopupVisible})),this.$nextTick((function(){e.updatedCal()}))},beforeDestroy:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},methods:{updatedCal:function(){var e=this.$props;
// We must listen to `mousedown` or `touchstart`, edge case:
// https://github.com/ant-design/ant-design/issues/5804
// https://github.com/react-component/calendar/issues/250
// https://github.com/react-component/trigger/issues/50
if(this.$data.sPopupVisible){var t=void 0;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(t=e.getDocument(),this.clickOutsideHandler=Object(f.a)(t,"mousedown",this.onDocumentClick)),
// always hide on mobile
this.touchOutsideHandler||(t=t||e.getDocument(),this.touchOutsideHandler=Object(f.a)(t,"touchstart",this.onDocumentClick)),
// close popup when trigger type contains 'onContextmenu' and document is scrolling.
!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(),this.contextmenuOutsideHandler1=Object(f.a)(t,"scroll",this.onContextmenuClose)),
// close popup when trigger type contains 'onContextmenu' and window is blur.
!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Object(f.a)(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var t=this.$props.mouseEnterDelay;this.fireEvents("mouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove:function(e){this.fireEvents("mousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("mouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&this._component&&this._component.getPopupDomNode&&Object(l.a)(this._component.getPopupDomNode(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("focus",e),
// incase focusin and focusout
this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("mousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("touchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){Object(l.a)(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("blur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("contextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){
// focus will trigger click
if(this.fireEvents("click",e),this.focusTime){var t=void 0;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,
// Only prevent default when all the action is click.
// https://github.com/ant-design/ant-design/issues/17043
// https://github.com/ant-design/ant-design/issues/17291
this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var n=!this.$data.sPopupVisible;(this.isClickToHide()&&!n||n&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,t=this.vcTriggerContext,n=void 0===t?{}:t;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((function(){e.hasPopupMouseDown=!1}),0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},onDocumentClick:function(e){if(!this.$props.mask||this.$props.maskClosable){var t=e.target,n=this.$el;Object(l.a)(n,t)||this.hasPopupMouseDown||this.close()}},getPopupDomNode:function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},getRootDomNode:function(){return this.$el;
// return this.$el.children[0] || this.$el
},handleGetPopupClassFromAlign:function(e){var t=[],n=this.$props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,o=n.alignPoint,s=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,r){var i=n.points;for(var a in e)if(e.hasOwnProperty(a)&&O(e[a].points,i,r))return t+"-placement-"+a;return""}(i,a,e,o)),s&&t.push(s(e)),t.join(" ")},getPopupAlign:function(){var e=this.$props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return i()({},r,n)}(r,t,n):n},savePopup:function(e){this._component=e,this.savePopupRef(e)},getComponent:function(){var e=this.$createElement,t=this,n={};this.isMouseEnterToShow()&&(n.mouseenter=t.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.mouseleave=t.onPopupMouseleave),n.mousedown=this.onPopupMouseDown,n.touchstart=this.onPopupMouseDown;var r=t.handleGetPopupClassFromAlign,a=t.getRootDomNode,o=t.getContainer,s=t.$props,c=s.prefixCls,l=s.destroyPopupOnHide,h=s.popupClassName,f=s.action,d=s.popupAnimation,p=s.popupTransitionName,g=s.popupStyle,m=s.mask,v=s.maskAnimation,y=s.maskTransitionName,A=s.zIndex,b=s.stretch,w=s.alignPoint,x=this.$data,C=x.sPopupVisible,_=x.point,I={props:{prefixCls:c,destroyPopupOnHide:l,visible:C,point:w&&_,action:f,align:this.getPopupAlign(),animation:d,getClassNameFromAlign:r,stretch:b,getRootDomNode:a,mask:m,zIndex:A,transitionName:p,maskAnimation:v,maskTransitionName:y,getContainer:o,popupClassName:h,popupStyle:g},on:i()({align:Object(u.k)(this).popupAlign||D},n),directives:[{name:"ant-ref",value:this.savePopup}]};return e(T,I,[Object(u.g)(t,"popup")])},getContainer:function(){var e=this.$props,t=this.dialogContext,n=document.createElement("div");
// Make sure default popup container will never cause scrollbar appearing
// https://github.com/react-component/trigger/issues/41
return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",(e.getPopupContainer?e.getPopupContainer(this.$el,t):e.getDocument().body).appendChild(n),this.popupContainer=n,n},setPopupVisible:function(e,t){var n=this.alignPoint,r=this.sPopupVisible;if(this.clearDelayTimer(),r!==e){Object(u.s)(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r});var i=Object(u.k)(this);i.popupVisibleChange&&i.popupVisibleChange(e)}
// Always record the point position since mouseEnterDelay will delay the show
n&&t&&this.setPoint(t)},setPoint:function(e){this.$props.alignPoint&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},delaySetPopupVisible:function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=Object(h.b)((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)},clearDelayTimer:function(){this.delayTimer&&(Object(h.a)(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var t=function(){},n=Object(u.k)(this);return this.childOriginEvents[e]&&n[e]?this["fire"+e]:t=this.childOriginEvents[e]||n[e]||t},isClickToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isContextmenuToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextmenu")||-1!==n.indexOf("contextmenu")},isClickToHide:function(){var e=this.$props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isMouseEnterToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseenter")},isMouseLeaveToHide:function(){var e=this.$props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseleave")},isFocusToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},isBlurToHide:function(){var e=this.$props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},forcePopupAlign:function(){this.$data.sPopupVisible&&this._component&&this._component.$refs.alignInstance&&this._component.$refs.alignInstance.forceAlign()},fireEvents:function(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t),this.__emit(e,t)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,t=arguments[0],n=this.sPopupVisible,r=Object(u.c)(this.$slots.default),i=this.$props,a=i.forceRender,o=i.alignPoint;r.length>1&&Object(d.a)(!1,"Trigger $slots.default.length > 1, just support only one default",!0);var s=r[0];this.childOriginEvents=Object(u.h)(s);var c={props:{},nativeOn:{},key:"trigger"};return this.isContextmenuToShow()?c.nativeOn.contextmenu=this.onContextmenu:c.nativeOn.contextmenu=this.createTwoChains("contextmenu"),this.isClickToHide()||this.isClickToShow()?(c.nativeOn.click=this.onClick,c.nativeOn.mousedown=this.onMousedown,c.nativeOn.touchstart=this.onTouchstart):(c.nativeOn.click=this.createTwoChains("click"),c.nativeOn.mousedown=this.createTwoChains("mousedown"),c.nativeOn.touchstart=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(c.nativeOn.mouseenter=this.onMouseenter,o&&(c.nativeOn.mousemove=this.onMouseMove)):c.nativeOn.mouseenter=this.createTwoChains("mouseenter"),this.isMouseLeaveToHide()?c.nativeOn.mouseleave=this.onMouseleave:c.nativeOn.mouseleave=this.createTwoChains("mouseleave"),this.isFocusToShow()||this.isBlurToHide()?(c.nativeOn.focus=this.onFocus,c.nativeOn.blur=this.onBlur):(c.nativeOn.focus=this.createTwoChains("focus"),c.nativeOn.blur=function(t){!t||t.relatedTarget&&Object(l.a)(t.target,t.relatedTarget)||e.createTwoChains("blur")(t)}),this.trigger=Object(A.a)(s,c),t(P,{attrs:{parent:this,visible:n,autoMount:!1,forceRender:a,getComponent:this.getComponent,getContainer:this.getContainer,children:function(t){var n=t.renderComponent;return e.renderComponent=n,e.trigger}}})}};
/* harmony default export */t.a=Q},
/***/"84cd":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"84ce":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
var r=n("6d8b"),i=n("3842"),a=n("e86a"),o=n("e0d3"),s=n("697e"),c=Object(o.o)();
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/number.js
function l(e,t){var n=r.map(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(
// Time axis needs duplicate first/last tick (see TimeScale.getTicks())
// The first and last tick/label don't get drawn
n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function u(e){var t=e.getLabelModel().get("customValues");if(t){var n=Object(s.h)(e),i=e.scale.getExtent(),a=l(e,t),o=r.filter(a,(function(e){return e>=i[0]&&e<=i[1]}));return{labels:r.map(o,(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}
// Only ordinal scale support tick interval
return"category"===e.type?function(e){var t=e.getLabelModel(),n=f(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=Object(s.h)(e);return{labels:r.map(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}
/**
 * @param {module:echats/coord/Axis} axis
 * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.
 * @return {Object} {
 *     ticks: Array.<number>
 *     tickCategoryInterval: number
 * }
 */function h(e,t){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),a=l(e,n);return{ticks:r.filter(a,(function(e){return e>=i[0]&&e<=i[1]}))}}
// Only ordinal scale support tick interval
return"category"===e.type?function(e,t){var n,i,a=d(e,"ticks"),o=Object(s.e)(t),c=p(a,o);if(c)return c;
// Optimize for the case that large category data and no label displayed,
// we should not return all ticks.
t.get("show")&&!e.scale.isBlank()||(n=[]);if(r.isFunction(o))n=v(e,o,!0);else if("auto"===o){var l=f(e,e.getLabelModel());i=l.labelCategoryInterval,n=r.map(l.labels,(function(e){return e.tickValue}))}else n=m(e,i=o,!0);
// Cache to avoid calling interval function repeatedly.
return g(a,o,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:r.map(e.scale.getTicks(),(function(e){return e.value}))}}function f(e,t){var n,i,a=d(e,"labels"),o=Object(s.e)(t),l=p(a,o);return l||(r.isFunction(o)?n=v(e,o):(i="auto"===o?function(e){var t=c(e).autoInterval;return null!=t?t:c(e).autoInterval=e.calculateCategoryInterval()}
/**
 * Calculate interval for category axis ticks and labels.
 * To get precise result, at least one of `getRotate` and `isHorizontal`
 * should be implemented in axis.
 */(e):o,n=m(e,i)),g(a,o,{labels:n,labelCategoryInterval:i}))}function d(e,t){
// Because key can be a function, and cache size always is small, we use array cache.
return c(e)[t]||(c(e)[t]=[])}function p(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function g(e,t,n){return e.push({key:t,value:n}),n}function m(e,t,n){var r=Object(s.h)(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),c=[],l=Math.max((t||0)+1,1),u=a[0],h=i.count();
// Calculate start tick based on zero if possible to keep label consistent
// while zooming and moving while interval > 0. Otherwise the selection
// of displayable ticks and symbols probably keep changing.
// 3 is empirical value.
0!==u&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));
// (1) Only add min max label here but leave overlap checking
// to render stage, which also ensure the returned list
// suitable for splitLine and splitArea rendering.
// (2) Scales except category always contain min max label so
// do not need to perform this process.
var f=Object(s.j)(e),d=o.get("showMinLabel")||f,p=o.get("showMaxLabel")||f;d&&u!==a[0]&&m(a[0]);
// Optimize: avoid generating large array by `ordinalScale.getTicks()`.
for(var g=u;g<=a[1];g+=l)m(g);function m(e){var t={value:e};c.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return p&&g-l!==a[1]&&m(a[1]),c}function v(e,t,n){var i=e.scale,a=Object(s.h)(e),o=[];return r.each(i.getTicks(),(function(e){var r=i.getLabel(e),s=e.value;t(e.value,r)&&o.push(n?s:{formattedLabel:a(e),rawLabel:r,tickValue:s})})),o}
// CONCATENATED MODULE: ./node_modules/echarts/lib/coord/Axis.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/var y=[0,1],A=/** @class */function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}
/**
   * If axis extent contain given coord
   */return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},
/**
   * If axis extent contain given data
   */
e.prototype.containData=function(e){return this.scale.contain(e)},
/**
   * Get coord extent.
   */
e.prototype.getExtent=function(){return this._extent.slice()},
/**
   * Get precision used for formatting
   */
e.prototype.getPixelPrecision=function(e){return Object(i.g)(e||this.scale.getExtent(),this._extent)},
/**
   * Set coord extent
   */
e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},
/**
   * Convert data to coord. Data is the rank if it has an ordinal scale
   */
e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&b(n=n.slice(),r.count()),Object(i.m)(e,y,n,t)},
/**
   * Convert coord to data. Data is the rank if it has an ordinal scale
   */
e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&b(n=n.slice(),r.count());var a=Object(i.m)(e,n,y,t);return this.scale.scale(a)},
/**
   * Convert pixel point to data in axis
   */
e.prototype.pointToData=function(e,t){},
/**
   * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,
   * `axis.getTicksCoords` considers `onBand`, which is used by
   * `boundaryGap:true` of category axis and splitLine and splitArea.
   * @param opt.tickModel default: axis.model.getModel('axisTick')
   * @param opt.clamp If `true`, the first and the last
   *        tick must be at the axis end points. Otherwise, clip ticks
   *        that outside the axis extent.
   */
e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=h(this,t).ticks,a=Object(r.map)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);
// If axis has labels [1, 2, 3, 4]. Bands on the axis are
// |---1---|---2---|---3---|---4---|.
// So the displayed ticks and splitLine/splitArea should between
// each data item, otherwise cause misleading (e.g., split tow bars
// of a single data item when there are two bar series).
// Also consider if tickCategoryInterval > 0 and onBand, ticks and
// splitLine/spliteArea should layout appropriately corresponding
// to displayed labels. (So we should not use `getBandWidth` in this
// case).
return function(e,t,n,a){var o=t.length;if(!e.onBand||n||!o)return;var s,c,l=e.getExtent();if(1===o)t[0].coord=l[0],s=t[1]={coord:l[1],tickValue:t[0].tickValue};else{var u=t[o-1].tickValue-t[0].tickValue,h=(t[o-1].coord-t[0].coord)/u;Object(r.each)(t,(function(e){e.coord-=h/2}));var f=e.scale.getExtent();c=1+f[1]-t[o-1].tickValue,s={coord:t[o-1].coord+h*c,tickValue:f[1]+1},t.push(s)}var d=l[0]>l[1];
// Handling clamp.
p(t[0].coord,l[0])&&(a?t[0].coord=l[0]:t.shift());a&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]});p(l[1],s.coord)&&(a?s.coord=l[1]:t.pop());a&&p(s.coord,l[1])&&t.push({coord:l[1]});function p(e,t){
// Avoid rounding error cause calculated tick coord different with extent.
// It may cause an extra unnecessary tick added.
return e=Object(i.w)(e),t=Object(i.w)(t),d?e>t:e<t}}
/* harmony default export */(this,a,t.get("alignWithLabel"),e.clamp),a},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)
// Category axis doesn't support minor ticks
return[];var e=this.model.getModel("minorTick").get("splitNumber");
// Protection.
e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return Object(r.map)(t,(function(e){return Object(r.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return u(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},
/**
   * Notice here we only get the default tick model. For splitLine
   * or splitArea, we should pass the splitLineModel or splitAreaModel
   * manually when calling `getTicksCoords`.
   * In GL, this method may be overridden to:
   * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`
   */
e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},
/**
   * Get width of band
   */
e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);
// Fix #2728, avoid NaN when only one data.
0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},
/**
   * Only be called in category axis.
   * Can be overridden, consider other axes like in 3D.
   * @return Auto interval for cateogry axis tick and label
   */
e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=Object(s.h)(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),l=i.count();if(o[1]-o[0]<1)return 0;var u=1;
// Simple optimization. Empirical value: tick count should less than 40.
l>40&&(u=Math.max(1,Math.floor(l/40)));
// Caution: Performance sensitive for large category data.
// Consider dataZoom, we should make appropriate step to avoid O(n) loop.
for(var h=o[0],f=e.dataToCoord(h+1)-e.dataToCoord(h),d=Math.abs(f*Math.cos(r)),p=Math.abs(f*Math.sin(r)),g=0,m=0;h<=o[1];h+=u){var v,y,A=a.d(n({value:h}),t.font,"center","top");
// Magic number
v=1.3*A.width,y=1.3*A.height,
// Min size, void long loop.
g=Math.max(g,v,7),m=Math.max(m,y,7)}var b=g/d,w=m/p;
// 0/0 is NaN, 1/0 is Infinity.
isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var x=Math.max(0,Math.floor(Math.min(b,w))),C=c(e.model),_=e.getExtent(),I=C.lastAutoInterval,E=C.lastTickCount;
// Use cache to keep interval stable while moving zoom window,
// otherwise the calculated interval might jitter when the zoom
// window size is close to the interval-changing size.
// For example, if all of the axis labels are `a, b, c, d, e, f, g`.
// The jitter will cause that sometimes the displayed labels are
// `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).
return null!=I&&null!=E&&Math.abs(I-x)<=1&&Math.abs(E-l)<=1&&I>x&&C.axisExtent0===_[0]&&C.axisExtent1===_[1]?x=I:(C.lastTickCount=l,C.lastAutoInterval=x,C.axisExtent0=_[0],C.axisExtent1=_[1]),x}(this)},e}();
/**
 * Base class of Axis.
 */function b(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}t.a=A;
/***/},
/***/8539:
/***/function(e,t,n){var r=n("93e0").parseFloat,i=n("e9d8").trim;e.exports=1/r(n("69b4")+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},
/***/8558:
/***/function(e,t,n){"use strict";
/* global Bun, Deno -- detection */var r=n("cfe9"),i=n("b5db"),a=n("c6b6"),o=function(e){return i.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},
/***/"857a":
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),a=n("577e"),o=/"/g,s=r("".replace);
// `CreateHTML` abstract operation
// https://tc39.es/ecma262/#sec-createhtml
e.exports=function(e,t,n,r){var c=a(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+s(a(r),o,"&quot;")+'"'),l+">"+c+"</"+t+">"}},
/***/"857d":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));var r=2*Math.PI;function i(e){return(e%=r)<0&&(e+=r),e}
/***/},
/***/8582:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return d})),
/* harmony export (binding) */n.d(t,"b",(function(){return p}));
/* harmony import */var r=n("1687"),i=n("401b"),a=r.identity,o=5e-5;
/* harmony import */function s(e){return e>o||e<-5e-5}var c=[],l=[],u=r.create(),h=Math.abs,f=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||r.create(),t?this.getLocalTransform(n):a(n),e&&(t?r.mul(n,e,n):r.copy(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(a(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(c);var n=c[0]<0?-1:1,i=c[1]<0?-1:1,a=((c[0]-n)*t+n)/c[0]||0,o=((c[1]-i)*t+i)/c[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||r.create(),r.mul(l,e.invTransform,t),t=l);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r.mul(l,t,u),l[4]-=n,l[5]-=i,t=l),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,c=e.anchorY,l=e.rotation||0,u=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||c){var p=n+s,g=i+c;t[4]=-p*a-f*g*o,t[5]=-g*o-d*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,l&&r.rotate(t,t,l),t[4]+=n+u,t[5]+=i+h,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;n<d.length;n++){var r=d[n];e[r]=t[r]}}
/* harmony default export */t.c=f},
/***/8583:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js
var r=n("2332"),i=Object.create,a=function(){function e(){}return function(t){if(!Object(r.a)(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),o=n("52e7"),s=n("a724");
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseCreate.js
/** Built-in value references. */
/* harmony default export */t.a=
// CONCATENATED MODULE: ./node_modules/lodash-es/_initCloneObject.js
/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function(e){return"function"!=typeof e.constructor||Object(s.a)(e)?{}:a(Object(o.a)(e))};
/***/},
/***/"85c4":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("9523")),a=r(n("448a")),o=r(n("970b")),s=r(n("a870")),c=r(n("050c")),l=n("5557"),u=r(n("b06d")),h=r(n("eb53"));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}
/**
 * @description           Class of CRender
 * @param {Object} canvas Canvas DOM
 * @return {CRender}      Instance of CRender
 */
var d=function e(t){if((0,o.default)(this,e),t){var n=t.getContext("2d"),r=t.clientWidth,i=t.clientHeight,a=[r,i];t.setAttribute("width",r),t.setAttribute("height",i),
/**
   * @description Context of the canvas
   * @type {Object}
   * @example ctx = canvas.getContext('2d')
   */
this.ctx=n,
/**
   * @description Width and height of the canvas
   * @type {Array}
   * @example area = [300，100]
   */
this.area=a,
/**
   * @description Whether render is in animation rendering
   * @type {Boolean}
   * @example animationStatus = true|false
   */
this.animationStatus=!1,
/**
   * @description Added graph
   * @type {[Graph]}
   * @example graphs = [Graph, Graph, ...]
   */
this.graphs=[],
/**
   * @description Color plugin
   * @type {Object}
   * @link https://github.com/jiaming743/color
   */
this.color=s.default,
/**
   * @description Bezier Curve plugin
   * @type {Object}
   * @link https://github.com/jiaming743/BezierCurve
   */
this.bezierCurve=c.default,// bind event handler
t.addEventListener("mousedown",g.bind(this)),t.addEventListener("mousemove",m.bind(this)),t.addEventListener("mouseup",v.bind(this))}};
/**
 * @description        Clear canvas drawing area
 * @return {Undefined} Void
 */
/**
 * @description Try to animate every graph
 * @param {Function} callback Callback in animation end
 * @param {Number} timeStamp  Time stamp of animation start
 * @return {Undefined} Void
 */
function p(e,t){var n=this.graphs;!
/**
 * @description Find if there are graph that can be animated
 * @param {[Graph]} graphs
 * @return {Boolean}
 */
function(e){return e.find((function(e){return!e.animationPause&&e.animationFrameState.length}))}
/**
 * @description Handler of CRender mousedown event
 * @return {Undefined} Void
 */(n)?e():(n.forEach((function(e){return e.turnNextAnimationFrame(t)})),this.drawAllGraph(),requestAnimationFrame(p.bind(this,e,t)))}function g(e){var t=this.graphs.find((function(e){return"hover"===e.status}));t&&(t.status="active")}
/**
 * @description Handler of CRender mousemove event
 * @return {Undefined} Void
 */function m(e){var t=[e.offsetX,e.offsetY],n=this.graphs,r=n.find((function(e){return"active"===e.status||"drag"===e.status}));if(r){if(!r.drag)return;if("function"!=typeof r.move)return;return r.moveProcessor(e),void(r.status="drag")}var i=n.find((function(e){return"hover"===e.status})),a=n.filter((function(e){return e.hover&&("function"==typeof e.hoverCheck||e.hoverRect)})).find((function(e){return e.hoverCheckProcessor(t,e)}));document.body.style.cursor=a?a.style.hoverCursor:"default";var o=!1,s=!1;if(i&&(o="function"==typeof i.mouseOuter),a&&(s="function"==typeof a.mouseEnter),a||i){if(!a&&i)return o&&i.mouseOuter(e,i),void(i.status="static");if(!a||a!==i)return a&&!i?(s&&a.mouseEnter(e,a),void(a.status="hover")):void(a&&i&&a!==i&&(o&&i.mouseOuter(e,i),i.status="static",s&&a.mouseEnter(e,a),a.status="hover"))}}
/**
 * @description Handler of CRender mouseup event
 * @return {Undefined} Void
 */function v(e){var t=this.graphs,n=t.find((function(e){return"active"===e.status})),r=t.find((function(e){return"drag"===e.status}));n&&"function"==typeof n.click&&n.click(e,n),t.forEach((function(e){return e&&(e.status="static")})),n&&(n.status="hover"),r&&(r.status="hover")}
/**
 * @description         Clone Graph
 * @param {Graph} graph The target to be cloned
 * @return {Graph}      Cloned graph
 */t.default=d,d.prototype.clearArea=function(){var e,t=this.area;(e=this.ctx).clearRect.apply(e,[0,0].concat((0,a.default)(t)))},
/**
 * @description           Add graph to render
 * @param {Object} config Graph configuration
 * @return {Graph}        Graph instance
 */
d.prototype.add=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;if(t){var n=u.default.get(t);if(n){var r=new h.default(n,e);if(r.validator(r))return r.render=this,this.graphs.push(r),this.sortGraphsByIndex(),this.drawAllGraph(),r}}},
/**
 * @description Sort the graph by index
 * @return {Undefined} Void
 */
d.prototype.sortGraphsByIndex=function(){this.graphs.sort((function(e,t){return e.index>t.index?1:e.index===t.index?0:e.index<t.index?-1:void 0}))},
/**
 * @description         Delete graph in render
 * @param {Graph} graph The graph to be deleted
 * @return {Undefined}  Void
 */
d.prototype.delGraph=function(e){"function"==typeof e.delProcessor&&(e.delProcessor(this),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph())},
/**
 * @description        Delete all graph in render
 * @return {Undefined} Void
 */
d.prototype.delAllGraph=function(){var e=this;this.graphs.forEach((function(t){return t.delProcessor(e)})),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph()},
/**
 * @description        Draw all the graphs in the render
 * @return {Undefined} Void
 */
d.prototype.drawAllGraph=function(){var e=this;this.clearArea(),this.graphs.filter((function(e){return e&&e.visible})).forEach((function(t){return t.drawProcessor(e,t)}))},
/**
 * @description      Animate the graph whose animation queue is not empty
 *                   and the animationPause is equal to false
 * @return {Promise} Animation Promise
 */
d.prototype.launchAnimation=function(){var e=this;if(!this.animationStatus)return this.animationStatus=!0,new Promise((function(t){p.call(e,(function(){e.animationStatus=!1,t()}),Date.now())}))},d.prototype.clone=function(e){var t=e.style.getStyle(),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{style:t});return delete n.render,n=(0,l.deepClone)(n,!0),this.add(n)}},
/***/"85e3":
/***/function(e,t){e.exports=
/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},
/***/"85e7":
/***/function(e,t,n){var r=n("1a14"),i=n("77e9"),a=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,c=0;s>c;)r.f(e,n=o[c++],t[n]);return e}},
/***/8604:
/***/function(e,t,n){var r=n("26e8"),i=n("e2c0");
/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */e.exports=function(e,t){return null!=e&&i(e,t,r)}},
/***/"861c":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i})),
/* harmony export (binding) */n.d(t,"b",(function(){return a}));
/* harmony import */var r=n("e0d3"),i=Object(r.o)(),a=function(e,t,n,r){if(r){var a=i(r);
// Add data index and series index for indexing the data by element
// Useful in tooltip
a.dataIndex=n,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",
// TODO: not store dataIndex on children.
"group"===r.type&&r.traverse((function(r){var a=i(r);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"}))}};
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/},
/***/"861d":
/***/function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},
/***/8710:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return U}));
// EXTERNAL MODULE: ./node_modules/three/build/three.module.js
var r=n("5a89"),i=function(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/libs/fflate.module.js
/*!
fflate - fast JavaScript compression/decompression
<https://101arrowz.github.io/fflate>
Licensed under MIT. https://github.com/101arrowz/fflate/blob/master/LICENSE
version 0.6.9
*/
// DEFLATE is a complex format; to read this code, you should probably check the RFC first:
// https://tools.ietf.org/html/rfc1951
// You may also wish to take a look at the guide I made about this program:
// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad
// Some of the following code is similar to that of UZIP.js:
// https://github.com/photopea/UZIP.js
// However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size.
// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint
// is better for memory in most engines (I *think*).
try{URL.revokeObjectURL(i(""))}catch(e){
// We're in Deno or a very old browser
i=function(e){return"data:application/javascript;charset=UTF-8,"+encodeURI(e)}}var a=Uint8Array,o=Uint16Array,s=Uint32Array,c=new a([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,/* unused */0,0,/* impossible */0]),l=new a([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,/* unused */0,0]),u=new a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];
// numbers here are at max 18 bits
var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]},f=h(c,2),d=f[0],p=f[1];
// aliases for shorter compressed code (most minifers don't do this)
// we can ignore the fact that the other numbers are wrong; they never happen anyway
d[28]=258,p[258]=28;for(var g=h(l,0),m=g[0],v=(g[1],new o(32768)),y=0
// map of value to reverse (assuming 16 bits)
;y<32768;++y){
// reverse table algorithm from SO
var A=(43690&y)>>>1|(21845&y)<<1;A=(61680&(A=(52428&A)>>>2|(13107&A)<<2))>>>4|(3855&A)<<4,v[y]=((65280&A)>>>8|(255&A)<<8)>>>1}
// create huffman tree from u8 "map": index -> code length for code index
// mb (max bits) must be at most 15
// TODO: optimize/split up?
var b=function(e,t,n){
// length of cd must be 288 (total # of codes)
for(var r=e.length,i=0,a=new o(t)
// index
;i<r;++i)++a[e[i]-1];
// u16 "map": index -> minimum code for bit length = index
var s,c=new o(t);for(i=0;i<t;++i)c[i]=c[i-1]+a[i-1]<<1;if(n){
// u16 "map": index -> number of actual bits, symbol for code
s=new o(1<<t);
// bits to remove for reverser
var l=15-t;for(i=0;i<r;++i)
// ignore 0 lengths
if(e[i])
// m is end value
for(
// num encoding both symbol and bits read
var u=i<<4|e[i],h=t-e[i],f=c[e[i]-1]++<<h,d=f|(1<<h)-1
// free bits
;f<=d;++f)
// every 16 bit value starting with the code yields the same result
s[v[f]>>>l]=u}else for(s=new o(r),i=0;i<r;++i)e[i]&&(s[i]=v[c[e[i]-1]++]>>>15-e[i]);return s},w=new a(288);
// fixed length tree
for(y=0;y<144;++y)w[y]=8;for(y=144;y<256;++y)w[y]=9;for(y=256;y<280;++y)w[y]=7;for(y=280;y<288;++y)w[y]=8;
// fixed distance tree
var x=new a(32);for(y=0;y<32;++y)x[y]=5;
// fixed length map
var C=b(w,9,1),_=b(x,5,1),I=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},E=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},k=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},S=function(e){return(e/8|0)+(7&e&&1)},B=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);
// can't use .constructor in case user-supplied
var r=new(e instanceof o?o:e instanceof s?s:a)(n-t);return r.set(e.subarray(t,n)),r},M=function(e,t,n){
// source length
var r=e.length;if(!r||n&&!n.l&&r<5)return t||new a(0);
// have to estimate size
var i=!t||n,o=!n||n.i;
// no state
n||(n={}),
// Assumes roughly 33% compression ratio average
t||(t=new a(3*r));
// ensure buffer can fit at least l elements
var s=function(e){var n=t.length;
// need to increase size to fit
if(e>n){
// Double or set to necessary, whichever is greater
var r=new a(Math.max(2*n,e));r.set(t),t=r}},h=n.f||0,f=n.p||0,p=n.b||0,g=n.l,v=n.d,y=n.m,A=n.n,w=8*r;
//  last chunk         bitpos           bytes
do{if(!g){
// BFINAL - this is only 1 when last chunk is next
n.f=h=E(e,f,1);
// type: 0 = no compression, 1 = fixed huffman, 2 = dynamic huffman
var x=E(e,f+1,3);if(f+=3,!x){
// go to end of byte boundary
var M=e[(z=S(f)+4)-4]|e[z-3]<<8,T=z+M;if(T>r){if(o)throw"unexpected EOF";break}
// ensure size
i&&s(p+M),
// Copy over uncompressed data
t.set(e.subarray(z,T),p),
// Get new bitpos, update byte count
n.b=p+=M,n.p=f=8*T;continue}if(1==x)g=C,v=_,y=9,A=5;else{if(2!=x)throw"invalid block type";
//  literal                            lengths
var O=E(e,f,31)+257,D=E(e,f+10,15)+4,P=O+E(e,f+5,31)+1;f+=14;for(
// length+distance tree
var L=new a(P),Q=new a(19),R=0
// code length tree
;R<D;++R)
// use index map to get real code
Q[u[R]]=E(e,f+3*R,7);f+=3*D;
// code lengths bits
var j=I(Q),N=(1<<j)-1,F=b(Q,j,1);
// code lengths map
for(R=0;R<P;){var z,H=F[E(e,f,N)];
// bits read
// code length to copy
if(f+=15&H,(z=H>>>4)<16)L[R++]=z;else{
//  copy   count
var U=0,G=0;for(16==z?(G=3+E(e,f,3),f+=2,U=L[R-1]):17==z?(G=3+E(e,f,7),f+=3):18==z&&(G=11+E(e,f,127),f+=7);G--;)L[R++]=U}}
//    length tree                 distance tree
var V=L.subarray(0,O),W=L.subarray(O);
// max length bits
y=I(V),
// max dist bits
A=I(W),g=b(V,y,1),v=b(W,A,1)}if(f>w){if(o)throw"unexpected EOF";break}}
// Make sure the buffer can hold this + the largest possible addition
// Maximum chunk size (practically, theoretically infinite) is 2^17;
i&&s(p+131072);for(var q=(1<<y)-1,Y=(1<<A)-1,K=f;;K=f){
// bits read, code
var $=(U=g[k(e,f)&q])>>>4;if((f+=15&U)>w){if(o)throw"unexpected EOF";break}if(!U)throw"invalid length/literal";if($<256)t[p++]=$;else{if(256==$){K=f,g=null;break}var J=$-254;
// no extra bits needed if less
if($>264){
// index
var X=c[R=$-257];J=E(e,f,(1<<X)-1)+d[R],f+=X}
// dist
var Z=v[k(e,f)&Y],ee=Z>>>4;if(!Z)throw"invalid distance";f+=15&Z;W=m[ee];if(ee>3){X=l[ee];W+=k(e,f)&(1<<X)-1,f+=X}if(f>w){if(o)throw"unexpected EOF";break}i&&s(p+131072);for(var te=p+J;p<te;p+=4)t[p]=t[p-W],t[p+1]=t[p+1-W],t[p+2]=t[p+2-W],t[p+3]=t[p+3-W];p=te}}n.l=g,n.p=K,n.b=p,g&&(h=1,n.m=y,n.d=v,n.n=A)}while(!h);return p==t.length?t:B(t,0,p)},T=new a(0),O=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};
// fixed distance map
/**
 * Expands Zlib data
 * @param data The data to decompress
 * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
 * @returns The decompressed version of the data
 */
function D(e,t){return M((O(e),e.subarray(2,-4)),t)}
// Default algorithm for compression (used because having a known output size allows faster decompression)
// Default algorithm for compression (used because having a known output size allows faster decompression)
/**
 * Streaming GZIP, Zlib, or raw DEFLATE decompression
 */
// flatten a directory structure
var P="undefined"!=typeof TextDecoder&&new TextDecoder;
// text encoder
try{P.decode(T,{stream:!0})}catch(e){}
// decode UTF8
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/curves/NURBSUtils.js
/**
 * NURBS utils
 *
 * See NURBSCurve and NURBSSurface.
 **/
/**************************************************************
 *	NURBS Utils
 **************************************************************/
/*
Finds knot vector span.

p : degree
u : parametric value
U : knot vector

returns the span
*/
function L(e,t,n){const r=n.length-e-1;if(t>=n[r])return r-1;if(t<=n[e])return e;let i=e,a=r,o=Math.floor((i+a)/2);for(;t<n[o]||t>=n[o+1];)t<n[o]?a=o:i=o,o=Math.floor((i+a)/2);return o}
/*
Calculate basis functions. See The NURBS Book, page 70, algorithm A2.2

span : span in which u lies
u    : parametric point
p    : degree
U    : knot vector

returns array[p+1] with basis functions values.
*/function Q(e,t,n,r){const i=[],a=[],o=[];i[0]=1;for(let s=1;s<=n;++s){a[s]=t-r[e+1-s],o[s]=r[e+s]-t;let n=0;for(let e=0;e<s;++e){const t=o[e+1],r=a[s-e],c=i[e]/(t+r);i[e]=n+t*c,n=r*c}i[s]=n}return i}
/*
Calculate B-Spline curve points. See The NURBS Book, page 82, algorithm A3.1.

p : degree of B-Spline
U : knot vector
P : control points (x, y, z, w)
u : parametric point

returns point for given u
*/
/*
Calculate "K over I"

returns k!/(i!(k-i)!)
*/
function R(e,t){let n=1;for(let t=2;t<=e;++t)n*=t;let r=1;for(let e=2;e<=t;++e)r*=e;for(let n=2;n<=e-t;++n)r*=n;return n/r}
/*
Calculate derivatives (0-nd) of rational curve. See The NURBS Book, page 127, algorithm A4.2.

Pders : result of function calcBSplineDerivatives

returns array with derivatives for rational curve.
*/
/*
Calculate NURBS curve derivatives. See The NURBS Book, page 127, algorithm A4.2.

p  : degree
U  : knot vector
P  : control points in homogeneous space
u  : parametric points
nd : number of derivatives

returns array with derivatives.
*/
function j(e,t,n,i,a){const o=
/*
	Calculate derivatives of a B-Spline. See The NURBS Book, page 93, algorithm A3.2.

	p  : degree
	U  : knot vector
	P  : control points
	u  : Parametric points
	nd : number of derivatives

	returns array[d+1] with derivatives
	*/
function(e,t,n,i,a){const o=a<e?a:e,s=[],c=L(e,i,t),l=
/*
Calculate basis functions derivatives. See The NURBS Book, page 72, algorithm A2.3.

span : span in which u lies
u    : parametric point
p    : degree
n    : number of derivatives to calculate
U    : knot vector

returns array[n+1][p+1] with basis functions derivatives
*/
function(e,t,n,r,i){const a=[];for(let e=0;e<=n;++e)a[e]=0;const o=[];for(let e=0;e<=r;++e)o[e]=a.slice(0);const s=[];for(let e=0;e<=n;++e)s[e]=a.slice(0);s[0][0]=1;const c=a.slice(0),l=a.slice(0);for(let r=1;r<=n;++r){c[r]=t-i[e+1-r],l[r]=i[e+r]-t;let n=0;for(let e=0;e<r;++e){const t=l[e+1],i=c[r-e];s[r][e]=t+i;const a=s[e][r-1]/s[r][e];s[e][r]=n+t*a,n=i*a}s[r][r]=n}for(let e=0;e<=n;++e)o[0][e]=s[e][n];for(let e=0;e<=n;++e){let t=0,i=1;const c=[];for(let e=0;e<=n;++e)c[e]=a.slice(0);c[0][0]=1;for(let a=1;a<=r;++a){let r=0;const l=e-a,u=n-a;e>=a&&(c[i][0]=c[t][0]/s[u+1][l],r=c[i][0]*s[l][u]);const h=e-1<=u?a-1:n-e;for(let e=l>=-1?1:-l;e<=h;++e)c[i][e]=(c[t][e]-c[t][e-1])/s[u+1][l+e],r+=c[i][e]*s[l+e][u];e<=u&&(c[i][a]=-c[t][a-1]/s[u+1][e],r+=c[i][a]*s[e][u]),o[a][e]=r;const f=t;t=i,i=f}}let u=n;for(let e=1;e<=r;++e){for(let t=0;t<=n;++t)o[e][t]*=u;u*=n-e}return o}(c,i,e,o,t),u=[];for(let e=0;e<n.length;++e){const t=n[e].clone(),r=t.w;t.x*=r,t.y*=r,t.z*=r,u[e]=t}for(let t=0;t<=o;++t){const n=u[c-e].clone().multiplyScalar(l[t][0]);for(let r=1;r<=e;++r)n.add(u[c-e+r].clone().multiplyScalar(l[t][r]));s[t]=n}for(let e=o+1;e<=a+1;++e)s[e]=new r.Qb(0,0,0);return s}(e,t,n,i,a);return function(e){const t=e.length,n=[],i=[];for(let a=0;a<t;++a){const t=e[a];n[a]=new r.Pb(t.x,t.y,t.z),i[a]=t.w}const a=[];for(let e=0;e<t;++e){const t=n[e].clone();for(let n=1;n<=e;++n)t.sub(a[e-n].clone().multiplyScalar(R(e,n)*i[n]));a[e]=t.divideScalar(i[0])}return a}(o)}
/*
Calculate rational B-Spline surface point. See The NURBS Book, page 134, algorithm A4.3.

p1, p2 : degrees of B-Spline surface
U1, U2 : knot vectors
P      : control points (x, y, z, w)
u, v   : parametric values

returns point for given (u, v)
*/
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/curves/NURBSCurve.js
/**
 * NURBS curve object
 *
 * Derives from Curve, overriding getPoint and getTangent.
 *
 * Implementation is based on (x, y [, z=0 [, w=1]]) control points with w=weight.
 *
 **/
class N extends r.l{constructor(e,t/* array of reals */,n/* array of Vector(2|3|4) */,i/* index in knots */,a/* index in knots */){super(),this.degree=e,this.knots=t,this.controlPoints=[],
// Used by periodic NURBS to remove hidden spans
this.startKnot=i||0,this.endKnot=a||this.knots.length-1;for(let e=0;e<n.length;++e){
// ensure Vector4 for control points
const t=n[e];this.controlPoints[e]=new r.Qb(t.x,t.y,t.z,t.w)}}getPoint(e,t=new r.Pb){const n=t,i=this.knots[this.startKnot]+e*(this.knots[this.endKnot]-this.knots[this.startKnot]),a=function(e,t,n,i){const a=L(e,i,t),o=Q(a,i,e,t),s=new r.Qb(0,0,0,0);for(let t=0;t<=e;++t){const r=n[a-e+t],i=o[t],c=r.w*i;s.x+=r.x*c,s.y+=r.y*c,s.z+=r.z*c,s.w+=r.w*i}return s}(this.degree,this.knots,this.controlPoints,i);return 1!==a.w&&
// project to 3D space: (wx, wy, wz, w) -> (x, y, z, 1)
a.divideScalar(a.w),n.set(a.x,a.y,a.z)}getTangent(e,t=new r.Pb){const n=t,i=this.knots[0]+e*(this.knots[this.knots.length-1]-this.knots[0]),a=j(this.degree,this.knots,this.controlPoints,i,1);return n.copy(a[1]).normalize(),n}}
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/loaders/FBXLoader.js
/**
 * Loader loads FBX file and generates Group representing FBX scene.
 * Requires FBX file to be >= 7.0 and in ASCII or >= 6400 in Binary format
 * Versions lower than this may load but will probably have errors
 *
 * Needs Support:
 *  Morph normals / blend shape normals
 *
 * FBX format references:
 * 	https://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_index_html (C++ SDK reference)
 *
 * Binary format specification:
 *	https://code.blender.org/2013/08/fbx-binary-file-format-specification/
 */let F,z,H;class U extends r.P{constructor(e){super(e)}load(e,t,n,i){const a=this,o=""===a.path?r.Q.extractUrlBase(e):a.path,s=new r.t(this.manager);s.setPath(a.path),s.setResponseType("arraybuffer"),s.setRequestHeader(a.requestHeader),s.setWithCredentials(a.withCredentials),s.load(e,(function(n){try{t(a.parse(n,o))}catch(t){i&&i(t),a.manager.itemError(e)}}),n,i)}parse(e,t){if(
// ************** UTILITY FUNCTIONS **************
function(e){const t="Kaydara FBX Binary  \0";return e.byteLength>=t.length&&t===oe(e,0,t.length)}(e))F=(new Y).parse(e);else{const t=oe(e);if(!function(e){const t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"];let n=0;function r(t){const r=e[t-1];return e=e.slice(n+t),n++,r}for(let e=0;e<t.length;++e){if(r(1)===t[e])return!1}return!0}(t))throw new Error("THREE.FBXLoader: Unknown format.");if(J(t)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+J(t));F=(new q).parse(t)}
// console.log( fbxTree );
const n=new r.Jb(this.manager).setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin);return new G(n,this.manager).parse(F)}}
// Parse the FBXTree object returned by the BinaryParser or TextParser and return a Group
class G{constructor(e,t){this.textureLoader=e,this.manager=t}parse(){z=this.parseConnections();const e=this.parseImages(),t=this.parseTextures(e),n=this.parseMaterials(t),r=this.parseDeformers(),i=(new V).parse(r);return this.parseScene(r,i,n),H}
// Parses FBXTree.Connections which holds parent-child connections between objects (e.g. material -> texture, model->geometry )
// and details the connection type
parseConnections(){const e=new Map;if("Connections"in F){F.Connections.connections.forEach((function(t){const n=t[0],r=t[1],i=t[2];e.has(n)||e.set(n,{parents:[],children:[]});const a={ID:r,relationship:i};e.get(n).parents.push(a),e.has(r)||e.set(r,{parents:[],children:[]});const o={ID:n,relationship:i};e.get(r).children.push(o)}))}return e}
// Parse FBXTree.Objects.Video for embedded image data
// These images are connected to textures in FBXTree.Objects.Textures
// via FBXTree.Connections.
parseImages(){const e={},t={};if("Video"in F.Objects){const n=F.Objects.Video;for(const r in n){const i=n[r];
// raw image data is in videoNode.Content
if(e[parseInt(r)]=i.RelativeFilename||i.Filename,"Content"in i){const e=i.Content instanceof ArrayBuffer&&i.Content.byteLength>0,a="string"==typeof i.Content&&""!==i.Content;if(e||a){const e=this.parseImage(n[r]);t[i.RelativeFilename||i.Filename]=e}}}}for(const n in e){const r=e[n];void 0!==t[r]?e[n]=t[r]:e[n]=e[n].split("\\").pop()}return e}
// Parse embedded image data in FBXTree.Video.Content
parseImage(e){const t=e.Content,n=e.RelativeFilename||e.Filename;let r;switch(n.slice(n.lastIndexOf(".")+1).toLowerCase()){case"bmp":r="image/bmp";break;case"jpg":case"jpeg":r="image/jpeg";break;case"png":r="image/png";break;case"tif":r="image/tiff";break;case"tga":this.manager.getHandler(".tga"),r="image/tga";break;default:return}if("string"==typeof t)// ASCII format
return"data:"+r+";base64,"+t;{// Binary Format
const e=new Uint8Array(t);return window.URL.createObjectURL(new Blob([e],{type:r}))}}
// Parse nodes in FBXTree.Objects.Texture
// These contain details such as UV scaling, cropping, rotation etc and are connected
// to images in FBXTree.Objects.Video
parseTextures(e){const t=new Map;if("Texture"in F.Objects){const n=F.Objects.Texture;for(const r in n){const i=this.parseTexture(n[r],e);t.set(parseInt(r),i)}}return t}
// Parse individual node in FBXTree.Objects.Texture
parseTexture(e,t){const n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;const i=e.WrapModeU,a=e.WrapModeV,o=void 0!==i?i.value:0,s=void 0!==a?a.value:0;if(
// http://download.autodesk.com/us/fbx/SDKdocs/FBX_SDK_Help/files/fbxsdkref/class_k_fbx_texture.html#889640e63e2e681259ea81061b85143a
// 0: repeat(default), 1: clamp
n.wrapS=0===o?r.xb:r.h,n.wrapT=0===s?r.xb:r.h,"Scaling"in e){const t=e.Scaling.value;n.repeat.x=t[0],n.repeat.y=t[1]}if("Translation"in e){const t=e.Translation.value;n.offset.x=t[0],n.offset.y=t[1]}return n}
// load a texture specified as a blob or data URI, or via an external URL using TextureLoader
loadTexture(e,t){let n;const i=this.textureLoader.path,a=z.get(e.id).children;let o;void 0!==a&&a.length>0&&void 0!==t[a[0].ID]&&(n=t[a[0].ID],0!==n.indexOf("blob:")&&0!==n.indexOf("data:")||this.textureLoader.setPath(void 0));const s=e.FileName.slice(-3).toLowerCase();if("tga"===s){const e=this.manager.getHandler(".tga");null===e?o=new r.Ib:(e.setPath(this.textureLoader.path),o=e.load(n))}else o="psd"===s?new r.Ib:this.textureLoader.load(n);return this.textureLoader.setPath(i),o}
// Parse nodes in FBXTree.Objects.Material
parseMaterials(e){const t=new Map;if("Material"in F.Objects){const n=F.Objects.Material;for(const r in n){const i=this.parseMaterial(n[r],e);null!==i&&t.set(parseInt(r),i)}}return t}
// Parse single node in FBXTree.Objects.Material
// Materials are connected to texture maps in FBXTree.Objects.Textures
// FBX format currently only supports Lambert and Phong shading models
parseMaterial(e,t){const n=e.id,i=e.attrName;let a=e.ShadingModel;
// Case where FBX wraps shading model in property object.
// Ignore unused materials which don't have any connections.
if("object"==typeof a&&(a=a.value),!z.has(n))return null;const o=this.parseParameters(e,t,n);let s;switch(a.toLowerCase()){case"phong":default:s=new r.Z;break;case"lambert":s=new r.Y}return s.setValues(o),s.name=i,s}
// Parse FBX material and return parameters suitable for a three.js material
// Also parse the texture map and return any textures associated with the material
parseParameters(e,t,n){const i={};e.BumpFactor&&(i.bumpScale=e.BumpFactor.value),e.Diffuse?i.color=(new r.j).fromArray(e.Diffuse.value):!e.DiffuseColor||"Color"!==e.DiffuseColor.type&&"ColorRGB"!==e.DiffuseColor.type||(
// The blender exporter exports diffuse here instead of in materialNode.Diffuse
i.color=(new r.j).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(i.displacementScale=e.DisplacementFactor.value),e.Emissive?i.emissive=(new r.j).fromArray(e.Emissive.value):!e.EmissiveColor||"Color"!==e.EmissiveColor.type&&"ColorRGB"!==e.EmissiveColor.type||(
// The blender exporter exports emissive color here instead of in materialNode.Emissive
i.emissive=(new r.j).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(i.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(i.opacity=parseFloat(e.Opacity.value)),i.opacity<1&&(i.transparent=!0),e.ReflectionFactor&&(i.reflectivity=e.ReflectionFactor.value),e.Shininess&&(i.shininess=e.Shininess.value),e.Specular?i.specular=(new r.j).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(
// The blender exporter exports specular color here instead of in materialNode.Specular
i.specular=(new r.j).fromArray(e.SpecularColor.value));const a=this;return z.get(n).children.forEach((function(e){switch(e.relationship){case"Bump":i.bumpMap=a.getTexture(t,e.ID);break;case"Maya|TEX_ao_map":i.aoMap=a.getTexture(t,e.ID);break;case"DiffuseColor":case"Maya|TEX_color_map":i.map=a.getTexture(t,e.ID),void 0!==i.map&&(i.map.encoding=r.Tb);break;case"DisplacementColor":i.displacementMap=a.getTexture(t,e.ID);break;case"EmissiveColor":i.emissiveMap=a.getTexture(t,e.ID),void 0!==i.emissiveMap&&(i.emissiveMap.encoding=r.Tb);break;case"NormalMap":case"Maya|TEX_normal_map":i.normalMap=a.getTexture(t,e.ID);break;case"ReflectionColor":i.envMap=a.getTexture(t,e.ID),void 0!==i.envMap&&(i.envMap.mapping=r.q,i.envMap.encoding=r.Tb);break;case"SpecularColor":i.specularMap=a.getTexture(t,e.ID),void 0!==i.specularMap&&(i.specularMap.encoding=r.Tb);break;case"TransparentColor":case"TransparencyFactor":i.alphaMap=a.getTexture(t,e.ID),i.transparent=!0}})),i}
// get a texture from the textureMap for use by a material.
getTexture(e,t){
// if the texture is a layered texture, just use the first layer and issue a warning
return"LayeredTexture"in F.Objects&&t in F.Objects.LayeredTexture&&(t=z.get(t).children[0].ID),e.get(t)}
// Parse nodes in FBXTree.Objects.Deformer
// Deformer node can contain skinning or Vertex Cache animation data, however only skinning is supported here
// Generates map of Skeleton-like objects for use later when generating and binding skeletons.
parseDeformers(){const e={},t={};if("Deformer"in F.Objects){const n=F.Objects.Deformer;for(const r in n){const i=n[r],a=z.get(parseInt(r));if("Skin"===i.attrType){const t=this.parseSkeleton(a,n);t.ID=r,a.parents.length,t.geometryID=a.parents[0].ID,e[r]=t}else if("BlendShape"===i.attrType){const e={id:r};e.rawTargets=this.parseMorphTargets(a,n),e.id=r,a.parents.length,t[r]=e}}}return{skeletons:e,morphTargets:t}}
// Parse single nodes in FBXTree.Objects.Deformer
// The top level skeleton node has type 'Skin' and sub nodes have type 'Cluster'
// Each skin node represents a skeleton and each cluster node represents a bone
parseSkeleton(e,t){const n=[];return e.children.forEach((function(e){const i=t[e.ID];if("Cluster"!==i.attrType)return;const a={ID:e.ID,indices:[],weights:[],transformLink:(new r.V).fromArray(i.TransformLink.a)};"Indexes"in i&&(a.indices=i.Indexes.a,a.weights=i.Weights.a),n.push(a)})),{rawBones:n,bones:[]}}
// The top level morph deformer node has type "BlendShape" and sub nodes have type "BlendShapeChannel"
parseMorphTargets(e,t){const n=[];for(let r=0;r<e.children.length;r++){const i=e.children[r],a=t[i.ID],o={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;o.geoID=z.get(parseInt(i.ID)).children.filter((function(e){return void 0===e.relationship}))[0].ID,n.push(o)}return n}
// create the main Group() to be returned by the loader
parseScene(e,t,n){H=new r.w;const i=this.parseModels(e.skeletons,t,n),a=F.Objects.Model,o=this;i.forEach((function(e){const t=a[e.ID];o.setLookAtProperties(e,t);z.get(e.ID).parents.forEach((function(t){const n=i.get(t.ID);void 0!==n&&n.add(e)})),null===e.parent&&H.add(e)})),this.bindSkeleton(e.skeletons,t,i),this.createAmbientLight(),H.traverse((function(e){if(e.userData.transformData){e.parent&&(e.userData.transformData.parentMatrix=e.parent.matrix,e.userData.transformData.parentMatrixWorld=e.parent.matrixWorld);const t=re(e.userData.transformData);e.applyMatrix4(t),e.updateWorldMatrix()}}));const s=(new W).parse();
// if all the models where already combined in a single group, just return that
1===H.children.length&&H.children[0].isGroup&&(H.children[0].animations=s,H=H.children[0]),H.animations=s}
// parse nodes in FBXTree.Objects.Model
parseModels(e,t,n){const i=new Map,a=F.Objects.Model;for(const o in a){const s=parseInt(o),c=a[o],l=z.get(s);let u=this.buildSkeleton(l,e,s,c.attrName);if(!u){switch(c.attrType){case"Camera":u=this.createCamera(l);break;case"Light":u=this.createLight(l);break;case"Mesh":u=this.createMesh(l,t,n);break;case"NurbsCurve":u=this.createCurve(l,t);break;case"LimbNode":case"Root":u=new r.d;break;default:u=new r.w}u.name=c.attrName?r.ob.sanitizeNodeName(c.attrName):"",u.ID=s}this.getTransformData(u,c),i.set(s,u)}return i}buildSkeleton(e,t,n,i){let a=null;return e.parents.forEach((function(e){for(const o in t){const s=t[o];s.rawBones.forEach((function(t,o){if(t.ID===e.ID){const e=a;a=new r.d,a.matrixWorld.copy(t.transformLink),
// set name and id here - otherwise in cases where "subBone" is created it will not have a name / id
a.name=i?r.ob.sanitizeNodeName(i):"",a.ID=n,s.bones[o]=a,
// In cases where a bone is shared between multiple meshes
// duplicate the bone here and and it as a child of the first bone
null!==e&&a.add(e)}}))}})),a}
// create a PerspectiveCamera or OrthographicCamera
createCamera(e){let t,n;if(e.children.forEach((function(e){const t=F.Objects.NodeAttribute[e.ID];void 0!==t&&(n=t)})),void 0===n)t=new r.hb;else{let e=0;void 0!==n.CameraProjectionType&&1===n.CameraProjectionType.value&&(e=1);let i=1;void 0!==n.NearPlane&&(i=n.NearPlane.value/1e3);let a=1e3;void 0!==n.FarPlane&&(a=n.FarPlane.value/1e3);let o=window.innerWidth,s=window.innerHeight;void 0!==n.AspectWidth&&void 0!==n.AspectHeight&&(o=n.AspectWidth.value,s=n.AspectHeight.value);const c=o/s;let l=45;void 0!==n.FieldOfView&&(l=n.FieldOfView.value);const u=n.FocalLength?n.FocalLength.value:null;switch(e){case 0:// Perspective
t=new r.kb(l,c,i,a),null!==u&&t.setFocalLength(u);break;case 1:// Orthographic
t=new r.jb(-o/2,o/2,s/2,-s/2,i,a);break;default:t=new r.hb}}return t}
// Create a DirectionalLight, PointLight or SpotLight
createLight(e){let t,n;if(e.children.forEach((function(e){const t=F.Objects.NodeAttribute[e.ID];void 0!==t&&(n=t)})),void 0===n)t=new r.hb;else{let e;
// LightType can be undefined for Point lights
e=void 0===n.LightType?0:n.LightType.value;let i=16777215;void 0!==n.Color&&(i=(new r.j).fromArray(n.Color.value));let a=void 0===n.Intensity?1:n.Intensity.value/100;
// light disabled
void 0!==n.CastLightOnObject&&0===n.CastLightOnObject.value&&(a=0);let o=0;void 0!==n.FarAttenuationEnd&&(o=void 0!==n.EnableFarAttenuation&&0===n.EnableFarAttenuation.value?0:n.FarAttenuationEnd.value);
// TODO: could this be calculated linearly from FarAttenuationStart to FarAttenuationEnd?
const s=1;switch(e){case 0:// Point
t=new r.lb(i,a,o,s);break;case 1:// Directional
t=new r.o(i,a);break;case 2:// Spot
let e=Math.PI/3;void 0!==n.InnerAngle&&(e=r.T.degToRad(n.InnerAngle.value));let c=0;void 0!==n.OuterAngle&&(
// TODO: this is not correct - FBX calculates outer and inner angle in degrees
// with OuterAngle > InnerAngle && OuterAngle <= Math.PI
// while three.js uses a penumbra between (0, 1) to attenuate the inner angle
c=r.T.degToRad(n.OuterAngle.value),c=Math.max(c,1)),t=new r.Eb(i,a,o,e,c,s);break;default:t=new r.lb(i,a)}void 0!==n.CastShadows&&1===n.CastShadows.value&&(t.castShadow=!0)}return t}createMesh(e,t,n){let i,a=null,o=null;const s=[];
// get geometry and materials(s) from connections
return e.children.forEach((function(e){t.has(e.ID)&&(a=t.get(e.ID)),n.has(e.ID)&&s.push(n.get(e.ID))})),s.length>1?o=s:s.length>0?o=s[0]:(o=new r.Z({color:13421772}),s.push(o)),"color"in a.attributes&&s.forEach((function(e){e.vertexColors=!0})),a.FBX_Deformer?(i=new r.Bb(a,o),i.normalizeSkinWeights()):i=new r.W(a,o),i}createCurve(e,t){const n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),i=new r.H({color:3342591,linewidth:1});
// FBX does not list materials for Nurbs lines, so we'll just put our own in here.
return new r.G(n,i)}
// parse the model node for transform data
getTransformData(e,t){const n={};"InheritType"in t&&(n.inheritType=parseInt(t.InheritType.value)),n.eulerOrder="RotationOrder"in t?ie(t.RotationOrder.value):"ZYX","Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value),"ScalingOffset"in t&&(n.scalingOffset=t.ScalingOffset.value),"ScalingPivot"in t&&(n.scalingPivot=t.ScalingPivot.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"RotationPivot"in t&&(n.rotationPivot=t.RotationPivot.value),e.userData.transformData=n}setLookAtProperties(e,t){if("LookAtProperty"in t){z.get(e.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){const n=F.Objects.Model[t.ID];if("Lcl_Translation"in n){const t=n.Lcl_Translation.value;
// DirectionalLight, SpotLight
void 0!==e.target?(e.target.position.fromArray(t),H.add(e.target)):// Cameras and other Object3Ds
e.lookAt((new r.Pb).fromArray(t))}}}))}}bindSkeleton(e,t,n){const i=this.parsePoseNodes();for(const a in e){const o=e[a];z.get(parseInt(o.ID)).parents.forEach((function(e){if(t.has(e.ID)){const t=e.ID;z.get(t).parents.forEach((function(e){if(n.has(e.ID)){n.get(e.ID).bind(new r.Ab(o.bones),i[e.ID])}}))}}))}}parsePoseNodes(){const e={};if("Pose"in F.Objects){const t=F.Objects.Pose;for(const n in t)if("BindPose"===t[n].attrType&&t[n].NbPoseNodes>0){const i=t[n].PoseNode;Array.isArray(i)?i.forEach((function(t){e[t.Node]=(new r.V).fromArray(t.Matrix.a)})):e[i.Node]=(new r.V).fromArray(i.Matrix.a)}}return e}
// Parse ambient color in FBXTree.GlobalSettings - if it's not set to black (default), create an ambient light
createAmbientLight(){if("GlobalSettings"in F&&"AmbientColor"in F.GlobalSettings){const e=F.GlobalSettings.AmbientColor.value,t=e[0],n=e[1],i=e[2];if(0!==t||0!==n||0!==i){const e=new r.j(t,n,i);H.add(new r.a(e,1))}}}}
// parse Geometry data from FBXTree and return map of BufferGeometries
class V{constructor(){this.negativeMaterialIndices=!1}
// Parse nodes in FBXTree.Objects.Geometry
parse(e){const t=new Map;if("Geometry"in F.Objects){const n=F.Objects.Geometry;for(const r in n){const i=z.get(parseInt(r)),a=this.parseGeometry(i,n[r],e);t.set(parseInt(r),a)}}
// report warnings
return this.negativeMaterialIndices,t}
// Parse single node in FBXTree.Objects.Geometry
parseGeometry(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}}
// Parse single node mesh geometry in FBXTree.Objects.Geometry
parseMeshGeometry(e,t,n){const r=n.skeletons,i=[],a=e.parents.map((function(e){return F.Objects.Model[e.ID]}));
// don't create geometry if it is not associated with any models
if(0===a.length)return;const o=e.children.reduce((function(e,t){return void 0!==r[t.ID]&&(e=r[t.ID]),e}),null);e.children.forEach((function(e){void 0!==n.morphTargets[e.ID]&&i.push(n.morphTargets[e.ID])}));
// Assume one model and get the preRotation from that
// if there is more than one model associated with the geometry this may cause problems
const s=a[0],c={};"RotationOrder"in s&&(c.eulerOrder=ie(s.RotationOrder.value)),"InheritType"in s&&(c.inheritType=parseInt(s.InheritType.value)),"GeometricTranslation"in s&&(c.translation=s.GeometricTranslation.value),"GeometricRotation"in s&&(c.rotation=s.GeometricRotation.value),"GeometricScaling"in s&&(c.scale=s.GeometricScaling.value);const l=re(c);return this.genGeometry(t,o,i,l)}
// Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
genGeometry(e,t,n,i){const a=new r.g;e.attrName&&(a.name=e.attrName);const o=this.parseGeoNode(e,t),s=this.genBuffers(o),c=new r.u(s.vertex,3);if(c.applyMatrix4(i),a.setAttribute("position",c),s.colors.length>0&&a.setAttribute("color",new r.u(s.colors,3)),t&&(a.setAttribute("skinIndex",new r.Nb(s.weightsIndices,4)),a.setAttribute("skinWeight",new r.u(s.vertexWeights,4)),
// used later to bind the skeleton to the model
a.FBX_Deformer=t),s.normal.length>0){const e=(new r.U).getNormalMatrix(i),t=new r.u(s.normal,3);t.applyNormalMatrix(e),a.setAttribute("normal",t)}if(s.uvs.forEach((function(e,t){
// subsequent uv buffers are called 'uv1', 'uv2', ...
let n="uv"+(t+1).toString();
// the first uv buffer is just called 'uv'
0===t&&(n="uv"),a.setAttribute(n,new r.u(s.uvs[t],2))})),o.material&&"AllSame"!==o.material.mappingType){
// Convert the material indices of each vertex into rendering groups on the geometry.
let e=s.materialIndex[0],t=0;
// the loop above doesn't add the last group, do that here.
if(s.materialIndex.forEach((function(n,r){n!==e&&(a.addGroup(t,r-t,e),e=n,t=r)})),a.groups.length>0){const t=a.groups[a.groups.length-1],n=t.start+t.count;n!==s.materialIndex.length&&a.addGroup(n,s.materialIndex.length-n,e)}
// case where there are multiple materials but the whole geometry is only
// using one of them
0===a.groups.length&&a.addGroup(0,s.materialIndex.length,s.materialIndex[0])}return this.addMorphTargets(a,e,n,i),a}parseGeoNode(e,t){const n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];let t=0;for(;e.LayerElementUV[t];)e.LayerElementUV[t].UV&&n.uv.push(this.parseUVs(e.LayerElementUV[t])),t++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){
// loop over the bone's vertex indices and weights
e.indices.forEach((function(r,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n}genBuffers(e){const t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]};let n=0,r=0,i=!1,a=[],o=[],s=[],c=[],l=[],u=[];const h=this;return e.vertexIndices.forEach((function(f,d){let p,g=!1;
// Face index and vertex index arrays are combined in a single array
// A cube with quad faces looks like this:
// PolygonVertexIndex: *24 {
//  a: 0, 1, 3, -3, 2, 3, 5, -5, 4, 5, 7, -7, 6, 7, 1, -1, 1, 7, 5, -4, 6, 0, 2, -5
//  }
// Negative numbers mark the end of a face - first face here is 0, 1, 3, -3
// to find index of last vertex bit shift the index: ^ - 1
f<0&&(f=~f,// equivalent to ( x * -1 ) - 1
g=!0);let m=[],v=[];if(a.push(3*f,3*f+1,3*f+2),e.color){const t=ee(d,n,f,e.color);s.push(t[0],t[1],t[2])}if(e.skeleton){if(void 0!==e.weightTable[f]&&e.weightTable[f].forEach((function(e){v.push(e.weight),m.push(e.id)})),v.length>4){i||(i=!0);const e=[0,0,0,0],t=[0,0,0,0];v.forEach((function(n,r){let i=n,a=m[r];t.forEach((function(t,n,r){if(i>t){r[n]=i,i=t;const o=e[n];e[n]=a,a=o}}))})),m=e,v=t}
// if the weight array is shorter than 4 pad with 0s
for(;v.length<4;)v.push(0),m.push(0);for(let e=0;e<4;++e)l.push(v[e]),u.push(m[e])}if(e.normal){const t=ee(d,n,f,e.normal);o.push(t[0],t[1],t[2])}e.material&&"AllSame"!==e.material.mappingType&&(p=ee(d,n,f,e.material)[0],p<0&&(h.negativeMaterialIndices=!0,p=0)),e.uv&&e.uv.forEach((function(e,t){const r=ee(d,n,f,e);void 0===c[t]&&(c[t]=[]),c[t].push(r[0]),c[t].push(r[1])})),r++,g&&(h.genFace(t,e,a,p,o,s,c,l,u,r),n++,r=0,
// reset arrays for the next face
a=[],o=[],s=[],c=[],l=[],u=[])})),t}
// Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
genFace(e,t,n,r,i,a,o,s,c,l){for(let u=2;u<l;u++)e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(u-1)]]),e.vertex.push(t.vertexPositions[n[3*(u-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(u-1)+2]]),e.vertex.push(t.vertexPositions[n[3*u]]),e.vertex.push(t.vertexPositions[n[3*u+1]]),e.vertex.push(t.vertexPositions[n[3*u+2]]),t.skeleton&&(e.vertexWeights.push(s[0]),e.vertexWeights.push(s[1]),e.vertexWeights.push(s[2]),e.vertexWeights.push(s[3]),e.vertexWeights.push(s[4*(u-1)]),e.vertexWeights.push(s[4*(u-1)+1]),e.vertexWeights.push(s[4*(u-1)+2]),e.vertexWeights.push(s[4*(u-1)+3]),e.vertexWeights.push(s[4*u]),e.vertexWeights.push(s[4*u+1]),e.vertexWeights.push(s[4*u+2]),e.vertexWeights.push(s[4*u+3]),e.weightsIndices.push(c[0]),e.weightsIndices.push(c[1]),e.weightsIndices.push(c[2]),e.weightsIndices.push(c[3]),e.weightsIndices.push(c[4*(u-1)]),e.weightsIndices.push(c[4*(u-1)+1]),e.weightsIndices.push(c[4*(u-1)+2]),e.weightsIndices.push(c[4*(u-1)+3]),e.weightsIndices.push(c[4*u]),e.weightsIndices.push(c[4*u+1]),e.weightsIndices.push(c[4*u+2]),e.weightsIndices.push(c[4*u+3])),t.color&&(e.colors.push(a[0]),e.colors.push(a[1]),e.colors.push(a[2]),e.colors.push(a[3*(u-1)]),e.colors.push(a[3*(u-1)+1]),e.colors.push(a[3*(u-1)+2]),e.colors.push(a[3*u]),e.colors.push(a[3*u+1]),e.colors.push(a[3*u+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(i[0]),e.normal.push(i[1]),e.normal.push(i[2]),e.normal.push(i[3*(u-1)]),e.normal.push(i[3*(u-1)+1]),e.normal.push(i[3*(u-1)+2]),e.normal.push(i[3*u]),e.normal.push(i[3*u+1]),e.normal.push(i[3*u+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(o[n][0]),e.uvs[n].push(o[n][1]),e.uvs[n].push(o[n][2*(u-1)]),e.uvs[n].push(o[n][2*(u-1)+1]),e.uvs[n].push(o[n][2*u]),e.uvs[n].push(o[n][2*u+1])}))}addMorphTargets(e,t,n,r){if(0===n.length)return;e.morphTargetsRelative=!0,e.morphAttributes.position=[];
// parentGeo.morphAttributes.normal = []; // not implemented
const i=this;n.forEach((function(n){n.rawTargets.forEach((function(n){const a=F.Objects.Geometry[n.geoID];void 0!==a&&i.genMorphGeometry(e,t,a,r,n.name)}))}))}
// a morph geometry node is similar to a standard  node, and the node is also contained
// in FBXTree.Objects.Geometry, however it can only have attributes for position, normal
// and a special attribute Index defining which vertices of the original geometry are affected
// Normal and position attributes only have data for the vertices that are affected by the morph
genMorphGeometry(e,t,n,i,a){const o=void 0!==t.PolygonVertexIndex?t.PolygonVertexIndex.a:[],s=void 0!==n.Vertices?n.Vertices.a:[],c=void 0!==n.Indexes?n.Indexes.a:[],l=3*e.attributes.position.count,u=new Float32Array(l);for(let e=0;e<c.length;e++){const t=3*c[e];u[t]=s[3*e],u[t+1]=s[3*e+1],u[t+2]=s[3*e+2]}
// TODO: add morph normal support
const h={vertexIndices:o,vertexPositions:u},f=this.genBuffers(h),d=new r.u(f.vertex,3);d.name=a||n.attrName,d.applyMatrix4(i),e.morphAttributes.position.push(d)}
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
parseNormals(e){const t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Normals.a;let i=[];return"IndexToDirect"===n&&("NormalIndex"in e?i=e.NormalIndex.a:"NormalsIndex"in e&&(i=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:i,mappingType:t,referenceType:n}}
// Parse UVs from FBXTree.Objects.Geometry.LayerElementUV if it exists
parseUVs(e){const t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a;let i=[];return"IndexToDirect"===n&&(i=e.UVIndex.a),{dataSize:2,buffer:r,indices:i,mappingType:t,referenceType:n}}
// Parse Vertex Colors from FBXTree.Objects.Geometry.LayerElementColor if it exists
parseVertexColors(e){const t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a;let i=[];return"IndexToDirect"===n&&(i=e.ColorIndex.a),{dataSize:4,buffer:r,indices:i,mappingType:t,referenceType:n}}
// Parse mapping and material data in FBXTree.Objects.Geometry.LayerElementMaterial if it exists
parseMaterialIndices(e){const t=e.MappingInformationType,n=e.ReferenceInformationType;if("NoMappingInformation"===t)return{dataSize:1,buffer:[0],indices:[0],mappingType:"AllSame",referenceType:n};const r=e.Materials.a,i=[];
// Since materials are stored as indices, there's a bit of a mismatch between FBX and what
// we expect.So we create an intermediate buffer that points to the index in the buffer,
// for conforming with the other functions we've written for other data.
for(let e=0;e<r.length;++e)i.push(e);return{dataSize:1,buffer:r,indices:i,mappingType:t,referenceType:n}}
// Generate a NurbGeometry from a node in FBXTree.Objects.Geometry
parseNurbsGeometry(e){const t=parseInt(e.Order);if(isNaN(t))return new r.g;const n=t-1,i=e.KnotVector.a,a=[],o=e.Points.a;for(let e=0,t=o.length;e<t;e+=4)a.push((new r.Qb).fromArray(o,e));let s,c;if("Closed"===e.Form)a.push(a[0]);else if("Periodic"===e.Form){s=n,c=i.length-1-s;for(let e=0;e<n;++e)a.push(a[e])}const l=new N(n,i,a,s,c).getPoints(12*a.length);return(new r.g).setFromPoints(l)}}
// parse animation data from FBXTree
class W{
// take raw animation clips and turn them into three.js animation clips
parse(){const e=[],t=this.parseClips();if(void 0!==t)for(const n in t){const r=t[n],i=this.addClip(r);e.push(i)}return e}parseClips(){
// since the actual transformation data is stored in FBXTree.Objects.AnimationCurve,
// if this is undefined we can safely assume there are no animations
if(void 0===F.Objects.AnimationCurve)return;const e=this.parseAnimationCurveNodes();this.parseAnimationCurves(e);const t=this.parseAnimationLayers(e);return this.parseAnimStacks(t)}
// parse nodes in FBXTree.Objects.AnimationCurveNode
// each AnimationCurveNode holds data for an animation transform for a model (e.g. left arm rotation )
// and is referenced by an AnimationLayer
parseAnimationCurveNodes(){const e=F.Objects.AnimationCurveNode,t=new Map;for(const n in e){const r=e[n];if(null!==r.attrName.match(/S|R|T|DeformPercent/)){const e={id:r.id,attr:r.attrName,curves:{}};t.set(e.id,e)}}return t}
// parse nodes in FBXTree.Objects.AnimationCurve and connect them up to
// previously parsed AnimationCurveNodes. Each AnimationCurve holds data for a single animated
// axis ( e.g. times and values of x rotation)
parseAnimationCurves(e){const t=F.Objects.AnimationCurve;
// TODO: Many values are identical up to roundoff error, but won't be optimised
// e.g. position times: [0, 0.4, 0. 8]
// position values: [7.23538335023477e-7, 93.67518615722656, -0.9982695579528809, 7.23538335023477e-7, 93.67518615722656, -0.9982695579528809, 7.235384487103147e-7, 93.67520904541016, -0.9982695579528809]
// clearly, this should be optimised to
// times: [0], positions [7.23538335023477e-7, 93.67518615722656, -0.9982695579528809]
// this shows up in nearly every FBX file, and generally time array is length > 100
for(const n in t){const r={id:t[n].id,times:t[n].KeyTime.a.map(X),values:t[n].KeyValueFloat.a},i=z.get(r.id);if(void 0!==i){const t=i.parents[0].ID,n=i.parents[0].relationship;n.match(/X/)?e.get(t).curves.x=r:n.match(/Y/)?e.get(t).curves.y=r:n.match(/Z/)?e.get(t).curves.z=r:n.match(/d|DeformPercent/)&&e.has(t)&&(e.get(t).curves.morph=r)}}}
// parse nodes in FBXTree.Objects.AnimationLayer. Each layers holds references
// to various AnimationCurveNodes and is referenced by an AnimationStack node
// note: theoretically a stack can have multiple layers, however in practice there always seems to be one per stack
parseAnimationLayers(e){const t=F.Objects.AnimationLayer,n=new Map;for(const i in t){const t=[],a=z.get(parseInt(i));if(void 0!==a){a.children.forEach((function(n,i){if(e.has(n.ID)){const a=e.get(n.ID);
// check that the curves are defined for at least one axis, otherwise ignore the curveNode
if(void 0!==a.curves.x||void 0!==a.curves.y||void 0!==a.curves.z){if(void 0===t[i]){const e=z.get(n.ID).parents.filter((function(e){return void 0!==e.relationship}))[0].ID;if(void 0!==e){const n=F.Objects.Model[e.toString()];if(void 0===n)return;const a={modelName:n.attrName?r.ob.sanitizeNodeName(n.attrName):"",ID:n.id,initialPosition:[0,0,0],initialRotation:[0,0,0],initialScale:[1,1,1]};H.traverse((function(e){e.ID===n.id&&(a.transform=e.matrix,e.userData.transformData&&(a.eulerOrder=e.userData.transformData.eulerOrder))})),a.transform||(a.transform=new r.V),
// if the animated model is pre rotated, we'll have to apply the pre rotations to every
// animation value as well
"PreRotation"in n&&(a.preRotation=n.PreRotation.value),"PostRotation"in n&&(a.postRotation=n.PostRotation.value),t[i]=a}}t[i]&&(t[i][a.attr]=a)}else if(void 0!==a.curves.morph){if(void 0===t[i]){const e=z.get(n.ID).parents.filter((function(e){return void 0!==e.relationship}))[0].ID,a=z.get(e).parents[0].ID,o=z.get(a).parents[0].ID,s=z.get(o).parents[0].ID,c=F.Objects.Model[s],l={modelName:c.attrName?r.ob.sanitizeNodeName(c.attrName):"",morphName:F.Objects.Deformer[e].attrName};t[i]=l}t[i][a.attr]=a}}})),n.set(parseInt(i),t)}}return n}
// parse nodes in FBXTree.Objects.AnimationStack. These are the top level node in the animation
// hierarchy. Each Stack node will be used to create a AnimationClip
parseAnimStacks(e){const t=F.Objects.AnimationStack,n={};
// connect the stacks (clips) up to the layers
for(const r in t){const i=z.get(parseInt(r)).children;i.length;const a=e.get(i[0].ID);n[r]={name:t[r].attrName,layer:a}}return n}addClip(e){let t=[];const n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new r.b(e.name,-1,t)}generateTracks(e){const t=[];let n=new r.Pb,i=new r.pb,a=new r.Pb;if(e.transform&&e.transform.decompose(n,i,a),n=n.toArray(),i=(new r.r).setFromQuaternion(i,e.eulerOrder).toArray(),a=a.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){const r=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==r&&t.push(r)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){const n=this.generateRotationTrack(e.modelName,e.R.curves,i,e.preRotation,e.postRotation,e.eulerOrder);void 0!==n&&t.push(n)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){const n=this.generateVectorTrack(e.modelName,e.S.curves,a,"scale");void 0!==n&&t.push(n)}if(void 0!==e.DeformPercent){const n=this.generateMorphTrack(e);void 0!==n&&t.push(n)}return t}generateVectorTrack(e,t,n,i){const a=this.getTimesForAllAxes(t),o=this.getKeyframeTrackValues(a,t,n);return new r.Rb(e+"."+i,a,o)}generateRotationTrack(e,t,n,i,a,o){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(r.T.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(r.T.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(r.T.degToRad));const s=this.getTimesForAllAxes(t),c=this.getKeyframeTrackValues(s,t,n);void 0!==i&&((i=i.map(r.T.degToRad)).push(o),i=(new r.r).fromArray(i),i=(new r.pb).setFromEuler(i)),void 0!==a&&((a=a.map(r.T.degToRad)).push(o),a=(new r.r).fromArray(a),a=(new r.pb).setFromEuler(a).invert());const l=new r.pb,u=new r.r,h=[];for(let e=0;e<c.length;e+=3)u.set(c[e],c[e+1],c[e+2],o),l.setFromEuler(u),void 0!==i&&l.premultiply(i),void 0!==a&&l.multiply(a),l.toArray(h,e/3*4);return new r.qb(e+".quaternion",s,h)}generateMorphTrack(e){const t=e.DeformPercent.curves.morph,n=t.values.map((function(e){return e/100})),i=H.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new r.gb(e.modelName+".morphTargetInfluences["+i+"]",t.times,n)}
// For all animated objects, times are defined separately for each axis
// Here we'll combine the times into one sorted array without duplicates
getTimesForAllAxes(e){let t=[];
// first join together the times for each axis, if defined
// and remove duplicates
if(void 0!==e.x&&(t=t.concat(e.x.times)),void 0!==e.y&&(t=t.concat(e.y.times)),void 0!==e.z&&(t=t.concat(e.z.times)),
// then sort them
t=t.sort((function(e,t){return e-t})),t.length>1){let e=1,n=t[0];for(let r=1;r<t.length;r++){const i=t[r];i!==n&&(t[e]=i,n=i,e++)}t=t.slice(0,e)}return t}getKeyframeTrackValues(e,t,n){const r=n,i=[];let a=-1,o=-1,s=-1;return e.forEach((function(e){
// if there is an x value defined for this frame, use that
if(t.x&&(a=t.x.times.indexOf(e)),t.y&&(o=t.y.times.indexOf(e)),t.z&&(s=t.z.times.indexOf(e)),-1!==a){const e=t.x.values[a];i.push(e),r[0]=e}else
// otherwise use the x value from the previous frame
i.push(r[0]);if(-1!==o){const e=t.y.values[o];i.push(e),r[1]=e}else i.push(r[1]);if(-1!==s){const e=t.z.values[s];i.push(e),r[2]=e}else i.push(r[2])})),i}
// Rotations are defined as Euler angles which can have values  of any size
// These will be converted to quaternions which don't support values greater than
// PI, so we'll interpolate large rotations
interpolateRotations(e){for(let t=1;t<e.values.length;t++){const n=e.values[t-1],r=e.values[t]-n,i=Math.abs(r);if(i>=180){const a=i/180,o=r/a;let s=n+o;const c=e.times[t-1],l=(e.times[t]-c)/a;let u=c+l;const h=[],f=[];for(;u<e.times[t];)h.push(u),u+=l,f.push(s),s+=o;e.times=se(e.times,t,h),e.values=se(e.values,t,f)}}}}
// parse an FBX file in ASCII format
class q{getPrevNode(){return this.nodeStack[this.currentIndent-2]}getCurrentNode(){return this.nodeStack[this.currentIndent-1]}getCurrentProp(){return this.currentProp}pushStack(e){this.nodeStack.push(e),this.currentIndent+=1}popStack(){this.nodeStack.pop(),this.currentIndent-=1}setCurrentProp(e,t){this.currentProp=e,this.currentPropName=t}parse(e){this.currentIndent=0,this.allNodes=new $,this.nodeStack=[],this.currentProp=[],this.currentPropName="";const t=this,n=e.split(/[\r\n]+/);return n.forEach((function(e,r){const i=e.match(/^[\s\t]*;/),a=e.match(/^[\s\t]*$/);if(i||a)return;const o=e.match("^\\t{"+t.currentIndent+"}(\\w+):(.*){",""),s=e.match("^\\t{"+t.currentIndent+"}(\\w+):[\\s\\t\\r\\n](.*)"),c=e.match("^\\t{"+(t.currentIndent-1)+"}}");o?t.parseNodeBegin(e,o):s?t.parseNodeProperty(e,s,n[++r]):c?t.popStack():e.match(/^[^\s\t}]/)&&
// large arrays are split over multiple lines terminated with a ',' character
// if this is encountered the line needs to be joined to the previous line
t.parseNodePropertyContinued(e)})),this.allNodes}parseNodeBegin(e,t){const n=t[1].trim().replace(/^"/,"").replace(/"$/,""),r=t[2].split(",").map((function(e){return e.trim().replace(/^"/,"").replace(/"$/,"")})),i={name:n},a=this.parseNodeAttr(r),o=this.getCurrentNode();
// a top node
0===this.currentIndent?this.allNodes.add(n,i):// a subnode
// if the subnode already exists, append it
n in o?(
// special case Pose needs PoseNodes as an array
"PoseNode"===n?o.PoseNode.push(i):void 0!==o[n].id&&(o[n]={},o[n][o[n].id]=o[n]),""!==a.id&&(o[n][a.id]=i)):"number"==typeof a.id?(o[n]={},o[n][a.id]=i):"Properties70"!==n&&(o[n]="PoseNode"===n?[i]:i),"number"==typeof a.id&&(i.id=a.id),""!==a.name&&(i.attrName=a.name),""!==a.type&&(i.attrType=a.type),this.pushStack(i)}parseNodeAttr(e){let t=e[0];""!==e[0]&&(t=parseInt(e[0]),isNaN(t)&&(t=e[0]));let n="",r="";return e.length>1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}}parseNodeProperty(e,t,n){let r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();
// for special case: base64 image data follows "Content: ," line
//	Content: ,
//	 "/9j/4RDaRXhpZgAATU0A..."
"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());const a=this.getCurrentNode();if("Properties70"!==a.name){
// Connections
if("C"===r){const e=i.split(",").slice(1),t=parseInt(e[0]),n=parseInt(e[1]);let o=i.split(",").slice(3);o=o.map((function(e){return e.trim().replace(/^"/,"")})),r="connections",i=[t,n],function(e,t){for(let n=0,r=e.length,i=t.length;n<i;n++,r++)e[r]=t[n]}(i,o),void 0===a[r]&&(a[r]=[])}
// Node
"Node"===r&&(a.id=i),
// connections
r in a&&Array.isArray(a[r])?a[r].push(i):"a"!==r?a[r]=i:a.a=i,this.setCurrentProp(a,r),
// convert string to array, unless it ends in ',' in which case more will be added to it
"a"===r&&","!==i.slice(-1)&&(a.a=ae(i))}else this.parseNodeSpecialProperty(e,r,i)}parseNodePropertyContinued(e){const t=this.getCurrentNode();t.a+=e,
// if the line doesn't end in ',' we have reached the end of the property value
// so convert the string to an array
","!==e.slice(-1)&&(t.a=ae(t.a))}
// parse "Property70"
parseNodeSpecialProperty(e,t,n){
// split this
// P: "Lcl Scaling", "Lcl Scaling", "", "A",1,1,1
// into array like below
// ["Lcl Scaling", "Lcl Scaling", "", "A", "1,1,1" ]
const r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],a=r[1],o=r[2],s=r[3];let c=r[4];
// cast values where needed, otherwise leave as strings
switch(a){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":c=parseFloat(c);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":c=ae(c)}
// CAUTION: these props must append to parent's parent
this.getPrevNode()[i]={type:a,type2:o,flag:s,value:c},this.setCurrentProp(this.getPrevNode(),i)}}
// Parse an FBX file in Binary format
class Y{parse(e){const t=new K(e);t.skip(23);// skip magic 23 bytes
const n=t.getUint32();if(n<6400)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+n);const r=new $;for(;!this.endOfContent(t);){const e=this.parseNode(t,n);null!==e&&r.add(e.name,e)}return r}
// Check if reader has reached the end of content.
endOfContent(e){
// footer size: 160bytes + 16-byte alignment padding
// - 16bytes: magic
// - padding til 16-byte alignment (at least 1byte?)
//	(seems like some exporters embed fixed 15 or 16bytes?)
// - 4bytes: magic
// - 4bytes: version
// - 120bytes: zero
// - 16bytes: magic
return e.size()%16==0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()}
// recursively parse nodes until the end of the file is reached
parseNode(e,t){const n={},r=t>=7500?e.getUint64():e.getUint32(),i=t>=7500?e.getUint64():e.getUint32();
// The first three data sizes depends on version.
t>=7500?e.getUint64():e.getUint32();// the returned propertyListLen is not used
const a=e.getUint8(),o=e.getString(a);
// Regards this node as NULL-record if endOffset is zero
if(0===r)return null;const s=[];for(let t=0;t<i;t++)s.push(this.parseProperty(e));
// Regards the first three elements in propertyList as id, attrName, and attrType
const c=s.length>0?s[0]:"",l=s.length>1?s[1]:"",u=s.length>2?s[2]:"";for(
// check if this node represents just a single property
// like (name, 0) set or (name2, [0, 1, 2]) set of {name: 0, name2: [0, 1, 2]}
n.singleProperty=1===i&&e.getOffset()===r;r>e.getOffset();){const r=this.parseNode(e,t);null!==r&&this.parseSubNode(o,n,r)}return n.propertyList=s,// raw property list used by parent
"number"==typeof c&&(n.id=c),""!==l&&(n.attrName=l),""!==u&&(n.attrType=u),""!==o&&(n.name=o),n}parseSubNode(e,t,n){
// special case: child node is single property
if(!0===n.singleProperty){const e=n.propertyList[0];Array.isArray(e)?(t[n.name]=n,n.a=e):t[n.name]=e}else if("Connections"===e&&"C"===n.name){const e=[];n.propertyList.forEach((function(t,n){
// first Connection is FBX type (OO, OP, etc.). We'll discard these
0!==n&&e.push(t)})),void 0===t.connections&&(t.connections=[]),t.connections.push(e)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){let e=n.propertyList[0],r=n.propertyList[1];const i=n.propertyList[2],a=n.propertyList[3];let o;0===e.indexOf("Lcl ")&&(e=e.replace("Lcl ","Lcl_")),0===r.indexOf("Lcl ")&&(r=r.replace("Lcl ","Lcl_")),o="Color"===r||"ColorRGB"===r||"Vector"===r||"Vector3D"===r||0===r.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],
// this will be copied to parent, see above
t[e]={type:r,type2:i,flag:a,value:o}}else void 0===t[n.name]?"number"==typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)}parseProperty(e){const t=e.getString(1);let n;switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":return n=e.getUint32(),e.getArrayBuffer(n);case"S":return n=e.getUint32(),e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":const r=e.getUint32(),i=e.getUint32(),a=e.getUint32();if(0===i)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}const o=D(new Uint8Array(e.getArrayBuffer(a))),s=new K(o.buffer);switch(t){case"b":case"c":return s.getBooleanArray(r);case"d":return s.getFloat64Array(r);case"f":return s.getFloat32Array(r);case"i":return s.getInt32Array(r);case"l":return s.getInt64Array(r)}break;// cannot happen but is required by the DeepScan
default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}}class K{constructor(e,t){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===t||t,this._textDecoder=new TextDecoder}getOffset(){return this.offset}size(){return this.dv.buffer.byteLength}skip(e){this.offset+=e}
// seems like true/false representation depends on exporter.
// true: 1 or 'Y'(=0x59), false: 0 or 'T'(=0x54)
// then sees LSB.
getBoolean(){return!(1&~this.getUint8())}getBooleanArray(e){const t=[];for(let n=0;n<e;n++)t.push(this.getBoolean());return t}getUint8(){const e=this.dv.getUint8(this.offset);return this.offset+=1,e}getInt16(){const e=this.dv.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}getInt32(){const e=this.dv.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}getInt32Array(e){const t=[];for(let n=0;n<e;n++)t.push(this.getInt32());return t}getUint32(){const e=this.dv.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}
// JavaScript doesn't support 64-bit integer so calculate this here
// 1 << 32 will return 1 so using multiply operation instead here.
// There's a possibility that this method returns wrong value if the value
// is out of the range between Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER.
// TODO: safely handle 64-bit integer
getInt64(){let e,t;
// calculate negative value
return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),2147483648&t?(t=4294967295&~t,e=4294967295&~e,4294967295===e&&(t=t+1&4294967295),e=e+1&4294967295,-(4294967296*t+e)):4294967296*t+e}getInt64Array(e){const t=[];for(let n=0;n<e;n++)t.push(this.getInt64());return t}
// Note: see getInt64() comment
getUint64(){let e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),4294967296*t+e}getFloat32(){const e=this.dv.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}getFloat32Array(e){const t=[];for(let n=0;n<e;n++)t.push(this.getFloat32());return t}getFloat64(){const e=this.dv.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}getFloat64Array(e){const t=[];for(let n=0;n<e;n++)t.push(this.getFloat64());return t}getArrayBuffer(e){const t=this.dv.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}getString(e){const t=this.offset;let n=new Uint8Array(this.dv.buffer,t,e);this.skip(e);const r=n.indexOf(0);return r>=0&&(n=new Uint8Array(this.dv.buffer,t,r)),this._textDecoder.decode(n)}}
// FBXTree holds a representation of the FBX data, returned by the TextParser ( FBX ASCII format)
// and BinaryParser( FBX Binary format)
class ${add(e,t){this[e]=t}}function J(e){const t=e.match(/FBXVersion: (\d+)/);if(t){return parseInt(t[1])}throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.")}
// Converts FBX ticks into real time seconds.
function X(e){return e/46186158e3}const Z=[];
// extracts the data from the correct position in the FBX array based on indexing type
function ee(e,t,n,r){let i;switch(r.mappingType){case"ByPolygonVertex":i=e;break;case"ByPolygon":i=t;break;case"ByVertice":i=n;break;case"AllSame":i=r.indices[0]}"IndexToDirect"===r.referenceType&&(i=r.indices[i]);const a=i*r.dataSize,o=a+r.dataSize;return function(e,t,n,r){for(let i=n,a=0;i<r;i++,a++)e[a]=t[i];return e}
// inject array a2 into array a1 at index
(Z,r.buffer,a,o)}const te=new r.r,ne=new r.Pb;
// generate transformation from FBX transform data
// ref: https://help.autodesk.com/view/FBX/2017/ENU/?guid=__files_GUID_10CDD63C_79C1_4F2D_BB28_AD2BE65A02ED_htm
// ref: http://docs.autodesk.com/FBX/2014/ENU/FBX-SDK-Documentation/index.html?url=cpp_ref/_transformations_2main_8cxx-example.html,topicNumber=cpp_ref__transformations_2main_8cxx_example_htmlfc10a1e1-b18d-4e72-9dc0-70d0f1959f5e
function re(e){const t=new r.V,n=new r.V,i=new r.V,a=new r.V,o=new r.V,s=new r.V,c=new r.V,l=new r.V,u=new r.V,h=new r.V,f=new r.V,d=new r.V,p=e.inheritType?e.inheritType:0;if(e.translation&&t.setPosition(ne.fromArray(e.translation)),e.preRotation){const t=e.preRotation.map(r.T.degToRad);t.push(e.eulerOrder||r.r.DEFAULT_ORDER),n.makeRotationFromEuler(te.fromArray(t))}if(e.rotation){const t=e.rotation.map(r.T.degToRad);t.push(e.eulerOrder||r.r.DEFAULT_ORDER),i.makeRotationFromEuler(te.fromArray(t))}if(e.postRotation){const t=e.postRotation.map(r.T.degToRad);t.push(e.eulerOrder||r.r.DEFAULT_ORDER),a.makeRotationFromEuler(te.fromArray(t)),a.invert()}e.scale&&o.scale(ne.fromArray(e.scale)),
// Pivots and offsets
e.scalingOffset&&c.setPosition(ne.fromArray(e.scalingOffset)),e.scalingPivot&&s.setPosition(ne.fromArray(e.scalingPivot)),e.rotationOffset&&l.setPosition(ne.fromArray(e.rotationOffset)),e.rotationPivot&&u.setPosition(ne.fromArray(e.rotationPivot)),
// parent transform
e.parentMatrixWorld&&(f.copy(e.parentMatrix),h.copy(e.parentMatrixWorld));const g=n.clone().multiply(i).multiply(a),m=new r.V;
// Global Rotation
m.extractRotation(h);
// Global Shear*Scaling
const v=new r.V;v.copyPosition(h);const y=v.clone().invert().multiply(h),A=m.clone().invert().multiply(y),b=o,w=new r.V;if(0===p)w.copy(m).multiply(g).multiply(A).multiply(b);else if(1===p)w.copy(m).multiply(A).multiply(g).multiply(b);else{const e=(new r.V).scale((new r.Pb).setFromMatrixScale(f)).clone().invert(),t=A.clone().multiply(e);w.copy(m).multiply(g).multiply(t).multiply(b)}const x=u.clone().invert(),C=s.clone().invert();
// Calculate the local transform matrix
let _=t.clone().multiply(l).multiply(u).multiply(n).multiply(i).multiply(a).multiply(x).multiply(c).multiply(s).multiply(o).multiply(C);const I=(new r.V).copyPosition(_),E=h.clone().multiply(I);return d.copyPosition(E),_=d.clone().multiply(w),
// from global to local
_.premultiply(h.invert()),_}
// Returns the three.js intrinsic Euler order corresponding to FBX extrinsic Euler order
// ref: http://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_class_fbx_euler_html
function ie(e){const t=["ZYX",// -> XYZ extrinsic
"YZX",// -> XZY extrinsic
"XZY",// -> YZX extrinsic
"ZXY",// -> YXZ extrinsic
"YXZ",// -> ZXY extrinsic
"XYZ"];return 6===(e=e||0)?t[0]:t[e]}
// Parses comma separated list of numbers and returns them an array.
// Used internally by the TextParser
function ae(e){return e.split(",").map((function(e){return parseFloat(e)}))}function oe(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),(new TextDecoder).decode(new Uint8Array(e,t,n))}function se(e,t,n){return e.slice(0,t).concat(n).concat(e.slice(t))}
/***/},
/***/8728:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */function r(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r)return 0;if(r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;1!==o&&0!==o||(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}
/***/n.d(t,"a",(function(){return r}))},
/***/"872a":
/***/function(e,t,n){var r=n("3b4a");
/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},
/***/"873c":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.title=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];t.title&&(n[0]=(0,c.deepMerge)((0,o.deepClone)(s.titleConfig,!0),t.title));(0,a.doUpdate)({chart:e,series:n,key:"title",getGraphConfig:l})};var i=r(n("278c")),a=n("18ad"),o=n("5557"),s=n("9d85"),c=n("becb");function l(e,t){var n=s.titleConfig.animationCurve,r=s.titleConfig.animationFrame,a=s.titleConfig.rLevel,o=function(e,t){var n=e.offset,r=e.text,a=t.chart.gridArea,o=a.x,s=a.y,c=a.w,l=(0,i.default)(n,2),u=l[0],h=l[1];return{content:r,position:[o+c/2+u,s+h]}}(e,t),c=function(e){var t=e.style;return t}
/***/(e);return[{name:"text",index:a,visible:e.show,animationCurve:n,animationFrame:r,shape:o,style:c}]}},
/***/8771:
/***/function(e,t,n){var r=n("cc15")("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},
// eslint-disable-next-line no-throw-literal
Array.from(a,(function(){throw 2}))}catch(e){/* empty */}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){/* empty */}return n}},
/***/"87b1":
/***/function(e,t,n){"use strict";
/* unused harmony export PolygonShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=n("4fac"),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.a(e,t,!0)},t}(i.b);
/* harmony import */s.prototype.type="polygon",
/* harmony default export */t.a=s},
/***/8808:
/***/function(e,t,n){var r=n("f083");r(r.G+r.W+r.F*!n("f308").ABV,{DataView:n("b799").DataView})},
/***/8827:
/***/function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},
/***/8848:
/***/function(e,t,n){
// 20.2.2.30 Math.sinh(x)
var r=n("f083"),i=n("4592"),a=Math.exp;
// V8 near Chromium 38 has a problem with very small numbers
r(r.S+r.F*n("f937")((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},
/***/8870:
/***/function(e,t,n){"use strict";
// https://github.com/tc39/proposal-promise-finally
var r=n("f083"),i=n("0ae2"),a=n("93e0"),o=n("1147a"),s=n("44e8");r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},
/***/"887c":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.titleConfig=void 0;t.titleConfig={
/**
   * @description Whether to display title
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Title text
   * @type {String}
   * @default text = ''
   */
text:"",
/**
   * @description Title offset
   * @type {Array}
   * @default offset = [0, -20]
   */
offset:[0,-20],
/**
   * @description Title default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},
/**
   * @description Title render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 20
   */
rLevel:20,
/**
   * @description Title animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Title animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50}},
/***/"88a7":
/***/function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),a=n("577e"),o=n("d6d6"),s=URLSearchParams,c=s.prototype,l=i(c.append),u=i(c.delete),h=i(c.forEach),f=i([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),
// `undefined` case is a Chromium 117 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
d.delete("b",void 0),d+""!="a=2"&&r(c,"delete",(function(e/* , value */){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=[];h(this,(function(e,t){// also validates `this`
f(r,{key:t,value:e})})),o(t,1);for(var i,s=a(e),c=a(n),d=0,p=0,g=!1,m=r.length;d<m;)i=r[d++],g||i.key===s?(g=!0,u(this,i.key)):p++;for(;p<m;)(i=r[p++]).key===s&&i.value===c||l(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})
/***/},
/***/"88b3":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s})),
/* harmony export (binding) */n.d(t,"a",(function(){return c}));
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var r="\0__throttleOriginMethod",i="\0__throttleRate",a="\0__throttleType";
/**
 * @public
 * @param {(Function)} fn
 * @param {number} [delay=0] Unit: ms.
 * @param {boolean} [debounce=false]
 *        true: If call interval less than `delay`, only the last call works.
 *        false: If call interval less than `delay, call works on fixed rate.
 * @return {(Function)} throttled fn.
 */
function o(e,t,n){var r,i,a,o,s,c=0,l=0,u=null;function h(){l=(new Date).getTime(),u=null,e.apply(a,o||[])}t=t||0;var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=(new Date).getTime(),a=this,o=e;var d=s||t,p=s||n;s=null,i=r-(p?c:l)-d,clearTimeout(u),
// Here we should make sure that: the `exec` SHOULD NOT be called later
// than a new call of `cb`, that is, preserving the command order. Consider
// calculating "scale rate" when roaming as an example. When a call of `cb`
// happens, either the `exec` is called dierectly, or the call is delayed.
// But the delayed call should never be later than next call of `cb`. Under
// this assurance, we can simply update view state each time `dispatchAction`
// triggered by user roaming, but not need to add extra code to avoid the
// state being "rolled-back".
p?u=setTimeout(h,d):i>=0?h():u=setTimeout(h,-i),c=r};
/**
   * Clear throttle.
   * @public
   */return f.clear=function(){u&&(clearTimeout(u),u=null)},
/**
   * Enable debounce once.
   */
f.debounceNextCall=function(e){s=e},f}
/**
 * Create throttle method or update throttle rate.
 *
 * @example
 * ComponentView.prototype.render = function () {
 *     ...
 *     throttle.createOrUpdate(
 *         this,
 *         '_dispatchAction',
 *         this.model.get('throttle'),
 *         'fixRate'
 *     );
 * };
 * ComponentView.prototype.remove = function () {
 *     throttle.clear(this, '_dispatchAction');
 * };
 * ComponentView.prototype.dispose = function () {
 *     throttle.clear(this, '_dispatchAction');
 * };
 *
 */function s(e,t,n,s){var c=e[t];if(c){var l=c[r]||c,u=c[a];if(c[i]!==n||u!==s){if(null==n||!s)return e[t]=l;(c=e[t]=o(l,n,"debounce"===s))[r]=l,c[a]=s,c[i]=n}return c}}
/**
 * Clear throttle. Example see throttle.createOrUpdate.
 */function c(e,t){var n=e[t];n&&n[r]&&(
// Clear throttle
n.clear&&n.clear(),e[t]=n[r])}
/***/},
/***/8904:
/***/function(e,t,n){"use strict";n("02f7");var r=n("d77f"),i=n("66ac"),a=n("c94e"),o="toString",s=/./[o],c=function(e){n("77ea")(RegExp.prototype,o,e,!0)};
// 21.2.5.14 RegExp.prototype.toString()
n("f937")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?c((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)})):s.name!=o&&c((function(){return s.call(this)}))
/***/},
/***/8918:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (binding) */n.d(t,"a",(function(){return s})),
/* harmony export (binding) */n.d(t,"b",(function(){return c})),
/* harmony export (binding) */n.d(t,"d",(function(){return l}));
/* harmony import */var r=n("6d8b"),i=n("625e"),a=Math.round(10*Math.random());
/* harmony import */
/**
 * @public
 * @param {string} type
 * @return {string}
 */
function o(e){
// Considering the case of crossing js context,
// use Math.random to make id as unique as possible.
return[e||"",a++].join("_")}
/**
 * Implements `SubTypeDefaulterManager` for `target`.
 */function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Object(i.f)(e);t[r.main]=n},e.determineSubType=function(n,r){var a=r.type;if(!a){var o=Object(i.f)(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](r))}return a}}
/**
 * Implements `TopologicalTravelable<any>` for `entity`.
 *
 * Topological travel on Activity Network (Activity On Vertices).
 * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].
 * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.
 * If there is circular dependencey, Error will be thrown.
 */function c(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}
/**
   * @param targetNameList Target Component type list.
   *                       Can be ['aa', 'bb', 'aa.xx']
   * @param fullNameList By which we can build dependency graph.
   * @param callback Params: componentType, dependencies.
   * @param context Scope of callback.
   */
e.topologicalTravel=function(e,i,a,o){if(e.length){var s=function(e){var i={},a=[];return r.each(e,(function(o){var s=n(i,o),c=function(e,t){var n=[];return r.each(e,(function(e){r.indexOf(t,e)>=0&&n.push(e)})),n}(s.originalDeps=t(o),e);s.entryCount=c.length,0===s.entryCount&&a.push(o),r.each(c,(function(e){r.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=n(i,e);r.indexOf(t.successor,e)<0&&t.successor.push(o)}))})),{graph:i,noEntryList:a}}(i),c=s.graph,l=s.noEntryList,u={};for(r.each(e,(function(e){u[e]=!0}));l.length;){var h=l.pop(),f=c[h],d=!!u[h];d&&(a.call(o,h,f.originalDeps.slice()),delete u[h]),r.each(f.successor,d?g:p)}r.each(u,(function(){throw new Error("")}))}function p(e){c[e].entryCount--,0===c[e].entryCount&&l.push(e)}
// Consider this case: legend depends on series, and we call
// chart.setOption({series: [...]}), where only series is in option.
// If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will
// not be called, but only sereis.mergeOption is called. Thus legend
// have no chance to update its local record about series (like which
// name of series is available in legend).
function g(e){u[e]=!0,p(e)}}}function l(e,t){
// See also `model/Component.ts#getDefaultOption`
return r.merge(r.merge({},e,!0),t,!0)}
/***/},
/***/8925:
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("1626"),a=n("c6cd"),o=r(Function.toString);
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},
/***/"89b1":
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
n("7bb0")("WeakMap");
/***/},
/***/"89b6":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"e",(function(){return S})),
/* harmony export (binding) */n.d(t,"c",(function(){return T})),
/* harmony export (binding) */n.d(t,"b",(function(){return O})),
/* harmony export (binding) */n.d(t,"d",(function(){return L})),
/* harmony export (binding) */n.d(t,"a",(function(){return Q}));
/* harmony import */var r=n("dce8"),i=n("cbe5"),a=n("d498"),o=n("20c8"),s=n("857d"),c=n("4a3f"),l=n("6d8b"),u=n("1687"),h=n("401b"),f=n("7d6c"),d=2*Math.PI,p=o.a.CMD,g=["top","right","bottom","left"];
/* harmony import */function m(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function v(e,t,n,r,i,a,o,c,l){o-=e,c-=t;var u=Math.sqrt(o*o+c*c),h=(o/=u)*n+e,f=(c/=u)*n+t;if(Math.abs(r-i)%d<1e-4)
// Is a circle
return l[0]=h,l[1]=f,u-n;if(a){var p=r;r=Object(s.a)(i),i=Object(s.a)(p)}else r=Object(s.a)(r),i=Object(s.a)(i);r>i&&(i+=d);var g=Math.atan2(c,o);if(g<0&&(g+=d),g>=r&&g<=i||g+d>=r&&g+d<=i)
// Project point is on the arc.
return l[0]=h,l[1]=f,u-n;var m=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=n*Math.cos(i)+e,A=n*Math.sin(i)+t,b=(m-o)*(m-o)+(v-c)*(v-c),w=(y-o)*(y-o)+(A-c)*(A-c);return b<w?(l[0]=m,l[1]=v,Math.sqrt(b)):(l[0]=y,l[1]=A,Math.sqrt(w))}function y(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,h=r-t,f=Math.sqrt(u*u+h*h),d=(c*(u/=f)+l*(h/=f))/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var p=o[0]=e+d*u,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function A(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var b=[];function w(e,t,n){var r=A(t.x,t.y,t.width,t.height,e.x,e.y,b);return n.set(b[0],b[1]),r}
/**
 * Calculate min distance corresponding point.
 * This method won't evaluate if point is in the path.
 */function x(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,u=1/0,h=t.data,f=e.x,d=e.y,g=0;g<h.length;){var m=h[g++];1===g&&(s=a=h[g],l=o=h[g+1]);var w=u;switch(m){case p.M:a=
// moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
// 在 closePath 的时候使用
s=h[g++],o=l=h[g++];break;case p.L:w=y(a,o,h[g],h[g+1],f,d,b,!0),a=h[g++],o=h[g++];break;case p.C:w=Object(c.e)(a,o,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],f,d,b),a=h[g++],o=h[g++];break;case p.Q:w=Object(c.l)(a,o,h[g++],h[g++],h[g],h[g+1],f,d,b),a=h[g++],o=h[g++];break;case p.A:
// TODO Arc 判断的开销比较大
var x=h[g++],C=h[g++],_=h[g++],I=h[g++],E=h[g++],k=h[g++];
// TODO Arc 旋转
g+=1;var S=!!(1-h[g++]);r=Math.cos(E)*_+x,i=Math.sin(E)*I+C,
// 不是直接使用 arc 命令
g<=1&&(
// 第一个命令起点还未定义
s=r,l=i),w=v(x,C,I,E,E+k,S,(f-x)*I/_+x,d,b),a=Math.cos(E+k)*_+x,o=Math.sin(E+k)*I+C;break;case p.R:w=A(s=a=h[g++],l=o=h[g++],h[g++],h[g++],f,d,b);break;case p.Z:w=y(a,o,s,l,f,d,b,!0),a=s,o=l}w<u&&(u=w,n.set(b[0],b[1]))}return u}
// Temporal variable for intermediate usage.
var C=new r.a,_=new r.a,I=new r.a,E=new r.a,k=new r.a;
/**
 * Calculate a proper guide line based on the label position and graphic element definition
 * @param label
 * @param labelRect
 * @param target
 * @param targetRect
 */
function S(e,t){if(e){var n=e.getTextGuideLine(),a=e.getTextContent();
// Needs to create text guide in each charts.
if(a&&n){var o=e.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],c=o.candidates||g,l=a.getBoundingRect().clone();l.applyTransform(a.getComputedTransform());var h=1/0,f=o.anchor,d=e.getComputedTransform(),p=d&&Object(u.invert)([],d),v=t.get("length2")||0;f&&I.copy(f);for(var y=0;y<c.length;y++){m(c[y],0,l,C,E),r.a.scaleAndAdd(_,C,E,v),
// Transform to target coord space.
_.transform(p);
// Note: getBoundingRect will ensure the `path` being created.
var A=e.getBoundingRect(),b=f?f.distance(_):e instanceof i.b?x(_,e.path,I):w(_,A,I);
// TODO pt2 is in the path
b<h&&(h=b,
// Transform back to global space.
_.transform(d),I.transform(d),I.toArray(s[0]),_.toArray(s[1]),C.toArray(s[2]))}T(s,t.get("minTurnAngle")),n.setShape({points:s})}}}
// Temporal variable for the limitTurnAngle function
var B=[],M=new r.a;
/**
 * Reduce the line segment attached to the label to limit the turn angle between two segments.
 * @param linePoints
 * @param minTurnAngle Radian of minimum turn angle. 0 - 180
 */
function T(e,t){if(t<=180&&t>0){t=t/180*Math.PI,
// The line points can be
//      /pt1----pt2 (label)
//     /
// pt0/
C.fromArray(e[0]),_.fromArray(e[1]),I.fromArray(e[2]),r.a.sub(E,C,_),r.a.sub(k,I,_);var n=E.len(),i=k.len();if(!(n<.001||i<.001)){E.scale(1/n),k.scale(1/i);var a=E.dot(k);if(Math.cos(t)<a){
// Smaller than minTurnAngle
// Calculate project point of pt0 on pt1-pt2
var o=y(_.x,_.y,I.x,I.y,C.x,C.y,B,!1);M.fromArray(B),
// Calculate new projected length with limited minTurnAngle and get the new connect point
M.scaleAndAdd(k,o/Math.tan(Math.PI-t));
// Limit the new calculated connect point between pt1 and pt2.
var s=I.x!==_.x?(M.x-_.x)/(I.x-_.x):(M.y-_.y)/(I.y-_.y);if(isNaN(s))return;s<0?r.a.copy(M,_):s>1&&r.a.copy(M,I),M.toArray(e[1])}}}}
/**
 * Limit the angle of line and the surface
 * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite
 */function O(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,C.fromArray(e[0]),_.fromArray(e[1]),I.fromArray(e[2]),r.a.sub(E,_,C),r.a.sub(k,I,_);var i=E.len(),a=k.len();if(!(i<.001||a<.001))if(E.scale(1/i),k.scale(1/a),E.dot(t)<Math.cos(n)){
// Calculate project point of pt0 on pt1-pt2
var o=y(_.x,_.y,I.x,I.y,C.x,C.y,B,!1);M.fromArray(B);var s=Math.PI/2,c=s+Math.acos(k.dot(t))-n;if(c>=s)
// parallel
r.a.copy(M,I);else{
// Calculate new projected length with limited minTurnAngle and get the new connect point
M.scaleAndAdd(k,o/Math.tan(Math.PI/2-c));
// Limit the new calculated connect point between pt1 and pt2.
var l=I.x!==_.x?(M.x-_.x)/(I.x-_.x):(M.y-_.y)/(I.y-_.y);if(isNaN(l))return;l<0?r.a.copy(M,_):l>1&&r.a.copy(M,I)}M.toArray(e[1])}}}function D(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);
// Make sure display.
a.ignore=t;
// Set smooth
var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function P(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=h.dist(r[0],r[1]),a=h.dist(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=h.lerp([],r[1],r[0],o/i),c=h.lerp([],r[1],r[2],o/a),l=h.lerp([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}
/**
 * Create a label line if necessary and set it's style.
 */function L(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,s=o.get("show"),c=i.ignore,u=0;u<f.a.length;u++){var h=f.a[u],d=t[h],p="normal"===h;if(d){var g=d.get("show");if((p?c:Object(l.retrieve2)(i.states[h]&&i.states[h].ignore,c))||!Object(l.retrieve2)(g,s)){var m=p?r:r&&r.states[h];m&&(m.ignore=!0),r&&D(r,!0,h,d);continue}
// Create labelLine if not exists
r||(r=new a.a,e.setTextGuideLine(r),
// Reset state of normal because it's new created.
// NOTE: NORMAL should always been the first!
p||!c&&s||D(r,!0,"normal",t.normal),
// Use same state proxy.
e.stateProxy&&(r.stateProxy=e.stateProxy)),D(r,!1,h,d)}}if(r){Object(l.defaults)(r.style,n),
// Not fill.
r.style.fill=null;var v=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=v||!1,
// Custom the buildPath.
r.buildPath=P}}else
// Not show label line if there is no label.
r&&e.removeTextGuideLine()}function Q(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<f.g.length;r++){var i=f.g[r];n[i]=e.getModel([i,t])}return n}
/***/},
/***/"89d9":
/***/function(e,t,n){var r=n("656b"),i=n("159a"),a=n("e2e4");
/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */e.exports=function(e,t,n){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=r(e,l);n(u,l)&&i(c,a(l,e),u)}return c}},
/***/"89e3":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("7fae"),i=n("3842"),a=n("eda2"),o=n("e0d8"),s=n("944e"),c=i.w,l=/** @class */function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",
// Step is calculated in adjustExtent.
t._interval=0,t._intervalPrecision=2,t}return Object(r.a)(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s.a(e,this._extent)},t.prototype.normalize=function(e){return s.f(e,this._extent)},t.prototype.scale=function(e){return s.g(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;
// start,end may be a Number like '25',so...
isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),
// unionExtent may called by it's sub classes
this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,
// Dropped auto calculated niceExtent and use user-set extent.
// We assume user wants to set both interval, min, max to get a better result.
this._niceExtent=this._extent.slice(),this._intervalPrecision=s.b(e)},
/**
   * @param expandToNicedExtent Whether expand the ticks to niced extent.
   */
t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];
// If interval is 0, return [];
if(!t)return a;
// Consider this case: using dataZoom toolbox, zoom and zoom.
n[0]<r[0]&&(e?a.push({value:c(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(
// Avoid rounding error
o=c(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];
// Consider this case: the last item of ticks is smaller
// than niceTickExtent[1] and niceTickExtent[1] === extent[1].
var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:c(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],u=(a.value-o.value)/e;s<e-1;){var h=c(o.value+(s+1)*u);
// For the first and last interval. The count may be less than splitNumber.
h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},
/**
   * @param opt.precision If 'auto', use nice presision.
   * @param opt.pad returns 1.50 but not 1.5 if precision is 2.
   */
t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=i.h(e.value)||0:"auto"===n&&(
// Should be more precise then tick.
n=this._intervalPrecision);
// (1) If `precision` is set, 12.005 should be display as '12.00500'.
// (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.
var r=c(e.value,n,!0);return a.a(r)},
/**
   * @param splitNumber By default `5`.
   */
t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){
// User may set axis min 0 and data are all negative
// FIXME If it needs to reverse ?
i<0&&(i=-i,r.reverse());var a=s.d(r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;
// If extent start and end are same, expand them
if(t[0]===t[1])if(0!==t[0]){
// Expand extent
// Note that extents can be both negative. See #13154
var n=Math.abs(t[0]);
// In the fowllowing case
//      Axis has been fixed max 100
//      Plus data are all 100 and axis extent are [100, 100].
// Extend to the both side will cause expanded max is larger than fixed max.
// So only expand to the smaller side.
e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];
// If there are no data and extent are [Infinity, -Infinity]
isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);
// let extent = this._extent;
var i=this._interval;e.fixMin||(t[0]=c(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=c(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(o.a);
/* harmony import */o.a.registerClass(l),
/* harmony default export */t.a=l},
/***/"8a0d":
/***/function(e,t){e.exports={};
/***/},
/***/"8a1d":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeColor=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.deepClone)(r.colorConfig,!0),o=t.color,s=t.series;s||(s=[]);o||(o=[]);if(t.color=o=(0,a.deepMerge)(n,o),!s.length)return;var c=o.length;s.forEach((function(e,t){e.color||(e.color=o[t%c])})),s.filter((function(e){return"pie"===e.type})).forEach((function(e){return e.data.forEach((function(e,t){return e.color=o[t%c]}))})),s.filter((function(e){return"gauge"===e.type})).forEach((function(e){return e.data.forEach((function(e,t){return e.color=o[t%c]}))})),s.filter((function(e){var t=e.type,n=e.independentColor;return"bar"===t&&n})).forEach((function(e){e.independentColors||(e.independentColors=o)}))}
/***/;var r=n("9d85"),i=n("5557"),a=n("becb")},
/***/"8a34":
/***/function(e,t,n){"use strict";
// B.2.3.6 String.prototype.fixed()
n("e681")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},
/***/"8a60":
/***/function(e,t,n){var r;/*global define:false */
/**
 * Copyright 2012-2017 Craig Campbell
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Mousetrap is a simple keyboard shortcut library for Javascript with
 * no external dependencies
 *
 * @version 1.6.5
 * @url craig.is/killing/mice
 */!function(i,a){
// Check if mousetrap is used inside browser, if not, return
if(i){
/**
     * loop through the f keys, f1 to f19 and add them to the map
     * programatically
     */
for(
/**
     * mapping of special keycodes to their corresponding keys
     *
     * everything in this dictionary cannot use keypress events
     * so it has to be here to map to the correct keycodes for
     * keyup/keydown events
     *
     * @type {Object}
     */
var o,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},u={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1
/**
     * mapping for special characters so they can support
     *
     * this dictionary is only used incase you want to bind a
     * keyup or keydown event to one of these keys
     *
     * @type {Object}
     */;h<20;++h)s[111+h]="f"+h;
/**
     * loop through to map numbers on the numeric keypad
     */for(h=0;h<=9;++h)
// This needs to use a string cause otherwise since 0 is falsey
// mousetrap will never fire for numpad 0 pressed as part of a keydown
// event.
// @see https://github.com/ccampbell/mousetrap/pull/258
s[h+96]=h.toString();
/**
     * cross browser add event method
     *
     * @param {Element|HTMLDocument} object
     * @param {string} type
     * @param {Function} callback
     * @returns void
     */
/**
     * binds an event to mousetrap
     *
     * can be a single key, a combination of keys separated with +,
     * an array of keys, or a sequence of keys separated by spaces
     *
     * be sure to list the modifier keys first to make sure that the
     * correct key ends up getting bound (the last key in the pattern)
     *
     * @param {string|Array} keys
     * @param {Function} callback
     * @param {string=} action - 'keypress', 'keydown', or 'keyup'
     * @returns void
     */
y.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},
/**
     * unbinds an event to mousetrap
     *
     * the unbinding sets the callback function of the specified key combo
     * to an empty function and deletes the corresponding key in the
     * _directMap dict.
     *
     * TODO: actually remove this from the _callbacks dictionary instead
     * of binding an empty function
     *
     * the keycombo+action has to be exactly the same as
     * it was defined in the bind method
     *
     * @param {string|Array} keys
     * @param {string} action
     * @returns void
     */
y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},
/**
     * triggers an event that has already been bound
     *
     * @param {string} keys
     * @param {string=} action
     * @returns void
     */
y.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},
/**
     * resets the library back to its initial state.  this is useful
     * if you want to clear out the current keyboard shortcuts and bind
     * new ones - for example if you switch to another page
     *
     * @returns void
     */
y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},
/**
     * should we stop this event before firing off callbacks
     *
     * @param {Event} e
     * @param {Element} element
     * @return {boolean}
     */
y.prototype.stopCallback=function(e,t){
// if the element has the class "mousetrap" then no need to stop
if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(t,this.target))return!1;
// Events originating from a shadow DOM are re-targetted and `e.target` is the shadow host,
// not the initial event target in the shadow tree. Note that not all events cross the
// shadow boundary.
// For shadow trees with `mode: 'open'`, the initial event target is the first element in
// the event’s composed path. For shadow trees with `mode: 'closed'`, the initial event
// target cannot be obtained.
if("composedPath"in e&&"function"==typeof e.composedPath){
// For open shadow trees, update `element` so that the following check works.
var n=e.composedPath()[0];n!==e.target&&(t=n)}
// stop for input, select, and textarea
return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},
/**
     * exposes _handleKey publicly so it can be overwritten by extensions
     */
y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},
/**
     * allow custom key mappings
     */
y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);o=null},
/**
     * Init the global mousetrap functions
     *
     * This method is needed to allow the global mousetrap functions to work
     * now that mousetrap is a constructor function.
     */
y.init=function(){var e=y(a);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),
// expose mousetrap to the global object
i.Mousetrap=y,
// expose as a common js module
e.exports&&(e.exports=y),void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}
/**
     * takes the event and returns the key character
     *
     * @param {Event} e
     * @return {string}
     */function d(e){
// for keypress events we should return the character as is
if("keypress"==e.type){var t=String.fromCharCode(e.which);
// if the shift key is not pressed then it is safe to assume
// that we want the character to be lowercase.  this means if
// you accidentally have caps lock on then your key bindings
// will continue to work

// the only side effect that might not be desired is if you
// bind something like 'A' cause you want to trigger an
// event when capital A is pressed caps lock will no longer
// trigger the event.  shift+a will though.
return e.shiftKey||(t=t.toLowerCase()),t}
// for non keypress events the special maps are needed
return s[e.which]?s[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}
/**
     * checks if two arrays are equal
     *
     * @param {Array} modifiers1
     * @param {Array} modifiers2
     * @returns {boolean}
     */
/**
     * determines if the keycode specified is a modifier key or not
     *
     * @param {string} key
     * @returns {boolean}
     */
function p(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}
/**
     * reverses the map lookup so that we can look for specific keys
     * to see what can and can't use keypress
     *
     * @return {Object}
     */
/**
     * picks the best action based on the key combination
     *
     * @param {string} key - character for key
     * @param {Array} modifiers
     * @param {string=} action passed in
     */
function g(e,t,n){
// if no action was picked in we should try to pick the one
// that we think would work best for this key
return n||(n=function(){if(!o)for(var e in o={},s)
// pull out the numeric keypad from here cause keypress should
// be able to detect the keys from the character
e>95&&e<112||s.hasOwnProperty(e)&&(o[s[e]]=e);return o}()[e]?"keydown":"keypress"),
// modifier keys don't work as expected with keypress,
// switch to keydown
"keypress"==n&&t.length&&(n="keydown"),n}
/**
     * Converts from a string key combination to an array
     *
     * @param  {string} combination like "command+shift+l"
     * @return {Array}
     */
/**
     * Gets info for a specific key combination
     *
     * @param  {string} combination key combination ("command+s" or "a" or "*")
     * @param  {string=} action
     * @returns {Object}
     */
function m(e,t){var n,r,i,a=[];for(
// take the keys from this pattern and figure out what the actual
// pattern is all about
n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)r=n[i],
// normalize key names
u[r]&&(r=u[r]),
// if this is not a keypress event then we should
// be smart about using shift keys
// this will only work for US keyboards however
t&&"keypress"!=t&&l[r]&&(r=l[r],a.push("shift")),
// if this key is a modifier then add it to the list of modifiers
p(r)&&a.push(r);
// depending on what the key combination is
// we will try to pick the best event for it
return{key:r,modifiers:a,action:t=g(r,a,t)}}function v(e,t){return null!==e&&e!==a&&(e===t||v(e.parentNode,t))}function y(e){var t=this;if(e=e||a,!(t instanceof y))return new y(e);
/**
         * element to attach key events to
         *
         * @type {Element}
         */t.target=e,
/**
         * a list of all the callbacks setup via Mousetrap.bind()
         *
         * @type {Object}
         */
t._callbacks={},
/**
         * direct map of string combinations to callbacks used for trigger()
         *
         * @type {Object}
         */
t._directMap={};
/**
         * keeps track of what level each sequence is at since multiple
         * sequences can start out with the same sequence
         *
         * @type {Object}
         */
var n,r={},i=!1,o=!1,s=!1;
/**
         * variable to store the setTimeout call
         *
         * @type {null|number}
         */
/**
         * resets all sequence counters except for the ones passed in
         *
         * @param {Object} doNotReset
         * @returns void
         */
function c(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}
/**
         * finds all callbacks that match based on the keycode, modifiers,
         * and action
         *
         * @param {string} character
         * @param {Array} modifiers
         * @param {Event|Object} e
         * @param {string=} sequenceName - name of the sequence we are looking for
         * @param {string=} combination
         * @param {number=} level
         * @returns {Array}
         */function l(e,n,i,a,o,s){var c,l,u,h,f=[],d=i.type;
// if there are no events related to this keycode
if(!t._callbacks[e])return[];
// if a modifier key is coming up on its own we should allow it
// loop through all callbacks for the key that was pressed
// and see if any of them match
for("keyup"==d&&p(e)&&(n=[e]),c=0;c<t._callbacks[e].length;++c)
// if a sequence name is not specified, but this is a sequence at
// the wrong level then move onto the next match
if(l=t._callbacks[e][c],(a||!l.seq||r[l.seq]==l.level)&&d==l.action&&("keypress"==d&&!i.metaKey&&!i.ctrlKey||(u=n,h=l.modifiers,u.sort().join(",")===h.sort().join(",")))){
// when you bind a combination or sequence a second time it
// should overwrite the first one.  if a sequenceName or
// combination is specified in this call it does just that
// @todo make deleting its own method?
var g=!a&&l.combo==o,m=a&&l.seq==a&&l.level==s;(g||m)&&t._callbacks[e].splice(c,1),f.push(l)}
// if the action we are looking for doesn't match the action we got
// then we should keep going
return f}
/**
         * actually calls the callback function
         *
         * if your callback function returns false this will use the jquery
         * convention - prevent default and stop propogation on the event
         *
         * @param {Function} callback
         * @param {Event} e
         * @returns void
         */function u(e,n,r,i){
// if this event should not happen stop here
t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(
/**
     * prevents default for this event
     *
     * @param {Event} e
     * @returns void
     */
function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}
/**
     * stops propogation for this event
     *
     * @param {Event} e
     * @returns void
     */(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}
/**
         * handles a character key event
         *
         * @param {string} character
         * @param {Array} modifiers
         * @param {Event} e
         * @returns void
         */
/**
         * handles a keydown event
         *
         * @param {Event} e
         * @returns void
         */
function h(e){
// normalize e.which for key events
// @see http://stackoverflow.com/questions/4285627/javascript-keycode-vs-charcode-utter-confusion
"number"!=typeof e.which&&(e.which=e.keyCode);var n=d(e);
// no character found then stop
n&&(
// need to use === for the character check because the character can be 0
"keyup"!=e.type||i!==n?t.handleKey(n,
/**
     * takes a key event and figures out what the modifiers are
     *
     * @param {Event} e
     * @returns {Array}
     */
function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)}
/**
         * called to set a 1 second timeout on the specified sequence
         *
         * this is so after each key press in the sequence you have 1 second
         * to press the next key before you have to start over
         *
         * @returns void
         */
/**
         * binds a key sequence to an event
         *
         * @param {string} combo - combo specified in bind call
         * @param {Array} keys
         * @param {Function} callback
         * @param {string=} action
         * @returns void
         */
function g(e,t,a,o){
/**
             * callback to increase the sequence level for this sequence and reset
             * all other sequences that were active
             *
             * @param {string} nextAction
             * @returns {Function}
             */
function l(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(c,1e3)}}
/**
             * wraps the specified callback inside of another function in order
             * to reset all sequence counters as soon as this sequence is done
             *
             * @param {Event} e
             * @returns void
             */function h(t){u(a,t,e),
// we should ignore the next key up if the action is key down
// or keypress.  this is so if you finish a sequence and
// release the key the final key will not trigger a keyup
"keyup"!==o&&(i=d(t)),
// weird race condition if a sequence ends with the key
// another sequence begins with
setTimeout(c,10)}
// loop through keys one at a time and bind the appropriate callback
// function.  for any key leading up to the final one it should
// increase the sequence. after the final, it should reset all sequences

// if an action is specified in the original bind call then that will
// be used throughout.  otherwise we will pass the action that the
// next key in the sequence should match.  this allows a sequence
// to mix and match keypress and keydown events depending on which
// ones are better suited to the key provided
// start off by adding a sequence level record for this combination
// and setting the level to 0
r[e]=0;for(var f=0;f<t.length;++f){var p=f+1===t.length?h:l(o||m(t[f+1]).action);v(t[f],p,o,e,f)}}
/**
         * binds a single keyboard combination
         *
         * @param {string} combination
         * @param {Function} callback
         * @param {string=} action
         * @param {string=} sequenceName - name of sequence if part of sequence
         * @param {number=} level - what part of the sequence the command is
         * @returns void
         */function v(e,n,r,i,a){
// store a direct mapped reference for use with Mousetrap.trigger
t._directMap[e+":"+r]=n;var o,s=(
// make sure multiple spaces in a row become a single space
e=e.replace(/\s+/g," ")).split(" ");
// if this pattern is a sequence of keys then run through this method
// to reprocess each pattern one key at a time
s.length>1?g(e,s,n,r):(o=m(e,r),
// make sure to initialize array if this is the first time
// a callback is added for this key
t._callbacks[o.key]=t._callbacks[o.key]||[],
// remove an existing match if there is one
l(o.key,o.modifiers,{type:o.action},i,e,a),
// add this call back to the array
// if it is a sequence put it at the beginning
// if not put it at the end
// this is important because the way these are processed expects
// the sequence ones to come first
t._callbacks[o.key][i?"unshift":"push"]({callback:n,modifiers:o.modifiers,action:o.action,seq:i,level:a,combo:e}))}
/**
         * binds multiple combinations to the same callback
         *
         * @param {Array} combinations
         * @param {Function} callback
         * @param {string|undefined} action
         * @returns void
         */t._handleKey=function(e,t,n){var r,i=l(e,t,n),a={},h=0,f=!1;
// Calculate the maxLevel for sequences so we can only execute the longest callback sequence
for(r=0;r<i.length;++r)i[r].seq&&(h=Math.max(h,i[r].level));
// loop through matching callbacks for this key event
for(r=0;r<i.length;++r)
// fire for all sequence callbacks
// this is because if for example you have multiple sequences
// bound such as "g i" and "g t" they both need to fire the
// callback for matching g cause otherwise you can only ever
// match the first one
if(i[r].seq){
// only fire callbacks for the maxLevel to prevent
// subsequences from also firing
// for example 'a option b' should not cause 'option b' to fire
// even though 'option b' is part of the other sequence
// any sequences that do not match here will be discarded
// below by the _resetSequences call
if(i[r].level!=h)continue;f=!0,
// keep a list of which sequences were matches for later
a[i[r].seq]=1,u(i[r].callback,n,i[r].combo,i[r].seq)}
// if there were no sequence matches but we are still here
// that means this is a regular match so we should fire that
else f||u(i[r].callback,n,i[r].combo);
// if the key you pressed matches the type of sequence without
// being a modifier (ie "keyup" or "keypress") then we should
// reset all sequences that were not matched by this event

// this is so, for example, if you have the sequence "h a t" and you
// type "h e a r t" it does not match.  in this case the "e" will
// cause the sequence to reset

// modifier keys are ignored because you can have a sequence
// that contains modifiers such as "enter ctrl+space" and in most
// cases the modifier key will be pressed before the next key

// also if you have a sequence such as "ctrl+b a" then pressing the
// "b" key will trigger a "keypress" and a "keydown"

// the "keydown" is expected when there is a modifier, but the
// "keypress" ends up matching the _nextExpectedAction since it occurs
// after and that causes the sequence to reset

// we ignore keypresses in a sequence that directly follow a keydown
// for the same character
var d="keypress"==n.type&&o;n.type!=s||p(e)||d||c(a),o=f&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},
// start!
f(e,"keypress",h),f(e,"keydown",h),f(e,"keyup",h)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},
/***/"8aa5":
/***/function(e,t,n){"use strict";var r=n("6547").charAt;
// `AdvanceStringIndex` abstract operation
// https://tc39.es/ecma262/#sec-advancestringindex
e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},
/***/"8aab":
/***/function(e,t,n){var r=n("6aa8"),i=n("cc15")("iterator"),a=n("8a0d");e.exports=n("5524").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},
/***/"8ad7":
/***/function(e,t,n){var r=n("9fe8"),i=n("93e0").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},
/***/"8adb":
/***/function(e,t){e.exports=
/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},
/***/"8afd":
/***/function(e,t,n){"use strict";n.r(t),
/* harmony export (binding) */n.d(t,"createApp",(function(){return l})),
/* harmony export (binding) */n.d(t,"Vue2",(function(){return o})),
/* harmony export (binding) */n.d(t,"isVue2",(function(){return i})),
/* harmony export (binding) */n.d(t,"isVue3",(function(){return a})),
/* harmony export (binding) */n.d(t,"install",(function(){return c})),
/* harmony export (binding) */n.d(t,"warn",(function(){return s})),
/* harmony export (binding) */n.d(t,"Fragment",(function(){return h})),
/* harmony export (binding) */n.d(t,"Transition",(function(){return f})),
/* harmony export (binding) */n.d(t,"TransitionGroup",(function(){return d})),
/* harmony export (binding) */n.d(t,"Teleport",(function(){return p})),
/* harmony export (binding) */n.d(t,"Suspense",(function(){return g})),
/* harmony export (binding) */n.d(t,"KeepAlive",(function(){return m})),
/* harmony export (binding) */n.d(t,"hasInjectionContext",(function(){return v}));
/* harmony import */var r=n("a026");
/* harmony reexport (safe) */n.d(t,"Vue",(function(){return r.default})),
/* harmony reexport (safe) */n.d(t,"EffectScope",(function(){return r.EffectScope})),
/* harmony reexport (safe) */n.d(t,"computed",(function(){return r.computed})),
/* harmony reexport (safe) */n.d(t,"customRef",(function(){return r.customRef})),
/* harmony reexport (safe) */n.d(t,"defineAsyncComponent",(function(){return r.defineAsyncComponent})),
/* harmony reexport (safe) */n.d(t,"defineComponent",(function(){return r.defineComponent})),
/* harmony reexport (safe) */n.d(t,"del",(function(){return r.del})),
/* harmony reexport (safe) */n.d(t,"effectScope",(function(){return r.effectScope})),
/* harmony reexport (safe) */n.d(t,"getCurrentInstance",(function(){return r.getCurrentInstance})),
/* harmony reexport (safe) */n.d(t,"getCurrentScope",(function(){return r.getCurrentScope})),
/* harmony reexport (safe) */n.d(t,"h",(function(){return r.h})),
/* harmony reexport (safe) */n.d(t,"inject",(function(){return r.inject})),
/* harmony reexport (safe) */n.d(t,"isProxy",(function(){return r.isProxy})),
/* harmony reexport (safe) */n.d(t,"isReactive",(function(){return r.isReactive})),
/* harmony reexport (safe) */n.d(t,"isReadonly",(function(){return r.isReadonly})),
/* harmony reexport (safe) */n.d(t,"isRef",(function(){return r.isRef})),
/* harmony reexport (safe) */n.d(t,"isShallow",(function(){return r.isShallow})),
/* harmony reexport (safe) */n.d(t,"markRaw",(function(){return r.markRaw})),
/* harmony reexport (safe) */n.d(t,"mergeDefaults",(function(){return r.mergeDefaults})),
/* harmony reexport (safe) */n.d(t,"nextTick",(function(){return r.nextTick})),
/* harmony reexport (safe) */n.d(t,"onActivated",(function(){return r.onActivated})),
/* harmony reexport (safe) */n.d(t,"onBeforeMount",(function(){return r.onBeforeMount})),
/* harmony reexport (safe) */n.d(t,"onBeforeUnmount",(function(){return r.onBeforeUnmount})),
/* harmony reexport (safe) */n.d(t,"onBeforeUpdate",(function(){return r.onBeforeUpdate})),
/* harmony reexport (safe) */n.d(t,"onDeactivated",(function(){return r.onDeactivated})),
/* harmony reexport (safe) */n.d(t,"onErrorCaptured",(function(){return r.onErrorCaptured})),
/* harmony reexport (safe) */n.d(t,"onMounted",(function(){return r.onMounted})),
/* harmony reexport (safe) */n.d(t,"onRenderTracked",(function(){return r.onRenderTracked})),
/* harmony reexport (safe) */n.d(t,"onRenderTriggered",(function(){return r.onRenderTriggered})),
/* harmony reexport (safe) */n.d(t,"onScopeDispose",(function(){return r.onScopeDispose})),
/* harmony reexport (safe) */n.d(t,"onServerPrefetch",(function(){return r.onServerPrefetch})),
/* harmony reexport (safe) */n.d(t,"onUnmounted",(function(){return r.onUnmounted})),
/* harmony reexport (safe) */n.d(t,"onUpdated",(function(){return r.onUpdated})),
/* harmony reexport (safe) */n.d(t,"provide",(function(){return r.provide})),
/* harmony reexport (safe) */n.d(t,"proxyRefs",(function(){return r.proxyRefs})),
/* harmony reexport (safe) */n.d(t,"reactive",(function(){return r.reactive})),
/* harmony reexport (safe) */n.d(t,"readonly",(function(){return r.readonly})),
/* harmony reexport (safe) */n.d(t,"ref",(function(){return r.ref})),
/* harmony reexport (safe) */n.d(t,"set",(function(){return r.set})),
/* harmony reexport (safe) */n.d(t,"shallowReactive",(function(){return r.shallowReactive})),
/* harmony reexport (safe) */n.d(t,"shallowReadonly",(function(){return r.shallowReadonly})),
/* harmony reexport (safe) */n.d(t,"shallowRef",(function(){return r.shallowRef})),
/* harmony reexport (safe) */n.d(t,"toRaw",(function(){return r.toRaw})),
/* harmony reexport (safe) */n.d(t,"toRef",(function(){return r.toRef})),
/* harmony reexport (safe) */n.d(t,"toRefs",(function(){return r.toRefs})),
/* harmony reexport (safe) */n.d(t,"triggerRef",(function(){return r.triggerRef})),
/* harmony reexport (safe) */n.d(t,"unref",(function(){return r.unref})),
/* harmony reexport (safe) */n.d(t,"useAttrs",(function(){return r.useAttrs})),
/* harmony reexport (safe) */n.d(t,"useCssModule",(function(){return r.useCssModule})),
/* harmony reexport (safe) */n.d(t,"useCssVars",(function(){return r.useCssVars})),
/* harmony reexport (safe) */n.d(t,"useListeners",(function(){return r.useListeners})),
/* harmony reexport (safe) */n.d(t,"useSlots",(function(){return r.useSlots})),
/* harmony reexport (safe) */n.d(t,"version",(function(){return r.version})),
/* harmony reexport (safe) */n.d(t,"watch",(function(){return r.watch})),
/* harmony reexport (safe) */n.d(t,"watchEffect",(function(){return r.watchEffect})),
/* harmony reexport (safe) */n.d(t,"watchPostEffect",(function(){return r.watchPostEffect})),
/* harmony reexport (safe) */n.d(t,"watchSyncEffect",(function(){return r.watchSyncEffect}));var i=!0,a=!1,o=r.default,s=r.default.util.warn;function c(){}
// createApp polyfill
function l(e,t){var n,i={},a={config:r.default.config,use:r.default.use.bind(r.default),mixin:r.default.mixin.bind(r.default),component:r.default.component.bind(r.default),provide:function(e,t){return i[e]=t,this},directive:function(e,t){return t?(r.default.directive(e,t),a):r.default.directive(e)},mount:function(a,o){return n||((n=new r.default(Object.assign({propsData:t},e,{provide:Object.assign(i,e.provide)}))).$mount(a,o),n)},unmount:function(){n&&(n.$destroy(),n=void 0)}};return a}
// Vue 3 components mock
function u(e){return{setup(){throw new Error("[vue-demi] "+e+" is not supported in Vue 2. It's provided to avoid compiler errors.")}}}var h=u("Fragment"),f=u("Transition"),d=u("TransitionGroup"),p=u("Teleport"),g=u("Suspense"),m=u("KeepAlive");
// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()
function v(){return!!Object(r.getCurrentInstance)()}
/***/},
/***/"8b00":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("68df");
// `Set.prototype.isSubsetOf` method
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSubsetOf",(function(e){return e}))},{isSubsetOf:i})},
/***/"8b1a":
/***/function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},
/***/"8b45":
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t);
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/locale/default.js + 1 modules
var r=n("7320").a;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/locale/en_US.js
/* harmony default export */t.default=r},
/***/"8c03":
/***/function(e,t,n){
// 20.1.2.5 Number.isSafeInteger(number)
var r=n("f083"),i=n("2647"),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&a(e)<=9007199254740991}})},
/***/"8c2e":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"8c4f":
/***/function(e,t,n){"use strict";
/* unused harmony export NavigationFailureType */
/* unused harmony export RouterLink */
/* unused harmony export RouterView */
/* unused harmony export START_LOCATION */
/* harmony export (binding) */function r(e,t){for(var n in t)e[n]=t[n];return e}
n.d(t,"a",(function(){return qe}));var i=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},o=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,a).replace(o,",")};function c(e){try{return decodeURIComponent(e)}catch(e){0}return e}var l=function(e){return null==e||"object"==typeof e?e:String(e)};function u(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))})),r.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}
var f=/\/?$/;function d(e,t,n,r){var i=r&&r.options.stringifyQuery,a=t.query||{};try{a=p(a)}catch(e){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:v(t,i),matched:e?m(e):[]};return n&&(o.redirectedFrom=v(n,i)),Object.freeze(o)}function p(e){if(Array.isArray(e))return e.map(p);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=p(e[n]);return t}return e}
// the starting route that represents the initial state
var g=d(null,{path:"/"});function m(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function v(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||h)(r)+i}function y(e,t,n){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&A(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&A(e.query,t.query)&&A(e.params,t.params))))}function A(e,t){
// handle null value #1566
if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var a=e[n];if(r[i]!==n)return!1;var o=t[n];
// query values can be null and undefined
return null==a||null==o?a===o:
// check nested equality
"object"==typeof a&&"object"==typeof o?A(a,o):String(a)===String(o)}))}function b(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],a=n.enteredCbs[r];if(i&&a){delete n.enteredCbs[r];for(var o=0;o<a.length;o++)i._isBeingDestroyed||a[o](i)}}}}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,a=t.parent,o=t.data;
// used by devtools to display a router-view badge
o.routerView=!0;for(
// directly use parent context's createElement() function
// so that components rendered by router-view can resolve named slots
var s=a.$createElement,c=n.name,l=a.$route,u=a._routerViewCache||(a._routerViewCache={}),h=0,f=!1;a&&a._routerRoot!==a;){var d=a.$vnode?a.$vnode.data:{};d.routerView&&h++,d.keepAlive&&a._directInactive&&a._inactive&&(f=!0),a=a.$parent}
// render previous view if the tree is inactive and kept-alive
if(o.routerViewDepth=h,f){var p=u[c],g=p&&p.component;return g?(
// #2301
// pass props
p.configProps&&x(g,o,p.route,p.configProps),s(g,o,i)):s()}var m=l.matched[h],v=m&&m.components[c];
// render empty node if no matched route or no config component
if(!m||!v)return u[c]=null,s();
// cache component
u[c]={component:v},
// attach instance registration hook
// this will be called in the instance's injected lifecycle hooks
o.registerRouteInstance=function(e,t){
// val could be undefined for unregistration
var n=m.instances[c];(t&&n!==e||!t&&n===e)&&(m.instances[c]=t)}
// also register instance in prepatch hook
// in case the same component instance is reused across different routes
,(o.hook||(o.hook={})).prepatch=function(e,t){m.instances[c]=t.componentInstance},
// register instance in init hook
// in case kept-alive component be actived when routes changed
o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[c]&&(m.instances[c]=e.componentInstance),
// if the route transition has already been confirmed then we weren't
// able to call the cbs during confirmation as the component was not
// registered yet, so we call it here.
b(l)};var y=m.props&&m.props[c];
// save route and configProps in cache
return y&&(r(u[c],{route:l,configProps:y}),x(v,o,l,y)),s(v,o,i)}};function x(e,t,n,i){
// resolve props
var a=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}
(n,i);if(a){
// clone to prevent mutation
a=t.props=r({},a);
// pass non-declared props as attrs
var o=t.attrs=t.attrs||{};for(var s in a)e.props&&s in e.props||(o[s]=a[s],delete a[s])}}function C(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");
// remove trailing segment if:
// - not appending
// - appending to trailing slash (last segment is empty)
n&&i[i.length-1]||i.pop();
// resolve relative path
for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?i.pop():"."!==s&&i.push(s)}
// ensure leading slash
return""!==i[0]&&i.unshift(""),i.join("/")}function _(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var I=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},E=F,k=O,S=
/**
 * Compile a string to a template function for the path.
 *
 * @param  {string}             str
 * @param  {Object=}            options
 * @return {!function(Object=, Object=)}
 */
function(e,t){return P(O(e,t),t)}
/**
 * Prettier encoding of URI path segments.
 *
 * @param  {string}
 * @return {string}
 */,B=P,M=N,T=new RegExp([
// Match escaped characters that would otherwise appear in future matches.
// This allows the user to escape special characters that won't transform.
"(\\\\.)",
// Match Express-style parameters and un-named parameters with a prefix
// and optional suffixes. Matches appear as:
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
// "/route(\\d+)"  => [undefined, undefined, undefined, "\d+", undefined, undefined]
// "/*"            => ["/", undefined, undefined, undefined, undefined, "*"]
"([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");
/**
 * Expose `pathToRegexp`.
 */
/**
 * Parse a string for the raw tokens.
 *
 * @param  {string}  str
 * @param  {Object=} options
 * @return {!Array}
 */
function O(e,t){for(var n,r=[],i=0,a=0,o="",s=t&&t.delimiter||"/";null!=(n=T.exec(e));){var c=n[0],l=n[1],u=n.index;
// Ignore already escaped sequences.
if(o+=e.slice(a,u),a=u+c.length,l)o+=l[1];else{var h=e[a],f=n[2],d=n[3],p=n[4],g=n[5],m=n[6],v=n[7];
// Push the current path onto the tokens.
o&&(r.push(o),o="");var y=null!=f&&null!=h&&h!==f,A="+"===m||"*"===m,b="?"===m||"*"===m,w=n[2]||s,x=p||g;r.push({name:d||i++,prefix:f||"",delimiter:w,optional:b,repeat:A,partial:y,asterisk:!!v,pattern:x?Q(x):v?".*":"[^"+L(w)+"]+?"})}}
// Match any characters still remaining.
return a<e.length&&(o+=e.substr(a)),
// If the path exists, push it onto the end.
o&&r.push(o),r}function D(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}
/**
 * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
 *
 * @param  {string}
 * @return {string}
 */
/**
 * Expose a method for transforming tokens into the path function.
 */
function P(e,t){
// Compile all the patterns before compilation.
for(
// Compile all the tokens into regexps.
var n=new Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",j(t)));return function(t,r){for(var i="",a=t||{},o=(r||{}).pretty?D:encodeURIComponent,s=0;s<e.length;s++){var c=e[s];if("string"!=typeof c){var l,u=a[c.name];if(null==u){if(c.optional){
// Prepend partial segment prefixes.
c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(I(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=o(u[h]),!n[s].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):o(u),!n[s].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}
/**
 * Escape a regular expression string.
 *
 * @param  {string} str
 * @return {string}
 */function L(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}
/**
 * Escape the capturing group by escaping special characters and meaning.
 *
 * @param  {string} group
 * @return {string}
 */function Q(e){return e.replace(/([=!:$\/()])/g,"\\$1")}
/**
 * Attach the keys as a property of the regexp.
 *
 * @param  {!RegExp} re
 * @param  {Array}   keys
 * @return {!RegExp}
 */function R(e,t){return e.keys=t,e}
/**
 * Get the flags for a regexp from the options.
 *
 * @param  {Object} options
 * @return {string}
 */function j(e){return e&&e.sensitive?"":"i"}
/**
 * Pull out keys from a regexp.
 *
 * @param  {!RegExp} path
 * @param  {!Array}  keys
 * @return {!RegExp}
 */
/**
 * Expose a function for taking tokens and returning a RegExp.
 *
 * @param  {!Array}          tokens
 * @param  {(Array|Object)=} keys
 * @param  {Object=}         options
 * @return {!RegExp}
 */
function N(e,t,n){I(t)||(n=/** @type {!Object} */t||n,t=[]);
// Iterate over the tokens and create our regexp string.
for(var r=(n=n||{}).strict,i=!1!==n.end,a="",o=0;o<e.length;o++){var s=e[o];if("string"==typeof s)a+=L(s);else{var c=L(s.prefix),l="(?:"+s.pattern+")";t.push(s),s.repeat&&(l+="(?:"+c+l+")*"),a+=l=s.optional?s.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=L(n.delimiter||"/"),h=a.slice(-u.length)===u;
// In non-strict mode we allow a slash at the end of match. If the path to
// match already ends with a slash, we remove it for consistency. The slash
// is valid at the end of a path match, not in the middle. This is important
// in non-ending mode, where "/test/" shouldn't match "/test//route".
return r||(a=(h?a.slice(0,-u.length):a)+"(?:"+u+"(?=$))?"),a+=i?"$":r&&h?"":"(?="+u+"|$)",R(new RegExp("^"+a,j(n)),t)}
/**
 * Normalize the given path string, returning a regular expression.
 *
 * An empty array can be passed in for the keys, which will hold the
 * placeholder key descriptions. For example, using `/user/:id`, `keys` will
 * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
 *
 * @param  {(string|RegExp|Array)} path
 * @param  {(Array|Object)=}       keys
 * @param  {Object=}               options
 * @return {!RegExp}
 */function F(e,t,n){return I(t)||(n=/** @type {!Object} */t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){
// Use a negative lookahead to match only capturing groups.
var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return R(e,t)}
/**
 * Transform an array into a regexp.
 *
 * @param  {!Array}  path
 * @param  {Array}   keys
 * @param  {!Object} options
 * @return {!RegExp}
 */(e,/** @type {!Array} */t):I(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(F(e[i],t,n).source);return R(new RegExp("(?:"+r.join("|")+")",j(n)),t)}
/**
 * Create a path regexp from string input.
 *
 * @param  {string}  path
 * @param  {!Array}  keys
 * @param  {!Object} options
 * @return {!RegExp}
 */(/** @type {!Array} */e,/** @type {!Array} */t,n):function(e,t,n){return N(O(e,n),t,n)}(/** @type {string} */e,/** @type {!Array} */t,n)}E.parse=k,E.compile=S,E.tokensToFunction=B,E.tokensToRegExp=M;

// $flow-disable-line
var z=Object.create(null);function H(e,t,n){t=t||{};try{var r=z[e]||(z[e]=E.compile(e));
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
// and fix #3106 so that you can work with location descriptor object having params.pathMatch equal to empty string
return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(e){return""}finally{
// delete the 0 if it was added
delete t[0]}}
function U(e,t,n,i){var a="string"==typeof e?{path:e}:e;
// named target
if(a._normalized)return a;
// relative params
if(a.name){var o=(a=r({},e)).params;return o&&"object"==typeof o&&(a.params=r({},o)),a}if(!a.path&&a.params&&t){(a=r({},a))._normalized=!0;var s=r(r({},t.params),a.params);if(t.name)a.name=t.name,a.params=s;else if(t.matched.length){var c=t.matched[t.matched.length-1].path;a.path=H(c,s,t.path)}else 0;return a}var h=function(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(a.path||""),f=t&&t.path||"/",d=h.path?C(h.path,f,n||a.append):f,p=function(e,t,n){void 0===t&&(t={});var r,i=n||u;try{r=i(e||"")}catch(e){r={}}for(var a in t){var o=t[a];r[a]=Array.isArray(o)?o.map(l):l(o)}return r}(h.query,a.query,i&&i.options.parseQuery),g=a.hash||h.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:d,query:p,hash:g}}

// work around weird flow bug
var G,V=function(){},W={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,a=n.resolve(this.to,i,this.append),o=a.location,s=a.route,c=a.href,l={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,g=null==h?"router-link-exact-active":h,m=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?g:this.exactActiveClass,A=s.redirectedFrom?d(null,U(s.redirectedFrom),null,n):s;l[v]=y(i,A,this.exactPath),l[m]=this.exact||this.exactPath?l[v]:function(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(i,A);var b=l[v]?this.ariaCurrentValue:null,w=function(e){q(e)&&(t.replace?n.replace(o,V):n.push(o,V))},x={click:q};Array.isArray(this.event)?this.event.forEach((function(e){x[e]=w})):x[this.event]=w;var C={class:l},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:w,isActive:l[m],isExactActive:l[v]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?e():e("span",{},_)}if("a"===this.tag)C.on=x,C.attrs={href:c,"aria-current":b};else{
// find the first <a> child and apply listener and href
var I=Y(this.$slots.default);if(I){
// in case the <a> is a static node
I.isStatic=!1;var E=I.data=r({},I.data);
// transform existing events in both objects into arrays so we can push later
for(var k in E.on=E.on||{},E.on){var S=E.on[k];k in x&&(E.on[k]=Array.isArray(S)?S:[S])}
// append new listeners for router-link
for(var B in x)B in E.on?
// on[event] is always a function
E.on[B].push(x[B]):E.on[B]=w;var M=I.data.attrs=r({},I.data.attrs);M.href=c,M["aria-current"]=b}else
// doesn't have <a> child, apply listener to self
C.on=x}return e(this.tag,C,this.$slots.default)}};function q(e){
// don't redirect with control keys
if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button))
// don't redirect on right click
{
// don't redirect if `target="_blank"`
if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}
// this may be a Weex event which doesn't have this method
return e.preventDefault&&e.preventDefault(),!0}
// don't redirect when preventDefault called
}function Y(e){if(e)for(var t,n=0;n<e.length;n++){if("a"===(t=e[n]).tag)return t;if(t.children&&(t=Y(t.children)))return t}}

var K="undefined"!=typeof window;
function $(e,t,n,r,i){
// the path list is used to control path matching priority
var a=t||[],o=n||Object.create(null),s=r||Object.create(null);
// $flow-disable-line
e.forEach((function(e){J(a,o,s,e,i)}));
// ensure wildcard routes are always at the end
for(var c=0,l=a.length;c<l;c++)"*"===a[c]&&(a.push(a.splice(c,1)[0]),l--,c--);return{pathList:a,pathMap:o,nameMap:s}}function J(e,t,n,r,i,a){var o=r.path,s=r.name;var c=r.pathToRegexpOptions||{},l=function(e,t,n){n||(e=e.replace(/\/$/,""));if("/"===e[0])return e;if(null==t)return e;return _(t.path+"/"+e)}
(o,i,c.strict);"boolean"==typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var u={path:l,regex:X(l,c),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:a,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=a?_(a+"/"+r.path):void 0;J(e,t,n,r,u,i)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<h.length;++f){0;var d={path:h[f],children:r.children};J(e,t,n,d,i,u.path||"/")}s&&(n[s]||(n[s]=u))}function X(e,t){return E(e,[],t)}function Z(e,t){var n=$(e),r=n.pathList,i=n.pathMap,a=n.nameMap;function o(e,n,o){var s=U(e,n,!1,t),l=s.name;if(l){var u=a[l];if(!u)return c(null,s);var h=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var f in n.params)!(f in s.params)&&h.indexOf(f)>-1&&(s.params[f]=n.params[f]);return s.path=H(u.path,s.params),c(u,s,o)}
// no match
if(s.path){s.params={};for(var d=0;d<r.length;d++){var p=r[d],g=i[p];if(ee(g.regex,s.path,s.params))return c(g,s,o)}}return c(null,s)}function s(e,n){var r=e.redirect,i="function"==typeof r?r(d(e,n,null,t)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return c(null,n);var s=i,l=s.name,u=s.path,h=n.query,f=n.hash,p=n.params;if(h=s.hasOwnProperty("query")?s.query:h,f=s.hasOwnProperty("hash")?s.hash:f,p=s.hasOwnProperty("params")?s.params:p,l){
// resolved named direct
a[l];return o({_normalized:!0,name:l,query:h,hash:f,params:p},void 0,n)}if(u){
// 1. resolve relative redirect
var g=function(e,t){return C(e,t.parent?t.parent.path:"/",!0)}

// use User Timing api (if present) for more accurate key precision
(u,e);
// 2. resolve params
// 3. rematch with existing query and hash
return o({_normalized:!0,path:H(g,p),query:h,hash:f},void 0,n)}return c(null,n)}function c(e,n,r){return e&&e.redirect?s(e,r||n):e&&e.matchAs?function(e,t,n){var r=o({_normalized:!0,path:H(n,t.params)});if(r){var i=r.matched,a=i[i.length-1];return t.params=r.params,c(a,t)}return c(null,t)}(0,n,e.matchAs):d(e,n,r,t)}return{match:o,addRoute:function(e,t){var n="object"!=typeof e?a[e]:void 0;
// $flow-disable-line
$([t||e],r,i,a,n),
// add aliases of parent
n&&n.alias.length&&$(
// $flow-disable-line route is defined if parent is
n.alias.map((function(e){return{path:e,children:[t]}})),r,i,a,n)},getRoutes:function(){return r.map((function(e){return i[e]}))},addRoutes:function(e){$(e,r,i,a)}}}function ee(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,a=r.length;i<a;++i){var o=e.keys[i-1];o&&(
// Fix #1994: using * with props: true generates a param named 0
n[o.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var te=K&&window.performance&&window.performance.now?window.performance:Date;function ne(){return te.now().toFixed(3)}var re=ne();function ie(){return re}function ae(e){return re=e}
var oe=Object.create(null);function se(){
// Prevent browser scroll behavior on History popstate
"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");
// Fix for #1585 for Firefox
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
// window.location.protocol + '//' + window.location.host
// location.host contains the port and location.hostname doesn't
var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=ie(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ue),function(){window.removeEventListener("popstate",ue)}}function ce(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&
// wait until re-render finishes before scrolling
e.app.$nextTick((function(){var a=function(){var e=ie();if(e)return oe[e]}(),o=i.call(e,t,n,r?a:null);o&&("function"==typeof o.then?o.then((function(e){ge(e,a)})).catch((function(e){0})):ge(o,a))}))}}function le(){var e=ie();e&&(oe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ue(e){le(),e.state&&e.state.key&&ae(e.state.key)}function he(e){return de(e.x)||de(e.y)}function fe(e){return{x:de(e.x)?e.x:window.pageXOffset,y:de(e.y)?e.y:window.pageYOffset}}function de(e){return"number"==typeof e}var pe=/^#\d/;function ge(e,t){var n,r="object"==typeof e;if(r&&"string"==typeof e.selector){
// getElementById would still fail if the selector contains a more complicated query like #main[data-attr]
// but at the same time, it doesn't make much sense to select an element with an id and an extra selector
var i=pe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var a=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(i,a={x:de((n=a).x)?n.x:0,y:de(n.y)?n.y:0})}else he(e)&&(t=fe(e))}else r&&he(e)&&(t=fe(e));t&&(
// $flow-disable-line
"scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,
// $flow-disable-line
behavior:e.behavior}):window.scrollTo(t.x,t.y))}
var me,ve=K&&((-1===(me=window.navigator.userAgent).indexOf("Android 2.")&&-1===me.indexOf("Android 4.0")||-1===me.indexOf("Mobile Safari")||-1!==me.indexOf("Chrome")||-1!==me.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function ye(e,t){le();
// try...catch the pushState call to get around Safari
// DOM Exception 18 where it limits to 100 pushState calls
var n=window.history;try{if(t){
// preserve existing history state as it could be overriden by the user
var i=r({},n.state);i.key=ie(),n.replaceState(i,"",e)}else n.pushState({key:ae(ne())},"",e)}catch(n){window.location[t?"replace":"assign"](e)}}function Ae(e){ye(e,!0)}
// When changing thing, also edit router.d.ts
var be={redirected:2,aborted:4,cancelled:8,duplicated:16};function we(e,t){return Ce(e,t,be.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return _e.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function xe(e,t){return Ce(e,t,be.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ce(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var _e=["params","query","hash"];function Ie(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ee(e,t){return Ie(e)&&e._isRouter&&(null==t||e.type===t)}
function ke(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}
function Se(e){return function(t,n,r){var i=!1,a=0,o=null;Be(e,(function(e,t,n,s){
// if it's a function and doesn't have cid attached,
// assume it's an async component resolve function.
// we are not using Vue's default async resolving mechanism because
// we want to halt the navigation until the incoming component has been
// resolved.
if("function"==typeof e&&void 0===e.cid){i=!0,a++;var c,l=Oe((function(t){var i;
// in Webpack 2, require.ensure now also returns a Promise
// so the resolve/reject functions may get called an extra time
// if the user uses an arrow function shorthand that happens to
// return that Promise.
((i=t).__esModule||Te&&"Module"===i[Symbol.toStringTag])&&(t=t.default),
// save resolved on async factory in case it's used elsewhere
e.resolved="function"==typeof t?t:G.extend(t),n.components[s]=t,--a<=0&&r()})),u=Oe((function(e){var t="Failed to resolve async component "+s+": "+e;o||(o=Ie(e)?e:new Error(t),r(o))}));try{c=e(l,u)}catch(e){u(e)}if(c)if("function"==typeof c.then)c.then(l,u);else{
// new syntax in Vue 2.3
var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),i||r()}}function Be(e,t){return Me(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Me(e){return Array.prototype.concat.apply([],e)}var Te="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Oe(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}
var De=function(e,t){this.router=e,this.base=function(e){if(!e)if(K){
// respect <base> tag
var t=document.querySelector("base");
// strip full URL origin
e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";
// make sure there's the starting slash
"/"!==e.charAt(0)&&(e="/"+e);
// remove trailing slash
return e.replace(/\/$/,"")}(t),
// start with a route object that stands for "nowhere"
this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Pe(e,t,n,r){var i=Be(e,(function(e,r,i,a){var o=function(e,t){"function"!=typeof e&&(
// extend now so that global mixins are applied.
e=G.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,r,i,a)})):n(o,r,i,a)}));return Me(r?i.reverse():i)}function Le(e,t){if(t)return function(){return e.apply(t,arguments)}}De.prototype.listen=function(e){this.cb=e},De.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},De.prototype.onError=function(e){this.errorCbs.push(e)},De.prototype.transitionTo=function(e,t,n){var r,i=this;
// catch redirect option https://github.com/vuejs/vue-router/issues/3201
try{r=this.router.match(e,this.current)}catch(e){
// Exception should still be thrown
throw this.errorCbs.forEach((function(t){t(e)})),e}var a=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,a)})),
// fire ready cbs once
i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&(
// Initial redirection should not mark the history as ready yet
// because it's triggered by the redirection instead
// https://github.com/vuejs/vue-router/issues/3225
// https://github.com/vuejs/vue-router/issues/3331
Ee(e,be.redirected)&&a===g||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},De.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var a,o,s=function(e){
// changed after adding errors with
// https://github.com/vuejs/vue-router/pull/3047 before that change,
// redirect and aborted navigation would produce an err == null
!Ee(e)&&Ie(e)&&r.errorCbs.length&&r.errorCbs.forEach((function(t){t(e)})),n&&n(e)},c=e.matched.length-1,l=i.matched.length-1;if(y(e,i)&&
// in the case the route map has been dynamically appended to
c===l&&e.matched[c]===i.matched[l])return this.ensureURL(),e.hash&&ce(this.router,i,e,!1),s((
// backwards compatible with the first introduction of Errors
(o=Ce(a=i,e,be.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",o));var u=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),h=u.updated,f=u.deactivated,d=u.activated,p=[].concat(
// in-component leave guards
function(e){return Pe(e,"beforeRouteLeave",Le,!0)}(f),
// global before hooks
this.router.beforeHooks,
// in-component update hooks
function(e){return Pe(e,"beforeRouteUpdate",Le)}(h),
// in-config enter guards
d.map((function(e){return e.beforeEnter})),
// async components
Se(d)),g=function(t,n){if(r.pending!==e)return s(xe(i,e));try{t(e,i,(function(t){!1===t?(
// next(false) -> abort navigation, ensure current URL
r.ensureURL(!0),s(function(e,t){return Ce(e,t,be.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(i,e))):Ie(t)?(r.ensureURL(!0),s(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(
// next('/') or next({ path: '/' }) -> redirect
s(we(i,e)),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):
// confirm transition and pass on the value
n(t)}))}catch(e){s(e)}};ke(p,g,(function(){
// wait until async components are resolved before
// extracting in-component enter guards
var n=function(e){return Pe(e,"beforeRouteEnter",(function(e,t,n,r){return function(e,t,n){return function(r,i,a){return e(r,i,(function(e){"function"==typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),a(e)}))}}
(e,n,r)}))}(d);ke(n.concat(r.router.resolveHooks),g,(function(){if(r.pending!==e)return s(xe(i,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){b(e)}))}))}))},De.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},De.prototype.setupListeners=function(){
// Default implementation is empty
},De.prototype.teardown=function(){
// clean up event listeners
// https://github.com/vuejs/vue-router/issues/2341
this.listeners.forEach((function(e){e()})),this.listeners=[],
// reset current history route
// https://github.com/vuejs/vue-router/issues/3294
this.current=g,this.pending=null};var Qe=function(e){function t(t,n){e.call(this,t,n),this._startLocation=Re(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=ve&&n;r&&this.listeners.push(se());var i=function(){var n=e.current,i=Re(e.base);
// Avoiding first `popstate` event dispatched in some browsers but first
// history route not updated since async guard at the same time.
e.current===g&&i===e._startLocation||e.transitionTo(i,(function(e){r&&ce(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,(function(e){ye(_(r.base+e.fullPath)),ce(r.router,e,i,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,(function(e){Ae(_(r.base+e.fullPath)),ce(r.router,e,i,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Re(this.base)!==this.current.fullPath){var t=_(this.base+this.current.fullPath);e?ye(t):Ae(t)}},t.prototype.getCurrentLocation=function(){return Re(this.base)},t}(De);function Re(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();
// base="/a" shouldn't turn path="/app" into "/a/pp"
// https://github.com/vuejs/vue-router/issues/3555
// so we ensure the trailing slash in the base
return!e||n!==r&&0!==n.indexOf(_(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}
var je=function(e){function t(t,n,r){e.call(this,t,n),
// check history fallback deeplinking
r&&function(e){var t=Re(e);if(!/^\/#/.test(t))return window.location.replace(_(e+"/#"+t)),!0}(this.base)||Ne()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,
// this is delayed until the app mounts
// to avoid the hashchange listener being fired too early
t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=ve&&t;n&&this.listeners.push(se());var r=function(){var t=e.current;Ne()&&e.transitionTo(Fe(),(function(r){n&&ce(e.router,r,t,!0),ve||Ue(r.fullPath)}))},i=ve?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,(function(e){He(e.fullPath),ce(r.router,e,i,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,(function(e){Ue(e.fullPath),ce(r.router,e,i,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Fe()!==t&&(e?He(t):Ue(t))},t.prototype.getCurrentLocation=function(){return Fe()},t}(De);function Ne(){var e=Fe();return"/"===e.charAt(0)||(Ue("/"+e),!1)}function Fe(){
// We can't use window.location.hash here because it's not
// consistent across browsers - Firefox will pre-decode it!
var e=window.location.href,t=e.indexOf("#");
// empty path
return t<0?"":e=e.slice(t+1)}function ze(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function He(e){ve?ye(ze(e)):window.location.hash=e}function Ue(e){ve?Ae(ze(e)):window.location.replace(ze(e))}
var Ge=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ee(e,be.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){
// noop
},t}(De),Ve=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ve&&!1!==e.fallback,this.fallback&&(t="hash"),K||(t="abstract"),this.mode=t,t){case"history":this.history=new Qe(this,e.base);break;case"hash":this.history=new je(this,e.base,this.fallback);break;case"abstract":this.history=new Ge(this,e.base)}},We={currentRoute:{configurable:!0}};
Ve.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},We.currentRoute.get=function(){return this.history&&this.history.current},Ve.prototype.init=function(e/* Vue component instance */){var t=this;
// main app previously initialized
// return as we don't need to set up new history listener
if(this.apps.push(e),
// set up app destroyed handler
// https://github.com/vuejs/vue-router/issues/2639
e.$once("hook:destroyed",(function(){
// clean out app from this.apps array once destroyed
var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),
// ensure we still have a main app or null if no apps
// we do not release the router so it can be reused
t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof Qe||n instanceof je){var r=function(e){n.setupListeners(),function(e){var r=n.current,i=t.options.scrollBehavior;ve&&i&&"fullPath"in e&&ce(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Ve.prototype.beforeEach=function(e){return Ye(this.beforeHooks,e)},Ve.prototype.beforeResolve=function(e){return Ye(this.resolveHooks,e)},Ve.prototype.afterEach=function(e){return Ye(this.afterHooks,e)},Ve.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ve.prototype.onError=function(e){this.history.onError(e)},Ve.prototype.push=function(e,t,n){var r=this;
// $flow-disable-line
if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},Ve.prototype.replace=function(e,t,n){var r=this;
// $flow-disable-line
if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},Ve.prototype.go=function(e){this.history.go(e)},Ve.prototype.back=function(){this.go(-1)},Ve.prototype.forward=function(){this.go(1)},Ve.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Ve.prototype.resolve=function(e,t,n){var r=U(e,t=t||this.history.current,n,this),i=this.match(r,t),a=i.redirectedFrom||i.fullPath,o=function(e,t,n){var r="hash"===n?"#"+t:t;return e?_(e+"/"+r):r}
// We cannot remove this as it would be a breaking change
(this.history.base,a,this.mode);return{location:r,route:i,href:o,
// for backwards compat
normalizedTo:r,resolved:i}},Ve.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ve.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Ve.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ve.prototype,We);var qe=Ve;function Ye(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Ve.install=function e(t){if(!e.installed||G!==t){e.installed=!0,G=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",w),t.component("RouterLink",W);var i=t.config.optionMergeStrategies;
// use the same hook merging strategy for route hooks
i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ve.version="3.6.5",Ve.isNavigationFailure=Ee,Ve.NavigationFailureType=be,Ve.START_LOCATION=g,K&&window.Vue&&window.Vue.use(Ve)},
/***/"8cc4":
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_isPrototype.js
var r=n("a724"),i=n("53a2"),a=Object(i.a)(Object.keys,Object),o=Object.prototype.hasOwnProperty;
// EXTERNAL MODULE: ./node_modules/lodash-es/_overArg.js
/* harmony default export */t.a=
/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){if(!Object(r.a)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t};
/***/},
/***/"8cdf":
/***/function(e,t,n){"use strict";
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayFilter.js
/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
/* harmony default export */var r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a},i=n("589e"),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i.a;
// EXTERNAL MODULE: ./node_modules/lodash-es/stubArray.js
t.a=s},
/***/"8d1d":
/***/function(e,t,n){"use strict";
/* unused harmony export normalizeLineDash */
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("6d8b");function i(e){var t,n,i=e.style,a=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:Object(r.isNumber)(t)?[t]:Object(r.isArray)(t)?t:null:null),o=i.lineDashOffset;if(a){var s=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(a=Object(r.map)(a,(function(e){return e/s})),o/=s)}return[a,o]}
/***/},
/***/"8d32":
/***/function(e,t,n){"use strict";
/* unused harmony export ArcShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},o=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(i.b);
/* harmony import */o.prototype.type="arc",
/* harmony default export */t.a=o},
/***/"8d74":
/***/function(e,t,n){var r=n("4cef"),i=/^\s+/;
/** Used to match leading whitespace. */e.exports=
/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},
/***/"8d87":
/***/function(e,t,n){var r=n("e171"),i=n("fb32"),a=n("5d6f"),o=n("019f"),s=n("2fb2"),c=n("f97f"),l=Object.getOwnPropertyDescriptor;t.f=n("c94e")?l:function(e,t){if(e=a(e),t=o(t,!0),c)try{return l(e,t)}catch(e){/* empty */}if(s(e,t))return i(!r.f.call(e,t),e[t])}},
/***/"8db3":
/***/function(e,t,n){var r=n("47f5");
/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},
/***/"8de2":
/***/function(e,t,n){var r=n("8eeb"),i=n("9934");
/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */e.exports=function(e){return r(e,i(e))}},
/***/"8df4":
/***/function(e,t,n){"use strict";var r=n("7a77");
/**
 * A `CancelToken` is an object that can be used to request cancellation of an operation.
 *
 * @class
 * @param {Function} executor The executor function.
 */function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}
/**
 * Throws a `Cancel` if cancellation has been requested.
 */i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},
/**
 * Returns an object that contains a new `CancelToken` and a function that, when called,
 * cancels the `CancelToken`.
 */
i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},
/***/"8df8":
/***/function(e,t,n){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(e){e||(e={});var t=e.ua;if(t||"undefined"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!=typeof t)return!1;var n=e.tablet?i.test(t):r.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(n=!0),n}
/***/},
/***/"8e16":
/***/function(e,t,n){"use strict";var r=n("7282"),i=n("cb27");e.exports=r(i.proto,"size","get")||function(e){return e.size}},
/***/"8e43":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("6d8b"),i=0,a=/** @class */function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++i}return e.createByAxisModel=function(t){var n=t.option,i=n.data,a=i&&Object(r.map)(i,o);return new e({categories:a,needCollect:!a,
// deduplication is default in axis.
deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){
// @ts-ignore
return this._getOrCreateMap().get(e)},
/**
   * @return The ordinal. If not found, return NaN.
   */
e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;
// The value of category dim can be the index of the given category set.
// This feature is only supported when !needCollect, because we should
// consider a common case: a value is 2017, which is a number but is
// expected to be tread as a category. This case usually happen in dataset,
// where it happent to be no need of the index feature.
if(!Object(r.isString)(e)&&!n)return e;
// Optimize for the scenario:
// category is ['2012-01-01', '2012-01-02', ...], where the input
// data has been ensured not duplicate and is large data.
// Notice, if a dataset dimension provide categroies, usually echarts
// should remove duplication except user tell echarts dont do that
// (set axis.deduplication = false), because echarts do not know whether
// the values in the category dimension has duplication (consider the
// parallel-aqi example)
if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();
// @ts-ignore
return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,
// @ts-ignore
i.set(e,t)):t=NaN),t},
// Consider big data, do not create map until needed.
e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(r.createHashMap)(this.categories))},e}();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function o(e){return Object(r.isObject)(e)&&null!=e.value?e.value:e+""}
/* harmony default export */t.a=a},
/***/"8e8e":
/***/function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},
/***/"8e95":
/***/function(e,t,n){var r=n("c195");e.exports=new r},
/***/"8eeb":
/***/function(e,t,n){var r=n("32b3"),i=n("872a");
/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),o?i(n,l,u):r(n,l,u)}return n}},
/***/"8f47":
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.transition=c,t.injectNewCurve=
/**
 * @description Inject new curve into curves as config
 * @param {Any} key     The key of curve
 * @param {Array} curve Bezier curve data
 * @return {Undefined} No return
 */
function(e,t){if(!e||!t)return;o.default.set(e,t)},t.default=void 0;var i=r(n("278c")),a=r(n("7037")),o=r(n("df83")),s="linear";
/**
 * @description Get the N-frame animation state by the start and end state
 *              of the animation and the easing curve
 * @param {String|Array} tBC               Easing curve name or data
 * @param {Number|Array|Object} startState Animation start state
 * @param {Number|Array|Object} endState   Animation end state
 * @param {Number} frameNum                Number of Animation frames
 * @param {Boolean} deep                   Whether to use recursive mode
 * @return {Array|Boolean} State of each frame of the animation (Invalid input will return false)
 */
function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!l.apply(void 0,arguments))return!1;try{
// Get the transition bezier curve
var c=
/**
 * @description Get the transition bezier curve
 * @param {String} tBC Name of transition bezier curve
 * @return {Array} Bezier curve data
 */
function(e){var t="";t=o.default.has(e)?o.default.get(e):e instanceof Array?e:o.default.get(s);return t}
/**
 * @description Get the progress of each frame state
 * @param {Array} bezierCurve Transition bezier curve
 * @param {Number} frameNum   Number of transition frames
 * @return {Array} Progress of each frame state
 */(e),h=function(e,t){var n=1/(t-1),r=new Array(t).fill(0).map((function(e,t){return t*n})),a=r.map((function(t){
/**
 * @description Get the progress of the corresponding frame according to t
 * @param {Array} bezierCurve Transition bezier curve
 * @param {Number} t          Current frame t
 * @return {Number} Progress of current frame
 */
return function(e,t){var n=
/**
 * @description Get the corresponding sub-curve according to t
 * @param {Array} bezierCurve Transition bezier curve
 * @param {Number} t          Current frame t
 * @return {Array} Sub-curve of t
 */
function(e,t){var n=e.length-1,r="",i="";e.findIndex((function(a,o){if(o!==n){r=a,i=e[o+1];var s=r[0][0],c=i[0][0];return t>=s&&t<c}}));var a=r[0],o=r[2]||r[0],s=i[1]||i[0],c=i[0];return[a,o,s,c]}
/**
 * @description Get local t based on t and sub-curve
 * @param {Array} bezierCurve Sub-curve
 * @param {Number} t          Current frame t
 * @return {Number} local t of sub-curve
 */(e,t),r=function(e,t){var n=e[0][0],r=e[3][0],i=t-n;return i/(r-n)}
/**
 * @description Get the curve progress of t
 * @param {Array} bezierCurve Sub-curve
 * @param {Number} t          Current frame t
 * @return {Number} Progress of current frame
 */(n,t);return function(e,t){var n=(0,i.default)(e,4),r=(0,i.default)(n[0],2)[1],a=(0,i.default)(n[1],2)[1],o=(0,i.default)(n[2],2)[1],s=(0,i.default)(n[3],2)[1],c=Math.pow,l=1-t,u=r*c(l,3),h=3*a*t*c(l,2),f=3*o*c(t,2)*l,d=s*c(t,3);return 1-(u+h+f+d)}
/**
 * @description Get transition state according to frame progress
 * @param {Any} startState   Transition start state
 * @param {Any} endState     Transition end state
 * @param {Array} frameState Frame state progress
 * @return {Array} Transition frame state
 */(n,r)}(e,t)}));return a}(c,r);// Get the progress of each frame state
// If the recursion mode is not enabled or the state type is Number, the shallow state calculation is performed directly.
return a&&"number"!=typeof n?f(t,n,h):u(t,n,h)}catch(e){return[n]}}
/**
 * @description Check if the parameters are legal
 * @param {String} tBC      Name of transition bezier curve
 * @param {Any} startState  Transition start state
 * @param {Any} endState    Transition end state
 * @param {Number} frameNum Number of transition frames
 * @return {Boolean} Is the parameter legal
 */function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!1===t||!1===n||!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:30))return!1;if((0,a.default)(t)!==(0,a.default)(n))return!1;var r=(0,a.default)(n);return!("string"===r||"boolean"===r||!e.length)&&(o.default.has(e),!0)}function u(e,t,n){var r="object";return"number"==typeof e&&(r="number"),e instanceof Array&&(r="array"),"number"===r?
/**
 * @description Get the transition data of the number type
 * @param {Number} startState Transition start state
 * @param {Number} endState   Transition end state
 * @param {Array} frameState  Frame state progress
 * @return {Array} Transition frame state
 */
function(e,t,n){var r=t-e;return n.map((function(t){return e+r*t}))}
/**
 * @description Get the transition data of the array type
 * @param {Array} startState Transition start state
 * @param {Array} endState   Transition end state
 * @param {Array} frameState Frame state progress
 * @return {Array} Transition frame state
 */(e,t,n):"array"===r?h(e,t,n):"object"===r?
/**
 * @description Get the transition data of the object type
 * @param {Object} startState Transition start state
 * @param {Object} endState   Transition end state
 * @param {Array} frameState  Frame state progress
 * @return {Array} Transition frame state
 */
function(e,t,n){var r=Object.keys(t),i=r.map((function(t){return e[t]})),a=r.map((function(e){return t[e]})),o=h(i,a,n);return o.map((function(e){var t={};return e.forEach((function(e,n){return t[r[n]]=e})),t}))}
/**
 * @description Get the transition state data by recursion
 * @param {Array|Object} startState Transition start state
 * @param {Array|Object} endState   Transition end state
 * @param {Array} frameState        Frame state progress
 * @return {Array} Transition frame state
 */(e,t,n):n.map((function(e){return t}))}function h(e,t,n){var r=t.map((function(t,n){return"number"==typeof t&&t-e[n]}));return n.map((function(n){return r.map((function(r,i){return!1===r?t[i]:e[i]+r*n}))}))}function f(e,t,n){var r=u(e,t,n),i=function(i){var o=e[i],s=t[i];if("object"!==(0,a.default)(s))return"continue";var c=f(o,s,n);r.forEach((function(e,t){return e[i]=c[t]}))};for(var o in t)i(o);return r}var d=c;t.default=d},
/***/"8f7a":
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
n("f948")("WeakMap");
/***/},
/***/"8f83":
/***/function(e,t,n){
// 26.1.12 Reflect.preventExtensions(target)
var r=n("f083"),i=n("d77f"),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return a&&a(e),!0}catch(e){return!1}}})},
/***/"8fc4":
/***/function(e,t,n){var r=n("911a"),i=n("e5aa"),a=n("c786"),o=n("d77f"),s=n("6373"),c=n("a37b"),l={},u={};(t=e.exports=function(e,t,n,h,f){var d,p,g,m,v=f?function(){return e}:c(e),y=r(n,h,t?2:1),A=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");
// fast case for arrays with default iterator
if(a(v)){for(d=s(e.length);d>A;A++)if((m=t?y(o(p=e[A])[0],p[1]):y(e[A]))===l||m===u)return m}else for(g=v.call(e);!(p=g.next()).done;)if((m=i(g,y,p.value,t))===l||m===u)return m}).BREAK=l,t.RETURN=u},
/***/9020:
/***/function(e,t){
/**
 * Delegate to handle a media query being matched and unmatched.
 *
 * @param {object} options
 * @param {function} options.match callback for when the media query is matched
 * @param {function} [options.unmatch] callback for when the media query is unmatched
 * @param {function} [options.setup] one-time callback triggered the first time a query is matched
 * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
 * @constructor
 */
function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,
/**
     * coordinates setup of the handler
     *
     * @function
     */
setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},
/**
     * coordinates setup and triggering of the handler
     *
     * @function
     */
on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},
/**
     * coordinates the unmatch event for the handler
     *
     * @function
     */
off:function(){this.options.unmatch&&this.options.unmatch()},
/**
     * called when a handler is to be destroyed.
     * delegates to the destroy or unmatch callbacks, depending on availability.
     *
     * @function
     */
destroy:function(){this.options.destroy?this.options.destroy():this.off()},
/**
     * determines equality by reference.
     * if object is supplied compare options, if function, compare match callback
     *
     * @function
     * @param {object || function} [target] the target for comparison
     */
equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},
/***/"90d8":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("1a2d"),a=n("3a9b"),o=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!a(s,e)?t:r(o,e)}},
/***/"90e3":
/***/function(e,t,n){"use strict";var r=n("e330"),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},
/***/"90ea":
/***/function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("c1df"));
/***/},
/***/"910d":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("825a"),s=n("46c4"),c=n("c5cc"),l=n("9bdd"),u=n("c430"),h=c((function(){for(var e,t,n=this.iterator,r=this.predicate,a=this.next;;){if(e=o(i(a,n)),this.done=!!e.done)return;if(t=e.value,l(n,r,[t,this.counter++],!0))return t}}));
// `Iterator.prototype.filter` method
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
r({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(e){return o(this),a(e),new h(s(this),{predicate:e})}})},
/***/9112:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),a=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},
/***/"911a":
/***/function(e,t,n){
// optional / simple context binding
var r=n("2ce8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},
/***/9141:
/***/function(e,t,n){var r=n("ef08").document;e.exports=r&&r.documentElement},
/***/9152:
/***/function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=f,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=l}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*c-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+d]=255&o,d+=p,o/=256,l-=8);e[n+d-p]|=128*g}
/***/},
/***/9165:
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=n("ed60"),o=r.has,s=r.get,c=r.key,l=function(e,t,n){if(o(e,t,n))return s(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r.exp({getMetadata:function(e,t/* , targetKey */){return l(e,i(t),arguments.length<3?void 0:c(arguments[2]))}})},
/***/"91a5":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s;n.d(t,"a",(function(){return ie})),
/* harmony export (binding) */n.d(t,"b",(function(){return ae}));var c={Webkit:"-webkit-",Moz:"-moz-",
// IE did it wrong again ...
ms:"-ms-",O:"-o-"};function l(){if(void 0!==s)return s;s="";var e=document.createElement("p").style;for(var t in c)t+"Transform"in e&&(s=t);return s}function u(){return l()?"".concat(l(),"TransitionProperty"):"transitionProperty"}function h(){return l()?"".concat(l(),"Transform"):"transform"}function f(e,t){var n=u();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function d(e,t){var n=h();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var p,g=/matrix\((.*)\)/,m=/matrix3d\((.*)\)/;
// https://stackoverflow.com/a/3485654/3040605
function v(e){var t=e.style.display;e.style.display="none",e.offsetHeight,// eslint-disable-line
e.style.display=t}function y(e,t,n){var r=n;if("object"!==a(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):p(e,t);for(var i in t)t.hasOwnProperty(i)&&y(e,i,t[i])}function A(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var i=e.document;
// ie6,7,8 standard mode
"number"!=typeof(n=i.documentElement[r])&&(
// quirks mode
n=i.body[r])}return n}function b(e){return A(e)}function w(e){return A(e,!0)}function x(e){var t=function(e){var t,n,r,i=e.ownerDocument,a=i.body,o=i&&i.documentElement;
// 根据 GBS 最新数据，A-Grade Browsers 都已支持 getBoundingClientRect 方法，不用再考虑传统的实现方式
return t=e.getBoundingClientRect(),
// 注：jQuery 还考虑减去 docElem.clientLeft/clientTop
// 但测试发现，这样反而会导致当 html 和 body 有边距/边框样式时，获取的值不正确
// 此外，ie6 会忽略 html 的 margin 值，幸运地是没有谁会去设置 html 的 margin
n=Math.floor(t.left),r=Math.floor(t.top),{left:
// In IE, most of the time, 2 extra pixels are added to the top and left
// due to the implicit 2-pixel inset border.  In IE6/7 quirks mode and
// IE6 standards mode, this border can be overridden by setting the
// document element's border to zero -- thus, we cannot rely on the
// offset always being 2 pixels.
// In quirks mode, the offset can be determined by querying the body's
// clientLeft/clientTop, but in standards mode, it is found by querying
// the document element's clientLeft/clientTop.  Since we already called
// getClientBoundingRect we have already forced a reflow, so it is not
// too expensive just to query them all.
// ie 下应该减去窗口的边框吧，毕竟默认 absolute 都是相对窗口定位的
// 窗口边框标准是设 documentElement ,quirks 时设置 body
// 最好禁止在 body 和 html 上边框 ，但 ie < 9 html 默认有 2px ，减去
// 但是非 ie 不可能设置窗口边框，body html 也不是窗口 ,ie 可以通过 html,body 设置
// 标准 ie 下 docElem.clientTop 就是 border-top
// ie7 html 即窗口边框改变不了。永远为 2
// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框，即使设了 border-top 也为 0
n-=o.clientLeft||a.clientLeft||0,top:r-=o.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=b(r),t.top+=w(r),t}
/**
 * A crude way of determining if an object is a window
 * @member util
 */function C(e){
// must use == for ie8
/* eslint eqeqeq:0 */
return null!=e&&e==e.window}function _(e){return C(e)?e.document:9===e.nodeType?e:e.ownerDocument}var I=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),E=/^(top|right|bottom|left)$/,k="currentStyle",S="runtimeStyle",B="left";function M(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function T(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}
// 设置 elem 相对 elem.ownerDocument 的坐标
function O(e,t,n){
// set position first, in-case top/left are set even on static elem
"static"===y(e,"position")&&(e.style.position="relative");var r=-999,i=-999,a=M("left",n),o=M("top",n),s=T(a),c=T(o);"left"!==a&&(r=999),"top"!==o&&(i=999);var l,h="",d=x(e);("left"in t||"top"in t)&&(h=(l=e).style.transitionProperty||l.style[u()]||"",f(e,"none")),"left"in t&&(e.style[s]="",e.style[a]="".concat(r,"px")),"top"in t&&(e.style[c]="",e.style[o]="".concat(i,"px")),
// force relayout
v(e);var p=x(e),g={};for(var m in t)if(t.hasOwnProperty(m)){var A=M(m,n),b="left"===m?r:i,w=d[m]-p[m];g[A]=A===m?b+w:b-w}y(e,g),
// force relayout
v(e),("left"in t||"top"in t)&&f(e,h);var C={};for(var _ in t)if(t.hasOwnProperty(_)){var I=M(_,n),E=t[_]-d[_];C[I]=_===I?g[I]+E:g[I]-E}y(e,C)}function D(e,t){var n=x(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(h());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),i={x:r.x,y:r.y};"left"in t&&(i.x=r.x+t.left-n.left),"top"in t&&(i.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(h());if(r&&"none"!==r){var i,a=r.match(g);a?((i=(a=a[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,i[5]=t.y,d(e,"matrix(".concat(i.join(","),")"))):((i=r.match(m)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,i[13]=t.y,d(e,"matrix3d(".concat(i.join(","),")")))}else d(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,i)}function P(e,t){for(var n=0;n<e.length;n++)t(e[n])}function L(e){return"border-box"===p(e,"boxSizing")}"undefined"!=typeof window&&(p=window.getComputedStyle?function(e,t,n){var r=n,i="",a=_(e);
// https://github.com/kissyteam/kissy/issues/61
return(r=r||a.defaultView.getComputedStyle(e,null))&&(i=r.getPropertyValue(t)||r[t]),i}:function(e,t){
// currentStyle maybe null
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
var n=e[k]&&e[k][t];
// 当 width/height 设置为百分比时，通过 pixelLeft 方式转换的 width/height 值
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
// 在 ie 下不对，需要直接用 offset 方式
// borderWidth 等值也有问题，但考虑到 borderWidth 设为百分比的概率很小，这里就不考虑了
// From the awesome hack by Dean Edwards
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
// If we're not dealing with a regular pixel number
// but a number that has a weird ending, we need to convert it to pixels
// exclude left right for relativity
if(I.test(n)&&!E.test(t)){
// Remember the original values
var r=e.style,i=r[B],a=e[S][B];
// prevent flashing of content
e[S][B]=e[k][B],
// Put in the new values to get a computed value out
r[B]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",
// Revert the changed values
r[B]=i,e[S][B]=a}return""===n?"auto":n});var Q=["margin","border","padding"];function R(e,t,n){var r,i,a,o=0;for(i=0;i<t.length;i++)if(r=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===r?"".concat(r).concat(n[a],"Width"):r+n[a],o+=parseFloat(p(e,s))||0}return o}var j={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};
/*
 得到元素的大小信息
 @param elem
 @param name
 @param {String} [extra]  'padding' : (css width) + padding
 'border' : (css width) + padding + border
 'margin' : (css width) + padding + border + margin
 */
function N(e,t,n){var r=n;if(C(e))return"width"===t?j.viewportWidth(e):j.viewportHeight(e);if(9===e.nodeType)return"width"===t?j.docWidth(e):j.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),o=L(e),s=0;(null==a||a<=0)&&(a=void 0,(null==(
// Fall back to computed then un computed css if necessary
s=p(e,t))||Number(s)<0)&&(s=e.style[t]||0),
// Normalize '', auto, and prepare for extra
s=Math.floor(parseFloat(s))||0),void 0===r&&(r=o?1:-1);var c=void 0!==a||o,l=a||s;return-1===r?c?l-R(e,["border","padding"],i):s:c?1===r?l:l+(2===r?-R(e,["border"],i):R(e,["margin"],i)):s+R(e,Q.slice(r),i)}P(["Width","Height"],(function(e){j["doc".concat(e)]=function(t){var n=t.document;return Math.max(
// firefox chrome documentElement.scrollHeight< body.scrollHeight
// ie standard mode : documentElement.scrollHeight> body.scrollHeight
n.documentElement["scroll".concat(e)],
// quirks : documentElement.scrollHeight 最大等于可视窗口多一点？
n.body["scroll".concat(e)],j["viewport".concat(e)](n))},j["viewport".concat(e)]=function(t){
// pc browser includes scrollbar in window.innerWidth
var n="client".concat(e),r=t.document,i=r.body,a=r.documentElement[n];
// 标准模式取 documentElement
// backcompat 取 body
return"CSS1Compat"===r.compatMode&&a||i&&i[n]||a}}));var F={position:"absolute",visibility:"hidden",display:"block"};
// fix #119 : https://github.com/kissyteam/kissy/issues/119
function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];
// in case elem is window
// elem.offsetWidth === undefined
return 0!==i.offsetWidth?r=N.apply(void 0,t):function(e,t,n){var r,i={},a=e.style;
// Remember the old values, and insert the new ones
for(r in t)t.hasOwnProperty(r)&&(i[r]=a[r],a[r]=t[r]);
// Revert the old values
for(r in n.call(e),t)t.hasOwnProperty(r)&&(a[r]=i[r])}(i,F,(function(){r=N.apply(void 0,t)})),r}function H(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}P(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);j["outer".concat(t)]=function(t,n){return t&&z(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];j[e]=function(t,r){var i=r;return void 0!==i?t?(L(t)&&(i+=R(t,["padding","border"],n)),y(t,e,i)):void 0:t&&z(t,e,-1)}}));var U={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:_,offset:function(e,t,n){if(void 0===t)return x(e);!function(e,t,n){if(n.ignoreShake){var r=x(e),i=r.left.toFixed(0),a=r.top.toFixed(0),o=t.left.toFixed(0),s=t.top.toFixed(0);if(i===o&&a===s)return}n.useCssRight||n.useCssBottom?O(e,t,n):n.useCssTransform&&h()in document.body.style?D(e,t):O(e,t,n)}(e,t,n||{})},isWindow:C,each:P,css:y,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:H,getWindowScrollLeft:function(e){return b(e)},getWindowScrollTop:function(e){return w(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)U.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};H(U,j);
/**
 * 得到会导致元素显示不全的祖先元素
 */
var G=U.getParent;function V(e){if(U.isWindow(e)||9===e.nodeType)return null;
// ie 这个也不是完全可行
/*
   <div style="width: 50px;height: 100px;overflow: hidden">
   <div style="width: 50px;height: 100px;position: relative;" id="d6">
   元素 6 高 100px 宽 50px<br/>
   </div>
   </div>
   */
// element.offsetParent does the right thing in ie7 and below. Return parent with layout!
//  In other browsers it only includes elements with position absolute, relative or
// fixed, not elements with overflow set to auto or scroll.
//        if (UA.ie && ieMode < 8) {
//            return element.offsetParent;
//        }
// 统一的 offsetParent 方法
var t,n=U.getDocument(e).body,r=U.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:G(e);for(t=G(e);t&&t!==n&&9!==t.nodeType;t=G(t))if("static"!==(r=U.css(t,"position")))return t;return null}var W=U.getParent;
/**
 * 获得元素的显示部分的区域
 */
function q(e,t){
// Determine the size of the visible rect by climbing the dom accounting for
// all scrollable containers.
for(var n={left:0,right:1/0,top:0,bottom:1/0},r=V(e),i=U.getDocument(e),a=i.defaultView||i.parentWindow,o=i.body,s=i.documentElement;r;){
// clientWidth is zero for inline block elements in ie.
if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||
// body may have overflow set on it, yet we still get the entire
// viewport. In some browsers, el.offsetParent may be
// document.documentElement, so check for that too.
r===o||r===s||"visible"===U.css(r,"overflow")){if(r===o||r===s)break}else{var c=U.offset(r);
// add border
c.left+=r.clientLeft,c.top+=r.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,
// consider area without scrollBar
c.left+r.clientWidth),n.bottom=Math.min(n.bottom,c.top+r.clientHeight),n.left=Math.max(n.left,c.left)}r=V(r)}
// Set element position to fixed
// make sure absolute element itself don't affect it's visible area
// https://github.com/ant-design/ant-design/issues/7601
var l=null;U.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===U.css(e,"position")&&(e.style.position="fixed"));var u=U.getWindowScrollLeft(a),h=U.getWindowScrollTop(a),f=U.viewportWidth(a),d=U.viewportHeight(a),p=s.scrollWidth,g=s.scrollHeight,m=window.getComputedStyle(o);if("hidden"===m.overflowX&&(p=a.innerWidth),"hidden"===m.overflowY&&(g=a.innerHeight),
// Reset element position after calculate the visible area
e.style&&(e.style.position=l),t||function(e){if(U.isWindow(e)||9===e.nodeType)return!1;var t=U.getDocument(e),n=t.body,r=null;for(r=W(e);
// 修复元素位于 document.documentElement 下导致崩溃问题
r&&r!==n&&r!==t;r=W(r))if("fixed"===U.css(r,"position"))return!0;return!1}(e))
// Clip by viewport's size.
n.left=Math.max(n.left,u),n.top=Math.max(n.top,h),n.right=Math.min(n.right,u+f),n.bottom=Math.min(n.bottom,h+d);else{
// Clip by document's size.
var v=Math.max(p,u+f);n.right=Math.min(n.right,v);var y=Math.max(g,h+d);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Y(e){var t,n,r;if(U.isWindow(e)||9===e.nodeType){var i=U.getWindow(e);t={left:U.getWindowScrollLeft(i),top:U.getWindowScrollTop(i)},n=U.viewportWidth(i),r=U.viewportHeight(i)}else t=U.offset(e),n=U.outerWidth(e),r=U.outerHeight(e);return t.width=n,t.height=r,t}
/**
 * 获取 node 上的 align 对齐点 相对于页面的坐标
 */function K(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return"c"===n?s+=a/2:"b"===n&&(s+=a),"c"===r?o+=i/2:"r"===r&&(o+=i),{left:o,top:s}}function $(e,t,n,r,i){var a=K(t,n[1]),o=K(e,n[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}
/**
 * align dom node flexibly
 * @author yiminghe@gmail.com
 */
// http://yiminghe.iteye.com/blog/1124720
function J(e,t,n){return e.left<n.left||e.left+t.width>n.right}function X(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Z(e,t,n){var r=[];return U.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function ee(e,t){return e[t]=-e[t],e}function te(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function ne(e,t){e[0]=te(e[0],t.width),e[1]=te(e[1],t.height)}
/**
 * @param el
 * @param tgtRegion 参照节点所占的区域: { left, top, width, height }
 * @param align
 */function re(e,t,n,r){var i=n.points,a=n.offset||[0,0],o=n.targetOffset||[0,0],s=n.overflow,c=n.source||e;a=[].concat(a),o=[].concat(o);var l={},u=0,h=q(c,!(!(s=s||{})||!s.alwaysByViewport)),f=Y(c);
// 将 offset 转换成数值，支持百分比
ne(a,f),ne(o,t);
// 当前节点将要被放置的位置
var d=$(f,t,i,a,o),p=U.merge(f,d);
// 当前节点将要所处的区域
// 如果可视区域不能完全放置当前节点时允许调整
if(h&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&J(d,f,h)){
// 对齐位置反下
var g=Z(i,/[lr]/gi,{l:"r",r:"l"}),m=ee(a,0),v=ee(o,0);
// 偏移量也反下
(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})($(f,t,g,m,v),f,h)||(u=1,i=g,a=m,o=v)}if(s.adjustY&&X(d,f,h)){
// 对齐位置反下
var y=Z(i,/[tb]/gi,{t:"b",b:"t"}),A=ee(a,1),b=ee(o,1);
// 偏移量也反下
(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})($(f,t,y,A,b),f,h)||(u=1,i=y,a=A,o=b)}
// 如果失败，重新计算当前节点将要被放置的位置
u&&(d=$(f,t,i,a,o),U.mix(p,d));var w=J(d,f,h),x=X(d,f,h);
// 检查反下后的位置是否可以放下了，如果仍然放不下：
// 1. 复原修改过的定位参数
if(w||x){var C=i;
// 重置对应部分的翻转逻辑
w&&(C=Z(i,/[lr]/gi,{l:"r",r:"l"})),x&&(C=Z(i,/[tb]/gi,{t:"b",b:"t"})),i=C,a=n.offset||[0,0],o=n.targetOffset||[0,0]}
// 2. 只有指定了可以调整当前方向才调整
l.adjustX=s.adjustX&&w,l.adjustY=s.adjustY&&x,
// 确实要调整，甚至可能会调整高度宽度
(l.adjustX||l.adjustY)&&(p=function(e,t,n,r){var i=U.clone(e),a={width:t.width,height:t.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),
// Left edge inside and right edge outside viewport, try to resize it.
r.resizeWidth&&i.left>=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),
// Right edge outside viewport, try to move it.
r.adjustX&&i.left+a.width>n.right&&(
// 保证左边界和可视区域左边界对齐
i.left=Math.max(n.right-a.width,n.left)),
// Top edge outside viewport, try to move it.
r.adjustY&&i.top<n.top&&(i.top=n.top),
// Top edge inside and bottom edge outside viewport, try to resize it.
r.resizeHeight&&i.top>=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),
// Bottom edge outside viewport, try to move it.
r.adjustY&&i.top+a.height>n.bottom&&(
// 保证上边界和可视区域上边界对齐
i.top=Math.max(n.bottom-a.height,n.top)),U.mix(i,a)}(d,f,h,l))}
// need judge to in case set fixed with in css on height auto element
return p.width!==f.width&&U.css(c,"width",U.width(c)+p.width-f.width),p.height!==f.height&&U.css(c,"height",U.height(c)+p.height-f.height),
// https://github.com/kissyteam/kissy/issues/190
// 相对于屏幕位置没变，而 left/top 变了
// 例如 <div 'relative'><el absolute></div>
U.offset(c,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:a,targetOffset:o,overflow:l}}
/**
 *  2012-04-26 yiminghe@gmail.com
 *   - 优化智能对齐算法
 *   - 慎用 resizeXX
 *
 *  2011-07-13 yiminghe@gmail.com note:
 *   - 增加智能对齐，以及大小调整选项
 **/function ie(e,t,n){var r=n.target||t,i=Y(r),a=!function(e,t){var n=q(e,t),r=Y(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return re(e,i,n,a)}
/**
 * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
 * If client position provided, will internal convert to page position.
 */
function ae(e,t,n){var r,a,o=U.getDocument(e),s=o.defaultView||o.parentWindow,c=U.getWindowScrollLeft(s),l=U.getWindowScrollTop(s),u=U.viewportWidth(s),h=U.viewportHeight(s),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:a="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=r>=0&&r<=c+u&&a>=0&&a<=l+h,p=[n.points[0],"cc"];return re(e,f,i(i({},n),{},{points:p}),d)}
/* unused harmony default export */ie.__getOffsetParent=V,ie.__getVisibleRectForElement=q},
/***/"91e9":
/***/function(e,t){e.exports=
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function(e,t){return function(n){return e(t(n))}}},
/***/9263:
/***/function(e,t,n){"use strict";
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
/* eslint-disable regexp/no-useless-quantifier -- testing */var r,i,a=n("c65b"),o=n("e330"),s=n("577e"),c=n("ad6d"),l=n("9f7f"),u=n("5692"),h=n("7c73"),f=n("69f3").get,d=n("fce3"),p=n("107c"),g=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=o("".charAt),A=o("".indexOf),b=o("".replace),w=o("".slice),x=(i=/b*/g,a(m,r=/a/,"a"),a(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),C=l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||C||d||p)&&(v=function(e){var t,n,r,i,o,l,u,d=this,p=f(d),I=s(e),E=p.raw;if(E)return E.lastIndex=d.lastIndex,t=a(v,E,I),d.lastIndex=E.lastIndex,t;var k=p.groups,S=C&&d.sticky,B=a(c,d),M=d.source,T=0,O=I;if(S&&(B=b(B,"y",""),-1===A(B,"g")&&(B+="g"),O=w(I,d.lastIndex),
// Support anchored sticky behavior.
d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(I,d.lastIndex-1))&&(M="(?: "+M+")",O=" "+O,T++),
// ^(? + rx + ) is needed, in combination with some str slicing, to
// simulate the 'y' flag.
n=new RegExp("^(?:"+M+")",B)),_&&(n=new RegExp("^"+M+"$(?!\\s)",B)),x&&(r=d.lastIndex),i=a(m,S?n:d,O),S?i?(i.input=w(i.input,T),i[0]=w(i[0],T),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),_&&i&&i.length>1&&
// Fix browsers whose `exec` methods don't consistently return `undefined`
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
a(g,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&k)for(i.groups=l=h(null),o=0;o<k.length;o++)l[(u=k[o])[0]]=i[u[1]];return i}),e.exports=v},
/***/"928a":
/***/function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e};
/***/},
/***/"92f0":
/***/function(e,t,n){var r=n("1a14").f,i=n("9c0e"),a=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},
/***/"92fa":
/***/function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}
/***/e.exports=function(e){return e.reduce((function(e,t){var i,a,o,s,c;for(o in t)if(i=e[o],a=t[o],i&&n.test(o))if(
// normalize class
"class"===o&&("string"==typeof i&&(c=i,e[o]=i={},i[c]=!0),"string"==typeof a&&(c=a,t[o]=a={},a[c]=!0)),"on"===o||"nativeOn"===o||"hook"===o)
// merge functions
for(s in a)i[s]=r(i[s],a[s]);else if(Array.isArray(i))e[o]=i.concat(a);else if(Array.isArray(a))e[o]=[i].concat(a);else for(s in a)i[s]=a[s];else e[o]=t[o];return e}),{})}},
/***/"930b":
/***/function(e,t,n){
// 20.2.2.3 Math.acosh(x)
var r=n("f083"),i=n("dc3f"),a=Math.sqrt,o=Math.acosh;r(r.S+r.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+a(e-1)*a(e+1))}})},
/***/"93e0":
/***/function(e,t){
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);// eslint-disable-line no-undef
/***/},
/***/"93ed":
/***/function(e,t,n){var r=n("4245");
/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},
/***/"93ff":
/***/function(e,t,n){e.exports={default:n("7b9e"),__esModule:!0};
/***/},
/***/"942c":
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083");r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},
/***/"944a":
/***/function(e,t,n){"use strict";var r=n("d066"),i=n("e065"),a=n("d44e");
// `Symbol.toStringTag` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.tostringtag
i("toStringTag"),
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
a(r("Symbol"),"Symbol")},
/***/"944e":
/***/function(e,t,n){"use strict";
/* unused harmony export isValueNice */
/* harmony export (binding) */n.d(t,"e",(function(){return i})),
/* harmony export (binding) */n.d(t,"d",(function(){return a})),
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s})),
/* unused harmony export fixExtent */
/* harmony export (binding) */n.d(t,"a",(function(){return l})),
/* harmony export (binding) */n.d(t,"f",(function(){return u})),
/* harmony export (binding) */n.d(t,"g",(function(){return h}));
/* harmony import */var r=n("3842");
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function i(e){return"interval"===e.type||"log"===e.type}
/**
 * @param extent Both extent[0] and extent[1] should be valid number.
 *               Should be extent[0] < extent[1].
 * @param splitNumber splitNumber should be >= 1.
 */function a(e,t,n,i){var a={},o=e[1]-e[0],l=a.interval=Object(r.n)(o/t,!0);null!=n&&l<n&&(l=a.interval=n),null!=i&&l>i&&(l=a.interval=i);
// Tow more digital for tick.
var u=a.intervalPrecision=s(l);
// Niced extent inside original extent
// In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.
return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),c(e,0,t),c(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(a.niceTickExtent=[Object(r.w)(Math.ceil(e[0]/l)*l,u),Object(r.w)(Math.floor(e[1]/l)*l,u)],e),a}function o(e){var t=Math.pow(10,Object(r.t)(e)),n=e/t;
// Increase interval
return n?2===n?n=3:3===n?n=5:
// f is 1 or 5
n*=2:n=1,Object(r.w)(n*t)}
/**
 * @return interval precision
 */function s(e){
// Tow more digital for tick.
return Object(r.h)(e)+2}function c(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function l(e,t){return e>=t[0]&&e<=t[1]}function u(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function h(e,t){return e*(t[1]-t[0])+t[0]}
/***/},
/***/9485:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("59ed"),o=n("825a"),s=n("46c4"),c=TypeError;
// `Iterator.prototype.reduce` method
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
r({target:"Iterator",proto:!0,real:!0},{reduce:function(e/* , initialValue */){o(this),a(e);var t=s(this),n=arguments.length<2,r=n?void 0:arguments[1],l=0;if(i(t,(function(t){n?(n=!1,r=t):r=e(r,t,l),l++}),{IS_RECORD:!0}),n)throw new c("Reduce of empty iterator with no initial value");return r}})},
/***/"94ae":
/***/function(e,t,n){
/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */
!function(e){"use strict";function t(e){for(var t,n,r=1,i=arguments.length;r<i;r++)for(t in n=arguments[r])e[t]=n[t];return e}var n=Object.create||function(e){return r.prototype=e,new r};function r(){}function i(e,t){var n,r=Array.prototype.slice;return e.bind?e.bind.apply(e,r.call(arguments,1)):(n=r.call(arguments,2),function(){return e.apply(t,n.length?n.concat(r.call(arguments)):arguments)})}var a=0;function o(e){return"_leaflet_id"in e||(e._leaflet_id=++a),e._leaflet_id}function s(e,t,n){var r,i,a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)};return o}function c(e,t,n){var r=t[1],i=r-(t=t[0]);return e===r&&n?e:((e-t)%i+i)%i+t}function l(){return!1}function u(e,t){return!1===t?e:(t=Math.pow(10,void 0===t?6:t),Math.round(e*t)/t)}function h(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function f(e){return h(e).split(/\s+/)}function d(e,t){for(var r in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?n(e.options):{}),t)e.options[r]=t[r];return e.options}function p(e,t,n){var r,i=[];for(r in e)i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(e[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+i.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(g,(function(e,n){if(void 0===(n=t[n]))throw new Error("No value provided for variable "+e);return"function"==typeof n?n(t):n}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var w=0;function x(e){var t=+new Date,n=Math.max(0,16-(t-w));return w=t+n,window.setTimeout(e,n)}var C=window.requestAnimationFrame||b("RequestAnimationFrame")||x,_=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function I(e,t,n){if(!n||C!==x)return C.call(window,i(e,t));e.call(t)}function E(e){e&&_.call(window,e)}var k={__proto__:null,extend:t,create:n,bind:i,get lastId(){return a},stamp:o,throttle:s,wrapNum:c,falseFn:l,formatNum:u,trim:h,splitWords:f,setOptions:d,getParamString:p,template:m,isArray:v,indexOf:y,emptyImageUrl:A,requestFn:C,cancelFn:_,requestAnimFrame:I,cancelAnimFrame:E};function S(){}S.extend=function(e){function r(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var i,a=r.__super__=this.prototype,o=n(a);for(i in(o.constructor=r).prototype=o,this)Object.prototype.hasOwnProperty.call(this,i)&&"prototype"!==i&&"__super__"!==i&&(r[i]=this[i]);if(e.statics&&t(r,e.statics),e.includes){var s=e.includes;if("undefined"!=typeof L&&L&&L.Mixin){s=v(s)?s:[s];for(var c=0;c<s.length;c++)s[c],L.Mixin.Events}t.apply(null,[o].concat(e.includes))}return t(o,e),delete o.statics,delete o.includes,o.options&&(o.options=a.options?n(a.options):{},t(o.options,e.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=o._initHooks.length;e<t;e++)o._initHooks[e].call(this)}},r},S.include=function(e){var n=this.prototype.options;return t(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},S.mergeOptions=function(e){return t(this.prototype.options,e),this},S.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var B={on:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t);else for(var i=0,a=(e=f(e)).length;i<a;i++)this._on(e[i],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=f(e);for(var i=1===arguments.length,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}else delete this._events;return this},_on:function(e,t,n,r){"function"!=typeof t||!1===this._listens(e,t,n)&&(t={fn:t,ctx:n=n===this?void 0:n},r&&(t.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t))},_off:function(e,t,n){var r,i,a;if(this._events&&(r=this._events[e]))if(1===arguments.length){if(this._firingCount)for(i=0,a=r.length;i<a;i++)r[i].fn=l;delete this._events[e]}else"function"!=typeof t||!1!==(t=this._listens(e,t,n))&&(n=r[t],this._firingCount&&(n.fn=l,this._events[e]=r=r.slice()),r.splice(t,1))},fire:function(e,n,r){if(this.listens(e,r)){var i=t({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var c=a[o],l=c.fn;c.once&&this.off(e,l,c.ctx),l.call(c.ctx||this,i)}this._firingCount--}}r&&this._propagateEvent(i)}return this},listens:function(e,t,n,r){var i=t,a=("function"!=typeof t&&(r=!!t,n=i=void 0),this._events&&this._events[e]);if(a&&a.length&&!1!==this._listens(e,i,n))return!0;if(r)for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0;return!1},_listens:function(e,t,n){if(this._events){var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i}return!1},once:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t,!0);else for(var i=0,a=(e=f(e)).length;i<a;i++)this._on(e[i],t,n,!0);return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[o(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[o(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}},M=(B.addEventListener=B.on,B.removeEventListener=B.clearAllEventListeners=B.off,B.addOneTimeEventListener=B.once,B.fireEvent=B.fire,B.hasEventListeners=B.listens,S.extend(B));function T(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var O=Math.trunc||function(e){return 0<e?Math.floor(e):Math.ceil(e)};function D(e,t,n){return e instanceof T?e:v(e)?new T(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new T(e.x,e.y):new T(e,t,n)}function P(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function Q(e,t){return!e||e instanceof P?e:new P(e,t)}function R(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function j(e,t){return e instanceof R?e:new R(e,t)}function N(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function F(e,t,n){return e instanceof N?e:v(e)&&"object"!=typeof e[0]?3===e.length?new N(e[0],e[1],e[2]):2===e.length?new N(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new N(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new N(e,t,n)}T.prototype={clone:function(){return new T(this.x,this.y)},add:function(e){return this.clone()._add(D(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(D(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new T(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new T(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=O(this.x),this.y=O(this.y),this},distanceTo:function(e){var t=(e=D(e)).x-this.x;return e=e.y-this.y,Math.sqrt(t*t+e*e)},equals:function(e){return(e=D(e)).x===this.x&&e.y===this.y},contains:function(e){return e=D(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},P.prototype={extend:function(e){var t,n;if(e){if(e instanceof T||"number"==typeof e[0]||"x"in e)t=n=D(e);else if(t=(e=Q(e)).min,n=e.max,!t||!n)return this;this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone())}return this},getCenter:function(e){return D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return D(this.min.x,this.max.y)},getTopRight:function(){return D(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e=("number"==typeof e[0]||e instanceof T?D:Q)(e))instanceof P?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=Q(e);var t=this.min,n=this.max,r=e.min,i=(e=e.max).x>=t.x&&r.x<=n.x;return e=e.y>=t.y&&r.y<=n.y,i&&e},overlaps:function(e){e=Q(e);var t=this.min,n=this.max,r=e.min,i=(e=e.max).x>t.x&&r.x<n.x;return e=e.y>t.y&&r.y<n.y,i&&e},isValid:function(){return!(!this.min||!this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e;return e=Math.abs(t.y-n.y)*e,Q(D(t.x-r,t.y-e),D(n.x+r,n.y+e))},equals:function(e){return!!e&&(e=Q(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},R.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof N)n=t=e;else{if(!(e instanceof R))return e?this.extend(F(e)||j(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new N(t.lat,t.lng),this._northEast=new N(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e;return e=Math.abs(t.lng-n.lng)*e,new R(new N(t.lat-r,t.lng-e),new N(n.lat+r,n.lng+e))},getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e=("number"==typeof e[0]||e instanceof N||"lat"in e?F:j)(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof R?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=j(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=(e=e.getNorthEast()).lat>=t.lat&&r.lat<=n.lat;return e=e.lng>=t.lng&&r.lng<=n.lng,i&&e},overlaps:function(e){e=j(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=(e=e.getNorthEast()).lat>t.lat&&r.lat<n.lat;return e=e.lng>t.lng&&r.lng<n.lng,i&&e},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=j(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}};var z={latLngToPoint:function(e,t){return e=this.projection.project(e),t=this.scale(t),this.transformation._transform(e,t)},pointToLatLng:function(e,t){return t=this.scale(t),e=this.transformation.untransform(e,t),this.projection.unproject(e)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){var t;return this.infinite?null:(t=this.projection.bounds,e=this.scale(e),new P(this.transformation.transform(t.min,e),this.transformation.transform(t.max,e)))},infinite:!(N.prototype={equals:function(e,t){return!!e&&(e=F(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+u(this.lat,e)+", "+u(this.lng,e)+")"},distanceTo:function(e){return H.distance(this,F(e))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(e){var t=(e=180*e/40075017)/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-t],[this.lat+e,this.lng+t])},clone:function(){return new N(this.lat,this.lng,this.alt)}}),wrapLatLng:function(e){var t=this.wrapLng?c(e.lng,this.wrapLng,!0):e.lng;return new N(this.wrapLat?c(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat;return t=t.lng-n.lng,0==r&&0==t?e:(n=e.getSouthWest(),e=e.getNorthEast(),new R(new N(n.lat-r,n.lng-t),new N(e.lat-r,e.lng-t)))}},H=t({},z,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2);return t=Math.sin((t.lng-e.lng)*n/2),e=a*a+Math.cos(r)*Math.cos(i)*t*t,n=2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e)),this.R*n}}),U={R:U=6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE;return n=Math.max(Math.min(n,e.lat),-n),n=Math.sin(n*t),new T(this.R*e.lng*t,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(e){var t=180/Math.PI;return new N((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:new P([-(U*=Math.PI),-U],[U,U])};function G(e,t,n,r){v(e)?(this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3]):(this._a=e,this._b=t,this._c=n,this._d=r)}function V(e,t,n,r){return new G(e,t,n,r)}G.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return e.x=(t=t||1)*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return new T((e.x/(t=t||1)-this._b)/this._a,(e.y/t-this._d)/this._c)}};var W=t({},H,{code:"EPSG:3857",projection:U,transformation:V(W=.5/(Math.PI*U.R),.5,-W,.5)}),q=t({},W,{code:"EPSG:900913"});function Y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function K(e,t){for(var n,r,i,a,o="",s=0,c=e.length;s<c;s++){for(n=0,r=(i=e[s]).length;n<r;n++)o+=(n?"L":"M")+(a=i[n]).x+" "+a.y;o+=t?Se.svg?"z":"x":""}return o||"M0 0"}var $=document.documentElement.style,J="ActiveXObject"in window,X=J&&!document.addEventListener,Z="msLaunchUri"in navigator&&!("documentMode"in document),ee=ke("webkit"),te=ke("android"),ne=ke("android 2")||ke("android 3"),re=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ie=(re=te&&ke("Google")&&re<537&&!("AudioNode"in window),!!window.opera),ae=!Z&&ke("chrome"),oe=ke("gecko")&&!ee&&!ie&&!J,se=!ae&&ke("safari"),ce=ke("phantom"),le="OTransition"in $,ue=0===navigator.platform.indexOf("Win"),he=J&&"transition"in $,fe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ne,de=($="MozPerspective"in $,!window.L_DISABLE_3D&&(he||fe||$)&&!le&&!ce),pe=($n="undefined"!=typeof orientation||ke("mobile"))&&ee,ge=$n&&fe,me=!window.PointerEvent&&window.MSPointerEvent,ve=!(!window.PointerEvent&&!me),ye="ontouchstart"in window||!!window.TouchEvent,Ae=!window.L_NO_TOUCH&&(ye||ve),be=$n&&ie,we=$n&&oe,xe=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Ce=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",l,t),window.removeEventListener("testPassiveEventSupport",l,t)}catch(e){}return e}(),_e=!!document.createElement("canvas").getContext,Ie=!(!document.createElementNS||!Y("svg").createSVGRect),Ee=!!Ie&&((Ee=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Ee.firstChild&&Ee.firstChild.namespaceURI));function ke(e){return 0<=navigator.userAgent.toLowerCase().indexOf(e)}var Se={ie:J,ielt9:X,edge:Z,webkit:ee,android:te,android23:ne,androidStock:re,opera:ie,chrome:ae,gecko:oe,safari:se,phantom:ce,opera12:le,win:ue,ie3d:he,webkit3d:fe,gecko3d:$,any3d:de,mobile:$n,mobileWebkit:pe,mobileWebkit3d:ge,msPointer:me,pointer:ve,touch:Ae,touchNative:ye,mobileOpera:be,mobileGecko:we,retina:xe,passiveEvents:Ce,canvas:_e,svg:Ie,vml:!Ie&&function(){try{var e=document.createElement("div"),t=(e.innerHTML='<v:shape adj="1"/>',e.firstChild);return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}(),inlineSvg:Ee,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Be=Se.msPointer?"MSPointerDown":"pointerdown",Me=Se.msPointer?"MSPointerMove":"pointermove",Te=Se.msPointer?"MSPointerUp":"pointerup",Oe=Se.msPointer?"MSPointerCancel":"pointercancel",De={touchstart:Be,touchmove:Me,touchend:Te,touchcancel:Oe},Pe={touchstart:function(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ot(t),ze(e,t)},touchmove:ze,touchend:ze,touchcancel:ze},Le={},Qe=!1;function Re(e,t,n){return"touchstart"!==t||Qe||(document.addEventListener(Be,je,!0),document.addEventListener(Me,Ne,!0),document.addEventListener(Te,Fe,!0),document.addEventListener(Oe,Fe,!0),Qe=!0),Pe[t]?(n=Pe[t].bind(this,n),e.addEventListener(De[t],n,!1),n):l}function je(e){Le[e.pointerId]=e}function Ne(e){Le[e.pointerId]&&(Le[e.pointerId]=e)}function Fe(e){delete Le[e.pointerId]}function ze(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Le)t.touches.push(Le[n]);t.changedTouches=[t],e(t)}}var He=200;function Ue(e,t){e.addEventListener("dblclick",t);var n,r=0;function i(e){var i;1!==e.detail?n=e.detail:"mouse"===e.pointerType||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents||(i=Pt(e)).some((function(e){return e instanceof HTMLLabelElement&&e.attributes.for}))&&!i.some((function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))||((i=Date.now())-r<=He?2==++n&&t(function(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return(e=r).type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}(e)):n=1,r=i)}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}var Ge,Ve,We,qe,Ye,Ke,$e=ft(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Je=ft(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Xe="webkitTransition"===Je||"OTransition"===Je?Je+"End":"transitionend";function Ze(e){return"string"==typeof e?document.getElementById(e):e}function et(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];return"auto"===(n=n&&"auto"!==n||!document.defaultView?n:(e=document.defaultView.getComputedStyle(e,null))?e[t]:null)?null:n}function tt(e,t,n){return(e=document.createElement(e)).className=t||"",n&&n.appendChild(e),e}function nt(e){var t=e.parentNode;t&&t.removeChild(e)}function rt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function it(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function at(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function ot(e,t){return void 0!==e.classList?e.classList.contains(t):0<(e=ut(e)).length&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e)}function st(e,t){var n;if(void 0!==e.classList)for(var r=f(t),i=0,a=r.length;i<a;i++)e.classList.add(r[i]);else ot(e,t)||lt(e,((n=ut(e))?n+" ":"")+t)}function ct(e,t){void 0!==e.classList?e.classList.remove(t):lt(e,h((" "+ut(e)+" ").replace(" "+t+" "," ")))}function lt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function ut(e){return void 0===(e=e.correspondingElement?e.correspondingElement:e).className.baseVal?e.className:e.className.baseVal}function ht(e,t){if("opacity"in e.style)e.style.opacity=t;else if("filter"in e.style){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(e){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}}function ft(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function dt(e,t,n){t=t||new T(0,0),e.style[$e]=(Se.ie3d?"translate("+t.x+"px,"+t.y+"px)":"translate3d("+t.x+"px,"+t.y+"px,0)")+(n?" scale("+n+")":"")}function pt(e,t){e._leaflet_pos=t,Se.any3d?dt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function gt(e){return e._leaflet_pos||new T(0,0)}function mt(){xt(window,"dragstart",Ot)}function vt(){_t(window,"dragstart",Ot)}function yt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(At(),Ke=(Ye=e).style.outlineStyle,e.style.outlineStyle="none",xt(window,"keydown",At))}function At(){Ye&&(Ye.style.outlineStyle=Ke,Ke=Ye=void 0,_t(window,"keydown",At))}function bt(e){for(;!((e=e.parentNode).offsetWidth&&e.offsetHeight||e===document.body););return e}function wt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}function xt(e,t,n,r){if(t&&"object"==typeof t)for(var i in t)kt(e,i,t[i],n);else for(var a=0,o=(t=f(t)).length;a<o;a++)kt(e,t[a],n,r);return this}qe="onselectstart"in document?(We=function(){xt(window,"selectstart",Ot)},function(){_t(window,"selectstart",Ot)}):(Ve=ft(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),We=function(){var e;Ve&&(e=document.documentElement.style,Ge=e[Ve],e[Ve]="none")},function(){Ve&&(document.documentElement.style[Ve]=Ge,Ge=void 0)}),J={__proto__:null,TRANSFORM:$e,TRANSITION:Je,TRANSITION_END:Xe,get:Ze,getStyle:et,create:tt,remove:nt,empty:rt,toFront:it,toBack:at,hasClass:ot,addClass:st,removeClass:ct,setClass:lt,getClass:ut,setOpacity:ht,testProp:ft,setTransform:dt,setPosition:pt,getPosition:gt,get disableTextSelection(){return We},get enableTextSelection(){return qe},disableImageDrag:mt,enableImageDrag:vt,preventOutline:yt,restoreOutline:At,getSizedParentNode:bt,getScale:wt};var Ct="_leaflet_events";function _t(e,t,n,r){if(1===arguments.length)It(e),delete e[Ct];else if(t&&"object"==typeof t)for(var i in t)St(e,i,t[i],n);else if(t=f(t),2===arguments.length)It(e,(function(e){return-1!==y(t,e)}));else for(var a=0,o=t.length;a<o;a++)St(e,t[a],n,r);return this}function It(e,t){for(var n in e[Ct]){var r=n.split(/\d/)[0];t&&!t(r)||St(e,r,null,null,n)}}var Et={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function kt(e,t,n,r){var i,a,s=t+o(n)+(r?"_"+o(r):"");e[Ct]&&e[Ct][s]||(a=i=function(t){return n.call(r||e,t||window.event)},!Se.touchNative&&Se.pointer&&0===t.indexOf("touch")?i=Re(e,t,i):Se.touch&&"dblclick"===t?i=Ue(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Et[t]||t,i,!!Se.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?e.addEventListener(Et[t],i=function(t){t=t||window.event,jt(e,t)&&a(t)},!1):e.addEventListener(t,a,!1):e.attachEvent("on"+t,i),e[Ct]=e[Ct]||{},e[Ct][s]=i)}function St(e,t,n,r,i){var a,s;i=i||t+o(n)+(r?"_"+o(r):""),(n=e[Ct]&&e[Ct][i])&&(!Se.touchNative&&Se.pointer&&0===t.indexOf("touch")?(r=e,s=n,De[a=t]&&r.removeEventListener(De[a],s,!1)):Se.touch&&"dblclick"===t?(r=n,(s=e).removeEventListener("dblclick",r.dblclick),s.removeEventListener("click",r.simDblclick)):"removeEventListener"in e?e.removeEventListener(Et[t]||t,n,!1):e.detachEvent("on"+t,n),e[Ct][i]=null)}function Bt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Mt(e){return kt(e,"wheel",Bt),this}function Tt(e){return xt(e,"mousedown touchstart dblclick contextmenu",Bt),e._leaflet_disable_click=!0,this}function Ot(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Dt(e){return Ot(e),Bt(e),this}function Pt(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function Lt(e,t){var n,r;return t?(r=(n=wt(t)).boundingClientRect,new T((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)):new T(e.clientX,e.clientY)}var Qt=Se.linux&&Se.chrome?window.devicePixelRatio:Se.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1;function Rt(e){return Se.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Qt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function jt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}X={__proto__:null,on:xt,off:_t,stopPropagation:Bt,disableScrollPropagation:Mt,disableClickPropagation:Tt,preventDefault:Ot,stop:Dt,getPropagationPath:Pt,getMousePosition:Lt,getWheelDelta:Rt,isExternalTarget:jt,addListener:xt,removeListener:_t};var Nt=M.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=gt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=I(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){e=this._startPos.add(this._offset.multiplyBy(e)),t&&e._round(),pt(this._el,e),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Ft=M.extend({options:{crs:W,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=d(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(F(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Je&&Se.any3d&&!Se.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),xt(this._proxy,Xe,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,r){return n=void 0===n?this._zoom:this._limitZoom(n),e=this._limitCenter(F(e),n,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=t({animate:r.animate},r.zoom),r.pan=t({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,n,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Se.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Se.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2);return e=(e instanceof T?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),r=this.containerPointToLatLng(i.add(e)),this.setView(r,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():j(e);var n=D(t.paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));return(i="number"==typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0?{center:e.getCenter(),zoom:i}:(t=r.subtract(n).divideBy(2),r=this.project(e.getSouthWest(),i),n=this.project(e.getNorthEast(),i),{center:this.unproject(r.add(n).divideBy(2).add(t),i),zoom:i})},fitBounds:function(e,t){if((e=j(e)).isValid())return e=this._getBoundsCenterZoom(e,t),this.setView(e.center,e.zoom,t);throw new Error("Bounds are not valid.")},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){var n;return t=t||{},(e=D(e).round()).x||e.y?(!0===t.animate||this.getSize().contains(e)?(this._panAnim||(this._panAnim=new Nt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate?(st(this._mapPane,"leaflet-pan-anim"),n=this._getMapPanePos().subtract(e).round(),this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)):(this._rawPanBy(e),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this):this.fire("moveend")},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Se.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom,s=(e=F(e),t=void 0===t?o:t,Math.max(a.x,a.y)),c=s*this.getZoomScale(o,t),l=i.distanceTo(r)||1,u=1.42,h=u*u;function f(e){return e=(c*c-s*s+(e?-1:1)*h*h*l*l)/(2*(e?c:s)*h*l),(e=Math.sqrt(e*e+1)-e)<1e-9?-18:Math.log(e)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}var g=f(0);function m(e){return s*(p(g)*(d(e=g+u*e)/p(e))-d(g))/h}var v=Date.now(),y=(f(1)-g)/u,A=n.duration?1e3*n.duration:1e3*y*.8;return this._moveStart(!0,n.noMoveStart),function n(){var a=(Date.now()-v)/A,c=(1-Math.pow(1-a,1.5))*y;a<=1?(this._flyToFrame=I(n,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(m(c)/l)),o),this.getScaleZoom(s/(a=c,s*(p(g)/p(g+u*a))),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}.call(this),this},flyToBounds:function(e,t){return e=this._getBoundsCenterZoom(e,t),this.flyTo(e.center,e.zoom,t)},setMaxBounds:function(e){return e=j(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter();return e=this._limitCenter(n,this._zoom,j(e)),n.equals(e)||this.panTo(e,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=D((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=(e=this.project(e),(n=Q([(a=this.getPixelBounds()).min.add(n),a.max.subtract(r)])).getSize());return n.contains(e)||(this._enforcingBounds=!0,r=e.subtract(n.getCenter()),n=n.extend(e).getSize().subtract(a),i.x+=r.x<0?-n.x:n.x,i.y+=r.y<0?-n.y:n.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1),this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize(),r=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),a=n.divideBy(2).round(),o=r.divideBy(2).round();return(a=a.subtract(o)).x||a.y?(e.animate&&e.pan?this.panBy(a):(e.pan&&this._rawPanBy(a),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){var n,r;return e=this._locateOptions=t({timeout:1e4,watch:!1},e),"geolocation"in navigator?(n=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this),e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,e):navigator.geolocation.getCurrentPosition(n,r,e)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t;this._container._leaflet_id&&(t=e.code,e=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+e+"."}))},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t,n,r=new N(e.coords.latitude,e.coords.longitude),i=r.toBounds(2*e.coords.accuracy),a=this._locateOptions,o=(a.setView&&(t=this.getBoundsZoom(i),this.setView(r,a.maxZoom?Math.min(t,a.maxZoom):t)),{latlng:r,bounds:i,timestamp:e.timestamp});for(n in e.coords)"number"==typeof e.coords[n]&&(o[n]=e.coords[n]);this.fire("locationfound",o)}},addHandler:function(e,t){return t&&(t=this[e]=new t(this),this._handlers.push(t),this.options[e]&&t.enable()),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),nt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)nt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){return t=tt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane),e&&(this._panes[e]=t),t},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new R(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=j(e),n=D(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=(e=e.getSouthEast(),n=this.getSize().subtract(n),e=Q(this.project(e,r),this.project(o,r)).getSize(),o=Se.any3d?this.options.zoomSnap:1,n.x/e.x);return n=n.y/e.y,e=t?Math.max(s,n):Math.min(s,n),r=this.getScaleZoom(e,r),o&&(r=Math.round(r/(o/100))*(o/100),r=t?Math.ceil(r/o)*o:Math.floor(r/o)*o),Math.max(i,Math.min(a,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){return new P(e=this._getTopLeftPoint(e,t),e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,e=n.zoom(e*n.scale(t)),isNaN(e)?1/0:e},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(F(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(D(e),t)},layerPointToLatLng:function(e){return e=D(e).add(this.getPixelOrigin()),this.unproject(e)},latLngToLayerPoint:function(e){return this.project(F(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(F(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(j(e))},distance:function(e,t){return this.options.crs.distance(F(e),F(t))},containerPointToLayerPoint:function(e){return D(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return D(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){return e=this.containerPointToLayerPoint(D(e)),this.layerPointToLatLng(e)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(F(e)))},mouseEventToContainerPoint:function(e){return Lt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){if(!(e=this._container=Ze(e)))throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");xt(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var e=this._container,t=(this._fadeAnimated=this.options.fadeAnimation&&Se.any3d,st(e,"leaflet-container"+(Se.touch?" leaflet-touch":"")+(Se.retina?" leaflet-retina":"")+(Se.ielt9?" leaflet-oldie":"")+(Se.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),et(e,"position"));"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pt(this._mapPane,new T(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(st(e.markerPane,"leaflet-zoom-hide"),st(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){pt(this._mapPane,new T(0,0));var r=!this._loaded,i=(this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset"),this._zoom!==t);this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){pt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={};var t=e?_t:xt;t((this._targets[o(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Se.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=I((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!jt(a,e))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||s||i||!this.listens(t,!0)?r:[this]},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t,n=e.target||e.srcElement;!this._loaded||n._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(n)||("mousedown"===(t=e.type)&&yt(n),this._fireDOMEvent(e,t))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){"click"===e.type&&((c=t({},e)).type="preclick",this._fireDOMEvent(c,c.type,r));var i=this._findEventTargets(e,n);if(r){for(var a=[],o=0;o<r.length;o++)r[o].listens(n,!0)&&a.push(r[o]);i=a.concat(i)}if(i.length){"contextmenu"===n&&Ot(e);var s,c=i[0],l={originalEvent:e};for("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type&&(s=c.getLatLng&&(!c._radius||c._radius<=10),l.containerPoint=s?this.latLngToContainerPoint(c.getLatLng()):this.mouseEventToContainerPoint(e),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=s?c.getLatLng():this.layerPointToLatLng(l.layerPoint)),o=0;o<i.length;o++)if(i[o].fire(n,l,!0),l.originalEvent._stopped||!1===i[o].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,n))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return gt(this._mapPane)||new T(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){return n=this._getNewPixelOrigin(n,t),this.project(e,t)._subtract(n)},_latLngBoundsToNewLayerBounds:function(e,t,n){return n=this._getNewPixelOrigin(n,t),Q([this.project(e.getSouthWest(),t)._subtract(n),this.project(e.getNorthWest(),t)._subtract(n),this.project(e.getSouthEast(),t)._subtract(n),this.project(e.getNorthEast(),t)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){var r,i;return!n||(r=this.project(e,t),i=this.getSize().divideBy(2),i=new P(r.subtract(i),r.add(i)),i=this._getBoundsOffset(i,n,t),Math.abs(i.x)<=1&&Math.abs(i.y)<=1)?e:this.unproject(r.add(i),t)},_limitOffset:function(e,t){var n;return t?(n=new P((n=this.getPixelBounds()).min.add(e),n.max.add(e)),e.add(this._getBoundsOffset(n,t))):e},_getBoundsOffset:function(e,t,n){return n=(t=Q(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n))).min.subtract(e.min),t=t.max.subtract(e.max),new T(this._rebound(n.x,-t.x),this._rebound(n.y,-t.y))},_rebound:function(e,t){return 0<e+t?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=Se.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ct(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){return e=this._getCenterOffset(e)._trunc(),!(!0!==(t&&t.animate)&&!this.getSize().contains(e)||(this.panBy(e,t),0))},_createAnimProxy:function(){var e=this._proxy=tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=$e,n=this._proxy.style[t];dt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){nt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();dt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&0<=e.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(!this._animatingZoom){if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t);if(r=this._getCenterOffset(e)._divideBy(1-1/r),!0!==n.animate&&!this.getSize().contains(r))return!1;I((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)}),this)}return!0},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,st(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ct(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function zt(e){return new Ut(e)}var Ht,Ut=S.extend({options:{position:"topright"},initialize:function(e){d(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition();return e=e._controlCorners[n],st(t,"leaflet-control"),-1!==n.indexOf("bottom")?e.insertBefore(t,e.firstChild):e.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(nt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&0<e.screenX&&0<e.screenY&&this._map.getContainer().focus()}}),Gt=(Ft.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=tt("div",t+"control-container",this._container);function r(r,i){e[r+i]=tt("div",t+r+" "+t+i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)nt(this._controlCorners[e]);nt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),Ut.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),(this._map=e).on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return Ut.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){return e.off("add remove",this._onLayerChange,this),(e=this._getLayer(o(e)))&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){st(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(st(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):ct(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ct(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=tt("div",e),n=this.options.collapsed,r=(t.setAttribute("aria-haspopup",!0),Tt(t),Mt(t),this._section=tt("section",e+"-list")),i=(n&&(this._map.on("click",this.collapse,this),xt(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=tt("a",e+"-toggle",t));i.href="#",i.title="Layers",i.setAttribute("role","button"),xt(i,{keydown:function(e){13===e.keyCode&&this._expandSafely()},click:function(e){Ot(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=tt("div",e+"-base",r),this._separator=tt("div",e+"-separator",r),this._overlaysList=tt("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&o(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(this._container){rt(this._baseLayersList),rt(this._overlaysList),this._layerControlInputs=[];for(var e,t,n,r=0,i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),t=t||n.overlay,e=e||!n.overlay,r+=n.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(e=e&&1<r)?"":"none"),this._separator.style.display=t&&e?"":"none"}return this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target));(e=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null)&&this._map.fire(e,t)},_createRadioElement:function(e,t){return e='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",(t=document.createElement("div")).innerHTML=e,t.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer),i=((e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+o(this),r),this._layerControlInputs.push(t),t.layerId=o(e.layer),xt(t,"click",this._onInputClick,this),r=document.createElement("span")).innerHTML=" "+e.name,document.createElement("span"));return n.appendChild(i),i.appendChild(t),i.appendChild(r),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var a=n.length-1;0<=a;a--)e=n[a],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;0<=i;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section,t=(this._preventClick=!0,xt(e,"click",Ot),this.expand(),this);setTimeout((function(){_t(e,"click",Ot),t._preventClick=!1}))}})),Vt=Ut.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=tt("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){return(n=tt("a",n,r)).innerHTML=e,n.href="#",n.title=t,n.setAttribute("role","button"),n.setAttribute("aria-label",t),Tt(n),xt(n,"click",Dt),xt(n,"click",i,this),xt(n,"click",this._refocusOnMap,this),n},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";ct(this._zoomInButton,t),ct(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&e._zoom!==e.getMinZoom()||(st(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&e._zoom!==e.getMaxZoom()||(st(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Wt=(Ft.mergeOptions({zoomControl:!0}),Ft.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Vt,this.addControl(this.zoomControl))})),Ut.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=tt("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=tt("div",t,n)),e.imperial&&(this._iScale=tt("div",t,n))},_update:function(){var e=(t=this._map).getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/e)},_updateImperial:function(e){var t,n;5280<(e*=3.2808399)?(n=this._getRoundNum(t=e/5280),this._updateScale(this._iScale,n+" mi",n/t)):(n=this._getRoundNum(e),this._updateScale(this._iScale,n+" ft",n/e))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1);return t*(10<=(e/=t)?10:5<=e?5:3<=e?3:2<=e?2:1)}})),qt=Ut.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Se.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(e){d(this,e),this._attributions={}},onAdd:function(e){for(var t in(e.attributionControl=this)._container=tt("div","leaflet-control-attribution"),Tt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e,t=[];for(e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}}),Yt=(Ft.mergeOptions({attributionControl:!0}),Ft.addInitHook((function(){this.options.attributionControl&&(new qt).addTo(this)})),Ut.Layers=Gt,Ut.Zoom=Vt,Ut.Scale=Wt,Ut.Attribution=qt,zt.layers=function(e,t,n){return new Gt(e,t,n)},zt.zoom=function(e){return new Vt(e)},zt.scale=function(e){return new Wt(e)},zt.attribution=function(e){return new qt(e)},Z=S.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}}),Z.addTo=function(e,t){return e.addHandler(t,this),this},ee={Events:B},Se.touch?"touchstart mousedown":"mousedown"),Kt=M.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){d(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(xt(this._dragStartTarget,Yt,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Kt._dragging===this&&this.finishDrag(!0),_t(this._dragStartTarget,Yt,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){var t,n;this._enabled&&(this._moved=!1,ot(this._element,"leaflet-zoom-anim")||(e.touches&&1!==e.touches.length?Kt._dragging===this&&this.finishDrag():Kt._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||((Kt._dragging=this)._preventOutline&&yt(this._element),mt(),We(),this._moving||(this.fire("down"),n=e.touches?e.touches[0]:e,t=bt(this._element),this._startPoint=new T(n.clientX,n.clientY),this._startPos=gt(this._element),this._parentScale=wt(t),n="mousedown"===e.type,xt(document,n?"mousemove":"touchmove",this._onMove,this),xt(document,n?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(e){var t;this._enabled&&(e.touches&&1<e.touches.length?this._moved=!0:!(t=new T((t=e.touches&&1===e.touches.length?e.touches[0]:e).clientX,t.clientY)._subtract(this._startPoint)).x&&!t.y||Math.abs(t.x)+Math.abs(t.y)<this.options.clickTolerance||(t.x/=this._parentScale.x,t.y/=this._parentScale.y,Ot(e),this._moved||(this.fire("dragstart"),this._moved=!0,st(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),st(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(t),this._moving=!0,this._lastEvent=e,this._updatePosition()))},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),pt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){ct(document.body,"leaflet-dragging"),this._lastTarget&&(ct(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_t(document,"mousemove touchmove",this._onMove,this),_t(document,"mouseup touchend touchcancel",this._onUp,this),vt(),qe();var t=this._moved&&this._moving;this._moving=!1,Kt._dragging=!1,t&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function $t(e,t,n){for(var r,i,a,o,s,c,l,u=[1,4,2,8],h=0,f=e.length;h<f;h++)e[h]._code=rn(e[h],t);for(a=0;a<4;a++){for(c=u[a],r=[],h=0,i=(f=e.length)-1;h<f;i=h++)o=e[h],s=e[i],o._code&c?s._code&c||((l=nn(s,o,c,t,n))._code=rn(l,t),r.push(l)):(s._code&c&&((l=nn(s,o,c,t,n))._code=rn(l,t),r.push(l)),r.push(o));e=r}return e}function Jt(e,t){var n,r,i,a,o,s,c;if(!e||0===e.length)throw new Error("latlngs not passed");on(e)||(e=e[0]);for(var l=F([0,0]),u=j(e),h=(u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(l=Xt(e)),e.length),f=[],d=0;d<h;d++){var p=F(e[d]);f.push(t.project(F([p.lat-l.lat,p.lng-l.lng])))}for(d=o=s=c=0,n=h-1;d<h;n=d++)r=f[d],i=f[n],a=r.y*i.x-i.y*r.x,s+=(r.x+i.x)*a,c+=(r.y+i.y)*a,o+=3*a;return u=0===o?f[0]:[s/o,c/o],F([(u=t.unproject(D(u))).lat+l.lat,u.lng+l.lng])}function Xt(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=F(e[i]);t+=a.lat,n+=a.lng,r++}return F([t/r,n/r])}function Zt(e,t){if(t&&e.length){var n=e=function(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)(function(e,t){var n=t.x-e.x;return n*n+(t=t.y-e.y)*t})(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}(e,t*=t),r=n.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(r);i[0]=i[r-1]=1,function e(t,n,r,i,a){var o,s,c,l=0;for(s=i+1;s<=a-1;s++)l<(c=an(t[s],t[i],t[a],!0))&&(o=s,l=c);r<l&&(n[o]=1,e(t,n,r,i,o),e(t,n,r,o,a))}(n,i,t,0,r-1);var a,o=[];for(a=0;a<r;a++)i[a]&&o.push(n[a]);return o}return e.slice()}function en(e,t,n){return Math.sqrt(an(e,t,n,!0))}function tn(e,t,n,r,i){var a,o,s,c=r?Ht:rn(e,n),l=rn(t,n);for(Ht=l;;){if(!(c|l))return[e,t];if(c&l)return!1;s=rn(o=nn(e,t,a=c||l,n,i),n),a===c?(e=o,c=s):(t=o,l=s)}}function nn(e,t,n,r,i){var a,o,s=t.x-e.x,c=(t=t.y-e.y,r.min);return r=r.max,8&n?(a=e.x+s*(r.y-e.y)/t,o=r.y):4&n?(a=e.x+s*(c.y-e.y)/t,o=c.y):2&n?(a=r.x,o=e.y+t*(r.x-e.x)/s):1&n&&(a=c.x,o=e.y+t*(c.x-e.x)/s),new T(a,o,i)}function rn(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function an(e,t,n,r){var i=t.x,a=(t=t.y,n.x-i),o=n.y-t,s=a*a+o*o;return 0<s&&(1<(s=((e.x-i)*a+(e.y-t)*o)/s)?(i=n.x,t=n.y):0<s&&(i+=a*s,t+=o*s)),a=e.x-i,o=e.y-t,r?a*a+o*o:new T(i,t)}function on(e){return!v(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function sn(e){return on(e)}function cn(e,t){var n,r,i,a,o,s;if(!e||0===e.length)throw new Error("latlngs not passed");on(e)||(e=e[0]);for(var c=F([0,0]),l=j(e),u=(l.getNorthWest().distanceTo(l.getSouthWest())*l.getNorthEast().distanceTo(l.getNorthWest())<1700&&(c=Xt(e)),e.length),h=[],f=0;f<u;f++){var d=F(e[f]);h.push(t.project(F([d.lat-c.lat,d.lng-c.lng])))}for(n=f=0;f<u-1;f++)n+=h[f].distanceTo(h[f+1])/2;if(0===n)s=h[0];else for(r=f=0;f<u-1;f++)if(i=h[f],a=h[f+1],n<(r+=o=i.distanceTo(a))){s=[a.x-(o=(r-n)/o)*(a.x-i.x),a.y-o*(a.y-i.y)];break}return F([(l=t.unproject(D(s))).lat+c.lat,l.lng+c.lng])}te={__proto__:null,clipPolygon:$t,polygonCenter:Jt,centroid:Xt},ne={__proto__:null,simplify:Zt,pointToSegmentDistance:en,closestPointOnSegment:function(e,t,n){return an(e,t,n)},clipSegment:tn,_getEdgeIntersection:nn,_getBitCode:rn,_sqClosestPointOnSegment:an,isFlat:on,_flat:sn,polylineCenter:cn},re={project:function(e){return new T(e.lng,e.lat)},unproject:function(e){return new N(e.y,e.x)},bounds:new P([-180,-90],[180,90])},ie={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=(i=Math.sqrt(1-i*i))*Math.sin(r);return a=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),i/2),r=-n*Math.log(Math.max(a,1e-10)),new T(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,a=Math.sqrt(1-i*i),o=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(o),c=0,l=.1;c<15&&1e-7<Math.abs(l);c++)t=a*Math.sin(s),t=Math.pow((1-t)/(1+t),a/2),s+=l=Math.PI/2-2*Math.atan(o*t)-s;return new N(s*n,e.x*n/r)}},ae={__proto__:null,LonLat:re,Mercator:ie,SphericalMercator:U},se=t({},H,{code:"EPSG:3395",projection:ie,transformation:V(oe=.5/(Math.PI*ie.R),.5,-oe,.5)});var ln=t({},H,{code:"EPSG:4326",projection:re,transformation:V(1/180,1,-1/180,.5)}),un=(ce=t({},z,{projection:re,transformation:V(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng;return t=t.lat-e.lat,Math.sqrt(n*n+t*t)},infinite:!0}),z.Earth=H,z.EPSG3395=se,z.EPSG3857=W,z.EPSG900913=q,z.EPSG4326=ln,z.Simple=ce,le=M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t,n=e.target;n.hasLayer(this)&&(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents&&(t=this.getEvents(),n.on(t,this),this.once("remove",(function(){n.off(t,this)}),this)),this.onAdd(n),this.fire("add"),n.fire("layeradd",{layer:this}))}}),Ft.include({addLayer:function(e){var t;if(e._layerAdd)return t=o(e),this._layers[t]||((this._layers[t]=e)._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this;throw new Error("The provided object is not a Layer.")},removeLayer:function(e){var t=o(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[o(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){e=o(e),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var e,t=1/0,n=-1/0,r=this._getZoomSpan();for(e in this._zoomBoundLayers){var i=this._zoomBoundLayers[e].options;t=void 0===i.minZoom?t:Math.min(t,i.minZoom),n=void 0===i.maxZoom?n:Math.max(n,i.maxZoom)}this._layersMaxZoom=n===-1/0?void 0:n,this._layersMinZoom=t===1/0?void 0:t,r!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),le.extend({initialize:function(e,t){var n,r;if(d(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){return e=e in this._layers?e:this.getLayerId(e),this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:o})),hn=un.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),un.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?((e=e in this._layers?this._layers[e]:e).removeEventParent(this),un.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e,t=new R;for(e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),fn=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){d(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(n)return n=this._createImg(n,t&&"IMG"===t.tagName?t:null),this._setIconStyles(n,e),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n;if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(e,t){var n=this.options,r=D(r="number"==typeof(r=n[t+"Size"])?[r,r]:r),i=D("shadow"===t&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),r&&(e.style.width=r.x+"px",e.style.height=r.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Se.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),dn=fn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!=typeof dn.imagePath&&(dn.imagePath=this._detectIconPath()),(this.options.imagePath||dn.imagePath)+fn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){function t(e,t,n){return(t=t.exec(e))&&t[n]}return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=tt("div","leaflet-default-icon-path",document.body),t=et(e,"background-image")||et(e,"backgroundImage");return document.body.removeChild(e),(t=this._stripUrl(t))?t:(e=document.querySelector('link[href$="leaflet.css"]'))?e.href.substring(0,e.href.length-11-1):""}}),pn=Z.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new Kt(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),st(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ct(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=gt(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin();(s=Q(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i))).contains(a)||(i=D((Math.max(s.max.x,a.x)-s.max.x)/(o.max.x-s.max.x)-(Math.min(s.min.x,a.x)-s.min.x)/(o.min.x-s.min.x),(Math.max(s.max.y,a.y)-s.max.y)/(o.max.y-s.max.y)-(Math.min(s.min.y,a.y)-s.min.y)/(o.min.y-s.min.y)).multiplyBy(r),n.panBy(i,{animate:!1}),this._draggable._newPos._add(i),this._draggable._startPos._add(i),pt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=I(this._adjustPan.bind(this,e)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=gt(t._icon),i=t._map.layerPointToLatLng(r);n&&pt(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),gn=le.extend({options:{icon:new dn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){d(this,t),this._latlng=F(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=F(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var e;return this._icon&&this._map&&(e=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(e)),this},_initIcon:function(){var e,t=this.options,n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),r=!1,i=!1;(e=t.icon.createIcon(this._icon))!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(e.title=t.title),"IMG"===e.tagName&&(e.alt=t.alt||"")),st(e,n),t.keyboard&&(e.tabIndex="0",e.setAttribute("role","button")),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xt(e,"focus",this._panOnFocus,this),(e=t.icon.createShadow(this._shadow))!==this._shadow&&(this._removeShadow(),i=!0),e&&(st(e,n),e.alt=""),this._shadow=e,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&i&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_t(this._icon,"focus",this._panOnFocus,this),nt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&nt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&pt(this._icon,e),this._shadow&&pt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round(),this._setPos(e)},_initInteraction:function(){var e;this.options.interactive&&(st(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),pn&&(e=this.options.draggable,this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new pn(this),e&&this.dragging.enable()))},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&ht(this._icon,e),this._shadow&&ht(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e,t,n=this._map;n&&(e=(t=this.options.icon.options).iconSize?D(t.iconSize):D(0,0),t=t.iconAnchor?D(t.iconAnchor):D(0,0),n.panInside(this._latlng,{paddingTopLeft:t,paddingBottomRight:e.subtract(t)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),mn=le.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return d(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),vn=mn.extend({options:{fill:!0,radius:10},initialize:function(e,t){d(this,t),this._latlng=F(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=F(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return mn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance();e=[e+n,t+n],this._pxBounds=new P(this._point.subtract(e),this._point.add(e))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),yn=vn.extend({initialize:function(e,n,r){if(d(this,n="number"==typeof n?t({},r,{radius:n}):n),this._latlng=F(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:mn.prototype.setStyle,_project:function(){var e,t,n,r,i,a=this._latlng.lng,o=this._latlng.lat,s=this._map,c=s.options.crs;c.distance===H.distance?(r=Math.PI/180,i=this._mRadius/H.R/r,e=s.project([o+i,a]),t=s.project([o-i,a]),t=e.add(t).divideBy(2),n=s.unproject(t).lat,r=Math.acos((Math.cos(i*r)-Math.sin(o*r)*Math.sin(n*r))/(Math.cos(o*r)*Math.cos(n*r)))/r,!isNaN(r)&&0!==r||(r=i/Math.cos(Math.PI/180*o)),this._point=t.subtract(s.getPixelOrigin()),this._radius=isNaN(r)?0:t.x-s.project([n,a-r]).x,this._radiusY=t.y-e.y):(i=c.unproject(c.project(this._latlng).subtract([this._mRadius,0])),this._point=s.latLngToLayerPoint(this._latlng),this._radius=this._point.x-s.latLngToLayerPoint(i).x),this._updateBounds()}}),An=mn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){d(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t=1/0,n=null,r=an,i=0,a=this._parts.length;i<a;i++)for(var o=this._parts[i],s=1,c=o.length;s<c;s++){var l,u,h=r(e,l=o[s-1],u=o[s],!0);h<t&&(t=h,n=r(e,l,u))}return n&&(n.distance=Math.sqrt(t)),n},getCenter:function(){if(this._map)return cn(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=F(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new R,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return on(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=on(e),r=0,i=e.length;r<i;r++)n?(t[r]=F(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=new T(e=this._clickTolerance(),e);this._rawPxBounds&&(this._pxBounds=new P([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(e,t,n){var r,i,a=e[0]instanceof N,o=e.length;if(a){for(i=[],r=0;r<o;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<o;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var t,n,r,i,a=this._parts,o=0,s=0,c=this._rings.length;o<c;o++)for(t=0,n=(i=this._rings[o]).length;t<n-1;t++)(r=tn(i[t],i[t+1],e,t,!0))&&(a[s]=a[s]||[],a[s].push(r[0]),r[1]===i[t+1]&&t!==n-2||(a[s].push(r[1]),s++))},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=Zt(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,a,o,s,c=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(e))for(n=0,a=this._parts.length;n<a;n++)for(r=0,i=(o=(s=this._parts[n]).length)-1;r<o;i=r++)if((t||0!==r)&&en(e,s[i],s[r])<=c)return!0;return!1}});An._flat=sn;var bn=An.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return Jt(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(e){var t=(e=An.prototype._convertLatLngs.call(this,e)).length;return 2<=t&&e[0]instanceof N&&e[0].equals(e[t-1])&&e.pop(),e},_setLatLngs:function(e){An.prototype._setLatLngs.call(this,e),on(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(on(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var e=this._renderer._bounds,t=new T(t=this.options.weight,t);if(e=new P(e.min.subtract(t),e.max.add(t)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var n,r=0,i=this._rings.length;r<i;r++)(n=$t(this._rings[r],e,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,a,o,s,c,l=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(a=0,o=(c=(t=this._parts[i]).length)-1;a<c;o=a++)n=t[a],r=t[o],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l||An.prototype._containsPoint.call(this,e,!0)}}),wn=hn.extend({initialize:function(e,t){d(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=v(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var a,o=this.options;return o.filter&&!o.filter(e)||!(a=xn(e,o))?this:(a.feature=Bn(e),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(e,a),this.addLayer(a))},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function xn(e,t){var n,r,i,a,o="Feature"===e.type?e.geometry:e,s=o?o.coordinates:null,c=[],l=t&&t.pointToLayer,u=t&&t.coordsToLatLng||_n;if(!s&&!o)return null;switch(o.type){case"Point":return Cn(l,e,n=u(s),t);case"MultiPoint":for(i=0,a=s.length;i<a;i++)n=u(s[i]),c.push(Cn(l,e,n,t));return new hn(c);case"LineString":case"MultiLineString":return r=In(s,"LineString"===o.type?0:1,u),new An(r,t);case"Polygon":case"MultiPolygon":return r=In(s,"Polygon"===o.type?1:2,u),new bn(r,t);case"GeometryCollection":for(i=0,a=o.geometries.length;i<a;i++){var h=xn({geometry:o.geometries[i],type:"Feature",properties:e.properties},t);h&&c.push(h)}return new hn(c);case"FeatureCollection":for(i=0,a=o.features.length;i<a;i++){var f=xn(o.features[i],t);f&&c.push(f)}return new hn(c);default:throw new Error("Invalid GeoJSON object.")}}function Cn(e,t,n,r){return e?e(t,n):new gn(n,r&&r.markersInheritOptions&&r)}function _n(e){return new N(e[1],e[0],e[2])}function In(e,t,n){for(var r,i=[],a=0,o=e.length;a<o;a++)r=t?In(e[a],t-1,n):(n||_n)(e[a]),i.push(r);return i}function En(e,t){return void 0!==(e=F(e)).alt?[u(e.lng,t),u(e.lat,t),u(e.alt,t)]:[u(e.lng,t),u(e.lat,t)]}function kn(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t?kn(e[a],on(e[a])?0:t-1,n,r):En(e[a],r));return!t&&n&&0<i.length&&i.push(i[0].slice()),i}function Sn(e,n){return e.feature?t({},e.feature,{geometry:n}):Bn(n)}function Bn(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}function Mn(e,t){return new wn(e,t)}ue={toGeoJSON:function(e){return Sn(this,{type:"Point",coordinates:En(this.getLatLng(),e)})}},gn.include(ue),yn.include(ue),vn.include(ue),An.include({toGeoJSON:function(e){var t=!on(this._latlngs);return Sn(this,{type:(t?"Multi":"")+"LineString",coordinates:kn(this._latlngs,t?1:0,!1,e)})}}),bn.include({toGeoJSON:function(e){var t=!on(this._latlngs),n=t&&!on(this._latlngs[0]);return e=kn(this._latlngs,n?2:t?1:0,!0,e),Sn(this,{type:(n?"Multi":"")+"Polygon",coordinates:e=t?e:[e]})}}),un.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),Sn(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t,n,r=this.feature&&this.feature.geometry&&this.feature.geometry.type;return"MultiPoint"===r?this.toMultiPoint(e):(t="GeometryCollection"===r,n=[],this.eachLayer((function(r){r.toGeoJSON&&(r=r.toGeoJSON(e),t?n.push(r.geometry):"FeatureCollection"===(r=Bn(r)).type?n.push.apply(n,r.features):n.push(r))})),t?Sn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n})}}),he=Mn;var Tn=le.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=j(t),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(st(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){nt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&it(this._image),this},bringToBack:function(){return this._map&&at(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=j(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:tt("img");st(t,"leaflet-image-layer"),this._zoomAnimated&&st(t,"leaflet-zoom-animated"),this.options.className&&st(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom);e=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min,dt(this._image,e,t)},_reset:function(){var e=this._image,t=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();pt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){ht(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),On=Tn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:tt("video");if(st(t,"leaflet-image-layer"),this._zoomAnimated&&st(t,"leaflet-zoom-animated"),this.options.className&&st(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onloadeddata=i(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],a=0;a<n.length;a++)r.push(n[a].src);this._url=0<n.length?r:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var s=tt("source");s.src=this._url[o],t.appendChild(s)}}}}),Dn=Tn.extend({_initImage:function(){var e=this._image=this._url;st(e,"leaflet-image-layer"),this._zoomAnimated&&st(e,"leaflet-zoom-animated"),this.options.className&&st(e,this.options.className),e.onselectstart=l,e.onmousemove=l}}),Pn=le.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,t){e&&(e instanceof N||v(e))?(this._latlng=F(e),d(this,t)):(d(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&ht(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&ht(this._container,1),this.bringToFront(),this.options.interactive&&(st(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(ht(this._container,0),this._removeTimeout=setTimeout(i(nt,void 0,this._container),200)):nt(this._container),this.options.interactive&&(ct(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=F(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&it(this._container),this},bringToBack:function(){return this._map&&at(this._container),this},_prepareOpen:function(e){if(!(n=this._source)._map)return!1;if(n instanceof hn){var t,n=null,r=this._source._layers;for(t in r)if(r[t]._map){n=r[t];break}if(!n)return!1;this._source=n}if(!e)if(n.getCenter)e=n.getCenter();else if(n.getLatLng)e=n.getLatLng();else{if(!n.getBounds)throw new Error("Unable to get source layer LatLng.");e=n.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){var e,t,n;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),e=D(this.options.offset),n=this._getAnchor(),this._zoomAnimated?pt(this._container,t.add(n)):e=e.add(t).add(n),t=this._containerBottom=-e.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=t+"px",this._container.style.left=n+"px")},_getAnchor:function(){return[0,0]}}),Ln=(Ft.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),le.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(d(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}}),Pn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Pn.prototype.openOn.call(this,e)},onAdd:function(e){Pn.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof mn||this._source.on("preclick",Bt))},onRemove:function(e){Pn.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof mn||this._source.off("preclick",Bt))},getEvents:function(){var e=Pn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=tt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=tt("div",e+"-content-wrapper",t);this._contentNode=tt("div",e+"-content",n),Tt(t),Mt(this._contentNode),xt(t,"contextmenu",Bt),this._tipContainer=tt("div",e+"-tip-container",t),this._tip=tt("div",e+"-tip",this._tipContainer),this.options.closeButton&&((n=this._closeButton=tt("a",e+"-close-button",t)).setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',xt(n,"click",(function(e){Ot(e),this.close()}),this))},_updateLayout:function(){var e=this._contentNode,t=e.style,n=(t.width="",t.whiteSpace="nowrap",e.offsetWidth),r=(n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="",n=e.offsetHeight,this.options.maxHeight),i="leaflet-popup-scrolled";(r&&r<n?(t.height=r+"px",st):ct)(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);var t=this._getAnchor();pt(this._container,e.add(t))},_adjustPan:function(){var e,t,n,r,i,a,o,s;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(e=this._map,t=parseInt(et(this._container,"marginBottom"),10)||0,t=this._container.offsetHeight+t,s=this._containerWidth,(n=new T(this._containerLeft,-t-this._containerBottom))._add(gt(this._container)),n=e.layerPointToContainerPoint(n),i=D(this.options.autoPanPadding),r=D(this.options.autoPanPaddingTopLeft||i),i=D(this.options.autoPanPaddingBottomRight||i),a=e.getSize(),o=0,n.x+s+i.x>a.x&&(o=n.x+s-a.x+i.x),n.x-o-r.x<(s=0)&&(o=n.x-r.x),n.y+t+i.y>a.y&&(s=n.y+t-a.y+i.y),n.y-s-r.y<0&&(s=n.y-r.y),(o||s)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([o,s]))))},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Qn=(Ft.mergeOptions({closePopupOnClick:!0}),Ft.include({openPopup:function(e,t,n){return this._initOverlay(Ln,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),le.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Ln,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof hn||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t;this._popup&&this._map&&(Dt(e),t=e.layer||e.target,this._popup._source!==t||t instanceof mn?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}}),Pn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Pn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Pn.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Pn.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tt("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n=this._map,r=this._container,i=n.latLngToContainerPoint(n.getCenter()),a=(n=n.layerPointToContainerPoint(e),this.options.direction),o=r.offsetWidth,s=r.offsetHeight,c=D(this.options.offset),l=this._getAnchor();n="top"===a?(t=o/2,s):"bottom"===a?(t=o/2,0):(t="center"===a?o/2:"right"===a?0:"left"===a?o:n.x<i.x?(a="right",0):(a="left",o+2*(c.x+l.x)),s/2),e=e.subtract(D(t,n,!0)).add(c).add(l),ct(r,"leaflet-tooltip-right"),ct(r,"leaflet-tooltip-left"),ct(r,"leaflet-tooltip-top"),ct(r,"leaflet-tooltip-bottom"),st(r,"leaflet-tooltip-"+a),pt(r,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&ht(this._container,e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),this._setPosition(e)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Rn=(Ft.include({openTooltip:function(e,t,n){return this._initOverlay(Qn,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),le.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Qn,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){var t,n;!e&&this._tooltipHandlersAdded||(t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e)},openTooltip:function(e){return this._tooltip&&(this instanceof hn||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&(xt(t,"focus",(function(){this._tooltip._source=e,this.openTooltip()}),this),xt(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){(e="function"==typeof e.getElement&&e.getElement())&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){var t;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(t=this)._map.once("moveend",(function(){t._openOnceFlag=!1,t._openTooltip(e)}))):(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)))},_moveTooltip:function(e){var t=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(e=this._map.mouseEventToContainerPoint(e.originalEvent),e=this._map.containerPointToLayerPoint(e),t=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(t)}}),fn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){e=e&&"DIV"===e.tagName?e:document.createElement("div");var t=this.options;return t.html instanceof Element?(rt(e),e.appendChild(t.html)):e.innerHTML=!1!==t.html?t.html:"",t.bgPos&&(t=D(t.bgPos),e.style.backgroundPosition=-t.x+"px "+-t.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}}));fn.Default=dn;var jn=le.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Se.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){d(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),nt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(it(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(at(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var e;return this._map&&(this._removeAllTiles(),(e=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof T?e:new T(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,a=n.length;i<a;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Se.ielt9){ht(this._container,this.options.opacity);var e,t=+new Date,n=!1,r=!1;for(e in this._tiles){var i,a=this._tiles[e];a.current&&a.loaded&&(i=Math.min(1,(t-a.loaded)/200),ht(a.el,i),i<1?n=!0:(a.active?r=!0:this._onOpaqueTile(a),a.active=!0))}r&&!this._noPrune&&this._pruneTiles(),n&&(E(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=tt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(nt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=tt("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),l(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var e,t,n,r=this._map.getZoom();if(r>this.options.maxZoom||r<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(n=this._tiles[e]).retain=n.current;for(e in this._tiles)(n=this._tiles[e]).current&&!n.active&&(t=n.coords,this._retainParent(t.x,t.y,t.z,t.z-5)||this._retainChildren(t.x,t.y,t.z,t.z+2));for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)nt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){n-=1;var i=((i=new T(+(e=Math.floor(e/2)),+(t=Math.floor(t/2)))).z=n,this._tileCoordsToKey(i));return(i=this._tiles[i])&&i.active?i.retain=!0:(i&&i.loaded&&(i.retain=!0),r<n&&this._retainParent(e,t,n,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=((o=new T(i,a)).z=n+1,this._tileCoordsToKey(o));(o=this._tiles[o])&&o.active?o.retain=!0:(o&&o.loaded&&(o.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r))}},_resetView:function(e){e=e&&(e.pinch||e.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t),a=(i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i),this.options.updateWhenZooming&&i!==this._tileZoom);r&&!a||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom);t=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round(),Se.any3d?dt(e.el,t,r):pt(e.el,t)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=(n=this._map)._animatingZoom?Math.max(n._animateToZoom,n.getZoom()):n.getZoom(),n=(t=n.getZoomScale(t,this._tileZoom),e=n.project(e,this._tileZoom).floor(),n.getSize().divideBy(2*t));return new P(e.subtract(n),e.add(n))},_update:function(e){if(r=this._map){var t=this._clampZoom(r.getZoom());if(void 0===e&&(e=r.getCenter()),void 0!==this._tileZoom){var n,r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=(r=this.options.keepBuffer,new P(i.getBottomLeft().subtract([r,-r]),i.getTopRight().add([r,-r])));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(n in this._tiles){var c=this._tiles[n].coords;c.z===this._tileZoom&&s.contains(new T(c.x,c.y))||(this._tiles[n].current=!1)}if(1<Math.abs(t-this._tileZoom))this._setView(e,t);else{for(var l=i.min.y;l<=i.max.y;l++)for(var u=i.min.x;u<=i.max.x;u++){var h,f=new T(u,l);f.z=this._tileZoom,this._isValidTile(f)&&((h=this._tiles[this._tileCoordsToKey(f)])?h.current=!0:o.push(f))}if(o.sort((function(e,t){return e.distanceTo(a)-t.distanceTo(a)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var d=document.createDocumentFragment();for(u=0;u<o.length;u++)this._addTile(o[u],d);this._level.el.appendChild(d)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}return!this.options.bounds||(t=this._tileCoordsToBounds(e),j(this.options.bounds).overlaps(t))},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n);return n=r.add(n),[t.unproject(r,e.z),t.unproject(n,e.z)]},_tileCoordsToBounds:function(e){return e=new R((e=this._tileCoordsToNwSe(e))[0],e[1]),this.options.noWrap?e:this._map.wrapLatLngBounds(e)},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=new T(+(e=e.split(":"))[0],+e[1]);return t.z=+e[2],t},_removeTile:function(e){var t=this._tiles[e];t&&(nt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){st(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=l,e.onmousemove=l,Se.ielt9&&this.options.opacity<1&&ht(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),a=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(a),this.createTile.length<2&&I(i(this._tileReady,this,e,null,a)),pt(a,n),this._tiles[r]={el:a,coords:e,current:!0},t.appendChild(a),this.fire("tileloadstart",{tile:a,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(ht(n.el,0),E(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(st(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Se.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new T(this._wrapX?c(e.x,this._wrapX):e.x,this._wrapY?c(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new P(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),Nn=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=d(this,t)).detectRetina&&Se.retina&&0<t.maxZoom?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return xt(n,"load",i(this._tileOnLoad,this,t,n)),xt(n,"error",i(this._tileOnError,this,t,n)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(e),n},getTileUrl:function(e){var n={r:Se.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(e=this._globalTileRange.max.y-e.y,this.options.tms&&(n.y=e),n["-y"]=e),m(this._url,t(n,this.options))},_tileOnLoad:function(e,t){Se.ielt9?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return(e=this.options.zoomReverse?t-e:e)+this.options.zoomOffset},_getSubdomain:function(e){return e=Math.abs(e.x+e.y)%this.options.subdomains.length,this.options.subdomains[e]},_abortLoading:function(){var e,t,n;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((n=this._tiles[e].el).onload=l,n.onerror=l,n.complete||(n.src=A,t=this._tiles[e].coords,nt(n),delete this._tiles[e],this.fire("tileabort",{tile:n,coords:t})))},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",A),jn.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==A))return jn.prototype._tileReady.call(this,e,t,n)}});function Fn(e,t){return new Nn(e,t)}var zn=Nn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r,i=t({},this.defaultWmsParams);for(r in n)r in this.options||(i[r]=n[r]);e=(n=d(this,n)).detectRetina&&Se.retina?2:1;var a=this.getTileSize();i.width=a.x*e,i.height=a.y*e,this.wmsParams=i},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[t]=this._crs.code,Nn.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=(t=(n=Q((n=this._crs).project(t[0]),n.project(t[1]))).min,n.max);return t=(1.3<=this._wmsVersion&&this._crs===ln?[t.y,t.x,n.y,n.x]:[t.x,t.y,n.x,n.y]).join(","),(n=Nn.prototype.getTileUrl.call(this,e))+p(this.wmsParams,n,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+t},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});Nn.WMS=zn,Fn.wms=function(e,t){return new zn(e,t)};var Hn=le.extend({options:{padding:.1},initialize:function(e){d(this,e),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),st(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t);r=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t)),Se.any3d?dt(this._container,r,n):pt(this._container,r)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new P(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Un=Hn.extend({options:{tolerance:0},getEvents:function(){var e=Hn.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Hn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");xt(e,"mousemove",this._onMouseMove,this),xt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),xt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,nt(this._container),_t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){var e,t,n,r;this._map._animatingZoom&&this._bounds||(Hn.prototype._update.call(this),e=this._bounds,t=this._container,n=e.getSize(),r=Se.retina?2:1,pt(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Se.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update"))},_reset:function(){Hn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),e=(this._layers[o(e)]=e)._order={layer:e,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=(n=e._order).next,n=n.prev;t?t.prev=n:this._drawLast=n,n?n.next=t:this._drawFirst=t,delete e._order,delete this._layers[o(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){for(var t,n=e.options.dashArray.split(/[, ]+/),r=[],i=0;i<n.length;i++){if(t=Number(n[i]),isNaN(t))return;r.push(t)}e.options._dashArray=r}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(e){var t;e._pxBounds&&(t=(e.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e,t=this._redrawBounds;t?(e=t.getSize(),this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var e,t,n=this._redrawBounds;this._ctx.save(),n&&(t=n.getSize(),this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,t.x,t.y),this._ctx.clip()),this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!n||e._pxBounds&&e._pxBounds.intersects(n))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,c=this._ctx;if(s){for(c.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],c[r?"lineTo":"moveTo"](a.x,a.y);t&&c.closePath()}this._fillStroke(c,e)}}},_updateCircle:function(e){var t,n,r,i;this._drawing&&!e._empty()&&(t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),1!=(i=(Math.max(Math.round(e._radiusY),1)||r)/r)&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!=i&&n.restore(),this._fillStroke(n,e))},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&(("click"===e.type||"preclick"===e.type)&&this._map._draggableMoved(t)||(n=t));this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){var t;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(t=this._map.mouseEventToLayerPoint(e),this._handleMouseHover(e,t))},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(ct(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,a=this._drawFirst;a;a=a.next)(n=a.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(st(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t,n,r=e._order;r&&(t=r.next,n=r.prev,t&&((t.prev=n)?n.next=t:t&&(this._drawFirst=t),r.prev=this._drawLast,(this._drawLast.next=r).next=null,this._drawLast=r,this._requestRedraw(e)))},_bringToBack:function(e){var t,n,r=e._order;r&&(t=r.next,(n=r.prev)&&((n.next=t)?t.prev=n:n&&(this._drawLast=n),r.prev=null,r.next=this._drawFirst,this._drawFirst.prev=r,this._drawFirst=r,this._requestRedraw(e)))}});function Gn(e){return Se.canvas?new Un(e):null}var Vn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wn=(fe={_initContainer:function(){this._container=tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Hn.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Vn("shape");st(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Vn("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;nt(t),e.removeInteractiveTarget(t),delete this._layers[o(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t=t||(e._stroke=Vn("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n=n||(e._fill=Vn("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){it(e._container)},_bringToBack:function(e){at(e._container)}},Se.vml?Vn:Y),qn=Hn.extend({_initContainer:function(){this._container=Wn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){nt(this._container),_t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var e,t,n;this._map._animatingZoom&&this._bounds||(Hn.prototype._update.call(this),t=(e=this._bounds).getSize(),n=this._container,this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),pt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update"))},_initPath:function(e){var t=e._path=Wn("path");e.options.className&&st(t,e.options.className),e.options.interactive&&st(t,"leaflet-interactive"),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){nt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[o(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path;e=e.options,t&&(e.stroke?(t.setAttribute("stroke",e.color),t.setAttribute("stroke-opacity",e.opacity),t.setAttribute("stroke-width",e.weight),t.setAttribute("stroke-linecap",e.lineCap),t.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?t.setAttribute("stroke-dasharray",e.dashArray):t.removeAttribute("stroke-dasharray"),e.dashOffset?t.setAttribute("stroke-dashoffset",e.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),e.fill?(t.setAttribute("fill",e.fillColor||e.color),t.setAttribute("fill-opacity",e.fillOpacity),t.setAttribute("fill-rule",e.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,K(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ";t=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ",this._setPath(e,t)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){it(e._path)},_bringToBack:function(e){at(e._path)}});function Yn(e){return Se.svg||Se.vml?new qn(e):null}Se.vml&&qn.include(fe),Ft.include({getRenderer:function(e){return e=(e=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(e){var t;return"overlayPane"!==e&&void 0!==e&&(void 0===(t=this._paneRenderers[e])&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t)},_createRenderer:function(e){return this.options.preferCanvas&&Gn(e)||Yn(e)}});var Kn=bn.extend({initialize:function(e,t){bn.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=j(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});qn.create=Wn,qn.pointsToPath=K,wn.geometryToLayer=xn,wn.coordsToLatLng=_n,wn.coordsToLatLngs=In,wn.latLngToCoords=En,wn.latLngsToCoords=kn,wn.getFeature=Sn,wn.asFeature=Bn,Ft.mergeOptions({boxZoom:!0}),$=Z.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){xt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){nt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),We(),mt(),this._startPoint=this._map.mouseEventToContainerPoint(e),xt(document,{contextmenu:Dt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=tt("div","leaflet-zoom-box",this._container),st(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=(e=new P(this._point,this._startPoint)).getSize();pt(this._box,e.min),this._box.style.width=t.x+"px",this._box.style.height=t.y+"px"},_finish:function(){this._moved&&(nt(this._box),ct(this._container,"leaflet-crosshair")),qe(),vt(),_t(document,{contextmenu:Dt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){1!==e.which&&1!==e.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0),e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})))},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Ft.addInitHook("addHandler","boxZoom",$),Ft.mergeOptions({doubleClickZoom:!0}),de=Z.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta;n=e.originalEvent.shiftKey?n-r:n+r,"center"===t.options.doubleClickZoom?t.setZoom(n):t.setZoomAround(e.containerPoint,n)}});var $n=(Ft.addInitHook("addHandler","doubleClickZoom",de),Ft.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),Z.extend({addHooks:function(){var e;this._draggable||(e=this._map,this._draggable=new Kt(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))),st(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ct(this._map._container,"leaflet-grab"),ct(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e,t=this._map;t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(e=j(this._map.options.maxBounds),this._offsetLimit=Q(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){var t,n;this._map.options.inertia&&(t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),this._times.push(t),this._prunePositions(t)),this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;1<this._positions.length&&50<e-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){var e,t;this._viscosity&&this._offsetLimit&&(e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit,e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e))},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=((i=this._draggable._newPos.x)-t+n)%e+t-n,i=(i+t+n)%e-t-n;e=Math.abs(r+n)<Math.abs(i+n)?r:i,this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=e},_onDragEnd:function(e){var t,n,r,i,a=this._map,o=a.options,s=!o.inertia||e.noInertia||this._times.length<2;a.fire("dragend",e),!s&&(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,t=o.easeLinearity,s=(e=e.multiplyBy(t/s)).distanceTo([0,0]),n=Math.min(o.inertiaMaxSpeed,s),e=e.multiplyBy(n/s),r=n/(o.inertiaDeceleration*t),(i=e.multiplyBy(-r/2).round()).x||i.y)?(i=a._limitOffset(i,a.options.maxBounds),I((function(){a.panBy(i,{duration:r,easeLinearity:t,noMoveStart:!0,animate:!0})}))):a.fire("moveend")}})),Jn=(Ft.addInitHook("addHandler","dragging",$n),Ft.mergeOptions({keyboard:!0,keyboardPanDelta:80}),pe=Z.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),xt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_t(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var e,t,n;this._focused||(n=document.body,e=document.documentElement,t=n.scrollTop||e.scrollTop,n=n.scrollLeft||e.scrollLeft,this._map._container.focus(),window.scrollTo(n,t))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){for(var t=this._panKeys={},n=this.keyCodes,r=0,i=n.left.length;r<i;r++)t[n.left[r]]=[-1*e,0];for(r=0,i=n.right.length;r<i;r++)t[n.right[r]]=[e,0];for(r=0,i=n.down.length;r<i;r++)t[n.down[r]]=[0,e];for(r=0,i=n.up.length;r<i;r++)t[n.up[r]]=[0,-1*e]},_setZoomDelta:function(e){for(var t=this._zoomKeys={},n=this.keyCodes,r=0,i=n.zoomIn.length;r<i;r++)t[n.zoomIn[r]]=e;for(r=0,i=n.zoomOut.length;r<i;r++)t[n.zoomOut[r]]=-e},_addHooks:function(){xt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n,r=e.keyCode,i=this._map;if(r in this._panKeys)i._panAnim&&i._panAnim._inProgress||(n=this._panKeys[r],e.shiftKey&&(n=D(n).multiplyBy(3)),i.options.maxBounds&&(n=i._limitOffset(D(n),i.options.maxBounds)),i.options.worldCopyJump?(t=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(n))),i.panTo(t)):i.panBy(n));else if(r in this._zoomKeys)i.setZoom(i.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[r]);else{if(27!==r||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Dt(e)}}}),Ft.addInitHook("addHandler","keyboard",pe),Ft.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),ge=Z.extend({addHooks:function(){xt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Rt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date),t=Math.max(n-(+new Date-this._startTime),0),clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),t),Dt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0,r=(e._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel));r=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,n=n?Math.ceil(r/n)*n:r,r=e._limitZoom(t+(0<this._delta?n:-n))-t,this._delta=0,this._startTime=null,r&&("center"===e.options.scrollWheelZoom?e.setZoom(t+r):e.setZoomAround(this._lastMousePos,t+r))}}),Ft.addInitHook("addHandler","scrollWheelZoom",ge),Ft.mergeOptions({tapHold:Se.touchNative&&Se.safari&&Se.mobile,tapTolerance:15}),me=Z.extend({addHooks:function(){xt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){var t;clearTimeout(this._holdTimeout),1===e.touches.length&&(t=e.touches[0],this._startPos=this._newPos=new T(t.clientX,t.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(xt(document,"touchend",Ot),xt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),600),xt(document,"touchend touchcancel contextmenu",this._cancel,this),xt(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function e(){_t(document,"touchend",Ot),_t(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),_t(document,"touchend touchcancel contextmenu",this._cancel,this),_t(document,"touchmove",this._onMove,this)},_onMove:function(e){e=e.touches[0],this._newPos=new T(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){(e=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY}))._simulated=!0,t.target.dispatchEvent(e)}}),Ft.addInitHook("addHandler","tapHold",me),Ft.mergeOptions({touchZoom:Se.touch,bounceAtZoomLimits:!0}),ve=Z.extend({addHooks:function(){st(this._map._container,"leaflet-touch-zoom"),xt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ct(this._map._container,"leaflet-touch-zoom"),_t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t,n,r=this._map;!e.touches||2!==e.touches.length||r._animatingZoom||this._zooming||(t=r.mouseEventToContainerPoint(e.touches[0]),n=r.mouseEventToContainerPoint(e.touches[1]),this._centerPoint=r.getSize()._divideBy(2),this._startLatLng=r.containerPointToLatLng(this._centerPoint),"center"!==r.options.touchZoom&&(this._pinchStartLatLng=r.containerPointToLatLng(t.add(n)._divideBy(2))),this._startDist=t.distanceTo(n),this._startZoom=r.getZoom(),this._moved=!1,this._zooming=!0,r._stop(),xt(document,"touchmove",this._onTouchMove,this),xt(document,"touchend touchcancel",this._onTouchEnd,this),Ot(e))},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),a=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(a,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&a<1||this._zoom>t.getMaxZoom()&&1<a)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1==a)return}else{if(n=n._add(r)._divideBy(2)._subtract(this._centerPoint),1==a&&0===n.x&&0===n.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(n),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest),r=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=I(r,this,!0),Ot(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),_t(document,"touchmove",this._onTouchMove,this),_t(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}}),Ft.addInitHook("addHandler","touchZoom",ve),Ft.BoxZoom=$,Ft.DoubleClickZoom=de,Ft.Drag=$n,Ft.Keyboard=pe,Ft.ScrollWheelZoom=ge,Ft.TapHold=me,Ft.TouchZoom=ve,e.Bounds=P,e.Browser=Se,e.CRS=z,e.Canvas=Un,e.Circle=yn,e.CircleMarker=vn,e.Class=S,e.Control=Ut,e.DivIcon=Rn,e.DivOverlay=Pn,e.DomEvent=X,e.DomUtil=J,e.Draggable=Kt,e.Evented=M,e.FeatureGroup=hn,e.GeoJSON=wn,e.GridLayer=jn,e.Handler=Z,e.Icon=fn,e.ImageOverlay=Tn,e.LatLng=N,e.LatLngBounds=R,e.Layer=le,e.LayerGroup=un,e.LineUtil=ne,e.Map=Ft,e.Marker=gn,e.Mixin=ee,e.Path=mn,e.Point=T,e.PolyUtil=te,e.Polygon=bn,e.Polyline=An,e.Popup=Ln,e.PosAnimation=Nt,e.Projection=ae,e.Rectangle=Kn,e.Renderer=Hn,e.SVG=qn,e.SVGOverlay=Dn,e.TileLayer=Nn,e.Tooltip=Qn,e.Transformation=G,e.Util=k,e.VideoOverlay=On,e.bind=i,e.bounds=Q,e.canvas=Gn,e.circle=function(e,t,n){return new yn(e,t,n)},e.circleMarker=function(e,t){return new vn(e,t)},e.control=zt,e.divIcon=function(e){return new Rn(e)},e.extend=t,e.featureGroup=function(e,t){return new hn(e,t)},e.geoJSON=Mn,e.geoJson=he,e.gridLayer=function(e){return new jn(e)},e.icon=function(e){return new fn(e)},e.imageOverlay=function(e,t,n){return new Tn(e,t,n)},e.latLng=F,e.latLngBounds=j,e.layerGroup=function(e,t){return new un(e,t)},e.map=function(e,t){return new Ft(e,t)},e.marker=function(e,t){return new gn(e,t)},e.point=D,e.polygon=function(e,t){return new bn(e,t)},e.polyline=function(e,t){return new An(e,t)},e.popup=function(e,t){return new Ln(e,t)},e.rectangle=function(e,t){return new Kn(e,t)},e.setOptions=d,e.stamp=o,e.svg=Yn,e.svgOverlay=function(e,t,n){return new Dn(e,t,n)},e.tileLayer=Fn,e.tooltip=function(e,t){return new Qn(e,t)},e.transformation=V,e.version="1.9.4",e.videoOverlay=function(e,t,n){return new On(e,t,n)},window.L);e.noConflict=function(){return window.L=Jn,this},window.L=e}(t);
//# sourceMappingURL=leaflet.js.map
/***/},
/***/"94bb":
/***/function(e,t,n){"use strict";var r,i=n("93e0"),a=n("cffc")(0),o=n("77ea"),s=n("4c8d"),c=n("974c"),l=n("415f"),u=n("9fe8"),h=n("798a"),f=n("798a"),d=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",g=s.getWeak,m=Object.isExtensible,v=l.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},A={
// 23.3.3.3 WeakMap.prototype.get(key)
get:function(e){if(u(e)){var t=g(e);return!0===t?v(h(this,p)).get(e):t?t[this._i]:void 0}},
// 23.3.3.5 WeakMap.prototype.set(key, value)
set:function(e,t){return l.def(h(this,p),e,t)}},b=e.exports=n("d168")(p,y,A,l,!0,!0);
// IE11 WeakMap frozen keys fix
f&&d&&(c((r=l.getConstructor(y,p)).prototype,A),s.NEED=!0,a(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];o(t,e,(function(t,i){
// store frozen objects on internal weakmap shim
if(u(t)&&!m(t)){this._f||(this._f=new r);var a=this._f[e](t,i);return"set"==e?this:a;
// store all the rest on native weakmap
}return n.call(this,t,i)}))})))
/***/},
/***/"94c7":
/***/function(e,t,n){
// This file is autogenerated. It's used to publish CJS to npm.
e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}
// https://github.com/bgrins/TinyColor
// Brian Grinstead, MIT License
var t=/^\s+/,n=/\s+$/;function r(e,t){
// If input is already a tinycolor, return itself
if(t=t||{},(e=e||"")instanceof r)return e;
// If we are called as a function, call using new instead
if(!(this instanceof r))return new r(e,t);var n=i(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,
// Don't let the range of [0,255] come back in [0,1].
// Potentially lose a little bit of precision here, but will fix issues where
// .5 gets interpreted as half of the total, instead of half of 1
// If it was supposed to be 128, this was already taken care of by `inputToRgb`
this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}
// Given a string or object, convert that input to RGB
// Possible string inputs:
//     "red"
//     "#f00" or "f00"
//     "#ff0000" or "ff0000"
//     "#ff000000" or "ff000000"
//     "rgb 255 0 0" or "rgb (255, 0, 0)"
//     "rgb 1.0 0 0" or "rgb (1, 0, 0)"
//     "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
//     "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
//     "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
//     "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
//     "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
function i(t){var n={r:0,g:0,b:0},r=1,i=null,o=null,c=null,u=!1,h=!1;return"string"==typeof t&&(t=U(t)),"object"==e(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(n=a(t.r,t.g,t.b),u=!0,h="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(i=L(t.s),o=L(t.v),n=l(t.h,i,o),u=!0,h="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(i=L(t.s),c=L(t.l),n=s(t.h,i,c),u=!0,h="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=S(r),{ok:u,format:t.format||h,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}
// Conversion Functions
// --------------------
// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
// `rgbToRgb`
// Handle bounds / percentage checking to conform to CSS color spec
// <http://www.w3.org/TR/css3-color/>
// *Assumes:* r, g, b in [0, 255] or [0, 1]
// *Returns:* { r, g, b } in [0, 255]
function a(e,t,n){return{r:255*B(e,255),g:255*B(t,255),b:255*B(n,255)}}
// `rgbToHsl`
// Converts an RGB color value to HSL.
// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
// *Returns:* { h, s, l } in [0,1]
function o(e,t,n){e=B(e,255),t=B(t,255),n=B(n,255);var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=(a+o)/2;if(a==o)r=i=0;// achromatic
else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}
// `hslToRgb`
// Converts an HSL color value to RGB.
// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
// *Returns:* { r, g, b } in the set [0, 255]
function s(e,t,n){var r,i,a;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=B(e,360),t=B(t,100),n=B(n,100),0===t)r=i=a=n;// achromatic
else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*a}}
// `rgbToHsv`
// Converts an RGB color value to HSV
// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
// *Returns:* { h, s, v } in [0,1]
function c(e,t,n){e=B(e,255),t=B(t,255),n=B(n,255);var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=a,c=a-o;if(i=0===a?0:c/a,a==o)r=0;// achromatic
else{switch(a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}
// `hsvToRgb`
// Converts an HSV color value to RGB.
// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
// *Returns:* { r, g, b } in the set [0, 255]
function l(e,t,n){e=6*B(e,360),t=B(t,100),n=B(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6;return{r:255*[n,o,a,a,s,n][c],g:255*[s,n,n,o,a,a][c],b:255*[a,a,s,n,n,o][c]}}
// `rgbToHex`
// Converts an RGB color to hex
// Assumes r, g, and b are contained in the set [0, 255]
// Returns a 3 or 6 character hex
function u(e,t,n,r){var i=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16))];
// Return a 3 character hex if possible
return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}
// `rgbaToHex`
// Converts an RGBA color plus alpha transparency to hex
// Assumes r, g, b are contained in the set [0, 255] and
// a in [0, 1]. Returns a 4 or 8 character rgba hex
function h(e,t,n,r,i){var a=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16)),P(Q(r))];
// Return a 4 character hex if possible
return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}
// `rgbaToArgbHex`
// Converts an RGBA color to an ARGB Hex8 string
// Rarely used, but required for "toFilter()"
function f(e,t,n,r){return[P(Q(r)),P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16))].join("")}
// `equals`
// Can be called with any tinycolor input
// Modification Functions
// ----------------------
// Thanks to less.js for some of the basics here
// <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
function d(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=M(n.s),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=M(n.s),r(n)}function g(e){return r(e).desaturate(100)}function m(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=M(n.l),r(n)}function v(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function y(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=M(n.l),r(n)}
// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
// Values outside of this range will be wrapped into this range.
function A(e,t){var n=r(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,r(n)}
// Combination Functions
// ---------------------
// Thanks to jQuery xColor for some of the ideas behind these
// <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
function b(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function w(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),i=[r(e)],a=360/t,o=1;o<t;o++)i.push(r({h:(n.h+o*a)%360,s:n.s,l:n.l}));return i}function x(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var i=r(e).toHsl(),a=360/n,o=[r(e)];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,o.push(r(i));return o}function _(e,t){t=t||6;for(var n=r(e).toHsv(),i=n.h,a=n.s,o=n.v,s=[],c=1/t;t--;)s.push(r({h:i,s:a,v:o})),o=(o+c)%1;return s}
// Utility Functions
// ---------------------
r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){
//http://www.w3.org/TR/AERT#color-contrast
var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){
//http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=c(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return h(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*B(this._r,255))+"%",g:Math.round(100*B(this._g,255))+"%",b:Math.round(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%)":"rgba("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+f(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=r(e);n="#"+f(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):
// Special case for "transparent", all other non-alpha formats
// will return rgba when there is transparency.
"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},
// Disabled until https://github.com/bgrins/TinyColor/issues/254
// polyad: function (number) {
//   return this._applyCombination(polyad, [number]);
// },
triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},
// If input is an object, force 1 into "1.0" to handle ratios properly
// String input requires "1.0" as input, so 1 will be treated as 1
r.fromRatio=function(t,n){if("object"==e(t)){var i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]="a"===a?t[a]:L(t[a]));t=i}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var i=r(e).toRgb(),a=r(t).toRgb(),o=n/100;return r({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},
// Readability Functions
// ---------------------
// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
// `contrast`
// Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
r.readability=function(e,t){var n=r(e),i=r(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},
// `isReadable`
// Ensure that foreground and background color combinations meet WCAG2 guidelines.
// The third argument is an optional Object.
//      the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
//      the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
// If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
// *Example*
//    tinycolor.isReadable("#000", "#111") => false
//    tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
r.isReadable=function(e,t,n){var i,a,o=r.readability(e,t);switch(a=!1,(i=G(n)).level+i.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},
// `mostReadable`
// Given a base color and a list of possible foreground or background
// colors for that base, returns the most readable color.
// Optionally returns Black or White if the most readable color is unreadable.
// *Example*
//    tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
//    tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString();  // "#ffffff"
//    tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
//    tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
r.mostReadable=function(e,t,n){var i,a,o,s,c=null,l=0;a=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var u=0;u<t.length;u++)(i=r.readability(e,t[u]))>l&&(l=i,c=r(t[u]));return r.isReadable(e,c,{level:o,size:s})||!a?c:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};
// Big List of Colors
// ------------------
// <https://www.w3.org/TR/css-color-4/#named-colors>
var I=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=r.hexNames=k(I);
// Make it easy to access colors via `hexNames[hex]`
// Utilities
// ---------
// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
function k(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}
// Return a valid alpha value [0,1] with all invalid values being set to 1
function S(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}
// Take input from [0, n] and return it as [0, 1]
function B(e,t){O(e)&&(e="100%");var n=D(e);
// Handle floating point rounding errors
return e=Math.min(t,Math.max(0,parseFloat(e))),
// Automatically convert percentage into number
n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t);
// Convert into [0, 1] range if it isn't already
}
// Force a number between 0 and 1
function M(e){return Math.min(1,Math.max(0,e))}
// Parse a base-16 hex value into a base-10 integer
function T(e){return parseInt(e,16)}
// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
// <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
function O(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}
// Check to see if string passed in is a percentage
function D(e){return"string"==typeof e&&-1!=e.indexOf("%")}
// Force a hex value to have 2 characters
function P(e){return 1==e.length?"0"+e:""+e}
// Replace a decimal with it's percentage value
function L(e){return e<=1&&(e=100*e+"%"),e}
// Converts a decimal to a hex value
function Q(e){return Math.round(255*parseFloat(e)).toString(16)}
// Converts a hex value to a decimal
function R(e){return T(e)/255}var j,N,F,z=(N="[\\s|\\(]+("+(j="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",F="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});
// `isValidCSSUnit`
// Take in a single string / number and check to see if it looks like a CSS unit
// (see `matchers` above for definition).
function H(e){return!!z.CSS_UNIT.exec(e)}
// `stringInputToObject`
// Permissive string parsing.  Take in a number of formats, and output an object
// based on detected format.  Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
function U(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,i=!1;if(I[e])e=I[e],i=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};
// Try to match string input using regular expressions.
// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
// Just return an object and let the conversion functions handle that.
// This way the result will be the same whether the tinycolor is initialized with string or object.
return(r=z.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=z.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=z.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=z.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=z.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=z.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=z.hex8.exec(e))?{r:T(r[1]),g:T(r[2]),b:T(r[3]),a:R(r[4]),format:i?"name":"hex8"}:(r=z.hex6.exec(e))?{r:T(r[1]),g:T(r[2]),b:T(r[3]),format:i?"name":"hex"}:(r=z.hex4.exec(e))?{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),a:R(r[4]+""+r[4]),format:i?"name":"hex8"}:!!(r=z.hex3.exec(e))&&{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),format:i?"name":"hex"}}function G(e){
// return valid WCAG2 parms for isReadable.
// If input parms are invalid, return {"level":"AA", "size":"small"}
var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}return r}();
/***/},
/***/"94ca":
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("1626"),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u||n!==l&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},
/***/"94eb":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("18ce"),i=function(){};
/* harmony default export */t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.beforeEnter,a=t.enter,o=t.afterEnter,s=t.leave,c=t.afterLeave,l=t.appear,u=void 0===l||l,h=t.tag,f=t.nativeOn,d={props:{appear:u,css:!1},on:{beforeEnter:n||i,enter:a||function(t,n){Object(r.a)(t,e+"-enter",n)},afterEnter:o||i,leave:s||function(t,n){Object(r.a)(t,e+"-leave",n)},afterLeave:c||i},nativeOn:f};
// transition-group
return h&&(d.tag=h),d}},
/***/"950a":
/***/function(e,t,n){var r=n("30c9");
/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},
/***/9520:
/***/function(e,t,n){var r=n("3729"),i=n("1a8c");
/** `Object#toString` result references. */e.exports=
/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function(e){if(!i(e))return!1;
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},
/***/9523:
/***/function(e,t,n){var r=n("a395");e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"953b":
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),a=n("8e16"),o=n("7f65"),s=n("384f"),c=n("5388"),l=i.Set,u=i.add,h=i.has;
// `Set.prototype.intersection` method
// https://github.com/tc39/proposal-set-methods
e.exports=function(e){var t=r(this),n=o(e),i=new l;return a(t)>n.size?c(n.getIterator(),(function(e){h(t,e)&&u(i,e)})):s(t,(function(e){n.includes(e)&&u(i,e)})),i}},
/***/"959b":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function a(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}
// Should characters that affect highlighting be highlighted separate?
// Does not include characters that will be output (such as `1.` and `-` for lists)
void 0===n.highlightFormatting&&(n.highlightFormatting=!1),
// Maximum number of nested blockquotes. Set to 0 for infinite nesting.
// Excess `>` will emit `error` token.
void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),
// Turn on task lists? ("- [ ] " and "- [x] ")
void 0===n.taskLists&&(n.taskLists=!1),
// Turn on strikethrough syntax
void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),
// Allow token types to be overridden by user-provided token types.
void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(o[s]=n.tokenTypeOverrides[s]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,h=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ *(?:\={1,}|-{1,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v="    ";// CommonMark specifies tab as 4 spaces
function y(e,t,n){return t.f=t.inline=n,n(e,t)}function A(e,t,n){return t.f=t.block=n,n(e,t)}function b(e){return!e||!/\S/.test(e.string)}
// Blocks
function w(t){if(
// Reset linkTitle state
t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,
// Reset EM state
t.em=!1,
// Reset STRONG state
t.strong=!1,
// Reset strikethrough state
t.strikethrough=!1,
// Reset state.quote
t.quote=0,
// Reset state.indentedCode
t.indentedCode=!1,t.f==C){var n=i;if(!n){var a=e.innerMode(r,t.htmlState);n="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}n&&(t.f=k,t.block=x,t.htmlState=null)}
// Reset state.trailingSpace
return t.trailingSpace=0,t.trailingSpaceNewLine=!1,
// Mark this line as blank
t.prevLine=t.thisLine,t.thisLine={stream:null},null}function x(t,r){var i=t.column()===r.indentation,s=b(r.prevLine.stream),d=r.indentedCode,m=r.prevLine.hr,v=!1!==r.list,A=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;
// compute once per line (on first token)
if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){
// While this list item's marker's indentation is less than the deepest
//  list item's content's indentation,pop the deepest list item
//  indentation off the stack, and update block indentation state
for(
// Reset inline styles which shouldn't propagate aross list items
r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}
// not comprehensive (currently only for setext detection purposes)
var x=!(s||m||r.prevLine.header||v&&d||r.prevLine.fencedCodeEnd),C=(!1===r.list||m||s)&&r.indentation<=A&&t.match(c),E=null;if(r.indentationDiff>=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,o.code;if(t.eatSpace())return null;if(i&&r.indentation<=A&&(E=t.match(h))&&E[1].length<=6)return r.quote=0,r.header=E[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,I(r);if(r.indentation<=A&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),I(r);if(!C&&!r.setext&&i&&r.indentation<=A&&(E=t.match(l))){var k=E[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,
// Add this list item's content's indentation to the stack
r.listStack.push(r.indentation),n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+k]),I(r)}return i&&r.indentation<=A&&(E=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(E[1]+"+ *$"),
// try switching mode
r.localMode=n.fencedCodeBlockHighlighting&&a(E[2]),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=_,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,I(r)):
// if setext set, indicates line after ---/===
r.setext||
// line before ---/===
!(x&&v||r.quote||!1!==r.list||r.code||C||g.test(t.string))&&(E=t.lookAhead(1))&&(E=E.match(f))?(r.setext?(r.header=r.setext,
// has no effect on type so we can reset it now
r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==E[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,I(r)):C?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===t.peek()?y(t,r,O):y(t,r,r.inline)}function C(t,n){var a=r.token(t,n.htmlState);if(!i){var o=e.innerMode(r,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=k,n.block=x,n.htmlState=null)}return a}function _(e,t){var r,i=t.listStack[t.listStack.length-1]||0,a=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(a||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),a||(r=I(t)),t.localMode=t.localState=null,t.block=x,t.f=k,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,a?A(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),o.code)}
// Inline
function I(e){var t=[];if(e.formatting){t.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(o.formatting+"-"+e.formatting[r]+"-"+e.header),
// Add `formatting-quote` and `formatting-quote-#` for blockquotes
// Add `error` instead if the maximum blockquote nesting depth is passed
"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(// Only apply inline styles to non-url text
e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),
// Add `quote-#` where the maximum for `#` is modeCfg.maxBlockquoteDepth
!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function E(e,t){if(e.match(d,!0))return I(t)}function k(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)// List marker (*, +, -, 1., etc)
return i.list=null,I(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,I(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),I(i);var s=t.next();
// Matches link titles present on next line
if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var l="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(l),!0))return o.linkHref}
// If this block is changed, it may need to be updated in GFM mode
if("`"===s){var h=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){// Must be exact
var d=I(i);return i.code=0,d}return i.formatting=h,I(i)}return i.code=f,I(i)}if(i.code)return I(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var p=I(i),g=o.formatting+"-escape";return p?p+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),I(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),I(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var p=I(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=B,p}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),I(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var p=I(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?B:k,p}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(p=I(i))?p+=" ":p="",p+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(p=I(i))?p+=" ":p="",p+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var y=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),A(t,i,C)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var b=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);b<3&&t.eat(s);)b++;var x=t.peek()||" ",_=!/\s/.test(x)&&(!m.test(x)||/\s/.test(w)||m.test(w)),E=!/\s/.test(w)&&(!m.test(w)||/\s/.test(x)||m.test(x)),M=null,T=null;
// See http://spec.commonmark.org/0.27/#emphasis-and-strong-emphasis
if(b%2&&(// Em
i.em||!_||"*"!==s&&E&&!m.test(w)?i.em!=s||!E||"*"!==s&&_&&!m.test(x)||(M=!1):M=!0),b>1&&(// Strong
i.strong||!_||"*"!==s&&E&&!m.test(w)?i.strong!=s||!E||"*"!==s&&_&&!m.test(x)||(T=!1):T=!0),null!=T||null!=M)return n.highlightFormatting&&(i.formatting=null==M?"strong":null==T?"em":"strong em"),!0===M&&(i.em=s),!0===T&&(i.strong=s),d=I(i),!1===M&&(i.em=!1),!1===T&&(i.strong=!1),d}else if(" "===s&&(t.eat("*")||t.eat("_"))){// Probably surrounded by spaces
if(" "===t.peek())// Surrounded by spaces, ignore
return I(i);// Not surrounded by spaces, back up pointer
t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)// Remove strikethrough
return n.highlightFormatting&&(i.formatting="strikethrough"),d=I(i),i.strikethrough=!1,d;if(t.match(/^[^\s]/,!1))// Add strikethrough
return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),I(i)}else if(" "===s&&t.match(/^~~/,!0)){// Probably surrounded by space
if(" "===t.peek())// Surrounded by spaces, ignore
return I(i);// Not surrounded by spaces, back up pointer
t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var O=I(i);return i.emoji=!1,O}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),I(i)}function S(e,t){if(">"===e.next()){t.f=t.inline=k,n.highlightFormatting&&(t.formatting="link");var r=I(t);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function B(e,t){
// Check if space, and return NULL if so (to avoid marking the space)
if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=T("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,I(t)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e){return function(t,r){if(t.next()===e){r.f=r.inline=k,n.highlightFormatting&&(r.formatting="link-string");var i=I(r);return r.linkHref=!1,i}return t.match(M[e]),r.linkHref=!0,I(r)}}function O(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=D,e.next(),// Consume [
n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,I(t)):y(e,t,k)}function D(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=P,n.highlightFormatting&&(t.formatting="link");var r=I(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function P(e,t){
// Check if space, and return NULL if so (to avoid marking the space)
return e.eatSpace()?null:(
// Match URL
e.match(/^[^\s]+/,!0),
// Check for link title
void 0===e.peek()?// End of line, set flag to check next line
t.linkTitle=!0:// More content on line, check if link title
e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=k,o.linkHref+" url")}var L={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:k,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(
// Reset state.formatting
t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},
// Reset state.taskList
t.taskList=!1,
// Reset state.trailingSpace
t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,i){return t.block==C&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:I,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n("56b3"),n("d5e0"),n("f040"));
/***/},
/***/9612:
/***/function(e,t,n){"use strict";
// EXPORTS
// UNUSED EXPORTS: default
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
var r;n.d(t,"a",(function(){/* binding */return E}));var i=new Uint8Array(16);function a(){
// lazy load so that environments that need to polyfill have a chance to do so
if(!r&&!(
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
// find the complete implementation of crypto (msCrypto) on IE11.
r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
/* harmony default export */var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
for(
/* harmony default export */var s=function(e){return"string"==typeof e&&o.test(e)},c=[],l=0
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
 * Convert array of 16 byte values to UUID string format of the form:
 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 */;l<256;++l)c.push((l+256).toString(16).substr(1));
/* harmony default export */var u,h,f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();
// Note: Be careful editing this code!  It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
// Consistency check for valid UUID.  If this throws, it's likely due to one
// of the following:
// - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields
if(!s(n))throw TypeError("Stringified UUID is invalid");return n},d=0,p=0;
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v1.js
// **`v1()` - Generate time-based UUID**

// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html
/* harmony default export */var g=
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/parse.js
function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);// Parse ########-....-....-....-............
return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,// Parse ........-####-....-....-............
n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,// Parse ........-....-####-....-............
n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,// Parse ........-....-....-####-............
n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,// Parse ........-....-....-....-############
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v35.js
var m=function(e,t,n){function r(e,r,i,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(// UTF8 escape
var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");// Compute hash of namespace and value, Per 4.3
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
// hashfunc([...namespace, ... value])`
var o=new Uint8Array(16+e.length);if(o.set(r),o.set(e,r.length),(o=n(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){a=a||0;for(var s=0;s<16;++s)i[a+s]=o[s];return i}return f(o)}// Function#name is not settable on some platforms (#270)
try{r.name=e;// eslint-disable-next-line no-empty
}catch(e){}// For CommonJS default export support
return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};
/**
 * Calculate output length with padding and bit length
 */
function v(e){return 14+(e+64>>>9<<4)+1}
/*
 * Calculate the MD5 of an array of little-endian words, and a bit length.
 */
/*
 * Add integers, wrapping at 2^32. This uses 16-bit operations internally
 * to work around bugs in some JS interpreters.
 */
function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}
/*
 * Bitwise rotate a 32-bit number to the left.
 */
/*
 * These functions implement the four basic operations the algorithm uses.
 */
function A(e,t,n,r,i,a){return y((o=y(y(t,e),y(r,a)))<<(s=i)|o>>>32-s,n);var o,s}function b(e,t,n,r,i,a,o){return A(t&n|~t&r,e,t,i,a,o)}function w(e,t,n,r,i,a,o){return A(t&r|n&~r,e,t,i,a,o)}function x(e,t,n,r,i,a,o){return A(t^n^r,e,t,i,a,o)}function C(e,t,n,r,i,a,o){return A(n^(t|~r),e,t,i,a,o)}
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/sha1.js
// Adapted from Chris Veness' SHA1 code at
// http://www.movable-type.co.uk/scripts/sha1.html
function _(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function I(e,t){return e<<t|e>>>32-t}
/* harmony default export */var E={v1:// See https://github.com/uuidjs/uuid for API details
function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||u,s=void 0!==e.clockseq?e.clockseq:h;// node and clockseq need to be initialized to random values if they're not
// specified.  We do this lazily to minimize issues related to insufficient
// system entropy.  See #189
if(null==o||null==s){var c=e.random||(e.rng||a)();null==o&&(
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
o=u=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==s&&(
// Per 4.2.2, randomize (14 bit) clockseq
s=h=16383&(c[6]<<8|c[7]))}// UUID timestamps are 100 nano-second units since the Gregorian epoch,
// (1582-10-15 00:00).  JSNumbers aren't precise enough for this, so
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
var l=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:p+1,m=l-d+(g-p)/1e4;// Per 4.2.1.2, use count of uuid's generated during the current clock
// cycle to simulate higher resolution clock
// Per 4.2.1.2 Throw error if too many uuids are requested
if(// Per 4.2.1.2, Bump clockseq on clock regression
m<0&&void 0===e.clockseq&&(s=s+1&16383),// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
// time interval
(m<0||l>d)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=l,p=g,h=s;// `time_low`
var v=(1e4*(268435455&(// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
l+=122192928e5))+g)%4294967296;i[r++]=v>>>24&255,i[r++]=v>>>16&255,i[r++]=v>>>8&255,i[r++]=255&v;// `time_mid`
var y=l/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,// `time_high_and_version`
i[r++]=y>>>24&15|16,// include version
i[r++]=y>>>16&255,// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
i[r++]=s>>>8|128,// `clock_seq_low`
i[r++]=255&s;// `node`
for(var A=0;A<6;++A)i[r+A]=o[A];return t||f(i)}
/* harmony default export */,v3:m("v3",48,(
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/md5.js
/*
 * Browser-compatible JavaScript MD5
 *
 * Modification of JavaScript MD5
 * https://github.com/blueimp/JavaScript-MD5
 *
 * Copyright 2011, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * https://opensource.org/licenses/MIT
 *
 * Based on
 * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
 * Digest Algorithm, as defined in RFC 1321.
 * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
 * Distributed under the BSD License
 * See http://pajhome.org.uk/crypt/md5 for more info.
 */
function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));// UTF8 escape
e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}
/*
 * Convert an array of little-endian words to an array of bytes
 */
return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var a=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(o)}return t}(function(e,t){
/* append padding */
e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,l=i,u=a;n=b(n,r,i,a,e[o],7,-680876936),a=b(a,n,r,i,e[o+1],12,-389564586),i=b(i,a,n,r,e[o+2],17,606105819),r=b(r,i,a,n,e[o+3],22,-1044525330),n=b(n,r,i,a,e[o+4],7,-176418897),a=b(a,n,r,i,e[o+5],12,1200080426),i=b(i,a,n,r,e[o+6],17,-1473231341),r=b(r,i,a,n,e[o+7],22,-45705983),n=b(n,r,i,a,e[o+8],7,1770035416),a=b(a,n,r,i,e[o+9],12,-1958414417),i=b(i,a,n,r,e[o+10],17,-42063),r=b(r,i,a,n,e[o+11],22,-1990404162),n=b(n,r,i,a,e[o+12],7,1804603682),a=b(a,n,r,i,e[o+13],12,-40341101),i=b(i,a,n,r,e[o+14],17,-1502002290),n=w(n,r=b(r,i,a,n,e[o+15],22,1236535329),i,a,e[o+1],5,-165796510),a=w(a,n,r,i,e[o+6],9,-1069501632),i=w(i,a,n,r,e[o+11],14,643717713),r=w(r,i,a,n,e[o],20,-373897302),n=w(n,r,i,a,e[o+5],5,-701558691),a=w(a,n,r,i,e[o+10],9,38016083),i=w(i,a,n,r,e[o+15],14,-660478335),r=w(r,i,a,n,e[o+4],20,-405537848),n=w(n,r,i,a,e[o+9],5,568446438),a=w(a,n,r,i,e[o+14],9,-1019803690),i=w(i,a,n,r,e[o+3],14,-187363961),r=w(r,i,a,n,e[o+8],20,1163531501),n=w(n,r,i,a,e[o+13],5,-1444681467),a=w(a,n,r,i,e[o+2],9,-51403784),i=w(i,a,n,r,e[o+7],14,1735328473),n=x(n,r=w(r,i,a,n,e[o+12],20,-1926607734),i,a,e[o+5],4,-378558),a=x(a,n,r,i,e[o+8],11,-2022574463),i=x(i,a,n,r,e[o+11],16,1839030562),r=x(r,i,a,n,e[o+14],23,-35309556),n=x(n,r,i,a,e[o+1],4,-1530992060),a=x(a,n,r,i,e[o+4],11,1272893353),i=x(i,a,n,r,e[o+7],16,-155497632),r=x(r,i,a,n,e[o+10],23,-1094730640),n=x(n,r,i,a,e[o+13],4,681279174),a=x(a,n,r,i,e[o],11,-358537222),i=x(i,a,n,r,e[o+3],16,-722521979),r=x(r,i,a,n,e[o+6],23,76029189),n=x(n,r,i,a,e[o+9],4,-640364487),a=x(a,n,r,i,e[o+12],11,-421815835),i=x(i,a,n,r,e[o+15],16,530742520),n=C(n,r=x(r,i,a,n,e[o+2],23,-995338651),i,a,e[o],6,-198630844),a=C(a,n,r,i,e[o+7],10,1126891415),i=C(i,a,n,r,e[o+14],15,-1416354905),r=C(r,i,a,n,e[o+5],21,-57434055),n=C(n,r,i,a,e[o+12],6,1700485571),a=C(a,n,r,i,e[o+3],10,-1894986606),i=C(i,a,n,r,e[o+10],15,-1051523),r=C(r,i,a,n,e[o+1],21,-2054922799),n=C(n,r,i,a,e[o+8],6,1873313359),a=C(a,n,r,i,e[o+15],10,-30611744),i=C(i,a,n,r,e[o+6],15,-1560198380),r=C(r,i,a,n,e[o+13],21,1309151649),n=C(n,r,i,a,e[o+4],6,-145523070),a=C(a,n,r,i,e[o+11],10,-1120210379),i=C(i,a,n,r,e[o+2],15,718787259),r=C(r,i,a,n,e[o+9],21,-343485551),n=y(n,s),r=y(r,c),i=y(i,l),a=y(a,u)}return[n,r,i,a]}
/*
 * Convert an array bytes to an array of little-endian words
 * Characters >255 have their high-byte silently ignored.
 */(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(v(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),v4:
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
// Copy bytes to buffer, if provided
if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return f(r)}
/* harmony default export */,v5:m("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));// UTF8 escape
e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(
// Convert Array-like to Array
e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),c=0;c<o;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];s[c]=l}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<o;++h){for(var f=new Uint32Array(80),d=0;d<16;++d)f[d]=s[h][d];for(var p=16;p<80;++p)f[p]=I(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],A=n[4],b=0;b<80;++b){var w=Math.floor(b/20),x=I(g,5)+_(w,m,v,y)+A+t[w]+f[b]>>>0;A=y,y=v,v=I(m,30)>>>0,m=g,g=x}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+A>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))};
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v5.js
},
/***/9638:
/***/function(e,t){e.exports=
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function(e,t){return e===t||e!=e&&t!=t}},
/***/"964c":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("09ee");
/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
/* harmony default export */t.a=function(e){var t=new e.constructor(e.byteLength);return new r.a(t).set(new r.a(e)),t}},
/***/"964f":
/***/function(e,t,n){var r=n("de85")("keys"),i=n("5689");e.exports=function(e){return r[e]||(r[e]=i(e))}},
/***/"966f":
/***/function(e,t,n){var r=n("7e64"),i=n("c05f");
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function(e,t,n,a){var o=n.length,s=o,c=!a;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var u=(l=n[o])[0],h=e[u],f=l[1];if(c&&l[2]){if(void 0===h&&!(u in e))return!1}else{var d=new r;if(a)var p=a(h,f,u,e,t,d);if(!(void 0===p?i(f,h,3,a,d):p))return!1}}return!0}},
/***/9680:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */function r(e,t,n,r,i,a,o){if(0===i)return!1;var s=i,c=0;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;var l=(c=(t-r)/(e-n))*a-o+(e*r-n*t)/(e-n);return l*l/(c*c+1)<=s/2*s/2}
/***/n.d(t,"a",(function(){return r}))},
/***/"96cf":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){
/**
 * Copyright (c) 2014, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * https://raw.github.com/facebook/regenerator/master/LICENSE file. An
 * additional grant of patent rights can be found in the PATENTS file in
 * the same directory.
 */
!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",l="object"==typeof e,u=t.regeneratorRuntime;if(u)l&&(
// If regeneratorRuntime is defined globally and we're in a module,
// make the exports object identical to regeneratorRuntime.
e.exports=u);
// Don't bother evaluating the rest of this file if the runtime was
// already defined globally.
else{(
// Define the runtime globally (as expected by generated code) as either
// module.exports (if we're in a module) or a new, empty object.
u=t.regeneratorRuntime=l?e.exports:{}).wrap=b;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={},m={};m[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(T([])));y&&y!==r&&i.call(y,o)&&(
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
m=y);var A=_.prototype=x.prototype=Object.create(m);C.prototype=A.constructor=_,_.constructor=C,_[c]=C.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(A),e},
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
u.awrap=function(e){return{__await:e}},I(E.prototype),E.prototype[s]=function(){return this},u.AsyncIterator=E,
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
u.async=function(e,t,n,r){var i=new E(b(e,t,n,r));return u.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
I(A),A[c]="Generator",
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
A[o]=function(){return this},A.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
return n.done=!0,n}},u.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!e)for(var t in this)
// Not sure about the optimal order of these conditions:
"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
t.method="next",t.arg=n),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),B(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;B(n)}return i}}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg=n),g}}}function b(e,t,n,r){
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var i=t&&t.prototype instanceof x?t:x,a=Object.create(i.prototype),o=new M(r||[]);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
return a._invoke=function(e,t,n){var r=h;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=w(e,t,n);if("normal"===c.type){if(
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
r=n.done?p:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
n.method="throw",n.arg=c.arg)}}}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
(e,n,o),a}
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function x(){}function C(){}function _(){}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function I(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){function n(t,r,a,o){var s=w(e[t],e,r);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(e){n("next",e,a,o)}),(function(e){n("throw",e,a,o)})):Promise.resolve(l).then((function(e){
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration. If the Promise is rejected, however, the
// result for this iteration will be rejected with the same
// reason. Note that rejections of yielded Promises are not
// thrown back into the generator function, as is the case
// when an awaited Promise is rejected. This difference in
// behavior between yield and await is important, because it
// allows the consumer to decide what to do with the yielded
// rejection (swallow it and continue, manually .throw it back
// into the generator, abandon iteration, whatever). With
// await, by contrast, there is no opportunity to examine the
// rejection reason outside the generator function, so the
// only option is to throw it from the await expression, and
// let the generator function handle the exception.
c.value=e,a(c)}),o)}o(s.arg)}var r;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke=function(e,t){function i(){return new Promise((function(r,i){n(e,t,r,i)}))}return r=
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
r?r.then(i,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
i):i()}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
t.delegate=null,"throw"===t.method){if(e.iterator.return&&(
// If the delegate iterator has a return method, give it a
// chance to clean up.
t.method="return",t.arg=n,k(e,t),"throw"===t.method))
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
t[e.resultName]=a.value,
// Resume execution at the desired location (see delegateYield).
t.next=e.nextLoc,
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
"return"!==t.method&&(t.method="next",t.arg=n),
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}
// Return an iterator with no values.
return{next:O}}function O(){return{value:n,done:!0}}}(
// Among the various tricks for obtaining a reference to the global
// object, this seems to be the most reliable technique that does not
// use indirect eval (which violates Content Security Policy).
"object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this);
/* WEBPACK VAR INJECTION */}).call(this,n("c8ba"))
/***/},
/***/"96f3":
/***/function(e,t){
/** Used for built-in method references. */
var n=Object.prototype.hasOwnProperty;
/** Used to check objects for own properties. */e.exports=
/**
 * The base implementation of `_.has` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function(e,t){return null!=e&&n.call(e,t)}},
/***/"970b":
/***/function(e,t,n){n("d9e2"),e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/9742:
/***/function(e,t){
// IE 8- don't enum bug keys
e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
/***/},
/***/"974c":
/***/function(e,t,n){"use strict";
// 19.1.2.1 Object.assign(target, source, ...)
var r=n("c94e"),i=n("5a5d"),a=n("10dd"),o=n("e171"),s=n("42ee"),c=n("dbaf"),l=Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
e.exports=!l||n("f937")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(// eslint-disable-line no-unused-vars
var n=s(e),l=arguments.length,u=1,h=a.f,f=o.f;l>u;)for(var d,p=c(arguments[u++]),g=h?i(p).concat(h(p)):i(p),m=g.length,v=0;m>v;)d=g[v++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:l},
/***/"97a6":
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("c747");r(r.P+r.F*!n("55c7")([].reduce,!0),"Array",{
// 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
reduce:function(e/* , initialValue */){return i(this,e,arguments.length,arguments[1],!1)}})},
/***/"97d3":
/***/function(e,t,n){
// 19.1.3.1 Object.assign(target, source)
var r=n("f083");r(r.S+r.F,"Object",{assign:n("974c")})},
/***/"97e1":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return s})),
/* harmony export (binding) */n.d(t,"b",(function(){return c}));
/* harmony import */var r=n("41b2"),i=n.n(r),a=n("7320"),o=i()({},a.a.Modal);
/* harmony import */function s(e){o=e?i()({},o,e):i()({},a.a.Modal)}function c(){return o}
/***/},
/***/9850:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("1687"),i=n("dce8"),a=Math.min,o=Math.max,s=new i.a,c=new i.a,l=new i.a,u=new i.a,h=new i.a,f=new i.a,d=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=a(e.x,this.x),n=a(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=o(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=o(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=r.create();return r.translate(a,a,[-t.x,-t.y]),r.scale(a,a,[n,i]),r.translate(a,a,[e.x,e.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,o=r.x+r.width,s=r.y,c=r.y+r.height,l=t.x,u=t.x+t.width,d=t.y,p=t.y+t.height,g=!(o<l||u<a||c<d||p<s);if(n){var m=1/0,v=0,y=Math.abs(o-l),A=Math.abs(u-a),b=Math.abs(c-d),w=Math.abs(p-s),x=Math.min(y,A),C=Math.min(b,w);o<l||u<a?x>v&&(v=x,y<A?i.a.set(f,-y,0):i.a.set(f,A,0)):x<m&&(m=x,y<A?i.a.set(h,y,0):i.a.set(h,-A,0)),c<d||p<s?C>v&&(v=C,b<w?i.a.set(f,0,-b):i.a.set(f,0,w)):x<m&&(m=x,b<w?i.a.set(h,0,b):i.a.set(h,0,-w))}return n&&i.a.copy(n,g?h:f),g},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],f=r[4],d=r[5];return t.x=n.x*i+f,t.y=n.y*h+d,t.width=n.width*i,t.height=n.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=l.x=n.x,s.y=u.y=n.y,c.x=u.x=n.x+n.width,c.y=l.y=n.y+n.height,s.transform(r),u.transform(r),c.transform(r),l.transform(r),t.x=a(s.x,c.x,l.x,u.x),t.y=a(s.y,c.y,l.y,u.y);var p=o(s.x,c.x,l.x,u.x),g=o(s.y,c.y,l.y,u.y);t.width=p-t.x,t.height=g-t.y}else t!==n&&e.copy(t,n)},e}();
/* harmony import */
/* harmony default export */t.a=d},
/***/"985b":
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
n("f948")("Map");
/***/},
/***/9861:
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's replaced to module below
n("5352")},
/***/9876:
/***/function(e,t,n){
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var r=n("03d6"),i=n("9742");e.exports=Object.keys||function(e){return r(e,i)}},
/***/9886:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CRender",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"extendNewGraph",{enumerable:!0,get:function(){return a.extendNewGraph}}),t.default=void 0;var i=r(n("85c4")),a=n("b06d"),o=i.default;t.default=o},
/***/"98b7":
/***/function(e,t,n){"use strict";
/* harmony import */var r;r=n("22d1").a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},
/* harmony default export */t.a=r},
/***/9911:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("857a");
// `String.prototype.link` method
// https://tc39.es/ecma262/#sec-string.prototype.link
r({target:"String",proto:!0,forced:n("af03")("link")},{link:function(e){return i(this,"a","href",e)}})},
/***/9934:
/***/function(e,t,n){var r=n("6fcd"),i=n("41c3"),a=n("30c9");
/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */e.exports=function(e){return a(e)?r(e,!0):i(e)}},
/***/9960:
/***/function(e,t,n){var r=n("2761").f,i=Function.prototype,a=/^\s*function ([^ (]*)/,o="name";
// 19.2.4.2 name
o in i||n("c94e")&&r(i,o,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},
/***/9961:
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),a=n("83b9"),o=n("7f65"),s=n("5388"),c=i.add,l=i.has,u=i.remove;
// `Set.prototype.symmetricDifference` method
// https://github.com/tc39/proposal-set-methods
e.exports=function(e){var t=r(this),n=o(e).getIterator(),i=a(t);return s(n,(function(e){l(t,e)?u(i,e):c(i,e)})),i}},
/***/"998a":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("76a5");
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/function i(e,t,n,i,a,o,s,c){return new r.a({style:{text:e,font:t,align:n,verticalAlign:i,padding:a,rich:o,overflow:s?"truncate":null,lineHeight:c}}).getBoundingRect()}
/***/},
/***/"99af":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),c=n("07fa"),l=n("3511"),u=n("8418"),h=n("65f0"),f=n("1dde"),d=n("b622"),p=n("1212"),g=d("isConcatSpreadable"),m=p>=51||!i((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)};
// `Array.prototype.concat` method
// https://tc39.es/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
r({target:"Array",proto:!0,arity:1,forced:!m||!f("concat")},{
// eslint-disable-next-line no-unused-vars -- required for `.length`
concat:function(e){var t,n,r,i,a,o=s(this),f=h(o,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(v(a=-1===t?o:arguments[t]))for(i=c(a),l(d+i),n=0;n<i;n++,d++)n in a&&u(f,d,a[n]);else l(d+1),u(f,d++,a);return f.length=d,f}})},
/***/"99cd":
/***/function(e,t){e.exports=
/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}},
/***/"99d3":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){var r=n("585a"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{
// Use `util.types` for Node.js 10+.
var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util");
// Legacy `process.binding('util')` for Node.js < 10.
}catch(e){}}();
/** Detect free variable `exports`. */e.exports=s}).call(this,n("62e4")(e))
/***/},
/***/"99f4":
/***/function(e,t,n){"use strict";var r=n("b5db");e.exports=/MSIE|Trident/.test(r)},
/***/"9a1f":
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),a=n("825a"),o=n("0d51"),s=n("35a1"),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+" is not iterable")}},
/***/"9a4b":
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("ee03"),i=n("8cc4"),a=n("e56b");
/* harmony import */
/* harmony default export */t.a=
/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function(e){return Object(a.a)(e)?Object(r.a)(e):Object(i.a)(e)}},
/***/"9a51":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"9a9a":
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("a732")},
/***/"9ab4":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"9ac3":
/***/function(e,t,n){n("1b1e")("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/"9adc":
/***/function(e,t,n){"use strict";var r=n("8558");e.exports="NODE"===r},
/***/"9aff":
/***/function(e,t,n){var r=n("9638"),i=n("30c9"),a=n("c098"),o=n("1a8c");
/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},
/***/"9b02":
/***/function(e,t,n){var r=n("656b");
/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},
/***/"9b06":
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/"9b21":
/***/function(e,t,n){n("0b99"),n("084e"),e.exports=n("5524").Array.from},
/***/"9b42":
/***/function(e,t,n){n("a4d3"),n("e01a"),n("d28b"),n("14d9"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/"9b57":
/***/function(e,t,n){"use strict";t.__esModule=!0;var r,i=n("adf5"),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,a.default)(e)}},
/***/"9b6f":
/***/function(e,t){
// 7.1.4 ToInteger
var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},
/***/"9bdd":
/***/function(e,t,n){"use strict";var r=n("825a"),i=n("2a62");
// call something on iterator step with safe closing on error
e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},
/***/"9bf2":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("0cfb"),a=n("aed9"),o=n("825a"),s=n("a04b"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var r=u(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch(e){/* empty */}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},
/***/"9c0b":
/***/function(e,t,n){"use strict";
// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap
var r=n("f083"),i=n("428b"),a=n("42ee"),o=n("6373"),s=n("2ce8"),c=n("0a48");r(r.P,"Array",{flatMap:function(e/* , thisArg */){var t,n,r=a(this);return s(e),t=o(r.length),n=c(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n("66b7")("flatMap")},
/***/"9c0c":
/***/function(e,t,n){
// optional / simple context binding
var r=n("1609");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},
/***/"9c0e":
/***/function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},
/***/"9cbb":
/***/function(e,t,n){"use strict";
// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheClear.js
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
/* harmony default export */var r=function(){this.__data__=[],this.size=0},i=n("6071");
// EXTERNAL MODULE: ./node_modules/lodash-es/eq.js
/* harmony default export */var a=
// CONCATENATED MODULE: ./node_modules/lodash-es/_assocIndexOf.js
/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function(e,t){for(var n=e.length;n--;)if(Object(i.a)(e[n][0],t))return n;return-1},o=Array.prototype.splice;
// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheDelete.js
/** Used for built-in method references. */
/* harmony default export */var s=
/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheGet.js
/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
/* harmony default export */var c=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]};
// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheHas.js
/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
/* harmony default export */var l=function(e){return a(this.__data__,e)>-1};
// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheSet.js
/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
/* harmony default export */var u=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};
// CONCATENATED MODULE: ./node_modules/lodash-es/_ListCache.js
/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function h(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `ListCache`.
h.prototype.clear=r,h.prototype.delete=s,h.prototype.get=c,h.prototype.has=l,h.prototype.set=u;
/* harmony default export */t.a=h;
/***/},
/***/"9cec":
/***/function(e,t,n){"use strict";
// https://github.com/tc39/proposal-string-pad-start-end
var r=n("f083"),i=n("1af4"),a=n("64ff"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*o,"String",{padEnd:function(e/* , fillString = ' ' */){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},
/***/"9cf9":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return i})),
/* harmony export (binding) */n.d(t,"c",(function(){return a})),
/* harmony export (binding) */n.d(t,"a",(function(){return o}));var r=Math.round;function i(e,t,n){if(t){var i=t.x1,a=t.x2,s=t.y1,c=t.y2;e.x1=i,e.x2=a,e.y1=s,e.y2=c;var l=n&&n.lineWidth;return l?(r(2*i)===r(2*a)&&(e.x1=e.x2=o(i,l,!0)),r(2*s)===r(2*c)&&(e.y1=e.y2=o(s,l,!0)),e):e}}function a(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,s=t.height;e.x=r,e.y=i,e.width=a,e.height=s;var c=n&&n.lineWidth;return c?(e.x=o(r,c,!0),e.y=o(i,c,!0),e.width=Math.max(o(r+a,c,!1)-e.x,0===a?0:1),e.height=Math.max(o(i+s,c,!1)-e.y,0===s?0:1),e):e}}function o(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2==0?i/2:(i+(n?1:-1))/2}
/***/},
/***/"9d11":
/***/function(e,t,n){var r=n("fc5e"),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},
/***/"9d1d":
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083"),i=n("59ad"),a=n("d49b");r(r.S,"Math",{fscale:function(e,t,n,r,o){return a(i(e,t,n,r,o))}})},
/***/"9d4a":
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("9485")},
/***/"9d57":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"b",(function(){return h})),
/* harmony export (binding) */n.d(t,"e",(function(){return f})),
/* harmony export (binding) */n.d(t,"d",(function(){return d})),
/* harmony export (binding) */n.d(t,"f",(function(){return g})),
/* harmony export (binding) */n.d(t,"c",(function(){return m})),
/* harmony export (binding) */n.d(t,"a",(function(){return v}));
/* harmony import */var r=n("6d8b"),i=n("3842"),a=n("ee1a"),o=n("cccd"),s=n("f658"),c="__ec_stack_";
/* harmony import */function l(e){return e.get("stack")||c+e.seriesIndex}function u(e){return e.dim+e.index}
/**
 * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.
 */function h(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o<e.count;o++)t.push(Object(r.defaults)({bandWidth:a,axisKey:i,stackId:c+o},e));var s=p(t),l=[];for(o=0;o<e.count;o++){var u=s[i][c+o];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function f(e,t){var n=[];return t.eachSeriesByType(e,(function(e){
// Check series coordinate, do layout for cartesian2d only
y(e)&&n.push(e)})),n}
/**
 * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent
 * values.
 * This works for time axes, value axes, and log axes.
 * For a single time axis, return value is in the form like
 * {'x_0': [1000000]}.
 * The value of 1000000 is in milliseconds.
 */function d(e){var t=function(e){
/**
   * Map from axis.index to values.
   * For a single time axis, axisValues is in the form like
   * {'x_0': [1495555200000, 1495641600000, 1495728000000]}.
   * Items in axisValues[x], e.g. 1495555200000, are time values of all
   * series.
   */
var t={};Object(r.each)(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?
// No value in previous series
t[i].push(l):
// No previous data for the axis
t[i]=[l];
// Ignore duplicated time values in the same axis
}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];if(a){
// Sort axis values into ascending order to calculate gaps
a.sort((function(e,t){return e-t}));for(var o=null,s=1;s<a.length;++s){var c=a[s]-a[s-1];c>0&&(
// Ignore 0 delta because they are of the same axis value
o=null===o?c:Math.min(o,c))}
// Set to null if only have one data
n[i]=o}}return n}(e),n=[];return Object(r.each)(e,(function(e){var r,a=e.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)r=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,c=t[s],h=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);r=c?h/d*c:h}else{var p=e.getData();r=Math.abs(o[1]-o[0])/p.count()}var g=Object(i.q)(e.get("barWidth"),r),m=Object(i.q)(e.get("barMaxWidth"),r),v=Object(i.q)(
// barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis,
// the auto-calculated bar width might be less than 0.5 / 1.
e.get("barMinWidth")||(A(e)?.5:1),r),y=e.get("barGap"),b=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:b,axisKey:u(a),stackId:l(e)})})),p(n)}function p(e){
// Columns info on each category axis. Key is cartesian name
var t={};Object(r.each)(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};
// Caution: In a single coordinate system, these barGrid attributes
// will be shared by series. Consider that they have default values,
// only the attributes set on the last series will work.
// Do not change this fact unless there will be a break change.
var c=e.barWidth;c&&!o[s].width&&(
// See #6312, do not restrict width.
o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var h=e.barGap;null!=h&&(a.gap=h);var f=e.barCategoryGap;null!=f&&(a.categoryGap=f)}));var n={};return Object(r.each)(t,(function(e,t){n[t]={};var a=e.stacks,o=e.bandWidth,s=e.categoryGap;if(null==s){var c=Object(r.keys)(a).length;
// More columns in one group
// the spaces between group is smaller. Or the column will be too thin.
s=Math.max(35-4*c,15)+"%"}var l=Object(i.q)(s,o),u=Object(i.q)(e.gap,1),h=e.remainedWidth,f=e.autoWidthCount,d=(h-l)/(f+(f-1)*u);d=Math.max(d,0),
// Find if any auto calculated bar exceeded maxBarWidth
Object(r.each)(a,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){
// `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as
// CSS does. Because barWidth can be a percent value, where
// `barMaxWidth` can be used to restrict the final width.
r=e.width;t&&(r=Math.min(r,t)),
// `minWidth` has higher priority, as described above
n&&(r=Math.max(r,n)),e.width=r,h-=r+u*r,f--}else{var r=d;t&&t<r&&(r=Math.min(t,h)),
// `minWidth` has higher priority. `minWidth` decide that whether the
// bar is able to be visible. So `minWidth` should not be restricted
// by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In
// the extreme cases for `value` axis, bars are allowed to overlap
// with each other if `minWidth` specified.
n&&n>r&&(r=n),r!==d&&(e.width=r,h-=r+u*r,f--)}})),
// Recalculate width again
d=(h-l)/(f+(f-1)*u),d=Math.max(d,0);var p,g=0;Object(r.each)(a,(function(e,t){e.width||(e.width=d),p=e,g+=e.width*(1+u)})),p&&(g-=p.width*u);var m=-g/2;Object(r.each)(a,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:m,width:e.width},m+=e.width*(1+u)}))})),n}function g(e,t,n){if(e&&t){var r=e[u(t)];return null!=r&&null!=n?r[l(n)]:r}}function m(e,t){var n=f(e,t),i=d(n);Object(r.each)(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),r=l(e),a=i[u(n)][r],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})}))}
// TODO: Do not support stack in large mode yet.
function v(e){return{seriesType:e,plan:Object(o.a)(),reset:function(e){if(y(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),c=t.getDimensionIndex(t.mapDimension(r.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),h=t.getCalculationInfo("stackResultDimension"),f=Object(a.c)(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=
// See cases in `test/bar-start.html` and `#7412`, `#8747`.
function(e,t){var n=t.model.get("startValue");n||(n=0);return t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}
/***/(0,i),g=A(e),m=e.get("barMinHeight")||0,v=h&&t.getDimensionIndex(h),b=t.getLayout("size"),w=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,a=g&&Object(s.a)(3*i),u=g&&l&&Object(s.a)(3*i),h=g&&Object(s.a)(i),y=n.master.getRect(),A=d?y.width:y.height,x=t.getStore(),C=0;null!=(r=e.next());){var _=x.get(f?v:o,r),I=x.get(c,r),E=p,k=void 0;
// Because of the barMinHeight, we can not use the value in
// stackResultDimension directly.
f&&(k=+_-x.get(o,r));var S=void 0,B=void 0,M=void 0,T=void 0;if(d){var O=n.dataToPoint([_,I]);if(f)E=n.dataToPoint([k,I])[0];S=E,B=O[1]+w,M=O[0]-E,T=b,Math.abs(M)<m&&(M=(M<0?-1:1)*m)}else{O=n.dataToPoint([I,_]);if(f)E=n.dataToPoint([I,k])[1];S=O[0]+w,B=E,M=b,T=O[1]-E,Math.abs(T)<m&&(
// Include zero to has a positive bar
T=(T<=0?-1:1)*m)}g?(a[C]=S,a[C+1]=B,a[C+2]=d?M:T,u&&(u[C]=d?y.x:S,u[C+1]=d?B:y.y,u[C+2]=A),h[r]=r):t.setItemLayout(r,{x:S,y:B,width:M,height:T}),C+=3}g&&t.setLayout({largePoints:a,largeDataIndices:h,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function y(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function A(e){return e.pipelineContext&&e.pipelineContext.large}},
/***/"9d85":
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaultConfig=
/**
 * @description Change default configuration
 * @param {String} key          Configuration key
 * @param {Object|Array} config Your config
 * @return {Undefined} No return
 */
function(e,t){if(!g["".concat(e,"Config")])return;(0,p.deepMerge)(g["".concat(e,"Config")],t)},Object.defineProperty(t,"colorConfig",{enumerable:!0,get:function(){return r.colorConfig}}),Object.defineProperty(t,"gridConfig",{enumerable:!0,get:function(){return i.gridConfig}}),Object.defineProperty(t,"xAxisConfig",{enumerable:!0,get:function(){return a.xAxisConfig}}),Object.defineProperty(t,"yAxisConfig",{enumerable:!0,get:function(){return a.yAxisConfig}}),Object.defineProperty(t,"titleConfig",{enumerable:!0,get:function(){return o.titleConfig}}),Object.defineProperty(t,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(t,"barConfig",{enumerable:!0,get:function(){return c.barConfig}}),Object.defineProperty(t,"pieConfig",{enumerable:!0,get:function(){return l.pieConfig}}),Object.defineProperty(t,"radarAxisConfig",{enumerable:!0,get:function(){return u.radarAxisConfig}}),Object.defineProperty(t,"radarConfig",{enumerable:!0,get:function(){return h.radarConfig}}),Object.defineProperty(t,"gaugeConfig",{enumerable:!0,get:function(){return f.gaugeConfig}}),Object.defineProperty(t,"legendConfig",{enumerable:!0,get:function(){return d.legendConfig}}),t.keys=void 0;var r=n("f3cb"),i=n("49bc"),a=n("c930"),o=n("887c"),s=n("6eb9"),c=n("f111"),l=n("222a"),u=n("0cd4"),h=n("3938"),f=n("cc6d"),d=n("60f1"),p=n("becb"),g={colorConfig:r.colorConfig,gridConfig:i.gridConfig,xAxisConfig:a.xAxisConfig,yAxisConfig:a.yAxisConfig,titleConfig:o.titleConfig,lineConfig:s.lineConfig,barConfig:c.barConfig,pieConfig:l.pieConfig,radarAxisConfig:u.radarAxisConfig,radarConfig:h.radarConfig,gaugeConfig:f.gaugeConfig,legendConfig:d.legendConfig};t.keys=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"]},
/***/"9da3":
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
!function(){"use strict";var e;(// CommonJS
e=n("56b3")).defineMode("powershell",(function(){function e(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;i<e.length;i++)e[i]instanceof RegExp?e[i]=e[i].source:e[i]=e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+r,"i")}var t="(?=[^A-Za-z\\d\\-_]|$)",n=/[\w\-:]/,r=e([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:t}),i=/[\[\]{},;`\.]|@[({]/,a=e(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),o=e([a,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),s=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,c=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,l=/[A-Z]:|%|\?/i,u=e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),h=e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),f={keyword:r,number:s,operator:o,builtin:e([l,u,h],{suffix:t}),punctuation:i,identifier:c};
// tokenizers
function d(e,t){
// Handle Comments
//var ch = stream.peek();
var r=t.returnStack[t.returnStack.length-1];if(r&&r.shouldReturnFrom(t))return t.tokenize=r.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var i in f)if(e.match(f[i]))return i;var a=e.next();
// single-quote string
if("'"===a)return p(e,t);if("$"===a)return w(e,t);
// double-quote string
if('"'===a)return g(e,t);if("<"===a&&e.eat("#"))return t.tokenize=b,b(e,t);if("#"===a)return e.skipToEnd(),"comment";if("@"===a){var o=e.eat(/["']/);if(o&&e.eol())return t.tokenize=C,t.startQuote=o[0],C(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(n))
// splatted variable
return w(e,t)}return"error"}function p(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=d,"string";return"error"}function g(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=m,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=d,"string"}else e.next()}return"error"}function m(e,t){return A(e,t,g)}function v(e,t){return t.tokenize=C,t.startQuote='"',C(e,t)}function y(e,t){return A(e,t,v)}function A(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({
/*jshint loopfunc:true */
shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=d,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=w,t.tokenize(e,t)}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=d;break}r="#"===n}return"comment"}function w(e,t){var r=e.peek();return e.eat("{")?(t.tokenize=x,x(e,t)):null!=r&&r.match(n)?(e.eatWhile(n),t.tokenize=d,"variable-2"):(t.tokenize=d,"error")}function x(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=d;break}return"variable-2"}function C(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=d;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=y,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}return{startState:function(){return{returnStack:[],bracketNesting:0,tokenize:d}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"}})),e.defineMIME("application/x-powershell","powershell")}();
/***/},
/***/"9dab":
/***/function(e,t,n){
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var r=n("f083");r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>16,c=i>>16,l=(s*o>>>0)+(a*o>>>16);return s*c+(l>>16)+((a*c>>>0)+(l&n)>>16)}})},
/***/"9e69":
/***/function(e,t,n){var r=n("2b3e").Symbol;
/** Built-in value references. */e.exports=r},
/***/"9e9b":
/***/function(e,t,n){"use strict";
// B.2.3.7 String.prototype.fontcolor(color)
n("e681")("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},
/***/"9ed1":
/***/function(e,t,n){"use strict";n("37c5");var r=n("77ea"),i=n("0713"),a=n("f937"),o=n("688d"),s=n("de24"),c=n("e056"),l=s("species"),u=!a((function(){
// #replace needs built-in support for named groups.
// #match works fine because it just return the exec results, even if it has
// a "grops" property.
var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),h=function(){
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),d=!a((function(){
// String methods call symbol-named RegEp methods
var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=d?!a((function(){
// Symbol-named RegExp methods call .exec
var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(
// RegExp[@@split] doesn't call the regex's exec method, but first creates
// a new one. We need to return the patched regex when creating the new one.
n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!t})):void 0;if(!d||!p||"replace"===e&&!u||"split"===e&&!h){var g=/./[f],m=n(o,f,""[e],(function(e,t,n,r,i){return t.exec===c?d&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],y=m[1];r(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}
// 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
:function(e){return y.call(e,this)})}}},
/***/"9f1f":
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083"),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},
/***/"9f7f":
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9").RegExp,a=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},
/***/"9fbb":
/***/function(e,t,n){
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var r=n("4d88");
// eslint-disable-next-line no-prototype-builtins
e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},
/***/"9fbc":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* unused harmony export Task */
/* harmony import */var r=n("6d8b");
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @param {Object} define
 * @return See the return of `createTask`.
 */
function i(e){return new a(e)}var a=/** @class */function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}
/**
   * @param step Specified step.
   * @param skip Skip customer perform call.
   * @param modBy Sampling window size.
   * @param modDataCount Sampling count.
   * @return whether unfinished.
   */return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;
// TODO some refactor.
// Pull data. Must pull data each time, because context.data
// may be updated by Series.setData.
if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));
// Support sharding by mod, which changes the render sequence and makes the rendered graphic
// elements uniformed distributed when progress, especially when moving or zooming.
var o,s=h(this._modBy),c=this._modDataCount||0,l=h(e&&e.modBy),u=e&&e.modDataCount||0;function h(e){// jshint ignore:line
return!(e>=1)&&(e=1),e}s===l&&c===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;
// Note: Stubs, that its host overall task let it has progress, has progress.
// If no progress, pass index from upstream to downstream each time plan called.
if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(o||d<p)){var g=this._progress;if(Object(r.isArray)(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],d,p,l,u);else this._doProgress(g,d,p,l,u)}this._dueIndex=p;
// If no `outputDueEnd`, assume that output data and
// input data is the same, so use `dueIndex` as `outputDueEnd`.
var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else
// (1) Some overall task has no progress.
// (2) Stubs, that its host overall task do not let it has progress, has no progress.
// This should always be performed so it can be passed to downstream.
this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){o.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:o.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),
// To simplify no progress checking, array must has item.
Object(r.isArray)(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},
/**
   * @param downTask The downstream task.
   * @return The downstream task.
   */
e.prototype.pipe=function(e){
// If already downstream, do not dirty downTask.
(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){
// This only happens in dataTask, dataZoom, map, currently.
// where dataZoom do not set end each time, but only set
// when reset. So we should record the set end, in case
// that the stub of dataZoom perform again and earse the
// set end by upstream.
this._outputDueEnd=this._settedOutputEnd=e},e}(),o=function(){var e,t,n,r,i,a={reset:function(c,l,u,h){t=c,e=l,n=u,r=h,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}()},
/***/"9fe7":
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("5a89");class i extends r.m{constructor(e){super(e)}parse(e){
// TGA constants
const t=1,n=2,i=3,a=9,o=10,s=11,c=48,l=4,u=0,h=1,f=2,d=3;e.length;let p=0;const g=new Uint8Array(e),m={id_length:g[p++],colormap_type:g[p++],image_type:g[p++],colormap_index:g[p++]|g[p++]<<8,colormap_length:g[p++]|g[p++]<<8,colormap_size:g[p++],origin:[g[p++]|g[p++]<<8,g[p++]|g[p++]<<8],width:g[p++]|g[p++]<<8,height:g[p++]|g[p++]<<8,pixel_size:g[p++],flags:g[p++]};
// check tga if it is valid format
!
// reference from vthibault, https://github.com/vthibault/roBrowser/blob/master/src/Loaders/Targa.js
function(e){switch(e.image_type){
// check indexed type
case t:case a:e.colormap_length>256||24!==e.colormap_size||e.colormap_type;break;
// check colormap type
case n:case i:case o:case s:e.colormap_type;
// What the need of a file without data ?
}
// check image width and height
e.width<=0||e.height,8!==e.pixel_size&&16!==e.pixel_size&&24!==e.pixel_size&&e.pixel_size}
// parse tga image buffer
(m),m.id_length,e.length,
// skip the needn't data
p+=m.id_length;
// get targa information about RLE compression and palette
let v=!1,y=!1,A=!1;switch(m.image_type){case a:v=!0,y=!0;break;case t:y=!0;break;case o:v=!0;break;case n:break;case s:v=!0,A=!0;break;case i:A=!0}

const b=new Uint8Array(m.width*m.height*4),w=function(e,t,n,r,i){let a,o;const s=n.pixel_size>>3,c=n.width*n.height*s;
// read RLE
if(
// read palettes
t&&(o=i.subarray(r,r+=n.colormap_length*(n.colormap_size>>3))),e){let e,t,n;a=new Uint8Array(c);let o=0;const l=new Uint8Array(s);for(;o<c;)
// RLE pixels
if(e=i[r++],t=1+(127&e),128&e){
// bind pixel tmp array
for(n=0;n<s;++n)l[n]=i[r++];
// copy pixel array
for(n=0;n<t;++n)a.set(l,o+n*s);o+=s*t}else{for(
// raw pixels
t*=s,n=0;n<t;++n)a[o+n]=i[r++];o+=t}}else
// raw pixels
a=i.subarray(r,r+=t?n.width*n.height:c);return{pixel_data:a,palettes:o}}(v,y,m,p,g);return function(e,t,n,r,i){let a,o,s,p,g,v;switch((m.flags&c)>>l){default:case f:a=0,s=1,g=t,o=0,p=1,v=n;break;case u:a=0,s=1,g=t,o=n-1,p=-1,v=-1;break;case d:a=t-1,s=-1,g=-1,o=0,p=1,v=n;break;case h:a=t-1,s=-1,g=-1,o=n-1,p=-1,v=-1}if(A)switch(m.pixel_size){case 8:!function(e,t,n,r,i,a,o,s){let c,l,u,h=0;const f=m.width;for(u=t;u!==r;u+=n)for(l=i;l!==o;l+=a,h++)c=s[h],e[4*(l+f*u)+0]=c,e[4*(l+f*u)+1]=c,e[4*(l+f*u)+2]=c,e[4*(l+f*u)+3]=255}(e,o,p,v,a,s,g,r);break;case 16:!function(e,t,n,r,i,a,o,s){let c,l,u=0;const h=m.width;for(l=t;l!==r;l+=n)for(c=i;c!==o;c+=a,u+=2)e[4*(c+h*l)+0]=s[u+0],e[4*(c+h*l)+1]=s[u+0],e[4*(c+h*l)+2]=s[u+0],e[4*(c+h*l)+3]=s[u+1]}(e,o,p,v,a,s,g,r)}else switch(m.pixel_size){case 8:!function(e,t,n,r,i,a,o,s,c){const l=c;let u,h,f,d=0;const p=m.width;for(f=t;f!==r;f+=n)for(h=i;h!==o;h+=a,d++)u=s[d],e[4*(h+p*f)+3]=255,e[4*(h+p*f)+2]=l[3*u+0],e[4*(h+p*f)+1]=l[3*u+1],e[4*(h+p*f)+0]=l[3*u+2]}(e,o,p,v,a,s,g,r,i);break;case 16:!function(e,t,n,r,i,a,o,s){let c,l,u,h=0;const f=m.width;for(u=t;u!==r;u+=n)for(l=i;l!==o;l+=a,h+=2)c=s[h+0]+(s[h+1]<<8),e[4*(l+f*u)+0]=(31744&c)>>7,e[4*(l+f*u)+1]=(992&c)>>2,e[4*(l+f*u)+2]=(31&c)<<3,e[4*(l+f*u)+3]=32768&c?0:255}(e,o,p,v,a,s,g,r);break;case 24:!function(e,t,n,r,i,a,o,s){let c,l,u=0;const h=m.width;for(l=t;l!==r;l+=n)for(c=i;c!==o;c+=a,u+=3)e[4*(c+h*l)+3]=255,e[4*(c+h*l)+2]=s[u+0],e[4*(c+h*l)+1]=s[u+1],e[4*(c+h*l)+0]=s[u+2]}(e,o,p,v,a,s,g,r);break;case 32:!function(e,t,n,r,i,a,o,s){let c,l,u=0;const h=m.width;for(l=t;l!==r;l+=n)for(c=i;c!==o;c+=a,u+=4)e[4*(c+h*l)+2]=s[u+0],e[4*(c+h*l)+1]=s[u+1],e[4*(c+h*l)+0]=s[u+2],e[4*(c+h*l)+3]=s[u+3]}(e,o,p,v,a,s,g,r)}
// Load image data according to specific method
// let func = 'tgaGetImageData' + (use_grey ? 'Grey' : '') + (header.pixel_size) + 'bits';
// func(data, y_start, y_step, y_end, x_start, x_step, x_end, width, image, palette );
}(b,m.width,m.height,w.pixel_data,w.palettes),{data:b,width:m.width,height:m.height,flipY:!0,generateMipmaps:!0,minFilter:r.M}}}
/***/},
/***/"9fe8":
/***/function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e};
/***/},
/***/a026:
/***/function(e,t,n){"use strict";n.r(t),
/* WEBPACK VAR INJECTION */function(e){/* harmony export (binding) */n.d(t,"EffectScope",(function(){return fn})),
/* harmony export (binding) */n.d(t,"computed",(function(){return dt})),
/* harmony export (binding) */n.d(t,"customRef",(function(){return it})),
/* harmony export (binding) */n.d(t,"default",(function(){return hi})),
/* harmony export (binding) */n.d(t,"defineAsyncComponent",(function(){return ur})),
/* harmony export (binding) */n.d(t,"defineComponent",(function(){return Er})),
/* harmony export (binding) */n.d(t,"del",(function(){return je})),
/* harmony export (binding) */n.d(t,"effectScope",(function(){return dn})),
/* harmony export (binding) */n.d(t,"getCurrentInstance",(function(){return pe})),
/* harmony export (binding) */n.d(t,"getCurrentScope",(function(){return pn})),
/* harmony export (binding) */n.d(t,"h",(function(){return qn})),
/* harmony export (binding) */n.d(t,"inject",(function(){return Wn})),
/* harmony export (binding) */n.d(t,"isProxy",(function(){return We})),
/* harmony export (binding) */n.d(t,"isReactive",(function(){return Ue})),
/* harmony export (binding) */n.d(t,"isReadonly",(function(){return Ve})),
/* harmony export (binding) */n.d(t,"isRef",(function(){return $e})),
/* harmony export (binding) */n.d(t,"isShallow",(function(){return Ge})),
/* harmony export (binding) */n.d(t,"markRaw",(function(){return Ye})),
/* harmony export (binding) */n.d(t,"mergeDefaults",(function(){return tn})),
/* harmony export (binding) */n.d(t,"nextTick",(function(){return sr})),
/* harmony export (binding) */n.d(t,"onActivated",(function(){return yr})),
/* harmony export (binding) */n.d(t,"onBeforeMount",(function(){return fr})),
/* harmony export (binding) */n.d(t,"onBeforeUnmount",(function(){return mr})),
/* harmony export (binding) */n.d(t,"onBeforeUpdate",(function(){return pr})),
/* harmony export (binding) */n.d(t,"onDeactivated",(function(){return Ar})),
/* harmony export (binding) */n.d(t,"onErrorCaptured",(function(){return _r})),
/* harmony export (binding) */n.d(t,"onMounted",(function(){return dr})),
/* harmony export (binding) */n.d(t,"onRenderTracked",(function(){return wr})),
/* harmony export (binding) */n.d(t,"onRenderTriggered",(function(){return xr})),
/* harmony export (binding) */n.d(t,"onScopeDispose",(function(){return gn})),
/* harmony export (binding) */n.d(t,"onServerPrefetch",(function(){return br})),
/* harmony export (binding) */n.d(t,"onUnmounted",(function(){return vr})),
/* harmony export (binding) */n.d(t,"onUpdated",(function(){return gr})),
/* harmony export (binding) */n.d(t,"provide",(function(){return Gn})),
/* harmony export (binding) */n.d(t,"proxyRefs",(function(){return nt})),
/* harmony export (binding) */n.d(t,"reactive",(function(){return Fe})),
/* harmony export (binding) */n.d(t,"readonly",(function(){return lt})),
/* harmony export (binding) */n.d(t,"ref",(function(){return Je})),
/* harmony export (binding) */n.d(t,"set",(function(){return Re})),
/* harmony export (binding) */n.d(t,"shallowReactive",(function(){return ze})),
/* harmony export (binding) */n.d(t,"shallowReadonly",(function(){return ft})),
/* harmony export (binding) */n.d(t,"shallowRef",(function(){return Xe})),
/* harmony export (binding) */n.d(t,"toRaw",(function(){return qe})),
/* harmony export (binding) */n.d(t,"toRef",(function(){return ot})),
/* harmony export (binding) */n.d(t,"toRefs",(function(){return at})),
/* harmony export (binding) */n.d(t,"triggerRef",(function(){return et})),
/* harmony export (binding) */n.d(t,"unref",(function(){return tt})),
/* harmony export (binding) */n.d(t,"useAttrs",(function(){return Xt})),
/* harmony export (binding) */n.d(t,"useCssModule",(function(){return cr})),
/* harmony export (binding) */n.d(t,"useCssVars",(function(){return lr})),
/* harmony export (binding) */n.d(t,"useListeners",(function(){return Zt})),
/* harmony export (binding) */n.d(t,"useSlots",(function(){return Jt})),
/* harmony export (binding) */n.d(t,"version",(function(){return Ir})),
/* harmony export (binding) */n.d(t,"watch",(function(){return Hn})),
/* harmony export (binding) */n.d(t,"watchEffect",(function(){return jn})),
/* harmony export (binding) */n.d(t,"watchPostEffect",(function(){return Nn})),
/* harmony export (binding) */n.d(t,"watchSyncEffect",(function(){return Fn}));
/*!
 * Vue.js v2.7.16
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 */
var r=Object.freeze({}),i=Array.isArray;
// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
function a(e){return null==e}function o(e){return null!=e}function s(e){return!0===e}
/**
 * Check if value is primitive.
 */
function c(e){return"string"==typeof e||"number"==typeof e||
// $flow-disable-line
"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}
/**
 * Quick object check - this is primarily used to tell
 * objects from primitive values when we know the value
 * is a JSON-compliant type.
 */function u(e){return null!==e&&"object"==typeof e}
/**
 * Get the raw type string of a value, e.g., [object Object].
 */var h=Object.prototype.toString;
/**
 * Strict object type check. Only returns true
 * for plain JavaScript objects.
 */
function f(e){return"[object Object]"===h.call(e)}function d(e){return"[object RegExp]"===h.call(e)}
/**
 * Check if val is a valid array index.
 */function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}
/**
 * Convert a value to a string that is actually rendered.
 */function m(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===h?JSON.stringify(e,v,2):String(e)}function v(e,t){
// avoid circular deps from v3
return t&&t.__v_isRef?t.value:t}
/**
 * Convert an input value to a number for persistence.
 * If the conversion fails, return original string.
 */function y(e){var t=parseFloat(e);return isNaN(t)?e:t}
/**
 * Make a map and return a function for checking if a key
 * is in that map.
 */function A(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}
/**
 * Check if a tag is a built-in tag.
 */var b=A("slot,component",!0),w=A("key,ref,slot,slot-scope,is");
/**
 * Check if an attribute is a reserved attribute.
 */
/**
 * Remove an item from an array.
 */
function x(e,t){var n=e.length;if(n){
// fast path for the only / last item
if(t===e[n-1])return void(e.length=n-1);var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}
/**
 * Check whether an object has the property.
 */var C=Object.prototype.hasOwnProperty;function _(e,t){return C.call(e,t)}
/**
 * Create a cached version of a pure function.
 */function I(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}
/**
 * Camelize a hyphen-delimited string.
 */var E=/-(\w)/g,k=I((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),S=I((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),B=/\B([A-Z])/g,M=I((function(e){return e.replace(B,"-$1").toLowerCase()}));
// @ts-expect-error bind cannot be `undefined`
var T=Function.prototype.bind?function(e,t){return e.bind(t)}:
/**
 * Simple bind polyfill for environments that do not support it,
 * e.g., PhantomJS 1.x. Technically, we don't need this anymore
 * since native bind is now performant enough in most browsers.
 * But removing it would mean breaking code that was able to run in
 * PhantomJS 1.x, so this must be kept for backward compatibility.
 */
/* istanbul ignore next */
function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};
/**
 * Convert an Array-like object to a real Array.
 */function O(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}
/**
 * Mix properties into target object.
 */function D(e,t){for(var n in t)e[n]=t[n];return e}
/**
 * Merge an Array of Objects into a single Object.
 */function P(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}
/* eslint-disable no-unused-vars */
/**
 * Perform no operation.
 * Stubbing args to make Flow happy without leaving useless transpiled code
 * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
 */function L(e,t,n){}
/**
 * Always return false.
 */var Q=function(e,t,n){return!1},R=function(e){return e};
/* eslint-enable no-unused-vars */
/**
 * Return the same value.
 */
/**
 * Check if two values are loosely equal - that is,
 * if they are plain objects, do they have the same shape?
 */
function j(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return j(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)
/* istanbul ignore next */
return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return j(e[n],t[n])}))}catch(e){
/* istanbul ignore next */
return!1}}
/**
 * Return the first index at which a loosely equal value can be
 * found in the array (if value is a plain object, the array must
 * contain an object of the same shape), or -1 if it is not present.
 */function N(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}
/**
 * Ensure a function is called only once.
 */function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill
function z(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}var H="data-server-rendered",U=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],V={
/**
     * Option merge strategies (used in core/util/options)
     */
// $flow-disable-line
optionMergeStrategies:Object.create(null),
/**
     * Whether to suppress warnings.
     */
silent:!1,
/**
     * Show production mode tip message on boot?
     */
productionTip:!1,
/**
     * Whether to enable devtools
     */
devtools:!1,
/**
     * Whether to record perf
     */
performance:!1,
/**
     * Error handler for watcher errors
     */
errorHandler:null,
/**
     * Warn handler for watcher warns
     */
warnHandler:null,
/**
     * Ignore certain custom elements
     */
ignoredElements:[],
/**
     * Custom user key aliases for v-on
     */
// $flow-disable-line
keyCodes:Object.create(null),
/**
     * Check if a tag is reserved so that it cannot be registered as a
     * component. This is platform-dependent and may be overwritten.
     */
isReservedTag:Q,
/**
     * Check if an attribute is reserved so that it cannot be used as a component
     * prop. This is platform-dependent and may be overwritten.
     */
isReservedAttr:Q,
/**
     * Check if a tag is an unknown element.
     * Platform-dependent.
     */
isUnknownElement:Q,
/**
     * Get the namespace of an element
     */
getTagNamespace:L,
/**
     * Parse the real tag name for the specific platform.
     */
parsePlatformTagName:R,
/**
     * Check if an attribute must be bound using property, e.g. value
     * Platform-dependent.
     */
mustUseProp:Q,
/**
     * Perform updates asynchronously. Intended to be used by Vue Test Utils
     * This will significantly reduce performance if set to false.
     */
async:!0,
/**
     * Exposed for legacy reasons
     */
_lifecycleHooks:G},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
/**
 * Check if a string starts with $ or _
 */
function q(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}
/**
 * Define a property.
 */function Y(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}
/**
 * Parse simple path.
 */var K=new RegExp("[^".concat(W.source,".$_\\d]"));
// can we use __proto__?
var $="__proto__"in{},J="undefined"!=typeof window,X=J&&window.navigator.userAgent.toLowerCase(),Z=X&&/msie|trident/.test(X),ee=X&&X.indexOf("msie 9.0")>0,te=X&&X.indexOf("edge/")>0;
// Browser environment sniffing
X&&X.indexOf("android");var ne=X&&/iphone|ipad|ipod|ios/.test(X);X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X);var re,ie=X&&X.match(/firefox\/(\d+)/),ae={}.watch,oe=!1;
// Firefox has a "watch" function on Object.prototype...
// @ts-expect-error firebox support
if(J)try{var se={};Object.defineProperty(se,"passive",{get:function(){
/* istanbul ignore next */
oe=!0}}),// https://github.com/facebook/flow/issues/285
window.addEventListener("test-passive",null,se)}catch(e){}
// this needs to be lazy-evaled because vue may be required before
// vue-server-renderer can set VUE_ENV
var ce=function(){return void 0===re&&(
/* istanbul ignore if */
re=!J&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),re},le=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
// detect devtools
/* istanbul ignore next */
function ue(e){return"function"==typeof e&&/native code/.test(e.toString())}var he,fe="undefined"!=typeof Symbol&&ue(Symbol)&&"undefined"!=typeof Reflect&&ue(Reflect.ownKeys);// $flow-disable-line
/* istanbul ignore if */
// use native Set when available.
he="undefined"!=typeof Set&&ue(Set)?Set:/** @class */function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=null;
/**
 * This is exposed for compatibility with v3 (e.g. some functions in VueUse
 * relies on it). Do not use this internally, just use `currentInstance`.
 *
 * @internal this function needs manual type declaration because it relies
 * on previously manually authored types from Vue 2
 */function pe(){return de&&{proxy:de}}
/**
 * @internal
 */function ge(e){void 0===e&&(e=null),e||de&&de._scope.off(),de=e,e&&e._scope.on()}
/**
 * @internal
 */var me=/** @class */function(){function e(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{
// DEPRECATED: alias for componentInstance for backwards compat.
/* istanbul ignore next */
get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ve=function(e){void 0===e&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function ye(e){return new me(void 0,void 0,void 0,String(e))}
// optimized shallow clone
// used for static nodes and slot nodes because they may be reused across
// multiple renders, cloning them avoids errors when DOM manipulations rely
// on their elm reference.
function Ae(e){var t=new me(e.tag,e.data,
// #7975
// clone children array to avoid mutating original in case of cloning
// a child.
e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}
/* not type checking this file because flow doesn't play well with Proxy */"function"==typeof SuppressedError&&SuppressedError;var be=0,we=[],xe=function(){for(var e=0;e<we.length;e++){var t=we[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}we.length=0},Ce=/** @class */function(){function e(){
// pending subs cleanup
this._pending=!1,this.id=be++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){
// #12696 deps with massive amount of subscribers are extremely slow to
// clean up in Chromium
// to workaround this, we unset the sub for now, and clear them on
// next scheduler flush.
this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,we.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){
// stabilize the subscriber list first
var t=this.subs.filter((function(e){return e}));for(var n=0,r=t.length;n<r;n++){0,t[n].update()}},e}();
// The current target watcher being evaluated.
// This is globally unique because only one watcher
// can be evaluated at a time.
Ce.target=null;var _e=[];function Ie(e){_e.push(e),Ce.target=e}function Ee(){_e.pop(),Ce.target=_e[_e.length-1]}
/*
 * not type checking this file because flow doesn't play well with
 * dynamically accessing methods on Array prototype
 */var ke=Array.prototype,Se=Object.create(ke);
/**
 * Intercept mutating methods and emit events
 */
["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){
// cache original method
var t=ke[e];Y(Se,e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),a}))}));var Be=Object.getOwnPropertyNames(Se),Me={},Te=!0;function Oe(e){Te=e}
// ssr mock dep
var De={notify:L,depend:L,addSub:L,removeSub:L},Pe=/** @class */function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,
// this.value = value
this.dep=n?De:new Ce,this.vmCount=0,Y(e,"__ob__",this),i(e)){if(!n)if($)e.__proto__=Se;
/* eslint-enable no-proto */else for(var r=0,a=Be.length;r<a;r++){Y(e,s=Be[r],Se[s])}t||this.observeArray(e)}else
/**
             * Walk through all properties and convert them into
             * getter/setters. This method should only be called when
             * value type is Object.
             */
{var o=Object.keys(e);for(r=0;r<o.length;r++){var s;Qe(e,s=o[r],Me,void 0,t,n)}}}
/**
     * Observe a list of Array items.
     */return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Le(e[t],!1,this.mock)},e}();
/**
 * Observer class that is attached to each observed
 * object. Once attached, the observer converts the target
 * object's property keys into getter/setters that
 * collect dependencies and dispatch updates.
 */
// helpers
/**
 * Attempt to create an observer instance for a value,
 * returns the new observer if successfully observed,
 * or the existing observer if the value already has one.
 */
function Le(e,t,n){return e&&_(e,"__ob__")&&e.__ob__ instanceof Pe?e.__ob__:!Te||!n&&ce()||!i(e)&&!f(e)||!Object.isExtensible(e)||e.__v_skip/* ReactiveFlags.SKIP */||$e(e)||e instanceof me?void 0:new Pe(e,t,n)}
/**
 * Define a reactive property on an Object.
 */function Qe(e,t,n,r,a,o,s){void 0===s&&(s=!1);var c=new Ce,l=Object.getOwnPropertyDescriptor(e,t);if(!l||!1!==l.configurable){
// cater for pre-defined getter/setters
var u=l&&l.get,h=l&&l.set;u&&!h||n!==Me&&2!==arguments.length||(n=e[t]);var f=a?n&&n.__ob__:Le(n,!1,o);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=u?u.call(e):n;return Ce.target&&(c.depend(),f&&(f.dep.depend(),i(t)&&Ne(t))),$e(t)&&!a?t.value:t},set:function(t){var r=u?u.call(e):n;if(z(r,t)){if(h)h.call(e,t);else{if(u)
// #7981: for accessor properties without setter
return;if(!a&&$e(r)&&!$e(t))return void(r.value=t);n=t}f=a?t&&t.__ob__:Le(t,!1,o),c.notify()}}}),c}}function Re(e,t,n){if(!Ve(e)){var r=e.__ob__;return i(e)&&p(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),
// when mocking for SSR, array methods are not hijacked
r&&!r.shallow&&r.mock&&Le(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Qe(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}}function je(e,t){if(i(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Ve(e)||_(e,t)&&(delete e[t],n&&n.dep.notify())}}
/**
 * Collect dependencies on array elements when the array is touched, since
 * we cannot intercept array element access like property getters.
 */function Ne(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),i(t)&&Ne(t)}function Fe(e){return He(e,!1),e}
/**
 * Return a shallowly-reactive copy of the original object, where only the root
 * level properties are reactive. It also does not auto-unwrap refs (even at the
 * root level).
 */function ze(e){return He(e,!0),Y(e,"__v_isShallow"/* ReactiveFlags.IS_SHALLOW */,!0),e}function He(e,t){
// if trying to observe a readonly proxy, return the readonly version.
if(!Ve(e)){Le(e,t,ce()/* ssr mock reactivity */);0}}function Ue(e){return Ve(e)?Ue(e.__v_raw):!(!e||!e.__ob__)}function Ge(e){return!(!e||!e.__v_isShallow)}function Ve(e){return!(!e||!e.__v_isReadonly)}function We(e){return Ue(e)||Ve(e)}function qe(e){var t=e&&e.__v_raw;return t?qe(t):e}function Ye(e){
// non-extensible objects won't be observed anyway
return Object.isExtensible(e)&&Y(e,"__v_skip"/* ReactiveFlags.SKIP */,!0),e}
/**
 * @internal
 */
/**
 * @internal
 */
var Ke="__v_isRef";function $e(e){return!(!e||!0!==e.__v_isRef)}function Je(e){return Ze(e,!1)}function Xe(e){return Ze(e,!0)}function Ze(e,t){if($e(e))return e;var n={};return Y(n,Ke,!0),Y(n,"__v_isShallow"/* ReactiveFlags.IS_SHALLOW */,t),Y(n,"dep",Qe(n,"value",e,null,t,ce())),n}function et(e){e.dep&&e.dep.notify()}function tt(e){return $e(e)?e.value:e}function nt(e){if(Ue(e))return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++)rt(t,e,n[r]);return t}function rt(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if($e(e))return e.value;var r=e&&e.__ob__;return r&&r.dep.depend(),e},set:function(e){var r=t[n];$e(r)&&!$e(e)?r.value=e:t[n]=e}})}function it(e){var t=new Ce,n=e((function(){t.depend()}),(function(){t.notify()})),r=n.get,i=n.set,a={get value(){return r()},set value(e){i(e)}};return Y(a,Ke,!0),a}function at(e){var t=i(e)?new Array(e.length):{};for(var n in e)t[n]=ot(e,n);return t}function ot(e,t,n){var r=e[t];if($e(r))return r;var i={get value(){var r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return Y(i,Ke,!0),i}var st="__v_rawToReadonly",ct="__v_rawToShallowReadonly";function lt(e){return ut(e,!1)}function ut(e,t){if(!f(e))return e;
// already a readonly object
if(Ve(e))return e;
// already has a readonly proxy
var n=t?ct:st,r=e[n];if(r)return r;var i=Object.create(Object.getPrototypeOf(e));Y(e,n,i),Y(i,"__v_isReadonly"/* ReactiveFlags.IS_READONLY */,!0),Y(i,"__v_raw"/* ReactiveFlags.RAW */,e),$e(e)&&Y(i,Ke,!0),(t||Ge(e))&&Y(i,"__v_isShallow"/* ReactiveFlags.IS_SHALLOW */,!0);for(var a=Object.keys(e),o=0;o<a.length;o++)ht(i,e,a[o],t);return i}function ht(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return r||!f(e)?e:lt(e)},set:function(){}})}
/**
 * Returns a reactive-copy of the original object, where only the root level
 * properties are readonly, and does NOT unwrap refs nor recursively convert
 * returned properties.
 * This is used for creating the props proxy object for stateful components.
 */function ft(e){return ut(e,!0)}function dt(e,t){var n,r,i=l(e);i?(n=e,r=L):(n=e.get,r=e.set);var a=ce()?null:new Tr(de,n,L,{lazy:!0});var o={
// some libs rely on the presence effect for checking computed refs
// from normal refs, but the implementation doesn't matter
effect:a,get value(){return a?(a.dirty&&a.evaluate(),Ce.target&&a.depend(),a.value):n()},set value(e){r(e)}};return Y(o,Ke,!0),Y(o,"__v_isReadonly"/* ReactiveFlags.IS_READONLY */,i),o}var pt=I((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(// Prefixed last, checked first
e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function gt(e,t){function n(){var e=n.fns;if(!i(e))
// return handler return value for single handlers
return Kn(e,null,arguments,t,"v-on handler");for(var r=e.slice(),a=0;a<r.length;a++)Kn(r[a],null,arguments,t,"v-on handler")}return n.fns=e,n}function mt(e,t,n,r,i,o){var c,l,u,h;for(c in e)l=e[c],u=t[c],h=pt(c),a(l)||(a(u)?(a(l.fns)&&(l=e[c]=gt(l,o)),s(h.once)&&(l=e[c]=i(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)a(e[c])&&r((h=pt(c)).name,t[c],h.capture)}function vt(e,t,n){var r;e instanceof me&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function c(){n.apply(this,arguments),
// important: remove merged hook to ensure it's called only once
// and prevent memory leak
x(r.fns,c)}a(i)?
// no existing hook
r=gt([c]):
/* istanbul ignore if */
o(i.fns)&&s(i.merged)?(
// already a merged invoker
r=i).fns.push(c):
// existing plain hook
r=gt([i,c]),r.merged=!0,e[t]=r}function yt(e,t,n,r,i){if(o(t)){if(_(t,n))return e[n]=t[n],i||delete t[n],!0;if(_(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}
// The template compiler attempts to minimize the need for normalization by
// statically analyzing the template at compile time.

// For plain HTML markup, normalization can be completely skipped because the
// generated render function is guaranteed to return Array<VNode>. There are
// two cases where extra normalization is needed:
// 1. When the children contains components - because a functional component
// may return an Array instead of a single root. In this case, just a simple
// normalization is needed - if any child is an Array, we flatten the whole
// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
// because functional components already normalize their own children.
// 2. When the children contains constructs that always generated nested Arrays,
// e.g. <template>, <slot>, v-for, or when the children is provided by user
// with hand-written render functions / JSX. In such cases a full normalization
// is needed to cater to all possible types of children values.
function At(e){return c(e)?[ye(e)]:i(e)?wt(e):void 0}function bt(e){return o(e)&&o(e.text)&&!1===e.isComment}function wt(e,t){var n,r,l,u,h=[];for(n=0;n<e.length;n++)a(r=e[n])||"boolean"==typeof r||(u=h[l=h.length-1],
//  nested
i(r)?r.length>0&&(
// merge adjacent text nodes
bt((r=wt(r,"".concat(t||"","_").concat(n)))[0])&&bt(u)&&(h[l]=ye(u.text+r[0].text),r.shift()),h.push.apply(h,r)):c(r)?bt(u)?
// merge adjacent text nodes
// this is necessary for SSR hydration because text nodes are
// essentially merged when rendered to HTML strings
h[l]=ye(u.text+r):""!==r&&
// convert primitive to vnode
h.push(ye(r)):bt(r)&&bt(u)?
// merge adjacent text nodes
h[l]=ye(u.text+r.text):(
// default key for nested array children (likely generated by v-for)
s(e._isVList)&&o(r.tag)&&a(r.key)&&o(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),h.push(r)));return h}var xt=1,Ct=2;
// wrapper function for providing a more flexible interface
// without getting yelled at by flow
function _t(e,t,n,r,a,h){return(i(n)||c(n))&&(a=r,r=n,n=void 0),s(h)&&(a=Ct),function(e,t,n,r,a){if(o(n)&&o(n.__ob__))return ve();
// object syntax in v-bind
o(n)&&o(n.is)&&(t=n.is);if(!t)
// in case of component :is set to falsy value
return ve();
// warn against non-primitive key
0;
// support single function children as default scoped slot
i(r)&&l(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);a===Ct?r=At(r):a===xt&&(r=function(e){for(var t=0;t<e.length;t++)if(i(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var s,c;if("string"==typeof t){var h=void 0;c=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),s=V.isReservedTag(t)?new me(V.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(h=ai(e.$options,"components",t))?new me(t,n,r,void 0,void 0,e):Kr(h,n,e,r,t)}else
// direct component options / constructor
s=Kr(t,n,e,r);return i(s)?s:o(s)?(o(c)&&It(s,c),o(n)&&
// ref #5318
// necessary to ensure parent re-render when deep bindings like :style and
// :class are used on slot nodes
function(e){u(e.style)&&Sr(e.style);u(e.class)&&Sr(e.class)}
/**
 * Runtime helper for rendering v-for lists.
 */(n),s):ve()}(e,t,n,r,a)}function It(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(
// use default namespace inside foreignObject
t=void 0,n=!0),o(e.children))for(var r=0,i=e.children.length;r<i;r++){var c=e.children[r];o(c.tag)&&(a(c.ns)||s(n)&&"svg"!==c.tag)&&It(c,t,n)}}function Et(e,t){var n,r,a,s,c=null;if(i(e)||"string"==typeof e)for(c=new Array(e.length),n=0,r=e.length;n<r;n++)c[n]=t(e[n],n);else if("number"==typeof e)for(c=new Array(e),n=0;n<e;n++)c[n]=t(n+1,n);else if(u(e))if(fe&&e[Symbol.iterator]){c=[];for(var l=e[Symbol.iterator](),h=l.next();!h.done;)c.push(t(h.value,c.length)),h=l.next()}else for(a=Object.keys(e),c=new Array(a.length),n=0,r=a.length;n<r;n++)s=a[n],c[n]=t(e[s],s,n);return o(c)||(c=[]),c._isVList=!0,c}
/**
 * Runtime helper for rendering <slot>
 */function kt(e,t,n,r){var i,a=this.$scopedSlots[e];a?(
// scoped slot
n=n||{},r&&(n=D(D({},r),n)),i=a(n)||(l(t)?t():t)):i=this.$slots[e]||(l(t)?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}
/**
 * Runtime helper for resolving filters
 */function St(e){return ai(this.$options,"filters",e,!0)||R}function Bt(e,t){return i(e)?-1===e.indexOf(t):e!==t}
/**
 * Runtime helper for checking keyCodes from config.
 * exposed as Vue.prototype._k
 * passing in eventKeyName as last argument separately for backwards compat
 */function Mt(e,t,n,r,i){var a=V.keyCodes[t]||n;return i&&r&&!V.keyCodes[t]?Bt(i,r):a?Bt(a,e):r?M(r)!==t:void 0===e}
/**
 * Runtime helper for merging v-bind="object" into a VNode's data.
 */function Tt(e,t,n,r,a){if(n)if(u(n)){i(n)&&(n=P(n));var o=void 0,s=function(i){if("class"===i||"style"===i||w(i))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,s,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=k(i),l=M(i);c in o||l in o||(o[i]=n[i],a&&((e.on||(e.on={}))["update:".concat(i)]=function(e){n[i]=e}))};for(var c in n)s(c)}else;return e}
/**
 * Runtime helper for rendering static trees.
 */function Ot(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];
// if has already-rendered static tree and not inside v-for,
// we can reuse the same tree.
return r&&!t||Pt(
// otherwise, render a fresh tree.
r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),r}
/**
 * Runtime helper for v-once.
 * Effectively it means marking the node as static with a unique key.
 */function Dt(e,t,n){return Pt(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function Pt(e,t,n){if(i(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Lt(e[r],"".concat(t,"_").concat(r),n);else Lt(e,t,n)}function Lt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Qt(e,t){if(t)if(f(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}else;return e}function Rt(e,t,
// the following are added in 2.6
n,r){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var o=e[a];i(o)?Rt(o,t,n):o&&(
// marker for reverse proxying v-slot without scope on this.$slots
// @ts-expect-error
o.proxy&&(
// @ts-expect-error
o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}
// helper to process dynamic keys for dynamic arguments in v-bind and v-on.
function jt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}
// helper to dynamically append modifier runtime markers to event names.
// ensure only append when value is already string, otherwise it will be cast
// to string and cause the type check to miss.
function Nt(e,t){return"string"==typeof e?t+e:e}function Ft(e){e._o=Dt,e._n=y,e._s=m,e._l=Et,e._t=kt,e._q=j,e._i=N,e._m=Ot,e._f=St,e._k=Mt,e._b=Tt,e._v=ye,e._e=ve,e._u=Rt,e._g=Qt,e._d=jt,e._p=Nt}
/**
 * Runtime helper for resolving raw children VNodes into a slot object.
 */function zt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],o=a.data;
// named slots should only be respected if the vnode was rendered in the
// same context.
if(
// remove slot attribute if the node is resolved as a Vue slot node
o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,c=n[s]||(n[s]=[]);"template"===a.tag?c.push.apply(c,a.children||[]):c.push(a)}}
// ignore slots that contains only whitespace
for(var l in n)n[l].every(Ht)&&delete n[l];return n}function Ht(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ut(e){
// @ts-expect-error not really boolean type
return e.isComment&&e.asyncFactory}function Gt(e,t,n,i){var a,o=Object.keys(n).length>0,s=t?!!t.$stable:!o,c=t&&t.$key;if(t){if(t._normalized)
// fast path 1: child component re-render only, parent did not change
return t._normalized;
// expose normal slots on scopedSlots
if(s&&i&&i!==r&&c===i.$key&&!o&&!i.$hasNormal)
// fast path 2: stable scoped slots w/ no normal slots to proxy,
// only need to normalize once
return i;for(var l in a={},t)t[l]&&"$"!==l[0]&&(a[l]=Vt(e,n,l,t[l]))}else a={};for(var u in n)u in a||(a[u]=Wt(n,u));
// avoriaz seems to mock a non-extensible $scopedSlots object
// and when that is passed down this would cause an error
return t&&Object.isExtensible(t)&&(t._normalized=a),Y(a,"$stable",s),Y(a,"$key",c),Y(a,"$hasNormal",o),a}function Vt(e,t,n,r){var a=function(){var t=de;ge(e);var n=arguments.length?r.apply(null,arguments):r({}),a=(n=n&&"object"==typeof n&&!i(n)?[n]:At(n))&&n[0];return ge(t),n&&(!a||1===n.length&&a.isComment&&!Ut(a))?void 0:n};
// this is a slot using the new v-slot syntax without scope. although it is
// compiled as a scoped slot, render fn users would expect it to be present
// on this.$slots because the usage is semantically a normal slot.
return r.proxy&&Object.defineProperty(t,n,{get:a,enumerable:!0,configurable:!0}),a}function Wt(e,t){return function(){return e[t]}}function qt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};Y(t,"_v_attr_proxy",!0),Yt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||Yt(e._listenersProxy={},e.$listeners,r,e,"$listeners");return e._listenersProxy},get slots(){return function(e){e._slotsProxy||$t(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(e)},emit:T(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return rt(e,t,n)}))}}}function Yt(e,t,n,r,i){var a=!1;for(var o in t)o in e?t[o]!==n[o]&&(a=!0):(a=!0,Kt(e,o,r,i));for(var o in e)o in t||(a=!0,delete e[o]);return a}function Kt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function $t(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}
/**
 * @internal use manual type def because public setup context type relies on
 * legacy VNode types
 */function Jt(){return en().slots}
/**
 * @internal use manual type def because public setup context type relies on
 * legacy VNode types
 */function Xt(){return en().attrs}
/**
 * Vue 2 only
 * @internal use manual type def because public setup context type relies on
 * legacy VNode types
 */function Zt(){return en().listeners}function en(){var e=de;return e._setupContext||(e._setupContext=qt(e))}
/**
 * Runtime helper for merging default declarations. Imported by compiled code
 * only.
 * @internal
 */function tn(e,t){var n=i(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var a=n[r];a?i(a)||l(a)?n[r]={type:a,default:t[r]}:a.default=t[r]:null===a&&(n[r]={default:t[r]})}return n}var nn,rn,an=null;function on(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function sn(e){if(i(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Ut(n)))return n}}function cn(e,t){nn.$on(e,t)}function ln(e,t){nn.$off(e,t)}function un(e,t){var n=nn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function hn(e,t,n){nn=e,mt(t,n||{},cn,ln,un,e),nn=void 0}var fn=/** @class */function(){function e(e){void 0===e&&(e=!1),this.detached=e,
/**
         * @internal
         */
this.active=!0,
/**
         * @internal
         */
this.effects=[],
/**
         * @internal
         */
this.cleanups=[],this.parent=rn,!e&&rn&&(this.index=(rn.scopes||(rn.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=rn;try{return rn=this,e()}finally{rn=t}}else 0},
/**
     * This should only be called on non-detached scopes
     * @internal
     */
e.prototype.on=function(){rn=this},
/**
     * This should only be called on non-detached scopes
     * @internal
     */
e.prototype.off=function(){rn=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);
// nested scope, dereference from parent to avoid memory leaks
if(!this.detached&&this.parent&&!e){
// optimized O(1) removal
var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},e}();function dn(e){return new fn(e)}
/**
 * @internal
 */function pn(){return rn}function gn(e){rn&&rn.cleanups.push(e)}var mn=null;function vn(e){var t=mn;return mn=e,function(){mn=t}}function yn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function An(e,t){if(t){if(e._directInactive=!1,yn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)An(e.$children[n]);wn(e,"activated")}}function bn(e,t){if(!(t&&(e._directInactive=!0,yn(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)bn(e.$children[n]);wn(e,"deactivated")}}function wn(e,t,n,r){void 0===r&&(r=!0),
// #7573 disable dep collection when invoking lifecycle hooks
Ie();var i=de,a=pn();r&&ge(e);var o=e.$options[t],s="".concat(t," hook");if(o)for(var c=0,l=o.length;c<l;c++)Kn(o[c],e,n||null,e,s);e._hasHookEvent&&e.$emit("hook:"+t),r&&(ge(i),a&&a.on()),Ee()}var xn=[],Cn=[],_n={},In=!1,En=!1,kn=0;
// Async edge case #6566 requires saving the timestamp when event listeners are
// attached. However, calling performance.now() has a perf overhead especially
// if the page has thousands of event listeners. Instead, we take a timestamp
// every time the scheduler flushes and use that for all event listeners
// attached during that flush.
var Sn=0,Bn=Date.now;
// Async edge case fix requires storing an event listener's attach timestamp.
// Determine what event timestamp the browser is using. Annoyingly, the
// timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp.
// All IE versions use low-res event timestamps, and have problematic clock
// implementations (#9632)
if(J&&!Z){var Mn=window.performance;Mn&&"function"==typeof Mn.now&&Bn()>document.createEvent("Event").timeStamp&&(
// if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
Bn=function(){return Mn.now()})}var Tn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};
/**
 * Flush both queues and run the watchers.
 */function On(){var e,t;
// Sort queue before flush.
// This ensures that:
// 1. Components are updated from parent to child. (because parent is always
//    created before the child)
// 2. A component's user watchers are run before its render watcher (because
//    user watchers are created before the render watcher)
// 3. If a component is destroyed during a parent component's watcher run,
//    its watchers can be skipped.
// do not cache length because more watchers might be pushed
// as we run existing watchers
for(Sn=Bn(),En=!0,xn.sort(Tn),kn=0;kn<xn.length;kn++)(e=xn[kn]).before&&e.before(),t=e.id,_n[t]=null,e.run();
// keep copies of post queues before resetting state
var n=Cn.slice(),r=xn.slice();kn=xn.length=Cn.length=0,_n={},In=En=!1,
// call component updated and activated hooks
function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,An(e[t],!0/* true */)}
/**
 * Push a watcher into the watcher queue.
 * Jobs with duplicate IDs will be skipped unless it's
 * pushed when the queue is being flushed.
 */(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&wn(r,"updated")}}
/**
 * Queue a kept-alive component that was activated during patch.
 * The queue will be processed after the entire tree has been patched.
 */(r),xe(),
// devtool hook
/* istanbul ignore if */
le&&V.devtools&&le.emit("flush")}function Dn(e){var t=e.id;if(null==_n[t]&&(e!==Ce.target||!e.noRecurse)){if(_n[t]=!0,En){for(
// if already flushing, splice the watcher based on its id
// if already past its id, it will be run next immediately.
var n=xn.length-1;n>kn&&xn[n].id>e.id;)n--;xn.splice(n+1,0,e)}
// queue the flush
else xn.push(e);In||(In=!0,sr(On))}}var Pn="watcher",Ln="".concat(Pn," callback"),Qn="".concat(Pn," getter"),Rn="".concat(Pn," cleanup");
// Simple effect.
function jn(e,t){return Un(e,null,t)}function Nn(e,t){return Un(e,null,{flush:"post"})}function Fn(e,t){return Un(e,null,{flush:"sync"})}
// initial value for watchers to trigger on undefined initial values
var zn={};
// implementation
function Hn(e,t,n){return Un(e,t,n)}function Un(e,t,n){var a=void 0===n?r:n,o=a.immediate,s=a.deep,c=a.flush,u=void 0===c?"pre":c;a.onTrack,a.onTrigger;var h,f,d=de,p=function(e,t,n){void 0===n&&(n=null);var r=Kn(e,null,n,d,t);return s&&r&&r.__ob__&&r.__ob__.dep.depend(),r},g=!1,m=!1;if($e(e)?(h=function(){return e.value},g=Ge(e)):Ue(e)?(h=function(){return e.__ob__.dep.depend(),e},s=!0):i(e)?(m=!0,g=e.some((function(e){return Ue(e)||Ge(e)})),h=function(){return e.map((function(e){return $e(e)?e.value:Ue(e)?(e.__ob__.dep.depend(),Sr(e)):l(e)?p(e,Qn):void 0}))}):
// getter with cb
h=l(e)?t?function(){return p(e,Qn)}:function(){if(!d||!d._isDestroyed)return f&&f(),p(e,Pn,[y])}:L,t&&s){var v=h;h=function(){return Sr(v())}}var y=function(e){f=A.onStop=function(){p(e,Rn)}};
// in SSR there is no need to setup an actual effect, and it should be noop
// unless it's eager
if(ce())
// we will also not call the invalidate callback (+ runner is not set up)
return y=L,t?o&&p(t,Ln,[h(),m?[]:void 0,y]):h(),L;var A=new Tr(de,h,L,{lazy:!0});A.noRecurse=!t;var b=m?[]:zn;
// overwrite default run
return A.run=function(){if(A.active)if(t){
// watch(source, cb)
var e=A.get();(s||g||(m?e.some((function(e,t){return z(e,b[t])})):z(e,b)))&&(
// cleanup before running cb again
f&&f(),p(t,Ln,[e,
// pass undefined as the old value when it's changed for the first time
b===zn?void 0:b,y]),b=e)}else
// watchEffect
A.get()},"sync"===u?A.update=A.run:"post"===u?(A.post=!0,A.update=function(){return Dn(A)}):
// pre
A.update=function(){if(d&&d===de&&!d._isMounted){
// pre-watcher triggered before
var e=d._preWatchers||(d._preWatchers=[]);e.indexOf(A)<0&&e.push(A)}else Dn(A)},
// initial run
t?o?A.run():b=A.get():"post"===u&&d?d.$once("hook:mounted",(function(){return A.get()})):A.get(),function(){A.teardown()}}function Gn(e,t){de&&(
// TS doesn't allow symbol as index type
Vn(de)[e]=t)}function Vn(e){
// by default an instance inherits its parent's provides object
// but when it needs to provide values of its own, it creates its
// own provides object using parent provides object as prototype.
// this way in `inject` we can simply look up injections from direct
// parent and let the prototype chain do the work.
var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Wn(e,t,n){void 0===n&&(n=!1);
// fallback to `currentRenderingInstance` so that this can be called in
// a functional component
var r=de;if(r){
// #2400
// to support `app.use` plugins,
// fallback to appContext's `provides` if the instance is at root
var i=r.$parent&&r.$parent._provided;if(i&&e in i)
// TS doesn't allow symbol as index type
return i[e];if(arguments.length>1)return n&&l(t)?t.call(r):t}else 0}
/**
 * @internal this function needs manual public type declaration because it relies
 * on previously manually authored types from Vue 2
 */function qn(e,t,n){return _t(de,e,t,n,2,!0)}function Yn(e,t,n){
// Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
// See: https://github.com/vuejs/vuex/issues/1505
Ie();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{if(!1===i[a].call(r,e,t,n))return}catch(e){$n(e,r,"errorCaptured hook")}}$n(e,t,n)}finally{Ee()}}function Kn(e,t,n,r,i){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&g(a)&&!a._handled&&(a.catch((function(e){return Yn(e,r,i+" (Promise/async)")})),a._handled=!0)}catch(e){Yn(e,r,i)}return a}function $n(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(t){
// if the user intentionally throws the original error in the handler,
// do not log it twice
t!==e&&Jn(t,null,"config.errorHandler")}Jn(e,t,n)}function Jn(e,t,n){
/* istanbul ignore else */
if(!J||"undefined"==typeof console)throw e}
/* globals MutationObserver */var Xn,Zn=!1,er=[],tr=!1;function nr(){tr=!1;var e=er.slice(0);er.length=0;for(var t=0;t<e.length;t++)e[t]()}
// Here we have async deferring wrappers using microtasks.
// In 2.5 we used (macro) tasks (in combination with microtasks).
// However, it has subtle problems when state is changed right before repaint
// (e.g. #6813, out-in transitions).
// Also, using (macro) tasks in event handler would cause some weird behaviors
// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
// So we now use microtasks everywhere, again.
// A major drawback of this tradeoff is that there are some scenarios
// where microtasks have too high a priority and fire in between supposedly
// sequential events (e.g. #4521, #6690, which have workarounds)
// or even between bubbling of the same event (#6566).
// The nextTick behavior leverages the microtask queue, which can be accessed
// via either native Promise.then or MutationObserver.
// MutationObserver has wider support, however it is seriously bugged in
// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
// completely stops working after triggering a few times... so, if native
// Promise is available, we will use it:
/* istanbul ignore next, $flow-disable-line */
if("undefined"!=typeof Promise&&ue(Promise)){var rr=Promise.resolve();Xn=function(){rr.then(nr),
// In problematic UIWebViews, Promise.then doesn't completely break, but
// it can get stuck in a weird state where callbacks are pushed into the
// microtask queue but the queue isn't being flushed, until the browser
// needs to do some other work, e.g. handle a timer. Therefore we can
// "force" the microtask queue to be flushed by adding an empty timer.
ne&&setTimeout(L)},Zn=!0}else if(Z||"undefined"==typeof MutationObserver||!ue(MutationObserver)&&
// PhantomJS and iOS 7.x
"[object MutationObserverConstructor]"!==MutationObserver.toString())
// Fallback to setImmediate.
// Technically it leverages the (macro) task queue,
// but it is still a better choice than setTimeout.
Xn="undefined"!=typeof setImmediate&&ue(setImmediate)?function(){setImmediate(nr)}:function(){setTimeout(nr,0)}
/**
 * @internal
 */;else{
// Use MutationObserver where native Promise is not available,
// e.g. PhantomJS, iOS7, Android 4.4
// (#6466 MutationObserver is unreliable in IE11)
var ir=1,ar=new MutationObserver(nr),or=document.createTextNode(String(ir));ar.observe(or,{characterData:!0}),Xn=function(){ir=(ir+1)%2,or.data=String(ir)},Zn=!0}function sr(e,t){var n;
// $flow-disable-line
if(er.push((function(){if(e)try{e.call(t)}catch(e){Yn(e,t,"nextTick")}else n&&n(t)})),tr||(tr=!0,Xn()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}function cr(e){if(void 0===e&&(e="$style")
/* istanbul ignore else */,!de)return r;var t=de[e];return t||r}
/**
 * Runtime helper for SFC's CSS variable injection feature.
 * @private
 */function lr(e){if(J){var t=de;t&&Nn((function(){var n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var a in r)i.setProperty("--".concat(a),r[a])}}))}}
/**
 * v3-compatible async component API.
 * @internal the type is manually declared in <root>/types/v3-define-async-component.d.ts
 * because it relies on existing manual types
 */function ur(e){l(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,r=e.errorComponent,i=e.delay,a=void 0===i?200:i,o=e.timeout,// in Vue 3 default is true
s=(e.suspensible,e.onError);var c=null,u=0,h=function(){var e;return c||(e=c=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((function(t,n){s(e,(function(){return t((u++,c=null,h()))}),(function(){return n(e)}),u+1)}));throw e})).then((function(t){return e!==c&&c?c:(
// interop module default
t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){return{component:h(),delay:a,timeout:o,error:r,loading:n}}}function hr(e){return function(t,n){if(void 0===n&&(n=de),n)return function(e,t,n){var r=e.$options;r[t]=ti(r[t],n)}(n,e,t)}}var fr=hr("beforeMount"),dr=hr("mounted"),pr=hr("beforeUpdate"),gr=hr("updated"),mr=hr("beforeDestroy"),vr=hr("destroyed"),yr=hr("activated"),Ar=hr("deactivated"),br=hr("serverPrefetch"),wr=hr("renderTracked"),xr=hr("renderTriggered"),Cr=hr("errorCaptured");function _r(e,t){void 0===t&&(t=de),Cr(e,t)}
/**
 * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
 */var Ir="2.7.16";
/**
 * @internal type is manually declared in <root>/types/v3-define-component.d.ts
 */function Er(e){return e}var kr=new he;
/**
 * Recursively traverse an object to evoke all converted
 * getters, so that every nested property inside the object
 * is collected as a "deep" dependency.
 */function Sr(e){return Br(e,kr),kr.clear(),e}function Br(e,t){var n,r,a=i(e);if(!(!a&&!u(e)||e.__v_skip/* ReactiveFlags.SKIP */||Object.isFrozen(e)||e instanceof me)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(a)for(n=e.length;n--;)Br(e[n],t);else if($e(e))Br(e.value,t);else for(n=(r=Object.keys(e)).length;n--;)Br(e[r[n]],t)}}var Mr=0,Tr=/** @class */function(){function e(e,t,n,r,i){var a,o;a=this,void 0===(o=
// if the active effect scope is manually created (not a component scope),
// prioritize it
rn&&!rn._vm?rn:e?e._scope:void 0)&&(o=rn),o&&o.active&&o.effects.push(a),(this.vm=e)&&i&&(e._watcher=this),
// options
r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Mr,// uid for batching
this.active=!0,this.post=!1,this.dirty=this.lazy,// for lazy watchers
this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="",
// parse expression for getter
l(t)?this.getter=t:(this.getter=function(e){if(!K.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()}
/**
     * Evaluate the getter, and re-collect dependencies.
     */return e.prototype.get=function(){var e;Ie(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Yn(e,t,'getter for watcher "'.concat(this.expression,'"'))}finally{
// "touch" every property so they are all tracked as
// dependencies for deep watching
this.deep&&Sr(e),Ee(),this.cleanupDeps()}return e},
/**
     * Add a dependency to this directive.
     */
e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},
/**
     * Clean up for dependency collection.
     */
e.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},
/**
     * Subscriber interface.
     * Will be called when a dependency changes.
     */
e.prototype.update=function(){
/* istanbul ignore else */
this.lazy?this.dirty=!0:this.sync?this.run():Dn(this)},
/**
     * Scheduler job interface.
     * Will be called by the scheduler.
     */
e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||
// Deep watchers and watchers on Object/Arrays should fire even
// when the value is the same, because the value may
// have mutated.
u(e)||this.deep){
// set new value
var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');Kn(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},
/**
     * Evaluate the value of the watcher.
     * This only gets called for lazy watchers.
     */
e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},
/**
     * Depend on all deps collected by this watcher.
     */
e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},
/**
     * Remove self from all dependencies' subscriber list.
     */
e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&x(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),Or={enumerable:!0,configurable:!0,get:L,set:L};
/**
 * A watcher parses an expression, collects dependencies,
 * and fires callback when the expression value changes.
 * This is used for both the $watch() api and directives.
 * @internal
 */function Dr(e,t,n){Or.get=function(){return this[t][n]},Or.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Or)}function Pr(e){var t=e.$options;if(t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props=ze({}),i=e.$options._propKeys=[],a=!e.$parent;
// root instance props should be converted
a||Oe(!1);var o=function(a){i.push(a);var o=oi(a,t,n,e);
/* istanbul ignore else */Qe(r,a,o,void 0,!0/* shallow */),
// static props are already proxied on the component's prototype
// during Vue.extend(). We only need to proxy props defined at
// instantiation here.
a in e||Dr(e,"_props",a)};for(var s in t)o(s);Oe(!0)}(e,t.props),
// Composition API
function(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=qt(e);ge(e),Ie();var i=Kn(n,null,[e._props||ze({}),r],e,"setup");if(Ee(),ge(),l(i))
// render function
// @ts-ignore
t.render=i;else if(u(i))
// __sfc indicates compiled bindings from <script setup>
if(e._setupState=i,i.__sfc){
// exposed for compiled render fn
var a=e._setupProxy={};for(var o in i)"__sfc"!==o&&rt(a,i,o)}else for(var o in i)q(o)||rt(e,i,o)}}(e),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?L:T(t[n],e)}(e,t.methods),t.data)!function(e){var t=e.$options.data;t=e._data=l(t)?function(e,t){
// #7573 disable dep collection when invoking data getters
Ie();try{return e.call(t,t)}catch(e){return Yn(e,t,"data()"),{}}finally{Ee()}}(t,e):t||{},f(t)||(t={});
// proxy data on instance
var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&_(r,a)||q(a)||Dr(e,"_data",a)}
// observe data
var o=Le(t);o&&o.vmCount++}(e);else{var n=Le(e._data={});n&&n.vmCount++}t.computed&&function(e,t){
// $flow-disable-line
var n=e._computedWatchers=Object.create(null),r=ce();
// computed properties are just getters during SSR
for(var i in t){var a=t[i],o=l(a)?a:a.get;0,r||(
// create internal watcher for the computed property.
n[i]=new Tr(e,o||L,L,Lr)),
// component-defined computed properties are already defined on the
// component prototype. We only need to define computed properties defined
// at instantiation here.
i in e||Qr(e,i,a)}}(e,t.computed),t.watch&&t.watch!==ae&&function(e,t){for(var n in t){var r=t[n];if(i(r))for(var a=0;a<r.length;a++)Nr(e,n,r[a]);else Nr(e,n,r)}}(e,t.watch)}var Lr={lazy:!0};function Qr(e,t,n){var r=!ce();l(n)?(Or.get=r?Rr(t):jr(n),Or.set=L):(Or.get=n.get?r&&!1!==n.cache?Rr(t):jr(n.get):L,Or.set=n.set||L),Object.defineProperty(e,t,Or)}function Rr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ce.target&&t.depend(),t.value}}function jr(e){return function(){return e.call(this,this)}}function Nr(e,t,n,r){return f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Fr(e,t){if(e){for(
// inject is :any because flow is not smart enough to figure out cached
var n=Object.create(null),r=fe?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];
// #6574 in case the inject object is observed...
if("__ob__"!==a){var o=e[a].from;if(o in t._provided)n[a]=t._provided[o];else if("default"in e[a]){var s=e[a].default;n[a]=l(s)?s.call(t):s}else 0}}return n}}var zr=0;function Hr(e){var t=e.options;if(e.super){var n=Hr(e.super);if(n!==e.superOptions){
// super option changed,
// need to resolve new options.
e.superOptions=n;
// check if there are any late-modified/attached options (#4976)
var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);
// update base extend options
r&&D(e.extendOptions,r),(t=e.options=ii(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Ur(e,t,n,a,o){var c,l=this,u=o.options;_(a,"_uid")?(c=Object.create(a))._original=a:(
// the context vm passed in is a functional context as well.
// in this case we want to make sure we are able to get a hold to the
// real context instance.
c=a,
// @ts-ignore
a=a._original);var h=s(u._compiled),f=!h;this.data=e,this.props=t,this.children=n,this.parent=a,this.listeners=e.on||r,this.injections=Fr(u.inject,a),this.slots=function(){return l.$slots||Gt(a,e.scopedSlots,l.$slots=zt(n,a)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Gt(a,e.scopedSlots,this.slots())}}),
// support for compiled functional template
h&&(
// exposing $options for renderStatic()
this.$options=u,
// pre-resolve slots for renderSlot()
this.$slots=this.slots(),this.$scopedSlots=Gt(a,e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=_t(c,e,t,n,r,f);return o&&!i(o)&&(o.fnScopeId=u._scopeId,o.fnContext=a),o}:this._c=function(e,t,n,r){return _t(c,e,t,n,r,f)}}function Gr(e,t,n,r,i){
// #7817 clone node before setting fnContext, otherwise if the node is reused
// (e.g. it was from a cached normal slot) the fnContext causes named slots
// that should not be matched to match.
var a=Ae(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Vr(e,t){for(var n in t)e[k(n)]=t[n]}function Wr(e){return e.name||e.__name||e._componentTag}
// inline hooks to be invoked on component VNodes during patch
Ft(Ur.prototype);var qr={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){
// kept-alive components, treat as a patch
var n=e;// work around flow
qr.prepatch(n,n)}else{(e.componentInstance=function(
// we know it's MountedComponentVNode but flow doesn't
e,
// activeInstance in lifecycle state
t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;
// check inline-template render functions
o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,mn)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,a){
// determine whether component has slot children
// we need to do this before overwriting $options._renderChildren.
// check if there are dynamic scopedSlots (hand-written or compiled but with
// dynamic slot names). Static scoped slots compiled from template has the
// "$stable" marker.
var o=i.data.scopedSlots,s=e.$scopedSlots,c=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key||!o&&e.$scopedSlots.$key),l=!!(a||// has new static slots
e.$options._renderChildren||// has old static slots
c),u=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,// update vm's placeholder node without re-render
e._vnode&&(
// update child tree's parent
e._vnode.parent=i),e.$options._renderChildren=a;
// update $attrs and $listeners hash
// these are also reactive so they may trigger child update if the child
// used them during render
var h=i.data.attrs||r;e._attrsProxy&&Yt(e._attrsProxy,h,u.data&&u.data.attrs||r,e,"$attrs")&&(l=!0),e.$attrs=h,
// update listeners
n=n||r;var f=e.$options._parentListeners;
// update props
if(e._listenersProxy&&Yt(e._listenersProxy,n,f||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,hn(e,n,f),t&&e.$options.props){Oe(!1);for(var d=e._props,p=e.$options._propKeys||[],g=0;g<p.length;g++){var m=p[g],v=e.$options.props;// wtf flow?
d[m]=oi(m,v,t,e)}Oe(!0),
// keep a copy of raw propsData
e.$options.propsData=t}
// resolve slots + force update if has children
l&&(e.$slots=zt(a,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,// updated props
n.listeners,// updated listeners
t,// new parent vnode
n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,wn(r,"mounted")),e.data.keepAlive&&(n._isMounted?(
// vue-router#1212
// During updates, a kept-alive component's child components may
// change, so directly walking the tree here may call activated hooks
// on incorrect children. Instead we push them into a queue which will
// be processed after the whole patch process ended.
// setting _inactive to false here so that a render function can
// rely on checking whether it's in an inactive tree (e.g. router-view)
(t=r)._inactive=!1,Cn.push(t)):An(r,!0/* direct */))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?bn(t,!0/* direct */):t.$destroy())}},Yr=Object.keys(qr);function Kr(e,t,n,c,l){if(!a(e)){var h=n.$options._base;
// plain options object: turn it into a constructor
// if at this stage it's not a constructor or an async component factory,
// reject.
if(u(e)&&(e=h.extend(e)),"function"==typeof e){
// async component
var f;
// @ts-expect-error
if(a(e.cid)&&(e=function(e,t){if(s(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=an;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&
// already pending
e.owners.push(n),s(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var r=e.owners=[n],i=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return x(r,n)}));var h=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},f=F((function(n){
// cache resolved
e.resolved=on(n,t),
// invoke callbacks only if this is not a synchronous resolve
// (async resolves are shimmed as synchronous during SSR)
i?r.length=0:h(!0)})),d=F((function(t){o(e.errorComp)&&(e.error=!0,h(!0))})),p=e(f,d);
// return in case resolved synchronously
return u(p)&&(g(p)?
// () => Promise
a(e.resolved)&&p.then(f,d):g(p.component)&&(p.component.then(f,d),o(p.error)&&(e.errorComp=on(p.error,t)),o(p.loading)&&(e.loadingComp=on(p.loading,t),0===p.delay?e.loading=!0:
// @ts-expect-error NodeJS timeout type
c=setTimeout((function(){c=null,a(e.resolved)&&a(e.error)&&(e.loading=!0,h(!1))}),p.delay||200)),o(p.timeout)&&(
// @ts-expect-error NodeJS timeout type
l=setTimeout((function(){l=null,a(e.resolved)&&d(null)}),p.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(f=e,h),void 0===e))
// return a placeholder node for async component, which is rendered
// as a comment node but preserves all the raw information for the node.
// the information will be used for async server-rendering and hydration.
return function(e,t,n,r,i){var a=ve();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}(f,t,n,c,l);t=t||{},
// resolve constructor options in case global mixins are applied after
// component constructor creation
Hr(e),
// transform component v-model data into props & events
o(t.model)&&
// @ts-expect-error
// transform component v-model info (value and callback) into
// prop and event handler respectively.
function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),s=a[r],c=t.model.callback;o(s)?(i(s)?-1===s.indexOf(c):s!==c)&&(a[r]=[c].concat(s)):a[r]=c}(e.options,t);
// extract props
// @ts-expect-error
var d=function(e,t){
// we are only extracting raw values here.
// validation and default values are handled in the child
// component itself.
var n=t.options.props;if(!a(n)){var r={},i=e.attrs,s=e.props;if(o(i)||o(s))for(var c in n){var l=M(c);yt(r,s,c,l,!0)||yt(r,i,c,l,!1)}return r}}(t,e);
// functional component
// @ts-expect-error
if(s(e.options.functional))return function(e,t,n,a,s){var c=e.options,l={},u=c.props;if(o(u))for(var h in u)l[h]=oi(h,u,t||r);else o(n.attrs)&&Vr(l,n.attrs),o(n.props)&&Vr(l,n.props);var f=new Ur(n,l,s,a,e),d=c.render.call(null,f._c,f);if(d instanceof me)return Gr(d,n,f.parent,c);if(i(d)){for(var p=At(d)||[],g=new Array(p.length),m=0;m<p.length;m++)g[m]=Gr(p[m],n,f.parent,c);return g}}(e,d,t,n,c);
// extract listeners, since these needs to be treated as
// child component listeners instead of DOM listeners
var p=t.on;
// replace with listeners with .native modifier
// so it gets processed during parent component patch.
// @ts-expect-error
if(t.on=t.nativeOn,s(e.options.abstract)){
// abstract components do not keep anything
// other than props & listeners & slot
// work around flow
var m=t.slot;t={},m&&(t.slot=m)}
// install component management hooks onto the placeholder node
!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Yr.length;n++){var r=Yr[n],i=t[r],a=qr[r];
// @ts-expect-error
i===a||i&&i._merged||(t[r]=i?$r(a,i):a)}}(t);
// return a placeholder vnode
// @ts-expect-error
var v=Wr(e.options)||l;return new me(
// @ts-expect-error
"vue-component-".concat(e.cid).concat(v?"-".concat(v):""),t,void 0,void 0,void 0,n,
// @ts-expect-error
{Ctor:e,propsData:d,listeners:p,tag:l,children:c},f)}}}function $r(e,t){var n=function(n,r){
// flow complains about extra args which is why we use any
e(n,r),t(n,r)};return n._merged=!0,n}var Jr=L,Xr=V.optionMergeStrategies;
/**
 * Helper that recursively merges two data objects together.
 */
function Zr(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var r,i,a,o=fe?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)
// in case the object is already observed...
"__ob__"!==(r=o[s])&&(i=e[r],a=t[r],n&&_(e,r)?i!==a&&f(i)&&f(a)&&Zr(i,a):Re(e,r,a));return e}
/**
 * Data
 */function ei(e,t,n){return n?function(){
// instance merge
var r=l(t)?t.call(n,n):t,i=l(e)?e.call(n,n):e;return r?Zr(r,i):i}:
// in a Vue.extend merge, both should be functions
t?e?function(){return Zr(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}
/**
 * Hooks and props are merged as arrays.
 */
function ti(e,t){var n=t?e?e.concat(t):i(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}
/**
 * Assets
 *
 * When a vm is present (instance creation), we need to do
 * a three-way merge between constructor options, instance
 * options and parent options.
 */
function ni(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}Xr.data=function(e,t,n){return n?ei(e,t,n):t&&"function"!=typeof t?e:ei(e,t)},G.forEach((function(e){Xr[e]=ti})),U.forEach((function(e){Xr[e+"s"]=ni})),
/**
 * Watchers.
 *
 * Watchers hashes should not overwrite one
 * another, so we merge them as arrays.
 */
Xr.watch=function(e,t,n,r){
/* istanbul ignore if */
if(
// work around Firefox's Object.prototype.watch...
//@ts-expect-error work around
e===ae&&(e=void 0),
//@ts-expect-error work around
t===ae&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var a={};for(var o in D(a,e),t){var s=a[o],c=t[o];s&&!i(s)&&(s=[s]),a[o]=s?s.concat(c):i(c)?c:[c]}return a},
/**
 * Other object hashes.
 */
Xr.props=Xr.methods=Xr.inject=Xr.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},Xr.provide=function(e,t){return e?function(){var n=Object.create(null);return Zr(n,l(e)?e.call(this):e),t&&Zr(n,l(t)?t.call(this):t,!1),n}:t};
/**
 * Default strategy.
 */
var ri=function(e,t){return void 0===t?e:t};
/**
 * Validate component names
 */
/**
 * Merge two option objects into a new one.
 * Core utility used in both instantiation and inheritance.
 */
function ii(e,t,n){
// Apply extends and mixins on the child options,
// but only if it is a raw options object that isn't
// the result of another mergeOptions call.
// Only merged options has the _base property.
if(l(t)&&(
// @ts-expect-error
t=t.options),
/**
 * Ensure all props option syntax are normalized into the
 * Object-based format.
 */
function(e){var t=e.props;if(t){var n,r,a={};if(i(t))for(n=t.length;n--;)"string"==typeof(r=t[n])&&(a[k(r)]={type:null});else if(f(t))for(var o in t)r=t[o],a[k(o)]=f(r)?r:{type:r};e.props=a}}
/**
 * Normalize all injections into Object-based format
 */(t),function(e){var t=e.inject;if(t){var n=e.inject={};if(i(t))for(var r=0;r<t.length;r++)n[t[r]]={from:t[r]};else if(f(t))for(var a in t){var o=t[a];n[a]=f(o)?D({from:a},o):{from:o}}}}
/**
 * Normalize raw function directives into object format.
 */(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];l(r)&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=ii(e,t.extends,n)),t.mixins))for(var r=0,a=t.mixins.length;r<a;r++)e=ii(e,t.mixins[r],n);var o,s={};for(o in e)c(o);for(o in t)_(e,o)||c(o);function c(r){var i=Xr[r]||ri;s[r]=i(e[r],t[r],n,r)}return s}
/**
 * Resolve an asset.
 * This function is used because child instances need access
 * to assets defined in its ancestor chain.
 */function ai(e,t,n,r){
/* istanbul ignore if */
if("string"==typeof n){var i=e[t];
// check local registration variations first
if(_(i,n))return i[n];var a=k(n);if(_(i,a))return i[a];var o=S(a);return _(i,o)?i[o]:i[n]||i[a]||i[o];
// fallback to prototype chain
}}function oi(e,t,n,r){var i=t[e],a=!_(n,e),o=n[e],s=ui(Boolean,i.type);if(s>-1)if(a&&!_(i,"default"))o=!1;else if(""===o||o===M(e)){
// only cast empty string / same name to boolean if
// boolean has higher priority
var c=ui(String,i.type);(c<0||s<c)&&(o=!0)}
// check default value
if(void 0===o){o=
/**
 * Get the default value of a prop.
 */
function(e,t,n){
// no default, return undefined
if(!_(t,"default"))return;var r=t.default;
// warn against non-factory defaults for Object & Array
0;
// the raw prop value was also undefined from previous render,
// return previous default value to avoid unnecessary watcher trigger
if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];
// call factory function for non-Function types
// a value is Function if its prototype is function even across different execution context
return l(r)&&"Function"!==ci(t.type)?r.call(e):r}
/**
 * Assert whether a prop is valid.
 */(r,i,e);
// since the default value is a fresh copy,
// make sure to observe it.
var u=Te;Oe(!0),Le(o),Oe(u)}return o}var si=/^\s*function (\w+)/;
/**
 * Use function string name to check built-in types,
 * because a simple equality check will fail when running
 * across different vms / iframes.
 */function ci(e){var t=e&&e.toString().match(si);return t?t[1]:""}function li(e,t){return ci(e)===ci(t)}function ui(e,t){if(!i(t))return li(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(li(t[n],e))return n;return-1}function hi(e){this._init(e)}
//@ts-expect-error Vue has function type
function fi(e){
/**
     * Each instance constructor, including Vue, has a unique
     * cid. This enables us to create wrapped "child
     * constructors" for prototypal inheritance and cache them.
     */
e.cid=0;var t=1;
/**
     * Class inheritance
     */e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=Wr(e)||Wr(n.options);var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=ii(n.options,e),o.super=n,
// For props and computed properties, we define the proxy getters on
// the Vue instances at extension time, on the extended prototype. This
// avoids Object.defineProperty calls for each instance created.
o.options.props&&function(e){var t=e.options.props;for(var n in t)Dr(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Qr(e.prototype,n,t[n])}(o),
// allow further extension/mixin/plugin usage
o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,
// create asset registers, so extended classes
// can have their private assets too.
U.forEach((function(e){o[e]=n[e]})),
// enable recursive self-lookup
a&&(o.options.components[a]=o),
// keep a reference to the super options at extension time.
// later at instantiation we can check if Super's options have
// been updated.
o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=D({},o.options),
// cache constructor
i[r]=o,o}}function di(e){return e&&(Wr(e.Ctor.options)||e.tag)}function pi(e,t){return i(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)
/* istanbul ignore next */}function gi(e,t){var n=e.cache,r=e.keys,i=e._vnode,a=e.$vnode;for(var o in n){var s=n[o];if(s){var c=s.name;c&&!t(c)&&mi(n,o,r,i)}}a.componentOptions.children=void 0}function mi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||
// @ts-expect-error can be undefined
i.componentInstance.$destroy(),e[t]=null,x(n,t)}!function(e){e.prototype._init=function(e){var t=this;
// a uid
t._uid=zr++,
// a flag to mark this as a Vue instance without having to do instanceof
// check
t._isVue=!0,
// avoid instances from being observed
t.__v_skip=!0,
// effect scope
t._scope=new fn(!0/* detached */),
// #13134 edge case where a child component is manually created during the
// render of a parent component
t._scope.parent=void 0,t._scope._vm=!0,
// merge options
e&&e._isComponent?
// optimize internal component instantiation
// since dynamic options merging is pretty slow, and none of the
// internal component options needs special treatment.
function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;
// doing this because it's faster than dynamic enumeration.
n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=ii(Hr(t.constructor),e||{},t)
/* istanbul ignore else */,t._renderProxy=t,
// expose real self
t._self=t,function(e){var t=e.$options,n=t.parent;
// locate first non-abstract parent
if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;
// init parent attached events
var t=e.$options._parentListeners;t&&hn(e,t)}(t),function(e){e._vnode=null,// the root of the child tree
e._staticTrees=null;// v-once cached trees
var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=zt(t._renderChildren,i),e.$scopedSlots=n?Gt(e.$parent,n.data.scopedSlots,e.$slots):r,
// bind the createElement fn to this instance
// so that we get proper render context inside it.
// args order: tag, data, children, normalizationType, alwaysNormalize
// internal version is used by render functions compiled from templates
// @ts-expect-error
e._c=function(t,n,r,i){return _t(e,t,n,r,i,!1)},
// normalization is always applied for the public version, used in
// user-written render functions.
// @ts-expect-error
e.$createElement=function(t,n,r,i){return _t(e,t,n,r,i,!0)};
// $attrs & $listeners are exposed for easier HOC creation.
// they need to be reactive so that HOCs using them are always updated
var a=n&&n.data;
/* istanbul ignore else */Qe(e,"$attrs",a&&a.attrs||r,null,!0),Qe(e,"$listeners",t._parentListeners||r,null,!0)}(t),wn(t,"beforeCreate",void 0,!1/* setContext */),function(e){var t=Fr(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach((function(n){Qe(e,n,t[n])})),Oe(!0))}(t),// resolve injections before data/props
Pr(t),function(e){var t=e.$options.provide;if(t){var n=l(t)?t.call(e):t;if(!u(n))return;for(var r=Vn(e),i=fe?Reflect.ownKeys(n):Object.keys(n),a=0
// IE9 doesn't support Object.getOwnPropertyDescriptors so we have to
// iterate the keys ourselves.
;a<i.length;a++){var o=i[a];Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(n,o))}}}(t),// resolve provide after data/props
wn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(hi),
//@ts-expect-error Vue has function type
function(e){
// flow somehow has problems with directly declared definition object
// when using Object.defineProperty, so we have to procedurally build up
// the object here.
var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Re,e.prototype.$delete=je,e.prototype.$watch=function(e,t,n){var r=this;if(f(t))return Nr(r,e,t,n);(n=n||{}).user=!0;var i=new Tr(r,e,t,n);if(n.immediate){var a='callback for immediate watcher "'.concat(i.expression,'"');Ie(),Kn(t,r,[i.value],r,a),Ee()}return function(){i.teardown()}}}(hi),
//@ts-expect-error Vue has function type
function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(i(e))for(var a=0,o=e.length;a<o;a++)r.$on(e[a],n);else(r._events[e]||(r._events[e]=[])).push(n),
// optimize hook:event cost by using a boolean flag marked at registration
// instead of a hash lookup
t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;
// all
if(!arguments.length)return n._events=Object.create(null),n;
// array of events
if(i(e)){for(var r=0,a=e.length;r<a;r++)n.$off(e[r],t);return n}
// specific event
var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;
// specific handler
for(var c=s.length;c--;)if((o=s[c])===t||o.fn===t){s.splice(c,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for "'.concat(e,'"'),a=0,o=n.length;a<o;a++)Kn(n[a],t,r,t,i)}return t}}(hi),
//@ts-expect-error Vue has function type
function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=vn(n);n._vnode=e,
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
// updates
n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1/* removeOnly */),a(),
// update __vue__ reference
r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(
// if parent is an HOC, update its $el as well
var o=n;o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode;)o.$parent.$el=o.$el,o=o.$parent;
// updated hook is called by the scheduler to ensure that children are
// updated in a parent's updated hook.
},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){wn(e,"beforeDestroy"),e._isBeingDestroyed=!0;
// remove self from parent
var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||x(t.$children,e),
// teardown scope. this includes both the render watcher and other
// watchers created
e._scope.stop(),
// remove reference from data ob
// frozen object may not have observer.
e._data.__ob__&&e._data.__ob__.vmCount--,
// call the last hook...
e._isDestroyed=!0,
// invoke destroy hooks on current rendered tree
e.__patch__(e._vnode,null),
// fire destroyed hook
wn(e,"destroyed"),
// turn off all instance listeners.
e.$off(),
// remove __vue__ reference
e.$el&&(e.$el.__vue__=null),
// release circular reference (#6759)
e.$vnode&&(e.$vnode.parent=null)}}}(hi),
//@ts-expect-error Vue has function type
function(e){
// install runtime convenience helpers
Ft(e.prototype),e.prototype.$nextTick=function(e){return sr(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t._parentVnode;r&&e._isMounted&&(e.$scopedSlots=Gt(e.$parent,r.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&$t(e._slotsProxy,e.$scopedSlots)),
// set parent vnode. this allows render functions to have access
// to the data on the placeholder node.
e.$vnode=r;
// render self
var a,o=de,s=an;try{ge(e),an=e,a=n.call(e._renderProxy,e.$createElement)}catch(t){Yn(t,e,"render"),a=e._vnode}finally{an=s,ge(o)}
// if the returned array contains only a single node, allow it
return i(a)&&1===a.length&&(a=a[0]),
// return empty vnode in case the render function errored out
a instanceof me||(a=ve()),
// set parent
a.parent=r,a}}(hi);var vi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:vi,exclude:vi,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var a=r.tag,o=r.componentInstance,s=r.componentOptions;t[i]={name:di(s),tag:a,componentInstance:o},n.push(i),
// prune oldest entry
this.max&&n.length>parseInt(this.max)&&mi(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)mi(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){gi(e,(function(e){return pi(t,e)}))})),this.$watch("exclude",(function(t){gi(e,(function(e){return!pi(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=sn(e),n=t&&t.componentOptions;if(n){
// check pattern
var r=di(n),i=this.include,a=this.exclude;if(
// not included
i&&(!r||!pi(i,r))||
// excluded
a&&r&&pi(a,r))return t;var o=this.cache,s=this.keys,c=null==t.key?// same constructor may get registered as different local components
// so cid alone is not enough (#3269)
n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;o[c]?(t.componentInstance=o[c].componentInstance,
// make current key freshest
x(s,c),s.push(c)):(
// delay setting the cache until update
this.vnodeToCache=t,this.keyToCache=c),
// @ts-expect-error can vnode.data can be undefined
t.data.keepAlive=!0}return t||e&&e[0]}},Ai={KeepAlive:yi};
// TODO defineComponent
!function(e){
// config
var t={get:function(){return V}};Object.defineProperty(e,"config",t),
// exposed util methods.
// NOTE: these are not considered part of the public API - avoid relying on
// them unless you are aware of the risk.
e.util={warn:Jr,extend:D,mergeOptions:ii,defineReactive:Qe},e.set=Re,e.delete=je,e.nextTick=sr,
// 2.6 explicit observable API
e.observable=function(e){return Le(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),
// this is used to identify the "base" constructor to extend all plain-object
// components with in Weex's multi-instance scenarios.
e.options._base=e,D(e.options.components,Ai),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;
// additional parameters
var n=O(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=ii(this.options,e),this}}(e),fi(e),function(e){
/**
     * Create asset registration methods.
     */
U.forEach((function(t){
// @ts-expect-error function is not exact same type
e[t]=function(e,n){return n?("component"===t&&f(n)&&(
// @ts-expect-error
n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(hi),Object.defineProperty(hi.prototype,"$isServer",{get:ce}),Object.defineProperty(hi.prototype,"$ssrContext",{get:function(){
/* istanbul ignore next */
return this.$vnode&&this.$vnode.ssrContext}}),
// expose FunctionalRenderContext for ssr runtime helper installation
Object.defineProperty(hi,"FunctionalRenderContext",{value:Ur}),hi.version=Ir;
// these are reserved for web because they are directly compiled away
// during template compilation
var bi=A("style,class"),wi=A("input,textarea,option,select,progress"),xi=function(e,t,n){return"value"===n&&wi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Ci=A("contenteditable,draggable,spellcheck"),_i=A("events,caret,typing,plaintext-only"),Ii=A("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ei="http://www.w3.org/1999/xlink",ki=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Si=function(e){return ki(e)?e.slice(6,e.length):""},Bi=function(e){return null==e||!1===e};
// attributes that should be using props for binding
function Mi(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Ti(r.data,t));
// @ts-expect-error parentNode.parent not VNodeWithData
for(;o(n=n.parent);)n&&n.data&&(t=Ti(t,n.data));return function(e,t){if(o(e)||o(t))return Oi(e,Di(t));
/* istanbul ignore next */return""}(t.staticClass,t.class)}function Ti(e,t){return{staticClass:Oi(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Oi(e,t){return e?t?e+" "+t:e:t||""}function Di(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=Di(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):u(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""
/* istanbul ignore next */}var Pi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Li=A("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Qi=A("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ri=function(e){return Li(e)||Qi(e)};function ji(e){return Qi(e)?"svg":
// basic support for MathML
// note it doesn't support other MathML elements being component roots
"math"===e?"math":void 0}var Ni=Object.create(null);var Fi=A("text,number,password,search,email,tel,url");
/**
 * Query an element selector if it's not an element already.
 */function zi(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var Hi=Object.freeze({__proto__:null,createElement:function(e,t){var n=document.createElement(e);return"select"!==e||
// false or null will remove the attribute but undefined will not
t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Pi[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Ui={create:function(e,t){Gi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Gi(e,!0),Gi(t))},destroy:function(e){Gi(e,!0)}};function Gi(e,t){var n=e.data.ref;if(o(n)){var r=e.context,a=e.componentInstance||e.elm,s=t?null:a,c=t?void 0:a;if(l(n))Kn(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,h="string"==typeof n||"number"==typeof n,f=$e(n),d=r.$refs;if(h||f)if(u){var p=h?d[n]:n.value;t?i(p)&&x(p,a):i(p)?p.includes(a)||p.push(a):h?(d[n]=[a],Vi(r,n,d[n])):n.value=[a]}else if(h){if(t&&d[n]!==a)return;d[n]=c,Vi(r,n,s)}else if(f){if(t&&n.value!==a)return;n.value=s}else 0}}}function Vi(e,t,n){var r=e._setupState;r&&_(r,t)&&($e(r[t])?r[t].value=n:r[t]=n)}
/**
 * Virtual DOM patching algorithm based on Snabbdom by
 * Simon Friis Vindum (@paldepind)
 * Licensed under the MIT License
 * https://github.com/paldepind/snabbdom/blob/master/LICENSE
 *
 * modified by Evan You (@yyx990803)
 *
 * Not type-checking this because this file is perf-critical and the cost
 * of making flow understand it is not worth it.
 */var Wi=new me("",{},[]),qi=["create","activate","update","remove","destroy"];function Yi(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Fi(r)&&Fi(i)}(e,t)||s(e.isAsyncPlaceholder)&&a(t.asyncFactory.error))}function Ki(e,t,n){var r,i,a={};for(r=t;r<=n;++r)o(i=e[r].key)&&(a[i]=r);return a}var $i={create:Ji,update:Ji,destroy:function(e){
// @ts-expect-error emptyNode is not VNodeWithData
Ji(e,Wi)}};function Ji(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,a=e===Wi,o=t===Wi,s=Zi(e.data.directives,e.context),c=Zi(t.data.directives,t.context),l=[],u=[];for(n in c)r=s[n],i=c[n],r?(
// existing directive, update
i.oldValue=r.value,i.oldArg=r.arg,ta(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(
// new directive, bind
ta(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var h=function(){for(var n=0;n<l.length;n++)ta(l[n],"inserted",t,e)};a?vt(t,"insert",h):h()}u.length&&vt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)ta(u[n],"componentUpdated",t,e)}));if(!a)for(n in s)c[n]||
// no longer present, unbind
ta(s[n],"unbind",e,e,o)}(e,t)}var Xi=Object.create(null);function Zi(e,t){var n,r,i=Object.create(null);if(!e)
// $flow-disable-line
return i;for(n=0;n<e.length;n++){if((r=e[n]).modifiers||(
// $flow-disable-line
r.modifiers=Xi),i[ea(r)]=r,t._setupState&&t._setupState.__sfc){var a=r.def||ai(t,"_setupState","v-"+r.name);r.def="function"==typeof a?{bind:a,update:a}:a}r.def=r.def||ai(t.$options,"directives",r.name)}
// $flow-disable-line
return i}function ea(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function ta(e,t,n,r,i){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,r,i)}catch(r){Yn(r,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var na=[Ui,$i];function ra(e,t){var n=t.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||a(e.data.attrs)&&a(t.data.attrs))){var r,i,c=t.elm,l=e.data.attrs||{},u=t.data.attrs||{};for(r in
// clone observed objects, as the user probably wants to mutate it
(o(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.attrs=D({},u)),u)i=u[r],l[r]!==i&&ia(c,r,i,t.data.pre);
// #4391: in IE9, setting type can reset value for input[type=radio]
// #6666: IE/Edge forces progress value down to 1 before setting a max
/* istanbul ignore if */for(r in(Z||te)&&u.value!==l.value&&ia(c,"value",u.value),l)a(u[r])&&(ki(r)?c.removeAttributeNS(Ei,Si(r)):Ci(r)||c.removeAttribute(r))}}function ia(e,t,n,r){r||e.tagName.indexOf("-")>-1?aa(e,t,n):Ii(t)?
// set attribute for blank value
// e.g. <option disabled>Select one</option>
Bi(n)?e.removeAttribute(t):(
// technically allowfullscreen is a boolean attribute for <iframe>,
// but Flash expects a value of "true" when used on <embed> tag
n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ci(t)?e.setAttribute(t,function(e,t){return Bi(t)||"false"===t?"false":// allow arbitrary string value for contenteditable
"contenteditable"===e&&_i(t)?t:"true"}(t,n)):ki(t)?Bi(n)?e.removeAttributeNS(Ei,Si(t)):e.setAttributeNS(Ei,t,n):aa(e,t,n)}function aa(e,t,n){if(Bi(n))e.removeAttribute(t);else{
// #7138: IE10 & 11 fires input event when setting placeholder on
// <textarea>... block the first input event and remove the blocker
// immediately.
/* istanbul ignore if */
if(Z&&!ee&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),
// $flow-disable-line
e.__ieph=!0}e.setAttribute(t,n)}}var oa={create:ra,update:ra};function sa(e,t){var n=t.elm,r=t.data,i=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var s=Mi(t),c=n._transitionClasses;
// handle transition classes
o(c)&&(s=Oi(s,Di(c))),
// set the class
s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var ca,la,ua,ha,fa,da,pa={create:sa,update:sa},ga=/[\w).+\-_$\]]/;function ma(e){var t,n,r,i,a,o=!1,s=!1,c=!1,l=!1,u=0,h=0,f=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||// pipe
124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||h||f){switch(t){case 34:s=!0;break;// "
case 39:o=!0;break;// '
case 96:c=!0;break;// `
case 40:f++;break;// (
case 41:f--;break;// )
case 91:h++;break;// [
case 93:h--;break;// ]
case 123:u++;break;// {
case 125:u--;// }
}if(47===t){
// find first non-whitespace prev char
for(
// /
var p=r-1,g=void 0;p>=0&&" "===(g=e.charAt(p));p--);g&&ga.test(g)||(l=!0)}}else void 0===i?(
// first filter, end of expression
d=r+1,i=e.slice(0,r).trim()):m();function m(){(a||(a=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),a)for(r=0;r<a.length;r++)i=va(i,a[r]);return i}function va(e,t){var n=t.indexOf("(");if(n<0)
// _f: resolveFilter
return'_f("'.concat(t,'")(').concat(e,")");var r=t.slice(0,n),i=t.slice(n+1);return'_f("'.concat(r,'")(').concat(e).concat(")"!==i?","+i:i)}
/* eslint-disable no-unused-vars */function ya(e,t){}
/* eslint-enable no-unused-vars */function Aa(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function ba(e,t,n,r,i){(e.props||(e.props=[])).push(Ba({name:t,value:n,dynamic:i},r)),e.plain=!1}function wa(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Ba({name:t,value:n,dynamic:i},r)),e.plain=!1}
// add a raw attr (use this in preTransforms)
function xa(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Ba({name:t,value:n},r))}function Ca(e,t,n,r,i,a,o,s){(e.directives||(e.directives=[])).push(Ba({name:t,rawName:n,value:r,arg:i,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function _a(e,t,n){return n?"_p(".concat(t,',"').concat(e,'")'):e+t;// mark the event as captured
}function Ia(e,t,n,i,a,o,s,c){var l;
// normalize click.right and click.middle since they don't actually fire
// this is technically browser-specific, but at least for now browsers are
// the only target envs that have right/middle clicks.
(i=i||r).right?c?t="(".concat(t,")==='click'?'contextmenu':(").concat(t,")"):"click"===t&&(t="contextmenu",delete i.right):i.middle&&(c?t="(".concat(t,")==='click'?'mouseup':(").concat(t,")"):"click"===t&&(t="mouseup")),
// check capture modifier
i.capture&&(delete i.capture,t=_a("!",t,c)),i.once&&(delete i.once,t=_a("~",t,c))
/* istanbul ignore if */,i.passive&&(delete i.passive,t=_a("&",t,c)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var u=Ba({value:n.trim(),dynamic:c},s);i!==r&&(u.modifiers=i);var h=l[t];
/* istanbul ignore if */Array.isArray(h)?a?h.unshift(u):h.push(u):l[t]=h?a?[u,h]:[h,u]:u,e.plain=!1}function Ea(e,t,n){var r=ka(e,":"+t)||ka(e,"v-bind:"+t);if(null!=r)return ma(r);if(!1!==n){var i=ka(e,t);if(null!=i)return JSON.stringify(i)}}
// note: this only removes the attr from the Array (attrsList) so that it
// doesn't get processed by processAttrs.
// By default it does NOT remove it from the map (attrsMap) because the map is
// needed during codegen.
function ka(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,a=0,o=i.length;a<o;a++)if(i[a].name===t){i.splice(a,1);break}return n&&delete e.attrsMap[t],r}function Sa(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var a=n[r];if(t.test(a.name))return n.splice(r,1),a}}function Ba(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}
/**
 * Cross-platform code generation for component v-model
 */function Ma(e,t,n){var r=n||{},i=r.number,a="$$v",o=a;r.trim&&(o="(typeof ".concat(a," === 'string'")+"? ".concat(a,".trim()")+": ".concat(a,")")),i&&(o="_n(".concat(o,")"));var s=Ta(t,o);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat(a,") {").concat(s,"}")}}
/**
 * Cross-platform codegen helper for generating v-model value assignment code.
 */function Ta(e,t){var n=function(e){if(
// Fix https://github.com/vuejs/vue/pull/7730
// allow v-model="obj.val " (trailing whitespace)
e=e.trim(),ca=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<ca-1)return(ha=e.lastIndexOf("."))>-1?{exp:e.slice(0,ha),key:'"'+e.slice(ha+1)+'"'}:{exp:e,key:null};la=e,ha=fa=da=0;for(;!Da();)
/* istanbul ignore if */
Pa(ua=Oa())?Qa(ua):91===ua&&La(ua);return{exp:e.slice(0,fa),key:e.slice(fa+1,da)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}
/**
 * Parse a v-model expression into a base path and a final key segment.
 * Handles both dot-path and possible square brackets.
 *
 * Possible cases:
 *
 * - test
 * - test[key]
 * - test[test1[key]]
 * - test["a"][key]
 * - xxx.test[a[a].test1[key]]
 * - test.xxx.a["asa"][test1[key]]
 *
 */function Oa(){return la.charCodeAt(++ha)}function Da(){return ha>=ca}function Pa(e){return 34===e||39===e}function La(e){var t=1;for(fa=ha;!Da();)if(Pa(e=Oa()))Qa(e);else if(91===e&&t++,93===e&&t--,0===t){da=ha;break}}function Qa(e){for(var t=e;!Da()&&(e=Oa())!==t;);}
// in some cases, the event used has to be determined at runtime
// so we used some reserved tokens during compile.
var Ra,ja="__r",Na="__c";function Fa(e,t,n){var r=Ra;// save current target element in closure
return function i(){null!==t.apply(null,arguments)&&Ua(e,i,n,r)}}
// #9446: Firefox <= 53 (in particular, ESR 52) has incorrect Event.timeStamp
// implementation and does not fire microtasks in between event propagation, so
// safe to exclude.
var za=Zn&&!(ie&&Number(ie[1])<=53);function Ha(e,t,n,r){
// async edge case #6566: inner click event triggers patch, event handler
// attached to outer element during patch, and triggered again. This
// happens because browsers fire microtask ticks between event propagation.
// the solution is simple: we save the timestamp when a handler is attached,
// and the handler would only fire if the event passed to it was fired
// AFTER it was attached.
if(za){var i=Sn,a=t;
//@ts-expect-error
t=a._wrapper=function(e){if(
// no bubbling, should always fire.
// this is just a safety net in case event.timeStamp is unreliable in
// certain weird environments...
e.target===e.currentTarget||
// event is fired after handler attachment
e.timeStamp>=i||
// bail for environments that have buggy event.timeStamp implementations
// #9462 iOS 9 bug: event.timeStamp is 0 after history.pushState
// #9681 QtWebEngine event.timeStamp is negative value
e.timeStamp<=0||
// #9448 bail if event is fired in another document in a multi-page
// electron/nw.js app, since event.timeStamp will be using a different
// starting reference
e.target.ownerDocument!==document)return a.apply(this,arguments)}}Ra.addEventListener(e,t,oe?{capture:n,passive:r}:n)}function Ua(e,t,n,r){(r||Ra).removeEventListener(e,
//@ts-expect-error
t._wrapper||t,n)}function Ga(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};
// vnode is empty when removing all listeners,
// and use old vnode dom element
Ra=t.elm||e.elm,
// normalize v-model event tokens that can only be determined at runtime.
// it's important to place the event as the first in the array because
// the whole point is ensuring the v-model callback gets called before
// user-attached handlers.
function(e){
/* istanbul ignore if */
if(o(e[ja])){
// IE input[type=range] only supports `change` event
var t=Z?"change":"input";e[t]=[].concat(e[ja],e[t]||[]),delete e[ja]}
// This was originally intended to fix #4521 but no longer necessary
// after 2.5. Keeping it for backwards compat with generated code from < 2.4
/* istanbul ignore if */o(e[Na])&&(e.change=[].concat(e[Na],e.change||[]),delete e[Na])}(n),mt(n,r,Ha,Ua,Fa,t.context),Ra=void 0}}var Va,Wa={create:Ga,update:Ga,
// @ts-expect-error emptyNode has actually data
destroy:function(e){return Ga(e,Wi)}};function qa(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,i=t.elm,c=e.data.domProps||{},l=t.data.domProps||{};for(n in
// clone observed objects, as the user probably wants to mutate it
(o(l.__ob__)||s(l._v_attr_proxy))&&(l=t.data.domProps=D({},l)),c)n in l||(i[n]="");for(n in l){
// ignore children if the node has textContent or innerHTML,
// as these will throw away existing DOM nodes and cause removal errors
// on subsequent patches (#3360)
if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;
// #6601 work around Chrome version <= 55 bug where single textNode
// replaced by innerHTML/textContent retains its parentNode property
1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){
// store value as _value as well since
// non-string values will be stringified
i._value=r;
// avoid resetting cursor position when value is the same
var u=a(r)?"":String(r);Ya(i,u)&&(i.value=u)}else if("innerHTML"===n&&Qi(i.tagName)&&a(i.innerHTML)){(
// IE doesn't support innerHTML for SVG elements
Va=Va||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var h=Va.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;h.firstChild;)i.appendChild(h.firstChild)}else if(
// skip the update if old and new VDOM state is the same.
// `value` is handled separately because the DOM value may be temporarily
// out of sync with VDOM state due to focus, composition and modifiers.
// This  #4521 by skipping the unnecessary `checked` update.
r!==c[n])
// some property updates can throw
// e.g. `value` on <progress> w/ non-finite value
try{i[n]=r}catch(e){}}}}function Ya(e,t){
//@ts-expect-error
return!e.composing&&("OPTION"===e.tagName||function(e,t){
// return true when textbox (.number and .trim) loses focus and its value is
// not equal to the updated value
var n=!0;
// #6157
// work around IE bug when accessing document.activeElement in an iframe
try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;// injected by v-model runtime
if(o(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ka={create:qa,update:qa},$a=I((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));
// merge static and dynamic style data on the same vnode
function Ja(e){var t=Xa(e.style);
// static style is pre-processed into an object during compilation
// and is always a fresh object, so it's safe to merge into it
return e.staticStyle?D(e.staticStyle,t):t}
// normalize possible array / string values into Object
function Xa(e){return Array.isArray(e)?P(e):"string"==typeof e?$a(e):e}
/**
 * parent component style should be after child's
 * so that parent component's style could override it
 */var Za,eo=/^--/,to=/\s*!important$/,no=function(e,t,n){
/* istanbul ignore if */
if(eo.test(t))e.style.setProperty(t,n);else if(to.test(n))e.style.setProperty(M(t),n.replace(to,""),"important");else{var r=io(t);if(Array.isArray(n))
// Support values array created by autoprefixer, e.g.
// {display: ["-webkit-box", "-ms-flexbox", "flex"]}
// Set them one by one, and the browser will only set those it can recognize
for(var i=0,a=n.length;i<a;i++)e.style[r]=n[i];else e.style[r]=n}},ro=["Webkit","Moz","ms"],io=I((function(e){if(Za=Za||document.createElement("div").style,"filter"!==(e=k(e))&&e in Za)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ro.length;n++){var r=ro[n]+t;if(r in Za)return r}}));function ao(e,t){var n=t.data,r=e.data;if(!(a(n.staticStyle)&&a(n.style)&&a(r.staticStyle)&&a(r.style))){var i,s,c=t.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},h=l||u,f=Xa(t.data.style)||{};
// store normalized style under a different key for next diff
// make sure to clone it if it's reactive, since the user likely wants
// to mutate it.
t.data.normalizedStyle=o(f.__ob__)?D({},f):f;var d=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ja(i.data))&&D(r,n);(n=Ja(e.data))&&D(r,n);
// @ts-expect-error parentNode.parent not VNodeWithData
for(var a=e;a=a.parent;)a.data&&(n=Ja(a.data))&&D(r,n);return r}(t,!0);for(s in h)a(d[s])&&no(c,s,"");for(s in d)i=d[s],
// ie9 setting to null has no effect, must use empty string
no(c,s,null==i?"":i)}}var oo={create:ao,update:ao},so=/\s+/;
/**
 * Add class with compatibility for SVG since classList is not supported on
 * SVG elements in IE
 */
function co(e,t){
/* istanbul ignore if */
if(t&&(t=t.trim()))
/* istanbul ignore else */
if(e.classList)t.indexOf(" ")>-1?t.split(so).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}
/**
 * Remove class with compatibility for SVG since classList is not supported on
 * SVG elements in IE
 */function lo(e,t){
/* istanbul ignore if */
if(t&&(t=t.trim()))
/* istanbul ignore else */
if(e.classList)t.indexOf(" ")>-1?t.split(so).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function uo(e){if(e){
/* istanbul ignore else */
if("object"==typeof e){var t={};return!1!==e.css&&D(t,ho(e.name||"v")),D(t,e),t}return"string"==typeof e?ho(e):void 0}}var ho=I((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),fo=J&&!ee,po="transition",go="animation",mo="transition",vo="transitionend",yo="animation",Ao="animationend";fo&&(
/* istanbul ignore if */
void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(mo="WebkitTransition",vo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(yo="WebkitAnimation",Ao="webkitAnimationEnd"));
// binding to window is necessary to make hot reload work in IE in strict mode
var bo=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:/* istanbul ignore next */function(/* istanbul ignore next */e){return e()};function wo(e){bo((function(){
// @ts-expect-error
bo(e)}))}function xo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),co(e,t))}function Co(e,t){e._transitionClasses&&x(e._transitionClasses,t),lo(e,t)}function _o(e,t,n){var r=Eo(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===po?vo:Ao,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=o&&l()};setTimeout((function(){c<o&&l()}),a+1),e.addEventListener(s,u)}var Io=/\b(transform|all)(,|$)/;function Eo(e,t){var n,r=window.getComputedStyle(e),i=(r[mo+"Delay"]||"").split(", "),a=(r[mo+"Duration"]||"").split(", "),o=ko(i,a),s=(r[yo+"Delay"]||"").split(", "),c=(r[yo+"Duration"]||"").split(", "),l=ko(s,c),u=0,h=0;
// JSDOM may return undefined for transition properties
/* istanbul ignore if */
return t===po?o>0&&(n=po,u=o,h=a.length):t===go?l>0&&(n=go,u=l,h=c.length):h=(n=(u=Math.max(o,l))>0?o>l?po:go:null)?n===po?a.length:c.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===po&&Io.test(r[mo+"Property"])}}function ko(e,t){
/* istanbul ignore next */
for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return So(t)+So(e[n])})))}
// Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers
// in a locale-dependent way, using a comma instead of a dot.
// If comma is not replaced with a dot, the input will be rounded down (i.e. acting
// as a floor function) causing unexpected behaviors
function So(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Bo(e,t){var n=e.elm;
// call leave callback now
o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=uo(e.data.transition);if(!a(r)&&!o(n._enterCb)&&1===n.nodeType)
/* istanbul ignore if */
{for(var i=r.css,s=r.type,c=r.enterClass,h=r.enterToClass,f=r.enterActiveClass,d=r.appearClass,p=r.appearToClass,g=r.appearActiveClass,m=r.beforeEnter,v=r.enter,A=r.afterEnter,b=r.enterCancelled,w=r.beforeAppear,x=r.appear,C=r.afterAppear,_=r.appearCancelled,I=r.duration,E=mn,k=mn.$vnode
// activeInstance will always be the <transition> component managing this
// transition. One edge case to check is when the <transition> is placed
// as the root node of a child component. In that case we need to check
// <transition>'s parent for appear check.
;k&&k.parent;)E=k.context,k=k.parent;var S=!E._isMounted||!e.isRootInsert;if(!S||x||""===x){var B=S&&d?d:c,M=S&&g?g:f,T=S&&p?p:h,O=S&&w||m,D=S&&l(x)?x:v,P=S&&C||A,L=S&&_||b,Q=y(u(I)?I.enter:I);0;var R=!1!==i&&!ee,j=Oo(D),N=n._enterCb=F((function(){R&&(Co(n,T),Co(n,M)),
// @ts-expect-error
N.cancelled?(R&&Co(n,B),L&&L(n)):P&&P(n),n._enterCb=null}));e.data.show||
// remove pending leave element on enter by injecting an insert hook
vt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,N)})),
// start enter transition
O&&O(n),R&&(xo(n,B),xo(n,M),wo((function(){Co(n,B),
// @ts-expect-error
N.cancelled||(xo(n,T),j||(To(Q)?setTimeout(N,Q):_o(n,s,N)))}))),e.data.show&&(t&&t(),D&&D(n,N)),R||j||N()}}}function Mo(e,t){var n=e.elm;
// call enter callback now
o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=uo(e.data.transition);if(a(r)||1!==n.nodeType)return t();
/* istanbul ignore if */if(!o(n._leaveCb)){var i=r.css,s=r.type,c=r.leaveClass,l=r.leaveToClass,h=r.leaveActiveClass,f=r.beforeLeave,d=r.leave,p=r.afterLeave,g=r.leaveCancelled,m=r.delayLeave,v=r.duration,A=!1!==i&&!ee,b=Oo(d),w=y(u(v)?v.leave:v);0;var x=n._leaveCb=F((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),A&&(Co(n,l),Co(n,h)),
// @ts-expect-error
x.cancelled?(A&&Co(n,c),g&&g(n)):(t(),p&&p(n)),n._leaveCb=null}));m?m(C):C()}function C(){
// the delayed leave may have already been cancelled
// @ts-expect-error
x.cancelled||(
// record leaving element
!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),A&&(xo(n,c),xo(n,h),wo((function(){Co(n,c),
// @ts-expect-error
x.cancelled||(xo(n,l),b||(To(w)?setTimeout(x,w):_o(n,s,x)))}))),d&&d(n,x),A||b||x())}}
// only used in dev mode
function To(e){return"number"==typeof e&&!isNaN(e)}
/**
 * Normalize a transition hook's argument length. The hook may be:
 * - a merged hook (invoker) with the original in .fns
 * - a wrapped component method (check ._length)
 * - a plain function (.length)
 */function Oo(e){if(a(e))return!1;
// @ts-expect-error
var t=e.fns;return o(t)?Oo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Do(e,t){!0!==t.data.show&&Bo(t)}var Po=function(e){var t,n,r={},l=e.modules,u=e.nodeOps;for(t=0;t<qi.length;++t)for(r[qi[t]]=[],n=0;n<l.length;++n)o(l[n][qi[t]])&&r[qi[t]].push(l[n][qi[t]]);function h(e){var t=u.parentNode(e);
// element may have already been removed due to v-html / v-text
o(t)&&u.removeChild(t,e)}function f(e,t,n,i,a,c,l){// for transition enter check
if(o(e.elm)&&o(c)&&(
// This vnode was used in a previous render!
// now it's used as a new node, overwriting its elm would cause
// potential patch errors down the road when it's used as an insertion
// reference node. Instead, we clone the node on-demand before creating
// associated DOM element for it.
e=c[l]=Ae(e)),e.isRootInsert=!a,!function(e,t,n,i){var a=e.data;if(o(a)){var c=o(e.componentInstance)&&a.keepAlive;
// after calling the init hook, if the vnode is a child component
// it should've created a child instance and mounted it. the child
// component also has set the placeholder vnode's elm.
// in that case we can just return the element and be done.
if(o(a=a.hook)&&o(a=a.init)&&a(e,!1/* hydrating */),o(e.componentInstance))return d(e,t),p(n,e.elm,i),s(c)&&function(e,t,n,i){var a,s=e;
// hack for #4339: a reactivated component with inner transition
// does not trigger because the inner node's created hooks are not called
// again. It's not ideal to involve module-specific logic in here but
// there doesn't seem to be a better way to do it.
for(;s.componentInstance;)if(o(a=(s=s.componentInstance._vnode).data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Wi,s);t.push(s);break}
// unlike a newly created component,
// a reactivated keep-alive component doesn't insert itself
p(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var h=e.data,f=e.children,m=e.tag;o(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),y(e),g(e,f,t),o(h)&&v(e,t),p(n,e.elm,i)):s(e.isComment)?(e.elm=u.createComment(e.text),p(n,e.elm,i)):(e.elm=u.createTextNode(e.text),p(n,e.elm,i))}}function d(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(v(e,t),y(e)):(
// empty component root.
// skip all element-related modules except for ref (#3455)
Gi(e),
// make sure to invoke the insert hook
t.push(e))}function p(e,t,n){o(e)&&(o(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function g(e,t,n){if(i(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else c(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return o(e.tag)}function v(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Wi,e);// Reuse variable
o(t=e.data.hook)&&(o(t.create)&&t.create(Wi,e),o(t.insert)&&n.push(e))}
// set scope id attribute for scoped CSS.
// this is implemented as a special case to avoid the overhead
// of going through the normal attribute patching process.
function y(e){var t;if(o(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)o(t=n.context)&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;
// for slot content they should also get the scopeId from the host instance.
o(t=mn)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function b(e,t,n,r,i,a){for(;r<=i;++r)f(n[r],a,e,t,!1,n,r)}function w(e){var t,n,i=e.data;if(o(i))for(o(t=i.hook)&&o(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function x(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(C(r),w(r)):
// Text node
h(r.elm))}}function C(e,t){if(o(t)||o(e.data)){var n,i=r.remove.length+1;for(o(t)?
// we have a recursively passed down rm callback
// increase the listeners count
t.listeners+=i:
// directly removing
t=function(e,t){function n(){0==--n.listeners&&h(e)}return n.listeners=t,n}(e.elm,i),
// recursively invoke hooks on child component root node
o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&C(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else h(e.elm)}function _(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&Yi(e,a))return i}}function I(e,t,n,i,c,l){if(e!==t){o(t.elm)&&o(i)&&(
// clone reused vnode
t=i[c]=Ae(t));var h=t.elm=e.elm;if(s(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?S(e.elm,t,n):t.isAsyncPlaceholder=!0;else
// reuse element for static trees.
// note we only do this if the vnode is cloned -
// if the new node is not cloned it means the render functions have been
// reset by the hot-reload-api and we need to do a proper re-render.
if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,p=t.data;o(p)&&o(d=p.hook)&&o(d=d.prepatch)&&d(e,t);var g=e.children,v=t.children;if(o(p)&&m(t)){for(d=0;d<r.update.length;++d)r.update[d](e,t);o(d=p.hook)&&o(d=d.update)&&d(e,t)}a(t.text)?o(g)&&o(v)?g!==v&&function(e,t,n,r,i){var s,c,l,h=0,d=0,p=t.length-1,g=t[0],m=t[p],v=n.length-1,y=n[0],A=n[v],w=!i;for(;h<=p&&d<=v;)a(g)?g=t[++h]:a(m)?m=t[--p]:Yi(g,y)?(I(g,y,r,n,d),g=t[++h],y=n[++d]):Yi(m,A)?(I(m,A,r,n,v),m=t[--p],A=n[--v]):Yi(g,A)?(
// Vnode moved right
I(g,A,r,n,v),w&&u.insertBefore(e,g.elm,u.nextSibling(m.elm)),g=t[++h],A=n[--v]):Yi(m,y)?(
// Vnode moved left
I(m,y,r,n,d),w&&u.insertBefore(e,m.elm,g.elm),m=t[--p],y=n[++d]):(a(s)&&(s=Ki(t,h,p)),a(c=o(y.key)?s[y.key]:_(y,t,h,p))?
// New element
f(y,r,e,g.elm,!1,n,d):Yi(l=t[c],y)?(I(l,y,r,n,d),t[c]=void 0,w&&u.insertBefore(e,l.elm,g.elm)):
// same key but different element. treat as new element
f(y,r,e,g.elm,!1,n,d),y=n[++d]);h>p?b(e,a(n[v+1])?null:n[v+1].elm,n,d,v,r):d>v&&x(t,h,p)}(h,g,v,n,l):o(v)?(o(e.text)&&u.setTextContent(h,""),b(h,null,v,0,v.length-1,n)):o(g)?x(g,0,g.length-1):o(e.text)&&u.setTextContent(h,""):e.text!==t.text&&u.setTextContent(h,t.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(e,t)}}}function E(e,t,n){
// delay insert hooks for component root nodes, invoke them after the
// element is really inserted
if(s(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var k=A("attrs,class,staticClass,staticStyle,key");
// list of modules that can skip create hook during hydration because they
// are already rendered on the client or has no need for initialization
// Note: style is excluded because it relies on initial clone for future
// deep updates (#7063).
// Note: this is a browser-only function so we can assume elms are DOM nodes.
function S(e,t,n,r){var i,a=t.tag,c=t.data,l=t.children;if(r=r||c&&c.pre,t.elm=e,s(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;
// assert node match
if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(t,!0/* hydrating */),o(i=t.componentInstance)))
// child component. it should have hydrated its own tree.
return d(t,n),!0;if(o(a)){if(o(l))
// empty element, allow client to pick up and populate children
if(e.hasChildNodes())
// v-html and domProps: innerHTML
if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(
// iterate and compare children lists
var u=!0,h=e.firstChild,f=0;f<l.length;f++){if(!h||!S(h,l[f],n,r)){u=!1;break}h=h.nextSibling}
// if childNode is not null, it means the actual childNodes list is
// longer than the virtual children list.
if(!u||h)return!1}else g(t,l,n);if(o(c)){var p=!1;for(var m in c)if(!k(m)){p=!0,v(t,n);break}!p&&c.class&&
// ensure collecting deps for deep class bindings for future updates
Sr(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!a(t)){var c,l=!1,h=[];if(a(e))
// empty mount (likely as component), create new root element
l=!0,f(t,h);else{var d=o(e.nodeType);if(!d&&Yi(e,t))
// patch existing root node
I(e,t,h,null,null,i);else{if(d){if(
// mounting to a real element
// check if this is server-rendered content and if we can perform
// a successful hydration.
1===e.nodeType&&e.hasAttribute(H)&&(e.removeAttribute(H),n=!0),s(n)&&S(e,t,h))return E(t,h,!0),e;
// either not server-rendered, or hydration failed.
// create an empty node and replace it
c=e,e=new me(u.tagName(c).toLowerCase(),{},[],void 0,c)}
// replacing existing element
var p=e.elm,g=u.parentNode(p);
// update parent placeholder node element, recursively
if(
// create new node
f(t,h,
// extremely rare edge case: do not insert if old element is in a
// leaving transition. Only happens when combining transition +
// keep-alive + HOCs. (#4590)
p._leaveCb?null:g,u.nextSibling(p)),o(t.parent))for(var v=t.parent,y=m(t);v;){for(var A=0;A<r.destroy.length;++A)r.destroy[A](v);if(v.elm=t.elm,y){for(var b=0;b<r.create.length;++b)r.create[b](Wi,v);
// #6513
// invoke insert hooks that may have been merged by create hooks.
// e.g. for directives that uses the "inserted" hook.
var C=v.data.hook.insert;if(C.merged)for(
// start at index 1 to avoid re-invoking component mounted hook
// clone insert hooks to avoid being mutated during iteration.
// e.g. for customed directives under transition group.
var _=C.fns.slice(1),k=0;k<_.length;k++)_[k]()}else Gi(v);v=v.parent}
// destroy old node
o(g)?x([e],0,0):o(e.tag)&&w(e)}}return E(t,h,l),t.elm}o(e)&&w(e)}}({nodeOps:Hi,modules:[oa,pa,Wa,Ka,oo,J?{create:Do,activate:Do,remove:function(e,t){
/* istanbul ignore else */
!0!==e.data.show?
// @ts-expect-error
Mo(e,t):t()}}:{}].concat(na)});
/**
 * Not type checking this file because flow doesn't like attaching
 * properties to Elements.
 */
/* istanbul ignore if */
ee&&
// http://www.matts411.com/post/internet-explorer-9-oninput/
document.addEventListener("selectionchange",(function(){var e=document.activeElement;
// @ts-expect-error
e&&e.vmodel&&Ho(e,"input")}));var Lo={inserted:function(e,t,n,r){"select"===n.tag?(
// #6903
r.elm&&!r.elm._vOptions?vt(n,"postpatch",(function(){Lo.componentUpdated(e,t,n)})):Qo(e,t,n.context),e._vOptions=[].map.call(e.options,No)):("textarea"===n.tag||Fi(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Fo),e.addEventListener("compositionend",zo),
// Safari < 10.2 & UIWebView doesn't fire compositionend when
// switching focus before confirming composition choice
// this also fixes the issue where some browsers e.g. iOS Chrome
// fires "change" instead of "input" on autocomplete.
e.addEventListener("change",zo),
/* istanbul ignore if */
ee&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Qo(e,t,n.context);
// in case the options rendered by v-for have changed,
// it's possible that the value is out-of-sync with the rendered options.
// detect such cases and filter out values that no longer has a matching
// option in the DOM.
var r=e._vOptions,i=e._vOptions=[].map.call(e.options,No);if(i.some((function(e,t){return!j(e,r[t])})))(e.multiple?t.value.some((function(e){return jo(e,i)})):t.value!==t.oldValue&&jo(t.value,i))&&Ho(e,"change")}}};function Qo(e,t,n){Ro(e,t,n),
/* istanbul ignore if */
(Z||te)&&setTimeout((function(){Ro(e,t,n)}),0)}function Ro(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,c=e.options.length;s<c;s++)if(o=e.options[s],i)a=N(r,No(o))>-1,o.selected!==a&&(o.selected=a);else if(j(No(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function jo(e,t){return t.every((function(t){return!j(t,e)}))}function No(e){return"_value"in e?e._value:e.value}function Fo(e){e.target.composing=!0}function zo(e){
// prevent triggering an input event for no reason
e.target.composing&&(e.target.composing=!1,Ho(e.target,"input"))}function Ho(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}
// recursively search for possible transition defined inside the component root
function Uo(e){
// @ts-expect-error
return!e.componentInstance||e.data&&e.data.transition?e:Uo(e.componentInstance._vnode)}var Go={bind:function(e,t,n){var r=t.value,i=(n=Uo(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Bo(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;
/* istanbul ignore if */!r!=!t.oldValue&&((n=Uo(n)).data&&n.data.transition?(n.data.show=!0,r?Bo(n,(function(){e.style.display=e.__vOriginalDisplay})):Mo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Vo={model:Lo,show:Go},Wo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};
// in case the child is also an abstract component, e.g. <keep-alive>
// we want to recursively retrieve the real component to be rendered
function qo(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?qo(sn(t.children)):e}function Yo(e){var t={},n=e.$options;
// props
for(var r in n.propsData)t[r]=e[r];
// events.
// extract listeners and pass them directly to the transition methods
var i=n._parentListeners;for(var r in i)t[k(r)]=i[r];return t}function Ko(e,t){
// @ts-expect-error
if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var $o=function(e){return e.tag||Ut(e)},Jo=function(e){return"show"===e.name},Xo={name:"transition",props:Wo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(
// filter out text nodes (possible whitespaces)
n=n.filter($o)).length)
/* istanbul ignore if */
{0;var r=this.mode;
// warn invalid mode
0;var i=n[0];
// if this is a component root node and the component's
// parent container node also has transition, skip.
if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;
// apply transition data to child
// use getRealChild() to ignore abstract components e.g. keep-alive
var a=qo(i);
/* istanbul ignore if */if(!a)return i;if(this._leaving)return Ko(e,i);
// ensure a key that is unique to the vnode type and to this transition
// component instance. This key will be used to remove pending leaving nodes
// during entering.
var o="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?o+"comment":o+a.tag:c(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=Yo(this),l=this._vnode,u=qo(l);if(
// mark v-show
// so that the transition module can hand over the control to the directive
a.data.directives&&a.data.directives.some(Jo)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!Ut(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){
// replace old child transition data with fresh one
// important for dynamic transitions!
var h=u.data.transition=D({},s);
// handle transition mode
if("out-in"===r)
// return placeholder node and queue update when leave finishes
return this._leaving=!0,vt(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ko(e,i);if("in-out"===r){if(Ut(a))return l;var f,d=function(){f()};vt(s,"afterEnter",d),vt(s,"enterCancelled",d),vt(h,"delayLeave",(function(e){f=e}))}}return i}
// warn multiple elements
}},Zo=D({tag:String,moveClass:String},Wo);delete Zo.mode;var es={props:Zo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=vn(e);
// force removing pass
e.__patch__(e._vnode,e.kept,!1,// hydrating
!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=Yo(this),s=0;s<i.length;s++){if((u=i[s]).tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))a.push(u),n[u.key]=u,(u.data||(u.data={})).transition=o;else;}if(r){var c=[],l=[];for(s=0;s<r.length;s++){var u;(u=r[s]).data.transition=o,
// @ts-expect-error .getBoundingClientRect is not typed in Node
u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?c.push(u):l.push(u)}this.kept=e(t,null,c),this.removed=l}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(
// we divide the work into three loops to avoid mixing DOM reads and writes
// in each iteration - which helps prevent layout thrashing.
e.forEach(ts),e.forEach(ns),e.forEach(rs),
// force reflow to put everything in position
// assign to this to avoid being removed in tree-shaking
// $flow-disable-line
this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;xo(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(vo,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(vo,e),n._moveCb=null,Co(n,t))})}})))},methods:{hasMove:function(e,t){
/* istanbul ignore if */
if(!fo)return!1;
/* istanbul ignore if */if(this._hasMove)return this._hasMove;
// Detect whether an element with the move class applied has
// CSS transitions. Since the element may be inside an entering
// transition at this very moment, we make a clone of it and remove
// all other transition classes applied to ensure only the move class
// is applied.
var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){lo(n,e)})),co(n,t),n.style.display="none",this.$el.appendChild(n);var r=Eo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ts(e){
/* istanbul ignore if */
e.elm._moveCb&&e.elm._moveCb()
/* istanbul ignore if */,e.elm._enterCb&&e.elm._enterCb()}function ns(e){e.data.newPos=e.elm.getBoundingClientRect()}function rs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),a.transitionDuration="0s"}}var is={Transition:Xo,TransitionGroup:es};
// install platform specific utils
hi.config.mustUseProp=xi,hi.config.isReservedTag=Ri,hi.config.isReservedAttr=bi,hi.config.getTagNamespace=ji,hi.config.isUnknownElement=function(e){
/* istanbul ignore if */
if(!J)return!0;if(Ri(e))return!1;
/* istanbul ignore if */
if(e=e.toLowerCase(),null!=Ni[e])return Ni[e];var t=document.createElement(e);return e.indexOf("-")>-1?Ni[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Ni[e]=/HTMLUnknownElement/.test(t.toString())},
// install platform runtime directives & components
D(hi.options.directives,Vo),D(hi.options.components,is),
// install platform patch function
hi.prototype.__patch__=J?Po:L,
// public mount method
hi.prototype.$mount=function(e,t){return function(e,t,n){var r;
/* istanbul ignore if */e.$el=t,e.$options.render||(
// @ts-expect-error invalid type
e.$options.render=ve),wn(e,"beforeMount"),r=function(){e._update(e._render(),n)},
// we set this to vm._watcher inside the watcher's constructor
// since the watcher's initial patch may call $forceUpdate (e.g. inside child
// component's mounted hook), which relies on vm._watcher being already defined
new Tr(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&wn(e,"beforeUpdate")}},!0/* isRenderWatcher */),n=!1;
// flush buffer for flush: "pre" watchers queued in setup()
var i=e._preWatchers;if(i)for(var a=0;a<i.length;a++)i[a].run();
// manually mounted instance, call mounted on self
// mounted is called for render-created child components in its inserted hook
return null==e.$vnode&&(e._isMounted=!0,wn(e,"mounted")),e}(this,e=e&&J?zi(e):void 0,t)},
// devtools global hook
/* istanbul ignore next */
J&&setTimeout((function(){V.devtools&&le&&le.emit("init",hi)}),0);var as=/\{\{((?:.|\r?\n)+?)\}\}/g,os=/[-.*+?^${}()|[\]\/\\]/g,ss=I((function(e){var t=e[0].replace(os,"\\$&"),n=e[1].replace(os,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var cs={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=ka(e,"class");n&&(e.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=Ea(e,"class",!1/* getStatic */);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}};var ls,us={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=ka(e,"style");n&&(e.staticStyle=JSON.stringify($a(n)));var r=Ea(e,"style",!1/* getStatic */);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}},hs=function(e){return(ls=ls||document.createElement("div")).innerHTML=e,ls.textContent},fs=A("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ds=A("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ps=A("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),gs=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ms=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,vs="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(W.source,"]*"),ys="((?:".concat(vs,"\\:)?").concat(vs,")"),As=new RegExp("^<".concat(ys)),bs=/^\s*(\/?)>/,ws=new RegExp("^<\\/".concat(ys,"[^>]*>")),xs=/^<!DOCTYPE [^>]+>/i,Cs=/^<!\--/,_s=/^<!\[/,Is=A("script,style,textarea",!0),Es={},ks={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Ss=/&(?:lt|gt|quot|amp|#39);/g,Bs=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ms=A("pre,textarea",!0),Ts=function(e,t){return e&&Ms(e)&&"\n"===t[0]};function Os(e,t){var n=t?Bs:Ss;return e.replace(n,(function(e){return ks[e]}))}function Ds(e,t){for(var n,r,i=[],a=t.expectHTML,o=t.isUnaryTag||Q,s=t.canBeLeftOpenTag||Q,c=0,l=function(){
// Make sure we're not in a plaintext content element like script/style
if(n=e,r&&Is(r)){var l=0,f=r.toLowerCase(),d=Es[f]||(Es[f]=new RegExp("([\\s\\S]*?)(</"+f+"[^>]*>)","i"));x=e.replace(d,(function(e,n,r){return l=r.length,Is(f)||"noscript"===f||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ts(f,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-x.length,e=x,h(f,c-l,c)}else{var p=e.indexOf("<");if(0===p){
// Comment:
if(Cs.test(e)){var g=e.indexOf("--\x3e");if(g>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,g),c,c+g+3),u(g+3),"continue"}
// https://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
if(_s.test(e)){var m=e.indexOf("]>");if(m>=0)return u(m+2),"continue"}
// Doctype:
var v=e.match(xs);if(v)return u(v[0].length),"continue";
// End tag:
var y=e.match(ws);if(y){var A=c;return u(y[0].length),h(y[1],A,c),"continue"}
// Start tag:
var b=function(){var t=e.match(As);if(t){var n={tagName:t[1],attrs:[],start:c};u(t[0].length);for(var r=void 0,i=void 0;!(r=e.match(bs))&&(i=e.match(ms)||e.match(gs));)i.start=c,u(i[0].length),i.end=c,n.attrs.push(i);if(r)return n.unarySlash=r[1],u(r[0].length),n.end=c,n}}();if(b)return function(e){var n=e.tagName,c=e.unarySlash;a&&("p"===r&&ps(n)&&h(r),s(n)&&r===n&&h(n));for(var l=o(n)||!!c,u=e.attrs.length,f=new Array(u),d=0;d<u;d++){var p=e.attrs[d],g=p[3]||p[4]||p[5]||"",m="a"===n&&"href"===p[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[d]={name:p[1],value:Os(g,m)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n);t.start&&t.start(n,f,l,e.start,e.end)}(b),Ts(b.tagName,e)&&u(1),"continue"}var w=void 0,x=void 0,C=void 0;if(p>=0){for(x=e.slice(p);!(ws.test(x)||As.test(x)||Cs.test(x)||_s.test(x)||(
// < in plain text, be forgiving and treat it as text
C=x.indexOf("<",1))<0);)p+=C,x=e.slice(p);w=e.substring(0,p)}p<0&&(w=e),w&&u(w.length),t.chars&&w&&t.chars(w,c-w.length,c)}if(e===n)return t.chars&&t.chars(e),"break"};e;){if("break"===l())break}
// Clean up any remaining tags
function u(t){c+=t,e=e.substring(t)}function h(e,n,a){var o,s;
// Find the closest opened tag of the same type
if(null==n&&(n=c),null==a&&(a=c),e)for(s=e.toLowerCase(),o=i.length-1;o>=0&&i[o].lowerCasedTag!==s;o--);else
// If no tag name is provided, clean shop
o=0;if(o>=0){
// Close all the open elements, up the stack
for(var l=i.length-1;l>=o;l--)t.end&&t.end(i[l].tag,n,a);
// Remove the open elements from the stack
i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}h()}var Ps,Ls,Qs,Rs,js,Ns,Fs,zs,Hs=/^@|^v-on:/,Us=/^v-|^@|^:|^#/,Gs=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Vs=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ws=/^\(|\)$/g,qs=/^\[.*\]$/,Ys=/:(.*)$/,Ks=/^:|^\.|^v-bind:/,$s=/\.[^.\]]+(?=[^\]]*$)/g,Js=/^v-slot(:|$)|^#/,Xs=/[\r\n]/,Zs=/[ \f\t\r\n]+/g,ec=I(hs),tc="_empty_";function nc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:lc(t),rawAttrsMap:{},parent:n,children:[]}}
/**
 * Convert HTML string to AST.
 */function rc(e,t){Ps=t.warn||ya,Ns=t.isPreTag||Q,Fs=t.mustUseProp||Q,zs=t.getTagNamespace||Q;var n=t.isReservedTag||Q;Qs=Aa(t.modules,"transformNode"),Rs=Aa(t.modules,"preTransformNode"),js=Aa(t.modules,"postTransformNode"),Ls=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,l=!1;function u(e){if(h(e),c||e.processed||(e=ic(e,t)),
// tree management
a.length||e===r||
// allow root elements with v-if, v-else-if and v-else
r.if&&(e.elseif||e.else)&&oc(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)o=e,s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children),s&&s.if&&oc(s,{exp:o.elseif,block:o});else{if(e.slotScope){
// scoped slot
// keep it in the children list so that v-else(-if) conditions can
// find it as the prev node.
var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}
// final children cleanup
// filter out scoped slots
var o,s;e.children=e.children.filter((function(e){return!e.slotScope})),
// remove trailing whitespace node again
h(e),
// check pre state
e.pre&&(c=!1),Ns(e.tag)&&(l=!1);
// apply post-transforms
for(var u=0;u<js.length;u++)js[u](e,t)}function h(e){
// remove trailing whitespace node
if(!l)for(var t=void 0;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return Ds(e,{warn:Ps,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,h){
// check namespace.
// inherit parent ns if there is one
var f=i&&i.ns||zs(e);
// handle IE svg bug
/* istanbul ignore if */Z&&"svg"===f&&(n=
/* istanbul ignore next */
function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];uc.test(r.name)||(r.name=r.name.replace(hc,""),t.push(r))}return t}(n));var d,p=nc(e,n,i);f&&(p.ns=f),"style"!==(d=p).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||ce()||(p.forbidden=!0);
// apply pre-transforms
for(var g=0;g<Rs.length;g++)p=Rs[g](p,t)||p;c||(!function(e){null!=ka(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(c=!0)),Ns(p.tag)&&(l=!0),c?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(
// non root node in pre blocks with no attributes
e.plain=!0)}(p):p.processed||(
// structural directives
ac(p),function(e){var t=ka(e,"v-if");if(t)e.if=t,oc(e,{exp:t,block:e});else{null!=ka(e,"v-else")&&(e.else=!0);var n=ka(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){var t=ka(e,"v-once");null!=t&&(e.once=!0)}
// handle content being passed to a component as slot,
// e.g. <template slot="xxx">, <div slot-scope="xxx">
(p)),r||(r=p),o?u(p):(i=p,a.push(p))},end:function(e,t,n){var r=a[a.length-1];
// pop stack
a.length-=1,i=a[a.length-1],u(r)},chars:function(e,t,n){if(i&&(!Z||"textarea"!==i.tag||i.attrsMap.placeholder!==e))
// IE textarea placeholder bug
/* istanbul ignore if */
{var r,a=i.children;if(e=l||e.trim()?"script"===(r=i).tag||"style"===r.tag?e:ec(e):a.length?s?"condense"===s&&Xs.test(e)?"":" ":o?" ":"":""){l||"condense"!==s||(
// condense consecutive whitespaces into single space
e=e.replace(Zs," "));var u=void 0,h=void 0;!c&&" "!==e&&(u=function(e,t){
//@ts-expect-error
var n=t?ss(t):as;if(n.test(e)){for(var r,i,a,o=[],s=[],c=n.lastIndex=0;r=n.exec(e);){
// push text token
(i=r.index)>c&&(s.push(a=e.slice(c,i)),o.push(JSON.stringify(a)));
// tag token
var l=ma(r[1].trim());o.push("_s(".concat(l,")")),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(a=e.slice(c)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}(e,Ls))?h={type:2,expression:u.expression,tokens:u.tokens,text:e}:" "===e&&a.length&&" "===a[a.length-1].text||(h={type:3,text:e}),h&&a.push(h)}}},comment:function(e,t,n){
// adding anything as a sibling to the root node is forbidden
// comments should still be allowed, but ignored
if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function ic(e,t){
// handle <slot/> outlets
var n;!function(e){var t=Ea(e,"key");if(t){e.key=t}}(e),
// determine whether this is a plain element after
// removing structural attributes
e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Ea(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=ka(e,"scope"),e.slotScope=t||ka(e,"slot-scope")):(t=ka(e,"slot-scope"))&&(e.slotScope=t);
// slot="xxx"
var n=Ea(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),
// preserve slot as an attribute for native shadow DOM compat
// only for non-scoped slots.
"template"===e.tag||e.slotScope||wa(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));
// 2.6 v-slot syntax
if("template"===e.tag){if(o=Sa(e,Js)){0;var r=sc(o),i=r.name,a=r.dynamic;e.slotTarget=i,e.slotTargetDynamic=a,e.slotScope=o.value||tc}}else{
// v-slot on component, denotes default slot
var o;if(o=Sa(e,Js)){0;
// add the component's children to its default slot
var s=e.scopedSlots||(e.scopedSlots={}),c=sc(o),l=c.name,u=(a=c.dynamic,s[l]=nc("template",[],e));u.slotTarget=l,u.slotTargetDynamic=a,u.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=u,!0})),u.slotScope=o.value||tc,
// remove children as they are returned from scopedSlots now
e.children=[],
// mark el non-plain so data gets generated
e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Ea(n,"name")),function(e){var t;(t=Ea(e,"is"))&&(e.component=t);null!=ka(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<Qs.length;r++)e=Qs[r](e,t)||e;return function(e){var t,n,r,i,a,o,s,c,l=e.attrsList;for(t=0,n=l.length;t<n;t++){if(r=i=l[t].name,a=l[t].value,Us.test(r))if(
// mark element as dynamic
e.hasBindings=!0,
// support .foo shorthand syntax for the .prop modifier
(
// modifiers
o=cc(r.replace(Us,"")))&&(r=r.replace($s,"")),Ks.test(r))
// v-bind
r=r.replace(Ks,""),a=ma(a),(c=qs.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!c&&"innerHtml"===(r=k(r))&&(r="innerHTML"),o.camel&&!c&&(r=k(r)),o.sync&&(s=Ta(a,"$event"),c?
// handler w/ dynamic event name
Ia(e,'"update:"+('.concat(r,")"),s,null,!1,0,l[t],!0):(Ia(e,"update:".concat(k(r)),s,null,!1,0,l[t]),M(r)!==k(r)&&Ia(e,"update:".concat(M(r)),s,null,!1,0,l[t])))),o&&o.prop||!e.component&&Fs(e.tag,e.attrsMap.type,r)?ba(e,r,a,l[t],c):wa(e,r,a,l[t],c);else if(Hs.test(r))
// v-on
r=r.replace(Hs,""),(c=qs.test(r))&&(r=r.slice(1,-1)),Ia(e,r,a,o,!1,0,l[t],c);else{
// parse arg
var u=(
// normal directives
r=r.replace(Us,"")).match(Ys),h=u&&u[1];c=!1,h&&(r=r.slice(0,-(h.length+1)),qs.test(h)&&(h=h.slice(1,-1),c=!0)),Ca(e,r,i,a,h,c,o,l[t])}else wa(e,r,JSON.stringify(a),l[t]),
// #6887 firefox doesn't update muted state if set via attribute
// even immediately after element creation
!e.component&&"muted"===r&&Fs(e.tag,e.attrsMap.type,r)&&ba(e,r,"true",l[t])}}(e),e}function ac(e){var t;if(t=ka(e,"v-for")){var n=function(e){var t=e.match(Gs);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ws,""),i=r.match(Vs);i?(n.alias=r.replace(Vs,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&D(e,n)}}function oc(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function sc(e){var t=e.name.replace(Js,"");return t||"#"!==e.name[0]&&(t="default"),qs.test(t)?// dynamic [name]
{name:t.slice(1,-1),dynamic:!0}:// static name
{name:'"'.concat(t,'"'),dynamic:!1}}function cc(e){var t=e.match($s);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function lc(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}
// for script (e.g. type="x/template") or style, do not decode content
var uc=/^xmlns:NS\d+/,hc=/^NS\d+:/;function fc(e){return nc(e.tag,e.attrsList.slice(),e.parent)}var dc=[cs,us,{preTransformNode:
/**
 * Expand input[v-model] with dynamic type bindings into v-if-else chains
 * Turn this:
 *   <input v-model="data[type]" :type="type">
 * into this:
 *   <input v-if="type === 'checkbox'" type="checkbox" v-model="data[type]">
 *   <input v-else-if="type === 'radio'" type="radio" v-model="data[type]">
 *   <input v-else :type="type" v-model="data[type]">
 */
function(e,t){if("input"===e.tag){var n=e.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=Ea(e,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var i=ka(e,"v-if",!0),a=i?"&&(".concat(i,")"):"",o=null!=ka(e,"v-else",!0),s=ka(e,"v-else-if",!0),c=fc(e);
// process for on the main node
ac(c),xa(c,"type","checkbox"),ic(c,t),c.processed=!0,// prevent it from double-processed
c.if="(".concat(r,")==='checkbox'")+a,oc(c,{exp:c.if,block:c});
// 2. add radio else-if condition
var l=fc(e);ka(l,"v-for",!0),xa(l,"type","radio"),ic(l,t),oc(c,{exp:"(".concat(r,")==='radio'")+a,block:l});
// 3. other
var u=fc(e);return ka(u,"v-for",!0),xa(u,":type",r),ic(u,t),oc(c,{exp:i,block:u}),o?c.else=!0:s&&(c.elseif=s),c}}}}];var pc,gc,mc={model:function(e,t,n){0;var r=t.value,i=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)
// component v-model doesn't need extra runtime
return Ma(e,r,i),!1;
// ensure runtime directive metadata
if("select"===a)!function(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),a="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",o="var $$selectedVal = ".concat(i,";");o="".concat(o," ").concat(Ta(t,a)),Ia(e,"change",o,null,!0)}(e,r,i);else if("input"===a&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,i=Ea(e,"value")||"null",a=Ea(e,"true-value")||"true",o=Ea(e,"false-value")||"false";ba(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(i,")>-1")+("true"===a?":(".concat(t,")"):":_q(".concat(t,",").concat(a,")"))),Ia(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(a,"):(").concat(o,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Ta(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Ta(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Ta(t,"$$c"),"}"),null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=Ea(e,"value")||"null";i=r?"_n(".concat(i,")"):i,ba(e,"checked","_q(".concat(t,",").concat(i,")")),Ia(e,"change",Ta(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type;
// warn if v-bind:value conflicts with v-model
// except for inputs with v-bind:type
0;var i=n||{},a=i.lazy,o=i.number,s=i.trim,c=!a&&"range"!==r,l=a?"change":"range"===r?ja:"input",u="$event.target.value";s&&(u="$event.target.value.trim()");o&&(u="_n(".concat(u,")"));var h=Ta(t,u);c&&(h="if($event.target.composing)return;".concat(h));ba(e,"value","(".concat(t,")")),Ia(e,l,h,null,!0),(s||o)&&Ia(e,"blur","$forceUpdate()")}(e,r,i);else{if(!V.isReservedTag(a))
// component v-model doesn't need extra runtime
return Ma(e,r,i),!1}return!0},text:function(e,t){t.value&&ba(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&ba(e,"innerHTML","_s(".concat(t.value,")"),t)}},vc={expectHTML:!0,modules:dc,directives:mc,isPreTag:function(e){return"pre"===e},isUnaryTag:fs,mustUseProp:xi,canBeLeftOpenTag:ds,isReservedTag:Ri,getTagNamespace:ji,staticKeys:
/**
 * Generate a string containing static keys from compiler modules.
 */
function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(dc)},yc=I((function(e){return A("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));
/**
 * Goal of the optimizer: walk the generated template AST tree
 * and detect sub-trees that are purely static, i.e. parts of
 * the DOM that never needs to change.
 *
 * Once we detect these sub-trees, we can:
 *
 * 1. Hoist them into constants, so that we no longer need to
 *    create fresh nodes for them on each re-render;
 * 2. Completely skip them in the patching process.
 */
function Ac(e,t){e&&(pc=yc(t.staticKeys||""),gc=t.isReservedTag||Q,
// first pass: mark all non-static nodes.
bc(e),
// second pass: mark static roots.
wc(e,!1))}function bc(e){if(e.static=function(e){if(2===e.type)
// expression
return!1;if(3===e.type)
// text
return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||b(e.tag)||// not a built-in
!gc(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(pc)))}(e),1===e.type){
// do not make component slot content static. this avoids
// 1. components not able to mutate slot nodes
// 2. static slot content fails for hot-reloading
if(!gc(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];bc(r),r.static||(e.static=!1)}if(e.ifConditions)for(t=1,n=e.ifConditions.length;t<n;t++){var i=e.ifConditions[t].block;bc(i),i.static||(e.static=!1)}}}function wc(e,t){if(1===e.type){
// For a node to qualify as a static root, it should have children that
// are not just static text. Otherwise the cost of hoisting out will
// outweigh the benefits and it's better off to just always render it fresh.
if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)wc(e.children[n],t||!!e.for);if(e.ifConditions)for(n=1,r=e.ifConditions.length;n<r;n++)wc(e.ifConditions[n].block,t)}}var xc=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Cc=/\([^)]*?\);*$/,_c=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ic={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ec={
// #7880: IE11 and Edge use `Esc` for Escape key name.
esc:["Esc","Escape"],tab:"Tab",enter:"Enter",
// #9112: IE11 uses `Spacebar` for Space key name.
space:[" ","Spacebar"],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],
// #9112: IE11 uses `Del` for Delete key name.
delete:["Backspace","Delete","Del"]},kc=function(e){return"if(".concat(e,")return null;")},Sc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:kc("$event.target !== $event.currentTarget"),ctrl:kc("!$event.ctrlKey"),shift:kc("!$event.shiftKey"),alt:kc("!$event.altKey"),meta:kc("!$event.metaKey"),left:kc("'button' in $event && $event.button !== 0"),middle:kc("'button' in $event && $event.button !== 1"),right:kc("'button' in $event && $event.button !== 2")};function Bc(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=Mc(e[a]);
//@ts-expect-error
e[a]&&e[a].dynamic?i+="".concat(a,",").concat(o,","):r+='"'.concat(a,'":').concat(o,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function Mc(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Mc(e)})).join(","),"]");var t=_c.test(e.value),n=xc.test(e.value),r=_c.test(e.value.replace(Cc,""));if(e.modifiers){var i="",a="",o=[],s=function(t){if(Sc[t])a+=Sc[t],
// left/right
Ic[t]&&o.push(t);else if("exact"===t){var n=e.modifiers;a+=kc(["ctrl","shift","alt","meta"].filter((function(e){return!n[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else o.push(t)};for(var c in e.modifiers)s(c);o.length&&(i+=function(e){
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Tc).join("&&"),")return null;")}(o)),
// Make sure modifiers like prevent and stop get executed after key filtering
a&&(i+=a);var l=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(i).concat(l,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Tc(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Ic[e],r=Ec[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Oc={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:L},Dc=function(e){this.options=e,this.warn=e.warn||ya,this.transforms=Aa(e.modules,"transformCode"),this.dataGenFns=Aa(e.modules,"genData"),this.directives=D(D({},Oc),e.directives);var t=e.isReservedTag||Q;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pc(e,t){var n=new Dc(t),r=e?"script"===e.tag?"null":Lc(e,n):'_c("div")';
// fix #11483, Root level <script> tags should not be rendered.
return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function Lc(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Qc(e,t);if(e.once&&!e.onceProcessed)return Rc(e,t);if(e.for&&!e.forProcessed)return Fc(e,t);if(e.if&&!e.ifProcessed)return jc(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Gc(e,t),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),a=e.attrs||e.dynamicAttrs?qc((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{
// slot props are camelized
name:k(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=",".concat(a));o&&(i+="".concat(a?"":",null",",").concat(o));return i+")"}
// componentName is el.component, take it as argument to shun flow's pessimistic refinement
(e,t);
// component or element
var n=void 0;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Gc(t,n,!0);return"_c(".concat(e,",").concat(zc(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r=void 0,i=t.maybeComponent(e);(!e.plain||e.pre&&i)&&(r=zc(e,t));var a=void 0,o=t.options.bindings;
// check if this is a component in <script setup>
i&&o&&!1!==o.__isScriptSetup&&(a=function(e,t){var n=k(t),r=S(n),i=function(i){return e[t]===i?t:e[n]===i?n:e[r]===i?r:void 0},a=i("setup-const"/* BindingTypes.SETUP_CONST */)||i("setup-reactive-const"/* BindingTypes.SETUP_REACTIVE_CONST */);if(a)return a;var o=i("setup-let"/* BindingTypes.SETUP_LET */)||i("setup-ref"/* BindingTypes.SETUP_REF */)||i("setup-maybe-ref"/* BindingTypes.SETUP_MAYBE_REF */);if(o)return o}
// hoist static sub-trees out
(o,e.tag)),a||(a="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:Gc(e,t,!0);n="_c(".concat(a).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}
// module transforms
for(var c=0;c<t.transforms.length;c++)n=t.transforms[c](e,n);return n}return Gc(e,t)||"void 0"}function Qc(e,t){e.staticProcessed=!0;
// Some elements (templates) need to behave differently inside of a v-pre
// node.  All pre nodes are static roots, so we can use this as a location to
// wrap a state change and reset it upon exiting the pre node.
var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Lc(e,t),"}")),t.pre=n,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}
// v-once
function Rc(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return jc(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(Lc(e,t),",").concat(t.onceId++,",").concat(n,")"):Lc(e,t)}return Qc(e,t)}function jc(e,t,n,r){// avoid recursion
return e.ifProcessed=!0,Nc(e.ifConditions.slice(),t,n,r)}function Nc(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"(".concat(i.exp,")?").concat(a(i.block),":").concat(Nc(e,t,n,r)):"".concat(a(i.block));
// v-if with v-once should generate code like (a)?_m(0):_m(1)
function a(e){return n?n(e,t):e.once?Rc(e,t):Lc(e,t)}}function Fc(e,t,n,r){var i=e.for,a=e.alias,o=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";// avoid recursion
return e.forProcessed=!0,"".concat(r||"_l","((").concat(i,"),")+"function(".concat(a).concat(o).concat(s,"){")+"return ".concat((n||Lc)(e,t))+"})"}function zc(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,a,o,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){a=n[r],o=!0;var l=t.directives[a.name];l&&(
// compile-time directive that manipulates AST.
// returns true if it also needs a runtime counterpart.
o=!!l(e,a,t.warn)),o&&(c=!0,s+='{name:"'.concat(a.name,'",rawName:"').concat(a.rawName,'"').concat(a.value?",value:(".concat(a.value,"),expression:").concat(JSON.stringify(a.value)):"").concat(a.arg?",arg:".concat(a.isDynamicArg?a.arg:'"'.concat(a.arg,'"')):"").concat(a.modifiers?",modifiers:".concat(JSON.stringify(a.modifiers)):"","},"))}if(c)return s.slice(0,-1)+"]"}(e,t);
// directives first.
// directives may mutate the el's other properties before they are generated.
r&&(n+=r+","),
// key
e.key&&(n+="key:".concat(e.key,",")),
// ref
e.ref&&(n+="ref:".concat(e.ref,",")),e.refInFor&&(n+="refInFor:true,"),
// pre
e.pre&&(n+="pre:true,"),
// record original tag name for components using "is" attribute
e.component&&(n+='tag:"'.concat(e.tag,'",'));
// module data generation functions
for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);
// attributes
// inline-template
if(e.attrs&&(n+="attrs:".concat(qc(e.attrs),",")),
// DOM props
e.props&&(n+="domProps:".concat(qc(e.props),",")),
// event handlers
e.events&&(n+="".concat(Bc(e.events,!1),",")),e.nativeEvents&&(n+="".concat(Bc(e.nativeEvents,!0),",")),
// slot target
// only for non-scoped slots
e.slotTarget&&!e.slotScope&&(n+="slot:".concat(e.slotTarget,",")),
// scoped slots
e.scopedSlots&&(n+="".concat(function(e,t,n){
// by default scoped slots are considered "stable", this allows child
// components with only scoped slots to skip forced updates from parent.
// but in some cases we have to bail-out of this optimization
// for example if the slot contains dynamic names, has v-if or v-for on them...
var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Hc(n)})),i=!!e.if;
// #9534: if a component with scoped slots is inside a conditional branch,
// it's possible for the same component to be reused but with different
// compiled slot content. To avoid that, we generate a unique key based on
// the generated code of all the slot contents.
// OR when it is inside another scoped slot or v-for (the reactivity may be
// disconnected due to the intermediate scope variable)
// #9438, #9506
// TODO: this can be further optimized by properly analyzing in-scope bindings
// and skip force updating ones that do not actually use scope variables.
if(!r)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==tc||a.for){r=!0;break}a.if&&(i=!0),a=a.parent}var o=Object.keys(t).map((function(e){return Uc(t[e],n)})).join(",");return"scopedSlots:_u([".concat(o,"]").concat(r?",null,true":"").concat(!r&&i?",null,false,".concat(function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o)):"",")")}(e,e.scopedSlots,t),",")),
// component v-model
e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var a=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Pc(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);a&&(n+="".concat(a,","))}return n=n.replace(/,$/,"")+"}",
// v-bind dynamic argument wrap
// v-bind with dynamic arguments must be applied using the same v-bind object
// merge helper so that class/style/mustUseProp attrs are handled correctly.
e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(qc(e.dynamicAttrs),")")),
// v-bind data wrap
e.wrapData&&(n=e.wrapData(n)),
// v-on data wrap
e.wrapListeners&&(n=e.wrapListeners(n)),n}function Hc(e){return 1===e.type&&("slot"===e.tag||e.children.some(Hc))}function Uc(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return jc(e,t,Uc,"null");if(e.for&&!e.forProcessed)return Fc(e,t,Uc);var r=e.slotScope===tc?"":String(e.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(Gc(e,t)||"undefined",":undefined"):Gc(e,t)||"undefined":Lc(e,t),"}"),a=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(i).concat(a,"}")}function Gc(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];
// optimize single v-for
if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return"".concat((r||Lc)(o,t)).concat(s)}var c=n?
// determine the normalization needed for the children array.
// 0: no normalization needed
// 1: simple normalization needed (possible 1-level deep nested array)
// 2: full normalization needed
function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Vc(i)||i.ifConditions&&i.ifConditions.some((function(e){return Vc(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(a,t.maybeComponent):0,l=i||Wc;return"[".concat(a.map((function(e){return l(e,t)})).join(","),"]").concat(c?",".concat(c):"")}}function Vc(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Wc(e,t){return 1===e.type?Lc(e,t):3===e.type&&e.isComment?function(e){return"_e(".concat(JSON.stringify(e.text),")")}(e):function(e){return"_v(".concat(2===e.type?e.expression:Yc(JSON.stringify(e.text)),")")}(e)}function qc(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],a=Yc(i.value);i.dynamic?n+="".concat(i.name,",").concat(a,","):t+='"'.concat(i.name,'":').concat(a,",")}return t="{".concat(t.slice(0,-1),"}"),n?"_d(".concat(t,",[").concat(n.slice(0,-1),"])"):t}
// #3895, #4268
function Yc(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}
// these keywords should not appear inside expressions, but operators like
// typeof, instanceof and in are allowed
new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");
// these unary operators should not be used as property/method names
function Kc(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),L}}function $c(e){var t=Object.create(null);return function(n,r,i){(r=D({},r)).warn;delete r.warn;
// check cache
var a=r.delimiters?String(r.delimiters)+n:n;if(t[a])return t[a];
// compile
var o=e(n,r);
// check compilation errors/tips
// turn code into functions
var s={},c=[];return s.render=Kc(o.render,c),s.staticRenderFns=o.staticRenderFns.map((function(e){return Kc(e,c)})),t[a]=s}}
// `createCompilerCreator` allows creating compilers that use alternative
// parser/optimizer/codegen, e.g the SSR optimizing compiler.
// Here we just export a default compiler using the default parts.
var Jc,Xc,Zc=(Jc=function(e,t){var n=rc(e.trim(),t);!1!==t.optimize&&Ac(n,t);var r=Pc(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],a=[];if(n)
// copy other options
for(var o in
// merge custom modules
n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),
// merge custom directives
n.directives&&(r.directives=D(Object.create(e.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(r[o]=n[o]);r.warn=function(e,t,n){(n?a:i).push(e)};var s=Jc(t.trim(),r);return s.errors=i,s.tips=a,s}return{compile:t,compileToFunctions:$c(t)}}),el=Zc(vc).compileToFunctions;function tl(e){return(Xc=Xc||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Xc.innerHTML.indexOf("&#10;")>0}
// #3663: IE encodes newlines inside attribute values while other browsers don't
var nl=!!J&&tl(!1),rl=!!J&&tl(!0),il=I((function(e){var t=zi(e);return t&&t.innerHTML})),al=hi.prototype.$mount;
// #6828: chrome encodes content in a[href]
hi.prototype.$mount=function(e,t){
/* istanbul ignore if */
if((e=e&&zi(e))===document.body||e===document.documentElement)return this;var n=this.$options;
// resolve template/el and convert to render function
if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=il(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(
// @ts-expect-error
r=
/**
 * Get outerHTML of elements, taking care
 * of SVG elements in IE as well.
 */
function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=el(r,{outputSourceRange:!1,shouldDecodeNewlines:nl,shouldDecodeNewlinesForHref:rl,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return al.call(this,e,t)},hi.compile=el}.call(this,n("c8ba"))
/***/},
/***/a029:
/***/function(e,t,n){var r=n("087d"),i=n("2dcb"),a=n("32f4"),o=n("d327"),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:o;
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=s},
/***/a04b:
/***/function(e,t,n){"use strict";var r=n("c04e"),i=n("d9b5");
// `ToPropertyKey` abstract operation
// https://tc39.es/ecma262/#sec-topropertykey
e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},
/***/a05b:
/***/function(e,t,n){
// 20.2.2.20 Math.log1p(x)
var r=n("f083");r(r.S,"Math",{log1p:n("dc3f")})},
/***/a070:
/***/function(e,t,n){e.exports=n("de85")("native-function-to-string",Function.toString);
/***/},
/***/a0ab:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("f308"),a=n("b799"),o=n("d77f"),s=n("6fc7"),c=n("6373"),l=n("9fe8"),u=n("93e0").ArrayBuffer,h=n("1147a"),f=a.ArrayBuffer,d=a.DataView,p=i.ABV&&u.isView,g=f.prototype.slice,m=i.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!i.CONSTR,v,{
// 24.1.3.1 ArrayBuffer.isView(arg)
isView:function(e){return p&&p(e)||l(e)&&m in e}}),r(r.P+r.U+r.F*n("f937")((function(){return!new f(2).slice(1,void 0).byteLength})),v,{
// 24.1.4.3 ArrayBuffer.prototype.slice(start, end)
slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(o(this),e);// FF fix
for(var n=o(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),a=new(h(this,f))(c(i-r)),l=new d(this),u=new d(a),p=0;r<i;)u.setUint8(p++,l.getUint8(r++));return a}}),n("3a2f")(v)},
/***/a0c4:
/***/function(e,t){e.exports=
/**
 * A specialized version of `baseAggregator` for arrays.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */
function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}},
/***/a0e0:
/***/function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("94c7"));// 深色数量，主色下
function a(e,t,n){var r;
// 根据色相不同，色相转向不同
return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function o(e,t,n){
// grey color don't change saturation
return 0===e.h&&0===e.s?e.s:(
// 边界值修正
(r=n?Math.round(100*e.s)-16*t:4===t?Math.round(100*e.s)+16:Math.round(100*e.s)+5*t)>100&&(r=100),
// 第一格的 s 限制在 6-10 之间
n&&5===t&&r>10&&(r=10),r<6&&(r=6),r);var r}function s(e,t,n){return n?Math.round(100*e.v)+5*t:Math.round(100*e.v)-15*t}t.default=function(e){for(var t=[],n=i.default(e),r=5;r>0;r-=1){var c=n.toHsv(),l=i.default({h:a(c,r,!0),s:o(c,r,!0),v:s(c,r,!0)}).toHexString();t.push(l)}for(t.push(n.toHexString()),r=1;r<=4;r+=1){c=n.toHsv(),l=i.default({h:a(c,r),s:o(c,r),v:s(c,r)}).toHexString();t.push(l)}return t}},
/***/a12c:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_ListCache.js + 6 modules
var r=n("9cbb");
// CONCATENATED MODULE: ./node_modules/lodash-es/_stackClear.js
/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
/* harmony default export */var i=function(){this.__data__=new r.a,this.size=0};
// CONCATENATED MODULE: ./node_modules/lodash-es/_stackDelete.js
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
/* harmony default export */var a=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};
// CONCATENATED MODULE: ./node_modules/lodash-es/_stackGet.js
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
/* harmony default export */var o=function(e){return this.__data__.get(e)};
// CONCATENATED MODULE: ./node_modules/lodash-es/_stackHas.js
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
/* harmony default export */var s=function(e){return this.__data__.has(e)},c=n("ddc9"),l=n("0e59");
// EXTERNAL MODULE: ./node_modules/lodash-es/_Map.js
/* harmony default export */var u=
/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function(e,t){var n=this.__data__;if(n instanceof r.a){var i=n.__data__;if(!c.a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new l.a(i)}return n.set(e,t),this.size=n.size,this};
// CONCATENATED MODULE: ./node_modules/lodash-es/_Stack.js
/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function h(e){var t=this.__data__=new r.a(e);this.size=t.size}
// Add methods to `Stack`.
h.prototype.clear=i,h.prototype.delete=a,h.prototype.get=o,h.prototype.has=s,h.prototype.set=u;
/* harmony default export */t.a=h;
/***/},
/***/a134:
/***/function(e,t,n){
// 26.1.11 Reflect.ownKeys(target)
var r=n("f083");r(r.S,"Reflect",{ownKeys:n("eaeb")})},
/***/a143:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxis=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.radar,r=[];n&&(r=function(e){return(0,u.deepMerge)((0,l.deepClone)(c.radarAxisConfig),e)}(n),r=function(e,t){var n=t.render.area,r=e.center;return e.centerPos=r.map((function(e,t){return"number"==typeof e?e:parseInt(e)/100*n[t]})),e}(r,e),r=function(e,t){var n=t.render.area,r=e.splitNum,i=e.radius,a=Math.min.apply(Math,(0,o.default)(n))/2;"number"!=typeof i&&(i=parseInt(i)/100*a);var s=i/r;return e.ringRadius=new Array(r).fill(0).map((function(e,t){return s*(t+1)})),e.radius=i,e}(r,e),r=[r=function(e){var t=e.axisLineAngles,n=e.centerPos,r=e.radius,i=e.axisLabel;return r+=i.labelGap,e.axisLabelPosition=t.map((function(e){return l.getCircleRadianPoint.apply(void 0,(0,o.default)(n).concat([r,e]))})),e}(r=function(e){var t=e.ringRadius,n=t[0]/2;return e.areaRadius=t.map((function(e){return e-n})),e}(r=function(e){var t=e.indicator,n=e.centerPos,r=e.radius,i=e.startAngle,a=2*Math.PI,s=t.length,c=a/s,u=new Array(s).fill(0).map((function(e,t){return c*t+i}));return e.axisLineAngles=u,e.axisLinePosition=u.map((function(e){return l.getCircleRadianPoint.apply(void 0,(0,o.default)(n).concat([r,e]))})),e}(r)))]);var i=r;r.length&&!r[0].show&&(i=[]);(0,s.doUpdate)({chart:e,series:i,key:"radarAxisSplitArea",getGraphConfig:d,beforeUpdate:m,beforeChange:v}),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisSplitLine",getGraphConfig:y,beforeUpdate:w,beforeChange:x}),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisLine",getGraphConfig:C}),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisLable",getGraphConfig:E}),e.radarAxis=r[0]};var i=r(n("278c")),a=r(n("9523")),o=r(n("448a")),s=n("18ad"),c=n("9d85"),l=n("5557"),u=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){var t=e.areaRadius,n=e.polygon,r=e.animationCurve,i=e.animationFrame,a=e.rLevel,o=n?"regPolygon":"ring";return t.map((function(t,n){return{name:o,index:a,visible:e.splitArea.show,animationCurve:r,animationFrame:i,shape:p(e,n),style:g(e,n)}}))}function p(e,t){var n=e.polygon,r=e.areaRadius,i=e.indicator,a=e.centerPos,o=i.length,s={rx:a[0],ry:a[1],r:r[t]};return n&&(s.side=o),s}function g(e,t){var n=e.splitArea,r=e.ringRadius,i=e.axisLineAngles,a=e.polygon,s=e.centerPos,c=n.color,h=n.style;h=f({fill:"rgba(0, 0, 0, 0)"},h);var d=r[0]-0;if(a){var p=l.getCircleRadianPoint.apply(void 0,(0,o.default)(s).concat([r[0],i[0]])),g=l.getCircleRadianPoint.apply(void 0,(0,o.default)(s).concat([r[0],i[1]]));d=(0,u.getPointToLineDistance)(s,p,g)}if(h=(0,u.deepMerge)((0,l.deepClone)(h,!0),{lineWidth:d}),!c.length)return h;var m=c.length;return(0,u.deepMerge)(h,{stroke:c[t%m]})}function m(e,t,n,r){var i=e[n];if(i){var a=r.chart.render;(t.polygon?"regPolygon":"ring")!==i[0].name&&(i.forEach((function(e){return a.delGraph(e)})),e[n]=null)}}function v(e,t){var n=t.shape.side;"number"==typeof n&&(e.shape.side=n)}function y(e){var t=e.ringRadius,n=e.polygon,r=e.animationCurve,i=e.animationFrame,a=e.rLevel,o=n?"regPolygon":"ring";return t.map((function(t,n){return{name:o,index:a,animationCurve:r,animationFrame:i,visible:e.splitLine.show,shape:A(e,n),style:b(e,n)}}))}function A(e,t){var n=e.ringRadius,r=e.centerPos,i=e.indicator,a=e.polygon,o={rx:r[0],ry:r[1],r:n[t]},s=i.length;return a&&(o.side=s),o}function b(e,t){var n=e.splitLine,r=n.color,i=n.style;if(i=f({fill:"rgba(0, 0, 0, 0)"},i),!r.length)return i;var a=r.length;return(0,u.deepMerge)(i,{stroke:r[t%a]})}function w(e,t,n,r){var i=e[n];if(i){var a=r.chart.render;(t.polygon?"regPolygon":"ring")!==i[0].name&&(i.forEach((function(e){return a.delGraph(e)})),e[n]=null)}}function x(e,t){var n=t.shape.side;"number"==typeof n&&(e.shape.side=n)}function C(e){var t=e.axisLinePosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"polyline",index:i,visible:e.axisLine.show,animationCurve:n,animationFrame:r,shape:_(e,a),style:I(e,a)}}))}function _(e,t){return{points:[e.centerPos,e.axisLinePosition[t]]}}function I(e,t){var n=e.axisLine,r=n.color,i=n.style;if(!r.length)return i;var a=r.length;return(0,u.deepMerge)(i,{stroke:r[t%a]})}function E(e){var t=e.axisLabelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,a){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:n,animationFrame:r,shape:k(e,a),style:S(e,a)}}))}function k(e,t){var n=e.axisLabelPosition;return{content:e.indicator[t].name,position:n[t]}}function S(e,t){var n=e.axisLabel,r=(0,i.default)(e.centerPos,2),a=r[0],o=r[1],s=e.axisLabelPosition,c=n.color,l=n.style,h=(0,i.default)(s[t],2),f=h[0]>a?"left":"right",d=h[1]>o?"top":"bottom";if(l=(0,u.deepMerge)({textAlign:f,textBaseline:d},l),!c.length)return l;var p=c.length;return(0,u.deepMerge)(l,{fill:c[t%p]})}
/***/},
/***/a147:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){e.exports=function(e){"use strict";var n=Object.defineProperty,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,o=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&o(e,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&o(e,n,t[n]);return e},c=(e,t,n)=>new Promise(((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}));const l='/*! For license information please see worker.js.LICENSE.txt */\nvar e={4186:(e,t,r)=>{var A=r(3749),n=r(8055),i=TypeError;e.exports=function(e){if(A(e))return e;throw new i(n(e)+" is not a function")}},9052:(e,t,r)=>{var A=r(8413),n=r(8055),i=TypeError;e.exports=function(e){if(A(e))return e;throw new i(n(e)+" is not a constructor")}},7330:(e,t,r)=>{var A=r(4597),n=String,i=TypeError;e.exports=function(e){if(A(e))return e;throw new i("Can\'t set "+n(e)+" as a prototype")}},4376:(e,t,r)=>{var A=r(418).has;e.exports=function(e){return A(e),e}},1458:(e,t,r)=>{var A=r(5811),n=r(5304),i=r(1601).f,a=A("unscopables"),o=Array.prototype;void 0===o[a]&&i(o,a,{configurable:!0,value:n(null)}),e.exports=function(e){o[a][e]=!0}},8149:(e,t,r)=>{var A=r(6903).charAt;e.exports=function(e,t,r){return t+(r?A(e,t).length:1)}},3399:(e,t,r)=>{var A=r(6921),n=TypeError;e.exports=function(e,t){if(A(t,e))return e;throw new n("Incorrect invocation")}},7447:(e,t,r)=>{var A=r(2674),n=String,i=TypeError;e.exports=function(e){if(A(e))return e;throw new i(n(e)+" is not an object")}},387:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},8242:(e,t,r)=>{var A=r(4032),n=r(5026),i=r(9872),a=A.ArrayBuffer,o=A.TypeError;e.exports=a&&n(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new o("ArrayBuffer expected");return e.byteLength}},8102:(e,t,r)=>{var A=r(4032),n=r(2116),i=r(8242),a=A.ArrayBuffer,o=a&&a.prototype,s=o&&n(o.slice);e.exports=function(e){if(0!==i(e))return!1;if(!s)return!1;try{return s(e,0,0),!1}catch(e){return!0}}},7060:(e,t,r)=>{var A=r(3455);e.exports=A((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},6033:(e,t,r)=>{var A=r(8102),n=TypeError;e.exports=function(e){if(A(e))throw new n("ArrayBuffer is detached");return e}},4676:(e,t,r)=>{var A=r(4032),n=r(2608),i=r(5026),a=r(9088),o=r(6033),s=r(8242),c=r(7395),g=r(6572),u=A.structuredClone,l=A.ArrayBuffer,h=A.DataView,I=Math.min,f=l.prototype,C=h.prototype,B=n(f.slice),Q=i(f,"resizable","get"),E=i(f,"maxByteLength","get"),d=n(C.getInt8),y=n(C.setInt8);e.exports=(g||c)&&function(e,t,r){var A,n=s(e),i=void 0===t?n:a(t),f=!Q||!Q(e);if(o(e),g&&(e=u(e,{transfer:[e]}),n===i&&(r||f)))return e;if(n>=i&&(!r||f))A=B(e,0,i);else{var C=r&&!f&&E?{maxByteLength:E(e)}:void 0;A=new l(i,C);for(var p=new h(e),v=new h(A),m=I(i,n),w=0;w<m;w++)y(v,w,d(p,w))}return g||c(e),A}},4356:(e,t,r)=>{var A,n,i,a=r(387),o=r(2444),s=r(4032),c=r(3749),g=r(2674),u=r(9649),l=r(1179),h=r(8055),I=r(139),f=r(8552),C=r(8986),B=r(6921),Q=r(2611),E=r(9415),d=r(5811),y=r(5936),p=r(8301),v=p.enforce,m=p.get,w=s.Int8Array,b=w&&w.prototype,k=s.Uint8ClampedArray,D=k&&k.prototype,S=w&&Q(w),F=b&&Q(b),x=Object.prototype,R=s.TypeError,G=d("toStringTag"),N=y("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",U=a&&!!E&&"Opera"!==l(s.opera),M=!1,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},Y=function(e){var t=Q(e);if(g(t)){var r=m(t);return r&&u(r,L)?r[L]:Y(t)}},P=function(e){if(!g(e))return!1;var t=l(e);return u(J,t)||u(H,t)};for(A in J)(i=(n=s[A])&&n.prototype)?v(i)[L]=n:U=!1;for(A in H)(i=(n=s[A])&&n.prototype)&&(v(i)[L]=n);if((!U||!c(S)||S===Function.prototype)&&(S=function(){throw new R("Incorrect invocation")},U))for(A in J)s[A]&&E(s[A],S);if((!U||!F||F===x)&&(F=S.prototype,U))for(A in J)s[A]&&E(s[A].prototype,F);if(U&&Q(D)!==F&&E(D,F),o&&!u(F,G))for(A in M=!0,C(F,G,{configurable:!0,get:function(){return g(this)?this[N]:void 0}}),J)s[A]&&I(s[A],N,A);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:M&&N,aTypedArray:function(e){if(P(e))return e;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!E||B(S,e)))return e;throw new R(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,A){if(o){if(r)for(var n in J){var i=s[n];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}F[e]&&!r||f(F,e,r?t:U&&b[e]||t,A)}},exportTypedArrayStaticMethod:function(e,t,r){var A,n;if(o){if(E){if(r)for(A in J)if((n=s[A])&&u(n,e))try{delete n[e]}catch(e){}if(S[e]&&!r)return;try{return f(S,e,r?t:U&&S[e]||t)}catch(e){}}for(A in J)!(n=s[A])||n[e]&&!r||f(n,e,t)}},getTypedArrayConstructor:Y,isView:function(e){if(!g(e))return!1;var t=l(e);return"DataView"===t||u(J,t)||u(H,t)},isTypedArray:P,TypedArray:S,TypedArrayPrototype:F}},7226:(e,t,r)=>{var A=r(4032),n=r(2608),i=r(2444),a=r(387),o=r(2542),s=r(139),c=r(8986),g=r(4183),u=r(3455),l=r(3399),h=r(1211),I=r(5806),f=r(9088),C=r(3505),B=r(1306),Q=r(2611),E=r(9415),d=r(9557),y=r(4224),p=r(3951),v=r(2924),m=r(6911),w=r(8301),b=o.PROPER,k=o.CONFIGURABLE,D="ArrayBuffer",S="DataView",F="prototype",x="Wrong index",R=w.getterFor(D),G=w.getterFor(S),N=w.set,L=A[D],U=L,M=U&&U[F],J=A[S],H=J&&J[F],Y=Object.prototype,P=A.Array,O=A.RangeError,K=n(d),T=n([].reverse),q=B.pack,j=B.unpack,W=function(e){return[255&e]},Z=function(e){return[255&e,e>>8&255]},_=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},X=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},V=function(e){return q(C(e),23,4)},z=function(e){return q(e,52,8)},$=function(e,t,r){c(e[F],t,{configurable:!0,get:function(){return r(this)[t]}})},ee=function(e,t,r,A){var n=G(e),i=f(r),a=!!A;if(i+t>n.byteLength)throw new O(x);var o=n.bytes,s=i+n.byteOffset,c=y(o,s,s+t);return a?c:T(c)},te=function(e,t,r,A,n,i){var a=G(e),o=f(r),s=A(+n),c=!!i;if(o+t>a.byteLength)throw new O(x);for(var g=a.bytes,u=o+a.byteOffset,l=0;l<t;l++)g[u+l]=s[c?l:t-l-1]};if(a){var re=b&&L.name!==D;u((function(){L(1)}))&&u((function(){new L(-1)}))&&!u((function(){return new L,new L(1.5),new L(NaN),1!==L.length||re&&!k}))?re&&k&&s(L,"name",D):((U=function(e){return l(this,M),p(new L(f(e)),this,U)})[F]=M,M.constructor=U,v(U,L)),E&&Q(H)!==Y&&E(H,Y);var Ae=new J(new U(2)),ne=n(H.setInt8);Ae.setInt8(0,2147483648),Ae.setInt8(1,2147483649),!Ae.getInt8(0)&&Ae.getInt8(1)||g(H,{setInt8:function(e,t){ne(this,e,t<<24>>24)},setUint8:function(e,t){ne(this,e,t<<24>>24)}},{unsafe:!0})}else M=(U=function(e){l(this,M);var t=f(e);N(this,{type:D,bytes:K(P(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[F],H=(J=function(e,t,r){l(this,H),l(e,M);var A=R(e),n=A.byteLength,a=h(t);if(a<0||a>n)throw new O("Wrong offset");if(a+(r=void 0===r?n-a:I(r))>n)throw new O("Wrong length");N(this,{type:S,buffer:e,byteLength:r,byteOffset:a,bytes:A.bytes}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=a)})[F],i&&($(U,"byteLength",R),$(J,"buffer",G),$(J,"byteLength",G),$(J,"byteOffset",G)),g(H,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return X(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return X(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return j(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return j(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,W,t)},setUint8:function(e,t){te(this,1,e,W,t)},setInt16:function(e,t){te(this,2,e,Z,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Z,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,_,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,_,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,V,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,z,t,arguments.length>2&&arguments[2])}});m(U,D),m(J,S),e.exports={ArrayBuffer:U,DataView:J}},6677:(e,t,r)=>{var A=r(4165),n=r(9002),i=r(7878),a=r(1870),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=A(this),s=i(r),c=n(e,s),g=n(t,s),u=arguments.length>2?arguments[2]:void 0,l=o((void 0===u?s:n(u,s))-g,s-c),h=1;for(g<c&&c<g+l&&(h=-1,g+=l-1,c+=l-1);l-- >0;)g in r?r[c]=r[g]:a(r,c),c+=h,g+=h;return r}},9557:(e,t,r)=>{var A=r(4165),n=r(9002),i=r(7878);e.exports=function(e){for(var t=A(this),r=i(t),a=arguments.length,o=n(a>1?arguments[1]:void 0,r),s=a>2?arguments[2]:void 0,c=void 0===s?r:n(s,r);c>o;)t[o++]=e;return t}},3147:(e,t,r)=>{var A=r(5645).forEach,n=r(1814)("forEach");e.exports=n?[].forEach:function(e){return A(this,e,arguments.length>1?arguments[1]:void 0)}},7434:(e,t,r)=>{var A=r(7878);e.exports=function(e,t,r){for(var n=0,i=arguments.length>2?r:A(t),a=new e(i);i>n;)a[n]=t[n++];return a}},3948:(e,t,r)=>{var A=r(4864),n=r(3453),i=r(4165),a=r(3535),o=r(993),s=r(8413),c=r(7878),g=r(3552),u=r(6961),l=r(7507),h=Array;e.exports=function(e){var t=i(e),r=s(this),I=arguments.length,f=I>1?arguments[1]:void 0,C=void 0!==f;C&&(f=A(f,I>2?arguments[2]:void 0));var B,Q,E,d,y,p,v=l(t),m=0;if(!v||this===h&&o(v))for(B=c(t),Q=r?new this(B):h(B);B>m;m++)p=C?f(t[m],m):t[m],g(Q,m,p);else for(Q=r?new this:[],y=(d=u(t,v)).next;!(E=n(y,d)).done;m++)p=C?a(d,f,[E.value,m],!0):E.value,g(Q,m,p);return Q.length=m,Q}},7921:(e,t,r)=>{var A=r(3637),n=r(9002),i=r(7878),a=function(e){return function(t,r,a){var o=A(t),s=i(o);if(0===s)return!e&&-1;var c,g=n(a,s);if(e&&r!=r){for(;s>g;)if((c=o[g++])!=c)return!0}else for(;s>g;g++)if((e||g in o)&&o[g]===r)return e||g||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},767:(e,t,r)=>{var A=r(4864),n=r(9455),i=r(4165),a=r(7878),o=function(e){var t=1===e;return function(r,o,s){for(var c,g=i(r),u=n(g),l=a(u),h=A(o,s);l-- >0;)if(h(c=u[l],l,g))switch(e){case 0:return c;case 1:return l}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},5645:(e,t,r)=>{var A=r(4864),n=r(2608),i=r(9455),a=r(4165),o=r(7878),s=r(1453),c=n([].push),g=function(e){var t=1===e,r=2===e,n=3===e,g=4===e,u=6===e,l=7===e,h=5===e||u;return function(I,f,C,B){for(var Q,E,d=a(I),y=i(d),p=o(y),v=A(f,C),m=0,w=B||s,b=t?w(I,p):r||l?w(I,0):void 0;p>m;m++)if((h||m in y)&&(E=v(Q=y[m],m,d),e))if(t)b[m]=E;else if(E)switch(e){case 3:return!0;case 5:return Q;case 6:return m;case 2:c(b,Q)}else switch(e){case 4:return!1;case 7:c(b,Q)}return u?-1:n||g?g:b}};e.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},3499:(e,t,r)=>{var A=r(3881),n=r(3637),i=r(1211),a=r(7878),o=r(1814),s=Math.min,c=[].lastIndexOf,g=!!c&&1/[1].lastIndexOf(1,-0)<0,u=o("lastIndexOf"),l=g||!u;e.exports=l?function(e){if(g)return A(c,this,arguments)||0;var t=n(this),r=a(t);if(0===r)return-1;var o=r-1;for(arguments.length>1&&(o=s(o,i(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},9077:(e,t,r)=>{var A=r(3455),n=r(5811),i=r(6415),a=n("species");e.exports=function(e){return i>=51||!A((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},1814:(e,t,r)=>{var A=r(3455);e.exports=function(e,t){var r=[][e];return!!r&&A((function(){r.call(null,t||function(){return 1},1)}))}},4734:(e,t,r)=>{var A=r(4186),n=r(4165),i=r(9455),a=r(7878),o=TypeError,s="Reduce of empty array with no initial value",c=function(e){return function(t,r,c,g){var u=n(t),l=i(u),h=a(u);if(A(r),0===h&&c<2)throw new o(s);var I=e?h-1:0,f=e?-1:1;if(c<2)for(;;){if(I in l){g=l[I],I+=f;break}if(I+=f,e?I<0:h<=I)throw new o(s)}for(;e?I>=0:h>I;I+=f)I in l&&(g=r(g,l[I],I,u));return g}};e.exports={left:c(!1),right:c(!0)}},7375:(e,t,r)=>{var A=r(2444),n=r(5448),i=TypeError,a=Object.getOwnPropertyDescriptor,o=A&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(n(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4224:(e,t,r)=>{var A=r(2608);e.exports=A([].slice)},5272:(e,t,r)=>{var A=r(4224),n=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,o,s=1;s<r;){for(o=s,a=e[s];o&&t(e[o-1],a)>0;)e[o]=e[--o];o!==s++&&(e[o]=a)}else for(var c=n(r/2),g=i(A(e,0,c),t),u=i(A(e,c),t),l=g.length,h=u.length,I=0,f=0;I<l||f<h;)e[I+f]=I<l&&f<h?t(g[I],u[f])<=0?g[I++]:u[f++]:I<l?g[I++]:u[f++];return e};e.exports=i},2329:(e,t,r)=>{var A=r(5448),n=r(8413),i=r(2674),a=r(5811)("species"),o=Array;e.exports=function(e){var t;return A(e)&&(t=e.constructor,(n(t)&&(t===o||A(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?o:t}},1453:(e,t,r)=>{var A=r(2329);e.exports=function(e,t){return new(A(e))(0===t?0:t)}},6444:(e,t,r)=>{var A=r(7878);e.exports=function(e,t){for(var r=A(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}},920:(e,t,r)=>{var A=r(7878),n=r(1211),i=RangeError;e.exports=function(e,t,r,a){var o=A(e),s=n(r),c=s<0?o+s:s;if(c>=o||c<0)throw new i("Incorrect index");for(var g=new t(o),u=0;u<o;u++)g[u]=u===c?a:e[u];return g}},2996:e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t+"+/",A=t+"-_",n=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t};e.exports={i2c:r,c2i:n(r),i2cUrl:A,c2iUrl:n(A)}},3535:(e,t,r)=>{var A=r(7447),n=r(5235);e.exports=function(e,t,r,i){try{return i?t(A(r)[0],r[1]):t(r)}catch(t){n(e,"throw",t)}}},4348:(e,t,r)=>{var A=r(5811)("iterator"),n=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){n=!0}};a[A]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!n)return!1}catch(e){return!1}var r=!1;try{var i={};i[A]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},9872:(e,t,r)=>{var A=r(2608),n=A({}.toString),i=A("".slice);e.exports=function(e){return i(n(e),8,-1)}},1179:(e,t,r)=>{var A=r(3724),n=r(3749),i=r(9872),a=r(5811)("toStringTag"),o=Object,s="Arguments"===i(function(){return arguments}());e.exports=A?i:function(e){var t,r,A;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=o(e),a))?r:s?i(t):"Object"===(A=i(t))&&n(t.callee)?"Arguments":A}},2042:(e,t,r)=>{var A=r(5304),n=r(8986),i=r(4183),a=r(4864),o=r(3399),s=r(6021),c=r(1804),g=r(656),u=r(9393),l=r(5409),h=r(2444),I=r(5227).fastKey,f=r(8301),C=f.set,B=f.getterFor;e.exports={getConstructor:function(e,t,r,g){var u=e((function(e,n){o(e,l),C(e,{type:t,index:A(null),first:null,last:null,size:0}),h||(e.size=0),s(n)||c(n,e[g],{that:e,AS_ENTRIES:r})})),l=u.prototype,f=B(t),Q=function(e,t,r){var A,n,i=f(e),a=E(e,t);return a?a.value=r:(i.last=a={index:n=I(t,!0),key:t,value:r,previous:A=i.last,next:null,removed:!1},i.first||(i.first=a),A&&(A.next=a),h?i.size++:e.size++,"F"!==n&&(i.index[n]=a)),e},E=function(e,t){var r,A=f(e),n=I(t);if("F"!==n)return A.index[n];for(r=A.first;r;r=r.next)if(r.key===t)return r};return i(l,{clear:function(){for(var e=f(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=A(null),h?e.size=0:this.size=0},delete:function(e){var t=this,r=f(t),A=E(t,e);if(A){var n=A.next,i=A.previous;delete r.index[A.index],A.removed=!0,i&&(i.next=n),n&&(n.previous=i),r.first===A&&(r.first=n),r.last===A&&(r.last=i),h?r.size--:t.size--}return!!A},forEach:function(e){for(var t,r=f(this),A=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(A(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!E(this,e)}}),i(l,r?{get:function(e){var t=E(this,e);return t&&t.value},set:function(e,t){return Q(this,0===e?0:e,t)}}:{add:function(e){return Q(this,e=0===e?0:e,e)}}),h&&n(l,"size",{configurable:!0,get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var A=t+" Iterator",n=B(t),i=B(A);g(e,t,(function(e,t){C(this,{type:A,target:e,state:n(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?u("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=null,u(void 0,!0))}),r?"entries":"values",!r,!0),l(t)}}},8153:(e,t,r)=>{var A=r(2608),n=r(4183),i=r(5227).getWeakData,a=r(3399),o=r(7447),s=r(6021),c=r(2674),g=r(1804),u=r(5645),l=r(9649),h=r(8301),I=h.set,f=h.getterFor,C=u.find,B=u.findIndex,Q=A([].splice),E=0,d=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},p=function(e,t){return C(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=p(this,e);if(t)return t[1]},has:function(e){return!!p(this,e)},set:function(e,t){var r=p(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=B(this.entries,(function(t){return t[0]===e}));return~t&&Q(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,A){var u=e((function(e,n){a(e,h),I(e,{type:t,id:E++,frozen:null}),s(n)||g(n,e[A],{that:e,AS_ENTRIES:r})})),h=u.prototype,C=f(t),B=function(e,t,r){var A=C(e),n=i(o(t),!0);return!0===n?d(A).set(t,r):n[A.id]=r,e};return n(h,{delete:function(e){var t=C(this);if(!c(e))return!1;var r=i(e);return!0===r?d(t).delete(e):r&&l(r,t.id)&&delete r[t.id]},has:function(e){var t=C(this);if(!c(e))return!1;var r=i(e);return!0===r?d(t).has(e):r&&l(r,t.id)}}),n(h,r?{get:function(e){var t=C(this);if(c(e)){var r=i(e);if(!0===r)return d(t).get(e);if(r)return r[t.id]}},set:function(e,t){return B(this,e,t)}}:{add:function(e){return B(this,e,!0)}}),u}}},9556:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(2608),a=r(5868),o=r(8552),s=r(5227),c=r(1804),g=r(3399),u=r(3749),l=r(6021),h=r(2674),I=r(3455),f=r(4348),C=r(6911),B=r(3951);e.exports=function(e,t,r){var Q=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),d=Q?"set":"add",y=n[e],p=y&&y.prototype,v=y,m={},w=function(e){var t=i(p[e]);o(p,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(E&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return E&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(E&&!h(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!u(y)||!(E||p.forEach&&!I((function(){(new y).entries().next()})))))v=r.getConstructor(t,e,Q,d),s.enable();else if(a(e,!0)){var b=new v,k=b[d](E?{}:-0,1)!==b,D=I((function(){b.has(1)})),S=f((function(e){new y(e)})),F=!E&&I((function(){for(var e=new y,t=5;t--;)e[d](t,t);return!e.has(-0)}));S||((v=t((function(e,t){g(e,p);var r=B(new y,e,v);return l(t)||c(t,r[d],{that:r,AS_ENTRIES:Q}),r}))).prototype=p,p.constructor=v),(D||F)&&(w("delete"),w("has"),Q&&w("get")),(F||k)&&w(d),E&&p.clear&&delete p.clear}return m[e]=v,A({global:!0,constructor:!0,forced:v!==y},m),C(v,e),E||r.setStrong(v,e,Q),v}},2924:(e,t,r)=>{var A=r(9649),n=r(2919),i=r(1139),a=r(1601);e.exports=function(e,t,r){for(var o=n(t),s=a.f,c=i.f,g=0;g<o.length;g++){var u=o[g];A(e,u)||r&&A(r,u)||s(e,u,c(t,u))}}},860:(e,t,r)=>{var A=r(5811)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[A]=!1,"/./"[e](t)}catch(e){}}return!1}},5139:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9393:e=>{e.exports=function(e,t){return{value:e,done:t}}},139:(e,t,r)=>{var A=r(2444),n=r(1601),i=r(4004);e.exports=A?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},4004:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3552:(e,t,r)=>{var A=r(2444),n=r(1601),i=r(4004);e.exports=function(e,t,r){A?n.f(e,t,i(0,r)):e[t]=r}},952:(e,t,r)=>{var A=r(7447),n=r(3118),i=TypeError;e.exports=function(e){if(A(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return n(this,e)}},8986:(e,t,r)=>{var A=r(1147),n=r(1601);e.exports=function(e,t,r){return r.get&&A(r.get,t,{getter:!0}),r.set&&A(r.set,t,{setter:!0}),n.f(e,t,r)}},8552:(e,t,r)=>{var A=r(3749),n=r(1601),i=r(1147),a=r(5801);e.exports=function(e,t,r,o){o||(o={});var s=o.enumerable,c=void 0!==o.name?o.name:t;if(A(r)&&i(r,c,o),o.global)s?e[t]=r:a(t,r);else{try{o.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:n.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},4183:(e,t,r)=>{var A=r(8552);e.exports=function(e,t,r){for(var n in t)A(e,n,t[n],r);return e}},5801:(e,t,r)=>{var A=r(4032),n=Object.defineProperty;e.exports=function(e,t){try{n(A,e,{value:t,configurable:!0,writable:!0})}catch(r){A[e]=t}return t}},1870:(e,t,r)=>{var A=r(8055),n=TypeError;e.exports=function(e,t){if(!delete e[t])throw new n("Cannot delete property "+A(t)+" of "+A(e))}},2444:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7395:(e,t,r)=>{var A,n,i,a,o=r(4032),s=r(9685),c=r(6572),g=o.structuredClone,u=o.ArrayBuffer,l=o.MessageChannel,h=!1;if(c)h=function(e){g(e,{transfer:[e]})};else if(u)try{l||(A=s("worker_threads"))&&(l=A.MessageChannel),l&&(n=new l,i=new u(2),a=function(e){n.port1.postMessage(null,[e])},2===i.byteLength&&(a(i),0===i.byteLength&&(h=a)))}catch(e){}e.exports=h},5751:(e,t,r)=>{var A=r(4032),n=r(2674),i=A.document,a=n(i)&&n(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},9573:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4090:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},2760:e=>{e.exports={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}},4784:(e,t,r)=>{var A=r(5751)("span").classList,n=A&&A.constructor&&A.constructor.prototype;e.exports=n===Object.prototype?void 0:n},5175:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7085:(e,t,r)=>{var A=r(7607).match(/firefox\\/(\\d+)/i);e.exports=!!A&&+A[1]},5123:(e,t,r)=>{var A=r(7607);e.exports=/MSIE|Trident/.test(A)},9081:(e,t,r)=>{var A=r(7607);e.exports=/ipad|iphone|ipod/i.test(A)&&"undefined"!=typeof Pebble},9352:(e,t,r)=>{var A=r(7607);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(A)},4529:(e,t,r)=>{var A=r(7351);e.exports="NODE"===A},628:(e,t,r)=>{var A=r(7607);e.exports=/web0s(?!.*chrome)/i.test(A)},7607:(e,t,r)=>{var A=r(4032).navigator,n=A&&A.userAgent;e.exports=n?String(n):""},6415:(e,t,r)=>{var A,n,i=r(4032),a=r(7607),o=i.process,s=i.Deno,c=o&&o.versions||s&&s.version,g=c&&c.v8;g&&(n=(A=g.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!n&&a&&(!(A=a.match(/Edge\\/(\\d+)/))||A[1]>=74)&&(A=a.match(/Chrome\\/(\\d+)/))&&(n=+A[1]),e.exports=n},1911:(e,t,r)=>{var A=r(7607).match(/AppleWebKit\\/(\\d+)\\./);e.exports=!!A&&+A[1]},7351:(e,t,r)=>{var A=r(4032),n=r(7607),i=r(9872),a=function(e){return n.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":A.Bun&&"string"==typeof Bun.version?"BUN":A.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(A.process)?"NODE":A.window&&A.document?"BROWSER":"REST"},3633:(e,t,r)=>{var A=r(2608),n=Error,i=A("".replace),a=String(new n("zxcasd").stack),o=/\\n\\s*at [^:]*:[^\\n]*/,s=o.test(a);e.exports=function(e,t){if(s&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,o,"");return e}},4171:(e,t,r)=>{var A=r(139),n=r(3633),i=r(3427),a=Error.captureStackTrace;e.exports=function(e,t,r,o){i&&(a?a(e,t):A(e,"stack",n(r,o)))}},3427:(e,t,r)=>{var A=r(3455),n=r(4004);e.exports=!A((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},2912:(e,t,r)=>{var A=r(2444),n=r(3455),i=r(7447),a=r(8363),o=Error.prototype.toString,s=n((function(){if(A){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==o.call(e))return!0}return"2: 1"!==o.call({message:1,name:2})||"Error"!==o.call({})}));e.exports=s?function(){var e=i(this),t=a(e.name,"Error"),r=a(e.message);return t?r?t+": "+r:t:r}:o},5366:(e,t,r)=>{var A=r(4032),n=r(1139).f,i=r(139),a=r(8552),o=r(5801),s=r(2924),c=r(5868);e.exports=function(e,t){var r,g,u,l,h,I=e.target,f=e.global,C=e.stat;if(r=f?A:C?A[I]||o(I,{}):A[I]&&A[I].prototype)for(g in t){if(l=t[g],u=e.dontCallGetSet?(h=n(r,g))&&h.value:r[g],!c(f?g:I+(C?".":"#")+g,e.forced)&&void 0!==u){if(typeof l==typeof u)continue;s(l,u)}(e.sham||u&&u.sham)&&i(l,"sham",!0),a(r,g,l,e)}}},3455:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},4364:(e,t,r)=>{r(2823);var A=r(3453),n=r(8552),i=r(9867),a=r(3455),o=r(5811),s=r(139),c=o("species"),g=RegExp.prototype;e.exports=function(e,t,r,u){var l=o(e),h=!a((function(){var t={};return t[l]=function(){return 7},7!==""[e](t)})),I=h&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[l]=/./[l]),r.exec=function(){return t=!0,null},r[l](""),!t}));if(!h||!I||r){var f=/./[l],C=t(l,""[e],(function(e,t,r,n,a){var o=t.exec;return o===i||o===g.exec?h&&!a?{done:!0,value:A(f,t,r,n)}:{done:!0,value:A(e,r,t,n)}:{done:!1}}));n(String.prototype,e,C[0]),n(g,l,C[1])}u&&s(g[l],"sham",!0)}},2851:(e,t,r)=>{var A=r(5448),n=r(7878),i=r(9573),a=r(4864),o=function(e,t,r,s,c,g,u,l){for(var h,I,f=c,C=0,B=!!u&&a(u,l);C<s;)C in r&&(h=B?B(r[C],C,t):r[C],g>0&&A(h)?(I=n(h),f=o(e,t,h,I,f,g-1)-1):(i(f+1),e[f]=h),f++),C++;return f};e.exports=o},568:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){return Object.isExtensible(Object.preventExtensions({}))}))},3881:(e,t,r)=>{var A=r(9128),n=Function.prototype,i=n.apply,a=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(A?a.bind(i):function(){return a.apply(i,arguments)})},4864:(e,t,r)=>{var A=r(2116),n=r(4186),i=r(9128),a=A(A.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},9128:(e,t,r)=>{var A=r(3455);e.exports=!A((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2230:(e,t,r)=>{var A=r(2608),n=r(4186),i=r(2674),a=r(9649),o=r(4224),s=r(9128),c=Function,g=A([].concat),u=A([].join),l={};e.exports=s?c.bind:function(e){var t=n(this),r=t.prototype,A=o(arguments,1),s=function(){var r=g(A,o(arguments));return this instanceof s?function(e,t,r){if(!a(l,t)){for(var A=[],n=0;n<t;n++)A[n]="a["+n+"]";l[t]=c("C,a","return new C("+u(A,",")+")")}return l[t](e,r)}(t,r.length,r):t.apply(e,r)};return i(r)&&(s.prototype=r),s}},3453:(e,t,r)=>{var A=r(9128),n=Function.prototype.call;e.exports=A?n.bind(n):function(){return n.apply(n,arguments)}},2542:(e,t,r)=>{var A=r(2444),n=r(9649),i=Function.prototype,a=A&&Object.getOwnPropertyDescriptor,o=n(i,"name"),s=o&&"something"===function(){}.name,c=o&&(!A||A&&a(i,"name").configurable);e.exports={EXISTS:o,PROPER:s,CONFIGURABLE:c}},5026:(e,t,r)=>{var A=r(2608),n=r(4186);e.exports=function(e,t,r){try{return A(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2116:(e,t,r)=>{var A=r(9872),n=r(2608);e.exports=function(e){if("Function"===A(e))return n(e)}},2608:(e,t,r)=>{var A=r(9128),n=Function.prototype,i=n.call,a=A&&n.bind.bind(i,i);e.exports=A?a:function(e){return function(){return i.apply(e,arguments)}}},9685:(e,t,r)=>{var A=r(4032),n=r(4529);e.exports=function(e){if(n){try{return A.process.getBuiltinModule(e)}catch(e){}try{return Function(\'return require("\'+e+\'")\')()}catch(e){}}}},8711:(e,t,r)=>{var A=r(4032),n=r(3749);e.exports=function(e,t){return arguments.length<2?(r=A[e],n(r)?r:void 0):A[e]&&A[e][t];var r}},3447:e=>{e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},7507:(e,t,r)=>{var A=r(1179),n=r(8622),i=r(6021),a=r(5597),o=r(5811)("iterator");e.exports=function(e){if(!i(e))return n(e,o)||n(e,"@@iterator")||a[A(e)]}},6961:(e,t,r)=>{var A=r(3453),n=r(4186),i=r(7447),a=r(8055),o=r(7507),s=TypeError;e.exports=function(e,t){var r=arguments.length<2?o(e):t;if(n(r))return i(A(r,e));throw new s(a(e)+" is not iterable")}},213:(e,t,r)=>{var A=r(2608),n=r(5448),i=r(3749),a=r(9872),o=r(687),s=A([].push);e.exports=function(e){if(i(e))return e;if(n(e)){for(var t=e.length,r=[],A=0;A<t;A++){var c=e[A];"string"==typeof c?s(r,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||s(r,o(c))}var g=r.length,u=!0;return function(e,t){if(u)return u=!1,t;if(n(this))return t;for(var A=0;A<g;A++)if(r[A]===e)return t}}}},8622:(e,t,r)=>{var A=r(4186),n=r(6021);e.exports=function(e,t){var r=e[t];return n(r)?void 0:A(r)}},3885:(e,t,r)=>{var A=r(4186),n=r(7447),i=r(3453),a=r(1211),o=r(3447),s="Invalid size",c=RangeError,g=TypeError,u=Math.max,l=function(e,t){this.set=e,this.size=u(t,0),this.has=A(e.has),this.keys=A(e.keys)};l.prototype={getIterator:function(){return o(n(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){n(e);var t=+e.size;if(t!=t)throw new g(s);var r=a(t);if(r<0)throw new c(s);return new l(e,r)}},3966:(e,t,r)=>{var A=r(2608),n=r(4165),i=Math.floor,a=A("".charAt),o=A("".replace),s=A("".slice),c=/\\$([$&\'`]|\\d{1,2}|<[^>]*>)/g,g=/\\$([$&\'`]|\\d{1,2})/g;e.exports=function(e,t,r,A,u,l){var h=r+e.length,I=A.length,f=g;return void 0!==u&&(u=n(u),f=c),o(l,f,(function(n,o){var c;switch(a(o,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,r);case"\'":return s(t,h);case"<":c=u[s(o,1,-1)];break;default:var g=+o;if(0===g)return n;if(g>I){var l=i(g/10);return 0===l?n:l<=I?void 0===A[l-1]?a(o,1):A[l-1]+a(o,1):n}c=A[g-1]}return void 0===c?"":c}))}},4032:function(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9649:(e,t,r)=>{var A=r(2608),n=r(4165),i=A({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},2645:e=>{e.exports={}},4885:e=>{e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},3085:(e,t,r)=>{var A=r(8711);e.exports=A("document","documentElement")},8829:(e,t,r)=>{var A=r(2444),n=r(3455),i=r(5751);e.exports=!A&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1306:e=>{var t=Array,r=Math.abs,A=Math.pow,n=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,o,s){var c,g,u,l=t(s),h=8*s-o-1,I=(1<<h)-1,f=I>>1,C=23===o?A(2,-24)-A(2,-77):0,B=e<0||0===e&&1/e<0?1:0,Q=0;for((e=r(e))!=e||e===1/0?(g=e!=e?1:0,c=I):(c=n(i(e)/a),e*(u=A(2,-c))<1&&(c--,u*=2),(e+=c+f>=1?C/u:C*A(2,1-f))*u>=2&&(c++,u/=2),c+f>=I?(g=0,c=I):c+f>=1?(g=(e*u-1)*A(2,o),c+=f):(g=e*A(2,f-1)*A(2,o),c=0));o>=8;)l[Q++]=255&g,g/=256,o-=8;for(c=c<<o|g,h+=o;h>0;)l[Q++]=255&c,c/=256,h-=8;return l[Q-1]|=128*B,l},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,a=(1<<i)-1,o=a>>1,s=i-7,c=n-1,g=e[c--],u=127&g;for(g>>=7;s>0;)u=256*u+e[c--],s-=8;for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===u)u=1-o;else{if(u===a)return r?NaN:g?-1/0:1/0;r+=A(2,t),u-=o}return(g?-1:1)*r*A(2,u-t)}}},9455:(e,t,r)=>{var A=r(2608),n=r(3455),i=r(9872),a=Object,o=A("".split);e.exports=n((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?o(e,""):a(e)}:a},3951:(e,t,r)=>{var A=r(3749),n=r(2674),i=r(9415);e.exports=function(e,t,r){var a,o;return i&&A(a=t.constructor)&&a!==r&&n(o=a.prototype)&&o!==r.prototype&&i(e,o),e}},6906:(e,t,r)=>{var A=r(2608),n=r(3749),i=r(2205),a=A(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2483:(e,t,r)=>{var A=r(2674),n=r(139);e.exports=function(e,t){A(t)&&"cause"in t&&n(e,"cause",t.cause)}},5227:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(2645),a=r(2674),o=r(9649),s=r(1601).f,c=r(3408),g=r(6442),u=r(8812),l=r(5936),h=r(568),I=!1,f=l("meta"),C=0,B=function(e){s(e,f,{value:{objectID:"O"+C++,weakData:{}}})},Q=e.exports={enable:function(){Q.enable=function(){},I=!0;var e=c.f,t=n([].splice),r={};r[f]=1,e(r).length&&(c.f=function(r){for(var A=e(r),n=0,i=A.length;n<i;n++)if(A[n]===f){t(A,n,1);break}return A},A({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:g.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,f)){if(!u(e))return"F";if(!t)return"E";B(e)}return e[f].objectID},getWeakData:function(e,t){if(!o(e,f)){if(!u(e))return!0;if(!t)return!1;B(e)}return e[f].weakData},onFreeze:function(e){return h&&I&&u(e)&&!o(e,f)&&B(e),e}};i[f]=!0},8301:(e,t,r)=>{var A,n,i,a=r(6206),o=r(4032),s=r(2674),c=r(139),g=r(9649),u=r(2205),l=r(2343),h=r(2645),I="Object already initialized",f=o.TypeError,C=o.WeakMap;if(a||u.state){var B=u.state||(u.state=new C);B.get=B.get,B.has=B.has,B.set=B.set,A=function(e,t){if(B.has(e))throw new f(I);return t.facade=e,B.set(e,t),t},n=function(e){return B.get(e)||{}},i=function(e){return B.has(e)}}else{var Q=l("state");h[Q]=!0,A=function(e,t){if(g(e,Q))throw new f(I);return t.facade=e,c(e,Q,t),t},n=function(e){return g(e,Q)?e[Q]:{}},i=function(e){return g(e,Q)}}e.exports={set:A,get:n,has:i,enforce:function(e){return i(e)?n(e):A(e,{})},getterFor:function(e){return function(t){var r;if(!s(t)||(r=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},993:(e,t,r)=>{var A=r(5811),n=r(5597),i=A("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[i]===e)}},5448:(e,t,r)=>{var A=r(9872);e.exports=Array.isArray||function(e){return"Array"===A(e)}},5415:(e,t,r)=>{var A=r(1179);e.exports=function(e){var t=A(e);return"BigInt64Array"===t||"BigUint64Array"===t}},3749:e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8413:(e,t,r)=>{var A=r(2608),n=r(3455),i=r(3749),a=r(1179),o=r(8711),s=r(6906),c=function(){},g=o("Reflect","construct"),u=/^\\s*(?:class|function)\\b/,l=A(u.exec),h=!u.test(c),I=function(e){if(!i(e))return!1;try{return g(c,[],e),!0}catch(e){return!1}},f=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,s(e))}catch(e){return!0}};f.sham=!0,e.exports=!g||n((function(){var e;return I(I.call)||!I(Object)||!I((function(){e=!0}))||e}))?f:I},3007:(e,t,r)=>{var A=r(9649);e.exports=function(e){return void 0!==e&&(A(e,"value")||A(e,"writable"))}},5868:(e,t,r)=>{var A=r(3455),n=r(3749),i=/#|\\.prototype\\./,a=function(e,t){var r=s[o(e)];return r===g||r!==c&&(n(t)?A(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",g=a.POLYFILL="P";e.exports=a},2599:(e,t,r)=>{var A=r(2674),n=Math.floor;e.exports=Number.isInteger||function(e){return!A(e)&&isFinite(e)&&n(e)===e}},6021:e=>{e.exports=function(e){return null==e}},2674:(e,t,r)=>{var A=r(3749);e.exports=function(e){return"object"==typeof e?null!==e:A(e)}},4597:(e,t,r)=>{var A=r(2674);e.exports=function(e){return A(e)||null===e}},8507:e=>{e.exports=!1},6484:(e,t,r)=>{var A=r(2674),n=r(9872),i=r(5811)("match");e.exports=function(e){var t;return A(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===n(e))}},2277:(e,t,r)=>{var A=r(8711),n=r(3749),i=r(6921),a=r(4752),o=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=A("Symbol");return n(t)&&i(t.prototype,o(e))}},2939:(e,t,r)=>{var A=r(3453);e.exports=function(e,t,r){for(var n,i,a=r?e:e.iterator,o=e.next;!(n=A(o,a)).done;)if(void 0!==(i=t(n.value)))return i}},1804:(e,t,r)=>{var A=r(4864),n=r(3453),i=r(7447),a=r(8055),o=r(993),s=r(7878),c=r(6921),g=r(6961),u=r(7507),l=r(5235),h=TypeError,I=function(e,t){this.stopped=e,this.result=t},f=I.prototype;e.exports=function(e,t,r){var C,B,Q,E,d,y,p,v=r&&r.that,m=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_RECORD),b=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),D=A(t,v),S=function(e){return C&&l(C,"normal",e),new I(!0,e)},F=function(e){return m?(i(e),k?D(e[0],e[1],S):D(e[0],e[1])):k?D(e,S):D(e)};if(w)C=e.iterator;else if(b)C=e;else{if(!(B=u(e)))throw new h(a(e)+" is not iterable");if(o(B)){for(Q=0,E=s(e);E>Q;Q++)if((d=F(e[Q]))&&c(f,d))return d;return new I(!1)}C=g(e,B)}for(y=w?e.next:C.next;!(p=n(y,C)).done;){try{d=F(p.value)}catch(e){l(C,"throw",e)}if("object"==typeof d&&d&&c(f,d))return d}return new I(!1)}},5235:(e,t,r)=>{var A=r(3453),n=r(7447),i=r(8622);e.exports=function(e,t,r){var a,o;n(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=A(a,e)}catch(e){o=!0,a=e}if("throw"===t)throw r;if(o)throw a;return n(a),r}},282:(e,t,r)=>{var A=r(2857).IteratorPrototype,n=r(5304),i=r(4004),a=r(6911),o=r(5597),s=function(){return this};e.exports=function(e,t,r,c){var g=t+" Iterator";return e.prototype=n(A,{next:i(+!c,r)}),a(e,g,!1,!0),o[g]=s,e}},2342:(e,t,r)=>{var A=r(3453),n=r(5304),i=r(139),a=r(4183),o=r(5811),s=r(8301),c=r(8622),g=r(2857).IteratorPrototype,u=r(9393),l=r(5235),h=o("toStringTag"),I="IteratorHelper",f="WrapForValidIterator",C=s.set,B=function(e){var t=s.getterFor(e?f:I);return a(n(g),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var A=r.done?void 0:r.nextHandler();return u(A,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var i=c(n,"return");return i?A(i,n):u(void 0,!0)}if(r.inner)try{l(r.inner.iterator,"normal")}catch(e){return l(n,"throw",e)}return l(n,"normal"),u(void 0,!0)}})},Q=B(!0),E=B(!1);i(E,h,"Iterator Helper"),e.exports=function(e,t){var r=function(r,A){A?(A.iterator=r.iterator,A.next=r.next):A=r,A.type=t?f:I,A.nextHandler=e,A.counter=0,A.done=!1,C(this,A)};return r.prototype=t?Q:E,r}},656:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(8507),a=r(2542),o=r(3749),s=r(282),c=r(2611),g=r(9415),u=r(6911),l=r(139),h=r(8552),I=r(5811),f=r(5597),C=r(2857),B=a.PROPER,Q=a.CONFIGURABLE,E=C.IteratorPrototype,d=C.BUGGY_SAFARI_ITERATORS,y=I("iterator"),p="keys",v="values",m="entries",w=function(){return this};e.exports=function(e,t,r,a,I,C,b){s(r,t,a);var k,D,S,F=function(e){if(e===I&&L)return L;if(!d&&e&&e in G)return G[e];switch(e){case p:case v:case m:return function(){return new r(this,e)}}return function(){return new r(this)}},x=t+" Iterator",R=!1,G=e.prototype,N=G[y]||G["@@iterator"]||I&&G[I],L=!d&&N||F(I),U="Array"===t&&G.entries||N;if(U&&(k=c(U.call(new e)))!==Object.prototype&&k.next&&(i||c(k)===E||(g?g(k,E):o(k[y])||h(k,y,w)),u(k,x,!0,!0),i&&(f[x]=w)),B&&I===v&&N&&N.name!==v&&(!i&&Q?l(G,"name",v):(R=!0,L=function(){return n(N,this)})),I)if(D={values:F(v),keys:C?L:F(p),entries:F(m)},b)for(S in D)(d||R||!(S in G))&&h(G,S,D[S]);else A({target:t,proto:!0,forced:d||R},D);return i&&!b||G[y]===L||h(G,y,L,{name:I}),f[t]=L,D}},4009:(e,t,r)=>{var A=r(3453),n=r(4186),i=r(7447),a=r(3447),o=r(2342),s=r(3535),c=o((function(){var e=this.iterator,t=i(A(this.next,e));if(!(this.done=!!t.done))return s(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return i(this),n(e),new c(a(this),{mapper:e})}},2857:(e,t,r)=>{var A,n,i,a=r(3455),o=r(3749),s=r(2674),c=r(5304),g=r(2611),u=r(8552),l=r(5811),h=r(8507),I=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=g(g(i)))!==Object.prototype&&(A=n):f=!0),!s(A)||a((function(){var e={};return A[I].call(e)!==e}))?A={}:h&&(A=c(A)),o(A[I])||u(A,I,(function(){return this})),e.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:f}},5597:e=>{e.exports={}},7878:(e,t,r)=>{var A=r(5806);e.exports=function(e){return A(e.length)}},1147:(e,t,r)=>{var A=r(2608),n=r(3455),i=r(3749),a=r(9649),o=r(2444),s=r(2542).CONFIGURABLE,c=r(6906),g=r(8301),u=g.enforce,l=g.get,h=String,I=Object.defineProperty,f=A("".slice),C=A("".replace),B=A([].join),Q=o&&!n((function(){return 8!==I((function(){}),"length",{value:8}).length})),E=String(String).split("String"),d=e.exports=function(e,t,r){"Symbol("===f(h(t),0,7)&&(t="["+C(h(t),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(o?I(e,"name",{value:t,configurable:!0}):e.name=t),Q&&r&&a(r,"arity")&&e.length!==r.arity&&I(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&I(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var A=u(e);return a(A,"source")||(A.source=B(E,"string"==typeof t?t:"")),e};Function.prototype.toString=d((function(){return i(this)&&l(this).source||c(this)}),"toString")},9676:(e,t,r)=>{var A=r(550),n=Math.abs,i=2220446049250313e-31,a=1/i;e.exports=function(e,t,r,o){var s=+e,c=n(s),g=A(s);if(c<o)return g*function(e){return e+a-a}(c/o/t)*o*t;var u=(1+t/i)*c,l=u-(u-c);return l>r||l!=l?g*(1/0):g*l}},3505:(e,t,r)=>{var A=r(9676);e.exports=Math.fround||function(e){return A(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},550:e=>{e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},2789:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var A=+e;return(A>0?r:t)(A)}},755:(e,t,r)=>{var A,n,i,a,o,s=r(4032),c=r(5725),g=r(4864),u=r(1369).set,l=r(3529),h=r(9352),I=r(9081),f=r(628),C=r(4529),B=s.MutationObserver||s.WebKitMutationObserver,Q=s.document,E=s.process,d=s.Promise,y=c("queueMicrotask");if(!y){var p=new l,v=function(){var e,t;for(C&&(e=E.domain)&&e.exit();t=p.get();)try{t()}catch(e){throw p.head&&A(),e}e&&e.enter()};h||C||f||!B||!Q?!I&&d&&d.resolve?((a=d.resolve(void 0)).constructor=d,o=g(a.then,a),A=function(){o(v)}):C?A=function(){E.nextTick(v)}:(u=g(u,s),A=function(){u(v)}):(n=!0,i=Q.createTextNode(""),new B(v).observe(i,{characterData:!0}),A=function(){i.data=n=!n}),y=function(e){p.head||A(),p.add(e)}}e.exports=y},9371:(e,t,r)=>{var A=r(4186),n=TypeError,i=function(e){var t,r;this.promise=new e((function(e,A){if(void 0!==t||void 0!==r)throw new n("Bad Promise constructor");t=e,r=A})),this.resolve=A(t),this.reject=A(r)};e.exports.f=function(e){return new i(e)}},8363:(e,t,r)=>{var A=r(687);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:A(e)}},3631:(e,t,r)=>{var A=r(6484),n=TypeError;e.exports=function(e){if(A(e))throw new n("The method doesn\'t accept regular expressions");return e}},8069:(e,t,r)=>{var A=r(2444),n=r(2608),i=r(3453),a=r(3455),o=r(496),s=r(6005),c=r(9221),g=r(4165),u=r(9455),l=Object.assign,h=Object.defineProperty,I=n([].concat);e.exports=!l||a((function(){if(A&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==l({},e)[r]||o(l({},t)).join("")!==n}))?function(e,t){for(var r=g(e),n=arguments.length,a=1,l=s.f,h=c.f;n>a;)for(var f,C=u(arguments[a++]),B=l?I(o(C),l(C)):o(C),Q=B.length,E=0;Q>E;)f=B[E++],A&&!i(h,C,f)||(r[f]=C[f]);return r}:l},5304:(e,t,r)=>{var A,n=r(7447),i=r(9217),a=r(5175),o=r(2645),s=r(3085),c=r(5751),g=r(2343),u="prototype",l="script",h=g("IE_PROTO"),I=function(){},f=function(e){return"<"+l+">"+e+"</"+l+">"},C=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},B=function(){try{A=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;B="undefined"!=typeof document?document.domain&&A?C(A):(t=c("iframe"),r="java"+l+":",t.style.display="none",s.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):C(A);for(var n=a.length;n--;)delete B[u][a[n]];return B()};o[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(I[u]=n(e),r=new I,I[u]=null,r[h]=e):r=B(),void 0===t?r:i.f(r,t)}},9217:(e,t,r)=>{var A=r(2444),n=r(782),i=r(1601),a=r(7447),o=r(3637),s=r(496);t.f=A&&!n?Object.defineProperties:function(e,t){a(e);for(var r,A=o(t),n=s(t),c=n.length,g=0;c>g;)i.f(e,r=n[g++],A[r]);return e}},1601:(e,t,r)=>{var A=r(2444),n=r(8829),i=r(782),a=r(7447),o=r(6201),s=TypeError,c=Object.defineProperty,g=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";t.f=A?i?function(e,t,r){if(a(e),t=o(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var A=g(e,t);A&&A[h]&&(e[t]=r.value,r={configurable:l in r?r[l]:A[l],enumerable:u in r?r[u]:A[u],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=o(t),a(r),n)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1139:(e,t,r)=>{var A=r(2444),n=r(3453),i=r(9221),a=r(4004),o=r(3637),s=r(6201),c=r(9649),g=r(8829),u=Object.getOwnPropertyDescriptor;t.f=A?u:function(e,t){if(e=o(e),t=s(t),g)try{return u(e,t)}catch(e){}if(c(e,t))return a(!n(i.f,e,t),e[t])}},6442:(e,t,r)=>{var A=r(9872),n=r(3637),i=r(3408).f,a=r(4224),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"Window"===A(e)?function(e){try{return i(e)}catch(e){return a(o)}}(e):i(n(e))}},3408:(e,t,r)=>{var A=r(2468),n=r(5175).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return A(e,n)}},6005:(e,t)=>{t.f=Object.getOwnPropertySymbols},2611:(e,t,r)=>{var A=r(9649),n=r(3749),i=r(4165),a=r(2343),o=r(5139),s=a("IE_PROTO"),c=Object,g=c.prototype;e.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(A(t,s))return t[s];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof c?g:null}},8812:(e,t,r)=>{var A=r(3455),n=r(2674),i=r(9872),a=r(7060),o=Object.isExtensible,s=A((function(){o(1)}));e.exports=s||a?function(e){return!!n(e)&&(!a||"ArrayBuffer"!==i(e))&&(!o||o(e))}:o},6921:(e,t,r)=>{var A=r(2608);e.exports=A({}.isPrototypeOf)},2468:(e,t,r)=>{var A=r(2608),n=r(9649),i=r(3637),a=r(7921).indexOf,o=r(2645),s=A([].push);e.exports=function(e,t){var r,A=i(e),c=0,g=[];for(r in A)!n(o,r)&&n(A,r)&&s(g,r);for(;t.length>c;)n(A,r=t[c++])&&(~a(g,r)||s(g,r));return g}},496:(e,t,r)=>{var A=r(2468),n=r(5175);e.exports=Object.keys||function(e){return A(e,n)}},9221:(e,t)=>{var r={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,n=A&&!r.call({1:2},1);t.f=n?function(e){var t=A(this,e);return!!t&&t.enumerable}:r},9415:(e,t,r)=>{var A=r(5026),n=r(2674),i=r(7222),a=r(7330);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=A(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,A){return i(r),a(A),n(r)?(t?e(r,A):r.__proto__=A,r):r}}():void 0)},8885:(e,t,r)=>{var A=r(2444),n=r(3455),i=r(2608),a=r(2611),o=r(496),s=r(3637),c=i(r(9221).f),g=i([].push),u=A&&n((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),l=function(e){return function(t){for(var r,n=s(t),i=o(n),l=u&&null===a(n),h=i.length,I=0,f=[];h>I;)r=i[I++],A&&!(l?r in n:c(n,r))||g(f,e?[r,n[r]]:n[r]);return f}};e.exports={entries:l(!0),values:l(!1)}},3003:(e,t,r)=>{var A=r(3724),n=r(1179);e.exports=A?{}.toString:function(){return"[object "+n(this)+"]"}},3118:(e,t,r)=>{var A=r(3453),n=r(3749),i=r(2674),a=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&n(r=e.toString)&&!i(o=A(r,e)))return o;if(n(r=e.valueOf)&&!i(o=A(r,e)))return o;if("string"!==t&&n(r=e.toString)&&!i(o=A(r,e)))return o;throw new a("Can\'t convert object to primitive value")}},2919:(e,t,r)=>{var A=r(8711),n=r(2608),i=r(3408),a=r(6005),o=r(7447),s=n([].concat);e.exports=A("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=a.f;return r?s(t,r(e)):t}},8799:(e,t,r)=>{var A=r(4032);e.exports=A},6703:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9492:(e,t,r)=>{var A=r(4032),n=r(5318),i=r(3749),a=r(5868),o=r(6906),s=r(5811),c=r(7351),g=r(8507),u=r(6415),l=n&&n.prototype,h=s("species"),I=!1,f=i(A.PromiseRejectionEvent),C=a("Promise",(function(){var e=o(n),t=e!==String(n);if(!t&&66===u)return!0;if(g&&(!l.catch||!l.finally))return!0;if(!u||u<51||!/native code/.test(e)){var r=new n((function(e){e(1)})),A=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=A,!(I=r.then((function(){}))instanceof A))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||f)}));e.exports={CONSTRUCTOR:C,REJECTION_EVENT:f,SUBCLASSING:I}},5318:(e,t,r)=>{var A=r(4032);e.exports=A.Promise},1774:(e,t,r)=>{var A=r(7447),n=r(2674),i=r(9371);e.exports=function(e,t){if(A(e),n(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},2041:(e,t,r)=>{var A=r(5318),n=r(4348),i=r(9492).CONSTRUCTOR;e.exports=i||!n((function(e){A.all(e).then(void 0,(function(){}))}))},2848:(e,t,r)=>{var A=r(1601).f;e.exports=function(e,t,r){r in e||A(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},3529:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},4410:(e,t,r)=>{var A=r(3453),n=r(7447),i=r(3749),a=r(9872),o=r(9867),s=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=A(r,e,t);return null!==c&&n(c),c}if("RegExp"===a(e))return A(o,e,t);throw new s("RegExp#exec called on incompatible receiver")}},9867:(e,t,r)=>{var A,n,i=r(3453),a=r(2608),o=r(687),s=r(747),c=r(1837),g=r(4593),u=r(5304),l=r(8301).get,h=r(3651),I=r(9502),f=g("native-string-replace",String.prototype.replace),C=RegExp.prototype.exec,B=C,Q=a("".charAt),E=a("".indexOf),d=a("".replace),y=a("".slice),p=(n=/b*/g,i(C,A=/a/,"a"),i(C,n,"a"),0!==A.lastIndex||0!==n.lastIndex),v=c.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(p||m||v||h||I)&&(B=function(e){var t,r,A,n,a,c,g,h=this,I=l(h),w=o(e),b=I.raw;if(b)return b.lastIndex=h.lastIndex,t=i(B,b,w),h.lastIndex=b.lastIndex,t;var k=I.groups,D=v&&h.sticky,S=i(s,h),F=h.source,x=0,R=w;if(D&&(S=d(S,"y",""),-1===E(S,"g")&&(S+="g"),R=y(w,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\\n"!==Q(w,h.lastIndex-1))&&(F="(?: "+F+")",R=" "+R,x++),r=new RegExp("^(?:"+F+")",S)),m&&(r=new RegExp("^"+F+"$(?!\\\\s)",S)),p&&(A=h.lastIndex),n=i(C,D?r:h,R),D?n?(n.input=y(n.input,x),n[0]=y(n[0],x),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:p&&n&&(h.lastIndex=h.global?n.index+n[0].length:A),m&&n&&n.length>1&&i(f,n[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n&&k)for(n.groups=c=u(null),a=0;a<k.length;a++)c[(g=k[a])[0]]=n[g[1]];return n}),e.exports=B},747:(e,t,r)=>{var A=r(7447);e.exports=function(){var e=A(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},4554:(e,t,r)=>{var A=r(3453),n=r(9649),i=r(6921),a=r(747),o=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in o||n(e,"flags")||!i(o,e)?t:A(a,e)}},1837:(e,t,r)=>{var A=r(3455),n=r(4032).RegExp,i=A((function(){var e=n("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||A((function(){return!n("a","y").sticky})),o=i||A((function(){var e=n("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:o,MISSED_STICKY:a,UNSUPPORTED_Y:i}},3651:(e,t,r)=>{var A=r(3455),n=r(4032).RegExp;e.exports=A((function(){var e=n(".","s");return!(e.dotAll&&e.test("\\n")&&"s"===e.flags)}))},9502:(e,t,r)=>{var A=r(3455),n=r(4032).RegExp;e.exports=A((function(){var e=n("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},7222:(e,t,r)=>{var A=r(6021),n=TypeError;e.exports=function(e){if(A(e))throw new n("Can\'t call method on "+e);return e}},5725:(e,t,r)=>{var A=r(4032),n=r(2444),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!n)return A[e];var t=i(A,e);return t&&t.value}},8550:(e,t,r)=>{var A=r(418),n=r(5605),i=A.Set,a=A.add;e.exports=function(e){var t=new i;return n(e,(function(e){a(t,e)})),t}},4656:(e,t,r)=>{var A=r(4376),n=r(418),i=r(8550),a=r(82),o=r(3885),s=r(5605),c=r(2939),g=n.has,u=n.remove;e.exports=function(e){var t=A(this),r=o(e),n=i(t);return a(t)<=r.size?s(t,(function(e){r.includes(e)&&u(n,e)})):c(r.getIterator(),(function(e){g(t,e)&&u(n,e)})),n}},418:(e,t,r)=>{var A=r(2608),n=Set.prototype;e.exports={Set,add:A(n.add),has:A(n.has),remove:A(n.delete),proto:n}},2446:(e,t,r)=>{var A=r(4376),n=r(418),i=r(82),a=r(3885),o=r(5605),s=r(2939),c=n.Set,g=n.add,u=n.has;e.exports=function(e){var t=A(this),r=a(e),n=new c;return i(t)>r.size?s(r.getIterator(),(function(e){u(t,e)&&g(n,e)})):o(t,(function(e){r.includes(e)&&g(n,e)})),n}},4545:(e,t,r)=>{var A=r(4376),n=r(418).has,i=r(82),a=r(3885),o=r(5605),s=r(2939),c=r(5235);e.exports=function(e){var t=A(this),r=a(e);if(i(t)<=r.size)return!1!==o(t,(function(e){if(r.includes(e))return!1}),!0);var g=r.getIterator();return!1!==s(g,(function(e){if(n(t,e))return c(g,"normal",!1)}))}},7918:(e,t,r)=>{var A=r(4376),n=r(82),i=r(5605),a=r(3885);e.exports=function(e){var t=A(this),r=a(e);return!(n(t)>r.size)&&!1!==i(t,(function(e){if(!r.includes(e))return!1}),!0)}},6111:(e,t,r)=>{var A=r(4376),n=r(418).has,i=r(82),a=r(3885),o=r(2939),s=r(5235);e.exports=function(e){var t=A(this),r=a(e);if(i(t)<r.size)return!1;var c=r.getIterator();return!1!==o(c,(function(e){if(!n(t,e))return s(c,"normal",!1)}))}},5605:(e,t,r)=>{var A=r(2608),n=r(2939),i=r(418),a=i.Set,o=i.proto,s=A(o.forEach),c=A(o.keys),g=c(new a).next;e.exports=function(e,t,r){return r?n({iterator:c(e),next:g},t):s(e,t)}},1716:(e,t,r)=>{var A=r(8711),n=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=A("Set");try{(new t)[e](n(0));try{return(new t)[e](n(-1)),!1}catch(e){return!0}}catch(e){return!1}}},82:(e,t,r)=>{var A=r(5026),n=r(418);e.exports=A(n.proto,"size","get")||function(e){return e.size}},5409:(e,t,r)=>{var A=r(8711),n=r(8986),i=r(5811),a=r(2444),o=i("species");e.exports=function(e){var t=A(e);a&&t&&!t[o]&&n(t,o,{configurable:!0,get:function(){return this}})}},4498:(e,t,r)=>{var A=r(4376),n=r(418),i=r(8550),a=r(3885),o=r(2939),s=n.add,c=n.has,g=n.remove;e.exports=function(e){var t=A(this),r=a(e).getIterator(),n=i(t);return o(r,(function(e){c(t,e)?g(n,e):s(n,e)})),n}},6911:(e,t,r)=>{var A=r(1601).f,n=r(9649),i=r(5811)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!n(e,i)&&A(e,i,{configurable:!0,value:t})}},9500:(e,t,r)=>{var A=r(4376),n=r(418).add,i=r(8550),a=r(3885),o=r(2939);e.exports=function(e){var t=A(this),r=a(e).getIterator(),s=i(t);return o(r,(function(e){n(s,e)})),s}},2343:(e,t,r)=>{var A=r(4593),n=r(5936),i=A("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},2205:(e,t,r)=>{var A=r(8507),n=r(4032),i=r(5801),a="__core-js_shared__",o=e.exports=n[a]||i(a,{});(o.versions||(o.versions=[])).push({version:"3.38.1",mode:A?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4593:(e,t,r)=>{var A=r(2205);e.exports=function(e,t){return A[e]||(A[e]=t||{})}},1365:(e,t,r)=>{var A=r(7447),n=r(9052),i=r(6021),a=r(5811)("species");e.exports=function(e,t){var r,o=A(e).constructor;return void 0===o||i(r=A(o)[a])?t:n(r)}},6903:(e,t,r)=>{var A=r(2608),n=r(1211),i=r(687),a=r(7222),o=A("".charAt),s=A("".charCodeAt),c=A("".slice),g=function(e){return function(t,r){var A,g,u=i(a(t)),l=n(r),h=u.length;return l<0||l>=h?e?"":void 0:(A=s(u,l))<55296||A>56319||l+1===h||(g=s(u,l+1))<56320||g>57343?e?o(u,l):A:e?c(u,l,l+2):g-56320+(A-55296<<10)+65536}};e.exports={codeAt:g(!1),charAt:g(!0)}},4903:(e,t,r)=>{var A=r(7607);e.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(A)},6437:(e,t,r)=>{var A=r(2608),n=r(5806),i=r(687),a=r(6605),o=r(7222),s=A(a),c=A("".slice),g=Math.ceil,u=function(e){return function(t,r,A){var a,u,l=i(o(t)),h=n(r),I=l.length,f=void 0===A?" ":i(A);return h<=I||""===f?l:((u=s(f,g((a=h-I)/f.length))).length>a&&(u=c(u,0,a)),e?l+u:u+l)}};e.exports={start:u(!1),end:u(!0)}},5141:(e,t,r)=>{var A=r(2608),n=2147483647,i=/[^\\0-\\u007E]/,a=/[.\\u3002\\uFF0E\\uFF61]/g,o="Overflow: input needs wider integers to process",s=RangeError,c=A(a.exec),g=Math.floor,u=String.fromCharCode,l=A("".charCodeAt),h=A([].join),I=A([].push),f=A("".replace),C=A("".split),B=A("".toLowerCase),Q=function(e){return e+22+75*(e<26)},E=function(e,t,r){var A=0;for(e=r?g(e/700):e>>1,e+=g(e/t);e>455;)e=g(e/35),A+=36;return g(A+36*e/(e+38))},d=function(e){var t=[];e=function(e){for(var t=[],r=0,A=e.length;r<A;){var n=l(e,r++);if(n>=55296&&n<=56319&&r<A){var i=l(e,r++);56320==(64512&i)?I(t,((1023&n)<<10)+(1023&i)+65536):(I(t,n),r--)}else I(t,n)}return t}(e);var r,A,i=e.length,a=128,c=0,f=72;for(r=0;r<e.length;r++)(A=e[r])<128&&I(t,u(A));var C=t.length,B=C;for(C&&I(t,"-");B<i;){var d=n;for(r=0;r<e.length;r++)(A=e[r])>=a&&A<d&&(d=A);var y=B+1;if(d-a>g((n-c)/y))throw new s(o);for(c+=(d-a)*y,a=d,r=0;r<e.length;r++){if((A=e[r])<a&&++c>n)throw new s(o);if(A===a){for(var p=c,v=36;;){var m=v<=f?1:v>=f+26?26:v-f;if(p<m)break;var w=p-m,b=36-m;I(t,u(Q(m+w%b))),p=g(w/b),v+=36}I(t,u(Q(p))),f=E(c,y,B===C),c=0,B++}}c++,a++}return h(t,"")};e.exports=function(e){var t,r,A=[],n=C(f(B(e),a,"."),".");for(t=0;t<n.length;t++)r=n[t],I(A,c(i,r)?"xn--"+d(r):r);return h(A,".")}},6605:(e,t,r)=>{var A=r(1211),n=r(687),i=r(7222),a=RangeError;e.exports=function(e){var t=n(i(this)),r="",o=A(e);if(o<0||o===1/0)throw new a("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},2882:(e,t,r)=>{var A=r(9418).end,n=r(3794);e.exports=n("trimEnd")?function(){return A(this)}:"".trimEnd},3794:(e,t,r)=>{var A=r(2542).PROPER,n=r(3455),i=r(2284);e.exports=function(e){return n((function(){return!!i[e]()||"​᠎"!=="​᠎"[e]()||A&&i[e].name!==e}))}},9418:(e,t,r)=>{var A=r(2608),n=r(7222),i=r(687),a=r(2284),o=A("".replace),s=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),g=function(e){return function(t){var r=i(n(t));return 1&e&&(r=o(r,s,"")),2&e&&(r=o(r,c,"$1")),r}};e.exports={start:g(1),end:g(2),trim:g(3)}},6572:(e,t,r)=>{var A=r(4032),n=r(3455),i=r(6415),a=r(7351),o=A.structuredClone;e.exports=!!o&&!n((function(){if("DENO"===a&&i>92||"NODE"===a&&i>94||"BROWSER"===a&&i>97)return!1;var e=new ArrayBuffer(8),t=o(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},6943:(e,t,r)=>{var A=r(6415),n=r(3455),i=r(4032).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A&&A<41}))},3042:(e,t,r)=>{var A=r(3453),n=r(8711),i=r(5811),a=r(8552);e.exports=function(){var e=n("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,o=i("toPrimitive");t&&!t[o]&&a(t,o,(function(e){return A(r,this)}),{arity:1})}},8592:(e,t,r)=>{var A=r(6943);e.exports=A&&!!Symbol.for&&!!Symbol.keyFor},1369:(e,t,r)=>{var A,n,i,a,o=r(4032),s=r(3881),c=r(4864),g=r(3749),u=r(9649),l=r(3455),h=r(3085),I=r(4224),f=r(5751),C=r(7900),B=r(9352),Q=r(4529),E=o.setImmediate,d=o.clearImmediate,y=o.process,p=o.Dispatch,v=o.Function,m=o.MessageChannel,w=o.String,b=0,k={},D="onreadystatechange";l((function(){A=o.location}));var S=function(e){if(u(k,e)){var t=k[e];delete k[e],t()}},F=function(e){return function(){S(e)}},x=function(e){S(e.data)},R=function(e){o.postMessage(w(e),A.protocol+"//"+A.host)};E&&d||(E=function(e){C(arguments.length,1);var t=g(e)?e:v(e),r=I(arguments,1);return k[++b]=function(){s(t,void 0,r)},n(b),b},d=function(e){delete k[e]},Q?n=function(e){y.nextTick(F(e))}:p&&p.now?n=function(e){p.now(F(e))}:m&&!B?(a=(i=new m).port2,i.port1.onmessage=x,n=c(a.postMessage,a)):o.addEventListener&&g(o.postMessage)&&!o.importScripts&&A&&"file:"!==A.protocol&&!l(R)?(n=R,o.addEventListener("message",x,!1)):n=D in f("script")?function(e){h.appendChild(f("script"))[D]=function(){h.removeChild(this),S(e)}}:function(e){setTimeout(F(e),0)}),e.exports={set:E,clear:d}},9002:(e,t,r)=>{var A=r(1211),n=Math.max,i=Math.min;e.exports=function(e,t){var r=A(e);return r<0?n(r+t,0):i(r,t)}},1198:(e,t,r)=>{var A=r(8921),n=TypeError;e.exports=function(e){var t=A(e,"number");if("number"==typeof t)throw new n("Can\'t convert number to bigint");return BigInt(t)}},9088:(e,t,r)=>{var A=r(1211),n=r(5806),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=A(e),r=n(t);if(t!==r)throw new i("Wrong length or index");return r}},3637:(e,t,r)=>{var A=r(9455),n=r(7222);e.exports=function(e){return A(n(e))}},1211:(e,t,r)=>{var A=r(2789);e.exports=function(e){var t=+e;return t!=t||0===t?0:A(t)}},5806:(e,t,r)=>{var A=r(1211),n=Math.min;e.exports=function(e){var t=A(e);return t>0?n(t,9007199254740991):0}},4165:(e,t,r)=>{var A=r(7222),n=Object;e.exports=function(e){return n(A(e))}},8402:(e,t,r)=>{var A=r(5590),n=RangeError;e.exports=function(e,t){var r=A(e);if(r%t)throw new n("Wrong offset");return r}},5590:(e,t,r)=>{var A=r(1211),n=RangeError;e.exports=function(e){var t=A(e);if(t<0)throw new n("The argument can\'t be less than 0");return t}},8921:(e,t,r)=>{var A=r(3453),n=r(2674),i=r(2277),a=r(8622),o=r(3118),s=r(5811),c=TypeError,g=s("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,s=a(e,g);if(s){if(void 0===t&&(t="default"),r=A(s,e,t),!n(r)||i(r))return r;throw new c("Can\'t convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},6201:(e,t,r)=>{var A=r(8921),n=r(2277);e.exports=function(e){var t=A(e,"string");return n(t)?t:t+""}},3724:(e,t,r)=>{var A={};A[r(5811)("toStringTag")]="z",e.exports="[object z]"===String(A)},687:(e,t,r)=>{var A=r(1179),n=String;e.exports=function(e){if("Symbol"===A(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},5215:e=>{var t=Math.round;e.exports=function(e){var r=t(e);return r<0?0:r>255?255:255&r}},8055:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8975:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3453),a=r(2444),o=r(949),s=r(4356),c=r(7226),g=r(3399),u=r(4004),l=r(139),h=r(2599),I=r(5806),f=r(9088),C=r(8402),B=r(5215),Q=r(6201),E=r(9649),d=r(1179),y=r(2674),p=r(2277),v=r(5304),m=r(6921),w=r(9415),b=r(3408).f,k=r(2291),D=r(5645).forEach,S=r(5409),F=r(8986),x=r(1601),R=r(1139),G=r(7434),N=r(8301),L=r(3951),U=N.get,M=N.set,J=N.enforce,H=x.f,Y=R.f,P=n.RangeError,O=c.ArrayBuffer,K=O.prototype,T=c.DataView,q=s.NATIVE_ARRAY_BUFFER_VIEWS,j=s.TYPED_ARRAY_TAG,W=s.TypedArray,Z=s.TypedArrayPrototype,_=s.isTypedArray,X="BYTES_PER_ELEMENT",V="Wrong length",z=function(e,t){F(e,t,{configurable:!0,get:function(){return U(this)[t]}})},$=function(e){var t;return m(K,e)||"ArrayBuffer"===(t=d(e))||"SharedArrayBuffer"===t},ee=function(e,t){return _(e)&&!p(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=Q(t),ee(e,t)?u(2,e[t]):Y(e,t)},re=function(e,t,r){return t=Q(t),!(ee(e,t)&&y(r)&&E(r,"value"))||E(r,"get")||E(r,"set")||r.configurable||E(r,"writable")&&!r.writable||E(r,"enumerable")&&!r.enumerable?H(e,t,r):(e[t]=r.value,e)};a?(q||(R.f=te,x.f=re,z(Z,"buffer"),z(Z,"byteOffset"),z(Z,"byteLength"),z(Z,"length")),A({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var a=e.match(/\\d+/)[0]/8,s=e+(r?"Clamped":"")+"Array",c="get"+e,u="set"+e,h=n[s],Q=h,E=Q&&Q.prototype,d={},p=function(e,t){H(e,t,{get:function(){return function(e,t){var r=U(e);return r.view[c](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,A){var n=U(e);n.view[u](t*a+n.byteOffset,r?B(A):A,!0)}(this,t,e)},enumerable:!0})};q?o&&(Q=t((function(e,t,r,A){return g(e,E),L(y(t)?$(t)?void 0!==A?new h(t,C(r,a),A):void 0!==r?new h(t,C(r,a)):new h(t):_(t)?G(Q,t):i(k,Q,t):new h(f(t)),e,Q)})),w&&w(Q,W),D(b(h),(function(e){e in Q||l(Q,e,h[e])})),Q.prototype=E):(Q=t((function(e,t,r,A){g(e,E);var n,o,s,c=0,u=0;if(y(t)){if(!$(t))return _(t)?G(Q,t):i(k,Q,t);n=t,u=C(r,a);var l=t.byteLength;if(void 0===A){if(l%a)throw new P(V);if((o=l-u)<0)throw new P(V)}else if((o=I(A)*a)+u>l)throw new P(V);s=o/a}else s=f(t),n=new O(o=s*a);for(M(e,{buffer:n,byteOffset:u,byteLength:o,length:s,view:new T(n)});c<s;)p(e,c++)})),w&&w(Q,W),E=Q.prototype=v(Z)),E.constructor!==Q&&l(E,"constructor",Q),J(E).TypedArrayConstructor=Q,j&&l(E,j,s);var m=Q!==h;d[s]=Q,A({global:!0,constructor:!0,forced:m,sham:!q},d),X in Q||l(Q,X,a),X in E||l(E,X,a),S(s)}):e.exports=function(){}},949:(e,t,r)=>{var A=r(4032),n=r(3455),i=r(4348),a=r(4356).NATIVE_ARRAY_BUFFER_VIEWS,o=A.ArrayBuffer,s=A.Int8Array;e.exports=!a||!n((function(){s(1)}))||!n((function(){new s(-1)}))||!i((function(e){new s,new s(null),new s(1.5),new s(e)}),!0)||n((function(){return 1!==new s(new o(2),1,void 0).length}))},85:(e,t,r)=>{var A=r(7434),n=r(580);e.exports=function(e,t){return A(n(e),t)}},2291:(e,t,r)=>{var A=r(4864),n=r(3453),i=r(9052),a=r(4165),o=r(7878),s=r(6961),c=r(7507),g=r(993),u=r(5415),l=r(4356).aTypedArrayConstructor,h=r(1198);e.exports=function(e){var t,r,I,f,C,B,Q,E,d=i(this),y=a(e),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,w=c(y);if(w&&!g(w))for(E=(Q=s(y,w)).next,y=[];!(B=n(E,Q)).done;)y.push(B.value);for(m&&p>2&&(v=A(v,arguments[2])),r=o(y),I=new(l(d))(r),f=u(I),t=0;r>t;t++)C=m?v(y[t],t):y[t],I[t]=f?h(C):+C;return I}},580:(e,t,r)=>{var A=r(4356),n=r(1365),i=A.aTypedArrayConstructor,a=A.getTypedArrayConstructor;e.exports=function(e){return i(n(e,a(e)))}},5936:(e,t,r)=>{var A=r(2608),n=0,i=Math.random(),a=A(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++n+i,36)}},8200:(e,t,r)=>{var A=r(3455),n=r(5811),i=r(2444),a=r(8507),o=n("iterator");e.exports=!A((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),A="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),A+=r+e})),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==A||"x"!==new URL("https://x",void 0).host}))},4752:(e,t,r)=>{var A=r(6943);e.exports=A&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},782:(e,t,r)=>{var A=r(2444),n=r(3455);e.exports=A&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7900:e=>{var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},6206:(e,t,r)=>{var A=r(4032),n=r(3749),i=A.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},5343:(e,t,r)=>{var A=r(8799),n=r(9649),i=r(4559),a=r(1601).f;e.exports=function(e){var t=A.Symbol||(A.Symbol={});n(t,e)||a(t,e,{value:i.f(e)})}},4559:(e,t,r)=>{var A=r(5811);t.f=A},5811:(e,t,r)=>{var A=r(4032),n=r(4593),i=r(9649),a=r(5936),o=r(6943),s=r(4752),c=A.Symbol,g=n("wks"),u=s?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(g,e)||(g[e]=o&&i(c,e)?c[e]:u("Symbol."+e)),g[e]}},2284:e=>{e.exports="\\t\\n\\v\\f\\r                　\\u2028\\u2029\\ufeff"},9257:(e,t,r)=>{var A=r(8711),n=r(9649),i=r(139),a=r(6921),o=r(9415),s=r(2924),c=r(2848),g=r(3951),u=r(8363),l=r(2483),h=r(4171),I=r(2444),f=r(8507);e.exports=function(e,t,r,C){var B="stackTraceLimit",Q=C?2:1,E=e.split("."),d=E[E.length-1],y=A.apply(null,E);if(y){var p=y.prototype;if(!f&&n(p,"cause")&&delete p.cause,!r)return y;var v=A("Error"),m=t((function(e,t){var r=u(C?t:e,void 0),A=C?new y(e):new y;return void 0!==r&&i(A,"message",r),h(A,m,A.stack,2),this&&a(p,this)&&g(A,this,m),arguments.length>Q&&l(A,arguments[Q]),A}));if(m.prototype=p,"Error"!==d?o?o(m,v):s(m,v,{name:!0}):I&&B in y&&(c(m,y,B),c(m,y,"prepareStackTrace")),s(m,y),!f)try{p.name!==d&&i(p,"name",d),p.constructor=m}catch(e){}return m}}},5015:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(7226),a=r(5409),o="ArrayBuffer",s=i[o];A({global:!0,constructor:!0,forced:n[o]!==s},{ArrayBuffer:s}),a(o)},9261:(e,t,r)=>{var A=r(2444),n=r(8986),i=r(8102),a=ArrayBuffer.prototype;A&&!("detached"in a)&&n(a,"detached",{configurable:!0,get:function(){return i(this)}})},6209:(e,t,r)=>{var A=r(5366),n=r(2116),i=r(3455),a=r(7226),o=r(7447),s=r(9002),c=r(5806),g=r(1365),u=a.ArrayBuffer,l=a.DataView,h=l.prototype,I=n(u.prototype.slice),f=n(h.getUint8),C=n(h.setUint8);A({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(I&&void 0===t)return I(o(this),e);for(var r=o(this).byteLength,A=s(e,r),n=s(void 0===t?r:t,r),i=new(g(this,u))(c(n-A)),a=new l(this),h=new l(i),B=0;A<n;)C(h,B++,f(a,A++));return i}})},3632:(e,t,r)=>{var A=r(5366),n=r(4676);n&&A({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return n(this,arguments.length?arguments[0]:void 0,!1)}})},3700:(e,t,r)=>{var A=r(5366),n=r(4676);n&&A({target:"ArrayBuffer",proto:!0},{transfer:function(){return n(this,arguments.length?arguments[0]:void 0,!0)}})},6347:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(7878),a=r(1211),o=r(1458);A({target:"Array",proto:!0},{at:function(e){var t=n(this),r=i(t),A=a(e),o=A>=0?A:r+A;return o<0||o>=r?void 0:t[o]}}),o("at")},3234:(e,t,r)=>{var A=r(5366),n=r(3455),i=r(5448),a=r(2674),o=r(4165),s=r(7878),c=r(9573),g=r(3552),u=r(1453),l=r(9077),h=r(5811),I=r(6415),f=h("isConcatSpreadable"),C=I>=51||!n((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),B=function(e){if(!a(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};A({target:"Array",proto:!0,arity:1,forced:!C||!l("concat")},{concat:function(e){var t,r,A,n,i,a=o(this),l=u(a,0),h=0;for(t=-1,A=arguments.length;t<A;t++)if(B(i=-1===t?a:arguments[t]))for(n=s(i),c(h+n),r=0;r<n;r++,h++)r in i&&g(l,h,i[r]);else c(h+1),g(l,h++,i);return l.length=h,l}})},456:(e,t,r)=>{var A=r(5366),n=r(5645).filter;A({target:"Array",proto:!0,forced:!r(9077)("filter")},{filter:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},6497:(e,t,r)=>{var A=r(5366),n=r(2851),i=r(4165),a=r(7878),o=r(1211),s=r(1453);A({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),r=a(t),A=s(t,0);return A.length=n(A,t,t,r,0,void 0===e?1:o(e)),A}})},6746:(e,t,r)=>{var A=r(5366),n=r(3948);A({target:"Array",stat:!0,forced:!r(4348)((function(e){Array.from(e)}))},{from:n})},932:(e,t,r)=>{var A=r(5366),n=r(7921).includes,i=r(3455),a=r(1458);A({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},3276:(e,t,r)=>{var A=r(5366),n=r(2116),i=r(7921).indexOf,a=r(1814),o=n([].indexOf),s=!!o&&1/o([1],1,-0)<0;A({target:"Array",proto:!0,forced:s||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?o(this,e,t)||0:i(this,e,t)}})},9024:(e,t,r)=>{var A=r(3637),n=r(1458),i=r(5597),a=r(8301),o=r(1601).f,s=r(656),c=r(9393),g=r(8507),u=r(2444),l="Array Iterator",h=a.set,I=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){h(this,{type:l,target:A(e),index:0,kind:t})}),(function(){var e=I(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!g&&u&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}},3177:(e,t,r)=>{var A=r(5366),n=r(3499);A({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},5550:(e,t,r)=>{var A=r(5366),n=r(5645).map;A({target:"Array",proto:!0,forced:!r(9077)("map")},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},9138:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(7878),a=r(7375),o=r(9573);A({target:"Array",proto:!0,arity:1,forced:r(3455)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=n(this),r=i(t),A=arguments.length;o(r+A);for(var s=0;s<A;s++)t[r]=arguments[s],r++;return a(t,r),r}})},8408:(e,t,r)=>{var A=r(5366),n=r(4734).left,i=r(1814),a=r(6415);A({target:"Array",proto:!0,forced:!r(4529)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return n(this,e,t,t>1?arguments[1]:void 0)}})},6794:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(5448),a=n([].reverse),o=[1,2];A({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},750:(e,t,r)=>{var A=r(5366),n=r(5448),i=r(8413),a=r(2674),o=r(9002),s=r(7878),c=r(3637),g=r(3552),u=r(5811),l=r(9077),h=r(4224),I=l("slice"),f=u("species"),C=Array,B=Math.max;A({target:"Array",proto:!0,forced:!I},{slice:function(e,t){var r,A,u,l=c(this),I=s(l),Q=o(e,I),E=o(void 0===t?I:t,I);if(n(l)&&(r=l.constructor,(i(r)&&(r===C||n(r.prototype))||a(r)&&null===(r=r[f]))&&(r=void 0),r===C||void 0===r))return h(l,Q,E);for(A=new(void 0===r?C:r)(B(E-Q,0)),u=0;Q<E;Q++,u++)Q in l&&g(A,u,l[Q]);return A.length=u,A}})},7710:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(4186),a=r(4165),o=r(7878),s=r(1870),c=r(687),g=r(3455),u=r(5272),l=r(1814),h=r(7085),I=r(5123),f=r(6415),C=r(1911),B=[],Q=n(B.sort),E=n(B.push),d=g((function(){B.sort(void 0)})),y=g((function(){B.sort(null)})),p=l("sort"),v=!g((function(){if(f)return f<70;if(!(h&&h>3)){if(I)return!0;if(C)return C<603;var e,t,r,A,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(A=0;A<47;A++)B.push({k:t+A,v:r})}for(B.sort((function(e,t){return t.v-e.v})),A=0;A<B.length;A++)t=B[A].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return"DGBEFHACIJK"!==n}}));A({target:"Array",proto:!0,forced:d||!y||!p||!v},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(v)return void 0===e?Q(t):Q(t,e);var r,A,n=[],g=o(t);for(A=0;A<g;A++)A in t&&E(n,t[A]);for(u(n,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:c(t)>c(r)?1:-1}}(e)),r=o(n),A=0;A<r;)t[A]=n[A++];for(;A<g;)s(t,A++);return t}})},122:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(9002),a=r(1211),o=r(7878),s=r(7375),c=r(9573),g=r(1453),u=r(3552),l=r(1870),h=r(9077)("splice"),I=Math.max,f=Math.min;A({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var r,A,h,C,B,Q,E=n(this),d=o(E),y=i(e,d),p=arguments.length;for(0===p?r=A=0:1===p?(r=0,A=d-y):(r=p-2,A=f(I(a(t),0),d-y)),c(d+r-A),h=g(E,A),C=0;C<A;C++)(B=y+C)in E&&u(h,C,E[B]);if(h.length=A,r<A){for(C=y;C<d-A;C++)Q=C+r,(B=C+A)in E?E[Q]=E[B]:l(E,Q);for(C=d;C>d-A+r;C--)l(E,C-1)}else if(r>A)for(C=d-A;C>y;C--)Q=C+r-1,(B=C+A-1)in E?E[Q]=E[B]:l(E,Q);for(C=0;C<r;C++)E[C+y]=arguments[C+2];return s(E,d-A+r),h}})},9722:(e,t,r)=>{r(1458)("flat")},8937:(e,t,r)=>{var A=r(5366),n=r(4165),i=r(7878),a=r(7375),o=r(1870),s=r(9573);A({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=n(this),r=i(t),A=arguments.length;if(A){s(r+A);for(var c=r;c--;){var g=c+A;c in t?t[g]=t[c]:o(t,g)}for(var u=0;u<A;u++)t[u]=arguments[u]}return a(t,r+A)}})},6851:(e,t,r)=>{var A=r(5366),n=r(3455),i=r(4165),a=r(8921);A({target:"Date",proto:!0,arity:1,forced:n((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),r=a(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},7316:(e,t,r)=>{var A=r(9649),n=r(8552),i=r(952),a=r(5811)("toPrimitive"),o=Date.prototype;A(o,a)||n(o,a,i)},184:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3881),a=r(9257),o="WebAssembly",s=n[o],c=7!==new Error("e",{cause:7}).cause,g=function(e,t){var r={};r[e]=a(e,t,c),A({global:!0,constructor:!0,arity:1,forced:c},r)},u=function(e,t){if(s&&s[e]){var r={};r[e]=a(o+"."+e,t,c),A({target:o,stat:!0,constructor:!0,arity:1,forced:c},r)}};g("Error",(function(e){return function(t){return i(e,this,arguments)}})),g("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),g("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),g("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),g("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),g("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),g("URIError",(function(e){return function(t){return i(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},8169:(e,t,r)=>{var A=r(5366),n=r(4032);A({global:!0,forced:n.globalThis!==n},{globalThis:n})},9750:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(3881),a=r(3453),o=r(2608),s=r(3455),c=r(3749),g=r(2277),u=r(4224),l=r(213),h=r(6943),I=String,f=n("JSON","stringify"),C=o(/./.exec),B=o("".charAt),Q=o("".charCodeAt),E=o("".replace),d=o(1..toString),y=/[\\uD800-\\uDFFF]/g,p=/^[\\uD800-\\uDBFF]$/,v=/^[\\uDC00-\\uDFFF]$/,m=!h||s((function(){var e=n("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))})),w=s((function(){return\'"\\\\udf06\\\\ud834"\'!==f("\\udf06\\ud834")||\'"\\\\udead"\'!==f("\\udead")})),b=function(e,t){var r=u(arguments),A=l(t);if(c(A)||void 0!==e&&!g(e))return r[1]=function(e,t){if(c(A)&&(t=a(A,this,I(e),t)),!g(t))return t},i(f,null,r)},k=function(e,t,r){var A=B(r,t-1),n=B(r,t+1);return C(p,e)&&!C(v,n)||C(v,e)&&!C(p,A)?"\\\\u"+d(Q(e,0),16):e};f&&A({target:"JSON",stat:!0,arity:3,forced:m||w},{stringify:function(e,t,r){var A=u(arguments),n=i(m?b:f,null,A);return w&&"string"==typeof n?E(n,y,k):n}})},7531:(e,t,r)=>{var A=r(4032);r(6911)(A.JSON,"JSON",!0)},6539:(e,t,r)=>{r(9556)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(2042))},1425:(e,t,r)=>{r(6539)},3821:(e,t,r)=>{var A=r(5366),n=Math.hypot,i=Math.abs,a=Math.sqrt;A({target:"Math",stat:!0,arity:2,forced:!!n&&n(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,A,n=0,o=0,s=arguments.length,c=0;o<s;)c<(r=i(arguments[o++]))?(n=n*(A=c/r)*A+1,c=r):n+=r>0?(A=r/c)*A:r;return c===1/0?1/0:c*a(n)}})},1999:(e,t,r)=>{r(6911)(Math,"Math",!0)},8674:(e,t,r)=>{var A=r(5366),n=r(8885).entries;A({target:"Object",stat:!0},{entries:function(e){return n(e)}})},1309:(e,t,r)=>{var A=r(5366),n=r(6943),i=r(3455),a=r(6005),o=r(4165);A({target:"Object",stat:!0,forced:!n||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(o(e)):[]}})},3379:(e,t,r)=>{var A=r(3724),n=r(8552),i=r(3003);A||n(Object.prototype,"toString",i,{unsafe:!0})},482:(e,t,r)=>{var A=r(5366),n=r(8885).values;A({target:"Object",stat:!0},{values:function(e){return n(e)}})},5204:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(9371),o=r(6703),s=r(1804);A({target:"Promise",stat:!0,forced:r(2041)},{allSettled:function(e){var t=this,r=a.f(t),A=r.resolve,c=r.reject,g=o((function(){var r=i(t.resolve),a=[],o=0,c=1;s(e,(function(e){var i=o++,s=!1;c++,n(r,t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--c||A(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--c||A(a))}))})),--c||A(a)}));return g.error&&c(g.value),r.promise}})},6195:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(9371),o=r(6703),s=r(1804);A({target:"Promise",stat:!0,forced:r(2041)},{all:function(e){var t=this,r=a.f(t),A=r.resolve,c=r.reject,g=o((function(){var r=i(t.resolve),a=[],o=0,g=1;s(e,(function(e){var i=o++,s=!1;g++,n(r,t,e).then((function(e){s||(s=!0,a[i]=e,--g||A(a))}),c)})),--g||A(a)}));return g.error&&c(g.value),r.promise}})},1459:(e,t,r)=>{var A=r(5366),n=r(8507),i=r(9492).CONSTRUCTOR,a=r(5318),o=r(8711),s=r(3749),c=r(8552),g=a&&a.prototype;if(A({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!n&&s(a)){var u=o("Promise").prototype.catch;g.catch!==u&&c(g,"catch",u,{unsafe:!0})}},9236:(e,t,r)=>{var A,n,i,a=r(5366),o=r(8507),s=r(4529),c=r(4032),g=r(3453),u=r(8552),l=r(9415),h=r(6911),I=r(5409),f=r(4186),C=r(3749),B=r(2674),Q=r(3399),E=r(1365),d=r(1369).set,y=r(755),p=r(4885),v=r(6703),m=r(3529),w=r(8301),b=r(5318),k=r(9492),D=r(9371),S="Promise",F=k.CONSTRUCTOR,x=k.REJECTION_EVENT,R=k.SUBCLASSING,G=w.getterFor(S),N=w.set,L=b&&b.prototype,U=b,M=L,J=c.TypeError,H=c.document,Y=c.process,P=D.f,O=P,K=!!(H&&H.createEvent&&c.dispatchEvent),T="unhandledrejection",q=function(e){var t;return!(!B(e)||!C(t=e.then))&&t},j=function(e,t){var r,A,n,i=t.value,a=1===t.state,o=a?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{o?(a||(2===t.rejection&&V(t),t.rejection=1),!0===o?r=i:(u&&u.enter(),r=o(i),u&&(u.exit(),n=!0)),r===e.promise?c(new J("Promise-chain cycle")):(A=q(r))?g(A,r,s,c):s(r)):c(i)}catch(e){u&&!n&&u.exit(),c(e)}},W=function(e,t){e.notified||(e.notified=!0,y((function(){for(var r,A=e.reactions;r=A.get();)j(r,e);e.notified=!1,t&&!e.rejection&&_(e)})))},Z=function(e,t,r){var A,n;K?((A=H.createEvent("Event")).promise=t,A.reason=r,A.initEvent(e,!1,!0),c.dispatchEvent(A)):A={promise:t,reason:r},!x&&(n=c["on"+e])?n(A):e===T&&p("Unhandled promise rejection",r)},_=function(e){g(d,c,(function(){var t,r=e.facade,A=e.value;if(X(e)&&(t=v((function(){s?Y.emit("unhandledRejection",A,r):Z(T,r,A)})),e.rejection=s||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},V=function(e){g(d,c,(function(){var t=e.facade;s?Y.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},z=function(e,t,r){return function(A){e(t,A,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new J("Promise can\'t be resolved itself");var A=q(t);A?y((function(){var r={done:!1};try{g(A,t,z(ee,r,e),z($,r,e))}catch(t){$(r,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){$({done:!1},t,e)}}};if(F&&(M=(U=function(e){Q(this,M),f(e),g(A,this);var t=G(this);try{e(z(ee,t),z($,t))}catch(e){$(t,e)}}).prototype,(A=function(e){N(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new m,rejection:!1,state:0,value:null})}).prototype=u(M,"then",(function(e,t){var r=G(this),A=P(E(this,U));return r.parent=!0,A.ok=!C(e)||e,A.fail=C(t)&&t,A.domain=s?Y.domain:void 0,0===r.state?r.reactions.add(A):y((function(){j(A,r)})),A.promise})),n=function(){var e=new A,t=G(e);this.promise=e,this.resolve=z(ee,t),this.reject=z($,t)},D.f=P=function(e){return e===U||void 0===e?new n(e):O(e)},!o&&C(b)&&L!==Object.prototype)){i=L.then,R||u(L,"then",(function(e,t){var r=this;return new U((function(e,t){g(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}l&&l(L,M)}a({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:U}),h(U,S,!1,!0),I(S)},2431:(e,t,r)=>{var A=r(5366),n=r(8507),i=r(5318),a=r(3455),o=r(8711),s=r(3749),c=r(1365),g=r(1774),u=r(8552),l=i&&i.prototype;if(A({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){l.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,o("Promise")),r=s(e);return this.then(r?function(r){return g(t,e()).then((function(){return r}))}:e,r?function(r){return g(t,e()).then((function(){throw r}))}:e)}}),!n&&s(i)){var h=o("Promise").prototype.finally;l.finally!==h&&u(l,"finally",h,{unsafe:!0})}},1234:(e,t,r)=>{r(9236),r(6195),r(1459),r(5167),r(5257),r(1128)},5167:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(9371),o=r(6703),s=r(1804);A({target:"Promise",stat:!0,forced:r(2041)},{race:function(e){var t=this,r=a.f(t),A=r.reject,c=o((function(){var a=i(t.resolve);s(e,(function(e){n(a,t,e).then(r.resolve,A)}))}));return c.error&&A(c.value),r.promise}})},5257:(e,t,r)=>{var A=r(5366),n=r(9371);A({target:"Promise",stat:!0,forced:r(9492).CONSTRUCTOR},{reject:function(e){var t=n.f(this);return(0,t.reject)(e),t.promise}})},1128:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(8507),a=r(5318),o=r(9492).CONSTRUCTOR,s=r(1774),c=n("Promise"),g=i&&!o;A({target:"Promise",stat:!0,forced:i||o},{resolve:function(e){return s(g&&this===c?a:this,e)}})},9732:(e,t,r)=>{var A=r(5366),n=r(9371);A({target:"Promise",stat:!0},{withResolvers:function(){var e=n.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},489:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(3881),a=r(2230),o=r(9052),s=r(7447),c=r(2674),g=r(5304),u=r(3455),l=n("Reflect","construct"),h=Object.prototype,I=[].push,f=u((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),C=!u((function(){l((function(){}))})),B=f||C;A({target:"Reflect",stat:!0,forced:B,sham:B},{construct:function(e,t){o(e),s(t);var r=arguments.length<3?e:o(arguments[2]);if(C&&!f)return l(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var A=[null];return i(I,A,t),new(i(a,e,A))}var n=r.prototype,u=g(c(n)?n:h),B=i(e,u,t);return c(B)?B:u}})},7288:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(2674),a=r(7447),o=r(3007),s=r(1139),c=r(2611);A({target:"Reflect",stat:!0},{get:function e(t,r){var A,g,u=arguments.length<3?t:arguments[2];return a(t)===u?t[r]:(A=s.f(t,r))?o(A)?A.value:void 0===A.get?void 0:n(A.get,u):i(g=c(t))?e(g,r,u):void 0}})},176:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(6911);A({global:!0},{Reflect:{}}),i(n.Reflect,"Reflect",!0)},4592:(e,t,r)=>{var A=r(2444),n=r(4032),i=r(2608),a=r(5868),o=r(3951),s=r(139),c=r(5304),g=r(3408).f,u=r(6921),l=r(6484),h=r(687),I=r(4554),f=r(1837),C=r(2848),B=r(8552),Q=r(3455),E=r(9649),d=r(8301).enforce,y=r(5409),p=r(5811),v=r(3651),m=r(9502),w=p("match"),b=n.RegExp,k=b.prototype,D=n.SyntaxError,S=i(k.exec),F=i("".charAt),x=i("".replace),R=i("".indexOf),G=i("".slice),N=/^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/,L=/a/g,U=/a/g,M=new b(L)!==L,J=f.MISSED_STICKY,H=f.UNSUPPORTED_Y;if(a("RegExp",A&&(!M||J||v||m||Q((function(){return U[w]=!1,b(L)!==L||b(U)===U||"/a/i"!==String(b(L,"i"))}))))){for(var Y=function(e,t){var r,A,n,i,a,g,f=u(k,this),C=l(e),B=void 0===t,Q=[],y=e;if(!f&&C&&B&&e.constructor===Y)return e;if((C||u(k,e))&&(e=e.source,B&&(t=I(y))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),y=e,v&&"dotAll"in L&&(A=!!t&&R(t,"s")>-1)&&(t=x(t,/s/g,"")),r=t,J&&"sticky"in L&&(n=!!t&&R(t,"y")>-1)&&H&&(t=x(t,/y/g,"")),m&&(i=function(e){for(var t,r=e.length,A=0,n="",i=[],a=c(null),o=!1,s=!1,g=0,u="";A<=r;A++){if("\\\\"===(t=F(e,A)))t+=F(e,++A);else if("]"===t)o=!1;else if(!o)switch(!0){case"["===t:o=!0;break;case"("===t:if(n+=t,"?:"===G(e,A+1,A+3))continue;S(N,G(e,A+1))&&(A+=2,s=!0),g++;continue;case">"===t&&s:if(""===u||E(a,u))throw new D("Invalid capture group name");a[u]=!0,i[i.length]=[u,g],s=!1,u="";continue}s?u+=t:n+=t}return[n,i]}(e),e=i[0],Q=i[1]),a=o(b(e,t),f?this:k,Y),(A||n||Q.length)&&(g=d(a),A&&(g.dotAll=!0,g.raw=Y(function(e){for(var t,r=e.length,A=0,n="",i=!1;A<=r;A++)"\\\\"!==(t=F(e,A))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),n+=t):n+="[\\\\s\\\\S]":n+=t+F(e,++A);return n}(e),r)),n&&(g.sticky=!0),Q.length&&(g.groups=Q)),e!==y)try{s(a,"source",""===y?"(?:)":y)}catch(e){}return a},P=g(b),O=0;P.length>O;)C(Y,b,P[O++]);k.constructor=Y,Y.prototype=k,B(n,"RegExp",Y,{constructor:!0})}y("RegExp")},8345:(e,t,r)=>{var A=r(2444),n=r(3651),i=r(9872),a=r(8986),o=r(8301).get,s=RegExp.prototype,c=TypeError;A&&n&&a(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===i(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},2823:(e,t,r)=>{var A=r(5366),n=r(9867);A({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7879:(e,t,r)=>{var A=r(4032),n=r(2444),i=r(8986),a=r(747),o=r(3455),s=A.RegExp,c=s.prototype;n&&o((function(){var e=!0;try{s(".","d")}catch(t){e=!1}var t={},r="",A=e?"dgimsy":"gimsy",n=function(e,A){Object.defineProperty(t,e,{get:function(){return r+=A,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)n(a,i[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==A||r!==A}))&&i(c,"flags",{configurable:!0,get:a})},2865:(e,t,r)=>{var A=r(2444),n=r(1837).MISSED_STICKY,i=r(9872),a=r(8986),o=r(8301).get,s=RegExp.prototype,c=TypeError;A&&n&&a(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===i(this))return!!o(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},5594:(e,t,r)=>{r(2823);var A,n,i=r(5366),a=r(3453),o=r(3749),s=r(7447),c=r(687),g=(A=!1,(n=/[ac]/).exec=function(){return A=!0,/./.exec.apply(this,arguments)},!0===n.test("abc")&&A),u=/./.test;i({target:"RegExp",proto:!0,forced:!g},{test:function(e){var t=s(this),r=c(e),A=t.exec;if(!o(A))return a(u,t,r);var n=a(A,t,r);return null!==n&&(s(n),!0)}})},8397:(e,t,r)=>{var A=r(2542).PROPER,n=r(8552),i=r(7447),a=r(687),o=r(3455),s=r(4554),c="toString",g=RegExp.prototype,u=g[c],l=o((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),h=A&&u.name!==c;(l||h)&&n(g,c,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(s(e))}),{unsafe:!0})},4645:(e,t,r)=>{r(9556)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(2042))},5130:(e,t,r)=>{var A=r(5366),n=r(4656);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("difference")},{difference:n})},5636:(e,t,r)=>{var A=r(5366),n=r(3455),i=r(2446);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("intersection")||n((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},8509:(e,t,r)=>{var A=r(5366),n=r(4545);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("isDisjointFrom")},{isDisjointFrom:n})},7332:(e,t,r)=>{var A=r(5366),n=r(7918);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSubsetOf")},{isSubsetOf:n})},6555:(e,t,r)=>{var A=r(5366),n=r(6111);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSupersetOf")},{isSupersetOf:n})},9255:(e,t,r)=>{r(4645)},3296:(e,t,r)=>{var A=r(5366),n=r(4498);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("symmetricDifference")},{symmetricDifference:n})},4594:(e,t,r)=>{var A=r(5366),n=r(9500);A({target:"Set",proto:!0,real:!0,forced:!r(1716)("union")},{union:n})},8653:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(7222),a=r(1211),o=r(687),s=r(3455),c=n("".charAt);A({target:"String",proto:!0,forced:s((function(){return"\\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=o(i(this)),r=t.length,A=a(e),n=A>=0?A:r+A;return n<0||n>=r?void 0:c(t,n)}})},9657:(e,t,r)=>{var A,n=r(5366),i=r(2116),a=r(1139).f,o=r(5806),s=r(687),c=r(3631),g=r(7222),u=r(860),l=r(8507),h=i("".slice),I=Math.min,f=u("endsWith");n({target:"String",proto:!0,forced:!(!l&&!f&&(A=a(String.prototype,"endsWith"),A&&!A.writable)||f)},{endsWith:function(e){var t=s(g(this));c(e);var r=arguments.length>1?arguments[1]:void 0,A=t.length,n=void 0===r?A:I(o(r),A),i=s(e);return h(t,n-i.length,n)===i}})},2217:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(9002),a=RangeError,o=String.fromCharCode,s=String.fromCodePoint,c=n([].join);A({target:"String",stat:!0,arity:1,forced:!!s&&1!==s.length},{fromCodePoint:function(e){for(var t,r=[],A=arguments.length,n=0;A>n;){if(t=+arguments[n++],i(t,1114111)!==t)throw new a(t+" is not a valid code point");r[n]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return c(r,"")}})},2467:(e,t,r)=>{var A=r(5366),n=r(2608),i=r(3631),a=r(7222),o=r(687),s=r(860),c=n("".indexOf);A({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~c(o(a(this)),o(i(e)),arguments.length>1?arguments[1]:void 0)}})},7460:(e,t,r)=>{var A=r(6903).charAt,n=r(687),i=r(8301),a=r(656),o=r(9393),s="String Iterator",c=i.set,g=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:n(e),index:0})}),(function(){var e,t=g(this),r=t.string,n=t.index;return n>=r.length?o(void 0,!0):(e=A(r,n),t.index+=e.length,o(e,!1))}))},1281:(e,t,r)=>{var A=r(3453),n=r(4364),i=r(7447),a=r(6021),o=r(5806),s=r(687),c=r(7222),g=r(8622),u=r(8149),l=r(4410);n("match",(function(e,t,r){return[function(t){var r=c(this),n=a(t)?void 0:g(t,e);return n?A(n,t,r):new RegExp(t)[e](s(r))},function(e){var A=i(this),n=s(e),a=r(t,A,n);if(a.done)return a.value;if(!A.global)return l(A,n);var c=A.unicode;A.lastIndex=0;for(var g,h=[],I=0;null!==(g=l(A,n));){var f=s(g[0]);h[I]=f,""===f&&(A.lastIndex=u(n,o(A.lastIndex),c)),I++}return 0===I?null:h}]}))},9484:(e,t,r)=>{var A=r(5366),n=r(6437).start;A({target:"String",proto:!0,forced:r(4903)},{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},4413:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(2608),a=r(7222),o=r(3749),s=r(6021),c=r(6484),g=r(687),u=r(8622),l=r(4554),h=r(3966),I=r(5811),f=r(8507),C=I("replace"),B=TypeError,Q=i("".indexOf),E=i("".replace),d=i("".slice),y=Math.max;A({target:"String",proto:!0},{replaceAll:function(e,t){var r,A,i,I,p,v,m,w,b,k,D=a(this),S=0,F="";if(!s(e)){if((r=c(e))&&(A=g(a(l(e))),!~Q(A,"g")))throw new B("`.replaceAll` does not allow non-global regexes");if(i=u(e,C))return n(i,e,D,t);if(f&&r)return E(g(D),e,t)}for(I=g(D),p=g(e),(v=o(t))||(t=g(t)),m=p.length,w=y(1,m),b=Q(I,p);-1!==b;)k=v?g(t(p,b,I)):h(p,I,b,[],void 0,t),F+=d(I,S,b)+k,S=b+m,b=b+w>I.length?-1:Q(I,p,b+w);return S<I.length&&(F+=d(I,S)),F}})},4672:(e,t,r)=>{var A=r(3881),n=r(3453),i=r(2608),a=r(4364),o=r(3455),s=r(7447),c=r(3749),g=r(6021),u=r(1211),l=r(5806),h=r(687),I=r(7222),f=r(8149),C=r(8622),B=r(3966),Q=r(4410),E=r(5811)("replace"),d=Math.max,y=Math.min,p=i([].concat),v=i([].push),m=i("".indexOf),w=i("".slice),b="$0"==="a".replace(/./,"$0"),k=!!/./[E]&&""===/./[E]("a","$0");a("replace",(function(e,t,r){var i=k?"$":"$0";return[function(e,r){var A=I(this),i=g(e)?void 0:C(e,E);return i?n(i,e,A,r):n(t,h(A),e,r)},function(e,n){var a=s(this),o=h(e);if("string"==typeof n&&-1===m(n,i)&&-1===m(n,"$<")){var g=r(t,a,o,n);if(g.done)return g.value}var I=c(n);I||(n=h(n));var C,E=a.global;E&&(C=a.unicode,a.lastIndex=0);for(var b,k=[];null!==(b=Q(a,o))&&(v(k,b),E);)""===h(b[0])&&(a.lastIndex=f(o,l(a.lastIndex),C));for(var D,S="",F=0,x=0;x<k.length;x++){for(var R,G=h((b=k[x])[0]),N=d(y(u(b.index),o.length),0),L=[],U=1;U<b.length;U++)v(L,void 0===(D=b[U])?D:String(D));var M=b.groups;if(I){var J=p([G],L,N,o);void 0!==M&&v(J,M),R=h(A(n,void 0,J))}else R=B(G,o,N,L,M,n);N>=F&&(S+=w(o,F,N)+R,F=N+G.length)}return S+w(o,F)}]}),!!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!b||k)},4072:(e,t,r)=>{var A=r(3453),n=r(2608),i=r(4364),a=r(7447),o=r(6021),s=r(7222),c=r(1365),g=r(8149),u=r(5806),l=r(687),h=r(8622),I=r(4410),f=r(1837),C=r(3455),B=f.UNSUPPORTED_Y,Q=Math.min,E=n([].push),d=n("".slice),y=!C((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),p="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(e,t,r){var n="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:A(t,this,e,r)}:t;return[function(t,r){var i=s(this),a=o(t)?void 0:h(t,e);return a?A(a,t,i,r):A(n,l(i),t,r)},function(e,A){var i=a(this),o=l(e);if(!p){var s=r(n,i,o,A,n!==t);if(s.done)return s.value}var h=c(i,RegExp),f=i.unicode,C=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(B?"g":"y"),y=new h(B?"^(?:"+i.source+")":i,C),v=void 0===A?4294967295:A>>>0;if(0===v)return[];if(0===o.length)return null===I(y,o)?[o]:[];for(var m=0,w=0,b=[];w<o.length;){y.lastIndex=B?0:w;var k,D=I(y,B?d(o,w):o);if(null===D||(k=Q(u(y.lastIndex+(B?w:0)),o.length))===m)w=g(o,w,f);else{if(E(b,d(o,m,w)),b.length===v)return b;for(var S=1;S<=D.length-1;S++)if(E(b,D[S]),b.length===v)return b;w=m=k}}return E(b,d(o,m)),b}]}),p||!y,B)},9264:(e,t,r)=>{var A,n=r(5366),i=r(2116),a=r(1139).f,o=r(5806),s=r(687),c=r(3631),g=r(7222),u=r(860),l=r(8507),h=i("".slice),I=Math.min,f=u("startsWith");n({target:"String",proto:!0,forced:!(!l&&!f&&(A=a(String.prototype,"startsWith"),A&&!A.writable)||f)},{startsWith:function(e){var t=s(g(this));c(e);var r=o(I(arguments.length>1?arguments[1]:void 0,t.length)),A=s(e);return h(t,r,r+A.length)===A}})},98:(e,t,r)=>{r(3185);var A=r(5366),n=r(2882);A({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==n},{trimEnd:n})},3185:(e,t,r)=>{var A=r(5366),n=r(2882);A({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==n},{trimRight:n})},9210:(e,t,r)=>{var A=r(5366),n=r(9418).trim;A({target:"String",proto:!0,forced:r(3794)("trim")},{trim:function(){return n(this)}})},4172:(e,t,r)=>{r(5343)("asyncIterator")},2873:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3453),a=r(2608),o=r(8507),s=r(2444),c=r(6943),g=r(3455),u=r(9649),l=r(6921),h=r(7447),I=r(3637),f=r(6201),C=r(687),B=r(4004),Q=r(5304),E=r(496),d=r(3408),y=r(6442),p=r(6005),v=r(1139),m=r(1601),w=r(9217),b=r(9221),k=r(8552),D=r(8986),S=r(4593),F=r(2343),x=r(2645),R=r(5936),G=r(5811),N=r(4559),L=r(5343),U=r(3042),M=r(6911),J=r(8301),H=r(5645).forEach,Y=F("hidden"),P="Symbol",O="prototype",K=J.set,T=J.getterFor(P),q=Object[O],j=n.Symbol,W=j&&j[O],Z=n.RangeError,_=n.TypeError,X=n.QObject,V=v.f,z=m.f,$=y.f,ee=b.f,te=a([].push),re=S("symbols"),Ae=S("op-symbols"),ne=S("wks"),ie=!X||!X[O]||!X[O].findChild,ae=function(e,t,r){var A=V(q,t);A&&delete q[t],z(e,t,r),A&&e!==q&&z(q,t,A)},oe=s&&g((function(){return 7!==Q(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?ae:z,se=function(e,t){var r=re[e]=Q(W);return K(r,{type:P,tag:e,description:t}),s||(r.description=t),r},ce=function(e,t,r){e===q&&ce(Ae,t,r),h(e);var A=f(t);return h(r),u(re,A)?(r.enumerable?(u(e,Y)&&e[Y][A]&&(e[Y][A]=!1),r=Q(r,{enumerable:B(0,!1)})):(u(e,Y)||z(e,Y,B(1,Q(null))),e[Y][A]=!0),oe(e,A,r)):z(e,A,r)},ge=function(e,t){h(e);var r=I(t),A=E(r).concat(Ie(r));return H(A,(function(t){s&&!i(ue,r,t)||ce(e,t,r[t])})),e},ue=function(e){var t=f(e),r=i(ee,this,t);return!(this===q&&u(re,t)&&!u(Ae,t))&&(!(r||!u(this,t)||!u(re,t)||u(this,Y)&&this[Y][t])||r)},le=function(e,t){var r=I(e),A=f(t);if(r!==q||!u(re,A)||u(Ae,A)){var n=V(r,A);return!n||!u(re,A)||u(r,Y)&&r[Y][A]||(n.enumerable=!0),n}},he=function(e){var t=$(I(e)),r=[];return H(t,(function(e){u(re,e)||u(x,e)||te(r,e)})),r},Ie=function(e){var t=e===q,r=$(t?Ae:I(e)),A=[];return H(r,(function(e){!u(re,e)||t&&!u(q,e)||te(A,re[e])})),A};c||(k(W=(j=function(){if(l(W,this))throw new _("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?C(arguments[0]):void 0,t=R(e),r=function(e){var A=void 0===this?n:this;A===q&&i(r,Ae,e),u(A,Y)&&u(A[Y],t)&&(A[Y][t]=!1);var a=B(1,e);try{oe(A,t,a)}catch(e){if(!(e instanceof Z))throw e;ae(A,t,a)}};return s&&ie&&oe(q,t,{configurable:!0,set:r}),se(t,e)})[O],"toString",(function(){return T(this).tag})),k(j,"withoutSetter",(function(e){return se(R(e),e)})),b.f=ue,m.f=ce,w.f=ge,v.f=le,d.f=y.f=he,p.f=Ie,N.f=function(e){return se(G(e),e)},s&&(D(W,"description",{configurable:!0,get:function(){return T(this).description}}),o||k(q,"propertyIsEnumerable",ue,{unsafe:!0}))),A({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:j}),H(E(ne),(function(e){L(e)})),A({target:P,stat:!0,forced:!c},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),A({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?Q(e):ge(Q(e),t)},defineProperty:ce,defineProperties:ge,getOwnPropertyDescriptor:le}),A({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he}),U(),M(j,P),x[Y]=!0},4551:(e,t,r)=>{var A=r(5366),n=r(2444),i=r(4032),a=r(2608),o=r(9649),s=r(3749),c=r(6921),g=r(687),u=r(8986),l=r(2924),h=i.Symbol,I=h&&h.prototype;if(n&&s(h)&&(!("description"in I)||void 0!==h().description)){var f={},C=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:g(arguments[0]),t=c(I,this)?new h(e):void 0===e?h():h(e);return""===e&&(f[t]=!0),t};l(C,h),C.prototype=I,I.constructor=C;var B="Symbol(description detection)"===String(h("description detection")),Q=a(I.valueOf),E=a(I.toString),d=/^Symbol\\((.*)\\)[^)]+$/,y=a("".replace),p=a("".slice);u(I,"description",{configurable:!0,get:function(){var e=Q(this);if(o(f,e))return"";var t=E(e),r=B?p(t,7,-1):y(t,d,"$1");return""===r?void 0:r}}),A({global:!0,constructor:!0,forced:!0},{Symbol:C})}},4182:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(9649),a=r(687),o=r(4593),s=r(8592),c=o("string-to-symbol-registry"),g=o("symbol-to-string-registry");A({target:"Symbol",stat:!0,forced:!s},{for:function(e){var t=a(e);if(i(c,t))return c[t];var r=n("Symbol")(t);return c[t]=r,g[r]=t,r}})},7651:(e,t,r)=>{r(2873),r(4182),r(7876),r(9750),r(1309)},7876:(e,t,r)=>{var A=r(5366),n=r(9649),i=r(2277),a=r(8055),o=r(4593),s=r(8592),c=o("symbol-to-string-registry");A({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(n(c,e))return c[e]}})},5268:(e,t,r)=>{var A=r(5343),n=r(3042);A("toPrimitive"),n()},5997:(e,t,r)=>{var A=r(8711),n=r(5343),i=r(6911);n("toStringTag"),i(A("Symbol"),"Symbol")},3740:(e,t,r)=>{var A=r(4356),n=r(7878),i=r(1211),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("at",(function(e){var t=a(this),r=n(t),A=i(e),o=A>=0?A:r+A;return o<0||o>=r?void 0:t[o]}))},6542:(e,t,r)=>{var A=r(2608),n=r(4356),i=A(r(6677)),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},5738:(e,t,r)=>{var A=r(4356),n=r(5645).every,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("every",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2900:(e,t,r)=>{var A=r(4356),n=r(9557),i=r(1198),a=r(1179),o=r(3453),s=r(2608),c=r(3455),g=A.aTypedArray,u=A.exportTypedArrayMethod,l=s("".slice);u("fill",(function(e){var t=arguments.length;g(this);var r="Big"===l(a(this),0,3)?i(e):+e;return o(n,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},2051:(e,t,r)=>{var A=r(4356),n=r(5645).filter,i=r(85),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("filter",(function(e){var t=n(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},4211:(e,t,r)=>{var A=r(4356),n=r(5645).findIndex,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("findIndex",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},5294:(e,t,r)=>{var A=r(4356),n=r(767).findLastIndex,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("findLastIndex",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},9791:(e,t,r)=>{var A=r(4356),n=r(767).findLast,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("findLast",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3198:(e,t,r)=>{var A=r(4356),n=r(5645).find,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("find",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},4306:(e,t,r)=>{r(8975)("Float32",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},6473:(e,t,r)=>{r(8975)("Float64",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},1526:(e,t,r)=>{var A=r(4356),n=r(5645).forEach,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("forEach",(function(e){n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2569:(e,t,r)=>{var A=r(949);(0,r(4356).exportTypedArrayStaticMethod)("from",r(2291),A)},6032:(e,t,r)=>{var A=r(4356),n=r(7921).includes,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("includes",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3659:(e,t,r)=>{var A=r(4356),n=r(7921).indexOf,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("indexOf",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3195:(e,t,r)=>{r(8975)("Int16",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},1237:(e,t,r)=>{r(8975)("Int32",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},4834:(e,t,r)=>{r(8975)("Int8",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},8551:(e,t,r)=>{var A=r(4032),n=r(3455),i=r(2608),a=r(4356),o=r(9024),s=r(5811)("iterator"),c=A.Uint8Array,g=i(o.values),u=i(o.keys),l=i(o.entries),h=a.aTypedArray,I=a.exportTypedArrayMethod,f=c&&c.prototype,C=!n((function(){f[s].call([1])})),B=!!f&&f.values&&f[s]===f.values&&"values"===f.values.name,Q=function(){return g(h(this))};I("entries",(function(){return l(h(this))}),C),I("keys",(function(){return u(h(this))}),C),I("values",Q,C||!B,{name:"values"}),I(s,Q,C||!B,{name:"values"})},8553:(e,t,r)=>{var A=r(4356),n=r(2608),i=A.aTypedArray,a=A.exportTypedArrayMethod,o=n([].join);a("join",(function(e){return o(i(this),e)}))},7612:(e,t,r)=>{var A=r(4356),n=r(3881),i=r(3499),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return n(i,a(this),t>1?[e,arguments[1]]:[e])}))},8579:(e,t,r)=>{var A=r(4356),n=r(5645).map,i=r(580),a=A.aTypedArray;(0,A.exportTypedArrayMethod)("map",(function(e){return n(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},7576:(e,t,r)=>{var A=r(4356),n=r(4734).right,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return n(i(this),e,t,t>1?arguments[1]:void 0)}))},7719:(e,t,r)=>{var A=r(4356),n=r(4734).left,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return n(i(this),e,t,t>1?arguments[1]:void 0)}))},2891:(e,t,r)=>{var A=r(4356),n=A.aTypedArray,i=A.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,r=n(t).length,A=a(r/2),i=0;i<A;)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},2605:(e,t,r)=>{var A=r(4032),n=r(3453),i=r(4356),a=r(7878),o=r(8402),s=r(4165),c=r(3455),g=A.RangeError,u=A.Int8Array,l=u&&u.prototype,h=l&&l.set,I=i.aTypedArray,f=i.exportTypedArrayMethod,C=!c((function(){var e=new Uint8ClampedArray(2);return n(h,e,{length:1,0:3},1),3!==e[1]})),B=C&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new u(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));f("set",(function(e){I(this);var t=o(arguments.length>1?arguments[1]:void 0,1),r=s(e);if(C)return n(h,this,r,t);var A=this.length,i=a(r),c=0;if(i+t>A)throw new g("Wrong length");for(;c<i;)this[t+c]=r[c++]}),!C||B)},4863:(e,t,r)=>{var A=r(4356),n=r(580),i=r(3455),a=r(4224),o=A.aTypedArray;(0,A.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(o(this),e,t),A=n(this),i=0,s=r.length,c=new A(s);s>i;)c[i]=r[i++];return c}),i((function(){new Int8Array(1).slice()})))},9637:(e,t,r)=>{var A=r(4356),n=r(5645).some,i=A.aTypedArray;(0,A.exportTypedArrayMethod)("some",(function(e){return n(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2709:(e,t,r)=>{var A=r(4032),n=r(2116),i=r(3455),a=r(4186),o=r(5272),s=r(4356),c=r(7085),g=r(5123),u=r(6415),l=r(1911),h=s.aTypedArray,I=s.exportTypedArrayMethod,f=A.Uint16Array,C=f&&n(f.prototype.sort),B=!(!C||i((function(){C(new f(2),null)}))&&i((function(){C(new f(2),{})}))),Q=!!C&&!i((function(){if(u)return u<74;if(c)return c<67;if(g)return!0;if(l)return l<602;var e,t,r=new f(516),A=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,A[e]=e-2*t+3;for(C(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==A[e])return!0}));I("sort",(function(e){return void 0!==e&&a(e),Q?C(this,e):o(h(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Q||B)},8941:(e,t,r)=>{var A=r(4032),n=r(3881),i=r(4356),a=r(3455),o=r(4224),s=A.Int8Array,c=i.aTypedArray,g=i.exportTypedArrayMethod,u=[].toLocaleString,l=!!s&&a((function(){u.call(new s(1))}));g("toLocaleString",(function(){return n(u,l?o(c(this)):c(this),o(arguments))}),a((function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])})))},1579:(e,t,r)=>{var A=r(6444),n=r(4356),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=n.getTypedArrayConstructor;a("toReversed",(function(){return A(i(this),o(this))}))},6236:(e,t,r)=>{var A=r(4356),n=r(2608),i=r(4186),a=r(7434),o=A.aTypedArray,s=A.getTypedArrayConstructor,c=A.exportTypedArrayMethod,g=n(A.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&i(e);var t=o(this),r=a(s(t),t);return g(r,e)}))},7716:(e,t,r)=>{var A=r(4356).exportTypedArrayMethod,n=r(3455),i=r(4032),a=r(2608),o=i.Uint8Array,s=o&&o.prototype||{},c=[].toString,g=a([].join);n((function(){c.call({})}))&&(c=function(){return g(this)});var u=s.toString!==c;A("toString",c,u)},3034:(e,t,r)=>{r(8975)("Uint16",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},2044:(e,t,r)=>{r(8975)("Uint32",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},7329:(e,t,r)=>{r(8975)("Uint8",(function(e){return function(t,r,A){return e(this,t,r,A)}}))},4262:(e,t,r)=>{r(8975)("Uint8",(function(e){return function(t,r,A){return e(this,t,r,A)}}),!0)},1913:(e,t,r)=>{var A=r(920),n=r(4356),i=r(5415),a=r(1211),o=r(1198),s=n.aTypedArray,c=n.getTypedArrayConstructor,g=n.exportTypedArrayMethod,u=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();g("with",{with:function(e,t){var r=s(this),n=a(e),g=i(r)?o(t):+t;return A(r,c(r),n,g)}}.with,!u)},6722:(e,t,r)=>{var A,n=r(568),i=r(4032),a=r(2608),o=r(4183),s=r(5227),c=r(9556),g=r(8153),u=r(2674),l=r(8301).enforce,h=r(3455),I=r(6206),f=Object,C=Array.isArray,B=f.isExtensible,Q=f.isFrozen,E=f.isSealed,d=f.freeze,y=f.seal,p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=c("WeakMap",v,g),w=m.prototype,b=a(w.set);if(I)if(p){A=g.getConstructor(v,"WeakMap",!0),s.enable();var k=a(w.delete),D=a(w.has),S=a(w.get);o(w,{delete:function(e){if(u(e)&&!B(e)){var t=l(this);return t.frozen||(t.frozen=new A),k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(u(e)&&!B(e)){var t=l(this);return t.frozen||(t.frozen=new A),D(this,e)||t.frozen.has(e)}return D(this,e)},get:function(e){if(u(e)&&!B(e)){var t=l(this);return t.frozen||(t.frozen=new A),D(this,e)?S(this,e):t.frozen.get(e)}return S(this,e)},set:function(e,t){if(u(e)&&!B(e)){var r=l(this);r.frozen||(r.frozen=new A),D(this,e)?b(this,e,t):r.frozen.set(e,t)}else b(this,e,t);return this}})}else n&&h((function(){var e=d([]);return b(new m,e,1),!Q(e)}))&&o(w,{set:function(e,t){var r;return C(e)&&(Q(e)?r=d:E(e)&&(r=y)),b(this,e,t),r&&r(e),this}})},8492:(e,t,r)=>{r(6722)},1176:(e,t,r)=>{r(9556)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(8153))},7121:(e,t,r)=>{r(1176)},4192:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(3399),a=r(7447),o=r(3749),s=r(2611),c=r(8986),g=r(3552),u=r(3455),l=r(9649),h=r(5811),I=r(2857).IteratorPrototype,f=r(2444),C=r(8507),B="constructor",Q="Iterator",E=h("toStringTag"),d=TypeError,y=n[Q],p=C||!o(y)||y.prototype!==I||!u((function(){y({})})),v=function(){if(i(this,I),s(this)===I)throw new d("Abstract class Iterator not directly constructable")},m=function(e,t){f?c(I,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===I)throw new d("You can\'t redefine this property");l(this,e)?this[e]=t:g(this,e,t)}}):I[e]=t};l(I,E)||m(E,Q),!p&&l(I,B)&&I[B]!==Object||m(B,v),v.prototype=I,A({global:!0,constructor:!0,forced:p},{Iterator:v})},463:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{every:function(e){a(this),i(e);var t=o(this),r=0;return!n(t,(function(t,A){if(!e(t,r++))return A()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8856:(e,t,r)=>{var A=r(5366),n=r(3453),i=r(4186),a=r(7447),o=r(3447),s=r(2342),c=r(3535),g=r(8507),u=s((function(){for(var e,t,r=this.iterator,A=this.predicate,i=this.next;;){if(e=a(n(i,r)),this.done=!!e.done)return;if(t=e.value,c(r,A,[t,this.counter++],!0))return t}}));A({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(e){return a(this),i(e),new u(o(this),{predicate:e})}})},4865:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),i(e);var t=o(this),r=0;return n(t,(function(t,A){if(e(t,r++))return A(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},1565:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),i(e);var t=o(this),r=0;n(t,(function(t){e(t,r++)}),{IS_RECORD:!0})}})},5342:(e,t,r)=>{var A=r(5366),n=r(4009);A({target:"Iterator",proto:!0,real:!0,forced:r(8507)},{map:n})},8075:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447),s=TypeError;A({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),i(e);var t=o(this),r=arguments.length<2,A=r?void 0:arguments[1],c=0;if(n(t,(function(t){r?(r=!1,A=t):A=e(A,t,c),c++}),{IS_RECORD:!0}),r)throw new s("Reduce of empty iterator with no initial value");return A}})},9582:(e,t,r)=>{var A=r(5366),n=r(1804),i=r(4186),a=r(7447),o=r(3447);A({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),i(e);var t=o(this),r=0;return n(t,(function(t,A){if(e(t,r++))return A()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},7987:(e,t,r)=>{var A=r(5366),n=r(7447),i=r(1804),a=r(3447),o=[].push;A({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return i(a(n(this)),o,{that:e,IS_RECORD:!0}),e}})},6625:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(8711),a=r(2608),o=r(3453),s=r(3455),c=r(687),g=r(7900),u=r(2996).c2i,l=/[^\\d+/a-z]/i,h=/[\\t\\n\\f\\r ]+/g,I=/[=]{1,2}$/,f=i("atob"),C=String.fromCharCode,B=a("".charAt),Q=a("".replace),E=a(l.exec),d=!!f&&!s((function(){return"hi"!==f("aGk=")})),y=d&&s((function(){return""!==f(" ")})),p=d&&!s((function(){f("a")})),v=d&&!s((function(){f()})),m=d&&1!==f.length;A({global:!0,bind:!0,enumerable:!0,forced:!d||y||p||v||m},{atob:function(e){if(g(arguments.length,1),d&&!y&&!p)return o(f,n,e);var t,r,A,a=Q(c(e),h,""),s="",v=0,m=0;if(a.length%4==0&&(a=Q(a,I,"")),(t=a.length)%4==1||E(l,a))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;v<t;)r=B(a,v++),A=m%4?64*A+u[r]:u[r],m++%4&&(s+=C(255&A>>(-2*m&6)));return s}})},8316:(e,t,r)=>{var A=r(4032),n=r(2760),i=r(4784),a=r(3147),o=r(139),s=function(e){if(e&&e.forEach!==a)try{o(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in n)n[c]&&s(A[c]&&A[c].prototype);s(i)},3577:(e,t,r)=>{var A=r(4032),n=r(2760),i=r(4784),a=r(9024),o=r(139),s=r(6911),c=r(5811)("iterator"),g=a.values,u=function(e,t){if(e){if(e[c]!==g)try{o(e,c,g)}catch(t){e[c]=g}if(s(e,t,!0),n[t])for(var r in a)if(e[r]!==a[r])try{o(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var l in n)u(A[l]&&A[l].prototype,l);u(i,"DOMTokenList")},4967:(e,t,r)=>{var A=r(5366),n=r(8711),i=r(9685),a=r(3455),o=r(5304),s=r(4004),c=r(1601).f,g=r(8552),u=r(8986),l=r(9649),h=r(3399),I=r(7447),f=r(2912),C=r(8363),B=r(4090),Q=r(3633),E=r(8301),d=r(2444),y=r(8507),p="DOMException",v="DATA_CLONE_ERR",m=n("Error"),w=n(p)||function(){try{(new(n("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===v&&25===e.code)return e.constructor}}(),b=w&&w.prototype,k=m.prototype,D=E.set,S=E.getterFor(p),F="stack"in new m(p),x=function(e){return l(B,e)&&B[e].m?B[e].c:0},R=function(){h(this,G);var e=arguments.length,t=C(e<1?void 0:arguments[0]),r=C(e<2?void 0:arguments[1],"Error"),A=x(r);if(D(this,{type:p,name:r,message:t,code:A}),d||(this.name=r,this.message=t,this.code=A),F){var n=new m(t);n.name=p,c(this,"stack",s(1,Q(n.stack,1)))}},G=R.prototype=o(k),N=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return N((function(){return S(this)[e]}))};d&&(u(G,"code",L("code")),u(G,"message",L("message")),u(G,"name",L("name"))),c(G,"constructor",s(1,R));var U=a((function(){return!(new w instanceof m)})),M=U||a((function(){return k.toString!==f||"2: 1"!==String(new w(1,2))})),J=U||a((function(){return 25!==new w(1,"DataCloneError").code})),H=U||25!==w[v]||25!==b[v],Y=y?M||J||H:U;A({global:!0,constructor:!0,forced:Y},{DOMException:Y?R:w});var P=n(p),O=P.prototype;for(var K in M&&(y||w===P)&&g(O,"toString",f),J&&d&&w===P&&u(O,"code",N((function(){return x(I(this).name)}))),B)if(l(B,K)){var T=B[K],q=T.s,j=s(6,T.c);l(P,q)||c(P,q,j),l(O,q)||c(O,q,j)}},6403:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(8711),a=r(4004),o=r(1601).f,s=r(9649),c=r(3399),g=r(3951),u=r(8363),l=r(4090),h=r(3633),I=r(2444),f=r(8507),C="DOMException",B=i("Error"),Q=i(C),E=function(){c(this,d);var e=arguments.length,t=u(e<1?void 0:arguments[0]),r=u(e<2?void 0:arguments[1],"Error"),A=new Q(t,r),n=new B(t);return n.name=C,o(A,"stack",a(1,h(n.stack,1))),g(A,this,E),A},d=E.prototype=Q.prototype,y="stack"in new B(C),p="stack"in new Q(1,2),v=Q&&I&&Object.getOwnPropertyDescriptor(n,C),m=!(!v||v.writable&&v.configurable),w=y&&!m&&!p;A({global:!0,constructor:!0,forced:f||w},{DOMException:w?E:Q});var b=i(C),k=b.prototype;if(k.constructor!==b)for(var D in f||o(k,"constructor",a(1,b)),l)if(s(l,D)){var S=l[D],F=S.s;s(b,F)||o(b,F,a(6,S.c))}},3355:(e,t,r)=>{var A=r(8711),n="DOMException";r(6911)(A(n),n)},8043:(e,t,r)=>{var A=r(5366),n=r(4032),i=r(8986),a=r(2444),o=TypeError,s=Object.defineProperty,c=n.self!==n;try{if(a){var g=Object.getOwnPropertyDescriptor(n,"self");!c&&g&&g.get&&g.enumerable||i(n,"self",{get:function(){return n},set:function(e){if(this!==n)throw new o("Illegal invocation");s(n,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else A({global:!0,simple:!0,forced:c},{self:n})}catch(e){}},9734:(e,t,r)=>{r(9024),r(2217);var A=r(5366),n=r(4032),i=r(5725),a=r(8711),o=r(3453),s=r(2608),c=r(2444),g=r(8200),u=r(8552),l=r(8986),h=r(4183),I=r(6911),f=r(282),C=r(8301),B=r(3399),Q=r(3749),E=r(9649),d=r(4864),y=r(1179),p=r(7447),v=r(2674),m=r(687),w=r(5304),b=r(4004),k=r(6961),D=r(7507),S=r(9393),F=r(7900),x=r(5811),R=r(5272),G=x("iterator"),N="URLSearchParams",L=N+"Iterator",U=C.set,M=C.getterFor(N),J=C.getterFor(L),H=i("fetch"),Y=i("Request"),P=i("Headers"),O=Y&&Y.prototype,K=P&&P.prototype,T=n.TypeError,q=n.encodeURIComponent,j=String.fromCharCode,W=a("String","fromCodePoint"),Z=parseInt,_=s("".charAt),X=s([].join),V=s([].push),z=s("".replace),$=s([].shift),ee=s([].splice),te=s("".split),re=s("".slice),Ae=s(/./.exec),ne=/\\+/g,ie=/^[0-9a-f]+$/i,ae=function(e,t){var r=re(e,t,t+2);return Ae(ie,r)?Z(r,16):NaN},oe=function(e){for(var t=0,r=128;r>0&&0!=(e&r);r>>=1)t++;return t},se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ce=function(e){for(var t=(e=z(e,ne," ")).length,r="",A=0;A<t;){var n=_(e,A);if("%"===n){if("%"===_(e,A+1)||A+3>t){r+="%",A++;continue}var i=ae(e,A+1);if(i!=i){r+=n,A++;continue}A+=2;var a=oe(i);if(0===a)n=j(i);else{if(1===a||a>4){r+="�",A++;continue}for(var o=[i],s=1;s<a&&!(3+ ++A>t||"%"!==_(e,A));){var c=ae(e,A+1);if(c!=c){A+=3;break}if(c>191||c<128)break;V(o,c),A+=2,s++}if(o.length!==a){r+="�";continue}var g=se(o);null===g?r+="�":n=W(g)}}r+=n,A++}return r},ge=/[!\'()~]|%20/g,ue={"!":"%21","\'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return ue[e]},he=function(e){return z(q(e),ge,le)},Ie=f((function(e,t){U(this,{type:L,target:M(e).entries,index:0,kind:t})}),N,(function(){var e=J(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,S(void 0,!0);var A=t[r];switch(e.kind){case"keys":return S(A.key,!1);case"values":return S(A.value,!1)}return S([A.key,A.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(v(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===_(e,0)?re(e,1):e:m(e)))};fe.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,A,n,i,a,s,c=this.entries,g=D(e);if(g)for(r=(t=k(e,g)).next;!(A=o(r,t)).done;){if(i=(n=k(p(A.value))).next,(a=o(i,n)).done||(s=o(i,n)).done||!o(i,n).done)throw new T("Expected sequence with length 2");V(c,{key:m(a.value),value:m(s.value)})}else for(var u in e)E(e,u)&&V(c,{key:u,value:m(e[u])})},parseQuery:function(e){if(e)for(var t,r,A=this.entries,n=te(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=te(t,"="),V(A,{key:ce($(r)),value:ce(X(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],A=0;A<t.length;)e=t[A++],V(r,he(e.key)+"="+he(e.value));return X(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ce=function(){B(this,Be);var e=U(this,new fe(arguments.length>0?arguments[0]:void 0));c||(this.size=e.entries.length)},Be=Ce.prototype;if(h(Be,{append:function(e,t){var r=M(this);F(arguments.length,2),V(r.entries,{key:m(e),value:m(t)}),c||this.length++,r.updateURL()},delete:function(e){for(var t=M(this),r=F(arguments.length,1),A=t.entries,n=m(e),i=r<2?void 0:arguments[1],a=void 0===i?i:m(i),o=0;o<A.length;){var s=A[o];if(s.key!==n||void 0!==a&&s.value!==a)o++;else if(ee(A,o,1),void 0!==a)break}c||(this.size=A.length),t.updateURL()},get:function(e){var t=M(this).entries;F(arguments.length,1);for(var r=m(e),A=0;A<t.length;A++)if(t[A].key===r)return t[A].value;return null},getAll:function(e){var t=M(this).entries;F(arguments.length,1);for(var r=m(e),A=[],n=0;n<t.length;n++)t[n].key===r&&V(A,t[n].value);return A},has:function(e){for(var t=M(this).entries,r=F(arguments.length,1),A=m(e),n=r<2?void 0:arguments[1],i=void 0===n?n:m(n),a=0;a<t.length;){var o=t[a++];if(o.key===A&&(void 0===i||o.value===i))return!0}return!1},set:function(e,t){var r=M(this);F(arguments.length,1);for(var A,n=r.entries,i=!1,a=m(e),o=m(t),s=0;s<n.length;s++)(A=n[s]).key===a&&(i?ee(n,s--,1):(i=!0,A.value=o));i||V(n,{key:a,value:o}),c||(this.size=n.length),r.updateURL()},sort:function(){var e=M(this);R(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=M(this).entries,A=d(e,arguments.length>1?arguments[1]:void 0),n=0;n<r.length;)A((t=r[n++]).value,t.key,this)},keys:function(){return new Ie(this,"keys")},values:function(){return new Ie(this,"values")},entries:function(){return new Ie(this,"entries")}},{enumerable:!0}),u(Be,G,Be.entries,{name:"entries"}),u(Be,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),c&&l(Be,"size",{get:function(){return M(this).entries.length},configurable:!0,enumerable:!0}),I(Ce,N),A({global:!0,constructor:!0,forced:!g},{URLSearchParams:Ce}),!g&&Q(P)){var Qe=s(K.has),Ee=s(K.set),de=function(e){if(v(e)){var t,r=e.body;if(y(r)===N)return t=e.headers?new P(e.headers):new P,Qe(t,"content-type")||Ee(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(e,{body:b(0,m(r)),headers:b(0,t)})}return e};if(Q(H)&&A({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?de(arguments[1]):{})}}),Q(Y)){var ye=function(e){return B(this,O),new Y(e,arguments.length>1?de(arguments[1]):{})};O.constructor=ye,ye.prototype=O,A({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:Ce,getState:M}},1531:(e,t,r)=>{var A=r(8552),n=r(2608),i=r(687),a=r(7900),o=URLSearchParams,s=o.prototype,c=n(s.append),g=n(s.delete),u=n(s.forEach),l=n([].push),h=new o("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&A(s,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return g(this,e);var A=[];u(this,(function(e,t){l(A,{key:t,value:e})})),a(t,1);for(var n,o=i(e),s=i(r),h=0,I=0,f=!1,C=A.length;h<C;)n=A[h++],f||n.key===o?(f=!0,g(this,n.key)):I++;for(;I<C;)(n=A[I++]).key===o&&n.value===s||c(this,n.key,n.value)}),{enumerable:!0,unsafe:!0})},3678:(e,t,r)=>{var A=r(8552),n=r(2608),i=r(687),a=r(7900),o=URLSearchParams,s=o.prototype,c=n(s.getAll),g=n(s.has),u=new o("a=1");!u.has("a",2)&&u.has("a",void 0)||A(s,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return g(this,e);var A=c(this,e);a(t,1);for(var n=i(r),o=0;o<A.length;)if(A[o++]===n)return!0;return!1}),{enumerable:!0,unsafe:!0})},4520:(e,t,r)=>{r(9734)},4145:(e,t,r)=>{var A=r(2444),n=r(2608),i=r(8986),a=URLSearchParams.prototype,o=n(a.forEach);A&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},161:(e,t,r)=>{r(7460);var A,n=r(5366),i=r(2444),a=r(8200),o=r(4032),s=r(4864),c=r(2608),g=r(8552),u=r(8986),l=r(3399),h=r(9649),I=r(8069),f=r(3948),C=r(4224),B=r(6903).codeAt,Q=r(5141),E=r(687),d=r(6911),y=r(7900),p=r(9734),v=r(8301),m=v.set,w=v.getterFor("URL"),b=p.URLSearchParams,k=p.getState,D=o.URL,S=o.TypeError,F=o.parseInt,x=Math.floor,R=Math.pow,G=c("".charAt),N=c(/./.exec),L=c([].join),U=c(1..toString),M=c([].pop),J=c([].push),H=c("".replace),Y=c([].shift),P=c("".split),O=c("".slice),K=c("".toLowerCase),T=c([].unshift),q="Invalid scheme",j="Invalid host",W="Invalid port",Z=/[a-z]/i,_=/[\\d+-.a-z]/i,X=/\\d/,V=/^0x/i,z=/^[0-7]+$/,$=/^\\d+$/,ee=/^[\\da-f]+$/i,te=/[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/,re=/[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/,Ae=/^[\\u0000-\\u0020]+/,ne=/(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/,ie=/[\\t\\n\\r]/g,ae=function(e){var t,r,A,n;if("number"==typeof e){for(t=[],r=0;r<4;r++)T(t,e%256),e=x(e/256);return L(t,".")}if("object"==typeof e){for(t="",A=function(e){for(var t=null,r=1,A=null,n=0,i=0;i<8;i++)0!==e[i]?(n>r&&(t=A,r=n),A=null,n=0):(null===A&&(A=i),++n);return n>r?A:t}(e),r=0;r<8;r++)n&&0===e[r]||(n&&(n=!1),A===r?(t+=r?":":"::",n=!0):(t+=U(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},oe={},se=I({},oe,{" ":1,\'"\':1,"<":1,">":1,"`":1}),ce=I({},se,{"#":1,"?":1,"{":1,"}":1}),ge=I({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var r=B(e,0);return r>32&&r<127&&!h(t,e)?e:encodeURIComponent(e)},le={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var r;return 2===e.length&&N(Z,G(e,0))&&(":"===(r=G(e,1))||!t&&"|"===r)},Ie=function(e){var t;return e.length>1&&he(O(e,0,2))&&(2===e.length||"/"===(t=G(e,2))||"\\\\"===t||"?"===t||"#"===t)},fe=function(e){return"."===e||"%2e"===K(e)},Ce={},Be={},Qe={},Ee={},de={},ye={},pe={},ve={},me={},we={},be={},ke={},De={},Se={},Fe={},xe={},Re={},Ge={},Ne={},Le={},Ue={},Me=function(e,t,r){var A,n,i,a=E(e);if(t){if(n=this.parse(a))throw new S(n);this.searchParams=null}else{if(void 0!==r&&(A=new Me(r,!0)),n=this.parse(a,null,A))throw new S(n);(i=k(new b)).bindURL(this),this.searchParams=i}};Me.prototype={type:"URL",parse:function(e,t,r){var n,i,a,o,s,c=this,g=t||Ce,u=0,l="",I=!1,B=!1,Q=!1;for(e=E(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=H(e,Ae,""),e=H(e,ne,"$1")),e=H(e,ie,""),n=f(e);u<=n.length;){switch(i=n[u],g){case Ce:if(!i||!N(Z,i)){if(t)return q;g=Qe;continue}l+=K(i),g=Be;break;case Be:if(i&&(N(_,i)||"+"===i||"-"===i||"."===i))l+=K(i);else{if(":"!==i){if(t)return q;l="",g=Qe,u=0;continue}if(t&&(c.isSpecial()!==h(le,l)||"file"===l&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&le[c.scheme]===c.port&&(c.port=null));l="","file"===c.scheme?g=Se:c.isSpecial()&&r&&r.scheme===c.scheme?g=Ee:c.isSpecial()?g=ve:"/"===n[u+1]?(g=de,u++):(c.cannotBeABaseURL=!0,J(c.path,""),g=Ne)}break;case Qe:if(!r||r.cannotBeABaseURL&&"#"!==i)return q;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=C(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,g=Ue;break}g="file"===r.scheme?Se:ye;continue;case Ee:if("/"!==i||"/"!==n[u+1]){g=ye;continue}g=me,u++;break;case de:if("/"===i){g=we;break}g=Ge;continue;case ye:if(c.scheme=r.scheme,i===A)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.query=r.query;else if("/"===i||"\\\\"===i&&c.isSpecial())g=pe;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.query="",g=Le;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.path.length--,g=Ge;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=C(r.path),c.query=r.query,c.fragment="",g=Ue}break;case pe:if(!c.isSpecial()||"/"!==i&&"\\\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,g=Ge;continue}g=we}else g=me;break;case ve:if(g=me,"/"!==i||"/"!==G(l,u+1))continue;u++;break;case me:if("/"!==i&&"\\\\"!==i){g=we;continue}break;case we:if("@"===i){I&&(l="%40"+l),I=!0,a=f(l);for(var d=0;d<a.length;d++){var y=a[d];if(":"!==y||Q){var p=ue(y,ge);Q?c.password+=p:c.username+=p}else Q=!0}l=""}else if(i===A||"/"===i||"?"===i||"#"===i||"\\\\"===i&&c.isSpecial()){if(I&&""===l)return"Invalid authority";u-=f(l).length+1,l="",g=be}else l+=i;break;case be:case ke:if(t&&"file"===c.scheme){g=xe;continue}if(":"!==i||B){if(i===A||"/"===i||"?"===i||"#"===i||"\\\\"===i&&c.isSpecial()){if(c.isSpecial()&&""===l)return j;if(t&&""===l&&(c.includesCredentials()||null!==c.port))return;if(o=c.parseHost(l))return o;if(l="",g=Re,t)return;continue}"["===i?B=!0:"]"===i&&(B=!1),l+=i}else{if(""===l)return j;if(o=c.parseHost(l))return o;if(l="",g=De,t===ke)return}break;case De:if(!N(X,i)){if(i===A||"/"===i||"?"===i||"#"===i||"\\\\"===i&&c.isSpecial()||t){if(""!==l){var v=F(l,10);if(v>65535)return W;c.port=c.isSpecial()&&v===le[c.scheme]?null:v,l=""}if(t)return;g=Re;continue}return W}l+=i;break;case Se:if(c.scheme="file","/"===i||"\\\\"===i)g=Fe;else{if(!r||"file"!==r.scheme){g=Ge;continue}switch(i){case A:c.host=r.host,c.path=C(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=C(r.path),c.query="",g=Le;break;case"#":c.host=r.host,c.path=C(r.path),c.query=r.query,c.fragment="",g=Ue;break;default:Ie(L(C(n,u),""))||(c.host=r.host,c.path=C(r.path),c.shortenPath()),g=Ge;continue}}break;case Fe:if("/"===i||"\\\\"===i){g=xe;break}r&&"file"===r.scheme&&!Ie(L(C(n,u),""))&&(he(r.path[0],!0)?J(c.path,r.path[0]):c.host=r.host),g=Ge;continue;case xe:if(i===A||"/"===i||"\\\\"===i||"?"===i||"#"===i){if(!t&&he(l))g=Ge;else if(""===l){if(c.host="",t)return;g=Re}else{if(o=c.parseHost(l))return o;if("localhost"===c.host&&(c.host=""),t)return;l="",g=Re}continue}l+=i;break;case Re:if(c.isSpecial()){if(g=Ge,"/"!==i&&"\\\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==A&&(g=Ge,"/"!==i))continue}else c.fragment="",g=Ue;else c.query="",g=Le;break;case Ge:if(i===A||"/"===i||"\\\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=K(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\\\"===i&&c.isSpecial()||J(c.path,"")):fe(l)?"/"===i||"\\\\"===i&&c.isSpecial()||J(c.path,""):("file"===c.scheme&&!c.path.length&&he(l)&&(c.host&&(c.host=""),l=G(l,0)+":"),J(c.path,l)),l="","file"===c.scheme&&(i===A||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)Y(c.path);"?"===i?(c.query="",g=Le):"#"===i&&(c.fragment="",g=Ue)}else l+=ue(i,ce);break;case Ne:"?"===i?(c.query="",g=Le):"#"===i?(c.fragment="",g=Ue):i!==A&&(c.path[0]+=ue(i,oe));break;case Le:t||"#"!==i?i!==A&&("\'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":ue(i,oe)):(c.fragment="",g=Ue);break;case Ue:i!==A&&(c.fragment+=ue(i,se))}u++}},parseHost:function(e){var t,r,A;if("["===G(e,0)){if("]"!==G(e,e.length-1))return j;if(t=function(e){var t,r,A,n,i,a,o,s=[0,0,0,0,0,0,0,0],c=0,g=null,u=0,l=function(){return G(e,u)};if(":"===l()){if(":"!==G(e,1))return;u+=2,g=++c}for(;l();){if(8===c)return;if(":"!==l()){for(t=r=0;r<4&&N(ee,l());)t=16*t+F(l(),16),u++,r++;if("."===l()){if(0===r)return;if(u-=r,c>6)return;for(A=0;l();){if(n=null,A>0){if(!("."===l()&&A<4))return;u++}if(!N(X,l()))return;for(;N(X,l());){if(i=F(l(),10),null===n)n=i;else{if(0===n)return;n=10*n+i}if(n>255)return;u++}s[c]=256*s[c]+n,2!=++A&&4!==A||c++}if(4!==A)return;break}if(":"===l()){if(u++,!l())return}else if(l())return;s[c++]=t}else{if(null!==g)return;u++,g=++c}}if(null!==g)for(a=c-g,c=7;0!==c&&a>0;)o=s[c],s[c--]=s[g+a-1],s[g+--a]=o;else if(8!==c)return;return s}(O(e,1,-1)),!t)return j;this.host=t}else if(this.isSpecial()){if(e=Q(e),N(te,e))return j;if(t=function(e){var t,r,A,n,i,a,o,s=P(e,".");if(s.length&&""===s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],A=0;A<t;A++){if(""===(n=s[A]))return e;if(i=10,n.length>1&&"0"===G(n,0)&&(i=N(V,n)?16:8,n=O(n,8===i?1:2)),""===n)a=0;else{if(!N(10===i?$:8===i?z:ee,n))return e;a=F(n,i)}J(r,a)}for(A=0;A<t;A++)if(a=r[A],A===t-1){if(a>=R(256,5-t))return null}else if(a>255)return null;for(o=M(r),A=0;A<r.length;A++)o+=r[A]*R(256,3-A);return o}(e),null===t)return j;this.host=t}else{if(N(re,e))return j;for(t="",r=f(e),A=0;A<r.length;A++)t+=ue(r[A],oe);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(le,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&he(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,A=e.password,n=e.host,i=e.port,a=e.path,o=e.query,s=e.fragment,c=t+":";return null!==n?(c+="//",e.includesCredentials()&&(c+=r+(A?":"+A:"")+"@"),c+=ae(n),null!==i&&(c+=":"+i)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+L(a,"/"):"",null!==o&&(c+="?"+o),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw new S(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Je(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(E(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ue(t[r],ge)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(E(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ue(t[r],ge)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,be)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":E(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=E(e))?this.port=null:this.parse(e,De))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Re))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=E(e))?this.query=null:("?"===G(e,0)&&(e=O(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=E(e))?("#"===G(e,0)&&(e=O(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Je=function(e){var t=l(this,He),r=y(arguments.length,1)>1?arguments[1]:void 0,A=m(t,new Me(e,!1,r));i||(t.href=A.serialize(),t.origin=A.getOrigin(),t.protocol=A.getProtocol(),t.username=A.getUsername(),t.password=A.getPassword(),t.host=A.getHost(),t.hostname=A.getHostname(),t.port=A.getPort(),t.pathname=A.getPathname(),t.search=A.getSearch(),t.searchParams=A.getSearchParams(),t.hash=A.getHash())},He=Je.prototype,Ye=function(e,t){return{get:function(){return w(this)[e]()},set:t&&function(e){return w(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(u(He,"href",Ye("serialize","setHref")),u(He,"origin",Ye("getOrigin")),u(He,"protocol",Ye("getProtocol","setProtocol")),u(He,"username",Ye("getUsername","setUsername")),u(He,"password",Ye("getPassword","setPassword")),u(He,"host",Ye("getHost","setHost")),u(He,"hostname",Ye("getHostname","setHostname")),u(He,"port",Ye("getPort","setPort")),u(He,"pathname",Ye("getPathname","setPathname")),u(He,"search",Ye("getSearch","setSearch")),u(He,"searchParams",Ye("getSearchParams")),u(He,"hash",Ye("getHash","setHash"))),g(He,"toJSON",(function(){return w(this).serialize()}),{enumerable:!0}),g(He,"toString",(function(){return w(this).serialize()}),{enumerable:!0}),D){var Pe=D.createObjectURL,Oe=D.revokeObjectURL;Pe&&g(Je,"createObjectURL",s(Pe,D)),Oe&&g(Je,"revokeObjectURL",s(Oe,D))}d(Je,"URL"),n({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Je})},5728:(e,t,r)=>{r(161)},4136:(e,t,r)=>{var A=r(5366),n=r(3453);A({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return n(URL.prototype.toString,this)}})}},t={};function r(A){var n=t[A];if(void 0!==n)return n.exports;var i=t[A]={exports:{}};return e[A].call(i.exports,i,i.exports,r),i.exports}r.d=(e,t)=>{for(var A in t)r.o(t,A)&&!r.o(e,A)&&Object.defineProperty(e,A,{enumerable:!0,get:t[A]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var A,n=globalThis.pdfjsWorker={};function i(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function a(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,s(A.key),A)}}function o(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t,r){return t=l(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}r.d(n,{WorkerMessageHandler:()=>iL}),r(7651),r(4551),r(4172),r(5268),r(5997),r(184),r(3234),r(6497),r(6746),r(9024),r(5550),r(9138),r(6794),r(750),r(9722),r(5015),r(6209),r(9261),r(3700),r(3632),r(7316),r(7531),r(1999),r(3379),r(1234),r(2431),r(9732),r(2823),r(5594),r(8397),r(9255),r(5130),r(5636),r(8509),r(7332),r(6555),r(3296),r(4594),r(7329),r(3740),r(6542),r(5738),r(2900),r(2051),r(3198),r(4211),r(9791),r(5294),r(1526),r(6032),r(3659),r(8551),r(8553),r(7612),r(8579),r(7719),r(7576),r(2891),r(2605),r(4863),r(9637),r(2709),r(8941),r(1579),r(6236),r(7716),r(1913),r(4192),r(1565),r(5342),r(9582),r(8316),r(3577),r(8043),r(932),r(8169),r(1425),r(489),r(2467),r(1281),r(9484),r(4672),r(4413),r(9264),r(2044),r(5728),r(4136),r(4520),r(1531),r(3678),r(4145);var f=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),C=[1,0,0,1,0,0],B=[.001,0,0,.001,0,0],Q=1.35,E=.25925925925925924,d="pdfjs_internal_editor_",y={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},p="Group",v=32,m=8192,w=65536,b={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},k={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},D={O:"PageOpen",C:"PageClose"},S={ERRORS:0,WARNINGS:1,INFOS:5},F={NONE:0,BINARY:1},x=10,R=11,G=12,N=37,L=44,U=58,M=59,J=70,H=71,Y=83,P=85,O=S.WARNINGS;function K(){return O}function T(e){O>=S.INFOS&&console.log("Info: ".concat(e))}function q(e){O>=S.WARNINGS&&console.log("Warning: ".concat(e))}function j(e){throw new Error(e)}function W(e,t){e||j(t)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(r&&"string"==typeof e){if(r.addDefaultProtocol&&e.startsWith("www.")){var A=e.match(/\\./g);(null==A?void 0:A.length)>=2&&(e="http://".concat(e))}if(r.tryConvertEncoding)try{e=fe(e)}catch(e){}}var n=t?new URL(e,t):new URL(e);if(function(e){switch(null==e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(e){}return null}function _(e,t,r){var A=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:r,enumerable:!A,configurable:!0,writable:!1}),r}var X=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=new Error,e.constructor=e,e}(),V=function(e){function t(e,r){var A;return c(this,t),(A=g(this,t,[e,"PasswordException"])).code=r,A}return h(t,X),o(t)}(),z=function(e){function t(e,r){var A;return c(this,t),(A=g(this,t,[e,"UnknownErrorException"])).details=r,A}return h(t,X),o(t)}(),$=function(e){function t(e){return c(this,t),g(this,t,[e,"InvalidPDFException"])}return h(t,X),o(t)}(),ee=function(e){function t(e){return c(this,t),g(this,t,[e,"MissingPDFException"])}return h(t,X),o(t)}(),te=function(e){function t(e,r){var A;return c(this,t),(A=g(this,t,[e,"UnexpectedResponseException"])).status=r,A}return h(t,X),o(t)}(),re=function(e){function t(e){return c(this,t),g(this,t,[e,"FormatError"])}return h(t,X),o(t)}(),Ae=function(e){function t(e){return c(this,t),g(this,t,[e,"AbortException"])}return h(t,X),o(t)}();function ne(e){"object"==typeof e&&void 0!==(null==e?void 0:e.length)||j("Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var A=[],n=0;n<t;n+=r){var i=Math.min(n+r,t),a=e.subarray(n,i);A.push(String.fromCharCode.apply(null,a))}return A.join("")}function ie(e){"string"!=typeof e&&j("Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),A=0;A<t;++A)r[A]=255&e.charCodeAt(A);return r}function ae(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function oe(e){return Object.keys(e).length}var se=function(){return o((function e(){c(this,e)}),null,[{key:"isLittleEndian",get:function(){return _(this,"isLittleEndian",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}},{key:"isEvalSupported",get:function(){return _(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function(){return _(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function(){var e,t;return"undefined"!=typeof navigator&&"string"==typeof(null===(e=navigator)||void 0===e?void 0:e.platform)?_(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.userAgent)&&navigator.userAgent.includes("Firefox")}):_(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}},{key:"isCSSRoundSupported",get:function(){var e,t;return _(this,"isCSSRoundSupported",null===(e=globalThis.CSS)||void 0===e||null===(t=e.supports)||void 0===t?void 0:t.call(e,"width: round(1.5px, 1px)"))}}])}(),ce=Array.from(Array(256).keys(),(function(e){return e.toString(16).padStart(2,"0")})),ge=function(){function e(){c(this,e)}return o(e,null,[{key:"makeHexColor",value:function(e,t,r){return"#".concat(ce[e]).concat(ce[t]).concat(ce[r])}},{key:"scaleMinMax",value:function(e,t){var r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[1],t[1]=r,r=t[2],t[2]=t[3],t[3]=r,e[1]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(e,t){var r=this.applyTransform(e,t),A=this.applyTransform(e.slice(2,4),t),n=this.applyTransform([e[0],e[3]],t),i=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],A[0],n[0],i[0]),Math.min(r[1],A[1],n[1],i[1]),Math.max(r[0],A[0],n[0],i[0]),Math.max(r[1],A[1],n[1],i[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],A=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],a=(r+i)/2,o=Math.sqrt(Math.pow(r+i,2)-4*(r*i-n*A))/2,s=a+o||1,c=a-o||1;return[Math.sqrt(s),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(e,t){var r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),A=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>A)return null;var n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[r,n,A,i]}},{key:"bezierBoundingBox",value:function(t,r,A,n,a,o,s,c,g){return g?(g[0]=Math.min(g[0],t,s),g[1]=Math.min(g[1],r,c),g[2]=Math.max(g[2],t,s),g[3]=Math.max(g[3],r,c)):g=[Math.min(t,s),Math.min(r,c),Math.max(t,s),Math.max(r,c)],i(e,this,le).call(this,t,A,a,s,r,n,o,c,3*(3*(A-a)-t+s),6*(t-2*A+a),3*(A-t),g),i(e,this,le).call(this,t,A,a,s,r,n,o,c,3*(3*(n-o)-r+c),6*(r-2*n+o),3*(n-r),g),g}}])}();function ue(e,t,r,A,n,i,a,o,s,c){if(!(s<=0||s>=1)){var g=1-s,u=s*s,l=u*s,h=g*(g*(g*e+3*s*t)+3*u*r)+l*A,I=g*(g*(g*n+3*s*i)+3*u*a)+l*o;c[0]=Math.min(c[0],h),c[1]=Math.min(c[1],I),c[2]=Math.max(c[2],h),c[3]=Math.max(c[3],I)}}function le(e,t,r,n,a,o,s,c,g,u,l,h){if(Math.abs(g)<1e-12)Math.abs(u)>=1e-12&&i(A,this,ue).call(this,e,t,r,n,a,o,s,c,-l/u,h);else{var I=Math.pow(u,2)-4*l*g;if(!(I<0)){var f=Math.sqrt(I),C=2*g;i(A,this,ue).call(this,e,t,r,n,a,o,s,c,(-u+f)/C,h),i(A,this,ue).call(this,e,t,r,n,a,o,s,c,(-u-f)/C,h)}}}A=ge;var he=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Ie(e){var t;if(e[0]>="ï"&&("þ"===e[0]&&"ÿ"===e[1]?(t="utf-16be",e.length%2==1&&(e=e.slice(0,-1))):"ÿ"===e[0]&&"þ"===e[1]?(t="utf-16le",e.length%2==1&&(e=e.slice(0,-1))):"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t))try{var r=new TextDecoder(t,{fatal:!0}),A=ie(e),n=r.decode(A);return n.includes("")?n.replaceAll(/\\x1b[^\\x1b]*(?:\\x1b|$)/g,""):n}catch(e){q(\'stringToPDFString: "\'.concat(e,\'".\'))}for(var i=[],a=0,o=e.length;a<o;a++){var s=e.charCodeAt(a);if(27!==s){var c=he[s];i.push(c?String.fromCharCode(c):e.charAt(a))}else for(;++a<o&&27!==e.charCodeAt(a););}return i.join("")}function fe(e){return decodeURIComponent(escape(e))}function Ce(e){return unescape(encodeURIComponent(e))}function Be(e,t){if(e.length!==t.length)return!1;for(var r=0,A=e.length;r<A;r++)if(e[r]!==t[r])return!1;return!0}function Qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")}var Ee=null,de=null;function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ve(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ve(e,t){if(e){if("string"==typeof e)return me(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function we(){we=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function be(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Fe(A.key),A)}}function Se(e,t,r){return t&&De(e.prototype,t),r&&De(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}r(4592),r(8345),r(2865),r(4072),r(463),r(8674),r(482);var xe=Symbol("CIRCULAR_REF"),Re=Symbol("EOF"),Ge=Object.create(null),Ne=Object.create(null),Le=Object.create(null),Ue=function(){function e(t){ke(this,e),this.name=t}return Se(e,null,[{key:"get",value:function(t){var r;return(r=Ne)[t]||(r[t]=new e(t))}}])}(),Me=function(){function e(t){ke(this,e),this.cmd=t}return Se(e,null,[{key:"get",value:function(t){var r;return(r=Ge)[t]||(r[t]=new e(t))}}])}(),Je=function(){return Je},He=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ke(this,e),this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=Je}return Se(e,[{key:"assignXref",value:function(e){this.xref=e}},{key:"size",get:function(){return Object.keys(this._map).length}},{key:"get",value:function(e,t,r){var A=this._map[e];return void 0===A&&void 0!==t&&void 0===(A=this._map[t])&&void 0!==r&&(A=this._map[r]),A instanceof Ye&&this.xref?this.xref.fetch(A,this.suppressEncryption):A}},{key:"getAsync",value:(t=we().mark((function e(t,r,A){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(n=this._map[t])&&void 0!==r&&void 0===(n=this._map[r])&&void 0!==A&&(n=this._map[A]),!(n instanceof Ye&&this.xref)){e.next=4;break}return e.abrupt("return",this.xref.fetchAsync(n,this.suppressEncryption));case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(A,n){var i=t.apply(e,r);function a(e){be(i,A,n,a,o,"next",e)}function o(e){be(i,A,n,a,o,"throw",e)}a(void 0)}))},function(e,t,A){return r.apply(this,arguments)})},{key:"getArray",value:function(e,t,r){var A=this._map[e];if(void 0===A&&void 0!==t&&void 0===(A=this._map[t])&&void 0!==r&&(A=this._map[r]),A instanceof Ye&&this.xref&&(A=this.xref.fetch(A,this.suppressEncryption)),Array.isArray(A))for(var n=0,i=(A=A.slice()).length;n<i;n++)A[n]instanceof Ye&&this.xref&&(A[n]=this.xref.fetch(A[n],this.suppressEncryption));return A}},{key:"getRaw",value:function(e){return this._map[e]}},{key:"getKeys",value:function(){return Object.keys(this._map)}},{key:"getRawValues",value:function(){return Object.values(this._map)}},{key:"set",value:function(e,t){this._map[e]=t}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this.get(t))}},{key:"clone",value:function(){var t,r=new e(this.xref),A=pe(this.getKeys());try{for(A.s();!(t=A.n()).done;){var n=t.value;r.set(n,this.getRaw(n))}}catch(e){A.e(e)}finally{A.f()}return r}},{key:"delete",value:function(e){delete this._map[e]}}],[{key:"empty",get:function(){var t=new e(null);return t.set=function(e,t){j("Should not call `set` on the empty dictionary.")},_(this,"empty",t)}},{key:"merge",value:function(t){var r,A=t.xref,n=t.dictArray,i=t.mergeSubDicts,a=void 0!==i&&i,o=new e(A),s=new Map,c=pe(n);try{for(c.s();!(r=c.n()).done;){var g=r.value;if(g instanceof e)for(var u=0,l=Object.entries(g._map);u<l.length;u++){var h=ye(l[u],2),I=h[0],f=h[1],C=s.get(I);if(void 0===C)C=[],s.set(I,C);else if(!(a&&f instanceof e))continue;C.push(f)}}}catch(e){c.e(e)}finally{c.f()}var B,Q=pe(s);try{for(Q.s();!(B=Q.n()).done;){var E=ye(B.value,2),d=E[0],y=E[1];if(1!==y.length&&y[0]instanceof e){var p,v=new e(A),m=pe(y);try{for(m.s();!(p=m.n()).done;)for(var w=p.value,b=0,k=Object.entries(w._map);b<k.length;b++){var D=ye(k[b],2),S=D[0],F=D[1];void 0===v._map[S]&&(v._map[S]=F)}}catch(e){m.e(e)}finally{m.f()}v.size>0&&(o._map[d]=v)}else o._map[d]=y[0]}}catch(e){Q.e(e)}finally{Q.f()}return s.clear(),o.size>0?o:e.empty}}]);var t,r}(),Ye=function(){function e(t,r){ke(this,e),this.num=t,this.gen=r}return Se(e,[{key:"toString",value:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"fromString",value:function(t){var r=Le[t];if(r)return r;var A=/^(\\d+)R(\\d*)$/.exec(t);return A&&"0"!==A[1]?Le[t]=new e(parseInt(A[1]),A[2]?parseInt(A[2]):0):null}},{key:"get",value:function(t,r){var A,n=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r);return(A=Le)[n]||(A[n]=new e(t,r))}}])}(),Pe=function(){return Se((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ke(this,e),this._set=new Set(null==t?void 0:t._set)}),[{key:"has",value:function(e){return this._set.has(e.toString())}},{key:"put",value:function(e){this._set.add(e.toString())}},{key:"remove",value:function(e){this._set.delete(e.toString())}},{key:Symbol.iterator,value:function(){return this._set.values()}},{key:"clear",value:function(){this._set.clear()}}])}(),Oe=function(){return Se((function e(){ke(this,e),this._map=new Map}),[{key:"size",get:function(){return this._map.size}},{key:"get",value:function(e){return this._map.get(e.toString())}},{key:"has",value:function(e){return this._map.has(e.toString())}},{key:"put",value:function(e,t){this._map.set(e.toString(),t)}},{key:"putAlias",value:function(e,t){this._map.set(e.toString(),this.get(t))}},{key:Symbol.iterator,value:function(){return this._map.values()}},{key:"clear",value:function(){this._map.clear()}},{key:"items",value:we().mark((function e(){var t,r,A,n,i;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=pe(this._map),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return A=ye(r.value,2),n=A[0],i=A[1],e.next=7,[Ye.fromString(n),i];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))}])}();function Ke(e,t){return e instanceof Ue&&(void 0===t||e.name===t)}function Te(e,t){return e instanceof Me&&(void 0===t||e.cmd===t)}function qe(e,t){return e instanceof He&&(void 0===t||Ke(e.get("Type"),t))}function je(e,t){return e.num===t.num&&e.gen===t.gen}function We(){We=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Ze(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function _e(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Ze(i,A,n,a,o,"next",e)}function o(e){Ze(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Xe(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Ve(A.key),A)}}function Ve(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var ze=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"length",get:function(){j("Abstract getter `length` accessed")}},{key:"isEmpty",get:function(){j("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function(){return _(this,"isDataLoaded",!0)}},{key:"getByte",value:function(){j("Abstract method `getByte` called")}},{key:"getBytes",value:function(e){j("Abstract method `getBytes` called")}},{key:"getImageData",value:(A=_e(We().mark((function e(t,r){return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getBytes(t,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"asyncGetBytes",value:(r=_e(We().mark((function e(){return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j("Abstract method `asyncGetBytes` called");case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"isAsync",get:function(){return!1}},{key:"canAsyncDecodeImageFromBuffer",get:function(){return!1}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=this.getBytes(e);return this.pos-=t.length,t}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getByteRange",value:function(e,t){j("Abstract method `getByteRange` called")}},{key:"getString",value:function(e){return ne(this.getBytes(e))}},{key:"skip",value:function(e){this.pos+=e||1}},{key:"reset",value:function(){j("Abstract method `reset` called")}},{key:"moveStart",value:function(){j("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function(e,t){j("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function(){return null}}],t&&Xe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,A}();function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||At(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(){et=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}var tt=et().mark(Ht);function rt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=At(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function At(e,t){if(e){if("string"==typeof e)return nt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(e,t):void 0}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function it(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,ot(A.key),A)}}function at(e,t,r){return t&&it(e.prototype,t),r&&it(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ot(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t,r){return t=ut(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,gt()?Reflect.construct(t,r||[],ut(e).constructor):t.apply(e,r))}function gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gt=function(){return!!e})()}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ut(e)}function lt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}var It=/^[1-9]\\.\\d$/;function ft(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}var Ct=function(e){function t(e,r){var A;return st(this,t),(A=ct(this,t,["Missing data [".concat(e,", ").concat(r,")"),"MissingDataException"])).begin=e,A.end=r,A}return lt(t,X),at(t)}(),Bt=function(e){function t(e){return st(this,t),ct(this,t,[e,"ParserEOFException"])}return lt(t,X),at(t)}(),Qt=function(e){function t(e){return st(this,t),ct(this,t,[e,"XRefEntryException"])}return lt(t,X),at(t)}(),Et=function(e){function t(e){return st(this,t),ct(this,t,[e,"XRefParseException"])}return lt(t,X),at(t)}();function dt(e){var t=e.length;if(0===t)return new Uint8Array(0);if(1===t)return new Uint8Array(e[0]);for(var r=0,A=0;A<t;A++)r+=e[A].byteLength;for(var n=new Uint8Array(r),i=0,a=0;a<t;a++){var o=new Uint8Array(e[a]);n.set(o,i),i+=o.byteLength}return n}function yt(e){for(var t,r=e.dict,A=e.key,n=e.getArray,i=void 0!==n&&n,a=e.stopWhenFound,o=void 0===a||a,s=new Pe;r instanceof He&&(!r.objId||!s.has(r.objId));){r.objId&&s.put(r.objId);var c=i?r.getArray(A):r.get(A);if(void 0!==c){if(o)return c;(t||(t=[])).push(c)}r=r.get("Parent")}return t}var pt=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function vt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,A=[];e>=1e3;)e-=1e3,A.push("M");r=e/100|0,e%=100,A.push(pt[r]),r=e/10|0,e%=10,A.push(pt[10+r]),A.push(pt[20+e]);var n=A.join("");return t?n.toLowerCase():n}function mt(e){return e<=0?0:Math.ceil(Math.log2(e))}function wt(e,t){return e[t]<<24>>24}function bt(e,t){return e[t]<<8|e[t+1]}function kt(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function Dt(e){return 32===e||9===e||13===e||10===e}function St(e,t){return Array.isArray(e)?(null===t||e.length===t)&&e.every((function(e){return"number"==typeof e})):ArrayBuffer.isView(e)&&(0===e.length||"number"==typeof e[0])&&(null===t||e.length===t)}function Ft(e,t){return St(e,6)?e:t}function xt(e,t){return St(e,4)?e:t}function Rt(e,t){return St(e,4)?ge.normalizeRect(e):t}function Gt(e){var t=/(.+)\\[(\\d+)\\]$/;return e.split(".").map((function(e){var r=e.match(t);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))}function Nt(e){for(var t=[],r=0,A=0,n=e.length;A<n;A++){var i=e.charCodeAt(A);(i<33||i>126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(r<A&&t.push(e.substring(r,A)),t.push("#".concat(i.toString(16))),r=A+1)}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))}function Lt(e){return e.replaceAll(/([()\\\\\\n\\r])/g,(function(e){return"\\n"===e?"\\\\n":"\\r"===e?"\\\\r":"\\\\".concat(e)}))}function Ut(e,t,r,A){if(e){var n=null;if(e instanceof Ye){if(A.has(e))return;n=e,A.put(n),e=t.fetch(e)}if(Array.isArray(e)){var i,a=rt(e);try{for(a.s();!(i=a.n()).done;)Ut(i.value,t,r,A)}catch(e){a.e(e)}finally{a.f()}}else if(e instanceof He){if(Ke(e.get("S"),"JavaScript")){var o,s=e.get("JS");s instanceof ze?o=s.getString():"string"==typeof s&&(o=s),o&&(o=Ie(o).replaceAll("\\0","")),o&&r.push(o)}Ut(e.getRaw("Next"),t,r,A)}n&&A.remove(n)}}function Mt(e,t,r){var A=Object.create(null),n=yt({dict:t,key:"AA",stopWhenFound:!1});if(n)for(var i=n.length-1;i>=0;i--){var a=n[i];if(a instanceof He){var o,s=rt(a.getKeys());try{for(s.s();!(o=s.n()).done;){var c=o.value,g=r[c];if(g){var u=a.getRaw(c),l=new Pe,h=[];Ut(u,e,h,l),h.length>0&&(A[g]=h)}}}catch(e){s.e(e)}finally{s.f()}}}if(t.has("A")){var I=[];Ut(t.get("A"),e,I,new Pe),I.length>0&&(A.Action=I)}return oe(A)>0?A:null}var Jt={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function Ht(e){var t,r,A;return et().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=0,r=e.length;case 1:if(!(t<r)){n.next=9;break}return(A=e.codePointAt(t))>55295&&(A<57344||A>65533)&&t++,n.next=6,A;case 6:t++,n.next=1;break;case 9:case"end":return n.stop()}}),tt)}function Yt(e){for(var t=[],r=0,A=0,n=e.length;A<n;A++){var i=e.codePointAt(A);if(32<=i&&i<=126){var a=Jt[i];a&&(r<A&&t.push(e.substring(r,A)),t.push(a),r=A+1)}else r<A&&t.push(e.substring(r,A)),t.push("&#x".concat(i.toString(16).toUpperCase(),";")),i>55295&&(i<57344||i>65533)&&A++,r=A+1}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=/^("|\').*("|\')$/.exec(e);if(r&&r[1]===r[2]){if(new RegExp("[^\\\\\\\\]".concat(r[1])).test(e.slice(1,-1)))return t&&q("FontFamily contains unescaped ".concat(r[1],": ").concat(e,".")),!1}else{var A,n=rt(e.split(/[ \\t]+/));try{for(n.s();!(A=n.n()).done;){var i=A.value;if(/^(\\d|(-(\\d|-)))/.test(i)||!/^[\\w-\\\\]+$/.test(i))return t&&q("FontFamily contains invalid <custom-ident>: ".concat(e,".")),!1}}catch(e){n.e(e)}finally{n.f()}}return!0}function Ot(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),r=e.fontFamily,A=e.fontWeight,n=e.italicAngle;if(!Pt(r,!0))return!1;var i=A?A.toString():"";e.fontWeight=t.has(i)?i:"400";var a=parseFloat(n);return e.italicAngle=isNaN(a)||a<-90||a>90?"14":n.toString(),!0}function Kt(e){var t=new RegExp("^\\\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\\\.")+")\\\\((?:\'|\\")([^\'\\"]*)(?:\'|\\")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))","i").exec(e);if(null!=t&&t[2]){var r=t[2],A=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(A=!0),{url:r,newWindow:A}}return null}function Tt(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function qt(e){if(!e)return null;var t,r=new Map,A=rt(e);try{for(A.s();!(t=A.n()).done;){var n=$e(t.value,2),i=n[0],a=n[1];if(i.startsWith(d)){var o=r.get(a.pageIndex);o||(o=[],r.set(a.pageIndex,o)),o.push(a)}}}catch(e){A.e(e)}finally{A.f()}return r.size>0?r:null}function jt(e){return function(e){return/^[\\x00-\\x7F]*$/.test(e)}(e)?e:Zt(e,!0)}function Wt(e){for(var t=[],r=0,A=e.length;r<A;r++){var n=e.charCodeAt(r);t.push((n>>8&255).toString(16).padStart(2,"0"),(255&n).toString(16).padStart(2,"0"))}return t.join("")}function Zt(e){var t=[];arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&t.push("þÿ");for(var r=0,A=e.length;r<A;r++){var n=e.charCodeAt(r);t.push(String.fromCharCode(n>>8&255),String.fromCharCode(255&n))}return t.join("")}function _t(e,t,r){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,r];case 270:return[0,-1,1,0,0,r];default:throw new Error("Invalid rotation")}}function Xt(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,er(A.key),A)}}function $t(e,t,r){return t&&zt(e.prototype,t),r&&zt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function er(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function tr(e,t,r){return t=Ar(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,rr()?Reflect.construct(t,r||[],Ar(e).constructor):t.apply(e,r))}function rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rr=function(){return!!e})()}function Ar(e){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(e)}function nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}function ir(e,t){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ir(e,t)}r(7710);var ar=function(e){function t(e,r,A,n){var i;return Vt(this,t),(i=tr(this,t)).bytes=e instanceof Uint8Array?e:new Uint8Array(e),i.start=r||0,i.pos=i.start,i.end=r+A||i.bytes.length,i.dict=n,i}return nr(t,ze),$t(t,[{key:"length",get:function(){return this.end-this.start}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"getByte",value:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,A=this.end;if(!e)return t.subarray(r,A);var n=r+e;return n>A&&(n=A),this.pos=n,t.subarray(r,n)}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,r){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new t(this.bytes.buffer,e,r,A)}}])}(),or=function(e){function t(e){return Vt(this,t),tr(this,t,[ie(e)])}return nr(t,ar),$t(t)}(),sr=function(e){function t(){return Vt(this,t),tr(this,t,[new Uint8Array(0)])}return nr(t,ar),$t(t)}();function cr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return gr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lr(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Ir(A.key),A)}}function hr(e,t,r){return t&&lr(e.prototype,t),r&&lr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ir(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function fr(e,t,r){return t=Br(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Cr()?Reflect.construct(t,r||[],Br(e).constructor):t.apply(e,r))}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cr=function(){return!!e})()}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function Qr(e,t){return Qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qr(e,t)}var Er=function(e){function t(e,r,A){var n;return ur(this,t),(n=fr(this,t,[new Uint8Array(e),0,e,null])).chunkSize=r,n._loadedChunks=new Set,n.numChunks=Math.ceil(e/r),n.manager=A,n.progressiveDataLength=0,n.lastSuccessfulEnsureByteChunk=-1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qr(e,t)}(t,ar),hr(t,[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this._loadedChunks.has(t)||e.push(t);return e}},{key:"numChunksLoaded",get:function(){return this._loadedChunks.size}},{key:"isDataLoaded",get:function(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function(e,t){var r=this.chunkSize;if(e%r!=0)throw new Error("Bad begin offset: ".concat(e));var A=e+t.byteLength;if(A%r!=0&&A!==this.bytes.length)throw new Error("Bad end offset: ".concat(A));this.bytes.set(new Uint8Array(t),e);for(var n=Math.floor(e/r),i=Math.floor((A-1)/r)+1,a=n;a<i;++a)this._loadedChunks.add(a)}},{key:"onReceiveProgressiveData",value:function(e){var t=this.progressiveDataLength,r=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;for(var A=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize),n=r;n<A;++n)this._loadedChunks.add(n)}},{key:"ensureByte",value:function(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new Ct(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t||t<=this.progressiveDataLength)){var r=Math.floor(e/this.chunkSize);if(!(r>this.numChunks))for(var A=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks),n=r;n<A;++n)if(!this._loadedChunks.has(n))throw new Ct(e,t)}}},{key:"nextEmptyChunk",value:function(e){for(var t=this.numChunks,r=0;r<t;++r){var A=(e+r)%t;if(!this._loadedChunks.has(A))return A}return null}},{key:"hasChunk",value:function(e){return this._loadedChunks.has(e)}},{key:"getByte",value:function(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getBytes",value:function(e){var t=this.bytes,r=this.pos,A=this.end;if(!e)return A>this.progressiveDataLength&&this.ensureRange(r,A),t.subarray(r,A);var n=r+e;return n>A&&(n=A),n>this.progressiveDataLength&&this.ensureRange(r,n),this.pos=n,t.subarray(r,n)}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function A(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),A.prototype=Object.create(this),A.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,A=[],n=t;n<r;++n)this._loadedChunks.has(n)||A.push(n);return A},Object.defineProperty(A.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var n=new A;return n.pos=n.start=e,n.end=e+t||this.end,n.dict=r,n}},{key:"getBaseStreams",value:function(){return[this]}}])}(),dr=function(){return hr((function e(t,r){ur(this,e),this.length=r.length,this.chunkSize=r.rangeChunkSize,this.stream=new Er(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=r.disableAutoFetch,this.msgHandler=r.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=Promise.withResolvers()}),[{key:"sendRequest",value:function(e,t){var r=this,A=this.pdfNetworkStream.getRangeReader(e,t);A.isStreamingSupported||(A.onProgress=this.onProgress.bind(this));var n=[],i=0;return new Promise((function(e,t){var a=function(o){var s=o.value,c=o.done;try{if(c){var g=dt(n);return n=null,void e(g)}i+=s.byteLength,A.isStreamingSupported&&r.onProgress({loaded:i}),n.push(s),A.read().then(a,t)}catch(e){t(e)}};A.read().then(a,t)})).then((function(t){r.aborted||r.onReceiveData({chunk:t,begin:e})}))}},{key:"requestAllChunks",value:function(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])){var e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this,r=this.currRequestId++,A=new Set;this._chunksNeededByRequest.set(r,A);var n,i=cr(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;this.stream.hasChunk(a)||A.add(a)}}catch(e){i.e(e)}finally{i.f()}if(0===A.size)return Promise.resolve();var o=Promise.withResolvers();this._promisesByRequest.set(r,o);var s,c=[],g=cr(A);try{for(g.s();!(s=g.n()).done;){var u=s.value,l=this._requestsByChunk.get(u);l||(l=[],this._requestsByChunk.set(u,l),c.push(u)),l.push(r)}}catch(e){g.e(e)}finally{g.f()}if(c.length>0){var h,I=cr(this.groupChunks(c));try{for(I.s();!(h=I.n()).done;){var f=h.value,C=f.beginChunk*this.chunkSize,B=Math.min(f.endChunk*this.chunkSize,this.length);this.sendRequest(C,B).catch(o.reject)}}catch(e){I.e(e)}finally{I.f()}}return o.promise.catch((function(e){if(!t.aborted)throw e}))}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),A=this.getEndChunk(t),n=[],i=r;i<A;++i)n.push(i);return this._requestChunks(n)}},{key:"requestRanges",value:function(){var e,t=[],r=cr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);try{for(r.s();!(e=r.n()).done;)for(var A=e.value,n=this.getBeginChunk(A.begin),i=this.getEndChunk(A.end),a=n;a<i;++a)t.includes(a)||t.push(a)}catch(e){r.e(e)}finally{r.f()}return t.sort((function(e,t){return e-t})),this._requestChunks(t)}},{key:"groupChunks",value:function(e){for(var t=[],r=-1,A=-1,n=0,i=e.length;n<i;++n){var a=e[n];r<0&&(r=a),A>=0&&A+1!==a&&(t.push({beginChunk:r,endChunk:A+1}),r=a),n+1===e.length&&t.push({beginChunk:r,endChunk:a+1}),A=a}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,A=r?this.progressiveDataLength:e.begin,n=A+t.byteLength,i=Math.floor(A/this.chunkSize),a=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=n):this.stream.onReceiveData(A,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var o=[],s=i;s<a;++s){var c=this._requestsByChunk.get(s);if(c){this._requestsByChunk.delete(s);var g,u=cr(c);try{for(u.s();!(g=u.n()).done;){var l=g.value,h=this._chunksNeededByRequest.get(l);h.has(s)&&h.delete(s),h.size>0||o.push(l)}}catch(e){u.e(e)}finally{u.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var I;if(1===this.stream.numChunksLoaded){var f=this.stream.numChunks-1;this.stream.hasChunk(f)||(I=f)}else I=this.stream.nextEmptyChunk(a);Number.isInteger(I)&&this._requestChunks([I])}for(var C=0,B=o;C<B.length;C++){var Q=B[C],E=this._promisesByRequest.get(Q);this._promisesByRequest.delete(Q),E.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function(e){this._loadedStreamCapability.reject(e)}},{key:"getBeginChunk",value:function(e){return Math.floor(e/this.chunkSize)}},{key:"getEndChunk",value:function(e){return Math.floor((e-1)/this.chunkSize)+1}},{key:"abort",value:function(e){var t;this.aborted=!0,null===(t=this.pdfNetworkStream)||void 0===t||t.cancelAllRequests(e);var r,A=cr(this._promisesByRequest.values());try{for(A.s();!(r=A.n()).done;)r.value.reject(e)}catch(e){A.e(e)}finally{A.f()}}}])}();function yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function vr(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function mr(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function wr(e,t,r){return t=kr(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,br()?Reflect.construct(t,r||[],kr(e).constructor):t.apply(e,r))}function br(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(br=function(){return!!e})()}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}function Dr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sr(e,t)}function Sr(e,t){return Sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sr(e,t)}function Fr(){Fr=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function xr(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Lr(A.key),A)}}function Nr(e,t,r){return t&&Gr(e.prototype,t),r&&Gr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}r(6347),r(456),r(122),r(8653),r(7121),r(8856),r(8408),r(8937),r(7288),r(176),r(7879),r(98),r(4306),r(4262),r(2569),r(8492),r(4865),r(8075),r(3821),r(3034);var Ur=function(){function e(t,r){Rr(this,e),this.name=t,this.numComps=r}return Nr(e,[{key:"getRgb",value:function(e,t){var r=new Uint8ClampedArray(3);return this.getRgbItem(e,t,r,0),r}},{key:"getRgbItem",value:function(e,t,r,A){j("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){j("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){j("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,r){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,r,A,n,i,a,o,s){var c=t*r,g=null,u=1<<a,l=r!==n||t!==A;if(this.isPassthrough(a))g=o;else if(1===this.numComps&&c>u&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var h=a<=8?new Uint8Array(u):new Uint16Array(u),I=0;I<u;I++)h[I]=I;var f=new Uint8ClampedArray(3*u);if(this.getRgbBuffer(h,0,u,f,0,a,0),l){g=new Uint8Array(3*c);for(var C=0,B=0;B<c;++B){var Q=3*o[B];g[C++]=f[Q],g[C++]=f[Q+1],g[C++]=f[Q+2]}}else for(var E=0,d=0;d<c;++d){var y=3*o[d];e[E++]=f[y],e[E++]=f[y+1],e[E++]=f[y+2],E+=s}}else l?(g=new Uint8ClampedArray(3*c),this.getRgbBuffer(o,0,c,g,0,a,0)):this.getRgbBuffer(o,0,A*i,e,0,a,s);if(g)if(l)!function(e,t,r,A,n,i,a){a=1!==a?0:a;for(var o,s=r/n,c=A/i,g=0,u=new Uint16Array(n),l=3*r,h=0;h<n;h++)u[h]=3*Math.floor(h*s);for(var I=0;I<i;I++)for(var f=Math.floor(I*c)*l,C=0;C<n;C++)o=f+u[C],t[g++]=e[o++],t[g++]=e[o++],t[g++]=e[o++],g+=a}(g,e,t,r,A,n,s);else for(var p=0,v=0,m=0,w=A*i;m<w;m++)e[p++]=g[v++],e[p++]=g[v++],e[p++]=g[v++],p+=s}},{key:"usesZeroToOneRange",get:function(){return _(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function(e,t,r,A){if(!r)throw new Error(\'ColorSpace._cache - expected "localColorSpaceCache" argument.\');if(!A)throw new Error(\'ColorSpace._cache - expected "parsedColorSpace" argument.\');var n,i;e instanceof Ye&&(i=e,e=t.fetch(e)),e instanceof Ue&&(n=e.name),(n||i)&&r.set(n,i,A)}},{key:"getCached",value:function(e,t,r){if(!r)throw new Error(\'ColorSpace.getCached - expected "localColorSpaceCache" argument.\');if(e instanceof Ye){var A=r.getByRef(e);if(A)return A;try{e=t.fetch(e)}catch(e){if(e instanceof Ct)throw e}}if(e instanceof Ue){var n=r.getByName(e.name);if(n)return n}return null}},{key:"parseAsync",value:(t=Fr().mark((function e(t){var r,A,n,i,a,o,s;return Fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cs,A=t.xref,n=t.resources,i=void 0===n?null:n,a=t.pdfFunctionFactory,o=t.localColorSpaceCache,s=this._parse(r,A,i,a),this._cache(r,A,o,s),e.abrupt("return",s);case 4:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(A,n){var i=t.apply(e,r);function a(e){xr(i,A,n,a,o,"next",e)}function o(e){xr(i,A,n,a,o,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)})},{key:"parse",value:function(e){var t=e.cs,r=e.xref,A=e.resources,n=void 0===A?null:A,i=e.pdfFunctionFactory,a=e.localColorSpaceCache,o=this.getCached(t,r,a);if(o)return o;var s=this._parse(t,r,n,i);return this._cache(t,r,a,s),s}},{key:"_parse",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,A=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof Ue)switch(e.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"DeviceRGBA":return this.singletons.rgba;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new Jr(null);default:if(r instanceof He){var n=r.get("ColorSpace");if(n instanceof He){var i=n.get(e.name);if(i){if(i instanceof Ue)return this._parse(i,t,r,A);e=i;break}}}return q("Unrecognized ColorSpace: ".concat(e.name)),this.singletons.gray}if(Array.isArray(e)){var a,o,s,c,g,u,l=t.fetchIfRef(e[0]).name;switch(l){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return c=(a=t.fetchIfRef(e[1])).getArray("WhitePoint"),g=a.getArray("BlackPoint"),u=a.get("Gamma"),new Wr(c,g,u);case"CalRGB":c=(a=t.fetchIfRef(e[1])).getArray("WhitePoint"),g=a.getArray("BlackPoint"),u=a.getArray("Gamma");var h=a.getArray("Matrix");return new Xr(c,g,u,h);case"ICCBased":var I=t.fetchIfRef(e[1]).dict;o=I.get("N");var f=I.get("Alternate");if(f){var C=this._parse(f,t,r,A);if(C.numComps===o)return C;q("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===o)return this.singletons.gray;if(3===o)return this.singletons.rgb;if(4===o)return this.singletons.cmyk;break;case"Pattern":return(s=e[1]||null)&&(s=this._parse(s,t,r,A)),new Jr(s);case"I":case"Indexed":s=this._parse(e[1],t,r,A);var B=t.fetchIfRef(e[2])+1,Q=t.fetchIfRef(e[3]);return new Hr(s,B,Q);case"Separation":case"DeviceN":var E=t.fetchIfRef(e[1]);o=Array.isArray(E)?E.length:1,s=this._parse(e[2],t,r,A);var d=A.create(e[3]);return new Mr(o,s,d);case"Lab":c=(a=t.fetchIfRef(e[1])).getArray("WhitePoint"),g=a.getArray("BlackPoint");var y=a.getArray("Range");return new CA(c,g,y);default:return q("Unimplemented ColorSpace object: ".concat(l)),this.singletons.gray}}return q("Unrecognized ColorSpace object: ".concat(e)),this.singletons.gray}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return q("The decode map is not the correct length"),!0;for(var r=0,A=e.length;r<A;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0}},{key:"singletons",get:function(){return _(this,"singletons",{get gray(){return _(this,"gray",new Yr)},get rgb(){return _(this,"rgb",new Pr)},get rgba(){return _(this,"rgba",new Or)},get cmyk(){return _(this,"cmyk",new Tr)}})}}]);var t,r}(),Mr=function(e){function t(e,r,A){var n;return Rr(this,t),(n=wr(this,t,["Alternate",e])).base=r,n.tintFn=A,n.tmpBuf=new Float32Array(r.numComps),n}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){var n=this.tmpBuf;this.tintFn(e,t,n,0),this.base.getRgbItem(n,0,r,A)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){var o,s,c=this.tintFn,g=this.base,u=1/((1<<i)-1),l=g.numComps,h=g.usesZeroToOneRange,I=(g.isPassthrough(8)||!h)&&0===a,f=I?n:0,C=I?A:new Uint8ClampedArray(l*r),B=this.numComps,Q=new Float32Array(B),E=new Float32Array(l);for(o=0;o<r;o++){for(s=0;s<B;s++)Q[s]=e[t++]*u;if(c(Q,0,E,0),h)for(s=0;s<l;s++)C[f++]=255*E[s];else g.getRgbItem(E,0,C,f),f+=l}I||g.getRgbBuffer(C,0,r,A,n,8,a)}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}])}(),Jr=function(e){function t(e){var r;return Rr(this,t),(r=wr(this,t,["Pattern",null])).base=e,r}return Dr(t,Ur),Nr(t,[{key:"isDefaultDecode",value:function(e,t){j("Should not call PatternCS.isDefaultDecode")}}])}(),Hr=function(e){function t(e,r,A){var n;Rr(this,t),(n=wr(this,t,["Indexed",1])).base=e,n.highVal=r;var i=e.numComps*r;if(n.lookup=new Uint8Array(i),A instanceof ze){var a=A.getBytes(i);n.lookup.set(a)}else{if("string"!=typeof A)throw new re("IndexedCS - unrecognized lookup table: ".concat(A));for(var o=0;o<i;++o)n.lookup[o]=255&A.charCodeAt(o)}return n}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){var n=this.base.numComps,i=e[t]*n;this.base.getRgbBuffer(this.lookup,i,1,r,A,8,0)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=this.base,s=o.numComps,c=o.getOutputLength(s,a),g=this.lookup,u=0;u<r;++u){var l=e[t++]*s;o.getRgbBuffer(g,l,1,A,n,8,a),n+=c}}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}},{key:"isDefaultDecode",value:function(e,t){return!Array.isArray(e)||(2!==e.length?(q("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?(q("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}])}(),Yr=function(e){function t(){return Rr(this,t),wr(this,t,["DeviceGray",1])}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){var n=255*e[t];r[A]=r[A+1]=r[A+2]=n}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=255/((1<<i)-1),s=t,c=n,g=0;g<r;++g){var u=o*e[s++];A[c++]=u,A[c++]=u,A[c++]=u,c+=a}}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}])}(),Pr=function(e){function t(){return Rr(this,t),wr(this,t,["DeviceRGB",3])}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){r[A]=255*e[t],r[A+1]=255*e[t+1],r[A+2]=255*e[t+2]}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){if(8!==i||0!==a)for(var o=255/((1<<i)-1),s=t,c=n,g=0;g<r;++g)A[c++]=o*e[s++],A[c++]=o*e[s++],A[c++]=o*e[s++],c+=a;else A.set(e.subarray(t,t+3*r),n)}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isPassthrough",value:function(e){return 8===e}}])}(),Or=function(e){function t(){return Rr(this,t),wr(this,t,["DeviceRGBA",4])}return Dr(t,Ur),Nr(t,[{key:"getOutputLength",value:function(e,t){return 4*e}},{key:"isPassthrough",value:function(e){return 8===e}}])}(),Kr=new WeakSet,Tr=function(e){function t(){var e;return Rr(this,t),vr(e=wr(this,t,["DeviceCMYK",4]),Kr),e}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){mr(Kr,this,qr).call(this,e,t,1,r,A)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=1/((1<<i)-1),s=0;s<r;s++)mr(Kr,this,qr).call(this,e,t,o,A,n),t+=4,n+=3+a}},{key:"getOutputLength",value:function(e,t){return e/4*(3+t)|0}}])}();function qr(e,t,r,A,n){var i=e[t]*r,a=e[t+1]*r,o=e[t+2]*r,s=e[t+3]*r;A[n]=255+i*(-4.387332384609988*i+54.48615194189176*a+18.82290502165302*o+212.25662451639585*s-285.2331026137004)+a*(1.7149763477362134*a-5.6096736904047315*o+-17.873870861415444*s-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*s+17.5119270841813)+s*(-21.86122147463605*s-189.48180835922747),A[n+1]=255+i*(8.841041422036149*i+60.118027045597366*a+6.871425592049007*o+31.159100130055922*s-79.2970844816548)+a*(-15.310361306967817*a+17.575251261109482*o+131.35250912493976*s-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*s-24.86741582555878)+s*(-20.737325471181034*s-187.80453709719578),A[n+2]=255+i*(.8842522430003296*i+8.078677503112928*a+30.89978309703729*o-.23883238689178934*s-14.183576799673286)+a*(10.49593273432072*a+63.02378494754052*o+50.606957656360734*s-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*s-193.58209356861505)+s*(-22.33816807309886*s-180.12613974708367)}var jr=new WeakSet,Wr=function(e){function t(e,r,A){var n;if(Rr(this,t),vr(n=wr(this,t,["CalGray",1]),jr),!e)throw new re("WhitePoint missing - required for color space CalGray");var i=yr(e,3);n.XW=i[0],n.YW=i[1],n.ZW=i[2];var a=yr(r||[0,0,0],3);if(n.XB=a[0],n.YB=a[1],n.ZB=a[2],n.G=A||1,n.XW<0||n.ZW<0||1!==n.YW)throw new re("Invalid WhitePoint components for ".concat(n.name,", no fallback available"));return(n.XB<0||n.YB<0||n.ZB<0)&&(T("Invalid BlackPoint for ".concat(n.name,", falling back to default.")),n.XB=n.YB=n.ZB=0),0===n.XB&&0===n.YB&&0===n.ZB||q("".concat(n.name,", BlackPoint: XB: ").concat(n.XB,", YB: ").concat(n.YB,", ")+"ZB: ".concat(n.ZB,", only default values are supported.")),n.G<1&&(T("Invalid Gamma: ".concat(n.G," for ").concat(n.name,", falling back to default.")),n.G=1),n}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){mr(jr,this,Zr).call(this,e,t,r,A,1)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=1/((1<<i)-1),s=0;s<r;++s)mr(jr,this,Zr).call(this,e,t,A,n,o),t+=1,n+=3+a}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}])}();function Zr(e,t,r,A,n){var i=e[t]*n,a=Math.pow(i,this.G),o=this.YW*a,s=Math.max(295.8*Math.pow(o,.3333333333333333)-40.8,0);r[A]=s,r[A+1]=s,r[A+2]=s}var _r=new WeakSet,Xr=function(e){function t(e,r,A,n){var i;if(Rr(this,t),vr(i=wr(this,t,["CalRGB",3]),_r),!e)throw new re("WhitePoint missing - required for color space CalRGB");var a=yr(i.whitePoint=e,3),o=a[0],s=a[1],c=a[2],g=yr(i.blackPoint=r||new Float32Array(3),3),u=g[0],l=g[1],h=g[2],I=yr(A||new Float32Array([1,1,1]),3);i.GR=I[0],i.GG=I[1],i.GB=I[2];var f=yr(n||new Float32Array([1,0,0,0,1,0,0,0,1]),9);if(i.MXA=f[0],i.MYA=f[1],i.MZA=f[2],i.MXB=f[3],i.MYB=f[4],i.MZB=f[5],i.MXC=f[6],i.MYC=f[7],i.MZC=f[8],o<0||c<0||1!==s)throw new re("Invalid WhitePoint components for ".concat(i.name,", no fallback available"));return(u<0||l<0||h<0)&&(T("Invalid BlackPoint for ".concat(i.name," [").concat(u,", ").concat(l,", ").concat(h,"], ")+"falling back to default."),i.blackPoint=new Float32Array(3)),(i.GR<0||i.GG<0||i.GB<0)&&(T("Invalid Gamma [".concat(i.GR,", ").concat(i.GG,", ").concat(i.GB,"] for ")+"".concat(i.name,", falling back to default.")),i.GR=i.GG=i.GB=1),i}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){mr(_r,this,aA).call(this,e,t,r,A,1)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=1/((1<<i)-1),s=0;s<r;++s)mr(_r,this,aA).call(this,e,t,A,n,o),t+=3,n+=3+a}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}}])}();function Vr(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function zr(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}function $r(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}function eA(e){return e<=.0031308?mr(_r,this,tA).call(this,0,1,12.92*e):e>=.99554525?1:mr(_r,this,tA).call(this,0,1,1.055*Math.pow(e,1/2.4)-.055)}function tA(e,t,r){return Math.max(e,Math.min(t,r))}function rA(e){return e<0?-mr(_r,this,rA).call(this,-e):e>8?Math.pow((e+16)/116,3):e*IA._}function AA(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var A=mr(_r,this,rA).call(this,0),n=(1-A)/(1-mr(_r,this,rA).call(this,e[0])),i=1-n,a=(1-A)/(1-mr(_r,this,rA).call(this,e[1])),o=1-a,s=(1-A)/(1-mr(_r,this,rA).call(this,e[2])),c=1-s;r[0]=t[0]*n+i,r[1]=t[1]*a+o,r[2]=t[2]*s+c}function nA(e,t,r){if(1===e[0]&&1===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var A=r;mr(_r,this,Vr).call(this,oA._,t,A);var n=uA._;mr(_r,this,zr).call(this,e,A,n),mr(_r,this,Vr).call(this,sA._,n,r)}function iA(e,t,r){var A=r;mr(_r,this,Vr).call(this,oA._,t,A);var n=uA._;mr(_r,this,$r).call(this,e,A,n),mr(_r,this,Vr).call(this,sA._,n,r)}function aA(e,t,r,A,n){var i=mr(_r,this,tA).call(this,0,1,e[t]*n),a=mr(_r,this,tA).call(this,0,1,e[t+1]*n),o=mr(_r,this,tA).call(this,0,1,e[t+2]*n),s=1===i?1:Math.pow(i,this.GR),c=1===a?1:Math.pow(a,this.GG),g=1===o?1:Math.pow(o,this.GB),u=this.MXA*s+this.MXB*c+this.MXC*g,l=this.MYA*s+this.MYB*c+this.MYC*g,h=this.MZA*s+this.MZB*c+this.MZC*g,I=lA._;I[0]=u,I[1]=l,I[2]=h;var f=hA._;mr(_r,this,nA).call(this,this.whitePoint,I,f);var C=lA._;mr(_r,this,AA).call(this,this.blackPoint,f,C);var B=hA._;mr(_r,this,iA).call(this,gA._,C,B);var Q=lA._;mr(_r,this,Vr).call(this,cA._,B,Q),r[A]=255*mr(_r,this,eA).call(this,Q[0]),r[A+1]=255*mr(_r,this,eA).call(this,Q[1]),r[A+2]=255*mr(_r,this,eA).call(this,Q[2])}var oA={_:new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])},sA={_:new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])},cA={_:new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])},gA={_:new Float32Array([1,1,1])},uA={_:new Float32Array(3)},lA={_:new Float32Array(3)},hA={_:new Float32Array(3)},IA={_:Math.pow(24/116,3)/8},fA=new WeakSet,CA=function(e){function t(e,r,A){var n;if(Rr(this,t),vr(n=wr(this,t,["Lab",3]),fA),!e)throw new re("WhitePoint missing - required for color space Lab");var i=yr(e,3);n.XW=i[0],n.YW=i[1],n.ZW=i[2];var a=yr(A||[-100,100,-100,100],4);n.amin=a[0],n.amax=a[1],n.bmin=a[2],n.bmax=a[3];var o=yr(r||[0,0,0],3);if(n.XB=o[0],n.YB=o[1],n.ZB=o[2],n.XW<0||n.ZW<0||1!==n.YW)throw new re("Invalid WhitePoint components, no fallback available");return(n.XB<0||n.YB<0||n.ZB<0)&&(T("Invalid BlackPoint, falling back to default"),n.XB=n.YB=n.ZB=0),(n.amin>n.amax||n.bmin>n.bmax)&&(T("Invalid Range, falling back to defaults"),n.amin=-100,n.amax=100,n.bmin=-100,n.bmax=100),n}return Dr(t,Ur),Nr(t,[{key:"getRgbItem",value:function(e,t,r,A){mr(fA,this,EA).call(this,e,t,!1,r,A)}},{key:"getRgbBuffer",value:function(e,t,r,A,n,i,a){for(var o=(1<<i)-1,s=0;s<r;s++)mr(fA,this,EA).call(this,e,t,o,A,n),t+=3,n+=3+a}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isDefaultDecode",value:function(e,t){return!0}},{key:"usesZeroToOneRange",get:function(){return _(this,"usesZeroToOneRange",!1)}}])}();function BA(e){return e>=6/29?Math.pow(e,3):108/841*(e-4/29)}function QA(e,t,r,A){return r+e*(A-r)/t}function EA(e,t,r,A,n){var i=e[t],a=e[t+1],o=e[t+2];!1!==r&&(i=mr(fA,this,QA).call(this,i,r,0,100),a=mr(fA,this,QA).call(this,a,r,this.amin,this.amax),o=mr(fA,this,QA).call(this,o,r,this.bmin,this.bmax)),a>this.amax?a=this.amax:a<this.amin&&(a=this.amin),o>this.bmax?o=this.bmax:o<this.bmin&&(o=this.bmin);var s,c,g,u=(i+16)/116,l=u+a/500,h=u-o/200,I=this.XW*mr(fA,this,BA).call(this,l),f=this.YW*mr(fA,this,BA).call(this,u),C=this.ZW*mr(fA,this,BA).call(this,h);this.ZW<1?(s=3.1339*I+-1.617*f+-.4906*C,c=-.9785*I+1.916*f+.0333*C,g=.072*I+-.229*f+1.4057*C):(s=3.2406*I+-1.5372*f+-.4986*C,c=-.9689*I+1.8758*f+.0415*C,g=.0557*I+-.204*f+1.057*C),A[n]=255*Math.sqrt(s),A[n+1]=255*Math.sqrt(c),A[n+2]=255*Math.sqrt(g)}function dA(){dA=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function yA(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function pA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,wA(A.key),A)}}function mA(e,t,r){return t&&vA(e.prototype,t),r&&vA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wA(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function bA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function kA(e,t){for(var r=0,A=0;A<=t;A++)r=r<<8|e[A];return r>>>0}function DA(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(String,function(e){return function(e){if(Array.isArray(e))return bA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bA(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.subarray(0,t+1)))}function SA(e,t,r){for(var A=0,n=r;n>=0;n--)A+=e[n]+t[n],e[n]=255&A,A>>=8}function FA(e,t){for(var r=1,A=t;A>=0&&r>0;A--)r+=e[A],e[A]=255&r,r>>=8}r(3276);var xA=16,RA=function(){return mA((function e(t){pA(this,e),this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}),[{key:"readByte",value:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new re("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t}},{key:"readSigned",value:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}},{key:"readHex",value:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}},{key:"readHexNumber",value:function(e,t){var r,A=this.tmpBuf,n=0;do{var i=this.readByte();if(i<0)throw new re("unexpected EOF in bcmap");r=!(128&i),A[n++]=127&i}while(!r);for(var a=t,o=0,s=0;a>=0;){for(;s<8&&A.length>0;)o|=A[--n]<<s,s+=7;e[a]=255&o,a--,o>>=8,s-=8}}},{key:"readHexSigned",value:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,A=0,n=0;n<=t;n++)A=(1&A)<<8|e[n],e[n]=A>>1^r}},{key:"readString",value:function(){for(var e=this.readNumber(),t=new Array(e),r=0;r<e;r++)t[r]=this.readNumber();return String.fromCharCode.apply(String,t)}}])}(),GA=function(){return mA((function e(){pA(this,e)}),[{key:"process",value:(e=dA().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m;return dA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new RA(t),i=n.readByte(),r.vertical=!!(1&i),a=null,o=new Uint8Array(xA),s=new Uint8Array(xA),c=new Uint8Array(xA),g=new Uint8Array(xA),u=new Uint8Array(xA);case 9:if(!((h=n.readByte())>=0)){e.next=68;break}if(7!=(I=h>>5)){e.next=20;break}e.t0=31&h,e.next=0===e.t0?15:1===e.t0?17:19;break;case 15:return n.readString(),e.abrupt("break",19);case 17:return a=n.readString(),e.abrupt("break",19);case 19:return e.abrupt("continue",9);case 20:if(f=!!(16&h),!(1+(C=15&h)>xA)){e.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:B=1,Q=n.readNumber(),e.t1=I,e.next=0===e.t1?29:1===e.t1?35:2===e.t1?41:3===e.t1?46:4===e.t1?53:5===e.t1?58:65;break;case 29:for(n.readHex(o,C),n.readHexNumber(s,C),SA(s,o,C),r.addCodespaceRange(C+1,kA(o,C),kA(s,C)),E=1;E<Q;E++)FA(s,C),n.readHexNumber(o,C),SA(o,s,C),n.readHexNumber(s,C),SA(s,o,C),r.addCodespaceRange(C+1,kA(o,C),kA(s,C));return e.abrupt("break",66);case 35:for(n.readHex(o,C),n.readHexNumber(s,C),SA(s,o,C),n.readNumber(),d=1;d<Q;d++)FA(s,C),n.readHexNumber(o,C),SA(o,s,C),n.readHexNumber(s,C),SA(s,o,C),n.readNumber();return e.abrupt("break",66);case 41:for(n.readHex(c,C),l=n.readNumber(),r.mapOne(kA(c,C),l),y=1;y<Q;y++)FA(c,C),f||(n.readHexNumber(u,C),SA(c,u,C)),l=n.readSigned()+(l+1),r.mapOne(kA(c,C),l);return e.abrupt("break",66);case 46:for(n.readHex(o,C),n.readHexNumber(s,C),SA(s,o,C),l=n.readNumber(),r.mapCidRange(kA(o,C),kA(s,C),l),p=1;p<Q;p++)FA(s,C),f?o.set(s):(n.readHexNumber(o,C),SA(o,s,C)),n.readHexNumber(s,C),SA(s,o,C),l=n.readNumber(),r.mapCidRange(kA(o,C),kA(s,C),l);return e.abrupt("break",66);case 53:for(n.readHex(c,B),n.readHex(g,C),r.mapOne(kA(c,B),DA(g,C)),v=1;v<Q;v++)FA(c,B),f||(n.readHexNumber(u,B),SA(c,u,B)),FA(g,C),n.readHexSigned(u,C),SA(g,u,C),r.mapOne(kA(c,B),DA(g,C));return e.abrupt("break",66);case 58:for(n.readHex(o,B),n.readHexNumber(s,B),SA(s,o,B),n.readHex(g,C),r.mapBfRange(kA(o,B),kA(s,B),DA(g,C)),m=1;m<Q;m++)FA(s,B),f?o.set(s):(n.readHexNumber(o,B),SA(o,s,B)),n.readHexNumber(s,B),SA(s,o,B),n.readHex(g,C),r.mapBfRange(kA(o,B),kA(s,B),DA(g,C));return e.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(I));case 66:e.next=9;break;case 68:if(!a){e.next=70;break}return e.abrupt("return",A(a));case 70:return e.abrupt("return",r);case 71:case"end":return e.stop()}}),e)})),t=function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){yA(i,A,n,a,o,"next",e)}function o(e){yA(i,A,n,a,o,"throw",e)}a(void 0)}))},function(e,r,A){return t.apply(this,arguments)})}]);var e,t}();function NA(e){return function(e){if(Array.isArray(e))return MA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||UA(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LA(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=UA(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function UA(e,t){if(e){if("string"==typeof e)return MA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MA(e,t):void 0}}function MA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function JA(){JA=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function HA(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function YA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PA(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,KA(A.key),A)}}function OA(e,t,r){return t&&PA(e.prototype,t),r&&PA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KA(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function TA(e,t,r){return t=jA(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,qA()?Reflect.construct(t,r||[],jA(e).constructor):t.apply(e,r))}function qA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qA=function(){return!!e})()}function jA(e){return jA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jA(e)}function WA(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZA(e,t)}function ZA(e,t){return ZA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZA(e,t)}var _A=new Uint8Array(0),XA=function(e){function t(e){var r;if(YA(this,t),(r=TA(this,t))._rawMinBufferLength=e||0,r.pos=0,r.bufferLength=0,r.eof=!1,r.buffer=_A,r.minBufferLength=512,e)for(;r.minBufferLength<e;)r.minBufferLength*=2;return r}return WA(t,ze),OA(t,[{key:"isEmpty",get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}},{key:"ensureBuffer",value:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r<e;)r*=2;var A=new Uint8Array(r);return A.set(t),this.buffer=A}},{key:"getByte",value:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}},{key:"getBytes",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,A=this.pos;if(e){for(this.ensureBuffer(A+e),t=A+e;!this.eof&&this.bufferLength<t;)this.readBlock(r);var n=this.bufferLength;t>n&&(t=n)}else{for(;!this.eof;)this.readBlock(r);t=this.bufferLength}return this.pos=t,this.buffer.subarray(A,t)}},{key:"getImageData",value:(r=JA().mark((function e(t){var r,A,n=arguments;return JA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.length>1&&void 0!==n[1]?n[1]:null,this.canAsyncDecodeImageFromBuffer){e.next=3;break}return e.abrupt("return",this.getBytes(t,r));case 3:return e.next=5,this.stream.asyncGetBytes();case 5:return A=e.sent,e.abrupt("return",this.decodeImage(A,r));case 7:case"end":return e.stop()}}),e,this)})),A=function(){var e=this,t=arguments;return new Promise((function(A,n){var i=r.apply(e,t);function a(e){HA(i,A,n,a,o,"next",e)}function o(e){HA(i,A,n,a,o,"throw",e)}a(void 0)}))},function(e){return A.apply(this,arguments)})},{key:"reset",value:function(){this.pos=0}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else for(var A=e+t;this.bufferLength<=A&&!this.eof;)this.readBlock();return new ar(this.buffer,e,t,r)}},{key:"getBaseStreams",value:function(){return this.str?this.str.getBaseStreams():null}}]);var r,A}(),VA=function(e){function t(e){var r,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;YA(this,t);var n,i=0,a=LA(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;i+=o instanceof XA?o._rawMinBufferLength:o.length}}catch(e){a.e(e)}finally{a.f()}return(r=TA(this,t,[i])).streams=e,r._onError=A,r}return WA(t,XA),OA(t,[{key:"readBlock",value:function(){var e=this.streams;if(0!==e.length){var t,r=e.shift();try{t=r.getBytes()}catch(e){var A;if(this._onError)return void this._onError(e,null===(A=r.dict)||void 0===A?void 0:A.objId);throw e}var n=this.bufferLength,i=n+t.length;this.ensureBuffer(i).set(t,n),this.bufferLength=i}else this.eof=!0}},{key:"getBaseStreams",value:function(){var e,t=[],r=LA(this.streams);try{for(r.s();!(e=r.n()).done;){var A=e.value.getBaseStreams();A&&t.push.apply(t,NA(A))}}catch(e){r.e(e)}finally{r.f()}return t.length>0?t:null}}])}();function zA(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,$A(A.key),A)}}function $A(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function en(e,t,r){return t=rn(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,tn()?Reflect.construct(t,r||[],rn(e).constructor):t.apply(e,r))}function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tn=function(){return!!e})()}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function An(e,t){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},An(e,t)}var nn=function(e){function t(e,r){var A;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r&&(r*=.8),(A=en(this,t,[r])).str=e,A.dict=e.dict,A.input=new Uint8Array(5),A}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(t,XA),r=t,A=[{key:"readBlock",value:function(){for(var e=this.str,t=e.getByte();Dt(t);)t=e.getByte();if(-1!==t&&126!==t){var r,A,n=this.bufferLength;if(122===t){for(r=this.ensureBuffer(n+4),A=0;A<4;++A)r[n+A]=0;this.bufferLength+=4}else{var i=this.input;for(i[0]=t,A=1;A<5;++A){for(t=e.getByte();Dt(t);)t=e.getByte();if(i[A]=t,-1===t||126===t)break}if(r=this.ensureBuffer(n+A-1),this.bufferLength+=A-1,A<5){for(;A<5;++A)i[A]=117;this.eof=!0}var a=0;for(A=0;A<5;++A)a=85*a+(i[A]-33);for(A=3;A>=0;--A)r[n+A]=255&a,a>>=8}}else this.eof=!0}}],A&&zA(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function on(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,sn(A.key),A)}}function sn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function cn(e,t,r){return t=un(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,gn()?Reflect.construct(t,r||[],un(e).constructor):t.apply(e,r))}function gn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gn=function(){return!!e})()}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function ln(e,t){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ln(e,t)}var hn=function(e){function t(e,r){var A;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r&&(r*=.5),(A=cn(this,t,[r])).str=e,A.dict=e.dict,A.firstDigit=-1,A}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ln(e,t)}(t,XA),r=t,(A=[{key:"readBlock",value:function(){var e=this.str.getBytes(8e3);if(e.length){var t,r=e.length+1>>1,A=this.ensureBuffer(this.bufferLength+r),n=this.bufferLength,i=this.firstDigit,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return an(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?an(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(a.s();!(t=a.n()).done;){var o=t.value,s=void 0;if(o>=48&&o<=57)s=15&o;else{if(!(o>=65&&o<=70||o>=97&&o<=102)){if(62===o){this.eof=!0;break}continue}s=9+(15&o)}i<0?i=s:(A[n++]=i<<4|s,i=-1)}}catch(e){a.e(e)}finally{a.f()}i>=0&&this.eof&&(A[n++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=n}else this.eof=!0}}])&&on(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function In(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,fn(A.key),A)}}function fn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Cn=-1,Bn=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],Qn=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],En=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],dn=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],yn=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],pn=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]],vn=function(){return e=function e(t){var r,A,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||"function"!=typeof t.next)throw new Error(\'CCITTFaxDecoder - invalid "source" parameter.\');for(this.source=t,this.eof=!1,this.encoding=n.K||0,this.eoline=n.EndOfLine||!1,this.byteAlign=n.EncodedByteAlign||!1,this.columns=n.Columns||1728,this.rows=n.Rows||0,this.eoblock=null===(r=n.EndOfBlock)||void 0===r||r,this.black=n.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(A=this._lookBits(12));)this._eatBits(1);1===A&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))},(t=[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,r,A,n,i=this.refLine,a=this.codingLine,o=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var s,c,g;if(this.err=!1,this.nextLine2D){for(A=0;a[A]<o;++A)i[A]=a[A];for(i[A++]=o,i[A]=o,a[0]=0,this.codingPos=0,e=0,t=0;a[this.codingPos]<o;)switch(s=this._getTwoDimCode()){case 0:this._addPixels(i[e+1],t),i[e+1]<o&&(e+=2);break;case 1:if(s=c=0,t){do{s+=g=this._getBlackCode()}while(g>=64);do{c+=g=this._getWhiteCode()}while(g>=64)}else{do{s+=g=this._getWhiteCode()}while(g>=64);do{c+=g=this._getBlackCode()}while(g>=64)}for(this._addPixels(a[this.codingPos]+s,t),a[this.codingPos]<o&&this._addPixels(a[this.codingPos]+c,1^t);i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 7:if(this._addPixels(i[e]+3,t),t^=1,a[this.codingPos]<o)for(++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 5:if(this._addPixels(i[e]+2,t),t^=1,a[this.codingPos]<o)for(++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 3:if(this._addPixels(i[e]+1,t),t^=1,a[this.codingPos]<o)for(++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 2:if(this._addPixels(i[e],t),t^=1,a[this.codingPos]<o)for(++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 8:if(this._addPixelsNeg(i[e]-3,t),t^=1,a[this.codingPos]<o)for(e>0?--e:++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 6:if(this._addPixelsNeg(i[e]-2,t),t^=1,a[this.codingPos]<o)for(e>0?--e:++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case 4:if(this._addPixelsNeg(i[e]-1,t),t^=1,a[this.codingPos]<o)for(e>0?--e:++e;i[e]<=a[this.codingPos]&&i[e]<o;)e+=2;break;case Cn:this._addPixels(o,0),this.eof=!0;break;default:T("bad 2d code"),this._addPixels(o,0),this.err=!0}}else for(a[0]=0,this.codingPos=0,t=0;a[this.codingPos]<o;){if(s=0,t)do{s+=g=this._getBlackCode()}while(g>=64);else do{s+=g=this._getWhiteCode()}while(g>=64);this._addPixels(a[this.codingPos]+s,t),t^=1}var u=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(s=this._lookBits(12),this.eoline)for(;s!==Cn&&1!==s;)this._eatBits(1),s=this._lookBits(12);else for(;0===s;)this._eatBits(1),s=this._lookBits(12);1===s?(this._eatBits(12),u=!0):s===Cn&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&u&&this.byteAlign){if(1===(s=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(A=0;A<4;++A)1!==(s=this._lookBits(12))&&T("bad rtc code: "+s),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((s=this._lookBits(13))===Cn)return this.eof=!0,-1;if(s>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&s))}this.outputBits=a[0]>0?a[this.codingPos=0]:a[this.codingPos=1],this.row++}if(this.outputBits>=8)n=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&a[this.codingPos]<o&&(this.codingPos++,this.outputBits=a[this.codingPos]-a[this.codingPos-1]);else{r=8,n=0;do{if("number"!=typeof this.outputBits)throw new re(\'Invalid /CCITTFaxDecode data, "outputBits" must be a number.\');this.outputBits>r?(n<<=r,1&this.codingPos||(n|=255>>8-r),this.outputBits-=r,r=0):(n<<=this.outputBits,1&this.codingPos||(n|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,a[this.codingPos]<o?(this.codingPos++,this.outputBits=a[this.codingPos]-a[this.codingPos-1]):r>0&&(n<<=r,r=0))}while(r)}return this.black&&(n^=255),n}},{key:"_addPixels",value:function(e,t){var r=this.codingLine,A=this.codingPos;e>r[A]&&(e>this.columns&&(T("row is wrong length"),this.err=!0,e=this.columns),1&A^t&&++A,r[A]=e),this.codingPos=A}},{key:"_addPixelsNeg",value:function(e,t){var r=this.codingLine,A=this.codingPos;if(e>r[A])e>this.columns&&(T("row is wrong length"),this.err=!0,e=this.columns),1&A^t&&++A,r[A]=e;else if(e<r[A]){for(e<0&&(T("invalid code"),this.err=!0,e=0);A>0&&e<r[A-1];)--A;r[A]=e}this.codingPos=A}},{key:"_findTableCode",value:function(e,t,r,A){for(var n=A||0,i=e;i<=t;++i){var a=this._lookBits(i);if(a===Cn)return[!0,1,!1];if(i<t&&(a<<=t-i),!n||a>=n){var o=r[a-n];if(o[0]===i)return this._eatBits(i),[!0,o[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){var r;if(t=this._lookBits(7),(null===(r=e=Bn[t])||void 0===r?void 0:r[0])>0)return this._eatBits(e[0]),e[1]}else{var A=this._findTableCode(1,7,Bn);if(A[0]&&A[2])return A[1]}return T("Bad two dim code"),Cn}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if((t=this._lookBits(12))===Cn)return 1;if((e=t>>5==0?Qn[t]:En[t>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,9,En);if(r[0])return r[1];if((r=this._findTableCode(11,12,Qn))[0])return r[1]}return T("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if((e=this._lookBits(13))===Cn)return 1;if((t=e>>7==0?dn[e]:e>>9==0&&e>>7!=0?yn[(e>>1)-64]:pn[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{var r=this._findTableCode(2,6,pn);if(r[0])return r[1];if((r=this._findTableCode(7,12,yn,64))[0])return r[1];if((r=this._findTableCode(10,13,dn))[0])return r[1]}return T("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){for(var t;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?Cn:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}])&&In(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function mn(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,wn(A.key),A)}}function wn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function bn(e,t,r){return t=Dn(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,kn()?Reflect.construct(t,r||[],Dn(e).constructor):t.apply(e,r))}function kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kn=function(){return!!e})()}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}function Sn(e,t){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sn(e,t)}var Fn=function(e){function t(e,r,A){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=bn(this,t,[r])).str=e,n.dict=e.dict,A instanceof He||(A=He.empty);var i={next:()=>e.getByte()};return n.ccittFaxDecoder=new vn(i,{K:A.get("K"),EndOfLine:A.get("EndOfLine"),EncodedByteAlign:A.get("EncodedByteAlign"),Columns:A.get("Columns"),Rows:A.get("Rows"),EndOfBlock:A.get("EndOfBlock"),BlackIs1:A.get("BlackIs1")}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}(t,XA),r=t,(A=[{key:"readBlock",value:function(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}])&&mn(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function xn(){xn=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Rn(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Gn(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Rn(i,A,n,a,o,"next",e)}function o(e){Rn(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Nn(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Ln(A.key),A)}}function Ln(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Un(e,t,r){return t=Jn(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Mn()?Reflect.construct(t,r||[],Jn(e).constructor):t.apply(e,r))}function Mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mn=function(){return!!e})()}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}function Hn(e,t){return Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hn(e,t)}function Yn(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Pn(e){var t,r,A,n=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,A=Symbol.iterator);n--;){if(r&&null!=(t=e[r]))return t.call(e);if(A&&null!=(t=e[A]))return new On(t.call(e));r="@@asyncIterator",A="@@iterator"}throw new TypeError("Object is not async iterable")}function On(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return On=function(e){this.s=e,this.n=e.next},On.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new On(e)}r(1237);var Kn=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tn=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),qn=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),jn=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Wn=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],Zn=new WeakSet,_n=function(e){function t(e,r){var A;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(A=Un(this,t,[r]),Zn),A.str=e,A.dict=e.dict;var n=e.getByte(),i=e.getByte();if(-1===n||-1===i)throw new re("Invalid header in flate stream: ".concat(n,", ").concat(i));if(8!=(15&n))throw new re("Unknown compression method in flate stream: ".concat(n,", ").concat(i));if(((n<<8)+i)%31!=0)throw new re("Bad FCHECK in flate stream: ".concat(n,", ").concat(i));if(32&i)throw new re("FDICT bit set in flate stream: ".concat(n,", ").concat(i));return A.codeSize=0,A.codeBuf=0,A}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hn(e,t)}(t,XA),r=t,A=[{key:"getImageData",value:(i=Gn(xn().mark((function e(t,r){var A;return xn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.asyncGetBytes();case 2:return A=e.sent,e.abrupt("return",(null==A?void 0:A.subarray(0,t))||this.getBytes(t));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"asyncGetBytes",value:(n=Gn(xn().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q;return xn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.str.reset(),t=this.str.getBytes(),e.prev=2,r=new DecompressionStream("deflate"),A=r.readable,n=r.writable,i=n.getWriter(),e.next=7,i.ready;case 7:i.write(t).then(Gn(xn().mark((function e(){return xn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.ready;case 2:return e.next=4,i.close();case 4:case"end":return e.stop()}}),e)})))).catch((function(){})),a=[],o=0,s=!1,c=!1,e.prev=12,u=Pn(A);case 14:return e.next=16,u.next();case 16:if(!(s=!(l=e.sent).done)){e.next=23;break}h=l.value,a.push(h),o+=h.byteLength;case 20:s=!1,e.next=14;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(12),c=!0,g=e.t0;case 29:if(e.prev=29,e.prev=30,!s||null==u.return){e.next=34;break}return e.next=34,u.return();case 34:if(e.prev=34,!c){e.next=37;break}throw g;case 37:return e.finish(34);case 38:return e.finish(29);case 39:for(I=new Uint8Array(o),f=0,C=0,B=a;C<B.length;C++)Q=B[C],I.set(Q,f),f+=Q.byteLength;return e.abrupt("return",I);case 45:return e.prev=45,e.t1=e.catch(2),this.str=new ar(t,2,t.length,this.str.dict),this.reset(),e.abrupt("return",null);case 50:case"end":return e.stop()}}),e,this,[[2,45],[12,25,29,39],[30,,34,38]])}))),function(){return n.apply(this,arguments)})},{key:"isAsync",get:function(){return!0}},{key:"getBits",value:function(e){for(var t,r=this.str,A=this.codeSize,n=this.codeBuf;A<e;){if(-1===(t=r.getByte()))throw new re("Bad encoding in flate stream");n|=t<<A,A+=8}return t=n&(1<<e)-1,this.codeBuf=n>>e,this.codeSize=A-=e,t}},{key:"getCode",value:function(e){for(var t,r=this.str,A=e[0],n=e[1],i=this.codeSize,a=this.codeBuf;i<n&&-1!==(t=r.getByte());)a|=t<<i,i+=8;var o=A[a&(1<<n)-1],s=o>>16,c=65535&o;if(s<1||i<s)throw new re("Bad encoding in flate stream");return this.codeBuf=a>>s,this.codeSize=i-s,c}},{key:"generateHuffmanTable",value:function(e){var t,r=e.length,A=0;for(t=0;t<r;++t)e[t]>A&&(A=e[t]);for(var n=1<<A,i=new Int32Array(n),a=1,o=0,s=2;a<=A;++a,o<<=1,s<<=1)for(var c=0;c<r;++c)if(e[c]===a){var g=0,u=o;for(t=0;t<a;++t)g=g<<1|1&u,u>>=1;for(t=g;t<n;t+=s)i[t]=a<<16|c;++o}return[i,A]}},{key:"readBlock",value:function(){var e,t,r,A=this.str;try{t=this.getBits(3)}catch(e){return void Yn(Zn,this,Xn).call(this,e.message)}if(1&t&&(this.eof=!0),0!=(t>>=1)){var n,i;if(1===t)n=jn,i=Wn;else{if(2!==t)throw new re("Unknown block type in flate stream");var a,o=this.getBits(5)+257,s=this.getBits(5)+1,c=this.getBits(4)+4,g=new Uint8Array(Kn.length);for(a=0;a<c;++a)g[Kn[a]]=this.getBits(3);var u=this.generateHuffmanTable(g);r=0,a=0;for(var l,h,I,f=o+s,C=new Uint8Array(f);a<f;){var B=this.getCode(u);if(16===B)l=2,h=3,I=r;else if(17===B)l=3,h=3,I=r=0;else{if(18!==B){C[a++]=r=B;continue}l=7,h=11,I=r=0}for(var Q=this.getBits(l)+h;Q-- >0;)C[a++]=I}n=this.generateHuffmanTable(C.subarray(0,o)),i=this.generateHuffmanTable(C.subarray(o,f))}for(var E=(e=this.buffer)?e.length:0,d=this.bufferLength;;){var y=this.getCode(n);if(y<256)d+1>=E&&(E=(e=this.ensureBuffer(d+1)).length),e[d++]=y;else{if(256===y)return void(this.bufferLength=d);var p=(y=Tn[y-=257])>>16;p>0&&(p=this.getBits(p)),r=(65535&y)+p,y=this.getCode(i),(p=(y=qn[y])>>16)>0&&(p=this.getBits(p));var v=(65535&y)+p;d+r>=E&&(E=(e=this.ensureBuffer(d+r)).length);for(var m=0;m<r;++m,++d)e[d]=e[d-v]}}}else{var w;if(-1===(w=A.getByte()))return void Yn(Zn,this,Xn).call(this,"Bad block header in flate stream");var b=w;if(-1===(w=A.getByte()))return void Yn(Zn,this,Xn).call(this,"Bad block header in flate stream");if(b|=w<<8,-1===(w=A.getByte()))return void Yn(Zn,this,Xn).call(this,"Bad block header in flate stream");var k=w;if(-1===(w=A.getByte()))return void Yn(Zn,this,Xn).call(this,"Bad block header in flate stream");if((k|=w<<8)!=(65535&~b)&&(0!==b||0!==k))throw new re("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var D=this.bufferLength,S=D+b;if(e=this.ensureBuffer(S),this.bufferLength=S,0===b)-1===A.peekByte()&&(this.eof=!0);else{var F=A.getBytes(b);e.set(F,D),F.length<b&&(this.eof=!0)}}}}],A&&Nn(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A,n,i}();function Xn(e){T(e),this.eof=!0}function Vn(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,zn(A.key),A)}}function zn(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}r(4834);var $n=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],ei=function(){return e=function e(t,r,A){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.bp=r,this.dataEnd=A,this.chigh=t[r],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768},(t=[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,A=e[t]>>1,n=1&e[t],i=$n[A],a=i.qe,o=this.a-a;if(this.chigh<a)o<a?(o=a,r=n,A=i.nmps):(o=a,r=1^n,1===i.switchFlag&&(n=r),A=i.nlps);else{if(this.chigh-=a,0!=(32768&o))return this.a=o,n;o<a?(r=1^n,1===i.switchFlag&&(n=r),A=i.nlps):(r=n,A=i.nmps)}do{0===this.ct&&this.byteIn(),o<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&o));return this.a=o,e[t]=A<<1|n,r}}])&&Vn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function ti(e){return function(e){if(Array.isArray(e))return ni(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ai(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ri(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ai(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Ai(e,t){if(e){if("string"==typeof e)return ni(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ni(e,t):void 0}}function ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function ii(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,oi(A.key),A)}}function ai(e,t,r){return t&&ii(e.prototype,t),r&&ii(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oi(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ci(e,t,r){return t=ui(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,gi()?Reflect.construct(t,r||[],ui(e).constructor):t.apply(e,r))}function gi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gi=function(){return!!e})()}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ui(e)}function li(e,t){return li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},li(e,t)}var hi=function(e){function t(e){return si(this,t),ci(this,t,[e,"Jbig2Error"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&li(e,t)}(t,X),ai(t)}(),Ii=function(){return ai((function e(){si(this,e)}),[{key:"getContexts",value:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}])}(),fi=function(){return ai((function e(t,r,A){si(this,e),this.data=t,this.start=r,this.end=A}),[{key:"decoder",get:function(){return _(this,"decoder",new ei(this.data,this.start,this.end))}},{key:"contextCache",get:function(){return _(this,"contextCache",new Ii)}}])}(),Ci=Math.pow(2,31)-1,Bi=-Math.pow(2,31);function Qi(e,t,r){var A=e.getContexts(t),n=1;function i(e){for(var t=0,i=0;i<e;i++){var a=r.readBit(A,n);n=n<256?n<<1|a:511&(n<<1|a)|256,t=t<<1|a}return t>>>0}var a,o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?a=s:s>0&&(a=-s),a>=Bi&&a<=Ci?a:null}function Ei(e,t,r){for(var A=e.getContexts("IAID"),n=1,i=0;i<r;i++)n=n<<1|t.readBit(A,n);return r<31?n&(1<<r)-1:2147483647&n}var di=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],yi=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],pi=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],vi=[39717,1941,229,405],mi=[32,8];function wi(e,t,r,A,n,i,a,o){if(e)return Ki(new Yi(o.data,o.start,o.end),t,r,!1);if(0===A&&!i&&!n&&4===a.length&&3===a[0].x&&-1===a[0].y&&-3===a[1].x&&-1===a[1].y&&2===a[2].x&&-2===a[2].y&&-2===a[3].x&&-2===a[3].y)return function(e,t,r){var A,n,i,a,o,s,c,g=r.decoder,u=r.contextCache.getContexts("GB"),l=[];for(n=0;n<t;n++)for(o=l[n]=new Uint8Array(e),s=n<1?o:l[n-1],A=(c=n<2?o:l[n-2])[0]<<13|c[1]<<12|c[2]<<11|s[0]<<7|s[1]<<6|s[2]<<5|s[3]<<4,i=0;i<e;i++)o[i]=a=g.readBit(u,A),A=(31735&A)<<1|(i+3<e?c[i+3]<<11:0)|(i+4<e?s[i+4]<<4:0)|a;return l}(t,r,o);var s=!!i,c=yi[A].concat(a);c.sort((function(e,t){return e.y-t.y||e.x-t.x}));var g,u,l=c.length,h=new Int8Array(l),I=new Int8Array(l),f=[],C=0,B=0,Q=0,E=0;for(u=0;u<l;u++)h[u]=c[u].x,I[u]=c[u].y,B=Math.min(B,c[u].x),Q=Math.max(Q,c[u].x),E=Math.min(E,c[u].y),u<l-1&&c[u].y===c[u+1].y&&c[u].x===c[u+1].x-1?C|=1<<l-1-u:f.push(u);var d=f.length,y=new Int8Array(d),p=new Int8Array(d),v=new Uint16Array(d);for(g=0;g<d;g++)u=f[g],y[g]=c[u].x,p[g]=c[u].y,v[g]=1<<l-1-u;for(var m,w,b,k,D,S=-B,F=-E,x=t-Q,R=vi[A],G=new Uint8Array(t),N=[],L=o.decoder,U=o.contextCache.getContexts("GB"),M=0,J=0,H=0;H<r;H++)if(n&&(M^=L.readBit(U,R)))N.push(G);else for(G=new Uint8Array(G),N.push(G),m=0;m<t;m++)if(s&&i[H][m])G[m]=0;else{if(m>=S&&m<x&&H>=F)for(J=J<<1&C,u=0;u<d;u++)w=H+p[u],b=m+y[u],(k=N[w][b])&&(J|=k=v[u]);else for(J=0,D=l-1,u=0;u<l;u++,D--)(b=m+h[u])>=0&&b<t&&(w=H+I[u])>=0&&(k=N[w][b])&&(J|=k<<D);var Y=L.readBit(U,J);G[m]=Y}return N}function bi(e,t,r,A,n,i,a,o,s){var c=pi[r].coding;0===r&&(c=c.concat([o[0]]));var g,u=c.length,l=new Int32Array(u),h=new Int32Array(u);for(g=0;g<u;g++)l[g]=c[g].x,h[g]=c[g].y;var I=pi[r].reference;0===r&&(I=I.concat([o[1]]));var f=I.length,C=new Int32Array(f),B=new Int32Array(f);for(g=0;g<f;g++)C[g]=I[g].x,B[g]=I[g].y;for(var Q=A[0].length,E=A.length,d=mi[r],y=[],p=s.decoder,v=s.contextCache.getContexts("GR"),m=0,w=0;w<t;w++){if(a&&(m^=p.readBit(v,d)))throw new hi("prediction is not supported");var b=new Uint8Array(e);y.push(b);for(var k=0;k<e;k++){var D=void 0,S=void 0,F=0;for(g=0;g<u;g++)D=w+h[g],S=k+l[g],D<0||S<0||S>=e?F<<=1:F=F<<1|y[D][S];for(g=0;g<f;g++)D=w+B[g]-i,S=k+C[g]-n,D<0||D>=E||S<0||S>=Q?F<<=1:F=F<<1|A[D][S];var x=p.readBit(v,F);b[k]=x}}return y}function ki(e,t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q){if(e&&t)throw new hi("refinement with Huffman is not supported");var E,d,y=[];for(E=0;E<A;E++){if(d=new Uint8Array(r),n)for(var p=0;p<r;p++)d[p]=n;y.push(d)}var v=C.decoder,m=C.contextCache,w=e?-h.tableDeltaT.decode(Q):-Qi(m,"IADT",v),b=0;for(E=0;E<i;){w+=e?h.tableDeltaT.decode(Q):Qi(m,"IADT",v);for(var k=b+=e?h.tableFirstS.decode(Q):Qi(m,"IAFS",v);;){var D=0;a>1&&(D=e?Q.readBits(B):Qi(m,"IAIT",v));var S=a*w+D,F=e?h.symbolIDTable.decode(Q):Ei(m,v,s),x=t&&(e?Q.readBit():Qi(m,"IARI",v)),R=o[F],G=R[0].length,N=R.length;if(x){var L=Qi(m,"IARDW",v),U=Qi(m,"IARDH",v);R=bi(G+=L,N+=U,I,R,(L>>1)+Qi(m,"IARDX",v),(U>>1)+Qi(m,"IARDY",v),!1,f,C)}var M=0;c?1&u?M=N-1:k+=N-1:u>1?k+=G-1:M=G-1;var J=S-(1&u?0:N-1),H=k-(2&u?G-1:0),Y=void 0,P=void 0,O=void 0;if(c){for(Y=0;Y<N;Y++)if(d=y[H+Y]){O=R[Y];var K=Math.min(r-J,G);switch(l){case 0:for(P=0;P<K;P++)d[J+P]|=O[P];break;case 2:for(P=0;P<K;P++)d[J+P]^=O[P];break;default:throw new hi("operator ".concat(l," is not supported"))}}}else for(P=0;P<N;P++)if(d=y[J+P])switch(O=R[P],l){case 0:for(Y=0;Y<G;Y++)d[H+Y]|=O[Y];break;case 2:for(Y=0;Y<G;Y++)d[H+Y]^=O[Y];break;default:throw new hi("operator ".concat(l," is not supported"))}E++;var T=e?h.tableDeltaS.decode(Q):Qi(m,"IADS",v);if(null===T)break;k+=M+T+g}}return y}function Di(e,t){var r={};r.number=kt(e,t);var A=e[t+4],n=63&A;if(!di[n])throw new hi("invalid segment type: "+n);r.type=n,r.typeName=di[n],r.deferredNonRetain=!!(128&A);var i=!!(64&A),a=e[t+5],o=a>>5&7,s=[31&a],c=t+6;if(7===a){o=536870911&kt(e,c-1),c+=3;var g=o+7>>3;for(s[0]=e[c++];--g>0;)s.push(e[c++])}else if(5===a||6===a)throw new hi("invalid referred-to flags");r.retainBits=s;var u=4;r.number<=256?u=1:r.number<=65536&&(u=2);var l,h,I=[];for(l=0;l<o;l++){var f;f=1===u?e[c]:2===u?bt(e,c):kt(e,c),I.push(f),c+=u}if(r.referredTo=I,i?(r.pageAssociation=kt(e,c),c+=4):r.pageAssociation=e[c++],r.length=kt(e,c),c+=4,4294967295===r.length){if(38!==n)throw new hi("invalid unknown segment length");var C=Fi(e,c),B=!!(1&e[c+xi]),Q=new Uint8Array(6);for(B||(Q[0]=255,Q[1]=172),Q[2]=C.height>>>24&255,Q[3]=C.height>>16&255,Q[4]=C.height>>8&255,Q[5]=255&C.height,l=c,h=e.length;l<h;l++){for(var E=0;E<6&&Q[E]===e[l+E];)E++;if(6===E){r.length=l+6;break}}if(4294967295===r.length)throw new hi("segment end was not found")}return r.headerEnd=c,r}function Si(e,t,r,A){for(var n=[],i=r;i<A;){var a=Di(t,i);i=a.headerEnd;var o={header:a,data:t};if(e.randomAccess||(o.start=i,i+=a.length,o.end=i),n.push(o),51===a.type)break}if(e.randomAccess)for(var s=0,c=n.length;s<c;s++)n[s].start=i,i+=n[s].header.length,n[s].end=i;return n}function Fi(e,t){return{width:kt(e,t),height:kt(e,t+4),x:kt(e,t+8),y:kt(e,t+12),combinationOperator:7&e[t+16]}}var xi=17;function Ri(e,t){var r,A,n,i,a=e.header,o=e.data,s=e.end,c=e.start;switch(a.type){case 0:var g={},u=bt(o,c);if(g.huffman=!!(1&u),g.refinement=!!(2&u),g.huffmanDHSelector=u>>2&3,g.huffmanDWSelector=u>>4&3,g.bitmapSizeSelector=u>>6&1,g.aggregationInstancesSelector=u>>7&1,g.bitmapCodingContextUsed=!!(256&u),g.bitmapCodingContextRetained=!!(512&u),g.template=u>>10&3,g.refinementTemplate=u>>12&1,c+=2,!g.huffman){for(i=0===g.template?4:1,A=[],n=0;n<i;n++)A.push({x:wt(o,c),y:wt(o,c+1)}),c+=2;g.at=A}if(g.refinement&&!g.refinementTemplate){for(A=[],n=0;n<2;n++)A.push({x:wt(o,c),y:wt(o,c+1)}),c+=2;g.refinementAt=A}g.numberOfExportedSymbols=kt(o,c),c+=4,g.numberOfNewSymbols=kt(o,c),c+=4,r=[g,a.number,a.referredTo,o,c,s];break;case 6:case 7:var l={};l.info=Fi(o,c);var h=bt(o,c+=xi);if(c+=2,l.huffman=!!(1&h),l.refinement=!!(2&h),l.logStripSize=h>>2&3,l.stripSize=1<<l.logStripSize,l.referenceCorner=h>>4&3,l.transposed=!!(64&h),l.combinationOperator=h>>7&3,l.defaultPixelValue=h>>9&1,l.dsOffset=h<<17>>27,l.refinementTemplate=h>>15&1,l.huffman){var I=bt(o,c);c+=2,l.huffmanFS=3&I,l.huffmanDS=I>>2&3,l.huffmanDT=I>>4&3,l.huffmanRefinementDW=I>>6&3,l.huffmanRefinementDH=I>>8&3,l.huffmanRefinementDX=I>>10&3,l.huffmanRefinementDY=I>>12&3,l.huffmanRefinementSizeSelector=!!(16384&I)}if(l.refinement&&!l.refinementTemplate){for(A=[],n=0;n<2;n++)A.push({x:wt(o,c),y:wt(o,c+1)}),c+=2;l.refinementAt=A}l.numberOfSymbolInstances=kt(o,c),c+=4,r=[l,a.referredTo,o,c,s];break;case 16:var f={},C=o[c++];f.mmr=!!(1&C),f.template=C>>1&3,f.patternWidth=o[c++],f.patternHeight=o[c++],f.maxPatternIndex=kt(o,c),c+=4,r=[f,a.number,o,c,s];break;case 22:case 23:var B={};B.info=Fi(o,c),c+=xi;var Q=o[c++];B.mmr=!!(1&Q),B.template=Q>>1&3,B.enableSkip=!!(8&Q),B.combinationOperator=Q>>4&7,B.defaultPixelValue=Q>>7&1,B.gridWidth=kt(o,c),c+=4,B.gridHeight=kt(o,c),c+=4,B.gridOffsetX=4294967295&kt(o,c),c+=4,B.gridOffsetY=4294967295&kt(o,c),c+=4,B.gridVectorX=bt(o,c),c+=2,B.gridVectorY=bt(o,c),c+=2,r=[B,a.referredTo,o,c,s];break;case 38:case 39:var E={};E.info=Fi(o,c),c+=xi;var d=o[c++];if(E.mmr=!!(1&d),E.template=d>>1&3,E.prediction=!!(8&d),!E.mmr){for(i=0===E.template?4:1,A=[],n=0;n<i;n++)A.push({x:wt(o,c),y:wt(o,c+1)}),c+=2;E.at=A}r=[E,o,c,s];break;case 48:var y={width:kt(o,c),height:kt(o,c+4),resolutionX:kt(o,c+8),resolutionY:kt(o,c+12)};4294967295===y.height&&delete y.height;var p=o[c+16];bt(o,c+17),y.lossless=!!(1&p),y.refinement=!!(2&p),y.defaultPixelValue=p>>2&1,y.combinationOperator=p>>3&3,y.requiresBuffer=!!(32&p),y.combinationOperatorOverride=!!(64&p),r=[y];break;case 49:case 50:case 51:case 62:break;case 53:r=[a.number,o,c,s];break;default:throw new hi("segment type ".concat(a.typeName,"(").concat(a.type,") is not implemented"))}var v="on"+a.typeName;v in t&&t[v].apply(t,r)}function Gi(e,t){for(var r=0,A=e.length;r<A;r++)Ri(e[r],t)}var Ni=function(){return ai((function e(){si(this,e)}),[{key:"onPageInformation",value:function(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&r.fill(255),this.buffer=r}},{key:"drawBitmap",value:function(e,t){var r,A,n,i,a=this.currentPageInfo,o=e.width,s=e.height,c=a.width+7>>3,g=a.combinationOperatorOverride?e.combinationOperator:a.combinationOperator,u=this.buffer,l=128>>(7&e.x),h=e.y*c+(e.x>>3);switch(g){case 0:for(r=0;r<s;r++){for(n=l,i=h,A=0;A<o;A++)t[r][A]&&(u[i]|=n),(n>>=1)||(n=128,i++);h+=c}break;case 2:for(r=0;r<s;r++){for(n=l,i=h,A=0;A<o;A++)t[r][A]&&(u[i]^=n),(n>>=1)||(n=128,i++);h+=c}break;default:throw new hi("operator ".concat(g," is not supported"))}}},{key:"onImmediateGenericRegion",value:function(e,t,r,A){var n=e.info,i=new fi(t,r,A),a=wi(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(n,a)}},{key:"onImmediateLosslessGenericRegion",value:function(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function(e,t,r,A,n,i){var a,o;e.huffman&&(a=function(e,t,r){var A,n,i,a=0;switch(e.huffmanDHSelector){case 0:case 1:A=Hi(e.huffmanDHSelector+4);break;case 3:A=Pi(a,t,r),a++;break;default:throw new hi("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:n=Hi(e.huffmanDWSelector+2);break;case 3:n=Pi(a,t,r),a++;break;default:throw new hi("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=Pi(a,t,r),a++):i=Hi(1),{tableDeltaHeight:A,tableDeltaWidth:n,tableBitmapSize:i,tableAggregateInstances:e.aggregationInstancesSelector?Pi(a,t,r):Hi(1)}}(e,r,this.customTables),o=new Yi(A,n,i));var s=this.symbols;s||(this.symbols=s={});var c,g=[],u=ri(r);try{for(u.s();!(c=u.n()).done;){var l=s[c.value];l&&g.push.apply(g,ti(l))}}catch(e){u.e(e)}finally{u.f()}var h=new fi(A,n,i);s[t]=function(e,t,r,A,n,i,a,o,s,c,g,u){if(e&&t)throw new hi("symbol refinement with Huffman is not supported");var l,h,I=[],f=0,C=mt(r.length+A),B=g.decoder,Q=g.contextCache;for(e&&(l=Hi(1),h=[],C=Math.max(C,1));I.length<A;){f+=e?i.tableDeltaHeight.decode(u):Qi(Q,"IADH",B);for(var E=0,d=0,y=e?h.length:0;;){var p=e?i.tableDeltaWidth.decode(u):Qi(Q,"IADW",B);if(null===p)break;d+=E+=p;var v=void 0;if(t){var m=Qi(Q,"IAAI",B);if(m>1)v=ki(e,t,E,f,0,m,1,r.concat(I),C,0,0,1,0,i,s,c,g,0,u);else{var w=Ei(Q,B,C),b=Qi(Q,"IARDX",B),k=Qi(Q,"IARDY",B);v=bi(E,f,s,w<r.length?r[w]:I[w-r.length],b,k,!1,c,g)}I.push(v)}else e?h.push(E):(v=wi(!1,E,f,a,!1,null,o,g),I.push(v))}if(e&&!t){var D=i.tableBitmapSize.decode(u);u.byteAlign();var S=void 0;if(0===D)S=Oi(u,d,f);else{var F=u.end,x=u.position+D;u.end=x,S=Ki(u,d,f,!1),u.end=F,u.position=x}var R=h.length;if(y===R-1)I.push(S);else{var G=void 0,N=void 0,L=0,U=void 0,M=void 0;for(G=y;G<R;G++){for(U=L+h[G],M=[],N=0;N<f;N++)M.push(S[N].subarray(L,U));I.push(M),L=U}}}}for(var J,H,Y=[],P=[],O=!1,K=r.length+A;P.length<K;){for(var T=e?l.decode(u):Qi(Q,"IAEX",B);T--;)P.push(O);O=!O}for(J=0,H=r.length;J<H;J++)P[J]&&Y.push(r[J]);for(var q=0;q<A;J++,q++)P[J]&&Y.push(I[q]);return Y}(e.huffman,e.refinement,g,e.numberOfNewSymbols,e.numberOfExportedSymbols,a,e.template,e.at,e.refinementTemplate,e.refinementAt,h,o)}},{key:"onImmediateTextRegion",value:function(e,t,r,A,n){var i,a,o,s=e.info,c=this.symbols,g=[],u=ri(t);try{for(u.s();!(o=u.n()).done;){var l=c[o.value];l&&g.push.apply(g,ti(l))}}catch(e){u.e(e)}finally{u.f()}var h=mt(g.length);e.huffman&&(a=new Yi(r,A,n),i=function(e,t,r,A,n){for(var i=[],a=0;a<=34;a++){var o=n.readBits(4);i.push(new Li([a,o,0,0]))}var s=new Mi(i,!1);i.length=0;for(var c=0;c<A;){var g=s.decode(n);if(g>=32){var u=void 0,l=void 0,h=void 0;switch(g){case 32:if(0===c)throw new hi("no previous value in symbol ID table");l=n.readBits(2)+3,u=i[c-1].prefixLength;break;case 33:l=n.readBits(3)+3,u=0;break;case 34:l=n.readBits(7)+11,u=0;break;default:throw new hi("invalid code length in symbol ID table")}for(h=0;h<l;h++)i.push(new Li([c,u,0,0])),c++}else i.push(new Li([c,g,0,0])),c++}n.byteAlign();var I,f,C,B=new Mi(i,!1),Q=0;switch(e.huffmanFS){case 0:case 1:I=Hi(e.huffmanFS+6);break;case 3:I=Pi(Q,t,r),Q++;break;default:throw new hi("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:f=Hi(e.huffmanDS+8);break;case 3:f=Pi(Q,t,r),Q++;break;default:throw new hi("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:C=Hi(e.huffmanDT+11);break;case 3:C=Pi(Q,t,r),Q++;break;default:throw new hi("invalid Huffman DT selector")}if(e.refinement)throw new hi("refinement with Huffman is not supported");return{symbolIDTable:B,tableFirstS:I,tableDeltaS:f,tableDeltaT:C}}(e,t,this.customTables,g.length,a));var I=new fi(r,A,n),f=ki(e.huffman,e.refinement,s.width,s.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,g,h,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,i,e.refinementTemplate,e.refinementAt,I,e.logStripSize,a);this.drawBitmap(s,f)}},{key:"onImmediateLosslessTextRegion",value:function(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function(e,t,r,A,n){var i=this.patterns;i||(this.patterns=i={});var a=new fi(r,A,n);i[t]=function(e,t,r,A,n,i){var a=[];e||(a.push({x:-t,y:0}),0===n&&a.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));for(var o=wi(e,(A+1)*t,r,n,!1,null,a,i),s=[],c=0;c<=A;c++){for(var g=[],u=t*c,l=u+t,h=0;h<r;h++)g.push(o[h].subarray(u,l));s.push(g)}return s}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,a)}},{key:"onImmediateHalftoneRegion",value:function(e,t,r,A,n){var i=this.patterns[t[0]],a=e.info,o=new fi(r,A,n),s=function(e,t,r,A,n,i,a,o,s,c,g,u,l,h,I){if(a)throw new hi("skip is not supported");if(0!==o)throw new hi(\'operator "\'.concat(o,\'" is not supported in halftone region\'));var f,C,B,Q=[];for(f=0;f<n;f++){if(B=new Uint8Array(A),i)for(C=0;C<A;C++)B[C]=i;Q.push(B)}var E=t.length,d=t[0],y=d[0].length,p=d.length,v=mt(E),m=[];e||(m.push({x:r<=1?3:2,y:-1}),0===r&&m.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));var w,b,k,D,S,F,x,R,G,N,L,U=[];for(e&&(w=new Yi(I.data,I.start,I.end)),f=v-1;f>=0;f--)b=e?Ki(w,s,c,!0):wi(!1,s,c,r,!1,null,m,I),U[f]=b;for(k=0;k<c;k++)for(D=0;D<s;D++){for(S=0,F=0,C=v-1;C>=0;C--)F|=(S^=U[C][k][D])<<C;if(x=t[F],G=u+k*l-D*h>>8,(R=g+k*h+D*l>>8)>=0&&R+y<=A&&G>=0&&G+p<=n)for(f=0;f<p;f++)for(L=Q[G+f],N=x[f],C=0;C<y;C++)L[R+C]|=N[C];else{var M=void 0,J=void 0;for(f=0;f<p;f++)if(!((J=G+f)<0||J>=n))for(L=Q[J],N=x[f],C=0;C<y;C++)(M=R+C)>=0&&M<A&&(L[M]|=N[C])}}return Q}(e.mmr,i,e.template,a.width,a.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,o);this.drawBitmap(a,s)}},{key:"onImmediateLosslessHalftoneRegion",value:function(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function(e,t,r,A){var n=this.customTables;n||(this.customTables=n={}),n[e]=function(e,t,r){var A,n,i=e[t],a=4294967295&kt(e,t+1),o=4294967295&kt(e,t+5),s=new Yi(e,t+9,r),c=1+(i>>1&7),g=1+(i>>4&7),u=[],l=a;do{A=s.readBits(c),n=s.readBits(g),u.push(new Li([l,A,n,0])),l+=1<<n}while(l<o);return A=s.readBits(c),u.push(new Li([a-1,A,32,0,"lower"])),A=s.readBits(c),u.push(new Li([o,A,32,0])),1&i&&(A=s.readBits(c),u.push(new Li([A,0]))),new Mi(u,!1)}(t,r,A)}}])}(),Li=ai((function e(t){si(this,e),2===t.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=t[0],this.rangeLength=0,this.prefixCode=t[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=t[0],this.prefixLength=t[1],this.rangeLength=t[2],this.prefixCode=t[3],this.isLowerRange="lower"===t[4])})),Ui=function(){function e(t){si(this,e),this.children=[],t?(this.isLeaf=!0,this.rangeLength=t.rangeLength,this.rangeLow=t.rangeLow,this.isLowerRange=t.isLowerRange,this.isOOB=t.isOOB):this.isLeaf=!1}return ai(e,[{key:"buildTree",value:function(t,r){var A=t.prefixCode>>r&1;if(r<=0)this.children[A]=new e(t);else{var n=this.children[A];n||(this.children[A]=n=new e(null)),n.buildTree(t,r-1)}}},{key:"decodeNode",value:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new hi("invalid Huffman data");return r.decodeNode(e)}}])}(),Mi=function(){return ai((function e(t,r){si(this,e),r||this.assignPrefixCodes(t),this.rootNode=new Ui(null);for(var A=0,n=t.length;A<n;A++){var i=t[A];i.prefixLength>0&&this.rootNode.buildTree(i,i.prefixLength-1)}}),[{key:"decode",value:function(e){return this.rootNode.decodeNode(e)}},{key:"assignPrefixCodes",value:function(e){for(var t=e.length,r=0,A=0;A<t;A++)r=Math.max(r,e[A].prefixLength);for(var n=new Uint32Array(r+1),i=0;i<t;i++)n[e[i].prefixLength]++;var a,o,s,c=1,g=0;for(n[0]=0;c<=r;){for(a=g=g+n[c-1]<<1,o=0;o<t;)(s=e[o]).prefixLength===c&&(s.prefixCode=a,a++),o++;c++}}}])}(),Ji={};function Hi(e){var t,r=Ji[e];if(r)return r;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new hi("standard table B.".concat(e," does not exist"))}for(var A=0,n=t.length;A<n;A++)t[A]=new Li(t[A]);return r=new Mi(t,!0),Ji[e]=r,r}var Yi=function(){return ai((function e(t,r,A){si(this,e),this.data=t,this.start=r,this.end=A,this.position=r,this.shift=-1,this.currentByte=0}),[{key:"readBit",value:function(){if(this.shift<0){if(this.position>=this.end)throw new hi("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}},{key:"readBits",value:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<<t;return r}},{key:"byteAlign",value:function(){this.shift=-1}},{key:"next",value:function(){return this.position>=this.end?-1:this.data[this.position++]}}])}();function Pi(e,t,r){for(var A=0,n=0,i=t.length;n<i;n++){var a=r[t[n]];if(a){if(e===A)return a;A++}}throw new hi("can\'t find custom Huffman table")}function Oi(e,t,r){for(var A=[],n=0;n<r;n++){var i=new Uint8Array(t);A.push(i);for(var a=0;a<t;a++)i[a]=e.readBit();e.byteAlign()}return A}function Ki(e,t,r,A){for(var n,i=new vn(e,{K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:A}),a=[],o=!1,s=0;s<r;s++){var c=new Uint8Array(t);a.push(c);for(var g=-1,u=0;u<t;u++)g<0&&(-1===(n=i.readNextChar())&&(n=0,o=!0),g=7),c[u]=n>>g&1,g--}if(A&&!o)for(var l=0;l<5&&-1!==i.readNextChar();l++);return a}var Ti=function(){return ai((function e(){si(this,e)}),[{key:"parseChunks",value:function(e){return function(e){for(var t=new Ni,r=0,A=e.length;r<A;r++){var n=e[r];Gi(Si({},n.data,n.start,n.end),t)}return t.buffer}(e)}},{key:"parse",value:function(e){throw new Error("Not implemented: Jbig2Image.parse")}}])}();function qi(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,ji(A.key),A)}}function ji(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Wi(e,t,r){return t=_i(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Zi()?Reflect.construct(t,r||[],_i(e).constructor):t.apply(e,r))}function Zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zi=function(){return!!e})()}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_i(e)}function Xi(e,t){return Xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xi(e,t)}var Vi=function(e){function t(e,r,A){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Wi(this,t,[r])).stream=e,n.dict=e.dict,n.maybeLength=r,n.params=A,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xi(e,t)}(t,XA),r=t,(A=[{key:"bytes",get:function(){return _(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){this.decodeImage()}},{key:"decodeImage",value:function(e){if(this.eof)return this.buffer;e||(e=this.bytes);var t=new Ti,r=[];if(this.params instanceof He){var A=this.params.get("JBIG2Globals");if(A instanceof ze){var n=A.getBytes();r.push({data:n,start:0,end:n.length})}}r.push({data:e,start:0,end:e.length});for(var i=t.parseChunks(r),a=i.length,o=0;o<a;o++)i[o]^=255;return this.buffer=i,this.bufferLength=a,this.eof=!0,this.buffer}},{key:"canAsyncDecodeImageFromBuffer",get:function(){return this.stream.isAsync}}])&&qi(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function $i(e){var t=e.src,r=e.srcPos,A=void 0===r?0:r,n=e.dest,i=e.width,a=e.height,o=e.nonBlackColor,s=void 0===o?4294967295:o,c=e.inverseDecode,g=void 0!==c&&c,u=se.isLittleEndian?4278190080:255,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(g?[s,u]:[u,s],2),h=l[0],I=l[1],f=i>>3,C=7&i,B=t.length;n=new Uint32Array(n.buffer);for(var Q=0,E=0;E<a;E++){for(var d=A+f;A<d;A++){var y=A<B?t[A]:255;n[Q++]=128&y?I:h,n[Q++]=64&y?I:h,n[Q++]=32&y?I:h,n[Q++]=16&y?I:h,n[Q++]=8&y?I:h,n[Q++]=4&y?I:h,n[Q++]=2&y?I:h,n[Q++]=1&y?I:h}if(0!==C)for(var p=A<B?t[A++]:255,v=0;v<C;v++)n[Q++]=p&1<<7-v?I:h}return{srcPos:A,destPos:Q}}function ea(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ta(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ta(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function ra(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,na(A.key),A)}}function Aa(e,t,r){return t&&ra(e.prototype,t),r&&ra(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function na(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function ia(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aa(e,t,r){return t=sa(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,oa()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function oa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oa=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sa(e)}function ca(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ga(e,t)}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ga(e,t)}r(3195);var ua=function(e){function t(e){return ia(this,t),aa(this,t,[e,"JpegError"])}return ca(t,X),Aa(t)}(),la=function(e){function t(e,r){var A;return ia(this,t),(A=aa(this,t,[e,"DNLMarkerError"])).scanLines=r,A}return ca(t,X),Aa(t)}(),ha=function(e){function t(e){return ia(this,t),aa(this,t,[e,"EOIMarkerError"])}return ca(t,X),Aa(t)}(),Ia=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),fa=4017,Ca=799,Ba=3406,Qa=2276,Ea=1567,da=3784,ya=5793,pa=2896;function va(e,t){for(var r,A,n=0,i=16;i>0&&!e[i-1];)i--;var a,o=[{children:[],index:0}],s=o[0];for(r=0;r<i;r++){for(A=0;A<e[r];A++){for((s=o.pop()).children[s.index]=t[n];s.index>0;)s=o.pop();for(s.index++,o.push(s);o.length<=r;)o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a;n++}r+1<i&&(o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a)}return o[0].children}function ma(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function wa(e,t,r,A,n,i,a,o,s){var c=arguments.length>9&&void 0!==arguments[9]&&arguments[9],g=r.mcusPerLine,u=r.progressive,l=t,h=0,I=0;function f(){if(I>0)return I--,h>>I&1;if(255===(h=e[t++])){var A=e[t++];if(A){if(220===A&&c){var n=bt(e,t+=2);if(t+=2,n>0&&n!==r.scanLines)throw new la("Found DNL marker (0xFFDC) while parsing scan data",n)}else if(217===A){if(c){var i=p*(8===r.precision?8:0);if(i>0&&Math.round(r.scanLines/i)>=5)throw new la("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",i)}throw new ha("Found EOI marker (0xFFD9) while parsing scan data")}throw new ua("unexpected marker ".concat((h<<8|A).toString(16)))}}return I=7,h>>>7}function C(e){for(var t=e;;){switch(typeof(t=t[f()])){case"number":return t;case"object":continue}throw new ua("invalid huffman sequence")}}function B(e){for(var t=0;e>0;)t=t<<1|f(),e--;return t}function Q(e){if(1===e)return 1===f()?1:-1;var t=B(e);return t>=1<<e-1?t:t+(-1<<e)+1}var E,d=0,y=0,p=0;function v(e,t,r,A,n){var i=r%g;p=(r/g|0)*e.v+A;var a=i*e.h+n;t(e,ma(e,p,a))}function m(e,t,r){p=r/e.blocksPerLine|0;var A=r%e.blocksPerLine;t(e,ma(e,p,A))}var w,b,k,D,S,F,x=A.length;F=u?0===i?0===o?function(e,t){var r=C(e.huffmanTableDC),A=0===r?0:Q(r)<<s;e.blockData[t]=e.pred+=A}:function(e,t){e.blockData[t]|=f()<<s}:0===o?function(e,t){if(d>0)d--;else for(var r=i,A=a;r<=A;){var n=C(e.huffmanTableAC),o=15&n,c=n>>4;if(0!==o){var g=Ia[r+=c];e.blockData[t+g]=Q(o)*(1<<s),r++}else{if(c<15){d=B(c)+(1<<c)-1;break}r+=16}}}:function(e,t){for(var r,A,n=i,o=a,c=0;n<=o;){var g=t+Ia[n],u=e.blockData[g]<0?-1:1;switch(y){case 0:if(c=(A=C(e.huffmanTableAC))>>4,0==(r=15&A))c<15?(d=B(c)+(1<<c),y=4):(c=16,y=1);else{if(1!==r)throw new ua("invalid ACn encoding");E=Q(r),y=c?2:3}continue;case 1:case 2:e.blockData[g]?e.blockData[g]+=u*(f()<<s):0==--c&&(y=2===y?3:0);break;case 3:e.blockData[g]?e.blockData[g]+=u*(f()<<s):(e.blockData[g]=E<<s,y=0);break;case 4:e.blockData[g]&&(e.blockData[g]+=u*(f()<<s))}n++}4===y&&0==--d&&(y=0)}:function(e,t){var r=C(e.huffmanTableDC),A=0===r?0:Q(r);e.blockData[t]=e.pred+=A;for(var n=1;n<64;){var i=C(e.huffmanTableAC),a=15&i,o=i>>4;if(0!==a){var s=Ia[n+=o];e.blockData[t+s]=Q(a),n++}else{if(o<15)break;n+=16}}};for(var R,G,N,L=0,U=1===x?A[0].blocksPerLine*A[0].blocksPerColumn:g*r.mcusPerColumn;L<=U;){var M=n?Math.min(U-L,n):U;if(M>0){for(b=0;b<x;b++)A[b].pred=0;if(d=0,1===x)for(w=A[0],S=0;S<M;S++)m(w,F,L),L++;else for(S=0;S<M;S++){for(b=0;b<x;b++)for(G=(w=A[b]).h,N=w.v,k=0;k<N;k++)for(D=0;D<G;D++)v(w,F,L,k,D);L++}}if(I=0,!(R=Da(e,t)))break;if(R.invalid&&(q("decodeScan - ".concat(M>0?"unexpected":"excessive"," MCU data, current marker is: ").concat(R.invalid)),t=R.offset),!(R.marker>=65488&&R.marker<=65495))break;t+=2}return t-l}function ba(e,t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d=e.quantizationTable,y=e.blockData;if(!d)throw new ua("missing required Quantization Table.");for(var p=0;p<64;p+=8)u=y[t+p],l=y[t+p+1],h=y[t+p+2],I=y[t+p+3],f=y[t+p+4],C=y[t+p+5],B=y[t+p+6],Q=y[t+p+7],u*=d[p],0!=(l|h|I|f|C|B|Q)?(l*=d[p+1],h*=d[p+2],I*=d[p+3],f*=d[p+4],C*=d[p+5],B*=d[p+6],Q*=d[p+7],n=(A=(A=ya*u+128>>8)+(n=ya*f+128>>8)+1>>1)-n,E=(i=h)*da+(a=B)*Ea+128>>8,i=i*Ea-a*da+128>>8,c=(o=(o=pa*(l-Q)+128>>8)+(c=C<<4)+1>>1)-c,s=(g=(g=pa*(l+Q)+128>>8)+(s=I<<4)+1>>1)-s,a=(A=A+(a=E)+1>>1)-a,i=(n=n+i+1>>1)-i,E=o*Qa+g*Ba+2048>>12,o=o*Ba-g*Qa+2048>>12,g=E,E=s*Ca+c*fa+2048>>12,s=s*fa-c*Ca+2048>>12,c=E,r[p]=A+g,r[p+7]=A-g,r[p+1]=n+c,r[p+6]=n-c,r[p+2]=i+s,r[p+5]=i-s,r[p+3]=a+o,r[p+4]=a-o):(E=ya*u+512>>10,r[p]=E,r[p+1]=E,r[p+2]=E,r[p+3]=E,r[p+4]=E,r[p+5]=E,r[p+6]=E,r[p+7]=E);for(var v=0;v<8;++v)u=r[v],0!=((l=r[v+8])|(h=r[v+16])|(I=r[v+24])|(f=r[v+32])|(C=r[v+40])|(B=r[v+48])|(Q=r[v+56]))?(n=(A=4112+((A=ya*u+2048>>12)+(n=ya*f+2048>>12)+1>>1))-n,E=(i=h)*da+(a=B)*Ea+2048>>12,i=i*Ea-a*da+2048>>12,a=E,c=(o=(o=pa*(l-Q)+2048>>12)+(c=C)+1>>1)-c,s=(g=(g=pa*(l+Q)+2048>>12)+(s=I)+1>>1)-s,E=o*Qa+g*Ba+2048>>12,o=o*Ba-g*Qa+2048>>12,g=E,E=s*Ca+c*fa+2048>>12,s=s*fa-c*Ca+2048>>12,(u=(A=A+a+1>>1)+g)<16?u=0:u>=4080?u=255:u>>=4,(l=(n=n+i+1>>1)+(c=E))<16?l=0:l>=4080?l=255:l>>=4,(h=(i=n-i)+s)<16?h=0:h>=4080?h=255:h>>=4,(I=(a=A-a)+o)<16?I=0:I>=4080?I=255:I>>=4,(f=a-o)<16?f=0:f>=4080?f=255:f>>=4,(C=i-s)<16?C=0:C>=4080?C=255:C>>=4,(B=n-c)<16?B=0:B>=4080?B=255:B>>=4,(Q=A-g)<16?Q=0:Q>=4080?Q=255:Q>>=4,y[t+v]=u,y[t+v+8]=l,y[t+v+16]=h,y[t+v+24]=I,y[t+v+32]=f,y[t+v+40]=C,y[t+v+48]=B,y[t+v+56]=Q):(E=(E=ya*u+8192>>14)<-2040?0:E>=2024?255:E+2056>>4,y[t+v]=E,y[t+v+8]=E,y[t+v+16]=E,y[t+v+24]=E,y[t+v+32]=E,y[t+v+40]=E,y[t+v+48]=E,y[t+v+56]=E)}function ka(e,t){for(var r=t.blocksPerLine,A=t.blocksPerColumn,n=new Int16Array(64),i=0;i<A;i++)for(var a=0;a<r;a++)ba(t,ma(t,i,a),n);return t.blockData}function Da(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,A=e.length-1,n=r<t?r:t;if(t>=A)return null;var i=bt(e,t);if(i>=65472&&i<=65534)return{invalid:null,marker:i,offset:t};for(var a=bt(e,n);!(a>=65472&&a<=65534);){if(++n>=A)return null;a=bt(e,n)}return{invalid:i.toString(16),marker:a,offset:n}}var Sa=function(){return Aa((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,A=void 0===r?null:r,n=t.colorTransform,i=void 0===n?-1:n;ia(this,e),this._decodeTransform=A,this._colorTransform=i}),[{key:"parse",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dnlScanLines,r=void 0===t?null:t;function A(){var t=bt(e,o),r=(o+=2)+t-2,A=Da(e,r,o);null!=A&&A.invalid&&(q("readDataBlock - incorrect length, current marker is: "+A.invalid),r=A.offset);var n=e.subarray(o,r);return o+=n.length,n}function n(e){var t,r=Math.ceil(e.samplesPerLine/8/e.maxH),A=Math.ceil(e.scanLines/8/e.maxV),n=ea(e.components);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),o=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),s=r*i.h,c=A*i.v*64*(s+1);i.blockData=new Int16Array(c),i.blocksPerLine=a,i.blocksPerColumn=o}}catch(e){n.e(e)}finally{n.f()}e.mcusPerLine=r,e.mcusPerColumn=A}var i,a,o=0,s=null,c=null,g=0,u=[],l=[],h=[],I=bt(e,o);if(o+=2,65496!==I)throw new ua("SOI not found");I=bt(e,o),o+=2;e:for(;65497!==I;){var f=void 0,C=void 0,B=void 0;switch(I){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var Q=A();65504===I&&74===Q[0]&&70===Q[1]&&73===Q[2]&&70===Q[3]&&0===Q[4]&&(s={version:{major:Q[5],minor:Q[6]},densityUnits:Q[7],xDensity:Q[8]<<8|Q[9],yDensity:Q[10]<<8|Q[11],thumbWidth:Q[12],thumbHeight:Q[13],thumbData:Q.subarray(14,14+3*Q[12]*Q[13])}),65518===I&&65===Q[0]&&100===Q[1]&&111===Q[2]&&98===Q[3]&&101===Q[4]&&(c={version:Q[5]<<8|Q[6],flags0:Q[7]<<8|Q[8],flags1:Q[9]<<8|Q[10],transformCode:Q[11]});break;case 65499:for(var E=bt(e,o)+(o+=2)-2;o<E;){var d=e[o++],y=new Uint16Array(64);if(d>>4==0)for(C=0;C<64;C++)y[Ia[C]]=e[o++];else{if(d>>4!=1)throw new ua("DQT - invalid table spec");for(C=0;C<64;C++)y[Ia[C]]=bt(e,o),o+=2}u[15&d]=y}break;case 65472:case 65473:case 65474:if(i)throw new ua("Only single frame JPEGs supported");o+=2,(i={}).extended=65473===I,i.progressive=65474===I,i.precision=e[o++];var p=bt(e,o);o+=2,i.scanLines=r||p,i.samplesPerLine=bt(e,o),o+=2,i.components=[],i.componentIds={};var v=e[o++],m=0,w=0;for(f=0;f<v;f++){var b=e[o],k=e[o+1]>>4,D=15&e[o+1];m<k&&(m=k),w<D&&(w=D);var S=e[o+2];B=i.components.push({h:k,v:D,quantizationId:S,quantizationTable:null}),i.componentIds[b]=B-1,o+=3}i.maxH=m,i.maxV=w,n(i);break;case 65476:var F=bt(e,o);for(o+=2,f=2;f<F;){var x=e[o++],R=new Uint8Array(16),G=0;for(C=0;C<16;C++,o++)G+=R[C]=e[o];var N=new Uint8Array(G);for(C=0;C<G;C++,o++)N[C]=e[o];f+=17+G,(x>>4==0?h:l)[15&x]=va(R,N)}break;case 65501:a=bt(e,o+=2),o+=2;break;case 65498:var L=1==++g&&!r;o+=2;var U=e[o++],M=[];for(f=0;f<U;f++){var J=e[o++],H=i.componentIds[J],Y=i.components[H];Y.index=J;var P=e[o++];Y.huffmanTableDC=h[P>>4],Y.huffmanTableAC=l[15&P],M.push(Y)}var O=e[o++],K=e[o++],T=e[o++];try{var j=wa(e,o,i,M,a,O,K,T>>4,15&T,L);o+=j}catch(t){if(t instanceof la)return q("".concat(t.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof ha){q("".concat(t.message," -- ignoring the rest of the image data."));break e}throw t}break;case 65500:o+=4;break;case 65535:255!==e[o]&&o--;break;default:var W=Da(e,o-2,o-3);if(null!=W&&W.invalid){q("JpegImage.parse - unexpected data, current marker is: "+W.invalid),o=W.offset;break}if(!W||o>=e.length-1){q("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new ua("JpegImage.parse - unknown marker: "+I.toString(16))}I=bt(e,o),o+=2}if(!i)throw new ua("JpegImage.parse - no frame data found.");this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=s,this.adobe=c,this.components=[];var Z,_=ea(i.components);try{for(_.s();!(Z=_.n()).done;){var X=Z.value,V=u[X.quantizationId];V&&(X.quantizationTable=V),this.components.push({index:X.index,output:ka(0,X),scaleX:X.h/i.maxH,scaleY:X.v/i.maxV,blocksPerLine:X.blocksPerLine,blocksPerColumn:X.blocksPerColumn})}}catch(e){_.e(e)}finally{_.f()}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function(e,t){var r,A,n,i,a,o,s,c,g,u,l,h,I=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=this.width/e,C=this.height/t,B=0,Q=this.components.length,E=e*t*Q,d=new Uint8ClampedArray(E),y=new Uint32Array(e),p=4294967288;for(s=0;s<Q;s++){if(A=(r=this.components[s]).scaleX*f,n=r.scaleY*C,B=s,l=r.output,i=r.blocksPerLine+1<<3,A!==h){for(a=0;a<e;a++)c=0|a*A,y[a]=(c&p)<<3|7&c;h=A}for(o=0;o<t;o++)for(u=i*((c=0|o*n)&p)|(7&c)<<3,a=0;a<e;a++)d[B]=l[u+y[a]],B+=Q}var v=this._decodeTransform;if(I||4!==Q||v||(v=new Int32Array([-256,255,-256,255,-256,255,-256,255])),v)for(s=0;s<E;)for(c=0,g=0;c<Q;c++,s++,g+=2)d[s]=(d[s]*v[g]>>8)+v[g+1];return d}},{key:"_isColorConversionNeeded",get:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function(e){for(var t,r,A,n=0,i=e.length;n<i;n+=3)t=e[n],r=e[n+1],A=e[n+2],e[n]=t-179.456+1.402*A,e[n+1]=t+135.459-.344*r-.714*A,e[n+2]=t-226.816+1.772*r;return e}},{key:"_convertYccToRgba",value:function(e,t){for(var r=0,A=0,n=e.length;r<n;r+=3,A+=4){var i=e[r],a=e[r+1],o=e[r+2];t[A]=i-179.456+1.402*o,t[A+1]=i+135.459-.344*a-.714*o,t[A+2]=i-226.816+1.772*a,t[A+3]=255}return t}},{key:"_convertYcckToRgb",value:function(e){for(var t,r,A,n,i=0,a=0,o=e.length;a<o;a+=4)t=e[a],r=e[a+1],A=e[a+2],n=e[a+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*A-54080610064599e-18*t+.00048449797120281*n-.154362151871126)-122.67195406894+A*(-.000957964378445773*A+.000817076911346625*t-.00477271405408747*n+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*A+.000659397001245577*t+.000426105652938837*n-.176491792462875)+A*(-.000778269941513683*A+.00130872261408275*t+.000770482631801132*n-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*A+.0020741088115012*t-.00288260236853442*n+.814272968359295)-20.810012546947+A*(-153496057440975e-19*A-.000132689043961446*t+.000560833691242812*n-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407);return e.subarray(0,i)}},{key:"_convertYcckToRgba",value:function(e){for(var t=0,r=e.length;t<r;t+=4){var A=e[t],n=e[t+1],i=e[t+2],a=e[t+3];e[t]=n*(-660635669420364e-19*n+.000437130475926232*i-54080610064599e-18*A+.00048449797120281*a-.154362151871126)-122.67195406894+i*(-.000957964378445773*i+.000817076911346625*A-.00477271405408747*a+1.53380253221734)+A*(.000961250184130688*A-.00266257332283933*a+.48357088451265)+a*(-.000336197177618394*a+.484791561490776),e[t+1]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*i+.000659397001245577*A+.000426105652938837*a-.176491792462875)+i*(-.000778269941513683*i+.00130872261408275*A+.000770482631801132*a-.151051492775562)+A*(.00126935368114843*A-.00265090189010898*a+.25802910206845)+a*(-.000318913117588328*a-.213742400323665),e[t+2]=n*(-.000570115196973677*n-263409051004589e-19*i+.0020741088115012*A-.00288260236853442*a+.814272968359295)-20.810012546947+i*(-153496057440975e-19*i-.000132689043961446*A+.000560833691242812*a-.195152027534049)+A*(.00174418132927582*A-.00255243321439347*a+.116935020465145)+a*(-.000343531996510555*a+.24165260232407),e[t+3]=255}return e}},{key:"_convertYcckToCmyk",value:function(e){for(var t,r,A,n=0,i=e.length;n<i;n+=4)t=e[n],r=e[n+1],A=e[n+2],e[n]=434.456-t-1.402*A,e[n+1]=119.541-t+.344*r+.714*A,e[n+2]=481.816-t-1.772*r;return e}},{key:"_convertCmykToRgb",value:function(e){for(var t,r,A,n,i=0,a=0,o=e.length;a<o;a+=4)t=e[a],r=e[a+1],A=e[a+2],n=e[a+3],e[i++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*r+.0002894718188643294*A+.003264231057537806*n-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*A-.0002748769067499491*n-.02155688794978967)+A*(-3878099212869363e-20*A-.0003267808279485286*n+.0686742238595345)-n*(.0003361971776183937*n+.7430659151342254),e[i++]=255+t*(.00013596372813588848*t+.000924537132573585*r+.00010567359618683593*A+.0004791864687436512*n-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*A+.0020200308977307156*n-.7488052167015494)+A*(6834815998235662e-20*A+.00015168452363460973*n-.09751927774728933)-n*(.0003189131175883281*n+.7364883807733168),e[i++]=255+t*(13598650411385307e-21*t+.00012423956175490851*r+.0004751985097583589*A-36729317476630422e-22*n-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*A+.0007782692450036253*n-.44015232367526463)+A*(5.068882914068769e-7*A+.0017778369011375071*n-.7591454649749609)-n*(.0003435319965105553*n+.7063770186160144);return e.subarray(0,i)}},{key:"_convertCmykToRgba",value:function(e){for(var t=0,r=e.length;t<r;t+=4){var A=e[t],n=e[t+1],i=e[t+2],a=e[t+3];e[t]=255+A*(-6747147073602441e-20*A+.0008379262121013727*n+.0002894718188643294*i+.003264231057537806*a-1.1185611867203937)+n*(26374107616089405e-21*n-8626949158638572e-20*i-.0002748769067499491*a-.02155688794978967)+i*(-3878099212869363e-20*i-.0003267808279485286*a+.0686742238595345)-a*(.0003361971776183937*a+.7430659151342254),e[t+1]=255+A*(.00013596372813588848*A+.000924537132573585*n+.00010567359618683593*i+.0004791864687436512*a-.3109689587515875)+n*(-.00023545346108370344*n+.0002702845253534714*i+.0020200308977307156*a-.7488052167015494)+i*(6834815998235662e-20*i+.00015168452363460973*a-.09751927774728933)-a*(.0003189131175883281*a+.7364883807733168),e[t+2]=255+A*(13598650411385307e-21*A+.00012423956175490851*n+.0004751985097583589*i-36729317476630422e-22*a-.05562186980264034)+n*(.00016141380598724676*n+.0009692239130725186*i+.0007782692450036253*a-.44015232367526463)+i*(5.068882914068769e-7*i+.0017778369011375071*a-.7591454649749609)-a*(.0003435319965105553*a+.7063770186160144),e[t+3]=255}return e}},{key:"getData",value:function(e){var t=e.width,r=e.height,A=e.forceRGBA,n=void 0!==A&&A,i=e.forceRGB,a=void 0!==i&&i,o=e.isSourcePDF,s=void 0!==o&&o;if(this.numComponents>4)throw new ua("Unsupported color mode");var c=this._getLinearizedBlockData(t,r,s);if(1===this.numComponents&&(n||a)){var g=c.length*(n?4:3),u=new Uint8ClampedArray(g),l=0;if(n)!function(e,t){if(se.isLittleEndian)for(var r=0,A=e.length;r<A;r++)t[r]=65793*e[r]|4278190080;else for(var n=0,i=e.length;n<i;n++)t[n]=16843008*e[n]|255}(c,new Uint32Array(u.buffer));else{var h,I=ea(c);try{for(I.s();!(h=I.n()).done;){var f=h.value;u[l++]=f,u[l++]=f,u[l++]=f}}catch(e){I.e(e)}finally{I.f()}}return u}if(3===this.numComponents&&this._isColorConversionNeeded){if(n){var C=new Uint8ClampedArray(c.length/3*4);return this._convertYccToRgba(c,C)}return this._convertYccToRgb(c)}if(4===this.numComponents){if(this._isColorConversionNeeded)return n?this._convertYcckToRgba(c):a?this._convertYcckToRgb(c):this._convertYcckToCmyk(c);if(n)return this._convertCmykToRgba(c);if(a)return this._convertCmykToRgb(c)}return c}}])}();function Fa(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,xa(A.key),A)}}function xa(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Ra(e,t,r){return t=Na(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Ga()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function Ga(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ga=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Na(e)}function La(e,t){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},La(e,t)}var Ua,Ma,Ja=function(e){function t(e,r,A){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ra(this,t,[r])).stream=e,n.dict=e.dict,n.maybeLength=r,n.params=A,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&La(e,t)}(t,XA),r=t,(A=[{key:"bytes",get:function(){return _(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){this.decodeImage()}},{key:"decodeImage",value:function(e){if(this.eof)return this.buffer;e||(e=this.bytes);for(var t=0,r=e.length-1;t<r;t++)if(255===e[t]&&216===e[t+1]){t>0&&(e=e.subarray(t));break}var A={decodeTransform:void 0,colorTransform:void 0},n=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(n)){for(var i=this.dict.get("BPC","BitsPerComponent")||8,a=n.length,o=new Int32Array(a),s=!1,c=(1<<i)-1,g=0;g<a;g+=2)o[g]=256*(n[g+1]-n[g])|0,o[g+1]=n[g]*c|0,256===o[g]&&0===o[g+1]||(s=!0);s&&(A.decodeTransform=o)}if(this.params instanceof He){var u=this.params.get("ColorTransform");Number.isInteger(u)&&(A.colorTransform=u)}var l=new Sa(A);l.parse(e);var h=l.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});return this.buffer=h,this.bufferLength=h.length,this.eof=!0,this.buffer}},{key:"canAsyncDecodeImageFromBuffer",get:function(){return this.stream.isAsync}}])&&Fa(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}(),Ha=(r(3177),r(6473),r(6625),r(4967),r(6403),r(3355),Ma="undefined"!=typeof document?null===(Ua=document.currentScript)||void 0===Ua?void 0:Ua.src:void 0,function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new Promise((function(r,A){e=r,t=A})),r.decode=function(e,t){var A=t.numComponents,n=void 0===A?4:A,i=t.isIndexedColormap,a=void 0!==i&&i,o=t.smaskInData,s=void 0!==o&&o,c=e.length,g=r._malloc(c);r.HEAPU8.set(e,g);var u=r._jp2_decode(g,c,n>0?n:0,!!a,!!s);if(r._free(g),u){var l=r.errorMessages;return l?(delete r.errorMessages,l):"Unknown error"}var h=r.imageData;return r.imageData=null,h};var A=Object.assign({},r),n="./this.program",i="";"undefined"!=typeof document&&document.currentScript&&(i=document.currentScript.src),Ma&&(i=Ma),i=i.startsWith("blob:")?"":i.substr(0,i.replace(/[?#].*/,"").lastIndexOf("/")+1);var a,o,s,c,g,u=r.print||console.log.bind(console),l=r.printErr||console.error.bind(console);function h(){var e=o.buffer;r.HEAP8=s=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAPU8=c=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAP32=new Int32Array(e),r.HEAPU32=g=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}Object.assign(r,A),A=null,r.arguments&&r.arguments,r.thisProgram&&(n=r.thisProgram),r.quit&&r.quit,r.wasmBinary&&(a=r.wasmBinary);var I,f=[],C=[],B=[],Q=0,E=null,d=null,y="data:application/octet-stream;base64,",p=function(e){return e.startsWith(y)};function v(e,t){var r,A=function(e){if(e==I&&a)return new Uint8Array(a);var t=function(e){if(p(e))return function(e){for(var t=atob(e),r=new Uint8Array(t.length),A=0;A<t.length;++A)r[A]=t.charCodeAt(A);return r}(e.slice(y.length))}(e);if(t)return t;throw\'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)\'}(e);return r=new WebAssembly.Module(A),[new WebAssembly.Instance(r,t),r]}var m=function(e){for(;e.length>0;)e.shift()(r)};r.noExitRuntime;var w,b=function(e){var t=(e-o.buffer.byteLength+65535)/65536;try{return o.grow(t),h(),1}catch(e){}},k={},D=function(){if(!D.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(var t in k)void 0===k[t]?delete e[t]:e[t]=k[t];var r=[];for(var t in e)r.push("".concat(t,"=").concat(e[t]));D.strings=r}return D.strings},S=[null,[],[]],F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,x=function(e,t,r){for(var A=t+r,n=t;e[n]&&!(n>=A);)++n;if(n-t>16&&e.buffer&&F)return F.decode(e.subarray(t,n));for(var i="";t<n;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var s=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|s:(7&a)<<18|o<<12|s<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},R=function(e,t){return e?x(c,e,t):""},G={c:function(e,t,r){return c.copyWithin(e,t,t+r)},g:function(e,t){e>>=2;var A=r.imageData=new Uint8ClampedArray(t),n=r.HEAP32.subarray(e,e+t);A.set(n)},f:function(e,t,A,n){e>>=2,t>>=2,A>>=2;for(var i=r.imageData=new Uint8ClampedArray(3*n),a=r.HEAP32.subarray(e,e+n),o=r.HEAP32.subarray(t,t+n),s=r.HEAP32.subarray(A,A+n),c=0;c<n;c++)i[3*c]=a[c],i[3*c+1]=o[c],i[3*c+2]=s[c]},e:function(e,t,A,n,i){e>>=2,t>>=2,A>>=2,n>>=2;for(var a=r.imageData=new Uint8ClampedArray(4*i),o=r.HEAP32.subarray(e,e+i),s=r.HEAP32.subarray(t,t+i),c=r.HEAP32.subarray(A,A+i),g=r.HEAP32.subarray(n,n+i),u=0;u<i;u++)a[4*u]=o[u],a[4*u+1]=s[u],a[4*u+2]=c[u],a[4*u+3]=g[u]},k:function(e){var t=c.length,r=2147483648;if((e>>>=0)>r)return!1;for(var A,n=1;n<=4;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+100663296);var a=Math.min(r,(A=Math.max(e,i))+(65536-A%65536)%65536);if(b(a))return!0}return!1},l:function(e,t){var r=0;return D().forEach((function(A,n){var i=t+r;g[e+4*n>>2]=i,function(e,t){for(var r=0;r<e.length;++r)s[t++]=e.charCodeAt(r);s[t]=0}(A,i),r+=A.length+1})),0},m:function(e,t){var r=D();g[e>>2]=r.length;var A=0;return r.forEach((function(e){return A+=e.length+1})),g[t>>2]=A,0},n:function(e){return 52},j:function(e,t,r,A,n){return 70},b:function(e,t,r,A){for(var n,i,a,o=0,s=0;s<r;s++){var h=g[t>>2],I=g[t+4>>2];t+=8;for(var f=0;f<I;f++)n=e,i=c[h+f],a=void 0,a=S[n],0===i||10===i?((1===n?u:l)(x(a,0)),a.length=0):a.push(i);o+=I}return g[A>>2]=o,0},o:function(e,t){e>>=2;for(var A=r.imageData=new Uint8ClampedArray(4*t),n=r.HEAP32.subarray(e,e+t),i=0;i<t;i++)A[4*i]=A[4*i+1]=A[4*i+2]=n[i],A[4*i+3]=255},i:function(e,t,A){e>>=2,t>>=2;for(var n=r.imageData=new Uint8ClampedArray(4*A),i=r.HEAP32.subarray(e,e+A),a=r.HEAP32.subarray(t,t+A),o=0;o<A;o++)n[4*o]=n[4*o+1]=n[4*o+2]=i[o],n[4*o+3]=a[o]},d:function(e){var t=R(e);(r.warn||console.warn)("OpenJPEG: ".concat(t))},h:function(e,t,A,n){e>>=2,t>>=2,A>>=2;for(var i=r.imageData=new Uint8ClampedArray(4*n),a=r.HEAP32.subarray(e,e+n),o=r.HEAP32.subarray(t,t+n),s=r.HEAP32.subarray(A,A+n),c=0;c<n;c++)i[4*c]=a[c],i[4*c+1]=o[c],i[4*c+2]=s[c],i[4*c+3]=255},a:function(e){var t=R(e);r.errorMessages?r.errorMessages+="\\n"+t:r.errorMessages=t}},N=function(){var e,A={a:G};function n(e,t){var A;return N=e.exports,o=N.p,h(),A=N.q,C.unshift(A),function(e){var t;if(Q--,null===(t=r.monitorRunDependencies)||void 0===t||t.call(r,Q),0==Q&&(null!==E&&(clearInterval(E),E=null),d)){var A=d;d=null,A()}}(),N}if(Q++,null===(e=r.monitorRunDependencies)||void 0===e||e.call(r,Q),r.instantiateWasm)try{return r.instantiateWasm(A,n)}catch(e){l("Module.instantiateWasm callback failed with error: ".concat(e)),t(e)}return I||(I="data:application/octet-stream;base64, "),n(v(I,A)[0])}();function L(){function t(){w||(w=!0,r.calledRun=!0,m(C),e(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),B.unshift(e);var e;m(B)}())}Q>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),f.unshift(e);var e;m(f)}(),Q>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}if(N.q,r._malloc=N.r,r._free=N.s,r._jp2_decode=N.u,d=function e(){w||L(),w||(d=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return L(),r});const Ya=Ha;function Pa(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Oa(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Ta(A.key),A)}}function Ka(e,t,r){return t&&Oa(e.prototype,t),r&&Oa(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ta(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function qa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ja(e,t,r){return t=Za(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Wa()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function Wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wa=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Za(e)}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}var Xa=function(e){function t(e){return qa(this,t),ja(this,t,[e,"JpxError"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_a(e,t)}(t,X),Ka(t)}(),Va=function(){function e(){qa(this,e)}return Ka(e,null,[{key:"decode",value:function(t,r){r||(r={}),Pa(e,this,za)._||(za._=Pa(e,this,Ya({warn:q})));var A=Pa(e,this,za)._.decode(t,r);if("string"==typeof A)throw new Xa(A);return A}},{key:"cleanup",value:function(){za._=Pa(e,this,null)}},{key:"parseImageProperties",value:function(e){for(var t=e.getByte();t>=0;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,A=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.getInt32()>>>0;return e.skip(16),{width:r-n,height:A-i,bitsPerComponent:8,componentsCount:e.getUint16()}}throw new Xa("No size marker found in JPX stream")}}])}(),za={_:null};function $a(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,eo(A.key),A)}}function eo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function to(e,t,r){return t=Ao(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,ro()?Reflect.construct(t,r||[],Ao(e).constructor):t.apply(e,r))}function ro(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ro=function(){return!!e})()}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function no(e,t){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},no(e,t)}var io=function(e){function t(e,r,A){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=to(this,t,[r])).stream=e,n.dict=e.dict,n.maybeLength=r,n.params=A,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(t,XA),r=t,(A=[{key:"bytes",get:function(){return _(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(e){this.decodeImage(null,e)}},{key:"decodeImage",value:function(e,t){return this.eof||(e||(e=this.bytes),this.buffer=Va.decode(e,t),this.bufferLength=this.buffer.length,this.eof=!0),this.buffer}},{key:"canAsyncDecodeImageFromBuffer",get:function(){return this.stream.isAsync}}])&&$a(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function ao(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,oo(A.key),A)}}function oo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function so(e,t,r){return t=go(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,co()?Reflect.construct(t,r||[],go(e).constructor):t.apply(e,r))}function co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(co=function(){return!!e})()}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(e)}function uo(e,t){return uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uo(e,t)}var lo=function(e){function t(e,r,A){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=so(this,t,[r])).str=e,n.dict=e.dict,n.cachedData=0,n.bitsCached=0;for(var i=4096,a={earlyChange:A,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0},o=0;o<256;++o)a.dictionaryValues[o]=o,a.dictionaryLengths[o]=1;return n.lzwState=a,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uo(e,t)}(t,XA),r=t,(A=[{key:"readBits",value:function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var A=this.str.getByte();if(-1===A)return this.eof=!0,null;r=r<<8|A,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1}},{key:"readBlock",value:function(){var e,t,r,A=1024,n=this.lzwState;if(n){var i=n.earlyChange,a=n.nextCode,o=n.dictionaryValues,s=n.dictionaryLengths,c=n.dictionaryPrevCodes,g=n.codeLength,u=n.prevCode,l=n.currentSequence,h=n.currentSequenceLength,I=0,f=this.bufferLength,C=this.ensureBuffer(this.bufferLength+A);for(e=0;e<512;e++){var B=this.readBits(g),Q=h>0;if(B<256)l[0]=B,h=1;else{if(!(B>=258)){if(256===B){g=9,a=258,h=0;continue}this.eof=!0,delete this.lzwState;break}if(B<a)for(t=(h=s[B])-1,r=B;t>=0;t--)l[t]=o[r],r=c[r];else l[h++]=l[0]}if(Q&&(c[a]=u,s[a]=s[u]+1,o[a]=l[0],g=++a+i&a+i-1?g:0|Math.min(Math.log(a+i)/.6931471805599453+1,12)),u=B,A<(I+=h)){do{A+=512}while(A<I);C=this.ensureBuffer(this.bufferLength+A)}for(t=0;t<h;t++)C[f++]=l[t]}n.nextCode=a,n.codeLength=g,n.prevCode=u,n.currentSequenceLength=h,this.bufferLength=f}}}])&&ao(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function ho(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Io(A.key),A)}}function Io(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function fo(e,t,r){return t=Qo(t),Co(e,Bo()?Reflect.construct(t,r||[],Qo(e).constructor):t.apply(e,r))}function Co(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}function Bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bo=function(){return!!e})()}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qo(e)}function Eo(e,t){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eo(e,t)}var yo=function(e){function t(e,r,A){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=fo(this,t,[r]),!(A instanceof He))return Co(n,e);var i=n.predictor=A.get("Predictor")||1;if(i<=1)return Co(n,e);if(2!==i&&(i<10||i>15))throw new re("Unsupported predictor: ".concat(i));n.readBlock=2===i?n.readBlockTiff:n.readBlockPng,n.str=e,n.dict=e.dict;var a=n.colors=A.get("Colors")||1,o=n.bits=A.get("BPC","BitsPerComponent")||8,s=n.columns=A.get("Columns")||1;return n.pixBytes=a*o+7>>3,n.rowBytes=s*a*o+7>>3,Co(n,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eo(e,t)}(t,XA),r=t,(A=[{key:"readBlockTiff",value:function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),A=this.bits,n=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var a,o=0,s=0,c=0,g=0,u=t;if(1===A&&1===n)for(a=0;a<e;++a){var l=i[a]^o;l^=l>>1,l^=l>>2,o=(1&(l^=l>>4))<<7,r[u++]=l}else if(8===A){for(a=0;a<n;++a)r[u++]=i[a];for(;a<e;++a)r[u]=r[u-n]+i[a],u++}else if(16===A){var h=2*n;for(a=0;a<h;++a)r[u++]=i[a];for(;a<e;a+=2){var I=((255&i[a])<<8)+(255&i[a+1])+((255&r[u-h])<<8)+(255&r[u-h+1]);r[u++]=I>>8&255,r[u++]=255&I}}else{var f=new Uint8Array(n+1),C=(1<<A)-1,B=0,Q=t,E=this.columns;for(a=0;a<E;++a)for(var d=0;d<n;++d)c<A&&(o=o<<8|255&i[B++],c+=8),f[d]=f[d]+(o>>c-A)&C,c-=A,s=s<<A|f[d],(g+=A)>=8&&(r[Q++]=s>>g-8&255,g-=8);g>0&&(r[Q++]=(s<<8-g)+(o&(1<<8-g)-1))}this.bufferLength+=e}}},{key:"readBlockPng",value:function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),A=this.str.getBytes(e);if(this.eof=!A.length,!this.eof){var n=this.bufferLength,i=this.ensureBuffer(n+e),a=i.subarray(n-e,n);0===a.length&&(a=new Uint8Array(e));var o,s,c,g=n;switch(r){case 0:for(o=0;o<e;++o)i[g++]=A[o];break;case 1:for(o=0;o<t;++o)i[g++]=A[o];for(;o<e;++o)i[g]=i[g-t]+A[o]&255,g++;break;case 2:for(o=0;o<e;++o)i[g++]=a[o]+A[o]&255;break;case 3:for(o=0;o<t;++o)i[g++]=(a[o]>>1)+A[o];for(;o<e;++o)i[g]=(a[o]+i[g-t]>>1)+A[o]&255,g++;break;case 4:for(o=0;o<t;++o)s=a[o],c=A[o],i[g++]=s+c;for(;o<e;++o){s=a[o];var u=a[o-t],l=i[g-t],h=l+s-u,I=h-l;I<0&&(I=-I);var f=h-s;f<0&&(f=-f);var C=h-u;C<0&&(C=-C),c=A[o],i[g++]=I<=f&&I<=C?l+c:f<=C?s+c:u+c}break;default:throw new re("Unsupported predictor: ".concat(r))}this.bufferLength+=e}}}])&&ho(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function po(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,vo(A.key),A)}}function vo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function mo(e,t,r){return t=bo(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,wo()?Reflect.construct(t,r||[],bo(e).constructor):t.apply(e,r))}function wo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wo=function(){return!!e})()}function bo(e){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bo(e)}function ko(e,t){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ko(e,t)}var Do=function(e){function t(e,r){var A;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(A=mo(this,t,[r])).str=e,A.dict=e.dict,A}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(t,XA),r=t,(A=[{key:"readBlock",value:function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,A=e[0];if(A<128){if((t=this.ensureBuffer(r+A+1))[r++]=e[1],A>0){var n=this.str.getBytes(A);t.set(n,r),r+=A}}else{A=257-A;var i=e[1];t=this.ensureBuffer(r+A+1);for(var a=0;a<A;a++)t[r++]=i}this.bufferLength=r}}}])&&po(r.prototype,A),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,A}();function So(e){return function(e){if(Array.isArray(e))return Ro(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=xo(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function xo(e,t){if(e){if("string"==typeof e)return Ro(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ro(e,t):void 0}}function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Uo(A.key),A)}}function Lo(e,t,r){return t&&No(e.prototype,t),r&&No(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Mo=new WeakSet,Jo=function(){return Lo((function e(t){var r=t.lexer,A=t.xref,n=t.allowStreams,i=void 0!==n&&n,a=t.recoveryMode,o=void 0!==a&&a;Go(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mo),this.lexer=r,this.xref=A,this.allowStreams=i,this.recoveryMode=o,this.imageCache=Object.create(null),this._imageId=0,this.refill()}),[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof Me&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}},{key:"tryShift",value:function(){try{return this.shift(),!0}catch(e){if(e instanceof Ct)throw e;return!1}}},{key:"getObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof Me)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!Te(this.buf1,"]")&&this.buf1!==Re;)r.push(this.getObj(e));if(this.buf1===Re){if(this.recoveryMode)return r;throw new Bt("End of file inside array.")}return this.shift(),r;case"<<":for(var A=new He(this.xref);!Te(this.buf1,">>")&&this.buf1!==Re;)if(this.buf1 instanceof Ue){var n=this.buf1.name;if(this.shift(),this.buf1===Re)break;A.set(n,this.getObj(e))}else T("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1===Re){if(this.recoveryMode)return A;throw new Bt("End of file inside dictionary.")}return Te(this.buf2,"stream")?this.allowStreams?this.makeStream(A,e):A:(this.shift(),A);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&Te(this.buf2,"R")){var i=Ye.get(t,this.buf1);return this.shift(),this.shift(),i}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,A=this.lexer.knownCommands,n=e.pos,i=0;-1!==(t=e.getByte());)if(0===i)i=69===t?1:0;else if(1===i)i=73===t?2:0;else if(32===t||10===t||13===t){r=e.pos;var a=e.peekBytes(15),o=a.length;if(0===o)break;for(var s=0;s<o;s++)if((0!==(t=a[s])||0===a[s+1])&&10!==t&&13!==t&&(t<32||t>127)){i=0;break}if(2!==i)continue;if(!A){q("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}var c=new Oo(new ar(a.slice()),A);c._hexStringWarn=function(){};for(var g=0;;){var u=c.getObj();if(u===Re){i=0;break}if(u instanceof Me){var l=A[u.cmd];if(!l){i=0;break}if(l.variableArgs?g<=l.numArgs:g===l.numArgs)break;g=0}else g++}if(2===i)break}else i=0;-1===t&&(q("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&(q(\'... trying to recover by using the last "EI" occurrence.\'),e.skip(-(e.pos-r))));var h=4;return e.skip(-h),t=e.peekByte(),e.skip(h),Dt(t)||h--,e.pos-h-n}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,r,A=e.pos,n=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:n=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(n)break}var i=e.pos-A;return-1===t?(q("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte());)if(126===t){var A=e.pos;for(t=e.peekByte();Dt(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>A){var n=e.peekBytes(2);if(69===n[0]&&73===n[1])break}}var i=e.pos-r;return-1===t?(q("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);var A=e.pos-r;return-1===t?(q("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-A),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),A)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,A=r.stream,n=Object.create(null);!Te(this.buf1,"ID")&&this.buf1!==Re;){if(!(this.buf1 instanceof Ue))throw new re("Dictionary key must be a name object");var i=this.buf1.name;if(this.shift(),this.buf1===Re)break;n[i]=this.getObj(e)}-1!==r.beginInlineImagePos&&(t=A.pos-r.beginInlineImagePos);var a,o=this.xref.fetchIfRef(n.F||n.Filter);if(o instanceof Ue)a=o.name;else if(Array.isArray(o)){var s=this.xref.fetchIfRef(o[0]);s instanceof Ue&&(a=s.name)}var c,g,u=A.pos;switch(a){case"DCT":case"DCTDecode":c=this.findDCTDecodeInlineStreamEnd(A);break;case"A85":case"ASCII85Decode":c=this.findASCII85DecodeInlineStreamEnd(A);break;case"AHx":case"ASCIIHexDecode":c=this.findASCIIHexDecodeInlineStreamEnd(A);break;default:c=this.findDefaultInlineStreamEnd(A)}if(c<1e3&&t>0){var l=A.pos;A.pos=r.beginInlineImagePos,g=function(e){for(var t=[],r=e.length,A=0;A<r-1;)t.push(e[A++]<<8|e[A++]);return A<r&&t.push(e[A]),r+"_"+String.fromCharCode.apply(null,t)}(A.getBytes(t+c)),A.pos=l;var h=this.imageCache[g];if(void 0!==h)return this.buf2=Me.get("EI"),this.shift(),h.reset(),h}var I=new He(this.xref);for(var f in n)I.set(f,n[f]);var C=A.makeSubStream(u,c,I);return e&&(C=e.createStream(C,c)),(C=this.filter(C,I,c)).dict=I,void 0!==g&&(C.cacheKey="inline_img_".concat(++this._imageId),this.imageCache[g]=C),this.buf2=Me.get("EI"),this.shift(),C}},{key:"makeStream",value:function(e,t){var r=this.lexer,A=r.stream;r.skipToNextLine();var n=A.pos-1,i=e.get("Length");if(Number.isInteger(i)||(T(\'Bad length "\'.concat(i&&i.toString(),\'" in stream.\')),i=0),A.pos=n+i,r.nextChar(),this.tryShift()&&Te(this.buf2,"endstream"))this.shift();else{if(i=function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(Mo,this,Ho).call(this,n),i<0)throw new re("Missing endstream command.");r.nextChar(),this.shift(),this.shift()}return this.shift(),A=A.makeSubStream(n,i,e),t&&(A=t.createStream(A,i)),(A=this.filter(A,e,i)).dict=e,A}},{key:"filter",value:function(e,t,r){var A=t.get("F","Filter"),n=t.get("DP","DecodeParms");if(A instanceof Ue)return Array.isArray(n)&&q("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,A.name,r,n);var i=r;if(Array.isArray(A))for(var a=A,o=n,s=0,c=a.length;s<c;++s){if(!((A=this.xref.fetchIfRef(a[s]))instanceof Ue))throw new re(\'Bad filter name "\'.concat(A,\'"\'));n=null,Array.isArray(o)&&s in o&&(n=this.xref.fetchIfRef(o[s])),e=this.makeFilter(e,A.name,i,n),i=null}return e}},{key:"makeFilter",value:function(e,t,r,A){if(0===r)return q(\'Empty "\'.concat(t,\'" stream.\')),new sr;try{switch(t){case"Fl":case"FlateDecode":return A?new yo(new _n(e,r),r,A):new _n(e,r);case"LZW":case"LZWDecode":var n=1;return A?(A.has("EarlyChange")&&(n=A.get("EarlyChange")),new yo(new lo(e,r,n),r,A)):new lo(e,r,n);case"DCT":case"DCTDecode":return new Ja(e,r,A);case"JPX":case"JPXDecode":return new io(e,r,A);case"A85":case"ASCII85Decode":return new nn(e,r);case"AHx":case"ASCIIHexDecode":return new hn(e,r);case"CCF":case"CCITTFaxDecode":return new Fn(e,r,A);case"RL":case"RunLengthDecode":return new Do(e,r);case"JBIG2Decode":return new Vi(e,r,A)}return q(\'Filter "\'.concat(t,\'" is not supported.\')),e}catch(e){if(e instanceof Ct)throw e;return q(\'Invalid stream: "\'.concat(e,\'"\')),new sr}}}])}();function Ho(e){var t=this.lexer.stream;t.pos=e;for(var r=new Uint8Array([101,110,100]),A=r.length,n=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],i=9-A;t.pos<t.end;){var a=t.peekBytes(2048),o=a.length-9;if(o<=0)break;for(var s=0;s<o;){for(var c=0;c<A&&a[s+c]===r[c];)c++;if(c>=A){var g,u=!1,l=Fo(n);try{for(l.s();!(g=l.n()).done;){for(var h=g.value,I=h.length,f=0;f<I&&a[s+c+f]===h[f];)f++;if(f>=i){u=!0;break}if(f>=I){Dt(a[s+c+f])&&(T(\'Found "\'.concat(ne([].concat(So(r),So(h))),\'" when \')+"searching for endstream command."),u=!0);break}}}catch(e){l.e(e)}finally{l.f()}if(u)return t.pos+=s,t.pos-e}s++}t.pos+=o}return-1}var Yo=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Po(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var Oo=function(){return Lo((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Go(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}),[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,A=1;if(45===e?(A=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){var n="Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")");if(Dt(e)||-1===e)return T(\'Lexer.getNumber - "\'.concat(n,\'".\')),0;throw new re(n)}for(var i=e-48,a=0,o=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var s=e-48;t?a=10*a+s:(0!==r&&(r*=10),i=10*i+s)}else if(46===e){if(0!==r)break;r=1}else if(45===e)q("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)o=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(i/=r),t&&(i*=Math.pow(10,o*a)),A*i}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var A=this.nextChar();;){var n=!1;switch(0|A){case-1:q("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(A=this.nextChar()){case-1:q("Unterminated string"),t=!0;break;case 110:r.push("\\n");break;case 114:r.push("\\r");break;case 116:r.push("\\t");break;case 98:r.push("\\b");break;case 102:r.push("\\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(A));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var i=15&A;n=!0,(A=this.nextChar())>=48&&A<=55&&(i=(i<<3)+(15&A),(A=this.nextChar())>=48&&A<=55&&(n=!1,i=(i<<3)+(15&A))),r.push(String.fromCharCode(i));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(A))}break;default:r.push(String.fromCharCode(A))}if(t)break;n||(A=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!Yo[e];)if(35===e){if(e=this.nextChar(),Yo[e]){q("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var A=Po(e);if(-1!==A){t=e;var n=Po(e=this.nextChar());if(-1===n){if(q("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),Yo[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(A<<4|n))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&q("Name token is longer than allowed by the spec: ".concat(r.length)),Ue.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||q("getHexString - ignoring invalid character: ".concat(e)):q("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t=this.currentChar,r=-1,A=-1;for(this._hexStringNumWarn=0;;){if(t<0){q("Unterminated hex string");break}if(62===t){this.nextChar();break}1!==Yo[t]?(-1===(A=Po(t))?this._hexStringWarn(t):-1===r?r=A:(e.push(String.fromCharCode(r<<4|A)),r=-1),t=this.nextChar()):t=this.nextChar()}return-1!==r&&e.push(String.fromCharCode(r<<4)),e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return Re;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==Yo[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),Me.get("[");case 93:return this.nextChar(),Me.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),Me.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),Me.get(">>")):Me.get(">");case 123:return this.nextChar(),Me.get("{");case 125:return this.nextChar(),Me.get("}");case 41:throw this.nextChar(),new re("Illegal character: ".concat(t))}var r=String.fromCharCode(t);if(t<32||t>127){var A=this.peekChar();if(A>=32&&A<=127)return this.nextChar(),Me.get(r)}for(var n=this.knownCommands,i=void 0!==(null==n?void 0:n[r]);(t=this.nextChar())>=0&&!Yo[t];){var a=r+String.fromCharCode(t);if(i&&void 0===n[a])break;if(128===r.length)throw new re("Command token too long: ".concat(r.length));r=a,i=void 0!==(null==n?void 0:n[r])}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),Me.get(r)))}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}])}(),Ko=function(){return Lo((function e(){Go(this,e)}),null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=e.get(t);if(Number.isInteger(A)&&(r?A>=0:A>0))return A;throw new Error(\'The "\'.concat(t,\'" parameter in the linearization \')+"dictionary is invalid.")}var r,A,n=new Jo({lexer:new Oo(e),xref:null}),i=n.getObj(),a=n.getObj(),o=n.getObj(),s=n.getObj();if(!(Number.isInteger(i)&&Number.isInteger(a)&&Te(o,"obj")&&s instanceof He&&"number"==typeof(r=s.get("Linearized"))&&r>0))return null;if((A=t(s,"L"))!==e.length)throw new Error(\'The "L" parameter in the linearization dictionary does not equal the stream length.\');return{length:A,hints:function(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var A=0;A<t;A++){var n=r[A];if(!(Number.isInteger(n)&&n>0))throw new Error("Hint (".concat(A,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(s),objectNumberFirst:t(s,"O"),endFirst:t(s,"E"),numPages:t(s,"N"),mainXRefEntriesOffset:t(s,"T"),pageFirst:s.has("P")?t(s,"P",!0):0}}}])}();function To(){To=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function qo(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function jo(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){qo(i,A,n,a,o,"next",e)}function o(e){qo(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Wo(e,t,r){return t=_o(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Zo()?Reflect.construct(t,r||[],_o(e).constructor):t.apply(e,r))}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zo=function(){return!!e})()}function _o(e){return _o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_o(e)}function Xo(e,t){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xo(e,t)}function Vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zo(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,es(A.key),A)}}function $o(e,t,r){return t&&zo(e.prototype,t),r&&zo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function es(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var ts=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],rs=Math.pow(2,24)-1,As=function(){return $o((function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Vo(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}),[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>rs)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>rs)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var A=r.length-1;e<=t;){this._map[e++]=r;var n=r.charCodeAt(A)+1;r=n>255?r.substring(0,A-1)+String.fromCharCode(r.charCodeAt(A-1)+1)+"\\0":r.substring(0,A)+String.fromCharCode(n)}}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>rs)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var A=r.length,n=0;e<=t&&n<A;)this._map[e]=r[n++],++e}},{key:"mapOne",value:function(e,t){this._map[e]=t}},{key:"lookup",value:function(e){return this._map[e]}},{key:"contains",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){var t=this._map,r=t.length;if(r<=65536)for(var A=0;A<r;A++)void 0!==t[A]&&e(A,t[A]);else for(var n in t)e(n,t[n])}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"getMap",value:function(){return this._map}},{key:"readCharCode",value:function(e,t,r){for(var A=0,n=this.codespaceRanges,i=0,a=n.length;i<a;i++){A=(A<<8|e.charCodeAt(t+i))>>>0;for(var o=n[i],s=0,c=o.length;s<c;){var g=o[s++],u=o[s++];if(A>=g&&A<=u)return r.charcode=A,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"getCharCodeLength",value:function(e){for(var t=this.codespaceRanges,r=0,A=t.length;r<A;r++)for(var n=t[r],i=0,a=n.length;i<a;){var o=n[i++],s=n[i++];if(e>=o&&e<=s)return r+1}return 1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}])}(),ns=function(e){function t(e,r){var A;return Vo(this,t),(A=Wo(this,t)).vertical=e,A.addCodespaceRange(r,0,65535),A}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xo(e,t)}(t,As),$o(t,[{key:"mapCidRange",value:function(e,t,r){j("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){j("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){j("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){j("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){j("should not access .isIdentityCMap")}}])}();function is(e){for(var t=0,r=0;r<e.length;r++)t=t<<8|e.charCodeAt(r);return t>>>0}function as(e){if("string"!=typeof e)throw new re("Malformed CMap: expected string.")}function os(e){if(!Number.isInteger(e))throw new re("Malformed CMap: expected int.")}function ss(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endbfchar"))return;as(r);var A=is(r);as(r=t.getObj());var n=r;e.mapOne(A,n)}}function cs(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endbfrange"))return;as(r);var A=is(r);as(r=t.getObj());var n=is(r);if(r=t.getObj(),Number.isInteger(r)||"string"==typeof r){var i=Number.isInteger(r)?String.fromCharCode(r):r;e.mapBfRange(A,n,i)}else{if(!Te(r,"["))break;r=t.getObj();for(var a=[];!Te(r,"]")&&r!==Re;)a.push(r),r=t.getObj();e.mapBfRangeToArray(A,n,a)}}throw new re("Invalid bf range.")}function gs(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endcidchar"))return;as(r);var A=is(r);os(r=t.getObj());var n=r;e.mapOne(A,n)}}function us(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endcidrange"))return;as(r);var A=is(r);as(r=t.getObj());var n=is(r);os(r=t.getObj());var i=r;e.mapCidRange(A,n,i)}}function ls(e,t){for(;;){var r=t.getObj();if(r===Re)break;if(Te(r,"endcodespacerange"))return;if("string"!=typeof r)break;var A=is(r);if("string"!=typeof(r=t.getObj()))break;var n=is(r);e.addCodespaceRange(r.length,A,n)}throw new re("Invalid codespace range.")}function hs(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function Is(e,t){var r=t.getObj();r instanceof Ue&&(e.name=r.name)}function fs(e,t,r,A){return Cs.apply(this,arguments)}function Cs(){return(Cs=jo(To().mark((function e(t,r,A,n){var i,a,o;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,(o=r.getObj())!==Re){e.next=7;break}return e.abrupt("break",39);case 7:if(!(o instanceof Ue)){e.next=12;break}"WMode"===o.name?hs(t,r):"CMapName"===o.name&&Is(t,r),i=o,e.next=29;break;case 12:if(!(o instanceof Me)){e.next=29;break}e.t0=o.cmd,e.next="endcmap"===e.t0?16:"usecmap"===e.t0?17:"begincodespacerange"===e.t0?19:"beginbfchar"===e.t0?21:"begincidchar"===e.t0?23:"beginbfrange"===e.t0?25:"begincidrange"===e.t0?27:29;break;case 16:return e.abrupt("break",39);case 17:return i instanceof Ue&&(a=i.name),e.abrupt("break",29);case 19:return ls(t,r),e.abrupt("break",29);case 21:return ss(t,r),e.abrupt("break",29);case 23:return gs(t,r),e.abrupt("break",29);case 25:return cs(t,r),e.abrupt("break",29);case 27:return us(t,r),e.abrupt("break",29);case 29:e.next=37;break;case 31:if(e.prev=31,e.t1=e.catch(1),!(e.t1 instanceof Ct)){e.next=35;break}throw e.t1;case 35:return q("Invalid cMap data: "+e.t1),e.abrupt("continue",0);case 37:e.next=0;break;case 39:if(!n&&a&&(n=a),!n){e.next=42;break}return e.abrupt("return",Bs(t,A,n));case 42:return e.abrupt("return",t);case 43:case"end":return e.stop()}}),e,null,[[1,31]])})))).apply(this,arguments)}function Bs(e,t,r){return Qs.apply(this,arguments)}function Qs(){return(Qs=jo(To().mark((function e(t,r,A){var n,i;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Es(A,r);case 2:if(t.useCMap=e.sent,0===t.numCodespaceRanges){for(n=t.useCMap.codespaceRanges,i=0;i<n.length;i++)t.codespaceRanges[i]=n[i].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach((function(e,r){t.contains(e)||t.mapOne(e,t.useCMap.lookup(e))})),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Es(e,t){return ds.apply(this,arguments)}function ds(){return(ds=jo(To().mark((function e(t,r){var A,n,i,a,o;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Identity-H"!==t){e.next=4;break}return e.abrupt("return",new ns(!1,2));case 4:if("Identity-V"!==t){e.next=6;break}return e.abrupt("return",new ns(!0,2));case 6:if(ts.includes(t)){e.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){e.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:return e.next=12,r(t);case 12:if(A=e.sent,n=A.cMapData,i=A.compressionType,a=new As(!0),i!==F.BINARY){e.next=18;break}return e.abrupt("return",(new GA).process(n,a,(function(e){return Bs(a,r,e)})));case 18:if(i!==F.NONE){e.next=21;break}return o=new Oo(new ar(n)),e.abrupt("return",fs(a,o,r,null));case 21:throw new Error(\'Invalid CMap "compressionType" value: \'.concat(i));case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ys=function(){return $o((function e(){Vo(this,e)}),null,[{key:"create",value:(e=jo(To().mark((function e(t){var r,A,n,i;return To().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.encoding,A=t.fetchBuiltInCMap,n=t.useCMap,!(r instanceof Ue)){e.next=5;break}return e.abrupt("return",Es(r.name,A));case 5:if(!(r instanceof ze)){e.next=12;break}return e.next=8,fs(new As,new Oo(r),A,n);case 8:if(!(i=e.sent).isIdentityCMap){e.next=11;break}return e.abrupt("return",Es(i.name,A));case 11:return e.abrupt("return",i);case 12:throw new Error("Encoding required.");case 13:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),ps=(r(7987),[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"]),vs=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],ms=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],ws=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],bs=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],ks=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"],Ds=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""],Ss=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"],Fs=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""],xs=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];function Rs(e){switch(e){case"WinAnsiEncoding":return Ss;case"StandardEncoding":return Ds;case"MacRomanEncoding":return ks;case"SymbolSetEncoding":return Fs;case"ZapfDingbatsEncoding":return xs;case"ExpertEncoding":return ws;case"MacExpertEncoding":return bs;default:return null}}function Gs(e){return function(e){if(Array.isArray(e))return Os(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ps(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ns(e,t,r){return t=Us(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Ls()?Reflect.construct(t,r||[],Us(e).constructor):t.apply(e,r))}function Ls(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ls=function(){return!!e})()}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Us(e)}function Ms(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Js(e,t)}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Js(e,t)}function Hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Ps(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ys(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ps(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Ps(e,t){if(e){if("string"==typeof e)return Os(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Os(e,t):void 0}}function Os(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ts(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,js(A.key),A)}}function qs(e,t,r){return t&&Ts(e.prototype,t),r&&Ts(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function js(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Ws=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],Zs=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],_s=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],Xs=function(){return qs((function e(t,r,A){Ks(this,e),this.bytes=t.getBytes(),this.properties=r,this.seacAnalysisEnabled=!!A}),[{key:"parse",value:function(){var e=this.properties,t=new Vs;this.cff=t;var r=this.parseHeader(),A=this.parseIndex(r.endPos),n=this.parseIndex(A.endPos),i=this.parseIndex(n.endPos),a=this.parseIndex(i.endPos),o=this.parseDict(n.obj.get(0)),s=this.createDict(Ac,o,t.strings);t.header=r.obj,t.names=this.parseNameIndex(A.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=s,t.globalSubrIndex=a.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=s.hasName("ROS");var c=s.getByName("CharStrings"),g=this.parseIndex(c).obj,u=s.getByName("FontMatrix");u&&(e.fontMatrix=u);var l,h,I=s.getByName("FontBBox");if(I&&(e.ascent=Math.max(I[3],I[1]),e.descent=Math.min(I[1],I[3]),e.ascentScaled=!0),t.isCIDFont){for(var f=this.parseIndex(s.getByName("FDArray")).obj,C=0,B=f.count;C<B;++C){var Q=f.get(C),E=this.createDict(Ac,this.parseDict(Q),t.strings);this.parsePrivateDict(E),t.fdArray.push(E)}h=null,l=this.parseCharsets(s.getByName("charset"),g.count,t.strings,!0),t.fdSelect=this.parseFDSelect(s.getByName("FDSelect"),g.count)}else l=this.parseCharsets(s.getByName("charset"),g.count,t.strings,!1),h=this.parseEncoding(s.getByName("Encoding"),e,t.strings,l.charset);t.charset=l,t.encoding=h;var d=this.parseCharStrings({charStrings:g,localSubrIndex:s.privateDict.subrsIndex,globalSubrIndex:a.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:s.privateDict});return t.charStrings=d.charStrings,t.seacs=d.seacs,t.widths=d.widths,t}},{key:"parseHeader",value:function(){for(var e=this.bytes,t=e.length,r=0;r<t&&1!==e[r];)++r;if(r>=t)throw new re("Invalid CFF header");0!==r&&(T("cff data is shifted"),e=e.subarray(r),this.bytes=e);var A=e[0],n=e[1],i=e[2],a=e[3];return{obj:new zs(A,n,i,a),endPos:i}}},{key:"parseDict",value:function(e){var t=0;var r,A=[],n=[];t=0;for(var i=e.length;t<i;){var a=e[t];a<=21?(12===a&&(a=a<<8|e[++t]),n.push([a,A]),A=[],++t):A.push((r=void 0,30===(r=e[t++])?function(){for(var r="",A=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],n=e.length;t<n;){var i=e[t++],a=i>>4,o=15&i;if(15===a)break;if(r+=A[a],15===o)break;r+=A[o]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:(q(\'CFFParser_parseDict: "\'+r+\'" is a reserved command.\'),NaN)))}return n}},{key:"parseIndex",value:function(e){var t,r,A=new ec,n=this.bytes,i=n[e++]<<8|n[e++],a=[],o=e;if(0!==i){var s=n[e++],c=e+(i+1)*s-1;for(t=0,r=i+1;t<r;++t){for(var g=0,u=0;u<s;++u)g<<=8,g+=n[e++];a.push(c+g)}o=a[i]}for(t=0,r=a.length-1;t<r;++t){var l=a[t],h=a[t+1];A.add(n.subarray(l,h))}return{obj:A,endPos:o}}},{key:"parseNameIndex",value:function(e){for(var t=[],r=0,A=e.count;r<A;++r){var n=e.get(r);t.push(ne(n))}return t}},{key:"parseStringIndex",value:function(e){for(var t=new $s,r=0,A=e.count;r<A;++r){var n=e.get(r);t.add(ne(n))}return t}},{key:"createDict",value:function(e,t,r){var A,n=new e(r),i=Ys(t);try{for(i.s();!(A=i.n()).done;){var a=Hs(A.value,2),o=a[0],s=a[1];n.setByKey(o,s)}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"parseCharString",value:function(e,t,r,A){if(!t||e.callDepth>10)return!1;for(var n=e.stackSize,i=e.stack,a=t.length,o=0;o<a;){var s=t[o++],c=null;if(12===s){var g=t[o++];0===g?(t[o-2]=139,t[o-1]=22,n=0):c=_s[g]}else if(28===s)i[n]=(t[o]<<24|t[o+1]<<16)>>16,o+=2,n++;else if(14===s){if(n>=4&&(n-=4,this.seacAnalysisEnabled))return e.seac=i.slice(n,n+4),!1;c=Zs[s]}else if(s>=32&&s<=246)i[n]=s-139,n++;else if(s>=247&&s<=254)i[n]=s<251?(s-247<<8)+t[o]+108:-(s-251<<8)-t[o]-108,o++,n++;else if(255===s)i[n]=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])/65536,o+=4,n++;else if(19===s||20===s){if(e.hints+=n>>1,0===e.hints){t.copyWithin(o-1,o,-1),o-=1,a-=1;continue}o+=e.hints+7>>3,n%=2,c=Zs[s]}else{if(10===s||29===s){var u=10===s?r:A;if(!u)return q("Missing subrsIndex for "+(c=Zs[s]).id),!1;var l=32768;u.count<1240?l=107:u.count<33900&&(l=1131);var h=i[--n]+l;if(h<0||h>=u.count||isNaN(h))return q("Out of bounds subrIndex for "+(c=Zs[s]).id),!1;if(e.stackSize=n,e.callDepth++,!this.parseCharString(e,u.get(h),r,A))return!1;e.callDepth--,n=e.stackSize;continue}if(11===s)return e.stackSize=n,!0;if(0===s&&o===t.length)t[o-1]=14,c=Zs[14];else{if(9===s){t.copyWithin(o-1,o,-1),o-=1,a-=1;continue}c=Zs[s]}}if(c){if(c.stem&&(e.hints+=n>>1,3===s||23===s?e.hasVStems=!0:!e.hasVStems||1!==s&&18!==s||(q("CFF stem hints are in wrong order"),t[o-1]=1===s?3:23)),"min"in c&&!e.undefStack&&n<c.min)return q("Not enough parameters for "+c.id+"; actual: "+n+", expected: "+c.min),0===n&&(t[o-1]=14,!0);e.firstStackClearing&&c.stackClearing&&(e.firstStackClearing=!1,(n-=c.min)>=2&&c.stem?n%=2:n>1&&q("Found too many parameters for stack-clearing command"),n>0&&(e.width=i[n-1])),"stackDelta"in c?("stackFn"in c&&c.stackFn(i,n),n+=c.stackDelta):c.stackClearing?n=0:c.resetStack?(n=0,e.undefStack=!1):c.undefStack&&(n=0,e.undefStack=!0,e.firstStackClearing=!1)}}return a<t.length&&t.fill(14,a),e.stackSize=n,!0}},{key:"parseCharStrings",value:function(e){for(var t=e.charStrings,r=e.localSubrIndex,A=e.globalSubrIndex,n=e.fdSelect,i=e.fdArray,a=e.privateDict,o=[],s=[],c=t.count,g=0;g<c;g++){var u=t.get(g),l={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},h=!0,I=null,f=a;if(n&&i.length){var C=n.getFDIndex(g);-1===C&&(q("Glyph index is not in fd select."),h=!1),C>=i.length&&(q("Invalid fd index for glyph index."),h=!1),h&&(I=(f=i[C].privateDict).subrsIndex)}else r&&(I=r);if(h&&(h=this.parseCharString(l,u,I,A)),null!==l.width){var B=f.getByName("nominalWidthX");s[g]=B+l.width}else{var Q=f.getByName("defaultWidthX");s[g]=Q}null!==l.seac&&(o[g]=l.seac),h||t.set(g,new Uint8Array([14]))}return{charStrings:t,seacs:o,widths:s}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(ic,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],A=t[1];if(0===r||A>=this.bytes.length)this.emptyPrivateDictionary(e);else{var n=A+r,i=this.bytes.subarray(A,n),a=this.parseDict(i),o=this.createDict(ic,a,e.strings);if(e.privateDict=o,0===o.getByName("ExpansionFactor")&&o.setByName("ExpansionFactor",.06),o.getByName("Subrs")){var s=o.getByName("Subrs"),c=A+s;if(0===s||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var g=this.parseIndex(c);o.subrsIndex=g.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,A){if(0===e)return new oc(!0,ac.ISO_ADOBE,ps);if(1===e)return new oc(!0,ac.EXPERT,vs);if(2===e)return new oc(!0,ac.EXPERT_SUBSET,ms);var n,i,a,o=this.bytes,s=e,c=o[e++],g=[A?0:".notdef"];switch(t-=1,c){case 0:for(a=0;a<t;a++)n=o[e++]<<8|o[e++],g.push(A?n:r.get(n));break;case 1:for(;g.length<=t;)for(n=o[e++]<<8|o[e++],i=o[e++],a=0;a<=i;a++)g.push(A?n++:r.get(n++));break;case 2:for(;g.length<=t;)for(n=o[e++]<<8|o[e++],i=o[e++]<<8|o[e++],a=0;a<=i;a++)g.push(A?n++:r.get(n++));break;default:throw new re("Unknown charset format")}var u=e,l=o.subarray(s,u);return new oc(!1,c,g,l)}},{key:"parseEncoding",value:function(e,t,r,A){var n,i,a,o=Object.create(null),s=this.bytes,c=!1,g=null;if(0===e||1===e){c=!0,n=e;var u=e?ws:Ds;for(i=0,a=A.length;i<a;i++){var l=u.indexOf(A[i]);-1!==l&&(o[l]=i)}}else{var h=e;switch(127&(n=s[e++])){case 0:var I=s[e++];for(i=1;i<=I;i++)o[s[e++]]=i;break;case 1:var f=s[e++],C=1;for(i=0;i<f;i++)for(var B=s[e++],Q=s[e++],E=B;E<=B+Q;E++)o[E]=C++;break;default:throw new re("Unknown encoding format: ".concat(n," in CFF"))}var d=e;128&n&&(s[h]&=127,function(){var t=s[e++];for(i=0;i<t;i++){var n=s[e++],a=(s[e++]<<8)+(255&s[e++]);o[n]=A.indexOf(r.get(a))}}()),g=s.subarray(h,d)}return new sc(c,n&=127,o,g)}},{key:"parseFDSelect",value:function(e,t){var r,A=this.bytes,n=A[e++],i=[];switch(n){case 0:for(r=0;r<t;++r){var a=A[e++];i.push(a)}break;case 3:var o=A[e++]<<8|A[e++];for(r=0;r<o;++r){var s=A[e++]<<8|A[e++];0===r&&0!==s&&(q("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),s=0);for(var c=A[e++],g=A[e]<<8|A[e+1],u=s;u<g;++u)i.push(c)}e+=2;break;default:throw new re(\'parseFDSelect: Unknown format "\'.concat(n,\'".\'))}if(i.length!==t)throw new re("parseFDSelect: Invalid font data.");return new cc(n,i)}}])}(),Vs=function(){return qs((function e(){Ks(this,e),this.header=null,this.names=[],this.topDict=null,this.strings=new $s,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}),[{key:"duplicateFirstGlyph",value:function(){if(this.charStrings.count>=65535)q("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}])}(),zs=qs((function e(t,r,A,n){Ks(this,e),this.major=t,this.minor=r,this.hdrSize=A,this.offSize=n})),$s=function(){return qs((function e(){Ks(this,e),this.strings=[]}),[{key:"get",value:function(e){return e>=0&&e<=390?Ws[e]:e-391<=this.strings.length?this.strings[e-391]:Ws[0]}},{key:"getSID",value:function(e){var t=Ws.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1}},{key:"add",value:function(e){this.strings.push(e)}},{key:"count",get:function(){return this.strings.length}}])}(),ec=function(){return qs((function e(){Ks(this,e),this.objects=[],this.length=0}),[{key:"add",value:function(e){this.length+=e.length,this.objects.push(e)}},{key:"set",value:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}},{key:"get",value:function(e){return this.objects[e]}},{key:"count",get:function(){return this.objects.length}}])}(),tc=function(){return qs((function e(t,r){Ks(this,e),this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=r,this.values=Object.create(null)}),[{key:"setByKey",value:function(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;var r,A=Ys(t);try{for(A.s();!(r=A.n()).done;){var n=r.value;if(isNaN(n))return q(\'Invalid CFFDict value: "\'.concat(t,\'" for key "\').concat(e,\'".\')),!0}}catch(e){A.e(e)}finally{A.f()}var i=this.types[e];return"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]),this.values[e]=t,!0}},{key:"setByName",value:function(e,t){if(!(e in this.nameToKeyMap))throw new re(\'Invalid dictionary name "\'.concat(e,\'"\'));this.values[this.nameToKeyMap[e]]=t}},{key:"hasName",value:function(e){return this.nameToKeyMap[e]in this.values}},{key:"getByName",value:function(e){if(!(e in this.nameToKeyMap))throw new re("Invalid dictionary name ".concat(e,\'"\'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}},{key:"removeByName",value:function(e){delete this.values[this.nameToKeyMap[e]]}}],[{key:"createTables",value:function(e){var t,r={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},A=Ys(e);try{for(A.s();!(t=A.n()).done;){var n=t.value,i=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];r.keyToNameMap[i]=n[1],r.nameToKeyMap[n[1]]=i,r.types[i]=n[2],r.defaults[i]=n[3],r.opcodes[i]=Array.isArray(n[0])?n[0]:[n[0]],r.order.push(i)}}catch(e){A.e(e)}finally{A.f()}return r}}])}(),rc=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],Ac=function(e){function t(e){var r;return Ks(this,t),(r=Ns(this,t,[t.tables,e])).privateDict=null,r}return Ms(t,tc),qs(t,null,[{key:"tables",get:function(){return _(this,"tables",this.createTables(rc))}}])}(),nc=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],ic=function(e){function t(e){var r;return Ks(this,t),(r=Ns(this,t,[t.tables,e])).subrsIndex=null,r}return Ms(t,tc),qs(t,null,[{key:"tables",get:function(){return _(this,"tables",this.createTables(nc))}}])}(),ac={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},oc=qs((function e(t,r,A,n){Ks(this,e),this.predefined=t,this.format=r,this.charset=A,this.raw=n})),sc=qs((function e(t,r,A,n){Ks(this,e),this.predefined=t,this.format=r,this.encoding=A,this.raw=n})),cc=function(){return qs((function e(t,r){Ks(this,e),this.format=t,this.fdSelect=r}),[{key:"getFDIndex",value:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}])}(),gc=function(){return qs((function e(){Ks(this,e),this.offsets=Object.create(null)}),[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new re("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new re("Not tracking location of ".concat(e));for(var A=r.data,n=this.offsets[e],i=0,a=t.length;i<a;++i){var o=5*i+n,s=o+1,c=o+2,g=o+3,u=o+4;if(29!==A[o]||0!==A[s]||0!==A[c]||0!==A[g]||0!==A[u])throw new re("writing to an offset that is not empty");var l=t[i];A[o]=29,A[s]=l>>24&255,A[c]=l>>16&255,A[g]=l>>8&255,A[u]=255&l}}}])}(),uc=function(){function e(t){Ks(this,e),this.cff=t}return qs(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add(e){try{var t;(t=this.data).push.apply(t,Gs(e))}catch(t){this.data=this.data.concat(e)}this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var A=this.compileNameIndex(e.names);if(t.add(A),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var n=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");var i,a=Ys(e.fdArray);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=n.slice(0);o.hasName("FontMatrix")&&(s=ge.transform(s,o.getByName("FontMatrix"))),o.setByName("FontMatrix",s)}}catch(e){a.e(e)}finally{a.f()}}var c=e.topDict.getByName("XUID");(null==c?void 0:c.length)>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var g=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(g.output);var u=g.trackers[0],l=this.compileStringIndex(e.strings.strings);t.add(l);var h=this.compileIndex(e.globalSubrIndex);if(t.add(h),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)u.setEntryLocation("Encoding",[e.encoding.format],t);else{var I=this.compileEncoding(e.encoding);u.setEntryLocation("Encoding",[t.length],t),t.add(I)}var f=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);u.setEntryLocation("charset",[t.length],t),t.add(f);var C=this.compileCharStrings(e.charStrings);if(u.setEntryLocation("CharStrings",[t.length],t),t.add(C),e.isCIDFont){u.setEntryLocation("FDSelect",[t.length],t);var B=this.compileFDSelect(e.fdSelect);t.add(B),g=this.compileTopDicts(e.fdArray,t.length,!0),u.setEntryLocation("FDArray",[t.length],t),t.add(g.output);var Q=g.trackers;this.compilePrivateDicts(e.fdArray,Q,t)}return this.compilePrivateDicts([e.topDict],[u],t),t.add([0]),t.data}},{key:"encodeNumber",value:function(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}},{key:"encodeFloat",value:function(t){var r=t.toString(),A=e.EncodeFloatRegExp.exec(r);if(A){var n=parseFloat("1e"+((A[2]?+A[2]:0)+A[1].length));r=(Math.round(t*n)/n).toString()}var i,a,o="";for(i=0,a=r.length;i<a;++i){var s=r[i];o+="e"===s?"-"===r[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}var c=[30];for(i=0,a=(o+=1&o.length?"f":"ff").length;i<a;i+=2)c.push(parseInt(o.substring(i,i+2),16));return c}},{key:"encodeInteger",value:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]}},{key:"compileHeader",value:function(e){return[e.major,e.minor,4,e.offSize]}},{key:"compileNameIndex",value:function(e){var t,r=new ec,A=Ys(e);try{for(A.s();!(t=A.n()).done;){for(var n=t.value,i=Math.min(n.length,127),a=new Array(i),o=0;o<i;o++){var s=n[o];(s<"!"||s>"~"||"["===s||"]"===s||"("===s||")"===s||"{"===s||"}"===s||"<"===s||">"===s||"/"===s||"%"===s)&&(s="_"),a[o]=s}""===(a=a.join(""))&&(a="Bad_Font_Name"),r.add(ie(a))}}catch(e){A.e(e)}finally{A.f()}return this.compileIndex(r)}},{key:"compileTopDicts",value:function(e,t,r){var A,n=[],i=new ec,a=Ys(e);try{for(a.s();!(A=a.n()).done;){var o=A.value;r&&(o.removeByName("CIDFontVersion"),o.removeByName("CIDFontRevision"),o.removeByName("CIDFontType"),o.removeByName("CIDCount"),o.removeByName("UIDBase"));var s=new gc,c=this.compileDict(o,s);n.push(s),i.add(c),s.offset(t)}}catch(e){a.e(e)}finally{a.f()}return{trackers:n,output:i=this.compileIndex(i,n)}}},{key:"compilePrivateDicts",value:function(e,t,r){for(var A=0,n=e.length;A<n;++A){var i=e[A],a=i.privateDict;if(!a||!i.hasName("Private"))throw new re("There must be a private dictionary.");var o=new gc,s=this.compileDict(a,o),c=r.length;if(o.offset(c),s.length||(c=0),t[A].setEntryLocation("Private",[s.length,c],r),r.add(s),a.subrsIndex&&a.hasName("Subrs")){var g=this.compileIndex(a.subrsIndex);o.setEntryLocation("Subrs",[s.length],r),r.add(g)}}}},{key:"compileDict",value:function(e,t){var r,A=[],n=Ys(e.order);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i in e.values){var a=e.values[i],o=e.types[i];if(Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]),0!==a.length){for(var s=0,c=o.length;s<c;++s){var g=o[s],u=a[s];switch(g){case"num":case"sid":A.push.apply(A,Gs(this.encodeNumber(u)));break;case"offset":var l=e.keyToNameMap[i];t.isTracking(l)||t.track(l,A.length),A.push(29,0,0,0,0);break;case"array":case"delta":A.push.apply(A,Gs(this.encodeNumber(u)));for(var h=1,I=a.length;h<I;++h)A.push.apply(A,Gs(this.encodeNumber(a[h])));break;default:throw new re("Unknown data type of ".concat(g))}}A.push.apply(A,Gs(e.opcodes[i]))}}}}catch(e){n.e(e)}finally{n.f()}return A}},{key:"compileStringIndex",value:function(e){var t,r=new ec,A=Ys(e);try{for(A.s();!(t=A.n()).done;){var n=t.value;r.add(ie(n))}}catch(e){A.e(e)}finally{A.f()}return this.compileIndex(r)}},{key:"compileCharStrings",value:function(e){for(var t=new ec,r=0;r<e.count;r++){var A=e.get(r);0!==A.length?t.add(A):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}},{key:"compileCharset",value:function(e,t,r,A){var n,i=t-1;if(A)n=new Uint8Array([2,0,0,i>>8&255,255&i]);else{(n=new Uint8Array(1+2*i))[0]=0;for(var a=0,o=e.charset.length,s=!1,c=1;c<n.length;c+=2){var g=0;if(a<o){var u=e.charset[a++];-1===(g=r.getSID(u))&&(g=0,s||(s=!0,q("Couldn\'t find ".concat(u," in CFF strings"))))}n[c]=g>>8&255,n[c+1]=255&g}}return this.compileTypedArray(n)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r,A=e.format;switch(A){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=A,r=0;r<e.fdSelect.length;r++)t[r+1]=e.fdSelect[r];break;case 3:var n=e.fdSelect[0],i=[A,0,0,0,0,n];for(r=1;r<e.fdSelect.length;r++){var a=e.fdSelect[r];a!==n&&(i.push(r>>8&255,255&r,a),n=a)}var o=(i.length-3)/3;i[1]=o>>8&255,i[2]=255&o,i.push(r>>8&255,255&r),t=new Uint8Array(i)}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){return Array.from(e)}},{key:"compileIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.objects,A=r.length;if(0===A)return[0,0];var n,i,a=[A>>8&255,255&A],o=1;for(n=0;n<A;++n)o+=r[n].length;i=o<256?1:o<65536?2:o<16777216?3:4,a.push(i);var s=1;for(n=0;n<A+1;n++)1===i?a.push(255&s):2===i?a.push(s>>8&255,255&s):3===i?a.push(s>>16&255,s>>8&255,255&s):a.push(s>>>24&255,s>>16&255,s>>8&255,255&s),r[n]&&(s+=r[n].length);for(n=0;n<A;n++)t[n]&&t[n].offset(a.length),a.push.apply(a,Gs(r[n]));return a}}],[{key:"EncodeFloatRegExp",get:function(){return _(this,"EncodeFloatRegExp",/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/)}}])}(),lc=ft((function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595;e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524;e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663;e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739})),hc=ft((function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0})),Ic=ft((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function fc(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var A,n=e.length;if(7===n&&"n"===e[1]&&"i"===e[2])A=e.substring(3);else{if(!(n>=5&&n<=7))return-1;A=e.substring(1)}if(A===A.toUpperCase()&&(r=parseInt(A,16))>=0)return r}return-1}var Cc=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function Bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(-1!==t)for(var r=Cc[t],A=0,n=r.length;A<n;A+=2)if(e>=r[A]&&e<=r[A+1])return t;for(var i=0,a=Cc.length;i<a;i++)for(var o=Cc[i],s=0,c=o.length;s<c;s+=2)if(e>=o[s]&&e<=o[s+1])return i;return-1}var Qc=new RegExp("^(\\\\s)|(\\\\p{Mn})|(\\\\p{Cf})$","u"),Ec=new Map,dc=!0,yc=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function pc(e,t){if(void 0!==t[e])return e;var r=fc(e,t);if(-1!==r)for(var A in t)if(t[A]===r)return A;return T("Unable to recover a standard glyph name for: "+e),e}function vc(e,t,r){var A,n,i,a=Object.create(null),o=!!(4&e.flags);if(e.isInternalFont)for(i=t,n=0;n<i.length;n++)A=r.indexOf(i[n]),a[n]=A>=0?A:0;else if(e.baseEncodingName)for(i=Rs(e.baseEncodingName),n=0;n<i.length;n++)A=r.indexOf(i[n]),a[n]=A>=0?A:0;else if(o)for(n in t)a[n]=t[n];else for(i=Ds,n=0;n<i.length;n++)A=r.indexOf(i[n]),a[n]=A>=0?A:0;var s,c=e.differences;if(c)for(n in c){var g=c[n];if(-1===(A=r.indexOf(g))){s||(s=lc());var u=pc(g,s);u!==g&&(A=r.indexOf(u))}a[n]=A>=0?A:0}return a}function mc(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\\s/g,"")}var wc=ft((function(e){e[8211]=65074,e[8212]=65073,e[8229]=65072,e[8230]=65049,e[12289]=65041,e[12290]=65042,e[12296]=65087,e[12297]=65088,e[12298]=65085,e[12299]=65086,e[12300]=65089,e[12301]=65090,e[12302]=65091,e[12303]=65092,e[12304]=65083,e[12305]=65084,e[12308]=65081,e[12309]=65082,e[12310]=65047,e[12311]=65048,e[65103]=65076,e[65281]=65045,e[65288]=65077,e[65289]=65078,e[65292]=65040,e[65306]=65043,e[65307]=65044,e[65311]=65046,e[65339]=65095,e[65341]=65096,e[65343]=65075,e[65371]=65079,e[65373]=65080})),bc=ft((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",e["Arial-BoldMT-Bold"]="Helvetica-Bold",e["Arial-ItalicMT-Italic"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"})),kc=ft((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="LiberationSans-Regular.ttf",e["Helvetica-Bold"]="LiberationSans-Bold.ttf",e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",e["Helvetica-Oblique"]="LiberationSans-Italic.ttf",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"})),Dc=ft((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.GillSansMT="Helvetica",e["GillSansMT-Bold"]="Helvetica-Bold",e["GillSansMT-BoldItalic"]="Helvetica-BoldOblique",e["GillSansMT-Italic"]="Helvetica-Oblique",e.Impact="Helvetica",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica"})),Sc=ft((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0})),Fc=ft((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0})),xc=ft((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377})),Rc=ft((function(e){e[227]=322,e[264]=261,e[291]=346})),Gc=ft((function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));function Nc(e){var t=mc(e);return bc()[t]}function Lc(e){var t=mc(e);return!!(bc()[t]||Dc()[t]||Sc()[t]||Fc()[t])}function Uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mc(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Hc(A.key),A)}}function Jc(e,t,r){return t&&Mc(e.prototype,t),r&&Mc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hc(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Yc=function(){return Jc((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Uc(this,e),this._map=t}),[{key:"length",get:function(){return this._map.length}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"get",value:function(e){return this._map[e]}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"amend",value:function(e){for(var t in e)this._map[t]=e[t]}}])}(),Pc=function(){return Jc((function e(t,r){Uc(this,e),this.firstChar=t,this.lastChar=r}),[{key:"length",get:function(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}},{key:"has",value:function(e){return this.firstChar<=e&&e<=this.lastChar}},{key:"get",value:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}},{key:"amend",value:function(e){j("Should not call amend()")}}])}();function Oc(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Kc(A.key),A)}}function Kc(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Tc=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.properties=r;var A=new Xs(t,r,dc);this.cff=A.parse(),this.cff.duplicateFirstGlyph();var n=new uc(this.cff);this.seacs=this.cff.seacs;try{this.data=n.compile()}catch(e){q("Failed to compile font "+r.loadedName),this.data=t}this._createBuiltInEncoding()},(t=[{key:"numGlyphs",get:function(){return this.cff.charStrings.count}},{key:"getCharset",value:function(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function(){var e,t,r=this.cff,A=this.properties,n=A.cidToGidMap,i=A.cMap,a=r.charset.charset;if(A.composite){var o,s;if((null==n?void 0:n.length)>0){o=Object.create(null);for(var c=0,g=n.length;c<g;c++){var u=n[c];void 0!==u&&(o[u]=c)}}if(e=Object.create(null),r.isCIDFont)for(t=0;t<a.length;t++){var l,h=a[t];s=i.charCodeOf(h),void 0!==(null===(l=o)||void 0===l?void 0:l[s])&&(s=o[s]),e[s]=t}else for(t=0;t<r.charStrings.count;t++)e[s=i.charCodeOf(t)]=t;return e}var I=r.encoding?r.encoding.encoding:null;return A.isInternalFont&&(I=A.defaultEncoding),vc(A,I,a)}},{key:"hasGlyphId",value:function(e){return this.cff.hasGlyphId(e)}},{key:"_createBuiltInEncoding",value:function(){var e=this.cff,t=e.charset,r=e.encoding;if(t&&r){var A=t.charset,n=r.encoding,i=[];for(var a in n){var o=n[a];if(o>=0){var s=A[o];s&&(i[a]=s)}}i.length>0&&(this.properties.builtInEncoding=i)}}}])&&Oc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qc(e,t,r){return t=Wc(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,jc()?Reflect.construct(t,r||[],Wc(e).constructor):t.apply(e,r))}function jc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jc=function(){return!!e})()}function Wc(e){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wc(e)}function Zc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_c(e,t)}function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_c(e,t)}function Xc(e){return function(e){if(Array.isArray(e))return Vc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vc(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vc(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $c(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,tg(A.key),A)}}function eg(e,t,r){return t&&$c(e.prototype,t),r&&$c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function rg(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function Ag(e,t){return e[t]<<8|e[t+1]}function ng(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function ig(e,t){return e[t]<<24>>24}function ag(e,t){return ng(e,t)/16384}function og(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function sg(e,t,r){var A,n,i,a=1===Ag(e,t+2)?rg(e,t+8):rg(e,t+16),o=Ag(e,t+a);if(4===o){Ag(e,t+a+2);var s=Ag(e,t+a+6)>>1;for(n=t+a+14,A=[],i=0;i<s;i++,n+=2)A[i]={end:Ag(e,n)};for(n+=2,i=0;i<s;i++,n+=2)A[i].start=Ag(e,n);for(i=0;i<s;i++,n+=2)A[i].idDelta=Ag(e,n);for(i=0;i<s;i++,n+=2){var c=Ag(e,n);if(0!==c){A[i].ids=[];for(var g=0,u=A[i].end-A[i].start+1;g<u;g++)A[i].ids[g]=Ag(e,n+c),c+=2}}return A}if(12===o){var l=rg(e,t+a+12);for(n=t+a+16,A=[],i=0;i<l;i++)t=rg(e,n),A.push({start:t,end:rg(e,n+4),idDelta:rg(e,n+8)-t}),n+=12;return A}throw new re("unsupported cmap: ".concat(o))}function cg(e,t,r,A){var n,i,a=new Xs(new ar(e,t,r-t),{},A).parse();return{glyphs:a.charStrings.objects,subrs:null===(n=a.topDict.privateDict)||void 0===n||null===(n=n.subrsIndex)||void 0===n?void 0:n.objects,gsubrs:null===(i=a.globalSubrIndex)||void 0===i?void 0:i.objects,isCFFCIDFont:a.isCIDFont,fdSelect:a.fdSelect,fdArray:a.fdArray}}function gg(e,t){for(var r=t.codePointAt(0),A=0,n=0,i=e.length-1;n<i;){var a=n+i+1>>1;r<e[a].start?i=a-1:n=a}return e[n].start<=r&&r<=e[n].end&&(A=e[n].idDelta+(e[n].ids?e[n].ids[r-e[n].start]:r)&65535),{charCode:r,glyphId:A}}function ug(e,t,r){function A(e,r){t.add(1,[e,r])}function n(e,r){t.add(2,[e,r])}function i(e,r,A,n){t.add(3,[e,r,A,n])}var a,o=0,s=ng(e,o),c=0,g=0;if(o+=10,s<0)do{a=Ag(e,o);var u=Ag(e,o+2);o+=4;var l=void 0,h=void 0;1&a?(2&a?(l=ng(e,o),h=ng(e,o+2)):(l=Ag(e,o),h=Ag(e,o+2)),o+=4):2&a?(l=ig(e,o++),h=ig(e,o++)):(l=e[o++],h=e[o++]),2&a?(c=l,g=h):(c=0,g=0);var I=1,f=1,C=0,B=0;8&a?(I=f=ag(e,o),o+=2):64&a?(I=ag(e,o),f=ag(e,o+2),o+=4):128&a&&(I=ag(e,o),C=ag(e,o+2),B=ag(e,o+4),f=ag(e,o+6),o+=8);var Q=r.glyphs[u];Q&&(t.add(5),t.add(7,[I,C,B,f,c,g]),ug(Q,t,r),t.add(4))}while(32&a);else{var E,d,y=[];for(E=0;E<s;E++)y.push(Ag(e,o)),o+=2;o+=2+Ag(e,o);for(var p=y.at(-1)+1,v=[];v.length<p;){var m=1;for(8&(a=e[o++])&&(m+=e[o++]);m-- >0;)v.push({flags:a})}for(E=0;E<p;E++){switch(18&v[E].flags){case 0:c+=ng(e,o),o+=2;break;case 2:c-=e[o++];break;case 18:c+=e[o++]}v[E].x=c}for(E=0;E<p;E++){switch(36&v[E].flags){case 0:g+=ng(e,o),o+=2;break;case 4:g-=e[o++];break;case 36:g+=e[o++]}v[E].y=g}var w=0;for(o=0;o<s;o++){var b=y[o],k=v.slice(w,b+1);if(1&k[0].flags)k.push(k[0]);else if(1&k.at(-1).flags)k.unshift(k.at(-1));else{var D={flags:1,x:(k[0].x+k.at(-1).x)/2,y:(k[0].y+k.at(-1).y)/2};k.unshift(D),k.push(D)}for(A(k[0].x,k[0].y),E=1,d=k.length;E<d;E++)1&k[E].flags?n(k[E].x,k[E].y):1&k[E+1].flags?(i(k[E].x,k[E].y,k[E+1].x,k[E+1].y),E++):i(k[E].x,k[E].y,(k[E].x+k[E+1].x)/2,(k[E].y+k[E+1].y)/2);w=b+1}}}function lg(e,t,r,A){function n(e,r){t.add(1,[e,r])}function i(e,r){t.add(2,[e,r])}function a(e,r,A,n,i,a){t.add(0,[e,r,A,n,i,a])}var o=[],s=0,c=0,g=0;!function e(u){for(var l=0;l<u.length;){var h=!1,I=u[l++],f=void 0,C=void 0,B=void 0,Q=void 0,E=void 0,d=void 0,y=void 0,p=void 0;switch(I){case 1:case 3:case 18:case 23:g+=o.length>>1,h=!0;break;case 4:c+=o.pop(),n(s,c),h=!0;break;case 5:for(;o.length>0;)s+=o.shift(),c+=o.shift(),i(s,c);break;case 6:for(;o.length>0&&(i(s+=o.shift(),c),0!==o.length);)c+=o.shift(),i(s,c);break;case 7:for(;o.length>0&&(c+=o.shift(),i(s,c),0!==o.length);)i(s+=o.shift(),c);break;case 8:for(;o.length>0;)f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c);break;case 10:if(y=o.pop(),p=null,r.isCFFCIDFont){var v=r.fdSelect.getFDIndex(A);if(v>=0&&v<r.fdArray.length){var m,w=r.fdArray[v],b=void 0;null!==(m=w.privateDict)&&void 0!==m&&m.subrsIndex&&(b=w.privateDict.subrsIndex.objects),b&&(p=b[y+=og(b)])}else q("Invalid fd index for glyph index.")}else p=r.subrs[y+r.subrsBias];p&&e(p);break;case 11:return;case 12:switch(I=u[l++]){case 34:C=(f=s+o.shift())+o.shift(),E=c+o.shift(),s=C+o.shift(),a(f,c,C,E,s,E),C=(f=s+o.shift())+o.shift(),s=C+o.shift(),a(f,E,C,c,s,c);break;case 35:f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c),f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c),o.pop();break;case 36:a(f=s+o.shift(),E=c+o.shift(),C=f+o.shift(),d=E+o.shift(),s=C+o.shift(),d),a(f=s+o.shift(),d,C=f+o.shift(),d+o.shift(),s=C+o.shift(),c);break;case 37:var k=s,D=c;f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c),f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C,c=Q,Math.abs(s-k)>Math.abs(c-D)?s+=o.shift():c+=o.shift(),a(f,B,C,Q,s,c);break;default:throw new re("unknown operator: 12 ".concat(I))}break;case 14:if(o.length>=4){var S=o.pop(),F=o.pop();c=o.pop(),s=o.pop(),t.add(5),t.add(8,[s,c]);var x=gg(r.cmap,String.fromCharCode(r.glyphNameMap[Ds[S]]));lg(r.glyphs[x.glyphId],t,r,x.glyphId),t.add(4),x=gg(r.cmap,String.fromCharCode(r.glyphNameMap[Ds[F]])),lg(r.glyphs[x.glyphId],t,r,x.glyphId)}return;case 19:case 20:l+=(g+=o.length>>1)+7>>3,h=!0;break;case 21:c+=o.pop(),n(s+=o.pop(),c),h=!0;break;case 22:n(s+=o.pop(),c),h=!0;break;case 24:for(;o.length>2;)f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c);s+=o.shift(),c+=o.shift(),i(s,c);break;case 25:for(;o.length>6;)s+=o.shift(),c+=o.shift(),i(s,c);f=s+o.shift(),B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s,c);break;case 26:for(o.length%2&&(s+=o.shift());o.length>0;)f=s,B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C,c=Q+o.shift(),a(f,B,C,Q,s,c);break;case 27:for(o.length%2&&(c+=o.shift());o.length>0;)a(f=s+o.shift(),B=c,C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q);break;case 28:o.push((u[l]<<24|u[l+1]<<16)>>16),l+=2;break;case 29:y=o.pop()+r.gsubrsBias,(p=r.gsubrs[y])&&e(p);break;case 30:for(;o.length>0&&(f=s,B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+(1===o.length?o.shift():0),a(f,B,C,Q,s,c),0!==o.length);)f=s+o.shift(),B=c,C=f+o.shift(),Q=B+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s=C+(1===o.length?o.shift():0),c);break;case 31:for(;o.length>0&&(f=s+o.shift(),B=c,C=f+o.shift(),Q=B+o.shift(),c=Q+o.shift(),a(f,B,C,Q,s=C+(1===o.length?o.shift():0),c),0!==o.length);)f=s,B=c+o.shift(),C=f+o.shift(),Q=B+o.shift(),s=C+o.shift(),c=Q+(1===o.length?o.shift():0),a(f,B,C,Q,s,c);break;default:if(I<32)throw new re("unknown operator: ".concat(I));I<247?o.push(I-139):I<251?o.push(256*(I-247)+u[l++]+108):I<255?o.push(256*-(I-251)-u[l++]-108):(o.push((u[l]<<24|u[l+1]<<16|u[l+2]<<8|u[l+3])/65536),l+=4)}h&&(o.length=0)}}(e)}var hg=[],Ig=function(){return eg((function e(){var t,r,A;zc(this,e),t=this,A=[],(r=tg(r="cmds"))in t?Object.defineProperty(t,r,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[r]=A}),[{key:"add",value:function(e,t){if(t)if(St(t,null)){var r;(r=this.cmds).push.apply(r,[e].concat(Xc(t)))}else{var A;q(\'Commands.add - "\'.concat(e,\'" has at least one non-number arg: "\').concat(t,\'".\'));var n=t.map((function(e){return"number"==typeof e?e:0}));(A=this.cmds).push.apply(A,[e].concat(Xc(n)))}else this.cmds.push(e)}}])}(),fg=function(){return eg((function e(t){zc(this,e),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}),[{key:"getPathJs",value:function(e){var t,r,A,n=gg(this.cmap,e),i=n.charCode,a=n.glyphId,o=this.compiledGlyphs[a];if(!o){try{o=this.compileGlyph(this.glyphs[a],a)}catch(e){o=hg,A=e}this.compiledGlyphs[a]=o}if(null!==(r=(t=this.compiledCharCodeToGlyphId)[i])&&void 0!==r||(t[i]=a),A)throw A;return o}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return hg;var r=this.fontMatrix;if(this.isCFFCIDFont){var A=this.fdSelect.getFDIndex(t);A>=0&&A<this.fdArray.length?r=this.fdArray[A].getByName("FontMatrix")||B:q("Invalid fd index for glyph index.")}var n=new Ig;return n.add(5),n.add(7,r.slice()),n.add(6),this.compileGlyphImpl(e,n,t),n.add(4),n.cmds}},{key:"compileGlyphImpl",value:function(){j("Children classes should implement this.")}},{key:"hasBuiltPath",value:function(e){var t=gg(this.cmap,e),r=t.charCode,A=t.glyphId;return void 0!==this.compiledGlyphs[A]&&void 0!==this.compiledCharCodeToGlyphId[r]}}])}(),Cg=function(e){function t(e,r,A){var n;return zc(this,t),(n=qc(this,t,[A||[488e-6,0,0,488e-6,0,0]])).glyphs=e,n.cmap=r,n}return Zc(t,fg),eg(t,[{key:"compileGlyphImpl",value:function(e,t){ug(e,t,this)}}])}(),Bg=function(e){function t(e,r,A,n){var i;return zc(this,t),(i=qc(this,t,[A||[.001,0,0,.001,0,0]])).glyphs=e.glyphs,i.gsubrs=e.gsubrs||[],i.subrs=e.subrs||[],i.cmap=r,i.glyphNameMap=n||lc(),i.gsubrsBias=og(i.gsubrs),i.subrsBias=og(i.subrs),i.isCFFCIDFont=e.isCFFCIDFont,i.fdSelect=e.fdSelect,i.fdArray=e.fdArray,i}return Zc(t,fg),eg(t,[{key:"compileGlyphImpl",value:function(e,t,r){lg(e,t,this,r)}}])}(),Qg=function(){return eg((function e(){zc(this,e)}),null,[{key:"create",value:function(e,t){for(var r,A,n,i,a,o,s=new Uint8Array(e.data),c=Ag(s,4),g=0,u=12;g<c;g++,u+=16){var l=ne(s.subarray(u,u+4)),h=rg(s,u+8),I=rg(s,u+12);switch(l){case"cmap":r=sg(s,h);break;case"glyf":A=s.subarray(h,h+I);break;case"loca":n=s.subarray(h,h+I);break;case"head":o=Ag(s,h+18),a=Ag(s,h+50);break;case"CFF ":i=cg(s,h,h+I,t)}}if(A){var f=o?[1/o,0,0,1/o,0,0]:e.fontMatrix;return new Cg(function(e,t,r){var A,n;r?(A=4,n=rg):(A=2,n=function(e,t){return 2*Ag(e,t)});for(var i=[],a=n(t,0),o=A;o<t.length;o+=A){var s=n(t,o);i.push(e.subarray(a,s)),a=s}return i}(A,n,a),r,f)}return new Bg(i,r,e.fontMatrix,e.glyphNameMap)}}])}(),Eg=ft((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=ft((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=ft((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=ft((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=ft((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=ft((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=ft((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=ft((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=ft((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=ft((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=ft((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))})),dg=ft((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));function yg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||vg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pg(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=vg(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function vg(e,t){if(e){if("string"==typeof e)return mg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mg(e,t):void 0}}function mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function wg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bg(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Dg(A.key),A)}}function kg(e,t,r){return t&&bg(e.prototype,t),r&&bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Sg=function(){return kg((function e(t){var r=t.glyfTable,A=t.isGlyphLocationsLong,n=t.locaTable,i=t.numGlyphs;wg(this,e),this.glyphs=[];for(var a=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new DataView(r.buffer,r.byteOffset,r.byteLength),s=A?4:2,c=A?a.getUint32(0):2*a.getUint16(0),g=0,u=0;u<i;u++){g+=s;var l=A?a.getUint32(g):2*a.getUint16(g);if(l!==c){var h=Fg.parse(c,o);this.glyphs.push(h),c=l}else this.glyphs.push(new Fg({}))}}),[{key:"getSize",value:function(){return this.glyphs.reduce((function(e,t){return e+(t.getSize()+3&-4)}),0)}},{key:"write",value:function(){var e=this.getSize(),t=new DataView(new ArrayBuffer(e)),r=e>131070,A=r?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*A));r?n.setUint32(0,0):n.setUint16(0,0);var i,a=0,o=0,s=pg(this.glyphs);try{for(s.s();!(i=s.n()).done;)a=(a+=i.value.write(a,t))+3&-4,o+=A,r?n.setUint32(o,a):n.setUint16(o,a>>1)}catch(e){s.e(e)}finally{s.f()}return{isLocationLong:r,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(t.buffer)}}},{key:"scale",value:function(e){for(var t=0,r=this.glyphs.length;t<r;t++)this.glyphs[t].scale(e[t])}}])}(),Fg=function(){function e(t){var r=t.header,A=void 0===r?null:r,n=t.simple,i=void 0===n?null:n,a=t.composites,o=void 0===a?null:a;wg(this,e),this.header=A,this.simple=i,this.composites=o}return kg(e,[{key:"getSize",value:function(){if(!this.header)return 0;var e=this.simple?this.simple.getSize():this.composites.reduce((function(e,t){return e+t.getSize()}),0);return this.header.getSize()+e}},{key:"write",value:function(e,t){if(!this.header)return 0;var r=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else{var A,n=pg(this.composites);try{for(n.s();!(A=n.n()).done;)e+=A.value.write(e,t)}catch(e){n.e(e)}finally{n.f()}}return e-r}},{key:"scale",value:function(e){if(this.header){var t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else{var r,A=pg(this.composites);try{for(A.s();!(r=A.n()).done;)r.value.scale(t,e)}catch(e){A.e(e)}finally{A.f()}}}}}],[{key:"parse",value:function(t,r){var A=yg(xg.parse(t,r),2),n=A[0],i=A[1];if(t+=n,i.numberOfContours<0){for(var a=[];;){var o=yg(Ng.parse(t,r),2),s=o[0],c=o[1];if(t+=s,a.push(c),!(32&c.flags))break}return new e({header:i,composites:a})}return new e({header:i,simple:Gg.parse(t,r,i.numberOfContours)})}}])}(),xg=function(){function e(t){var r=t.numberOfContours,A=t.xMin,n=t.yMin,i=t.xMax,a=t.yMax;wg(this,e),this.numberOfContours=r,this.xMin=A,this.yMin=n,this.xMax=i,this.yMax=a}return kg(e,[{key:"getSize",value:function(){return 10}},{key:"write",value:function(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}},{key:"scale",value:function(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}],[{key:"parse",value:function(t,r){return[10,new e({numberOfContours:r.getInt16(t),xMin:r.getInt16(t+2),yMin:r.getInt16(t+4),xMax:r.getInt16(t+6),yMax:r.getInt16(t+8)})]}}])}(),Rg=kg((function e(t){var r=t.flags,A=t.xCoordinates,n=t.yCoordinates;wg(this,e),this.xCoordinates=A,this.yCoordinates=n,this.flags=r})),Gg=function(){function e(t){var r=t.contours,A=t.instructions;wg(this,e),this.contours=r,this.instructions=A}return kg(e,[{key:"getSize",value:function(){var e,t=2*this.contours.length+2+this.instructions.length,r=0,A=0,n=pg(this.contours);try{for(n.s();!(e=n.n()).done;){var i=e.value;t+=i.flags.length;for(var a=0,o=i.xCoordinates.length;a<o;a++){var s=i.xCoordinates[a],c=i.yCoordinates[a],g=Math.abs(s-r);g>255?t+=2:g>0&&(t+=1),r=s,(g=Math.abs(c-A))>255?t+=2:g>0&&(t+=1),A=c}}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"write",value:function(e,t){var r,A=e,n=[],i=[],a=[],o=0,s=0,c=pg(this.contours);try{for(c.s();!(r=c.n()).done;){for(var g=r.value,u=0,l=g.xCoordinates.length;u<l;u++){var h=g.flags[u],I=g.xCoordinates[u],f=I-o;if(0===f)h|=16,n.push(0);else{var C=Math.abs(f);C<=255?(h|=f>=0?18:2,n.push(C)):n.push(f)}o=I;var B=g.yCoordinates[u];if(0==(f=B-s))h|=32,i.push(0);else{var Q=Math.abs(f);Q<=255?(h|=f>=0?36:4,i.push(Q)):i.push(f)}s=B,a.push(h)}t.setUint16(e,n.length-1),e+=2}}catch(e){c.e(e)}finally{c.f()}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(var E=0,d=a;E<d.length;E++){var y=d[E];t.setUint8(e++,y)}for(var p=0,v=n.length;p<v;p++){var m=n[p],w=a[p];2&w?t.setUint8(e++,m):16&w||(t.setInt16(e,m),e+=2)}for(var b=0,k=i.length;b<k;b++){var D=i[b],S=a[b];4&S?t.setUint8(e++,D):32&S||(t.setInt16(e,D),e+=2)}return e-A}},{key:"scale",value:function(e,t){var r,A=pg(this.contours);try{for(A.s();!(r=A.n()).done;){var n=r.value;if(0!==n.xCoordinates.length)for(var i=0,a=n.xCoordinates.length;i<a;i++)n.xCoordinates[i]=Math.round(e+(n.xCoordinates[i]-e)*t)}}catch(e){A.e(e)}finally{A.f()}}}],[{key:"parse",value:function(t,r,A){for(var n=[],i=0;i<A;i++){var a=r.getUint16(t);t+=2,n.push(a)}var o=n[A-1]+1,s=r.getUint16(t);t+=2;var c=new Uint8Array(r).slice(t,t+s);t+=s;for(var g=[],u=0;u<o;t++,u++){var l=r.getUint8(t);if(g.push(l),8&l){var h=r.getUint8(++t);l^=8;for(var I=0;I<h;I++)g.push(l);u+=h}}for(var f=[],C=[],B=[],Q=[],E=[],d=0,y=0,p=0;p<o;p++){var v=g[p];if(2&v){var m=r.getUint8(t++);y+=16&v?m:-m,C.push(y)}else 16&v||(y+=r.getInt16(t),t+=2),C.push(y);n[d]===p&&(d++,f.push(C),C=[])}y=0,d=0;for(var w=0;w<o;w++){var b=g[w];if(4&b){var k=r.getUint8(t++);y+=32&b?k:-k,B.push(y)}else 32&b||(y+=r.getInt16(t),t+=2),B.push(y);Q.push(1&b|64&b),n[d]===w&&(C=f[d],d++,E.push(new Rg({flags:Q,xCoordinates:C,yCoordinates:B})),B=[],Q=[])}return new e({contours:E,instructions:c})}}])}(),Ng=function(){function e(t){var r=t.flags,A=t.glyphIndex,n=t.argument1,i=t.argument2,a=t.transf,o=t.instructions;wg(this,e),this.flags=r,this.glyphIndex=A,this.argument1=n,this.argument2=i,this.transf=a,this.instructions=o}return kg(e,[{key:"getSize",value:function(){var e=4+2*this.transf.length;return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}},{key:"write",value:function(e,t){var r=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-r}},{key:"scale",value:function(e,t){}}],[{key:"parse",value:function(t,r){var A,n,i=t,a=[],o=r.getUint16(t),s=r.getUint16(t+2);t+=4,1&o?(2&o?(A=r.getInt16(t),n=r.getInt16(t+2)):(A=r.getUint16(t),n=r.getUint16(t+2)),t+=4,o^=1):(2&o?(A=r.getInt8(t),n=r.getInt8(t+1)):(A=r.getUint8(t),n=r.getUint8(t+1)),t+=2),8&o?(a.push(r.getUint16(t)),t+=2):64&o?(a.push(r.getUint16(t),r.getUint16(t+2)),t+=4):128&o&&(a.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6)),t+=8);var c=null;if(256&o){var g=r.getUint16(t);t+=2,c=new Uint8Array(r).slice(t,t+g),t+=g}return[t-i,new e({flags:o,glyphIndex:s,argument1:A,argument2:n,transf:a,instructions:c})]}}])}();function Lg(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Ug(A.key),A)}}function Ug(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Jg(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function Hg(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function Yg(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(var A=0,n=r.length;A<n;A++)e[t++]=255&r.charCodeAt(A);else{var i,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Mg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mg(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;e[t++]=255&o}}catch(e){a.e(e)}finally{a.f()}}}var Pg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sfnt=t,this.tables=Object.create(null)}return t=e,A=[{key:"getSearchParams",value:function(e,t){for(var r=1,A=0;(r^e)>r;)r<<=1,A++;var n=r*t;return{range:n,entry:A,rangeShift:t*e-n}}}],(r=[{key:"toArray",value:function(){var t=this.sfnt,r=this.tables,A=Object.keys(r);A.sort();var n,i,a,o,s,c=A.length,g=12+16*c,u=[g];for(n=0;n<c;n++)g+=((o=r[A[n]]).length+3&-4)>>>0,u.push(g);var l=new Uint8Array(g);for(n=0;n<c;n++)o=r[A[n]],Yg(l,u[n],o);"true"===t&&(t=ae(65536)),l[0]=255&t.charCodeAt(0),l[1]=255&t.charCodeAt(1),l[2]=255&t.charCodeAt(2),l[3]=255&t.charCodeAt(3),Jg(l,4,c);var h=e.getSearchParams(c,16);for(Jg(l,6,h.range),Jg(l,8,h.entry),Jg(l,10,h.rangeShift),g=12,n=0;n<c;n++){s=A[n],l[g]=255&s.charCodeAt(0),l[g+1]=255&s.charCodeAt(1),l[g+2]=255&s.charCodeAt(2),l[g+3]=255&s.charCodeAt(3);var I=0;for(i=u[n],a=u[n+1];i<a;i+=4)I=I+kt(l,i)>>>0;Hg(l,g+4,I),Hg(l,g+8,u[n]),Hg(l,g+12,r[s].length),g+=16}return l}},{key:"addTable",value:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}])&&Lg(t.prototype,r),A&&Lg(t,A),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,A}();function Og(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Kg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tg(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,jg(A.key),A)}}function qg(e,t,r){return t&&Tg(e.prototype,t),r&&Tg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Wg=[4],Zg=[5],_g=[6],Xg=[7],Vg=[8],zg=[12,35],$g=[14],eu=[21],tu=[22],ru=[30],Au=[31],nu=function(){return qg((function e(){Kg(this,e),this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}),[{key:"convert",value:function(e,t,r){for(var A,n,i,a=e.length,o=!1,s=0;s<a;s++){var c=e[s];if(c<32){switch(12===c&&(c=(c<<8)+e[++s]),c){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){o=!0;break}var g=this.stack.pop();this.stack.push(0,g);break}o=this.executeCommand(1,Wg);break;case 5:o=this.executeCommand(2,Zg);break;case 6:o=this.executeCommand(1,_g);break;case 7:o=this.executeCommand(1,Xg);break;case 8:o=this.executeCommand(6,Vg);break;case 10:if(this.stack.length<1){o=!0;break}if(!t[i=this.stack.pop()]){o=!0;break}o=this.convert(t[i],t,r);break;case 11:return o;case 13:if(this.stack.length<2){o=!0;break}A=this.stack.pop(),n=this.stack.pop(),this.lsb=n,this.width=A,this.stack.push(A,n),o=this.executeCommand(2,tu);break;case 14:this.output.push($g[0]);break;case 21:if(this.flexing)break;o=this.executeCommand(2,eu);break;case 22:if(this.flexing){this.stack.push(0);break}o=this.executeCommand(1,tu);break;case 30:o=this.executeCommand(4,ru);break;case 31:o=this.executeCommand(4,Au);break;case 3078:if(r){var u=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-u,o=this.executeCommand(0,$g)}else o=this.executeCommand(4,$g);break;case 3079:if(this.stack.length<4){o=!0;break}this.stack.pop(),A=this.stack.pop();var l=this.stack.pop();n=this.stack.pop(),this.lsb=n,this.width=A,this.stack.push(A,n,l),o=this.executeCommand(3,eu);break;case 3084:if(this.stack.length<2){o=!0;break}var h=this.stack.pop(),I=this.stack.pop();this.stack.push(I/h);break;case 3088:if(this.stack.length<2){o=!0;break}i=this.stack.pop();var f=this.stack.pop();if(0===i&&3===f){var C=this.stack.splice(-17,17);this.stack.push(C[2]+C[0],C[3]+C[1],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14]),o=this.executeCommand(13,zg,!0),this.flexing=!1,this.stack.push(C[15],C[16])}else 1===i&&0===f&&(this.flexing=!0);break;case 3089:break;default:q(\'Unknown type 1 charstring command of "\'+c+\'"\')}if(o)break}else c<=246?c-=139:c=c<=250?256*(c-247)+e[++s]+108:c<=254?-256*(c-251)-e[++s]-108:(255&e[++s])<<24|(255&e[++s])<<16|(255&e[++s])<<8|(255&e[++s])<<0,this.stack.push(c)}return o}},{key:"executeCommand",value:function(e,t,r){var A,n=this.stack.length;if(e>n)return!0;for(var i=n-e,a=i;a<n;a++){var o=this.stack[a];Number.isInteger(o)?this.output.push(28,o>>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return(A=this.output).push.apply(A,function(e){return function(e){if(Array.isArray(e))return Og(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Og(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Og(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t)),r?this.stack.splice(i,e):this.stack.length=0,!1}}])}();function iu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function au(e,t,r){if(r>=e.length)return new Uint8Array(0);var A,n,i=0|t;for(A=0;A<r;A++)i=52845*(e[A]+i)+22719&65535;var a=e.length-r,o=new Uint8Array(a);for(A=r,n=0;n<a;A++,n++){var s=e[A];o[n]=s^i>>8,i=52845*(s+i)+22719&65535}return o}function ou(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}var su=function(){return qg((function e(t,r,A){if(Kg(this,e),r){var n=t.getBytes(),i=!((iu(n[0])||Dt(n[0]))&&iu(n[1])&&iu(n[2])&&iu(n[3])&&iu(n[4])&&iu(n[5])&&iu(n[6])&&iu(n[7]));t=new ar(i?au(n,55665,4):function(e,t,r){var A,n,i=55665,a=e.length,o=new Uint8Array(a>>>1);for(A=0,n=0;A<a;A++){var s=e[A];if(iu(s)){A++;for(var c=void 0;A<a&&!iu(c=e[A]);)A++;if(A<a){var g=parseInt(String.fromCharCode(s,c),16);o[n++]=g^i>>8,i=52845*(g+i)+22719&65535}}}return o.slice(4,n)}(n))}this.seacAnalysisEnabled=!!A,this.stream=t,this.nextChar()}),[{key:"readNumberArray",value:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}},{key:"readNumber",value:function(){var e=this.getToken();return parseFloat(e||0)}},{key:"readInt",value:function(){var e=this.getToken();return 0|parseInt(e||0,10)}},{key:"readBoolean",value:function(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"prevChar",value:function(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!Dt(t))break;t=this.nextChar()}if(ou(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!Dt(t)&&!ou(t));return r}},{key:"readCharStrings",value:function(e,t){return-1===t?e:au(e,4330,t)}},{key:"extractFontProgram",value:function(e){var t=this.stream,r=[],A=[],n=Object.create(null);n.lenIV=4;for(var i,a,o,s,c={subrs:[],charstrings:[],properties:{privateData:n}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)if("/"===i){var g=this.getToken();a=this.readInt(),this.getToken(),o=a>0?t.getBytes(a):new Uint8Array(0),s=c.properties.privateData.lenIV;var u=this.readCharStrings(o,s);this.nextChar(),"noaccess"===(i=this.getToken())?this.getToken():"/"===i&&this.prevChar(),A.push({glyph:g,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var l=this.readInt();a=this.readInt(),this.getToken(),o=a>0?t.getBytes(a):new Uint8Array(0),s=c.properties.privateData.lenIV;var h=this.readCharStrings(o,s);this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),r[l]=h}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var I=this.readNumberArray();I.length>0&&I.length;break;case"StemSnapH":case"StemSnapV":c.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":c.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":c.properties.privateData[i]=this.readNumber();break;case"ExpansionFactor":c.properties.privateData[i]=this.readNumber()||.06;break;case"ForceBold":c.properties.privateData[i]=this.readBoolean()}for(var f=0,C=A;f<C.length;f++){var B=C[f],Q=B.encoded,E=B.glyph,d=new nu,y=d.convert(Q,r,this.seacAnalysisEnabled),p=d.output;y&&(p=[14]);var v={glyphName:E,charstring:p,width:d.width,lsb:d.lsb,seac:d.seac};if(".notdef"===E?c.charstrings.unshift(v):c.charstrings.push(v),e.builtInEncoding){var m=e.builtInEncoding.indexOf(E);m>-1&&void 0===e.widths[m]&&m>=e.firstChar&&m<=e.lastChar&&(e.widths[m]=d.width)}}return c}},{key:"extractFontHeader",value:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var A=this.getToken(),n=void 0;if(/^\\d+$/.test(A)){n=[];var i=0|parseInt(A,10);this.getToken();for(var a=0;a<i;a++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var o=this.readInt();this.getToken();var s=this.getToken();n[o]=s,this.getToken()}}else n=Rs(A);e.builtInEncoding=n;break;case"FontBBox":var c=this.readNumberArray();e.ascent=Math.max(c[3],c[1]),e.descent=Math.min(c[1],c[3]),e.ascentScaled=!0}}}])}();function cu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return gu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function uu(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,lu(A.key),A)}}function lu(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function hu(e,t,r){for(var A=e.length,n=t.length,i=A-n,a=r,o=!1;a<i;){for(var s=0;s<n&&e[a+s]===t[s];)s++;if(s>=n){for(a+=s;a<A&&Dt(e[a]);)a++;o=!0;break}a++}return{found:o,length:a}}var Iu=function(){return e=function e(t,r,A){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=A.length1,i=(A.length2,r.peekBytes(6)),a=128===i[0]&&1===i[1];a&&(r.skip(6),n=i[5]<<24|i[4]<<16|i[3]<<8|i[2]);var o=function(e,t){var r,A,n,i,a=[101,101,120,101,99],o=e.pos;try{A=(r=e.getBytes(t)).length}catch(e){}if(A===t&&(n=hu(r,a,t-2*a.length)).found&&n.length===t)return{stream:new ar(r),length:t};for(q(\'Invalid "Length1" property in Type1 font -- trying to recover.\'),e.pos=o;0!==(n=hu(e.peekBytes(2048),a,0)).length;)if(e.pos+=n.length,n.found){i=e.pos-o;break}return e.pos=o,i?{stream:new ar(e.getBytes(i)),length:i}:(q(\'Unable to recover "Length1" property in Type1 font -- using as is.\'),{stream:new ar(e.getBytes(t)),length:t})}(r,n);new su(o.stream,!1,dc).extractFontHeader(A),a&&((i=r.getBytes(6))[5],i[4],i[3],i[2]);var s=function(e,t){var r=e.getBytes();if(0===r.length)throw new re("getEexecBlock - no font program found.");return{stream:new ar(r),length:r.length}}(r),c=new su(s.stream,!0,dc).extractFontProgram(A);for(var g in c.properties)A[g]=c.properties[g];var u=c.charstrings,l=this.getType2Charstrings(u),h=this.getType2Subrs(c.subrs);this.charstrings=u,this.data=this.wrap(t,l,this.charstrings,h,A),this.seacs=this.getSeacs(c.charstrings)},(t=[{key:"numGlyphs",get:function(){return this.charstrings.length+1}},{key:"getCharset",value:function(){var e,t=[".notdef"],r=cu(this.charstrings);try{for(r.s();!(e=r.n()).done;){var A=e.value.glyphName;t.push(A)}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"getGlyphMapping",value:function(e){var t=this.charstrings;if(e.composite){for(var r=Object.create(null),A=0,n=t.length;A<n;A++)r[e.cMap.charCodeOf(A)]=A+1;return r}var i,a,o=[".notdef"];for(a=0;a<t.length;a++)o.push(t[a].glyphName);var s=e.builtInEncoding;if(s)for(var c in i=Object.create(null),s)(a=o.indexOf(s[c]))>=0&&(i[c]=a);return vc(e,i,o)}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}},{key:"getSeacs",value:function(e){for(var t=[],r=0,A=e.length;r<A;r++){var n=e[r];n.seac&&(t[r+1]=n.seac)}return t}},{key:"getType2Charstrings",value:function(e){var t,r=[],A=cu(e);try{for(A.s();!(t=A.n()).done;){var n=t.value;r.push(n.charstring)}}catch(e){A.e(e)}finally{A.f()}return r}},{key:"getType2Subrs",value:function(e){var t,r=e.length;t=r<1133?107:r<33769?1131:32768;var A,n=[];for(A=0;A<t;A++)n.push([11]);for(A=0;A<r;A++)n.push(e[A]);return n}},{key:"wrap",value:function(e,t,r,A,n){var i=new Vs;i.header=new zs(1,0,4,4),i.names=[e];var a=new Ac;a.setByName("version",391),a.setByName("Notice",392),a.setByName("FullName",393),a.setByName("FamilyName",394),a.setByName("Weight",395),a.setByName("Encoding",null),a.setByName("FontMatrix",n.fontMatrix),a.setByName("FontBBox",n.bbox),a.setByName("charset",null),a.setByName("CharStrings",null),a.setByName("Private",null),i.topDict=a;var o=new $s;o.add("Version 0.11"),o.add("See original notice"),o.add(e),o.add(e),o.add("Medium"),i.strings=o,i.globalSubrIndex=new ec;var s,c,g=t.length,u=[".notdef"];for(s=0;s<g;s++){var l=r[s].glyphName;-1===Ws.indexOf(l)&&o.add(l),u.push(l)}i.charset=new oc(!1,0,u);var h=new ec;for(h.add([139,14]),s=0;s<g;s++)h.add(t[s]);i.charStrings=h;var I=new ic;I.setByName("Subrs",null);var f=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(s=0,c=f.length;s<c;s++){var C=f[s];if(C in n.privateData){var B=n.privateData[C];if(Array.isArray(B))for(var Q=B.length-1;Q>0;Q--)B[Q]-=B[Q-1];I.setByName(C,B)}}i.topDict.privateDict=I;var E=new ec;for(s=0,c=A.length;s<c;s++)E.add(A[s]);return I.subrsIndex=E,new uc(i).compile()}}])&&uu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function fu(e){return function(e){if(Array.isArray(e))return vu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||pu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qu(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,du(A.key),A)}}function Eu(e,t,r){return t&&Qu(e.prototype,t),r&&Qu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function du(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function yu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pu(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function pu(e,t){if(e){if("string"==typeof e)return vu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vu(e,t):void 0}}function vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var mu=[[57344,63743],[1048576,1114109]],wu=1e3,bu=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"],ku=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function Du(e){if(e.fontMatrix&&e.fontMatrix[0]!==B[0]){var t=.001/e.fontMatrix[0],r=e.widths;for(var A in r)r[A]*=t;e.defaultWidth*=t}}function Su(e){if(e.fallbackToUnicode&&!(e.toUnicode instanceof Pc)){var t=[];for(var r in e.fallbackToUnicode)e.toUnicode.has(r)||(t[r]=e.fallbackToUnicode[r]);t.length>0&&e.toUnicode.amend(t)}}var Fu=function(){return Eu((function e(t,r,A,n,i,a,o,s,c){Bu(this,e),this.originalCharCode=t,this.fontChar=r,this.unicode=A,this.accent=n,this.width=i,this.vmetric=a,this.operatorListId=o,this.isSpace=s,this.isInFont=c}),[{key:"category",get:function(){return _(this,"category",function(e){var t=Ec.get(e);if(t)return t;var r=e.match(Qc),A={isWhitespace:!(null==r||!r[1]),isZeroWidthDiacritic:!(null==r||!r[2]),isInvisibleFormatMark:!(null==r||!r[3])};return Ec.set(e,A),A}(this.unicode),!0)}}])}();function xu(e,t){return(e<<8)+t}function Ru(e,t,r){e[t+1]=r,e[t]=r>>>8}function Gu(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function Nu(e){return String.fromCharCode(e>>8&255,255&e)}function Lu(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function Uu(e){return"ttcf"===ne(e.peekBytes(4))}function Mu(e,t){for(var r in t)e[+r]=t[r]}function Ju(e,t,r){for(var A,n=[],i=0,a=e.length;i<a;i++)-1!==(A=fc(e[i],t))&&(n[i]=A);for(var o in r)-1!==(A=fc(r[o],t))&&(n[+o]=A);return n}function Hu(e){return 1===e.platform&&0===e.encoding&&0===e.language}function Yu(e){return 3===e.platform&&1===e.encoding&&1033===e.language}function Pu(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}var A="Unsupported CID string (charCode ".concat(e,\'): "\').concat(t,\'".\');if(r)throw new re(A);return q(A),t}function Ou(e,t,r,A){var n,i=Object.create(null),a=new Map,o=[],s=new Set,c=0,g=mu[c][0],u=mu[c][1];for(var l in e){var h=e[l];if(t(h)){if(g>u){if(++c>=mu.length){q("Ran out of space in font private use area.");break}g=mu[c][0],u=mu[c][1]}var I=g++;0===h&&(h=r);var f=A.get(l);"string"==typeof f&&(f=f.codePointAt(0)),!f||(n=f,mu[0][0]<=n&&n<=mu[0][1]||mu[1][0]<=n&&n<=mu[1][1])||s.has(h)||(a.set(f,h),s.add(h)),i[I]=h,o[l]=I}}return{toFontChar:o,charCodeToGlyphId:i,toUnicodeExtraMap:a,nextAvailableFontCharCode:g}}function Ku(e,t,r){var A,n,i,a,o=function(e,t,r){var A=[];for(var n in e)e[n]>=r||A.push({fontCharCode:0|n,glyphId:e[n]});if(t){var i,a=yu(t);try{for(a.s();!(i=a.n()).done;){var o=Cu(i.value,2),s=o[0],c=o[1];c>=r||A.push({fontCharCode:s,glyphId:c})}}catch(e){a.e(e)}finally{a.f()}}0===A.length&&A.push({fontCharCode:0,glyphId:0}),A.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var g=[],u=A.length,l=0;l<u;){var h=A[l].fontCharCode,I=[A[l].glyphId];++l;for(var f=h;l<u&&f+1===A[l].fontCharCode&&(I.push(A[l].glyphId),++l,65535!=++f););g.push([h,f,I])}return g}(e,t,r),s=o.at(-1)[1]>65535?2:1,c="\\0\\0"+Nu(s)+"\\0\\0"+ae(4+8*s);for(A=o.length-1;A>=0&&!(o[A][0]<=65535);--A);var g=A+1;o[A][0]<65535&&65535===o[A][1]&&(o[A][1]=65534);var u,l,h,I,f=o[A][1]<65535?1:0,C=g+f,B=Pg.getSearchParams(C,2),Q="",E="",d="",y="",p="",v=0;for(A=0,n=g;A<n;A++){l=(u=o[A])[0],h=u[1],Q+=Nu(l),E+=Nu(h);var m=!0;for(i=1,a=(I=u[2]).length;i<a;++i)if(I[i]!==I[i-1]+1){m=!1;break}if(m)d+=Nu(I[0]-l&65535),y+=Nu(0);else{var w=2*(C-A)+2*v;for(v+=h-l+1,d+=Nu(0),y+=Nu(w),i=0,a=I.length;i<a;++i)p+=Nu(I[i])}}f>0&&(E+="ÿÿ",Q+="ÿÿ",d+="\\0",y+="\\0\\0");var b="\\0\\0"+Nu(2*C)+Nu(B.range)+Nu(B.entry)+Nu(B.rangeShift)+E+"\\0\\0"+Q+d+y+p,k="",D="";if(s>1){for(c+="\\0\\0\\n"+ae(4+8*s+4+b.length),k="",A=0,n=o.length;A<n;A++){l=(u=o[A])[0];var S=(I=u[2])[0];for(i=1,a=I.length;i<a;++i)I[i]!==I[i-1]+1&&(h=u[0]+i-1,k+=ae(l)+ae(h)+ae(S),l=h+1,S=I[i]);k+=ae(l)+ae(u[1])+ae(S)}D="\\0\\f\\0\\0"+ae(k.length+16)+"\\0\\0\\0\\0"+ae(k.length/12)}return c+"\\0"+Nu(b.length+4)+b+D+k}function Tu(e,t,r){r||(r={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0});var A=0,n=0,i=0,a=0,o=null,s=0,c=-1;if(t){for(var g in t)if((o>(g|=0)||!o)&&(o=g),s<g&&(s=g),(c=Bc(g,c))<32)A|=1<<c;else if(c<64)n|=1<<c-32;else if(c<96)i|=1<<c-64;else{if(!(c<123))throw new re("Unicode ranges Bits > 123 are reserved for internal usage");a|=1<<c-96}s>65535&&(s=65535)}else o=0,s=255;var u=e.bbox||[0,0,0,0],l=r.unitsPerEm||(e.fontMatrix?1/Math.max.apply(Math,fu(e.fontMatrix.slice(0,4).map(Math.abs))):1e3),h=e.ascentScaled?1:l/wu,I=r.ascent||Math.round(h*(e.ascent||u[3])),f=r.descent||Math.round(h*(e.descent||u[1]));f>0&&e.descent>0&&u[1]<0&&(f=-f);var C=r.yMax||I,B=-r.yMin||-f;return"\\0$ô\\0\\0\\0»\\0\\0\\0»\\0\\0ß\\x001\\0\\0\\0\\0"+String.fromCharCode(e.fixedPitch?9:0)+"\\0\\0\\0\\0\\0\\0"+ae(A)+ae(n)+ae(i)+ae(a)+"*21*"+Nu(e.italicAngle?1:0)+Nu(o||e.firstChar)+Nu(s||e.lastChar)+Nu(I)+Nu(f)+"\\0d"+Nu(C)+Nu(B)+"\\0\\0\\0\\0\\0\\0\\0\\0"+Nu(e.xHeight)+Nu(e.capHeight)+Nu(0)+Nu(o||e.firstChar)+"\\0"}function qu(e){return"\\0\\0\\0"+ae(Math.floor(e.italicAngle*Math.pow(2,16)))+"\\0\\0\\0\\0"+ae(e.fixedPitch?1:0)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"}function ju(e){return e.replaceAll(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,"").slice(0,63)}function Wu(e,t){t||(t=[[],[]]);var r,A,n,i,a,o=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||ju(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],s=[];for(r=0,A=o.length;r<A;r++){var c=[];for(n=0,i=(a=t[1][r]||o[r]).length;n<i;n++)c.push(Nu(a.charCodeAt(n)));s.push(c.join(""))}var g=[o,s],u=["\\0","\\0"],l=["\\0\\0","\\0"],h=["\\0\\0","\\t"],I=o.length*u.length,f="\\0\\0"+Nu(I)+Nu(12*I+6),C=0;for(r=0,A=u.length;r<A;r++){var B=g[r];for(n=0,i=B.length;n<i;n++)a=B[n],f+=u[r]+l[r]+h[r]+Nu(n)+Nu(a.length)+Nu(C),C+=a.length}return f+(o.join("")+s.join(""))}var Zu=function(){return Eu((function e(t,r,A){var n;Bu(this,e),this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=A.loadedName,this.isType3Font=A.isType3Font,this.missingFile=!1,this.cssFontInfo=A.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);var i=!!(2&A.flags);if(!i&&!A.isSimulatedFlags){var a,o=t.replaceAll(/[,_]/g,"-").split("-",1)[0],s=Sc(),c=yu(o.split("+"));try{for(c.s();!(a=c.n()).done;)if(s[a.value]){i=!0;break}}catch(e){c.e(e)}finally{c.f()}}this.isSerifFont=i,this.isSymbolicFont=!!(4&A.flags),this.isMonospace=!!(1&A.flags);var g=A.type,u=A.subtype;this.type=g,this.subtype=u,this.systemFontInfo=A.systemFontInfo;var l=t.match(/^InvalidPDFjsFont_(.*)_\\d+$/);if(this.isInvalidPDFjsFont=!!l,this.isInvalidPDFjsFont?this.fallbackName=l[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",null!==(n=this.systemFontInfo)&&void 0!==n&&n.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=",".concat(this.fallbackName)),this.differences=A.differences,this.widths=A.widths,this.defaultWidth=A.defaultWidth,this.composite=A.composite,this.cMap=A.cMap,this.capHeight=A.capHeight/wu,this.ascent=A.ascent/wu,this.descent=A.descent/wu,this.lineHeight=this.ascent-this.descent,this.fontMatrix=A.fontMatrix,this.bbox=A.bbox,this.defaultEncoding=A.defaultEncoding,this.toUnicode=A.toUnicode,this.toFontChar=[],"Type3"!==A.type){if(this.cidEncoding=A.cidEncoding||"",this.vertical=!!A.vertical,this.vertical&&(this.vmetrics=A.vmetrics,this.defaultVMetrics=A.defaultVMetrics),!r||r.isEmpty)return r&&q(\'Font file is empty in "\'+t+\'" (\'+this.loadedName+")"),void this.fallbackToSystemFont(A);var h,I=Cu(function(e,t){var r,A,n=t.type,i=t.subtype,a=t.composite;return function(e){var t=e.peekBytes(4);return 65536===kt(t,0)||"true"===ne(t)}(e)||Uu(e)?r=a?"CIDFontType2":"TrueType":function(e){return"OTTO"===ne(e.peekBytes(4))}(e)?r=a?"CIDFontType2":"OpenType":function(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?r=a?"CIDFontType0":"MMType1"===n?"MMType1":"Type1":function(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?a?(r="CIDFontType0",A="CIDFontType0C"):(r="MMType1"===n?"MMType1":"Type1",A="Type1C"):(q("getFontFileType: Unable to detect correct font file Type/Subtype."),r=n,A=i),[r,A]}(r,A),2);g=I[0],u=I[1],g===this.type&&u===this.subtype||T("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(g,"/").concat(u,"."));try{switch(g){case"MMType1":T("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var f="Type1C"===u||"CIDFontType0C"===u?new Tc(r,A):new Iu(t,r,A);Du(A),h=this.convert(t,f,A);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",h=this.checkAndRepair(t,r,A),this.isOpenType&&(Du(A),g="OpenType");break;default:throw new re("Font ".concat(g," is not supported"))}}catch(e){return q(e),void this.fallbackToSystemFont(A)}Su(A),this.data=h,this.type=g,this.subtype=u,this.fontMatrix=A.fontMatrix,this.widths=A.widths,this.defaultWidth=A.defaultWidth,this.toUnicode=A.toUnicode,this.seacMap=A.seacMap}else for(var C=0;C<256;C++)this.toFontChar[C]=this.differences[C]||A.defaultEncoding[C]}),[{key:"renderer",get:function(){return _(this,"renderer",Qg.create(this,dc))}},{key:"exportData",value:function(){var e,t,r,A=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?[].concat(bu,ku):bu,n=Object.create(null),i=yu(A);try{for(i.s();!(r=i.n()).done;)void 0!==(t=this[e=r.value])&&(n[e]=t)}catch(e){i.e(e)}finally{i.f()}return n}},{key:"fallbackToSystemFont",value:function(e){var t=this;this.missingFile=!0;var r=this.name,A=this.type,n=mc(r),i=bc(),a=Dc(),o=!!i[n],s=!(!a[n]||!i[a[n]]);n=i[n]||a[n]||n;var c=dg()[n];c&&(isNaN(this.ascent)&&(this.ascent=c.ascent/wu),isNaN(this.descent)&&(this.descent=c.descent/wu),isNaN(this.capHeight)&&(this.capHeight=c.capHeight/wu)),this.bold=/bold/gi.test(n),this.italic=/oblique|italic/gi.test(n),this.black=/Black/g.test(r);var g=/Narrow/g.test(r);if(this.remeasure=(!o||g)&&Object.keys(this.widths).length>0,(o||s)&&"CIDFontType2"===A&&this.cidEncoding.startsWith("Identity-")){var u=e.cidToGidMap,l=[];if(Mu(l,xc()),/Arial-?Black/i.test(r)?Mu(l,Rc()):/Calibri/i.test(r)&&Mu(l,Gc()),u){for(var h in l){var I=l[h];void 0!==u[I]&&(l[+h]=u[I])}u.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof Pc&&this.toUnicode.forEach((function(e,t){var r=l[e];void 0===u[r]&&(l[+e]=t)}))}this.toUnicode instanceof Pc||this.toUnicode.forEach((function(e,t){l[+e]=t})),this.toFontChar=l,this.toUnicode=new Yc(l)}else if(/Symbol/i.test(n))this.toFontChar=Ju(Fs,lc(),this.differences);else if(/Dingbats/i.test(n))this.toFontChar=Ju(xs,hc(),this.differences);else if(o||s){var f=Ju(this.defaultEncoding,lc(),this.differences);"CIDFontType2"!==A||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof Pc||this.toUnicode.forEach((function(e,t){f[+e]=t})),this.toFontChar=f}else{var C=lc(),B=[];this.toUnicode.forEach((function(e,r){if(!t.composite){var A=fc(t.differences[e]||t.defaultEncoding[e],C);-1!==A&&(r=A)}B[+e]=r})),this.composite&&this.toUnicode instanceof Pc&&/Tahoma|Verdana/i.test(r)&&Mu(B,xc()),this.toFontChar=B}Su(e),this.loadedName=n.split("-",1)[0]}},{key:"checkAndRepair",value:function(e,t,r){var A,n,i=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function a(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var A=0;A<t;A++){var n=o(e);i.includes(n.tag)&&0!==n.length&&(r[n.tag]=n)}return r}function o(e){var t=e.getString(4),r=e.getInt32()>>>0,A=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0,e.skip(A);var a=e.getBytes(n);return e.pos=i,"head"===t&&(a[8]=a[9]=a[10]=a[11]=0,a[17]|=32),{tag:t,checksum:r,length:n,offset:A,data:a}}function s(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function c(e,t,r,A,n,i){var a={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||r>e.length||r-t<=12)return a;var o=e.subarray(t,r),s=Gu(o[2],o[3]),c=Gu(o[4],o[5]),g=Gu(o[6],o[7]),u=Gu(o[8],o[9]);s>g&&(Ru(o,2,g),Ru(o,6,s)),c>u&&(Ru(o,4,u),Ru(o,8,c));var l=Gu(o[0],o[1]);if(l<0)return l<-1||(A.set(o,n),a.length=o.length),a;var h,I=10,f=0;for(h=0;h<l;h++)f=1+(o[I]<<8|o[I+1]),I+=2;var C=I,B=o[I]<<8|o[I+1];a.sizeOfInstructions=B;var Q=I+=2+B,E=0;for(h=0;h<f;h++){var d=o[I++];192&d&&(o[I-1]=63&d);var y=2;2&d?y=1:16&d&&(y=0);var p=2;4&d?p=1:32&d&&(p=0);var v=y+p;if(E+=v,8&d){var m=o[I++];0===m&&(o[I-1]^=8),h+=m,E+=m*v}}if(0===E)return a;var w=I+E;return w>o.length?a:!i&&B>0?(A.set(o.subarray(0,C),n),A.set([0,0],n+C),A.set(o.subarray(Q,w),n+C+2),w-=B,o.length-w>3&&(w=w+3&-4),a.length=w,a):o.length-w>3?(w=w+3&-4,A.set(o.subarray(0,w),n),a.length=w,a):(A.set(o,n),a.length=o.length,a)}function g(e){var r=(t.start||0)+e.offset;t.pos=r;var A=[[],[]],n=[],i=e.length,a=r+i;if(0!==t.getUint16()||i<6)return[A,n];var o,s,c=t.getUint16(),g=t.getUint16();for(o=0;o<c&&t.pos+12<=a;o++){var u={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(Hu(u)||Yu(u))&&n.push(u)}for(o=0,s=n.length;o<s;o++){var l=n[o];if(!(l.length<=0)){var h=r+g+l.offset;if(!(h+l.length>a)){t.pos=h;var I=l.name;if(l.encoding){for(var f="",C=0,B=l.length;C<B;C+=2)f+=String.fromCharCode(t.getUint16());A[1][I]=f}else A[0][I]=t.getString(l.length)}}}return[A,n]}var u,l,h,I,f=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function C(e,t){for(var r,A,n,i,a,o=e.data,s=0,c=0,g=0,u=[],l=[],h=[],I=t.tooComplexToFollowFunctions,C=!1,B=0,Q=0,E=o.length;s<E;){var d=o[s++];if(64===d)if(A=o[s++],C||Q)s+=A;else for(r=0;r<A;r++)u.push(o[s++]);else if(65===d)if(A=o[s++],C||Q)s+=2*A;else for(r=0;r<A;r++)n=o[s++],u.push(n<<8|o[s++]);else if(176==(248&d))if(A=d-176+1,C||Q)s+=A;else for(r=0;r<A;r++)u.push(o[s++]);else if(184==(248&d))if(A=d-184+1,C||Q)s+=2*A;else for(r=0;r<A;r++)n=o[s++],u.push(Gu(n,o[s++]));else if(43!==d||I)if(44!==d||I){if(45===d)if(C)C=!1,c=s;else{if(!(a=l.pop()))return q("TT: ENDF bad stack"),void(t.hintsValid=!1);i=h.pop(),o=a.data,s=a.i,t.functionsStackDeltas[i]=u.length-a.stackTop}else if(137===d)(C||Q)&&(q("TT: nested IDEFs not allowed"),I=!0),C=!0,g=s;else if(88===d)++B;else if(27===d)Q=B;else if(89===d)Q===B&&(Q=0),--B;else if(28===d&&!C&&!Q){var y=u.at(-1);y>0&&(s+=y-1)}}else(C||Q)&&(q("TT: nested FDEFs not allowed"),I=!0),C=!0,g=s,i=u.pop(),t.functionsDefined[i]={data:o,i:s};else if(!C&&!Q)if(i=u.at(-1),isNaN(i))T("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[i]=!0,i in t.functionsStackDeltas){var p=u.length+t.functionsStackDeltas[i];if(p<0)return q("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);u.length=p}else if(i in t.functionsDefined&&!h.includes(i)){if(l.push({data:o,i:s,stackTop:u.length-1}),h.push(i),!(a=t.functionsDefined[i]))return q("TT: CALL non-existent function"),void(t.hintsValid=!1);o=a.data,s=a.i}if(!C&&!Q){var v=0;for(d<=142?v=f[d]:d>=192&&d<=223?v=-1:d>=224&&(v=-2),d>=113&&d<=117&&(A=u.pop(),isNaN(A)||(v=2*-A));v<0&&u.length>0;)u.pop(),v++;for(;v>0;)u.push(NaN),v--}}t.tooComplexToFollowFunctions=I;var m=[o];s>o.length&&m.push(new Uint8Array(s-o.length)),g>c&&(q("TT: complementing a missing function tail"),m.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var r,A,n=0;for(r=0,A=t.length;r<A;r++)n+=t[r].length;n=n+3&-4;var i=new Uint8Array(n),a=0;for(r=0,A=t.length;r<A;r++)i.set(t[r],a),a+=t[r].length;e.data=i,e.length=n}}(e,m)}if(Uu(t=new ar(new Uint8Array(t.getBytes())))){var B=function(e,t){for(var r,A=function(e){var t=e.getString(4);W("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),A=e.getUint16(),n=e.getInt32()>>>0,i=[],a=0;a<n;a++)i.push(e.getInt32()>>>0);var o={ttcTag:t,majorVersion:r,minorVersion:A,numFonts:n,offsetTable:i};switch(r){case 1:return o;case 2:return o.dsigTag=e.getInt32()>>>0,o.dsigLength=e.getInt32()>>>0,o.dsigOffset=e.getInt32()>>>0,o}throw new re("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),n=A.numFonts,i=A.offsetTable,o=t.split("+"),c=0;c<n;c++){e.pos=(e.start||0)+i[c];var u=s(e),l=a(e,u.numTables);if(!l.name)throw new re(\'TrueType Collection font must contain a "name" table.\');for(var h=Cu(g(l.name),1)[0],I=0,f=h.length;I<f;I++)for(var C=0,B=h[I].length;C<B;C++){var Q,E=null===(Q=h[I][C])||void 0===Q?void 0:Q.replaceAll(/\\s/g,"");if(E){if(E===t)return{header:u,tables:l};if(!(o.length<2)){var d,y=yu(o);try{for(y.s();!(d=y.n()).done;){var p=d.value;E===p&&(r={name:p,header:u,tables:l})}}catch(e){y.e(e)}finally{y.f()}}}}}if(r)return q(\'TrueType Collection does not contain "\'.concat(t,\'" font, \')+\'falling back to "\'.concat(r.name,\'" font instead.\')),{header:r.header,tables:r.tables};throw new re(\'TrueType Collection does not contain "\'.concat(t,\'" font.\'))}(t,this.name);u=B.header,l=B.tables}else u=s(t),l=a(t,u.numTables);var Q=!l["CFF "];if(Q){if(!l.loca)throw new re(\'Required "loca" table is not found\');l.glyf||(q(\'Required "glyf" table is not found -- trying to recover.\'),l.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var E,d=r.composite&&((null===(E=r.cidToGidMap)||void 0===E?void 0:E.length)>0||!(r.cMap instanceof ns));if("OTTO"===u.version&&!d||!l.head||!l.hhea||!l.maxp||!l.post)return I=new ar(l["CFF "].data),h=new Tc(I,r),Du(r),this.convert(e,h,r);delete l.glyf,delete l.loca,delete l.fpgm,delete l.prep,delete l["cvt "],this.isOpenType=!0}if(!l.maxp)throw new re(\'Required "maxp" table is not found\');t.pos=(t.start||0)+l.maxp.offset;var y,p,v=t.getInt32(),m=t.getUint16();if(65536!==v&&20480!==v){if(6===l.maxp.length)v=20480;else{if(!(l.maxp.length>=32))throw new re(\'"maxp" table has a wrong version number\');v=65536}p=v,(y=l.maxp.data)[3+0]=255&p,y[2]=p>>>8,y[1]=p>>>16,y[0]=p>>>24}if((null===(A=r.scaleFactors)||void 0===A?void 0:A.length)===m&&Q){var w=r.scaleFactors,b=xu(l.head.data[50],l.head.data[51]),k=new Sg({glyfTable:l.glyf.data,isGlyphLocationsLong:b,locaTable:l.loca.data,numGlyphs:m});k.scale(w);var D=k.write(),S=D.glyf,F=D.loca,x=D.isLocationLong;l.glyf.data=S,l.loca.data=F,x!==!!b&&(l.head.data[50]=0,l.head.data[51]=x?1:0);for(var R=l.hmtx.data,G=0;G<m;G++){var N=4*G,L=Math.round(w[G]*xu(R[N],R[N+1]));R[N]=L>>8&255,R[N+1]=255&L,Ru(R,N+2,Math.round(w[G]*Gu(R[N+2],R[N+3])))}}var U=m+1,M=!0;U>65535&&(M=!1,U=m,q("Not enough space in glyfs to duplicate first glyph."));var J=0,H=0;v>=65536&&l.maxp.length>=32&&(t.pos+=8,t.getUint16()>2&&(l.maxp.data[14]=0,l.maxp.data[15]=2),t.pos+=4,J=t.getUint16(),t.pos+=4,H=t.getUint16()),l.maxp.data[4]=U>>8,l.maxp.data[5]=255&U;var Y=function(e,t,r,A){var n={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&C(e,n),t&&C(t,n),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return q("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,A=e.functionsUsed.length;r<A;r++){if(r>t)return q("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return q("TT: undefined function: "+r),void(e.hintsValid=!1)}}}(n,A),r&&1&r.length){var i=new Uint8Array(r.length+1);i.set(r.data),r.data=i}return n.hintsValid}(l.fpgm,l.prep,l["cvt "],J);if(Y||(delete l.fpgm,delete l.prep,delete l["cvt "]),function(e,t,r,A,n,i){if(t){e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;var a=e.getUint16();e.pos+=8,e.pos+=2;var o=e.getUint16();0!==a&&(2&xu(A.data[44],A.data[45])||(t.data[22]=0,t.data[23]=0)),o>n&&(T("The numOfMetrics (".concat(o,") should not be ")+"greater than the numGlyphs (".concat(n,").")),o=n,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=n-o-(r.length-4*o>>1);if(s>0){var c=new Uint8Array(r.length+2*s);c.set(r.data),i&&(c[r.length]=r.data[2],c[r.length+1]=r.data[3]),r.data=c}}else r&&(r.data=null)}(t,l.hhea,l.hmtx,l.head,U,M),!l.head)throw new re(\'Required "head" table is not found\');!function(e,t,r){var A=e.data,n=(A[0]<<24)+(A[1]<<16)+(A[2]<<8)+A[3];n>>16!=1&&(T("Attempting to fix invalid version in head table: "+n),A[0]=0,A[1]=1,A[2]=0,A[3]=0);var i=xu(A[50],A[51]);if(i<0||i>1){T("Attempting to fix invalid indexToLocFormat in head table: "+i);var a=t+1;if(r===a<<1)A[50]=0,A[51]=0;else{if(r!==a<<2)throw new re("Could not fix indexToLocFormat: "+i);A[50]=0,A[51]=1}}}(l.head,m,Q?l.loca.length:0);var P=Object.create(null);if(Q){var O=xu(l.head.data[50],l.head.data[51]),K=function(e,t,r,A,n,i,a){var o,s,g;A?(o=4,s=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},g=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(o=2,s=function(e,t){return e[t]<<9|e[t+1]<<1},g=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,l=o*(1+u),h=new Uint8Array(l);h.set(e.data.subarray(0,l)),e.data=h;var I,f,C=t.data,B=C.length,Q=new Uint8Array(B),E=[];for(I=0,f=0;I<r+1;I++,f+=o){var d=s(h,f);d>B&&(d=B),E.push({index:I,offset:d,endOffset:0})}for(E.sort((function(e,t){return e.offset-t.offset})),I=0;I<r;I++)E[I].endOffset=E[I+1].offset;for(E.sort((function(e,t){return e.index-t.index})),I=0;I<r;I++){var y=E[I],p=y.offset,v=y.endOffset;if(0!==p||0!==v)break;var m=E[I+1].offset;if(0!==m){E[I].endOffset=m;break}}var w=E.at(-2);0!==w.offset&&0===w.endOffset&&(w.endOffset=B);var b=Object.create(null),k=0;for(g(h,0,k),I=0,f=o;I<r;I++,f+=o){var D=c(C,E[I].offset,E[I].endOffset,Q,k,n),S=D.length;0===S&&(b[I]=!0),D.sizeOfInstructions>a&&(a=D.sizeOfInstructions),g(h,f,k+=S)}if(0===k){var F=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(I=0,f=o;I<u;I++,f+=o)g(h,f,F.length);t.data=F}else if(i){var x=s(h,o);Q.length>x+k?t.data=Q.subarray(0,x+k):(t.data=new Uint8Array(x+k),t.data.set(Q.subarray(0,k))),t.data.set(Q.subarray(0,x),k),g(e.data,h.length-o,k+x)}else t.data=Q.subarray(0,k);return{missingGlyphs:b,maxSizeOfInstructions:a}}(l.loca,l.glyf,m,O,Y,M,H);P=K.missingGlyphs,v>=65536&&l.maxp.length>=32&&(l.maxp.data[26]=K.maxSizeOfInstructions>>8,l.maxp.data[27]=255&K.maxSizeOfInstructions)}if(!l.hhea)throw new re(\'Required "hhea" table is not found\');0===l.hhea.data[10]&&0===l.hhea.data[11]&&(l.hhea.data[10]=255,l.hhea.data[11]=255);var j={unitsPerEm:xu(l.head.data[18],l.head.data[19]),yMax:Gu(l.head.data[42],l.head.data[43]),yMin:Gu(l.head.data[38],l.head.data[39]),ascent:Gu(l.hhea.data[4],l.hhea.data[5]),descent:Gu(l.hhea.data[6],l.hhea.data[7]),lineGap:Gu(l.hhea.data[8],l.hhea.data[9])};this.ascent=j.ascent/j.unitsPerEm,this.descent=j.descent/j.unitsPerEm,this.lineGap=j.lineGap/j.unitsPerEm,null!==(n=this.cssFontInfo)&&void 0!==n&&n.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,l.post&&function(e,r,A){var n=(t.start||0)+e.offset;t.pos=n;var i,a=n+e.length,o=t.getInt32();t.skip(28);var s,c=!0;switch(o){case 65536:i=yc;break;case 131072:var g=t.getUint16();if(g!==A){c=!1;break}var u=[];for(s=0;s<g;++s){var l=t.getUint16();if(l>=32768){c=!1;break}u.push(l)}if(!c)break;for(var h=[],I=[];t.pos<a;){var f=t.getByte();for(I.length=f,s=0;s<f;++s)I[s]=String.fromCharCode(t.getByte());h.push(I.join(""))}for(i=[],s=0;s<g;++s){var C=u[s];C<258?i.push(yc[C]):i.push(h[C-258])}break;case 196608:break;default:q("Unknown/unsupported post table version "+o),c=!1,r.defaultEncoding&&(i=r.defaultEncoding)}r.glyphNames=i}(l.post,r,m),l.post={tag:"post",data:qu(r)};var Z=Object.create(null);function _(e){return!P[e]}if(r.composite){var X=r.cidToGidMap||[],V=0===X.length;r.cMap.forEach((function(e,t){if("string"==typeof t&&(t=Pu(e,t,!0)),t>65535)throw new re("Max size of CID is 65,535");var r=-1;V?r=t:void 0!==X[t]&&(r=X[t]),r>=0&&r<m&&_(r)&&(Z[e]=r)}))}else{var z=function(e,t,r,A){if(!e)return q("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var n,i=(t.start||0)+e.offset;t.pos=i,t.skip(2);for(var a,o=t.getUint16(),s=!1,c=0;c<o;c++){var g,u,l=t.getUint16(),h=t.getUint16(),I=t.getInt32()>>>0,f=!1;if((null===(g=a)||void 0===g?void 0:g.platformId)!==l||(null===(u=a)||void 0===u?void 0:u.encodingId)!==h){if(0!==l||0!==h&&1!==h&&3!==h)if(1===l&&0===h)f=!0;else if(3!==l||1!==h||!A&&a){if(r&&3===l&&0===h){f=!0;var C=!0;if(c<o-1){var B=t.peekBytes(2);xu(B[0],B[1])<l&&(C=!1)}C&&(s=!0)}}else f=!0,r||(s=!0);else f=!0;if(f&&(a={platformId:l,encodingId:h,offset:I}),s)break}}if(a&&(t.pos=i+a.offset),!a||-1===t.peekByte())return q("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var Q,E,d=t.getUint16(),y=!1,p=[];if(0===d){for(t.skip(4),Q=0;Q<256;Q++){var v=t.getByte();v&&p.push({charCode:Q,glyphId:v})}y=!0}else if(2===d){t.skip(4);for(var m=[],w=0,b=0;b<256;b++){var k=t.getUint16()>>3;m.push(k),w=Math.max(k,w)}for(var D=[],S=0;S<=w;S++)D.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:Gu(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(var F=0;F<256;F++)if(0===m[F])t.pos=D[0].idRangePos+2*F,E=t.getUint16(),p.push({charCode:F,glyphId:E});else{var x=D[m[F]];for(Q=0;Q<x.entryCount;Q++){var R=(F<<8)+Q+x.firstCode;t.pos=x.idRangePos+2*Q,0!==(E=t.getUint16())&&(E=(E+x.idDelta)%65536),p.push({charCode:R,glyphId:E})}}}else if(4===d){t.skip(4);var G=t.getUint16()>>1;t.skip(6);var N,L=[];for(N=0;N<G;N++)L.push({end:t.getUint16()});for(t.skip(2),N=0;N<G;N++)L[N].start=t.getUint16();for(N=0;N<G;N++)L[N].delta=t.getUint16();var U,M=0;for(N=0;N<G;N++){n=L[N];var J=t.getUint16();J?(U=(J>>1)-(G-N),n.offsetIndex=U,M=Math.max(M,U+n.end-n.start+1)):n.offsetIndex=-1}var H=[];for(Q=0;Q<M;Q++)H.push(t.getUint16());for(N=0;N<G;N++){i=(n=L[N]).start;var Y=n.end,P=n.delta;for(U=n.offsetIndex,Q=i;Q<=Y;Q++)65535!==Q&&(E=(E=U<0?Q:H[U+Q-i])+P&65535,p.push({charCode:Q,glyphId:E}))}}else if(6===d){t.skip(4);var O=t.getUint16(),K=t.getUint16();for(Q=0;Q<K;Q++){E=t.getUint16();var T=O+Q;p.push({charCode:T,glyphId:E})}}else{if(12!==d)return q("cmap table has unsupported format: "+d),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};t.skip(10);var j=t.getInt32()>>>0;for(Q=0;Q<j;Q++)for(var W=t.getInt32()>>>0,Z=t.getInt32()>>>0,_=t.getInt32()>>>0,X=W;X<=Z;X++)p.push({charCode:X,glyphId:_++})}p.sort((function(e,t){return e.charCode-t.charCode}));for(var V=1;V<p.length;V++)p[V-1].charCode===p[V].charCode&&(p.splice(V,1),V--);return{platformId:a.platformId,encodingId:a.encodingId,mappings:p,hasShortCmap:y}}(l.cmap,t,this.isSymbolicFont,r.hasEncoding),$=z.platformId,ee=z.encodingId,te=z.mappings,Ae=[],ne=!1;if(!r.hasEncoding||"MacRomanEncoding"!==r.baseEncodingName&&"WinAnsiEncoding"!==r.baseEncodingName||(Ae=Rs(r.baseEncodingName)),r.hasEncoding&&!this.isSymbolicFont&&(3===$&&1===ee||1===$&&0===ee))for(var ie=lc(),ae=0;ae<256;ae++){var oe;if(oe=void 0!==this.differences[ae]?this.differences[ae]:Ae.length&&""!==Ae[ae]?Ae[ae]:Ds[ae]){var se=pc(oe,ie),ce=void 0;if(3===$&&1===ee?ce=ie[se]:1===$&&0===ee&&(ce=ks.indexOf(se)),void 0===ce){if(!r.glyphNames&&r.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof Pc)){var ge=this.toUnicode.get(ae);ge&&(ce=ge.codePointAt(0))}if(void 0===ce)continue}var ue,le=yu(te);try{for(le.s();!(ue=le.n()).done;){var he=ue.value;if(he.charCode===ce){Z[ae]=he.glyphId;break}}}catch(e){le.e(e)}finally{le.f()}}}else if(0===$){var Ie,fe=yu(te);try{for(fe.s();!(Ie=fe.n()).done;){var Ce=Ie.value;Z[Ce.charCode]=Ce.glyphId}}catch(e){fe.e(e)}finally{fe.f()}ne=!0}else if(3===$&&0===ee){var Be,Qe=yu(te);try{for(Qe.s();!(Be=Qe.n()).done;){var Ee=Be.value,de=Ee.charCode;de>=61440&&de<=61695&&(de&=255),Z[de]=Ee.glyphId}}catch(e){Qe.e(e)}finally{Qe.f()}}else{var ye,pe=yu(te);try{for(pe.s();!(ye=pe.n()).done;){var ve=ye.value;Z[ve.charCode]=ve.glyphId}}catch(e){pe.e(e)}finally{pe.f()}}if(r.glyphNames&&(Ae.length||this.differences.length))for(var me=0;me<256;++me)if(ne||void 0===Z[me]){var we=this.differences[me]||Ae[me];if(we){var be=r.glyphNames.indexOf(we);be>0&&_(be)&&(Z[me]=be)}}}0===Z.length&&(Z[0]=0);var ke=U-1;if(M||(ke=0),!r.cssFontInfo){var De=Ou(Z,_,ke,this.toUnicode);this.toFontChar=De.toFontChar,l.cmap={tag:"cmap",data:Ku(De.charCodeToGlyphId,De.toUnicodeExtraMap,U)},l["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var A=t.getUint16();return!(r<4&&768&A||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(l["OS/2"],t)||(l["OS/2"]={tag:"OS/2",data:Tu(r,De.charCodeToGlyphId,j)})}if(!Q)try{I=new ar(l["CFF "].data),(h=new Xs(I,r,dc).parse()).duplicateFirstGlyph();var Se=new uc(h);l["CFF "].data=Se.compile()}catch(e){q("Failed to compile font "+r.loadedName)}if(l.name){var Fe=Cu(g(l.name),2),xe=Fe[0],Re=Fe[1];l.name.data=Wu(e,xe),this.psName=xe[0][6]||null,r.composite||function(e,t,r){if(!e.isInternalFont&&!e.hasIncludedToUnicodeMap&&!e.hasEncoding&&!(e.toUnicode instanceof Pc)&&t&&0!==r.length&&e.defaultEncoding!==Ss){var A,n=yu(r);try{for(n.s();!(A=n.n()).done;)if(!Yu(A.value))return}catch(e){n.e(e)}finally{n.f()}var i=Ss,a=[],o=lc();for(var s in i){var c=i[s];if(""!==c){var g=o[c];void 0!==g&&(a[s]=String.fromCharCode(g))}}a.length>0&&e.toUnicode.amend(a)}}(r,this.isSymbolicFont,Re)}else l.name={tag:"name",data:Wu(this.name)};var Ge=new Pg(u.version);for(var Ne in l)Ge.addTable(Ne,l[Ne].data);return Ge.toArray()}},{key:"convert",value:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(!e.isInternalFont&&!(e.hasIncludedToUnicodeMap||t===e.defaultEncoding||e.toUnicode instanceof Pc)){var r=[],A=lc();for(var n in t)if(!e.hasEncoding||!e.baseEncodingName&&void 0===e.differences[n]){var i=fc(t[n],A);-1!==i&&(r[n]=String.fromCharCode(i))}r.length>0&&e.toUnicode.amend(r)}}(r,r.builtInEncoding);var A=1;t instanceof Tc&&(A=t.numGlyphs-1);var n=t.getGlyphMapping(r),i=null,a=n,o=null;r.cssFontInfo||(i=Ou(n,t.hasGlyphId.bind(t),A,this.toUnicode),this.toFontChar=i.toFontChar,a=i.charCodeToGlyphId,o=i.toUnicodeExtraMap);var s=t.numGlyphs;function c(e,t){var r=null;for(var A in e)t===e[A]&&(r||(r=[])).push(0|A);return r}function g(e,t){for(var r in e)if(t===e[r])return 0|r;return i.charCodeToGlyphId[i.nextAvailableFontCharCode]=t,i.nextAvailableFontCharCode++}var u=t.seacs;if(i&&null!=u&&u.length){var l=r.fontMatrix||B,h=t.getCharset(),I=Object.create(null);for(var f in u){var C=u[f|=0],Q=Ds[C[2]],E=Ds[C[3]],d=h.indexOf(Q),y=h.indexOf(E);if(!(d<0||y<0)){var p={x:C[0]*l[0]+C[1]*l[2]+l[4],y:C[0]*l[1]+C[1]*l[3]+l[5]},v=c(n,f);if(v){var m,w=yu(v);try{for(w.s();!(m=w.n()).done;){var b=m.value,k=i.charCodeToGlyphId,D=g(k,d),S=g(k,y);I[b]={baseFontCharCode:D,accentFontCharCode:S,accentOffset:p}}}catch(e){w.e(e)}finally{w.f()}}}}r.seacMap=I}var F=r.fontMatrix?1/Math.max.apply(Math,fu(r.fontMatrix.slice(0,4).map(Math.abs))):1e3,x=new Pg("OTTO");return x.addTable("CFF ",t.data),x.addTable("OS/2",Tu(r,a)),x.addTable("cmap",Ku(a,o,s)),x.addTable("head","\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0_<õ\\0\\0"+Lu(F)+"\\0\\0\\0\\0\\v~\'\\0\\0\\0\\0\\v~\'\\0\\0"+Lu(r.descent)+"ÿ"+Lu(r.ascent)+Nu(r.italicAngle?2:0)+"\\0\\0\\0\\0\\0\\0\\0"),x.addTable("hhea","\\0\\0\\0"+Lu(r.ascent)+Lu(r.descent)+"\\0\\0ÿÿ\\0\\0\\0\\0\\0\\0"+Lu(r.capHeight)+Lu(Math.tan(r.italicAngle)*r.xHeight)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"+Nu(s)),x.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,A="\\0\\0\\0\\0",n=1,i=s;n<i;n++){var a=0;if(e){var o=e[n-1];a="width"in o?o.width:0}else r&&(a=Math.ceil(r[n]||0));A+=Nu(a)+Nu(0)}return A}()),x.addTable("maxp","\\0\\0P\\0"+Nu(s)),x.addTable("name",Wu(e)),x.addTable("post",qu(r)),x.toArray()}},{key:"_spaceWidth",get:function(){for(var e,t=0,r=["space","minus","one","i","I"];t<r.length;t++){var A=r[t];if(A in this.widths){e=this.widths[A];break}var n=lc()[A],i=0;if(this.composite&&this.cMap.contains(n)&&"string"==typeof(i=this.cMap.lookup(n))&&(i=Pu(n,i)),!i&&this.toUnicode&&(i=this.toUnicode.charCodeOf(n)),i<=0&&(i=n),e=this.widths[i])break}return _(this,"_spaceWidth",e||this.defaultWidth)}},{key:"_charToGlyph",value:function(e){var t,r,A,n,i,a,o,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this._glyphCache[e];if((null===(t=c)||void 0===t?void 0:t.isSpace)===s)return c;var g=e;null!==(r=this.cMap)&&void 0!==r&&r.contains(e)&&"string"==typeof(g=this.cMap.lookup(e))&&(g=Pu(e,g)),"number"!=typeof(a=this.widths[g])&&(a=this.defaultWidth);var u=null===(A=this.vmetrics)||void 0===A?void 0:A[g],l=this.toUnicode.get(e)||e;"number"==typeof l&&(l=String.fromCharCode(l));var h,I=void 0!==this.toFontChar[e];if(i=this.toFontChar[e]||e,this.missingFile){var f=this.differences[e]||this.defaultEncoding[e];".notdef"!==f&&""!==f||"Type1"!==this.type||(i=32,""===f&&(a||(a=this._spaceWidth),l=String.fromCharCode(i))),i=(h=i)>=65520&&h<=65535?0:h>=62976&&h<=63743?Ic()[h]||h:173===h?45:h}this.isType3Font&&(o=i);var C=null;if(null!==(n=this.seacMap)&&void 0!==n&&n[e]){I=!0;var B=this.seacMap[e];i=B.baseFontCharCode,C={fontChar:String.fromCodePoint(B.accentFontCharCode),offset:B.accentOffset}}var Q="";if("number"==typeof i&&(i<=1114111?Q=String.fromCodePoint(i):q("charToGlyph - invalid fontCharCode: ".concat(i))),this.missingFile&&this.vertical&&1===Q.length){var E=wc()[Q.charCodeAt(0)];E&&(Q=l=String.fromCharCode(E))}return c=new Fu(e,Q,l,C,a,u,o,s,I),this._glyphCache[e]=c}},{key:"charsToGlyphs",value:function(e){var t=this._charsCache[e];if(t)return t;if(t=[],this.cMap)for(var r=Object.create(null),A=e.length,n=0;n<A;){this.cMap.readCharCode(e,n,r);var i=r.charcode,a=r.length;n+=a;var o=this._charToGlyph(i,1===a&&32===e.charCodeAt(n-1));t.push(o)}else for(var s=0,c=e.length;s<c;++s){var g=e.charCodeAt(s),u=this._charToGlyph(g,32===g);t.push(u)}return this._charsCache[e]=t}},{key:"getCharPositions",value:function(e){var t=[];if(this.cMap)for(var r=Object.create(null),A=0;A<e.length;){this.cMap.readCharCode(e,A,r);var n=r.length;t.push([A,A+n]),A+=n}else for(var i=0,a=e.length;i<a;++i)t.push([i,i+1]);return t}},{key:"glyphCacheValues",get:function(){return Object.values(this._glyphCache)}},{key:"encodeString",value:function(e){for(var t=this,r=[],A=[],n=function(){return r.length%2==1},i=this.toUnicode instanceof Pc?function(e){return t.toUnicode.charCodeOf(e)}:function(e){return t.toUnicode.charCodeOf(String.fromCodePoint(e))},a=0,o=e.length;a<o;a++){var s=e.codePointAt(a);if(s>55295&&(s<57344||s>65533)&&a++,this.toUnicode){var c=i(s);if(-1!==c){n()&&(r.push(A.join("")),A.length=0);for(var g=(this.cMap?this.cMap.getCharCodeLength(c):1)-1;g>=0;g--)A.push(String.fromCharCode(c>>8*g&255));continue}}n()||(r.push(A.join("")),A.length=0),A.push(String.fromCodePoint(s))}return r.push(A.join("")),r}}])}(),_u=function(){return Eu((function e(t){Bu(this,e),this.error=t,this.loadedName="g_font_error",this.missingFile=!0}),[{key:"charsToGlyphs",value:function(){return[]}},{key:"encodeString",value:function(e){return[e]}},{key:"exportData",value:function(){return{error:this.error}}}])}();function Xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function zu(e,t,r){return t=tl(t),$u(e,el()?Reflect.construct(t,r||[],tl(e).constructor):t.apply(e,r))}function $u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}function el(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(el=function(){return!!e})()}function tl(e){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tl(e)}function rl(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Al(e,t)}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Al(e,t)}function nl(e,t,r){return(t=sl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function al(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,sl(A.key),A)}}function ol(e,t,r){return t&&al(e.prototype,t),r&&al(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var cl=function(){return ol((function e(){il(this,e),j("Cannot initialize Pattern.")}),null,[{key:"parseShading",value:function(e,t,r,A,n){var i=e instanceof ze?e.dict:e,a=i.get("ShadingType");try{switch(a){case 2:case 3:return new ul(i,t,r,A,n);case 4:case 5:case 6:case 7:return new fl(e,t,r,A,n);default:throw new re("Unsupported ShadingType: "+a)}}catch(e){if(e instanceof Ct)throw e;return q(e),new Cl}}}])}(),gl=function(){return ol((function e(){il(this,e)}),[{key:"getIR",value:function(){j("Abstract method `getIR` called.")}}])}();nl(gl,"SMALL_NUMBER",1e-6);var ul=function(e){function t(e,r,A,n,i){var a;il(this,t),(a=zu(this,t)).shadingType=e.get("ShadingType");var o=0;if(2===a.shadingType?o=4:3===a.shadingType&&(o=6),a.coordsArr=e.getArray("Coords"),!St(a.coordsArr,o))throw new re("RadialAxialShading: Invalid /Coords array.");var s=Ur.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:r,resources:A,pdfFunctionFactory:n,localColorSpaceCache:i});a.bbox=Rt(e.getArray("BBox"),null);var c=0,g=1,u=e.getArray("Domain");if(St(u,2)){var l=Xu(u,2);c=l[0],g=l[1]}var h,I=!1,f=!1,C=e.getArray("Extend");if(h=C,2,Array.isArray(h)&&2===h.length&&h.every((function(e){return"boolean"==typeof e}))){var B=Xu(C,2);I=B[0],f=B[1]}if(!(3!==a.shadingType||I&&f)){var Q=Xu(a.coordsArr,6),E=Q[0],d=Q[1],y=Q[2],p=Q[3],v=Q[4],m=Q[5],w=Math.hypot(E-p,d-v);y<=m+w&&m<=y+w&&q("Unsupported radial gradient.")}a.extendStart=I,a.extendEnd=f;var b=e.getRaw("Function"),k=n.createFromArray(b),D=(g-c)/840,S=a.colorStops=[];if(c>=g||D<=0)return T("Bad shading domain."),$u(a);var F,x=new Float32Array(s.numComps),R=new Float32Array(1),G=0;R[0]=c,k(R,0,x,0);var N=s.getRgb(x,0),L=ge.makeHexColor(N[0],N[1],N[2]);S.push([0,L]);var U=1;R[0]=c+D,k(R,0,x,0);for(var M=s.getRgb(x,0),J=M[0]-N[0]+1,H=M[1]-N[1]+1,Y=M[2]-N[2]+1,P=M[0]-N[0]-1,O=M[1]-N[1]-1,K=M[2]-N[2]-1,j=2;j<840;j++){R[0]=c+j*D,k(R,0,x,0),F=s.getRgb(x,0);var W=j-G;if(J=Math.min(J,(F[0]-N[0]+1)/W),H=Math.min(H,(F[1]-N[1]+1)/W),Y=Math.min(Y,(F[2]-N[2]+1)/W),P=Math.max(P,(F[0]-N[0]-1)/W),O=Math.max(O,(F[1]-N[1]-1)/W),K=Math.max(K,(F[2]-N[2]-1)/W),!(P<=J&&O<=H&&K<=Y)){var Z=ge.makeHexColor(M[0],M[1],M[2]);S.push([U/840,Z]),J=F[0]-M[0]+1,H=F[1]-M[1]+1,Y=F[2]-M[2]+1,P=F[0]-M[0]-1,O=F[1]-M[1]-1,K=F[2]-M[2]-1,G=U,N=M}U=j,M=F}var _=ge.makeHexColor(M[0],M[1],M[2]);S.push([1,_]);var X="transparent";return e.has("Background")&&(F=s.getRgb(e.get("Background"),0),X=ge.makeHexColor(F[0],F[1],F[2])),I||(S.unshift([0,X]),S[1][0]+=gl.SMALL_NUMBER),f||(S.at(-1)[0]-=gl.SMALL_NUMBER,S.push([1,X])),a.colorStops=S,a}return rl(t,gl),ol(t,[{key:"getIR",value:function(){var e,t,r,A,n,i=this.coordsArr,a=this.shadingType;return 2===a?(t=[i[0],i[1]],r=[i[2],i[3]],A=null,n=null,e="axial"):3===a?(t=[i[0],i[1]],r=[i[3],i[4]],A=i[2],n=i[5],e="radial"):j("getPattern type unknown: ".concat(a)),["RadialAxial",e,this.bbox,this.colorStops,t,r,A,n]}}])}(),ll=function(){return ol((function e(t,r){il(this,e),this.stream=t,this.context=r,this.buffer=0,this.bufferLength=0;var A=r.numComps;this.tmpCompsBuf=new Float32Array(A);var n=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(n):this.tmpCompsBuf}),[{key:"hasData",get:function(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0||(this.buffer=e,this.bufferLength=8,0))}},{key:"readBits",value:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var A=this.stream.getByte();return this.buffer=A&(1<<r)-1,(t<<8-r|(255&A)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r<e;)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r}},{key:"align",value:function(){this.buffer=0,this.bufferLength=0}},{key:"readFlag",value:function(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),A=this.context.decode,n=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*n*(A[1]-A[0])+A[0],r*n*(A[3]-A[2])+A[2]]}},{key:"readComponents",value:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,A=this.context.decode,n=this.tmpCompsBuf,i=0,a=4;i<e;i++,a+=2){var o=this.readBits(t);n[i]=o*r*(A[a+1]-A[a])+A[a]}var s=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(n,0,s,0),this.context.colorSpace.getRgb(s,0)}}])}(),hl=Object.create(null);function Il(e){var t;return(t=hl)[e]||(t[e]=function(e){for(var t=[],r=0;r<=e;r++){var A=r/e,n=1-A;t.push(new Float32Array([Math.pow(n,3),3*A*Math.pow(n,2),3*Math.pow(A,2)*n,Math.pow(A,3)]))}return t}(e))}var fl=function(e){function t(e,r,A,n,i){var a;if(il(this,t),a=zu(this,t),!(e instanceof ze))throw new re("Mesh data is not a stream");var o=e.dict;a.shadingType=o.get("ShadingType"),a.bbox=Rt(o.getArray("BBox"),null);var s=Ur.parse({cs:o.getRaw("CS")||o.getRaw("ColorSpace"),xref:r,resources:A,pdfFunctionFactory:n,localColorSpaceCache:i});a.background=o.has("Background")?s.getRgb(o.get("Background"),0):null;var c=o.getRaw("Function"),g=c?n.createFromArray(c):null;a.coords=[],a.colors=[],a.figures=[];var u={bitsPerCoordinate:o.get("BitsPerCoordinate"),bitsPerComponent:o.get("BitsPerComponent"),bitsPerFlag:o.get("BitsPerFlag"),decode:o.getArray("Decode"),colorFn:g,colorSpace:s,numComps:g?1:s.numComps},l=new ll(e,u),h=!1;switch(a.shadingType){case 4:a._decodeType4Shading(l);break;case 5:var I=0|o.get("VerticesPerRow");if(I<2)throw new re("Invalid VerticesPerRow");a._decodeType5Shading(l,I);break;case 6:a._decodeType6Shading(l),h=!0;break;case 7:a._decodeType7Shading(l),h=!0;break;default:j("Unsupported mesh type.")}if(h){a._updateBounds();for(var f=0,C=a.figures.length;f<C;f++)a._buildFigureFromPatch(f)}return a._updateBounds(),a._packData(),a}return rl(t,gl),ol(t,[{key:"_decodeType4Shading",value:function(e){for(var t=this.coords,r=this.colors,A=[],n=[],i=0;e.hasData;){var a=e.readFlag(),o=e.readCoordinate(),s=e.readComponents();if(0===i){if(!(0<=a&&a<=2))throw new re("Unknown type4 flag");switch(a){case 0:i=3;break;case 1:n.push(n.at(-2),n.at(-1)),i=1;break;case 2:n.push(n.at(-3),n.at(-1)),i=1}A.push(a)}n.push(t.length),t.push(o),r.push(s),i--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(n),colors:new Int32Array(n)})}},{key:"_decodeType5Shading",value:function(e,t){for(var r=this.coords,A=this.colors,n=[];e.hasData;){var i=e.readCoordinate(),a=e.readComponents();n.push(r.length),r.push(i),A.push(a)}this.figures.push({type:"lattice",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:t})}},{key:"_decodeType6Shading",value:function(e){for(var t=this.coords,r=this.colors,A=new Int32Array(16),n=new Int32Array(4);e.hasData;){var i=e.readFlag();if(!(0<=i&&i<=3))throw new re("Unknown type6 flag");for(var a=t.length,o=0,s=0!==i?8:12;o<s;o++)t.push(e.readCoordinate());for(var c=r.length,g=0,u=0!==i?2:4;g<u;g++)r.push(e.readComponents());var l=void 0,h=void 0,I=void 0,f=void 0;switch(i){case 0:A[12]=a+3,A[13]=a+4,A[14]=a+5,A[15]=a+6,A[8]=a+2,A[11]=a+7,A[4]=a+1,A[7]=a+8,A[0]=a,A[1]=a+11,A[2]=a+10,A[3]=a+9,n[2]=c+1,n[3]=c+2,n[0]=c,n[1]=c+3;break;case 1:l=A[12],h=A[13],I=A[14],f=A[15],A[12]=f,A[13]=a+0,A[14]=a+1,A[15]=a+2,A[8]=I,A[11]=a+3,A[4]=h,A[7]=a+4,A[0]=l,A[1]=a+7,A[2]=a+6,A[3]=a+5,l=n[2],h=n[3],n[2]=h,n[3]=c,n[0]=l,n[1]=c+1;break;case 2:l=A[15],h=A[11],A[12]=A[3],A[13]=a+0,A[14]=a+1,A[15]=a+2,A[8]=A[7],A[11]=a+3,A[4]=h,A[7]=a+4,A[0]=l,A[1]=a+7,A[2]=a+6,A[3]=a+5,l=n[3],n[2]=n[1],n[3]=c,n[0]=l,n[1]=c+1;break;case 3:A[12]=A[0],A[13]=a+0,A[14]=a+1,A[15]=a+2,A[8]=A[1],A[11]=a+3,A[4]=A[2],A[7]=a+4,A[0]=A[3],A[1]=a+7,A[2]=a+6,A[3]=a+5,n[2]=n[0],n[3]=c,n[0]=n[1],n[1]=c+1}A[5]=t.length,t.push([(-4*t[A[0]][0]-t[A[15]][0]+6*(t[A[4]][0]+t[A[1]][0])-2*(t[A[12]][0]+t[A[3]][0])+3*(t[A[13]][0]+t[A[7]][0]))/9,(-4*t[A[0]][1]-t[A[15]][1]+6*(t[A[4]][1]+t[A[1]][1])-2*(t[A[12]][1]+t[A[3]][1])+3*(t[A[13]][1]+t[A[7]][1]))/9]),A[6]=t.length,t.push([(-4*t[A[3]][0]-t[A[12]][0]+6*(t[A[2]][0]+t[A[7]][0])-2*(t[A[0]][0]+t[A[15]][0])+3*(t[A[4]][0]+t[A[14]][0]))/9,(-4*t[A[3]][1]-t[A[12]][1]+6*(t[A[2]][1]+t[A[7]][1])-2*(t[A[0]][1]+t[A[15]][1])+3*(t[A[4]][1]+t[A[14]][1]))/9]),A[9]=t.length,t.push([(-4*t[A[12]][0]-t[A[3]][0]+6*(t[A[8]][0]+t[A[13]][0])-2*(t[A[0]][0]+t[A[15]][0])+3*(t[A[11]][0]+t[A[1]][0]))/9,(-4*t[A[12]][1]-t[A[3]][1]+6*(t[A[8]][1]+t[A[13]][1])-2*(t[A[0]][1]+t[A[15]][1])+3*(t[A[11]][1]+t[A[1]][1]))/9]),A[10]=t.length,t.push([(-4*t[A[15]][0]-t[A[0]][0]+6*(t[A[11]][0]+t[A[14]][0])-2*(t[A[12]][0]+t[A[3]][0])+3*(t[A[2]][0]+t[A[8]][0]))/9,(-4*t[A[15]][1]-t[A[0]][1]+6*(t[A[11]][1]+t[A[14]][1])-2*(t[A[12]][1]+t[A[3]][1])+3*(t[A[2]][1]+t[A[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(A),colors:new Int32Array(n)})}}},{key:"_decodeType7Shading",value:function(e){for(var t=this.coords,r=this.colors,A=new Int32Array(16),n=new Int32Array(4);e.hasData;){var i=e.readFlag();if(!(0<=i&&i<=3))throw new re("Unknown type7 flag");for(var a=t.length,o=0,s=0!==i?12:16;o<s;o++)t.push(e.readCoordinate());for(var c=r.length,g=0,u=0!==i?2:4;g<u;g++)r.push(e.readComponents());var l=void 0,h=void 0,I=void 0,f=void 0;switch(i){case 0:A[12]=a+3,A[13]=a+4,A[14]=a+5,A[15]=a+6,A[8]=a+2,A[9]=a+13,A[10]=a+14,A[11]=a+7,A[4]=a+1,A[5]=a+12,A[6]=a+15,A[7]=a+8,A[0]=a,A[1]=a+11,A[2]=a+10,A[3]=a+9,n[2]=c+1,n[3]=c+2,n[0]=c,n[1]=c+3;break;case 1:l=A[12],h=A[13],I=A[14],f=A[15],A[12]=f,A[13]=a+0,A[14]=a+1,A[15]=a+2,A[8]=I,A[9]=a+9,A[10]=a+10,A[11]=a+3,A[4]=h,A[5]=a+8,A[6]=a+11,A[7]=a+4,A[0]=l,A[1]=a+7,A[2]=a+6,A[3]=a+5,l=n[2],h=n[3],n[2]=h,n[3]=c,n[0]=l,n[1]=c+1;break;case 2:l=A[15],h=A[11],A[12]=A[3],A[13]=a+0,A[14]=a+1,A[15]=a+2,A[8]=A[7],A[9]=a+9,A[10]=a+10,A[11]=a+3,A[4]=h,A[5]=a+8,A[6]=a+11,A[7]=a+4,A[0]=l,A[1]=a+7,A[2]=a+6,A[3]=a+5,l=n[3],n[2]=n[1],n[3]=c,n[0]=l,n[1]=c+1;break;case 3:A[12]=A[0],A[13]=a+0,A[14]=a+1,A[15]=a+2,A[8]=A[1],A[9]=a+9,A[10]=a+10,A[11]=a+3,A[4]=A[2],A[5]=a+8,A[6]=a+11,A[7]=a+4,A[0]=A[3],A[1]=a+7,A[2]=a+6,A[3]=a+5,n[2]=n[0],n[3]=c,n[0]=n[1],n[1]=c+1}this.figures.push({type:"patch",coords:new Int32Array(A),colors:new Int32Array(n)})}}},{key:"_buildFigureFromPatch",value:function(e){var r=this.figures[e];W("patch"===r.type,"Unexpected patch mesh figure");var A=this.coords,n=this.colors,i=r.coords,a=r.colors,o=Math.min(A[i[0]][0],A[i[3]][0],A[i[12]][0],A[i[15]][0]),s=Math.min(A[i[0]][1],A[i[3]][1],A[i[12]][1],A[i[15]][1]),c=Math.max(A[i[0]][0],A[i[3]][0],A[i[12]][0],A[i[15]][0]),g=Math.max(A[i[0]][1],A[i[3]][1],A[i[12]][1],A[i[15]][1]),u=Math.ceil((c-o)*t.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=Math.max(t.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(t.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,u));var l=Math.ceil((g-s)*t.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));l=Math.max(t.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(t.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,l));for(var h=u+1,I=new Int32Array((l+1)*h),f=new Int32Array((l+1)*h),C=0,B=new Uint8Array(3),Q=new Uint8Array(3),E=n[a[0]],d=n[a[1]],y=n[a[2]],p=n[a[3]],v=Il(l),m=Il(u),w=0;w<=l;w++){B[0]=(E[0]*(l-w)+y[0]*w)/l|0,B[1]=(E[1]*(l-w)+y[1]*w)/l|0,B[2]=(E[2]*(l-w)+y[2]*w)/l|0,Q[0]=(d[0]*(l-w)+p[0]*w)/l|0,Q[1]=(d[1]*(l-w)+p[1]*w)/l|0,Q[2]=(d[2]*(l-w)+p[2]*w)/l|0;for(var b=0;b<=u;b++,C++)if(0!==w&&w!==l||0!==b&&b!==u){for(var k=0,D=0,S=0,F=0;F<=3;F++)for(var x=0;x<=3;x++,S++){var R=v[w][F]*m[b][x];k+=A[i[S]][0]*R,D+=A[i[S]][1]*R}I[C]=A.length,A.push([k,D]),f[C]=n.length;var G=new Uint8Array(3);G[0]=(B[0]*(u-b)+Q[0]*b)/u|0,G[1]=(B[1]*(u-b)+Q[1]*b)/u|0,G[2]=(B[2]*(u-b)+Q[2]*b)/u|0,n.push(G)}}I[0]=i[0],f[0]=a[0],I[u]=i[3],f[u]=a[1],I[h*l]=i[12],f[h*l]=a[2],I[h*l+u]=i[15],f[h*l+u]=a[3],this.figures[e]={type:"lattice",coords:I,colors:f,verticesPerRow:h}}},{key:"_updateBounds",value:function(){for(var e=this.coords[0][0],t=this.coords[0][1],r=e,A=t,n=1,i=this.coords.length;n<i;n++){var a=this.coords[n][0],o=this.coords[n][1];e=e>a?a:e,t=t>o?o:t,r=r<a?a:r,A=A<o?o:A}this.bounds=[e,t,r,A]}},{key:"_packData",value:function(){var e,t,r,A,n=this.coords,i=new Float32Array(2*n.length);for(e=0,r=0,t=n.length;e<t;e++){var a=n[e];i[r++]=a[0],i[r++]=a[1]}this.coords=i;var o=this.colors,s=new Uint8Array(3*o.length);for(e=0,r=0,t=o.length;e<t;e++){var c=o[e];s[r++]=c[0],s[r++]=c[1],s[r++]=c[2]}this.colors=s;var g=this.figures;for(e=0,t=g.length;e<t;e++){var u=g[e],l=u.coords,h=u.colors;for(r=0,A=l.length;r<A;r++)l[r]*=2,h[r]*=3}}},{key:"getIR",value:function(){var e=this.bounds;if(e[2]-e[0]==0||e[3]-e[1]==0)throw new re("Invalid MeshShading bounds: [".concat(e,"]."));return["Mesh",this.shadingType,this.coords,this.colors,this.figures,e,this.bbox,this.background]}}])}();nl(fl,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3),nl(fl,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20),nl(fl,"TRIANGLE_DENSITY",20);var Cl=function(e){function t(){return il(this,t),zu(this,t,arguments)}return rl(t,gl),ol(t,[{key:"getIR",value:function(){return["Dummy"]}}])}();function Bl(e,t,r){var A=Ft(t.getArray("Matrix"),C),n=Rt(t.getArray("BBox"),null);if(!n||n[2]-n[0]==0||n[3]-n[1]==0)throw new re("Invalid getTilingPatternIR /BBox array.");var i=t.get("XStep");if("number"!=typeof i)throw new re("Invalid getTilingPatternIR /XStep value.");var a=t.get("YStep");if("number"!=typeof a)throw new re("Invalid getTilingPatternIR /YStep value.");var o=t.get("PaintType");if(!Number.isInteger(o))throw new re("Invalid getTilingPatternIR /PaintType value.");var s=t.get("TilingType");if(!Number.isInteger(s))throw new re("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",r,e,A,n,i,a,o,s]}var Ql=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],El={lineHeight:1.2207,lineGap:.2207},dl=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],yl={lineHeight:1.2207,lineGap:.2207},pl=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],vl={lineHeight:1.2207,lineGap:.2207},ml=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],wl={lineHeight:1.2207,lineGap:.2207},bl=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],kl={lineHeight:1.2,lineGap:.2},Dl=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],Sl={lineHeight:1.35,lineGap:.2},Fl=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],xl={lineHeight:1.35,lineGap:.2},Rl=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Gl={lineHeight:1.2,lineGap:.2},Nl=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Ll=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ul=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],Ml=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Jl=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Hl=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Yl=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],Pl=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],Ol=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Kl={lineHeight:1.2,lineGap:.2},Tl=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],ql={lineHeight:1.2,lineGap:.2},jl=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Wl={lineHeight:1.2,lineGap:.2},Zl=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],_l={lineHeight:1.2,lineGap:.2},Xl=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],Vl={lineHeight:1.33008,lineGap:0},zl=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],$l={lineHeight:1.33008,lineGap:0},eh=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],th={lineHeight:1.33008,lineGap:0},rh=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],Ah={lineHeight:1.33008,lineGap:0};function nh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||ih(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ih(e,t){if(e){if("string"==typeof e)return ah(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ah(e,t):void 0}}function ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var oh=ft((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:Zl,baseWidths:Yl,baseMapping:Pl,metrics:_l},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:Ol,baseWidths:Nl,baseMapping:Ll,metrics:Kl},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:jl,baseWidths:Jl,baseMapping:Hl,metrics:Wl},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:Tl,baseWidths:Ul,baseMapping:Ml,metrics:ql},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:Yl,baseMapping:Pl},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:Nl,baseMapping:Ll},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:Jl,baseMapping:Hl},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:Ul,baseMapping:Ml},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:ml,baseWidths:Yl,baseMapping:Pl,metrics:wl},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:Ql,baseWidths:Nl,baseMapping:Ll,metrics:El},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:pl,baseWidths:Jl,baseMapping:Hl,metrics:vl},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:dl,baseWidths:Ul,baseMapping:Ml,metrics:yl},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:rh,baseWidths:Yl,baseMapping:Pl,metrics:Ah},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:Xl,baseWidths:Nl,baseMapping:Ll,metrics:Vl},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:eh,baseWidths:Jl,baseMapping:Hl,metrics:th},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:zl,baseWidths:Ul,baseMapping:Ml,metrics:$l},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:Rl,baseWidths:Yl,baseMapping:Pl,metrics:Gl},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:bl,baseWidths:Nl,baseMapping:Ll,metrics:kl},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:Fl,baseWidths:Jl,baseMapping:Hl,metrics:xl},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:Dl,baseWidths:Ul,baseMapping:Ml,metrics:Sl}}));function sh(e){var t=mc(e);return oh()[t]}function ch(e){var t=function(e){var t=sh(e);if(!t)return null;var r,A,n=t.baseWidths,i=t.baseMapping,a=t.factors,o=a?n.map((function(e,t){return e*a[t]})):n,s=-2,c=[],g=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ih(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(i.map((function(e,t){return[e,t]})).sort((function(e,t){return nh(e,1)[0]-nh(t,1)[0]})));try{for(g.s();!(A=g.n()).done;){var u=nh(A.value,2),l=u[0],h=u[1];-1!==l&&(l===s+1?(r.push(o[h]),s+=1):(s=l,r=[o[h]],c.push(l,r)))}}catch(e){g.e(e)}finally{g.f()}return c}(e),r=new He(null);r.set("BaseFont",Ue.get(e)),r.set("Type",Ue.get("Font")),r.set("Subtype",Ue.get("CIDFontType2")),r.set("Encoding",Ue.get("Identity-H")),r.set("CIDToGIDMap",Ue.get("Identity")),r.set("W",t),r.set("FirstChar",t[0]),r.set("LastChar",t.at(-2)+t.at(-1).length-1);var A=new He(null);r.set("FontDescriptor",A);var n=new He(null);return n.set("Ordering","Identity"),n.set("Registry","Adobe"),n.set("Supplement",0),r.set("CIDSystemInfo",n),r}function gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uh(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,hh(A.key),A)}}function lh(e,t,r){return t&&uh(e.prototype,t),r&&uh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hh(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Ih,fh=function(){return lh((function e(t){gh(this,e),this.lexer=t,this.operators=[],this.token=null,this.prev=null}),[{key:"nextToken",value:function(){this.prev=this.token,this.token=this.lexer.getToken()}},{key:"accept",value:function(e){return this.token.type===e&&(this.nextToken(),!0)}},{key:"expect",value:function(e){if(this.accept(e))return!0;throw new re("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}},{key:"parse",value:function(){return this.nextToken(),this.expect(Ch.LBRACE),this.parseBlock(),this.expect(Ch.RBRACE),this.operators}},{key:"parseBlock",value:function(){for(;;)if(this.accept(Ch.NUMBER))this.operators.push(this.prev.value);else if(this.accept(Ch.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(Ch.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(Ch.RBRACE),this.accept(Ch.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(Ch.LBRACE))throw new re("PS Function: error parsing conditional.");var t=this.operators.length;this.operators.push(null,null);var r=this.operators.length;this.parseBlock(),this.expect(Ch.RBRACE),this.expect(Ch.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}])}(),Ch={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},Bh=function(){function e(t,r){gh(this,e),this.type=t,this.value=r}return lh(e,null,[{key:"opCache",get:function(){return _(this,"opCache",Object.create(null))}},{key:"getOperator",value:function(t){var r;return(r=e.opCache)[t]||(r[t]=new e(Ch.OPERATOR,t))}},{key:"LBRACE",get:function(){return _(this,"LBRACE",new e(Ch.LBRACE,"{"))}},{key:"RBRACE",get:function(){return _(this,"RBRACE",new e(Ch.RBRACE,"}"))}},{key:"IF",get:function(){return _(this,"IF",new e(Ch.IF,"IF"))}},{key:"IFELSE",get:function(){return _(this,"IFELSE",new e(Ch.IFELSE,"IFELSE"))}}])}(),Qh=function(){return lh((function e(t){gh(this,e),this.stream=t,this.nextChar(),this.strBuf=[]}),[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return Re;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!Dt(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new Bh(Ch.NUMBER,this.getNumber());case 123:return this.nextChar(),Bh.LBRACE;case 125:return this.nextChar(),Bh.RBRACE}var r=this.strBuf;for(r.length=0,r[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var A=r.join("");switch(A.toLowerCase()){case"if":return Bh.IF;case"ifelse":return Bh.IFELSE;default:return Bh.getOperator(A)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));if(isNaN(r))throw new re("Invalid floating point number: ".concat(r));return r}}])}();function Eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function dh(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yh(e,t,r){return(t=Gh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ph(e,t){return e.get(mh(e,t))}function vh(e,t,r){return r(mh(e,t))}function mh(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function wh(e,t,r){return t=kh(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,bh()?Reflect.construct(t,r||[],kh(e).constructor):t.apply(e,r))}function bh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bh=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(e)}function Dh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sh(e,t)}function Sh(e,t){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sh(e,t)}function Fh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xh(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Gh(A.key),A)}}function Rh(e,t,r){return t&&xh(e.prototype,t),r&&xh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gh(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Nh=function(){return Rh((function e(t){Fh(this,e),this._onlyRefs=!0===(null==t?void 0:t.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new Oe}),[{key:"getByName",value:function(e){this._onlyRefs&&j("Should not call `getByName` method.");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}},{key:"getByRef",value:function(e){return this._imageCache.get(e)||null}},{key:"set",value:function(e,t,r){j("Abstract method `set` called.")}}])}(),Lh=function(e){function t(){return Fh(this,t),wh(this,t,arguments)}return Dh(t,Nh),Rh(t,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error(\'LocalImageCache.set - expected "name" argument.\');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}])}(),Uh=function(e){function t(){return Fh(this,t),wh(this,t,arguments)}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&!t)throw new Error(\'LocalColorSpaceCache.set - expected "name" and/or "ref" argument.\');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}])}(),Mh=function(e){function t(e){return Fh(this,t),wh(this,t,[{onlyRefs:!0}])}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error(\'LocalFunctionCache.set - expected "ref" argument.\');this._imageCache.has(e)||this._imageCache.put(e,t)}}])}(),Jh=function(e){function t(){return Fh(this,t),wh(this,t,arguments)}return Dh(t,Nh),Rh(t,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e)throw new Error(\'LocalGStateCache.set - expected "name" argument.\');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}])}(),Hh=function(e){function t(e){return Fh(this,t),wh(this,t,[{onlyRefs:!0}])}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error(\'LocalTilingPatternCache.set - expected "ref" argument.\');this._imageCache.has(e)||this._imageCache.put(e,t)}}])}(),Yh=function(e){function t(e){return Fh(this,t),wh(this,t,[{onlyRefs:!0}])}return Dh(t,Nh),Rh(t,[{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error(\'RegionalImageCache.set - expected "ref" argument.\');this._imageCache.has(e)||this._imageCache.put(e,t)}}])}(),Ph=new WeakMap,Oh=new WeakSet,Kh=function(){function e(){var t;Fh(this,e),dh(this,t=Oh),t.add(this),function(e,t,r){dh(e,t),t.set(e,r)}(this,Ph,new Pe),this._refCache=new Oe,this._imageCache=new Oe}return Rh(e,[{key:"shouldCache",value:function(t,r){var A=this._refCache.get(t);return A||(A=new Set,this._refCache.put(t,A)),A.add(r),!(A.size<e.NUM_PAGES_THRESHOLD||!this._imageCache.has(t)&&vh(Oh,this,qh))}},{key:"addDecodeFailed",value:function(e){ph(Ph,this).put(e)}},{key:"hasDecodeFailed",value:function(e){return ph(Ph,this).has(e)}},{key:"addByteSize",value:function(e,t){var r=this._imageCache.get(e);r&&(r.byteSize||(r.byteSize=t))}},{key:"getData",value:function(t,r){var A=this._refCache.get(t);if(!A)return null;if(A.size<e.NUM_PAGES_THRESHOLD)return null;var n=this._imageCache.get(t);return n?(A.add(r),n):null}},{key:"setData",value:function(e,t){if(!this._refCache.has(e))throw new Error(\'GlobalImageCache.setData - expected "shouldCache" to have been called.\');this._imageCache.has(e)||(vh(Oh,this,qh)?q("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}},{key:"clear",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||(ph(Ph,this).clear(),this._refCache.clear()),this._imageCache.clear()}}])}();function Th(e){var t,r=0,A=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Eh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Eh(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e._imageCache);try{for(A.s();!(t=A.n()).done;)r+=t.value.byteSize}catch(e){A.e(e)}finally{A.f()}return r}function qh(e){return!(e._imageCache.size<Ih.MIN_IMAGES_TO_CACHE||vh(Oh,e,Th)<Ih.MAX_BYTE_SIZE)}function jh(e){return function(e){if(Array.isArray(e))return eI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wh(e,t,r){return t=_h(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Zh()?Reflect.construct(t,r||[],_h(e).constructor):t.apply(e,r))}function Zh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zh=function(){return!!e})()}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_h(e)}function Xh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vh(e,t)}function Vh(e,t){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vh(e,t)}function zh(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=$h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function $h(e,t){if(e){if("string"==typeof e)return eI(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eI(e,t):void 0}}function eI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function tI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rI(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,nI(A.key),A)}}function AI(e,t,r){return t&&rI(e.prototype,t),r&&rI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nI(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}Ih=Kh,yh(Kh,"NUM_PAGES_THRESHOLD",2),yh(Kh,"MIN_IMAGES_TO_CACHE",10),yh(Kh,"MAX_BYTE_SIZE",5e7);var iI=function(){return AI((function e(t){var r=t.xref,A=t.isEvalSupported,n=void 0===A||A;tI(this,e),this.xref=r,this.isEvalSupported=!1!==n}),[{key:"create",value:function(e){var t=this.getCached(e);if(t)return t;var r=oI.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof Ye?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"createFromArray",value:function(e){var t=this.getCached(e);if(t)return t;var r=oI.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof Ye?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"getCached",value:function(e){var t;if(e instanceof Ye)t=e;else if(e instanceof He)t=e.objId;else if(e instanceof ze){var r;t=null===(r=e.dict)||void 0===r?void 0:r.objId}if(t){var A=this._localFunctionCache.getByRef(t);if(A)return A}return null}},{key:"_cache",value:function(e,t){if(!t)throw new Error(\'PDFFunctionFactory._cache - expected "parsedFunction" argument.\');var r;if(e instanceof Ye)r=e;else if(e instanceof He)r=e.objId;else if(e instanceof ze){var A;r=null===(A=e.dict)||void 0===A?void 0:A.objId}r&&this._localFunctionCache.set(null,r,t)}},{key:"_localFunctionCache",get:function(){return _(this,"_localFunctionCache",new Mh)}}])}();function aI(e){return Array.isArray(e)?St(e,null)?e:e.map((function(e){return+e})):null}var oI=function(){return AI((function e(){tI(this,e)}),null,[{key:"getSampleArray",value:function(e,t,r,A){var n,i,a=1;for(n=0,i=e.length;n<i;n++)a*=e[n];a*=t;var o=new Array(a),s=0,c=0,g=1/(Math.pow(2,r)-1),u=A.getBytes((a*r+7)/8),l=0;for(n=0;n<a;n++){for(;s<r;)c<<=8,c|=u[l++],s+=8;s-=r,o[n]=(c>>s)*g,c&=(1<<s)-1}return o}},{key:"parse",value:function(e){var t=e.xref,r=e.isEvalSupported,A=e.fn,n=A.dict||A;switch(n.get("FunctionType")){case 0:return this.constructSampled({xref:t,isEvalSupported:r,fn:A,dict:n});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:r,dict:n});case 3:return this.constructStiched({xref:t,isEvalSupported:r,dict:n});case 4:return this.constructPostScript({xref:t,isEvalSupported:r,fn:A,dict:n})}throw new re("Unknown type of function")}},{key:"parseArray",value:function(e){var t=e.xref,r=e.isEvalSupported,A=e.fnObj;if(!Array.isArray(A))return this.parse({xref:t,isEvalSupported:r,fn:A});var n,i=[],a=zh(A);try{for(a.s();!(n=a.n()).done;){var o=n.value;i.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(o)}))}}catch(e){a.e(e)}finally{a.f()}return function(e,t,r,A){for(var n=0,a=i.length;n<a;n++)i[n](e,t,r,A+n)}}},{key:"constructSampled",value:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict;function A(e){for(var t=e.length,r=[],A=0,n=0;n<t;n+=2)r[A++]=[e[n],e[n+1]];return r}function n(e,t,r,A,n){return A+(n-A)/(r-t)*(e-t)}var i=aI(r.getArray("Domain")),a=aI(r.getArray("Range"));if(!i||!a)throw new re("No domain or range");var o=i.length/2,s=a.length/2;i=A(i),a=A(a);var c=aI(r.getArray("Size")),g=r.get("BitsPerSample"),u=r.get("Order")||1;1!==u&&T("No support for cubic spline interpolation: "+u);var l=aI(r.getArray("Encode"));if(l)l=A(l);else{l=[];for(var h=0;h<o;++h)l.push([0,c[h]-1])}var I=aI(r.getArray("Decode"));I=I?A(I):a;var f=this.getSampleArray(c,s,g,t);return function(e,t,r,A){var g,u,h=1<<o,C=new Float64Array(h),B=new Uint32Array(h);for(u=0;u<h;u++)C[u]=1;var Q=s,E=1;for(g=0;g<o;++g){var d=i[g][0],y=i[g][1],p=n(Math.min(Math.max(e[t+g],d),y),d,y,l[g][0],l[g][1]),v=c[g],m=(p=Math.min(Math.max(p,0),v-1))<v-1?Math.floor(p):p-1,w=m+1-p,b=p-m,k=m*Q,D=k+Q;for(u=0;u<h;u++)u&E?(C[u]*=b,B[u]+=D):(C[u]*=w,B[u]+=k);Q*=v,E<<=1}for(u=0;u<s;++u){var S=0;for(g=0;g<h;g++)S+=f[B[g]+u]*C[g];S=n(S,0,1,I[u][0],I[u][1]),r[A+u]=Math.min(Math.max(S,a[u][0]),a[u][1])}}}},{key:"constructInterpolated",value:function(e){e.xref,e.isEvalSupported;for(var t=e.dict,r=aI(t.getArray("C0"))||[0],A=aI(t.getArray("C1"))||[1],n=t.get("N"),i=[],a=0,o=r.length;a<o;++a)i.push(A[a]-r[a]);var s=i.length;return function(e,t,A,a){for(var o=1===n?e[t]:Math.pow(e[t],n),c=0;c<s;++c)A[a+c]=r[c]+o*i[c]}}},{key:"constructStiched",value:function(e){var t=e.xref,r=e.isEvalSupported,A=e.dict,n=aI(A.getArray("Domain"));if(!n)throw new re("No domain");if(1!=n.length/2)throw new re("Bad domain for stiched function");var i,a=[],o=zh(A.get("Functions"));try{for(o.s();!(i=o.n()).done;){var s=i.value;a.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(s)}))}}catch(e){o.e(e)}finally{o.f()}var c=aI(A.getArray("Bounds")),g=aI(A.getArray("Encode")),u=new Float32Array(1);return function(e,t,r,A){var i,o=function(e,t,r){return e>r?e=r:e<t&&(e=t),e}(e[t],n[0],n[1]),s=c.length;for(i=0;i<s&&!(o<c[i]);++i);var l=n[0];i>0&&(l=c[i-1]);var h=n[1];i<c.length&&(h=c[i]);var I=g[2*i],f=g[2*i+1];u[0]=l===h?I:I+(o-l)*(f-I)/(h-l),a[i](u,0,r,A)}}},{key:"constructPostScript",value:function(e){e.xref;var t=e.isEvalSupported,r=e.fn,A=e.dict,n=aI(A.getArray("Domain")),i=aI(A.getArray("Range"));if(!n)throw new re("No domain.");if(!i)throw new re("No range.");var a=new Qh(r),o=new fh(a).parse();if(t&&se.isEvalSupported){var s=(new wI).compile(o,n,i);if(s)return new Function("src","srcOffset","dest","destOffset",s)}T("Unable to compile PS function");var c=i.length>>1,g=n.length>>1,u=new lI(o),l=Object.create(null),h=8192,I=new Float32Array(g);return function(e,t,r,A){var n,a,o="",s=I;for(n=0;n<g;n++)a=e[t+n],s[n]=a,o+=a+"_";var f=l[o];if(void 0===f){var C=new Float32Array(c),B=u.execute(s),Q=B.length-c;for(n=0;n<c;n++){a=B[Q+n];var E=i[2*n];(a<E||a>(E=i[2*n+1]))&&(a=E),C[n]=a}h>0&&(h--,l[o]=C),r.set(C,A)}else r.set(f,A)}}}])}();function sI(e){var t;if(e instanceof He)t=e;else{if(!(e instanceof ze))return!1;t=e.dict}return t.has("FunctionType")}var cI,gI,uI=function(){function e(t){tI(this,e),this.stack=t?Array.from(t):[]}return AI(e,[{key:"push",value:function(t){if(this.stack.length>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function(t){if(this.stack.length+t>=e.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,A=r.length-t,n=t-1;n>=0;n--,A++)r.push(r[A])}},{key:"index",value:function(e){this.push(this.stack[this.stack.length-e-1])}},{key:"roll",value:function(e,t){for(var r=this.stack,A=r.length-e,n=r.length-1,i=A+(t-Math.floor(t/e)*e),a=A,o=n;a<o;a++,o--){var s=r[a];r[a]=r[o],r[o]=s}for(var c=A,g=i-1;c<g;c++,g--){var u=r[c];r[c]=r[g],r[g]=u}for(var l=i,h=n;l<h;l++,h--){var I=r[l];r[l]=r[h],r[h]=I}}}])}();cI=uI,(gI=nI(gI="MAX_STACK_SIZE"))in cI?Object.defineProperty(cI,gI,{value:100,enumerable:!0,configurable:!0,writable:!0}):cI[gI]=100;var lI=function(){return AI((function e(t){tI(this,e),this.operators=t}),[{key:"execute",value:function(e){for(var t,r,A,n=new uI(e),i=0,a=this.operators,o=a.length;i<o;)if("number"!=typeof(t=a[i++]))switch(t){case"jz":A=n.pop(),(r=n.pop())||(i=A);break;case"j":i=r=n.pop();break;case"abs":r=n.pop(),n.push(Math.abs(r));break;case"add":A=n.pop(),r=n.pop(),n.push(r+A);break;case"and":A=n.pop(),"boolean"==typeof(r=n.pop())&&"boolean"==typeof A?n.push(r&&A):n.push(r&A);break;case"atan":A=n.pop(),r=n.pop(),(r=Math.atan2(r,A)/Math.PI*180)<0&&(r+=360),n.push(r);break;case"bitshift":A=n.pop(),(r=n.pop())>0?n.push(r<<A):n.push(r>>A);break;case"ceiling":r=n.pop(),n.push(Math.ceil(r));break;case"copy":r=n.pop(),n.copy(r);break;case"cos":r=n.pop(),n.push(Math.cos(r%360/180*Math.PI));break;case"cvi":r=0|n.pop(),n.push(r);break;case"cvr":break;case"div":A=n.pop(),r=n.pop(),n.push(r/A);break;case"dup":n.copy(1);break;case"eq":A=n.pop(),r=n.pop(),n.push(r===A);break;case"exch":n.roll(2,1);break;case"exp":A=n.pop(),r=n.pop(),n.push(Math.pow(r,A));break;case"false":n.push(!1);break;case"floor":r=n.pop(),n.push(Math.floor(r));break;case"ge":A=n.pop(),r=n.pop(),n.push(r>=A);break;case"gt":A=n.pop(),r=n.pop(),n.push(r>A);break;case"idiv":A=n.pop(),r=n.pop(),n.push(r/A|0);break;case"index":r=n.pop(),n.index(r);break;case"le":A=n.pop(),r=n.pop(),n.push(r<=A);break;case"ln":r=n.pop(),n.push(Math.log(r));break;case"log":r=n.pop(),n.push(Math.log10(r));break;case"lt":A=n.pop(),r=n.pop(),n.push(r<A);break;case"mod":A=n.pop(),r=n.pop(),n.push(r%A);break;case"mul":A=n.pop(),r=n.pop(),n.push(r*A);break;case"ne":A=n.pop(),r=n.pop(),n.push(r!==A);break;case"neg":r=n.pop(),n.push(-r);break;case"not":"boolean"==typeof(r=n.pop())?n.push(!r):n.push(~r);break;case"or":A=n.pop(),"boolean"==typeof(r=n.pop())&&"boolean"==typeof A?n.push(r||A):n.push(r|A);break;case"pop":n.pop();break;case"roll":A=n.pop(),r=n.pop(),n.roll(r,A);break;case"round":r=n.pop(),n.push(Math.round(r));break;case"sin":r=n.pop(),n.push(Math.sin(r%360/180*Math.PI));break;case"sqrt":r=n.pop(),n.push(Math.sqrt(r));break;case"sub":A=n.pop(),r=n.pop(),n.push(r-A);break;case"true":n.push(!0);break;case"truncate":r=(r=n.pop())<0?Math.ceil(r):Math.floor(r),n.push(r);break;case"xor":A=n.pop(),"boolean"==typeof(r=n.pop())&&"boolean"==typeof A?n.push(r!==A):n.push(r^A);break;default:throw new re("Unknown operator ".concat(t))}else n.push(t);return n.stack}}])}(),hI=function(){return AI((function e(t){tI(this,e),this.type=t}),[{key:"visit",value:function(e){j("abstract method")}}])}(),II=function(e){function t(e,r,A){var n;return tI(this,t),(n=Wh(this,t,["args"])).index=e,n.min=r,n.max=A,n}return Xh(t,hI),AI(t,[{key:"visit",value:function(e){e.visitArgument(this)}}])}(),fI=function(e){function t(e){var r;return tI(this,t),(r=Wh(this,t,["literal"])).number=e,r.min=e,r.max=e,r}return Xh(t,hI),AI(t,[{key:"visit",value:function(e){e.visitLiteral(this)}}])}(),CI=function(e){function t(e,r,A,n,i){var a;return tI(this,t),(a=Wh(this,t,["binary"])).op=e,a.arg1=r,a.arg2=A,a.min=n,a.max=i,a}return Xh(t,hI),AI(t,[{key:"visit",value:function(e){e.visitBinaryOperation(this)}}])}(),BI=function(e){function t(e,r){var A;return tI(this,t),(A=Wh(this,t,["max"])).arg=e,A.min=e.min,A.max=r,A}return Xh(t,hI),AI(t,[{key:"visit",value:function(e){e.visitMin(this)}}])}(),QI=function(e){function t(e,r,A){var n;return tI(this,t),(n=Wh(this,t,["var"])).index=e,n.min=r,n.max=A,n}return Xh(t,hI),AI(t,[{key:"visit",value:function(e){e.visitVariable(this)}}])}(),EI=function(e){function t(e,r){var A;return tI(this,t),(A=Wh(this,t,["definition"])).variable=e,A.arg=r,A}return Xh(t,hI),AI(t,[{key:"visit",value:function(e){e.visitVariableDefinition(this)}}])}(),dI=function(){return AI((function e(){tI(this,e),this.parts=[]}),[{key:"visitArgument",value:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}},{key:"visitVariable",value:function(e){this.parts.push("v",e.index)}},{key:"visitLiteral",value:function(e){this.parts.push(e.number)}},{key:"visitBinaryOperation",value:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}},{key:"visitVariableDefinition",value:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}},{key:"visitMin",value:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}},{key:"toString",value:function(){return this.parts.join("")}}])}();function yI(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new fI(e.number+t.number):new CI("+",e,t,e.min+t.min,e.max+t.max)}function pI(e,t){if("literal"===t.type){if(0===t.number)return new fI(0);if(1===t.number)return e;if("literal"===e.type)return new fI(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new fI(0);if(1===e.number)return t}var r=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),A=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new CI("*",e,t,r,A)}function vI(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new fI(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new CI("-",e,t,e.min-t.max,e.max-t.min)}function mI(e,t){return e.min>=t?new fI(t):e.max<=t?e:new BI(e,t)}var wI=function(){return AI((function e(){tI(this,e)}),[{key:"compile",value:function(e,t,r){for(var A,n,i,a,o,s,c,g,u=[],l=[],h=t.length>>1,I=r.length>>1,f=0,C=0;C<h;C++)u.push(new II(C,t[2*C],t[2*C+1]));for(var B=0,Q=e.length;B<Q;B++)if("number"!=typeof(g=e[B]))switch(g){case"add":if(u.length<2)return null;a=u.pop(),i=u.pop(),u.push(yI(i,a));break;case"cvr":if(u.length<1)return null;break;case"mul":if(u.length<2)return null;a=u.pop(),i=u.pop(),u.push(pI(i,a));break;case"sub":if(u.length<2)return null;a=u.pop(),i=u.pop(),u.push(vI(i,a));break;case"exch":if(u.length<2)return null;o=u.pop(),s=u.pop(),u.push(o,s);break;case"pop":if(u.length<1)return null;u.pop();break;case"index":if(u.length<1)return null;if("literal"!==(i=u.pop()).type)return null;if((A=i.number)<0||!Number.isInteger(A)||u.length<A)return null;if("literal"===(o=u[u.length-A-1]).type||"var"===o.type){u.push(o);break}c=new QI(f++,o.min,o.max),u[u.length-A-1]=c,u.push(c),l.push(new EI(c,o));break;case"dup":if(u.length<1)return null;if("number"==typeof e[B+1]&&"gt"===e[B+2]&&e[B+3]===B+7&&"jz"===e[B+4]&&"pop"===e[B+5]&&e[B+6]===e[B+1]){i=u.pop(),u.push(mI(i,e[B+1])),B+=6;break}if("literal"===(o=u.at(-1)).type||"var"===o.type){u.push(o);break}c=new QI(f++,o.min,o.max),u[u.length-1]=c,u.push(c),l.push(new EI(c,o));break;case"roll":if(u.length<2)return null;if(a=u.pop(),i=u.pop(),"literal"!==a.type||"literal"!==i.type)return null;if(n=a.number,(A=i.number)<=0||!Number.isInteger(A)||!Number.isInteger(n)||u.length<A)return null;if(0==(n=(n%A+A)%A))break;u.push.apply(u,jh(u.splice(u.length-A,A-n)));break;default:return null}else u.push(new fI(g));if(u.length!==I)return null;for(var E=[],d=0,y=l;d<y.length;d++){var p=y[d],v=new dI;p.visit(v),E.push(v.toString())}for(var m=0,w=u.length;m<w;m++){var b=u[m],k=new dI;b.visit(k);var D=r[2*m],S=r[2*m+1],F=[k.toString()];D>b.min&&(F.unshift("Math.max(",D,", "),F.push(")")),S<b.max&&(F.unshift("Math.min(",S,", "),F.push(")")),F.unshift("dest[destOffset + ",m,"] = "),F.push(";"),E.push(F.join(""))}return E.join("\\n")}}])}(),bI=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],kI=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function DI(e){return 0!=(1&e)}function SI(e){return 0==(1&e)}function FI(e,t,r){var A,n;for(A=t,n=e.length;A<n;++A)if(e[A]!==r)return A;return A}function xI(e,t,r,A){for(var n=t;n<r;++n)e[n]=A}function RI(e,t,r){for(var A=t,n=r-1;A<n;++A,--n){var i=e[A];e[A]=e[n],e[n]=i}}function GI(e,t){var r="ltr";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?r="ttb":t||(r="rtl"),{str:e,dir:r}}var NI=[],LI=[];function UI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=!0,n=e.length;if(0===n||r)return GI(e,A,r);NI.length=n,LI.length=n;var i,a,o=0;for(i=0;i<n;++i){NI[i]=e.charAt(i);var s=e.charCodeAt(i),c="L";s<=255?c=bI[s]:1424<=s&&s<=1524?c="R":1536<=s&&s<=1791?(c=kI[255&s])||q("Bidi: invalid Unicode character "+s.toString(16)):(1792<=s&&s<=2220||64336<=s&&s<=65023||65136<=s&&s<=65279)&&(c="AL"),"R"!==c&&"AL"!==c&&"AN"!==c||o++,LI[i]=c}if(0===o)return GI(e,A=!0);-1===t&&(o/n<.3&&n>4?(A=!0,t=0):(A=!1,t=1));var g=[];for(i=0;i<n;++i)g[i]=t;var u,l=DI(t)?"R":"L",h=l,I=h,f=h;for(i=0;i<n;++i)"NSM"===LI[i]?LI[i]=f:f=LI[i];for(f=h,i=0;i<n;++i)"EN"===(u=LI[i])?LI[i]="AL"===f?"AN":"EN":"R"!==u&&"L"!==u&&"AL"!==u||(f=u);for(i=0;i<n;++i)"AL"===(u=LI[i])&&(LI[i]="R");for(i=1;i<n-1;++i)"ES"===LI[i]&&"EN"===LI[i-1]&&"EN"===LI[i+1]&&(LI[i]="EN"),"CS"!==LI[i]||"EN"!==LI[i-1]&&"AN"!==LI[i-1]||LI[i+1]!==LI[i-1]||(LI[i]=LI[i-1]);for(i=0;i<n;++i)if("EN"===LI[i]){for(var C=i-1;C>=0&&"ET"===LI[C];--C)LI[C]="EN";for(var B=i+1;B<n&&"ET"===LI[B];++B)LI[B]="EN"}for(i=0;i<n;++i)"WS"!==(u=LI[i])&&"ES"!==u&&"ET"!==u&&"CS"!==u||(LI[i]="ON");for(f=h,i=0;i<n;++i)"EN"===(u=LI[i])?LI[i]="L"===f?"L":"EN":"R"!==u&&"L"!==u||(f=u);for(i=0;i<n;++i)if("ON"===LI[i]){var Q=FI(LI,i+1,"ON"),E=h;i>0&&(E=LI[i-1]);var d=I;Q+1<n&&(d=LI[Q+1]),"L"!==E&&(E="R"),"L"!==d&&(d="R"),E===d&&xI(LI,i,Q,E),i=Q-1}for(i=0;i<n;++i)"ON"===LI[i]&&(LI[i]=l);for(i=0;i<n;++i)u=LI[i],SI(g[i])?"R"===u?g[i]+=1:"AN"!==u&&"EN"!==u||(g[i]+=2):"L"!==u&&"AN"!==u&&"EN"!==u||(g[i]+=1);var y,p=-1,v=99;for(i=0,a=g.length;i<a;++i)p<(y=g[i])&&(p=y),v>y&&DI(y)&&(v=y);for(y=p;y>=v;--y){var m=-1;for(i=0,a=g.length;i<a;++i)g[i]<y?m>=0&&(RI(NI,m,i),m=-1):m<0&&(m=i);m>=0&&RI(NI,m,g.length)}for(i=0,a=NI.length;i<a;++i){var w=NI[i];"<"!==w&&">"!==w||(NI[i]="")}return GI(NI.join(""),A)}function MI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||HI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JI(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=HI(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function HI(e,t){if(e){if("string"==typeof e)return YI(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?YI(e,t):void 0}}function YI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var PI={style:"normal",weight:"normal"},OI={style:"normal",weight:"bold"},KI={style:"italic",weight:"normal"},TI={style:"italic",weight:"bold"},qI=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:PI,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:OI,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:KI,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:TI,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:PI,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:OI,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:KI,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:TI,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:PI,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:OI,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:KI,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:TI,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:PI,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:OI,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:KI,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:TI,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:PI,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:OI,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:KI,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:TI,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:PI}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),jI=new Map([["Arial-Black","ArialBlack"]]);function WI(e){var t=new Set(["thin","extralight","ultralight","demilight","semilight","light","book","regular","normal","medium","demibold","semibold","bold","extrabold","ultrabold","black","heavy","extrablack","ultrablack","roman","italic","oblique","ultracondensed","extracondensed","condensed","semicondensed","normal","semiexpanded","expanded","extraexpanded","ultraexpanded","bolditalic"]);return e.split(/[- ,+]+/g).filter((function(e){return!t.has(e.toLowerCase())})).join(" ")}function ZI(e,t,r){var A=e.alias,n=e.local,i=e.path,a=e.fallback,o=e.style,s=e.ultimate,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],g=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l={style:null,ultimate:null};if(n){var h,I=u?" ".concat(u):"",f=JI(n);try{for(f.s();!(h=f.n()).done;){var C=h.value;t.push("local(".concat(C).concat(I,")"))}}catch(e){f.e(e)}finally{f.f()}}if(A){var B=qI.get(A),Q=u||function(e){switch(e){case OI:return"Bold";case KI:return"Italic";case TI:return"Bold Italic";default:if("bold"===(null==e?void 0:e.weight))return"Bold";if("italic"===(null==e?void 0:e.style))return"Italic"}return""}(o);Object.assign(l,ZI(B,t,r,c&&!a,g&&!i,Q))}if(o&&(l.style=o),s&&(l.ultimate=s),c&&a){var E=ZI(qI.get(a),t,r,c,g&&!i,u).ultimate;l.ultimate||(l.ultimate=E)}return g&&i&&r&&t.push("url(".concat(r).concat(i,")")),l}function _I(e,t,r,A,n,i){if(A.startsWith("InvalidPDFjsFont_"))return null;"TrueType"!==i&&"Type1"!==i||!/^[A-Z]{6}\\+/.test(A)||(A=A.slice(7));var a=A=mc(A),o=e.get(a);if(o)return o;var s=qI.get(A);if(!s){var c,g=JI(jI);try{for(g.s();!(c=g.n()).done;){var u=MI(c.value,2),l=u[0],h=u[1];if(A.startsWith(l)){A="".concat(h).concat(A.substring(l.length)),s=qI.get(A);break}}}catch(e){g.e(e)}finally{g.f()}}var I=!1;s||(s=qI.get(n),I=!0);var f="".concat(t.getDocId(),"_s").concat(t.createFontId());if(!s){if(!Pt(A))return q("Cannot substitute the font because of its name: ".concat(A)),e.set(a,null),null;var C=/bold/gi.test(A),B=/oblique|italic/gi.test(A),Q=C&&B&&TI||C&&OI||B&&KI||PI;return o={css:\'"\'.concat(WI(A),\'",\').concat(f),guessFallback:!0,loadedName:f,baseFontName:A,src:"local(".concat(A,")"),style:Q},e.set(a,o),o}var E=[];I&&Pt(A)&&E.push("local(".concat(A,")"));var d=ZI(s,E,r),y=d.style,p=d.ultimate,v=null===p,m=v?"":",".concat(p);return o={css:\'"\'.concat(WI(A),\'",\').concat(f).concat(m),guessFallback:v,loadedName:f,baseFontName:A,src:E.join(","),style:y},e.set(a,o),o}function XI(){XI=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function VI(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return zI(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zI(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function zI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function $I(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function ef(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){$I(i,A,n,a,o,"next",e)}function o(e){$I(i,A,n,a,o,"throw",e)}a(void 0)}))}}function tf(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,rf(A.key),A)}}function rf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Af=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._imgData=t,this._isMask=r}return function(e,t,r){return t&&tf(e.prototype,t),r&&tf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"_createImage",value:(r=ef(XI().mark((function t(){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v;return XI().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._encodeBMP(),A=new Blob([r.buffer],{type:"image/bmp"}),n=createImageBitmap(A),i=e.MAX_AREA,a=e.MAX_DIM,o=this._imgData,s=o.width,c=o.height,g=Math.max(s/a,c/a,Math.sqrt(s*c/i)),u=Math.max(g,2),l=Math.round(10*(g+1.25))/10/u,h=Math.floor(Math.log2(l)),(I=new Array(h+2).fill(2))[0]=u,I.splice(-1,1,l/(1<<h)),f=s,C=c,t.next=17,n;case 17:B=t.sent,Q=VI(I);try{for(Q.s();!(E=Q.n()).done;)d=E.value,y=f,p=C,f=Math.floor(f/d)-1,C=Math.floor(C/d)-1,(v=new OffscreenCanvas(f,C)).getContext("2d").drawImage(B,0,0,y,p,0,0,f,C),B=v.transferToImageBitmap()}catch(e){Q.e(e)}finally{Q.f()}return o.data=null,o.bitmap=B,o.width=f,o.height=C,t.abrupt("return",o);case 25:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"_encodeBMP",value:function(){var e,t=this._imgData,r=t.width,A=t.height,n=t.kind,i=this._imgData.data,a=new Uint8Array(0),o=a,s=0;switch(n){case 1:e=1,a=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);var c=r+7>>3,g=c+3&-4;if(c!==g){for(var u=new Uint8Array(g*A),l=0,h=0,I=A*c;h<I;h+=c,l+=g)u.set(i.subarray(h,h+c),l);i=u}break;case 2:if(e=24,3&r){for(var f=3*r,C=f+3&-4,B=C-f,Q=new Uint8Array(C*A),E=0,d=0,y=A*f;d<y;d+=f){for(var p=i.subarray(d,d+f),v=0;v<f;v+=3)Q[E++]=p[v+2],Q[E++]=p[v+1],Q[E++]=p[v];E+=B}i=Q}else for(var m=0,w=i.length;m<w;m+=3){var b=i[m];i[m]=i[m+2],i[m+2]=b}break;case 3:e=32,s=3,o=new Uint8Array(68);var k=new DataView(o.buffer);se.isLittleEndian?(k.setUint32(0,255,!0),k.setUint32(4,65280,!0),k.setUint32(8,16711680,!0),k.setUint32(12,4278190080,!0)):(k.setUint32(0,4278190080,!0),k.setUint32(4,16711680,!0),k.setUint32(8,65280,!0),k.setUint32(12,255,!0));break;default:throw new Error("invalid format")}var D=0,S=40+o.length,F=14+S+a.length+i.length,x=new Uint8Array(F),R=new DataView(x.buffer);return R.setUint16(D,19778,!0),D+=2,R.setUint32(D,F,!0),D+=4,R.setUint32(D,0,!0),D+=4,R.setUint32(D,14+S+a.length,!0),D+=4,R.setUint32(D,S,!0),D+=4,R.setInt32(D,r,!0),D+=4,R.setInt32(D,-A,!0),D+=4,R.setUint16(D,1,!0),D+=2,R.setUint16(D,e,!0),D+=2,R.setUint32(D,s,!0),D+=4,R.setUint32(D,0,!0),D+=4,R.setInt32(D,0,!0),D+=4,R.setInt32(D,0,!0),D+=4,R.setUint32(D,a.length/4,!0),D+=4,R.setUint32(D,0,!0),D+=4,x.set(o,D),D+=o.length,x.set(a,D),D+=a.length,x.set(i,D),x}}],[{key:"needsToBeResized",value:function(e,t){if(e<=this._goodSquareLength&&t<=this._goodSquareLength)return!1;var r=this.MAX_DIM;if(e>r||t>r)return!0;var A=e*t;return this._hasMaxArea?A>this.MAX_AREA:!(A<Math.pow(this._goodSquareLength,2))&&(this._areGoodDims(e,t)?(this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(e*t))),!1):(this._goodSquareLength=this._guessMax(this._goodSquareLength,r,128,0),A>(this.MAX_AREA=Math.pow(this._goodSquareLength,2))))}},{key:"MAX_DIM",get:function(){return _(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}},{key:"MAX_AREA",get:function(){return this._hasMaxArea=!0,_(this,"MAX_AREA",Math.pow(this._guessMax(e._goodSquareLength,this.MAX_DIM,128,0),2))},set:function(e){e>=0&&(this._hasMaxArea=!0,_(this,"MAX_AREA",e))}},{key:"setMaxArea",value:function(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}},{key:"_areGoodDims",value:function(e,t){try{var r=new OffscreenCanvas(e,t),A=r.getContext("2d");A.fillRect(0,0,1,1);var n=A.getImageData(0,0,1,1).data[3];return r.width=r.height=1,0!==n}catch(e){return!1}}},{key:"_guessMax",value:function(e,t,r,A){for(;e+r+1<t;){var n=Math.floor((e+t)/2),i=A||n;this._areGoodDims(n,i)?e=n:t=n}return e}},{key:"createImage",value:(t=ef(XI().mark((function t(r){var A,n=arguments;return XI().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=n.length>1&&void 0!==n[1]&&n[1],t.abrupt("return",new e(r,A)._createImage());case 2:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]);var t,r}();function nf(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,af(A.key),A)}}function af(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}Af._goodSquareLength=2048;var of,sf=3285377520,cf=4294901760,gf=65535,uf=function(){return function(e,t,r){return t&&nf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.h1=t?4294967295&t:sf,this.h2=t?4294967295&t:sf}),[{key:"update",value:function(e){var t,r;if("string"==typeof e){t=new Uint8Array(2*e.length),r=0;for(var A=0,n=e.length;A<n;A++){var i=e.charCodeAt(A);i<=255?t[r++]=i:(t[r++]=i>>>8,t[r++]=255&i)}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");r=(t=e.slice()).byteLength}for(var a=r>>2,o=r-4*a,s=new Uint32Array(t.buffer,0,a),c=0,g=0,u=this.h1,l=this.h2,h=3432918353,I=461845907,f=11601,C=13715,B=0;B<a;B++)1&B?u=5*(u=(u^=c=(c=(c=(c=s[B])*h&cf|c*f&gf)<<15|c>>>17)*I&cf|c*C&gf)<<13|u>>>19)+3864292196:l=5*(l=(l^=g=(g=(g=(g=s[B])*h&cf|g*f&gf)<<15|g>>>17)*I&cf|g*C&gf)<<13|l>>>19)+3864292196;switch(c=0,o){case 3:c^=t[4*a+2]<<16;case 2:c^=t[4*a+1]<<8;case 1:c=(c=(c=(c^=t[4*a])*h&cf|c*f&gf)<<15|c>>>17)*I&cf|c*C&gf,1&a?u^=c:l^=c}this.h1=u,this.h2=l}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&cf|36045*e&gf,e=444984403*(e^=(t=4283543511*t&cf|(2950163797*(t<<16|e>>>16)&cf)>>>16)>>>1)&cf|60499*e&gf,((e^=(t=3301882366*t&cf|(3120437893*(t<<16|e>>>16)&cf)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}])}();function lf(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return hf(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hf(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function hf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function If(e,t,r){return(t=pf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ff(e,t,r){return t=Bf(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Cf()?Reflect.construct(t,r||[],Bf(e).constructor):t.apply(e,r))}function Cf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cf=function(){return!!e})()}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bf(e)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qf(e,t)}function Ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function df(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,pf(A.key),A)}}function yf(e,t,r){return t&&df(e.prototype,t),r&&df(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function vf(e,t,r,A,n){for(var i=e,a=0,o=t.length-1;a<o;a++){var s,c=t[a];i=(s=i)[c]||(s[c]=[])}i[t.at(-1)]={checkFn:r,iterateFn:A,processFn:n}}var mf=[];vf(mf,[x,G,86,R],null,(function(e,t){var r=e.fnArray,A=(t-(e.iCurr-3))%4;switch(A){case 0:return r[t]===x;case 1:return r[t]===G;case 2:return 86===r[t];case 3:return r[t]===R}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(A))}),(function(e,t){var r=e.fnArray,A=e.argsArray,n=e.iCurr,i=n-3,a=n-2,o=n-1,s=Math.min(Math.floor((t-i)/4),200);if(s<10)return t-(t-i)%4;for(var c=0,g=[],u=0,l=1,h=1,I=0;I<s;I++){var f=A[a+(I<<2)],C=A[o+(I<<2)][0];l+C.width>1e3&&(c=Math.max(c,l),h+=u+2,l=0,u=0),g.push({transform:f,x:l,y:h,w:C.width,h:C.height}),l+=C.width+2,u=Math.max(u,C.height)}for(var B=Math.max(c,l)+1,Q=h+u+1,E=new Uint8Array(B*Q*4),d=B<<2,y=0;y<s;y++){var p=A[o+(y<<2)][0].data,v=g[y].w<<2,m=0,w=g[y].x+g[y].y*B<<2;E.set(p.subarray(0,v),w-d);for(var b=0,k=g[y].h;b<k;b++)E.set(p.subarray(m,m+v),w),m+=v,w+=d;for(E.set(p.subarray(m-v,m),w);w>=0;)p[w-4]=p[w],p[w-3]=p[w+1],p[w-2]=p[w+2],p[w-1]=p[w+3],p[w+v]=p[w+v-4],p[w+v+1]=p[w+v-3],p[w+v+2]=p[w+v-2],p[w+v+3]=p[w+v-1],w-=d}var D={width:B,height:Q};if(e.isOffscreenCanvasSupported){var S=new OffscreenCanvas(B,Q);S.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(E.buffer),B,Q),0,0),D.bitmap=S.transferToImageBitmap(),D.data=null}else D.kind=3,D.data=E;return r.splice(i,4*s,87),A.splice(i,4*s,[D,g]),i+1})),vf(mf,[x,G,Y,R],null,(function(e,t){var r=e.fnArray,A=(t-(e.iCurr-3))%4;switch(A){case 0:return r[t]===x;case 1:return r[t]===G;case 2:return r[t]===Y;case 3:return r[t]===R}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(A))}),(function(e,t){var r=e.fnArray,A=e.argsArray,n=e.iCurr,i=n-3,a=n-2,o=n-1,s=Math.floor((t-i)/4);if(s<10)return t-(t-i)%4;var c,g,u=!1,l=A[o][0],h=A[a][0],I=A[a][1],f=A[a][2],C=A[a][3];if(I===f){u=!0,c=a+4;for(var B=o+4,Q=1;Q<s;Q++,c+=4,B+=4)if(g=A[c],A[B][0]!==l||g[0]!==h||g[1]!==I||g[2]!==f||g[3]!==C){Q<10?u=!1:s=Q;break}}if(u){s=Math.min(s,1e3);var E=new Float32Array(2*s);c=a;for(var d=0;d<s;d++,c+=4)g=A[c],E[d<<1]=g[4],E[1+(d<<1)]=g[5];r.splice(i,4*s,89),A.splice(i,4*s,[l,h,I,f,C,E])}else{s=Math.min(s,100);for(var y=[],p=0;p<s;p++){g=A[a+(p<<2)];var v=A[o+(p<<2)][0];y.push({data:v.data,width:v.width,height:v.height,interpolate:v.interpolate,count:v.count,transform:g})}r.splice(i,4*s,84),A.splice(i,4*s,[y])}return i+1})),vf(mf,[x,G,P,R],(function(e){var t=e.argsArray,r=e.iCurr-2;return 0===t[r][1]&&0===t[r][2]}),(function(e,t){var r=e.fnArray,A=e.argsArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===x;case 1:if(r[t]!==G)return!1;var i=e.iCurr-2,a=A[i][0],o=A[i][3];return A[t][0]===a&&0===A[t][1]&&0===A[t][2]&&A[t][3]===o;case 2:if(r[t]!==P)return!1;var s=A[e.iCurr-1][0];return A[t][0]===s;case 3:return r[t]===R}throw new Error("iterateImageGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,A=e.argsArray,n=e.iCurr,i=n-3,a=n-2,o=A[n-1][0],s=A[a][0],c=A[a][3],g=Math.min(Math.floor((t-i)/4),1e3);if(g<3)return t-(t-i)%4;for(var u=new Float32Array(2*g),l=a,h=0;h<g;h++,l+=4){var I=A[l];u[h<<1]=I[4],u[1+(h<<1)]=I[5]}var f=[o,s,c,u];return r.splice(i,4*g,88),A.splice(i,4*g,f),i+1})),vf(mf,[31,N,42,L,32],null,(function(e,t){var r=e.fnArray,A=e.argsArray,n=(t-(e.iCurr-4))%5;switch(n){case 0:return 31===r[t];case 1:return r[t]===N;case 2:return 42===r[t];case 3:if(r[t]!==L)return!1;var i=e.iCurr-3,a=A[i][0],o=A[i][1];return A[t][0]===a&&A[t][1]===o;case 4:return 32===r[t]}throw new Error("iterateShowTextGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,A=e.argsArray,n=e.iCurr,i=n-4,a=n-3,o=n-2,s=n-1,c=n,g=A[a][0],u=A[a][1],l=Math.min(Math.floor((t-i)/5),1e3);if(l<3)return t-(t-i)%5;var h=i;i>=4&&r[i-4]===r[a]&&r[i-3]===r[o]&&r[i-2]===r[s]&&r[i-1]===r[c]&&A[i-4][0]===g&&A[i-4][1]===u&&(l++,h-=5);for(var I=h+4,f=1;f<l;f++)r.splice(I,3),A.splice(I,3),I+=2;return I+1}));var wf=function(){return yf((function e(t){Ef(this,e),this.queue=t}),[{key:"_optimize",value:function(){}},{key:"push",value:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}},{key:"flush",value:function(){}},{key:"reset",value:function(){}}])}(),bf=function(e){function t(e){var r;return Ef(this,t),(r=ff(this,t,[e])).state=null,r.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:!1},r.match=null,r.lastProcessed=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qf(e,t)}(t,wf),yf(t,[{key:"isOffscreenCanvasSupported",set:function(e){this.context.isOffscreenCanvasSupported=e}},{key:"_optimize",value:function(){var e=this.queue.fnArray,t=this.lastProcessed,r=e.length,A=this.state,n=this.match;if(A||n||t+1!==r||mf[e[t]]){for(var i=this.context;t<r;){if(n){if((0,n.iterateFn)(i,t)){t++;continue}if(t=(0,n.processFn)(i,t+1),n=null,A=null,t>=(r=e.length))break}(A=(A||mf)[e[t]])&&!Array.isArray(A)?(i.iCurr=t,t++,!A.checkFn||(0,A.checkFn)(i)?(n=A,A=null):A=null):t++}this.state=A,this.match=n,this.lastProcessed=t}else this.lastProcessed=r}},{key:"flush",value:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}},{key:"reset",value:function(){this.state=null,this.match=null,this.lastProcessed=0}}])}(),kf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;Ef(this,e),this._streamSink=r,this.fnArray=[],this.argsArray=[],this.optimizer=!r||256&t?new wf(this):new bf(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=r?null:Promise.resolve()}return yf(e,[{key:"isOffscreenCanvasSupported",set:function(e){this.optimizer.isOffscreenCanvasSupported=e}},{key:"length",get:function(){return this.argsArray.length}},{key:"ready",get:function(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function(){return this._totalLength+this.length}},{key:"addOp",value:function(t,r){this.optimizer.push(t,r),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===R||32===t))&&this.flush()}},{key:"addImageOps",value:function(e,t,r){void 0!==r&&this.addOp(J,["OC",r]),this.addOp(e,t),void 0!==r&&this.addOp(H,[])}},{key:"addDependency",value:function(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(1,[e]))}},{key:"addDependencies",value:function(e){var t,r=lf(e);try{for(r.s();!(t=r.n()).done;){var A=t.value;this.addDependency(A)}}catch(e){r.e(e)}finally{r.f()}}},{key:"addOpList",value:function(t){if(t instanceof e){var r,A=lf(t.dependencies);try{for(A.s();!(r=A.n()).done;){var n=r.value;this.dependencies.add(n)}}catch(e){A.e(e)}finally{A.f()}for(var i=0,a=t.length;i<a;i++)this.addOp(t.fnArray[i],t.argsArray[i])}else q(\'addOpList - ignoring invalid "opList" parameter.\')}},{key:"getIR",value:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}},{key:"_transfers",get:function(){for(var e,t=[],r=this.fnArray,A=this.argsArray,n=this.length,i=0;i<n;i++)switch(r[i]){case 86:case 87:case Y:var a=A[i][0];!a.cached&&(null===(e=a.data)||void 0===e?void 0:e.buffer)instanceof ArrayBuffer&&t.push(a.data.buffer)}return t}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var r=this.length;this._totalLength+=r,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:r},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}])}();function Df(){Df=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Sf(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Ff(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Sf(i,A,n,a,o,"next",e)}function o(e){Sf(i,A,n,a,o,"throw",e)}a(void 0)}))}}function xf(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Rf(A.key),A)}}function Rf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Gf(e,t,r,A){return(e=t+e*r)<0?e=0:e>A&&(e=A),e}function Nf(e,t,r,A,n,i){var a,o=n*i;a=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var s,c,g,u,l=r/n,h=A/i,I=0,f=new Uint16Array(n),C=r;for(s=0;s<n;s++)f[s]=Math.floor(s*l);for(s=0;s<i;s++)for(g=Math.floor(s*h)*C,c=0;c<n;c++)u=g+f[c],a[I++]=e[u];return a}of=kf,If(kf,"CHUNK_SIZE",1e3),If(kf,"CHUNK_SIZE_ABOUT",of.CHUNK_SIZE-5);var Lf=function(){function e(t){var r=t.xref,A=t.res,n=t.image,i=t.isInline,a=void 0!==i&&i,o=t.smask,s=void 0===o?null:o,c=t.mask,g=void 0===c?null:c,u=t.isMask,l=void 0!==u&&u,h=t.pdfFunctionFactory,I=t.localColorSpaceCache;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=n;var f,C=n.dict,B=C.get("F","Filter");if(B instanceof Ue)f=B.name;else if(Array.isArray(B)){var Q=r.fetchIfRef(B[0]);Q instanceof Ue&&(f=Q.name)}switch(f){case"JPXDecode":var E=Va.parseImageProperties(n.stream);n.width=E.width,n.height=E.height,n.numComps=E.componentsCount,n.bitsPerComponent=E.bitsPerComponent,n.stream.reset(),this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:C.has("SMaskInData")};break;case"JBIG2Decode":n.bitsPerComponent=1,n.numComps=1}var d=C.get("W","Width"),y=C.get("H","Height");if(Number.isInteger(n.width)&&n.width>0&&Number.isInteger(n.height)&&n.height>0&&(n.width!==d||n.height!==y)&&(q("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),d=n.width,y=n.height),d<1||y<1)throw new re("Invalid image width: ".concat(d," or height: ").concat(y));this.width=d,this.height=y,this.interpolate=C.get("I","Interpolate"),this.imageMask=C.get("IM","ImageMask")||!1,this.matte=C.get("Matte")||!1;var p=n.bitsPerComponent;if(!p&&!(p=C.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new re("Bits per component missing in image: ".concat(this.imageMask));p=1}if(this.bpc=p,!this.imageMask){var v,m=C.getRaw("CS")||C.getRaw("ColorSpace"),w=!!m;if(w)null!==(v=this.jpxDecoderOptions)&&void 0!==v&&v.smaskInData&&(m=Ue.get("DeviceRGBA"));else if(this.jpxDecoderOptions)m=Ue.get("DeviceRGBA");else switch(n.numComps){case 1:m=Ue.get("DeviceGray");break;case 3:m=Ue.get("DeviceRGB");break;case 4:m=Ue.get("DeviceCMYK");break;default:throw new Error("Images with ".concat(n.numComps," color components not supported."))}this.colorSpace=Ur.parse({cs:m,xref:r,resources:a?A:null,pdfFunctionFactory:h,localColorSpaceCache:I}),this.numComps=this.colorSpace.numComps,this.jpxDecoderOptions&&(this.jpxDecoderOptions.numComponents=w?this.numComp:0,this.jpxDecoderOptions.isIndexedColormap="Indexed"===this.colorSpace.name)}if(this.decode=C.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,p)||l&&!Ur.isDefaultDecode(this.decode,1))){var b;this.needsDecode=!0;var k=(1<<p)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var D="Indexed"===(null===(b=this.colorSpace)||void 0===b?void 0:b.name),S=0,F=0;S<this.decode.length;S+=2,++F){var x=this.decode[S],R=this.decode[S+1];this.decodeCoefficients[F]=D?(R-x)/k:R-x,this.decodeAddends[F]=D?x:k*x}}s?this.smask=new e({xref:r,res:A,image:s,isInline:a,pdfFunctionFactory:h,localColorSpaceCache:I}):g&&(g instanceof ze?g.dict.get("IM","ImageMask")?this.mask=new e({xref:r,res:A,image:g,isInline:a,isMask:!0,pdfFunctionFactory:h,localColorSpaceCache:I}):q("Ignoring /Mask in image without /ImageMask."):this.mask=g)}return function(e,t,r){return t&&xf(e.prototype,t),r&&xf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"drawWidth",get:function(){var e,t;return Math.max(this.width,(null===(e=this.smask)||void 0===e?void 0:e.width)||0,(null===(t=this.mask)||void 0===t?void 0:t.width)||0)}},{key:"drawHeight",get:function(){var e,t;return Math.max(this.height,(null===(e=this.smask)||void 0===e?void 0:e.height)||0,(null===(t=this.mask)||void 0===t?void 0:t.height)||0)}},{key:"decodeBuffer",value:function(e){var t,r,A=this.bpc,n=this.numComps,i=this.decodeAddends,a=this.decodeCoefficients,o=(1<<A)-1;if(1!==A){var s=0;for(t=0,r=this.width*this.height;t<r;t++)for(var c=0;c<n;c++)e[s]=Gf(e[s],i[c],a[c],o),s++}else for(t=0,r=e.length;t<r;t++)e[t]=+!e[t]}},{key:"getComponents",value:function(e){var t=this.bpc;if(8===t)return e;var r,A=this.width,n=this.height,i=this.numComps,a=A*n*i,o=0;r=t<=8?new Uint8Array(a):t<=16?new Uint16Array(a):new Uint32Array(a);var s,c,g=A*i,u=(1<<t)-1,l=0;if(1===t)for(var h,I,f,C=0;C<n;C++){for(I=l+(-8&g),f=l+g;l<I;)c=e[o++],r[l]=c>>7&1,r[l+1]=c>>6&1,r[l+2]=c>>5&1,r[l+3]=c>>4&1,r[l+4]=c>>3&1,r[l+5]=c>>2&1,r[l+6]=c>>1&1,r[l+7]=1&c,l+=8;if(l<f)for(c=e[o++],h=128;l<f;)r[l++]=+!!(c&h),h>>=1}else{var B=0;for(c=0,l=0,s=a;l<s;++l){for(l%g==0&&(c=0,B=0);B<t;)c=c<<8|e[o++],B+=8;var Q=B-t,E=c>>Q;E<0?E=0:E>u&&(E=u),r[l]=E,c&=(1<<Q)-1,B=Q}}return r}},{key:"fillOpacity",value:(a=Ff(Df().mark((function t(r,A,n,i,a){var o,s,c,g,u,l,h,I,f,C,B,Q,E;return Df().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.smask,s=this.mask,!o){t.next=11;break}return g=o.width,u=o.height,c=new Uint8ClampedArray(g*u),t.next=8,o.fillGrayBuffer(c);case 8:g===A&&u===n||(c=Nf(c,o.bpc,g,u,A,n)),t.next=47;break;case 11:if(!s){t.next=47;break}if(!(s instanceof e)){t.next=23;break}return g=s.width,u=s.height,c=new Uint8ClampedArray(g*u),s.numComps=1,t.next=19,s.fillGrayBuffer(c);case 19:for(l=0,h=g*u;l<h;++l)c[l]=255-c[l];g===A&&u===n||(c=Nf(c,s.bpc,g,u,A,n)),t.next=47;break;case 23:if(!Array.isArray(s)){t.next=46;break}c=new Uint8ClampedArray(A*n),f=this.numComps,l=0,h=A*n;case 27:if(!(l<h)){t.next=44;break}C=0,B=l*f,I=0;case 31:if(!(I<f)){t.next=40;break}if(!((Q=a[B+I])<s[E=2*I]||Q>s[E+1])){t.next=37;break}return C=255,t.abrupt("break",40);case 37:++I,t.next=31;break;case 40:c[l]=C;case 41:++l,t.next=27;break;case 44:t.next=47;break;case 46:throw new re("Unknown mask format.");case 47:if(c)for(l=0,I=3,h=A*i;l<h;++l,I+=4)r[I]=c[l];else for(l=0,I=3,h=A*i;l<h;++l,I+=4)r[I]=255;case 48:case"end":return t.stop()}}),t,this)}))),function(e,t,r,A,n){return a.apply(this,arguments)})},{key:"undoPreblend",value:function(e,t,r){var A,n=null===(A=this.smask)||void 0===A?void 0:A.matte;if(n)for(var i=this.colorSpace.getRgb(n,0),a=i[0],o=i[1],s=i[2],c=t*r*4,g=0;g<c;g+=4){var u=e[g+3];if(0!==u){var l=255/u;e[g]=(e[g]-a)*l+a,e[g+1]=(e[g+1]-o)*l+o,e[g+2]=(e[g+2]-s)*l+s}else e[g]=255,e[g+1]=255,e[g+2]=255}}},{key:"createImageData",value:(i=Ff(Df().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x=arguments;return Df().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=x.length>0&&void 0!==x[0]&&x[0],r=x.length>1&&void 0!==x[1]&&x[1],A=this.drawWidth,n=this.drawHeight,i={width:A,height:n,interpolate:this.interpolate,kind:0,data:null},a=this.numComps,o=this.width,s=this.height,c=this.bpc,g=o*a*c+7>>3,u=r&&Af.needsToBeResized(A,n),"DeviceRGBA"!==this.colorSpace.name){e.next=21;break}return i.kind=3,e.next=15,this.getImageBytes(s*o*4,{});case 15:if(l=i.data=e.sent,!r){e.next=20;break}if(u){e.next=19;break}return e.abrupt("return",this.createBitmap(3,A,n,l));case 19:return e.abrupt("return",Af.createImage(i,!1));case 20:return e.abrupt("return",i);case 21:if(t){e.next=68;break}if("DeviceGray"===this.colorSpace.name&&1===c?h=1:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(h=2),!h||this.smask||this.mask||A!==o||n!==s){e.next=35;break}return e.next=26,this.getImageBytes(s*g,{});case 26:if(I=e.sent,!r){e.next=31;break}if(!u){e.next=30;break}return e.abrupt("return",Af.createImage({data:I,kind:h,width:A,height:n,interpolate:this.interpolate},this.needsDecode));case 30:return e.abrupt("return",this.createBitmap(h,o,s,I));case 31:if(i.kind=h,i.data=I,this.needsDecode)for(W(1===h,"PDFImage.createImageData: The image must be grayscale."),f=i.data,C=0,B=f.length;C<B;C++)f[C]^=255;return e.abrupt("return",i);case 35:if(!(this.image instanceof Ja)||this.smask||this.mask||this.needsDecode){e.next=68;break}if(Q=s*g,!r||u){e.next=57;break}E=!1,e.t0=this.colorSpace.name,e.next="DeviceGray"===e.t0?42:"DeviceRGB"===e.t0?45:"DeviceCMYK"===e.t0?48:50;break;case 42:return Q*=4,E=!0,e.abrupt("break",50);case 45:return Q=Q/3*4,E=!0,e.abrupt("break",50);case 48:return E=!0,e.abrupt("break",50);case 50:if(!E){e.next=55;break}return e.next=53,this.getImageBytes(Q,{drawWidth:A,drawHeight:n,forceRGBA:!0});case 53:return d=e.sent,e.abrupt("return",this.createBitmap(3,A,n,d));case 55:e.next=68;break;case 57:e.t1=this.colorSpace.name,e.next="DeviceGray"===e.t1?60:"DeviceRGB"===e.t1||"DeviceCMYK"===e.t1?61:68;break;case 60:Q*=3;case 61:return i.kind=2,e.next=64,this.getImageBytes(Q,{drawWidth:A,drawHeight:n,forceRGB:!0});case 64:if(i.data=e.sent,!u){e.next=67;break}return e.abrupt("return",Af.createImage(i));case 67:return e.abrupt("return",i);case 68:return e.next=70,this.getImageBytes(s*g,{internal:!0});case 70:if(y=e.sent,p=0|y.length/g*n/s,v=this.getComponents(y),r&&!u&&(b=new OffscreenCanvas(A,n),k=b.getContext("2d"),D=k.createImageData(A,n),S=D.data),i.kind=3,t||this.smask||this.mask){e.next=80;break}!r||u?(i.kind=2,S=new Uint8ClampedArray(A*n*3),m=0):(new Uint32Array(S.buffer).fill(se.isLittleEndian?4278190080:255),m=1),w=!1,e.next=85;break;case 80:return r&&!u||(S=new Uint8ClampedArray(A*n*4)),m=1,w=!0,e.next=85,this.fillOpacity(S,A,n,p,v);case 85:if(this.needsDecode&&this.decodeBuffer(v),this.colorSpace.fillRgb(S,o,s,A,n,p,c,v,m),w&&this.undoPreblend(S,A,p),!r||u){e.next=92;break}return k.putImageData(D,0,0),F=b.transferToImageBitmap(),e.abrupt("return",{data:null,width:A,height:n,bitmap:F,interpolate:this.interpolate});case 92:if(i.data=S,!u){e.next=95;break}return e.abrupt("return",Af.createImage(i));case 95:return e.abrupt("return",i);case 96:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fillGrayBuffer",value:(n=Ff(Df().mark((function e(t){var r,A,n,i,a,o,s,c,g,u;return Df().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1===(r=this.numComps)){e.next=3;break}throw new re("Reading gray scale from a color image: ".concat(r));case 3:return A=this.width,n=this.height,i=this.bpc,a=A*r*i+7>>3,e.next=9,this.getImageBytes(n*a,{internal:!0});case 9:if(o=e.sent,s=this.getComponents(o),1!==i){e.next=15;break}if(g=A*n,this.needsDecode)for(c=0;c<g;++c)t[c]=s[c]-1&255;else for(c=0;c<g;++c)t[c]=255&-s[c];return e.abrupt("return");case 15:for(this.needsDecode&&this.decodeBuffer(s),g=A*n,u=255/((1<<i)-1),c=0;c<g;++c)t[c]=u*s[c];case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"createBitmap",value:function(e,t,r,A){var n,i=new OffscreenCanvas(t,r),a=i.getContext("2d");return 3===e?n=new ImageData(A,t,r):(n=a.createImageData(t,r),function(e){switch(e.kind){case 1:return $i(e);case 2:return function(e){var t=e.src,r=e.srcPos,A=void 0===r?0:r,n=e.dest,i=e.destPos,a=void 0===i?0:i,o=(e.width,e.height,0),s=t.length>>2,c=new Uint32Array(t.buffer,A,s);if(se.isLittleEndian){for(;o<s-2;o+=3,a+=4){var g=c[o],u=c[o+1],l=c[o+2];n[a]=4278190080|g,n[a+1]=g>>>24|u<<8|4278190080,n[a+2]=u>>>16|l<<16|4278190080,n[a+3]=l>>>8|4278190080}for(var h=4*o,I=t.length;h<I;h+=3)n[a++]=t[h]|t[h+1]<<8|t[h+2]<<16|4278190080}else{for(;o<s-2;o+=3,a+=4){var f=c[o],C=c[o+1],B=c[o+2];n[a]=255|f,n[a+1]=f<<24|C>>>8|255,n[a+2]=C<<16|B>>>16|255,n[a+3]=B<<8|255}for(var Q=4*o,E=t.length;Q<E;Q+=3)n[a++]=t[Q]<<24|t[Q+1]<<16|t[Q+2]<<8|255}return{srcPos:A,destPos:a}}(e)}}({kind:e,src:A,dest:new Uint32Array(n.data.buffer),width:t,height:r,inverseDecode:this.needsDecode})),a.putImageData(n,0,0),{data:null,width:t,height:r,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}},{key:"getImageBytes",value:(A=Ff(Df().mark((function e(t,r){var A,n,i,a,o,s,c,g,u;return Df().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A=r.drawWidth,n=r.drawHeight,i=r.forceRGBA,a=void 0!==i&&i,o=r.forceRGB,s=void 0!==o&&o,c=r.internal,g=void 0!==c&&c,this.image.reset(),this.image.drawWidth=A||this.width,this.image.drawHeight=n||this.height,this.image.forceRGBA=!!a,this.image.forceRGB=!!s,e.next=8,this.image.getImageData(t,this.jpxDecoderOptions);case 8:if(u=e.sent,!(g||this.image instanceof XA)){e.next=11;break}return e.abrupt("return",u);case 11:return W(u instanceof Uint8Array,\'PDFImage.getImageBytes: Unsupported "imageBytes" type.\'),e.abrupt("return",new Uint8Array(u));case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})}],[{key:"buildImage",value:(r=Ff(Df().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I;return Df().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=r.xref,n=r.res,i=r.image,a=r.isInline,o=void 0!==a&&a,s=r.pdfFunctionFactory,c=r.localColorSpaceCache,g=i,u=null,l=null,h=i.dict.get("SMask"),I=i.dict.get("Mask"),h?h instanceof ze?u=h:q("Unsupported /SMask format."):I&&(I instanceof ze||Array.isArray(I)?l=I:q("Unsupported /Mask format.")),t.abrupt("return",new e({xref:A,res:n,image:g,isInline:o,smask:u,mask:l,pdfFunctionFactory:s,localColorSpaceCache:c}));case 8:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)})},{key:"createRawMask",value:function(e){var t,r,A=e.imgArray,n=e.width,i=e.height,a=e.imageIsFromDecodeStream,o=e.inverseDecode,s=e.interpolate,c=(n+7>>3)*i,g=A.byteLength;if(!a||o&&c!==g?o?((t=new Uint8Array(c)).set(A),t.fill(255,g)):t=new Uint8Array(A):t=A,o)for(r=0;r<g;r++)t[r]^=255;return{data:t,width:n,height:i,interpolate:s}}},{key:"createMask",value:(t=Ff(Df().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f;return Df().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.imgArray,A=t.width,n=t.height,i=t.imageIsFromDecodeStream,a=t.inverseDecode,o=t.interpolate,s=t.isOffscreenCanvasSupported,c=void 0!==s&&s,!(g=1===A&&1===n&&a===(0===r.length||!!(128&r[0])))){e.next=4;break}return e.abrupt("return",{isSingleOpaquePixel:g});case 4:if(!c){e.next=16;break}if(!Af.needsToBeResized(A,n)){e.next=9;break}return u=new Uint8ClampedArray(A*n*4),$i({src:r,dest:u,width:A,height:n,nonBlackColor:0,inverseDecode:a}),e.abrupt("return",Af.createImage({kind:3,data:u,width:A,height:n,interpolate:o}));case 9:return l=new OffscreenCanvas(A,n),h=l.getContext("2d"),I=h.createImageData(A,n),$i({src:r,dest:I.data,width:A,height:n,nonBlackColor:0,inverseDecode:a}),h.putImageData(I,0,0),f=l.transferToImageBitmap(),e.abrupt("return",{data:null,width:A,height:n,interpolate:o,bitmap:f});case 16:return e.abrupt("return",this.createRawMask({imgArray:r,width:A,height:n,inverseDecode:a,imageIsFromDecodeStream:i,interpolate:o}));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]);var t,r,A,n,i,a}();function Uf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Wf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mf(e){return function(e){if(Array.isArray(e))return Zf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jf(){Jf=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Hf(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function Yf(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){Hf(i,A,n,a,o,"next",e)}function o(e){Hf(i,A,n,a,o,"throw",e)}a(void 0)}))}}function Pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Of(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,qf(A.key),A)}}function Kf(e,t,r){return t&&Of(e.prototype,t),r&&Of(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tf(e,t,r){return(t=qf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qf(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function jf(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Wf(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Wf(e,t){if(e){if("string"==typeof e)return Zf(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zf(e,t):void 0}}function Zf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var _f=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),Xf=Promise.resolve();function Vf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){var r,A=jf(e);try{for(A.s();!(r=A.n()).done;){var n=Vf(r.value,!0);if(n)return n}}catch(e){A.e(e)}finally{A.f()}return q("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(e instanceof Ue))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:(q("Unsupported blend mode: ".concat(e.name)),"source-over")}function zf(e,t){var r;t.objId&&e.addDependency(t.objId),e.addImageOps(t.fn,t.args,t.optionalContent),t.fn===Y&&(null===(r=t.args[0])||void 0===r?void 0:r.count)>0&&t.args[0].count++}var $f=function(){function e(){Pf(this,e),this.reset()}return Kf(e,[{key:"check",value:function(){return!(++this.checked<e.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}},{key:"reset",value:function(){this.endTime=Date.now()+e.TIME_SLOT_DURATION_MS,this.checked=0}}])}();Tf($f,"TIME_SLOT_DURATION_MS",20),Tf($f,"CHECK_TIME_EVERY",100);var eC=function(){function e(t){var r=t.xref,A=t.handler,n=t.pageIndex,i=t.idFactory,a=t.fontCache,o=t.builtInCMapCache,s=t.standardFontDataCache,c=t.globalImageCache,g=t.systemFontCache,u=t.options,l=void 0===u?null:u;Pf(this,e),this.xref=r,this.handler=A,this.pageIndex=n,this.idFactory=i,this.fontCache=a,this.builtInCMapCache=o,this.standardFontDataCache=s,this.globalImageCache=c,this.systemFontCache=g,this.options=l||_f,this.type3FontRefs=null,this._regionalImageCache=new Yh,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this),Af.setMaxArea(this.options.canvasMaxAreaInBytes)}return Kf(e,[{key:"_pdfFunctionFactory",get:function(){return _(this,"_pdfFunctionFactory",new iI({xref:this.xref,isEvalSupported:this.options.isEvalSupported}))}},{key:"parsingType3Font",get:function(){return!!this.type3FontRefs}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}},{key:"hasBlendModes",value:function(e,t){if(!(e instanceof He))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new Pe(t);e.objId&&r.put(e.objId);for(var A=[e],n=this.xref;A.length;){var i=A.shift(),a=i.get("ExtGState");if(a instanceof He){var o,s=jf(a.getRawValues());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c instanceof Ye){if(r.has(c))continue;try{c=n.fetch(c)}catch(e){r.put(c),T(\'hasBlendModes - ignoring ExtGState: "\'.concat(e,\'".\'));continue}}if(c instanceof He){c.objId&&r.put(c.objId);var g=c.get("BM");if(g instanceof Ue){if("Normal"!==g.name)return!0}else if(void 0!==g&&Array.isArray(g)){var u,l=jf(g);try{for(l.s();!(u=l.n()).done;){var h=u.value;if(h instanceof Ue&&"Normal"!==h.name)return!0}}catch(e){l.e(e)}finally{l.f()}}}}}catch(e){s.e(e)}finally{s.f()}}var I=i.get("XObject");if(I instanceof He){var f,C=jf(I.getRawValues());try{for(C.s();!(f=C.n()).done;){var B=f.value;if(B instanceof Ye){if(r.has(B))continue;try{B=n.fetch(B)}catch(e){r.put(B),T(\'hasBlendModes - ignoring XObject: "\'.concat(e,\'".\'));continue}}if(B instanceof ze){B.dict.objId&&r.put(B.dict.objId);var Q=B.dict.get("Resources");Q instanceof He&&(Q.objId&&r.has(Q.objId)||(A.push(Q),Q.objId&&r.put(Q.objId)))}}}catch(e){C.e(e)}finally{C.f()}}}var E,d=jf(r);try{for(d.s();!(E=d.n()).done;){var y=E.value;t.put(y)}}catch(e){d.e(e)}finally{d.f()}return!1}},{key:"fetchBuiltInCMap",value:(u=Yf(Jf().mark((function e(t){var r,A,n,i;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.builtInCMapCache.get(t))){e.next=3;break}return e.abrupt("return",r);case 3:if(null===this.options.cMapUrl){e.next=19;break}return n="".concat(this.options.cMapUrl).concat(t,".bcmap"),e.next=7,fetch(n);case 7:if((i=e.sent).ok){e.next=10;break}throw new Error(\'fetchBuiltInCMap: failed to fetch file "\'.concat(n,\'" with "\').concat(i.statusText,\'".\'));case 10:return e.t0=Uint8Array,e.next=13,i.arrayBuffer();case 13:e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=F.BINARY,A={cMapData:e.t2,compressionType:e.t3},e.next=22;break;case 19:return e.next=21,this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:A=e.sent;case 22:return A.compressionType!==F.NONE&&this.builtInCMapCache.set(t,A),e.abrupt("return",A);case 24:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"fetchStandardFontData",value:(g=Yf(Jf().mark((function e(t){var r,A,n,i,a,o;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.standardFontDataCache.get(t))){e.next=3;break}return e.abrupt("return",new ar(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){e.next=5;break}return e.abrupt("return",null);case 5:if(A=kc(),n=A[t],null===this.options.standardFontDataUrl){e.next=22;break}return a="".concat(this.options.standardFontDataUrl).concat(n),e.next=10,fetch(a);case 10:if((o=e.sent).ok){e.next=15;break}q(\'fetchStandardFontData: failed to fetch file "\'.concat(a,\'" with "\').concat(o.statusText,\'".\')),e.next=20;break;case 15:return e.t0=Uint8Array,e.next=18,o.arrayBuffer();case 18:e.t1=e.sent,i=new e.t0(e.t1);case 20:e.next=31;break;case 22:return e.prev=22,e.next=25,this.handler.sendWithPromise("FetchStandardFontData",{filename:n});case 25:i=e.sent,e.next=31;break;case 28:e.prev=28,e.t2=e.catch(22),q(\'fetchStandardFontData: failed to fetch file "\'.concat(n,\'" with "\').concat(e.t2,\'".\'));case 31:if(i){e.next=33;break}return e.abrupt("return",null);case 33:return this.standardFontDataCache.set(t,i),e.abrupt("return",new ar(i));case 35:case"end":return e.stop()}}),e,this,[[22,28]])}))),function(e){return g.apply(this,arguments)})},{key:"buildFormXObject",value:(c=Yf(Jf().mark((function e(t,r,A,n,i,a,o){var s,c,g,u,l,h,I,f,C,B,Q;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.dict,c=Ft(s.getArray("Matrix"),null),g=Rt(s.getArray("BBox"),null),!s.has("OC")){e.next=7;break}return e.next=6,this.parseMarkedContentProps(s.get("OC"),t);case 6:u=e.sent;case 7:if(void 0!==u&&n.addOp(J,["OC",u]),!(h=s.get("Group"))){e.next=28;break}if(l={matrix:c,bbox:g,smask:A,isolated:!1,knockout:!1},I=h.get("S"),f=null,!Ke(I,"Transparency")){e.next=26;break}if(l.isolated=h.get("I")||!1,l.knockout=h.get("K")||!1,!h.has("CS")){e.next=26;break}if(C=h.getRaw("CS"),!(B=Ur.getCached(C,this.xref,o))){e.next=23;break}f=B,e.next=26;break;case 23:return e.next=25,this.parseColorSpace({cs:C,resources:t,localColorSpaceCache:o});case 25:f=e.sent;case 26:null!=A&&A.backdrop&&(f||(f=Ur.singletons.rgb),A.backdrop=f.getRgb(A.backdrop,0)),n.addOp(76,[l]);case 28:return Q=h?[c,null]:[c,g],n.addOp(74,Q),e.next=32,this.getOperatorList({stream:r,task:i,resources:s.get("Resources")||t,operatorList:n,initialState:a});case 32:n.addOp(75,[]),h&&n.addOp(77,[l]),void 0!==u&&n.addOp(H,[]);case 35:case"end":return e.stop()}}),e,this)}))),function(e,t,r,A,n,i,a){return c.apply(this,arguments)})},{key:"_sendImgData",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],A):this.handler.send("obj",[e,this.pageIndex,"Image",t],A)}},{key:"buildPaintImageXObject",value:(s=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G=this;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.resources,A=t.image,n=t.isInline,i=void 0!==n&&n,a=t.operatorList,o=t.cacheKey,s=t.localImageCache,c=t.localColorSpaceCache,g=A.dict,u=g.objId,l=g.get("W","Width"),h=g.get("H","Height"),l&&"number"==typeof l&&h&&"number"==typeof h){e.next=8;break}return q("Image dimensions are missing, or not numbers."),e.abrupt("return");case 8:if(!(-1!==(I=this.options.maxImageSize)&&l*h>I)){e.next=15;break}if(f="Image exceeded maximum allowed size and was removed.",!this.options.ignoreErrors){e.next=14;break}return q(f),e.abrupt("return");case 14:throw new Error(f);case 15:if(!g.has("OC")){e.next=19;break}return e.next=18,this.parseMarkedContentProps(g.get("OC"),r);case 18:C=e.sent;case 19:if(!g.get("IM","ImageMask")){e.next=47;break}if(E=g.get("I","Interpolate"),d=l+7>>3,y=A.getBytes(d*h),p=g.getArray("D","Decode"),!this.parsingType3Font){e.next=32;break}return(B=Lf.createRawMask({imgArray:y,width:l,height:h,imageIsFromDecodeStream:A instanceof XA,inverseDecode:(null==p?void 0:p[0])>0,interpolate:E})).cached=!!o,Q=[B],a.addImageOps(Y,Q,C),o&&(v={fn:Y,args:Q,optionalContent:C},s.set(o,u,v),u&&this._regionalImageCache.set(null,u,v)),e.abrupt("return");case 32:return e.next=34,Lf.createMask({imgArray:y,width:l,height:h,imageIsFromDecodeStream:A instanceof XA,inverseDecode:(null==p?void 0:p[0])>0,interpolate:E,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});case 34:if(!(B=e.sent).isSingleOpaquePixel){e.next=39;break}return a.addImageOps(90,[],C),o&&(m={fn:90,args:[],optionalContent:C},s.set(o,u,m),u&&this._regionalImageCache.set(null,u,m)),e.abrupt("return");case 39:return w="mask_".concat(this.idFactory.createObjId()),a.addDependency(w),B.dataLen=B.bitmap?B.width*B.height*4:B.data.length,this._sendImgData(w,B),Q=[{data:w,width:B.width,height:B.height,interpolate:B.interpolate,count:1}],a.addImageOps(Y,Q,C),o&&(b={objId:w,fn:Y,args:Q,optionalContent:C},s.set(o,u,b),u&&this._regionalImageCache.set(null,u,b)),e.abrupt("return");case 47:if(!(i&&l+h<200)||g.has("SMask")||g.has("Mask")){e.next=65;break}return e.prev=49,k=new Lf({xref:this.xref,res:r,image:A,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c}),e.next=53,k.createImageData(!0,!1);case 53:B=e.sent,a.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,a.addImageOps(86,[B],C),e.next=64;break;case 58:if(e.prev=58,e.t0=e.catch(49),D=\'Unable to decode inline image: "\'.concat(e.t0,\'".\'),this.options.ignoreErrors){e.next=63;break}throw new Error(D);case 63:q(D);case 64:return e.abrupt("return");case 65:if(S="img_".concat(this.idFactory.createObjId()),F=!1,this.parsingType3Font?S="".concat(this.idFactory.getDocId(),"_type3_").concat(S):o&&u&&(F=this.globalImageCache.shouldCache(u,this.pageIndex))&&(W(!i,"Cannot cache an inline image globally."),S="".concat(this.idFactory.getDocId(),"_").concat(S)),a.addDependency(S),Q=[S,l,h],a.addImageOps(P,Q,C),!F){e.next=83;break}if(!this.globalImageCache.hasDecodeFailed(u)){e.next=75;break}return this.globalImageCache.setData(u,{objId:S,fn:P,args:Q,optionalContent:C,byteSize:0}),this._sendImgData(S,null,F),e.abrupt("return");case 75:if(!(l*h>25e4||g.has("SMask")||g.has("Mask"))){e.next=83;break}return e.next=78,this.handler.sendWithPromise("commonobj",[S,"CopyLocalImage",{imageRef:u}]);case 78:if(!(x=e.sent)){e.next=83;break}return this.globalImageCache.setData(u,{objId:S,fn:P,args:Q,optionalContent:C,byteSize:0}),this.globalImageCache.addByteSize(u,x),e.abrupt("return");case 83:Lf.buildImage({xref:this.xref,res:r,image:A,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:c}).then(function(){var e=Yf(Jf().mark((function e(t){return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createImageData(!1,G.options.isOffscreenCanvasSupported);case 2:return(B=e.sent).dataLen=B.bitmap?B.width*B.height*4:B.data.length,B.ref=u,F&&G.globalImageCache.addByteSize(u,B.dataLen),e.abrupt("return",G._sendImgData(S,B,F));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){return q(\'Unable to decode image "\'.concat(S,\'": "\').concat(e,\'".\')),u&&G.globalImageCache.addDecodeFailed(u),G._sendImgData(S,null,F)})),o&&(R={objId:S,fn:P,args:Q,optionalContent:C},s.set(o,u,R),u&&(this._regionalImageCache.set(null,u,R),F&&this.globalImageCache.setData(u,{objId:S,fn:P,args:Q,optionalContent:C,byteSize:0})));case 85:case"end":return e.stop()}}),e,this,[[49,58]])}))),function(e){return s.apply(this,arguments)})},{key:"handleSMask",value:function(e,t,r,A,n,i){var a=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if(sI(s)){for(var c=this._pdfFunctionFactory.create(s),g=new Uint8Array(256),u=new Float32Array(1),l=0;l<256;l++)u[0]=l/255,c(u,0,u,0),g[l]=255*u[0]|0;o.transferMap=g}return this.buildFormXObject(t,a,o,r,A,n.state.clone(),i)}},{key:"handleTransferFunction",value:function(e){var t;if(Array.isArray(e))t=e;else{if(!sI(e))return null;t=[e]}var r,A=[],n=0,i=0,a=jf(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this.xref.fetchIfRef(o);if(n++,Ke(s,"Identity"))A.push(null);else{if(!sI(s))return null;for(var c=this._pdfFunctionFactory.create(s),g=new Uint8Array(256),u=new Float32Array(1),l=0;l<256;l++)u[0]=l/255,c(u,0,u,0),g[l]=255*u[0]|0;A.push(g),i++}}}catch(e){a.e(e)}finally{a.f()}return 1!==n&&4!==n||0===i?null:A}},{key:"handleTilingType",value:function(e,t,r,A,n,i,a,o){var s=this,c=new kf,g=He.merge({xref:this.xref,dictArray:[n.get("Resources"),r]});return this.getOperatorList({stream:A,task:a,resources:g,operatorList:c}).then((function(){var r=c.getIR(),A=Bl(r,n,t);i.addDependencies(c.dependencies),i.addOp(e,A),n.objId&&o.set(null,n.objId,{operatorListIR:r,dict:n})})).catch((function(e){if(!(e instanceof Ae)){if(!s.options.ignoreErrors)throw e;q(\'handleTilingType - ignoring pattern: "\'.concat(e,\'".\'))}}))}},{key:"handleSetFont",value:(o=Yf(Jf().mark((function e(t,r,A,n,i,a){var o,s,c,g,u=arguments;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>6&&void 0!==u[6]?u[6]:null,s=u.length>7&&void 0!==u[7]?u[7]:null,c=(null==r?void 0:r[0])instanceof Ue?r[0].name:null,e.next=5,this.loadFont(c,A,t,o,s);case 5:if(!(g=e.sent).font.isType3Font){e.next=16;break}return e.prev=7,e.next=10,g.loadType3Data(this,t,i);case 10:n.addDependencies(g.type3Dependencies),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),g=new tC({loadedName:"g_font_error",font:new _u("Type3 font load error: ".concat(e.t0)),dict:g.font,evaluatorOptions:this.options});case 16:return a.font=g.font,g.send(this.handler),e.abrupt("return",g.loadedName);case 19:case"end":return e.stop()}}),e,this,[[7,13]])}))),function(e,t,r,A,n,i){return o.apply(this,arguments)})},{key:"handleText",value:function(t,r){var A=r.font,n=A.charsToGlyphs(t);return A.data&&(4&r.textRenderingMode||"Pattern"===r.fillColorSpace.name||A.disableFontFace||this.options.disableFontFace)&&e.buildFontPaths(A,n,this.handler,this.options),n}},{key:"ensureStateFont",value:function(e){if(!e.font){var t=new re("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;q(\'ensureStateFont: "\'.concat(t,\'".\'))}}},{key:"setGState",value:(a=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B=this;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.resources,A=t.gState,n=t.operatorList,i=t.cacheKey,a=t.task,o=t.stateManager,s=t.localGStateCache,c=t.localColorSpaceCache,g=A.objId,u=!0,l=[],h=Promise.resolve(),I=jf(A.getKeys()),e.prev=6,C=Jf().mark((function e(){var t,i,s;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,i=A.get(t),e.t0=t,e.next="Type"===e.t0?5:"LW"===e.t0||"LC"===e.t0||"LJ"===e.t0||"ML"===e.t0||"D"===e.t0||"RI"===e.t0||"FL"===e.t0||"CA"===e.t0||"ca"===e.t0?6:"Font"===e.t0?8:"BM"===e.t0?11:"SMask"===e.t0?13:"TR"===e.t0?18:"OP"===e.t0||"op"===e.t0||"OPM"===e.t0||"BG"===e.t0||"BG2"===e.t0||"UCR"===e.t0||"UCR2"===e.t0||"TR2"===e.t0||"HT"===e.t0||"SM"===e.t0||"SA"===e.t0||"AIS"===e.t0||"TK"===e.t0?21:23;break;case 5:return e.abrupt("break",25);case 6:return l.push([t,i]),e.abrupt("break",25);case 8:return u=!1,h=h.then((function(){return B.handleSetFont(r,null,i[0],n,a,o.state).then((function(e){n.addDependency(e),l.push([t,[e,i[1]]])}))})),e.abrupt("break",25);case 11:return l.push([t,Vf(i)]),e.abrupt("break",25);case 13:if(!Ke(i,"None")){e.next=16;break}return l.push([t,!1]),e.abrupt("break",25);case 16:return i instanceof He?(u=!1,h=h.then((function(){return B.handleSMask(i,r,n,a,o,c)})),l.push([t,!0])):q("Unsupported SMask type"),e.abrupt("break",25);case 18:return s=B.handleTransferFunction(i),l.push([t,s]),e.abrupt("break",25);case 21:return T("graphic state operator "+t),e.abrupt("break",25);case 23:return T("Unknown graphic state operator "+t),e.abrupt("break",25);case 25:case"end":return e.stop()}}),e)})),I.s();case 9:if((f=I.n()).done){e.next=13;break}return e.delegateYield(C(),"t0",11);case 11:e.next=9;break;case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(6),I.e(e.t1);case 18:return e.prev=18,I.f(),e.finish(18);case 21:return e.next=23,h;case 23:l.length>0&&n.addOp(9,[l]),u&&s.set(i,g,l);case 25:case"end":return e.stop()}}),e,null,[[6,15,18,21]])}))),function(e){return a.apply(this,arguments)})},{key:"loadFont",value:function(t,r,A){var n,i,a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=function(){var e=Yf(Jf().mark((function e(){return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new tC({loadedName:"g_font_error",font:new _u(\'Font "\'.concat(t,\'" is not available.\')),dict:r,evaluatorOptions:a.options}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(r)r instanceof Ye&&(i=r);else{var g=A.get("Font");g&&(i=g.getRaw(t))}if(i){var u;if(null!==(u=this.type3FontRefs)&&void 0!==u&&u.has(i))return c();if(this.fontCache.has(i))return this.fontCache.get(i);try{r=this.xref.fetchIfRef(i)}catch(e){q(\'loadFont - lookup failed: "\'.concat(e,\'".\'))}}if(!(r instanceof He)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return q(\'Font "\'.concat(t,\'" is not available.\')),c();q(\'Font "\'.concat(t,\'" is not available -- attempting to fallback to a default font.\')),r=o||e.fallbackFontDict}if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var l,h=Promise.withResolvers(),I=h.promise,f=h.resolve;try{(l=this.preEvaluateFont(r)).cssFontInfo=s}catch(e){return q(\'loadFont - preEvaluateFont failed: "\'.concat(e,\'".\')),c()}var C,B=l,Q=B.descriptor,E=B.hash,d=i instanceof Ye;if(E&&Q instanceof He){var y=Q.fontAliases||(Q.fontAliases=Object.create(null));if(y[E]){var p=y[E].aliasRef;if(d&&p&&this.fontCache.has(p))return this.fontCache.putAlias(i,p),this.fontCache.get(i)}else y[E]={fontID:this.idFactory.createFontId()};d&&(y[E].aliasRef=i),C=y[E].fontID}else C=this.idFactory.createFontId();return W(null===(n=C)||void 0===n?void 0:n.startsWith("f"),\'The "fontID" must be (correctly) defined.\'),d?this.fontCache.put(i,I):(r.cacheKey="cacheKey_".concat(C),this.fontCache.put(r.cacheKey,I)),r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(C),this.translateFont(l).then((function(e){f(new tC({loadedName:r.loadedName,font:e,dict:r,evaluatorOptions:a.options}))})).catch((function(e){q(\'loadFont - translateFont failed: "\'.concat(e,\'".\')),f(new tC({loadedName:r.loadedName,font:new _u(e instanceof Error?e.message:e),dict:r,evaluatorOptions:a.options}))})),I}},{key:"buildPath",value:function(e,t,r){var A=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=e.length-1;if(r||(r=[]),n<0||91!==e.fnArray[n]){var i;switch(A&&(q(\'Encountered path operator "\'.concat(t,\'" inside of a text object.\')),e.addOp(x,null)),t){case 19:var a=r[0]+r[2],o=r[1]+r[3];i=[Math.min(r[0],a),Math.min(r[1],o),Math.max(r[0],a),Math.max(r[1],o)];break;case 13:case 14:i=[r[0],r[1],r[0],r[1]];break;default:i=[1/0,1/0,-1/0,-1/0]}e.addOp(91,[[t],r,i]),A&&e.addOp(R,null)}else{var s,c=e.argsArray[n];c[0].push(t),(s=c[1]).push.apply(s,Mf(r));var g=c[2];switch(t){case 19:var u=r[0]+r[2],l=r[1]+r[3];g[0]=Math.min(g[0],r[0],u),g[1]=Math.min(g[1],r[1],l),g[2]=Math.max(g[2],r[0],u),g[3]=Math.max(g[3],r[1],l);break;case 13:case 14:g[0]=Math.min(g[0],r[0]),g[1]=Math.min(g[1],r[1]),g[2]=Math.max(g[2],r[0]),g[3]=Math.max(g[3],r[1])}}}},{key:"parseColorSpace",value:function(e){var t=this,r=e.cs,A=e.resources,n=e.localColorSpaceCache;return Ur.parseAsync({cs:r,xref:this.xref,resources:A,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:n}).catch((function(e){if(e instanceof Ae)return null;if(t.options.ignoreErrors)return q(\'parseColorSpace - ignoring ColorSpace: "\'.concat(e,\'".\')),null;throw e}))}},{key:"parseShading",value:function(e){var t,r=e.shading,A=e.resources,n=e.localColorSpaceCache,i=e.localShadingPatternCache,a=i.get(r);if(a)return a;try{t=cl.parseShading(r,this.xref,A,this._pdfFunctionFactory,n).getIR()}catch(e){if(e instanceof Ae)return null;if(this.options.ignoreErrors)return q(\'parseShading - ignoring shading: "\'.concat(e,\'".\')),i.set(r,null),null;throw e}return a="pattern_".concat(this.idFactory.createObjId()),this.parsingType3Font&&(a="".concat(this.idFactory.getDocId(),"_type3_").concat(a)),i.set(r,a),this.parsingType3Font?this.handler.send("commonobj",[a,"Pattern",t]):this.handler.send("obj",[a,this.pageIndex,"Pattern",t]),a}},{key:"handleColorN",value:function(e,t,r,A,n,i,a,o,s,c){var g=r.pop();if(g instanceof Ue){var u=n.getRaw(g.name),l=u instanceof Ye&&s.getByRef(u);if(l)try{var h=A.base?A.base.getRgb(r,0):null,I=Bl(l.operatorListIR,l.dict,h);return void e.addOp(t,I)}catch(e){}var f=this.xref.fetchIfRef(u);if(f){var C=f instanceof ze?f.dict:f,B=C.get("PatternType");if(1===B){var Q=A.base?A.base.getRgb(r,0):null;return this.handleTilingType(t,Q,i,f,C,e,a,s)}if(2===B){var E=C.get("Shading"),d=this.parseShading({shading:E,resources:i,localColorSpaceCache:o,localShadingPatternCache:c});if(d){var y=Ft(C.getArray("Matrix"),null);e.addOp(t,["Shading",d,y])}return}throw new re("Unknown PatternType: ".concat(B))}}throw new re("Unknown PatternName: ".concat(g))}},{key:"_parseVisibilityExpression",value:function(e,t,r){if(++t>10)q("Visibility expression is too deeply nested");else{var A=e.length,n=this.xref.fetchIfRef(e[0]);if(!(A<2)&&n instanceof Ue){switch(n.name){case"And":case"Or":case"Not":r.push(n.name);break;default:return void q("Invalid operator ".concat(n.name," in visibility expression"))}for(var i=1;i<A;i++){var a=e[i],o=this.xref.fetchIfRef(a);if(Array.isArray(o)){var s=[];r.push(s),this._parseVisibilityExpression(o,t,s)}else a instanceof Ye&&r.push(a.toString())}}else q("Invalid visibility expression")}}},{key:"parseMarkedContentProps",value:(i=Yf(Jf().mark((function e(t,r){var A,n,i,a,o,s,c,g,u,l,h;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Ue)){e.next=5;break}i=r.get("Properties"),n=i.get(t.name),e.next=10;break;case 5:if(!(t instanceof He)){e.next=9;break}n=t,e.next=10;break;case 9:throw new re("Optional content properties malformed.");case 10:if("OCG"!==(a=null===(A=n.get("Type"))||void 0===A?void 0:A.name)){e.next=15;break}return e.abrupt("return",{type:a,id:n.objId});case 15:if("OCMD"!==a){e.next=31;break}if(o=n.get("VE"),!Array.isArray(o)){e.next=22;break}if(s=[],this._parseVisibilityExpression(o,0,s),!(s.length>0)){e.next=22;break}return e.abrupt("return",{type:"OCMD",expression:s});case 22:if(c=n.get("OCGs"),!(Array.isArray(c)||c instanceof He)){e.next=29;break}if(g=[],Array.isArray(c)){u=jf(c);try{for(u.s();!(l=u.n()).done;)h=l.value,g.push(h.toString())}catch(e){u.e(e)}finally{u.f()}}else g.push(c.objId);return e.abrupt("return",{type:a,ids:g,policy:n.get("P")instanceof Ue?n.get("P").name:null,expression:null});case 29:if(!(c instanceof Ye)){e.next=31;break}return e.abrupt("return",{type:a,id:c.toString()});case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"getOperatorList",value:function(e){var t=this,r=e.stream,A=e.task,n=e.resources,i=e.operatorList,a=e.initialState,o=void 0===a?null:a,s=e.fallbackFontDict,c=void 0===s?null:s;if(n||(n=He.empty),o||(o=new nC),!i)throw new Error(\'getOperatorList: missing "operatorList" parameter\');var g=this,u=this.xref,l=!1,h=new Lh,I=new Uh,f=new Jh,C=new Hh,B=new Map,Q=n.get("XObject")||He.empty,E=n.get("Pattern")||He.empty,d=new rC(o),y=new iC(r,u,d),p=new $f;function v(e){for(var t=0,r=y.savedStatesDepth;t<r;t++)i.addOp(R,[])}return new Promise((function e(t,r){var a=function(A){Promise.all([A,i.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};A.ensureNotTerminated(),p.reset();for(var o,s,m,w,b,k,D={};!(o=p.check())&&(D.args=null,y.read(D));){var S=D.args,F=D.fn;switch(0|F){case 66:if(k=S[0]instanceof Ue,b=S[0].name,k){var x=h.getByName(b);if(x){zf(i,x),S=null;continue}}return void a(new Promise((function(e,t){if(!k)throw new re("XObject must be referred to by name.");var r=Q.getRaw(b);if(r instanceof Ye){var a=h.getByRef(r)||g._regionalImageCache.getByRef(r);if(a)return zf(i,a),void e();var o=g.globalImageCache.getData(r,g.pageIndex);if(o)return i.addDependency(o.objId),i.addImageOps(o.fn,o.args,o.optionalContent),void e();r=u.fetch(r)}if(!(r instanceof ze))throw new re("XObject should be a stream");var s=r.dict.get("Subtype");if(!(s instanceof Ue))throw new re("XObject should have a Name subtype");if("Form"===s.name)return d.save(),void g.buildFormXObject(n,r,null,i,A,d.state.clone(),I).then((function(){d.restore(),e()}),t);if("Image"!==s.name){if("PS"!==s.name)throw new re("Unhandled XObject subtype ".concat(s.name));T("Ignored XObject subtype PS"),e()}else g.buildPaintImageXObject({resources:n,image:r,operatorList:i,cacheKey:b,localImageCache:h,localColorSpaceCache:I}).then(e,t)})).catch((function(e){if(!(e instanceof Ae)){if(!g.options.ignoreErrors)throw e;q(\'getOperatorList - ignoring XObject: "\'.concat(e,\'".\'))}})));case N:var R=S[1];return void a(g.handleSetFont(n,S,null,i,A,d.state,c).then((function(e){i.addDependency(e),i.addOp(N,[e,R])})));case 31:l=!0;break;case 32:l=!1;break;case 65:var G=S[0].cacheKey;if(G){var H=h.getByName(G);if(H){zf(i,H),S=null;continue}}return void a(g.buildPaintImageXObject({resources:n,image:S[0],isInline:!0,operatorList:i,cacheKey:G,localImageCache:h,localColorSpaceCache:I}));case L:if(!d.state.font){g.ensureStateFont(d.state);continue}S[0]=g.handleText(S[0],d.state);break;case 45:if(!d.state.font){g.ensureStateFont(d.state);continue}var Y,P=[],O=d.state,K=jf(S[0]);try{for(K.s();!(Y=K.n()).done;){var j,W=Y.value;"string"==typeof W?(j=P).push.apply(j,Mf(g.handleText(W,O))):"number"==typeof W&&P.push(W)}}catch(e){K.e(e)}finally{K.f()}S[0]=P,F=L;break;case 46:if(!d.state.font){g.ensureStateFont(d.state);continue}i.addOp(43),S[0]=g.handleText(S[0],d.state),F=L;break;case 47:if(!d.state.font){g.ensureStateFont(d.state);continue}i.addOp(43),i.addOp(34,[S.shift()]),i.addOp(33,[S.shift()]),S[0]=g.handleText(S[0],d.state),F=L;break;case 38:d.state.textRenderingMode=S[0];break;case 51:var Z=Ur.getCached(S[0],u,I);if(Z){d.state.fillColorSpace=Z;continue}return void a(g.parseColorSpace({cs:S[0],resources:n,localColorSpaceCache:I}).then((function(e){d.state.fillColorSpace=e||Ur.singletons.gray})));case 50:var _=Ur.getCached(S[0],u,I);if(_){d.state.strokeColorSpace=_;continue}return void a(g.parseColorSpace({cs:S[0],resources:n,localColorSpaceCache:I}).then((function(e){d.state.strokeColorSpace=e||Ur.singletons.gray})));case 54:S=(w=d.state.fillColorSpace).getRgb(S,0),F=M;break;case 52:S=(w=d.state.strokeColorSpace).getRgb(S,0),F=U;break;case 57:d.state.fillColorSpace=Ur.singletons.gray,S=Ur.singletons.gray.getRgb(S,0),F=M;break;case 56:d.state.strokeColorSpace=Ur.singletons.gray,S=Ur.singletons.gray.getRgb(S,0),F=U;break;case 61:d.state.fillColorSpace=Ur.singletons.cmyk,S=Ur.singletons.cmyk.getRgb(S,0),F=M;break;case 60:d.state.strokeColorSpace=Ur.singletons.cmyk,S=Ur.singletons.cmyk.getRgb(S,0),F=U;break;case M:d.state.fillColorSpace=Ur.singletons.rgb,S=Ur.singletons.rgb.getRgb(S,0);break;case U:d.state.strokeColorSpace=Ur.singletons.rgb,S=Ur.singletons.rgb.getRgb(S,0);break;case 55:if(!(w=d.state.patternFillColorSpace)){S=[],F=93;break}if("Pattern"===w.name)return void a(g.handleColorN(i,55,S,w,E,n,A,I,C,B));S=w.getRgb(S,0),F=M;break;case 53:if(!(w=d.state.patternStrokeColorSpace)){S=[],F=92;break}if("Pattern"===w.name)return void a(g.handleColorN(i,53,S,w,E,n,A,I,C,B));S=w.getRgb(S,0),F=U;break;case 62:var X=void 0;try{var V=n.get("Shading");if(!V)throw new re("No shading resource found");if(!(X=V.get(S[0].name)))throw new re("No shading object found")}catch(e){if(e instanceof Ae)continue;if(g.options.ignoreErrors){q(\'getOperatorList - ignoring Shading: "\'.concat(e,\'".\'));continue}throw e}var z=g.parseShading({shading:X,resources:n,localColorSpaceCache:I,localShadingPatternCache:B});if(!z)continue;S=[z],F=62;break;case 9:if(k=S[0]instanceof Ue,b=S[0].name,k){var $=f.getByName(b);if($){$.length>0&&i.addOp(9,[$]),S=null;continue}}return void a(new Promise((function(e,t){if(!k)throw new re("GState must be referred to by name.");var r=n.get("ExtGState");if(!(r instanceof He))throw new re("ExtGState should be a dictionary.");var a=r.get(b);if(!(a instanceof He))throw new re("GState should be a dictionary.");g.setGState({resources:n,gState:a,operatorList:i,cacheKey:b,task:A,stateManager:d,localGStateCache:f,localColorSpaceCache:I}).then(e,t)})).catch((function(e){if(!(e instanceof Ae)){if(!g.options.ignoreErrors)throw e;q(\'getOperatorList - ignoring ExtGState: "\'.concat(e,\'".\'))}})));case 13:case 14:case 15:case 16:case 17:case 18:case 19:g.buildPath(i,F,S,l);continue;case 67:case 68:case 72:case 73:continue;case J:if(!(S[0]instanceof Ue)){q("Expected name for beginMarkedContentProps arg0=".concat(S[0])),i.addOp(J,["OC",null]);continue}if("OC"===S[0].name)return void a(g.parseMarkedContentProps(S[1],n).then((function(e){i.addOp(J,["OC",e])})).catch((function(e){if(!(e instanceof Ae)){if(g.options.ignoreErrors)return q(\'getOperatorList - ignoring beginMarkedContentProps: "\'.concat(e,\'".\')),void i.addOp(J,["OC",null]);throw e}})));S=[S[0].name,S[1]instanceof He?S[1].get("MCID"):null];break;default:if(null!==S){for(s=0,m=S.length;s<m&&!(S[s]instanceof He);s++);if(s<m){q("getOperatorList - ignoring operator: "+F);continue}}}i.addOp(F,S)}o?a(Xf):(v(),t())})).catch((function(e){if(!(e instanceof Ae)){if(t.options.ignoreErrors)return q(\'getOperatorList - ignoring errors during "\'.concat(A.name,\'" \')+\'task: "\'.concat(e,\'".\')),void v();throw e}}))}},{key:"getTextContent",value:function(e){var t=this,r=e.stream,A=e.task,n=e.resources,i=e.stateManager,a=void 0===i?null:i,o=e.includeMarkedContent,s=void 0!==o&&o,c=e.sink,g=e.seenStyles,u=void 0===g?new Set:g,l=e.viewBox,h=e.lang,I=void 0===h?null:h,f=e.markedContentData,Q=void 0===f?null:f,E=e.disableNormalization,d=void 0!==E&&E,y=e.keepWhiteSpace,p=void 0!==y&&y;n||(n=He.empty),a||(a=new rC(new AC)),s&&(Q||(Q={level:0}));var v={items:[],styles:Object.create(null),lang:I},m={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},w=[" "," "],b=0;function k(e){var t=(b+1)%2,r=" "!==w[b]&&" "===w[t];return w[b]=e,b=t,!p&&r}function D(){return!p&&" "!==w[b]&&" "===w[(b+1)%2]}function S(){w[0]=w[1]=" ",b=0}var F,x=.102,G=.03,U=-.2,M=.102,Y=.6,P=.25,O=this,K=this.xref,T=[],j=null,W=new Lh,Z=new Jh,_=new iC(r,K,a);function X(e){var t=e.width,r=void 0===t?0:t,A=e.height,n=void 0===A?0:A,i=e.transform,a=void 0===i?m.prevTransform:i,o=e.fontName,s=void 0===o?m.fontName:o;v.items.push({str:" ",dir:"ltr",width:r,height:n,transform:a,fontName:s,hasEOL:!1})}function V(){var e=F.font,t=[F.fontSize*F.textHScale,0,0,F.fontSize,0,F.textRise];if(e.isType3Font&&(F.fontSize<=1||e.isCharBBox)&&!Be(F.fontMatrix,B)){var r=e.bbox[3]-e.bbox[1];r>0&&(t[3]*=r*F.fontMatrix[3])}return ge.transform(F.ctm,ge.transform(F.textMatrix,t))}function z(){if(m.initialized)return m;var e=F,t=e.font,r=e.loadedName;if(!u.has(r)&&(u.add(r),v.styles[r]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical},O.options.fontExtraProperties&&t.systemFontInfo)){var A=v.styles[r];A.fontSubstitution=t.systemFontInfo.css,A.fontSubstitutionLoadedName=t.systemFontInfo.loadedName}m.fontName=r;var n=m.transform=V();t.vertical?(m.width=m.totalWidth=Math.hypot(n[0],n[1]),m.height=m.totalHeight=0,m.vertical=!0):(m.width=m.totalWidth=0,m.height=m.totalHeight=Math.hypot(n[2],n[3]),m.vertical=!1);var i=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),a=Math.hypot(F.ctm[0],F.ctm[1]);m.textAdvanceScale=a*i;var o=F.fontSize;return m.trackingSpaceMin=o*x,m.notASpace=o*G,m.negativeSpaceMax=o*U,m.spaceInFlowMin=o*M,m.spaceInFlowMax=o*Y,m.hasEOL=!1,m.initialized=!0,m}function $(){if(m.initialized){var e=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),t=Math.hypot(F.ctm[0],F.ctm[1])*e;t!==m.textAdvanceScale&&(m.vertical?(m.totalHeight+=m.height*m.textAdvanceScale,m.height=0):(m.totalWidth+=m.width*m.textAdvanceScale,m.width=0),m.textAdvanceScale=t)}}function ee(e,t){return te.apply(this,arguments)}function te(){return(te=Yf(Jf().mark((function e(t,r){var i;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.loadFont(t,r,n);case 2:if(!(i=e.sent).font.isType3Font){e.next=11;break}return e.prev=4,e.next=7,i.loadType3Data(O,n,A);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:F.loadedName=i.loadedName,F.font=i.font,F.fontMatrix=i.font.fontMatrix||B;case 14:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function ne(e,t,r){var A=Math.hypot(r[0],r[1]);return[(r[0]*e+r[1]*t)/A,(r[2]*e+r[3]*t)/A]}function ie(e){var t,r=V(),A=r[4],n=r[5];if(null!==(t=F.font)&&void 0!==t&&t.vertical){if(A<l[0]||A>l[2]||n+e<l[1]||n>l[3])return!1}else if(A+e<l[0]||A>l[2]||n<l[1]||n>l[3])return!1;if(!F.font||!m.prevTransform)return!0;var i=m.prevTransform[4],a=m.prevTransform[5];if(i===A&&a===n)return!0;var o=-1;switch(r[0]&&0===r[1]&&0===r[2]?o=r[0]>0?0:180:r[1]&&0===r[0]&&0===r[3]&&(o=r[1]>0?90:270),o){case 0:break;case 90:var s=[n,A];A=s[0],n=s[1];var c=[a,i];i=c[0],a=c[1];break;case 180:var g=[-A,-n,-i,-a];A=g[0],n=g[1],i=g[2],a=g[3];break;case 270:var u=[-n,-A];A=u[0],n=u[1];var h=[-a,-i];i=h[0],a=h[1];break;default:var I=Uf(ne(A,n,r),2);A=I[0],n=I[1];var f=Uf(ne(i,a,m.prevTransform),2);i=f[0],a=f[1]}if(F.font.vertical){var C=(a-n)/m.textAdvanceScale,B=A-i,Q=Math.sign(m.height);return C<Q*m.negativeSpaceMax?Math.abs(B)>.5*m.width?(oe(),!0):(S(),ce(),!0):Math.abs(B)>m.width?(oe(),!0):(C<=Q*m.notASpace&&S(),C<=Q*m.trackingSpaceMin?D()?(S(),ce(),X({height:Math.abs(C)})):m.height+=C:se(C,m.prevTransform,Q)||(0===m.str.length?(S(),X({height:Math.abs(C)})):m.height+=C),Math.abs(B)>m.width*P&&ce(),!0)}var E=(A-i)/m.textAdvanceScale,d=n-a,y=Math.sign(m.width);return E<y*m.negativeSpaceMax?Math.abs(d)>.5*m.height?(oe(),!0):(S(),ce(),!0):Math.abs(d)>m.height?(oe(),!0):(E<=y*m.notASpace&&S(),E<=y*m.trackingSpaceMin?D()?(S(),ce(),X({width:Math.abs(E)})):m.width+=E:se(E,m.prevTransform,y)||(0===m.str.length?(S(),X({width:Math.abs(E)})):m.width+=E),Math.abs(d)>m.height*P&&ce(),!0)}function ae(e){var t=e.chars,r=e.extraSpacing,A=F.font;if(!t){var n=F.charSpacing+r;return n&&(A.vertical?F.translateTextMatrix(0,-n):F.translateTextMatrix(n*F.textHScale,0)),void(p&&ie(0))}for(var i=A.charsToGlyphs(t),a=F.fontMatrix[0]*F.fontSize,o=0,s=i.length;o<s;o++){var c=i[o],g=c.category;if(!g.isInvisibleFormatMark){var u=F.charSpacing+(o+1===s?r:0),l=c.width;A.vertical&&(l=c.vmetric?c.vmetric[0]:-l);var h=l*a;if(p||!g.isWhitespace)if(g.isZeroWidthDiacritic||ie(h)){var I=z();g.isZeroWidthDiacritic&&(h=0),A.vertical?(F.translateTextMatrix(0,h),h=Math.abs(h),I.height+=h):(h*=F.textHScale,F.translateTextMatrix(h,0),I.width+=h),h&&(I.prevTransform=V());var f=c.unicode;k(f)&&I.str.push(" "),I.str.push(f),u&&(A.vertical?F.translateTextMatrix(0,-u):F.translateTextMatrix(u*F.textHScale,0))}else A.vertical?F.translateTextMatrix(0,h):F.translateTextMatrix(h*F.textHScale,0);else A.vertical?(u+=-h+F.wordSpacing,F.translateTextMatrix(0,-u)):(u+=h+F.wordSpacing,F.translateTextMatrix(u*F.textHScale,0)),k(" ")}}}function oe(){S(),m.initialized?(m.hasEOL=!0,ce()):v.items.push({str:"",dir:"ltr",width:0,height:0,transform:V(),fontName:F.loadedName,hasEOL:!0})}function se(e,t,r){if(r*m.spaceInFlowMin<=e&&e<=r*m.spaceInFlowMax)return m.initialized&&(S(),m.str.push(" ")),!1;var A=m.fontName,n=0;return m.vertical&&(n=e,e=0),ce(),S(),X({width:Math.abs(e),height:Math.abs(n),transform:t||V(),fontName:A}),!0}function ce(){m.initialized&&m.str&&(m.vertical?m.totalHeight+=m.height*m.textAdvanceScale:m.totalWidth+=m.width*m.textAdvanceScale,v.items.push(function(e){var t,r=e.str.join("");d||(t=r,Ee||(Ee=/([\\xA0\\xB5\\u037E\\u0EB3\\u2000-\\u200A\\u202F\\u2126\\uFB00-\\uFB04\\uFB06\\uFB20-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBA1\\uFBA4-\\uFBA9\\uFBAE-\\uFBB1\\uFBD3-\\uFBDC\\uFBDE-\\uFBE7\\uFBEA-\\uFBF8\\uFBFC\\uFBFD\\uFC00-\\uFC5D\\uFC64-\\uFCF1\\uFCF5-\\uFD3D\\uFD88\\uFDF4\\uFDFA\\uFDFB\\uFE71\\uFE77\\uFE79\\uFE7B\\uFE7D]+)|(\\uFB05+)/g,de=new Map([["ﬅ","ſt"]])),r=t.replaceAll(Ee,(function(e,t,r){return t?t.normalize("NFKC"):de.get(r)})));var A=UI(r,-1,e.vertical);return{str:A.str,dir:A.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}(m)),m.initialized=!1,m.str.length=0)}function ue(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=v.items.length;0!==t&&(e&&t<10||(c.enqueue(v,t),v.items=[],v.styles=Object.create(null)))}var le=new $f;return new Promise((function e(t,r){var i=function(A){ue(!0),Promise.all([A,c.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};A.ensureNotTerminated(),le.reset();for(var o,g={},h=[];!(o=le.check())&&(h.length=0,g.args=h,_.read(g));){var f=F;F=a.state;var B=g.fn;switch(h=g.args,0|B){case N:var E=h[0].name,y=h[1];if(F.font&&E===F.fontName&&y===F.fontSize)break;return ce(),F.fontName=E,F.fontSize=y,void i(ee(E,null));case 39:F.textRise=h[0];break;case 35:F.textHScale=h[0]/100;break;case 36:F.leading=h[0];break;case 40:F.translateTextLineMatrix(h[0],h[1]),F.textMatrix=F.textLineMatrix.slice();break;case 41:F.leading=-h[1],F.translateTextLineMatrix(h[0],h[1]),F.textMatrix=F.textLineMatrix.slice();break;case 43:F.carriageReturn();break;case 42:F.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),F.setTextLineMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),$();break;case 33:F.charSpacing=h[0];break;case 34:F.wordSpacing=h[0];break;case 31:F.textMatrix=C.slice(),F.textLineMatrix=C.slice();break;case 45:if(!a.state.font){O.ensureStateFont(a.state);continue}for(var m=(F.font.vertical?1:-1)*F.fontSize/1e3,w=h[0],b=0,k=w.length;b<k;b++){var D=w[b];if("string"==typeof D)T.push(D);else if("number"==typeof D&&0!==D){var S=T.join("");T.length=0,ae({chars:S,extraSpacing:D*m})}}if(T.length>0){var x=T.join("");T.length=0,ae({chars:x,extraSpacing:0})}break;case L:if(!a.state.font){O.ensureStateFont(a.state);continue}ae({chars:h[0],extraSpacing:0});break;case 46:if(!a.state.font){O.ensureStateFont(a.state);continue}F.carriageReturn(),ae({chars:h[0],extraSpacing:0});break;case 47:if(!a.state.font){O.ensureStateFont(a.state);continue}F.wordSpacing=h[0],F.charSpacing=h[1],F.carriageReturn(),ae({chars:h[2],extraSpacing:0});break;case 66:ce(),j||(j=n.get("XObject")||He.empty);var G=h[0]instanceof Ue,U=h[0].name;if(G&&W.getByName(U))break;return void i(new Promise((function(e,t){if(!G)throw new re("XObject must be referred to by name.");var r=j.getRaw(U);if(r instanceof Ye){if(W.getByRef(r))return void e();if(O.globalImageCache.getData(r,O.pageIndex))return void e();r=K.fetch(r)}if(!(r instanceof ze))throw new re("XObject should be a stream");var i=r.dict.get("Subtype");if(!(i instanceof Ue))throw new re("XObject should have a Name subtype");if("Form"!==i.name)return W.set(U,r.dict.objId,!0),void e();var o=a.state.clone(),g=new rC(o),h=Ft(r.dict.getArray("Matrix"),null);h&&g.transform(h),ue();var f={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,c.enqueue(e,t)},get desiredSize(){return c.desiredSize},get ready(){return c.ready}};O.getTextContent({stream:r,task:A,resources:r.dict.get("Resources")||n,stateManager:g,includeMarkedContent:s,sink:f,seenStyles:u,viewBox:l,lang:I,markedContentData:Q,disableNormalization:d,keepWhiteSpace:p}).then((function(){f.enqueueInvoked||W.set(U,r.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof Ae)){if(!O.options.ignoreErrors)throw e;q(\'getTextContent - ignoring XObject: "\'.concat(e,\'".\'))}})));case 9:if(G=h[0]instanceof Ue,U=h[0].name,G&&Z.getByName(U))break;return void i(new Promise((function(e,t){if(!G)throw new re("GState must be referred to by name.");var r=n.get("ExtGState");if(!(r instanceof He))throw new re("ExtGState should be a dictionary.");var A=r.get(U);if(!(A instanceof He))throw new re("GState should be a dictionary.");var i=A.get("Font");if(!i)return Z.set(U,A.objId,!0),void e();ce(),F.fontName=null,F.fontSize=i[1],ee(null,i[0]).then(e,t)})).catch((function(e){if(!(e instanceof Ae)){if(!O.options.ignoreErrors)throw e;q(\'getTextContent - ignoring ExtGState: "\'.concat(e,\'".\'))}})));case 69:ce(),s&&(Q.level++,v.items.push({type:"beginMarkedContent",tag:h[0]instanceof Ue?h[0].name:null}));break;case J:if(ce(),s){Q.level++;var M=null;h[1]instanceof He&&(M=h[1].get("MCID")),v.items.push({type:"beginMarkedContentProps",id:Number.isInteger(M)?"".concat(O.idFactory.getPageObjId(),"_mc").concat(M):null,tag:h[0]instanceof Ue?h[0].name:null})}break;case H:if(ce(),s){if(0===Q.level)break;Q.level--,v.items.push({type:"endMarkedContent"})}break;case R:!f||f.font===F.font&&f.fontSize===F.fontSize&&f.fontName===F.fontName||ce()}if(v.items.length>=c.desiredSize){o=!0;break}}o?i(Xf):(ce(),ue(),t())})).catch((function(e){if(!(e instanceof Ae)){if(t.options.ignoreErrors)return q(\'getTextContent - ignoring errors during "\'.concat(A.name,\'" \')+\'task: "\'.concat(e,\'".\')),ce(),void ue();throw e}}))}},{key:"extractDataStructures",value:(n=Yf(Jf().mark((function e(t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A=this.xref,i=this.readToUnicode(r.toUnicode),!r.composite){e.next=15;break}(a=t.get("CIDSystemInfo"))instanceof He&&(r.cidSystemInfo={registry:Ie(a.get("Registry")),ordering:Ie(a.get("Ordering")),supplement:a.get("Supplement")}),e.prev=5,(o=t.get("CIDToGIDMap"))instanceof ze&&(n=o.getBytes()),e.next=15;break;case 10:if(e.prev=10,e.t0=e.catch(5),this.options.ignoreErrors){e.next=14;break}throw e.t0;case 14:q(\'extractDataStructures - ignoring CIDToGIDMap data: "\'.concat(e.t0,\'".\'));case 15:if(s=[],c=null,!t.has("Encoding")){e.next=61;break}if(!((g=t.get("Encoding"))instanceof He)){e.next=52;break}if(c=(c=g.get("BaseEncoding"))instanceof Ue?c.name:null,!g.has("Differences")){e.next=50;break}u=g.get("Differences"),l=0,h=jf(u),e.prev=26,h.s();case 28:if((I=h.n()).done){e.next=42;break}if(f=I.value,"number"!=typeof(C=A.fetchIfRef(f))){e.next=35;break}l=C,e.next=40;break;case 35:if(!(C instanceof Ue)){e.next=39;break}s[l++]=C.name,e.next=40;break;case 39:throw new re("Invalid entry in \'Differences\' array: ".concat(C));case 40:e.next=28;break;case 42:e.next=47;break;case 44:e.prev=44,e.t1=e.catch(26),h.e(e.t1);case 47:return e.prev=47,h.f(),e.finish(47);case 50:e.next=60;break;case 52:if(!(g instanceof Ue)){e.next=56;break}c=g.name,e.next=60;break;case 56:if(B="Encoding is not a Name nor a Dict",this.options.ignoreErrors){e.next=59;break}throw new re(B);case 59:q(B);case 60:"MacRomanEncoding"!==c&&"MacExpertEncoding"!==c&&"WinAnsiEncoding"!==c&&(c=null);case 61:return Q=!r.file||r.isInternalFont,E=Fc()[r.name],c&&Q&&E&&(c=null),c?r.defaultEncoding=Rs(c):(d=!!(4&r.flags),y=!!(32&r.flags),g=Ds,"TrueType"!==r.type||y||(g=Ss),(d||E)&&(g=ks,Q&&(/Symbol/i.test(r.name)?g=Fs:/Dingbats/i.test(r.name)?g=xs:/Wingdings/i.test(r.name)&&(g=Ss))),r.defaultEncoding=g),r.differences=s,r.baseEncodingName=c,r.hasEncoding=!!c||s.length>0,r.dict=t,e.next=70,i;case 70:return r.toUnicode=e.sent,e.next=73,this.buildToUnicode(r);case 73:return p=e.sent,r.toUnicode=p,n&&(r.cidToGidMap=this.readCidToGidMap(n,p)),e.abrupt("return",r);case 77:case"end":return e.stop()}}),e,this,[[5,10],[26,44,47,50]])}))),function(e,t){return n.apply(this,arguments)})},{key:"_simpleFontToUnicode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(!e.composite,"Must be a simple font.");var r=[],A=e.defaultEncoding.slice(),n=e.baseEncodingName,i=e.differences;for(var a in i){var o=i[a];".notdef"!==o&&(A[a]=o)}var s=lc();for(var c in A){var g=A[c];if(""!==g){var u=s[g];if(void 0===u){var l=0;switch(g[0]){case"G":3===g.length&&(l=parseInt(g.substring(1),16));break;case"g":5===g.length&&(l=parseInt(g.substring(1),16));break;case"C":case"c":if(g.length>=3&&g.length<=4){var h=g.substring(1);if(t){l=parseInt(h,16);break}if(l=+h,Number.isNaN(l)&&Number.isInteger(parseInt(h,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":-1!==(u=fc(g,s))&&(l=u);break;default:switch(g){case"f_h":case"f_t":case"T_h":r[c]=g.replaceAll("_","");continue}}if(l>0&&l<=1114111&&Number.isInteger(l)){if(n&&l===+c){var I=Rs(n);if(I&&(g=I[c])){r[c]=String.fromCharCode(s[g]);continue}}r[c]=String.fromCodePoint(l)}}else r[c]=String.fromCharCode(u)}}return r}},{key:"buildToUnicode",value:(A=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasIncludedToUnicodeMap=(null===(r=t.toUnicode)||void 0===r?void 0:r.length)>0,!t.hasIncludedToUnicodeMap){e.next=4;break}return!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t)),e.abrupt("return",t.toUnicode);case 4:if(t.composite){e.next=6;break}return e.abrupt("return",new Yc(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof ns)&&("Adobe"!==(null===(A=t.cidSystemInfo)||void 0===A?void 0:A.registry)||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){e.next=15;break}return n=t.cidSystemInfo,i=n.registry,a=n.ordering,o=Ue.get("".concat(i,"-").concat(a,"-UCS2")),e.next=11,ys.create({encoding:o,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:return s=e.sent,c=[],g=[],t.cMap.forEach((function(e,t){if(t>65535)throw new re("Max size of CID is 65,535");var r=s.lookup(t);if(r){g.length=0;for(var A=0,n=r.length;A<n;A+=2)g.push((r.charCodeAt(A)<<8)+r.charCodeAt(A+1));c[e]=String.fromCharCode.apply(String,g)}})),e.abrupt("return",new Yc(c));case 15:return e.abrupt("return",new Pc(t.firstChar,t.lastChar));case 16:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"readToUnicode",value:(r=Yf(Jf().mark((function e(t){var r,A,n;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:if(!(t instanceof Ue)){e.next=9;break}return e.next=5,ys.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 5:if(!((r=e.sent)instanceof ns)){e.next=8;break}return e.abrupt("return",new Pc(0,65535));case 8:return e.abrupt("return",new Yc(r.getMap()));case 9:if(!(t instanceof ze)){e.next=29;break}return e.prev=10,e.next=13,ys.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 13:if(!((A=e.sent)instanceof ns)){e.next=16;break}return e.abrupt("return",new Pc(0,65535));case 16:return n=new Array(A.length),A.forEach((function(e,t){if("number"!=typeof t){t.length%2!=0&&(t="\\0"+t);for(var r=[],A=0;A<t.length;A+=2){var i=t.charCodeAt(A)<<8|t.charCodeAt(A+1);if(55296==(63488&i)){A+=2;var a=t.charCodeAt(A)<<8|t.charCodeAt(A+1);r.push(((1023&i)<<10)+(1023&a)+65536)}else r.push(i)}n[e]=String.fromCodePoint.apply(String,r)}else n[e]=String.fromCodePoint(t)})),e.abrupt("return",new Yc(n));case 21:if(e.prev=21,e.t0=e.catch(10),!(e.t0 instanceof Ae)){e.next=25;break}return e.abrupt("return",null);case 25:if(!this.options.ignoreErrors){e.next=28;break}return q(\'readToUnicode - ignoring ToUnicode data: "\'.concat(e.t0,\'".\')),e.abrupt("return",null);case 28:throw e.t0;case 29:return e.abrupt("return",null);case 30:case"end":return e.stop()}}),e,this,[[10,21]])}))),function(e){return r.apply(this,arguments)})},{key:"readCidToGidMap",value:function(e,t){for(var r=[],A=0,n=e.length;A<n;A++){var i=e[A++]<<8|e[A],a=A>>1;(0!==i||t.has(a))&&(r[a]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var A,n=this.xref,i=[],a=0,o=[];if(r.composite){var s=e.get("DW");a="number"==typeof s?Math.ceil(s):1e3;var c=e.get("W");if(Array.isArray(c))for(var g=0,u=c.length;g<u;g++){var l=n.fetchIfRef(c[g++]);if(!Number.isInteger(l))break;var h=n.fetchIfRef(c[g]);if(Array.isArray(h)){var I,f=jf(h);try{for(f.s();!(I=f.n()).done;){var C=I.value,B=n.fetchIfRef(C);"number"==typeof B&&(i[l]=B),l++}}catch(e){f.e(e)}finally{f.f()}}else{if(!Number.isInteger(h))break;var Q=n.fetchIfRef(c[++g]);if("number"!=typeof Q)continue;for(var E=l;E<=h;E++)i[E]=Q}}if(r.vertical){var d=e.getArray("DW2"),y=St(d,2)?d:[880,-1e3];if(A=[y[1],.5*a,y[0]],y=e.get("W2"),Array.isArray(y))for(var p=0,v=y.length;p<v;p++){var m=n.fetchIfRef(y[p++]);if(!Number.isInteger(m))break;var w=n.fetchIfRef(y[p]);if(Array.isArray(w))for(var b=0,k=w.length;b<k;b++){var D=[n.fetchIfRef(w[b++]),n.fetchIfRef(w[b++]),n.fetchIfRef(w[b])];St(D,null)&&(o[m]=D),m++}else{if(!Number.isInteger(w))break;var S=[n.fetchIfRef(y[++p]),n.fetchIfRef(y[++p]),n.fetchIfRef(y[++p])];if(!St(S,null))continue;for(var F=m;F<=w;F++)o[F]=S}}}}else{var x=e.get("Widths");if(Array.isArray(x)){var R,G=r.firstChar,N=jf(x);try{for(N.s();!(R=N.n()).done;){var L=R.value,U=n.fetchIfRef(L);"number"==typeof U&&(i[G]=U),G++}}catch(e){N.e(e)}finally{N.f()}var M=t.get("MissingWidth");a="number"==typeof M?M:0}else{var J=e.get("BaseFont");if(J instanceof Ue){var H=this.getBaseFontMetrics(J.name);i=this.buildCharCodeToWidth(H.widths,r),a=H.defaultWidth}}}var Y=!0,P=a;for(var O in i){var K=i[O];if(K)if(P){if(P!==K){Y=!1;break}}else P=K}Y?r.flags|=1:r.flags&=-2,r.defaultWidth=a,r.widths=i,r.defaultVMetrics=A,r.vmetrics=o}},{key:"isSerifFont",value:function(e){var t=e.split("-",1)[0];return t in Sc()||/serif/gi.test(t)}},{key:"getBaseFontMetrics",value:function(e){var t=0,r=Object.create(null),A=!1,n=bc()[e]||e,i=Eg();n in i||(n=this.isSerifFont(e)?"Times-Roman":"Helvetica");var a=i[n];return"number"==typeof a?(t=a,A=!0):r=a(),{defaultWidth:t,monospace:A,widths:r}}},{key:"buildCharCodeToWidth",value:function(e,t){for(var r=Object.create(null),A=t.differences,n=t.defaultEncoding,i=0;i<256;i++)i in A&&e[A[i]]?r[i]=e[A[i]]:i in n&&e[n[i]]&&(r[i]=e[n[i]]);return r}},{key:"preEvaluateFont",value:function(e){var t=e,r=e.get("Subtype");if(!(r instanceof Ue))throw new re("invalid font Subtype");var A,n=!1;if("Type0"===r.name){var i=e.get("DescendantFonts");if(!i)throw new re("Descendant fonts are not specified");if(!((e=Array.isArray(i)?this.xref.fetchIfRef(i[0]):i)instanceof He))throw new re("Descendant font is not a dictionary.");if(!((r=e.get("Subtype"))instanceof Ue))throw new re("invalid font Subtype");n=!0}var a=e.get("FirstChar");Number.isInteger(a)||(a=0);var o=e.get("LastChar");Number.isInteger(o)||(o=n?65535:255);var s=e.get("FontDescriptor"),c=e.get("ToUnicode")||t.get("ToUnicode");if(s){A=new uf;var g=t.getRaw("Encoding");if(g instanceof Ue)A.update(g.name);else if(g instanceof Ye)A.update(g.toString());else if(g instanceof He){var u,l=jf(g.getRawValues());try{for(l.s();!(u=l.n()).done;){var h=u.value;if(h instanceof Ue)A.update(h.name);else if(h instanceof Ye)A.update(h.toString());else if(Array.isArray(h)){for(var I=h.length,f=new Array(I),C=0;C<I;C++){var B=h[C];B instanceof Ue?f[C]=B.name:("number"==typeof B||B instanceof Ye)&&(f[C]=B.toString())}A.update(f.join())}}}catch(e){l.e(e)}finally{l.f()}}if(A.update("".concat(a,"-").concat(o)),c instanceof ze){var Q=c.str||c,E=Q.buffer?new Uint8Array(Q.buffer.buffer,0,Q.bufferLength):new Uint8Array(Q.bytes.buffer,Q.start,Q.end-Q.start);A.update(E)}else c instanceof Ue&&A.update(c.name);var d=e.get("Widths")||t.get("Widths");if(Array.isArray(d)){var y,p=[],v=jf(d);try{for(v.s();!(y=v.n()).done;){var m=y.value;("number"==typeof m||m instanceof Ye)&&p.push(m.toString())}}catch(e){v.e(e)}finally{v.f()}A.update(p.join())}if(n){A.update("compositeFont");var w=e.get("W")||t.get("W");if(Array.isArray(w)){var b,k=[],D=jf(w);try{for(D.s();!(b=D.n()).done;){var S=b.value;if("number"==typeof S||S instanceof Ye)k.push(S.toString());else if(Array.isArray(S)){var F,x=[],R=jf(S);try{for(R.s();!(F=R.n()).done;){var G=F.value;("number"==typeof G||G instanceof Ye)&&x.push(G.toString())}}catch(e){R.e(e)}finally{R.f()}k.push("[".concat(x.join(),"]"))}}}catch(e){D.e(e)}finally{D.f()}A.update(k.join())}var N=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap");N instanceof Ue?A.update(N.name):N instanceof Ye?A.update(N.toString()):N instanceof ze&&A.update(N.peekBytes())}}return{descriptor:s,dict:e,baseDict:t,composite:n,type:r.name,firstChar:a,lastChar:o,toUnicode:c,hash:A?A.hexdigest():""}}},{key:"translateFont",value:(t=Yf(Jf().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U,M,J,H,Y,P,O,K,j,W,Z,_,X,V,z,$,ee,te,Ae,ne,ie,ae;return Jf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.descriptor,i=t.dict,a=t.baseDict,o=t.composite,s=t.type,c=t.firstChar,g=t.lastChar,u=t.toUnicode,l=t.cssFontInfo,h="Type3"===s,n){e.next=32;break}if(!h){e.next=10;break}I=Rt(i.getArray("FontBBox"),[0,0,0,0]),(n=new He(null)).set("FontName",Ue.get(s)),n.set("FontBBox",I),e.next=32;break;case 10:if((f=i.get("BaseFont"))instanceof Ue){e.next=13;break}throw new re("Base font is not specified");case 13:if(f=f.name.replaceAll(/[,_]/g,"-"),C=this.getBaseFontMetrics(f),Q=f.split("-",1)[0],E=(this.isSerifFont(Q)?2:0)|(C.monospace?1:0)|(Fc()[Q]?4:32),d={type:s,name:f,loadedName:a.loadedName,systemFontInfo:null,widths:C.widths,defaultWidth:C.defaultWidth,isSimulatedFlags:!0,flags:E,firstChar:c,lastChar:g,toUnicode:u,xHeight:0,capHeight:0,italicAngle:0,isType3Font:h},y=i.get("Widths"),p=Nc(f),v=null,!p){e.next=26;break}return e.next=24,this.fetchStandardFontData(p);case 24:v=e.sent,d.isInternalFont=!!v;case 26:return!d.isInternalFont&&this.options.useSystemFonts&&(d.systemFontInfo=_I(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,f,p,s)),e.next=29,this.extractDataStructures(i,d);case 29:if(m=e.sent,Array.isArray(y)){w=[],b=c,k=jf(y);try{for(k.s();!(D=k.n()).done;)S=D.value,"number"==typeof(F=this.xref.fetchIfRef(S))&&(w[b]=F),b++}catch(e){k.e(e)}finally{k.f()}m.widths=w}else m.widths=this.buildCharCodeToWidth(C.widths,m);return e.abrupt("return",new Zu(f,v,m));case 32:if(x=n.get("FontName"),R=i.get("BaseFont"),"string"==typeof x&&(x=Ue.get(x)),"string"==typeof R&&(R=Ue.get(R)),G=null===(r=x)||void 0===r?void 0:r.name,N=null===(A=R)||void 0===A?void 0:A.name,h||G===N||(T("The FontDescriptor\'s FontName is \\"".concat(G,\'" but \')+"should be the same as the Font\'s BaseFont \\"".concat(N,\'".\')),G&&N&&(N.startsWith(G)||!Lc(G)&&Lc(N))&&(x=null)),x||(x=R),x instanceof Ue){e.next=42;break}throw new re("invalid font name");case 42:e.prev=42,L=n.get("FontFile","FontFile2","FontFile3"),e.next=52;break;case 46:if(e.prev=46,e.t0=e.catch(42),this.options.ignoreErrors){e.next=50;break}throw e.t0;case 50:q(\'translateFont - fetching "\'.concat(x.name,\'" font file: "\').concat(e.t0,\'".\')),L=new sr;case 52:if(Y=!1,P=null,O=null,!L){e.next=59;break}L.dict&&((K=L.dict.get("Subtype"))instanceof Ue&&(U=K.name),M=L.dict.get("Length1"),J=L.dict.get("Length2"),H=L.dict.get("Length3")),e.next=81;break;case 59:if(!l){e.next=73;break}if(!(j=sh(x.name))){e.next=71;break}return l.fontFamily="".concat(l.fontFamily,"-PdfJS-XFA"),l.metrics=j.metrics||null,P=j.factors||null,e.next=67,this.fetchStandardFontData(j.name);case 67:L=e.sent,Y=!!L,a=i=ch(x.name),o=!0;case 71:e.next=81;break;case 73:if(h){e.next=81;break}if(!(W=Nc(x.name))){e.next=80;break}return e.next=78,this.fetchStandardFontData(W);case 78:L=e.sent,Y=!!L;case 80:!Y&&this.options.useSystemFonts&&(O=_I(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,x.name,W,s));case 81:if(Z=Ft(i.getArray("FontMatrix"),B),_=Rt(n.getArray("FontBBox")||i.getArray("FontBBox"),void 0),"number"!=typeof(X=n.get("Ascent"))&&(X=void 0),"number"!=typeof(V=n.get("Descent"))&&(V=void 0),"number"!=typeof(z=n.get("XHeight"))&&(z=0),"number"!=typeof($=n.get("CapHeight"))&&($=0),ee=n.get("Flags"),Number.isInteger(ee)||(ee=0),"number"!=typeof(te=n.get("ItalicAngle"))&&(te=0),Ae={type:s,name:x.name,subtype:U,file:L,length1:M,length2:J,length3:H,isInternalFont:Y,loadedName:a.loadedName,composite:o,fixedPitch:!1,fontMatrix:Z,firstChar:c,lastChar:g,toUnicode:u,bbox:_,ascent:X,descent:V,xHeight:z,capHeight:$,flags:ee,italicAngle:te,isType3Font:h,cssFontInfo:l,scaleFactors:P,systemFontInfo:O},!o){e.next=104;break}return(ne=a.get("Encoding"))instanceof Ue&&(Ae.cidEncoding=ne.name),e.next=101,ys.create({encoding:ne,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 101:ie=e.sent,Ae.cMap=ie,Ae.vertical=Ae.cMap.vertical;case 104:return e.next=106,this.extractDataStructures(i,Ae);case 106:return ae=e.sent,this.extractWidths(i,n,ae),e.abrupt("return",new Zu(x.name,L,ae));case 109:case"end":return e.stop()}}),e,this,[[42,46]])}))),function(e){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function(e,t,r,A){function n(t){var n="".concat(e.loadedName,"_path_").concat(t);try{if(e.renderer.hasBuiltPath(t))return;r.send("commonobj",[n,"FontPath",e.renderer.getPathJs(t)])}catch(e){if(A.ignoreErrors)return void q("buildFontPaths - ignoring ".concat(n,\' glyph: "\').concat(e,\'".\'));throw e}}var i,a=jf(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;n(o.fontChar);var s=o.accent;null!=s&&s.fontChar&&n(s.fontChar)}}catch(e){a.e(e)}finally{a.f()}}},{key:"fallbackFontDict",get:function(){var e=new He;return e.set("BaseFont",Ue.get("Helvetica")),e.set("Type",Ue.get("FallbackType")),e.set("Subtype",Ue.get("FallbackType")),e.set("Encoding",Ue.get("WinAnsiEncoding")),_(this,"fallbackFontDict",e)}}]);var t,r,A,n,i,a,o,s,c,g,u}(),tC=function(){return Kf((function e(t){var r=t.loadedName,A=t.font,n=t.dict,i=t.evaluatorOptions;Pf(this,e),this.loadedName=r,this.font=A,this.dict=n,this._evaluatorOptions=i||_f,this.type3Loaded=null,this.type3Dependencies=A.isType3Font?new Set:null,this.sent=!1}),[{key:"send",value:function(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}},{key:"fallback",value:function(e){this.font.data&&(this.font.disableFontFace=!0,eC.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}},{key:"loadType3Data",value:function(e,t,r){var A=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var n=e.clone({ignoreErrors:!1}),i=new Pe(e.type3FontRefs);this.dict.objId&&!i.has(this.dict.objId)&&i.put(this.dict.objId),n.type3FontRefs=i;var a,o=this.font,s=this.type3Dependencies,c=Promise.resolve(),g=this.dict.get("CharProcs"),u=this.dict.get("Resources")||t,l=Object.create(null),h=ge.normalizeRect(o.bbox||[0,0,0,0]),I=h[2]-h[0],f=h[3]-h[1],C=Math.hypot(I,f),B=jf(g.getKeys());try{var Q=function(){var e=a.value;c=c.then((function(){var t=g.get(e),i=new kf;return n.getOperatorList({stream:t,task:r,resources:u,operatorList:i}).then((function(){49===i.fnArray[0]&&A._removeType3ColorOperators(i,C),l[e]=i.getIR();var t,r=jf(i.dependencies);try{for(r.s();!(t=r.n()).done;){var n=t.value;s.add(n)}}catch(e){r.e(e)}finally{r.f()}})).catch((function(t){q(\'Type3 font resource "\'.concat(e,\'" is not available.\'));var r=new kf;l[e]=r.getIR()}))}))};for(B.s();!(a=B.n()).done;)Q()}catch(e){B.e(e)}finally{B.f()}return this.type3Loaded=c.then((function(){o.charProcOperatorList=l,A._bbox&&(o.isCharBBox=!0,o.bbox=A._bbox)})),this.type3Loaded}},{key:"_removeType3ColorOperators",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,r=ge.normalizeRect(e.argsArray[0].slice(2)),A=r[2]-r[0],n=r[3]-r[1],i=Math.hypot(A,n);0===A||0===n?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(i/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3]));for(var a=0,o=e.length;a<o;){switch(e.fnArray[a]){case 49:break;case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case U:case M:case 60:case 61:case 62:case 7:e.fnArray.splice(a,1),e.argsArray.splice(a,1),o--;continue;case 9:for(var s=Uf(e.argsArray[a],1)[0],c=0,g=s.length;c<g;){switch(Uf(s[c],1)[0]){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":s.splice(c,1),g--;continue}c++}}a++}}}])}(),rC=function(){return Kf((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new nC;Pf(this,e),this.state=t,this.stateStack=[]}),[{key:"save",value:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}},{key:"restore",value:function(){var e=this.stateStack.pop();e&&(this.state=e)}},{key:"transform",value:function(e){this.state.ctm=ge.transform(this.state.ctm,e)}}])}(),AC=function(){return Kf((function e(){Pf(this,e),this.ctm=new Float32Array(C),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=B,this.textMatrix=C.slice(),this.textLineMatrix=C.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}),[{key:"setTextMatrix",value:function(e,t,r,A,n,i){var a=this.textMatrix;a[0]=e,a[1]=t,a[2]=r,a[3]=A,a[4]=n,a[5]=i}},{key:"setTextLineMatrix",value:function(e,t,r,A,n,i){var a=this.textLineMatrix;a[0]=e,a[1]=t,a[2]=r,a[3]=A,a[4]=n,a[5]=i}},{key:"translateTextMatrix",value:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"translateTextLineMatrix",value:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"carriageReturn",value:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}])}(),nC=function(){return Kf((function e(){Pf(this,e),this.ctm=new Float32Array(C),this.font=null,this.textRenderingMode=0,this._fillColorSpace=Ur.singletons.gray,this._strokeColorSpace=Ur.singletons.gray,this.patternFillColorSpace=null,this.patternStrokeColorSpace=null}),[{key:"fillColorSpace",get:function(){return this._fillColorSpace},set:function(e){this._fillColorSpace=this.patternFillColorSpace=e}},{key:"strokeColorSpace",get:function(){return this._strokeColorSpace},set:function(e){this._strokeColorSpace=this.patternStrokeColorSpace=e}},{key:"clone",value:function(){return Object.create(this)}}])}(),iC=function(){function e(t,r){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new rC;Pf(this,e),this.parser=new Jo({lexer:new Oo(t,e.opMap),xref:r}),this.stateManager=A,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}return Kf(e,[{key:"savedStatesDepth",get:function(){return this.stateManager.stateStack.length}},{key:"read",value:function(t){for(var r=t.args;;){var A=this.parser.getObj();if(A instanceof Me){var n=A.cmd,i=e.opMap[n];if(!i){q(\'Unknown command "\'.concat(n,\'".\'));continue}var a=i.id,o=i.numArgs,s=null!==r?r.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=a>=13&&a<=28,i.variableArgs)s>o&&T("Command ".concat(n,": expected [0, ").concat(o,"] args, ")+"but received ".concat(s," args."));else{if(s!==o){for(var c=this.nonProcessedArgs;s>o;)c.push(r.shift()),s--;for(;s<o&&0!==c.length;)null===r&&(r=[]),r.unshift(c.pop()),s++}if(s<o){var g="command ".concat(n,": expected ").concat(o," args, ")+"but received ".concat(s," args.");if(this._isPathOp&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new re("Invalid ".concat(g));q("Skipping ".concat(g)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(a,r),t.fn=a,t.args=r,!0}if(A===Re)return!1;if(null!==A&&(null===r&&(r=[]),r.push(A),r.length>33))throw new re("Too many arguments")}}},{key:"preprocessCommand",value:function(e,t){switch(0|e){case x:this.stateManager.save();break;case R:this.stateManager.restore();break;case G:this.stateManager.transform(t)}}}],[{key:"opMap",get:function(){return _(this,"opMap",Object.assign(Object.create(null),{w:{id:2,numArgs:1,variableArgs:!1},J:{id:3,numArgs:1,variableArgs:!1},j:{id:4,numArgs:1,variableArgs:!1},M:{id:5,numArgs:1,variableArgs:!1},d:{id:6,numArgs:2,variableArgs:!1},ri:{id:7,numArgs:1,variableArgs:!1},i:{id:8,numArgs:1,variableArgs:!1},gs:{id:9,numArgs:1,variableArgs:!1},q:{id:x,numArgs:0,variableArgs:!1},Q:{id:R,numArgs:0,variableArgs:!1},cm:{id:G,numArgs:6,variableArgs:!1},m:{id:13,numArgs:2,variableArgs:!1},l:{id:14,numArgs:2,variableArgs:!1},c:{id:15,numArgs:6,variableArgs:!1},v:{id:16,numArgs:4,variableArgs:!1},y:{id:17,numArgs:4,variableArgs:!1},h:{id:18,numArgs:0,variableArgs:!1},re:{id:19,numArgs:4,variableArgs:!1},S:{id:20,numArgs:0,variableArgs:!1},s:{id:21,numArgs:0,variableArgs:!1},f:{id:22,numArgs:0,variableArgs:!1},F:{id:22,numArgs:0,variableArgs:!1},"f*":{id:23,numArgs:0,variableArgs:!1},B:{id:24,numArgs:0,variableArgs:!1},"B*":{id:25,numArgs:0,variableArgs:!1},b:{id:26,numArgs:0,variableArgs:!1},"b*":{id:27,numArgs:0,variableArgs:!1},n:{id:28,numArgs:0,variableArgs:!1},W:{id:29,numArgs:0,variableArgs:!1},"W*":{id:30,numArgs:0,variableArgs:!1},BT:{id:31,numArgs:0,variableArgs:!1},ET:{id:32,numArgs:0,variableArgs:!1},Tc:{id:33,numArgs:1,variableArgs:!1},Tw:{id:34,numArgs:1,variableArgs:!1},Tz:{id:35,numArgs:1,variableArgs:!1},TL:{id:36,numArgs:1,variableArgs:!1},Tf:{id:N,numArgs:2,variableArgs:!1},Tr:{id:38,numArgs:1,variableArgs:!1},Ts:{id:39,numArgs:1,variableArgs:!1},Td:{id:40,numArgs:2,variableArgs:!1},TD:{id:41,numArgs:2,variableArgs:!1},Tm:{id:42,numArgs:6,variableArgs:!1},"T*":{id:43,numArgs:0,variableArgs:!1},Tj:{id:L,numArgs:1,variableArgs:!1},TJ:{id:45,numArgs:1,variableArgs:!1},"\'":{id:46,numArgs:1,variableArgs:!1},\'"\':{id:47,numArgs:3,variableArgs:!1},d0:{id:48,numArgs:2,variableArgs:!1},d1:{id:49,numArgs:6,variableArgs:!1},CS:{id:50,numArgs:1,variableArgs:!1},cs:{id:51,numArgs:1,variableArgs:!1},SC:{id:52,numArgs:4,variableArgs:!0},SCN:{id:53,numArgs:33,variableArgs:!0},sc:{id:54,numArgs:4,variableArgs:!0},scn:{id:55,numArgs:33,variableArgs:!0},G:{id:56,numArgs:1,variableArgs:!1},g:{id:57,numArgs:1,variableArgs:!1},RG:{id:U,numArgs:3,variableArgs:!1},rg:{id:M,numArgs:3,variableArgs:!1},K:{id:60,numArgs:4,variableArgs:!1},k:{id:61,numArgs:4,variableArgs:!1},sh:{id:62,numArgs:1,variableArgs:!1},BI:{id:63,numArgs:0,variableArgs:!1},ID:{id:64,numArgs:0,variableArgs:!1},EI:{id:65,numArgs:1,variableArgs:!1},Do:{id:66,numArgs:1,variableArgs:!1},MP:{id:67,numArgs:1,variableArgs:!1},DP:{id:68,numArgs:2,variableArgs:!1},BMC:{id:69,numArgs:1,variableArgs:!1},BDC:{id:J,numArgs:2,variableArgs:!1},EMC:{id:H,numArgs:0,variableArgs:!1},BX:{id:72,numArgs:0,variableArgs:!1},EX:{id:73,numArgs:0,variableArgs:!1},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null}))}}])}();function aC(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sC(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function oC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||sC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sC(e,t){if(e){if("string"==typeof e)return cC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cC(e,t):void 0}}function cC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function gC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uC(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,hC(A.key),A)}}function lC(e,t,r){return t&&uC(e.prototype,t),r&&uC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hC(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function IC(e,t,r){return t=CC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,fC()?Reflect.construct(t,r||[],CC(e).constructor):t.apply(e,r))}function fC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fC=function(){return!!e})()}function CC(e){return CC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CC(e)}function BC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QC(e,t)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QC(e,t)}Tf(iC,"MAX_INVALID_PATH_OPS",10);var EC=function(e){function t(e){return gC(this,t),IC(this,t,[new or(e)])}return BC(t,iC),lC(t,[{key:"parse",value:function(){var e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);)if(0===this.savedStatesDepth){var r=e.fn,A=e.args;switch(0|r){case N:var n=oC(A,2),i=n[0],a=n[1];i instanceof Ue&&(t.fontName=i.name),"number"==typeof a&&a>0&&(t.fontSize=a);break;case M:Ur.singletons.rgb.getRgbItem(A,0,t.fontColor,0);break;case 57:Ur.singletons.gray.getRgbItem(A,0,t.fontColor,0);break;case 61:Ur.singletons.cmyk.getRgbItem(A,0,t.fontColor,0)}}}catch(e){q(\'parseDefaultAppearance - ignoring errors: "\'.concat(e,\'".\'))}return t}}])}();function dC(e){return new EC(e).parse()}var yC=function(e){function t(e,r,A){var n,i;return gC(this,t),(i=IC(this,t,[e])).stream=e,i.evaluatorOptions=r,i.xref=A,i.resources=null===(n=e.dict)||void 0===n?void 0:n.get("Resources"),i}return BC(t,iC),lC(t,[{key:"parse",value:function(){var e={fn:0,args:[]},t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:Ur.singletons.gray},r=!1,A=[];try{for(;e.args.length=0,!r&&this.read(e);){var n=e.fn,i=e.args;switch(0|n){case x:A.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case R:t=A.pop()||t;break;case 42:t.scaleFactor*=Math.hypot(i[0],i[1]);break;case N:var a=oC(i,2),o=a[0],s=a[1];o instanceof Ue&&(t.fontName=o.name),"number"==typeof s&&s>0&&(t.fontSize=s*t.scaleFactor);break;case 51:t.fillColorSpace=Ur.parse({cs:i[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case 54:t.fillColorSpace.getRgbItem(i,0,t.fontColor,0);break;case M:Ur.singletons.rgb.getRgbItem(i,0,t.fontColor,0);break;case 57:Ur.singletons.gray.getRgbItem(i,0,t.fontColor,0);break;case 61:Ur.singletons.cmyk.getRgbItem(i,0,t.fontColor,0);break;case L:case 45:case 46:case 47:r=!0}}}catch(e){q(\'parseAppearanceStream - ignoring errors: "\'.concat(e,\'".\'))}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}},{key:"_localColorSpaceCache",get:function(){return _(this,"_localColorSpaceCache",new Uh)}},{key:"_pdfFunctionFactory",get:function(){return _(this,"_pdfFunctionFactory",new iI({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported}))}}])}();function pC(e,t){if(e[0]===e[1]&&e[1]===e[2]){var r=e[0]/255;return"".concat(Tt(r)," ").concat(t?"g":"G")}return Array.from(e,(function(e){return Tt(e/255)})).join(" ")+" ".concat(t?"rg":"RG")}var vC=function(){function e(t,r){gC(this,e),this.xref=t,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=r;var A=new OffscreenCanvas(1,1);this.ctxMeasure=A.getContext("2d",{willReadFrequently:!0}),e._fontNameId||(e._fontNameId=1),this.fontName=Ue.get("InvalidPDFjsFont_".concat(r,"_").concat(e._fontNameId++))}return lC(e,[{key:"fontDescriptorRef",get:function(){if(!e._fontDescriptorRef){var t=new He(this.xref);t.set("Type",Ue.get("FontDescriptor")),t.set("FontName",this.fontName),t.set("FontFamily","MyriadPro Regular"),t.set("FontBBox",[0,0,0,0]),t.set("FontStretch",Ue.get("Normal")),t.set("FontWeight",400),t.set("ItalicAngle",0),e._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return e._fontDescriptorRef}},{key:"descendantFontRef",get:function(){var e=new He(this.xref);e.set("BaseFont",this.fontName),e.set("Type",Ue.get("Font")),e.set("Subtype",Ue.get("CIDFontType0")),e.set("CIDToGIDMap",Ue.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);var t,r=[],A=null,n=null,i=aC(function(e){return function(e){if(Array.isArray(e))return cC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.widths.entries()).sort());try{for(i.s();!(t=i.n()).done;){var a=oC(t.value,2),o=a[0],s=a[1];A?o===A+n.length?n.push(s):(r.push(A,n),A=o,n=[s]):(A=o,n=[s])}}catch(e){i.e(e)}finally{i.f()}A&&r.push(A,n),e.set("W",r);var c=new He(this.xref);return c.set("Ordering","Identity"),c.set("Registry","Adobe"),c.set("Supplement",0),e.set("CIDSystemInfo",c),this.xref.getNewPersistentRef(e)}},{key:"baseFontRef",get:function(){var e=new He(this.xref);return e.set("BaseFont",this.fontName),e.set("Type",Ue.get("Font")),e.set("Subtype",Ue.get("Type0")),e.set("Encoding",Ue.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",Ue.get("Identity-H")),this.xref.getNewPersistentRef(e)}},{key:"resources",get:function(){var e=new He(this.xref),t=new He(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}},{key:"_createContext",value:function(){return this.widths=new Map,this.ctxMeasure.font="1000px ".concat(this.fontFamily),this.ctxMeasure}},{key:"createFontResources",value:function(e){var t,r=this._createContext(),A=aC(e.split(/\\r\\n?|\\n/));try{for(A.s();!(t=A.n()).done;){var n,i=aC(t.value.split(""));try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.charCodeAt(0);if(!this.widths.has(o)){var s=r.measureText(a),c=Math.ceil(s.width);this.widths.set(o,c),this.firstChar=Math.min(o,this.firstChar),this.lastChar=Math.max(o,this.lastChar)}}}catch(e){i.e(e)}finally{i.f()}}}catch(e){A.e(e)}finally{A.f()}return this.resources}},{key:"createAppearance",value:function(e,t,r,A,n,i){var a,o=this._createContext(),s=[],c=-1/0,g=aC(e.split(/\\r\\n?|\\n/));try{for(g.s();!(a=g.n()).done;){var u=a.value;s.push(u);var l=o.measureText(u).width;c=Math.max(c,l);var h,I=aC(Ht(u));try{for(I.s();!(h=I.n()).done;){var f=h.value,C=String.fromCodePoint(f),B=this.widths.get(f);if(void 0===B){var E=o.measureText(C);B=Math.ceil(E.width),this.widths.set(f,B),this.firstChar=Math.min(f,this.firstChar),this.lastChar=Math.max(f,this.lastChar)}}}catch(e){I.e(e)}finally{I.f()}}}catch(e){g.e(e)}finally{g.f()}c*=A/1e3;var d=oC(t,4),y=d[0],p=d[1],v=d[2]-y,m=d[3]-p;if(r%180!=0){var w=[m,v];v=w[0],m=w[1]}var b=1;c>v&&(b=v/c);var k=1,D=Q*A,S=.35*A,F=D*s.length;F>m&&(k=m/F);var x=A*Math.min(b,k),R=["q","0 0 ".concat(Tt(v)," ").concat(Tt(m)," re W n"),"BT","1 0 0 1 0 ".concat(Tt(m+S)," Tm 0 Tc ").concat(pC(n,!0)),"/".concat(this.fontName.name," ").concat(Tt(x)," Tf")],G=this.resources;if(1!==(i="number"==typeof i&&i>=0&&i<=1?i:1)){R.push("/R0 gs");var N=new He(this.xref),L=new He(this.xref);L.set("ca",i),L.set("CA",i),L.set("Type",Ue.get("ExtGState")),N.set("R0",L),G.set("ExtGState",N)}for(var U=Tt(D),M=0,J=s;M<J.length;M++){var H=J[M];R.push("0 -".concat(U," Td <").concat(Wt(H),"> Tj"))}R.push("ET","Q");var Y=R.join("\\n"),P=new He(this.xref);if(P.set("Subtype",Ue.get("Form")),P.set("Type",Ue.get("XObject")),P.set("BBox",[0,0,v,m]),P.set("Length",Y.length),P.set("Resources",G),r){var O=_t(r,v,m);P.set("Matrix",O)}var K=new or(Y);return K.dict=P,K}}],[{key:"getFirstPositionInfo",value:function(e,t,r){var A=oC(e,4),n=A[0],i=A[1],a=A[2]-n,o=A[3]-i;if(t%180!=0){var s=[o,a];a=s[0],o=s[1]}var c=Q*r;return{coords:[0,o+.35*r-c],bbox:[0,0,a,o],matrix:0!==t?_t(t,o,c):void 0}}}])}();function mC(e,t,r){return t=bC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,wC()?Reflect.construct(t,r||[],bC(e).constructor):t.apply(e,r))}function wC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wC=function(){return!!e})()}function bC(e){return bC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bC(e)}function kC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DC(e,t)}function DC(e,t){return DC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DC(e,t)}function SC(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return FC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?FC(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function FC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function xC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RC(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,NC(A.key),A)}}function GC(e,t,r){return t&&RC(e.prototype,t),r&&RC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NC(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}r(6851),r(9750);var LC=function(){return GC((function e(t,r,A){xC(this,e),this.root=t,this.xref=r,this._type=A}),[{key:"getAll",value:function(){var e=new Map;if(!this.root)return e;var t=this.xref,r=new Pe;r.put(this.root);for(var A=[this.root];A.length>0;){var n=t.fetchIfRef(A.shift());if(n instanceof He)if(n.has("Kids")){var i=n.get("Kids");if(!Array.isArray(i))continue;var a,o=SC(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(r.has(s))throw new re(\'Duplicate entry in "\'.concat(this._type,\'" tree.\'));A.push(s),r.put(s)}}catch(e){o.e(e)}finally{o.f()}}else{var c=n.get(this._type);if(Array.isArray(c))for(var g=0,u=c.length;g<u;g+=2)e.set(t.fetchIfRef(c[g]),t.fetchIfRef(c[g+1]))}}return e}},{key:"getRaw",value:function(e){if(!this.root)return null;for(var t=this.xref,r=t.fetchIfRef(this.root),A=0;r.has("Kids");){if(++A>10)return q(\'Search depth limit reached for "\'.concat(this._type,\'" tree.\')),null;var n=r.get("Kids");if(!Array.isArray(n))return null;for(var i=0,a=n.length-1;i<=a;){var o=i+a>>1,s=t.fetchIfRef(n[o]),c=s.get("Limits");if(e<t.fetchIfRef(c[0]))a=o-1;else{if(!(e>t.fetchIfRef(c[1]))){r=s;break}i=o+1}}if(i>a)return null}var g=r.get(this._type);if(Array.isArray(g))for(var u=0,l=g.length-2;u<=l;){var h=u+l>>1,I=h+(1&h),f=t.fetchIfRef(g[I]);if(e<f)l=I-2;else{if(!(e>f))return g[I+1];u=I+2}}return null}},{key:"get",value:function(e){return this.xref.fetchIfRef(this.getRaw(e))}}])}(),UC=function(e){function t(e,r){return xC(this,t),mC(this,t,[e,r,"Names"])}return kC(t,LC),GC(t)}(),MC=function(e){function t(e,r){return xC(this,t),mC(this,t,[e,r,"Nums"])}return kC(t,LC),GC(t)}();function JC(){hl=Object.create(null),Ge=Object.create(null),Ne=Object.create(null),Le=Object.create(null),Ec.clear(),Va.cleanup()}function HC(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,YC(A.key),A)}}function YC(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function PC(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function OC(e){return e instanceof He?e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null:null}var KC=new WeakMap,TC=function(){return function(e,t,r){return t&&HC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r){var A,n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(this,KC,!1),t instanceof He&&(this.xref=r,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),t.has("RF")&&q("Related file specifications are not supported"),i||(t.has("EF")?(n=this,(A=KC).set(PC(A,n),!0)):q("Non-embedded file specifications are not supported")))}),[{key:"filename",get:function(){var e="",t=OC(this.root);return t&&"string"==typeof t&&(e=Ie(t).replaceAll("\\\\\\\\","\\\\").replaceAll("\\\\/","/").replaceAll("\\\\","/")),_(this,"filename",e||"unnamed")}},{key:"content",get:function(){var e,t;if(this,!(t=KC).get(PC(t,this)))return null;this._contentRef||(this._contentRef=OC(null===(e=this.root)||void 0===e?void 0:e.get("EF")));var r=null;if(this._contentRef){var A=this.xref.fetchIfRef(this._contentRef);A instanceof ze?r=A.getBytes():q("Embedded file specification points to non-existing/invalid content")}else q("Embedded file specification does not have any content");return r}},{key:"description",get:function(){var e,t="",r=null===(e=this.root)||void 0===e?void 0:e.get("Desc");return r&&"string"==typeof r&&(t=Ie(r)),_(this,"description",t)}},{key:"serializable",get:function(){return{rawFilename:this.filename,filename:(e=this.filename,e.substring(e.lastIndexOf("/")+1)),content:this.content,description:this.description};var e}}])}();function qC(e,t,r){return t=WC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,jC()?Reflect.construct(t,r||[],WC(e).constructor):t.apply(e,r))}function jC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jC=function(){return!!e})()}function WC(e){return WC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WC(e)}function ZC(e,t){return ZC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZC(e,t)}function _C(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=VC(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function XC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||VC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VC(e,t){if(e){if("string"==typeof e)return zC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zC(e,t):void 0}}function zC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function $C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eB(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,rB(A.key),A)}}function tB(e,t,r){return t&&eB(e.prototype,t),r&&eB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rB(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}r(9210);function AB(e,t){var r=e[t];return" "===r||"\\n"===r||"\\r"===r||"\\t"===r}var nB=function(){return tB((function e(){$C(this,e)}),[{key:"_resolveEntities",value:function(e){var t=this;return e.replaceAll(/&([^;]+);/g,(function(e,r){if("#x"===r.substring(0,2))return String.fromCodePoint(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCodePoint(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return\'"\';case"apos":return"\'"}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],A=t;function n(){for(;A<e.length&&AB(e,A);)++A}for(;A<e.length&&!AB(e,A)&&">"!==e[A]&&"/"!==e[A];)++A;var i=e.substring(t,A);for(n();A<e.length&&">"!==e[A]&&"/"!==e[A]&&"?"!==e[A];){n();for(var a,o="";A<e.length&&!AB(e,A)&&"="!==e[A];)o+=e[A],++A;if(n(),"="!==e[A])return null;++A,n();var s=e[A];if(\'"\'!==s&&"\'"!==s)return null;var c=e.indexOf(s,++A);if(c<0)return null;a=e.substring(A,c),r.push({name:o,value:this._resolveEntities(a)}),A=c+1,n()}return{name:i,attributes:r,parsed:A-t}}},{key:"_parseProcessingInstruction",value:function(e,t){for(var r=t;r<e.length&&!AB(e,r)&&">"!==e[r]&&"?"!==e[r]&&"/"!==e[r];)++r;var A=e.substring(t,r);!function(){for(;r<e.length&&AB(e,r);)++r}();for(var n=r;r<e.length&&("?"!==e[r]||">"!==e[r+1]);)++r;return{name:A,value:e.substring(n,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var r=t;if("<"===e[t]){var A=void 0;switch(e[++r]){case"/":if(++r,(A=e.indexOf(">",r))<0)return void this.onError(-9);this.onEndElement(e.substring(r,A)),r=A+1;break;case"?":++r;var n=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+n.parsed,r+n.parsed+2))return void this.onError(-3);this.onPi(n.name,n.value),r+=n.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if((A=e.indexOf("--\\x3e",r+3))<0)return void this.onError(-5);this.onComment(e.substring(r+3,A)),r=A+3}else if("[CDATA["===e.substring(r+1,r+8)){if((A=e.indexOf("]]>",r+8))<0)return void this.onError(-2);this.onCdata(e.substring(r+8,A)),r=A+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(-6);var i=e.indexOf("[",r+8),a=!1;if((A=e.indexOf(">",r+8))<0)return void this.onError(-4);if(i>0&&A>i){if((A=e.indexOf("]>",r+8))<0)return void this.onError(-4);a=!0}var o=e.substring(r+8,A+(a?1:0));this.onDoctype(o),r=A+(a?2:1)}break;default:var s=this._parseContent(e,r);if(null===s)return void this.onError(-6);var c=!1;if("/>"===e.substring(r+s.parsed,r+s.parsed+2))c=!0;else if(">"!==e.substring(r+s.parsed,r+s.parsed+1))return void this.onError(-9);this.onBeginElement(s.name,s.attributes,c),r+=s.parsed+(c?2:1)}}else{for(;r<e.length&&"<"!==e[r];)r++;var g=e.substring(t,r);this.onText(this._resolveEntities(g))}t=r}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}])}(),iB=function(){return tB((function e(t,r){$C(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}),[{key:"firstChild",get:function(){var e;return null===(e=this.childNodes)||void 0===e?void 0:e[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}},{key:"children",get:function(){return this.childNodes||[]}},{key:"hasChildNodes",value:function(){var e;return(null===(e=this.childNodes)||void 0===e?void 0:e.length)>0}},{key:"searchNode",value:function(e,t){if(t>=e.length)return this;var r=e[t];if(r.name.startsWith("#")&&t<e.length-1)return this.searchNode(e,t+1);for(var A=[],n=this;;){var i;if(r.name===n.nodeName){if(0!==r.pos){if(0===A.length)return null;var a,o=0,s=_C(XC(A.pop(),1)[0].childNodes);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(r.name===c.nodeName){if(o===r.pos)return c.searchNode(e,t+1);o++}}}catch(e){s.e(e)}finally{s.f()}return n.searchNode(e,t+1)}var g=n.searchNode(e,t+1);if(null!==g)return g}if((null===(i=n.childNodes)||void 0===i?void 0:i.length)>0)A.push([n,0]),n=n.childNodes[0];else{if(0===A.length)return null;for(;0!==A.length;){var u=XC(A.pop(),2),l=u[0],h=u[1]+1;if(h<l.childNodes.length){A.push([l,h]),n=l.childNodes[h];break}}if(0===A.length)return null}}}},{key:"dump",value:function(e){if("#text"!==this.nodeName){if(e.push("<".concat(this.nodeName)),this.attributes){var t,r=_C(this.attributes);try{for(r.s();!(t=r.n()).done;){var A=t.value;e.push(" ".concat(A.name,\'="\').concat(Yt(A.value),\'"\'))}}catch(e){r.e(e)}finally{r.f()}}if(this.hasChildNodes()){e.push(">");var n,i=_C(this.childNodes);try{for(i.s();!(n=i.n()).done;)n.value.dump(e)}catch(e){i.e(e)}finally{i.f()}e.push("</".concat(this.nodeName,">"))}else this.nodeValue?e.push(">".concat(Yt(this.nodeValue),"</").concat(this.nodeName,">")):e.push("/>")}else e.push(Yt(this.nodeValue))}}])}(),aB=function(e){function t(e){var r,A=e.hasAttributes,n=void 0!==A&&A,i=e.lowerCaseName,a=void 0!==i&&i;return $C(this,t),(r=qC(this,t))._currentFragment=null,r._stack=null,r._errorCode=0,r._hasAttributes=n,r._lowerCaseName=a,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZC(e,t)}(t,nB),tB(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),0===this._errorCode){var t=XC(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onText",value:function(e){if(!function(e){for(var t=0,r=e.length;t<r;t++)if(!AB(e,t))return!1;return!0}(e)){var t=new iB("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new iB("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){this._lowerCaseName&&(e=e.toLowerCase());var A=new iB(e);A.childNodes=[],this._hasAttributes&&(A.attributes=t),this._currentFragment.push(A),r||(this._stack.push(this._currentFragment),this._currentFragment=A.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment.at(-1);if(!t)return null;var r,A=_C(t.childNodes);try{for(A.s();!(r=A.n()).done;)r.value.parentNode=t}catch(e){A.e(e)}finally{A.f()}return t}},{key:"onError",value:function(e){this._errorCode=e}}])}();function oB(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sB(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function sB(e,t){if(e){if("string"==typeof e)return cB(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cB(e,t):void 0}}function cB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function gB(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,uB(A.key),A)}}function uB(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var lB=function(){return function(e,t,r){return t&&gB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this._repair(t);var r=new aB({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,r&&this._parse(r)}),[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\\\376\\\\377([^<]+)/g,(function(e,t){for(var r=t.replaceAll(/\\\\([0-3])([0-7])([0-7])/g,(function(e,t,r,A){return String.fromCharCode(64*t+8*r+1*A)})).replaceAll(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"\'";case"gt":return">";case"lt":return"<";case"quot":return\'"\'}throw new Error("_repair: ".concat(t," isn\'t defined."))})),A=[">"],n=0,i=r.length;n<i;n+=2){var a=256*r.charCodeAt(n)+r.charCodeAt(n+1);a>=32&&a<127&&60!==a&&62!==a&&38!==a?A.push(String.fromCharCode(a)):A.push("&#x"+(65536+a).toString(16).substring(1)+";")}return A.join("")}))}},{key:"_getSequence",value:function(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((function(e){return"rdf:li"===e.nodeName}))}},{key:"_parseArray",value:function(e){if(e.hasChildNodes()){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||sB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.childNodes,1)[0],r=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,r.map((function(e){return e.textContent.trim()})))}}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes()){var r,A=oB(t.childNodes);try{for(A.s();!(r=A.n()).done;){var n=r.value;if("rdf:description"===n.nodeName){var i,a=oB(n.childNodes);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.nodeName;switch(s){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(o);continue}this._metadataMap.set(s,o.textContent.trim())}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){A.e(e)}finally{A.f()}}}},{key:"serializable",get:function(){return{parsedData:this._metadataMap,rawData:this._data}}}])}();function hB(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,IB(A.key),A)}}function IB(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function fB(e,t,r){return t=BB(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,CB()?Reflect.construct(t,r||[],BB(e).constructor):t.apply(e,r))}function CB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CB=function(){return!!e})()}function BB(e){return BB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BB(e)}function QB(e,t){return QB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QB(e,t)}var EB=function(e){function t(e,r,A){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=fB(this,t,[r])).str=e,n.dict=e.dict,n.decrypt=A,n.nextChunk=null,n.initialized=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QB(e,t)}(t,XA),function(e,t,r){return t&&hB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"readBlock",value:function(){var e,t;if(this.initialized?t=this.nextChunk:(t=this.str.getBytes(512),this.initialized=!0),t&&0!==t.length){this.nextChunk=this.str.getBytes(512);var r=(null===(e=this.nextChunk)||void 0===e?void 0:e.length)>0;t=(0,this.decrypt)(t,!r);var A=this.bufferLength,n=A+t.length;this.ensureBuffer(n).set(t,A),this.bufferLength=n}else this.eof=!0}}])}();function dB(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function yB(e,t,r){return t=vB(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,pB()?Reflect.construct(t,r||[],vB(e).constructor):t.apply(e,r))}function pB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pB=function(){return!!e})()}function vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vB(e)}function mB(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wB(e,t)}function wB(e,t){return wB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wB(e,t)}function bB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kB(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,SB(A.key),A)}}function DB(e,t,r){return t&&kB(e.prototype,t),r&&kB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SB(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var FB=function(){return DB((function e(t){bB(this,e),this.a=0,this.b=0;for(var r=new Uint8Array(256),A=t.length,n=0;n<256;++n)r[n]=n;for(var i=0,a=0;i<256;++i){var o=r[i];a=a+o+t[i%A]&255,r[i]=r[a],r[a]=o}this.s=r}),[{key:"encryptBlock",value:function(e){for(var t=this.a,r=this.b,A=this.s,n=e.length,i=new Uint8Array(n),a=0;a<n;++a){var o=A[t=t+1&255],s=A[r=r+o&255];A[t]=s,A[r]=o,i[a]=e[a]^A[o+s&255]}return this.a=t,this.b=r,i}},{key:"decryptBlock",value:function(e){return this.encryptBlock(e)}},{key:"encrypt",value:function(e){return this.encryptBlock(e)}}])}(),xB=function(){var e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(r,A,n){var i,a,o=1732584193,s=-271733879,c=-1732584194,g=271733878,u=n+72&-64,l=new Uint8Array(u);for(i=0;i<n;++i)l[i]=r[A++];l[i++]=128;for(var h=u-8;i<h;)l[i++]=0;l[i++]=n<<3&255,l[i++]=n>>5&255,l[i++]=n>>13&255,l[i++]=n>>21&255,l[i++]=n>>>29&255,l[i++]=0,l[i++]=0,l[i++]=0;var I=new Int32Array(16);for(i=0;i<u;){for(a=0;a<16;++a,i+=4)I[a]=l[i]|l[i+1]<<8|l[i+2]<<16|l[i+3]<<24;var f=o,C=s,B=c,Q=g,E=void 0,d=void 0;for(a=0;a<64;++a){a<16?(E=C&B|~C&Q,d=a):a<32?(E=Q&C|~Q&B,d=5*a+1&15):a<48?(E=C^B^Q,d=3*a+5&15):(E=B^(C|~Q),d=7*a&15);var y=Q,p=f+E+t[a]+I[d]|0,v=e[a];Q=B,B=C,C=C+(p<<v|p>>>32-v)|0,f=y}o=o+f|0,s=s+C|0,c=c+B|0,g=g+Q|0}return new Uint8Array([255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255])}}(),RB=function(){return DB((function e(t,r){bB(this,e),this.high=0|t,this.low=0|r}),[{key:"and",value:function(e){this.high&=e.high,this.low&=e.low}},{key:"xor",value:function(e){this.high^=e.high,this.low^=e.low}},{key:"or",value:function(e){this.high|=e.high,this.low|=e.low}},{key:"shiftRight",value:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}},{key:"shiftLeft",value:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}},{key:"rotateRight",value:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}},{key:"not",value:function(){this.high=~this.high,this.low=~this.low}},{key:"add",value:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}},{key:"copyTo",value:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}},{key:"assign",value:function(e){this.high=e.high,this.low=e.low}}])}(),GB=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function A(t){return e(t,2)^e(t,13)^e(t,22)}function n(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}var a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(o,s,c){var g,u,l=1779033703,h=3144134277,I=1013904242,f=2773480762,C=1359893119,B=2600822924,Q=528734635,E=1541459225,d=64*Math.ceil((c+9)/64),y=new Uint8Array(d);for(g=0;g<c;++g)y[g]=o[s++];y[g++]=128;for(var p=d-8;g<p;)y[g++]=0;y[g++]=0,y[g++]=0,y[g++]=0,y[g++]=c>>>29&255,y[g++]=c>>21&255,y[g++]=c>>13&255,y[g++]=c>>5&255,y[g++]=c<<3&255;var v,m=new Uint32Array(64);for(g=0;g<d;){for(u=0;u<16;++u)m[u]=y[g]<<24|y[g+1]<<16|y[g+2]<<8|y[g+3],g+=4;for(u=16;u<64;++u)m[u]=0|(e(v=m[u-2],17)^e(v,19)^v>>>10)+m[u-7]+i(m[u-15])+m[u-16];var w=l,b=h,k=I,D=f,S=C,F=B,x=Q,R=E,G=void 0,N=void 0;for(u=0;u<64;++u)G=R+n(S)+t(S,F,x)+a[u]+m[u],N=A(w)+r(w,b,k),R=x,x=F,F=S,S=D+G|0,D=k,k=b,b=w,w=G+N|0;l=l+w|0,h=h+b|0,I=I+k|0,f=f+D|0,C=C+S|0,B=B+F|0,Q=Q+x|0,E=E+R|0}return new Uint8Array([l>>24&255,l>>16&255,l>>8&255,255&l,h>>24&255,h>>16&255,h>>8&255,255&h,I>>24&255,I>>16&255,I>>8&255,255&I,f>>24&255,f>>16&255,f>>8&255,255&f,C>>24&255,C>>16&255,C>>8&255,255&C,B>>24&255,B>>16&255,B>>8&255,255&B,Q>>24&255,Q>>16&255,Q>>8&255,255&Q,E>>24&255,E>>16&255,E>>8&255,255&E])}}(),NB=function(){function e(e,t,r,A,n){e.assign(t),e.and(r),n.assign(t),n.not(),n.and(A),e.xor(n)}function t(e,t,r,A,n){e.assign(t),e.and(r),n.assign(t),n.and(A),e.xor(n),n.assign(r),n.and(A),e.xor(n)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function A(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var a=[new RB(1116352408,3609767458),new RB(1899447441,602891725),new RB(3049323471,3964484399),new RB(3921009573,2173295548),new RB(961987163,4081628472),new RB(1508970993,3053834265),new RB(2453635748,2937671579),new RB(2870763221,3664609560),new RB(3624381080,2734883394),new RB(310598401,1164996542),new RB(607225278,1323610764),new RB(1426881987,3590304994),new RB(1925078388,4068182383),new RB(2162078206,991336113),new RB(2614888103,633803317),new RB(3248222580,3479774868),new RB(3835390401,2666613458),new RB(4022224774,944711139),new RB(264347078,2341262773),new RB(604807628,2007800933),new RB(770255983,1495990901),new RB(1249150122,1856431235),new RB(1555081692,3175218132),new RB(1996064986,2198950837),new RB(2554220882,3999719339),new RB(2821834349,766784016),new RB(2952996808,2566594879),new RB(3210313671,3203337956),new RB(3336571891,1034457026),new RB(3584528711,2466948901),new RB(113926993,3758326383),new RB(338241895,168717936),new RB(666307205,1188179964),new RB(773529912,1546045734),new RB(1294757372,1522805485),new RB(1396182291,2643833823),new RB(1695183700,2343527390),new RB(1986661051,1014477480),new RB(2177026350,1206759142),new RB(2456956037,344077627),new RB(2730485921,1290863460),new RB(2820302411,3158454273),new RB(3259730800,3505952657),new RB(3345764771,106217008),new RB(3516065817,3606008344),new RB(3600352804,1432725776),new RB(4094571909,1467031594),new RB(275423344,851169720),new RB(430227734,3100823752),new RB(506948616,1363258195),new RB(659060556,3750685593),new RB(883997877,3785050280),new RB(958139571,3318307427),new RB(1322822218,3812723403),new RB(1537002063,2003034995),new RB(1747873779,3602036899),new RB(1955562222,1575990012),new RB(2024104815,1125592928),new RB(2227730452,2716904306),new RB(2361852424,442776044),new RB(2428436474,593698344),new RB(2756734187,3733110249),new RB(3204031479,2999351573),new RB(3329325298,3815920427),new RB(3391569614,3928383900),new RB(3515267271,566280711),new RB(3940187606,3454069534),new RB(4118630271,4000239992),new RB(116418474,1914138554),new RB(174292421,2731055270),new RB(289380356,3203993006),new RB(460393269,320620315),new RB(685471733,587496836),new RB(852142971,1086792851),new RB(1017036298,365543100),new RB(1126000580,2618297676),new RB(1288033470,3409855158),new RB(1501505948,4234509866),new RB(1607167915,987167468),new RB(1816402316,1246189591)];return function(o,s,c){var g,u,l,h,I,f,C,B,Q=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Q?(g=new RB(3418070365,3238371032),u=new RB(1654270250,914150663),l=new RB(2438529370,812702999),h=new RB(355462360,4144912697),I=new RB(1731405415,4290775857),f=new RB(2394180231,1750603025),C=new RB(3675008525,1694076839),B=new RB(1203062813,3204075428)):(g=new RB(1779033703,4089235720),u=new RB(3144134277,2227873595),l=new RB(1013904242,4271175723),h=new RB(2773480762,1595750129),I=new RB(1359893119,2917565137),f=new RB(2600822924,725511199),C=new RB(528734635,4215389547),B=new RB(1541459225,327033209));var E,d,y=128*Math.ceil((c+17)/128),p=new Uint8Array(y);for(E=0;E<c;++E)p[E]=o[s++];p[E++]=128;for(var v=y-16;E<v;)p[E++]=0;p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=0,p[E++]=c>>>29&255,p[E++]=c>>21&255,p[E++]=c>>13&255,p[E++]=c>>5&255,p[E++]=c<<3&255;var m=new Array(80);for(E=0;E<80;E++)m[E]=new RB(0,0);var w,b,k=new RB(0,0),D=new RB(0,0),S=new RB(0,0),F=new RB(0,0),x=new RB(0,0),R=new RB(0,0),G=new RB(0,0),N=new RB(0,0),L=new RB(0,0),U=new RB(0,0),M=new RB(0,0),J=new RB(0,0);for(E=0;E<y;){for(d=0;d<16;++d)m[d].high=p[E]<<24|p[E+1]<<16|p[E+2]<<8|p[E+3],m[d].low=p[E+4]<<24|p[E+5]<<16|p[E+6]<<8|p[E+7],E+=8;for(d=16;d<80;++d)i(w=m[d],m[d-2],J),w.add(m[d-7]),n(M,m[d-15],J),w.add(M),w.add(m[d-16]);for(k.assign(g),D.assign(u),S.assign(l),F.assign(h),x.assign(I),R.assign(f),G.assign(C),N.assign(B),d=0;d<80;++d)L.assign(N),A(M,x,J),L.add(M),e(M,x,R,G,J),L.add(M),L.add(a[d]),L.add(m[d]),r(U,k,J),t(M,k,D,S,J),U.add(M),w=N,N=G,G=R,R=x,F.add(L),x=F,F=S,S=D,D=k,w.assign(L),w.add(U),k=w;g.add(k),u.add(D),l.add(S),h.add(F),I.add(x),f.add(R),C.add(G),B.add(N)}return Q?(b=new Uint8Array(48),g.copyTo(b,0),u.copyTo(b,8),l.copyTo(b,16),h.copyTo(b,24),I.copyTo(b,32),f.copyTo(b,40)):(b=new Uint8Array(64),g.copyTo(b,0),u.copyTo(b,8),l.copyTo(b,16),h.copyTo(b,24),I.copyTo(b,32),f.copyTo(b,40),C.copyTo(b,48),B.copyTo(b,56)),b}}(),LB=function(){return DB((function e(){bB(this,e)}),[{key:"decryptBlock",value:function(e){return e}},{key:"encrypt",value:function(e){return e}}])}(),UB=function(){return DB((function e(){bB(this,e),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}),[{key:"_expandKey",value:function(e){j("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function(e,t){var r,A,n,i=new Uint8Array(16);i.set(e);for(var a=0,o=this._keySize;a<16;++a,++o)i[a]^=t[o];for(var s=this._cyclesOfRepetition-1;s>=1;--s){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],A=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=A,r=i[15],A=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=A,i[3]=n;for(var c=0;c<16;++c)i[c]=this._inv_s[i[c]];for(var g=0,u=16*s;g<16;++g,++u)i[g]^=t[u];for(var l=0;l<16;l+=4){var h=this._mix[i[l]],I=this._mix[i[l+1]],f=this._mix[i[l+2]],C=this._mix[i[l+3]];r=h^I>>>8^I<<24^f>>>16^f<<16^C>>>24^C<<8,i[l]=r>>>24&255,i[l+1]=r>>16&255,i[l+2]=r>>8&255,i[l+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],A=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=A,r=i[15],A=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=A,i[3]=n;for(var B=0;B<16;++B)i[B]=this._inv_s[i[B]],i[B]^=t[B];return i}},{key:"_encrypt",value:function(e,t){var r,A,n,i=this._s,a=new Uint8Array(16);a.set(e);for(var o=0;o<16;++o)a[o]^=t[o];for(var s=1;s<this._cyclesOfRepetition;s++){for(var c=0;c<16;++c)a[c]=i[a[c]];n=a[1],a[1]=a[5],a[5]=a[9],a[9]=a[13],a[13]=n,n=a[2],A=a[6],a[2]=a[10],a[6]=a[14],a[10]=n,a[14]=A,n=a[3],A=a[7],r=a[11],a[3]=a[15],a[7]=n,a[11]=A,a[15]=r;for(var g=0;g<16;g+=4){var u=a[g+0],l=a[g+1],h=a[g+2],I=a[g+3];r=u^l^h^I,a[g+0]^=r^this._mixCol[u^l],a[g+1]^=r^this._mixCol[l^h],a[g+2]^=r^this._mixCol[h^I],a[g+3]^=r^this._mixCol[I^u]}for(var f=0,C=16*s;f<16;++f,++C)a[f]^=t[C]}for(var B=0;B<16;++B)a[B]=i[a[B]];n=a[1],a[1]=a[5],a[5]=a[9],a[9]=a[13],a[13]=n,n=a[2],A=a[6],a[2]=a[10],a[6]=a[14],a[10]=n,a[14]=A,n=a[3],A=a[7],r=a[11],a[3]=a[15],a[7]=n,a[11]=A,a[15]=r;for(var Q=0,E=this._keySize;Q<16;++Q,++E)a[Q]^=t[E];return a}},{key:"_decryptBlock2",value:function(e,t){for(var r=e.length,A=this.buffer,n=this.bufferPosition,i=[],a=this.iv,o=0;o<r;++o)if(A[n]=e[o],!(++n<16)){for(var s=this._decrypt(A,this._key),c=0;c<16;++c)s[c]^=a[c];a=A,i.push(s),A=new Uint8Array(16),n=0}if(this.buffer=A,this.bufferLength=n,this.iv=a,0===i.length)return new Uint8Array(0);var g=16*i.length;if(t){var u=i.at(-1),l=u[15];if(l<=16){for(var h=15,I=16-l;h>=I;--h)if(u[h]!==l){l=0;break}g-=l,i[i.length-1]=u.subarray(0,16-l)}}for(var f=new Uint8Array(g),C=0,B=0,Q=i.length;C<Q;++C,B+=16)f.set(i[C],B);return f}},{key:"decryptBlock",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,A=e.length,n=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var a=0;i<16&&a<A;++a,++i)n[i]=e[a];if(i<16)return this.bufferLength=i,new Uint8Array(0);this.iv=n,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}},{key:"encrypt",value:function(e,t){var r=e.length,A=this.buffer,n=this.bufferPosition,i=[];t||(t=new Uint8Array(16));for(var a=0;a<r;++a)if(A[n]=e[a],!(++n<16)){for(var o=0;o<16;++o)A[o]^=t[o];var s=this._encrypt(A,this._key);t=s,i.push(s),A=new Uint8Array(16),n=0}if(this.buffer=A,this.bufferLength=n,this.iv=t,0===i.length)return new Uint8Array(0);for(var c=16*i.length,g=new Uint8Array(c),u=0,l=0,h=i.length;u<h;++u,l+=16)g.set(i[u],l);return g}}])}(),MB=function(e){function t(e){var r;return bB(this,t),(r=yB(this,t))._cyclesOfRepetition=10,r._keySize=160,r._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),r._key=r._expandKey(e),r}return mB(t,UB),DB(t,[{key:"_expandKey",value:function(e){var t=this._s,r=this._rcon,A=new Uint8Array(176);A.set(e);for(var n=16,i=1;n<176;++i){var a=A[n-3],o=A[n-2],s=A[n-1],c=A[n-4];a=t[a],o=t[o],s=t[s],c=t[c],a^=r[i];for(var g=0;g<4;++g)A[n]=a^=A[n-16],A[++n]=o^=A[n-16],A[++n]=s^=A[n-16],A[++n]=c^=A[n-16],n++}return A}}])}(),JB=function(e){function t(e){var r;return bB(this,t),(r=yB(this,t))._cyclesOfRepetition=14,r._keySize=224,r._key=r._expandKey(e),r}return mB(t,UB),DB(t,[{key:"_expandKey",value:function(e){var t=this._s,r=new Uint8Array(240);r.set(e);for(var A,n,i,a,o=1,s=32,c=1;s<240;++c){s%32==16?(A=t[A],n=t[n],i=t[i],a=t[a]):s%32==0&&(A=r[s-3],n=r[s-2],i=r[s-1],a=r[s-4],A=t[A],n=t[n],i=t[i],a=t[a],A^=o,(o<<=1)>=256&&(o=255&(27^o)));for(var g=0;g<4;++g)r[s]=A^=r[s-32],r[++s]=n^=r[s-32],r[++s]=i^=r[s-32],r[++s]=a^=r[s-32],s++}return r}}])}(),HB=function(){return DB((function e(){bB(this,e)}),[{key:"checkOwnerPassword",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);return n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length),Be(GB(n,0,n.length),A)}},{key:"checkUserPassword",value:function(e,t,r){var A=new Uint8Array(e.length+8);return A.set(e,0),A.set(t,e.length),Be(GB(A,0,A.length),r)}},{key:"getOwnerKey",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length);var i=GB(n,0,n.length);return new JB(i).decryptBlock(A,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var A=new Uint8Array(e.length+8);A.set(e,0),A.set(t,e.length);var n=GB(A,0,A.length);return new JB(n).decryptBlock(r,!1,new Uint8Array(16))}}])}(),YB=function(){return DB((function e(){bB(this,e)}),[{key:"_hash",value:function(e,t,r){for(var A,n,i=GB(t,0,t.length).subarray(0,32),a=[0],o=0;o<64||a.at(-1)>o-32;){var s=e.length+i.length+r.length,c=new Uint8Array(s),g=0;c.set(e,g),g+=e.length,c.set(i,g),g+=i.length,c.set(r,g);for(var u=new Uint8Array(64*s),l=0,h=0;l<64;l++,h+=s)u.set(c,h);var I=(a=new MB(i.subarray(0,16)).encrypt(u,i.subarray(16,32))).slice(0,16).reduce((function(e,t){return e+t}),0)%3;0===I?i=GB(a,0,a.length):1===I?(A=a,0,n=a.length,i=NB(A,0,n,!0)):2===I&&(i=NB(a,0,a.length)),o++}return i.subarray(0,32)}},{key:"checkOwnerPassword",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);return n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length),Be(this._hash(e,n,r),A)}},{key:"checkUserPassword",value:function(e,t,r){var A=new Uint8Array(e.length+8);return A.set(e,0),A.set(t,e.length),Be(this._hash(e,A,[]),r)}},{key:"getOwnerKey",value:function(e,t,r,A){var n=new Uint8Array(e.length+56);n.set(e,0),n.set(t,e.length),n.set(r,e.length+t.length);var i=this._hash(e,n,r);return new JB(i).decryptBlock(A,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var A=new Uint8Array(e.length+8);A.set(e,0),A.set(t,e.length);var n=this._hash(e,A,[]);return new JB(n).decryptBlock(r,!1,new Uint8Array(16))}}])}(),PB=function(){return DB((function e(t,r){bB(this,e),this.StringCipherConstructor=t,this.StreamCipherConstructor=r}),[{key:"createStream",value:function(e,t){var r=new this.StreamCipherConstructor;return new EB(e,t,(function(e,t){return r.decryptBlock(e,t)}))}},{key:"decryptString",value:function(e){var t=new this.StringCipherConstructor,r=ie(e);return ne(r=t.decryptBlock(r,!0))}},{key:"encryptString",value:function(e){var t=new this.StringCipherConstructor;if(t instanceof UB){var r=16-e.length%16;e+=String.fromCharCode(r).repeat(r);var A=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(A);else for(var n=0;n<16;n++)A[n]=Math.floor(256*Math.random());var i=ie(e);i=t.encrypt(i,A);var a=new Uint8Array(16+i.length);return a.set(A),a.set(i,16),ne(a)}var o=ie(e);return ne(o=t.encrypt(o))}}])}(),OB=new WeakSet,KB=function(){return DB((function e(t,r,A){bB(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,OB);var n=t.get("Filter");if(!Ke(n,"Standard"))throw new re("unknown encryption method");this.filterName=n.name,this.dict=t;var i=t.get("V");if(!Number.isInteger(i)||1!==i&&2!==i&&4!==i&&5!==i)throw new re("unsupported encryption algorithm");this.algorithm=i;var a=t.get("Length");if(!a)if(i<=3)a=40;else{var o=t.get("CF"),s=t.get("StmF");if(o instanceof He&&s instanceof Ue){o.suppressEncryption=!0;var c=o.get(s.name);(a=(null==c?void 0:c.get("Length"))||128)<40&&(a<<=3)}}if(!Number.isInteger(a)||a<40||a%8!=0)throw new re("invalid key length");var g=ie(t.get("O")),u=ie(t.get("U")),l=g.subarray(0,32),h=u.subarray(0,32),I=t.get("P"),f=t.get("R"),C=(4===i||5===i)&&!1!==t.get("EncryptMetadata");this.encryptMetadata=C;var B,Q,E=ie(r);if(A){if(6===f)try{A=Ce(A)}catch(e){q("CipherTransformFactory: Unable to convert UTF8 encoded password.")}B=ie(A)}if(5!==i)Q=dB(OB,this,qB).call(this,E,B,l,h,I,f,a,C);else{var d=g.subarray(32,40),y=g.subarray(40,48),p=u.subarray(0,48),v=u.subarray(32,40),m=u.subarray(40,48),w=ie(t.get("OE")),b=ie(t.get("UE")),k=ie(t.get("Perms"));Q=dB(OB,this,TB).call(this,f,B,l,d,y,p,h,v,m,w,b,k)}if(!Q&&!A)throw new V("No password given",1);if(!Q&&A){var D=dB(OB,this,jB).call(this,B,l,f,a);Q=dB(OB,this,qB).call(this,E,D,l,h,I,f,a,C)}if(!Q)throw new V("Incorrect Password",2);if(this.encryptionKey=Q,i>=4){var S=t.get("CF");S instanceof He&&(S.suppressEncryption=!0),this.cf=S,this.stmf=t.get("StmF")||Ue.get("Identity"),this.strf=t.get("StrF")||Ue.get("Identity"),this.eff=t.get("EFF")||this.stmf}}),[{key:"createCipherTransform",value:function(e,t){if(4===this.algorithm||5===this.algorithm)return new PB(dB(OB,this,ZB).call(this,this.cf,this.strf,e,t,this.encryptionKey),dB(OB,this,ZB).call(this,this.cf,this.stmf,e,t,this.encryptionKey));var r=dB(OB,this,WB).call(this,e,t,this.encryptionKey,!1),A=function(){return new FB(r)};return new PB(A,A)}}])}();function TB(e,t,r,A,n,i,a,o,s,c,g,u){if(t){var l=Math.min(127,t.length);t=t.subarray(0,l)}else t=[];var h=6===e?new YB:new HB;return h.checkUserPassword(t,o,a)?h.getUserKey(t,s,g):t.length&&h.checkOwnerPassword(t,A,i,r)?h.getOwnerKey(t,n,i,c):null}function qB(e,t,r,A,n,i,a,o){var s,c,g=40+r.length+e.length,u=new Uint8Array(g),l=0;if(t)for(c=Math.min(32,t.length);l<c;++l)u[l]=t[l];for(s=0;l<32;)u[l++]=XB._[s++];for(s=0,c=r.length;s<c;++s)u[l++]=r[s];for(u[l++]=255&n,u[l++]=n>>8&255,u[l++]=n>>16&255,u[l++]=n>>>24&255,s=0,c=e.length;s<c;++s)u[l++]=e[s];i>=4&&!o&&(u[l++]=255,u[l++]=255,u[l++]=255,u[l++]=255);var h=xB(u,0,l),I=a>>3;if(i>=3)for(s=0;s<50;++s)h=xB(h,0,I);var f,C=h.subarray(0,I);if(i>=3){for(l=0;l<32;++l)u[l]=XB._[l];for(s=0,c=e.length;s<c;++s)u[l++]=e[s];f=new FB(C).encryptBlock(xB(u,0,l)),c=C.length;var B=new Uint8Array(c);for(s=1;s<=19;++s){for(var Q=0;Q<c;++Q)B[Q]=C[Q]^s;f=new FB(B).encryptBlock(f)}for(s=0,c=f.length;s<c;++s)if(A[s]!==f[s])return null}else for(s=0,c=(f=new FB(C).encryptBlock(XB._)).length;s<c;++s)if(A[s]!==f[s])return null;return C}function jB(e,t,r,A){for(var n=new Uint8Array(32),i=0,a=Math.min(32,e.length);i<a;++i)n[i]=e[i];for(var o=0;i<32;)n[i++]=XB._[o++];var s,c=xB(n,0,i),g=A>>3;if(r>=3)for(o=0;o<50;++o)c=xB(c,0,c.length);if(r>=3){s=t;var u=new Uint8Array(g);for(o=19;o>=0;o--){for(var l=0;l<g;++l)u[l]=c[l]^o;s=new FB(u).encryptBlock(s)}}else s=new FB(c.subarray(0,g)).encryptBlock(t);return s}function WB(e,t,r){var A,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Uint8Array(r.length+9),a=r.length;for(A=0;A<a;++A)i[A]=r[A];return i[A++]=255&e,i[A++]=e>>8&255,i[A++]=e>>16&255,i[A++]=255&t,i[A++]=t>>8&255,n&&(i[A++]=115,i[A++]=65,i[A++]=108,i[A++]=84),xB(i,0,A).subarray(0,Math.min(r.length+5,16))}function ZB(e,t,r,A,n){if(!(t instanceof Ue))throw new re("Invalid crypt filter name.");var i=this,a=e.get(t.name),o=null==a?void 0:a.get("CFM");if(!o||"None"===o.name)return function(){return new LB};if("V2"===o.name)return function(){return new FB(dB(OB,i,WB).call(i,r,A,n,!1))};if("AESV2"===o.name)return function(){return new MB(dB(OB,i,WB).call(i,r,A,n,!0))};if("AESV3"===o.name)return function(){return new JB(n)};throw new re("Unknown crypto method")}var _B,XB={_:new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122])};function VB(e){return function(e){if(Array.isArray(e))return rQ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tQ(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||tQ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $B(){$B=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function eQ(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=tQ(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function tQ(e,t){if(e){if("string"==typeof e)return rQ(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rQ(e,t):void 0}}function rQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function AQ(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function nQ(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){AQ(i,A,n,a,o,"next",e)}function o(e){AQ(i,A,n,a,o,"throw",e)}a(void 0)}))}}function iQ(e,t,r,A){return aQ.apply(this,arguments)}function aQ(){return(aQ=nQ($B().mark((function e(t,r,A,n){var i,a,o;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.encrypt,o=null==(a=void 0===i?null:i)?void 0:a.createCipherTransform(t.num,t.gen),A.push("".concat(t.num," ").concat(t.gen," obj\\n")),!(r instanceof He)){e.next=8;break}return e.next=6,oQ(r,A,o);case 6:e.next=16;break;case 8:if(!(r instanceof ze)){e.next=13;break}return e.next=11,cQ(r,A,o);case 11:e.next=16;break;case 13:if(!Array.isArray(r)&&!ArrayBuffer.isView(r)){e.next=16;break}return e.next=16,uQ(r,A,o);case 16:A.push("\\nendobj\\n");case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oQ(e,t,r){return sQ.apply(this,arguments)}function sQ(){return(sQ=nQ($B().mark((function e(t,r,A){var n,i,a;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.push("<<"),n=eQ(t.getKeys()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=11;break}return a=i.value,r.push(" /".concat(Nt(a)," ")),e.next=9,hQ(t.getRaw(a),r,A);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:r.push(">>");case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}function cQ(e,t,r){return gQ.apply(this,arguments)}function gQ(){return(gQ=nQ($B().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getBytes(),i=t.dict,e.next=4,Promise.all([i.getAsync("Filter"),i.getAsync("DecodeParms")]);case 4:if(a=e.sent,o=zB(a,2),s=o[0],c=o[1],!Array.isArray(s)){e.next=14;break}return e.next=11,i.xref.fetchIfRefAsync(s[0]);case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=s;case 15:if(g=e.t0,u=Ke(g,"FlateDecode"),!(n.length>=256||u)){e.next=37;break}return e.prev=19,l=new CompressionStream("deflate"),h=l.writable.getWriter(),e.next=24,h.ready;case 24:return h.write(n).then(nQ($B().mark((function e(){return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.ready;case 2:return e.next=4,h.close();case 4:case"end":return e.stop()}}),e)})))).catch((function(){})),e.next=27,new Response(l.readable).arrayBuffer();case 27:I=e.sent,n=new Uint8Array(I),s?u||(f=Array.isArray(s)?[Ue.get("FlateDecode")].concat(VB(s)):[Ue.get("FlateDecode"),s],c&&(C=Array.isArray(c)?[null].concat(VB(c)):[null,c])):f=Ue.get("FlateDecode"),f&&i.set("Filter",f),C&&i.set("DecodeParms",C),e.next=37;break;case 34:e.prev=34,e.t1=e.catch(19),T(\'writeStream - cannot compress data: "\'.concat(e.t1,\'".\'));case 37:return B=ne(n),A&&(B=A.encryptString(B)),i.set("Length",B.length),e.next=42,oQ(i,r,A);case 42:r.push(" stream\\n",B,"\\nendstream");case 43:case"end":return e.stop()}}),e,null,[[19,34]])})))).apply(this,arguments)}function uQ(e,t,r){return lQ.apply(this,arguments)}function lQ(){return(lQ=nQ($B().mark((function e(t,r,A){var n,i,a,o;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.push("["),n=!0,i=eQ(t),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=12;break}return o=a.value,n?n=!1:r.push(" "),e.next=10,hQ(o,r,A);case 10:e.next=5;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:r.push("]");case 21:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})))).apply(this,arguments)}function hQ(e,t,r){return IQ.apply(this,arguments)}function IQ(){return(IQ=nQ($B().mark((function e(t,r,A){return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Ue)){e.next=4;break}r.push("/".concat(Nt(t.name))),e.next=37;break;case 4:if(!(t instanceof Ye)){e.next=8;break}r.push("".concat(t.num," ").concat(t.gen," R")),e.next=37;break;case 8:if(!Array.isArray(t)&&!ArrayBuffer.isView(t)){e.next=13;break}return e.next=11,uQ(t,r,A);case 11:e.next=37;break;case 13:if("string"!=typeof t){e.next=18;break}A&&(t=A.encryptString(t)),r.push("(".concat(Lt(t),")")),e.next=37;break;case 18:if("number"!=typeof t){e.next=22;break}r.push(Tt(t)),e.next=37;break;case 22:if("boolean"!=typeof t){e.next=26;break}r.push(t.toString()),e.next=37;break;case 26:if(!(t instanceof He)){e.next=31;break}return e.next=29,oQ(t,r,A);case 29:e.next=37;break;case 31:if(!(t instanceof ze)){e.next=36;break}return e.next=34,cQ(t,r,A);case 34:e.next=37;break;case 36:null===t?r.push("null"):q("Unhandled value in writer: ".concat(typeof t,", please file a bug."));case 37:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fQ(e,t,r,A){for(var n=t+r-1;n>r-1;n--)A[n]=255&e,e>>=8;return r+t}function CQ(e,t,r){for(var A=0,n=e.length;A<n;A++)r[t+A]=255&e.charCodeAt(A)}function BQ(e){return QQ.apply(this,arguments)}function QQ(){return(QQ=nQ($B().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.xref,A=t.acroForm,n=t.acroFormRef,i=t.hasXfa,a=t.hasXfaDatasetsEntry,o=t.xfaDatasetsRef,s=t.needAppearances,c=t.newRefs,!i||a||o||q("XFA - Cannot save it"),s||i&&o&&!a){e.next=4;break}return e.abrupt("return");case 4:return g=A.clone(),i&&!a&&((u=A.get("XFA").slice()).splice(2,0,"datasets"),u.splice(3,0,o),g.set("XFA",u)),s&&g.set("NeedAppearances",!0),l=[],e.next=10,iQ(n,g,l,r);case 10:c.push({ref:n,data:l.join("")});case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function EQ(e){var t=e.xfaData,r=e.xfaDatasetsRef,A=e.newRefs,n=e.xref;null===t&&(t=function(e,t){var r,A=new aB({hasAttributes:!0}).parseFromString(e),n=eQ(t);try{for(n.s();!(r=n.n()).done;){var i=r.value.xfa;if(i){var a=i.path,o=i.value;if(a){var s=Gt(a),c=A.documentElement.searchNode(s,0);!c&&s.length>1&&(c=A.documentElement.searchNode([s.at(-1)],0)),c?c.childNodes=Array.isArray(o)?o.map((function(e){return new iB("value",e)})):[new iB("#text",o)]:q("Node not found for path: ".concat(a))}}}}catch(e){n.e(e)}finally{n.f()}var g=[];return A.documentElement.dump(g),g.join("")}(n.fetchIfRef(r).getString(),A));var i=n.encrypt;i&&(t=i.createCipherTransform(r.num,r.gen).encryptString(t));var a="".concat(r.num," ").concat(r.gen," obj\\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\\nstream\\n")+t+"\\nendstream\\nendobj\\n";A.push({ref:r,data:a})}function dQ(e,t,r,A,n){return yQ.apply(this,arguments)}function yQ(){return(yQ=nQ($B().mark((function e(t,r,A,n,i){var a,o,s,c,g,u,l;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.push("xref\\n"),a=pQ(A),o=0,s=eQ(A);try{for(s.s();!(c=s.n()).done;)g=c.value,u=g.ref,l=g.data,u.num===a[o]&&(i.push("".concat(a[o]," ").concat(a[o+1],"\\n")),o+=2),null!==l?(i.push("".concat(r.toString().padStart(10,"0")," ").concat(Math.min(u.gen,65535).toString().padStart(5,"0")," n\\r\\n")),r+=l.length):i.push("0000000000 ".concat(Math.min(u.gen+1,65535).toString().padStart(5,"0")," f\\r\\n"))}catch(e){s.e(e)}finally{s.f()}return wQ(r,t,n),i.push("trailer\\n"),e.next=9,oQ(n,i);case 9:i.push("\\nstartxref\\n",r.toString(),"\\n%%EOF\\n");case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pQ(e){var t,r=[],A=eQ(e);try{for(A.s();!(t=A.n()).done;){var n=t.value.ref;n.num===r.at(-2)+r.at(-1)?r[r.length-1]+=1:r.push(n.num,1)}}catch(e){A.e(e)}finally{A.f()}return r}function vQ(e,t,r,A,n){return mQ.apply(this,arguments)}function mQ(){return(mQ=nQ($B().mark((function e(t,r,A,n,i){var a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],o=0,s=0,c=eQ(A);try{for(c.s();!(g=c.n()).done;)u=g.value,l=u.ref,h=u.data,I=void 0,o=Math.max(o,r),null!==h?(I=Math.min(l.gen,65535),a.push([1,r,I]),r+=h.length):(I=Math.min(l.gen+1,65535),a.push([0,0,I])),s=Math.max(s,I)}catch(e){c.e(e)}finally{c.f()}for(n.set("Index",pQ(A)),f=Xt(o),C=Xt(s),B=[1,f,C],n.set("W",B),wQ(r,t,n),Q=B.reduce((function(e,t){return e+t}),0),E=new Uint8Array(Q*a.length),(d=new ar(E)).dict=n,y=0,p=0,v=a;p<v.length;p++)m=zB(v[p],3),w=m[0],b=m[1],k=m[2],y=fQ(w,B[0],y,E),y=fQ(b,B[1],y,E),y=fQ(k,B[2],y,E);return e.next=19,iQ(t.newRef,d,i,{});case 19:i.push("startxref\\n",r.toString(),"\\n%%EOF\\n");case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wQ(e,t,r){if(Array.isArray(t.fileIds)&&t.fileIds.length>0){var A=function(e,t){for(var r=Math.floor(Date.now()/1e3),A=t.filename||"",n=[r.toString(),A,e.toString()],i=n.reduce((function(e,t){return e+t.length}),0),a=0,o=Object.values(t.info);a<o.length;a++){var s=o[a];n.push(s),i+=s.length}for(var c=new Uint8Array(i),g=0,u=0,l=n;u<l.length;u++){var h=l[u];CQ(h,g,c),g+=h.length}return ne(xB(c))}(e,t);r.set("ID",[t.fileIds[0],A])}}function bQ(e,t,r){var A=new He(null);A.set("Prev",e.startXRef);var n=e.newRef;return r?(t.push({ref:n,data:""}),A.set("Size",n.num+1),A.set("Type",Ue.get("XRef"))):A.set("Size",n.num),null!==e.rootRef&&A.set("Root",e.rootRef),null!==e.infoRef&&A.set("Info",e.infoRef),null!==e.encryptRef&&A.set("Encrypt",e.encryptRef),A}function kQ(e){return DQ.apply(this,arguments)}function DQ(){return(DQ=nQ($B().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N;return $B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.originalData,A=t.xrefInfo,n=t.newRefs,i=t.xref,a=void 0===i?null:i,o=t.hasXfa,s=void 0!==o&&o,c=t.xfaDatasetsRef,g=void 0===c?null:c,u=t.hasXfaDatasetsEntry,l=void 0!==u&&u,h=t.needAppearances,I=t.acroFormRef,f=void 0===I?null:I,C=t.acroForm,B=void 0===C?null:C,Q=t.xfaData,E=void 0===Q?null:Q,d=t.useXrefStream,y=void 0!==d&&d,e.next=3,BQ({xref:a,acroForm:B,acroFormRef:f,hasXfa:s,hasXfaDatasetsEntry:l,xfaDatasetsRef:g,needAppearances:h,newRefs:n});case 3:s&&EQ({xfaData:E,xfaDatasetsRef:g,newRefs:n,xref:a}),p=[],v=r.length,10!==(m=r.at(-1))&&13!==m&&(p.push("\\n"),v+=1),w=bQ(A,n,y),n=n.sort((function(e,t){return e.ref.num-t.ref.num})),b=eQ(n);try{for(b.s();!(k=b.n()).done;)null!==(D=k.value.data)&&p.push(D)}catch(e){b.e(e)}finally{b.f()}return e.next=14,y?vQ(A,v,n,w,p):dQ(A,v,n,w,p);case 14:for(S=p.reduce((function(e,t){return e+t.length}),r.length),(F=new Uint8Array(S)).set(r),x=r.length,R=0,G=p;R<G.length;R++)CQ(N=G[R],x,F),x+=N.length;return e.abrupt("return",F);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function SQ(){SQ=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function FQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||RQ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xQ(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=RQ(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function RQ(e,t){if(e){if("string"==typeof e)return GQ(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GQ(e,t):void 0}}function GQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function NQ(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function LQ(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){NQ(i,A,n,a,o,"next",e)}function o(e){NQ(i,A,n,a,o,"throw",e)}a(void 0)}))}}function UQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MQ(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,HQ(A.key),A)}}function JQ(e,t,r){return t&&MQ(e.prototype,t),r&&MQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HQ(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function YQ(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var PQ=new WeakSet,OQ=function(){function e(t,r){UQ(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,PQ),this.dict=t,this.ref=r instanceof Ye?r:null,this.roleMap=new Map,this.structParentIds=null}return JQ(e,[{key:"init",value:function(){this.readRoleMap()}},{key:"addAnnotationIdToPage",value:function(e,t){YQ(PQ,this,KQ).call(this,e,t,4)}},{key:"readRoleMap",value:function(){var e=this,t=this.dict.get("RoleMap");t instanceof He&&t.forEach((function(t,r){r instanceof Ue&&e.roleMap.set(t,r.name)}))}},{key:"canUpdateStructTree",value:(n=LQ(SQ().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G;return SQ().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A=r.pdfManager,n=r.xref,i=r.newAnnotationsByPage,this.ref){t.next=4;break}return q("Cannot update the struct tree: no root reference."),t.abrupt("return",!1);case 4:if(a=this.dict.get("ParentTreeNextKey"),Number.isInteger(a)&&!(a<0)){t.next=8;break}return q("Cannot update the struct tree: invalid next key."),t.abrupt("return",!1);case 8:if((o=this.dict.get("ParentTree"))instanceof He){t.next=12;break}return q("Cannot update the struct tree: ParentTree isn\'t a dict."),t.abrupt("return",!1);case 12:if(s=o.get("Nums"),Array.isArray(s)){t.next=16;break}return q("Cannot update the struct tree: nums isn\'t an array."),t.abrupt("return",!1);case 16:c=new MC(o,n),g=xQ(i.keys()),t.prev=18,g.s();case 20:if((u=g.n()).done){t.next=34;break}return l=u.value,t.next=24,A.getPage(l);case 24:if(h=t.sent,(I=h.pageDict).has("StructParents")){t.next=28;break}return t.abrupt("continue",32);case 28:if(f=I.get("StructParents"),Number.isInteger(f)&&Array.isArray(c.get(f))){t.next=32;break}return q("Cannot save the struct tree: page ".concat(l," has a wrong id.")),t.abrupt("return",!1);case 32:t.next=20;break;case 34:t.next=39;break;case 36:t.prev=36,t.t0=t.catch(18),g.e(t.t0);case 39:return t.prev=39,g.f(),t.finish(39);case 42:C=!0,B=xQ(i),t.prev=44,B.s();case 46:if((Q=B.n()).done){t.next=57;break}return E=FQ(Q.value,2),d=E[0],y=E[1],t.next=50,A.getPage(d);case 50:p=t.sent,v=p.pageDict,WQ.call(e,{elements:y,xref:this.dict.xref,pageDict:v,numberTree:c}),m=xQ(y);try{for(m.s();!(w=m.n()).done;)k=w.value,null!==(b=k.accessibilityData)&&void 0!==b&&b.type&&(k.accessibilityData.structParent>=0||(k.parentTreeId=a++),C=!1)}catch(e){m.e(e)}finally{m.f()}case 55:t.next=46;break;case 57:t.next=62;break;case 59:t.prev=59,t.t1=t.catch(44),B.e(t.t1);case 62:return t.prev=62,B.f(),t.finish(62);case 65:if(!C){t.next=69;break}D=xQ(i.values());try{for(D.s();!(S=D.n()).done;){F=S.value,x=xQ(F);try{for(x.s();!(R=x.n()).done;)delete(G=R.value).parentTreeId,delete G.structTreeParent}catch(e){x.e(e)}finally{x.f()}}}catch(e){D.e(e)}finally{D.f()}return t.abrupt("return",!1);case 69:return t.abrupt("return",!0);case 70:case"end":return t.stop()}}),t,this,[[18,36,39,42],[44,59,62,65]])}))),function(e){return n.apply(this,arguments)})},{key:"updateStructureTree",value:(A=LQ(SQ().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d;return SQ().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=r.newAnnotationsByPage,n=r.pdfManager,i=r.newRefs,a=this.dict.xref,o=this.dict.clone(),s=this.ref,(c=new Oe).put(s,o),(g=o.getRaw("ParentTree"))instanceof Ye?u=a.fetch(g):(u=g,g=a.getNewTemporaryRef(),o.set("ParentTree",g)),u=u.clone(),c.put(g,u),l=u.getRaw("Nums"),h=null,l instanceof Ye&&(h=l,l=a.fetch(h)),l=l.slice(),h||u.set("Nums",l),t.next=17,TQ.call(e,{newAnnotationsByPage:A,structTreeRootRef:s,structTreeRoot:this,kids:null,nums:l,xref:a,pdfManager:n,newRefs:i,cache:c});case 17:if(-1!==(I=t.sent)){t.next=20;break}return t.abrupt("return");case 20:o.set("ParentTreeNextKey",I),h&&c.put(h,l),f=[],C=xQ(c.items()),t.prev=24,C.s();case 26:if((B=C.n()).done){t.next=34;break}return Q=FQ(B.value,2),E=Q[0],d=Q[1],f.length=0,t.next=31,iQ(E,d,f,a);case 31:i.push({ref:E,data:f.join("")});case 32:t.next=26;break;case 34:t.next=39;break;case 36:t.prev=36,t.t0=t.catch(24),C.e(t.t0);case 39:return t.prev=39,C.f(),t.finish(39);case 42:case"end":return t.stop()}}),t,this,[[24,36,39,42]])}))),function(e){return A.apply(this,arguments)})}],[{key:"canCreateStructureTree",value:(r=LQ(SQ().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d;return SQ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.catalogRef,A=t.pdfManager,n=t.newAnnotationsByPage,r instanceof Ye){e.next=4;break}return q("Cannot save the struct tree: no catalog reference."),e.abrupt("return",!1);case 4:i=0,a=!0,o=xQ(n),e.prev=7,o.s();case 9:if((s=o.n()).done){e.next=23;break}return c=FQ(s.value,2),g=c[0],u=c[1],e.next=13,A.getPage(g);case 13:if(e.sent.ref instanceof Ye){e.next=19;break}return q("Cannot save the struct tree: page ".concat(g," has no ref.")),a=!0,e.abrupt("break",23);case 19:l=xQ(u);try{for(l.s();!(h=l.n()).done;)f=h.value,null!==(I=f.accessibilityData)&&void 0!==I&&I.type&&(f.parentTreeId=i++,a=!1)}catch(e){l.e(e)}finally{l.f()}case 21:e.next=9;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(7),o.e(e.t0);case 28:return e.prev=28,o.f(),e.finish(28);case 31:if(!a){e.next=35;break}C=xQ(n.values());try{for(C.s();!(B=C.n()).done;){Q=B.value,E=xQ(Q);try{for(E.s();!(d=E.n()).done;)delete d.value.parentTreeId}catch(e){E.e(e)}finally{E.f()}}}catch(e){C.e(e)}finally{C.f()}return e.abrupt("return",!1);case 35:return e.abrupt("return",!0);case 36:case"end":return e.stop()}}),e,null,[[7,25,28,31]])}))),function(e){return r.apply(this,arguments)})},{key:"createStructureTree",value:(t=LQ(SQ().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p;return SQ().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=r.newAnnotationsByPage,n=r.xref,i=r.catalogRef,a=r.pdfManager,o=r.newRefs,s=a.catalog.cloneDict(),(c=new Oe).put(i,s),g=n.getNewTemporaryRef(),s.set("StructTreeRoot",g),(u=new He(n)).set("Type",Ue.get("StructTreeRoot")),l=n.getNewTemporaryRef(),u.set("ParentTree",l),h=[],u.set("K",h),c.put(g,u),I=new He(n),f=[],I.set("Nums",f),t.next=18,YQ(e,this,TQ).call(this,{newAnnotationsByPage:A,structTreeRootRef:g,structTreeRoot:null,kids:h,nums:f,xref:n,pdfManager:a,newRefs:o,cache:c});case 18:C=t.sent,u.set("ParentTreeNextKey",C),c.put(l,I),B=[],Q=xQ(c.items()),t.prev=23,Q.s();case 25:if((E=Q.n()).done){t.next=33;break}return d=FQ(E.value,2),y=d[0],p=d[1],B.length=0,t.next=30,iQ(y,p,B,n);case 30:o.push({ref:y,data:B.join("")});case 31:t.next=25;break;case 33:t.next=38;break;case 35:t.prev=35,t.t0=t.catch(23),Q.e(t.t0);case 38:return t.prev=38,Q.f(),t.finish(38);case 41:case"end":return t.stop()}}),t,this,[[23,35,38,41]])}))),function(e){return t.apply(this,arguments)})}]);var t,r,A,n}();function KQ(e,t,r){if(e instanceof Ye&&!(t<0)){this.structParentIds||(this.structParentIds=new Oe);var A=this.structParentIds.get(e);A||(A=[],this.structParentIds.put(e,A)),A.push([t,r])}}function TQ(e){return qQ.apply(this,arguments)}function qQ(){return(qQ=LQ(SQ().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U,M,J;return SQ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.newAnnotationsByPage,A=t.structTreeRootRef,n=t.structTreeRoot,i=t.kids,a=t.nums,o=t.xref,s=t.pdfManager,c=t.newRefs,g=t.cache,u=Ue.get("OBJR"),l=-1,I=[],f=xQ(r),e.prev=5,f.s();case 7:if((C=f.n()).done){e.next=59;break}return B=FQ(C.value,2),Q=B[0],E=B[1],e.next=11,s.getPage(Q);case 11:d=e.sent,y=d.ref,p=y instanceof Ye,v=xQ(E),e.prev=15,v.s();case 17:if((m=v.n()).done){e.next=49;break}if(w=m.value,b=w.accessibilityData,k=w.ref,D=w.parentTreeId,S=w.structTreeParent,null!=b&&b.type){e.next=21;break}return e.abrupt("continue",47);case 21:if(F=b.structParent,!(n&&Number.isInteger(F)&&F>=0)){e.next=34;break}if(void 0===(R=(h||(h=new Map)).get(Q))&&(G=new zQ(n,d.pageDict),R=G.collectObjects(y),h.set(Q,R)),!(N=null===(x=R)||void 0===x?void 0:x.get(F))){e.next=34;break}return L=o.fetch(N).clone(),jQ.call(_B,L,b),I.length=0,e.next=32,iQ(N,L,I,o);case 32:return c.push({ref:N,data:I.join("")}),e.abrupt("continue",47);case 34:return l=Math.max(l,D),U=o.getNewTemporaryRef(),M=new He(o),jQ.call(_B,M,b),e.next=40,YQ(_B,this,ZQ).call(this,{structTreeParent:S,tagDict:M,newTagRef:U,structTreeRootRef:A,fallbackKids:i,xref:o,cache:g});case 40:J=new He(o),M.set("K",J),J.set("Type",u),p&&J.set("Pg",y),J.set("Obj",k),g.put(U,M),a.push(D,U);case 47:e.next=17;break;case 49:e.next=54;break;case 51:e.prev=51,e.t0=e.catch(15),v.e(e.t0);case 54:return e.prev=54,v.f(),e.finish(54);case 57:e.next=7;break;case 59:e.next=64;break;case 61:e.prev=61,e.t1=e.catch(5),f.e(e.t1);case 64:return e.prev=64,f.f(),e.finish(64);case 67:return e.abrupt("return",l+1);case 68:case"end":return e.stop()}}),e,this,[[5,61,64,67],[15,51,54,57]])})))).apply(this,arguments)}function jQ(e,t){var r=t.type,A=t.title,n=t.lang,i=t.alt,a=t.expanded,o=t.actualText;e.set("S",Ue.get(r)),A&&e.set("T",jt(A)),n&&e.set("Lang",jt(n)),i&&e.set("Alt",jt(i)),a&&e.set("E",jt(a)),o&&e.set("ActualText",jt(o))}function WQ(e){var t,r=e.elements,A=e.xref,n=e.pageDict,i=e.numberTree,a=new Map,o=xQ(r);try{for(o.s();!(t=o.n()).done;){var s=t.value;if(s.structTreeParentId){var c=parseInt(s.structTreeParentId.split("_mc")[1],10),g=a.get(c);g||(g=[],a.set(c,g)),g.push(s)}}}catch(e){o.e(e)}finally{o.f()}var u=n.get("StructParents");if(Number.isInteger(u)){var l,h=function(e,t,r){var n=a.get(e);if(n){var i=t.getRaw("P"),o=A.fetchIfRef(i);if(i instanceof Ye&&o instanceof He){var s,c={ref:r,dict:t},g=xQ(n);try{for(g.s();!(s=g.n()).done;)s.value.structTreeParent=c}catch(e){g.e(e)}finally{g.f()}}return!0}return!1},I=xQ(i.get(u));try{for(I.s();!(l=I.n()).done;){var f=l.value;if(f instanceof Ye){var C=A.fetch(f),B=C.get("K");if(Number.isInteger(B))h(B,C,f);else if(Array.isArray(B)){var Q,E=xQ(B);try{for(E.s();!(Q=E.n()).done;){var d=Q.value;if(d=A.fetchIfRef(d),Number.isInteger(d)&&h(d,C,f))break;if(d instanceof He){if(!Ke(d.get("Type"),"MCR"))break;var y=d.get("MCID");if(Number.isInteger(y)&&h(y,C,f))break}}}catch(e){E.e(e)}finally{E.f()}}}}}catch(e){I.e(e)}finally{I.f()}}}function ZQ(e){return _Q.apply(this,arguments)}function _Q(){return(_Q=LQ(SQ().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C;return SQ().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.structTreeParent,A=t.tagDict,n=t.newTagRef,i=t.structTreeRootRef,a=t.fallbackKids,o=t.xref,s=t.cache,c=null,r?(c=r.ref,g=r.dict.getRaw("P")||i):g=i,A.set("P",g),u=o.fetchIfRef(g)){e.next=8;break}return a.push(n),e.abrupt("return");case 8:(l=s.get(g))||(l=u.clone(),s.put(g,l)),h=l.getRaw("K"),(I=h instanceof Ye?s.get(h):null)||(I=o.fetchIfRef(h),I=Array.isArray(I)?I.slice():[h],f=o.getNewTemporaryRef(),l.set("K",f),s.put(f,I)),C=I.indexOf(c),I.splice(C>=0?C+1:I.length,0,n);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}_B=OQ;var XQ=function(){return JQ((function e(t,r){UQ(this,e),this.tree=t,this.dict=r,this.kids=[],this.parseKids()}),[{key:"role",get:function(){var e=this.dict.get("S"),t=e instanceof Ue?e.name:"",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t}},{key:"parseKids",value:function(){var e=null,t=this.dict.getRaw("Pg");t instanceof Ye&&(e=t.toString());var r=this.dict.get("K");if(Array.isArray(r)){var A,n=xQ(r);try{for(n.s();!(A=n.n()).done;){var i=A.value,a=this.parseKid(e,i);a&&this.kids.push(a)}}catch(e){n.e(e)}finally{n.f()}}else{var o=this.parseKid(e,r);o&&this.kids.push(o)}}},{key:"parseKid",value:function(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new VQ({type:1,mcid:t,pageObjId:e});var r=null;if(t instanceof Ye?r=this.dict.xref.fetch(t):t instanceof He&&(r=t),!r)return null;var A=r.getRaw("Pg");A instanceof Ye&&(e=A.toString());var n=r.get("Type")instanceof Ue?r.get("Type").name:null;if("MCR"===n){if(this.tree.pageDict.objId!==e)return null;var i=r.getRaw("Stm");return new VQ({type:2,refObjId:i instanceof Ye?i.toString():null,pageObjId:e,mcid:r.get("MCID")})}if("OBJR"===n){if(this.tree.pageDict.objId!==e)return null;var a=r.getRaw("Obj");return new VQ({type:3,refObjId:a instanceof Ye?a.toString():null,pageObjId:e})}return new VQ({type:5,dict:r})}}])}(),VQ=JQ((function e(t){var r=t.type,A=t.dict,n=void 0===A?null:A,i=t.mcid,a=void 0===i?null:i,o=t.pageObjId,s=void 0===o?null:o,c=t.refObjId,g=void 0===c?null:c;UQ(this,e),this.type=r,this.dict=n,this.mcid=a,this.pageObjId=s,this.refObjId=g,this.parentNode=null})),zQ=function(){return JQ((function e(t,r){UQ(this,e),this.root=t,this.rootDict=t?t.dict:null,this.pageDict=r,this.nodes=[]}),[{key:"collectObjects",value:function(e){var t;if(!(this.root&&this.rootDict&&e instanceof Ye))return null;var r=this.rootDict.get("ParentTree");if(!r)return null;var A=null===(t=this.root.structParentIds)||void 0===t?void 0:t.get(e);if(!A)return null;var n,i=new Map,a=new MC(r,this.rootDict.xref),o=xQ(A);try{for(o.s();!(n=o.n()).done;){var s=FQ(n.value,1)[0],c=a.getRaw(s);c instanceof Ye&&i.set(s,c)}}catch(e){o.e(e)}finally{o.f()}return i}},{key:"parse",value:function(e){var t;if(this.root&&this.rootDict&&e instanceof Ye){var r=this.rootDict.get("ParentTree");if(r){var A=this.pageDict.get("StructParents"),n=null===(t=this.root.structParentIds)||void 0===t?void 0:t.get(e);if(Number.isInteger(A)||n){var i=new Map,a=new MC(r,this.rootDict.xref);if(Number.isInteger(A)){var o=a.get(A);if(Array.isArray(o)){var s,c=xQ(o);try{for(c.s();!(s=c.n()).done;){var g=s.value;g instanceof Ye&&this.addNode(this.rootDict.xref.fetch(g),i)}}catch(e){c.e(e)}finally{c.f()}}}if(n){var u,l=xQ(n);try{for(l.s();!(u=l.n()).done;){var h=FQ(u.value,2),I=h[0],f=h[1],C=a.get(I);if(C){var B,Q=this.addNode(this.rootDict.xref.fetchIfRef(C),i);1===(null==Q||null===(B=Q.kids)||void 0===B?void 0:B.length)&&3===Q.kids[0].type&&(Q.kids[0].type=f)}}}catch(e){l.e(e)}finally{l.f()}}}}}}},{key:"addNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40)return q("StructTree MAX_DEPTH reached."),null;if(!(e instanceof He))return null;if(t.has(e))return t.get(e);var A=new XQ(this,e);t.set(e,A);var n=e.get("P");if(!n||Ke(n.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,A)||t.delete(e),A;var i=this.addNode(n,t,r+1);if(!i)return A;var a,o=!1,s=xQ(i.kids);try{for(s.s();!(a=s.n()).done;){var c=a.value;5===c.type&&c.dict===e&&(c.parentNode=A,o=!0)}}catch(e){s.e(e)}finally{s.f()}return o||t.delete(e),A}},{key:"addTopLevelNode",value:function(e,t){var r=this.rootDict.get("K");if(!r)return!1;if(r instanceof He)return r.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(r))return!0;for(var A=!1,n=0;n<r.length;n++){var i=r[n];(null==i?void 0:i.toString())===e.objId&&(this.nodes[n]=t,A=!0)}return A}},{key:"serializable",get:function(){function e(t,r){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(A>40)q("StructTree too deep to be fully serialized.");else{var n=Object.create(null);n.role=t.role,n.children=[],r.children.push(n);var i=t.dict.get("Alt");"string"!=typeof i&&(i=t.dict.get("ActualText")),"string"==typeof i&&(n.alt=Ie(i));var a=t.dict.get("A");if(a instanceof He){var o=Rt(a.getArray("BBox"),null);if(o)n.bbox=o;else{var s=a.get("Width"),c=a.get("Height");"number"==typeof s&&s>0&&"number"==typeof c&&c>0&&(n.bbox=[0,0,s,c])}}var g=t.dict.get("Lang");"string"==typeof g&&(n.lang=Ie(g));var u,l=xQ(t.kids);try{for(l.s();!(u=l.n()).done;){var h=u.value,I=5===h.type?h.parentNode:null;I?e(I,n,A+1):1===h.type||2===h.type?n.children.push({type:"content",id:"p".concat(h.pageObjId,"_mc").concat(h.mcid)}):3===h.type?n.children.push({type:"object",id:h.refObjId}):4===h.type&&n.children.push({type:"annotation",id:"".concat("pdfjs_internal_id_").concat(h.refObjId)})}}catch(e){l.e(e)}finally{l.f()}}}var t=Object.create(null);t.children=[],t.role="Root";var r,A=xQ(this.nodes);try{for(A.s();!(r=A.n()).done;){var n=r.value;n&&e(n,t)}}catch(e){A.e(e)}finally{A.f()}return t}}])}();function $Q(){$Q=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function eE(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function tE(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){eE(i,A,n,a,o,"next",e)}function o(e){eE(i,A,n,a,o,"throw",e)}a(void 0)}))}}function rE(e,t){return gE(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||sE(e,t)||oE()}function AE(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,nE(A.key),A)}}function nE(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function iE(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function aE(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sE(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function oE(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sE(e,t){if(e){if("string"==typeof e)return cE(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cE(e,t):void 0}}function cE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function gE(e){if(Array.isArray(e))return e}function uE(e){if(!Array.isArray(e)||e.length<2)return!1;var t=function(e){return gE(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sE(e)||oE()}(e),r=t[0],A=t[1],n=t.slice(2);if(!(r instanceof Ye||Number.isInteger(r)))return!1;if(!(A instanceof Ue))return!1;var i=n.length,a=!0;switch(A.name){case"XYZ":if(i<2||i>3)return!1;break;case"Fit":case"FitB":return 0===i;case"FitH":case"FitBH":case"FitV":case"FitBV":if(i>1)return!1;break;case"FitR":if(4!==i)return!1;a=!1;break;default:return!1}var o,s=aE(n);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(!("number"==typeof c||a&&null===c))return!1}}catch(e){s.e(e)}finally{s.f()}return!0}function lE(e){return e instanceof He&&(e=e.get("D")),uE(e)?e:null}function hE(e){var t=e.get("D");if(t){if(t instanceof Ue&&(t=t.name),"string"==typeof t)return Ie(t);if(uE(t))return JSON.stringify(t)}return null}var IE=new WeakSet,fE=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,IE),this.pdfManager=t,this.xref=r,this._catDict=r.getCatalogObj(),!(this._catDict instanceof He))throw new re("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new Oe,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new Kh,this.pageKidsCountCache=new Oe,this.pageIndexCache=new Oe,this.pageDictCache=new Oe,this.nonBlendModesSet=new Pe,this.systemFontCache=new Map}return function(e,t,r){return t&&AE(e.prototype,t),r&&AE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"cloneDict",value:function(){return this._catDict.clone()}},{key:"version",get:function(){var e=this._catDict.get("Version");if(e instanceof Ue){if(It.test(e.name))return _(this,"version",e.name);q("Invalid PDF catalog version: ".concat(e.name))}return _(this,"version",null)}},{key:"lang",get:function(){var e=this._catDict.get("Lang");return _(this,"lang",e&&"string"==typeof e?Ie(e):null)}},{key:"needsRendering",get:function(){var e=this._catDict.get("NeedsRendering");return _(this,"needsRendering","boolean"==typeof e&&e)}},{key:"collection",get:function(){var e=null;try{var t=this._catDict.get("Collection");t instanceof He&&t.size>0&&(e=t)}catch(e){if(e instanceof Ct)throw e;T("Cannot fetch Collection entry; assuming no collection is present.")}return _(this,"collection",e)}},{key:"acroForm",get:function(){var e=null;try{var t=this._catDict.get("AcroForm");t instanceof He&&t.size>0&&(e=t)}catch(e){if(e instanceof Ct)throw e;T("Cannot fetch AcroForm entry; assuming no forms are present.")}return _(this,"acroForm",e)}},{key:"acroFormRef",get:function(){var e=this._catDict.getRaw("AcroForm");return _(this,"acroFormRef",e instanceof Ye?e:null)}},{key:"metadata",get:function(){var e=this._catDict.getRaw("Metadata");if(!(e instanceof Ye))return _(this,"metadata",null);var t=null;try{var r,A=this.xref.fetch(e,!(null!==(r=this.xref.encrypt)&&void 0!==r&&r.encryptMetadata));if(A instanceof ze&&A.dict instanceof He){var n=A.dict.get("Type"),i=A.dict.get("Subtype");if(Ke(n,"Metadata")&&Ke(i,"XML")){var a=fe(A.getString());a&&(t=new lB(a).serializable)}}}catch(e){if(e instanceof Ct)throw e;T(\'Skipping invalid Metadata: "\'.concat(e,\'".\'))}return _(this,"metadata",t)}},{key:"markInfo",get:function(){var e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof Ct)throw e;q("Unable to read mark info.")}return _(this,"markInfo",e)}},{key:"_readMarkInfo",value:function(){var e=this._catDict.get("MarkInfo");if(!(e instanceof He))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(var r in t){var A=e.get(r);"boolean"==typeof A&&(t[r]=A)}return t}},{key:"structTreeRoot",get:function(){var e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof Ct)throw e;q("Unable read to structTreeRoot info.")}return _(this,"structTreeRoot",e)}},{key:"_readStructTreeRoot",value:function(){var e=this._catDict.getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e);if(!(t instanceof He))return null;var r=new OQ(t,e);return r.init(),r}},{key:"toplevelPagesDict",get:function(){var e=this._catDict.get("Pages");if(!(e instanceof He))throw new re("Invalid top-level pages dictionary.");return _(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof Ct)throw e;q("Unable to read document outline.")}return _(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this._catDict.get("Outlines");if(!(t instanceof He))return null;if(!((t=t.getRaw("First"))instanceof Ye))return null;var r={items:[]},A=[{obj:t,parent:r}],n=new Pe;n.put(t);for(var i=this.xref,a=new Uint8ClampedArray(3);A.length>0;){var o=A.shift(),s=i.fetchIfRef(o.obj);if(null!==s){s.has("Title")||q("Invalid outline item encountered.");var c={url:null,dest:null,action:null};e.parseDestDictionary({destDict:s,resultObj:c,docBaseUrl:this.baseUrl,docAttachments:this.attachments});var g=s.get("Title"),u=s.get("F")||0,l=s.getArray("C"),h=s.get("Count"),I=a;!St(l,3)||0===l[0]&&0===l[1]&&0===l[2]||(I=Ur.singletons.rgb.getRgb(l,0));var f={action:c.action,attachment:c.attachment,dest:c.dest,url:c.url,unsafeUrl:c.unsafeUrl,newWindow:c.newWindow,setOCGState:c.setOCGState,title:"string"==typeof g?Ie(g):"",color:I,count:Number.isInteger(h)?h:void 0,bold:!!(2&u),italic:!!(1&u),items:[]};o.parent.items.push(f),(t=s.getRaw("First"))instanceof Ye&&!n.has(t)&&(A.push({obj:t,parent:f}),n.put(t)),(t=s.getRaw("Next"))instanceof Ye&&!n.has(t)&&(A.push({obj:t,parent:o.parent}),n.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(e){if(e instanceof Ct)throw e;q("Unable to read permissions.")}return _(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(e instanceof He))return null;var t=e.get("P");if("number"!=typeof t)return null;t+=Math.pow(2,32);var r=[];for(var A in y){var n=y[A];t&n&&r.push(n)}return r}},{key:"optionalContentConfig",get:function(){var e=null;try{var t=this._catDict.get("OCProperties");if(!t)return _(this,"optionalContentConfig",null);var r=t.get("D");if(!r)return _(this,"optionalContentConfig",null);var A=t.get("OCGs");if(!Array.isArray(A))return _(this,"optionalContentConfig",null);var n,i=[],a=new Pe,o=aE(A);try{for(o.s();!(n=o.n()).done;){var s=n.value;s instanceof Ye&&!a.has(s)&&(a.put(s),i.push(iE(IE,this,CE).call(this,s)))}}catch(e){o.e(e)}finally{o.f()}(e=iE(IE,this,BE).call(this,r,a)).groups=i}catch(e){if(e instanceof Ct)throw e;q("Unable to read optional content config: ".concat(e))}return _(this,"optionalContentConfig",e)}},{key:"setActualNumPages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}},{key:"hasActualNumPages",get:function(){return null!==this._actualNumPages}},{key:"_pagesCount",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new re("Page count in top-level pages dictionary is not an integer.");return _(this,"_pagesCount",e)}},{key:"numPages",get:function(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof UC){var r,A=aE(e.getAll());try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=lE(n[1]);a&&(t[Ie(i)]=a)}}catch(e){A.e(e)}finally{A.f()}}else e instanceof He&&e.forEach((function(e,r){var A=lE(r);A&&(t[e]=A)}));return _(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();if(t instanceof UC){var r=lE(t.get(e));if(r)return r;var A=this.destinations[e];if(A)return q(\'Found "\'.concat(e,\'" at an incorrect position in the NameTree.\')),A}else if(t instanceof He){var n=lE(t.get(e));if(n)return n}return null}},{key:"_readDests",value:function(){var e=this._catDict.get("Names");return null!=e&&e.has("Dests")?new UC(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof Ct)throw e;q("Unable to read page labels.")}return _(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,A="",n=new MC(e,this.xref).getAll(),i="",a=1,o=0,s=this.numPages;o<s;o++){var c=n.get(o);if(void 0!==c){if(!(c instanceof He))throw new re("PageLabel is not a dictionary.");if(c.has("Type")&&!Ke(c.get("Type"),"PageLabel"))throw new re("Invalid type in PageLabel dictionary.");if(c.has("S")){var g=c.get("S");if(!(g instanceof Ue))throw new re("Invalid style in PageLabel dictionary.");r=g.name}else r=null;if(c.has("P")){var u=c.get("P");if("string"!=typeof u)throw new re("Invalid prefix in PageLabel dictionary.");A=Ie(u)}else A="";if(c.has("St")){var l=c.get("St");if(!(Number.isInteger(l)&&l>=1))throw new re("Invalid start in PageLabel dictionary.");a=l}else a=1}switch(r){case"D":i=a;break;case"R":case"r":i=vt(a,"r"===r);break;case"A":case"a":var h="a"===r?97:65,I=a-1;i=String.fromCharCode(h+I%26).repeat(Math.floor(I/26)+1);break;default:if(r)throw new re(\'Invalid style "\'.concat(r,\'" in PageLabel dictionary.\'));i=""}t[o]=A+i,a++}return t}},{key:"pageLayout",get:function(){var e=this._catDict.get("PageLayout"),t="";if(e instanceof Ue)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return _(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this._catDict.get("PageMode"),t="UseNone";if(e instanceof Ue)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return _(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t=this._catDict.get("ViewerPreferences");if(!(t instanceof He))return _(this,"viewerPreferences",null);var r,A=null,n=aE(t.getKeys());try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t.get(i),o=void 0;switch(i){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof a&&(o=a);break;case"NonFullScreenPageMode":if(a instanceof Ue)switch(a.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=a.name;break;default:o="UseNone"}break;case"Direction":if(a instanceof Ue)switch(a.name){case"L2R":case"R2L":o=a.name;break;default:o="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(a instanceof Ue)switch(a.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=a.name;break;default:o="CropBox"}break;case"PrintScaling":if(a instanceof Ue)switch(a.name){case"None":case"AppDefault":o=a.name;break;default:o="AppDefault"}break;case"Duplex":if(a instanceof Ue)switch(a.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=a.name;break;default:o="None"}break;case"PrintPageRange":Array.isArray(a)&&a.length%2==0&&a.every((function(t,r,A){return Number.isInteger(t)&&t>0&&(0===r||t>=A[r-1])&&t<=e.numPages}))&&(o=a);break;case"NumCopies":Number.isInteger(a)&&a>0&&(o=a);break;default:q("Ignoring non-standard key in ViewerPreferences: ".concat(i,"."));continue}void 0!==o?(A||(A=Object.create(null)),A[i]=o):q(\'Bad value, for key "\'.concat(i,\'", in ViewerPreferences: \').concat(a,"."))}}catch(e){n.e(e)}finally{n.f()}return _(this,"viewerPreferences",A)}},{key:"openAction",get:function(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof He){var A=new He(this.xref);A.set("A",t);var n={url:null,dest:null,action:null};e.parseDestDictionary({destDict:A,resultObj:n}),Array.isArray(n.dest)?r.dest=n.dest:n.action&&(r.action=n.action)}else Array.isArray(t)&&(r.dest=t);return _(this,"openAction",oe(r)>0?r:null)}},{key:"attachments",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof He&&e.has("EmbeddedFiles")){var r,A=aE(new UC(e.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=n[1],o=new TC(a,this.xref);t||(t=Object.create(null)),t[Ie(i)]=o.serializable}}catch(e){A.e(e)}finally{A.f()}}return _(this,"attachments",t)}},{key:"xfaImages",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof He&&e.has("XFAImages")){var r,A=aE(new UC(e.getRaw("XFAImages"),this.xref).getAll());try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=n[1];t||(t=new He(this.xref)),t.set(Ie(i),a)}}catch(e){A.e(e)}finally{A.f()}}return _(this,"xfaImages",t)}},{key:"_collectJavaScript",value:function(){var e=this._catDict.get("Names"),t=null;function r(e,r){if(r instanceof He&&Ke(r.get("S"),"JavaScript")){var A=r.get("JS");if(A instanceof ze)A=A.getString();else if("string"!=typeof A)return;(A=Ie(A).replaceAll("\\0",""))&&(t||(t=new Map)).set(e,A)}}if(e instanceof He&&e.has("JavaScript")){var A,n=aE(new UC(e.getRaw("JavaScript"),this.xref).getAll());try{for(n.s();!(A=n.n()).done;){var i=rE(A.value,2),a=i[0],o=i[1];r(Ie(a),o)}}catch(e){n.e(e)}finally{n.f()}}var s=this._catDict.get("OpenAction");return s&&r("OpenAction",s),t}},{key:"jsActions",get:function(){var e=this._collectJavaScript(),t=Mt(this.xref,this._catDict,k);if(e){t||(t=Object.create(null));var r,A=aE(e);try{for(A.s();!(r=A.n()).done;){var n=rE(r.value,2),i=n[0],a=n[1];i in t?t[i].push(a):t[i]=[a]}}catch(e){A.e(e)}finally{A.f()}}return _(this,"jsActions",t)}},{key:"fontFallback",value:(n=tE($Q().mark((function e(t,r){var A,n,i,a;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.fontCache);case 2:A=e.sent,n=aE(A),e.prev=4,n.s();case 6:if((i=n.n()).done){e.next=13;break}if((a=i.value).loadedName!==t){e.next=11;break}return a.fallback(r),e.abrupt("return");case 11:e.next=6;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(4),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[4,15,18,21]])}))),function(e,t){return n.apply(this,arguments)})},{key:"cleanup",value:(A=tE($Q().mark((function e(){var t,r,A,n,i=arguments;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],JC(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.pageDictCache.clear(),this.nonBlendModesSet.clear(),e.next=9,Promise.all(this.fontCache);case 9:r=e.sent,A=aE(r);try{for(A.s();!(n=A.n()).done;)delete n.value.dict.cacheKey}catch(e){A.e(e)}finally{A.f()}this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear();case 16:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"getPageDict",value:(r=tE($Q().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[this.toplevelPagesDict],A=new Pe,(n=this._catDict.getRaw("Pages"))instanceof Ye&&A.put(n),i=this.xref,a=this.pageKidsCountCache,o=this.pageIndexCache,s=this.pageDictCache,c=0;case 6:if(!r.length){e.next=67;break}if(!((g=r.pop())instanceof Ye)){e.next=34;break}if(!((u=a.get(g))>=0&&c+u<=t)){e.next=13;break}return c+=u,e.abrupt("continue",6);case 13:if(!A.has(g)){e.next=15;break}throw new re("Pages tree contains circular reference.");case 15:return A.put(g),e.next=18,s.get(g)||i.fetchAsync(g);case 18:if(!((l=e.sent)instanceof He)){e.next=32;break}if(!((h=l.getRaw("Type"))instanceof Ye)){e.next=25;break}return e.next=24,i.fetchAsync(h);case 24:h=e.sent;case 25:if(!Ke(h,"Page")&&l.has("Kids")){e.next=32;break}if(a.has(g)||a.put(g,1),o.has(g)||o.put(g,c),c!==t){e.next=30;break}return e.abrupt("return",[l,g]);case 30:return c++,e.abrupt("continue",6);case 32:return r.push(l),e.abrupt("continue",6);case 34:if(g instanceof He){e.next=36;break}throw new re("Page dictionary kid reference points to wrong type of object.");case 36:if(I=g.objId,!((f=g.getRaw("Count"))instanceof Ye)){e.next=42;break}return e.next=41,i.fetchAsync(f);case 41:f=e.sent;case 42:if(!(Number.isInteger(f)&&f>=0)){e.next=47;break}if(I&&!a.has(I)&&a.put(I,f),!(c+f<=t)){e.next=47;break}return c+=f,e.abrupt("continue",6);case 47:if(!((C=g.getRaw("Kids"))instanceof Ye)){e.next=52;break}return e.next=51,i.fetchAsync(C);case 51:C=e.sent;case 52:if(Array.isArray(C)){e.next=64;break}if(!((B=g.getRaw("Type"))instanceof Ye)){e.next=58;break}return e.next=57,i.fetchAsync(B);case 57:B=e.sent;case 58:if(!Ke(B,"Page")&&g.has("Kids")){e.next=63;break}if(c!==t){e.next=61;break}return e.abrupt("return",[g,null]);case 61:return c++,e.abrupt("continue",6);case 63:throw new re("Page dictionary kids object is not an array.");case 64:for(Q=C.length-1;Q>=0;Q--)E=C[Q],r.push(E),g===this.toplevelPagesDict&&E instanceof Ye&&!s.has(E)&&s.put(E,i.fetchAsync(E));e.next=6;break;case 67:throw new Error("Page index ".concat(t," not found."));case 68:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getAllPageDicts",value:(t=tE($Q().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E=arguments;return $Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=function(e){if(e instanceof Qt&&!t)throw e;t&&r&&0===c&&(q(\'getAllPageDicts - Skipping invalid first page: "\'.concat(e,\'".\')),e=He.empty),a.set(c++,[e,null])},g=function(e,t){t&&!s.has(t)&&s.put(t,c),a.set(c++,[e,t])},t=E.length>0&&void 0!==E[0]&&E[0],r=this.pdfManager.evaluatorOptions.ignoreErrors,A=[{currentNode:this.toplevelPagesDict,posInKids:0}],n=new Pe,(i=this._catDict.getRaw("Pages"))instanceof Ye&&n.put(i),a=new Map,o=this.xref,s=this.pageIndexCache,c=0;case 10:if(!(A.length>0)){e.next=70;break}if(l=A.at(-1),h=l.currentNode,I=l.posInKids,!((f=h.getRaw("Kids"))instanceof Ye)){e.next=25;break}return e.prev=15,e.next=18,o.fetchAsync(f);case 18:f=e.sent,e.next=25;break;case 21:return e.prev=21,e.t0=e.catch(15),u(e.t0),e.abrupt("break",70);case 25:if(Array.isArray(f)){e.next=28;break}return u(new re("Page dictionary kids object is not an array.")),e.abrupt("break",70);case 28:if(!(I>=f.length)){e.next=31;break}return A.pop(),e.abrupt("continue",10);case 31:if(C=f[I],B=void 0,!(C instanceof Ye)){e.next=50;break}if(!n.has(C)){e.next=37;break}return u(new re("Pages tree contains circular reference.")),e.abrupt("break",70);case 37:return n.put(C),e.prev=38,e.next=41,o.fetchAsync(C);case 41:B=e.sent,e.next=48;break;case 44:return e.prev=44,e.t1=e.catch(38),u(e.t1),e.abrupt("break",70);case 48:e.next=51;break;case 50:B=C;case 51:if(B instanceof He){e.next=54;break}return u(new re("Page dictionary kid reference points to wrong type of object.")),e.abrupt("break",70);case 54:if(!((Q=B.getRaw("Type"))instanceof Ye)){e.next=66;break}return e.prev=56,e.next=59,o.fetchAsync(Q);case 59:Q=e.sent,e.next=66;break;case 62:return e.prev=62,e.t2=e.catch(56),u(e.t2),e.abrupt("break",70);case 66:Ke(Q,"Page")||!B.has("Kids")?g(B,C instanceof Ye?C:null):A.push({currentNode:B,posInKids:0}),l.posInKids++,e.next=10;break;case 70:return e.abrupt("return",a);case 71:case"end":return e.stop()}}),e,this,[[15,21],[38,44],[56,62]])}))),function(){return t.apply(this,arguments)})},{key:"getPageIndex",value:function(e){var t=this,r=this.pageIndexCache.get(e);if(void 0!==r)return Promise.resolve(r);var A=this.xref,n=0,i=function(r){return function(t){var r,n=0;return A.fetchAsync(t).then((function(A){if(je(t,e)&&!qe(A,"Page")&&!(A instanceof He&&!A.has("Type")&&A.has("Contents")))throw new re("The reference does not point to a /Page dictionary.");if(!A)return null;if(!(A instanceof He))throw new re("Node must be a dictionary.");return r=A.getRaw("Parent"),A.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof He))throw new re("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;var i,a=[],o=!1,s=aE(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;if(!(c instanceof Ye))throw new re("Kid must be a reference.");if(je(c,t)){o=!0;break}a.push(A.fetchAsync(c).then((function(e){if(!(e instanceof He))throw new re("Kid node must be a dictionary.");e.has("Count")?n+=e.get("Count"):n++})))}}catch(e){s.e(e)}finally{s.f()}if(!o)throw new re("Kid reference not found in parent\'s kids.");return Promise.all(a).then((function(){return[n,r]}))}))}(r).then((function(r){if(!r)return t.pageIndexCache.put(e,n),n;var A=rE(r,2),a=A[0],o=A[1];return n+=a,i(o)}))};return i(e)}},{key:"baseUrl",get:function(){var e=this._catDict.get("URI");if(e instanceof He){var t=e.get("Base");if("string"==typeof t){var r=Z(t,null,{tryConvertEncoding:!0});if(r)return _(this,"baseUrl",r.href)}}return _(this,"baseUrl",this.pdfManager.docBaseUrl)}}],[{key:"parseDestDictionary",value:function(e){var t=e.destDict,r=e.resultObj,A=e.docBaseUrl,n=void 0===A?null:A,i=e.docAttachments,a=void 0===i?null:i;if(t instanceof He){var o,s,c=t.get("A");if(c instanceof He||(t.has("Dest")?c=t.get("Dest"):(c=t.get("AA"))instanceof He&&(c.has("D")?c=c.get("D"):c.has("U")&&(c=c.get("U")))),c instanceof He){var g=c.get("S");if(!(g instanceof Ue))return void q("parseDestDictionary: Invalid type in Action dictionary.");var u=g.name;switch(u){case"ResetForm":var l,h=c.get("Flags"),I=0==(1&("number"==typeof h?h:0)),f=[],C=[],B=aE(c.get("Fields")||[]);try{for(B.s();!(l=B.n()).done;){var Q=l.value;Q instanceof Ye?C.push(Q.toString()):"string"==typeof Q&&f.push(Ie(Q))}}catch(e){B.e(e)}finally{B.f()}r.resetForm={fields:f,refs:C,include:I};break;case"URI":(o=c.get("URI"))instanceof Ue&&(o="/"+o.name);break;case"GoTo":s=c.get("D");break;case"Launch":case"GoToR":var E=c.get("F");E instanceof He?o=new TC(E,null,!0).serializable.rawFilename:"string"==typeof E&&(o=E);var d=hE(c);d&&"string"==typeof o&&(o=o.split("#",1)[0]+"#"+d);var y=c.get("NewWindow");"boolean"==typeof y&&(r.newWindow=y);break;case"GoToE":var p,v=c.get("T");if(a&&v instanceof He){var m=v.get("R"),w=v.get("N");Ke(m,"C")&&"string"==typeof w&&(p=a[Ie(w)])}if(p){r.attachment=p;var b=hE(c);b&&(r.attachmentDest=b)}else q(\'parseDestDictionary - unimplemented "GoToE" action.\');break;case"Named":var k=c.get("N");k instanceof Ue&&(r.action=k.name);break;case"SetOCGState":var D=c.get("State"),S=c.get("PreserveRB");if(!Array.isArray(D)||0===D.length)break;var F,x=[],R=aE(D);try{for(R.s();!(F=R.n()).done;){var G=F.value;if(G instanceof Ue)switch(G.name){case"ON":case"OFF":case"Toggle":x.push(G.name)}else G instanceof Ye&&x.push(G.toString())}}catch(e){R.e(e)}finally{R.f()}if(x.length!==D.length)break;r.setOCGState={state:x,preserveRB:"boolean"!=typeof S||S};break;case"JavaScript":var N,L=c.get("JS");L instanceof ze?N=L.getString():"string"==typeof L&&(N=L);var U=N&&Kt(Ie(N));if(U){o=U.url,r.newWindow=U.newWindow;break}default:if("JavaScript"===u||"SubmitForm"===u)break;q(\'parseDestDictionary - unsupported action: "\'.concat(u,\'".\'))}}else t.has("Dest")&&(s=t.get("Dest"));if("string"==typeof o){var M=Z(o,n,{addDefaultProtocol:!0,tryConvertEncoding:!0});M&&(r.url=M.href),r.unsafeUrl=o}s&&(s instanceof Ue&&(s=s.name),"string"==typeof s?r.dest=Ie(s):uE(s)&&(r.dest=s))}else q("parseDestDictionary: `destDict` must be a dictionary.")}}]);var t,r,A,n}();function CE(e){var t=this.xref.fetch(e),r={id:e.toString(),name:null,intent:null,usage:{print:null,view:null}},A=t.get("Name");"string"==typeof A&&(r.name=Ie(A));var n=t.getArray("Intent");Array.isArray(n)||(n=[n]),n.every((function(e){return e instanceof Ue}))&&(r.intent=n.map((function(e){return e.name})));var i=t.get("Usage");if(!(i instanceof He))return r;var a=r.usage,o=i.get("Print");if(o instanceof He){var s=o.get("PrintState");if(s instanceof Ue)switch(s.name){case"ON":case"OFF":a.print={printState:s.name}}}var c=i.get("View");if(c instanceof He){var g=c.get("ViewState");if(g instanceof Ue)switch(g.name){case"ON":case"OFF":a.view={viewState:g.name}}}return r}function BE(e,t){function r(e){var r=[];if(Array.isArray(e)){var A,n=aE(e);try{for(n.s();!(A=n.n()).done;){var i=A.value;i instanceof Ye&&t.has(i)&&r.push(i.toString())}}catch(e){n.e(e)}finally{n.f()}}return r}function A(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var A,i=[],o=aE(e);try{for(o.s();!(A=o.n()).done;){var s=A.value;if(s instanceof Ye&&t.has(s))a.put(s),i.push(s.toString());else{var c=n(s,r);c&&i.push(c)}}}catch(e){o.e(e)}finally{o.f()}if(r>0)return i;var g,u=[],l=aE(t);try{for(l.s();!(g=l.n()).done;){var h=g.value;a.has(h)||u.push(h.toString())}}catch(e){l.e(e)}finally{l.f()}return u.length&&i.push({name:null,order:u}),i}function n(e,t){if(++t>o)return q("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=i.fetchIfRef(e);if(!Array.isArray(r))return null;var n=i.fetchIfRef(r[0]);if("string"!=typeof n)return null;var a=A(r.slice(1),t);return a&&a.length?{name:Ie(n),order:a}:null}var i=this.xref,a=new Pe,o=10;return{name:"string"==typeof e.get("Name")?Ie(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?Ie(e.get("Creator")):null,baseState:e.get("BaseState")instanceof Ue?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:A(e.get("Order")),groups:null}}function QE(){QE=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function EE(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function dE(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){EE(i,A,n,a,o,"next",e)}function o(e){EE(i,A,n,a,o,"throw",e)}a(void 0)}))}}function yE(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,pE(A.key),A)}}function pE(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function vE(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return mE(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mE(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function mE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function wE(e,t){if(e instanceof He)e=e.getRawValues();else if(e instanceof ze)e=e.dict.getRawValues();else if(!Array.isArray(e))return;var r,A,n=vE(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;((A=i)instanceof Ye||A instanceof He||A instanceof ze||Array.isArray(A))&&t.push(i)}}catch(e){n.e(e)}finally{n.f()}}var bE=function(){return function(e,t,r){return t&&yE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,A){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dict=t,this.keys=r,this.xref=A,this.refSet=null}),[{key:"load",value:(t=dE(QE().mark((function e(){var t,r,A,n,i,a,o;return QE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xref.stream.isDataLoaded){e.next=2;break}return e.abrupt("return",void 0);case 2:t=this.keys,r=this.dict,this.refSet=new Pe,A=[],n=vE(t);try{for(n.s();!(i=n.n()).done;)a=i.value,void 0!==(o=r.getRaw(a))&&A.push(o)}catch(e){n.e(e)}finally{n.f()}return e.abrupt("return",this._walk(A));case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_walk",value:(e=dE(QE().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h;return QE().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],A=[];case 2:if(!t.length){e.next=48;break}if(!((n=t.pop())instanceof Ye)){e.next=21;break}if(!this.refSet.has(n)){e.next=7;break}return e.abrupt("continue",2);case 7:e.prev=7,this.refSet.put(n),n=this.xref.fetch(n),e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof Ct){e.next=19;break}return q(\'ObjectLoader._walk - requesting all data: "\'.concat(e.t0,\'".\')),this.refSet=null,i=this.xref.stream.manager,e.abrupt("return",i.requestAllChunks());case 19:r.push(n),A.push({begin:e.t0.begin,end:e.t0.end});case 21:if(!(n instanceof ze)){e.next=45;break}if(!(a=n.getBaseStreams())){e.next=45;break}o=!1,s=vE(a),e.prev=26,s.s();case 28:if((c=s.n()).done){e.next=36;break}if(!(g=c.value).isDataLoaded){e.next=32;break}return e.abrupt("continue",34);case 32:o=!0,A.push({begin:g.start,end:g.end});case 34:e.next=28;break;case 36:e.next=41;break;case 38:e.prev=38,e.t1=e.catch(26),s.e(e.t1);case 41:return e.prev=41,s.f(),e.finish(41);case 44:o&&r.push(n);case 45:wE(n,t),e.next=2;break;case 48:if(!A.length){e.next=54;break}return e.next=51,this.xref.stream.manager.requestRanges(A);case 51:u=vE(r);try{for(u.s();!(l=u.n()).done;)(h=l.value)instanceof Ye&&this.refSet.remove(h)}catch(e){u.e(e)}finally{u.f()}return e.abrupt("return",this._walk(r));case 54:return this.refSet=null,e.abrupt("return",void 0);case 56:case"end":return e.stop()}}),e,this,[[7,12],[26,38,41,44]])}))),function(t){return e.apply(this,arguments)})}]);var e,t}(),kE=Symbol(),DE=Symbol(),SE=Symbol(),FE=Symbol(),xE=Symbol(),RE=Symbol(),GE=Symbol(),NE=Symbol(),LE=Symbol(),UE=Symbol("content"),ME=Symbol("data"),JE=Symbol(),HE=Symbol("extra"),YE=Symbol(),PE=Symbol(),OE=Symbol(),KE=Symbol(),TE=Symbol(),qE=Symbol(),jE=Symbol(),WE=Symbol(),ZE=Symbol(),_E=Symbol(),XE=Symbol(),VE=Symbol(),zE=Symbol(),$E=Symbol(),ed=Symbol(),td=Symbol(),rd=Symbol(),Ad=Symbol(),nd=Symbol(),id=Symbol(),ad=Symbol(),od=Symbol(),sd=Symbol(),cd=Symbol(),gd=Symbol(),ud=Symbol(),ld=Symbol(),hd=Symbol(),Id=Symbol(),fd=Symbol(),Cd=Symbol(),Bd=Symbol(),Qd=Symbol("namespaceId"),Ed=Symbol("nodeName"),dd=Symbol(),yd=Symbol(),pd=Symbol(),vd=Symbol(),md=Symbol(),wd=Symbol(),bd=Symbol(),kd=Symbol(),Dd=Symbol("root"),Sd=Symbol(),Fd=Symbol(),xd=Symbol(),Rd=Symbol(),Gd=Symbol(),Nd=Symbol(),Ld=Symbol(),Ud=Symbol(),Md=Symbol(),Jd=Symbol(),Hd=Symbol(),Yd=Symbol("uid"),Pd=(r(9657),Symbol()),Od={config:{id:0,check:function(e){return e.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function(e){return"http://ns.adobe.com/xdp/pdf/"===e}},signature:{id:6,check:function(e){return"http://www.w3.org/2000/09/xmldsig#"===e}},sourceSet:{id:7,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function(e){return"http://www.w3.org/1999/XSL/Transform"===e}},template:{id:9,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function(e){return e.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function(e){return"http://ns.adobe.com/xdp/"===e}},xfdf:{id:12,check:function(e){return"http://ns.adobe.com/xfdf/"===e}},xhtml:{id:13,check:function(e){return"http://www.w3.org/1999/xhtml"===e}},xmpmeta:{id:14,check:function(e){return"http://ns.adobe.com/xmpmeta/"===e}}};function Kd(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Td(A.key),A)}}function Td(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function qd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jd(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jd(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var Wd={pt:function(e){return e},cm:function(e){return e/2.54*72},mm:function(e){return e/25.4*72},in:function(e){return 72*e},px:function(e){return e}},Zd=/([+-]?\\d+\\.?\\d*)(.*)/;function _d(e){return e.startsWith("\'")||e.startsWith(\'"\')?e.slice(1,-1):e}function Xd(e){var t=e.data,r=e.defaultValue,A=e.validate;if(!t)return r;t=t.trim();var n=parseInt(t,10);return!isNaN(n)&&A(n)?n:r}function Vd(e){var t=e.data,r=e.defaultValue,A=e.validate;if(!t)return r;t=t.trim();var n=parseFloat(t);return!isNaN(n)&&A(n)?n:r}function zd(e){var t=e.data,r=e.defaultValue,A=e.validate;return t&&A(t=t.trim())?t:r}function $d(e,t){return zd({data:e,defaultValue:t[0],validate:function(e){return t.includes(e)}})}function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t||(t="0"),!e)return ey(t);var r=e.trim().match(Zd);if(!r)return ey(t);var A=qd(r,3),n=A[1],i=A[2],a=parseFloat(n);if(isNaN(a))return ey(t);if(0===a)return 0;var o=Wd[i];return o?o(a):a}function ty(e){if(!e)return{num:1,den:1};var t=e.trim().split(/\\s*:\\s*/).map((function(e){return parseFloat(e)})).filter((function(e){return!isNaN(e)}));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};var r=qd(t,2);return{num:r[0],den:r[1]}}function ry(e){return e?e.trim().split(/\\s+/).map((function(e){return{excluded:"-"===e[0],viewname:e.substring(1)}})):[]}var Ay=function(){function e(t,r,A,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.success=t,this.html=r,this.bbox=A,this.breakNode=n}return function(e,t,r){return t&&Kd(e.prototype,t),r&&Kd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"isBreak",value:function(){return!!this.breakNode}}],[{key:"FAILURE",get:function(){return _(this,"FAILURE",new e(!1,null,null,null))}},{key:"EMPTY",get:function(){return _(this,"EMPTY",new e(!0,null,null,null))}},{key:"breakNode",value:function(t){return new e(!1,null,null,t)}},{key:"success",value:function(t){return new e(!0,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}])}();function ny(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||ay(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iy(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ay(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ay(e,t){if(e){if("string"==typeof e)return oy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oy(e,t):void 0}}function oy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function sy(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,cy(A.key),A)}}function cy(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var gy=function(){return function(e,t,r){return t&&sy(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(t)}),[{key:"add",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,A=iy(e);try{for(A.s();!(t=A.n()).done;){var n=t.value;this.addPdfFont(n)}}catch(e){A.e(e)}finally{A.f()}var i,a=iy(this.fonts.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;o.regular||(o.regular=o.italic||o.bold||o.bolditalic)}}catch(e){a.e(e)}finally{a.f()}if(r&&0!==r.size){var s,c=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),g=iy(r);try{for(g.s();!(s=g.n()).done;){var u=s.value;this.fonts.set(u,c)}}catch(e){g.e(e)}finally{g.f()}}}},{key:"addPdfFont",value:function(e){var t=e.cssFontInfo,r=t.fontFamily,A=this.fonts.get(r);A||(A=Object.create(null),this.fonts.set(r,A),this.defaultFont||(this.defaultFont=A));var n,i,a,o="",s=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?o=s>=700?"bolditalic":"italic":s>=700&&(o="bold"),o||((e.name.includes("Bold")||null!==(n=e.psName)&&void 0!==n&&n.includes("Bold"))&&(o="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||null!==(i=e.psName)&&void 0!==i&&i.includes("Italic")||null!==(a=e.psName)&&void 0!==a&&a.endsWith("It"))&&(o+="italic")),o||(o="regular"),A[o]=e}},{key:"getDefault",value:function(){return this.defaultFont}},{key:"find",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.fonts.get(e)||this.cache.get(e);if(r)return r;var A=/,|-|_| |bolditalic|bold|italic|regular|it/gi,n=e.replaceAll(A,"");if(r=this.fonts.get(n))return this.cache.set(e,r),r;n=n.toLowerCase();var i,a=[],o=iy(this.fonts.entries());try{for(o.s();!(i=o.n()).done;){var s=ny(i.value,2),c=s[0],g=s[1];c.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(g)}}catch(e){o.e(e)}finally{o.f()}if(0===a.length){var u,l=iy(this.fonts.entries());try{for(l.s();!(u=l.n()).done;){var h,I=ny(u.value,2)[1];null!==(h=I.regular.name)&&void 0!==h&&h.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(I)}}catch(e){l.e(e)}finally{l.f()}}if(0===a.length){n=n.replaceAll(/psmt|mt/gi,"");var f,C=iy(this.fonts.entries());try{for(C.s();!(f=C.n()).done;){var B=ny(f.value,2),Q=B[0],E=B[1];Q.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(E)}}catch(e){C.e(e)}finally{C.f()}}if(0===a.length){var d,y=iy(this.fonts.values());try{for(y.s();!(d=y.n()).done;){var p,v=d.value;null!==(p=v.regular.name)&&void 0!==p&&p.replaceAll(A,"").toLowerCase().startsWith(n)&&a.push(v)}}catch(e){y.e(e)}finally{y.f()}}return a.length>=1?(1!==a.length&&t&&q("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,a[0]),a[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),q("XFA - Cannot find the font: ".concat(e))),null)}}])}();function uy(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}function ly(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Iy(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function hy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Iy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(e,t){if(e){if("string"==typeof e)return fy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fy(e,t):void 0}}function fy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Cy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function By(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Ey(A.key),A)}}function Qy(e,t,r){return t&&By(e.prototype,t),r&&By(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ey(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var dy=function(){return Qy((function e(t,r,A,n){if(Cy(this,e),this.lineHeight=A,this.paraMargin=r||{top:0,bottom:0,left:0,right:0},!t){var i=hy(this.defaultFont(n),2);return this.pdfFont=i[0],void(this.xfaFont=i[1])}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};var a=n.find(t.typeface);if(!a){var o=hy(this.defaultFont(n),2);return this.pdfFont=o[0],void(this.xfaFont=o[1])}if(this.pdfFont=uy(t,a),!this.pdfFont){var s=hy(this.defaultFont(n),2);this.pdfFont=s[0],this.xfaFont=s[1]}}),[{key:"defaultFont",value:function(e){var t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(null!=t&&t.regular){var r=t.regular;return[r,{typeface:r.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}])}(),yy=function(){return Qy((function e(t,r,A,n){Cy(this,e),this.fontFinder=n,this.stack=[new dy(t,r,A,n)]}),[{key:"pushData",value:function(e,t,r){for(var A=this.stack.at(-1),n=0,i=["typeface","posture","weight","size","letterSpacing"];n<i.length;n++){var a=i[n];e[a]||(e[a]=A.xfaFont[a])}for(var o=0,s=["top","bottom","left","right"];o<s.length;o++){var c=s[o];isNaN(t[c])&&(t[c]=A.paraMargin[c])}var g=new dy(e,t,r||A.lineHeight,this.fontFinder);g.pdfFont||(g.pdfFont=A.pdfFont),this.stack.push(g)}},{key:"popFont",value:function(){this.stack.pop()}},{key:"topFont",value:function(){return this.stack.at(-1)}}])}(),py=function(){return Qy((function e(t,r,A,n){Cy(this,e),this.glyphs=[],this.fontSelector=new yy(t,r,A,n),this.extraHeight=0}),[{key:"pushData",value:function(e,t,r){this.fontSelector.pushData(e,t,r)}},{key:"popFont",value:function(e){return this.fontSelector.popFont()}},{key:"addPara",value:function(){var e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}},{key:"addString",value:function(e){if(e){var t=this.fontSelector.topFont(),r=t.xfaFont.size;if(t.pdfFont){var A,n=t.xfaFont.letterSpacing,i=t.pdfFont,a=i.lineHeight||1.2,o=t.lineHeight||Math.max(1.2,a)*r,s=a-(void 0===i.lineGap?.2:i.lineGap),c=Math.max(1,s)*r,g=r/1e3,u=i.defaultWidth||i.charsToGlyphs(" ")[0].width,l=ly(e.split(/[\\u2029\\n]/));try{for(l.s();!(A=l.n()).done;){var h,I=A.value,f=i.encodeString(I).join(""),C=ly(i.charsToGlyphs(f));try{for(C.s();!(h=C.n()).done;){var B=h.value,Q=B.width||u;this.glyphs.push([Q*g+n,o,c,B.unicode,!1])}}catch(e){C.e(e)}finally{C.f()}this.glyphs.push([0,0,0,"\\n",!0])}}catch(e){l.e(e)}finally{l.f()}this.glyphs.pop()}else{var E,d=ly(e.split(/[\\u2029\\n]/));try{for(d.s();!(E=d.n()).done;){var y,p=ly(E.value.split(""));try{for(p.s();!(y=p.n()).done;){var v=y.value;this.glyphs.push([r,1.2*r,r,v,!1])}}catch(e){p.e(e)}finally{p.f()}this.glyphs.push([0,0,0,"\\n",!0])}}catch(e){d.e(e)}finally{d.f()}this.glyphs.pop()}}}},{key:"compute",value:function(e){for(var t=-1,r=0,A=0,n=0,i=0,a=0,o=!1,s=!0,c=0,g=this.glyphs.length;c<g;c++){var u=hy(this.glyphs[c],5),l=u[0],h=u[1],I=u[2],f=" "===u[3],C=s?I:h;u[4]?(A=Math.max(A,i),i=0,n+=a,a=C,t=-1,r=0,s=!1):f?i+l>e?(A=Math.max(A,i),i=0,n+=a,a=C,t=-1,r=0,o=!0,s=!1):(a=Math.max(C,a),r=i,i+=l,t=c):i+l>e?(n+=a,a=C,-1!==t?(c=t,A=Math.max(A,r),i=0,t=-1,r=0):(A=Math.max(A,i),i=l),o=!0,s=!1):(i+=l,a=Math.max(C,a))}return{width:1.02*(A=Math.max(A,i)),height:n+=a+this.extraHeight,isBroken:o}}}])}();function vy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||my(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function my(e,t){if(e){if("string"==typeof e)return wy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wy(e,t):void 0}}function wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var by=/^[^.[]+/,ky=/^[^\\]]+/,Dy={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},Sy=new Map([["$data",function(e,t){return e.datasets?e.datasets.data:e}],["$record",function(e,t){return(e.datasets?e.datasets.data:e)[VE]()[0]}],["$template",function(e,t){return e.template}],["$connectionSet",function(e,t){return e.connectionSet}],["$form",function(e,t){return e.form}],["$layout",function(e,t){return e.layout}],["$host",function(e,t){return e.host}],["$dataWindow",function(e,t){return e.dataWindow}],["$event",function(e,t){return e.event}],["!",function(e,t){return e.datasets}],["$xfa",function(e,t){return e}],["xfa",function(e,t){return e}],["$",function(e,t){return t}]]),Fy=new WeakMap;function xy(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],A=e.match(by);if(!A)return null;for(var n,i=vy(A,1)[0],a=[{name:i,cacheName:"."+i,index:0,js:null,formCalc:null,operator:Dy.dot}],o=i.length;o<e.length;){var s=o;if("["!==e.charAt(o++)){var c=void 0;switch(e.charAt(o)){case".":if(!t)return null;o++,c=Dy.dotDot;break;case"#":o++,c=Dy.dotHash;break;case"[":if(r)return q("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;c=Dy.dotBracket;break;case"(":if(r)return q("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;c=Dy.dotParen;break;default:c=Dy.dot}if(!(A=e.slice(o).match(by)))break;o+=(i=vy(A,1)[0]).length,a.push({name:i,cacheName:e.slice(s,o),operator:c,index:0,js:null,formCalc:null})}else{if(!(A=e.slice(o).match(ky)))return q("XFA - Invalid index in SOM expression"),null;a.at(-1).index="*"===(n=(n=A[0]).trim())?1/0:parseInt(n,10)||0,o+=A[0].length+1}}return a}function Ry(e,t,r){var A=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=xy(r,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]);if(!n)return null;var i,a=Sy.get(n[0].name),o=0;a?(i=!0,e=[a(e,t)],o=1):(i=null===t,e=[t||e]);for(var s,c=function(){var r,a=n[o],s=a.name,c=a.cacheName,g=a.operator,u=a.index,l=[],h=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=my(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(h.s();!(r=h.n()).done;){var I=r.value;if(I.isXFAObject){var f=void 0,C=void 0;if(A&&((C=Fy.get(I))||(C=new Map,Fy.set(I,C)),f=C.get(c)),!f){switch(g){case Dy.dot:f=I[jE](s,!1);break;case Dy.dotDot:f=I[jE](s,!0);break;case Dy.dotHash:f=(f=I[qE](s)).isXFAObjectArray?f.children:[f]}A&&C.set(c,f)}f.length>0&&l.push(f)}}}catch(e){h.e(e)}finally{h.f()}if(0===l.length&&!i&&0===o){var B=t[td]();return(t=B)?(o=-1,e=[t],0):{v:null}}e=isFinite(u)?l.filter((function(e){return u<e.length})).map((function(e){return e[u]})):l.flat()},g=n.length;o<g;o++)if(0!==(s=c())&&s)return s.v;return 0===e.length?null:e}function Gy(e,t,r){var A=xy(r);if(!A)return null;if(A.some((function(e){return e.operator===Dy.dotDot})))return null;var n=Sy.get(A[0].name),i=0;n?(e=n(e,t),i=1):e=t||e;for(var a=A.length;i<a;i++){var o=A[i],s=o.name,c=o.operator,g=o.index;if(!isFinite(g))return A[i].index=0,e.createNodes(A.slice(i));var u=void 0;switch(c){case Dy.dot:u=e[jE](s,!1);break;case Dy.dotDot:u=e[jE](s,!0);break;case Dy.dotHash:u=(u=e[qE](s)).isXFAObjectArray?u.children:[u]}if(0===u.length)return e.createNodes(A.slice(i));if(!(g<u.length))return A[i].index=g-u.length,e.createNodes(A.slice(i));var l=u[g];if(!l.isXFAObject)return q("XFA - Cannot create a node."),null;e=l}return null}function Ny(e,t,r,A){var n=Ly(Hy(1&A?e.prototype:e),t,r);return 2&A&&"function"==typeof n?function(e){return n.apply(r,e)}:n}function Ly(){return Ly="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Hy(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},Ly.apply(null,arguments)}function Uy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Ty(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function My(e,t,r){return t=Hy(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Jy()?Reflect.construct(t,r||[],Hy(e).constructor):t.apply(e,r))}function Jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jy=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hy(e)}function Yy(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Py(e,t)}function Py(e,t){return Py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Py(e,t)}function Oy(){Oy=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function Ky(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ty(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Ty(e,t){if(e){if("string"==typeof e)return qy(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qy(e,t):void 0}}function qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function jy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wy(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,_y(A.key),A)}}function Zy(e,t,r){return t&&Wy(e.prototype,t),r&&Wy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Xy=Symbol(),Vy=Symbol(),zy=Symbol(),$y=Symbol("_children"),ep=Symbol(),tp=Symbol(),rp=Symbol(),Ap=Symbol(),np=Symbol(),ip=Symbol(),ap=Symbol(),op=Symbol(),sp=Symbol(),cp=Symbol("parent"),gp=Symbol(),up=Symbol(),lp=Symbol(),hp=0,Ip=Od.datasets.id,fp=function(){function e(t,r){var A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];jy(this,e),this[Qd]=t,this[Ed]=r,this[ap]=A,this[cp]=null,this[$y]=[],this[Yd]="".concat(r).concat(hp++),this[Ad]=null}return Zy(e,[{key:"isXFAObject",get:function(){return!0}},{key:"isXFAObjectArray",get:function(){return!1}},{key:"createNodes",value:function(e){var t,r=this,A=null,n=Ky(e);try{for(n.s();!(t=n.n()).done;){for(var i=t.value,a=i.name,o=i.index,s=0,c=isFinite(o)?o:0;s<=c;s++){var g=r[Qd]===Ip?-1:r[Qd];A=new Qp(g,a),r[SE](A)}r=A}}catch(e){n.e(e)}finally{n.f()}return A}},{key:yd,value:function(e){if(!this[ap]||!this[pd](e))return!1;var t=e[Ed],r=this[t];if(!(r instanceof Cp))return null!==r&&this[kd](r),this[t]=e,this[SE](e),!0;if(r.push(e))return this[SE](e),!0;var A="";return this.id?A=" (id: ".concat(this.id,")"):this.name&&(A=" (name: ".concat(this.name," ").concat(this.h.value,")")),q(\'XFA - node "\'.concat(this[Ed],\'"\').concat(A,\' has already enough "\').concat(t,\'"!\')),!1}},{key:pd,value:function(e){return this.hasOwnProperty(e[Ed])&&e[Qd]===this[Qd]}},{key:ld,value:function(){return!1}},{key:kE,value:function(){return!1}},{key:sd,value:function(){return!1}},{key:cd,value:function(){return!1}},{key:wd,value:function(){this.para&&this[rd]()[HE].paraStack.pop()}},{key:bd,value:function(){this[rd]()[HE].paraStack.push(this.para)}},{key:xd,value:function(e){this.id&&this[Qd]===Od.template.id&&e.set(this.id,this)}},{key:rd,value:function(){return this[Ad].template}},{key:hd,value:function(){return!1}},{key:Id,value:function(){return!1}},{key:SE,value:function(e){e[cp]=this,this[$y].push(e),!e[Ad]&&this[Ad]&&(e[Ad]=this[Ad])}},{key:kd,value:function(e){var t=this[$y].indexOf(e);this[$y].splice(t,1)}},{key:nd,value:function(){return this.hasOwnProperty("value")}},{key:Gd,value:function(e){}},{key:vd,value:function(e){}},{key:YE,value:function(){}},{key:xE,value:function(e){delete this[ap],this[GE]&&(e.clean(this[GE]),delete this[GE])}},{key:ad,value:function(e){return this[$y].indexOf(e)}},{key:od,value:function(e,t){t[cp]=this,this[$y].splice(e,0,t),!t[Ad]&&this[Ad]&&(t[Ad]=this[Ad])}},{key:fd,value:function(){return!this.name}},{key:Bd,value:function(){return""}},{key:Ld,value:function(){return 0===this[$y].length?this[UE]:this[$y].map((function(e){return e[Ld]()})).join("")}},{key:zy,get:function(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,A=t._attributes=new Set,n=Ky(Object.getOwnPropertyNames(this));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(null===this[i]||this[i]instanceof e||this[i]instanceof Cp)break;A.add(i)}}catch(e){n.e(e)}finally{n.f()}}return _(this,zy,t._attributes)}},{key:ud,value:function(e){for(var t=this;t;){if(t===e)return!0;t=t[td]()}return!1}},{key:td,value:function(){return this[cp]}},{key:ed,value:function(){return this[td]()}},{key:VE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[$y]}},{key:JE,value:function(){var t=Object.create(null);this[UE]&&(t.$content=this[UE]);var r,A=Ky(Object.getOwnPropertyNames(this));try{for(A.s();!(r=A.n()).done;){var n=r.value,i=this[n];null!==i&&(i instanceof e?t[n]=i[JE]():i instanceof Cp?i.isEmpty()||(t[n]=i.dump()):t[n]=i)}}catch(e){A.e(e)}finally{A.f()}return t}},{key:Hd,value:function(){return null}},{key:Md,value:function(){return Ay.EMPTY}},{key:zE,value:Oy().mark((function e(){var t,r,A;return Oy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ky(this[VE]()),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=9;break}return A=r.value,e.next=7,A;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:Ap,value:Oy().mark((function e(t,r){var A,n,i,a,o;return Oy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A=Ky(this[zE]()),e.prev=1,A.s();case 3:if((n=A.n()).done){e.next=13;break}if(i=n.value,t&&r!==t.has(i[Ed])){e.next=11;break}return a=this[TE](),(o=i[Md](a)).success||(this[HE].failingNode=i),e.next=11,o;case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),A.e(e.t0);case 18:return e.prev=18,A.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[1,15,18,21]])}))},{key:PE,value:function(){return null}},{key:DE,value:function(e,t){this[HE].children.push(e)}},{key:TE,value:function(){}},{key:FE,value:function(e){var t=e.filter,r=void 0===t?null:t,A=e.include,n=void 0===A||A;if(this[HE].generator){var i=this[TE](),a=this[HE].failingNode[Md](i);if(!a.success)return a;a.html&&this[DE](a.html,a.bbox),delete this[HE].failingNode}else this[HE].generator=this[Ap](r,n);for(;;){var o=this[HE].generator.next();if(o.done)break;var s=o.value;if(!s.success)return s;s.html&&this[DE](s.html,s.bbox)}return this[HE].generator=null,Ay.EMPTY}},{key:Rd,value:function(e){this[up]=new Set(Object.keys(e))}},{key:ip,value:function(e){var t=this[zy],r=this[up];return function(e){return function(e){if(Array.isArray(e))return qy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ty(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e).filter((function(e){return t.has(e)&&!r.has(e)}))}},{key:Sd,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,A=Ky(this[$y]);try{for(A.s();!(t=A.n()).done;)t.value[gp](e,r)}catch(e){A.e(e)}finally{A.f()}}},{key:gp,value:function(e,t){var r=this[np](e,t);r?this[Xy](r,e,t):this[Sd](e,t)}},{key:np,value:function(e,t){var r=this.use,A=this.usehref;if(!r&&!A)return null;var n=null,i=null,a=null,o=r;if(A?(o=A,A.startsWith("#som(")&&A.endsWith(")")?i=A.slice(5,-1):A.startsWith(".#som(")&&A.endsWith(")")?i=A.slice(6,-1):A.startsWith("#")?a=A.slice(1):A.startsWith(".#")&&(a=A.slice(2))):r.startsWith("#")?a=r.slice(1):i=r,this.use=this.usehref="",a?n=e.get(a):(n=Ry(e.get(Dd),this,i,!0,!1))&&(n=n[0]),!n)return q("XFA - Invalid prototype reference: ".concat(o,".")),null;if(n[Ed]!==this[Ed])return q("XFA - Incompatible prototype: ".concat(n[Ed]," !== ").concat(this[Ed],".")),null;if(t.has(n))return q("XFA - Cycle detected in prototypes use."),null;t.add(n);var s=n[np](e,t);return s&&n[Xy](s,e,t),n[Sd](e,t),t.delete(n),n}},{key:Xy,value:function(e,t,r){if(r.has(e))q("XFA - Cycle detected in prototypes use.");else{!this[UE]&&e[UE]&&(this[UE]=e[UE]),new Set(r).add(e);var A,n=Ky(this[ip](e[up]));try{for(n.s();!(A=n.n()).done;){var i=A.value;this[i]=e[i],this[up]&&this[up].add(i)}}catch(e){n.e(e)}finally{n.f()}var a,o=Ky(Object.getOwnPropertyNames(this));try{for(o.s();!(a=o.n()).done;){var s=a.value;if(!this[zy].has(s)){var c=this[s],g=e[s];if(c instanceof Cp){var u,l=Ky(c[$y]);try{for(l.s();!(u=l.n()).done;)u.value[gp](t,r)}catch(e){l.e(e)}finally{l.f()}for(var h=c[$y].length,I=g[$y].length;h<I;h++){var f=e[$y][h][NE]();if(!c.push(f))break;f[cp]=this,this[$y].push(f),f[gp](t,r)}}else if(null===c){if(null!==g){var C=g[NE]();C[cp]=this,this[s]=C,this[$y].push(C),C[gp](t,r)}}else c[Sd](t,r),g&&c[Xy](g,t,r)}}}catch(e){o.e(e)}finally{o.f()}}}},{key:NE,value:function(){var t,r=Object.create(Object.getPrototypeOf(this)),A=Ky(Object.getOwnPropertySymbols(this));try{for(A.s();!(t=A.n()).done;){var n=t.value;try{r[n]=this[n]}catch(e){_(r,n,this[n])}}}catch(e){A.e(e)}finally{A.f()}r[Yd]="".concat(r[Ed]).concat(hp++),r[$y]=[];var i,a=Ky(Object.getOwnPropertyNames(this));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(this[zy].has(o))r[o]=e[ep](this[o]);else{var s=this[o];r[o]=s instanceof Cp?new Cp(s[op]):null}}}catch(e){a.e(e)}finally{a.f()}var c,g=Ky(this[$y]);try{for(g.s();!(c=g.n()).done;){var u=c.value,l=u[Ed],h=u[NE]();r[$y].push(h),h[cp]=r,null===r[l]?r[l]=h:r[l][$y].push(h)}}catch(e){g.e(e)}finally{g.f()}return r}},{key:VE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[$y].filter((function(t){return t[Ed]===e})):this[$y]}},{key:qE,value:function(e){return this[e]}},{key:jE,value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[WE](e,t,r))}},{key:WE,value:function(e,t){var r=this,A=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Oy().mark((function n(){var i,a,o;return Oy().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("parent"!==e){n.next=4;break}return n.next=3,r[cp];case 3:return n.abrupt("return");case 4:i=Ky(r[$y]),n.prev=5,i.s();case 7:if((a=i.n()).done){n.next=19;break}if((o=a.value)[Ed]!==e){n.next=12;break}return n.next=12,o;case 12:if(o.name!==e){n.next=15;break}return n.next=15,o;case 15:if(!t&&!o[fd]()){n.next=17;break}return n.delegateYield(o[WE](e,t,!1),"t0",17);case 17:n.next=7;break;case 19:n.next=24;break;case 21:n.prev=21,n.t1=n.catch(5),i.e(n.t1);case 24:return n.prev=24,i.f(),n.finish(24);case 27:if(!A||!r[zy].has(e)){n.next=30;break}return n.next=30,new Bp(r,e,r[e]);case 30:case"end":return n.stop()}}),n,null,[[5,21,24,27]])}))()}}],[{key:ep,value:function(t){return Array.isArray(t)?t.map((function(t){return e[ep](t)})):"object"==typeof t&&null!==t?Object.assign({},t):t}}])}(),Cp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;jy(this,e),this[op]=t,this[$y]=[]}return Zy(e,[{key:"isXFAObject",get:function(){return!1}},{key:"isXFAObjectArray",get:function(){return!0}},{key:"push",value:function(e){return this[$y].length<=this[op]?(this[$y].push(e),!0):(q(\'XFA - node "\'.concat(e[Ed],\'" accepts no more than \').concat(this[op]," children")),!1)}},{key:"isEmpty",value:function(){return 0===this[$y].length}},{key:"dump",value:function(){return 1===this[$y].length?this[$y][0][JE]():this[$y].map((function(e){return e[JE]()}))}},{key:NE,value:function(){var t=new e(this[op]);return t[$y]=this[$y].map((function(e){return e[NE]()})),t}},{key:"children",get:function(){return this[$y]}},{key:"clear",value:function(){this[$y].length=0}}])}(),Bp=function(){return Zy((function e(t,r,A){jy(this,e),this[cp]=t,this[Ed]=r,this[UE]=A,this[LE]=!1,this[Yd]="attribute".concat(hp++)}),[{key:td,value:function(){return this[cp]}},{key:gd,value:function(){return!0}},{key:ZE,value:function(){return this[UE].trim()}},{key:Gd,value:function(e){e=e.value||"",this[UE]=e.toString()}},{key:Ld,value:function(){return this[UE]}},{key:ud,value:function(e){return this[cp]===e||this[cp][ud](e)}}])}(),Qp=function(e){function t(e,r){var A,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(jy(this,t),(A=My(this,t,[e,r]))[UE]="",A[tp]=null,"#text"!==r){var i=new Map;A[Vy]=i;for(var a=0,o=Object.entries(n);a<o.length;a++){var s=Uy(o[a],2),c=s[0],g=s[1];i.set(c,new Bp(A,c,g))}if(n.hasOwnProperty(dd)){var u=n[dd].xfa.dataNode;void 0!==u&&("dataGroup"===u?A[tp]=!1:"dataValue"===u&&(A[tp]=!0))}}return A[LE]=!1,A}return Yy(t,fp),Zy(t,[{key:Jd,value:function(e){var t=this[Ed];if("#text"!==t){var r=Ce(t),A=this[Qd]===Ip?"xfa:":"";e.push("<".concat(A).concat(r));var n,i=Ky(this[Vy].entries());try{for(i.s();!(n=i.n()).done;){var a=Uy(n.value,2),o=a[0],s=a[1],c=Ce(o);e.push(" ".concat(c,\'="\').concat(Yt(s[UE]),\'"\'))}}catch(e){i.e(e)}finally{i.f()}if(null!==this[tp]&&(this[tp]?e.push(\' xfa:dataNode="dataValue"\'):e.push(\' xfa:dataNode="dataGroup"\')),this[UE]||0!==this[$y].length){if(e.push(">"),this[UE])"string"==typeof this[UE]?e.push(Yt(this[UE])):this[UE][Jd](e);else{var g,u=Ky(this[$y]);try{for(u.s();!(g=u.n()).done;)g.value[Jd](e)}catch(e){u.e(e)}finally{u.f()}}e.push("</".concat(A).concat(r,">"))}else e.push("/>")}else e.push(Yt(this[UE]))}},{key:yd,value:function(e){if(this[UE]){var r=new t(this[Qd],"#text");this[SE](r),r[UE]=this[UE],this[UE]=""}return this[SE](e),!0}},{key:vd,value:function(e){this[UE]+=e}},{key:YE,value:function(){if(this[UE]&&this[$y].length>0){var e=new t(this[Qd],"#text");this[SE](e),e[UE]=this[UE],delete this[UE]}}},{key:Md,value:function(){return"#text"===this[Ed]?Ay.success({name:"#text",value:this[UE]}):Ay.EMPTY}},{key:VE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[$y].filter((function(t){return t[Ed]===e})):this[$y]}},{key:KE,value:function(){return this[Vy]}},{key:qE,value:function(e){var t=this[Vy].get(e);return void 0!==t?t:this[VE](e)}},{key:WE,value:Oy().mark((function(e,t){var r,A,n,i;return Oy().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this[Vy].get(e))){a.next=4;break}return a.next=4,r;case 4:A=Ky(this[$y]),a.prev=5,A.s();case 7:if((n=A.n()).done){a.next=16;break}if((i=n.value)[Ed]!==e){a.next=12;break}return a.next=12,i;case 12:if(!t){a.next=14;break}return a.delegateYield(i[WE](e,t),"t0",14);case 14:a.next=7;break;case 16:a.next=21;break;case 18:a.prev=18,a.t1=a.catch(5),A.e(a.t1);case 21:return a.prev=21,A.f(),a.finish(21);case 24:case"end":return a.stop()}}),r,this,[[5,18,21,24]])}))},{key:OE,value:Oy().mark((function(e,t){var r,A,n,i;return Oy().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r=this[Vy].get(e))||t&&r[LE]){a.next=4;break}return a.next=4,r;case 4:A=Ky(this[$y]),a.prev=5,A.s();case 7:if((n=A.n()).done){a.next=12;break}return i=n.value,a.delegateYield(i[OE](e,t),"t0",10);case 10:a.next=7;break;case 12:a.next=17;break;case 14:a.prev=14,a.t1=a.catch(5),A.e(a.t1);case 17:return a.prev=17,A.f(),a.finish(17);case 20:case"end":return a.stop()}}),r,this,[[5,14,17,20]])}))},{key:XE,value:Oy().mark((function e(t,r,A){var n,i,a;return Oy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Ky(this[$y]),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=12;break}if((a=i.value)[Ed]!==t||A&&a[LE]){e.next=8;break}return e.next=8,a;case 8:if(!r){e.next=10;break}return e.delegateYield(a[XE](t,r,A),"t0",10);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),n.e(e.t1);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,14,17,20]])}))},{key:gd,value:function(){return null===this[tp]?0===this[$y].length||this[$y][0][Qd]===Od.xhtml.id:this[tp]}},{key:ZE,value:function(){return null===this[tp]?0===this[$y].length?this[UE].trim():this[$y][0][Qd]===Od.xhtml.id?this[$y][0][Ld]().trim():null:this[UE].trim()}},{key:Gd,value:function(e){e=e.value||"",this[UE]=e.toString()}},{key:JE,value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object.create(null);e&&(t.$ns=this[Qd]),this[UE]&&(t.$content=this[UE]),t.$name=this[Ed],t.children=[];var r,A=Ky(this[$y]);try{for(A.s();!(r=A.n()).done;){var n=r.value;t.children.push(n[JE](e))}}catch(e){A.e(e)}finally{A.f()}t.attributes=Object.create(null);var i,a=Ky(this[Vy]);try{for(a.s();!(i=a.n()).done;){var o=Uy(i.value,2),s=o[0],c=o[1];t.attributes[s]=c[UE]}}catch(e){a.e(e)}finally{a.f()}return t}}])}(),Ep=function(e){function t(e,r){var A;return jy(this,t),(A=My(this,t,[e,r]))[UE]="",A}return Yy(t,fp),Zy(t,[{key:vd,value:function(e){this[UE]+=e}},{key:YE,value:function(){}}])}(),dp=function(e){function t(e,r,A){var n;return jy(this,t),(n=My(this,t,[e,r]))[sp]=A,n}return Yy(t,Ep),Zy(t,[{key:YE,value:function(){var e=this;this[UE]=zd({data:this[UE],defaultValue:this[sp][0],validate:function(t){return e[sp].includes(t)}})}},{key:xE,value:function(e){Ny(t,xE,this,3)([e]),delete this[sp]}}])}(),yp=function(e){function t(){return jy(this,t),My(this,t,arguments)}return Yy(t,Ep),Zy(t,[{key:YE,value:function(){this[UE]=this[UE].trim()}}])}(),pp=function(e){function t(e,r,A,n){var i;return jy(this,t),(i=My(this,t,[e,r]))[rp]=A,i[lp]=n,i}return Yy(t,Ep),Zy(t,[{key:YE,value:function(){this[UE]=Xd({data:this[UE],defaultValue:this[rp],validate:this[lp]})}},{key:xE,value:function(e){Ny(t,xE,this,3)([e]),delete this[rp],delete this[lp]}}])}(),vp=function(e){function t(e,r){return jy(this,t),My(this,t,[e,r,0,function(e){return 1===e}])}return Yy(t,pp),Zy(t)}(),mp=function(e){function t(e,r){return jy(this,t),My(this,t,[e,r,1,function(e){return 0===e}])}return Yy(t,pp),Zy(t)}();function wp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function kp(e){return"string"==typeof e?"0px":Number.isInteger(e)?"".concat(e,"px"):"".concat(e.toFixed(2),"px")}var Dp={anchorType(e,t){var r=e[ed]();if(r&&(!r.layout||"position"===r.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions(e,t){var r,A=e[ed](),n=e.w,i=e.h;if(null!==(r=A.layout)&&void 0!==r&&r.includes("row")){var a,o=A[HE],s=e.colSpan;-1===s?(a=o.columnWidths.slice(o.currentColumn).reduce((function(e,t){return e+t}),0),o.currentColumn=0):(a=o.columnWidths.slice(o.currentColumn,o.currentColumn+s).reduce((function(e,t){return e+t}),0),o.currentColumn=(o.currentColumn+e.colSpan)%o.columnWidths.length),isNaN(a)||(n=e.w=a)}t.width=""!==n?kp(n):"auto",t.height=""!==i?kp(i):"auto"},position(e,t){var r=e[ed]();null!=r&&r.layout&&"position"!==r.layout||(t.position="absolute",t.left=kp(e.x),t.top=kp(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+="rotate(-".concat(e.rotate,"deg)"),t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[Ed])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[Hd]().margin)}};function Sp(e,t){"position"===e[ed]().layout&&(e.minW>0&&(t.minWidth=kp(e.minW)),e.maxW>0&&(t.maxWidth=kp(e.maxW)),e.minH>0&&(t.minHeight=kp(e.minH)),e.maxH>0&&(t.maxHeight=kp(e.maxH)))}function Fp(e,t,r,A,n,i){var a=new py(t,r,A,n);return"string"==typeof e?a.addString(e):e[md](a),a.compute(i)}function xp(e,t){var r=null,A=null,n=!1;if((!e.w||!e.h)&&e.value){var i=0,a=0;e.margin&&(i=e.margin.leftInset+e.margin.rightInset,a=e.margin.topInset+e.margin.bottomInset);var o=null,s=null;e.para&&(s=Object.create(null),o=""===e.para.lineHeight?null:e.para.lineHeight,s.top=""===e.para.spaceAbove?0:e.para.spaceAbove,s.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,s.left=""===e.para.marginLeft?0:e.para.marginLeft,s.right=""===e.para.marginRight?0:e.para.marginRight);var c=e.font;if(!c)for(var g=e[rd](),u=e[td]();u&&u!==g;){if(u.font){c=u.font;break}u=u[td]()}var l=(e.w||t.width)-i,h=e[Ad].fontFinder;if(e.value.exData&&e.value.exData[UE]&&"text/html"===e.value.exData.contentType){var I=Fp(e.value.exData[UE],c,s,o,h,l);A=I.width,r=I.height,n=I.isBroken}else{var f=e.value[Ld]();if(f){var C=Fp(f,c,s,o,h,l);A=C.width,r=C.height,n=C.isBroken}}null===A||e.w||(A+=i),null===r||e.h||(r+=a)}return{w:A,h:r,isBroken:n}}function Rp(e,t,r){var A;if(""!==e.w&&""!==e.h)A=[e.x,e.y,e.w,e.h];else{if(!r)return null;var n=e.w;if(""===n){if(0===e.maxW){var i=e[ed]();n="position"===i.layout&&""!==i.w?0:e.minW}else n=Math.min(e.maxW,r.width);t.attributes.style.width=kp(n)}var a=e.h;if(""===a){if(0===e.maxH){var o=e[ed]();a="position"===o.layout&&""!==o.h?0:e.minH}else a=Math.min(e.maxH,r.height);t.attributes.style.height=kp(a)}A=[e.x,e.y,n,a]}return A}function Gp(e){var t,r=e[ed]();if(null!==(t=r.layout)&&void 0!==t&&t.includes("row")){var A,n=r[HE],i=e.colSpan;A=-1===i?n.columnWidths.slice(n.currentColumn).reduce((function(e,t){return e+t}),0):n.columnWidths.slice(n.currentColumn,n.currentColumn+i).reduce((function(e,t){return e+t}),0),isNaN(A)||(e.w=A)}r.layout&&"position"!==r.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce((function(e,t){return e+t}),0))}function Np(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}}function Lp(e){for(var t=Object.create(null),r=arguments.length,A=new Array(r>1?r-1:0),n=1;n<r;n++)A[n-1]=arguments[n];for(var i=0,a=A;i<a.length;i++){var o=a[i],s=e[o];if(null!==s)if(Dp.hasOwnProperty(o))Dp[o](e,t);else if(s instanceof fp){var c=s[Hd]();c?Object.assign(t,c):q("(DEBUG) - XFA - style for ".concat(o," not implemented yet"))}}return t}function Up(e,t){var r=t.attributes,A=r.style,n={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(r.class.push("xfaWrapped"),e.border){var i,a,o=e.border[HE],s=o.widths,c=o.insets,g=c[0],u=c[3],l=c[0]+c[2],h=c[1]+c[3];switch(e.border.hand){case"even":g-=s[0]/2,u-=s[3]/2,i="calc(100% + ".concat((s[1]+s[3])/2-h,"px)"),a="calc(100% + ".concat((s[0]+s[2])/2-l,"px)");break;case"left":g-=s[0],u-=s[3],i="calc(100% + ".concat(s[1]+s[3]-h,"px)"),a="calc(100% + ".concat(s[0]+s[2]-l,"px)");break;case"right":i=h?"calc(100% - ".concat(h,"px)"):"100%",a=l?"calc(100% - ".concat(l,"px)"):"100%"}var I=["xfaBorder"];Hp(e.border)&&I.push("xfaPrintOnly");for(var f={name:"div",attributes:{class:I,style:{top:"".concat(g,"px"),left:"".concat(u,"px"),width:i,height:a}},children:[]},C=0,B=["border","borderWidth","borderColor","borderRadius","borderStyle"];C<B.length;C++){var Q=B[C];void 0!==A[Q]&&(f.attributes.style[Q]=A[Q],delete A[Q])}n.children.push(f,t)}else n.children.push(t);for(var E=0,d=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];E<d.length;E++){var y=d[E];void 0!==A[y]&&(n.attributes.style[y]=A[y],delete A[y])}return n.attributes.style.position="absolute"===A.position?"absolute":"relative",delete A.position,A.alignSelf&&(n.attributes.style.alignSelf=A.alignSelf,delete A.alignSelf),n}function Mp(e){var t=ey(e.textIndent,"0px");if(!(t>=0)){var r="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),A=ey(e[r],"0px");e[r]="".concat(A-t,"px")}}function Jp(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}}function Hp(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function Yp(e){var t=e[rd]()[HE].paraStack;return t.length?t.at(-1):null}function Pp(e,t,r){var A;if(null!==(A=r.attributes.class)&&void 0!==A&&A.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));var n=Yp(e);if(n){var i=r.attributes.style;switch(i.display="flex",i.flexDirection="column",n.vAlign){case"top":i.justifyContent="start";break;case"bottom":i.justifyContent="end";break;case"middle":i.justifyContent="center"}for(var a=n[Hd](),o=0,s=Object.entries(a);o<s.length;o++){var c=wp(s[o],2),g=c[0],u=c[1];g in i||(i[g]=u)}}}}function Op(e,t,r,A){if(r){var n=_d(e.typeface);A.fontFamily=\'"\'.concat(n,\'"\');var i=r.find(n);if(i){var a=i.regular.cssFontInfo.fontFamily;a!==n&&(A.fontFamily=\'"\'.concat(a,\'"\'));var o=Yp(t);if(o&&""!==o.lineHeight)return;if(A.lineHeight)return;var s=uy(e,i);s&&(A.lineHeight=Math.max(1.2,s.lineHeight))}}else delete A.fontFamily}function Kp(e){var t=Z(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}function Tp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||qp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qp(e,t){if(e){if("string"==typeof e)return jp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jp(e,t):void 0}}function jp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Wp(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}function Zp(e){if(!e[HE])return null;var t={name:"div",attributes:e[HE].attributes,children:e[HE].children};if(e[HE].failingNode){var r=e[HE].failingNode[PE]();r&&(e.layout.endsWith("-tb")?t.children.push(Wp(e,[r])):t.children.push(r))}return 0===t.children.length?null:t}function _p(e,t,r){var A=e[HE],n=A.availableSpace,i=Tp(r,4),a=i[0],o=i[1],s=i[2],c=i[3];switch(e.layout){case"position":A.width=Math.max(A.width,a+s),A.height=Math.max(A.height,o+c),A.children.push(t);break;case"lr-tb":case"rl-tb":A.line&&1!==A.attempt||(A.line=Wp(e,[]),A.children.push(A.line),A.numberInLine=0),A.numberInLine+=1,A.line.children.push(t),0===A.attempt?(A.currentWidth+=s,A.height=Math.max(A.height,A.prevHeight+c)):(A.currentWidth=s,A.prevHeight=A.height,A.height+=c,A.attempt=0),A.width=Math.max(A.width,A.currentWidth);break;case"rl-row":case"row":A.children.push(t),A.width+=s,A.height=Math.max(A.height,c);var g,u=kp(A.height),l=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=qp(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(A.children);try{for(l.s();!(g=l.n()).done;)g.value.attributes.style.height=u}catch(e){l.e(e)}finally{l.f()}break;case"table":case"tb":A.width=Math.min(n.width,Math.max(A.width,s)),A.height+=c,A.children.push(t)}}function Xp(e){var t=e[HE].availableSpace,r=e.margin?e.margin.topInset+e.margin.bottomInset:0,A=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[HE].attempt?{width:t.width-A-e[HE].currentWidth,height:t.height-r-e[HE].prevHeight}:{width:t.width-A,height:t.height-r-e[HE].height};case"rl-row":case"row":return{width:e[HE].columnWidths.slice(e[HE].currentColumn).reduce((function(e,t){return e+t})),height:t.height-A};case"table":case"tb":return{width:t.width-A,height:t.height-r-e[HE].height};default:return t}}function Vp(e,t){var r;if(null===e[rd]()[HE].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var A=e[ed](),n=(null===(r=A[HE])||void 0===r?void 0:r.attempt)||0,i=function(e){var t,r,A=""===e.w?NaN:e.w,n=""===e.h?NaN:e.h,i=0,a=0;switch(e.anchorType||""){case"bottomCenter":i=A/2,a=n;break;case"bottomLeft":i=0,a=n;break;case"bottomRight":i=A,a=n;break;case"middleCenter":i=A/2,a=n/2;break;case"middleLeft":i=0,a=n/2;break;case"middleRight":i=A,a=n/2;break;case"topCenter":i=A/2,a=0;break;case"topRight":i=A,a=0}switch(e.rotate||0){case 0:t=-i,r=-a;break;case 90:t=-a,r=i;var o=[n,-A];A=o[0],n=o[1];break;case 180:t=i,r=a;var s=[-A,-n];A=s[0],n=s[1];break;case 270:t=a,r=-i;var c=[-n,A];A=c[0],n=c[1]}return[e.x+t+Math.min(0,A),e.y+r+Math.min(0,n),Math.abs(A),Math.abs(n)]}(e),a=Tp(i,4),o=a[1],s=a[2],c=a[3];switch(A.layout){case"lr-tb":case"rl-tb":return 0===n?e[rd]()[HE].noLayoutFailure?""!==e.w?Math.round(s-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(c-t.height)>2)&&(""!==e.w?Math.round(s-t.width)<=2||0===A[HE].numberInLine&&t.height>2:t.width>2):!!e[rd]()[HE].noLayoutFailure||!(""!==e.h&&Math.round(c-t.height)>2)&&(""===e.w||Math.round(s-t.width)<=2||!A[Id]())&&t.height>2;case"table":case"tb":return!!e[rd]()[HE].noLayoutFailure||(""===e.h||e[hd]()?(""===e.w||Math.round(s-t.width)<=2||!A[Id]())&&t.height>2:Math.round(c-t.height)<=2);case"position":return!!e[rd]()[HE].noLayoutFailure||""===e.h||Math.round(c+o-t.height)<=2||c+o>e[rd]()[HE].currentContentArea.h;case"rl-row":case"row":return!!e[rd]()[HE].noLayoutFailure||""===e.h||Math.round(c-t.height)<=2;default:return!0}}function zp(e,t,r,A){var n=$p(ov(1&A?e.prototype:e),t,r);return 2&A&&"function"==typeof n?function(e){return n.apply(r,e)}:n}function $p(){return $p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ov(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},$p.apply(null,arguments)}function ev(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||hv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tv(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Av(A.key),A)}}function rv(e,t,r){return t&&tv(e.prototype,t),r&&tv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Av(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function nv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iv(e,t,r){return t=ov(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,av()?Reflect.construct(t,r||[],ov(e).constructor):t.apply(e,r))}function av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(av=function(){return!!e})()}function ov(e){return ov=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ov(e)}function sv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cv(e,t)}function gv(){gv=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}var uv=gv().mark(vv);function lv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=hv(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function hv(e,t){if(e){if("string"==typeof e)return Iv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Iv(e,t):void 0}}function Iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var fv=Od.template.id,Cv="http://www.w3.org/2000/svg",Bv=/^H(\\d+)$/,Qv=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),Ev=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function dv(e){if(!e||!e.border)return{w:0,h:0};var t=e.border[_E]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function yv(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function pv(e,t){if(!e.value){var r=new Uw({});e[SE](r),e.value=r}e.value[Gd](t)}function vv(e){var t,r,A;return gv().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=lv(e[VE]()),n.prev=1,t.s();case 3:if((r=t.n()).done){n.next=12;break}if(!((A=r.value)instanceof pw)){n.next=8;break}return n.delegateYield(A[zE](),"t0",7);case 7:return n.abrupt("continue",10);case 8:return n.next=10,A;case 10:n.next=3;break;case 12:n.next=17;break;case 14:n.prev=14,n.t1=n.catch(1),t.e(n.t1);case 17:return n.prev=17,t.f(),n.finish(17);case 20:case"end":return n.stop()}}),uv,null,[[1,14,17,20]])}function mv(e){var t;return"error"===(null===(t=e.validate)||void 0===t?void 0:t.nullTest)}function wv(e){for(;e;){if(!e.traversal)return void(e[Nd]=e[td]()[Nd]);if(e[Nd])return;var t,r=null,A=lv(e.traversal[VE]());try{for(A.s();!(t=A.n()).done;){var n=t.value;if("next"===n.operation){r=n;break}}}catch(e){A.e(e)}finally{A.f()}if(!r||!r.ref)return void(e[Nd]=e[td]()[Nd]);var i=e[rd]();e[Nd]=++i[Nd];var a=i[Fd](r.ref,e);if(!a)return;e=a[0]}}function bv(e,t){var r=e.assist;if(r){var A=r[Md]();A&&(t.title=A);var n=r.role.match(Bv);if(n){var i=n[1];t.role="heading",t["aria-level"]=i}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{var a,o=e[td]();"row"===o.layout&&(t.role="TH"===(null===(a=o.assist)||void 0===a?void 0:a.role)?"columnheader":"cell")}}function kv(e){if(!e.assist)return null;var t=e.assist;return t.speak&&""!==t.speak[UE]?t.speak[UE]:t.toolTip?t.toolTip[UE]:null}function Dv(e){return Ay.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function Sv(e){var t=e[rd]();null===t[HE].firstUnsplittable&&(t[HE].firstUnsplittable=e,t[HE].noLayoutFailure=!0)}function Fv(e){var t=e[rd]();t[HE].firstUnsplittable===e&&(t[HE].noLayoutFailure=!1)}function xv(e){if(e[HE])return!1;if(e[HE]=Object.create(null),"auto"===e.targetType)return!1;var t=e[rd](),r=null;if(e.target){if(!(r=t[Fd](e.target,e[td]())))return!1;r=r[0]}var A=t[HE],n=A.currentPageArea,i=A.currentContentArea;if("pageArea"===e.targetType)return r instanceof tw||(r=null),e.startNew?(e[HE].target=r||n,!0):!(!r||r===n||(e[HE].target=r,0));r instanceof rm||(r=null);var a,o=r&&r[td](),s=o;if(e.startNew)if(r){var c=o.contentArea.children,g=c.indexOf(i),u=c.indexOf(r);-1!==g&&g<u&&(s=null),a=u-1}else a=n.contentArea.children.indexOf(i);else{if(!r||r===i)return!1;a=o.contentArea.children.indexOf(r)-1,s=o===n?null:o}return e[HE].target=s,e[HE].index=a,!0}function Rv(e,t,r){var A=e[rd](),n=A[HE].noLayoutFailure,i=t[ed];t[ed]=function(){return e},A[HE].noLayoutFailure=!0;var a=t[Md](r);e[DE](a.html,a.bbox),A[HE].noLayoutFailure=n,t[ed]=i}var Gv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"appearanceFilter"])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Nv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"arc",!0])).circular=Xd({data:e.circular,defaultValue:0,validate:function(e){return 1===e}}),r.hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.startAngle=Vd({data:e.startAngle,defaultValue:0,validate:function(e){return!0}}),r.sweepAngle=Vd({data:e.sweepAngle,defaultValue:360,validate:function(e){return!0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.edge=null,r.fill=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t,r=this.edge||new hm({}),A=r[Hd](),n=Object.create(null);"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)?Object.assign(n,this.fill[Hd]()):n.fill="transparent",n.strokeWidth=kp("visible"===r.presence?r.thickness:0),n.stroke=A.color;var i={xmlns:Cv,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)t={name:"ellipse",attributes:{xmlns:Cv,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:n}};else{var a=this.startAngle*Math.PI/180,o=this.sweepAngle*Math.PI/180,s=this.sweepAngle>180?1:0,c=50*(1+Math.cos(a)),g=50*(1-Math.sin(a)),u=50*(1+Math.cos(a+o)),l=50*(1-Math.sin(a+o));t={name:"path",attributes:{xmlns:Cv,d:"M ".concat(c," ").concat(g," A 50 50 0 ").concat(s," 0 ").concat(u," ").concat(l),vectorEffect:"non-scaling-stroke",style:n}},Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var h={name:"svg",children:[t],attributes:i};return yv(this[td]()[td]())?Ay.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[h]}):(h.attributes.style.position="absolute",Ay.success(h))}}])}(),Lv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"area",!0])).colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.id=e.id||"",r.name=e.name||"",r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.desc=null,r.extras=null,r.area=new Cp,r.draw=new Cp,r.exObject=new Cp,r.exclGroup=new Cp,r.field=new Cp,r.subform=new Cp,r.subformSet=new Cp,r}return sv(t,fp),rv(t,[{key:zE,value:gv().mark((function e(){return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(vv(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:fd,value:function(){return!0}},{key:cd,value:function(){return!0}},{key:DE,value:function(e,t){var r=ev(t,4),A=r[0],n=r[1],i=r[2],a=r[3];this[HE].width=Math.max(this[HE].width,A+i),this[HE].height=Math.max(this[HE].height,n+a),this[HE].children.push(e)}},{key:TE,value:function(){return this[HE].availableSpace}},{key:Md,value:function(e){var t=Lp(this,"position"),r={style:t,id:this[Yd],class:["xfaArea"]};Hp(this)&&r.class.push("xfaPrintOnly"),this.name&&(r.xfaName=this.name);var A=[];this[HE]={children:A,width:0,height:0,availableSpace:e};var n=this[FE]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!n.success)return n.isBreak()?n:(delete this[HE],Ay.FAILURE);t.width=kp(this[HE].width),t.height=kp(this[HE].height);var i={name:"div",attributes:r,children:A},a=[this.x,this.y,this[HE].width,this[HE].height];return delete this[HE],Ay.success(i,a)}}])}(),Uv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"assist",!0])).id=e.id||"",r.role=e.role||"",r.use=e.use||"",r.usehref=e.usehref||"",r.speak=null,r.toolTip=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e;return(null===(e=this.toolTip)||void 0===e?void 0:e[UE])||null}}])}(),Mv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"barcode",!0])).charEncoding=zd({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\\d{2}/)}}),r.checksum=$d(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),r.dataColumnCount=Xd({data:e.dataColumnCount,defaultValue:-1,validate:function(e){return e>=0}}),r.dataLength=Xd({data:e.dataLength,defaultValue:-1,validate:function(e){return e>=0}}),r.dataPrep=$d(e.dataPrep,["none","flateCompress"]),r.dataRowCount=Xd({data:e.dataRowCount,defaultValue:-1,validate:function(e){return e>=0}}),r.endChar=e.endChar||"",r.errorCorrectionLevel=Xd({data:e.errorCorrectionLevel,defaultValue:-1,validate:function(e){return e>=0&&e<=8}}),r.id=e.id||"",r.moduleHeight=ey(e.moduleHeight,"5mm"),r.moduleWidth=ey(e.moduleWidth,"0.25mm"),r.printCheckDigit=Xd({data:e.printCheckDigit,defaultValue:0,validate:function(e){return 1===e}}),r.rowColumnRatio=ty(e.rowColumnRatio),r.startChar=e.startChar||"",r.textLocation=$d(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),r.truncate=Xd({data:e.truncate,defaultValue:0,validate:function(e){return 1===e}}),r.type=$d(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),r.upsMode=$d(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),r.use=e.use||"",r.usehref=e.usehref||"",r.wideNarrowRatio=ty(e.wideNarrowRatio),r.encrypt=null,r.extras=null,r}return sv(t,fp),rv(t)}(),Jv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"bind",!0])).match=$d(e.match,["once","dataRef","global","none"]),r.ref=e.ref||"",r.picture=null,r}return sv(t,fp),rv(t)}(),Hv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"bindItems"])).connection=e.connection||"",r.labelRef=e.labelRef||"",r.ref=e.ref||"",r.valueRef=e.valueRef||"",r}return sv(t,fp),rv(t)}(),Yv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"bookend"])).id=e.id||"",r.leader=e.leader||"",r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),Pv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"boolean"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,vp),rv(t,[{key:Md,value:function(e){return Dv(1===this[UE]?"1":"0")}}])}(),Ov=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"border",!0])).break=$d(e.break,["close","open"]),r.hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.corner=new Cp(4),r.edge=new Cp(4),r.extras=null,r.fill=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:_E,value:function(){if(!this[HE]){var e=this.edge.children.slice();if(e.length<4)for(var t=e.at(-1)||new hm({}),r=e.length;r<4;r++)e.push(t);var A=e.map((function(e){return e.thickness})),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[HE]={widths:A,insets:n,edges:e}}return this[HE]}},{key:Hd,value:function(){var e,t=this[_E]().edges.map((function(e){var t=e[Hd]();return t.color||(t.color="#000000"),t})),r=Object.create(null);if(this.margin&&Object.assign(r,this.margin[Hd]()),"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)&&Object.assign(r,this.fill[Hd]()),this.corner.children.some((function(e){return 0!==e.radius}))){var A=this.corner.children.map((function(e){return e[Hd]()}));if(2===A.length||3===A.length)for(var n=A.at(-1),i=A.length;i<4;i++)A.push(n);r.borderRadius=A.map((function(e){return e.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":r.borderStyle="";break;case"inactive":r.borderStyle="none";break;default:r.borderStyle=t.map((function(e){return e.style})).join(" ")}return r.borderWidth=t.map((function(e){return e.width})).join(" "),r.borderColor=t.map((function(e){return e.color})).join(" "),r}}])}(),Kv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"break",!0])).after=$d(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),r.afterTarget=e.afterTarget||"",r.before=$d(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),r.beforeTarget=e.beforeTarget||"",r.bookendLeader=e.bookendLeader||"",r.bookendTrailer=e.bookendTrailer||"",r.id=e.id||"",r.overflowLeader=e.overflowLeader||"",r.overflowTarget=e.overflowTarget||"",r.overflowTrailer=e.overflowTrailer||"",r.startNew=Xd({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t)}(),Tv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"breakAfter",!0])).id=e.id||"",r.leader=e.leader||"",r.startNew=Xd({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.target=e.target||"",r.targetType=$d(e.targetType,["auto","contentArea","pageArea"]),r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r.script=null,r}return sv(t,fp),rv(t)}(),qv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"breakBefore",!0])).id=e.id||"",r.leader=e.leader||"",r.startNew=Xd({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),r.target=e.target||"",r.targetType=$d(e.targetType,["auto","contentArea","pageArea"]),r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r.script=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){return this[HE]={},Ay.FAILURE}}])}(),jv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"button",!0])).highlight=$d(e.highlight,["inverted","none","outline","push"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r=this[td]()[td](),A={name:"button",attributes:{id:this[Yd],class:["xfaButton"],style:{}},children:[]},n=lv(r.event.children);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("click"===i.activity&&i.script){var a=Kt(i.script[UE]);if(a){var o=Kp(a.url);o&&A.children.push({name:"a",attributes:{id:"link"+this[Yd],href:o,newWindow:a.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(e){n.e(e)}finally{n.f()}return Ay.success(A)}}])}(),Wv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"calculate",!0])).id=e.id||"",r.override=$d(e.override,["disabled","error","ignore","warning"]),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.message=null,r.script=null,r}return sv(t,fp),rv(t)}(),Zv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"caption",!0])).id=e.id||"",r.placement=$d(e.placement,["left","bottom","inline","right","top"]),r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.reserve=Math.ceil(ey(e.reserve)),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.font=null,r.margin=null,r.para=null,r.value=null,r}return sv(t,fp),rv(t,[{key:Gd,value:function(e){pv(this,e)}},{key:_E,value:function(e){if(!this[HE]){var t=e.width,r=e.height;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":r=this.reserve<=0?r:this.reserve}this[HE]=xp(this,{width:t,height:r})}return this[HE]}},{key:Md,value:function(e){if(!this.value)return Ay.EMPTY;this[bd]();var t=this.value[Md](e).html;if(!t)return this[wd](),Ay.EMPTY;var r=this.reserve;if(this.reserve<=0){var A=this[_E](e),n=A.w,i=A.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=n;break;case"top":case"bottom":this.reserve=i}}var a=[];"string"==typeof t?a.push({name:"#text",value:t}):a.push(t);var o=Lp(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(o.width=kp(this.reserve));break;case"top":case"bottom":this.reserve>0&&(o.height=kp(this.reserve))}return Pp(this,null,t),this[wd](),this.reserve=r,Ay.success({name:"div",attributes:{style:o,class:["xfaCaption"]},children:a})}}])}(),_v=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"certificate"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Xv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"certificates",!0])).credentialServerPolicy=$d(e.credentialServerPolicy,["optional","required"]),r.id=e.id||"",r.url=e.url||"",r.urlPolicy=e.urlPolicy||"",r.use=e.use||"",r.usehref=e.usehref||"",r.encryption=null,r.issuers=null,r.keyUsage=null,r.oids=null,r.signing=null,r.subjectDNs=null,r}return sv(t,fp),rv(t)}(),Vv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"checkButton",!0])).id=e.id||"",r.mark=$d(e.mark,["default","check","circle","cross","diamond","square","star"]),r.shape=$d(e.shape,["square","round"]),r.size=ey(e.size,"10pt"),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r,A,n,i=Lp("margin"),a=kp(this.size);i.width=i.height=a;var o,s,c,g=this[td]()[td](),u=g.items.children.length&&g.items.children[0][Md]().html||[],l={on:(void 0!==u[0]?u[0]:"on").toString(),off:(void 0!==u[1]?u[1]:"off").toString()},h=((null===(t=g.value)||void 0===t?void 0:t[Ld]())||"off")===l.on||void 0,I=g[ed](),f=g[Yd];I instanceof mm?(n=I[Yd],r="radio",A="xfaRadio",o=(null===(s=I[ME])||void 0===s?void 0:s[Yd])||I[Yd]):(r="checkbox",A="xfaCheckbox",o=(null===(c=g[ME])||void 0===c?void 0:c[Yd])||g[Yd]);var C={name:"input",attributes:{class:[A],style:i,fieldId:f,dataId:o,type:r,checked:h,xfaOn:l.on,xfaOff:l.off,"aria-label":kv(g),"aria-required":!1}};return n&&(C.attributes.name=n),mv(g)&&(C.attributes["aria-required"]=!0,C.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[C]})}}])}(),zv=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"choiceList",!0])).commitOn=$d(e.commitOn,["select","exit"]),r.id=e.id||"",r.open=$d(e.open,["userControl","always","multiSelect","onEntry"]),r.textEntry=Xd({data:e.textEntry,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r,A=Lp(this,"border","margin"),n=this[td]()[td](),i=(null===(t=n.font)||void 0===t?void 0:t.size)||10,a={fontSize:"calc(".concat(i,"px * var(--scale-factor))")},o=[];if(n.items.children.length>0){var s,c=n.items,g=0,u=0;2===c.children.length&&(u=1-(g=c.children[0].save));for(var l=c.children[g][Md]().html,h=c.children[u][Md]().html,I=!1,f=(null===(s=n.value)||void 0===s?void 0:s[Ld]())||"",C=0,B=l.length;C<B;C++){var Q={name:"option",attributes:{value:h[C]||l[C],style:a},value:l[C]};h[C]===f&&(Q.attributes.selected=I=!0),o.push(Q)}I||o.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var E={class:["xfaSelect"],fieldId:n[Yd],dataId:(null===(r=n[ME])||void 0===r?void 0:r[Yd])||n[Yd],style:A,"aria-label":kv(n),"aria-required":!1};return mv(n)&&(E["aria-required"]=!0,E.required=!0),"multiSelect"===this.open&&(E.multiple=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:o,attributes:E}]})}}])}(),$v=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"color",!0])).cSpace=$d(e.cSpace,["SRGB"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.value=e.value?function(e){var t=qd(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],3),r=t[0],A=t[1],n=t[2];if(!e)return{r,g:A,b:n};var i=e.trim().split(/\\s*,\\s*/).map((function(e){return Math.min(Math.max(0,parseInt(e.trim(),10)),255)})).map((function(e){return isNaN(e)?0:e}));if(i.length<3)return{r,g:A,b:n};var a=qd(i,3);return{r:r=a[0],g:A=a[1],b:n=a[2]}}(e.value):"",r.extras=null,r}return sv(t,fp),rv(t,[{key:nd,value:function(){return!1}},{key:Hd,value:function(){return this.value?ge.makeHexColor(this.value.r,this.value.g,this.value.b):null}}])}(),em=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"comb"])).id=e.id||"",r.numberOfCells=Xd({data:e.numberOfCells,defaultValue:0,validate:function(e){return e>=0}}),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),tm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"connect",!0])).connection=e.connection||"",r.id=e.id||"",r.ref=e.ref||"",r.usage=$d(e.usage,["exportAndImport","exportOnly","importOnly"]),r.use=e.use||"",r.usehref=e.usehref||"",r.picture=null,r}return sv(t,fp),rv(t)}(),rm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"contentArea",!0])).h=ey(e.h),r.id=e.id||"",r.name=e.name||"",r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.w=ey(e.w),r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.desc=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t={left:kp(this.x),top:kp(this.y),width:kp(this.w),height:kp(this.h)},r=["xfaContentarea"];return Hp(this)&&r.push("xfaPrintOnly"),Ay.success({name:"div",children:[],attributes:{style:t,class:r,id:this[Yd]}})}}])}(),Am=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"corner",!0])).id=e.id||"",r.inverted=Xd({data:e.inverted,defaultValue:0,validate:function(e){return 1===e}}),r.join=$d(e.join,["square","round"]),r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.radius=ey(e.radius),r.stroke=$d(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),r.thickness=ey(e.thickness,"0.5pt"),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e=Lp(this,"visibility");return e.radius=kp("square"===this.join?0:this.radius),e}}])}(),nm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"date"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=this[UE].trim();this[UE]=e?new Date(e):null}},{key:Md,value:function(e){return Dv(this[UE]?this[UE].toString():"")}}])}(),im=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"dateTime"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=this[UE].trim();this[UE]=e?new Date(e):null}},{key:Md,value:function(e){return Dv(this[UE]?this[UE].toString():"")}}])}(),am=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"dateTimeEdit",!0])).hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.picker=$d(e.picker,["host","none"]),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.comb=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r=Lp(this,"border","font","margin"),A=this[td]()[td](),n={name:"input",attributes:{type:"text",fieldId:A[Yd],dataId:(null===(t=A[ME])||void 0===t?void 0:t[Yd])||A[Yd],class:["xfaTextfield"],style:r,"aria-label":kv(A),"aria-required":!1}};return mv(A)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}])}(),om=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"decimal"])).fracDigits=Xd({data:e.fracDigits,defaultValue:2,validate:function(e){return!0}}),r.id=e.id||"",r.leadDigits=Xd({data:e.leadDigits,defaultValue:-1,validate:function(e){return!0}}),r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=parseFloat(this[UE].trim());this[UE]=isNaN(e)?null:e}},{key:Md,value:function(e){return Dv(null!==this[UE]?this[UE].toString():"")}}])}(),sm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"defaultUi",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t)}(),cm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"desc",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t)}(),gm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,dp),rv(t)}(),um=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"digestMethods",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.digestMethod=new Cp,r}return sv(t,fp),rv(t)}(),lm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"draw",!0])).anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.locale=e.locale||"",r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.rotate=Xd({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.border=null,r.caption=null,r.desc=null,r.extras=null,r.font=null,r.keep=null,r.margin=null,r.para=null,r.traversal=null,r.ui=null,r.value=null,r.setProperty=new Cp,r}return sv(t,fp),rv(t,[{key:Gd,value:function(e){pv(this,e)}},{key:Md,value:function(e){if(wv(this),"hidden"===this.presence||"inactive"===this.presence)return Ay.EMPTY;Gp(this),this[bd]();var t=this.w,r=this.h,A=xp(this,e),n=A.w,i=A.h,a=A.isBroken;if(n&&""===this.w){if(a&&this[ed]()[Id]())return this[wd](),Ay.FAILURE;this.w=n}if(i&&""===this.h&&(this.h=i),Sv(this),!Vp(this,e))return this.w=t,this.h=r,this[wd](),Ay.FAILURE;Fv(this);var o=Lp(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");Sp(this,o),o.margin&&(o.padding=o.margin,delete o.margin);var s=["xfaDraw"];this.font&&s.push("xfaFont"),Hp(this)&&s.push("xfaPrintOnly");var c={style:o,id:this[Yd],class:s};this.name&&(c.xfaName=this.name);var g={name:"div",attributes:c,children:[]};bv(this,c);var u=Rp(this,g,e),l=this.value?this.value[Md](e).html:null;return null===l?(this.w=t,this.h=r,this[wd](),Ay.success(Up(this,g),u)):(g.children.push(l),Pp(this,o,l),this.w=t,this.h=r,this[wd](),Ay.success(Up(this,g),u))}}])}(),hm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"edge",!0])).cap=$d(e.cap,["square","butt","round"]),r.id=e.id||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.stroke=$d(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),r.thickness=ey(e.thickness,"0.5pt"),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e=Lp(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:kp(this.thickness),color:this.color?this.color[Hd]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}])}(),Im=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,dp),rv(t)}(),fm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encodings",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.encoding=new Cp,r}return sv(t,fp),rv(t)}(),Cm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encrypt",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=null,r}return sv(t,fp),rv(t)}(),Bm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryptData",!0])).id=e.id||"",r.operation=$d(e.operation,["encrypt","decrypt"]),r.target=e.target||"",r.use=e.use||"",r.usehref=e.usehref||"",r.filter=null,r.manifest=null,r}return sv(t,fp),rv(t)}(),Qm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryption",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new Cp,r}return sv(t,fp),rv(t)}(),Em=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,dp),rv(t)}(),dm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"encryptionMethods",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.encryptionMethod=new Cp,r}return sv(t,fp),rv(t)}(),ym=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"event",!0])).activity=$d(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),r.id=e.id||"",r.listen=$d(e.listen,["refOnly","refAndDescendents"]),r.name=e.name||"",r.ref=e.ref||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.encryptData=null,r.execute=null,r.script=null,r.signData=null,r.submit=null,r}return sv(t,fp),rv(t)}(),pm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"exData"])).contentType=e.contentType||"",r.href=e.href||"",r.id=e.id||"",r.maxLength=Xd({data:e.maxLength,defaultValue:-1,validate:function(e){return e>=-1}}),r.name=e.name||"",r.rid=e.rid||"",r.transferEncoding=$d(e.transferEncoding,["none","base64","package"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:sd,value:function(){return"text/html"===this.contentType}},{key:yd,value:function(e){return("text/html"===this.contentType&&e[Qd]===Od.xhtml.id||"text/xml"===this.contentType)&&(this[UE]=e,!0)}},{key:Md,value:function(e){return"text/html"===this.contentType&&this[UE]?this[UE][Md](e):Ay.EMPTY}}])}(),vm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"exObject",!0])).archive=e.archive||"",r.classId=e.classId||"",r.codeBase=e.codeBase||"",r.codeType=e.codeType||"",r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.exObject=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t)}(),mm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"exclGroup",!0])).access=$d(e.access,["open","nonInteractive","protected","readOnly"]),r.accessKey=e.accessKey||"",r.anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.layout=$d(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.bind=null,r.border=null,r.calculate=null,r.caption=null,r.desc=null,r.extras=null,r.margin=null,r.para=null,r.traversal=null,r.validate=null,r.connect=new Cp,r.event=new Cp,r.field=new Cp,r.setProperty=new Cp,r}return sv(t,fp),rv(t,[{key:cd,value:function(){return!0}},{key:nd,value:function(){return!0}},{key:Gd,value:function(e){var t,r=lv(this.field.children);try{for(r.s();!(t=r.n()).done;){var A=t.value;if(!A.value){var n=new Uw({});A[SE](n),A.value=n}A.value[Gd](e)}}catch(e){r.e(e)}finally{r.f()}}},{key:Id,value:function(){return this.layout.endsWith("-tb")&&0===this[HE].attempt&&this[HE].numberInLine>0||this[td]()[Id]()}},{key:hd,value:function(){var e,t=this[ed]();return!!t[hd]()&&(void 0!==this[HE]._isSplittable?this[HE]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[HE]._isSplittable=!1,!1):!(null!==(e=t.layout)&&void 0!==e&&e.endsWith("-tb")&&0!==t[HE].numberInLine||(this[HE]._isSplittable=!0,0)))}},{key:PE,value:function(){return Zp(this)}},{key:DE,value:function(e,t){_p(this,e,t)}},{key:TE,value:function(){return Xp(this)}},{key:Md,value:function(e){if(wv(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return Ay.EMPTY;Gp(this);var t=[],r={id:this[Yd],class:[]};Jp(this,r.class),this[HE]||(this[HE]=Object.create(null)),Object.assign(this[HE],{children:t,attributes:r,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var A=this[hd]();if(A||Sv(this),!Vp(this,e))return Ay.FAILURE;var n=new Set(["field"]);if(this.layout.includes("row")){var i=this[ed]().columnWidths;Array.isArray(i)&&i.length>0&&(this[HE].columnWidths=i,this[HE].currentColumn=0)}var a=Lp(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),o=["xfaExclgroup"],s=Np(this);s&&o.push(s),Hp(this)&&o.push("xfaPrintOnly"),r.style=a,r.class=o,this.name&&(r.xfaName=this.name),this[bd]();for(var c="lr-tb"===this.layout||"rl-tb"===this.layout,g=c?2:1;this[HE].attempt<g;this[HE].attempt++){c&&1===this[HE].attempt&&(this[HE].numberInLine=0);var u=this[FE]({filter:n,include:!0});if(u.success)break;if(u.isBreak())return this[wd](),u;if(c&&0===this[HE].attempt&&0===this[HE].numberInLine&&!this[rd]()[HE].noLayoutFailure){this[HE].attempt=g;break}}if(this[wd](),A||Fv(this),this[HE].attempt===g)return A||delete this[HE],Ay.FAILURE;var l=0,h=0;this.margin&&(l=this.margin.leftInset+this.margin.rightInset,h=this.margin.topInset+this.margin.bottomInset);var I=Math.max(this[HE].width+l,this.w||0),f=Math.max(this[HE].height+h,this.h||0),C=[this.x,this.y,I,f];""===this.w&&(a.width=kp(I)),""===this.h&&(a.height=kp(f));var B={name:"div",attributes:r,children:t};return bv(this,r),delete this[HE],Ay.success(Up(this,B),C)}}])}(),wm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"execute"])).connection=e.connection||"",r.executeType=$d(e.executeType,["import","remerge"]),r.id=e.id||"",r.runAt=$d(e.runAt,["client","both","server"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),bm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"extras",!0])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.extras=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t)}(),km=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"field",!0])).access=$d(e.access,["open","nonInteractive","protected","readOnly"]),r.accessKey=e.accessKey||"",r.anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.locale=e.locale||"",r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.rotate=Xd({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.bind=null,r.border=null,r.calculate=null,r.caption=null,r.desc=null,r.extras=null,r.font=null,r.format=null,r.items=new Cp(2),r.keep=null,r.margin=null,r.para=null,r.traversal=null,r.ui=null,r.validate=null,r.value=null,r.bindItems=new Cp,r.connect=new Cp,r.event=new Cp,r.setProperty=new Cp,r}return sv(t,fp),rv(t,[{key:cd,value:function(){return!0}},{key:Gd,value:function(e){pv(this,e)}},{key:Md,value:function(e){var t;if(wv(this),!this.ui){var r;switch(this.ui=new Nw({}),this.ui[Ad]=this[Ad],this[SE](this.ui),this.items.children.length){case 0:r=new Dw({}),this.ui.textEdit=r;break;case 1:r=new Vv({}),this.ui.checkButton=r;break;case 2:r=new zv({}),this.ui.choiceList=r}this.ui[SE](r)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return Ay.EMPTY;this.caption&&delete this.caption[HE],this[bd]();var A=this.caption?this.caption[Md](e).html:null,n=this.w,i=this.h,a=0,o=0;this.margin&&(a=this.margin.leftInset+this.margin.rightInset,o=this.margin.topInset+this.margin.bottomInset);var s=null;if(""===this.w||""===this.h){var c=null,g=null,u=0,l=0;if(this.ui.checkButton)u=l=this.ui.checkButton.size;else{var h=xp(this,e),I=h.w,f=h.h;null!==I?(u=I,l=f):l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;if(e){var A=_d(e.typeface),n=e[Ad].fontFinder.find(A);r=uy(e,n)}if(!r)return{lineHeight:12,lineGap:2,lineNoGap:10};var i=e.size||10,a=r.lineHeight?Math.max(t?0:1.2,r.lineHeight):1.2,o=void 0===r.lineGap?.2:r.lineGap;return{lineHeight:a*i,lineGap:o*i,lineNoGap:Math.max(1,a-o)*i}}(this.font,!0).lineNoGap}if(u+=(s=dv(this.ui[_E]())).w,l+=s.h,this.caption){var C=this.caption[_E](e),B=C.w,Q=C.h;if(C.isBroken&&this[ed]()[Id]())return this[wd](),Ay.FAILURE;switch(c=B,g=Q,this.caption.placement){case"left":case"right":case"inline":c+=u;break;case"top":case"bottom":g+=l}}else c=u,g=l;c&&""===this.w&&(c+=a,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<c?c:this.minW)),g&&""===this.h&&(g+=o,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<g?g:this.minH))}if(this[wd](),Gp(this),Sv(this),!Vp(this,e))return this.w=n,this.h=i,this[wd](),Ay.FAILURE;Fv(this);var E=Lp(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");Sp(this,E);var d=["xfaField"];this.font&&d.push("xfaFont"),Hp(this)&&d.push("xfaPrintOnly");var y={style:E,id:this[Yd],class:d};E.margin&&(E.padding=E.margin,delete E.margin),Jp(this,d),this.name&&(y.xfaName=this.name);var p=[],v={name:"div",attributes:y,children:p};bv(this,y);var m,w=this.border?this.border[Hd]():null,b=Rp(this,v,e),k=this.ui[Md]().html;if(!k)return Object.assign(E,w),Ay.success(Up(this,v),b);this[Nd]&&(null!==(m=k.children)&&void 0!==m&&m[0]?k.children[0].attributes.tabindex=this[Nd]:k.attributes.tabindex=this[Nd]),k.attributes.style||(k.attributes.style=Object.create(null));var D=null;if(this.ui.button?(1===k.children.length&&(D=ev(k.children.splice(0,1),1)[0]),Object.assign(k.attributes.style,w)):Object.assign(E,w),p.push(k),this.value)if(this.ui.imageEdit)k.children.push(this.value[Md]().html);else if(!this.ui.button){var S,F="";if(this.value.exData)F=this.value.exData[Ld]();else if(this.value.text)F=this.value.text[_E]();else{var x=this.value[Md]().html;null!==x&&(F=x.children[0].value)}this.ui.textEdit&&null!==(S=this.value.text)&&void 0!==S&&S.maxChars&&(k.children[0].attributes.maxLength=this.value.text.maxChars),F&&(this.ui.numericEdit&&(F=parseFloat(F),F=isNaN(F)?"":F.toString()),"textarea"===k.children[0].name?k.children[0].attributes.textContent=F:k.children[0].attributes.value=F)}if(!this.ui.imageEdit&&null!==(t=k.children)&&void 0!==t&&t[0]&&this.h){s=s||dv(this.ui[_E]());var R=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(R=this.caption.reserve)<=0&&(R=this.caption[_E](e).h);var G=this.h-R-o-s.h;k.children[0].attributes.style.height=kp(G)}else k.children[0].attributes.style.height="100%"}if(D&&k.children.push(D),!A)return k.attributes.class&&k.attributes.class.push("xfaLeft"),this.w=n,this.h=i,Ay.success(Up(this,v),b);if(this.ui.button)return E.padding&&delete E.padding,"div"===A.name&&(A.name="span"),k.children.push(A),Ay.success(v,b);switch(this.ui.checkButton&&(A.attributes.class[0]="xfaCaptionForCheckButton"),k.attributes.class||(k.attributes.class=[]),k.children.splice(0,0,A),this.caption.placement){case"left":case"inline":k.attributes.class.push("xfaLeft");break;case"right":k.attributes.class.push("xfaRight");break;case"top":k.attributes.class.push("xfaTop");break;case"bottom":k.attributes.class.push("xfaBottom")}return this.w=n,this.h=i,Ay.success(Up(this,v),b)}}])}(),Dm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"fill",!0])).id=e.id||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r.linear=null,r.pattern=null,r.radial=null,r.solid=null,r.stipple=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e,t=this[td](),r=t[td]()[td](),A=Object.create(null),n="color",i=n;t instanceof Ov&&(n="background-color",i="background",r instanceof Nw&&(A.backgroundColor="white")),(t instanceof uw||t instanceof Nv)&&(n=i="fill",A.fill="white");var a,o=lv(Object.getOwnPropertyNames(this));try{for(o.s();!(a=o.n()).done;){var s=a.value;if("extras"!==s&&"color"!==s){var c=this[s];if(c instanceof fp){var g=c[Hd](this.color);return g&&(A[g.startsWith("#")?n:i]=g),A}}}}catch(e){o.e(e)}finally{o.f()}if(null!==(e=this.color)&&void 0!==e&&e.value){var u=this.color[Hd]();A[u.startsWith("#")?n:i]=u}return A}}])}(),Sm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"filter",!0])).addRevocationInfo=$d(e.addRevocationInfo,["","required","optional","none"]),r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.version=Xd({data:r.version,defaultValue:5,validate:function(e){return e>=1&&e<=5}}),r.appearanceFilter=null,r.certificates=null,r.digestMethods=null,r.encodings=null,r.encryptionMethods=null,r.handler=null,r.lockDocument=null,r.mdp=null,r.reasons=null,r.timeStamp=null,r}return sv(t,fp),rv(t)}(),Fm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"float"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=parseFloat(this[UE].trim());this[UE]=isNaN(e)?null:e}},{key:Md,value:function(e){return Dv(null!==this[UE]?this[UE].toString():"")}}])}(),xm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"font",!0])).baselineShift=ey(e.baselineShift),r.fontHorizontalScale=Vd({data:e.fontHorizontalScale,defaultValue:100,validate:function(e){return e>=0}}),r.fontVerticalScale=Vd({data:e.fontVerticalScale,defaultValue:100,validate:function(e){return e>=0}}),r.id=e.id||"",r.kerningMode=$d(e.kerningMode,["none","pair"]),r.letterSpacing=ey(e.letterSpacing,"0"),r.lineThrough=Xd({data:e.lineThrough,defaultValue:0,validate:function(e){return 1===e||2===e}}),r.lineThroughPeriod=$d(e.lineThroughPeriod,["all","word"]),r.overline=Xd({data:e.overline,defaultValue:0,validate:function(e){return 1===e||2===e}}),r.overlinePeriod=$d(e.overlinePeriod,["all","word"]),r.posture=$d(e.posture,["normal","italic"]),r.size=ey(e.size,"10pt"),r.typeface=e.typeface||"Courier",r.underline=Xd({data:e.underline,defaultValue:0,validate:function(e){return 1===e||2===e}}),r.underlinePeriod=$d(e.underlinePeriod,["all","word"]),r.use=e.use||"",r.usehref=e.usehref||"",r.weight=$d(e.weight,["normal","bold"]),r.extras=null,r.fill=null,r}return sv(t,fp),rv(t,[{key:xE,value:function(e){zp(t,xE,this,3)([e]),this[Ad].usedTypefaces.add(this.typeface)}},{key:Hd,value:function(){var e=Lp(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=kp(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=kp(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=kp(.99*this.size),Op(this,this,this[Ad].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}])}(),Rm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"format",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.picture=null,r}return sv(t,fp),rv(t)}(),Gm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"handler"])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Nm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"hyphenation"])).excludeAllCaps=Xd({data:e.excludeAllCaps,defaultValue:0,validate:function(e){return 1===e}}),r.excludeInitialCap=Xd({data:e.excludeInitialCap,defaultValue:0,validate:function(e){return 1===e}}),r.hyphenate=Xd({data:e.hyphenate,defaultValue:0,validate:function(e){return 1===e}}),r.id=e.id||"",r.pushCharacterCount=Xd({data:e.pushCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),r.remainCharacterCount=Xd({data:e.remainCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),r.use=e.use||"",r.usehref=e.usehref||"",r.wordCharacterCount=Xd({data:e.wordCharacterCount,defaultValue:7,validate:function(e){return e>=0}}),r}return sv(t,fp),rv(t)}(),Lm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"image"])).aspect=$d(e.aspect,["fit","actual","height","none","width"]),r.contentType=e.contentType||"",r.href=e.href||"",r.id=e.id||"",r.name=e.name||"",r.transferEncoding=$d(e.transferEncoding,["base64","none","package"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t,[{key:Md,value:function(){if(this.contentType&&!Qv.has(this.contentType.toLowerCase()))return Ay.EMPTY;var e=this[Ad].images&&this[Ad].images.get(this.href);if(!e&&(this.href||!this[UE]))return Ay.EMPTY;if(e||"base64"!==this.transferEncoding||(e=ie(atob(this[UE]))),!e)return Ay.EMPTY;if(!this.contentType){for(var t=0,r=Ev;t<r.length;t++){var A=ev(r[t],2),n=A[0],i=A[1];if(e.length>n.length&&n.every((function(t,r){return t===e[r]}))){this.contentType=i;break}}if(!this.contentType)return Ay.EMPTY}var a,o=new Blob([e],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":a={height:"100%",objectFit:"fill"};break;case"none":a={width:"100%",height:"100%",objectFit:"fill"};break;case"width":a={width:"100%",objectFit:"fill"}}var s=this[td]();return Ay.success({name:"img",attributes:{class:["xfaImage"],style:a,src:URL.createObjectURL(o),alt:s?kv(s[td]()):null}})}}])}(),Um=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"imageEdit",!0])).data=$d(e.data,["link","embed"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){return"embed"===this.data?Ay.success({name:"div",children:[],attributes:{}}):Ay.EMPTY}}])}(),Mm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"integer"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){var e=parseInt(this[UE].trim(),10);this[UE]=isNaN(e)?null:e}},{key:Md,value:function(e){return Dv(null!==this[UE]?this[UE].toString():"")}}])}(),Jm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"issuers",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new Cp,r}return sv(t,fp),rv(t)}(),Hm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"items",!0])).id=e.id||"",r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.ref=e.ref||"",r.save=Xd({data:e.save,defaultValue:0,validate:function(e){return 1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t=[],r=lv(this[VE]());try{for(r.s();!(e=r.n()).done;){var A=e.value;t.push(A[Ld]())}}catch(e){r.e(e)}finally{r.f()}return Ay.success(t)}}])}(),Ym=function(e){function t(e){var r;nv(this,t),(r=iv(this,t,[fv,"keep",!0])).id=e.id||"";var A=["none","contentArea","pageArea"];return r.intact=$d(e.intact,A),r.next=$d(e.next,A),r.previous=$d(e.previous,A),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t)}(),Pm=function(e){function t(e){var r;nv(this,t);var A=["","yes","no"];return(r=iv(this,t,[fv,"keyUsage"])).crlSign=$d(e.crlSign,A),r.dataEncipherment=$d(e.dataEncipherment,A),r.decipherOnly=$d(e.decipherOnly,A),r.digitalSignature=$d(e.digitalSignature,A),r.encipherOnly=$d(e.encipherOnly,A),r.id=e.id||"",r.keyAgreement=$d(e.keyAgreement,A),r.keyCertSign=$d(e.keyCertSign,A),r.keyEncipherment=$d(e.keyEncipherment,A),r.nonRepudiation=$d(e.nonRepudiation,A),r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),Om=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"line",!0])).hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.slope=$d(e.slope,["\\\\","/"]),r.use=e.use||"",r.usehref=e.usehref||"",r.edge=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t,r,A,n=this[td]()[td](),i=this.edge||new hm({}),a=i[Hd](),o=Object.create(null),s="visible"===i.presence?i.thickness:0;o.strokeWidth=kp(s),o.stroke=a.color;var c="100%",g="100%";n.w<=s?(e="50%",t=0,r="50%",A="100%",c=o.strokeWidth):n.h<=s?(e=0,t="50%",r="100%",A="50%",g=o.strokeWidth):"\\\\"===this.slope?(e=0,t=0,r="100%",A="100%"):(e=0,t="100%",r="100%",A=0);var u={name:"svg",children:[{name:"line",attributes:{xmlns:Cv,x1:e,y1:t,x2:r,y2:A,style:o}}],attributes:{xmlns:Cv,width:c,height:g,style:{overflow:"visible"}}};return yv(n)?Ay.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[u]}):(u.attributes.style.position="absolute",Ay.success(u))}}])}(),Km=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"linear",!0])).id=e.id||"",r.type=$d(e.type,["toRight","toBottom","toLeft","toTop"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){e=e?e[Hd]():"#FFFFFF";var t=this.type.replace(/([RBLT])/," $1").toLowerCase(),r=this.color?this.color[Hd]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(r,")")}}])}(),Tm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"lockDocument"])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){this[UE]=$d(this[UE],["auto","0","1"])}}])}(),qm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"manifest",!0])).action=$d(e.action,["include","all","exclude"]),r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.ref=new Cp,r}return sv(t,fp),rv(t)}(),jm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"margin",!0])).bottomInset=ey(e.bottomInset,"0"),r.id=e.id||"",r.leftInset=ey(e.leftInset,"0"),r.rightInset=ey(e.rightInset,"0"),r.topInset=ey(e.topInset,"0"),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){return{margin:kp(this.topInset)+" "+kp(this.rightInset)+" "+kp(this.bottomInset)+" "+kp(this.leftInset)}}}])}(),Wm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"mdp"])).id=e.id||"",r.permissions=Xd({data:e.permissions,defaultValue:2,validate:function(e){return 1===e||3===e}}),r.signatureType=$d(e.signatureType,["filler","author"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),Zm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"medium"])).id=e.id||"",r.imagingBBox=function(e){var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=e.trim().split(/\\s*,\\s*/).map((function(e){return ey(e,"-1")}));if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var A=qd(r,4);return{x:A[0],y:A[1],width:A[2],height:A[3]}}(e.imagingBBox),r.long=ey(e.long),r.orientation=$d(e.orientation,["portrait","landscape"]),r.short=ey(e.short),r.stock=e.stock||"",r.trayIn=$d(e.trayIn,["auto","delegate","pageFront"]),r.trayOut=$d(e.trayOut,["auto","delegate"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),_m=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"message",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.text=new Cp,r}return sv(t,fp),rv(t)}(),Xm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"numericEdit",!0])).hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.comb=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r=Lp(this,"border","font","margin"),A=this[td]()[td](),n={name:"input",attributes:{type:"text",fieldId:A[Yd],dataId:(null===(t=A[ME])||void 0===t?void 0:t[Yd])||A[Yd],class:["xfaTextfield"],style:r,"aria-label":kv(A),"aria-required":!1}};return mv(A)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}])}(),Vm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"occur",!0])).id=e.id||"",r.initial=""!==e.initial?Xd({data:e.initial,defaultValue:"",validate:function(e){return!0}}):"",r.max=""!==e.max?Xd({data:e.max,defaultValue:1,validate:function(e){return!0}}):"",r.min=""!==e.min?Xd({data:e.min,defaultValue:1,validate:function(e){return!0}}):"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:xE,value:function(){var e=this[td](),t=this.min;""===this.min&&(this.min=e instanceof tw||e instanceof rw?0:1),""===this.max&&(this.max=""===t?e instanceof tw||e instanceof rw?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof bw?1:this.min)}}])}(),zm=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"oid"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),$m=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"oids",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.oid=new Cp,r}return sv(t,fp),rv(t)}(),ew=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"overflow"])).id=e.id||"",r.leader=e.leader||"",r.target=e.target||"",r.trailer=e.trailer||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t,[{key:_E,value:function(){if(!this[HE]){var e=this[td](),t=this[rd](),r=t[Fd](this.target,e),A=t[Fd](this.leader,e),n=t[Fd](this.trailer,e);this[HE]={target:(null==r?void 0:r[0])||null,leader:(null==A?void 0:A[0])||null,trailer:(null==n?void 0:n[0])||null,addLeader:!1,addTrailer:!1}}return this[HE]}}])}(),tw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"pageArea",!0])).blankOrNotBlank=$d(e.blankOrNotBlank,["any","blank","notBlank"]),r.id=e.id||"",r.initialNumber=Xd({data:e.initialNumber,defaultValue:1,validate:function(e){return!0}}),r.name=e.name||"",r.numbered=Xd({data:e.numbered,defaultValue:1,validate:function(e){return!0}}),r.oddOrEven=$d(e.oddOrEven,["any","even","odd"]),r.pagePosition=$d(e.pagePosition,["any","first","last","only","rest"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.desc=null,r.extras=null,r.medium=null,r.occur=null,r.area=new Cp,r.contentArea=new Cp,r.draw=new Cp,r.exclGroup=new Cp,r.field=new Cp,r.subform=new Cp,r}return sv(t,fp),rv(t,[{key:Cd,value:function(){return this[HE]?!this.occur||-1===this.occur.max||this[HE].numberOfUse<this.occur.max:(this[HE]={numberOfUse:0},!0)}},{key:RE,value:function(){delete this[HE]}},{key:$E,value:function(){this[HE]||(this[HE]={numberOfUse:0});var e=this[td]();return"orderedOccurrence"===e.relation&&this[Cd]()?(this[HE].numberOfUse+=1,this):e[$E]()}},{key:TE,value:function(){return this[HE].space||{width:0,height:0}}},{key:Md,value:function(){this[HE]||(this[HE]={numberOfUse:1});var e=[];this[HE].children=e;var t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=kp(this.medium.short),t.height=kp(this.medium.long),this[HE].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){var r=t.width;t.width=t.height,t.height=r,this[HE].space={width:this.medium.long,height:this.medium.short}}}else q("XFA - No medium specified in pageArea: please file a bug.");return this[FE]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[FE]({filter:new Set(["contentArea"]),include:!0}),Ay.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[Yd],style:t,xfaName:this.name}})}}])}(),rw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"pageSet",!0])).duplexImposition=$d(e.duplexImposition,["longEdge","shortEdge"]),r.id=e.id||"",r.name=e.name||"",r.relation=$d(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.occur=null,r.pageArea=new Cp,r.pageSet=new Cp,r}return sv(t,fp),rv(t,[{key:RE,value:function(){var e,t=lv(this.pageArea.children);try{for(t.s();!(e=t.n()).done;)e.value[RE]()}catch(e){t.e(e)}finally{t.f()}var r,A=lv(this.pageSet.children);try{for(A.s();!(r=A.n()).done;)r.value[RE]()}catch(e){A.e(e)}finally{A.f()}}},{key:Cd,value:function(){return!this.occur||-1===this.occur.max||this[HE].numberOfUse<this.occur.max}},{key:$E,value:function(){if(this[HE]||(this[HE]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[HE].pageIndex+1<this.pageArea.children.length)return this[HE].pageIndex+=1,this.pageArea.children[this[HE].pageIndex][$E]();if(this[HE].pageSetIndex+1<this.pageSet.children.length)return this[HE].pageSetIndex+=1,this.pageSet.children[this[HE].pageSetIndex][$E]();if(this[Cd]())return this[HE].numberOfUse+=1,this[HE].pageIndex=-1,this[HE].pageSetIndex=-1,this[$E]();var e=this[td]();return e instanceof t?e[$E]():(this[RE](),this[$E]())}var r=this[rd]()[HE].pageNumber,A=r%2==0?"even":"odd",n=0===r?"first":"rest",i=this.pageArea.children.find((function(e){return e.oddOrEven===A&&e.pagePosition===n}));return i||((i=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&e.pagePosition===n})))?i:(i=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&"any"===e.pagePosition})))||this.pageArea.children[0])}}])}(),Aw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"para",!0])).hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.lineHeight=e.lineHeight?ey(e.lineHeight,"0pt"):"",r.marginLeft=e.marginLeft?ey(e.marginLeft,"0pt"):"",r.marginRight=e.marginRight?ey(e.marginRight,"0pt"):"",r.orphans=Xd({data:e.orphans,defaultValue:0,validate:function(e){return e>=0}}),r.preserve=e.preserve||"",r.radixOffset=e.radixOffset?ey(e.radixOffset,"0pt"):"",r.spaceAbove=e.spaceAbove?ey(e.spaceAbove,"0pt"):"",r.spaceBelow=e.spaceBelow?ey(e.spaceBelow,"0pt"):"",r.tabDefault=e.tabDefault?ey(r.tabDefault):"",r.tabStops=(e.tabStops||"").trim().split(/\\s+/).map((function(e,t){return t%2==1?ey(e):e})),r.textIndent=e.textIndent?ey(e.textIndent,"0pt"):"",r.use=e.use||"",r.usehref=e.usehref||"",r.vAlign=$d(e.vAlign,["top","bottom","middle"]),r.widows=Xd({data:e.widows,defaultValue:0,validate:function(e){return e>=0}}),r.hyphenation=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(){var e=Lp(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=kp(this.marginLeft)),""!==this.marginRight&&(e.paddingight=kp(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=kp(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=kp(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=kp(this.textIndent),Mp(e)),this.lineHeight>0&&(e.lineHeight=kp(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=kp(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[Hd]()),e}}])}(),nw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"passwordEdit",!0])).hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.passwordChar=e.passwordChar||"*",r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t)}(),iw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"pattern",!0])).id=e.id||"",r.type=$d(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){e=e?e[Hd]():"#FFFFFF";var t=this.color?this.color[Hd]():"#000000",r="repeating-linear-gradient",A="".concat(e,",").concat(e," ").concat(5,"px,").concat(t," ").concat(5,"px,").concat(t," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(r,"(to top,").concat(A,") ").concat(r,"(to right,").concat(A,")");case"crossDiagonal":return"".concat(r,"(45deg,").concat(A,") ").concat(r,"(-45deg,").concat(A,")");case"diagonalLeft":return"".concat(r,"(45deg,").concat(A,")");case"diagonalRight":return"".concat(r,"(-45deg,").concat(A,")");case"horizontal":return"".concat(r,"(to top,").concat(A,")");case"vertical":return"".concat(r,"(to right,").concat(A,")")}return""}}])}(),aw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"picture"])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),ow=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"proto",!0])).appearanceFilter=new Cp,r.arc=new Cp,r.area=new Cp,r.assist=new Cp,r.barcode=new Cp,r.bindItems=new Cp,r.bookend=new Cp,r.boolean=new Cp,r.border=new Cp,r.break=new Cp,r.breakAfter=new Cp,r.breakBefore=new Cp,r.button=new Cp,r.calculate=new Cp,r.caption=new Cp,r.certificate=new Cp,r.certificates=new Cp,r.checkButton=new Cp,r.choiceList=new Cp,r.color=new Cp,r.comb=new Cp,r.connect=new Cp,r.contentArea=new Cp,r.corner=new Cp,r.date=new Cp,r.dateTime=new Cp,r.dateTimeEdit=new Cp,r.decimal=new Cp,r.defaultUi=new Cp,r.desc=new Cp,r.digestMethod=new Cp,r.digestMethods=new Cp,r.draw=new Cp,r.edge=new Cp,r.encoding=new Cp,r.encodings=new Cp,r.encrypt=new Cp,r.encryptData=new Cp,r.encryption=new Cp,r.encryptionMethod=new Cp,r.encryptionMethods=new Cp,r.event=new Cp,r.exData=new Cp,r.exObject=new Cp,r.exclGroup=new Cp,r.execute=new Cp,r.extras=new Cp,r.field=new Cp,r.fill=new Cp,r.filter=new Cp,r.float=new Cp,r.font=new Cp,r.format=new Cp,r.handler=new Cp,r.hyphenation=new Cp,r.image=new Cp,r.imageEdit=new Cp,r.integer=new Cp,r.issuers=new Cp,r.items=new Cp,r.keep=new Cp,r.keyUsage=new Cp,r.line=new Cp,r.linear=new Cp,r.lockDocument=new Cp,r.manifest=new Cp,r.margin=new Cp,r.mdp=new Cp,r.medium=new Cp,r.message=new Cp,r.numericEdit=new Cp,r.occur=new Cp,r.oid=new Cp,r.oids=new Cp,r.overflow=new Cp,r.pageArea=new Cp,r.pageSet=new Cp,r.para=new Cp,r.passwordEdit=new Cp,r.pattern=new Cp,r.picture=new Cp,r.radial=new Cp,r.reason=new Cp,r.reasons=new Cp,r.rectangle=new Cp,r.ref=new Cp,r.script=new Cp,r.setProperty=new Cp,r.signData=new Cp,r.signature=new Cp,r.signing=new Cp,r.solid=new Cp,r.speak=new Cp,r.stipple=new Cp,r.subform=new Cp,r.subformSet=new Cp,r.subjectDN=new Cp,r.subjectDNs=new Cp,r.submit=new Cp,r.text=new Cp,r.textEdit=new Cp,r.time=new Cp,r.timeStamp=new Cp,r.toolTip=new Cp,r.traversal=new Cp,r.traverse=new Cp,r.ui=new Cp,r.validate=new Cp,r.value=new Cp,r.variables=new Cp,r}return sv(t,fp),rv(t)}(),sw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"radial",!0])).id=e.id||"",r.type=$d(e.type,["toEdge","toCenter"]),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){e=e?e[Hd]():"#FFFFFF";var t=this.color?this.color[Hd]():"#000000",r="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle at center, ".concat(r,")")}}])}(),cw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"reason"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),gw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"reasons",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.reason=new Cp,r}return sv(t,fp),rv(t)}(),uw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"rectangle",!0])).hand=$d(e.hand,["even","left","right"]),r.id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.corner=new Cp(4),r.edge=new Cp(4),r.fill=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(){var e,t=this.edge.children.length?this.edge.children[0]:new hm({}),r=t[Hd](),A=Object.create(null);"visible"===(null===(e=this.fill)||void 0===e?void 0:e.presence)?Object.assign(A,this.fill[Hd]()):A.fill="transparent",A.strokeWidth=kp("visible"===t.presence?t.thickness:0),A.stroke=r.color;var n=(this.corner.children.length?this.corner.children[0]:new Am({}))[Hd](),i={name:"svg",children:[{name:"rect",attributes:{xmlns:Cv,width:"100%",height:"100%",x:0,y:0,rx:n.radius,ry:n.radius,style:A}}],attributes:{xmlns:Cv,style:{overflow:"visible"},width:"100%",height:"100%"}};return yv(this[td]()[td]())?Ay.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[i]}):(i.attributes.style.position="absolute",Ay.success(i))}}])}(),lw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"ref"])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),hw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"script"])).binding=e.binding||"",r.contentType=e.contentType||"",r.id=e.id||"",r.name=e.name||"",r.runAt=$d(e.runAt,["client","both","server"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Iw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"setProperty"])).connection=e.connection||"",r.ref=e.ref||"",r.target=e.target||"",r}return sv(t,fp),rv(t)}(),fw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"signData",!0])).id=e.id||"",r.operation=$d(e.operation,["sign","clear","verify"]),r.ref=e.ref||"",r.target=e.target||"",r.use=e.use||"",r.usehref=e.usehref||"",r.filter=null,r.manifest=null,r}return sv(t,fp),rv(t)}(),Cw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"signature",!0])).id=e.id||"",r.type=$d(e.type,["PDF1.3","PDF1.6"]),r.use=e.use||"",r.usehref=e.usehref||"",r.border=null,r.extras=null,r.filter=null,r.manifest=null,r.margin=null,r}return sv(t,fp),rv(t)}(),Bw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"signing",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.certificate=new Cp,r}return sv(t,fp),rv(t)}(),Qw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"solid",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){return e?e[Hd]():"#FFFFFF"}}])}(),Ew=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"speak"])).disable=Xd({data:e.disable,defaultValue:0,validate:function(e){return 1===e}}),r.id=e.id||"",r.priority=$d(e.priority,["custom","caption","name","toolTip"]),r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),dw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"stipple",!0])).id=e.id||"",r.rate=Xd({data:e.rate,defaultValue:50,validate:function(e){return e>=0&&e<=100}}),r.use=e.use||"",r.usehref=e.usehref||"",r.color=null,r.extras=null,r}return sv(t,fp),rv(t,[{key:Hd,value:function(e){var t=this.rate/100;return ge.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}])}(),yw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subform",!0])).access=$d(e.access,["open","nonInteractive","protected","readOnly"]),r.allowMacro=Xd({data:e.allowMacro,defaultValue:0,validate:function(e){return 1===e}}),r.anchorType=$d(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),r.colSpan=Xd({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),r.columnWidths=(e.columnWidths||"").trim().split(/\\s+/).map((function(e){return"-1"===e?-1:ey(e)})),r.h=e.h?ey(e.h):"",r.hAlign=$d(e.hAlign,["left","center","justify","justifyAll","radix","right"]),r.id=e.id||"",r.layout=$d(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),r.locale=e.locale||"",r.maxH=ey(e.maxH,"0pt"),r.maxW=ey(e.maxW,"0pt"),r.mergeMode=$d(e.mergeMode,["consumeData","matchTemplate"]),r.minH=ey(e.minH,"0pt"),r.minW=ey(e.minW,"0pt"),r.name=e.name||"",r.presence=$d(e.presence,["visible","hidden","inactive","invisible"]),r.relevant=ry(e.relevant),r.restoreState=$d(e.restoreState,["manual","auto"]),r.scope=$d(e.scope,["name","none"]),r.use=e.use||"",r.usehref=e.usehref||"",r.w=e.w?ey(e.w):"",r.x=ey(e.x,"0pt"),r.y=ey(e.y,"0pt"),r.assist=null,r.bind=null,r.bookend=null,r.border=null,r.break=null,r.calculate=null,r.desc=null,r.extras=null,r.keep=null,r.margin=null,r.occur=null,r.overflow=null,r.pageSet=null,r.para=null,r.traversal=null,r.validate=null,r.variables=null,r.area=new Cp,r.breakAfter=new Cp,r.breakBefore=new Cp,r.connect=new Cp,r.draw=new Cp,r.event=new Cp,r.exObject=new Cp,r.exclGroup=new Cp,r.field=new Cp,r.proto=new Cp,r.setProperty=new Cp,r.subform=new Cp,r.subformSet=new Cp,r}return sv(t,fp),rv(t,[{key:ed,value:function(){var e=this[td]();return e instanceof pw?e[ed]():e}},{key:cd,value:function(){return!0}},{key:Id,value:function(){return this.layout.endsWith("-tb")&&0===this[HE].attempt&&this[HE].numberInLine>0||this[td]()[Id]()}},{key:zE,value:gv().mark((function e(){return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(vv(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:PE,value:function(){return Zp(this)}},{key:DE,value:function(e,t){_p(this,e,t)}},{key:TE,value:function(){return Xp(this)}},{key:hd,value:function(){var e,t=this[ed]();return!!t[hd]()&&(void 0!==this[HE]._isSplittable?this[HE]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[HE]._isSplittable=!1,!1):!(null!==(e=t.layout)&&void 0!==e&&e.endsWith("-tb")&&0!==t[HE].numberInLine||(this[HE]._isSplittable=!0,0)))}},{key:Md,value:function(e){var t;if(wv(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var r=new Tv({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});r[Ad]=this[Ad],this[SE](r),this.breakAfter.push(r)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var A=new qv({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});A[Ad]=this[Ad],this[SE](A),this.breakBefore.push(A)}if(""!==this.break.overflowTarget){var n=new ew({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});n[Ad]=this[Ad],this[SE](n),this.overflow.push(n)}this[kd](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return Ay.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&q("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){var i=this.breakBefore.children[0];if(xv(i))return Ay.breakNode(i)}if(null!==(t=this[HE])&&void 0!==t&&t.afterBreakAfter)return Ay.EMPTY;Gp(this);var a=[],o={id:this[Yd],class:[]};Jp(this,o.class),this[HE]||(this[HE]=Object.create(null)),Object.assign(this[HE],{children:a,line:null,attributes:o,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var s=this[rd](),c=s[HE].noLayoutFailure,g=this[hd]();if(g||Sv(this),!Vp(this,e))return Ay.FAILURE;var u=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var l=this[ed]().columnWidths;Array.isArray(l)&&l.length>0&&(this[HE].columnWidths=l,this[HE].currentColumn=0)}var h=Lp(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),I=["xfaSubform"],f=Np(this);if(f&&I.push(f),o.style=h,o.class=I,this.name&&(o.xfaName=this.name),this.overflow){var C=this.overflow[_E]();C.addLeader&&(C.addLeader=!1,Rv(this,C.leader,e))}this[bd]();for(var B="lr-tb"===this.layout||"rl-tb"===this.layout,Q=B?2:1;this[HE].attempt<Q;this[HE].attempt++){B&&1===this[HE].attempt&&(this[HE].numberInLine=0);var E=this[FE]({filter:u,include:!0});if(E.success)break;if(E.isBreak())return this[wd](),E;if(B&&0===this[HE].attempt&&0===this[HE].numberInLine&&!s[HE].noLayoutFailure){this[HE].attempt=Q;break}}if(this[wd](),g||Fv(this),s[HE].noLayoutFailure=c,this[HE].attempt===Q)return this.overflow&&(this[rd]()[HE].overflowNode=this.overflow),g||delete this[HE],Ay.FAILURE;if(this.overflow){var d=this.overflow[_E]();d.addTrailer&&(d.addTrailer=!1,Rv(this,d.trailer,e))}var y=0,p=0;this.margin&&(y=this.margin.leftInset+this.margin.rightInset,p=this.margin.topInset+this.margin.bottomInset);var v=Math.max(this[HE].width+y,this.w||0),m=Math.max(this[HE].height+p,this.h||0),w=[this.x,this.y,v,m];if(""===this.w&&(h.width=kp(v)),""===this.h&&(h.height=kp(m)),("0px"===h.width||"0px"===h.height)&&0===a.length)return Ay.EMPTY;var b={name:"div",attributes:o,children:a};bv(this,o);var k=Ay.success(Up(this,b),w);if(this.breakAfter.children.length>=1){var D=this.breakAfter.children[0];if(xv(D))return this[HE].afterBreakAfter=k,Ay.breakNode(D)}return delete this[HE],k}}])}(),pw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subformSet",!0])).id=e.id||"",r.name=e.name||"",r.relation=$d(e.relation,["ordered","choice","unordered"]),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.bookend=null,r.break=null,r.desc=null,r.extras=null,r.occur=null,r.overflow=null,r.breakAfter=new Cp,r.breakBefore=new Cp,r.subform=new Cp,r.subformSet=new Cp,r}return sv(t,fp),rv(t,[{key:zE,value:gv().mark((function e(){return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(vv(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:ed,value:function(){for(var e=this[td]();!(e instanceof yw);)e=e[td]();return e}},{key:cd,value:function(){return!0}}])}(),vw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subjectDN"])).delimiter=e.delimiter||",",r.id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:YE,value:function(){this[UE]=new Map(this[UE].split(this.delimiter).map((function(e){return(e=e.split("=",2))[0]=e[0].trim(),e})))}}])}(),mw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"subjectDNs",!0])).id=e.id||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r.subjectDN=new Cp,r}return sv(t,fp),rv(t)}(),ww=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"submit",!0])).embedPDF=Xd({data:e.embedPDF,defaultValue:0,validate:function(e){return 1===e}}),r.format=$d(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),r.id=e.id||"",r.target=e.target||"",r.textEncoding=zd({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\\d{2}/)}}),r.use=e.use||"",r.usehref=e.usehref||"",r.xdpContent=e.xdpContent||"",r.encrypt=null,r.encryptData=new Cp,r.signData=new Cp,r}return sv(t,fp),rv(t)}(),bw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"template",!0])).baseProfile=$d(e.baseProfile,["full","interactiveForms"]),r.extras=null,r.subform=new Cp,r}return sv(t,fp),rv(t,[{key:YE,value:function(){0===this.subform.children.length&&q("XFA - No subforms in template node."),this.subform.children.length>=2&&q("XFA - Several subforms in template node: please file a bug."),this[Nd]=5e3}},{key:hd,value:function(){return!0}},{key:Fd,value:function(e,t){return e.startsWith("#")?[this[id].get(e.slice(1))]:Ry(this,t,e,!0,!0)}},{key:Ud,value:gv().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E=this;return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.subform.children.length){e.next=2;break}return e.abrupt("return",Ay.success({name:"div",children:[]}));case 2:this[HE]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]},(A=this.subform.children[0]).pageSet[RE](),n=A.pageSet.pageArea.children,i={name:"div",children:[]},a=null,o=null,s=null,A.breakBefore.children.length>=1?(o=A.breakBefore.children[0],s=o.target):A.subform.children.length>=1&&A.subform.children[0].breakBefore.children.length>=1?(o=A.subform.children[0].breakBefore.children[0],s=o.target):null!==(t=A.break)&&void 0!==t&&t.beforeTarget?(o=A.break,s=o.beforeTarget):A.subform.children.length>=1&&null!==(r=A.subform.children[0].break)&&void 0!==r&&r.beforeTarget&&(o=A.subform.children[0].break,s=o.beforeTarget),o&&(c=this[Fd](s,o[td]()))instanceof tw&&(a=c,o[HE]={}),a||(a=n[0]),a[HE]={numberOfUse:1},(g=a[td]())[HE]={numberOfUse:1,pageIndex:g.pageArea.children.indexOf(a),pageSetIndex:0},l=null,h=null,I=!0,f=0,C=0,B=gv().mark((function e(){var t,r,n,o,s,c,g,B,Q,d,y,p,v,m,w,b;return gv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=7;break}if(i.children.pop(),3!=++f){e.next=5;break}return q("XFA - Something goes wrong: please file a bug."),e.abrupt("return",{v:i});case 5:e.next=8;break;case 7:f=0;case 8:u=null,E[HE].currentPageArea=a,t=a[Md]().html,i.children.push(t),l&&(E[HE].noLayoutFailure=!0,t.children.push(l[Md](a[HE].space).html),l=null),h&&(E[HE].noLayoutFailure=!0,t.children.push(h[Md](a[HE].space).html),h=null),r=a.contentArea.children,n=t.children.filter((function(e){return e.attributes.class.includes("xfaContentarea")})),I=!1,E[HE].firstUnsplittable=null,E[HE].noLayoutFailure=!1,o=function(e){var t,r=A[PE]();r&&(I||(I=(null===(t=r.children)||void 0===t?void 0:t.length)>0),n[e].children.push(r))},s=C,c=r.length;case 21:if(!(s<c)){e.next=56;break}if(g=E[HE].currentContentArea=r[s],B={width:g.w,height:g.h},C=0,l&&(n[s].children.push(l[Md](B).html),l=null),h&&(n[s].children.push(h[Md](B).html),h=null),!(Q=A[Md](B)).success){e.next=31;break}return Q.html?(I||(I=(null===(d=Q.html.children)||void 0===d?void 0:d.length)>0),n[s].children.push(Q.html)):!I&&i.children.length>1&&i.children.pop(),e.abrupt("return",{v:i});case 31:if(!Q.isBreak()){e.next=40;break}if(y=Q.breakNode,o(s),"auto"!==y.targetType){e.next=36;break}return e.abrupt("continue",53);case 36:return y.leader&&(l=(l=E[Fd](y.leader,y[td]()))?l[0]:null),y.trailer&&(h=(h=E[Fd](y.trailer,y[td]()))?h[0]:null),"pageArea"===y.targetType?(u=y[HE].target,s=1/0):y[HE].target?(u=y[HE].target,C=y[HE].index+1,s=1/0):s=y[HE].index,e.abrupt("continue",53);case 40:if(!E[HE].overflowNode){e.next=52;break}return p=E[HE].overflowNode,E[HE].overflowNode=null,v=p[_E](),m=v.target,v.addLeader=null!==v.leader,v.addTrailer=null!==v.trailer,o(s),w=s,s=1/0,m instanceof tw?u=m:m instanceof rm&&(-1!==(b=r.indexOf(m))?b>w?s=b-1:C=b:(u=m[td](),C=u.contentArea.children.indexOf(m))),e.abrupt("continue",53);case 52:o(s);case 53:s++,e.next=21;break;case 56:return E[HE].pageNumber+=1,u&&(u[Cd]()?u[HE].numberOfUse+=1:u=null),a=u||a[$E](),e.next=61,null;case 61:case"end":return e.stop()}}),e)}));case 22:return e.delegateYield(B(),"t0",24);case 24:if(!(Q=e.t0)){e.next=27;break}return e.abrupt("return",Q.v);case 27:e.next=22;break;case 29:case"end":return e.stop()}}),e,this)}))}])}(),kw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"text"])).id=e.id||"",r.maxChars=Xd({data:e.maxChars,defaultValue:0,validate:function(e){return e>=0}}),r.name=e.name||"",r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,Ep),rv(t,[{key:kE,value:function(){return!0}},{key:yd,value:function(e){return e[Qd]===Od.xhtml.id?(this[UE]=e,!0):(q("XFA - Invalid content in Text: ".concat(e[Ed],".")),!1)}},{key:vd,value:function(e){this[UE]instanceof fp||zp(t,vd,this,3)([e])}},{key:YE,value:function(){"string"==typeof this[UE]&&(this[UE]=this[UE].replaceAll("\\r\\n","\\n"))}},{key:_E,value:function(){return"string"==typeof this[UE]?this[UE].split(/[\\u2029\\u2028\\n]/).reduce((function(e,t){return t&&e.push(t),e}),[]).join("\\n"):this[UE][Ld]()}},{key:Md,value:function(e){if("string"==typeof this[UE]){var t=Dv(this[UE]).html;return this[UE].includes("\\u2029")?(t.name="div",t.children=[],this[UE].split("\\u2029").map((function(e){return e.split(/[\\u2028\\n]/).reduce((function(e,t){return e.push({name:"span",value:t},{name:"br"}),e}),[])})).forEach((function(e){t.children.push({name:"p",children:e})}))):/[\\u2028\\n]/.test(this[UE])&&(t.name="div",t.children=[],this[UE].split(/[\\u2028\\n]/).forEach((function(e){t.children.push({name:"span",value:e},{name:"br"})}))),Ay.success(t)}return this[UE][Md](e)}}])}(),Dw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"textEdit",!0])).allowRichText=Xd({data:e.allowRichText,defaultValue:0,validate:function(e){return 1===e}}),r.hScrollPolicy=$d(e.hScrollPolicy,["auto","off","on"]),r.id=e.id||"",r.multiLine=Xd({data:e.multiLine,defaultValue:"",validate:function(e){return 0===e||1===e}}),r.use=e.use||"",r.usehref=e.usehref||"",r.vScrollPolicy=$d(e.vScrollPolicy,["auto","off","on"]),r.border=null,r.comb=null,r.extras=null,r.margin=null,r}return sv(t,fp),rv(t,[{key:Md,value:function(e){var t,r,A,n=Lp(this,"border","font","margin"),i=this[td]()[td]();return""===this.multiLine&&(this.multiLine=i instanceof lm?1:0),t=1===this.multiLine?{name:"textarea",attributes:{dataId:(null===(r=i[ME])||void 0===r?void 0:r[Yd])||i[Yd],fieldId:i[Yd],class:["xfaTextfield"],style:n,"aria-label":kv(i),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:(null===(A=i[ME])||void 0===A?void 0:A[Yd])||i[Yd],fieldId:i[Yd],class:["xfaTextfield"],style:n,"aria-label":kv(i),"aria-required":!1}},mv(i)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),Ay.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}])}(),Sw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"time"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t,[{key:YE,value:function(){var e=this[UE].trim();this[UE]=e?new Date(e):null}},{key:Md,value:function(e){return Dv(this[UE]?this[UE].toString():"")}}])}(),Fw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"timeStamp"])).id=e.id||"",r.server=e.server||"",r.type=$d(e.type,["optional","required"]),r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,fp),rv(t)}(),xw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"toolTip"])).id=e.id||"",r.rid=e.rid||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return sv(t,yp),rv(t)}(),Rw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"traversal",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.traverse=new Cp,r}return sv(t,fp),rv(t)}(),Gw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"traverse",!0])).id=e.id||"",r.operation=$d(e.operation,["next","back","down","first","left","right","up"]),r.ref=e.ref||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.script=null,r}return sv(t,fp),rv(t,[{key:"name",get:function(){return this.operation}},{key:fd,value:function(){return!1}}])}(),Nw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"ui",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.picture=null,r.barcode=null,r.button=null,r.checkButton=null,r.choiceList=null,r.dateTimeEdit=null,r.defaultUi=null,r.imageEdit=null,r.numericEdit=null,r.passwordEdit=null,r.signature=null,r.textEdit=null,r}return sv(t,fp),rv(t,[{key:_E,value:function(){if(void 0===this[HE]){var e,t=lv(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("extras"!==r&&"picture"!==r){var A=this[r];if(A instanceof fp)return this[HE]=A,A}}}catch(e){t.e(e)}finally{t.f()}this[HE]=null}return this[HE]}},{key:Md,value:function(e){var t=this[_E]();return t?t[Md](e):Ay.EMPTY}}])}(),Lw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"validate",!0])).formatTest=$d(e.formatTest,["warning","disabled","error"]),r.id=e.id||"",r.nullTest=$d(e.nullTest,["disabled","error","warning"]),r.scriptTest=$d(e.scriptTest,["error","disabled","warning"]),r.use=e.use||"",r.usehref=e.usehref||"",r.extras=null,r.message=null,r.picture=null,r.script=null,r}return sv(t,fp),rv(t)}(),Uw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"value",!0])).id=e.id||"",r.override=Xd({data:e.override,defaultValue:0,validate:function(e){return 1===e}}),r.relevant=ry(e.relevant),r.use=e.use||"",r.usehref=e.usehref||"",r.arc=null,r.boolean=null,r.date=null,r.dateTime=null,r.decimal=null,r.exData=null,r.float=null,r.image=null,r.integer=null,r.line=null,r.rectangle=null,r.text=null,r.time=null,r}return sv(t,fp),rv(t,[{key:Gd,value:function(e){var t,r=this[td]();if(r instanceof km&&null!==(t=r.ui)&&void 0!==t&&t.imageEdit)return this.image||(this.image=new Lm({}),this[SE](this.image)),void(this.image[UE]=e[UE]);var A=e[Ed];if(null===this[A]){var n,i=lv(Object.getOwnPropertyNames(this));try{for(i.s();!(n=i.n()).done;){var a=n.value,o=this[a];o instanceof fp&&(this[a]=null,this[kd](o))}}catch(e){i.e(e)}finally{i.f()}this[e[Ed]]=e,this[SE](e)}else this[A][UE]=e[UE]}},{key:Ld,value:function(){if(this.exData)return"string"==typeof this.exData[UE]?this.exData[UE].trim():this.exData[UE][Ld]().trim();var e,t=lv(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("image"!==r){var A=this[r];if(A instanceof fp)return(A[UE]||"").toString().trim()}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:Md,value:function(e){var t,r=lv(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var A=this[t.value];if(A instanceof fp)return A[Md](e)}}catch(e){r.e(e)}finally{r.f()}return Ay.EMPTY}}])}(),Mw=function(e){function t(e){var r;return nv(this,t),(r=iv(this,t,[fv,"variables",!0])).id=e.id||"",r.use=e.use||"",r.usehref=e.usehref||"",r.boolean=new Cp,r.date=new Cp,r.dateTime=new Cp,r.decimal=new Cp,r.exData=new Cp,r.float=new Cp,r.image=new Cp,r.integer=new Cp,r.manifest=new Cp,r.script=new Cp,r.text=new Cp,r.time=new Cp,r}return sv(t,fp),rv(t,[{key:fd,value:function(){return!0}}])}(),Jw=function(){function e(){nv(this,e)}return rv(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t)){var A=e[t](r);return A[Rd](r),A}}},{key:"appearanceFilter",value:function(e){return new Gv(e)}},{key:"arc",value:function(e){return new Nv(e)}},{key:"area",value:function(e){return new Lv(e)}},{key:"assist",value:function(e){return new Uv(e)}},{key:"barcode",value:function(e){return new Mv(e)}},{key:"bind",value:function(e){return new Jv(e)}},{key:"bindItems",value:function(e){return new Hv(e)}},{key:"bookend",value:function(e){return new Yv(e)}},{key:"boolean",value:function(e){return new Pv(e)}},{key:"border",value:function(e){return new Ov(e)}},{key:"break",value:function(e){return new Kv(e)}},{key:"breakAfter",value:function(e){return new Tv(e)}},{key:"breakBefore",value:function(e){return new qv(e)}},{key:"button",value:function(e){return new jv(e)}},{key:"calculate",value:function(e){return new Wv(e)}},{key:"caption",value:function(e){return new Zv(e)}},{key:"certificate",value:function(e){return new _v(e)}},{key:"certificates",value:function(e){return new Xv(e)}},{key:"checkButton",value:function(e){return new Vv(e)}},{key:"choiceList",value:function(e){return new zv(e)}},{key:"color",value:function(e){return new $v(e)}},{key:"comb",value:function(e){return new em(e)}},{key:"connect",value:function(e){return new tm(e)}},{key:"contentArea",value:function(e){return new rm(e)}},{key:"corner",value:function(e){return new Am(e)}},{key:"date",value:function(e){return new nm(e)}},{key:"dateTime",value:function(e){return new im(e)}},{key:"dateTimeEdit",value:function(e){return new am(e)}},{key:"decimal",value:function(e){return new om(e)}},{key:"defaultUi",value:function(e){return new sm(e)}},{key:"desc",value:function(e){return new cm(e)}},{key:"digestMethod",value:function(e){return new gm(e)}},{key:"digestMethods",value:function(e){return new um(e)}},{key:"draw",value:function(e){return new lm(e)}},{key:"edge",value:function(e){return new hm(e)}},{key:"encoding",value:function(e){return new Im(e)}},{key:"encodings",value:function(e){return new fm(e)}},{key:"encrypt",value:function(e){return new Cm(e)}},{key:"encryptData",value:function(e){return new Bm(e)}},{key:"encryption",value:function(e){return new Qm(e)}},{key:"encryptionMethod",value:function(e){return new Em(e)}},{key:"encryptionMethods",value:function(e){return new dm(e)}},{key:"event",value:function(e){return new ym(e)}},{key:"exData",value:function(e){return new pm(e)}},{key:"exObject",value:function(e){return new vm(e)}},{key:"exclGroup",value:function(e){return new mm(e)}},{key:"execute",value:function(e){return new wm(e)}},{key:"extras",value:function(e){return new bm(e)}},{key:"field",value:function(e){return new km(e)}},{key:"fill",value:function(e){return new Dm(e)}},{key:"filter",value:function(e){return new Sm(e)}},{key:"float",value:function(e){return new Fm(e)}},{key:"font",value:function(e){return new xm(e)}},{key:"format",value:function(e){return new Rm(e)}},{key:"handler",value:function(e){return new Gm(e)}},{key:"hyphenation",value:function(e){return new Nm(e)}},{key:"image",value:function(e){return new Lm(e)}},{key:"imageEdit",value:function(e){return new Um(e)}},{key:"integer",value:function(e){return new Mm(e)}},{key:"issuers",value:function(e){return new Jm(e)}},{key:"items",value:function(e){return new Hm(e)}},{key:"keep",value:function(e){return new Ym(e)}},{key:"keyUsage",value:function(e){return new Pm(e)}},{key:"line",value:function(e){return new Om(e)}},{key:"linear",value:function(e){return new Km(e)}},{key:"lockDocument",value:function(e){return new Tm(e)}},{key:"manifest",value:function(e){return new qm(e)}},{key:"margin",value:function(e){return new jm(e)}},{key:"mdp",value:function(e){return new Wm(e)}},{key:"medium",value:function(e){return new Zm(e)}},{key:"message",value:function(e){return new _m(e)}},{key:"numericEdit",value:function(e){return new Xm(e)}},{key:"occur",value:function(e){return new Vm(e)}},{key:"oid",value:function(e){return new zm(e)}},{key:"oids",value:function(e){return new $m(e)}},{key:"overflow",value:function(e){return new ew(e)}},{key:"pageArea",value:function(e){return new tw(e)}},{key:"pageSet",value:function(e){return new rw(e)}},{key:"para",value:function(e){return new Aw(e)}},{key:"passwordEdit",value:function(e){return new nw(e)}},{key:"pattern",value:function(e){return new iw(e)}},{key:"picture",value:function(e){return new aw(e)}},{key:"proto",value:function(e){return new ow(e)}},{key:"radial",value:function(e){return new sw(e)}},{key:"reason",value:function(e){return new cw(e)}},{key:"reasons",value:function(e){return new gw(e)}},{key:"rectangle",value:function(e){return new uw(e)}},{key:"ref",value:function(e){return new lw(e)}},{key:"script",value:function(e){return new hw(e)}},{key:"setProperty",value:function(e){return new Iw(e)}},{key:"signData",value:function(e){return new fw(e)}},{key:"signature",value:function(e){return new Cw(e)}},{key:"signing",value:function(e){return new Bw(e)}},{key:"solid",value:function(e){return new Qw(e)}},{key:"speak",value:function(e){return new Ew(e)}},{key:"stipple",value:function(e){return new dw(e)}},{key:"subform",value:function(e){return new yw(e)}},{key:"subformSet",value:function(e){return new pw(e)}},{key:"subjectDN",value:function(e){return new vw(e)}},{key:"subjectDNs",value:function(e){return new mw(e)}},{key:"submit",value:function(e){return new ww(e)}},{key:"template",value:function(e){return new bw(e)}},{key:"text",value:function(e){return new kw(e)}},{key:"textEdit",value:function(e){return new Dw(e)}},{key:"time",value:function(e){return new Sw(e)}},{key:"timeStamp",value:function(e){return new Fw(e)}},{key:"toolTip",value:function(e){return new xw(e)}},{key:"traversal",value:function(e){return new Rw(e)}},{key:"traverse",value:function(e){return new Gw(e)}},{key:"ui",value:function(e){return new Nw(e)}},{key:"validate",value:function(e){return new Lw(e)}},{key:"value",value:function(e){return new Uw(e)}},{key:"variables",value:function(e){return new Mw(e)}}])}();function Hw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Pw(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yw(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Pw(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function Pw(e,t){if(e){if("string"==typeof e)return Ow(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ow(e,t):void 0}}function Ow(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Kw(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Tw(A.key),A)}}function Tw(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var qw=Od.datasets.id;function jw(e){var t=new kw({});return t[UE]=e,t}var Ww=function(){return function(e,t,r){return t&&Kw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.datasets=t.datasets,this.data=(null===(r=t.datasets)||void 0===r?void 0:r.data)||new Qp(Od.datasets.id,"data"),this.emptyMerge=0===this.data[VE]().length,this.root.form=this.form=t.template[NE]()}),[{key:"_isConsumeData",value:function(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function(){return!this._isConsumeData()}},{key:"bind",value:function(){return this._bindElement(this.form,this.data),this.form}},{key:"getData",value:function(){return this.data}},{key:"_bindValue",value:function(e,t,r){var A;if(e[ME]=t,e[nd]())if(t[gd]()){var n=t[ZE]();e[Gd](jw(n))}else if(e instanceof km&&"multiSelect"===(null===(A=e.ui)||void 0===A||null===(A=A.choiceList)||void 0===A?void 0:A.open)){var i=t[VE]().map((function(e){return e[UE].trim()})).join("\\n");e[Gd](jw(i))}else this._isConsumeData()&&q("XFA - Nodes haven\'t the same type.");else!t[gd]()||this._isMatchTemplate()?this._bindElement(e,t):q("XFA - Nodes haven\'t the same type.")}},{key:"_findDataByNameToConsume",value:function(e,t,r,A){var n,i,a;if(!e)return null;for(var o=0;o<3;o++){for(i=r[XE](e,!1,!0);a=i.next().value;)if(t===a[gd]())return a;if(r[Qd]===Od.datasets.id&&"data"===r[Ed])break;r=r[td]()}return A&&((a=(i=this.data[XE](e,!0,!1)).next().value)||null!==(n=a=(i=this.data[OE](e,!0)).next().value)&&void 0!==n&&n[gd]())?a:null}},{key:"_setProperties",value:function(e,t){if(e.hasOwnProperty("setProperty")){var r,A=Yw(e.setProperty.children);try{for(A.s();!(r=A.n()).done;){var n=r.value,i=n.ref,a=n.target;if(!n.connection&&i){var o=Ry(this.root,t,i,!1,!1);if(o){var s=Hw(o,1)[0];if(s[ud](this.data)){var c=Ry(this.root,e,a,!1,!1);if(c){var g=Hw(c,1)[0];if(g[ud](e)){var u=g[td]();if(g instanceof Iw||u instanceof Iw)q("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(g instanceof Hv||u instanceof Hv)q("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var l=s[Ld](),h=g[Ed];if(g instanceof Bp){var I=Object.create(null);I[h]=l;var f=Reflect.construct(Object.getPrototypeOf(u).constructor,[I]);u[h]=f[h]}else g.hasOwnProperty(UE)?(g[ME]=s,g[UE]=l,g[YE]()):q("XFA - Invalid node to use in setProperty")}}else q("XFA - Invalid target: must be a property or subproperty.")}else q("XFA - Invalid target: ".concat(a,"."))}else q("XFA - Invalid node: must be a data node.")}else q("XFA - Invalid reference: ".concat(i,"."))}}}catch(e){A.e(e)}finally{A.f()}}}},{key:"_bindItems",value:function(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){var r,A=Yw(e.items.children);try{for(A.s();!(r=A.n()).done;){var n=r.value;e[kd](n)}}catch(e){A.e(e)}finally{A.f()}e.items.clear();var i=new Hm({}),a=new Hm({});e[SE](i),e.items.push(i),e[SE](a),e.items.push(a);var o,s=Yw(e.bindItems.children);try{for(s.s();!(o=s.n()).done;){var c=o.value,g=c.ref,u=c.labelRef,l=c.valueRef;if(!c.connection&&g){var h=Ry(this.root,t,g,!1,!1);if(h){var I,f=Yw(h);try{for(f.s();!(I=f.n()).done;){var C=I.value;if(C[ud](this.datasets)){var B=Ry(this.root,C,u,!0,!1);if(B){var Q=Hw(B,1)[0];if(Q[ud](this.datasets)){var E=Ry(this.root,C,l,!0,!1);if(E){var d=Hw(E,1)[0];if(d[ud](this.datasets)){var y=jw(Q[Ld]()),p=jw(d[Ld]());i[SE](y),i.text.push(y),a[SE](p),a.text.push(p)}else q("XFA - Invalid value: must be a datasets child.")}else q("XFA - Invalid value: ".concat(l,"."))}else q("XFA - Invalid label: must be a datasets child.")}else q("XFA - Invalid label: ".concat(u,"."))}else q("XFA - Invalid ref (".concat(g,"): must be a datasets child."))}}catch(e){f.e(e)}finally{f.f()}}else q("XFA - Invalid reference: ".concat(g,"."))}}}catch(e){s.e(e)}finally{s.f()}}}},{key:"_bindOccurrences",value:function(e,t,r){var A;if(t.length>1&&((A=e[NE]())[kd](A.occur),A.occur=null),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1!==t.length)for(var n=e[td](),i=e[Ed],a=n[ad](e),o=1,s=t.length;o<s;o++){var c=t[o],g=A[NE]();n[i].push(g),n[od](a+o,g),this._bindValue(g,c,r),this._setProperties(g,c),this._bindItems(g,c)}}},{key:"_createOccurrences",value:function(e){if(this.emptyMerge){var t=e.occur;if(t&&!(t.initial<=1)){var r=e[td](),A=e[Ed];if(r[A]instanceof Cp){var n;n=e.name?r[A].children.filter((function(t){return t.name===e.name})).length:r[A].children.length;var i=r[ad](e)+1,a=t.initial-n;if(a){var o=e[NE]();o[kd](o.occur),o.occur=null,r[A].push(o),r[od](i,o);for(var s=1;s<a;s++){var c=o[NE]();r[A].push(c),r[od](i+s,c)}}}}}}},{key:"_getOccurInfo",value:function(e){var t=e.name,r=e.occur;if(!r||!t)return[1,1];var A=-1===r.max?1/0:r.max;return[r.min,A]}},{key:"_setAndBind",value:function(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}},{key:"_bindElement",value:function(e,t){var r=[];this._createOccurrences(e);var A,n=Yw(e[VE]());try{for(n.s();!(A=n.n()).done;){var i=A.value;if(!i[ME])if(void 0!==this._mergeMode||"subform"!==i[Ed]){if(i[cd]()){var a=!1,o=null,s=null,c=null;if(i.bind){switch(i.bind.match){case"none":this._setAndBind(i,t);continue;case"global":a=!0;break;case"dataRef":if(!i.bind.ref){q("XFA - ref is empty in node ".concat(i[Ed],".")),this._setAndBind(i,t);continue}s=i.bind.ref}i.bind.picture&&(o=i.bind.picture[UE])}var g=Hw(this._getOccurInfo(i),2),u=g[0],l=g[1];if(s){if(null===(c=Ry(this.root,t,s,!0,!1))){if(!(c=Gy(this.data,t,s)))continue;this._isConsumeData()&&(c[LE]=!0),this._setAndBind(i,c);continue}this._isConsumeData()&&(c=c.filter((function(e){return!e[LE]}))),c.length>l?c=c.slice(0,l):0===c.length&&(c=null),c&&this._isConsumeData()&&c.forEach((function(e){e[LE]=!0}))}else{if(!i.name){this._setAndBind(i,t);continue}if(this._isConsumeData()){for(var h=[];h.length<l;){var I=this._findDataByNameToConsume(i.name,i[nd](),t,a);if(!I)break;I[LE]=!0,h.push(I)}c=h.length>0?h:null}else{if(!(c=t[XE](i.name,!1,this.emptyMerge).next().value)){if(0===u){r.push(i);continue}var f=t[Qd]===qw?-1:t[Qd];c=i[ME]=new Qp(f,i.name),this.emptyMerge&&(c[LE]=!0),t[SE](c),this._setAndBind(i,c);continue}this.emptyMerge&&(c[LE]=!0),c=[c]}}c?this._bindOccurrences(i,c,o):u>0?this._setAndBind(i,t):r.push(i)}}else{this._mergeMode="consumeData"===i.mergeMode;var C=t[VE]();if(C.length>0)this._bindOccurrences(i,[C[0]],null);else if(this.emptyMerge){var B=t[Qd]===qw?-1:t[Qd],Q=i[ME]=new Qp(B,i.name||"root");t[SE](Q),this._bindElement(i,Q)}}}}catch(e){n.e(e)}finally{n.f()}r.forEach((function(e){return e[td]()[kd](e)}))}}])}();function Zw(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Xw(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function _w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Xw(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xw(e,t){if(e){if("string"==typeof e)return Vw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vw(e,t):void 0}}function Vw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function zw(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,$w(A.key),A)}}function $w(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var eb=function(){return function(e,t,r){return t&&zw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=r,this.dataset=t.datasets||null}),[{key:"serialize",value:function(e){for(var t=[[-1,this.data[VE]()]];t.length>0;){var r=t.at(-1),A=_w(r,2),n=A[0],i=A[1];if(n+1!==i.length){var a=i[++r[0]],o=e.get(a[Yd]);if(o)a[Gd](o);else{var s,c=Zw(a[KE]().values());try{for(c.s();!(s=c.n()).done;){var g=s.value,u=e.get(g[Yd]);if(u){g[Gd](u);break}}}catch(e){c.e(e)}finally{c.f()}}var l=a[VE]();l.length>0&&t.push([-1,l])}else t.pop()}var h=[\'<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">\'];if(this.dataset){var I,f=Zw(this.dataset[VE]());try{for(f.s();!(I=f.n()).done;){var C=I.value;"data"!==C[Ed]&&C[Jd](h)}}catch(e){f.e(e)}finally{f.f()}}return this.data[Jd](h),h.push("</xfa:datasets>"),h.join("")}}])}();function tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function rb(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,nb(A.key),A)}}function Ab(e,t,r){return t&&rb(e.prototype,t),r&&rb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nb(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function ib(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t,r){return t=sb(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,ob()?Reflect.construct(t,r||[],sb(e).constructor):t.apply(e,r))}function ob(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ob=function(){return!!e})()}function sb(e){return sb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sb(e)}function cb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gb(e,t)}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gb(e,t)}var ub=Od.config.id,lb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"acrobat",!0])).acrobat7=null,r.autoSave=null,r.common=null,r.validate=null,r.validateApprovalSignatures=null,r.submitUrl=new Cp,r}return cb(t,fp),Ab(t)}(),hb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"acrobat7",!0])).dynamicRender=null,r}return cb(t,fp),Ab(t)}(),Ib=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"ADBE_JSConsole",["delegate","Enable","Disable"]])}return cb(t,dp),Ab(t)}(),fb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"ADBE_JSDebugger",["delegate","Enable","Disable"]])}return cb(t,dp),Ab(t)}(),Cb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"addSilentPrint"])}return cb(t,vp),Ab(t)}(),Bb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"addViewerPreferences"])}return cb(t,vp),Ab(t)}(),Qb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"adjustData"])}return cb(t,mp),Ab(t)}(),Eb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"adobeExtensionLevel",0,function(e){return e>=1&&e<=8}])}return cb(t,pp),Ab(t)}(),db=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"agent",!0])).name=e.name?e.name.trim():"",r.common=new Cp,r}return cb(t,fp),Ab(t)}(),yb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"alwaysEmbed"])}return cb(t,Ep),Ab(t)}(),pb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"amd"])}return cb(t,yp),Ab(t)}(),vb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"area"])).level=Xd({data:e.level,defaultValue:0,validate:function(e){return e>=1&&e<=3}}),r.name=$d(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]),r}return cb(t,fp),Ab(t)}(),mb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"attributes",["preserve","delegate","ignore"]])}return cb(t,dp),Ab(t)}(),wb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"autoSave",["disabled","enabled"]])}return cb(t,dp),Ab(t)}(),bb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"base"])}return cb(t,yp),Ab(t)}(),kb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"batchOutput"])).format=$d(e.format,["none","concat","zip","zipCompress"]),r}return cb(t,fp),Ab(t)}(),Db=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"behaviorOverride"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=new Map(this[UE].trim().split(/\\s+/).filter((function(e){return e.includes(":")})).map((function(e){return e.split(":",2)})))}}])}(),Sb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"cache",!0])).templateCache=null,r}return cb(t,fp),Ab(t)}(),Fb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"change"])}return cb(t,vp),Ab(t)}(),xb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"common",!0])).data=null,r.locale=null,r.localeSet=null,r.messaging=null,r.suppressBanner=null,r.template=null,r.validationMessaging=null,r.versionControl=null,r.log=new Cp,r}return cb(t,fp),Ab(t)}(),Rb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"compress"])).scope=$d(e.scope,["imageOnly","document"]),r}return cb(t,fp),Ab(t)}(),Gb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"compressLogicalStructure"])}return cb(t,vp),Ab(t)}(),Nb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"compressObjectStream"])}return cb(t,mp),Ab(t)}(),Lb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"compression",!0])).compressLogicalStructure=null,r.compressObjectStream=null,r.level=null,r.type=null,r}return cb(t,fp),Ab(t)}(),Ub=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"config",!0])).acrobat=null,r.present=null,r.trace=null,r.agent=new Cp,r}return cb(t,fp),Ab(t)}(),Mb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"conformance",["A","B"]])}return cb(t,dp),Ab(t)}(),Jb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"contentCopy"])}return cb(t,vp),Ab(t)}(),Hb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"copies",1,function(e){return e>=1}])}return cb(t,pp),Ab(t)}(),Yb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"creator"])}return cb(t,yp),Ab(t)}(),Pb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"currentPage",0,function(e){return e>=0}])}return cb(t,pp),Ab(t)}(),Ob=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"data",!0])).adjustData=null,r.attributes=null,r.incrementalLoad=null,r.outputXSL=null,r.range=null,r.record=null,r.startNode=null,r.uri=null,r.window=null,r.xsl=null,r.excludeNS=new Cp,r.transform=new Cp,r}return cb(t,fp),Ab(t)}(),Kb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"debug",!0])).uri=null,r}return cb(t,fp),Ab(t)}(),Tb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"defaultTypeface"])).writingScript=$d(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]),r}return cb(t,Ep),Ab(t)}(),qb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"destination",["pdf","pcl","ps","webClient","zpl"]])}return cb(t,dp),Ab(t)}(),jb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"documentAssembly"])}return cb(t,vp),Ab(t)}(),Wb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"driver",!0])).name=e.name?e.name.trim():"",r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),Zb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"]])}return cb(t,dp),Ab(t)}(),_b=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"dynamicRender",["forbidden","required"]])}return cb(t,dp),Ab(t)}(),Xb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"embed"])}return cb(t,vp),Ab(t)}(),Vb=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"encrypt"])}return cb(t,vp),Ab(t)}(),zb=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"encryption",!0])).encrypt=null,r.encryptionLevel=null,r.permissions=null,r}return cb(t,fp),Ab(t)}(),$b=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"encryptionLevel",["40bit","128bit"]])}return cb(t,dp),Ab(t)}(),ek=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"enforce"])}return cb(t,yp),Ab(t)}(),tk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"equate"])).force=Xd({data:e.force,defaultValue:1,validate:function(e){return 0===e}}),r.from=e.from||"",r.to=e.to||"",r}return cb(t,fp),Ab(t)}(),rk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"equateRange"])).from=e.from||"",r.to=e.to||"",r._unicodeRange=e.unicodeRange||"",r}return cb(t,fp),Ab(t,[{key:"unicodeRange",get:function(){var e,t=[],r=/U\\+([0-9a-fA-F]+)/,A=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this._unicodeRange.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e})));try{for(A.s();!(e=A.n()).done;){var n=e.value;1===(n=n.split("-",2).map((function(e){var t=e.match(r);return t?parseInt(t[1],16):0}))).length&&n.push(n[0]),t.push(n)}}catch(e){A.e(e)}finally{A.f()}return _(this,"unicodeRange",t)}}])}(),Ak=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"exclude"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s+/).filter((function(e){return e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)}))}}])}(),nk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"excludeNS"])}return cb(t,yp),Ab(t)}(),ik=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"flipLabel",["usePrinterSetting","on","off"]])}return cb(t,dp),Ab(t)}(),ak=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"fontInfo",!0])).embed=null,r.map=null,r.subsetBelow=null,r.alwaysEmbed=new Cp,r.defaultTypeface=new Cp,r.neverEmbed=new Cp,r}return cb(t,fp),Ab(t)}(),ok=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"formFieldFilling"])}return cb(t,vp),Ab(t)}(),sk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"groupParent"])}return cb(t,yp),Ab(t)}(),ck=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"ifEmpty",["dataValue","dataGroup","ignore","remove"]])}return cb(t,dp),Ab(t)}(),gk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"includeXDPContent"])}return cb(t,yp),Ab(t)}(),uk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"incrementalLoad",["none","forwardOnly"]])}return cb(t,dp),Ab(t)}(),lk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"incrementalMerge"])}return cb(t,vp),Ab(t)}(),hk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"interactive"])}return cb(t,vp),Ab(t)}(),Ik=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"jog",["usePrinterSetting","none","pageSet"]])}return cb(t,dp),Ab(t)}(),fk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"labelPrinter",!0])).name=$d(e.name,["zpl","dpl","ipl","tcpl"]),r.batchOutput=null,r.flipLabel=null,r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),Ck=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"layout",["paginate","panel"]])}return cb(t,dp),Ab(t)}(),Bk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"level",0,function(e){return e>0}])}return cb(t,pp),Ab(t)}(),Qk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"linearized"])}return cb(t,vp),Ab(t)}(),Ek=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"locale"])}return cb(t,yp),Ab(t)}(),dk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"localeSet"])}return cb(t,yp),Ab(t)}(),yk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"log",!0])).mode=null,r.threshold=null,r.to=null,r.uri=null,r}return cb(t,fp),Ab(t)}(),pk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"map",!0])).equate=new Cp,r.equateRange=new Cp,r}return cb(t,fp),Ab(t)}(),vk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"mediumInfo",!0])).map=null,r}return cb(t,fp),Ab(t)}(),mk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"message",!0])).msgId=null,r.severity=null,r}return cb(t,fp),Ab(t)}(),wk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"messaging",!0])).message=new Cp,r}return cb(t,fp),Ab(t)}(),bk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"mode",["append","overwrite"]])}return cb(t,dp),Ab(t)}(),kk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"modifyAnnots"])}return cb(t,vp),Ab(t)}(),Dk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"msgId",1,function(e){return e>=1}])}return cb(t,pp),Ab(t)}(),Sk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"nameAttr"])}return cb(t,yp),Ab(t)}(),Fk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"neverEmbed"])}return cb(t,Ep),Ab(t)}(),xk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"numberOfCopies",null,function(e){return e>=2&&e<=5}])}return cb(t,pp),Ab(t)}(),Rk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"openAction",!0])).destination=null,r}return cb(t,fp),Ab(t)}(),Gk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"output",!0])).to=null,r.type=null,r.uri=null,r}return cb(t,fp),Ab(t)}(),Nk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"outputBin"])}return cb(t,yp),Ab(t)}(),Lk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"outputXSL",!0])).uri=null,r}return cb(t,fp),Ab(t)}(),Uk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"overprint",["none","both","draw","field"]])}return cb(t,dp),Ab(t)}(),Mk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"packets"])}return cb(t,yp),Ab(t,[{key:YE,value:function(){"*"!==this[UE]&&(this[UE]=this[UE].trim().split(/\\s+/).filter((function(e){return["config","datasets","template","xfdf","xslt"].includes(e)})))}}])}(),Jk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"pageOffset"])).x=Xd({data:e.x,defaultValue:"useXDCSetting",validate:function(e){return!0}}),r.y=Xd({data:e.y,defaultValue:"useXDCSetting",validate:function(e){return!0}}),r}return cb(t,fp),Ab(t)}(),Hk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"pageRange"])}return cb(t,yp),Ab(t,[{key:YE,value:function(){for(var e=this[UE].trim().split(/\\s+/).map((function(e){return parseInt(e,10)})),t=[],r=0,A=e.length;r<A;r+=2)t.push(e.slice(r,r+2));this[UE]=t}}])}(),Yk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"pagination",["simplex","duplexShortEdge","duplexLongEdge"]])}return cb(t,dp),Ab(t)}(),Pk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"]])}return cb(t,dp),Ab(t)}(),Ok=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"part",1,function(e){return!1}])}return cb(t,pp),Ab(t)}(),Kk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"pcl",!0])).name=e.name||"",r.batchOutput=null,r.fontInfo=null,r.jog=null,r.mediumInfo=null,r.outputBin=null,r.pageOffset=null,r.staple=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),Tk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"pdf",!0])).name=e.name||"",r.adobeExtensionLevel=null,r.batchOutput=null,r.compression=null,r.creator=null,r.encryption=null,r.fontInfo=null,r.interactive=null,r.linearized=null,r.openAction=null,r.pdfa=null,r.producer=null,r.renderPolicy=null,r.scriptModel=null,r.silentPrint=null,r.submitFormat=null,r.tagged=null,r.version=null,r.viewerPreferences=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),qk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"pdfa",!0])).amd=null,r.conformance=null,r.includeXDPContent=null,r.part=null,r}return cb(t,fp),Ab(t)}(),jk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"permissions",!0])).accessibleContent=null,r.change=null,r.contentCopy=null,r.documentAssembly=null,r.formFieldFilling=null,r.modifyAnnots=null,r.plaintextMetadata=null,r.print=null,r.printHighQuality=null,r}return cb(t,fp),Ab(t)}(),Wk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"pickTrayByPDFSize"])}return cb(t,vp),Ab(t)}(),Zk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"picture"])}return cb(t,yp),Ab(t)}(),_k=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"plaintextMetadata"])}return cb(t,vp),Ab(t)}(),Xk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"]])}return cb(t,dp),Ab(t)}(),Vk=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"present",!0])).behaviorOverride=null,r.cache=null,r.common=null,r.copies=null,r.destination=null,r.incrementalMerge=null,r.layout=null,r.output=null,r.overprint=null,r.pagination=null,r.paginationOverride=null,r.script=null,r.validate=null,r.xdp=null,r.driver=new Cp,r.labelPrinter=new Cp,r.pcl=new Cp,r.pdf=new Cp,r.ps=new Cp,r.submitUrl=new Cp,r.webClient=new Cp,r.zpl=new Cp,r}return cb(t,fp),Ab(t)}(),zk=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"print"])}return cb(t,vp),Ab(t)}(),$k=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"printHighQuality"])}return cb(t,vp),Ab(t)}(),eD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"printScaling",["appdefault","noScaling"]])}return cb(t,dp),Ab(t)}(),tD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"printerName"])}return cb(t,yp),Ab(t)}(),rD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"producer"])}return cb(t,yp),Ab(t)}(),AD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"ps",!0])).name=e.name||"",r.batchOutput=null,r.fontInfo=null,r.jog=null,r.mediumInfo=null,r.outputBin=null,r.staple=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),nD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"range"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s*,\\s*/,2).map((function(e){return e.split("-").map((function(e){return parseInt(e.trim(),10)}))})).filter((function(e){return e.every((function(e){return!isNaN(e)}))})).map((function(e){return 1===e.length&&e.push(e[0]),e}))}}])}(),iD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"record"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim();var e=parseInt(this[UE],10);!isNaN(e)&&e>=0&&(this[UE]=e)}}])}(),aD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"relevant"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s+/)}}])}(),oD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"rename"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim(),(this[UE].toLowerCase().startsWith("xml")||new RegExp("[\\\\p{L}_][\\\\p{L}\\\\d._\\\\p{M}-]*","u").test(this[UE]))&&q("XFA - Rename: invalid XFA name")}}])}(),sD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"renderPolicy",["server","client"]])}return cb(t,dp),Ab(t)}(),cD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"runScripts",["both","client","none","server"]])}return cb(t,dp),Ab(t)}(),gD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"script",!0])).currentPage=null,r.exclude=null,r.runScripts=null,r}return cb(t,fp),Ab(t)}(),uD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"scriptModel",["XFA","none"]])}return cb(t,dp),Ab(t)}(),lD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"severity",["ignore","error","information","trace","warning"]])}return cb(t,dp),Ab(t)}(),hD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"silentPrint",!0])).addSilentPrint=null,r.printerName=null,r}return cb(t,fp),Ab(t)}(),ID=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"staple"])).mode=$d(e.mode,["usePrinterSetting","on","off"]),r}return cb(t,fp),Ab(t)}(),fD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"startNode"])}return cb(t,yp),Ab(t)}(),CD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"startPage",0,function(e){return!0}])}return cb(t,pp),Ab(t)}(),BD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"submitFormat",["html","delegate","fdf","xml","pdf"]])}return cb(t,dp),Ab(t)}(),QD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"submitUrl"])}return cb(t,yp),Ab(t)}(),ED=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"subsetBelow",100,function(e){return e>=0&&e<=100}])}return cb(t,pp),Ab(t)}(),dD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"suppressBanner"])}return cb(t,vp),Ab(t)}(),yD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"tagged"])}return cb(t,vp),Ab(t)}(),pD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"template",!0])).base=null,r.relevant=null,r.startPage=null,r.uri=null,r.xsl=null,r}return cb(t,fp),Ab(t)}(),vD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"threshold",["trace","error","information","warning"]])}return cb(t,dp),Ab(t)}(),mD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"to",["null","memory","stderr","stdout","system","uri"]])}return cb(t,dp),Ab(t)}(),wD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"templateCache"])).maxEntries=Xd({data:e.maxEntries,defaultValue:5,validate:function(e){return e>=0}}),r}return cb(t,fp),Ab(t)}(),bD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"trace",!0])).area=new Cp,r}return cb(t,fp),Ab(t)}(),kD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"transform",!0])).groupParent=null,r.ifEmpty=null,r.nameAttr=null,r.picture=null,r.presence=null,r.rename=null,r.whitespace=null,r}return cb(t,fp),Ab(t)}(),DD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"]])}return cb(t,dp),Ab(t)}(),SD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"uri"])}return cb(t,yp),Ab(t)}(),FD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"validate",["preSubmit","prePrint","preExecute","preSave"]])}return cb(t,dp),Ab(t)}(),xD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"validateApprovalSignatures"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){this[UE]=this[UE].trim().split(/\\s+/).filter((function(e){return["docReady","postSign"].includes(e)}))}}])}(),RD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"]])}return cb(t,dp),Ab(t)}(),GD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"version",["1.7","1.6","1.5","1.4","1.3","1.2"]])}return cb(t,dp),Ab(t)}(),ND=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"VersionControl"])).outputBelow=$d(e.outputBelow,["warn","error","update"]),r.sourceAbove=$d(e.sourceAbove,["warn","error"]),r.sourceBelow=$d(e.sourceBelow,["update","maintain"]),r}return cb(t,fp),Ab(t)}(),LD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"viewerPreferences",!0])).ADBE_JSConsole=null,r.ADBE_JSDebugger=null,r.addViewerPreferences=null,r.duplexOption=null,r.enforce=null,r.numberOfCopies=null,r.pageRange=null,r.pickTrayByPDFSize=null,r.printScaling=null,r}return cb(t,fp),Ab(t)}(),UD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"webClient",!0])).name=e.name?e.name.trim():"",r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),MD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"whitespace",["preserve","ltrim","normalize","rtrim","trim"]])}return cb(t,dp),Ab(t)}(),JD=function(e){function t(e){return ib(this,t),ab(this,t,[ub,"window"])}return cb(t,Ep),Ab(t,[{key:YE,value:function(){var e=this[UE].trim().split(/\\s*,\\s*/,2).map((function(e){return parseInt(e,10)}));e.some((function(e){return isNaN(e)}))?this[UE]=[0,0]:(1===e.length&&e.push(e[0]),this[UE]=e)}}])}(),HD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"xdc",!0])).uri=new Cp,r.xsl=new Cp,r}return cb(t,fp),Ab(t)}(),YD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"xdp",!0])).packets=null,r}return cb(t,fp),Ab(t)}(),PD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"xsl",!0])).debug=null,r.uri=null,r}return cb(t,fp),Ab(t)}(),OD=function(e){function t(e){var r;return ib(this,t),(r=ab(this,t,[ub,"zpl",!0])).name=e.name?e.name.trim():"",r.batchOutput=null,r.flipLabel=null,r.fontInfo=null,r.xdc=null,r}return cb(t,fp),Ab(t)}(),KD=function(){function e(){ib(this,e)}return Ab(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"acrobat",value:function(e){return new lb(e)}},{key:"acrobat7",value:function(e){return new hb(e)}},{key:"ADBE_JSConsole",value:function(e){return new Ib(e)}},{key:"ADBE_JSDebugger",value:function(e){return new fb(e)}},{key:"addSilentPrint",value:function(e){return new Cb(e)}},{key:"addViewerPreferences",value:function(e){return new Bb(e)}},{key:"adjustData",value:function(e){return new Qb(e)}},{key:"adobeExtensionLevel",value:function(e){return new Eb(e)}},{key:"agent",value:function(e){return new db(e)}},{key:"alwaysEmbed",value:function(e){return new yb(e)}},{key:"amd",value:function(e){return new pb(e)}},{key:"area",value:function(e){return new vb(e)}},{key:"attributes",value:function(e){return new mb(e)}},{key:"autoSave",value:function(e){return new wb(e)}},{key:"base",value:function(e){return new bb(e)}},{key:"batchOutput",value:function(e){return new kb(e)}},{key:"behaviorOverride",value:function(e){return new Db(e)}},{key:"cache",value:function(e){return new Sb(e)}},{key:"change",value:function(e){return new Fb(e)}},{key:"common",value:function(e){return new xb(e)}},{key:"compress",value:function(e){return new Rb(e)}},{key:"compressLogicalStructure",value:function(e){return new Gb(e)}},{key:"compressObjectStream",value:function(e){return new Nb(e)}},{key:"compression",value:function(e){return new Lb(e)}},{key:"config",value:function(e){return new Ub(e)}},{key:"conformance",value:function(e){return new Mb(e)}},{key:"contentCopy",value:function(e){return new Jb(e)}},{key:"copies",value:function(e){return new Hb(e)}},{key:"creator",value:function(e){return new Yb(e)}},{key:"currentPage",value:function(e){return new Pb(e)}},{key:"data",value:function(e){return new Ob(e)}},{key:"debug",value:function(e){return new Kb(e)}},{key:"defaultTypeface",value:function(e){return new Tb(e)}},{key:"destination",value:function(e){return new qb(e)}},{key:"documentAssembly",value:function(e){return new jb(e)}},{key:"driver",value:function(e){return new Wb(e)}},{key:"duplexOption",value:function(e){return new Zb(e)}},{key:"dynamicRender",value:function(e){return new _b(e)}},{key:"embed",value:function(e){return new Xb(e)}},{key:"encrypt",value:function(e){return new Vb(e)}},{key:"encryption",value:function(e){return new zb(e)}},{key:"encryptionLevel",value:function(e){return new $b(e)}},{key:"enforce",value:function(e){return new ek(e)}},{key:"equate",value:function(e){return new tk(e)}},{key:"equateRange",value:function(e){return new rk(e)}},{key:"exclude",value:function(e){return new Ak(e)}},{key:"excludeNS",value:function(e){return new nk(e)}},{key:"flipLabel",value:function(e){return new ik(e)}},{key:"fontInfo",value:function(e){return new ak(e)}},{key:"formFieldFilling",value:function(e){return new ok(e)}},{key:"groupParent",value:function(e){return new sk(e)}},{key:"ifEmpty",value:function(e){return new ck(e)}},{key:"includeXDPContent",value:function(e){return new gk(e)}},{key:"incrementalLoad",value:function(e){return new uk(e)}},{key:"incrementalMerge",value:function(e){return new lk(e)}},{key:"interactive",value:function(e){return new hk(e)}},{key:"jog",value:function(e){return new Ik(e)}},{key:"labelPrinter",value:function(e){return new fk(e)}},{key:"layout",value:function(e){return new Ck(e)}},{key:"level",value:function(e){return new Bk(e)}},{key:"linearized",value:function(e){return new Qk(e)}},{key:"locale",value:function(e){return new Ek(e)}},{key:"localeSet",value:function(e){return new dk(e)}},{key:"log",value:function(e){return new yk(e)}},{key:"map",value:function(e){return new pk(e)}},{key:"mediumInfo",value:function(e){return new vk(e)}},{key:"message",value:function(e){return new mk(e)}},{key:"messaging",value:function(e){return new wk(e)}},{key:"mode",value:function(e){return new bk(e)}},{key:"modifyAnnots",value:function(e){return new kk(e)}},{key:"msgId",value:function(e){return new Dk(e)}},{key:"nameAttr",value:function(e){return new Sk(e)}},{key:"neverEmbed",value:function(e){return new Fk(e)}},{key:"numberOfCopies",value:function(e){return new xk(e)}},{key:"openAction",value:function(e){return new Rk(e)}},{key:"output",value:function(e){return new Gk(e)}},{key:"outputBin",value:function(e){return new Nk(e)}},{key:"outputXSL",value:function(e){return new Lk(e)}},{key:"overprint",value:function(e){return new Uk(e)}},{key:"packets",value:function(e){return new Mk(e)}},{key:"pageOffset",value:function(e){return new Jk(e)}},{key:"pageRange",value:function(e){return new Hk(e)}},{key:"pagination",value:function(e){return new Yk(e)}},{key:"paginationOverride",value:function(e){return new Pk(e)}},{key:"part",value:function(e){return new Ok(e)}},{key:"pcl",value:function(e){return new Kk(e)}},{key:"pdf",value:function(e){return new Tk(e)}},{key:"pdfa",value:function(e){return new qk(e)}},{key:"permissions",value:function(e){return new jk(e)}},{key:"pickTrayByPDFSize",value:function(e){return new Wk(e)}},{key:"picture",value:function(e){return new Zk(e)}},{key:"plaintextMetadata",value:function(e){return new _k(e)}},{key:"presence",value:function(e){return new Xk(e)}},{key:"present",value:function(e){return new Vk(e)}},{key:"print",value:function(e){return new zk(e)}},{key:"printHighQuality",value:function(e){return new $k(e)}},{key:"printScaling",value:function(e){return new eD(e)}},{key:"printerName",value:function(e){return new tD(e)}},{key:"producer",value:function(e){return new rD(e)}},{key:"ps",value:function(e){return new AD(e)}},{key:"range",value:function(e){return new nD(e)}},{key:"record",value:function(e){return new iD(e)}},{key:"relevant",value:function(e){return new aD(e)}},{key:"rename",value:function(e){return new oD(e)}},{key:"renderPolicy",value:function(e){return new sD(e)}},{key:"runScripts",value:function(e){return new cD(e)}},{key:"script",value:function(e){return new gD(e)}},{key:"scriptModel",value:function(e){return new uD(e)}},{key:"severity",value:function(e){return new lD(e)}},{key:"silentPrint",value:function(e){return new hD(e)}},{key:"staple",value:function(e){return new ID(e)}},{key:"startNode",value:function(e){return new fD(e)}},{key:"startPage",value:function(e){return new CD(e)}},{key:"submitFormat",value:function(e){return new BD(e)}},{key:"submitUrl",value:function(e){return new QD(e)}},{key:"subsetBelow",value:function(e){return new ED(e)}},{key:"suppressBanner",value:function(e){return new dD(e)}},{key:"tagged",value:function(e){return new yD(e)}},{key:"template",value:function(e){return new pD(e)}},{key:"templateCache",value:function(e){return new wD(e)}},{key:"threshold",value:function(e){return new vD(e)}},{key:"to",value:function(e){return new mD(e)}},{key:"trace",value:function(e){return new bD(e)}},{key:"transform",value:function(e){return new kD(e)}},{key:"type",value:function(e){return new DD(e)}},{key:"uri",value:function(e){return new SD(e)}},{key:"validate",value:function(e){return new FD(e)}},{key:"validateApprovalSignatures",value:function(e){return new xD(e)}},{key:"validationMessaging",value:function(e){return new RD(e)}},{key:"version",value:function(e){return new GD(e)}},{key:"versionControl",value:function(e){return new ND(e)}},{key:"viewerPreferences",value:function(e){return new LD(e)}},{key:"webClient",value:function(e){return new UD(e)}},{key:"whitespace",value:function(e){return new MD(e)}},{key:"window",value:function(e){return new JD(e)}},{key:"xdc",value:function(e){return new HD(e)}},{key:"xdp",value:function(e){return new YD(e)}},{key:"xsl",value:function(e){return new PD(e)}},{key:"zpl",value:function(e){return new OD(e)}}])}();function TD(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,jD(A.key),A)}}function qD(e,t,r){return t&&TD(e.prototype,t),r&&TD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jD(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function WD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZD(e,t,r){return t=XD(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,_D()?Reflect.construct(t,r||[],XD(e).constructor):t.apply(e,r))}function _D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_D=function(){return!!e})()}function XD(e){return XD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XD(e)}function VD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zD(e,t)}function zD(e,t){return zD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zD(e,t)}var $D=Od.connectionSet.id,eS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"connectionSet",!0])).wsdlConnection=new Cp,r.xmlConnection=new Cp,r.xsdConnection=new Cp,r}return VD(t,fp),qD(t)}(),tS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"effectiveInputPolicy"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,fp),qD(t)}(),rS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"effectiveOutputPolicy"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,fp),qD(t)}(),AS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"operation"])).id=e.id||"",r.input=e.input||"",r.name=e.name||"",r.output=e.output||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,yp),qD(t)}(),nS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"rootElement"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,yp),qD(t)}(),iS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"soapAction"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,yp),qD(t)}(),aS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"soapAddress"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,yp),qD(t)}(),oS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"uri"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,yp),qD(t)}(),sS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"wsdlAddress"])).id=e.id||"",r.name=e.name||"",r.use=e.use||"",r.usehref=e.usehref||"",r}return VD(t,yp),qD(t)}(),cS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"wsdlConnection",!0])).dataDescription=e.dataDescription||"",r.name=e.name||"",r.effectiveInputPolicy=null,r.effectiveOutputPolicy=null,r.operation=null,r.soapAction=null,r.soapAddress=null,r.wsdlAddress=null,r}return VD(t,fp),qD(t)}(),gS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"xmlConnection",!0])).dataDescription=e.dataDescription||"",r.name=e.name||"",r.uri=null,r}return VD(t,fp),qD(t)}(),uS=function(e){function t(e){var r;return WD(this,t),(r=ZD(this,t,[$D,"xsdConnection",!0])).dataDescription=e.dataDescription||"",r.name=e.name||"",r.rootElement=null,r.uri=null,r}return VD(t,fp),qD(t)}(),lS=function(){function e(){WD(this,e)}return qD(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"connectionSet",value:function(e){return new eS(e)}},{key:"effectiveInputPolicy",value:function(e){return new tS(e)}},{key:"effectiveOutputPolicy",value:function(e){return new rS(e)}},{key:"operation",value:function(e){return new AS(e)}},{key:"rootElement",value:function(e){return new nS(e)}},{key:"soapAction",value:function(e){return new iS(e)}},{key:"soapAddress",value:function(e){return new aS(e)}},{key:"uri",value:function(e){return new oS(e)}},{key:"wsdlAddress",value:function(e){return new sS(e)}},{key:"wsdlConnection",value:function(e){return new cS(e)}},{key:"xmlConnection",value:function(e){return new gS(e)}},{key:"xsdConnection",value:function(e){return new uS(e)}}])}();function hS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IS(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,CS(A.key),A)}}function fS(e,t,r){return t&&IS(e.prototype,t),r&&IS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CS(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function BS(e,t,r){return t=ES(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,QS()?Reflect.construct(t,r||[],ES(e).constructor):t.apply(e,r))}function QS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QS=function(){return!!e})()}function ES(e){return ES=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ES(e)}function dS(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yS(e,t)}function yS(e,t){return yS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yS(e,t)}var pS=Od.datasets.id,vS=function(e){function t(e){return hS(this,t),BS(this,t,[pS,"data",e])}return dS(t,Qp),fS(t,[{key:ld,value:function(){return!0}}])}(),mS=function(e){function t(e){var r;return hS(this,t),(r=BS(this,t,[pS,"datasets",!0])).data=null,r.Signature=null,r}return dS(t,fp),fS(t,[{key:yd,value:function(e){var t=e[Ed];("data"===t&&e[Qd]===pS||"Signature"===t&&e[Qd]===Od.signature.id)&&(this[t]=e),this[SE](e)}}])}(),wS=function(){function e(){hS(this,e)}return fS(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"datasets",value:function(e){return new mS(e)}},{key:"data",value:function(e){return new vS(e)}}])}();function bS(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,DS(A.key),A)}}function kS(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DS(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function SS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FS(e,t,r){return t=RS(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,xS()?Reflect.construct(t,r||[],RS(e).constructor):t.apply(e,r))}function xS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xS=function(){return!!e})()}function RS(e){return RS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RS(e)}function GS(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NS(e,t)}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NS(e,t)}var LS=Od.localeSet.id,US=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"calendarSymbols",!0])).name="gregorian",r.dayNames=new Cp(2),r.eraNames=null,r.meridiemNames=null,r.monthNames=new Cp(2),r}return GS(t,fp),kS(t)}(),MS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"currencySymbol"])).name=$d(e.name,["symbol","isoname","decimal"]),r}return GS(t,yp),kS(t)}(),JS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"currencySymbols",!0])).currencySymbol=new Cp(3),r}return GS(t,fp),kS(t)}(),HS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"datePattern"])).name=$d(e.name,["full","long","med","short"]),r}return GS(t,yp),kS(t)}(),YS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"datePatterns",!0])).datePattern=new Cp(4),r}return GS(t,fp),kS(t)}(),PS=function(e){function t(e){return SS(this,t),FS(this,t,[LS,"dateTimeSymbols"])}return GS(t,Ep),kS(t)}(),OS=function(e){function t(e){return SS(this,t),FS(this,t,[LS,"day"])}return GS(t,yp),kS(t)}(),KS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"dayNames",!0])).abbr=Xd({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),r.day=new Cp(7),r}return GS(t,fp),kS(t)}(),TS=function(e){function t(e){return SS(this,t),FS(this,t,[LS,"era"])}return GS(t,yp),kS(t)}(),qS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"eraNames",!0])).era=new Cp(2),r}return GS(t,fp),kS(t)}(),jS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"locale",!0])).desc=e.desc||"",r.name="isoname",r.calendarSymbols=null,r.currencySymbols=null,r.datePatterns=null,r.dateTimeSymbols=null,r.numberPatterns=null,r.numberSymbols=null,r.timePatterns=null,r.typeFaces=null,r}return GS(t,fp),kS(t)}(),WS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"localeSet",!0])).locale=new Cp,r}return GS(t,fp),kS(t)}(),ZS=function(e){function t(e){return SS(this,t),FS(this,t,[LS,"meridiem"])}return GS(t,yp),kS(t)}(),_S=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"meridiemNames",!0])).meridiem=new Cp(2),r}return GS(t,fp),kS(t)}(),XS=function(e){function t(e){return SS(this,t),FS(this,t,[LS,"month"])}return GS(t,yp),kS(t)}(),VS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"monthNames",!0])).abbr=Xd({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),r.month=new Cp(12),r}return GS(t,fp),kS(t)}(),zS=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"numberPattern"])).name=$d(e.name,["full","long","med","short"]),r}return GS(t,yp),kS(t)}(),$S=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"numberPatterns",!0])).numberPattern=new Cp(4),r}return GS(t,fp),kS(t)}(),eF=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"numberSymbol"])).name=$d(e.name,["decimal","grouping","percent","minus","zero"]),r}return GS(t,yp),kS(t)}(),tF=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"numberSymbols",!0])).numberSymbol=new Cp(5),r}return GS(t,fp),kS(t)}(),rF=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"timePattern"])).name=$d(e.name,["full","long","med","short"]),r}return GS(t,yp),kS(t)}(),AF=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"timePatterns",!0])).timePattern=new Cp(4),r}return GS(t,fp),kS(t)}(),nF=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"typeFace",!0])).name=""|e.name,r}return GS(t,fp),kS(t)}(),iF=function(e){function t(e){var r;return SS(this,t),(r=FS(this,t,[LS,"typeFaces",!0])).typeFace=new Cp,r}return GS(t,fp),kS(t)}(),aF=function(){function e(){SS(this,e)}return kS(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"calendarSymbols",value:function(e){return new US(e)}},{key:"currencySymbol",value:function(e){return new MS(e)}},{key:"currencySymbols",value:function(e){return new JS(e)}},{key:"datePattern",value:function(e){return new HS(e)}},{key:"datePatterns",value:function(e){return new YS(e)}},{key:"dateTimeSymbols",value:function(e){return new PS(e)}},{key:"day",value:function(e){return new OS(e)}},{key:"dayNames",value:function(e){return new KS(e)}},{key:"era",value:function(e){return new TS(e)}},{key:"eraNames",value:function(e){return new qS(e)}},{key:"locale",value:function(e){return new jS(e)}},{key:"localeSet",value:function(e){return new WS(e)}},{key:"meridiem",value:function(e){return new ZS(e)}},{key:"meridiemNames",value:function(e){return new _S(e)}},{key:"month",value:function(e){return new XS(e)}},{key:"monthNames",value:function(e){return new VS(e)}},{key:"numberPattern",value:function(e){return new zS(e)}},{key:"numberPatterns",value:function(e){return new $S(e)}},{key:"numberSymbol",value:function(e){return new eF(e)}},{key:"numberSymbols",value:function(e){return new tF(e)}},{key:"timePattern",value:function(e){return new rF(e)}},{key:"timePatterns",value:function(e){return new AF(e)}},{key:"typeFace",value:function(e){return new nF(e)}},{key:"typeFaces",value:function(e){return new iF(e)}}])}();function oF(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,cF(A.key),A)}}function sF(e,t,r){return t&&oF(e.prototype,t),r&&oF(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cF(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function gF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uF(e,t,r){return t=hF(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,lF()?Reflect.construct(t,r||[],hF(e).constructor):t.apply(e,r))}function lF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lF=function(){return!!e})()}function hF(e){return hF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hF(e)}function IF(e,t){return IF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IF(e,t)}var fF=Od.signature.id,CF=function(e){function t(e){return gF(this,t),uF(this,t,[fF,"signature",!0])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IF(e,t)}(t,fp),sF(t)}(),BF=function(){function e(){gF(this,e)}return sF(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"signature",value:function(e){return new CF(e)}}])}();function QF(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,dF(A.key),A)}}function EF(e,t,r){return t&&QF(e.prototype,t),r&&QF(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dF(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function yF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pF(e,t,r){return t=mF(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,vF()?Reflect.construct(t,r||[],mF(e).constructor):t.apply(e,r))}function vF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vF=function(){return!!e})()}function mF(e){return mF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mF(e)}function wF(e,t){return wF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wF(e,t)}var bF=Od.stylesheet.id,kF=function(e){function t(e){return yF(this,t),pF(this,t,[bF,"stylesheet",!0])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wF(e,t)}(t,fp),EF(t)}(),DF=function(){function e(){yF(this,e)}return EF(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"stylesheet",value:function(e){return new kF(e)}}])}();function SF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FF(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,RF(A.key),A)}}function xF(e,t,r){return t&&FF(e.prototype,t),r&&FF(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RF(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function GF(e,t,r){return t=LF(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,NF()?Reflect.construct(t,r||[],LF(e).constructor):t.apply(e,r))}function NF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NF=function(){return!!e})()}function LF(e){return LF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LF(e)}function UF(e,t){return UF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UF(e,t)}var MF=Od.xdp.id,JF=function(e){function t(e){var r;return SF(this,t),(r=GF(this,t,[MF,"xdp",!0])).uuid=e.uuid||"",r.timeStamp=e.timeStamp||"",r.config=null,r.connectionSet=null,r.datasets=null,r.localeSet=null,r.stylesheet=new Cp,r.template=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UF(e,t)}(t,fp),xF(t,[{key:pd,value:function(e){var t=Od[e[Ed]];return t&&e[Qd]===t.id}}])}(),HF=function(){function e(){SF(this,e)}return xF(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"xdp",value:function(e){return new JF(e)}}])}();function YF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PF(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,KF(A.key),A)}}function OF(e,t,r){return t&&PF(e.prototype,t),r&&PF(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KF(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function TF(e,t,r){return t=ZF(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,qF()?Reflect.construct(t,r||[],ZF(e).constructor):t.apply(e,r))}function qF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qF=function(){return!!e})()}function jF(e,t,r,A){var n=WF(ZF(1&A?e.prototype:e),t,r);return 2&A&&"function"==typeof n?function(e){return n.apply(r,e)}:n}function WF(){return WF="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ZF(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},WF.apply(null,arguments)}function ZF(e){return ZF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZF(e)}function _F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XF(e,t)}function XF(e,t){return XF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XF(e,t)}function VF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||$F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zF(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=$F(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function $F(e,t){if(e){if("string"==typeof e)return ex(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ex(e,t):void 0}}function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}var tx=Od.xhtml.id,rx=Symbol(),Ax=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),nx=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(e){return"none"===e?"none":"normal"}],["xfa-font-horizontal-scale",function(e){return"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(e){return"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(e,t){return kp(.99*(e=t.fontSize=ey(e)))}],["letter-spacing",function(e){return kp(ey(e))}],["line-height",function(e){return kp(ey(e))}],["margin",function(e){return kp(ey(e))}],["margin-bottom",function(e){return kp(ey(e))}],["margin-left",function(e){return kp(ey(e))}],["margin-right",function(e){return kp(ey(e))}],["margin-top",function(e){return kp(ey(e))}],["text-indent",function(e){return kp(ey(e))}],["font-family",function(e){return e}],["vertical-align",function(e){return kp(ey(e))}]]),ix=/\\s+/g,ax=/[\\r\\n]+/g,ox=/\\r\\n?/g;function sx(e,t,r){var A=Object.create(null);if(!e)return A;var n,i=Object.create(null),a=zF(e.split(";").map((function(e){return e.split(":",2)})));try{for(a.s();!(n=a.n()).done;){var o=VF(n.value,2),s=o[0],c=o[1],g=nx.get(s);if(""!==g){var u=c;g&&(u="string"==typeof g?g:g(c,i)),s.endsWith("scale")?A.transform=A.transform?"".concat(A[s]," ").concat(u):u:A[s.replaceAll(/-([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))]=u}}}catch(e){a.e(e)}finally{a.f()}if(A.fontFamily&&Op({typeface:A.fontFamily,weight:A.fontWeight||"normal",posture:A.fontStyle||"normal",size:i.fontSize||0},t,t[Ad].fontFinder,A),r&&A.verticalAlign&&"0px"!==A.verticalAlign&&A.fontSize){var l=ey(A.fontSize);A.fontSize=kp(.583*l),A.verticalAlign=kp(Math.sign(ey(A.verticalAlign))*l*.333)}return r&&A.fontSize&&(A.fontSize="calc(".concat(A.fontSize," * var(--scale-factor))")),Mp(A),A}var cx=new Set(["body","html"]),gx=function(e){function t(e,r){var A;return YF(this,t),(A=TF(this,t,[tx,r]))[rx]=!1,A.style=e.style||"",A}return _F(t,Qp),OF(t,[{key:xE,value:function(e){var r;jF(t,xE,this,3)([e]),this.style=(r=this).style?r.style.trim().split(/\\s*;\\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\\s*:\\s*/,2)})).filter((function(e){var t=VF(e,2),A=t[0],n=t[1];return"font-family"===A&&r[Ad].usedTypefaces.add(n),Ax.has(A)})).map((function(e){return e.join(":")})).join(";"):""}},{key:kE,value:function(){return!cx.has(this[Ed])}},{key:vd,value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this[rx]=!0:(e=e.replaceAll(ax,""),this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(ix," "))),e&&(this[UE]+=e)}},{key:md,value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],A=Object.create(null),n={top:NaN,bottom:NaN,left:NaN,right:NaN},i=null,a=zF(this.style.split(";").map((function(e){return e.split(":",2)})));try{for(a.s();!(t=a.n()).done;){var o=VF(t.value,2),s=o[0],c=o[1];switch(s){case"font-family":A.typeface=_d(c);break;case"font-size":A.size=ey(c);break;case"font-weight":A.weight=c;break;case"font-style":A.posture=c;break;case"letter-spacing":A.letterSpacing=ey(c);break;case"margin":var g=c.split(/ \\t/).map((function(e){return ey(e)}));switch(g.length){case 1:n.top=n.bottom=n.left=n.right=g[0];break;case 2:n.top=n.bottom=g[0],n.left=n.right=g[1];break;case 3:n.top=g[0],n.bottom=g[2],n.left=n.right=g[1];break;case 4:n.top=g[0],n.left=g[1],n.bottom=g[2],n.right=g[3]}break;case"margin-top":n.top=ey(c);break;case"margin-bottom":n.bottom=ey(c);break;case"margin-left":n.left=ey(c);break;case"margin-right":n.right=ey(c);break;case"line-height":i=ey(c)}}}catch(e){a.e(e)}finally{a.f()}if(e.pushData(A,n,i),this[UE])e.addString(this[UE]);else{var u,l=zF(this[VE]());try{for(l.s();!(u=l.n()).done;){var h=u.value;"#text"!==h[Ed]?h[md](e):e.addString(h[UE])}}catch(e){l.e(e)}finally{l.f()}}r&&e.popFont()}},{key:Md,value:function(e){var t,r=[];return this[HE]={children:r},this[FE]({}),0!==r.length||this[UE]?(t=this[rx]?this[UE]?this[UE].replaceAll(ox,"\\n"):void 0:this[UE]||void 0,Ay.success({name:this[Ed],attributes:{href:this.href,style:sx(this.style,this,this[rx])},children:r,value:t})):Ay.EMPTY}}])}(),ux=function(e){function t(e){var r;return YF(this,t),(r=TF(this,t,[e,"a"])).href=Kp(e.href)||"",r}return _F(t,gx),OF(t)}(),lx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"b"])}return _F(t,gx),OF(t,[{key:md,value:function(e){e.pushFont({weight:"bold"}),jF(t,md,this,3)([e]),e.popFont()}}])}(),hx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"body"])}return _F(t,gx),OF(t,[{key:Md,value:function(e){var r=jF(t,Md,this,3)([e]),A=r.html;return A?(A.name="div",A.attributes.class=["xfaRich"],r):Ay.EMPTY}}])}(),Ix=function(e){function t(e){return YF(this,t),TF(this,t,[e,"br"])}return _F(t,gx),OF(t,[{key:Ld,value:function(){return"\\n"}},{key:md,value:function(e){e.addString("\\n")}},{key:Md,value:function(e){return Ay.success({name:"br"})}}])}(),fx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"html"])}return _F(t,gx),OF(t,[{key:Md,value:function(e){var t=[];if(this[HE]={children:t},this[FE]({}),0===t.length)return Ay.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[UE]||""});if(1===t.length){var r,A=t[0];if(null!==(r=A.attributes)&&void 0!==r&&r.class.includes("xfaRich"))return Ay.success(A)}return Ay.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}])}(),Cx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"i"])}return _F(t,gx),OF(t,[{key:md,value:function(e){e.pushFont({posture:"italic"}),jF(t,md,this,3)([e]),e.popFont()}}])}(),Bx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"li"])}return _F(t,gx),OF(t)}(),Qx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"ol"])}return _F(t,gx),OF(t)}(),Ex=function(e){function t(e){return YF(this,t),TF(this,t,[e,"p"])}return _F(t,gx),OF(t,[{key:md,value:function(e){jF(t,md,this,3)([e,!1]),e.addString("\\n"),e.addPara(),e.popFont()}},{key:Ld,value:function(){return this[td]()[VE]().at(-1)===this?jF(t,Ld,this,3)([]):jF(t,Ld,this,3)([])+"\\n"}}])}(),dx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"span"])}return _F(t,gx),OF(t)}(),yx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"sub"])}return _F(t,gx),OF(t)}(),px=function(e){function t(e){return YF(this,t),TF(this,t,[e,"sup"])}return _F(t,gx),OF(t)}(),vx=function(e){function t(e){return YF(this,t),TF(this,t,[e,"ul"])}return _F(t,gx),OF(t)}(),mx=function(){function e(){YF(this,e)}return OF(e,null,[{key:Pd,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"a",value:function(e){return new ux(e)}},{key:"b",value:function(e){return new lx(e)}},{key:"body",value:function(e){return new hx(e)}},{key:"br",value:function(e){return new Ix(e)}},{key:"html",value:function(e){return new fx(e)}},{key:"i",value:function(e){return new Cx(e)}},{key:"li",value:function(e){return new Bx(e)}},{key:"ol",value:function(e){return new Qx(e)}},{key:"p",value:function(e){return new Ex(e)}},{key:"span",value:function(e){return new dx(e)}},{key:"sub",value:function(e){return new yx(e)}},{key:"sup",value:function(e){return new px(e)}},{key:"ul",value:function(e){return new vx(e)}}])}(),wx={config:KD,connection:lS,datasets:wS,localeSet:aF,signature:BF,stylesheet:DF,template:Jw,xdp:HF,xhtml:mx};function bx(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,kx(A.key),A)}}function kx(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Dx=function(){return function(e,t,r){return t&&bx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.namespaceId=t}),[{key:Pd,value:function(e,t){return new Qp(this.namespaceId,e,t)}}])}();function Sx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||Fx(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fx(e,t){if(e){if("string"==typeof e)return xx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xx(e,t):void 0}}function xx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Rx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gx(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,Lx(A.key),A)}}function Nx(e,t,r){return t&&Gx(e.prototype,t),r&&Gx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lx(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Ux(e,t,r){return t=Hx(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Mx()?Reflect.construct(t,r||[],Hx(e).constructor):t.apply(e,r))}function Mx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mx=function(){return!!e})()}function Jx(){return Jx="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Hx(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},Jx.apply(null,arguments)}function Hx(e){return Hx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hx(e)}function Yx(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Px(e,t)}function Px(e,t){return Px=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Px(e,t)}var Ox=function(e){function t(e){var r;return Rx(this,t),(r=Ux(this,t,[-1,"root",Object.create(null)])).element=null,r[id]=e,r}return Yx(t,fp),Nx(t,[{key:yd,value:function(e){return this.element=e,!0}},{key:YE,value:function(){!function(e,t,r,A){var n=Jx(Hx(e.prototype),t,r);return"function"==typeof n?function(e){return n.apply(r,e)}:n}(t,YE,this)([]),this.element.template instanceof bw&&(this[id].set(Dd,this.element),this.element.template[Sd](this[id]),this.element.template[id]=this[id])}}])}(),Kx=function(e){function t(){return Rx(this,t),Ux(this,t,[-1,"",Object.create(null)])}return Yx(t,fp),Nx(t,[{key:yd,value:function(e){return!1}}])}(),Tx=function(){return Nx((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Rx(this,e),this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return xx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fx(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.values(Od).map((function(e){return e.id})))),this._currentNamespace=t||new Dx(++this._nextNsId)}),[{key:"buildRoot",value:function(e){return new Ox(e)}},{key:"build",value:function(e){var t=e.nsPrefix,r=e.name,A=e.attributes,n=e.namespace,i=e.prefixes,a=null!==n;if(a&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(n)),i&&this._addNamespacePrefix(i),A.hasOwnProperty(dd)){for(var o=wx.datasets,s=A[dd],c=null,g=0,u=Object.entries(s);g<u.length;g++){var l=Sx(u[g],2),h=l[0],I=l[1];if(this._getNamespaceToUse(h)===o){c={xfa:I};break}}c?A[dd]=c:delete A[dd]}var f=this._getNamespaceToUse(t),C=(null==f?void 0:f[Pd](r,A))||new Kx;return C[ld]()&&this._nsAgnosticLevel++,(a||i||C[ld]())&&(C[GE]={hasNamespace:a,prefixes:i,nsAgnostic:C[ld]()}),C}},{key:"isNsAgnostic",value:function(){return this._nsAgnosticLevel>0}},{key:"_searchNamespace",value:function(e){var t=this._namespaces.get(e);if(t)return t;for(var r=0,A=Object.entries(Od);r<A.length;r++){var n=Sx(A[r],2),i=n[0];if((0,n[1].check)(e)){if(t=wx[i])return this._namespaces.set(e,t),t;break}}return t=new Dx(++this._nextNsId),this._namespaces.set(e,t),t}},{key:"_addNamespacePrefix",value:function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fx(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var A=t.value,n=A.prefix,i=A.value,a=this._searchNamespace(i),o=this._namespacePrefixes.get(n);o||(o=[],this._namespacePrefixes.set(n,o)),o.push(a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"_getNamespaceToUse",value:function(e){if(!e)return this._currentNamespace;var t=this._namespacePrefixes.get(e);return(null==t?void 0:t.length)>0?t.at(-1):(q("Unknown namespace prefix: ".concat(e,".")),null)}},{key:"clean",value:function(e){var t=this,r=e.hasNamespace,A=e.prefixes,n=e.nsAgnostic;r&&(this._currentNamespace=this._namespaceStack.pop()),A&&A.forEach((function(e){var r=e.prefix;t._namespacePrefixes.get(r).pop()})),n&&this._nsAgnosticLevel--}}])}();function qx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||jx(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jx(e,t){if(e){if("string"==typeof e)return Wx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wx(e,t):void 0}}function Wx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function Zx(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,_x(A.key),A)}}function _x(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function Xx(e,t,r){return t=zx(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,Vx()?Reflect.construct(t,r||[],zx(e).constructor):t.apply(e,r))}function Vx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vx=function(){return!!e})()}function zx(e){return zx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zx(e)}function $x(e,t){return $x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$x(e,t)}var eR=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,A=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Xx(this,t))._builder=new Tx(r),e._stack=[],e._globalData={usedTypefaces:new Set},e._ids=new Map,e._current=e._builder.buildRoot(e._ids),e._errorCode=0,e._whiteRegex=/^\\s+$/,e._nbsps=/\\xa0+/g,e._richText=A,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$x(e,t)}(t,nB),function(e,t,r){return t&&Zx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"parse",value:function(e){if(this.parseXml(e),0===this._errorCode)return this._current[YE](),this._current.element}},{key:"onText",value:function(e){e=e.replace(this._nbsps,(function(e){return e.slice(1)+" "})),this._richText||this._current[kE]()?this._current[vd](e,this._richText):this._whiteRegex.test(e)||this._current[vd](e.trim())}},{key:"onCdata",value:function(e){this._current[vd](e)}},{key:"_mkAttributes",value:function(e,t){var r,A=null,n=null,i=Object.create({}),a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=jx(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.name,c=o.value;if("xmlns"===s)A?q("XFA - multiple namespace definition in <".concat(t,">")):A=c;else if(s.startsWith("xmlns:")){var g=s.substring(6);n||(n=[]),n.push({prefix:g,value:c})}else{var u=s.indexOf(":");if(-1===u)i[s]=c;else{var l,h=i[dd];h||(h=i[dd]=Object.create(null));var I=[s.slice(0,u),s.slice(u+1)],f=I[0],C=I[1];((l=h)[f]||(l[f]=Object.create(null)))[C]=c}}}}catch(e){a.e(e)}finally{a.f()}return[A,n,i]}},{key:"_getNameAndPrefix",value:function(e,t){var r=e.indexOf(":");return-1===r?[e,null]:[e.substring(r+1),t?"":e.substring(0,r)]}},{key:"onBeginElement",value:function(e,t,r){var A=qx(this._mkAttributes(t,e),3),n=A[0],i=A[1],a=A[2],o=qx(this._getNameAndPrefix(e,this._builder.isNsAgnostic()),2),s=o[0],c=o[1],g=this._builder.build({nsPrefix:c,name:s,attributes:a,namespace:n,prefixes:i});if(g[Ad]=this._globalData,r)return g[YE](),this._current[yd](g)&&g[xd](this._ids),void g[xE](this._builder);this._stack.push(this._current),this._current=g}},{key:"onEndElement",value:function(e){var r=this._current;if(r[sd]()&&"string"==typeof r[UE]){var A=new t;A._globalData=this._globalData;var n=A.parse(r[UE]);r[UE]=null,r[yd](n)}r[YE](),this._current=this._stack.pop(),this._current[yd](r)&&r[xd](this._ids),r[xE](this._builder)}},{key:"onError",value:function(e){this._errorCode=e}}])}();function tR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function rR(){rR=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function AR(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function nR(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){AR(i,A,n,a,o,"next",e)}function o(e){AR(i,A,n,a,o,"throw",e)}a(void 0)}))}}function iR(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,aR(A.key),A)}}function aR(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var oR=function(){return function(e,t,r){return t&&iR(e.prototype,t),r&&iR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.root=(new eR).parse(e._createDocument(t));var r=new Ww(this.root);this.form=r.bind(),this.dataHandler=new eb(this.root,r.getData()),this.form[Ad].template=this.form}catch(e){q("XFA - an error occurred during parsing and binding: ".concat(e))}}),[{key:"isValid",value:function(){return this.root&&this.form}},{key:"_createPagesHelper",value:function(){var e=this.form[Ud]();return new Promise((function(t,r){var A=function(){try{var n=e.next();n.done?t(n.value):setTimeout(A,0)}catch(e){r(e)}};setTimeout(A,0)}))}},{key:"_createPages",value:(r=nR(rR().mark((function e(){return rR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPagesHelper();case 3:this.pages=e.sent,this.dims=this.pages.children.map((function(e){var t=e.attributes.style,r=t.width,A=t.height;return[0,0,parseInt(r),parseInt(A)]})),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),q("XFA - an error occurred during layout: ".concat(e.t0));case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return r.apply(this,arguments)})},{key:"getBoundingBox",value:function(e){return this.dims[e]}},{key:"getNumPages",value:(t=nR(rR().mark((function e(){return rR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.pages){e.next=3;break}return e.next=3,this._createPages();case 3:return e.abrupt("return",this.dims.length);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setImages",value:function(e){this.form[Ad].images=e}},{key:"setFonts",value:function(e){this.form[Ad].fontFinder=new gy(e);var t,r=[],A=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tR(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tR(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this.form[Ad].usedTypefaces);try{for(A.s();!(t=A.n()).done;){var n=t.value;n=_d(n),this.form[Ad].fontFinder.find(n)||r.push(n)}}catch(e){A.e(e)}finally{A.f()}return r.length>0?r:null}},{key:"appendFonts",value:function(e,t){this.form[Ad].fontFinder.add(e,t)}},{key:"getPages",value:(e=nR(rR().mark((function e(){var t;return rR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.pages){e.next=3;break}return e.next=3,this._createPages();case 3:return t=this.pages,this.pages=null,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"serializeData",value:function(e){return this.dataHandler.serialize(e)}}],[{key:"_createDocument",value:function(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}},{key:"getRichTextAsHtml",value:function(e){if(!e||"string"!=typeof e)return null;try{var t=new eR(mx,!0).parse(e);if(!["body","xhtml"].includes(t[Ed])){var r=mx.body({});r[SE](t),t=r}var A=t[Md]();if(!A.success)return null;var n=A.html,i=n.attributes;return i&&(i.class&&(i.class=i.class.filter((function(e){return!e.startsWith("xfa")}))),i.dir="auto"),{html:n,str:t[Ld]()}}catch(e){q("XFA - an error occurred during parsing of rich text: ".concat(e))}return null}}]);var e,t,r}();function sR(e,t,r){return e.set(cR(e,t),r),r}function cR(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function gR(e,t,r,A){var n=uR(fR(1&A?e.prototype:e),t,r);return 2&A&&"function"==typeof n?function(e){return n.apply(r,e)}:n}function uR(){return uR="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=fR(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},uR.apply(null,arguments)}function lR(e,t,r){return t=fR(t),hR(e,IR()?Reflect.construct(t,r||[],fR(e).constructor):t.apply(e,r))}function hR(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}function IR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IR=function(){return!!e})()}function fR(e){return fR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fR(e)}function CR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BR(e,t)}function BR(e,t){return BR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BR(e,t)}function QR(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=vR(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ER(){ER=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function dR(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function yR(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){dR(i,A,n,a,o,"next",e)}function o(e){dR(i,A,n,a,o,"throw",e)}a(void 0)}))}}function pR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||vR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vR(e,t){if(e){if("string"==typeof e)return mR(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mR(e,t):void 0}}function mR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function wR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,DR(A.key),A)}}function kR(e,t,r){return t&&bR(e.prototype,t),r&&bR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DR(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var SR=function(){return kR((function e(){wR(this,e)}),null,[{key:"createGlobals",value:function(e){return Promise.all([e.ensureCatalog("acroForm"),e.ensureDoc("xfaDatasets"),e.ensureCatalog("structTreeRoot"),e.ensureCatalog("baseUrl"),e.ensureCatalog("attachments")]).then((function(t){var r=pR(t,5),A=r[0],n=r[1],i=r[2],a=r[3],o=r[4];return{pdfManager:e,acroForm:A instanceof He?A:He.empty,xfaDatasets:n,structTreeRoot:i,baseUrl:a,attachments:o}}),(function(e){return q(\'createGlobals: "\'.concat(e,\'".\')),null}))}},{key:"create",value:(A=yR(ER().mark((function e(t,r,A,n,i,a,o){var s;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=6;break}return e.next=3,this._getPageIndex(t,r,A.pdfManager);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=null;case 7:return s=e.t0,e.abrupt("return",A.pdfManager.ensure(this,"_create",[t,r,A,n,i,a,s,o]));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,i,a,o){return A.apply(this,arguments)})},{key:"_create",value:function(e,t,r,A){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,s=e.fetchIfRef(t);if(s instanceof He){var c=r.acroForm,g=r.pdfManager,u=t instanceof Ye?t.toString():"annot_".concat(A.createObjId()),l=s.get("Subtype"),h={xref:e,ref:t,dict:s,subtype:l=l instanceof Ue?l.name:null,id:u,annotationGlobals:r,collectFields:n,orphanFields:i,needAppearances:!n&&!0===c.get("NeedAppearances"),pageIndex:a,evaluatorOptions:g.evaluatorOptions,pageRef:o};switch(l){case"Link":return new KR(h);case"Text":return new OR(h);case"Widget":var I=yt({dict:s,key:"FT"});switch(I=I instanceof Ue?I.name:null){case"Tx":return new JR(h);case"Btn":return new HR(h);case"Ch":return new YR(h);case"Sig":return new PR(h)}return q(\'Unimplemented widget field type "\'.concat(I,\'", \')+"falling back to base field type."),new MR(h);case"Popup":return new TR(h);case"FreeText":return new qR(h);case"Line":return new jR(h);case"Square":return new WR(h);case"Circle":return new ZR(h);case"PolyLine":return new _R(h);case"Polygon":return new XR(h);case"Caret":return new VR(h);case"Ink":return new zR(h);case"Highlight":return new $R(h);case"Underline":return new eG(h);case"Squiggly":return new tG(h);case"StrikeOut":return new rG(h);case"Stamp":return new nG(h);case"FileAttachment":return new iG(h);default:return n||q(l?\'Unimplemented annotation type "\'.concat(l,\'", \')+"falling back to base annotation.":"Annotation is missing the required /Subtype."),new NR(h)}}}},{key:"_getPageIndex",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.fetchIfRefAsync(r);case 3:if((n=e.sent)instanceof He){e.next=6;break}return e.abrupt("return",-1);case 6:if(!((i=n.getRaw("P"))instanceof Ye)){e.next=18;break}return e.prev=8,e.next=11,A.ensureCatalog("getPageIndex",[i]);case 11:return a=e.sent,e.abrupt("return",a);case 15:e.prev=15,e.t0=e.catch(8),T(\'_getPageIndex -- not a valid page reference: "\'.concat(e.t0,\'".\'));case 18:if(!n.has("Kids")){e.next=20;break}return e.abrupt("return",-1);case 20:return e.next=22,A.ensureDoc("numPages");case 22:o=e.sent,s=0;case 24:if(!(s<o)){e.next=51;break}return e.next=27,A.getPage(s);case 27:return c=e.sent,e.next=30,A.ensure(c,"annotations");case 30:g=e.sent,u=QR(g),e.prev=32,u.s();case 34:if((l=u.n()).done){e.next=40;break}if(!((h=l.value)instanceof Ye&&je(h,r))){e.next=38;break}return e.abrupt("return",s);case 38:e.next=34;break;case 40:e.next=45;break;case 42:e.prev=42,e.t1=e.catch(32),u.e(e.t1);case 45:return e.prev=45,u.f(),e.finish(45);case 48:s++,e.next=24;break;case 51:e.next=56;break;case 53:e.prev=53,e.t2=e.catch(0),q(\'_getPageIndex: "\'.concat(e.t2,\'".\'));case 56:return e.abrupt("return",-1);case 57:case"end":return e.stop()}}),e,null,[[0,53],[8,15],[32,42,45,48]])}))),function(e,t,A){return r.apply(this,arguments)})},{key:"generateImages",value:function(e,t,r){if(!r)return q("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;var A,n,i=QR(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.bitmapId,s=a.bitmap;s&&(A||(A=new Map),A.set(o,nG.createImage(s,t)))}}catch(e){i.e(e)}finally{i.f()}return A}},{key:"saveNewAnnotations",value:(t=yR(ER().mark((function e(t,r,A,n){var i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.xref,o=[],s=[],c=t.options.isOffscreenCanvasSupported,g=QR(A),e.prev=5,g.s();case 7:if((u=g.n()).done){e.next=58;break}if(!(l=u.value).deleted){e.next=11;break}return e.abrupt("continue",56);case 11:e.t0=l.annotationType,e.next=3===e.t0?14:9===e.t0?27:15===e.t0?29:13===e.t0?31:56;break;case 14:if(a){e.next=25;break}return(h=new He(i)).set("BaseFont",Ue.get("Helvetica")),h.set("Type",Ue.get("Font")),h.set("Subtype",Ue.get("Type1")),h.set("Encoding",Ue.get("WinAnsiEncoding")),I=[],a=i.getNewTemporaryRef(),e.next=24,iQ(a,h,I,i);case 24:o.push({ref:a,data:I.join("")});case 25:return s.push(qR.createNewAnnotation(i,l,o,{evaluator:t,task:r,baseFontRef:a})),e.abrupt("break",56);case 27:return l.quadPoints?s.push($R.createNewAnnotation(i,l,o)):s.push(zR.createNewAnnotation(i,l,o)),e.abrupt("break",56);case 29:return s.push(zR.createNewAnnotation(i,l,o)),e.abrupt("break",56);case 31:if(!c){e.next=37;break}return e.next=34,null==n?void 0:n.get(l.bitmapId);case 34:e.t1=e.sent,e.next=38;break;case 37:e.t1=null;case 38:if(null==(f=e.t1)||!f.imageStream){e.next=54;break}if(C=f.imageStream,B=f.smaskStream,Q=[],!B){e.next=49;break}return E=i.getNewTemporaryRef(),e.next=46,iQ(E,B,Q,i);case 46:o.push({ref:E,data:Q.join("")}),C.dict.set("SMask",E),Q.length=0;case 49:return d=f.imageRef=i.getNewTemporaryRef(),e.next=52,iQ(d,C,Q,i);case 52:o.push({ref:d,data:Q.join("")}),f.imageStream=f.smaskStream=null;case 54:return s.push(nG.createNewAnnotation(i,l,o,{image:f})),e.abrupt("break",56);case 56:e.next=7;break;case 58:e.next=63;break;case 60:e.prev=60,e.t2=e.catch(5),g.e(e.t2);case 63:return e.prev=63,g.f(),e.finish(63);case 66:return e.next=68,Promise.all(s);case 68:return e.t3=e.sent,e.t4=o,e.abrupt("return",{annotations:e.t3,dependencies:e.t4});case 71:case"end":return e.stop()}}),e,null,[[5,60,63,66]])}))),function(e,r,A,n){return t.apply(this,arguments)})},{key:"printNewAnnotations",value:(e=yR(ER().mark((function e(t,r,A,n,i){var a,o,s,c,g,u,l,h,I;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:a=r.options,o=r.xref,s=[],c=QR(n),e.prev=5,c.s();case 7:if((g=c.n()).done){e.next=33;break}if(!(u=g.value).deleted){e.next=11;break}return e.abrupt("continue",31);case 11:e.t0=u.annotationType,e.next=3===e.t0?14:9===e.t0?16:15===e.t0?18:13===e.t0?20:31;break;case 14:return s.push(qR.createNewPrintAnnotation(t,o,u,{evaluator:r,task:A,evaluatorOptions:a})),e.abrupt("break",31);case 16:return u.quadPoints?s.push($R.createNewPrintAnnotation(t,o,u,{evaluatorOptions:a})):s.push(zR.createNewPrintAnnotation(t,o,u,{evaluatorOptions:a})),e.abrupt("break",31);case 18:return s.push(zR.createNewPrintAnnotation(t,o,u,{evaluatorOptions:a})),e.abrupt("break",31);case 20:if(!a.isOffscreenCanvasSupported){e.next=26;break}return e.next=23,null==i?void 0:i.get(u.bitmapId);case 23:e.t1=e.sent,e.next=27;break;case 26:e.t1=null;case 27:return null!=(l=e.t1)&&l.imageStream&&(h=l.imageStream,(I=l.smaskStream)&&h.dict.set("SMask",I),l.imageRef=new Ja(h,h.length),l.imageStream=l.smaskStream=null),s.push(nG.createNewPrintAnnotation(t,o,u,{image:l,evaluatorOptions:a})),e.abrupt("break",31);case 31:e.next=7;break;case 33:e.next=38;break;case 35:e.prev=35,e.t2=e.catch(5),c.e(e.t2);case 38:return e.prev=38,c.f(),e.finish(38);case 41:return e.abrupt("return",Promise.all(s));case 42:case"end":return e.stop()}}),e,null,[[5,35,38,41]])}))),function(t,r,A,n,i){return e.apply(this,arguments)})}]);var e,t,r,A}();function FR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;var r=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return Ur.singletons.gray.getRgbItem(e,0,r,0),r;case 3:return Ur.singletons.rgb.getRgbItem(e,0,r,0),r;case 4:return Ur.singletons.cmyk.getRgbItem(e,0,r,0),r;default:return t}}function xR(e){return Array.from(e,(function(e){return e/255}))}function RR(e,t){var r=e.getArray("QuadPoints");if(!St(r,null)||0===r.length||r.length%8>0)return null;for(var A=new Float32Array(r.length),n=0,i=r.length;n<i;n+=8){var a=pR(r.slice(n,n+8),8),o=a[0],s=a[1],c=a[2],g=a[3],u=a[4],l=a[5],h=a[6],I=a[7],f=Math.min(o,c,u,h),C=Math.max(o,c,u,h),B=Math.min(s,g,l,I),Q=Math.max(s,g,l,I);if(null!==t&&(f<t[0]||C>t[2]||B<t[1]||Q>t[3]))return null;A.set([f,Q,C,Q,f,B,C,B],n)}return A}function GR(e,t,r){var A=pR(ge.getAxialAlignedBoundingBox(t,r),4),n=A[0],i=A[1],a=A[2],o=A[3];if(n===a||i===o)return[1,0,0,1,e[0],e[1]];var s=(e[2]-e[0])/(a-n),c=(e[3]-e[1])/(o-i);return[s,0,0,c,e[0]-n*s,e[1]-i*c]}var NR=function(){return kR((function e(t){wR(this,e);var r=t.dict,A=t.xref,n=t.annotationGlobals,i=t.ref,a=t.orphanFields,o=null==a?void 0:a.get(i);o&&r.set("Parent",o),this.setTitle(r.get("T")),this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.setOptionalContent(r);var s=r.get("MK");this.setBorderAndBackgroundColors(s),this.setRotation(s,r),this.ref=t.ref instanceof Ye?t.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance);var c=!!(128&this.flags),g=!!(512&this.flags);if(this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(16&this.flags),noHTML:c&&g,isEditable:!1,structParent:-1},n.structTreeRoot){var u=r.get("StructParent");this.data.structParent=u=Number.isInteger(u)&&u>=0?u:-1,n.structTreeRoot.addAnnotationIdToPage(t.pageRef,u)}if(t.collectFields){var l=r.get("Kids");if(Array.isArray(l)){var h,I=[],f=QR(l);try{for(f.s();!(h=f.n()).done;){var C=h.value;C instanceof Ye&&I.push(C.toString())}}catch(e){f.e(e)}finally{f.f()}0!==I.length&&(this.data.kidIds=I)}this.data.actions=Mt(A,r,b),this.data.fieldName=this._constructFieldName(r),this.data.pageIndex=t.pageIndex}var B=r.get("IT");B instanceof Ue&&(this.data.it=B.name),this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}),[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_buildFlags",value:function(e,t){var r=this.flags;if(void 0===e){if(void 0===t)return;return t?-5&r:-3&r|4}return e?(r|=4,t?-33&r|2:-3&r|v):(r&=-35,t?-5&r:4|r)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,1)&&!this._hasFlag(e,v)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,4)&&!this._hasFlag(e,2)&&!this._hasFlag(e,1)}},{key:"mustBeViewed",value:function(e,t){var r,A=null==e||null===(r=e.get(this.data.id))||void 0===r?void 0:r.noView;return void 0!==A?!A:this.viewable&&!this._hasFlag(this.flags,2)}},{key:"mustBePrinted",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.noPrint;return void 0!==r?!r:this.printable}},{key:"mustBeViewedWhenEditing",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?!this.data.isEditable:!(null!=t&&t.has(this.data.id))}},{key:"viewable",get:function(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}},{key:"_parseStringHelper",value:function(e){var t="string"==typeof e?Ie(e):"";return{str:t,dir:t&&"rtl"===UI(t).dir?"rtl":"ltr"}}},{key:"setDefaultAppearance",value:function(e){var t=e.dict,r=e.annotationGlobals,A=yt({dict:t,key:"DA"})||r.acroForm.get("DA");this._defaultAppearance="string"==typeof A?A:"",this.data.defaultAppearanceData=dC(this._defaultAppearance)}},{key:"setTitle",value:function(e){this._title=this._parseStringHelper(e)}},{key:"setContents",value:function(e){this._contents=this._parseStringHelper(e)}},{key:"setModificationDate",value:function(e){this.modificationDate="string"==typeof e?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0,1&this.flags&&"Annotation"!==this.constructor.name&&(this.flags^=1)}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){this.rectangle=Rt(e,[0,0,0,0])}},{key:"setColor",value:function(e){this.color=FR(e)}},{key:"setLineEndings",value:function(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(var t=0;t<2;t++){var r=e[t];if(r instanceof Ue)switch(r.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=r.name;continue}q("Ignoring invalid lineEnding: ".concat(r))}}},{key:"setRotation",value:function(e,t){this.rotation=0;var r=e instanceof He?e.get("R")||0:t.get("Rotate")||0;Number.isInteger(r)&&0!==r&&((r%=360)<0&&(r+=360),r%90==0&&(this.rotation=r))}},{key:"setBorderAndBackgroundColors",value:function(e){e instanceof He?(this.borderColor=FR(e.getArray("BC"),null),this.backgroundColor=FR(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new LR,e instanceof He)if(e.has("BS")){var t=e.get("BS");if(t instanceof He){var r=t.get("Type");r&&!Ke(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}}else if(e.has("Border")){var A=e.getArray("Border");Array.isArray(A)&&A.length>=3&&(this.borderStyle.setHorizontalCornerRadius(A[0]),this.borderStyle.setVerticalCornerRadius(A[1]),this.borderStyle.setWidth(A[2],this.rectangle),4===A.length&&this.borderStyle.setDashArray(A[3],!0))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if(t instanceof He){var r=t.get("N");if(r instanceof ze)this.appearance=r;else if(r instanceof He){var A=e.get("AS");if(A instanceof Ue&&r.has(A.name)){var n=r.get(A.name);n instanceof ze&&(this.appearance=n)}}}}},{key:"setOptionalContent",value:function(e){this.oc=null;var t=e.get("OC");t instanceof Ue?q("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof He&&(this.oc=t)}},{key:"loadResources",value:function(e,t){return t.dict.getAsync("Resources").then((function(t){if(t)return new bE(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:(r=yR(ER().mark((function e(t,r,A,n){var i,a,o,s,c,g,u,l,h,I,f,B,Q;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.data,a=i.hasOwnCanvas,o=i.id,s=i.rect,c=this.appearance,!(g=!!(a&&2&A))||s[0]!==s[2]&&s[1]!==s[3]){e.next=6;break}return this.data.hasOwnCanvas=!1,e.abrupt("return",{opList:new kf,separateForm:!1,separateCanvas:!1});case 6:if(c){e.next=11;break}if(g){e.next=9;break}return e.abrupt("return",{opList:new kf,separateForm:!1,separateCanvas:!1});case 9:(c=new or("")).dict=new He;case 11:return u=c.dict,e.next=14,this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c);case 14:if(l=e.sent,h=xt(u.getArray("BBox"),[0,0,1,1]),I=Ft(u.getArray("Matrix"),C),f=GR(s,h,I),B=new kf,!this.oc){e.next=23;break}return e.next=22,t.parseMarkedContentProps(this.oc,null);case 22:Q=e.sent;case 23:return void 0!==Q&&B.addOp(J,["OC",Q]),B.addOp(80,[o,s,f,I,g]),e.next=27,t.getOperatorList({stream:c,task:r,resources:l,operatorList:B,fallbackFontDict:this._fallbackFontDict});case 27:return B.addOp(81,[]),void 0!==Q&&B.addOp(H,[]),this.reset(),e.abrupt("return",{opList:B,separateForm:!1,separateCanvas:g});case 31:case"end":return e.stop()}}),e,this)}))),function(e,t,A,n){return r.apply(this,arguments)})},{key:"save",value:(t=yR(ER().mark((function e(t,r,A){return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)}))),function(e,r,A){return t.apply(this,arguments)})},{key:"hasTextContent",get:function(){return!1}},{key:"extractTextContent",value:(e=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.appearance){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);case 4:return n=e.sent,i=[],a=[],o=null,e.t0=Math.Infinity,u={desiredSize:e.t0,ready:!0,enqueue(e,t){s=QR(e.items);try{for(s.s();!(c=s.n()).done;)void 0!==(g=c.value).str&&(o||(o=g.transform.slice(-2)),a.push(g.str),g.hasEOL&&(i.push(a.join("").trimEnd()),a.length=0))}catch(e){s.e(e)}finally{s.f()}}},e.next=12,t.getTextContent({stream:this.appearance,task:r,resources:n,includeMarkedContent:!0,keepWhiteSpace:!0,sink:u,viewBox:A});case 12:this.reset(),a.length&&i.push(a.join("").trimEnd()),(i.length>1||i[0])&&(l=this.appearance.dict,h=xt(l.getArray("BBox"),null),I=Ft(l.getArray("Matrix"),null),this.data.textPosition=this._transformPoint(o,h,I),this.data.textContent=i);case 15:case"end":return e.stop()}}),e,this)}))),function(t,r,A){return e.apply(this,arguments)})},{key:"_transformPoint",value:function(e,t,r){var A=this.data.rect;t||(t=[0,0,1,1]),r||(r=[1,0,0,1,0,0]);var n=GR(A,t,r);return n[4]-=A[0],n[5]-=A[1],e=ge.applyTransform(e,n),ge.applyTransform(e,r)}},{key:"getFieldObject",value:function(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}},{key:"reset",value:function(){var e,t=QR(this._streams);try{for(t.s();!(e=t.n()).done;)e.value.reset()}catch(e){t.e(e)}finally{t.f()}}},{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return q("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return Ie(e.get("T"));var t=[];e.has("T")&&t.unshift(Ie(e.get("T")));var r=e,A=new Pe;for(e.objId&&A.put(e.objId);r.has("Parent")&&(r=r.get("Parent"))instanceof He&&(!r.objId||!A.has(r.objId));)r.objId&&A.put(r.objId),r.has("T")&&t.unshift(Ie(r.get("T")));return t.join(".")}}]);var e,t,r}(),LR=function(){return kR((function e(){wR(this,e),this.width=1,this.rawWidth=1,this.style=1,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}),[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof Ue)this.width=0;else if("number"==typeof e){if(e>0){this.rawWidth=e;var r=(t[2]-t[0])/2,A=(t[3]-t[1])/2;r>0&&A>0&&(e>r||e>A)&&(q("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if(e instanceof Ue)switch(e.name){case"S":this.style=1;break;case"D":this.style=2;break;case"B":this.style=3;break;case"I":this.style=4;break;case"U":this.style=5}}},{key:"setDashArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){var r,A=!0,n=!0,i=QR(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!(+a>=0)){A=!1;break}a>0&&(n=!1)}}catch(e){i.e(e)}finally{i.f()}0===e.length||A&&!n?(this.dashArray=e,t&&this.setStyle(Ue.get("D"))):this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}])}(),UR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict;if(A.has("IRT")){var n=A.getRaw("IRT");r.data.inReplyTo=n instanceof Ye?n.toString():null;var i=A.get("RT");r.data.replyType=i instanceof Ue?i.name:"R"}var a=null;if(r.data.replyType===p){var o=A.get("IRT");r.setTitle(o.get("T")),r.data.titleObj=r._title,r.setContents(o.get("Contents")),r.data.contentsObj=r._contents,o.has("CreationDate")?(r.setCreationDate(o.get("CreationDate")),r.data.creationDate=r.creationDate):r.data.creationDate=null,o.has("M")?(r.setModificationDate(o.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,a=o.getRaw("Popup"),o.has("C")?(r.setColor(o.getArray("C")),r.data.color=r.color):r.data.color=null}else r.data.titleObj=r._title,r.setCreationDate(A.get("CreationDate")),r.data.creationDate=r.creationDate,a=A.getRaw("Popup"),A.has("C")||(r.data.color=null);return r.data.popupRef=a instanceof Ye?a.toString():null,A.has("RC")&&(r.data.richText=oR.getRichTextAsHtml(A.get("RC"))),r}return CR(t,NR),kR(t,[{key:"setCreationDate",value:function(e){this.creationDate="string"==typeof e?e:null}},{key:"_setDefaultAppearance",value:function(e){var t=e.xref,r=e.extra,A=e.strokeColor,n=e.fillColor,i=e.blendMode,a=e.strokeAlpha,o=e.fillAlpha,s=e.pointsCallback,c=Number.MAX_VALUE,g=Number.MAX_VALUE,u=Number.MIN_VALUE,l=Number.MIN_VALUE,h=["q"];r&&h.push(r),A&&h.push("".concat(A[0]," ").concat(A[1]," ").concat(A[2]," RG")),n&&h.push("".concat(n[0]," ").concat(n[1]," ").concat(n[2]," rg"));var I=this.data.quadPoints;I||(I=Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]));for(var f=0,C=I.length;f<C;f+=8){var B=pR(s(h,I.subarray(f,f+8)),4),Q=B[0],E=B[1],d=B[2],y=B[3];c=Math.min(c,Q),u=Math.max(u,E),g=Math.min(g,d),l=Math.max(l,y)}h.push("Q");var p=new He(t),v=new He(t);v.set("Subtype",Ue.get("Form"));var m=new or(h.join(" "));m.dict=v,p.set("Fm0",m);var w=new He(t);i&&w.set("BM",Ue.get(i)),"number"==typeof a&&w.set("CA",a),"number"==typeof o&&w.set("ca",o);var b=new He(t);b.set("GS0",w);var k=new He(t);k.set("ExtGState",b),k.set("XObject",p);var D=new He(t);D.set("Resources",k);var S=this.data.rect=[c,g,u,l];D.set("BBox",S),this.appearance=new or("/GS0 gs /Fm0 Do"),this.appearance.dict=D,this._streams.push(this.appearance,m)}}],[{key:"createNewAnnotation",value:(A=yR(ER().mark((function e(t,r,A,n){var i,a,o,s,c;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.ref||(r.ref=t.getNewTemporaryRef()),i=r.ref,e.next=4,this.createNewAppearanceStream(r,t,n);case 4:if(a=e.sent,o=[],!a){e.next=14;break}return c=t.getNewTemporaryRef(),s=this.createNewDict(r,t,{apRef:c}),e.next=11,iQ(c,a,o,t);case 11:A.push({ref:c,data:o.join("")}),e.next=15;break;case 14:s=this.createNewDict(r,t,{});case 15:return Number.isInteger(r.parentTreeId)&&s.set("StructParent",r.parentTreeId),o.length=0,e.next=19,iQ(i,s,o,t);case 19:return e.abrupt("return",{ref:i,data:o.join("")});case 20:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return A.apply(this,arguments)})},{key:"createNewPrintAnnotation",value:(r=yR(ER().mark((function e(t,r,A,n){var i,a,o;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createNewAppearanceStream(A,r,n);case 2:return i=e.sent,a=this.createNewDict(A,r,i?{ap:i}:{}),o=new this.prototype.constructor({dict:a,xref:r,annotationGlobals:t,evaluatorOptions:n.evaluatorOptions}),A.ref&&(o.ref=o.refToReplace=A.ref),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,A,n){return r.apply(this,arguments)})}]);var r,A}(),MR=function(e){function t(e){var r,A;wR(this,t),A=lR(this,t,[e]);var n=e.dict,i=e.xref,a=e.annotationGlobals,o=A.data;A._needAppearances=e.needAppearances,o.annotationType=20,void 0===o.fieldName&&(o.fieldName=A._constructFieldName(n)),void 0===o.actions&&(o.actions=Mt(i,n,b));var s=yt({dict:n,key:"V",getArray:!0});o.fieldValue=A._decodeFormValue(s);var c=yt({dict:n,key:"DV",getArray:!0});if(o.defaultFieldValue=A._decodeFormValue(c),void 0===s&&a.xfaDatasets){var g=A._title.str;g&&(A._hasValueFromXFA=!0,o.fieldValue=s=a.xfaDatasets.getValue(g))}void 0===s&&null!==o.defaultFieldValue&&(o.fieldValue=o.defaultFieldValue),o.alternativeText=Ie(n.get("TU")||""),A.setDefaultAppearance(e),o.hasAppearance||(o.hasAppearance=A._needAppearances&&void 0!==o.fieldValue&&null!==o.fieldValue);var u=yt({dict:n,key:"FT"});o.fieldType=u instanceof Ue?u.name:null;var l=yt({dict:n,key:"DR"}),h=a.acroForm.get("DR"),I=null===(r=A.appearance)||void 0===r?void 0:r.dict.get("Resources");return A._fieldResources={localResources:l,acroFormResources:h,appearanceResources:I,mergedResources:He.merge({xref:i,dictArray:[l,I,h],mergeSubDicts:!0})},o.fieldFlags=yt({dict:n,key:"Ff"}),(!Number.isInteger(o.fieldFlags)||o.fieldFlags<0)&&(o.fieldFlags=0),o.readOnly=A.hasFieldFlag(1),o.required=A.hasFieldFlag(2),o.hidden=A._hasFlag(o.annotationFlags,2)||A._hasFlag(o.annotationFlags,v),A}return CR(t,NR),kR(t,[{key:"_decodeFormValue",value:function(e){return Array.isArray(e)?e.filter((function(e){return"string"==typeof e})).map((function(e){return Ie(e)})):e instanceof Ue?Ie(e.name):"string"==typeof e?Ie(e):null}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"_isViewable",value:function(e){return!0}},{key:"mustBeViewed",value:function(e,r){return r?this.viewable:gR(t,"mustBeViewed",this,3)([e,r])&&!this._hasFlag(this.flags,v)}},{key:"getRotationMatrix",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.rotation;return void 0===r&&(r=this.rotation),0===r?C:_t(r,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1])}},{key:"getBorderAndBackgroundAppearances",value:function(e){var t,r=null==e||null===(t=e.get(this.data.id))||void 0===t?void 0:t.rotation;if(void 0===r&&(r=this.rotation),!this.backgroundColor&&!this.borderColor)return"";var A=this.data.rect[2]-this.data.rect[0],n=this.data.rect[3]-this.data.rect[1],i=0===r||180===r?"0 0 ".concat(A," ").concat(n," re"):"0 0 ".concat(n," ").concat(A," re"),a="";if(this.backgroundColor&&(a="".concat(pC(this.backgroundColor,!0)," ").concat(i," f ")),this.borderColor){var o=this.borderStyle.width||1;a+="".concat(o," w ").concat(pC(this.borderColor,!1)," ").concat(i," S ")}return a}},{key:"getOperatorList",value:(i=yR(ER().mark((function e(r,A,n,i){var a,o,s,c,g,u,l,h;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(16&n)||this instanceof PR||this.data.noHTML||this.data.hasOwnCanvas){e.next=2;break}return e.abrupt("return",{opList:new kf,separateForm:!0,separateCanvas:!1});case 2:if(this._hasText){e.next=4;break}return e.abrupt("return",gR(t,"getOperatorList",this,3)([r,A,n,i]));case 4:return e.next=6,this._getAppearance(r,A,n,i);case 6:if(a=e.sent,!this.appearance||null!==a){e.next=9;break}return e.abrupt("return",gR(t,"getOperatorList",this,3)([r,A,n,i]));case 9:if(o=new kf,this._defaultAppearance&&null!==a){e.next=12;break}return e.abrupt("return",{opList:o,separateForm:!1,separateCanvas:!1});case 12:if(s=!!(this.data.hasOwnCanvas&&2&n),c=[1,0,0,1,0,0],g=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],u=GR(this.data.rect,g,c),!this.oc){e.next=20;break}return e.next=19,r.parseMarkedContentProps(this.oc,null);case 19:l=e.sent;case 20:return void 0!==l&&o.addOp(J,["OC",l]),o.addOp(80,[this.data.id,this.data.rect,u,this.getRotationMatrix(i),s]),h=new or(a),e.next=25,r.getOperatorList({stream:h,task:A,resources:this._fieldResources.mergedResources,operatorList:o});case 25:return o.addOp(81,[]),void 0!==l&&o.addOp(H,[]),e.abrupt("return",{opList:o,separateForm:!1,separateCanvas:s});case 28:case"end":return e.stop()}}),e,this)}))),function(e,t,r,A){return i.apply(this,arguments)})},{key:"_getMKDict",value:function(e){var t=new He(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",xR(this.borderColor)),this.backgroundColor&&t.set("BG",xR(this.backgroundColor)),t.size>0?t:null}},{key:"amendSavedDict",value:function(e,t){}},{key:"save",value:(n=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,B,Q,E,d,y,p,v,m,w,b,k,D;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null==A?void 0:A.get(this.data.id),a=this._buildFlags(null==i?void 0:i.noView,null==i?void 0:i.noPrint),o=null==i?void 0:i.value,s=null==i?void 0:i.rotation,o!==this.data.fieldValue&&void 0!==o){e.next=7;break}if(this._hasValueFromXFA||void 0!==s||void 0!==a){e.next=6;break}return e.abrupt("return",null);case 6:o||(o=this.data.fieldValue);case 7:if(void 0!==s||this._hasValueFromXFA||!Array.isArray(o)||!Array.isArray(this.data.fieldValue)||!Be(o,this.data.fieldValue)||void 0!==a){e.next=9;break}return e.abrupt("return",null);case 9:if(void 0===s&&(s=this.rotation),c=null,this._needAppearances){e.next=19;break}return e.next=14,this._getAppearance(t,r,8,A);case 14:if(null!==(c=e.sent)||void 0!==a){e.next=17;break}return e.abrupt("return",null);case 17:e.next=19;break;case 19:if(g=!1,null!==(n=c)&&void 0!==n&&n.needAppearances&&(g=!0,c=null),u=t.xref,(l=u.fetchIfRef(this.ref))instanceof He){e.next=25;break}return e.abrupt("return",null);case 25:h=new He(u),I=QR(l.getKeys());try{for(I.s();!(f=I.n()).done;)"AP"!==(B=f.value)&&h.set(B,l.getRaw(B))}catch(e){I.e(e)}finally{I.f()}if(void 0!==a&&(h.set("F",a),null!==c||g||(Q=l.getRaw("AP"))&&h.set("AP",Q)),E={path:this.data.fieldName,value:o},h.set("V",Array.isArray(o)?o.map(jt):jt(o)),this.amendSavedDict(A,h),(d=this._getMKDict(s))&&h.set("MK",d),y=[],p=[{ref:this.ref,data:"",xfa:E,needAppearances:g}],null===c){e.next=53;break}return v=u.getNewTemporaryRef(),m=new He(u),h.set("AP",m),m.set("N",v),w=this._getSaveFieldResources(u),b=new or(c),(k=b.dict=new He(u)).set("Subtype",Ue.get("Form")),k.set("Resources",w),k.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]),(D=this.getRotationMatrix(A))!==C&&k.set("Matrix",D),e.next=51,iQ(v,b,y,u);case 51:p.push({ref:v,data:y.join(""),xfa:null,needAppearances:!1}),y.length=0;case 53:return h.set("M","D:".concat(Qe())),e.next=56,iQ(this.ref,h,y,u);case 56:return p[0].data=y.join(""),e.abrupt("return",p);case 58:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_getAppearance",value:(A=yR(ER().mark((function e(r,A,n,i){var a,o,s,c,g,u,l,h,I,f,C,B,Q,d,y,p,v,w,b,k,D,S,F,x,R,G,N,L,U,M,J,H,Y,P,O,K,T,j,Z,_,X,V,z,$;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.hasFieldFlag(m)){e.next=3;break}return e.abrupt("return",null);case 3:if((a=null==i?void 0:i.get(this.data.id))&&(o=a.formattedValue||a.value,s=a.rotation),void 0!==s||void 0!==o||this._needAppearances){e.next=8;break}if(this._hasValueFromXFA&&!this.appearance){e.next=8;break}return e.abrupt("return",null);case 8:if(c=this.getBorderAndBackgroundAppearances(i),void 0!==o){e.next=13;break}if(o=this.data.fieldValue){e.next=13;break}return e.abrupt("return","/Tx BMC q ".concat(c,"Q EMC"));case 13:if(Array.isArray(o)&&1===o.length&&(o=o[0]),W("string"==typeof o,"Expected `value` to be a string."),o=o.trimEnd(),this.data.combo&&(g=this.data.options.find((function(e){var t=e.exportValue;return o===t})),o=(null==g?void 0:g.displayValue)||o),""!==o){e.next=19;break}return e.abrupt("return","/Tx BMC q ".concat(c,"Q EMC"));case 19:return void 0===s&&(s=this.rotation),u=-1,this.data.multiLine?(l=o.split(/\\r\\n?|\\n/).map((function(e){return e.normalize("NFC")})),u=l.length):l=[o.replace(/\\r\\n?|\\n/,"").normalize("NFC")],h=1,I=2,f=this.data.rect[3]-this.data.rect[1],C=this.data.rect[2]-this.data.rect[0],90!==s&&270!==s||(C=(B=[f,C])[0],f=B[1]),this._defaultAppearance||(this.data.defaultAppearanceData=dC(this._defaultAppearance="/Helvetica 0 Tf 0 g")),e.next=30,t._getFontData(r,A,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 30:Q=e.sent,v=[],w=!1,b=QR(l);try{for(b.s();!(k=b.n()).done;)D=k.value,(S=Q.encodeString(D)).length>1&&(w=!0),v.push(S.join(""))}catch(e){b.e(e)}finally{b.f()}if(!(w&&8&n)){e.next=37;break}return e.abrupt("return",{needAppearances:!0});case 37:if(!w||!this._isOffscreenCanvasSupported){e.next=59;break}if(F=this.data.comb?"monospace":"sans-serif",x=new vC(r.xref,F),R=x.createFontResources(l.join("")),G=R.getRaw("Font"),this._fieldResources.mergedResources.has("Font")){N=this._fieldResources.mergedResources.get("Font"),L=QR(G.getKeys());try{for(L.s();!(U=L.n()).done;)M=U.value,N.set(M,G.getRaw(M))}catch(e){L.e(e)}finally{L.f()}}else this._fieldResources.mergedResources.set("Font",G);return J=x.fontName.name,e.next=46,t._getFontData(r,A,{fontName:J,fontSize:0},R);case 46:for(Q=e.sent,H=0,Y=v.length;H<Y;H++)v[H]=Zt(l[H]);P=Object.assign(Object.create(null),this.data.defaultAppearanceData),this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=J,O=this._computeFontSize(f-2*h,C-2*I,o,Q,u),K=pR(O,3),d=K[0],y=K[1],p=K[2],this.data.defaultAppearanceData=P,e.next=65;break;case 59:this._isOffscreenCanvasSupported||q("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),T=this._computeFontSize(f-2*h,C-2*I,o,Q,u),j=pR(T,3),d=j[0],y=j[1],p=j[2];case 65:if(Z=Q.descent,Z=isNaN(Z)?E*p:Math.max(E*p,Math.abs(Z)*y),_=Math.min(Math.floor((f-y)/2),h),X=this.data.textAlignment,!this.data.multiLine){e.next=71;break}return e.abrupt("return",this._getMultilineAppearance(d,v,Q,y,C,f,X,I,_,Z,p,i));case 71:if(!this.data.comb){e.next=73;break}return e.abrupt("return",this._getCombAppearance(d,Q,v[0],y,C,f,I,_,Z,p,i));case 73:if(V=_+Z,!(0===X||X>2)){e.next=76;break}return e.abrupt("return","/Tx BMC q ".concat(c,"BT ")+d+" 1 0 0 1 ".concat(Tt(I)," ").concat(Tt(V)," Tm (").concat(Lt(v[0]),") Tj")+" ET Q EMC");case 76:return z={shift:0},$=this._renderText(v[0],Q,y,C,X,z,I,V),e.abrupt("return","/Tx BMC q ".concat(c,"BT ")+d+" 1 0 0 1 0 0 Tm ".concat($)+" ET Q EMC");case 79:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return A.apply(this,arguments)})},{key:"_getTextWidth",value:function(e,t){return t.charsToGlyphs(e).reduce((function(e,t){return e+t.width}),0)/1e3}},{key:"_computeFontSize",value:function(e,t,r,A,n){var i=this,a=this.data.defaultAppearanceData.fontSize,o=(a||12)*Q,s=Math.round(e/o);if(!a){var c=function(e){return Math.floor(100*e)/100};if(-1===n){var g=this._getTextWidth(r,A);a=c(Math.min(e/Q,t/g)),s=1}else{var u,l=r.split(/\\r\\n?|\\n/),h=[],I=QR(l);try{for(I.s();!(u=I.n()).done;){var f=u.value,C=A.encodeString(f).join(""),B=A.charsToGlyphs(C),E=A.getCharPositions(C);h.push({line:C,glyphs:B,positions:E})}}catch(e){I.e(e)}finally{I.f()}var d=function(r){for(var n=0,a=0,o=h;a<o.length;a++){var s=o[a];if((n+=i._splitLine(null,A,r,t,s).length*r)>e)return!0}return!1};for(s=Math.max(s,n);d(a=c((o=e/s)/Q));)s++}var y=this.data.defaultAppearanceData,p=y.fontName,v=y.fontColor;this._defaultAppearance=function(e){var t=e.fontSize,r=e.fontColor;return"/".concat(Nt(e.fontName)," ").concat(t," Tf ").concat(pC(r,!0))}({fontSize:a,fontName:p,fontColor:v})}return[this._defaultAppearance,a,e/s]}},{key:"_renderText",value:function(e,t,r,A,n,i,a,o){var s,c=Tt((s=1===n?(A-this._getTextWidth(e,t)*r)/2:2===n?A-this._getTextWidth(e,t)*r-a:a)-i.shift);return i.shift=s,o=Tt(o),"".concat(c," ").concat(o," Td (").concat(Lt(e),") Tj")}},{key:"_getSaveFieldResources",value:function(e){var t,r=this._fieldResources,A=r.localResources,n=r.appearanceResources,i=r.acroFormResources,a=null===(t=this.data.defaultAppearanceData)||void 0===t?void 0:t.fontName;if(!a)return A||He.empty;for(var o=0,s=[A,n];o<s.length;o++){var c=s[o];if(c instanceof He){var g=c.get("Font");if(g instanceof He&&g.has(a))return c}}if(i instanceof He){var u=i.get("Font");if(u instanceof He&&u.has(a)){var l=new He(e);l.set(a,u.getRaw(a));var h=new He(e);return h.set("Font",l),He.merge({xref:e,dictArray:[h,A],mergeSubDicts:!0})}}return A||He.empty}},{key:"getFieldObject",value:function(){return null}}],[{key:"_getFontData",value:(r=yR(ER().mark((function e(t,r,A,n){var i,a,o,s;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new kf,a={font:null,clone(){return this}},o=A.fontName,s=A.fontSize,e.next=5,t.handleSetFont(n,[o&&Ue.get(o),s],null,i,r,a,null);case 5:return e.abrupt("return",a.font);case 6:case"end":return e.stop()}}),e)}))),function(e,t,A,n){return r.apply(this,arguments)})}]);var r,A,n,i}(),JR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict;A.has("PMD")&&(r.flags|=2,r.data.hidden=!0,q("Barcodes are not supported")),r.data.hasOwnCanvas=r.data.readOnly&&!r.data.noHTML,r._hasText=!0,"string"!=typeof r.data.fieldValue&&(r.data.fieldValue="");var n=yt({dict:A,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),r.data.textAlignment=n;var i=yt({dict:A,key:"MaxLen"});return(!Number.isInteger(i)||i<0)&&(i=0),r.data.maxLen=i,r.data.multiLine=r.hasFieldFlag(4096),r.data.comb=r.hasFieldFlag(16777216)&&!r.hasFieldFlag(4096)&&!r.hasFieldFlag(m)&&!r.hasFieldFlag(1048576)&&0!==r.data.maxLen,r.data.doNotScroll=r.hasFieldFlag(8388608),r}return CR(t,MR),kR(t,[{key:"hasTextContent",get:function(){return!!this.appearance&&!this._needAppearances}},{key:"_getCombAppearance",value:function(e,t,r,A,n,i,a,o,s,c,g){var u,l=n/this.data.maxLen,h=this.getBorderAndBackgroundAppearances(g),I=[],f=QR(t.getCharPositions(r));try{for(f.s();!(u=f.n()).done;){var C=pR(u.value,2),B=C[0],Q=C[1];I.push("(".concat(Lt(r.substring(B,Q)),") Tj"))}}catch(e){f.e(e)}finally{f.f()}var E=I.join(" ".concat(Tt(l)," 0 Td "));return"/Tx BMC q ".concat(h,"BT ")+e+" 1 0 0 1 ".concat(Tt(a)," ").concat(Tt(o+s)," Tm ").concat(E)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function(e,t,r,A,n,i,a,o,s,c,g,u){for(var l=[],h=n-2*o,I={shift:0},f=0,C=t.length;f<C;f++)for(var B=t[f],Q=this._splitLine(B,r,A,h),E=0,d=Q.length;E<d;E++){var y=Q[E],p=0===f&&0===E?-s-(g-c):-g;l.push(this._renderText(y,r,A,n,a,I,o,p))}var v=this.getBorderAndBackgroundAppearances(u),m=l.join("\\n");return"/Tx BMC q ".concat(v,"BT ")+e+" 1 0 0 1 0 ".concat(Tt(i)," Tm ").concat(m)+" ET Q EMC"}},{key:"_splitLine",value:function(e,t,r,A){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e=n.line||e;var i=n.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];for(var a=n.positions||t.getCharPositions(e),o=r/1e3,s=[],c=-1,g=-1,u=-1,l=0,h=0,I=0,f=i.length;I<f;I++){var C=pR(a[I],2),B=C[0],Q=C[1],E=i[I],d=E.width*o;" "===E.unicode?h+d>A?(s.push(e.substring(l,B)),l=B,h=d,c=-1,u=-1):(h+=d,c=B,g=Q,u=I):h+d>A?-1!==c?(s.push(e.substring(l,g)),l=g,I=u+1,c=-1,h=0):(s.push(e.substring(l,B)),l=B,h=d):h+=d}return l<e.length&&s.push(e.substring(l,e.length)),s}},{key:"extractTextContent",value:(r=yR(ER().mark((function e(r,A,n){var i,a,o;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gR(t,"extractTextContent",this,3)([r,A,n]);case 2:if(i=this.data.textContent){e.next=5;break}return e.abrupt("return");case 5:if((a=i.join("\\n"))!==this.data.fieldValue){e.next=8;break}return e.abrupt("return");case 8:o=a.replaceAll(/([.*+?^${}()|[\\]\\\\])|(\\s+)/g,(function(e,t){return t?"\\\\".concat(t):"\\\\s+"})),new RegExp("^\\\\s*".concat(o,"\\\\s*$")).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split("\\n"));case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,A){return r.apply(this,arguments)})},{key:"getFieldObject",value:function(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(m),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}]);var r}(),HR=function(e){function t(e){var r;return wR(this,t),(r=lR(this,t,[e])).checkedAppearance=null,r.uncheckedAppearance=null,r.data.checkBox=!r.hasFieldFlag(32768)&&!r.hasFieldFlag(w),r.data.radioButton=r.hasFieldFlag(32768)&&!r.hasFieldFlag(w),r.data.pushButton=r.hasFieldFlag(w),r.data.isTooltipOnly=!1,r.data.checkBox?r._processCheckBox(e):r.data.radioButton?r._processRadioButton(e):r.data.pushButton?(r.data.hasOwnCanvas=!0,r.data.noHTML=!1,r._processPushButton(e)):q("Invalid field flags for button widget annotation"),r}return CR(t,MR),kR(t,[{key:"getOperatorList",value:(i=yR(ER().mark((function e(r,A,n,i){var a,o,s,c,g,u,l;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.pushButton){e.next=2;break}return e.abrupt("return",gR(t,"getOperatorList",this,3)([r,A,n,!1,i]));case 2:if(a=null,o=null,i&&(s=i.get(this.data.id),a=s?s.value:null,o=s?s.rotation:null),null!==a||!this.appearance){e.next=7;break}return e.abrupt("return",gR(t,"getOperatorList",this,3)([r,A,n,i]));case 7:if(null==a&&(a=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue),!(c=a?this.checkedAppearance:this.uncheckedAppearance)){e.next=18;break}return g=this.appearance,u=Ft(c.dict.getArray("Matrix"),C),o&&c.dict.set("Matrix",this.getRotationMatrix(i)),this.appearance=c,l=gR(t,"getOperatorList",this,3)([r,A,n,i]),this.appearance=g,c.dict.set("Matrix",u),e.abrupt("return",l);case 18:return e.abrupt("return",{opList:new kf,separateForm:!1,separateCanvas:!1});case 19:case"end":return e.stop()}}),e,this)}))),function(e,t,r,A){return i.apply(this,arguments)})},{key:"save",value:(n=yR(ER().mark((function e(t,r,A){return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.checkBox){e.next=2;break}return e.abrupt("return",this._saveCheckbox(t,r,A));case 2:if(!this.data.radioButton){e.next=4;break}return e.abrupt("return",this._saveRadioButton(t,r,A));case 4:return e.abrupt("return",null);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_saveCheckbox",value:(A=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A){e.next=2;break}return e.abrupt("return",null);case 2:if(n=A.get(this.data.id),i=this._buildFlags(null==n?void 0:n.noView,null==n?void 0:n.noPrint),a=null==n?void 0:n.rotation,o=null==n?void 0:n.value,void 0!==a||void 0!==i){e.next=11;break}if(void 0!==o){e.next=8;break}return e.abrupt("return",null);case 8:if(this.data.fieldValue===this.data.exportValue!==o){e.next=11;break}return e.abrupt("return",null);case 11:if((s=t.xref.fetchIfRef(this.ref))instanceof He){e.next=14;break}return e.abrupt("return",null);case 14:return s=s.clone(),void 0===a&&(a=this.rotation),void 0===o&&(o=this.data.fieldValue===this.data.exportValue),c={path:this.data.fieldName,value:o?this.data.exportValue:""},g=Ue.get(o?this.data.exportValue:"Off"),s.set("V",g),s.set("AS",g),s.set("M","D:".concat(Qe())),void 0!==i&&s.set("F",i),(u=this._getMKDict(a))&&s.set("MK",u),l=[],e.next=28,iQ(this.ref,s,l,t.xref);case 28:return e.abrupt("return",[{ref:this.ref,data:l.join(""),xfa:c}]);case 29:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return A.apply(this,arguments)})},{key:"_saveRadioButton",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A){e.next=2;break}return e.abrupt("return",null);case 2:if(n=A.get(this.data.id),i=this._buildFlags(null==n?void 0:n.noView,null==n?void 0:n.noPrint),a=null==n?void 0:n.rotation,o=null==n?void 0:n.value,void 0!==a||void 0!==i){e.next=11;break}if(void 0!==o){e.next=8;break}return e.abrupt("return",null);case 8:if(this.data.fieldValue===this.data.buttonValue!==o){e.next=11;break}return e.abrupt("return",null);case 11:if((s=t.xref.fetchIfRef(this.ref))instanceof He){e.next=14;break}return e.abrupt("return",null);case 14:if(s=s.clone(),void 0===o&&(o=this.data.fieldValue===this.data.buttonValue),void 0===a&&(a=this.rotation),c={path:this.data.fieldName,value:o?this.data.buttonValue:""},g=Ue.get(o?this.data.buttonValue:"Off"),u=[],l=null,!o){e.next=32;break}if(!(this.parent instanceof Ye)){e.next=31;break}return(h=t.xref.fetch(this.parent)).set("V",g),e.next=27,iQ(this.parent,h,u,t.xref);case 27:l=u.join(""),u.length=0,e.next=32;break;case 31:this.parent instanceof He&&this.parent.set("V",g);case 32:return this.parent||s.set("V",g),s.set("AS",g),s.set("M","D:".concat(Qe())),void 0!==i&&s.set("F",i),(I=this._getMKDict(a))&&s.set("MK",I),e.next=40,iQ(this.ref,s,u,t.xref);case 40:return f=[{ref:this.ref,data:u.join(""),xfa:c}],l&&f.push({ref:this.parent,data:l,xfa:null}),e.abrupt("return",f);case 43:case"end":return e.stop()}}),e,this)}))),function(e,t,A){return r.apply(this,arguments)})},{key:"_getDefaultCheckedAppearance",value:function(e,t){var r,A,n=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1],a=[0,0,n,i],o=.8*Math.min(n,i);"check"===t?(r={width:.755*o,height:.705*o},A="3"):"disc"===t?(r={width:.791*o,height:.705*o},A="l"):j("_getDefaultCheckedAppearance - unsupported type: ".concat(t));var s=Tt((n-r.width)/2),c=Tt((i-r.height)/2),g="q BT /PdfJsZaDb ".concat(o," Tf 0 g ").concat(s," ").concat(c," Td (").concat(A,") Tj ET Q"),u=new He(e.xref);u.set("FormType",1),u.set("Subtype",Ue.get("Form")),u.set("Type",Ue.get("XObject")),u.set("BBox",a),u.set("Matrix",[1,0,0,1,0,0]),u.set("Length",g.length);var l=new He(e.xref),h=new He(e.xref);h.set("PdfJsZaDb",this.fallbackFontDict),l.set("Font",h),u.set("Resources",l),this.checkedAppearance=new or(g),this.checkedAppearance.dict=u,this._streams.push(this.checkedAppearance)}},{key:"_processCheckBox",value:function(e){var t=e.dict.get("AP");if(t instanceof He){var r=t.get("N");if(r instanceof He){var A=this._decodeFormValue(e.dict.get("AS"));"string"==typeof A&&(this.data.fieldValue=A);var n=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",i=r.getKeys();if(0===i.length)i.push("Off",n);else if(1===i.length)"Off"===i[0]?i.push(n):i.unshift("Off");else if(i.includes(n))i.length=0,i.push("Off",n);else{var a=i.find((function(e){return"Off"!==e}));i.length=0,i.push("Off",a)}i.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=i[1];var o=r.get(this.data.exportValue);this.checkedAppearance=o instanceof ze?o:null;var s=r.get("Off");this.uncheckedAppearance=s instanceof ze?s:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}},{key:"_processRadioButton",value:function(e){this.data.buttonValue=null;var t=e.dict.get("Parent");if(t instanceof He){this.parent=e.dict.getRaw("Parent");var r=t.get("V");r instanceof Ue&&(this.data.fieldValue=this._decodeFormValue(r))}var A=e.dict.get("AP");if(A instanceof He){var n=A.get("N");if(n instanceof He){var i,a=QR(n.getKeys());try{for(a.s();!(i=a.n()).done;){var o=i.value;if("Off"!==o){this.data.buttonValue=this._decodeFormValue(o);break}}}catch(e){a.e(e)}finally{a.f()}var s=n.get(this.data.buttonValue);this.checkedAppearance=s instanceof ze?s:null;var c=n.get("Off");this.uncheckedAppearance=c instanceof ze?c:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}},{key:"_processPushButton",value:function(e){var t=e.dict,r=e.annotationGlobals;t.has("A")||t.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!t.has("A")&&!t.has("AA"),fE.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:r.baseUrl,docAttachments:r.attachments})):q("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function(){var e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}},{key:"fallbackFontDict",get:function(){var e=new He;return e.set("BaseFont",Ue.get("ZapfDingbats")),e.set("Type",Ue.get("FallbackType")),e.set("Subtype",Ue.get("FallbackType")),e.set("Encoding",Ue.get("ZapfDingbatsEncoding")),_(this,"fallbackFontDict",e)}}]);var r,A,n,i}(),YR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;r.indices=A.getArray("I"),r.hasIndices=Array.isArray(r.indices)&&r.indices.length>0,r.data.options=[];var i=yt({dict:A,key:"Opt"});if(Array.isArray(i))for(var a=0,o=i.length;a<o;a++){var s=n.fetchIfRef(i[a]),c=Array.isArray(s);r.data.options[a]={exportValue:r._decodeFormValue(c?n.fetchIfRef(s[0]):s),displayValue:r._decodeFormValue(c?n.fetchIfRef(s[1]):s)}}if(r.hasIndices){r.data.fieldValue=[];var g,u=r.data.options.length,l=QR(r.indices);try{for(l.s();!(g=l.n()).done;){var h=g.value;Number.isInteger(h)&&h>=0&&h<u&&r.data.fieldValue.push(r.data.options[h].exportValue)}}catch(e){l.e(e)}finally{l.f()}}else"string"==typeof r.data.fieldValue?r.data.fieldValue=[r.data.fieldValue]:r.data.fieldValue||(r.data.fieldValue=[]);return r.data.combo=r.hasFieldFlag(131072),r.data.multiSelect=r.hasFieldFlag(2097152),r._hasText=!0,r}return CR(t,MR),kR(t,[{key:"getFieldObject",value:function(){var e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}},{key:"amendSavedDict",value:function(e,t){var r;if(this.hasIndices){var A=null==e||null===(r=e.get(this.data.id))||void 0===r?void 0:r.value;Array.isArray(A)||(A=[A]);for(var n=[],i=this.data.options,a=0,o=0,s=i.length;a<s;a++)i[a].exportValue===A[o]&&(n.push(a),o+=1);t.set("I",n)}}},{key:"_getAppearance",value:(r=yR(ER().mark((function e(r,A,n,i){var a,o,s,c,g,u,l,h,I,f,C,B,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U,M,J,H,Y,P,O,K,T,q;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.combo){e.next=2;break}return e.abrupt("return",gR(t,"_getAppearance",this,3)([r,A,n,i]));case 2:if((s=null==i?void 0:i.get(this.data.id))&&(o=s.rotation,a=s.value),void 0!==o||void 0!==a||this._needAppearances){e.next=6;break}return e.abrupt("return",null);case 6:for(void 0===a?a=this.data.fieldValue:Array.isArray(a)||(a=[a]),c=1,g=2,u=this.data.rect[3]-this.data.rect[1],l=this.data.rect[2]-this.data.rect[0],90!==o&&270!==o||(l=(h=[u,l])[0],u=h[1]),I=this.data.options.length,f=[],C=0;C<I;C++)B=this.data.options[C].exportValue,a.includes(B)&&f.push(C);return this._defaultAppearance||(this.data.defaultAppearanceData=dC(this._defaultAppearance="/Helvetica 0 Tf 0 g")),e.next=18,MR._getFontData(r,A,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 18:if(E=e.sent,y=this.data.defaultAppearanceData.fontSize)d=this._defaultAppearance;else{p=(u-c)/I,v=-1,w=QR(this.data.options);try{for(w.s();!(b=w.n()).done;)k=b.value.displayValue,(D=this._getTextWidth(k,E))>v&&(v=D,m=k)}catch(e){w.e(e)}finally{w.f()}S=this._computeFontSize(p,l-2*g,m,E,-1),F=pR(S,2),d=F[0],y=F[1]}if(R=((x=y*Q)-y)/2,G=Math.floor(u/x),N=0,f.length>0&&(L=Math.min.apply(Math,f),U=Math.max.apply(Math,f),(N=Math.max(0,U-G+1))>L&&(N=L)),M=Math.min(N+G+1,I),J=["/Tx BMC q","1 1 ".concat(l," ").concat(u," re W n")],f.length){J.push("0.600006 0.756866 0.854904 rg"),H=QR(f);try{for(H.s();!(Y=H.n()).done;)P=Y.value,N<=P&&P<M&&J.push("1 ".concat(u-(P-N+1)*x," ").concat(l," ").concat(x," re f"))}catch(e){H.e(e)}finally{H.f()}}for(J.push("BT",d,"1 0 0 1 0 ".concat(u," Tm")),O={shift:0},K=N;K<M;K++)T=this.data.options[K].displayValue,q=K===N?R:0,J.push(this._renderText(T,E,y,l,0,O,g,-x+q));return J.push("ET Q EMC"),e.abrupt("return",J.join("\\n"));case 34:case"end":return e.stop()}}),e,this)}))),function(e,t,A,n){return r.apply(this,arguments)})}]);var r}(),PR=function(e){function t(e){var r;return wR(this,t),(r=lR(this,t,[e])).data.fieldValue=null,r.data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!r.data.hasOwnCanvas,r}return CR(t,MR),kR(t,[{key:"getFieldObject",value:function(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}])}(),OR=function(e){function t(e){var r;wR(this,t),(r=lR(this,t,[e])).data.noRotate=!0,r.data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!1;var A=e.dict;return r.data.annotationType=1,r.data.hasAppearance?r.data.name="NoIcon":(r.data.rect[1]=r.data.rect[3]-22,r.data.rect[2]=r.data.rect[0]+22,r.data.name=A.has("Name")?A.get("Name").name:"Note"),A.has("State")?(r.data.state=A.get("State")||null,r.data.stateModel=A.get("StateModel")||null):(r.data.state=null,r.data.stateModel=null),r}return CR(t,UR),kR(t)}(),KR=function(e){function t(e){var r,A;wR(this,t),A=lR(this,t,[e]);var n=e.dict,i=e.annotationGlobals;A.data.annotationType=2,A.data.noHTML=!1;var a=RR(n,A.rectangle);return a&&(A.data.quadPoints=a),(r=A.data).borderColor||(r.borderColor=A.data.color),fE.parseDestDictionary({destDict:n,resultObj:A.data,docBaseUrl:i.baseUrl,docAttachments:i.attachments}),A}return CR(t,NR),kR(t)}(),TR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict;r.data.annotationType=16,r.data.noHTML=!1,r.data.rect[0]!==r.data.rect[2]&&r.data.rect[1]!==r.data.rect[3]||(r.data.rect=null);var n=A.get("Parent");if(!n)return q("Popup annotation has a missing or invalid parent annotation."),hR(r);if(r.data.parentRect=Rt(n.getArray("Rect"),null),Ke(n.get("RT"),p)&&(n=n.get("IRT")),n.has("M")?(r.setModificationDate(n.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,n.has("C")?(r.setColor(n.getArray("C")),r.data.color=r.color):r.data.color=null,!r.viewable){var i=n.get("F");r._isViewable(i)&&r.setFlags(i)}return r.setTitle(n.get("T")),r.data.titleObj=r._title,r.setContents(n.get("Contents")),r.data.contentsObj=r._contents,n.has("RC")&&(r.data.richText=oR.getRichTextAsHtml(n.get("RC"))),r.data.open=!!A.get("Open"),r}return CR(t,NR),kR(t)}(),qR=function(e){function t(e){var r;wR(this,t),(r=lR(this,t,[e])).data.hasOwnCanvas=r.data.noRotate,r.data.isEditable=!r.data.noHTML,r.data.noHTML=!1;var A=e.evaluatorOptions,n=e.xref;if(r.data.annotationType=3,r.setDefaultAppearance(e),r._hasAppearance=!!r.appearance,r._hasAppearance){var i=function(e,t,r){return new yC(e,t,r).parse()}(r.appearance,A,n),a=i.fontColor,o=i.fontSize;r.data.defaultAppearanceData.fontColor=a,r.data.defaultAppearanceData.fontSize=o||10}else{var s;(s=r.data.defaultAppearanceData).fontSize||(s.fontSize=10);var c=r.data.defaultAppearanceData,g=c.fontColor,u=c.fontSize;if(r._contents.str){r.data.textContent=r._contents.str.split(/\\r\\n?|\\n/).map((function(e){return e.trimEnd()}));var l=vC.getFirstPositionInfo(r.rectangle,r.rotation,u),h=l.coords,I=l.bbox,f=l.matrix;r.data.textPosition=r._transformPoint(h,I,f)}if(r._isOffscreenCanvasSupported){var C=e.dict.get("CA"),B=new vC(n,"sans-serif");r.appearance=B.createAppearance(r._contents.str,r.rectangle,r.rotation,u,g,C),r._streams.push(r.appearance)}else q("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}return r}return CR(t,UR),kR(t,[{key:"hasTextContent",get:function(){return this._hasAppearance}}],[{key:"createNewDict",value:function(e,t,r){var A=r.apRef,n=r.ap,i=e.color,a=e.fontSize,o=e.oldAnnotation,s=e.rect,c=e.rotation,g=e.user,u=e.value,l=o||new He(t);l.set("Type",Ue.get("Annot")),l.set("Subtype",Ue.get("FreeText")),o?(l.set("M","D:".concat(Qe())),l.delete("RC")):l.set("CreationDate","D:".concat(Qe())),l.set("Rect",s);var h="/Helv ".concat(a," Tf ").concat(pC(i,!0));if(l.set("DA",h),l.set("Contents",jt(u)),l.set("F",4),l.set("Border",[0,0,0]),l.set("Rotate",c),g&&l.set("T",jt(g)),A||n){var I=new He(t);l.set("AP",I),A?I.set("N",A):I.set("N",n)}return l}},{key:"createNewAppearanceStream",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U,M,J,H,Y,P,O,K,T,q,j,W,Z,_,X,V,z,$,ee,te;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=A.baseFontRef,i=A.evaluator,a=A.task,o=t.color,s=t.fontSize,c=t.rect,g=t.rotation,u=t.value,l=new He(r),h=new He(r),n?h.set("Helv",n):((I=new He(r)).set("BaseFont",Ue.get("Helvetica")),I.set("Type",Ue.get("Font")),I.set("Subtype",Ue.get("Type1")),I.set("Encoding",Ue.get("WinAnsiEncoding")),h.set("Helv",I)),l.set("Font",h),e.next=8,MR._getFontData(i,a,{fontName:"Helv",fontSize:s},l);case 8:f=e.sent,C=pR(c,4),B=C[0],E=C[1],d=C[2],y=C[3],p=d-B,v=y-E,g%180!=0&&(p=(m=[v,p])[0],v=m[1]),w=u.split("\\n"),b=s/1e3,k=-1/0,D=[],S=QR(w),e.prev=18,S.s();case 20:if((F=S.n()).done){e.next=34;break}if(x=F.value,!((R=f.encodeString(x)).length>1)){e.next=25;break}return e.abrupt("return",null);case 25:x=R.join(""),D.push(x),G=0,N=f.charsToGlyphs(x),L=QR(N);try{for(L.s();!(U=L.n()).done;)M=U.value,G+=M.width*b}catch(e){L.e(e)}finally{L.f()}k=Math.max(k,G);case 32:e.next=20;break;case 34:e.next=39;break;case 36:e.prev=36,e.t0=e.catch(18),S.e(e.t0);case 39:return e.prev=39,S.f(),e.finish(39);case 42:J=1,k>p&&(J=p/k),H=1,P=1*s,(O=(Y=Q*s)*w.length)>v&&(H=v/O),K=Math.min(J,H),T=s*K,e.t1=g,e.next=0===e.t1?54:90===e.t1?58:180===e.t1?62:270===e.t1?66:70;break;case 54:return W=[1,0,0,1],j=[c[0],c[1],p,v],q=[c[0],c[3]-P],e.abrupt("break",70);case 58:return W=[0,1,-1,0],j=[c[1],-c[2],p,v],q=[c[1],-c[0]-P],e.abrupt("break",70);case 62:return W=[-1,0,0,-1],j=[-c[2],-c[3],p,v],q=[-c[2],-c[1]-P],e.abrupt("break",70);case 66:return W=[0,-1,1,0],j=[-c[3],c[0],p,v],q=[-c[3],c[2]-P],e.abrupt("break",70);case 70:for((Z=["q","".concat(W.join(" ")," 0 0 cm"),"".concat(j.join(" ")," re W n"),"BT","".concat(pC(o,!0)),"0 Tc /Helv ".concat(Tt(T)," Tf")]).push("".concat(q.join(" ")," Td (").concat(Lt(D[0]),") Tj")),_=Tt(Y),X=1,V=D.length;X<V;X++)z=D[X],Z.push("0 -".concat(_," Td (").concat(Lt(z),") Tj"));return Z.push("ET","Q"),$=Z.join("\\n"),(ee=new He(r)).set("FormType",1),ee.set("Subtype",Ue.get("Form")),ee.set("Type",Ue.get("XObject")),ee.set("BBox",c),ee.set("Resources",l),ee.set("Matrix",[1,0,0,1,-c[0],-c[1]]),(te=new or($)).dict=ee,e.abrupt("return",te);case 86:case"end":return e.stop()}}),e,null,[[18,36,39,42]])}))),function(e,t,A){return r.apply(this,arguments)})}]);var r}(),jR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;r.data.annotationType=4,r.data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!1;var i=xt(A.getArray("L"),[0,0,0,0]);if(r.data.lineCoordinates=ge.normalizeRect(i),r.setLineEndings(A.getArray("LE")),r.data.lineEndings=r.lineEndings,!r.appearance){var a=r.color?xR(r.color):[0,0,0],o=A.get("CA"),s=FR(A.getArray("IC"),null),c=s?xR(s):null,g=c?o:null,u=r.borderStyle.width||1,l=2*u,h=[r.data.lineCoordinates[0]-l,r.data.lineCoordinates[1]-l,r.data.lineCoordinates[2]+l,r.data.lineCoordinates[3]+l];ge.intersect(r.rectangle,h)||(r.rectangle=h),r._setDefaultAppearance({xref:n,extra:"".concat(u," w"),strokeColor:a,fillColor:c,strokeAlpha:o,fillAlpha:g,pointsCallback:function(e,t){return e.push("".concat(i[0]," ").concat(i[1]," m"),"".concat(i[2]," ").concat(i[3]," l"),"S"),[t[0]-u,t[2]+u,t[7]-u,t[3]+u]}})}return r}return CR(t,UR),kR(t)}(),WR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;if(r.data.annotationType=5,r.data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!1,!r.appearance){var i=r.color?xR(r.color):[0,0,0],a=A.get("CA"),o=FR(A.getArray("IC"),null),s=o?xR(o):null,c=s?a:null;if(0===r.borderStyle.width&&!s)return hR(r);r._setDefaultAppearance({xref:n,extra:"".concat(r.borderStyle.width," w"),strokeColor:i,fillColor:s,strokeAlpha:a,fillAlpha:c,pointsCallback:function(e,t){var A=t[4]+r.borderStyle.width/2,n=t[5]+r.borderStyle.width/2,i=t[6]-t[4]-r.borderStyle.width,a=t[3]-t[7]-r.borderStyle.width;return e.push("".concat(A," ").concat(n," ").concat(i," ").concat(a," re")),s?e.push("B"):e.push("S"),[t[0],t[2],t[7],t[3]]}})}return r}return CR(t,UR),kR(t)}(),ZR=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;if(r.data.annotationType=6,!r.appearance){var i=r.color?xR(r.color):[0,0,0],a=A.get("CA"),o=FR(A.getArray("IC"),null),s=o?xR(o):null,c=s?a:null;if(0===r.borderStyle.width&&!s)return hR(r);var g=4/3*Math.tan(Math.PI/8);r._setDefaultAppearance({xref:n,extra:"".concat(r.borderStyle.width," w"),strokeColor:i,fillColor:s,strokeAlpha:a,fillAlpha:c,pointsCallback:function(e,t){var A=t[0]+r.borderStyle.width/2,n=t[1]-r.borderStyle.width/2,i=t[6]-r.borderStyle.width/2,a=t[7]+r.borderStyle.width/2,o=A+(i-A)/2,c=n+(a-n)/2,u=(i-A)/2*g,l=(a-n)/2*g;return e.push("".concat(o," ").concat(a," m"),"".concat(o+u," ").concat(a," ").concat(i," ").concat(c+l," ").concat(i," ").concat(c," c"),"".concat(i," ").concat(c-l," ").concat(o+u," ").concat(n," ").concat(o," ").concat(n," c"),"".concat(o-u," ").concat(n," ").concat(A," ").concat(c-l," ").concat(A," ").concat(c," c"),"".concat(A," ").concat(c+l," ").concat(o-u," ").concat(a," ").concat(o," ").concat(a," c"),"h"),s?e.push("B"):e.push("S"),[t[0],t[2],t[7],t[3]]}})}return r}return CR(t,UR),kR(t)}(),_R=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;r.data.annotationType=8,r.data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!1,r.data.vertices=null,r instanceof XR||(r.setLineEndings(A.getArray("LE")),r.data.lineEndings=r.lineEndings);var i=A.getArray("Vertices");if(!St(i,null))return hR(r);var a=r.data.vertices=Float32Array.from(i);if(!r.appearance){for(var o=r.color?xR(r.color):[0,0,0],s=A.get("CA"),c=r.borderStyle.width||1,g=2*c,u=[1/0,1/0,-1/0,-1/0],l=0,h=a.length;l<h;l+=2)u[0]=Math.min(u[0],a[l]-g),u[1]=Math.min(u[1],a[l+1]-g),u[2]=Math.max(u[2],a[l]+g),u[3]=Math.max(u[3],a[l+1]+g);ge.intersect(r.rectangle,u)||(r.rectangle=u),r._setDefaultAppearance({xref:n,extra:"".concat(c," w"),strokeColor:o,strokeAlpha:s,pointsCallback:function(e,t){for(var r=0,A=a.length;r<A;r+=2)e.push("".concat(a[r]," ").concat(a[r+1]," ").concat(0===r?"m":"l"));return e.push("S"),[t[0],t[2],t[7],t[3]]}})}return r}return CR(t,UR),kR(t)}(),XR=function(e){function t(e){var r;return wR(this,t),(r=lR(this,t,[e])).data.annotationType=7,r}return CR(t,_R),kR(t)}(),VR=function(e){function t(e){var r;return wR(this,t),(r=lR(this,t,[e])).data.annotationType=14,r}return CR(t,UR),kR(t)}(),zR=function(e){function t(e){var r;wR(this,t),(r=lR(this,t,[e])).data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!1;var A=e.dict,n=e.xref;r.data.annotationType=15,r.data.inkLists=[],r.data.isEditable=!r.data.noHTML&&"InkHighlight"===r.data.it,r.data.noHTML=!1,r.data.opacity=A.get("CA")||1;var i=A.getArray("InkList");if(!Array.isArray(i))return hR(r);for(var a=0,o=i.length;a<o;++a)if(Array.isArray(i[a])){var s=new Float32Array(i[a].length);r.data.inkLists.push(s);for(var c=0,g=i[a].length;c<g;c+=2){var u=n.fetchIfRef(i[a][c]),l=n.fetchIfRef(i[a][c+1]);"number"==typeof u&&"number"==typeof l&&(s[c]=u,s[c+1]=l)}}if(!r.appearance){var h,I=r.color?xR(r.color):[0,0,0],f=A.get("CA"),C=r.borderStyle.width||1,B=2*C,Q=[1/0,1/0,-1/0,-1/0],E=QR(r.data.inkLists);try{for(E.s();!(h=E.n()).done;)for(var d=h.value,y=0,p=d.length;y<p;y+=2)Q[0]=Math.min(Q[0],d[y]-B),Q[1]=Math.min(Q[1],d[y+1]-B),Q[2]=Math.max(Q[2],d[y]+B),Q[3]=Math.max(Q[3],d[y+1]+B)}catch(e){E.e(e)}finally{E.f()}ge.intersect(r.rectangle,Q)||(r.rectangle=Q),r._setDefaultAppearance({xref:n,extra:"".concat(C," w"),strokeColor:I,strokeAlpha:f,pointsCallback:function(e,t){var A,n=QR(r.data.inkLists);try{for(n.s();!(A=n.n()).done;){for(var i=A.value,a=0,o=i.length;a<o;a+=2)e.push("".concat(i[a]," ").concat(i[a+1]," ").concat(0===a?"m":"l"));e.push("S")}}catch(e){n.e(e)}finally{n.f()}return[t[0],t[2],t[7],t[3]]}})}return r}return CR(t,UR),kR(t,null,[{key:"createNewDict",value:function(e,t,r){var A=r.apRef,n=r.ap,i=e.color,a=e.opacity,o=e.paths,s=e.outlines,c=e.rect,g=e.rotation,u=e.thickness,l=new He(t);l.set("Type",Ue.get("Annot")),l.set("Subtype",Ue.get("Ink")),l.set("CreationDate","D:".concat(Qe())),l.set("Rect",c),l.set("InkList",(null==s?void 0:s.points)||o.map((function(e){return e.points}))),l.set("F",4),l.set("Rotate",g),s&&l.set("IT",Ue.get("InkHighlight"));var h=new He(t);l.set("BS",h),h.set("W",u),l.set("C",Array.from(i,(function(e){return e/255}))),l.set("CA",a);var I=new He(t);return l.set("AP",I),A?I.set("N",A):I.set("N",n),l}},{key:"createNewAppearanceStream",value:(A=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.outlines){e.next=2;break}return e.abrupt("return",this.createNewAppearanceStreamForHighlight(t,r,A));case 2:n=t.color,i=t.rect,a=t.paths,o=t.thickness,s=t.opacity,c=["".concat(o," w 1 J 1 j"),"".concat(pC(n,!1))],1!==s&&c.push("/R0 gs"),g=[],u=QR(a);try{for(u.s();!(l=u.n()).done;){if(h=l.value.bezier,g.length=0,g.push("".concat(Tt(h[0])," ").concat(Tt(h[1])," m")),2===h.length)g.push("".concat(Tt(h[0])," ").concat(Tt(h[1])," l S"));else{for(I=2,f=h.length;I<f;I+=6)C=h.slice(I,I+6).map(Tt).join(" "),g.push("".concat(C," c"));g.push("S")}c.push(g.join("\\n"))}}catch(e){u.e(e)}finally{u.f()}return B=c.join("\\n"),(Q=new He(r)).set("FormType",1),Q.set("Subtype",Ue.get("Form")),Q.set("Type",Ue.get("XObject")),Q.set("BBox",i),Q.set("Length",B.length),1!==s&&(E=new He(r),d=new He(r),(y=new He(r)).set("CA",s),y.set("Type",Ue.get("ExtGState")),d.set("R0",y),E.set("ExtGState",d),Q.set("Resources",E)),(p=new or(B)).dict=Q,e.abrupt("return",p);case 19:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return A.apply(this,arguments)})},{key:"createNewAppearanceStreamForHighlight",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.color,i=t.rect,a=t.outlines.outline,o=t.opacity,(s=["".concat(pC(n,!0)),"/R0 gs"]).push("".concat(Tt(a[4])," ").concat(Tt(a[5])," m")),c=6,g=a.length;c<g;c+=6)isNaN(a[c])||null===a[c]?s.push("".concat(Tt(a[c+4])," ").concat(Tt(a[c+5])," l")):(u=a.slice(c,c+6).map(Tt).join(" "),s.push("".concat(u," c")));return s.push("h f"),l=s.join("\\n"),(h=new He(r)).set("FormType",1),h.set("Subtype",Ue.get("Form")),h.set("Type",Ue.get("XObject")),h.set("BBox",i),h.set("Length",l.length),I=new He(r),f=new He(r),I.set("ExtGState",f),h.set("Resources",I),C=new He(r),f.set("R0",C),C.set("BM",Ue.get("Multiply")),1!==o&&(C.set("ca",o),C.set("Type",Ue.get("ExtGState"))),(B=new or(l)).dict=h,e.abrupt("return",B);case 23:case"end":return e.stop()}}),e)}))),function(e,t,A){return r.apply(this,arguments)})}]);var r,A}(),$R=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;if(r.data.annotationType=9,r.data.isEditable=!r.data.noHTML,r.data.noHTML=!1,r.data.opacity=A.get("CA")||1,r.data.quadPoints=RR(A,null)){var i,a=null===(i=r.appearance)||void 0===i?void 0:i.dict.get("Resources");if(!r.appearance||null==a||!a.has("ExtGState")){r.appearance&&q("HighlightAnnotation - ignoring built-in appearance stream.");var o=r.color?xR(r.color):[1,1,0],s=A.get("CA");r._setDefaultAppearance({xref:n,fillColor:o,blendMode:"Multiply",fillAlpha:s,pointsCallback:function(e,t){return e.push("".concat(t[0]," ").concat(t[1]," m"),"".concat(t[2]," ").concat(t[3]," l"),"".concat(t[6]," ").concat(t[7]," l"),"".concat(t[4]," ").concat(t[5]," l"),"f"),[t[0],t[2],t[7],t[3]]}})}}else r.data.popupRef=null;return r}return CR(t,UR),kR(t,null,[{key:"createNewDict",value:function(e,t,r){var A=r.apRef,n=r.ap,i=e.color,a=e.oldAnnotation,o=e.opacity,s=e.rect,c=e.rotation,g=e.user,u=e.quadPoints,l=a||new He(t);if(l.set("Type",Ue.get("Annot")),l.set("Subtype",Ue.get("Highlight")),l.set(a?"M":"CreationDate","D:".concat(Qe())),l.set("CreationDate","D:".concat(Qe())),l.set("Rect",s),l.set("F",4),l.set("Border",[0,0,0]),l.set("Rotate",c),l.set("QuadPoints",u),l.set("C",Array.from(i,(function(e){return e/255}))),l.set("CA",o),g&&l.set("T",jt(g)),A||n){var h=new He(t);l.set("AP",h),h.set("N",A||n)}return l}},{key:"createNewAppearanceStream",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.color,i=t.rect,a=t.outlines,o=t.opacity,s=["".concat(pC(n,!0)),"/R0 gs"],c=[],g=QR(a);try{for(g.s();!(u=g.n()).done;){for(l=u.value,c.length=0,c.push("".concat(Tt(l[0])," ").concat(Tt(l[1])," m")),h=2,I=l.length;h<I;h+=2)c.push("".concat(Tt(l[h])," ").concat(Tt(l[h+1])," l"));c.push("h"),s.push(c.join("\\n"))}}catch(e){g.e(e)}finally{g.f()}return s.push("f*"),f=s.join("\\n"),(C=new He(r)).set("FormType",1),C.set("Subtype",Ue.get("Form")),C.set("Type",Ue.get("XObject")),C.set("BBox",i),C.set("Length",f.length),B=new He(r),Q=new He(r),B.set("ExtGState",Q),C.set("Resources",B),E=new He(r),Q.set("R0",E),E.set("BM",Ue.get("Multiply")),1!==o&&(E.set("ca",o),E.set("Type",Ue.get("ExtGState"))),(d=new or(f)).dict=C,e.abrupt("return",d);case 24:case"end":return e.stop()}}),e)}))),function(e,t,A){return r.apply(this,arguments)})}]);var r}(),eG=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;if(r.data.annotationType=10,r.data.quadPoints=RR(A,null)){if(!r.appearance){var i=r.color?xR(r.color):[0,0,0],a=A.get("CA");r._setDefaultAppearance({xref:n,extra:"[] 0 d 0.571 w",strokeColor:i,strokeAlpha:a,pointsCallback:function(e,t){return e.push("".concat(t[4]," ").concat(t[5]+1.3," m"),"".concat(t[6]," ").concat(t[7]+1.3," l"),"S"),[t[0],t[2],t[7],t[3]]}})}}else r.data.popupRef=null;return r}return CR(t,UR),kR(t)}(),tG=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;if(r.data.annotationType=11,r.data.quadPoints=RR(A,null)){if(!r.appearance){var i=r.color?xR(r.color):[0,0,0],a=A.get("CA");r._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:i,strokeAlpha:a,pointsCallback:function(e,t){var r=(t[1]-t[5])/6,A=r,n=t[4],i=t[5],a=t[6];e.push("".concat(n," ").concat(i+A," m"));do{n+=2,A=0===A?r:0,e.push("".concat(n," ").concat(i+A," l"))}while(n<a);return e.push("S"),[t[4],a,i-2*r,i+2*r]}})}}else r.data.popupRef=null;return r}return CR(t,UR),kR(t)}(),rG=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref;if(r.data.annotationType=12,r.data.quadPoints=RR(A,null)){if(!r.appearance){var i=r.color?xR(r.color):[0,0,0],a=A.get("CA");r._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:i,strokeAlpha:a,pointsCallback:function(e,t){return e.push("".concat((t[0]+t[4])/2," ")+"".concat((t[1]+t[5])/2," m"),"".concat((t[2]+t[6])/2," ")+"".concat((t[3]+t[7])/2," l"),"S"),[t[0],t[2],t[7],t[3]]}})}}else r.data.popupRef=null;return r}return CR(t,UR),kR(t)}(),AG=new WeakMap,nG=function(e){function t(e){var r;return wR(this,t),function(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(r=lR(this,t,[e]),AG,void 0),r.data.annotationType=13,sR(AG,r,r.data.hasOwnCanvas=r.data.noRotate),r.data.isEditable=!r.data.noHTML,r.data.noHTML=!1,r}return CR(t,UR),kR(t,[{key:"mustBeViewedWhenEditing",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?!!this.data.isEditable&&(sR(AG,this,this.data.hasOwnCanvas),this.data.hasOwnCanvas=!0,!0):(this.data.hasOwnCanvas=(this,(t=AG).get(cR(t,this))),!(null!=r&&r.has(this.data.id)))}}],[{key:"createImage",value:(A=yR(ER().mark((function e(t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A=t.width,n=t.height,i=new OffscreenCanvas(A,n),(a=i.getContext("2d",{alpha:!0})).drawImage(t,0,0),o=a.getImageData(0,0,A,n).data,s=new Uint32Array(o.buffer),(c=s.some(se.isLittleEndian?function(e){return e>>>24!=255}:function(e){return 255!=(255&e)}))&&(a.fillStyle="white",a.fillRect(0,0,A,n),a.drawImage(t,0,0)),g=i.convertToBlob({type:"image/jpeg",quality:1}).then((function(e){return e.arrayBuffer()})),u=Ue.get("XObject"),l=Ue.get("Image"),(h=new He(r)).set("Type",u),h.set("Subtype",l),h.set("BitsPerComponent",8),h.set("ColorSpace",Ue.get("DeviceRGB")),h.set("Filter",Ue.get("DCTDecode")),h.set("BBox",[0,0,A,n]),h.set("Width",A),h.set("Height",n),I=null,c){if(f=new Uint8Array(s.length),se.isLittleEndian)for(C=0,B=s.length;C<B;C++)f[C]=s[C]>>>24;else for(Q=0,E=s.length;Q<E;Q++)f[Q]=255&s[Q];(d=new He(r)).set("Type",u),d.set("Subtype",l),d.set("BitsPerComponent",8),d.set("ColorSpace",Ue.get("DeviceGray")),d.set("Width",A),d.set("Height",n),I=new ar(f,0,0,d)}return e.t0=ar,e.next=25,g;case 25:return e.t1=e.sent,e.t2=h,y=new e.t0(e.t1,0,0,e.t2),e.abrupt("return",{imageStream:y,smaskStream:I,width:A,height:n});case 29:case"end":return e.stop()}}),e)}))),function(e,t){return A.apply(this,arguments)})},{key:"createNewDict",value:function(e,t,r){var A=r.apRef,n=r.ap,i=e.oldAnnotation,a=e.rect,o=e.rotation,s=e.user,c=i||new He(t);if(c.set("Type",Ue.get("Annot")),c.set("Subtype",Ue.get("Stamp")),c.set(i?"M":"CreationDate","D:".concat(Qe())),c.set("CreationDate","D:".concat(Qe())),c.set("Rect",a),c.set("F",4),c.set("Border",[0,0,0]),c.set("Rotate",o),s&&c.set("T",jt(s)),A||n){var g=new He(t);c.set("AP",g),A?g.set("N",A):g.set("N",n)}return c}},{key:"createNewAppearanceStream",value:(r=yR(ER().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I;return ER().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.oldAnnotation){e.next=2;break}return e.abrupt("return",null);case 2:return n=t.rotation,i=A.image,a=i.imageRef,o=i.width,s=i.height,c=new He(r),g=new He(r),c.set("XObject",g),g.set("Im0",a),u="q ".concat(o," 0 0 ").concat(s," 0 0 cm /Im0 Do Q"),(l=new He(r)).set("FormType",1),l.set("Subtype",Ue.get("Form")),l.set("Type",Ue.get("XObject")),l.set("BBox",[0,0,o,s]),l.set("Resources",c),n&&(h=_t(n,o,s),l.set("Matrix",h)),(I=new or(u)).dict=l,e.abrupt("return",I);case 19:case"end":return e.stop()}}),e)}))),function(e,t,A){return r.apply(this,arguments)})}]);var r,A}(),iG=function(e){function t(e){var r;wR(this,t),r=lR(this,t,[e]);var A=e.dict,n=e.xref,i=new TC(A.get("FS"),n);r.data.annotationType=17,r.data.hasOwnCanvas=r.data.noRotate,r.data.noHTML=!1,r.data.file=i.serializable;var a=A.get("Name");r.data.name=a instanceof Ue?Ie(a.name):"PushPin";var o=A.get("ca");return r.data.fillAlpha="number"==typeof o&&o>=0&&o<=1?o:null,r}return CR(t,UR),kR(t)}();function aG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oG(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,cG(A.key),A)}}function sG(e,t,r){return t&&oG(e.prototype,t),r&&oG(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cG(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function gG(e,t,r){return t=hG(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,uG()?Reflect.construct(t,r||[],hG(e).constructor):t.apply(e,r))}function uG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uG=function(){return!!e})()}function lG(){return lG="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var A=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=hG(e)););return e}(e,t);if(A){var n=Object.getOwnPropertyDescriptor(A,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},lG.apply(null,arguments)}function hG(e){return hG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hG(e)}function IG(e,t){return IG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IG(e,t)}function fG(e){try{return fe(e)}catch(t){return q(\'UTF-8 decoding failed: "\'.concat(t,\'".\')),e}}var CG=function(e){function t(e){var r;return aG(this,t),(r=gG(this,t,[e])).node=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IG(e,t)}(t,aB),sG(t,[{key:"onEndElement",value:function(e){var r=function(e,t,r,A){var n=lG(hG(e.prototype),"onEndElement",r);return"function"==typeof n?function(e){return n.apply(r,e)}:n}(t,0,this)([e]);if(r&&"xfa:datasets"===e)throw this.node=r,new Error("Aborting DatasetXMLParser.")}}])}(),BG=function(){return sG((function e(t){if(aG(this,e),t.datasets)this.node=new aB({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{var r=new CG({hasAttributes:!0});try{r.parseFromString(t["xdp:xdp"])}catch(e){}this.node=r.node}}),[{key:"getValue",value:function(e){if(!this.node||!e)return"";var t=this.node.searchNode(Gt(e),0);if(!t)return"";var r=t.firstChild;return"value"===(null==r?void 0:r.nodeName)?t.children.map((function(e){return fG(e.textContent)})):fG(t.textContent)}}])}();function QG(){QG=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function EG(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function dG(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){EG(i,A,n,a,o,"next",e)}function o(e){EG(i,A,n,a,o,"throw",e)}a(void 0)}))}}function yG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||pG(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pG(e,t){if(e){if("string"==typeof e)return vG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vG(e,t):void 0}}function vG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function mG(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,wG(A.key),A)}}function wG(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function bG(e,t,r){return e.set(DG(e,t),r),r}function kG(e,t){return e.get(DG(e,t))}function DG(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var SG=new WeakMap,FG=function(){return function(e,t,r){return t&&mG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(this,SG,null),this.stream=t,this.pdfManager=r,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new Pe,this._newPersistentRefNum=null,this._newTemporaryRefNum=null,this._persistentRefsCache=null}),[{key:"getNewPersistentRef",value:function(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);var t=this._newPersistentRefNum++;return this._cacheMap.set(t,e),Ye.get(t,0)}},{key:"getNewTemporaryRef",value:function(){if(null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1,this._newPersistentRefNum)){this._persistentRefsCache=new Map;for(var e=this._newTemporaryRefNum;e<this._newPersistentRefNum;e++)this._persistentRefsCache.set(e,this._cacheMap.get(e)),this._cacheMap.delete(e)}return Ye.get(this._newTemporaryRefNum++,0)}},{key:"resetNewTemporaryRef",value:function(){if(this._newTemporaryRefNum=null,this._persistentRefsCache){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pG(e))){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this._persistentRefsCache);try{for(t.s();!(e=t.n()).done;){var r=yG(e.value,2),A=r[0],n=r[1];this._cacheMap.set(A,n)}}catch(e){t.e(e)}finally{t.f()}}this._persistentRefsCache=null}},{key:"setStartXRef",value:function(e){this.startXRefQueue=[e]}},{key:"parse",value:function(){var e,t,r,A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A?(q("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(e){if(e instanceof Ct)throw e;q(\'XRef.parse - Invalid "Encrypt" reference: "\'.concat(e,\'".\'))}if(t instanceof He){var n=e.get("ID"),i=null!=n&&n.length?n[0]:"";t.suppressEncryption=!0,this.encrypt=new KB(t,i,this.pdfManager.password)}try{r=e.get("Root")}catch(e){if(e instanceof Ct)throw e;q(\'XRef.parse - Invalid "Root" reference: "\'.concat(e,\'".\'))}if(r instanceof He)try{if(r.get("Pages")instanceof He)return void(this.root=r)}catch(e){if(e instanceof Ct)throw e;q(\'XRef.parse - Invalid "Pages" reference: "\'.concat(e,\'".\'))}if(!A)throw new Et;throw new $("Invalid Root reference.")}},{key:"processXRefTable",value:function(e){if("tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2}),!Te(this.readXRefTable(e),"trailer"))throw new re("Invalid XRef table: could not find trailer dictionary");var t=e.getObj();if(t instanceof He||!t.dict||(t=t.dict),!(t instanceof He))throw new re("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,t}},{key:"readXRefTable",value:function(e){var t,r=e.lexer.stream,A=this.tableState;for(r.pos=A.streamPos,e.buf1=A.parserBuf1,e.buf2=A.parserBuf2;;){if(!("firstEntryNum"in A)||!("entryCount"in A)){if(Te(t=e.getObj(),"trailer"))break;A.firstEntryNum=t,A.entryCount=e.getObj()}var n=A.firstEntryNum,i=A.entryCount;if(!Number.isInteger(n)||!Number.isInteger(i))throw new re("Invalid XRef table: wrong types in subsection header");for(var a=A.entryNum;a<i;a++){A.streamPos=r.pos,A.entryNum=a,A.parserBuf1=e.buf1,A.parserBuf2=e.buf2;var o={};o.offset=e.getObj(),o.gen=e.getObj();var s=e.getObj();if(s instanceof Me)switch(s.cmd){case"f":o.free=!0;break;case"n":o.uncompressed=!0}if(!Number.isInteger(o.offset)||!Number.isInteger(o.gen)||!o.free&&!o.uncompressed)throw new re("Invalid entry in XRef subsection: ".concat(n,", ").concat(i));0===a&&o.free&&1===n&&(n=0),this.entries[a+n]||(this.entries[a+n]=o)}A.entryNum=0,A.streamPos=r.pos,A.parserBuf1=e.buf1,A.parserBuf2=e.buf2,delete A.firstEntryNum,delete A.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new re("Invalid XRef table: unexpected first object");return t}},{key:"processXRefStream",value:function(e){if(!("streamState"in this)){var t=e.dict,r=t.get("W"),A=t.get("Index");A||(A=[0,t.get("Size")]),this.streamState={entryRanges:A,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict}},{key:"readXRefStream",value:function(e){var t=this.streamState;e.pos=t.streamPos;for(var r=yG(t.byteWidths,3),A=r[0],n=r[1],i=r[2],a=t.entryRanges;a.length>0;){var o=yG(a,2),s=o[0],c=o[1];if(!Number.isInteger(s)||!Number.isInteger(c))throw new re("Invalid XRef range fields: ".concat(s,", ").concat(c));if(!Number.isInteger(A)||!Number.isInteger(n)||!Number.isInteger(i))throw new re("Invalid XRef entry fields length: ".concat(s,", ").concat(c));for(var g=t.entryNum;g<c;++g){t.entryNum=g,t.streamPos=e.pos;for(var u=0,l=0,h=0,I=0;I<A;++I){var f=e.getByte();if(-1===f)throw new re("Invalid XRef byteWidths \'type\'.");u=u<<8|f}0===A&&(u=1);for(var C=0;C<n;++C){var B=e.getByte();if(-1===B)throw new re("Invalid XRef byteWidths \'offset\'.");l=l<<8|B}for(var Q=0;Q<i;++Q){var E=e.getByte();if(-1===E)throw new re("Invalid XRef byteWidths \'generation\'.");h=h<<8|E}var d={};switch(d.offset=l,d.gen=h,u){case 0:d.free=!0;break;case 1:d.uncompressed=!0;break;case 2:break;default:throw new re("Invalid XRef entry type: ".concat(u))}this.entries[s+g]||(this.entries[s+g]=d)}t.entryNum=0,t.streamPos=e.pos,a.splice(0,2)}}},{key:"indexObjects",value:function(){function e(e,t){for(var r="",A=e[t];10!==A&&13!==A&&60!==A&&!(++t>=e.length);)r+=String.fromCharCode(A),A=e[t];return r}function t(e,t,r){for(var A=r.length,n=e.length,i=0;t<n;){for(var a=0;a<A&&e[t+a]===r[a];)++a;if(a>=A)break;t++,i++}return i}var r=/\\b(endobj|\\d+\\s+\\d+\\s+obj|xref|trailer\\s*<<)\\b/g,A=/\\b(startxref|\\d+\\s+\\d+\\s+obj)\\b/g,n=/^(\\d+)\\s+(\\d+)\\s+obj\\b/,i=new Uint8Array([116,114,97,105,108,101,114]),a=new Uint8Array([115,116,97,114,116,120,114,101,102]),o=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();var s=this.stream;s.pos=0;for(var c=s.getBytes(),g=ne(c),u=c.length,l=s.start,h=[],I=[];l<u;){var f=c[l];if(9!==f&&10!==f&&13!==f&&32!==f)if(37!==f){var C=e(c,l),B=void 0;if(C.startsWith("xref")&&(4===C.length||/\\s/.test(C[4])))l+=t(c,l,i),h.push(l),l+=t(c,l,a);else if(B=n.exec(C)){var Q=0|B[1],E=0|B[2],d=l+C.length,y=void 0,p=!1;if(this.entries[Q]){if(this.entries[Q].gen===E)try{new Jo({lexer:new Oo(s.makeSubStream(d))}).getObj(),p=!0}catch(e){e instanceof Bt?q("indexObjects -- checking object (".concat(C,\'): "\').concat(e,\'".\')):p=!0}}else p=!0;p&&(this.entries[Q]={offset:l-s.start,gen:E,uncompressed:!0}),r.lastIndex=d;var v=r.exec(g);v?(y=r.lastIndex+1-l,"endobj"!==v[1]&&(q(\'indexObjects: Found "\'.concat(v[1],\'" inside of another "obj", \')+\'caused by missing "endobj" -- trying to recover.\'),y-=v[1].length+1)):y=u-l;var m=c.subarray(l,l+y),w=t(m,0,o);w<y&&m[w+5]<64&&(I.push(l-s.start),this._xrefStms.add(l-s.start)),l+=y}else if(C.startsWith("trailer")&&(7===C.length||/\\s/.test(C[7]))){h.push(l);var b=l+C.length,k=void 0;A.lastIndex=b;var D=A.exec(g);D?(k=A.lastIndex+1-l,"startxref"!==D[1]&&(q(\'indexObjects: Found "\'.concat(D[1],\'" after "trailer", \')+\'caused by missing "startxref" -- trying to recover.\'),k-=D[1].length+1)):k=u-l,l+=k}else l+=C.length+1}else do{if(++l>=u)break;f=c[l]}while(10!==f&&13!==f);else++l}for(var S=0,F=I;S<F.length;S++){var x=F[S];this.startXRefQueue.push(x),this.readXRef(!0)}for(var R,G,N=[],L=!1,U=0,M=h;U<M.length;U++){var J=M[U];s.pos=J;var H=new Jo({lexer:new Oo(s),xref:this,allowStreams:!0,recoveryMode:!0});if(Te(H.getObj(),"trailer")){var Y=H.getObj();Y instanceof He&&(N.push(Y),Y.has("Encrypt")&&(L=!0))}}for(var P=0,O=[].concat(N,["genFallback"],N);P<O.length;P++){var K=O[P];if("genFallback"!==K){var T=!1;try{var j=K.get("Root");if(!(j instanceof He))continue;var W=j.get("Pages");if(!(W instanceof He))continue;var Z=W.get("Count");Number.isInteger(Z)&&(T=!0)}catch(e){G=e;continue}if(T&&(!L||K.has("Encrypt"))&&K.has("ID"))return K;R=K}else{if(!G)break;this._generationFallback=!0}}if(R)return R;if(this.topDict)return this.topDict;throw new $("Invalid PDF structure.")}},{key:"readXRef",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.stream,r=new Set;this.startXRefQueue.length;){try{var A=this.startXRefQueue[0];if(r.has(A)){q("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}r.add(A),t.pos=A+t.start;var n=new Jo({lexer:new Oo(t),xref:this,allowStreams:!0}),i=n.getObj(),a=void 0;if(Te(i,"xref")){var o;a=this.processXRefTable(n),this.topDict||(this.topDict=a),i=a.get("XRefStm"),Number.isInteger(i)&&!this._xrefStms.has(i)&&(this._xrefStms.add(i),this.startXRefQueue.push(i),null!==(o=kG(SG,this))&&void 0!==o||bG(SG,this,i))}else{if(!Number.isInteger(i))throw new re("Invalid XRef stream header");if(!(Number.isInteger(n.getObj())&&Te(n.getObj(),"obj")&&(i=n.getObj())instanceof ze))throw new re("Invalid XRef stream");if(a=this.processXRefStream(i),this.topDict||(this.topDict=a),!a)throw new re("Failed to read XRef stream")}i=a.get("Prev"),Number.isInteger(i)?this.startXRefQueue.push(i):i instanceof Ye&&this.startXRefQueue.push(i.num)}catch(e){if(e instanceof Ct)throw e;T("(while reading XRef): "+e)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new Et}},{key:"lastXRefStreamPos",get:function(){var e;return null!==(e=kG(SG,this))&&void 0!==e?e:this._xrefStms.size>0?Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return vG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pG(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._xrefStms)):null}},{key:"getEntry",value:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null}},{key:"fetchIfRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof Ye?this.fetch(e,t):e}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Ye))throw new Error("ref object is not a reference");var r=e.num,A=this._cacheMap.get(r);if(void 0!==A)return A instanceof He&&!A.objId&&(A.objId=e.toString()),A;var n=this.getEntry(r);if(null===n)return this._cacheMap.set(r,n),n;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),q("Ignoring circular reference: ".concat(e,".")),xe;this._pendingRefs.put(e);try{n=n.uncompressed?this.fetchUncompressed(e,n,t):this.fetchCompressed(e,n,t),this._pendingRefs.remove(e)}catch(t){throw this._pendingRefs.remove(e),t}return n instanceof He?n.objId=e.toString():n instanceof ze&&(n.dict.objId=e.toString()),n}},{key:"fetchUncompressed",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=e.gen,n=e.num;if(t.gen!==A){var i="Inconsistent generation in XRef: ".concat(e);if(this._generationFallback&&t.gen<A)return q(i),this.fetchUncompressed(Ye.get(n,t.gen),t,r);throw new Qt(i)}var a=this.stream.makeSubStream(t.offset+this.stream.start),o=new Jo({lexer:new Oo(a),xref:this,allowStreams:!0}),s=o.getObj(),c=o.getObj(),g=o.getObj();if(s!==n||c!==A||!(g instanceof Me))throw new Qt("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==g.cmd){if(g.cmd.startsWith("obj")&&(n=parseInt(g.cmd.substring(3),10),!Number.isNaN(n)))return n;throw new Qt("Bad (uncompressed) XRef entry: ".concat(e))}return(t=this.encrypt&&!r?o.getObj(this.encrypt.createCipherTransform(n,A)):o.getObj())instanceof ze||this._cacheMap.set(n,t),t}},{key:"fetchCompressed",value:function(e,t){var r=t.offset,A=this.fetch(Ye.get(r,0));if(!(A instanceof ze))throw new re("bad ObjStm stream");var n=A.dict.get("First"),i=A.dict.get("N");if(!Number.isInteger(n)||!Number.isInteger(i))throw new re("invalid first and n parameters for ObjStm stream");for(var a=new Jo({lexer:new Oo(A),xref:this,allowStreams:!0}),o=new Array(i),s=new Array(i),c=0;c<i;++c){var g=a.getObj();if(!Number.isInteger(g))throw new re("invalid object number in the ObjStm stream: ".concat(g));var u=a.getObj();if(!Number.isInteger(u))throw new re("invalid object offset in the ObjStm stream: ".concat(u));o[c]=g,s[c]=u}for(var l=(A.start||0)+n,h=new Array(i),I=0;I<i;++I){var f=I<i-1?s[I+1]-s[I]:void 0;if(f<0)throw new re("Invalid offset in the ObjStm stream.");var C=(a=new Jo({lexer:new Oo(A.makeSubStream(l+s[I],f,A.dict)),xref:this,allowStreams:!0})).getObj();if(h[I]=C,!(C instanceof ze)){var B=o[I],Q=this.entries[B];Q&&Q.offset===r&&Q.gen===I&&this._cacheMap.set(B,C)}}if(void 0===(t=h[t.gen]))throw new Qt("Bad (compressed) XRef entry: ".concat(e));return t}},{key:"fetchIfRefAsync",value:(t=dG(QG().mark((function e(t,r){return QG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Ye)){e.next=2;break}return e.abrupt("return",this.fetchAsync(t,r));case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"fetchAsync",value:(e=dG(QG().mark((function e(t,r){return QG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.fetch(t,r));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof Ct){e.next=8;break}throw e.t0;case 8:return e.next=10,this.pdfManager.requestRange(e.t0.begin,e.t0.end);case 10:return e.abrupt("return",this.fetchAsync(t,r));case 11:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(t,r){return e.apply(this,arguments)})},{key:"getCatalogObj",value:function(){return this.root}}]);var e,t}();function xG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||LG(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RG(){RG=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function GG(e){return function(e){if(Array.isArray(e))return UG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||LG(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NG(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=LG(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function LG(e,t){if(e){if("string"==typeof e)return UG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?UG(e,t):void 0}}function UG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function MG(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function JG(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){MG(i,A,n,a,o,"next",e)}function o(e){MG(i,A,n,a,o,"throw",e)}a(void 0)}))}}function HG(e,t,r){return t=PG(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,YG()?Reflect.construct(t,r||[],PG(e).constructor):t.apply(e,r))}function YG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YG=function(){return!!e})()}function PG(e){return PG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PG(e)}function OG(e,t){return OG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OG(e,t)}function KG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TG(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,jG(A.key),A)}}function qG(e,t,r){return t&&TG(e.prototype,t),r&&TG(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jG(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function WG(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function ZG(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var _G=[0,0,612,792],XG=new WeakSet,VG=function(){return qG((function e(t){var r=t.pdfManager,A=t.xref,n=t.pageIndex,i=t.pageDict,a=t.ref,o=t.globalIdFactory,s=t.fontCache,c=t.builtInCMapCache,g=t.standardFontDataCache,u=t.globalImageCache,l=t.systemFontCache,h=t.nonBlendModesSet,I=t.xfaFactory;KG(this,e),WG(this,XG),this.pdfManager=r,this.pageIndex=n,this.pageDict=i,this.xref=A,this.ref=a,this.fontCache=s,this.builtInCMapCache=c,this.standardFontDataCache=g,this.globalImageCache=u,this.systemFontCache=l,this.nonBlendModesSet=h,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=I;var f={obj:0};this._localIdFactory=function(e){function t(){return KG(this,t),HG(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OG(e,t)}(t,e),qG(t,null,[{key:"createObjId",value:function(){return"p".concat(n,"_").concat(++f.obj)}},{key:"getPageObjId",value:function(){return"p".concat(a.toString())}}])}(o)}),[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=yt({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&r[0]instanceof He?He.merge({xref:this.xref,dictArray:r}):r[0]:r}},{key:"content",get:function(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function(){var e=this._getInheritableProperty("Resources");return _(this,"resources",e instanceof He?e:He.empty)}},{key:"_getBoundingBox",value:function(e){if(this.xfaData)return this.xfaData.bbox;var t=Rt(this._getInheritableProperty(e,!0),null);if(t){if(t[2]-t[0]>0&&t[3]-t[1]>0)return t;q("Empty, or invalid, /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return _(this,"mediaBox",this._getBoundingBox("MediaBox")||_G)}},{key:"cropBox",get:function(){return _(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return("number"!=typeof e||e<=0)&&(e=1),_(this,"userUnit",e)}},{key:"view",get:function(){var e=this.cropBox,t=this.mediaBox;if(e!==t&&!Be(e,t)){var r=ge.intersect(e,t);if(r&&r[2]-r[0]>0&&r[3]-r[1]>0)return _(this,"view",r);q("Empty /CropBox and /MediaBox intersection.")}return _(this,"view",t)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),_(this,"rotate",e)}},{key:"_onSubStreamError",value:function(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;q("getContentStream - ignoring sub-stream (".concat(t,\'): "\').concat(e,\'".\'))}},{key:"getContentStream",value:function(){var e=this;return this.pdfManager.ensure(this,"content").then((function(t){return t instanceof ze?t:Array.isArray(t)?new VA(t,e._onSubStreamError.bind(e)):new sr}))}},{key:"xfaData",get:function(){return _(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"saveNewAnnotations",value:(A=JG(RG().mark((function e(t,r,A,n){var i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xfaFactory){e.next=2;break}throw new Error("XFA: Cannot save new annotations.");case 2:return i=new eC({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),a=new Oe,o=new Pe,e.next=7,ZG(XG,this,zG).call(this,A,a,o);case 7:return s=this.pageDict,c=this.annotations.filter((function(e){return!(e instanceof Ye&&a.has(e))})),e.next=11,SR.saveNewAnnotations(i,r,A,n);case 11:g=e.sent,u=NG(g.annotations);try{for(u.s();!(l=u.n()).done;)(h=l.value.ref)instanceof Ye&&!o.has(h)&&c.push(h)}catch(e){u.e(e)}finally{u.f()}return I=s.get("Annots"),s.set("Annots",c),f=[],e.next=19,iQ(this.ref,s,f,this.xref);case 19:I&&s.set("Annots",I),(C=g.dependencies).push.apply(C,[{ref:this.ref,data:f.join("")}].concat(GG(g.annotations))),B=NG(a);try{for(B.s();!(Q=B.n()).done;)E=Q.value,C.push({ref:E,data:null})}catch(e){B.e(e)}finally{B.f()}return e.abrupt("return",C);case 25:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return A.apply(this,arguments)})},{key:"save",value:function(e,t,r){var A=new eC({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){var n,i=[],a=NG(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;i.push(o.save(A,t,r).catch((function(e){return q("save - ignoring annotation data during "+\'"\'.concat(t.name,\'" task: "\').concat(e,\'".\')),null})))}}catch(e){a.e(e)}finally{a.f()}return Promise.all(i).then((function(e){return e.filter((function(e){return!!e}))}))}))}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new bE(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,A=e.sink,n=e.task,i=e.intent,a=e.cacheKey,o=e.annotationStorage,s=void 0===o?null:o,c=e.modifiedIds,g=void 0===c?null:c,u=this.getContentStream(),l=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),h=new eC({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),I=this.xfaFactory?null:qt(s),f=null==I?void 0:I.get(this.pageIndex),C=Promise.resolve(null),B=null;if(f){var Q,E,y=this.pdfManager.ensureDoc("annotationGlobals"),p=new Set,v=NG(f);try{for(v.s();!(E=v.n()).done;){var m=E.value,w=m.bitmapId,b=m.bitmap;!w||b||p.has(w)||p.add(w)}}catch(e){v.e(e)}finally{v.f()}var k=this.evaluatorOptions.isOffscreenCanvasSupported;if(p.size>0){var D,S=f.slice(),F=NG(s);try{for(F.s();!(D=F.n()).done;){var x=xG(D.value,2),R=x[0],G=x[1];R.startsWith(d)&&G.bitmap&&p.has(G.bitmapId)&&S.push(G)}}catch(e){F.e(e)}finally{F.f()}Q=SR.generateImages(S,this.xref,k)}else Q=SR.generateImages(f,this.xref,k);B=new Pe,C=Promise.all([y,ZG(XG,this,zG).call(this,f,B,null)]).then((function(e){var t=xG(e,1)[0];return t?SR.printNewAnnotations(t,h,n,f,Q):null}))}var N=Promise.all([u,l]).then((function(e){var o=xG(e,1)[0],s=new kf(i,A);return r.send("StartRenderPage",{transparency:h.hasBlendModes(t.resources,t.nonBlendModesSet),pageIndex:t.pageIndex,cacheKey:a}),h.getOperatorList({stream:o,task:n,resources:t.resources,operatorList:s}).then((function(){return s}))}));return Promise.all([N,this._parsedAnnotations,C]).then((function(e){var t=xG(e,3),r=t[0],A=t[1],a=t[2];if(a){A=A.filter((function(e){return!(e.ref&&B.has(e.ref))}));for(var o=function(e,t){var r=a[e];if(r.refToReplace){var n=A.findIndex((function(e){return e.ref&&je(e.ref,r.refToReplace)}));n>=0&&(A.splice(n,1,r),a.splice(e--,1),t--)}c=e,u=t},c=0,u=a.length;c<u;c++)o(c,u);A=A.concat(a)}if(0===A.length||64&i)return r.flush(!0),{length:r.totalLength};var l,I=!!(16&i),f=!!(128&i),C=!!(1&i),Q=!!(2&i),E=!!(4&i),d=[],y=NG(A);try{for(y.s();!(l=y.n()).done;){var p=l.value;(C||Q&&p.mustBeViewed(s,I)&&p.mustBeViewedWhenEditing(f,g)||E&&p.mustBePrinted(s))&&d.push(p.getOperatorList(h,n,i,s).catch((function(e){return q("getOperatorList - ignoring annotation data during "+\'"\'.concat(n.name,\'" task: "\').concat(e,\'".\')),{opList:null,separateForm:!1,separateCanvas:!1}})))}}catch(e){y.e(e)}finally{y.f()}return Promise.all(d).then((function(e){var t,A=!1,n=!1,i=NG(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=a.opList,s=a.separateForm,c=a.separateCanvas;r.addOpList(o),A||(A=s),n||(n=c)}}catch(e){i.e(e)}finally{i.f()}return r.flush(!0,{form:A,canvas:n}),{length:r.totalLength}}))}))}},{key:"extractTextContent",value:(r=JG(RG().mark((function e(t){var r,A,n,i,a,o,s,c,g,u,l,h,I;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.handler,A=t.task,n=t.includeMarkedContent,i=t.disableNormalization,a=t.sink,o=this.getContentStream(),s=this.loadResources(["ExtGState","Font","Properties","XObject"]),c=this.pdfManager.ensureCatalog("lang"),e.next=6,Promise.all([o,s,c]);case 6:return g=e.sent,u=xG(g,3),l=u[0],h=u[2],I=new eC({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),e.abrupt("return",I.getTextContent({stream:l,task:A,resources:this.resources,includeMarkedContent:n,disableNormalization:i,sink:a,viewBox:this.view,lang:h}));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getStructTree",value:(t=JG(RG().mark((function e(){var t,r;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("structTreeRoot");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this._parsedAnnotations;case 7:return e.next=9,this.pdfManager.ensure(this,"_parseStructTree",[t]);case 9:return r=e.sent,e.abrupt("return",r.serializable);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_parseStructTree",value:function(e){var t=new zQ(e,this.pageDict);return t.parse(this.ref),t}},{key:"getAnnotationsData",value:(e=JG(RG().mark((function e(t,r,A){var n,i,a,o,s,c,g,u,l,h,I;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._parsedAnnotations;case 2:if(0!==(n=e.sent).length){e.next=5;break}return e.abrupt("return",n);case 5:i=[],a=[],s=!!(1&A),c=!!(2&A),g=!!(4&A),u=NG(n);try{for(u.s();!(l=u.n()).done;)h=l.value,((I=s||c&&h.viewable)||g&&h.printable)&&i.push(h.data),h.hasTextContent&&I&&(o||(o=new eC({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})),a.push(h.extractTextContent(o,r,[-1/0,-1/0,1/0,1/0]).catch((function(e){q(\'getAnnotationsData - ignoring textContent during "\'.concat(r.name,\'" task: "\').concat(e,\'".\'))}))))}catch(e){u.e(e)}finally{u.f()}return e.next=11,Promise.all(a);case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,this)}))),function(t,r,A){return e.apply(this,arguments)})},{key:"annotations",get:function(){var e=this._getInheritableProperty("Annots");return _(this,"annotations",Array.isArray(e)?e:[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then(function(){var t=JG(RG().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B;return RG().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==r.length){t.next=2;break}return t.abrupt("return",r);case 2:return t.next=4,Promise.all([e.pdfManager.ensureDoc("annotationGlobals"),e.pdfManager.ensureDoc("fieldObjects")]);case 4:if(A=t.sent,n=xG(A,2),i=n[0],a=n[1],i){t.next=10;break}return t.abrupt("return",[]);case 10:o=null==a?void 0:a.orphanFields,s=[],c=NG(r);try{for(c.s();!(g=c.n()).done;)u=g.value,s.push(SR.create(e.xref,u,i,e._localIdFactory,!1,o,e.ref).catch((function(e){return q(\'_parsedAnnotations: "\'.concat(e,\'".\')),null})))}catch(e){c.e(e)}finally{c.f()}return l=[],t.t0=NG,t.next=18,Promise.all(s);case 18:t.t1=t.sent,f=(0,t.t0)(t.t1),t.prev=20,f.s();case 22:if((C=f.n()).done){t.next=35;break}if(B=C.value){t.next=26;break}return t.abrupt("continue",33);case 26:if(!(B instanceof MR)){t.next=29;break}return(I||(I=[])).push(B),t.abrupt("continue",33);case 29:if(!(B instanceof TR)){t.next=32;break}return(h||(h=[])).push(B),t.abrupt("continue",33);case 32:l.push(B);case 33:t.next=22;break;case 35:t.next=40;break;case 37:t.prev=37,t.t2=t.catch(20),f.e(t.t2);case 40:return t.prev=40,f.f(),t.finish(40);case 43:return I&&l.push.apply(l,GG(I)),h&&l.push.apply(l,GG(h)),t.abrupt("return",l);case 46:case"end":return t.stop()}}),t,null,[[20,37,40,43]])})));return function(e){return t.apply(this,arguments)}}());return _(this,"_parsedAnnotations",t)}},{key:"jsActions",get:function(){return _(this,"jsActions",Mt(this.xref,this.pageDict,D))}}]);var e,t,r,A}();function zG(e,t,r){return $G.apply(this,arguments)}function $G(){return($G=JG(RG().mark((function e(t,r,A){var n,i,a,o,s=this;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],i=NG(t),e.prev=2,o=RG().mark((function e(){var t,i,o;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=a.value).id){e.next=14;break}if(i=Ye.fromString(t.id)){e.next=6;break}return q("A non-linked annotation cannot be modified: ".concat(t.id)),e.abrupt("return",0);case 6:if(!t.deleted){e.next=10;break}return r.put(i,i),t.popupRef&&(o=Ye.fromString(t.popupRef))&&r.put(o,o),e.abrupt("return",0);case 10:null==A||A.put(i),t.ref=i,n.push(s.xref.fetchAsync(i).then((function(e){e instanceof He&&(t.oldAnnotation=e.clone())}),(function(){q("Cannot fetch `oldAnnotation` for: ".concat(i,"."))}))),delete t.id;case 14:case"end":return e.stop()}}),e)})),i.s();case 5:if((a=i.n()).done){e.next=12;break}return e.delegateYield(o(),"t0",7);case 7:if(0!==e.t0){e.next=10;break}return e.abrupt("continue",10);case 10:e.next=5;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(2),i.e(e.t1);case 17:return e.prev=17,i.f(),e.finish(17);case 20:return e.next=22,Promise.all(n);case 22:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})))).apply(this,arguments)}var eN=new Uint8Array([37,80,68,70,45]),tN=new Uint8Array([115,116,97,114,116,120,114,101,102]),rN=new Uint8Array([101,110,100,111,98,106]);function AN(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,A=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.length,i=e.peekBytes(r),a=i.length-n;if(a<=0)return!1;if(A)for(var o=n-1,s=i.length-1;s>=o;){for(var c=0;c<n&&i[s-c]===t[o-c];)c++;if(c>=n)return e.pos+=s-o,!0;s--}else for(var g=0;g<=a;){for(var u=0;u<n&&i[g+u]===t[u];)u++;if(u>=n)return e.pos+=g,!0;g++}return!1}var nN=new WeakSet,iN=function(){return qG((function e(t,r){if(KG(this,e),WG(this,nN),r.length<=0)throw new $("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=r,this.xref=new FG(r,t),this._pagePromises=new Map,this._version=null;var A={font:0};this._globalIdFactory=function(){return qG((function e(){KG(this,e)}),null,[{key:"getDocId",value:function(){return"g_".concat(t.docId)}},{key:"createFontId",value:function(){return"f".concat(++A.font)}},{key:"createObjId",value:function(){j("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function(){j("Abstract method `getPageObjId` called.")}}])}()}),[{key:"parse",value:function(e){this.xref.parse(e),this.catalog=new fE(this.pdfManager,this.xref)}},{key:"linearization",get:function(){var e=null;try{e=Ko.create(this.stream)}catch(e){if(e instanceof Ct)throw e;T(e)}return _(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization){if(e.reset(),AN(e,rN)){e.skip(6);for(var r=e.peekByte();Dt(r);)e.pos++,r=e.peekByte();t=e.pos-e.start}}else{for(var A=tN.length,n=!1,i=e.end;!n&&i>0;)(i-=1024-A)<0&&(i=0),e.pos=i,n=AN(e,tN,1024,!0);if(n){var a;e.skip(9);do{a=e.getByte()}while(Dt(a));for(var o="";a>=32&&a<=57;)o+=String.fromCharCode(a),a=e.getByte();t=parseInt(o,10),isNaN(t)&&(t=0)}}return _(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),AN(e,eN)){e.moveStart(),e.skip(eN.length);for(var t,r="";(t=e.getByte())>32&&r.length<7;)r+=String.fromCharCode(t);It.test(r)?this._version=r:q("Invalid PDF header version: ".concat(r))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function(){return _(this,"numPages",this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages)}},{key:"_hasOnlyDocumentSignatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every((function(e){if(!((e=t.xref.fetchIfRef(e))instanceof He))return!1;if(e.has("Kids"))return++r>10?(q("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):t._hasOnlyDocumentSignatures(e.get("Kids"),r);var A=Ke(e.get("FT"),"Sig"),n=e.get("Rect"),i=Array.isArray(n)&&n.every((function(e){return 0===e}));return A&&i}))}},{key:"_xfaStreams",get:function(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof ze&&!t.isEmpty)return r["xdp:xdp"]=t,r;if(!Array.isArray(t)||0===t.length)return null;for(var A=0,n=t.length;A<n;A+=2){var i;if(i=0===A?"xdp:xdp":A===n-2?"/xdp:xdp":t[A],r.hasOwnProperty(i)){var a=this.xref.fetchIfRef(t[A+1]);a instanceof ze&&!a.isEmpty&&(r[i]=a)}}return r}},{key:"xfaDatasets",get:function(){var e=this._xfaStreams;if(!e)return _(this,"xfaDatasets",null);for(var t=0,r=["datasets","xdp:xdp"];t<r.length;t++){var A=r[t],n=e[A];if(n)try{var i=fe(n.getString());return _(this,"xfaDatasets",new BG({[A]:i}))}catch(e){q("XFA - Invalid utf-8 string.");break}}return _(this,"xfaDatasets",null)}},{key:"xfaData",get:function(){var e=this._xfaStreams;if(!e)return null;for(var t=Object.create(null),r=0,A=Object.entries(e);r<A.length;r++){var n=xG(A[r],2),i=n[0],a=n[1];if(a)try{t[i]=fe(a.getString())}catch(e){return q("XFA - Invalid utf-8 string."),null}}return t}},{key:"xfaFactory",get:function(){var e;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),_(this,"xfaFactory",e?new oR(e):null)}},{key:"isPureXfa",get:function(){return!!this.xfaFactory&&this.xfaFactory.isValid()}},{key:"htmlForXfa",get:function(){return this.xfaFactory?this.xfaFactory.getPages():null}},{key:"loadXfaImages",value:(o=JG(RG().mark((function e(){var t,r,A,n,i,a,o,s;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return r=t.getKeys(),A=new bE(t,r,this.xref),e.next=9,A.load();case 9:n=new Map,i=NG(r);try{for(i.s();!(a=i.n()).done;)o=a.value,(s=t.get(o))instanceof ze&&n.set(o,s.getBytes())}catch(e){i.e(e)}finally{i.f()}this.xfaFactory.setImages(n);case 13:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"loadXfaFonts",value:(a=JG(RG().mark((function e(t,r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("acroForm");case 2:if(A=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,A.getAsync("DR");case 7:if((n=e.sent)instanceof He){e.next=10;break}return e.abrupt("return");case 10:return i=new bE(n,["Font"],this.xref),e.next=13,i.load();case 13:if((a=n.get("Font"))instanceof He){e.next=16;break}return e.abrupt("return");case 16:(o=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)).useSystemFonts=!1,s=new eC({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:o}),c=new kf,g=[],u={get font(){return g.at(-1)},set font(e){g.push(e)},clone(){return this}},l=new Map,a.forEach((function(e,t){l.set(e,t)})),h=[],I=NG(l),e.prev=26,I.s();case 28:if((f=I.n()).done){e.next=43;break}if(C=xG(f.value,2),B=C[0],Q=C[1],(E=Q.get("FontDescriptor"))instanceof He){e.next=33;break}return e.abrupt("continue",41);case 33:if(d=(d=E.get("FontFamily")).replaceAll(/[ ]+(\\d)/g,"$1"),y=E.get("FontWeight"),p=-E.get("ItalicAngle"),Ot(v={fontFamily:d,fontWeight:y,italicAngle:p})){e.next=40;break}return e.abrupt("continue",41);case 40:h.push(s.handleSetFont(n,[Ue.get(B),1],null,c,r,u,null,v).catch((function(e){return q(\'loadXfaFonts: "\'.concat(e,\'".\')),null})));case 41:e.next=28;break;case 43:e.next=48;break;case 45:e.prev=45,e.t0=e.catch(26),I.e(e.t0);case 48:return e.prev=48,I.f(),e.finish(48);case 51:return e.next=53,Promise.all(h);case 53:if(m=this.xfaFactory.setFonts(g)){e.next=56;break}return e.abrupt("return");case 56:o.ignoreErrors=!0,h.length=0,g.length=0,w=new Set,b=NG(m);try{for(b.s();!(k=b.n()).done;)D=k.value,sh("".concat(D,"-Regular"))||w.add(D)}catch(e){b.e(e)}finally{b.f()}w.size&&m.push("PdfJS-Fallback"),S=NG(m),e.prev=64,S.s();case 66:if((F=S.n()).done){e.next=73;break}if(x=F.value,!w.has(x)){e.next=70;break}return e.abrupt("continue",71);case 70:for(R=0,G=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];R<G.length;R++)N=G[R],L="".concat(x,"-").concat(N.name),U=ch(L),h.push(s.handleSetFont(n,[Ue.get(L),1],null,c,r,u,U,{fontFamily:x,fontWeight:N.fontWeight,italicAngle:N.italicAngle}).catch((function(e){return q(\'loadXfaFonts: "\'.concat(e,\'".\')),null})));case 71:e.next=66;break;case 73:e.next=78;break;case 75:e.prev=75,e.t1=e.catch(64),S.e(e.t1);case 78:return e.prev=78,S.f(),e.finish(78);case 81:return e.next=83,Promise.all(h);case 83:this.xfaFactory.appendFonts(g,w);case 84:case"end":return e.stop()}}),e,this,[[26,45,48,51],[64,75,78,81]])}))),function(e,t){return a.apply(this,arguments)})},{key:"serializeXfaData",value:(i=JG(RG().mark((function e(t){return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.xfaFactory?this.xfaFactory.serializeData(t):null);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"version",get:function(){return this.catalog.version||this._version}},{key:"formInfo",get:function(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return _(this,"formInfo",e);try{var r=t.get("Fields"),A=Array.isArray(r)&&r.length>0;e.hasFields=A;var n=t.get("XFA");e.hasXfa=Array.isArray(n)&&n.length>0||n instanceof ze&&!n.isEmpty;var i=!!(1&t.get("SigFlags")),a=i&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=A&&!a,e.hasSignatures=i}catch(e){if(e instanceof Ct)throw e;q(\'Cannot fetch form information: "\'.concat(e,\'".\'))}return _(this,"formInfo",e)}},{key:"documentInfo",get:function(){var e,t={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{e=this.xref.trailer.get("Info")}catch(e){if(e instanceof Ct)throw e;T("The document information dictionary is invalid.")}if(!(e instanceof He))return _(this,"documentInfo",t);var r,A=NG(e.getKeys());try{for(A.s();!(r=A.n()).done;){var n=r.value,i=e.get(n);switch(n){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof i){t[n]=Ie(i);continue}break;case"Trapped":if(i instanceof Ue){t[n]=i;continue}break;default:var a=void 0;switch(typeof i){case"string":a=Ie(i);break;case"number":case"boolean":a=i;break;default:i instanceof Ue&&(a=i)}if(void 0===a){q(\'Bad value, for custom key "\'.concat(n,\'", in Info: \').concat(i,"."));continue}t.Custom||(t.Custom=Object.create(null)),t.Custom[n]=a;continue}q(\'Bad value, for key "\'.concat(n,\'", in Info: \').concat(i,"."))}}catch(e){A.e(e)}finally{A.f()}return _(this,"documentInfo",t)}},{key:"fingerprints",get:function(){function e(e){return"string"==typeof e&&e.length>0&&"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"!==e}function t(e){var t,r=[],A=NG(e);try{for(A.s();!(t=A.n()).done;){var n=t.value.toString(16);r.push(n.padStart(2,"0"))}}catch(e){A.e(e)}finally{A.f()}return r.join("")}var r,A,n=this.xref.trailer.get("ID");return Array.isArray(n)&&e(n[0])?(r=ie(n[0]),n[1]!==n[0]&&e(n[1])&&(A=ie(n[1]))):r=xB(this.stream.getByteRange(0,1024),0,1024),_(this,"fingerprints",[t(r),A?t(A):null])}},{key:"_getLinearizationPage",value:(n=JG(RG().mark((function e(t){var r,A,n,i,a,o;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.catalog,A=this.linearization,n=this.xref,i=Ye.get(A.objectNumberFirst,0),e.prev=2,e.next=5,n.fetchAsync(i);case 5:if(!((a=e.sent)instanceof He)){e.next=16;break}if(!((o=a.getRaw("Type"))instanceof Ye)){e.next=12;break}return e.next=11,n.fetchAsync(o);case 11:o=e.sent;case 12:if(!Ke(o,"Page")&&(a.has("Type")||a.has("Kids")||!a.has("Contents"))){e.next=16;break}return r.pageKidsCountCache.has(i)||r.pageKidsCountCache.put(i,1),r.pageIndexCache.has(i)||r.pageIndexCache.put(i,0),e.abrupt("return",[a,i]);case 16:throw new re("The Linearization dictionary doesn\'t point to a valid Page dictionary.");case 19:return e.prev=19,e.t0=e.catch(2),q(\'_getLinearizationPage: "\'.concat(e.t0.message,\'".\')),e.abrupt("return",r.getPageDict(t));case 23:case"end":return e.stop()}}),e,this,[[2,19]])}))),function(e){return n.apply(this,arguments)})},{key:"getPage",value:function(e){var t=this,r=this._pagePromises.get(e);if(r)return r;var A,n=this.catalog,i=this.linearization,a=this.xfaFactory;return A=(A=a?Promise.resolve([He.empty,null]):(null==i?void 0:i.pageFirst)===e?this._getLinearizationPage(e):n.getPageDict(e)).then((function(r){var A=xG(r,2),i=A[0],o=A[1];return new VG({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,globalIdFactory:t._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalImageCache:n.globalImageCache,systemFontCache:n.systemFontCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:a})})),this._pagePromises.set(e,A),A}},{key:"checkFirstPage",value:(A=JG(RG().mark((function e(){var t=arguments;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length>0&&void 0!==t[0]&&t[0])){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,this.getPage(0);case 6:e.next=15;break;case 8:if(e.prev=8,e.t0=e.catch(3),!(e.t0 instanceof Qt)){e.next=15;break}return this._pagePromises.delete(0),e.next=14,this.cleanup();case 14:throw new Et;case 15:case"end":return e.stop()}}),e,this,[[3,8]])}))),function(){return A.apply(this,arguments)})},{key:"checkLastPage",value:(r=JG(RG().mark((function e(){var t,r,A,n,i,a,o,s,c,g,u,l,h,I=arguments;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=I.length>0&&void 0!==I[0]&&I[0],r=this.catalog,A=this.pdfManager,r.setActualNumPages(),e.prev=3,e.next=6,Promise.all([A.ensureDoc("xfaFactory"),A.ensureDoc("linearization"),A.ensureCatalog("numPages")]);case 6:if(!this.xfaFactory){e.next=10;break}return e.abrupt("return");case 10:n=this.linearization?this.linearization.numPages:r.numPages;case 11:if(Number.isInteger(n)){e.next=15;break}throw new re("Page count is not an integer.");case 15:if(!(n<=1)){e.next=17;break}return e.abrupt("return");case 17:return e.next=19,this.getPage(n-1);case 19:e.next=44;break;case 21:return e.prev=21,e.t0=e.catch(3),this._pagePromises.delete(n-1),e.next=26,this.cleanup();case 26:if(!(e.t0 instanceof Qt)||t){e.next=28;break}throw new Et;case 28:return q("checkLastPage - invalid /Pages tree /Count: ".concat(n,".")),e.prev=29,e.next=32,r.getAllPageDicts(t);case 32:i=e.sent,e.next=41;break;case 35:if(e.prev=35,e.t1=e.catch(29),!(e.t1 instanceof Qt)||t){e.next=39;break}throw new Et;case 39:return r.setActualNumPages(1),e.abrupt("return");case 41:a=NG(i);try{for(a.s();!(o=a.n()).done;)s=xG(o.value,2),c=s[0],g=xG(s[1],2),u=g[0],l=g[1],h=void 0,u instanceof Error?(h=Promise.reject(u)).catch((function(){})):h=Promise.resolve(new VG({pdfManager:A,xref:this.xref,pageIndex:c,pageDict:u,ref:l,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(c,h)}catch(e){a.e(e)}finally{a.f()}r.setActualNumPages(i.size);case 44:case"end":return e.stop()}}),e,this,[[3,21],[29,35]])}))),function(){return r.apply(this,arguments)})},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:(t=JG(RG().mark((function e(){var t,r=arguments;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):JC());case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"fieldObjects",get:function(){var e=this,t=this.pdfManager.ensureDoc("formInfo").then(function(){var t=JG(RG().mark((function t(r){var A,n,i,a,o,s,c,g,u,l,h,I,f,C,B;return RG().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.hasFields){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,Promise.all([e.pdfManager.ensureDoc("annotationGlobals"),e.pdfManager.ensureCatalog("acroForm")]);case 4:if(A=t.sent,n=xG(A,2),i=n[0],a=n[1],i){t.next=10;break}return t.abrupt("return",null);case 10:return o=new Pe,s=Object.create(null),c=new Map,g=new Oe,t.t0=NG,t.next=17,a.getAsync("Fields");case 17:t.t1=t.sent,u=(0,t.t0)(t.t1),t.prev=19,u.s();case 21:if((l=u.n()).done){t.next=27;break}return h=l.value,t.next=25,ZG(nN,e,aN).call(e,"",null,h,c,i,o,g);case 25:t.next=21;break;case 27:t.next=32;break;case 29:t.prev=29,t.t2=t.catch(19),u.e(t.t2);case 32:return t.prev=32,u.f(),t.finish(32);case 35:I=[],f=NG(c),t.prev=37,B=RG().mark((function e(){var t,r,A;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=xG(C.value,2),r=t[0],A=t[1],I.push(Promise.all(A).then((function(e){(e=e.filter((function(e){return!!e}))).length>0&&(s[r]=e)})));case 2:case"end":return e.stop()}}),e)})),f.s();case 40:if((C=f.n()).done){t.next=44;break}return t.delegateYield(B(),"t3",42);case 42:t.next=40;break;case 44:t.next=49;break;case 46:t.prev=46,t.t4=t.catch(37),f.e(t.t4);case 49:return t.prev=49,f.f(),t.finish(49);case 52:return t.next=54,Promise.all(I);case 54:return t.abrupt("return",{allFields:s,orphanFields:g});case 55:case"end":return t.stop()}}),t,null,[[19,29,32,35],[37,46,49,52]])})));return function(e){return t.apply(this,arguments)}}());return _(this,"fieldObjects",t)}},{key:"hasJSActions",get:function(){return _(this,"hasJSActions",this.pdfManager.ensureDoc("_parseHasJSActions"))}},{key:"_parseHasJSActions",value:(e=JG(RG().mark((function e(){var t,r,A,n;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:if(t=e.sent,r=xG(t,2),A=r[0],n=r[1],!A){e.next=8;break}return e.abrupt("return",!0);case 8:if(!n){e.next=10;break}return e.abrupt("return",Object.values(n.allFields).some((function(e){return e.some((function(e){return null!==e.actions}))})));case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"calculationOrderIds",get:function(){var e,t=null===(e=this.catalog.acroForm)||void 0===e?void 0:e.get("CO");if(!Array.isArray(t)||0===t.length)return _(this,"calculationOrderIds",null);var r,A=[],n=NG(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;i instanceof Ye&&A.push(i.toString())}}catch(e){n.e(e)}finally{n.f()}return _(this,"calculationOrderIds",A.length?A:null)}},{key:"annotationGlobals",get:function(){return _(this,"annotationGlobals",SR.createGlobals(this.pdfManager))}}]);var e,t,r,A,n,i,a,o}();function aN(e,t,r,A,n,i,a){return oN.apply(this,arguments)}function oN(){return(oN=JG(RG().mark((function e(t,r,A,n,i,a,o){var s,c,g,u,l,h,I,f,C;return RG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.xref,A instanceof Ye&&!a.has(A)){e.next=3;break}return e.abrupt("return");case 3:return a.put(A),e.next=6,s.fetchAsync(A);case 6:if((c=e.sent)instanceof He){e.next=9;break}return e.abrupt("return");case 9:if(!c.has("T")){e.next=18;break}return e.t0=Ie,e.next=13,c.getAsync("T");case 13:e.t1=e.sent,g=(0,e.t0)(e.t1),t=""===t?g:"".concat(t,".").concat(g),e.next=39;break;case 18:u=c;case 19:if(!((u=u.getRaw("Parent")||r)instanceof Ye)){e.next=27;break}if(!a.has(u)){e.next=24;break}return e.abrupt("break",39);case 24:return e.next=26,s.fetchAsync(u);case 26:u=e.sent;case 27:if(u instanceof He){e.next=29;break}return e.abrupt("break",39);case 29:if(!u.has("T")){e.next=37;break}return e.t2=Ie,e.next=33,u.getAsync("T");case 33:return e.t3=e.sent,l=(0,e.t2)(e.t3),t=""===t?l:"".concat(t,".").concat(l),e.abrupt("break",39);case 37:e.next=19;break;case 39:if(r&&!c.has("Parent")&&Ke(c.get("Subtype"),"Widget")&&o.put(A,r),n.has(t)||n.set(t,[]),n.get(t).push(SR.create(s,A,i,null,!0,o,null).then((function(e){return null==e?void 0:e.getFieldObject()})).catch((function(e){return q(\'#collectFieldObjects: "\'.concat(e,\'".\')),null}))),c.has("Kids")){e.next=44;break}return e.abrupt("return");case 44:return e.next=46,c.getAsync("Kids");case 46:if(h=e.sent,!Array.isArray(h)){e.next=65;break}I=NG(h),e.prev=49,I.s();case 51:if((f=I.n()).done){e.next=57;break}return C=f.value,e.next=55,ZG(nN,this,aN).call(this,t,A,C,n,i,a,o);case 55:e.next=51;break;case 57:e.next=62;break;case 59:e.prev=59,e.t4=e.catch(49),I.e(e.t4);case 62:return e.prev=62,I.f(),e.finish(62);case 65:case"end":return e.stop()}}),e,this,[[49,59,62,65]])})))).apply(this,arguments)}function sN(e,t,r){return t=gN(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}(e)}(e,cN()?Reflect.construct(t,r||[],gN(e).constructor):t.apply(e,r))}function cN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cN=function(){return!!e})()}function gN(e){return gN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gN(e)}function uN(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lN(e,t)}function lN(e,t){return lN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lN(e,t)}function hN(){hN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function IN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function fN(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){IN(i,A,n,a,o,"next",e)}function o(e){IN(i,A,n,a,o,"throw",e)}a(void 0)}))}}function CN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BN(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,EN(A.key),A)}}function QN(e,t,r){return t&&BN(e.prototype,t),r&&BN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EN(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var dN=function(){return QN((function e(t){var r;CN(this,e),this._docBaseUrl=function(e){if(e){var t=Z(e);if(t)return t.href;q(\'Invalid absolute docBaseUrl: "\'.concat(e,\'".\'))}return null}(t.docBaseUrl),this._docId=t.docId,this._password=t.password,this.enableXfa=t.enableXfa,(r=t.evaluatorOptions).isOffscreenCanvasSupported&&(r.isOffscreenCanvasSupported=se.isOffscreenCanvasSupported),this.evaluatorOptions=Object.freeze(t.evaluatorOptions)}),[{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){return this._docBaseUrl}},{key:"catalog",get:function(){return this.pdfDocument.catalog}},{key:"ensureDoc",value:function(e,t){return this.ensure(this.pdfDocument,e,t)}},{key:"ensureXRef",value:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)}},{key:"ensureCatalog",value:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}},{key:"getPage",value:function(e){return this.pdfDocument.getPage(e)}},{key:"fontFallback",value:function(e,t){return this.pdfDocument.fontFallback(e,t)}},{key:"loadXfaFonts",value:function(e,t){return this.pdfDocument.loadXfaFonts(e,t)}},{key:"loadXfaImages",value:function(){return this.pdfDocument.loadXfaImages()}},{key:"serializeXfaData",value:function(e){return this.pdfDocument.serializeXfaData(e)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:(e=fN(hN().mark((function e(t,r,A){return hN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j("Abstract method `ensure` called");case 1:case"end":return e.stop()}}),e)}))),function(t,r,A){return e.apply(this,arguments)})},{key:"requestRange",value:function(e,t){j("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function(){j("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function(e){j("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){j("Abstract method `terminate` called")}}]);var e}(),yN=function(e){function t(e){var r;CN(this,t),r=sN(this,t,[e]);var A=new ar(e.source);return r.pdfDocument=new iN(r,A),r._loadedStreamPromise=Promise.resolve(A),r}return uN(t,dN),QN(t,[{key:"ensure",value:(r=fN(hN().mark((function e(t,r,A){var n;return hN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(n=t[r])){e.next=3;break}return e.abrupt("return",n.apply(t,A));case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),function(e,t,A){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]);var r}(),pN=function(e){function t(e){var r;return CN(this,t),(r=sN(this,t,[e])).streamManager=new dr(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),r.pdfDocument=new iN(r,r.streamManager.getStream()),r}return uN(t,dN),QN(t,[{key:"ensure",value:(r=fN(hN().mark((function e(t,r,A){var n;return hN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"function"!=typeof(n=t[r])){e.next=4;break}return e.abrupt("return",n.apply(t,A));case 4:return e.abrupt("return",n);case 7:if(e.prev=7,e.t0=e.catch(0),e.t0 instanceof Ct){e.next=11;break}throw e.t0;case 11:return e.next=13,this.requestRange(e.t0.begin,e.t0.end);case 13:return e.abrupt("return",this.ensure(t,r,A));case 14:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t,A){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(e)}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]);var r}();function vN(){vN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function mN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function wN(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,bN(A.key),A)}}function bN(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function kN(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r(5204);function DN(e){switch(e instanceof Error||"object"==typeof e&&null!==e||j(\'wrapReason: Expected "reason" to be a (possibly cloned) Error.\'),e.name){case"AbortException":return new Ae(e.message);case"MissingPDFException":return new ee(e.message);case"PasswordException":return new V(e.message,e.code);case"UnexpectedResponseException":return new te(e.message,e.status);case"UnknownErrorException":return new z(e.message,e.details);default:return new z(e.message,e.toString())}}var SN=new WeakSet,FN=function(){return function(e,t,r){return t&&wN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,A){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,SN),this.sourceName=t,this.targetName=r,this.comObj=A,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===n.sourceName)if(t.stream)kN(SN,n,RN).call(n,t);else if(t.callback){var r=t.callbackId,i=n.callbackCapabilities[r];if(!i)throw new Error("Cannot resolve callback ".concat(r));if(delete n.callbackCapabilities[r],1===t.callback)i.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");i.reject(DN(t.reason))}}else{var a=n.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var o=n.sourceName,s=t.sourceName;new Promise((function(e){e(a(t.data))})).then((function(e){A.postMessage({sourceName:o,targetName:s,callback:1,callbackId:t.callbackId,data:e})}),(function(e){A.postMessage({sourceName:o,targetName:s,callback:2,callbackId:t.callbackId,reason:DN(e)})}))}else t.streamId?kN(SN,n,xN).call(n,t):a(t.data)}},A.addEventListener("message",this._onComObjOnMessage)}),[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error(\'There is already an actionName called "\'.concat(e,\'"\'));r[e]=t}},{key:"send",value:function(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var A=this.callbackId++,n=Promise.withResolvers();this.callbackCapabilities[A]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:A,data:t},r)}catch(e){n.reject(e)}return n.promise}},{key:"sendWithStream",value:function(e,t,r,A){var n=this,i=this.streamId++,a=this.sourceName,o=this.targetName,s=this.comObj;return new ReadableStream({start:function(r){var c=Promise.withResolvers();return n.streamControllers[i]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},s.postMessage({sourceName:a,targetName:o,action:e,streamId:i,data:t,desiredSize:r.desiredSize},A),c.promise},pull:function(e){var t=Promise.withResolvers();return n.streamControllers[i].pullCall=t,s.postMessage({sourceName:a,targetName:o,stream:6,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:function(e){W(e instanceof Error,"cancel must have a valid reason");var t=Promise.withResolvers();return n.streamControllers[i].cancelCall=t,n.streamControllers[i].isClosed=!0,s.postMessage({sourceName:a,targetName:o,stream:1,streamId:i,reason:DN(e)}),t.promise}},r)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])}();function xN(e){var t=e.streamId,r=this.sourceName,A=e.sourceName,n=this.comObj,i=this,a=this.actionHandler[e.action],o={enqueue(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var o=this.desiredSize;this.desiredSize-=i,o>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),n.postMessage({sourceName:r,targetName:A,stream:4,streamId:t,chunk:e},a)}},close(){this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:r,targetName:A,stream:3,streamId:t}),delete i.streamSinks[t])},error(e){W(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,n.postMessage({sourceName:r,targetName:A,stream:5,streamId:t,reason:DN(e)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};o.sinkCapability.resolve(),o.ready=o.sinkCapability.promise,this.streamSinks[t]=o,new Promise((function(t){t(a(e.data,o))})).then((function(){n.postMessage({sourceName:r,targetName:A,stream:8,streamId:t,success:!0})}),(function(e){n.postMessage({sourceName:r,targetName:A,stream:8,streamId:t,reason:DN(e)})}))}function RN(e){var t=e.streamId,r=this.sourceName,A=e.sourceName,n=this.comObj,i=this.streamControllers[t],a=this.streamSinks[t];switch(e.stream){case 8:e.success?i.startCall.resolve():i.startCall.reject(DN(e.reason));break;case 7:e.success?i.pullCall.resolve():i.pullCall.reject(DN(e.reason));break;case 6:if(!a){n.postMessage({sourceName:r,targetName:A,stream:7,streamId:t,success:!0});break}a.desiredSize<=0&&e.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=a.onPull)||void 0===t?void 0:t.call(a))})).then((function(){n.postMessage({sourceName:r,targetName:A,stream:7,streamId:t,success:!0})}),(function(e){n.postMessage({sourceName:r,targetName:A,stream:7,streamId:t,reason:DN(e)})}));break;case 4:if(W(i,"enqueue should have stream controller"),i.isClosed)break;i.controller.enqueue(e.chunk);break;case 3:if(W(i,"close should have stream controller"),i.isClosed)break;i.isClosed=!0,i.controller.close(),kN(SN,this,GN).call(this,i,t);break;case 5:W(i,"error should have stream controller"),i.controller.error(DN(e.reason)),kN(SN,this,GN).call(this,i,t);break;case 2:e.success?i.cancelCall.resolve():i.cancelCall.reject(DN(e.reason)),kN(SN,this,GN).call(this,i,t);break;case 1:if(!a)break;new Promise((function(t){var r;t(null===(r=a.onCancel)||void 0===r?void 0:r.call(a,DN(e.reason)))})).then((function(){n.postMessage({sourceName:r,targetName:A,stream:2,streamId:t,success:!0})}),(function(e){n.postMessage({sourceName:r,targetName:A,stream:2,streamId:t,reason:DN(e)})})),a.sinkCapability.reject(DN(e.reason)),a.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function GN(e,t){return NN.apply(this,arguments)}function NN(){var e;return e=vN().mark((function e(t,r){var A,n,i;return vN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([null===(A=t.startCall)||void 0===A?void 0:A.promise,null===(n=t.pullCall)||void 0===n?void 0:n.promise,null===(i=t.cancelCall)||void 0===i?void 0:i.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return e.stop()}}),e,this)})),NN=function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){mN(i,A,n,a,o,"next",e)}function o(e){mN(i,A,n,a,o,"throw",e)}a(void 0)}))},NN.apply(this,arguments)}function LN(){LN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function UN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function MN(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){UN(i,A,n,a,o,"next",e)}function o(e){UN(i,A,n,a,o,"throw",e)}a(void 0)}))}}function JN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function HN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YN(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,ON(A.key),A)}}function PN(e,t,r){return t&&YN(e.prototype,t),r&&YN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ON(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var KN=function(){return PN((function e(t){HN(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"getFullReader",value:function(){return W(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new TN(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new qN(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var r,A=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return JN(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JN(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}(this._rangeRequestReaders.slice(0));try{for(A.s();!(r=A.n()).done;)r.value.cancel(e)}catch(e){A.e(e)}finally{A.f()}}}])}(),TN=function(){return PN((function e(t){var r=this;HN(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var A=this._msgHandler.sendWithStream("GetReader");this._reader=A.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}),[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:(e=MN(LN().mark((function e(){var t,r;return LN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]);var e}(),qN=function(){return PN((function e(t,r,A){HN(this,e),this._msgHandler=A,this.onProgress=null;var n=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=n.getReader()}),[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=MN(LN().mark((function e(){var t,r;return LN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]);var e}();function jN(){jN=function(){return t};var e,t={},r=Object.prototype,A=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function g(e,t,r,A){var i=t&&t.prototype instanceof B?t:B,a=Object.create(i.prototype),o=new F(A||[]);return n(a,"_invoke",{value:b(e,r,o)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=g;var l="suspendedStart",h="suspendedYield",I="executing",f="completed",C={};function B(){}function Q(){}function E(){}var d={};c(d,a,(function(){return this}));var y=Object.getPrototypeOf,p=y&&y(y(x([])));p&&p!==r&&A.call(p,a)&&(d=p);var v=E.prototype=B.prototype=Object.create(d);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,g=c.value;return g&&"object"==typeof g&&A.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(g).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,o)}))}o(s.arg)}var i;n(this,"_invoke",{value:function(e,A){function n(){return new t((function(t,n){r(e,A,t,n)}))}return i=i?i.then(n,n):n()}})}function b(t,r,A){var n=l;return function(i,a){if(n===I)throw Error("Generator is already running");if(n===f){if("throw"===i)throw a;return{value:e,done:!0}}for(A.method=i,A.arg=a;;){var o=A.delegate;if(o){var s=k(o,A);if(s){if(s===C)continue;return s}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(n===l)throw n=f,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);n=I;var c=u(t,r,A);if("normal"===c.type){if(n=A.done?f:h,c.arg===C)continue;return{value:c.arg,done:A.done}}"throw"===c.type&&(n=f,A.method="throw",A.arg=c.arg)}}}function k(t,r){var A=r.method,n=t.iterator[A];if(n===e)return r.delegate=null,"throw"===A&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==A&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+A+"\' method")),C;var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,C;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,C):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,C)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(A.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return Q.prototype=E,n(v,"constructor",{value:E,configurable:!0}),n(E,"constructor",{value:Q,configurable:!0}),Q.displayName=c(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Q||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},m(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,A,n,i){void 0===i&&(i=Promise);var a=new w(g(e,r,A,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var A in t)r.push(A);return r.reverse(),function e(){for(;r.length;){var A=r.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=x,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&A.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(A,n){return o.type="throw",o.arg=t,r.next=A,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=A.call(a,"catchLoc"),c=A.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var A=r.completion;if("throw"===A.type){var n=A.arg;S(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,A){return this.delegate={iterator:x(t),resultName:r,nextLoc:A},"next"===this.method&&(this.arg=e),C}},t}function WN(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_N(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var A=0,n=function(){};return{s:n,n:function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:n}}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 i,a=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function ZN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var A,n,i,a,o=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(A=i.call(r)).done)&&(o.push(A.value),o.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e,t)||_N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _N(e,t){if(e){if("string"==typeof e)return XN(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?XN(e,t):void 0}}function XN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,A=Array(t);r<t;r++)A[r]=e[r];return A}function VN(e,t,r,A,n,i,a){try{var o=e[i](a),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(A,n)}function zN(e){return function(){var t=this,r=arguments;return new Promise((function(A,n){var i=e.apply(t,r);function a(e){VN(i,A,n,a,o,"next",e)}function o(e){VN(i,A,n,a,o,"throw",e)}a(void 0)}))}}function $N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eL(e,t){for(var r=0;r<t.length;r++){var A=t[r];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,rL(A.key),A)}}function tL(e,t,r){return t&&eL(e.prototype,t),r&&eL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rL(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var A=r.call(e,"string");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var AL,nL=function(){return tL((function e(t){$N(this,e),this.name=t,this.terminated=!1,this._capability=Promise.withResolvers()}),[{key:"finished",get:function(){return this._capability.promise}},{key:"finish",value:function(){this._capability.resolve()}},{key:"terminate",value:function(){this.terminated=!0}},{key:"ensureNotTerminated",value:function(){if(this.terminated)throw new Error("Worker task was terminated")}}])}(),iL=function(){function e(){$N(this,e)}return tL(e,null,[{key:"setup",value:function(t,r){var A=!1;t.on("test",(function(e){A||(A=!0,t.send("test",e instanceof Uint8Array))})),t.on("configure",(function(e){var t;t=e.verbosity,Number.isInteger(t)&&(O=t)})),t.on("GetDocRequest",(function(t){return e.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function(e,t){var r,A=!1,n=null,i=new Set,a=K(),o=e,s=o.docId,c=o.apiVersion,g="4.7.0";if(c!==g)throw new Error(\'The API version "\'.concat(c,\'" does not match \')+\'the Worker version "\'.concat(g,\'".\'));var u=[];for(var l in[])u.push(l);if(u.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+u.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var h=s+"_worker",I=new FN(h,s,t);function f(){if(A)throw new Error("Worker was terminated")}function C(e){i.add(e)}function B(e){e.finish(),i.delete(e)}function Q(e){return E.apply(this,arguments)}function E(){return(E=zN(jN().mark((function e(t){var A,n,i,a,o,s,c;return jN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.ensureDoc("checkHeader");case 2:return e.next=4,r.ensureDoc("parseStartXRef");case 4:return e.next=6,r.ensureDoc("parse",[t]);case 6:return e.next=8,r.ensureDoc("checkFirstPage",[t]);case 8:return e.next=10,r.ensureDoc("checkLastPage",[t]);case 10:return e.next=12,r.ensureDoc("isPureXfa");case 12:if(!(A=e.sent)){e.next=18;break}return C(n=new nL("loadXfaFonts")),e.next=18,Promise.all([r.loadXfaFonts(I,n).catch((function(e){})).then((function(){return B(n)})),r.loadXfaImages()]);case 18:return e.next=20,Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")]);case 20:if(i=e.sent,a=ZN(i,2),o=a[0],s=a[1],!A){e.next=30;break}return e.next=27,r.ensureDoc("htmlForXfa");case 27:e.t0=e.sent,e.next=31;break;case 30:e.t0=null;case 31:return c=e.t0,e.abrupt("return",{numPages:o,fingerprints:s,htmlForXfa:c});case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return I.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){var t,r=ZN(e,4),A=r[0],n=r[1],i=r[2],a=r[3];return{rotate:A,ref:n,refStr:null!==(t=null==n?void 0:n.toString())&&void 0!==t?t:null,userUnit:i,view:a}}))}))})),I.on("GetPageIndex",(function(e){var t=Ye.get(e.num,e.gen);return r.ensureCatalog("getPageIndex",[t])})),I.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),I.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),I.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),I.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")})),I.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),I.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")})),I.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")})),I.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),I.on("GetDocJSActions",(function(e){return r.ensureCatalog("jsActions")})),I.on("GetPageJSActions",(function(e){var t=e.pageIndex;return r.getPage(t).then((function(e){return r.ensure(e,"jsActions")}))})),I.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),I.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")})),I.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),I.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),I.on("GetMarkInfo",(function(e){return r.ensureCatalog("markInfo")})),I.on("GetData",(function(e){return r.requestLoadedStream().then((function(e){return e.bytes}))})),I.on("GetAnnotations",(function(e){var t=e.pageIndex,A=e.intent;return r.getPage(t).then((function(e){var r=new nL("GetAnnotations: page ".concat(t));return C(r),e.getAnnotationsData(I,r,A).then((function(e){return B(r),e}),(function(e){throw B(r),e}))}))})),I.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects").then((function(e){return(null==e?void 0:e.allFields)||null}))})),I.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")})),I.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")})),I.on("SaveDocument",function(){var e=zN(jN().mark((function e(t){var A,n,i,a,o,s,c,g,u,l,h,f,C,Q,E,d,y,p,v,m,w,b,k,D,S,F,x,R,G,N,L,U,M,J,H,Y,P,O;return jN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A=t.isPureXfa,n=t.numPages,i=t.annotationStorage,a=t.filename,o=[r.requestLoadedStream(),r.ensureCatalog("acroForm"),r.ensureCatalog("acroFormRef"),r.ensureDoc("startXRef"),r.ensureDoc("xref"),r.ensureDoc("linearization"),r.ensureCatalog("structTreeRoot")],s=[],c=A?null:qt(i),e.next=6,Promise.all(o);case 6:if(g=e.sent,u=ZN(g,7),l=u[0],h=u[1],f=u[2],C=u[3],Q=u[4],E=u[5],d=u[6],y=Q.trailer.getRaw("Root")||null,!c){e.next=47;break}if(d){e.next=24;break}return e.next=20,OQ.canCreateStructureTree({catalogRef:y,pdfManager:r,newAnnotationsByPage:c});case 20:if(!e.sent){e.next=22;break}p=null;case 22:e.next=28;break;case 24:return e.next=26,d.canUpdateStructTree({pdfManager:r,xref:Q,newAnnotationsByPage:c});case 26:if(!e.sent){e.next=28;break}p=d;case 28:v=SR.generateImages(i.values(),Q,r.evaluatorOptions.isOffscreenCanvasSupported),m=void 0===p?s:[],w=WN(c),e.prev=31,k=jN().mark((function e(){var t,A,n;return jN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=ZN(b.value,2),A=t[0],n=t[1],m.push(r.getPage(A).then((function(e){var t=new nL("Save (editor): page ".concat(A));return e.saveNewAnnotations(I,t,n,v).finally((function(){B(t)}))})));case 2:case"end":return e.stop()}}),e)})),w.s();case 34:if((b=w.n()).done){e.next=38;break}return e.delegateYield(k(),"t0",36);case 36:e.next=34;break;case 38:e.next=43;break;case 40:e.prev=40,e.t1=e.catch(31),w.e(e.t1);case 43:return e.prev=43,w.f(),e.finish(43);case 46:null===p?s.push(Promise.all(m).then(function(){var e=zN(jN().mark((function e(t){return jN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,OQ.createStructureTree({newAnnotationsByPage:c,xref:Q,catalogRef:y,pdfManager:r,newRefs:t});case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())):p&&s.push(Promise.all(m).then(function(){var e=zN(jN().mark((function e(t){return jN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.updateStructureTree({newAnnotationsByPage:c,pdfManager:r,newRefs:t});case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 47:if(!A){e.next=51;break}s.push(r.serializeXfaData(i)),e.next=58;break;case 51:D=jN().mark((function e(t){return jN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s.push(r.getPage(t).then((function(e){var r=new nL("Save: page ".concat(t));return e.save(I,r,i).finally((function(){B(r)}))})));case 1:case"end":return e.stop()}}),e)})),S=0;case 53:if(!(S<n)){e.next=58;break}return e.delegateYield(D(S),"t2",55);case 55:S++,e.next=53;break;case 58:return e.next=60,Promise.all(s);case 60:if(F=e.sent,x=[],R=null,!A){e.next=69;break}if(R=F[0]){e.next=67;break}return e.abrupt("return",l.bytes);case 67:e.next=72;break;case 69:if(0!==(x=F.flat(2)).length){e.next=72;break}return e.abrupt("return",l.bytes);case 72:if(G=f&&h instanceof He&&x.some((function(e){return e.needAppearances})),N=h instanceof He&&h.get("XFA")||null,L=null,U=!1,Array.isArray(N)){for(M=0,J=N.length;M<J;M+=2)"datasets"===N[M]&&(L=N[M+1],U=!0);null===L&&(L=Q.getNewTemporaryRef())}else N&&q("Unsupported XFA type.");return H=Object.create(null),Q.trailer&&(P=Object.create(null),(O=Q.trailer.get("Info")||null)instanceof He&&O.forEach((function(e,t){"string"==typeof t&&(P[e]=Ie(t))})),H={rootRef:y,encryptRef:Q.trailer.getRaw("Encrypt")||null,newRef:Q.getNewTemporaryRef(),infoRef:Q.trailer.getRaw("Info")||null,info:P,fileIds:Q.trailer.get("ID")||null,startXRef:E?C:null!==(Y=Q.lastXRefStreamPos)&&void 0!==Y?Y:C,filename:a}),e.abrupt("return",kQ({originalData:l.bytes,xrefInfo:H,newRefs:x,xref:Q,hasXfa:!!N,xfaDatasetsRef:L,hasXfaDatasetsEntry:U,needAppearances:G,acroFormRef:f,acroForm:h,xfaData:R,useXrefStream:qe(Q.topDict,"XRef")}).finally((function(){Q.resetNewTemporaryRef()})));case 80:case"end":return e.stop()}}),e,null,[[31,40,43,46]])})));return function(t){return e.apply(this,arguments)}}()),I.on("GetOperatorList",(function(e,t){var A=e.pageIndex;r.getPage(A).then((function(r){var n=new nL("GetOperatorList: page ".concat(A));C(n);var i=a>=S.INFOS?Date.now():0;r.getOperatorList({handler:I,sink:t,task:n,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage,modifiedIds:e.modifiedIds}).then((function(e){B(n),i&&T("page=".concat(A+1," - getOperatorList: time=")+"".concat(Date.now()-i,"ms, len=").concat(e.length)),t.close()}),(function(e){B(n),n.terminated||t.error(e)}))}))})),I.on("GetTextContent",(function(e,t){var A=e.pageIndex,n=e.includeMarkedContent,i=e.disableNormalization;r.getPage(A).then((function(e){var r=new nL("GetTextContent: page "+A);C(r);var o=a>=S.INFOS?Date.now():0;e.extractTextContent({handler:I,task:r,sink:t,includeMarkedContent:n,disableNormalization:i}).then((function(){B(r),o&&T("page=".concat(A+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){B(r),r.terminated||t.error(e)}))}))})),I.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),I.on("FontFallback",(function(e){return r.fontFallback(e.id,I)})),I.on("Cleanup",(function(e){return r.cleanup(!0)})),I.on("Terminate",(function(e){A=!0;var t=[];if(r){r.terminate(new Ae("Worker was terminated."));var a=r.cleanup();t.push(a),r=null}else JC();n&&n(new Ae("Worker was terminated."));var o,s=WN(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.push(c.finished),c.terminate()}}catch(e){s.e(e)}finally{s.f()}return Promise.all(t).then((function(){I.destroy(),I=null}))})),I.on("Ready",(function(t){!function(e){function t(e){f(),I.send("GetDoc",{pdfInfo:e})}function i(e){if(f(),e instanceof V){var t=new nL("PasswordException: response ".concat(e.code));C(t),I.sendWithPromise("PasswordRequest",e).then((function(e){var A=e.password;B(t),r.updatePassword(A),a()})).catch((function(){B(t),I.send("DocException",e)}))}else e instanceof $||e instanceof ee||e instanceof te||e instanceof z?I.send("DocException",e):I.send("DocException",new z(e.message,e.toString()))}function a(){f(),Q(!1).then(t,(function(e){f(),e instanceof Et?r.requestLoadedStream().then((function(){f(),Q(!0).then(t,i)})):i(e)}))}f(),function(e){var t,r=e.data,A=e.password,i=e.disableAutoFetch,a=e.rangeChunkSize,o=e.length,c=e.docBaseUrl,g=e.enableXfa,u=e.evaluatorOptions,l={source:null,disableAutoFetch:i,docBaseUrl:c,docId:s,enableXfa:g,evaluatorOptions:u,handler:I,length:o,password:A,rangeChunkSize:a},h=Promise.withResolvers();if(r){try{l.source=r,t=new yN(l),h.resolve(t)}catch(e){h.reject(e)}return h.promise}var C,B=[];try{C=new KN(I)}catch(e){return h.reject(e),h.promise}var Q=C.getFullReader();Q.headersReady.then((function(){if(Q.isRangeSupported){l.source=C,l.length=Q.contentLength,l.disableAutoFetch||(l.disableAutoFetch=Q.isStreamingSupported),t=new pN(l);for(var e=0,r=B;e<r.length;e++){var A=r[e];t.sendProgressiveData(A)}B=[],h.resolve(t),n=null}})).catch((function(e){h.reject(e),n=null}));var E=0;return new Promise((function(e,r){var A=function(e){var i=e.value,a=e.done;try{if(f(),a)return t||function(){var e=dt(B);o&&e.length!==o&&q("reported HTTP length is different from actual");try{l.source=e,t=new yN(l),h.resolve(t)}catch(e){h.reject(e)}B=[]}(),void(n=null);E+=i.byteLength,Q.isStreamingSupported||I.send("DocProgress",{loaded:E,total:Math.max(E,Q.contentLength||0)}),t?t.sendProgressiveData(i):B.push(i),Q.read().then(A,r)}catch(e){r(e)}};Q.read().then(A,r)})).catch((function(e){h.reject(e),n=null})),n=function(e){C.cancelAllRequests(e)},h.promise}(e).then((function(e){if(A)throw e.terminate(new Ae("Worker was terminated.")),new Error("Worker was terminated");(r=e).requestLoadedStream(!0).then((function(e){I.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(a,i)}(e),e=null})),h}},{key:"initializeFromPort",value:function(t){var r=new FN("worker","main",t);e.setup(r,t),r.send("ready",null)}}])}();"undefined"==typeof window&&!f&&"undefined"!=typeof self&&"function"==typeof(AL=self).postMessage&&"onmessage"in AL&&iL.initializeFromPort(self);',u='/*! For license information please see pdf.js.LICENSE.txt */\nvar t={4186:(t,e,r)=>{var n=r(3749),i=r(8055),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not a function")}},9052:(t,e,r)=>{var n=r(8413),i=r(8055),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not a constructor")}},7330:(t,e,r)=>{var n=r(4597),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a("Can\'t set "+i(t)+" as a prototype")}},4376:(t,e,r)=>{var n=r(418).has;t.exports=function(t){return n(t),t}},1458:(t,e,r)=>{var n=r(5811),i=r(5304),a=r(1601).f,o=n("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},8149:(t,e,r)=>{var n=r(6903).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},3399:(t,e,r)=>{var n=r(6921),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},7447:(t,e,r)=>{var n=r(2674),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not an object")}},387:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},8242:(t,e,r)=>{var n=r(4032),i=r(5026),a=r(9872),o=n.ArrayBuffer,s=n.TypeError;t.exports=o&&i(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==a(t))throw new s("ArrayBuffer expected");return t.byteLength}},8102:(t,e,r)=>{var n=r(4032),i=r(2116),a=r(8242),o=n.ArrayBuffer,s=o&&o.prototype,u=s&&i(s.slice);t.exports=function(t){if(0!==a(t))return!1;if(!u)return!1;try{return u(t,0,0),!1}catch(t){return!0}}},7060:(t,e,r)=>{var n=r(3455);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},6033:(t,e,r)=>{var n=r(8102),i=TypeError;t.exports=function(t){if(n(t))throw new i("ArrayBuffer is detached");return t}},4676:(t,e,r)=>{var n=r(4032),i=r(2608),a=r(5026),o=r(9088),s=r(6033),u=r(8242),c=r(7395),l=r(6572),h=n.structuredClone,f=n.ArrayBuffer,d=n.DataView,v=Math.min,p=f.prototype,y=d.prototype,g=i(p.slice),m=a(p,"resizable","get"),b=a(p,"maxByteLength","get"),w=i(y.getInt8),k=i(y.setInt8);t.exports=(l||c)&&function(t,e,r){var n,i=u(t),a=void 0===e?i:o(e),p=!m||!m(t);if(s(t),l&&(t=h(t,{transfer:[t]}),i===a&&(r||p)))return t;if(i>=a&&(!r||p))n=g(t,0,a);else{var y=r&&!p&&b?{maxByteLength:b(t)}:void 0;n=new f(a,y);for(var x=new d(t),A=new d(n),_=v(a,i),E=0;E<_;E++)k(A,E,w(x,E))}return l||c(t),n}},4356:(t,e,r)=>{var n,i,a,o=r(387),s=r(2444),u=r(4032),c=r(3749),l=r(2674),h=r(9649),f=r(1179),d=r(8055),v=r(139),p=r(8552),y=r(8986),g=r(6921),m=r(2611),b=r(9415),w=r(5811),k=r(5936),x=r(8301),A=x.enforce,_=x.get,E=u.Int8Array,S=E&&E.prototype,O=u.Uint8ClampedArray,T=O&&O.prototype,P=E&&m(E),L=S&&m(S),M=Object.prototype,C=u.TypeError,j=w("toStringTag"),I=k("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",F=o&&!!b&&"Opera"!==f(u.opera),D=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},B=function(t){var e=m(t);if(l(e)){var r=_(e);return r&&h(r,R)?r[R]:B(e)}},G=function(t){if(!l(t))return!1;var e=f(t);return h(N,e)||h(W,e)};for(n in N)(a=(i=u[n])&&i.prototype)?A(a)[R]=i:F=!1;for(n in W)(a=(i=u[n])&&i.prototype)&&(A(a)[R]=i);if((!F||!c(P)||P===Function.prototype)&&(P=function(){throw new C("Incorrect invocation")},F))for(n in N)u[n]&&b(u[n],P);if((!F||!L||L===M)&&(L=P.prototype,F))for(n in N)u[n]&&b(u[n].prototype,L);if(F&&m(T)!==L&&b(T,L),s&&!h(L,j))for(n in D=!0,y(L,j,{configurable:!0,get:function(){return l(this)?this[I]:void 0}}),N)u[n]&&v(u[n],I,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:D&&I,aTypedArray:function(t){if(G(t))return t;throw new C("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||g(P,t)))return t;throw new C(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(s){if(r)for(var i in N){var a=u[i];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(r){try{a.prototype[t]=e}catch(t){}}}L[t]&&!r||p(L,t,r?e:F&&S[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(s){if(b){if(r)for(n in N)if((i=u[n])&&h(i,t))try{delete i[t]}catch(t){}if(P[t]&&!r)return;try{return p(P,t,r?e:F&&P[t]||e)}catch(t){}}for(n in N)!(i=u[n])||i[t]&&!r||p(i,t,e)}},getTypedArrayConstructor:B,isView:function(t){if(!l(t))return!1;var e=f(t);return"DataView"===e||h(N,e)||h(W,e)},isTypedArray:G,TypedArray:P,TypedArrayPrototype:L}},7226:(t,e,r)=>{var n=r(4032),i=r(2608),a=r(2444),o=r(387),s=r(2542),u=r(139),c=r(8986),l=r(4183),h=r(3455),f=r(3399),d=r(1211),v=r(5806),p=r(9088),y=r(3505),g=r(1306),m=r(2611),b=r(9415),w=r(9557),k=r(4224),x=r(3951),A=r(2924),_=r(6911),E=r(8301),S=s.PROPER,O=s.CONFIGURABLE,T="ArrayBuffer",P="DataView",L="prototype",M="Wrong index",C=E.getterFor(T),j=E.getterFor(P),I=E.set,R=n[T],F=R,D=F&&F[L],N=n[P],W=N&&N[L],B=Object.prototype,G=n.Array,H=n.RangeError,U=i(w),z=i([].reverse),V=g.pack,q=g.unpack,Y=function(t){return[255&t]},X=function(t){return[255&t,t>>8&255]},K=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Q=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return V(y(t),23,4)},$=function(t){return V(t,52,8)},Z=function(t,e,r){c(t[L],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var i=j(t),a=p(r),o=!!n;if(a+e>i.byteLength)throw new H(M);var s=i.bytes,u=a+i.byteOffset,c=k(s,u,u+e);return o?c:z(c)},et=function(t,e,r,n,i,a){var o=j(t),s=p(r),u=n(+i),c=!!a;if(s+e>o.byteLength)throw new H(M);for(var l=o.bytes,h=s+o.byteOffset,f=0;f<e;f++)l[h+f]=u[c?f:e-f-1]};if(o){var rt=S&&R.name!==T;h((function(){R(1)}))&&h((function(){new R(-1)}))&&!h((function(){return new R,new R(1.5),new R(NaN),1!==R.length||rt&&!O}))?rt&&O&&u(R,"name",T):((F=function(t){return f(this,D),x(new R(p(t)),this,F)})[L]=D,D.constructor=F,A(F,R)),b&&m(W)!==B&&b(W,B);var nt=new N(new F(2)),it=i(W.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||l(W,{setInt8:function(t,e){it(this,t,e<<24>>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else D=(F=function(t){f(this,D);var e=p(t);I(this,{type:T,bytes:U(G(e),0),byteLength:e}),a||(this.byteLength=e,this.detached=!1)})[L],W=(N=function(t,e,r){f(this,W),f(t,D);var n=C(t),i=n.byteLength,o=d(e);if(o<0||o>i)throw new H("Wrong offset");if(o+(r=void 0===r?i-o:v(r))>i)throw new H("Wrong length");I(this,{type:P,buffer:t,byteLength:r,byteOffset:o,bytes:n.bytes}),a||(this.buffer=t,this.byteLength=r,this.byteOffset=o)})[L],a&&(Z(F,"byteLength",C),Z(N,"buffer",j),Z(N,"byteLength",j),Z(N,"byteOffset",j)),l(W,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return q(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return q(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,Y,e)},setUint8:function(t,e){et(this,1,t,Y,e)},setInt16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,$,e,arguments.length>2&&arguments[2])}});_(F,T),_(N,P),t.exports={ArrayBuffer:F,DataView:N}},6677:(t,e,r)=>{var n=r(4165),i=r(9002),a=r(7878),o=r(1870),s=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=a(r),c=i(t,u),l=i(e,u),h=arguments.length>2?arguments[2]:void 0,f=s((void 0===h?u:i(h,u))-l,u-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);f-- >0;)l in r?r[c]=r[l]:o(r,c),c+=d,l+=d;return r}},9557:(t,e,r)=>{var n=r(4165),i=r(9002),a=r(7878);t.exports=function(t){for(var e=n(this),r=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,r),u=o>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>s;)e[s++]=t;return e}},3147:(t,e,r)=>{var n=r(5645).forEach,i=r(1814)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},7434:(t,e,r)=>{var n=r(7878);t.exports=function(t,e,r){for(var i=0,a=arguments.length>2?r:n(e),o=new t(a);a>i;)o[i]=e[i++];return o}},3948:(t,e,r)=>{var n=r(4864),i=r(3453),a=r(4165),o=r(3535),s=r(993),u=r(8413),c=r(7878),l=r(3552),h=r(6961),f=r(7507),d=Array;t.exports=function(t){var e=a(t),r=u(this),v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p;y&&(p=n(p,v>2?arguments[2]:void 0));var g,m,b,w,k,x,A=f(e),_=0;if(!A||this===d&&s(A))for(g=c(e),m=r?new this(g):d(g);g>_;_++)x=y?p(e[_],_):e[_],l(m,_,x);else for(m=r?new this:[],k=(w=h(e,A)).next;!(b=i(k,w)).done;_++)x=y?o(w,p,[b.value,_],!0):b.value,l(m,_,x);return m.length=_,m}},7921:(t,e,r)=>{var n=r(3637),i=r(9002),a=r(7878),o=function(t){return function(e,r,o){var s=n(e),u=a(s);if(0===u)return!t&&-1;var c,l=i(o,u);if(t&&r!=r){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},767:(t,e,r)=>{var n=r(4864),i=r(9455),a=r(4165),o=r(7878),s=function(t){var e=1===t;return function(r,s,u){for(var c,l=a(r),h=i(l),f=o(h),d=n(s,u);f-- >0;)if(d(c=h[f],f,l))switch(t){case 0:return c;case 1:return f}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},5645:(t,e,r)=>{var n=r(4864),i=r(2608),a=r(9455),o=r(4165),s=r(7878),u=r(1453),c=i([].push),l=function(t){var e=1===t,r=2===t,i=3===t,l=4===t,h=6===t,f=7===t,d=5===t||h;return function(v,p,y,g){for(var m,b,w=o(v),k=a(w),x=s(k),A=n(p,y),_=0,E=g||u,S=e?E(v,x):r||f?E(v,0):void 0;x>_;_++)if((d||_ in k)&&(b=A(m=k[_],_,w),t))if(e)S[_]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:c(S,m)}else switch(t){case 4:return!1;case 7:c(S,m)}return h?-1:i||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},3499:(t,e,r)=>{var n=r(3881),i=r(3637),a=r(1211),o=r(7878),s=r(1814),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),f=l||!h;t.exports=f?function(t){if(l)return n(c,this,arguments)||0;var e=i(this),r=o(e);if(0===r)return-1;var s=r-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},9077:(t,e,r)=>{var n=r(3455),i=r(5811),a=r(6415),o=i("species");t.exports=function(t){return a>=51||!n((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},1814:(t,e,r)=>{var n=r(3455);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},4734:(t,e,r)=>{var n=r(4186),i=r(4165),a=r(9455),o=r(7878),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,l){var h=i(e),f=a(h),d=o(h);if(n(r),0===d&&c<2)throw new s(u);var v=t?d-1:0,p=t?-1:1;if(c<2)for(;;){if(v in f){l=f[v],v+=p;break}if(v+=p,t?v<0:d<=v)throw new s(u)}for(;t?v>=0:d>v;v+=p)v in f&&(l=r(l,f[v],v,h));return l}};t.exports={left:c(!1),right:c(!0)}},7375:(t,e,r)=>{var n=r(2444),i=r(5448),a=TypeError,o=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!o(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4224:(t,e,r)=>{var n=r(2608);t.exports=n([].slice)},5272:(t,e,r)=>{var n=r(4224),i=Math.floor,a=function(t,e){var r=t.length;if(r<8)for(var o,s,u=1;u<r;){for(s=u,o=t[u];s&&e(t[s-1],o)>0;)t[s]=t[--s];s!==u++&&(t[s]=o)}else for(var c=i(r/2),l=a(n(t,0,c),e),h=a(n(t,c),e),f=l.length,d=h.length,v=0,p=0;v<f||p<d;)t[v+p]=v<f&&p<d?e(l[v],h[p])<=0?l[v++]:h[p++]:v<f?l[v++]:h[p++];return t};t.exports=a},2329:(t,e,r)=>{var n=r(5448),i=r(8413),a=r(2674),o=r(5811)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(i(e)&&(e===s||n(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?s:e}},1453:(t,e,r)=>{var n=r(2329);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6444:(t,e,r)=>{var n=r(7878);t.exports=function(t,e){for(var r=n(t),i=new e(r),a=0;a<r;a++)i[a]=t[r-a-1];return i}},920:(t,e,r)=>{var n=r(7878),i=r(1211),a=RangeError;t.exports=function(t,e,r,o){var s=n(t),u=i(r),c=u<0?s+u:u;if(c>=s||c<0)throw new a("Incorrect index");for(var l=new e(s),h=0;h<s;h++)l[h]=h===c?o:t[h];return l}},2996:t=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",i=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:i(r),i2cUrl:n,c2iUrl:i(n)}},3535:(t,e,r)=>{var n=r(7447),i=r(5235);t.exports=function(t,e,r,a){try{return a?e(n(r)[0],r[1]):e(r)}catch(e){i(t,"throw",e)}}},4348:(t,e,r)=>{var n=r(5811)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},t(a)}catch(t){}return r}},9872:(t,e,r)=>{var n=r(2608),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},1179:(t,e,r)=>{var n=r(3724),i=r(3749),a=r(9872),o=r(5811)("toStringTag"),s=Object,u="Arguments"===a(function(){return arguments}());t.exports=n?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),o))?r:u?a(e):"Object"===(n=a(e))&&i(e.callee)?"Arguments":n}},2042:(t,e,r)=>{var n=r(5304),i=r(8986),a=r(4183),o=r(4864),s=r(3399),u=r(6021),c=r(1804),l=r(656),h=r(9393),f=r(5409),d=r(2444),v=r(5227).fastKey,p=r(8301),y=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,r,l){var h=t((function(t,i){s(t,f),y(t,{type:e,index:n(null),first:null,last:null,size:0}),d||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:r})})),f=h.prototype,p=g(e),m=function(t,e,r){var n,i,a=p(t),o=b(t,e);return o?o.value=r:(a.last=o={index:i=v(e,!0),key:e,value:r,previous:n=a.last,next:null,removed:!1},a.first||(a.first=o),n&&(n.next=o),d?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},b=function(t,e){var r,n=p(t),i=v(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return a(f,{clear:function(){for(var t=p(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),d?t.size=0:this.size=0},delete:function(t){var e=this,r=p(e),n=b(e,t);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first===n&&(r.first=i),r.last===n&&(r.last=a),d?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=p(this),n=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),a(f,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&i(f,"size",{configurable:!0,get:function(){return p(this).size}}),h},setStrong:function(t,e,r){var n=e+" Iterator",i=g(e),a=g(n);l(t,e,(function(t,e){y(this,{type:n,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=a(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?h("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,h(void 0,!0))}),r?"entries":"values",!r,!0),f(e)}}},8153:(t,e,r)=>{var n=r(2608),i=r(4183),a=r(5227).getWeakData,o=r(3399),s=r(7447),u=r(6021),c=r(2674),l=r(1804),h=r(5645),f=r(9649),d=r(8301),v=d.set,p=d.getterFor,y=h.find,g=h.findIndex,m=n([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new k)},k=function(){this.entries=[]},x=function(t,e){return y(t.entries,(function(t){return t[0]===e}))};k.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var r=x(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,r,n){var h=t((function(t,i){o(t,d),v(t,{type:e,id:b++,frozen:null}),u(i)||l(i,t[n],{that:t,AS_ENTRIES:r})})),d=h.prototype,y=p(e),g=function(t,e,r){var n=y(t),i=a(s(e),!0);return!0===i?w(n).set(e,r):i[n.id]=r,t};return i(d,{delete:function(t){var e=y(this);if(!c(t))return!1;var r=a(t);return!0===r?w(e).delete(t):r&&f(r,e.id)&&delete r[e.id]},has:function(t){var e=y(this);if(!c(t))return!1;var r=a(t);return!0===r?w(e).has(t):r&&f(r,e.id)}}),i(d,r?{get:function(t){var e=y(this);if(c(t)){var r=a(t);if(!0===r)return w(e).get(t);if(r)return r[e.id]}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),h}}},9556:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(2608),o=r(5868),s=r(8552),u=r(5227),c=r(1804),l=r(3399),h=r(3749),f=r(6021),d=r(2674),v=r(3455),p=r(4348),y=r(6911),g=r(3951);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=m?"set":"add",k=i[t],x=k&&k.prototype,A=k,_={},E=function(t){var e=a(x[t]);s(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(o(t,!h(k)||!(b||x.forEach&&!v((function(){(new k).entries().next()})))))A=r.getConstructor(e,t,m,w),u.enable();else if(o(t,!0)){var S=new A,O=S[w](b?{}:-0,1)!==S,T=v((function(){S.has(1)})),P=p((function(t){new k(t)})),L=!b&&v((function(){for(var t=new k,e=5;e--;)t[w](e,e);return!t.has(-0)}));P||((A=e((function(t,e){l(t,x);var r=g(new k,t,A);return f(e)||c(e,r[w],{that:r,AS_ENTRIES:m}),r}))).prototype=x,x.constructor=A),(T||L)&&(E("delete"),E("has"),m&&E("get")),(L||O)&&E(w),b&&x.clear&&delete x.clear}return _[t]=A,n({global:!0,constructor:!0,forced:A!==k},_),y(A,t),b||r.setStrong(A,t,m),A}},2924:(t,e,r)=>{var n=r(9649),i=r(2919),a=r(1139),o=r(1601);t.exports=function(t,e,r){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var h=s[l];n(t,h)||r&&n(r,h)||u(t,h,c(e,h))}}},860:(t,e,r)=>{var n=r(5811)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},5139:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9393:t=>{t.exports=function(t,e){return{value:t,done:e}}},139:(t,e,r)=>{var n=r(2444),i=r(1601),a=r(4004);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},4004:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3552:(t,e,r)=>{var n=r(2444),i=r(1601),a=r(4004);t.exports=function(t,e,r){n?i.f(t,e,a(0,r)):t[e]=r}},952:(t,e,r)=>{var n=r(7447),i=r(3118),a=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new a("Incorrect hint");return i(this,t)}},8986:(t,e,r)=>{var n=r(1147),i=r(1601);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},8552:(t,e,r)=>{var n=r(3749),i=r(1601),a=r(1147),o=r(5801);t.exports=function(t,e,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(n(r)&&a(r,c,s),s.global)u?t[e]=r:o(e,r);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},4183:(t,e,r)=>{var n=r(8552);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},5801:(t,e,r)=>{var n=r(4032),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},1870:(t,e,r)=>{var n=r(8055),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+n(e)+" of "+n(t))}},2444:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7395:(t,e,r)=>{var n,i,a,o,s=r(4032),u=r(9685),c=r(6572),l=s.structuredClone,h=s.ArrayBuffer,f=s.MessageChannel,d=!1;if(c)d=function(t){l(t,{transfer:[t]})};else if(h)try{f||(n=u("worker_threads"))&&(f=n.MessageChannel),f&&(i=new f,a=new h(2),o=function(t){i.port1.postMessage(null,[t])},2===a.byteLength&&(o(a),0===a.byteLength&&(d=o)))}catch(t){}t.exports=d},5751:(t,e,r)=>{var n=r(4032),i=r(2674),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},9573:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},4090:t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},2760:t=>{t.exports={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}},4784:(t,e,r)=>{var n=r(5751)("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},5175:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7085:(t,e,r)=>{var n=r(7607).match(/firefox\\/(\\d+)/i);t.exports=!!n&&+n[1]},5123:(t,e,r)=>{var n=r(7607);t.exports=/MSIE|Trident/.test(n)},9081:(t,e,r)=>{var n=r(7607);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9352:(t,e,r)=>{var n=r(7607);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4529:(t,e,r)=>{var n=r(7351);t.exports="NODE"===n},628:(t,e,r)=>{var n=r(7607);t.exports=/web0s(?!.*chrome)/i.test(n)},7607:(t,e,r)=>{var n=r(4032).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},6415:(t,e,r)=>{var n,i,a=r(4032),o=r(7607),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\\/(\\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\\/(\\d+)/))&&(i=+n[1]),t.exports=i},1911:(t,e,r)=>{var n=r(7607).match(/AppleWebKit\\/(\\d+)\\./);t.exports=!!n&&+n[1]},7351:(t,e,r)=>{var n=r(4032),i=r(7607),a=r(9872),o=function(t){return i.slice(0,t.length)===t};t.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},3633:(t,e,r)=>{var n=r(2608),i=Error,a=n("".replace),o=String(new i("zxcasd").stack),s=/\\n\\s*at [^:]*:[^\\n]*/,u=s.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=a(t,s,"");return t}},4171:(t,e,r)=>{var n=r(139),i=r(3633),a=r(3427),o=Error.captureStackTrace;t.exports=function(t,e,r,s){a&&(o?o(t,e):n(t,"stack",i(r,s)))}},3427:(t,e,r)=>{var n=r(3455),i=r(4004);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2912:(t,e,r)=>{var n=r(2444),i=r(3455),a=r(7447),o=r(8363),s=Error.prototype.toString,u=i((function(){if(n){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==s.call(t))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));t.exports=u?function(){var t=a(this),e=o(t.name,"Error"),r=o(t.message);return e?r?e+": "+r:e:r}:s},5366:(t,e,r)=>{var n=r(4032),i=r(1139).f,a=r(139),o=r(8552),s=r(5801),u=r(2924),c=r(5868);t.exports=function(t,e){var r,l,h,f,d,v=t.target,p=t.global,y=t.stat;if(r=p?n:y?n[v]||s(v,{}):n[v]&&n[v].prototype)for(l in e){if(f=e[l],h=t.dontCallGetSet?(d=i(r,l))&&d.value:r[l],!c(p?l:v+(y?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&a(f,"sham",!0),o(r,l,f,t)}}},3455:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},4364:(t,e,r)=>{r(2823);var n=r(3453),i=r(8552),a=r(9867),o=r(3455),s=r(5811),u=r(139),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,r,h){var f=s(t),d=!o((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),v=d&&!o((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!d||!v||r){var p=/./[f],y=e(f,""[t],(function(t,e,r,i,o){var s=e.exec;return s===a||s===l.exec?d&&!o?{done:!0,value:n(p,e,r,i)}:{done:!0,value:n(t,r,e,i)}:{done:!1}}));i(String.prototype,t,y[0]),i(l,f,y[1])}h&&u(l[f],"sham",!0)}},2851:(t,e,r)=>{var n=r(5448),i=r(7878),a=r(9573),o=r(4864),s=function(t,e,r,u,c,l,h,f){for(var d,v,p=c,y=0,g=!!h&&o(h,f);y<u;)y in r&&(d=g?g(r[y],y,e):r[y],l>0&&n(d)?(v=i(d),p=s(t,e,d,v,p,l-1)-1):(a(p+1),t[p]=d),p++),y++;return p};t.exports=s},568:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},3881:(t,e,r)=>{var n=r(9128),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(a):function(){return o.apply(a,arguments)})},4864:(t,e,r)=>{var n=r(2116),i=r(4186),a=r(9128),o=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},9128:(t,e,r)=>{var n=r(3455);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2230:(t,e,r)=>{var n=r(2608),i=r(4186),a=r(2674),o=r(9649),s=r(4224),u=r(9128),c=Function,l=n([].concat),h=n([].join),f={};t.exports=u?c.bind:function(t){var e=i(this),r=e.prototype,n=s(arguments,1),u=function(){var r=l(n,s(arguments));return this instanceof u?function(t,e,r){if(!o(f,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";f[e]=c("C,a","return new C("+h(n,",")+")")}return f[e](t,r)}(e,r.length,r):e.apply(t,r)};return a(r)&&(u.prototype=r),u}},3453:(t,e,r)=>{var n=r(9128),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},2542:(t,e,r)=>{var n=r(2444),i=r(9649),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},5026:(t,e,r)=>{var n=r(2608),i=r(4186);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},2116:(t,e,r)=>{var n=r(9872),i=r(2608);t.exports=function(t){if("Function"===n(t))return i(t)}},2608:(t,e,r)=>{var n=r(9128),i=Function.prototype,a=i.call,o=n&&i.bind.bind(a,a);t.exports=n?o:function(t){return function(){return a.apply(t,arguments)}}},9685:(t,e,r)=>{var n=r(4032),i=r(4529);t.exports=function(t){if(i){try{return n.process.getBuiltinModule(t)}catch(t){}try{return Function(\'return require("\'+t+\'")\')()}catch(t){}}}},8711:(t,e,r)=>{var n=r(4032),i=r(3749);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},3447:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1750:(t,e,r)=>{var n=r(3453),i=r(7447),a=r(3447),o=r(7507);t.exports=function(t,e){e&&"string"==typeof t||i(t);var r=o(t);return a(i(void 0!==r?n(r,t):t))}},7507:(t,e,r)=>{var n=r(1179),i=r(8622),a=r(6021),o=r(5597),s=r(5811)("iterator");t.exports=function(t){if(!a(t))return i(t,s)||i(t,"@@iterator")||o[n(t)]}},6961:(t,e,r)=>{var n=r(3453),i=r(4186),a=r(7447),o=r(8055),s=r(7507),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(i(r))return a(n(r,t));throw new u(o(t)+" is not iterable")}},213:(t,e,r)=>{var n=r(2608),i=r(5448),a=r(3749),o=r(9872),s=r(687),u=n([].push);t.exports=function(t){if(a(t))return t;if(i(t)){for(var e=t.length,r=[],n=0;n<e;n++){var c=t[n];"string"==typeof c?u(r,c):"number"!=typeof c&&"Number"!==o(c)&&"String"!==o(c)||u(r,s(c))}var l=r.length,h=!0;return function(t,e){if(h)return h=!1,e;if(i(this))return e;for(var n=0;n<l;n++)if(r[n]===t)return e}}}},8622:(t,e,r)=>{var n=r(4186),i=r(6021);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},3885:(t,e,r)=>{var n=r(4186),i=r(7447),a=r(3453),o=r(1211),s=r(3447),u="Invalid size",c=RangeError,l=TypeError,h=Math.max,f=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(t){return a(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!=e)throw new l(u);var r=o(e);if(r<0)throw new c(u);return new f(t,r)}},3966:(t,e,r)=>{var n=r(2608),i=r(4165),a=Math.floor,o=n("".charAt),s=n("".replace),u=n("".slice),c=/\\$([$&\'`]|\\d{1,2}|<[^>]*>)/g,l=/\\$([$&\'`]|\\d{1,2})/g;t.exports=function(t,e,r,n,h,f){var d=r+t.length,v=n.length,p=l;return void 0!==h&&(h=i(h),p=c),s(f,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"\'":return u(e,d);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>v){var f=a(l/10);return 0===f?i:f<=v?void 0===n[f-1]?o(s,1):n[f-1]+o(s,1):i}c=n[l-1]}return void 0===c?"":c}))}},4032:function(t){var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9649:(t,e,r)=>{var n=r(2608),i=r(4165),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},2645:t=>{t.exports={}},4885:t=>{t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},3085:(t,e,r)=>{var n=r(8711);t.exports=n("document","documentElement")},8829:(t,e,r)=>{var n=r(2444),i=r(3455),a=r(5751);t.exports=!n&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},1306:t=>{var e=Array,r=Math.abs,n=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;t.exports={pack:function(t,s,u){var c,l,h,f=e(u),d=8*u-s-1,v=(1<<d)-1,p=v>>1,y=23===s?n(2,-24)-n(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;for((t=r(t))!=t||t===1/0?(l=t!=t?1:0,c=v):(c=i(a(t)/o),t*(h=n(2,-c))<1&&(c--,h*=2),(t+=c+p>=1?y/h:y*n(2,1-p))*h>=2&&(c++,h/=2),c+p>=v?(l=0,c=v):c+p>=1?(l=(t*h-1)*n(2,s),c+=p):(l=t*n(2,p-1)*n(2,s),c=0));s>=8;)f[m++]=255&l,l/=256,s-=8;for(c=c<<s|l,d+=s;d>0;)f[m++]=255&c,c/=256,d-=8;return f[m-1]|=128*g,f},unpack:function(t,e){var r,i=t.length,a=8*i-e-1,o=(1<<a)-1,s=o>>1,u=a-7,c=i-1,l=t[c--],h=127&l;for(l>>=7;u>0;)h=256*h+t[c--],u-=8;for(r=h&(1<<-u)-1,h>>=-u,u+=e;u>0;)r=256*r+t[c--],u-=8;if(0===h)h=1-s;else{if(h===o)return r?NaN:l?-1/0:1/0;r+=n(2,e),h-=s}return(l?-1:1)*r*n(2,h-e)}}},9455:(t,e,r)=>{var n=r(2608),i=r(3455),a=r(9872),o=Object,s=n("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===a(t)?s(t,""):o(t)}:o},3951:(t,e,r)=>{var n=r(3749),i=r(2674),a=r(9415);t.exports=function(t,e,r){var o,s;return a&&n(o=e.constructor)&&o!==r&&i(s=o.prototype)&&s!==r.prototype&&a(t,s),t}},6906:(t,e,r)=>{var n=r(2608),i=r(3749),a=r(2205),o=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},2483:(t,e,r)=>{var n=r(2674),i=r(139);t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},5227:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(2645),o=r(2674),s=r(9649),u=r(1601).f,c=r(3408),l=r(6442),h=r(8812),f=r(5936),d=r(568),v=!1,p=f("meta"),y=0,g=function(t){u(t,p,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},v=!0;var t=c.f,e=i([].splice),r={};r[p]=1,t(r).length&&(c.f=function(r){for(var n=t(r),i=0,a=n.length;i<a;i++)if(n[i]===p){e(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!h(t))return"F";if(!e)return"E";g(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!h(t))return!0;if(!e)return!1;g(t)}return t[p].weakData},onFreeze:function(t){return d&&v&&h(t)&&!s(t,p)&&g(t),t}};a[p]=!0},8301:(t,e,r)=>{var n,i,a,o=r(6206),s=r(4032),u=r(2674),c=r(139),l=r(9649),h=r(2205),f=r(2343),d=r(2645),v="Object already initialized",p=s.TypeError,y=s.WeakMap;if(o||h.state){var g=h.state||(h.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new p(v);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},a=function(t){return g.has(t)}}else{var m=f("state");d[m]=!0,n=function(t,e){if(l(t,m))throw new p(v);return e.facade=t,c(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},a=function(t){return l(t,m)}}t.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return r}}}},993:(t,e,r)=>{var n=r(5811),i=r(5597),a=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},5448:(t,e,r)=>{var n=r(9872);t.exports=Array.isArray||function(t){return"Array"===n(t)}},5415:(t,e,r)=>{var n=r(1179);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},3749:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8413:(t,e,r)=>{var n=r(2608),i=r(3455),a=r(3749),o=r(1179),s=r(8711),u=r(6906),c=function(){},l=s("Reflect","construct"),h=/^\\s*(?:class|function)\\b/,f=n(h.exec),d=!h.test(c),v=function(t){if(!a(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},p=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(h,u(t))}catch(t){return!0}};p.sham=!0,t.exports=!l||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?p:v},3007:(t,e,r)=>{var n=r(9649);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},5868:(t,e,r)=>{var n=r(3455),i=r(3749),a=/#|\\.prototype\\./,o=function(t,e){var r=u[s(t)];return r===l||r!==c&&(i(e)?n(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},2599:(t,e,r)=>{var n=r(2674),i=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&i(t)===t}},6021:t=>{t.exports=function(t){return null==t}},2674:(t,e,r)=>{var n=r(3749);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},4597:(t,e,r)=>{var n=r(2674);t.exports=function(t){return n(t)||null===t}},8507:t=>{t.exports=!1},6484:(t,e,r)=>{var n=r(2674),i=r(9872),a=r(5811)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===i(t))}},2277:(t,e,r)=>{var n=r(8711),i=r(3749),a=r(6921),o=r(4752),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&a(e.prototype,s(t))}},2939:(t,e,r)=>{var n=r(3453);t.exports=function(t,e,r){for(var i,a,o=r?t:t.iterator,s=t.next;!(i=n(s,o)).done;)if(void 0!==(a=e(i.value)))return a}},1804:(t,e,r)=>{var n=r(4864),i=r(3453),a=r(7447),o=r(8055),s=r(993),u=r(7878),c=r(6921),l=r(6961),h=r(7507),f=r(5235),d=TypeError,v=function(t,e){this.stopped=t,this.result=e},p=v.prototype;t.exports=function(t,e,r){var y,g,m,b,w,k,x,A=r&&r.that,_=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),T=n(e,A),P=function(t){return y&&f(y,"normal",t),new v(!0,t)},L=function(t){return _?(a(t),O?T(t[0],t[1],P):T(t[0],t[1])):O?T(t,P):T(t)};if(E)y=t.iterator;else if(S)y=t;else{if(!(g=h(t)))throw new d(o(t)+" is not iterable");if(s(g)){for(m=0,b=u(t);b>m;m++)if((w=L(t[m]))&&c(p,w))return w;return new v(!1)}y=l(t,g)}for(k=E?t.next:y.next;!(x=i(k,y)).done;){try{w=L(x.value)}catch(t){f(y,"throw",t)}if("object"==typeof w&&w&&c(p,w))return w}return new v(!1)}},5235:(t,e,r)=>{var n=r(3453),i=r(7447),a=r(8622);t.exports=function(t,e,r){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw r;if(s)throw o;return i(o),r}},282:(t,e,r)=>{var n=r(2857).IteratorPrototype,i=r(5304),a=r(4004),o=r(6911),s=r(5597),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=i(n,{next:a(+!c,r)}),o(t,l,!1,!0),s[l]=u,t}},2342:(t,e,r)=>{var n=r(3453),i=r(5304),a=r(139),o=r(4183),s=r(5811),u=r(8301),c=r(8622),l=r(2857).IteratorPrototype,h=r(9393),f=r(5235),d=s("toStringTag"),v="IteratorHelper",p="WrapForValidIterator",y=u.set,g=function(t){var e=u.getterFor(t?p:v);return o(i(l),{next:function(){var r=e(this);if(t)return r.nextHandler();try{var n=r.done?void 0:r.nextHandler();return h(n,r.done)}catch(t){throw r.done=!0,t}},return:function(){var r=e(this),i=r.iterator;if(r.done=!0,t){var a=c(i,"return");return a?n(a,i):h(void 0,!0)}if(r.inner)try{f(r.inner.iterator,"normal")}catch(t){return f(i,"throw",t)}return f(i,"normal"),h(void 0,!0)}})},m=g(!0),b=g(!1);a(b,d,"Iterator Helper"),t.exports=function(t,e){var r=function(r,n){n?(n.iterator=r.iterator,n.next=r.next):n=r,n.type=e?p:v,n.nextHandler=t,n.counter=0,n.done=!1,y(this,n)};return r.prototype=e?m:b,r}},656:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(8507),o=r(2542),s=r(3749),u=r(282),c=r(2611),l=r(9415),h=r(6911),f=r(139),d=r(8552),v=r(5811),p=r(5597),y=r(2857),g=o.PROPER,m=o.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,k=v("iterator"),x="keys",A="values",_="entries",E=function(){return this};t.exports=function(t,e,r,o,v,y,S){u(r,e,o);var O,T,P,L=function(t){if(t===v&&R)return R;if(!w&&t&&t in j)return j[t];switch(t){case x:case A:case _:return function(){return new r(this,t)}}return function(){return new r(this)}},M=e+" Iterator",C=!1,j=t.prototype,I=j[k]||j["@@iterator"]||v&&j[v],R=!w&&I||L(v),F="Array"===e&&j.entries||I;if(F&&(O=c(F.call(new t)))!==Object.prototype&&O.next&&(a||c(O)===b||(l?l(O,b):s(O[k])||d(O,k,E)),h(O,M,!0,!0),a&&(p[M]=E)),g&&v===A&&I&&I.name!==A&&(!a&&m?f(j,"name",A):(C=!0,R=function(){return i(I,this)})),v)if(T={values:L(A),keys:y?R:L(x),entries:L(_)},S)for(P in T)(w||C||!(P in j))&&d(j,P,T[P]);else n({target:e,proto:!0,forced:w||C},T);return a&&!S||j[k]===R||d(j,k,R,{name:v}),p[e]=R,T}},4009:(t,e,r)=>{var n=r(3453),i=r(4186),a=r(7447),o=r(3447),s=r(2342),u=r(3535),c=s((function(){var t=this.iterator,e=a(n(this.next,t));if(!(this.done=!!e.done))return u(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return a(this),i(t),new c(o(this),{mapper:t})}},2857:(t,e,r)=>{var n,i,a,o=r(3455),s=r(3749),u=r(2674),c=r(5304),l=r(2611),h=r(8552),f=r(5811),d=r(8507),v=f("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=l(l(a)))!==Object.prototype&&(n=i):p=!0),!u(n)||o((function(){var t={};return n[v].call(t)!==t}))?n={}:d&&(n=c(n)),s(n[v])||h(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},5597:t=>{t.exports={}},7878:(t,e,r)=>{var n=r(5806);t.exports=function(t){return n(t.length)}},1147:(t,e,r)=>{var n=r(2608),i=r(3455),a=r(3749),o=r(9649),s=r(2444),u=r(2542).CONFIGURABLE,c=r(6906),l=r(8301),h=l.enforce,f=l.get,d=String,v=Object.defineProperty,p=n("".slice),y=n("".replace),g=n([].join),m=s&&!i((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===p(d(e),0,7)&&(e="["+y(d(e),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?v(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&o(r,"arity")&&t.length!==r.arity&&v(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return o(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return a(this)&&f(this).source||c(this)}),"toString")},9676:(t,e,r)=>{var n=r(550),i=Math.abs,a=2220446049250313e-31,o=1/a;t.exports=function(t,e,r,s){var u=+t,c=i(u),l=n(u);if(c<s)return l*function(t){return t+o-o}(c/s/e)*s*e;var h=(1+e/a)*c,f=h-(h-c);return f>r||f!=f?l*(1/0):l*f}},3505:(t,e,r)=>{var n=r(9676);t.exports=Math.fround||function(t){return n(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},550:t=>{t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},2789:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},755:(t,e,r)=>{var n,i,a,o,s,u=r(4032),c=r(5725),l=r(4864),h=r(1369).set,f=r(3529),d=r(9352),v=r(9081),p=r(628),y=r(4529),g=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,w=u.Promise,k=c("queueMicrotask");if(!k){var x=new f,A=function(){var t,e;for(y&&(t=b.domain)&&t.exit();e=x.get();)try{e()}catch(t){throw x.head&&n(),t}t&&t.enter()};d||y||p||!g||!m?!v&&w&&w.resolve?((o=w.resolve(void 0)).constructor=w,s=l(o.then,o),n=function(){s(A)}):y?n=function(){b.nextTick(A)}:(h=l(h,u),n=function(){h(A)}):(i=!0,a=m.createTextNode(""),new g(A).observe(a,{characterData:!0}),n=function(){a.data=i=!i}),k=function(t){x.head||n(),x.add(t)}}t.exports=k},9371:(t,e,r)=>{var n=r(4186),i=TypeError,a=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new i("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new a(t)}},8363:(t,e,r)=>{var n=r(687);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},821:t=>{var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},3631:(t,e,r)=>{var n=r(6484),i=TypeError;t.exports=function(t){if(n(t))throw new i("The method doesn\'t accept regular expressions");return t}},8069:(t,e,r)=>{var n=r(2444),i=r(2608),a=r(3453),o=r(3455),s=r(496),u=r(6005),c=r(9221),l=r(4165),h=r(9455),f=Object.assign,d=Object.defineProperty,v=i([].concat);t.exports=!f||o((function(){if(n&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach((function(t){e[t]=t})),7!==f({},t)[r]||s(f({},e)).join("")!==i}))?function(t,e){for(var r=l(t),i=arguments.length,o=1,f=u.f,d=c.f;i>o;)for(var p,y=h(arguments[o++]),g=f?v(s(y),f(y)):s(y),m=g.length,b=0;m>b;)p=g[b++],n&&!a(d,y,p)||(r[p]=y[p]);return r}:f},5304:(t,e,r)=>{var n,i=r(7447),a=r(9217),o=r(5175),s=r(2645),u=r(3085),c=r(5751),l=r(2343),h="prototype",f="script",d=l("IE_PROTO"),v=function(){},p=function(t){return"<"+f+">"+t+"</"+f+">"},y=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=c("iframe"),r="java"+f+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):y(n);for(var i=o.length;i--;)delete g[h][o[i]];return g()};s[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[h]=i(t),r=new v,v[h]=null,r[d]=t):r=g(),void 0===e?r:a.f(r,e)}},9217:(t,e,r)=>{var n=r(2444),i=r(782),a=r(1601),o=r(7447),s=r(3637),u=r(496);e.f=n&&!i?Object.defineProperties:function(t,e){o(t);for(var r,n=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,r=i[l++],n[r]);return t}},1601:(t,e,r)=>{var n=r(2444),i=r(8829),a=r(782),o=r(7447),s=r(6201),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=n?a?function(t,e,r){if(o(t),e=s(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=s(e),o(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1139:(t,e,r)=>{var n=r(2444),i=r(3453),a=r(9221),o=r(4004),s=r(3637),u=r(6201),c=r(9649),l=r(8829),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},6442:(t,e,r)=>{var n=r(9872),i=r(3637),a=r(3408).f,o=r(4224),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===n(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},3408:(t,e,r)=>{var n=r(2468),i=r(5175).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},6005:(t,e)=>{e.f=Object.getOwnPropertySymbols},2611:(t,e,r)=>{var n=r(9649),i=r(3749),a=r(4165),o=r(2343),s=r(5139),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(n(e,u))return e[u];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},8812:(t,e,r)=>{var n=r(3455),i=r(2674),a=r(9872),o=r(7060),s=Object.isExtensible,u=n((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&(!o||"ArrayBuffer"!==a(t))&&(!s||s(t))}:s},6921:(t,e,r)=>{var n=r(2608);t.exports=n({}.isPrototypeOf)},2468:(t,e,r)=>{var n=r(2608),i=r(9649),a=r(3637),o=r(7921).indexOf,s=r(2645),u=n([].push);t.exports=function(t,e){var r,n=a(t),c=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&u(l,r);for(;e.length>c;)i(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},496:(t,e,r)=>{var n=r(2468),i=r(5175);t.exports=Object.keys||function(t){return n(t,i)}},9221:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9415:(t,e,r)=>{var n=r(5026),i=r(2674),a=r(7222),o=r(7330);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return a(r),o(n),i(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},8885:(t,e,r)=>{var n=r(2444),i=r(3455),a=r(2608),o=r(2611),s=r(496),u=r(3637),c=a(r(9221).f),l=a([].push),h=n&&i((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),f=function(t){return function(e){for(var r,i=u(e),a=s(i),f=h&&null===o(i),d=a.length,v=0,p=[];d>v;)r=a[v++],n&&!(f?r in i:c(i,r))||l(p,t?[r,i[r]]:i[r]);return p}};t.exports={entries:f(!0),values:f(!1)}},3003:(t,e,r)=>{var n=r(3724),i=r(1179);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},3118:(t,e,r)=>{var n=r(3453),i=r(3749),a=r(2674),o=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&i(r=t.toString)&&!a(s=n(r,t)))return s;if(i(r=t.valueOf)&&!a(s=n(r,t)))return s;if("string"!==e&&i(r=t.toString)&&!a(s=n(r,t)))return s;throw new o("Can\'t convert object to primitive value")}},2919:(t,e,r)=>{var n=r(8711),i=r(2608),a=r(3408),o=r(6005),s=r(7447),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(s(t)),r=o.f;return r?u(e,r(t)):e}},1448:(t,e,r)=>{var n=r(2608),i=r(9649),a=SyntaxError,o=parseInt,s=String.fromCharCode,u=n("".charAt),c=n("".slice),l=n(/./.exec),h={\'\\\\"\':\'"\',"\\\\\\\\":"\\\\","\\\\/":"/","\\\\b":"\\b","\\\\f":"\\f","\\\\n":"\\n","\\\\r":"\\r","\\\\t":"\\t"},f=/^[\\da-f]{4}$/i,d=/^[\\u0000-\\u001F]$/;t.exports=function(t,e){for(var r=!0,n="";e<t.length;){var v=u(t,e);if("\\\\"===v){var p=c(t,e,e+2);if(i(h,p))n+=h[p],e+=2;else{if("\\\\u"!==p)throw new a(\'Unknown escape sequence: "\'+p+\'"\');var y=c(t,e+=2,e+4);if(!l(f,y))throw new a("Bad Unicode escape at: "+e);n+=s(o(y,16)),e+=4}}else{if(\'"\'===v){r=!1,e++;break}if(l(d,v))throw new a("Bad control character in string literal at: "+e);n+=v,e++}}if(r)throw new a("Unterminated string at: "+e);return{value:n,end:e}}},8799:(t,e,r)=>{var n=r(4032);t.exports=n},6703:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9492:(t,e,r)=>{var n=r(4032),i=r(5318),a=r(3749),o=r(5868),s=r(6906),u=r(5811),c=r(7351),l=r(8507),h=r(6415),f=i&&i.prototype,d=u("species"),v=!1,p=a(n.PromiseRejectionEvent),y=o("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(l&&(!f.catch||!f.finally))return!0;if(!h||h<51||!/native code/.test(t)){var r=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[d]=n,!(v=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||p)}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:p,SUBCLASSING:v}},5318:(t,e,r)=>{var n=r(4032);t.exports=n.Promise},1774:(t,e,r)=>{var n=r(7447),i=r(2674),a=r(9371);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},2041:(t,e,r)=>{var n=r(5318),i=r(4348),a=r(9492).CONSTRUCTOR;t.exports=a||!i((function(t){n.all(t).then(void 0,(function(){}))}))},2848:(t,e,r)=>{var n=r(1601).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},3529:t=>{var e=function(){this.head=null,this.tail=null};e.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}},t.exports=e},4410:(t,e,r)=>{var n=r(3453),i=r(7447),a=r(3749),o=r(9872),s=r(9867),u=TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var c=n(r,t,e);return null!==c&&i(c),c}if("RegExp"===o(t))return n(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},9867:(t,e,r)=>{var n,i,a=r(3453),o=r(2608),s=r(687),u=r(747),c=r(1837),l=r(4593),h=r(5304),f=r(8301).get,d=r(3651),v=r(9502),p=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=o("".charAt),b=o("".indexOf),w=o("".replace),k=o("".slice),x=(i=/b*/g,a(y,n=/a/,"a"),a(y,i,"a"),0!==n.lastIndex||0!==i.lastIndex),A=c.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||A||d||v)&&(g=function(t){var e,r,n,i,o,c,l,d=this,v=f(d),E=s(t),S=v.raw;if(S)return S.lastIndex=d.lastIndex,e=a(g,S,E),d.lastIndex=S.lastIndex,e;var O=v.groups,T=A&&d.sticky,P=a(u,d),L=d.source,M=0,C=E;if(T&&(P=w(P,"y",""),-1===b(P,"g")&&(P+="g"),C=k(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\\n"!==m(E,d.lastIndex-1))&&(L="(?: "+L+")",C=" "+C,M++),r=new RegExp("^(?:"+L+")",P)),_&&(r=new RegExp("^"+L+"$(?!\\\\s)",P)),x&&(n=d.lastIndex),i=a(y,T?r:d,C),T?i?(i.input=k(i.input,M),i[0]=k(i[0],M),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:n),_&&i&&i.length>1&&a(p,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&O)for(i.groups=c=h(null),o=0;o<O.length;o++)c[(l=O[o])[0]]=i[l[1]];return i}),t.exports=g},747:(t,e,r)=>{var n=r(7447);t.exports=function(){var t=n(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}},4554:(t,e,r)=>{var n=r(3453),i=r(9649),a=r(6921),o=r(747),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!a(s,t)?e:n(o,t)}},1837:(t,e,r)=>{var n=r(3455),i=r(4032).RegExp,a=n((function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),o=a||n((function(){return!i("a","y").sticky})),s=a||n((function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},3651:(t,e,r)=>{var n=r(3455),i=r(4032).RegExp;t.exports=n((function(){var t=i(".","s");return!(t.dotAll&&t.test("\\n")&&"s"===t.flags)}))},9502:(t,e,r)=>{var n=r(3455),i=r(4032).RegExp;t.exports=n((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},7222:(t,e,r)=>{var n=r(6021),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can\'t call method on "+t);return t}},5725:(t,e,r)=>{var n=r(4032),i=r(2444),a=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return n[t];var e=a(n,t);return e&&e.value}},8550:(t,e,r)=>{var n=r(418),i=r(5605),a=n.Set,o=n.add;t.exports=function(t){var e=new a;return i(t,(function(t){o(e,t)})),e}},4656:(t,e,r)=>{var n=r(4376),i=r(418),a=r(8550),o=r(82),s=r(3885),u=r(5605),c=r(2939),l=i.has,h=i.remove;t.exports=function(t){var e=n(this),r=s(t),i=a(e);return o(e)<=r.size?u(e,(function(t){r.includes(t)&&h(i,t)})):c(r.getIterator(),(function(t){l(e,t)&&h(i,t)})),i}},418:(t,e,r)=>{var n=r(2608),i=Set.prototype;t.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},2446:(t,e,r)=>{var n=r(4376),i=r(418),a=r(82),o=r(3885),s=r(5605),u=r(2939),c=i.Set,l=i.add,h=i.has;t.exports=function(t){var e=n(this),r=o(t),i=new c;return a(e)>r.size?u(r.getIterator(),(function(t){h(e,t)&&l(i,t)})):s(e,(function(t){r.includes(t)&&l(i,t)})),i}},4545:(t,e,r)=>{var n=r(4376),i=r(418).has,a=r(82),o=r(3885),s=r(5605),u=r(2939),c=r(5235);t.exports=function(t){var e=n(this),r=o(t);if(a(e)<=r.size)return!1!==s(e,(function(t){if(r.includes(t))return!1}),!0);var l=r.getIterator();return!1!==u(l,(function(t){if(i(e,t))return c(l,"normal",!1)}))}},7918:(t,e,r)=>{var n=r(4376),i=r(82),a=r(5605),o=r(3885);t.exports=function(t){var e=n(this),r=o(t);return!(i(e)>r.size)&&!1!==a(e,(function(t){if(!r.includes(t))return!1}),!0)}},6111:(t,e,r)=>{var n=r(4376),i=r(418).has,a=r(82),o=r(3885),s=r(2939),u=r(5235);t.exports=function(t){var e=n(this),r=o(t);if(a(e)<r.size)return!1;var c=r.getIterator();return!1!==s(c,(function(t){if(!i(e,t))return u(c,"normal",!1)}))}},5605:(t,e,r)=>{var n=r(2608),i=r(2939),a=r(418),o=a.Set,s=a.proto,u=n(s.forEach),c=n(s.keys),l=c(new o).next;t.exports=function(t,e,r){return r?i({iterator:c(t),next:l},e):u(t,e)}},1716:(t,e,r)=>{var n=r(8711),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=n("Set");try{(new e)[t](i(0));try{return(new e)[t](i(-1)),!1}catch(t){return!0}}catch(t){return!1}}},82:(t,e,r)=>{var n=r(5026),i=r(418);t.exports=n(i.proto,"size","get")||function(t){return t.size}},5409:(t,e,r)=>{var n=r(8711),i=r(8986),a=r(5811),o=r(2444),s=a("species");t.exports=function(t){var e=n(t);o&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},4498:(t,e,r)=>{var n=r(4376),i=r(418),a=r(8550),o=r(3885),s=r(2939),u=i.add,c=i.has,l=i.remove;t.exports=function(t){var e=n(this),r=o(t).getIterator(),i=a(e);return s(r,(function(t){c(e,t)?l(i,t):u(i,t)})),i}},6911:(t,e,r)=>{var n=r(1601).f,i=r(9649),a=r(5811)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!i(t,a)&&n(t,a,{configurable:!0,value:e})}},9500:(t,e,r)=>{var n=r(4376),i=r(418).add,a=r(8550),o=r(3885),s=r(2939);t.exports=function(t){var e=n(this),r=o(t).getIterator(),u=a(e);return s(r,(function(t){i(u,t)})),u}},2343:(t,e,r)=>{var n=r(4593),i=r(5936),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},2205:(t,e,r)=>{var n=r(8507),i=r(4032),a=r(5801),o="__core-js_shared__",s=t.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.38.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},4593:(t,e,r)=>{var n=r(2205);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},1365:(t,e,r)=>{var n=r(7447),i=r(9052),a=r(6021),o=r(5811)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||a(r=n(s)[o])?e:i(r)}},6903:(t,e,r)=>{var n=r(2608),i=r(1211),a=r(687),o=r(7222),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,h=a(o(e)),f=i(r),d=h.length;return f<0||f>=d?t?"":void 0:(n=u(h,f))<55296||n>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?t?s(h,f):n:t?c(h,f,f+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4903:(t,e,r)=>{var n=r(7607);t.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(n)},6437:(t,e,r)=>{var n=r(2608),i=r(5806),a=r(687),o=r(6605),s=r(7222),u=n(o),c=n("".slice),l=Math.ceil,h=function(t){return function(e,r,n){var o,h,f=a(s(e)),d=i(r),v=f.length,p=void 0===n?" ":a(n);return d<=v||""===p?f:((h=u(p,l((o=d-v)/p.length))).length>o&&(h=c(h,0,o)),t?f+h:h+f)}};t.exports={start:h(!1),end:h(!0)}},5141:(t,e,r)=>{var n=r(2608),i=2147483647,a=/[^\\0-\\u007E]/,o=/[.\\u3002\\uFF0E\\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=n(o.exec),l=Math.floor,h=String.fromCharCode,f=n("".charCodeAt),d=n([].join),v=n([].push),p=n("".replace),y=n("".split),g=n("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,r){var n=0;for(t=r?l(t/700):t>>1,t+=l(t/e);t>455;)t=l(t/35),n+=36;return l(n+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=f(t,r++);if(i>=55296&&i<=56319&&r<n){var a=f(t,r++);56320==(64512&a)?v(e,((1023&i)<<10)+(1023&a)+65536):(v(e,i),r--)}else v(e,i)}return e}(t);var r,n,a=t.length,o=128,c=0,p=72;for(r=0;r<t.length;r++)(n=t[r])<128&&v(e,h(n));var y=e.length,g=y;for(y&&v(e,"-");g<a;){var w=i;for(r=0;r<t.length;r++)(n=t[r])>=o&&n<w&&(w=n);var k=g+1;if(w-o>l((i-c)/k))throw new u(s);for(c+=(w-o)*k,o=w,r=0;r<t.length;r++){if((n=t[r])<o&&++c>i)throw new u(s);if(n===o){for(var x=c,A=36;;){var _=A<=p?1:A>=p+26?26:A-p;if(x<_)break;var E=x-_,S=36-_;v(e,h(m(_+E%S))),x=l(E/S),A+=36}v(e,h(m(x))),p=b(c,k,g===y),c=0,g++}}c++,o++}return d(e,"")};t.exports=function(t){var e,r,n=[],i=y(p(g(t),o,"."),".");for(e=0;e<i.length;e++)r=i[e],v(n,c(a,r)?"xn--"+w(r):r);return d(n,".")}},6605:(t,e,r)=>{var n=r(1211),i=r(687),a=r(7222),o=RangeError;t.exports=function(t){var e=i(a(this)),r="",s=n(t);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(r+=e);return r}},2882:(t,e,r)=>{var n=r(9418).end,i=r(3794);t.exports=i("trimEnd")?function(){return n(this)}:"".trimEnd},3794:(t,e,r)=>{var n=r(2542).PROPER,i=r(3455),a=r(2284);t.exports=function(t){return i((function(){return!!a[t]()||"​᠎"!=="​᠎"[t]()||n&&a[t].name!==t}))}},9418:(t,e,r)=>{var n=r(2608),i=r(7222),a=r(687),o=r(2284),s=n("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(t){return function(e){var r=a(i(e));return 1&t&&(r=s(r,u,"")),2&t&&(r=s(r,c,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},6572:(t,e,r)=>{var n=r(4032),i=r(3455),a=r(6415),o=r(7351),s=n.structuredClone;t.exports=!!s&&!i((function(){if("DENO"===o&&a>92||"NODE"===o&&a>94||"BROWSER"===o&&a>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},6943:(t,e,r)=>{var n=r(6415),i=r(3455),a=r(4032).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3042:(t,e,r)=>{var n=r(3453),i=r(8711),a=r(5811),o=r(8552);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,s=a("toPrimitive");e&&!e[s]&&o(e,s,(function(t){return n(r,this)}),{arity:1})}},8592:(t,e,r)=>{var n=r(6943);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},1369:(t,e,r)=>{var n,i,a,o,s=r(4032),u=r(3881),c=r(4864),l=r(3749),h=r(9649),f=r(3455),d=r(3085),v=r(4224),p=r(5751),y=r(7900),g=r(9352),m=r(4529),b=s.setImmediate,w=s.clearImmediate,k=s.process,x=s.Dispatch,A=s.Function,_=s.MessageChannel,E=s.String,S=0,O={},T="onreadystatechange";f((function(){n=s.location}));var P=function(t){if(h(O,t)){var e=O[t];delete O[t],e()}},L=function(t){return function(){P(t)}},M=function(t){P(t.data)},C=function(t){s.postMessage(E(t),n.protocol+"//"+n.host)};b&&w||(b=function(t){y(arguments.length,1);var e=l(t)?t:A(t),r=v(arguments,1);return O[++S]=function(){u(e,void 0,r)},i(S),S},w=function(t){delete O[t]},m?i=function(t){k.nextTick(L(t))}:x&&x.now?i=function(t){x.now(L(t))}:_&&!g?(o=(a=new _).port2,a.port1.onmessage=M,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(C)?(i=C,s.addEventListener("message",M,!1)):i=T in p("script")?function(t){d.appendChild(p("script"))[T]=function(){d.removeChild(this),P(t)}}:function(t){setTimeout(L(t),0)}),t.exports={set:b,clear:w}},9002:(t,e,r)=>{var n=r(1211),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},1198:(t,e,r)=>{var n=r(8921),i=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new i("Can\'t convert number to bigint");return BigInt(e)}},9088:(t,e,r)=>{var n=r(1211),i=r(5806),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw new a("Wrong length or index");return r}},3637:(t,e,r)=>{var n=r(9455),i=r(7222);t.exports=function(t){return n(i(t))}},1211:(t,e,r)=>{var n=r(2789);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},5806:(t,e,r)=>{var n=r(1211),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},4165:(t,e,r)=>{var n=r(7222),i=Object;t.exports=function(t){return i(n(t))}},8402:(t,e,r)=>{var n=r(5590),i=RangeError;t.exports=function(t,e){var r=n(t);if(r%e)throw new i("Wrong offset");return r}},5590:(t,e,r)=>{var n=r(1211),i=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new i("The argument can\'t be less than 0");return e}},8921:(t,e,r)=>{var n=r(3453),i=r(2674),a=r(2277),o=r(8622),s=r(3118),u=r(5811),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!i(r)||a(r))return r;throw new c("Can\'t convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6201:(t,e,r)=>{var n=r(8921),i=r(2277);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},3724:(t,e,r)=>{var n={};n[r(5811)("toStringTag")]="z",t.exports="[object z]"===String(n)},687:(t,e,r)=>{var n=r(1179),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},5215:t=>{var e=Math.round;t.exports=function(t){var r=e(t);return r<0?0:r>255?255:255&r}},8055:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},8975:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3453),o=r(2444),s=r(949),u=r(4356),c=r(7226),l=r(3399),h=r(4004),f=r(139),d=r(2599),v=r(5806),p=r(9088),y=r(8402),g=r(5215),m=r(6201),b=r(9649),w=r(1179),k=r(2674),x=r(2277),A=r(5304),_=r(6921),E=r(9415),S=r(3408).f,O=r(2291),T=r(5645).forEach,P=r(5409),L=r(8986),M=r(1601),C=r(1139),j=r(7434),I=r(8301),R=r(3951),F=I.get,D=I.set,N=I.enforce,W=M.f,B=C.f,G=i.RangeError,H=c.ArrayBuffer,U=H.prototype,z=c.DataView,V=u.NATIVE_ARRAY_BUFFER_VIEWS,q=u.TYPED_ARRAY_TAG,Y=u.TypedArray,X=u.TypedArrayPrototype,K=u.isTypedArray,Q="BYTES_PER_ELEMENT",J="Wrong length",$=function(t,e){L(t,e,{configurable:!0,get:function(){return F(this)[e]}})},Z=function(t){var e;return _(U,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return K(t)&&!x(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=m(e),tt(t,e)?h(2,t[e]):B(t,e)},rt=function(t,e,r){return e=m(e),!(tt(t,e)&&k(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?W(t,e,r):(t[e]=r.value,t)};o?(V||(C.f=et,M.f=rt,$(X,"buffer"),$(X,"byteOffset"),$(X,"byteLength"),$(X,"length")),n({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:et,defineProperty:rt}),t.exports=function(t,e,r){var o=t.match(/\\d+/)[0]/8,u=t+(r?"Clamped":"")+"Array",c="get"+t,h="set"+t,d=i[u],m=d,b=m&&m.prototype,w={},x=function(t,e){W(t,e,{get:function(){return function(t,e){var r=F(t);return r.view[c](e*o+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var i=F(t);i.view[h](e*o+i.byteOffset,r?g(n):n,!0)}(this,e,t)},enumerable:!0})};V?s&&(m=e((function(t,e,r,n){return l(t,b),R(k(e)?Z(e)?void 0!==n?new d(e,y(r,o),n):void 0!==r?new d(e,y(r,o)):new d(e):K(e)?j(m,e):a(O,m,e):new d(p(e)),t,m)})),E&&E(m,Y),T(S(d),(function(t){t in m||f(m,t,d[t])})),m.prototype=b):(m=e((function(t,e,r,n){l(t,b);var i,s,u,c=0,h=0;if(k(e)){if(!Z(e))return K(e)?j(m,e):a(O,m,e);i=e,h=y(r,o);var f=e.byteLength;if(void 0===n){if(f%o)throw new G(J);if((s=f-h)<0)throw new G(J)}else if((s=v(n)*o)+h>f)throw new G(J);u=s/o}else u=p(e),i=new H(s=u*o);for(D(t,{buffer:i,byteOffset:h,byteLength:s,length:u,view:new z(i)});c<u;)x(t,c++)})),E&&E(m,Y),b=m.prototype=A(X)),b.constructor!==m&&f(b,"constructor",m),N(b).TypedArrayConstructor=m,q&&f(b,q,u);var _=m!==d;w[u]=m,n({global:!0,constructor:!0,forced:_,sham:!V},w),Q in m||f(m,Q,o),Q in b||f(b,Q,o),P(u)}):t.exports=function(){}},949:(t,e,r)=>{var n=r(4032),i=r(3455),a=r(4348),o=r(4356).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,u=n.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},85:(t,e,r)=>{var n=r(7434),i=r(580);t.exports=function(t,e){return n(i(t),e)}},2291:(t,e,r)=>{var n=r(4864),i=r(3453),a=r(9052),o=r(4165),s=r(7878),u=r(6961),c=r(7507),l=r(993),h=r(5415),f=r(4356).aTypedArrayConstructor,d=r(1198);t.exports=function(t){var e,r,v,p,y,g,m,b,w=a(this),k=o(t),x=arguments.length,A=x>1?arguments[1]:void 0,_=void 0!==A,E=c(k);if(E&&!l(E))for(b=(m=u(k,E)).next,k=[];!(g=i(b,m)).done;)k.push(g.value);for(_&&x>2&&(A=n(A,arguments[2])),r=s(k),v=new(f(w))(r),p=h(v),e=0;r>e;e++)y=_?A(k[e],e):k[e],v[e]=p?d(y):+y;return v}},580:(t,e,r)=>{var n=r(4356),i=r(1365),a=n.aTypedArrayConstructor,o=n.getTypedArrayConstructor;t.exports=function(t){return a(i(t,o(t)))}},5936:(t,e,r)=>{var n=r(2608),i=0,a=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},8200:(t,e,r)=>{var n=r(3455),i=r(5811),a=r(2444),o=r(8507),s=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),o&&(!t.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!e.size&&(o||!a)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}))},4752:(t,e,r)=>{var n=r(6943);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},782:(t,e,r)=>{var n=r(2444),i=r(3455);t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7900:t=>{var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},6206:(t,e,r)=>{var n=r(4032),i=r(3749),a=n.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},5343:(t,e,r)=>{var n=r(8799),i=r(9649),a=r(4559),o=r(1601).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},4559:(t,e,r)=>{var n=r(5811);e.f=n},5811:(t,e,r)=>{var n=r(4032),i=r(4593),a=r(9649),o=r(5936),s=r(6943),u=r(4752),c=n.Symbol,l=i("wks"),h=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:h("Symbol."+t)),l[t]}},2284:t=>{t.exports="\\t\\n\\v\\f\\r                　\\u2028\\u2029\\ufeff"},9257:(t,e,r)=>{var n=r(8711),i=r(9649),a=r(139),o=r(6921),s=r(9415),u=r(2924),c=r(2848),l=r(3951),h=r(8363),f=r(2483),d=r(4171),v=r(2444),p=r(8507);t.exports=function(t,e,r,y){var g="stackTraceLimit",m=y?2:1,b=t.split("."),w=b[b.length-1],k=n.apply(null,b);if(k){var x=k.prototype;if(!p&&i(x,"cause")&&delete x.cause,!r)return k;var A=n("Error"),_=e((function(t,e){var r=h(y?e:t,void 0),n=y?new k(t):new k;return void 0!==r&&a(n,"message",r),d(n,_,n.stack,2),this&&o(x,this)&&l(n,this,_),arguments.length>m&&f(n,arguments[m]),n}));if(_.prototype=x,"Error"!==w?s?s(_,A):u(_,A,{name:!0}):v&&g in k&&(c(_,k,g),c(_,k,"prepareStackTrace")),u(_,k),!p)try{x.name!==w&&a(x,"name",w),x.constructor=_}catch(t){}return _}}},5015:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(7226),o=r(5409),s="ArrayBuffer",u=a[s];n({global:!0,constructor:!0,forced:i[s]!==u},{ArrayBuffer:u}),o(s)},9261:(t,e,r)=>{var n=r(2444),i=r(8986),a=r(8102),o=ArrayBuffer.prototype;n&&!("detached"in o)&&i(o,"detached",{configurable:!0,get:function(){return a(this)}})},6209:(t,e,r)=>{var n=r(5366),i=r(2116),a=r(3455),o=r(7226),s=r(7447),u=r(9002),c=r(5806),l=r(1365),h=o.ArrayBuffer,f=o.DataView,d=f.prototype,v=i(h.prototype.slice),p=i(d.getUint8),y=i(d.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(v&&void 0===e)return v(s(this),t);for(var r=s(this).byteLength,n=u(t,r),i=u(void 0===e?r:e,r),a=new(l(this,h))(c(i-n)),o=new f(this),d=new f(a),g=0;n<i;)y(d,g++,p(o,n++));return a}})},3632:(t,e,r)=>{var n=r(5366),i=r(4676);i&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},3700:(t,e,r)=>{var n=r(5366),i=r(4676);i&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},6347:(t,e,r)=>{var n=r(5366),i=r(4165),a=r(7878),o=r(1211),s=r(1458);n({target:"Array",proto:!0},{at:function(t){var e=i(this),r=a(e),n=o(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}}),s("at")},3234:(t,e,r)=>{var n=r(5366),i=r(3455),a=r(5448),o=r(2674),s=r(4165),u=r(7878),c=r(9573),l=r(3552),h=r(1453),f=r(9077),d=r(5811),v=r(6415),p=d("isConcatSpreadable"),y=v>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)};n({target:"Array",proto:!0,arity:1,forced:!y||!f("concat")},{concat:function(t){var e,r,n,i,a,o=s(this),f=h(o,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(g(a=-1===e?o:arguments[e]))for(i=u(a),c(d+i),r=0;r<i;r++,d++)r in a&&l(f,d,a[r]);else c(d+1),l(f,d++,a);return f.length=d,f}})},456:(t,e,r)=>{var n=r(5366),i=r(5645).filter;n({target:"Array",proto:!0,forced:!r(9077)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4302:(t,e,r)=>{var n=r(5366),i=r(2851),a=r(4186),o=r(4165),s=r(7878),u=r(1453);n({target:"Array",proto:!0},{flatMap:function(t){var e,r=o(this),n=s(r);return a(t),(e=u(r,0)).length=i(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6746:(t,e,r)=>{var n=r(5366),i=r(3948);n({target:"Array",stat:!0,forced:!r(4348)((function(t){Array.from(t)}))},{from:i})},8551:(t,e,r)=>{var n=r(5366),i=r(7921).includes,a=r(3455),o=r(1458);n({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},3276:(t,e,r)=>{var n=r(5366),i=r(2116),a=r(7921).indexOf,o=r(1814),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:u||!o("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},9024:(t,e,r)=>{var n=r(3637),i=r(1458),a=r(5597),o=r(8301),s=r(1601).f,u=r(656),c=r(9393),l=r(8507),h=r(2444),f="Array Iterator",d=o.set,v=o.getterFor(f);t.exports=u(Array,"Array",(function(t,e){d(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=v(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var p=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!l&&h&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},3177:(t,e,r)=>{var n=r(5366),i=r(3499);n({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},5550:(t,e,r)=>{var n=r(5366),i=r(5645).map;n({target:"Array",proto:!0,forced:!r(9077)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9138:(t,e,r)=>{var n=r(5366),i=r(4165),a=r(7878),o=r(7375),s=r(9573);n({target:"Array",proto:!0,arity:1,forced:r(3455)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),r=a(e),n=arguments.length;s(r+n);for(var u=0;u<n;u++)e[r]=arguments[u],r++;return o(e,r),r}})},8408:(t,e,r)=>{var n=r(5366),i=r(4734).left,a=r(1814),o=r(6415);n({target:"Array",proto:!0,forced:!r(4529)&&o>79&&o<83||!a("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},4413:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(5448),o=i([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},750:(t,e,r)=>{var n=r(5366),i=r(5448),a=r(8413),o=r(2674),s=r(9002),u=r(7878),c=r(3637),l=r(3552),h=r(5811),f=r(9077),d=r(4224),v=f("slice"),p=h("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var r,n,h,f=c(this),v=u(f),m=s(t,v),b=s(void 0===e?v:e,v);if(i(f)&&(r=f.constructor,(a(r)&&(r===y||i(r.prototype))||o(r)&&null===(r=r[p]))&&(r=void 0),r===y||void 0===r))return d(f,m,b);for(n=new(void 0===r?y:r)(g(b-m,0)),h=0;m<b;m++,h++)m in f&&l(n,h,f[m]);return n.length=h,n}})},7710:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(4186),o=r(4165),s=r(7878),u=r(1870),c=r(687),l=r(3455),h=r(5272),f=r(1814),d=r(7085),v=r(5123),p=r(6415),y=r(1911),g=[],m=i(g.sort),b=i(g.push),w=l((function(){g.sort(void 0)})),k=l((function(){g.sort(null)})),x=f("sort"),A=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(v)return!0;if(y)return y<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)g.push({k:e+n,v:r})}for(g.sort((function(t,e){return e.v-t.v})),n=0;n<g.length;n++)e=g[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));n({target:"Array",proto:!0,forced:w||!k||!x||!A},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(A)return void 0===t?m(e):m(e,t);var r,n,i=[],l=s(e);for(n=0;n<l;n++)n in e&&b(i,e[n]);for(h(i,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:c(e)>c(r)?1:-1}}(t)),r=s(i),n=0;n<r;)e[n]=i[n++];for(;n<l;)u(e,n++);return e}})},122:(t,e,r)=>{var n=r(5366),i=r(4165),a=r(9002),o=r(1211),s=r(7878),u=r(7375),c=r(9573),l=r(1453),h=r(3552),f=r(1870),d=r(9077)("splice"),v=Math.max,p=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var r,n,d,y,g,m,b=i(this),w=s(b),k=a(t,w),x=arguments.length;for(0===x?r=n=0:1===x?(r=0,n=w-k):(r=x-2,n=p(v(o(e),0),w-k)),c(w+r-n),d=l(b,n),y=0;y<n;y++)(g=k+y)in b&&h(d,y,b[g]);if(d.length=n,r<n){for(y=k;y<w-n;y++)m=y+r,(g=y+n)in b?b[m]=b[g]:f(b,m);for(y=w;y>w-n+r;y--)f(b,y-1)}else if(r>n)for(y=w-n;y>k;y--)m=y+r-1,(g=y+n-1)in b?b[m]=b[g]:f(b,m);for(y=0;y<r;y++)b[y+k]=arguments[y+2];return u(b,w-n+r),d}})},7149:(t,e,r)=>{r(1458)("flatMap")},6851:(t,e,r)=>{var n=r(5366),i=r(3455),a=r(4165),o=r(8921);n({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),r=o(e,"number");return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},7316:(t,e,r)=>{var n=r(9649),i=r(8552),a=r(952),o=r(5811)("toPrimitive"),s=Date.prototype;n(s,o)||i(s,o,a)},184:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3881),o=r(9257),s="WebAssembly",u=i[s],c=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=o(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},h=function(t,e){if(u&&u[t]){var r={};r[t]=o(s+"."+t,e,c),n({target:s,stat:!0,constructor:!0,arity:1,forced:c},r)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},8169:(t,e,r)=>{var n=r(5366),i=r(4032);n({global:!0,forced:i.globalThis!==i},{globalThis:i})},9750:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(3881),o=r(3453),s=r(2608),u=r(3455),c=r(3749),l=r(2277),h=r(4224),f=r(213),d=r(6943),v=String,p=i("JSON","stringify"),y=s(/./.exec),g=s("".charAt),m=s("".charCodeAt),b=s("".replace),w=s(1..toString),k=/[\\uD800-\\uDFFF]/g,x=/^[\\uD800-\\uDBFF]$/,A=/^[\\uDC00-\\uDFFF]$/,_=!d||u((function(){var t=i("Symbol")("stringify detection");return"[null]"!==p([t])||"{}"!==p({a:t})||"{}"!==p(Object(t))})),E=u((function(){return\'"\\\\udf06\\\\ud834"\'!==p("\\udf06\\ud834")||\'"\\\\udead"\'!==p("\\udead")})),S=function(t,e){var r=h(arguments),n=f(e);if(c(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(c(n)&&(e=o(n,this,v(t),e)),!l(e))return e},a(p,null,r)},O=function(t,e,r){var n=g(r,e-1),i=g(r,e+1);return y(x,t)&&!y(A,i)||y(A,t)&&!y(x,n)?"\\\\u"+w(m(t,0),16):t};p&&n({target:"JSON",stat:!0,arity:3,forced:_||E},{stringify:function(t,e,r){var n=h(arguments),i=a(_?S:p,null,n);return E&&"string"==typeof i?b(i,k,O):i}})},7531:(t,e,r)=>{var n=r(4032);r(6911)(n.JSON,"JSON",!0)},6539:(t,e,r)=>{r(9556)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(2042))},1425:(t,e,r)=>{r(6539)},3821:(t,e,r)=>{var n=r(5366),i=Math.hypot,a=Math.abs,o=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var r,n,i=0,s=0,u=arguments.length,c=0;s<u;)c<(r=a(arguments[s++]))?(i=i*(n=c/r)*n+1,c=r):i+=r>0?(n=r/c)*n:r;return c===1/0?1/0:c*o(i)}})},1999:(t,e,r)=>{r(6911)(Math,"Math",!0)},8674:(t,e,r)=>{var n=r(5366),i=r(8885).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},4129:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(3552);n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,r){a(e,t,r)}),{AS_ENTRIES:!0}),e}})},702:(t,e,r)=>{var n=r(5366),i=r(2444),a=r(2919),o=r(3637),s=r(1139),u=r(3552);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),i=s.f,c=a(n),l={},h=0;c.length>h;)void 0!==(r=i(n,e=c[h++]))&&u(l,e,r);return l}})},1309:(t,e,r)=>{var n=r(5366),i=r(6943),a=r(3455),o=r(6005),s=r(4165);n({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(s(t)):[]}})},3379:(t,e,r)=>{var n=r(3724),i=r(8552),a=r(3003);n||i(Object.prototype,"toString",a,{unsafe:!0})},482:(t,e,r)=>{var n=r(5366),i=r(8885).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},5204:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(9371),s=r(6703),u=r(1804);n({target:"Promise",stat:!0,forced:r(2041)},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,l=s((function(){var r=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(r,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||n(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||n(o))}))})),--c||n(o)}));return l.error&&c(l.value),r.promise}})},6195:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(9371),s=r(6703),u=r(1804);n({target:"Promise",stat:!0,forced:r(2041)},{all:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,l=s((function(){var r=a(e.resolve),o=[],s=0,l=1;u(t,(function(t){var a=s++,u=!1;l++,i(r,e,t).then((function(t){u||(u=!0,o[a]=t,--l||n(o))}),c)})),--l||n(o)}));return l.error&&c(l.value),r.promise}})},1459:(t,e,r)=>{var n=r(5366),i=r(8507),a=r(9492).CONSTRUCTOR,o=r(5318),s=r(8711),u=r(3749),c=r(8552),l=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(o)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},9236:(t,e,r)=>{var n,i,a,o=r(5366),s=r(8507),u=r(4529),c=r(4032),l=r(3453),h=r(8552),f=r(9415),d=r(6911),v=r(5409),p=r(4186),y=r(3749),g=r(2674),m=r(3399),b=r(1365),w=r(1369).set,k=r(755),x=r(4885),A=r(6703),_=r(3529),E=r(8301),S=r(5318),O=r(9492),T=r(9371),P="Promise",L=O.CONSTRUCTOR,M=O.REJECTION_EVENT,C=O.SUBCLASSING,j=E.getterFor(P),I=E.set,R=S&&S.prototype,F=S,D=R,N=c.TypeError,W=c.document,B=c.process,G=T.f,H=G,U=!!(W&&W.createEvent&&c.dispatchEvent),z="unhandledrejection",V=function(t){var e;return!(!g(t)||!y(e=t.then))&&e},q=function(t,e){var r,n,i,a=e.value,o=1===e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(o||(2===e.rejection&&J(e),e.rejection=1),!0===s?r=a:(h&&h.enter(),r=s(a),h&&(h.exit(),i=!0)),r===t.promise?c(new N("Promise-chain cycle")):(n=V(r))?l(n,r,u,c):u(r)):c(a)}catch(t){h&&!i&&h.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,k((function(){for(var r,n=t.reactions;r=n.get();)q(r,t);t.notified=!1,e&&!t.rejection&&K(t)})))},X=function(t,e,r){var n,i;U?((n=W.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!M&&(i=c["on"+t])?i(n):t===z&&x("Unhandled promise rejection",r)},K=function(t){l(w,c,(function(){var e,r=t.facade,n=t.value;if(Q(t)&&(e=A((function(){u?B.emit("unhandledRejection",n,r):X(z,r,n)})),t.rejection=u||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(w,c,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},$=function(t,e,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new N("Promise can\'t be resolved itself");var n=V(e);n?k((function(){var r={done:!1};try{l(n,e,$(tt,r,t),$(Z,r,t))}catch(e){Z(r,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Z({done:!1},e,t)}}};if(L&&(D=(F=function(t){m(this,D),p(t),l(n,this);var e=j(this);try{t($(tt,e),$(Z,e))}catch(t){Z(e,t)}}).prototype,(n=function(t){I(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=h(D,"then",(function(t,e){var r=j(this),n=G(b(this,F));return r.parent=!0,n.ok=!y(t)||t,n.fail=y(e)&&e,n.domain=u?B.domain:void 0,0===r.state?r.reactions.add(n):k((function(){q(n,r)})),n.promise})),i=function(){var t=new n,e=j(t);this.promise=t,this.resolve=$(tt,e),this.reject=$(Z,e)},T.f=G=function(t){return t===F||void 0===t?new i(t):H(t)},!s&&y(S)&&R!==Object.prototype)){a=R.then,C||h(R,"then",(function(t,e){var r=this;return new F((function(t,e){l(a,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete R.constructor}catch(t){}f&&f(R,D)}o({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:F}),d(F,P,!1,!0),v(P)},2431:(t,e,r)=>{var n=r(5366),i=r(8507),a=r(5318),o=r(3455),s=r(8711),u=r(3749),c=r(1365),l=r(1774),h=r(8552),f=a&&a.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),r=u(t);return this.then(r?function(r){return l(e,t()).then((function(){return r}))}:t,r?function(r){return l(e,t()).then((function(){throw r}))}:t)}}),!i&&u(a)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},1234:(t,e,r)=>{r(9236),r(6195),r(1459),r(5167),r(5257),r(1128)},5167:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(9371),s=r(6703),u=r(1804);n({target:"Promise",stat:!0,forced:r(2041)},{race:function(t){var e=this,r=o.f(e),n=r.reject,c=s((function(){var o=a(e.resolve);u(t,(function(t){i(o,e,t).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},5257:(t,e,r)=>{var n=r(5366),i=r(9371);n({target:"Promise",stat:!0,forced:r(9492).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},1128:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(8507),o=r(5318),s=r(9492).CONSTRUCTOR,u=r(1774),c=i("Promise"),l=a&&!s;n({target:"Promise",stat:!0,forced:a||s},{resolve:function(t){return u(l&&this===c?o:this,t)}})},9732:(t,e,r)=>{var n=r(5366),i=r(9371);n({target:"Promise",stat:!0},{withResolvers:function(){var t=i.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},489:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(3881),o=r(2230),s=r(9052),u=r(7447),c=r(2674),l=r(5304),h=r(3455),f=i("Reflect","construct"),d=Object.prototype,v=[].push,p=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),y=!h((function(){f((function(){}))})),g=p||y;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){s(t),u(e);var r=arguments.length<3?t:s(arguments[2]);if(y&&!p)return f(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return a(v,n,e),new(a(o,t,n))}var i=r.prototype,h=l(c(i)?i:d),g=a(t,h,e);return c(g)?g:h}})},7288:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(2674),o=r(7447),s=r(3007),u=r(1139),c=r(2611);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,l,h=arguments.length<3?e:arguments[2];return o(e)===h?e[r]:(n=u.f(e,r))?s(n)?n.value:void 0===n.get?void 0:i(n.get,h):a(l=c(e))?t(l,r,h):void 0}})},176:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(6911);n({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},4592:(t,e,r)=>{var n=r(2444),i=r(4032),a=r(2608),o=r(5868),s=r(3951),u=r(139),c=r(5304),l=r(3408).f,h=r(6921),f=r(6484),d=r(687),v=r(4554),p=r(1837),y=r(2848),g=r(8552),m=r(3455),b=r(9649),w=r(8301).enforce,k=r(5409),x=r(5811),A=r(3651),_=r(9502),E=x("match"),S=i.RegExp,O=S.prototype,T=i.SyntaxError,P=a(O.exec),L=a("".charAt),M=a("".replace),C=a("".indexOf),j=a("".slice),I=/^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,D=new S(R)!==R,N=p.MISSED_STICKY,W=p.UNSUPPORTED_Y;if(o("RegExp",n&&(!D||N||A||_||m((function(){return F[E]=!1,S(R)!==R||S(F)===F||"/a/i"!==String(S(R,"i"))}))))){for(var B=function(t,e){var r,n,i,a,o,l,p=h(O,this),y=f(t),g=void 0===e,m=[],k=t;if(!p&&y&&g&&t.constructor===B)return t;if((y||h(O,t))&&(t=t.source,g&&(e=v(k))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),k=t,A&&"dotAll"in R&&(n=!!e&&C(e,"s")>-1)&&(e=M(e,/s/g,"")),r=e,N&&"sticky"in R&&(i=!!e&&C(e,"y")>-1)&&W&&(e=M(e,/y/g,"")),_&&(a=function(t){for(var e,r=t.length,n=0,i="",a=[],o=c(null),s=!1,u=!1,l=0,h="";n<=r;n++){if("\\\\"===(e=L(t,n)))e+=L(t,++n);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(i+=e,"?:"===j(t,n+1,n+3))continue;P(I,j(t,n+1))&&(n+=2,u=!0),l++;continue;case">"===e&&u:if(""===h||b(o,h))throw new T("Invalid capture group name");o[h]=!0,a[a.length]=[h,l],u=!1,h="";continue}u?h+=e:i+=e}return[i,a]}(t),t=a[0],m=a[1]),o=s(S(t,e),p?this:O,B),(n||i||m.length)&&(l=w(o),n&&(l.dotAll=!0,l.raw=B(function(t){for(var e,r=t.length,n=0,i="",a=!1;n<=r;n++)"\\\\"!==(e=L(t,n))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\\\s\\\\S]":i+=e+L(t,++n);return i}(t),r)),i&&(l.sticky=!0),m.length&&(l.groups=m)),t!==k)try{u(o,"source",""===k?"(?:)":k)}catch(t){}return o},G=l(S),H=0;G.length>H;)y(B,S,G[H++]);O.constructor=B,B.prototype=O,g(i,"RegExp",B,{constructor:!0})}k("RegExp")},8345:(t,e,r)=>{var n=r(2444),i=r(3651),a=r(9872),o=r(8986),s=r(8301).get,u=RegExp.prototype,c=TypeError;n&&i&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},2823:(t,e,r)=>{var n=r(5366),i=r(9867);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2865:(t,e,r)=>{var n=r(2444),i=r(1837).MISSED_STICKY,a=r(9872),o=r(8986),s=r(8301).get,u=RegExp.prototype,c=TypeError;n&&i&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},5594:(t,e,r)=>{r(2823);var n,i,a=r(5366),o=r(3453),s=r(3749),u=r(7447),c=r(687),l=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),h=/./.test;a({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),r=c(t),n=e.exec;if(!s(n))return o(h,e,r);var i=o(n,e,r);return null!==i&&(u(i),!0)}})},8397:(t,e,r)=>{var n=r(2542).PROPER,i=r(8552),a=r(7447),o=r(687),s=r(3455),u=r(4554),c="toString",l=RegExp.prototype,h=l[c],f=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=n&&h.name!==c;(f||d)&&i(l,c,(function(){var t=a(this);return"/"+o(t.source)+"/"+o(u(t))}),{unsafe:!0})},4645:(t,e,r)=>{r(9556)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(2042))},5130:(t,e,r)=>{var n=r(5366),i=r(4656);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("difference")},{difference:i})},5636:(t,e,r)=>{var n=r(5366),i=r(3455),a=r(2446);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("intersection")||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:a})},8509:(t,e,r)=>{var n=r(5366),i=r(4545);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("isDisjointFrom")},{isDisjointFrom:i})},7332:(t,e,r)=>{var n=r(5366),i=r(7918);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSubsetOf")},{isSubsetOf:i})},6555:(t,e,r)=>{var n=r(5366),i=r(6111);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("isSupersetOf")},{isSupersetOf:i})},9255:(t,e,r)=>{r(4645)},3296:(t,e,r)=>{var n=r(5366),i=r(4498);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("symmetricDifference")},{symmetricDifference:i})},4594:(t,e,r)=>{var n=r(5366),i=r(9500);n({target:"Set",proto:!0,real:!0,forced:!r(1716)("union")},{union:i})},8653:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(7222),o=r(1211),s=r(687),u=r(3455),c=i("".charAt);n({target:"String",proto:!0,forced:u((function(){return"\\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),r=e.length,n=o(t),i=n>=0?n:r+n;return i<0||i>=r?void 0:c(e,i)}})},9657:(t,e,r)=>{var n,i=r(5366),a=r(2116),o=r(1139).f,s=r(5806),u=r(687),c=r(3631),l=r(7222),h=r(860),f=r(8507),d=a("".slice),v=Math.min,p=h("endsWith");i({target:"String",proto:!0,forced:!(!f&&!p&&(n=o(String.prototype,"endsWith"),n&&!n.writable)||p)},{endsWith:function(t){var e=u(l(this));c(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,i=void 0===r?n:v(s(r),n),a=u(t);return d(e,i-a.length,i)===a}})},2217:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(9002),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);n({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,i=0;n>i;){if(e=+arguments[i++],a(e,1114111)!==e)throw new o(e+" is not a valid code point");r[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(r,"")}})},2467:(t,e,r)=>{var n=r(5366),i=r(2608),a=r(3631),o=r(7222),s=r(687),u=r(860),c=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},7460:(t,e,r)=>{var n=r(6903).charAt,i=r(687),a=r(8301),o=r(656),s=r(9393),u="String Iterator",c=a.set,l=a.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),r=e.string,i=e.index;return i>=r.length?s(void 0,!0):(t=n(r,i),e.index+=t.length,s(t,!1))}))},1281:(t,e,r)=>{var n=r(3453),i=r(4364),a=r(7447),o=r(6021),s=r(5806),u=r(687),c=r(7222),l=r(8622),h=r(8149),f=r(4410);i("match",(function(t,e,r){return[function(e){var r=c(this),i=o(e)?void 0:l(e,t);return i?n(i,e,r):new RegExp(e)[t](u(r))},function(t){var n=a(this),i=u(t),o=r(e,n,i);if(o.done)return o.value;if(!n.global)return f(n,i);var c=n.unicode;n.lastIndex=0;for(var l,d=[],v=0;null!==(l=f(n,i));){var p=u(l[0]);d[v]=p,""===p&&(n.lastIndex=h(i,s(n.lastIndex),c)),v++}return 0===v?null:d}]}))},4853:(t,e,r)=>{var n=r(5366),i=r(6437).end;n({target:"String",proto:!0,forced:r(4903)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9484:(t,e,r)=>{var n=r(5366),i=r(6437).start;n({target:"String",proto:!0,forced:r(4903)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},6794:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(2608),o=r(7222),s=r(3749),u=r(6021),c=r(6484),l=r(687),h=r(8622),f=r(4554),d=r(3966),v=r(5811),p=r(8507),y=v("replace"),g=TypeError,m=a("".indexOf),b=a("".replace),w=a("".slice),k=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var r,n,a,v,x,A,_,E,S,O,T=o(this),P=0,L="";if(!u(t)){if((r=c(t))&&(n=l(o(f(t))),!~m(n,"g")))throw new g("`.replaceAll` does not allow non-global regexes");if(a=h(t,y))return i(a,t,T,e);if(p&&r)return b(l(T),t,e)}for(v=l(T),x=l(t),(A=s(e))||(e=l(e)),_=x.length,E=k(1,_),S=m(v,x);-1!==S;)O=A?l(e(x,S,v)):d(x,v,S,[],void 0,e),L+=w(v,P,S)+O,P=S+_,S=S+E>v.length?-1:m(v,x,S+E);return P<v.length&&(L+=w(v,P)),L}})},4672:(t,e,r)=>{var n=r(3881),i=r(3453),a=r(2608),o=r(4364),s=r(3455),u=r(7447),c=r(3749),l=r(6021),h=r(1211),f=r(5806),d=r(687),v=r(7222),p=r(8149),y=r(8622),g=r(3966),m=r(4410),b=r(5811)("replace"),w=Math.max,k=Math.min,x=a([].concat),A=a([].push),_=a("".indexOf),E=a("".slice),S="$0"==="a".replace(/./,"$0"),O=!!/./[b]&&""===/./[b]("a","$0");o("replace",(function(t,e,r){var a=O?"$":"$0";return[function(t,r){var n=v(this),a=l(t)?void 0:y(t,b);return a?i(a,t,n,r):i(e,d(n),t,r)},function(t,i){var o=u(this),s=d(t);if("string"==typeof i&&-1===_(i,a)&&-1===_(i,"$<")){var l=r(e,o,s,i);if(l.done)return l.value}var v=c(i);v||(i=d(i));var y,b=o.global;b&&(y=o.unicode,o.lastIndex=0);for(var S,O=[];null!==(S=m(o,s))&&(A(O,S),b);)""===d(S[0])&&(o.lastIndex=p(s,f(o.lastIndex),y));for(var T,P="",L=0,M=0;M<O.length;M++){for(var C,j=d((S=O[M])[0]),I=w(k(h(S.index),s.length),0),R=[],F=1;F<S.length;F++)A(R,void 0===(T=S[F])?T:String(T));var D=S.groups;if(v){var N=x([j],R,I,s);void 0!==D&&A(N,D),C=d(n(i,void 0,N))}else C=g(j,s,I,R,D,i);I>=L&&(P+=E(s,L,I)+C,L=I+j.length)}return P+E(s,L)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!S||O)},4072:(t,e,r)=>{var n=r(3453),i=r(2608),a=r(4364),o=r(7447),s=r(6021),u=r(7222),c=r(1365),l=r(8149),h=r(5806),f=r(687),d=r(8622),v=r(4410),p=r(1837),y=r(3455),g=p.UNSUPPORTED_Y,m=Math.min,b=i([].push),w=i("".slice),k=!y((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]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;a("split",(function(t,e,r){var i="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e;return[function(e,r){var a=u(this),o=s(e)?void 0:d(e,t);return o?n(o,e,a,r):n(i,f(a),e,r)},function(t,n){var a=o(this),s=f(t);if(!x){var u=r(i,a,s,n,i!==e);if(u.done)return u.value}var d=c(a,RegExp),p=a.unicode,y=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(g?"g":"y"),k=new d(g?"^(?:"+a.source+")":a,y),A=void 0===n?4294967295:n>>>0;if(0===A)return[];if(0===s.length)return null===v(k,s)?[s]:[];for(var _=0,E=0,S=[];E<s.length;){k.lastIndex=g?0:E;var O,T=v(k,g?w(s,E):s);if(null===T||(O=m(h(k.lastIndex+(g?E:0)),s.length))===_)E=l(s,E,p);else{if(b(S,w(s,_,E)),S.length===A)return S;for(var P=1;P<=T.length-1;P++)if(b(S,T[P]),S.length===A)return S;E=_=O}}return b(S,w(s,_)),S}]}),x||!k,g)},9264:(t,e,r)=>{var n,i=r(5366),a=r(2116),o=r(1139).f,s=r(5806),u=r(687),c=r(3631),l=r(7222),h=r(860),f=r(8507),d=a("".slice),v=Math.min,p=h("startsWith");i({target:"String",proto:!0,forced:!(!f&&!p&&(n=o(String.prototype,"startsWith"),n&&!n.writable)||p)},{startsWith:function(t){var e=u(l(this));c(t);var r=s(v(arguments.length>1?arguments[1]:void 0,e.length)),n=u(t);return d(e,r,r+n.length)===n}})},98:(t,e,r)=>{r(3185);var n=r(5366),i=r(2882);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},3185:(t,e,r)=>{var n=r(5366),i=r(2882);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},9210:(t,e,r)=>{var n=r(5366),i=r(9418).trim;n({target:"String",proto:!0,forced:r(3794)("trim")},{trim:function(){return i(this)}})},4172:(t,e,r)=>{r(5343)("asyncIterator")},2873:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3453),o=r(2608),s=r(8507),u=r(2444),c=r(6943),l=r(3455),h=r(9649),f=r(6921),d=r(7447),v=r(3637),p=r(6201),y=r(687),g=r(4004),m=r(5304),b=r(496),w=r(3408),k=r(6442),x=r(6005),A=r(1139),_=r(1601),E=r(9217),S=r(9221),O=r(8552),T=r(8986),P=r(4593),L=r(2343),M=r(2645),C=r(5936),j=r(5811),I=r(4559),R=r(5343),F=r(3042),D=r(6911),N=r(8301),W=r(5645).forEach,B=L("hidden"),G="Symbol",H="prototype",U=N.set,z=N.getterFor(G),V=Object[H],q=i.Symbol,Y=q&&q[H],X=i.RangeError,K=i.TypeError,Q=i.QObject,J=A.f,$=_.f,Z=k.f,tt=S.f,et=o([].push),rt=P("symbols"),nt=P("op-symbols"),it=P("wks"),at=!Q||!Q[H]||!Q[H].findChild,ot=function(t,e,r){var n=J(V,e);n&&delete V[e],$(t,e,r),n&&t!==V&&$(V,e,n)},st=u&&l((function(){return 7!==m($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?ot:$,ut=function(t,e){var r=rt[t]=m(Y);return U(r,{type:G,tag:t,description:e}),u||(r.description=e),r},ct=function(t,e,r){t===V&&ct(nt,e,r),d(t);var n=p(e);return d(r),h(rt,n)?(r.enumerable?(h(t,B)&&t[B][n]&&(t[B][n]=!1),r=m(r,{enumerable:g(0,!1)})):(h(t,B)||$(t,B,g(1,m(null))),t[B][n]=!0),st(t,n,r)):$(t,n,r)},lt=function(t,e){d(t);var r=v(e),n=b(r).concat(vt(r));return W(n,(function(e){u&&!a(ht,r,e)||ct(t,e,r[e])})),t},ht=function(t){var e=p(t),r=a(tt,this,e);return!(this===V&&h(rt,e)&&!h(nt,e))&&(!(r||!h(this,e)||!h(rt,e)||h(this,B)&&this[B][e])||r)},ft=function(t,e){var r=v(t),n=p(e);if(r!==V||!h(rt,n)||h(nt,n)){var i=J(r,n);return!i||!h(rt,n)||h(r,B)&&r[B][n]||(i.enumerable=!0),i}},dt=function(t){var e=Z(v(t)),r=[];return W(e,(function(t){h(rt,t)||h(M,t)||et(r,t)})),r},vt=function(t){var e=t===V,r=Z(e?nt:v(t)),n=[];return W(r,(function(t){!h(rt,t)||e&&!h(V,t)||et(n,rt[t])})),n};c||(O(Y=(q=function(){if(f(Y,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=C(t),r=function(t){var n=void 0===this?i:this;n===V&&a(r,nt,t),h(n,B)&&h(n[B],e)&&(n[B][e]=!1);var o=g(1,t);try{st(n,e,o)}catch(t){if(!(t instanceof X))throw t;ot(n,e,o)}};return u&&at&&st(V,e,{configurable:!0,set:r}),ut(e,t)})[H],"toString",(function(){return z(this).tag})),O(q,"withoutSetter",(function(t){return ut(C(t),t)})),S.f=ht,_.f=ct,E.f=lt,A.f=ft,w.f=k.f=dt,x.f=vt,I.f=function(t){return ut(j(t),t)},u&&(T(Y,"description",{configurable:!0,get:function(){return z(this).description}}),s||O(V,"propertyIsEnumerable",ht,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),W(b(it),(function(t){R(t)})),n({target:G,stat:!0,forced:!c},{useSetter:function(){at=!0},useSimple:function(){at=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):lt(m(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),F(),D(q,G),M[B]=!0},4551:(t,e,r)=>{var n=r(5366),i=r(2444),a=r(4032),o=r(2608),s=r(9649),u=r(3749),c=r(6921),l=r(687),h=r(8986),f=r(2924),d=a.Symbol,v=d&&d.prototype;if(i&&u(d)&&(!("description"in v)||void 0!==d().description)){var p={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(v,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};f(y,d),y.prototype=v,v.constructor=y;var g="Symbol(description detection)"===String(d("description detection")),m=o(v.valueOf),b=o(v.toString),w=/^Symbol\\((.*)\\)[^)]+$/,k=o("".replace),x=o("".slice);h(v,"description",{configurable:!0,get:function(){var t=m(this);if(s(p,t))return"";var e=b(t),r=g?x(e,7,-1):k(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},4182:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(9649),o=r(687),s=r(4593),u=r(8592),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=o(t);if(a(c,e))return c[e];var r=i("Symbol")(e);return c[e]=r,l[r]=e,r}})},7651:(t,e,r)=>{r(2873),r(4182),r(7876),r(9750),r(1309)},7876:(t,e,r)=>{var n=r(5366),i=r(9649),a=r(2277),o=r(8055),s=r(4593),u=r(8592),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!a(t))throw new TypeError(o(t)+" is not a symbol");if(i(c,t))return c[t]}})},5268:(t,e,r)=>{var n=r(5343),i=r(3042);n("toPrimitive"),i()},5997:(t,e,r)=>{var n=r(8711),i=r(5343),a=r(6911);i("toStringTag"),a(n("Symbol"),"Symbol")},3740:(t,e,r)=>{var n=r(4356),i=r(7878),a=r(1211),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(t){var e=o(this),r=i(e),n=a(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}))},6542:(t,e,r)=>{var n=r(2608),i=r(4356),a=n(r(6677)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},5738:(t,e,r)=>{var n=r(4356),i=r(5645).every,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},2900:(t,e,r)=>{var n=r(4356),i=r(9557),a=r(1198),o=r(1179),s=r(3453),u=r(2608),c=r(3455),l=n.aTypedArray,h=n.exportTypedArrayMethod,f=u("".slice);h("fill",(function(t){var e=arguments.length;l(this);var r="Big"===f(o(this),0,3)?a(t):+t;return s(i,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},2051:(t,e,r)=>{var n=r(4356),i=r(5645).filter,a=r(85),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},4211:(t,e,r)=>{var n=r(4356),i=r(5645).findIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},5294:(t,e,r)=>{var n=r(4356),i=r(767).findLastIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},9791:(t,e,r)=>{var n=r(4356),i=r(767).findLast,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},3198:(t,e,r)=>{var n=r(4356),i=r(5645).find,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},4306:(t,e,r)=>{r(8975)("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},6473:(t,e,r)=>{r(8975)("Float64",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},1526:(t,e,r)=>{var n=r(4356),i=r(5645).forEach,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},6032:(t,e,r)=>{var n=r(4356),i=r(7921).includes,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},3659:(t,e,r)=>{var n=r(4356),i=r(7921).indexOf,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},1237:(t,e,r)=>{r(8975)("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},932:(t,e,r)=>{var n=r(4032),i=r(3455),a=r(2608),o=r(4356),s=r(9024),u=r(5811)("iterator"),c=n.Uint8Array,l=a(s.values),h=a(s.keys),f=a(s.entries),d=o.aTypedArray,v=o.exportTypedArrayMethod,p=c&&c.prototype,y=!i((function(){p[u].call([1])})),g=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,m=function(){return l(d(this))};v("entries",(function(){return f(d(this))}),y),v("keys",(function(){return h(d(this))}),y),v("values",m,y||!g,{name:"values"}),v(u,m,y||!g,{name:"values"})},8553:(t,e,r)=>{var n=r(4356),i=r(2608),a=n.aTypedArray,o=n.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},7612:(t,e,r)=>{var n=r(4356),i=r(3881),a=r(3499),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},8579:(t,e,r)=>{var n=r(4356),i=r(5645).map,a=r(580),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},7576:(t,e,r)=>{var n=r(4356),i=r(4734).right,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},7719:(t,e,r)=>{var n=r(4356),i=r(4734).left,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},2891:(t,e,r)=>{var n=r(4356),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,r=i(e).length,n=o(r/2),a=0;a<n;)t=e[a],e[a++]=e[--r],e[r]=t;return e}))},2605:(t,e,r)=>{var n=r(4032),i=r(3453),a=r(4356),o=r(7878),s=r(8402),u=r(4165),c=r(3455),l=n.RangeError,h=n.Int8Array,f=h&&h.prototype,d=f&&f.set,v=a.aTypedArray,p=a.exportTypedArrayMethod,y=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),g=y&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){v(this);var e=s(arguments.length>1?arguments[1]:void 0,1),r=u(t);if(y)return i(d,this,r,e);var n=this.length,a=o(r),c=0;if(a+e>n)throw new l("Wrong length");for(;c<a;)this[e+c]=r[c++]}),!y||g)},4863:(t,e,r)=>{var n=r(4356),i=r(580),a=r(3455),o=r(4224),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(t,e){for(var r=o(s(this),t,e),n=i(this),a=0,u=r.length,c=new n(u);u>a;)c[a]=r[a++];return c}),a((function(){new Int8Array(1).slice()})))},9637:(t,e,r)=>{var n=r(4356),i=r(5645).some,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},2709:(t,e,r)=>{var n=r(4032),i=r(2116),a=r(3455),o=r(4186),s=r(5272),u=r(4356),c=r(7085),l=r(5123),h=r(6415),f=r(1911),d=u.aTypedArray,v=u.exportTypedArrayMethod,p=n.Uint16Array,y=p&&i(p.prototype.sort),g=!(!y||a((function(){y(new p(2),null)}))&&a((function(){y(new p(2),{})}))),m=!!y&&!a((function(){if(h)return h<74;if(c)return c<67;if(l)return!0;if(f)return f<602;var t,e,r=new p(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(y(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));v("sort",(function(t){return void 0!==t&&o(t),m?y(this,t):s(d(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!m||g)},8941:(t,e,r)=>{var n=r(4032),i=r(3881),a=r(4356),o=r(3455),s=r(4224),u=n.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,h=[].toLocaleString,f=!!u&&o((function(){h.call(new u(1))}));l("toLocaleString",(function(){return i(h,f?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},1579:(t,e,r)=>{var n=r(6444),i=r(4356),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;o("toReversed",(function(){return n(a(this),s(this))}))},6236:(t,e,r)=>{var n=r(4356),i=r(2608),a=r(4186),o=r(7434),s=n.aTypedArray,u=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,l=i(n.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),r=o(u(e),e);return l(r,t)}))},7716:(t,e,r)=>{var n=r(4356).exportTypedArrayMethod,i=r(3455),a=r(4032),o=r(2608),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var h=u.toString!==c;n("toString",c,h)},2044:(t,e,r)=>{r(8975)("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},7329:(t,e,r)=>{r(8975)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},1913:(t,e,r)=>{var n=r(920),i=r(4356),a=r(5415),o=r(1211),s=r(1198),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var r=u(this),i=o(t),l=a(r)?s(e):+e;return n(r,c(r),i,l)}}.with,!h)},6722:(t,e,r)=>{var n,i=r(568),a=r(4032),o=r(2608),s=r(4183),u=r(5227),c=r(9556),l=r(8153),h=r(2674),f=r(8301).enforce,d=r(3455),v=r(6206),p=Object,y=Array.isArray,g=p.isExtensible,m=p.isFrozen,b=p.isSealed,w=p.freeze,k=p.seal,x=!a.ActiveXObject&&"ActiveXObject"in a,A=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_=c("WeakMap",A,l),E=_.prototype,S=o(E.set);if(v)if(x){n=l.getConstructor(A,"WeakMap",!0),u.enable();var O=o(E.delete),T=o(E.has),P=o(E.get);s(E,{delete:function(t){if(h(t)&&!g(t)){var e=f(this);return e.frozen||(e.frozen=new n),O(this,t)||e.frozen.delete(t)}return O(this,t)},has:function(t){if(h(t)&&!g(t)){var e=f(this);return e.frozen||(e.frozen=new n),T(this,t)||e.frozen.has(t)}return T(this,t)},get:function(t){if(h(t)&&!g(t)){var e=f(this);return e.frozen||(e.frozen=new n),T(this,t)?P(this,t):e.frozen.get(t)}return P(this,t)},set:function(t,e){if(h(t)&&!g(t)){var r=f(this);r.frozen||(r.frozen=new n),T(this,t)?S(this,t,e):r.frozen.set(t,e)}else S(this,t,e);return this}})}else i&&d((function(){var t=w([]);return S(new _,t,1),!m(t)}))&&s(E,{set:function(t,e){var r;return y(t)&&(m(t)?r=w:b(t)&&(r=k)),S(this,t,e),r&&r(t),this}})},8492:(t,e,r)=>{r(6722)},1176:(t,e,r)=>{r(9556)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(8153))},7121:(t,e,r)=>{r(1176)},4192:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(3399),o=r(7447),s=r(3749),u=r(2611),c=r(8986),l=r(3552),h=r(3455),f=r(9649),d=r(5811),v=r(2857).IteratorPrototype,p=r(2444),y=r(8507),g="constructor",m="Iterator",b=d("toStringTag"),w=TypeError,k=i[m],x=y||!s(k)||k.prototype!==v||!h((function(){k({})})),A=function(){if(a(this,v),u(this)===v)throw new w("Abstract class Iterator not directly constructable")},_=function(t,e){p?c(v,t,{configurable:!0,get:function(){return e},set:function(e){if(o(this),this===v)throw new w("You can\'t redefine this property");f(this,t)?this[t]=e:l(this,t,e)}}):v[t]=e};f(v,b)||_(b,m),!x&&f(v,g)&&v[g]!==Object||_(g,A),A.prototype=v,n({global:!0,constructor:!0,forced:x},{Iterator:A})},7895:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(7447),o=r(3447),s=r(821),u=r(5590),c=r(2342),l=r(8507),h=c((function(){for(var t,e=this.iterator,r=this.next;this.remaining;)if(this.remaining--,t=a(i(r,e)),this.done=!!t.done)return;if(t=a(i(r,e)),!(this.done=!!t.done))return t.value}));n({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(t){a(this);var e=u(s(+t));return new h(o(this),{remaining:e})}})},463:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(4186),o=r(7447),s=r(3447);n({target:"Iterator",proto:!0,real:!0},{every:function(t){o(this),a(t);var e=s(this),r=0;return!i(e,(function(e,n){if(!t(e,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8856:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(7447),s=r(3447),u=r(2342),c=r(3535),l=r(8507),h=u((function(){for(var t,e,r=this.iterator,n=this.predicate,a=this.next;;){if(t=o(i(a,r)),this.done=!!t.done)return;if(e=t.value,c(r,n,[e,this.counter++],!0))return e}}));n({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(t){return o(this),a(t),new h(s(this),{predicate:t})}})},9166:(t,e,r)=>{var n=r(5366),i=r(3453),a=r(4186),o=r(7447),s=r(3447),u=r(1750),c=r(2342),l=r(5235),h=r(8507),f=c((function(){for(var t,e,r=this.iterator,n=this.mapper;;){if(e=this.inner)try{if(!(t=o(i(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){l(r,"throw",t)}if(t=o(i(this.next,r)),this.done=!!t.done)return;try{this.inner=u(n(t.value,this.counter++),!1)}catch(t){l(r,"throw",t)}}}));n({target:"Iterator",proto:!0,real:!0,forced:h},{flatMap:function(t){return o(this),a(t),new f(s(this),{mapper:t,inner:null})}})},1565:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(4186),o=r(7447),s=r(3447);n({target:"Iterator",proto:!0,real:!0},{forEach:function(t){o(this),a(t);var e=s(this),r=0;i(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})},5342:(t,e,r)=>{var n=r(5366),i=r(4009);n({target:"Iterator",proto:!0,real:!0,forced:r(8507)},{map:i})},9582:(t,e,r)=>{var n=r(5366),i=r(1804),a=r(4186),o=r(7447),s=r(3447);n({target:"Iterator",proto:!0,real:!0},{some:function(t){o(this),a(t);var e=s(this),r=0;return i(e,(function(e,n){if(t(e,r++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},31:(t,e,r)=>{var n=r(5366),i=r(2444),a=r(4032),o=r(8711),s=r(2608),u=r(3453),c=r(3749),l=r(2674),h=r(5448),f=r(9649),d=r(687),v=r(7878),p=r(3552),y=r(3455),g=r(1448),m=r(6943),b=a.JSON,w=a.Number,k=a.SyntaxError,x=b&&b.parse,A=o("Object","keys"),_=Object.getOwnPropertyDescriptor,E=s("".charAt),S=s("".slice),O=s(/./.exec),T=s([].push),P=/^\\d$/,L=/^[1-9]$/,M=/^[\\d-]$/,C=/^[\\t\\n\\r ]$/,j=function(t,e,r,n){var i,a,o,s,c,d=t[e],p=n&&d===n.value,y=p&&"string"==typeof n.source?{source:n.source}:{};if(l(d)){var g=h(d),m=p?n.nodes:g?[]:{};if(g)for(i=m.length,o=v(d),s=0;s<o;s++)I(d,s,j(d,""+s,r,s<i?m[s]:void 0));else for(a=A(d),o=v(a),s=0;s<o;s++)c=a[s],I(d,c,j(d,c,r,f(m,c)?m[c]:void 0))}return u(r,t,e,d,y)},I=function(t,e,r){if(i){var n=_(t,e);if(n&&!n.configurable)return}void 0===r?delete t[e]:p(t,e,r)},R=function(t,e,r,n){this.value=t,this.end=e,this.source=r,this.nodes=n},F=function(t,e){this.source=t,this.index=e};F.prototype={fork:function(t){return new F(this.source,t)},parse:function(){var t=this.source,e=this.skip(C,this.index),r=this.fork(e),n=E(t,e);if(O(M,n))return r.number();switch(n){case"{":return r.object();case"[":return r.array();case\'"\':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new k(\'Unexpected character: "\'+n+\'" at: \'+e)},node:function(t,e,r,n,i){return new R(e,n,t?null:S(this.source,r,n),i)},object:function(){for(var t=this.source,e=this.index+1,r=!1,n={},i={};e<t.length;){if(e=this.until([\'"\',"}"],e),"}"===E(t,e)&&!r){e++;break}var a=this.fork(e).string(),o=a.value;e=a.end,e=this.until([":"],e)+1,e=this.skip(C,e),a=this.fork(e).parse(),p(i,o,a),p(n,o,a.value),e=this.until([",","}"],a.end);var s=E(t,e);if(","===s)r=!0,e++;else if("}"===s){e++;break}}return this.node(1,n,this.index,e,i)},array:function(){for(var t=this.source,e=this.index+1,r=!1,n=[],i=[];e<t.length;){if(e=this.skip(C,e),"]"===E(t,e)&&!r){e++;break}var a=this.fork(e).parse();if(T(i,a),T(n,a.value),e=this.until([",","]"],a.end),","===E(t,e))r=!0,e++;else if("]"===E(t,e)){e++;break}}return this.node(1,n,this.index,e,i)},string:function(){var t=this.index,e=g(this.source,this.index+1);return this.node(0,e.value,t,e.end)},number:function(){var t=this.source,e=this.index,r=e;if("-"===E(t,r)&&r++,"0"===E(t,r))r++;else{if(!O(L,E(t,r)))throw new k("Failed to parse number at: "+r);r=this.skip(P,r+1)}if(!("."===E(t,r)&&(r=this.skip(P,r+1)),"e"!==E(t,r)&&"E"!==E(t,r)||(r++,"+"!==E(t,r)&&"-"!==E(t,r)||r++,r!==(r=this.skip(P,r)))))throw new k("Failed to parse number\'s exponent value at: "+r);return this.node(0,w(S(t,e,r)),e,r)},keyword:function(t){var e=""+t,r=this.index,n=r+e.length;if(S(this.source,r,n)!==e)throw new k("Failed to parse value at: "+r);return this.node(0,t,r,n)},skip:function(t,e){for(var r=this.source;e<r.length&&O(t,E(r,e));e++);return e},until:function(t,e){e=this.skip(C,e);for(var r=E(this.source,e),n=0;n<t.length;n++)if(t[n]===r)return e;throw new k(\'Unexpected character: "\'+r+\'" at: \'+e)}};var D=y((function(){var t,e="9007199254740993";return x(e,(function(e,r,n){t=n.source})),t!==e})),N=m&&!y((function(){return 1/x("-0 \\t")!=-1/0}));n({target:"JSON",stat:!0,forced:D},{parse:function(t,e){return N&&!c(e)?x(t):function(t,e){t=d(t);var r=new F(t,0,""),n=r.parse(),i=n.value,a=r.skip(C,n.end);if(a<t.length)throw new k(\'Unexpected extra character: "\'+E(t,a)+\'" after the parsed data at: \'+a);return c(e)?j({"":i},"",e,n):i}(t,e)}})},6625:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(8711),o=r(2608),s=r(3453),u=r(3455),c=r(687),l=r(7900),h=r(2996).c2i,f=/[^\\d+/a-z]/i,d=/[\\t\\n\\f\\r ]+/g,v=/[=]{1,2}$/,p=a("atob"),y=String.fromCharCode,g=o("".charAt),m=o("".replace),b=o(f.exec),w=!!p&&!u((function(){return"hi"!==p("aGk=")})),k=w&&u((function(){return""!==p(" ")})),x=w&&!u((function(){p("a")})),A=w&&!u((function(){p()})),_=w&&1!==p.length;n({global:!0,bind:!0,enumerable:!0,forced:!w||k||x||A||_},{atob:function(t){if(l(arguments.length,1),w&&!k&&!x)return s(p,i,t);var e,r,n,o=m(c(t),d,""),u="",A=0,_=0;if(o.length%4==0&&(o=m(o,v,"")),(e=o.length)%4==1||b(f,o))throw new(a("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;A<e;)r=g(o,A++),n=_%4?64*n+h[r]:h[r],_++%4&&(u+=y(255&n>>(-2*_&6)));return u}})},8316:(t,e,r)=>{var n=r(4032),i=r(2760),a=r(4784),o=r(3147),s=r(139),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(n[c]&&n[c].prototype);u(a)},3577:(t,e,r)=>{var n=r(4032),i=r(2760),a=r(4784),o=r(9024),s=r(139),u=r(6911),c=r(5811)("iterator"),l=o.values,h=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),i[e])for(var r in o)if(t[r]!==o[r])try{s(t,r,o[r])}catch(e){t[r]=o[r]}}};for(var f in i)h(n[f]&&n[f].prototype,f);h(a,"DOMTokenList")},4967:(t,e,r)=>{var n=r(5366),i=r(8711),a=r(9685),o=r(3455),s=r(5304),u=r(4004),c=r(1601).f,l=r(8552),h=r(8986),f=r(9649),d=r(3399),v=r(7447),p=r(2912),y=r(8363),g=r(4090),m=r(3633),b=r(8301),w=r(2444),k=r(8507),x="DOMException",A="DATA_CLONE_ERR",_=i("Error"),E=i(x)||function(){try{(new(i("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===A&&25===t.code)return t.constructor}}(),S=E&&E.prototype,O=_.prototype,T=b.set,P=b.getterFor(x),L="stack"in new _(x),M=function(t){return f(g,t)&&g[t].m?g[t].c:0},C=function(){d(this,j);var t=arguments.length,e=y(t<1?void 0:arguments[0]),r=y(t<2?void 0:arguments[1],"Error"),n=M(r);if(T(this,{type:x,name:r,message:e,code:n}),w||(this.name=r,this.message=e,this.code=n),L){var i=new _(e);i.name=x,c(this,"stack",u(1,m(i.stack,1)))}},j=C.prototype=s(O),I=function(t){return{enumerable:!0,configurable:!0,get:t}},R=function(t){return I((function(){return P(this)[t]}))};w&&(h(j,"code",R("code")),h(j,"message",R("message")),h(j,"name",R("name"))),c(j,"constructor",u(1,C));var F=o((function(){return!(new E instanceof _)})),D=F||o((function(){return O.toString!==p||"2: 1"!==String(new E(1,2))})),N=F||o((function(){return 25!==new E(1,"DataCloneError").code})),W=F||25!==E[A]||25!==S[A],B=k?D||N||W:F;n({global:!0,constructor:!0,forced:B},{DOMException:B?C:E});var G=i(x),H=G.prototype;for(var U in D&&(k||E===G)&&l(H,"toString",p),N&&w&&E===G&&h(H,"code",I((function(){return M(v(this).name)}))),g)if(f(g,U)){var z=g[U],V=z.s,q=u(6,z.c);f(G,V)||c(G,V,q),f(H,V)||c(H,V,q)}},6403:(t,e,r)=>{var n=r(5366),i=r(4032),a=r(8711),o=r(4004),s=r(1601).f,u=r(9649),c=r(3399),l=r(3951),h=r(8363),f=r(4090),d=r(3633),v=r(2444),p=r(8507),y="DOMException",g=a("Error"),m=a(y),b=function(){c(this,w);var t=arguments.length,e=h(t<1?void 0:arguments[0]),r=h(t<2?void 0:arguments[1],"Error"),n=new m(e,r),i=new g(e);return i.name=y,s(n,"stack",o(1,d(i.stack,1))),l(n,this,b),n},w=b.prototype=m.prototype,k="stack"in new g(y),x="stack"in new m(1,2),A=m&&v&&Object.getOwnPropertyDescriptor(i,y),_=!(!A||A.writable&&A.configurable),E=k&&!_&&!x;n({global:!0,constructor:!0,forced:p||E},{DOMException:E?b:m});var S=a(y),O=S.prototype;if(O.constructor!==S)for(var T in p||s(O,"constructor",o(1,S)),f)if(u(f,T)){var P=f[T],L=P.s;u(S,L)||s(S,L,o(6,P.c))}},3355:(t,e,r)=>{var n=r(8711),i="DOMException";r(6911)(n(i),i)},9734:(t,e,r)=>{r(9024),r(2217);var n=r(5366),i=r(4032),a=r(5725),o=r(8711),s=r(3453),u=r(2608),c=r(2444),l=r(8200),h=r(8552),f=r(8986),d=r(4183),v=r(6911),p=r(282),y=r(8301),g=r(3399),m=r(3749),b=r(9649),w=r(4864),k=r(1179),x=r(7447),A=r(2674),_=r(687),E=r(5304),S=r(4004),O=r(6961),T=r(7507),P=r(9393),L=r(7900),M=r(5811),C=r(5272),j=M("iterator"),I="URLSearchParams",R=I+"Iterator",F=y.set,D=y.getterFor(I),N=y.getterFor(R),W=a("fetch"),B=a("Request"),G=a("Headers"),H=B&&B.prototype,U=G&&G.prototype,z=i.TypeError,V=i.encodeURIComponent,q=String.fromCharCode,Y=o("String","fromCodePoint"),X=parseInt,K=u("".charAt),Q=u([].join),J=u([].push),$=u("".replace),Z=u([].shift),tt=u([].splice),et=u("".split),rt=u("".slice),nt=u(/./.exec),it=/\\+/g,at=/^[0-9a-f]+$/i,ot=function(t,e){var r=rt(t,e,e+2);return nt(at,r)?X(r,16):NaN},st=function(t){for(var e=0,r=128;r>0&&0!=(t&r);r>>=1)e++;return e},ut=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=$(t,it," ")).length,r="",n=0;n<e;){var i=K(t,n);if("%"===i){if("%"===K(t,n+1)||n+3>e){r+="%",n++;continue}var a=ot(t,n+1);if(a!=a){r+=i,n++;continue}n+=2;var o=st(a);if(0===o)i=q(a);else{if(1===o||o>4){r+="�",n++;continue}for(var s=[a],u=1;u<o&&!(3+ ++n>e||"%"!==K(t,n));){var c=ot(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;J(s,c),n+=2,u++}if(s.length!==o){r+="�";continue}var l=ut(s);null===l?r+="�":i=Y(l)}}r+=i,n++}return r},lt=/[!\'()~]|%20/g,ht={"!":"%21","\'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ft=function(t){return ht[t]},dt=function(t){return $(V(t),lt,ft)},vt=p((function(t,e){F(this,{type:R,target:D(t).entries,index:0,kind:e})}),I,(function(){var t=N(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,P(void 0,!0);var n=e[r];switch(t.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)}),!0),pt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===K(t,0)?rt(t,1):t:_(t)))};pt.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,i,a,o,u,c=this.entries,l=T(t);if(l)for(r=(e=O(t,l)).next;!(n=s(r,e)).done;){if(a=(i=O(x(n.value))).next,(o=s(a,i)).done||(u=s(a,i)).done||!s(a,i).done)throw new z("Expected sequence with length 2");J(c,{key:_(o.value),value:_(u.value)})}else for(var h in t)b(t,h)&&J(c,{key:h,value:_(t[h])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,i=et(t,"&"),a=0;a<i.length;)(e=i[a++]).length&&(r=et(e,"="),J(n,{key:ct(Z(r)),value:ct(Q(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],J(r,dt(t.key)+"="+dt(t.value));return Q(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var yt=function(){g(this,gt);var t=F(this,new pt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},gt=yt.prototype;if(d(gt,{append:function(t,e){var r=D(this);L(arguments.length,2),J(r.entries,{key:_(t),value:_(e)}),c||this.length++,r.updateURL()},delete:function(t){for(var e=D(this),r=L(arguments.length,1),n=e.entries,i=_(t),a=r<2?void 0:arguments[1],o=void 0===a?a:_(a),s=0;s<n.length;){var u=n[s];if(u.key!==i||void 0!==o&&u.value!==o)s++;else if(tt(n,s,1),void 0!==o)break}c||(this.size=n.length),e.updateURL()},get:function(t){var e=D(this).entries;L(arguments.length,1);for(var r=_(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=D(this).entries;L(arguments.length,1);for(var r=_(t),n=[],i=0;i<e.length;i++)e[i].key===r&&J(n,e[i].value);return n},has:function(t){for(var e=D(this).entries,r=L(arguments.length,1),n=_(t),i=r<2?void 0:arguments[1],a=void 0===i?i:_(i),o=0;o<e.length;){var s=e[o++];if(s.key===n&&(void 0===a||s.value===a))return!0}return!1},set:function(t,e){var r=D(this);L(arguments.length,1);for(var n,i=r.entries,a=!1,o=_(t),s=_(e),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?tt(i,u--,1):(a=!0,n.value=s));a||J(i,{key:o,value:s}),c||(this.size=i.length),r.updateURL()},sort:function(){var t=D(this);C(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=D(this).entries,n=w(t,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((e=r[i++]).value,e.key,this)},keys:function(){return new vt(this,"keys")},values:function(){return new vt(this,"values")},entries:function(){return new vt(this,"entries")}},{enumerable:!0}),h(gt,j,gt.entries,{name:"entries"}),h(gt,"toString",(function(){return D(this).serialize()}),{enumerable:!0}),c&&f(gt,"size",{get:function(){return D(this).entries.length},configurable:!0,enumerable:!0}),v(yt,I),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:yt}),!l&&m(G)){var mt=u(U.has),bt=u(U.set),wt=function(t){if(A(t)){var e,r=t.body;if(k(r)===I)return e=t.headers?new G(t.headers):new G,mt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(t,{body:S(0,_(r)),headers:S(0,e)})}return t};if(m(W)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return W(t,arguments.length>1?wt(arguments[1]):{})}}),m(B)){var kt=function(t){return g(this,H),new B(t,arguments.length>1?wt(arguments[1]):{})};H.constructor=kt,kt.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:kt})}}t.exports={URLSearchParams:yt,getState:D}},1531:(t,e,r)=>{var n=r(8552),i=r(2608),a=r(687),o=r(7900),s=URLSearchParams,u=s.prototype,c=i(u.append),l=i(u.delete),h=i(u.forEach),f=i([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&n(u,"delete",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=[];h(this,(function(t,e){f(n,{key:e,value:t})})),o(e,1);for(var i,s=a(t),u=a(r),d=0,v=0,p=!1,y=n.length;d<y;)i=n[d++],p||i.key===s?(p=!0,l(this,i.key)):v++;for(;v<y;)(i=n[v++]).key===s&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},3678:(t,e,r)=>{var n=r(8552),i=r(2608),a=r(687),o=r(7900),s=URLSearchParams,u=s.prototype,c=i(u.getAll),l=i(u.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||n(u,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=c(this,t);o(e,1);for(var i=a(r),s=0;s<n.length;)if(n[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},4520:(t,e,r)=>{r(9734)},4145:(t,e,r)=>{var n=r(2444),i=r(2608),a=r(8986),o=URLSearchParams.prototype,s=i(o.forEach);n&&!("size"in o)&&a(o,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},161:(t,e,r)=>{r(7460);var n,i=r(5366),a=r(2444),o=r(8200),s=r(4032),u=r(4864),c=r(2608),l=r(8552),h=r(8986),f=r(3399),d=r(9649),v=r(8069),p=r(3948),y=r(4224),g=r(6903).codeAt,m=r(5141),b=r(687),w=r(6911),k=r(7900),x=r(9734),A=r(8301),_=A.set,E=A.getterFor("URL"),S=x.URLSearchParams,O=x.getState,T=s.URL,P=s.TypeError,L=s.parseInt,M=Math.floor,C=Math.pow,j=c("".charAt),I=c(/./.exec),R=c([].join),F=c(1..toString),D=c([].pop),N=c([].push),W=c("".replace),B=c([].shift),G=c("".split),H=c("".slice),U=c("".toLowerCase),z=c([].unshift),V="Invalid scheme",q="Invalid host",Y="Invalid port",X=/[a-z]/i,K=/[\\d+-.a-z]/i,Q=/\\d/,J=/^0x/i,$=/^[0-7]+$/,Z=/^\\d+$/,tt=/^[\\da-f]+$/i,et=/[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/,rt=/[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/,nt=/^[\\u0000-\\u0020]+/,it=/(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/,at=/[\\t\\n\\r]/g,ot=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)z(e,t%256),t=M(t/256);return R(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,a=0;a<8;a++)0!==t[a]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r?n:e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=F(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},st={},ut=v({},st,{" ":1,\'"\':1,"<":1,">":1,"`":1}),ct=v({},ut,{"#":1,"?":1,"{":1,"}":1}),lt=v({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var r=g(t,0);return r>32&&r<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var r;return 2===t.length&&I(X,j(t,0))&&(":"===(r=j(t,1))||!e&&"|"===r)},vt=function(t){var e;return t.length>1&&dt(H(t,0,2))&&(2===t.length||"/"===(e=j(t,2))||"\\\\"===e||"?"===e||"#"===e)},pt=function(t){return"."===t||"%2e"===U(t)},yt={},gt={},mt={},bt={},wt={},kt={},xt={},At={},_t={},Et={},St={},Ot={},Tt={},Pt={},Lt={},Mt={},Ct={},jt={},It={},Rt={},Ft={},Dt=function(t,e,r){var n,i,a,o=b(t);if(e){if(i=this.parse(o))throw new P(i);this.searchParams=null}else{if(void 0!==r&&(n=new Dt(r,!0)),i=this.parse(o,null,n))throw new P(i);(a=O(new S)).bindURL(this),this.searchParams=a}};Dt.prototype={type:"URL",parse:function(t,e,r){var i,a,o,s,u,c=this,l=e||yt,h=0,f="",v=!1,g=!1,m=!1;for(t=b(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=W(t,nt,""),t=W(t,it,"$1")),t=W(t,at,""),i=p(t);h<=i.length;){switch(a=i[h],l){case yt:if(!a||!I(X,a)){if(e)return V;l=mt;continue}f+=U(a),l=gt;break;case gt:if(a&&(I(K,a)||"+"===a||"-"===a||"."===a))f+=U(a);else{if(":"!==a){if(e)return V;f="",l=mt,h=0;continue}if(e&&(c.isSpecial()!==d(ft,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&ft[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?l=Pt:c.isSpecial()&&r&&r.scheme===c.scheme?l=bt:c.isSpecial()?l=At:"/"===i[h+1]?(l=wt,h++):(c.cannotBeABaseURL=!0,N(c.path,""),l=It)}break;case mt:if(!r||r.cannotBeABaseURL&&"#"!==a)return V;if(r.cannotBeABaseURL&&"#"===a){c.scheme=r.scheme,c.path=y(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ft;break}l="file"===r.scheme?Pt:kt;continue;case bt:if("/"!==a||"/"!==i[h+1]){l=kt;continue}l=_t,h++;break;case wt:if("/"===a){l=Et;break}l=jt;continue;case kt:if(c.scheme=r.scheme,a===n)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.query=r.query;else if("/"===a||"\\\\"===a&&c.isSpecial())l=xt;else if("?"===a)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.query="",l=Rt;else{if("#"!==a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.path.length--,l=jt;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=y(r.path),c.query=r.query,c.fragment="",l=Ft}break;case xt:if(!c.isSpecial()||"/"!==a&&"\\\\"!==a){if("/"!==a){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=jt;continue}l=Et}else l=_t;break;case At:if(l=_t,"/"!==a||"/"!==j(f,h+1))continue;h++;break;case _t:if("/"!==a&&"\\\\"!==a){l=Et;continue}break;case Et:if("@"===a){v&&(f="%40"+f),v=!0,o=p(f);for(var w=0;w<o.length;w++){var k=o[w];if(":"!==k||m){var x=ht(k,lt);m?c.password+=x:c.username+=x}else m=!0}f=""}else if(a===n||"/"===a||"?"===a||"#"===a||"\\\\"===a&&c.isSpecial()){if(v&&""===f)return"Invalid authority";h-=p(f).length+1,f="",l=St}else f+=a;break;case St:case Ot:if(e&&"file"===c.scheme){l=Mt;continue}if(":"!==a||g){if(a===n||"/"===a||"?"===a||"#"===a||"\\\\"===a&&c.isSpecial()){if(c.isSpecial()&&""===f)return q;if(e&&""===f&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(f))return s;if(f="",l=Ct,e)return;continue}"["===a?g=!0:"]"===a&&(g=!1),f+=a}else{if(""===f)return q;if(s=c.parseHost(f))return s;if(f="",l=Tt,e===Ot)return}break;case Tt:if(!I(Q,a)){if(a===n||"/"===a||"?"===a||"#"===a||"\\\\"===a&&c.isSpecial()||e){if(""!==f){var A=L(f,10);if(A>65535)return Y;c.port=c.isSpecial()&&A===ft[c.scheme]?null:A,f=""}if(e)return;l=Ct;continue}return Y}f+=a;break;case Pt:if(c.scheme="file","/"===a||"\\\\"===a)l=Lt;else{if(!r||"file"!==r.scheme){l=jt;continue}switch(a){case n:c.host=r.host,c.path=y(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=y(r.path),c.query="",l=Rt;break;case"#":c.host=r.host,c.path=y(r.path),c.query=r.query,c.fragment="",l=Ft;break;default:vt(R(y(i,h),""))||(c.host=r.host,c.path=y(r.path),c.shortenPath()),l=jt;continue}}break;case Lt:if("/"===a||"\\\\"===a){l=Mt;break}r&&"file"===r.scheme&&!vt(R(y(i,h),""))&&(dt(r.path[0],!0)?N(c.path,r.path[0]):c.host=r.host),l=jt;continue;case Mt:if(a===n||"/"===a||"\\\\"===a||"?"===a||"#"===a){if(!e&&dt(f))l=jt;else if(""===f){if(c.host="",e)return;l=Ct}else{if(s=c.parseHost(f))return s;if("localhost"===c.host&&(c.host=""),e)return;f="",l=Ct}continue}f+=a;break;case Ct:if(c.isSpecial()){if(l=jt,"/"!==a&&"\\\\"!==a)continue}else if(e||"?"!==a)if(e||"#"!==a){if(a!==n&&(l=jt,"/"!==a))continue}else c.fragment="",l=Ft;else c.query="",l=Rt;break;case jt:if(a===n||"/"===a||"\\\\"===a&&c.isSpecial()||!e&&("?"===a||"#"===a)){if(".."===(u=U(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"===a||"\\\\"===a&&c.isSpecial()||N(c.path,"")):pt(f)?"/"===a||"\\\\"===a&&c.isSpecial()||N(c.path,""):("file"===c.scheme&&!c.path.length&&dt(f)&&(c.host&&(c.host=""),f=j(f,0)+":"),N(c.path,f)),f="","file"===c.scheme&&(a===n||"?"===a||"#"===a))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"===a?(c.query="",l=Rt):"#"===a&&(c.fragment="",l=Ft)}else f+=ht(a,ct);break;case It:"?"===a?(c.query="",l=Rt):"#"===a?(c.fragment="",l=Ft):a!==n&&(c.path[0]+=ht(a,st));break;case Rt:e||"#"!==a?a!==n&&("\'"===a&&c.isSpecial()?c.query+="%27":c.query+="#"===a?"%23":ht(a,st)):(c.fragment="",l=Ft);break;case Ft:a!==n&&(c.fragment+=ht(a,ut))}h++}},parseHost:function(t){var e,r,n;if("["===j(t,0)){if("]"!==j(t,t.length-1))return q;if(e=function(t){var e,r,n,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,h=0,f=function(){return j(t,h)};if(":"===f()){if(":"!==j(t,1))return;h+=2,l=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=r=0;r<4&&I(tt,f());)e=16*e+L(f(),16),h++,r++;if("."===f()){if(0===r)return;if(h-=r,c>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;h++}if(!I(Q,f()))return;for(;I(Q,f());){if(a=L(f(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;h++}u[c]=256*u[c]+i,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;u[c++]=e}else{if(null!==l)return;h++,l=++c}}if(null!==l)for(o=c-l,c=7;0!==c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!==c)return;return u}(H(t,1,-1)),!e)return q;this.host=e}else if(this.isSpecial()){if(t=m(t),I(et,t))return q;if(e=function(t){var e,r,n,i,a,o,s,u=G(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(i=u[n]))return t;if(a=10,i.length>1&&"0"===j(i,0)&&(a=I(J,i)?16:8,i=H(i,8===a?1:2)),""===i)o=0;else{if(!I(10===a?Z:8===a?$:tt,i))return t;o=L(i,a)}N(r,o)}for(n=0;n<e;n++)if(o=r[n],n===e-1){if(o>=C(256,5-e))return null}else if(o>255)return null;for(s=D(r),n=0;n<r.length;n++)s+=r[n]*C(256,3-n);return s}(t),null===e)return q;this.host=e}else{if(I(rt,t))return q;for(e="",r=p(t),n=0;n<r.length;n++)e+=ht(r[n],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&dt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,i=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ot(i),null!==a&&(c+=":"+a)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+R(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw new P(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Nt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+ot(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",yt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=ht(e[r],lt)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=ht(e[r],lt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ot(t):ot(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,St)},getHostname:function(){var t=this.host;return null===t?"":ot(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Ot)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Tt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+R(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ct))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===j(t,0)&&(t=H(t,1)),this.query="",this.parse(t,Rt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===j(t,0)&&(t=H(t,1)),this.fragment="",this.parse(t,Ft)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Nt=function(t){var e=f(this,Wt),r=k(arguments.length,1)>1?arguments[1]:void 0,n=_(e,new Dt(t,!1,r));a||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Wt=Nt.prototype,Bt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(h(Wt,"href",Bt("serialize","setHref")),h(Wt,"origin",Bt("getOrigin")),h(Wt,"protocol",Bt("getProtocol","setProtocol")),h(Wt,"username",Bt("getUsername","setUsername")),h(Wt,"password",Bt("getPassword","setPassword")),h(Wt,"host",Bt("getHost","setHost")),h(Wt,"hostname",Bt("getHostname","setHostname")),h(Wt,"port",Bt("getPort","setPort")),h(Wt,"pathname",Bt("getPathname","setPathname")),h(Wt,"search",Bt("getSearch","setSearch")),h(Wt,"searchParams",Bt("getSearchParams")),h(Wt,"hash",Bt("getHash","setHash"))),l(Wt,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),l(Wt,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),T){var Gt=T.createObjectURL,Ht=T.revokeObjectURL;Gt&&l(Nt,"createObjectURL",u(Gt,T)),Ht&&l(Nt,"revokeObjectURL",u(Ht,T))}w(Nt,"URL"),i({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Nt})},5728:(t,e,r)=>{r(161)},4136:(t,e,r)=>{var n=r(5366),i=r(3453);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n].call(a.exports,a,a.exports,r),a.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n,i=globalThis.pdfjsLib={};function a(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function l(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e,r){return e=p(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,v()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}r.d(i,{AbortException:()=>Y,AnnotationEditorLayer:()=>Ak,AnnotationEditorParamsType:()=>_,AnnotationEditorType:()=>A,AnnotationEditorUIManager:()=>Kn,AnnotationLayer:()=>np,AnnotationMode:()=>x,CMapCompressionType:()=>T,ColorPicker:()=>Tg,DOMSVGFactory:()=>me,DrawLayer:()=>Vk,FeatureTest:()=>J,GlobalWorkerOptions:()=>mu,ImageKind:()=>S,InvalidPDFException:()=>U,MissingPDFException:()=>z,OPS:()=>P,OutputScale:()=>Fe,PDFDataRangeTransport:()=>rf,PDFDateString:()=>Le,PDFWorker:()=>pf,PasswordResponses:()=>L,PermissionFlag:()=>E,PixelsPerInch:()=>Vt,RenderingCancelledException:()=>we,TextLayer:()=>uh,UnexpectedResponseException:()=>V,Util:()=>Z,VerbosityLevel:()=>O,XfaLayer:()=>td,build:()=>Bf,createValidAbsoluteUrl:()=>N,fetchData:()=>ve,getDocument:()=>$h,getFilenameFromUrl:()=>Ae,getPdfFilenameFromUrl:()=>_e,getXfaPageViewport:()=>Me,isDataScheme:()=>ke,isPdfFile:()=>xe,noContextMenu:()=>Te,normalizeUnicode:()=>it,setLayerDimensions:()=>Re,shadow:()=>W,version:()=>Wf}),r(8169),r(7651),r(4551),r(5268),r(184),r(3234),r(6746),r(8551),r(9024),r(9138),r(750),r(5015),r(6209),r(9261),r(3700),r(3632),r(7316),r(1425),r(3379),r(489),r(2823),r(5594),r(8397),r(2467),r(1281),r(9484),r(4672),r(6794),r(9264),r(7329),r(2044),r(3740),r(6542),r(5738),r(2900),r(2051),r(3198),r(4211),r(9791),r(5294),r(1526),r(6032),r(3659),r(932),r(8553),r(7612),r(8579),r(7719),r(7576),r(2891),r(2605),r(4863),r(9637),r(2709),r(8941),r(1579),r(6236),r(7716),r(1913),r(3577),r(5728),r(4136),r(4520),r(1531),r(3678),r(4145);var m=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),b=[1,0,0,1,0,0],w=[.001,0,0,.001,0,0],k=1.35,x={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},A={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},_={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},E={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},S={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},O={ERRORS:0,WARNINGS:1,INFOS:5},T={NONE:0,BINARY:1},P={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},L={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},M=O.WARNINGS;function C(t){Number.isInteger(t)&&(M=t)}function j(){return M}function I(t){M>=O.INFOS&&console.log("Info: ".concat(t))}function R(t){M>=O.WARNINGS&&console.log("Warning: ".concat(t))}function F(t){throw new Error(t)}function D(t,e){t||F(e)}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(r&&"string"==typeof t){if(r.addDefaultProtocol&&t.startsWith("www.")){var n=t.match(/\\./g);(null==n?void 0:n.length)>=2&&(t="http://".concat(t))}if(r.tryConvertEncoding)try{t=decodeURIComponent(escape(t))}catch(t){}}var i=e?new URL(t,e):new URL(t);if(function(t){switch(null==t?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(t){}return null}function W(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}var B=function(){function t(t,e){this.message=t,this.name=e}return t.prototype=new Error,t.constructor=t,t}(),G=function(t){function e(t,r){var n;return f(this,e),(n=d(this,e,[t,"PasswordException"])).code=r,n}return y(e,B),l(e)}(),H=function(t){function e(t,r){var n;return f(this,e),(n=d(this,e,[t,"UnknownErrorException"])).details=r,n}return y(e,B),l(e)}(),U=function(t){function e(t){return f(this,e),d(this,e,[t,"InvalidPDFException"])}return y(e,B),l(e)}(),z=function(t){function e(t){return f(this,e),d(this,e,[t,"MissingPDFException"])}return y(e,B),l(e)}(),V=function(t){function e(t,r){var n;return f(this,e),(n=d(this,e,[t,"UnexpectedResponseException"])).status=r,n}return y(e,B),l(e)}(),q=function(t){function e(t){return f(this,e),d(this,e,[t,"FormatError"])}return y(e,B),l(e)}(),Y=function(t){function e(t){return f(this,e),d(this,e,[t,"AbortException"])}return y(e,B),l(e)}();function X(t){"object"==typeof t&&void 0!==(null==t?void 0:t.length)||F("Invalid argument for bytesToString");var e=t.length,r=8192;if(e<r)return String.fromCharCode.apply(null,t);for(var n=[],i=0;i<e;i+=r){var a=Math.min(i+r,e),o=t.subarray(i,a);n.push(String.fromCharCode.apply(null,o))}return n.join("")}function K(t){"string"!=typeof t&&F("Invalid argument for stringToBytes");for(var e=t.length,r=new Uint8Array(e),n=0;n<e;++n)r[n]=255&t.charCodeAt(n);return r}function Q(t){var e,r=Object.create(null),n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=s(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}(t);try{for(n.s();!(e=n.n()).done;){var i=o(e.value,2),a=i[0],u=i[1];r[a]=u}}catch(t){n.e(t)}finally{n.f()}return r}var J=function(){return l((function t(){f(this,t)}),null,[{key:"isLittleEndian",get:function(){return W(this,"isLittleEndian",((t=new Uint8Array(4))[0]=1,1===new Uint32Array(t.buffer,0,1)[0]));var t}},{key:"isEvalSupported",get:function(){return W(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(t){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function(){return W(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function(){var t,e;return"undefined"!=typeof navigator&&"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.platform)?W(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:"string"==typeof(null===(e=navigator)||void 0===e?void 0:e.userAgent)&&navigator.userAgent.includes("Firefox")}):W(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}},{key:"isCSSRoundSupported",get:function(){var t,e;return W(this,"isCSSRoundSupported",null===(t=globalThis.CSS)||void 0===t||null===(e=t.supports)||void 0===e?void 0:e.call(t,"width: round(1.5px, 1px)"))}}])}(),$=Array.from(Array(256).keys(),(function(t){return t.toString(16).padStart(2,"0")})),Z=function(){function t(){f(this,t)}return l(t,null,[{key:"makeHexColor",value:function(t,e,r){return"#".concat($[t]).concat($[e]).concat($[r])}},{key:"scaleMinMax",value:function(t,e){var r;t[0]?(t[0]<0&&(r=e[0],e[0]=e[2],e[2]=r),e[0]*=t[0],e[2]*=t[0],t[3]<0&&(r=e[1],e[1]=e[3],e[3]=r),e[1]*=t[3],e[3]*=t[3]):(r=e[0],e[0]=e[1],e[1]=r,r=e[2],e[2]=e[3],e[3]=r,t[1]<0&&(r=e[1],e[1]=e[3],e[3]=r),e[1]*=t[1],e[3]*=t[1],t[2]<0&&(r=e[0],e[0]=e[2],e[2]=r),e[0]*=t[2],e[2]*=t[2]),e[0]+=t[4],e[1]+=t[5],e[2]+=t[4],e[3]+=t[5]}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var r=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/r,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(t,e){var r=this.applyTransform(t,e),n=this.applyTransform(t.slice(2,4),e),i=this.applyTransform([t[0],t[3]],e),a=this.applyTransform([t[2],t[1]],e);return[Math.min(r[0],n[0],i[0],a[0]),Math.min(r[1],n[1],i[1],a[1]),Math.max(r[0],n[0],i[0],a[0]),Math.max(r[1],n[1],i[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],r=t[0]*e[0]+t[1]*e[2],n=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],o=(r+a)/2,s=Math.sqrt(Math.pow(r+a,2)-4*(r*a-i*n))/2,u=o+s||1,c=o-s||1;return[Math.sqrt(u),Math.sqrt(c)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(t,e){var r=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),n=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(r>n)return null;var i=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return i>a?null:[r,i,n,a]}},{key:"bezierBoundingBox",value:function(e,r,n,i,o,s,u,c,l){return l?(l[0]=Math.min(l[0],e,u),l[1]=Math.min(l[1],r,c),l[2]=Math.max(l[2],e,u),l[3]=Math.max(l[3],r,c)):l=[Math.min(e,u),Math.min(r,c),Math.max(e,u),Math.max(r,c)],a(t,this,et).call(this,e,n,o,u,r,i,s,c,3*(3*(n-o)-e+u),6*(e-2*n+o),3*(n-e),l),a(t,this,et).call(this,e,n,o,u,r,i,s,c,3*(3*(i-s)-r+c),6*(r-2*i+s),3*(i-r),l),l}}])}();function tt(t,e,r,n,i,a,o,s,u,c){if(!(u<=0||u>=1)){var l=1-u,h=u*u,f=h*u,d=l*(l*(l*t+3*u*e)+3*h*r)+f*n,v=l*(l*(l*i+3*u*a)+3*h*o)+f*s;c[0]=Math.min(c[0],d),c[1]=Math.min(c[1],v),c[2]=Math.max(c[2],d),c[3]=Math.max(c[3],v)}}function et(t,e,r,i,o,s,u,c,l,h,f,d){if(Math.abs(l)<1e-12)Math.abs(h)>=1e-12&&a(n,this,tt).call(this,t,e,r,i,o,s,u,c,-f/h,d);else{var v=Math.pow(h,2)-4*f*l;if(!(v<0)){var p=Math.sqrt(v),y=2*l;a(n,this,tt).call(this,t,e,r,i,o,s,u,c,(-h+p)/y,d),a(n,this,tt).call(this,t,e,r,i,o,s,u,c,(-h-p)/y,d)}}}n=Z;var rt=null,nt=null;function it(t){return rt||(rt=/([\\xA0\\xB5\\u037E\\u0EB3\\u2000-\\u200A\\u202F\\u2126\\uFB00-\\uFB04\\uFB06\\uFB20-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBA1\\uFBA4-\\uFBA9\\uFBAE-\\uFBB1\\uFBD3-\\uFBDC\\uFBDE-\\uFBE7\\uFBEA-\\uFBF8\\uFBFC\\uFBFD\\uFC00-\\uFC5D\\uFC64-\\uFCF1\\uFCF5-\\uFD3D\\uFD88\\uFDF4\\uFDFA\\uFDFB\\uFE71\\uFE77\\uFE79\\uFE7B\\uFE7D]+)|(\\uFB05+)/g,nt=new Map([["ﬅ","ſt"]])),t.replaceAll(rt,(function(t,e,r){return e?e.normalize("NFKC"):nt.get(r)}))}var at="pdfjs_internal_id_";function ot(){ot=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function st(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){st(a,n,i,o,s,"next",t)}function s(t){st(a,n,i,o,s,"throw",t)}o(void 0)}))}}function ct(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ht(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dt(n.key),n)}}function ft(t,e,r){return e&&ht(t.prototype,e),r&&ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dt(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}r(4172),r(5997),r(456),r(5550),r(4413),r(7531),r(1999),r(702),r(1234),r(2431),r(9732),r(9255),r(5130),r(5636),r(8509),r(7332),r(6555),r(3296),r(4594),r(8492),r(7121),r(8856),r(5342),r(4192),r(1565),r(8316),r(4967),r(6403),r(3355),r(6851),r(9750),r(8674),r(3821),r(9657),r(6347),r(122),r(8653),r(9210),r(7895),r(463),r(9582),r(31),r(3177),r(4592),r(8345),r(2865),r(4853),r(4072);var vt,pt=function(){return ft((function t(){lt(this,t)}),[{key:"addFilter",value:function(t){return"none"}},{key:"addHCMFilter",value:function(t,e){return"none"}},{key:"addAlphaFilter",value:function(t){return"none"}},{key:"addLuminosityFilter",value:function(t){return"none"}},{key:"addHighlightHCMFilter",value:function(t,e,r,n,i){return"none"}},{key:"destroy",value:function(){}}])}(),yt=new WeakMap,gt=function(){return ft((function t(e){var r,n,i=e.enableHWA,a=void 0!==i&&i;lt(this,t),function(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}(this,yt,!1),n=a,(r=yt).set(ct(r,this),n)}),[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var r,n=this._createCanvas(t,e);return{canvas:n,context:n.getContext("2d",{willReadFrequently:(r=yt,this,!r.get(ct(r,this)))})}}},{key:"reset",value:function(t,e,r){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||r<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=r}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}},{key:"_createCanvas",value:function(t,e){F("Abstract method `_createCanvas` called.")}}])}(),mt=function(){return ft((function t(e){var r=e.baseUrl,n=void 0===r?null:r,i=e.isCompressed,a=void 0===i||i;lt(this,t),this.baseUrl=n,this.isCompressed=a}),[{key:"fetch",value:(t=ut(ot().mark((function t(e){var r,n,i,a=this;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.name,this.baseUrl){t.next=3;break}throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");case 3:if(r){t.next=5;break}throw new Error("CMap name must be specified.");case 5:return n=this.baseUrl+r+(this.isCompressed?".bcmap":""),i=this.isCompressed?T.BINARY:T.NONE,t.abrupt("return",this._fetchData(n,i).catch((function(t){throw new Error("Unable to load ".concat(a.isCompressed?"binary ":"","CMap at: ").concat(n))})));case 8:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"_fetchData",value:function(t,e){F("Abstract method `_fetchData` called.")}}]);var t}(),bt=function(){return ft((function t(e){var r=e.baseUrl,n=void 0===r?null:r;lt(this,t),this.baseUrl=n}),[{key:"fetch",value:(t=ut(ot().mark((function t(e){var r,n;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.filename,this.baseUrl){t.next=3;break}throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");case 3:if(r){t.next=5;break}throw new Error("Font filename must be specified.");case 5:return n="".concat(this.baseUrl).concat(r),t.abrupt("return",this._fetchData(n).catch((function(t){throw new Error("Unable to load font data at: ".concat(n))})));case 7:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"_fetchData",value:function(t){F("Abstract method `_fetchData` called.")}}]);var t}(),wt=function(){return ft((function t(){lt(this,t)}),[{key:"create",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");var n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),r||(n.setAttribute("width","".concat(t,"px")),n.setAttribute("height","".concat(e,"px"))),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 ".concat(t," ").concat(e)),n}},{key:"createElement",value:function(t){if("string"!=typeof t)throw new Error("Invalid SVG element type");return this._createSVG(t)}},{key:"_createSVG",value:function(t){F("Abstract method `_createSVG` called.")}}])}();function kt(){kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=St(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function At(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function _t(t){return function(t){if(Array.isArray(t))return Ot(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||St(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||St(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(t,e){if(t){if("string"==typeof t)return Ot(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(t,e):void 0}}function Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Tt(t,e,r){return e=Lt(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,Pt()?Reflect.construct(e,r||[],Lt(t).constructor):e.apply(t,r))}function Pt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pt=function(){return!!t})()}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lt(t)}function Mt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ct(t,e)}function Ct(t,e){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ct(t,e)}function jt(t,e,r){It(t,e),e.set(t,r)}function It(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Rt(t,e,r){return r(Nt(t,e))}function Ft(t,e){return t.get(Nt(t,e))}function Dt(t,e,r){return t.set(Nt(t,e),r),r}function Nt(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function Wt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ut(n.key),n)}}function Bt(t,e,r){return e&&Wt(t.prototype,e),r&&Wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t,e,r){return(e=Ut(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ut(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var zt="http://www.w3.org/2000/svg",Vt=Bt((function t(){Gt(this,t)}));vt=Vt,Ht(Vt,"CSS",96),Ht(Vt,"PDF",72),Ht(Vt,"PDF_TO_CSS_UNITS",vt.CSS/vt.PDF);var qt=new WeakMap,Yt=new WeakMap,Xt=new WeakMap,Kt=new WeakMap,Qt=new WeakMap,Jt=new WeakMap,$t=new WeakMap,Zt=new WeakSet,te=function(t){function e(t){var r,n,i,a=t.docId,o=t.ownerDocument,s=void 0===o?globalThis.document:o;return Gt(this,e),It(n=r=Tt(this,e),i=Zt),i.add(n),jt(r,qt,void 0),jt(r,Yt,void 0),jt(r,Xt,void 0),jt(r,Kt,void 0),jt(r,Qt,void 0),jt(r,Jt,void 0),jt(r,$t,0),Dt(Kt,r,a),Dt(Qt,r,s),r}return Mt(e,pt),Bt(e,[{key:"addFilter",value:function(t){var e,r;if(!t)return"none";var n=Rt(Zt,this,ee).get(t);if(n)return n;var i=Et(Nt(Zt,this,ie).call(this,t),3),a=i[0],o=i[1],s=i[2],u=1===t.length?a:"".concat(a).concat(o).concat(s);if(n=Rt(Zt,this,ee).get(u))return Rt(Zt,this,ee).set(t,n),n;var c="g_".concat(Ft(Kt,this),"_transfer_map_").concat((Dt($t,this,(e=Ft($t,this),r=e++,e)),r)),l=Nt(Zt,this,ae).call(this,c);Rt(Zt,this,ee).set(t,l),Rt(Zt,this,ee).set(u,l);var h=Nt(Zt,this,ue).call(this,c);return Nt(Zt,this,le).call(this,a,o,s,h),l}},{key:"addHCMFilter",value:function(t,e){var r,n,i="".concat(t,"-").concat(e),a="base",o=Rt(Zt,this,re).get(a);if((null===(r=o)||void 0===r?void 0:r.key)===i)return o.url;if(o?(null===(n=o.filter)||void 0===n||n.remove(),o.key=i,o.url="none",o.filter=null):(o={key:i,url:"none",filter:null},Rt(Zt,this,re).set(a,o)),!t||!e)return o.url;var s=Nt(Zt,this,fe).call(this,t);t=Z.makeHexColor.apply(Z,_t(s));var u=Nt(Zt,this,fe).call(this,e);if(e=Z.makeHexColor.apply(Z,_t(u)),Rt(Zt,this,ne).style.color="","#000000"===t&&"#ffffff"===e||t===e)return o.url;for(var c=new Array(256),l=0;l<=255;l++){var h=l/255;c[l]=h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4)}var f=c.join(","),d="g_".concat(Ft(Kt,this),"_hcm_filter"),v=o.filter=Nt(Zt,this,ue).call(this,d);Nt(Zt,this,le).call(this,f,f,f,v),Nt(Zt,this,se).call(this,v);var p=function(t,e){for(var r=s[t]/255,n=u[t]/255,i=new Array(e+1),a=0;a<=e;a++)i[a]=r+a/e*(n-r);return i.join(",")};return Nt(Zt,this,le).call(this,p(0,5),p(1,5),p(2,5),v),o.url=Nt(Zt,this,ae).call(this,d),o.url}},{key:"addAlphaFilter",value:function(t){var e,r,n=Rt(Zt,this,ee).get(t);if(n)return n;var i=Et(Nt(Zt,this,ie).call(this,[t]),1)[0],a="alpha_".concat(i);if(n=Rt(Zt,this,ee).get(a))return Rt(Zt,this,ee).set(t,n),n;var o="g_".concat(Ft(Kt,this),"_alpha_map_").concat((Dt($t,this,(e=Ft($t,this),r=e++,e)),r)),s=Nt(Zt,this,ae).call(this,o);Rt(Zt,this,ee).set(t,s),Rt(Zt,this,ee).set(a,s);var u=Nt(Zt,this,ue).call(this,o);return Nt(Zt,this,he).call(this,i,u),s}},{key:"addLuminosityFilter",value:function(t){var e,r,n,i,a=Rt(Zt,this,ee).get(t||"luminosity");if(a)return a;if(t?(n=Et(Nt(Zt,this,ie).call(this,[t]),1)[0],i="luminosity_".concat(n)):i="luminosity",a=Rt(Zt,this,ee).get(i))return Rt(Zt,this,ee).set(t,a),a;var o="g_".concat(Ft(Kt,this),"_luminosity_map_").concat((Dt($t,this,(e=Ft($t,this),r=e++,e)),r)),s=Nt(Zt,this,ae).call(this,o);Rt(Zt,this,ee).set(t,s),Rt(Zt,this,ee).set(i,s);var u=Nt(Zt,this,ue).call(this,o);return Nt(Zt,this,oe).call(this,u),t&&Nt(Zt,this,he).call(this,n,u),s}},{key:"addHighlightHCMFilter",value:function(t,e,r,n,i){var a,o,s="".concat(e,"-").concat(r,"-").concat(n,"-").concat(i),u=Rt(Zt,this,re).get(t);if((null===(a=u)||void 0===a?void 0:a.key)===s)return u.url;if(u?(null===(o=u.filter)||void 0===o||o.remove(),u.key=s,u.url="none",u.filter=null):(u={key:s,url:"none",filter:null},Rt(Zt,this,re).set(t,u)),!e||!r)return u.url;var c=Et([e,r].map(Nt(Zt,this,fe).bind(this)),2),l=c[0],h=c[1],f=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),d=Math.round(.2126*h[0]+.7152*h[1]+.0722*h[2]),v=Et([n,i].map(Nt(Zt,this,fe).bind(this)),2),p=v[0],y=v[1];if(d<f){var g=[d,f,y,p];f=g[0],d=g[1],p=g[2],y=g[3]}Rt(Zt,this,ne).style.color="";var m=function(t,e,r){for(var n=new Array(256),i=(d-f)/r,a=t/255,o=(e-t)/(255*r),s=0,u=0;u<=r;u++){for(var c=Math.round(f+u*i),l=a+u*o,h=s;h<=c;h++)n[h]=l;s=c+1}for(var v=s;v<256;v++)n[v]=n[s-1];return n.join(",")},b="g_".concat(Ft(Kt,this),"_hcm_").concat(t,"_filter"),w=u.filter=Nt(Zt,this,ue).call(this,b);return Nt(Zt,this,se).call(this,w),Nt(Zt,this,le).call(this,m(p[0],y[0],5),m(p[1],y[1],5),m(p[2],y[2],5),w),u.url=Nt(Zt,this,ae).call(this,b),u.url}},{key:"destroy",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&0!==Rt(Zt,this,re).size||(Ft(Xt,this)&&(Ft(Xt,this).parentNode.parentNode.remove(),Dt(Xt,this,null)),Ft(Yt,this)&&(Ft(Yt,this).clear(),Dt(Yt,this,null)),Dt($t,this,0))}}])}();function ee(t){return Ft(Yt,t)||Dt(Yt,t,new Map)}function re(t){return Ft(Jt,t)||Dt(Jt,t,new Map)}function ne(t){if(!Ft(Xt,t)){var e=Ft(Qt,t).createElement("div"),r=e.style;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;var n=Ft(Qt,t).createElementNS(zt,"svg");n.setAttribute("width",0),n.setAttribute("height",0),Dt(Xt,t,Ft(Qt,t).createElementNS(zt,"defs")),e.append(n),n.append(Ft(Xt,t)),Ft(Qt,t).body.append(e)}return Ft(Xt,t)}function ie(t){if(1===t.length){for(var e=t[0],r=new Array(256),n=0;n<256;n++)r[n]=e[n]/255;var i=r.join(",");return[i,i,i]}for(var a=Et(t,3),o=a[0],s=a[1],u=a[2],c=new Array(256),l=new Array(256),h=new Array(256),f=0;f<256;f++)c[f]=o[f]/255,l[f]=s[f]/255,h[f]=u[f]/255;return[c.join(","),l.join(","),h.join(",")]}function ae(t){if(void 0===Ft(qt,this)){Dt(qt,this,"");var e=Ft(Qt,this).URL;e!==Ft(Qt,this).baseURI&&(ke(e)?R(\'#createUrl: ignore "data:"-URL for performance reasons.\'):Dt(qt,this,e.split("#",1)[0]))}return"url(".concat(Ft(qt,this),"#").concat(t,")")}function oe(t){var e=Ft(Qt,this).createElementNS(zt,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(e)}function se(t){var e=Ft(Qt,this).createElementNS(zt,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(e)}function ue(t){var e=Ft(Qt,this).createElementNS(zt,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",t),Rt(Zt,this,ne).append(e),e}function ce(t,e,r){var n=Ft(Qt,this).createElementNS(zt,e);n.setAttribute("type","discrete"),n.setAttribute("tableValues",r),t.append(n)}function le(t,e,r,n){var i=Ft(Qt,this).createElementNS(zt,"feComponentTransfer");n.append(i),Nt(Zt,this,ce).call(this,i,"feFuncR",t),Nt(Zt,this,ce).call(this,i,"feFuncG",e),Nt(Zt,this,ce).call(this,i,"feFuncB",r)}function he(t,e){var r=Ft(Qt,this).createElementNS(zt,"feComponentTransfer");e.append(r),Nt(Zt,this,ce).call(this,r,"feFuncA",t)}function fe(t){return Rt(Zt,this,ne).style.color=t,Ce(getComputedStyle(Rt(Zt,this,ne)).getPropertyValue("color"))}var de=function(t){function e(t){var r,n=t.ownerDocument,i=void 0===n?globalThis.document:n,a=t.enableHWA,o=void 0!==a&&a;return Gt(this,e),(r=Tt(this,e,[{enableHWA:o}]))._document=i,r}return Mt(e,gt),Bt(e,[{key:"_createCanvas",value:function(t,e){var r=this._document.createElement("canvas");return r.width=t,r.height=e,r}}])}();function ve(t){return pe.apply(this,arguments)}function pe(){var t;return t=kt().mark((function t(e){var r,n,i=arguments;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>1&&void 0!==i[1]?i[1]:"text",!Oe(e,document.baseURI)){t.next=14;break}return t.next=4,fetch(e);case 4:if((n=t.sent).ok){t.next=7;break}throw new Error(n.statusText);case 7:t.t0=r,t.next="arraybuffer"===t.t0?10:"blob"===t.t0?11:"json"===t.t0?12:13;break;case 10:return t.abrupt("return",n.arrayBuffer());case 11:return t.abrupt("return",n.blob());case 12:return t.abrupt("return",n.json());case 13:return t.abrupt("return",n.text());case 14:return t.abrupt("return",new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType=r,i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200!==i.status&&0!==i.status)n(new Error(i.statusText));else{switch(r){case"arraybuffer":case"blob":case"json":return void t(i.response)}t(i.responseText)}},i.send(null)})));case 15:case"end":return t.stop()}}),t)})),pe=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){At(a,n,i,o,s,"next",t)}function s(t){At(a,n,i,o,s,"throw",t)}o(void 0)}))},pe.apply(this,arguments)}var ye=function(t){function e(){return Gt(this,e),Tt(this,e,arguments)}return Mt(e,mt),Bt(e,[{key:"_fetchData",value:function(t,e){return ve(t,this.isCompressed?"arraybuffer":"text").then((function(t){return{cMapData:t instanceof ArrayBuffer?new Uint8Array(t):K(t),compressionType:e}}))}}])}(),ge=function(t){function e(){return Gt(this,e),Tt(this,e,arguments)}return Mt(e,bt),Bt(e,[{key:"_fetchData",value:function(t){return ve(t,"arraybuffer").then((function(t){return new Uint8Array(t)}))}}])}(),me=function(t){function e(){return Gt(this,e),Tt(this,e,arguments)}return Mt(e,wt),Bt(e,[{key:"_createSVG",value:function(t){return document.createElementNS(zt,t)}}])}(),be=function(){function t(e){var r=e.viewBox,n=e.scale,i=e.rotation,a=e.offsetX,o=void 0===a?0:a,s=e.offsetY,u=void 0===s?0:s,c=e.dontFlip,l=void 0!==c&&c;Gt(this,t),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=o,this.offsetY=u;var h,f,d,v,p,y,g,m,b=(r[2]+r[0])/2,w=(r[3]+r[1])/2;switch((i%=360)<0&&(i+=360),i){case 180:h=-1,f=0,d=0,v=1;break;case 90:h=0,f=1,d=1,v=0;break;case 270:h=0,f=-1,d=-1,v=0;break;case 0:h=1,f=0,d=0,v=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(d=-d,v=-v),0===h?(p=Math.abs(w-r[1])*n+o,y=Math.abs(b-r[0])*n+u,g=(r[3]-r[1])*n,m=(r[2]-r[0])*n):(p=Math.abs(b-r[0])*n+o,y=Math.abs(w-r[1])*n+u,g=(r[2]-r[0])*n,m=(r[3]-r[1])*n),this.transform=[h*n,f*n,d*n,v*n,p-h*n*b-d*n*w,y-f*n*b-v*n*w],this.width=g,this.height=m}return Bt(t,[{key:"rawDims",get:function(){var t=this.viewBox;return W(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.scale,n=void 0===r?this.scale:r,i=e.rotation,a=void 0===i?this.rotation:i,o=e.offsetX,s=void 0===o?this.offsetX:o,u=e.offsetY,c=void 0===u?this.offsetY:u,l=e.dontFlip,h=void 0!==l&&l;return new t({viewBox:this.viewBox.slice(),scale:n,rotation:a,offsetX:s,offsetY:c,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return Z.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=Z.applyTransform([t[0],t[1]],this.transform),r=Z.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(t,e){return Z.applyInverseTransform([t,e],this.transform)}}])}(),we=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Gt(this,e),(r=Tt(this,e,[t,"RenderingCancelledException"])).extraDelay=n,r}return Mt(e,B),Bt(e)}();function ke(t){for(var e=t.length,r=0;r<e&&""===t[r].trim();)r++;return"data:"===t.substring(r,r+5).toLowerCase()}function xe(t){return"string"==typeof t&&/\\.pdf$/i.test(t)}function Ae(t){var e=t.split(/[#?]/,1);return(t=Et(e,1)[0]).substring(t.lastIndexOf("/")+1)}function _e(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof t)return e;if(ke(t))return R(\'getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.\'),e;var r=/[^/?#=]+\\.pdf\\b(?!.*\\.pdf\\b)/i,n=/^(?:(?:[^:]+:)?\\/\\/[^/]+)?([^?#]*)(\\?[^#]*)?(#.*)?$/.exec(t),i=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(i&&(i=i[0]).includes("%"))try{i=r.exec(decodeURIComponent(i))[0]}catch(t){}return i||e}var Ee,Se=function(){return Bt((function t(){Gt(this,t),Ht(this,"started",Object.create(null)),Ht(this,"times",[])}),[{key:"time",value:function(t){t in this.started&&R("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||R("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],r=0,n=xt(this.times);try{for(n.s();!(t=n.n()).done;){var i=t.value.name;r=Math.max(i.length,r)}}catch(t){n.e(t)}finally{n.f()}var a,o=xt(this.times);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=s.name,c=s.start,l=s.end;e.push("".concat(u.padEnd(r)," ").concat(l-c,"ms\\n"))}}catch(t){o.e(t)}finally{o.f()}return e.join("")}}])}();function Oe(t,e){try{var r=(e?new URL(t,e):new URL(t)).protocol;return"http:"===r||"https:"===r}catch(t){return!1}}function Te(t){t.preventDefault()}function Pe(t){console.log("Deprecated API usage: "+t)}var Le=function(){return Bt((function t(){Gt(this,t)}),null,[{key:"toDateObject",value:function(t){if(!t||"string"!=typeof t)return null;Ee||(Ee=new RegExp("^D:(\\\\d{4})(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?(\\\\d{2})?([Z|+|-])?(\\\\d{2})?\'?(\\\\d{2})?\'?"));var e=Ee.exec(t);if(!e)return null;var r=parseInt(e[1],10),n=parseInt(e[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;var o=parseInt(e[5],10);o=o>=0&&o<=59?o:0;var s=parseInt(e[6],10);s=s>=0&&s<=59?s:0;var u=e[7]||"Z",c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;var l=parseInt(e[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===u?(a+=c,o+=l):"+"===u&&(a-=c,o-=l),new Date(Date.UTC(r,n,i,a,o,s))}}])}();function Me(t,e){var r=e.scale,n=void 0===r?1:r,i=e.rotation,a=void 0===i?0:i,o=t.attributes.style,s=o.width,u=o.height,c=[0,0,parseInt(s),parseInt(u)];return new be({viewBox:c,scale:n,rotation:a})}function Ce(t){if(t.startsWith("#")){var e=parseInt(t.slice(1),16);return[(16711680&e)>>16,(65280&e)>>8,255&e]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map((function(t){return parseInt(t)})):t.startsWith("rgba(")?t.slice(5,-1).split(",").map((function(t){return parseInt(t)})).slice(0,3):(R(\'Not a valid color format: "\'.concat(t,\'"\')),[0,0,0])}function je(t){var e=t.getTransform();return[e.a,e.b,e.c,e.d,e.e,e.f]}function Ie(t){var e=t.getTransform().invertSelf();return[e.a,e.b,e.c,e.d,e.e,e.f]}function Re(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e instanceof be){var i=e.rawDims,a=i.pageWidth,o=i.pageHeight,s=t.style,u=J.isCSSRoundSupported,c="var(--scale-factor) * ".concat(a,"px"),l="var(--scale-factor) * ".concat(o,"px"),h=u?"round(down, ".concat(c,", var(--scale-round-x, 1px))"):"calc(".concat(c,")"),f=u?"round(down, ".concat(l,", var(--scale-round-y, 1px))"):"calc(".concat(l,")");r&&e.rotation%180!=0?(s.width=f,s.height=h):(s.width=h,s.height=f)}n&&t.setAttribute("data-main-rotation",e.rotation)}var Fe=function(){return Bt((function t(){Gt(this,t);var e=window.devicePixelRatio||1;this.sx=e,this.sy=e}),[{key:"scaled",get:function(){return 1!==this.sx||1!==this.sy}},{key:"symmetric",get:function(){return this.sx===this.sy}}])}();function De(t,e){if(t){if("string"==typeof t)return Ne(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ne(t,e):void 0}}function Ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function We(){We=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Be(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function He(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ze(n.key),n)}}function Ue(t,e,r){return e&&He(t.prototype,e),r&&He(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ze(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Ve(t,e){Ye(t,e),e.add(t)}function qe(t,e,r){Ye(t,e),e.set(t,r)}function Ye(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(t,e,r){return r(Je(t,e))}function Ke(t,e){return t.get(Je(t,e))}function Qe(t,e,r){return t.set(Je(t,e),r),r}function Je(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var $e=new WeakMap,Ze=new WeakMap,tr=new WeakMap,er=new WeakMap,rr=new WeakMap,nr=new WeakSet,ir=function(){return Ue((function t(e){Ge(this,t),Ve(this,nr),qe(this,$e,null),qe(this,Ze,null),qe(this,tr,void 0),qe(this,er,null),qe(this,rr,null),Qe(tr,this,e),fr._||(fr._=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}),[{key:"render",value:function(){var t=Qe($e,this,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");var e=Ke(tr,this)._uiManager._signal;t.addEventListener("contextmenu",Te,{signal:e}),t.addEventListener("pointerdown",ar,{signal:e});var r=Qe(er,this,document.createElement("div"));r.className="buttons",t.append(r);var n=Ke(tr,this).toolbarPosition;if(n){var i=t.style,a="ltr"===Ke(tr,this)._uiManager.direction?1-n[0]:n[0];i.insetInlineEnd="".concat(100*a,"%"),i.top="calc(".concat(100*n[1],"% + var(--editor-toolbar-vert-offset))")}return Je(nr,this,cr).call(this),t}},{key:"div",get:function(){return Ke($e,this)}},{key:"hide",value:function(){var t;Ke($e,this).classList.add("hidden"),null===(t=Ke(Ze,this))||void 0===t||t.hideDropdown()}},{key:"show",value:function(){var t;Ke($e,this).classList.remove("hidden"),null===(t=Ke(rr,this))||void 0===t||t.shown()}},{key:"addAltText",value:(t=We().mark((function t(e){var r;return We().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.render();case 2:r=t.sent,Je(nr,this,ur).call(this,r),Ke(er,this).prepend(r,Xe(nr,this,lr)),Qe(rr,this,e);case 6:case"end":return t.stop()}}),t,this)})),e=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Be(a,n,i,o,s,"next",t)}function s(t){Be(a,n,i,o,s,"throw",t)}o(void 0)}))},function(t){return e.apply(this,arguments)})},{key:"addColorPicker",value:function(t){Qe(Ze,this,t);var e=t.renderButton();Je(nr,this,ur).call(this,e),Ke(er,this).prepend(e,Xe(nr,this,lr))}},{key:"remove",value:function(){var t;Ke($e,this).remove(),null===(t=Ke(Ze,this))||void 0===t||t.destroy(),Qe(Ze,this,null)}}]);var t,e}();function ar(t){t.stopPropagation()}function or(t){Ke(tr,this)._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}function sr(t){Ke(tr,this)._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}function ur(t){var e=Ke(tr,this)._uiManager._signal;t.addEventListener("focusin",Je(nr,this,or).bind(this),{capture:!0,signal:e}),t.addEventListener("focusout",Je(nr,this,sr).bind(this),{capture:!0,signal:e}),t.addEventListener("contextmenu",Te,{signal:e})}function cr(){var t=Ke(tr,this),e=t.editorType,r=t._uiManager,n=document.createElement("button");n.className="delete",n.tabIndex=0,n.setAttribute("data-l10n-id",fr._[e]),Je(nr,this,ur).call(this,n),n.addEventListener("click",(function(t){r.delete()}),{signal:r._signal}),Ke(er,this).append(n)}function lr(t){var e=document.createElement("div");return e.className="divider",e}var hr,fr={_:null},dr=new WeakMap,vr=new WeakMap,pr=new WeakMap,yr=new WeakSet,gr=function(){return Ue((function t(e){Ge(this,t),Ve(this,yr),qe(this,dr,null),qe(this,vr,null),qe(this,pr,void 0),Qe(pr,this,e)}),[{key:"show",value:function(t,e,r){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||De(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Je(yr,this,br).call(this,e,r),2),i=n[0],a=n[1],o=(Ke(vr,this)||Qe(vr,this,Je(yr,this,mr).call(this))).style;t.append(Ke(vr,this)),o.insetInlineEnd="".concat(100*i,"%"),o.top="calc(".concat(100*a,"% + var(--editor-toolbar-vert-offset))")}},{key:"hide",value:function(){Ke(vr,this).remove()}}])}();function mr(){var t=Qe(vr,this,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",Te,{signal:Ke(pr,this)._signal});var e=Qe(dr,this,document.createElement("div"));return e.className="buttons",t.append(e),Je(yr,this,wr).call(this),t}function br(t,e){var r,n=0,i=0,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=De(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.y+o.height;if(!(s<n)){var u=o.x+(e?o.width:0);s>n?(i=u,n=s):e?u>i&&(i=u):u<i&&(i=u)}}}catch(t){a.e(t)}finally{a.f()}return[e?1-i:i,n]}function wr(){var t=this,e=document.createElement("button");e.className="highlightButton",e.tabIndex=0,e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");var r=document.createElement("span");e.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");var n=Ke(pr,this)._signal;e.addEventListener("contextmenu",Te,{signal:n}),e.addEventListener("click",(function(){Ke(pr,t).highlightSelection("floating_button")}),{signal:n}),Ke(dr,this).append(e)}function kr(t,e,r){return(e=Mr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xr(t){return function(t){if(Array.isArray(t))return Wr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Nr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ar(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Nr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(){_r=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Er(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Sr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Er(a,n,i,o,s,"next",t)}function s(t){Er(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Or(t,e){jr(t,e),e.add(t)}function Tr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mr(n.key),n)}}function Lr(t,e,r){return e&&Pr(t.prototype,e),r&&Pr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mr(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Cr(t,e,r){jr(t,e),e.set(t,r)}function jr(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ir(t,e){return t.get(Fr(t,e))}function Rr(t,e,r){return t.set(Fr(t,e),r),r}function Fr(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function Dr(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Nr(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Nr(t,e){if(t){if("string"==typeof t)return Wr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(t,e):void 0}}function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Br(t,e,r){var n,i=Dr(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.addEventListener(a,t[a].bind(t))}}catch(t){i.e(t)}finally{i.f()}}var Gr=new WeakMap,Hr=function(){return Lr((function t(){Tr(this,t),Cr(this,Gr,0)}),[{key:"id",get:function(){var t,e;return"".concat("pdfjs_internal_editor_").concat((Rr(Gr,this,(t=Ir(Gr,this),e=t++,t)),e))}}])}(),Ur=new WeakMap,zr=new WeakMap,Vr=new WeakMap,qr=new WeakSet,Yr=function(){return Lr((function t(){Tr(this,t),Or(this,qr),Cr(this,Ur,function(){var t,e;if("undefined"!=typeof crypto&&"function"==typeof(null===(t=crypto)||void 0===t?void 0:t.randomUUID))return crypto.randomUUID();var r=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof(null===(e=crypto)||void 0===e?void 0:e.getRandomValues))crypto.getRandomValues(r);else for(var n=0;n<32;n++)r[n]=Math.floor(255*Math.random());return X(r)}()),Cr(this,zr,0),Cr(this,Vr,null)}),[{key:"getFromFile",value:(n=Sr(_r().mark((function t(e){var r,n,i,a;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.lastModified,n=e.name,i=e.size,a=e.type,t.abrupt("return",Fr(qr,this,Xr).call(this,"".concat(r,"_").concat(n,"_").concat(i,"_").concat(a),e));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getFromUrl",value:(r=Sr(_r().mark((function t(e){return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Fr(qr,this,Xr).call(this,e,e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"getFromBlob",value:(e=Sr(_r().mark((function t(e,r){var n;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r;case 2:return n=t.sent,t.abrupt("return",Fr(qr,this,Xr).call(this,e,n));case 4:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"getFromId",value:(t=Sr(_r().mark((function t(e){var r,n;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ir(Vr,this)||Rr(Vr,this,new Map),r=Ir(Vr,this).get(e)){t.next=4;break}return t.abrupt("return",null);case 4:if(!r.bitmap){t.next=7;break}return r.refCounter+=1,t.abrupt("return",r);case 7:if(!r.file){t.next=9;break}return t.abrupt("return",this.getFromFile(r.file));case 9:if(!r.blobPromise){t.next=13;break}return n=r.blobPromise,delete r.blobPromise,t.abrupt("return",this.getFromBlob(r.id,n));case 13:return t.abrupt("return",this.getFromUrl(r.url));case 14:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"getFromCanvas",value:function(t,e){var r,n,i;Ir(Vr,this)||Rr(Vr,this,new Map);var a=Ir(Vr,this).get(t);if(null!==(i=a)&&void 0!==i&&i.bitmap)return a.refCounter+=1,a;var o=new OffscreenCanvas(e.width,e.height);return o.getContext("2d").drawImage(e,0,0),a={bitmap:o.transferToImageBitmap(),id:"image_".concat(Ir(Ur,this),"_").concat((Rr(zr,this,(r=Ir(zr,this),n=r++,r)),n)),refCounter:1,isSvg:!1},Ir(Vr,this).set(t,a),Ir(Vr,this).set(a.id,a),a}},{key:"getSvgUrl",value:function(t){var e=Ir(Vr,this).get(t);return null!=e&&e.isSvg?e.svgUrl:null}},{key:"deleteId",value:function(t){var e;Ir(Vr,this)||Rr(Vr,this,new Map);var r=Ir(Vr,this).get(t);if(r&&(r.refCounter-=1,0===r.refCounter)){var n=r.bitmap;if(!r.url&&!r.file){var i=new OffscreenCanvas(n.width,n.height);i.getContext("bitmaprenderer").transferFromImageBitmap(n),r.blobPromise=i.convertToBlob()}null===(e=n.close)||void 0===e||e.call(n),r.bitmap=null}}},{key:"isValidId",value:function(t){return t.startsWith("image_".concat(Ir(Ur,this),"_"))}}],[{key:"_isSVGFittingCanvas",get:function(){var t=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),e=new Image;return e.src=\'data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>\',W(this,"_isSVGFittingCanvas",e.decode().then((function(){return t.drawImage(e,0,0,1,1,0,0,1,3),0===new Uint32Array(t.getImageData(0,0,1,1).data.buffer)[0]})))}}]);var t,e,r,n}();function Xr(t,e){return Kr.apply(this,arguments)}function Kr(){return(Kr=Sr(_r().mark((function t(e,r){var n,i,a,o,s,u,c,l,h;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ir(Vr,this)||Rr(Vr,this,new Map),null!==(i=Ir(Vr,this).get(e))){t.next=4;break}return t.abrupt("return",null);case 4:if(null===(n=i)||void 0===n||!n.bitmap){t.next=7;break}return i.refCounter+=1,t.abrupt("return",i);case 7:if(t.prev=7,i||(i={bitmap:null,id:"image_".concat(Ir(Ur,this),"_").concat((Rr(zr,this,(a=Ir(zr,this),o=a++,a)),o)),refCounter:0,isSvg:!1}),"string"!=typeof r){t.next=16;break}return i.url=r,t.next=13,ve(r,"blob");case 13:s=t.sent,t.next=17;break;case 16:r instanceof File?s=i.file=r:r instanceof Blob&&(s=r);case 17:if("image/svg+xml"!==s.type){t.next=27;break}return u=hr._isSVGFittingCanvas,c=new FileReader,l=new Image,h=new Promise((function(t,e){l.onload=function(){i.bitmap=l,i.isSvg=!0,t()},c.onload=Sr(_r().mark((function t(){var e;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.svgUrl=c.result,t.next=3,u;case 3:if(!t.sent){t.next=7;break}t.t0="".concat(e,"#svgView(preserveAspectRatio(none))"),t.next=8;break;case 7:t.t0=e;case 8:l.src=t.t0;case 9:case"end":return t.stop()}}),t)}))),l.onerror=c.onerror=e})),c.readAsDataURL(s),t.next=25,h;case 25:t.next=30;break;case 27:return t.next=29,createImageBitmap(s);case 29:i.bitmap=t.sent;case 30:i.refCounter=1,t.next=37;break;case 33:t.prev=33,t.t0=t.catch(7),console.error(t.t0),i=null;case 37:return Ir(Vr,this).set(e,i),i&&Ir(Vr,this).set(i.id,i),t.abrupt("return",i);case 40:case"end":return t.stop()}}),t,this,[[7,33]])})))).apply(this,arguments)}hr=Yr;var Qr=new WeakMap,Jr=new WeakMap,$r=new WeakMap,Zr=new WeakMap,tn=function(){return Lr((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;Tr(this,t),Cr(this,Qr,[]),Cr(this,Jr,!1),Cr(this,$r,void 0),Cr(this,Zr,-1),Rr($r,this,e)}),[{key:"add",value:function(t){var e=t.cmd,r=t.undo,n=t.post,i=t.mustExec,a=t.type,o=void 0===a?NaN:a,s=t.overwriteIfSameType,u=void 0!==s&&s,c=t.keepUndo,l=void 0!==c&&c;if(i&&e(),!Ir(Jr,this)){var h={cmd:e,undo:r,post:n,type:o};if(-1===Ir(Zr,this))return Ir(Qr,this).length>0&&(Ir(Qr,this).length=0),Rr(Zr,this,0),void Ir(Qr,this).push(h);if(u&&Ir(Qr,this)[Ir(Zr,this)].type===o)return l&&(h.undo=Ir(Qr,this)[Ir(Zr,this)].undo),void(Ir(Qr,this)[Ir(Zr,this)]=h);var f=Ir(Zr,this)+1;f===Ir($r,this)?Ir(Qr,this).splice(0,1):(Rr(Zr,this,f),f<Ir(Qr,this).length&&Ir(Qr,this).splice(f)),Ir(Qr,this).push(h)}}},{key:"undo",value:function(){if(-1!==Ir(Zr,this)){Rr(Jr,this,!0);var t=Ir(Qr,this)[Ir(Zr,this)],e=t.undo,r=t.post;e(),null==r||r(),Rr(Jr,this,!1),Rr(Zr,this,Ir(Zr,this)-1)}}},{key:"redo",value:function(){if(Ir(Zr,this)<Ir(Qr,this).length-1){Rr(Zr,this,Ir(Zr,this)+1),Rr(Jr,this,!0);var t=Ir(Qr,this)[Ir(Zr,this)],e=t.cmd,r=t.post;e(),null==r||r(),Rr(Jr,this,!1)}}},{key:"hasSomethingToUndo",value:function(){return-1!==Ir(Zr,this)}},{key:"hasSomethingToRedo",value:function(){return Ir(Zr,this)<Ir(Qr,this).length-1}},{key:"destroy",value:function(){Rr(Qr,this,null)}}])}(),en=new WeakSet,rn=function(){return Lr((function t(e){Tr(this,t),Or(this,en),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var r,n=J.platform.isMac,i=Dr(e);try{for(i.s();!(r=i.n()).done;){var a,o=Ar(r.value,3),s=o[0],u=o[1],c=o[2],l=void 0===c?{}:c,h=Dr(s);try{for(h.s();!(a=h.n()).done;){var f=a.value,d=f.startsWith("mac+");n&&d?(this.callbacks.set(f.slice(4),{callback:u,options:l}),this.allKeys.add(f.split("+").at(-1))):n||d||(this.callbacks.set(f,{callback:u,options:l}),this.allKeys.add(f.split("+").at(-1)))}}catch(t){h.e(t)}finally{h.f()}}}catch(t){i.e(t)}finally{i.f()}}),[{key:"exec",value:function(t,e){if(this.allKeys.has(e.key)){var r=this.callbacks.get(Fr(en,this,nn).call(this,e));if(r){var n=r.callback,i=r.options,a=i.bubbles,o=void 0!==a&&a,s=i.args,u=void 0===s?[]:s,c=i.checker,l=void 0===c?null:c;l&&!l(t,e)||(n.bind.apply(n,[t].concat(xr(u),[e]))(),o||(e.stopPropagation(),e.preventDefault()))}}}}])}();function nn(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);var e=this.buffer.join("+");return this.buffer.length=0,e}var an=function(){function t(){Tr(this,t)}return Lr(t,[{key:"_colors",get:function(){var t=new Map([["CanvasText",null],["Canvas",null]]);return function(t){var e=document.createElement("span");e.style.visibility="hidden",document.body.append(e);var r,n=xt(t.keys());try{for(n.s();!(r=n.n()).done;){var i=r.value;e.style.color=i;var a=window.getComputedStyle(e).color;t.set(i,Ce(a))}}catch(t){n.e(t)}finally{n.f()}e.remove()}(t),W(this,"_colors",t)}},{key:"convert",value:function(e){var r=Ce(e);if(!window.matchMedia("(forced-colors: active)").matches)return r;var n,i=Dr(this._colors);try{for(i.s();!(n=i.n()).done;){var a=Ar(n.value,2),o=a[0];if(a[1].every((function(t,e){return t===r[e]})))return t._colorsMapping.get(o)}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"getHexCode",value:function(t){var e=this._colors.get(t);return e?Z.makeHexColor.apply(Z,xr(e)):t}}])}();kr(an,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var on,sn=new WeakMap,un=new WeakMap,cn=new WeakMap,ln=new WeakMap,hn=new WeakMap,fn=new WeakMap,dn=new WeakMap,vn=new WeakMap,pn=new WeakMap,yn=new WeakMap,gn=new WeakMap,mn=new WeakMap,bn=new WeakMap,wn=new WeakMap,kn=new WeakMap,xn=new WeakMap,An=new WeakMap,_n=new WeakMap,En=new WeakMap,Sn=new WeakMap,On=new WeakMap,Tn=new WeakMap,Pn=new WeakMap,Ln=new WeakMap,Mn=new WeakMap,Cn=new WeakMap,jn=new WeakMap,In=new WeakMap,Rn=new WeakMap,Fn=new WeakMap,Dn=new WeakMap,Nn=new WeakMap,Wn=new WeakMap,Bn=new WeakMap,Gn=new WeakMap,Hn=new WeakMap,Un=new WeakMap,zn=new WeakMap,Vn=new WeakMap,qn=new WeakMap,Yn=new WeakMap,Xn=new WeakSet,Kn=function(){function t(e,r,n,i,a,o,s,u,c,l,h){var f=this;Tr(this,t),Or(this,Xn),Cr(this,sn,new AbortController),Cr(this,un,null),Cr(this,cn,new Map),Cr(this,ln,new Map),Cr(this,hn,null),Cr(this,fn,null),Cr(this,dn,null),Cr(this,vn,new tn),Cr(this,pn,null),Cr(this,yn,0),Cr(this,gn,new Set),Cr(this,mn,null),Cr(this,bn,null),Cr(this,wn,new Set),Cr(this,kn,!1),Cr(this,xn,!1),Cr(this,An,!1),Cr(this,_n,null),Cr(this,En,null),Cr(this,Sn,null),Cr(this,On,null),Cr(this,Tn,!1),Cr(this,Pn,null),Cr(this,Ln,new Hr),Cr(this,Mn,!1),Cr(this,Cn,!1),Cr(this,jn,null),Cr(this,In,null),Cr(this,Rn,null),Cr(this,Fn,null),Cr(this,Dn,A.NONE),Cr(this,Nn,new Set),Cr(this,Wn,null),Cr(this,Bn,null),Cr(this,Gn,null),Cr(this,Hn,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1}),Cr(this,Un,[0,0]),Cr(this,zn,null),Cr(this,Vn,null),Cr(this,qn,null),Cr(this,Yn,null);var d=this._signal=Ir(sn,this).signal;Rr(Vn,this,e),Rr(qn,this,r),Rr(hn,this,n),this._eventBus=i,i._on("editingaction",this.onEditingAction.bind(this),{signal:d}),i._on("pagechanging",this.onPageChanging.bind(this),{signal:d}),i._on("scalechanging",this.onScaleChanging.bind(this),{signal:d}),i._on("rotationchanging",this.onRotationChanging.bind(this),{signal:d}),i._on("setpreference",this.onSetPreference.bind(this),{signal:d}),i._on("switchannotationeditorparams",(function(t){return f.updateParams(t.type,t.value)}),{signal:d}),Fr(Xn,this,ei).call(this),Fr(Xn,this,ui).call(this),Fr(Xn,this,ii).call(this),Rr(fn,this,a.annotationStorage),Rr(_n,this,a.filterFactory),Rr(Bn,this,o),Rr(On,this,s||null),Rr(kn,this,u),Rr(xn,this,c),Rr(An,this,l),Rr(Fn,this,h||null),this.viewParameters={realScale:Vt.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}return Lr(t,[{key:"destroy",value:function(){var t,e,r,n;null===(t=Ir(Yn,this))||void 0===t||t.resolve(),Rr(Yn,this,null),null===(e=Ir(sn,this))||void 0===e||e.abort(),Rr(sn,this,null),this._signal=null;var i,a=Dr(Ir(ln,this).values());try{for(a.s();!(i=a.n()).done;)i.value.destroy()}catch(t){a.e(t)}finally{a.f()}Ir(ln,this).clear(),Ir(cn,this).clear(),Ir(wn,this).clear(),Rr(un,this,null),Ir(Nn,this).clear(),Ir(vn,this).destroy(),null===(r=Ir(hn,this))||void 0===r||r.destroy(),null===(n=Ir(Pn,this))||void 0===n||n.hide(),Rr(Pn,this,null),Ir(En,this)&&(clearTimeout(Ir(En,this)),Rr(En,this,null)),Ir(zn,this)&&(clearTimeout(Ir(zn,this)),Rr(zn,this,null))}},{key:"combinedSignal",value:function(t){return AbortSignal.any([this._signal,t.signal])}},{key:"mlManager",get:function(){return Ir(Fn,this)}},{key:"useNewAltTextFlow",get:function(){return Ir(xn,this)}},{key:"useNewAltTextWhenAddingImage",get:function(){return Ir(An,this)}},{key:"hcmFilter",get:function(){return W(this,"hcmFilter",Ir(Bn,this)?Ir(_n,this).addHCMFilter(Ir(Bn,this).foreground,Ir(Bn,this).background):"none")}},{key:"direction",get:function(){return W(this,"direction",getComputedStyle(Ir(Vn,this)).direction)}},{key:"highlightColors",get:function(){return W(this,"highlightColors",Ir(On,this)?new Map(Ir(On,this).split(",").map((function(t){return t.split("=").map((function(t){return t.trim()}))}))):null)}},{key:"highlightColorNames",get:function(){return W(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,(function(t){return t.reverse()}))):null)}},{key:"setMainHighlightColorPicker",value:function(t){Rr(Rn,this,t)}},{key:"editAltText",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null===(e=Ir(hn,this))||void 0===e||e.editAltText(this,t,r)}},{key:"switchToMode",value:function(t,e){this._eventBus.on("annotationeditormodechanged",e,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:t})}},{key:"setPreference",value:function(t,e){this._eventBus.dispatch("setpreference",{source:this,name:t,value:e})}},{key:"onSetPreference",value:function(t){var e=t.name,r=t.value;"enableNewAltTextWhenAddingImage"===e&&Rr(An,this,r)}},{key:"onPageChanging",value:function(t){var e=t.pageNumber;Rr(yn,this,e-1)}},{key:"focusMainContainer",value:function(){Ir(Vn,this).focus()}},{key:"findParent",value:function(t,e){var r,n=Dr(Ir(ln,this).values());try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.div.getBoundingClientRect(),o=a.x,s=a.y,u=a.width,c=a.height;if(t>=o&&t<=o+u&&e>=s&&e<=s+c)return i}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"disableUserSelect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ir(qn,this).classList.toggle("noUserSelect",t)}},{key:"addShouldRescale",value:function(t){Ir(wn,this).add(t)}},{key:"removeShouldRescale",value:function(t){Ir(wn,this).delete(t)}},{key:"onScaleChanging",value:function(t){var e=t.scale;this.commitOrRemove(),this.viewParameters.realScale=e*Vt.PDF_TO_CSS_UNITS;var r,n=Dr(Ir(wn,this));try{for(n.s();!(r=n.n()).done;)r.value.onScaleChanging()}catch(t){n.e(t)}finally{n.f()}}},{key:"onRotationChanging",value:function(t){var e=t.pagesRotation;this.commitOrRemove(),this.viewParameters.rotation=e}},{key:"highlightSelection",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=document.getSelection();if(r&&!r.isCollapsed){var n=r.anchorNode,i=r.anchorOffset,a=r.focusNode,o=r.focusOffset,s=r.toString(),u=Fr(Xn,this,Qn).call(this,r).closest(".textLayer"),c=this.getSelectionBoxes(u);if(c){r.empty();var l=Fr(Xn,this,Jn).call(this,u),h=Ir(Dn,this)===A.NONE,f=function(){null==l||l.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:c,anchorNode:n,anchorOffset:i,focusNode:a,focusOffset:o,text:s}),h&&t.showAllEditors("highlight",!0,!0)};h?this.switchToMode(A.HIGHLIGHT,f):f()}}}},{key:"addToAnnotationStorage",value:function(t){t.isEmpty()||!Ir(fn,this)||Ir(fn,this).has(t.id)||Ir(fn,this).setValue(t.id,t)}},{key:"blur",value:function(){if(this.isShiftKeyDown=!1,Ir(Tn,this)&&(Rr(Tn,this,!1),Fr(Xn,this,ti).call(this,"main_toolbar")),this.hasSelection){var t,e=document.activeElement,r=Dr(Ir(Nn,this));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.div.contains(e)){Rr(In,this,[n,e]),n._focusEventsAllowed=!1;break}}}catch(t){r.e(t)}finally{r.f()}}}},{key:"focus",value:function(){if(Ir(In,this)){var t=Ar(Ir(In,this),2),e=t[0],r=t[1];Rr(In,this,null),r.addEventListener("focusin",(function(){e._focusEventsAllowed=!0}),{once:!0,signal:this._signal}),r.focus()}}},{key:"addEditListeners",value:function(){Fr(Xn,this,ii).call(this),Fr(Xn,this,oi).call(this)}},{key:"removeEditListeners",value:function(){Fr(Xn,this,ai).call(this),Fr(Xn,this,si).call(this)}},{key:"dragOver",value:function(t){var e,r=Dr(t.dataTransfer.items);try{for(r.s();!(e=r.n()).done;){var n,i=e.value.type,a=Dr(Ir(bn,this));try{for(a.s();!(n=a.n()).done;)if(n.value.isHandlingMimeForPasting(i))return t.dataTransfer.dropEffect="copy",void t.preventDefault()}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}}},{key:"drop",value:function(t){var e,r=Dr(t.dataTransfer.items);try{for(r.s();!(e=r.n()).done;){var n,i=e.value,a=Dr(Ir(bn,this));try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.isHandlingMimeForPasting(i.type))return o.paste(i,this.currentLayer),void t.preventDefault()}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}}},{key:"copy",value:function(t){var e;if(t.preventDefault(),null===(e=Ir(un,this))||void 0===e||e.commitOrRemove(),this.hasSelection){var r,n=[],i=Dr(Ir(Nn,this));try{for(i.s();!(r=i.n()).done;){var a=r.value.serialize(!0);a&&n.push(a)}}catch(t){i.e(t)}finally{i.f()}0!==n.length&&t.clipboardData.setData("application/pdfjs",JSON.stringify(n))}}},{key:"cut",value:function(t){this.copy(t),this.delete()}},{key:"paste",value:(r=Sr(_r().mark((function t(e){var r,n,i,a,o,s,u,c,l,h,f,d,v,p,y,g,m=this;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.preventDefault(),r=e.clipboardData,n=Dr(r.items),t.prev=3,n.s();case 5:if((i=n.n()).done){t.next=27;break}a=i.value,o=Dr(Ir(bn,this)),t.prev=8,o.s();case 10:if((s=o.n()).done){t.next=17;break}if(!(u=s.value).isHandlingMimeForPasting(a.type)){t.next=15;break}return u.paste(a,this.currentLayer),t.abrupt("return");case 15:t.next=10;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(8),o.e(t.t0);case 22:return t.prev=22,o.f(),t.finish(22);case 25:t.next=5;break;case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(3),n.e(t.t1);case 32:return t.prev=32,n.f(),t.finish(32);case 35:if(c=r.getData("application/pdfjs")){t.next=38;break}return t.abrupt("return");case 38:t.prev=38,c=JSON.parse(c),t.next=46;break;case 42:return t.prev=42,t.t2=t.catch(38),R(\'paste: "\'.concat(t.t2.message,\'".\')),t.abrupt("return");case 46:if(Array.isArray(c)){t.next=48;break}return t.abrupt("return");case 48:this.unselectAll(),l=this.currentLayer,t.prev=50,h=[],f=Dr(c),t.prev=53,f.s();case 55:if((d=f.n()).done){t.next=65;break}return v=d.value,t.next=59,l.deserialize(v);case 59:if(p=t.sent){t.next=62;break}return t.abrupt("return");case 62:h.push(p);case 63:t.next=55;break;case 65:t.next=70;break;case 67:t.prev=67,t.t3=t.catch(53),f.e(t.t3);case 70:return t.prev=70,f.f(),t.finish(70);case 73:y=function(){for(var t=0,e=h;t<e.length;t++){var r=e[t];Fr(Xn,m,vi).call(m,r)}Fr(Xn,m,yi).call(m,h)},g=function(){for(var t=0,e=h;t<e.length;t++)e[t].remove()},this.addCommands({cmd:y,undo:g,mustExec:!0}),t.next=81;break;case 78:t.prev=78,t.t4=t.catch(50),R(\'paste: "\'.concat(t.t4.message,\'".\'));case 81:case"end":return t.stop()}}),t,this,[[3,29,32,35],[8,19,22,25],[38,42],[50,78],[53,67,70,73]])}))),function(t){return r.apply(this,arguments)})},{key:"keydown",value:function(e){this.isShiftKeyDown||"Shift"!==e.key||(this.isShiftKeyDown=!0),Ir(Dn,this)===A.NONE||this.isEditorHandlingKeyboard||t._keyboardManager.exec(this,e)}},{key:"keyup",value:function(t){this.isShiftKeyDown&&"Shift"===t.key&&(this.isShiftKeyDown=!1,Ir(Tn,this)&&(Rr(Tn,this,!1),Fr(Xn,this,ti).call(this,"main_toolbar")))}},{key:"onEditingAction",value:function(t){var e=t.name;switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu")}}},{key:"setEditingState",value:function(t){t?(Fr(Xn,this,ri).call(this),Fr(Xn,this,oi).call(this),Fr(Xn,this,ci).call(this,{isEditing:Ir(Dn,this)!==A.NONE,isEmpty:Fr(Xn,this,pi).call(this),hasSomethingToUndo:Ir(vn,this).hasSomethingToUndo(),hasSomethingToRedo:Ir(vn,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(Fr(Xn,this,ni).call(this),Fr(Xn,this,si).call(this),Fr(Xn,this,ci).call(this,{isEditing:!1}),this.disableUserSelect(!1))}},{key:"registerEditorTypes",value:function(t){if(!Ir(bn,this)){Rr(bn,this,t);var e,r=Dr(Ir(bn,this));try{for(r.s();!(e=r.n()).done;){var n=e.value;Fr(Xn,this,li).call(this,n.defaultPropertiesToUpdate)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getId",value:function(){return Ir(Ln,this).id}},{key:"currentLayer",get:function(){return Ir(ln,this).get(Ir(yn,this))}},{key:"getLayer",value:function(t){return Ir(ln,this).get(t)}},{key:"currentPageIndex",get:function(){return Ir(yn,this)}},{key:"addLayer",value:function(t){Ir(ln,this).set(t.pageIndex,t),Ir(Mn,this)?t.enable():t.disable()}},{key:"removeLayer",value:function(t){Ir(ln,this).delete(t.pageIndex)}},{key:"updateMode",value:(e=Sr(_r().mark((function t(e){var r,n,i,a,o,s,u,c=arguments;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>1&&void 0!==c[1]?c[1]:null,n=c.length>2&&void 0!==c[2]&&c[2],Ir(Dn,this)!==e){t.next=4;break}return t.abrupt("return");case 4:if(!Ir(Yn,this)){t.next=9;break}return t.next=7,Ir(Yn,this).promise;case 7:if(Ir(Yn,this)){t.next=9;break}return t.abrupt("return");case 9:if(Rr(Yn,this,Promise.withResolvers()),Rr(Dn,this,e),e!==A.NONE){t.next=16;break}return this.setEditingState(!1),Fr(Xn,this,di).call(this),Ir(Yn,this).resolve(),t.abrupt("return");case 16:return this.setEditingState(!0),t.next=19,Fr(Xn,this,hi).call(this);case 19:this.unselectAll(),i=Dr(Ir(ln,this).values());try{for(i.s();!(a=i.n()).done;)a.value.updateMode(e)}catch(t){i.e(t)}finally{i.f()}if(r){t.next=26;break}return n&&this.addNewEditorFromKeyboard(),Ir(Yn,this).resolve(),t.abrupt("return");case 26:o=Dr(Ir(cn,this).values());try{for(o.s();!(s=o.n()).done;)(u=s.value).annotationElementId===r?(this.setSelected(u),u.enterInEditMode()):u.unselect()}catch(t){o.e(t)}finally{o.f()}Ir(Yn,this).resolve();case 29:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"addNewEditorFromKeyboard",value:function(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}},{key:"updateToolbar",value:function(t){t!==Ir(Dn,this)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}},{key:"updateParams",value:function(t,e){var r;if(Ir(bn,this)){switch(t){case _.CREATE:return void this.currentLayer.addNewEditor();case _.HIGHLIGHT_DEFAULT_COLOR:null===(r=Ir(Rn,this))||void 0===r||r.updateColor(e);break;case _.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(Ir(Gn,this)||Rr(Gn,this,new Map)).set(t,e),this.showAllEditors("highlight",e)}var n,i=Dr(Ir(Nn,this));try{for(i.s();!(n=i.n()).done;)n.value.updateParams(t,e)}catch(t){i.e(t)}finally{i.f()}var a,o=Dr(Ir(bn,this));try{for(o.s();!(a=o.n()).done;)a.value.updateDefaultParams(t,e)}catch(t){o.e(t)}finally{o.f()}}}},{key:"showAllEditors",value:function(t,e){var r,n,i,a=Dr(Ir(cn,this).values());try{for(a.s();!(i=a.n()).done;){var o=i.value;o.editorType===t&&o.show(e)}}catch(t){a.e(t)}finally{a.f()}(null===(r=null===(n=Ir(Gn,this))||void 0===n?void 0:n.get(_.HIGHLIGHT_SHOW_ALL))||void 0===r||r)!==e&&Fr(Xn,this,li).call(this,[[_.HIGHLIGHT_SHOW_ALL,e]])}},{key:"enableWaiting",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Ir(Cn,this)!==t){Rr(Cn,this,t);var e,r=Dr(Ir(ln,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getEditors",value:function(t){var e,r=[],n=Dr(Ir(cn,this).values());try{for(n.s();!(e=n.n()).done;){var i=e.value;i.pageIndex===t&&r.push(i)}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"getEditor",value:function(t){return Ir(cn,this).get(t)}},{key:"addEditor",value:function(t){Ir(cn,this).set(t.id,t)}},{key:"removeEditor",value:function(t){var e,r=this;t.div.contains(document.activeElement)&&(Ir(En,this)&&clearTimeout(Ir(En,this)),Rr(En,this,setTimeout((function(){r.focusMainContainer(),Rr(En,r,null)}),0))),Ir(cn,this).delete(t.id),this.unselect(t),t.annotationElementId&&Ir(gn,this).has(t.annotationElementId)||null===(e=Ir(fn,this))||void 0===e||e.remove(t.id)}},{key:"addDeletedAnnotationElement",value:function(t){Ir(gn,this).add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}},{key:"isDeletedAnnotationElement",value:function(t){return Ir(gn,this).has(t)}},{key:"removeDeletedAnnotationElement",value:function(t){Ir(gn,this).delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}},{key:"setActiveEditor",value:function(t){Ir(un,this)!==t&&(Rr(un,this,t),t&&Fr(Xn,this,li).call(this,t.propertiesToUpdate))}},{key:"updateUI",value:function(t){(function(t){var e,r=null,n=Dr(Ir(Nn,t));try{for(n.s();!(e=n.n()).done;)r=e.value}catch(t){n.e(t)}finally{n.f()}return r})(Fr(Xn,this))===t&&Fr(Xn,this,li).call(this,t.propertiesToUpdate)}},{key:"toggleSelected",value:function(t){if(Ir(Nn,this).has(t))return Ir(Nn,this).delete(t),t.unselect(),void Fr(Xn,this,ci).call(this,{hasSelectedEditor:this.hasSelection});Ir(Nn,this).add(t),t.select(),Fr(Xn,this,li).call(this,t.propertiesToUpdate),Fr(Xn,this,ci).call(this,{hasSelectedEditor:!0})}},{key:"setSelected",value:function(t){var e,r=Dr(Ir(Nn,this));try{for(r.s();!(e=r.n()).done;){var n=e.value;n!==t&&n.unselect()}}catch(t){r.e(t)}finally{r.f()}Ir(Nn,this).clear(),Ir(Nn,this).add(t),t.select(),Fr(Xn,this,li).call(this,t.propertiesToUpdate),Fr(Xn,this,ci).call(this,{hasSelectedEditor:!0})}},{key:"isSelected",value:function(t){return Ir(Nn,this).has(t)}},{key:"firstSelectedEditor",get:function(){return Ir(Nn,this).values().next().value}},{key:"unselect",value:function(t){t.unselect(),Ir(Nn,this).delete(t),Fr(Xn,this,ci).call(this,{hasSelectedEditor:this.hasSelection})}},{key:"hasSelection",get:function(){return 0!==Ir(Nn,this).size}},{key:"isEnterHandled",get:function(){return 1===Ir(Nn,this).size&&this.firstSelectedEditor.isEnterHandled}},{key:"undo",value:function(){Ir(vn,this).undo(),Fr(Xn,this,ci).call(this,{hasSomethingToUndo:Ir(vn,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:Fr(Xn,this,pi).call(this)})}},{key:"redo",value:function(){Ir(vn,this).redo(),Fr(Xn,this,ci).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:Ir(vn,this).hasSomethingToRedo(),isEmpty:Fr(Xn,this,pi).call(this)})}},{key:"addCommands",value:function(t){Ir(vn,this).add(t),Fr(Xn,this,ci).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:Fr(Xn,this,pi).call(this)})}},{key:"delete",value:function(){var t=this;if(this.commitOrRemove(),this.hasSelection){var e=xr(Ir(Nn,this));this.addCommands({cmd:function(){var t,r=Dr(e);try{for(r.s();!(t=r.n()).done;)t.value.remove()}catch(t){r.e(t)}finally{r.f()}},undo:function(){var r,n=Dr(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;Fr(Xn,t,vi).call(t,i)}}catch(t){n.e(t)}finally{n.f()}},mustExec:!0})}}},{key:"commitOrRemove",value:function(){var t;null===(t=Ir(un,this))||void 0===t||t.commitOrRemove()}},{key:"hasSomethingToControl",value:function(){return Ir(un,this)||this.hasSelection}},{key:"selectAll",value:function(){var t,e=Dr(Ir(Nn,this));try{for(e.s();!(t=e.n()).done;)t.value.commit()}catch(t){e.e(t)}finally{e.f()}Fr(Xn,this,yi).call(this,Ir(cn,this).values())}},{key:"unselectAll",value:function(){if((!Ir(un,this)||(Ir(un,this).commitOrRemove(),Ir(Dn,this)===A.NONE))&&this.hasSelection){var t,e=Dr(Ir(Nn,this));try{for(e.s();!(t=e.n()).done;)t.value.unselect()}catch(t){e.e(t)}finally{e.f()}Ir(Nn,this).clear(),Fr(Xn,this,ci).call(this,{hasSelectedEditor:!1})}}},{key:"translateSelectedEditors",value:function(t,e){var r=this;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){Ir(Un,this)[0]+=t,Ir(Un,this)[1]+=e;var n=Ar(Ir(Un,this),2),i=n[0],a=n[1],o=xr(Ir(Nn,this));Ir(zn,this)&&clearTimeout(Ir(zn,this)),Rr(zn,this,setTimeout((function(){Rr(zn,r,null),Ir(Un,r)[0]=Ir(Un,r)[1]=0,r.addCommands({cmd:function(){var t,e=Dr(o);try{for(e.s();!(t=e.n()).done;){var n=t.value;Ir(cn,r).has(n.id)&&n.translateInPage(i,a)}}catch(t){e.e(t)}finally{e.f()}},undo:function(){var t,e=Dr(o);try{for(e.s();!(t=e.n()).done;){var n=t.value;Ir(cn,r).has(n.id)&&n.translateInPage(-i,-a)}}catch(t){e.e(t)}finally{e.f()}},mustExec:!1})}),1e3));var s,u=Dr(o);try{for(u.s();!(s=u.n()).done;)s.value.translateInPage(t,e)}catch(t){u.e(t)}finally{u.f()}}}},{key:"setUpDragSession",value:function(){if(this.hasSelection){this.disableUserSelect(!0),Rr(mn,this,new Map);var t,e=Dr(Ir(Nn,this));try{for(e.s();!(t=e.n()).done;){var r=t.value;Ir(mn,this).set(r,{savedX:r.x,savedY:r.y,savedPageIndex:r.pageIndex,newX:0,newY:0,newPageIndex:-1})}}catch(t){e.e(t)}finally{e.f()}}}},{key:"endDragSession",value:function(){var t=this;if(!Ir(mn,this))return!1;this.disableUserSelect(!1);var e=Ir(mn,this);Rr(mn,this,null);var r,n=!1,i=Dr(e);try{for(i.s();!(r=i.n()).done;){var a=Ar(r.value,2),o=a[0],s=o.x,u=o.y,c=o.pageIndex,l=a[1];l.newX=s,l.newY=u,l.newPageIndex=c,n||(n=s!==l.savedX||u!==l.savedY||c!==l.savedPageIndex)}}catch(t){i.e(t)}finally{i.f()}if(!n)return!1;var h=function(e,r,n,i){if(Ir(cn,t).has(e.id)){var a=Ir(ln,t).get(i);a?e._setParentAndPosition(a,r,n):(e.pageIndex=i,e.x=r,e.y=n)}};return this.addCommands({cmd:function(){var t,r=Dr(e);try{for(r.s();!(t=r.n()).done;){var n=Ar(t.value,2),i=n[0],a=n[1],o=a.newX,s=a.newY,u=a.newPageIndex;h(i,o,s,u)}}catch(t){r.e(t)}finally{r.f()}},undo:function(){var t,r=Dr(e);try{for(r.s();!(t=r.n()).done;){var n=Ar(t.value,2),i=n[0],a=n[1],o=a.savedX,s=a.savedY,u=a.savedPageIndex;h(i,o,s,u)}}catch(t){r.e(t)}finally{r.f()}},mustExec:!0}),!0}},{key:"dragSelectedEditors",value:function(t,e){if(Ir(mn,this)){var r,n=Dr(Ir(mn,this).keys());try{for(n.s();!(r=n.n()).done;)r.value.drag(t,e)}catch(t){n.e(t)}finally{n.f()}}}},{key:"rebuild",value:function(t){if(null===t.parent){var e=this.getLayer(t.pageIndex);e?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}},{key:"isEditorHandlingKeyboard",get:function(){var t;return(null===(t=this.getActive())||void 0===t?void 0:t.shouldGetKeyboardEvents())||1===Ir(Nn,this).size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}},{key:"isActive",value:function(t){return Ir(un,this)===t}},{key:"getActive",value:function(){return Ir(un,this)}},{key:"getMode",value:function(){return Ir(Dn,this)}},{key:"imageManager",get:function(){return W(this,"imageManager",new Yr)}},{key:"getSelectionBoxes",value:function(t){if(!t)return null;for(var e=document.getSelection(),r=0,n=e.rangeCount;r<n;r++)if(!t.contains(e.getRangeAt(r).commonAncestorContainer))return null;var i,a=t.getBoundingClientRect(),o=a.x,s=a.y,u=a.width,c=a.height;switch(t.getAttribute("data-main-rotation")){case"90":i=function(t,e,r,n){return{x:(e-s)/c,y:1-(t+r-o)/u,width:n/c,height:r/u}};break;case"180":i=function(t,e,r,n){return{x:1-(t+r-o)/u,y:1-(e+n-s)/c,width:r/u,height:n/c}};break;case"270":i=function(t,e,r,n){return{x:1-(e+n-s)/c,y:(t-o)/u,width:n/c,height:r/u}};break;default:i=function(t,e,r,n){return{x:(t-o)/u,y:(e-s)/c,width:r/u,height:n/c}}}for(var l=[],h=0,f=e.rangeCount;h<f;h++){var d=e.getRangeAt(h);if(!d.collapsed){var v,p=Dr(d.getClientRects());try{for(p.s();!(v=p.n()).done;){var y=v.value,g=y.x,m=y.y,b=y.width,w=y.height;0!==b&&0!==w&&l.push(i(g,m,b,w))}}catch(t){p.e(t)}finally{p.f()}}}return 0===l.length?null:l}},{key:"addChangedExistingAnnotation",value:function(t){var e=t.annotationElementId,r=t.id;(Ir(dn,this)||Rr(dn,this,new Map)).set(e,r)}},{key:"removeChangedExistingAnnotation",value:function(t){var e,r=t.annotationElementId;null===(e=Ir(dn,this))||void 0===e||e.delete(r)}},{key:"renderAnnotationElement",value:function(t){var e,r=null===(e=Ir(dn,this))||void 0===e?void 0:e.get(t.data.id);if(r){var n=Ir(fn,this).getRawValue(r);n&&(Ir(Dn,this)!==A.NONE||n.hasBeenModified)&&n.renderAnnotationElement(t)}}}],[{key:"_keyboardManager",get:function(){var e=t.prototype,r=function(t){return Ir(Vn,t).contains(document.activeElement)&&"BUTTON"!==document.activeElement.tagName&&t.hasSomethingToControl()},n=function(t,e){var r=e.target;if(r instanceof HTMLInputElement){var n=r.type;return"text"!==n&&"number"!==n}return!0},i=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return W(this,"_keyboardManager",new rn([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],e.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:n}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:function(t,e){var r=e.target;return!(r instanceof HTMLButtonElement)&&Ir(Vn,t).contains(r)&&!t.isEnterHandled}}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:function(t,e){return!(e.target instanceof HTMLButtonElement)&&Ir(Vn,t).contains(document.activeElement)}}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:r}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:r}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:r}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:r}]]))}}]);var e,r}();function Qn(t){var e=t.anchorNode;return e.nodeType===Node.TEXT_NODE?e.parentElement:e}function Jn(t){var e=this.currentLayer;if(e.hasTextLayer(t))return e;var r,n=Dr(Ir(ln,this).values());try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.hasTextLayer(t))return i}}catch(t){n.e(t)}finally{n.f()}return null}function $n(){var t=document.getSelection();if(t&&!t.isCollapsed){var e=Fr(Xn,this,Qn).call(this,t).closest(".textLayer"),r=this.getSelectionBoxes(e);r&&(Ir(Pn,this)||Rr(Pn,this,new gr(this)),Ir(Pn,this).show(e,r,"ltr"===this.direction))}}function Zn(){var t,e=this,r=document.getSelection();if(r&&!r.isCollapsed){var n=r.anchorNode;if(n!==Ir(Wn,this)){var i,a=Fr(Xn,this,Qn).call(this,r).closest(".textLayer");if(a){if(null===(t=Ir(Pn,this))||void 0===t||t.hide(),Rr(Wn,this,n),Fr(Xn,this,ci).call(this,{hasSelectedText:!0}),(Ir(Dn,this)===A.HIGHLIGHT||Ir(Dn,this)===A.NONE)&&(Ir(Dn,this)===A.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),Rr(Tn,this,this.isShiftKeyDown),!this.isShiftKeyDown)){var o=Ir(Dn,this)===A.HIGHLIGHT?Fr(Xn,this,Jn).call(this,a):null;null==o||o.toggleDrawing();var s=new AbortController,u=this.combinedSignal(s),c=function(t){"pointerup"===t.type&&0!==t.button||(s.abort(),null==o||o.toggleDrawing(!0),"pointerup"===t.type&&Fr(Xn,e,ti).call(e,"main_toolbar"))};window.addEventListener("pointerup",c,{signal:u}),window.addEventListener("blur",c,{signal:u})}}else Ir(Wn,this)&&(null===(i=Ir(Pn,this))||void 0===i||i.hide(),Rr(Wn,this,null),Fr(Xn,this,ci).call(this,{hasSelectedText:!1}))}}else{var l;Ir(Wn,this)&&(null===(l=Ir(Pn,this))||void 0===l||l.hide(),Rr(Wn,this,null),Fr(Xn,this,ci).call(this,{hasSelectedText:!1}))}}function ti(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Ir(Dn,this)===A.HIGHLIGHT?this.highlightSelection(t):Ir(kn,this)&&Fr(Xn,this,$n).call(this)}function ei(){document.addEventListener("selectionchange",Fr(Xn,this,Zn).bind(this),{signal:this._signal})}function ri(){if(!Ir(Sn,this)){Rr(Sn,this,new AbortController);var t=this.combinedSignal(Ir(Sn,this));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})}}function ni(){var t;null===(t=Ir(Sn,this))||void 0===t||t.abort(),Rr(Sn,this,null)}function ii(){if(!Ir(jn,this)){Rr(jn,this,new AbortController);var t=this.combinedSignal(Ir(jn,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})}}function ai(){var t;null===(t=Ir(jn,this))||void 0===t||t.abort(),Rr(jn,this,null)}function oi(){if(!Ir(pn,this)){Rr(pn,this,new AbortController);var t=this.combinedSignal(Ir(pn,this));document.addEventListener("copy",this.copy.bind(this),{signal:t}),document.addEventListener("cut",this.cut.bind(this),{signal:t}),document.addEventListener("paste",this.paste.bind(this),{signal:t})}}function si(){var t;null===(t=Ir(pn,this))||void 0===t||t.abort(),Rr(pn,this,null)}function ui(){var t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}function ci(t){var e=this;Object.entries(t).some((function(t){var r=Ar(t,2),n=r[0],i=r[1];return Ir(Hn,e)[n]!==i}))&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(Ir(Hn,this),t)}),Ir(Dn,this)===A.HIGHLIGHT&&!1===t.hasSelectedEditor&&Fr(Xn,this,li).call(this,[[_.HIGHLIGHT_FREE,!0]]))}function li(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}function hi(){return fi.apply(this,arguments)}function fi(){return(fi=Sr(_r().mark((function t(){var e,r,n,i,a,o;return _r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ir(Mn,this)){t.next=9;break}Rr(Mn,this,!0),e=[],r=Dr(Ir(ln,this).values());try{for(r.s();!(n=r.n()).done;)i=n.value,e.push(i.enable())}catch(t){r.e(t)}finally{r.f()}return t.next=7,Promise.all(e);case 7:a=Dr(Ir(cn,this).values());try{for(a.s();!(o=a.n()).done;)o.value.enable()}catch(t){a.e(t)}finally{a.f()}case 9:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function di(){if(this.unselectAll(),Ir(Mn,this)){Rr(Mn,this,!1);var t,e=Dr(Ir(ln,this).values());try{for(e.s();!(t=e.n()).done;)t.value.disable()}catch(t){e.e(t)}finally{e.f()}var r,n=Dr(Ir(cn,this).values());try{for(n.s();!(r=n.n()).done;)r.value.disable()}catch(t){n.e(t)}finally{n.f()}}}function vi(t){var e=Ir(ln,this).get(t.pageIndex);e?e.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}function pi(){if(0===Ir(cn,this).size)return!0;if(1===Ir(cn,this).size){var t,e=Dr(Ir(cn,this).values());try{for(e.s();!(t=e.n()).done;)return t.value.isEmpty()}catch(t){e.e(t)}finally{e.f()}}return!1}function yi(t){var e,r=Dr(Ir(Nn,this));try{for(r.s();!(e=r.n()).done;)e.value.unselect()}catch(t){r.e(t)}finally{r.f()}Ir(Nn,this).clear();var n,i=Dr(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.isEmpty()||(Ir(Nn,this).add(a),a.select())}}catch(t){i.e(t)}finally{i.f()}Fr(Xn,this,ci).call(this,{hasSelectedEditor:this.hasSelection})}function gi(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function bi(){bi=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function wi(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ki(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){wi(a,n,i,o,s,"next",t)}function s(t){wi(a,n,i,o,s,"throw",t)}o(void 0)}))}}function xi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ai(n.key),n)}}function Ai(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function _i(t,e,r){Ei(t,e),e.set(t,r)}function Ei(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Si(t,e,r){return r(Pi(t,e))}function Oi(t,e){return t.get(Pi(t,e))}function Ti(t,e,r){return t.set(Pi(t,e),r),r}function Pi(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}kr(Kn,"TRANSLATE_SMALL",1),kr(Kn,"TRANSLATE_BIG",10);var Li=new WeakMap,Mi=new WeakMap,Ci=new WeakMap,ji=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,Fi=new WeakMap,Di=new WeakMap,Ni=new WeakMap,Wi=new WeakMap,Bi=new WeakMap,Gi=new WeakSet,Hi=function(){function t(e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ei(this,r=Gi),r.add(this),_i(this,Li,null),_i(this,Mi,!1),_i(this,Ci,null),_i(this,ji,null),_i(this,Ii,null),_i(this,Ri,!1),_i(this,Fi,null),_i(this,Di,null),_i(this,Ni,null),_i(this,Wi,null),_i(this,Bi,!1),Ti(Di,this,e),Ti(Bi,this,e._uiManager.useNewAltTextFlow),Ki._||(Ki._=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button-label"}))}return e=t,r=[{key:"render",value:function(){var e=ki(bi().mark((function e(){var r,n,i,a,o=this;return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=Ti(Ci,this,document.createElement("button"))).className="altText",!Oi(Bi,this)){e.next=9;break}return r.classList.add("new"),e.next=6,t._l10nPromise.get(Ki._.missing);case 6:n=e.sent,e.next=12;break;case 9:return e.next=11,t._l10nPromise.get("pdfjs-editor-alt-text-button-label");case 11:n=e.sent;case 12:return r.textContent=n,r.setAttribute("aria-label",n),r.tabIndex="0",i=Oi(Di,this)._uiManager._signal,r.addEventListener("contextmenu",Te,{signal:i}),r.addEventListener("pointerdown",(function(t){return t.stopPropagation()}),{signal:i}),a=function(t){t.preventDefault(),Oi(Di,o)._uiManager.editAltText(Oi(Di,o)),Oi(Bi,o)&&Oi(Di,o)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:Si(Gi,o,Ui)}})},r.addEventListener("click",a,{capture:!0,signal:i}),r.addEventListener("keydown",(function(t){t.target===r&&"Enter"===t.key&&(Ti(Ri,o,!0),a(t))}),{signal:i}),e.next=23,Pi(Gi,this,zi).call(this);case 23:return e.abrupt("return",r);case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"finish",value:function(){Oi(Ci,this)&&(Oi(Ci,this).focus({focusVisible:Oi(Ri,this)}),Ti(Ri,this,!1))}},{key:"isEmpty",value:function(){return Oi(Bi,this)?null===Oi(Li,this):!Oi(Li,this)&&!Oi(Mi,this)}},{key:"hasData",value:function(){return Oi(Bi,this)?null!==Oi(Li,this)||!!Oi(Ni,this):this.isEmpty()}},{key:"guessedText",get:function(){return Oi(Ni,this)}},{key:"setGuessedText",value:(i=ki(bi().mark((function e(r){return bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===Oi(Li,this)){e.next=2;break}return e.abrupt("return");case 2:return Ti(Ni,this,r),e.t0=Ti,e.t1=Wi,e.t2=this,e.next=8,t._l10nPromise.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer")({generatedAltText:r});case 8:e.t3=e.sent,(0,e.t0)(e.t1,e.t2,e.t3),Pi(Gi,this,zi).call(this);case 11:case"end":return e.stop()}}),e,this)}))),function(t){return i.apply(this,arguments)})},{key:"toggleAltTextBadge",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!Oi(Bi,this)||Oi(Li,this))return null===(t=Oi(Fi,this))||void 0===t||t.remove(),void Ti(Fi,this,null);if(!Oi(Fi,this)){var r=Ti(Fi,this,document.createElement("div"));r.className="noAltTextBadge",Oi(Di,this).div.append(r)}Oi(Fi,this).classList.toggle("hidden",!e)}},{key:"serialize",value:function(t){var e=Oi(Li,this);return t||Oi(Ni,this)!==e||(e=Oi(Wi,this)),{altText:e,decorative:Oi(Mi,this),guessedText:Oi(Ni,this),textWithDisclaimer:Oi(Wi,this)}}},{key:"data",get:function(){return{altText:Oi(Li,this),decorative:Oi(Mi,this)}},set:function(t){var e=t.altText,r=t.decorative,n=t.guessedText,i=t.textWithDisclaimer,a=t.cancel,o=void 0!==a&&a;n&&(Ti(Ni,this,n),Ti(Wi,this,i)),Oi(Li,this)===e&&Oi(Mi,this)===r||(o||(Ti(Li,this,e),Ti(Mi,this,r)),Pi(Gi,this,zi).call(this))}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Oi(Ci,this)&&(!t&&Oi(Ii,this)&&(clearTimeout(Oi(Ii,this)),Ti(Ii,this,null)),Oi(Ci,this).disabled=!t)}},{key:"shown",value:function(){Oi(Di,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:Si(Gi,this,Ui)}})}},{key:"destroy",value:function(){var t,e;null===(t=Oi(Ci,this))||void 0===t||t.remove(),Ti(Ci,this,null),Ti(ji,this,null),null===(e=Oi(Fi,this))||void 0===e||e.remove(),Ti(Fi,this,null)}}],n=[{key:"initialize",value:function(e){t._l10nPromise||(t._l10nPromise=e)}}],r&&xi(e.prototype,r),n&&xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n,i}();function Ui(t){return(Oi(Li,t)?"added":null===Oi(Li,t)&&t.guessedText&&"review")||"missing"}function zi(){return Vi.apply(this,arguments)}function Vi(){return(Vi=ki(bi().mark((function t(){var e,r,n,i,a,o,s=this;return bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=Oi(Ci,this)){t.next=3;break}return t.abrupt("return");case 3:if(!Oi(Bi,this)){t.next=11;break}if(e.classList.toggle("done",!!Oi(Li,this)),on._l10nPromise.get(Ki._[Si(Gi,this,Ui)]).then((function(t){e.setAttribute("aria-label",t);var r,n=gi(e.childNodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.nodeType===Node.TEXT_NODE){i.textContent=t;break}}}catch(t){n.e(t)}finally{n.f()}})),Oi(Li,this)){t.next=9;break}return null===(r=Oi(ji,this))||void 0===r||r.remove(),t.abrupt("return");case 9:t.next=17;break;case 11:if(Oi(Li,this)||Oi(Mi,this)){t.next=15;break}return e.classList.remove("done"),null===(n=Oi(ji,this))||void 0===n||n.remove(),t.abrupt("return");case 15:e.classList.add("done"),on._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then((function(t){e.setAttribute("aria-label",t)}));case 17:if((i=Oi(ji,this))||(Ti(ji,this,i=document.createElement("span")),i.className="tooltip",i.setAttribute("role","tooltip"),i.id="alt-text-tooltip-".concat(Oi(Di,this).id),(a=Oi(Di,this)._uiManager._signal).addEventListener("abort",(function(){clearTimeout(Oi(Ii,s)),Ti(Ii,s,null)}),{once:!0}),e.addEventListener("mouseenter",(function(){Ti(Ii,s,setTimeout((function(){Ti(Ii,s,null),Oi(ji,s).classList.add("show"),Oi(Di,s)._reportTelemetry({action:"alt_text_tooltip"})}),100))}),{signal:a}),e.addEventListener("mouseleave",(function(){var t;Oi(Ii,s)&&(clearTimeout(Oi(Ii,s)),Ti(Ii,s,null)),null===(t=Oi(ji,s))||void 0===t||t.classList.remove("show")}),{signal:a})),!Oi(Mi,this)){t.next=25;break}return t.next=22,on._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip");case 22:t.t0=t.sent,t.next=26;break;case 25:t.t0=Oi(Li,this);case 26:i.innerText=t.t0,i.parentNode||e.append(i),null==(o=Oi(Di,this).getImageForAltText())||o.setAttribute("aria-describedby",i.id);case 30:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}on=Hi;var qi,Yi,Xi,Ki={_:null};function Qi(t,e,r){return e=$i(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,Ji()?Reflect.construct(e,r||[],$i(t).constructor):e.apply(t,r))}function Ji(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ji=function(){return!!t})()}function $i(t){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$i(t)}function Zi(t,e){return Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zi(t,e)}function ta(t){return function(t){if(Array.isArray(t))return sa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||oa(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ea(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=oa(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ra(){ra=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function na(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ia(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){na(a,n,i,o,s,"next",t)}function s(t){na(a,n,i,o,s,"throw",t)}o(void 0)}))}}function aa(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||oa(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oa(t,e){if(t){if("string"==typeof t)return sa(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sa(t,e):void 0}}function sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ua(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ca(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fa(n.key),n)}}function la(t,e,r){return e&&ca(t.prototype,e),r&&ca(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ha(t,e,r){return(e=fa(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fa(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function da(t,e,r){va(t,e),e.set(t,r)}function va(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pa(t,e,r){return t.set(ga(t,e),r),r}function ya(t,e){return t.get(ga(t,e))}function ga(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}qi=Hi,(Yi=Ai(Yi="_l10nPromise"))in qi?Object.defineProperty(qi,Yi,{value:null,enumerable:!0,configurable:!0,writable:!0}):qi[Yi]=null;var ma=new WeakMap,ba=new WeakMap,wa=new WeakMap,ka=new WeakMap,xa=new WeakMap,Aa=new WeakMap,_a=new WeakMap,Ea=new WeakMap,Sa=new WeakMap,Oa=new WeakMap,Ta=new WeakMap,Pa=new WeakMap,La=new WeakMap,Ma=new WeakMap,Ca=new WeakMap,ja=new WeakMap,Ia=new WeakMap,Ra=new WeakMap,Fa=new WeakMap,Da=new WeakMap,Na=new WeakSet,Wa=function(){function t(e){ua(this,t),function(t,e){va(t,e),e.add(t)}(this,Na),da(this,ma,null),da(this,ba,null),da(this,wa,null),da(this,ka,!1),da(this,xa,!1),da(this,Aa,null),da(this,_a,null),da(this,Ea,null),da(this,Sa,""),da(this,Oa,!1),da(this,Ta,null),da(this,Pa,!1),da(this,La,!1),da(this,Ma,!1),da(this,Ca,null),da(this,ja,0),da(this,Ia,0),da(this,Ra,null),ha(this,"_editToolbar",null),ha(this,"_initialOptions",Object.create(null)),ha(this,"_initialData",null),ha(this,"_isVisible",!0),ha(this,"_uiManager",null),ha(this,"_focusEventsAllowed",!0),da(this,Fa,!1),da(this,Da,t._zIndex++),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;var r=this.parent.viewport,n=r.rotation,i=r.rawDims,a=i.pageWidth,o=i.pageHeight,s=i.pageX,u=i.pageY;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[a,o],this.pageTranslation=[s,u];var c=aa(this.parentDimensions,2),l=c[0],h=c[1];this.x=e.x/l,this.y=e.y/h,this.isAttachedToDOM=!1,this.deleted=!1}return la(t,[{key:"editorType",get:function(){return Object.getPrototypeOf(this).constructor._type}},{key:"propertiesToUpdate",get:function(){return[]}},{key:"_isDraggable",get:function(){return ya(Fa,this)},set:function(t){var e;pa(Fa,this,t),null===(e=this.div)||void 0===e||e.classList.toggle("draggable",t)}},{key:"isEnterHandled",get:function(){return!0}},{key:"center",value:function(){var t=aa(this.pageDimensions,2),e=t[0],r=t[1];switch(this.parentRotation){case 90:this.x-=this.height*r/(2*e),this.y+=this.width*e/(2*r);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*r/(2*e),this.y-=this.width*e/(2*r);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}},{key:"addCommands",value:function(t){this._uiManager.addCommands(t)}},{key:"currentLayer",get:function(){return this._uiManager.currentLayer}},{key:"setInBackground",value:function(){this.div.style.zIndex=0}},{key:"setInForeground",value:function(){this.div.style.zIndex=ya(Da,this)}},{key:"setParent",value:function(t){null!==t?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):ga(Na,this,to).call(this),this.parent=t}},{key:"focusin",value:function(t){this._focusEventsAllowed&&(ya(Oa,this)?pa(Oa,this,!1):this.parent.setSelected(this))}},{key:"focusout",value:function(t){var e;if(this._focusEventsAllowed&&this.isAttachedToDOM){var r=t.relatedTarget;null!=r&&r.closest("#".concat(this.id))||(t.preventDefault(),null!==(e=this.parent)&&void 0!==e&&e.isMultipleSelection||this.commitOrRemove())}}},{key:"commitOrRemove",value:function(){this.isEmpty()?this.remove():this.commit()}},{key:"commit",value:function(){this.addToAnnotationStorage()}},{key:"addToAnnotationStorage",value:function(){this._uiManager.addToAnnotationStorage(this)}},{key:"setAt",value:function(t,e,r,n){var i=aa(this.parentDimensions,2),a=i[0],o=i[1],s=aa(this.screenToPageTranslation(r,n),2);r=s[0],n=s[1],this.x=(t+r)/a,this.y=(e+n)/o,this.fixAndSetPosition()}},{key:"translate",value:function(t,e){ga(Na,this,Ba).call(this,this.parentDimensions,t,e)}},{key:"translateInPage",value:function(t,e){ya(Ta,this)||pa(Ta,this,[this.x,this.y]),ga(Na,this,Ba).call(this,this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"})}},{key:"drag",value:function(t,e){ya(Ta,this)||pa(Ta,this,[this.x,this.y]);var r=aa(this.parentDimensions,2),n=r[0],i=r[1];if(this.x+=t/n,this.y+=e/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){var a=this.div.getBoundingClientRect(),o=a.x,s=a.y;this.parent.findNewParent(this,o,s)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var u=this.x,c=this.y,l=aa(this.getBaseTranslation(),2);u+=l[0],c+=l[1],this.div.style.left="".concat((100*u).toFixed(2),"%"),this.div.style.top="".concat((100*c).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}},{key:"_hasBeenMoved",get:function(){return!!ya(Ta,this)&&(ya(Ta,this)[0]!==this.x||ya(Ta,this)[1]!==this.y)}},{key:"getBaseTranslation",value:function(){var e=aa(this.parentDimensions,2),r=e[0],n=e[1],i=t._borderLineWidth,a=i/r,o=i/n;switch(this.rotation){case 90:return[-a,o];case 180:return[a,o];case 270:return[a,-o];default:return[-a,-o]}}},{key:"_mustFixPosition",get:function(){return!0}},{key:"fixAndSetPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rotation,e=aa(this.pageDimensions,2),r=e[0],n=e[1],i=this.x,a=this.y,o=this.width,s=this.height;if(o*=r,s*=n,i*=r,a*=n,this._mustFixPosition)switch(t){case 0:i=Math.max(0,Math.min(r-o,i)),a=Math.max(0,Math.min(n-s,a));break;case 90:i=Math.max(0,Math.min(r-s,i)),a=Math.min(n,Math.max(o,a));break;case 180:i=Math.min(r,Math.max(o,i)),a=Math.min(n,Math.max(s,a));break;case 270:i=Math.min(r,Math.max(s,i)),a=Math.max(0,Math.min(n-o,a))}this.x=i/=r,this.y=a/=n;var u=aa(this.getBaseTranslation(),2);i+=u[0],a+=u[1];var c=this.div.style;c.left="".concat((100*i).toFixed(2),"%"),c.top="".concat((100*a).toFixed(2),"%"),this.moveInDOM()}},{key:"screenToPageTranslation",value:function(e,r){return Ga.call(t,e,r,this.parentRotation)}},{key:"pageTranslationToScreen",value:function(e,r){return Ga.call(t,e,r,360-this.parentRotation)}},{key:"parentScale",get:function(){return this._uiManager.viewParameters.realScale}},{key:"parentRotation",get:function(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}},{key:"parentDimensions",get:function(){var t=this.parentScale,e=aa(this.pageDimensions,2);return[e[0]*t,e[1]*t]}},{key:"setDims",value:function(t,e){var r=aa(this.parentDimensions,2),n=r[0],i=r[1];this.div.style.width="".concat((100*t/n).toFixed(2),"%"),ya(xa,this)||(this.div.style.height="".concat((100*e/i).toFixed(2),"%"))}},{key:"fixDims",value:function(){var t=this.div.style,e=t.height,r=t.width,n=r.endsWith("%"),i=!ya(xa,this)&&e.endsWith("%");if(!n||!i){var a=aa(this.parentDimensions,2),o=a[0],s=a[1];n||(t.width="".concat((100*parseFloat(r)/o).toFixed(2),"%")),ya(xa,this)||i||(t.height="".concat((100*parseFloat(e)/s).toFixed(2),"%"))}}},{key:"getInitialTranslation",value:function(){return[0,0]}},{key:"altTextFinish",value:function(){var t;null===(t=ya(wa,this))||void 0===t||t.finish()}},{key:"addEditToolbar",value:(i=ia(ra().mark((function t(){return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._editToolbar&&!ya(La,this)){t.next=2;break}return t.abrupt("return",this._editToolbar);case 2:if(this._editToolbar=new ir(this),this.div.append(this._editToolbar.render()),!ya(wa,this)){t.next=7;break}return t.next=7,this._editToolbar.addAltText(ya(wa,this));case 7:return t.abrupt("return",this._editToolbar);case 8:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"removeEditToolbar",value:function(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,null===(t=ya(wa,this))||void 0===t||t.destroy())}},{key:"addContainer",value:function(t){var e,r=null===(e=this._editToolbar)||void 0===e?void 0:e.div;r?r.before(t):this.div.append(t)}},{key:"getClientDimensions",value:function(){return this.div.getBoundingClientRect()}},{key:"addAltTextButton",value:(n=ia(ra().mark((function e(){return ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ya(wa,this)){e.next=2;break}return e.abrupt("return");case 2:return Hi.initialize(t._l10nPromise),pa(wa,this,new Hi(this)),ya(ma,this)&&(ya(wa,this).data=ya(ma,this),pa(ma,this,null)),e.next=7,this.addEditToolbar();case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"altTextData",get:function(){var t;return null===(t=ya(wa,this))||void 0===t?void 0:t.data},set:function(t){ya(wa,this)&&(ya(wa,this).data=t)}},{key:"guessedAltText",get:function(){var t;return null===(t=ya(wa,this))||void 0===t?void 0:t.guessedText}},{key:"setGuessedAltText",value:(r=ia(ra().mark((function t(e){var r;return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(r=ya(wa,this))||void 0===r?void 0:r.setGuessedText(e);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"serializeAltText",value:function(t){var e;return null===(e=ya(wa,this))||void 0===e?void 0:e.serialize(t)}},{key:"hasAltText",value:function(){return!!ya(wa,this)&&!ya(wa,this).isEmpty()}},{key:"hasAltTextData",value:function(){var t,e;return null!==(t=null===(e=ya(wa,this))||void 0===e?void 0:e.hasData())&&void 0!==t&&t}},{key:"render",value:function(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=ya(ka,this)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),ga(Na,this,Ka).call(this);var t=aa(this.parentDimensions,2),e=t[0],r=t[1];this.parentRotation%180!=0&&(this.div.style.maxWidth="".concat((100*r/e).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*e/r).toFixed(2),"%"));var n=aa(this.getInitialTranslation(),2),i=n[0],a=n[1];return this.translate(i,a),Br(this,this.div,["pointerdown"]),this.div}},{key:"pointerdown",value:function(t){var e=J.platform.isMac;0!==t.button||t.ctrlKey&&e?t.preventDefault():(pa(Oa,this,!0),this._isDraggable?ga(Na,this,Xa).call(this,t):ga(Na,this,Ya).call(this,t))}},{key:"isSelected",get:function(){return this._uiManager.isSelected(this)}},{key:"moveInDOM",value:function(){var t=this;ya(Ca,this)&&clearTimeout(ya(Ca,this)),pa(Ca,this,setTimeout((function(){var e;pa(Ca,t,null),null===(e=t.parent)||void 0===e||e.moveEditorInDOM(t)}),0))}},{key:"_setParentAndPosition",value:function(t,e,r){t.changeParent(this),this.x=e,this.y=r,this.fixAndSetPosition()}},{key:"getRect",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.rotation,n=this.parentScale,i=aa(this.pageDimensions,2),a=i[0],o=i[1],s=aa(this.pageTranslation,2),u=s[0],c=s[1],l=t/n,h=e/n,f=this.x*a,d=this.y*o,v=this.width*a,p=this.height*o;switch(r){case 0:return[f+l+u,o-d-h-p+c,f+l+v+u,o-d-h+c];case 90:return[f+h+u,o-d+l+c,f+h+p+u,o-d+l+v+c];case 180:return[f-l-v+u,o-d+h+c,f-l+u,o-d+h+p+c];case 270:return[f-h-p+u,o-d-l-v+c,f-h+u,o-d-l+c];default:throw new Error("Invalid rotation")}}},{key:"getRectInCurrentCoords",value:function(t,e){var r=aa(t,4),n=r[0],i=r[1],a=r[2],o=r[3],s=a-n,u=o-i;switch(this.rotation){case 0:return[n,e-o,s,u];case 90:return[n,e-i,u,s];case 180:return[a,e-i,s,u];case 270:return[a,e-o,u,s];default:throw new Error("Invalid rotation")}}},{key:"onceAdded",value:function(){}},{key:"isEmpty",value:function(){return!1}},{key:"enableEditMode",value:function(){pa(La,this,!0)}},{key:"disableEditMode",value:function(){pa(La,this,!1)}},{key:"isInEditMode",value:function(){return ya(La,this)}},{key:"shouldGetKeyboardEvents",value:function(){return ya(Ma,this)}},{key:"needsToBeRebuilt",value:function(){return this.div&&!this.isAttachedToDOM}},{key:"rebuild",value:function(){ga(Na,this,Ka).call(this)}},{key:"rotate",value:function(t){}},{key:"serializeDeleted",value:function(){var t;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:(null===(t=this._initialData)||void 0===t?void 0:t.popupRef)||""}}},{key:"serialize",value:function(){F("An editor must be serializable")}},{key:"hasBeenModified",get:function(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}},{key:"remove",value:function(){var t;if(null===(t=ya(Ea,this))||void 0===t||t.abort(),pa(Ea,this,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),ya(Ca,this)&&(clearTimeout(ya(Ca,this)),pa(Ca,this,null)),ga(Na,this,to).call(this),this.removeEditToolbar(),ya(Ra,this)){var e,r=ea(ya(Ra,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;clearTimeout(n)}}catch(t){r.e(t)}finally{r.f()}pa(Ra,this,null)}this.parent=null}},{key:"isResizable",get:function(){return!1}},{key:"makeResizable",value:function(){this.isResizable&&(ga(Na,this,Ua).call(this),ya(Aa,this).classList.remove("hidden"),Br(this,this.div,["keydown"]))}},{key:"toolbarPosition",get:function(){return null}},{key:"keydown",value:function(e){if(this.isResizable&&e.target===this.div&&"Enter"===e.key){this._uiManager.setSelected(this),pa(_a,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});var r=ya(Aa,this).children;if(!ya(ba,this)){pa(ba,this,Array.from(r));var n,i=ga(Na,this,Qa).bind(this),a=ga(Na,this,Ja).bind(this),o=this._uiManager._signal,s=ea(ya(ba,this));try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",i,{signal:o}),u.addEventListener("blur",a,{signal:o}),u.addEventListener("focus",ga(Na,this,$a).bind(this,c),{signal:o}),u.setAttribute("data-l10n-id",t._l10nResizer[c])}}catch(t){s.e(t)}finally{s.f()}}var l,h=ya(ba,this)[0],f=0,d=ea(r);try{for(d.s();!(l=d.n()).done&&l.value!==h;)f++}catch(t){d.e(t)}finally{d.f()}var v=(360-this.rotation+this.parentRotation)%360/90*(ya(ba,this).length/4);if(v!==f){if(v<f)for(var p=0;p<f-v;p++)ya(Aa,this).append(ya(Aa,this).firstChild);else if(v>f)for(var y=0;y<v-f;y++)ya(Aa,this).firstChild.before(ya(Aa,this).lastChild);var g,m=0,b=ea(r);try{for(b.s();!(g=b.n()).done;){var w=g.value,k=ya(ba,this)[m++].getAttribute("data-resizer-name");w.setAttribute("data-l10n-id",t._l10nResizer[k])}}catch(t){b.e(t)}finally{b.f()}}ga(Na,this,Za).call(this,0),pa(Ma,this,!0),ya(Aa,this).firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}}},{key:"_resizeWithKeyboard",value:function(t,e){ya(Ma,this)&&ga(Na,this,qa).call(this,ya(Sa,this),{movementX:t,movementY:e})}},{key:"_stopResizingWithKeyboard",value:function(){ga(Na,this,to).call(this),this.div.focus()}},{key:"select",value:function(){var t,e,r,n=this;this.makeResizable(),null===(t=this.div)||void 0===t||t.classList.add("selectedEditor"),this._editToolbar?(null===(e=this._editToolbar)||void 0===e||e.show(),null===(r=ya(wa,this))||void 0===r||r.toggleAltTextBadge(!1)):this.addEditToolbar().then((function(){var t,e;null!==(t=n.div)&&void 0!==t&&t.classList.contains("selectedEditor")&&(null===(e=n._editToolbar)||void 0===e||e.show())}))}},{key:"unselect",value:function(){var t,e,r,n,i;null===(t=ya(Aa,this))||void 0===t||t.classList.add("hidden"),null===(e=this.div)||void 0===e||e.classList.remove("selectedEditor"),null!==(r=this.div)&&void 0!==r&&r.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),null===(n=this._editToolbar)||void 0===n||n.hide(),null===(i=ya(wa,this))||void 0===i||i.toggleAltTextBadge(!0)}},{key:"updateParams",value:function(t,e){}},{key:"disableEditing",value:function(){}},{key:"enableEditing",value:function(){}},{key:"enterInEditMode",value:function(){}},{key:"getImageForAltText",value:function(){return null}},{key:"contentDiv",get:function(){return this.div}},{key:"isEditing",get:function(){return ya(Pa,this)},set:function(t){pa(Pa,this,t),this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}},{key:"setAspectRatio",value:function(t,e){pa(xa,this,!0);var r=t/e,n=this.div.style;n.aspectRatio=r,n.height="auto"}},{key:"telemetryInitialData",get:function(){return{action:"added"}}},{key:"telemetryFinalData",get:function(){return null}},{key:"_reportTelemetry",value:function(e){var r=this;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){ya(Ra,this)||pa(Ra,this,new Map);var n=e.action,i=ya(Ra,this).get(n);return i&&clearTimeout(i),i=setTimeout((function(){r._reportTelemetry(e),ya(Ra,r).delete(n),0===ya(Ra,r).size&&pa(Ra,r,null)}),t._telemetryTimeout),void ya(Ra,this).set(n,i)}e.type||(e.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;this.div.classList.toggle("hidden",!t),this._isVisible=t}},{key:"enable",value:function(){this.div&&(this.div.tabIndex=0),pa(ka,this,!1)}},{key:"disable",value:function(){this.div&&(this.div.tabIndex=-1),pa(ka,this,!0)}},{key:"renderAnnotationElement",value:function(t){var e=t.container.querySelector(".annotationContent");if(e){if("CANVAS"===e.nodeName){var r=e;(e=document.createElement("div")).classList.add("annotationContent",this.editorType),r.before(e)}}else(e=document.createElement("div")).classList.add("annotationContent",this.editorType),t.container.prepend(e);return e}},{key:"resetAnnotationElement",value:function(t){var e=t.container.firstChild;"DIV"===(null==e?void 0:e.nodeName)&&e.classList.contains("annotationContent")&&e.remove()}}],[{key:"_resizerKeyboardManager",get:function(){var e=t.prototype._resizeWithKeyboard,r=Kn.TRANSLATE_SMALL,n=Kn.TRANSLATE_BIG;return W(this,"_resizerKeyboardManager",new rn([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],t.prototype._stopResizingWithKeyboard]]))}},{key:"_defaultLineColor",get:function(){return W(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}},{key:"deleteAnnotationElement",value:function(t){var e=new eo({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}},{key:"initialize",value:function(e,r,n){if(t._l10nResizer||(t._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),t._l10nPromise||(t._l10nPromise=new Map([].concat(ta(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-new-alt-text-added-button-label","pdfjs-editor-new-alt-text-missing-button-label","pdfjs-editor-new-alt-text-to-review-button-label"].map((function(t){return[t,e.get(t)]}))),ta(["pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer"].map((function(t){return[t,e.get.bind(e,t)]})))))),null!=n&&n.strings){var i,a=ea(n.strings);try{for(a.s();!(i=a.n()).done;){var o=i.value;t._l10nPromise.set(o,e.get(o))}}catch(t){a.e(t)}finally{a.f()}}if(-1===t._borderLineWidth){var s=getComputedStyle(document.documentElement);t._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}}},{key:"updateDefaultParams",value:function(t,e){}},{key:"defaultPropertiesToUpdate",get:function(){return[]}},{key:"isHandlingMimeForPasting",value:function(t){return!1}},{key:"paste",value:function(t,e){F("Not implemented")}},{key:"deserialize",value:(e=ia(ra().mark((function t(e,r,n){var i,a,o,s,u,c,l,h,f,d;return ra().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n})).rotation=e.rotation,pa(ma,i,e.accessibilityData),a=aa(i.pageDimensions,2),o=a[0],s=a[1],u=i.getRectInCurrentCoords(e.rect,s),c=aa(u,4),l=c[0],h=c[1],f=c[2],d=c[3],i.x=l/o,i.y=h/s,i.width=f/o,i.height=d/s,t.abrupt("return",i);case 10:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"MIN_SIZE",get:function(){return 16}},{key:"canCreateNewEmptyEditor",value:function(){return!0}}]);var e,r,n,i}();function Ba(t,e,r){var n=aa(t,2),i=n[0],a=n[1],o=aa(this.screenToPageTranslation(e,r),2);e=o[0],r=o[1],this.x+=e/i,this.y+=r/a,this.fixAndSetPosition()}function Ga(t,e,r){switch(r){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}function Ha(t){switch(t){case 90:var e=aa(this.pageDimensions,2),r=e[0],n=e[1];return[0,-r/n,n/r,0];case 180:return[-1,0,0,-1];case 270:var i=aa(this.pageDimensions,2),a=i[0],o=i[1];return[0,a/o,-o/a,0];default:return[1,0,0,1]}}function Ua(){if(!ya(Aa,this)){pa(Aa,this,document.createElement("div")),ya(Aa,this).classList.add("resizers");for(var t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal,r=0,n=t;r<n.length;r++){var i=n[r],a=document.createElement("div");ya(Aa,this).append(a),a.classList.add("resizer",i),a.setAttribute("data-resizer-name",i),a.addEventListener("pointerdown",ga(Na,this,za).bind(this,i),{signal:e}),a.addEventListener("contextmenu",Te,{signal:e}),a.tabIndex=-1}this.div.prepend(ya(Aa,this))}}function za(t,e){var r,n=this;e.preventDefault();var i=J.platform.isMac;if(!(0!==e.button||e.ctrlKey&&i)){null===(r=ya(wa,this))||void 0===r||r.toggle(!1);var a=this._isDraggable;this._isDraggable=!1;var o=new AbortController,s=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",ga(Na,this,qa).bind(this,t),{passive:!0,capture:!0,signal:s}),window.addEventListener("contextmenu",Te,{signal:s});var u=this.x,c=this.y,l=this.width,h=this.height,f=this.parent.div.style.cursor,d=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;var v=function(){var t;o.abort(),n.parent.togglePointerEvents(!0),null===(t=ya(wa,n))||void 0===t||t.toggle(!0),n._isDraggable=a,n.parent.div.style.cursor=f,n.div.style.cursor=d,ga(Na,n,Va).call(n,u,c,l,h)};window.addEventListener("pointerup",v,{signal:s}),window.addEventListener("blur",v,{signal:s})}}function Va(t,e,r,n){var i=this,a=this.x,o=this.y,s=this.width,u=this.height;a===t&&o===e&&s===r&&u===n||this.addCommands({cmd:function(){i.width=s,i.height=u,i.x=a,i.y=o;var t=aa(i.parentDimensions,2),e=t[0],r=t[1];i.setDims(e*s,r*u),i.fixAndSetPosition()},undo:function(){i.width=r,i.height=n,i.x=t,i.y=e;var a=aa(i.parentDimensions,2),o=a[0],s=a[1];i.setDims(o*r,s*n),i.fixAndSetPosition()},mustExec:!0})}function qa(t,e){var r,n,i=aa(this.parentDimensions,2),a=i[0],o=i[1],s=this.x,u=this.y,c=this.width,l=this.height,h=Xi.MIN_SIZE/a,f=Xi.MIN_SIZE/o,d=function(t){return Math.round(1e4*t)/1e4},v=ga(Na,this,Ha).call(this,this.rotation),p=function(t,e){return[v[0]*t+v[2]*e,v[1]*t+v[3]*e]},y=ga(Na,this,Ha).call(this,360-this.rotation),g=!1,m=!1;switch(t){case"topLeft":g=!0,r=function(t,e){return[0,0]},n=function(t,e){return[t,e]};break;case"topMiddle":r=function(t,e){return[t/2,0]},n=function(t,e){return[t/2,e]};break;case"topRight":g=!0,r=function(t,e){return[t,0]},n=function(t,e){return[0,e]};break;case"middleRight":m=!0,r=function(t,e){return[t,e/2]},n=function(t,e){return[0,e/2]};break;case"bottomRight":g=!0,r=function(t,e){return[t,e]},n=function(t,e){return[0,0]};break;case"bottomMiddle":r=function(t,e){return[t/2,e]},n=function(t,e){return[t/2,0]};break;case"bottomLeft":g=!0,r=function(t,e){return[0,e]},n=function(t,e){return[t,0]};break;case"middleLeft":m=!0,r=function(t,e){return[0,e/2]},n=function(t,e){return[t,e/2]}}var b,w,k=r(c,l),x=n(c,l),A=p.apply(void 0,ta(x)),_=d(s+A[0]),E=d(u+A[1]),S=1,O=1,T=aa(this.screenToPageTranslation(e.movementX,e.movementY),2),P=T[0],L=T[1],M=aa((b=P/a,w=L/o,[y[0]*b+y[2]*w,y[1]*b+y[3]*w]),2);if(P=M[0],L=M[1],g){var C=Math.hypot(c,l);S=O=Math.max(Math.min(Math.hypot(x[0]-k[0]-P,x[1]-k[1]-L)/C,1/c,1/l),h/c,f/l)}else m?S=Math.max(h,Math.min(1,Math.abs(x[0]-k[0]-P)))/c:O=Math.max(f,Math.min(1,Math.abs(x[1]-k[1]-L)))/l;var j=d(c*S),I=d(l*O),R=_-(A=p.apply(void 0,ta(n(j,I))))[0],F=E-A[1];this.width=j,this.height=I,this.x=R,this.y=F,this.setDims(a*j,o*I),this.fixAndSetPosition()}function Ya(t){var e=J.platform.isMac;t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)}function Xa(t){var e=this,r=this.isSelected;this._uiManager.setUpDragSession();var n=new AbortController,i=this._uiManager.combinedSignal(n);r&&(this.div.classList.add("moving"),pa(ja,this,t.clientX),pa(Ia,this,t.clientY),window.addEventListener("pointermove",(function(t){var r=t.clientX,n=t.clientY,i=aa(e.screenToPageTranslation(r-ya(ja,e),n-ya(Ia,e)),2),a=i[0],o=i[1];pa(ja,e,r),pa(Ia,e,n),e._uiManager.dragSelectedEditors(a,o)}),{passive:!0,capture:!0,signal:i}));var a=function(){n.abort(),r&&e.div.classList.remove("moving"),pa(Oa,e,!1),e._uiManager.endDragSession()||ga(Na,e,Ya).call(e,t)};window.addEventListener("pointerup",a,{signal:i}),window.addEventListener("blur",a,{signal:i})}function Ka(){if(!ya(Ea,this)&&this.div){pa(Ea,this,new AbortController);var t=this._uiManager.combinedSignal(ya(Ea,this));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})}}function Qa(t){Xi._resizerKeyboardManager.exec(this,t)}function Ja(t){var e;ya(Ma,this)&&(null===(e=t.relatedTarget)||void 0===e?void 0:e.parentNode)!==ya(Aa,this)&&ga(Na,this,to).call(this)}function $a(t){pa(Sa,this,ya(Ma,this)?t:"")}function Za(t){if(ya(ba,this)){var e,r=ea(ya(ba,this));try{for(r.s();!(e=r.n()).done;)e.value.tabIndex=t}catch(t){r.e(t)}finally{r.f()}}}function to(){if(pa(Ma,this,!1),ga(Na,this,Za).call(this,-1),ya(_a,this)){var t=ya(_a,this),e=t.savedX,r=t.savedY,n=t.savedWidth,i=t.savedHeight;ga(Na,this,Va).call(this,e,r,n,i),pa(_a,this,null)}}Xi=Wa,ha(Wa,"_l10nPromise",null),ha(Wa,"_l10nResizer",null),ha(Wa,"_borderLineWidth",-1),ha(Wa,"_colorManager",new an),ha(Wa,"_zIndex",1),ha(Wa,"_telemetryTimeout",1e3);var eo=function(t){function e(t){var r;return ua(this,e),(r=Qi(this,e,[t])).annotationElementId=t.annotationElementId,r.deleted=!0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zi(t,e)}(e,Wa),la(e,[{key:"serialize",value:function(){return this.serializeDeleted()}}])}();function ro(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,no(n.key),n)}}function no(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var io=3285377520,ao=4294901760,oo=65535,so=function(){return function(t,e,r){return e&&ro(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.h1=e?4294967295&e:io,this.h2=e?4294967295&e:io}),[{key:"update",value:function(t){var e,r;if("string"==typeof t){e=new Uint8Array(2*t.length),r=0;for(var n=0,i=t.length;n<i;n++){var a=t.charCodeAt(n);a<=255?e[r++]=a:(e[r++]=a>>>8,e[r++]=255&a)}}else{if(!ArrayBuffer.isView(t))throw new Error("Invalid data format, must be a string or TypedArray.");r=(e=t.slice()).byteLength}for(var o=r>>2,s=r-4*o,u=new Uint32Array(e.buffer,0,o),c=0,l=0,h=this.h1,f=this.h2,d=3432918353,v=461845907,p=11601,y=13715,g=0;g<o;g++)1&g?h=5*(h=(h^=c=(c=(c=(c=u[g])*d&ao|c*p&oo)<<15|c>>>17)*v&ao|c*y&oo)<<13|h>>>19)+3864292196:f=5*(f=(f^=l=(l=(l=(l=u[g])*d&ao|l*p&oo)<<15|l>>>17)*v&ao|l*y&oo)<<13|f>>>19)+3864292196;switch(c=0,s){case 3:c^=e[4*o+2]<<16;case 2:c^=e[4*o+1]<<8;case 1:c=(c=(c=(c^=e[4*o])*d&ao|c*p&oo)<<15|c>>>17)*v&ao|c*y&oo,1&o?h^=c:f^=c}this.h1=h,this.h2=f}},{key:"hexdigest",value:function(){var t=this.h1,e=this.h2;return t=3981806797*(t^=e>>>1)&ao|36045*t&oo,t=444984403*(t^=(e=4283543511*e&ao|(2950163797*(e<<16|t>>>16)&ao)>>>16)>>>1)&ao|60499*t&oo,((t^=(e=3301882366*e&ao|(3120437893*(e<<16|t>>>16)&ao)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}])}();function uo(t,e,r){return e=lo(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,co()?Reflect.construct(e,r||[],lo(t).constructor):e.apply(t,r))}function co(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(co=function(){return!!t})()}function lo(t){return lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lo(t)}function ho(t,e){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ho(t,e)}function fo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||po(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vo(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=po(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function po(t,e){if(t){if("string"==typeof t)return yo(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yo(t,e):void 0}}function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wo(n.key),n)}}function bo(t,e,r){return e&&mo(t.prototype,e),r&&mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wo(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function ko(t,e,r){xo(t,e),e.set(t,r)}function xo(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ao(t,e,r){return t.set(Eo(t,e),r),r}function _o(t,e){return t.get(Eo(t,e))}function Eo(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var So=Object.freeze({map:null,hash:"",transfer:void 0}),Oo=new WeakMap,To=new WeakMap,Po=new WeakMap,Lo=new WeakSet,Mo=function(){return bo((function t(){go(this,t),function(t,e){xo(t,e),e.add(t)}(this,Lo),ko(this,Oo,!1),ko(this,To,null),ko(this,Po,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}),[{key:"getValue",value:function(t,e){var r=_o(Po,this).get(t);return void 0===r?e:Object.assign(e,r)}},{key:"getRawValue",value:function(t){return _o(Po,this).get(t)}},{key:"remove",value:function(t){if(_o(Po,this).delete(t),0===_o(Po,this).size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){var e,r=vo(_o(Po,this).values());try{for(r.s();!(e=r.n()).done;)if(e.value instanceof Wa)return}catch(t){r.e(t)}finally{r.f()}this.onAnnotationEditor(null)}}},{key:"setValue",value:function(t,e){var r=_o(Po,this).get(t),n=!1;if(void 0!==r)for(var i=0,a=Object.entries(e);i<a.length;i++){var o=fo(a[i],2),s=o[0],u=o[1];r[s]!==u&&(n=!0,r[s]=u)}else n=!0,_o(Po,this).set(t,e);n&&Eo(Lo,this,Co).call(this),e instanceof Wa&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(e.constructor._type)}},{key:"has",value:function(t){return _o(Po,this).has(t)}},{key:"getAll",value:function(){return _o(Po,this).size>0?Q(_o(Po,this)):null}},{key:"setAll",value:function(t){for(var e=0,r=Object.entries(t);e<r.length;e++){var n=fo(r[e],2),i=n[0],a=n[1];this.setValue(i,a)}}},{key:"size",get:function(){return _o(Po,this).size}},{key:"resetModified",value:function(){_o(Oo,this)&&(Ao(Oo,this,!1),"function"==typeof this.onResetModified&&this.onResetModified())}},{key:"print",get:function(){return new Io(this)}},{key:"serializable",get:function(){if(0===_o(Po,this).size)return So;var t,e=new Map,r=new so,n=[],i=Object.create(null),a=!1,o=vo(_o(Po,this));try{for(o.s();!(t=o.n()).done;){var s=fo(t.value,2),u=s[0],c=s[1],l=c instanceof Wa?c.serialize(!1,i):c;l&&(e.set(u,l),r.update("".concat(u,":").concat(JSON.stringify(l))),a||(a=!!l.bitmap))}}catch(t){o.e(t)}finally{o.f()}if(a){var h,f=vo(e.values());try{for(f.s();!(h=f.n()).done;){var d=h.value;d.bitmap&&n.push(d.bitmap)}}catch(t){f.e(t)}finally{f.f()}}return e.size>0?{map:e,hash:r.hexdigest(),transfer:n}:So}},{key:"editorStats",get:function(){var t,e=null,r=new Map,n=vo(_o(Po,this).values());try{for(n.s();!(t=n.n()).done;){var i,a=t.value;if(a instanceof Wa){var o=a.telemetryFinalData;if(o){var s=o.type;r.has(s)||r.set(s,Object.getPrototypeOf(a).constructor),e||(e=Object.create(null));for(var u=(i=e)[s]||(i[s]=new Map),c=0,l=Object.entries(o);c<l.length;c++){var h,f=fo(l[c],2),d=f[0],v=f[1];if("type"!==d){var p=u.get(d);p||(p=new Map,u.set(d,p));var y=null!==(h=p.get(v))&&void 0!==h?h:0;p.set(v,y+1)}}}}}}catch(t){n.e(t)}finally{n.f()}var g,m=vo(r);try{for(m.s();!(g=m.n()).done;){var b=fo(g.value,2),w=b[0],k=b[1];e[w]=k.computeTelemetryFinalData(e[w])}}catch(t){m.e(t)}finally{m.f()}return e}},{key:"resetModifiedIds",value:function(){Ao(To,this,null)}},{key:"modifiedIds",get:function(){if(_o(To,this))return _o(To,this);var t,e=[],r=vo(_o(Po,this).values());try{for(r.s();!(t=r.n()).done;){var n=t.value;n instanceof Wa&&n.annotationElementId&&n.serialize()&&e.push(n.annotationElementId)}}catch(t){r.e(t)}finally{r.f()}return Ao(To,this,{ids:new Set(e),hash:e.join(",")})}}])}();function Co(){_o(Oo,this)||(Ao(Oo,this,!0),"function"==typeof this.onSetModified&&this.onSetModified())}var jo=new WeakMap,Io=function(t){function e(t){var r;go(this,e),ko(r=uo(this,e),jo,void 0);var n=t.serializable,i=n.map,a=n.hash,o=n.transfer,s=structuredClone(i,o?{transfer:o}:null);return Ao(jo,r,{map:s,hash:a,transfer:o}),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ho(t,e)}(e,Mo),bo(e,[{key:"print",get:function(){F("Should not call PrintAnnotationStorage.print")}},{key:"serializable",get:function(){return _o(jo,this)}},{key:"modifiedIds",get:function(){return W(this,"modifiedIds",{ids:new Set,hash:""})}}])}();function Ro(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Wo(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(){Fo=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Do(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function No(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Do(a,n,i,o,s,"next",t)}function s(t){Do(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Wo(t,e){if(t){if("string"==typeof t)return Bo(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bo(t,e):void 0}}function Bo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zo(n.key),n)}}function Uo(t,e,r){return e&&Ho(t.prototype,e),r&&Ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zo(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Vo(t,e){return t.get(function(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}(t,e))}r(6625);var qo=new WeakMap,Yo=function(){return Uo((function t(e){var r=e.ownerDocument,n=void 0===r?globalThis.document:r;e.styleElement,Go(this,t),function(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}(this,qo,new Set),this._document=n,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}),[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}},{key:"removeNativeFontFace",value:function(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}},{key:"insertRule",value:function(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}},{key:"clear",value:function(){var t,e=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Wo(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(this.nativeFontFaces);try{for(e.s();!(t=e.n()).done;){var r=t.value;this._document.fonts.delete(r)}}catch(t){e.e(t)}finally{e.f()}this.nativeFontFaces.clear(),Vo(qo,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"loadSystemFont",value:(e=No(Fo().mark((function t(e){var r,n,i,a,o,s;return Fo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.systemFontInfo,n=e._inspectFont,r&&!Vo(qo,this).has(r.loadedName)){t.next=3;break}return t.abrupt("return");case 3:if(D(!this.disableFontFace,"loadSystemFont shouldn\'t be called when `disableFontFace` is set."),!this.isFontLoadingAPISupported){t.next=20;break}return i=r.loadedName,a=r.src,o=r.style,s=new FontFace(i,a,o),this.addNativeFontFace(s),t.prev=8,t.next=11,s.load();case 11:Vo(qo,this).add(i),null==n||n(r),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(8),R("Cannot load system font: ".concat(r.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(s);case 19:return t.abrupt("return");case 20:F("Not implemented: loadSystemFont without the Font Loading API.");case 21:case"end":return t.stop()}}),t,this,[[8,15]])}))),function(t){return e.apply(this,arguments)})},{key:"bind",value:(t=No(Fo().mark((function t(e){var r,n,i=this;return Fo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.attached||e.missingFile&&!e.systemFontInfo)){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!e.systemFontInfo){t.next=7;break}return t.next=6,this.loadSystemFont(e);case 6:case 21:return t.abrupt("return");case 7:if(!this.isFontLoadingAPISupported){t.next=22;break}if(!(r=e.createNativeFontFace())){t.next=21;break}return this.addNativeFontFace(r),t.prev=11,t.next=14,r.loaded;case 14:t.next=21;break;case 16:throw t.prev=16,t.t0=t.catch(11),R("Failed to load font \'".concat(r.family,"\': \'").concat(t.t0,"\'.")),e.disableFontFace=!0,t.t0;case 22:if(!(n=e.createFontFaceRule())){t.next=29;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){t.next=27;break}return t.abrupt("return");case 27:return t.next=29,new Promise((function(t){var r=i._queueLoadingCallback(t);i._prepareFontLoadEvent(e,r)}));case 29:case"end":return t.stop()}}),t,this,[[11,16]])}))),function(e){return t.apply(this,arguments)})},{key:"isFontLoadingAPISupported",get:function(){var t;return W(this,"isFontLoadingAPISupported",!(null===(t=this._document)||void 0===t||!t.fonts))}},{key:"isSyncFontLoadingSupported",get:function(){var t,e=!1;return(m||"undefined"!=typeof navigator&&"string"==typeof(null===(t=navigator)||void 0===t?void 0:t.userAgent)&&/Mozilla\\/5.0.*?rv:\\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),W(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(t){var e=this.loadingRequests,r={done:!1,complete:function(){for(D(!r.done,"completeRequest() cannot be called twice."),r.done=!0;e.length>0&&e[0].done;){var t=e.shift();setTimeout(t.callback,0)}},callback:t};return e.push(r),r}},{key:"_loadTestFont",get:function(){return W(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(t,e){function r(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function n(t,e,r,n){return t.substring(0,e)+n+t.substring(e+r)}var i,a,o=this._document.createElement("canvas");o.width=1,o.height=1;var s,u=o.getContext("2d"),c=0,l="lt".concat(Date.now()).concat(this.loadTestFontId++),h=this._loadTestFont,f=1482184792,d=r(h=n(h,976,l.length,l),16);for(i=0,a=l.length-3;i<a;i+=4)d=d-f+r(l,i)|0;i<l.length&&(d=d-f+r(l+"XXX",i)|0),h=n(h,16,4,(s=d,String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,255&s)));var v="url(data:font/opentype;base64,".concat(btoa(h),");"),p=\'@font-face {font-family:"\'.concat(l,\'";src:\').concat(v,"}");this.insertRule(p);var y=this._document.createElement("div");y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px";for(var g=0,m=[t.loadedName,l];g<m.length;g++){var b=m[g],w=this._document.createElement("span");w.textContent="Hi",w.style.fontFamily=b,y.append(w)}this._document.body.append(y),function t(e,r){if(++c>30)return R("Load test font never loaded."),void r();u.font="30px "+e,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?r():setTimeout(t.bind(null,e,r))}(l,(function(){y.remove(),e.complete()}))}}]);var t,e}(),Xo=function(){return Uo((function t(e,r){var n=r.disableFontFace,i=void 0!==n&&n,a=r.inspectFont,o=void 0===a?null:a;for(var s in Go(this,t),this.compiledGlyphs=Object.create(null),e)this[s]=e[s];this.disableFontFace=!0===i,this._inspectFont=o}),[{key:"createNativeFontFace",value:function(){var t,e;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),e=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else e=new FontFace(this.loadedName,this.data,{});return null===(t=this._inspectFont)||void 0===t||t.call(this,this),e}},{key:"createFontFaceRule",value:function(){var t;if(!this.data||this.disableFontFace)return null;var e,r=X(this.data),n="url(data:".concat(this.mimetype,";base64,").concat(btoa(r),");");if(this.cssFontInfo){var i="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(i+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),e=\'@font-face {font-family:"\'.concat(this.cssFontInfo.fontFamily,\'";\').concat(i,"src:").concat(n,"}")}else e=\'@font-face {font-family:"\'.concat(this.loadedName,\'";src:\').concat(n,"}");return null===(t=this._inspectFont)||void 0===t||t.call(this,this,n),e}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var r;try{r=t.get(this.loadedName+"_path_"+e)}catch(t){R(\'getPathGenerator - ignoring character: "\'.concat(t,\'".\'))}if(!Array.isArray(r)||0===r.length)return this.compiledGlyphs[e]=function(t,e){};for(var n=[],i=function(t){switch(r[t++]){case 0:var e=Ro(r.slice(t,t+6),6),i=e[0],o=e[1],s=e[2],u=e[3],c=e[4],l=e[5];n.push((function(t){return t.bezierCurveTo(i,o,s,u,c,l)})),t+=6;break;case 1:var h=Ro(r.slice(t,t+2),2),f=h[0],d=h[1];n.push((function(t){return t.moveTo(f,d)})),t+=2;break;case 2:var v=Ro(r.slice(t,t+2),2),p=v[0],y=v[1];n.push((function(t){return t.lineTo(p,y)})),t+=2;break;case 3:var g=Ro(r.slice(t,t+4),4),m=g[0],b=g[1],w=g[2],k=g[3];n.push((function(t){return t.quadraticCurveTo(m,b,w,k)})),t+=4;break;case 4:n.push((function(t){return t.restore()}));break;case 5:n.push((function(t){return t.save()}));break;case 6:D(2===n.length,"Scale command is only valid at the third position.");break;case 7:var x=Ro(r.slice(t,t+6),6),A=x[0],_=x[1],E=x[2],S=x[3],O=x[4],T=x[5];n.push((function(t){return t.transform(A,_,E,S,O,T)})),t+=6;break;case 8:var P=Ro(r.slice(t,t+2),2),L=P[0],M=P[1];n.push((function(t){return t.translate(L,M)})),t+=2}a=t},a=0,o=r.length;a<o;)i(a);return this.compiledGlyphs[e]=function(t,e){n[0](t),n[1](t),t.scale(e,-e);for(var r=2,i=n.length;r<i;r++)n[r](t)}}}])}();function Ko(t,e,r){return e=Jo(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,Qo()?Reflect.construct(e,r||[],Jo(t).constructor):e.apply(t,r))}function Qo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Qo=function(){return!!t})()}function Jo(t){return Jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jo(t)}function $o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zo(t,e)}function Zo(t,e){return Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zo(t,e)}function ts(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function es(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ns(n.key),n)}}function rs(t,e,r){return e&&es(t.prototype,e),r&&es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ns(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function is(){is=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function as(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}if(m){var os=Promise.withResolvers(),ss=null,us=function(){var t,e=(t=is().mark((function t(){var e,r,n,i,a,o;return is().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,import("fs");case 2:return e=t.sent,t.next=5,import("http");case 5:return r=t.sent,t.next=8,import("https");case 8:return n=t.sent,t.next=11,import("url");case 11:return i=t.sent,t.prev=12,t.next=15,import("canvas");case 15:a=t.sent,t.next=20;break;case 18:t.prev=18,t.t0=t.catch(12);case 20:return t.prev=20,t.next=23,import("path2d");case 23:o=t.sent,t.next=28;break;case 26:t.prev=26,t.t1=t.catch(20);case 28:return t.abrupt("return",new Map(Object.entries({fs:e,http:r,https:n,url:i,canvas:a,path2d:o})));case 29:case"end":return t.stop()}}),t,null,[[12,18],[20,26]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){as(a,n,i,o,s,"next",t)}function s(t){as(a,n,i,o,s,"throw",t)}o(void 0)}))});return function(){return e.apply(this,arguments)}}();us().then((function(t){if(ss=t,os.resolve(),!globalThis.DOMMatrix){var e,r=null===(e=t.get("canvas"))||void 0===e?void 0:e.DOMMatrix;r?globalThis.DOMMatrix=r:R("Cannot polyfill `DOMMatrix`, rendering may be broken.")}if(!globalThis.Path2D){var n,i,a,o=null===(n=t.get("canvas"))||void 0===n?void 0:n.CanvasRenderingContext2D,s=null===(i=t.get("path2d"))||void 0===i?void 0:i.applyPath2DToCanvasRenderingContext,u=null===(a=t.get("path2d"))||void 0===a?void 0:a.Path2D;o&&s&&u?(s(o),globalThis.Path2D=u):R("Cannot polyfill `Path2D`, rendering may be broken.")}}),(function(t){R("loadPackages: ".concat(t)),ss=new Map,os.resolve()}))}var cs=function(){return rs((function t(){ts(this,t)}),null,[{key:"promise",get:function(){return os.promise}},{key:"get",value:function(t){var e;return null===(e=ss)||void 0===e?void 0:e.get(t)}}])}(),ls=function(t){return cs.get("fs").promises.readFile(t).then((function(t){return new Uint8Array(t)}))},hs=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,pt),rs(e)}(),fs=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,gt),rs(e,[{key:"_createCanvas",value:function(t,e){return cs.get("canvas").createCanvas(t,e)}}])}(),ds=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,mt),rs(e,[{key:"_fetchData",value:function(t,e){return ls(t).then((function(t){return{cMapData:t,compressionType:e}}))}}])}(),vs=function(t){function e(){return ts(this,e),Ko(this,e,arguments)}return $o(e,bt),rs(e,[{key:"_fetchData",value:function(t){return ls(t)}}])}();function ps(t){return function(t){if(Array.isArray(t))return ms(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gs(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ys(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=gs(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function gs(t,e){if(t){if("string"==typeof t)return ms(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ms(t,e):void 0}}function ms(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function bs(t,e,r){return e=ks(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,ws()?Reflect.construct(e,r||[],ks(t).constructor):e.apply(t,r))}function ws(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ws=function(){return!!t})()}function ks(t){return ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ks(t)}function xs(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&As(t,e)}function As(t,e){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},As(t,e)}function _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Es(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Os(n.key),n)}}function Ss(t,e,r){return e&&Es(t.prototype,e),r&&Es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Os(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}r(1237);var Ts="Fill",Ps="Stroke",Ls="Shading";function Ms(t,e){if(e){var r=e[2]-e[0],n=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],r,n),t.clip(i)}}var Cs=function(){return Ss((function t(){_s(this,t)}),[{key:"getPattern",value:function(){F("Abstract method `getPattern` called.")}}])}(),js=function(t){function e(t){var r;return _s(this,e),(r=bs(this,e))._type=t[1],r._bbox=t[2],r._colorStops=t[3],r._p0=t[4],r._p1=t[5],r._r0=t[6],r._r1=t[7],r.matrix=null,r}return xs(e,Cs),Ss(e,[{key:"_createGradient",value:function(t){var e;"axial"===this._type?e=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(e=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var r,n=ys(this._colorStops);try{for(n.s();!(r=n.n()).done;){var i=r.value;e.addColorStop(i[0],i[1])}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getPattern",value:function(t,e,r,n){var i;if(n===Ps||n===Ts){var a=e.current.getClippedPathBoundingBox(n,je(t))||[0,0,0,0],o=Math.ceil(a[2]-a[0])||1,s=Math.ceil(a[3]-a[1])||1,u=e.cachedCanvases.getCanvas("pattern",o,s),c=u.context;c.clearRect(0,0,c.canvas.width,c.canvas.height),c.beginPath(),c.rect(0,0,c.canvas.width,c.canvas.height),c.translate(-a[0],-a[1]),r=Z.transform(r,[1,0,0,1,a[0],a[1]]),c.transform.apply(c,ps(e.baseTransform)),this.matrix&&c.transform.apply(c,ps(this.matrix)),Ms(c,this._bbox),c.fillStyle=this._createGradient(c),c.fill(),i=t.createPattern(u.canvas,"no-repeat");var l=new DOMMatrix(r);i.setTransform(l)}else Ms(t,this._bbox),i=this._createGradient(t);return i}}])}();function Is(t,e,r,n,i,a,o,s){var u,c=e.coords,l=e.colors,h=t.data,f=4*t.width;c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=a,a=o,o=u),c[n+1]>c[i+1]&&(u=n,n=i,i=u,u=o,o=s,s=u),c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=a,a=o,o=u);var d=(c[r]+e.offsetX)*e.scaleX,v=(c[r+1]+e.offsetY)*e.scaleY,p=(c[n]+e.offsetX)*e.scaleX,y=(c[n+1]+e.offsetY)*e.scaleY,g=(c[i]+e.offsetX)*e.scaleX,m=(c[i+1]+e.offsetY)*e.scaleY;if(!(v>=m))for(var b,w,k,x,A,_,E,S,O=l[a],T=l[a+1],P=l[a+2],L=l[o],M=l[o+1],C=l[o+2],j=l[s],I=l[s+1],R=l[s+2],F=Math.round(v),D=Math.round(m),N=F;N<=D;N++){if(N<y){var W=N<v?0:(v-N)/(v-y);b=d-(d-p)*W,w=O-(O-L)*W,k=T-(T-M)*W,x=P-(P-C)*W}else{var B;b=p-(p-g)*(B=N>m?1:y===m?0:(y-N)/(y-m)),w=L-(L-j)*B,k=M-(M-I)*B,x=C-(C-R)*B}var G=void 0;A=d-(d-g)*(G=N<v?0:N>m?1:(v-N)/(v-m)),_=O-(O-j)*G,E=T-(T-I)*G,S=P-(P-R)*G;for(var H=Math.round(Math.min(b,A)),U=Math.round(Math.max(b,A)),z=f*N+4*H,V=H;V<=U;V++)(G=(b-V)/(b-A))<0?G=0:G>1&&(G=1),h[z++]=w-(w-_)*G|0,h[z++]=k-(k-E)*G|0,h[z++]=x-(x-S)*G|0,h[z++]=255}}function Rs(t,e,r){var n,i,a=e.coords,o=e.colors;switch(e.type){case"lattice":var s=e.verticesPerRow,u=Math.floor(a.length/s)-1,c=s-1;for(n=0;n<u;n++)for(var l=n*s,h=0;h<c;h++,l++)Is(t,r,a[l],a[l+1],a[l+s],o[l],o[l+1],o[l+s]),Is(t,r,a[l+s+1],a[l+1],a[l+s],o[l+s+1],o[l+1],o[l+s]);break;case"triangles":for(n=0,i=a.length;n<i;n+=3)Is(t,r,a[n],a[n+1],a[n+2],o[n],o[n+1],o[n+2]);break;default:throw new Error("illegal figure")}}var Fs=function(t){function e(t){var r;return _s(this,e),(r=bs(this,e))._coords=t[2],r._colors=t[3],r._figures=t[4],r._bounds=t[5],r._bbox=t[7],r._background=t[8],r.matrix=null,r}return xs(e,Cs),Ss(e,[{key:"_createMeshCanvas",value:function(t,e,r){var n=Math.floor(this._bounds[0]),i=Math.floor(this._bounds[1]),a=Math.ceil(this._bounds[2])-n,o=Math.ceil(this._bounds[3])-i,s=Math.min(Math.ceil(Math.abs(a*t[0]*1.1)),3e3),u=Math.min(Math.ceil(Math.abs(o*t[1]*1.1)),3e3),c=a/s,l=o/u,h={coords:this._coords,colors:this._colors,offsetX:-n,offsetY:-i,scaleX:1/c,scaleY:1/l},f=s+4,d=u+4,v=r.getCanvas("mesh",f,d),p=v.context,y=p.createImageData(s,u);if(e)for(var g=y.data,m=0,b=g.length;m<b;m+=4)g[m]=e[0],g[m+1]=e[1],g[m+2]=e[2],g[m+3]=255;var w,k=ys(this._figures);try{for(k.s();!(w=k.n()).done;)Rs(y,w.value,h)}catch(t){k.e(t)}finally{k.f()}return p.putImageData(y,2,2),{canvas:v.canvas,offsetX:n-2*c,offsetY:i-2*l,scaleX:c,scaleY:l}}},{key:"getPattern",value:function(t,e,r,n){var i;if(Ms(t,this._bbox),n===Ls)i=Z.singularValueDecompose2dScale(je(t));else if(i=Z.singularValueDecompose2dScale(e.baseTransform),this.matrix){var a=Z.singularValueDecompose2dScale(this.matrix);i=[i[0]*a[0],i[1]*a[1]]}var o=this._createMeshCanvas(i,n===Ls?null:this._background,e.cachedCanvases);return n!==Ls&&(t.setTransform.apply(t,ps(e.baseTransform)),this.matrix&&t.transform.apply(t,ps(this.matrix))),t.translate(o.offsetX,o.offsetY),t.scale(o.scaleX,o.scaleY),t.createPattern(o.canvas,"no-repeat")}}])}(),Ds=function(t){function e(){return _s(this,e),bs(this,e,arguments)}return xs(e,Cs),Ss(e,[{key:"getPattern",value:function(){return"hotpink"}}])}(),Ns=function(){function t(e,r,n,i,a){_s(this,t),this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=r,this.ctx=n,this.canvasGraphicsFactory=i,this.baseTransform=a}return Ss(t,[{key:"createPatternCanvas",value:function(t){var e=this.bbox,r=this.operatorList,n=this.paintType,i=this.tilingType,a=this.color,o=this.canvasGraphicsFactory,s=this.xstep,u=this.ystep;s=Math.abs(s),u=Math.abs(u),I("TilingType: "+i);var c=e[0],l=e[1],h=e[2],f=e[3],d=h-c,v=f-l,p=Z.singularValueDecompose2dScale(this.matrix),y=Z.singularValueDecompose2dScale(this.baseTransform),g=p[0]*y[0],m=p[1]*y[1],b=d,w=v,k=!1,x=!1,A=Math.ceil(s*g),_=Math.ceil(u*m);A>=Math.ceil(d*g)?b=s:k=!0,_>=Math.ceil(v*m)?w=u:x=!0;var E=this.getSizeAndScale(b,this.ctx.canvas.width,g),S=this.getSizeAndScale(w,this.ctx.canvas.height,m),O=t.cachedCanvases.getCanvas("pattern",E.size,S.size),T=O.context,P=o.createCanvasGraphics(T);if(P.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(P,n,a),T.translate(-E.scale*c,-S.scale*l),P.transform(E.scale,0,0,S.scale,0,0),T.save(),this.clipBbox(P,c,l,h,f),P.baseTransform=je(P.ctx),P.executeOperatorList(r),P.endDrawing(),T.restore(),k||x){var L=O.canvas;k&&(b=s),x&&(w=u);for(var M=this.getSizeAndScale(b,this.ctx.canvas.width,g),C=this.getSizeAndScale(w,this.ctx.canvas.height,m),j=M.size,R=C.size,F=t.cachedCanvases.getCanvas("pattern-workaround",j,R),D=F.context,N=k?Math.floor(d/s):0,W=x?Math.floor(v/u):0,B=0;B<=N;B++)for(var G=0;G<=W;G++)D.drawImage(L,j*B,R*G,j,R,0,0,j,R);return{canvas:F.canvas,scaleX:M.scale,scaleY:C.scale,offsetX:c,offsetY:l}}return{canvas:O.canvas,scaleX:E.scale,scaleY:S.scale,offsetX:c,offsetY:l}}},{key:"getSizeAndScale",value:function(e,r,n){var i=Math.max(t.MAX_PATTERN_SIZE,r),a=Math.ceil(e*n);return a>=i?a=i:n=a/e,{scale:n,size:a}}},{key:"clipBbox",value:function(t,e,r,n,i){var a=n-e,o=i-r;t.ctx.rect(e,r,a,o),t.current.updateRectMinMax(je(t.ctx),[e,r,n,i]),t.clip(),t.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(t,e,r){var n=t.ctx,i=t.current;switch(e){case 1:var a=this.ctx;n.fillStyle=a.fillStyle,n.strokeStyle=a.strokeStyle,i.fillColor=a.fillStyle,i.strokeColor=a.strokeStyle;break;case 2:var o=Z.makeHexColor(r[0],r[1],r[2]);n.fillStyle=o,n.strokeStyle=o,i.fillColor=o,i.strokeColor=o;break;default:throw new q("Unsupported paint type: ".concat(e))}}},{key:"getPattern",value:function(t,e,r,n){var i=r;n!==Ls&&(i=Z.transform(i,e.baseTransform),this.matrix&&(i=Z.transform(i,this.matrix)));var a=this.createPatternCanvas(e),o=new DOMMatrix(i);o=(o=o.translate(a.offsetX,a.offsetY)).scale(1/a.scaleX,1/a.scaleY);var s=t.createPattern(a.canvas,"repeat");return s.setTransform(o),s}}])}();function Ws(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Bs(t){var e=t.src,r=t.srcPos,n=void 0===r?0:r,i=t.dest,a=t.width,o=t.height,s=t.nonBlackColor,u=void 0===s?4294967295:s,c=t.inverseDecode,l=void 0!==c&&c,h=J.isLittleEndian?4278190080:255,f=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ws(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ws(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l?[u,h]:[h,u],2),d=f[0],v=f[1],p=a>>3,y=7&a,g=e.length;i=new Uint32Array(i.buffer);for(var m=0,b=0;b<o;b++){for(var w=n+p;n<w;n++){var k=n<g?e[n]:255;i[m++]=128&k?v:d,i[m++]=64&k?v:d,i[m++]=32&k?v:d,i[m++]=16&k?v:d,i[m++]=8&k?v:d,i[m++]=4&k?v:d,i[m++]=2&k?v:d,i[m++]=1&k?v:d}if(0!==y)for(var x=n<g?e[n++]:255,A=0;A<y;A++)i[m++]=x&1<<7-A?v:d}return{srcPos:n,destPos:m}}function Gs(t){return function(t){if(Array.isArray(t))return qs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Vs(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hs(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function Us(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Vs(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function zs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Vs(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vs(t,e){if(t){if("string"==typeof t)return qs(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qs(t,e):void 0}}function qs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ys(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qs(n.key),n)}}function Ks(t,e,r){return e&&Xs(t.prototype,e),r&&Xs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qs(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}!function(t,e,r){(e=Os(e))in t?Object.defineProperty(t,e,{value:3e3,enumerable:!0,configurable:!0,writable:!0}):t[e]=3e3}(Ns,"MAX_PATTERN_SIZE");var Js=16,$s=function(){return Ks((function t(e){Ys(this,t),this.canvasFactory=e,this.cache=Object.create(null)}),[{key:"getCanvas",value:function(t,e,r){var n;return void 0!==this.cache[t]?(n=this.cache[t],this.canvasFactory.reset(n,e,r)):(n=this.canvasFactory.create(e,r),this.cache[t]=n),n}},{key:"delete",value:function(t){delete this.cache[t]}},{key:"clear",value:function(){for(var t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}}])}();function Zs(t,e,r,n,i,a,o,s,u,c){var l=zs(je(t),6),h=l[0],f=l[1],d=l[2],v=l[3],p=l[4],y=l[5];if(0===f&&0===d){var g=o*h+p,m=Math.round(g),b=s*v+y,w=Math.round(b),k=(o+u)*h+p,x=Math.abs(Math.round(k)-m)||1,A=(s+c)*v+y,_=Math.abs(Math.round(A)-w)||1;return t.setTransform(Math.sign(h),0,0,Math.sign(v),m,w),t.drawImage(e,r,n,i,a,0,0,x,_),t.setTransform(h,f,d,v,p,y),[x,_]}if(0===h&&0===v){var E=s*d+p,S=Math.round(E),O=o*f+y,T=Math.round(O),P=(s+c)*d+p,L=Math.abs(Math.round(P)-S)||1,M=(o+u)*f+y,C=Math.abs(Math.round(M)-T)||1;return t.setTransform(0,Math.sign(f),Math.sign(d),0,S,T),t.drawImage(e,r,n,i,a,0,0,C,L),t.setTransform(h,f,d,v,p,y),[C,L]}return t.drawImage(e,r,n,i,a,o,s,u,c),[Math.hypot(h,f)*u,Math.hypot(d,v)*c]}var tu=function(){return Ks((function t(e,r){Ys(this,t),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=b,this.textMatrixScale=1,this.fontMatrix=w,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=0,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,r])}),[{key:"clone",value:function(){var t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}},{key:"updatePathMinMax",value:function(t,e,r){var n=zs(Z.applyTransform([e,r],t),2);e=n[0],r=n[1],this.minX=Math.min(this.minX,e),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,e),this.maxY=Math.max(this.maxY,r)}},{key:"updateRectMinMax",value:function(t,e){var r=Z.applyTransform(e,t),n=Z.applyTransform(e.slice(2),t),i=Z.applyTransform([e[0],e[3]],t),a=Z.applyTransform([e[2],e[1]],t);this.minX=Math.min(this.minX,r[0],n[0],i[0],a[0]),this.minY=Math.min(this.minY,r[1],n[1],i[1],a[1]),this.maxX=Math.max(this.maxX,r[0],n[0],i[0],a[0]),this.maxY=Math.max(this.maxY,r[1],n[1],i[1],a[1])}},{key:"updateScalingPathMinMax",value:function(t,e){Z.scaleMinMax(t,e),this.minX=Math.min(this.minX,e[0]),this.minY=Math.min(this.minY,e[1]),this.maxX=Math.max(this.maxX,e[2]),this.maxY=Math.max(this.maxY,e[3])}},{key:"updateCurvePathMinMax",value:function(t,e,r,n,i,a,o,s,u,c){var l=Z.bezierBoundingBox(e,r,n,i,a,o,s,u,c);c||this.updateRectMinMax(t,l)}},{key:"getPathBoundingBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ts,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[this.minX,this.minY,this.maxX,this.maxY];if(t===Ps){e||F("Stroke bounding box must include transform.");var n=Z.singularValueDecompose2dScale(e),i=n[0]*this.lineWidth/2,a=n[1]*this.lineWidth/2;r[0]-=i,r[1]-=a,r[2]+=i,r[3]+=a}return r}},{key:"updateClipFromPath",value:function(){var t=Z.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}},{key:"isEmptyClip",value:function(){return this.minX===1/0}},{key:"startNewPathAndClipBox",value:function(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ts,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Z.intersect(this.clipBox,this.getPathBoundingBox(t,e))}}])}();function eu(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData)t.putImageData(e,0,0);else{var r,n,i,a,o,s=e.height,u=e.width,c=s%Js,l=(s-c)/Js,h=0===c?l:l+1,f=t.createImageData(u,Js),d=0,v=e.data,p=f.data;if(e.kind===S.GRAYSCALE_1BPP){var y=v.byteLength,g=new Uint32Array(p.buffer,0,p.byteLength>>2),m=g.length,b=u+7>>3,w=4294967295,k=J.isLittleEndian?4278190080:255;for(n=0;n<h;n++){for(a=n<l?Js:c,r=0,i=0;i<a;i++){for(var x=y-d,A=0,_=x>b?u:8*x-7,E=-8&_,O=0,T=0;A<E;A+=8)T=v[d++],g[r++]=128&T?w:k,g[r++]=64&T?w:k,g[r++]=32&T?w:k,g[r++]=16&T?w:k,g[r++]=8&T?w:k,g[r++]=4&T?w:k,g[r++]=2&T?w:k,g[r++]=1&T?w:k;for(;A<_;A++)0===O&&(T=v[d++],O=128),g[r++]=T&O?w:k,O>>=1}for(;r<m;)g[r++]=0;t.putImageData(f,0,n*Js)}}else if(e.kind===S.RGBA_32BPP){for(i=0,o=u*Js*4,n=0;n<l;n++)p.set(v.subarray(d,d+o)),d+=o,t.putImageData(f,0,i),i+=Js;n<h&&(o=u*c*4,p.set(v.subarray(d,d+o)),t.putImageData(f,0,i))}else{if(e.kind!==S.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));for(o=u*(a=Js),n=0;n<h;n++){for(n>=l&&(o=u*(a=c)),r=0,i=o;i--;)p[r++]=v[d++],p[r++]=v[d++],p[r++]=v[d++],p[r++]=255;t.putImageData(f,0,n*Js)}}}}function ru(t,e){if(e.bitmap)t.drawImage(e.bitmap,0,0);else for(var r=e.height,n=e.width,i=r%Js,a=(r-i)/Js,o=0===i?a:a+1,s=t.createImageData(n,Js),u=0,c=e.data,l=s.data,h=0;h<o;h++)u=Bs({src:c,srcPos:u,dest:l,width:n,height:h<a?Js:i,nonBlackColor:0}).srcPos,t.putImageData(s,0,h*Js)}function nu(t,e){for(var r=0,n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];r<n.length;r++){var i=n[r];void 0!==t[i]&&(e[i]=t[i])}void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function iu(t){if(t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0),!m){var e=t.filter;"none"!==e&&""!==e&&(t.filter="none")}}function au(t,e){if(e)return!0;var r=Z.singularValueDecompose2dScale(t);r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1]);var n=Math.fround((globalThis.devicePixelRatio||1)*Vt.PDF_TO_CSS_UNITS);return r[0]<=n&&r[1]<=n}var ou=["butt","round","square"],su=["miter","round","bevel"],uu={},cu={},lu=new WeakSet,hu=function(){function t(e,r,n,i,a,o,s,u){var c=o.optionalContentConfig,l=o.markedContentStack,h=void 0===l?null:l;Ys(this,t),function(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}(this,lu),this.ctx=e,this.current=new tu(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=n,this.canvasFactory=i,this.filterFactory=a,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=h||[],this.optionalContentConfig=c,this.cachedCanvases=new $s(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=s,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}return Ks(t,[{key:"getObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):e}},{key:"beginDrawing",value:function(t){var e,r,n=t.transform,i=t.viewport,a=t.transparency,o=void 0!==a&&a,s=t.background,u=void 0===s?null:s,c=this.ctx.canvas.width,l=this.ctx.canvas.height,h=this.ctx.fillStyle;if(this.ctx.fillStyle=u||"#ffffff",this.ctx.fillRect(0,0,c,l),this.ctx.fillStyle=h,o){var f,d=this.cachedCanvases.getCanvas("transparent",c,l);this.compositeCtx=this.ctx,this.transparentCanvas=d.canvas,this.ctx=d.context,this.ctx.save(),(f=this.ctx).transform.apply(f,Gs(je(this.compositeCtx)))}this.ctx.save(),iu(this.ctx),n&&((r=this.ctx).transform.apply(r,Gs(n)),this.outputScaleX=n[0],this.outputScaleY=n[0]),(e=this.ctx).transform.apply(e,Gs(i.transform)),this.viewportScale=i.scale,this.baseTransform=je(this.ctx)}},{key:"executeOperatorList",value:function(t,e,r,n){var i=t.argsArray,a=t.fnArray,o=e||0,s=i.length;if(s===o)return o;for(var u,c=s-o>10&&"function"==typeof r,l=c?Date.now()+15:0,h=0,f=this.commonObjs,d=this.objs;;){if(void 0!==n&&o===n.nextBreakPoint)return n.breakIt(o,r),o;if((u=a[o])!==P.dependency)this[u].apply(this,i[o]);else{var v,p=Us(i[o]);try{for(p.s();!(v=p.n()).done;){var y=v.value,g=y.startsWith("g_")?f:d;if(!g.has(y))return g.get(y,r),o}}catch(t){p.e(t)}finally{p.f()}}if(++o===s)return o;if(c&&++h>10){if(Date.now()>l)return r(),o;h=0}}}},{key:"endDrawing",value:function(){Hs(lu,this,fu).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();var t,e=Us(this._cachedBitmapsMap.values());try{for(e.s();!(t=e.n()).done;){var r,n=t.value,i=Us(n.values());try{for(i.s();!(r=i.n()).done;){var a=r.value;"undefined"!=typeof HTMLCanvasElement&&a instanceof HTMLCanvasElement&&(a.width=a.height=0)}}catch(t){i.e(t)}finally{i.f()}n.clear()}}catch(t){e.e(t)}finally{e.f()}this._cachedBitmapsMap.clear(),Hs(lu,this,du).call(this)}},{key:"_scaleImage",value:function(t,e){for(var r,n,i=t.width,a=t.height,o=Math.max(Math.hypot(e[0],e[1]),1),s=Math.max(Math.hypot(e[2],e[3]),1),u=i,c=a,l="prescale1";o>2&&u>1||s>2&&c>1;){var h=u,f=c;o>2&&u>1&&(o/=u/(h=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u/2))),s>2&&c>1&&(s/=c/(f=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(n=(r=this.cachedCanvases.getCanvas(l,h,f)).context).clearRect(0,0,h,f),n.drawImage(t,0,0,u,c,0,0,h,f),t=r.canvas,u=h,c=f,l="prescale1"===l?"prescale2":"prescale1"}return{img:t,paintWidth:u,paintHeight:c}}},{key:"_createMaskCanvas",value:function(t){var e,r,n,i,a=this.ctx,o=t.width,s=t.height,u=this.current.fillColor,c=this.current.patternFill,l=je(a);if((t.bitmap||t.data)&&t.count>1){var h=t.bitmap||t.data.buffer;r=JSON.stringify(c?l:[l.slice(0,4),u]),(e=this._cachedBitmapsMap.get(h))||(e=new Map,this._cachedBitmapsMap.set(h,e));var f=e.get(r);if(f&&!c)return{canvas:f,offsetX:Math.round(Math.min(l[0],l[2])+l[4]),offsetY:Math.round(Math.min(l[1],l[3])+l[5])};n=f}n||ru((i=this.cachedCanvases.getCanvas("maskCanvas",o,s)).context,t);var d=Z.transform(l,[1/o,0,0,-1/s,0,0]);d=Z.transform(d,[1,0,0,1,0,-s]);var v=zs(Z.getAxialAlignedBoundingBox([0,0,o,s],d),4),p=v[0],y=v[1],g=v[2],m=v[3],b=Math.round(g-p)||1,w=Math.round(m-y)||1,k=this.cachedCanvases.getCanvas("fillCanvas",b,w),x=k.context,A=p,_=y;x.translate(-A,-_),x.transform.apply(x,Gs(d)),n||(n=(n=this._scaleImage(i.canvas,Ie(x))).img,e&&c&&e.set(r,n)),x.imageSmoothingEnabled=au(je(x),t.interpolate),Zs(x,n,0,0,n.width,n.height,0,0,o,s),x.globalCompositeOperation="source-in";var E=Z.transform(Ie(x),[1,0,0,1,-A,-_]);return x.fillStyle=c?u.getPattern(a,this,E,Ts):u,x.fillRect(0,0,o,s),e&&!c&&(this.cachedCanvases.delete("fillCanvas"),e.set(r,k.canvas)),{canvas:k.canvas,offsetX:Math.round(A),offsetY:Math.round(_)}}},{key:"setLineWidth",value:function(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}},{key:"setLineCap",value:function(t){this.ctx.lineCap=ou[t]}},{key:"setLineJoin",value:function(t){this.ctx.lineJoin=su[t]}},{key:"setMiterLimit",value:function(t){this.ctx.miterLimit=t}},{key:"setDash",value:function(t,e){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(t),r.lineDashOffset=e)}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,r=Us(t);try{for(r.s();!(e=r.n()).done;){var n=zs(e.value,2),i=n[0],a=n[1];switch(i){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a[0],a[1]);break;case"CA":this.current.strokeAlpha=a;break;case"ca":this.current.fillAlpha=a,this.ctx.globalAlpha=a;break;case"BM":this.ctx.globalCompositeOperation=a;break;case"SMask":this.current.activeSMask=a?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(a)}}}catch(t){r.e(t)}finally{r.f()}}},{key:"inSMaskMode",get:function(){return!!this.suspendedCtx}},{key:"checkSMaskState",value:function(){var t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var t=this.ctx.canvas.width,e=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(r,t,e);this.suspendedCtx=this.ctx,this.ctx=n.context;var i=this.ctx;i.setTransform.apply(i,Gs(je(this.suspendedCtx))),nu(this.suspendedCtx,i),function(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=function(){t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(t,r){e.translate(t,r),this.__originalTranslate(t,r)},t.scale=function(t,r){e.scale(t,r),this.__originalScale(t,r)},t.transform=function(t,r,n,i,a,o){e.transform(t,r,n,i,a,o),this.__originalTransform(t,r,n,i,a,o)},t.setTransform=function(t,r,n,i,a,o){e.setTransform(t,r,n,i,a,o),this.__originalSetTransform(t,r,n,i,a,o)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(t){e.rotate(t),this.__originalRotate(t)},t.clip=function(t){e.clip(t),this.__originalClip(t)},t.moveTo=function(t,r){e.moveTo(t,r),this.__originalMoveTo(t,r)},t.lineTo=function(t,r){e.lineTo(t,r),this.__originalLineTo(t,r)},t.bezierCurveTo=function(t,r,n,i,a,o){e.bezierCurveTo(t,r,n,i,a,o),this.__originalBezierCurveTo(t,r,n,i,a,o)},t.rect=function(t,r,n,i){e.rect(t,r,n,i),this.__originalRect(t,r,n,i)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),nu(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}},{key:"compose",value:function(t){if(this.current.activeSMask){t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var e=this.current.activeSMask,r=this.suspendedCtx;this.composeSMask(r,e,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}},{key:"composeSMask",value:function(t,e,r,n){var i=n[0],a=n[1],o=n[2]-i,s=n[3]-a;0!==o&&0!==s&&(this.genericComposeSMask(e.context,r,o,s,e.subtype,e.backdrop,e.transferMap,i,a,e.offsetX,e.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(r.canvas,0,0),t.restore())}},{key:"genericComposeSMask",value:function(t,e,r,n,i,a,o,s,u,c,l){var h=t.canvas,f=s-c,d=u-l;if(a)if(f<0||d<0||f+r>h.width||d+n>h.height){var v=this.cachedCanvases.getCanvas("maskExtension",r,n),p=v.context;p.drawImage(h,-f,-d),a.some((function(t){return 0!==t}))&&(p.globalCompositeOperation="destination-atop",p.fillStyle=Z.makeHexColor.apply(Z,Gs(a)),p.fillRect(0,0,r,n),p.globalCompositeOperation="source-over"),h=v.canvas,f=d=0}else if(a.some((function(t){return 0!==t}))){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);var y=new Path2D;y.rect(f,d,r,n),t.clip(y),t.globalCompositeOperation="destination-atop",t.fillStyle=Z.makeHexColor.apply(Z,Gs(a)),t.fillRect(f,d,r,n),t.restore()}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),"Alpha"===i&&o?e.filter=this.filterFactory.addAlphaFilter(o):"Luminosity"===i&&(e.filter=this.filterFactory.addLuminosityFilter(o));var g=new Path2D;g.rect(s,u,r,n),e.clip(g),e.globalCompositeOperation="destination-in",e.drawImage(h,f,d,r,n,s,u,r,n),e.restore()}},{key:"save",value:function(){this.inSMaskMode?(nu(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),nu(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(t,e,r,n,i,a){this.ctx.transform(t,e,r,n,i,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(t,e,r){for(var n,i,a=this.ctx,o=this.current,s=o.x,u=o.y,c=je(a),l=0===c[0]&&0===c[3]||0===c[1]&&0===c[2],h=l?r.slice(0):null,f=0,d=0,v=t.length;f<v;f++)switch(0|t[f]){case P.rectangle:s=e[d++],u=e[d++];var p=e[d++],y=e[d++],g=s+p,m=u+y;a.moveTo(s,u),0===p||0===y?a.lineTo(g,m):(a.lineTo(g,u),a.lineTo(g,m),a.lineTo(s,m)),l||o.updateRectMinMax(c,[s,u,g,m]),a.closePath();break;case P.moveTo:s=e[d++],u=e[d++],a.moveTo(s,u),l||o.updatePathMinMax(c,s,u);break;case P.lineTo:s=e[d++],u=e[d++],a.lineTo(s,u),l||o.updatePathMinMax(c,s,u);break;case P.curveTo:n=s,i=u,s=e[d+4],u=e[d+5],a.bezierCurveTo(e[d],e[d+1],e[d+2],e[d+3],s,u),o.updateCurvePathMinMax(c,n,i,e[d],e[d+1],e[d+2],e[d+3],s,u,h),d+=6;break;case P.curveTo2:n=s,i=u,a.bezierCurveTo(s,u,e[d],e[d+1],e[d+2],e[d+3]),o.updateCurvePathMinMax(c,n,i,s,u,e[d],e[d+1],e[d+2],e[d+3],h),s=e[d+2],u=e[d+3],d+=4;break;case P.curveTo3:n=s,i=u,s=e[d+2],u=e[d+3],a.bezierCurveTo(e[d],e[d+1],s,u,s,u),o.updateCurvePathMinMax(c,n,i,e[d],e[d+1],s,u,s,u,h),d+=4;break;case P.closePath:a.closePath()}l&&o.updateScalingPathMinMax(c,h),o.setCurrentPoint(s,u)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.ctx,r=this.current.strokeColor;e.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof r&&null!=r&&r.getPattern?(e.save(),e.strokeStyle=r.getPattern(e,this,Ie(e),Ps),this.rescaleAndStroke(!1),e.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),e.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.ctx,r=this.current.fillColor,n=!1;this.current.patternFill&&(e.save(),e.fillStyle=r.getPattern(e,this,Ie(e),Ts),n=!0);var i=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==i&&(this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill()),n&&e.restore(),t&&this.consumePath(i)}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=uu}},{key:"eoClip",value:function(){this.pendingClip=cu}},{key:"beginText",value:function(){this.current.textMatrix=b,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0!==t){e.save(),e.beginPath();var r,n=Us(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;e.setTransform.apply(e,Gs(i.transform)),e.translate(i.x,i.y),i.addToPath(e,i.fontSize)}}catch(t){n.e(t)}finally{n.f()}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths}else e.beginPath()}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setFont",value:function(t,e){var r,n=this.commonObjs.get(t),i=this.current;if(!n)throw new Error("Can\'t find font for ".concat(t));if(i.fontMatrix=n.fontMatrix||w,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||R("Invalid font matrix for font "+t),e<0?(e=-e,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=e,!n.isType3Font){var a=n.loadedName||"sans-serif",o=(null===(r=n.systemFontInfo)||void 0===r?void 0:r.css)||\'"\'.concat(a,\'", \').concat(n.fallbackName),s="normal";n.black?s="900":n.bold&&(s="bold");var u=n.italic?"italic":"normal",c=e;e<16?c=16:e>100&&(c=100),this.current.fontSizeScale=e/c,this.ctx.font="".concat(u," ").concat(s," ").concat(c,"px ").concat(o)}}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"moveText",value:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"setTextMatrix",value:function(t,e,r,n,i,a){this.current.textMatrix=[t,e,r,n,i,a],this.current.textMatrixScale=Math.hypot(t,e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(t,e,r,n){var i,a=this.ctx,o=this.current,s=o.font,u=o.textRenderingMode,c=o.fontSize/o.fontSizeScale,l=3&u,h=!!(4&u),f=o.patternFill&&!s.missingFile;(s.disableFontFace||h||f)&&(i=s.getPathGenerator(this.commonObjs,t)),s.disableFontFace||f?(a.save(),a.translate(e,r),a.beginPath(),i(a,c),n&&a.setTransform.apply(a,Gs(n)),0!==l&&2!==l||a.fill(),1!==l&&2!==l||a.stroke(),a.restore()):(0!==l&&2!==l||a.fillText(t,e,r),1!==l&&2!==l||a.strokeText(t,e,r)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:je(a),x:e,y:r,fontSize:c,addToPath:i})}},{key:"isFontSubpixelAAEnabled",get:function(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;t.scale(1.5,1),t.fillText("I",0,10);for(var e=t.getImageData(0,0,10,10).data,r=!1,n=3;n<e.length;n+=4)if(e[n]>0&&e[n]<255){r=!0;break}return W(this,"isFontSubpixelAAEnabled",r)}},{key:"showText",value:function(t){var e=this.current,r=e.font;if(r.isType3Font)return this.showType3Text(t);var n=e.fontSize;if(0!==n){var i,a=this.ctx,o=e.fontSizeScale,s=e.charSpacing,u=e.wordSpacing,c=e.fontDirection,l=e.textHScale*c,h=t.length,f=r.vertical,d=f?1:-1,v=r.defaultVMetrics,p=n*e.fontMatrix[0],y=0===e.textRenderingMode&&!r.disableFontFace&&!e.patternFill;if(a.save(),a.transform.apply(a,Gs(e.textMatrix)),a.translate(e.x,e.y+e.textRise),c>0?a.scale(l,-1):a.scale(l,1),e.patternFill){a.save();var g=e.fillColor.getPattern(a,this,Ie(a),Ts);i=je(a),a.restore(),a.fillStyle=g}var m=e.lineWidth,b=e.textMatrixScale;if(0===b||0===m){var w=3&e.textRenderingMode;1!==w&&2!==w||(m=this.getSinglePixelWidth())}else m/=b;if(1!==o&&(a.scale(o,o),m/=o),a.lineWidth=m,r.isInvalidPDFjsFont){var k,x=[],A=0,_=Us(t);try{for(_.s();!(k=_.n()).done;){var E=k.value;x.push(E.unicode),A+=E.width}}catch(t){_.e(t)}finally{_.f()}return a.fillText(x.join(""),0,0),e.x+=A*p*l,a.restore(),void this.compose()}var S,O=0;for(S=0;S<h;++S){var T=t[S];if("number"!=typeof T){var P=!1,L=(T.isSpace?u:0)+s,M=T.fontChar,C=T.accent,j=void 0,I=void 0,R=T.width;if(f){var F=T.vmetric||v,D=-(T.vmetric?F[1]:.5*R)*p,N=F[2]*p;R=F?-F[0]:R,j=D/o,I=(O+N)/o}else j=O/o,I=0;if(r.remeasure&&R>0){var W=1e3*a.measureText(M).width/n*o;if(R<W&&this.isFontSubpixelAAEnabled){var B=R/W;P=!0,a.save(),a.scale(B,1),j/=B}else R!==W&&(j+=(R-W)/2e3*n/o)}if(this.contentVisible&&(T.isInFont||r.missingFile))if(y&&!C)a.fillText(M,j,I);else if(this.paintChar(M,j,I,i),C){var G=j+n*C.offset.x/o,H=I-n*C.offset.y/o;this.paintChar(C.fontChar,G,H,i)}O+=f?R*p-L*c:R*p+L*c,P&&a.restore()}else O+=d*T*n/1e3}f?e.y-=O:e.x+=O*l,a.restore(),this.compose()}}},{key:"showType3Text",value:function(t){var e,r,n,i,a=this.ctx,o=this.current,s=o.font,u=o.fontSize,c=o.fontDirection,l=s.vertical?1:-1,h=o.charSpacing,f=o.wordSpacing,d=o.textHScale*c,v=o.fontMatrix||w,p=t.length;if(3!==o.textRenderingMode&&0!==u){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,Gs(o.textMatrix)),a.translate(o.x,o.y),a.scale(d,c),e=0;e<p;++e)if("number"!=typeof(r=t[e])){var y=(r.isSpace?f:0)+h,g=s.charProcOperatorList[r.operatorListId];g?(this.contentVisible&&(this.processingType3=r,this.save(),a.scale(u,u),a.transform.apply(a,Gs(v)),this.executeOperatorList(g),this.restore()),n=Z.applyTransform([r.width,0],v)[0]*u+y,a.translate(n,0),o.x+=n*d):R(\'Type3 character "\'.concat(r.operatorListId,\'" is not available.\'))}else i=l*r*u/1e3,this.ctx.translate(i,0),o.x+=i*d;a.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(t,e){}},{key:"setCharWidthAndBounds",value:function(t,e,r,n,i,a){this.ctx.rect(r,n,i-r,a-n),this.ctx.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(e){var r,n=this;if("TilingPattern"===e[0]){var i=e[1],a=this.baseTransform||je(this.ctx),o={createCanvasGraphics:function(e){return new t(e,n.commonObjs,n.objs,n.canvasFactory,n.filterFactory,{optionalContentConfig:n.optionalContentConfig,markedContentStack:n.markedContentStack})}};r=new Ns(e,i,this.ctx,o,a)}else r=this._getPattern(e[1],e[2]);return r}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(t,e,r){this.ctx.strokeStyle=this.current.strokeColor=Z.makeHexColor(t,e,r)}},{key:"setStrokeTransparent",value:function(){this.ctx.strokeStyle=this.current.strokeColor="transparent"}},{key:"setFillRGBColor",value:function(t,e,r){this.ctx.fillStyle=this.current.fillColor=Z.makeHexColor(t,e,r),this.current.patternFill=!1}},{key:"setFillTransparent",value:function(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}},{key:"_getPattern",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(t)?e=this.cachedPatterns.get(t):(e=function(t){switch(t[0]){case"RadialAxial":return new js(t);case"Mesh":return new Fs(t);case"Dummy":return new Ds}throw new Error("Unknown IR type: ".concat(t[0]))}(this.getObject(t)),this.cachedPatterns.set(t,e)),r&&(e.matrix=r),e}},{key:"shadingFill",value:function(t){if(this.contentVisible){var e=this.ctx;this.save();var r=this._getPattern(t);e.fillStyle=r.getPattern(e,this,Ie(e),Ls);var n=Ie(e);if(n){var i=e.canvas,a=i.width,o=i.height,s=zs(Z.getAxialAlignedBoundingBox([0,0,a,o],n),4),u=s[0],c=s[1],l=s[2],h=s[3];this.ctx.fillRect(u,c,l-u,h-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){F("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){F("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(t,e){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform.apply(this,Gs(t)),this.baseTransform=je(this.ctx),e)){var r=e[2]-e[0],n=e[3]-e[1];this.ctx.rect(e[0],e[1],r,n),this.current.updateRectMinMax(je(this.ctx),e),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(t){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var e=this.ctx;t.isolated||I("TODO: Support non-isolated groups."),t.knockout&&R("Knockout groups not supported.");var r=je(e);if(t.matrix&&e.transform.apply(e,Gs(t.matrix)),!t.bbox)throw new Error("Bounding box is required.");var n=Z.getAxialAlignedBoundingBox(t.bbox,je(e)),i=[0,0,e.canvas.width,e.canvas.height];n=Z.intersect(n,i)||[0,0,0,0];var a=Math.floor(n[0]),o=Math.floor(n[1]),s=Math.max(Math.ceil(n[2])-a,1),u=Math.max(Math.ceil(n[3])-o,1);this.current.startNewPathAndClipBox([0,0,s,u]);var c="groupAt"+this.groupLevel;t.smask&&(c+="_smask_"+this.smaskCounter++%2);var l=this.cachedCanvases.getCanvas(c,s,u),h=l.context;h.translate(-a,-o),h.transform.apply(h,Gs(r)),t.smask?this.smaskStack.push({canvas:l.canvas,context:h,offsetX:a,offsetY:o,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,o),e.save()),nu(e,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++}}},{key:"endGroup",value:function(t){if(this.contentVisible){this.groupLevel--;var e=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{var n;this.ctx.restore();var i=je(this.ctx);this.restore(),this.ctx.save(),(n=this.ctx).setTransform.apply(n,Gs(i));var a=Z.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],i);this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(a)}}}},{key:"beginAnnotation",value:function(t,e,r,n,i){var a;if(Hs(lu,this,fu).call(this),iu(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&(a=this.ctx).setTransform.apply(a,Gs(this.baseTransform)),e){var o=e[2]-e[0],s=e[3]-e[1];if(i&&this.annotationCanvasMap){(r=r.slice())[4]-=e[0],r[5]-=e[1],(e=e.slice())[0]=e[1]=0,e[2]=o,e[3]=s;var u=zs(Z.singularValueDecompose2dScale(je(this.ctx)),2),c=u[0],l=u[1],h=this.viewportScale,f=Math.ceil(o*this.outputScaleX*h),d=Math.ceil(s*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(f,d);var v=this.annotationCanvas,p=v.canvas,y=v.context;this.annotationCanvasMap.set(t,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(c,0,0,-l,0,s*l),iu(this.ctx)}else iu(this.ctx),this.endPath(),this.ctx.rect(e[0],e[1],o,s),this.ctx.clip(),this.ctx.beginPath()}this.current=new tu(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,Gs(r)),this.transform.apply(this,Gs(n))}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx.restore(),Hs(lu,this,du).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}},{key:"paintImageMaskXObject",value:function(t){if(this.contentVisible){var e=t.count;(t=this.getObject(t.data,t)).count=e;var r=this.ctx,n=this.processingType3;if(n&&(void 0===n.compiled&&(n.compiled=function(t){var e=t.width,r=t.height;if(e>1e3||r>1e3)return null;var n,i,a,o,s=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=e+1,c=new Uint8Array(u*(r+1)),l=e+7&-8,h=new Uint8Array(l*r),f=0,d=Us(t.data);try{for(d.s();!(o=d.n()).done;)for(var v=o.value,p=128;p>0;)h[f++]=v&p?0:255,p>>=1}catch(t){d.e(t)}finally{d.f()}var y=0;for(0!==h[f=0]&&(c[0]=1,++y),i=1;i<e;i++)h[f]!==h[f+1]&&(c[i]=h[f]?2:1,++y),f++;for(0!==h[f]&&(c[i]=2,++y),n=1;n<r;n++){a=n*u,h[(f=n*l)-l]!==h[f]&&(c[a]=h[f]?1:8,++y);var g=(h[f]?4:0)+(h[f-l]?8:0);for(i=1;i<e;i++)s[g=(g>>2)+(h[f+1]?4:0)+(h[f-l+1]?8:0)]&&(c[a+i]=s[g],++y),f++;if(h[f-l]!==h[f]&&(c[a+i]=h[f]?2:4,++y),y>1e3)return null}for(a=n*u,0!==h[f=l*(r-1)]&&(c[a]=8,++y),i=1;i<e;i++)h[f]!==h[f+1]&&(c[a+i]=h[f]?4:8,++y),f++;if(0!==h[f]&&(c[a+i]=4,++y),y>1e3)return null;var m=new Int32Array([0,u,-1,0,-u,0,0,0,1]),b=new Path2D;for(n=0;y&&n<=r;n++){for(var w=n*u,k=w+e;w<k&&!c[w];)w++;if(w!==k){b.moveTo(w%u,n);var x=w,A=c[w];do{var _=m[A];do{w+=_}while(!c[w]);var E=c[w];5!==E&&10!==E?(A=E,c[w]=0):(A=E&51*A>>4,c[w]&=A>>2|A<<2),b.lineTo(w%u,w/u|0),c[w]||--y}while(x!==w);--n}}return h=null,c=null,function(t){t.save(),t.scale(1/e,-1/r),t.translate(0,-r),t.fill(b),t.beginPath(),t.restore()}}(t)),n.compiled))n.compiled(r);else{var i=this._createMaskCanvas(t),a=i.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(a,i.offsetX,i.offsetY),r.restore(),this.compose()}}}},{key:"paintImageMaskXObjectRepeat",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){t=this.getObject(t.data,t);var o=this.ctx;o.save();var s=je(o);o.transform(e,r,n,i,0,0);var u=this._createMaskCanvas(t);o.setTransform(1,0,0,1,u.offsetX-s[4],u.offsetY-s[5]);for(var c=0,l=a.length;c<l;c+=2){var h=Z.transform(s,[e,r,n,i,a[c],a[c+1]]),f=zs(Z.applyTransform([0,0],h),2),d=f[0],v=f[1];o.drawImage(u.canvas,d,v)}o.restore(),this.compose()}}},{key:"paintImageMaskXObjectGroup",value:function(t){if(this.contentVisible){var e,r=this.ctx,n=this.current.fillColor,i=this.current.patternFill,a=Us(t);try{for(a.s();!(e=a.n()).done;){var o=e.value,s=o.data,u=o.width,c=o.height,l=o.transform,h=this.cachedCanvases.getCanvas("maskCanvas",u,c),f=h.context;f.save(),ru(f,this.getObject(s,o)),f.globalCompositeOperation="source-in",f.fillStyle=i?n.getPattern(f,this,Ie(r),Ts):n,f.fillRect(0,0,u,c),f.restore(),r.save(),r.transform.apply(r,Gs(l)),r.scale(1,-1),Zs(r,h.canvas,0,0,u,c,0,-1,1,1),r.restore()}}catch(t){a.e(t)}finally{a.f()}this.compose()}}},{key:"paintImageXObject",value:function(t){if(this.contentVisible){var e=this.getObject(t);e?this.paintInlineImageXObject(e):R("Dependent image isn\'t ready yet")}}},{key:"paintImageXObjectRepeat",value:function(t,e,r,n){if(this.contentVisible){var i=this.getObject(t);if(i){for(var a=i.width,o=i.height,s=[],u=0,c=n.length;u<c;u+=2)s.push({transform:[e,0,0,r,n[u],n[u+1]],x:0,y:0,w:a,h:o});this.paintInlineImageXObjectGroup(i,s)}else R("Dependent image isn\'t ready yet")}}},{key:"applyTransferMapsToCanvas",value:function(t){return"none"!==this.current.transferMaps&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}},{key:"applyTransferMapsToBitmap",value:function(t){if("none"===this.current.transferMaps)return t.bitmap;var e=t.bitmap,r=t.width,n=t.height,i=this.cachedCanvases.getCanvas("inlineImage",r,n),a=i.context;return a.filter=this.current.transferMaps,a.drawImage(e,0,0),a.filter="none",i.canvas}},{key:"paintInlineImageXObject",value:function(t){if(this.contentVisible){var e,r=t.width,n=t.height,i=this.ctx;if(this.save(),!m){var a=i.filter;"none"!==a&&""!==a&&(i.filter="none")}if(i.scale(1/r,-1/n),t.bitmap)e=this.applyTransferMapsToBitmap(t);else if("function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)e=t;else{var o=this.cachedCanvases.getCanvas("inlineImage",r,n).context;eu(o,t),e=this.applyTransferMapsToCanvas(o)}var s=this._scaleImage(e,Ie(i));i.imageSmoothingEnabled=au(je(i),t.interpolate),Zs(i,s.img,0,0,s.paintWidth,s.paintHeight,0,-n,r,n),this.compose(),this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(t,e){if(this.contentVisible){var r,n=this.ctx;if(t.bitmap)r=t.bitmap;else{var i=t.width,a=t.height,o=this.cachedCanvases.getCanvas("inlineImage",i,a).context;eu(o,t),r=this.applyTransferMapsToCanvas(o)}var s,u=Us(e);try{for(u.s();!(s=u.n()).done;){var c=s.value;n.save(),n.transform.apply(n,Gs(c.transform)),n.scale(1,-1),Zs(n,r,c.x,c.y,c.w,c.h,0,-1,1,1),n.restore()}}catch(t){u.e(t)}finally{u.f()}this.compose()}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}},{key:"markPoint",value:function(t){}},{key:"markPointProps",value:function(t,e){}},{key:"beginMarkedContent",value:function(t){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(t,e){"OC"===t?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(e)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(t){var e=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);var r=this.ctx;this.pendingClip&&(e||(this.pendingClip===cu?r.clip("evenodd"):r.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),r.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(!this._cachedGetSinglePixelWidth){var t=je(this.ctx);if(0===t[1]&&0===t[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{var e=Math.abs(t[0]*t[3]-t[2]*t[1]),r=Math.hypot(t[0],t[2]),n=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(r,n)/e}}return this._cachedGetSinglePixelWidth}},{key:"getScaleForStroking",value:function(){if(-1===this._cachedScaleForStroking[0]){var t,e,r=this.current.lineWidth,n=this.ctx.getTransform(),i=n.a,a=n.b,o=n.c,s=n.d;if(0===a&&0===o){var u=Math.abs(i),c=Math.abs(s);if(u===c)if(0===r)t=e=1/u;else{var l=u*r;t=e=l<1?1/l:1}else if(0===r)t=1/u,e=1/c;else{var h=u*r,f=c*r;t=h<1?1/h:1,e=f<1?1/f:1}}else{var d=Math.abs(i*s-a*o),v=Math.hypot(i,a),p=Math.hypot(o,s);if(0===r)t=p/d,e=v/d;else{var y=r*d;t=p>y?p/y:1,e=v>y?v/y:1}}this._cachedScaleForStroking[0]=t,this._cachedScaleForStroking[1]=e}return this._cachedScaleForStroking}},{key:"rescaleAndStroke",value:function(t){var e=this.ctx,r=this.current.lineWidth,n=zs(this.getScaleForStroking(),2),i=n[0],a=n[1];if(e.lineWidth=r||1,1!==i||1!==a){var o=e.getLineDash();if(t&&e.save(),e.scale(i,a),o.length>0){var s=Math.max(i,a);e.setLineDash(o.map((function(t){return t/s}))),e.lineDashOffset/=s}e.stroke(),t&&e.restore()}else e.stroke()}},{key:"isContentVisible",value:function(){for(var t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}])}();function fu(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function du(){if(this.pageColors){var t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==t){var e=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}}for(var vu in P)void 0!==hu.prototype[vu]&&(hu.prototype[P[vu]]=hu.prototype[vu]);function pu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yu(n.key),n)}}function yu(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function gu(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var mu=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,r){return r&&pu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,0,[{key:"workerPort",get:function(){return gu(t,this,bu)._},set:function(e){if(!("undefined"!=typeof Worker&&e instanceof Worker)&&null!==e)throw new Error("Invalid `workerPort` type.");bu._=gu(t,this,e)}},{key:"workerSrc",get:function(){return gu(t,this,wu)._},set:function(e){if("string"!=typeof e)throw new Error("Invalid `workerSrc` type.");wu._=gu(t,this,e)}}])}(),bu={_:null},wu={_:""};function ku(){ku=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xu(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Au(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_u(n.key),n)}}function _u(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Eu(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r(5204);function Su(t){switch(t instanceof Error||"object"==typeof t&&null!==t||F(\'wrapReason: Expected "reason" to be a (possibly cloned) Error.\'),t.name){case"AbortException":return new Y(t.message);case"MissingPDFException":return new z(t.message);case"PasswordException":return new G(t.message,t.code);case"UnexpectedResponseException":return new V(t.message,t.status);case"UnknownErrorException":return new H(t.message,t.details);default:return new H(t.message,t.toString())}}var Ou=new WeakSet,Tu=function(){return function(t,e,r){return e&&Au(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}(this,Ou),this.sourceName=e,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===i.sourceName)if(e.stream)Eu(Ou,i,Lu).call(i,e);else if(e.callback){var r=e.callbackId,a=i.callbackCapabilities[r];if(!a)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],1===e.callback)a.resolve(e.data);else{if(2!==e.callback)throw new Error("Unexpected callback case");a.reject(Su(e.reason))}}else{var o=i.actionHandler[e.action];if(!o)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var s=i.sourceName,u=e.sourceName;new Promise((function(t){t(o(e.data))})).then((function(t){n.postMessage({sourceName:s,targetName:u,callback:1,callbackId:e.callbackId,data:t})}),(function(t){n.postMessage({sourceName:s,targetName:u,callback:2,callbackId:e.callbackId,reason:Su(t)})}))}else e.streamId?Eu(Ou,i,Pu).call(i,e):o(e.data)}},n.addEventListener("message",this._onComObjOnMessage)}),[{key:"on",value:function(t,e){var r=this.actionHandler;if(r[t])throw new Error(\'There is already an actionName called "\'.concat(t,\'"\'));r[t]=e}},{key:"send",value:function(t,e,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},r)}},{key:"sendWithPromise",value:function(t,e,r){var n=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[n]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:n,data:e},r)}catch(t){i.reject(t)}return i.promise}},{key:"sendWithStream",value:function(t,e,r,n){var i=this,a=this.streamId++,o=this.sourceName,s=this.targetName,u=this.comObj;return new ReadableStream({start:function(r){var c=Promise.withResolvers();return i.streamControllers[a]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},u.postMessage({sourceName:o,targetName:s,action:t,streamId:a,data:e,desiredSize:r.desiredSize},n),c.promise},pull:function(t){var e=Promise.withResolvers();return i.streamControllers[a].pullCall=e,u.postMessage({sourceName:o,targetName:s,stream:6,streamId:a,desiredSize:t.desiredSize}),e.promise},cancel:function(t){D(t instanceof Error,"cancel must have a valid reason");var e=Promise.withResolvers();return i.streamControllers[a].cancelCall=e,i.streamControllers[a].isClosed=!0,u.postMessage({sourceName:o,targetName:s,stream:1,streamId:a,reason:Su(t)}),e.promise}},r)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])}();function Pu(t){var e=t.streamId,r=this.sourceName,n=t.sourceName,i=this.comObj,a=this,o=this.actionHandler[t.action],s={enqueue(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=a,s>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:r,targetName:n,stream:4,streamId:e,chunk:t},o)}},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:r,targetName:n,stream:3,streamId:e}),delete a.streamSinks[e])},error(t){D(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:r,targetName:n,stream:5,streamId:e,reason:Su(t)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[e]=s,new Promise((function(e){e(o(t.data,s))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:8,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:r,targetName:n,stream:8,streamId:e,reason:Su(t)})}))}function Lu(t){var e=t.streamId,r=this.sourceName,n=t.sourceName,i=this.comObj,a=this.streamControllers[e],o=this.streamSinks[e];switch(t.stream){case 8:t.success?a.startCall.resolve():a.startCall.reject(Su(t.reason));break;case 7:t.success?a.pullCall.resolve():a.pullCall.reject(Su(t.reason));break;case 6:if(!o){i.postMessage({sourceName:r,targetName:n,stream:7,streamId:e,success:!0});break}o.desiredSize<=0&&t.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=t.desiredSize,new Promise((function(t){var e;t(null===(e=o.onPull)||void 0===e?void 0:e.call(o))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:7,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:r,targetName:n,stream:7,streamId:e,reason:Su(t)})}));break;case 4:if(D(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case 3:if(D(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),Eu(Ou,this,Mu).call(this,a,e);break;case 5:D(a,"error should have stream controller"),a.controller.error(Su(t.reason)),Eu(Ou,this,Mu).call(this,a,e);break;case 2:t.success?a.cancelCall.resolve():a.cancelCall.reject(Su(t.reason)),Eu(Ou,this,Mu).call(this,a,e);break;case 1:if(!o)break;new Promise((function(e){var r;e(null===(r=o.onCancel)||void 0===r?void 0:r.call(o,Su(t.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:2,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:r,targetName:n,stream:2,streamId:e,reason:Su(t)})})),o.sinkCapability.reject(Su(t.reason)),o.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}function Mu(t,e){return Cu.apply(this,arguments)}function Cu(){var t;return t=ku().mark((function t(e,r){var n,i,a;return ku().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([null===(n=e.startCall)||void 0===n?void 0:n.promise,null===(i=e.pullCall)||void 0===i?void 0:i.promise,null===(a=e.cancelCall)||void 0===a?void 0:a.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return t.stop()}}),t,this)})),Cu=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){xu(a,n,i,o,s,"next",t)}function s(t){xu(a,n,i,o,s,"throw",t)}o(void 0)}))},Cu.apply(this,arguments)}function ju(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Iu(n.key),n)}}function Iu(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Ru(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}function Fu(t,e){return t.get(Nu(t,e))}function Du(t,e,r){return t.set(Nu(t,e),r),r}function Nu(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var Wu=new WeakMap,Bu=new WeakMap,Gu=function(){return function(t,e,r){return e&&ju(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var r=e.parsedData,n=e.rawData;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ru(this,Wu,void 0),Ru(this,Bu,void 0),Du(Wu,this,r),Du(Bu,this,n)}),[{key:"getRaw",value:function(){return Fu(Bu,this)}},{key:"get",value:function(t){var e;return null!==(e=Fu(Wu,this).get(t))&&void 0!==e?e:null}},{key:"getAll",value:function(){return Q(Fu(Wu,this))}},{key:"has",value:function(t){return Fu(Wu,this).has(t)}}])}();function Hu(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||zu(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uu(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=zu(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function zu(t,e){if(t){if("string"==typeof t)return Vu(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vu(t,e):void 0}}function Vu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function qu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ku(n.key),n)}}function Xu(t,e,r){return e&&Yu(t.prototype,e),r&&Yu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ku(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Qu(t,e,r){Ju(t,e),e.set(t,r)}function Ju(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $u(t,e){return t.get(tc(t,e))}function Zu(t,e,r){return t.set(tc(t,e),r),r}function tc(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var ec=Symbol("INTERNAL"),rc=new WeakMap,nc=new WeakMap,ic=new WeakMap,ac=new WeakMap,oc=function(){return Xu((function t(e,r){var n=r.name,i=r.intent,a=r.usage;qu(this,t),Qu(this,rc,!1),Qu(this,nc,!1),Qu(this,ic,!1),Qu(this,ac,!0),Zu(rc,this,!!(2&e)),Zu(nc,this,!!(4&e)),this.name=n,this.intent=i,this.usage=a}),[{key:"visible",get:function(){if($u(ic,this))return $u(ac,this);if(!$u(ac,this))return!1;var t=this.usage,e=t.print,r=t.view;return $u(rc,this)?"OFF"!==(null==r?void 0:r.viewState):!$u(nc,this)||"OFF"!==(null==e?void 0:e.printState)}},{key:"_setVisible",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t!==ec&&F("Internal method `_setVisible` called."),Zu(ic,this,r),Zu(ac,this,e)}}])}(),sc=new WeakMap,uc=new WeakMap,cc=new WeakMap,lc=new WeakMap,hc=new WeakSet,fc=function(){return Xu((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(qu(this,t),function(t,e){Ju(t,e),e.add(t)}(this,hc),Qu(this,sc,null),Qu(this,uc,new Map),Qu(this,cc,null),Qu(this,lc,null),this.renderingIntent=r,this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,Zu(lc,this,e.order);var n,i=Uu(e.groups);try{for(i.s();!(n=i.n()).done;){var a=n.value;$u(uc,this).set(a.id,new oc(r,a))}}catch(t){i.e(t)}finally{i.f()}if("OFF"===e.baseState){var o,s=Uu($u(uc,this).values());try{for(s.s();!(o=s.n()).done;)o.value._setVisible(ec,!1)}catch(t){s.e(t)}finally{s.f()}}var u,c=Uu(e.on);try{for(c.s();!(u=c.n()).done;){var l=u.value;$u(uc,this).get(l)._setVisible(ec,!0)}}catch(t){c.e(t)}finally{c.f()}var h,f=Uu(e.off);try{for(f.s();!(h=f.n()).done;){var d=h.value;$u(uc,this).get(d)._setVisible(ec,!1)}}catch(t){f.e(t)}finally{f.f()}Zu(cc,this,this.getHash())}}),[{key:"isVisible",value:function(t){if(0===$u(uc,this).size)return!0;if(!t)return I("Optional content group not defined."),!0;if("OCG"===t.type)return $u(uc,this).has(t.id)?$u(uc,this).get(t.id).visible:(R("Optional content group not found: ".concat(t.id)),!0);if("OCMD"===t.type){if(t.expression)return tc(hc,this,dc).call(this,t.expression);if(!t.policy||"AnyOn"===t.policy){var e,r=Uu(t.ids);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(!$u(uc,this).has(n))return R("Optional content group not found: ".concat(n)),!0;if($u(uc,this).get(n).visible)return!0}}catch(t){r.e(t)}finally{r.f()}return!1}if("AllOn"===t.policy){var i,a=Uu(t.ids);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(!$u(uc,this).has(o))return R("Optional content group not found: ".concat(o)),!0;if(!$u(uc,this).get(o).visible)return!1}}catch(t){a.e(t)}finally{a.f()}return!0}if("AnyOff"===t.policy){var s,u=Uu(t.ids);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(!$u(uc,this).has(c))return R("Optional content group not found: ".concat(c)),!0;if(!$u(uc,this).get(c).visible)return!0}}catch(t){u.e(t)}finally{u.f()}return!1}if("AllOff"===t.policy){var l,h=Uu(t.ids);try{for(h.s();!(l=h.n()).done;){var f=l.value;if(!$u(uc,this).has(f))return R("Optional content group not found: ".concat(f)),!0;if($u(uc,this).get(f).visible)return!1}}catch(t){h.e(t)}finally{h.f()}return!0}return R("Unknown optional content policy ".concat(t.policy,".")),!0}return R("Unknown group type ".concat(t.type,".")),!0}},{key:"setVisibility",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=$u(uc,this).get(t);r?(r._setVisible(ec,!!e,!0),Zu(sc,this,null)):R("Optional content group not found: ".concat(t))}},{key:"setOCGState",value:function(t){var e,r,n=t.state,i=(t.preserveRB,Uu(n));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a){case"ON":case"OFF":case"Toggle":e=a;continue}var o=$u(uc,this).get(a);if(o)switch(e){case"ON":o._setVisible(ec,!0);break;case"OFF":o._setVisible(ec,!1);break;case"Toggle":o._setVisible(ec,!o.visible)}}}catch(t){i.e(t)}finally{i.f()}Zu(sc,this,null)}},{key:"hasInitialVisibility",get:function(){return null===$u(cc,this)||this.getHash()===$u(cc,this)}},{key:"getOrder",value:function(){return $u(uc,this).size?$u(lc,this)?$u(lc,this).slice():function(t){return function(t){if(Array.isArray(t))return Vu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||zu(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}($u(uc,this).keys()):null}},{key:"getGroups",value:function(){return $u(uc,this).size>0?Q($u(uc,this)):null}},{key:"getGroup",value:function(t){return $u(uc,this).get(t)||null}},{key:"getHash",value:function(){if(null!==$u(sc,this))return $u(sc,this);var t,e=new so,r=Uu($u(uc,this));try{for(r.s();!(t=r.n()).done;){var n=Hu(t.value,2),i=n[0],a=n[1];e.update("".concat(i,":").concat(a.visible))}}catch(t){r.e(t)}finally{r.f()}return Zu(sc,this,e.hexdigest())}}])}();function dc(t){var e=t.length;if(e<2)return!0;for(var r=t[0],n=1;n<e;n++){var i=t[n],a=void 0;if(Array.isArray(i))a=tc(hc,this,dc).call(this,i);else{if(!$u(uc,this).has(i))return R("Optional content group not found: ".concat(i)),!0;a=$u(uc,this).get(i).visible}switch(r){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return"And"===r}function vc(){vc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function pc(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function yc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){pc(a,n,i,o,s,"next",t)}function s(t){pc(a,n,i,o,s,"throw",t)}o(void 0)}))}}function gc(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mc(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function mc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xc(n.key),n)}}function kc(t,e,r){return e&&wc(t.prototype,e),r&&wc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xc(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}r(3276);var Ac=function(){return kc((function t(e,r){var n=this,i=r.disableRange,a=void 0!==i&&i,o=r.disableStream,s=void 0!==o&&o;bc(this,t),D(e,\'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.\');var u=e.length,c=e.initialData,l=e.progressiveDone,h=e.contentDispositionFilename;if(this._queuedChunks=[],this._progressiveDone=l,this._contentDispositionFilename=h,(null==c?void 0:c.length)>0){var f=c instanceof Uint8Array&&c.byteLength===c.buffer.byteLength?c.buffer:new Uint8Array(c).buffer;this._queuedChunks.push(f)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!s,this._isRangeSupported=!a,this._contentLength=u,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((function(t,e){n._onReceiveData({begin:t,chunk:e})})),e.addProgressListener((function(t,e){n._onProgress({loaded:t,total:e})})),e.addProgressiveReadListener((function(t){n._onReceiveData({chunk:t})})),e.addProgressiveDoneListener((function(){n._onProgressiveDone()})),e.transportReady()}),[{key:"_onReceiveData",value:function(t){var e=t.begin,r=t.chunk,n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;void 0===e?this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n):D(this._rangeReaders.some((function(t){return t._begin===e&&(t._enqueue(n),!0)})),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}},{key:"_progressiveDataLength",get:function(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}},{key:"_onProgress",value:function(t){var e,r,n,i;void 0===t.total?null===(e=this._rangeReaders[0])||void 0===e||null===(r=e.onProgress)||void 0===r||r.call(e,{loaded:t.loaded}):null===(n=this._fullRequestReader)||void 0===n||null===(i=n.onProgress)||void 0===i||i.call(n,{loaded:t.loaded,total:t.total})}},{key:"_onProgressiveDone",value:function(){var t;null===(t=this._fullRequestReader)||void 0===t||t.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){D(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new _c(this,t,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new Ec(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);var r,n=gc(this._rangeReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}this._pdfDataRangeTransport.abort()}}])}(),_c=function(){return kc((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;bc(this,t),this._stream=e,this._done=n||!1,this._filename=xe(i)?i:null,this._queuedChunks=r||[],this._loaded=0;var a,o=gc(this._queuedChunks);try{for(o.s();!(a=o.n()).done;){var s=a.value;this._loaded+=s.byteLength}}catch(t){o.e(t)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}),[{key:"_enqueue",value:function(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:(t=yc(vc().mark((function t(){var e,r;return vc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 8:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0;var e,r=gc(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]);var t}(),Ec=function(){return kc((function t(e,r,n){bc(this,t),this._stream=e,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}),[{key:"_enqueue",value:function(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});var e,r=gc(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=yc(vc().mark((function t(){var e,r;return vc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 9:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0;var e,r=gc(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]);var t}();function Sc(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Oc(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oc(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Tc(t,e){var r=new Headers;if(!t||!e||"object"!=typeof e)return r;for(var n in e){var i=e[n];void 0!==i&&r.append(n,i)}return r}function Pc(t){var e=t.responseHeaders,r=t.isHttp,n=t.rangeChunkSize,i=t.disableRange,a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e.get("Content-Length"),10);return Number.isInteger(o)?(a.suggestedLength=o,o<=2*n||i||!r||"bytes"!==e.get("Accept-Ranges")||"identity"!==(e.get("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a}function Lc(t){var e=t.get("Content-Disposition");if(e){var r=function(t){var e=!0,r=a("filename\\\\*","i").exec(t);if(r){var n=u(r=r[1]);return s(n=l(n=c(n=unescape(n))))}if(r=function(t){for(var e,r=[],n=a("filename\\\\*((?!0\\\\d)\\\\d+)(\\\\*?)","ig");null!==(e=n.exec(t));){var i=Sc(e,4),o=i[1],s=i[2],l=i[3];if((o=parseInt(o,10))in r){if(0===o)break}else r[o]=[s,l]}for(var h=[],f=0;f<r.length&&f in r;++f){var d=Sc(r[f],2),v=d[0],p=d[1];p=u(p),v&&(p=unescape(p),0===f&&(p=c(p))),h.push(p)}return h.join("")}(t))return s(l(r));if(r=a("filename","i").exec(t)){var i=u(r=r[1]);return s(i=l(i))}function a(t,e){return new RegExp("(?:^|;)\\\\s*"+t+\'\\\\s*=\\\\s*([^";\\\\s][^;\\\\s]*|"(?:[^"\\\\\\\\]|\\\\\\\\"?)+"?)\',e)}function o(t,r){if(t){if(!/^[\\x00-\\xFF]+$/.test(r))return r;try{var n=new TextDecoder(t,{fatal:!0}),i=K(r);r=n.decode(i),e=!1}catch(t){}}return r}function s(t){return e&&/[\\x80-\\xff]/.test(t)&&(t=o("utf-8",t),e&&(t=o("iso-8859-1",t))),t}function u(t){if(t.startsWith(\'"\')){for(var e=t.slice(1).split(\'\\\\"\'),r=0;r<e.length;++r){var n=e[r].indexOf(\'"\');-1!==n&&(e[r]=e[r].slice(0,n),e.length=r+1),e[r]=e[r].replaceAll(/\\\\(.)/g,"$1")}t=e.join(\'"\')}return t}function c(t){var e=t.indexOf("\'");return-1===e?t:o(t.slice(0,e),t.slice(e+1).replace(/^[^\']*\'/,""))}function l(t){return!t.startsWith("=?")||/[\\x00-\\x19\\x80-\\xff]/.test(t)?t:t.replaceAll(/=\\?([\\w-]*)\\?([QqBb])\\?((?:[^?]|\\?(?!=))*)\\?=/g,(function(t,e,r,n){if("q"===r||"Q"===r)return o(e,n=(n=n.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})));try{n=atob(n)}catch(t){}return o(e,n)}))}return""}(e);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(t){}if(xe(r))return r}return null}function Mc(t,e){return 404===t||0===t&&e.startsWith("file:")?new z(\'Missing PDF "\'+e+\'".\'):new V("Unexpected server response (".concat(t,\') while retrieving PDF "\').concat(e,\'".\'),t)}function Cc(t){return 200===t||206===t}function jc(){jc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ic(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Rc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Ic(a,n,i,o,s,"next",t)}function s(t){Ic(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Fc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Dc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bc(n.key),n)}}function Wc(t,e,r){return e&&Nc(t.prototype,e),r&&Nc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bc(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Gc(t,e,r){return{method:"GET",headers:t,signal:r.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function Hc(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(R("getArrayBuffer - unexpected data format: ".concat(t)),new Uint8Array(t).buffer)}var Uc=function(){return Wc((function t(e){Dc(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=Tc(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_progressiveDataLength",get:function(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}},{key:"getFullReader",value:function(){return D(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new zc(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=new Vc(this,t,e);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Fc(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(this._rangeRequestReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}}}])}(),zc=function(){return Wc((function t(e){var r=this;Dc(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;var i=new Headers(e.headers),a=n.url;fetch(a,Gc(i,this._withCredentials,this._abortController)).then((function(t){if(!Cc(t.status))throw Mc(t.status,a);r._reader=t.body.getReader(),r._headersCapability.resolve();var n=t.headers,i=Pc({responseHeaders:n,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=i.allowRangeRequests,s=i.suggestedLength;r._isRangeSupported=o,r._contentLength=s||r._contentLength,r._filename=Lc(n),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new Y("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}),[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(t=Rc(jc().mark((function t(){var e,r,n,i;return jc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(r=t.sent,n=r.value,!(i=r.done)){t.next=9;break}return t.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),t.abrupt("return",{value:Hc(n),done:!1});case 12:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){var e;null===(e=this._reader)||void 0===e||e.cancel(t),this._abortController.abort()}}]);var t}(),Vc=function(){return Wc((function t(e,r,n){var i=this;Dc(this,t),this._stream=e,this._reader=null,this._loaded=0;var a=e.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController;var o=new Headers(e.headers);o.append("Range","bytes=".concat(r,"-").concat(n-1));var s=a.url;fetch(s,Gc(o,this._withCredentials,this._abortController)).then((function(t){if(!Cc(t.status))throw Mc(t.status,s);i._readCapability.resolve(),i._reader=t.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(t=Rc(jc().mark((function t(){var e,r,n,i;return jc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(r=t.sent,n=r.value,!(i=r.done)){t.next=9;break}return t.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),t.abrupt("return",{value:Hc(n),done:!1});case 12:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){var e;null===(e=this._reader)||void 0===e||e.cancel(t),this._abortController.abort()}}]);var t}();function qc(){qc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Yc(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Xc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Yc(a,n,i,o,s,"next",t)}function s(t){Yc(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Kc(t,e){return Jc(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Zc(t,e)||Qc()}function Qc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jc(t){if(Array.isArray(t))return t}function $c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Zc(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Zc(t,e){if(t){if("string"==typeof t)return tl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tl(t,e):void 0}}function tl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function el(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,il(n.key),n)}}function nl(t,e,r){return e&&rl(t.prototype,e),r&&rl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function il(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var al=function(){return nl((function t(e){var r=e.url,n=e.httpHeaders,i=e.withCredentials;el(this,t),this.url=r,this.isHttp=/^https?:/i.test(r),this.headers=Tc(this.isHttp,n),this.withCredentials=i||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}),[{key:"requestRange",value:function(t,e,r){var n={begin:t,end:e};for(var i in r)n[i]=r[i];return this.request(n)}},{key:"requestFull",value:function(t){return this.request(t)}},{key:"request",value:function(t){var e=new XMLHttpRequest,r=this.currXhrId++,n=this.pendingRequests[r]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;var i,a=$c(this.headers);try{for(a.s();!(i=a.n()).done;){var o=Kc(i.value,2),s=o[0],u=o[1];e.setRequestHeader(s,u)}}catch(t){a.e(t)}finally{a.f()}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),n.expectedStatus=206):n.expectedStatus=200,e.responseType="arraybuffer",t.onError&&(e.onerror=function(r){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,r),e.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=t.onHeadersReceived,n.onDone=t.onDone,n.onError=t.onError,n.onProgress=t.onProgress,e.send(null),r}},{key:"onProgress",value:function(t,e){var r,n=this.pendingRequests[t];n&&(null===(r=n.onProgress)||void 0===r||r.call(n,e))}},{key:"onStateChange",value:function(t,e){var r=this.pendingRequests[t];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&t in this.pendingRequests)if(delete this.pendingRequests[t],0===n.status&&this.isHttp){var i;null===(i=r.onError)||void 0===i||i.call(r,n.status)}else{var a=n.status||200;if(200===a&&206===r.expectedStatus||a===r.expectedStatus){var o=function(t){var e=t.response;return"string"!=typeof e?e:K(e).buffer}(n);if(206===a){var s=n.getResponseHeader("Content-Range"),u=/bytes (\\d+)-(\\d+)\\/(\\d+)/.exec(s);r.onDone({begin:parseInt(u[1],10),chunk:o})}else if(o)r.onDone({begin:0,chunk:o});else{var c;null===(c=r.onError)||void 0===c||c.call(r,n.status)}}else{var l;null===(l=r.onError)||void 0===l||l.call(r,n.status)}}}}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}])}(),ol=function(){return nl((function t(e){el(this,t),this._source=e,this._manager=new al(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return D(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new sl(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var r=new ul(this._manager,t,e);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);var r,n=$c(this._rangeRequestReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}}}])}(),sl=function(){return nl((function t(e,r){el(this,t),this._manager=e;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=e.requestFull(n),this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}),[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),r=new Headers(e.getAllResponseHeaders().trim().split(/[\\r\\n]+/).map((function(t){var e=function(t){return Jc(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Zc(t)||Qc()}(t.split(": "));return[e[0],e.slice(1).join(": ")]}))),n=Pc({responseHeaders:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,a=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=Lc(r),this._isRangeSupported&&this._manager.abortRequest(t),this._headersCapability.resolve()}},{key:"_onDone",value:function(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0}}},{key:"_onError",value:function(t){this._storedError=Mc(t,this._url),this._headersCapability.reject(this._storedError);var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.reject(this._storedError)}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(t){var e;null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"read",value:(t=Xc(qc().mark((function t(){var e,r;return qc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._headersCapability.reject(t);var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]);var t}(),ul=function(){return nl((function t(e,r,n){el(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}),[{key:"_close",value:function(){var t;null===(t=this.onClosed)||void 0===t||t.call(this,this)}},{key:"_onDone",value:function(t){var e=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0;var r,n=$c(this._requests);try{for(n.s();!(r=n.n()).done;)r.value.resolve({value:void 0,done:!0})}catch(t){n.e(t)}finally{n.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(t){this._storedError=Mc(t,this._url);var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.reject(this._storedError)}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(t){var e;this.isStreamingSupported||null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:t.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=Xc(qc().mark((function t(){var e,r;return qc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(null===this._queuedChunk){t.next=6;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 6:if(!this._done){t.next=8;break}return t.abrupt("return",{value:void 0,done:!0});case 8:return r=Promise.withResolvers(),this._requests.push(r),t.abrupt("return",r.promise);case 11:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0;var e,r=$c(this._requests);try{for(r.s();!(e=r.n()).done;)e.value.resolve({value:void 0,done:!0})}catch(t){r.e(t)}finally{r.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]);var t}();function cl(t,e,r){return e=hl(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,ll()?Reflect.construct(e,r||[],hl(t).constructor):e.apply(t,r))}function ll(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ll=function(){return!!t})()}function hl(t){return hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hl(t)}function fl(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dl(t,e)}function dl(t,e){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dl(t,e)}function vl(){vl=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function pl(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function yl(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){pl(a,n,i,o,s,"next",t)}function s(t){pl(a,n,i,o,s,"throw",t)}o(void 0)}))}}function gl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ml(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kl(n.key),n)}}function wl(t,e,r){return e&&bl(t.prototype,e),r&&bl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function kl(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}r(4129);var xl=/^[a-z][a-z0-9\\-+.]+:/i;function Al(t,e,r){return"http:"===t.protocol?cs.get("http").request(t,{headers:e},r):cs.get("https").request(t,{headers:e},r)}var _l,El=function(){return wl((function t(e){ml(this,t),this.source=e,this.url=function(t){if(xl.test(t))return new URL(t);var e=cs.get("url");return new URL(e.pathToFileURL(t))}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.headers=Tc(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_progressiveDataLength",get:function(){var t,e;return null!==(t=null===(e=this._fullRequestReader)||void 0===e?void 0:e._loaded)&&void 0!==t?t:0}},{key:"getFullReader",value:function(){return D(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new Ll(this):new Tl(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var r=this.isFsUrl?new Ml(this,t,e):new Pl(this,t,e);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(t){var e;null===(e=this._fullRequestReader)||void 0===e||e.cancel(t);var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return gl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gl(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(this._rangeRequestReaders.slice(0));try{for(n.s();!(r=n.n()).done;)r.value.cancel(t)}catch(t){n.e(t)}finally{n.f()}}}])}(),Sl=function(){return wl((function t(e){ml(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=e.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}),[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(t=yl(vl().mark((function t(){var e,r,n;return vl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(r=this._readableStream.read())){t.next=10;break}return this._readCapability=Promise.withResolvers(),t.abrupt("return",this.read());case 10:return this._loaded+=r.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(r).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Y("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var t}(),Ol=function(){return wl((function t(e){ml(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();var r=e.source;this._isStreamingSupported=!r.disableStream}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(t=yl(vl().mark((function t(){var e,r,n;return vl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(r=this._readableStream.read())){t.next=10;break}return this._readCapability=Promise.withResolvers(),t.abrupt("return",this.read());case 10:return this._loaded+=r.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),n=new Uint8Array(r).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var t}(),Tl=function(t){function e(t){var r;ml(this,e),r=cl(this,e,[t]);var n=Object.fromEntries(t.headers);return r._request=Al(r._url,n,(function(e){if(404===e.statusCode){var n=new z(\'Missing PDF "\'.concat(r._url,\'".\'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(e);var i=new Headers(r._readableStream.headers),a=Pc({responseHeaders:i,isHttp:t.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=a.allowRangeRequests,s=a.suggestedLength;r._isRangeSupported=o,r._contentLength=s||r._contentLength,r._filename=Lc(i)})),r._request.on("error",(function(t){r._storedError=t,r._headersCapability.reject(t)})),r._request.end(),r}return fl(e,Sl),wl(e)}(),Pl=function(t){function e(t,r,n){var i;ml(this,e),i=cl(this,e,[t]);var a=Object.fromEntries(t.headers);return a.Range="bytes=".concat(r,"-").concat(n-1),i._request=Al(i._url,a,(function(t){if(404!==t.statusCode)i._setReadableStream(t);else{var e=new z(\'Missing PDF "\'.concat(i._url,\'".\'));i._storedError=e}})),i._request.on("error",(function(t){i._storedError=t})),i._request.end(),i}return fl(e,Ol),wl(e)}(),Ll=function(t){function e(t){var r;ml(this,e),r=cl(this,e,[t]);var n=cs.get("fs");return n.promises.lstat(r._url).then((function(t){r._contentLength=t.size,r._setReadableStream(n.createReadStream(r._url)),r._headersCapability.resolve()}),(function(t){"ENOENT"===t.code&&(t=new z(\'Missing PDF "\'.concat(r._url,\'".\'))),r._storedError=t,r._headersCapability.reject(t)})),r}return fl(e,Sl),wl(e)}(),Ml=function(t){function e(t,r,n){var i;ml(this,e),i=cl(this,e,[t]);var a=cs.get("fs");return i._setReadableStream(a.createReadStream(i._url,{start:r,end:n-1})),i}return fl(e,Ol),wl(e)}();function Cl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return jl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jl(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function jl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Il(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rl(n.key),n)}}function Rl(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Fl(t,e,r){Dl(t,e),e.set(t,r)}function Dl(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nl(t,e){return t.get(Bl(t,e))}function Wl(t,e,r){return t.set(Bl(t,e),r),r}function Bl(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var Gl=30,Hl=.8,Ul=new WeakMap,zl=new WeakMap,Vl=new WeakMap,ql=new WeakMap,Yl=new WeakMap,Xl=new WeakMap,Kl=new WeakMap,Ql=new WeakMap,Jl=new WeakMap,$l=new WeakMap,Zl=new WeakMap,th=new WeakMap,eh=new WeakMap,rh=new WeakMap,nh=new WeakMap,ih=new WeakMap,ah=new WeakMap,oh=new WeakMap,sh=new WeakSet,uh=function(){function t(e){var r,n=this,i=e.textContentSource,a=e.container,o=e.viewport;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){Dl(t,e),e.add(t)}(this,sh),Fl(this,Ul,Promise.withResolvers()),Fl(this,zl,null),Fl(this,Vl,!1),Fl(this,ql,!(null===(r=globalThis.FontInspector)||void 0===r||!r.enabled)),Fl(this,Yl,null),Fl(this,Xl,null),Fl(this,Kl,0),Fl(this,Ql,0),Fl(this,Jl,null),Fl(this,$l,null),Fl(this,Zl,0),Fl(this,th,0),Fl(this,eh,Object.create(null)),Fl(this,rh,[]),Fl(this,nh,null),Fl(this,ih,[]),Fl(this,ah,new WeakMap),Fl(this,oh,null),i instanceof ReadableStream)Wl(nh,this,i);else{if("object"!=typeof i)throw new Error(\'No "textContentSource" parameter specified.\');Wl(nh,this,new ReadableStream({start(t){t.enqueue(i),t.close()}}))}Wl(zl,this,Wl($l,this,a)),Wl(th,this,o.scale*(globalThis.devicePixelRatio||1)),Wl(Zl,this,o.rotation),Wl(Xl,this,{div:null,properties:null,ctx:null});var s=o.rawDims,u=s.pageWidth,c=s.pageHeight,l=s.pageX,h=s.pageY;Wl(oh,this,[1,0,0,-1,-l,h+c]),Wl(Ql,this,u),Wl(Kl,this,c),vh.call(t),Re(a,o),Nl(Ul,this).promise.finally((function(){wh._.delete(n),Wl(Xl,n,null),Wl(eh,n,null)})).catch((function(){}))}return function(t,e,r){return e&&Il(t.prototype,e),r&&Il(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"render",value:function(){var t=this,e=function(){Nl(Jl,t).read().then((function(r){var n,i=r.value;r.done?Nl(Ul,t).resolve():(null!==(n=Nl(Yl,t))&&void 0!==n||Wl(Yl,t,i.lang),Object.assign(Nl(eh,t),i.styles),Bl(sh,t,ch).call(t,i.items),e())}),Nl(Ul,t).reject)};return Wl(Jl,this,Nl(nh,this).getReader()),wh._.add(this),e(),Nl(Ul,this).promise}},{key:"update",value:function(e){var r=e.viewport,n=e.onBefore,i=void 0===n?null:n,a=r.scale*(globalThis.devicePixelRatio||1),o=r.rotation;if(o!==Nl(Zl,this)&&(null==i||i(),Wl(Zl,this,o),Re(Nl($l,this),{rotation:o})),a!==Nl(th,this)){null==i||i(),Wl(th,this,a);var s,u={div:null,properties:null,ctx:fh.call(t,Nl(Yl,this))},c=Cl(Nl(ih,this));try{for(c.s();!(s=c.n()).done;){var l=s.value;u.properties=Nl(ah,this).get(l),u.div=l,Bl(sh,this,hh).call(this,u)}}catch(t){c.e(t)}finally{c.f()}}}},{key:"cancel",value:function(){var t,e=new Y("TextLayer task cancelled.");null===(t=Nl(Jl,this))||void 0===t||t.cancel(e).catch((function(){})),Wl(Jl,this,null),Nl(Ul,this).reject(e)}},{key:"textDivs",get:function(){return Nl(ih,this)}},{key:"textContentItemsStr",get:function(){return Nl(rh,this)}}],[{key:"fontFamilyMap",get:function(){var t=J.platform,e=t.isWindows,r=t.isFirefox;return W(this,"fontFamilyMap",new Map([["sans-serif","".concat(e&&r?"Calibri, ":"","sans-serif")],["monospace","".concat(e&&r?"Lucida Console, ":"","monospace")]]))}},{key:"cleanup",value:function(){if(!(Bl(t,this,wh)._.size>0)){Bl(t,this,yh)._.clear();var e,r=Cl(Bl(t,this,gh)._.values());try{for(r.s();!(e=r.n()).done;)e.value.canvas.remove()}catch(t){r.e(t)}finally{r.f()}Bl(t,this,gh)._.clear()}}}])}();function ch(t){var e,r;if(!Nl(Vl,this)){null!==(r=(e=Nl(Xl,this)).ctx)&&void 0!==r||(e.ctx=fh.call(_l,Nl(Yl,this)));var n,i=Nl(ih,this),a=Nl(rh,this),o=Cl(t);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(i.length>1e5)return R("Ignoring additional textDivs for performance reasons."),void Wl(Vl,this,!0);if(void 0!==s.str)a.push(s.str),Bl(sh,this,lh).call(this,s);else if("beginMarkedContentProps"===s.type||"beginMarkedContent"===s.type){var u=Nl(zl,this);Wl(zl,this,document.createElement("span")),Nl(zl,this).classList.add("markedContent"),null!==s.id&&Nl(zl,this).setAttribute("id","".concat(s.id)),u.append(Nl(zl,this))}else"endMarkedContent"===s.type&&Wl(zl,this,Nl(zl,this).parentNode)}}catch(t){o.e(t)}finally{o.f()}}}function lh(t){var e=document.createElement("span"),r={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};Nl(ih,this).push(e);var n=Z.transform(Nl(oh,this),t.transform),i=Math.atan2(n[1],n[0]),a=Nl(eh,this)[t.fontName];a.vertical&&(i+=Math.PI/2);var o=Nl(ql,this)&&a.fontSubstitution||a.fontFamily;o=_l.fontFamilyMap.get(o)||o;var s,u,c=Math.hypot(n[2],n[3]),l=c*ph.call(_l,o,Nl(Yl,this));0===i?(s=n[4],u=n[5]-l):(s=n[4]+l*Math.sin(i),u=n[5]-l*Math.cos(i));var h="calc(var(--scale-factor)*",f=e.style;Nl(zl,this)===Nl($l,this)?(f.left="".concat((100*s/Nl(Ql,this)).toFixed(2),"%"),f.top="".concat((100*u/Nl(Kl,this)).toFixed(2),"%")):(f.left="".concat(h).concat(s.toFixed(2),"px)"),f.top="".concat(h).concat(u.toFixed(2),"px)")),f.fontSize="".concat(h).concat((bh._*c).toFixed(2),"px)"),f.fontFamily=o,r.fontSize=c,e.setAttribute("role","presentation"),e.textContent=t.str,e.dir=t.dir,Nl(ql,this)&&(e.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),0!==i&&(r.angle=i*(180/Math.PI));var d=!1;if(t.str.length>1)d=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var v=Math.abs(t.transform[0]),p=Math.abs(t.transform[3]);v!==p&&Math.max(v,p)/Math.min(v,p)>1.5&&(d=!0)}if(d&&(r.canvasWidth=a.vertical?t.height:t.width),Nl(ah,this).set(e,r),Nl(Xl,this).div=e,Nl(Xl,this).properties=r,Bl(sh,this,hh).call(this,Nl(Xl,this)),r.hasText&&Nl(zl,this).append(e),r.hasEOL){var y=document.createElement("br");y.setAttribute("role","presentation"),Nl(zl,this).append(y)}}function hh(t){var e=t.div,r=t.properties,n=t.ctx,i=e.style,a="";if(bh._>1&&(a="scale(".concat(1/bh._,")")),0!==r.canvasWidth&&r.hasText){var o=i.fontFamily,s=r.canvasWidth,u=r.fontSize;dh.call(_l,n,u*Nl(th,this),o);var c=n.measureText(e.textContent).width;c>0&&(a="scaleX(".concat(s*Nl(th,this)/c,") ").concat(a))}0!==r.angle&&(a="rotate(".concat(r.angle,"deg) ").concat(a)),a.length>0&&(i.transform=a)}function fh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=Bl(_l,this,gh)._.get(t||(t=""));if(!e){var r=document.createElement("canvas");r.className="hiddenCanvasElement",r.lang=t,document.body.append(r),e=r.getContext("2d",{alpha:!1,willReadFrequently:!0}),Bl(_l,this,gh)._.set(t,e),Bl(_l,this,mh)._.set(e,{size:0,family:""})}return e}function dh(t,e,r){var n=Bl(_l,this,mh)._.get(t);e===n.size&&r===n.family||(t.font="".concat(e,"px ").concat(r),n.size=e,n.family=r)}function vh(){if(null===Bl(_l,this,bh)._){var t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.style.position="absolute",t.textContent="X",document.body.append(t),bh._=Bl(_l,this,t.getBoundingClientRect().height),t.remove()}}function ph(t,e){var r=Bl(_l,this,yh)._.get(t);if(r)return r;var n=Bl(_l,this,fh).call(this,e);n.canvas.width=n.canvas.height=Gl,Bl(_l,this,dh).call(this,n,Gl,t);var i=n.measureText(""),a=i.fontBoundingBoxAscent,o=Math.abs(i.fontBoundingBoxDescent);if(a){var s=a/(a+o);return Bl(_l,this,yh)._.set(t,s),n.canvas.width=n.canvas.height=0,s}n.strokeStyle="red",n.clearRect(0,0,Gl,Gl),n.strokeText("g",0,0);var u=n.getImageData(0,0,Gl,Gl).data;o=0;for(var c=u.length-1-3;c>=0;c-=4)if(u[c]>0){o=Math.ceil(c/4/Gl);break}n.clearRect(0,0,Gl,Gl),n.strokeText("A",0,Gl),a=0;for(var l=0,h=(u=n.getImageData(0,0,Gl,Gl).data).length;l<h;l+=4)if(u[l]>0){a=Gl-Math.floor(l/4/Gl);break}n.canvas.width=n.canvas.height=0;var f=a?a/(a+o):Hl;return Bl(_l,this,yh)._.set(t,f),f}_l=uh;var yh={_:new Map},gh={_:new Map},mh={_:new WeakMap},bh={_:null},wh={_:new Set};function kh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function xh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ah(n.key),n)}}function Ah(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var _h,Eh=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,r){return r&&xh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,0,[{key:"textContent",value:function(e){var r=[],n={items:r,styles:Object.create(null)};return function e(n){var i;if(n){var a=null,o=n.name;if("#text"===o)a=n.value;else{if(!t.shouldBuildText(o))return;null!=n&&null!==(i=n.attributes)&&void 0!==i&&i.textContent?a=n.attributes.textContent:n.value&&(a=n.value)}if(null!==a&&r.push({str:a}),n.children){var s,u=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return kh(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kh(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(n.children);try{for(u.s();!(s=u.n()).done;)e(s.value)}catch(t){u.e(t)}finally{u.f()}}}}(e),n}},{key:"shouldBuildText",value:function(t){return!("textarea"===t||"input"===t||"option"===t||"select"===t)}}])}();function Sh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sh(Object(r),!0).forEach((function(e){Th(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Th(t,e,r){return(e=qh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ph(t,e,r){return r(Fh(t,e))}function Lh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Nh(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mh(t,e){jh(t,e),e.add(t)}function Ch(t,e,r){jh(t,e),e.set(t,r)}function jh(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ih(t,e){return t.get(Fh(t,e))}function Rh(t,e,r){return t.set(Fh(t,e),r),r}function Fh(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function Dh(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Nh(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Nh(t,e){if(t){if("string"==typeof t)return Wh(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wh(t,e):void 0}}function Wh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Bh(){Bh=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Gh(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Hh(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Gh(a,n,i,o,s,"next",t)}function s(t){Gh(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Uh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qh(n.key),n)}}function Vh(t,e,r){return e&&zh(t.prototype,e),r&&zh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function qh(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var Yh=65536,Xh=m?fs:de,Kh=m?ds:ye,Qh=m?hs:te,Jh=m?vs:ge;function $h(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof r||r instanceof URL?r={url:r}:(r instanceof ArrayBuffer||ArrayBuffer.isView(r))&&(r={data:r});var n=new tf,i=n.docId,a=r.url?function(t){if(t instanceof URL)return t.href;try{return new URL(t,window.location).href}catch(e){if(m&&"string"==typeof t)return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(r.url):null,o=r.data?function(t){if(m&&"undefined"!=typeof Buffer&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if("string"==typeof t)return K(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||"object"==typeof t&&!isNaN(null==t?void 0:t.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(r.data):null,s=r.httpHeaders||null,u=!0===r.withCredentials,c=null!==(t=r.password)&&void 0!==t?t:null,l=r.range instanceof rf?r.range:null,h=Number.isInteger(r.rangeChunkSize)&&r.rangeChunkSize>0?r.rangeChunkSize:Yh,f=r.worker instanceof pf?r.worker:null,d=r.verbosity,v="string"!=typeof r.docBaseUrl||ke(r.docBaseUrl)?null:r.docBaseUrl,p="string"==typeof r.cMapUrl?r.cMapUrl:null,y=!1!==r.cMapPacked,g=r.CMapReaderFactory||Kh,b="string"==typeof r.standardFontDataUrl?r.standardFontDataUrl:null,w=r.StandardFontDataFactory||Jh,k=!0!==r.stopAtErrors,x=Number.isInteger(r.maxImageSize)&&r.maxImageSize>-1?r.maxImageSize:-1,A=!1!==r.isEvalSupported,_="boolean"==typeof r.isOffscreenCanvasSupported?r.isOffscreenCanvasSupported:!m,E=Number.isInteger(r.canvasMaxAreaInBytes)?r.canvasMaxAreaInBytes:-1,S="boolean"==typeof r.disableFontFace?r.disableFontFace:m,O=!0===r.fontExtraProperties,T=!0===r.enableXfa,P=r.ownerDocument||globalThis.document,L=!0===r.disableRange,M=!0===r.disableStream,j=!0===r.disableAutoFetch,I=!0===r.pdfBug,R=r.CanvasFactory||Xh,F=r.FilterFactory||Qh,D=!0===r.enableHWA,N=l?l.length:null!==(e=r.length)&&void 0!==e?e:NaN,W="boolean"==typeof r.useSystemFonts?r.useSystemFonts:!m&&!S,B="boolean"==typeof r.useWorkerFetch?r.useWorkerFetch:g===ye&&w===ge&&p&&b&&Oe(p,document.baseURI)&&Oe(b,document.baseURI);r.canvasFactory&&Pe("`canvasFactory`-instance option, please use `CanvasFactory` instead."),r.filterFactory&&Pe("`filterFactory`-instance option, please use `FilterFactory` instead."),C(d);var G={canvasFactory:new R({ownerDocument:P,enableHWA:D}),filterFactory:new F({docId:i,ownerDocument:P}),cMapReaderFactory:B?null:new g({baseUrl:p,isCompressed:y}),standardFontDataFactory:B?null:new w({baseUrl:b})};if(!f){var H={verbosity:d,port:mu.workerPort};f=H.port?pf.fromPort(H):new pf(H),n._worker=f}var U={docId:i,apiVersion:"4.7.0",data:o,password:c,disableAutoFetch:j,rangeChunkSize:h,length:N,docBaseUrl:v,enableXfa:T,evaluatorOptions:{maxImageSize:x,disableFontFace:S,ignoreErrors:k,isEvalSupported:A,isOffscreenCanvasSupported:_,canvasMaxAreaInBytes:E,fontExtraProperties:O,useSystemFonts:W,cMapUrl:B?p:null,standardFontDataUrl:B?b:null}},z={disableFontFace:S,fontExtraProperties:O,ownerDocument:P,pdfBug:I,styleElement:null,loadingParams:{disableAutoFetch:j,enableXfa:T}};return f.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");if(f.destroyed)throw new Error("Worker was destroyed");var t,e=f.messageHandler.sendWithPromise("GetDocRequest",U,o?[o.buffer]:null);if(l)t=new Ac(l,{disableRange:L,disableStream:M});else if(!o){if(!a)throw new Error("getDocument - no `url` parameter provided.");var r;r=m?"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&Oe(a)?Uc:El:Oe(a)?Uc:ol,t=new r({url:a,length:N,httpHeaders:s,withCredentials:u,rangeChunkSize:h,disableRange:L,disableStream:M})}return e.then((function(e){if(n.destroyed)throw new Error("Loading aborted");if(f.destroyed)throw new Error("Worker was destroyed");var r=new Tu(i,e,f.port),a=new Of(r,n,t,z,G);n._transport=a,r.send("Ready",null)}))})).catch(n._capability.reject),n}function Zh(t){return"object"==typeof t&&Number.isInteger(null==t?void 0:t.num)&&t.num>=0&&Number.isInteger(null==t?void 0:t.gen)&&t.gen>=0}var tf=function(){return Vh((function t(){var e,r;Uh(this,t),this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId="d".concat((ef._=(e=ef._,r=e++,e),r)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}),[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:(t=Hh(Bh().mark((function t(){var e,r,n;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.destroyed=!0,t.prev=1,null!==(e=this._worker)&&void 0!==e&&e.port&&(this._worker._pendingDestroy=!0),t.next=5,null===(r=this._transport)||void 0===r?void 0:r.destroy();case 5:t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),null!==(n=this._worker)&&void 0!==n&&n.port&&delete this._worker._pendingDestroy,t.t0;case 11:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 13:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return t.apply(this,arguments)})}]);var t}(),ef={_:0},rf=function(){return Vh((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Uh(this,t),this.length=e,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}),[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var r,n=Dh(this._rangeListeners);try{for(n.s();!(r=n.n()).done;)(0,r.value)(t,e)}catch(t){n.e(t)}finally{n.f()}}},{key:"onDataProgress",value:function(t,e){var r=this;this._readyCapability.promise.then((function(){var n,i=Dh(r._progressListeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t,e)}catch(t){i.e(t)}finally{i.f()}}))}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then((function(){var r,n=Dh(e._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;)(0,r.value)(t)}catch(t){n.e(t)}finally{n.f()}}))}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then((function(){var e,r=Dh(t._progressiveDoneListeners);try{for(r.s();!(e=r.n()).done;)(0,e.value)()}catch(t){r.e(t)}finally{r.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){F("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}])}(),nf=function(){return Vh((function t(e,r){Uh(this,t),this._pdfInfo=e,this._transport=r}),[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"canvasFactory",get:function(){return this._transport.canvasFactory}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"isPureXfa",get:function(){return W(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,e=void 0===t?"display":t,r=this._transport.getRenderingIntent(e).renderingIntent;return this._transport.getOptionalContentConfig(r)}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"saveDocument",value:function(){return this._transport.saveDocument()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(t||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"cachedPageNumber",value:function(t){return this._transport.cachedPageNumber(t)}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}])}(),af=new WeakMap,of=new WeakMap,sf=new WeakSet,uf=function(){return Vh((function t(e,r,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Uh(this,t),Mh(this,sf),Ch(this,af,null),Ch(this,of,!1),this._pageIndex=e,this._pageInfo=r,this._transport=n,this._stats=i?new Se:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new Cf,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}),[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,r=t.rotation,n=void 0===r?this.rotate:r,i=t.offsetX,a=void 0===i?0:i,o=t.offsetY,s=void 0===o?0:o,u=t.dontFlip,c=void 0!==u&&u;return new be({viewBox:this.view,scale:e,rotation:n,offsetX:a,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,e=void 0===t?"display":t,r=this._transport.getRenderingIntent(e).renderingIntent;return this._transport.getAnnotations(this._pageIndex,r)}},{key:"getJSActions",value:function(){return this._transport.getPageJSActions(this._pageIndex)}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"isPureXfa",get:function(){return W(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"getXfa",value:(t=Hh(Bh().mark((function t(){var e;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null);case 1:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(t){var e,r,n=this,i=t.canvasContext,a=t.viewport,o=t.intent,s=void 0===o?"display":o,u=t.annotationMode,c=void 0===u?x.ENABLE:u,l=t.transform,h=void 0===l?null:l,f=t.background,d=void 0===f?null:f,v=t.optionalContentConfigPromise,p=void 0===v?null:v,y=t.annotationCanvasMap,g=void 0===y?null:y,m=t.pageColors,b=void 0===m?null:m,w=t.printAnnotationStorage,k=void 0===w?null:w,A=t.isEditing,_=void 0!==A&&A;null===(e=this._stats)||void 0===e||e.time("Overall");var E=this._transport.getRenderingIntent(s,c,k,_),S=E.renderingIntent,O=E.cacheKey;Rh(of,this,!1),Fh(sf,this,lf).call(this),p||(p=this._transport.getOptionalContentConfig(S));var T=this._intentStates.get(O);T||(T=Object.create(null),this._intentStates.set(O,T)),T.streamReaderCancelTimeout&&(clearTimeout(T.streamReaderCancelTimeout),T.streamReaderCancelTimeout=null);var P,L=!!(4&S);T.displayReadyCapability||(T.displayReadyCapability=Promise.withResolvers(),T.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(P=this._stats)||void 0===P||P.time("Page Request"),this._pumpOperatorList(E));var M=function(t){var e;T.renderTasks.delete(C),(n._maybeCleanupAfterRender||L)&&Rh(of,n,!0),Fh(sf,n,cf).call(n,!L),t?(C.capability.reject(t),n._abortOperatorList({intentState:T,reason:t instanceof Error?t:new Error(t)})):C.capability.resolve(),n._stats&&(n._stats.timeEnd("Rendering"),n._stats.timeEnd("Overall"),null!==(e=globalThis.Stats)&&void 0!==e&&e.enabled&&globalThis.Stats.add(n.pageNumber,n._stats))},C=new Df({callback:M,params:{canvasContext:i,viewport:a,transform:h,background:d},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:g,operatorList:T.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!L,pdfBug:this._pdfBug,pageColors:b});((r=T).renderTasks||(r.renderTasks=new Set)).add(C);var j=C.task;return Promise.all([T.displayReadyCapability.promise,p]).then((function(t){var e,r=Lh(t,2),i=r[0],a=r[1];if(n.destroyed)M();else{if(null===(e=n._stats)||void 0===e||e.time("Rendering"),!(a.renderingIntent&S))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:i,optionalContentConfig:a}),C.operatorListChanged()}})).catch(M),j}},{key:"getOperatorList",value:function(){var t,e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.intent,a=void 0===i?"display":i,o=n.annotationMode,s=void 0===o?x.ENABLE:o,u=n.printAnnotationStorage,c=void 0===u?null:u,l=n.isEditing,h=void 0!==l&&l,f=this._transport.getRenderingIntent(a,s,c,h,!0),d=this._intentStates.get(f.cacheKey);return d||(d=Object.create(null),this._intentStates.set(f.cacheKey,d)),d.opListReadCapability||((t=Object.create(null)).operatorListChanged=function(){d.operatorList.lastChunk&&(d.opListReadCapability.resolve(d.operatorList),d.renderTasks.delete(t))},d.opListReadCapability=Promise.withResolvers(),((e=d).renderTasks||(e.renderTasks=new Set)).add(t),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(r=this._stats)||void 0===r||r.time("Page Request"),this._pumpOperatorList(f)),d.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.includeMarkedContent,r=void 0!==e&&e,n=t.disableNormalization,i=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===r,disableNormalization:!0===i},{highWaterMark:100,size:t=>t.items.length})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((function(t){return Eh.textContent(t)}));var e=this.streamTextContent(t);return new Promise((function(t,r){var n=e.getReader(),i={items:[],styles:Object.create(null),lang:null};!function e(){n.read().then((function(r){var n,a,o=r.value;r.done?t(i):(null!==(n=i.lang)&&void 0!==n||(i.lang=o.lang),Object.assign(i.styles,o.styles),(a=i.items).push.apply(a,function(t){return function(t){if(Array.isArray(t))return Wh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Nh(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.items)),e())}),r)}()}))}},{key:"getStructTree",value:function(){return this._transport.getStructTree(this._pageIndex)}},{key:"_destroy",value:function(){this.destroyed=!0;var t,e=[],r=Dh(this._intentStates.values());try{for(r.s();!(t=r.n()).done;){var n=t.value;if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability){var i,a=Dh(n.renderTasks);try{for(a.s();!(i=a.n()).done;){var o=i.value;e.push(o.completed),o.cancel()}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){r.e(t)}finally{r.f()}return this.objs.clear(),Rh(of,this,!1),Fh(sf,this,lf).call(this),Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Rh(of,this,!0);var e=Fh(sf,this,cf).call(this,!1);return t&&e&&this._stats&&(this._stats=new Se),e}},{key:"_startRenderPage",value:function(t,e){var r,n,i=this._intentStates.get(e);i&&(null===(r=this._stats)||void 0===r||r.timeEnd("Page Request"),null===(n=i.displayReadyCapability)||void 0===n||n.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var r=0,n=t.length;r<n;r++)e.operatorList.fnArray.push(t.fnArray[r]),e.operatorList.argsArray.push(t.argsArray[r]);e.operatorList.lastChunk=t.lastChunk,e.operatorList.separateAnnots=t.separateAnnots;var i,a=Dh(e.renderTasks);try{for(a.s();!(i=a.n()).done;)i.value.operatorListChanged()}catch(t){a.e(t)}finally{a.f()}t.lastChunk&&Fh(sf,this,cf).call(this,!0)}},{key:"_pumpOperatorList",value:function(t){var e=this,r=t.renderingIntent,n=t.cacheKey,i=t.annotationStorageSerializable,a=t.modifiedIds,o=i.map,s=i.transfer,u=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:r,cacheKey:n,annotationStorage:o,modifiedIds:a},s).getReader(),c=this._intentStates.get(n);c.streamReader=u;var l=function(){u.read().then((function(t){var r=t.value;t.done?c.streamReader=null:e._transport.destroyed||(e._renderPageChunk(r,c),l())}),(function(t){if(c.streamReader=null,!e._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;var r,n=Dh(c.renderTasks);try{for(n.s();!(r=n.n()).done;)r.value.operatorListChanged()}catch(t){n.e(t)}finally{n.f()}Fh(sf,e,cf).call(e,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(t);else{if(!c.opListReadCapability)throw t;c.opListReadCapability.reject(t)}}}))};l()}},{key:"_abortOperatorList",value:function(t){var e=this,r=t.intentState,n=t.reason,i=t.force,a=void 0!==i&&i;if(r.streamReader){if(r.streamReaderCancelTimeout&&(clearTimeout(r.streamReaderCancelTimeout),r.streamReaderCancelTimeout=null),!a){if(r.renderTasks.size>0)return;if(n instanceof we){var o=100;return n.extraDelay>0&&n.extraDelay<1e3&&(o+=n.extraDelay),void(r.streamReaderCancelTimeout=setTimeout((function(){r.streamReaderCancelTimeout=null,e._abortOperatorList({intentState:r,reason:n,force:!0})}),o))}}if(r.streamReader.cancel(new Y(n.message)).catch((function(){})),r.streamReader=null,!this._transport.destroyed){var s,u=Dh(this._intentStates);try{for(u.s();!(s=u.n()).done;){var c=Lh(s.value,2),l=c[0];if(c[1]===r){this._intentStates.delete(l);break}}}catch(t){u.e(t)}finally{u.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]);var t}();function cf(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Fh(sf,this,lf).call(this),!Ih(of,this)||this.destroyed)return!1;if(e)return Rh(af,this,setTimeout((function(){Rh(af,t,null),Fh(sf,t,cf).call(t,!1)}),5e3)),!1;var r,n=Dh(this._intentStates.values());try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.renderTasks,o=i.operatorList;if(a.size>0||!o.lastChunk)return!1}}catch(t){n.e(t)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),Rh(of,this,!1),!0}function lf(){Ih(af,this)&&(clearTimeout(Ih(af,this)),Rh(af,this,null))}var hf=new WeakMap,ff=new WeakMap,df=function(){return Vh((function t(){Uh(this,t),Ch(this,hf,new Set),Ch(this,ff,Promise.resolve())}),[{key:"postMessage",value:function(t,e){var r=this,n={data:structuredClone(t,e?{transfer:e}:null)};Ih(ff,this).then((function(){var t,e=Dh(Ih(hf,r));try{for(e.s();!(t=e.n()).done;)t.value.call(r,n)}catch(t){e.e(t)}finally{e.f()}}))}},{key:"addEventListener",value:function(t,e){Ih(hf,this).add(e)}},{key:"removeEventListener",value:function(t,e){Ih(hf,this).delete(e)}},{key:"terminate",value:function(){Ih(hf,this).clear()}}])}(),vf=new WeakSet,pf=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,n=void 0===r?null:r,i=e.port,a=void 0===i?null:i,o=e.verbosity,s=void 0===o?j():o;if(Uh(this,t),Mh(this,vf),this.name=n,this.destroyed=!1,this.verbosity=s,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,a){var u;if(null!==(u=wf._)&&void 0!==u&&u.has(a))throw new Error("Cannot use more than one PDFWorker per port.");return(wf._||(wf._=new WeakMap)).set(a,this),void this._initializeFromPort(a)}this._initialize()}return Vh(t,[{key:"promise",get:function(){return m?Promise.all([cs.promise,this._readyCapability.promise]):this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new Tu("main","worker",t),this._messageHandler.on("ready",(function(){})),Fh(vf,this,yf).call(this)}},{key:"_initialize",value:function(){var e=this;if(bf._||gf())this._setupFakeWorker();else{var r=t.workerSrc;try{t._isSameOrigin(window.location.href,r)||(r=t._createCDNWrapper(new URL(r,window.location).href));var n=new Worker(r,{type:"module"}),i=new Tu("main","worker",n),a=function(){o.abort(),i.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=new AbortController;n.addEventListener("error",(function(){e._webWorker||a()}),{signal:o.signal}),i.on("test",(function(t){o.abort(),!e.destroyed&&t?(e._messageHandler=i,e._port=n,e._webWorker=n,Fh(vf,e,yf).call(e)):a()})),i.on("ready",(function(t){if(o.abort(),e.destroyed)a();else try{s()}catch(t){e._setupFakeWorker()}}));var s=function(){var t=new Uint8Array;i.send("test",t,[t.buffer])};return void s()}catch(t){I("The worker has been disabled.")}this._setupFakeWorker()}}},{key:"_setupFakeWorker",value:function(){var e=this;bf._||(R("Setting up fake worker."),bf._=!0),t._setupFakeWorkerGlobal.then((function(t){var r,n;if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var i=new df;e._port=i;var a="fake".concat((mf._=(r=mf._,n=r++,r),n)),o=new Tu(a+"_worker",a,i);t.setup(o,i),e._messageHandler=new Tu(a,a+"_worker",i),Fh(vf,e,yf).call(e)}})).catch((function(t){e._readyCapability.reject(new Error(\'Setting up fake worker failed: "\'.concat(t.message,\'".\')))}))}},{key:"destroy",value:function(){var t;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(t=wf._)||void 0===t||t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(e){var r;if(null==e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var n=null===(r=Fh(t,this,wf)._)||void 0===r?void 0:r.get(e.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new t(e)}},{key:"workerSrc",get:function(){if(mu.workerSrc)return mu.workerSrc;throw new Error(\'No "GlobalWorkerOptions.workerSrc" specified.\')}},{key:"_setupFakeWorkerGlobal",get:function(){var e=this,r=function(){var r=Hh(Bh().mark((function r(){var n;return Bh().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Ph(t,e,gf)){r.next=2;break}return r.abrupt("return",Ph(t,e,gf));case 2:return r.next=4,import(e.workerSrc);case 4:return n=r.sent,r.abrupt("return",n.WorkerMessageHandler);case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();return W(this,"_setupFakeWorkerGlobal",r())}}])}();function yf(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}function gf(t){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}_h=pf;var mf={_:0},bf={_:!1},wf={_:void 0};m&&(bf._=Fh(_h,_h,!0),mu.workerSrc||(mu.workerSrc="./pdf.worker.mjs")),_h._isSameOrigin=function(t,e){var r;try{if(!(r=new URL(t)).origin||"null"===r.origin)return!1}catch(t){return!1}var n=new URL(e,r);return r.origin===n.origin},_h._createCDNWrapper=function(t){var e=\'await import("\'.concat(t,\'");\');return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};var kf=new WeakMap,xf=new WeakMap,Af=new WeakMap,_f=new WeakMap,Ef=new WeakMap,Sf=new WeakSet,Of=function(){return Vh((function t(e,r,n,i,a){Uh(this,t),Mh(this,Sf),Ch(this,kf,new Map),Ch(this,xf,new Map),Ch(this,Af,new Map),Ch(this,_f,new Map),Ch(this,Ef,null),this.messageHandler=e,this.loadingTask=r,this.commonObjs=new Cf,this.fontLoader=new Yo({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=a.canvasFactory,this.filterFactory=a.filterFactory,this.cMapReaderFactory=a.cMapReaderFactory,this.standardFontDataFactory=a.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}),[{key:"annotationStorage",get:function(){return W(this,"annotationStorage",new Mo)}},{key:"getRenderingIntent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.ENABLE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=2,o=So;switch(t){case"any":a=1;break;case"display":break;case"print":a=4;break;default:R("getRenderingIntent - invalid intent: ".concat(t))}var s=4&a&&r instanceof Io?r:this.annotationStorage;switch(e){case x.DISABLE:a+=64;break;case x.ENABLE:break;case x.ENABLE_FORMS:a+=16;break;case x.ENABLE_STORAGE:a+=32,o=s.serializable;break;default:R("getRenderingIntent - invalid annotationMode: ".concat(e))}n&&(a+=128),i&&(a+=256);var u=s.modifiedIds,c=u.ids,l=u.hash;return{renderingIntent:a,cacheKey:[a,o.hash,l].join("_"),annotationStorageSerializable:o,modifiedIds:c}}},{key:"destroy",value:function(){var t,e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),null===(t=Ih(Ef,this))||void 0===t||t.reject(new Error("Worker was destroyed during onPassword callback"));var r,n=[],i=Dh(Ih(xf,this).values());try{for(i.s();!(r=i.n()).done;){var a=r.value;n.push(a._destroy())}}catch(t){i.e(t)}finally{i.f()}Ih(xf,this).clear(),Ih(Af,this).clear(),Ih(_f,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var o=this.messageHandler.sendWithPromise("Terminate",null);return n.push(o),Promise.all(n).then((function(){var t;e.commonObjs.clear(),e.fontLoader.clear(),Ih(kf,e).clear(),e.filterFactory.destroy(),uh.cleanup(),null===(t=e._networkStream)||void 0===t||t.cancelAllRequests(new Y("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,r=this.loadingTask;e.on("GetReader",(function(e,r){D(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},r.onPull=function(){t._fullReader.read().then((function(t){var e=t.value;t.done?r.close():(D(e instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){r.error(t)}))},r.onCancel=function(e){t._fullReader.cancel(e),r.ready.catch((function(e){if(!t.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(function(e){var n=Promise.withResolvers(),i=t._fullReader;return i.headersReady.then((function(){var e;i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&(null===(e=r.onProgress)||void 0===e||e.call(r,t._lastProgress)),i.onProgress=function(t){var e;null===(e=r.onProgress)||void 0===e||e.call(r,{loaded:t.loaded,total:t.total})});n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",(function(e,r){D(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var n=t._networkStream.getRangeReader(e.begin,e.end);n?(r.onPull=function(){n.read().then((function(t){var e=t.value;t.done?r.close():(D(e instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){r.error(t)}))},r.onCancel=function(e){n.cancel(e),r.ready.catch((function(e){if(!t.destroyed)throw e}))}):r.close()})),e.on("GetDoc",(function(e){var n=e.pdfInfo;t._numPages=n.numPages,t._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new nf(n,t))})),e.on("DocException",(function(t){var e;switch(t.name){case"PasswordException":e=new G(t.message,t.code);break;case"InvalidPDFException":e=new U(t.message);break;case"MissingPDFException":e=new z(t.message);break;case"UnexpectedResponseException":e=new V(t.message,t.status);break;case"UnknownErrorException":e=new H(t.message,t.details);break;default:F("DocException - expected a valid Error.")}r._capability.reject(e)})),e.on("PasswordRequest",(function(e){if(Rh(Ef,t,Promise.withResolvers()),r.onPassword)try{r.onPassword((function(e){e instanceof Error?Ih(Ef,t).reject(e):Ih(Ef,t).resolve({password:e})}),e.code)}catch(e){Ih(Ef,t).reject(e)}else Ih(Ef,t).reject(new G(e.message,e.code));return Ih(Ef,t).promise})),e.on("DataLoaded",(function(e){var n;null===(n=r.onProgress)||void 0===n||n.call(r,{loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(function(e){t.destroyed||Ih(xf,t).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(function(r){var n,i=Lh(r,3),a=i[0],o=i[1],s=i[2];if(t.destroyed)return null;if(t.commonObjs.has(a))return null;switch(o){case"Font":var u=t._params,c=u.disableFontFace,l=u.fontExtraProperties,h=u.pdfBug;if("error"in s){var f=s.error;R("Error during font loading: ".concat(f)),t.commonObjs.resolve(a,f);break}var d=h&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled?function(t,e){return globalThis.FontInspector.fontAdded(t,e)}:null,v=new Xo(s,{disableFontFace:c,inspectFont:d});t.fontLoader.bind(v).catch((function(){return e.sendWithPromise("FontFallback",{id:a})})).finally((function(){!l&&v.data&&(v.data=null),t.commonObjs.resolve(a,v)}));break;case"CopyLocalImage":var p=s.imageRef;D(p,"The imageRef must be defined.");var y,g=Dh(Ih(xf,t).values());try{for(g.s();!(y=g.n()).done;){var m,b=Dh(y.value.objs);try{for(b.s();!(m=b.n()).done;){var w=Lh(m.value,2)[1];if((null==w?void 0:w.ref)===p)return w.dataLen?(t.commonObjs.resolve(a,structuredClone(w)),w.dataLen):null}}catch(t){b.e(t)}finally{b.f()}}}catch(t){g.e(t)}finally{g.f()}break;case"FontPath":case"Image":case"Pattern":t.commonObjs.resolve(a,s);break;default:throw new Error("Got unknown common object type ".concat(o))}return null})),e.on("obj",(function(e){var r=Lh(e,4),n=r[0],i=r[1],a=r[2],o=r[3];if(!t.destroyed){var s,u=Ih(xf,t).get(i);if(!u.objs.has(n))if(0!==u._intentStates.size)switch(a){case"Image":u.objs.resolve(n,o),(null==o?void 0:o.dataLen)>1e7&&(u._maybeCleanupAfterRender=!0);break;case"Pattern":u.objs.resolve(n,o);break;default:throw new Error("Got unknown object type ".concat(a))}else null==o||null===(s=o.bitmap)||void 0===s||s.close()}})),e.on("DocProgress",(function(e){var n;t.destroyed||null===(n=r.onProgress)||void 0===n||n.call(r,{loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(function(e){return t.destroyed?Promise.reject(new Error("Worker was destroyed.")):t.cMapReaderFactory?t.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))})),e.on("FetchStandardFontData",(function(e){return t.destroyed?Promise.reject(new Error("Worker was destroyed.")):t.standardFontDataFactory?t.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))}))}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"saveDocument",value:function(){var t,e,r=this;this.annotationStorage.size<=0&&R("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var n=this.annotationStorage.serializable,i=n.map,a=n.transfer;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:i,filename:null!==(t=null===(e=this._fullReader)||void 0===e?void 0:e.filename)&&void 0!==t?t:null},a).finally((function(){r.annotationStorage.resetModified()}))}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));var r=t-1,n=Ih(Af,this).get(r);if(n)return n;var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(n){if(e.destroyed)throw new Error("Transport destroyed");n.refStr&&Ih(_f,e).set(n.refStr,t);var i=new uf(r,n,e,e._params.pdfBug);return Ih(xf,e).set(r,i),i}));return Ih(Af,this).set(r,i),i}},{key:"getPageIndex",value:function(t){return Zh(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getFieldObjects",value:function(){return Fh(Sf,this,Tf).call(this,"GetFieldObjects")}},{key:"hasJSActions",value:function(){return Fh(Sf,this,Tf).call(this,"HasJSActions")}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getDocJSActions",value:function(){return Fh(Sf,this,Tf).call(this,"GetDocJSActions")}},{key:"getPageJSActions",value:function(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}},{key:"getStructTree",value:function(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(t){return Fh(Sf,this,Tf).call(this,"GetOptionalContentConfig").then((function(e){return new fc(e,t)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this,e="GetMetadata",r=Ih(kf,this).get(e);if(r)return r;var n=this.messageHandler.sendWithPromise(e,null).then((function(e){var r,n,i,a;return{info:e[0],metadata:e[1]?new Gu(e[1]):null,contentDispositionFilename:null!==(r=null===(n=t._fullReader)||void 0===n?void 0:n.filename)&&void 0!==r?r:null,contentLength:null!==(i=null===(a=t._fullReader)||void 0===a?void 0:a.contentLength)&&void 0!==i?i:null}}));return Ih(kf,this).set(e,n),n}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:(t=Hh(Bh().mark((function t(){var e,r,n,i,a=arguments;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]&&a[0],!this.destroyed){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,this.messageHandler.sendWithPromise("Cleanup",null);case 5:r=Dh(Ih(xf,this).values()),t.prev=6,r.s();case 8:if((n=r.n()).done){t.next=15;break}if((i=n.value).cleanup()){t.next=13;break}throw new Error("startCleanup: Page ".concat(i.pageNumber," is currently rendering."));case 13:t.next=8;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),r.e(t.t0);case 20:return t.prev=20,r.f(),t.finish(20);case 23:this.commonObjs.clear(),e||this.fontLoader.clear(),Ih(kf,this).clear(),this.filterFactory.destroy(!0),uh.cleanup();case 28:case"end":return t.stop()}}),t,this,[[6,17,20,23]])}))),function(){return t.apply(this,arguments)})},{key:"cachedPageNumber",value:function(t){var e;if(!Zh(t))return null;var r=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);return null!==(e=Ih(_f,this).get(r))&&void 0!==e?e:null}}]);var t}();function Tf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Ih(kf,this).get(t);if(r)return r;var n=this.messageHandler.sendWithPromise(t,e);return Ih(kf,this).set(t,n),n}var Pf=Symbol("INITIAL_DATA"),Lf=new WeakMap,Mf=new WeakSet,Cf=function(){return Vh((function t(){Uh(this,t),Mh(this,Mf),Ch(this,Lf,Object.create(null))}),[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var r=Fh(Mf,this,jf).call(this,t);return r.promise.then((function(){return e(r.data)})),null}var n=Ih(Lf,this)[t];if(!n||n.data===Pf)throw new Error("Requesting object that isn\'t resolved yet ".concat(t,"."));return n.data}},{key:"has",value:function(t){var e=Ih(Lf,this)[t];return!!e&&e.data!==Pf}},{key:"resolve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Fh(Mf,this,jf).call(this,t);r.data=e,r.resolve()}},{key:"clear",value:function(){for(var t in Ih(Lf,this)){var e,r=Ih(Lf,this)[t].data;null==r||null===(e=r.bitmap)||void 0===e||e.close()}Rh(Lf,this,Object.create(null))}},{key:Symbol.iterator,value:Bh().mark((function t(){var e,r;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=Bh().keys(Ih(Lf,this));case 1:if((t.t1=t.t0()).done){t.next=10;break}if(e=t.t1.value,(r=Ih(Lf,this)[e].data)!==Pf){t.next=6;break}return t.abrupt("continue",1);case 6:return t.next=8,[e,r];case 8:t.next=1;break;case 10:case"end":return t.stop()}}),t,this)}))}])}();function jf(t){var e;return(e=Ih(Lf,this))[t]||(e[t]=Oh(Oh({},Promise.withResolvers()),{},{data:Pf}))}var If=new WeakMap,Rf=function(){return Vh((function t(e){Uh(this,t),Ch(this,If,null),Rh(If,this,e),this.onContinue=null}),[{key:"promise",get:function(){return Ih(If,this).capability.promise}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Ih(If,this).cancel(null,t)}},{key:"separateAnnots",get:function(){var t=Ih(If,this).operatorList.separateAnnots;if(!t)return!1;var e=Ih(If,this).annotationCanvasMap;return t.form||t.canvas&&(null==e?void 0:e.size)>0}}])}(),Ff=new WeakMap,Df=function(){return Vh((function t(e){var r=e.callback,n=e.params,i=e.objs,a=e.commonObjs,o=e.annotationCanvasMap,s=e.operatorList,u=e.pageIndex,c=e.canvasFactory,l=e.filterFactory,h=e.useRequestAnimationFrame,f=void 0!==h&&h,d=e.pdfBug,v=void 0!==d&&d,p=e.pageColors,y=void 0===p?null:p;Uh(this,t),Ch(this,Ff,null),this.callback=r,this.params=n,this.objs=i,this.commonObjs=a,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=u,this.canvasFactory=c,this.filterFactory=l,this._pdfBug=v,this.pageColors=y,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===f&&"undefined"!=typeof window,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Rf(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}),[{key:"completed",get:function(){return this.capability.promise.catch((function(){}))}},{key:"initializeGraphics",value:function(t){var e,r,n=t.transparency,i=void 0!==n&&n,a=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(Nf._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Nf._.add(this._canvas)}this._pdfBug&&null!==(e=globalThis.StepperManager)&&void 0!==e&&e.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var o=this.params,s=o.canvasContext,u=o.viewport,c=o.transform,l=o.background;this.gfx=new hu(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:a},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:c,viewport:u,transparency:i,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(r=this.graphicsReadyCallback)||void 0===r||r.call(this)}}},{key:"cancel",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(t=this.gfx)||void 0===t||t.endDrawing(),Ih(Ff,this)&&(window.cancelAnimationFrame(Ih(Ff,this)),Rh(Ff,this,null)),Nf._.delete(this._canvas),this.callback(e||new we("Rendering cancelled, page ".concat(this._pageIndex+1),r))}},{key:"operatorListChanged",value:function(){var t;this.graphicsReady?(null===(t=this.stepper)||void 0===t||t.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?Rh(Ff,this,window.requestAnimationFrame((function(){Rh(Ff,t,null),t._nextBound().catch(t._cancelBound)}))):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:(t=Hh(Bh().mark((function t(){return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),Nf._.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t}(),Nf={_:new WeakSet},Wf="4.7.0",Bf="";function Gf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Hf(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hf(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Uf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zf(n.key),n)}}function zf(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Vf(t){return Math.floor(255*Math.max(0,Math.min(1,t))).toString(16).padStart(2,"0")}function qf(t){return Math.max(0,Math.min(255,255*t))}r(7288),r(176),r(8408),r(98),r(4302),r(7149),r(482),r(9166);var Yf=function(){return function(t,e,r){return r&&Uf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}),0,[{key:"CMYK_G",value:function(t){var e=Gf(t,4),r=e[0],n=e[1],i=e[2],a=e[3];return["G",1-Math.min(1,.3*r+.59*i+.11*n+a)]}},{key:"G_CMYK",value:function(t){return["CMYK",0,0,0,1-Gf(t,1)[0]]}},{key:"G_RGB",value:function(t){var e=Gf(t,1)[0];return["RGB",e,e,e]}},{key:"G_rgb",value:function(t){var e=Gf(t,1)[0];return[e=qf(e),e,e]}},{key:"G_HTML",value:function(t){var e=Vf(Gf(t,1)[0]);return"#".concat(e).concat(e).concat(e)}},{key:"RGB_G",value:function(t){var e=Gf(t,3);return["G",.3*e[0]+.59*e[1]+.11*e[2]]}},{key:"RGB_rgb",value:function(t){return t.map(qf)}},{key:"RGB_HTML",value:function(t){return"#".concat(t.map(Vf).join(""))}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"T_rgb",value:function(){return[null]}},{key:"CMYK_RGB",value:function(t){var e=Gf(t,4),r=e[0],n=e[1],i=e[2],a=e[3];return["RGB",1-Math.min(1,r+a),1-Math.min(1,i+a),1-Math.min(1,n+a)]}},{key:"CMYK_rgb",value:function(t){var e=Gf(t,4),r=e[0],n=e[1],i=e[2],a=e[3];return[qf(1-Math.min(1,r+a)),qf(1-Math.min(1,i+a)),qf(1-Math.min(1,n+a))]}},{key:"CMYK_HTML",value:function(t){var e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}},{key:"RGB_CMYK",value:function(t){var e=Gf(t,3),r=1-e[0],n=1-e[1],i=1-e[2];return["CMYK",r,n,i,Math.min(r,n,i)]}}])}();function Xf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Qf(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kf(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Qf(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Qf(t,e){if(t){if("string"==typeof t)return Jf(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jf(t,e):void 0}}function Jf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function $f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zf(n.key),n)}}function Zf(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var td=function(){return function(t,e,r){return r&&$f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}),0,[{key:"setupStorage",value:function(t,e,r,n,i){var a=n.getValue(e,{value:null});switch(r.name){case"textarea":if(null!==a.value&&(t.textContent=a.value),"print"===i)break;t.addEventListener("input",(function(t){n.setValue(e,{value:t.target.value})}));break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(a.value===r.attributes.xfaOn?t.setAttribute("checked",!0):a.value===r.attributes.xfaOff&&t.removeAttribute("checked"),"print"===i)break;t.addEventListener("change",(function(t){n.setValue(e,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&t.setAttribute("value",a.value),"print"===i)break;t.addEventListener("input",(function(t){n.setValue(e,{value:t.target.value})}))}break;case"select":if(null!==a.value){t.setAttribute("value",a.value);var o,s=Kf(r.children);try{for(s.s();!(o=s.n()).done;){var u=o.value;u.attributes.value===a.value?u.attributes.selected=!0:u.attributes.hasOwnProperty("selected")&&delete u.attributes.selected}}catch(t){s.e(t)}finally{s.f()}}t.addEventListener("input",(function(t){var r=t.target.options,i=-1===r.selectedIndex?"":r[r.selectedIndex].value;n.setValue(e,{value:i})}))}}},{key:"setAttributes",value:function(t){var e=t.html,r=t.element,n=t.storage,i=void 0===n?null:n,a=t.intent,o=t.linkService,s=r.attributes,u=e instanceof HTMLAnchorElement;"radio"===s.type&&(s.name="".concat(s.name,"-").concat(a));for(var c=0,l=Object.entries(s);c<l.length;c++){var h=Xf(l[c],2),f=h[0],d=h[1];if(null!=d)switch(f){case"class":d.length&&e.setAttribute(f,d.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",d);break;case"style":Object.assign(e.style,d);break;case"textContent":e.textContent=d;break;default:(!u||"href"!==f&&"newWindow"!==f)&&e.setAttribute(f,d)}}u&&o.addLinkAttributes(e,s.href,s.newWindow),i&&s.dataId&&this.setupStorage(e,s.dataId,r,i)}},{key:"render",value:function(t){var e=t.annotationStorage,r=t.linkService,n=t.xfaHtml,i=t.intent||"display",a=document.createElement(n.name);n.attributes&&this.setAttributes({html:a,element:n,intent:i,linkService:r});var o="richText"!==i,s=t.div;if(s.append(a),t.viewport){var u="matrix(".concat(t.viewport.transform.join(","),")");s.style.transform=u}o&&s.setAttribute("class","xfaLayer xfaFont");var c=[];if(0===n.children.length){if(n.value){var l=document.createTextNode(n.value);a.append(l),o&&Eh.shouldBuildText(n.name)&&c.push(l)}return{textDivs:c}}for(var h=[[n,-1,a]];h.length>0;){var f,d,v=Xf(h.at(-1),3),p=v[0],y=v[1],g=v[2];if(y+1!==p.children.length){var m=p.children[++h.at(-1)[1]];if(null!==m){var b=m.name;if("#text"!==b){var w=null!=m&&null!==(f=m.attributes)&&void 0!==f&&f.xmlns?document.createElementNS(m.attributes.xmlns,b):document.createElement(b);if(g.append(w),m.attributes&&this.setAttributes({html:w,element:m,storage:e,intent:i,linkService:r}),(null===(d=m.children)||void 0===d?void 0:d.length)>0)h.push([m,-1,w]);else if(m.value){var k=document.createTextNode(m.value);o&&Eh.shouldBuildText(b)&&c.push(k),w.append(k)}}else{var x=document.createTextNode(m.value);c.push(x),g.append(x)}}}else h.pop()}var A,_=Kf(s.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(_.s();!(A=_.n()).done;)A.value.setAttribute("readOnly",!0)}catch(t){_.e(t)}finally{_.f()}return{textDivs:c}}},{key:"update",value:function(t){var e="matrix(".concat(t.viewport.transform.join(","),")");t.div.style.transform=e,t.div.hidden=!1}}])}();function ed(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rd(t,e,r){return(e=Td(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nd(){nd=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function id(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function ad(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){id(a,n,i,o,s,"next",t)}function s(t){id(a,n,i,o,s,"throw",t)}o(void 0)}))}}function od(t,e,r){e||(e=[]);var n=e.length++;return Object.defineProperty({},"_",{set:function(i){e[n]=i,t.apply(r,e)}})}function sd(t,e,r){return r(_d(t,e))}function ud(){return ud="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=fd(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},ud.apply(null,arguments)}function cd(t){return function(t){if(Array.isArray(t))return md(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gd(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ld(t,e,r){return e=fd(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,hd()?Reflect.construct(e,r||[],fd(t).constructor):e.apply(t,r))}function hd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hd=function(){return!!t})()}function fd(t){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fd(t)}function dd(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vd(t,e)}function vd(t,e){return vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vd(t,e)}function pd(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=gd(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function yd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||gd(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gd(t,e){if(t){if("string"==typeof t)return md(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?md(t,e):void 0}}function md(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function bd(t,e){kd(t,e),e.add(t)}function wd(t,e,r){kd(t,e),e.set(t,r)}function kd(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xd(t,e,r){return t.set(_d(t,e),r),r}function Ad(t,e){return t.get(_d(t,e))}function _d(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function Ed(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Td(n.key),n)}}function Od(t,e,r){return e&&Sd(t.prototype,e),r&&Sd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Td(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var Pd=1e3,Ld=new WeakSet;function Md(t){return{width:t[2]-t[0],height:t[3]-t[1]}}var Cd=function(){return Od((function t(){Ed(this,t)}),null,[{key:"create",value:function(t){switch(t.data.annotationType){case 2:return new Bd(t);case 1:return new zd(t);case 20:switch(t.data.fieldType){case"Tx":return new qd(t);case"Btn":return t.data.radioButton?new Kd(t):t.data.checkBox?new Xd(t):new Qd(t);case"Ch":return new Jd(t);case"Sig":return new Yd(t)}return new Vd(t);case 16:return new $d(t);case 3:return new Pv(t);case 4:return new Mv(t);case 5:return new jv(t);case 6:return new Rv(t);case 8:return new Dv(t);case 14:return new Wv(t);case 15:return new Gv(t);case 7:return new Nv(t);case 9:return new Hv(t);case 10:return new Uv(t);case 11:return new zv(t);case 12:return new Vv(t);case 13:return new qv(t);case 17:return new Kv(t);default:return new Dd(t)}}}])}(),jd=new WeakMap,Id=new WeakMap,Rd=new WeakMap,Fd=new WeakSet,Dd=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.isRenderable,i=void 0!==n&&n,a=r.ignoreBorder,o=void 0!==a&&a,s=r.createQuadrilaterals,u=void 0!==s&&s;Ed(this,t),bd(this,Fd),wd(this,jd,null),wd(this,Id,!1),wd(this,Rd,null),this.isRenderable=i,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,i&&(this.container=this._createContainer(o)),u&&this._createQuadrilaterals()}return Od(t,[{key:"_isEditable",get:function(){return this.data.isEditable}},{key:"hasPopupData",get:function(){return t._hasPopupData(this.data)}},{key:"updateEdited",value:function(t){var e;if(this.container){Ad(jd,this)||xd(jd,this,{rect:this.data.rect.slice(0)});var r=t.rect;r&&_d(Fd,this,Nd).call(this,r),null===(e=Ad(Rd,this))||void 0===e||e.popup.updateEdited(t)}}},{key:"resetEdited",value:function(){var t;Ad(jd,this)&&(_d(Fd,this,Nd).call(this,Ad(jd,this).rect),null===(t=Ad(Rd,this))||void 0===t||t.popup.resetEdited(),xd(jd,this,null))}},{key:"_createContainer",value:function(t){var e=this.data,r=this.parent,n=r.page,i=r.viewport,a=document.createElement("section");a.setAttribute("data-annotation-id",e.id),this instanceof Vd||(a.tabIndex=Pd);var o=a.style;if(o.zIndex=this.parent.zIndex++,e.popupRef&&a.setAttribute("aria-haspopup","dialog"),e.alternativeText&&(a.title=e.alternativeText),e.noRotate&&a.classList.add("norotate"),!e.rect||this instanceof $d){var s=e.rotation;return e.hasOwnCanvas||0===s||this.setRotation(s,a),a}var u=Md(e.rect),c=u.width,l=u.height;if(!t&&e.borderStyle.width>0){o.borderWidth="".concat(e.borderStyle.width,"px");var h=e.borderStyle.horizontalCornerRadius,f=e.borderStyle.verticalCornerRadius;if(h>0||f>0){var d="calc(".concat(h,"px * var(--scale-factor)) / calc(").concat(f,"px * var(--scale-factor))");o.borderRadius=d}else if(this instanceof Kd){var v="calc(".concat(c,"px * var(--scale-factor)) / calc(").concat(l,"px * var(--scale-factor))");o.borderRadius=v}switch(e.borderStyle.style){case 1:o.borderStyle="solid";break;case 2:o.borderStyle="dashed";break;case 3:R("Unimplemented border style: beveled");break;case 4:R("Unimplemented border style: inset");break;case 5:o.borderBottomStyle="solid"}var p=e.borderColor||null;p?(xd(Id,this,!0),o.borderColor=Z.makeHexColor(0|p[0],0|p[1],0|p[2])):o.borderWidth=0}var y=Z.normalizeRect([e.rect[0],n.view[3]-e.rect[1]+n.view[1],e.rect[2],n.view[3]-e.rect[3]+n.view[1]]),g=i.rawDims,m=g.pageWidth,b=g.pageHeight,w=g.pageX,k=g.pageY;o.left="".concat(100*(y[0]-w)/m,"%"),o.top="".concat(100*(y[1]-k)/b,"%");var x=e.rotation;return e.hasOwnCanvas||0===x?(o.width="".concat(100*c/m,"%"),o.height="".concat(100*l/b,"%")):this.setRotation(x,a),a}},{key:"setRotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var r,n,i=this.parent.viewport.rawDims,a=i.pageWidth,o=i.pageHeight,s=Md(this.data.rect),u=s.width,c=s.height;t%180==0?(r=100*u/a,n=100*c/o):(r=100*c/a,n=100*u/o),e.style.width="".concat(r,"%"),e.style.height="".concat(n,"%"),e.setAttribute("data-main-rotation",(360-t)%360)}}},{key:"_commonActions",get:function(){var t=this,e=function(e,r,n){var i=n.detail[e],a=i[0],o=i.slice(1);n.target.style[r]=Yf["".concat(a,"_HTML")](o),t.annotationStorage.setValue(t.data.id,{[r]:Yf["".concat(a,"_rgb")](o)})};return W(this,"_commonActions",{display:function(e){var r=e.detail.display,n=r%2==1;t.container.style.visibility=n?"hidden":"visible",t.annotationStorage.setValue(t.data.id,{noView:n,noPrint:1===r||2===r})},print:function(e){t.annotationStorage.setValue(t.data.id,{noPrint:!e.detail.print})},hidden:function(e){var r=e.detail.hidden;t.container.style.visibility=r?"hidden":"visible",t.annotationStorage.setValue(t.data.id,{noPrint:r,noView:r})},focus:function(t){setTimeout((function(){return t.target.focus({preventScroll:!1})}),0)},userName:function(t){t.target.title=t.detail.userName},readonly:function(t){t.target.disabled=t.detail.readonly},required:function(e){t._setRequired(e.target,e.detail.required)},bgColor:function(t){e("bgColor","backgroundColor",t)},fillColor:function(t){e("fillColor","backgroundColor",t)},fgColor:function(t){e("fgColor","color",t)},textColor:function(t){e("textColor","color",t)},borderColor:function(t){e("borderColor","borderColor",t)},strokeColor:function(t){e("strokeColor","borderColor",t)},rotation:function(e){var r=e.detail.rotation;t.setRotation(r),t.annotationStorage.setValue(t.data.id,{rotation:r})}})}},{key:"_dispatchEventFromSandbox",value:function(t,e){for(var r=this._commonActions,n=0,i=Object.keys(e.detail);n<i.length;n++){var a=i[n],o=t[a]||r[a];null==o||o(e)}}},{key:"_setDefaultPropertiesFromJS",value:function(t){if(this.enableScripting){var e=this.annotationStorage.getRawValue(this.data.id);if(e)for(var r=this._commonActions,n=0,i=Object.entries(e);n<i.length;n++){var a=yd(i[n],2),o=a[0],s=a[1],u=r[o];u&&(u({detail:{[o]:s},target:t}),delete e[o])}}}},{key:"_createQuadrilaterals",value:function(){if(this.container){var t=this.data.quadPoints;if(t){var e=this.data.rect.map((function(t){return Math.fround(t)})),r=yd(e,4),n=r[0],i=r[1],a=r[2],o=r[3];if(8===t.length){var s=yd(t.subarray(2,6),4),u=s[0],c=s[1],l=s[2],h=s[3];if(a===u&&o===c&&n===l&&i===h)return}var f,d=this.container.style;if(Ad(Id,this)){var v=d.borderColor,p=d.borderWidth;d.borderWidth=0,f=["url(\'data:image/svg+xml;utf8,",\'<svg xmlns="http://www.w3.org/2000/svg"\',\' preserveAspectRatio="none" viewBox="0 0 1 1">\',\'<g fill="transparent" stroke="\'.concat(v,\'" stroke-width="\').concat(p,\'">\')],this.container.classList.add("hasBorder")}var y=a-n,g=o-i,m=this.svgFactory,b=m.createElement("svg");b.classList.add("quadrilateralsContainer"),b.setAttribute("width",0),b.setAttribute("height",0);var w=m.createElement("defs");b.append(w);var k=m.createElement("clipPath"),x="clippath_".concat(this.data.id);k.setAttribute("id",x),k.setAttribute("clipPathUnits","objectBoundingBox"),w.append(k);for(var A=2,_=t.length;A<_;A+=8){var E,S=t[A],O=t[A+1],T=t[A+2],P=t[A+3],L=m.createElement("rect"),M=(T-n)/y,C=(o-O)/g,j=(S-T)/y,I=(O-P)/g;L.setAttribute("x",M),L.setAttribute("y",C),L.setAttribute("width",j),L.setAttribute("height",I),k.append(L),null===(E=f)||void 0===E||E.push(\'<rect vector-effect="non-scaling-stroke" x="\'.concat(M,\'" y="\').concat(C,\'" width="\').concat(j,\'" height="\').concat(I,\'"/>\'))}Ad(Id,this)&&(f.push("</g></svg>\')"),d.backgroundImage=f.join("")),this.container.append(b),this.container.style.clipPath="url(#".concat(x,")")}}}},{key:"_createPopup",value:function(){var t=this.container,e=this.data;t.setAttribute("aria-haspopup","dialog");var r=xd(Rd,this,new $d({data:{color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,parentRect:e.rect,borderStyle:0,id:"popup_".concat(e.id),rotation:e.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(r.render())}},{key:"render",value:function(){F("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=[];if(this._fieldObjects){var n=this._fieldObjects[t];if(n){var i,a=pd(n);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.page,u=o.id,c=o.exportValues;if(-1!==s&&u!==e){var l="string"==typeof c?c:null,h=document.querySelector(\'[data-element-id="\'.concat(u,\'"]\'));!h||Ld.has(h)?r.push({id:u,exportValue:l,domElement:h}):R("_getElementsByName - element not allowed: ".concat(u))}}}catch(t){a.e(t)}finally{a.f()}}return r}var f,d=pd(document.getElementsByName(t));try{for(d.s();!(f=d.n()).done;){var v=f.value,p=v.exportValue,y=v.getAttribute("data-element-id");y!==e&&Ld.has(v)&&r.push({id:y,exportValue:p,domElement:v})}}catch(t){d.e(t)}finally{d.f()}return r}},{key:"show",value:function(){var t;this.container&&(this.container.hidden=!1),null===(t=this.popup)||void 0===t||t.maybeShow()}},{key:"hide",value:function(){var t;this.container&&(this.container.hidden=!0),null===(t=this.popup)||void 0===t||t.forceHide()}},{key:"getElementsToTriggerPopup",value:function(){return this.container}},{key:"addHighlightArea",value:function(){var t=this.getElementsToTriggerPopup();if(Array.isArray(t)){var e,r=pd(t);try{for(r.s();!(e=r.n()).done;)e.value.classList.add("highlightArea")}catch(t){r.e(t)}finally{r.f()}}else t.classList.add("highlightArea")}},{key:"_editOnDoubleClick",value:function(){var t=this;if(this._isEditable){var e=this.annotationEditorType,r=this.data.id;this.container.addEventListener("dblclick",(function(){var n;null===(n=t.linkService.eventBus)||void 0===n||n.dispatch("switchannotationeditormode",{source:t,mode:e,editId:r})}))}}}],[{key:"_hasPopupData",value:function(t){var e=t.titleObj,r=t.contentsObj,n=t.richText;return!!(null!=e&&e.str||null!=r&&r.str||null!=n&&n.str)}}])}();function Nd(t){var e=this.container.style,r=this.data,n=r.rect,i=r.rotation,a=this.parent.viewport.rawDims,o=a.pageWidth,s=a.pageHeight,u=a.pageX,c=a.pageY;null==n||n.splice.apply(n,[0,4].concat(cd(t)));var l=Md(t),h=l.width,f=l.height;e.left="".concat(100*(t[0]-u)/o,"%"),e.top="".concat(100*(s-t[3]+c)/s,"%"),0===i?(e.width="".concat(100*h/o,"%"),e.height="".concat(100*f/s,"%")):this.setRotation(i)}var Wd=new WeakSet,Bd=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Ed(this,e),bd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!(null==n||!n.ignoreBorder),createQuadrilaterals:!0}]),Wd),r.isTooltipOnly=t.data.isTooltipOnly,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){var t=this.data,e=this.linkService,r=document.createElement("a");r.setAttribute("data-element-id",t.id);var n=!1;return t.url?(e.addLinkAttributes(r,t.url,t.newWindow),n=!0):t.action?(this._bindNamedAction(r,t.action),n=!0):t.attachment?(_d(Wd,this,Hd).call(this,r,t.attachment,t.attachmentDest),n=!0):t.setOCGState?(_d(Wd,this,Ud).call(this,r,t.setOCGState),n=!0):t.dest?(this._bindLink(r,t.dest),n=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,t),n=!0),t.resetForm?(this._bindResetFormAction(r,t.resetForm),n=!0):this.isTooltipOnly&&!n&&(this._bindLink(r,""),n=!0)),this.container.classList.add("linkAnnotation"),n&&this.container.append(r),this.container}},{key:"_bindLink",value:function(t,e){var r=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&r.linkService.goToDestination(e),!1},(e||""===e)&&_d(Wd,this,Gd).call(this)}},{key:"_bindNamedAction",value:function(t,e){var r=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return r.linkService.executeNamedAction(e),!1},_d(Wd,this,Gd).call(this)}},{key:"_bindJSAction",value:function(t,e){var r=this;t.href=this.linkService.getAnchorUrl("");for(var n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),i=function(){var i=o[a],s=n.get(i);if(!s)return 1;t[s]=function(){var t;return null===(t=r.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:r,detail:{id:e.id,name:i}}),!1}},a=0,o=Object.keys(e.actions);a<o.length;a++)i();t.onclick||(t.onclick=function(){return!1}),_d(Wd,this,Gd).call(this)}},{key:"_bindResetFormAction",value:function(t,e){var r=this,n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),_d(Wd,this,Gd).call(this),!this._fieldObjects)return R(\'_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.\'),void(n||(t.onclick=function(){return!1}));t.onclick=function(){null==n||n();var t=e.fields,i=e.refs,a=e.include,o=[];if(0!==t.length||0!==i.length){var s,u=new Set(i),c=pd(t);try{for(c.s();!(s=c.n()).done;){var l,h=s.value,f=pd(r._fieldObjects[h]||[]);try{for(f.s();!(l=f.n()).done;){var d=l.value.id;u.add(d)}}catch(t){f.e(t)}finally{f.f()}}}catch(t){c.e(t)}finally{c.f()}for(var v=0,p=Object.values(r._fieldObjects);v<p.length;v++){var y,g=pd(p[v]);try{for(g.s();!(y=g.n()).done;){var m=y.value;u.has(m.id)===a&&o.push(m)}}catch(t){g.e(t)}finally{g.f()}}}else for(var b=0,w=Object.values(r._fieldObjects);b<w.length;b++){var k=w[b];o.push.apply(o,cd(k))}for(var x,A=r.annotationStorage,_=[],E=0,S=o;E<S.length;E++){var O=S[E],T=O.id;switch(_.push(T),O.type){case"text":var P=O.defaultValue||"";A.setValue(T,{value:P});break;case"checkbox":case"radiobutton":var L=O.defaultValue===O.exportValues;A.setValue(T,{value:L});break;case"combobox":case"listbox":var M=O.defaultValue||"";A.setValue(T,{value:M});break;default:continue}var C=document.querySelector(\'[data-element-id="\'.concat(T,\'"]\'));C&&(Ld.has(C)?C.dispatchEvent(new Event("resetform")):R("_bindResetFormAction - element not allowed: ".concat(T)))}return r.enableScripting&&(null===(x=r.linkService.eventBus)||void 0===x||x.dispatch("dispatcheventinsandbox",{source:r,detail:{id:"app",ids:_,name:"ResetForm"}})),!1}}}])}();function Gd(){this.container.setAttribute("data-internal-link","")}function Hd(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t.href=this.linkService.getAnchorUrl(""),e.description&&(t.title=e.description),t.onclick=function(){var t;return null===(t=r.downloadManager)||void 0===t||t.openOrDownloadData(e.content,e.filename,n),!1},_d(Wd,this,Gd).call(this)}function Ud(t,e){var r=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return r.linkService.executeSetOCGState(e),!1},_d(Wd,this,Gd).call(this)}var zd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!0}])}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("textAnnotation");var t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}])}(),Vd=function(t){function e(){return Ed(this,e),ld(this,e,arguments)}return dd(e,Dd),Od(e,[{key:"render",value:function(){return this.container}},{key:"showElementAndHideCanvas",value:function(t){var e;this.data.hasOwnCanvas&&("CANVAS"===(null===(e=t.previousSibling)||void 0===e?void 0:e.nodeName)&&(t.previousSibling.hidden=!0),t.hidden=!1)}},{key:"_getKeyModifier",value:function(t){return J.platform.isMac?t.metaKey:t.ctrlKey}},{key:"_setEventListener",value:function(t,e,r,n,i){var a=this;r.includes("mouse")?t.addEventListener(r,(function(t){var e;null===(e=a.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:a,detail:{id:a.data.id,name:n,value:i(t),shift:t.shiftKey,modifier:a._getKeyModifier(t)}})})):t.addEventListener(r,(function(t){var o;if("blur"===r){if(!e.focused||!t.relatedTarget)return;e.focused=!1}else if("focus"===r){if(e.focused)return;e.focused=!0}i&&(null===(o=a.linkService.eventBus)||void 0===o||o.dispatch("dispatcheventinsandbox",{source:a,detail:{id:a.data.id,name:n,value:i(t)}}))}))}},{key:"_setEventListeners",value:function(t,e,r,n){var i,a=pd(r);try{for(a.s();!(i=a.n()).done;){var o,s,u,c=yd(i.value,2),l=c[0],h=c[1];("Action"===h||null!==(o=this.data.actions)&&void 0!==o&&o[h])&&("Focus"!==h&&"Blur"!==h||e||(e={focused:!1}),this._setEventListener(t,e,l,h,n),"Focus"!==h||null!==(s=this.data.actions)&&void 0!==s&&s.Blur?"Blur"!==h||null!==(u=this.data.actions)&&void 0!==u&&u.Focus||this._setEventListener(t,e,"focus","Focus",null):this._setEventListener(t,e,"blur","Blur",null))}}catch(t){a.e(t)}finally{a.f()}}},{key:"_setBackgroundColor",value:function(t){var e=this.data.backgroundColor||null;t.style.backgroundColor=null===e?"transparent":Z.makeHexColor(e[0],e[1],e[2])}},{key:"_setTextStyle",value:function(t){var e,r=this.data.defaultAppearanceData.fontColor,n=this.data.defaultAppearanceData.fontSize||9,i=t.style,a=function(t){return Math.round(10*t)/10};if(this.data.multiLine){var o=Math.abs(this.data.rect[3]-this.data.rect[1]-2),s=o/(Math.round(o/(k*n))||1);e=Math.min(n,a(s/k))}else{var u=Math.abs(this.data.rect[3]-this.data.rect[1]-2);e=Math.min(n,a(u/k))}i.fontSize="calc(".concat(e,"px * var(--scale-factor))"),i.color=Z.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(i.textAlign=["left","center","right"][this.data.textAlignment])}},{key:"_setRequired",value:function(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}}])}(),qd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue}])}return dd(e,Vd),Od(e,[{key:"setPropertyOnSiblings",value:function(t,e,r,n){var i,a=this.annotationStorage,o=pd(this._getElementsByName(t.name,t.id));try{for(o.s();!(i=o.n()).done;){var s=i.value;s.domElement&&(s.domElement[e]=r),a.setValue(s.id,{[n]:r})}}catch(t){o.e(t)}finally{o.f()}}},{key:"render",value:function(){var t=this,e=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");var n=null;if(this.renderForms){var i,a=e.getValue(r,{value:this.data.fieldValue}),o=a.value||"",s=e.getValue(r,{charLimit:this.data.maxLen}).charLimit;s&&o.length>s&&(o=o.slice(0,s));var u=a.formattedValue||(null===(i=this.data.textContent)||void 0===i?void 0:i.join("\\n"))||null;u&&this.data.comb&&(u=u.replaceAll(/\\s+/g,""));var c,l,h={userValue:o,formattedValue:u,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((n=document.createElement("textarea")).textContent=null!==(c=u)&&void 0!==c?c:o,this.data.doNotScroll&&(n.style.overflowY="hidden")):((n=document.createElement("input")).type="text",n.setAttribute("value",null!==(l=u)&&void 0!==l?l:o),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),Ld.add(n),n.setAttribute("data-element-id",r),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=Pd,this._setRequired(n,this.data.required),s&&(n.maxLength=s),n.addEventListener("input",(function(i){e.setValue(r,{value:i.target.value}),t.setPropertyOnSiblings(n,"value",i.target.value,"value"),h.formattedValue=null})),n.addEventListener("resetform",(function(e){var r,i=null!==(r=t.data.defaultFieldValue)&&void 0!==r?r:"";n.value=h.userValue=i,h.formattedValue=null}));var f=function(t){var e=h.formattedValue;null!=e&&(t.target.value=e),t.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var d;n.addEventListener("focus",(function(e){var r;if(!h.focused){var n=e.target;h.userValue&&(n.value=h.userValue),h.lastCommittedValue=n.value,h.commitKey=1,null!==(r=t.data.actions)&&void 0!==r&&r.Focus||(h.focused=!0)}})),n.addEventListener("updatefromsandbox",(function(n){t.showElementAndHideCanvas(n.target);var i={value(t){var n;h.userValue=null!==(n=t.detail.value)&&void 0!==n?n:"",e.setValue(r,{value:h.userValue.toString()}),t.target.value=h.userValue},formattedValue(t){var n=t.detail.formattedValue;h.formattedValue=n,null!=n&&t.target!==document.activeElement&&(t.target.value=n),e.setValue(r,{formattedValue:n})},selRange(t){var e;(e=t.target).setSelectionRange.apply(e,cd(t.detail.selRange))},charLimit:function(n){var i,a=n.detail.charLimit,o=n.target;if(0!==a){o.setAttribute("maxLength",a);var s=h.userValue;!s||s.length<=a||(s=s.slice(0,a),o.value=h.userValue=s,e.setValue(r,{value:s}),null===(i=t.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:s,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}else o.removeAttribute("maxLength")}};t._dispatchEventFromSandbox(i,n)})),n.addEventListener("keydown",(function(e){var n;h.commitKey=1;var i=-1;if("Escape"===e.key?i=0:"Enter"!==e.key||t.data.multiLine?"Tab"===e.key&&(h.commitKey=3):i=2,-1!==i){var a=e.target.value;h.lastCommittedValue!==a&&(h.lastCommittedValue=a,h.userValue=a,null===(n=t.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:a,willCommit:!0,commitKey:i,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}}));var v=f;f=null,n.addEventListener("blur",(function(e){var n;if(h.focused&&e.relatedTarget){null!==(n=t.data.actions)&&void 0!==n&&n.Blur||(h.focused=!1);var i,a=e.target.value;h.userValue=a,h.lastCommittedValue!==a&&(null===(i=t.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:a,willCommit:!0,commitKey:h.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),v(e)}})),null!==(d=this.data.actions)&&void 0!==d&&d.Keystroke&&n.addEventListener("beforeinput",(function(e){var n;h.lastCommittedValue=null;var i=e.data,a=e.target,o=a.value,s=a.selectionStart,u=a.selectionEnd,c=s,l=u;switch(e.inputType){case"deleteWordBackward":var f=o.substring(0,s).match(/\\w*[^\\w]*$/);f&&(c-=f[0].length);break;case"deleteWordForward":var d=o.substring(s).match(/^[^\\w]*\\w*/);d&&(l+=d[0].length);break;case"deleteContentBackward":s===u&&(c-=1);break;case"deleteContentForward":s===u&&(l+=1)}e.preventDefault(),null===(n=t.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:o,change:i||"",willCommit:!1,selStart:c,selEnd:l}})})),this._setEventListeners(n,h,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(t){return t.target.value}))}if(f&&n.addEventListener("blur",f),this.data.comb){var p=(this.data.rect[2]-this.data.rect[0])/s;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(p,"px * var(--scale-factor) - 1ch)")}}else(n=document.createElement("div")).textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}])}(),Yd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!!t.data.hasOwnCanvas}])}return dd(e,Vd),Od(e)}(),Xd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms}])}return dd(e,Vd),Od(e,[{key:"render",value:function(){var t=this,e=this.annotationStorage,r=this.data,n=r.id,i=e.getValue(n,{value:r.exportValue===r.fieldValue}).value;"string"==typeof i&&(i="Off"!==i,e.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var a=document.createElement("input");return Ld.add(a),a.setAttribute("data-element-id",n),a.disabled=r.readOnly,this._setRequired(a,this.data.required),a.type="checkbox",a.name=r.fieldName,i&&a.setAttribute("checked",!0),a.setAttribute("exportValue",r.exportValue),a.tabIndex=Pd,a.addEventListener("change",(function(i){var a,o=i.target,s=o.name,u=o.checked,c=pd(t._getElementsByName(s,n));try{for(c.s();!(a=c.n()).done;){var l=a.value,h=u&&l.exportValue===r.exportValue;l.domElement&&(l.domElement.checked=h),e.setValue(l.id,{value:h})}}catch(t){c.e(t)}finally{c.f()}e.setValue(n,{value:u})})),a.addEventListener("resetform",(function(t){var e=r.defaultFieldValue||"Off";t.target.checked=e===r.exportValue})),this.enableScripting&&this.hasJSActions&&(a.addEventListener("updatefromsandbox",(function(r){var i={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};t._dispatchEventFromSandbox(i,r)})),this._setEventListeners(a,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(t){return t.target.checked}))),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}])}(),Kd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms}])}return dd(e,Vd),Od(e,[{key:"render",value:function(){var t=this;this.container.classList.add("buttonWidgetAnnotation","radioButton");var e=this.annotationStorage,r=this.data,n=r.id,i=e.getValue(n,{value:r.fieldValue===r.buttonValue}).value;if("string"==typeof i&&(i=i!==r.buttonValue,e.setValue(n,{value:i})),i){var a,o=pd(this._getElementsByName(r.fieldName,n));try{for(o.s();!(a=o.n()).done;){var s=a.value;e.setValue(s.id,{value:!1})}}catch(t){o.e(t)}finally{o.f()}}var u=document.createElement("input");if(Ld.add(u),u.setAttribute("data-element-id",n),u.disabled=r.readOnly,this._setRequired(u,this.data.required),u.type="radio",u.name=r.fieldName,i&&u.setAttribute("checked",!0),u.tabIndex=Pd,u.addEventListener("change",(function(r){var i,a=r.target,o=a.name,s=a.checked,u=pd(t._getElementsByName(o,n));try{for(u.s();!(i=u.n()).done;){var c=i.value;e.setValue(c.id,{value:!1})}}catch(t){u.e(t)}finally{u.f()}e.setValue(n,{value:s})})),u.addEventListener("resetform",(function(t){var e=r.defaultFieldValue;t.target.checked=null!=e&&e===r.buttonValue})),this.enableScripting&&this.hasJSActions){var c=r.buttonValue;u.addEventListener("updatefromsandbox",(function(r){var i={value:function(r){var i,a=c===r.detail.value,o=pd(t._getElementsByName(r.target.name));try{for(o.s();!(i=o.n()).done;){var s=i.value,u=a&&s.id===n;s.domElement&&(s.domElement.checked=u),e.setValue(s.id,{value:u})}}catch(t){o.e(t)}finally{o.f()}}};t._dispatchEventFromSandbox(i,r)})),this._setEventListeners(u,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(t){return t.target.checked}))}return this._setBackgroundColor(u),this._setDefaultPropertiesFromJS(u),this.container.append(u),this.container}}])}(),Qd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{ignoreBorder:t.data.hasAppearance}])}return dd(e,Bd),Od(e,[{key:"render",value:function(){var t=this,r=function(t,e,r,n){var i=ud(fd(t.prototype),"render",r);return"function"==typeof i?function(t){return i.apply(r,t)}:i}(e,0,this)([]);r.classList.add("buttonWidgetAnnotation","pushButton");var n=r.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",(function(e){t._dispatchEventFromSandbox({},e)}))),r}}])}(),Jd=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:t.renderForms}])}return dd(e,Vd),Od(e,[{key:"render",value:function(){var t=this;this.container.classList.add("choiceWidgetAnnotation");var e=this.annotationStorage,r=this.data.id,n=e.getValue(r,{value:this.data.fieldValue}),i=document.createElement("select");Ld.add(i),i.setAttribute("data-element-id",r),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=Pd;var a=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",(function(e){var r,n=t.data.defaultFieldValue,a=pd(i.options);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.selected=o.value===n}}catch(t){a.e(t)}finally{a.f()}}));var o,s=pd(this.data.options);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=document.createElement("option");c.textContent=u.displayValue,c.value=u.exportValue,n.value.includes(u.exportValue)&&(c.setAttribute("selected",!0),a=!1),i.append(c)}}catch(t){s.e(t)}finally{s.f()}var l=null;if(a){var h=document.createElement("option");h.value=" ",h.setAttribute("hidden",!0),h.setAttribute("selected",!0),i.prepend(h),l=function(){h.remove(),i.removeEventListener("input",l),l=null},i.addEventListener("input",l)}var f=function(t){var e=t?"value":"textContent",r=i.options;return i.multiple?Array.prototype.filter.call(r,(function(t){return t.selected})).map((function(t){return t[e]})):-1===r.selectedIndex?null:r[r.selectedIndex][e]},d=f(!1),v=function(t){var e=t.target.options;return Array.prototype.map.call(e,(function(t){return{displayValue:t.textContent,exportValue:t.value}}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",(function(n){var a={value(t){var n;null===(n=l)||void 0===n||n();var a,o=t.detail.value,s=new Set(Array.isArray(o)?o:[o]),u=pd(i.options);try{for(u.s();!(a=u.n()).done;){var c=a.value;c.selected=s.has(c.value)}}catch(t){u.e(t)}finally{u.f()}e.setValue(r,{value:f(!0)}),d=f(!1)},multipleSelection(t){i.multiple=!0},remove(t){var n=i.options,a=t.detail.remove;if(n[a].selected=!1,i.remove(a),n.length>0){var o=Array.prototype.findIndex.call(n,(function(t){return t.selected}));-1===o&&(n[0].selected=!0)}e.setValue(r,{value:f(!0),items:v(t)}),d=f(!1)},clear(t){for(;0!==i.length;)i.remove(0);e.setValue(r,{value:null,items:[]}),d=f(!1)},insert(t){var n=t.detail.insert,a=n.index,o=n.displayValue,s=n.exportValue,u=i.children[a],c=document.createElement("option");c.textContent=o,c.value=s,u?u.before(c):i.append(c),e.setValue(r,{value:f(!0),items:v(t)}),d=f(!1)},items(t){for(var n=t.detail.items;0!==i.length;)i.remove(0);var a,o=pd(n);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=s.displayValue,c=s.exportValue,l=document.createElement("option");l.textContent=u,l.value=c,i.append(l)}}catch(t){o.e(t)}finally{o.f()}i.options.length>0&&(i.options[0].selected=!0),e.setValue(r,{value:f(!0),items:v(t)}),d=f(!1)},indices(t){var n,i=new Set(t.detail.indices),a=pd(t.target.options);try{for(a.s();!(n=a.n()).done;){var o=n.value;o.selected=i.has(o.index)}}catch(t){a.e(t)}finally{a.f()}e.setValue(r,{value:f(!0)}),d=f(!1)},editable(t){t.target.disabled=!t.detail.editable}};t._dispatchEventFromSandbox(a,n)})),i.addEventListener("input",(function(n){var i,a=f(!0),o=f(!1);e.setValue(r,{value:a}),n.preventDefault(),null===(i=t.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:t,detail:{id:r,name:"Keystroke",value:d,change:o,changeEx:a,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(function(t){return t.target.value}))):i.addEventListener("input",(function(t){e.setValue(r,{value:f(!0)})})),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}])}(),$d=function(t){function e(t){var r;Ed(this,e);var n=t.data,i=t.elements;return(r=ld(this,e,[t,{isRenderable:Dd._hasPopupData(n)}])).elements=i,r.popup=null,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("popupAnnotation");var t,e=this.popup=new bv({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),r=[],n=pd(this.elements);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.popup=e,r.push(i.data.id),i.addHighlightArea()}}catch(t){n.e(t)}finally{n.f()}return this.container.setAttribute("aria-controls",r.map((function(t){return"".concat(at).concat(t)})).join(",")),this.container}}])}(),Zd=new WeakMap,tv=new WeakMap,ev=new WeakMap,rv=new WeakMap,nv=new WeakMap,iv=new WeakMap,av=new WeakMap,ov=new WeakMap,sv=new WeakMap,uv=new WeakMap,cv=new WeakMap,lv=new WeakMap,hv=new WeakMap,fv=new WeakMap,dv=new WeakMap,vv=new WeakMap,pv=new WeakMap,yv=new WeakMap,gv=new WeakMap,mv=new WeakSet,bv=function(){return Od((function t(e){var r=e.container,n=e.color,i=e.elements,a=e.titleObj,o=e.modificationDate,s=e.contentsObj,u=e.richText,c=e.parent,l=e.rect,h=e.parentRect,f=e.open;Ed(this,t),bd(this,mv),wd(this,Zd,_d(mv,this,_v).bind(this)),wd(this,tv,_d(mv,this,Tv).bind(this)),wd(this,ev,_d(mv,this,Ov).bind(this)),wd(this,rv,_d(mv,this,Sv).bind(this)),wd(this,nv,null),wd(this,iv,null),wd(this,av,null),wd(this,ov,null),wd(this,sv,null),wd(this,uv,null),wd(this,cv,null),wd(this,lv,!1),wd(this,hv,null),wd(this,fv,null),wd(this,dv,null),wd(this,vv,null),wd(this,pv,null),wd(this,yv,null),wd(this,gv,!1),xd(iv,this,r),xd(pv,this,a),xd(av,this,s),xd(vv,this,u),xd(uv,this,c),xd(nv,this,n),xd(dv,this,l),xd(cv,this,h),xd(sv,this,i),xd(ov,this,Le.toDateObject(o)),this.trigger=i.flatMap((function(t){return t.getElementsToTriggerPopup()}));var d,v=pd(this.trigger);try{for(v.s();!(d=v.n()).done;){var p=d.value;p.addEventListener("click",Ad(rv,this)),p.addEventListener("mouseenter",Ad(ev,this)),p.addEventListener("mouseleave",Ad(tv,this)),p.classList.add("popupTriggerArea")}}catch(t){v.e(t)}finally{v.f()}var y,g=pd(i);try{for(g.s();!(y=g.n()).done;){var m;null===(m=y.value.container)||void 0===m||m.addEventListener("keydown",Ad(Zd,this))}}catch(t){g.e(t)}finally{g.f()}Ad(iv,this).hidden=!0,f&&_d(mv,this,Sv).call(this)}),[{key:"render",value:function(){if(!Ad(hv,this)){var t=xd(hv,this,document.createElement("div"));if(t.className="popup",Ad(nv,this)){var e=t.style.outlineColor=Z.makeHexColor.apply(Z,cd(Ad(nv,this)));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor="color-mix(in srgb, ".concat(e," 30%, white)"):t.style.backgroundColor=Z.makeHexColor.apply(Z,cd(Ad(nv,this).map((function(t){return Math.floor(.7*(255-t)+t)}))))}var r=document.createElement("span");r.className="header";var n=document.createElement("h1");r.append(n);var i=Ad(pv,this);if(n.dir=i.dir,n.textContent=i.str,t.append(r),Ad(ov,this)){var a=document.createElement("span");a.classList.add("popupDate"),a.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),a.setAttribute("data-l10n-args",JSON.stringify({dateObj:Ad(ov,this).valueOf()})),r.append(a)}var o=sd(mv,this,wv);if(o)td.render({xfaHtml:o,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{var s=this._formatContents(Ad(av,this));t.append(s)}Ad(iv,this).append(t)}}},{key:"_formatContents",value:function(t){var e=t.str,r=t.dir,n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;for(var i=e.split(/(?:\\r\\n?|\\n)/),a=0,o=i.length;a<o;++a){var s=i[a];n.append(document.createTextNode(s)),a<o-1&&n.append(document.createElement("br"))}return n}},{key:"updateEdited",value:function(t){var e,r=t.rect,n=t.popupContent;Ad(yv,this)||xd(yv,this,{contentsObj:Ad(av,this),richText:Ad(vv,this)}),r&&xd(fv,this,null),n&&(xd(vv,this,_d(mv,this,Av).call(this,n)),xd(av,this,null)),null===(e=Ad(hv,this))||void 0===e||e.remove(),xd(hv,this,null)}},{key:"resetEdited",value:function(){var t;if(Ad(yv,this)){var e=Ad(yv,this);od(xd,[av,this])._=e.contentsObj,od(xd,[vv,this])._=e.richText,xd(yv,this,null),null===(t=Ad(hv,this))||void 0===t||t.remove(),xd(hv,this,null),xd(fv,this,null)}}},{key:"forceHide",value:function(){xd(gv,this,this.isVisible),Ad(gv,this)&&(Ad(iv,this).hidden=!0)}},{key:"maybeShow",value:function(){Ad(gv,this)&&(Ad(hv,this)||_d(mv,this,Ov).call(this),xd(gv,this,!1),Ad(iv,this).hidden=!1)}},{key:"isVisible",get:function(){return!1===Ad(iv,this).hidden}}])}();function wv(t){var e=Ad(vv,t),r=Ad(av,t);return null==e||!e.str||null!=r&&r.str&&r.str!==e.str?null:Ad(vv,t).html||null}function kv(t){var e;return(null===(e=sd(mv,t,wv))||void 0===e||null===(e=e.attributes)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.fontSize)||0}function xv(t){var e;return(null===(e=sd(mv,t,wv))||void 0===e||null===(e=e.attributes)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.color)||null}function Av(t){var e,r=[],n={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:r}]}},i={style:{color:sd(mv,this,xv),fontSize:sd(mv,this,kv)?"calc(".concat(sd(mv,this,kv),"px * var(--scale-factor))"):""}},a=pd(t.split("\\n"));try{for(a.s();!(e=a.n()).done;){var o=e.value;r.push({name:"span",value:o,attributes:i})}}catch(t){a.e(t)}finally{a.f()}return n}function _v(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||("Enter"===t.key||"Escape"===t.key&&Ad(lv,this))&&_d(mv,this,Sv).call(this)}function Ev(){if(null===Ad(fv,this)){var t,e=Ad(uv,this),r=e.page.view,n=e.viewport.rawDims,i=n.pageWidth,a=n.pageHeight,o=n.pageX,s=n.pageY,u=!!Ad(cv,this),c=Ad(u?cv:dv,this),l=pd(Ad(sv,this));try{for(l.s();!(t=l.n()).done;){var h=t.value;if(!c||null!==Z.intersect(h.data.rect,c)){c=h.data.rect,u=!0;break}}}catch(t){l.e(t)}finally{l.f()}var f=Z.normalizeRect([c[0],r[3]-c[1]+r[1],c[2],r[3]-c[3]+r[1]]),d=u?c[2]-c[0]+5:0,v=f[0]+d,p=f[1];xd(fv,this,[100*(v-o)/i,100*(p-s)/a]);var y=Ad(iv,this).style;y.left="".concat(Ad(fv,this)[0],"%"),y.top="".concat(Ad(fv,this)[1],"%")}}function Sv(){xd(lv,this,!Ad(lv,this)),Ad(lv,this)?(_d(mv,this,Ov).call(this),Ad(iv,this).addEventListener("click",Ad(rv,this)),Ad(iv,this).addEventListener("keydown",Ad(Zd,this))):(_d(mv,this,Tv).call(this),Ad(iv,this).removeEventListener("click",Ad(rv,this)),Ad(iv,this).removeEventListener("keydown",Ad(Zd,this)))}function Ov(){Ad(hv,this)||this.render(),this.isVisible?Ad(lv,this)&&Ad(iv,this).classList.add("focused"):(_d(mv,this,Ev).call(this),Ad(iv,this).hidden=!1,Ad(iv,this).style.zIndex=parseInt(Ad(iv,this).style.zIndex)+1e3)}function Tv(){Ad(iv,this).classList.remove("focused"),!Ad(lv,this)&&this.isVisible&&(Ad(iv,this).hidden=!0,Ad(iv,this).style.zIndex=parseInt(Ad(iv,this).style.zIndex)-1e3)}var Pv=function(t){function e(t){var r;return Ed(this,e),(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}])).textContent=t.data.textContent,r.textPosition=t.data.textPosition,r.annotationEditorType=A.FREETEXT,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){var t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");var e,r=pd(this.textContent);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=document.createElement("span");i.textContent=n,t.append(i)}}catch(t){r.e(t)}finally{r.f()}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}])}(),Lv=new WeakMap,Mv=function(t){function e(t){var r;return Ed(this,e),wd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}]),Lv,null),r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("lineAnnotation");var t=this.data,e=Md(t.rect),r=e.width,n=e.height,i=this.svgFactory.create(r,n,!0),a=xd(Lv,this,this.svgFactory.createElement("svg:line"));return a.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),a.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),a.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),a.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),a.setAttribute("stroke-width",t.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return Ad(Lv,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(),Cv=new WeakMap,jv=function(t){function e(t){var r;return Ed(this,e),wd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}]),Cv,null),r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("squareAnnotation");var t=this.data,e=Md(t.rect),r=e.width,n=e.height,i=this.svgFactory.create(r,n,!0),a=t.borderStyle.width,o=xd(Cv,this,this.svgFactory.createElement("svg:rect"));return o.setAttribute("x",a/2),o.setAttribute("y",a/2),o.setAttribute("width",r-a),o.setAttribute("height",n-a),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return Ad(Cv,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(),Iv=new WeakMap,Rv=function(t){function e(t){var r;return Ed(this,e),wd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}]),Iv,null),r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add("circleAnnotation");var t=this.data,e=Md(t.rect),r=e.width,n=e.height,i=this.svgFactory.create(r,n,!0),a=t.borderStyle.width,o=xd(Iv,this,this.svgFactory.createElement("svg:ellipse"));return o.setAttribute("cx",r/2),o.setAttribute("cy",n/2),o.setAttribute("rx",r/2-a/2),o.setAttribute("ry",n/2-a/2),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return Ad(Iv,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(),Fv=new WeakMap,Dv=function(t){function e(t){var r;return Ed(this,e),wd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}]),Fv,null),r.containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add(this.containerClassName);var t=this.data,e=t.rect,r=t.vertices,n=t.borderStyle,i=t.popupRef;if(!r)return this.container;for(var a=Md(e),o=a.width,s=a.height,u=this.svgFactory.create(o,s,!0),c=[],l=0,h=r.length;l<h;l+=2){var f=r[l]-e[0],d=e[3]-r[l+1];c.push("".concat(f,",").concat(d))}c=c.join(" ");var v=xd(Fv,this,this.svgFactory.createElement(this.svgElementName));return v.setAttribute("points",c),v.setAttribute("stroke-width",n.width||1),v.setAttribute("stroke","transparent"),v.setAttribute("fill","transparent"),u.append(v),this.container.append(u),!i&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return Ad(Fv,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(),Nv=function(t){function e(t){var r;return Ed(this,e),(r=ld(this,e,[t])).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return dd(e,Dv),Od(e)}(),Wv=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}])}return dd(e,Dd),Od(e,[{key:"render",value:function(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}])}(),Bv=new WeakMap,Gv=function(t){function e(t){var r;return Ed(this,e),wd(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}]),Bv,[]),r.containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r.annotationEditorType="InkHighlight"===r.data.it?A.HIGHLIGHT:A.INK,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){this.container.classList.add(this.containerClassName);var t,e=this.data,r=e.rect,n=e.inkLists,i=e.borderStyle,a=e.popupRef,o=Md(r),s=o.width,u=o.height,c=this.svgFactory.create(s,u,!0),l=pd(n);try{for(l.s();!(t=l.n()).done;){for(var h=t.value,f=[],d=0,v=h.length;d<v;d+=2){var p=h[d]-r[0],y=r[3]-h[d+1];f.push("".concat(p,",").concat(y))}f=f.join(" ");var g=this.svgFactory.createElement(this.svgElementName);Ad(Bv,this).push(g),g.setAttribute("points",f),g.setAttribute("stroke-width",i.width||1),g.setAttribute("stroke","transparent"),g.setAttribute("fill","transparent"),!a&&this.hasPopupData&&this._createPopup(),c.append(g)}}catch(t){l.e(t)}finally{l.f()}return this.container.append(c),this._editOnDoubleClick(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return Ad(Bv,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(),Hv=function(t){function e(t){var r;return Ed(this,e),(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])).annotationEditorType=A.HIGHLIGHT,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}])}(),Uv=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return dd(e,Dd),Od(e,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}])}(),zv=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return dd(e,Dd),Od(e,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}])}(),Vv=function(t){function e(t){return Ed(this,e),ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return dd(e,Dd),Od(e,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}])}(),qv=function(t){function e(t){var r;return Ed(this,e),(r=ld(this,e,[t,{isRenderable:!0,ignoreBorder:!0}])).annotationEditorType=A.STAMP,r}return dd(e,Dd),Od(e,[{key:"render",value:function(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}])}(),Yv=new WeakMap,Xv=new WeakSet,Kv=function(t){function e(t){var r,n;Ed(this,e),bd(n=ld(this,e,[t,{isRenderable:!0}]),Xv),wd(n,Yv,null);var i=n.data.file;return n.filename=i.filename,n.content=i.content,null===(r=n.linkService.eventBus)||void 0===r||r.dispatch("fileattachmentannotation",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ed(Object(r),!0).forEach((function(e){rd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({source:n},i)),n}return dd(e,Dd),Od(e,[{key:"render",value:function(){var t=this;this.container.classList.add("fileAttachmentAnnotation");var e,r=this.container,n=this.data;n.hasAppearance||0===n.fillAlpha?e=document.createElement("div"):((e=document.createElement("img")).src="".concat(this.imageResourcesPath,"annotation-").concat(/paperclip/i.test(n.name)?"paperclip":"pushpin",".svg"),n.fillAlpha&&n.fillAlpha<1&&(e.style="filter: opacity(".concat(Math.round(100*n.fillAlpha),"%);"))),e.addEventListener("dblclick",_d(Xv,this,Qv).bind(this)),xd(Yv,this,e);var i=J.platform.isMac;return r.addEventListener("keydown",(function(e){"Enter"===e.key&&(i?e.metaKey:e.ctrlKey)&&_d(Xv,t,Qv).call(t)})),!n.popupRef&&this.hasPopupData?this._createPopup():e.classList.add("popupTriggerArea"),r.append(e),r}},{key:"getElementsToTriggerPopup",value:function(){return Ad(Yv,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}();function Qv(){var t;null===(t=this.downloadManager)||void 0===t||t.openOrDownloadData(this.content,this.filename)}var Jv,$v=new WeakMap,Zv=new WeakMap,tp=new WeakMap,ep=new WeakMap,rp=new WeakSet,np=function(){return Od((function t(e){var r=e.div,n=e.accessibilityManager,i=e.annotationCanvasMap,a=e.annotationEditorUIManager,o=e.page,s=e.viewport,u=e.structTreeLayer;Ed(this,t),bd(this,rp),wd(this,$v,null),wd(this,Zv,null),wd(this,tp,new Map),wd(this,ep,null),this.div=r,xd($v,this,n),xd(Zv,this,i),xd(ep,this,u||null),this.page=o,this.viewport=s,this.zIndex=0,this._annotationEditorUIManager=a}),[{key:"hasEditableAnnotations",value:function(){return Ad(tp,this).size>0}},{key:"render",value:function(){var t=ad(nd().mark((function t(e){var r,n,i,a,o,s,u,c,l,h,f,d,v,p,y,g;return nd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.annotations,Re(n=this.div,this.viewport),i=new Map,a={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new me,annotationStorage:e.annotationStorage||new Mo,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null},o=pd(r),t.prev=6,o.s();case 8:if((s=o.n()).done){t.next=35;break}if(!(u=s.value).noHTML){t.next=12;break}return t.abrupt("continue",33);case 12:if(c=16===u.annotationType){t.next=19;break}if(l=Md(u.rect),h=l.width,f=l.height,!(h<=0||f<=0)){t.next=17;break}return t.abrupt("continue",33);case 17:t.next=23;break;case 19:if(d=i.get(u.id)){t.next=22;break}return t.abrupt("continue",33);case 22:a.elements=d;case 23:if(a.data=u,(v=Cd.create(a)).isRenderable){t.next=27;break}return t.abrupt("continue",33);case 27:return!c&&u.popupRef&&((p=i.get(u.popupRef))?p.push(v):i.set(u.popupRef,[v])),y=v.render(),u.hidden&&(y.style.visibility="hidden"),t.next=32,_d(rp,this,ip).call(this,y,u.id);case 32:v._isEditable&&(Ad(tp,this).set(v.data.id,v),null===(g=this._annotationEditorUIManager)||void 0===g||g.renderAnnotationElement(v));case 33:t.next=8;break;case 35:t.next=40;break;case 37:t.prev=37,t.t0=t.catch(6),o.e(t.t0);case 40:return t.prev=40,o.f(),t.finish(40);case 43:_d(rp,this,op).call(this);case 44:case"end":return t.stop()}}),t,this,[[6,37,40,43]])})));return function(e){return t.apply(this,arguments)}}()},{key:"update",value:function(t){var e=t.viewport,r=this.div;this.viewport=e,Re(r,{rotation:e.rotation}),_d(rp,this,op).call(this),r.hidden=!1}},{key:"getEditableAnnotations",value:function(){return Array.from(Ad(tp,this).values())}},{key:"getEditableAnnotation",value:function(t){return Ad(tp,this).get(t)}}])}();function ip(t,e){return ap.apply(this,arguments)}function ap(){return(ap=ad(nd().mark((function t(e,r){var n,i,a,o,s,u,c,l,h,f;return nd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.firstChild||e,o=a.id="".concat(at).concat(r),t.next=4,null===(n=Ad(ep,this))||void 0===n?void 0:n.getAriaAttributes(o);case 4:if(s=t.sent){u=pd(s);try{for(u.s();!(c=u.n()).done;)l=yd(c.value,2),h=l[0],f=l[1],a.setAttribute(h,f)}catch(t){u.e(t)}finally{u.f()}}this.div.append(e),null===(i=Ad($v,this))||void 0===i||i.moveElementInDOM(this.div,e,a,!1);case 8:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function op(){if(Ad(Zv,this)){var t,e=this.div,r=pd(Ad(Zv,this));try{for(r.s();!(t=r.n()).done;){var n=yd(t.value,2),i=n[0],a=n[1],o=e.querySelector(\'[data-annotation-id="\'.concat(i,\'"]\'));if(o){a.className="annotationContent";var s=o.firstChild;s?"CANVAS"===s.nodeName?s.replaceWith(a):s.classList.contains("annotationContent")?s.after(a):s.before(a):o.append(a)}}}catch(t){r.e(t)}finally{r.f()}Ad(Zv,this).clear()}}function sp(){sp=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function up(t){return function(t){if(Array.isArray(t))return dp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||fp(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cp(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function lp(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=fp(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function hp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||fp(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fp(t,e){if(t){if("string"==typeof t)return dp(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dp(t,e):void 0}}function dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function vp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vp(Object(r),!0).forEach((function(e){Ap(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_p(n.key),n)}}function gp(t,e,r){return e=kp(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,mp()?Reflect.construct(e,r||[],kp(t).constructor):e.apply(t,r))}function mp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mp=function(){return!!t})()}function bp(t,e,r,n){var i=wp(kp(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function wp(){return wp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=kp(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},wp.apply(null,arguments)}function kp(t){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kp(t)}function xp(t,e){return xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xp(t,e)}function Ap(t,e,r){return(e=_p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _p(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Ep(t,e,r){Sp(t,e),e.set(t,r)}function Sp(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Op(t,e){return t.get(Pp(t,e))}function Tp(t,e,r){return t.set(Pp(t,e),r),r}function Pp(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var Lp=/\\r\\n?|\\n/g,Mp=new WeakMap,Cp=new WeakMap,jp=new WeakMap,Ip=new WeakMap,Rp=new WeakMap,Fp=new WeakSet,Dp=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){Sp(t,e),e.add(t)}(r=gp(this,e,[pp(pp({},t),{},{name:"freeTextEditor"})]),Fp),Ep(r,Mp,void 0),Ep(r,Cp,""),Ep(r,jp,"".concat(r.id,"-editor")),Ep(r,Ip,null),Ep(r,Rp,void 0),Tp(Mp,r,t.color||e._defaultColor||Wa._defaultLineColor),Tp(Rp,r,t.fontSize||e._defaultFontSize),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xp(t,e)}(e,Wa),function(t,e,r){return e&&yp(t.prototype,e),r&&yp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"updateParams",value:function(t,e){switch(t){case _.FREETEXT_SIZE:Pp(Fp,this,Np).call(this,e);break;case _.FREETEXT_COLOR:Pp(Fp,this,Wp).call(this,e)}}},{key:"propertiesToUpdate",get:function(){return[[_.FREETEXT_SIZE,Op(Rp,this)],[_.FREETEXT_COLOR,Op(Mp,this)]]}},{key:"_translateEmpty",value:function(t,e){this._uiManager.translateSelectedEditors(t,e,!0)}},{key:"getInitialTranslation",value:function(){var t=this.parentScale;return[-e._internalPadding*t,-(e._internalPadding+Op(Rp,this))*t]}},{key:"rebuild",value:function(){this.parent&&(bp(e,"rebuild",this,3)([]),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}},{key:"enableEditMode",value:function(){if(!this.isInEditMode()){this.parent.setEditingState(!1),this.parent.updateToolbar(A.FREETEXT),bp(e,"enableEditMode",this,3)([]),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),Tp(Ip,this,new AbortController);var t=this._uiManager.combinedSignal(Op(Ip,this));this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:t}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:t}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:t}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:t}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:t})}}},{key:"disableEditMode",value:function(){var t;this.isInEditMode()&&(this.parent.setEditingState(!0),bp(e,"disableEditMode",this,3)([]),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",Op(jp,this)),this._isDraggable=!0,null===(t=Op(Ip,this))||void 0===t||t.abort(),Tp(Ip,this,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}},{key:"focusin",value:function(t){this._focusEventsAllowed&&(bp(e,"focusin",this,3)([t]),t.target!==this.editorDiv&&this.editorDiv.focus())}},{key:"onceAdded",value:function(){var t;this.width||(this.enableEditMode(),this.editorDiv.focus(),null!==(t=this._initialOptions)&&void 0!==t&&t.isCentered&&this.center(),this._initialOptions=null)}},{key:"isEmpty",value:function(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}},{key:"remove",value:function(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),bp(e,"remove",this,3)([])}},{key:"commit",value:function(){var t=this;if(this.isInEditMode()){bp(e,"commit",this,3)([]),this.disableEditMode();var r=Op(Cp,this),n=Tp(Cp,this,Pp(Fp,this,Bp).call(this).trimEnd());if(r!==n){var i=function(e){Tp(Cp,t,e),e?(Pp(Fp,t,Up).call(t),t._uiManager.rebuild(t),Pp(Fp,t,Gp).call(t)):t.remove()};this.addCommands({cmd:function(){i(n)},undo:function(){i(r)},mustExec:!1}),Pp(Fp,this,Gp).call(this)}}}},{key:"shouldGetKeyboardEvents",value:function(){return this.isInEditMode()}},{key:"enterInEditMode",value:function(){this.enableEditMode(),this.editorDiv.focus()}},{key:"dblclick",value:function(t){this.enterInEditMode()}},{key:"keydown",value:function(t){t.target===this.div&&"Enter"===t.key&&(this.enterInEditMode(),t.preventDefault())}},{key:"editorDivKeydown",value:function(t){e._keyboardManager.exec(this,t)}},{key:"editorDivFocus",value:function(t){this.isEditing=!0}},{key:"editorDivBlur",value:function(t){this.isEditing=!1}},{key:"editorDivInput",value:function(t){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}},{key:"disableEditing",value:function(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}},{key:"enableEditing",value:function(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}},{key:"render",value:function(){var t,r,n=this;if(this.div)return this.div;this.width&&(t=this.x,r=this.y),bp(e,"render",this,3)([]),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",Op(jp,this)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),Wa._l10nPromise.get("pdfjs-free-text-default-content").then((function(t){var e;return null===(e=n.editorDiv)||void 0===e?void 0:e.setAttribute("default-content",t)})),this.editorDiv.contentEditable=!0;var i=this.editorDiv.style;if(i.fontSize="calc(".concat(Op(Rp,this),"px * var(--scale-factor))"),i.color=Op(Mp,this),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),Br(this,this.div,["dblclick","keydown"]),this.width){var a=hp(this.parentDimensions,2),o=a[0],s=a[1];if(this.annotationElementId){var u=this._initialData.position,c=hp(this.getInitialTranslation(),2),l=c[0],h=c[1],f=hp(this.pageTranslationToScreen(l,h),2);l=f[0],h=f[1];var d,v,p=hp(this.pageDimensions,2),y=p[0],g=p[1],m=hp(this.pageTranslation,2),b=m[0],w=m[1];switch(this.rotation){case 0:d=t+(u[0]-b)/y,v=r+this.height-(u[1]-w)/g;break;case 90:d=t+(u[0]-b)/y,v=r-(u[1]-w)/g;var k=[h,-l];l=k[0],h=k[1];break;case 180:d=t-this.width+(u[0]-b)/y,v=r-(u[1]-w)/g;var x=[-l,-h];l=x[0],h=x[1];break;case 270:d=t+(u[0]-b-this.height*g)/y,v=r+(u[1]-w-this.width*y)/g;var A=[-h,l];l=A[0],h=A[1]}this.setAt(d*o,v*s,l,h)}else this.setAt(t*o,r*s,this.width*o,this.height*s);Pp(Fp,this,Up).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}},{key:"editorDivPaste",value:function(t){var r=t.clipboardData||window.clipboardData,n=r.types;if(1!==n.length||"text/plain"!==n[0]){t.preventDefault();var i=Vp.call(e,r.getData("text")||"").replaceAll(Lp,"\\n");if(i){var a=window.getSelection();if(a.rangeCount){this.editorDiv.normalize(),a.deleteFromDocument();var o=a.getRangeAt(0);if(!i.includes("\\n"))return o.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),void a.collapseToStart();var s=o.startContainer,u=o.startOffset,c=[],l=[];if(s.nodeType===Node.TEXT_NODE){var h=s.parentElement;if(l.push(s.nodeValue.slice(u).replaceAll(Lp,"")),h!==this.editorDiv){var f,d=c,v=lp(this.editorDiv.childNodes);try{for(v.s();!(f=v.n()).done;){var p=f.value;p!==h?d.push(Hp.call(e,p)):d=l}}catch(t){v.e(t)}finally{v.f()}}c.push(s.nodeValue.slice(0,u).replaceAll(Lp,""))}else if(s===this.editorDiv){var y,g=c,m=0,b=lp(this.editorDiv.childNodes);try{for(b.s();!(y=b.n()).done;){var w=y.value;m++===u&&(g=l),g.push(Hp.call(e,w))}}catch(t){b.e(t)}finally{b.f()}}Tp(Cp,this,"".concat(c.join("\\n")).concat(i).concat(l.join("\\n"))),Pp(Fp,this,Up).call(this);var k,x=new Range,A=c.reduce((function(t,e){return t+e.length}),0),_=lp(this.editorDiv.childNodes);try{for(_.s();!(k=_.n()).done;){var E=k.value.firstChild;if(E.nodeType===Node.TEXT_NODE){var S=E.nodeValue.length;if(A<=S){x.setStart(E,A),x.setEnd(E,A);break}A-=S}}}catch(t){_.e(t)}finally{_.f()}a.removeAllRanges(),a.addRange(x)}}}}},{key:"contentDiv",get:function(){return this.editorDiv}},{key:"serialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();var r=e._internalPadding*this.parentScale,n=this.getRect(r,r),i=Wa._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:Op(Mp,this)),a={annotationType:A.FREETEXT,color:i,fontSize:Op(Rp,this),value:Pp(Fp,this,zp).call(this),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?a:this.annotationElementId&&!Pp(Fp,this,qp).call(this,a)?null:(a.id=this.annotationElementId,a)}},{key:"renderAnnotationElement",value:function(t){var r=bp(e,"renderAnnotationElement",this,3)([t]);if(this.deleted)return r;var n=r.style;n.fontSize="calc(".concat(Op(Rp,this),"px * var(--scale-factor))"),n.color=Op(Mp,this),r.replaceChildren();var i,a=lp(Op(Cp,this).split("\\n"));try{for(a.s();!(i=a.n()).done;){var o=i.value,s=document.createElement("div");s.append(o?document.createTextNode(o):document.createElement("br")),r.append(s)}}catch(t){a.e(t)}finally{a.f()}var u=e._internalPadding*this.parentScale;return t.updateEdited({rect:this.getRect(u,u),popupContent:Op(Cp,this)}),r}},{key:"resetAnnotationElement",value:function(t){bp(e,"resetAnnotationElement",this,3)([t]),t.resetEdited()}}],[{key:"_keyboardManager",get:function(){var t=e.prototype,r=function(t){return t.isEmpty()},n=Kn.TRANSLATE_SMALL,i=Kn.TRANSLATE_BIG;return W(this,"_keyboardManager",new rn([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-n,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[n,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[i,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-n],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:r}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,n],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,i],checker:r}]]))}},{key:"initialize",value:function(t,e){Wa.initialize(t,e,{strings:["pdfjs-free-text-default-content"]});var r=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(r.getPropertyValue("--freetext-padding"))}},{key:"updateDefaultParams",value:function(t,r){switch(t){case _.FREETEXT_SIZE:e._defaultFontSize=r;break;case _.FREETEXT_COLOR:e._defaultColor=r}}},{key:"defaultPropertiesToUpdate",get:function(){return[[_.FREETEXT_SIZE,e._defaultFontSize],[_.FREETEXT_COLOR,e._defaultColor||Wa._defaultLineColor]]}},{key:"deserialize",value:(r=sp().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m;return sp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=null,!(r instanceof Pv)){t.next=6;break}if(s=(o=r).data,u=s.defaultAppearanceData,c=u.fontSize,l=u.fontColor,h=s.rect,f=s.rotation,d=s.id,v=s.popupRef,p=o.textContent,y=o.textPosition,g=o.parent.page.pageNumber,p&&0!==p.length){t.next=5;break}return t.abrupt("return",null);case 5:a=r={annotationType:A.FREETEXT,color:Array.from(l),fontSize:c,value:p.join("\\n"),position:y,pageIndex:g-1,rect:h.slice(0),rotation:f,id:d,deleted:!1,popupRef:v};case 6:return t.next=8,bp(e,"deserialize",this,2)([r,n,i]);case 8:return m=t.sent,Tp(Rp,m,r.fontSize),Tp(Mp,m,Z.makeHexColor.apply(Z,up(r.color))),Tp(Cp,m,Vp.call(e,r.value)),m.annotationElementId=r.id||null,m._initialData=a,t.abrupt("return",m);case 15:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,i){var a=r.apply(t,e);function o(t){cp(a,n,i,o,s,"next",t)}function s(t){cp(a,n,i,o,s,"throw",t)}o(void 0)}))},function(t,e,r){return n.apply(this,arguments)})}]);var r,n}();function Np(t){var e=this,r=function(t){e.editorDiv.style.fontSize="calc(".concat(t,"px * var(--scale-factor))"),e.translate(0,-(t-Op(Rp,e))*e.parentScale),Tp(Rp,e,t),Pp(Fp,e,Gp).call(e)},n=Op(Rp,this);this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function Wp(t){var e=this,r=function(t){Tp(Mp,e,e.editorDiv.style.color=t)},n=Op(Mp,this);this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Bp(){var t=[];this.editorDiv.normalize();var e,r=null,n=lp(this.editorDiv.childNodes);try{for(n.s();!(e=n.n()).done;){var i,a=e.value;(null===(i=r)||void 0===i?void 0:i.nodeType)===Node.TEXT_NODE&&"BR"===a.nodeName||(t.push(Hp.call(Jv,a)),r=a)}}catch(t){n.e(t)}finally{n.f()}return t.join("\\n")}function Gp(){var t,e=hp(this.parentDimensions,2),r=e[0],n=e[1];if(this.isAttachedToDOM)t=this.div.getBoundingClientRect();else{var i=this.currentLayer,a=this.div,o=a.style.display,s=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),t=a.getBoundingClientRect(),a.remove(),a.style.display=o,a.classList.toggle("hidden",s)}this.rotation%180==this.parentRotation%180?(this.width=t.width/r,this.height=t.height/n):(this.width=t.height/r,this.height=t.width/n),this.fixAndSetPosition()}function Hp(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(Lp,"")}function Up(){if(this.editorDiv.replaceChildren(),Op(Cp,this)){var t,e=lp(Op(Cp,this).split("\\n"));try{for(e.s();!(t=e.n()).done;){var r=t.value,n=document.createElement("div");n.append(r?document.createTextNode(r):document.createElement("br")),this.editorDiv.append(n)}}catch(t){e.e(t)}finally{e.f()}}}function zp(){return Op(Cp,this).replaceAll(" "," ")}function Vp(t){return t.replaceAll(" "," ")}function qp(t){var e=this._initialData,r=e.value,n=e.fontSize,i=e.color,a=e.pageIndex;return this._hasBeenMoved||t.value!==r||t.fontSize!==n||t.color.some((function(t,e){return t!==i[e]}))||t.pageIndex!==a}function Yp(t,e,r){return e=Kp(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,Xp()?Reflect.construct(e,r||[],Kp(t).constructor):e.apply(t,r))}function Xp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xp=function(){return!!t})()}function Kp(t){return Kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kp(t)}function Qp(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jp(t,e)}function Jp(t,e){return Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jp(t,e)}function $p(t){return function(t){if(Array.isArray(t))return ry(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ey(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||ey(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ty(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ey(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ey(t,e){if(t){if("string"==typeof t)return ry(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ry(t,e):void 0}}function ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ny(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oy(n.key),n)}}function ay(t,e,r){return e&&iy(t.prototype,e),r&&iy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function oy(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function sy(t,e){cy(t,e),e.add(t)}function uy(t,e,r){cy(t,e),e.set(t,r)}function cy(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ly(t,e,r){return t.set(fy(t,e),r),r}function hy(t,e){return t.get(fy(t,e))}function fy(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}Jv=Dp,Ap(Dp,"_freeTextDefaultContent",""),Ap(Dp,"_internalPadding",0),Ap(Dp,"_defaultColor",null),Ap(Dp,"_defaultFontSize",10),Ap(Dp,"_type","freetext"),Ap(Dp,"_editorType",A.FREETEXT),r(4306),r(7710),r(6473);var dy=new WeakMap,vy=new WeakMap,py=new WeakMap,yy=new WeakSet,gy=function(){return ay((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];ny(this,t),sy(this,yy),uy(this,dy,void 0),uy(this,vy,[]),uy(this,py,[]);var a,o=1/0,s=-1/0,u=1/0,c=-1/0,l=Math.pow(10,-4),h=ty(e);try{for(h.s();!(a=h.n()).done;){var f=a.value,d=f.x,v=f.y,p=f.width,y=f.height,g=Math.floor((d-r)/l)*l,m=Math.ceil((d+p+r)/l)*l,b=Math.floor((v-r)/l)*l,w=Math.ceil((v+y+r)/l)*l,k=[g,b,w,!0],x=[m,b,w,!1];hy(vy,this).push(k,x),o=Math.min(o,g),s=Math.max(s,m),u=Math.min(u,b),c=Math.max(c,w)}}catch(t){h.e(t)}finally{h.f()}var A,_=s-o+2*n,E=c-u+2*n,S=o-n,O=u-n,T=hy(vy,this).at(i?-1:-2),P=[T[0],T[2]],L=ty(hy(vy,this));try{for(L.s();!(A=L.n()).done;){var M=A.value,C=Zp(M,3),j=C[0],I=C[1],R=C[2];M[0]=(j-S)/_,M[1]=(I-O)/E,M[2]=(R-O)/E}}catch(t){L.e(t)}finally{L.f()}ly(dy,this,{x:S,y:O,width:_,height:E,lastPoint:P})}),[{key:"getOutlines",value:function(){hy(vy,this).sort((function(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}));var t,e=[],r=ty(hy(vy,this));try{for(r.s();!(t=r.n()).done;){var n=t.value;n[3]?(e.push.apply(e,$p(fy(yy,this,xy).call(this,n))),fy(yy,this,wy).call(this,n)):(fy(yy,this,ky).call(this,n),e.push.apply(e,$p(fy(yy,this,xy).call(this,n))))}}catch(t){r.e(t)}finally{r.f()}return fy(yy,this,my).call(this,e)}}])}();function my(t){var e,r=[],n=new Set,i=ty(t);try{for(i.s();!(e=i.n()).done;){var a=e.value,o=Zp(a,3),s=o[0],u=o[1],c=o[2];r.push([s,u,a],[s,c,a])}}catch(t){i.e(t)}finally{i.f()}r.sort((function(t,e){return t[1]-e[1]||t[0]-e[0]}));for(var l=0,h=r.length;l<h;l+=2){var f=r[l][2],d=r[l+1][2];f.push(d),d.push(f),n.add(f),n.add(d)}for(var v,p=[];n.size>0;){var y=n.values().next().value,g=Zp(y,5),m=g[0],b=g[1],w=g[2],k=g[3],x=g[4];n.delete(y);var A=m,_=b;for(v=[m,w],p.push(v);;){var E=void 0;if(n.has(k))E=k;else{if(!n.has(x))break;E=x}n.delete(E);var S=Zp(E,5);m=S[0],b=S[1],w=S[2],k=S[3],x=S[4],A!==m&&(v.push(A,_,m,_===b?b:w),A=m),_=_===b?w:b}v.push(A,_)}return new Sy(p,hy(dy,this))}function by(t){for(var e=hy(py,this),r=0,n=e.length-1;r<=n;){var i=r+n>>1,a=e[i][0];if(a===t)return i;a<t?r=i+1:n=i-1}return n+1}function wy(t){var e=Zp(t,3),r=e[1],n=e[2],i=fy(yy,this,by).call(this,r);hy(py,this).splice(i,0,[r,n])}function ky(t){for(var e=Zp(t,3),r=e[1],n=e[2],i=fy(yy,this,by).call(this,r),a=i;a<hy(py,this).length;a++){var o=Zp(hy(py,this)[a],2),s=o[0],u=o[1];if(s!==r)break;if(s===r&&u===n)return void hy(py,this).splice(a,1)}for(var c=i-1;c>=0;c--){var l=Zp(hy(py,this)[c],2),h=l[0],f=l[1];if(h!==r)break;if(h===r&&f===n)return void hy(py,this).splice(c,1)}}function xy(t){for(var e=Zp(t,3),r=e[0],n=e[1],i=e[2],a=[[r,n,i]],o=fy(yy,this,by).call(this,i),s=0;s<o;s++)for(var u=Zp(hy(py,this)[s],2),c=u[0],l=u[1],h=0,f=a.length;h<f;h++){var d=Zp(a[h],3),v=d[1],p=d[2];if(!(l<=v||p<=c))if(v>=c)if(p>l)a[h][1]=l;else{if(1===f)return[];a.splice(h,1),h--,f--}else a[h][2]=c,p>l&&a.push([r,l,p])}return a}var Ay=function(){return ay((function t(){ny(this,t)}),[{key:"toSVGPath",value:function(){throw new Error("Abstract method `toSVGPath` must be implemented.")}},{key:"box",get:function(){throw new Error("Abstract getter `box` must be implemented.")}},{key:"serialize",value:function(t,e){throw new Error("Abstract method `serialize` must be implemented.")}},{key:"free",get:function(){return this instanceof tg}}])}(),_y=new WeakMap,Ey=new WeakMap,Sy=function(t){function e(t,r){var n;return ny(this,e),uy(n=Yp(this,e),_y,void 0),uy(n,Ey,void 0),ly(Ey,n,t),ly(_y,n,r),n}return Qp(e,Ay),ay(e,[{key:"toSVGPath",value:function(){var t,e=[],r=ty(hy(Ey,this));try{for(r.s();!(t=r.n()).done;){var n=t.value,i=Zp(n,2),a=i[0],o=i[1];e.push("M".concat(a," ").concat(o));for(var s=2;s<n.length;s+=2){var u=n[s],c=n[s+1];u===a?(e.push("V".concat(c)),o=c):c===o&&(e.push("H".concat(u)),a=u)}e.push("Z")}}catch(t){r.e(t)}finally{r.f()}return e.join(" ")}},{key:"serialize",value:function(t,e){var r,n=Zp(t,4),i=n[0],a=n[1],o=n[2],s=n[3],u=[],c=o-i,l=s-a,h=ty(hy(Ey,this));try{for(h.s();!(r=h.n()).done;){for(var f=r.value,d=new Array(f.length),v=0;v<f.length;v+=2)d[v]=i+f[v]*c,d[v+1]=s-f[v+1]*l;u.push(d)}}catch(t){h.e(t)}finally{h.f()}return u}},{key:"box",get:function(){return hy(_y,this)}}])}(),Oy=new WeakMap,Ty=new WeakMap,Py=new WeakMap,Ly=new WeakMap,My=new WeakMap,Cy=new WeakMap,jy=new WeakMap,Iy=new WeakMap,Ry=new WeakMap,Fy=new WeakMap,Dy=new WeakMap,Ny=new WeakMap,Wy=new WeakMap,By=new WeakSet,Gy=function(){return ay((function t(e,r,n,i,a){var o=e.x,s=e.y,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;ny(this,t),sy(this,By),uy(this,Oy,void 0),uy(this,Ty,[]),uy(this,Py,void 0),uy(this,Ly,void 0),uy(this,My,[]),uy(this,Cy,new Float64Array(18)),uy(this,jy,void 0),uy(this,Iy,void 0),uy(this,Ry,void 0),uy(this,Fy,void 0),uy(this,Dy,void 0),uy(this,Ny,void 0),uy(this,Wy,[]),ly(Oy,this,r),ly(Ny,this,i*n),ly(Ly,this,a),hy(Cy,this).set([NaN,NaN,NaN,NaN,o,s],6),ly(Py,this,u),ly(Fy,this,zy._*n),ly(Ry,this,Vy._*n),ly(Dy,this,n),hy(Wy,this).push(o,s)}),[{key:"free",get:function(){return!0}},{key:"isEmpty",value:function(){return isNaN(hy(Cy,this)[8])}},{key:"add",value:function(t){var e,r=t.x,n=t.y;ly(jy,this,r),ly(Iy,this,n);var i=Zp(hy(Oy,this),4),a=i[0],o=i[1],s=i[2],u=i[3],c=Zp(hy(Cy,this).subarray(8,12),4),l=c[0],h=c[1],f=c[2],d=c[3],v=r-f,p=n-d,y=Math.hypot(v,p);if(y<hy(Ry,this))return!1;var g=y-hy(Fy,this),m=g/y,b=m*v,w=m*p,k=l,x=h;l=f,h=d,f+=b,d+=w,null===(e=hy(Wy,this))||void 0===e||e.push(r,n);var A=b/g,_=-w/g*hy(Ny,this),E=A*hy(Ny,this);if(hy(Cy,this).set(hy(Cy,this).subarray(2,8),0),hy(Cy,this).set([f+_,d+E],4),hy(Cy,this).set(hy(Cy,this).subarray(14,18),12),hy(Cy,this).set([f-_,d-E],16),isNaN(hy(Cy,this)[6]))return 0===hy(My,this).length&&(hy(Cy,this).set([l+_,h+E],2),hy(My,this).push(NaN,NaN,NaN,NaN,(l+_-a)/s,(h+E-o)/u),hy(Cy,this).set([l-_,h-E],14),hy(Ty,this).push(NaN,NaN,NaN,NaN,(l-_-a)/s,(h-E-o)/u)),hy(Cy,this).set([k,x,l,h,f,d],6),!this.isEmpty();if(hy(Cy,this).set([k,x,l,h,f,d],6),Math.abs(Math.atan2(x-h,k-l)-Math.atan2(w,b))<Math.PI/2){var S=Zp(hy(Cy,this).subarray(2,6),4);l=S[0],h=S[1],f=S[2],d=S[3],hy(My,this).push(NaN,NaN,NaN,NaN,((l+f)/2-a)/s,((h+d)/2-o)/u);var O=Zp(hy(Cy,this).subarray(14,18),4);return l=O[0],h=O[1],k=O[2],x=O[3],hy(Ty,this).push(NaN,NaN,NaN,NaN,((k+l)/2-a)/s,((x+h)/2-o)/u),!0}var T=Zp(hy(Cy,this).subarray(0,6),6);k=T[0],x=T[1],l=T[2],h=T[3],f=T[4],d=T[5],hy(My,this).push(((k+5*l)/6-a)/s,((x+5*h)/6-o)/u,((5*l+f)/6-a)/s,((5*h+d)/6-o)/u,((l+f)/2-a)/s,((h+d)/2-o)/u);var P=Zp(hy(Cy,this).subarray(12,18),6);return f=P[0],d=P[1],l=P[2],h=P[3],k=P[4],x=P[5],hy(Ty,this).push(((k+5*l)/6-a)/s,((x+5*h)/6-o)/u,((5*l+f)/6-a)/s,((5*h+d)/6-o)/u,((l+f)/2-a)/s,((h+d)/2-o)/u),!0}},{key:"toSVGPath",value:function(){if(this.isEmpty())return"";var t=hy(My,this),e=hy(Ty,this),r=hy(Cy,this).subarray(4,6),n=hy(Cy,this).subarray(16,18),i=Zp(hy(Oy,this),4),a=i[0],o=i[1],s=i[2],u=i[3],c=Zp(fy(By,this,Hy).call(this),4),l=c[0],h=c[1],f=c[2],d=c[3];if(isNaN(hy(Cy,this)[6])&&!this.isEmpty())return"M".concat((hy(Cy,this)[2]-a)/s," ").concat((hy(Cy,this)[3]-o)/u," L").concat((hy(Cy,this)[4]-a)/s," ").concat((hy(Cy,this)[5]-o)/u," L").concat(l," ").concat(h," L").concat(f," ").concat(d," L").concat((hy(Cy,this)[16]-a)/s," ").concat((hy(Cy,this)[17]-o)/u," L").concat((hy(Cy,this)[14]-a)/s," ").concat((hy(Cy,this)[15]-o)/u," Z");var v=[];v.push("M".concat(t[4]," ").concat(t[5]));for(var p=6;p<t.length;p+=6)isNaN(t[p])?v.push("L".concat(t[p+4]," ").concat(t[p+5])):v.push("C".concat(t[p]," ").concat(t[p+1]," ").concat(t[p+2]," ").concat(t[p+3]," ").concat(t[p+4]," ").concat(t[p+5]));v.push("L".concat((r[0]-a)/s," ").concat((r[1]-o)/u," L").concat(l," ").concat(h," L").concat(f," ").concat(d," L").concat((n[0]-a)/s," ").concat((n[1]-o)/u));for(var y=e.length-6;y>=6;y-=6)isNaN(e[y])?v.push("L".concat(e[y+4]," ").concat(e[y+5])):v.push("C".concat(e[y]," ").concat(e[y+1]," ").concat(e[y+2]," ").concat(e[y+3]," ").concat(e[y+4]," ").concat(e[y+5]));return v.push("L".concat(e[4]," ").concat(e[5]," Z")),v.join(" ")}},{key:"getOutlines",value:function(){for(var t,e,r=hy(My,this),n=hy(Ty,this),i=hy(Cy,this),a=i.subarray(4,6),o=i.subarray(16,18),s=Zp(hy(Oy,this),4),u=s[0],c=s[1],l=s[2],h=s[3],f=new Float64Array((null!==(t=null===(e=hy(Wy,this))||void 0===e?void 0:e.length)&&void 0!==t?t:0)+2),d=0,v=f.length-2;d<v;d+=2)f[d]=(hy(Wy,this)[d]-u)/l,f[d+1]=(hy(Wy,this)[d+1]-c)/h;f[f.length-2]=(hy(jy,this)-u)/l,f[f.length-1]=(hy(Iy,this)-c)/h;var p=Zp(fy(By,this,Hy).call(this),4),y=p[0],g=p[1],m=p[2],b=p[3];if(isNaN(i[6])&&!this.isEmpty()){var w=new Float64Array(36);return w.set([NaN,NaN,NaN,NaN,(i[2]-u)/l,(i[3]-c)/h,NaN,NaN,NaN,NaN,(i[4]-u)/l,(i[5]-c)/h,NaN,NaN,NaN,NaN,y,g,NaN,NaN,NaN,NaN,m,b,NaN,NaN,NaN,NaN,(i[16]-u)/l,(i[17]-c)/h,NaN,NaN,NaN,NaN,(i[14]-u)/l,(i[15]-c)/h],0),new tg(w,f,hy(Oy,this),hy(Dy,this),hy(Py,this),hy(Ly,this))}for(var k=new Float64Array(hy(My,this).length+24+hy(Ty,this).length),x=r.length,A=0;A<x;A+=2)isNaN(r[A])?k[A]=k[A+1]=NaN:(k[A]=r[A],k[A+1]=r[A+1]);k.set([NaN,NaN,NaN,NaN,(a[0]-u)/l,(a[1]-c)/h,NaN,NaN,NaN,NaN,y,g,NaN,NaN,NaN,NaN,m,b,NaN,NaN,NaN,NaN,(o[0]-u)/l,(o[1]-c)/h],x),x+=24;for(var _=n.length-6;_>=6;_-=6)for(var E=0;E<6;E+=2)isNaN(n[_+E])?(k[x]=k[x+1]=NaN,x+=2):(k[x]=n[_+E],k[x+1]=n[_+E+1],x+=2);return k.set([NaN,NaN,NaN,NaN,n[4],n[5]],x),new tg(k,f,hy(Oy,this),hy(Dy,this),hy(Py,this),hy(Ly,this))}}])}();function Hy(){var t=hy(Cy,this).subarray(4,6),e=hy(Cy,this).subarray(16,18),r=Zp(hy(Oy,this),4),n=r[0],i=r[1],a=r[2],o=r[3];return[(hy(jy,this)+(t[0]-e[0])/2-n)/a,(hy(Iy,this)+(t[1]-e[1])/2-i)/o,(hy(jy,this)+(e[0]-t[0])/2-n)/a,(hy(Iy,this)+(e[1]-t[1])/2-i)/o]}var Uy,zy={_:8},Vy={_:zy._+2},qy=new WeakMap,Yy=new WeakMap,Xy=new WeakMap,Ky=new WeakMap,Qy=new WeakMap,Jy=new WeakMap,$y=new WeakMap,Zy=new WeakSet,tg=function(t){function e(t,r,n,i,a,o){var s;ny(this,e),sy(s=Yp(this,e),Zy),uy(s,qy,void 0),uy(s,Yy,null),uy(s,Xy,void 0),uy(s,Ky,void 0),uy(s,Qy,void 0),uy(s,Jy,void 0),uy(s,$y,void 0),ly($y,s,t),ly(Qy,s,r),ly(qy,s,n),ly(Jy,s,i),ly(Xy,s,a),ly(Ky,s,o),fy(Zy,s,ng).call(s,o);for(var u=hy(Yy,s),c=u.x,l=u.y,h=u.width,f=u.height,d=0,v=t.length;d<v;d+=2)t[d]=(t[d]-c)/h,t[d+1]=(t[d+1]-l)/f;for(var p=0,y=r.length;p<y;p+=2)r[p]=(r[p]-c)/h,r[p+1]=(r[p+1]-l)/f;return s}return Qp(e,Ay),ay(e,[{key:"toSVGPath",value:function(){for(var t=["M".concat(hy($y,this)[4]," ").concat(hy($y,this)[5])],e=6,r=hy($y,this).length;e<r;e+=6)isNaN(hy($y,this)[e])?t.push("L".concat(hy($y,this)[e+4]," ").concat(hy($y,this)[e+5])):t.push("C".concat(hy($y,this)[e]," ").concat(hy($y,this)[e+1]," ").concat(hy($y,this)[e+2]," ").concat(hy($y,this)[e+3]," ").concat(hy($y,this)[e+4]," ").concat(hy($y,this)[e+5]));return t.push("Z"),t.join(" ")}},{key:"serialize",value:function(t,e){var r,n,i=Zp(t,4),a=i[0],o=i[1],s=i[2],u=i[3],c=s-a,l=u-o;switch(e){case 0:r=fy(Zy,this,eg).call(this,hy($y,this),a,u,c,-l),n=fy(Zy,this,eg).call(this,hy(Qy,this),a,u,c,-l);break;case 90:r=fy(Zy,this,rg).call(this,hy($y,this),a,o,c,l),n=fy(Zy,this,rg).call(this,hy(Qy,this),a,o,c,l);break;case 180:r=fy(Zy,this,eg).call(this,hy($y,this),s,o,-c,l),n=fy(Zy,this,eg).call(this,hy(Qy,this),s,o,-c,l);break;case 270:r=fy(Zy,this,rg).call(this,hy($y,this),s,u,-c,-l),n=fy(Zy,this,rg).call(this,hy(Qy,this),s,u,-c,-l)}return{outline:Array.from(r),points:[Array.from(n)]}}},{key:"box",get:function(){return hy(Yy,this)}},{key:"getNewOutline",value:function(t,e){for(var r=hy(Yy,this),n=r.x,i=r.y,a=r.width,o=r.height,s=Zp(hy(qy,this),4),u=s[0],c=s[1],l=s[2],h=s[3],f=a*l,d=o*h,v=n*l+u,p=i*h+c,y=new Gy({x:hy(Qy,this)[0]*f+v,y:hy(Qy,this)[1]*d+p},hy(qy,this),hy(Jy,this),t,hy(Ky,this),null!=e?e:hy(Xy,this)),g=2;g<hy(Qy,this).length;g+=2)y.add({x:hy(Qy,this)[g]*f+v,y:hy(Qy,this)[g+1]*d+p});return y.getOutlines()}}])}();function eg(t,e,r,n,i){for(var a=new Float64Array(t.length),o=0,s=t.length;o<s;o+=2)a[o]=e+t[o]*n,a[o+1]=r+t[o+1]*i;return a}function rg(t,e,r,n,i){for(var a=new Float64Array(t.length),o=0,s=t.length;o<s;o+=2)a[o]=e+t[o+1]*n,a[o+1]=r+t[o]*i;return a}function ng(t){for(var e=hy($y,this),r=e[4],n=e[5],i=r,a=n,o=r,s=n,u=r,c=n,l=t?Math.max:Math.min,h=6,f=e.length;h<f;h+=6){if(isNaN(e[h]))i=Math.min(i,e[h+4]),a=Math.min(a,e[h+5]),o=Math.max(o,e[h+4]),s=Math.max(s,e[h+5]),c<e[h+5]?(u=e[h+4],c=e[h+5]):c===e[h+5]&&(u=l(u,e[h+4]));else{var d=Z.bezierBoundingBox.apply(Z,[r,n].concat($p(e.slice(h,h+6))));i=Math.min(i,d[0]),a=Math.min(a,d[1]),o=Math.max(o,d[2]),s=Math.max(s,d[3]),c<d[3]?(u=d[2],c=d[3]):c===d[3]&&(u=l(u,d[2]))}r=e[h+4],n=e[h+5]}var v=i-hy(Xy,this),p=a-hy(Xy,this),y=o-i+2*hy(Xy,this),g=s-a+2*hy(Xy,this);ly(Yy,this,{x:v,y:p,width:y,height:g,lastPoint:[u,c]})}function ig(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||og(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ag(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=og(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function og(t,e){if(t){if("string"==typeof t)return sg(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sg(t,e):void 0}}function sg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ug(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cg(n.key),n)}}function cg(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function lg(t,e,r){hg(t,e),e.set(t,r)}function hg(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fg(t,e,r){return r(pg(t,e))}function dg(t,e){return t.get(pg(t,e))}function vg(t,e,r){return t.set(pg(t,e),r),r}function pg(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var yg=new WeakMap,gg=new WeakMap,mg=new WeakMap,bg=new WeakMap,wg=new WeakMap,kg=new WeakMap,xg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Eg=new WeakMap,Sg=new WeakMap,Og=new WeakSet,Tg=function(){function t(e){var r,n=e.editor,i=void 0===n?null:n,a=e.uiManager,o=void 0===a?null:a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){hg(t,e),e.add(t)}(this,Og),lg(this,yg,null),lg(this,gg,null),lg(this,mg,void 0),lg(this,bg,null),lg(this,wg,!1),lg(this,kg,!1),lg(this,xg,null),lg(this,Ag,void 0),lg(this,_g,null),lg(this,Eg,null),lg(this,Sg,void 0),i?(vg(kg,this,!1),vg(Sg,this,_.HIGHLIGHT_COLOR),vg(xg,this,i)):(vg(kg,this,!0),vg(Sg,this,_.HIGHLIGHT_DEFAULT_COLOR)),vg(Eg,this,(null==i?void 0:i._uiManager)||o),vg(Ag,this,dg(Eg,this)._eventBus),vg(mg,this,(null==i?void 0:i.color)||(null===(r=dg(Eg,this))||void 0===r?void 0:r.highlightColors.values().next().value)||"#FFFF98"),Fg._||(Fg._=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}return function(t,e,r){return e&&ug(t.prototype,e),r&&ug(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"renderButton",value:function(){var t=vg(yg,this,document.createElement("button"));t.className="colorPicker",t.tabIndex="0",t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),t.setAttribute("aria-haspopup",!0);var e=dg(Eg,this)._signal;t.addEventListener("click",pg(Og,this,Cg).bind(this),{signal:e}),t.addEventListener("keydown",pg(Og,this,Mg).bind(this),{signal:e});var r=vg(gg,this,document.createElement("span"));return r.className="swatch",r.setAttribute("aria-hidden",!0),r.style.backgroundColor=dg(mg,this),t.append(r),t}},{key:"renderMainDropdown",value:function(){var t=vg(bg,this,pg(Og,this,Pg).call(this));return t.setAttribute("aria-orientation","horizontal"),t.setAttribute("aria-labelledby","highlightColorPickerLabel"),t}},{key:"_colorSelectFromKeyboard",value:function(t){if(t.target!==dg(yg,this)){var e=t.target.getAttribute("data-color");e&&pg(Og,this,Lg).call(this,e,t)}else pg(Og,this,Cg).call(this,t)}},{key:"_moveToNext",value:function(t){var e,r;fg(Og,this,Ig)?t.target!==dg(yg,this)?null===(e=t.target.nextSibling)||void 0===e||e.focus():null===(r=dg(bg,this).firstChild)||void 0===r||r.focus():pg(Og,this,Cg).call(this,t)}},{key:"_moveToPrevious",value:function(t){var e,r;t.target!==(null===(e=dg(bg,this))||void 0===e?void 0:e.firstChild)&&t.target!==dg(yg,this)?(fg(Og,this,Ig)||pg(Og,this,Cg).call(this,t),null===(r=t.target.previousSibling)||void 0===r||r.focus()):fg(Og,this,Ig)&&this._hideDropdownFromKeyboard()}},{key:"_moveToBeginning",value:function(t){var e;fg(Og,this,Ig)?null===(e=dg(bg,this).firstChild)||void 0===e||e.focus():pg(Og,this,Cg).call(this,t)}},{key:"_moveToEnd",value:function(t){var e;fg(Og,this,Ig)?null===(e=dg(bg,this).lastChild)||void 0===e||e.focus():pg(Og,this,Cg).call(this,t)}},{key:"hideDropdown",value:function(){var t,e;null===(t=dg(bg,this))||void 0===t||t.classList.add("hidden"),null===(e=dg(_g,this))||void 0===e||e.abort(),vg(_g,this,null)}},{key:"_hideDropdownFromKeyboard",value:function(){var t;dg(kg,this)||(fg(Og,this,Ig)?(this.hideDropdown(),dg(yg,this).focus({preventScroll:!0,focusVisible:dg(wg,this)})):null===(t=dg(xg,this))||void 0===t||t.unselect())}},{key:"updateColor",value:function(t){if(dg(gg,this)&&(dg(gg,this).style.backgroundColor=t),dg(bg,this)){var e,r=dg(Eg,this).highlightColors.values(),n=ag(dg(bg,this).children);try{for(n.s();!(e=n.n()).done;)e.value.setAttribute("aria-selected",r.next().value===t)}catch(t){n.e(t)}finally{n.f()}}}},{key:"destroy",value:function(){var t,e;null===(t=dg(yg,this))||void 0===t||t.remove(),vg(yg,this,null),vg(gg,this,null),null===(e=dg(bg,this))||void 0===e||e.remove(),vg(bg,this,null)}}],[{key:"_keyboardManager",get:function(){return W(this,"_keyboardManager",new rn([[["Escape","mac+Escape"],t.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],t.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],t.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],t.prototype._moveToPrevious],[["Home","mac+Home"],t.prototype._moveToBeginning],[["End","mac+End"],t.prototype._moveToEnd]]))}}])}();function Pg(){var t=document.createElement("div"),e=dg(Eg,this)._signal;t.addEventListener("contextmenu",Te,{signal:e}),t.className="dropdown",t.role="listbox",t.setAttribute("aria-multiselectable",!1),t.setAttribute("aria-orientation","vertical"),t.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");var r,n=ag(dg(Eg,this).highlightColors);try{for(n.s();!(r=n.n()).done;){var i=ig(r.value,2),a=i[0],o=i[1],s=document.createElement("button");s.tabIndex="0",s.role="option",s.setAttribute("data-color",o),s.title=a,s.setAttribute("data-l10n-id",Fg._[a]);var u=document.createElement("span");s.append(u),u.className="swatch",u.style.backgroundColor=o,s.setAttribute("aria-selected",o===dg(mg,this)),s.addEventListener("click",pg(Og,this,Lg).bind(this,o),{signal:e}),t.append(s)}}catch(t){n.e(t)}finally{n.f()}return t.addEventListener("keydown",pg(Og,this,Mg).bind(this),{signal:e}),t}function Lg(t,e){e.stopPropagation(),dg(Ag,this).dispatch("switchannotationeditorparams",{source:this,type:dg(Sg,this),value:t})}function Mg(t){Uy._keyboardManager.exec(this,t)}function Cg(t){if(fg(Og,this,Ig))this.hideDropdown();else if(vg(wg,this,0===t.detail),dg(_g,this)||(vg(_g,this,new AbortController),window.addEventListener("pointerdown",pg(Og,this,jg).bind(this),{signal:dg(Eg,this).combinedSignal(dg(_g,this))})),dg(bg,this))dg(bg,this).classList.remove("hidden");else{var e=vg(bg,this,pg(Og,this,Pg).call(this));dg(yg,this).append(e)}}function jg(t){var e;null!==(e=dg(bg,this))&&void 0!==e&&e.contains(t.target)||this.hideDropdown()}function Ig(t){return dg(bg,t)&&!dg(bg,t).classList.contains("hidden")}Uy=Tg;var Rg,Fg={_:null};function Dg(t){return function(t){if(Array.isArray(t))return Bg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Wg(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ng(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Wg(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wg(t,e){if(t){if("string"==typeof t)return Bg(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bg(t,e):void 0}}function Bg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Gg(){Gg=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Hg(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Ug(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Hg(a,n,i,o,s,"next",t)}function s(t){Hg(a,n,i,o,s,"throw",t)}o(void 0)}))}}function zg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zg(Object(r),!0).forEach((function(e){Zg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tm(n.key),n)}}function Yg(t,e,r){return e=Jg(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,Xg()?Reflect.construct(e,r||[],Jg(t).constructor):e.apply(t,r))}function Xg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xg=function(){return!!t})()}function Kg(t,e,r,n){var i=Qg(Jg(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function Qg(){return Qg="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Jg(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},Qg.apply(null,arguments)}function Jg(t){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jg(t)}function $g(t,e){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$g(t,e)}function Zg(t,e,r){return(e=tm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tm(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function em(t,e,r){rm(t,e),e.set(t,r)}function rm(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nm(t,e,r){e||(e=[]);var n=e.length++;return Object.defineProperty({},"_",{set:function(i){e[n]=i,t.apply(r,e)}})}function im(t,e){return t.get(om(t,e))}function am(t,e,r){return t.set(om(t,e),r),r}function om(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var sm,um=new WeakMap,cm=new WeakMap,lm=new WeakMap,hm=new WeakMap,fm=new WeakMap,dm=new WeakMap,vm=new WeakMap,pm=new WeakMap,ym=new WeakMap,gm=new WeakMap,mm=new WeakMap,bm=new WeakMap,wm=new WeakMap,km=new WeakMap,xm=new WeakMap,Am=new WeakMap,_m=new WeakMap,Em=new WeakMap,Sm=new WeakSet,Om=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){rm(t,e),e.add(t)}(r=Yg(this,e,[Vg(Vg({},t),{},{name:"highlightEditor"})]),Sm),em(r,um,null),em(r,cm,0),em(r,lm,void 0),em(r,hm,null),em(r,fm,null),em(r,dm,null),em(r,vm,null),em(r,pm,0),em(r,ym,null),em(r,gm,null),em(r,mm,null),em(r,bm,!1),em(r,wm,null),em(r,km,void 0),em(r,xm,null),em(r,Am,""),em(r,_m,void 0),em(r,Em,""),r.color=t.color||e._defaultColor,am(_m,r,t.thickness||e._defaultThickness),am(km,r,t.opacity||e._defaultOpacity),am(lm,r,t.boxes||null),am(Em,r,t.methodOfCreation||""),am(Am,r,t.text||""),r._isDraggable=!1,t.highlightId>-1?(am(bm,r,!0),om(Sm,r,Pm).call(r,t),om(Sm,r,Im).call(r)):im(lm,r)&&(am(um,r,t.anchorNode),am(cm,r,t.anchorOffset),am(vm,r,t.focusNode),am(pm,r,t.focusOffset),om(Sm,r,Tm).call(r),om(Sm,r,Im).call(r),r.rotate(r.rotation)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$g(t,e)}(e,Wa),function(t,e,r){return e&&qg(t.prototype,e),r&&qg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"telemetryInitialData",get:function(){return{action:"added",type:im(bm,this)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:im(_m,this),methodOfCreation:im(Em,this)}}},{key:"telemetryFinalData",get:function(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}},{key:"translateInPage",value:function(t,e){}},{key:"toolbarPosition",get:function(){return im(wm,this)}},{key:"updateParams",value:function(t,e){switch(t){case _.HIGHLIGHT_COLOR:om(Sm,this,Lm).call(this,e);break;case _.HIGHLIGHT_THICKNESS:om(Sm,this,Mm).call(this,e)}}},{key:"propertiesToUpdate",get:function(){return[[_.HIGHLIGHT_COLOR,this.color||e._defaultColor],[_.HIGHLIGHT_THICKNESS,im(_m,this)||e._defaultThickness],[_.HIGHLIGHT_FREE,im(bm,this)]]}},{key:"addEditToolbar",value:(n=Ug(Gg().mark((function t(){var r;return Gg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Kg(e,"addEditToolbar",this,3)([]);case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return",null);case 5:return this._uiManager.highlightColors&&(am(fm,this,new Tg({editor:this})),r.addColorPicker(im(fm,this))),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"disableEditing",value:function(){Kg(e,"disableEditing",this,3)([]),this.div.classList.toggle("disabled",!0)}},{key:"enableEditing",value:function(){Kg(e,"enableEditing",this,3)([]),this.div.classList.toggle("disabled",!1)}},{key:"fixAndSetPosition",value:function(){return Kg(e,"fixAndSetPosition",this,3)([om(Sm,this,Nm).call(this)])}},{key:"getBaseTranslation",value:function(){return[0,0]}},{key:"getRect",value:function(t,r){return Kg(e,"getRect",this,3)([t,r,om(Sm,this,Nm).call(this)])}},{key:"onceAdded",value:function(){this.annotationElementId||this.parent.addUndoableEditor(this),this.div.focus()}},{key:"remove",value:function(){om(Sm,this,jm).call(this),this._reportTelemetry({action:"deleted"}),Kg(e,"remove",this,3)([])}},{key:"rebuild",value:function(){this.parent&&(Kg(e,"rebuild",this,3)([]),null!==this.div&&(om(Sm,this,Im).call(this),this.isAttachedToDOM||this.parent.add(this)))}},{key:"setParent",value:function(t){var r=!1;if(this.parent&&!t)om(Sm,this,jm).call(this);else if(t){var n;om(Sm,this,Im).call(this,t),r=!this.parent&&(null===(n=this.div)||void 0===n?void 0:n.classList.contains("selectedEditor"))}Kg(e,"setParent",this,3)([t]),this.show(this._isVisible),r&&this.select()}},{key:"rotate",value:function(t){var r,n=this.parent.drawLayer;im(bm,this)?(t=(t-this.rotation+360)%360,r=Rm.call(e,im(gm,this).box,t)):r=Rm.call(e,this,t),n.rotate(im(mm,this),t),n.rotate(im(xm,this),t),n.updateBox(im(mm,this),r),n.updateBox(im(xm,this),Rm.call(e,im(dm,this).box,t))}},{key:"render",value:function(){if(this.div)return this.div;var t=Kg(e,"render",this,3)([]);im(Am,this)&&(t.setAttribute("aria-label",im(Am,this)),t.setAttribute("role","mark")),im(bm,this)?t.classList.add("free"):this.div.addEventListener("keydown",om(Sm,this,Fm).bind(this),{signal:this._uiManager._signal});var r=am(ym,this,document.createElement("div"));t.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",r.style.clipPath=im(hm,this);var n=Ng(this.parentDimensions,2),i=n[0],a=n[1];return this.setDims(this.width*i,this.height*a),Br(this,im(ym,this),["pointerover","pointerleave"]),this.enableEditing(),t}},{key:"pointerover",value:function(){this.isSelected||this.parent.drawLayer.addClass(im(xm,this),"hovered")}},{key:"pointerleave",value:function(){this.isSelected||this.parent.drawLayer.removeClass(im(xm,this),"hovered")}},{key:"_moveCaret",value:function(t){switch(this.parent.unselect(this),t){case 0:case 2:om(Sm,this,Dm).call(this,!0);break;case 1:case 3:om(Sm,this,Dm).call(this,!1)}}},{key:"select",value:function(){var t,r;Kg(e,"select",this,3)([]),im(xm,this)&&(null===(t=this.parent)||void 0===t||t.drawLayer.removeClass(im(xm,this),"hovered"),null===(r=this.parent)||void 0===r||r.drawLayer.addClass(im(xm,this),"selected"))}},{key:"unselect",value:function(){var t;Kg(e,"unselect",this,3)([]),im(xm,this)&&(null===(t=this.parent)||void 0===t||t.drawLayer.removeClass(im(xm,this),"selected"),im(bm,this)||om(Sm,this,Dm).call(this,!1))}},{key:"_mustFixPosition",get:function(){return!im(bm,this)}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;Kg(e,"show",this,3)([t]),this.parent&&(this.parent.drawLayer.show(im(mm,this),t),this.parent.drawLayer.show(im(xm,this),t))}},{key:"serialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();var e=this.getRect(0,0),r=Wa._colorManager.convert(this.color),n={annotationType:A.HIGHLIGHT,color:r,opacity:im(km,this),thickness:im(_m,this),quadPoints:om(Sm,this,Wm).call(this),outlines:om(Sm,this,Bm).call(this,e),pageIndex:this.pageIndex,rect:e,rotation:om(Sm,this,Nm).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!om(Sm,this,Um).call(this,n)?null:(n.id=this.annotationElementId,n)}},{key:"renderAnnotationElement",value:function(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}],[{key:"_keyboardManager",get:function(){var t=e.prototype;return W(this,"_keyboardManager",new rn([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}},{key:"computeTelemetryFinalData",value:function(t){return{numberOfColors:t.get("color").size}}},{key:"initialize",value:function(t,r){var n;Wa.initialize(t,r),e._defaultColor||(e._defaultColor=(null===(n=r.highlightColors)||void 0===n?void 0:n.values().next().value)||"#fff066")}},{key:"updateDefaultParams",value:function(t,r){switch(t){case _.HIGHLIGHT_DEFAULT_COLOR:e._defaultColor=r;break;case _.HIGHLIGHT_THICKNESS:e._defaultThickness=r}}},{key:"defaultPropertiesToUpdate",get:function(){return[[_.HIGHLIGHT_DEFAULT_COLOR,e._defaultColor],[_.HIGHLIGHT_THICKNESS,e._defaultThickness]]}},{key:"startHighlighting",value:function(t,r,n){var i=this,a=n.target,o=n.x,s=n.y,u=a.getBoundingClientRect(),c=u.x,l=u.y,h=u.width,f=u.height,d=new AbortController,v=t.combinedSignal(d),p=function(r){d.abort(),om(e,i,Hm).call(i,t,r)};window.addEventListener("blur",p,{signal:v}),window.addEventListener("pointerup",p,{signal:v}),window.addEventListener("pointerdown",(function(t){t.preventDefault(),t.stopPropagation()}),{capture:!0,passive:!1,signal:v}),window.addEventListener("contextmenu",Te,{signal:v}),a.addEventListener("pointermove",om(e,this,Gm).bind(this,t),{signal:v}),this._freeHighlight=new Gy({x:o,y:s},[c,l,h,f],t.scale,this._defaultThickness/2,r,.001);var y=t.drawLayer.highlight(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0);this._freeHighlightId=y.id,this._freeHighlightClipId=y.clipPathId}},{key:"deserialize",value:(r=Ug(Gg().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m,b,w,k,x,_,E,S,O,T,P,L,M,C,j,I,R,F,D,N,W,B,G,H,U,z,V,q,Y,X;return Gg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=null,r instanceof Hv?(s=(o=r).data,u=s.quadPoints,c=s.rect,l=s.rotation,h=s.id,f=s.color,d=s.opacity,v=s.popupRef,p=o.parent.page.pageNumber,a=r={annotationType:A.HIGHLIGHT,color:Array.from(f),opacity:d,quadPoints:u,boxes:null,pageIndex:p-1,rect:c.slice(0),rotation:l,id:h,deleted:!1,popupRef:v}):r instanceof Gv&&(g=(y=r).data,m=g.inkLists,b=g.rect,w=g.rotation,k=g.id,x=g.color,_=g.borderStyle.rawWidth,E=g.popupRef,S=y.parent.page.pageNumber,a=r={annotationType:A.HIGHLIGHT,color:Array.from(x),thickness:_,inkLists:m,boxes:null,pageIndex:S-1,rect:b.slice(0),rotation:w,id:k,deleted:!1,popupRef:E}),T=(O=r).color,P=O.quadPoints,L=O.inkLists,M=O.opacity,t.next=5,Kg(e,"deserialize",this,2)([r,n,i]);case 5:if((C=t.sent).color=Z.makeHexColor.apply(Z,Dg(T)),am(km,C,M||1),L&&am(_m,C,r.thickness),C.annotationElementId=r.id||null,C._initialData=a,j=Ng(C.pageDimensions,2),I=j[0],R=j[1],F=Ng(C.pageTranslation,2),D=F[0],N=F[1],P){for(W=am(lm,C,[]),B=0;B<P.length;B+=8)W.push({x:(P[B]-D)/I,y:1-(P[B+1]-N)/R,width:(P[B+2]-P[B])/I,height:(P[B+1]-P[B+5])/R});om(Sm,C,Tm).call(C),om(Sm,C,Im).call(C),C.rotate(C.rotation)}else if(L){for(am(bm,C,!0),G=L[0],H={x:G[0]-D,y:R-(G[1]-N)},U=new Gy(H,[0,0,I,R],1,im(_m,C)/2,!0,.001),z=0,V=G.length;z<V;z+=2)H.x=G[z]-D,H.y=R-(G[z+1]-N),U.add(H);q=n.drawLayer.highlight(U,C.color,C._defaultOpacity,!0),Y=q.id,X=q.clipPathId,om(Sm,C,Pm).call(C,{highlightOutlines:U.getOutlines(),highlightId:Y,clipPathId:X}),om(Sm,C,Im).call(C)}return t.abrupt("return",C);case 15:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"canCreateNewEmptyEditor",value:function(){return!1}}]);var r,n}();function Tm(){var t=new gy(im(lm,this),.001);am(gm,this,t.getOutlines());var e=im(gm,this).box;this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height;var r=new gy(im(lm,this),.0025,.001,"ltr"===this._uiManager.direction);am(dm,this,r.getOutlines());var n=im(dm,this).box.lastPoint;am(wm,this,[(n[0]-this.x)/this.width,(n[1]-this.y)/this.height])}function Pm(t){var e=t.highlightOutlines,r=t.highlightId,n=t.clipPathId;if(am(gm,this,e),am(dm,this,e.getNewOutline(im(_m,this)/2+1.5,.0025)),r>=0)am(mm,this,r),am(hm,this,n),this.parent.drawLayer.finalizeLine(r,e),am(xm,this,this.parent.drawLayer.highlightOutline(im(dm,this)));else if(this.parent){var i=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(im(mm,this),e),this.parent.drawLayer.updateBox(im(mm,this),Rm.call(Rg,im(gm,this).box,(i-this.rotation+360)%360)),this.parent.drawLayer.updateLine(im(xm,this),im(dm,this)),this.parent.drawLayer.updateBox(im(xm,this),Rm.call(Rg,im(dm,this).box,i))}var a=e.box,o=a.x,s=a.y,u=a.width,c=a.height;switch(this.rotation){case 0:this.x=o,this.y=s,this.width=u,this.height=c;break;case 90:var l=Ng(this.parentDimensions,2),h=l[0],f=l[1];this.x=s,this.y=1-o,this.width=u*f/h,this.height=c*h/f;break;case 180:this.x=1-o,this.y=1-s,this.width=u,this.height=c;break;case 270:var d=Ng(this.parentDimensions,2),v=d[0],p=d[1];this.x=1-s,this.y=o,this.width=u*p/v,this.height=c*v/p}var y=im(dm,this).box.lastPoint;am(wm,this,[(y[0]-o)/u,(y[1]-s)/c])}function Lm(t){var e=this,r=function(t,r){var n,i,a;e.color=t,null===(n=e.parent)||void 0===n||n.drawLayer.changeColor(im(mm,e),t),null===(i=im(fm,e))||void 0===i||i.updateColor(t),am(km,e,r),null===(a=e.parent)||void 0===a||a.drawLayer.changeOpacity(im(mm,e),r)},n=this.color,i=im(km,this);this.addCommands({cmd:r.bind(this,t,Rg._defaultOpacity),undo:r.bind(this,n,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(t)},!0)}function Mm(t){var e=this,r=im(_m,this),n=function(t){am(_m,e,t),om(Sm,e,Cm).call(e,t)};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)}function Cm(t){if(im(bm,this)){om(Sm,this,Pm).call(this,{highlightOutlines:im(gm,this).getNewOutline(t/2)}),this.fixAndSetPosition();var e=Ng(this.parentDimensions,2),r=e[0],n=e[1];this.setDims(this.width*r,this.height*n)}}function jm(){null!==im(mm,this)&&this.parent&&(this.parent.drawLayer.remove(im(mm,this)),am(mm,this,null),this.parent.drawLayer.remove(im(xm,this)),am(xm,this,null))}function Im(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;if(null===im(mm,this)){var e=t.drawLayer.highlight(im(gm,this),this.color,im(km,this));nm(am,[mm,this])._=e.id,nm(am,[hm,this])._=e.clipPathId,am(xm,this,t.drawLayer.highlightOutline(im(dm,this))),im(ym,this)&&(im(ym,this).style.clipPath=im(hm,this))}}function Rm(t,e){var r=t.x,n=t.y,i=t.width,a=t.height;switch(e){case 90:return{x:1-n-a,y:r,width:a,height:i};case 180:return{x:1-r-i,y:1-n-a,width:i,height:a};case 270:return{x:n,y:1-r-i,width:a,height:i}}return{x:r,y:n,width:i,height:a}}function Fm(t){Rg._keyboardManager.exec(this,t)}function Dm(t){if(im(um,this)){var e=window.getSelection();t?e.setPosition(im(um,this),im(cm,this)):e.setPosition(im(vm,this),im(pm,this))}}function Nm(){return im(bm,this)?this.rotation:0}function Wm(){if(im(bm,this))return null;var t,e=Ng(this.pageDimensions,2),r=e[0],n=e[1],i=Ng(this.pageTranslation,2),a=i[0],o=i[1],s=im(lm,this),u=new Float32Array(8*s.length),c=0,l=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Wg(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(s);try{for(l.s();!(t=l.n()).done;){var h=t.value,f=h.x,d=h.y,v=h.width,p=h.height,y=f*r+a,g=(1-d-p)*n+o;u[c]=u[c+4]=y,u[c+1]=u[c+3]=g,u[c+2]=u[c+6]=y+v*r,u[c+5]=u[c+7]=g+p*n,c+=8}}catch(t){l.e(t)}finally{l.f()}return u}function Bm(t){return im(gm,this).serialize(t,om(Sm,this,Nm).call(this))}function Gm(t,e){this._freeHighlight.add(e)&&t.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)}function Hm(t,e){this._freeHighlight.isEmpty()?t.drawLayer.removeFreeHighlight(this._freeHighlightId):t.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}function Um(t){var e=this._initialData.color;return t.color.some((function(t,r){return t!==e[r]}))}function zm(){zm=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vm(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Km(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function qm(t){return function(t){if(Array.isArray(t))return Qm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Km(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ym(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Xm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Km(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Km(t,e){if(t){if("string"==typeof t)return Qm(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qm(t,e):void 0}}function Qm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Jm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jm(Object(r),!0).forEach((function(e){ob(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sb(n.key),n)}}function tb(t,e,r){return e=ib(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,eb()?Reflect.construct(e,r||[],ib(t).constructor):e.apply(t,r))}function eb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(eb=function(){return!!t})()}function rb(t,e,r,n){var i=nb(ib(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function nb(){return nb="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=ib(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},nb.apply(null,arguments)}function ib(t){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ib(t)}function ab(t,e){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ab(t,e)}function ob(t,e,r){return(e=sb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sb(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function ub(t,e,r){cb(t,e),e.set(t,r)}function cb(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function lb(t,e,r){return t.set(fb(t,e),r),r}function hb(t,e){return t.get(fb(t,e))}function fb(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}Rg=Om,Zg(Om,"_defaultColor",null),Zg(Om,"_defaultOpacity",1),Zg(Om,"_defaultThickness",12),Zg(Om,"_type","highlight"),Zg(Om,"_editorType",A.HIGHLIGHT),Zg(Om,"_freeHighlightId",-1),Zg(Om,"_freeHighlight",null),Zg(Om,"_freeHighlightClipId","");var db,vb=new WeakMap,pb=new WeakMap,yb=new WeakMap,gb=new WeakMap,mb=new WeakMap,bb=new WeakMap,wb=new WeakMap,kb=new WeakMap,xb=new WeakMap,Ab=new WeakMap,_b=new WeakMap,Eb=new WeakMap,Sb=new WeakMap,Ob=new WeakSet,Tb=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){cb(t,e),e.add(t)}(r=tb(this,e,[$m($m({},t),{},{name:"inkEditor"})]),Ob),ub(r,vb,0),ub(r,pb,0),ub(r,yb,null),ub(r,gb,new Path2D),ub(r,mb,!1),ub(r,bb,null),ub(r,wb,!1),ub(r,kb,!1),ub(r,xb,null),ub(r,Ab,null),ub(r,_b,0),ub(r,Eb,0),ub(r,Sb,null),r.color=t.color||null,r.thickness=t.thickness||null,r.opacity=t.opacity||null,r.paths=[],r.bezierPath2D=[],r.allRawPaths=[],r.currentPath=[],r.scaleFactor=1,r.translationX=r.translationY=0,r.x=0,r.y=0,r._willKeepAspectRatio=!0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ab(t,e)}(e,Wa),function(t,e,r){return e&&Zm(t.prototype,e),r&&Zm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"updateParams",value:function(t,e){switch(t){case _.INK_THICKNESS:fb(Ob,this,Pb).call(this,e);break;case _.INK_COLOR:fb(Ob,this,Lb).call(this,e);break;case _.INK_OPACITY:fb(Ob,this,Mb).call(this,e)}}},{key:"propertiesToUpdate",get:function(){var t;return[[_.INK_THICKNESS,this.thickness||e._defaultThickness],[_.INK_COLOR,this.color||e._defaultColor||Wa._defaultLineColor],[_.INK_OPACITY,Math.round(100*(null!==(t=this.opacity)&&void 0!==t?t:e._defaultOpacity))]]}},{key:"rebuild",value:function(){this.parent&&(rb(e,"rebuild",this,3)([]),null!==this.div&&(this.canvas||(fb(Ob,this,Vb).call(this),fb(Ob,this,qb).call(this)),this.isAttachedToDOM||(this.parent.add(this),fb(Ob,this,Yb).call(this)),fb(Ob,this,rw).call(this)))}},{key:"remove",value:function(){var t;null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,hb(yb,this)&&(clearTimeout(hb(yb,this)),lb(yb,this,null)),null===(t=hb(xb,this))||void 0===t||t.disconnect(),lb(xb,this,null),rb(e,"remove",this,3)([]))}},{key:"setParent",value:function(t){!this.parent&&t?this._uiManager.removeShouldRescale(this):this.parent&&null===t&&this._uiManager.addShouldRescale(this),rb(e,"setParent",this,3)([t])}},{key:"onScaleChanging",value:function(){var t=Xm(this.parentDimensions,2),e=t[0],r=t[1],n=this.width*e,i=this.height*r;this.setDimensions(n,i)}},{key:"enableEditMode",value:function(){hb(mb,this)||null===this.canvas||(rb(e,"enableEditMode",this,3)([]),this._isDraggable=!1,fb(Ob,this,Hb).call(this))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&null!==this.canvas&&(rb(e,"disableEditMode",this,3)([]),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),fb(Ob,this,Ub).call(this))}},{key:"onceAdded",value:function(){this._isDraggable=!this.isEmpty()}},{key:"isEmpty",value:function(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}},{key:"commit",value:function(){hb(mb,this)||(rb(e,"commit",this,3)([]),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),lb(mb,this,!0),this.div.classList.add("disabled"),fb(Ob,this,rw).call(this,!0),this.select(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}},{key:"focusin",value:function(t){this._focusEventsAllowed&&(rb(e,"focusin",this,3)([t]),this.enableEditMode())}},{key:"canvasPointerdown",value:function(t){0===t.button&&this.isInEditMode()&&!hb(mb,this)&&(this.setInForeground(),t.preventDefault(),this.div.contains(document.activeElement)||this.div.focus({preventScroll:!0}),fb(Ob,this,Ib).call(this,t.offsetX,t.offsetY))}},{key:"canvasPointermove",value:function(t){t.preventDefault(),fb(Ob,this,Rb).call(this,t.offsetX,t.offsetY)}},{key:"canvasPointerup",value:function(t){t.preventDefault(),fb(Ob,this,zb).call(this,t)}},{key:"canvasPointerleave",value:function(t){fb(Ob,this,zb).call(this,t)}},{key:"isResizable",get:function(){return!this.isEmpty()&&hb(mb,this)}},{key:"render",value:function(){if(this.div)return this.div;var t,r;this.width&&(t=this.x,r=this.y),rb(e,"render",this,3)([]),this.div.setAttribute("data-l10n-id","pdfjs-ink");var n=Xm(fb(Ob,this,Cb).call(this),4),i=n[0],a=n[1],o=n[2],s=n[3];if(this.setAt(i,a,0,0),this.setDims(o,s),fb(Ob,this,Vb).call(this),this.width){var u=Xm(this.parentDimensions,2),c=u[0],l=u[1];this.setAspectRatio(this.width*c,this.height*l),this.setAt(t*c,r*l,this.width*c,this.height*l),lb(kb,this,!0),fb(Ob,this,Yb).call(this),this.setDims(this.width*c,this.height*l),fb(Ob,this,Gb).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return fb(Ob,this,qb).call(this),this.div}},{key:"setDimensions",value:function(t,e){var r=Math.round(t),n=Math.round(e);if(hb(_b,this)!==r||hb(Eb,this)!==n){lb(_b,this,r),lb(Eb,this,n),this.canvas.style.visibility="hidden";var i=Xm(this.parentDimensions,2),a=i[0],o=i[1];this.width=t/a,this.height=e/o,this.fixAndSetPosition(),hb(mb,this)&&fb(Ob,this,Xb).call(this,t,e),fb(Ob,this,Yb).call(this),fb(Ob,this,Gb).call(this),this.canvas.style.visibility="visible",this.fixDims()}}},{key:"serialize",value:function(){if(this.isEmpty())return null;var t=this.getRect(0,0),e=Wa._colorManager.convert(this.ctx.strokeStyle);return{annotationType:A.INK,color:e,thickness:this.thickness,opacity:this.opacity,paths:fb(Ob,this,Zb).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,t),pageIndex:this.pageIndex,rect:t,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}}],[{key:"initialize",value:function(t,e){Wa.initialize(t,e)}},{key:"updateDefaultParams",value:function(t,r){switch(t){case _.INK_THICKNESS:e._defaultThickness=r;break;case _.INK_COLOR:e._defaultColor=r;break;case _.INK_OPACITY:e._defaultOpacity=r/100}}},{key:"defaultPropertiesToUpdate",get:function(){return[[_.INK_THICKNESS,e._defaultThickness],[_.INK_COLOR,e._defaultColor||Wa._defaultLineColor],[_.INK_OPACITY,Math.round(100*e._defaultOpacity)]]}},{key:"deserialize",value:(r=zm().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m,b,w,k,x,A,_,E,S,O,T,P,L,M;return zm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r instanceof Gv)){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,rb(e,"deserialize",this,2)([r,n,i]);case 4:(a=t.sent).thickness=r.thickness,a.color=Z.makeHexColor.apply(Z,qm(r.color)),a.opacity=r.opacity,o=Xm(a.pageDimensions,2),s=o[0],u=o[1],c=a.width*s,l=a.height*u,h=a.parentScale,f=r.thickness/2,lb(mb,a,!0),lb(_b,a,Math.round(c)),lb(Eb,a,Math.round(l)),d=r.paths,v=r.rect,p=r.rotation,y=Vm(d);try{for(y.s();!(g=y.n()).done;){for(m=g.value.bezier,m=$b.call(e,m,v,p),b=[],a.paths.push(b),w=h*(m[0]-f),k=h*(m[1]-f),x=2,A=m.length;x<A;x+=6)_=h*(m[x]-f),E=h*(m[x+1]-f),S=h*(m[x+2]-f),O=h*(m[x+3]-f),T=h*(m[x+4]-f),P=h*(m[x+5]-f),b.push([[w,k],[_,E],[S,O],[T,P]]),w=T,k=P;L=fb(e,this,Qb).call(this,b),a.bezierPath2D.push(L)}}catch(t){y.e(t)}finally{y.f()}return M=fb(Ob,a,tw).call(a),lb(pb,a,Math.max(Wa.MIN_SIZE,M[2]-M[0])),lb(vb,a,Math.max(Wa.MIN_SIZE,M[3]-M[1])),fb(Ob,a,Xb).call(a,c,l),t.abrupt("return",a);case 24:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,e=arguments;return new Promise((function(n,i){var a=r.apply(t,e);function o(t){Ym(a,n,i,o,s,"next",t)}function s(t){Ym(a,n,i,o,s,"throw",t)}o(void 0)}))},function(t,e,r){return n.apply(this,arguments)})}]);var r,n}();function Pb(t){var e=this,r=function(t){e.thickness=t,fb(Ob,e,rw).call(e)},n=this.thickness;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function Lb(t){var e=this,r=function(t){e.color=t,fb(Ob,e,Gb).call(e)},n=this.color;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Mb(t){var e=this,r=function(t){e.opacity=t,fb(Ob,e,Gb).call(e)};t/=100;var n=this.opacity;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function Cb(){var t=this.parentRotation,e=Xm(this.parentDimensions,2),r=e[0],n=e[1];switch(t){case 90:return[0,n,n,r];case 180:return[r,n,r,n];case 270:return[r,0,n,r];default:return[0,0,r,n]}}function jb(){var t=this.ctx,e=this.color,r=this.opacity,n=this.thickness,i=this.parentScale,a=this.scaleFactor;t.lineWidth=n*i/a,t.lineCap="round",t.lineJoin="round",t.miterLimit=10,t.strokeStyle="".concat(e).concat(function(t){return Math.round(Math.min(255,Math.max(1,255*t))).toString(16).padStart(2,"0")}(r))}function Ib(t,e){var r=this;this.canvas.addEventListener("contextmenu",Te,{signal:this._uiManager._signal}),fb(Ob,this,Ub).call(this),lb(bb,this,new AbortController);var n,i=this._uiManager.combinedSignal(hb(bb,this));this.canvas.addEventListener("pointerleave",this.canvasPointerleave.bind(this),{signal:i}),this.canvas.addEventListener("pointermove",this.canvasPointermove.bind(this),{signal:i}),this.canvas.addEventListener("pointerup",this.canvasPointerup.bind(this),{signal:i}),this.isEditing=!0,hb(kb,this)||(lb(kb,this,!0),fb(Ob,this,Yb).call(this),this.thickness||(this.thickness=sm._defaultThickness),this.color||(this.color=sm._defaultColor||Wa._defaultLineColor),null!==(n=this.opacity)&&void 0!==n||(this.opacity=sm._defaultOpacity)),this.currentPath.push([t,e]),lb(wb,this,!1),fb(Ob,this,jb).call(this),lb(Sb,this,(function(){fb(Ob,r,Nb).call(r),hb(Sb,r)&&window.requestAnimationFrame(hb(Sb,r))})),window.requestAnimationFrame(hb(Sb,this))}function Rb(t,e){var r,n=Xm(this.currentPath.at(-1),2),i=n[0],a=n[1];if(!(this.currentPath.length>1&&t===i&&e===a)){var o,s,u=this.currentPath,c=hb(gb,this);if(u.push([t,e]),lb(wb,this,!0),u.length<=2)return(o=c).moveTo.apply(o,qm(u[0])),void c.lineTo(t,e);3===u.length&&(lb(gb,this,c=new Path2D),(s=c).moveTo.apply(s,qm(u[0]))),(r=fb(Ob,this,Wb)).call.apply(r,[this,c].concat(qm(u.at(-3)),qm(u.at(-2)),[t,e]))}}function Fb(){var t;if(0!==this.currentPath.length){var e=this.currentPath.at(-1);(t=hb(gb,this)).lineTo.apply(t,qm(e))}}function Db(t,e){var r,n=this;if(lb(Sb,this,null),t=Math.min(Math.max(t,0),this.canvas.width),e=Math.min(Math.max(e,0),this.canvas.height),fb(Ob,this,Rb).call(this,t,e),fb(Ob,this,Fb).call(this),1!==this.currentPath.length)r=fb(Ob,this,Bb).call(this);else{var i=[t,e];r=[[i,i.slice(),i.slice(),i]]}var a=hb(gb,this),o=this.currentPath;this.currentPath=[],lb(gb,this,new Path2D),this.addCommands({cmd:function(){n.allRawPaths.push(o),n.paths.push(r),n.bezierPath2D.push(a),n._uiManager.rebuild(n)},undo:function(){n.allRawPaths.pop(),n.paths.pop(),n.bezierPath2D.pop(),0===n.paths.length?n.remove():(n.canvas||(fb(Ob,n,Vb).call(n),fb(Ob,n,qb).call(n)),fb(Ob,n,rw).call(n))},mustExec:!0})}function Nb(){if(hb(wb,this)){lb(wb,this,!1);Math.ceil(this.thickness*this.parentScale);var t=this.currentPath.slice(-3),e=t.map((function(t){return t[0]})),r=t.map((function(t){return t[1]})),n=(Math.min.apply(Math,qm(e)),Math.max.apply(Math,qm(e)),Math.min.apply(Math,qm(r)),Math.max.apply(Math,qm(r)),this.ctx);n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height);var i,a=Vm(this.bezierPath2D);try{for(a.s();!(i=a.n()).done;){var o=i.value;n.stroke(o)}}catch(t){a.e(t)}finally{a.f()}n.stroke(hb(gb,this)),n.restore()}}function Wb(t,e,r,n,i,a,o){var s=(e+n)/2,u=(r+i)/2,c=(n+a)/2,l=(i+o)/2;t.bezierCurveTo(s+2*(n-s)/3,u+2*(i-u)/3,c+2*(n-c)/3,l+2*(i-l)/3,c,l)}function Bb(){var t=this.currentPath;if(t.length<=2)return[[t[0],t[0],t.at(-1),t.at(-1)]];var e,r=[],n=Xm(t[0],2),i=n[0],a=n[1];for(e=1;e<t.length-2;e++){var o=Xm(t[e],2),s=o[0],u=o[1],c=Xm(t[e+1],2),l=(s+c[0])/2,h=(u+c[1])/2,f=[i+2*(s-i)/3,a+2*(u-a)/3],d=[l+2*(s-l)/3,h+2*(u-h)/3];r.push([[i,a],f,d,[l,h]]),i=l,a=h}var v=Xm(t[e],2),p=v[0],y=v[1],g=Xm(t[e+1],2),m=g[0],b=g[1],w=[i+2*(p-i)/3,a+2*(y-a)/3],k=[m+2*(p-m)/3,b+2*(y-b)/3];return r.push([[i,a],w,k,[m,b]]),r}function Gb(){if(this.isEmpty())fb(Ob,this,Kb).call(this);else{fb(Ob,this,jb).call(this);var t=this.canvas,e=this.ctx;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),fb(Ob,this,Kb).call(this);var r,n=Vm(this.bezierPath2D);try{for(n.s();!(r=n.n()).done;){var i=r.value;e.stroke(i)}}catch(t){n.e(t)}finally{n.f()}}}function Hb(){if(!hb(Ab,this)){lb(Ab,this,new AbortController);var t=this._uiManager.combinedSignal(hb(Ab,this));this.canvas.addEventListener("pointerdown",this.canvasPointerdown.bind(this),{signal:t})}}function Ub(){var t;null===(t=this.pointerdownAC)||void 0===t||t.abort(),this.pointerdownAC=null}function zb(t){var e,r=this;null===(e=hb(bb,this))||void 0===e||e.abort(),lb(bb,this,null),fb(Ob,this,Hb).call(this),hb(yb,this)&&clearTimeout(hb(yb,this)),lb(yb,this,setTimeout((function(){lb(yb,r,null),r.canvas.removeEventListener("contextmenu",Te)}),10)),fb(Ob,this,Db).call(this,t.offsetX,t.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function Vb(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",this.canvas.setAttribute("data-l10n-id","pdfjs-ink-canvas"),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function qb(){var t=this;lb(xb,this,new ResizeObserver((function(e){var r=e[0].contentRect;r.width&&r.height&&t.setDimensions(r.width,r.height)}))),hb(xb,this).observe(this.div),this._uiManager._signal.addEventListener("abort",(function(){var e;null===(e=hb(xb,t))||void 0===e||e.disconnect(),lb(xb,t,null)}),{once:!0})}function Yb(){if(hb(kb,this)){var t=Xm(this.parentDimensions,2),e=t[0],r=t[1];this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*r),fb(Ob,this,Kb).call(this)}}function Xb(t,e){var r=fb(Ob,this,ew).call(this),n=(t-r)/hb(pb,this),i=(e-r)/hb(vb,this);this.scaleFactor=Math.min(n,i)}function Kb(){var t=fb(Ob,this,ew).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+t,this.translationY*this.scaleFactor+t)}function Qb(t){for(var e=new Path2D,r=0,n=t.length;r<n;r++){var i=Xm(t[r],4),a=i[0],o=i[1],s=i[2],u=i[3];0===r&&e.moveTo.apply(e,qm(a)),e.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}return e}function Jb(t,e,r){var n=Xm(e,4),i=n[0],a=n[1],o=n[2],s=n[3];switch(r){case 0:for(var u=0,c=t.length;u<c;u+=2)t[u]+=i,t[u+1]=s-t[u+1];break;case 90:for(var l=0,h=t.length;l<h;l+=2){var f=t[l];t[l]=t[l+1]+i,t[l+1]=f+a}break;case 180:for(var d=0,v=t.length;d<v;d+=2)t[d]=o-t[d],t[d+1]+=a;break;case 270:for(var p=0,y=t.length;p<y;p+=2){var g=t[p];t[p]=o-t[p+1],t[p+1]=s-g}break;default:throw new Error("Invalid rotation")}return t}function $b(t,e,r){var n=Xm(e,4),i=n[0],a=n[1],o=n[2],s=n[3];switch(r){case 0:for(var u=0,c=t.length;u<c;u+=2)t[u]-=i,t[u+1]=s-t[u+1];break;case 90:for(var l=0,h=t.length;l<h;l+=2){var f=t[l];t[l]=t[l+1]-a,t[l+1]=f-i}break;case 180:for(var d=0,v=t.length;d<v;d+=2)t[d]=o-t[d],t[d+1]-=a;break;case 270:for(var p=0,y=t.length;p<y;p+=2){var g=t[p];t[p]=s-t[p+1],t[p+1]=o-g}break;default:throw new Error("Invalid rotation")}return t}function Zb(t,e,r,n){var i,a=[],o=this.thickness/2,s=t*e+o,u=t*r+o,c=Vm(this.paths);try{for(c.s();!(i=c.n()).done;){for(var l=i.value,h=[],f=[],d=0,v=l.length;d<v;d++){var p=Xm(l[d],4),y=p[0],g=p[1],m=p[2],b=p[3];if(y[0]===b[0]&&y[1]===b[1]&&1===v){var w=t*y[0]+s,k=t*y[1]+u;h.push(w,k),f.push(w,k);break}var x=t*y[0]+s,A=t*y[1]+u,_=t*g[0]+s,E=t*g[1]+u,S=t*m[0]+s,O=t*m[1]+u,T=t*b[0]+s,P=t*b[1]+u;0===d&&(h.push(x,A),f.push(x,A)),h.push(_,E,S,O,T,P),f.push(_,E),d===v-1&&f.push(T,P)}a.push({bezier:Jb.call(sm,h,n,this.rotation),points:Jb.call(sm,f,n,this.rotation)})}}catch(t){c.e(t)}finally{c.f()}return a}function tw(){var t,e=1/0,r=-1/0,n=1/0,i=-1/0,a=Vm(this.paths);try{for(a.s();!(t=a.n()).done;){var o,s=Vm(t.value);try{for(s.s();!(o=s.n()).done;){var u=Xm(o.value,4),c=u[0],l=u[1],h=u[2],f=u[3],d=Z.bezierBoundingBox.apply(Z,qm(c).concat(qm(l),qm(h),qm(f)));e=Math.min(e,d[0]),n=Math.min(n,d[1]),r=Math.max(r,d[2]),i=Math.max(i,d[3])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){a.e(t)}finally{a.f()}return[e,n,r,i]}function ew(){return hb(mb,this)?Math.ceil(this.thickness*this.parentScale):0}function rw(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(hb(mb,this)){var e=fb(Ob,this,tw).call(this),r=fb(Ob,this,ew).call(this);lb(pb,this,Math.max(Wa.MIN_SIZE,e[2]-e[0])),lb(vb,this,Math.max(Wa.MIN_SIZE,e[3]-e[1]));var n=Math.ceil(r+hb(pb,this)*this.scaleFactor),i=Math.ceil(r+hb(vb,this)*this.scaleFactor),a=Xm(this.parentDimensions,2),o=a[0],s=a[1];this.width=n/o,this.height=i/s,this.setAspectRatio(n,i);var u=this.translationX,c=this.translationY;this.translationX=-e[0],this.translationY=-e[1],fb(Ob,this,Yb).call(this),fb(Ob,this,Gb).call(this),lb(_b,this,n),lb(Eb,this,i),this.setDims(n,i);var l=t?r/this.scaleFactor/2:0;this.translate(u-this.translationX-l,c-this.translationY-l)}else fb(Ob,this,Gb).call(this)}function nw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return iw(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?iw(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function aw(){aw=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ow(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function sw(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){ow(a,n,i,o,s,"next",t)}function s(t){ow(a,n,i,o,s,"throw",t)}o(void 0)}))}}function uw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uw(Object(r),!0).forEach((function(e){gw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mw(n.key),n)}}function hw(t,e,r){return e=pw(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(t,fw()?Reflect.construct(e,r||[],pw(t).constructor):e.apply(t,r))}function fw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fw=function(){return!!t})()}function dw(t,e,r,n){var i=vw(pw(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function vw(){return vw="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=pw(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},vw.apply(null,arguments)}function pw(t){return pw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pw(t)}function yw(t,e){return yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yw(t,e)}function gw(t,e,r){return(e=mw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mw(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function bw(t,e,r){ww(t,e),e.set(t,r)}function ww(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kw(t,e){return t.get(Aw(t,e))}function xw(t,e,r){return t.set(Aw(t,e),r),r}function Aw(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}sm=Tb,ob(Tb,"_defaultColor",null),ob(Tb,"_defaultOpacity",1),ob(Tb,"_defaultThickness",1),ob(Tb,"_type","ink"),ob(Tb,"_editorType",A.INK);var _w=new WeakMap,Ew=new WeakMap,Sw=new WeakMap,Ow=new WeakMap,Tw=new WeakMap,Pw=new WeakMap,Lw=new WeakMap,Mw=new WeakMap,Cw=new WeakMap,jw=new WeakMap,Iw=new WeakMap,Rw=new WeakSet,Fw=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){ww(t,e),e.add(t)}(r=hw(this,e,[cw(cw({},t),{},{name:"stampEditor"})]),Rw),bw(r,_w,null),bw(r,Ew,null),bw(r,Sw,null),bw(r,Ow,null),bw(r,Tw,null),bw(r,Pw,""),bw(r,Lw,null),bw(r,Mw,null),bw(r,Cw,null),bw(r,jw,!1),bw(r,Iw,!1),xw(Ow,r,t.bitmapUrl),xw(Tw,r,t.bitmapFile),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yw(t,e)}(e,Wa),function(t,e,r){return e&&lw(t.prototype,e),r&&lw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"altTextFinish",value:function(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),dw(e,"altTextFinish",this,3)([])}},{key:"telemetryFinalData",get:function(){var t;return{type:"stamp",hasAltText:!(null===(t=this.altTextData)||void 0===t||!t.altText)}}},{key:"mlGuessAltText",value:(n=sw(aw().mark((function t(){var e,r,n,i,a,o,s,u,c,l=arguments;return aw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]?l[0]:null,r=!(l.length>1&&void 0!==l[1])||l[1],!this.hasAltTextData()){t.next=4;break}return t.abrupt("return",null);case 4:if(n=this._uiManager.mlManager){t.next=7;break}throw new Error("No ML.");case 7:return t.next=9,n.isEnabledFor("altText");case 9:if(t.sent){t.next=11;break}throw new Error("ML isn\'t enabled for alt text.");case 11:return i=e||this.copyCanvas(null,null,!0).imageData,a=i.data,o=i.width,s=i.height,t.next=14,n.guess({name:"altText",request:{data:a,width:o,height:s,channels:a.length/(o*s)}});case 14:if(u=t.sent){t.next=17;break}throw new Error("No response from the AI service.");case 17:if(!u.error){t.next=19;break}throw new Error("Error from the AI service.");case 19:if(!u.cancel){t.next=21;break}return t.abrupt("return",null);case 21:if(u.output){t.next=23;break}throw new Error("No valid response from the AI service.");case 23:return c=u.output,t.next=26,this.setGuessedAltText(c);case 26:return r&&!this.hasAltTextData()&&(this.altTextData={alt:c,decorative:!1}),t.abrupt("return",c);case 28:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){var t,r;kw(Ew,this)&&(xw(_w,this,null),this._uiManager.imageManager.deleteId(kw(Ew,this)),null===(t=kw(Lw,this))||void 0===t||t.remove(),xw(Lw,this,null),null===(r=kw(Mw,this))||void 0===r||r.disconnect(),xw(Mw,this,null),kw(Cw,this)&&(clearTimeout(kw(Cw,this)),xw(Cw,this,null))),dw(e,"remove",this,3)([])}},{key:"rebuild",value:function(){this.parent?(dw(e,"rebuild",this,3)([]),null!==this.div&&(kw(Ew,this)&&null===kw(Lw,this)&&Aw(Rw,this,Ww).call(this),this.isAttachedToDOM||this.parent.add(this))):kw(Ew,this)&&Aw(Rw,this,Ww).call(this)}},{key:"onceAdded",value:function(){this._isDraggable=!0,this.div.focus()}},{key:"isEmpty",value:function(){return!(kw(Sw,this)||kw(_w,this)||kw(Ow,this)||kw(Tw,this)||kw(Ew,this))}},{key:"isResizable",get:function(){return!0}},{key:"render",value:function(){if(this.div)return this.div;var t,r;if(this.width&&(t=this.x,r=this.y),dw(e,"render",this,3)([]),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),kw(_w,this)?Aw(Rw,this,Bw).call(this):Aw(Rw,this,Ww).call(this),this.width&&!this.annotationElementId){var n=nw(this.parentDimensions,2),i=n[0],a=n[1];this.setAt(t*i,r*a,this.width*i,this.height*a)}return this.div}},{key:"copyCanvas",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t||(t=224);var n=kw(_w,this),i=n.width,a=n.height,o=new Fe,s=kw(_w,this),u=i,c=a,l=null;if(e){var h,f;if(i>e||a>e){var d=Math.min(e/i,e/a);u=Math.floor(i*d),c=Math.floor(a*d)}var v=(l=document.createElement("canvas")).width=Math.ceil(u*o.sx),p=l.height=Math.ceil(c*o.sy);kw(jw,this)||(s=Aw(Rw,this,Hw).call(this,v,p));var y=l.getContext("2d");y.filter=this._uiManager.hcmFilter;var g="white",m="#cfcfd8";"none"!==this._uiManager.hcmFilter?m="black":null!==(h=(f=window).matchMedia)&&void 0!==h&&h.call(f,"(prefers-color-scheme: dark)").matches&&(g="#8f8f9d",m="#42414d");var b=15*o.sx,w=15*o.sy,k=new OffscreenCanvas(2*b,2*w),x=k.getContext("2d");x.fillStyle=g,x.fillRect(0,0,2*b,2*w),x.fillStyle=m,x.fillRect(0,0,b,w),x.fillRect(b,w,b,w),y.fillStyle=y.createPattern(k,"repeat"),y.fillRect(0,0,v,p),y.drawImage(s,0,0,s.width,s.height,0,0,v,p)}var A=null;if(r){var _,E;if(o.symmetric&&s.width<t&&s.height<t)_=s.width,E=s.height;else if(s=kw(_w,this),i>t||a>t){var S=Math.min(t/i,t/a);_=Math.floor(i*S),E=Math.floor(a*S),kw(jw,this)||(s=Aw(Rw,this,Hw).call(this,_,E))}var O=new OffscreenCanvas(_,E).getContext("2d",{willReadFrequently:!0});O.drawImage(s,0,0,s.width,s.height,0,0,_,E),A={width:_,height:E,data:O.getImageData(0,0,_,E).data}}return{canvas:l,width:u,height:c,imageData:A}}},{key:"getImageForAltText",value:function(){return kw(Lw,this)}},{key:"serialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();var r={annotationType:A.STAMP,bitmapId:kw(Ew,this),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:kw(jw,this),structTreeParentId:this._structTreeParentId};if(t)return r.bitmapUrl=Aw(Rw,this,zw).call(this,!0),r.accessibilityData=this.serializeAltText(!0),r;var n=this.serializeAltText(!1),i=n.decorative,a=n.altText;if(!i&&a&&(r.accessibilityData={type:"Figure",alt:a}),this.annotationElementId){var o,s=Aw(Rw,this,qw).call(this,r);if(s.isSame)return null;s.isSameAltText?delete r.accessibilityData:r.accessibilityData.structParent=null!==(o=this._initialData.structParent)&&void 0!==o?o:-1}if(r.id=this.annotationElementId,null===e)return r;e.stamps||(e.stamps=new Map);var u=kw(jw,this)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(e.stamps.has(kw(Ew,this))){if(kw(jw,this)){var c=e.stamps.get(kw(Ew,this));u>c.area&&(c.area=u,c.serialized.bitmap.close(),c.serialized.bitmap=Aw(Rw,this,zw).call(this,!1))}}else e.stamps.set(kw(Ew,this),{area:u,serialized:r}),r.bitmap=Aw(Rw,this,zw).call(this,!1);return r}},{key:"renderAnnotationElement",value:function(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}],[{key:"initialize",value:function(t,e){Wa.initialize(t,e)}},{key:"supportedTypes",get:function(){return W(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((function(t){return"image/".concat(t)})))}},{key:"supportedTypesStr",get:function(){return W(this,"supportedTypesStr",this.supportedTypes.join(","))}},{key:"isHandlingMimeForPasting",value:function(t){return this.supportedTypes.includes(t)}},{key:"paste",value:function(t,e){e.pasteEditor(A.STAMP,{bitmapFile:t.getAsFile()})}},{key:"computeTelemetryFinalData",value:function(t){var e,r,n=t.get("hasAltText");return{hasAltText:null!==(e=n.get(!0))&&void 0!==e?e:0,hasNoAltText:null!==(r=n.get(!1))&&void 0!==r?r:0}}},{key:"deserialize",value:(r=sw(aw().mark((function t(r,n,i){var a,o,s,u,c,l,h,f,d,v,p,y,g,m,b,w,k,x,_,E,S,O,T,P,L;return aw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=null,!(r instanceof qv)){t.next=22;break}return u=(s=r).data,c=u.rect,l=u.rotation,h=u.id,f=u.structParent,d=u.popupRef,v=s.container,p=s.parent.page.pageNumber,y=v.querySelector("canvas"),g=i.imageManager.getFromCanvas(v.id,y),y.remove(),t.next=8,n._structTree.getAriaAttributes("".concat(at).concat(h));case 8:if(t.t2=o=t.sent,t.t1=null===t.t2,t.t1){t.next=12;break}t.t1=void 0===o;case 12:if(!t.t1){t.next=16;break}t.t3=void 0,t.next=17;break;case 16:t.t3=o.get("aria-label");case 17:if(t.t0=t.t3,t.t0){t.next=20;break}t.t0="";case 20:m=t.t0,a=r={annotationType:A.STAMP,bitmapId:g.id,bitmap:g.bitmap,pageIndex:p-1,rect:c.slice(0),rotation:l,id:h,deleted:!1,accessibilityData:{decorative:!1,altText:m},isSvg:!1,structParent:f,popupRef:d};case 22:return t.next=24,dw(e,"deserialize",this,2)([r,n,i]);case 24:return b=t.sent,k=(w=r).rect,x=w.bitmap,_=w.bitmapUrl,E=w.bitmapId,S=w.isSvg,O=w.accessibilityData,E&&i.imageManager.isValidId(E)?(xw(Ew,b,E),x&&xw(_w,b,x)):xw(Ow,b,_),xw(jw,b,S),T=nw(b.pageDimensions,2),P=T[0],L=T[1],b.width=(k[2]-k[0])/P,b.height=(k[3]-k[1])/L,b.annotationElementId=r.id||null,O&&(b.altTextData=O),b._initialData=a,xw(Iw,b,!!a),t.abrupt("return",b);case 36:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})}]);var r,n}();function Dw(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?(xw(_w,this,t.bitmap),e||(xw(Ew,this,t.id),xw(jw,this,t.isSvg)),t.file&&xw(Pw,this,t.file.name),Aw(Rw,this,Bw).call(this)):this.remove()}function Nw(){if(xw(Sw,this,null),this._uiManager.enableWaiting(!1),kw(Lw,this)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&kw(_w,this))return this._editToolbar.hide(),void this._uiManager.editAltText(this,!0);if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&kw(_w,this)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch(t){}}this.div.focus()}}function Ww(){var t=this;if(kw(Ew,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(kw(Ew,this)).then((function(e){return Aw(Rw,t,Dw).call(t,e,!0)})).finally((function(){return Aw(Rw,t,Nw).call(t)}));if(kw(Ow,this)){var e=kw(Ow,this);return xw(Ow,this,null),this._uiManager.enableWaiting(!0),void xw(Sw,this,this._uiManager.imageManager.getFromUrl(e).then((function(e){return Aw(Rw,t,Dw).call(t,e)})).finally((function(){return Aw(Rw,t,Nw).call(t)})))}if(kw(Tw,this)){var r=kw(Tw,this);return xw(Tw,this,null),this._uiManager.enableWaiting(!0),void xw(Sw,this,this._uiManager.imageManager.getFromFile(r).then((function(e){return Aw(Rw,t,Dw).call(t,e)})).finally((function(){return Aw(Rw,t,Nw).call(t)})))}var n=document.createElement("input");n.type="file",n.accept=db.supportedTypesStr;var i=this._uiManager._signal;xw(Sw,this,new Promise((function(e){n.addEventListener("change",sw(aw().mark((function r(){var i;return aw().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.files&&0!==n.files.length){r.next=4;break}t.remove(),r.next=10;break;case 4:return t._uiManager.enableWaiting(!0),r.next=7,t._uiManager.imageManager.getFromFile(n.files[0]);case 7:i=r.sent,t._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:t._uiManager.useNewAltTextFlow}}),Aw(Rw,t,Dw).call(t,i);case 10:e();case 11:case"end":return r.stop()}}),r)}))),{signal:i}),n.addEventListener("cancel",(function(){t.remove(),e()}),{signal:i})})).finally((function(){return Aw(Rw,t,Nw).call(t)}))),n.click()}function Bw(){var t=this.div,e=kw(_w,this),r=e.width,n=e.height,i=nw(this.pageDimensions,2),a=i[0],o=i[1],s=.75;if(this.width)r=this.width*a,n=this.height*o;else if(r>s*a||n>s*o){var u=Math.min(s*a/r,s*o/n);r*=u,n*=u}var c=nw(this.parentDimensions,2),l=c[0],h=c[1];this.setDims(r*l/a,n*h/o),this._uiManager.enableWaiting(!1);var f=xw(Lw,this,document.createElement("canvas"));f.setAttribute("role","img"),this.addContainer(f),this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(t.hidden=!1),Aw(Rw,this,Uw).call(this,r,n),Aw(Rw,this,Vw).call(this),kw(Iw,this)||(this.parent.addUndoableEditor(this),xw(Iw,this,!0)),this._reportTelemetry({action:"inserted_image"}),kw(Pw,this)&&f.setAttribute("aria-label",kw(Pw,this))}function Gw(t,e){var r,n=this,i=nw(this.parentDimensions,2),a=i[0],o=i[1];this.width=t/a,this.height=e/o,null!==(r=this._initialOptions)&&void 0!==r&&r.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==kw(Cw,this)&&clearTimeout(kw(Cw,this)),xw(Cw,this,setTimeout((function(){xw(Cw,n,null),Aw(Rw,n,Uw).call(n,t,e)}),200))}function Hw(t,e){for(var r=kw(_w,this),n=r.width,i=r.height,a=kw(_w,this);n>2*t||i>2*e;){var o=n,s=i;n>2*t&&(n=n>=16384?Math.floor(n/2)-1:Math.ceil(n/2)),i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));var u=new OffscreenCanvas(n,i);u.getContext("2d").drawImage(a,0,0,o,s,0,0,n,i),a=u.transferToImageBitmap()}return a}function Uw(t,e){var r=new Fe,n=Math.ceil(t*r.sx),i=Math.ceil(e*r.sy),a=kw(Lw,this);if(a&&(a.width!==n||a.height!==i)){a.width=n,a.height=i;var o=kw(jw,this)?kw(_w,this):Aw(Rw,this,Hw).call(this,n,i),s=a.getContext("2d");s.filter=this._uiManager.hcmFilter,s.drawImage(o,0,0,o.width,o.height,0,0,n,i)}}function zw(t){if(t){if(kw(jw,this)){var e=this._uiManager.imageManager.getSvgUrl(kw(Ew,this));if(e)return e}var r=document.createElement("canvas"),n=kw(_w,this);return r.width=n.width,r.height=n.height,r.getContext("2d").drawImage(kw(_w,this),0,0),r.toDataURL()}if(kw(jw,this)){var i=nw(this.pageDimensions,2),a=i[0],o=i[1],s=Math.round(this.width*a*Vt.PDF_TO_CSS_UNITS),u=Math.round(this.height*o*Vt.PDF_TO_CSS_UNITS),c=new OffscreenCanvas(s,u);return c.getContext("2d").drawImage(kw(_w,this),0,0,kw(_w,this).width,kw(_w,this).height,0,0,s,u),c.transferToImageBitmap()}return structuredClone(kw(_w,this))}function Vw(){var t=this;this._uiManager._signal&&(xw(Mw,this,new ResizeObserver((function(e){var r=e[0].contentRect;r.width&&r.height&&Aw(Rw,t,Gw).call(t,r.width,r.height)}))),kw(Mw,this).observe(this.div),this._uiManager._signal.addEventListener("abort",(function(){var e;null===(e=kw(Mw,t))||void 0===e||e.disconnect(),xw(Mw,t,null)}),{once:!0}))}function qw(t){var e,r=this._initialData,n=r.rect,i=r.pageIndex,a=r.accessibilityData.altText,o=t.rect.every((function(t,e){return Math.abs(t-n[e])<1})),s=t.pageIndex===i,u=((null===(e=t.accessibilityData)||void 0===e?void 0:e.alt)||"")===a;return{isSame:o&&s&&u,isSameAltText:u}}function Yw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yw(Object(r),!0).forEach((function(e){rk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kw(){Kw=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),s=new L(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",v="executing",p="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(M([])));x&&x!==r&&n.call(x,o)&&(w=x);var A=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,a,o,s){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=f;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var c=h(e,r,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=c(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},e.awrap=function(t){return{__await:t}},_(E.prototype),c(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new E(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(A),c(A,u,"Generator"),c(A,o,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Qw(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function Jw(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){Qw(a,n,i,o,s,"next",t)}function s(t){Qw(a,n,i,o,s,"throw",t)}o(void 0)}))}}function $w(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Zw(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Zw(t,e){if(t){if("string"==typeof t)return tk(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tk(t,e):void 0}}function tk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ek(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nk(n.key),n)}}function rk(t,e,r){return(e=nk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nk(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function ik(t,e,r){ak(t,e),e.set(t,r)}function ak(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ok(t,e,r){return r(ck(t,e))}function sk(t,e){return t.get(ck(t,e))}function uk(t,e,r){return t.set(ck(t,e),r),r}function ck(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}db=Fw,gw(Fw,"_type","stamp"),gw(Fw,"_editorType",A.STAMP);var lk=new WeakMap,hk=new WeakMap,fk=new WeakMap,dk=new WeakMap,vk=new WeakMap,pk=new WeakMap,yk=new WeakMap,gk=new WeakMap,mk=new WeakMap,bk=new WeakMap,wk=new WeakMap,kk=new WeakMap,xk=new WeakSet,Ak=function(){return function(t,e,r){return e&&ek(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var r=e.uiManager,n=e.pageIndex,i=e.div,a=e.structTreeLayer,o=e.accessibilityManager,s=e.annotationLayer,u=e.drawLayer,c=e.textLayer,l=e.viewport,h=e.l10n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){ak(t,e),e.add(t)}(this,xk),ik(this,lk,void 0),ik(this,hk,!1),ik(this,fk,null),ik(this,dk,null),ik(this,vk,null),ik(this,pk,new Map),ik(this,yk,!1),ik(this,gk,!1),ik(this,mk,!1),ik(this,bk,null),ik(this,wk,null),ik(this,kk,void 0);var f=function(t){return function(t){if(Array.isArray(t))return tk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Zw(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Lk._.values());if(!t._initialized){t._initialized=!0;var d,v=$w(f);try{for(v.s();!(d=v.n()).done;)d.value.initialize(h,r)}catch(t){v.e(t)}finally{v.f()}}r.registerEditorTypes(f),uk(kk,this,r),this.pageIndex=n,this.div=i,uk(lk,this,o),uk(fk,this,s),this.viewport=l,uk(bk,this,c),this.drawLayer=u,this._structTree=a,sk(kk,this).addLayer(this)}),[{key:"isEmpty",get:function(){return 0===sk(pk,this).size}},{key:"isInvisible",get:function(){return this.isEmpty&&sk(kk,this).getMode()===A.NONE}},{key:"updateToolbar",value:function(t){sk(kk,this).updateToolbar(t)}},{key:"updateMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sk(kk,this).getMode();switch(ck(xk,this,Tk).call(this),t){case A.NONE:return this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),void this.disableClick();case A.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case A.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);var e,r=this.div.classList,n=$w(Lk._.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;r.toggle("".concat(i._type,"Editing"),t===i._editorType)}}catch(t){n.e(t)}finally{n.f()}this.div.hidden=!1}},{key:"hasTextLayer",value:function(t){var e;return t===(null===(e=sk(bk,this))||void 0===e?void 0:e.div)}},{key:"addInkEditorIfNeeded",value:function(t){if(sk(kk,this).getMode()===A.INK){if(!t){var e,r=$w(sk(pk,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.isEmpty())return void n.setInBackground()}}catch(t){r.e(t)}finally{r.f()}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}}},{key:"setEditingState",value:function(t){sk(kk,this).setEditingState(t)}},{key:"addCommands",value:function(t){sk(kk,this).addCommands(t)}},{key:"toggleDrawing",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("drawing",!t)}},{key:"togglePointerEvents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("disabled",!t)}},{key:"toggleAnnotationLayerPointerEvents",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(t=sk(fk,this))||void 0===t||t.div.classList.toggle("disabled",!e)}},{key:"enable",value:(e=Jw(Kw().mark((function t(){var e,r,n,i,a,o,s,u,c;return Kw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.div.tabIndex=0,this.togglePointerEvents(!0),e=new Set,r=$w(sk(pk,this).values());try{for(r.s();!(n=r.n()).done;)(i=n.value).enableEditing(),i.show(!0),i.annotationElementId&&(sk(kk,this).removeChangedExistingAnnotation(i),e.add(i.annotationElementId))}catch(t){r.e(t)}finally{r.f()}if(sk(fk,this)){t.next=7;break}return t.abrupt("return");case 7:a=sk(fk,this).getEditableAnnotations(),o=$w(a),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=27;break}if((u=s.value).hide(),!sk(kk,this).isDeletedAnnotationElement(u.data.id)){t.next=16;break}return t.abrupt("continue",25);case 16:if(!e.has(u.data.id)){t.next=18;break}return t.abrupt("continue",25);case 18:return t.next=20,this.deserialize(u);case 20:if(c=t.sent){t.next=23;break}return t.abrupt("continue",25);case 23:this.addOrRebuild(c),c.enableEditing();case 25:t.next=11;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(9),o.e(t.t0);case 32:return t.prev=32,o.f(),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[9,29,32,35]])}))),function(){return e.apply(this,arguments)})},{key:"disable",value:function(){uk(mk,this,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);var t,e=new Map,r=new Map,n=$w(sk(pk,this).values());try{for(n.s();!(t=n.n()).done;){var i,a=t.value;a.disableEditing(),a.annotationElementId&&(null===a.serialize()?(r.set(a.annotationElementId,a),null===(i=this.getEditableAnnotation(a.annotationElementId))||void 0===i||i.show(),a.remove()):e.set(a.annotationElementId,a))}}catch(t){n.e(t)}finally{n.f()}if(sk(fk,this)){var o,s=$w(sk(fk,this).getEditableAnnotations());try{for(s.s();!(o=s.n()).done;){var u=o.value,c=u.data.id;if(!sk(kk,this).isDeletedAnnotationElement(c)){var l=r.get(c);l?(l.resetAnnotationElement(u),l.show(!1),u.show()):((l=e.get(c))&&(sk(kk,this).addChangedExistingAnnotation(l),l.renderAnnotationElement(u)&&l.show(!1)),u.show())}}}catch(t){s.e(t)}finally{s.f()}}ck(xk,this,Tk).call(this),this.isEmpty&&(this.div.hidden=!0);var h,f=this.div.classList,d=$w(Lk._.values());try{for(d.s();!(h=d.n()).done;){var v=h.value;f.remove("".concat(v._type,"Editing"))}}catch(t){d.e(t)}finally{d.f()}this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),uk(mk,this,!1)}},{key:"getEditableAnnotation",value:function(t){var e;return(null===(e=sk(fk,this))||void 0===e?void 0:e.getEditableAnnotation(t))||null}},{key:"setActiveEditor",value:function(t){sk(kk,this).getActive()!==t&&sk(kk,this).setActiveEditor(t)}},{key:"enableTextSelection",value:function(){var t;if(this.div.tabIndex=-1,null!==(t=sk(bk,this))&&void 0!==t&&t.div&&!sk(wk,this)){uk(wk,this,new AbortController);var e=sk(kk,this).combinedSignal(sk(wk,this));sk(bk,this).div.addEventListener("pointerdown",ck(xk,this,_k).bind(this),{signal:e}),sk(bk,this).div.classList.add("highlighting")}}},{key:"disableTextSelection",value:function(){var t;this.div.tabIndex=0,null!==(t=sk(bk,this))&&void 0!==t&&t.div&&sk(wk,this)&&(sk(wk,this).abort(),uk(wk,this,null),sk(bk,this).div.classList.remove("highlighting"))}},{key:"enableClick",value:function(){if(!sk(dk,this)){uk(dk,this,new AbortController);var t=sk(kk,this).combinedSignal(sk(dk,this));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:t}),this.div.addEventListener("pointerup",this.pointerup.bind(this),{signal:t})}}},{key:"disableClick",value:function(){var t;null===(t=sk(dk,this))||void 0===t||t.abort(),uk(dk,this,null)}},{key:"attach",value:function(t){sk(pk,this).set(t.id,t);var e=t.annotationElementId;e&&sk(kk,this).isDeletedAnnotationElement(e)&&sk(kk,this).removeDeletedAnnotationElement(t)}},{key:"detach",value:function(t){var e;sk(pk,this).delete(t.id),null===(e=sk(lk,this))||void 0===e||e.removePointerInTextLayer(t.contentDiv),!sk(mk,this)&&t.annotationElementId&&sk(kk,this).addDeletedAnnotationElement(t)}},{key:"remove",value:function(t){this.detach(t),sk(kk,this).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1,sk(gk,this)||this.addInkEditorIfNeeded(!1)}},{key:"changeParent",value:function(t){var e;t.parent!==this&&(t.parent&&t.annotationElementId&&(sk(kk,this).addDeletedAnnotationElement(t.annotationElementId),Wa.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),null===(e=t.parent)||void 0===e||e.detach(t),t.setParent(this),t.div&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div)))}},{key:"add",value:function(t){if(t.parent!==this||!t.isAttachedToDOM){if(this.changeParent(t),sk(kk,this).addEditor(t),this.attach(t),!t.isAttachedToDOM){var e=t.render();this.div.append(e),t.isAttachedToDOM=!0}t.fixAndSetPosition(),t.onceAdded(),sk(kk,this).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}},{key:"moveEditorInDOM",value:function(t){var e,r=this;if(t.isAttachedToDOM){var n=document.activeElement;t.div.contains(n)&&!sk(vk,this)&&(t._focusEventsAllowed=!1,uk(vk,this,setTimeout((function(){uk(vk,r,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",(function(){t._focusEventsAllowed=!0}),{once:!0,signal:sk(kk,r)._signal}),n.focus())}),0))),t._structTreeParentId=null===(e=sk(lk,this))||void 0===e?void 0:e.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}}},{key:"addOrRebuild",value:function(t){t.needsToBeRebuilt()?(t.parent||(t.parent=this),t.rebuild(),t.show()):this.add(t)}},{key:"addUndoableEditor",value:function(t){this.addCommands({cmd:function(){return t._uiManager.rebuild(t)},undo:function(){t.remove()},mustExec:!1})}},{key:"getNextId",value:function(){return sk(kk,this).getId()}},{key:"combinedSignal",value:function(t){return sk(kk,this).combinedSignal(t)}},{key:"canCreateNewEmptyEditor",value:function(){var t;return null===(t=ok(xk,this,Ek))||void 0===t?void 0:t.canCreateNewEmptyEditor()}},{key:"pasteEditor",value:function(t,e){sk(kk,this).updateToolbar(t),sk(kk,this).updateMode(t);var r=ck(xk,this,Ok).call(this),n=r.offsetX,i=r.offsetY,a=this.getNextId(),o=ck(xk,this,Sk).call(this,Xw({parent:this,id:a,x:n,y:i,uiManager:sk(kk,this),isCentered:!0},e));o&&this.add(o)}},{key:"deserialize",value:(t=Jw(Kw().mark((function t(e){var r,n;return Kw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(r=Lk._.get(null!==(n=e.annotationType)&&void 0!==n?n:e.annotationEditorType))||void 0===r?void 0:r.deserialize(e,this,sk(kk,this));case 2:if(t.t0=t.sent,t.t0){t.next=5;break}t.t0=null;case 5:return t.abrupt("return",t.t0);case 6:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"createAndAddNewEditor",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getNextId(),i=ck(xk,this,Sk).call(this,Xw({parent:this,id:n,x:t.offsetX,y:t.offsetY,uiManager:sk(kk,this),isCentered:e},r));return i&&this.add(i),i}},{key:"addNewEditor",value:function(){this.createAndAddNewEditor(ck(xk,this,Ok).call(this),!0)}},{key:"setSelected",value:function(t){sk(kk,this).setSelected(t)}},{key:"toggleSelected",value:function(t){sk(kk,this).toggleSelected(t)}},{key:"unselect",value:function(t){sk(kk,this).unselect(t)}},{key:"pointerup",value:function(t){var e=J.platform.isMac;0!==t.button||t.ctrlKey&&e||t.target===this.div&&sk(yk,this)&&(uk(yk,this,!1),sk(hk,this)?sk(kk,this).getMode()!==A.STAMP?this.createAndAddNewEditor(t,!1):sk(kk,this).unselectAll():uk(hk,this,!0))}},{key:"pointerdown",value:function(t){if(sk(kk,this).getMode()===A.HIGHLIGHT&&this.enableTextSelection(),sk(yk,this))uk(yk,this,!1);else{var e=J.platform.isMac;if(!(0!==t.button||t.ctrlKey&&e)&&t.target===this.div){uk(yk,this,!0);var r=sk(kk,this).getActive();uk(hk,this,!r||r.isEmpty())}}}},{key:"findNewParent",value:function(t,e,r){var n=sk(kk,this).findParent(e,r);return null!==n&&n!==this&&(n.changeParent(t),!0)}},{key:"destroy",value:function(){var t;(null===(t=sk(kk,this).getActive())||void 0===t?void 0:t.parent)===this&&(sk(kk,this).commitOrRemove(),sk(kk,this).setActiveEditor(null)),sk(vk,this)&&(clearTimeout(sk(vk,this)),uk(vk,this,null));var e,r=$w(sk(pk,this).values());try{for(r.s();!(e=r.n()).done;){var n,i=e.value;null===(n=sk(lk,this))||void 0===n||n.removePointerInTextLayer(i.contentDiv),i.setParent(null),i.isAttachedToDOM=!1,i.div.remove()}}catch(t){r.e(t)}finally{r.f()}this.div=null,sk(pk,this).clear(),sk(kk,this).removeLayer(this)}},{key:"render",value:function(t){var e=t.viewport;this.viewport=e,Re(this.div,e);var r,n=$w(sk(kk,this).getEditors(this.pageIndex));try{for(n.s();!(r=n.n()).done;){var i=r.value;this.add(i),i.rebuild()}}catch(t){n.e(t)}finally{n.f()}this.updateMode()}},{key:"update",value:function(t){var e=t.viewport;sk(kk,this).commitOrRemove(),ck(xk,this,Tk).call(this);var r=this.viewport.rotation,n=e.rotation;if(this.viewport=e,Re(this.div,{rotation:n}),r!==n){var i,a=$w(sk(pk,this).values());try{for(a.s();!(i=a.n()).done;)i.value.rotate(n)}catch(t){a.e(t)}finally{a.f()}}this.addInkEditorIfNeeded(!1)}},{key:"pageDimensions",get:function(){var t=this.viewport.rawDims;return[t.pageWidth,t.pageHeight]}},{key:"scale",get:function(){return sk(kk,this).viewParameters.realScale}}]);var t,e}();function _k(t){var e=this;sk(kk,this).unselectAll();var r=t.target;if(r===sk(bk,this).div||("img"===r.getAttribute("role")||r.classList.contains("endOfContent"))&&sk(bk,this).div.contains(r)){var n=J.platform.isMac;if(0!==t.button||t.ctrlKey&&n)return;sk(kk,this).showAllEditors("highlight",!0,!0),sk(bk,this).div.classList.add("free"),this.toggleDrawing(),Om.startHighlighting(this,"ltr"===sk(kk,this).direction,{target:sk(bk,this).div,x:t.x,y:t.y}),sk(bk,this).div.addEventListener("pointerup",(function(){sk(bk,e).div.classList.remove("free"),e.toggleDrawing(!0)}),{once:!0,signal:sk(kk,this)._signal}),t.preventDefault()}}function Ek(t){return Lk._.get(sk(kk,t).getMode())}function Sk(t){var e=ok(xk,this,Ek);return e?new e.prototype.constructor(t):null}function Ok(){var t=this.div.getBoundingClientRect(),e=t.x,r=t.y,n=t.width,i=t.height,a=Math.max(0,e),o=Math.max(0,r),s=(a+Math.min(window.innerWidth,e+n))/2-e,u=(o+Math.min(window.innerHeight,r+i))/2-r,c=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||Zw(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.viewport.rotation%180==0?[s,u]:[u,s],2);return{offsetX:c[0],offsetY:c[1]}}function Tk(){uk(gk,this,!0);var t,e=$w(sk(pk,this).values());try{for(e.s();!(t=e.n()).done;){var r=t.value;r.isEmpty()&&r.remove()}}catch(t){e.e(t)}finally{e.f()}uk(gk,this,!1)}rk(Ak,"_initialized",!1);var Pk,Lk={_:new Map([Dp,Tb,Fw,Om].map((function(t){return[t._editorType,t]})))};function Mk(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Ck(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ck(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Ck(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function jk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ik(n.key),n)}}function Ik(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Rk(t,e,r){Fk(t,e),e.set(t,r)}function Fk(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dk(t,e,r){return t.set(Wk(t,e),r),r}function Nk(t,e){return t.get(Wk(t,e))}function Wk(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var Bk=new WeakMap,Gk=new WeakMap,Hk=new WeakMap,Uk=new WeakMap,zk=new WeakSet,Vk=function(){function t(e){var r=e.pageIndex;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){Fk(t,e),e.add(t)}(this,zk),Rk(this,Bk,null),Rk(this,Gk,0),Rk(this,Hk,new Map),Rk(this,Uk,new Map),this.pageIndex=r}return function(t,e,r){return e&&jk(t.prototype,e),r&&jk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"setParent",value:function(t){if(Nk(Bk,this)){if(Nk(Bk,this)!==t){if(Nk(Hk,this).size>0){var e,r=Mk(Nk(Hk,this).values());try{for(r.s();!(e=r.n()).done;){var n=e.value;n.remove(),t.append(n)}}catch(t){r.e(t)}finally{r.f()}}Dk(Bk,this,t)}}else Dk(Bk,this,t)}},{key:"highlight",value:function(e,r,n){var i,a,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=(Dk(Gk,this,(i=Nk(Gk,this),a=i++,i)),a),u=Wk(zk,this,Yk).call(this,e.box);u.classList.add("highlight"),e.free&&u.classList.add("free");var c=t._svgFactory.createElement("defs");u.append(c);var l=t._svgFactory.createElement("path");c.append(l);var h="path_p".concat(this.pageIndex,"_").concat(s);l.setAttribute("id",h),l.setAttribute("d",e.toSVGPath()),o&&Nk(Uk,this).set(s,l);var f=Wk(zk,this,Xk).call(this,c,h),d=t._svgFactory.createElement("use");return u.append(d),u.setAttribute("fill",r),u.setAttribute("fill-opacity",n),d.setAttribute("href","#".concat(h)),Nk(Hk,this).set(s,u),{id:s,clipPathId:"url(#".concat(f,")")}}},{key:"highlightOutline",value:function(e){var r,n,i=(Dk(Gk,this,(r=Nk(Gk,this),n=r++,r)),n),a=Wk(zk,this,Yk).call(this,e.box);a.classList.add("highlightOutline");var o=t._svgFactory.createElement("defs");a.append(o);var s=t._svgFactory.createElement("path");o.append(s);var u,c="path_p".concat(this.pageIndex,"_").concat(i);if(s.setAttribute("id",c),s.setAttribute("d",e.toSVGPath()),s.setAttribute("vector-effect","non-scaling-stroke"),e.free){a.classList.add("free");var l=t._svgFactory.createElement("mask");o.append(l),u="mask_p".concat(this.pageIndex,"_").concat(i),l.setAttribute("id",u),l.setAttribute("maskUnits","objectBoundingBox");var h=t._svgFactory.createElement("rect");l.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");var f=t._svgFactory.createElement("use");l.append(f),f.setAttribute("href","#".concat(c)),f.setAttribute("stroke","none"),f.setAttribute("fill","black"),f.setAttribute("fill-rule","nonzero"),f.classList.add("mask")}var d=t._svgFactory.createElement("use");a.append(d),d.setAttribute("href","#".concat(c)),u&&d.setAttribute("mask","url(#".concat(u,")"));var v=d.cloneNode();return a.append(v),d.classList.add("mainOutline"),v.classList.add("secondaryOutline"),Nk(Hk,this).set(i,a),i}},{key:"finalizeLine",value:function(t,e){var r=Nk(Uk,this).get(t);Nk(Uk,this).delete(t),this.updateBox(t,e.box),r.setAttribute("d",e.toSVGPath())}},{key:"updateLine",value:function(t,e){Nk(Hk,this).get(t).firstChild.firstChild.setAttribute("d",e.toSVGPath())}},{key:"removeFreeHighlight",value:function(t){this.remove(t),Nk(Uk,this).delete(t)}},{key:"updatePath",value:function(t,e){Nk(Uk,this).get(t).setAttribute("d",e.toSVGPath())}},{key:"updateBox",value:function(e,r){qk.call(t,Nk(Hk,this).get(e),r)}},{key:"show",value:function(t,e){Nk(Hk,this).get(t).classList.toggle("hidden",!e)}},{key:"rotate",value:function(t,e){Nk(Hk,this).get(t).setAttribute("data-main-rotation",e)}},{key:"changeColor",value:function(t,e){Nk(Hk,this).get(t).setAttribute("fill",e)}},{key:"changeOpacity",value:function(t,e){Nk(Hk,this).get(t).setAttribute("fill-opacity",e)}},{key:"addClass",value:function(t,e){Nk(Hk,this).get(t).classList.add(e)}},{key:"removeClass",value:function(t,e){Nk(Hk,this).get(t).classList.remove(e)}},{key:"getSVGRoot",value:function(t){return Nk(Hk,this).get(t)}},{key:"remove",value:function(t){null!==Nk(Bk,this)&&(Nk(Hk,this).get(t).remove(),Nk(Hk,this).delete(t))}},{key:"destroy",value:function(){Dk(Bk,this,null);var t,e=Mk(Nk(Hk,this).values());try{for(e.s();!(t=e.n()).done;)t.value.remove()}catch(t){e.e(t)}finally{e.f()}Nk(Hk,this).clear()}}],[{key:"_svgFactory",get:function(){return W(this,"_svgFactory",new me)}}])}();function qk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.x,n=void 0===r?0:r,i=e.y,a=void 0===i?0:i,o=e.width,s=void 0===o?1:o,u=e.height,c=void 0===u?1:u,l=t.style;l.top="".concat(100*a,"%"),l.left="".concat(100*n,"%"),l.width="".concat(100*s,"%"),l.height="".concat(100*c,"%")}function Yk(t){var e=Pk._svgFactory.create(1,1,!0);return Nk(Bk,this).append(e),e.setAttribute("aria-hidden",!0),qk.call(Pk,e,t),e}function Xk(t,e){var r=Pk._svgFactory.createElement("clipPath");t.append(r);var n="clip_".concat(e);r.setAttribute("id",n),r.setAttribute("clipPathUnits","objectBoundingBox");var i=Pk._svgFactory.createElement("use");return r.append(i),i.setAttribute("href","#".concat(e)),i.classList.add("clip"),n}Pk=Vk;';function h(e,t){return"string"==typeof e?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e],t)):e instanceof Response?URL.createObjectURL(e.blob()):e}function f(e){return new Promise(((t,n)=>{let r=document.createElement("script");r.src=e,r.onload=function(){t()},r.onerror=function(){n()},document.body.append(r)}))}function d(e,t){return c(this,null,(function*(){t&&(t instanceof ArrayBuffer&&(t=new Blob([t])),p(e,URL.createObjectURL(t)))}))}function p(e,t){let n=document.createElement("a");n.download=e,n.style.display="none",n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function g(e){var t,n,r,i,a;for(t="",r=e.length,n=0;n<r;n++)(i=e.charCodeAt(n))>=1&&i<=127?t+=e.charAt(n):i>2047?(a=224|i>>12&15,t+=String.fromCharCode(a),a=128|i>>6&63,t+=String.fromCharCode(a),a=128|63&i,t+=String.fromCharCode(a)):(a=192|i>>6&31,t+=String.fromCharCode(a),a=128|63&i,t+=String.fromCharCode(a));return t}var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function v(e){var t,n,r,i,a,o;for(r=e.length,n=0,t="";n<r;){if(i=255&e.charCodeAt(n++),n==r){t+=m.charAt(i>>2),t+=m.charAt((3&i)<<4),t+="==";break}if(a=e.charCodeAt(n++),n==r){t+=m.charAt(i>>2),t+=m.charAt((3&i)<<4|(240&a)>>4),t+=m.charAt((15&a)<<2),t+="=";break}o=e.charCodeAt(n++),t+=m.charAt(i>>2),t+=m.charAt((3&i)<<4|(240&a)>>4),t+=m.charAt((15&a)<<2|(192&o)>>6),t+=m.charAt(63&o)}return t}function y(e){return v(g(e))}var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var x=w;function C(){this.__data__=[],this.size=0}var _=C;function I(e,t){return e===t||e!=e&&t!=t}var E=I,k=E;function S(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return-1}var B=S,M=B,T=Array.prototype.splice;function O(e){var t=this.__data__,n=M(t,e);return!(n<0||(n==t.length-1?t.pop():T.call(t,n,1),--this.size,0))}var D=B;function P(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]}var L=B;function Q(e){return L(this.__data__,e)>-1}var R=B;function j(e,t){var n=this.__data__,r=R(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var N=_,F=O,z=P,H=Q,U=j;function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}G.prototype.clear=N,G.prototype.delete=F,G.prototype.get=z,G.prototype.has=H,G.prototype.set=U;var V=G,W=V;function q(){this.__data__=new W,this.size=0}var Y=q;function K(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var $=K;function J(e){return this.__data__.get(e)}var X=J;function Z(e){return this.__data__.has(e)}var ee=Z,te="object"==typeof A&&A&&A.Object===Object&&A,ne=te,re="object"==typeof self&&self&&self.Object===Object&&self,ie=ne||re||Function("return this")(),ae=ie.Symbol,oe=ae,se=Object.prototype,ce=se.hasOwnProperty,le=se.toString,ue=oe?oe.toStringTag:void 0;function he(e){var t=ce.call(e,ue),n=e[ue];try{e[ue]=void 0;var r=!0}catch(e){}var i=le.call(e);return r&&(t?e[ue]=n:delete e[ue]),i}var fe=he,de=Object.prototype.toString;function pe(e){return de.call(e)}var ge=ae,me=fe,ve=pe,ye="[object Null]",Ae="[object Undefined]",be=ge?ge.toStringTag:void 0;function we(e){return null==e?void 0===e?Ae:ye:be&&be in Object(e)?me(e):ve(e)}var xe=we;function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var _e=Ce,Ie=xe,Ee=_e,ke="[object AsyncFunction]",Se="[object Function]",Be="[object GeneratorFunction]",Me="[object Proxy]";function Te(e){if(!Ee(e))return!1;var t=Ie(e);return t==Se||t==Be||t==ke||t==Me}var Oe,De=Te,Pe=ie["__core-js_shared__"],Le=(Oe=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+Oe:"";function Qe(e){return!!Le&&Le in e}var Re=Qe,je=Function.prototype.toString;function Ne(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Fe=Ne,ze=De,He=Re,Ue=_e,Ge=Fe,Ve=/[\\^$.*+?()[\]{}|]/g,We=/^\[object .+?Constructor\]$/,qe=Function.prototype,Ye=Object.prototype,Ke=qe.toString,$e=Ye.hasOwnProperty,Je=RegExp("^"+Ke.call($e).replace(Ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xe(e){return!(!Ue(e)||He(e))&&(ze(e)?Je:We).test(Ge(e))}function Ze(e,t){return null==e?void 0:e[t]}var et=Xe,tt=Ze;function nt(e,t){var n=tt(e,t);return et(n)?n:void 0}var rt=nt,it=rt(ie,"Map"),at=rt(Object,"create"),ot=at;function st(){this.__data__=ot?ot(null):{},this.size=0}var ct=st;function lt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ut=lt,ht=at,ft="__lodash_hash_undefined__",dt=Object.prototype.hasOwnProperty;function pt(e){var t=this.__data__;if(ht){var n=t[e];return n===ft?void 0:n}return dt.call(t,e)?t[e]:void 0}var gt=pt,mt=at,vt=Object.prototype.hasOwnProperty;function yt(e){var t=this.__data__;return mt?void 0!==t[e]:vt.call(t,e)}var At=at,bt="__lodash_hash_undefined__";function wt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=At&&void 0===t?bt:t,this}var xt=ct,Ct=ut,_t=gt,It=yt,Et=wt;function kt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kt.prototype.clear=xt,kt.prototype.delete=Ct,kt.prototype.get=_t,kt.prototype.has=It,kt.prototype.set=Et;var St=kt,Bt=V,Mt=it;function Tt(){this.size=0,this.__data__={hash:new St,map:new(Mt||Bt),string:new St}}function Ot(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var Dt=Ot;function Pt(e,t){var n=e.__data__;return Dt(t)?n["string"==typeof t?"string":"hash"]:n.map}var Lt=Pt;function Qt(e){var t=Lt(this,e).delete(e);return this.size-=t?1:0,t}var Rt=Pt;function jt(e){return Rt(this,e).get(e)}var Nt=Pt;function Ft(e){return Nt(this,e).has(e)}var zt=Pt;function Ht(e,t){var n=zt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Ut=Tt,Gt=Qt,Vt=jt,Wt=Ft,qt=Ht;function Yt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yt.prototype.clear=Ut,Yt.prototype.delete=Gt,Yt.prototype.get=Vt,Yt.prototype.has=Wt,Yt.prototype.set=qt;var Kt=Yt,$t=V,Jt=it,Xt=Kt,Zt=200;function en(e,t){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!Jt||r.length<Zt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xt(r)}return n.set(e,t),this.size=n.size,this}var tn=V,nn=Y,rn=$,an=X,on=ee,sn=en;function cn(e){var t=this.__data__=new tn(e);this.size=t.size}cn.prototype.clear=nn,cn.prototype.delete=rn,cn.prototype.get=an,cn.prototype.has=on,cn.prototype.set=sn;var ln=cn;function un(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}var hn=un,fn=rt,dn=function(){try{var e=fn(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=dn;function gn(e,t,n){"__proto__"==t&&pn?pn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mn=gn,vn=mn,yn=E,An=Object.prototype.hasOwnProperty;function bn(e,t,n){var r=e[t];(!An.call(e,t)||!yn(r,n)||void 0===n&&!(t in e))&&vn(e,t,n)}var wn=bn,xn=wn,Cn=mn;function _n(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Cn(n,s,c):xn(n,s,c)}return n}var In=_n;function En(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var kn=En;function Sn(e){return null!=e&&"object"==typeof e}var Bn=Sn,Mn=xe,Tn=Bn,On="[object Arguments]";function Dn(e){return Tn(e)&&Mn(e)==On}var Pn=Dn,Ln=Bn,Qn=Object.prototype,Rn=Qn.hasOwnProperty,jn=Qn.propertyIsEnumerable,Nn=Pn(function(){return arguments}())?Pn:function(e){return Ln(e)&&Rn.call(e,"callee")&&!jn.call(e,"callee")},Fn=Nn,zn=Array.isArray,Hn={exports:{}};function Un(){return!1}var Gn=Un;Hn.exports,function(e,t){var n=ie,r=Gn,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,s=(o?o.isBuffer:void 0)||r;e.exports=s}(Hn,Hn.exports);var Vn=Hn.exports,Wn=9007199254740991,qn=/^(?:0|[1-9]\d*)$/;function Yn(e,t){var n=typeof e;return!!(t=null==t?Wn:t)&&("number"==n||"symbol"!=n&&qn.test(e))&&e>-1&&e%1==0&&e<t}var Kn=Yn,$n=9007199254740991;function Jn(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=$n}var Xn=Jn,Zn=xe,er=Xn,tr=Bn,nr="[object Arguments]",rr="[object Array]",ir="[object Boolean]",ar="[object Date]",or="[object Error]",sr="[object Function]",cr="[object Map]",lr="[object Number]",ur="[object Object]",hr="[object RegExp]",fr="[object Set]",dr="[object String]",pr="[object WeakMap]",gr="[object ArrayBuffer]",mr="[object DataView]",vr="[object Float64Array]",yr="[object Int8Array]",Ar="[object Int16Array]",br="[object Int32Array]",wr="[object Uint8Array]",xr="[object Uint8ClampedArray]",Cr="[object Uint16Array]",_r="[object Uint32Array]",Ir={};function Er(e){return tr(e)&&er(e.length)&&!!Ir[Zn(e)]}Ir["[object Float32Array]"]=Ir[vr]=Ir[yr]=Ir[Ar]=Ir[br]=Ir[wr]=Ir[xr]=Ir[Cr]=Ir[_r]=!0,Ir[nr]=Ir[rr]=Ir[gr]=Ir[ir]=Ir[mr]=Ir[ar]=Ir[or]=Ir[sr]=Ir[cr]=Ir[lr]=Ir[ur]=Ir[hr]=Ir[fr]=Ir[dr]=Ir[pr]=!1;var kr=Er;function Sr(e){return function(t){return e(t)}}var Br=Sr,Mr={exports:{}};Mr.exports,function(e,t){var n=te,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r&&n.process,o=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}(Mr,Mr.exports);var Tr=Mr.exports,Or=kr,Dr=Br,Pr=Tr,Lr=Pr&&Pr.isTypedArray,Qr=Lr?Dr(Lr):Or,Rr=kn,jr=Fn,Nr=zn,Fr=Vn,zr=Kn,Hr=Qr,Ur=Object.prototype.hasOwnProperty;function Gr(e,t){var n=Nr(e),r=!n&&jr(e),i=!n&&!r&&Fr(e),a=!n&&!r&&!i&&Hr(e),o=n||r||i||a,s=o?Rr(e.length,String):[],c=s.length;for(var l in e)(t||Ur.call(e,l))&&(!o||!("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||zr(l,c)))&&s.push(l);return s}var Vr=Gr,Wr=Object.prototype;function qr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wr)}var Yr=qr;function Kr(e,t){return function(n){return e(t(n))}}var $r=Kr,Jr=$r(Object.keys,Object),Xr=Yr,Zr=Jr,ei=Object.prototype.hasOwnProperty;function ti(e){if(!Xr(e))return Zr(e);var t=[];for(var n in Object(e))ei.call(e,n)&&"constructor"!=n&&t.push(n);return t}var ni=De,ri=Xn;function ii(e){return null!=e&&ri(e.length)&&!ni(e)}var ai=ii,oi=Vr,si=ti,ci=ai;function li(e){return ci(e)?oi(e):si(e)}var ui=li,hi=In,fi=ui;function di(e,t){return e&&hi(t,fi(t),e)}var pi=di;function gi(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var mi=_e,vi=Yr,yi=gi,Ai=Object.prototype.hasOwnProperty;function bi(e){if(!mi(e))return yi(e);var t=vi(e),n=[];for(var r in e)"constructor"==r&&(t||!Ai.call(e,r))||n.push(r);return n}var wi=Vr,xi=bi,Ci=ai;function _i(e){return Ci(e)?wi(e,!0):xi(e)}var Ii=_i,Ei=In,ki=Ii;function Si(e,t){return e&&Ei(t,ki(t),e)}var Bi=Si,Mi={exports:{}};Mi.exports,function(e,t){var n=ie,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}e.exports=s}(Mi,Mi.exports);var Ti=Mi.exports;function Oi(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Di=Oi;function Pi(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Li(){return[]}var Qi=Li,Ri=Pi,ji=Qi,Ni=Object.prototype.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,zi=Fi?function(e){return null==e?[]:(e=Object(e),Ri(Fi(e),(function(t){return Ni.call(e,t)})))}:ji,Hi=In,Ui=zi;function Gi(e,t){return Hi(e,Ui(e),t)}var Vi=Gi;function Wi(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var qi=Wi,Yi=$r(Object.getPrototypeOf,Object),Ki=qi,$i=Yi,Ji=zi,Xi=Qi,Zi=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ki(t,Ji(e)),e=$i(e);return t}:Xi,ea=In,ta=Zi;function na(e,t){return ea(e,ta(e),t)}var ra=na,ia=qi,aa=zn;function oa(e,t,n){var r=t(e);return aa(e)?r:ia(r,n(e))}var sa=oa,ca=zi,la=ui;function ua(e){return sa(e,la,ca)}var ha=ua,fa=oa,da=Zi,pa=Ii;function ga(e){return fa(e,pa,da)}var ma=ga,va=rt(ie,"DataView"),ya=rt(ie,"Promise"),Aa=rt(ie,"Set"),ba=rt(ie,"WeakMap"),wa=va,xa=it,Ca=ya,_a=Aa,Ia=ba,Ea=xe,ka=Fe,Sa="[object Map]",Ba="[object Object]",Ma="[object Promise]",Ta="[object Set]",Oa="[object WeakMap]",Da="[object DataView]",Pa=ka(wa),La=ka(xa),Qa=ka(Ca),Ra=ka(_a),ja=ka(Ia),Na=Ea;(wa&&Na(new wa(new ArrayBuffer(1)))!=Da||xa&&Na(new xa)!=Sa||Ca&&Na(Ca.resolve())!=Ma||_a&&Na(new _a)!=Ta||Ia&&Na(new Ia)!=Oa)&&(Na=function(e){var t=Ea(e),n=t==Ba?e.constructor:void 0,r=n?ka(n):"";if(r)switch(r){case Pa:return Da;case La:return Sa;case Qa:return Ma;case Ra:return Ta;case ja:return Oa}return t});var Fa=Na,za=Object.prototype.hasOwnProperty;function Ha(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&za.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Ua=Ha,Ga=ie.Uint8Array,Va=Ga;function Wa(e){var t=new e.constructor(e.byteLength);return new Va(t).set(new Va(e)),t}var qa=Wa,Ya=qa;function Ka(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var $a=Ka,Ja=/\w*$/;function Xa(e){var t=new e.constructor(e.source,Ja.exec(e));return t.lastIndex=e.lastIndex,t}var Za=Xa,eo=ae,to=eo?eo.prototype:void 0,no=to?to.valueOf:void 0;function ro(e){return no?Object(no.call(e)):{}}var io=qa;function ao(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var oo=qa,so=$a,co=Za,lo=ro,uo=ao,ho="[object Boolean]",fo="[object Date]",po="[object Map]",go="[object Number]",mo="[object RegExp]",vo="[object Set]",yo="[object String]",Ao="[object Symbol]",bo="[object ArrayBuffer]",wo="[object DataView]",xo="[object Float32Array]",Co="[object Float64Array]",_o="[object Int8Array]",Io="[object Int16Array]",Eo="[object Int32Array]",ko="[object Uint8Array]",So="[object Uint8ClampedArray]",Bo="[object Uint16Array]",Mo="[object Uint32Array]";function To(e,t,n){var r=e.constructor;switch(t){case bo:return oo(e);case ho:case fo:return new r(+e);case wo:return so(e,n);case xo:case Co:case _o:case Io:case Eo:case ko:case So:case Bo:case Mo:return uo(e,n);case po:return new r;case go:case yo:return new r(e);case mo:return co(e);case vo:return new r;case Ao:return lo(e)}}var Oo=To,Do=_e,Po=Object.create,Lo=function(){function e(){}return function(t){if(!Do(t))return{};if(Po)return Po(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Qo=Lo,Ro=Yi,jo=Yr;function No(e){return"function"!=typeof e.constructor||jo(e)?{}:Qo(Ro(e))}var Fo=No,zo=Fa,Ho=Bn,Uo="[object Map]";function Go(e){return Ho(e)&&zo(e)==Uo}var Vo=Go,Wo=Br,qo=Tr,Yo=qo&&qo.isMap,Ko=Yo?Wo(Yo):Vo,$o=Fa,Jo=Bn,Xo="[object Set]";function Zo(e){return Jo(e)&&$o(e)==Xo}var es=Zo,ts=Br,ns=Tr,rs=ns&&ns.isSet,is=rs?ts(rs):es,as=ln,os=hn,ss=wn,cs=pi,ls=Bi,us=Ti,hs=Di,fs=Vi,ds=ra,ps=ha,gs=ma,ms=Fa,vs=Ua,ys=Oo,As=Fo,bs=zn,ws=Vn,xs=Ko,Cs=_e,_s=is,Is=ui,Es=Ii,ks=1,Ss=2,Bs=4,Ms="[object Arguments]",Ts="[object Array]",Os="[object Boolean]",Ds="[object Date]",Ps="[object Error]",Ls="[object Function]",Qs="[object GeneratorFunction]",Rs="[object Map]",js="[object Number]",Ns="[object Object]",Fs="[object RegExp]",zs="[object Set]",Hs="[object String]",Us="[object Symbol]",Gs="[object WeakMap]",Vs="[object ArrayBuffer]",Ws="[object DataView]",qs="[object Float32Array]",Ys="[object Float64Array]",Ks="[object Int8Array]",$s="[object Int16Array]",Js="[object Int32Array]",Xs="[object Uint8Array]",Zs="[object Uint8ClampedArray]",ec="[object Uint16Array]",tc="[object Uint32Array]",nc={};function rc(e,t,n,r,i,a){var o,s=t&ks,c=t&Ss,l=t&Bs;if(n&&(o=i?n(e,r,i,a):n(e)),void 0!==o)return o;if(!Cs(e))return e;var u=bs(e);if(u){if(o=vs(e),!s)return hs(e,o)}else{var h=ms(e),f=h==Ls||h==Qs;if(ws(e))return us(e,s);if(h==Ns||h==Ms||f&&!i){if(o=c||f?{}:As(e),!s)return c?ds(e,ls(o,e)):fs(e,cs(o,e))}else{if(!nc[h])return i?e:{};o=ys(e,h,s)}}a||(a=new as);var d=a.get(e);if(d)return d;a.set(e,o),_s(e)?e.forEach((function(r){o.add(rc(r,t,n,r,e,a))})):xs(e)&&e.forEach((function(r,i){o.set(i,rc(r,t,n,i,e,a))}));var p=u?void 0:(l?c?gs:ps:c?Es:Is)(e);return os(p||e,(function(r,i){p&&(r=e[i=r]),ss(o,i,rc(r,t,n,i,e,a))})),o}nc[Ms]=nc[Ts]=nc[Vs]=nc[Ws]=nc[Os]=nc[Ds]=nc[qs]=nc[Ys]=nc[Ks]=nc[$s]=nc[Js]=nc[Rs]=nc[js]=nc[Ns]=nc[Fs]=nc[zs]=nc[Hs]=nc[Us]=nc[Xs]=nc[Zs]=nc[ec]=nc[tc]=!0,nc[Ps]=nc[Ls]=nc[Gs]=!1;var ic=rc,ac=xe,oc=Bn,sc="[object Symbol]";function cc(e){return"symbol"==typeof e||oc(e)&&ac(e)==sc}var lc=cc,uc=zn,hc=lc,fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dc=/^\w*$/;function pc(e,t){if(uc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hc(e))||dc.test(e)||!fc.test(e)||null!=t&&e in Object(t)}var gc=pc,mc=Kt,vc="Expected a function";function yc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(vc);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(yc.Cache||mc),n}yc.Cache=mc;var Ac=yc,bc=Ac,wc=500;function xc(e){var t=bc(e,(function(e){return n.size===wc&&n.clear(),e})),n=t.cache;return t}var Cc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_c=/\\(\\)?/g,Ic=xc((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Cc,(function(e,n,r,i){t.push(r?i.replace(_c,"$1"):n||e)})),t})),Ec=ae,kc=x,Sc=zn,Bc=lc,Mc=1/0,Tc=Ec?Ec.prototype:void 0,Oc=Tc?Tc.toString:void 0;function Dc(e){if("string"==typeof e)return e;if(Sc(e))return kc(e,Dc)+"";if(Bc(e))return Oc?Oc.call(e):"";var t=e+"";return"0"==t&&1/e==-Mc?"-0":t}var Pc=Dc;function Lc(e){return null==e?"":Pc(e)}var Qc=zn,Rc=gc,jc=Ic,Nc=Lc;function Fc(e,t){return Qc(e)?e:Rc(e,t)?[e]:jc(Nc(e))}var zc=Fc;function Hc(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Uc=lc,Gc=1/0;function Vc(e){if("string"==typeof e||Uc(e))return e;var t=e+"";return"0"==t&&1/e==-Gc?"-0":t}var Wc=Vc,qc=zc,Yc=Wc;function Kc(e,t){for(var n=0,r=(t=qc(t,e)).length;null!=e&&n<r;)e=e[Yc(t[n++])];return n&&n==r?e:void 0}var $c=Kc;function Jc(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var Xc=Jc,Zc=$c,el=Xc;function tl(e,t){return t.length<2?e:Zc(e,el(t,0,-1))}var nl=zc,rl=Hc,il=tl,al=Wc;function ol(e,t){return t=nl(t,e),null==(e=il(e,t))||delete e[al(rl(t))]}var sl=ol,cl=xe,ll=Yi,ul=Bn,hl="[object Object]",fl=Function.prototype,dl=Object.prototype,pl=fl.toString,gl=dl.hasOwnProperty,ml=pl.call(Object);function vl(e){if(!ul(e)||cl(e)!=hl)return!1;var t=ll(e);if(null===t)return!0;var n=gl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pl.call(n)==ml}var yl=vl;function Al(e){return yl(e)?void 0:e}var bl=Al,wl=ae,xl=Fn,Cl=zn,_l=wl?wl.isConcatSpreadable:void 0;function Il(e){return Cl(e)||xl(e)||!!(_l&&e&&e[_l])}var El=qi,kl=Il;function Sl(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=kl),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?Sl(s,t-1,n,r,i):El(i,s):r||(i[i.length]=s)}return i}var Bl=Sl,Ml=Bl;function Tl(e){return null!=e&&e.length?Ml(e,1):[]}var Ol=Tl;function Dl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Pl=Dl,Ll=Pl,Ql=Math.max;function Rl(e,t,n){return t=Ql(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Ql(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Ll(e,this,s)}}var jl=Rl;function Nl(e){return function(){return e}}function Fl(e){return e}var zl=Fl,Hl=Nl,Ul=dn,Gl=zl,Vl=Ul?function(e,t){return Ul(e,"toString",{configurable:!0,enumerable:!1,value:Hl(t),writable:!0})}:Gl,Wl=800,ql=16,Yl=Date.now;function Kl(e){var t=0,n=0;return function(){var r=Yl(),i=ql-(r-n);if(n=r,i>0){if(++t>=Wl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var $l=Kl,Jl=$l(Vl),Xl=Ol,Zl=jl,eu=Jl;function tu(e){return eu(Zl(e,void 0,Xl),e+"")}var nu=tu,ru=x,iu=ic,au=sl,ou=zc,su=In,cu=bl,lu=ma,uu=1,hu=2,fu=4;const du=b(nu((function(e,t){var n={};if(null==e)return n;var r=!1;t=ru(t,(function(t){return t=ou(t,e),r||(r=t.length>1),t})),su(e,lu(e),n),r&&(n=iu(n,uu|hu|fu,cu));for(var i=t.length;i--;)au(n,t[i]);return n})));var pu=/\s/;function gu(e){for(var t=e.length;t--&&pu.test(e.charAt(t)););return t}var mu=gu,vu=/^\s+/;function yu(e){return e&&e.slice(0,mu(e)+1).replace(vu,"")}var Au=yu,bu=_e,wu=lc,xu=NaN,Cu=/^[-+]0x[0-9a-f]+$/i,_u=/^0b[01]+$/i,Iu=/^0o[0-7]+$/i,Eu=parseInt;function ku(e){if("number"==typeof e)return e;if(wu(e))return xu;if(bu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=bu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Au(e);var n=_u.test(e);return n||Iu.test(e)?Eu(e.slice(2),n?2:8):Cu.test(e)?xu:+e}var Su=ku,Bu=Su,Mu=1/0,Tu=17976931348623157e292;function Ou(e){return e?(e=Bu(e))===Mu||e===-Mu?(e<0?-1:1)*Tu:e==e?e:0:0===e?e:0}var Du=Ou;function Pu(e){var t=Du(e),n=t%1;return t==t?n?t-n:t:0}var Lu=Pu,Qu=Lu,Ru="Expected a function";function ju(e,t){if("function"!=typeof t)throw new TypeError(Ru);return e=Qu(e),function(){if(--e<1)return t.apply(this,arguments)}}var Nu=ju,Fu=ba,zu=Fu&&new Fu,Hu=zl,Uu=zu,Gu=Uu?function(e,t){return Uu.set(e,t),e}:Hu,Vu=Lo,Wu=_e;function qu(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vu(e.prototype),r=e.apply(n,t);return Wu(r)?r:n}}var Yu=qu,Ku=Yu,$u=ie,Ju=1;function Xu(e,t,n){var r=t&Ju,i=Ku(e);function a(){return(this&&this!==$u&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}var Zu=Xu,eh=Math.max;function th(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=eh(a-o,0),u=Array(c+l),h=!r;++s<c;)u[s]=t[s];for(;++i<o;)(h||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}var nh=th,rh=Math.max;function ih(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=rh(a-s,0),h=Array(u+l),f=!r;++i<u;)h[i]=e[i];for(var d=i;++c<l;)h[d+c]=t[c];for(;++o<s;)(f||i<a)&&(h[d+n[o]]=e[i++]);return h}var ah=ih;function oh(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var sh=oh;function ch(){}var lh=ch,uh=Lo,hh=lh,fh=4294967295;function dh(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fh,this.__views__=[]}dh.prototype=uh(hh.prototype),dh.prototype.constructor=dh;var ph=dh;function gh(){}var mh=zu,vh=gh,yh=mh?function(e){return mh.get(e)}:vh,Ah={},bh=Object.prototype.hasOwnProperty;function wh(e){for(var t=e.name+"",n=Ah[t],r=bh.call(Ah,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}var xh=wh,Ch=Lo,_h=lh;function Ih(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Ih.prototype=Ch(_h.prototype),Ih.prototype.constructor=Ih;var Eh=ph,kh=Ih,Sh=Di;function Bh(e){if(e instanceof Eh)return e.clone();var t=new kh(e.__wrapped__,e.__chain__);return t.__actions__=Sh(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Mh=ph,Th=Ih,Oh=lh,Dh=zn,Ph=Bn,Lh=Bh,Qh=Object.prototype.hasOwnProperty;function Rh(e){if(Ph(e)&&!Dh(e)&&!(e instanceof Mh)){if(e instanceof Th)return e;if(Qh.call(e,"__wrapped__"))return Lh(e)}return new Th(e)}Rh.prototype=Oh.prototype,Rh.prototype.constructor=Rh;var jh=ph,Nh=yh,Fh=xh,zh=Rh;function Hh(e){var t=Fh(e),n=zh[t];if("function"!=typeof n||!(t in jh.prototype))return!1;if(e===n)return!0;var r=Nh(n);return!!r&&e===r[0]}var Uh=Hh,Gh=$l(Gu),Vh=/\{\n\/\* \[wrapped with (.+)\] \*/,Wh=/,? & /;function qh(e){var t=e.match(Vh);return t?t[1].split(Wh):[]}var Yh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Kh(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Yh,"{\n/* [wrapped with "+t+"] */\n")}function $h(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Jh(e){return e!=e}function Xh(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Zh=$h,ef=Jh,tf=Xh;function nf(e,t,n){return t==t?tf(e,t,n):Zh(e,ef,n)}var rf=nf;function af(e,t){return!(null==e||!e.length)&&rf(e,t,0)>-1}var of=hn,sf=af,cf=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function lf(e,t){return of(cf,(function(n){var r="_."+n[0];t&n[1]&&!sf(e,r)&&e.push(r)})),e.sort()}var uf=qh,hf=Kh,ff=Jl,df=lf;function pf(e,t,n){var r=t+"";return ff(e,hf(r,df(uf(r),n)))}var gf=pf,mf=Uh,vf=Gh,yf=gf,Af=1,bf=2,wf=4,xf=8,Cf=32,_f=64;function If(e,t,n,r,i,a,o,s,c,l){var u=t&xf;t|=u?Cf:_f,(t&=~(u?_f:Cf))&wf||(t&=~(Af|bf));var h=[e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,c,l],f=n.apply(void 0,h);return mf(e)&&vf(f,h),f.placeholder=r,yf(f,e,t)}var Ef=If;function kf(e){return e.placeholder}var Sf=kf,Bf=Di,Mf=Kn,Tf=Math.min;function Of(e,t){for(var n=e.length,r=Tf(t.length,n),i=Bf(e);r--;){var a=t[r];e[r]=Mf(a,n)?i[a]:void 0}return e}var Df="__lodash_placeholder__";function Pf(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===Df)&&(e[n]=Df,a[i++]=n)}return a}var Lf=Pf,Qf=nh,Rf=ah,jf=sh,Nf=Yu,Ff=Ef,zf=Sf,Hf=Of,Uf=Lf,Gf=ie,Vf=1,Wf=2,qf=8,Yf=16,Kf=128,$f=512;function Jf(e,t,n,r,i,a,o,s,c,l){var u=t&Kf,h=t&Vf,f=t&Wf,d=t&(qf|Yf),p=t&$f,g=f?void 0:Nf(e);function m(){for(var v=arguments.length,y=Array(v),A=v;A--;)y[A]=arguments[A];if(d)var b=zf(m),w=jf(y,b);if(r&&(y=Qf(y,r,i,d)),a&&(y=Rf(y,a,o,d)),v-=w,d&&v<l){var x=Uf(y,b);return Ff(e,t,Jf,m.placeholder,n,y,x,s,c,l-v)}var C=h?n:this,_=f?C[e]:e;return v=y.length,s?y=Hf(y,s):p&&v>1&&y.reverse(),u&&c<v&&(y.length=c),this&&this!==Gf&&this instanceof m&&(_=g||Nf(_)),_.apply(C,y)}return m}var Xf=Jf,Zf=Pl,ed=Yu,td=Xf,nd=Ef,rd=Sf,id=Lf,ad=ie;function od(e,t,n){var r=ed(e);function i(){for(var a=arguments.length,o=Array(a),s=a,c=rd(i);s--;)o[s]=arguments[s];var l=a<3&&o[0]!==c&&o[a-1]!==c?[]:id(o,c);return(a-=l.length)<n?nd(e,t,td,i.placeholder,void 0,o,l,void 0,void 0,n-a):Zf(this&&this!==ad&&this instanceof i?r:e,this,o)}return i}var sd=od,cd=Pl,ld=Yu,ud=ie,hd=1;function fd(e,t,n,r){var i=t&hd,a=ld(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=Array(l+s),h=this&&this!==ud&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return cd(h,i?n:this,u)}return o}var dd=fd,pd=nh,gd=ah,md=Lf,vd="__lodash_placeholder__",yd=1,Ad=2,bd=4,wd=8,xd=128,Cd=256,_d=Math.min;function Id(e,t){var n=e[1],r=t[1],i=n|r,a=i<(yd|Ad|xd),o=r==xd&&n==wd||r==xd&&n==Cd&&e[7].length<=t[8]||r==(xd|Cd)&&t[7].length<=t[8]&&n==wd;if(!a&&!o)return e;r&yd&&(e[2]=t[2],i|=n&yd?0:bd);var s=t[3];if(s){var c=e[3];e[3]=c?pd(c,s,t[4]):s,e[4]=c?md(e[3],vd):t[4]}return(s=t[5])&&(c=e[5],e[5]=c?gd(c,s,t[6]):s,e[6]=c?md(e[5],vd):t[6]),(s=t[7])&&(e[7]=s),r&xd&&(e[8]=null==e[8]?t[8]:_d(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var Ed=Gu,kd=Zu,Sd=sd,Bd=Xf,Md=dd,Td=yh,Od=Id,Dd=Gh,Pd=gf,Ld=Lu,Qd="Expected a function",Rd=1,jd=2,Nd=8,Fd=16,zd=32,Hd=64,Ud=Math.max;function Gd(e,t,n,r,i,a,o,s){var c=t&jd;if(!c&&"function"!=typeof e)throw new TypeError(Qd);var l=r?r.length:0;if(l||(t&=~(zd|Hd),r=i=void 0),o=void 0===o?o:Ud(Ld(o),0),s=void 0===s?s:Ld(s),l-=i?i.length:0,t&Hd){var u=r,h=i;r=i=void 0}var f=c?void 0:Td(e),d=[e,t,n,r,i,u,h,a,o,s];if(f&&Od(d,f),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],!(s=d[9]=void 0===d[9]?c?0:e.length:Ud(d[9]-l,0))&&t&(Nd|Fd)&&(t&=~(Nd|Fd)),t&&t!=Rd)p=t==Nd||t==Fd?Sd(e,t,s):t!=zd&&t!=(Rd|zd)||i.length?Bd.apply(void 0,d):Md(e,t,n,r);else var p=kd(e,t,n);return Pd((f?Ed:Dd)(p,d),e,t)}var Vd=Gd,Wd=Vd,qd=128;function Yd(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,Wd(e,qd,void 0,void 0,void 0,void 0,t)}var Kd=Yd,$d=Lu,Jd="Expected a function";function Xd(e,t){var n;if("function"!=typeof t)throw new TypeError(Jd);return e=$d(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Zd=Xd,ep=zl,tp=jl,np=Jl;function rp(e,t){return np(tp(e,t,ep),e+"")}var ip=rp,ap=Vd,op=Sf,sp=Lf,cp=1,lp=32,up=ip((function(e,t,n){var r=cp;if(n.length){var i=sp(n,op(up));r|=lp}return ap(e,r,t,n,i)}));up.placeholder={};var hp=up,fp=Vd,dp=Sf,pp=Lf,gp=1,mp=2,vp=32,yp=ip((function(e,t,n){var r=gp|mp;if(n.length){var i=pp(n,dp(yp));r|=vp}return fp(t,r,e,n,i)}));yp.placeholder={};var Ap=yp,bp=Vd,wp=8;function xp(e,t,n){var r=bp(e,wp,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=xp.placeholder,r}xp.placeholder={};var Cp=xp,_p=Vd,Ip=16;function Ep(e,t,n){var r=_p(e,Ip,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Ep.placeholder,r}Ep.placeholder={};var kp=Ep,Sp=ie,Bp=_e,Mp=function(){return Sp.Date.now()},Tp=Su,Op="Expected a function",Dp=Math.max,Pp=Math.min;function Lp(e,t,n){var r,i,a,o,s,c,l=0,u=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError(Op);function d(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function p(e){return l=e,s=setTimeout(v,t),u?d(e):o}function g(e){var n=t-(e-c);return h?Pp(n,a-(e-l)):n}function m(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-l>=a}function v(){var e=Mp();if(m(e))return y(e);s=setTimeout(v,g(e))}function y(e){return s=void 0,f&&r?d(e):(r=i=void 0,o)}function A(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return void 0===s?o:y(Mp())}function w(){var e=Mp(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return p(c);if(h)return clearTimeout(s),s=setTimeout(v,t),d(c)}return void 0===s&&(s=setTimeout(v,t)),o}return t=Tp(t)||0,Bp(n)&&(u=!!n.leading,a=(h="maxWait"in n)?Dp(Tp(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),w.cancel=A,w.flush=b,w}var Qp=Lp,Rp="Expected a function";function jp(e,t,n){if("function"!=typeof e)throw new TypeError(Rp);return setTimeout((function(){e.apply(void 0,n)}),t)}var Np=jp,Fp=Np,zp=ip((function(e,t){return Fp(e,1,t)})),Hp=Np,Up=Su,Gp=ip((function(e,t,n){return Hp(e,Up(t)||0,n)})),Vp=Vd,Wp=512;function qp(e){return Vp(e,Wp)}var Yp=qp,Kp="Expected a function";function $p(e){if("function"!=typeof e)throw new TypeError(Kp);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var Jp=$p,Xp=Zd;function Zp(e){return Xp(2,e)}var eg=Zp,tg="__lodash_hash_undefined__";function ng(e){return this.__data__.set(e,tg),this}function rg(e){return this.__data__.has(e)}var ig=Kt,ag=ng,og=rg;function sg(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ig;++t<n;)this.add(e[t])}function cg(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function lg(e,t){return e.has(t)}sg.prototype.add=sg.prototype.push=ag,sg.prototype.has=og;var ug=sg,hg=cg,fg=lg,dg=1,pg=2;function gg(e,t,n,r,i,a){var o=n&dg,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var h=-1,f=!0,d=n&pg?new ug:void 0;for(a.set(e,t),a.set(t,e);++h<s;){var p=e[h],g=t[h];if(r)var m=o?r(g,p,h,t,e,a):r(p,g,h,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!hg(t,(function(e,t){if(!fg(d,t)&&(p===e||i(p,e,n,r,a)))return d.push(t)}))){f=!1;break}}else if(p!==g&&!i(p,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}var mg=gg;function vg(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function yg(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ag=ae,bg=Ga,wg=E,xg=mg,Cg=vg,_g=yg,Ig=1,Eg=2,kg="[object Boolean]",Sg="[object Date]",Bg="[object Error]",Mg="[object Map]",Tg="[object Number]",Og="[object RegExp]",Dg="[object Set]",Pg="[object String]",Lg="[object Symbol]",Qg="[object ArrayBuffer]",Rg="[object DataView]",jg=Ag?Ag.prototype:void 0,Ng=jg?jg.valueOf:void 0;function Fg(e,t,n,r,i,a,o){switch(n){case Rg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Qg:return!(e.byteLength!=t.byteLength||!a(new bg(e),new bg(t)));case kg:case Sg:case Tg:return wg(+e,+t);case Bg:return e.name==t.name&&e.message==t.message;case Og:case Pg:return e==t+"";case Mg:var s=Cg;case Dg:var c=r&Ig;if(s||(s=_g),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Eg,o.set(e,t);var u=xg(s(e),s(t),r,i,a,o);return o.delete(e),u;case Lg:if(Ng)return Ng.call(e)==Ng.call(t)}return!1}var zg=Fg,Hg=ha,Ug=1,Gg=Object.prototype.hasOwnProperty;function Vg(e,t,n,r,i,a){var o=n&Ug,s=Hg(e),c=s.length;if(c!=Hg(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Gg.call(t,u)))return!1}var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var g=e[u=s[l]],m=t[u];if(r)var v=o?r(m,g,u,t,e,a):r(g,m,u,e,t,a);if(!(void 0===v?g===m||i(g,m,n,r,a):v)){d=!1;break}p||(p="constructor"==u)}if(d&&!p){var y=e.constructor,A=t.constructor;y!=A&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof A&&A instanceof A)&&(d=!1)}return a.delete(e),a.delete(t),d}var Wg=ln,qg=mg,Yg=zg,Kg=Vg,$g=Fa,Jg=zn,Xg=Vn,Zg=Qr,em=1,tm="[object Arguments]",nm="[object Array]",rm="[object Object]",im=Object.prototype.hasOwnProperty;function am(e,t,n,r,i,a){var o=Jg(e),s=Jg(t),c=o?nm:$g(e),l=s?nm:$g(t),u=(c=c==tm?rm:c)==rm,h=(l=l==tm?rm:l)==rm,f=c==l;if(f&&Xg(e)){if(!Xg(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Wg),o||Zg(e)?qg(e,t,n,r,i,a):Yg(e,t,c,n,r,i,a);if(!(n&em)){var d=u&&im.call(e,"__wrapped__"),p=h&&im.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,m=p?t.value():t;return a||(a=new Wg),i(g,m,n,r,a)}}return!!f&&(a||(a=new Wg),Kg(e,t,n,r,i,a))}var om=am,sm=Bn;function cm(e,t,n,r,i){return e===t||(null==e||null==t||!sm(e)&&!sm(t)?e!=e&&t!=t:om(e,t,n,r,cm,i))}var lm=ln,um=cm,hm=1,fm=2;function dm(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],l=e[c],u=s[1];if(o&&s[2]){if(void 0===l&&!(c in e))return!1}else{var h=new lm;if(r)var f=r(l,u,c,e,t,h);if(!(void 0===f?um(u,l,hm|fm,r,h):f))return!1}}return!0}var pm=_e;function gm(e){return e==e&&!pm(e)}var mm=gm,vm=ui;function ym(e){for(var t=vm(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,mm(i)]}return t}function Am(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}var bm=dm,wm=ym,xm=Am;function Cm(e){var t=wm(e);return 1==t.length&&t[0][2]?xm(t[0][0],t[0][1]):function(n){return n===e||bm(n,e,t)}}var _m=$c;function Im(e,t,n){var r=null==e?void 0:_m(e,t);return void 0===r?n:r}function Em(e,t){return null!=e&&t in Object(e)}var km=zc,Sm=Fn,Bm=zn,Mm=Kn,Tm=Xn,Om=Wc;function Dm(e,t,n){for(var r=-1,i=(t=km(t,e)).length,a=!1;++r<i;){var o=Om(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Tm(i)&&Mm(o,i)&&(Bm(e)||Sm(e))}var Pm=Em,Lm=Dm;function Qm(e,t){return null!=e&&Lm(e,t,Pm)}var Rm=cm,jm=Im,Nm=Qm,Fm=gc,zm=gm,Hm=Am,Um=Wc,Gm=1,Vm=2;function Wm(e,t){return Fm(e)&&zm(t)?Hm(Um(e),t):function(n){var r=jm(n,e);return void 0===r&&r===t?Nm(n,e):Rm(t,r,Gm|Vm)}}function qm(e){return function(t){return null==t?void 0:t[e]}}var Ym=$c;function Km(e){return function(t){return Ym(t,e)}}var $m=qm,Jm=Km,Xm=gc,Zm=Wc;function ev(e){return Xm(e)?$m(Zm(e)):Jm(e)}var tv=Cm,nv=Wm,rv=zl,iv=zn,av=ev;function ov(e){return"function"==typeof e?e:null==e?rv:"object"==typeof e?iv(e)?nv(e[0],e[1]):tv(e):av(e)}var sv=Pl,cv=x,lv=Bl,uv=ov,hv=ip,fv=Br,dv=ip,pv=zn,gv=Math.min,mv=dv((function(e,t){var n=(t=1==t.length&&pv(t[0])?cv(t[0],fv(uv)):cv(lv(t,1),fv(uv))).length;return hv((function(r){for(var i=-1,a=gv(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return sv(e,this,r)}))})),vv=Vd,yv=Sf,Av=Lf,bv=32,wv=ip((function(e,t){var n=Av(t,yv(wv));return vv(e,bv,void 0,t,n)}));wv.placeholder={};var xv=wv,Cv=Vd,_v=Sf,Iv=Lf,Ev=64,kv=ip((function(e,t){var n=Iv(t,_v(kv));return Cv(e,Ev,void 0,t,n)}));kv.placeholder={};var Sv=kv,Bv=Vd,Mv=256,Tv=nu((function(e,t){return Bv(e,Mv,void 0,void 0,void 0,t)})),Ov=ip,Dv=Lu,Pv="Expected a function";function Lv(e,t){if("function"!=typeof e)throw new TypeError(Pv);return t=void 0===t?t:Dv(t),Ov(e,t)}var Qv=Lv,Rv=Xc;function jv(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Rv(e,t,n)}var Nv=Pl,Fv=qi,zv=ip,Hv=jv,Uv=Lu,Gv="Expected a function",Vv=Math.max;function Wv(e,t){if("function"!=typeof e)throw new TypeError(Gv);return t=null==t?0:Vv(Uv(t),0),zv((function(n){var r=n[t],i=Hv(n,0,t);return r&&Fv(i,r),Nv(e,this,i)}))}var qv=Qp,Yv=_e,Kv="Expected a function";function $v(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(Kv);return Yv(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),qv(e,t,{leading:r,maxWait:t,trailing:i})}var Jv=Kd;function Xv(e){return Jv(e,1)}var Zv=zl;function ey(e){return"function"==typeof e?e:Zv}var ty=ey,ny=xv;function ry(e,t){return ny(ty(t),e)}var iy={after:Nu,ary:Kd,before:Zd,bind:hp,bindKey:Ap,curry:Cp,curryRight:kp,debounce:Qp,defer:zp,delay:Gp,flip:Yp,memoize:Ac,negate:Jp,once:eg,overArgs:mv,partial:xv,partialRight:Sv,rearg:Tv,rest:Qv,spread:Wv,throttle:$v,unary:Xv,wrap:ry},ay=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"containerRef",staticClass:"vue-office-pdf",staticStyle:{"text-align":"center","overflow-y":"auto",position:"relative"},on:{scroll:e.onScrollPdf}},[n("div",{ref:"wrapperRef",staticClass:"vue-office-pdf-wrapper",staticStyle:{background:"gray",padding:"30px 0",position:"relative","box-sizing":"content-box"},style:{width:100*(e.userScale<1?1:e.userScale)+"%"}}),e._t("default")],2)},oy=[];function sy(e,t,n,r,i,a,o,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(e){!(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&"undefined"!=typeof __VUE_SSR_CONTEXT__&&(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const cy=`data:text/javascript;base64,${y(u)}`,ly=`data:text/javascript;base64,${y(l)}`;let uy=!1,hy=!1;const fy=e.defineComponent({name:"VueOfficePdf",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},staticFileUrl:{type:String,default:"https://unpkg.com/pdfjs-dist@3.1.81/"},options:{type:Object,default:()=>({})},defaultScale:{type:Number,default:1}},emits:["rendered","error"],setup(t,{emit:n}){let r=null,i=null;const a=e.ref(null),o=e.ref(null),c=e.ref([]),l=e.ref(0);let u=0,p=0,g=0,m=0,v=6,y=0,A=0,b=null,w=2,x=e.ref(t.options.defaultScale||1);function C(){return x}function _(e){x.value=e,B()}function I(){return f(cy).then((()=>{if(!window.pdfjsLib||hy)return Promise.reject("window.pdfjsLib未找到");hy=!0,window.pdfjsLib.GlobalWorkerOptions.workerSrc=ly}))}function E(){return new Promise((e=>{const t=()=>{window.pdfjsLib?e():b=setTimeout(t,10)};t()}))}function k(){return window.pdfjsLib?Promise.resolve():uy?E():(uy=!0,I())}function S(){o.value.innerHTML=""}function B(){if(!t.src)return S(),void n("error",new Error("src不能为空"));i=window.pdfjsLib.getDocument(s({url:h(t.src,{type:"application/pdf"}),withCredentials:t.requestOptions&&t.requestOptions.withCredentials,cMapUrl:`${t.staticFileUrl.endsWith("/")?t.staticFileUrl:t.staticFileUrl+"/"}cmaps/`,cMapPacked:!0,enableXfa:!0},du(t.options,["width"]))),i.promise.then((e=>{r&&r.destroy(),r=e,M(r).then((e=>{u=r.numPages,m=a.value.getBoundingClientRect().height,p=e.width,g=e.height,y=e.canvasWidth,A=e.canvasHeight;let n=t.options.gap||10;v=Math.ceil(m/(g+n))+4;let i=(g+n)*u-n;o.value.style.height=i+"px",S(),D(1,Math.min(u,v))}))})).catch((e=>{n("error",e)}))}function M(e){return e.getPage(1).then((e=>{let n=t.options.width||o.value.getBoundingClientRect().width-20,r=e.getViewport({scale:1});w=r.width>2*n?.5:r.width>n?1:2,r=e.getViewport({scale:w*(x.value<1?x.value:1)});const i=window.devicePixelRatio>2?1.5:2;let a=Math.floor(r.width*i),s=Math.floor(r.height*i),c=Math.floor(r.width),l=Math.floor(r.height);if(t.options.width){let e=t.options.width/c;c=Math.floor(t.options.width),l=Math.floor(l*e)}let u=o.value.getBoundingClientRect().width-20;if(c>u){let e=u/c;c=Math.floor(u),l=Math.floor(l*e)}return{width:c,height:l,canvasWidth:a,canvasHeight:s}})).catch((e=>{n("error",e)}))}e.onBeforeUnmount((()=>{null!==r&&(r.destroy(),r=null,i=null,b&&clearTimeout(b))}));const T=iy.debounce((function(e){const{scrollTop:n}=e.target;let r=parseInt(getComputedStyle(o.value).paddingTop)||0;const i=t.options.gap||10,a=Math.max(Math.floor(Math.max(n-r,0)/(g+i))-1,1);D(a,Math.min(a+v-1,u))}),60);function O(e){let n=parseInt(getComputedStyle(o.value).paddingTop)||0,r=t.options.gap||10;const i=document.createElement("canvas");return i.style.position="absolute",i.style.top=(e-1)*(g+r)+n+"px",i.style.left="50%",i.style.transform="translate(-50%)",i.style.backgroundColor="#fff",i.setAttribute("data-id",e),i.width=y,i.height=A,i.style.width=`${p}px`,i.style.height=`${g}px`,i}function D(e,t){let r=o.value,i=[...r.childNodes],a=[];if(0===r.childNodes.length)for(let n=e;n<=t;n++){let e=O(n);r.appendChild(e),a.push(P(n,e))}else{let n=+i[0].getAttribute("data-id"),o=+i[i.length-1].getAttribute("data-id");if(t<n||e>o)for(let n=e;n<=t;n++){let e=O(n);r.appendChild(e),a.push(P(n,e))}if(e<n&&t>=n){let t=i[0];for(let i=n-1;i>=e;i--){let e=O(i);r.insertBefore(e,t),t=e,a.push(P(i,e))}}for(let a=0;a<=o-n;a++){let n=+i[a].getAttribute("data-id");(n<e||n>t)&&r.removeChild(i[a])}if(t>o&&e<=o)for(let e=o+1;e<=t;e++){let t=O(e);r.appendChild(t),a.push(P(e,t))}}Promise.all(a).then((e=>{n("rendered")})).catch((e=>{n("error",e)}))}function P(e,t){return r.getPage(e).then((e=>{const n=e.getViewport({scale:w*(x.value<1?x.value:1)});let r=window.devicePixelRatio>2?1.5:2;if(y*n.height!=A*n.width){let e=Math.floor(n.width*r),i=Math.floor(n.height*r),a=A/i;r*=a,t.width=e*a,t.style.width=parseInt(t.style.width)*a+"px"}const i=t.getContext("2d"),a=1!==r?[r,0,0,r,0,0]:null;return e.render({canvasContext:i,transform:a,viewport:n}).promise}))}function L(){D(1,Math.min(u,v))}function Q(e){r&&r._transport&&r._transport.getData().then((t=>{d(e||`vue-office-pdf-${(new Date).getTime()}.pdf`,t.buffer)}))}return e.onMounted((()=>{t.src&&k().then(B).catch((e=>{}))})),e.watch((()=>t.src),(()=>{k().then(B).catch((e=>{}))})),{containerRef:a,wrapperRef:o,rootRef:c,numPages:l,save:Q,onScrollPdf:T,rerender:L,userScale:x,getScale:C,setScale:_}}}),dy={};var py=sy(fy,ay,oy,!1,gy,null,null,null);function gy(e){for(let e in dy)this[e]=dy[e]}const my=py.exports;return my.install=function(e){e.component(my.name,my)},my}(n("8afd"));
/* WEBPACK VAR INJECTION */}).call(this,n("c8ba"))
/***/},
/***/a157:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/a15a:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"d",(function(){return y})),
/* harmony export (binding) */n.d(t,"a",(function(){return w})),
/* harmony export (binding) */n.d(t,"c",(function(){return x})),
/* harmony export (binding) */n.d(t,"b",(function(){return C}));
/* harmony import */var r=n("6d8b"),i=n("cbe5"),a=n("cb11"),o=n("c7a2"),s=n("d9fc"),c=n("2306"),l=n("9850"),u=n("e86a"),h=n("3842"),f=i.b.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),d=i.b.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),p=i.b.extend({type:"pin",shape:{
// x, y on the cusp
x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,h=Math.sin(l),f=Math.cos(l),d=.6*o,p=.7*o;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,2*Math.PI+l),e.bezierCurveTo(n+u-h*d,c+s+f*d,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-u+h*d,c+s+f*d,n-u,c+s),e.closePath()}}),g=i.b.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),m={line:a.a,rect:o.a,roundRect:o.a,square:o.a,circle:s.a,diamond:d,pin:p,arrow:g,triangle:f},v={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){
// Put circle in the center of square
i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},y={};
/* harmony import */Object(r.each)(m,(function(e,t){y[t]=new e}));var A=i.b.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Object(u.c)(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=y[r];i||(i=y[
// Default rect
r="rect"]),v[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});
// Provide setColor helper method to avoid determine if set the fill or stroke outside
function b(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",
// TODO Same width with lineStyle in LineView
n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}
/**
 * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
 */function w(e,t,n,r,i,a,
// whether to keep the ratio of w/h,
o){
// TODO Support image object, DynamicImage.
var s,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?c.makeImage(e.slice(8),new l.a(t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?c.makePath(e.slice(7),{},new l.a(t,n,r,i),o?"center":"cover"):new A({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=u,
// TODO Should deprecate setColor
s.setColor=b,a&&s.setColor(a),s}function x(e){return Object(r.isArray)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function C(e,t){if(null!=e)return Object(r.isArray)(e)||(e=[e,e]),[Object(h.q)(e[0],t[0])||0,Object(h.q)(Object(r.retrieve2)(e[1],e[0]),t[1])||0]}
/***/},
/***/a15b:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("44ad"),o=n("fc6a"),s=n("a640"),c=i([].join);
// `Array.prototype.join` method
// https://tc39.es/ecma262/#sec-array.prototype.join
r({target:"Array",proto:!0,forced:a!==Object||!s("join",",")},{join:function(e){return c(o(this),void 0===e?",":e)}})},
/***/a187:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js + 2 modules
var r=n("f0ce"),i=n("26ce"),a=n("1147"),o={};
// EXTERNAL MODULE: ./node_modules/lodash-es/isLength.js
o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;
/* harmony default export */var s=
/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function(e){return Object(a.a)(e)&&Object(i.a)(e.length)&&!!o[Object(r.a)(e)]},c=n("a2fb"),l=n("c6eb"),u=l.a&&l.a.isTypedArray,h=u?Object(c.a)(u):s;
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseUnary.js
t.a=h},
/***/a1f0:
/***/function(e,t,n){"use strict";
/* eslint-disable es/no-string-prototype-matchall -- safe */var r=n("23e7"),i=n("c65b"),a=n("4625"),o=n("dcc3"),s=n("4754"),c=n("1d80"),l=n("50c4"),u=n("577e"),h=n("825a"),f=n("7234"),d=n("c6b6"),p=n("44e7"),g=n("90d8"),m=n("dc4a"),v=n("cb2d"),y=n("d039"),A=n("b622"),b=n("4840"),w=n("8aa5"),x=n("14c3"),C=n("69f3"),_=n("c430"),I=A("matchAll"),E="RegExp String",k=E+" Iterator",S=C.set,B=C.getterFor(k),M=RegExp.prototype,T=TypeError,O=a("".indexOf),D=a("".matchAll),P=!!D&&!y((function(){D("a",/./)})),L=o((function(e,t,n,r){S(this,{type:k,regexp:e,string:t,global:n,unicode:r,done:!1})}),E,(function(){var e=B(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=x(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===u(r[0])&&(t.lastIndex=w(n,l(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),Q=function(e){var t,n,r,i=h(this),a=u(e),o=b(i,RegExp),s=u(g(i));return t=new o(o===RegExp?i.source:i,s),n=!!~O(s,"g"),r=!!~O(s,"u"),t.lastIndex=l(i.lastIndex),new L(t,a,n,r)};
// `String.prototype.matchAll` method
// https://tc39.es/ecma262/#sec-string.prototype.matchall
r({target:"String",proto:!0,forced:P},{matchAll:function(e){var t,n,r,a,o=c(this);if(f(e)){if(P)return D(o,e)}else{if(p(e)&&(t=u(c(g(e))),!~O(t,"g")))throw new T("`.matchAll` does not allow non-global regexes");if(P)return D(o,e);if(void 0===(r=m(e,I))&&_&&"RegExp"===d(e)&&(r=Q),r)return i(r,e,o)}return n=u(o),a=new RegExp(e,"g"),_?i(Q,a,n):a[I](n)}}),_||I in M||v(M,I,Q)},
/***/a243:
/***/function(e,t){var n,r={};// {[url]: {id,colors}}
e.exports={_tryNum:0,changeColor:function(e,t){var i=window,a=t||i.Promise,o=this;if(!n){n=i.__theme_COLOR_cfg;var s=function(){if(!n){if(o._tryNum<9)return o._tryNum=o._tryNum+1,new a((function(n,r){setTimeout((function(){n(o.changeColor(e,t))}),100)}));n={}}}();
//重试直到theme_COLOR_config加载
if(s)return s}var c=e.oldColors||n.colors||[],l=e.newColors||[],u=n.url||e.cssUrl;return e.changeUrl&&(u=e.changeUrl(u)),new a((function(t,n){var i=r[u];//url可能被changeUrl改变
i&&(
//之前已替换过
c=i.colors),function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}
/***/(c,l)?t():function(t,n,i,a){var s=t&&document.getElementById(t.id);if(s&&t.colors)h(s.innerText),t.colors=l,i();else{
//第一次替换
var u="css_"+ +new Date;(s=document.querySelector(e.appendToEl||"body").appendChild(document.createElement("style"))).setAttribute("id",u),o.getCssString(n,(function(e){h(e),r[n]={id:u,colors:l},i()}),a)}function h(e){e=o.replaceCssText(e,c,l),s.innerText=e}}(i,u,t,n)}))},replaceCssText:function(e,t,n){return t.forEach((function(t,r){
//#222、#222223、#22222350、222, 255,3 => #333、#333334、#33333450、211,133,53、hsl(27, 92.531%, 52.745%)
var i=new RegExp(t.replace(/\s/g,"").replace(/,/g,",\\s*")+"([\\da-f]{2})?(\\b|\\)|,|\\s)","ig");e=e.replace(i,n[r]+"$1$2");// 255, 255,3
})),e},getCssString:function(e,t,n){var r=window.__theme_COLOR_css;if(r)
// css已内嵌在js中
return window.__theme_COLOR_css="",void t(r);var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&(200===i.status?t(i.responseText):n(i.status))},i.onerror=function(e){n(e)},i.ontimeout=function(e){n(e)},i.open("GET",e),i.send()}}},
/***/a2be:
/***/function(e,t,n){var r=n("d612"),i=n("4284"),a=n("c584");
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function(e,t,n,o,s,c){var l=1&n,u=e.length,h=t.length;if(u!=h&&!(l&&h>u))return!1;
// Check that cyclic values are equal.
var f=c.get(e),d=c.get(t);if(f&&d)return f==t&&d==e;var p=-1,g=!0,m=2&n?new r:void 0;
// Ignore non-index properties.
for(c.set(e,t),c.set(t,e);++p<u;){var v=e[p],y=t[p];if(o)var A=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(void 0!==A){if(A)continue;g=!1;break}
// Recursively compare arrays (susceptible to call stack limits).
if(m){if(!i(t,(function(e,t){if(!a(m,t)&&(v===e||s(v,e,n,o,c)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,o,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},
/***/a2bf:
/***/function(e,t,n){"use strict";var r=n("e8b5"),i=n("07fa"),a=n("3511"),o=n("0366"),s=function(e,t,n,c,l,u,h,f){for(var d,p,g=l,m=0,v=!!h&&o(h,f);m<c;)m in n&&(d=v?v(n[m],m,t):n[m],u>0&&r(d)?(p=i(d),g=s(e,t,d,p,g,u-1)-1):(a(g+1),e[g]=d),g++),m++;return g};e.exports=s},
/***/a2cc:
/***/function(e,t,n){"use strict";
// https://github.com/tc39/Array.prototype.includes
var r=n("f083"),i=n("27c4")(!0);r(r.P,"Array",{includes:function(e/* , fromIndex = 0 */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("66b7")("includes")},
/***/a2db:
/***/function(e,t,n){var r=n("9e69"),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;
/** Used to convert symbols to primitives and strings. */e.exports=
/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function(e){return a?Object(a.call(e)):{}}},
/***/a2fb:
/***/function(e,t,n){"use strict";
/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
/* harmony default export */t.a=function(e){return function(t){return e(t)}}},
/***/a34a:
/***/function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
// TODO(Babel 8): Remove this file.
n("a4d3"),n("e01a"),n("d28b"),n("6c57"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("7ec2")();e.exports=i;
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
try{regeneratorRuntime=i}catch(e){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}
/***/},
/***/a37b:
/***/function(e,t,n){var r=n("5155"),i=n("de24")("iterator"),a=n("c053");e.exports=n("0ae2").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},
/***/a395:
/***/function(e,t,n){var r=n("7037").default,i=n("e50d");e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/a3a2:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/babel-helper-vue-jsx-merge-props/index.js
var r=n("92fa"),i=n.n(r),a=n("1098"),o=n.n(a),s=n("6042"),c=n.n(s),l=n("41b2"),u=n.n(l),h=n("0464"),f=n("4d91"),d=n("8496"),p=n("18a7"),g=n("e90a"),m=n("1462"),v={adjustX:1,adjustY:1},y={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:v,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:v,offset:[4,0]}},A=n("b488"),b=n("daa3"),w=n("d41d"),x=n("2b89"),C=n("94eb"),_=0,I={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},E=function(e,t,n){var r=Object(x.b)(t),i=e.getState();e.setState({defaultActiveFirst:u()({},i.defaultActiveFirst,c()({},r,n))})},k={name:"SubMenu",props:{parentMenu:f.a.object,title:f.a.any,selectedKeys:f.a.array.def([]),openKeys:f.a.array.def([]),openChange:f.a.func.def(x.h),rootPrefixCls:f.a.string,eventKey:f.a.oneOfType([f.a.string,f.a.number]),multiple:f.a.bool,active:f.a.bool,// TODO: remove
isRootMenu:f.a.bool.def(!1),index:f.a.number,triggerSubMenuAction:f.a.string,popupClassName:f.a.string,getPopupContainer:f.a.func,forceSubMenuRender:f.a.bool,openAnimation:f.a.oneOfType([f.a.string,f.a.object]),disabled:f.a.bool,subMenuOpenDelay:f.a.number.def(.1),subMenuCloseDelay:f.a.number.def(.1),level:f.a.number.def(1),inlineIndent:f.a.number.def(24),openTransitionName:f.a.string,popupOffset:f.a.array,isOpen:f.a.bool,store:f.a.object,mode:f.a.oneOf(["horizontal","vertical","vertical-left","vertical-right","inline"]).def("vertical"),manualRef:f.a.func.def(x.h),builtinPlacements:f.a.object.def((function(){return{}})),itemIcon:f.a.any,expandIcon:f.a.any,subMenuKey:f.a.string},mixins:[A.a],isSubMenu:!0,data:function(){var e=this.$props,t=e.store,n=e.eventKey,r=t.getState().defaultActiveFirst,i=!1;return r&&(i=r[n]),E(t,n,i),{}},mounted:function(){var e=this;this.$nextTick((function(){e.handleUpdated()}))},updated:function(){var e=this;this.$nextTick((function(){e.handleUpdated()}))},beforeDestroy:function(){var e=this.eventKey;this.__emit("destroy",e),
/* istanbul ignore if */
this.minWidthTimeout&&(Object(w.a)(this.minWidthTimeout),this.minWidthTimeout=null)
/* istanbul ignore if */,this.mouseenterTimeout&&(Object(w.a)(this.mouseenterTimeout),this.mouseenterTimeout=null)},methods:{handleUpdated:function(){var e=this,t=this.$props,n=t.mode,r=t.parentMenu,i=t.manualRef;
// invoke customized ref to expose component to mixin
i&&i(this),"horizontal"===n&&r.isRootMenu&&this.isOpen&&(this.minWidthTimeout=Object(w.b)((function(){return e.adjustWidth()}),0))},onKeyDown:function(e){var t=e.keyCode,n=this.menuInstance,r=this.$props,i=r.store,a=r.isOpen;if(t===p.a.ENTER)return this.onTitleClick(e),E(i,this.eventKey,!0),!0;if(t===p.a.RIGHT)return a?n.onKeyDown(e):(this.triggerOpenChange(!0),
// need to update current menu's defaultActiveFirst value
E(i,this.eventKey,!0)),!0;if(t===p.a.LEFT){var o=void 0;if(!a)return;return(o=n.onKeyDown(e))||(this.triggerOpenChange(!1),o=!0),o}return!a||t!==p.a.UP&&t!==p.a.DOWN?void 0:n.onKeyDown(e)},onPopupVisibleChange:function(e){this.triggerOpenChange(e,e?"mouseenter":"mouseleave")},onMouseEnter:function(e){var t=this.$props,n=t.eventKey,r=t.store;E(r,n,!1),this.__emit("mouseenter",{key:n,domEvent:e})},onMouseLeave:function(e){var t=this.eventKey;this.parentMenu.subMenuInstance=this,
// parentMenu.subMenuLeaveFn = () => {
// // trigger mouseleave
//   this.__emit('mouseleave', {
//     key: eventKey,
//     domEvent: e,
//   })
// }
this.__emit("mouseleave",{key:t,domEvent:e})},onTitleMouseEnter:function(e){var t=this.$props.eventKey;
// this.clearSubMenuTitleLeaveTimer()
this.__emit("itemHover",{key:t,hover:!0}),this.__emit("titleMouseenter",{key:t,domEvent:e})},onTitleMouseLeave:function(e){var t=this.eventKey;this.parentMenu.subMenuInstance=this,this.__emit("itemHover",{key:t,hover:!1}),this.__emit("titleMouseleave",{key:t,domEvent:e})},onTitleClick:function(e){var t=this.$props,n=t.triggerSubMenuAction,r=t.eventKey,i=t.isOpen,a=t.store;this.__emit("titleClick",{key:r,domEvent:e}),"hover"!==n&&(this.triggerOpenChange(!i,"click"),E(a,r,!1))},onSubMenuClick:function(e){this.__emit("click",this.addKeyPath(e))},getPrefixCls:function(){return this.$props.rootPrefixCls+"-submenu"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},getSelectedClassName:function(){return this.getPrefixCls()+"-selected"},getOpenClassName:function(){return this.$props.rootPrefixCls+"-submenu-open"},saveMenuInstance:function(e){
// children menu instance
this.menuInstance=e},addKeyPath:function(e){return u()({},e,{keyPath:(e.keyPath||[]).concat(this.$props.eventKey)})},
// triggerOpenChange (open, type) {
//   const key = this.$props.eventKey
//   this.__emit('openChange', {
//     key,
//     item: this,
//     trigger: type,
//     open,
//   })
// },
triggerOpenChange:function(e,t){var n=this,r=this.$props.eventKey,i=function(){n.__emit("openChange",{key:r,item:n,trigger:t,open:e})};"mouseenter"===t?
// make sure mouseenter happen after other menu item's mouseleave
this.mouseenterTimeout=Object(w.b)((function(){i()}),0):i()},isChildrenSelected:function(){var e={find:!1};return Object(x.f)(this.$slots.default,this.$props.selectedKeys,e),e.find},
// isOpen () {
//   return this.$props.openKeys.indexOf(this.$props.eventKey) !== -1
// },
adjustWidth:function(){
/* istanbul ignore if */
if(this.$refs.subMenuTitle&&this.menuInstance){var e=this.menuInstance.$el;e.offsetWidth>=this.$refs.subMenuTitle.offsetWidth||(
/* istanbul ignore next */
e.style.minWidth=this.$refs.subMenuTitle.offsetWidth+"px")}},renderChildren:function(e){var t=this.$createElement,n=this.$props,r=Object(b.k)(this),a=r.select,s=r.deselect,c=r.openChange,l={props:{mode:"horizontal"===n.mode?"vertical":n.mode,visible:n.isOpen,level:n.level+1,inlineIndent:n.inlineIndent,focusable:!1,selectedKeys:n.selectedKeys,eventKey:n.eventKey+"-menu-",openKeys:n.openKeys,openTransitionName:n.openTransitionName,openAnimation:n.openAnimation,subMenuOpenDelay:n.subMenuOpenDelay,parentMenu:this,subMenuCloseDelay:n.subMenuCloseDelay,forceSubMenuRender:n.forceSubMenuRender,triggerSubMenuAction:n.triggerSubMenuAction,builtinPlacements:n.builtinPlacements,defaultActiveFirst:n.store.getState().defaultActiveFirst[Object(x.b)(n.eventKey)],multiple:n.multiple,prefixCls:n.rootPrefixCls,manualRef:this.saveMenuInstance,itemIcon:Object(b.g)(this,"itemIcon"),expandIcon:Object(b.g)(this,"expandIcon"),children:e},on:{click:this.onSubMenuClick,select:a,deselect:s,openChange:c},id:this.internalMenuId},h=l.props,f=this.haveRendered;
// never rendered not planning to, don't render
if(this.haveRendered=!0,this.haveOpened=this.haveOpened||h.visible||h.forceSubMenuRender,!this.haveOpened)return t("div");
// don't show transition on first rendering (no animation for opened menu)
// show appear transition if it's not visible (not sure why)
// show appear transition if it's not inline mode
var d=f||!h.visible||"inline"===!h.mode;l.class=" "+h.prefixCls+"-sub";var p={appear:d,css:!1},g={props:p,on:{}};return h.openTransitionName?g=Object(C.a)(h.openTransitionName,{appear:d}):"object"===o()(h.openAnimation)?(p=u()({},p,h.openAnimation.props||{}),d||(p.appear=!1)):"string"==typeof h.openAnimation&&(g=Object(C.a)(h.openAnimation,{appear:d})),"object"===o()(h.openAnimation)&&h.openAnimation.on&&(g.on=h.openAnimation.on),t("transition",g,[t(m.a,i()([{directives:[{name:"show",value:n.isOpen}]},l]))])}},render:function(){var e,t,n=arguments[0],r=this.$props,a=this.rootPrefixCls,o=this.parentMenu,s=r.isOpen,l=this.getPrefixCls(),f="inline"===r.mode,p=(e={},c()(e,l,!0),c()(e,l+"-"+r.mode,!0),c()(e,this.getOpenClassName(),s),c()(e,this.getActiveClassName(),r.active||s&&!f),c()(e,this.getDisabledClassName(),r.disabled),c()(e,this.getSelectedClassName(),this.isChildrenSelected()),e);this.internalMenuId||(r.eventKey?this.internalMenuId=r.eventKey+"$Menu":this.internalMenuId="$__$"+ ++_+"$Menu");var g={},m={},v={};r.disabled||(g={mouseleave:this.onMouseLeave,mouseenter:this.onMouseEnter},
// only works in title, not outer li
m={click:this.onTitleClick},v={mouseenter:this.onTitleMouseEnter,mouseleave:this.onTitleMouseLeave});var A={};f&&(A.paddingLeft=r.inlineIndent*r.level+"px");var w={};
// only set aria-owns when menu is open
// otherwise it would be an invalid aria-owns value
// since corresponding node cannot be found
s&&(w={"aria-owns":this.internalMenuId});var x={attrs:u()({"aria-expanded":s},w,{"aria-haspopup":"true",title:"string"==typeof r.title?r.title:void 0}),on:u()({},v,m),style:A,class:l+"-title",ref:"subMenuTitle"},C=null;
// expand custom icon should NOT be displayed in menu with horizontal mode.
"horizontal"!==r.mode&&(C=Object(b.g)(this,"expandIcon",r));var E=n("div",x,[Object(b.g)(this,"title"),C||n("i",{class:l+"-arrow"})]),k=this.renderChildren(Object(b.c)(this.$slots.default)),S=this.parentMenu.isRootMenu?this.parentMenu.getPopupContainer:function(e){return e.parentNode},B=I[r.mode],M=r.popupOffset?{offset:r.popupOffset}:{},T="inline"===r.mode?"":r.popupClassName,O={on:u()({},Object(h.a)(Object(b.k)(this),["click"]),g),class:p};return n("li",i()([O,{attrs:{role:"menuitem"}}]),[f&&E,f&&k,!f&&n(d.a,{attrs:(t={prefixCls:l,popupClassName:l+"-popup "+a+"-"+o.theme+" "+(T||""),getPopupContainer:S,builtinPlacements:y},c()(t,"builtinPlacements",u()({},y,r.builtinPlacements)),c()(t,"popupPlacement",B),c()(t,"popupVisible",s),c()(t,"popupAlign",M),c()(t,"action",r.disabled?[]:[r.triggerSubMenuAction]),c()(t,"mouseEnterDelay",r.subMenuOpenDelay),c()(t,"mouseLeaveDelay",r.subMenuCloseDelay),c()(t,"forceRender",r.forceSubMenuRender),t),on:{popupVisibleChange:this.onPopupVisibleChange}},[n("template",{slot:"popup"},[k]),E])])}},S=Object(g.a)((function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,a=t.eventKey,o=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:r[o]===a,selectedKeys:i}}))(k);S.isSubMenu=!0;
/* harmony default export */t.a=S;
/***/},
/***/a3d8:
/***/function(e,t,n){
// 20.1.2.1 Number.EPSILON
var r=n("f083");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},
/***/a406:
/***/function(e,t,n){"use strict";var r=n("911a"),i=n("f083"),a=n("42ee"),o=n("e5aa"),s=n("c786"),c=n("6373"),l=n("52d5"),u=n("a37b");i(i.S+i.F*!n("ebe8")((function(e){Array.from(e)})),"Array",{
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from:function(e/* , mapfn = undefined, thisArg = undefined */){var t,n,i,h,f=a(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=u(f);
// if object isn't iterable or it's array with default iterator - use simple case
if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),null==y||d==Array&&s(y))for(n=new d(t=c(f.length));t>v;v++)l(n,v,m?g(f[v],v):f[v]);else for(h=y.call(f),n=new d;!(i=h.next()).done;v++)l(n,v,m?o(h,g,[i.value,v],!0):i.value);return n.length=v,n}})},
/***/a434:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),a=n("23cb"),o=n("5926"),s=n("07fa"),c=n("3a34"),l=n("3511"),u=n("65f0"),h=n("8418"),f=n("083a"),d=n("1dde")("splice"),p=Math.max,g=Math.min;
// `Array.prototype.splice` method
// https://tc39.es/ecma262/#sec-array.prototype.splice
// with adding support of @@species
r({target:"Array",proto:!0,forced:!d},{splice:function(e,t/* , ...items */){var n,r,d,m,v,y,A=i(this),b=s(A),w=a(e,b),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=b-w):(n=x-2,r=g(p(o(t),0),b-w)),l(b+n-r),d=u(A,r),m=0;m<r;m++)(v=w+m)in A&&h(d,m,A[v]);if(d.length=r,n<r){for(m=w;m<b-r;m++)y=m+n,(v=m+r)in A?A[y]=A[v]:f(A,y);for(m=b;m>b-r+n;m--)f(A,m-1)}else if(n>r)for(m=b-r;m>w;m--)y=m+n-1,(v=m+r-1)in A?A[y]=A[v]:f(A,y);for(m=0;m<n;m++)A[m+w]=arguments[m+2];return c(A,b-r+n),d}})},
/***/a43b:
/***/function(e,t,n){t.f=n("de24");
/***/},
/***/a454:
/***/function(e,t,n){var r=n("72f0"),i=n("3b4a"),a=n("cd9d"),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;
/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */e.exports=o},
/***/a48b:
/***/function(e,t,n){var r=n("0497"),i=function(e){var t="",n=Object.keys(e);return n.forEach((function(i,a){var o=e[i];
// Add px to dimension features
(function(e){return/[height|width]$/.test(e)})(i=r(i))&&"number"==typeof o&&(o+="px"),t+=!0===o?i:!1===o?"not "+i:"("+i+": "+o+")",a<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:
// Handling array of media queries
e instanceof Array?(e.forEach((function(n,r){t+=i(n),r<e.length-1&&(t+=", ")})),t):i(e)}},
/***/a4b5:
/***/function(e,t,n){n("1b1e")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/a4d3:
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},
/***/a4e7:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("395e");
// `Set.prototype.isSupersetOf` method
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isSupersetOf",(function(e){return!e}))},{isSupersetOf:i})},
/***/a524:
/***/function(e,t,n){n("1cb7")("asyncIterator");
/***/},
/***/a5245:
/***/function(e,t,n){var r=n("4245");
/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */e.exports=function(e){return r(this,e).has(e)}},
/***/a55c:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("63bc"),i=n("26ee"),a=Object(r.a)(i.a,"Set");
/* harmony import */
/* harmony default export */t.a=a},
/***/a573:
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("ab43")},
/***/a581:
/***/function(e,t,n){
// 20.2.2.12 Math.cosh(x)
var r=n("f083"),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},
/***/a5e2:
/***/function(e,t,n){
// 19.1.3.19 Object.setPrototypeOf(O, proto)
var r=n("f083");r(r.S,"Object",{setPrototypeOf:n("4759").set})},
/***/a5f7:
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27"),a=n("83b9"),o=n("8e16"),s=n("7f65"),c=n("384f"),l=n("5388"),u=i.has,h=i.remove;
// `Set.prototype.difference` method
// https://github.com/tc39/proposal-set-methods
e.exports=function(e){var t=r(this),n=s(e),i=a(t);return o(t)<=n.size?c(t,(function(e){n.includes(e)&&h(i,e)})):l(n.getIterator(),(function(e){u(t,e)&&h(i,e)})),i}},
/***/a630:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("4df4");
// `Array.from` method
// https://tc39.es/ecma262/#sec-array.from
r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){
// eslint-disable-next-line es/no-array-from -- required for testing
Array.from(e)}))},{from:i})},
/***/a640:
/***/function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){
// eslint-disable-next-line no-useless-call -- required for testing
n.call(null,t||function(){return 1},1)}))}},
/***/a724:
/***/function(e,t,n){"use strict";
/** Used for built-in method references. */var r=Object.prototype;
/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
/* harmony default export */t.a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},
/***/a732:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("59ed"),o=n("825a"),s=n("46c4");
// `Iterator.prototype.some` method
// https://tc39.es/ecma262/#sec-iterator.prototype.some
r({target:"Iterator",proto:!0,real:!0},{some:function(e){o(this),a(e);var t=s(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},
/***/a736:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mergeColor",{enumerable:!0,get:function(){return r.mergeColor}}),Object.defineProperty(t,"title",{enumerable:!0,get:function(){return i.title}}),Object.defineProperty(t,"grid",{enumerable:!0,get:function(){return a.grid}}),Object.defineProperty(t,"axis",{enumerable:!0,get:function(){return o.axis}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return s.line}}),Object.defineProperty(t,"bar",{enumerable:!0,get:function(){return c.bar}}),Object.defineProperty(t,"pie",{enumerable:!0,get:function(){return l.pie}}),Object.defineProperty(t,"radarAxis",{enumerable:!0,get:function(){return u.radarAxis}}),Object.defineProperty(t,"radar",{enumerable:!0,get:function(){return h.radar}}),Object.defineProperty(t,"gauge",{enumerable:!0,get:function(){return f.gauge}}),Object.defineProperty(t,"legend",{enumerable:!0,get:function(){return d.legend}});var r=n("8a1d"),i=n("873c"),a=n("46bb"),o=n("0680"),s=n("252f"),c=n("204e"),l=n("729e"),u=n("a143"),h=n("4eb1"),f=n("1f55"),d=n("60f7")},
/***/a78e:
/***/function(e,t,n){var r,i;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(a){if(void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i),e.exports=a(),!!0){var o=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=o,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},i.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),
// We're using "expires" because "max-age" is not supported by IE
a.expires=a.expires?a.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,!0!==a[c]&&(
// Considers RFC 6265 section 5.2:
// ...
// 3.  If the remaining unparsed-attributes contains a %x3B (";")
//     character:
// Consume the characters of the unparsed-attributes up to,
// not including, the first %x3B (";") character.
// ...
s+="="+a[c].split(";")[0]));return document.cookie=t+"="+n+s}}function o(e,n){if("undefined"!=typeof document){for(var i={},a=document.cookie?document.cookie.split("; "):[],o=0
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all.
;o<a.length;o++){var s=a[o].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(r.read||r)(c,l)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(i[l]=c,e===l)break}catch(e){}}return e?i[e]:i}}return i.set=a,i.get=function(e){return o(e,!1/* read as raw */)},i.getJSON=function(e){return o(e,!0/* read as json */)},i.remove=function(t,n){a(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},
/***/a798:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("42ee"),a=n("2ce8"),o=n("2761");
// B.2.2.2 Object.prototype.__defineGetter__(P, getter)
n("c94e")&&r(r.P+n("ac60"),"Object",{__defineGetter__:function(e,t){o.f(i(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},
/***/a79d:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("d256"),o=n("d039"),s=n("d066"),c=n("1626"),l=n("4840"),u=n("cdf9"),h=n("cb2d"),f=a&&a.prototype;
// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
if(
// `Promise.prototype.finally` method
// https://tc39.es/ecma262/#sec-promise.prototype.finally
r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){
// eslint-disable-next-line unicorn/no-thenable -- required for testing
f.finally.call({then:function(){/* empty */}},(function(){/* empty */}))}))},{finally:function(e){var t=l(this,s("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&c(a)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}
/***/},
/***/a7be:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/a870:
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t),
// EXPORTS
n.d(t,"darken",(function(){/* binding */return g})),n.d(t,"fade",(function(){/* binding */return v})),n.d(t,"getColorFromRgbValue",(function(){/* binding */return p})),n.d(t,"getOpacity",(function(){/* binding */return u})),n.d(t,"getRgbValue",(function(){/* binding */return l})),n.d(t,"getRgbaValue",(function(){/* binding */return h})),n.d(t,"isHex",(function(){/* binding */return i})),n.d(t,"isRgb",(function(){/* binding */return a})),n.d(t,"isRgbOrRgba",(function(){/* binding */return s})),n.d(t,"isRgba",(function(){/* binding */return o})),n.d(t,"lighten",(function(){/* binding */return m})),n.d(t,"toHex",(function(){/* binding */return d})),n.d(t,"toRgb",(function(){/* binding */return f}));
// CONCATENATED MODULE: ./node_modules/@jiaminghi/color/es/config/keywords.mjs
var r=(e=>(e.transparent="rgba(0,0,0,0)",e.black="#000000",e.silver="#C0C0C0",e.gray="#808080",e.white="#FFFFFF",e.maroon="#800000",e.red="#FF0000",e.purple="#800080",e.fuchsia="#FF00FF",e.green="#008000",e.lime="#00FF00",e.olive="#808000",e.yellow="#FFFF00",e.navy="#000080",e.blue="#0000FF",e.teal="#008080",e.aqua="#00FFFF",e.aliceblue="#f0f8ff",e.antiquewhite="#faebd7",e.aquamarine="#7fffd4",e.azure="#f0ffff",e.beige="#f5f5dc",e.bisque="#ffe4c4",e.blanchedalmond="#ffebcd",e.blueviolet="#8a2be2",e.brown="#a52a2a",e.burlywood="#deb887",e.cadetblue="#5f9ea0",e.chartreuse="#7fff00",e.chocolate="#d2691e",e.coral="#ff7f50",e.cornflowerblue="#6495ed",e.cornsilk="#fff8dc",e.crimson="#dc143c",e.cyan="#00ffff",e.darkblue="#00008b",e.darkcyan="#008b8b",e.darkgoldenrod="#b8860b",e.darkgray="#a9a9a9",e.darkgreen="#006400",e.darkgrey="#a9a9a9",e.darkkhaki="#bdb76b",e.darkmagenta="#8b008b",e.darkolivegreen="#556b2f",e.darkorange="#ff8c00",e.darkorchid="#9932cc",e.darkred="#8b0000",e.darksalmon="#e9967a",e.darkseagreen="#8fbc8f",e.darkslateblue="#483d8b",e.darkslategray="#2f4f4f",e.darkslategrey="#2f4f4f",e.darkturquoise="#00ced1",e.darkviolet="#9400d3",e.deeppink="#ff1493",e.deepskyblue="#00bfff",e.dimgray="#696969",e.dimgrey="#696969",e.dodgerblue="#1e90ff",e.firebrick="#b22222",e.floralwhite="#fffaf0",e.forestgreen="#228b22",e.gainsboro="#dcdcdc",e.ghostwhite="#f8f8ff",e.gold="#ffd700",e.goldenrod="#daa520",e.greenyellow="#adff2f",e.grey="#808080",e.honeydew="#f0fff0",e.hotpink="#ff69b4",e.indianred="#cd5c5c",e.indigo="#4b0082",e.ivory="#fffff0",e.khaki="#f0e68c",e.lavender="#e6e6fa",e.lavenderblush="#fff0f5",e.lawngreen="#7cfc00",e.lemonchiffon="#fffacd",e.lightblue="#add8e6",e.lightcoral="#f08080",e.lightcyan="#e0ffff",e.lightgoldenrodyellow="#fafad2",e.lightgray="#d3d3d3",e.lightgreen="#90ee90",e.lightgrey="#d3d3d3",e.lightpink="#ffb6c1",e.lightsalmon="#ffa07a",e.lightseagreen="#20b2aa",e.lightskyblue="#87cefa",e.lightslategray="#778899",e.lightslategrey="#778899",e.lightsteelblue="#b0c4de",e.lightyellow="#ffffe0",e.limegreen="#32cd32",e.linen="#faf0e6",e.magenta="#ff00ff",e.mediumaquamarine="#66cdaa",e.mediumblue="#0000cd",e.mediumorchid="#ba55d3",e.mediumpurple="#9370db",e.mediumseagreen="#3cb371",e.mediumslateblue="#7b68ee",e.mediumspringgreen="#00fa9a",e.mediumturquoise="#48d1cc",e.mediumvioletred="#c71585",e.midnightblue="#191970",e.mintcream="#f5fffa",e.mistyrose="#ffe4e1",e.moccasin="#ffe4b5",e.navajowhite="#ffdead",e.oldlace="#fdf5e6",e.olivedrab="#6b8e23",e.orange="#ffa500",e.orangered="#ff4500",e.orchid="#da70d6",e.palegoldenrod="#eee8aa",e.palegreen="#98fb98",e.paleturquoise="#afeeee",e.palevioletred="#db7093",e.papayawhip="#ffefd5",e.peachpuff="#ffdab9",e.peru="#cd853f",e.pink="#ffc0cb",e.plum="#dda0dd",e.powderblue="#b0e0e6",e.rosybrown="#bc8f8f",e.royalblue="#4169e1",e.saddlebrown="#8b4513",e.salmon="#fa8072",e.sandybrown="#f4a460",e.seagreen="#2e8b57",e.seashell="#fff5ee",e.sienna="#a0522d",e.skyblue="#87ceeb",e.slateblue="#6a5acd",e.slategray="#708090",e.snow="#fffafa",e.springgreen="#00ff7f",e.steelblue="#4682b4",e.tan="#d2b48c",e.thistle="#d8bfd8",e.tomato="#ff6347",e.turquoise="#40e0d0",e.violet="#ee82ee",e.wheat="#f5deb3",e.whitesmoke="#f5f5f5",e.yellowgreen="#9acd32",e))(r||{});
// CONCATENATED MODULE: ./node_modules/@jiaminghi/color/es/index.mjs
function i(e){return"string"==typeof e&&(e=e.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))}function a(e){return"string"==typeof e&&(e=e.toLowerCase(),/^(rgb\(|RGB\()/.test(e))}function o(e){return"string"==typeof e&&(e=e.toLowerCase(),/^(rgba|RGBA)/.test(e))}function s(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)}function c(e){if(i(e)||s(e))return e;const t=function(e){return r[e]}(e);if(!t)throw new Error(`Color: Invalid Input of ${e}`);return t}function l(e){const t=c(e).toLowerCase();return i(t)?function(e){3===(e=e.replace("#","")).length&&(e=Array.from(e).map((e=>e+e)).join(""));const t=e.split("");return new Array(3).fill(0).map(((e,n)=>parseInt(`0x${t[2*n]}${t[2*n+1]}`)))}(t):function(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map((e=>parseInt(e)))}(t)}function u(e){const t=c(e);return o(t)?Number(t.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function h(e){const t=l(e);return t&&[...t,u(e)]}function f(e,t){const n=l(e);return"number"==typeof t?`rgba(${n.join(",")},${t})`:`rgb(${n.join(",")})`}function d(e){if(i(e))return e;return`#${l(e).map((e=>Number(e).toString(16).padStart(2,"0"))).join("")}`}function p(e){if(!Array.isArray(e))throw new Error(`getColorFromRgbValue: ${e} is not an array`);const{length:t}=e;if(3!==t&&4!==t)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(3===t?"rgb(":"rgba(")+e.join(",")+")"}function g(e,t=0){let n=h(e);return n=n.map(((e,n)=>3===n?e:e-Math.ceil(2.55*t))).map((e=>e<0?0:e)),p(n)}function m(e,t=0){let n=h(e);return n=n.map(((e,n)=>3===n?e:e+Math.ceil(2.55*t))).map((e=>e>255?255:e)),p(n)}function v(e,t=100){return p([...l(e),t/100])}
/***/},
/***/a87b:
/***/function(e,t){
// 7.2.9 SameValue(x, y)
e.exports=Object.is||function(e,t){
// eslint-disable-next-line no-self-compare
return e===t?0!==e||1/e==1/t:e!=e&&t!=t};
/***/},
/***/a8e4:
/***/function(e,t,n){"use strict";var r=n("93e0"),i=n("2fb2"),a=n("1c2d"),o=n("11e2"),s=n("019f"),c=n("f937"),l=n("dbb2").f,u=n("8d87").f,h=n("2761").f,f=n("e9d8").trim,d="Number",p=r[d],g=p,m=p.prototype,v=a(n("6621")(m))==d,y="trim"in String.prototype,A=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,a=(t=y?t.trim():f(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN;// Number('+0x1') should be NaN, old V8 fix
}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;// fast equal /^0b[01]+$/i
case 79:case 111:r=8,i=55;break;// fast equal /^0o[0-7]+$/i
default:return+t}for(var o,c=t.slice(2),l=0,u=c.length;l<u;l++)
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if((o=c.charCodeAt(l))<48||o>i)return NaN;return parseInt(c,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(v?c((function(){m.valueOf.call(n)})):a(n)!=d)?o(new g(A(t)),n,p):A(t)};for(var b,w=n("c94e")?l(g):
// ES3:
"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(g,b=w[x])&&!i(p,b)&&h(p,b,u(g,b));p.prototype=m,m.constructor=p,n("77ea")(r,d,p)}
/***/},
/***/a8fc:
/***/function(e,t,n){var r=n("badf"),i=n("2c66");
/**
 * This method is like `_.uniq` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the criterion by which
 * uniqueness is computed. The order of result values is determined by the
 * order they occur in the array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
 * // => [2.1, 1.2]
 *
 * // The `_.property` iteratee shorthand.
 * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }, { 'x': 2 }]
 */e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},
/***/a925:
/***/function(e,t,n){"use strict";
/*!
 * vue-i18n v8.28.2 
 * (c) 2022 kazuya kawaguchi
 * Released under the MIT License.
 */

/**
 * constants
 */var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],i=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];var a=Array.isArray;function o(e){return null!==e&&"object"==typeof e}function s(e){return"string"==typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){return null==e}function h(e){return"function"==typeof e}function f(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?o(e[0])||a(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0])
/* istanbul ignore if */,(o(e[1])||a(e[1]))&&(r=e[1])),{locale:n,params:r}}function d(e){return JSON.parse(JSON.stringify(e))}function p(e,t){return!!~e.indexOf(t)}var g=Object.prototype.hasOwnProperty;function m(e,t){return g.call(e,t)}function v(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var i=t[r];if(null!=i){var a=void 0;for(a in i)m(i,a)&&(o(i[a])?n[a]=v(n[a],i[a]):n[a]=i[a])}}return n}function y(e,t){if(e===t)return!0;var n=o(e),r=o(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=a(e),s=a(t);if(i&&s)return e.length===t.length&&e.every((function(e,n){return y(e,t[n])}));if(i||s)
/* istanbul ignore next */
return!1;var c=Object.keys(e),l=Object.keys(t);return c.length===l.length&&c.every((function(n){return y(e[n],t[n])}))}catch(e){
/* istanbul ignore next */
return!1}}
/**
 * Sanitizes html special characters from input strings. For mitigating risk of XSS attacks.
 * @param rawText The raw input from the user that should be escaped.
 */

var A={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,a=t.slots,o=r.$i18n;if(o){var s=i.path,c=i.locale,l=i.places,u=a(),h=o.i(s,c,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||l?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(w,{}):Object.assign({},e)}(t):{};if(!e)return n;
// Filter empty text nodes
e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(x);0;return e.reduce(r?b:w,n)}(u.default,l):u),f=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return f?e(f,n,h):h}}};function b(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function w(e,t,n){return e[n]=t,e}function x(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}
var C,_={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,i=t.parent,a=t.data,c=i.$i18n;if(!c)return null;var l=null,u=null;s(n.format)?l=n.format:o(n.format)&&(n.format.key&&(l=n.format.key),
// Filter out number format options only
u=Object.keys(n.format).reduce((function(e,t){var i;return p(r,t)?Object.assign({},e,((i={})[t]=n.format[t],i)):e}),null));var h=n.locale||c.locale,f=c._ntp(n.value,h,l,u),d=f.map((function(e,t){var n,r=a.scopedSlots&&a.scopedSlots[e.type];return r?r(((n={})[e.type]=e.value,n.index=t,n.parts=f,n)):e.value})),g=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return g?e(g,{attrs:a.attrs,class:a.class,staticClass:a.staticClass},d):d}};
function I(e,t,n){S(e,n)&&B(e,t,n)}function E(e,t,n,r){if(S(e,n)){var i=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&y(t.value,t.oldValue)&&y(e._localeMessage,i.getLocaleMessage(i.locale))||B(e,t,n)}}function k(e,t,n,r){if(n.context){var i=n.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}}function S(e,t){var n=t.context;return!!n&&!!n.$i18n}function B(e,t,n){var r,i,a=function(e){var t,n,r,i;s(e)?t=e:l(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice);return{path:t,locale:n,args:r,choice:i}}(t.value),o=a.path,c=a.locale,u=a.args,h=a.choice;if((o||c||u)&&o){var f=n.context;e._vt=e.textContent=null!=h?(r=f.$i18n).tc.apply(r,[o,h].concat(M(c,u))):(i=f.$i18n).t.apply(i,[o].concat(M(c,u))),e._locale=f.$i18n.locale,e._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}}function M(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||l(t))&&n.push(t),n}function T(e,t){void 0===t&&(t={bridge:!1})
/* istanbul ignore if */,T.installed=!0;(C=e).version&&Number(C.version.split(".")[0]);
/* istanbul ignore if */(

function(e){e.prototype.hasOwnProperty("$i18n")||
// $FlowFixMe
Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}

/**
 * Mixin
 * 
 * If `bridge` mode, empty mixin is returned,
 * else regulary mixin implementation is returned.
 */)(C),C.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{// regulary 
beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof q){
// init locale messages via custom blocks
if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){t=v(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(l(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof q?this.$root.$i18n:null;
// component local i18n
// init locale messages via custom blocks
if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){r=v(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){}var i=e.i18n.sharedMessages;i&&l(i)&&(e.i18n.messages=v(e.i18n.messages,i)),this._i18n=new q(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof q?
// root i18n
this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof q&&(
// parent i18n
this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof q||l(e.i18n))&&(
// init locale messages via custom blocks
this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof q||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof q)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),C.directive("t",{bind:I,update:E,unbind:k}),C.component(A.name,A),C.component(_.name,_),C.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}
var O=function(){this._caches=Object.create(null)};O.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var a="";for(i=e[n++];void 0!==i&&"}"!==i;)a+=i,i=e[n++];var o="}"===i,s=D.test(a)?"list":o&&P.test(a)?"named":"unknown";t.push({value:a,type:s})}else"%"===i?
// when found rails i18n syntax, skip text capture
"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":o(t)?"named":"unknown";if("unknown"===i)return n;for(;r<e.length;){var a=e[r];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===i&&n.push(t[a.value])}r++}return n}

/**
 *  Path parser
 *  - Inspired:
 *    Vue.js Path parser
 */
// actions
(n,t)};var D=/^(?:\d)+/,P=/^(?:\w)+/;var L=[];L[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},L[1]={ws:[1],".":[2],"[":[4],eof:[7]},L[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},L[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},L[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},L[5]={"'":[4,0],eof:8,else:[5,0]},L[6]={'"':[4,0],eof:8,else:[6,0]};
/**
 * Check if an expression is a literal value.
 */
var Q=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
/**
 * Determine the type of a character in a keypath.
 */
function R(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:// [
case 93:// ]
case 46:// .
case 34:// "
case 39:// '
return e;case 95:// _
case 36:// $
case 45:// -
return"ident";case 9:// Tab
case 10:// Newline
case 13:// Return
case 160:// No-break space
case 65279:// Byte Order Mark
case 8232:// Line Separator
case 8233:// Paragraph Separator
return"ws"}return"ident"}
/**
 * Format a subPath, return its plain form if it is
 * a literal string or number. Otherwise prepend the
 * dynamic indicator (*).
 */function j(e){var t,n,r,i=e.trim();
// invalid leading 0
return("0"!==e.charAt(0)||!isNaN(e))&&(r=i,Q.test(r)?(n=(t=i).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+i)}
/**
 * Parse a string path into an array of segments
 */var N=function(){this._cache=Object.create(null)};
/**
 * External parse that check for a cache hit first
 */N.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,r,i,a,o,s,c=[],l=-1,u=0,h=0,f=[];function d(){var t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,r="\\"+t,f[0](),!0}for(f[1]=function(){void 0!==n&&(c.push(n),n=void 0)},f[0]=function(){void 0===n?n=r:n+=r},f[2]=function(){f[0](),h++},f[3]=function(){if(h>0)h--,u=4,f[0]();else{if(h=0,void 0===n)return!1;if(!1===(n=j(n)))return!1;f[1]()}};null!==u;)if(l++,"\\"!==(t=e[l])||!d()){if(i=R(t),8===(a=(s=L[u])[i]||s.else||8))return;// parse error
if(u=a[0],(o=f[a[1]])&&(r=void 0===(r=a[2])?t:r,!1===o()))return;if(7===u)return c}}(e),t&&(this._cache[e]=t)),t||[]},
/**
 * Get path value from path string
 */
N.prototype.getPathValue=function(e,t){if(!o(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var r=n.length,i=e,a=0;a<r;){var s=i[n[a]];if(null==s)return null;i=s,a++}return i};

var F,z=/<\/?[\w\s="/.':;#-\/]+>/,H=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,U=/^@(?:\.([a-zA-Z]+))?:/,G=/[()]/g,V={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},W=new O,q=function(e){var t=this;void 0===e&&(e={}),
// Auto install if it is not done yet and `window` has `Vue`.
// To allow users to avoid auto-installation in some cases,
// this code should be placed here. See #290
/* istanbul ignore if */
!C&&"undefined"!=typeof window&&window.Vue&&T(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},a=e.dateTimeFormats||e.datetimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||W,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new N,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__)
/**
   * @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`
   * @param choicesLength {number} an overall amount of available choices
   * @returns a final choice index
  */,this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);
// Default (old) getChoiceIndex implementation - english-compatible
var i,a;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(i=e,a=n,i=Math.abs(i),2===a?i?i>1?1:0:1:i?Math.min(i,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!u(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:a,numberFormats:o})},Y={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};q.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,i){if(l(n))Object.keys(n).forEach((function(a){var o=n[a];l(o)?(i.push(a),i.push("."),r(e,t,o,i),i.pop(),i.pop()):(i.push(a),r(e,t,o,i),i.pop())}));else if(a(n))n.forEach((function(n,a){l(n)?(i.push("["+a+"]"),i.push("."),r(e,t,n,i),i.pop(),i.pop()):(i.push("["+a+"]"),r(e,t,n,i),i.pop())}));else if(s(n)){if(z.test(n))i.join("")}};r(t,e,n,[])},q.prototype._initVM=function(e){var t=C.config.silent;C.config.silent=!0,this._vm=new C({data:e,__VUE18N__INSTANCE__:!0}),C.config.silent=t},q.prototype.destroyVM=function(){this._vm.$destroy()},q.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},q.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},q.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t,n,r=(t=e._dataListeners,n=[],t.forEach((function(e){return n.push(e)})),n),i=r.length;i--;)C.nextTick((function(){r[i]&&r[i].$forceUpdate()}))}),{deep:!0})},q.prototype.watchLocale=function(e){if(e){
// deal with vue-i18n-bridge
if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}
/* istanbul ignore if */
if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},q.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Y.vm.get=function(){return this._vm},Y.messages.get=function(){return d(this._getMessages())},Y.dateTimeFormats.get=function(){return d(this._getDateTimeFormats())},Y.numberFormats.get=function(){return d(this._getNumberFormats())},Y.availableLocales.get=function(){return Object.keys(this.messages).sort()},Y.locale.get=function(){return this._vm.locale},Y.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Y.fallbackLocale.get=function(){return this._vm.fallbackLocale},Y.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Y.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Y.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Y.missing.get=function(){return this._missing},Y.missing.set=function(e){this._missing=e},Y.formatter.get=function(){return this._formatter},Y.formatter.set=function(e){this._formatter=e},Y.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Y.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Y.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Y.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Y.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Y.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Y.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Y.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},Y.postTranslation.get=function(){return this._postTranslation},Y.postTranslation.set=function(e){this._postTranslation=e},Y.sync.get=function(){return this._sync},Y.sync.set=function(e){this._sync=e},q.prototype._getMessages=function(){return this._vm.messages},q.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},q.prototype._getNumberFormats=function(){return this._vm.numberFormats},q.prototype._warnDefault=function(e,t,n,r,i,a){if(!u(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,r,i]);if(s(o))return o}else 0;if(this._formatFallbackMessages){var c=f.apply(void 0,i);return this._render(t,a,c.params,t)}return t},q.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:u(e))&&!u(this._root)&&this._fallbackRoot},q.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},q.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},q.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},q.prototype._interpolate=function(e,t,n,r,i,o,c){if(!t)return null;var f,d=this._path.getPathValue(t,n);if(a(d)||l(d))return d;if(u(d)){
/* istanbul ignore else */
if(!l(t))return null;if(!s(f=t[n])&&!h(f))return null}else{
/* istanbul ignore else */
if(!s(d)&&!h(d))return null;f=d}
// Check for the existence of links within the translated string
return s(f)&&(f.indexOf("@:")>=0||f.indexOf("@.")>=0)&&(f=this._link(e,t,f,r,"raw",o,c)),this._render(f,i,o,n)},q.prototype._link=function(e,t,n,r,i,o,s){var c=n,l=c.match(H);
// Match all the links within the local
// We are going to replace each of
// them with its translation
// eslint-disable-next-line no-autofix/prefer-const
for(var u in l)
// ie compatible: filter custom array
// prototype method
if(l.hasOwnProperty(u)){var h=l[u],f=h.match(U),d=f[0],g=f[1],m=h.replace(d,"").replace(G,"");if(p(s,m))return c;s.push(m);
// Translate the link
var v=this._interpolate(e,t,m,r,"raw"===i?"string":i,"raw"===i?void 0:o,s);if(this._isFallbackRoot(v)){
/* istanbul ignore if */
if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,m,r,i,o)}v=this._warnDefault(e,m,v,r,a(o)?o:[o],i),this._modifiers.hasOwnProperty(g)?v=this._modifiers[g](v):V.hasOwnProperty(g)&&(v=V[g](v)),s.pop(),
// Replace the link with the translated
c=v?c.replace(h,v):c}return c},q.prototype._createMessageContext=function(e,t,n,r){var i=this,s=a(e)?e:[],c=o(e)?e:{},l=this._getMessages(),u=this.locale;return{list:function(e){return s[e]},named:function(e){return c[e]},values:e,formatter:t,path:n,messages:l,locale:u,linked:function(e){return i._interpolate(u,l[u]||{},e,null,r,void 0,[e])}}},q.prototype._render=function(e,t,n,r){if(h(e))return e(this._createMessageContext(n,this._formatter||W,r,t));var i=this._formatter.interpolate(e,n,r);
// If the custom formatter refuses to work - apply the default one
// if interpolateMode is **not** 'string' ('row'),
// return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter
return i||(i=W.interpolate(e,n,r)),"string"!==t||s(i)?i:i.join("")},q.prototype._appendItemToChain=function(e,t,n){var r=!1;return p(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},q.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var a=i.join("-");r=this._appendItemToChain(e,a,n),i.splice(-1,1)}while(i.length&&!0===r);return r},q.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&"boolean"==typeof r;i++){var a=t[i];s(a)&&(r=this._appendLocaleToChain(e,a,n))}return r},q.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];
// while any intervening block found
for(
// first block defined by start
var r,i=[e];a(i);)i=this._appendBlockToChain(n,i,t);
// last block defined by default
(
// convert defaults to array
i=s(r=a(t)?t:o(t)?
/* $FlowFixMe */
t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,i,null),this._localeChainCache[e]=n}return n},q.prototype._translate=function(e,t,n,r,i,a,o){for(var s,c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var h=c[l];if(!u(s=this._interpolate(h,e[h],r,i,a,o,[r])))return s}return null},q.prototype._t=function(e,t,n,r){for(var i,a=[],o=arguments.length-4;o-- >0;)a[o]=arguments[o+4];if(!e)return"";var s,c=f.apply(void 0,a);this._escapeParameterHtml&&(c.params=(null!=(s=c.params)&&Object.keys(s).forEach((function(e){"string"==typeof s[e]&&(s[e]=s[e].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))})),s));var l=c.locale||t,u=this._translate(n,l,this.fallbackLocale,e,r,"string",c.params);if(this._isFallbackRoot(u)){
/* istanbul ignore if */
if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(a))}return u=this._warnDefault(l,e,u,r,a,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,e)),u},q.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},q.prototype._i=function(e,t,n,r,i){var a=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,a,r,[i],"raw")},q.prototype.i=function(e,t,n){
/* istanbul ignore if */
return e?(s(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},q.prototype._tc=function(e,t,n,r,i){for(var a,o=[],s=arguments.length-5;s-- >0;)o[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},l=f.apply(void 0,o);return l.params=Object.assign(c,l.params),o=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((a=this)._t.apply(a,[e,t,n,r].concat(o)),i)},q.prototype.fetchChoice=function(e,t){
/* istanbul ignore if */
if(!e||!s(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},q.prototype.tc=function(e,t){for(var n,r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},q.prototype._te=function(e,t,n){for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var a=f.apply(void 0,r).locale||t;return this._exist(n[a],e)},q.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},q.prototype.getLocaleMessage=function(e){return d(this._vm.messages[e]||{})},q.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},q.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,v(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},q.prototype.getDateTimeFormat=function(e){return d(this._vm.dateTimeFormats[e]||{})},q.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},q.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,v(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},q.prototype._clearDateTimeFormat=function(e,t){
// eslint-disable-next-line no-autofix/prefer-const
for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},q.prototype._localizeDateTime=function(e,t,n,r,i,a){for(var o=t,s=r[o],c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var h=c[l];
// fallback locale
if(o=h,!u(s=r[h])&&!u(s[i]))break}if(u(s)||u(s[i]))return null;var f,d=s[i];if(a)f=new Intl.DateTimeFormat(o,Object.assign({},d,a));else{var p=o+"__"+i;(f=this._dateTimeFormatters[p])||(f=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(o,d))}return f.format(e)},q.prototype._d=function(e,t,n,r){if(!n)return(r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t)).format(e);var i=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(i)){
/* istanbul ignore if */
if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return i||""},q.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,a=null,c=null;return 1===t.length?(s(t[0])?a=t[0]:o(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(a=t[0].key)),c=Object.keys(t[0]).reduce((function(e,n){var r;return p(i,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(s(t[0])&&(a=t[0]),s(t[1])&&(r=t[1])),this._d(e,r,a,c)},q.prototype.getNumberFormat=function(e){return d(this._vm.numberFormats[e]||{})},q.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},q.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,v(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},q.prototype._clearNumberFormat=function(e,t){
// eslint-disable-next-line no-autofix/prefer-const
for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},q.prototype._getNumberFormatter=function(e,t,n,r,i,a){for(var o=t,s=r[o],c=this._getLocaleChain(t,n),l=0;l<c.length;l++){var h=c[l];
// fallback locale
if(o=h,!u(s=r[h])&&!u(s[i]))break}if(u(s)||u(s[i]))return null;var f,d=s[i];if(a)
// If options specified - create one time number formatter
f=new Intl.NumberFormat(o,Object.assign({},d,a));else{var p=o+"__"+i;(f=this._numberFormatters[p])||(f=this._numberFormatters[p]=new Intl.NumberFormat(o,d))}return f},q.prototype._n=function(e,t,n,r){
/* istanbul ignore if */
if(!q.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.format(e);if(this._isFallbackRoot(a)){
/* istanbul ignore if */
if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return a||""},q.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=this.locale,a=null,c=null;return 1===t.length?s(t[0])?a=t[0]:o(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(a=t[0].key),
// Filter out number format options only
c=Object.keys(t[0]).reduce((function(e,n){var i;return p(r,n)?Object.assign({},e,((i={})[n]=t[0][n],i)):e}),null)):2===t.length&&(s(t[0])&&(a=t[0]),s(t[1])&&(i=t[1])),this._n(e,i,a,c)},q.prototype._ntp=function(e,t,n,r){
/* istanbul ignore if */
if(!q.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.formatToParts(e);if(this._isFallbackRoot(a)){
/* istanbul ignore if */
if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return a||[]},Object.defineProperties(q.prototype,Y),
// $FlowFixMe
Object.defineProperty(q,"availabilities",{get:function(){if(!F){var e="undefined"!=typeof Intl;F={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return F}}),q.install=T,q.version="8.28.2",
/* harmony default export */t.a=q},
/***/a994:
/***/function(e,t,n){var r=n("7d1f"),i=n("32f4"),a=n("ec69");
/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */e.exports=function(e){return r(e,a,i)}},
/***/a9e3:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("83ab"),o=n("cfe9"),s=n("428f"),c=n("e330"),l=n("94ca"),u=n("1a2d"),h=n("7156"),f=n("3a9b"),d=n("d9b5"),p=n("c04e"),g=n("d039"),m=n("241c").f,v=n("06cf").f,y=n("9bf2").f,A=n("408a"),b=n("58a8").trim,w="Number",x=o[w],C=s[w],_=x.prototype,I=o.TypeError,E=c("".slice),k=c("".charCodeAt),S=function(e){var t,n,r,i,a,o,s,c,l=p(e,"number");if(d(l))throw new I("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=b(l),43===(t=k(l,0))||45===t){if(88===(n=k(l,2))||120===n)return NaN;// Number('+0x1') should be NaN, old V8 fix
}else if(48===t){switch(k(l,1)){
// fast equal of /^0b[01]+$/i
case 66:case 98:r=2,i=49;break;
// fast equal of /^0o[0-7]+$/i
case 79:case 111:r=8,i=55;break;default:return+l}for(o=(a=E(l,2)).length,s=0;s<o;s++)
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if((c=k(a,s))<48||c>i)return NaN;return parseInt(a,r)}return+l},B=l(w,!x(" 0o1")||!x("0b1")||x("+0x1")),M=function(e){var t,n=arguments.length<1?0:x(function(e){var t=p(e,"number");return"bigint"==typeof t?t:S(t)}(e));return f(_,t=this)&&g((function(){A(t)}))?h(Object(n),this,M):n};M.prototype=_,B&&!i&&(_.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:B},{Number:M});
// Use `internal/copy-constructor-properties` helper in `core-js@4`
var T=function(e,t){for(var n,r=a?m(t):
// ES3:
"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)u(t,n=r[i])&&!u(e,n)&&y(e,n,v(t,n))};i&&C&&T(s[w],C),(B||i)&&T(s[w],x)
/***/},
/***/aa74:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"cb",(function(){/* reexport */return l.B})),n.d(t,"l",(function(){/* reexport */return l.d})),n.d(t,"g",(function(){/* reexport */return l.a})),n.d(t,"B",(function(){/* reexport */return l.l})),n.d(t,"j",(function(){/* reexport */return l.b})),n.d(t,"n",(function(){/* reexport */return l.f})),n.d(t,"m",(function(){/* reexport */return l.e})),n.d(t,"o",(function(){/* reexport */return l.g})),n.d(t,"w",(function(){/* reexport */return l.i})),n.d(t,"x",(function(){/* reexport */return l.j})),n.d(t,"R",(function(){/* reexport */return l.w})),n.d(t,"P",(function(){/* reexport */return l.u})),n.d(t,"Q",(function(){/* reexport */return l.v})),n.d(t,"N",(function(){/* reexport */return l.s})),n.d(t,"O",(function(){/* reexport */return l.t})),n.d(t,"T",(function(){/* reexport */return l.y})),n.d(t,"H",(function(){/* reexport */return l.m})),n.d(t,"I",(function(){/* reexport */return l.n})),n.d(t,"v",(function(){/* reexport */return l.h})),n.d(t,"L",(function(){/* reexport */return l.q})),n.d(t,"J",(function(){/* reexport */return l.o})),n.d(t,"U",(function(){/* reexport */return l.z})),n.d(t,"K",(function(){/* reexport */return l.p})),n.d(t,"V",(function(){/* reexport */return l.A})),n.d(t,"M",(function(){/* reexport */return l.r})),n.d(t,"y",(function(){/* reexport */return l.k})),n.d(t,"S",(function(){/* reexport */return l.x})),n.d(t,"k",(function(){/* reexport */return l.c})),n.d(t,"eb",(function(){/* reexport */return g})),n.d(t,"D",(function(){/* reexport */return m})),n.d(t,"bb",(function(){/* reexport */return v})),n.d(t,"db",(function(){/* reexport */return y})),n.d(t,"i",(function(){/* reexport */return A})),n.d(t,"X",(function(){/* reexport */return b.c})),n.d(t,"A",(function(){/* reexport */return r})),n.d(t,"Z",(function(){/* reexport */return R.a})),n.d(t,"W",(function(){/* reexport */return j.e})),n.d(t,"F",(function(){/* reexport */return N.a})),n.d(t,"G",(function(){/* reexport */return N.a})),n.d(t,"E",(function(){/* reexport */return i})),n.d(t,"Y",(function(){/* reexport */return a})),n.d(t,"z",(function(){/* reexport */return o})),n.d(t,"u",(function(){/* reexport */return s})),n.d(t,"ab",(function(){/* reexport */return c})),n.d(t,"p",(function(){/* reexport */return fe.a})),n.d(t,"e",(function(){/* reexport */return p.a})),n.d(t,"f",(function(){/* reexport */return _.a})),n.d(t,"a",(function(){/* reexport */return de.a})),n.d(t,"c",(function(){/* reexport */return u.a})),n.d(t,"d",(function(){/* reexport */return h.a})),n.d(t,"h",(function(){/* reexport */return f.b})),n.d(t,"b",(function(){/* reexport */return d.a})),n.d(t,"C",(function(){/* reexport */return pe.b})),n.d(t,"r",(function(){/* reexport */return ge})),n.d(t,"s",(function(){/* reexport */return me})),n.d(t,"t",(function(){/* reexport */return ve})),n.d(t,"q",(function(){/* reexport */return ye}));
// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/helper.js
var r={};n.r(r),n.d(r,"createList",(function(){return O})),n.d(r,"getLayoutRect",(function(){return I.g})),n.d(r,"createDimensions",(function(){return B.a})),n.d(r,"dataStack",(function(){return D})),n.d(r,"createSymbol",(function(){return M.a})),n.d(r,"createScale",(function(){return P})),n.d(r,"mixinAxisModelCommonMethods",(function(){return L})),n.d(r,"getECData",(function(){return k.a})),n.d(r,"enableHoverEmphasis",(function(){return T.o})),n.d(r,"createTextStyle",(function(){return Q}));
// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/number.js
var i={};n.r(i),n.d(i,"linearMap",(function(){return F.m})),n.d(i,"round",(function(){return F.w})),n.d(i,"asc",(function(){return F.c})),n.d(i,"getPrecision",(function(){return F.h})),n.d(i,"getPrecisionSafe",(function(){return F.i})),n.d(i,"getPixelPrecision",(function(){return F.g})),n.d(i,"getPercentWithPrecision",(function(){return F.f})),n.d(i,"MAX_SAFE_INTEGER",(function(){return F.a})),n.d(i,"remRadian",(function(){return F.v})),n.d(i,"isRadianAroundZero",(function(){return F.l})),n.d(i,"parseDate",(function(){return F.p})),n.d(i,"quantity",(function(){return F.s})),n.d(i,"quantityExponent",(function(){return F.t})),n.d(i,"nice",(function(){return F.n})),n.d(i,"quantile",(function(){return F.r})),n.d(i,"reformIntervals",(function(){return F.u})),n.d(i,"isNumeric",(function(){return F.k})),n.d(i,"numericToNumber",(function(){return F.o}));
// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/time.js
var a={};n.r(a),n.d(a,"parse",(function(){return F.p})),n.d(a,"format",(function(){return z.h}));
// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/graphic.js
var o={};n.r(o),n.d(o,"extendShape",(function(){return H.extendShape})),n.d(o,"extendPath",(function(){return H.extendPath})),n.d(o,"makePath",(function(){return H.makePath})),n.d(o,"makeImage",(function(){return H.makeImage})),n.d(o,"mergePath",(function(){return H.mergePath})),n.d(o,"resizePath",(function(){return H.resizePath})),n.d(o,"createIcon",(function(){return H.createIcon})),n.d(o,"updateProps",(function(){return U.h})),n.d(o,"initProps",(function(){return U.c})),n.d(o,"getTransform",(function(){return H.getTransform})),n.d(o,"clipPointsByRect",(function(){return H.clipPointsByRect})),n.d(o,"clipRectByRect",(function(){return H.clipRectByRect})),n.d(o,"registerShape",(function(){return H.registerShape})),n.d(o,"getShapeClass",(function(){return H.getShapeClass})),n.d(o,"Group",(function(){return G.a})),n.d(o,"Image",(function(){return V.a})),n.d(o,"Text",(function(){return W.a})),n.d(o,"Circle",(function(){return q.a})),n.d(o,"Ellipse",(function(){return Y.a})),n.d(o,"Sector",(function(){return K.a})),n.d(o,"Ring",(function(){return $.a})),n.d(o,"Polygon",(function(){return J.a})),n.d(o,"Polyline",(function(){return X.a})),n.d(o,"Rect",(function(){return Z.a})),n.d(o,"Line",(function(){return ee.a})),n.d(o,"BezierCurve",(function(){return te.a})),n.d(o,"Arc",(function(){return ne.a})),n.d(o,"IncrementalDisplayable",(function(){return re.a})),n.d(o,"CompoundPath",(function(){return ie.a})),n.d(o,"LinearGradient",(function(){return ae.a})),n.d(o,"RadialGradient",(function(){return oe.a})),n.d(o,"BoundingRect",(function(){return se.a}));
// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/format.js
var s={};n.r(s),n.d(s,"addCommas",(function(){return ce.a})),n.d(s,"toCamelCase",(function(){return ce.j})),n.d(s,"normalizeCssArray",(function(){return ce.i})),n.d(s,"encodeHTML",(function(){return le.a})),n.d(s,"formatTpl",(function(){return ce.e})),n.d(s,"getTooltipMarker",(function(){return ce.g})),n.d(s,"formatTime",(function(){return ce.d})),n.d(s,"capitalFirst",(function(){return ce.b})),n.d(s,"truncateText",(function(){return ue.c})),n.d(s,"getTextRect",(function(){return he.a}));
// NAMESPACE OBJECT: ./node_modules/echarts/lib/export/api/util.js
var c={};n.r(c),n.d(c,"map",(function(){return y.map})),n.d(c,"each",(function(){return y.each})),n.d(c,"indexOf",(function(){return y.indexOf})),n.d(c,"inherits",(function(){return y.inherits})),n.d(c,"reduce",(function(){return y.reduce})),n.d(c,"filter",(function(){return y.filter})),n.d(c,"bind",(function(){return y.bind})),n.d(c,"curry",(function(){return y.curry})),n.d(c,"isArray",(function(){return y.isArray})),n.d(c,"isString",(function(){return y.isString})),n.d(c,"isObject",(function(){return y.isObject})),n.d(c,"isFunction",(function(){return y.isFunction})),n.d(c,"extend",(function(){return y.extend})),n.d(c,"defaults",(function(){return y.defaults})),n.d(c,"clone",(function(){return y.clone})),n.d(c,"merge",(function(){return y.merge}));
// EXTERNAL MODULE: ./node_modules/echarts/lib/core/echarts.js + 16 modules
var l=n("1be7"),u=n("6cb7"),h=n("b12f"),f=n("4f85"),d=n("e887"),p=n("b682"),g=n("697e7"),m=n("1687"),v=n("401b"),y=n("6d8b"),A=n("41ef"),b=n("88b3"),w=n("1830"),x=n("697e"),C=n("2023"),_=n("4319"),I=n("f934"),E=n("ee1a"),k=n("861c"),S=n("7837"),B=n("b1d4"),M=n("a15a"),T=n("7d6c");
// EXTERNAL MODULE: ./node_modules/echarts/lib/model/Component.js
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api/helper.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * This module exposes helper functions for developing extensions.
 */
// import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge.js';
/**
 * Create a multi dimension List structure from seriesModel.
 */
function O(e){return Object(w.a)(null,e)}
// export function createGraph(seriesModel) {
//     let nodes = seriesModel.get('data');
//     let links = seriesModel.get('links');
//     return createGraphFromNodeEdge(nodes, links, seriesModel);
// }
var D={isDimensionStacked:E.c,enableDataStack:E.a,getStackedDimension:E.b};
/**
 * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
 * @param {string} symbolDesc
 * @param {number} x
 * @param {number} y
 * @param {number} w
 * @param {number} h
 * @param {string} color
 */
/**
 * Create scale
 * @param {Array.<number>} dataExtent
 * @param {Object|module:echarts/Model} option If `optoin.type`
 *        is secified, it can only be `'value'` currently.
 */function P(e,t){var n=t;t instanceof _.a||(n=new _.a(t));var r=x.a(n);return r.setExtent(e[0],e[1]),x.i(r,n),r}
/**
 * Mixin common methods to axis model,
 *
 * Include methods
 * `getFormattedLabels() => Array.<string>`
 * `getCategories() => Array.<string>`
 * `getMin(origin: boolean) => number`
 * `getMax(origin: boolean) => number`
 * `getNeedCrossZero() => boolean`
 */function L(e){y.mixin(e,C.a)}function Q(e,t){return t=t||{},Object(S.c)(e,null,null,"normal"!==t.state)}
// EXTERNAL MODULE: ./node_modules/echarts/lib/extension.js
var R=n("22b4"),j=n("726e"),N=n("bda7"),F=n("3842"),z=n("f876"),H=n("2306"),U=n("deca"),G=n("2dc5"),V=n("0da8"),W=n("76a5"),q=n("d9fc"),Y=n("ae69"),K=n("4aa2"),$=n("4573"),J=n("87b1"),X=n("d498"),Z=n("c7a2"),ee=n("cb11"),te=n("ac0f"),ne=n("8d32"),re=n("392f"),ie=n("d4c6"),ae=n("48a9"),oe=n("dded"),se=n("9850"),ce=n("eda2"),le=n("65ed"),ue=n("d409"),he=n("998a"),fe=n("22d1"),de=n("84ce"),pe=n("5210");
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/platform.js
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/api.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// These APIs are for more advanced usages
// For example extend charts and components, creating graphic elements, formatting.
// --------------------- Helper Methods ---------------------
// --------------------- Export for Extension Usage ---------------------
// export {SeriesData};
// TODO: Compatitable with exists echarts-gl code
// Only for GL
// --------------------- Deprecated Extension Methods ---------------------
// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.
// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:
// class Bar3DModel extends ComponentModel {}
// export function install(registers) { registers.registerComponentModel(Bar3DModel); }
// echarts.use(install);
function ge(e){var t=u.a.extend(e);return u.a.registerClass(t),t}function me(e){var t=h.a.extend(e);return h.a.registerClass(t),t}function ve(e){var t=f.b.extend(e);return f.b.registerClass(t),t}function ye(e){var t=d.a.extend(e);return d.a.registerClass(t),t}
// EXTERNAL MODULE: ./node_modules/echarts/lib/label/installLabelLayout.js + 1 modules
var Ae=n("ee29");
// CONCATENATED MODULE: ./node_modules/echarts/lib/export/core.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Core API from echarts/src/echarts
// Import label layout by default.
// TODO will be treeshaked.
Object(R.a)(Ae.a)},
/***/aaec:
/***/function(e,t){
/** Used to compose unicode character classes. */
var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
/** Used to compose unicode capture groups. */e.exports=
/**
 * Checks if `string` contains Unicode symbols.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {boolean} Returns `true` if a symbol is found, else `false`.
 */
function(e){return n.test(e)}},
/***/ab13:
/***/function(e,t,n){"use strict";var r=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){/* empty */}}return!1}},
/***/ab36:
/***/function(e,t,n){"use strict";var r=n("861d"),i=n("9112");
// `InstallErrorCause` abstract operation
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},
/***/ab43:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d024");
// `Iterator.prototype.map` method
// https://tc39.es/ecma262/#sec-iterator.prototype.map
r({target:"Iterator",proto:!0,real:!0,forced:n("c430")},{map:i})},
/***/ab6e:
/***/function(e,t,n){"use strict";var r=n("2761").f,i=n("6621"),a=n("c668"),o=n("911a"),s=n("928a"),c=n("8fc4"),l=n("d516"),u=n("fb87"),h=n("3a2f"),f=n("c94e"),d=n("4c8d").fastKey,p=n("798a"),g=f?"_s":"size",m=function(e,t){
// fast case
var n,r=d(t);if("F"!==r)return e._i[r];
// frozen object case
for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,// collection type
e._i=i(null),// index
e._f=void 0,// first entry
e._l=void 0,// last entry
e[g]=0,// size
null!=r&&c(r,n,e[l],e)}));return a(u.prototype,{
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
delete:function(e){var n=p(this,t),r=m(n,e);if(r){var i=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==r&&(n._f=i),n._l==r&&(n._l=a),n[g]--}return!!r},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach:function(e/* , that = undefined */){p(this,t);for(var n,r=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)
// revert to the last existing entry
for(r(n.v,n.k,this);n&&n.r;)n=n.p},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has:function(e){return!!m(p(this,t),e)}}),f&&r(u.prototype,"size",{get:function(){return p(this,t)[g]}}),u},def:function(e,t,n){var r,i,a=m(e,t);
// change existing entry
return a?a.v=n:(e._l=a={i:i=d(t,!0),// <- index
k:t,// <- key
v:n,// <- value
p:r=e._l,// <- previous entry
n:void 0,// <- next entry
r:!1},e._f||(e._f=a),r&&(r.n=a),e[g]++,
// add to index
"F"!==i&&(e._i[i]=a)),e},getEntry:m,setStrong:function(e,t,n){
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
l(e,t,(function(e,n){this._t=p(e,t),// target
this._k=n,// kind
this._l=void 0}),(function(){
// revert to the last existing entry
for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;
// get next entry
return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,
// return step by kind
"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(
// or finish the iteration
e._t=void 0,u(1))}),n?"entries":"values",!n,!0),
// add [@@species], 23.1.2.2, 23.2.2.2
h(t)}}},
/***/ab81:
/***/function(e,t){
/** Used to compose unicode character classes. */
var n="\\ud800-\\udfff",r="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",o="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+a+")"+"?",u="[\\ufe0e\\ufe0f]?",h=u+l+("(?:\\u200d(?:"+[o,s,c].join("|")+")"+u+l+")*"),f="(?:"+[o+i+"?",i,s,c,r].join("|")+")",d=RegExp(a+"(?="+a+")|"+f+h,"g");
/** Used to compose unicode capture groups. */e.exports=
/**
 * Gets the size of a Unicode `string`.
 *
 * @private
 * @param {string} string The string inspect.
 * @returns {number} Returns the string size.
 */
function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},
/***/ac0f:
/***/function(e,t,n){"use strict";
/* unused harmony export BezierCurveShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=n("401b"),o=n("4a3f"),s=[],c=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};
/* harmony import */function l(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?o.b:o.a)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?o.b:o.a)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?o.i:o.h)(e.x1,e.cpx1,e.x2,t),(n?o.i:o.h)(e.y1,e.cpy1,e.y2,t)]}var u=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new c},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,c=t.cpx1,l=t.cpy1,u=t.cpx2,h=t.cpy2,f=t.percent;0!==f&&(e.moveTo(n,r),null==u||null==h?(f<1&&(Object(o.n)(n,c,i,f,s),c=s[1],i=s[2],Object(o.n)(r,l,a,f,s),l=s[1],a=s[2]),e.quadraticCurveTo(c,l,i,a)):(f<1&&(Object(o.g)(n,c,u,i,f,s),c=s[1],u=s[2],i=s[3],Object(o.g)(r,l,h,a,f,s),l=s[1],h=s[2],a=s[3]),e.bezierCurveTo(c,l,u,h,i,a)))},t.prototype.pointAt=function(e){return l(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=l(this.shape,e,!0);return a.normalize(t,t)},t}(i.b);u.prototype.type="bezier-curve",
/* harmony default export */t.a=u},
/***/ac1f:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");
// `RegExp.prototype.exec` method
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},
/***/ac41:
/***/function(e,t){e.exports=
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},
/***/ac60:
/***/function(e,t,n){"use strict";
// Forced replacement prototype accessors methods
e.exports=n("cee8")||!n("f937")((function(){var e=Math.random();
// In FF throws only define methods
// eslint-disable-next-line no-undef, no-useless-call
__defineSetter__.call(null,e,(function(){/* empty */})),delete n("93e0")[e]}))},
/***/acac:
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("6964"),a=n("f183").getWeakData,o=n("19aa"),s=n("825a"),c=n("7234"),l=n("861d"),u=n("2266"),h=n("b727"),f=n("1a2d"),d=n("69f3"),p=d.set,g=d.getterFor,m=h.find,v=h.findIndex,y=r([].splice),A=0,b=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},x=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var h=e((function(e,i){o(e,d),p(e,{type:t,id:A++,frozen:null}),c(i)||u(i,e[r],{that:e,AS_ENTRIES:n})})),d=h.prototype,m=g(t),v=function(e,t,n){var r=m(e),i=a(s(t),!0);return!0===i?b(r).set(t,n):i[r.id]=n,e};return i(d,{
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
delete:function(e){var t=m(this);if(!l(e))return!1;var n=a(e);return!0===n?b(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
// https://tc39.es/ecma262/#sec-weakset.prototype.has
has:function(e){var t=m(this);if(!l(e))return!1;var n=a(e);return!0===n?b(t).has(e):n&&f(n,t.id)}}),i(d,n?{
// `WeakMap.prototype.get(key)` method
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
get:function(e){var t=m(this);if(l(e)){var n=a(e);if(!0===n)return b(t).get(e);if(n)return n[t.id]}},
// `WeakMap.prototype.set(key, value)` method
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
set:function(e,t){return v(this,e,t)}}:{
// `WeakSet.prototype.add(value)` method
// https://tc39.es/ecma262/#sec-weakset.prototype.add
add:function(e){return v(this,e,!0)}}),h}}},
/***/accc:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("e960")(!1);r(r.P,"String",{
// 21.1.3.3 String.prototype.codePointAt(pos)
codePointAt:function(e){return i(this,e)}})},
/***/acf2:
/***/function(e,t,n){"use strict";
// ECMAScript 6 symbols shim
var r=n("93e0"),i=n("2fb2"),a=n("c94e"),o=n("f083"),s=n("77ea"),c=n("4c8d").KEY,l=n("f937"),u=n("de85"),h=n("27bd"),f=n("5689"),d=n("de24"),p=n("a43b"),g=n("1cb7"),m=n("6d9f"),v=n("7f21"),y=n("d77f"),A=n("9fe8"),b=n("42ee"),w=n("5d6f"),x=n("019f"),C=n("fb32"),_=n("6621"),I=n("532c"),E=n("8d87"),k=n("10dd"),S=n("2761"),B=n("5a5d"),M=E.f,T=S.f,O=I.f,D=r.Symbol,P=r.JSON,L=P&&P.stringify,Q="prototype",R=d("_hidden"),j=d("toPrimitive"),N={}.propertyIsEnumerable,F=u("symbol-registry"),z=u("symbols"),H=u("op-symbols"),U=Object[Q],G="function"==typeof D&&!!k.f,V=r.QObject,W=!V||!V[Q]||!V[Q].findChild,q=a&&l((function(){return 7!=_(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(U,t);r&&delete U[t],T(e,t,n),r&&e!==U&&T(U,t,r)}:T,Y=function(e){var t=z[e]=_(D[Q]);return t._k=e,t},K=G&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},$=function(e,t,n){return e===U&&$(H,t,n),y(e),t=x(t,!0),y(n),i(z,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=_(n,{enumerable:C(0,!1)})):(i(e,R)||T(e,R,C(1,{})),e[R][t]=!0),q(e,t,n)):T(e,t,n)},J=function(e,t){y(e);for(var n,r=m(t=w(t)),i=0,a=r.length;a>i;)$(e,n=r[i++],t[n]);return e},X=function(e){var t=N.call(this,e=x(e,!0));return!(this===U&&i(z,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,R)&&this[R][e])||t)},Z=function(e,t){if(e=w(e),t=x(t,!0),e!==U||!i(z,t)||i(H,t)){var n=M(e,t);return!n||!i(z,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=O(w(e)),r=[],a=0;n.length>a;)i(z,t=n[a++])||t==R||t==c||r.push(t);return r},te=function(e){for(var t,n=e===U,r=O(n?H:w(e)),a=[],o=0;r.length>o;)!i(z,t=r[o++])||n&&!i(U,t)||a.push(z[t]);return a};
// 19.4.1.1 Symbol([description])
G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(H,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),q(this,e,C(1,n))};return a&&W&&q(U,e,{configurable:!0,set:t}),Y(e)},s(D[Q],"toString",(function(){return this._k})),E.f=Z,S.f=$,n("dbb2").f=I.f=ee,n("e171").f=X,k.f=te,a&&!n("cee8")&&s(U,"propertyIsEnumerable",X,!0),p.f=function(e){return Y(d(e))}),o(o.G+o.W+o.F*!G,{Symbol:D});for(var ne=
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)d(ne[re++]);for(var ie=B(d.store),ae=0;ie.length>ae;)g(ie[ae++]);o(o.S+o.F*!G,"Symbol",{
// 19.4.2.1 Symbol.for(key)
for:function(e){return i(F,e+="")?F[e]:F[e]=D(e)},
// 19.4.2.5 Symbol.keyFor(sym)
keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!G,"Object",{
// 19.1.2.2 Object.create(O [, Properties])
create:function(e,t){return void 0===t?_(e):J(_(e),t)},
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
defineProperty:$,
// 19.1.2.3 Object.defineProperties(O, Properties)
defineProperties:J,
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor:Z,
// 19.1.2.7 Object.getOwnPropertyNames(O)
getOwnPropertyNames:ee,
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols:te});
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var oe=l((function(){k.f(1)}));o(o.S+o.F*oe,"Object",{getOwnPropertySymbols:function(e){return k.f(b(e))}}),
// 24.3.2 JSON.stringify(value [, replacer [, space]])
P&&o(o.S+o.F*(!G||l((function(){var e=D();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
// V8 throws on boxed symbols
return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(A(t)||void 0!==e)&&!K(e))// IE8 returns string on undefined
return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,L.apply(P,r)}}),
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
D[Q][j]||n("0713")(D[Q],j,D[Q].valueOf),
// 19.4.3.5 Symbol.prototype[@@toStringTag]
h(D,"Symbol"),
// 20.2.1.9 Math[@@toStringTag]
h(Math,"Math",!0),
// 24.3.3 JSON[@@toStringTag]
h(r.JSON,"JSON",!0)},
/***/ad51:
/***/function(e,t,n){
// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
var r=n("f083");r(r.P,"Function",{bind:n("02ee")})},
/***/ad62:
/***/function(e,t,n){
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
var r=n("f083");r(r.P,"Array",{fill:n("0ba2")}),n("66b7")("fill")},
/***/ad6d:
/***/function(e,t,n){"use strict";var r=n("825a");
// `RegExp.prototype.flags` getter implementation
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},
/***/addb:
/***/function(e,t,n){"use strict";var r=n("f36a"),i=Math.floor,a=function(e,t){var n=e.length;if(n<8)for(
// insertion sort
var o,s,c=1;c<n;){for(s=c,o=e[c];s&&t(e[s-1],o)>0;)e[s]=e[--s];s!==c++&&(e[s]=o)}else for(
// merge sort
var l=i(n/2),u=a(r(e,0,l),t),h=a(r(e,l),t),f=u.length,d=h.length,p=0,g=0;p<f||g<d;)e[p+g]=p<f&&g<d?t(u[p],h[g])<=0?u[p++]:h[g++]:p<f?u[p++]:h[g++];return e};e.exports=a},
/***/ade3:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return a}));
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var r=n("53ca");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
n("8172"),n("d9e2"),n("efec"),n("a9e3");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
function i(e){var t=
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
function(e,t){if("object"!=Object(r.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Object(r.a)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(r.a)(t)?t:t+""}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
function a(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e
/***/}},
/***/adf5:
/***/function(e,t,n){e.exports={default:n("9b21"),__esModule:!0};
/***/},
/***/ae10:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("278c")),a=r(n("448a"));
/**
 * @description Get the symmetry point
 * @param {Array} point       Symmetric point
 * @param {Array} centerPoint Symmetric center
 * @return {Array} Symmetric point
 */
function o(e,t){var n=(0,i.default)(e,2),r=n[0],a=n[1],o=(0,i.default)(t,2),s=o[0],c=o[1];return[s+(s-r),c+(c-a)]}var s=
/**
 * @description Abstract the polyline formed by N points into a set of bezier curve
 * @param {Array} polyline A set of points that make up a polyline
 * @param {Boolean} close  Closed curve
 * @param {Number} offsetA Smoothness
 * @param {Number} offsetB Smoothness
 * @return {Array|Boolean} A set of bezier curve (Invalid input will return false)
 */
function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;if(!(e instanceof Array))return!1;if(e.length<=2)return!1;var i=e[0],s=e.length-1,c=new Array(s).fill(0).map((function(i,o){return[].concat((0,a.default)(
/**
 * @description Get the control points of the Bezier curve
 * @param {Array} polyline A set of points that make up a polyline
 * @param {Number} index   The index of which get controls points's point in polyline
 * @param {Boolean} close  Closed curve
 * @param {Number} offsetA Smoothness
 * @param {Number} offsetB Smoothness
 * @return {Array} Control points
 */
function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.25,a=e.length;if(a<3||t>=a)return;var o=t-1;o<0&&(o=n?a+o:0);var s=t+1;s>=a&&(s=n?s-a:a-1);var c=t+2;c>=a&&(c=n?c-a:a-1);var l=e[o],u=e[t],h=e[s],f=e[c];return[[u[0]+r*(h[0]-l[0]),u[1]+r*(h[1]-l[1])],[h[0]-i*(f[0]-u[0]),h[1]-i*(f[1]-u[1])]]}
/**
 * @description Get the last curve of the closure
 * @param {Array} bezierCurve A set of sub-curve
 * @param {Array} startPoint  Start point
 * @return {Array} The last curve for closure
 */(e,o,t,n,r)),[e[o+1]])}));return t&&function(e,t){var n=e[0],r=e.slice(-1)[0];e.push([o(r[1],r[2]),o(n[0],t),t])}(c,i),c.unshift(e[0]),c};t.default=s},
/***/ae69:
/***/function(e,t,n){"use strict";
/* unused harmony export EllipseShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},o=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(i.b);
/* harmony import */o.prototype.type="ellipse",
/* harmony default export */t.a=o},
/***/ae93:
/***/function(e,t,n){"use strict";var r,i,a,o=n("d039"),s=n("1626"),c=n("861d"),l=n("7c73"),u=n("e163"),h=n("cb2d"),f=n("b622"),d=n("c430"),p=f("iterator"),g=!1;
/* eslint-disable es/no-array-prototype-keys -- safe */
[].keys&&(
// Safari 8 has buggy iterators w/o `next`
"next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(r=i):g=!0),!c(r)||o((function(){var e={};
// FF44- legacy iterators case
return r[p].call(e)!==e}))?r={}:d&&(r=l(r)),
// `%IteratorPrototype%[@@iterator]()` method
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
s(r[p])||h(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},
/***/aea1:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("c747");r(r.P+r.F*!n("55c7")([].reduceRight,!0),"Array",{
// 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
reduceRight:function(e/* , initialValue */){return i(this,e,arguments.length,arguments[1],!0)}})},
/***/aeb0:
/***/function(e,t,n){"use strict";var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},
/***/aed9:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("d039");
// V8 ~ Chrome 36-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
e.exports=r&&i((function(){
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return 42!==Object.defineProperty((function(){/* empty */}),"prototype",{value:42,writable:!1}).prototype}))},
/***/af03:
/***/function(e,t,n){"use strict";var r=n("d039");
// check the existence of a method, lowercase
// of a tag and escaping quotes in arguments
e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},
/***/af13:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){
/*!
 * The MIT License (MIT)
 * 
 * Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 * @version 2.1.7
 */
!function(e){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(n||(n="undefined"==typeof window?t:window),void 0!==n[e])return n[e];for(var r=["webkit","moz","ms","o"],i=0,a=r.length,o=e.charAt(0).toUpperCase()+e.substr(1);i<a;i++){var s=n[r[i]+o];if(void 0!==s)return s}return null}function s(e,t,n,r,i,a,o){if("function"!=typeof r)throw new TypeError("Invalid animation rule:",r);var c=e-n,l=c/i,u=0;l>1&&(l=1),1!==l&&(u=r(l),isFinite(u)&&!isNaN(u)&&(l=u)),t&&t(l),c<i?o.frame=Y((function(e){return s(e,t,n,r,i,a,o)})):(a&&a(),o.inProgress=!1)}function c(){Array.prototype.constructor.apply(this,arguments)}function l(e,t,n,r,i,a){e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()}function u(e,t){var n,r=t.valueDec,i=t.valueInt,a=0,o=void 0,s=void 0;if(n=(e=parseFloat(e))<0,e=Math.abs(e),r>0){for(o=i-(s=e.toFixed(r).toString().split("."))[0].length;a<o;++a)s[0]="0"+s[0];s=(n?"-":"")+s[0]+"."+s[1]}else{for(o=i-(s=Math.round(e).toString()).length;a<o;++a)s="0"+s;s=(n?"-":"")+s}return s}function h(e,t,n){return e["font"+t+"Style"]+" "+e["font"+t+"Weight"]+" "+e["font"+t+"Size"]*n+"px "+e["font"+t]}function f(e){e.shadowOffsetX=null,e.shadowOffsetY=null,e.shadowBlur=null,e.shadowColor="",e.strokeStyle=null,e.lineWidth=0,e.save()}function d(e,t,n,r){t.valueTextShadow&&(e.shadowOffsetX=n,e.shadowOffsetY=n,e.shadowBlur=r,e.shadowColor=t.colorValueTextShadow)}function p(e,t,n,r,i){n.beginPath(),n.arc(0,0,ne(e),0,2*se,!0),n.lineWidth=t,n.strokeStyle=i?oe.linearGradient(n,r,i,e):r,n.stroke(),n.closePath()}function g(e,t){var n=X.pixelRatio;return e.maxRadius||(e.maxRadius=e.max-t.borderShadowWidth-t.borderOuterWidth*n-t.borderMiddleWidth*n-t.borderInnerWidth*n+(t.borderOuterWidth?.5:0)+(t.borderMiddleWidth?.5:0)+(t.borderInnerWidth?.5:0)),e.maxRadius}function m(e,t){var n=X.pixelRatio,r=t.borderShadowWidth*n,i=e.max-r-t.borderOuterWidth*n/2,a=i-t.borderOuterWidth*n/2-t.borderMiddleWidth*n/2+.5,o=a-t.borderMiddleWidth*n/2-t.borderInnerWidth*n/2+.5,s=g(e,t),c=void 0,l=!1;e.save(),t.borderOuterWidth&&(l=oe.drawShadow(e,t,l),p(i,t.borderOuterWidth*n,e,t.colorBorderOuter,t.colorBorderOuterEnd)),t.borderMiddleWidth&&(l=oe.drawShadow(e,t,l),p(a,t.borderMiddleWidth*n,e,t.colorBorderMiddle,t.colorBorderMiddleEnd)),t.borderInnerWidth&&(l=oe.drawShadow(e,t,l),p(o,t.borderInnerWidth*n,e,t.colorBorderInner,t.colorBorderInnerEnd)),oe.drawShadow(e,t,l),e.beginPath(),e.arc(0,0,ne(s),0,2*se,!0),t.colorPlateEnd?((c=e.createRadialGradient(0,0,s/2,0,0,s)).addColorStop(0,t.colorPlate),c.addColorStop(1,t.colorPlateEnd)):c=t.colorPlate,e.fillStyle=c,e.fill(),e.closePath(),e.restore()}function v(e,t){var n=e.max*(parseFloat(t.highlightsWidth)||0)/100;if(n){var r=ne(A(e,t)-n/2),i=0,a=t.highlights.length,o=(t.maxValue-t.minValue)/t.ticksAngle;for(e.save();i<a;i++){var s=t.highlights[i];e.beginPath(),e.rotate(ce),e.arc(0,0,r,oe.radians(t.startAngle+(s.from-t.minValue)/o),oe.radians(t.startAngle+(s.to-t.minValue)/o),!1),e.strokeStyle=s.color,e.lineWidth=n,e.lineCap=t.highlightsLineCap,e.stroke(),e.closePath(),e.restore(),e.save()}}}function y(e,t){var n=A(e,t),r=void 0,i=void 0,a=void 0,o=0,s=0,c=Math.abs(t.minorTicks)||0,l=t.ticksAngle/(t.maxValue-t.minValue);for(e.lineWidth=X.pixelRatio,e.strokeStyle=t.colorMinorTicks||t.colorStrokeTicks,e.save(),t.exactTicks?(i=t.maxValue-t.minValue,r=c?i/c:0,s=(ie.mod(t.majorTicks[0],c)||0)*l):r=c*(t.majorTicks.length-1);o<r;++o)(a=t.startAngle+s+o*(t.ticksAngle/r))<=t.ticksAngle+t.startAngle&&(e.rotate(oe.radians(a)),e.beginPath(),e.moveTo(0,n),e.lineTo(0,n-.075*e.max),x(e))}function A(e,t){var n=e.max/100;return g(e,t)-5*n-(t.barWidth?2*(parseFloat(t.barStrokeWidth)||0)+((parseFloat(t.barWidth)||0)+5)*n:0)}function b(e,t){oe.prepareTicks(t);var n,r=ne(A(e,t)),i=void 0,a=t.majorTicks.length,o=X.pixelRatio;for(e.lineWidth=2*o,e.save(),n=t.colorMajorTicks instanceof Array?t.colorMajorTicks:new Array(a).fill(t.colorStrokeTicks||t.colorMajorTicks),i=0;i<a;++i)e.strokeStyle=n[i],e.rotate(oe.radians(w(t,t.exactTicks?t.majorTicks[i]:i,a))),e.beginPath(),e.moveTo(0,r),e.lineTo(0,r-.15*e.max),x(e);t.strokeTicks&&(e.strokeStyle=t.colorStrokeTicks||n[0],e.rotate(ce),e.beginPath(),e.arc(0,0,r,oe.radians(t.startAngle),oe.radians(t.startAngle+t.ticksAngle),!1),x(e))}function w(e,t,n){if(e.exactTicks){var r=e.ticksAngle/(e.maxValue-e.minValue);return e.startAngle+r*(t-e.minValue)}return e.startAngle+t*(e.ticksAngle/(n-1))}function x(e){e.stroke(),e.restore(),e.closePath(),e.save()}function C(e,t){var n=A(e,t)-.15*e.max,r={},i=0,a=t.majorTicks.length,o="needle"!==t.animationTarget,s=t.colorNumbers instanceof Array?t.colorNumbers:new Array(a).fill(t.colorNumbers),c=o?-(t.value-t.minValue)/(t.maxValue-t.minValue)*t.ticksAngle:0;for(o&&(e.save(),e.rotate(-oe.radians(c))),e.font=oe.font(t,"Numbers",e.max/200),e.lineWidth=0,e.textAlign="center",e.textBaseline="middle";i<a;++i){var l=c+w(t,t.exactTicks?t.majorTicks[i]:i,a),u=e.measureText(t.majorTicks[i]).width,h=t.fontNumbersSize,f=Math.sqrt(u*u+h*h)/2,d=oe.radialPoint(n-f-t.numbersMargin/100*e.max,oe.radians(l));360===l&&(l=0),r[l]||(r[l]=!0,e.fillStyle=s[i],e.fillText(t.majorTicks[i],d.x,d.y))}o&&e.restore()}function _(e,t){t.title&&(e.save(),e.font=oe.font(t,"Title",e.max/200),e.fillStyle=t.colorTitle,e.textAlign="center",e.fillText(t.title,0,-e.max/4.25,.8*e.max),e.restore())}function I(e,t){t.units&&(e.save(),e.font=oe.font(t,"Units",e.max/200),e.fillStyle=t.colorUnits,e.textAlign="center",e.fillText(oe.formatContext(t,t.units),0,e.max/3.25,.8*e.max),e.restore())}function E(e,t){if(t.needle){var n=t.ticksAngle<360?oe.normalizedValue(t).indented:t.value,r=f?t.startAngle:t.startAngle+(n-t.minValue)/(t.maxValue-t.minValue)*t.ticksAngle;"right"===t.barStartPosition&&(r=t.startAngle+t.ticksAngle-(n-t.minValue)/(t.maxValue-t.minValue)*t.ticksAngle);var i=g(e,t),a=ne(i/100*t.needleCircleSize),o=ne(i/100*t.needleCircleSize*.75),s=ne(i/100*t.needleEnd),c=ne(t.needleStart?i/100*t.needleStart:0),l=i/100*t.needleWidth,u=i/100*t.needleWidth/2,h=X.pixelRatio,f="needle"!==t.animationTarget;e.save(),oe.drawNeedleShadow(e,t),e.rotate(oe.radians(r)),e.fillStyle=oe.linearGradient(e,t.colorNeedle,t.colorNeedleEnd,s-c),"arrow"===t.needleType?(e.beginPath(),e.moveTo(-u,-c),e.lineTo(-l,0),e.lineTo(-1*h,s),e.lineTo(h,s),e.lineTo(l,0),e.lineTo(u,-c),e.closePath(),e.fill(),e.beginPath(),e.lineTo(-.5*h,s),e.lineTo(-1*h,s),e.lineTo(-l,0),e.lineTo(-u,-c),e.lineTo(u/2*h-2*h,-c),e.closePath(),e.fillStyle=t.colorNeedleShadowUp,e.fill()):(e.beginPath(),e.moveTo(-u,s),e.lineTo(-u,c),e.lineTo(u,c),e.lineTo(u,s),e.closePath(),e.fill()),t.needleCircleSize&&(e.restore(),oe.drawNeedleShadow(e,t),t.needleCircleOuter&&(e.beginPath(),e.arc(0,0,a,0,2*se,!0),e.fillStyle=oe.linearGradient(e,t.colorNeedleCircleOuter,t.colorNeedleCircleOuterEnd,a),e.fill(),e.closePath()),t.needleCircleInner&&(e.beginPath(),e.arc(0,0,o,0,2*se,!0),e.fillStyle=oe.linearGradient(e,t.colorNeedleCircleInner,t.colorNeedleCircleInnerEnd,o),e.fill(),e.closePath()),e.restore())}}function k(e,t,n){oe.drawValueBox(e,t,n,0,e.max-.33*e.max,e.max)}function S(e,t){var n=e.max/100,r=g(e,t)-5*n,i=parseFloat(t.barStrokeWidth+"")||0,a=(parseFloat(t.barWidth+"")||0)*n,o=r-2*i-a,s=(r-o)/2,c=o+s,l=i/c,u=t.startAngle,h=t.startAngle+t.ticksAngle;if(e.save(),e.rotate(ce),i&&(e.beginPath(),e.arc(0,0,c,oe.radians(u)-l,oe.radians(h)+l,!1),e.strokeStyle=t.colorBarStroke,e.lineWidth=2*s,e.stroke(),e.closePath()),a&&(e.beginPath(),e.arc(0,0,c,oe.radians(u),oe.radians(h),!1),e.strokeStyle=t.colorBar,e.lineWidth=a,e.stroke(),e.closePath(),t.barShadow&&(e.beginPath(),e.arc(0,0,r,oe.radians(u),oe.radians(h),!1),e.clip(),e.beginPath(),e.strokeStyle=t.colorBar,e.lineWidth=1,e.shadowBlur=t.barShadow,e.shadowColor=t.colorBarShadow,e.shadowOffsetX=0,e.shadowOffsetY=0,e.arc(0,0,r,oe.radians(t.startAngle),oe.radians(t.startAngle+t.ticksAngle),!1),e.stroke(),e.closePath(),e.restore(),e.rotate(ce)),t.barProgress)){var f=function(e){var t=e.startAngle,n=e.startAngle+e.ticksAngle,r=t,i=t+(oe.normalizedValue(e).normal-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle;if("middle"===e.barStartPosition){var a=.5*(e.minValue+e.maxValue);e.value<a?(r=180-(a-oe.normalizedValue(e).normal)/(e.maxValue-e.minValue)*e.ticksAngle,i=180):(r=180,i=180+(oe.normalizedValue(e).normal-a)/(e.maxValue-e.minValue)*e.ticksAngle)}else"right"===e.barStartPosition&&(r=n-i+t,i=n);return{startAngle:r,endAngle:i}}(t),d=f.startAngle,p=f.endAngle;e.beginPath(),e.arc(0,0,c,oe.radians(d),oe.radians(p),!1),e.strokeStyle=t.colorBarProgress,e.lineWidth=a,e.stroke(),e.closePath()}e.restore()}function B(e){return e.options.animatedValue?e.options.value:e.value}function M(e,t,n,r,i,a,o,s,c){e.beginPath(),e.lineWidth=t,e.strokeStyle=c?oe.linearGradient(e,s,c,o,!0,i):s,n>0?oe.roundRect(e,r,i,a,o,n):e.rect(r,i,a,o),e.stroke(),e.closePath()}function T(e,t,n,r,i,a){var o=X.pixelRatio;e.save();var s=t.borderRadius*o,c=i-t.borderShadowWidth-t.borderOuterWidth*o,l=c-t.borderOuterWidth*o-t.borderMiddleWidth*o,u=l-t.borderMiddleWidth*o-t.borderInnerWidth*o,h=u-t.borderInnerWidth*o,f=a-t.borderShadowWidth-t.borderOuterWidth*o,d=f-t.borderOuterWidth*o-t.borderMiddleWidth*o,p=d-t.borderMiddleWidth*o-t.borderInnerWidth*o,g=p-t.borderInnerWidth*o,m=n-(l-c)/2,v=m-(u-l)/2,y=v-(h-u)/2,A=r-(d-f)/2,b=A-(p-d)/2,w=b-(g-p)/2,x=0,C=!1;return t.borderOuterWidth&&(C=oe.drawShadow(e,t,C),M(e,t.borderOuterWidth*o,s,n+t.borderOuterWidth*o/2-x,r+t.borderOuterWidth*o/2-x,c,f,t.colorBorderOuter,t.colorBorderOuterEnd),x+=.5*o),t.borderMiddleWidth&&(C=oe.drawShadow(e,t,C),M(e,t.borderMiddleWidth*o,s-=1+2*x,m+t.borderMiddleWidth*o/2-x,A+t.borderMiddleWidth*o/2-x,l+2*x,d+2*x,t.colorBorderMiddle,t.colorBorderMiddleEnd),x+=.5*o),t.borderInnerWidth&&(C=oe.drawShadow(e,t,C),M(e,t.borderInnerWidth*o,s-=1+2*x,v+t.borderInnerWidth*o/2-x,b+t.borderInnerWidth*o/2-x,u+2*x,p+2*x,t.colorBorderInner,t.colorBorderInnerEnd),x+=.5*o),oe.drawShadow(e,t,C),function(e,t,n,r,i,a,o,s){e.beginPath(),e.fillStyle=s?oe.linearGradient(e,o,s,i>a?i:a,a>i,i>a?n:r):o,t>0?oe.roundRect(e,n,r,i,a,t):e.rect(n,r,i,a),e.fill(),e.closePath()}(e,s,y,w,h+2*x,g+2*x,t.colorPlate,t.colorPlateEnd),e.restore(),[y,w,h,g]}function O(e,t,n,r,i,a,o){var s=function(e,t,n,r,i,a){var o=X.pixelRatio,s=a>=i,c=s?.85*i:a,l=s?a:i;n=s?te(n+(i-c)/2):n;var u=!!t.title,h=!!t.units,f=!!t.valueBox,d=void 0,p=void 0,g=void 0;s?(p=te(.05*l),d=te(.075*l),g=te(.11*l),u&&(l-=d,r+=d),h&&(l-=p),f&&(l-=g)):(p=d=te(.15*c),u&&(c-=d,r+=d),h&&(c-=p));var m=2*t.barStrokeWidth,v=t.barBeginCircle?te(c*t.barBeginCircle/200-m/2):0,y=te(c*t.barWidth/100-m),A=te(l*t.barLength/100-m),b=te((l-A)/2),w=te(n+(s?c/2:b+v)),x=te(r+(s?l-b-v+m/2:c/2)),C=!s||t.hasLeft&&t.hasRight?0:(t.hasRight?-1:1)*t.ticksWidth/100*c,_=s||t.hasLeft&&t.hasRight?0:(t.hasRight?-1:1)*t.ticksWidth/100*c;return e.barDimensions={isVertical:s,width:c,length:l,barWidth:y,barLength:A,strokeWidth:m,barMargin:b,radius:v,pixelRatio:o,barOffset:null,titleMargin:u?d:0,unitsMargin:h?p:0,get ticksLength(){return this.barLength-this.barOffset-this.strokeWidth},X:n+C,Y:r+_,x0:w+C,y0:x+_,baseX:n,baseY:r,ticksPadding:t.ticksPadding/100},e.barDimensions}(e,t,r,i,a,o),c=s.isVertical,l=s.width,u=s.barWidth,h=s.barLength,f=s.strokeWidth,d=s.barMargin,p=s.radius,g=s.x0,m=s.y0,v=s.X,y=s.Y,A=h;if(e.save(),e.beginPath(),t.barBeginCircle){var b=oe.radians(c?270:0),w=Math.asin(u/2/p),x=Math.cos(w),C=Math.sin(w),_=g+(c?p*C:p*x-f/2),I=c?m-p*x:m+p*C,E=ne(c?I-m:_-g);e.barDimensions.barOffset=te(E+p);var k=c?te(g-p*C):_,S=c?I:te(m-p*C);"progress"===n&&(h=e.barDimensions.barOffset+(h-e.barDimensions.barOffset)*(oe.normalizedValue(t).normal-t.minValue)/(t.maxValue-t.minValue));var B=te(_+h-e.barDimensions.barOffset+f/2),M=te(I-h+e.barDimensions.barOffset-f/2);e.arc(g,m,p,b+w,b-w),c?(e.moveTo(_,S),e.lineTo(_,M),e.lineTo(k,M),e.lineTo(k,S)):(e.moveTo(_,S),e.lineTo(B,S),e.lineTo(B,I),e.lineTo(_,I))}else{var T=te(c?v+(l-u)/2:v+d),O=te(c?y+h+d:y+(l-u)/2);"progress"===n&&(h*=(t.value-t.minValue)/(t.maxValue-t.minValue)),c?e.rect(T,O,u,-h):e.rect(T,O,h,u)}"progress"!==n&&t.barStrokeWidth&&(e.lineWidth=f,e.strokeStyle=t.colorBarStroke,e.stroke()),"progress"!==n&&t.colorBar?(e.fillStyle=t.colorBarEnd?oe.linearGradient(e,t.colorBar,t.colorBarEnd,h,c,c?y:v):t.colorBar,e.fill()):"progress"===n&&t.colorBarProgress&&(e.fillStyle=t.colorBarProgressEnd?oe.linearGradient(e,t.colorBarProgress,t.colorBarProgressEnd,A,c,c?y:v):t.colorBarProgress,e.fill()),e.closePath(),t.barBeginCircle&&(e.barDimensions.radius+=f),e.barDimensions.barWidth+=f,e.barDimensions.barLength+=f}function D(e,t,n,r,i,a){O(e,t,"",n,r,i,a)}function P(e,t){return t.needleSide!==e||t.tickSide!==e||t.numberSide!==e}function L(e,t,n,r,i,a){t.barProgress&&O(e,t,"progress",n,r,i,a)}function Q(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke(),e.closePath(),e.save()}function R(e,t,n,r,i,a,o,s,c){var l=e.barDimensions,u=l.isVertical,h=l.length,f=l.barWidth,d=l.barOffset,p=l.barMargin,g=l.pixelRatio,m=l.width,v=l.X,y=l.Y,A=l.ticksLength,b=l.ticksPadding,w=(m-f)/2,x=void 0,C=void 0,_=0,I=n.length,E=void 0,k=c*m,S=w-b*m,B=w+f+k+b*m,M=t instanceof Array?t:new Array(n.length).fill(t);e.lineWidth=s*g,e.save();for(var T=A/(i-r);_<I;_++)E=n[_],e.strokeStyle=M[_],u?(C=y+h-p-d+(r-E)*T,a&&Q(e,x=v+S,C,te(x-k),C),o&&Q(e,x=v+B,C,te(x-k),C)):(x=v+p+d-(r-E)*T,a&&Q(e,x,C=y+S,x,te(C-k)),o&&Q(e,x,te(C=y+B),x,C-k))}function j(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke(),e.closePath()}function N(e,t,n,r){return t.colorNeedleEnd?oe.linearGradient(e,r?t.colorNeedleEnd:t.colorNeedle,r?t.colorNeedle:t.colorNeedleEnd,n,!e.barDimensions.isVertical):t.colorNeedle}function F(e,t,n,r,i,a,o,s){e.lineWidth=t.needleWidth,e.strokeStyle=N(e,t,o,s),e.beginPath(),e.moveTo(n,r),e.lineTo(i,a),e.stroke(),e.closePath()}function z(e,t,n,r,i,a,o,s){var c=o-te(.4*o),l=n===i,u=t.needleWidth/2;e.fillStyle=N(e,t,o,s),e.beginPath(),l?(r>a&&(c*=-1),e.moveTo(n-u,r),e.lineTo(n+u,r),e.lineTo(n+u,r+c),e.lineTo(n,a),e.lineTo(n-u,r+c),e.lineTo(n-u,r)):(n>i&&(c*=-1),e.moveTo(n,r-u),e.lineTo(n,r+u),e.lineTo(n+c,r+u),e.lineTo(i,r),e.lineTo(n+c,r-u),e.lineTo(n,r-u)),e.fill(),e.closePath()}function H(e,t,n,r,i,a,o){var s=(parseFloat(t.fontValueSize)||0)*a/200,c=(.11*o-s)/2;e.barDimensions.isVertical&&oe.drawValueBox(e,t,n,r+a/2,i+o-s-c,a)}var U=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},G=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},V=function e(t,n,r,i){var a=Object.getOwnPropertyDescriptor(t,n);if(void 0===a){var o=Object.getPrototypeOf(t);null!==o&&e(o,n,r,i)}else if("value"in a&&a.writable)a.value=r;else{var s=a.set;void 0!==s&&s.call(i,r)}return r},W=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var c=a[o],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(n[c]=i[c])}}return n}}),Array.prototype.indexOf||Object.defineProperty(Array.prototype,"indexOf",{value:function(e,t){var n;if(null===this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0===i)return-1;var a=+t||0;if(Math.abs(a)===1/0&&(a=0),a>=i)return-1;for(n=Math.max(a>=0?a:i-Math.abs(a),0);n<i;){if(n in r&&r[n]===e)return n;n++}return-1}}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(e){if(null===this)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.length>>>0,r=arguments[1]|0,i=r<0?Math.max(n+r,0):Math.min(r,n),a=arguments[2],o=void 0===a?n:a|0,s=o<0?Math.max(n+o,0):Math.min(o,n);i<s;)t[i]=e,i++;return t}}),"undefined"==typeof window&&(window=void 0===t?{}:t);var q=function(){function e(){a(this,e),this._events={},this.addListener=this.on,this.removeListener=this.off}return W(e,[{key:"emit",value:function(e){if(this._events[e]){for(var t=0,n=this._events[e].length,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];for(;t<n;t++)this._events[e][t]&&this._events[e][t].apply(this,i)}}},{key:"once",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n.length,o=this;i<a;i++)!function(){var t=n[i];n[i]=function n(){o.off(e,n),t.apply(o,arguments)}}();this.on.apply(this,[e].concat(n))}},{key:"on",value:function(e){this._events[e]||(this._events[e]=[]);for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;t++)this._events[e].push(arguments.length<=t+1?void 0:arguments[t+1])}},{key:"off",value:function(e){if(this._events[e])for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;t++)for(var r=arguments.length<=t+1?void 0:arguments[t+1],i=void 0;~(i=this._events[e].indexOf(r));)this._events[e].splice(i,1)}},{key:"removeAllListeners",value:function(e){delete this._events[e]}},{key:"listeners",get:function(){return this._events}}]),e}(),Y=o("requestAnimationFrame")||function(e){return setTimeout((function(){return e((new Date).getTime())}),1e3/60)},K={linear:function(e){return e},quad:function(e){return Math.pow(e,2)},dequad:function(e){return 1-K.quad(1-e)},quint:function(e){return Math.pow(e,5)},dequint:function(e){return 1-Math.pow(1-e,5)},cycle:function(e){return 1-Math.sin(Math.acos(e))},decycle:function(e){return Math.sin(Math.acos(1-e))},bounce:function(e){return 1-K.debounce(1-e)},debounce:function(e){for(var t=0,n=1;;t+=n,n/=2)if(e>=(7-4*t)/11)return-Math.pow((11-6*t-11*e)/4,2)+Math.pow(n,2)},elastic:function(e){return 1-K.delastic(1-e)},delastic:function(e){return Math.pow(2,10*(e-1))*Math.cos(20*Math.PI*1.5/3*e)}},$=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(a(this,e),this.duration=n,this.rule=t,this.draw=r,this.end=i,"function"!=typeof this.draw)throw new TypeError("Invalid animation draw callback:",r);if("function"!=typeof this.end)throw new TypeError("Invalid animation end callback:",i)}return W(e,[{key:"animate",value:function(e,t){var n=this;this.frame&&this.cancel();var r=window.performance&&window.performance.now?window.performance.now():o("animationStartTime")||Date.now();e=e||this.draw,t=t||this.end,this.draw=e,this.end=t,this.frame=Y((function(i){return s(i,e,r,K[n.rule]||n.rule,n.duration,t,n)}))}},{key:"cancel",value:function(){this.frame&&((o("cancelAnimationFrame")||function(e){})(this.frame),this.frame=null)}},{key:"destroy",value:function(){this.cancel(),this.draw=null,this.end=null}}]),e}();$.rules=K;var J=function(){function t(n,r,i){a(this,t),this.options=n,this.element=r.toLowerCase(),this.type=t.toDashed(i),this.Type=e[i],this.mutationsObserved=!1,this.isObservable=!!window.MutationObserver,window.GAUGES_NO_AUTO_INIT||t.domReady(this.traverse.bind(this))}return W(t,[{key:"isValidNode",value:function(e){return!(!e.tagName||e.tagName.toLowerCase()!==this.element||e.getAttribute("data-type")!==this.type)}},{key:"traverse",value:function(){for(var e=document.getElementsByTagName(this.element),t=0,n=e.length;t<n;t++)this.process(e[t]);this.isObservable&&!this.mutationsObserved&&(new MutationObserver(this.observe.bind(this)).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0}),this.mutationsObserved=!0)}},{key:"observe",value:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if("attributes"===r.type&&"data-type"===r.attributeName&&this.isValidNode(r.target)&&r.oldValue!==this.type)setTimeout(this.process.bind(this,r.target));else if(r.addedNodes&&r.addedNodes.length)for(var i=0,a=r.addedNodes.length;i<a;i++)setTimeout(this.process.bind(this,r.addedNodes[i]))}}},{key:"process",value:function(e){var n=this;if(!this.isValidNode(e))return null;var r=void 0,i=JSON.parse(JSON.stringify(this.options)),a=null;for(r in i)if(i.hasOwnProperty(r)){var o=t.toAttributeName(r),s=t.parse(e.getAttribute(o));null!=s&&(i[r]=s)}return i.renderTo=e,(a=new this.Type(i)).draw&&a.draw(),this.isObservable?(a.observer=new MutationObserver((function(r){r.forEach((function(r){if("attributes"===r.type){var i=r.attributeName.toLowerCase(),o=e.getAttribute(i).toLowerCase();if("data-type"===i&&o&&o!==n.type)a.observer.disconnect(),delete a.observer,a.destroy&&a.destroy();else if("data-"===i.substr(0,5)){var s=i.substr(5).split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.substr(1):e})).join(""),c={};c[s]=t.parse(e.getAttribute(r.attributeName)),"value"===s?a&&(a.value=c[s]):a.update&&a.update(c)}}}))})),a.observer.observe(e,{attributes:!0}),a):a}}],[{key:"parse",value:function(e){if("true"===e)return!0;if("false"===e)return!1;if("undefined"!==e){if("null"===e)return null;if(/^[-+#.\w\d\s]+(?:,[-+#.\w\d\s]*)+$/.test(e))return e.split(",");try{return JSON.parse(e)}catch(e){}return e}}},{key:"toDashed",value:function(e){for(var t=e.split(/(?=[A-Z])/),n=1,r=t.length,i=t[0].toLowerCase();n<r;n++)i+="-"+t[n].toLowerCase();return i}},{key:"toCamelCase",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.split(/-/),r=0,i=n.length,a="";r<i;r++)a+=r||t?n[r][0].toUpperCase()+n[r].substr(1).toLowerCase():n[r].toLowerCase();return a}},{key:"toAttributeName",value:function(e){return"data-"+t.toDashed(e)}},{key:"domReady",value:function(e){if(/comp|inter|loaded/.test((window.document||{}).readyState+""))return e();window.addEventListener?window.addEventListener("DOMContentLoaded",e,!1):window.attachEvent&&window.attachEvent("onload",e)}}]),t}(),X=function(){function e(t,n,r){a(this,e),e.collection.push(this),this.width=n||0,this.height=r||0,this.element=t,this.init()}return W(e,[{key:"init",value:function(){var t=e.pixelRatio;this.element.width=this.width*t,this.element.height=this.height*t,this.element.style.width=this.width+"px",this.element.style.height=this.height+"px",this.elementClone=this.element.cloneNode(!0),this.context=this.element.getContext("2d"),this.contextClone=this.elementClone.getContext("2d"),this.drawWidth=this.element.width,this.drawHeight=this.element.height,this.drawX=this.drawWidth/2,this.drawY=this.drawHeight/2,this.minSide=this.drawX<this.drawY?this.drawX:this.drawY,this.elementClone.initialized=!1,this.contextClone.translate(this.drawX,this.drawY),this.contextClone.save(),this.context.translate(this.drawX,this.drawY),this.context.save(),this.context.max=this.contextClone.max=this.minSide,this.context.maxRadius=this.contextClone.maxRadius=null}},{key:"destroy",value:function(){var t=e.collection.indexOf(this);~t&&e.collection.splice(t,1),this.context.clearRect(-this.drawX,-this.drawY,this.drawWidth,this.drawHeight),this.context.max=null,delete this.context.max,this.context.maxRadius=null,delete this.context.maxRadius,this.context=null,this.contextClone=null,this.elementClone=null,this.element=null,this.onRedraw=null}},{key:"commit",value:function(){var t=e.pixelRatio;return 1!==t&&(this.contextClone.scale(t,t),this.contextClone.save()),this}},{key:"redraw",value:function(){return this.init(),this.onRedraw&&this.onRedraw(),this}}],[{key:"redraw",value:function(){for(var t=0,n=e.collection.length;t<n;t++)e.collection[t].redraw()}},{key:"pixelRatio",get:function(){return window.devicePixelRatio||1}}]),e}();X.collection=[],window.matchMedia&&window.matchMedia("screen and (min-resolution: 2dppx)").addListener(X.redraw);var Z={renderTo:null,width:0,height:0,minValue:0,maxValue:100,value:0,units:!1,exactTicks:!1,majorTicks:[0,20,40,60,80,100],minorTicks:10,strokeTicks:!0,animatedValue:!1,animateOnInit:!1,title:!1,borders:!0,numbersMargin:1,listeners:null,valueInt:3,valueDec:2,majorTicksInt:1,majorTicksDec:0,animation:!0,animationDuration:500,animationRule:"cycle",colorPlate:"#fff",colorPlateEnd:"",colorMajorTicks:"#444",colorMinorTicks:"#666",colorStrokeTicks:"",colorTitle:"#888",colorUnits:"#888",colorNumbers:"#444",colorNeedle:"rgba(240,128,128,1)",colorNeedleEnd:"rgba(255,160,122,.9)",colorValueText:"#444",colorValueTextShadow:"rgba(0,0,0,0.3)",colorBorderShadow:"rgba(0,0,0,0.5)",colorBorderOuter:"#ddd",colorBorderOuterEnd:"#aaa",colorBorderMiddle:"#eee",colorBorderMiddleEnd:"#f0f0f0",colorBorderInner:"#fafafa",colorBorderInnerEnd:"#ccc",colorValueBoxRect:"#888",colorValueBoxRectEnd:"#666",colorValueBoxBackground:"#babab2",colorValueBoxShadow:"rgba(0,0,0,1)",colorNeedleShadowUp:"rgba(2,255,255,0.2)",colorNeedleShadowDown:"rgba(188,143,143,0.45)",colorBarStroke:"#222",colorBar:"#ccc",colorBarProgress:"#888",colorBarShadow:"#000",fontNumbers:"Arial",fontTitle:"Arial",fontUnits:"Arial",fontValue:"Arial",fontNumbersSize:20,fontTitleSize:24,fontUnitsSize:22,fontValueSize:26,fontNumbersStyle:"normal",fontTitleStyle:"normal",fontUnitsStyle:"normal",fontValueStyle:"normal",fontNumbersWeight:"normal",fontTitleWeight:"normal",fontUnitsWeight:"normal",fontValueWeight:"normal",needle:!0,needleShadow:!0,needleType:"arrow",needleStart:5,needleEnd:85,needleWidth:4,borderOuterWidth:3,borderMiddleWidth:3,borderInnerWidth:3,borderShadowWidth:3,valueBox:!0,valueBoxStroke:5,valueBoxWidth:0,valueText:"",valueTextShadow:!0,valueBoxBorderRadius:2.5,highlights:[{from:20,to:60,color:"#eee"},{from:60,to:80,color:"#ccc"},{from:80,to:100,color:"#999"}],highlightsWidth:15,highlightsLineCap:"butt",barWidth:20,barStrokeWidth:0,barProgress:!0,barShadow:0};c.prototype=Object.create(Array.prototype),c.prototype.constructor=c,c.prototype.get=function(e){if("string"==typeof e)for(var t=0,n=this.length;t<n;t++){if((this[t].options.renderTo.tagName?this[t].options.renderTo:document.getElementById(this[t].options.renderTo||"")).getAttribute("id")===e)return this[t]}else if("number"==typeof e)return this[e];return null};var ee="2.1.7",te=Math.round,ne=Math.abs,re=new c;re.version=ee;var ie=function(t){function n(t){a(this,n);var i=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),o=i.constructor.name;if("BaseGauge"===o)throw new TypeError("Attempt to instantiate abstract class!");if(re.push(i),t.listeners&&Object.keys(t.listeners).forEach((function(e){(t.listeners[e]instanceof Array?t.listeners[e]:[t.listeners[e]]).forEach((function(t){i.on(e,t)}))})),i.version=ee,i.type=e[o]||n,i.initialized=!1,t.minValue=parseFloat(t.minValue),t.maxValue=parseFloat(t.maxValue),t.value=parseFloat(t.value)||0,t.borders||(t.borderInnerWidth=t.borderMiddleWidth=t.borderOuterWidth=0),!t.renderTo)throw TypeError("Canvas element was not specified when creating the Gauge object!");var s=t.renderTo.tagName?t.renderTo:document.getElementById(t.renderTo);if(!(s instanceof HTMLCanvasElement))throw TypeError("Given gauge canvas element is invalid!");return t.width=parseFloat(t.width)||0,t.height=parseFloat(t.height)||0,t.width&&t.height||(t.width||(t.width=s.parentNode?s.parentNode.offsetWidth:s.offsetWidth),t.height||(t.height=s.parentNode?s.parentNode.offsetHeight:s.offsetHeight)),i.options=t||{},i.options.animateOnInit&&(i._value=i.options.value,i.options.value=i.options.minValue),i.canvas=new X(s,t.width,t.height),i.canvas.onRedraw=i.draw.bind(i),i.animation=new $(t.animationRule,t.animationDuration),i}return i(n,t),W(n,[{key:"update",value:function(e){return Object.assign(this.options,this.type.configure(e||{})),this.canvas.width=this.options.width,this.canvas.height=this.options.height,this.animation.rule=this.options.animationRule,this.animation.duration=this.options.animationDuration,this.canvas.redraw(),this}},{key:"destroy",value:function(){var e=re.indexOf(this);~e&&re.splice(e,1),this.canvas.destroy(),this.canvas=null,this.animation.destroy(),this.animation=null,this.emit("destroy")}},{key:"draw",value:function(){return this.options.animateOnInit&&!this.initialized&&(this.value=this._value,this.initialized=!0,this.emit("init")),this.emit("render"),this}},{key:"value",set:function(e){var t=this;e=n.ensureValue(e,this.options.minValue);var r=this.options.value;if(e!==r)if(this.options.animation){if(this.animation.frame&&(this.options.value=this._value,this._value===e))return this.animation.cancel(),void delete this._value;void 0===this._value&&(this._value=e),this.emit("animationStart"),this.animation.animate((function(n){var i=r+(e-r)*n;t.options.animatedValue&&t.emit("value",i,t.value),t.options.value=i,t.draw(),t.emit("animate",n,t.options.value)}),(function(){void 0!==t._value&&(t.emit("value",t._value,t.value),t.options.value=t._value,delete t._value),t.draw(),t.emit("animationEnd")}))}else this.emit("value",e,this.value),this.options.value=e,this.draw()},get:function(){return void 0===this._value?this.options.value:this._value}}],[{key:"configure",value:function(e){return e}},{key:"initialize",value:function(e,t){return new J(t,"canvas",e)}},{key:"fromElement",value:function(e){var t=J.toCamelCase(e.getAttribute("data-type")),n=e.attributes,r=0,i=n.length,a={};if(t){for(/Gauge$/.test(t)||(t+="Gauge");r<i;r++)a[J.toCamelCase(n[r].name.replace(/^data-/,""),!1)]=J.parse(n[r].value);new J(a,e.tagName,t).process(e)}}},{key:"ensureValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e=parseFloat(e),!isNaN(e)&&isFinite(e)||(e=parseFloat(t)||0),e}},{key:"mod",value:function(e,t){return(e%t+t)%t}},{key:"version",get:function(){return ee}}]),n}(q);void 0!==e&&(e.BaseGauge=ie,e.gauges=(window.document||{}).gauges=re);var ae=/{([_a-zA-Z]+[_a-zA-Z0-9]*)}/g,oe={roundRect:l,padValue:u,formatMajorTickNumber:function(e,t){var n=void 0,r=!1;return n=0===t.majorTicksDec?Math.round(e).toString():e.toFixed(t.majorTicksDec),t.majorTicksInt>1?(r=~n.indexOf("."),~n.indexOf("-")?"-"+[t.majorTicksInt+t.majorTicksDec+2+(r?1:0)-n.length].join("0")+n.replace("-",""):[t.majorTicksInt+t.majorTicksDec+1+(r?1:0)-n.length].join("0")+n):n},radians:function(e){return e*Math.PI/180},radialPoint:function(e,t){return{x:-e*Math.sin(t),y:e*Math.cos(t)}},linearGradient:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=e.createLinearGradient(i?0:a,i?a:0,i?0:r,i?r:0);return o.addColorStop(0,t),o.addColorStop(1,n),o},drawNeedleShadow:function(e,t){t.needleShadow&&(e.shadowOffsetX=2,e.shadowOffsetY=2,e.shadowBlur=10,e.shadowColor=t.colorNeedleShadowDown)},drawValueBox:function(e,t,n,r,i,a){if(t.valueBox){f(e);var o=t.valueDec?1+t.valueDec:0,s="9".repeat(Math.max.apply(null,[String(parseInt(n)).length+o].concat(t.majorTicks.map((function(e){return String(parseInt(e,10)).length+o}))))),c=t.valueText||u(n,t),p=a/200,g=a/100,m=.4*g,v=1.2*g;e.font=h(t,"Value",p),d(e,t,m,v);var y=e.measureText(t.valueText?c:"-"+u(Number(s),t)).width;f(e);var A=parseFloat(t.fontValueSize)*p+m+v,b=g*parseFloat(t.valueBoxStroke),w=2*a-2*b,x=y+10*g,C=1.1*A+m+v,_=g*t.valueBoxBorderRadius,I=(parseFloat(t.valueBoxWidth)||0)/100*w;I>x&&(x=I),x>w&&(x=w);var E=r-x/2,k=i-C/2,S=i-5.75*g;if(e.beginPath(),_?l(e,E,k,x,C,_):e.rect(E,k,x,C),b){var B=e.createRadialGradient(r,S,10*g,r,S,20*g);B.addColorStop(0,t.colorValueBoxRect),B.addColorStop(1,t.colorValueBoxRectEnd),e.strokeStyle=B,e.lineWidth=b,e.stroke()}t.colorValueBoxShadow&&(e.shadowBlur=1.2*g,e.shadowColor=t.colorValueBoxShadow),t.colorValueBoxBackground&&(e.fillStyle=t.colorValueBoxBackground,e.fill()),e.closePath(),e.restore(),d(e,t,m,v),e.fillStyle=t.colorValueText,e.textAlign="center",e.textBaseline="alphabetic",e.fillText(c,E+x/2,i+C/2-A/3),e.restore()}},verifyError:function(e){if(!(e instanceof DOMException&&2152923147===e.result))throw e},prepareTicks:function(e){return e.majorTicks instanceof Array||(e.majorTicks=e.majorTicks?[e.majorTicks]:[]),e.majorTicks.length||(e.majorTicks.push(oe.formatMajorTickNumber(e.minValue,e)),e.majorTicks.push(oe.formatMajorTickNumber(e.maxValue,e))),["right"!==e.tickSide,"left"!==e.tickSide]},drawShadow:function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return e.restore(),!0;e.save();var n=t.borderShadowWidth;return n&&(e.shadowBlur=n,e.shadowColor=t.colorBorderShadow),!0},font:h,normalizedValue:function(e){var t=e.value,n=e.minValue,r=e.maxValue,i=.01*(r-n);return{normal:t<n?n:t>r?r:t,indented:t<n?n-i:t>r?r+i:t}},formatContext:function(e,t){return t.replace(ae,(function(t,n){var r=e[n];return void 0!==r?r:t}))}},se=Math.PI,ce=se/2,le=Object.assign({},Z,{ticksAngle:270,startAngle:45,colorNeedleCircleOuter:"#f0f0f0",colorNeedleCircleOuterEnd:"#ccc",colorNeedleCircleInner:"#e8e8e8",colorNeedleCircleInnerEnd:"#f5f5f5",needleCircleSize:10,needleCircleInner:!0,needleCircleOuter:!0,needleStart:20,animationTarget:"needle",useMinPath:!1,barWidth:0,barStartPosition:"left"}),ue=function(e){function t(e){return a(this,t),e=Object.assign({},le,e||{}),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,t.configure(e)))}return i(t,e),W(t,[{key:"draw",value:function(){try{var e=this.canvas,n=[-e.drawX,-e.drawY,e.drawWidth,e.drawHeight],r=n[0],i=n[1],a=n[2],o=n[3],s=this.options;if("needle"===s.animationTarget){if(!e.elementClone.initialized){var c=e.contextClone;c.clearRect(r,i,a,o),c.save(),this.emit("beforePlate"),m(c,s),this.emit("beforeHighlights"),v(c,s),this.emit("beforeMinorTicks"),y(c,s),this.emit("beforeMajorTicks"),b(c,s),this.emit("beforeNumbers"),C(c,s),this.emit("beforeTitle"),_(c,s),this.emit("beforeUnits"),I(c,s),e.elementClone.initialized=!0}this.canvas.commit(),e.context.clearRect(r,i,a,o),e.context.save(),e.context.drawImage(e.elementClone,r,i,a,o),e.context.save(),this.emit("beforeProgressBar"),S(e.context,s),this.emit("beforeValueBox"),k(e.context,s,B(this)),this.emit("beforeNeedle"),E(e.context,s)}else{var l=-oe.radians((s.value-s.minValue)/(s.maxValue-s.minValue)*s.ticksAngle);if(e.context.clearRect(r,i,a,o),e.context.save(),this.emit("beforePlate"),m(e.context,s),e.context.rotate(l),this.emit("beforeHighlights"),v(e.context,s),this.emit("beforeMinorTicks"),y(e.context,s),this.emit("beforeMajorTicks"),b(e.context,s),this.emit("beforeNumbers"),C(e.context,s),this.emit("beforeProgressBar"),S(e.context,s),e.context.rotate(-l),e.context.save(),!e.elementClone.initialized){var u=e.contextClone;u.clearRect(r,i,a,o),u.save(),this.emit("beforeTitle"),_(u,s),this.emit("beforeUnits"),I(u,s),this.emit("beforeNeedle"),E(u,s),e.elementClone.initialized=!0}e.context.drawImage(e.elementClone,r,i,a,o)}this.emit("beforeValueBox"),k(e.context,s,B(this)),G(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"draw",this).call(this)}catch(e){oe.verifyError(e)}return this}},{key:"value",set:function(e){e=ie.ensureValue(e,this.options.minValue),this.options.animation&&360===this.options.ticksAngle&&this.options.useMinPath&&(this._value=e,e=this.options.value+((e-this.options.value)%360+540)%360-180),V(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",e,this)},get:function(){return G(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this)}}],[{key:"configure",value:function(e){return e.barWidth>50&&(e.barWidth=50),isNaN(e.startAngle)&&(e.startAngle=45),isNaN(e.ticksAngle)&&(e.ticksAngle=270),e.ticksAngle>360&&(e.ticksAngle=360),e.ticksAngle<0&&(e.ticksAngle=0),e.startAngle<0&&(e.startAngle=0),e.startAngle>360&&(e.startAngle=360),e}}]),t}(ie);void 0!==e&&(e.RadialGauge=ue),ie.initialize("RadialGauge",le);var he=Object.assign({},Z,{borderRadius:0,barBeginCircle:30,colorBarEnd:"",colorBarProgressEnd:"",needleWidth:6,tickSide:"both",needleSide:"both",numberSide:"both",ticksWidth:10,ticksWidthMinor:5,ticksPadding:5,barLength:85,fontTitleSize:26,highlightsWidth:10}),fe=function(e){function t(e){return a(this,t),e=Object.assign({},he,e||{}),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,t.configure(e)))}return i(t,e),W(t,[{key:"draw",value:function(){try{var e=this.canvas,r=[-e.drawX,-e.drawY,e.drawWidth,e.drawHeight],i=r[0],a=r[1],o=r[2],s=r[3],c=this.options;if(!e.elementClone.initialized){var l=e.contextClone;l.clearRect(i,a,o,s),l.save(),this.emit("beforePlate"),this.drawBox=T(l,c,i,a,o,s),this.emit("beforeBar"),D.apply(void 0,[l,c].concat(n(this.drawBox))),e.context.barDimensions=l.barDimensions,this.emit("beforeHighlights"),function(e,t){var n=e.barDimensions,r=n.isVertical,i=n.width,a=n.length,o=n.barWidth,s=n.barOffset,c=n.barMargin,l=n.X,u=n.Y,h=n.ticksLength,f=n.ticksPadding,d=i*(parseFloat(t.highlightsWidth)||0)/100;if(t.highlights&&d){var p="right"!==t.tickSide,g="left"!==t.tickSide,m=0,v=t.highlights.length,y=(i-o)/2,A=t.maxValue-t.minValue,b=te(r?l+y:l+c+s),w=d,x=r?u+a-c-s:u+y,C=te((t.ticksWidth/100+f)*i)+(d-t.ticksWidth/100*i),_=te(o+f*i);for(e.save();m<v;m++){var I=t.highlights[m],E=h*ne(t.minValue-I.from)/A,k=h*ne((I.to-I.from)/A);e.beginPath(),e.fillStyle=I.color,r?(p&&e.rect(b-C,x-E,w,-k),g&&e.rect(b+_,x-E,w,-k)):(p&&e.rect(b+E,x-C,k,w),g&&e.rect(b+E,x+_,k,w)),e.fill(),e.closePath()}}}(l,c),this.emit("beforeMinorTicks"),function(e,t){var n=oe.prepareTicks(t),r=U(n,2),i=r[0],a=r[1],o=[],s=t.minValue,c=Math.abs(t.minorTicks)||0,l=c?(t.maxValue-t.minValue)/(c*(t.majorTicks.length-1)):0;if(c)if(t.exactTicks)for(var u=ie.mod(t.majorTicks[0],c)||0;s<t.maxValue;s+=c)u+s<t.maxValue&&o.push(u+s);else for(;s<t.maxValue;s+=l)o.push(s);R(e,t.colorMinorTicks||t.colorStrokeTicks,o,t.minValue,t.maxValue,i,a,1,t.ticksWidthMinor/100)}(l,c),this.emit("beforeMajorTicks"),function(e,t){var n=oe.prepareTicks(t),r=U(n,2),i=r[0],a=r[1],o=2,s=(t.maxValue-t.minValue)/(t.majorTicks.length-1),c=t.colorMajorTicks instanceof Array?t.colorMajorTicks:new Array(t.majorTicks.length).fill(t.colorStrokeTicks||t.colorMajorTicks);if(R(e,c,t.exactTicks?t.majorTicks:t.majorTicks.map((function(e,n){return t.minValue+s*n})),t.minValue,t.maxValue,i,a,o,t.ticksWidth/100),t.strokeTicks){var l=e.barDimensions,u=l.isVertical,h=l.length,f=l.width,d=l.barWidth,p=l.barMargin,g=l.barOffset,m=l.X,v=l.Y,y=l.ticksLength,A=l.pixelRatio,b=l.ticksPadding,w=(f-d)/2+d+b*f,x=(f-d)/2-b*f,C=void 0,_=void 0,I=void 0,E=void 0;e.strokeStyle=t.colorStrokeTicks||c[0],o*=A,u?(E=(_=v+h-p-g+o/2)-y-o,i&&(I=C=te(m+x),j(e,C,_,I,E)),a&&(I=C=te(m+w),j(e,C,_,I,E))):(I=(C=m+p+g-o/2)+y+o,i&&(E=_=te(v+x),j(e,C,_,I,E)),a&&(E=_=te(v+w),j(e,C,_,I,E)))}}(l,c),this.emit("beforeNumbers"),function(e,t){var n=e.barDimensions,r=n.isVertical,i=n.length,a=n.width,o=n.barWidth,s=n.barMargin,c=n.barOffset,l=n.X,u=n.Y,h=n.ticksLength,f=n.ticksPadding,d=t.maxValue-t.minValue,p=d/(t.majorTicks.length-1),g=t.exactTicks?t.majorTicks:t.majorTicks.map((function(e,n){return t.minValue+p*n})),m=g.length,v="right"!==t.numberSide,y="left"!==t.numberSide,A=t.fontNumbersSize*a/200,b=0,w=(t.ticksWidth/100+2*f)*a,x=(a-o)/2-w,C=(a-o)/2+o+w,_=void 0,I=void 0,E=void 0,k=void 0,S=t.colorNumbers instanceof Array?t.colorNumbers:new Array(m).fill(t.colorNumbers),B=t.numbersMargin/100*a;for(e.font=oe.font(t,"Numbers",a/200),e.lineWidth=0,e.textAlign="center";b<m;b++)e.fillStyle=S[b],k=t.majorTicks[b],E=t.exactTicks?h*((g[b]-t.minValue)/d):b*h/(m-1),r?(I=u+i-s-c-E+A/3,v&&(e.textAlign="right",e.fillText(k,l+x-B,I)),y&&(e.textAlign="left",e.fillText(k,l+C+B,I))):(e.measureText(k).width,_=l+s+c+E,v&&e.fillText(k,_,u+x-B),y&&e.fillText(k,_,u+C+A+B))}(l,c),this.emit("beforeTitle"),function(e,t){if(t.title){var n=e.barDimensions,r=n.isVertical,i=n.width,a=n.length,o=n.baseX,s=n.baseY,c=n.titleMargin,l=t.fontTitleSize*i/200,u=te(o+(r?i:a)/2),h=te(s+c/2-(r?l:l/2)-.025*(r?a:i));e.save(),e.textAlign="center",e.fillStyle=t.colorTitle,e.font=oe.font(t,"Title",i/200),e.lineWidth=0,e.fillText(t.title,u,h,r?i:a)}}(l,c),this.emit("beforeUnits"),function(e,t){if(t.units){var n=e.barDimensions,r=n.isVertical,i=n.width,a=n.length,o=n.baseX,s=n.baseY,c=n.unitsMargin,l=t.fontUnitsSize*i/200,u=te(o+(r?i:a)/2),h=te(s+(r?a:i)+c/2-l/2);e.save(),e.textAlign="center",e.fillStyle=t.colorUnits,e.font=oe.font(t,"Units",i/200),e.lineWidth=0,e.fillText(oe.formatContext(t,t.units),u,h,r?i:a)}}(l,c),e.elementClone.initialized=!0}this.canvas.commit(),e.context.clearRect(i,a,o,s),e.context.save(),e.context.drawImage(e.elementClone,i,a,o,s),e.context.save(),this.emit("beforeProgressBar"),L.apply(void 0,[e.context,c].concat(n(this.drawBox))),this.emit("beforeNeedle"),function(e,t){if(t.needle){var n=e.barDimensions,r=n.isVertical,i=n.width,a=n.length,o=n.barWidth,s=n.barOffset,c=n.barMargin,l=n.ticksLength,u=n.X,h=n.Y,f=n.ticksPadding,d="right"!==t.needleSide,p="left"!==t.needleSide,g=l*(oe.normalizedValue(t).indented-t.minValue)/(t.maxValue-t.minValue),m=(t.ticksWidth/100+f)*i,v=o/2+m,y=v*(t.needleEnd/100),A=void 0,b=void 0,w="arrow"===t.needleType.toLowerCase()?z:F,x=(i-o)/2,C=v*(t.needleStart/100),_=x-m-C,I=x+o+m+C;e.save(),oe.drawNeedleShadow(e,t),r?(b=te(h+a-c-s-g),d&&w(e,t,A=te(u+_),b,A+y,b,y),p&&w(e,t,A=te(u+I),b,A-y,b,y,!0)):(A=te(u+c+s+g),d&&w(e,t,A,b=te(h+_),A,b+y,y),p&&w(e,t,A,b=te(h+I),A,b-y,y,!0)),e.restore()}}(e.context,c),this.emit("beforeValueBox"),H.apply(void 0,[e.context,c,c.animatedValue?this.options.value:this.value].concat(n(this.drawBox))),G(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"draw",this).call(this)}catch(e){oe.verifyError(e)}return this}}],[{key:"configure",value:function(e){return e.barStrokeWidth>=e.barWidth&&(e.barStrokeWidth=te(e.barWidth/2)),e.hasLeft=P("right",e),e.hasRight=P("left",e),e.value>e.maxValue&&(e.value=e.maxValue),e.value<e.minValue&&(e.value=e.minValue),ie.configure(e)}}]),t}(ie);void 0!==e&&(e.LinearGauge=fe),ie.initialize("LinearGauge",he),Object.assign(e,{Collection:c,GenericOptions:Z,Animation:$,BaseGauge:ie,drawings:oe,SmartCanvas:X,DomObserver:J,vendorize:o})}(e.exports);
//# sourceMappingURL=gauge.min.js.map
/* WEBPACK VAR INJECTION */}).call(this,n("c8ba"))
/***/},
/***/b041:
/***/function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");
// `Object.prototype.toString` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.tostring
e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},
/***/b047:
/***/function(e,t,n){var r=n("1a8c"),i=n("408c"),a=n("b4b0"),o=Math.max,s=Math.min;
/** Error message constants. */e.exports=
/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function(e,t,n){var c,l,u,h,f,d,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,r=l;return c=l=void 0,p=t,h=e.apply(r,n)}function A(e){var n=e-d;
// Either this is the first call, activity has stopped and we're at the
// trailing edge, the system time has gone backwards and we're treating
// it as the trailing edge, or we've hit the `maxWait` limit.
return void 0===d||n>=t||n<0||m&&e-p>=u}function b(){var e=i();if(A(e))return w(e);
// Restart the timer.
f=setTimeout(b,function(e){var n=t-(e-d);return m?s(n,u-(e-p)):n}(e))}function w(e){
// Only invoke if we have `lastArgs` which means `func` has been
// debounced at least once.
return f=void 0,v&&c?y(e):(c=l=void 0,h)}function x(){var e=i(),n=A(e);if(c=arguments,l=this,d=e,n){if(void 0===f)return function(e){
// Invoke the leading edge.
// Reset any `maxWait` timer.
return p=e,
// Start the timer for the trailing edge.
f=setTimeout(b,t),g?y(e):h}(d);if(m)
// Handle invocations in a tight loop.
return clearTimeout(f),f=setTimeout(b,t),y(d)}return void 0===f&&(f=setTimeout(b,t)),h}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?o(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),p=0,c=d=l=f=void 0},x.flush=function(){return void 0===f?h:w(i())},x}},
/***/b047f:
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function(e){return function(t){return e(t)}}},
/***/b06d:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.extendNewGraph=function(e,t){if(!e||!t)return;if(!t.shape)return;if(!t.validator)return;if(!t.draw)return;x.set(e,t)}
/***/,t.default=t.text=t.bezierCurve=t.smoothline=t.polyline=t.regPolygon=t.sector=t.arc=t.ring=t.rect=t.ellipse=t.circle=void 0;var i=r(n("448a")),a=r(n("278c")),o=r(n("050c")),s=n("5557"),c=n("e169"),l=o.default.polylineToBezierCurve,u=o.default.bezierCurveToPolyline,h={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,r=t.ry,i=t.r;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,a=r.ry,o=r.r;n.arc(i,a,o>0?o:.01,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=n.rx,i=n.ry,a=n.r;return(0,s.checkPointIsInCircle)(e,r,i,a)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry;r.graphCenter=[i,a]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.circle=h;var f={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(e){var t=e.shape,n=t.rx,r=t.ry,i=t.hr,a=t.vr;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i&&"number"==typeof a},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,a=r.ry,o=r.hr,s=r.vr;n.ellipse(i,a,o>0?o:.01,s>0?s:.01,0,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=n.rx,i=n.ry,a=n.hr,o=n.vr,c=Math.max(a,o),l=Math.min(a,o),u=Math.sqrt(c*c-l*l),h=[r-u,i],f=[r+u,i];return(0,s.getTwoPointDistance)(e,h)+(0,s.getTwoPointDistance)(e,f)<=2*c},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry;r.graphCenter=[i,a]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.ellipse=f;var d={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,r=t.y,i=t.w,a=t.h;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i&&"number"==typeof a},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.x,a=r.y,o=r.w,s=r.h;n.rect(i,a,o,s),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=n.x,i=n.y,a=n.w,o=n.h;return(0,s.checkPointIsInRect)(e,r,i,a,o)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.x,a=n.y,o=n.w,s=n.h;r.graphCenter=[i+o/2,a+s/2]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{x:i.x+n,y:i.y+r})}};t.rect=d;var p={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,r=t.ry,i=t.r;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,a=r.ry,o=r.r;n.arc(i,a,o>0?o:.01,0,2*Math.PI),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry,o=n.r,c=r.lineWidth/2,l=o-c,u=o+c,h=(0,s.getTwoPointDistance)(e,[i,a]);return h>=l&&h<=u},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry;r.graphCenter=[i,a]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.ring=p;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape;return!["rx","ry","r","startAngle","endAngle"].find((function(e){return"number"!=typeof t[e]}))},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,a=r.ry,o=r.r,s=r.startAngle,c=r.endAngle,l=r.clockWise;n.arc(i,a,o>0?o:.001,s,c,!l),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry,o=n.r,c=n.startAngle,l=n.endAngle,u=n.clockWise,h=r.lineWidth/2,f=o-h,d=o+h;return!(0,s.checkPointIsInSector)(e,i,a,f,c,l,u)&&(0,s.checkPointIsInSector)(e,i,a,d,c,l,u)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry;r.graphCenter=[i,a]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.arc=g;var m={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape;return!["rx","ry","r","startAngle","endAngle"].find((function(e){return"number"!=typeof t[e]}))},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,a=r.ry,o=r.r,s=r.startAngle,c=r.endAngle,l=r.clockWise;n.arc(i,a,o>0?o:.01,s,c,!l),n.lineTo(i,a),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.shape,r=n.rx,i=n.ry,a=n.r,o=n.startAngle,c=n.endAngle,l=n.clockWise;return(0,s.checkPointIsInSector)(e,r,i,a,o,c,l)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry;r.graphCenter=[i,a]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,a=i.rx,o=i.ry;this.attr("shape",{rx:a+n,ry:o+r})}};t.sector=m;var v={shape:{rx:0,ry:0,r:0,side:0},validator:function(e){var t=e.shape,n=t.side;return!["rx","ry","r","side"].find((function(e){return"number"!=typeof t[e]}))&&!(n<3)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.cache;n.beginPath();var a=r.rx,o=r.ry,l=r.r,u=r.side;if(!i.points||i.rx!==a||i.ry!==o||i.r!==l||i.side!==u){var h=(0,s.getRegularPolygonPoints)(a,o,l,u);Object.assign(i,{points:h,rx:a,ry:o,r:l,side:u})}var f=i.points;(0,c.drawPolylinePath)(n,f),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.cache.points;return(0,s.checkPointIsInPolygon)(e,n)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,a=n.ry;r.graphCenter=[i,a]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,o=t.cache,s=i.rx,c=i.ry;o.rx+=n,o.ry+=r,this.attr("shape",{rx:s+n,ry:c+r}),o.points=o.points.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]}))}};t.regPolygon=v;var y={shape:{points:[],close:!1},validator:function(e){return e.shape.points instanceof Array},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.style.lineWidth;n.beginPath();var a=r.points,o=r.close;1===i&&(a=(0,s.eliminateBlur)(a)),(0,c.drawPolylinePath)(n,a),o?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.shape,r=t.style,i=n.points,a=n.close,o=r.lineWidth;return a?(0,s.checkPointIsInPolygon)(e,i):(0,s.checkPointIsNearPolyline)(e,i,o)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.points;r.graphCenter=i[0]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape.points.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]}));this.attr("shape",{points:i})}};t.polyline=y;var A={shape:{points:[],close:!1},validator:function(e){return e.shape.points instanceof Array},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.cache,a=r.points,o=r.close;if(!i.points||i.points.toString()!==a.toString()){var h=l(a,o),f=u(h);Object.assign(i,{points:(0,s.deepClone)(a,!0),bezierCurve:h,hoverPoints:f})}var d=i.bezierCurve;n.beginPath(),(0,c.drawBezierCurvePath)(n,d.slice(1),d[0]),o?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,r=t.shape,i=t.style,a=n.hoverPoints,o=r.close,c=i.lineWidth;return o?(0,s.checkPointIsInPolygon)(e,a):(0,s.checkPointIsNearPolyline)(e,a,c)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.points;r.graphCenter=i[0]},move:function(e,t){var n=e.movementX,r=e.movementY,o=t.shape,s=t.cache,c=o.points.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]}));s.points=c;var l=(0,a.default)(s.bezierCurve[0],2),u=l[0],h=l[1],f=s.bezierCurve.slice(1);s.bezierCurve=[[u+n,h+r]].concat((0,i.default)(f.map((function(e){return e.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]}))})))),s.hoverPoints=s.hoverPoints.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]})),this.attr("shape",{points:c})}};t.smoothline=A;var b={shape:{points:[],close:!1},validator:function(e){return e.shape.points instanceof Array},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.cache,a=r.points,o=r.close;if(!i.points||i.points.toString()!==a.toString()){var l=u(a,20);Object.assign(i,{points:(0,s.deepClone)(a,!0),hoverPoints:l})}n.beginPath(),(0,c.drawBezierCurvePath)(n,a.slice(1),a[0]),o?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,r=t.shape,i=t.style,a=n.hoverPoints,o=r.close,c=i.lineWidth;return o?(0,s.checkPointIsInPolygon)(e,a):(0,s.checkPointIsNearPolyline)(e,a,c)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.points;r.graphCenter=i[0]},move:function(e,t){var n=e.movementX,r=e.movementY,o=t.shape,s=t.cache,c=o.points,l=(0,a.default)(c[0],2),u=l[0],h=l[1],f=c.slice(1),d=[[u+n,h+r]].concat((0,i.default)(f.map((function(e){return e.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]}))}))));s.points=d,s.hoverPoints=s.hoverPoints.map((function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return[i+n,o+r]})),this.attr("shape",{points:d})}};t.bezierCurve=b;var w={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(e){var t=e.shape,n=t.content,r=t.position,i=t.rowGap;return"string"==typeof n&&(r instanceof Array&&"number"==typeof i)},draw:function(e,t){var n=e.ctx,r=t.shape,o=r.content,s=r.position,c=r.maxWidth,l=r.rowGap,u=n.textBaseline,h=n.font,f=parseInt(h.replace(/\D/g,"")),d=s,p=(0,a.default)(d,2),g=p[0],m=p[1],v=(o=o.split("\n")).length,y=f+l,A=v*y-l,b=0;"middle"===u&&(b=A/2,m+=f/2),"bottom"===u&&(b=A,m+=f),s=new Array(v).fill(0).map((function(e,t){return[g,m+t*y-b]})),n.beginPath(),o.forEach((function(e,t){n.fillText.apply(n,[e].concat((0,i.default)(s[t]),[c])),n.strokeText.apply(n,[e].concat((0,i.default)(s[t]),[c]))})),n.closePath()},hoverCheck:function(e,t){t.shape,t.style;return!1},setGraphCenter:function(e,t){var n=t.shape,r=t.style,a=n.position;r.graphCenter=(0,i.default)(a)},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,o=(0,a.default)(i.position,2),s=o[0],c=o[1];this.attr("shape",{position:[s+n,c+r]})}};t.text=w;var x=new Map([["circle",h],["ellipse",f],["rect",d],["ring",p],["arc",g],["sector",m],["regPolygon",v],["polyline",y],["smoothline",A],["bezierCurve",b],["text",w]]),C=x;
/**
 * @description Extend new graph
 * @param {String} name   Name of Graph
 * @param {Object} config Configuration of Graph
 * @return {Undefined} Void
 */
t.default=C},
/***/b0a8:
/***/function(e,t){
/** Used as references for various `Number` constants. */
var n=Math.floor;
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=
/**
 * The base implementation of `_.repeat` which doesn't coerce arguments.
 *
 * @private
 * @param {string} string The string to repeat.
 * @param {number} n The number of times to repeat the string.
 * @returns {string} Returns the repeated string.
 */
function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;
// Leverage the exponentiation by squaring algorithm for a faster repeat.
// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},
/***/b0c0:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("5e77").EXISTS,a=n("e330"),o=n("edd0"),s=Function.prototype,c=a(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(l.exec);
// Function instances `.name` property
// https://tc39.es/ecma262/#sec-function-instances-name
r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch(e){return""}}})
/***/},
/***/b12f:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("2dc5"),i=n("8918"),a=n("625e"),o=/** @class */function(){function e(){this.group=new r.a,this.uid=i.c("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){
// Do nothing;
},e.prototype.updateLayout=function(e,t,n,r){
// Do nothing;
},e.prototype.updateVisual=function(e,t,n,r){
// Do nothing;
},
/**
   * Hook for toggle blur target series.
   * Can be used in marker for blur or leave blur the markers
   */
e.prototype.toggleBlurSeries=function(e,t,n){
// Do nothing;
},
/**
   * Traverse the new rendered elements.
   *
   * It will traverse the new added element in progressive rendering.
   * And traverse all in normal rendering.
   */
e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();
/* harmony import */a.b(o),a.c(o),
/* harmony default export */t.a=o},
/***/b1b3:
/***/function(e,t,n){var r=n("77e9"),i=n("23dd");e.exports=n("5524").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},
/***/b1d4:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return h})),
/* harmony export (binding) */n.d(t,"b",(function(){return f}));
/* harmony import */var r=n("07fd"),i=n("cd70"),a=n("6d8b"),o=n("ec6f"),s=n("d0ce"),c=n("e0d3"),l=n("0f99"),u=n("80b9");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * For outside usage compat (like echarts-gl are using it).
 */
function h(e,t){return f(e,t).dimensions}
/**
 * This method builds the relationship between:
 * + "what the coord sys or series requires (see `coordDimensions`)",
 * + "what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)"
 * + "what the data source provids (see `source`)".
 *
 * Some guess strategy will be adapted if user does not define something.
 * If no 'value' dimension specified, the first no-named dimension will be
 * named as 'value'.
 *
 * @return The results are always sorted by `storeDimIndex` asc.
 */function f(
// TODO: TYPE completeDimensions type
e,t){Object(o.e)(e)||(e=Object(o.c)(e));var n=(t=t||{}).coordDimensions||[],h=t.dimensionsDefine||e.dimensionsDefine||[],f=Object(a.createHashMap)(),p=[],g=
// ??? TODO
// Originally detect dimCount by data[0]. Should we
// optimize it to only by sysDims and dimensions and encode.
// So only necessary dims will be initialized.
// But
// (1) custom series should be considered. where other dims
// may be visited.
// (2) sometimes user need to calculate bubble size or use visualMap
// on other dimensions besides coordSys needed.
// So, dims that is not used by system, should be shared in data store?
function(e,t,n,r){
// Note that the result dimCount should not small than columns count
// of data, otherwise `dataDimNameMap` checking will be incorrect.
var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(a.each)(t,(function(e){var t;Object(a.isObject)(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}(e,n,h,t.dimensionsCount),m=t.canOmitUnusedDimensions&&Object(u.e)(g),v=h===e.dimensionsDefine,y=v?Object(u.c)(e):Object(u.b)(h),A=t.encodeDefine;!A&&t.encodeDefaulter&&(A=t.encodeDefaulter(e,g));for(var b=Object(a.createHashMap)(A),w=new s.a(g),x=0;x<w.length;x++)w[x]=-1;function C(e){var t=w[e];if(t<0){var n=h[e],r=Object(a.isObject)(n)?n:{name:n},o=new i.a,s=r.name;null!=s&&null!=y.get(s)&&(
// Only if `series.dimensions` is defined in option
// displayName, will be set, and dimension will be displayed vertically in
// tooltip by default.
o.name=o.displayName=s),null!=r.type&&(o.type=r.type),null!=r.displayName&&(o.displayName=r.displayName);var c=p.length;return w[e]=c,o.storeDimIndex=e,p.push(o),o}return p[t]}if(!m)for(x=0;x<g;x++)C(x);
// Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`.
b.each((function(e,t){var n=Object(c.r)(e).slice();
// Note: It is allowed that `dataDims.length` is `0`, e.g., options is
// `{encode: {x: -1, y: 1}}`. Should not filter anything in
// this case.
if(1===n.length&&!Object(a.isString)(n[0])&&n[0]<0)b.set(t,!1);else{var r=b.set(t,[]);Object(a.each)(n,(function(e,n){
// The input resultDimIdx can be dim name or index.
var i=Object(a.isString)(e)?y.get(e):e;null!=i&&i<g&&(r[n]=i,I(C(i),t,n))}))}}));
// Apply templates and default order from `sysDims`.
var _=0;function I(e,t,n){null!=r.i.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,f.set(t,!0))}
// Make sure the first extra dim is 'value'.
Object(a.each)(n,(function(e){var t,n,r,i;if(Object(a.isString)(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Object(a.extend)({},i)).ordinalMeta=o,
// `coordDimIndex` should not be set directly.
n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=b.get(t);
// negative resultDimIdx means no need to mapping.
if(!1!==s){
// dimensions provides default dim sequences.
if(!(s=Object(c.r)(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;_<g&&null!=C(_).coordDim;)_++;_<g&&s.push(_++)}
// Apply templates.
Object(a.each)(s,(function(e,o){var s=C(e);
// Coordinate system has a higher priority on dim type than source.
if(v&&null!=i.type&&(s.type=i.type),I(Object(a.defaults)(s,i),t,o),null==s.name&&n){var c=n[o];!Object(a.isObject)(c)&&(c={name:c}),s.name=s.displayName=c.name,s.defaultTooltip=c.defaultTooltip}
// FIXME refactor, currently only used in case: {otherDims: {tooltip: false}}
r&&Object(a.defaults)(s.otherDims,r)}))}}));var E=t.generateCoord,k=t.generateCoordCount,S=null!=k;k=E?k||1:0;var B=E||"value";function M(e){null==e.name&&(
// Duplication will be removed in the next step.
e.name=e.coordDim)}
// Set dim `name` and other `coordDim` and other props.
if(m)Object(a.each)(p,(function(e){
// PENDING: guessOrdinal or let user specify type: 'ordinal' manually?
M(e)})),
// Sort dimensions: there are some rule that use the last dim as label,
// and for some latter travel process easier.
p.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var T=0;T<g;T++){var O=C(T);null==O.coordDim&&(
// TODO no need to generate coordDim for isExtraCoord?
O.coordDim=d(B,f,S),O.coordDimIndex=0,
// Series specified generateCoord is using out.
(!E||k<=0)&&(O.isExtraCoord=!0),k--),M(O),null!=O.type||Object(l.b)(e,T)!==l.a.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return function(e){for(var t=Object(a.createHashMap)(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(
// Starts from 0.
r.name=i+(o-1)),o++,t.set(i,o)}}(p),new u.a({source:e,dimensions:p,fullDimensionCount:g,dimensionOmitted:m})}function d(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}
/***/},
/***/b1e5:
/***/function(e,t,n){var r=n("a994"),i=Object.prototype.hasOwnProperty;
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,a,o,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var h=u;h--;){var f=l[h];if(!(c?f in t:i.call(t,f)))return!1}
// Check that cyclic values are equal.
var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=c;++h<u;){var v=e[f=l[h]],y=t[f];if(a)var A=c?a(y,v,f,t,e,s):a(v,y,f,e,t,s);
// Recursively compare objects (susceptible to call stack limits).
if(!(void 0===A?v===y||o(v,y,n,a,s):A)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var b=e.constructor,w=t.constructor;
// Non `Object` object instances with different constructors are not equal.
b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}},
/***/b218:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},
/***/b245:
/***/function(e,t,n){"use strict";
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
var r=n("f083"),i=n("6373"),a=n("453f"),o="endsWith",s=""[o];r(r.P+r.F*n("3afb")(o),"String",{endsWith:function(e/* , endPosition = @length */){var t=a(this,e,o),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),c=void 0===n?r:Math.min(i(n),r),l=String(e);return s?s.call(t,l,c):t.slice(c-l.length,c)===l}})},
/***/b24f:
/***/function(e,t,n){"use strict";t.__esModule=!0;var r=a(n("93ff")),i=a(n("1727"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var s,c=(0,i.default)(e);!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},
/***/b2b1:
/***/function(e,t,n){
// http://jfbastien.github.io/papers/Math.signbit.html
var r=n("f083");r(r.S,"Math",{signbit:function(e){
// eslint-disable-next-line no-self-compare
return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},
/***/b311:
/***/function(e,t,n){
/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
var r;r=function(){/******/
return function(){// webpackBootstrap
/******/var e={
/***/686:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,{default:function(){/* binding */return x}});
// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js
var r=n(279),i=n.n(r),a=n(370),o=n.n(a),s=n(817),c=n.n(s);// CONCATENATED MODULE: ./src/common/command.js
/**
 * Executes a given operation type.
 * @param {String} type
 * @return {Boolean}
 */
function l(e){try{return document.execCommand(e)}catch(e){return!1}}// CONCATENATED MODULE: ./src/actions/cut.js
/**
 * Cut action wrapper.
 * @param {String|HTMLElement} target
 * @return {String}
 */
var u=function(e){var t=c()(e);return l("cut"),t},h=function(e,t){var n=// CONCATENATED MODULE: ./src/common/create-fake-element.js
/**
 * Creates a fake textarea element with a value.
 * @param {String} value
 * @return {HTMLElement}
 */
function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");// Prevent zooming on iOS
n.style.fontSize="12pt",// Reset box model
n.style.border="0",n.style.padding="0",n.style.margin="0",// Move element out of screen horizontally
n.style.position="absolute",n.style[t?"right":"left"]="-9999px";// Move element to the same position vertically
var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=c()(n);return l("copy"),n.remove(),r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?
// If input type doesn't support `setSelectionRange`. Simulate it. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange
n=h(e.value,t):(n=c()(e),l("copy")),n};
/* harmony default export */ // CONCATENATED MODULE: ./src/actions/default.js
function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}
/**
 * Inner function which performs selection from either `text` or `target`
 * properties and then executes copy or cut operations.
 * @param {Object} options
 */var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;
// Defines base properties passed from constructor.
// Sets the `action` to be performed which can be either 'copy' or 'cut'.
if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');// Sets the `target` property using an element that will be have its content copied.
if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}// Define selection strategy based on `text` property.
return a?f(a,{container:r}):// Defines which selection strategy based on `target` property.
i?"cut"===n?u(i):f(i,{container:r}):void 0};
/* harmony default export */ // CONCATENATED MODULE: ./src/clipboard.js
function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}
/**
 * Helper function to retrieve attribute value.
 * @param {String} suffix
 * @param {Element} element
 */function b(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}
/**
 * Base class which takes one or more elements, adds event listeners to them,
 * and instantiates a new `ClipboardAction` on each click.
 */var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(a,e);var t,n,r,i=y(a);
/**
   * @param {String|HTMLElement|HTMLCollection|NodeList} trigger
   * @param {Object} options
   */function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this)).resolveOptions(t),n.listenClick(e),n}
/**
   * Defines if attributes would be resolved using internal setter functions
   * or custom functions that were passed in the constructor.
   * @param {Object} options
   */return t=a,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}
/**
     * Adds a click event listener to the passed trigger.
     * @param {String|HTMLElement|HTMLCollection|NodeList} trigger
     */},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}
/**
     * Defines a new `ClipboardAction` on each click event.
     * @param {Event} e
     */},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=p({action:n,container:this.container,target:this.target(t),text:this.text(t)});// Fires an event based on the copy operation result.
this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}
/**
     * Default `action` lookup function.
     * @param {Element} trigger
     */},{key:"defaultAction",value:function(e){return b("action",e)}
/**
     * Default `target` lookup function.
     * @param {Element} trigger
     */},{key:"defaultTarget",value:function(e){var t=b("target",e);if(t)return document.querySelector(t)}
/**
     * Allow fire programmatically a copy action
     * @param {String|HTMLElement} target
     * @param {Object} options
     * @returns Text copied.
     */},{key:"defaultText",
/**
     * Default `text` lookup function.
     * @param {Element} trigger
     */
value:function(e){return b("text",e)}
/**
     * Destroy lifecycle.
     */},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}
/**
     * Allow fire programmatically a cut action
     * @param {String|HTMLElement} target
     * @returns Text cutted.
     */},{key:"cut",value:function(e){return u(e)}
/**
     * Returns the support of the given action, or all actions if no action is
     * given.
     * @param {String} [action]
     */},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&m(t.prototype,n),r&&m(t,r),a}(i()),x=w;
/* harmony default export */},
/***/828:
/***/function(e){
/**
 * A polyfill for Element.matches()
 */
if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}
/**
 * Finds the closest parent that matches a selector.
 *
 * @param {Element} element
 * @param {String} selector
 * @return {Function}
 */e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},
/***/438:
/***/function(e,t,n){var r=n(828);
/**
 * Delegates event to a selector.
 *
 * @param {Element} element
 * @param {String} selector
 * @param {String} type
 * @param {Function} callback
 * @param {Boolean} useCapture
 * @return {Object}
 */function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}
/**
 * Delegates event to a selector.
 *
 * @param {Element|String|Array} [elements]
 * @param {String} selector
 * @param {String} type
 * @param {Function} callback
 * @param {Boolean} useCapture
 * @return {Object}
 */
/**
 * Finds closest match and invokes callback.
 *
 * @param {Element} element
 * @param {String} selector
 * @param {String} type
 * @param {Function} callback
 * @return {Function}
 */
function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){
// Handle the regular Element usage
return"function"==typeof e.addEventListener?i.apply(null,arguments):
// Handle Element-less usage, it defaults to global delegation
"function"==typeof n?i.bind(null,document).apply(null,arguments):(
// Handle Selector-based usage
"string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,a)})))}},
/***/879:
/***/function(e,t){
/**
 * Check if argument is a HTML element.
 *
 * @param {Object} value
 * @return {Boolean}
 */
t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},
/**
 * Check if argument is a list of HTML elements.
 *
 * @param {Object} value
 * @return {Boolean}
 */
t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},
/**
 * Check if argument is a string.
 *
 * @param {Object} value
 * @return {Boolean}
 */
t.string=function(e){return"string"==typeof e||e instanceof String},
/**
 * Check if argument is a function.
 *
 * @param {Object} value
 * @return {Boolean}
 */
t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},
/***/370:
/***/function(e,t,n){var r=n(879),i=n(438);e.exports=
/**
 * Validates all params and calls the right
 * listener function based on its target type.
 *
 * @param {String|HTMLElement|HTMLCollection|NodeList} target
 * @param {String} type
 * @param {Function} callback
 * @return {Object}
 */
function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))
/**
 * Adds an event listener to a HTML element
 * and returns a remove listener function.
 *
 * @param {HTMLElement} node
 * @param {String} type
 * @param {Function} callback
 * @return {Object}
 */
return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}
/**
 * Add an event listener to a list of HTML elements
 * and returns a remove listener function.
 *
 * @param {NodeList|HTMLCollection} nodeList
 * @param {String} type
 * @param {Function} callback
 * @return {Object}
 */(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}
/**
 * Add an event listener to a selector
 * and returns a remove listener function.
 *
 * @param {String} selector
 * @param {String} type
 * @param {Function} callback
 * @return {Object}
 */(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},
/***/817:
/***/function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},
/***/279:
/***/function(e){function t(){
// Keep this empty so it's easier to inherit from
// (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);
// Remove event from queue to prevent memory leak
// Suggested by https://github.com/lazd
// Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910
return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}
/******/},t={};
/************************************************************************/
/******/ // The module cache
/******/
/******/
/******/ // The require function
/******/function n(r){
/******/ // Check if module is in cache
/******/if(t[r])
/******/return t[r].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/var i=t[r]={
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/exports:{}
/******/};
/******/
/******/ // Execute the module function
/******/
/******/
/******/ // Return the exports of the module
/******/return e[r](i,i.exports,n),i.exports;
/******/}
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/
/******/
/************************************************************************/
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/return n.n=function(e){
/******/var t=e&&e.__esModule?
/******/function(){return e.default}:
/******/function(){return e};
/******/
/******/return n.d(t,{a:t}),t;
/******/},
/******/ // define getter functions for harmony exports
/******/n.d=function(e,t){
/******/for(var r in t)
/******/n.o(t,r)&&!n.o(e,r)&&
/******/Object.defineProperty(e,r,{enumerable:!0,get:t[r]})
/******/;
/******/},
/******/n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
/******/,n(686);
/******/}().default},e.exports=r()},
/***/b362:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o}));
/* harmony import */var r=n("4a3f"),i=n("6d8b"),a=/cubic-bezier\(([0-9,\.e ]+)\)/;
/* harmony import */function o(e){var t=e&&a.exec(e);if(t){var n=t[1].split(","),o=+Object(i.trim)(n[0]),s=+Object(i.trim)(n[1]),c=+Object(i.trim)(n[2]),l=+Object(i.trim)(n[3]);if(isNaN(o+s+c+l))return;var u=[];return function(e){return e<=0?0:e>=1?1:Object(r.f)(0,o,c,1,e,u)&&Object(r.a)(0,s,l,1,u[0])}}}
/***/},
/***/b367:
/***/function(e,t,n){var r=n("5524"),i=n("ef08"),a="__core-js_shared__",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},
/***/b3c1:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return g}));
// CONCATENATED MODULE: ./node_modules/zrender/lib/core/WeakMap.js
var r=Math.round(9*Math.random()),i="function"==typeof Object.defineProperty,a=function(){function e(){this._id="__ec_inner_"+r++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return i?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),o=n("d51b"),s=n("6d8b"),c=n("3842"),l=n("a15a"),u=n("5210"),h=n("726e"),f=new a,d=new o.a(100),p=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];
/**
 * Create or update pattern image from decal options
 *
 * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal
 * @return {Pattern} pattern with generated image, null if no decal
 */
function g(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&f.delete(e);var a=f.get(e);if(a)return a;var o=Object(s.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var g={repeat:"repeat"};return function(e){for(var t,a=[n],f=!0,g=0;g<p.length;++g){var A=o[p[g]];if(null!=A&&!Object(s.isArray)(A)&&!Object(s.isString)(A)&&!Object(s.isNumber)(A)&&"boolean"!=typeof A){f=!1;break}a.push(A)}if(f){t=a.join(",")+(i?"-svg":"");var b=d.get(t);b&&(i?e.svgElement=b:e.image=b)}var w,x=v(o.dashArrayX),C=
/**
 * Convert dash input into dashArray
 *
 * @param {DecalDashArrayY} dash dash input
 * @return {number[]} normolized dash array
 */
function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(Object(s.isNumber)(e)){var t=Math.ceil(e);return[t,t]}var n=Object(s.map)(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}
/**
 * Get block length of each line. A block is the length of dash line and space.
 * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after
 * that, so the block length of this line is 5.
 *
 * @param {number[][]} dash dash array of X or Y
 * @return {number[]} block length of each line
 */(o.dashArrayY),_=m(o.symbol),I=(M=x,Object(s.map)(M,(function(e){return y(e)}))),E=y(C),k=!i&&h.d.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},B=
/**
     * Get minimum length that can make a repeatable pattern.
     *
     * @return {Object} pattern width and height
     */
function(){for(
/**
       * For example, if dash is [[3, 2], [2, 1]] for X, it looks like
       * |---  ---  ---  ---  --- ...
       * |-- -- -- -- -- -- -- -- ...
       * |---  ---  ---  ---  --- ...
       * |-- -- -- -- -- -- -- -- ...
       * So the minimum length of X is 15,
       * which is the least common multiple of `3 + 2` and `2 + 1`
       * |---  ---  ---  |---  --- ...
       * |-- -- -- -- -- |-- -- -- ...
       */
var e=1,t=0,n=I.length;t<n;++t)e=Object(c.d)(e,I[t]);var r=1;for(t=0,n=_.length;t<n;++t)r=Object(c.d)(r,_[t].length);e*=r;var i=E*I.length*_.length;0;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();var M;k&&(k.width=B.width*n,k.height=B.height*n,w=k.getContext("2d"));(function(){w&&(w.clearRect(0,0,k.width,k.height),o.backgroundColor&&(w.fillStyle=o.backgroundColor,w.fillRect(0,0,k.width,k.height)));for(var e=0,t=0;t<C.length;++t)e+=C[t];if(e<=0)
// dashArrayY is 0, draw nothing
return;var a=-E,s=0,c=0,h=0;for(;a<B.height;){if(s%2==0){for(var f=c/2%_.length,d=0,p=0,g=0;d<2*B.width;){var m=0;for(t=0;t<x[h].length;++t)m+=x[h][t];if(m<=0)
// Skip empty line
break;
// E.g., [15, 5, 20, 5] draws only for 15 and 20
if(p%2==0){var v=.5*(1-o.symbolSize),y=d+x[h][p]*v,A=a+C[s]*v,b=x[h][p]*o.symbolSize,I=C[s]*o.symbolSize,M=g/2%_[f].length;T(y,A,b,I,_[f][M])}d+=x[h][p],++g,++p===x[h].length&&(p=0)}++h===x.length&&(h=0)}a+=C[s],++c,++s===C.length&&(s=0)}function T(e,t,a,s,c){var h=i?1:n,f=Object(l.a)(c,e*h,t*h,a*h,s*h,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(f);d&&S.children.push(d)}else
// Paint to canvas for all other renderers.
Object(u.b)(w,f)}})(),f&&d.put(t,k||S);e.image=k,e.svgElement=S,e.svgWidth=B.width,e.svgHeight=B.height}(g),g.rotation=o.rotation,g.scaleX=g.scaleY=i?1:1/n,f.set(e,g),e.dirty=!1,g}
/**
 * Convert symbol array into normalized array
 *
 * @param {string | (string | string[])[]} symbol symbol input
 * @return {string[][]} normolized symbol array
 */function m(e){if(!e||0===e.length)return[["rect"]];if(Object(s.isString)(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Object(s.isString)(e[n])){t=!1;break}if(t)return m([e]);var r=[];for(n=0;n<e.length;++n)Object(s.isString)(e[n])?r.push([e[n]]):r.push(e[n]);return r}
/**
 * Convert dash input into dashArray
 *
 * @param {DecalDashArrayX} dash dash input
 * @return {number[][]} normolized dash array
 */function v(e){if(!e||0===e.length)return[[0,0]];if(Object(s.isNumber)(e))return[[i=Math.ceil(e),i]];
/**
   * [20, 5] should be normalized into [[20, 5]],
   * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]]
   */for(var t=!0,n=0;n<e.length;++n)if(!Object(s.isNumber)(e[n])){t=!1;break}if(t)return v([e]);var r=[];for(n=0;n<e.length;++n)if(Object(s.isNumber)(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=Object(s.map)(e[n],(function(e){return Math.ceil(e)}))).length%2==1?
// [4, 2, 1] means |----  -    -- |----  -    -- |
// so normalize it to be [4, 2, 1, 4, 2, 1]
r.push(i.concat(i)):r.push(i)}return r}function y(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}
/***/},
/***/b3ed:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("42ee"),a=n("019f");r(r.P+r.F*n("f937")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{
// eslint-disable-next-line no-unused-vars
toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},
/***/b42e:
/***/function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;
// `Math.trunc` method
// https://tc39.es/ecma262/#sec-math.trunc
// eslint-disable-next-line es/no-math-trunc -- safe
e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},
/***/b44f:
/***/function(e,t,n){var r;r=function(){/******/
return function(e){// webpackBootstrap
/******/ // The module cache
/******/var t={};
/******/
/******/ // The require function
/******/function n(r){
/******/
/******/ // Check if module is in cache
/******/if(t[r])
/******/return t[r].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/var i=t[r]={
/******/i:r,
/******/l:!1,
/******/exports:{}
/******/};
/******/
/******/ // Execute the module function
/******/
/******/
/******/ // Return the exports of the module
/******/return e[r].call(i.exports,i,i.exports,n),
/******/
/******/ // Flag the module as loaded
/******/i.l=!0,i.exports;
/******/}
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/
/******/
/******/ // Load entry module and return exports
/******/return n.m=e,
/******/
/******/ // expose the module cache
/******/n.c=t,
/******/
/******/ // define getter function for harmony exports
/******/n.d=function(e,t,r){
/******/n.o(e,t)||
/******/Object.defineProperty(e,t,{
/******/configurable:!1,
/******/enumerable:!0,
/******/get:r
/******/})
/******/},
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/n.n=function(e){
/******/var t=e&&e.__esModule?
/******/function(){return e.default}:
/******/function(){return e};
/******/
/******/return n.d(t,"a",t),t;
/******/},
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},
/******/
/******/ // __webpack_public_path__
/******/n.p="",n(n.s=0);
/******/}
/************************************************************************/
/******/([
/* 0 */
/***/function(e,t,n){
/**
 * g2-brush
 * @author sima.zhang1990@gmail.com
 */
var r=n(1);e.exports=r},
/* 1 */
/***/function(e,t,n){
/**
 * g2-brush
 * @author sima.zhang1990@gmail.com
 */
var r=n(2),i=["X","Y","XY","POLYGON"],a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),
/**
     * keep the first mousedown point
     * @type {object}
     */
this.startPoint=null,
/**
     * keep the brush state
     * @type {Boolean}
     */
this.brushing=!1,
/**
     * keep the drag state
     * @type {Boolean}
     */
this.dragging=!1,
/**
     * the brush shape
     * @type {G.Shape}
     */
this.brushShape=null,
/**
     * the brush container
     * @type {G.Group}
     */
this.container=null,
/**
     * keep polygon path
     * @type {String}
     */
this.polygonPath=null,
/**
     * brush style
     * @type {Object}
     */
this.style={fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},
/**
     * brush type
     * @type {string}
     */
this.type="XY",
/**
     * is brushShape can be dragable, default is false
     * @type {Boolean}
     */
this.dragable=!1,this.dragoffX=0,this.dragoffY=0,
/**
     * is limited in plot, default value is true
     * @type {Boolean}
     */
this.inPlot=!0,
/**
     * xField
     * @type {string}
     */
this.xField=null,
/**
     * yFiels
     * @type {string}
     */
this.yField=null,
/**
     * Whether to filter the data，default is true
     * @type {Boolean}
     */
this.filter=!t.dragable,this.onBrushstart=null,this.onBrushmove=null,this.onBrushend=null,this.onDragstart=null,this.onDragmove=null,this.onDragend=null,this._init(t)}return e.prototype._init=function(e){r.mix(this,e),this.type=this.type.toUpperCase(),-1===i.indexOf(this.type)&&(this.type="XY");var t=this.canvas;if(t){var n=void 0;t.get("children").map((function(e){return"plotBack"===e.get("type")?(n=e.get("plotRange"),!1):e})),this.plot={start:n.bl,end:n.tr},this.bindCanvasEvent()}if(this.chart){var a=this.chart,o=a.get("coord");this.plot={start:o.start,end:o.end};var s=a._getScales("x"),c=a._getScales("y");this.xScale=this.xField?s[this.xField]:a.getXScale(),this.yScale=this.yField?c[this.yField]:a.getYScales()[0]}},e.prototype.clearEvents=function(){this.onMouseDownListener&&this.onMouseDownListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseupListener&&this.onMouseupListener.remove()},e.prototype.bindCanvasEvent=function(){var e=this.canvas.get("canvasDOM");this.clearEvents(),this.onMouseDownListener=r.addEventListener(e,"mousedown",r.wrapBehavior(this,"_onCanvasMouseDown")),this.onMouseMoveListener=r.addEventListener(e,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(e,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp"))},e.prototype._onCanvasMouseDown=function(e){var t=this,n=t.canvas,r=t.type,i=t.brushShape;if(r){var a={x:e.offsetX,y:e.offsetY},o=t.plot&&t.inPlot,s=n.get("canvasDOM"),c=n.get("pixelRatio");if(t.selection&&(t.selection=null),t.dragable&&i&&!i.get("destroyed")){
// allow drag the brushShape
if(i.isHit(a.x*c,a.y*c)){if(s.style.cursor="move",t.selection=i,t.dragging=!0,"X"===r)t.dragoffX=a.x-i.attr("x"),t.dragoffY=0;else if("Y"===r)t.dragoffX=0,t.dragoffY=a.y-i.attr("y");else if("XY"===r)t.dragoffX=a.x-i.attr("x"),t.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var l=i.getBBox();t.dragoffX=a.x-l.minX,t.dragoffY=a.y-l.minY}o&&t.selection.attr("clip",n.addShape("rect",{attrs:{x:this.plot.start.x,y:this.plot.end.y,width:this.plot.end.x-this.plot.start.x,height:this.plot.start.y-this.plot.end.y,fill:"#fff",fillOpacity:0}})),t.onDragstart&&t.onDragstart(e)}t.prePoint=a}if(!t.dragging){
// brush start
t.onBrushstart&&t.onBrushstart(a);var u=t.container;if(o){var h=t.plot,f=h.start,d=h.end;if(a.x<f.x||a.x>d.x||a.y<d.y||a.y>f.y)return}s.style.cursor="crosshair",t.startPoint=a,t.brushShape=null,t.brushing=!0,u?u.clear():(u=n.addGroup({zIndex:5})).initTransform(),t.container=u,"POLYGON"===r&&(t.polygonPath="M "+a.x+" "+a.y)}}},e.prototype._onCanvasMouseMove=function(e){var t=this,n=t.brushing,i=t.dragging,a=t.type,o=t.plot,s=t.startPoint,c=t.xScale,l=t.yScale,u=t.canvas;if(n||i){var h={x:e.offsetX,y:e.offsetY},f=u.get("canvasDOM");if(n){f.style.cursor="crosshair";var d=o.start,p=o.end,g=t.polygonPath,m=t.brushShape,v=t.container;t.plot&&t.inPlot&&(h=t._limitCoordScope(h));var y=void 0,A=void 0,b=void 0,w=void 0;"Y"===a?(y=d.x,A=h.y>=s.y?s.y:h.y,b=Math.abs(d.x-p.x),w=Math.abs(s.y-h.y)):"X"===a?(y=h.x>=s.x?s.x:h.x,A=p.y,b=Math.abs(s.x-h.x),w=Math.abs(p.y-d.y)):"XY"===a?(h.x>=s.x?(y=s.x,A=h.y>=s.y?s.y:h.y):(y=h.x,A=h.y>=s.y?s.y:h.y),b=Math.abs(s.x-h.x),w=Math.abs(s.y-h.y)):"POLYGON"===a&&(g+="L "+h.x+" "+h.y,t.polygonPath=g,m?!m.get("destroyed")&&m.attr(r.mix({},m.__attrs,{path:g})):m=v.addShape("path",{attrs:r.mix(t.style,{path:g})})),"POLYGON"!==a&&(m?!m.get("destroyed")&&m.attr(r.mix({},m.__attrs,{x:y,y:A,width:b,height:w})):m=v.addShape("rect",{attrs:r.mix(t.style,{x:y,y:A,width:b,height:w})})),t.brushShape=m}else if(i){f.style.cursor="move";var x=t.selection;if(x&&!x.get("destroyed"))if("POLYGON"===a){var C=t.prePoint;t.selection.translate(h.x-C.x,h.y-C.y)}else t.dragoffX&&x.attr("x",h.x-t.dragoffX),t.dragoffY&&x.attr("y",h.y-t.dragoffY)}t.prePoint=h,u.draw();var _=t._getSelected(),I=_.data,E=_.shapes,k=_.xValues,S=_.yValues,B={data:I,shapes:E,x:h.x,y:h.y};c&&(B[c.field]=k),l&&(B[l.field]=S),t.onDragmove&&t.onDragmove(B),t.onBrushmove&&t.onBrushmove(B)}},e.prototype._onCanvasMouseUp=function(e){var t=this,n=t.data,i=t.shapes,a=t.xValues,o=t.yValues,s=t.canvas,c=t.type,l=t.startPoint,u=t.chart,h=t.container,f=t.xScale,d=t.yScale,p=e.offsetX,g=e.offsetY;if(s.get("canvasDOM").style.cursor="default",Math.abs(l.x-p)<=1&&Math.abs(l.y-g)<=1)
// 防止点击事件
return t.brushing=!1,void(t.dragging=!1);var m={data:n,shapes:i,x:p,y:g};if(f&&(m[f.field]=a),d&&(m[d.field]=o),t.dragging)t.dragging=!1,t.onDragend&&t.onDragend(m);else if(t.brushing){t.brushing=!1;var v=t.brushShape,y=t.polygonPath;"POLYGON"===c&&(y+="z",v&&!v.get("destroyed")&&v.attr(r.mix({},v.__attrs,{path:y})),t.polygonPath=y,s.draw()),t.onBrushend?t.onBrushend(m):u&&t.filter&&(h.clear(),// clear the brush
// filter data
"X"===c?f&&u.filter(f.field,(function(e){return a.indexOf(e)>-1})):("Y"===c||f&&u.filter(f.field,(function(e){return a.indexOf(e)>-1})),d&&u.filter(d.field,(function(e){return o.indexOf(e)>-1}))),u.repaint())}},e.prototype.setType=function(e){e&&(this.type=e.toUpperCase())},e.prototype.destroy=function(){this.clearEvents()},e.prototype._limitCoordScope=function(e){var t=this.plot,n=t.start,r=t.end;return e.x<n.x&&(e.x=n.x),e.x>r.x&&(e.x=r.x),e.y<r.y&&(e.y=r.y),e.y>n.y&&(e.y=n.y),e},e.prototype._getSelected=function(){var e=this.chart,t=this.xScale,n=this.yScale,r=this.brushShape,i=this.canvas.get("pixelRatio"),a=[],o=[],s=[],c=[];return e&&e.get("geoms").map((function(e){return e.getShapes().map((function(e){var l=e.get("origin");return Array.isArray(l)||(
// 线图、区域图等
l=[l]),l.map((function(l){if(r.isHit(l.x*i,l.y*i)){a.push(e);var u=l._origin;c.push(u),t&&o.push(u[t.field]),n&&s.push(u[n.field])}return l})),e})),e})),this.shapes=a,this.xValues=o,this.yValues=s,this.data=c,{data:c,xValues:o,yValues:s,shapes:a}},e}();e.exports=a},
/* 2 */
/***/function(e,t){function n(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}var r={mix:function(e,t,r,i){return t&&n(e,t),r&&n(e,r),i&&n(e,i),e},
/**
   * 添加事件监听器
   * @param  {Object} target DOM对象
   * @param  {String} eventType 事件名
   * @param  {Funtion} callback 回调函数
   * @return {Object} 返回对象
   */
addEventListener:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},
/**
   * 封装事件，便于使用上下文this,和便于解除事件时使用
   * @protected
   * @param  {Object} obj   对象
   * @param  {String} action 事件名称
   * @return {Function}        返回事件处理函数
   */
wrapBehavior:function(e,t){if(e["_wrap_"+t])return e["_wrap_"+t];var n=function(n){e[t](n)};return e["_wrap_"+t]=n,n},
/**
   * 获取封装的事件
   * @protected
   * @param  {Object} obj   对象
   * @param  {String} action 事件名称
   * @return {Function}        返回事件处理函数
   */
getWrapBehavior:function(e,t){return e["_wrap_"+t]}};e.exports=r}
/******/])},e.exports=r()},
/***/b488:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("9b57"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("daa3");
/* harmony import */
/* harmony default export */t.a={methods:{setState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n="function"==typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var r=this.getDerivedStateFromProps(Object(s.l)(this),o()({},this.$data,n));if(null===r)return;n=o()({},n,r||{})}o()(this.$data,n),this.$forceUpdate(),this.$nextTick((function(){t&&t()}))},__emit:function(){
// 直接调用listeners，底层组件不需要vueTool记录events
var e=[].slice.call(arguments,0),t=e[0],n=this.$listeners[t];if(e.length&&n)if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)n[r].apply(n,i()(e.slice(1)));else n.apply(void 0,i()(e.slice(1)))}}}},
/***/b4a0:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("41b2"),i=n.n(r),a=n("f8d5"),o=n("01c2"),s={lang:i()({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},a.a),timePickerLocale:i()({},o.a)};
/* harmony import */
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
/* harmony default export */t.a=s},
/***/b4b0:
/***/function(e,t,n){var r=n("8d74"),i=n("1a8c"),a=n("ffd6"),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;
/** Used as references for various `Number` constants. */e.exports=
/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},
/***/b4bc:
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").has,a=n("8e16"),o=n("7f65"),s=n("384f"),c=n("5388"),l=n("2a62");
// `Set.prototype.isDisjointFrom` method
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
e.exports=function(e){var t=r(this),n=o(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==c(u,(function(e){if(i(t,e))return l(u,"normal",!1)}))}},
/***/b4c0:
/***/function(e,t,n){var r=n("cb5a");
/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},
/***/b4d5:
/***/function(e,t,n){
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
var r=n("f083");r(r.S,"Array",{isArray:n("7f21")})},
/***/b4f1:
/***/function(e,t,n){"use strict";
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
/* harmony default export */t.a=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},
/***/b4f8:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),a=n("1a2d"),o=n("577e"),s=n("5692"),c=n("0b43"),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");
// `Symbol.for` method
// https://tc39.es/ecma262/#sec-symbol.for
r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(a(l,t))return l[t];var n=i("Symbol")(t);return l[t]=n,u[n]=t,n}})},
/***/b50d:
/***/function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),a=n("30b5"),o=n("83b9e"),s=n("c345"),c=n("3934"),l=n("2d83");e.exports=function(e){return new Promise((function(t,u){var h=e.data,f=e.headers;r.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest;
// HTTP basic authentication
if(e.auth){var p=e.auth.username||"",g=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+g)}var m=o(e.baseURL,e.url);
// Add xsrf header
// This is only done if running in a standard browser environment.
// Specifically not if we're in a web worker, or react-native.
if(d.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),
// Set the request timeout in MS
d.timeout=e.timeout,
// Listen for ready state
d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:")))
// The request errored out and we didn't get a response, this will be
// handled by onerror instead
// With one exception: request that using file: protocol, most browsers
// will return status as 0 even though it's a successful request
{
// Prepare the response
var n="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};i(t,u,r),
// Clean up request
d=null}},
// Handle browser request cancellation (as opposed to a manual cancellation)
d.onabort=function(){d&&(u(l("Request aborted",e,"ECONNABORTED",d)),
// Clean up request
d=null)},
// Handle low level network errors
d.onerror=function(){
// Real errors are hidden from us by the browser
// onerror should only fire if it's a network error
u(l("Network Error",e,null,d)),
// Clean up request
d=null},
// Handle timeout
d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(l(t,e,"ECONNABORTED",d)),
// Clean up request
d=null},r.isStandardBrowserEnv()){var v=n("7aac"),y=(e.withCredentials||c(m))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;
// Add xsrf header
y&&(f[e.xsrfHeaderName]=y)}
// Add headers to the request
// Add responseType to request if needed
if("setRequestHeader"in d&&r.forEach(f,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?
// Remove Content-Type if data is undefined
delete f[t]:
// Otherwise add header to the request
d.setRequestHeader(t,e)})),
// Add withCredentials to request if needed
r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){
// Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
// But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
if("json"!==e.responseType)throw t}
// Handle progress if needed
"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),
// Not all browsers support upload events
"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&
// Handle cancellation
e.cancelToken.promise.then((function(e){d&&(d.abort(),u(e),
// Clean up request
d=null)})),void 0===h&&(h=null),
// Send the request
d.send(h)}))}},
/***/b575:
/***/function(e,t,n){"use strict";var r,i,a,o,s,c=n("cfe9"),l=n("157a"),u=n("0366"),h=n("2cf49").set,f=n("01b4"),d=n("52c8"),p=n("ebc1"),g=n("ec87"),m=n("9adc"),v=c.MutationObserver||c.WebKitMutationObserver,y=c.document,A=c.process,b=c.Promise,w=l("queueMicrotask");
// modern engines have queueMicrotask method
if(!w){var x=new f,C=function(){var e,t;for(m&&(e=A.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
d||m||g||!v||!y?!p&&b&&b.resolve?(
// Promise.resolve without an argument throws an error in LG WebOS 2
// workaround of WebKit ~ iOS Safari 10.1 bug
(o=b.resolve(void 0)).constructor=b,s=u(o.then,o),r=function(){s(C)}):m?r=function(){A.nextTick(C)}:(
// `webpack` dev server bug on IE global methods - use bind(fn, global)
h=u(h,c),r=function(){h(C)}):(i=!0,a=y.createTextNode(""),new v(C).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),w=function(e){x.head||r(),x.add(e)}}e.exports=w},
/***/b5a7:
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"DataView");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/b5db:
/***/function(e,t,n){"use strict";var r=n("cfe9").navigator,i=r&&r.userAgent;e.exports=i?String(i):""},
/***/b622:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("5692"),a=n("1a2d"),o=n("90e3"),s=n("04f8"),c=n("fdbf"),l=r.Symbol,u=i("wks"),h=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:h("Symbol."+e)),u[e]}},
/***/b636:
/***/function(e,t,n){"use strict";
// `Symbol.asyncIterator` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.asynciterator
n("e065")("asyncIterator")},
/***/b637:
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: EVENTS, METHODS, PROPERTIES
// CONCATENATED MODULE: ./node_modules/framework-utils/dist/utils.esm.js
/*
Copyright (c) 2019 Daybrush
name: framework-utils
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/framework-utils.git
version: 1.1.0
*/function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map((function(t){return t.split(" ").map((function(t){return t?""+e+t:""})).join(" ")})).join(" ")}
/* react */
function i(e,t){return function(n){n&&(e[t]=n)}}function a(e,t,n){return function(r){r&&(e[t][n]=r)}}
/* Class Decorator */function o(e,t){return function(n){var r=n.prototype;e.forEach((function(e){t(r,e)}))}}
/* Property Decorator */
//# sourceMappingURL=utils.esm.js.map
// CONCATENATED MODULE: ./node_modules/@daybrush/utils/dist/utils.esm.js
/*
Copyright (c) 2018 Daybrush
@name: @daybrush/utils
license: MIT
author: Daybrush
repository: https://github.com/daybrush/utils
@version 1.13.0
*/
/**
* @namespace
* @name Consts
*/
/**
* get string "rgb"
* @memberof Color
* @example
import {RGB} from "@daybrush/utils";

console.log(RGB); // "rgb"
*/
var s="undefined",c=typeof document!==s&&document,l=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],u=1e-7,h={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};
/**
* get string "rgba"
* @memberof Color
* @example
import {RGBA} from "@daybrush/utils";

console.log(RGBA); // "rgba"
*/
/**
* Check the type that the value is object.
* @memberof Utils
* @param {string} value - Value to check the type
* @return {} true if the type is correct, false otherwise
* @example
import {isObject} from "@daybrush/utils";

console.log(isObject({})); // true
console.log(isObject(undefined)); // false
console.log(isObject("")); // false
console.log(isObject(null)); // false
*/
function f(e){return e&&"object"==typeof e}
/**
* Check the type that the value is isArray.
* @memberof Utils
* @param {string} value - Value to check the type
* @return {} true if the type is correct, false otherwise
* @example
import {isArray} from "@daybrush/utils";

console.log(isArray([])); // true
console.log(isArray({})); // false
console.log(isArray(undefined)); // false
console.log(isArray(null)); // false
*/function d(e){return Array.isArray(e)}
/**
* Check the type that the value is string.
* @memberof Utils
* @param {string} value - Value to check the type
* @return {} true if the type is correct, false otherwise
* @example
import {isString} from "@daybrush/utils";

console.log(isString("1234")); // true
console.log(isString(undefined)); // false
console.log(isString(1)); // false
console.log(isString(null)); // false
*/function p(e){return"string"==typeof e}function g(e){return"number"==typeof e}
/**
* Check the type that the value is function.
* @memberof Utils
* @param {string} value - Value to check the type
* @return {} true if the type is correct, false otherwise
* @example
import {isFunction} from "@daybrush/utils";

console.log(isFunction(function a() {})); // true
console.log(isFunction(() => {})); // true
console.log(isFunction("1234")); // false
console.log(isFunction(1)); // false
console.log(isFunction(null)); // false
*/function m(e){return"function"==typeof e}function v(e,t,n,r,i){return y(e,t,n)?n:function(e,t,n,r,i){for(var a,o=function(n){var o=t[n].trim();if(o===e.close&&!y(e,t,n))return{value:n};var s=n,c=E(i,(function(e){return e.open===o}));
// re open
if(c&&(s=v(c,t,n,r,i)),-1===s)return a=n,"break";a=n=s},s=n;s<r;++s){var c=o(s);if(s=a,"object"==typeof c)return c.value;if("break"===c)break}return-1}(e,t,n+1,r,i)}function y(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function A(e,t){var n=p(t)?{separator:t}:t,r=n.separator,i=void 0===r?",":r,a=n.isSeparateFirst,o=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,c=void 0===s?o:s,u=n.openCloseCharacters,h=void 0===u?l:u,f=h.map((function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n})).join("|"),d=new RegExp("(\\s*"+i+"\\s*|"+f+"|\\s+)","g"),g=e.split(d).filter((function(e){return e&&"undefined"!==e})),m=g.length,b=[],w=[];function x(){return!!w.length&&(b.push(w.join("")),w=[],!0)}for(var C,_=function(t){var n=g[t].trim(),r=t,s=E(h,(function(e){return e.open===n})),l=E(h,(function(e){return e.close===n}));if(s){if(-1!==(r=v(s,g,t,m,h))&&c)return x()&&a?(C=t,"break"):(b.push(g.slice(t,r+1).join("")),t=r,a?(C=t,"break"):(C=t,"continue"))}else{if(l&&!y(l,g,t)){var u=
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}
/**
* @namespace
* @name Utils
*/
/**
 * Returns the inner product of two numbers(`a1`, `a2`) by two criteria(`b1`, `b2`).
 * @memberof Utils
 * @param - The first number
 * @param - The second number
 * @param - The first number to base on the inner product
 * @param - The second number to base on the inner product
 * @return - Returns the inner product
import { dot } from "@daybrush/utils";

console.log(dot(0, 15, 2, 3)); // 6
console.log(dot(5, 15, 2, 3)); // 9
console.log(dot(5, 15, 1, 1)); // 10
 */(h);return u.splice(h.indexOf(l),1),{value:A(e,{separator:i,isSeparateFirst:a,isSeparateOnlyOpenClose:o,isSeparateOpenClose:c,openCloseCharacters:u})}}if(function(e,t){return(""===t||" "==t)&&(""===e||" "==e)||e===t}(n,i)&&!o)return x(),a?(C=t,"break"):(C=t,"continue")}-1===r&&(r=m-1),w.push(g.slice(t,r+1).join("")),C=t=r},I=0;I<m;++I){var k=_(I);if(I=C,"object"==typeof k)return k.value;if("break"===k)break}return w.length&&b.push(w.join("")),b}
/**
* divide text by space.
* @memberof Utils
* @param {string} text - text to divide
* @return {Array} divided texts
* @example
import {spliceSpace} from "@daybrush/utils";

console.log(splitSpace("a b c d e f g"));
// ["a", "b", "c", "d", "e", "f", "g"]
console.log(splitSpace("'a,b' c 'd,e' f g"));
// ["'a,b'", "c", "'d,e'", "f", "g"]
*/
/**
* divide text by comma.
* @memberof Utils
* @param {string} text - text to divide
* @return {Array} divided texts
* @example
import {splitComma} from "@daybrush/utils";

console.log(splitComma("a,b,c,d,e,f,g"));
// ["a", "b", "c", "d", "e", "f", "g"]
console.log(splitComma("'a,b',c,'d,e',f,g"));
// ["'a,b'", "c", "'d,e'", "f", "g"]
*/
function b(e){
// divide comma(,)
// "[^"]*"|'[^']*'
return A(e,",")}
/**
* divide text by bracket "(", ")".
* @memberof Utils
* @param {string} text - text to divide
* @return {object} divided texts
* @example
import {splitBracket} from "@daybrush/utils";

console.log(splitBracket("a(1, 2)"));
// {prefix: "a", value: "1, 2", suffix: ""}
console.log(splitBracket("a(1, 2)b"));
// {prefix: "a", value: "1, 2", suffix: "b"}
*/function w(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}
/**
* divide text by number and unit.
* @memberof Utils
* @param {string} text - text to divide
* @return {} divided texts
* @example
import {splitUnit} from "@daybrush/utils";

console.log(splitUnit("10px"));
// {prefix: "", value: 10, unit: "px"}
console.log(splitUnit("-10px"));
// {prefix: "", value: -10, unit: "px"}
console.log(splitUnit("a10%"));
// {prefix: "a", value: 10, unit: "%"}
*/function x(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}
/**
* transform strings to camel-case
* @memberof Utils
* @param {String} text - string
* @return {String} camel-case string
* @example
import {camelize} from "@daybrush/utils";

console.log(camelize("transform-origin")); // transformOrigin
console.log(camelize("abcd_efg")); // abcdEfg
console.log(camelize("abcd efg")); // abcdEfg
*/
/**
* transform a camelized string into a lowercased string.
* @memberof Utils
* @param {string} text - a camel-cased string
* @param {string} [separator="-"] - a separator
* @return {string}  a lowercased string
* @example
import {decamelize} from "@daybrush/utils";

console.log(decamelize("transformOrigin")); // transform-origin
console.log(decamelize("abcdEfg", "_")); // abcd_efg
*/
function C(e,t){return void 0===t&&(t="-"),e.replace(/([a-z])([A-Z])/g,(function(e,n,r){return""+n+t+r.toLowerCase()}))}
/**
* transforms something in an array into an array.
* @memberof Utils
* @param - Array form
* @return an array
* @example
import {toArray} from "@daybrush/utils";

const arr1 = toArray(document.querySelectorAll(".a")); // Element[]
const arr2 = toArray(document.querySelectorAll<HTMLElement>(".a")); // HTMLElement[]
*/
/**
* Date.now() method
* @memberof CrossBrowser
* @return {number} milliseconds
* @example
import {now} from "@daybrush/utils";

console.log(now()); // 12121324241(milliseconds)
*/
function _(){return Date.now?Date.now():(new Date).getTime()}
/**
* Returns the index of the first element in the array that satisfies the provided testing function.
* @function
* @memberof CrossBrowser
* @param - The array `findIndex` was called upon.
* @param - A function to execute on each value in the array until the function returns true, indicating that the satisfying element was found.
* @param - Returns defaultIndex if not found by the function.
* @example
import { findIndex } from "@daybrush/utils";

findIndex([{a: 1}, {a: 2}, {a: 3}, {a: 4}], ({ a }) => a === 2); // 1
*/function I(e,t,n){void 0===n&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}
/**
* Returns the reverse direction index of the first element in the array that satisfies the provided testing function.
* @function
* @memberof CrossBrowser
* @param - The array `findLastIndex` was called upon.
* @param - A function to execute on each value in the array until the function returns true, indicating that the satisfying element was found.
* @param - Returns defaultIndex if not found by the function.
* @example
import { findLastIndex } from "@daybrush/utils";

findLastIndex([{a: 1}, {a: 2}, {a: 3}, {a: 4}], ({ a }) => a === 2); // 1
*/
/**
* Returns the value of the first element in the array that satisfies the provided testing function.
* @function
* @memberof CrossBrowser
* @param - The array `find` was called upon.
* @param - A function to execute on each value in the array,
* @param - Returns defalutValue if not found by the function.
* @example
import { find } from "@daybrush/utils";

find([{a: 1}, {a: 2}, {a: 3}, {a: 4}], ({ a }) => a === 2); // {a: 2}
*/
function E(e,t,n){var r=I(e,t);return r>-1?e[r]:n}
/**
* window.requestAnimationFrame() method with cross browser.
* @function
* @memberof CrossBrowser
* @param {FrameRequestCallback} callback - The function to call when it's time to update your animation for the next repaint.
* @return {number} id
* @example
import {requestAnimationFrame} from "@daybrush/utils";

requestAnimationFrame((timestamp) => {
  console.log(timestamp);
});
*/
/**
* @function
* @memberof Utils
*/
function k(e){return Object.keys(e)}
/**
* @function
* @memberof Utils
*/
/**
* convert unit size to px size
* @function
* @memberof Utils
*/
function S(e,t){var n=x(e),r=n.value,i=n.unit;if(f(t)){var a=t[i];if(a){if(m(a))return a(r);if(h[i])return h[i](r,a)}}else if("%"===i)return r*t/100;return h[i]?h[i](r):r}
/**
* calculate between min, max
* @function
* @memberof Utils
*/
/**
* throttle number depending on the unit.
* @function
* @memberof Utils
*/
function B(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}
/**
* throttle number array depending on the unit.
* @function
* @memberof Utils
*/
/**
* Sets up a function that will be called whenever the specified event is delivered to the target
* @memberof DOM
* @param - event target
* @param - A case-sensitive string representing the event type to listen for.
* @param - The object which receives a notification (an object that implements the Event interface) when an event of the specified type occurs
* @param - An options object that specifies characteristics about the event listener.
* @example
import {addEvent} from "@daybrush/utils";

addEvent(el, "click", e => {
  console.log(e);
});
*/
function M(e,t,n,r){e.addEventListener(t,n,r)}
/**
* removes from the EventTarget an event listener previously registered with EventTarget.addEventListener()
* @memberof DOM
* @param - event target
* @param - A case-sensitive string representing the event type to listen for.
* @param - The EventListener function of the event handler to remove from the event target.
* @param - An options object that specifies characteristics about the event listener.
* @example
import {addEvent, removeEvent} from "@daybrush/utils";
const listener = e => {
  console.log(e);
};
addEvent(el, "click", listener);
removeEvent(el, "click", listener);
*/function T(e,t,n,r){e.removeEventListener(t,n,r)}function O(e){return(null==e?void 0:e.ownerDocument)||c}function D(e){var t;return(null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView)||window}function P(e){return f(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}
//# sourceMappingURL=utils.esm.js.map
// CONCATENATED MODULE: ./node_modules/@egjs/list-differ/dist/list-differ.esm.js
/*
Copyright (c) 2019-present NAVER Corp.
name: @egjs/list-differ
license: MIT
author: NAVER Corp.
repository: https://github.com/naver/egjs-list-differ
version: 1.0.1
*/
/*
egjs-list-differ
Copyright (c) 2019-present NAVER Corp.
MIT license
*/var L=

function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var n=this.keys,r=this.values,i=n.indexOf(e),a=-1===i?n.length:i;n[a]=e,r[a]=t},e}(),Q=

function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),R="function"==typeof Map,j=

function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){
// In double linked list, diconnect the interconnected relationship.
var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}();
/*
egjs-list-differ
Copyright (c) 2019-present NAVER Corp.
MIT license
*/var N=

function(){function e(e,t,n,r,i,a,o,s){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=i,this.maintained=a,this.changedBeforeAdded=o,this.fixed=s}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e=
/*
egjs-list-differ
Copyright (c) 2019-present NAVER Corp.
MIT license
*/
function(e,t){
// It is roughly in the order of these examples.
// 4, 6, 0, 2, 1, 3, 5, 7
var n=[],r=[];// 0, 1, 2, 3, 4, 5, 6, 7
return e.forEach((function(e){var t=e[0],i=e[1],a=new j;n[t]=a,r[i]=a})),// `fromLinks` are connected to each other by double linked list.
n.forEach((function(e,t){e.connect(n[t-1])})),e.filter((function(e,n){return!t[n]})).map((function(e,t){var i=e[0],a=e[1];if(i===a)return[0,0];var o=n[i],s=r[a-1],c=o.getIndex();// Disconnect the link connected to `fromLink`.
return o.disconnect(),// Connect `fromLink` to the right of `toLink`.
s?o.connect(s,s.next):o.connect(void 0,n[0]),[c,o.getIndex()]}))}(this.changedBeforeAdded,this.fixed),t=this.changed,n=[];this.cacheOrdered=e.filter((function(e,r){var i=e[0],a=e[1],o=t[r],s=o[0],c=o[1];if(i!==a)return n.push([s,c]),!0})),this.cachePureChanged=n},e}();
/**
 *
 * @memberof eg.ListDiffer
 * @static
 * @function
 * @param - Previous List <ko> 이전 목록 </ko>
 * @param - List to Update <ko> 업데이트 할 목록 </ko>
 * @param - This callback function returns the key of the item. <ko> 아이템의 키를 반환하는 콜백 함수입니다.</ko>
 * @return - Returns the diff between `prevList` and `list` <ko> `prevList`와 `list`의 다른 점을 반환한다.</ko>
 * @example
 * import { diff } from "@egjs/list-differ";
 * // script => eg.ListDiffer.diff
 * const result = diff([0, 1, 2, 3, 4, 5], [7, 8, 0, 4, 3, 6, 2, 1], e => e);
 * // List before update
 * // [1, 2, 3, 4, 5]
 * console.log(result.prevList);
 * // Updated list
 * // [4, 3, 6, 2, 1]
 * console.log(result.list);
 * // Index array of values added to `list`
 * // [0, 1, 5]
 * console.log(result.added);
 * // Index array of values removed in `prevList`
 * // [5]
 * console.log(result.removed);
 * // An array of index pairs of `prevList` and `list` with different indexes from `prevList` and `list`
 * // [[0, 2], [4, 3], [3, 4], [2, 6], [1, 7]]
 * console.log(result.changed);
 * // The subset of `changed` and an array of index pairs that moved data directly. Indicate an array of absolute index pairs of `ordered`.(Formatted by: Array<[index of prevList, index of list]>)
 * // [[4, 3], [3, 4], [2, 6]]
 * console.log(result.pureChanged);
 * // An array of index pairs to be `ordered` that can synchronize `list` before adding data. (Formatted by: Array<[prevIndex, nextIndex]>)
 * // [[4, 1], [4, 2], [4, 3]]
 * console.log(result.ordered);
 * // An array of index pairs of `prevList` and `list` that have not been added/removed so data is preserved
 * // [[0, 2], [4, 3], [3, 4], [2, 6], [1, 7]]
 * console.log(result.maintained);
 */function F(e,t,n){var r=R?Map:n?Q:L,i=n||function(e){return e},a=[],o=[],s=[],c=e.map(i),l=t.map(i),u=new r,h=new r,f=[],d=[],p={},g=[],m=0,v=0;// Add prevKeys and keys to the hashmap.
return c.forEach((function(e,t){u.set(e,t)})),l.forEach((function(e,t){h.set(e,t)})),// Compare `prevKeys` and `keys` and add them to `removed` if they are not in `keys`.
c.forEach((function(e,t){var n=h.get(e);// In prevList, but not in list, it is removed.
void 0===n?(++v,o.push(t)):p[n]=v})),// Compare `prevKeys` and `keys` and add them to `added` if they are not in `prevKeys`.
l.forEach((function(e,t){var n=u.get(e);// In list, but not in prevList, it is added.
void 0===n?(a.push(t),++m):(s.push([n,t]),v=p[t]||0,f.push([n-v,t-m]),d.push(t===n),n!==t&&g.push([n,t]))})),// Sort by ascending order of 'to(list's index).
o.reverse(),new N(e,t,a,o,g,s,f,d)}
/**
 * A module that checks diff when values are added, removed, or changed in an array.
 * @ko 배열 또는 오브젝트에서 값이 추가되거나 삭제되거나 순서가 변경사항을 체크하는 모듈입니다.
 * @memberof eg
 */var z=function(e,t){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},z(e,t)};
/*
egjs-list-differ
Copyright (c) 2019-present NAVER Corp.
MIT license
*/
/* harmony default export */function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U.apply(this,arguments)};function G(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function V(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function W(e){var t=0;return e.map((function(e){return null==e?"$compat".concat(++t):"".concat(e)}))}function q(e){var t=[];return e.forEach((function(e){t=t.concat(d(e)?q(e):e)})),t}function Y(e,t){if(!t)return e;for(var n in t)typeof e[n]===s&&(e[n]=t[n]);return e}function K(e,t){if(e===t)return!1;for(var n in e)if(!(n in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}function $(e){var t=e.className,n=G(e,["className"]);return null!=t&&(n.class=t),delete n.style,delete n.children,n}function J(e){var t={},n={};for(var r in e)0===r.indexOf("on")?n[r]=e[r]:t[r]=e[r];return[t,n]}function X(e){if(!e)return null;var t=e.b;return P(t)?t:X(e.c)}function Z(e){var t=e.parentNode;t&&t.removeChild(e)}function ee(e){e.forEach((function(e){e()}))}function te(){return this.constructor(this.props,this.context)}var ne=0,re=function(){function e(
/**
   * Type
   */
e,
/**
   * Depth
   */
t,
/**
   * Key
   */
n,
/**
   * index
   */
r,
/**
   * Container
   */
i,
/**
   * Ref
   */
a,
/**
   * Props
   */
o){void 0===o&&(o={}),this.t=e,this.d=t,this.k=n,this.i=r,this.c=i,this.ref=a,this.ps=o,this.typ="prov",
/**
     * providers
     */
this._ps=[],
/**
     * Contexts
     */
this._cs={},
/**
     * Whether to hydrate
     */
this._hyd=null,
/**
     * is self render
     */
this._sel=!1}var t=e.prototype;return t.s=function(){return!0},
/**
   * Update
   */
t.u=function(e,t,n,r,i){var a,o=this,s=o.d,c=q((a=t,k(a).map((function(e){return a[e]}))).filter((function(e){return e.$_req})).map((function(e){return e.$_subs}))),l=E(c,(function(e){return e.d===s}));if(o.b&&!p(n)&&!i&&!o.s(n.props,r)&&!l)return c.reduce((function(e,t){var n=t.d;return e[0]?e[0].d===n&&e.push(t):n>s&&e.push(t),e}),[]).forEach((function(n){
// provider.container!,
// [provider],
// [provider.original],
// hooks,
// provider._cs,
// { ...self.state, ...self.$_state },
// isForceUpdate,
be(n,n._ps,[n.o],e,t,!0)})),!1;o.o=n,o.ss(r);
// render
var u=o.ps;return p(n)||(o.ps=n.props,o.ref=n.ref),oe(this),o.r(e,t,o.b?u:{},r),!0},t.md=function(){this.rr()},t.ss=function(){},t.ud=function(){this.rr()},
/**
   * register refs
   */
t.rr=function(){var e=this,t=e.ref,n=e.fr;t&&t(n?n.current:e.b)},e}();function ie(){return Object.__CROACT_CURRENT_INSTNACE__}function ae(){return ne}function oe(e){return Object.__CROACT_CURRENT_INSTNACE__=e,ne=0,e}var se=function(){function e(e,t){void 0===e&&(e={}),this.props=e,this.context=t,this.state={},this.$_timer=0,this.$_state={},this.$_subs=[],this.$_cs={}}var t=e.prototype;return t.render=function(){return null},t.shouldComponentUpdate=function(e,t){return this.props!==e||this.state!==t},t.setState=function(e,t,n){var r=this;r.$_timer||(r.$_state={}),clearTimeout(r.$_timer),r.$_timer=0,r.$_state=U(U({},r.$_state),e),n?r.$_setState(t,n):r.$_timer=window.setTimeout((function(){r.$_timer=0,r.$_setState(t,n)}))},t.forceUpdate=function(e){this.setState({},e,!0)},t.componentDidMount=function(){},t.componentDidUpdate=function(e,t){},t.componentWillUnmount=function(){},t.$_setState=function(e,t){var n=[],r=this.$_p;be(r.c,[r],[r.o],n,r._cs,U(U({},this.state),this.$_state),t)&&(e&&n.push(e),ee(n),oe(null))},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.shouldComponentUpdate=function(e,t){return K(this.props,e)||K(this.state,t)},t}(se);function le(e){var t=function(e){t.current=e};return t.current=e,t}function ue(e,t,n,r){var i,a;return(null===(i=null==e?void 0:e.prototype)||void 0===i?void 0:i.render)?a=new e(t,n):((a=new se(t,n)).constructor=e,e._fr?(r.fr=le(),a.render=function(){return this.constructor(this.props,r.fr)}):a.render=te),a.$_p=r,a}var he=function(e){function t(t,n,r,i,a,o,s){void 0===s&&(s={});var c=e.call(this,t,n,r,i,a,o,Y(s,t.defaultProps))||this;return c.typ="comp",
/**
     * Update shift effects
     */
c._usefs=[],
/**
     * Update effects
     */
c._uefs=[],
/**
     * Destroy effects
     */
c._defs=[],c}H(t,e);var n=t.prototype;return n.s=function(e,t){var n=this.b;return!1!==n.shouldComponentUpdate(Y(e,this.t.defaultProps),t||n.state)},n.r=function(e,t,n){var r,i,a=this,o=a.t;a.ps=Y(a.ps,a.t.defaultProps);var s=a.ps,c=!a.b,l=o.contextType,u=a.b,h=null==l?void 0:l.get(a);a._cs=t,c?(u=ue(o,s,h,a),a.b=u):(u.props=s,u.context=h);var f=u.state;a._usefs=[],a._uefs=[];var d=u.render();0===(null===(i=null===(r=null==d?void 0:d.props)||void 0===r?void 0:r.children)||void 0===i?void 0:i.length)&&(d.props.children=a.ps.children);var p=U(U({},t),u.$_cs);be(a,a._ps,d?[d]:[],e,p),c?a._uefs.push((function(){null==l||l.register(a),u.componentDidMount()})):a._uefs.push((function(){u.componentDidUpdate(n,f)})),e.push((function(){a._usefs.forEach((function(e){e()})),c?a.md():a.ud(),a._defs=a._uefs.map((function(e){return e()}))}))},n.ss=function(e){var t=this.b;t&&e&&(t.state=e)},n.un=function(){var e,t=this;t._ps.forEach((function(e){e.un()})),null===(e=t.t.contextType)||void 0===e||e.unregister(t),clearTimeout(t.b.$_timer),t._defs.forEach((function(e){e&&e()})),t.b.componentWillUnmount()},t}(re);function fe(e,t){var n=k(e),r=k(t),i=F(n,r,(function(e){return e})),a={},o={},s={};return i.added.forEach((function(e){var n=r[e];a[n]=t[n]})),i.removed.forEach((function(t){var r=n[t];o[r]=e[r]})),i.maintained.forEach((function(r){var i=r[0],a=n[i],o=[e[a],t[a]];e[a]!==t[a]&&(s[a]=o)})),{added:a,removed:o,changed:s}}var de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.typ="elem",
/**
     * Events
     */
t._es={},
/**
     * is svg
     */
t._svg=!1,t}H(t,e);var n=t.prototype;return n.e=function(e,t){var n=this,r=n._es,i=n.b,a=function(e){return e.replace(/^on/g,"").toLowerCase()}(e);t?(T(i,a,r[e]),delete r[e]):(r[e]=function(t){var r,i;null===(i=(r=n.ps)[e])||void 0===i||i.call(r,t)},M(i,a,r[e]))},n.s=function(e){return K(this.ps,e)},n.r=function(e,t,n){var r,i=this,a=!i.b,o=i.ps;if(a){var s=X(i.c),c=!1;c=!(!i._svg&&"svg"!==i.t)||s&&s.ownerSVGElement,i._svg=c;var l=null===(r=i._hyd)||void 0===r?void 0:r.splice(0,1)[0],u=i.t;if(l)i._hyd=[].slice.call(l.children||[]);else{var h=O(s);l=c?h.createElementNS("http://www.w3.org/2000/svg",u):h.createElement(u)}i.b=l}be(i,i._ps,o.children,e,t);var f=i.b,d=J(n),p=d[0],g=d[1],m=J(o),v=m[0],y=m[1];return function(e,t,n){var r=fe($(e),$(t)),i=r.added,a=r.removed,o=r.changed;for(var s in i)n.setAttribute(s,i[s]);for(var c in o)n.setAttribute(c,o[c][1]);for(var l in a)n.removeAttribute(l)}(p,v,f),function(e,t,n){var r=fe(e,t),i=r.added,a=r.removed;for(var o in a)n.e(o,!0);for(var s in i)n.e(s)}(g,y,i),function(e,t,n){var r=n.style,i=fe(e,t),a=i.added,o=i.removed,s=i.changed;for(var c in a){var l=C(c,"-");r.setProperty(l,a[c])}for(var c in s){var u=C(c,"-");r.setProperty(u,s[c][1])}for(var c in o){var h=C(c,"-");r.removeProperty(h)}}(n.style||{},o.style||{},f),e.push((function(){a?i.md():i.ud()})),!0},n.un=function(){var e=this,t=e._es,n=e.b;for(var r in t)T(n,r,t[r]);e._ps.forEach((function(e){e.un()})),e._es={},e._sel||Z(n)},t}(re);function pe(e){if(!e||P(e))return e;var t=e.$_p._ps;return t.length?pe(t[0].b):null}function ge(e){if(e){if(e.b&&P(e.b))return e;var t=e._ps;return t.length?ge(t[0]):null}}function me(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i,a=t||{},o=a.key,s=a.ref,c=G(a,["key","ref"]);return{type:e,key:o,ref:s,props:U(U({},c),{children:(i=n,i.reduce((function(e,t){return e.concat(t)}),[])).filter((function(e){return null!=e&&!1!==e}))})}}var ve=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,"container",n,"container",0,null)||this;return r.typ="container",r.b=t,r}H(t,e);var n=t.prototype;return n.r=function(){return!0},n.un=function(){},t}(re),ye=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.typ="text",t}H(t,e);var n=t.prototype;return n.r=function(e){var t,n=this,r=!n.b;if(r){var i=X(n.c),a=null===(t=n._hyd)||void 0===t?void 0:t.splice(0,1)[0];n.b=a||O(i).createTextNode(n.t.replace("text_",""))}return e.push((function(){r?n.md():n.ud()})),!0},n.un=function(){Z(this.b)},t}(re);function Ae(e,t,n,r){var i=r.d+1;if(p(e)||g(e))return new ye("text_".concat(e),i,t,n,r,null,{});var a=e.type;return new("string"==typeof a?de:he)(a,i,t,n,r,e.ref,e.props)}function be(e,t,n,r,i,a,o){var s=function(e,t,n){var r=n.map((function(e){return p(e)?null:e.key})),i=F(W(t.map((function(e){return e.k}))),W(r),(function(e){return e}));i.removed.forEach((function(e){t.splice(e,1)[0].un()})),i.ordered.forEach((function(e){var n=e[0],r=e[1],i=t.splice(n,1)[0];t.splice(r,0,i);var a=pe(i.b),o=pe(t[r+1]&&t[r+1].b);a&&a.parentNode.insertBefore(a,o)})),i.added.forEach((function(i){t.splice(i,0,Ae(n[i],r[i],i,e))}));var a=i.maintained.filter((function(i){i[0];var a=i[1],o=n[a],s=t[a];return(p(o)?"text_".concat(o):o.type)!==s.t?(s.un(),t.splice(a,1,Ae(o,r[a],a,e)),!0):(s.i=a,!1)}));return V(V([],i.added,!0),a.map((function(e){return e[0],e[1]})),!0)}(e,t,n),c=e._hyd,l=t.filter((function(e,t){return e._hyd=c,e.u(r,i,n[t],a,o)}));"container"===e.typ&&e._sel&&t.forEach((function(e){var t=ge(e);t&&(t._sel=!0)})),e._hyd=null;var u=X(e);return u&&s.reverse().forEach((function(n){var r=t[n],i=pe(r.b);if(i&&u!==i&&!i.parentNode){var a=function(e,t){for(var n=e._ps,r=n.length,i=t.i+1;i<r;++i){var a=pe(n[i].b);if(a)return a}return null}(e,r);u.insertBefore(i,a)}})),l.length>0}function we(e,t,n,r){void 0===n&&(n=t.__CROACT__),void 0===r&&(r={});var i=!!n;n||(n=new ve(t));var a=[];return be(n,n._ps,e?[e]:[],a,r,void 0,void 0),ee(a),oe(null),i||(t.__CROACT__=n),n}function xe(e,t,n){return!n&&e&&((n=new ve(t.parentElement))._hyd=[t],n._sel=!0),we(e,t,n),n}function Ce(e){var t=ie(),n=t._hs||(t._hs=[]),r=ae(),i=n[r];if(ne=r+1,i){if(!K(i.deps,e.deps))return i.updated=!1,i;n[r]=e}else n.push(e);return e.value=e.func(),e.updated=!0,e}function _e(e){return Ce({func:function(){return le(e)},deps:[]}).value}function Ie(e,t,n){var r=ie(),i=Ce({func:function(){return e},deps:t}),a=n?r._usefs:r._uefs;i.updated?a.push((function(){return i.effect&&i.effect(),i.effect=e(),i.effect})):a.push((function(){return i.effect}))}var Ee=function(e,t){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ee(e,t)};
//# sourceMappingURL=croact.esm.js.map
// CONCATENATED MODULE: ./node_modules/croact-ruler/dist/ruler.esm.js
/*
Copyright (c) 2019 Daybrush
name: croact-ruler
license: MIT
author: Daybrush
repository: https://github.com/daybrush/ruler/blob/master/packages/croact-ruler
version: 0.18.0
*/
/*
Copyright (c) 2019 Daybrush
name: @scena/react-ruler
license: MIT
author: Daybrush
repository: https://github.com/daybrush/ruler/blob/master/packages/react-ruler
version: 0.19.0
*/
/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */var ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={scrollPos:0},t.width=0,t.height=0,t._zoom=0,t._rulerScale=0,t._observer=null,t._checkResize=function(){t.resize()},t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.render=function(){var e=this.props;return this._zoom=e.zoom,me("canvas",{ref:i(this,"canvasElement"),style:this.props.style})},n.componentDidMount=function(){var e=this.props;this.state.scrollPos=e.defaultScrollPos||0;var t=this.canvasElement,n=t.getContext("2d",{alpha:!0});this.canvasContext=n,e.useResizeObserver?(this._observer=new ResizeObserver(this._checkResize),this._observer.observe(t,{box:"border-box"})):this.resize()},n.componentDidUpdate=function(){this.resize()},n.componentWillUnmount=function(){var e;this.state.scrollPos=0,null===(e=this._observer)||void 0===e||e.disconnect()},
/**
   * Gets the scroll position of the ruler.
   */
n.getScrollPos=function(){return this.state.scrollPos},
/**
   * @method Ruler#scroll
   * @param scrollPos
   */
n.scroll=function(e,t){this.draw({scrollPos:e,zoom:t})},
/**
   * @method Ruler#resize
   */
n.resize=function(e){var t=this.canvasElement,n=this.props,r=n.width,i=n.height,a=n.scrollPos,o=this._getRulerScale();this.width=r||t.offsetWidth,this.height=i||t.offsetHeight,t.width=this.width*o,t.height=this.height*o,this.draw({scrollPos:a,zoom:e})},
/**
   * draw a ruler
   * @param options - It is drawn with an external value, not the existing state.
   */
n.draw=function(e){void 0===e&&(e={});var t=this.props,n=e.zoom,r=void 0===n?this._zoom:n,i=e.scrollPos,a=void 0===i?this.state.scrollPos:i,o=e.marks,s=void 0===o?t.marks:o,c=e.selectedRanges,l=void 0===c?t.selectedRanges:c,u=e.segment,h=void 0===u?t.segment||10:u,f=e.unit,d=void 0===f?t.unit:f;this._zoom=r;var p=t,g=p.type,m=p.backgroundColor,v=p.lineColor,y=p.textColor,A=p.textBackgroundColor,b=p.direction,w=p.negativeRuler,x=void 0===w||w,C=p.textFormat,_=p.range,I=void 0===_?[-1/0,1/0]:_,E=p.rangeBackgroundColor,k=p.selectedBackgroundColor,B=p.lineWidth,M=void 0===B?1:B,T=p.selectedRangesText,O=p.selectedRangesTextColor,D=void 0===O?"#44aaff":O,P=p.selectedRangesTextOffset,L=void 0===P?[0,0]:P,Q=p.markColor,R=void 0===Q?"#ff5":Q,j=this._getRulerScale(),N=this.width,F=this.height;this.state.scrollPos=a;var z=this.canvasContext,H="horizontal"===g,U=!1!==x,G=t.font||"10px sans-serif",V=t.textAlign||"left",W=t.textOffset||[0,0],q=H?F:N,Y=S("".concat(t.mainLineSize||"100%"),q),K=S("".concat(t.longLineSize||10),q),$=S("".concat(t.shortLineSize||7),q),J=t.lineOffset||[0,0];switch("transparent"===m?
// Clear existing paths & text
z.clearRect(0,0,N*j,F*j):(
// Draw the background
z.rect(0,0,N*j,F*j),z.fillStyle=m,z.fill()),z.save(),z.scale(j,j),z.strokeStyle=v,z.lineWidth=M,z.font=G,z.fillStyle=y,z.textAlign=V,b){case"start":z.textBaseline="top";break;case"center":z.textBaseline="middle";break;case"end":z.textBaseline="bottom"}z.translate(.5,0),z.beginPath();for(var X=H?N:F,Z=r*d,ee=Math.floor(a*r/Z),te=Math.ceil((a*r+X)/Z)-ee,ne=Math.max(["left","center","right"].indexOf(V)-1,-1),re=H?F:N,ie=[],ae=0;ae<=te;++ae){var oe="".concat(ue=(ae+ee)*d);C&&(oe=C(ue));var se=z.measureText(oe).width;ie.push({color:y,offset:W,backgroundColor:A,value:ue,text:oe,textSize:se})}// Draw Selected Range Background
// Draw Range Background
if("transparent"!==k&&(null==l?void 0:l.length)&&l.forEach((function(e){var t=Math.max(e[0],I[0],x?-1/0:0),n=Math.min(e[1],I[1]),i=(t-a)*r,o=(n-t)*r;T&&e.forEach((function(e){var t="".concat(e);C&&(t=C(e));var n,i,a,o=z.measureText(t).width,s=e*r,c=s+o;i=function(e,t){var n=e.value,i=e.textSize,a=n*r;a<=c&&s<=a+i&&ie.splice(t,1)},a=function(e,t,n){void 0===n&&(n=-1);for(var r=e.length-1;r>=0;--r)if(t(e[r],r,e))return r;return n}
/**
* Returns the value of the reverse direction element in the array that satisfies the provided testing function.
* @function
* @memberof CrossBrowser
* @param - The array `findLast` was called upon.
* @param - A function to execute on each value in the array,
* @param - Returns defalutValue if not found by the function.
* @example
import { find } from "@daybrush/utils";

find([{a: 1}, {a: 2}, {a: 3}, {a: 4}], ({ a }) => a === 2); // {a: 2}
*/(n=ie,i),a>-1&&n[a],ie.push({value:e,color:D,offset:L,text:t,textSize:o})})),o<=0||(z.save(),z.fillStyle=k,H?z.fillRect(i,0,o,re):z.fillRect(0,i,re,o),z.restore())})),"transparent"!==E&&I[0]!==-1/0&&I[1]!==1/0){var ce=(I[0]-a)*r,le=(I[1]-I[0])*r;z.save(),z.fillStyle=E,H?z.fillRect(ce,0,le,re):z.fillRect(0,ce,re,le),z.restore()}// Render Segments First
for(ae=0;ae<=te;++ae){var ue=ae+ee;if(U||!(ue<0))for(var he=ue*d,fe=(he-a)*r,de=0;de<h;++de){var pe=fe+de/h*Z,ge=he+de/h*d;if(!(pe<0||pe>=X||ge<I[0]||ge>I[1])){var me=0===de?Y:de%2==0?K:$,ve=0;switch(b){case"start":ve=0;break;case"center":ve=re/2-me/2;break;case"end":ve=re-me}var ye=H?[pe+J[0],ve+J[1]]:[ve+J[0],pe+J[1]],Ae=ye[0],be=ye[1],we=H?[Ae,be+me]:[Ae+me,be],xe=we[0],Ce=we[1];z.moveTo(Ae+J[0],be+J[1]),z.lineTo(xe+J[0],Ce+J[1])}}}z.stroke(),z.beginPath(),// Render marks
z.strokeStyle=R,z.lineWidth=1,(s||[]).forEach((function(e){var t=(-a+e)*r;if(!(t<0||t>=X||e<I[0]||e>I[1])){var n=H?[t+J[0],J[1]]:[J[0],t+J[1]],i=n[0],o=n[1],s=H?[i,o+q]:[i+q,o],c=s[0],l=s[1];z.moveTo(i+J[0],o+J[1]),z.lineTo(c+J[0],l+J[1])}})),z.stroke(),// Render Labels
ie.forEach((function(e){var t=e.value,n=e.offset,i=e.backgroundColor,o=e.color,s=e.text,c=e.textSize;if(U||!(t<0)){var l=(t-a)*r;if(!(l<-Z||l>=X+d*r||t<I[0]||t>I[1])){var u=0;switch(b){case"start":u=17;break;case"center":u=re/2;break;case"end":u=re-17}var h=H?[l+-3*ne,u]:[u,l+3*ne],f=h[0],p=h[1];if(i){var g=0;switch(V){case"left":g=0;break;case"center":g=-c/2;break;case"right":g=-c}z.save(),z.fillStyle=i,H?z.fillRect(f+n[0]+g,0,c,Y):(z.translate(0,p+n[1]),z.rotate(-Math.PI/2),z.fillRect(g,0,c,Y)),z.restore()}z.save(),z.fillStyle=o,H?z.fillText(s,f+n[0],p+n[1]):(z.translate(f+n[0],p+n[1]),z.rotate(-Math.PI/2),z.fillText(s,0,0)),z.restore()}}})),z.restore()},n._getRulerScale=function(){var e=this.props.defaultPixelScale||2;if(!this._rulerScale){var t=window.devicePixelRatio>1;if(!t&&window.matchMedia){var n=window.matchMedia("only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen  and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 1.3dppx)");t=n&&n.matches}this._rulerScale=t?3:e}return this._rulerScale},t.defaultProps={type:"horizontal",zoom:1,width:0,height:0,unit:50,negativeRuler:!0,mainLineSize:"100%",longLineSize:10,shortLineSize:7,segment:10,direction:"end",style:{width:"100%",height:"100%"},backgroundColor:"#333333",font:"10px sans-serif",textColor:"#ffffff",textBackgroundColor:"transparent",lineColor:"#777777",range:[-1/0,1/0],rangeBackgroundColor:"transparent",lineWidth:1,selectedBackgroundColor:"#555555",defaultScrollPos:0,markColor:"#f55",marks:[]},t}(ce),Se=["type","width","height","unit","zoom","direction","textAlign","font","segment","mainLineSize","longLineSize","shortLineSize","lineOffset","textOffset","negativeRuler","range","scrollPos","defaultScrollPos","style","backgroundColor","rangeBackgroundColor","lineColor","textColor","textBackgroundColor","textFormat","warpSelf","selectedBackgroundColor","selectedRanges","defaultPixelScale","useResizeObserver","selectedRangesText","selectedRangesTextColor","selectedRangesTextOffset","marks","markColor"],Be=ke,Me=function(){return Me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Me.apply(this,arguments)};
/**
 * Implement EventEmitter on object or component.
 */
var Te=

function(){function e(){this._events={}}
/**
   * Add a listener to the registered event.
   * @param - Name of the event to be added
   * @param - listener function of the event to be added
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Add listener in "a" event
   * emitter.on("a", () => {
   * });
   * // Add listeners
   * emitter.on({
   *  a: () => {},
   *  b: () => {},
   * });
   */var t=e.prototype;return t.on=function(e,t){if(f(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},
/**
   * Remove listeners registered in the event target.
   * @param - Name of the event to be removed
   * @param - listener function of the event to be removed
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Remove all listeners.
   * emitter.off();
   *
   * // Remove all listeners in "A" event.
   * emitter.off("a");
   *
   *
   * // Remove "listener" listener in "a" event.
   * emitter.off("a", listener);
   */
t.off=function(e,t){if(e)if(f(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var i=I(r,(function(e){return e.listener===t}));i>-1&&r.splice(i,1)}}else this._events[e]=[];else this._events={};return this},
/**
   * Add a disposable listener and Use promise to the registered event.
   * @param - Name of the event to be added
   * @param - disposable listener function of the event to be added
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Add a disposable listener in "a" event
   * emitter.once("a", () => {
   * });
   *
   * // Use Promise
   * emitter.once("a").then(e => {
   * });
   */
t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},
/**
   * Fires an event to call listeners.
   * @param - Event name
   * @param - Event parameter
   * @return If false, stop the event.
   * @example
   *
   * import EventEmitter from "@scena/event-emitter";
   *
   *
   * const emitter = new EventEmitter();
   *
   * emitter.on("a", e => {
   * });
   *
   *
   * emitter.emit("a", {
   *   a: 1,
   * });
   */
t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!i},
/**
   * Fires an event to call listeners.
   * @param - Event name
   * @param - Event parameter
   * @return If false, stop the event.
   * @example
   *
   * import EventEmitter from "@scena/event-emitter";
   *
   *
   * const emitter = new EventEmitter();
   *
   * emitter.on("a", e => {
   * });
   *
   *
   * emitter.emit("a", {
   *   a: 1,
   * });
   */
/**
  * Fires an event to call listeners.
  * @param - Event name
  * @param - Event parameter
  * @return If false, stop the event.
  * @example
  *
  * import EventEmitter from "@scena/event-emitter";
  *
  *
  * const emitter = new EventEmitter();
  *
  * emitter.on("a", e => {
  * });
  *
  * // emit
  * emitter.trigger("a", {
  *   a: 1,
  * });
  */
t.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},t._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(Me({listener:t},n))},e}(),Oe=Te,De=function(e,t){return De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},De(e,t)};
/* harmony default export */var Pe=function(){return Pe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Pe.apply(this,arguments)};function Le(e){return 180*(t=[e[0].clientX,e[0].clientY],n=[e[1].clientX,e[1].clientY],r=n[0]-t[0],i=n[1]-t[1],((a=Math.atan2(i,r))>=0?a:a+2*Math.PI)/Math.PI);var t,n,r,i,a}function Qe(e){return e?e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(Ne(e[r]));return n}(e.touches):[Ne(e)]:[]}function Re(e,t,n){var r=n.length,i=Fe(e,r),a=i.clientX,o=i.clientY,s=i.originalClientX,c=i.originalClientY,l=Fe(t,r),u=l.clientX,h=l.clientY,f=Fe(n,r);return{clientX:s,clientY:c,deltaX:a-u,deltaY:o-h,distX:a-f.clientX,distY:o-f.clientY}}function je(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function Ne(e){return{clientX:e.clientX,clientY:e.clientY}}function Fe(e,t){void 0===t&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var a=e[i];n.originalClientX+="originalClientX"in a?a.originalClientX:a.clientX,n.originalClientY+="originalClientY"in a?a.originalClientY:a.clientY,n.clientX+=a.clientX,n.clientY+=a.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var ze=function(){function e(e){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=e,this.prevClients=e,this.length=e.length}return e.prototype.getAngle=function(e){return void 0===e&&(e=this.prevClients),Le(e)},e.prototype.getRotation=function(e){return void 0===e&&(e=this.prevClients),Le(e)-Le(this.startClients)},e.prototype.getPosition=function(e,t){void 0===e&&(e=this.prevClients);var n=Re(e||this.prevClients,this.prevClients,this.startClients),r=n.deltaX,i=n.deltaY;return this.movement+=Math.sqrt(r*r+i*i),this.prevClients=e,n},e.prototype.getPositions=function(e){void 0===e&&(e=this.prevClients);for(var t=this.prevClients,n=this.startClients,r=Math.min(this.length,t.length),i=[],a=0;a<r;++a)i[a]=Re([e[a]],[t[a]],[n[a]]);return i},e.prototype.getMovement=function(e){var t=this.movement;if(!e)return t;var n=Fe(e,this.length),r=Fe(this.prevClients,this.length),i=n.clientX-r.clientX,a=n.clientY-r.clientY;return Math.sqrt(i*i+a*a)+t},e.prototype.getDistance=function(e){return void 0===e&&(e=this.prevClients),je(e)},e.prototype.getScale=function(e){return void 0===e&&(e=this.prevClients),je(e)/je(this.startClients)},e.prototype.move=function(e,t){this.startClients.forEach((function(n){n.clientX-=e,n.clientY-=t})),this.prevClients.forEach((function(n){n.clientX-=e,n.clientY-=t}))},e}(),He=["textarea","input"],Ue=function(e){
/**
     *
     */
function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(e,t){if(void 0===t&&(t=!0),r.flag||!1!==e.cancelable){var n=e.type.indexOf("drag")>=-1;if(!r.flag||!n){r._isDragAPI=!0;var i=r.options,a=i.container,o=i.pinchOutside,s=i.preventWheelClick,c=i.preventRightClick,l=i.preventDefault,u=i.checkInput,h=i.dragFocusedInput,f=i.preventClickEventOnDragStart,d=i.preventClickEventOnDrag,p=i.preventClickEventByCondition,g=r._useTouch,m=!r.flag;if(r._isSecondaryButton=3===e.which||2===e.button,s&&(2===e.which||1===e.button)||c&&(3===e.which||2===e.button))return r.stop(),!1;if(m){var v=r._window.document.activeElement,y=e.target;if(y){var A=y.tagName.toLowerCase(),b=He.indexOf(A)>-1,w=y.isContentEditable;if(b||w){if(u||!h&&v===y)
// force false or already focused.
return!1;
// no focus
if(v&&(v===y||w&&v.isContentEditable&&v.contains(y))){if(!h)return!1;y.blur()}}else if((l||"touchstart"===e.type)&&v){var x=v.tagName.toLowerCase();(v.isContentEditable||He.indexOf(x)>-1)&&v.blur()}(f||d||p)&&M(r._window,"click",r._onClick,!0)}r.clientStores=[new ze(Qe(e))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=t,r._dragFlag=!0,r._prevInputEvent=e,r.data={},r.doubleFlag=_()-r.prevTime<200,r._isMouseEvent=function(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}(e),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),!1===(r._preventMouseEvent||r.emit("dragStart",Pe(Pe({data:r.data,datas:r.data,inputEvent:e,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))&&r.stop(),r._isMouseEvent&&r.flag&&l&&e.preventDefault()}if(!r.flag)return!1;var C=0;if(m?(r._attchDragEvent(),
// wait pinch
g&&o&&(C=setTimeout((function(){M(a,"touchstart",r.onDragStart,{passive:!1})})))):g&&o&&
// pinch is occured
T(a,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(C),m&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}}},r.onDrag=function(e,t){if(r.flag){var n=r.options.preventDefault;!r._isMouseEvent&&n&&e.preventDefault(),r._prevInputEvent=e;var i=Qe(e),a=r.moveClients(i,e,!1);if(r._dragFlag){if(r.pinchFlag||a.deltaX||a.deltaY)if(!1===(r._preventMouseEvent||r.emit("drag",Pe(Pe({},a),{isScroll:!!t,inputEvent:e}))))return void r.stop();r.pinchFlag&&r.onPinch(e,i)}r.getCurrentStore().getPosition(i,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,i=t.container,a=t.preventClickEventOnDrag,o=t.preventClickEventOnDragStart,s=t.preventClickEventByCondition,c=r.isDrag;(a||o||s)&&requestAnimationFrame((function(){r._allowClickEvent()})),s||o||!a||c||r._allowClickEvent(),r._useTouch&&n&&T(i,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var l=(null==e?void 0:e.touches)?Qe(e):[];0!==l.length&&r.options.keepDragging?r._addStore(new ze(l)):r.flag=!1;var u=r._getPosition(),h=_(),f=!c&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=c||f?0:h,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",Pe({data:r.data,datas:r.data,isDouble:f,isDrag:c,isClick:!c,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:e,isTrusted:r._isTrusted},u)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,
// Prevent the problem of touch event and mouse event occurring simultaneously
clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout((function(){r._preventMouseEvent=!1}),200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){T(r._window,"click",r._onClick,!0)},r._onClick=function(e){r._allowClickEvent(),r._allowMouseEvent();var t=r.options.preventClickEventByCondition;(null==t?void 0:t(e))||(e.stopPropagation(),e.preventDefault())},r._onContextMenu=function(e){r.options.preventRightClick?r.onDragEnd(e):e.preventDefault()},r._passCallback=function(){};var i,a=[].concat(t),o=a[0];r._window=(i=o)&&"postMessage"in i&&"blur"in i&&"self"in i?o:D(o),r.options=Pe({checkInput:!1,container:o&&!("document"in o)?D(o):o,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var s=r.options,c=s.container,l=s.events,u=s.checkWindowBlur;if(r._useDrag=l.indexOf("drag")>-1,r._useTouch=l.indexOf("touch")>-1,r._useMouse=l.indexOf("mouse")>-1,r.targets=a,r._useDrag&&a.forEach((function(e){M(e,"dragstart",r.onDragStart)})),r._useMouse&&(a.forEach((function(e){M(e,"mousedown",r.onDragStart),M(e,"mousemove",r._passCallback)})),M(c,"contextmenu",r._onContextMenu)),u&&M(D(),"blur",r.onBlur),r._useTouch){var h={passive:!1};a.forEach((function(e){M(e,"touchstart",r.onDragStart,h),M(e,"touchmove",r._passCallback,h)}))}return r}
/**
     * Stop Gesto's drag events.
     */return function(e,t){function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},
/**
     * The total moved distance
     */
t.prototype.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},
/**
     * Whether to drag
     */
t.prototype.isDragging=function(){return this.isDrag},
/**
     * Whether the operation of gesto is finished and is in idle state
     */
t.prototype.isIdle=function(){return this._isIdle},
/**
     * Whether to start drag
     */
t.prototype.isFlag=function(){return this.flag},
/**
     * Whether to start pinch
     */
t.prototype.isPinchFlag=function(){return this.pinchFlag},
/**
     * Whether to start double click
     */
t.prototype.isDoubleFlag=function(){return this.doubleFlag},
/**
     * Whether to pinch
     */
t.prototype.isPinching=function(){return this.isPinch},
/**
     * If a scroll event occurs, it is corrected by the scroll distance.
     */
t.prototype.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},
/**
     * Create a virtual drag event.
     */
t.prototype.move=function(e,t){var n=e[0],r=e[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map((function(e){var t=e.clientX,i=e.clientY;return{clientX:t+n,clientY:i+r,originalClientX:t,originalClientY:i}})),t,!0)},
/**
     * The dragStart event is triggered by an external event.
     */
t.prototype.triggerDragStart=function(e){this.onDragStart(e,!1)},
/**
     * Set the event data while dragging.
     */
t.prototype.setEventData=function(e){var t=this.data;for(var n in e)t[n]=e[n];return this},
/**
     * Set the event data while dragging.
     * Use `setEventData`
     * @deprecated
     */
t.prototype.setEventDatas=function(e){return this.setEventData(e)},
/**
     * Get the current event state while dragging.
     */
t.prototype.getCurrentEvent=function(e){return void 0===e&&(e=this._prevInputEvent),Pe(Pe({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},
/**
     * Get & Set the event data while dragging.
     */
t.prototype.getEventData=function(){return this.data},
/**
     * Get & Set the event data while dragging.
     * Use getEventData method
     * @depreacated
     */
t.prototype.getEventDatas=function(){return this.data},
/**
     * Unset Gesto
     */
t.prototype.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),T(this._window,"blur",this.onBlur),this._useDrag&&t.forEach((function(t){T(t,"dragstart",e.onDragStart)})),this._useMouse&&(t.forEach((function(t){T(t,"mousedown",e.onDragStart)})),T(n,"contextmenu",this._onContextMenu)),this._useTouch&&(t.forEach((function(t){T(t,"touchstart",e.onDragStart)})),T(n,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(e){var t=this,n=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>n)){var r=new ze(Qe(e));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",Pe(Pe({data:this.data,datas:this.data,angle:r.getAngle(),touches:this.getCurrentStore().getPositions()},r.getPosition()),{inputEvent:e,isTrusted:this._isTrusted,preventDefault:function(){e.preventDefault()},preventDrag:function(){t._dragFlag=!1}}))&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Pe(Pe({data:this.data,datas:this.data,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t)),{inputEvent:e,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",Pe(Pe({data:this.data,datas:this.data,isPinch:t,touches:n.getPositions()},n.getPosition()),{inputEvent:e}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(e,t,n){var r=this._getPosition(e,n),i=this.isDrag;(r.deltaX||r.deltaY)&&(this.isDrag=!0);var a=!1;return!i&&this.isDrag&&(a=!0),Pe(Pe({data:this.data,datas:this.data},r),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:t,isTrusted:this._isTrusted,isFirstDrag:a})},t.prototype._addStore=function(e){this.clientStores.splice(0,0,e)},t.prototype._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce((function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e}),n),i=r.distX,a=r.distY;return Pe(Pe({},n),{distX:i,distY:a})},t.prototype._attchDragEvent=function(){var e=this._window,t=this.options.container,n={passive:!1};this._isDragAPI&&(M(t,"dragover",this.onDrag,n),M(e,"dragend",this.onDragEnd)),this._useMouse&&(M(t,"mousemove",this.onDrag),M(e,"mouseup",this.onDragEnd)),this._useTouch&&(M(t,"touchmove",this.onDrag,n),M(e,"touchend",this.onDragEnd,n),M(e,"touchcancel",this.onDragEnd,n))},t.prototype._dettachDragEvent=function(){var e=this._window,t=this.options.container;this._isDragAPI&&(T(t,"dragover",this.onDrag),T(e,"dragend",this.onDragEnd)),this._useMouse&&(T(t,"mousemove",this.onDrag),T(e,"mouseup",this.onDragEnd)),this._useTouch&&(T(t,"touchstart",this.onDragStart),T(t,"touchmove",this.onDrag),T(e,"touchend",this.onDragEnd),T(e,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(Oe);var Ge=
//# sourceMappingURL=gesto.esm.js.map
// CONCATENATED MODULE: ./node_modules/css-styled/dist/styled.esm.js
/*
Copyright (c) Daybrush
name: css-styled
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/css-styled.git
version: 1.0.8
*/
function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
   * integers. Since we want the results to be always positive, convert the
   * signed int to an unsigned by doing an unsigned bitshift. */return t>>>0};function Ve(e,t,n,r,i){var a=O(r),o=a.createElement("style");return o.setAttribute("type","text/css"),o.setAttribute("data-styled-id",e),o.setAttribute("data-styled-count","1"),n.nonce&&o.setAttribute("nonce",n.nonce),o.innerHTML=function(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(t,n){var r=n.trim();return(r?b(r):[""]).map((function(t){var n=t.trim();return 0===n.indexOf("@")?n:n.indexOf(":global")>-1?n.replace(/\:global/g,""):n.indexOf(":host")>-1?"".concat(n.replace(/\:host/g,".".concat(e))):n?".".concat(e," ").concat(n):".".concat(e)})).join(", ")+" {"}))}(e,t,n),(i||a.head||a.body).appendChild(o),o}
/**
 * Create an styled object that can be defined and inserted into the css.
 * @param - css styles
 */
/* harmony default export */var We=function(e){var t="rCS"+Ge(e).toString(36);return{className:t,inject:function(n,r){void 0===r&&(r={});var i=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(n),a=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(a){var o=parseFloat(a.getAttribute("data-styled-count"))||0;a.setAttribute("data-styled-count","".concat(o+1))}else a=Ve(t,e,r,n,i);return{destroy:function(){var e,t=parseFloat(a.getAttribute("data-styled-count"))||0;t<=1?(a.remove?a.remove():null===(e=a.parentNode)||void 0===e||e.removeChild(a),a=null):a.setAttribute("data-styled-count","".concat(t-1))}}}}};
//# sourceMappingURL=styled.esm.js.map
// CONCATENATED MODULE: ./node_modules/croact-css-styled/dist/styled.esm.js
/*
Copyright (c) Daybrush
name: croact-css-styled
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/css-styled.git
version: 1.1.9
*/
/*
Copyright (c) 2019 Daybrush
name: react-css-styled
license: MIT
author: Daybrush
repository: https://github.com/daybrush/css-styled/tree/master/packages/react-css-styled
version: 1.1.9
*/
/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */var qe=function(){return qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qe.apply(this,arguments)};function Ye(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
// CONCATENATED MODULE: ./node_modules/@scena/matrix/dist/matrix.esm.js
/*
Copyright (c) 2020 Daybrush
name: @scena/matrix
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/matrix
version: 1.1.1
*/
function Ke(e,t,n,r,i,a){for(var o=0;o<i;++o){var s=n+o*i,c=r+o*i;e[s]+=e[c]*a,t[s]+=t[c]*a}}function $e(e,t,n,r,i){for(var a=0;a<i;++a){var o=n+a*i,s=r+a*i,c=e[o],l=t[o];e[o]=e[s],e[s]=c,t[o]=t[s],t[s]=l}}function Je(e,t,n,r,i){for(var a=0;a<r;++a){var o=n+a*r;e[o]/=i,t[o]/=i}}
/**
 *
 * @namespace Matrix
 */
/**
 * @memberof Matrix
 */
/**
 * @memberof Matrix
 */
function Xe(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=ct(t),i=0;i<t;++i){
// diagonal
var a=t*i+i;if(!B(n[a],u))
// newMatrix[identityIndex] = 0;
for(var o=i+1;o<t;++o)if(n[t*i+o]){$e(n,r,i,o,t);break}if(!B(n[a],u))
// no inverse matrix
return[];Je(n,r,i,t,n[a]);for(o=0;o<t;++o){var s=o,c=n[o+i*t];B(c,u)&&i!==o&&Ke(n,r,s,i,t,-c)}}return r}
/**
 * @memberof Matrix
 */
/**
 * @memberof Matrix
 */
function Ze(e,t,n){void 0===n&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,a=t.length/i;// 1 y: n
// 1 x: m
// 2 x: m
// 2 y: k
// n * m X m * k
if(!i)return t;if(!a)return e;for(var o=0;o<n;++o)for(var s=0;s<a;++s){r[s*n+o]=0;for(var c=0;c<i;++c)
// m1 x: m(l), y: n(i)
// m2 x: k(j):  y: m(l)
// nw x: n(i), y: k(j)
r[s*n+o]+=e[c*n+o]*t[s*i+c]}// n * k
return r}
/**
 * @memberof Matrix
 */
/**
 * @memberof Matrix
 */
function et(e,t,n){void 0===n&&(n=t.length);var r=Ze(e,t,n),i=r[n-1];return r.map((function(e){return e/i}))}
/**
 * @memberof Matrix
 */function tt(e,t){return Ze(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}
/**
 * @memberof Matrix
 */function nt(e,t){return Ze(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}
/**
 * @memberof Matrix
 */function rt(e,t){return Ze(e,st(t,4))}
/**
 * @memberof Matrix
 */function it(e,t){var n=t[0],r=void 0===n?1:n,i=t[1],a=void 0===i?1:i,o=t[2];return Ze(e,[r,0,0,0,0,a,0,0,0,0,void 0===o?1:o,0,0,0,0,1],4)}
/**
 * @memberof Matrix
 */
/**
 * @memberof Matrix
 */
function at(e,t){var n=t[0],r=void 0===n?0:n,i=t[1],a=void 0===i?0:i,o=t[2];return Ze(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,a,void 0===o?0:o,1],4)}
/**
 * @memberof Matrix
 */function ot(e,t){return Ze(e,t,4)}
/**
 * @memberof Matrix
 */function st(e,t){var n=Math.cos(e),r=Math.sin(e),i=ct(t);// cos -sin
// sin cos
return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}
/**
 * @memberof Matrix
 */function ct(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}
/**
 * @memberof Matrix
 */
//# sourceMappingURL=matrix.esm.js.map
// CONCATENATED MODULE: ./node_modules/css-to-mat/dist/css-to-mat.esm.js
/*
Copyright (c) 2019 Daybrush
name: css-to-mat
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/css-to-mat.git
version: 1.1.0
*/
/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lt.apply(this,arguments)};function ut(e,t){return void 0===t&&(t=0),n=function(e,t){void 0===t&&(t=0);var n=d(e)?e:A(e,"");return n.map((function(e){var n=w(e),r=n.prefix,i=n.value,a=null,o=r,s="";if("translate"===r||"translateX"===r||"translate3d"===r){var c=f(t)?lt(lt({},t),{"o%":t["%"]}):{"%":t,"o%":t},l=b(i).map((function(e,n){return c["%"]=0===n&&"x%"in c?t["x%"]:1===n&&"y%"in c?t["y%"]:t["o%"],S(e,c)})),u=l[0],h=l[1],d=void 0===h?0:h,p=l[2];a=at,s=[u,d,void 0===p?0:p]}else if("translateY"===r)a=at,s=[0,d=S(i,f(t)?lt({"%":t["y%"]},t):{"%":t}),0];else if("translateZ"===r)a=at,s=[0,0,parseFloat(i)];else if("scale"===r||"scale3d"===r){var g=b(i).map((function(e){return parseFloat(e)})),m=g[0],v=g[1],y=void 0===v?m:v,A=g[2];a=it,s=[m,y,void 0===A?1:A]}else if("scaleX"===r)a=it,s=[m=parseFloat(i),1,1];else if("scaleY"===r)a=it,s=[1,y=parseFloat(i),1];else if("scaleZ"===r)a=it,s=[1,1,parseFloat(i)];else if("rotate"===r||"rotateZ"===r||"rotateX"===r||"rotateY"===r){var C=x(i),_=C.unit,I=C.value;"rotate"===r||"rotateZ"===r?(o="rotateZ",a=rt):"rotateX"===r?a=tt:"rotateY"===r&&(a=nt),s="rad"===_?I:I*Math.PI/180}else if("matrix3d"===r)a=ot,s=b(i).map((function(e){return parseFloat(e)}));else if("matrix"===r){var E=b(i).map((function(e){return parseFloat(e)}));a=ot,s=[E[0],E[1],0,0,E[2],E[3],0,0,0,0,1,0,E[4],E[5],0,1]}else o="";return{name:r,functionName:o,value:i,matrixFunction:a,functionValue:s}}))}
//# sourceMappingURL=css-to-mat.esm.js.map
// CONCATENATED MODULE: ./node_modules/croact-guides/dist/guides.esm.js
/*
Copyright (c) 2019 Daybrush
name: croact-guides
license: MIT
author: Daybrush
repository: https://github.com/daybrush/guides/blob/master/packages/croact-guides
version: 0.26.2
*/
/*
Copyright (c) 2019 Daybrush
name: @scena/event-emitter
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/gesture.git
version: 1.0.5
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */(e,t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],n.forEach((function(e){var t=e.matrixFunction,n=e.functionValue;t&&(r=t(r,n))})),r;var n,r}function ht(e,t){var n=et(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}var ft=function(){return ft=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ft.apply(this,arguments)};
/**
 * Implement EventEmitter on object or component.
 */
var dt=

function(){function e(){this._events={}}
/**
   * Add a listener to the registered event.
   * @param - Name of the event to be added
   * @param - listener function of the event to be added
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Add listener in "a" event
   * emitter.on("a", () => {
   * });
   * // Add listeners
   * emitter.on({
   *  a: () => {},
   *  b: () => {},
   * });
   */var t=e.prototype;return t.on=function(e,t){if(f(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},
/**
   * Remove listeners registered in the event target.
   * @param - Name of the event to be removed
   * @param - listener function of the event to be removed
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Remove all listeners.
   * emitter.off();
   *
   * // Remove all listeners in "A" event.
   * emitter.off("a");
   *
   *
   * // Remove "listener" listener in "a" event.
   * emitter.off("a", listener);
   */
t.off=function(e,t){if(e)if(f(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var i=I(r,(function(e){return e.listener===t}));i>-1&&r.splice(i,1)}}else this._events[e]=[];else this._events={};return this},
/**
   * Add a disposable listener and Use promise to the registered event.
   * @param - Name of the event to be added
   * @param - disposable listener function of the event to be added
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Add a disposable listener in "a" event
   * emitter.once("a", () => {
   * });
   *
   * // Use Promise
   * emitter.once("a").then(e => {
   * });
   */
t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},
/**
   * Fires an event to call listeners.
   * @param - Event name
   * @param - Event parameter
   * @return If false, stop the event.
   * @example
   *
   * import EventEmitter from "@scena/event-emitter";
   *
   *
   * const emitter = new EventEmitter();
   *
   * emitter.on("a", e => {
   * });
   *
   *
   * emitter.emit("a", {
   *   a: 1,
   * });
   */
t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!i},
/**
   * Fires an event to call listeners.
   * @param - Event name
   * @param - Event parameter
   * @return If false, stop the event.
   * @example
   *
   * import EventEmitter from "@scena/event-emitter";
   *
   *
   * const emitter = new EventEmitter();
   *
   * emitter.on("a", e => {
   * });
   *
   *
   * emitter.emit("a", {
   *   a: 1,
   * });
   */
/**
  * Fires an event to call listeners.
  * @param - Event name
  * @param - Event parameter
  * @return If false, stop the event.
  * @example
  *
  * import EventEmitter from "@scena/event-emitter";
  *
  *
  * const emitter = new EventEmitter();
  *
  * emitter.on("a", e => {
  * });
  *
  * // emit
  * emitter.trigger("a", {
  *   a: 1,
  * });
  */
t.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},t._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(ft({listener:t},n))},e}(),pt=function(e,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},pt(e,t)};
/*
Copyright (c) 2019 Daybrush
name: @scena/dragscroll
license: MIT
author: Daybrush
repository: git+https://github.com/daybrush/dragscroll.git
version: 1.3.0
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */var gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gt.apply(this,arguments)};function mt(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}function vt(e){return e?p(e)?document.querySelector(e):m(e)?e():e instanceof Element?e:"current"in e?e.current:"value"in e?e.value:void 0:null}
/**
 * @sort 1
 */var yt=

function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._startRect=null,t._startPos=[],t._prevTime=0,t._timer=0,t._prevScrollPos=[0,0],t._isWait=!1,t._flag=!1,t}
/**
   */!function(e,t){function n(){this.constructor=e}pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.dragStart=function(e,t){var n=vt(t.container);if(n){var r=0,i=0,a=0,o=0;if(n===document.body)a=window.innerWidth,o=window.innerHeight;else{var s=n.getBoundingClientRect();r=s.top,i=s.left,a=s.width,o=s.height}this._flag=!0,this._startPos=[e.clientX,e.clientY],this._startRect={top:r,left:i,width:a,height:o},this._prevScrollPos=this._getScrollPosition([0,0],t)}else this._flag=!1},n.drag=function(e,t){if(clearTimeout(this._timer),this._flag){var n=e.clientX,r=e.clientY,i=t.threshold,a=void 0===i?0:i,o=this._startRect,s=this._startPos,c=[0,0];return o.top>r-a?(s[1]>o.top||r<s[1])&&(c[1]=-1):o.top+o.height<r+a&&(s[1]<o.top+o.height||r>s[1])&&(c[1]=1),o.left>n-a?(s[0]>o.left||n<s[0])&&(c[0]=-1):o.left+o.width<n+a&&(s[0]<o.left+o.width||n>s[0])&&(c[0]=1),!(!c[0]&&!c[1])&&this._continueDrag(gt(gt({},t),{direction:c,inputEvent:e,isDrag:!0}))}},
/**
   */
n.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,i=e.direction,a=e.throttleTime,o=void 0===a?0:a,s=e.inputEvent,c=e.isDrag,l=this._getScrollPosition(i||[0,0],e),u=l[0]-r[0],h=l[1]-r[1],f=i||[u?Math.abs(u)/u:0,h?Math.abs(h)/h:0];return this._prevScrollPos=l,!(!u&&!h)&&(
/**
     * @event DragScroll#move
     */
this.trigger("move",{offsetX:f[0]?u:0,offsetY:f[1]?h:0,inputEvent:s}),o&&c&&(clearTimeout(this._timer),this._timer=window.setTimeout((function(){t._continueDrag(e)}),o)),!0)},
/**
   */
n.dragEnd=function(){this._flag=!1,clearTimeout(this._timer)},n._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?mt:r)({container:vt(n),direction:e})},n._continueDrag=function(e){var t,n,r=this,i=e.container,a=e.direction,o=e.throttleTime,s=e.useScroll,c=e.isDrag,l=e.inputEvent;if(!(!this._flag||c&&this._isWait)){var u=_(),h=Math.max(o+this._prevTime-u,0);if(h>0)return clearTimeout(this._timer),this._timer=window.setTimeout((function(){r._continueDrag(e)}),h),!1;this._prevTime=u;var f=this._getScrollPosition(a,e);this._prevScrollPos=f,c&&(this._isWait=!0);var d={container:vt(i),direction:a,inputEvent:l};return null===(n=(t=e).requestScroll)||void 0===n||n.call(t,d),
/**
     * @event DragScroll#scroll
     */
this.trigger("scroll",d),this._isWait=!1,s||this.checkScroll(gt(gt({},e),{prevScrollPos:f,direction:a,inputEvent:l}))}},t}(dt),At=function(e,t){return At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},At(e,t)};
/*
Copyright (c) 2019 Daybrush
name: @scena/react-guides
license: MIT
author: Daybrush
repository: https://github.com/daybrush/guides/blob/master/packages/react-guides
version: 0.28.2
*/
/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */var bt=function(){return bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bt.apply(this,arguments)};function wt(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(void 0,wt(["scena-guides-"],e,!1))}var Ct,_t,It,Et,kt=xt("guide","adder"),St=xt("guides"),Bt=xt("guide"),Mt=xt("dragging"),Tt=xt("display-drag"),Ot=function(e,t){return t.replace(/([^}{]*){/gm,(function(t,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"}))}("scena-guides-",'\n{\n    position: relative;\n    width: 100%;\n    height: 100%;\n}\ncanvas {\n    position: relative;\n}\n.guide-origin {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    top: 0;\n    left: 0;\n    opacity: 0;\n}\n.guides {\n    position: absolute;\n    bottom: 0;\n    right: 0;\n    will-change: transform;\n    z-index: 2000;\n}\n.guide-pos {\n    position: absolute;\n    font-weight: bold;\n    font-size: 12px;\n    color: #f33;\n}\n.horizontal .guide-pos {\n    bottom: 100%;\n    left: 50%;\n    transform: translate(-50%);\n}\n.vertical .guide-pos {\n    left: calc(100% + 2px);\n    top: 50%;\n    transform: translateY(-50%);\n}\n.display-drag {\n    position: absolute;\n    will-change: transform;\n    z-index: 2000;\n    font-weight: bold;\n    font-size: 12px;\n    display: none;\n    left: 20px;\n    top: -20px;\n    color: #f33;\n}\n:host.horizontal .guides {\n    width: 100%;\n    height: 0;\n}\n:host.vertical .guides {\n    height: 100%;\n    width: 0;\n}\n:host.horizontal canvas {\n    cursor: ns-resize;\n}\n:host.vertical canvas {\n    cursor: ew-resize;\n}\n.guide {\n    position: absolute;\n    background: #f33;\n    z-index: 2;\n}\n.guide.dragging:before {\n    position: absolute;\n    content: "";\n    width: 100%;\n    height: 100%;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n}\n:host.horizontal .guide {\n    width: 100%;\n    height: 1px;\n    cursor: row-resize;\n}\n:host.vertical .guide {\n    width: 1px;\n    height: 100%;\n    cursor: col-resize;\n}\n.mobile :host.horizontal .guide {\n    transform: scale(1, 2);\n}\n.mobile :host.vertical .guide {\n    transform: scale(2, 1);\n}\n:host.horizontal .guide:before {\n    height: 20px;\n}\n:host.vertical .guide:before {\n    width: 20px;\n}\n.adder {\n    display: none;\n}\n.adder.dragging {\n    display: block;\n}\n'),Dt=wt(["className","rulerStyle","snapThreshold","snaps","displayDragPos","cspNonce","dragPosFormat","defaultGuides","showGuides","scrollOptions","guideStyle","guidesOffset","digit","defaultGuidesPos","dragGuideStyle","displayGuidePos","guidePosFormat","guidePosStyle","lockGuides","guidesZoom"],Se,!0),Pt=(Ct="div",It=We(Ot),Et=It.className,(_t=function(e,t){var n=e.className,r=void 0===n?"":n,i=(e.cspNonce,Ye(e,["className","cspNonce"])),a=_e();return function(e,t,n){Ie((function(){null==e||e(t())}),n,!0)}(t,(function(){return a.current}),[]),Ie((function(){var t=It.inject(a.current,{nonce:e.cspNonce});return function(){t.destroy()}}),[]),me(Ct,qe({ref:a,"data-styled-id":Et,className:"".concat(r," ").concat(Et)},i))})._fr=!0,_t),Lt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={guides:[]},n.scrollPos=0,n.managerRef=le(),n.guideElements=[],n._isFirstMove=!1,n._zoom=1,n._guidesZoom=1,n._observer=null,n.onDragStart=function(e){var t=e.datas,r=e.inputEvent;n._isFirstMove=!0,n.movePos(e),
/**
       * When the drag starts, the dragStart event is called.
       * @memberof Guides
       * @event dragStart
       * @param {OnDragStart} - Parameters for the dragStart event
       */
n.props.onDragStart(bt(bt({},e),{dragElement:t.target})),n.gesto.isFlag()&&(r.stopPropagation(),r.preventDefault(),n._startDragScroll(e))},n._onDrag=function(e){
/**
* Add the specified class value. If these classe already exist in the element's class attribute they are ignored.
* @memberof DOM
* @param element - target
* @param className - the class name to add
* @example
import {addClass} from "@daybrush/utils";

addClass(element, "start");
*/
var t,r;
/**
* Removes the specified class value.
* @memberof DOM
* @param element - target
* @param className - the class name to remove
* @example
import {removeClass} from "@daybrush/utils";

removeClass(element, "start");
*/n._isFirstMove&&(n._isFirstMove=!1,t=e.datas.target,r=Mt,t.classList?t.classList.add(r):t.className+=" "+r);var i=n.movePos(e);
/**
       * When dragging, the drag event is called.
       * @memberof Guides
       * @event drag
       * @param {OnDrag} - Parameters for the drag event
       */if(n.props.onDrag(bt(bt({},e),{dragElement:e.datas.target})),n.gesto.isFlag())return n._dragScroll(e),i;n._endDragScroll(e)},n.onDragEnd=function(e){var t=e.datas,r=e.isDouble,i=e.distX,a=e.distY,o=n.movePos(e),s=n.state.guides,c=n.props,l=c.onChangeGuides,u=c.displayDragPos,h=c.digit,f=c.lockGuides,d=c.guidesOffset,p=n._guidesZoom,g=parseFloat((o/p).toFixed(h||0)),m=n.scrollPos-(d||0);if(u&&(n.displayElement.style.cssText+="display: none;"),function(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}
/**
* Gets the CSS properties from the element.
* @memberof DOM
* @param elements - elements
* @param properites - the CSS properties
* @return returns CSS properties and values.
* @example
import {fromCSS} from "@daybrush/utils";

console.log(fromCSS(element, ["left", "opacity", "top"])); // {"left": "10px", "opacity": 1, "top": "10px"}
*/(t.target,Mt),
/**
       * When the drag finishes, the dragEnd event is called.
       * @memberof Guides
       * @event dragEnd
       * @param {OnDragEnd} - Parameters for the dragEnd event
       */
n.props.onDragEnd(bt(bt({},e),{dragElement:t.target})),n._endDragScroll(e),t.fromRuler)n._isFirstMove&&
/**
           * When click the ruler, the click ruler is called.
           * @memberof Guides
           * @event clickRuler
           * @param {OnClickRuler} - Parameters for the clickRuler event
           */
n.props.onClickRuler(bt(bt({},e),{pos:0})),g>=m&&s.indexOf(g)<0&&n.setState({guides:wt(wt([],s,!0),[g],!1)},(function(){
/**
             * The `changeGuides` event occurs when the guideline is added / removed / changed.
             * @memberof Guides
             * @event changeGuides
             * @param {OnChangeGuides} - Parameters for the changeGuides event
             */
l({guides:n.state.guides,distX:i,distY:a,index:s.length,isAdd:!0,isRemove:!1,isChange:!1})}));else{var v=parseFloat(t.target.getAttribute("data-index")),y=!1,A=!1,b=(s=wt([],s,!0)).indexOf(g);if(r||g<m||b>-1&&b!==v){if(f&&(!0===f||f.indexOf("remove")>-1))return;s.splice(v,1),y=!0}else{if(b>-1)return;if(f&&(!0===f||f.indexOf("change")>-1))return;s[v]=g,A=!0}n.setState({guides:s},(function(){var e=n.state.guides;l({distX:i,distY:a,guides:e,isAdd:!1,index:v,isChange:A,isRemove:y})}))}},n._onCheck=function(){n.resize()},n.state.guides=t.defaultGuides||[],n.scrollPos=t.defaultGuidesPos||0,n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}At(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=e.className,n=e.type,r=e.zoom,a=e.guidesZoom,o=e.style,s=e.rulerStyle,c=e.displayDragPos,l=e.cspNonce,u=e.dragGuideStyle,h=e.guidePosStyle,f=void 0===h?{}:h,d=this.props,p=this.getTranslateName(),g={};return Se.forEach((function(e){"style"!==e&&"warpSelf"!==e&&"useResizeObserver"!==e&&(g[e]=d[e])})),this._zoom=r,this._guidesZoom=a||r,me(Pt,{ref:this.managerRef,cspNonce:l,className:"".concat(xt("manager",n)," ").concat(t),style:o},me("div",{className:xt("guide-origin"),ref:i(this,"originElement")}),me(Be,bt({ref:i(this,"ruler"),style:s},g)),me("div",{className:St,ref:i(this,"guidesElement"),style:{transform:"".concat(p,"(").concat(-this.scrollPos*this._guidesZoom,"px)")}},c&&me("div",{className:Tt,ref:i(this,"displayElement"),style:f||{}}),me("div",{className:kt,ref:i(this,"adderElement"),style:u}),this.renderGuides()))},
/**
   * Draw ruler
   */
n.drawRuler=function(e){this.ruler.draw(e)},n.renderGuides=function(){var e=this,t=this.props,n=t,r=n.type,i=n.showGuides,o=n.guideStyle,s=n.displayGuidePos,c=n.guidePosStyle,l=void 0===c?{}:c,u=n.guidesOffset,h=this._guidesZoom,f=this.getTranslateName(),d=this.state.guides,p=t.guidePosFormat||t.dragPosFormat||function(e){return e};if(this.guideElements=[],i)return d.map((function(t,n){var i=t+(u||0);return me("div",{className:xt("guide",r),ref:a(e,"guideElements",n),key:n,"data-index":n,"data-pos":t,style:bt(bt({},o),{transform:"".concat(f,"(").concat(i*h,"px) translateZ(0px)")})},s&&me("div",{className:xt("guide-pos"),style:l||{}},p(t)))}))},n.componentDidMount=function(){var e=this;this.gesto=new Ue(this.managerRef.current,{container:document.body}).on("dragStart",(function(t){var n=e.props,r=n.type,i=n.lockGuides,a=e._guidesZoom;if(!0!==i){var o=t.inputEvent.target,s=t.datas,c=e.ruler.canvasElement,l=e.guidesElement,u="horizontal"===r,h=e.originElement.getBoundingClientRect(),f=function(e,t){void 0===t&&(t=document.body);for(var n=e,r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];n&&(r=ot(ut(getComputedStyle(n).transform),r),n!==t);)n=n.parentElement;return(r=Xe(r,4))[12]=0,r[13]=0,r[14]=0,r}(e.managerRef.current),d=ht(f,[t.clientX-h.left,t.clientY-h.top]);d[0]-=l.offsetLeft,d[1]-=l.offsetTop,d[u?1:0]+=e.scrollPos*a,s.offsetPos=d,s.matrix=f;var p,g,m=i&&i.indexOf("add")>-1,v=i&&i.indexOf("remove")>-1,y=i&&i.indexOf("change")>-1;if(o===c){if(m)return void t.stop();s.fromRuler=!0,s.target=e.adderElement}else{if(g=Bt,!((p=o).classList?p.classList.contains(g):p.className.match(new RegExp("(\\s|^)"+g+"(\\s|$)"))))return t.stop(),!1;if(v&&y)return void t.stop();s.target=o}e.onDragStart(t)}else t.stop()})).on("drag",this._onDrag).on("dragEnd",this.onDragEnd),this.props.useResizeObserver?(this._observer=new ResizeObserver(this._onCheck),this._observer.observe(this.guidesElement,{box:"border-box"}),this._observer.observe(this.getRulerElement(),{box:"border-box"})):this._onCheck()},n.componentWillUnmount=function(){var e;this.gesto.unset(),null===(e=this._observer)||void 0===e||e.disconnect()},n.componentDidUpdate=function(e){var t=this.props.defaultGuides;e.defaultGuides!==t&&
// to dynamically update guides from code rather than dragging guidelines
this.setState({guides:t||[]})},
/**
   * Load the current guidelines.
   * @memberof Guides
   * @instance
   */
n.loadGuides=function(e){this.setState({guides:e})},
/**
   * Get current guidelines.
   * @memberof Guides
   * @instance
   */
n.getGuides=function(){return this.state.guides},
/**
   * Scroll the positions of the guidelines opposite the ruler.
   * @memberof Guides
   * @instance
   */
n.scrollGuides=function(e,t){void 0===t&&(t=this._guidesZoom),this._setZoom({guidesZoom:t});var n=this.getTranslateName(),r=this.guidesElement;this.scrollPos=e,r.style.transform="".concat(n,"(").concat(-e*t,"px)");var i=this.state.guides,a=this.props.guidesOffset||0;this.guideElements.forEach((function(r,o){if(r){var s=i[o]+(a||0);r.style.transform="".concat(n,"(").concat(s*t,"px) translateZ(0px)"),r.style.display=-e+s<0?"none":"block"}}))},
/**
   * Set to the next zoom.
   * @memberof Guides
   * @since 0.22.0
   * @param nextZoom - next zoom
   */
n.zoomTo=function(e,t){void 0===t&&(t=e),this.scroll(this.getRulerScrollPos(),e),this.scrollGuides(this.getGuideScrollPos(),t)},
/**
   * Get Guides DOM Element
   * @memberof Guides
   * @instance
   */
n.getElement=function(){return this.managerRef.current},
/**
   * Get Ruler DOM Element
   * @memberof Guides
   * @instance
   */
n.getRulerElement=function(){return this.ruler.canvasElement},
/**
   * Scroll position of guides (horizontal: y, vertical: x)
   */
n.getGuideScrollPos=function(){return this.scrollPos},
/**
   * Scroll position of the ruler (horizontal: x, vertical: y)
   */
n.getRulerScrollPos=function(){return this.ruler.getScrollPos()},
/**
   * Scroll the position of the ruler.
   * @memberof Guides
   * @instance
   */
n.scroll=function(e,t){void 0===t&&(t=this._zoom),this._setZoom({zoom:t}),this.ruler.scroll(e,t)},
/**
   * Recalculate the size of the ruler.
   * @memberof Guides
   * @instance
   */
n.resize=function(e){void 0===e&&(e=this._zoom),this._setZoom({zoom:e}),this.ruler.resize(e)},n.movePos=function(e){var t=e.datas,n=e.distX,r=e.distY,i=this.props,a=i.type,o=i.snaps,s=i.snapThreshold,c=i.displayDragPos,l=i.digit,u=i.guidesOffset||0,h=this._guidesZoom,f=i.dragPosFormat||function(e){return e},d="horizontal"===a,p=ht(t.matrix,[n,r]),g=t.offsetPos,m=p[0]+g[0],v=p[1]+g[1],y=u*h,A=Math.round(d?v:m)-u,b=parseFloat((A/h).toFixed(l||0)),w=o.slice().sort((function(e,t){return Math.abs(b-e)-Math.abs(b-t)}));if(w.length&&Math.abs(w[0]*h-A)<s&&(A=(b=w[0])*h),!t.fromRuler||!this._isFirstMove){if(c){var x="horizontal"===a?[m,A+y]:[A+y,v];this.displayElement.style.cssText+="display: block;transform: translate(-50%, -50%) "+"translate(".concat(x.map((function(e){return"".concat(e,"px")})).join(", "),")"),this.displayElement.innerHTML="".concat(f(b))}var C=t.target;C.setAttribute("data-pos",b),C.style.transform="".concat(this.getTranslateName(),"(").concat(A+u*h,"px)")}return A},n.getTranslateName=function(){return"horizontal"===this.props.type?"translateY":"translateX"},n._startDragScroll=function(e){var t=this,n=this.props.scrollOptions;if(n){var r=e.datas,i=new yt;r.dragScroll=i,i.on("scroll",(function(e){var n,r,i=e.container,a=e.direction;
/**
       * If scroll can be triggered through drag, the `requestScroll` event is fired.
       * @memberof Guides
       * @event requestScroll
       * @param {OnRequestScroll} - Parameters for the `requestScroll` event
       */
null===(r=(n=t.props).onRequestScroll)||void 0===r||r.call(n,{container:i,direction:a})})).on("move",(function(e){var n=e.offsetX,r=e.offsetY,i=e.inputEvent;t.gesto.scrollBy(n,r,i.inputEvent,!0)})),i.dragStart(e,{container:n.container})}},n._dragScroll=function(e){var t=this.props.scrollOptions;t&&e.datas.dragScroll.drag(e,t)},n._endDragScroll=function(e){var t;null===(t=e.datas.dragScroll)||void 0===t||t.dragEnd(),e.datas.dragScroll=null},n._setZoom=function(e){var t=e.zoom,n=e.guidesZoom;this.props.zoom;!!this.props.guidesZoom?n&&(this._guidesZoom=n):(n&&(this._zoom=n,this._guidesZoom=n),t&&(this._guidesZoom=t)),t&&(this._zoom=t)},t.defaultProps={className:"",type:"horizontal",zoom:1,guidesZoom:0,style:{},snapThreshold:5,snaps:[],digit:0,onClickRuler:function(){},onChangeGuides:function(){},onRequestScroll:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},displayDragPos:!1,dragPosFormat:function(e){return e},defaultGuides:[],lockGuides:!1,showGuides:!0,guideStyle:{},dragGuideStyle:{},guidePosStyle:{},defaultGuidesPos:0},t}(ce),Qt=function(e,t){return Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Qt(e,t)};function Rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Qt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jt=function(){return jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jt.apply(this,arguments)};var Nt=Dt,Ft=["getGuides","loadGuides","scroll","scrollGuides","resize","getElement","getRulerElement","forceUpdate","getRulerScrollPos","getGuideScrollPos","zoomTo","drawRuler"],zt=["changeGuides","requestScroll","dragStart","drag","dragEnd","clickRuler"],Ht=

function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.state=n.props,n}return Rt(t,e),t.prototype.render=function(){return me(Lt,jt({ref:i(this,"guides")},this.state))},t}(se),Ut=function(){return Ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ut.apply(this,arguments)};
/**
 * Implement EventEmitter on object or component.
 */
var Gt=

function(){function e(){this._events={}}
/**
   * Add a listener to the registered event.
   * @param - Name of the event to be added
   * @param - listener function of the event to be added
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Add listener in "a" event
   * emitter.on("a", () => {
   * });
   * // Add listeners
   * emitter.on({
   *  a: () => {},
   *  b: () => {},
   * });
   */var t=e.prototype;return t.on=function(e,t){if(f(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},
/**
   * Remove listeners registered in the event target.
   * @param - Name of the event to be removed
   * @param - listener function of the event to be removed
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Remove all listeners.
   * emitter.off();
   *
   * // Remove all listeners in "A" event.
   * emitter.off("a");
   *
   *
   * // Remove "listener" listener in "a" event.
   * emitter.off("a", listener);
   */
t.off=function(e,t){if(e)if(f(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var i=I(r,(function(e){return e.listener===t}));i>-1&&r.splice(i,1)}}else this._events[e]=[];else this._events={};return this},
/**
   * Add a disposable listener and Use promise to the registered event.
   * @param - Name of the event to be added
   * @param - disposable listener function of the event to be added
   * @example
   * import EventEmitter from "@scena/event-emitter";
   * cosnt emitter = new EventEmitter();
   *
   * // Add a disposable listener in "a" event
   * emitter.once("a", () => {
   * });
   *
   * // Use Promise
   * emitter.once("a").then(e => {
   * });
   */
t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},
/**
   * Fires an event to call listeners.
   * @param - Event name
   * @param - Event parameter
   * @return If false, stop the event.
   * @example
   *
   * import EventEmitter from "@scena/event-emitter";
   *
   *
   * const emitter = new EventEmitter();
   *
   * emitter.on("a", e => {
   * });
   *
   *
   * emitter.emit("a", {
   *   a: 1,
   * });
   */
t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!i},
/**
   * Fires an event to call listeners.
   * @param - Event name
   * @param - Event parameter
   * @return If false, stop the event.
   * @example
   *
   * import EventEmitter from "@scena/event-emitter";
   *
   *
   * const emitter = new EventEmitter();
   *
   * emitter.on("a", e => {
   * });
   *
   *
   * emitter.emit("a", {
   *   a: 1,
   * });
   */
/**
  * Fires an event to call listeners.
  * @param - Event name
  * @param - Event parameter
  * @return If false, stop the event.
  * @example
  *
  * import EventEmitter from "@scena/event-emitter";
  *
  *
  * const emitter = new EventEmitter();
  *
  * emitter.on("a", e => {
  * });
  *
  * // emit
  * emitter.trigger("a", {
  *   a: 1,
  * });
  */
t.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},t._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(Ut({listener:t},n))},e}(),Vt=

function(e){
/**
   * @sort 1
   * @param - guides' container
   * @param {$ts:Partial<Guides.GuidesOptions>} - guides' options
   */
function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;r.containerProvider=null,r.selfElement=null,r._warp=!1;var a,o={};return zt.forEach((function(e){var t;o[(t="on ".concat(e),t.replace(/[\s-_]+([^\s-_])/g,(function(e,t){return t.toUpperCase()})))]=function(t){return r.trigger(e,t)}})),n.warpSelf?(delete n.warpSelf,r._warp=!0,a=t):(a=document.createElement("div"),t.appendChild(a)),r.containerProvider=xe(me(Ht,jt({ref:i(r,"innerGuides")},o,n)),a),r}
/**
   * @param state
   * @param callback
   */Rt(t,e);var n=t.prototype;return n.setState=function(e,t){this.innerGuides.setState(e,t)},
/**
   * @param callback
   */
n.forceUpdate=function(e){this.innerGuides.forceUpdate(e)},
/**
   * destroy guides
   */
n.destroy=function(){var e,t=this.selfElement;xe(null,t,this.containerProvider),this._warp||null===(e=null==t?void 0:t.parentElement)||void 0===e||e.removeChild(t),this.selfElement=null,this.innerGuides=null},n.getInnerGuides=function(){return this.innerGuides.guides},t=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}([o(Ft,(function(e,t){e[t]||(e[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.getInnerGuides();if(r&&r[t])return r[t].apply(r,e)})})),o(Nt,(function(e,t){Object.defineProperty(e,t,{get:function(){return this.getInnerGuides().props[t]},set:function(e){var n;this.innerGuides.setState(((n={})[t]=e,n))},enumerable:!0,configurable:!0})}))
/**
   * @sort 1
   * @extends EventEmitter
   */],t),t}(Gt),Wt=

function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rt(t,e),t}(Vt);t.a=Wt},
/***/b639:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
/* eslint-disable no-proto */
var r=n("1fb5"),i=n("9152"),a=n("2335");function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(
// Return an augmented `Uint8Array` instance, for best performance
e=new Uint8Array(t)).__proto__=c.prototype:(
// Fallback: Return an object instance of the Buffer class
null===e&&(e=new c(t)),e.length=t),e}
/**
 * The Buffer constructor returns instances of `Uint8Array` that have their
 * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
 * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
 * and the `Uint8Array` methods. Square bracket notation works as expected -- it
 * returns a single octet.
 *
 * The `Uint8Array` prototype remains unmodified.
 */function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);
// Common case.
if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){// this throws if `array` is not a valid ArrayBuffer
if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(
// Return an augmented `Uint8Array` instance, for best performance
e=t).__proto__=c.prototype:
// Fallback: Return an object instance of the Buffer class
e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n);e=s(e,r);var i=e.write(t,n);i!==r&&(
// Writing a hex string, for example, that contains invalid characters will
// cause everything after the first invalid character to be ignored. (e.g.
// 'abxxcd' will be treated as 'ab')
e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))return f(e,t.data)}var r;
/* WEBPACK VAR INJECTION */throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}
/**
 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
 * if value is a number.
 * Buffer.from(str[, encoding])
 * Buffer.from(array)
 * Buffer.from(buffer)
 * Buffer.from(arrayBuffer[, byteOffset[, length]])
 **/function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=s(e,t<0?0:0|d(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}
/**
 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
 * */function f(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){
// Note: cannot use `length < kMaxLength()` here because that fails when
// length is NaN (which is otherwise coerced to zero.)
if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;
// Use a for loop to avoid recursion
for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;// assume utf8
t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
// property of a typed array.
// This behaves neither like String nor Uint8Array in that we set start/end
// to their upper/lower bounds if the value passed is out of range.
// undefined is handled specially as per ECMA-262 6th Edition,
// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
// Return early if start > this.length. Done here to prevent potential uint32
// coercion fail below.
if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";
// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}
// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
// Buffer instances.
function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}
// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
// Arguments:
// - buffer - a Buffer to search
// - val - a string, Buffer, or number
// - byteOffset - an index into `buffer`; will be clamped to an int32
// - encoding - an optional encoding, relevant is val is a string
// - dir - true for indexOf, false for lastIndexOf
function v(e,t,n,r,i){
// Empty buffer means no match
if(0===e.length)return-1;
// Normalize byteOffset
if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,// Coerce to Number.
isNaN(n)&&(
// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
n=i?0:e.length-1),
// Normalize byteOffset: negative offsets start from the end of the buffer
n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}
// Normalize val
// Finally, search either indexOf (if dir is true) or lastIndexOf
if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))
// Special case: looking for empty string/buffer always fails
return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)// Search for a byte value [0-255]
return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,f=0;f<c;f++)if(l(e,a+f)!==l(t,f)){h=!1;break}if(h)return a}return-1}function A(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;
// must be an even number of digits
var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function b(e,t,n,r){return U(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)
// Node's code seems to be doing this and not & 0x7F..
t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return U(H(t),e,n,r)}function _(e,t,n,r){return U(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(
// we did not generate a valid codePoint so insert a
// replacement char (U+FFFD) and advance only 1 byte
u=65533,h=1):u>65535&&(
// encode to utf16 (surrogate pair dance)
u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);// avoid extra slice()
// Decode in chunks to avoid "call stack size exceeded".
var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(// eslint-disable-line eqeqeq
e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50
/**
 * If `Buffer.TYPED_ARRAY_SUPPORT`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Use Object implementation (most compatible, even IE6)
 *
 * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
 * Opera 11.6+, iOS 4.2+.
 *
 * Due to various browser bugs, sometimes the Object implementation will be used even
 * when the browser supports typed arrays.
 *
 * Note:
 *
 *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
 *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
 *
 *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
 *
 *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
 *     incorrect length in some situations.

 * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
 * get the Object implementation, which is slower but behaves correctly.
 */,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&// typed array instances can be augmented
"function"==typeof e.subarray&&// chrome 9-10 lack `subarray`
0===e.subarray(1,1).byteLength;// ie10 has broken `subarray`
}catch(e){return!1}}()
/*
 * Export kMaxLength after typed array support is determined.
 */,t.kMaxLength=o(),c.poolSize=8192,// not used by this implementation
// TODO: Legacy, not needed anymore. Remove in next major version.
c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&
// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),
/**
 * Creates a new filled Buffer instance.
 * alloc(size[, fill[, encoding]])
 **/
c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)}
/**
 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
 */,c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),h=0;h<s;++h)if(l[h]!==u[h]){a=l[h],o=u[h];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){
// Buffer#write(string)
if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":
// Warning: maxLength not taken into account in base64Write
return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=F(e[a]);return i}function T(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}
/*
 * Need to make sure that buffer isn't trying to write out of bounds.
 */
function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Q(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,a){return a||Q(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,a){return a||Q(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)}
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
,c.prototype.copy=function(e,t,n,r){
// Copy 0 bytes; we're done
if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;
// Fatal error conditions
if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");
// Are we oob?
r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)
// descending copy from end
for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)
// ascending copy from start
for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a}
// Usage:
//    buffer.fill(number[, offset[, end]])
//    buffer.fill(buffer[, offset[, end]])
//    buffer.fill(string[, offset[, end]][, encoding])
,c.prototype.fill=function(e,t,n,r){
// Handle string cases:
if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);
// Invalid ranges are not set to a default, so can range check early.
if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:z(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this}
// HELPER FUNCTIONS
// ================;
var N=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){
// is surrogate component
if((n=e.charCodeAt(o))>55295&&n<57344){
// last char was a lead
if(!i){
// no lead yet
if(n>56319){
// unexpected trail
(t-=3)>-1&&a.push(239,191,189);continue}
// valid lead
if(o+1===r){
// unpaired lead
(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}
// 2 leads in a row
if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}
// valid surrogate pair
n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);
// encode utf8
if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){
// Node converts strings with length < 2 to ''
if((
// Node strips out invalid characters like \n and \t from the string, base64-js does not
e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n("c8ba"))
/***/},
/***/b64b:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),a=n("df75");
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
r({target:"Object",stat:!0,forced:n("d039")((function(){a(1)}))},{keys:function(e){return a(i(e))}})},
/***/b680:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("5926"),o=n("408a"),s=n("1148"),c=n("d039"),l=RangeError,u=String,h=Math.floor,f=i(s),d=i("".slice),p=i(1..toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=h(i/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=h(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n};
// `Number.prototype.toFixed` method
// https://tc39.es/ecma262/#sec-number.prototype.tofixed
r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){
// V8 ~ Android 4.3-
p({})}))},{toFixed:function(e){var t,n,r,i,s=o(this),c=a(e),h=[0,0,0,0,0,0],p="",A="0";
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
if(c<0||c>20)throw new l("Incorrect fraction digits");
// eslint-disable-next-line no-self-compare -- NaN check
if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(h,0,n),r=c;r>=7;)m(h,1e7,0),r-=7;for(m(h,g(10,r,1),0),r=t-1;r>=23;)v(h,1<<23),r-=23;v(h,1<<r),m(h,1,1),v(h,2),A=y(h)}else m(h,0,n),m(h,1<<-t,0),A=y(h)+f("0",c);return A=c>0?p+((i=A.length)<=c?"0."+f("0",c-i)+A:d(A,0,i-c)+"."+d(A,i-c)):p+A}})},
/***/b682:
/***/function(e,t,n){"use strict";
/* harmony import */var r,i,a,o,s,c,l,u=n("6d8b"),h=n("4319"),f=n("80f0"),d=n("2b17"),p=n("2f45"),g=n("cd70"),m=n("07fd"),v=n("e0d3"),y=n("861c"),A=n("ec6f"),b=n("d0ce"),w=n("80b9"),x=u.isObject,C=u.map,_="undefined"==typeof Int32Array?Array:Int32Array,I=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E=["_approximateExtent"],k=/** @class */function(){
/**
   * @param dimensionsInput.dimensions
   *        For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].
   *        Dimensions should be concrete names like x, y, z, lng, lat, angle, radius
   */
function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],
// Models of data option is stored sparse for optimizing memory cost
// Never used yet (not used yet).
// private _optionModels: Model[] = [];
// Global visual properties after visual coding
this._visual={},
// Global layout properties.
this._layout={},
// Item visual properties after visual coding
this._itemVisuals=[],
// Item layout properties after layout
this._itemLayouts=[],
// Graphic elements
this._graphicEls=[],
// key: dim, value: extent
this._approximateExtent={},this._calculationInfo={},
// Having detected that there is data item is non primitive type
// (in type `OptionDataItemObject`).
// Like `data: [ { value: xx, itemStyle: {...} }, ...]`
// At present it only happen in `SOURCE_FORMAT_ORIGINAL`.
this.hasItemOption=!1,
// Methods that create a new list based on this list should be listed here.
// Notice that those method should `RETURN` the new list.
this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],
// Methods that change indices of this list should be listed here.
this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;Object(w.d)(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){
// Use the original dimensions[i], where other flag props may exists.
var h=n[l],f=u.isString(h)?new g.a({name:h}):h instanceof g.a?h:new g.a(h),d=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=d,f.coordDimIndex=0);var p=f.otherDims=f.otherDims||{};a.push(d),i[d]=f,null!=c[d]&&(s=!0),f.createInvertedIndices&&(o[d]=[]),0===p.itemName&&(this._nameDimIdx=l),0===p.itemId&&(this._idDimIdx=l),r&&(f.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=u.createHashMap();u.each(a,(function(e){m.set(i[e].storeDimIndex,e)}))}}
/**
   *
   * Get concrete dimension name by dimension name or dimension index.
   * If input a dimension name, do not validate whether the dimension name exits.
   *
   * @caution
   * @param dim Must make sure the dimension is `SeriesDimensionLoose`.
   * Because only those dimensions will have auto-generated dimension names if not
   * have a user-specified name, and other dimensions will get a return of null/undefined.
   *
   * @notice Because of this reason, should better use `getDimensionIndex` instead, for examples:
   * ```js
   * const val = data.getStore().get(data.getDimensionIndex(dim), dataIdx);
   * ```
   *
   * @return Concrete dim name.
   */return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];
// Retrieve from series dimension definition because it probably contains
// generated dimension name (like 'x', 'y').
var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},
/**
   * Get dimension index in data store. Return -1 if not found.
   * Can be used to index value from getRawValue.
   */
e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},
/**
   * The meanings of the input parameter `dim`:
   *
   * + If dim is a number (e.g., `1`), it means the index of the dimension.
   *   For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.
   * + If dim is a number-like string (e.g., `"1"`):
   *     + If there is the same concrete dim name defined in `series.dimensions` or `dataset.dimensions`,
   *        it means that concrete name.
   *     + If not, it will be converted to a number, which means the index of the dimension.
   *        (why? because of the backward compatibility. We have been tolerating number-like string in
   *        dimension setting, although now it seems that it is not a good idea.)
   *     For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`,
   *     if no dimension name is defined as `"1"`.
   * + If dim is a not-number-like string, it means the concrete dim name.
   *   For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`,
   *   or customized in `dimensions` property of option like `"age"`.
   *
   * @return recognized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).
   */
e.prototype._recognizeDimIndex=function(e){if(u.isNumber(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},
/**
   * Get type and calculation info of particular dimension
   * @param dim
   *        Dimension can be concrete names like x, y, z, lng, lat, angle, radius
   *        Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
   */
e.prototype.getDimensionInfo=function(e){
// Do not clone, because there may be categories in dimInfo.
return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},
/**
   * concrete dimension name list on coord.
   */
e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},
/**
   * Initialize from data
   * @param data source or data or data store.
   * @param nameList The name of a datum is used on data diff and
   *        default label/tooltip.
   *        A name can be specified in encode.itemName,
   *        or dataItem.name (only for series option data),
   *        or provided in nameList from outside.
   */
e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof b.b&&(r=e),!r){var a=this.dimensions,o=Object(A.e)(e)||u.isArrayLike(e)?new d.a(e,a.length):e;r=new b.b;var s=C(a,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(o,s,n)}this._store=r,
// Reset
this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),
// Cache summary info for fast visit. See "dimensionHelper".
// Needs to be initialized after store is prepared.
this._dimSummary=Object(p.b)(this,this._schema),this.userOutput=this._dimSummary.userOutput},
/**
   * Caution: Can be only called on raw data (before `this._indices` created).
   */
e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},
/**
   * Caution: Can be only called on raw data (before `this._indices` created).
   * This method does not modify `rawData` (`dataProvider`), but only
   * add values to store.
   *
   * The final count will be increased by `Math.max(values.length, names.length)`.
   *
   * @param values That is the SourceType: 'arrayRows', like
   *        [
   *            [12, 33, 44],
   *            [NaN, 43, 1],
   *            ['-', 'asdf', 0]
   *        ]
   *        Each item is exactly corresponding to a dimension.
   */
e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&l(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==m.g&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList;
// Each data item is value
// [1, 2]
// 2
// Bar chart, line chart which uses category axis
// only gives the 'y' value. 'x' value is the indices of category
// Use a tempValue to normalize the value to be a (x, y) value
// If dataItem is {name: ...} or {id: ...}, it has highest priority.
// This kind of ids and names are always stored `_nameList` and `_idList`.
if(n.getSource().sourceFormat===m.f&&!n.pure)for(var o=[],s=e;s<t;s++){
// NOTICE: Try not to write things into dataItem
var c=n.getItem(s,o);if(!this.hasItemOption&&Object(v.m)(c)&&(this.hasItemOption=!0),c){var u=c.name;null==i[s]&&null!=u&&(i[s]=Object(v.e)(u,null));var h=c.id;null==a[s]&&null!=h&&(a[s]=Object(v.e)(h,null))}}if(this._shouldMakeIdFromName())for(s=e;s<t;s++)l(this,s);r(this)}},
/**
   * PENDING: In fact currently this function is only used to short-circuit
   * the calling of `scale.unionExtentFromData` when data have been filtered by modules
   * like "dataZoom". `scale.unionExtentFromData` is used to calculate data extent for series on
   * an axis, but if a "axis related data filter module" is used, the extent of the axis have
   * been fixed and no need to calling `scale.unionExtentFromData` actually.
   * But if we add "custom data filter" in future, which is not "axis related", this method may
   * be still needed.
   *
   * Optimize for the scenario that data is filtered by a given extent.
   * Consider that if data amount is more than hundreds of thousand,
   * extent calculation will cost more than 10ms and the cache will
   * be erased because of the filtering.
   */
e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},
/**
   * Calculate extent on a filtered data might be time consuming.
   * Approximate extent is only used for: calculate extent of filtered data outside.
   */
e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){x(e)?u.extend(this._calculationInfo,e):this._calculationInfo[e]=t},
/**
   * @return Never be null/undefined. `number` will be converted to string. Because:
   * In most cases, name is used in display, where returning a string is more convenient.
   * In other cases, name is used in query (see `indexOfName`), where we can keep the
   * rule that name `2` equals to name `'2'`.
   */
e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=a(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},
/**
   * @return Never null/undefined. `number` will be converted to string. Because:
   * In all cases having encountered at present, id is used in making diff comparison, which
   * are usually based on hash map. We can keep the rule that the internal id are always string
   * (treat `2` is the same as `'2'`) to make the related logic simple.
   */
e.prototype.getId=function(e){return i(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},
/**
   * Get value. Return NaN if idx is out of range.
   *
   * @notice Should better to use `data.getStore().get(dimIndex, dataIdx)` instead.
   */
e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},
/**
   * @notice Should better to use `data.getStore().getByRawIndex(dimIndex, dataIdx)` instead.
   */
e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return u.isArray(e)?r.getValues(C(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},
/**
   * If value is NaN. Including '-'
   * Only check the coord dimensions.
   */
e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)
// Ordinal type originally can be string or number.
// But when an ordinal type is used on coord, it can
// not be string but only number. So we can also use isNaN.
if(isNaN(this._store.get(t[n],e)))return!1;return!0},
/**
   * Retrieve the index with given name
   */
e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},
/**
   * Only support the dimension which inverted index created.
   * Do not support other cases until required.
   * @param dim concrete dim
   * @param value ordinal index
   * @return rawIndex
   */
e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n&&n[t];return null==r||isNaN(r)?-1:r},
/**
   * Retrieve the index of nearest value
   * @param dim
   * @param value
   * @param [maxDistance=Infinity]
   * @return If and only if multiple indices has
   *         the same value, they are put to the result.
   */
e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){u.isFunction(e)&&(n=t,t=e,e=[]);
// ctxCompat just for compat echarts3
var r=n||this,i=C(o(e),this._getStoreDimIndex,this);this._store.each(i,r?u.bind(t,r):t)},e.prototype.filterSelf=function(e,t,n){u.isFunction(e)&&(n=t,t=e,e=[]);
// ctxCompat just for compat echarts3
var r=n||this,i=C(o(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?u.bind(t,r):t),this},
/**
   * Select data in range. (For optimization of filter)
   * (Manually inline code, support 5 million data filtering in data zoom.)
   */
e.prototype.selectRange=function(e){var t=this,n={},r=u.keys(e),i=[];return u.each(r,(function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)})),this._store=this._store.selectRange(n),this},
/* eslint-enable max-len */
e.prototype.mapArray=function(e,t,n){u.isFunction(e)&&(n=t,t=e,e=[]),
// ctxCompat just for compat echarts3
n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){
// ctxCompat just for compat echarts3
var i=n||r||this,a=C(o(e),this._getStoreDimIndex,this),s=c(this);return s._store=this._store.map(a,i?u.bind(t,i):t),s},e.prototype.modify=function(e,t,n,r){var i=n||r||this;
// ctxCompat just for compat echarts3
var a=C(o(e),this._getStoreDimIndex,this);
// If do shallow clone here, if there are too many stacked series,
// it still cost lots of memory, because `_store.dimensions` are not shared.
// We should consider there probably be shallow clone happen in each series
// in consequent filter/map.
this._store.modify(a,i?u.bind(t,i):t)},
/**
   * Large data down sampling on given dimension
   * @param sampleIndex Sample index for name and id
   */
e.prototype.downSample=function(e,t,n,r){var i=c(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},
/**
   * Large data down sampling using min-max
   * @param {string} valueDimension
   * @param {number} rate
   */
e.prototype.minmaxDownSample=function(e,t){var n=c(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},
/**
   * Large data down sampling using largest-triangle-three-buckets
   * @param {string} valueDimension
   * @param {number} targetCount
   */
e.prototype.lttbDownSample=function(e,t){var n=c(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},
/**
   * Get model of one data item.
   */
// TODO: Type of data item
e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new h.a(n,t,t&&t.ecModel)},
/**
   * Create a data differ
   */
e.prototype.diff=function(e){var t=this;return new f.a(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return i(e,t)}),(function(e){return i(t,e)}))},
/**
   * Get visual property.
   */
e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},x(e)?u.extend(this._visual,e):this._visual[e]=t},
/**
   * Get visual property of single data item
   */
// eslint-disable-next-line
e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},
/**
   * If exists visual property of single data item
   */
e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},
/**
   * Make sure itemVisual property is unique
   */
// TODO: use key to save visual to reduce memory.
e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),
// TODO Performance?
u.isArray(i)?i=i.slice():x(i)&&(i=u.extend({},i)),r[t]=i),i},
// eslint-disable-next-line
e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,x(t)?u.extend(r,t):r[t]=n},
/**
   * Clear itemVisuals and list visual.
   */
e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){x(e)?u.extend(this._layout,e):this._layout[e]=t},
/**
   * Get layout property.
   */
e.prototype.getLayout=function(e){return this._layout[e]},
/**
   * Get layout of single data item
   */
e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},
/**
   * Set layout of single data item
   */
e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?u.extend(this._itemLayouts[e]||{},t):t},
/**
   * Clear all layout of single data item
   */
e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},
/**
   * Set graphic element relative to data. It can be set as null
   */
e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Object(y.b)(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){u.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},
/**
   * Shallow clone a new list except visual and layout properties, and graph elements.
   * New list only change the indices.
   */
e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:C(this.dimensions,this._getDimInfo,this),this.hostModel)),s(t,this),t._store=this._store,t},
/**
   * Wrap some method to add more feature
   */
e.prototype.wrapMethod=function(e,t){var n=this[e];u.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(u.slice(arguments)))})},
// ----------------------------------------------------------
// A work around for internal method visiting private member.
// ----------------------------------------------------------
e.internalField=(r=function(e){var t=e._invertedIndicesMap;u.each(t,(function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;
// Currently, only dimensions that has ordinalMeta can create inverted indices.
if(a){n=t[r]=new _(a.categories.length);
// The default value of TypedArray is 0. To avoid miss
// mapping to 0, we should set it as INDEX_NOT_FOUND.
for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<o.count();s++)
// Only support the case that all values are distinct.
n[o.get(i.storeDimIndex,s)]=s}}))},a=function(e,t,n){return Object(v.e)(e._getCategory(t,n),null)},
/**
     * @see the comment of `List['getId']`.
     */
i=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=a(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},o=function(e){return u.isArray(e)||(e=null!=e?[e]:[]),e},
/**
     * Data in excludeDimensions is copied, otherwise transferred.
     */
c=function(t){var n=new e(t._schema?t._schema:C(t.dimensions,t._getDimInfo,t),t.hostModel);
// FIXME If needs stackedOn, value may already been stacked
return s(n,t),n},s=function(e,t){u.each(I.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,u.each(E,(function(n){e[n]=u.clone(t[n])})),e._calculationInfo=u.extend({},t._calculationInfo)},void(l=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],c=r[t];if(null==s&&null!=i&&(n[t]=s=a(e,i,t)),null==c&&null!=o&&(r[t]=c=a(e,o,t)),null==c&&null!=s){var l=e._nameRepeatCount,u=l[s]=(l[s]||0)+1;c=s,u>1&&(c+="__ec__"+u),r[t]=c}})),e}();
/* harmony import */
/* harmony default export */t.a=k},
/***/b690:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t,r,i){e.exports=function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e))return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return s(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||l(e,t)||u()}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m(e){return s(e)||g(e)||l(e)||u()}var v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";f(this,e),"string"==typeof t?(this.el=document.createElement(t),this.el.className=n):this.el=t,this.data={}}return p(e,[{key:"data",value:function(e,t){return void 0!==t?(this.data[e]=t,this):this.data[e]}},{key:"on",value:function(e,t){var n=m(e.split(".")),r=n[0],i=n.slice(1),a=r;return"mousewheel"===a&&/Firefox/i.test(window.navigator.userAgent)&&(a="DOMMouseScroll"),this.el.addEventListener(a,(function(e){t(e);for(var n=0;n<i.length;n+=1){var r=i[n];if("left"===r&&0!==e.button)return;if("right"===r&&2!==e.button)return;"stop"===r&&e.stopPropagation()}})),this}},{key:"offset",value:function(e){var t=this;if(void 0!==e)return Object.keys(e).forEach((function(n){t.css(n,"".concat(e[n],"px"))})),this;var n=this.el;return{top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth}}},{key:"scroll",value:function(e){var t=this.el;return void 0!==e&&(void 0!==e.left&&(t.scrollLeft=e.left),void 0!==e.top&&(t.scrollTop=e.top)),{left:t.scrollLeft,top:t.scrollTop}}},{key:"box",value:function(){return this.el.getBoundingClientRect()}},{key:"parent",value:function(){return new e(this.el.parentNode)}},{key:"children",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===arguments.length?this.el.childNodes:(n.forEach((function(t){return e.child(t)})),this)}},{key:"removeChild",value:function(e){this.el.removeChild(e)}},{key:"child",value:function(t){var n=t;return"string"==typeof t?n=document.createTextNode(t):t instanceof e&&(n=t.el),this.el.appendChild(n),this}},{key:"contains",value:function(e){return this.el.contains(e)}},{key:"className",value:function(e){return void 0!==e?(this.el.className=e,this):this.el.className}},{key:"addClass",value:function(e){return this.el.classList.add(e),this}},{key:"hasClass",value:function(e){return this.el.classList.contains(e)}},{key:"removeClass",value:function(e){return this.el.classList.remove(e),this}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"active";return this.toggleClass(e)}},{key:"toggleClass",value:function(e){return this.el.classList.toggle(e)}},{key:"active",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"active";return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.removeClass(e):this.addClass(e),this}},{key:"checked",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.active(e,"checked"),this}},{key:"disabled",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.removeClass("disabled"):this.addClass("disabled"),this}},{key:"attr",value:function(e,t){var n=this;if(void 0!==t)this.el.setAttribute(e,t);else{if("string"==typeof e)return this.el.getAttribute(e);Object.keys(e).forEach((function(t){n.el.setAttribute(t,e[t])}))}return this}},{key:"removeAttr",value:function(e){return this.el.removeAttribute(e),this}},{key:"html",value:function(e){return void 0!==e?(this.el.innerHTML=e,this):this.el.innerHTML}},{key:"val",value:function(e){return void 0!==e?(this.el.value=e,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){return e.el.style.removeProperty(t)})),this}},{key:"css",value:function(e,t){var n=this;return void 0===t&&"string"!=typeof e?(Object.keys(e).forEach((function(t){n.el.style[t]=e[t]})),this):void 0!==t?(this.el.style[e]=t,this):this.el.style[e]}},{key:"computedStyle",value:function(){return window.getComputedStyle(this.el,null)}},{key:"show",value:function(){return this.css("display","block"),this}},{key:"hide",value:function(){return this.css("display","none"),this}}])}(),y=function(e){return new v(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")};function A(e){return function(e){if(Array.isArray(e))return c(e)}(e)||g(e)||l(e)||function(){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 b=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function w(e){for(var t="",n=e;n>=b.length;)n/=b.length,n-=1,t+=b[parseInt(n,10)%b.length];return t+b[e%b.length]}function x(e){for(var t=0,n=0;n!==e.length;++n)t=26*t+e.charCodeAt(n)-64;return t-1}function C(e){for(var t="",n="",r=0;r<e.length;r+=1)e.charAt(r)>="0"&&e.charAt(r)<="9"?n+=e.charAt(r):t+=e.charAt(r);return[x(t),parseInt(n,10)-1]}function _(e,t){return"".concat(w(e)).concat(t+1)}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};if(0===t&&0===n)return e;var i=h(C(e),2),a=i[0],o=i[1];return r(a,o)?_(a+t,o+n):e}var E=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;f(this,e),this.sri=t,this.sci=n,this.eri=r,this.eci=i,this.w=a,this.h=o}return p(e,[{key:"set",value:function(e,t,n,r){this.sri=e,this.sci=t,this.eri=n,this.eci=r}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var e=0,t=0,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(1===r.length){var a=h(C(r[0]),2);t=a[0],e=a[1]}else 2===r.length&&(e=r[0],t=r[1]);var o=this.sri,s=this.sci,c=this.eri,l=this.eci;return o<=e&&e<=c&&s<=t&&t<=l}},{key:"each",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=this.sri,r=this.sci,i=this.eri,a=this.eci,o=n;o<=i;o+=1)if(t(o))for(var s=r;s<=a;s+=1)e(o,s)}},{key:"contains",value:function(e){return this.sri<=e.sri&&this.sci<=e.sci&&this.eri>=e.eri&&this.eci>=e.eci}},{key:"within",value:function(e){return this.sri>=e.sri&&this.sci>=e.sci&&this.eri<=e.eri&&this.eci<=e.eci}},{key:"disjoint",value:function(e){return this.sri>e.eri||this.sci>e.eci||e.sri>this.eri||e.sci>this.eci}},{key:"intersects",value:function(e){return this.sri<=e.eri&&this.sci<=e.eci&&e.sri<=this.eri&&e.sci<=this.eci}},{key:"union",value:function(t){var n=this.sri,r=this.sci,i=this.eri,a=this.eci;return new e(t.sri<n?t.sri:n,t.sci<r?t.sci:r,t.eri>i?t.eri:i,t.eci>a?t.eci:a)}},{key:"difference",value:function(t){var n=[],r=function(t,r,i,a){n.push(new e(t,r,i,a))},i=this.sri,a=this.sci,o=this.eri,s=this.eci,c=t.sri-i,l=t.sci-a,u=o-t.eri,h=s-t.eci;return c>0?(r(i,a,t.sri-1,s),u>0?(r(t.eri+1,a,o,s),l>0&&r(t.sri,a,t.eri,t.sci-1),h>0&&r(t.sri,t.eci+1,t.eri,s)):(l>0&&r(t.sri,a,o,t.sci-1),h>0&&r(t.sri,t.eci+1,o,s))):u>0&&(r(t.eri+1,a,o,s),l>0&&r(i,a,t.eri,t.sci-1),h>0&&r(i,t.eci+1,t.eri,s)),l>0?(r(i,a,o,t.sci-1),h>0?(r(i,t.eri+1,o,s),c>0&&r(i,t.sci,t.sri-1,t.eci),u>0&&r(t.sri+1,t.sci,o,t.eci)):(c>0&&r(i,t.sci,t.sri-1,s),u>0&&r(t.sri+1,t.sci,o,s))):h>0&&(r(o,t.eci+1,o,s),c>0&&r(i,a,t.sri-1,t.eci),u>0&&r(t.eri+1,a,o,t.eci)),n}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var e=this.sri,t=this.sci,n=this.eri,r=this.eci,i=_(t,e);return this.multiple()&&(i="".concat(i,":").concat(_(r,n))),i}},{key:"clone",value:function(){return new e(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(e){return this.eri===e.eri&&this.eci===e.eci&&this.sri===e.sri&&this.sci===e.sci}}],[{key:"valueOf",value:function(t){var n=t.split(":"),r=h(C(n[0]),2),i=r[0],a=r[1],o=a,s=i;if(n.length>1){var c=h(C(n[1]),2);s=c[0],o=c[1]}return new e(a,i,o,s)}}])}(),k=p((function e(){f(this,e),this.range=new E(0,0,0,0),this.ri=0,this.ci=0}),[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(e,t){this.ri=e,this.ci=t}},{key:"size",value:function(){return this.range.size()}}]),S=p((function e(){f(this,e),this.x=0,this.y=0,this.ri=0,this.ci=0})),B=p((function e(){f(this,e),this.undoItems=[],this.redoItems=[]}),[{key:"add",value:function(e){this.undoItems.push(JSON.stringify(e)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(e,t){var n=this.undoItems,r=this.redoItems;this.canUndo()&&(r.push(JSON.stringify(e)),t(JSON.parse(n.pop())))}},{key:"redo",value:function(e,t){var n=this.undoItems,r=this.redoItems;this.canRedo()&&(n.push(JSON.stringify(e)),t(JSON.parse(r.pop())))}}]),M=p((function e(){f(this,e),this.range=null,this.state="clear"}),[{key:"copy",value:function(e){return this.range=e,this.state="copy",this}},{key:"cut",value:function(e){return this.range=e,this.state="cut",this}},{key:"isCopy",value:function(){return"copy"===this.state}},{key:"isCut",value:function(){return"cut"===this.state}},{key:"isClear",value:function(){return"clear"===this.state}},{key:"clear",value:function(){this.range=null,this.state="clear"}}]),T=p((function e(t,n,r){f(this,e),this.ci=t,this.operator=n,this.value=r}),[{key:"set",value:function(e,t){this.operator=e,this.value=t}},{key:"includes",value:function(e){var t=this.operator,n=this.value;return"all"===t||"in"===t&&n.includes(e)}},{key:"vlength",value:function(){var e=this.operator,t=this.value;return"in"===e?t.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}]),O=p((function e(t,n){f(this,e),this.ci=t,this.order=n}),[{key:"asc",value:function(){return"asc"===this.order}},{key:"desc",value:function(){return"desc"===this.order}}]),D=p((function e(){f(this,e),this.ref=null,this.filters=[],this.sort=null}),[{key:"setData",value:function(e){var t=e.ref,n=e.filters,r=e.sort;null!=t&&(this.ref=t,this.filters=n.map((function(e){return new T(e.ci,e.operator,e.value)})),r&&(this.sort=new O(r.ci,r.order)))}},{key:"getData",value:function(){if(this.active()){var e=this.ref,t=this.filters,n=this.sort;return{ref:e,filters:t.map((function(e){return e.getData()})),sort:n}}return{}}},{key:"addFilter",value:function(e,t,n){var r=this.getFilter(e);null==r?this.filters.push(new T(e,t,n)):r.set(t,n)}},{key:"setSort",value:function(e,t){this.sort=t?new O(e,t):null}},{key:"includes",value:function(e,t){return!!this.active()&&this.hrange().includes(e,t)}},{key:"getSort",value:function(e){var t=this.sort;return t&&t.ci===e?t:null}},{key:"getFilter",value:function(e){for(var t=this.filters,n=0;n<t.length;n+=1)if(t[n].ci===e)return t[n];return null}},{key:"filteredRows",value:function(e){var t=new Set,n=new Set;if(this.active())for(var r=this.range(),i=r.sri,a=r.eri,o=this.filters,s=i+1;s<=a;s+=1)for(var c=0;c<o.length;c+=1){var l=o[c],u=e(s,l.ci),h=u?u.text:"";if(!l.includes(h)){t.add(s);break}n.add(s)}return{rset:t,fset:n}}},{key:"items",value:function(e,t){var n={};if(this.active())for(var r=this.range(),i=r.sri,a=r.eri,o=i+1;o<=a;o+=1){var s=t(o,e);if(null===s||/^\s*$/.test(s.text))n[""]=(n[""]||0)+1;else{var c=s.text,l=(n[c]||0)+1;n[c]=l}}return n}},{key:"range",value:function(){return E.valueOf(this.ref)}},{key:"hrange",value:function(){var e=this.range();return e.eri=e.sri,e}},{key:"clear",value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:"active",value:function(){return null!==this.ref}}]),P=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];f(this,e),this._=t}return p(e,[{key:"forEach",value:function(e){this._.forEach(e)}},{key:"deleteWithin",value:function(e){this._=this._.filter((function(t){return!t.within(e)}))}},{key:"getFirstIncludes",value:function(e,t){for(var n=0;n<this._.length;n+=1){var r=this._[n];if(r.includes(e,t))return r}return null}},{key:"filterIntersects",value:function(t){return new e(this._.filter((function(e){return e.intersects(t)})))}},{key:"intersects",value:function(e){for(var t=0;t<this._.length;t+=1)if(this._[t].intersects(e))return!0;return!1}},{key:"union",value:function(e){var t=e;return this._.forEach((function(e){e.intersects(t)&&(t=e.union(t))})),t}},{key:"add",value:function(e){this.deleteWithin(e),this._.push(e)}},{key:"shift",value:function(e,t,n,r){this._.forEach((function(i){var a=i.sri,o=i.sci,s=i.eri,c=i.eci,l=i;"row"===e?a>=t?(l.sri+=n,l.eri+=n):a<t&&t<=s&&(l.eri+=n,r(a,o,n,0)):"column"===e&&(o>=t?(l.sci+=n,l.eci+=n):o<t&&t<=c&&(l.eci+=n,r(a,o,0,n)))}))}},{key:"move",value:function(e,t,n){this._.forEach((function(r){var i=r;i.within(e)&&(i.eri+=t,i.sri+=t,i.sci+=n,i.eci+=n)}))}},{key:"setData",value:function(e){return this._=e.map((function(e){return E.valueOf(e)})),this}},{key:"getData",value:function(){return this._.map((function(e){return e.toString()}))}}])}(),L=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((function(t){Object.keys(t).forEach((function(n){var r=t[n];"string"==typeof r||"number"==typeof r||"boolean"==typeof r?e[n]=r:"function"!=typeof r&&!Array.isArray(r)&&r instanceof Object?(e[n]=e[n]||{},L(e[n],r)):e[n]=r}))})),e};function Q(e){for(var t="".concat(e),n=0,r=!1,i=0;i<t.length;i+=1)!0===r&&(n+=1),"."===t.charAt(i)&&(r=!0);return n}function R(e,t,n){if(Number.isNaN(t)||Number.isNaN(n))return t+e+n;var r=Q(t),i=Q(n),a=Number(t),o=Number(n),s=0;if("-"===e)s=a-o;else if("+"===e)s=a+o;else if("*"===e)s=a*o;else if("/"===e)return Q(s=a/o)>5?s.toFixed(2):s;return s.toFixed(Math.max(r,i))}const j={cloneDeep:function(e){return JSON.parse(JSON.stringify(e))},merge:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L.apply(void 0,[{}].concat(t))},equals:function e(t,n){var r=Object.keys(t);if(r.length!==Object.keys(n).length)return!1;for(var i=0;i<r.length;i+=1){var a=r[i],o=t[a],s=n[a];if(void 0===s)return!1;if("string"==typeof o||"number"==typeof o||"boolean"==typeof o){if(o!==s)return!1}else if(Array.isArray(o)){if(o.length!==s.length)return!1;for(var c=0;c<o.length;c+=1)if(!e(o[c],s[c]))return!1}else if("function"!=typeof o&&!Array.isArray(o)&&o instanceof Object&&!e(o,s))return!1}return!0},arrayEquals:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0},sum:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=0,r=0;return Object.keys(e).forEach((function(i){n+=t(e[i],i),r+=1})),[n,r]},rangeEach:function(e,t,n){for(var r=e;r<t;r+=1)n(r)},rangeSum:function(e,t,n){for(var r=0,i=e;i<t;i+=1)r+=n(i);return r},rangeReduceIf:function(e,t,n,r,i,a){for(var o=n,s=r,c=e;c<t&&!(o>i);c+=1)o+=s=a(c);return[c,o-s,s]},deleteProperty:function(e,t){var n=e["".concat(t)];return delete e["".concat(t)],n},numberCalc:R};var N=p((function e(t){var n=t.len,r=t.height;f(this,e),this._={},this.len=n,this.height=r}),[{key:"getHeight",value:function(e){if(this.isHide(e))return 0;var t=this.get(e);return t&&t.height?t.height:this.height}},{key:"setHeight",value:function(e,t){this.getOrNew(e).height=t}},{key:"unhide",value:function(e){for(var t=e;t>0&&(t-=1,this.isHide(t));)this.setHide(t,!1)}},{key:"isHide",value:function(e){var t=this.get(e);return t&&t.hide}},{key:"setHide",value:function(e,t){var n=this.getOrNew(e);!0===t?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(e,t){this.getOrNew(e).style=t}},{key:"sumHeight",value:function(e,t,n){var r=this;return j.rangeSum(e,t,(function(e){return n&&n.has(e)?0:r.getHeight(e)}))}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(e){return this._[e]}},{key:"getOrNew",value:function(e){return this._[e]=this._[e]||{cells:{}},this._[e]}},{key:"getCell",value:function(e,t){var n=this.get(e);return void 0!==n&&void 0!==n.cells&&void 0!==n.cells[t]?n.cells[t]:null}},{key:"getCellMerge",value:function(e,t){var n=this.getCell(e,t);return n&&n.merge?n.merge:[0,0]}},{key:"getCellOrNew",value:function(e,t){var n=this.getOrNew(e);return n.cells[t]=n.cells[t]||{},n.cells[t]}},{key:"setCell",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"all",i=this.getOrNew(e);"all"===r?i.cells[t]=n:"text"===r?(i.cells[t]=i.cells[t]||{},i.cells[t].text=n.text):"format"===r&&(i.cells[t]=i.cells[t]||{},i.cells[t].style=n.style,n.merge&&(i.cells[t].merge=n.merge))}},{key:"setCellText",value:function(e,t,n){var r=this.getCellOrNew(e,t);!1!==r.editable&&(r.text=n)}},{key:"copyPaste",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=e.sri,s=e.sci,c=e.eri,l=e.eci,u=t.sri,f=t.sci,d=t.eri,p=t.eci,g=h(e.size(),2),m=g[0],v=g[1],y=h(t.size(),2),A=y[0],b=y[1],w=!0,x=0;(d<o||p<s)&&(w=!1,x=d<o?A:b);for(var C=o;C<=c;C+=1)if(this._[C])for(var _=s;_<=l;_+=1)if(this._[C].cells&&this._[C].cells[_])for(var E=u;E<=d;E+=m)for(var k=function(){var e=E+(C-o),t=S+(_-s),h=j.cloneDeep(r._[C].cells[_]);if(i&&h&&h.text&&h.text.length>0){var g=h.text,y=S-f+(E-u)+2;if(w||(y-=x+1),"="===g[0])h.text=g.replace(/[a-zA-Z]{1,3}\d+/g,(function(e){var t=0,n=0;return o===u?t=y-1:n=y-1,/^\d+$/.test(e)?e:I(e,t,n)}));else if(m<=1&&v>1&&(u>c||d<o)||v<=1&&m>1&&(f>l||p<s)||m<=1&&v<=1){var A=/[\\.\d]+$/.exec(g);if(null!==A){var b=Number(A[0])+y-1;h.text=g.substring(0,A.index)+b}}}r.setCell(e,t,h,n),a(e,t,h)},S=f;S<=p;S+=v)k()}},{key:"cutPaste",value:function(e,t){var n=this,r={};this.each((function(i){n.eachCells(i,(function(a){var o=parseInt(i,10),s=parseInt(a,10);e.includes(i,a)&&(o=t.sri+(o-e.sri),s=t.sci+(s-e.sci)),r[o]=r[o]||{cells:{}},r[o].cells[s]=n._[i].cells[a]}))})),this._=r}},{key:"paste",value:function(e,t){var n=this;if(!(e.length<=0)){var r=t.sri,i=t.sci;e.forEach((function(e,t){var a=r+t;e.forEach((function(e,t){var r=i+t;n.setCellText(a,r,e)}))}))}}},{key:"insert",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r={};this.each((function(i,a){var o=parseInt(i,10);o>=e&&(o+=n,t.eachCells(i,(function(t,r){r.text&&"="===r.text[0]&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(t){return I(t,0,n,(function(t,n){return n>=e}))})))}))),r[o]=a})),this._=r,this.len+=n}},{key:"delete",value:function(e,t){var n=this,r=t-e+1,i={};this.each((function(a,o){var s=parseInt(a,10);s<e?i[s]=o:a>t&&(i[s-r]=o,n.eachCells(a,(function(e,n){n.text&&"="===n.text[0]&&(n.text=n.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(e){return I(e,0,-r,(function(e,n){return n>t}))})))})))})),this._=i,this.len-=r}},{key:"insertColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.each((function(r,i){var a={};t.eachCells(r,(function(t,r){var i=parseInt(t,10);i>=e&&(i+=n,r.text&&"="===r.text[0]&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(t){return I(t,n,0,(function(t){return t>=e}))})))),a[i]=r})),i.cells=a}))}},{key:"deleteColumn",value:function(e,t){var n=this,r=t-e+1;this.each((function(i,a){var o={};n.eachCells(i,(function(n,i){var a=parseInt(n,10);a<e?o[a]=i:a>t&&(o[a-r]=i,i.text&&"="===i.text[0]&&(i.text=i.text.replace(/[a-zA-Z]{1,3}\d+/g,(function(e){return I(e,-r,0,(function(e){return e>t}))}))))})),a.cells=o}))}},{key:"deleteCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";e.each((function(e,r){t.deleteCell(e,r,n)}))}},{key:"deleteCell",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=this.get(e);if(null!==r){var i=this.getCell(e,t);null!==i&&!1!==i.editable&&("all"===n?delete r.cells[t]:"text"===n?(i.text&&delete i.text,i.value&&delete i.value):"format"===n?(void 0!==i.style&&delete i.style,i.merge&&delete i.merge):"merge"===n&&i.merge&&delete i.merge)}}},{key:"maxCell",value:function(){var e=Object.keys(this._),t=e[e.length-1],n=this._[t];if(n){var r=n.cells,i=Object.keys(r),a=i[i.length-1];return[parseInt(t,10),parseInt(a,10)]}return[0,0]}},{key:"each",value:function(e){Object.entries(this._).forEach((function(t){var n=h(t,2),r=n[0],i=n[1];e(r,i)}))}},{key:"eachCells",value:function(e,t){this._[e]&&this._[e].cells&&Object.entries(this._[e].cells).forEach((function(e){var n=h(e,2),r=n[0],i=n[1];t(r,i)}))}},{key:"setData",value:function(e){e.len&&(this.len=e.len,delete e.len),this._=e}},{key:"getData",value:function(){var e=this.len;return Object.assign({len:e},this._)}}]),F=p((function e(t){var n=t.len,r=t.width,i=t.indexWidth,a=t.minWidth;f(this,e),this._={},this.len=n,this.width=r,this.indexWidth=i,this.minWidth=a}),[{key:"setData",value:function(e){e.len&&(this.len=e.len,delete e.len),this._=e}},{key:"getData",value:function(){var e=this.len;return Object.assign({len:e},this._)}},{key:"getWidth",value:function(e){if(this.isHide(e))return 0;var t=this._[e];return t&&t.width?t.width:this.width}},{key:"getOrNew",value:function(e){return this._[e]=this._[e]||{},this._[e]}},{key:"setWidth",value:function(e,t){this.getOrNew(e).width=t}},{key:"unhide",value:function(e){for(var t=e;t>0&&(t-=1,this.isHide(t));)this.setHide(t,!1)}},{key:"isHide",value:function(e){var t=this._[e];return t&&t.hide}},{key:"setHide",value:function(e,t){var n=this.getOrNew(e);!0===t?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(e,t){this.getOrNew(e).style=t}},{key:"sumWidth",value:function(e,t){var n=this;return j.rangeSum(e,t,(function(e){return n.getWidth(e)}))}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}]);function z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return H(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var U=["en"],G={en:{toolbar:{undo:"Undo",redo:"Redo",print:"Print",paintformat:"Paint format",clearformat:"Clear format",format:"Format",fontName:"Font",fontSize:"Font size",fontBold:"Font bold",fontItalic:"Font italic",underline:"Underline",strike:"Strike",color:"Text color",bgcolor:"Fill color",border:"Borders",merge:"Merge cells",align:"Horizontal align",valign:"Vertical align",textwrap:"Text wrapping",freeze:"Freeze cell",autofilter:"Filter",formula:"Functions",more:"More"},contextmenu:{copy:"Copy",cut:"Cut",paste:"Paste",pasteValue:"Paste values only",pasteFormat:"Paste format only",hide:"Hide",insertRow:"Insert row",insertColumn:"Insert column",deleteSheet:"Delete",deleteRow:"Delete row",deleteColumn:"Delete column",deleteCell:"Delete cell",deleteCellText:"Delete cell text",validation:"Data validations",cellprintable:"Enable export",cellnonprintable:"Disable export",celleditable:"Enable editing",cellnoneditable:"Disable editing"},print:{size:"Paper size",orientation:"Page orientation",orientations:["Landscape","Portrait"]},format:{normal:"Normal",text:"Plain Text",number:"Number",percent:"Percent",rmb:"RMB",usd:"USD",eur:"EUR",date:"Date",time:"Time",datetime:"Date time",duration:"Duration"},formula:{sum:"Sum",average:"Average",max:"Max",min:"Min",_if:"IF",and:"AND",or:"OR",concat:"Concat"},validation:{required:"it must be required",notMatch:"it not match its validation rule",between:"it is between {} and {}",notBetween:"it is not between {} and {}",notIn:"it is not in list",equal:"it equal to {}",notEqual:"it not equal to {}",lessThan:"it less than {}",lessThanEqual:"it less than or equal to {}",greaterThan:"it greater than {}",greaterThanEqual:"it greater than or equal to {}"},error:{pasteForMergedCell:"Unable to do this for merged cells"},calendar:{weeks:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]},button:{next:"Next",cancel:"Cancel",remove:"Remove",save:"Save",ok:"OK"},sort:{desc:"Sort Z -> A",asc:"Sort A -> Z"},filter:{empty:"empty"},dataValidation:{mode:"Mode",range:"Cell Range",criteria:"Criteria",modeType:{cell:"Cell",column:"Colun",row:"Row"},type:{list:"List",number:"Number",date:"Date",phone:"Phone",email:"Email"},operator:{be:"between",nbe:"not betwwen",lt:"less than",lte:"less than or equal to",gt:"greater than",gte:"greater than or equal to",eq:"equal to",neq:"not equal to"}}}};function V(e,t){if(t){var n,r=z(U);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t[i])break;for(var a=t[i],o=e.match(/(?:\\.|[^.])+/g),s=0;s<o.length;s+=1){var c=a[o[s]];if(!c)break;if(s===o.length-1)return c;a=c}}}catch(e){r.e(e)}finally{r.f()}}}function W(e){var t=V(e,G);return!t&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(t=V(e,window.x_spreadsheet.$messages)),t||""}function q(e){return function(){return W(e)}}function Y(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]?U=[e]:U.unshift(e),t&&(G[e]=t)}var K={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function J(e,t){var n="";if(!e){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];n=W.apply(void 0,["validation.".concat(t)].concat(i))}return[e,n]}var X=p((function e(t,n,r,i){f(this,e),this.required=n,this.value=r,this.type=t,this.operator=i,this.message=""}),[{key:"parseValue",value:function(e){var t=this.type;return"date"===t?new Date(e):"number"===t?Number(e):e}},{key:"equals",value:function(e){var t=this.type===e.type&&this.required===e.required&&this.operator===e.operator;return t&&(t=Array.isArray(this.value)?j.arrayEquals(this.value,e.value):this.value===e.value),t}},{key:"values",value:function(){return this.value.split(",")}},{key:"validate",value:function(e){var t=this.required,n=this.operator,r=this.value,i=this.type;if(t&&/^\s*$/.test(e))return J(!1,"required");if(/^\s*$/.test(e))return[!0];if(K[i]&&!K[i].test(e))return J(!1,"notMatch");if("list"===i)return J(this.values().includes(e),"notIn");if(n){var a=this.parseValue(e);if("be"===n){var o=h(r,2),s=o[0],c=o[1];return J(a>=this.parseValue(s)&&a<=this.parseValue(c),"between",s,c)}if("nbe"===n){var l=h(r,2),u=l[0],f=l[1];return J(a<this.parseValue(u)||a>this.parseValue(f),"notBetween",u,f)}if("eq"===n)return J(a===this.parseValue(r),"equal",r);if("neq"===n)return J(a!==this.parseValue(r),"notEqual",r);if("lt"===n)return J(a<this.parseValue(r),"lessThan",r);if("lte"===n)return J(a<=this.parseValue(r),"lessThanEqual",r);if("gt"===n)return J(a>this.parseValue(r),"greaterThan",r);if("gte"===n)return J(a>=this.parseValue(r),"greaterThanEqual",r)}return[!0]}}]),Z=function(){function e(t,n,r){f(this,e),this.refs=n,this.mode=t,this.validator=r}return p(e,[{key:"includes",value:function(e,t){for(var n=this.refs,r=0;r<n.length;r+=1)if(E.valueOf(n[r]).includes(e,t))return!0;return!1}},{key:"addRef",value:function(e){this.remove(E.valueOf(e)),this.refs.push(e)}},{key:"remove",value:function(e){var t=[];this.refs.forEach((function(n){var r=E.valueOf(n);r.intersects(e)?r.difference(e).forEach((function(e){return t.push(e.toString())})):t.push(n)})),this.refs=t}},{key:"getData",value:function(){var e=this.refs,t=this.mode,n=this.validator;return{refs:e,mode:t,type:n.type,required:n.required,operator:n.operator,value:n.value}}}],[{key:"valueOf",value:function(t){var n=t.refs,r=t.mode,i=t.type,a=t.required,o=t.operator,s=t.value;return new e(r,n,new X(i,a,s,o))}}])}(),ee=p((function e(){f(this,e),this._=[],this.errors=new Map}),[{key:"getError",value:function(e,t){return this.errors.get("".concat(e,"_").concat(t))}},{key:"validate",value:function(e,t,n){var r=this.get(e,t),i="".concat(e,"_").concat(t),a=this.errors;if(null!==r){var o=h(r.validator.validate(n),2),s=o[0],c=o[1];s?a.delete(i):a.set(i,c)}else a.delete(i);return!0}},{key:"add",value:function(e,t,n){var r=n.type,i=n.required,a=n.value,o=n.operator,s=new X(r,i,a,o),c=this.getByValidator(s);null!==c?c.addRef(t):this._.push(new Z(e,[t],s))}},{key:"getByValidator",value:function(e){for(var t=0;t<this._.length;t+=1){var n=this._[t];if(n.validator.equals(e))return n}return null}},{key:"get",value:function(e,t){for(var n=0;n<this._.length;n+=1){var r=this._[n];if(r.includes(e,t))return r}return null}},{key:"remove",value:function(e){this.each((function(t){t.remove(e)}))}},{key:"each",value:function(e){this._.forEach((function(t){return e(t)}))}},{key:"getData",value:function(){return this._.filter((function(e){return e.refs.length>0})).map((function(e){return e.getData()}))}},{key:"setData",value:function(e){this._=e.map((function(e){return Z.valueOf(e)}))}}]),te={mode:"edit",view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:"#ffffff",align:"left",valign:"middle",textwrap:!1,strike:!1,underline:!1,color:"#0a0a0a",font:{name:"Arial",size:10,bold:!1,italic:!1},format:"normal"}};function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=this.merges,i=t.clone(),a=h(e.size(),2),o=a[0],s=a[1],c=h(t.size(),2),l=c[0],u=c[1];return o>l&&(i.eri=t.sri+o-1),s>u&&(i.eci=t.sci+s-1),!r.intersects(i)||(n(W("error.pasteForMergedCell")),!1)}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.rows,a=this.merges;"all"!==n&&"format"!==n||(i.deleteCells(t,n),a.deleteWithin(t)),i.copyPaste(e,t,n,r,(function(e,t,n){if(n&&n.merge){var r=h(n.merge,2),i=r[0],o=r[1];if(i<=0&&o<=0)return;a.add(new E(e,t,e+i,t+o))}}))}function ie(e,t){var n=this.clipboard,r=this.rows,i=this.merges;r.cutPaste(e,t),i.move(e,t.sri-e.sri,t.sci-e.sci),n.clear()}function ae(e,t,n){var r=this.styles,i=this.rows.getCellOrNew(e,t),a={};void 0!==i.style&&(a=j.cloneDeep(r[i.style])),a=j.merge(a,{border:n}),i.style=this.addStyle(a)}function oe(e){var t=this,n=e.mode,r=e.style,i=e.color,a=this.styles,o=this.selector,s=this.rows,c=o.range,l=c.sri,u=c.sci,f=c.eri,d=c.eci,p=!this.isSingleSelected();if(p||"inside"!==n&&"horizontal"!==n&&"vertical"!==n)if("outside"!==n||p){if("none"===n)o.range.each((function(e,n){var r=s.getCell(e,n);if(r&&void 0!==r.style){var i=j.cloneDeep(a[r.style]);delete i.border,r.style=t.addStyle(i)}}));else if("all"===n||"inside"===n||"outside"===n||"horizontal"===n||"vertical"===n)for(var g=[],m=l;m<=f;m+=1)for(var v=u;v<=d;v+=1){for(var y=[],A=0;A<g.length;A+=1){var b=h(g[A],4),w=b[0],x=b[1],C=b[2],_=b[3];if(m===w+C+1&&y.push(A),w<=m&&m<=w+C&&v===x){v+=_+1;break}}if(y.forEach((function(e){return g.splice(e,1)})),v>d)break;var I=s.getCell(m,v),E=0,k=0;if(I&&I.merge){var S=h(I.merge,2);E=S[0],k=S[1],g.push([m,v,E,k])}var B=E>0&&m+E===f,M=k>0&&v+k===d,T={};"all"===n?T={bottom:[r,i],top:[r,i],left:[r,i],right:[r,i]}:"inside"===n?(!M&&v<d&&(T.right=[r,i]),!B&&m<f&&(T.bottom=[r,i])):"horizontal"===n?!B&&m<f&&(T.bottom=[r,i]):"vertical"===n?!M&&v<d&&(T.right=[r,i]):"outside"===n&&p&&(l===m&&(T.top=[r,i]),(B||f===m)&&(T.bottom=[r,i]),u===v&&(T.left=[r,i]),(M||d===v)&&(T.right=[r,i])),Object.keys(T).length>0&&ae.call(this,m,v,T),v+=k}else if("top"===n||"bottom"===n)for(var O=u;O<=d;O+=1)"top"===n&&(ae.call(this,l,O,{top:[r,i]}),O+=s.getCellMerge(l,O)[1]),"bottom"===n&&(ae.call(this,f,O,{bottom:[r,i]}),O+=s.getCellMerge(f,O)[1]);else if("left"===n||"right"===n)for(var D=l;D<=f;D+=1)"left"===n&&(ae.call(this,D,u,{left:[r,i]}),D+=s.getCellMerge(D,u)[0]),"right"===n&&(ae.call(this,D,d,{right:[r,i]}),D+=s.getCellMerge(D,d)[0])}else ae.call(this,l,u,{top:[r,i],bottom:[r,i],left:[r,i],right:[r,i]})}function se(e,t){var n=this.rows,r=this.freezeTotalHeight(),i=n.height;r+n.height<e&&(i-=t);for(var a=this.exceptRowSet,o=0,s=i,c=n.height;o<n.len&&!(s>e);o+=1)a.has(o)||(s+=c=n.getHeight(o));return(s-=c)<=0?{ri:-1,top:0,height:c}:{ri:o-1,top:s,height:c}}function ce(e,t){var n=this.cols,r=this.freezeTotalWidth(),i=n.indexWidth;r+n.indexWidth<e&&(i-=t);var a=h(j.rangeReduceIf(0,n.len,i,n.indexWidth,e,(function(e){return n.getWidth(e)})),3),o=a[0],s=a[1],c=a[2];return s<=0?{ci:-1,left:0,width:n.indexWidth}:{ci:o-1,left:s,width:c}}var le=p((function e(t,n){f(this,e),this.settings=j.merge(te,n||{}),this.name=t||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new P,this.rows=new N(this.settings.row),this.cols=new F(this.settings.col),this.validations=new ee,this.hyperlinks={},this.comments={},this.selector=new k,this.scroll=new S,this.history=new B,this.clipboard=new M,this.autoFilter=new D,this.change=function(){},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}),[{key:"addValidation",value:function(e,t,n){var r=this;this.changeData((function(){r.validations.add(e,t,n)}))}},{key:"removeValidation",value:function(){var e=this,t=this.selector.range;this.changeData((function(){e.validations.remove(t)}))}},{key:"getSelectedValidator",value:function(){var e=this.selector,t=e.ri,n=e.ci,r=this.validations.get(t,n);return r?r.validator:null}},{key:"getSelectedValidation",value:function(){var e=this.selector,t=e.ri,n=e.ci,r=e.range,i=this.validations.get(t,n),a={ref:r.toString()};return null!==i&&(a.mode=i.mode,a.validator=i.validator),a}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"undo",value:function(){var e=this;this.history.undo(this.getData(),(function(t){e.setData(t)}))}},{key:"redo",value:function(){var e=this;this.history.redo(this.getData(),(function(t){e.setData(t)}))}},{key:"copy",value:function(){this.clipboard.copy(this.selector.range)}},{key:"copyToSystemClipboard",value:function(e){for(var t=[],n=this.selector.range,r=n.sri,i=n.eri,a=n.sci,o=n.eci,s=r;s<=i;s+=1){for(var c=[],l=a;l<=o;l+=1){var u=this.getCell(s,l);c.push(u&&u.text||"")}t.push(c)}t=t.map((function(e){return e.join("\t")})).join("\n"),e&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",t),e.preventDefault()),navigator.clipboard&&navigator.clipboard.writeText(t).then((function(){}),(function(e){}))}},{key:"cut",value:function(){this.clipboard.cut(this.selector.range)}},{key:"paste",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=this.clipboard,i=this.selector;return!r.isClear()&&!!ne.call(this,r.range,i.range,n)&&(this.changeData((function(){r.isCopy()?re.call(e,r.range,i.range,t):r.isCut()&&ie.call(e,r.range,i.range)})),!0)}},{key:"pasteFromSystemClipboard",value:function(e,t){var n=this,r=this.selector;navigator.clipboard.readText().then((function(i){var a=n.parseClipboardContent(i),o=r.ri;a.forEach((function(e){var t=r.ci;e.forEach((function(e){n.setCellText(o,t,e,"input"),t+=1})),o+=1})),e(),t(n.rows.getData())}))}},{key:"parseClipboardContent",value:function(e){var t=[],n=e.split("\n"),r=0;return n.forEach((function(e){t[r]=e.split("\t"),r+=1})),t}},{key:"pasteFromText",value:function(e){var t=[];if((t=/\r\n/.test(e)?e.split("\r\n").map((function(e){return e.replace(/"/g,"").split("\t")})):e.split("\n").map((function(e){return e.replace(/"/g,"").split("\t")}))).length){var n=this.rows,r=this.selector;this.changeData((function(){n.paste(t,r.range)}))}}},{key:"autofill",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=this.selector.range;return!!ne.call(this,i,e,r)&&(this.changeData((function(){re.call(n,i,e,t,!0)})),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(e,t){var n=this.selector,r=this.rows,i=this.cols,a=this.merges,o=n.range,s=o.sri,c=o.sci,l=o.eri,u=o.eci,h=n.ri,f=n.ci,d=e,p=t;return e<0&&(d=r.len-1),t<0&&(p=i.len-1),d>h?(s=h,l=d):(s=d,l=h),p>f?(c=f,u=p):(c=p,u=f),n.range=a.union(new E(s,c,l,u)),n.range=a.union(n.range),n.range}},{key:"calSelectedRangeByStart",value:function(e,t){var n=this.selector,r=this.rows,i=this.cols,a=this.merges.getFirstIncludes(e,t);return null===a&&(a=new E(e,t,e,t),-1===e&&(a.sri=0,a.eri=r.len-1),-1===t&&(a.sci=0,a.eci=i.len-1)),n.range=a,a}},{key:"setSelectedCellAttr",value:function(e,t){var n=this;this.changeData((function(){var r=n.selector,i=n.styles,a=n.rows;if("merge"===e)t?n.merge():n.unmerge();else if("border"===e)oe.call(n,t);else if("formula"===e){var o=r.ri,s=r.ci,c=r.range;if(r.multiple()){var l=h(r.size(),2),u=l[0],f=l[1],d=c.sri,p=c.sci,g=c.eri,m=c.eci;if(u>1)for(var v=p;v<=m;v+=1)a.getCellOrNew(g+1,v).text="=".concat(t,"(").concat(_(v,d),":").concat(_(v,g),")");else f>1&&(a.getCellOrNew(o,m+1).text="=".concat(t,"(").concat(_(p,o),":").concat(_(m,o),")"))}else a.getCellOrNew(o,s).text="=".concat(t,"()")}else r.range.each((function(r,o){var s=a.getCellOrNew(r,o),c={};if(void 0!==s.style&&(c=j.cloneDeep(i[s.style])),"format"===e)c.format=t,s.style=n.addStyle(c);else if("font-bold"===e||"font-italic"===e||"font-name"===e||"font-size"===e){var l={};l[e.split("-")[1]]=t,c.font=Object.assign(c.font||{},l),s.style=n.addStyle(c)}else"strike"===e||"textwrap"===e||"underline"===e||"align"===e||"valign"===e||"color"===e||"bgcolor"===e?(c[e]=t,s.style=n.addStyle(c)):s[e]=t}))}))}},{key:"setSelectedCellText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input",n=this.autoFilter,r=this.selector,i=this.rows,a=r.ri,o=r.ci,s=a;this.unsortedRowMap.has(a)&&(s=this.unsortedRowMap.get(a));var c=i.getCell(s,o),l=c?c.text:"";if(this.setCellText(s,o,e,t),n.active()){var u=n.getFilter(o);if(u){var h=u.value.findIndex((function(e){return e===l}));h>=0&&u.value.splice(h,1,e)}}}},{key:"getSelectedCell",value:function(){var e=this.selector,t=e.ri,n=e.ci,r=t;return this.unsortedRowMap.has(t)&&(r=this.unsortedRowMap.get(t)),this.rows.getCell(r,n)}},{key:"xyInSelectedRect",value:function(e,t){var n=this.getSelectedRect(),r=n.left,i=n.top,a=n.width,o=n.height,s=e-this.cols.indexWidth,c=t-this.rows.height;return s>r&&s<r+a&&c>i&&c<i+o}},{key:"getSelectedRect",value:function(){return this.getRect(this.selector.range)}},{key:"getClipboardRect",value:function(){var e=this.clipboard;return e.isClear()?{left:-100,top:-100}:this.getRect(e.range)}},{key:"getRect",value:function(e){var t=this.scroll,n=this.rows,r=this.cols,i=this.exceptRowSet,a=e.sri,o=e.sci,s=e.eri,c=e.eci;if(a<0&&o<0)return{left:0,l:0,top:0,t:0,scroll:t};var l=r.sumWidth(0,o),u=n.sumHeight(0,a,i),h=n.sumHeight(a,s+1,i),f=r.sumWidth(o,c+1),d=l-t.x,p=u-t.y,g=this.freezeTotalHeight(),m=this.freezeTotalWidth();return m>0&&m>l&&(d=l),g>0&&g>u&&(p=u),{l:l,t:u,left:d,top:p,height:h,width:f,scroll:t}}},{key:"getCellRectByXY",value:function(e,t){var n=this.scroll,r=this.merges,i=this.rows,a=this.cols,o=se.call(this,t,n.y),s=o.ri,c=o.top,l=o.height,u=ce.call(this,e,n.x),h=u.ci,f=u.left,d=u.width;if(-1===h&&(d=a.totalWidth()),-1===s&&(l=i.totalHeight()),s>=0||h>=0){var p=r.getFirstIncludes(s,h);if(p){s=p.sri,h=p.sci;var g=this.cellRect(s,h);f=g.left,c=g.top,d=g.width,l=g.height}}return{ri:s,ci:h,left:f,top:c,width:d,height:l}}},{key:"isSingleSelected",value:function(){var e=this.selector.range,t=e.sri,n=e.sci,r=e.eri,i=e.eci,a=this.getCell(t,n);if(a&&a.merge){var o=h(a.merge,2),s=o[0],c=o[1];if(t+s===r&&n+c===i)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var e=this.selector.range,t=e.sri,n=e.sci,r=e.eri,i=e.eci,a=this.getCell(t,n);if(a&&a.merge){var o=h(a.merge,2),s=o[0],c=o[1];if(t+s===r&&n+c===i)return!0}return!1}},{key:"merge",value:function(){var e=this,t=this.selector,n=this.rows;if(!this.isSingleSelected()){var r=h(t.size(),2),i=r[0],a=r[1];if(i>1||a>1){var o=t.range,s=o.sri,c=o.sci;this.changeData((function(){var r=n.getCellOrNew(s,c);r.merge=[i-1,a-1],e.merges.add(t.range),e.rows.deleteCells(t.range),e.rows.setCell(s,c,r)}))}}}},{key:"unmerge",value:function(){var e=this,t=this.selector;if(this.isSingleSelected()){var n=t.range,r=n.sri,i=n.sci;this.changeData((function(){e.rows.deleteCell(r,i,"merge"),e.merges.deleteWithin(t.range)}))}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var e=this,t=this.autoFilter,n=this.selector;this.changeData((function(){t.active()?(t.clear(),e.exceptRowSet=new Set,e.sortedRowMap=new Map,e.unsortedRowMap=new Map):t.ref=n.range.toString()}))}},{key:"setAutoFilter",value:function(e,t,n,r){var i=this.autoFilter;i.addFilter(e,n,r),i.setSort(e,t),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var e=this,t=this.autoFilter,n=this.rows;if(t.active()){var r=t.sort,i=t.filteredRows((function(e,t){return n.getCell(e,t)})),a=i.rset,o=i.fset,s=Array.from(o),c=Array.from(o);r&&s.sort((function(e,t){return"asc"===r.order?e-t:"desc"===r.order?t-e:0})),this.exceptRowSet=a,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,s.forEach((function(t,n){e.sortedRowMap.set(c[n],t),e.unsortedRowMap.set(t,c[n])}))}}},{key:"deleteCell",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=this.selector;this.changeData((function(){e.rows.deleteCells(n.range,t),"all"!==t&&"format"!==t||e.merges.deleteWithin(n.range)}))}},{key:"insert",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.changeData((function(){var r=t.selector.range,i=r.sri,a=r.sci,o=t.rows,s=t.merges,c=t.cols,l=i;"row"===e?o.insert(i,n):"column"===e&&(o.insertColumn(a,n),l=a,c.len+=n,Object.keys(c._).reverse().forEach((function(e){var t=parseInt(e,10);t>=a&&(c._[t+n]=c._[t],delete c._[t])}))),s.shift(e,l,n,(function(e,t,n,r){var i=o.getCell(e,t);i.merge[0]+=n,i.merge[1]+=r}))}))}},{key:"delete",value:function(e){var t=this;this.changeData((function(){var n=t.rows,r=t.merges,i=t.selector,a=t.cols,o=i.range,s=i.range,c=s.sri,l=s.sci,u=s.eri,f=s.eci,d=h(i.range.size(),2),p=d[0],g=d[1],m=c,v=p;"row"===e?n.delete(c,u):"column"===e&&(n.deleteColumn(l,f),m=o.sci,v=g,a.len-=f-l+1,Object.keys(a._).forEach((function(e){var t=parseInt(e,10);t>=l&&(t>f&&(a._[t-(f-l+1)]=a._[t]),delete a._[t])}))),r.shift(e,m,-v,(function(e,t,r,i){var a=n.getCell(e,t);a.merge[0]+=r,a.merge[1]+=i,0===a.merge[0]&&0===a.merge[1]&&delete a.merge}))}))}},{key:"scrollx",value:function(e,t){var n=this.scroll,r=this.freeze,i=this.cols,a=h(r,2)[1],o=h(j.rangeReduceIf(a,i.len,0,0,e,(function(e){return i.getWidth(e)})),3),s=o[0],c=o[1],l=o[2],u=c;e>0&&(u+=l),n.x!==u&&(n.ci=e>0?s:0,n.x=u,t())}},{key:"scrolly",value:function(e,t){var n=this.scroll,r=this.freeze,i=this.rows,a=h(r,1)[0],o=h(j.rangeReduceIf(a,i.len,0,0,e,(function(e){return i.getHeight(e)})),3),s=o[0],c=o[1],l=o[2],u=c;e>0&&(u+=l),n.y!==u&&(n.ri=e>0?s:0,n.y=u,t())}},{key:"cellRect",value:function(e,t){var n=this.rows,r=this.cols,i=r.sumWidth(0,t),a=n.sumHeight(0,e),o=n.getCell(e,t),s=r.getWidth(t),c=n.getHeight(e);if(null!==o&&o.merge){var l=h(o.merge,2),u=l[0],f=l[1];if(u>0)for(var d=1;d<=u;d+=1)c+=n.getHeight(e+d);if(f>0)for(var p=1;p<=f;p+=1)s+=r.getWidth(t+p)}return{left:i,top:a,width:s,height:c,cell:o}}},{key:"getCell",value:function(e,t){return this.rows.getCell(e,t)}},{key:"getCellTextOrDefault",value:function(e,t){var n=this.getCell(e,t);return n&&n.text?n.text:""}},{key:"getCellStyle",value:function(e,t){var n=this.getCell(e,t);return n&&void 0!==n.style?this.styles[n.style]:null}},{key:"getCellStyleOrDefault",value:function(e,t){var n=this.styles,r=this.rows.getCell(e,t),i=r&&void 0!==r.style?n[r.style]:{};return j.merge(this.defaultStyle(),i)}},{key:"getSelectedCellStyle",value:function(){var e=this.selector,t=e.ri,n=e.ci;return this.getCellStyleOrDefault(t,n)}},{key:"setCellText",value:function(e,t,n,r){var i=this.rows,a=this.history,o=this.validations;"finished"===r?(i.setCellText(e,t,""),a.add(this.getData()),i.setCellText(e,t,n)):(i.setCellText(e,t,n),this.change(this.getData())),o.validate(e,t,n)}},{key:"freezeIsActive",value:function(){var e=h(this.freeze,2),t=e[0],n=e[1];return t>0||n>0}},{key:"setFreeze",value:function(e,t){var n=this;this.changeData((function(){n.freeze=[e,t]}))}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(e,t){var n=this;this.changeData((function(){n.rows.setHeight(e,t)}))}},{key:"setColWidth",value:function(e,t){var n=this;this.changeData((function(){n.cols.setWidth(e,t)}))}},{key:"viewHeight",value:function(){var e=this.settings,t=e.view,n=e.showToolbar,r=e.showBottomBar,i=t.height();return r&&(i-=41),n&&(i-=41),i}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var e=h(this.freeze,2),t=e[0],n=e[1];return new E(0,0,t-1,n-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var e=this.rows,t=this.cols,n=h(e.maxCell(),2),r=n[0],i=n[1],a=e.sumHeight(0,r+1),o=t.sumWidth(0,i+1);return new E(0,0,r,i,o,a)}},{key:"exceptRowTotalHeight",value:function(e,t){var n=this.exceptRowSet,r=this.rows,i=Array.from(n),a=0;return i.forEach((function(n){if(n<e||n>t){var i=r.getHeight(n);a+=i}})),a}},{key:"viewRange",value:function(){var e=this.scroll,t=this.rows,n=this.cols,r=this.freeze,i=this.exceptRowSet,a=e.ri,o=e.ci;a<=0&&(a=h(r,1)[0]),o<=0&&(o=h(r,2)[1]);for(var s=0,c=0,l=[t.len,n.len],u=l[0],f=l[1],d=a;d<t.len&&(i.has(d)||(c+=t.getHeight(d),u=d),!(c>this.viewHeight()));d+=1);for(var p=o;p<n.len&&(f=p,!((s+=n.getWidth(p))>this.viewWidth()));p+=1);return new E(a,o,u,f,s,c)}},{key:"eachMergesInView",value:function(e,t){this.merges.filterIntersects(e).forEach((function(e){return t(e)}))}},{key:"hideRowsOrCols",value:function(){var e=this.rows,t=this.cols,n=this.selector,r=h(n.size(),2),i=r[0],a=r[1],o=n.range,s=o.sri,c=o.sci,l=o.eri,u=o.eci;if(i===e.len)for(var f=c;f<=u;f+=1)t.setHide(f,!0);else if(a===t.len)for(var d=s;d<=l;d+=1)e.setHide(d,!0)}},{key:"unhideRowsOrCols",value:function(e,t){this["".concat(e,"s")].unhide(t)}},{key:"rowEach",value:function(e,t,n){for(var r=0,i=this.rows,a=this.exceptRowSet,o=A(a),s=0,c=0;c<o.length;c+=1)o[c]<e&&(s+=1);for(var l=e+s;l<=t+s;l+=1)if(a.has(l))s+=1;else{var u=i.getHeight(l);if(u>0&&(n(l,r,u),(r+=u)>this.viewHeight()))break}}},{key:"colEach",value:function(e,t,n){for(var r=0,i=this.cols,a=e;a<=t;a+=1){var o=i.getWidth(a);if(o>0&&(n(a,r,o),(r+=o)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(e){for(var t=this.styles,n=0;n<t.length;n+=1){var r=t[n];if(j.equals(r,e))return n}return t.push(e),t.length-1}},{key:"changeData",value:function(e){this.history.add(this.getData()),e(),this.change(this.getData())}},{key:"setData",value:function(e){var t=this;return Object.keys(e).forEach((function(n){if("merges"===n||"rows"===n||"cols"===n||"validations"===n)t[n].setData(e[n]);else if("freeze"===n){var r=h(C(e[n]),2),i=r[0],a=r[1];t.freeze=[a,i]}else"autofilter"===n?t.autoFilter.setData(e[n]):void 0!==e[n]&&(t[n]=e[n])})),this}},{key:"getData",value:function(){var e=this.name,t=this.freeze,n=this.styles,r=this.merges,i=this.rows,a=this.cols,o=this.validations,s=this.autoFilter;return{name:e,freeze:_(t[1],t[0]),styles:n,merges:r.getData(),rows:i.getData(),cols:a.getData(),validations:o.getData(),autofilter:s.getData()}}}]);function ue(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fe(e,t,n){e.addEventListener(t,n)}function de(e,t,n){e.removeEventListener(t,n)}function pe(e){e.xclickoutside&&(de(window.document.body,"click",e.xclickoutside),delete e.xclickoutside)}function ge(e,t){e.xclickoutside=function(n){2===n.detail||e.contains(n.target)||(t?t(e):(e.hide(),pe(e)))},fe(window.document.body,"click",e.xclickoutside)}function me(e,t,n){fe(e,"mousemove",t),e.xEvtUp=function(r){de(e,"mousemove",t),de(e,"mouseup",e.xEvtUp),n(r)},fe(e,"mouseup",e.xEvtUp)}function ve(e,t,n,r){Math.abs(e)>Math.abs(t)?r(e>0?"right":"left",e,n):r(t>0?"down":"up",t,n)}var ye="x-spreadsheet",Ae=p((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0;f(this,e),this.moving=!1,this.vertical=n,this.el=y("div","".concat(ye,"-resizer ").concat(n?"vertical":"horizontal")).children(this.unhideHoverEl=y("div","".concat(ye,"-resizer-hover")).on("dblclick.stop",(function(e){return t.mousedblclickHandler(e)})).css("position","absolute").hide(),this.hoverEl=y("div","".concat(ye,"-resizer-hover")).on("mousedown.stop",(function(e){return t.mousedownHandler(e)})),this.lineEl=y("div","".concat(ye,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=r,this.unhideFn=function(){}}),[{key:"showUnhide",value:function(e){this.unhideIndex=e,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(e,t){var n=this.moving,r=this.vertical,i=this.hoverEl,a=this.lineEl,o=this.el,s=this.unhideHoverEl;if(!n){this.cRect=e;var c=e.left,l=e.top,u=e.width,h=e.height;o.offset({left:r?c+u-5:c,top:r?l:l+h-5}).show(),i.offset({width:r?5:u,height:r?h:5}),a.offset({width:r?0:t.width,height:r?t.height:0}),s.offset({left:r?5-u:c,top:r?l:5-h,width:r?5:u,height:r?h:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(e){var t=this,n=e,r=this.el,i=this.lineEl,a=this.cRect,o=this.vertical,s=this.minDistance,c=o?a.width:a.height;i.show(),me(window,(function(e){t.moving=!0,null!==n&&1===e.buttons&&(o?(c+=e.movementX)>s&&r.css("left","".concat(a.left+c,"px")):(c+=e.movementY)>s&&r.css("top","".concat(a.top+c,"px")),n=e)}),(function(){n=null,i.hide(),t.moving=!1,t.hide(),t.finishedFn&&(c<s&&(c=s),t.finishedFn(a,c))}))}}]),be=p((function e(t){var n=this;f(this,e),this.vertical=t,this.moveFn=null,this.el=y("div","".concat(ye,"-scrollbar ").concat(t?"vertical":"horizontal")).child(this.contentEl=y("div","")).on("mousemove.stop",(function(){})).on("scroll.stop",(function(e){var t=e.target,r=t.scrollTop,i=t.scrollLeft;n.moveFn&&n.moveFn(n.vertical?r:i,e)}))}),[{key:"move",value:function(e){return this.el.scroll(e),this}},{key:"scroll",value:function(){return this.el.scroll()}},{key:"set",value:function(e,t){var n=e-1;if(t>n){var r=this.vertical?"height":"width";this.el.css(r,"".concat(n-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(r,"".concat(t,"px"))}else this.el.hide();return this}}]),we=10,xe=p((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];f(this,e),this.useHideInput=n,this.autoFocus=r,this.inputChange=function(){},this.cornerEl=y("div","".concat(ye,"-selector-corner")),this.areaEl=y("div","".concat(ye,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=y("div","".concat(ye,"-selector-clipboard")).hide(),this.autofillEl=y("div","".concat(ye,"-selector-autofill")).hide(),this.el=y("div","".concat(ye,"-selector")).css("z-index","".concat(we)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),n&&(this.hideInput=y("input","").on("compositionend",(function(e){t.inputChange(e.target.value)})),this.el.child(this.hideInputDiv=y("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=y("div","hide-input").child(this.hideInput))),we+=1}),[{key:"setOffset",value:function(e){return this.el.offset(e).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(e){var t=e.left,n=e.top,r={width:e.width-3+.8,height:e.height-3+.8,left:t-.8,top:n-.8};this.areaEl.offset(r).show(),this.useHideInput&&(this.hideInputDiv.offset(r),this.autoFocus?this.hideInput.val("").focus():this.hideInput.val(""))}},{key:"setClipboardOffset",value:function(e){var t=e.left,n=e.top,r=e.width,i=e.height;this.clipboardEl.offset({left:t,top:n,width:r-5,height:i-5})}},{key:"showAutofill",value:function(e){var t=e.left,n=e.top,r=e.width,i=e.height;this.autofillEl.offset({width:r-3,height:i-3,left:t,top:n}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}]);function Ce(e){var t=this.data,n=e.left,r=e.top,i=e.width,a=e.height,o=e.scroll,s=e.l,c=e.t,l=t.freezeTotalWidth(),u=t.freezeTotalHeight(),h=n-l;l>s&&(h-=o.x);var f=r-u;return u>c&&(f-=o.y),{left:h,top:f,width:i,height:a}}function _e(e){var t=this.data,n=e.left,r=e.width,i=e.height,a=e.l,o=e.t,s=e.scroll,c=t.freezeTotalWidth(),l=n-c;return c>a&&(l-=s.x),{left:l,top:o,width:r,height:i}}function Ie(e){var t=this.data,n=e.top,r=e.width,i=e.height,a=e.l,o=e.t,s=e.scroll,c=t.freezeTotalHeight(),l=n-c;return c>o&&(l-=s.y),{left:a,top:l,width:r,height:i}}function Ee(e){this.br.setAreaOffset(Ce.call(this,e))}function ke(e){this.tl.setAreaOffset(e)}function Se(e){this.t.setAreaOffset(_e.call(this,e))}function Be(e){this.l.setAreaOffset(Ie.call(this,e))}function Me(e){this.l.setClipboardOffset(Ie.call(this,e))}function Te(e){this.br.setClipboardOffset(Ce.call(this,e))}function Oe(e){this.tl.setClipboardOffset(e)}function De(e){this.t.setClipboardOffset(_e.call(this,e))}function Pe(e){Ee.call(this,e),ke.call(this,e),Se.call(this,e),Be.call(this,e)}function Le(e){Te.call(this,e),Oe.call(this,e),De.call(this,e),Me.call(this,e)}var Qe=p((function e(t){var n=this;f(this,e);var r=t.settings.autoFocus;this.inputChange=function(){},this.data=t,this.br=new xe(!0,r),this.t=new xe,this.l=new xe,this.tl=new xe,this.br.inputChange=function(e){n.inputChange(e)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=y("div","".concat(ye,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,we+=1}),[{key:"resetData",value:function(e){this.data=e,this.range=e.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var e=this.data,t=this.tl,n=this.t,r=this.l,i=this.br,a=e.freezeTotalHeight(),o=e.freezeTotalWidth();a>0||o>0?(t.setOffset({width:o,height:a}),n.setOffset({left:o,height:a}),r.setOffset({top:a,width:o}),i.setOffset({left:o,top:a})):(t.hide(),n.hide(),r.hide(),i.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var e=this.data.getSelectedRect(),t=this.data.getClipboardRect();Pe.call(this,e),Le.call(this,t),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var e=this.data.getSelectedRect(),t=this.data.getClipboardRect();Ee.call(this,e),Se.call(this,e),Te.call(this,t),De.call(this,t),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var e=this.data.getSelectedRect(),t=this.data.getClipboardRect();Ee.call(this,e),Be.call(this,e),Te.call(this,t),Me.call(this,t),this.resetOffset()}},{key:"set",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.data,i=r.calSelectedRangeByStart(e,t),a=i.sri,o=i.sci;if(n){var s=e,c=t;e<0&&(s=0),t<0&&(c=0),r.selector.setIndexes(s,c),this.indexes=[s,c]}this.moveIndexes=[a,o],this.range=i,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.data,i=this.lastri,a=this.lastci;if(n){if(e===i&&t===a)return;this.lastri=e,this.lastci=t}this.range=r.calSelectedRangeByEnd(e,t),Pe.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var e=this.data.selector.range,t=e.eri,n=e.eci;this.setEnd(t,n)}},{key:"showAutofill",value:function(e,t){if(-1!==e||-1!==t){var n=this.range,r=n.sri,i=n.sci,a=n.eri,o=n.eci,s=e,c=t,l=r-e,u=a-e,h=o-t;if(i-t>0)this.arange=new E(r,c,a,i-1);else if(l>0)this.arange=new E(s,i,r-1,o);else if(h<0)this.arange=new E(r,o+1,a,c);else{if(!(u<0))return void(this.arange=null);this.arange=new E(a+1,i,s,o)}if(null!==this.arange){var f=this.data.getRect(this.arange);f.width+=2,f.height+=2;var d=this.br,p=this.l,g=this.t,m=this.tl;d.showAutofill(Ce.call(this,f)),p.showAutofill(Ie.call(this,f)),g.showAutofill(_e.call(this,f)),m.showAutofill(f)}}}},{key:"hideAutofill",value:function(){var e=this;["br","l","t","tl"].forEach((function(t){e[t].hideAutofill()}))}},{key:"showClipboard",value:function(){var e=this,t=this.data.getClipboardRect();Le.call(this,t),["br","l","t","tl"].forEach((function(t){e[t].showClipboard()}))}},{key:"hideClipboard",value:function(){var e=this;["br","l","t","tl"].forEach((function(t){e[t].hideClipboard()}))}}]);function Re(e){e.preventDefault(),e.stopPropagation();var t=this.filterItems;t.length<=0||(this.itemIndex>=0&&t[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=t.length-1),t[this.itemIndex].toggle())}function je(e){e.stopPropagation();var t=this.filterItems;t.length<=0||(this.itemIndex>=0&&t[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>t.length-1&&(this.itemIndex=0),t[this.itemIndex].toggle())}function Ne(e){e.preventDefault();var t=this.filterItems;t.length<=0||(e.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),t[this.itemIndex].el.click(),this.hide())}function Fe(e){var t=e.keyCode;switch(e.ctrlKey&&e.stopPropagation(),t){case 37:case 39:default:e.stopPropagation();break;case 38:Re.call(this,e);break;case 40:je.call(this,e);break;case 13:case 9:Ne.call(this,e)}}var ze=p((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"200px";f(this,e),this.filterItems=[],this.items=t,this.el=y("div","".concat(ye,"-suggest")).css("width",r).hide(),this.itemClick=n,this.itemIndex=-1}),[{key:"setOffset",value:function(e){this.el.cssRemoveKeys("top","bottom").offset(e)}},{key:"hide",value:function(){var e=this.el;this.filterItems=[],this.itemIndex=-1,e.hide(),pe(this.el.parent())}},{key:"setItems",value:function(e){this.items=e}},{key:"search",value:function(e){var t,n=this,r=this.items;if(/^\s*$/.test(e)||(r=r.filter((function(t){return(t.key||t).startsWith(e.toUpperCase())}))),r=r.map((function(e){var t=e.title;t?"function"==typeof t&&(t=t()):t=e;var r=y("div","".concat(ye,"-item")).child(t).on("click.stop",(function(){n.itemClick(e),n.hide()}));return e.label&&r.child(y("div","label").html(e.label)),r})),this.filterItems=r,!(r.length<=0)){var i=this.el;(t=i.html("")).children.apply(t,A(r)).show(),ge(i.parent(),(function(){n.hide()}))}}},{key:"bindInputEvents",value:function(e){var t=this;e.on("keydown",(function(e){return Fe.call(t,e)}))}}]);function He(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ge(e,t){return(Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}function We(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(We=function(){return!!e})()}var qe=function(e){function t(e){var n,r,i,a;return f(this,t),r=this,i=t,a=["div","".concat(ye,"-icon")],i=Ue(i),(n=He(r,We()?Reflect.construct(i,a||[],Ue(r).constructor):i.apply(r,a))).iconNameEl=y("div","".concat(ye,"-icon-img ").concat(e)),n.child(n.iconNameEl),n}return Ve(t,e),p(t,[{key:"setName",value:function(e){this.iconNameEl.className("".concat(ye,"-icon-img ").concat(e))}}])}(v);function Ye(e,t){e.setMonth(e.getMonth()+t)}function Ke(e,t){var n=new Date(e);return n.setDate(t-e.getDay()+1),n}var $e=p((function e(t){var n,r=this;f(this,e),this.value=t,this.cvalue=new Date(t),this.headerLeftEl=y("div","calendar-header-left"),this.bodyEl=y("tbody",""),this.buildAll(),this.el=y("div","x-spreadsheet-calendar").children(y("div","calendar-header").children(this.headerLeftEl,y("div","calendar-header-right").children(y("a","calendar-prev").on("click.stop",(function(){return r.prev()})).child(new qe("chevron-left")),y("a","calendar-next").on("click.stop",(function(){return r.next()})).child(new qe("chevron-right")))),y("table","calendar-body").children(y("thead","").child((n=y("tr","")).children.apply(n,A(W("calendar.weeks").map((function(e){return y("th","cell").child(e)}))))),this.bodyEl)),this.selectChange=function(){}}),[{key:"setValue",value:function(e){this.value=e,this.cvalue=new Date(e),this.buildAll()}},{key:"prev",value:function(){Ye(this.value,-1),this.buildAll()}},{key:"next",value:function(){Ye(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var e=this.value;this.headerLeftEl.html("".concat(W("calendar.months")[e.getMonth()]," ").concat(e.getFullYear()))}},{key:"buildBody",value:function(){var e,t=this,n=this.value,r=this.cvalue,i=this.bodyEl,a=function(e,t,n){for(var r=new Date(e,t,1,23,59,59),i=[[],[],[],[],[],[]],a=0;a<6;a+=1)for(var o=0;o<7;o+=1){var s=Ke(r,7*a+o),c=s.getMonth()!==t,l=s.getMonth()===n.getMonth()&&s.getDate()===n.getDate();i[a][o]={d:s,disabled:c,active:l}}return i}(n.getFullYear(),n.getMonth(),r).map((function(e){var n,r=e.map((function(e){var n="cell";return e.disabled&&(n+=" disabled"),e.active&&(n+=" active"),y("td","").child(y("div",n).on("click.stop",(function(){t.selectChange(e.d)})).child(e.d.getDate().toString()))}));return(n=y("tr","")).children.apply(n,A(r))}));(e=i.html("")).children.apply(e,A(a))}}]),Je=p((function e(){f(this,e),this.calendar=new $e(new Date),this.el=y("div","".concat(ye,"-datepicker")).child(this.calendar.el).hide()}),[{key:"setValue",value:function(e){var t=this.calendar;return"string"==typeof e?/^\d{4}-\d{1,2}-\d{1,2}$/.test(e)&&t.setValue(new Date(e.replace(new RegExp("-","g"),"/"))):e instanceof Date&&t.setValue(e),this}},{key:"change",value:function(e){var t=this;this.calendar.selectChange=function(n){e(n),t.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}]);function Xe(){var e=this.inputText;if(!/^\s*$/.test(e)){var t=this.textlineEl,n=this.textEl,r=this.areaOffset,i=e.split("\n"),a=Math.max.apply(Math,A(i.map((function(e){return e.length})))),o=t.offset().width/e.length,s=(a+1)*o+5,c=this.viewFn().width-r.left-o,l=i.length;if(s>r.width){var u=s;s>c&&(u=c,l+=parseInt(s/c,10),l+=s%c>0?1:0),n.css("width","".concat(u,"px"))}(l*=this.rowHeight)>r.height&&n.css("height","".concat(l,"px"))}}function Ze(e,t){var n=e.target,r=n.value,i=n.selectionEnd,a="".concat(r.slice(0,i)).concat(t).concat(r.slice(i));n.value=a,n.setSelectionRange(i+1,i+1),this.inputText=a,this.textlineEl.html(a),Xe.call(this)}function et(e){var t=e.keyCode,n=e.altKey;13!==t&&9!==t&&e.stopPropagation(),13===t&&n&&(Ze.call(this,e,"\n"),e.stopPropagation()),13!==t||n||e.preventDefault()}function tt(e){var t=e.target.value,n=this.suggest,r=this.textlineEl,i=this.validator,a=this.cell;if(null!==a)if("editable"in a&&!0===a.editable||void 0===a.editable){if(this.inputText=t,i)"list"===i.type?n.search(t):n.hide();else{var o=t.lastIndexOf("=");-1!==o?n.search(t.substring(o+1)):n.hide()}r.html(t),Xe.call(this),this.change("input",t)}else e.target.value=a.text||"";else{if(this.inputText=t,i)"list"===i.type?n.search(t):n.hide();else{var s=t.lastIndexOf("=");-1!==s?n.search(t.substring(s+1)):n.hide()}r.html(t),Xe.call(this),this.change("input",t)}}function nt(e){var t=this.textEl.el;setTimeout((function(){t.focus(),t.setSelectionRange(e,e)}),0)}function rt(e,t){var n=this.textEl,r=this.textlineEl;n.el.blur(),n.val(e),r.html(e),nt.call(this,t)}function it(e){var t=this.inputText,n=this.validator,r=0;if(n&&"list"===n.type)this.inputText=e,r=this.inputText.length;else{var i=t.lastIndexOf("="),a=t.substring(0,i+1),o=t.substring(i+1);o=-1!==o.indexOf(")")?o.substring(o.indexOf(")")):"",this.inputText="".concat(a+e.key,"("),r=this.inputText.length,this.inputText+=")".concat(o)}rt.call(this,this.inputText,r)}function at(){this.suggest.setItems(this.formulas)}var ot=p((function e(t,n,r){var i=this;f(this,e),this.viewFn=n,this.rowHeight=r,this.formulas=t,this.suggest=new ze(t,(function(e){it.call(i,e)})),this.datepicker=new Je,this.datepicker.change((function(e){i.setText(function(e){var t=e.getMonth()+1,n=e.getDate();return t<10&&(t="0".concat(t)),n<10&&(n="0".concat(n)),"".concat(e.getFullYear(),"-").concat(t,"-").concat(n)}(e)),i.clear()})),this.areaEl=y("div","".concat(ye,"-editor-area")).children(this.textEl=y("textarea","").on("input",(function(e){return tt.call(i,e)})).on("paste.stop",(function(){})).on("keydown",(function(e){return et.call(i,e)})),this.textlineEl=y("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",(function(){})).on("mousedown.stop",(function(){})),this.el=y("div","".concat(ye,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}}),[{key:"setFreezeLengths",value:function(e,t){this.freeze.w=e,this.freeze.h=t}},{key:"clear",value:function(){""!==this.inputText&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),at.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n=this.textEl,r=this.areaEl,i=this.suggest,a=this.freeze,o=this.el;if(e){this.areaOffset=e;var s=e.left,c=e.top,l=e.width,u=e.height,h=e.l,f=e.t,d={left:0,top:0};a.w>h&&a.h>f||(a.w<h&&a.h<f?(d.left=a.w,d.top=a.h):a.w>h?d.top=a.h:a.h>f&&(d.left=a.w)),o.offset(d),r.offset({left:s-d.left-.8,top:c-d.top-.8}),n.offset({width:l-9+.8,height:u-3+.8});var p={left:0};p[t]=u,i.setOffset(p),i.hide()}}},{key:"setCell",value:function(e,t){if(!e||!1!==e.editable){var n=this.el,r=this.datepicker,i=this.suggest;n.show(),this.cell=e;var a=e&&e.text||"";if(this.setText(a),this.validator=t,t){var o=t.type;"date"===o&&(r.show(),/^\s*$/.test(a)||r.setValue(a)),"list"===o&&(i.setItems(t.values()),i.search(""))}}}},{key:"setText",value:function(e){this.inputText=e,rt.call(this,e,e.length),Xe.call(this)}}]);function st(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(st=function(){return!!e})()}var ct=function(e){function t(e){var n,r,i,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return f(this,t),r=this,i=t,a=["div","".concat(ye,"-button ").concat(o)],i=Ue(i),(n=He(r,st()?Reflect.construct(i,a||[],Ue(r).constructor):i.apply(r,a))).child(W("button.".concat(e))),n}return Ve(t,e),p(t)}(v);function lt(){return window.devicePixelRatio||1}function ut(){return lt()-.5}function ht(e){return parseInt(e*lt(),10)}function ft(e){var t=ht(e);return t>0?t-.5:.5}var dt=p((function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;f(this,e),this.x=t,this.y=n,this.width=r,this.height=i,this.padding=a,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null}),[{key:"setBorders",value:function(e){var t=e.top,n=e.bottom,r=e.left,i=e.right;t&&(this.borderTop=t),i&&(this.borderRight=i),n&&(this.borderBottom=n),r&&(this.borderLeft=r)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(e){var t=this.width,n=this.padding,r=this.x;return"left"===e?r+=n:"center"===e?r+=t/2:"right"===e&&(r+=t-n),r}},{key:"texty",value:function(e,t){var n=this.height,r=this.padding,i=this.y;return"top"===e?i+=r:"middle"===e?i+=n/2-t/2:"bottom"===e&&(i+=n-r-t),i}},{key:"topxys",value:function(){var e=this.x,t=this.y;return[[e,t],[e+this.width,t]]}},{key:"rightxys",value:function(){var e=this.x,t=this.y,n=this.width;return[[e+n,t],[e+n,t+this.height]]}},{key:"bottomxys",value:function(){var e=this.x,t=this.y,n=this.width,r=this.height;return[[e,t+r],[e+n,t+r]]}},{key:"leftxys",value:function(){var e=this.x,t=this.y;return[[e,t],[e,t+this.height]]}}]);function pt(e,t,n,r,i,a,o){var s={x:0,y:0};"underline"===e?s.y="bottom"===i?0:"top"===i?-(a+2):-a/2:"strike"===e&&("bottom"===i?s.y=a/2:"top"===i&&(s.y=-(a/2+2))),"center"===r?s.x=o/2:"right"===r&&(s.x=o),this.line([t-s.x,n-s.y],[t-s.x+o,n-s.y])}var gt=p((function e(t,n,r){f(this,e),this.el=t,this.ctx=t.getContext("2d"),this.resize(n,r),this.ctx.scale(lt(),lt())}),[{key:"resize",value:function(e,t){this.el.style.width="".concat(e,"px"),this.el.style.height="".concat(t,"px"),this.el.width=ht(e),this.el.height=ht(t)}},{key:"clear",value:function(){var e=this.el,t=e.width,n=e.height;return this.ctx.clearRect(0,0,t,n),this}},{key:"attr",value:function(e){return Object.assign(this.ctx,e),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(e,t){return this.ctx.translate(ht(e),ht(t)),this}},{key:"scale",value:function(e,t){return this.ctx.scale(e,t),this}},{key:"clearRect",value:function(e,t,n,r){return this.ctx.clearRect(e,t,n,r),this}},{key:"fillRect",value:function(e,t,n,r){return this.ctx.fillRect(ht(e)-.5,ht(t)-.5,ht(n),ht(r)),this}},{key:"fillText",value:function(e,t,n){return this.ctx.fillText(e,ht(t),ht(n)),this}},{key:"text",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.ctx,o=r.align,s=r.valign,c=r.font,l=r.color,u=r.strike,h=r.underline,f=t.textx(o);a.save(),a.beginPath(),this.attr({textAlign:o,textBaseline:s,font:"".concat(c.italic?"italic":""," ").concat(c.bold?"bold":""," ").concat(ht(c.size),"px ").concat(c.name),fillStyle:l,strokeStyle:l});var d="".concat(e).split("\n"),p=t.innerWidth(),g=[];d.forEach((function(e){var t=a.measureText(e).width;if(i&&t>ht(p)){for(var n={w:0,len:0,start:0},r=0;r<e.length;r+=1)n.w>=ht(p)&&(g.push(e.substr(n.start,n.len)),n={w:0,len:0,start:r}),n.len+=1,n.w+=a.measureText(e[r]).width+1;n.len>0&&g.push(e.substr(n.start,n.len))}else g.push(e)}));var m=(g.length-1)*(c.size+2),v=t.texty(s,m);return g.forEach((function(e){var t=a.measureText(e).width;n.fillText(e,f,v),u&&pt.call(n,"strike",f,v,o,s,c.size,t),h&&pt.call(n,"underline",f,v,o,s,c.size,t),v+=c.size+2})),a.restore(),this}},{key:"border",value:function(e,t){var n=this.ctx;return n.lineWidth=ut,n.strokeStyle=t,"medium"===e?n.lineWidth=ht(2)-.5:"thick"===e?n.lineWidth=ht(3):"dashed"===e?n.setLineDash([ht(3),ht(2)]):"dotted"===e?n.setLineDash([ht(1),ht(1)]):"double"===e&&n.setLineDash([ht(2),0]),this}},{key:"line",value:function(){var e=this.ctx;if(arguments.length>1){e.beginPath();var t=h(arguments.length<=0?void 0:arguments[0],2),n=t[0],r=t[1];e.moveTo(ft(n),ft(r));for(var i=1;i<arguments.length;i+=1){var a=h(i<0||arguments.length<=i?void 0:arguments[i],2),o=a[0],s=a[1];e.lineTo(ft(o),ft(s))}e.stroke()}return this}},{key:"strokeBorders",value:function(e){var t=this.ctx;t.save();var n=e.borderTop,r=e.borderRight,i=e.borderBottom,a=e.borderLeft;n&&(this.border.apply(this,A(n)),this.line.apply(this,A(e.topxys()))),r&&(this.border.apply(this,A(r)),this.line.apply(this,A(e.rightxys()))),i&&(this.border.apply(this,A(i)),this.line.apply(this,A(e.bottomxys()))),a&&(this.border.apply(this,A(a)),this.line.apply(this,A(e.leftxys()))),t.restore()}},{key:"dropdown",value:function(e){var t=this.ctx,n=e.x,r=e.y,i=n+e.width-15,a=r+e.height-15;t.save(),t.beginPath(),t.moveTo(ht(i),ht(a)),t.lineTo(ht(i+8),ht(a)),t.lineTo(ht(i+4),ht(a+6)),t.closePath(),t.fillStyle="rgba(0, 0, 0, .45)",t.fill(),t.restore()}},{key:"error",value:function(e){var t=this.ctx,n=e.x,r=e.y,i=n+e.width-1;t.save(),t.beginPath(),t.moveTo(ht(i-8),ht(r-1)),t.lineTo(ht(i),ht(r-1)),t.lineTo(ht(i),ht(r+8)),t.closePath(),t.fillStyle="rgba(255, 0, 0, .65)",t.fill(),t.restore()}},{key:"frozen",value:function(e){var t=this.ctx,n=e.x,r=e.y,i=n+e.width-1;t.save(),t.beginPath(),t.moveTo(ht(i-8),ht(r-1)),t.lineTo(ht(i),ht(r-1)),t.lineTo(ht(i),ht(r+8)),t.closePath(),t.fillStyle="rgba(0, 255, 0, .85)",t.fill(),t.restore()}},{key:"rect",value:function(e,t){var n=this.ctx,r=e.x,i=e.y,a=e.width,o=e.height,s=e.bgcolor;n.save(),n.beginPath(),n.fillStyle=s||"#fff",n.rect(ft(r+1),ft(i+1),ht(a-2),ht(o-2)),n.clip(),n.fill(),t(),n.restore()}}]),mt=[{key:"Arial",title:"Arial"},{key:"Helvetica",title:"Helvetica"},{key:"Source Sans Pro",title:"Source Sans Pro"},{key:"Comic Sans MS",title:"Comic Sans MS"},{key:"Courier New",title:"Courier New"},{key:"Verdana",title:"Verdana"},{key:"Lato",title:"Lato"}],vt=[{pt:7.5,px:10},{pt:8,px:11},{pt:9,px:12},{pt:10,px:13},{pt:10.5,px:14},{pt:11,px:15},{pt:12,px:16},{pt:14,px:18.7},{pt:15,px:20},{pt:16,px:21.3},{pt:18,px:24},{pt:22,px:29.3},{pt:24,px:32},{pt:26,px:34.7},{pt:36,px:48},{pt:42,px:56}],yt=function(e,t){var n=h(e,1)[0],r=e;if('"'===n)return e.substring(1);var i=1;if("-"===n&&(r=e.substring(1),i=-1),r[0]>="0"&&r[0]<="9")return i*Number(r);var a=h(C(r),2);return i*t(a[0],a[1])},At=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if("="===e[0]){var i=function(e){for(var t=[],n=[],r=[],i=0,a="",o=1,s="",c=0;c<e.length;c+=1){var l=e.charAt(c);if(" "!==l){if(l>="a"&&l<="z")r.push(l.toUpperCase());else if(l>="0"&&l<="9"||l>="A"&&l<="Z"||"."===l)r.push(l);else if('"'===l){for(c+=1;'"'!==e.charAt(c);)r.push(e.charAt(c)),c+=1;n.push('"'.concat(r.join(""))),r=[]}else if("-"===l&&/[+\-*/,(]/.test(s))r.push(l);else{if("("!==l&&r.length>0&&n.push(r.join("")),")"===l){var u=t.pop();if(2===i)try{for(var f=h(C(n.pop()),2),d=f[0],p=f[1],g=h(C(n.pop()),2),m=g[0],v=g[1],y=0,A=m;A<=d;A+=1)for(var b=v;b<=p;b+=1)n.push(_(A,b)),y+=1;n.push([u,y])}catch(e){}else if(1===i||3===i)3===i&&n.push(a),n.push([u,o]),o=1;else for(;"("!==u&&(n.push(u),!(t.length<=0));)u=t.pop();i=0}else if("="===l||">"===l||"<"===l){var w=e.charAt(c+1);a=l,"="!==w&&"-"!==w||(a+=w,c+=1),i=3}else if(":"===l)i=2;else if(","===l)3===i&&n.push(a),i=1,o+=1;else if("("===l&&r.length>0)t.push(r.join(""));else{if(t.length>0&&("+"===l||"-"===l)){var x=t[t.length-1];if("("!==x&&n.push(t.pop()),"*"===x||"/"===x)for(;t.length>0&&"("!==(x=t[t.length-1]);)n.push(t.pop())}else if(t.length>0){var I=t[t.length-1];"*"!==I&&"/"!==I||n.push(t.pop())}t.push(l)}r=[]}s=l}}for(r.length>0&&n.push(r.join(""));t.length>0;)n.push(t.pop());return n}(e.substring(1));return i.length<=0?e:function(e,t,n,r){for(var i=[],a=0;a<e.length;a+=1){var o=e[a],s=o[0];if("+"===o){var c=i.pop();i.push(R("+",i.pop(),c))}else if("-"===o)if(1===i.length){var l=i.pop();i.push(R("*",l,-1))}else{var u=i.pop();i.push(R("-",i.pop(),u))}else if("*"===o)i.push(R("*",i.pop(),i.pop()));else if("/"===o){var f=i.pop();i.push(R("/",i.pop(),f))}else if("="===s||">"===s||"<"===s){var d=i.pop();Number.isNaN(d)||(d=Number(d));var p=i.pop();Number.isNaN(p)||(p=Number(p));var g=!1;"="===s?g=p===d:">"===o?g=p>d:">="===o?g=p>=d:"<"===o?g=p<d:"<="===o&&(g=p<=d),i.push(g)}else if(Array.isArray(o)){for(var m=h(o,2),v=m[0],y=m[1],A=[],b=0;b<y;b+=1)A.push(i.pop());i.push(t[v].render(A.reverse()))}else{if(r.includes(o))return 0;(s>="a"&&s<="z"||s>="A"&&s<="Z")&&r.push(o),i.push(yt(o,n)),r.pop()}}return i[0]}(i,t,(function(e,i){return At(n(e,i),t,n,r)}),r)}return e};const bt={render:At};var wt=[{key:"SUM",title:q("formula.sum"),render:function(e){return e.reduce((function(e,t){return R("+",e,t)}),0)}},{key:"AVERAGE",title:q("formula.average"),render:function(e){return e.reduce((function(e,t){return Number(e)+Number(t)}),0)/e.length}},{key:"MAX",title:q("formula.max"),render:function(e){return Math.max.apply(Math,A(e.map((function(e){return Number(e)}))))}},{key:"MIN",title:q("formula.min"),render:function(e){return Math.min.apply(Math,A(e.map((function(e){return Number(e)}))))}},{key:"IF",title:q("formula._if"),render:function(e){var t=h(e,3),n=t[0],r=t[1],i=t[2];return n?r:i}},{key:"AND",title:q("formula.and"),render:function(e){return e.every((function(e){return e}))}},{key:"OR",title:q("formula.or"),render:function(e){return e.some((function(e){return e}))}},{key:"CONCAT",title:q("formula.concat"),render:function(e){return e.join("")}}],xt=wt,Ct={};wt.forEach((function(e){Ct[e.key]=e}));var _t=function(e){return e},It=function(e){if(/^(-?\d*.?\d*)$/.test(e)){var t=m(Number(e).toFixed(2).toString().split("\\.")),n=t[0],r=t.slice(1);return[n.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(A(r))}return e},Et=[{key:"normal",title:q("format.normal"),type:"string",render:_t},{key:"text",title:q("format.text"),type:"string",render:_t},{key:"number",title:q("format.number"),type:"number",label:"1,000.12",render:It},{key:"percent",title:q("format.percent"),type:"number",label:"10.12%",render:function(e){return"".concat(e,"%")}},{key:"rmb",title:q("format.rmb"),type:"number",label:"￥10.00",render:function(e){return"￥".concat(It(e))}},{key:"usd",title:q("format.usd"),type:"number",label:"$10.00",render:function(e){return"$".concat(It(e))}},{key:"eur",title:q("format.eur"),type:"number",label:"€10.00",render:function(e){return"€".concat(It(e))}},{key:"date",title:q("format.date"),type:"date",label:"26/09/2008",render:_t},{key:"time",title:q("format.time"),type:"date",label:"15:59:00",render:_t},{key:"datetime",title:q("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:_t},{key:"duration",title:q("format.duration"),type:"date",label:"24:01:00",render:_t}],kt={};Et.forEach((function(e){kt[e.key]=e}));var St={fillStyle:"#f4f5f8"},Bt={fillStyle:"#fff",lineWidth:ut,strokeStyle:"#e6e6e6"};function Mt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=e.cellRect(t,n),a=i.left,o=i.top,s=i.width,c=i.height;return new dt(a,o+r,s,c,5)}function Tt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=t.sortedRowMap,o=t.rows,s=t.cols;if(!o.isHide(n)&&!s.isHide(r)){var c=n;a.has(n)&&(c=a.get(n));var l=t.getCell(c,r);if(null!==l){var u=!1;"editable"in l&&!1===l.editable&&(u=!0);var h=t.getCellStyleOrDefault(c,r),f=Mt(t,n,r,i);f.bgcolor=h.bgcolor,void 0!==h.border&&(f.setBorders(h.border),e.strokeBorders(f)),e.rect(f,(function(){var i="";i=t.settings.evalPaused?l.text||"":bt.render(l.text||"",Ct,(function(e,n){return t.getCellTextOrDefault(n,e)})),h.format&&(i=kt[h.format].render(i));var a=Object.assign({},h.font);a.size=function(e){for(var t=0;t<vt.length;t+=1){var n=vt[t];if(n.pt===e)return n.px}return e}(a.size),e.text(i,f,{align:h.align,valign:h.valign,font:a,color:h.color,strike:h.strike,underline:h.underline},h.textwrap),t.validations.getError(n,r)&&e.error(f),u&&e.frozen(f)}))}}}function Ot(e){var t=this.data,n=this.draw;if(e){var r=t.autoFilter;if(!r.active())return;var i=r.hrange();e.intersects(i)&&i.each((function(e,r){var i=Mt(t,e,r);n.dropdown(i)}))}}function Dt(e,t,n,r,i){var a=this.draw,o=this.data;a.save(),a.translate(t,n).translate(r,i);var s=o.exceptRowSet,c=o.exceptRowTotalHeight(e.sri,e.eri);a.save(),a.translate(0,-c),e.each((function(e,t){Tt(a,o,e,t)}),(function(e){return function(e){var t=s.has(e);if(t){var n=o.rows.getHeight(e);a.translate(0,-n)}return!t}(e)})),a.restore();var l=new Set;a.save(),a.translate(0,-c),o.eachMergesInView(e,(function(e){var t=e.sri,n=e.sci,r=e.eri;if(s.has(t)){if(!l.has(t)){l.add(t);var i=o.rows.sumHeight(t,r+1);a.translate(0,-i)}}else Tt(a,o,t,n)})),a.restore(),Ot.call(this,e),a.restore()}function Pt(e,t,n,r){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(e,t,n,r),i.restore()}function Lt(e,t,n,r,i,a){var o=this,s=this.draw,c=this.data,l=t.h,u=t.w,h=a+r,f=i+n;s.save(),s.attr(St),"all"!==e&&"left"!==e||s.fillRect(0,h,n,l),"all"!==e&&"top"!==e||s.fillRect(f,0,u,r);var d=c.selector.range,p=d.sri,g=d.sci,m=d.eri,v=d.eci;s.attr({textAlign:"center",textBaseline:"middle",font:"500 ".concat(ht(12),"px Source Sans Pro"),fillStyle:"#585757",lineWidth:ut(),strokeStyle:"#e6e6e6"}),"all"!==e&&"left"!==e||(c.rowEach(t.sri,t.eri,(function(e,t,r){var i=h+t,a=e;s.line([0,i],[n,i]),p<=a&&a<m+1&&Pt.call(o,0,i,n,r),s.fillText(a+1,n/2,i+r/2),e>0&&c.rows.isHide(e-1)&&(s.save(),s.attr({strokeStyle:"#c6c6c6"}),s.line([5,i+5],[n-5,i+5]),s.restore())})),s.line([0,l+h],[n,l+h]),s.line([n,h],[n,l+h])),"all"!==e&&"top"!==e||(c.colEach(t.sci,t.eci,(function(e,t,n){var i=f+t,a=e;s.line([i,0],[i,r]),g<=a&&a<v+1&&Pt.call(o,i,0,n,r),s.fillText(w(a),i+n/2,r/2),e>0&&c.cols.isHide(e-1)&&(s.save(),s.attr({strokeStyle:"#c6c6c6"}),s.line([i+5,5],[i+5,r-5]),s.restore())})),s.line([u+f,0],[u+f,r]),s.line([0,r],[u+f,r])),s.restore()}function Qt(e,t){var n=this.draw;n.save(),n.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,e,t),n.restore()}function Rt(e,t,n,r,i){var a=e.sri,o=e.sci,s=e.eri,c=e.eci,l=e.w,u=e.h,h=this.draw,f=this.data,d=f.settings;h.save(),h.attr(Bt).translate(t+r,n+i),d.showGrid?(f.rowEach(a,s,(function(e,t,n){e!==a&&h.line([0,t],[l,t]),e===s&&h.line([0,t+n],[l,t+n])})),f.colEach(o,c,(function(e,t,n){e!==o&&h.line([t,0],[t,u]),e===c&&h.line([t+n,0],[t+n,u])})),h.restore()):h.restore()}function jt(e,t,n,r){var i=this.draw,a=this.data,o=a.viewWidth()-e,s=a.viewHeight()-t;i.save().translate(e,t).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),i.line([0,r],[o,r]),i.line([n,0],[n,s]),i.restore()}var Nt=p((function e(t,n){f(this,e),this.el=t,this.draw=new gt(t,n.viewWidth(),n.viewHeight()),this.data=n}),[{key:"resetData",value:function(e){this.data=e,this.render()}},{key:"render",value:function(){var e=this.data,t=e.rows,n=e.cols.indexWidth,r=t.height;this.draw.resize(e.viewWidth(),e.viewHeight()),this.clear();var i=e.viewRange(),a=e.freezeTotalWidth(),o=e.freezeTotalHeight(),s=e.scroll,c=s.x,l=s.y;Rt.call(this,i,n,r,a,o),Dt.call(this,i,n,r,-c,-l),Lt.call(this,"all",i,n,r,a,o),Qt.call(this,n,r);var u=h(e.freeze,2),f=u[0],d=u[1];if(f>0||d>0){if(f>0){var p=i.clone();p.sri=0,p.eri=f-1,p.h=o,Rt.call(this,p,n,r,a,0),Dt.call(this,p,n,r,-c,0),Lt.call(this,"top",p,n,r,a,0)}if(d>0){var g=i.clone();g.sci=0,g.eci=d-1,g.w=a,Rt.call(this,g,n,r,0,o),Lt.call(this,"left",g,n,r,0,o),Dt.call(this,g,n,r,0,-l)}var m=e.freezeViewRange();Rt.call(this,m,n,r,0,0),Lt.call(this,"all",m,n,r,0,0),Dt.call(this,m,n,r,0,0),jt.call(this,n,r,a,o)}}},{key:"clear",value:function(){this.draw.clear()}}]),Ft=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],zt=["landscape","portrait"];function Ht(e){return parseInt(96*e,10)}function Ut(e){"cancel"===e?this.el.hide():this.toPrint()}function Gt(e){var t=this.paper,n=e.target.value,r=Ft[n];t.w=Ht(r[1]),t.h=Ht(r[2]),this.preview()}function Vt(e){var t=this.paper,n=e.target.value,r=zt[n];t.orientation=r,this.preview()}var Wt=p((function e(t){var n,r;f(this,e),this.paper={w:Ht(Ft[0][1]),h:Ht(Ft[0][2]),padding:50,orientation:zt[0],get width(){return"landscape"===this.orientation?this.h:this.w},get height(){return"landscape"===this.orientation?this.w:this.h}},this.data=t,this.el=y("div","".concat(ye,"-print")).children(y("div","".concat(ye,"-print-bar")).children(y("div","-title").child("Print settings"),y("div","-right").children(y("div","".concat(ye,"-buttons")).children(new ct("cancel").on("click",Ut.bind(this,"cancel")),new ct("next","primary").on("click",Ut.bind(this,"next"))))),y("div","".concat(ye,"-print-content")).children(this.contentEl=y("div","-content"),y("div","-sider").child(y("form","").children(y("fieldset","").children(y("label","").child("".concat(W("print.size"))),(n=y("select","")).children.apply(n,A(Ft.map((function(e,t){return y("option","").attr("value",t).child("".concat(e[0]," ( ").concat(e[1],"''x").concat(e[2],"'' )"))})))).on("change",Gt.bind(this))),y("fieldset","").children(y("label","").child("".concat(W("print.orientation"))),(r=y("select","")).children.apply(r,A(zt.map((function(e,t){return y("option","").attr("value",t).child("".concat(W("print.orientations")[t]))})))).on("change",Vt.bind(this))))))).hide()}),[{key:"resetData",value:function(e){this.data=e}},{key:"preview",value:function(){var e=this,t=this.data,n=this.paper,r=n.width,i=n.height,a=n.padding,o=r-2*a,s=i-2*a,c=t.contentRange(),l=parseInt(c.h/s,10)+1,u=o/c.w,h=a,f=a;u>1&&(h+=(o-c.w)/2);var d=0,p=0;this.contentEl.html(""),this.canvases=[];for(var g={sri:0,sci:0,eri:0,eci:0},m=function(){var n=0,a=0,o=y("div","".concat(ye,"-canvas-card")),l=y("canvas","".concat(ye,"-canvas"));e.canvases.push(l.el);var m=new gt(l.el,r,i);for(m.save(),m.translate(h,f),u<1&&m.scale(u,u);d<=c.eri;d+=1){var v=t.rows.getHeight(d);if(!((n+=v)<s)){a=-(n-v);break}for(var A=0;A<=c.eci;A+=1)Tt(m,t,d,A,p),g.eci=A}g.eri=d,m.restore(),m.save(),m.translate(h,f),u<1&&m.scale(u,u);var b=p;t.eachMergesInView(g,(function(e){var n=e.sri,r=e.sci;Tt(m,t,n,r,b)})),m.restore(),g.sri=g.eri,g.sci=g.eci,p+=a,e.contentEl.child(y("div","".concat(ye,"-canvas-card-wraper")).child(o.child(l)))},v=0;v<l;v+=1)m();this.el.show()}},{key:"toPrint",value:function(){this.el.hide();var e=this.paper,t=y("iframe","").hide().el;window.document.body.appendChild(t);var n=t.contentWindow,r=n.document,i=document.createElement("style");i.innerHTML="\n      @page { size: ".concat(e.width,"px ").concat(e.height,"px; };\n      canvas {\n        page-break-before: auto;        \n        page-break-after: always;\n        image-rendering: pixelated;\n      };\n    "),r.head.appendChild(i),this.canvases.forEach((function(e){var t=e.cloneNode(!1);t.getContext("2d").drawImage(e,0,0),r.body.appendChild(t)})),n.print()}}]),qt=[{key:"copy",title:q("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:q("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:q("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:q("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:q("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:q("contextmenu.insertRow")},{key:"insert-column",title:q("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:q("contextmenu.deleteRow")},{key:"delete-column",title:q("contextmenu.deleteColumn")},{key:"delete-cell-text",title:q("contextmenu.deleteCellText")},{key:"hide",title:q("contextmenu.hide")},{key:"divider"},{key:"validation",title:q("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:q("contextmenu.cellprintable")},{key:"cell-non-printable",title:q("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:q("contextmenu.celleditable")},{key:"cell-non-editable",title:q("contextmenu.cellnoneditable")}];function Yt(e){var t=this;return"divider"===e.key?y("div","".concat(ye,"-item divider")):y("div","".concat(ye,"-item")).on("click",(function(){t.itemClick(e.key),t.hide()})).children(e.title(),y("div","label").child(e.label||""))}function Kt(){var e=this;return qt.map((function(t){return Yt.call(e,t)}))}var $t=p((function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f(this,e),this.menuItems=Kt.call(this),this.el=(n=y("div","".concat(ye,"-contextmenu"))).children.apply(n,A(this.menuItems)).hide(),this.viewFn=t,this.itemClick=function(){},this.isHide=r,this.setMode("range")}),[{key:"setMode",value:function(e){var t=this.menuItems[12];"row-col"===e?t.show():t.hide()}},{key:"hide",value:function(){var e=this.el;e.hide(),pe(e)}},{key:"setPosition",value:function(e,t){if(!this.isHide){var n=this.el,r=n.show().offset().width,i=this.viewFn(),a=i.height/2,o=e;i.width-e<=r&&(o-=r),n.css("left","".concat(o,"px")),t>a?n.css("bottom","".concat(i.height-t,"px")).css("max-height","".concat(t,"px")).css("top","auto"):n.css("top","".concat(t,"px")).css("max-height","".concat(i.height-t,"px")).css("bottom","auto"),ge(n)}}}]);function Jt(){return Jt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ue(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Jt.apply(null,arguments)}var Xt=p((function e(t,n,r){f(this,e),this.tip="",t&&(this.tip=W("toolbar.".concat(t.replace(/-[a-z]/g,(function(e){return e[1].toUpperCase()}))))),n&&(this.tip+=" (".concat(n,")")),this.tag=t,this.shortcut=n,this.value=r,this.el=this.element(),this.change=function(){}}),[{key:"element",value:function(){var e=this,t=this.tip;return y("div","".concat(ye,"-toolbar-btn")).on("mouseenter",(function(t){e.tip&&function(e,t){if(!t.classList.contains("active")){var n=t.getBoundingClientRect(),r=n.left,i=n.top,a=n.width,o=n.height,s=y("div","".concat(ye,"-tooltip")).html(e).show();document.body.appendChild(s.el);var c=s.box();s.css("left","".concat(r+a/2-c.width/2,"px")).css("top","".concat(i+o+2,"px")),fe(t,"mouseleave",(function(){document.body.contains(s.el)&&document.body.removeChild(s.el)})),fe(t,"click",(function(){document.body.contains(s.el)&&document.body.removeChild(s.el)}))}}(e.tip,t.target)})).attr("data-tooltip",t)}},{key:"setState",value:function(){}}]);function Zt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zt=function(){return!!e})()}var en=function(e){function t(){return f(this,t),e=this,r=arguments,n=Ue(n=t),He(e,Zt()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(e){return e}},{key:"element",value:function(){var e,n,r,i,a,o=this,s=this.tag;return this.dd=this.dropdown(),this.dd.change=function(e){return o.change(s,o.getValue(e))},(e=t,n="element",r=this,i=3,a=Jt(Ue(1&i?e.prototype:e),n,r),2&i&&"function"==typeof a?function(e){return a.apply(r,e)}:a)([]).child(this.dd)}},{key:"setState",value:function(e){e&&(this.value=e,this.dd.setTitle(e))}}])}(Xt);function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tn=function(){return!!e})()}var nn=function(e){function t(e,n,r,i){var a,o,s,c,l;f(this,t),s=this,c=t,l=["div","".concat(ye,"-dropdown ").concat(i)],c=Ue(c),(o=He(s,tn()?Reflect.construct(c,l||[],Ue(s).constructor):c.apply(s,l))).title=e,o.change=function(){},o.headerClick=function(){},"string"==typeof e?o.title=y("div","".concat(ye,"-dropdown-title")).child(e):r&&o.title.addClass("arrow-left"),o.contentEl=y("div","".concat(ye,"-dropdown-content")).css("width",n).hide();for(var u=arguments.length,h=new Array(u>4?u-4:0),d=4;d<u;d++)h[d-4]=arguments[d];return(a=o).setContentChildren.apply(a,h),o.headerEl=y("div","".concat(ye,"-dropdown-header")),o.headerEl.on("click",(function(){"block"!==o.contentEl.css("display")?o.show():o.hide()})).children(o.title,r?y("div","".concat(ye,"-icon arrow-right")).child(y("div","".concat(ye,"-icon-img arrow-down"))):""),o.children(o.headerEl,o.contentEl),o}return Ve(t,e),p(t,[{key:"setContentChildren",value:function(){var e;this.contentEl.html(""),arguments.length>0&&(e=this.contentEl).children.apply(e,arguments)}},{key:"setTitle",value:function(e){this.title.html(e),this.hide()}},{key:"show",value:function(){var e=this;this.contentEl.show(),this.parent().active(),ge(this.parent(),(function(){e.hide()}))}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),pe(this.parent())}}])}(v);function rn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rn=function(){return!!e})()}var an=function(e){function t(e,n){var r;f(this,t);var i,a,o,s=new qe("align-".concat(n)),c=e.map((function(e){return(t="align-".concat(e),y("div","".concat(ye,"-item")).child(new qe(t))).on("click",(function(){r.setTitle(e),r.change(e)}));var t}));return i=this,a=t,o=[s,"auto",!0,"bottom-left"].concat(A(c)),a=Ue(a),r=He(i,rn()?Reflect.construct(a,o||[],Ue(i).constructor):a.apply(i,o))}return Ve(t,e),p(t,[{key:"setTitle",value:function(e){this.title.setName("align-".concat(e)),this.hide()}}])}(nn);function on(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(on=function(){return!!e})()}var sn=function(e){function t(e){return f(this,t),n=this,i=["align","",e],r=Ue(r=t),He(n,on()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i));var n,r,i}return Ve(t,e),p(t,[{key:"dropdown",value:function(){var e=this.value;return new an(["left","center","right"],e)}}])}(en);function cn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cn=function(){return!!e})()}var ln=function(e){function t(e){return f(this,t),n=this,i=["valign","",e],r=Ue(r=t),He(n,cn()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i));var n,r,i}return Ve(t,e),p(t,[{key:"dropdown",value:function(){var e=this.value;return new an(["top","middle","bottom"],e)}}])}(en);function un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(un=function(){return!!e})()}var hn=function(e){function t(){return f(this,t),e=this,r=arguments,n=Ue(n=t),He(e,un()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"element",value:function(){var e,n,r,i,a,o=this,s=this.tag;return(e=t,n="element",r=this,i=3,a=Jt(Ue(1&i?e.prototype:e),n,r),2&i&&"function"==typeof a?function(e){return a.apply(r,e)}:a)([]).child(new qe(s)).on("click",(function(){return o.click()}))}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(e){this.el.active(e)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}])}(Xt);function fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fn=function(){return!!e})()}var dn=function(e){function t(){return f(this,t),e=this,r=["autofilter"],n=Ue(n=t),He(e,fn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"setState",value:function(){}}])}(hn);function pn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pn=function(){return!!e})()}var gn=function(e){function t(){return f(this,t),e=this,r=["font-bold","Ctrl+B"],n=Ue(n=t),He(e,pn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(hn);function mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mn=function(){return!!e})()}var vn=function(e){function t(){return f(this,t),e=this,r=["font-italic","Ctrl+I"],n=Ue(n=t),He(e,mn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(hn);function yn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yn=function(){return!!e})()}var An=function(e){function t(){return f(this,t),e=this,r=["strike","Ctrl+U"],n=Ue(n=t),He(e,yn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(hn);function bn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bn=function(){return!!e})()}var wn=function(e){function t(){return f(this,t),e=this,r=["underline","Ctrl+U"],n=Ue(n=t),He(e,bn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(hn),xn=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],Cn=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],_n=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function In(e){var t=this;return y("td","").child(y("div","".concat(ye,"-color-palette-cell")).on("click.stop",(function(){return t.change(e)})).css("background-color",e))}var En=p((function e(){var t,n,r,i=this;f(this,e),this.el=y("div","".concat(ye,"-color-palette")),this.change=function(){};var a=y("table","").children((t=y("tbody","")).children.apply(t,[(n=y("tr","".concat(ye,"-theme-color-placeholders"))).children.apply(n,A(xn.map((function(e){return In.call(i,e)}))))].concat(A(Cn.map((function(e){var t;return(t=y("tr","".concat(ye,"-theme-colors"))).children.apply(t,A(e.map((function(e){return In.call(i,e)}))))}))),[(r=y("tr","".concat(ye,"-standard-colors"))).children.apply(r,A(_n.map((function(e){return In.call(i,e)}))))])));this.el.child(a)}));function kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kn=function(){return!!e})()}var Sn=function(e){function t(e,n){var r;f(this,t);var i,a,o,s=new qe(e).css("height","16px").css("border-bottom","3px solid ".concat(n)),c=new En;return c.change=function(e){r.setTitle(e),r.change(e)},i=this,a=t,o=[s,"auto",!1,"bottom-left",c.el],a=Ue(a),r=He(i,kn()?Reflect.construct(a,o||[],Ue(i).constructor):a.apply(i,o))}return Ve(t,e),p(t,[{key:"setTitle",value:function(e){this.title.css("border-color",e),this.hide()}}])}(nn);function Bn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bn=function(){return!!e})()}var Mn=[["thin",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" style="user-select: none;"></line></svg>'],["medium",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="2" style="user-select: none;"><line x1="0" y1="1.0" x2="50" y2="1.0" stroke-width="2" stroke="black" style="user-select: none;"></line></svg>'],["thick",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" style="user-select: none;"><line x1="0" y1="1.5" x2="50" y2="1.5" stroke-width="3" stroke="black" style="user-select: none;"></line></svg>'],["dashed",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="2" style="user-select: none;"></line></svg>'],["dotted",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="1" style="user-select: none;"></line></svg>']],Tn=function(e){function t(e){var n;f(this,t);var r,i,a,o=new qe("line-type"),s=0,c=Mn.map((function(t,r){return y("div","".concat(ye,"-item state ").concat(e===t[0]?"checked":"")).on("click",(function(){c[s].toggle("checked"),c[r].toggle("checked"),s=r,n.hide(),n.change(t)})).child(y("div","".concat(ye,"-line-type")).html(t[1]))}));return r=this,i=t,a=[o,"auto",!1,"bottom-left"].concat(A(c)),i=Ue(i),n=He(r,Bn()?Reflect.construct(i,a||[],Ue(r).constructor):i.apply(r,a))}return Ve(t,e),p(t)}(nn);function On(){var e;return y("table","").child((e=y("tbody","")).children.apply(e,arguments))}function Dn(e){var t=this;return y("td","").child(y("div","".concat(ye,"-border-palette-cell")).child(new qe("border-".concat(e))).on("click",(function(){t.mode=e;var n=t.mode,r=t.style,i=t.color;t.change({mode:n,style:r,color:i})})))}var Pn=p((function e(){var t,n,r=this;f(this,e),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new Sn("line-color",this.color),this.ddColor.change=function(e){r.color=e},this.ddType=new Tn(this.style),this.ddType.change=function(e){var t=h(e,1)[0];r.style=t},this.el=y("div","".concat(ye,"-border-palette"));var i=On(y("tr","").children(y("td","".concat(ye,"-border-palette-left")).child(On((t=y("tr","")).children.apply(t,A(["all","inside","horizontal","vertical","outside"].map((function(e){return Dn.call(r,e)})))),(n=y("tr","")).children.apply(n,A(["left","top","right","bottom","none"].map((function(e){return Dn.call(r,e)})))))),y("td","".concat(ye,"-border-palette-right")).children(y("div","".concat(ye,"-toolbar-btn")).child(this.ddColor.el),y("div","".concat(ye,"-toolbar-btn")).child(this.ddType.el))));this.el.child(i)}));function Ln(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ln=function(){return!!e})()}var Qn=function(e){function t(){var e;f(this,t);var n,r,i,a=new qe("border-all"),o=new Pn;return o.change=function(t){e.change(t),e.hide()},n=this,r=t,i=[a,"auto",!1,"bottom-left",o.el],r=Ue(r),e=He(n,Ln()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i))}return Ve(t,e),p(t)}(nn);function Rn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rn=function(){return!!e})()}var jn=function(e){function t(){return f(this,t),e=this,r=["border"],n=Ue(n=t),He(e,Rn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"dropdown",value:function(){return new Qn}}])}(en);function Nn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nn=function(){return!!e})()}var Fn=function(e){function t(){return f(this,t),e=this,r=arguments,n=Ue(n=t),He(e,Nn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"element",value:function(){var e,n,r,i,a,o=this;return(e=t,n="element",r=this,i=3,a=Jt(Ue(1&i?e.prototype:e),n,r),2&i&&"function"==typeof a?function(e){return a.apply(r,e)}:a)([]).child(new qe(this.tag)).on("click",(function(){return o.change(o.tag)}))}},{key:"setState",value:function(e){this.el.disabled(e)}}])}(Xt);function zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zn=function(){return!!e})()}var Hn=function(e){function t(){return f(this,t),e=this,r=["clearformat"],n=Ue(n=t),He(e,zn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(Fn);function Un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Un=function(){return!!e})()}var Gn=function(e){function t(){return f(this,t),e=this,r=["paintformat"],n=Ue(n=t),He(e,Un()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"setState",value:function(){}}])}(hn);function Vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vn=function(){return!!e})()}var Wn=function(e){function t(e){return f(this,t),n=this,i=["color",void 0,e],r=Ue(r=t),He(n,Vn()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i));var n,r,i}return Ve(t,e),p(t,[{key:"dropdown",value:function(){var e=this.tag,t=this.value;return new Sn(e,t)}}])}(en);function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qn=function(){return!!e})()}var Yn=function(e){function t(e){return f(this,t),n=this,i=["bgcolor",void 0,e],r=Ue(r=t),He(n,qn()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i));var n,r,i}return Ve(t,e),p(t,[{key:"dropdown",value:function(){var e=this.tag,t=this.value;return new Sn(e,t)}}])}(en);function Kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kn=function(){return!!e})()}var $n=function(e){function t(){var e;f(this,t);var n,r,i,a=vt.map((function(t){return y("div","".concat(ye,"-item")).on("click",(function(){e.setTitle("".concat(t.pt)),e.change(t)})).child("".concat(t.pt))}));return n=this,r=t,i=["10","60px",!0,"bottom-left"].concat(A(a)),r=Ue(r),e=He(n,Kn()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i))}return Ve(t,e),p(t)}(nn);function Jn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jn=function(){return!!e})()}var Xn=function(e){function t(){return f(this,t),e=this,r=["font-size"],n=Ue(n=t),He(e,Jn()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"getValue",value:function(e){return e.pt}},{key:"dropdown",value:function(){return new $n}}])}(en);function Zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zn=function(){return!!e})()}var er=function(e){function t(){var e;f(this,t);var n,r,i,a=mt.map((function(t){return y("div","".concat(ye,"-item")).on("click",(function(){e.setTitle(t.title),e.change(t)})).child(t.title)}));return n=this,r=t,i=[mt[0].title,"160px",!0,"bottom-left"].concat(A(a)),r=Ue(r),e=He(n,Zn()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i))}return Ve(t,e),p(t)}(nn);function tr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tr=function(){return!!e})()}var nr=function(e){function t(){return f(this,t),e=this,r=["font-name"],n=Ue(n=t),He(e,tr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new er}}])}(en);function rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rr=function(){return!!e})()}var ir=function(e){function t(){var e;f(this,t);var n,r,i,a=Et.slice(0);return a.splice(2,0,{key:"divider"}),a.splice(8,0,{key:"divider"}),a=a.map((function(t){var n=y("div","".concat(ye,"-item"));return"divider"===t.key?n.addClass("divider"):(n.child(t.title()).on("click",(function(){e.setTitle(t.title()),e.change(t)})),t.label&&n.child(y("div","label").html(t.label))),n})),n=this,r=t,i=["Normal","220px",!0,"bottom-left"].concat(A(a)),r=Ue(r),e=He(n,rr()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i))}return Ve(t,e),p(t,[{key:"setTitle",value:function(e){for(var t=0;t<Et.length;t+=1)Et[t].key===e&&this.title.html(Et[t].title());this.hide()}}])}(nn);function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ar=function(){return!!e})()}var or=function(e){function t(){return f(this,t),e=this,r=["format"],n=Ue(n=t),He(e,ar()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new ir}}])}(en);function sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sr=function(){return!!e})()}var cr=function(e){function t(){var e;f(this,t);var n,r,i,a=wt.map((function(t){return y("div","".concat(ye,"-item")).on("click",(function(){e.hide(),e.change(t)})).child(t.key)}));return n=this,r=t,i=[new qe("formula"),"180px",!0,"bottom-left"].concat(A(a)),r=Ue(r),e=He(n,sr()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i))}return Ve(t,e),p(t)}(nn);function lr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lr=function(){return!!e})()}var ur=function(e){function t(){return f(this,t),e=this,r=["formula"],n=Ue(n=t),He(e,lr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new cr}}])}(en);function hr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hr=function(){return!!e})()}var fr=function(e){function t(){return f(this,t),e=this,r=["freeze"],n=Ue(n=t),He(e,hr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(hn);function dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dr=function(){return!!e})()}var pr=function(e){function t(){return f(this,t),e=this,r=["merge"],n=Ue(n=t),He(e,dr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t,[{key:"setState",value:function(e,t){this.el.active(e).disabled(t)}}])}(hn);function gr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gr=function(){return!!e})()}var mr=function(e){function t(){return f(this,t),e=this,r=["redo","Ctrl+Y"],n=Ue(n=t),He(e,gr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(Fn);function vr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vr=function(){return!!e})()}var yr=function(e){function t(){return f(this,t),e=this,r=["undo","Ctrl+Z"],n=Ue(n=t),He(e,vr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(Fn);function Ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ar=function(){return!!e})()}var br=function(e){function t(){return f(this,t),e=this,r=["print","Ctrl+P"],n=Ue(n=t),He(e,Ar()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(Fn);function wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wr=function(){return!!e})()}var xr=function(e){function t(){return f(this,t),e=this,r=["textwrap"],n=Ue(n=t),He(e,wr()?Reflect.construct(n,r||[],Ue(e).constructor):n.apply(e,r));var e,n,r}return Ve(t,e),p(t)}(hn);function Cr(e,t,n){return t=Ue(t),He(e,_r()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}function _r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_r=function(){return!!e})()}var Ir=function(e){function t(){var e;f(this,t);var n=new qe("ellipsis"),r=y("div","".concat(ye,"-toolbar-more"));return(e=Cr(this,t,[n,"auto",!1,"bottom-right",r])).moreBtns=r,e.contentEl.css("max-width","420px"),e}return Ve(t,e),p(t)}(nn),Er=function(e){function t(){var e;return f(this,t),(e=Cr(this,t,["more"])).el.hide(),e}return Ve(t,e),p(t,[{key:"dropdown",value:function(){return new Ir}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])}(en);function kr(){return y("div","".concat(ye,"-toolbar-divider"))}function Sr(){var e=this;this.btns2=[],this.items.forEach((function(t){if(Array.isArray(t))t.forEach((function(t){var n=t.el,r=n.box(),i=n.computedStyle(),a=i.marginLeft,o=i.marginRight;e.btns2.push([n,r.width+parseInt(a,10)+parseInt(o,10)])}));else{var n=t.box(),r=t.computedStyle(),i=r.marginLeft,a=r.marginRight;e.btns2.push([t,n.width+parseInt(i,10)+parseInt(a,10)])}}))}function Br(){var e,t,n=this.el,r=this.btns,i=this.moreEl,a=this.btns2,o=i.dd,s=o.moreBtns,c=o.contentEl;n.css("width","".concat(this.widthFn(),"px"));var l=n.box(),u=160,f=12,d=[],p=[];a.forEach((function(e,t){var n=h(e,2),r=n[0],i=n[1];u+=i,t===a.length-1||u<l.width?d.push(r):(f+=i,p.push(r))})),(e=r.html("")).children.apply(e,d),(t=s.html("")).children.apply(t,p),c.css("width","".concat(f,"px")),p.length>0?i.show():i.hide()}function Mr(e){var t=this,n=new Xt;n.el.on("click",(function(){e.onClick&&e.onClick(t.data.getData(),t.data)})),n.tip=e.tip||"";var r=e.el;if(e.icon&&(r=y("img").attr("src",e.icon)),r){var i=y("div","".concat(ye,"-icon"));i.child(r),n.el.child(i)}return n}var Tr=p((function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(this,e),this.data=t,this.change=function(){},this.widthFn=n,this.isHide=i;var a=t.defaultStyle();this.items=[[this.undoEl=new yr,this.redoEl=new mr,new br,this.paintformatEl=new Gn,this.clearformatEl=new Hn],kr(),[this.formatEl=new or],kr(),[this.fontEl=new nr,this.fontSizeEl=new Xn],kr(),[this.boldEl=new gn,this.italicEl=new vn,this.underlineEl=new wn,this.strikeEl=new An,this.textColorEl=new Wn(a.color)],kr(),[this.fillColorEl=new Yn(a.bgcolor),this.borderEl=new jn,this.mergeEl=new pr],kr(),[this.alignEl=new sn(a.align),this.valignEl=new ln(a.valign),this.textwrapEl=new xr],kr(),[this.freezeEl=new fr,this.autofilterEl=new dn,this.formulaEl=new ur]];var o=t.settings.extendToolbar,s=void 0===o?{}:o;if(s.left&&s.left.length>0){this.items.unshift(kr());var c=s.left.map(Mr.bind(this));this.items.unshift(c)}if(s.right&&s.right.length>0){this.items.push(kr());var l=s.right.map(Mr.bind(this));this.items.push(l)}this.items.push([this.moreEl=new Er]),this.el=y("div","".concat(ye,"-toolbar")),this.btns=y("div","".concat(ye,"-toolbar-btns")),this.items.forEach((function(e){Array.isArray(e)?e.forEach((function(e){r.btns.child(e.el),e.change=function(){r.change.apply(r,arguments)}})):r.btns.child(e.el)})),this.el.child(this.btns),i?this.el.hide():(this.reset(),setTimeout((function(){Sr.call(r),Br.call(r)}),0),fe(window,"resize",(function(){Br.call(r)})))}),[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(e){this["".concat(e,"El")].click()}},{key:"resetData",value:function(e){this.data=e,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var e=this.data,t=e.getSelectedCellStyle();this.undoEl.setState(!e.canUndo()),this.redoEl.setState(!e.canRedo()),this.mergeEl.setState(e.canUnmerge(),!e.selector.multiple()),this.autofilterEl.setState(!e.canAutofilter());var n=t.font,r=t.format;this.formatEl.setState(r),this.fontEl.setState(n.name),this.fontSizeEl.setState(n.size),this.boldEl.setState(n.bold),this.italicEl.setState(n.italic),this.underlineEl.setState(t.underline),this.strikeEl.setState(t.strike),this.textColorEl.setState(t.color),this.fillColorEl.setState(t.bgcolor),this.alignEl.setState(t.align),this.valignEl.setState(t.valign),this.textwrapEl.setState(t.textwrap),this.freezeEl.setState(e.freezeIsActive())}}}]),Or=p((function e(t,n){var r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"600px";f(this,e),this.title=t,this.el=y("div","".concat(ye,"-modal")).css("width",a).children(y("div","".concat(ye,"-modal-header")).children(new qe("close").on("click.stop",(function(){return i.hide()})),this.title),(r=y("div","".concat(ye,"-modal-content"))).children.apply(r,A(n))).hide()}),[{key:"show",value:function(){var e=this;this.dimmer=y("div","".concat(ye,"-dimmer active")),document.body.appendChild(this.dimmer.el);var t=this.el.show().box(),n=t.width,r=t.height,i=document.documentElement,a=i.clientHeight,o=i.clientWidth;this.el.offset({left:(o-n)/2,top:(a-r)/3}),window.xkeydownEsc=function(t){27===t.keyCode&&e.hide()},fe(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),de(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}]),Dr=p((function e(t,n){var r=this;f(this,e),this.vchange=function(){},this.el=y("div","".concat(ye,"-form-input")),this.input=y("input","").css("width",t).on("input",(function(e){return r.vchange(e)})).attr("placeholder",n),this.el.child(this.input)}),[{key:"focus",value:function(){var e=this;setTimeout((function(){e.input.el.focus()}),10)}},{key:"hint",value:function(e){this.input.attr("placeholder",e)}},{key:"val",value:function(e){return this.input.val(e)}}]),Pr=p((function e(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};f(this,e),this.key=t,this.getTitle=a,this.vchange=function(){},this.el=y("div","".concat(ye,"-form-select")),this.suggest=new ze(n.map((function(e){return{key:e,title:i.getTitle(e)}})),(function(e){i.itemClick(e.key),o(e.key),i.vchange(e.key)}),r,this.el),this.el.children(this.itemEl=y("div","input-text").html(this.getTitle(t)),this.suggest.el).on("click",(function(){return i.show()}))}),[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(e){this.key=e,this.itemEl.html(this.getTitle(e))}},{key:"val",value:function(e){return void 0!==e?(this.key=e,this.itemEl.html(this.getTitle(e)),this):this.key}}]),Lr={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},Qr=p((function e(t,n,r,i){var a=this;f(this,e),this.label="",this.rule=n,r&&(this.label=y("label","label").css("width","".concat(i,"px")).html(r)),this.tip=y("div","tip").child("tip").hide(),this.input=t,this.input.vchange=function(){return a.validate()},this.el=y("div","".concat(ye,"-form-field")).children(this.label,t.el,this.tip)}),[{key:"isShow",value:function(){return"none"!==this.el.css("display")}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(e){return this.input.val(e)}},{key:"hint",value:function(e){this.input.hint(e)}},{key:"validate",value:function(){var e=this.input,t=this.rule,n=this.tip,r=this.el,i=e.val();return t.required&&/^\s*$/.test(i)?(n.html(W("validation.required")),r.addClass("error"),!1):!t.type&&!t.pattern||(t.pattern||Lr[t.type]).test(i)?(r.removeClass("error"),!0):(n.html(W("validation.notMatch")),r.addClass("error"),!1)}}]);function Rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rr=function(){return!!e})()}var jr=function(e){function t(){var e;f(this,t);var n,r,i,a=new Qr(new Pr("cell",["cell"],"100%",(function(e){return W("dataValidation.modeType.".concat(e))})),{required:!0},"".concat(W("dataValidation.range"),":"),100),o=new Qr(new Dr("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),s=new Qr(new Pr("list",["list","number","date","phone","email"],"100%",(function(e){return W("dataValidation.type.".concat(e))}),(function(t){return e.criteriaSelected(t)})),{required:!0},"".concat(W("dataValidation.criteria"),":"),100),c=new Qr(new Pr("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",(function(e){return W("dataValidation.operator.".concat(e))}),(function(t){return e.criteriaOperatorSelected(t)})),{required:!0}).hide(),l=new Qr(new Dr("70px","10"),{required:!0}).hide(),u=new Qr(new Dr("70px","100"),{required:!0,type:"number"}).hide(),h=new Qr(new Dr("120px","a,b,c"),{required:!0}),d=new Qr(new Dr("70px","10"),{required:!0,type:"number"}).hide();return n=this,r=t,i=[W("contextmenu.validation"),[y("div","".concat(ye,"-form-fields")).children(a.el,o.el),y("div","".concat(ye,"-form-fields")).children(s.el,c.el,l.el,u.el,d.el,h.el),y("div","".concat(ye,"-buttons")).children(new ct("cancel").on("click",(function(){return e.btnClick("cancel")})),new ct("remove").on("click",(function(){return e.btnClick("remove")})),new ct("save","primary").on("click",(function(){return e.btnClick("save")})))]],r=Ue(r),(e=He(n,Rr()?Reflect.construct(r,i||[],Ue(n).constructor):r.apply(n,i))).mf=a,e.rf=o,e.cf=s,e.of=c,e.minvf=l,e.maxvf=u,e.vf=d,e.svf=h,e.change=function(){},e}return Ve(t,e),p(t,[{key:"showVf",value:function(e){var t="date"===e?"2018-11-12":"10",n=this.vf;n.input.hint(t),n.show()}},{key:"criteriaSelected",value:function(e){var t=this.of,n=this.minvf,r=this.maxvf,i=this.vf,a=this.svf;"date"===e||"number"===e?(t.show(),n.rule.type=e,r.rule.type=e,"date"===e?(n.hint("2018-11-12"),r.hint("2019-11-12")):(n.hint("10"),r.hint("100")),n.show(),r.show(),i.hide(),a.hide()):("list"===e?a.show():a.hide(),i.hide(),t.hide(),n.hide(),r.hide())}},{key:"criteriaOperatorSelected",value:function(e){if(e){var t=this.minvf,n=this.maxvf,r=this.vf;if("be"===e||"nbe"===e)t.show(),n.show(),r.hide();else{var i=this.cf.val();r.rule.type=i,"date"===i?r.hint("2018-11-12"):r.hint("10"),r.show(),t.hide(),n.hide()}}}},{key:"btnClick",value:function(e){if("cancel"===e)this.hide();else if("remove"===e)this.change("remove"),this.hide();else if("save"===e){for(var t=["mf","rf","cf","of","svf","vf","minvf","maxvf"],n=0;n<t.length;n+=1){var r=this[t[n]];if(r.isShow()&&!r.validate())return}var i=this.mf.val(),a=this.rf.val(),o=this.cf.val(),s=this.of.val(),c=this.svf.val();"number"!==o&&"date"!==o||(c="be"===s||"nbe"===s?[this.minvf.val(),this.maxvf.val()]:this.vf.val()),this.change("save",i,a,{type:o,operator:s,required:!1,value:c}),this.hide()}}},{key:"setValue",value:function(e){if(e){var t=this.mf,n=this.rf,r=this.cf,i=this.of,a=this.svf,o=this.vf,s=this.minvf,c=this.maxvf,l=e.mode,u=e.ref,h=e.validator||{type:"list"},f=h.type,d=h.operator,p=h.value;t.val(l||"cell"),n.val(u),r.val(f),i.val(d),Array.isArray(p)?(s.val(p[0]),c.val(p[1])):(a.val(p||""),o.val(p||"")),this.criteriaSelected(f),this.criteriaOperatorSelected(d)}this.show()}}])}(Or);function Nr(e){return y("div","".concat(ye,"-item ").concat(e))}function Fr(e){var t=this;return Nr("state").child(W("sort.".concat(e))).on("click.stop",(function(){return t.itemClick(e)}))}function zr(e){var t=this,n=this.filterbEl,r=this.filterValues;n.html(""),Object.keys(e).forEach((function(i,a){var o=e[i],s=r.includes(i)?"checked":"";n.child(y("div","".concat(ye,"-item state ").concat(s)).on("click.stop",(function(){return t.filterClick(a,i)})).children(""===i?W("filter.empty"):i,y("div","label").html("(".concat(o,")"))))}))}function Hr(){var e=this.filterhEl,t=this.filterValues,n=this.values;e.html("".concat(t.length," / ").concat(n.length)),e.checked(t.length===n.length)}var Ur=p((function e(){var t=this;f(this,e),this.filterbEl=y("div","".concat(ye,"-body")),this.filterhEl=y("div","".concat(ye,"-header state")).on("click.stop",(function(){return t.filterClick(0,"all")})),this.el=y("div","".concat(ye,"-sort-filter")).children(this.sortAscEl=Fr.call(this,"asc"),this.sortDescEl=Fr.call(this,"desc"),Nr("divider"),y("div","".concat(ye,"-filter")).children(this.filterhEl,this.filterbEl),y("div","".concat(ye,"-buttons")).children(new ct("cancel").on("click",(function(){return t.btnClick("cancel")})),new ct("ok","primary").on("click",(function(){return t.btnClick("ok")})))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]}),[{key:"btnClick",value:function(e){if("ok"===e){var t=this.ci,n=this.sort,r=this.filterValues;this.ok&&this.ok(t,n,"in",r)}this.hide()}},{key:"itemClick",value:function(e){this.sort=e;var t=this.sortAscEl,n=this.sortDescEl;t.checked("asc"===e),n.checked("desc"===e)}},{key:"filterClick",value:function(e,t){var n=this.filterbEl,r=this.filterValues,i=this.values,a=n.children();"all"===t?a.length===r.length?(this.filterValues=[],a.forEach((function(e){return y(e).checked(!1)}))):(this.filterValues=Array.from(i),a.forEach((function(e){return y(e).checked(!0)}))):y(a[e]).toggle("checked")?r.push(t):r.splice(r.findIndex((function(e){return e===t})),1),Hr.call(this)}},{key:"set",value:function(e,t,n,r){this.ci=e;var i=this.sortAscEl,a=this.sortDescEl;null!==r?(this.sort=r.order,i.checked(r.asc()),a.checked(r.desc())):(this.sortDesc=null,i.checked(!1),a.checked(!1)),this.values=Object.keys(t),this.filterValues=n?Array.from(n.value):Object.keys(t),zr.call(this,t,n),Hr.call(this)}},{key:"setOffset",value:function(e){var t=this;this.el.offset(e).show();var n=1;ge(this.el,(function(){n<=0&&t.hide(),n-=1}))}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide(),pe(this.el)}}]);function Gr(e,t){var n=y("div","".concat(ye,"-toast")),r=y("div","".concat(ye,"-dimmer active"));n.children(y("div","".concat(ye,"-toast-header")).children(new qe("close").on("click.stop",(function(){return document.body.removeChild(n.el),void document.body.removeChild(r.el)})),e),y("div","".concat(ye,"-toast-content")).html(t)),document.body.appendChild(n.el),document.body.appendChild(r.el);var i=n.box(),a=i.width,o=i.height,s=document.documentElement,c=s.clientHeight,l=s.clientWidth;n.offset({left:(l-a)/2,top:(c-o)/3})}function Vr(e,t){var n,r=this;return function(){for(var i=r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var c=o;n||(n=setTimeout((function(){n=null,e.apply(i,c)}),t))}}function Wr(){var e=this.data,t=this.verticalScrollbar,n=this.horizontalScrollbar,r=e.getSelectedRect(),i=r.l,a=r.t,o=r.left,s=r.top,c=r.width,l=r.height,u=this.getTableOffset();if(Math.abs(o)+c>u.width)n.move({left:i+c-u.width});else{var h=e.freezeTotalWidth();o<h&&n.move({left:i-1-h})}if(Math.abs(s)+l>u.height)t.move({top:a+l-u.height-1});else{var f=e.freezeTotalHeight();s<f&&t.move({top:a-1-f})}}function qr(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==t||-1!==n){this.table;var a=this.selector;this.toolbar;var o=this.data,s=this.contextMenu,c=o.getCell(t,n);e?(a.setEnd(t,n,i),this.trigger("cells-selected",c,a.range)):(a.set(t,n,r),this.trigger("cell-selected",c,t,n)),s.setMode(-1===t||-1===n?"row-col":"range")}}function Yr(e,t){var n=this.selector,r=this.data,i=r.rows,a=r.cols,o=h(n.indexes,2),s=o[0],c=o[1],l=n.range,u=l.eri,f=l.eci;if(e){var d=h(n.moveIndexes,2);s=d[0],c=d[1]}"left"===t?c>0&&(c-=1):"right"===t?(f!==c&&(c=f),c<a.len-1&&(c+=1)):"up"===t?s>0&&(s-=1):"down"===t?(u!==s&&(s=u),s<i.len-1&&(s+=1)):"row-first"===t?c=0:"row-last"===t?c=a.len-1:"col-first"===t?s=0:"col-last"===t&&(s=i.len-1),e&&(n.moveIndexes=[s,c]),qr.call(this,e,s,c),Wr.call(this)}function Kr(e){if(0===e.buttons&&e.target.className!=="".concat(ye,"-resizer-hover")){var t=e.offsetX,n=e.offsetY,r=this.rowResizer,i=this.colResizer,a=this.tableEl,o=this.data,s=o.rows,c=o.cols;if(t>c.indexWidth&&n>s.height)return r.hide(),void i.hide();var l=a.box(),u=o.getCellRectByXY(e.offsetX,e.offsetY);u.ri>=0&&-1===u.ci?(u.width=c.indexWidth,r.show(u,{width:l.width}),s.isHide(u.ri-1)?r.showUnhide(u.ri):r.hideUnhide()):r.hide(),-1===u.ri&&u.ci>=0?(u.height=s.height,i.show(u,{height:l.height}),c.isHide(u.ci-1)?i.showUnhide(u.ci):i.hideUnhide()):i.hide()}}function $r(e){var t=this.verticalScrollbar,n=this.horizontalScrollbar,r=this.data,i=t.scroll().top,a=n.scroll().left,o=r.rows,s=r.cols,c=e.deltaY,l=e.deltaX,u=function(e,t){var n=e,r=0;do{r=t(n),n+=1}while(r<=0);return r},h=function(e){if(e>0){var n=r.scroll.ri+1;if(n<o.len){var a=u(n,(function(e){return o.getHeight(e)}));t.move({top:i+a-1})}}else{var s=r.scroll.ri-1;if(s>=0){var c=u(s,(function(e){return o.getHeight(e)}));t.move({top:0===s?0:i-c})}}},f=Math.abs(c),d=Math.abs(l),p=Math.max(f,d);/Firefox/i.test(window.navigator.userAgent)&&Vr(h(e.detail),50),p===d&&Vr(function(e){if(e>0){var t=r.scroll.ci+1;if(t<s.len){var i=u(t,(function(e){return s.getWidth(e)}));n.move({left:a+i-1})}}else{var o=r.scroll.ci-1;if(o>=0){var c=u(o,(function(e){return s.getWidth(e)}));n.move({left:0===o?0:a-c})}}}(l),50),p===f&&Vr(h(c),50)}function Jr(e,t){var n=this.verticalScrollbar,r=this.horizontalScrollbar,i=n.scroll().top,a=r.scroll().left;"left"===e||"right"===e?r.move({left:a-t}):"up"!==e&&"down"!==e||n.move({top:i-t})}function Xr(){var e=this.data,t=this.verticalScrollbar,n=this.getTableOffset().height,r=e.exceptRowTotalHeight(0,-1);t.set(n,e.rows.totalHeight()-r)}function Zr(){var e=this.data,t=this.horizontalScrollbar,n=this.getTableOffset().width;e&&t.set(n,e.cols.totalWidth())}function ei(){var e=this.selector,t=this.data,n=this.editor,r=h(t.freeze,2),i=r[0],a=r[1];if(i>0||a>0){var o=t.freezeTotalWidth(),s=t.freezeTotalHeight();n.setFreezeLengths(o,s)}e.resetAreaOffset()}function ti(){var e=this.tableEl,t=this.overlayerEl,n=this.overlayerCEl,r=this.table,i=this.toolbar,a=this.selector,o=this.el,s=this.getTableOffset(),c=this.getRect();e.attr(c),t.offset(c),n.offset(s),o.css("width","".concat(c.width,"px")),Xr.call(this),Zr.call(this),ei.call(this),r.render(),i.reset(),a.reset()}function ni(){var e=this.data,t=this.selector;e.clearClipboard(),t.hideClipboard()}function ri(e){var t=this.data,n=this.selector;"read"!==t.settings.mode&&(t.copy(),t.copyToSystemClipboard(e),n.showClipboard())}function ii(){var e=this.data,t=this.selector;"read"!==e.settings.mode&&(e.cut(),t.showClipboard())}function ai(e,t){var n=this,r=this.data;if("read"!==r.settings.mode)if(r.clipboard.isClear())r.pasteFromSystemClipboard((function(){return ti.call(n)}),(function(e){n.trigger("pasted-clipboard",e)}));else if(r.paste(e,(function(e){return Gr("Tip",e)})))ti.call(this);else if(t){var i=t.clipboardData.getData("text/plain");this.data.pasteFromText(i),ti.call(this)}}function oi(){this.data.hideRowsOrCols(),ti.call(this)}function si(e,t){this.data.unhideRowsOrCols(e,t),ti.call(this)}function ci(){this.data.autofilter(),ti.call(this)}function li(){var e=this.toolbar;e.paintformatActive()&&(ai.call(this,"format"),ni.call(this),e.paintformatToggle())}function ui(e){var t=this,n=this.selector,r=this.data,i=this.table,a=this.sortFilter,o=e.offsetX,s=e.offsetY,c=e.target.className==="".concat(ye,"-selector-corner"),l=r.getCellRectByXY(o,s),u=l.left,h=l.top,f=l.width,d=l.height,p=l.ri,g=l.ci,m=r.autoFilter;if(m.includes(p,g)&&u+f-20<o&&h+d-20<s){var v=m.items(g,(function(e,t){return r.rows.getCell(e,t)}));return a.hide(),a.set(g,v,m.getFilter(g),m.getSort(g)),void a.setOffset({left:u,top:h+d+2})}e.shiftKey||(c?n.showAutofill(p,g):qr.call(this,!1,p,g),me(window,(function(e){var i=r.getCellRectByXY(e.offsetX,e.offsetY);p=i.ri,g=i.ci,c?n.showAutofill(p,g):1!==e.buttons||e.shiftKey||qr.call(t,!0,p,g,!0,!0)}),(function(){c&&n.arange&&"read"!==r.settings.mode&&r.autofill(n.arange,"all",(function(e){return Gr("Tip",e)}))&&i.render(),n.hideAutofill(),li.call(t)}))),c||1!==e.buttons||e.shiftKey&&qr.call(this,!0,p,g)}function hi(){var e=this.editor,t=this.data.getSelectedRect(),n=this.getTableOffset(),r="top";t.top>n.height/2&&(r="bottom"),e.setOffset(t,r)}function fi(){var e=this.editor,t=this.data;"read"!==t.settings.mode&&(hi.call(this),e.setCell(t.getSelectedCell(),t.getSelectedValidator()),ni.call(this))}function di(e){var t=this,n=this.data,r=this.table,i=this.selector;n.scrolly(e,(function(){i.resetBRLAreaOffset(),hi.call(t),r.render()}))}function pi(e){var t=this,n=this.data,r=this.table,i=this.selector;n.scrollx(e,(function(){i.resetBRTAreaOffset(),hi.call(t),r.render()}))}function gi(e,t){var n=e.ri,r=this.table,i=this.selector,a=this.data,o=i.range,s=o.sri,c=o.eri;if(n>=s&&n<=c)for(var l=s;l<=c;l+=1)a.rows.setHeight(l,t);else a.rows.setHeight(n,t);r.render(),i.resetAreaOffset(),Xr.call(this),hi.call(this)}function mi(e,t){var n=e.ci,r=this.table,i=this.selector,a=this.data,o=i.range,s=o.sci,c=o.eci;if(n>=s&&n<=c)for(var l=s;l<=c;l+=1)a.cols.setWidth(l,t);else a.cols.setWidth(n,t);r.render(),i.resetAreaOffset(),Zr.call(this),hi.call(this)}function vi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"finished",n=this.data,r=this.table;if("read"!==n.settings.mode){n.setSelectedCellText(e,t);var i=n.selector,a=i.ri,o=i.ci;"finished"===t?r.render():this.trigger("cell-edited",e,a,o)}}function yi(e){var t=this.data;"read"!==t.settings.mode&&("insert-row"===e?t.insert("row"):"delete-row"===e?t.delete("row"):"insert-column"===e?t.insert("column"):"delete-column"===e?t.delete("column"):"delete-cell"===e?t.deleteCell():"delete-cell-format"===e?t.deleteCell("format"):"delete-cell-text"===e?t.deleteCell("text"):"cell-printable"===e?t.setSelectedCellAttr("printable",!0):"cell-non-printable"===e?t.setSelectedCellAttr("printable",!1):"cell-editable"===e?t.setSelectedCellAttr("editable",!0):"cell-non-editable"===e&&t.setSelectedCellAttr("editable",!1),ni.call(this),ti.call(this))}function Ai(e,t){var n=this.data;if("undo"===e)this.undo();else if("redo"===e)this.redo();else if("print"===e)this.print.preview();else if("paintformat"===e)!0===t?ri.call(this):ni.call(this);else if("clearformat"===e)yi.call(this,"delete-cell-format");else if("link"===e);else if("chart"===e);else if("autofilter"===e)ci.call(this);else if("freeze"===e)if(t){var r=n.selector,i=r.ri,a=r.ci;this.freeze(i,a)}else this.freeze(0,0);else n.setSelectedCellAttr(e,t),"formula"!==e||n.selector.multiple()||fi.call(this),ti.call(this)}function bi(e,t,n,r){this.data.setAutoFilter(e,t,n,r),ti.call(this)}function wi(){var e,t,n,r,i,a,o=this,s=this.selector,c=this.overlayerEl,l=this.rowResizer,u=this.colResizer,h=this.verticalScrollbar,f=this.horizontalScrollbar,d=this.editor,p=this.contextMenu,g=this.toolbar,m=this.modalValidation,v=this.sortFilter;c.on("mousemove",(function(e){Kr.call(o,e)})).on("mousedown",(function(e){p.hide(),2===e.buttons?(o.data.xyInSelectedRect(e.offsetX,e.offsetY)||ui.call(o,e),p.setPosition(e.offsetX,e.offsetY),e.stopPropagation()):2===e.detail?fi.call(o):ui.call(o,e)})).on("mousewheel.stop",(function(e){$r.call(o,e)})).on("mouseout",(function(e){var t=e.offsetX;e.offsetY<=0&&u.hide(),t<=0&&l.hide()})),s.inputChange=function(e){vi.call(o,e,"input"),fi.call(o)},e=c.el,n=(t={move:function(e,t){Jr.call(o,e,t)}}).move,r=t.end,i=0,a=0,fe(e,"touchstart",(function(e){var t=e.touches[0],n=t.pageX,r=t.pageY;i=n,a=r})),fe(e,"touchmove",(function(e){if(n){var t=e.changedTouches[0],r=t.pageX,o=t.pageY,s=r-i,c=o-a;(Math.abs(s)>10||Math.abs(c)>10)&&(ve(s,c,e,n),i=r,a=o),e.preventDefault()}})),fe(e,"touchend",(function(e){if(r){var t=e.changedTouches[0],n=t.pageX,o=t.pageY;ve(n-i,o-a,e,r)}})),g.change=function(e,t){return Ai.call(o,e,t)},v.ok=function(e,t,n,r){return bi.call(o,e,t,n,r)},l.finishedFn=function(e,t){gi.call(o,e,t)},u.finishedFn=function(e,t){mi.call(o,e,t)},l.unhideFn=function(e){si.call(o,"row",e)},u.unhideFn=function(e){si.call(o,"col",e)},h.moveFn=function(e,t){di.call(o,e,t)},f.moveFn=function(e,t){pi.call(o,e,t)},d.change=function(e,t){vi.call(o,t,e)},m.change=function(e){if("save"===e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=o.data).addValidation.apply(t,r)}else o.data.removeValidation()},p.itemClick=function(e){"validation"===e?m.setValue(o.data.getSelectedValidation()):"copy"===e?ri.call(o):"cut"===e?ii.call(o):"paste"===e?ai.call(o,"all"):"paste-value"===e?ai.call(o,"text"):"paste-format"===e?ai.call(o,"format"):"hide"===e?oi.call(o):yi.call(o,e)},fe(window,"resize",(function(){o.reload()})),fe(window,"click",(function(e){o.focusing=c.contains(e.target)})),fe(window,"paste",(function(e){o.focusing&&(ai.call(o,"all",e),e.preventDefault())})),fe(window,"copy",(function(e){o.focusing&&(ri.call(o,e),e.preventDefault())})),fe(window,"keydown",(function(e){if(o.focusing){var t=e.keyCode||e.which,n=e.key,r=e.ctrlKey,i=e.shiftKey,a=e.metaKey;if(r||a)switch(t){case 90:o.undo(),e.preventDefault();break;case 89:o.redo(),e.preventDefault();break;case 67:case 86:break;case 88:ii.call(o),e.preventDefault();break;case 85:g.trigger("underline"),e.preventDefault();break;case 37:Yr.call(o,i,"row-first"),e.preventDefault();break;case 38:Yr.call(o,i,"col-first"),e.preventDefault();break;case 39:Yr.call(o,i,"row-last"),e.preventDefault();break;case 40:Yr.call(o,i,"col-last"),e.preventDefault();break;case 32:qr.call(o,!1,-1,o.data.selector.ci,!1),e.preventDefault();break;case 66:g.trigger("bold");break;case 73:g.trigger("italic")}else{switch(t){case 32:i&&qr.call(o,!1,o.data.selector.ri,-1,!1);break;case 27:p.hide(),ni.call(o);break;case 37:Yr.call(o,i,"left"),e.preventDefault();break;case 38:Yr.call(o,i,"up"),e.preventDefault();break;case 39:Yr.call(o,i,"right"),e.preventDefault();break;case 40:Yr.call(o,i,"down"),e.preventDefault();break;case 9:d.clear(),Yr.call(o,!1,i?"left":"right"),e.preventDefault();break;case 13:d.clear(),Yr.call(o,!1,i?"up":"down"),e.preventDefault();break;case 8:yi.call(o,"delete-cell-text"),e.preventDefault()}"Delete"===n?(yi.call(o,"delete-cell-text"),e.preventDefault()):t>=65&&t<=90||t>=48&&t<=57||t>=96&&t<=105||"="===e.key?(vi.call(o,e.key,"input"),fi.call(o)):113===t&&fi.call(o)}}}))}var xi=p((function e(t,n){var r=this;f(this,e),this.eventMap=function(){var e=new Map;function t(t,n){var r;return e.has(t)&&(r=e.get(t),Array.isArray(r)&&r.push(n)||!1)||e.set(t,[].concat(n))}function n(t,n){var r,i;return e.has(t)&&(i=(r=e.get(t)).indexOf(n))>=0&&r.splice(i,1)&&0===e.get(t).length&&e.delete(t)}return{get current(){return e},on:t,once:function(e,r){var i=function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];r.call.apply(r,[null].concat(a)),n(e,i)};return t(e,i)},fire:function(t,n){return e.has(t)&&function(){var r,i=ue(e.get(t));try{for(i.s();!(r=i.n()).done;){var a=r.value;a.call.apply(a,[null].concat(A(n)))}}catch(e){i.e(e)}finally{i.f()}}()},removeListener:n,removeAllListeners:function(){e.clear()}}}();var i=n.settings,a=i.view,o=i.showToolbar,s=i.showContextmenu;this.el=y("div","".concat(ye,"-sheet")),this.toolbar=new Tr(n,a.width,!o),this.print=new Wt(n),t.children(this.toolbar.el,this.el,this.print.el),this.data=n,this.tableEl=y("canvas","".concat(ye,"-table")),this.rowResizer=new Ae(!1,n.rows.height),this.colResizer=new Ae(!0,n.cols.minWidth),this.verticalScrollbar=new be(!0),this.horizontalScrollbar=new be(!1),this.editor=new ot(xt,(function(){return r.getTableOffset()}),n.rows.height),this.modalValidation=new jr,this.contextMenu=new $t((function(){return r.getRect()}),!s),this.selector=new Qe(n),this.overlayerCEl=y("div","".concat(ye,"-overlayer-content")).children(this.editor.el,this.selector.el),this.overlayerEl=y("div","".concat(ye,"-overlayer")).child(this.overlayerCEl),this.sortFilter=new Ur,this.el.children(this.tableEl,this.overlayerEl.el,this.rowResizer.el,this.colResizer.el,this.verticalScrollbar.el,this.horizontalScrollbar.el,this.contextMenu.el,this.modalValidation.el,this.sortFilter.el),this.table=new Nt(this.tableEl.el,n),wi.call(this),ti.call(this)}),[{key:"on",value:function(e,t){return this.eventMap.on(e,t),this}},{key:"trigger",value:function(e){for(var t=this.eventMap,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.fire(e,r)}},{key:"resetData",value:function(e){this.editor.clear(),this.data=e,Xr.call(this),Zr.call(this),this.toolbar.resetData(e),this.print.resetData(e),this.selector.resetData(e),this.table.resetData(e)}},{key:"loadData",value:function(e){return this.data.setData(e),ti.call(this),this}},{key:"freeze",value:function(e,t){return this.data.setFreeze(e,t),ti.call(this),this}},{key:"undo",value:function(){this.data.undo(),ti.call(this)}},{key:"redo",value:function(){this.data.redo(),ti.call(this)}},{key:"reload",value:function(){return ti.call(this),this}},{key:"getRect",value:function(){var e=this.data;return{width:e.viewWidth(),height:e.viewHeight()}}},{key:"getTableOffset",value:function(){var e=this.data,t=e.rows,n=e.cols,r=this.getRect(),i=r.width,a=r.height;return{width:i-n.indexWidth,height:a-t.height,left:n.indexWidth,top:t.height}}}]);function Ci(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ci=function(){return!!e})()}var _i=function(e){function t(e){var n,r,i,a;return f(this,t),r=this,a=[new qe("ellipsis"),"auto",!1,"top-left"],i=Ue(i=t),(n=He(r,Ci()?Reflect.construct(i,a||[],Ue(r).constructor):i.apply(r,a))).contentClick=e,n}return Ve(t,e),p(t,[{key:"reset",value:function(e){var t=this,n=e.map((function(e,n){return y("div","".concat(ye,"-item")).css("width","150px").css("font-weight","normal").on("click",(function(){t.contentClick(n),t.hide()})).child(e)}));this.setContentChildren.apply(this,A(n))}},{key:"setTitle",value:function(){}}])}(nn),Ii=[{key:"delete",title:q("contextmenu.deleteSheet")}];function Ei(e){var t=this;return y("div","".concat(ye,"-item")).child(e.title()).on("click",(function(){t.itemClick(e.key),t.hide()}))}function ki(){var e=this;return Ii.map((function(t){return Ei.call(e,t)}))}var Si=p((function e(){var t;f(this,e),this.el=(t=y("div","".concat(ye,"-contextmenu")).css("width","160px")).children.apply(t,A(ki.call(this))).hide(),this.itemClick=function(){}}),[{key:"hide",value:function(){var e=this.el;e.hide(),pe(e)}},{key:"setOffset",value:function(e){var t=this.el;t.offset(e),t.show(),ge(t)}}]),Bi=p((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};f(this,e),this.swapFunc=r,this.updateFunc=a,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new _i((function(e){t.clickSwap2(t.items[e])})),this.contextMenu=new Si,this.contextMenu.itemClick=i,this.el=y("div","".concat(ye,"-bottombar")).children(this.contextMenu.el,this.menuEl=y("ul","".concat(ye,"-menu")).child(y("li","").children(new qe("add").on("click",(function(){n()})),y("span","").child(this.moreEl))))}),[{key:"addItem",value:function(e,t,n){var r=this;this.dataNames.push(e);var i=y("li",t?"active":"").child(e);i.on("click",(function(){r.clickSwap2(i)})).on("contextmenu",(function(e){if("read"!==n.mode){var t=e.target,a=t.offsetLeft,o=t.offsetHeight;r.contextMenu.setOffset({left:a,bottom:o+1}),r.deleteEl=i}})).on("dblclick",(function(){if("read"!==n.mode){var e=i.html(),t=new Dr("auto","");t.val(e),t.input.on("blur",(function(t){var n=t.target.value,i=r.dataNames.findIndex((function(t){return t===e}));r.renameItem(i,n)})),i.html("").child(t.el),t.focus()}})),t&&this.clickSwap(i),this.items.push(i),this.menuEl.child(i),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(e,t){this.dataNames.splice(e,1,t),this.moreEl.reset(this.dataNames),this.items[e].html("").child(t),this.updateFunc(e,t)}},{key:"clear",value:function(){var e=this;this.items.forEach((function(t){e.menuEl.removeChild(t.el)})),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var e=this.activeEl,t=this.deleteEl;if(this.items.length>1){var n=this.items.findIndex((function(e){return e===t}));if(this.items.splice(n,1),this.dataNames.splice(n,1),this.menuEl.removeChild(t.el),this.moreEl.reset(this.dataNames),e===t){var r=h(this.items,1)[0];return this.activeEl=r,this.activeEl.toggle(),[n,0]}return[n,-1]}return[-1]}},{key:"clickSwap2",value:function(e){var t=this.items.findIndex((function(t){return t===e}));this.clickSwap(e),this.activeEl.toggle(),this.swapFunc(t)}},{key:"clickSwap",value:function(e){null!==this.activeEl&&this.activeEl.toggle(),this.activeEl=e}}]);function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ti=p((function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e);var i=t;this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({showBottomBar:!0},r),this.sheetIndex=1,this.datas=[],"string"==typeof t&&(i=document.querySelector(t)),this.bottombar=this.options.showBottomBar?new Bi((function(){if("read"!==n.options.mode){var e=n.addSheet();n.sheet.resetData(e)}}),(function(e){var t=n.datas[e];n.sheet.resetData(t)}),(function(){n.deleteSheet()}),(function(e,t){n.datas[e].name=t,n.sheet.trigger("change")})):null,this.data=this.addSheet();var a=y("div","".concat(ye)).on("contextmenu",(function(e){return e.preventDefault()}));i.appendChild(a.el),this.sheet=new xi(a,this.data),null!==this.bottombar&&a.child(this.bottombar.el)}),[{key:"addSheet",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e||"sheet".concat(this.sheetIndex),i=new le(r,this.options);return i.change=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(e=t.sheet).trigger.apply(e,["change"].concat(r))},this.datas.push(i),null!==this.bottombar&&this.bottombar.addItem(r,n,this.options),this.sheetIndex+=1,i}},{key:"deleteSheet",value:function(){if(null!==this.bottombar){var e=h(this.bottombar.deleteItem(),2),t=e[0],n=e[1];t>=0&&(this.datas.splice(t,1),n>=0&&this.sheet.resetData(this.datas[n]),this.sheet.trigger("change"))}}},{key:"loadData",value:function(e){var t=Array.isArray(e)?e:[e];if(null!==this.bottombar&&this.bottombar.clear(),this.datas=[],t.length>0)for(var n=0;n<t.length;n+=1){var r=t[n],i=this.addSheet(r.name,0===n);i.setData(r),0===n&&this.sheet.resetData(i)}return this}},{key:"getData",value:function(){return this.datas.map((function(e){return e.getData()}))}},{key:"cellText",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.datas[r].setCellText(e,t,n,"finished"),this}},{key:"cell",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.datas[n].getCell(e,t)}},{key:"cellStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.datas[n].getCellStyle(e,t)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(e,t){return this.sheet.on(e,t),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(e){return this.sheet.on("change",e),this}}],[{key:"locale",value:function(e,t){Y(e,t)}}]);function Oi(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Di(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Oi(a,r,i,o,s,"next",e)}function s(e){Oi(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Pi(e,t){this.v=e,this.k=t}function Li(e){return new Pi(e,0)}function Qi(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Pi;Promise.resolve(s?o.v:o).then((function(n){if(s){var c="return"===t?"return":"next";if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(a.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}window&&(window.x_spreadsheet=function(e){return new Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},window.x_spreadsheet.locale=function(e,t){return Y(e,t)}),Qi.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Qi.prototype.next=function(e){return this._invoke("next",e)},Qi.prototype.throw=function(e){return this._invoke("throw",e)},Qi.prototype.return=function(e){return this._invoke("return",e)};var Ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ni={exports:{}},Fi={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Fi);var zi=Fi.exports;!function(e){var t=zi.default;function n(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),o=new D(r||[]);return s(a,"_invoke",{value:B(e,n,o)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}i.wrap=d;var g="suspendedStart",m="suspendedYield",v="executing",y="completed",A={};function b(){}function w(){}function x(){}var C={};f(C,l,(function(){return this}));var _=Object.getPrototypeOf,I=_&&_(_(P([])));I&&I!==a&&o.call(I,l)&&(C=I);var E=x.prototype=b.prototype=Object.create(C);function k(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,n){function r(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):n.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var i;s(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(a,a):a()}})}function B(e,t,n){var i=g;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:r,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=M(s,n);if(c){if(c===A)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===g)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var l=p(e,t,n);if("normal"===l.type){if(i=n.done?y:m,l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=y,n.method="throw",n.arg=l.arg)}}}function M(e,t){var n=t.method,i=e.iterator[n];if(i===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,M(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),A;var a=p(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,A;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,A):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=x,s(E,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,h,"GeneratorFunction"),i.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,h,"GeneratorFunction")),e.prototype=Object.create(E),e},i.awrap=function(e){return{__await:e}},k(S.prototype),f(S.prototype,u,(function(){return this})),i.AsyncIterator=S,i.async=function(e,t,n,r,a){void 0===a&&(a=Promise);var o=new S(d(e,t,n,r),a);return i.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(E),f(E,h,"Generator"),f(E,l,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),i.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},i.values=P,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=r),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),A}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ni);var Hi=(0,Ni.exports)(),Ui=Hi;try{regeneratorRuntime=Hi}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=Hi:Function("r","regeneratorRuntime = r")(Hi)}const Gi=ji(Ui);function Vi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wi={exports:{}};function qi(e,t,n,r){var i=Jt(Ue(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function Yi(e,t,n){return t=Ue(t),He(e,Ki()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}function Ki(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ki=function(){return!!e})()}function $i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ji(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ji(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new ta(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function ta(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(ta=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new ta(e)}Wi.exports=function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(!s&&Vi)return Vi(o);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){return i(t[o][1][e]||e)}),l,l.exports,e,t,n,r)}return n[o].exports}for(var a=Vi,o=0;o<r.length;o++)i(r[o]);return i}return e}()({1:[function(e,t,n){var r=e("fs"),i=e("fast-csv"),a=e("dayjs/plugin/customParseFormat"),o=e("dayjs/plugin/utc"),s=e("dayjs").extend(a).extend(o),c=e("../utils/stream-buf"),l=e("../utils/utils").fs.exists,u={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}},h=function(){function e(t){f(this,e),this.workbook=t,this.worksheet=null}return p(e,[{key:"readFile",value:function(){var e=Di(Gi.mark((function e(t,n){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},e.next=3,l(t);case 3:if(e.sent){e.next=5;break}throw new Error("File not found: ".concat(t));case 5:return i=r.createReadStream(t),e.next=8,this.read(i,n);case 8:return a=e.sent,i.close(),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"read",value:function(e,t){var n=this;return t=t||{},new Promise((function(r,a){var o=n.workbook.addWorksheet(t.sheetName),c=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],l=t.map||function(e){if(""===e)return null;var t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;var n=c.reduce((function(t,n){if(t)return t;var r=s(e,n,!0);return r.isValid()?r:null}),null);if(n)return new Date(n.valueOf());var r=u[e];return void 0!==r?r:e},h=i.parse(t.parserOptions).on("data",(function(e){o.addRow(e.map(l))})).on("end",(function(){h.emit("worksheet",o)}));h.on("worksheet",r).on("error",a),e.pipe(h)}))}},{key:"createInputStream",value:function(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"write",value:function(e,t){var n=this;return new Promise((function(r,a){t=t||{};var o=n.workbook.getWorksheet(t.sheetName||t.sheetId),c=i.format(t.formatterOptions);e.on("finish",(function(){r()})),c.on("error",a),c.pipe(e);var l=t,u=l.dateFormat,h=l.dateUTC,f=t.map||function(e){if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return u?h?s.utc(e).format(u):s(e).format(u):h?s.utc(e).format():s(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e},d=void 0===t.includeEmptyRows||t.includeEmptyRows,p=1;o&&o.eachRow((function(e,t){if(d)for(;p++<t-1;)c.write([]);var n=e.values;n.shift(),c.write(n.map(f)),p=t})),c.end()}))}},{key:"writeFile",value:function(e,t){var n={encoding:(t=t||{}).encoding||"utf8"},i=r.createWriteStream(e,n);return this.write(i,t)}},{key:"writeBuffer",value:function(){var e=Di(Gi.mark((function e(t){var n;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new c,e.next=3,this.write(n,t);case 3:return e.abrupt("return",n.read());case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}])}();t.exports=h},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,n){var r=e("../utils/col-cache"),i=function(){function e(t,n){f(this,e);var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=t,n)if("string"==typeof n){var a=r.decodeAddress(n);this.nativeCol=a.col+i,this.nativeColOff=0,this.nativeRow=a.row+i,this.nativeRowOff=0}else void 0!==n.nativeCol?(this.nativeCol=n.nativeCol||0,this.nativeColOff=n.nativeColOff||0,this.nativeRow=n.nativeRow||0,this.nativeRowOff=n.nativeRowOff||0):void 0!==n.col?(this.col=n.col+i,this.row=n.row+i):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return p(e,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}],[{key:"asInstance",value:function(t){return t instanceof e||null==t?t:new e(t)}}])}();t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,n){var r=e("../utils/col-cache"),i=e("../utils/under-dash"),a=e("./enums"),o=e("../utils/shared-formula").slideFormula,s=e("./note"),c=function(){function e(t,n,i){if(f(this,e),!t||!n)throw new Error("A Cell needs a Row");this._row=t,this._column=n,r.validateAddress(i),this._address=i,this._value=C.create(e.Types.Null,this),this.style=this._mergeStyle(t.style,n.style,{}),this._mergeCount=0}return p(e,[{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this.style.numFmt=e}},{key:"font",get:function(){return this.style.font},set:function(e){this.style.font=e}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this.style.alignment=e}},{key:"border",get:function(){return this.style.border},set:function(e){this.style.border=e}},{key:"fill",get:function(){return this.style.fill},set:function(e){this.style.fill=e}},{key:"protection",get:function(){return this.style.protection},set:function(e){this.style.protection=e}},{key:"_mergeStyle",value:function(e,t,n){var r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);var i=e&&e.font||t&&t.font;i&&(n.font=i);var a=e&&e.alignment||t&&t.alignment;a&&(n.alignment=a);var o=e&&e.border||t&&t.border;o&&(n.border=o);var s=e&&e.fill||t&&t.fill;s&&(n.fill=s);var c=e&&e.protection||t&&t.protection;return c&&(n.protection=c),n}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===e.Types.Merge}},{key:"merge",value:function(t,n){this._value.release(),this._value=C.create(e.Types.Merge,this,t),n||(this.style=t.style)}},{key:"unmerge",value:function(){this.type===e.Types.Merge&&(this._value.release(),this._value=C.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(t){return this._value.type===e.Types.Merge&&this._value.isMergedTo(t)}},{key:"master",get:function(){return this.type===e.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===e.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(t){this.type!==e.Types.Merge?(this._value.release(),this._value=C.create(C.getType(t),this,t)):this._value.master.value=t}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(e){this._comment=new s(e)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return i.escapeHtml(this.text)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(t){this.type===e.Types.String&&(this._value=C.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:t}))}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(e){this.names=[e]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(e){var t=this,n=this.workbook.definedNames;n.removeAllNames(this.fullAddress),e.forEach((function(e){n.addEx(t.fullAddress,e)}))}},{key:"addName",value:function(e){this.workbook.definedNames.addEx(this.fullAddress,e)}},{key:"removeName",value:function(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(e){this._dataValidations.add(this.address,e)}},{key:"model",get:function(){var e=this._value.model;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e},set:function(e){this._value.release(),this._value=C.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type&&(this._comment=s.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}])}();c.Types=a.ValueType;var l=function(){function e(t){f(this,e),this.model={address:t.address,type:c.Types.Null}}return p(e,[{key:"value",get:function(){return null},set:function(e){}},{key:"type",get:function(){return c.Types.Null}},{key:"effectiveType",get:function(){return c.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}}])}(),u=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.Number,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return c.Types.Number}},{key:"effectiveType",get:function(){return c.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),h=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.String,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return c.Types.String}},{key:"effectiveType",get:function(){return c.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),d=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.String,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"toString",value:function(){return this.model.value.richText.map((function(e){return e.text})).join("")}},{key:"type",get:function(){return c.Types.RichText}},{key:"effectiveType",get:function(){return c.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}}])}(),g=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.Date,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return c.Types.Date}},{key:"effectiveType",get:function(){return c.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),m=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.Hyperlink,text:n?n.text:void 0,hyperlink:n?n.hyperlink:void 0},n&&n.tooltip&&(this.model.tooltip=n.tooltip)}return p(e,[{key:"value",get:function(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e},set:function(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(e){this.model.text=e}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(e){this.model.hyperlink=e}},{key:"type",get:function(){return c.Types.Hyperlink}},{key:"effectiveType",get:function(){return c.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}}])}(),v=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.Merge,master:n?n.address:void 0},this._master=n,n&&n.addMergeRef()}return p(e,[{key:"value",get:function(){return this._master.value},set:function(e){e instanceof c?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}},{key:"isMergedTo",value:function(e){return e===this._master}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return c.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}}])}(),y=function(){function e(t,n){f(this,e),this.cell=t,this.model={address:t.address,type:c.Types.Formula,shareType:n?n.shareType:void 0,ref:n?n.ref:void 0,formula:n?n.formula:void 0,sharedFormula:n?n.sharedFormula:void 0,result:n?n.result:void 0}}return p(e,[{key:"_copyModel",value:function(e){var t={},n=function(n){var r=e[n];r&&(t[n]=r)};return n("formula"),n("result"),n("ref"),n("shareType"),n("sharedFormula"),t}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(e){this.model=this._copyModel(e)}},{key:"validate",value:function(e){switch(C.getType(e)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(e){this.model.formula=e}},{key:"formulaType",get:function(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(e){this.model.result=e}},{key:"type",get:function(){return c.Types.Formula}},{key:"effectiveType",get:function(){var e=this.model.result;return null==e?a.ValueType.Null:e instanceof String||"string"==typeof e?a.ValueType.String:"number"==typeof e?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=e&&o(e.formula,e.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}}])}(),A=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.SharedString,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return c.Types.SharedString}},{key:"effectiveType",get:function(){return c.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),b=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.Boolean,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return c.Types.Boolean}},{key:"effectiveType",get:function(){return c.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),w=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.Error,value:n}}return p(e,[{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return c.Types.Error}},{key:"effectiveType",get:function(){return c.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}}])}(),x=function(){function e(t,n){f(this,e),this.model={address:t.address,type:c.Types.String,value:JSON.stringify(n),rawValue:n}}return p(e,[{key:"value",get:function(){return this.model.rawValue},set:function(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}},{key:"type",get:function(){return c.Types.String}},{key:"effectiveType",get:function(){return c.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}},{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),C={getType:function(e){return null==e?c.Types.Null:e instanceof String||"string"==typeof e?c.Types.String:"number"==typeof e?c.Types.Number:"boolean"==typeof e?c.Types.Boolean:e instanceof Date?c.Types.Date:e.text&&e.hyperlink?c.Types.Hyperlink:e.formula||e.sharedFormula?c.Types.Formula:e.richText?c.Types.RichText:e.sharedString?c.Types.SharedString:e.error?c.Types.Error:c.Types.JSON},types:[{t:c.Types.Null,f:l},{t:c.Types.Number,f:u},{t:c.Types.String,f:h},{t:c.Types.Date,f:g},{t:c.Types.Hyperlink,f:m},{t:c.Types.Formula,f:y},{t:c.Types.Merge,f:v},{t:c.Types.JSON,f:x},{t:c.Types.SharedString,f:A},{t:c.Types.RichText,f:d},{t:c.Types.Boolean,f:b},{t:c.Types.Error,f:w}].reduce((function(e,t){return e[t.t]=t.f,e}),[]),create:function(e,t,n){var r=this.types[e];if(!r)throw new Error("Could not create Value of type ".concat(e));return new r(t,n)}};t.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,n){var r=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache"),o=9,s=function(){function e(t,n,r){f(this,e),this._worksheet=t,this._number=n,!1!==r&&(this.defn=r)}return p(e,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return a.n2l(this._number)}},{key:"isCustomWidth",get:function(){return void 0!==this.width&&this.width!==o}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:o,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(e){var t=this;void 0!==e?(this._header=e,this.headers.forEach((function(e,n){t._worksheet.getCell(n+1,t.number).value=e}))):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&r.isEqual(this.style,e.style)}},{key:"isDefault",get:function(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"eachCell",value:function(e,t){var n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(function(e,r){t(e.getCell(n),r)}))}},{key:"values",get:function(){var e=[];return this.eachCell((function(t,n){t&&t.type!==i.ValueType.Null&&(e[n]=t.value)})),e},set:function(e){var t=this;if(e){var n=this.number,r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((function(e,i){t._worksheet.getCell(i+r,n).value=e}))}}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this.eachCell((function(n){n[e]=t})),t}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}}],[{key:"toModel",value:function(e){var t=[],n=null;return e&&e.forEach((function(e,r){e.isDefault?n&&(n=null):n&&e.equivalentTo(n)?n.max=r+1:(n={min:r+1,max:r+1,width:void 0!==e.width?e.width:o,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(n))})),t.length?t:void 0}},{key:"fromModel",value:function(t,n){var r=[],i=1,a=0;for(n=(n=n||[]).sort((function(e,t){return e.min-t.min}));a<n.length;){for(var o=n[a++];i<o.min;)r.push(new e(t,i++));for(;i<=o.max;)r.push(new e(t,i++,o))}return r.length?r:null}}])}();t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,n){var r=function(){function e(t){f(this,e),this.model=t||{}}return p(e,[{key:"add",value:function(e,t){return this.model[e]=t}},{key:"find",value:function(e){return this.model[e]}},{key:"remove",value:function(e){this.model[e]=void 0}}])}();t.exports=r},{}],6:[function(e,t,n){var r=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("../utils/cell-matrix"),o=e("./range"),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,c=function(){function e(){f(this,e),this.matrixMap={}}return p(e,[{key:"getMatrix",value:function(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}},{key:"add",value:function(e,t){var n=i.decodeEx(e);this.addEx(n,t)}},{key:"addEx",value:function(e,t){var n=this.getMatrix(t);if(e.top)for(var r=e.left;r<=e.right;r++)for(var a=e.top;a<=e.bottom;a++){var o={sheetName:e.sheetName,address:i.n2l(r)+a,row:a,col:r};n.addCellEx(o)}else n.addCellEx(e)}},{key:"remove",value:function(e,t){var n=i.decodeEx(e);this.removeEx(n,t)}},{key:"removeEx",value:function(e,t){this.getMatrix(t).removeCellEx(e)}},{key:"removeAllNames",value:function(e){r.each(this.matrixMap,(function(t){t.removeCellEx(e)}))}},{key:"forEach",value:function(e){r.each(this.matrixMap,(function(t,n){t.forEach((function(t){e(n,t)}))}))}},{key:"getNames",value:function(e){return this.getNamesEx(i.decodeEx(e))}},{key:"getNamesEx",value:function(e){return r.map(this.matrixMap,(function(t,n){return t.findCellEx(e)&&n})).filter(Boolean)}},{key:"_explore",value:function(e,t){t.mark=!1;var n,r,i=t.sheetName,a=new o(t.row,t.col,t.row,t.col,i);function s(n,r){var o=e.findCellAt(i,n,t.col);return!(!o||!o.mark||(a[r]=n,o.mark=!1,0))}for(r=t.row-1;s(r,"top");r--);for(r=t.row+1;s(r,"bottom");r++);function c(t,n){var o=[];for(r=a.top;r<=a.bottom;r++){var s=e.findCellAt(i,r,t);if(!s||!s.mark)return!1;o.push(s)}a[n]=t;for(var c=0;c<o.length;c++)o[c].mark=!1;return!0}for(n=t.col-1;c(n,"left");n--);for(n=t.col+1;c(n,"right");n++);return a}},{key:"getRanges",value:function(e,t){var n=this;return(t=t||this.matrixMap[e])?(t.forEach((function(e){e.mark=!0})),{name:e,ranges:t.map((function(e){return e.mark&&n._explore(t,e)})).filter(Boolean).map((function(e){return e.$shortRange}))}):{name:e,ranges:[]}}},{key:"normaliseMatrix",value:function(e,t){e.forEachInSheet(t,(function(e,t,n){e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=i.n2l(n)+t))}))}},{key:"spliceRows",value:function(e,t,n,i){var a=this;r.each(this.matrixMap,(function(r){r.spliceRows(e,t,n,i),a.normaliseMatrix(r,e)}))}},{key:"spliceColumns",value:function(e,t,n,i){var a=this;r.each(this.matrixMap,(function(r){r.spliceColumns(e,t,n,i),a.normaliseMatrix(r,e)}))}},{key:"model",get:function(){var e=this;return r.map(this.matrixMap,(function(t,n){return e.getRanges(n,t)})).filter((function(e){return e.ranges.length}))},set:function(e){var t=this.matrixMap={};e.forEach((function(e){var n=t[e.name]=new a;e.ranges.forEach((function(e){s.test(e.split("!").pop()||"")&&n.addCell(e)}))}))}}])}();t.exports=c},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,n){t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,n){var r=e("../utils/col-cache"),i=e("./anchor"),a=function(){function e(t,n){f(this,e),this.worksheet=t,this.model=n}return p(e,[{key:"model",get:function(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}},set:function(e){var t=e.type,n=e.imageId,a=e.range,o=e.hyperlinks;if(this.type=t,this.imageId=n,"image"===t)if("string"==typeof a){var s=r.decode(a);this.range={tl:new i(this.worksheet,{col:s.left,row:s.top},-1),br:new i(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,a.tl,0),br:a.br&&new i(this.worksheet,a.br,0),ext:a.ext,editAs:a.editAs,hyperlinks:o||a.hyperlinks}}}])}();t.exports=a},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){var r=e("../utils/under-dash"),i=function(){function e(t){f(this,e),this.note=t}return p(e,[{key:"model",get:function(){var t=null;return t="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},r.deepMerge({},e.DEFAULT_CONFIGS,t)},set:function(e){var t=e.note,n=t.texts;1===n.length&&1===Object.keys(n[0]).length?this.note=n[0].text:this.note=t}}],[{key:"fromModel",value:function(t){var n=new e;return n.model=t,n}}])}();i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,n){var r=e("../utils/col-cache"),i=function(){function e(){f(this,e),this.decode(arguments)}return p(e,[{key:"setTLBR",value:function(e,t,n,i,a){if(arguments.length<4){var o=r.decodeAddress(e),s=r.decodeAddress(t);this.model={top:Math.min(o.row,s.row),left:Math.min(o.col,s.col),bottom:Math.max(o.row,s.row),right:Math.max(o.col,s.col),sheetName:n},this.setTLBR(o.row,o.col,s.row,s.col,a)}else this.model={top:Math.min(e,n),left:Math.min(t,i),bottom:Math.max(e,n),right:Math.max(t,i),sheetName:a}}},{key:"decode",value:function(t){switch(t.length){case 5:this.setTLBR(t[0],t[1],t[2],t[3],t[4]);break;case 4:this.setTLBR(t[0],t[1],t[2],t[3]);break;case 3:this.setTLBR(t[0],t[1],t[2]);break;case 2:this.setTLBR(t[0],t[1]);break;case 1:var n=t[0];if(n instanceof e)this.model={top:n.model.top,left:n.model.left,bottom:n.model.bottom,right:n.model.right,sheetName:n.sheetName};else if(n instanceof Array)this.decode(n);else if(n.top&&n.left&&n.bottom&&n.right)this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName};else{var i=r.decodeEx(n);i.top?this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName}:this.model={top:i.row,left:i.col,bottom:i.row,right:i.col,sheetName:i.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - ".concat(t.length))}}},{key:"top",get:function(){return this.model.top||1},set:function(e){this.model.top=e}},{key:"left",get:function(){return this.model.left||1},set:function(e){this.model.left=e}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(e){this.model.bottom=e}},{key:"right",get:function(){return this.model.right||1},set:function(e){this.model.right=e}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(e){this.model.sheetName=e}},{key:"_serialisedSheetName",get:function(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?"".concat(e,"!"):"'".concat(e,"'!"):""}},{key:"expand",value:function(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}},{key:"expandRow",value:function(e){if(e){var t=e.dimensions,n=e.number;t&&this.expand(n,t.min,n,t.max)}}},{key:"expandToAddress",value:function(e){var t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}},{key:"tl",get:function(){return r.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(r.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return r.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(r.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}},{key:"contains",value:function(e){var t=r.decodeEx(e);return this.containsEx(t)}},{key:"containsEx",value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}},{key:"forEachAddress",value:function(e){for(var t=this.left;t<=this.right;t++)for(var n=this.top;n<=this.bottom;n++)e(r.encodeAddress(n,t),n,t)}}])}();t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,n){var r=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache"),o=e("./cell"),s=function(){function e(t,n){f(this,e),this._worksheet=t,this._number=n,this._cells=[],this.style={},this.outlineLevel=0}return p(e,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(e){return this._cells[e-1]}},{key:"getCellEx",value:function(e){var t=this._cells[e.col-1];if(!t){var n=this._worksheet.getColumn(e.col);t=new o(this,n,e.address),this._cells[e.col-1]=t}return t}},{key:"getCell",value:function(e){if("string"==typeof e){var t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}},{key:"splice",value:function(e,t){for(var n=e+t,r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o,s,c,l=i.length-t,u=this._cells.length;if(l<0)for(o=e+i.length;o<=u;o++)c=this._cells[o-1],(s=this._cells[o-l-1])?((c=this.getCell(o)).value=s.value,c.style=s.style,c._comment=s._comment):c&&(c.value=null,c.style={},c._comment=void 0);else if(l>0)for(o=u;o>=n;o--)(s=this._cells[o-1])?((c=this.getCell(o+l)).value=s.value,c.style=s.style,c._comment=s._comment):this._cells[o+l-1]=void 0;for(o=0;o<i.length;o++)(c=this.getCell(e+o)).value=i[o],c.style={},c._comment=void 0}},{key:"eachCell",value:function(e,t){if(t||(t=e,e=null),e&&e.includeEmpty)for(var n=this._cells.length,r=1;r<=n;r++)t(this.getCell(r),r);else this._cells.forEach((function(e,n){e&&e.type!==i.ValueType.Null&&t(e,n+1)}))}},{key:"addPageBreak",value:function(e,t){var n=this._worksheet,r=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};r&&(a.min=r),n.rowBreaks.push(a)}},{key:"values",get:function(){var e=[];return this._cells.forEach((function(t){t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)})),e},set:function(e){var t=this;if(this._cells=[],e)if(e instanceof Array){var n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((function(e,r){void 0!==e&&(t.getCellEx({address:a.encodeAddress(t._number,r+n),row:t._number,col:r+n}).value=e)}))}else this._worksheet.eachColumnKey((function(n,r){void 0!==e[r]&&(t.getCellEx({address:a.encodeAddress(t._number,n.number),row:t._number,col:n.number}).value=e[r])}))}},{key:"hasValues",get:function(){return r.some(this._cells,(function(e){return e&&e.type!==i.ValueType.Null}))}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var e=0;return this.eachCell((function(){e++})),e}},{key:"dimensions",get:function(){var e=0,t=0;return this._cells.forEach((function(n){n&&n.type!==i.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))})),e>0?{min:e,max:t}:null}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this._cells.forEach((function(n){n&&(n[e]=t)})),t}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var e=[],t=0,n=0;return this._cells.forEach((function(r){if(r){var i=r.model;i&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(i))}})),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(e){var t,n=this;if(e.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],e.cells.forEach((function(e){if(e.type===o.Types.Merge);else{var r;if(e.address)r=a.decodeAddress(e.address);else if(t){var i=t.row,s=t.col+1;r={row:i,col:s,address:a.encodeAddress(i,s),$col$row:"$".concat(a.n2l(s),"$").concat(i)}}t=r,n.getCellEx(r).model=e}})),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}])}();t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,n){var r=e("../utils/col-cache"),i=function(){function e(t,n,r){f(this,e),this.table=t,this.column=n,this.index=r}return p(e,[{key:"_set",value:function(e,t){this.table.cacheState(),this.column[e]=t}},{key:"name",get:function(){return this.column.name},set:function(e){this._set("name",e)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(e){this.column.filterButton=e}},{key:"style",get:function(){return this.column.style},set:function(e){this.column.style=e}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(e){this._set("totalsRowLabel",e)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(e){this._set("totalsRowFunction",e)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(e){this._set("totalsRowResult",e)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(e){this._set("totalsRowFormula",e)}}])}(),a=function(){function e(t,n){f(this,e),this.worksheet=t,n&&(this.table=n,this.validate(),this.store())}return p(e,[{key:"getFormula",value:function(e){switch(e.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(e.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(e.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(e.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(e.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(e.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(e.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(e.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(e.name,"])");case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(e.totalsRowFunction))}}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"validate",value:function(){var e=this,t=this.table,n=function(e,t,n){void 0===e[t]&&(e[t]=n)};n(t,"headerRow",!0),n(t,"totalsRow",!1),n(t,"style",{}),n(t.style,"theme","TableStyleMedium2"),n(t.style,"showFirstColumn",!1),n(t.style,"showLastColumn",!1),n(t.style,"showRowStripes",!1),n(t.style,"showColumnStripes",!1);var i=function(e,t){if(!e)throw new Error(t)};i(t.ref,"Table must have ref"),i(t.columns,"Table must have column definitions"),i(t.rows,"Table must have row definitions"),t.tl=r.decodeAddress(t.ref);var a=t.tl,o=a.row,s=a.col;i(o>0,"Table must be on valid row"),i(s>0,"Table must be on valid col");var c=this.width,l=this.filterHeight,u=this.tableHeight;t.autoFilterRef=r.encode(o,s,o+l-1,s+c-1),t.tableRef=r.encode(o,s,o+u-1,s+c-1),t.columns.forEach((function(t,r){i(t.name,"Column ".concat(r," must have a name")),0===r?n(t,"totalsRowLabel","Total"):(n(t,"totalsRowFunction","none"),t.totalsRowFormula=e.getFormula(t))}))}},{key:"store",value:function(){var e=this,t=function(e,t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))},n=this.worksheet,r=this.table,i=r.tl,a=i.row,o=i.col,s=0;if(r.headerRow){var c=n.getRow(a+s++);r.columns.forEach((function(e,n){var r=e.style,i=e.name,a=c.getCell(o+n);a.value=i,t(a,r)}))}if(r.rows.forEach((function(e){var i=n.getRow(a+s++);e.forEach((function(e,n){var a=i.getCell(o+n);a.value=e,t(a,r.columns[n].style)}))})),r.totalsRow){var l=n.getRow(a+s++);r.columns.forEach((function(n,r){var i=l.getCell(o+r);if(0===r)i.value=n.totalsRowLabel;else{var a=e.getFormula(n);i.value=a?{formula:n.totalsRowFormula,result:n.totalsRowResult}:null}t(i,n.style)}))}}},{key:"load",value:function(e){var t=this,n=this.table,r=n.tl,i=r.row,a=r.col,o=0;if(n.headerRow){var s=e.getRow(i+o++);n.columns.forEach((function(e,t){s.getCell(a+t).value=e.name}))}if(n.rows.forEach((function(t){var n=e.getRow(i+o++);t.forEach((function(e,t){n.getCell(a+t).value=e}))})),n.totalsRow){var c=e.getRow(i+o++);n.columns.forEach((function(e,n){var r=c.getCell(a+n);0===n?r.value=e.totalsRowLabel:t.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}))}}},{key:"model",get:function(){return this.table},set:function(e){this.table=e}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var e=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var t=0;t<this._cache.tableHeight;t++)for(var n=this.worksheet.getRow(e.row+t),i=0;i<this._cache.width;i++)n.getCell(e.col+i).value=null;else{for(var a=this.tableHeight;a<this._cache.tableHeight;a++)for(var o=this.worksheet.getRow(e.row+a),s=0;s<this._cache.width;s++)o.getCell(e.col+s).value=null;for(var c=0;c<this.tableHeight;c++)for(var l=this.worksheet.getRow(e.row+c),u=this.width;u<this._cache.width;u++)l.getCell(e.col+u).value=null}this.store()}}},{key:"addRow",value:function(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}},{key:"removeRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}},{key:"getColumn",value:function(e){var t=this.table.columns[e];return new i(this,t,e)}},{key:"addColumn",value:function(e,t,n){this.cacheState(),void 0===n?(this.table.columns.push(e),this.table.rows.forEach((function(e,n){e.push(t[n])}))):(this.table.columns.splice(n,0,e),this.table.rows.forEach((function(e,r){e.splice(n,0,t[r])})))}},{key:"removeColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((function(n){n.splice(e,t)}))}},{key:"_assign",value:function(e,t,n){this.cacheState(),e[t]=n}},{key:"ref",get:function(){return this.table.ref},set:function(e){this._assign(this.table,"ref",e)}},{key:"name",get:function(){return this.table.name},set:function(e){this.table.name=e}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(e){this.table.displayName=e}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(e){this._assign(this.table,"headerRow",e)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(e){this._assign(this.table,"totalsRow",e)}},{key:"theme",get:function(){return this.table.style.name},set:function(e){this.table.style.name=e}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(e){this.table.style.showFirstColumn=e}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(e){this.table.style.showLastColumn=e}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(e){this.table.style.showRowStripes=e}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(e){this.table.style.showColumnStripes=e}}])}();t.exports=a},{"../utils/col-cache":19}],13:[function(e,t,n){var r=e("./worksheet"),i=e("./defined-names"),a=e("../xlsx/xlsx"),o=e("../csv/csv"),s=function(){function e(){f(this,e),this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}return p(e,[{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new o(this)),this._csv}},{key:"nextId",get:function(){for(var e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}},{key:"addWorksheet",value:function(e,t){var n=this.nextId;t&&("string"==typeof t?t={properties:{tabColor:{argb:t}}}:(t.argb||t.theme||t.indexed)&&(t={properties:{tabColor:t}}));var i=this._worksheets.reduce((function(e,t){return(t&&t.orderNo)>e?t.orderNo:e}),0),a=Object.assign({},t,{id:n,name:e,orderNo:i+1,workbook:this}),o=new r(a);return this._worksheets[n]=o,o}},{key:"removeWorksheetEx",value:function(e){delete this._worksheets[e.id]}},{key:"removeWorksheet",value:function(e){var t=this.getWorksheet(e);t&&t.destroy()}},{key:"getWorksheet",value:function(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((function(t){return t&&t.name===e})):void 0}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort((function(e,t){return e.orderNo-t.orderNo})).filter(Boolean)}},{key:"eachSheet",value:function(e){this.worksheets.forEach((function(t){e(t,t.id)}))}},{key:"definedNames",get:function(){return this._definedNames}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}},{key:"getImage",value:function(e){return this.media[e]}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((function(e){return e.model})),sheets:this.worksheets.map((function(e){return e.model})).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(e){var t=this;this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach((function(n){var i=n.id,a=n.name,o=n.state,s=e.sheets&&e.sheets.findIndex((function(e){return e.id===i}));(t._worksheets[i]=new r({id:i,name:a,orderNo:s,state:o,workbook:t})).model=n})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}])}();t.exports=s},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){var r=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("./range"),o=e("./row"),s=e("./column"),c=e("./enums"),l=e("./image"),u=e("./table"),h=e("./data-validations"),d=e("../utils/encryptor"),g=e("../utils/copy-style").copyStyle,m=function(){function e(t){f(this,e),t=t||{},this._workbook=t.workbook,this.id=t.id,this.orderNo=t.orderNo,this.name=t.name,this.state=t.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},t.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!t.pageSetup||!t.pageSetup.fitToWidth&&!t.pageSetup.fitToHeight||t.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},t.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},t.headerFooter),this.dataValidations=new h,this.views=t.views||[],this.autoFilter=t.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return p(e,[{key:"name",get:function(){return this._name},set:function(e){if(void 0===e&&(e="sheet".concat(this.id)),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error("Worksheet name ".concat(e," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(e));if(e&&e.length>31&&(e=e.substring(0,31)),this._workbook._worksheets.find((function(t){return t&&t.name.toLowerCase()===e.toLowerCase()})))throw new Error("Worksheet name already exists: ".concat(e));this._name=e}}},{key:"workbook",get:function(){return this._workbook}},{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"dimensions",get:function(){var e=new a;return this._rows.forEach((function(t){if(t){var n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}})),e}},{key:"columns",get:function(){return this._columns},set:function(e){var t=this;this._headerRowCount=e.reduce((function(e,t){var n=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,n)}),0);var n=1,r=this._columns=[];e.forEach((function(e){var i=new s(t,n++,!1);r.push(i),i.defn=e}))}},{key:"getColumnKey",value:function(e){return this._keys[e]}},{key:"setColumnKey",value:function(e,t){this._keys[e]=t}},{key:"deleteColumnKey",value:function(e){delete this._keys[e]}},{key:"eachColumnKey",value:function(e){r.each(this._keys,e)}},{key:"getColumn",value:function(e){if("string"==typeof e){var t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length)for(var n=this._columns.length+1;n<=e;)this._columns.push(new s(this,n++));return this._columns[e-1]}},{key:"spliceColumns",value:function(e,t){for(var n=this,r=this._rows.length,i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];if(a.length>0)for(var s=function(r){var i=[e,t];a.forEach((function(e){i.push(e[r]||null)}));var o=n.getRow(r+1);o.splice.apply(o,i)},c=0;c<r;c++)s(c);else this._rows.forEach((function(n){n&&n.splice(e,t)}));var l=a.length-t,u=e+t,h=this._columns.length;if(l<0)for(var f=e+a.length;f<=h;f++)this.getColumn(f).defn=this.getColumn(f-l).defn;else if(l>0)for(var d=h;d>=u;d--)this.getColumn(d+l).defn=this.getColumn(d).defn;for(var p=e;p<e+a.length;p++)this.getColumn(p).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,a.length)}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var e=0;return this.eachRow((function(t){e=Math.max(e,t.cellCount)})),e}},{key:"actualColumnCount",get:function(){var e=[],t=0;return this.eachRow((function(n){n.eachCell((function(n){var r=n.col;e[r]||(e[r]=!0,t++)}))})),t}},{key:"_commitRow",value:function(){}},{key:"_lastRowNumber",get:function(){for(var e=this._rows,t=e.length;t>0&&void 0===e[t-1];)t--;return t}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"findRow",value:function(e){return this._rows[e-1]}},{key:"findRows",value:function(e,t){return this._rows.slice(e-1,e-1+t)}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var e=0;return this.eachRow((function(){e++})),e}},{key:"getRow",value:function(e){var t=this._rows[e-1];return t||(t=this._rows[e-1]=new o(this,e)),t}},{key:"getRows",value:function(e,t){if(!(t<1)){for(var n=[],r=e;r<e+t;r++)n.push(this.getRow(r));return n}}},{key:"addRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,"i"===t[0]?t:"n"),r}},{key:"addRows",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",r=[];return e.forEach((function(e){r.push(t.addRow(e,n))})),r}},{key:"insertRow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}},{key:"insertRows",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows.apply(this,[e,0].concat(A(t))),"n"!==n)for(var r=0;r<t.length;r++)"o"===n[0]&&void 0!==this.findRow(t.length+e+r)?this._copyStyle(t.length+e+r,e+r,"+"===n[1]):"i"===n[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+r,"+"===n[1]);return this.getRows(e,t.length)}},{key:"_setStyleOption",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}},{key:"_copyStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getRow(e),i=this.getRow(t);i.style=g(r.style),r.eachCell({includeEmpty:n},(function(e,t){i.getCell(t).style=g(e.style)})),i.height=r.height}},{key:"duplicateRow",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this._rows[e-1],a=new Array(t).fill(i.values);this.spliceRows.apply(this,[e+1,r?0:t].concat(A(a)));for(var o=function(){var t=n._rows[e+s];t.style=i.style,t.height=i.height,i.eachCell({includeEmpty:!0},(function(e,n){t.getCell(n).style=e.style}))},s=0;s<t;s++)o()}},{key:"spliceRows",value:function(e,t){for(var n=this,r=e+t,i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];var s,c,l=a.length,u=l-t,h=this._rows.length;if(u<0){e===h&&(this._rows[h-1]=void 0);var f=function(){if(c=n._rows[s-1]){var e=n.getRow(s+u);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(function(t,n){e.getCell(n).style=t.style})),n._rows[s-1]=void 0}else n._rows[s+u-1]=void 0};for(s=r;s<=h;s++)f()}else if(u>0){var d=function(){if(c=n._rows[s-1]){var e=n.getRow(s+u);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},(function(t,r){if(e.getCell(r).style=t.style,"MergeValue"===t._value.constructor.name){var i=n.getRow(t._row._number+l).getCell(r),a=t._value._master,o=n.getRow(a._row._number+l).getCell(a._column._number);i.merge(o)}}))}else n._rows[s+u-1]=void 0};for(s=h;s>=r;s--)d()}for(s=0;s<l;s++){var p=this.getRow(e+s);p.style={},p.values=a[s]}this.workbook.definedNames.spliceRows(this.name,e,t,l)}},{key:"eachRow",value:function(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty)for(var n=this._rows.length,r=1;r<=n;r++)t(this.getRow(r),r);else this._rows.forEach((function(e){e&&e.hasValues&&t(e,e.number)}))}},{key:"getSheetValues",value:function(){var e=[];return this._rows.forEach((function(t){t&&(e[t.number]=t.values)})),e}},{key:"findCell",value:function(e,t){var n=i.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}},{key:"getCell",value:function(e,t){var n=i.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}},{key:"mergeCells",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new a(t);this._mergeCellsInternal(r)}},{key:"mergeCellsWithoutStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new a(t);this._mergeCellsInternal(r,!0)}},{key:"_mergeCellsInternal",value:function(e,t){r.each(this._merges,(function(t){if(t.intersects(e))throw new Error("Cannot merge already merged cells")}));for(var n=this.getCell(e.top,e.left),i=e.top;i<=e.bottom;i++)for(var a=e.left;a<=e.right;a++)(i>e.top||a>e.left)&&this.getCell(i,a).merge(n,t);this._merges[n.address]=e}},{key:"_unMergeMaster",value:function(e){var t=this._merges[e.address];if(t){for(var n=t.top;n<=t.bottom;n++)for(var r=t.left;r<=t.right;r++)this.getCell(n,r).unmerge();delete this._merges[e.address]}}},{key:"hasMerges",get:function(){return r.some(this._merges,Boolean)}},{key:"unMergeCells",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=new a(t),i=r.top;i<=r.bottom;i++)for(var o=r.left;o<=r.right;o++){var s=this.findCell(i,o);s&&(s.type===c.ValueType.Merge?this._unMergeMaster(s.master):this._merges[s.address]&&this._unMergeMaster(s))}}},{key:"fillFormula",value:function(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared",o=i.decode(e),s=o.top,c=o.left,l=o.bottom,u=o.right,h=u-c+1,f=i.encodeAddress(s,c),d="shared"===a;r="function"==typeof n?n:Array.isArray(n)?Array.isArray(n[0])?function(e,t){return n[e-s][t-c]}:function(e,t){return n[(e-s)*h+(t-c)]}:function(){};for(var p=!0,g=s;g<=l;g++)for(var m=c;m<=u;m++)p?(this.getCell(g,m).value={shareType:a,formula:t,ref:e,result:r(g,m)},p=!1):this.getCell(g,m).value=d?{sharedFormula:f,result:r(g,m)}:r(g,m)}},{key:"addImage",value:function(e,t){var n={type:"image",imageId:e,range:t};this._media.push(new l(this,n))}},{key:"getImages",value:function(){return this._media.filter((function(e){return"image"===e.type}))}},{key:"addBackgroundImage",value:function(e){var t={type:"background",imageId:e};this._media.push(new l(this,t))}},{key:"getBackgroundImageId",value:function(){var e=this._media.find((function(e){return"background"===e.type}));return e&&e.imageId}},{key:"protect",value:function(e,t){var n=this;return new Promise((function(r){n.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(n.sheetProtection.algorithmName="SHA-512",n.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),n.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,n.sheetProtection.hashValue=d.convertPasswordToHash(e,"SHA512",n.sheetProtection.saltValue,n.sheetProtection.spinCount)),t&&(n.sheetProtection=Object.assign(n.sheetProtection,t),!e&&"spinCount"in t&&delete n.sheetProtection.spinCount),r()}))}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(e){var t=new u(this,e);return this.tables[e.name]=t,t}},{key:"getTable",value:function(e){return this.tables[e]}},{key:"removeTable",value:function(e){delete this.tables[e]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(e){this.conditionalFormattings.push(e)}},{key:"removeConditionalFormatting",value:function(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}},{key:"tabColor",get:function(){return this.properties.tabColor},set:function(e){this.properties.tabColor=e}},{key:"model",get:function(){var e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((function(e){return e.model})),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((function(e){return e.model})),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);var t=e.rows=[],n=e.dimensions=new a;return this._rows.forEach((function(e){var r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))})),e.merges=[],r.each(this._merges,(function(t){e.merges.push(t.range)})),e},set:function(e){var t=this;this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new h(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((function(e){return new l(t,e)})),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((function(e,t){var n=new u;return n.model=t,e[t.name]=n,e}),{}),this.conditionalFormattings=e.conditionalFormattings}},{key:"_parseRows",value:function(e){var t=this;this._rows=[],e.rows.forEach((function(e){var n=new o(t,e.number);t._rows[n.number-1]=n,n.model=e}))}},{key:"_parseMergeCells",value:function(e){var t=this;r.each(e.mergeCells,(function(e){t.mergeCellsWithoutStyle(e)}))}}])}();t.exports=m},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,n){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");var r={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach((function(e){r[e]=i[e]})),t.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,n){var r="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");function i(e){return"string"==typeof e?e:r?r.decode(e):e.toString()}n.bufferToString=i},{}],17:[function(e,t,n){var r="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),i=e("buffer").Buffer;function a(e){return"string"!=typeof e?e:r?i.from(r.encode(e).buffer):i.from(e)}n.stringToBuffer=a},{buffer:220}],18:[function(e,t,n){var r=e("./under-dash"),i=e("./col-cache"),a=function(){function e(t){f(this,e),this.template=t,this.sheets={}}return p(e,[{key:"addCell",value:function(e){this.addCellEx(i.decodeEx(e))}},{key:"getCell",value:function(e){return this.findCellEx(i.decodeEx(e),!0)}},{key:"findCell",value:function(e){return this.findCellEx(i.decodeEx(e),!1)}},{key:"findCellAt",value:function(e,t,n){var r=this.sheets[e],i=r&&r[t];return i&&i[n]}},{key:"addCellEx",value:function(e){if(e.top)for(var t=e.top;t<=e.bottom;t++)for(var n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}},{key:"getCellEx",value:function(e){return this.findCellEx(e,!0)}},{key:"findCellEx",value:function(e,t){var n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}},{key:"getCellAt",value:function(e,t,n){var r=this.sheets[e]||(this.sheets[e]=[]),a=r[t]||(r[t]=[]);return a[n]||(a[n]={sheetName:e,address:i.n2l(n)+t,row:t,col:n})}},{key:"removeCellEx",value:function(e){var t=this.findSheet(e);if(t){var n=this.findSheetRow(t,e);n&&delete n[e.col]}}},{key:"forEachInSheet",value:function(e,t){var n=this.sheets[e];n&&n.forEach((function(e,n){e&&e.forEach((function(e,r){e&&t(e,n,r)}))}))}},{key:"forEach",value:function(e){var t=this;r.each(this.sheets,(function(n,r){t.forEachInSheet(r,e)}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"findSheet",value:function(e,t){var n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}},{key:"findSheetRow",value:function(e,t,n){var r=t.row;return e&&e[r]?e[r]:n?e[r]=[]:void 0}},{key:"findRowCell",value:function(e,t,n){var r=t.col;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}},{key:"spliceRows",value:function(e,t,n,r){var i=this.sheets[e];if(i){for(var a=[],o=0;o<r;o++)a.push([]);i.splice.apply(i,[t,n].concat(a))}}},{key:"spliceColumns",value:function(e,t,n,i){var a=this.sheets[e];if(a){for(var o=[],s=0;s<i;s++)o.push(null);r.each(a,(function(e){e.splice.apply(e,[t,n].concat(o))}))}}}])}();t.exports=a},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,n){var r=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(e){return e<=26?1:e<=676?2:3},_fill:function(e){var t,n,r,i,a,o=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)r=(n=o-27)%26,i=Math.floor(n/26),t=this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)r=(n=o-703)%26,i=Math.floor(n/26)%26,a=Math.floor(n/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: ".concat(e));return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw new Error("".concat(e," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!r.test(e))throw new Error("Invalid Address: ".concat(e));return!0},decodeAddress:function(e){var t=e.length<5&&this._hash[e];if(t)return t;for(var n,r=!1,i="",a=0,o=!1,s="",c=0,l=0;l<e.length;l++)if(n=e.charCodeAt(l),!o&&n>=65&&n<=90)r=!0,i+=e[l],a=26*a+n-64;else if(n>=48&&n<=57)o=!0,s+=e[l],c=10*c+n-48;else if(o&&r&&36!==n)break;if(r){if(a>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(i))}else a=void 0;o||(c=void 0);var u={address:e=i+s,col:a,row:c,$col$row:"$".concat(i,"$").concat(s)};return a<=100&&c<=100&&(this._hash[e]=u,this._hash[u.$col$row]=u),u},getAddress:function(e,t){if(t){var n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode:function(e){var t=e.split(":");if(2===t.length){var n=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),i={top:Math.min(n.row,r.row),left:Math.min(n.col,r.col),bottom:Math.max(n.row,r.row),right:Math.max(n.col,r.col)};return i.tl=this.n2l(i.left)+i.top,i.br=this.n2l(i.right)+i.bottom,i.dimensions="".concat(i.tl,":").concat(i.br),i}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],i=r.split(":");if(i.length>1){var a=this.decodeAddress(i[0]),o=this.decodeAddress(i[1]),s=Math.min(a.row,o.row),c=Math.min(a.col,o.col),l=Math.max(a.row,o.row),u=Math.max(a.col,o.col);return a=this.n2l(c)+s,o=this.n2l(u)+l,{top:s,left:c,bottom:l,right:u,sheetName:n,tl:{address:a,col:c,row:s,$col$row:"$".concat(this.n2l(c),"$").concat(s),sheetName:n},br:{address:o,col:u,row:l,$col$row:"$".concat(this.n2l(u),"$").concat(l),sheetName:n},dimensions:"".concat(a,":").concat(o)}}if(r.startsWith("#"))return n?{sheetName:n,error:r}:{error:r};var h=this.decodeAddress(r);return n?Zi({sheetName:n},h):h},encodeAddress:function(e,t){return i.n2l(t)+e},encode:function(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(i.encodeAddress(arguments[0],arguments[1]),":").concat(i.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(e,t){var n=h(e,5),r=n[0],i=n[1],a=n[3],o=n[4],s=h(t,2),c=s[0],l=s[1];return c>=r&&c<=a&&l>=i&&l<=o}};t.exports=i},{}],20:[function(e,t,n){var r=function(e,t){return Zi(Zi({},e),t.reduce((function(t,n){return e[n]&&(t[n]=Zi({},e[n])),t}),{}))},i=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[n]&&(t[n]=r(e[n],i))},a=function(e){return 0===Object.keys(e).length},o=function(e){if(!e)return e;if(a(e))return{};var t=Zi({},e);return i(e,t,"font",["color"]),i(e,t,"alignment"),i(e,t,"protection"),e.border&&(i(e,t,"border"),i(e.border,t.border,"top",["color"]),i(e.border,t.border,"left",["color"]),i(e.border,t.border,"bottom",["color"]),i(e.border,t.border,"right",["color"]),i(e.border,t.border,"diagonal",["color"])),e.fill&&(i(e,t,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(t.fill.stops=e.fill.stops.map((function(e){return r(e,["color"])})))),t};n.copyStyle=o},{}],21:[function(e,t,n){(function(n){(function(){var r=e("crypto"),i={hash:function(e){for(var t=r.createHash(e),i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.update(n.concat(a)),t.digest()},convertPasswordToHash:function(e,t,i,a){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw new Error("Hash algorithm '".concat(t,"' not supported!"));for(var o=n.from(e,"utf16le"),s=this.hash(t,n.from(i,"base64"),o),c=0;c<a;c++){var l=n.alloc(4);l.writeUInt32LE(c,0),s=this.hash(t,s,l)}return s.toString("base64")},randomBytes:function(e){return r.randomBytes(e)}};t.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){var r=e("saxes").SaxesParser,i=e("readable-stream").PassThrough,a=e("./browser-buffer-decode").bufferToString;t.exports=function(){var e,t=(e=Gi.mark((function e(t){var n,o,s,c,l,u,h,f,d;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.pipe&&!t[Symbol.asyncIterator]&&(t=t.pipe(new i)),(n=new r).on("error",(function(e){o=e})),s=[],n.on("opentag",(function(e){return s.push({eventType:"opentag",value:e})})),n.on("text",(function(e){return s.push({eventType:"text",value:e})})),n.on("closetag",(function(e){return s.push({eventType:"closetag",value:e})})),c=!1,l=!1,e.prev=9,h=ea(t);case 11:return e.next=13,Li(h.next());case 13:if(!(c=!(f=e.sent).done)){e.next=24;break}if(d=f.value,n.write(a(d)),!o){e.next=18;break}throw o;case 18:return e.next=20,s;case 20:s=[];case 21:c=!1,e.next=11;break;case 24:e.next=30;break;case 26:e.prev=26,e.t0=e.catch(9),l=!0,u=e.t0;case 30:if(e.prev=30,e.prev=31,!c||null==h.return){e.next=35;break}return e.next=35,Li(h.return());case 35:if(e.prev=35,!l){e.next=38;break}throw u;case 38:return e.finish(35);case 39:return e.finish(30);case 40:case"end":return e.stop()}}),e,null,[[9,26,30,40],[31,,35,39]])})),function(){return new Qi(e.apply(this,arguments))});return function(e){return t.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,n){var r=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function o(e,t,n){var o=r.decode(t),s=r.decode(n);return e.replace(i,(function(e,t,n,i,c){if(c)return e;var l=a.exec(i);if(l){var u=l[1],h=l[2].toUpperCase(),f=l[3],d=l[4];if(h.length>3||3===h.length&&h>"XFD")return e;var p=r.l2n(h),g=parseInt(d,10);return u||(p+=s.col-o.col),f||(g+=s.row-o.row),(t||"")+(u||"")+r.n2l(p)+(f||"")+g}return e}))}t.exports={slideFormula:o}},{"./col-cache":19}],24:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),a=e("./utils"),o=e("./string-buf"),s=function(){function e(t,n){f(this,e),this._data=t,this._encoding=n}return p(e,[{key:"length",get:function(){return this.toBuffer().length}},{key:"copy",value:function(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}}])}(),c=function(){function e(t){f(this,e),this._data=t}return p(e,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(e,t,n,r){return this._data._buf.copy(e,t,n,r)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}}])}(),l=function(){function e(t){f(this,e),this._data=t}return p(e,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(e,t,n,r){this._data.copy(e,t,n,r)}},{key:"toBuffer",value:function(){return this._data}}])}(),u=function(){function e(t){f(this,e),this.size=t,this.buffer=r.alloc(t),this.iRead=0,this.iWrite=0}return p(e,[{key:"toBuffer",value:function(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;var e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}},{key:"read",value:function(e){var t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}},{key:"write",value:function(e,t,n){var r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}])}(),h=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(h,i.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map((function(e){return e.toBuffer()})))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new u(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=this;return Di(Gi.mark((function n(){var r;return Gi.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=function(t){return new Promise((function(n){t.write(e.toBuffer(),(function(){n()}))}))},n.next=3,Promise.all(t.pipes.map(r));case 3:case"end":return n.stop()}}),n)})))()},_writeToBuffers:function(e){for(var t=0,n=e.length;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},write:function(e,t,i){var u=this;return Di(Gi.mark((function h(){var f;return Gi.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:if(t instanceof Function&&(i=t,t="utf8"),i=i||a.nop,!(e instanceof o)){h.next=6;break}f=new c(e),h.next=15;break;case 6:if(!(e instanceof r)){h.next=10;break}f=new l(e),h.next=15;break;case 10:if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer)){h.next=14;break}f=new s(e,t),h.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!u.pipes.length){h.next=31;break}if(!u.batch){h.next=21;break}for(u._writeToBuffers(f);!u.corked&&u.buffers.length>1;)u._pipe(u.buffers.shift());h.next=29;break;case 21:if(u.corked){h.next=27;break}return h.next=24,u._pipe(f);case 24:i(),h.next=29;break;case 27:u._writeToBuffers(f),n.nextTick(i);case 29:h.next=34;break;case 31:u.paused||u.emit("data",f.toBuffer()),u._writeToBuffers(f),u.emit("readable");case 34:return h.abrupt("return",!0);case 35:case"end":return h.stop()}}),h)})))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,n){var r=this,i=function(e){e?n(e):(r._flush(),r.pipes.forEach((function(e){e.end()})),r.emit("finish"))};e?this.write(e,t,i):i()},read:function(e){var t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){var n=this.buffers[0],i=n.read(e);e-=i.length,t.push(i),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map((function(e){return e.toBuffer()})).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter((function(t){return t!==e}))},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),t.exports=h}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,n){(function(e){(function(){var n=function(){function t(n){f(this,t),this._buf=e.alloc(n&&n.size||16384),this._encoding=n&&n.encoding||"utf8",this._inPos=0,this._buffer=void 0}return p(t,[{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(e){e=e||0,this._buffer=void 0,this._inPos=e}},{key:"_grow",value:function(t){for(var n=2*this._buf.length;n<t;)n*=2;var r=e.alloc(n);this._buf.copy(r,0),this._buf=r}},{key:"addText",value:function(e){this._buffer=void 0;for(var t=this._inPos+this._buf.write(e,this._inPos,this._encoding);t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}},{key:"addStringBuf",value:function(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}])}();t.exports=n}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,n){var r=Object.prototype.toString,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((function(n){t(e[n],n)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((function(n){return t(e[n],n)})))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((function(n){return t(e[n],n)})))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((function(n){return t(e[n],n)})):[]},keyBy:function(e,t){return e.reduce((function(e,n){return e[n[t]]=n,e}),{})},isEqual:function(e,t){var n,r=typeof e,i=typeof t,o=Array.isArray(e),s=Array.isArray(t);if(r!==i)return!1;if("object"==typeof e){if(o||s)return!(!o||!s)&&e.length===t.length&&e.every((function(e,n){var r=t[n];return a.isEqual(e,r)}));if(null===e||null===t)return e===t;if(n=Object.keys(e),Object.keys(t).length!==n.length)return!1;var c,l=$i(n);try{for(l.s();!(c=l.n()).done;){var u=c.value;if(!t.hasOwnProperty(u))return!1}}catch(e){l.e(e)}finally{l.f()}return a.every(e,(function(e,n){var r=t[n];return a.isEqual(e,r)}))}return e===t},escapeHtml:function(e){var t=i.exec(e);if(!t)return e;for(var n="",r="",a=0,o=t.index;o<e.length;o++){switch(e.charAt(o)){case'"':r="&quot;";break;case"&":r="&amp;";break;case"'":r="&apos;";break;case"<":r="&lt;";break;case">":r="&gt;";break;default:continue}a!==o&&(n+=e.substring(a,o)),a=o+1,n+=r}return a!==o?n+e.substring(a,o):n},strcmp:function(e,t){return e<t?-1:e>t?1:0},isUndefined:function(e){return"[object Undefined]"===r.call(e)},isObject:function(e){return"[object Object]"===r.call(e)},deepMerge:function(){var e,t,n,r=arguments[0]||{},i=arguments.length;function o(i,o){e=r[o],n=Array.isArray(i),a.isObject(i)||n?(n?(n=!1,t=e&&Array.isArray(e)?e:[]):t=e&&a.isObject(e)?e:{},r[o]=a.deepMerge(t,i)):a.isUndefined(i)||(r[o]=i)}for(var s=0;s<i;s++)a.each(arguments[s],o);return r}};t.exports=a},{}],27:[function(e,t,n){(function(n,r){(function(){var i=e("fs"),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop:function(){},promiseImmediate:function(e){return new Promise((function(t){n.setImmediate?r((function(){t(e)})):setTimeout((function(){t(e)}),1)}))},inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));var i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach((function(e){i[e]=Object.getOwnPropertyDescriptor(r,e)})),e.prototype=Object.create(t.prototype,i)},dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath:function(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=o.parsePath(e);return"".concat(t.path,"/_rels/").concat(t.name,".rels")},xmlEncode:function(e){var t=a.exec(e);if(!t)return e;for(var n="",r="",i=0,o=t.index;o<e.length;o++){var s=e.charCodeAt(o);switch(s){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&apos;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;case 127:r="";break;default:if(s<=31&&(s<=8||s>=11&&13!==s)){r="";break}continue}i!==o&&(n+=e.substring(i,o)),i=o+1,r&&(n+=r)}return i!==o?n+e.substring(i,o):n},xmlDecode:function(e){return e.replace(/&([a-z]*);/g,(function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}))},validInt:function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:function(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:function(e){return new Promise((function(t){i.access(e,i.constants.F_OK,(function(e){t(!e)}))}))}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)},parseBoolean:function(e){return!0===e||"true"===e||1===e||"1"===e}};t.exports=o}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,n){var r=e("./under-dash"),i=e("./utils"),a="<",o=">",s="</",c="/>";function l(e,t,n){e.push(" ".concat(t,'="').concat(i.xmlEncode(n.toString()),'"'))}function u(e,t){if(t){var n=[];r.each(t,(function(e,t){void 0!==e&&l(n,t,e)})),e.push(n.join(""))}}var h=function(){function e(){f(this,e),this._xml=[],this._stack=[],this._rollbacks=[]}return p(e,[{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"openXml",value:function(e){var t=this._xml;t.push("<?xml"),u(t,e),t.push("?>\n")}},{key:"openNode",value:function(e,t){var n=this.tos,r=this._xml;n&&this.open&&r.push(o),this._stack.push(e),r.push(a),r.push(e),u(r,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&l(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");u(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(o),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(o),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push(c):(t.push(s),t.push(e),t.push(o)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,n){this.openNode(e,t),void 0!==n&&this.writeText(n),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])}();h.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=h},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){var r=e("events"),i=e("jszip"),a=e("./stream-buf"),o=e("./browser-buffer-encode").stringToBuffer,s=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),n.zip=new i,n.stream=new a,n}return Ve(t,e),p(t,[{key:"append",value:function(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&"string"==typeof e&&(e=o(e)),this.zip.file(t.name,e))}},{key:"finalize",value:function(){var e=Di(Gi.mark((function e(){var t;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.zip.generateAsync(this.options);case 2:t=e.sent,this.stream.end(t),this.emit("finish");case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"read",value:function(e){return this.stream.read(e)}},{key:"setEncoding",value:function(e){return this.stream.setEncoding(e)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(e,t){return this.stream.pipe(e,t)}},{key:"unpipe",value:function(e){return this.stream.unpipe(e)}},{key:"unshift",value:function(e){return this.stream.unshift(e)}},{key:"wrap",value:function(e){return this.stream.wrap(e)}}])}(r.EventEmitter);t.exports={ZipWriter:s}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,n){t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,n){t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,n){var r=e("../../utils/parse-sax"),i=e("../../utils/xml-stream"),a=function(){function e(){f(this,e)}return p(e,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(e){}},{key:"parseText",value:function(e){}},{key:"parseClose",value:function(e){}},{key:"reconcile",value:function(e,t){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach((function(t){t instanceof e?t.reset():t.xform&&t.xform.reset()}))}},{key:"mergeModel",value:function(e){this.model=Object.assign(this.model||{},e)}},{key:"parse",value:function(){var e=Di(Gi.mark((function e(t){var n,r,i,a,o,s,c,l,u,h,f;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,r=!1,e.prev=2,a=ea(t);case 4:return e.next=6,a.next();case 6:if(!(n=!(o=e.sent).done)){e.next=37;break}s=o.value,c=$i(s),e.prev=9,c.s();case 11:if((l=c.n()).done){e.next=26;break}if(u=l.value,h=u.eventType,f=u.value,"opentag"!==h){e.next=17;break}this.parseOpen(f),e.next=24;break;case 17:if("text"!==h){e.next=21;break}this.parseText(f),e.next=24;break;case 21:if("closetag"!==h){e.next=24;break}if(this.parseClose(f.name)){e.next=24;break}return e.abrupt("return",this.model);case 24:e.next=11;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(9),c.e(e.t0);case 31:return e.prev=31,c.f(),e.finish(31);case 34:n=!1,e.next=4;break;case 37:e.next=43;break;case 39:e.prev=39,e.t1=e.catch(2),r=!0,i=e.t1;case 43:if(e.prev=43,e.prev=44,!n||null==a.return){e.next=48;break}return e.next=48,a.return();case 48:if(e.prev=48,!r){e.next=51;break}throw i;case 51:return e.finish(48);case 52:return e.finish(43);case 53:return e.abrupt("return",this.model);case 54:case"end":return e.stop()}}),e,this,[[2,39,43,53],[9,28,31,34],[44,,48,52]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"parseStream",value:function(){var e=Di(Gi.mark((function e(t){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.parse(r(t)));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"xml",get:function(){return this.toXml(this.model)}},{key:"toXml",value:function(e){var t=new i;return this.render(t,e),t.xml}}],[{key:"toAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e.toString()}},{key:"toStringAttribute",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,n,r)}},{key:"toStringValue",value:function(e,t){return void 0===e?t:e}},{key:"toBoolAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e?"1":"0"}},{key:"toBoolValue",value:function(e,t){return void 0===e?t:"1"===e}},{key:"toIntAttribute",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,n,r)}},{key:"toIntValue",value:function(e,t){return void 0===e?t:parseInt(e,10)}},{key:"toFloatAttribute",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,n,r)}},{key:"toFloatValue",value:function(e,t){return void 0===e?t:parseFloat(e)}}])}();t.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,n){var r=e("../base-xform"),i=e("../../../utils/col-cache"),a=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}},{key:"parseOpen",value:function(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(e){this._parsedText.push(e)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:s(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])}(r);function o(e){try{return i.decodeEx(e),!0}catch(e){return!1}}function s(e){var t=[],n=!1,r="";return e.split(",").forEach((function(e){if(e){var i=(e.match(/'/g)||[]).length;if(i){var a=i%2==0;!n&&a&&o(e)?t.push(e):n&&!a?(n=!1,o(r+e)&&t.push(r+e),r=""):(n=!0,r+="".concat(e,","))}else n?r+="".concat(e,","):o(e)&&t.push(e)}})),t}t.exports=a},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,n){var r=e("../../../utils/utils"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}},{key:"parseOpen",value:function(e){return"sheet"===e.name&&(this.model={name:r.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=i},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(e){return"calcPr"===e.name&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],36:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],37:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){var n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(n.visibility=t.visibility),e.leafNode("workbookView",n)}},{key:"parseOpen",value:function(e){if("workbookView"===e.name){var t=this.model={},n=function(e,n,r){var i=void 0!==n?t[e]=n:r;void 0!==i&&(t[e]=i)},r=function(e,n,r){var i=void 0!==n?t[e]=parseInt(n,10):r;void 0!==i&&(t[e]=i)};return r("x",e.attributes.xWindow,0),r("y",e.attributes.yWindow,0),r("width",e.attributes.windowWidth,25e3),r("height",e.attributes.windowHeight,1e4),n("visibility",e.attributes.visibility,"visible"),r("activeTab",e.attributes.activeTab,void 0),r("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],38:[function(e,t,n){var r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../static-xform"),c=e("../list-xform"),l=e("./defined-name-xform"),u=e("./sheet-xform"),h=e("./workbook-view-xform"),d=e("./workbook-properties-xform"),g=e("./workbook-calc-properties-xform"),m=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={fileVersion:t.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new c({tag:"bookViews",count:!1,childXform:new h}),sheets:new c({tag:"sheets",count:!1,childXform:new u}),definedNames:new c({tag:"definedNames",count:!1,childXform:new l}),calcPr:new g},e}return Ve(t,e),p(t,[{key:"prepare",value:function(e){e.sheets=e.worksheets;var t=[],n=0;e.sheets.forEach((function(e){if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach((function(r){var i=r.split(":"),a={name:"_xlnm.Print_Area",ranges:["'".concat(e.name,"'!$").concat(i[0],":$").concat(i[1])],localSheetId:n};t.push(a)})),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){var r=[];if(e.pageSetup.printTitlesColumn){var i=e.pageSetup.printTitlesColumn.split(":");r.push("'".concat(e.name,"'!$").concat(i[0],":$").concat(i[1]))}if(e.pageSetup.printTitlesRow){var a=e.pageSetup.printTitlesRow.split(":");r.push("'".concat(e.name,"'!$").concat(a[0],":$").concat(a[1]))}var o={name:"_xlnm.Print_Titles",ranges:r,localSheetId:n};t.push(o)}n++})),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((function(e,t){e.name=e.type+(t+1)}))}},{key:"render",value:function(e,n){e.openXml(a.StdDocAttributes),e.openNode("workbook",t.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,n.properties),this.map.bookViews.render(e,n.views),this.map.sheets.render(e,n.sheets),this.map.definedNames.render(e,n.definedNames),this.map.calcPr.render(e,n.calcProperties),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:"reconcile",value:function(e){var t,n=(e.workbookRels||[]).reduce((function(e,t){return e[t.Id]=t,e}),{}),a=[],o=0;(e.sheets||[]).forEach((function(r){var i=n[r.rId];i&&(t=e.worksheetHash["xl/".concat(i.Target.replace(/^(\s|\/xl\/)+/,""))])&&(t.name=r.name,t.id=r.id,t.state=r.state,a[o++]=t)}));var s=[];r.each(e.definedNames,(function(e){if("_xlnm.Print_Area"===e.name){if(t=a[e.localSheetId]){t.pageSetup||(t.pageSetup={});var n=i.decodeEx(e.ranges[0]);t.pageSetup.printArea=t.pageSetup.printArea?"".concat(t.pageSetup.printArea,"&&").concat(n.dimensions):n.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(t=a[e.localSheetId]){t.pageSetup||(t.pageSetup={});var r=e.ranges.join(","),o=/\$/g,c=/\$\d+:\$\d+/,l=r.match(c);if(l&&l.length){var u=l[0];t.pageSetup.printTitlesRow=u.replace(o,"")}var h=/\$[A-Z]+:\$[A-Z]+/,f=r.match(h);if(f&&f.length){var d=f[0];t.pageSetup.printTitlesColumn=d.replace(o,"")}}}else s.push(e)})),e.definedNames=s,e.media.forEach((function(e,t){e.index=t}))}}])}(o);m.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},m.STATIC_XFORMS={fileVersion:new s({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=m},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,n){var r=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),a=e("../base-xform"),o=t.exports=function(e){this.model=e};i.inherits(o,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new r),this._richTextXform},render:function(e,t){var n=this;t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach((function(t){n.richTextXform.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model=Zi({type:"note",note:{texts:[]}},e.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),a=e("../base-xform"),o=e("./comment-xform"),s=t.exports=function(){this.map={comment:new o}};i.inherits(s,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(e,t){var n=this;t=t||this.model,e.openXml(r.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach((function(t){n.map.comment.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t))._model=e,n}return Ve(t,e),p(t,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(e,t,n){(t===n[2]||"x:SizeWithCells"===this.tag&&t===n[1])&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../../base-xform"));t.exports=r},{"../../base-xform":32}],42:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t))._model=e,n}return Ve(t,e),p(t,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}}])}(e("../../base-xform"));t.exports=r},{"../../base-xform":32}],43:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x:Anchor"}},{key:"getAnchorRect",value:function(e){var t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),i=Math.floor(18*(e.top-r)),a=Math.floor(e.right),o=Math.floor(68*(e.right-a)),s=Math.floor(e.bottom);return[t,n,r,i,a,o,s,Math.floor(18*(e.bottom-s))]}},{key:"getDefaultRect",value:function(e){var t=e.col,n=6,r=Math.max(e.row-2,0);return[t,n,r,14,t+2,2,r+4,16]}},{key:"render",value:function(e,t){var n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,n.join(", "))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],44:[function(e,t,n){var r=e("../base-xform"),i=e("./vml-anchor-xform"),a=e("./style/vml-protection-xform"),o=e("./style/vml-position-xform"),s=["twoCells","oneCells","absolute"],c=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x:Anchor":new i,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x:ClientData"}},{key:"render",value:function(e,t){var n=t.note,r=n.protection,i=n.editAs;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,s),this.map["x:SizeWithCells"].render(e,i,s),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,r.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,r.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=s[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}])}(r);t.exports=c},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./vml-shape-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"v:shape":new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xml"}},{key:"render",value:function(e,n){var i=this;e.openXml(r.StdDocAttributes),e.openNode(this.tag,t.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),n.comments.forEach((function(t,n){i.map["v:shape"].render(e,t,n)})),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}},{key:"reconcile",value:function(e,t){var n=this;e.anchors.forEach((function(e){e.br?n.map["xdr:twoCellAnchor"].reconcile(e,t):n.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}])}(i);o.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,n){var r=e("../base-xform"),i=e("./vml-textbox-xform"),a=e("./vml-client-data-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"v:textbox":new i,"x:ClientData":new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"v:shape"}},{key:"render",value:function(e,n,r){e.openNode("v:shape",t.V_SHAPE_ATTRIBUTES(n,r)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,n),this.map["x:ClientData"].render(e,n),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}])}(r);o.V_SHAPE_ATTRIBUTES=function(e,t){return{id:"_x0000_s".concat(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}},t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"v:textbox"}},{key:"conversionUnit",value:function(e,t,n){return"".concat(parseFloat(e)*t.toFixed(2)).concat(n)}},{key:"reverseConversionUnit",value:function(e){var t=this;return(e||"").split(",").map((function(e){return Number(parseFloat(t.conversionUnit(parseFloat(e),.1,"")).toFixed(2))}))}},{key:"render",value:function(e,t){var n=this,r={style:"mso-direction-alt:auto"};if(t&&t.note){var i=(t.note&&t.note.margins).inset;Array.isArray(i)&&(i=i.map((function(e){return n.conversionUnit(e,10,"mm")})).join(",")),i&&(r.inset=i)}e.openNode("v:textbox",r),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],48:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"createNewModel",value:function(e){return{}}},{key:"parseOpen",value:function(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}])}(e("./base-xform"));t.exports=r},{"./base-xform":32}],49:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"HeadingPairs"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"HeadingPairs"!==e}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],50:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach((function(t){e.leafNode("vt:lpstr",void 0,t.name)})),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"TitlesOfParts"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"TitlesOfParts"!==e}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],51:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../simple/string-xform"),o=e("./app-heading-pairs-xform"),s=e("./app-titles-of-parts-xform"),c=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new s},e}return Ve(t,e),p(t,[{key:"render",value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode("Properties",t.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,n.worksheets),this.map.TitleOfParts.render(e,n.worksheets),this.map.Company.render(e,n.company||""),this.map.Manager.render(e,n.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}])}(i);c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode("Types",t.PROPERTY_ATTRIBUTES);var i={};(n.media||[]).forEach((function(t){if("image"===t.type){var n=t.extension;i[n]||(i[n]=!0,e.leafNode("Default",{Extension:n,ContentType:"image/".concat(n)}))}})),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),n.worksheets.forEach((function(t){var n="/xl/worksheets/sheet".concat(t.id,".xml");e.leafNode("Override",{PartName:n,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})})),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),n.sharedStrings&&n.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),n.tables&&n.tables.forEach((function(t){e.leafNode("Override",{PartName:"/xl/tables/".concat(t.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})})),n.drawings&&n.drawings.forEach((function(t){e.leafNode("Override",{PartName:"/xl/drawings/".concat(t.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})})),n.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),n.commentRefs.forEach((function(t){var n=t.commentName;e.leafNode("Override",{PartName:"/xl/".concat(n,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));i.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../simple/date-xform"),o=e("../simple/string-xform"),s=e("../simple/integer-xform"),c=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:t.DateFormat}),"cp:revision":new s({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:t.DateAttrs,format:t.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:t.DateAttrs,format:t.DateFormat})},e}return Ve(t,e),p(t,[{key:"render",value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode("cp:coreProperties",t.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,n.creator),this.map["dc:title"].render(e,n.title),this.map["dc:subject"].render(e,n.subject),this.map["dc:description"].render(e,n.description),this.map["dc:identifier"].render(e,n.identifier),this.map["dc:language"].render(e,n.language),this.map["cp:keywords"].render(e,n.keywords),this.map["cp:category"].render(e,n.category),this.map["cp:lastModifiedBy"].render(e,n.lastModifiedBy),this.map["cp:lastPrinted"].render(e,n.lastPrinted),this.map["cp:revision"].render(e,n.revision),this.map["cp:version"].render(e,n.version),this.map["cp:contentStatus"].render(e,n.contentStatus),this.map["cp:contentType"].render(e,n.contentType),this.map["dcterms:created"].render(e,n.created),this.map["dcterms:modified"].render(e,n.modified),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}}])}(i);c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.leafNode("Relationship",t)}},{key:"parseOpen",value:function(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],55:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./relationship-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={Relationship:new a},e}return Ve(t,e),p(t,[{key:"render",value:function(e,n){var i=this;n=n||this._values,e.openXml(r.StdDocAttributes),e.openNode("Relationships",t.RELATIONSHIPS_ATTRIBUTES),n.forEach((function(t){i.map.Relationship.render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(e))}}])}(i);o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"reconcilePicture",value:function(e,t){if(e&&e.rId){var n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){var r=n[1],i=t.mediaIndex[r];return t.media[i]}}}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],57:[function(e,t,n){var r=e("../base-xform"),i=e("./blip-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"a:blip":new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:blipFill"}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}])}(r);t.exports=a},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"a:blip"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}},{key:"parseOpen",value:function(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],59:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:cNvPicPr"}},{key:"render",value:function(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],60:[function(e,t,n){var r=e("../base-xform"),i=e("./hlink-click-xform"),a=e("./ext-lst-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"a:hlinkClick":new i,"a:extLst":new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:cNvPr"}},{key:"render",value:function(e,t){e.openNode(this.tag,{id:t.index,name:"Picture ".concat(t.index)}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}])}(r);t.exports=o},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,n){var r=e("../base-xform"),i=e("../simple/integer-xform"),a=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})},n}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}])}(r);t.exports=a},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,n){var r=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("./two-cell-anchor-xform"),s=e("./one-cell-anchor-xform");function c(e){return("string"==typeof e.range?r.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}var l=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new s},e}return Ve(t,e),p(t,[{key:"prepare",value:function(e){var t=this;e.anchors.forEach((function(e,n){e.anchorType=c(e),t.map[e.anchorType].prepare(e,{index:n})}))}},{key:"tag",get:function(){return"xdr:wsDr"}},{key:"render",value:function(e,n){var r=this;e.openXml(i.StdDocAttributes),e.openNode(this.tag,t.DRAWING_ATTRIBUTES),n.anchors.forEach((function(t){r.map[t.anchorType].render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}},{key:"reconcile",value:function(e,t){var n=this;e.anchors.forEach((function(e){e.br?n.map["xdr:twoCellAnchor"].reconcile(e,t):n.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}])}(a);l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"a:extLst"}},{key:"render",value:function(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],64:[function(e,t,n){var r=e("../base-xform"),i=9525,a=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.map={},n}return Ve(t,e),p(t,[{key:"render",value:function(e,t){e.openNode(this.tag);var n=Math.floor(t.width*i),r=Math.floor(t.height*i);e.addAttribute("cx",n),e.addAttribute("cy",r),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/i,height:parseInt(e.attributes.cy||"0",10)/i},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(r);t.exports=a},{"../base-xform":32}],65:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"a:hlinkClick"}},{key:"render",value:function(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}},{key:"parseOpen",value:function(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],66:[function(e,t,n){var r=e("../base-xform"),i=e("./c-nv-pr-xform"),a=e("./c-nv-pic-pr-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:nvPicPr"}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}])}(r);t.exports=o},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,n){var r=e("./base-cell-anchor-xform"),i=e("../static-xform"),a=e("./cell-position-xform"),o=e("./ext-xform"),s=e("./pic-xform"),c=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new s,"xdr:clientData":new i({tag:"xdr:clientData"})},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:oneCellAnchor"}},{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}}])}(r);t.exports=c},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,n){var r=e("../base-xform"),i=e("../static-xform"),a=e("./blip-fill-xform"),o=e("./nv-pic-pr-xform"),s=e("./sp-pr"),c=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xdr:nvPicPr":new o,"xdr:blipFill":new a,"xdr:spPr":new i(s)},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:pic"}},{key:"prepare",value:function(e,t){e.index=t.index+1}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}])}(r);t.exports=c},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,n){t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,n){var r=e("./base-cell-anchor-xform"),i=e("../static-xform"),a=e("./cell-position-xform"),o=e("./pic-xform"),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new i({tag:"xdr:clientData"})},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xdr:twoCellAnchor"}},{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}}])}(r);t.exports=s},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.always=!!e.always,n.count=e.count,n.empty=e.empty,n.$count=e.$count||"count",n.$=e.$,n.childXform=e.childXform,n.maxItems=e.maxItems,n}return Ve(t,e),p(t,[{key:"prepare",value:function(e,t){var n=this.childXform;e&&e.forEach((function(e,r){t.index=r,n.prepare(e,t)}))}},{key:"render",value:function(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);var n=this.childXform;(t||[]).forEach((function(t,r){n.render(e,t,r)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(e,t){if(e){var n=this.childXform;e.forEach((function(e){n.reconcile(e,t)}))}}}])}(e("./base-xform"));t.exports=r},{"./base-xform":32}],72:[function(e,t,n){var r=e("../../../utils/col-cache"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"autoFilter"}},{key:"render",value:function(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{var n=function(e){return"string"==typeof e?e:r.getAddress(e.row,e.column).address},i=n(t.from),a=n(t.to);i&&a&&e.leafNode("autoFilter",{ref:"".concat(i,":").concat(a)})}}},{key:"parseOpen",value:function(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}])}(e("../base-xform"));t.exports=i},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,n){var r=e("../../../utils/utils"),i=e("../base-xform"),a=e("../../../doc/range"),o=e("../../../doc/enums"),s=e("../strings/rich-text-xform");function c(e){if(null==e)return o.ValueType.Null;if(e instanceof String||"string"==typeof e)return o.ValueType.String;if("number"==typeof e)return o.ValueType.Number;if("boolean"==typeof e)return o.ValueType.Boolean;if(e instanceof Date)return o.ValueType.Date;if(e.text&&e.hyperlink)return o.ValueType.Hyperlink;if(e.formula)return o.ValueType.Formula;if(e.error)return o.ValueType.Error;throw new Error("I could not understand type of value")}function l(e){return e.type===o.ValueType.Formula?c(e.result):e.type}var u=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).richTextXForm=new s,e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"c"}},{key:"prepare",value:function(e,t){var n=t.styles.addStyleModel(e.style||{},l(e));switch(n&&(e.styleId=n),e.comment&&t.comments.push(Zi(Zi({},e.comment),{},{ref:e.address})),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){var r=t.formulae[e.sharedFormula];if(!r)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(e.address));void 0===r.si?(r.shareType="shared",r.si=t.siFormulae++,r.range=new a(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}},{key:"renderFormula",value:function(e,t){var n=null;switch(t.shareType){case"shared":n={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":n={t:"array",ref:t.ref};break;default:void 0!==t.si&&(n={t:"shared",si:t.si})}switch(c(t.result)){case o.ValueType.Null:e.leafNode("f",n,t.formula);break;case o.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",n,t.formula),e.leafNode("v",null,r.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(e,t){var n=this;if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach((function(t){n.richTextXForm.render(e,t)})),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case o.ValueType.Date:e.leafNode("v",null,r.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case o.ValueType.Formula:this.renderFormula(e,t);case o.ValueType.Merge:}e.closeNode()}}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}},{key:"parseClose",value:function(e){switch(e){case"c":var t=this.model;if(t.formula||t.shareType)t.type=o.ValueType.Formula,t.value&&("str"===this.t?t.result=r.xmlDecode(t.value):"b"===this.t?t.result=0!==parseInt(t.value,10):"e"===this.t?t.result={error:t.value}:t.result=parseFloat(t.value),t.value=void 0);else if(void 0!==t.value)switch(this.t){case"s":t.type=o.ValueType.String,t.value=parseInt(t.value,10);break;case"str":t.type=o.ValueType.String,t.value=r.xmlDecode(t.value);break;case"inlineStr":t.type=o.ValueType.String;break;case"b":t.type=o.ValueType.Boolean,t.value=0!==parseInt(t.value,10);break;case"e":t.type=o.ValueType.Error,t.value={error:t.value};break;default:t.type=o.ValueType.Number,t.value=parseFloat(t.value)}else t.styleId?t.type=o.ValueType.Null:t.type=o.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}},{key:"reconcile",value:function(e,t){var n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),void 0!==e.styleId&&(e.styleId=void 0),e.type){case o.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:n&&r.isDateFmt(n.numFmt)&&(e.type=o.ValueType.Date,e.value=r.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:void 0!==e.result&&n&&r.isDateFmt(n.numFmt)&&(e.result=r.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}var i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);var a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}])}(i);t.exports=u},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,n){var r=e("../../base-xform"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:cfIcon"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}},{key:"parseOpen",value:function(e){var t=e.attributes;this.model={iconSet:t.iconSet,iconId:r.toIntValue(t.iconId)}}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(r);t.exports=i},{"../../base-xform":32}],75:[function(e,t,n){var r=e("uuid").v4,i=e("../../base-xform"),a=e("../../composite-xform"),o=e("./databar-ext-xform"),s=e("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},l=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x14:dataBar":e.databarXform=new o,"x14:iconSet":e.iconSetXform=new s},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:cfRule"}},{key:"prepare",value:function(e){t.isExt(e)&&(e.x14Id="{".concat(r(),"}").toUpperCase())}},{key:"render",value:function(e,n){if(t.isExt(n))switch(n.type){case"dataBar":this.renderDataBar(e,n);break;case"iconSet":this.renderIconSet(e,n)}}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||"{".concat(r(),"}")}),this.iconSetXform.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}}],[{key:"isExt",value:function(e){return"dataBar"===e.type?o.isExt(e):!("iconSet"!==e.type||!e.custom&&!c[e.iconSet])}}])}(a);t.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,n){var r=e("../../composite-xform"),i=e("./f-ext-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xm:f":e.fExtXform=new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:cfvo"}},{key:"render",value:function(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}},{key:"createNewModel",value:function(e){return{type:e.attributes.type}}},{key:"onParserClose",value:function(e,t){"xm:f"===e&&(this.model.value=t.model?parseFloat(t.model):0)}}])}(r);t.exports=a},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,n){var r=e("../../composite-xform"),i=e("./sqref-ext-xform"),a=e("./cf-rule-ext-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"xm:sqref":e.sqRef=new i,"x14:cfRule":e.cfRule=new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:conditionalFormatting"}},{key:"prepare",value:function(e,t){var n=this;e.rules.forEach((function(e){n.cfRule.prepare(e,t)}))}},{key:"render",value:function(e,t){var n=this;t.rules.some(a.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach((function(t){return n.cfRule.render(e,t)})),this.sqRef.render(e,t.ref),e.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}])}(r);t.exports=o},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,n){var r=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),a=e("./conditional-formatting-ext-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x14:conditionalFormatting":e.cfXform=new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:conditionalFormattings"}},{key:"hasContent",value:function(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some((function(e){return e.rules.some(i.isExt)}))),e.hasExtContent}},{key:"prepare",value:function(e,t){var n=this;e.forEach((function(e){n.cfXform.prepare(e,t)}))}},{key:"render",value:function(e,t){var n=this;this.hasContent(t)&&(e.openNode(this.tag),t.forEach((function(t){return n.cfXform.render(e,t)})),e.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(e,t){this.model.push(t.model)}}])}(r);t.exports=o},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,n){var r=e("../../base-xform"),i=e("../../composite-xform"),a=e("../../style/color-xform"),o=e("./cfvo-ext-xform"),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x14:cfvo":e.cfvoXform=new o,"x14:borderColor":e.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":e.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":e.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":e.axisColorXform=new a("x14:axisColor")},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:dataBar"}},{key:"render",value:function(e,t){var n=this;e.openNode(this.tag,{minLength:r.toIntAttribute(t.minLength,0,!0),maxLength:r.toIntAttribute(t.maxLength,100,!0),border:r.toBoolAttribute(t.border,!1),gradient:r.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(t.axisPosition,"auto"),direction:r.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],minLength:r.toIntValue(t.minLength,0),maxLength:r.toIntValue(t.maxLength,100),border:r.toBoolValue(t.border,!1),gradient:r.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(t.axisPosition,"auto"),direction:r.toStringValue(t.direction,"leftToRight")}}},{key:"onParserClose",value:function(e,t){var n=h(e.split(":"),2)[1];"cfvo"===n?this.model.cfvo.push(t.model):this.model[n]=t.model}}],[{key:"isExt",value:function(e){return!e.gradient}}])}(i);t.exports=s},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xm:f"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../../base-xform"));t.exports=r},{"../../base-xform":32}],81:[function(e,t,n){var r=e("../../base-xform"),i=e("../../composite-xform"),a=e("./cfvo-ext-xform"),o=e("./cf-icon-ext-xform"),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x14:cfvo":e.cfvoXform=new a,"x14:cfIcon":e.cfIconXform=new o},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:iconSet"}},{key:"render",value:function(e,t){var n=this;e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0),custom:r.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),t.icons&&t.icons.forEach((function(t,r){t.iconId=r,n.cfIconXform.render(e,t)})),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse,!1),showValue:r.toBoolValue(t.showValue,!0)}}},{key:"onParserClose",value:function(e,t){var n=h(e.split(":"),2)[1];switch(n){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}}])}(i);t.exports=s},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xm:sqref"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../../base-xform"));t.exports=r},{"../../base-xform":32}],83:[function(e,t,n){var r=e("../../base-xform"),i=e("../../composite-xform"),a=e("../../../../doc/range"),o=e("./databar-xform"),s=e("./ext-lst-ref-xform"),c=e("./formula-xform"),l=e("./color-scale-xform"),u=e("./icon-set-xform"),h={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new a(e.ref).tl;switch(e.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(e.text,'",').concat(t,")))");case"containsBlanks":return"LEN(TRIM(".concat(t,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(t,"))>0");case"containsErrors":return"ISERROR(".concat(t,")");case"notContainsErrors":return"NOT(ISERROR(".concat(t,"))");default:return}},g=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new a(e.ref).tl;switch(e.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(t,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(t,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(t,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(t,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(t,",1)=TODAY()-1");case"today":return"FLOOR(".concat(t,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(t,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(t,",1)<=6,FLOOR(").concat(t,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(t,")=MONTH(TODAY()),YEAR(").concat(t,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0+1)))");default:return}},m=function(e){var t=e.type,n=e.operator;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:n}}},v=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={dataBar:e.databarXform=new o,extLst:e.extLstRefXform=new s,formula:e.formulaXform=new c,colorScale:e.colorScaleXform=new l,iconSet:e.iconSetXform=new u},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"cfRule"}},{key:"render",value:function(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}},{key:"renderExpression",value:function(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}},{key:"renderCellIs",value:function(e,t){var n=this;e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach((function(t){n.formulaXform.render(e,t)})),e.closeNode()}},{key:"renderTop10",value:function(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:r.toBoolAttribute(t.percent,!1),bottom:r.toBoolAttribute(t.bottom,!1),rank:r.toIntValue(t.rank,10,!0)})}},{key:"renderAboveAverage",value:function(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:r.toBoolAttribute(t.aboveAverage,!0)})}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}},{key:"renderColorScale",value:function(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,n){t.isPrimitive(n)&&(e.openNode(this.tag,{type:"iconSet",priority:n.priority}),this.iconSetXform.render(e,n),e.closeNode())}},{key:"renderText",value:function(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:r.toStringAttribute(t.operator,"containsText")});var n=d(t);n&&this.formulaXform.render(e,n),e.closeNode()}},{key:"renderTimePeriod",value:function(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});var n=g(t);n&&this.formulaXform.render(e,n),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return Zi(Zi({},m(t)),{},{dxfId:r.toIntValue(t.dxfId),priority:r.toIntValue(t.priority),timePeriod:t.timePeriod,percent:r.toBoolValue(t.percent),bottom:r.toBoolValue(t.bottom),rank:r.toIntValue(t.rank),aboveAverage:r.toBoolValue(t.aboveAverage)})}},{key:"onParserClose",value:function(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}],[{key:"isPrimitive",value:function(e){return"iconSet"!==e.type||!e.custom&&!h[e.iconSet]}}])}(i);t.exports=v},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,n){var r=e("../../base-xform"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"cfvo"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}},{key:"parseOpen",value:function(e){this.model={type:e.attributes.type,value:r.toFloatValue(e.attributes.val)}}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(r);t.exports=i},{"../../base-xform":32}],85:[function(e,t,n){var r=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={cfvo:e.cfvoXform=new a,color:e.colorXform=new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"colorScale"}},{key:"render",value:function(e,t){var n=this;e.openNode(this.tag),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),t.color.forEach((function(t){n.colorXform.render(e,t)})),e.closeNode()}},{key:"createNewModel",value:function(e){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}}])}(r);t.exports=o},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,n){var r=e("../../composite-xform"),i=e("./cf-rule-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={cfRule:new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"render",value:function(e,t){var n=this;t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach((function(r){i.isPrimitive(r)&&(r.ref=t.ref,n.map.cfRule.render(e,r))})),e.closeNode())}},{key:"createNewModel",value:function(e){return{ref:e.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(e,t){this.model.rules.push(t.model)}}])}(r);t.exports=a},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,n){var r=e("../../base-xform"),i=e("./conditional-formatting-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).cfXform=new i,e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(e,t){var n=e.reduce((function(e,t){return Math.max.apply(Math,[e].concat(A(t.rules.map((function(e){return e.priority||0})))))}),1);e.forEach((function(e){e.rules.forEach((function(e){e.priority||(e.priority=n++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))}))}))}},{key:"render",value:function(e,t){var n=this;t.forEach((function(t){n.cfXform.render(e,t)}))}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(e,t){e.forEach((function(e){e.rules.forEach((function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)}))}))}}])}(r);t.exports=a},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,n){var r=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={cfvo:e.cfvoXform=new a,color:e.colorXform=new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"dataBar"}},{key:"render",value:function(e,t){var n=this;e.openNode(this.tag),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),this.colorXform.render(e,t.color),e.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}])}(r);t.exports=o},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,n){var r=e("../../base-xform"),i=e("../../composite-xform"),a=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"x14:id"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(r),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x14:id":e.idXform=new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"ext"}},{key:"render",value:function(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model.x14Id=t.model}}])}(i),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={ext:new o},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"extLst"}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}}])}(i);t.exports=s},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"formula"}},{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}}])}(e("../../base-xform"));t.exports=r},{"../../base-xform":32}],91:[function(e,t,n){var r=e("../../base-xform"),i=e("../../composite-xform"),a=e("./cfvo-xform"),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={cfvo:e.cfvoXform=new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"iconSet"}},{key:"render",value:function(e,t){var n=this;e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach((function(t){n.cfvoXform.render(e,t)})),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse),showValue:r.toBoolValue(t.showValue),cfvo:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}}])}(i);t.exports=o},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,n){var r=e("../../../utils/utils"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"col"}},{key:"prepare",value:function(e,t){var n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}},{key:"render",value:function(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}},{key:"parseOpen",value:function(e){if("col"===e.name){var t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),r.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),r.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),r.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}])}(e("../base-xform"));t.exports=i},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,n){var r=e("../../../utils/under-dash"),i=e("../../../utils/utils"),a=e("../../../utils/col-cache"),o=e("../base-xform"),s=e("../../../doc/range");function c(e,t,n,r){var i=t[n];void 0!==i?e[n]=i:void 0!==r&&(e[n]=r)}function l(e,t,n,r){var a=t[n];void 0!==a?e[n]=i.parseBoolean(a):void 0!==r&&(e[n]=r)}function u(e){var t=r.map(e,(function(e,t){return{address:t,dataValidation:e,marked:!1}})).sort((function(e,t){return r.strcmp(e.address,t.address)})),n=r.keyBy(t,"address"),i=function(t,n,i){for(var o=0;o<n;o++){var s=a.encodeAddress(t.row+o,i);if(!e[s]||!r.isEqual(e[t.address],e[s]))return!1}return!0};return t.map((function(t){if(!t.marked){var o=a.decodeEx(t.address);if(o.dimensions)return n[o.dimensions].marked=!0,Zi(Zi({},t.dataValidation),{},{sqref:t.address});for(var s=1,c=a.encodeAddress(o.row+s,o.col);e[c]&&r.isEqual(t.dataValidation,e[c]);)s++,c=a.encodeAddress(o.row+s,o.col);for(var l=1;i(o,s,o.col+l);)l++;for(var u=0;u<s;u++)for(var h=0;h<l;h++)c=a.encodeAddress(o.row+u,o.col+h),n[c].marked=!0;if(s>1||l>1){var f=o.row+(s-1),d=o.col+(l-1);return Zi(Zi({},t.dataValidation),{},{sqref:"".concat(t.address,":").concat(a.encodeAddress(f,d))})}return Zi(Zi({},t.dataValidation),{},{sqref:t.address})}return null})).filter(Boolean)}var h=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"dataValidations"}},{key:"render",value:function(e,t){var n=u(t);n.length&&(e.openNode("dataValidations",{count:n.length}),n.forEach((function(t){e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((function(n,r){e.openNode("formula".concat(r+1)),"date"===t.type?e.writeText(i.dateToExcel(new Date(n))):e.writeText(n),e.closeNode()})),e.closeNode()})),e.closeNode())}},{key:"parseOpen",value:function(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&l(t,e.attributes,"allowBlank"),l(t,e.attributes,"showInputMessage"),l(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:c(t,e.attributes,"operator","between")}return c(t,e.attributes,"promptTitle"),c(t,e.attributes,"prompt"),c(t,e.attributes,"errorStyle"),c(t,e.attributes,"errorTitle"),c(t,e.attributes,"error"),this._dataValidation=t,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._formula&&this._formula.push(e)}},{key:"parseClose",value:function(e){var t=this;switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach((function(e){e.includes(":")?new s(e).forEachAddress((function(e){t.model[e]=t._dataValidation})):t.model[e]=t._dataValidation})),!0;case"formula1":case"formula2":var n=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":n=parseInt(n,10);break;case"decimal":n=parseFloat(n);break;case"date":n=i.excelToDate(parseFloat(n))}return this._dataValidation.formulae.push(n),this._formula=void 0,!0;default:return!0}}}])}(o);t.exports=h},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"dimension"}},{key:"render",value:function(e,t){t&&e.leafNode("dimension",{ref:t})}},{key:"parseOpen",value:function(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],95:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"drawing"}},{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],96:[function(e,t,n){var r=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={"x14:conditionalFormattings":e.conditionalFormattings=new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"ext"}},{key:"hasContent",value:function(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}},{key:"prepare",value:function(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}},{key:"render",value:function(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}}])}(r),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={ext:e.ext=new a},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"extLst"}},{key:"prepare",value:function(e,t){this.ext.prepare(e,t)}},{key:"hasContent",value:function(e){return this.ext.hasContent(e)}},{key:"render",value:function(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}}])}(r);t.exports=o},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"headerFooter"}},{key:"render",value:function(e,t){if(t){e.addRollback();var n=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),n=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),n=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),n=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),n=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),n=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),n=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),n=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],98:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"hyperlink"}},{key:"render",value:function(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}},{key:"parseOpen",value:function(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"isInternalLink",value:function(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],99:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"mergeCell"}},{key:"render",value:function(e,t){e.leafNode("mergeCell",{ref:t})}},{key:"parseOpen",value:function(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],100:[function(e,t,n){var r=e("../../../utils/under-dash"),i=e("../../../doc/range"),a=e("../../../utils/col-cache"),o=e("../../../doc/enums"),s=function(){function e(){f(this,e),this.merges={}}return p(e,[{key:"add",value:function(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{var t="".concat(e.master,":").concat(e.address);this.merges[e.master]=new i(t)}}},{key:"mergeCells",get:function(){return r.map(this.merges,(function(e){return e.range}))}},{key:"reconcile",value:function(e,t){r.each(e,(function(e){for(var n=a.decode(e),r=n.top;r<=n.bottom;r++)for(var i=t[r-1],s=n.left;s<=n.right;s++){var c=i.cells[s-1];c?c.type===o.ValueType.Merge&&(c.master=n.tl):i.cells[s]={type:o.ValueType.Null,address:a.encodeAddress(r,s)}}}))}},{key:"getMasterAddress",value:function(e){var t=this.hash[e];return t&&t.tl}}])}();t.exports=s},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,n){var r=e("../base-xform"),i=function(e){return void 0!==e},a=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"outlinePr"}},{key:"render",value:function(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:i(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(r);t.exports=a},{"../base-xform":32}],102:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"brk"}},{key:"render",value:function(e,t){e.leafNode("brk",t)}},{key:"parseOpen",value:function(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],103:[function(e,t,n){var r=e("../../../utils/under-dash"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"pageMargins"}},{key:"render",value:function(e,t){if(t){var n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};r.some(n,(function(e){return void 0!==e}))&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=i},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"pageSetUpPr"}},{key:"render",value:function(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],105:[function(e,t,n){var r=e("../../../utils/under-dash");function i(e){return e?"1":void 0}function a(e){if("overThenDown"===e)return e}function o(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function s(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}function c(e){return void 0!==e?parseInt(e,10):void 0}var l=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"pageSetup"}},{key:"render",value:function(e,t){if(t){var n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:a(t.pageOrder),blackAndWhite:i(t.blackAndWhite),draft:i(t.draft),cellComments:o(t.cellComments),errors:s(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:i(t.firstPageNumber),usePrinterDefaults:i(t.usePrinterDefaults),copies:t.copies};r.some(n,(function(e){return void 0!==e}))&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={paperSize:c(e.attributes.paperSize),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=l},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"picture"}},{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],107:[function(e,t,n){var r=e("../../../utils/under-dash");function i(e){return e?"1":void 0}var a=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"printOptions"}},{key:"render",value:function(e,t){if(t){var n={headings:i(t.showRowColHeaders),gridLines:i(t.showGridLines),horizontalCentered:i(t.horizontalCentered),verticalCentered:i(t.verticalCentered)};r.some(n,(function(e){return void 0!==e}))&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=a},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,n){var r=e("./page-breaks-xform"),i=function(e){function t(){return f(this,t),Yi(this,t,[{tag:"rowBreaks",count:!0,childXform:new r}])}return Ve(t,e),p(t,[{key:"render",value:function(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));var n=this.childXform;t.forEach((function(t){n.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}])}(e("../list-xform"));t.exports=i},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,n){var r=e("../base-xform"),i=e("../../../utils/utils"),a=e("./cell-xform"),o=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).maxItems=e&&e.maxItems,n.map={c:new a},n}return Ve(t,e),p(t,[{key:"tag",get:function(){return"row"}},{key:"prepare",value:function(e,t){var n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);var r=this.map.c;e.cells.forEach((function(e){r.prepare(e,t)}))}},{key:"render",value:function(e,t,n){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans","".concat(t.min,":").concat(t.max)),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");var r=this.map.c;t.cells.forEach((function(t){r.render(e,t,n)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(":").map((function(e){return parseInt(e,10)})):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);var n=this.map.c;e.cells.forEach((function(e){n.reconcile(e,t)}))}}])}(r);t.exports=o},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,n){var r=e("../../../utils/under-dash"),i=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"sheetFormatPr"}},{key:"render",value:function(e,t){if(t){var n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(n.customHeight="1"),r.some(n,(function(e){return void 0!==e}))&&e.leafNode("sheetFormatPr",n)}}},{key:"parseOpen",value:function(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=i},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,n){var r=e("../base-xform"),i=e("../style/color-xform"),a=e("./page-setup-properties-xform"),o=e("./outline-properties-xform"),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={tabColor:new i("tabColor"),pageSetUpPr:new a,outlinePr:new o},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"sheetPr"}},{key:"render",value:function(e,t){if(t){e.addRollback(),e.openNode("sheetPr");var n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,(n=this.map.outlinePr.render(e,t.outlineProperties)||n)?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){return!!this.parser&&(this.parser.parseText(e),!0)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}])}(r);t.exports=s},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,n){var r=e("../../../utils/under-dash");function i(e,t){return e?t:void 0}function a(e,t){return e===t||void 0}var o=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"sheetProtection"}},{key:"render",value:function(e,t){if(t){var n={sheet:i(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:i(t.formatCells,"0"),formatColumns:i(t.formatColumns,"0"),formatRows:i(t.formatRows,"0"),insertColumns:i(t.insertColumns,"0"),insertRows:i(t.insertRows,"0"),insertHyperlinks:i(t.insertHyperlinks,"0"),deleteColumns:i(t.deleteColumns,"0"),deleteRows:i(t.deleteRows,"0"),sort:i(t.sort,"0"),autoFilter:i(t.autoFilter,"0"),pivotTables:i(t.pivotTables,"0")};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=i(!1===t.objects,"1"),n.scenarios=i(!1===t.scenarios,"1")),r.some(n,(function(e){return void 0!==e}))&&e.leafNode(this.tag,n)}}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={sheet:a(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:a(e.attributes.formatCells,"0"),formatColumns:a(e.attributes.formatColumns,"0"),formatRows:a(e.attributes.formatRows,"0"),insertColumns:a(e.attributes.insertColumns,"0"),insertRows:a(e.attributes.insertRows,"0"),insertHyperlinks:a(e.attributes.insertHyperlinks,"0"),deleteColumns:a(e.attributes.deleteColumns,"0"),deleteRows:a(e.attributes.deleteRows,"0"),sort:a(e.attributes.sort,"0"),autoFilter:a(e.attributes.autoFilter,"0"),pivotTables:a(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=o},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,n){var r=e("../../../utils/col-cache"),i=e("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"},o=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"sheetView"}},{key:"prepare",value:function(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}},{key:"render",value:function(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});var n,i,a,o,s=function(t,n,r){r&&e.addAttribute(t,n)};switch(s("rightToLeft","1",!0===t.rightToLeft),s("tabSelected","1",t.tabSelected),s("showRuler","0",!1===t.showRuler),s("showRowColHeaders","0",!1===t.showRowColHeaders),s("showGridLines","0",!1===t.showGridLines),s("zoomScale",t.zoomScale,t.zoomScale),s("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),s("view",t.style,t.style),t.state){case"frozen":i=t.xSplit||0,a=t.ySplit||0,n=t.topLeftCell||r.getAddress(a+1,i+1).address,o=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:n,activePane:o,state:"frozen"}),e.leafNode("selection",{pane:o,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":var t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){var t,n;return"sheetView"!==e||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),(n=this.selections[this.pane.activePane])&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},(n=this.selections.topLeft)&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}},{key:"reconcile",value:function(){}}])}(i);t.exports=o},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"tablePart"}},{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],115:[function(e,t,n){var r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),o=e("../../rel-type"),s=e("./merges"),c=e("../base-xform"),l=e("../list-xform"),u=e("./row-xform"),h=e("./col-xform"),d=e("./dimension-xform"),g=e("./hyperlink-xform"),m=e("./merge-cell-xform"),v=e("./data-validations-xform"),y=e("./sheet-properties-xform"),A=e("./sheet-format-properties-xform"),b=e("./sheet-view-xform"),w=e("./sheet-protection-xform"),x=e("./page-margins-xform"),C=e("./page-setup-xform"),_=e("./print-options-xform"),I=e("./auto-filter-xform"),E=e("./picture-xform"),k=e("./drawing-xform"),S=e("./table-part-xform"),B=e("./row-breaks-xform"),M=e("./header-footer-xform"),T=e("./cf/conditional-formattings-xform"),O=e("./ext-lst-xform"),D=function(e,t){Object.keys(t).forEach((function(n){var r=e[n],i=t[n];void 0===r&&void 0!==i&&(e[n]=i)}))},P=function(e,t){if(!t||!t.length)return e;if(!e||!e.length)return t;var n={},r={};return e.forEach((function(e){n[e.ref]=e,e.rules.forEach((function(e){var t=e.x14Id;t&&(r[t]=e)}))})),t.forEach((function(t){t.rules.forEach((function(i){var a=r[i.x14Id];a?D(a,i):n[t.ref]?n[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})}))})),e},L=function(e){function t(e){var n;f(this,t),n=Yi(this,t);var r=e||{},i=r.maxRows,a=r.maxCols,o=r.ignoreNodes;return n.ignoreNodes=o||[],n.map={sheetPr:new y,dimension:new d,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new b}),sheetFormatPr:new A,cols:new l({tag:"cols",count:!1,childXform:new h}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:a}),maxItems:i}),autoFilter:new I,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new m}),rowBreaks:new B,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new g}),pageMargins:new x,dataValidations:new v,pageSetup:new C,headerFooter:new M,printOptions:new _,picture:new E,drawing:new k,sheetProtection:new w,tableParts:new l({tag:"tableParts",count:!0,childXform:new S}),conditionalFormatting:new T,extLst:new O},n}return Ve(t,e),p(t,[{key:"prepare",value:function(e,t){var n=this;t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;var r=e.rels=[];function a(e){return"rId".concat(e.length+1)}if(e.hyperlinks.forEach((function(e){var t=a(r);e.rId=t,r.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})})),e.comments.length>0){var c={Id:a(r),Type:o.Comments,Target:"../comments".concat(e.id,".xml")};r.push(c);var l={Id:a(r),Type:o.VmlDrawing,Target:"../drawings/vmlDrawing".concat(e.id,".vml")};r.push(l),e.comments.forEach((function(e){e.refAddress=i.decodeAddress(e.ref)})),t.commentRefs.push({commentName:"comments".concat(e.id),vmlDrawing:"vmlDrawing".concat(e.id)})}var u,h=[];e.media.forEach((function(i){if("background"===i.type){var s=a(r);u=t.media[i.imageId],r.push({Id:s,Type:o.Image,Target:"../media/".concat(u.name,".").concat(u.extension)}),e.background={rId:s},e.image=t.media[i.imageId]}else if("image"===i.type){var c=e.drawing;u=t.media[i.imageId],c||(c=e.drawing={rId:a(r),name:"drawing".concat(++t.drawingsCount),anchors:[],rels:[]},t.drawings.push(c),r.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(c.name,".xml")}));var l=n.preImageId===i.imageId?h[i.imageId]:h[c.rels.length];l||(l=a(c.rels),h[c.rels.length]=l,c.rels.push({Id:l,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(u.name,".").concat(u.extension)}));var f={picture:{rId:l},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){var d=a(c.rels);h[c.rels.length]=d,f.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:d},c.rels.push({Id:d,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}n.preImageId=i.imageId,c.anchors.push(f)}})),e.tables.forEach((function(e){var n=a(r);e.rId=n,r.push({Id:n,Type:o.Table,Target:"../tables/".concat(e.target)}),e.columns.forEach((function(e){var n=e.style;n&&(e.dxfId=t.styles.addDxfStyle(n))}))})),this.map.extLst.prepare(e,t)}},{key:"render",value:function(e,n){e.openXml(a.StdDocAttributes),e.openNode("worksheet",t.WORKSHEET_ATTRIBUTES);var r=n.properties?{defaultRowHeight:n.properties.defaultRowHeight,dyDescent:n.properties.dyDescent,outlineLevelCol:n.properties.outlineLevelCol,outlineLevelRow:n.properties.outlineLevelRow}:void 0;n.properties&&n.properties.defaultColWidth&&(r.defaultColWidth=n.properties.defaultColWidth);var i={outlineProperties:n.properties&&n.properties.outlineProperties,tabColor:n.properties&&n.properties.tabColor,pageSetup:n.pageSetup&&n.pageSetup.fitToPage?{fitToPage:n.pageSetup.fitToPage}:void 0},s=n.pageSetup&&n.pageSetup.margins,c={showRowColHeaders:n.pageSetup&&n.pageSetup.showRowColHeaders,showGridLines:n.pageSetup&&n.pageSetup.showGridLines,horizontalCentered:n.pageSetup&&n.pageSetup.horizontalCentered,verticalCentered:n.pageSetup&&n.pageSetup.verticalCentered},l=n.sheetProtection;this.map.sheetPr.render(e,i),this.map.dimension.render(e,n.dimensions),this.map.sheetViews.render(e,n.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,n.cols),this.map.sheetData.render(e,n.rows),this.map.sheetProtection.render(e,l),this.map.autoFilter.render(e,n.autoFilter),this.map.mergeCells.render(e,n.mergeCells),this.map.conditionalFormatting.render(e,n.conditionalFormattings),this.map.dataValidations.render(e,n.dataValidations),this.map.hyperlinks.render(e,n.hyperlinks),this.map.printOptions.render(e,c),this.map.pageMargins.render(e,s),this.map.pageSetup.render(e,n.pageSetup),this.map.headerFooter.render(e,n.headerFooter),this.map.rowBreaks.render(e,n.rowBreaks),this.map.drawing.render(e,n.drawing),this.map.picture.render(e,n.background),this.map.tableParts.render(e,n.tables),this.map.extLst.render(e,n),n.rels&&n.rels.forEach((function(t){t.Type===o.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})})),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(r.each(this.map,(function(e){e.reset()})),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){var t=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlineProperties);var n={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},r=Object.assign(n,this.map.pageSetup.model,this.map.printOptions.model),i=P(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:t,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:i},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}},{key:"reconcile",value:function(e,t){var n=(e.relationships||[]).reduce((function(n,r){if(n[r.Id]=r,r.Type===o.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===o.VmlDrawing&&e.comments&&e.comments.length){var i=t.vmlDrawings[r.Target].comments;e.comments.forEach((function(e,t){e.note=Object.assign({},e.note,i[t])}))}return n}),{});if(t.commentsMap=(e.comments||[]).reduce((function(e,t){return t.ref&&(e[t.ref]=t),e}),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((function(e,t){return t.rId&&(e[t.address]=n[t.rId].Target),e}),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((function(e){e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){var r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(r){var i=r[1];t.drawings[i].anchors.forEach((function(t){if(t.medium){var n={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(n)}}))}}var a=e.background&&n[e.background.rId];if(a){var s=a.Target.split("/media/")[1],c=t.mediaIndex&&t.mediaIndex[s];void 0!==c&&e.media.push({type:"background",imageId:c})}e.tables=(e.tables||[]).map((function(e){var r=n[e.rId];return t.tables[r.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}])}(c);L.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=L},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.attr=e.attr,n}return Ve(t,e),p(t,[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],117:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.attr=e.attr,n.attrs=e.attrs,n._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},n._parse=e.parse||function(e){return new Date(e)},n}return Ve(t,e),p(t,[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],118:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.attr=e.attr,n.attrs=e.attrs,n.zero=e.zero,n}return Ve(t,e),p(t,[{key:"render",value:function(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],119:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).tag=e.tag,n.attr=e.attr,n.attrs=e.attrs,n}return Ve(t,e),p(t,[{key:"render",value:function(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],120:[function(e,t,n){var r=e("./base-xform"),i=e("../../utils/xml-stream");function a(e,t){e.openNode(t.tag,t.$),t.c&&t.c.forEach((function(t){a(e,t)})),t.t&&e.writeText(t.t),e.closeNode()}var o=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t))._model=e,n}return Ve(t,e),p(t,[{key:"render",value:function(e){if(!this._xml){var t=new i;a(t,this._model),this._xml=t.xml}e.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return e!==this._model.tag}}])}(r);t.exports=o},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,n){var r=e("./text-xform"),i=e("./rich-text-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={r:new i,t:new r},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"rPh"}},{key:"render",value:function(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){var n=this.map.r;t.richText.forEach((function(t){n.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}])}(e("../base-xform"));t.exports=a},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,n){var r=e("./text-xform"),i=e("../style/font-xform"),a=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).model=e,n}return Ve(t,e),p(t,[{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new r)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new i(t.FONT_OPTIONS))}},{key:"render",value:function(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}])}(e("../base-xform"));a.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=a},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,n){var r=e("./text-xform"),i=e("./rich-text-xform"),a=e("./phonetic-text-xform"),o=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).model=e,n.map={r:new i,t:new r,rPh:new a},n}return Ve(t,e),p(t,[{key:"tag",get:function(){return"si"}},{key:"render",value:function(e,t){var n=this;e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach((function(t){n.map.r.render(e,t)})):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}])}(e("../base-xform"));t.exports=o},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./shared-string-xform"),o=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).model=e||{values:[],count:0},n.hash=Object.create(null),n.rich=Object.create(null),n}return Ve(t,e),p(t,[{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new a)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}},{key:"getString",value:function(e){return this.model.values[e]}},{key:"add",value:function(e){return e.richText?this.addRichText(e):this.addText(e)}},{key:"addText",value:function(e){var t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}},{key:"addRichText",value:function(e){var t=this.sharedStringXform.toXml(e),n=this.rich[t];return void 0===n&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}},{key:"render",value:function(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});var n=this.sharedStringXform;t.values.forEach((function(t){n.render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(e))}}])}(i);t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"t"}},{key:"render",value:function(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))}},{key:"parseOpen",value:function(e){return"t"===e.name&&(this._text=[],!0)}},{key:"parseText",value:function(e){this._text.push(e)}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],126:[function(e,t,n){var r=e("../../../doc/enums"),i=e("../../../utils/utils"),a=e("../base-xform"),o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((function(e,t){return e[t]=!0,e}),{}),horizontal:function(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((function(e,t){return e[t]=!0,e}),{}),vertical:function(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:function(e){return!!e||void 0},shrinkToFit:function(e){return!!e||void 0},textRotation:function(e){return"vertical"===e||(e=i.validInt(e))>=-90&&e<=90?e:void 0},indent:function(e){return e=i.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case"ltr":return r.ReadingOrder.LeftToRight;case"rtl":return r.ReadingOrder.RightToLeft;default:return}}},s={toXml:function(e){if(e=o.textRotation(e)){if("vertical"===e)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel:function(e){var t=i.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}},c=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"alignment"}},{key:"render",value:function(e,t){e.addRollback(),e.openNode("alignment");var n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r("horizontal",o.horizontal(t.horizontal)),r("vertical",o.vertical(t.vertical)),r("wrapText",!!o.wrapText(t.wrapText)&&"1"),r("shrinkToFit",!!o.shrinkToFit(t.shrinkToFit)&&"1"),r("indent",o.indent(t.indent)),r("textRotation",s.toXml(t.textRotation)),r("readingOrder",o.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={},n=!1;function r(e,r,i){e&&(t[r]=i,n=!0)}r(e.attributes.horizontal,"horizontal",e.attributes.horizontal),r(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),r(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText)),r(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit)),r(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,"textRotation",s.toModel(e.attributes.textRotation)),r(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=n?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a);t.exports=c},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,n){var r=e("../base-xform"),i=e("../../../utils/utils"),a=e("./color-xform"),o=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).name=e,n.map={color:new a},n}return Ve(t,e),p(t,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(e,t,n){var r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),r&&this.map.color.render(e,r)),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes.style;return this.model=t?{style:t}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(e){return t.validStyleValues[e]}}])}(r);o.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((function(e,t){return e[t]=!0,e}),{});var s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={top:new o("top"),left:new o("left"),bottom:new o("bottom"),right:new o("right"),diagonal:new o("diagonal")},e}return Ve(t,e),p(t,[{key:"render",value:function(e,t){var n=t.color;function r(r,i){r&&!r.color&&t.color&&(r=Zi(Zi({},r),{},{color:t.color})),i.render(e,r,n)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){var t=this.model={},n=function(e,n,r){n&&(r&&Object.assign(n,r),t[e]=n)};n("left",this.map.left.model),n("right",this.map.right.model),n("top",this.map.top.model),n("bottom",this.map.bottom.model),n("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}])}(r);t.exports=s},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).name=e||"color",n}return Ve(t,e),p(t,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}},{key:"parseOpen",value:function(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],129:[function(e,t,n){var r=e("../base-xform"),i=e("./alignment-xform"),a=e("./border-xform"),o=e("./fill-xform"),s=e("./font-xform"),c=e("./numfmt-xform"),l=e("./protection-xform"),u=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={alignment:new i,border:new a,fill:new o,font:new s,numFmt:new c,protection:new l},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"dxf"}},{key:"render",value:function(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){var n={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,n)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}])}(r);t.exports=u},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,n){var r=e("../base-xform"),i=e("./color-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={color:new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"stop"}},{key:"render",value:function(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}])}(r),o=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={fgColor:new i("fgColor"),bgColor:new i("bgColor")},e}return Ve(t,e),p(t,[{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}},{key:"render",value:function(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}])}(r),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={stop:new a},e}return Ve(t,e),p(t,[{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}},{key:"render",value:function(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}var n=this.map.stop;t.stops.forEach((function(t){n.render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":var t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}])}(r),c=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={patternFill:new o,gradientFill:new s},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"fill"}},{key:"render",value:function(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(e){return t.validPatternValues[e]}}])}(r);c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((function(e,t){return e[t]=!0,e}),{}),c.StopXform=a,c.PatternFillXform=o,c.GradientFillXform=s,t.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,n){var r=e("./color-xform"),i=e("../simple/boolean-xform"),a=e("../simple/integer-xform"),o=e("../simple/string-xform"),s=e("./underline-xform"),c=e("../../../utils/under-dash"),l=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).options=e||t.OPTIONS,n.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new s},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new r},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},n.map[n.options.fontNameTag]={prop:"name",xform:new o({tag:n.options.fontNameTag,attr:"val"})},n}return Ve(t,e),p(t,[{key:"tag",get:function(){return this.options.tagName}},{key:"render",value:function(e,t){var n=this.map;e.openNode(this.options.tagName),c.each(this.map,(function(r,i){n[i].xform.render(e,t[r.prop])})),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser&&!this.parser.parseClose(e)){var t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}])}(e("../base-xform"));l.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=l},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,n){var r=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),a=e("../base-xform");function o(){var e={};return r.each(i,(function(t,n){t.f&&(e[t.f]=parseInt(n,10))})),e}var s=o(),c=function(e){function t(e,n){var r;return f(this,t),(r=Yi(this,t)).id=e,r.formatCode=n,r}return Ve(t,e),p(t,[{key:"tag",get:function(){return"numFmt"}},{key:"render",value:function(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}},{key:"parseOpen",value:function(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(a);c.getDefaultFmtId=function(e){return s[e]},c.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=c},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,n){var r=e("../base-xform"),i={boolean:function(e,t){return void 0===e?t:e}},a=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"protection"}},{key:"render",value:function(e,t){e.addRollback(),e.openNode("protection");var n=!1;function r(t,r){void 0!==r&&(e.addAttribute(t,r),n=!0)}r("locked",i.boolean(t.locked,!0)?void 0:"0"),r("hidden",i.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),n?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},n=!t.locked||t.hidden;this.model=n?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(r);t.exports=a},{"../base-xform":32}],134:[function(e,t,n){var r=e("../base-xform"),i=e("./alignment-xform"),a=e("./protection-xform"),o=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).xfId=!(!e||!e.xfId),n.map={alignment:new i,protection:new a},n}return Ve(t,e),p(t,[{key:"tag",get:function(){return"xf"}},{key:"render",value:function(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}])}(r);t.exports=o},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,n){var r=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("../static-xform"),s=e("../list-xform"),c=e("./font-xform"),l=e("./fill-xform"),u=e("./border-xform"),h=e("./numfmt-xform"),d=e("./style-xform"),g=e("./dxf-xform"),m=164,v=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).map={numFmts:new s({tag:"numFmts",count:!0,childXform:new h}),fonts:new s({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new s({tag:"fills",count:!0,childXform:new l}),borders:new s({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new s({tag:"cellStyleXfs",count:!0,childXform:new d}),cellXfs:new s({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new s({tag:"dxfs",always:!0,count:!0,childXform:new g}),numFmt:new h,font:new c,fill:new l,border:new u,style:new d({xfId:!0}),cellStyles:t.STATIC_XFORMS.cellStyles,tableStyles:t.STATIC_XFORMS.tableStyles,extLst:t.STATIC_XFORMS.extLst},e&&n.init(),n}return Ve(t,e),p(t,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}},{key:"render",value:function(e,n){n=n||this.model,e.openXml(i.StdDocAttributes),e.openNode("styleSheet",t.STYLESHEET_ATTRIBUTES),this.index?(n.numFmts&&n.numFmts.length&&(e.openNode("numFmts",{count:n.numFmts.length}),n.numFmts.forEach((function(t){e.writeXml(t)})),e.closeNode()),n.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:n.fonts.length,"x14ac:knownFonts":1}),n.fonts.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode("fills",{count:n.fills.length}),n.fills.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode("borders",{count:n.borders.length}),n.borders.forEach((function(t){e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:n.styles.length}),n.styles.forEach((function(t){e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,n.numFmts),this.map.fonts.render(e,n.fonts),this.map.fills.render(e,n.fills),this.map.borders.render(e,n.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,n.styles)),t.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,n.dxfs),t.STATIC_XFORMS.tableStyles.render(e),t.STATIC_XFORMS.extLst.render(e),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};var n=function(e,n){n.model&&n.model.length&&(t.model[e]=n.model)};if(n("numFmts",this.map.numFmts),n("fonts",this.map.fonts),n("fills",this.map.fills),n("borders",this.map.borders),n("styles",this.map.cellXfs),n("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var r=this.index.numFmt;this.model.numFmts.forEach((function(e){r[e.id]=e.formatCode}))}return!1}return!0}},{key:"addStyleModel",value:function(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var n={};if(t=t||r.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case r.ValueType.Number:n.numFmtId=this._addNumFmtStr("General");break;case r.ValueType.Date:n.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);var i=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,i),i}},{key:"getStyleModel",value:function(e){var t=this.model.styles[e];if(!t)return null;var n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){var r=this.index.numFmt[t.numFmtId]||h.getDefaultFmtCode(t.numFmtId);r&&(n.numFmt=r)}function i(e,t,r){if(r||0===r){var i=t[r];i&&(n[e]=i)}}return i("font",this.model.fonts,t.fontId),i("border",this.model.borders,t.borderId),i("fill",this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}},{key:"addDxfStyle",value:function(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(e){return this.model.dxfs[e]}},{key:"_addStyle",value:function(e){var t=this.map.style.toXml(e),n=this.index.style[t];return void 0===n&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}},{key:"_addNumFmtStr",value:function(e){var t=h.getDefaultFmtId(e);if(void 0!==t)return t;if(void 0!==(t=this.index.numFmt[e]))return t;t=this.index.numFmt[e]=m+this.model.numFmts.length;var n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}},{key:"_addFont",value:function(e){var t=this.map.font.toXml(e),n=this.index.font[t];return void 0===n&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}},{key:"_addBorder",value:function(e){var t=this.map.border.toXml(e),n=this.index.border[t];return void 0===n&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}},{key:"_addFill",value:function(e){var t=this.map.fill.toXml(e),n=this.index.fill[t];return void 0===n&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}])}(a);v.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},v.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};var y=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]},e}return Ve(t,e),p(t,[{key:"parseStream",value:function(e){return e.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(e,t){return t===r.ValueType.Date?this.dateStyleId:0}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var e={numFmtId:h.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}},{key:"getStyleModel",value:function(){return{}}}])}(v);v.Mock=y,t.exports=v},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,n){var r=function(e){function t(e){var n;return f(this,t),(n=Yi(this,t)).model=e,n}return Ve(t,e),p(t,[{key:"tag",get:function(){return"u"}},{key:"render",value:function(e,n){if(!0===(n=n||this.model))e.leafNode("u");else{var r=t.Attributes[n];r&&e.leafNode("u",r)}}},{key:"parseOpen",value:function(e){"u"===e.name&&(this.model=e.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=r},{"../base-xform":32}],137:[function(e,t,n){var r=e("../base-xform"),i=e("./filter-column-xform"),a=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={filterColumn:new i},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"autoFilter"}},{key:"prepare",value:function(e){var t=this;e.columns.forEach((function(e,n){t.map.filterColumn.prepare(e,{index:n})}))}},{key:"render",value:function(e,t){var n=this;return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach((function(t){n.map.filterColumn.render(e,t)})),e.closeNode(),!0}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(e))}}])}(r);t.exports=a},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"customFilter"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],139:[function(e,t,n){var r=e("../base-xform"),i=e("../list-xform"),a=e("./custom-filter-xform"),o=e("./filter-xform"),s=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new o})},e}return Ve(t,e),p(t,[{key:"tag",get:function(){return"filterColumn"}},{key:"prepare",value:function(e,t){e.colId=t.index.toString()}},{key:"render",value:function(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.attributes;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}])}(r);t.exports=s},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"filter"}},{key:"render",value:function(e,t){e.leafNode(this.tag,{val:t.val})}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],141:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"tableColumn"}},{key:"prepare",value:function(e,t){e.id=t.index+1}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],142:[function(e,t,n){var r=function(e){function t(){return f(this,t),Yi(this,t,arguments)}return Ve(t,e),p(t,[{key:"tag",get:function(){return"tableStyleInfo"}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));t.exports=r},{"../base-xform":32}],143:[function(e,t,n){var r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../list-xform"),o=e("./auto-filter-xform"),s=e("./table-column-xform"),c=e("./table-style-info-xform"),l=function(e){function t(){var e;return f(this,t),(e=Yi(this,t)).map={autoFilter:new o,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new s}),tableStyleInfo:new c},e}return Ve(t,e),p(t,[{key:"prepare",value:function(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}},{key:"tag",get:function(){return"table"}},{key:"render",value:function(e,n){e.openXml(r.StdDocAttributes),e.openNode(this.tag,Zi(Zi({},t.TABLE_ATTRIBUTES),{},{id:n.id,name:n.name,displayName:n.displayName||n.name,ref:n.tableRef,totalsRowCount:n.totalsRow?"1":void 0,totalsRowShown:n.totalsRow?void 0:"1",headerRowCount:n.headerRow?"1":"0"})),this.map.autoFilter.render(e,n),this.map.tableColumns.render(e,n.columns),this.map.tableStyleInfo.render(e,n.style),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.name,n=e.attributes;return t===this.tag?(this.reset(),this.model={name:n.name,displayName:n.displayName||n.name,tableRef:n.ref,totalsRow:"1"===n.totalsRowCount,headerRow:"1"===n.headerRowCount}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((function(e,n){t.model.columns[n].filterButton=e.filterButton}))),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:"reconcile",value:function(e,t){e.columns.forEach((function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))}))}}])}(i);l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,r){(function(){var i=e("fs"),a=e("jszip"),o=e("readable-stream").PassThrough,s=e("../utils/zip-stream"),c=e("../utils/stream-buf"),l=e("../utils/utils"),u=e("../utils/xml-stream"),h=e("../utils/browser-buffer-decode").bufferToString,d=e("./xform/style/styles-xform"),g=e("./xform/core/core-xform"),m=e("./xform/strings/shared-strings-xform"),v=e("./xform/core/relationships-xform"),y=e("./xform/core/content-types-xform"),A=e("./xform/core/app-xform"),b=e("./xform/book/workbook-xform"),w=e("./xform/sheet/worksheet-xform"),x=e("./xform/drawing/drawing-xform"),C=e("./xform/table/table-xform"),_=e("./xform/comment/comments-xform"),I=e("./xform/comment/vml-notes-xform"),E=e("./xml/theme1");function k(e,t){return new Promise((function(n,r){i.readFile(e,t,(function(e,t){e?r(e):n(t)}))}))}var S=function(){function e(t){f(this,e),this.workbook=t}return p(e,[{key:"readFile",value:function(){var e=Di(Gi.mark((function e(t,n){var r,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.fs.exists(t);case 2:if(e.sent){e.next=4;break}throw new Error("File not found: ".concat(t));case 4:return r=i.createReadStream(t),e.prev=5,e.next=8,this.read(r,n);case 8:return a=e.sent,r.close(),e.abrupt("return",a);case 13:throw e.prev=13,e.t0=e.catch(5),r.close(),e.t0;case 17:case"end":return e.stop()}}),e,this,[[5,13]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"parseRels",value:function(e){return(new v).parseStream(e)}},{key:"parseWorkbook",value:function(e){return(new b).parseStream(e)}},{key:"parseSharedStrings",value:function(e){return(new m).parseStream(e)}},{key:"reconcile",value:function(e,t){var n=new b,r=new w(t),i=new x,a=new C;n.reconcile(e);var o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((function(t){var n=e.drawings[t],r=e.drawingRels[t];r&&(o.rels=r.reduce((function(e,t){return e[t.Id]=t,e}),{}),(n.anchors||[]).forEach((function(e){var t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)})),i.reconcile(n,o))}));var s={styles:e.styles};Object.values(e.tables).forEach((function(e){a.reconcile(e,s)}));var c={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((function(t){t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,c)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}},{key:"_processWorksheetEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r,i,a){var o,s;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new w(i),e.next=3,o.parseStream(t);case 3:(s=e.sent).sheetNo=r,n.worksheetHash[a]=s,n.worksheets.push(s);case 7:case"end":return e.stop()}}),e)})));function t(t,n,r,i,a){return e.apply(this,arguments)}return t}()},{key:"_processCommentEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new _,e.next=3,i.parseStream(t);case 3:a=e.sent,n.comments["../".concat(r,".xml")]=a;case 5:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processTableEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new C,e.next=3,i.parseStream(t);case 3:a=e.sent,n.tables["../tables/".concat(r,".xml")]=a;case 5:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processWorksheetRelsEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new v,e.next=3,i.parseStream(t);case 3:a=e.sent,n.worksheetRels[r]=a;case 5:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processMediaEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a,o;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((i=r.lastIndexOf("."))>=1)){e.next=6;break}return a=r.substr(i+1),o=r.substr(0,i),e.next=6,new Promise((function(e,i){var s=new c;s.on("finish",(function(){n.mediaIndex[r]=n.media.length,n.mediaIndex[o]=n.media.length;var t={type:"image",name:o,extension:a,buffer:s.toBuffer()};n.media.push(t),e()})),t.on("error",(function(e){i(e)})),t.pipe(s)}));case 6:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processDrawingEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new x,e.next=3,i.parseStream(t);case 3:a=e.sent,n.drawings[r]=a;case 5:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processDrawingRelsEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new v,e.next=3,i.parseStream(t);case 3:a=e.sent,n.drawingRels[r]=a;case 5:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processVmlDrawingEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){var i,a;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new I,e.next=3,i.parseStream(t);case 3:a=e.sent,n.vmlDrawings["../drawings/".concat(r,".vml")]=a;case 5:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_processThemeEntry",value:function(){var e=Di(Gi.mark((function e(t,n,r){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,i){var a=new c;t.on("error",i),a.on("error",i),a.on("finish",(function(){n.themes[r]=a.read().toString(),e()})),t.pipe(a)}));case 2:case"end":return e.stop()}}),e)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:function(){var e=Di(Gi.mark((function e(t,n){var i,a,s,c,l,u,h;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!t[Symbol.asyncIterator]&&t.pipe&&(t=t.pipe(new o)),i=[],a=!1,s=!1,e.prev=4,l=ea(t);case 6:return e.next=8,l.next();case 8:if(!(a=!(u=e.sent).done)){e.next=14;break}h=u.value,i.push(h);case 11:a=!1,e.next=6;break;case 14:e.next=20;break;case 16:e.prev=16,e.t0=e.catch(4),s=!0,c=e.t0;case 20:if(e.prev=20,e.prev=21,!a||null==l.return){e.next=25;break}return e.next=25,l.return();case 25:if(e.prev=25,!s){e.next=28;break}throw c;case 28:return e.finish(25);case 29:return e.finish(20);case 30:return e.abrupt("return",this.load(r.concat(i),n));case 31:case"end":return e.stop()}}),e,this,[[4,16,20,30],[21,,25,29]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"load",value:function(){var e=Di(Gi.mark((function e(t,i){var s,c,l,u,f,p,v,y,b,w,x,C,_,I,E,k,S;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=i&&i.base64?r.from(t.toString(),"base64"):t,c={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},e.next=4,a.loadAsync(s);case 4:l=e.sent,u=0,f=Object.values(l.files);case 6:if(!(u<f.length)){e.next=126;break}if((p=f[u]).dir){e.next=123;break}if("/"===(v=p.name)[0]&&(v=v.substr(1)),y=void 0,!v.match(/xl\/media\//)&&!v.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){e.next=21;break}return y=new o,e.t0=y,e.next=17,p.async("nodebuffer");case 17:e.t1=e.sent,e.t0.write.call(e.t0,e.t1),e.next=36;break;case 21:if(y=new o({writableObjectMode:!0,readableObjectMode:!0}),b=void 0,!n.browser){e.next=31;break}return e.t2=h,e.next=27,p.async("nodebuffer");case 27:e.t3=e.sent,b=(0,e.t2)(e.t3),e.next=34;break;case 31:return e.next=33,p.async("string");case 33:b=e.sent;case 34:for(w=16384,x=0;x<b.length;x+=w)y.write(b.substring(x,x+w));case 36:y.end(),e.t4=v,e.next="_rels/.rels"===e.t4?40:"xl/workbook.xml"===e.t4?44:"xl/_rels/workbook.xml.rels"===e.t4?53:"xl/sharedStrings.xml"===e.t4?57:"xl/styles.xml"===e.t4?61:"docProps/app.xml"===e.t4?65:"docProps/core.xml"===e.t4?72:78;break;case 40:return e.next=42,this.parseRels(y);case 42:return c.globalRels=e.sent,e.abrupt("break",123);case 44:return e.next=46,this.parseWorkbook(y);case 46:return C=e.sent,c.sheets=C.sheets,c.definedNames=C.definedNames,c.views=C.views,c.properties=C.properties,c.calcProperties=C.calcProperties,e.abrupt("break",123);case 53:return e.next=55,this.parseRels(y);case 55:return c.workbookRels=e.sent,e.abrupt("break",123);case 57:return c.sharedStrings=new m,e.next=60,c.sharedStrings.parseStream(y);case 60:return e.abrupt("break",123);case 61:return c.styles=new d,e.next=64,c.styles.parseStream(y);case 64:return e.abrupt("break",123);case 65:return _=new A,e.next=68,_.parseStream(y);case 68:return I=e.sent,c.company=I.company,c.manager=I.manager,e.abrupt("break",123);case 72:return E=new g,e.next=75,E.parseStream(y);case 75:return k=e.sent,Object.assign(c,k),e.abrupt("break",123);case 78:if(!(S=v.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){e.next=83;break}return e.next=82,this._processWorksheetEntry(y,c,S[1],i,v);case 82:return e.abrupt("break",123);case 83:if(!(S=v.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){e.next=88;break}return e.next=87,this._processWorksheetRelsEntry(y,c,S[1]);case 87:return e.abrupt("break",123);case 88:if(!(S=v.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){e.next=93;break}return e.next=92,this._processThemeEntry(y,c,S[1]);case 92:return e.abrupt("break",123);case 93:if(!(S=v.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){e.next=98;break}return e.next=97,this._processMediaEntry(y,c,S[1]);case 97:return e.abrupt("break",123);case 98:if(!(S=v.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){e.next=103;break}return e.next=102,this._processDrawingEntry(y,c,S[1]);case 102:return e.abrupt("break",123);case 103:if(!(S=v.match(/xl\/(comments\d+)[.]xml/))){e.next=108;break}return e.next=107,this._processCommentEntry(y,c,S[1]);case 107:return e.abrupt("break",123);case 108:if(!(S=v.match(/xl\/tables\/(table\d+)[.]xml/))){e.next=113;break}return e.next=112,this._processTableEntry(y,c,S[1]);case 112:return e.abrupt("break",123);case 113:if(!(S=v.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){e.next=118;break}return e.next=117,this._processDrawingRelsEntry(y,c,S[1]);case 117:return e.abrupt("break",123);case 118:if(!(S=v.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){e.next=123;break}return e.next=122,this._processVmlDrawingEntry(y,c,S[1]);case 122:return e.abrupt("break",123);case 123:u++,e.next=6;break;case 126:return this.reconcile(c,i),this.workbook.model=c,e.abrupt("return",this.workbook);case 129:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addMedia",value:function(){var e=Di(Gi.mark((function e(t,n){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(n.media.map(function(){var e=Di(Gi.mark((function e(n){var r,i,a,o;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("image"!==n.type){e.next=13;break}if(r="xl/media/".concat(n.name,".").concat(n.extension),!n.filename){e.next=7;break}return e.next=5,k(n.filename);case 5:return i=e.sent,e.abrupt("return",t.append(i,{name:r}));case 7:if(!n.buffer){e.next=9;break}return e.abrupt("return",t.append(n.buffer,{name:r}));case 9:if(!n.base64){e.next=13;break}return a=n.base64,o=a.substring(a.indexOf(",")+1),e.abrupt("return",t.append(o,{name:r,base64:!0}));case 13:throw new Error("Unsupported media");case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addDrawings",value:function(e,t){var n=new x,r=new v;t.worksheets.forEach((function(t){var i=t.drawing;if(i){n.prepare(i,{});var a=n.toXml(i);e.append(a,{name:"xl/drawings/".concat(i.name,".xml")}),a=r.toXml(i.rels),e.append(a,{name:"xl/drawings/_rels/".concat(i.name,".xml.rels")})}}))}},{key:"addTables",value:function(e,t){var n=new C;t.worksheets.forEach((function(t){t.tables.forEach((function(t){n.prepare(t,{});var r=n.toXml(t);e.append(r,{name:"xl/tables/".concat(t.target)})}))}))}},{key:"addContentTypes",value:function(){var e=Di(Gi.mark((function e(t,n){var r,i;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new y,i=r.toXml(n),t.append(i,{name:"[Content_Types].xml"});case 3:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addApp",value:function(){var e=Di(Gi.mark((function e(t,n){var r,i;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new A,i=r.toXml(n),t.append(i,{name:"docProps/app.xml"});case 3:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addCore",value:function(){var e=Di(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new g,t.append(r.toXml(n),{name:"docProps/core.xml"});case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addThemes",value:function(){var e=Di(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.themes||{theme1:E},Object.keys(r).forEach((function(e){var n=r[e],i="xl/theme/".concat(e,".xml");t.append(n,{name:i})}));case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addOfficeRels",value:function(){var t=Di(Gi.mark((function t(n){var r,i;return Gi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=new v,i=r.toXml([{Id:"rId1",Type:e.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:e.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:e.RelType.ExtenderProperties,Target:"docProps/app.xml"}]),n.append(i,{name:"_rels/.rels"});case 3:case"end":return t.stop()}}),t)})));function n(e){return t.apply(this,arguments)}return n}()},{key:"addWorkbookRels",value:function(){var t=Di(Gi.mark((function t(n,r){var i,a,o,s;return Gi.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=1,a=[{Id:"rId".concat(i++),Type:e.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(i++),Type:e.RelType.Theme,Target:"theme/theme1.xml"}],r.sharedStrings.count&&a.push({Id:"rId".concat(i++),Type:e.RelType.SharedStrings,Target:"sharedStrings.xml"}),r.worksheets.forEach((function(t){t.rId="rId".concat(i++),a.push({Id:t.rId,Type:e.RelType.Worksheet,Target:"worksheets/sheet".concat(t.id,".xml")})})),o=new v,s=o.toXml(a),n.append(s,{name:"xl/_rels/workbook.xml.rels"});case 7:case"end":return t.stop()}}),t)})));function n(e,n){return t.apply(this,arguments)}return n}()},{key:"addSharedStrings",value:function(){var e=Di(Gi.mark((function e(t,n){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.sharedStrings&&n.sharedStrings.count&&t.append(n.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addStyles",value:function(){var e=Di(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=n.styles.xml)&&t.append(r,{name:"xl/styles.xml"});case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addWorkbook",value:function(){var e=Di(Gi.mark((function e(t,n){var r;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new b,t.append(r.toXml(n),{name:"xl/workbook.xml"});case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"addWorksheets",value:function(){var e=Di(Gi.mark((function e(t,n){var r,i,a,o;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new w,i=new v,a=new _,o=new I,n.worksheets.forEach((function(e){var n=new u;r.render(n,e),t.append(n.xml,{name:"xl/worksheets/sheet".concat(e.id,".xml")}),e.rels&&e.rels.length&&(n=new u,i.render(n,e.rels),t.append(n.xml,{name:"xl/worksheets/_rels/sheet".concat(e.id,".xml.rels")})),e.comments.length>0&&(n=new u,a.render(n,e),t.append(n.xml,{name:"xl/comments".concat(e.id,".xml")}),n=new u,o.render(n,e),t.append(n.xml,{name:"xl/drawings/vmlDrawing".concat(e.id,".vml")}))}));case 5:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"_finalize",value:function(e){var t=this;return new Promise((function(n,r){e.on("finish",(function(){n(t)})),e.on("error",r),e.finalize()}))}},{key:"prepareModel",value:function(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new m,e.styles=e.useStyles?new d(!0):new d.Mock;var n=new b,r=new w;n.prepare(e);var i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];var a=0;e.tables=[],e.worksheets.forEach((function(t){t.tables.forEach((function(t){a++,t.target="table".concat(a,".xml"),t.id=a,e.tables.push(t)})),r.prepare(t,i)}))}},{key:"write",value:function(){var e=Di(Gi.mark((function e(t,n){var r,i;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},r=this.workbook.model,(i=new s.ZipWriter(n.zip)).pipe(t),this.prepareModel(r,n),e.next=7,this.addContentTypes(i,r);case 7:return e.next=9,this.addOfficeRels(i,r);case 9:return e.next=11,this.addWorkbookRels(i,r);case 11:return e.next=13,this.addWorksheets(i,r);case 13:return e.next=15,this.addSharedStrings(i,r);case 15:return e.next=17,this.addDrawings(i,r);case 17:return e.next=19,this.addTables(i,r);case 19:return e.next=21,Promise.all([this.addThemes(i,r),this.addStyles(i,r)]);case 21:return e.next=23,this.addMedia(i,r);case 23:return e.next=25,Promise.all([this.addApp(i,r),this.addCore(i,r)]);case 25:return e.next=27,this.addWorkbook(i,r);case 27:return e.abrupt("return",this._finalize(i));case 28:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"writeFile",value:function(e,t){var n=this,r=i.createWriteStream(e);return new Promise((function(e,i){r.on("finish",(function(){e()})),r.on("error",(function(e){i(e)})),n.write(r,t).then((function(){r.end()})).catch((function(e){i(e)}))}))}},{key:"writeBuffer",value:function(){var e=Di(Gi.mark((function e(t){var n;return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new c,e.next=3,this.write(n,t);case 3:return e.abrupt("return",n.read());case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}])}();S.RelType=e("./rel-type"),t.exports=S}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,n){t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],146:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvFormatterStream=void 0;var r=e("stream"),i=e("./formatter"),a=function(e){function n(e){var t;return f(this,n),(t=Yi(this,n,[{writableObjectMode:e.objectMode}])).hasWrittenBOM=!1,t.formatterOptions=e,t.rowFormatter=new i.RowFormatter(e),t.hasWrittenBOM=!e.writeBOM,t}return Ve(n,e),p(n,[{key:"transform",value:function(e){return this.rowFormatter.rowTransform=e,this}},{key:"_transform",value:function(e,n,r){var i=this,a=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(function(e,n){return e?(a=!0,r(e)):(n&&n.forEach((function(e){i.push(t.from(e,"utf8"))})),a=!0,r())}))}catch(e){if(a)throw e;r(e)}}},{key:"_flush",value:function(e){var n=this;this.rowFormatter.finish((function(r,i){return r?e(r):(i&&i.forEach((function(e){n.push(t.from(e,"utf8"))})),e())}))}}])}(r.Transform);n.CsvFormatterStream=a}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FormatterOptions=void 0;var r=p((function e(){f(this,e);var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,n||{}),void 0===(null==n?void 0:n.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==n?void 0:n.quote)?this.quote='"':!1===(null==n?void 0:n.quote)&&(this.quote=""),"string"!=typeof(null==n?void 0:n.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=n.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)}));n.FormatterOptions=r},{}],148:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=void 0;var i=r(e("lodash.isboolean")),a=r(e("lodash.isnil")),o=r(e("lodash.escaperegexp")),s=function(){function e(t){f(this,e),this._headers=null,this.formatterOptions=t,null!==t.headers&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");var n="[".concat(t.delimiter).concat(o.default(t.rowDelimiter),"|\r|\n]");this.ESCAPE_REGEXP=new RegExp(n)}return p(e,[{key:"headers",set:function(e){this._headers=e}},{key:"shouldQuote",value:function(e,t){var n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(n)?n:Array.isArray(n)?n[e]:null!==this._headers&&n[this._headers[e]]}},{key:"format",value:function(e,t,n){var r="".concat(a.default(e)?"":e).replace(/\0/g,""),i=this.formatterOptions;return""!==i.quote&&-1!==r.indexOf(i.quote)?this.quoteField(r.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==r.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,n)?this.quoteField(r):r}},{key:"quoteField",value:function(e){var t=this.formatterOptions.quote;return"".concat(t).concat(e).concat(t)}}])}();n.FieldFormatter=s},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowFormatter=void 0;var i=r(e("lodash.isfunction")),a=r(e("lodash.isequal")),o=e("./FieldFormatter"),s=e("../types"),c=function(){function e(t){f(this,e),this.rowCount=0,this.formatterOptions=t,this.fieldFormatter=new o.FieldFormatter(t),this.headers=t.headers,this.shouldWriteHeaders=t.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),t.transform&&(this.rowTransform=t.transform)}return p(e,[{key:"rowTransform",set:function(t){if(!i.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}},{key:"format",value:function(e,t){var n=this;this.callTransformer(e,(function(r,i){if(r)return t(r);if(!e)return t(null);var a=[];if(i){var o=n.checkHeaders(i),s=o.shouldFormatColumns,c=o.headers;if(n.shouldWriteHeaders&&c&&!n.hasWrittenHeaders&&(a.push(n.formatColumns(c,!0)),n.hasWrittenHeaders=!0),s){var l=n.gatherColumns(i);a.push(n.formatColumns(l,!1))}}return t(null,a)}))}},{key:"finish",value:function(e){var t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}},{key:"checkHeaders",value:function(t){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var n=e.gatherHeaders(t);return this.headers=n,this.fieldFormatter.headers=n,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(n,t),headers:n}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(t){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(t)?e.isRowHashArray(t)?this.headers.map((function(e,n){var r=t[n];return r?r[1]:""})):e.isRowArray(t)&&!this.shouldWriteHeaders?t:this.headers.map((function(e,n){return t[n]})):this.headers.map((function(e){return t[e]}))}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"formatColumns",value:function(e,t){var n=this,r=e.map((function(e,r){return n.fieldFormatter.format(e,r,t)})).join(this.formatterOptions.delimiter),i=this.rowCount;return this.rowCount+=1,i?[this.formatterOptions.rowDelimiter,r].join(""):r}}],[{key:"isRowHashArray",value:function(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}},{key:"isRowArray",value:function(e){return Array.isArray(e)&&!this.isRowHashArray(e)}},{key:"gatherHeaders",value:function(t){return e.isRowHashArray(t)?t.map((function(e){return e[0]})):Array.isArray(t)?t:Object.keys(t)}},{key:"createTransform",value:function(e){return s.isSyncTransform(e)?function(t,n){var r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:function(t,n){e(t,n)}}}])}();n.RowFormatter=c},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var r=e("./RowFormatter");Object.defineProperty(n,"RowFormatter",{enumerable:!0,get:function(){return r.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(n,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,n){(function(t){(function(){var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;var s=e("util"),c=e("stream"),l=a(e("fs")),u=e("./FormatterOptions"),h=e("./CsvFormatterStream");o(e("./types"),n);var f=e("./CsvFormatterStream");Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}});var d=e("./FormatterOptions");Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}}),n.format=function(e){return new h.CsvFormatterStream(new u.FormatterOptions(e))},n.write=function(e,t){var r=n.format(t),i=s.promisify((function(e,t){r.write(e,void 0,t)}));return e.reduce((function(e,t){return e.then((function(){return i(t)}))}),Promise.resolve()).then((function(){return r.end()})).catch((function(e){r.emit("error",e)})),r},n.writeToStream=function(e,t,r){return n.write(t,r).pipe(e)},n.writeToBuffer=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],a=new c.Writable({write:function(e,t,n){i.push(e),n()}});return new Promise((function(o,s){a.on("error",s).on("finish",(function(){return o(t.concat(i))})),n.write(e,r).pipe(a)}))},n.writeToString=function(e,t){return n.writeToBuffer(e,t).then((function(e){return e.toString()}))},n.writeToPath=function(e,t,r){var i=l.createWriteStream(e,{encoding:"utf8"});return n.write(t,r).pipe(i)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=function(e){return 1===e.length}},{}],153:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=void 0;var r=e("string_decoder"),i=e("stream"),a=e("./transforms"),o=e("./parser"),s=function(e){function n(e){var t;return f(this,n),(t=Yi(this,n,[{objectMode:e.objectMode}])).lines="",t.rowCount=0,t.parsedRowCount=0,t.parsedLineCount=0,t.endEmitted=!1,t.headersEmitted=!1,t.parserOptions=e,t.parser=new o.Parser(e),t.headerTransformer=new a.HeaderTransformer(e),t.decoder=new r.StringDecoder(e.encoding),t.rowTransformerValidator=new a.RowTransformerValidator,t}return Ve(n,e),p(n,[{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}},{key:"transform",value:function(e){return this.rowTransformerValidator.rowTransform=e,this}},{key:"validate",value:function(e){return this.rowTransformerValidator.rowValidator=e,this}},{key:"emit",value:function(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,qi(n,"emit",this,3)(["end",this.rowCount])),!1;for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return qi(n,"emit",this,3)([e].concat(r))}},{key:"_transform",value:function(e,t,r){if(this.hasHitRowLimit)return r();var i=n.wrapDoneCallback(r);try{var a=this.lines+this.decoder.write(e),o=this.parse(a,!0);return this.processRows(o,i)}catch(e){return i(e)}}},{key:"_flush",value:function(e){var t=n.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{var r=this.lines+this.decoder.end(),i=this.parse(r,!1);return this.processRows(i,t)}catch(e){return t(e)}}},{key:"parse",value:function(e,t){if(!e)return[];var n=this.parser.parse(e,t),r=n.line,i=n.rows;return this.lines=r,i}},{key:"processRows",value:function(e,n){var r=this,i=e.length,a=function(o){var s=function(e){return e?n(e):o%100!=0?a(o+1):void t((function(){return a(o+1)}))};if(r.checkAndEmitHeaders(),o>=i||r.hasHitRowLimit)return n();if(r.parsedLineCount+=1,r.shouldSkipLine)return s();var c=e[o];r.rowCount+=1,r.parsedRowCount+=1;var l=r.rowCount;return r.transformRow(c,(function(e,t){if(e)return r.rowCount-=1,s(e);if(!t)return s(new Error("expected transform result"));if(t.isValid){if(t.row)return r.pushRow(t.row,s)}else r.emit("data-invalid",t.row,l,t.reason);return s()}))};a(0)}},{key:"transformRow",value:function(e,t){var n=this;try{this.headerTransformer.transform(e,(function(r,i){return r?t(r):i?i.isValid?i.row?n.shouldEmitRows?n.rowTransformerValidator.transformAndValidate(i.row,t):n.skipRow(t):(n.rowCount-=1,n.parsedRowCount-=1,t(null,{row:null,isValid:!0})):n.shouldEmitRows?t(null,{isValid:!1,row:e}):n.skipRow(t):t(new Error("Expected result from header transform"))}))}catch(e){t(e)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}}],[{key:"wrapDoneCallback",value:function(e){var t=!1;return function(n){if(n){if(t)throw n;return t=!0,void e(n)}for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.apply(void 0,i)}}}])}(i.Transform);n.CsvParserStream=s}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ParserOptions=void 0;var i=r(e("lodash.escaperegexp")),a=r(e("lodash.isnil")),o=p((function e(t){var n;if(f(this,e),this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,t||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=null!==(n=this.escape)&&void 0!==n?n:this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)}));n.ParserOptions=o},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,n){var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;var s=a(e("fs")),c=e("stream"),l=e("./ParserOptions"),u=e("./CsvParserStream");o(e("./types"),n);var h=e("./CsvParserStream");Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return h.CsvParserStream}});var f=e("./ParserOptions");Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),n.parse=function(e){return new u.CsvParserStream(new l.ParserOptions(e))},n.parseStream=function(e,t){return e.pipe(new u.CsvParserStream(new l.ParserOptions(t)))},n.parseFile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(e).pipe(new u.CsvParserStream(new l.ParserOptions(t)))},n.parseString=function(e,t){var n=new c.Readable;return n.push(e),n.push(null),n.pipe(new u.CsvParserStream(new l.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;var r=e("./Scanner"),i=e("./RowParser"),a=e("./Token"),o=function(){function e(t){f(this,e),this.parserOptions=t,this.rowParser=new i.RowParser(this.parserOptions)}return p(e,[{key:"parse",value:function(t,n){var i=new r.Scanner({line:e.removeBOM(t),parserOptions:this.parserOptions,hasMoreData:n});return this.parserOptions.supportsComments?this.parseWithComments(i):this.parseWithoutComments(i)}},{key:"parseWithoutComments",value:function(e){for(var t=[],n=!0;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}},{key:"parseWithComments",value:function(e){for(var t=this.parserOptions,n=[],r=e.nextCharacterToken;null!==r;r=e.nextCharacterToken)if(a.Token.isTokenComment(r,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}},{key:"parseRow",value:function(e,t){if(!e.nextNonSpaceToken)return!1;var n=this.rowParser.parse(e);return null!==n&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(n)||t.push(n),!0)}}],[{key:"removeBOM",value:function(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}}])}();n.Parser=o},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RowParser=void 0;var r=e("./column"),i=e("./Token"),a="",o=function(){function e(t){f(this,e),this.parserOptions=t,this.columnParser=new r.ColumnParser(t)}return p(e,[{key:"parse",value:function(e){for(var t=this.parserOptions,n=e.hasMoreData,r=e,a=[],o=this.getStartToken(r,a);o;){if(i.Token.isTokenRowDelimiter(o))return r.advancePastToken(o),!r.hasMoreCharacters&&i.Token.isTokenCarriageReturn(o,t)&&n?null:(r.truncateToCursor(),a);if(!this.shouldSkipColumnParse(r,o,a)){var s=this.columnParser.parse(r);if(null===s)return null;a.push(s)}o=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),a)}},{key:"getStartToken",value:function(e,t){var n=e.nextNonSpaceToken;return null!==n&&i.Token.isTokenDelimiter(n,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):n}},{key:"shouldSkipColumnParse",value:function(e,t,n){var r=this.parserOptions;if(i.Token.isTokenDelimiter(t,r)){e.advancePastToken(t);var a=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==a&&i.Token.isTokenRowDelimiter(a))return n.push(""),!0;if(null!==a&&i.Token.isTokenDelimiter(a,r))return n.push(""),!0}return!1}}],[{key:"isEmptyRow",value:function(e){return e.join(a).replace(/\s+/g,a)===a}}])}();n.RowParser=o},{"./Token":159,"./column":164}],158:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Scanner=void 0;var r=e("./Token"),i=/((?:\r\n)|\n|\r)/,a=function(){function e(t){f(this,e),this.cursor=0,this.line=t.line,this.lineLength=this.line.length,this.parserOptions=t.parserOptions,this.hasMoreData=t.hasMoreData,this.cursor=t.cursor||0}return p(e,[{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var e=this.lineFromCursor,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;var n=t.exec(e);if(null==n)return null;var i=n[1],a=this.cursor+(n.index||0);return new r.Token({token:i,startCursor:a,endCursor:a+i.length-1})}},{key:"nextCharacterToken",get:function(){var e=this.cursor;return this.lineLength<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}},{key:"advancePastLine",value:function(){var e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(e){return this.cursor=e,this}},{key:"advanceToToken",value:function(e){return this.cursor=e.startCursor,this}},{key:"advancePastToken",value:function(e){return this.cursor=e.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}])}();n.Scanner=a},{"./Token":159}],159:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Token=void 0;var r=function(){function e(t){f(this,e),this.token=t.token,this.startCursor=t.startCursor,this.endCursor=t.endCursor}return p(e,null,[{key:"isTokenRowDelimiter",value:function(e){var t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}},{key:"isTokenCarriageReturn",value:function(e,t){return e.token===t.carriageReturn}},{key:"isTokenComment",value:function(e,t){return t.supportsComments&&!!e&&e.token===t.comment}},{key:"isTokenEscapeCharacter",value:function(e,t){return e.token===t.escapeChar}},{key:"isTokenQuote",value:function(e,t){return e.token===t.quote}},{key:"isTokenDelimiter",value:function(e,t){return e.token===t.delimiter}}])}();n.Token=r},{}],160:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=void 0;var r=p((function e(t){f(this,e),t.trim?this.format=function(e){return e.trim()}:t.ltrim?this.format=function(e){return e.trimLeft()}:t.rtrim?this.format=function(e){return e.trimRight()}:this.format=function(e){return e}}));n.ColumnFormatter=r},{}],161:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnParser=void 0;var r=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),a=e("../Token"),o=function(){function e(t){f(this,e),this.parserOptions=t,this.quotedColumnParser=new i.QuotedColumnParser(t),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(t)}return p(e,[{key:"parse",value:function(e){var t=e.nextNonSpaceToken;return null!==t&&a.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}])}();n.ColumnParser=o},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.NonQuotedColumnParser=void 0;var r=e("./ColumnFormatter"),i=e("../Token"),a=function(){function e(t){f(this,e),this.parserOptions=t,this.columnFormatter=new r.ColumnFormatter(t)}return p(e,[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,n=[],r=e.nextCharacterToken;r&&!i.Token.isTokenDelimiter(r,t)&&!i.Token.isTokenRowDelimiter(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(""))}}])}();n.NonQuotedColumnParser=a},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=void 0;var r=e("./ColumnFormatter"),i=e("../Token"),a=function(){function e(t){f(this,e),this.parserOptions=t,this.columnFormatter=new r.ColumnFormatter(t)}return p(e,[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;var t=e.cursor,n=this.gatherDataBetweenQuotes(e),r=n.foundClosingQuote,i=n.col;if(!r){if(e.advanceTo(t),!e.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(e.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(e),i}},{key:"gatherDataBetweenQuotes",value:function(e){for(var t=this.parserOptions,n=!1,r=!1,a=[],o=e.nextCharacterToken;!r&&null!==o;o=e.nextCharacterToken){var s=i.Token.isTokenQuote(o,t);if(!n&&s)n=!0;else if(n)if(i.Token.isTokenEscapeCharacter(o,t)){e.advancePastToken(o);var c=e.nextCharacterToken;null!==c&&(i.Token.isTokenQuote(c,t)||i.Token.isTokenEscapeCharacter(c,t))?(a.push(c.token),o=c):s?r=!0:a.push(o.token)}else s?r=!0:a.push(o.token);e.advancePastToken(o)}return{col:this.columnFormatter.format(a.join("")),foundClosingQuote:r}}},{key:"checkForMalformedColumn",value:function(e){var t=this.parserOptions,n=e.nextNonSpaceToken;if(n){var r=i.Token.isTokenDelimiter(n,t),a=i.Token.isTokenRowDelimiter(n);if(!r&&!a){var o=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(t.escapedDelimiter,"' OR new line got: '").concat(n.token,"'. at '").concat(o))}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}])}();n.QuotedColumnParser=a},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var r=e("./ColumnParser");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var a=e("./QuotedColumnParser");Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}});var o=e("./ColumnFormatter");Object.defineProperty(n,"ColumnFormatter",{enumerable:!0,get:function(){return o.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var r=e("./Parser");Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return r.Parser}});var i=e("./RowParser");Object.defineProperty(n,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var a=e("./Scanner");Object.defineProperty(n,"Scanner",{enumerable:!0,get:function(){return a.Scanner}});var o=e("./Token");Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return o.Token}});var s=e("./column");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=void 0;var i=r(e("lodash.isundefined")),a=r(e("lodash.isfunction")),o=r(e("lodash.uniq")),s=r(e("lodash.groupby")),c=function(){function e(t){f(this,e),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=t,!0===t.headers?this.shouldUseFirstRow=!0:Array.isArray(t.headers)?this.setHeaders(t.headers):a.default(t.headers)&&(this.headersTransform=t.headers)}return p(e,[{key:"transform",value:function(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(e){var t=this.parserOptions;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}},{key:"processRow",value:function(e){if(!this.headers)return{row:e,isValid:!0};var t=this.parserOptions;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length));return{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}:{row:this.mapHeaders(e),isValid:!0}}},{key:"mapHeaders",value:function(e){for(var t={},n=this.headers,r=this.headersLength,a=0;a<r;a+=1){var o=n[a];if(!i.default(o)){var s=e[a];i.default(s)?t[o]="":t[o]=s}}return t}},{key:"setHeaders",value:function(e){var t,n=e.filter((function(e){return!!e}));if(o.default(n).length!==n.length){var r=s.default(n),i=Object.keys(r).filter((function(e){return r[e].length>1}));throw new Error("Duplicate headers found ".concat(JSON.stringify(i)))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}])}();n.HeaderTransformer=c},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,n){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowTransformerValidator=void 0;var i=r(e("lodash.isfunction")),a=e("../types"),o=function(){function e(){f(this,e),this._rowTransform=null,this._rowValidator=null}return p(e,[{key:"rowTransform",set:function(t){if(!i.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}},{key:"rowValidator",set:function(t){if(!i.default(t))throw new TypeError("The validate should be a function");this._rowValidator=e.createValidator(t)}},{key:"transformAndValidate",value:function(e,t){var n=this;return this.callTransformer(e,(function(e,r){return e?t(e):r?n.callValidator(r,(function(e,n){return e?t(e):n&&!n.isValid?t(null,{row:r,isValid:!1,reason:n.reason}):t(null,{row:r,isValid:!0})})):t(null,{row:null,isValid:!0})}))}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"callValidator",value:function(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}],[{key:"createTransform",value:function(e){return a.isSyncTransform(e)?function(t,n){var r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:e}},{key:"createValidator",value:function(e){return a.isSyncValidate(e)?function(t,n){n(null,{row:t,isValid:e(t)})}:function(t,n){e(t,(function(e,r,i){return e?n(e):n(null,r?{row:t,isValid:r,reason:i}:{row:t,isValid:!1,reason:i})}))}}}])}();n.RowTransformerValidator=o},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var r=e("./RowTransformerValidator");Object.defineProperty(n,"RowTransformerValidator",{enumerable:!0,get:function(){return r.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(n,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=function(e){return 1===e.length},n.isSyncValidate=function(e){return 1===e.length}},{}],170:[function(e,t,n){var r=n;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,n){var r=e("./encoders"),i=e("./decoders"),a=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t=this.name;function n(e){this._initNamed(e,t)}return a(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,n){var r=e("inherits"),i=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),n.DecoderBuffer=o,o.isDecoderBuffer=function(e){return e instanceof o||"object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=s,s.isEncoderBuffer=function(e){return e instanceof s||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,n){var r=n;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,n){var r=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,o=e("minimalistic-assert"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function u(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;var h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};h.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},l.forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(o=this._peekTag(e,c,n.any),e.isError(o))return o}else{var l=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(l)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var h=e.offset;if(null===n.use&&null===n.choice){var f;n.any&&(f=e.save());var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(f):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),h,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},u.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:a,value:c},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},u.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(l,s,u,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},u.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,n){var r=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}n.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,n){function r(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t}n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=r(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=r(n.tag)},{}],177:[function(e,t,n){var r=n;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=e("./der")},{"./der":176}],178:[function(e,t,n){var r=e("inherits"),i=e("bn.js"),a=e("../base/buffer").DecoderBuffer,o=e("../base/node"),s=e("../constants/der");function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=!(32&n);if(31&~n)n&=31;else{var a=n;for(n=0;!(128&~a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function h(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(!(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}t.exports=c,c.prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},r(l,o),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=h(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r=h(e,n.primitive,t);if(e.isError(r))return r;var i=void 0;if(i=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=n.decode(e,"der",r);if(e.isError(o)&&a)break;i.push(o)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0,o=0;!e.isEmpty();)a<<=7,a|=127&(o=e.readUInt8()),128&o||(i.push(a),a=0);128&o&&i.push(a);var s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){var l=t[r.join(" ")];void 0===l&&(l=t[r.join(".")]),void 0!==l&&(r=l)}return r},l.prototype._decodeTime=function(e,t){var n,r,i,a,o,s,c=e.raw().toString();if("gentime"===t)n=0|c.slice(0,4),r=0|c.slice(4,6),i=0|c.slice(6,8),a=0|c.slice(8,10),o=0|c.slice(10,12),s=0|c.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|c.slice(0,2),r=0|c.slice(2,4),i=0|c.slice(4,6),a=0|c.slice(6,8),o=0|c.slice(8,10),s=0|c.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,i,a,o,s,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var n=e.raw(),r=new i(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,n){var r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,n){var r=e("inherits"),i=e("safer-buffer").Buffer,a=e("./der");function o(e){a.call(this,e),this.enc="pem"}r(o,a),t.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,l=0;l<n.length;l++){var u=n[l].match(o);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;c=l;break}if("BEGIN"!==u[1])break;s=l}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var h=n.slice(s+1,c).join("");h.replace(/[^a-z0-9+/=]+/gi,"");var f=i.from(h,"base64");return a.prototype.decode.call(this,f,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,n){var r=e("inherits"),i=e("safer-buffer").Buffer,a=e("../base/node"),o=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function l(e){return e<10?"0"+e:e}function u(e,t,n,r){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=o.tagClassByName[n||"universal"]<<6)}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,a),c.prototype._encodeComposite=function(e,t,n,r){var a=u(e,t,n,this.reporter);if(r.length<128){var o=i.alloc(2);return o[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r])}for(var s=1,c=r.length;c>=256;c>>=8)s++;var l=i.alloc(2+s);l[0]=a,l[1]=128|s;for(var h=1+s,f=r.length;f>0;h--,f>>=8)l[h]=255&f;return this._createEncoderBuffer([l,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=i.alloc(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(var a=0;a<e.length;a++)e[a]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,s=0;s<e.length;s++){var c=e[s];for(o++;c>=128;c>>=7)o++}for(var l=i.alloc(o),u=l.length-1,h=e.length-1;h>=0;h--){var f=e[h];for(l[u--]=127&f;(f>>=7)>0;)l[u--]=128|127&f}return this._createEncoderBuffer(l)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=i.from(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=i.alloc(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,s=e;s>=256;s>>=8)o++;for(var c=new Array(o),l=c.length-1;l>=0;l--)c[l]=255&e,e>>=8;return 128&c[0]&&c.unshift(0),this._createEncoderBuffer(i.from(c))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,n){var r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,n){var r=e("inherits"),i=e("./der");function a(e){i.call(this,e),this.enc="pem"}r(a,i),t.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,n){!function(t,n){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof t?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var h=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)h*=t;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,h=67108863&c,f=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=f;d++){var p=l-d|0;u+=(o=(i=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);n=0!=(a=s>>>24-i&16777215)||o!==this.length-1?u[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],d=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(d).toString(e);n=(p=p.idivn(d)).isZero()?g+n:u[l-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,l=new e(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[s]=o;for(;s<a;s++)l[s]=0}else{for(s=0;s<a-i;s++)l[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[a-s-1]=o}return l},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r(!(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r(!(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r(!(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],h=8191&u,f=u>>>13,d=0|o[1],p=8191&d,g=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,A=0|o[3],b=8191&A,w=A>>>13,x=0|o[4],C=8191&x,_=x>>>13,I=0|o[5],E=8191&I,k=I>>>13,S=0|o[6],B=8191&S,M=S>>>13,T=0|o[7],O=8191&T,D=T>>>13,P=0|o[8],L=8191&P,Q=P>>>13,R=0|o[9],j=8191&R,N=R>>>13,F=0|s[0],z=8191&F,H=F>>>13,U=0|s[1],G=8191&U,V=U>>>13,W=0|s[2],q=8191&W,Y=W>>>13,K=0|s[3],$=8191&K,J=K>>>13,X=0|s[4],Z=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],he=8191&ue,fe=ue>>>13,de=0|s[9],pe=8191&de,ge=de>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;l=((a=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,a=Math.imul(g,H);var ve=(l+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,G)|0))<<13)|0;l=((a=a+Math.imul(f,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(y,z)|0,a=Math.imul(y,H),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,G)|0,a=a+Math.imul(g,V)|0;var ye=(l+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,q)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,z),i=(i=Math.imul(b,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,V)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,Y)|0;var Ae=(l+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(_,z)|0,a=Math.imul(_,H),r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,V)|0,r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,J)|0;var be=(l+(r=r+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(f,Z)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,V)|0,r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,J)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Z)|0,a=a+Math.imul(g,ee)|0;var we=(l+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(M,z)|0,a=Math.imul(M,H),r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,V)|0,r=r+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,J)|0,r=r+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var xe=(l+(r=r+Math.imul(h,ae)|0)|0)+((8191&(i=(i=i+Math.imul(h,oe)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(D,z)|0,a=Math.imul(D,H),r=r+Math.imul(B,G)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,J)|0,r=r+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Ce=(l+(r=r+Math.imul(h,ce)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(Q,z)|0,a=Math.imul(Q,H),r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,V)|0,r=r+Math.imul(B,q)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,Y)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,J)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(g,ce)|0,a=a+Math.imul(g,le)|0;var _e=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(N,z)|0,a=Math.imul(N,H),r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(Q,G)|0,a=a+Math.imul(Q,V)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,J)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,he)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,he)|0,a=a+Math.imul(g,fe)|0;var Ie=(l+(r=r+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ge)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,V))+Math.imul(N,G)|0,a=Math.imul(N,V),r=r+Math.imul(L,q)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(Q,q)|0,a=a+Math.imul(Q,Y)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(v,he)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,he)|0,a=a+Math.imul(y,fe)|0;var Ee=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;l=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,Y))+Math.imul(N,q)|0,a=Math.imul(N,Y),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(Q,$)|0,a=a+Math.imul(Q,J)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(B,ne)|0,i=(i=i+Math.imul(B,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,fe)|0)+Math.imul(w,he)|0,a=a+Math.imul(w,fe)|0;var ke=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,J))+Math.imul(N,$)|0,a=Math.imul(N,J),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(Q,Z)|0,a=a+Math.imul(Q,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(C,he)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(_,he)|0,a=a+Math.imul(_,fe)|0;var Se=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ge)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(N,Z)|0,a=Math.imul(N,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(Q,ne)|0,a=a+Math.imul(Q,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(E,he)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,he)|0,a=a+Math.imul(k,fe)|0;var Be=(l+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(_,pe)|0))<<13)|0;l=((a=a+Math.imul(_,ge)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(N,ne)|0,a=Math.imul(N,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(Q,ae)|0,a=a+Math.imul(Q,oe)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(B,he)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(M,he)|0,a=a+Math.imul(M,fe)|0;var Me=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(N,ae)|0,a=Math.imul(N,oe),r=r+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(Q,ce)|0,a=a+Math.imul(Q,le)|0,r=r+Math.imul(O,he)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(D,he)|0,a=a+Math.imul(D,fe)|0;var Te=(l+(r=r+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(M,pe)|0))<<13)|0;l=((a=a+Math.imul(M,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),i=(i=Math.imul(j,le))+Math.imul(N,ce)|0,a=Math.imul(N,le),r=r+Math.imul(L,he)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(Q,he)|0,a=a+Math.imul(Q,fe)|0;var Oe=(l+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,ge)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,he),i=(i=Math.imul(j,fe))+Math.imul(N,he)|0,a=Math.imul(N,fe);var De=(l+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ge)|0)+Math.imul(Q,pe)|0))<<13)|0;l=((a=a+Math.imul(Q,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Pe=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ge))+Math.imul(N,pe)|0))<<13)|0;return l=((a=Math.imul(N,ge))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=me,c[1]=ve,c[2]=ye,c[3]=Ae,c[4]=be,c[5]=we,c[6]=xe,c[7]=Ce,c[8]=_e,c[9]=Ie,c[10]=Ee,c[11]=ke,c[12]=Se,c[13]=Be,c[14]=Me,c[15]=Te,c[16]=Oe,c[17]=De,c[18]=Pe,0!==l&&(c[19]=l,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,h=(0|e.words[u])*(0|t.words[l]),f=67108863&h;s=67108863&(f=f+s|0),i+=(o=(o=o+(h/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}function v(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=p),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?p(this,e,t):n<1024?m(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},y.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var h=c,f=l,d=0;d<o;d++){var p=n[u+d],g=r[u+d],m=n[u+d+o],v=r[u+d+o],y=h*m-f*v;v=h*v+f*m,m=y,n[u+d]=p+m,r[u+d]=g+v,n[u+d+o]=p-m,r[u+d+o]=g-v,d!==s&&(y=c*h-l*f,f=c*f+l*h,h=y)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===a),r(!(-8192&a))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),h=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,h,r,i);for(var d=0;d<r;d++){var p=s[d]*u[d]-c[d]*h[d];c[d]=s[d]*h[d]+c[d]*u[d],s[d]=p}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),v(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=d(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-a|h>>>a,u=h&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n||!(this.words[n]&i))},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var h=c-1;h>=0;h--){var f=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,h);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=t.clone();!t.isZero();){for(var f=0,d=1;!(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,g=1;!(n.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(h)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;!(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,f=1;!(n.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return!(1&this.words[0])},a.prototype.isOdd=function(){return!(1&~this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new I(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,b),i(C,b),i(_,b),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(A[e])return A[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return A[e]=t,t},I.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){r(!(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},I.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=o;0!==d.cmp(s);){for(var g=d,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m<p);var v=this.pow(h,new a(1).iushln(p-m-1));f=f.redMul(v),h=v.redSqr(),d=d.redMul(h),p=m}return f},I.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},I.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=4,r=new Array(1<<n);r[0]=new a(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var o=r[0],s=0,c=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],h=l-1;h>=0;h--){var f=u>>h&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(++c===n||0===i&&0===h)&&(o=this.mul(o,r[s]),c=0,s=0)):c=0}l=26}return o},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},i(E,I),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,void 0)},{buffer:188}],185:[function(e,t,n){n.byteLength=u,n.toByteArray=f,n.fromByteArray=g;for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=l(e),o=r[0],s=r[1],c=new a(h(e,o,s)),u=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(d(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(p(e,s,s+o>c?c:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],186:[function(e,t,n){!function(t,n){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof t?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,i){for(var a=0,o=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o<i,"Invalid character"),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var h=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)h*=t;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){u(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(e){a.prototype.inspect=h}else a.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==a||o!==this.length-1?f[6-c.length]+c+n:c+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],u=p[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modrn(u).toString(e);n=(h=h.idivn(u)).isZero()?g+n:f[l-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var g=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}function v(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,h=67108863&c,f=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=f;d++){var p=l-d|0;u+=(o=(i=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}a.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var o=g(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===a?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return r(!(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return r(!(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return r(!(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],h=8191&u,f=u>>>13,d=0|o[1],p=8191&d,g=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,A=0|o[3],b=8191&A,w=A>>>13,x=0|o[4],C=8191&x,_=x>>>13,I=0|o[5],E=8191&I,k=I>>>13,S=0|o[6],B=8191&S,M=S>>>13,T=0|o[7],O=8191&T,D=T>>>13,P=0|o[8],L=8191&P,Q=P>>>13,R=0|o[9],j=8191&R,N=R>>>13,F=0|s[0],z=8191&F,H=F>>>13,U=0|s[1],G=8191&U,V=U>>>13,W=0|s[2],q=8191&W,Y=W>>>13,K=0|s[3],$=8191&K,J=K>>>13,X=0|s[4],Z=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],he=8191&ue,fe=ue>>>13,de=0|s[9],pe=8191&de,ge=de>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;l=((a=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,a=Math.imul(g,H);var ve=(l+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,G)|0))<<13)|0;l=((a=a+Math.imul(f,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(y,z)|0,a=Math.imul(y,H),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,G)|0,a=a+Math.imul(g,V)|0;var ye=(l+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,q)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,z),i=(i=Math.imul(b,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,V)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,Y)|0;var Ae=(l+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(_,z)|0,a=Math.imul(_,H),r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,V)|0,r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,J)|0;var be=(l+(r=r+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(f,Z)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,V)|0,r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,J)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Z)|0,a=a+Math.imul(g,ee)|0;var we=(l+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(M,z)|0,a=Math.imul(M,H),r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,V)|0,r=r+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,J)|0,r=r+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var xe=(l+(r=r+Math.imul(h,ae)|0)|0)+((8191&(i=(i=i+Math.imul(h,oe)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(D,z)|0,a=Math.imul(D,H),r=r+Math.imul(B,G)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,J)|0,r=r+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Ce=(l+(r=r+Math.imul(h,ce)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(Q,z)|0,a=Math.imul(Q,H),r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,V)|0,r=r+Math.imul(B,q)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,Y)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,J)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(g,ce)|0,a=a+Math.imul(g,le)|0;var _e=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(N,z)|0,a=Math.imul(N,H),r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(Q,G)|0,a=a+Math.imul(Q,V)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,J)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,he)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,he)|0,a=a+Math.imul(g,fe)|0;var Ie=(l+(r=r+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ge)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,V))+Math.imul(N,G)|0,a=Math.imul(N,V),r=r+Math.imul(L,q)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(Q,q)|0,a=a+Math.imul(Q,Y)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(v,he)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,he)|0,a=a+Math.imul(y,fe)|0;var Ee=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;l=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,Y))+Math.imul(N,q)|0,a=Math.imul(N,Y),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(Q,$)|0,a=a+Math.imul(Q,J)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(B,ne)|0,i=(i=i+Math.imul(B,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,fe)|0)+Math.imul(w,he)|0,a=a+Math.imul(w,fe)|0;var ke=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,J))+Math.imul(N,$)|0,a=Math.imul(N,J),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(Q,Z)|0,a=a+Math.imul(Q,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(C,he)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(_,he)|0,a=a+Math.imul(_,fe)|0;var Se=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ge)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(N,Z)|0,a=Math.imul(N,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(Q,ne)|0,a=a+Math.imul(Q,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(E,he)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,he)|0,a=a+Math.imul(k,fe)|0;var Be=(l+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(_,pe)|0))<<13)|0;l=((a=a+Math.imul(_,ge)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(N,ne)|0,a=Math.imul(N,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(Q,ae)|0,a=a+Math.imul(Q,oe)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(B,he)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(M,he)|0,a=a+Math.imul(M,fe)|0;var Me=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(N,ae)|0,a=Math.imul(N,oe),r=r+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(Q,ce)|0,a=a+Math.imul(Q,le)|0,r=r+Math.imul(O,he)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(D,he)|0,a=a+Math.imul(D,fe)|0;var Te=(l+(r=r+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(M,pe)|0))<<13)|0;l=((a=a+Math.imul(M,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),i=(i=Math.imul(j,le))+Math.imul(N,ce)|0,a=Math.imul(N,le),r=r+Math.imul(L,he)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(Q,he)|0,a=a+Math.imul(Q,fe)|0;var Oe=(l+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,ge)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,he),i=(i=Math.imul(j,fe))+Math.imul(N,he)|0,a=Math.imul(N,fe);var De=(l+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ge)|0)+Math.imul(Q,pe)|0))<<13)|0;l=((a=a+Math.imul(Q,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Pe=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ge))+Math.imul(N,pe)|0))<<13)|0;return l=((a=Math.imul(N,ge))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=me,c[1]=ve,c[2]=ye,c[3]=Ae,c[4]=be,c[5]=we,c[6]=xe,c[7]=Ce,c[8]=_e,c[9]=Ie,c[10]=Ee,c[11]=ke,c[12]=Se,c[13]=Be,c[14]=Me,c[15]=Te,c[16]=Oe,c[17]=De,c[18]=Pe,0!==l&&(c[19]=l,n.length++),n};function A(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,h=(0|e.words[u])*(0|t.words[l]),f=67108863&h;s=67108863&(f=f+s|0),i+=(o=(o=o+(h/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function b(e,t,n){return A(e,t,n)}Math.imul||(y=v),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?v(this,e,t):n<1024?A(this,e,t):b(this,e,t)},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),b(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&n);n>>=26,n+=a/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=m(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-a|h>>>a,u=h&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n||!(this.words[n]&i))},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var h=c-1;h>=0;h--){var f=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,h);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*n;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=t.clone();!t.isZero();){for(var f=0,d=1;!(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,g=1;!(n.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(h)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;!(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,f=1;!(n.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return!(1&this.words[0])},a.prototype.isOdd=function(){return!(1&~this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(C,x),C.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(_,x),i(I,x),i(E,x),E.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new _;else if("p192"===e)t=new I;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(!(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=o;0!==d.cmp(s);){for(var g=d,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m<p);var v=this.pow(h,new a(1).iushln(p-m-1));f=f.redMul(v),h=v.redSqr(),d=d.redMul(h),p=m}return f},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=4,r=new Array(1<<n);r[0]=new a(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var o=r[0],s=0,c=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],h=l-1;h>=0;h--){var f=u>>h&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(++c===n||0===i&&0===h)&&(o=this.mul(o,r[s]),c=0,s=0)):c=0}l=26}return o},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},i(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,void 0)},{buffer:188}],187:[function(e,t,n){var r;function i(e){this.rand=e}if(t.exports=function(e){return r||(r=new i(null)),r.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:188}],188:[function(e,t,n){},{}],189:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(var t=0;t<e.length;e++)e[t]=0}function o(e,t,n,r,i){for(var a,o,s,c,l=n[0],u=n[1],h=n[2],f=n[3],d=e[0]^t[0],p=e[1]^t[1],g=e[2]^t[2],m=e[3]^t[3],v=4,y=1;y<i;y++)a=l[d>>>24]^u[p>>>16&255]^h[g>>>8&255]^f[255&m]^t[v++],o=l[p>>>24]^u[g>>>16&255]^h[m>>>8&255]^f[255&d]^t[v++],s=l[g>>>24]^u[m>>>16&255]^h[d>>>8&255]^f[255&p]^t[v++],c=l[m>>>24]^u[d>>>16&255]^h[p>>>8&255]^f[255&g]^t[v++],d=a,p=o,g=s,m=c;return a=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[g>>>8&255]<<8|r[255&m])^t[v++],o=(r[p>>>24]<<24|r[g>>>16&255]<<16|r[m>>>8&255]<<8|r[255&d])^t[v++],s=(r[g>>>24]<<24|r[m>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^t[v++],c=(r[m>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&g])^t[v++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[o]=l,r[l]=o;var u=e[o],h=e[u],f=e[h],d=257*e[l]^16843008*l;i[0][o]=d<<24|d>>>8,i[1][o]=d<<16|d>>>16,i[2][o]=d<<8|d>>>24,i[3][o]=d,d=16843009*f^65537*h^257*u^16843008*o,a[0][l]=d<<24|d>>>8,a[1][l]=d<<16|d>>>16,a[2][l]=d<<8|d>>>24,a[3][l]=d,0===o?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var l=[],u=0;u<r;u++){var h=r-u,f=i[h-(u%4?0:4)];l[u]=u<4||h<=4?f:c.INV_SUB_MIX[0][c.SBOX[f>>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=l},{"safe-buffer":494}],190:[function(e,t,n){var r=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base"),o=e("inherits"),s=e("./ghash"),c=e("buffer-xor"),l=e("./incr32");function u(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}function h(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var c=8*a,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var h=i.from(e._finID);return l(h),h}function f(e,t,n,o){a.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),n=h(this,n,l),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(f,a),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&u(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=f},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,n){var r=e("./encrypter"),i=e("./decrypter"),a=e("./modes/list.json");function o(){return Object.keys(a)}n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=i.createDecipher,n.createDecipheriv=n.Decipheriv=i.createDecipheriv,n.listCiphers=n.getCiphers=o},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,n){var r=e("./authCipher"),i=e("safe-buffer").Buffer,a=e("./modes"),o=e("./streamCipher"),s=e("cipher-base"),c=e("./aes"),l=e("evp_bytestokey");function u(e,t,n){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function f(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function d(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}function p(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)}e("inherits")(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return f(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=i.concat([this.cache,e])},h.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=p,n.createDecipheriv=d},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,n){var r=e("./modes"),i=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./streamCipher"),s=e("cipher-base"),c=e("./aes"),l=e("evp_bytestokey");function u(e,t,n){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}e("inherits")(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var h=a.alloc(16,16);function f(){this.cache=a.allocUnsafe(0)}function d(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}function p(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(t,!1,n.key,n.iv);return d(e,i.key,i.iv)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=a.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},n.createCipheriv=d,n.createCipher=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,n){var r=e("safe-buffer").Buffer,i=r.alloc(16,0);function a(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function o(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,n=a(this.h),r=[0,0,0,0],i=-1;++i<128;){for(!!(this.state[~~(i/8)]&1<<7-i%8)&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),t=!!(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,t&&(n[0]=n[0]^225<<24)}this.state=o(r)},s.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=s},{"safe-buffer":494}],195:[function(e,t,n){function r(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}t.exports=r},{}],196:[function(e,t,n){var r=e("buffer-xor");n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},{"buffer-xor":219}],197:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("buffer-xor");function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}n.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e,t,n){for(var r,i,o=-1,s=8,c=0;++o<s;)r=t&1<<7-o?128:0,c+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return c}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],199:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],200:[function(e,t,n){var r=e("buffer-xor"),i=e("safe-buffer").Buffer,a=e("../incr32");function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}var s=16;n.encrypt=function(e,t){var n=Math.ceil(t.length/s),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(n*s)]);for(var c=0;c<n;c++){var l=o(e),u=a+c*s;e._cache.writeUInt32BE(l[0],u+0),e._cache.writeUInt32BE(l[1],u+4),e._cache.writeUInt32BE(l[2],u+8),e._cache.writeUInt32BE(l[3],u+12)}var h=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,h)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,n){n.encrypt=function(e,t){return e._cipher.encryptBlock(t)},n.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,n){var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var a in i)i[a].module=r[i[a].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,n){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,n){(function(t){(function(){var r=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}n.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var a=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,a)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,n){var r=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base");function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}e("inherits")(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,n){var r=e("browserify-des"),i=e("browserify-aes/browser"),a=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function c(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return u(e,i.key,i.iv)}function l(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return h(e,i.key,i.iv)}function u(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function h(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function f(){return Object.keys(o).concat(i.getCiphers())}n.createCipher=n.Cipher=c,n.createCipheriv=n.Cipheriv=u,n.createDecipher=n.Decipher=l,n.createDecipheriv=n.Decipheriv=h,n.listCiphers=n.getCiphers=f},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,n){var r=e("cipher-base"),i=e("des.js"),a=e("inherits"),o=e("safe-buffer").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:a,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=c,a(c,r),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,n){n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,n){(function(n){(function(){var r=e("bn.js"),i=e("randombytes");function a(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function o(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var i=a(t),o=t.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(t.modulus),c=s.toRed(r.mont(t.prime1)),l=s.toRed(r.mont(t.prime2)),u=t.coefficient,h=t.prime1,f=t.prime2,d=c.redPow(t.exponent1).fromRed(),p=l.redPow(t.exponent2).fromRed(),g=d.isub(p).imul(u).umod(h).imul(f);return p.iadd(g).imul(i.unblinder).umod(t.modulus).toArrayLike(n,"be",o)}s.getr=o,t.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,n){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,n){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,n){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("create-hash"),a=e("readable-stream"),o=e("inherits"),s=e("./sign"),c=e("./verify"),l=e("./algorithms.json");function u(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function d(e){return new h(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),o(u,a.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(h,a.Writable),h.prototype._write=function(e,t,n){this._hash.update(e),n()},h.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},h.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},t.exports={Sign:f,Verify:d,createSign:f,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("create-hmac"),a=e("browserify-rsa"),o=e("elliptic").ec,s=e("bn.js"),c=e("parse-asn1"),l=e("./curves.json");function u(e,t,n,i,o){var s=c(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return h(e,s)}if("dsa"===s.type){if("dsa"!==i)throw new Error("wrong private key type");return f(e,s,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([o,e]);for(var l=s.modulus.byteLength(),u=[0,1];e.length+u.length+1<l;)u.push(255);u.push(0);for(var d=-1;++d<e.length;)u.push(e[d]);return a(u,s)}function h(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}function f(e,t,n){for(var r,i=t.params.priv_key,a=t.params.p,o=t.params.q,c=t.params.g,l=new s(0),u=g(e,o).mod(o),h=!1,f=p(i,o,e,n);!1===h;)l=y(c,r=v(o,f,n),a,o),0===(h=r.invm(o).imul(u.add(i.mul(l))).mod(o)).cmpn(0)&&(h=!1,l=new s(0));return d(l,h)}function d(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}function p(e,t,n,a){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var s=n.length,c=m(n,t),l=r.alloc(s);l.fill(1);var u=r.alloc(s);return u=i(a,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(a,u).update(l).digest(),{k:u=i(a,u).update(l).update(r.from([1])).update(e).update(c).digest(),v:l=i(a,u).update(l).digest()}}function g(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function m(e,t){e=(e=g(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}function v(e,t,n){var a,o;do{for(a=r.alloc(0);8*a.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),a=r.concat([a,t.v]);o=g(a,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function y(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}t.exports=u,t.exports.getKey=p,t.exports.makeKey=v},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("bn.js"),a=e("elliptic").ec,o=e("parse-asn1"),s=e("./curves.json");function c(e,t,n,a,s){var c=o(n);if("ec"===c.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return l(e,t,c)}if("dsa"===c.type){if("dsa"!==a)throw new Error("wrong public key type");return u(e,t,c)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");t=r.concat([s,t]);for(var h=c.modulus.byteLength(),f=[1],d=0;t.length+f.length+2<h;)f.push(255),d++;f.push(0);for(var p=-1;++p<t.length;)f.push(t[p]);f=r.from(f);var g=i.mont(c.modulus);e=(e=new i(e).toRed(g)).redPow(new i(c.publicExponent)),e=r.from(e.fromRed().toArray());var m=d<8?1:0;for(h=Math.min(e.length,f.length),e.length!==f.length&&(m=1),p=-1;++p<h;)m|=e[p]^f[p];return 0===m}function l(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}function u(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,c=n.data.pub_key,l=o.signature.decode(e,"der"),u=l.s,f=l.r;h(u,a),h(f,a);var d=i.mont(r),p=u.invm(a);return 0===s.toRed(d).redPow(new i(t).mul(p).mod(a)).fromRed().mul(c.toRed(d).redPow(f.mul(p).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}function h(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=c},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,n){},{}],217:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,n){var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=y,void(this.end=A)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e,t,n){var r=t.length-1;if(r<n)return 0;var i=c(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=c(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=c(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function m(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function A(e){return e&&e.length?this.write(e):""}n.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=d,s.prototype.text=f,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,n){(function(e){(function(){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),a=0;a<r;++a)i[a]=t[a]^n[a];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,n){(function(t){(function(){var t=e("base64-js"),r=e("ieee754");n.Buffer=s,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50;var i=2147483647;function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return f(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=g(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e,t,n){return l(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}function h(e){return l(e),o(e<0?0:0|m(e))}function f(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|y(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function d(e){for(var t=e.length<0?0:0|m(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=s.prototype,r}function g(e){if(s.isBuffer(e)){var t=0|m(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}function m(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),s.alloc(+e)}function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function A(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return B(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function w(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:x(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,f=0;f<c;f++)if(l(e,a+f)!==l(t,f)){h=!1;break}if(h)return a}return-1}function C(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(J(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return K(V(t,e.length-n),e,n,r)}function I(e,t,n,r){return K(W(t),e,n,r)}function E(e,t,n,r){return I(e,t,n,r)}function k(e,t,n,r){return K(Y(t),e,n,r)}function S(e,t,n,r){return K(q(t,e.length-n),e,n,r)}function B(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return O(r)}n.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||console.error,Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,n){return c(e,t,n)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,n){return u(e,t,n)},s.allocUnsafe=function(e){return h(e)},s.allocUnsafeSlow=function(e){return h(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if($(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if($(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):A.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,i){if($(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),h=0;h<c;++h)if(l[h]!==u[h]){a=l[h],o=u[h];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return I(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function O(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=G(e[a]);return i}function Q(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,a){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,i,a){return t=+t,n>>>=0,a||N(e,t,n,4),r.write(e,t,n,i,23,4),n+4}function z(e,t,n,i,a){return t=+t,n>>>=0,a||N(e,t,n,8),r.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=s.prototype,r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),c=o.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%c]}return this};var H=/[^+/0-9A-Za-z-_]/g;function U(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function W(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function q(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}function Y(e){return t.toByteArray(U(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=o},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,n){var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,n){var r=e("../internals/is-constructor"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,n){var r=e("../internals/is-callable"),i=String,a=TypeError;t.exports=function(e){if("object"==typeof e||r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,n){var r=e("../internals/well-known-symbol"),i=e("../internals/object-create"),a=e("../internals/object-define-property").f,o=r("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(e){s[o][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,n){var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,n){var r=e("../internals/is-object"),i=String,a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,n){var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var s,c=r(t),l=a(c),u=i(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,n){var r=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),a=e("../internals/indexed-object"),o=e("../internals/to-object"),s=e("../internals/length-of-array-like"),c=e("../internals/array-species-create"),l=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,g,m,v){for(var y,A,b=o(p),w=a(b),x=r(g,m),C=s(w),_=0,I=v||c,E=t?I(p,C):n||f?I(p,0):void 0;C>_;_++)if((d||_ in w)&&(A=x(y=w[_],_,b),e))if(t)E[_]=A;else if(A)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:l(E,y)}else switch(e){case 4:return!1;case 7:l(E,y)}return h?-1:i||u?u:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,n){var r=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),a=e("../internals/create-property"),o=Array,s=Math.max;t.exports=function(e,t,n){for(var c=i(e),l=r(t,c),u=r(void 0===n?c:n,c),h=o(s(u-l,0)),f=0;l<u;l++,f++)a(h,f,e[l]);return h.length=f,h}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,n){var r=e("../internals/function-uncurry-this");t.exports=r([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,n){var r=e("../internals/is-array"),i=e("../internals/is-constructor"),a=e("../internals/is-object"),o=e("../internals/well-known-symbol")("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,n){var r=e("../internals/array-species-constructor");t.exports=function(e,t){return new(r(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,n){var r=e("../internals/well-known-symbol")("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},{"../internals/well-known-symbol":357}],235:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=r({}.toString),a=r("".slice);t.exports=function(e){return a(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,n){var r=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),a=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("toStringTag"),s=Object,c="Arguments"===a(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};t.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=s(e),o))?n:c?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,n){var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),a=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var h=s[u];r(e,h)||n&&r(n,h)||c(e,h,l(t,h))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,n){var r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":260}],240:[function(e,t,n){t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,n){var r=e("../internals/to-property-key"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,n){var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,n){var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),a=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,n){var r=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":260}],248:[function(e,t,n){var r="object"==typeof document&&document.all,i=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:i}},{}],249:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-object"),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,n){var r=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,n){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":256}],254:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(r.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,n){var r=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":256}],256:[function(e,t,n){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,n){var r,i,a=e("../internals/global"),o=e("../internals/engine-user-agent"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),s=e("../internals/define-global-property"),c=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");t.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],h=e.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(n,u,f,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],261:[function(e,t,n){var r=e("../internals/function-bind-native"),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,n){var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),a=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(e,t,n){var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,n){var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,n){var r=e("../internals/function-bind-native"),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-callable"),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,n){var r=e("../internals/classof"),i=e("../internals/get-method"),a=e("../internals/is-null-or-undefined"),o=e("../internals/iterators"),s=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/a-callable"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),s=e("../internals/get-iterator-method"),c=TypeError;t.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),a=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/to-string"),c=r([].push);t.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!==o(l)&&"String"!==o(l)||c(n,s(l))}var u=n.length,h=!0;return function(e,t){if(h)return h=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,n){var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,n){(function(e){(function(){var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,n){t.exports={}},{}],277:[function(e,t,n){t.exports=function(e,t){}},{}],278:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/document-create-element");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/classof-raw"),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),a=e("../internals/shared-store"),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),t.exports=a.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,n){var r,i,a,o=e("../internals/weak-map-basic-detection"),s=e("../internals/global"),c=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),h=e("../internals/shared-store"),f=e("../internals/shared-key"),d=e("../internals/hidden-keys"),p="Object already initialized",g=s.TypeError,m=s.WeakMap,v=function(e){return a(e)?i(e):r(e,{})},y=function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}};if(o||h.state){var A=h.state||(h.state=new m);A.get=A.get,A.has=A.has,A.set=A.set,r=function(e,t){if(A.has(e))throw new g(p);return t.facade=e,A.set(e,t),t},i=function(e){return A.get(e)||{}},a=function(e){return A.has(e)}}else{var b=f("state");d[b]=!0,r=function(e,t){if(u(e,b))throw new g(p);return t.facade=e,l(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}t.exports={set:r,get:i,has:a,enforce:v,getterFor:y}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,n){var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),a=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,n){var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===r(e)}},{"../internals/classof-raw":235}],285:[function(e,t,n){var r=e("../internals/document-all"),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/classof"),s=e("../internals/get-built-in"),c=e("../internals/inspect-source"),l=function(){},u=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(l),g=function(e){if(!a(e))return!1;try{return h(l,u,e),!0}catch(e){return!1}},m=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,c(e))}catch(e){return!0}};m.sham=!0,t.exports=!h||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,n){var r=e("../internals/fails"),i=e("../internals/is-callable"),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u||n!==l&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,n){t.exports=function(e){return null==e}},{}],289:[function(e,t,n){var r=e("../internals/is-callable"),i=e("../internals/document-all"),a=i.all;t.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,n){t.exports=!1},{}],291:[function(e,t,n){var r=e("../internals/is-object"),i=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,n){var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),a=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),s=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,n){var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),s=e("../internals/is-array-iterator-method"),c=e("../internals/length-of-array-like"),l=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),h=e("../internals/get-iterator-method"),f=e("../internals/iterator-close"),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;t.exports=function(e,t,n){var m,v,y,A,b,w,x,C=n&&n.that,_=!(!n||!n.AS_ENTRIES),I=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),S=r(t,C),B=function(e){return m&&f(m,"normal",e),new p(!0,e)},M=function(e){return _?(a(e),k?S(e[0],e[1],B):S(e[0],e[1])):k?S(e,B):S(e)};if(I)m=e.iterator;else if(E)m=e;else{if(!(v=h(e)))throw new d(o(e)+" is not iterable");if(s(v)){for(y=0,A=c(e);A>y;y++)if((b=M(e[y]))&&l(g,b))return b;return new p(!1)}m=u(e,v)}for(w=I?e.next:m.next;!(x=i(w,m)).done;){try{b=M(x.value)}catch(e){f(m,"throw",e)}if("object"==typeof b&&b&&l(g,b))return b}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/an-object"),a=e("../internals/get-method");t.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw n;if(s)throw o;return i(o),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,n){var r=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),s=e("../internals/iterators"),c=function(){return this};t.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=i(r,{next:a(+!l,n)}),o(e,u,!1,!0),s[u]=c,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/is-pure"),o=e("../internals/function-name"),s=e("../internals/is-callable"),c=e("../internals/iterator-create-constructor"),l=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),d=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),g=e("../internals/iterators"),m=e("../internals/iterators-core"),v=o.PROPER,y=o.CONFIGURABLE,A=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",C="values",_="entries",I=function(){return this};t.exports=function(e,t,n,o,p,m,E){c(n,t,o);var k,S,B,M=function(e){if(e===p&&L)return L;if(!b&&e&&e in D)return D[e];switch(e){case x:case C:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",O=!1,D=e.prototype,P=D[w]||D["@@iterator"]||p&&D[p],L=!b&&P||M(p),Q="Array"===t&&D.entries||P;if(Q&&(k=l(Q.call(new e)))!==Object.prototype&&k.next&&(a||l(k)===A||(u?u(k,A):s(k[w])||d(k,w,I)),h(k,T,!0,!0),a&&(g[T]=I)),v&&p===C&&P&&P.name!==C&&(!a&&y?f(D,"name",C):(O=!0,L=function(){return i(P,this)})),p)if(S={values:M(C),keys:m?L:M(x),entries:M(_)},E)for(B in S)(b||O||!(B in D))&&d(D,B,S[B]);else r({target:t,proto:!0,forced:b||O},S);return a&&!E||D[w]===L||d(D,w,L,{name:p}),g[t]=L,S}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,n){var r,i,a,o=e("../internals/fails"),s=e("../internals/is-callable"),c=e("../internals/is-object"),l=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),h=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),p=f("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(r=i):g=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=l(r)),s(r[p])||h(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,n){arguments[4][276][0].apply(n,arguments)},{dup:276}],299:[function(e,t,n){var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":343}],300:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/has-own-property"),s=e("../internals/descriptors"),c=e("../internals/function-name").CONFIGURABLE,l=e("../internals/inspect-source"),u=e("../internals/internal-state"),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),A=String(String).split("String"),b=t.exports=function(e,t,n){"Symbol("===g(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return o(r,"source")||(r.source=v(A,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&f(this).source||l(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],302:[function(e,t,n){var r,i,a,o,s,c=e("../internals/global"),l=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/task").set,f=e("../internals/queue"),d=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),g=e("../internals/engine-is-webos-webkit"),m=e("../internals/engine-is-node"),v=c.MutationObserver||c.WebKitMutationObserver,y=c.document,A=c.process,b=c.Promise,w=u(c,"queueMicrotask"),x=w&&w.value;if(!x){var C=new f,_=function(){var e,t;for(m&&(e=A.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&r(),e}e&&e.enter()};d||m||g||!v||!y?!p&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,s=l(o.then,o),r=function(){s(_)}):m?r=function(){A.nextTick(_)}:(h=l(h,c),r=function(){h(_)}):(i=!0,a=y.createTextNode(""),new v(_).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),x=function(e){C.head||r(),C.add(e)}}t.exports=x},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,n){var r=e("../internals/a-callable"),i=TypeError,a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new a(e)}},{"../internals/a-callable":222}],304:[function(e,t,n){var r=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),a=e("../internals/function-call"),o=e("../internals/fails"),s=e("../internals/object-keys"),c=e("../internals/object-get-own-property-symbols"),l=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),h=e("../internals/indexed-object"),f=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!f||o((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){for(var n=u(e),i=arguments.length,o=1,f=c.f,d=l.f;i>o;)for(var g,m=h(arguments[o++]),v=f?p(s(m),f(m)):s(m),y=v.length,A=0;y>A;)g=v[A++],r&&!a(d,m,g)||(n[g]=m[g]);return n}:f},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,n){var r,i=e("../internals/an-object"),a=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),c=e("../internals/html"),l=e("../internals/document-create-element"),u=e("../internals/shared-key"),h=">",f="<",d="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return f+p+h+e+f+"/"+p+h},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},A=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&r?y(r):A():y(r);for(var e=o.length;e--;)delete b[d][o[e]];return b()};s[g]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=i(e),n=new m,m[d]=null,n[g]=e):n=b(),void 0===t?n:a.f(n,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),a=e("../internals/object-define-property"),o=e("../internals/an-object"),s=e("../internals/to-indexed-object"),c=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=c(t),l=i.length,u=0;l>u;)a.f(e,n=i[u++],r[n]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),a=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),s=e("../internals/to-property-key"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";n.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var r=u(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/function-call"),a=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),s=e("../internals/to-indexed-object"),c=e("../internals/to-property-key"),l=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;n.f=r?h:function(e,t){if(e=s(e),t=c(t),u)try{return h(e,t)}catch(e){}if(l(e,t))return o(!i(a.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,n){var r=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),a=e("../internals/object-get-own-property-names").f,o=e("../internals/array-slice-simple"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return a(e)}catch(e){return o(s)}};t.exports.f=function(e){return s&&"Window"===r(e)?c(e):a(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,n){var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,n){var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),a=e("../internals/to-object"),o=e("../internals/shared-key"),s=e("../internals/correct-prototype-getter"),c=o("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,n){var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),a=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,s=e("../internals/hidden-keys"),c=r([].push);t.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);for(;t.length>l;)i(r,n=t[l++])&&(~o(u,n)||c(u,n));return u}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,n){var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);n.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],318:[function(e,t,n){var r=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),a=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/function-uncurry-this"),o=e("../internals/object-get-prototype-of"),s=e("../internals/object-keys"),c=e("../internals/to-indexed-object"),l=a(e("../internals/object-property-is-enumerable").f),u=a([].push),h=r&&i((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),f=function(e){return function(t){for(var n,i=c(t),a=s(i),f=h&&null===o(i),d=a.length,p=0,g=[];d>p;)n=a[p++],r&&!(f?n in i:l(i,n))||u(g,e?[n,i[n]]:i[n]);return g}};t.exports={entries:f(!0),values:f(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/is-callable"),a=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,n){var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),a=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/an-object"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,n){var r=e("../internals/global");t.exports=r},{"../internals/global":274}],323:[function(e,t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/promise-native-constructor"),a=e("../internals/is-callable"),o=e("../internals/is-forced"),s=e("../internals/inspect-source"),c=e("../internals/well-known-symbol"),l=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),h=e("../internals/is-pure"),f=e("../internals/engine-v8-version"),d=i&&i.prototype,p=c("species"),g=!1,m=a(r.PromiseRejectionEvent),v=o("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(h&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(g=n.then((function(){}))instanceof r))return!0}return!t&&(l||u)&&!m}));t.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:g}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,n){var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":274}],326:[function(e,t,n){var r=e("../internals/an-object"),i=e("../internals/is-object"),a=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,n){var r=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=a||!i((function(e){r.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,n){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=r},{}],329:[function(e,t,n){var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,n){var r=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),a=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),s=a("species");t.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,n){var r=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,n){var r=e("../internals/shared"),i=e("../internals/uid"),a=r("keys");t.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/define-global-property"),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,n){var r=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,n){var r=e("../internals/an-object"),i=e("../internals/a-constructor"),a=e("../internals/is-null-or-undefined"),o=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||a(n=r(s)[o])?t:i(n)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,n){var r=e("../internals/engine-v8-version"),i=e("../internals/fails"),a=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/get-built-in"),a=e("../internals/well-known-symbol"),o=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return r(n,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,n){var r=e("../internals/symbol-constructor-detection");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,n){var r,i,a,o,s=e("../internals/global"),c=e("../internals/function-apply"),l=e("../internals/function-bind-context"),u=e("../internals/is-callable"),h=e("../internals/has-own-property"),f=e("../internals/fails"),d=e("../internals/html"),p=e("../internals/array-slice"),g=e("../internals/document-create-element"),m=e("../internals/validate-arguments-length"),v=e("../internals/engine-is-ios"),y=e("../internals/engine-is-node"),A=s.setImmediate,b=s.clearImmediate,w=s.process,x=s.Dispatch,C=s.Function,_=s.MessageChannel,I=s.String,E=0,k={},S="onreadystatechange";f((function(){r=s.location}));var B=function(e){if(h(k,e)){var t=k[e];delete k[e],t()}},M=function(e){return function(){B(e)}},T=function(e){B(e.data)},O=function(e){s.postMessage(I(e),r.protocol+"//"+r.host)};A&&b||(A=function(e){m(arguments.length,1);var t=u(e)?e:C(e),n=p(arguments,1);return k[++E]=function(){c(t,void 0,n)},i(E),E},b=function(e){delete k[e]},y?i=function(e){w.nextTick(M(e))}:x&&x.now?i=function(e){x.now(M(e))}:_&&!v?(o=(a=new _).port2,a.port1.onmessage=T,i=l(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(i=O,s.addEventListener("message",T,!1)):i=S in g("script")?function(e){d.appendChild(g("script"))[S]=function(){d.removeChild(this),B(e)}}:function(e){setTimeout(M(e),0)}),t.exports={set:A,clear:b}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),i=Math.max,a=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,n){var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,n){var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":301}],343:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,n){var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,n){var r=e("../internals/function-call"),i=e("../internals/is-object"),a=e("../internals/is-symbol"),o=e("../internals/get-method"),s=e("../internals/ordinary-to-primitive"),c=e("../internals/well-known-symbol"),l=TypeError,u=c("toPrimitive");t.exports=function(e,t){if(!i(e)||a(e))return e;var n,c=o(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||a(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,n){var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,n){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":357}],348:[function(e,t,n){var r=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":236}],349:[function(e,t,n){var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],350:[function(e,t,n){var r=e("../internals/function-uncurry-this"),i=0,a=Math.random(),o=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,n){var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,n){var r=TypeError;t.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},{}],354:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-callable"),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,n){var r=e("../internals/path"),i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol-wrapped"),o=e("../internals/object-define-property").f;t.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,n){var r=e("../internals/well-known-symbol");n.f=r},{"../internals/well-known-symbol":357}],357:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/shared"),a=e("../internals/has-own-property"),o=e("../internals/uid"),s=e("../internals/symbol-constructor-detection"),c=e("../internals/use-symbol-as-uid"),l=r.Symbol,u=i("wks"),h=c?l.for||l:l&&l.withoutSetter||o;t.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:h("Symbol."+e)),u[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/array-iteration").findIndex,a=e("../internals/add-to-unscopables"),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/array-iteration").find,a=e("../internals/add-to-unscopables"),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/array-includes").includes,a=e("../internals/fails"),o=e("../internals/add-to-unscopables");r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,n){var r=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),a=e("../internals/iterators"),o=e("../internals/internal-state"),s=e("../internals/object-define-property").f,c=e("../internals/iterator-define"),l=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),h=e("../internals/descriptors"),f="Array Iterator",d=o.set,p=o.getterFor(f);t.exports=c(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,l(void 0,!0);switch(n){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var g=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!u&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/function-apply"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),c=e("../internals/fails"),l=e("../internals/is-callable"),u=e("../internals/is-symbol"),h=e("../internals/array-slice"),f=e("../internals/get-json-replacer-function"),d=e("../internals/symbol-constructor-detection"),p=String,g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),A=s("".replace),b=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,_=!d||c((function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),I=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),E=function(e,t){var n=h(arguments),r=f(t);if(l(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(l(r)&&(t=o(r,this,p(e),t)),!u(t))return t},a(g,null,n)},k=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(x,e)&&!m(C,i)||m(C,e)&&!m(x,r)?"\\u"+b(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:_||I},{stringify:function(e,t,n){var r=h(arguments),i=a(_?E:g,null,r);return I&&"string"==typeof i?A(i,w,k):i}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,n){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/object-assign");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),a=e("../internals/fails"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/to-object");r({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/to-object"),a=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")((function(){a(1)}))},{keys:function(e){return a(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/object-to-array").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),s=e("../internals/perform"),c=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),o=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,i(n,t,e).then((function(e){c||(c=!0,o[a]=e,--u||r(o))}),l)})),--u||r(o)}));return u.error&&l(u.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,o=e("../internals/promise-native-constructor"),s=e("../internals/get-built-in"),c=e("../internals/is-callable"),l=e("../internals/define-built-in"),u=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(o)){var h=s("Promise").prototype.catch;u.catch!==h&&l(u,"catch",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,n){var r,i,a,o,s=e("../internals/export"),c=e("../internals/is-pure"),l=e("../internals/engine-is-node"),u=e("../internals/global"),h=e("../internals/function-call"),f=e("../internals/define-built-in"),d=e("../internals/object-set-prototype-of"),p=e("../internals/set-to-string-tag"),g=e("../internals/set-species"),m=e("../internals/a-callable"),v=e("../internals/is-callable"),y=e("../internals/is-object"),A=e("../internals/an-instance"),b=e("../internals/species-constructor"),w=e("../internals/task").set,x=e("../internals/microtask"),C=e("../internals/host-report-errors"),_=e("../internals/perform"),I=e("../internals/queue"),E=e("../internals/internal-state"),k=e("../internals/promise-native-constructor"),S=e("../internals/promise-constructor-detection"),B=e("../internals/new-promise-capability"),M="Promise",T=S.CONSTRUCTOR,O=S.REJECTION_EVENT,D=S.SUBCLASSING,P=E.getterFor(M),L=E.set,Q=k&&k.prototype,R=k,j=Q,N=u.TypeError,F=u.document,z=u.process,H=B.f,U=H,G=!!(F&&F.createEvent&&u.dispatchEvent),V="unhandledrejection",W="rejectionhandled",q=0,Y=1,K=2,$=1,J=2,X=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},Z=function(e,t){var n,r,i,a=t.value,o=t.state===Y,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(o||(t.rejection===J&&ie(t),t.rejection=$),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),i=!0)),n===e.promise?l(new N("Promise-chain cycle")):(r=X(n))?h(r,n,c,l):c(n)):l(a)}catch(e){u&&!i&&u.exit(),l(e)}},ee=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,r=e.reactions;n=r.get();)Z(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;G?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!O&&(i=u["on"+e])?i(r):e===V&&C("Unhandled promise rejection",n)},ne=function(e){h(w,u,(function(){var t,n=e.facade,r=e.value;if(re(e)&&(t=_((function(){l?z.emit("unhandledRejection",r,n):te(V,n,r)})),e.rejection=l||re(e)?J:$,t.error))throw t.value}))},re=function(e){return e.rejection!==$&&!e.parent},ie=function(e){h(w,u,(function(){var t=e.facade;l?z.emit("rejectionHandled",t):te(W,t,e.value)}))},ae=function(e,t,n){return function(r){e(t,r,n)}},oe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=K,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var r=X(t);r?x((function(){var n={done:!1};try{h(r,t,ae(se,n,e),ae(oe,n,e))}catch(t){oe(n,t,e)}})):(e.value=t,e.state=Y,ee(e,!1))}catch(t){oe({done:!1},t,e)}}};if(T&&(j=(R=function(e){A(this,j),m(e),h(r,this);var t=P(this);try{e(ae(se,t),ae(oe,t))}catch(e){oe(t,e)}}).prototype,(r=function(e){L(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:q,value:void 0})}).prototype=f(j,"then",(function(e,t){var n=P(this),r=H(b(this,R));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=l?z.domain:void 0,n.state===q?n.reactions.add(r):x((function(){Z(r,n)})),r.promise})),i=function(){var e=new r,t=P(e);this.promise=e,this.resolve=ae(se,t),this.reject=ae(oe,t)},B.f=H=function(e){return e===R||e===a?new i(e):U(e)},!c&&v(k)&&Q!==Object.prototype)){o=Q.then,D||f(Q,"then",(function(e,t){var n=this;return new R((function(e,t){h(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Q.constructor}catch(e){}d&&d(Q,j)}s({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:R}),p(R,M,!1,!0),g(M)},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),o=e("../internals/fails"),s=e("../internals/get-built-in"),c=e("../internals/is-callable"),l=e("../internals/species-constructor"),u=e("../internals/promise-resolve"),h=e("../internals/define-built-in"),f=a&&a.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&c(a)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,n){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),s=e("../internals/perform"),c=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,n=o.f(t),r=n.reject,l=s((function(){var o=a(t.resolve);c(e,(function(e){i(o,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/new-promise-capability");r({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,c=e("../internals/promise-resolve"),l=i("Promise"),u=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?o:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/to-absolute-index"),o=RangeError,s=String.fromCharCode,c=String.fromCodePoint,l=i([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new o(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/not-a-regexp"),o=e("../internals/require-object-coercible"),s=e("../internals/to-string"),c=e("../internals/correct-is-regexp-logic"),l=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,n){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/global"),a=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-pure"),c=e("../internals/descriptors"),l=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),h=e("../internals/has-own-property"),f=e("../internals/object-is-prototype-of"),d=e("../internals/an-object"),p=e("../internals/to-indexed-object"),g=e("../internals/to-property-key"),m=e("../internals/to-string"),v=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),A=e("../internals/object-keys"),b=e("../internals/object-get-own-property-names"),w=e("../internals/object-get-own-property-names-external"),x=e("../internals/object-get-own-property-symbols"),C=e("../internals/object-get-own-property-descriptor"),_=e("../internals/object-define-property"),I=e("../internals/object-define-properties"),E=e("../internals/object-property-is-enumerable"),k=e("../internals/define-built-in"),S=e("../internals/define-built-in-accessor"),B=e("../internals/shared"),M=e("../internals/shared-key"),T=e("../internals/hidden-keys"),O=e("../internals/uid"),D=e("../internals/well-known-symbol"),P=e("../internals/well-known-symbol-wrapped"),L=e("../internals/well-known-symbol-define"),Q=e("../internals/symbol-define-to-primitive"),R=e("../internals/set-to-string-tag"),j=e("../internals/internal-state"),N=e("../internals/array-iteration").forEach,F=M("hidden"),z="Symbol",H="prototype",U=j.set,G=j.getterFor(z),V=Object[H],W=i.Symbol,q=W&&W[H],Y=i.RangeError,K=i.TypeError,$=i.QObject,J=C.f,X=_.f,Z=w.f,ee=E.f,te=o([].push),ne=B("symbols"),re=B("op-symbols"),ie=B("wks"),ae=!$||!$[H]||!$[H].findChild,oe=function(e,t,n){var r=J(V,t);r&&delete V[t],X(e,t,n),r&&e!==V&&X(V,t,r)},se=c&&u((function(){return 7!==y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?oe:X,ce=function(e,t){var n=ne[e]=y(q);return U(n,{type:z,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===V&&le(re,t,n),d(e);var r=g(t);return d(n),h(ne,r)?(n.enumerable?(h(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(e,F)||X(e,F,v(1,{})),e[F][r]=!0),se(e,r,n)):X(e,r,n)},ue=function(e,t){d(e);var n=p(t),r=A(n).concat(ge(n));return N(r,(function(t){c&&!a(fe,n,t)||le(e,t,n[t])})),e},he=function(e,t){return void 0===t?y(e):ue(y(e),t)},fe=function(e){var t=g(e),n=a(ee,this,t);return!(this===V&&h(ne,t)&&!h(re,t))&&(!(n||!h(this,t)||!h(ne,t)||h(this,F)&&this[F][t])||n)},de=function(e,t){var n=p(e),r=g(t);if(n!==V||!h(ne,r)||h(re,r)){var i=J(n,r);return!i||!h(ne,r)||h(n,F)&&n[F][r]||(i.enumerable=!0),i}},pe=function(e){var t=Z(p(e)),n=[];return N(t,(function(e){h(ne,e)||h(T,e)||te(n,e)})),n},ge=function(e){var t=e===V,n=Z(t?re:p(e)),r=[];return N(n,(function(e){!h(ne,e)||t&&!h(V,e)||te(r,ne[e])})),r};l||(W=function(){if(f(q,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=O(e),n=function(e){this===V&&a(n,re,e),h(this,F)&&h(this[F],t)&&(this[F][t]=!1);var r=v(1,e);try{se(this,t,r)}catch(e){if(!(e instanceof Y))throw e;oe(this,t,r)}};return c&&ae&&se(V,t,{configurable:!0,set:n}),ce(t,e)},k(q=W[H],"toString",(function(){return G(this).tag})),k(W,"withoutSetter",(function(e){return ce(O(e),e)})),E.f=fe,_.f=le,I.f=ue,C.f=de,b.f=w.f=pe,x.f=ge,P.f=function(e){return ce(D(e),e)},c&&(S(q,"description",{configurable:!0,get:function(){return G(this).description}}),s||k(V,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),N(A(ie),(function(e){L(e)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:he,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),Q(),R(W,z),T[F]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/has-own-property"),o=e("../internals/to-string"),s=e("../internals/shared"),c=e("../internals/symbol-registry-detection"),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(a(l,t))return l[t];var n=i("Symbol")(t);return l[t]=n,u[n]=t,n}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,n){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,n){var r=e("../internals/export"),i=e("../internals/has-own-property"),a=e("../internals/is-symbol"),o=e("../internals/try-to-string"),s=e("../internals/shared"),c=e("../internals/symbol-registry-detection"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw new TypeError(o(e)+" is not a symbol");if(i(l,e))return l[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"==typeof e}function a(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function c(e){return"string"==typeof e}function l(e){return"symbol"==typeof e}function u(e){return void 0===e}function h(e){return"[object RegExp]"===v(e)}function f(e){return"object"==typeof e&&null!==e}function d(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function g(e){return"function"==typeof e}function m(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function v(e){return Object.prototype.toString.call(e)}n.isArray=r,n.isBoolean=i,n.isNull=a,n.isNullOrUndefined=o,n.isNumber=s,n.isString=c,n.isSymbol=l,n.isUndefined=u,n.isRegExp=h,n.isObject=f,n.isDate=d,n.isError=p,n.isFunction=g,n.isPrimitive=m,n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,n){(function(n){(function(){var r=e("elliptic"),i=e("bn.js");t.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var a=new n(r-i.length);a.fill(0),i=n.concat([a,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],386:[function(e,t,n){var r=e("inherits"),i=e("md5.js"),a=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,n){var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":450}],388:[function(e,t,n){var r=e("inherits"),i=e("./legacy"),a=e("cipher-base"),o=e("safe-buffer").Buffer,s=e("create-hash/md5"),c=e("ripemd160"),l=e("sha.js"),u=o.alloc(128);function h(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(h,a),h.prototype._update=function(e){this._hash.update(e)},h.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new h("rmd160",t):"md5"===e?new i(s,t):new h(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,n){var r=e("inherits"),i=e("safe-buffer").Buffer,a=e("cipher-base"),o=i.alloc(128),s=64;function c(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,o],s));for(var n=this._ipad=i.allocUnsafe(s),r=this._opad=i.allocUnsafe(s),c=0;c<s;c++)n[c]=54^t[c],r[c]=92^t[c];this._hash=[n]}r(c,a),c.prototype._update=function(e){this._hash.push(e)},c.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=c},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,n){n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e("randombytes"),n.createHash=n.Hash=e("create-hash"),n.createHmac=n.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);n.getHashes=function(){return a};var o=e("pbkdf2");n.pbkdf2=o.pbkdf2,n.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");n.Cipher=s.Cipher,n.createCipher=s.createCipher,n.Cipheriv=s.Cipheriv,n.createCipheriv=s.createCipheriv,n.Decipher=s.Decipher,n.createDecipher=s.createDecipher,n.Decipheriv=s.Decipheriv,n.createDecipheriv=s.createDecipheriv,n.getCiphers=s.getCiphers,n.listCiphers=s.listCiphers;var c=e("diffie-hellman");n.DiffieHellmanGroup=c.DiffieHellmanGroup,n.createDiffieHellmanGroup=c.createDiffieHellmanGroup,n.getDiffieHellman=c.getDiffieHellman,n.createDiffieHellman=c.createDiffieHellman,n.DiffieHellman=c.DiffieHellman;var l=e("browserify-sign");n.createSign=l.createSign,n.Sign=l.Sign,n.createVerify=l.createVerify,n.Verify=l.Verify,n.createECDH=e("create-ecdh");var u=e("public-encrypt");n.publicEncrypt=u.publicEncrypt,n.privateEncrypt=u.privateEncrypt,n.publicDecrypt=u.publicDecrypt,n.privateDecrypt=u.privateDecrypt;var h=e("randomfill");n.randomFill=h.randomFill,n.randomFillSync=h.randomFillSync,n.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,n){var r,i;r=void 0,i=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",h="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:h,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},A="en",b={};b[A]=m;var w="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[w])},C=function e(t,n,r){var i;if(!t)return A;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(A=i),i||!r&&A},_=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},I=y;I.l=C,I.i=x,I.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return I},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<_(e)},v.$g=function(e,t,n){return I.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!I.u(t)||t,u=I.p(e),d=function(e,t){var i=I.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return I.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case h:return r?d(1,0):d(31,11);case l:return r?d(1,m):d(0,m+1);case c:var A=this.$locale().weekStart||0,b=(g<A?g+7:g)-A;return d(r?v-b:v+(6-b),m);case s:case f:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case a:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=I.p(e),u="set"+(this.$u?"UTC":""),d=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[h]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===h){var g=this.clone().set(f,1);g.$d[d](p),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[I.p(e)]()},v.add=function(r,u){var f,d=this;r=Number(r);var p=I.p(u),g=function(e){var t=_(d);return I.w(t.date(t.date()+Math.round(e*r)),d)};if(p===l)return this.set(l,this.$M+r);if(p===h)return this.set(h,this.$y+r);if(p===s)return g(1);if(p===c)return g(7);var m=(f={},f[a]=t,f[o]=n,f[i]=e,f)[p]||1,v=this.$d.getTime()+r*m;return I.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=I.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,h=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return I.s(a%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return I.s(t.$y,4,"0");case"M":return s+1;case"MM":return I.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return t.$D;case"DD":return I.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return I.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return p(a,o,!0);case"A":return p(a,o,!1);case"m":return String(o);case"mm":return I.s(o,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,d){var p,g=this,m=I.p(f),v=_(r),y=(v.utcOffset()-this.utcOffset())*t,A=this-v,b=function(){return I.m(g,v)};switch(m){case h:p=b()/12;break;case l:p=b();break;case u:p=b()/3;break;case c:p=(A-y)/6048e5;break;case s:p=(A-y)/864e5;break;case o:p=A/n;break;case a:p=A/t;break;case i:p=A/e;break;default:p=A}return d?p:I.a(p)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return I.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),k=E.prototype;return _.prototype=k,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",h],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,E,_),e.$i=!0),_},_.locale=C,_.isDayjs=x,_.unix=function(e){return _(1e3*e)},_.en=b[A],_.Ls=b,_.p={},_},"object"==typeof n&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs=i()},{}],392:[function(e,t,n){var r,i;r=void 0,i=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=h[l],f=u&&u[0],d=u&&u[1];o[c]=d?{regex:f,parser:d}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var c=!0===o[2],l=!0===o[3],u=c||l,h=o[2];l&&(h=o[2]),a=this.$locale(),!c&&h&&(a=n.Ls[h]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,h=r.zone,d=new Date,p=o||(i||a?1:d.getDate()),g=i||d.getFullYear(),m=0;i&&!a||(m=a>0?a-1:d.getMonth());var v=s||0,y=c||0,A=l||0,b=u||0;return h?new Date(Date.UTC(g,m,p,v,y,A,b+60*h.offset*1e3)):n?new Date(Date.UTC(g,m,p,v,y,A,b)):new Date(g,m,p,v,y,A,b)}catch(e){return new Date("")}}(t,s,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var d=s.length,p=1;p<=d;p+=1){o[1]=s[p-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===d&&(this.$d=new Date(""))}else i.call(this,e)}}},"object"==typeof n&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_customParseFormat=i()},{}],393:[function(e,t,n){var r,i;r=void 0,i=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r)))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=0===r,s;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}},"object"==typeof n&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_utc=i()},{}],394:[function(e,t,n){n.utils=e("./des/utils"),n.Cipher=e("./des/cipher"),n.DES=e("./des/des"),n.CBC=e("./des/cbc"),n.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits"),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function s(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t}n.instantiate=s,a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];for(a._update.call(this,o,0,n,r),s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{for(a._update.call(this,e,t,n,r),s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,n){var r=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits"),a=e("./utils"),o=e("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function c(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,o),t.exports=c,c.create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=l[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},c.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];a.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var h=a.substitute(l,u),f=s;s=(o^a.permute(h))>>>0,o=f}a.rip(s,o,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];a.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var h=a.substitute(l,u),f=o;o=(s^a.permute(h))>>>0,s=f}a.rip(o,s,r,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits"),a=e("./cipher"),o=e("./des");function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function c(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,a),t.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,n){n.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},n.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>r[c]&1;for(c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},n.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)];return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},{}],400:[function(e,t,n){(function(t){(function(){var r=e("./lib/generatePrime"),i=e("./lib/primes.json"),a=e("./lib/dh");function o(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new a(n,r)}var s={binary:!0,hex:!0,base64:!0};function c(e,n,i,o){return t.isBuffer(n)||void 0===s[n]?c(e,"binary",n,i):(n=n||"binary",o=o||"binary",i=i||new t([2]),t.isBuffer(i)||(i=new t(i,o)),"number"==typeof e?new a(r(e,i),i,!0):(t.isBuffer(e)||(e=new t(e,n)),new a(e,i,!0)))}n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=o,n.createDiffieHellman=n.DiffieHellman=c}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,n){(function(n){(function(){var r=e("bn.js"),i=new(e("miller-rabin")),a=new r(24),o=new r(11),s=new r(10),c=new r(3),l=new r(7),u=e("./generatePrime"),h=e("randombytes");function f(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function d(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}t.exports=m;var p={};function g(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var h,f=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return f+=1,f+="02"===n||"05"===n?8:4,p[r]=f,f;switch(i.test(e.shrn(1))||(f+=2),n){case"02":e.mod(a).cmp(o)&&(f+=8);break;case"05":(h=e.mod(s)).cmp(c)&&h.cmp(l)&&(f+=8);break;default:f+=4}return p[r]=f,f}function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=d):this._primeCode=8}function v(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(t.toArray()),a=this.getPrime();if(i.length<a.length){var o=new n(a.length-i.length);o.fill(0),i=n.concat([o,i])}return i},m.prototype.getPublicKey=function(e){return v(this._pub,e)},m.prototype.getPrivateKey=function(e){return v(this._priv,e)},m.prototype.getPrime=function(e){return v(this.__prime,e)},m.prototype.getGenerator=function(e){return v(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,n){var r=e("randombytes");t.exports=y,y.simpleSieve=m,y.fermatTest=v;var i=e("bn.js"),a=new i(24),o=new(e("miller-rabin")),s=new i(1),c=new i(2),l=new i(5);new i(16),new i(8);var u=new i(10),h=new i(3);new i(7);var f=new i(11),d=new i(4);new i(12);var p=null;function g(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var n=1,r=3;r<e;r+=2){for(var i=Math.ceil(Math.sqrt(r)),a=0;a<n&&t[a]<=i&&r%t[a]!=0;a++);n!==a&&t[a]<=i||(t[n++]=r)}return p=t,t}function m(e){for(var t=g(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function v(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(h);)n.iadd(d)}else for(;n.mod(a).cmp(f);)n.iadd(d);if(m(p=n.shrn(1))&&m(n)&&v(p)&&v(n)&&o.test(p)&&o.test(n))return n}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,n){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],405:[function(e,t,n){var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,n){var r=e("bn.js"),i=e("../utils"),a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,c,l=[];for(o=0;o<r.length;o+=n.step){c=0;for(var u=o+n.step-1;u>=o;u--)c=(c<<1)+r[u];l.push(c)}for(var h=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o<l.length;o++)(c=l[o])===d?f=f.mixedAdd(n.points[o]):c===-d&&(f=f.mixedAdd(n.points[o].neg()));h=h.add(f)}return h.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var u=0;l>=0&&0===o[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var h=o[l];s(0!==h),c="affine"===e.type?h>0?c.mixedAdd(i[h-1>>1]):c.mixedAdd(i[-h-1>>1].neg()):h>0?c.add(i[h-1>>1]):c.add(i[-h-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){var s,c,l,u=this._wnafT1,h=this._wnafT2,f=this._wnafT3,d=0;for(s=0;s<r;s++){var p=(l=t[s])._getNAFPoints(e);u[s]=p.wnd,h[s]=p.points}for(s=r-1;s>=1;s-=2){var g=s-1,m=s;if(1===u[g]&&1===u[m]){var v=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(v[1]=t[g].add(t[m]),v[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(v[1]=t[g].toJ().mixedAdd(t[m]),v[2]=t[g].add(t[m].neg())):(v[1]=t[g].toJ().mixedAdd(t[m]),v[2]=t[g].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],A=o(n[g],n[m]);for(d=Math.max(A[0].length,d),f[g]=new Array(d),f[m]=new Array(d),c=0;c<d;c++){var b=0|A[0][c],w=0|A[1][c];f[g][c]=y[3*(b+1)+(w+1)],f[m][c]=0,h[g]=v}}else f[g]=a(n[g],u[g],this._bitLength),f[m]=a(n[m],u[m],this._bitLength),d=Math.max(f[g].length,d),d=Math.max(f[m].length,d)}var x=this.jpoint(null,null,null),C=this._wnafT4;for(s=d;s>=0;s--){for(var _=0;s>=0;){var I=!0;for(c=0;c<r;c++)C[c]=0|f[c][s],0!==C[c]&&(I=!1);if(!I)break;_++,s--}if(s>=0&&_++,x=x.dblp(_),s<0)break;for(c=0;c<r;c++){var E=C[c];0!==E&&(E>0?l=h[c][E-1>>1]:E<0&&(l=h[c][-E-1>>1].neg()),x="affine"===l.type?x.mixedAdd(l):x.add(l))}}for(s=0;s<r;s++)h[s]=null;return i?x:x.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,n){var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,o),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(l,o.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),c=i.redMul(o),l=a.redMul(s),u=i.redMul(s),h=o.redMul(a);return this.curve.point(c,l,h,u)},l.prototype._projDbl=function(){var e,t,n,r,i,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(c)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),a=l.redSub(i).redISub(i),e=o.redSub(s).redISub(c).redMul(a),t=l.redMul(r.redSub(c)),n=l.redMul(a))}else r=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),a=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(a);return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=a.redMul(o),u=s.redMul(c),h=a.redMul(c),f=o.redMul(s);return this.curve.point(l,u,f,h)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),h=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),n=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),n=this.curve._mulC(c).redMul(l)),this.curve.point(h,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,n){var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,n){var r=e("bn.js"),i=e("inherits"),a=e("./base"),o=e("../utils");function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=this,a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var o=a.length-1;o>=0;o--)0===a[o]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,n){var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function c(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,o),t.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,c,l,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,d=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),v=new i(1),y=0;0!==f.cmpn(0);){var A=d.div(f);l=d.sub(A.mul(f)),u=m.sub(A.mul(p));var b=v.sub(A.mul(g));if(!r&&l.cmp(h)<0)t=c.neg(),n=p,r=l.neg(),a=u;else if(r&&2==++y)break;c=l,d=f,f=l,m=p,p=u,v=g,g=b}o=l.neg(),s=u;var w=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),c=i.mul(n.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),h=r.redMul(l),f=c.redSqr().redIAdd(u).redISub(h).redISub(h),d=c.redMul(h.redISub(f)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,d,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=n.redMul(c),h=s.redSqr().redIAdd(l).redISub(u).redISub(u),f=s.redMul(u.redISub(h)).redISub(i.redMul(l)),d=this.z.redMul(o);return this.curve.jpoint(h,f,d)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),h=l.redSqr(),f=h.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),p=a.redMul(h),g=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),v=d.redMul(m);v=v.redIAdd(v).redISub(f);var y=l.redMul(s);t+1<e&&(c=c.redMul(f)),a=g,s=y,l=v}return this.curve.jpoint(a,l.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),h=this.y.redSqr(),f=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(u).redISub(f);d=d.redIAdd(d);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=f.redIAdd(f);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(m),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),h=this.y.redSqr(),f=this.x.redMul(h),d=this.x.redSub(u).redMul(this.x.redAdd(u));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f),g=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(g),n=this.y.redAdd(this.z).redSqr().redISub(h).redISub(u);var m=h.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=d.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),h=l.redISub(u),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=s.redMul(h).redISub(f),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,d,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var h=this.x.redMul(s).redISub(u);h=(h=h.redIAdd(h)).redIAdd(h);var f=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(h,f,d)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,n){var r,i=n,a=e("hash.js"),o=e("./curve"),s=e("./utils").assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch(e){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,n){var r=e("bn.js"),i=e("hmac-drbg"),a=e("../utils"),o=e("../curves"),s=e("brorand"),c=a.assert,l=e("./key"),u=e("./signature");function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=h,h.prototype.keyPair=function(e){return new l(this,e)},h.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},h.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),l=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new r(1)),f=0;;f++){var d=a.k?a.k(f):new r(l.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var v=d.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return a.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:m,s:v,recoveryParam:y})}}}}}},h.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new u(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),l=c.mul(e).umod(this.n),h=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),h)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,n.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},h.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,o=new r(e),s=t.r,l=t.s,h=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),h):this.curve.pointFromX(s,h);var d=t.r.invm(a),p=a.sub(o).mul(d).umod(a),g=l.mul(d).umod(a);return this.g.mulAdd(p,s,g)},h.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,n){var r=e("bn.js"),i=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,n){var r=e("bn.js"),i=e("../utils"),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;if(a+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var l=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var h=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new r(l),this.s=new r(h),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,n){var r=e("hash.js"),i=e("../curves"),a=e("../utils"),o=a.assert,s=a.parseBytes,c=e("./key"),l=e("./signature");function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=!!(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,n){var r=e("../utils"),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=s},{"../utils":419}],417:[function(e,t,n){var r=e("bn.js"),i=e("../utils"),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":419,"bn.js":420}],418:[function(e,t,n){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,t,n){var r=n,i=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");function s(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,c=a.andln(i-1);a.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r}function c(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,c=e.andln(3)+i&3,l=t.andln(3)+a&3;3===c&&(c=-1),3===l&&(l=-1),o=1&c?3!=(r=e.andln(7)+i&7)&&5!==r||2!==l?c:-c:0,n[0].push(o),s=1&l?3!=(r=t.andln(7)+a&7)&&5!==r||2!==c?l:-l:0,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n}function l(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function u(e){return"string"==typeof e?r.toArray(e,"hex"):e}function h(e){return new i(e,"hex","le")}r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=s,r.getJSF=c,r.cachedProperty=l,r.parseBytes=u,r.intFromLE=h},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],421:[function(e,t,n){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,n){var r=Object.create||_,i=Object.keys||I,a=Function.prototype.bind||E;function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),s=0===l.x}catch(e){s=!1}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,n){if(t)e.call(n);else for(var r=e.length,i=x(e,r),a=0;a<r;++a)i[a].call(n)}function f(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].call(n,r)}function d(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=x(e,a),s=0;s<a;++s)o[s].call(n,r,i)}function p(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=x(e,o),c=0;c<o;++c)s[c].call(n,r,i,a)}function g(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].apply(n,r)}function m(e,t,n,i){var a,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=r(null),e._eventsCount=0),s){if("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),!s.warned&&(a=u(e))&&a>0&&s.length>a){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,"object"==typeof console&&console.warn}}else s=o[t]=n,++e._eventsCount;return e}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(v,r);return i.listener=n,r.wrapFn=i,i}function A(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?C(i):x(i,i.length):[]}function b(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function w(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function x(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function C(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function _(e){var t=function(){};return t.prototype=e,new t}function I(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t);return t}function E(e){var t=this;return function(){return t.apply(e,arguments)}}s?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):o.defaultMaxListeners=c,o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){var t,n,r,i,a,o,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var c=new Error('Unhandled "error" event. ('+t+")");throw c.context=t,c}if(!(n=o[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:h(n,l,this);break;case 2:f(n,l,this,arguments[1]);break;case 3:d(n,l,this,arguments[1],arguments[2]);break;case 4:p(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),a=1;a<r;a++)i[a-1]=arguments[a];g(n,l,this,i)}return!0},o.prototype.addListener=function(e,t){return m(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return m(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,a,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():w(n,a),1===n.length&&(i[e]=n[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,a;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var o,s=i(n);for(a=0;a<s.length;++a)"removeListener"!==(o=s[a])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return A(this,e,!0)},o.prototype.rawListeners=function(e){return A(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("md5.js");function a(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(a||0),l=r.alloc(0);o>0||a>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var h=0;if(o>0){var f=s.length-o;h=Math.min(o,l.length),l.copy(s,f,0,h),o-=h}if(h<l.length&&a>0){var d=c.length-a,p=Math.min(a,l.length-h);l.copy(c,d,h,h+p),a-=p}}return l.fill(0),{key:s,iv:c}}t.exports=a},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=n.ParserOptions=n.parseFile=n.parseStream=n.parseString=n.parse=n.FormatterOptions=n.CsvFormatterStream=n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;var r=e("@fast-csv/format");Object.defineProperty(n,"format",{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(n,"write",{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(n,"writeToStream",{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(n,"writeToBuffer",{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(n,"writeToString",{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(n,"writeToPath",{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return r.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(n,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(n,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(n,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,n){var r=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function a(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(a(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var s=0,c=8*e.length;c>0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,n){var r=n;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,n){var r=e("./utils"),i=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}n.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,n){var r=e("./utils"),i=e("minimalistic-assert");function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,n){var r=e("./utils"),i=e("./common"),a=r.rotl32,o=r.sum32,s=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),n.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],y=n,A=r,b=i,w=l,x=u,C=0;C<80;C++){var _=o(a(c(n,h(C,r,i,l),e[p[C]+t],f(C)),m[C]),u);n=u,u=l,l=a(i,10),i=r,r=_,_=o(a(c(y,h(79-C,A,b,w),e[g[C]+t],d(C)),v[C]),x),y=x,x=w,w=a(b,10),b=A,A=_}_=s(this.h[1],i,w),this.h[1]=s(this.h[2],l,x),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],n,A),this.h[4]=s(this.h[0],r,b),this.h[0]=_},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,n){n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,n){var r=e("../utils"),i=e("../common"),a=e("./common"),o=r.rotl32,s=r.sum32,c=r.sum32_5,l=a.ft_1,u=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],f=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),g=c(o(i,5),l(p,a,u,f),d,n[r],h[p]);d=f,f=u,u=o(a,30),a=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],d)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,n){var r=e("../utils"),i=e("./256");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,n){var r=e("../utils"),i=e("../common"),a=e("./common"),o=e("minimalistic-assert"),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=a.ch32,h=a.maj32,f=a.s0_256,d=a.s1_256,p=a.g0_256,g=a.g1_256,m=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(g(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],m=this.h[2],v=this.h[3],y=this.h[4],A=this.h[5],b=this.h[6],w=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var x=l(w,d(y),u(y,A,b),this.k[r],n[r]),C=s(f(i),h(i,a,m));w=b,b=A,A=y,y=s(v,x),v=m,m=a,a=i,i=s(x,C)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],A),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,n){var r=e("../utils"),i=e("./512");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,n){var r=e("../utils"),i=e("../common"),a=e("minimalistic-assert"),o=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,h=r.sum64_hi,f=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,g=r.sum64_5_hi,m=r.sum64_5_lo,v=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function w(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function C(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function _(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function S(e,t){var n=o(e,t,1)^o(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function B(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=o(e,t,19)^o(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(A,v),t.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=M(n[r-4],n[r-3]),a=T(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=S(n[r-30],n[r-29]),l=B(n[r-30],n[r-29]),u=n[r-32],h=n[r-31];n[r]=d(i,a,o,s,c,l,u,h),n[r+1]=p(i,a,o,s,c,l,u,h)}},A.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],d=this.h[6],p=this.h[7],v=this.h[8],y=this.h[9],A=this.h[10],S=this.h[11],B=this.h[12],M=this.h[13],T=this.h[14],O=this.h[15];a(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var P=T,L=O,Q=E(v,y),R=k(v,y),j=b(v,y,A,S,B),N=w(v,y,A,S,B,M),F=this.k[D],z=this.k[D+1],H=n[D],U=n[D+1],G=g(P,L,Q,R,j,N,F,z,H,U),V=m(P,L,Q,R,j,N,F,z,H,U);P=_(r,i),L=I(r,i),Q=x(r,i,o,s,c),R=C(r,i,o,s,c,l);var W=h(P,L,Q,R),q=f(P,L,Q,R);T=B,O=M,B=A,M=S,A=v,S=y,v=h(d,p,G,V),y=f(p,p,G,V),d=c,p=l,c=o,l=s,o=r,s=i,r=h(G,V,W,q),i=f(G,V,W,q)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,c,l),u(this.h,6,d,p),u(this.h,8,v,y),u(this.h,10,A,S),u(this.h,12,B,M),u(this.h,14,T,O)},A.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,n){var r=e("../utils").rotr32;function i(e,t,n,r){return 0===e?a(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0}function a(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}function c(e){return r(e,2)^r(e,13)^r(e,22)}function l(e){return r(e,6)^r(e,11)^r(e,25)}function u(e){return r(e,7)^r(e,18)^e>>>3}function h(e){return r(e,17)^r(e,19)^e>>>10}n.ft_1=i,n.ch32=a,n.maj32=o,n.p32=s,n.s0_256=c,n.s1_256=l,n.g0_256=u,n.g1_256=h},{"../utils":437}],437:[function(e,t,n){var r=e("minimalistic-assert"),i=e("inherits");function a(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n}function s(e){for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16));return t}function c(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=c(i)),n+=h(i.toString(16))}return n}function u(e){return 1===e.length?"0"+e:e}function h(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function f(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,c=t;s<o.length;s++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=l>>>0}return o}function d(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n}function p(e,t){return e>>>t|e<<32-t}function g(e,t){return e<<t|e>>>32-t}function m(e,t){return e+t>>>0}function v(e,t,n){return e+t+n>>>0}function y(e,t,n,r){return e+t+n+r>>>0}function A(e,t,n,r,i){return e+t+n+r+i>>>0}function b(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a}function w(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0}function x(e,t,n,r){return t+r>>>0}function C(e,t,n,r,i,a,o,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0}function _(e,t,n,r,i,a,o,s){return t+r+a+s>>>0}function I(e,t,n,r,i,a,o,s,c,l){var u=0,h=t;return u+=(h=h+r>>>0)<t?1:0,u+=(h=h+a>>>0)<a?1:0,u+=(h=h+s>>>0)<s?1:0,e+n+i+o+c+(u+=(h=h+l>>>0)<l?1:0)>>>0}function E(e,t,n,r,i,a,o,s,c,l){return t+r+a+s+l>>>0}function k(e,t,n){return(t<<32-n|e>>>n)>>>0}function S(e,t,n){return(e<<32-n|t>>>n)>>>0}function B(e,t,n){return e>>>n}function M(e,t,n){return(e<<32-n|t>>>n)>>>0}n.inherits=i,n.toArray=o,n.toHex=s,n.htonl=c,n.toHex32=l,n.zero2=u,n.zero8=h,n.join32=f,n.split32=d,n.rotr32=p,n.rotl32=g,n.sum32=m,n.sum32_3=v,n.sum32_4=y,n.sum32_5=A,n.sum64=b,n.sum64_hi=w,n.sum64_lo=x,n.sum64_4_hi=C,n.sum64_4_lo=_,n.sum64_5_hi=I,n.sum64_5_lo=E,n.rotr64_hi=k,n.rotr64_lo=S,n.shr64_hi=B,n.shr64_lo=M},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,n){var r=e("hash.js"),i=e("minimalistic-crypto-utils"),a=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}t.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,n){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=f,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=l}return(d?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*c-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+d]=255&o,d+=p,o/=256,l-=8);e[n+d-p]|=128*g}},{}],440:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],441:[function(e,t,n){(function(r,i,a,o,s,c,l,u){(function(){
/*!
            
              	JSZip v3.10.1 - A JavaScript class for generating and reading zip files
              	<http://stuartk.com/jszip>
            
              	(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
              	Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
            
              	JSZip uses the library pako released under the MIT license :
              	https://github.com/nodeca/pako/blob/main/LICENSE
              	*/
!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l="function"==typeof e&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[s]={exports:{}};n[s][0].call(h.exports,(function(e){return a(n[s][1][e]||e)}),h,h.exports,t,n,r,i)}return r[s].exports}for(var o="function"==typeof e&&e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],h=0,f=e.length,d=f,p="string"!==r.getTypeOf(e);h<e.length;)d=f-h,i=p?(t=e[h++],n=h<f?e[h++]:0,h<f?e[h++]:0):(t=e.charCodeAt(h++),n=h<f?e.charCodeAt(h++):0,h<f?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<d?(15&n)<<2|i>>6:64,l=2<d?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var f,d=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&d--,e.charAt(e.length-2)===a.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|d):new Array(0|d);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,64!==s&&(f[u++]=n),64!==c&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function c(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var h,f,d=e.file,p=e.compression,g=u!==s.utf8encode,m=a.transformTo("string",u(d.name)),v=a.transformTo("string",s.utf8encode(d.name)),y=d.comment,A=a.transformTo("string",u(y)),b=a.transformTo("string",s.utf8encode(y)),w=v.length!==d.name.length,x=b.length!==y.length,C="",_="",I="",E=d.dir,k=d.date,S={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(S.crc32=e.crc32,S.compressedSize=e.compressedSize,S.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),g||!w&&!x||(B|=2048);var M,T,O=0,D=0;E&&(O|=16),"UNIX"===o?(D=798,O|=(T=M=d.unixPermissions,M||(T=E?16893:33204),(65535&T)<<16)):(D=20,O|=function(e){return 63&(e||0)}(d.dosPermissions)),h=k.getUTCHours(),h<<=6,h|=k.getUTCMinutes(),h<<=5,h|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),w&&(_=r(1,1)+r(c(m),4)+v,C+="up"+r(_.length,2)+_),x&&(I=r(1,1)+r(c(A),4)+b,C+="uc"+r(I.length,2)+I);var P="";return P+="\n\0",P+=r(B,2),P+=p.magic,P+=r(h,2),P+=r(f,2),P+=r(S.crc32,4),P+=r(S.compressedSize,4),P+=r(S.uncompressedSize,4),P+=r(m.length,2),P+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+P+m+C,dirRecord:l.CENTRAL_FILE_HEADER+r(D,2)+P+r(A.length,2)+"\0\0\0\0"+r(O,4)+r(i,4)+m+C+A}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),l=e("../signature");function u(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,a=i(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(a.dirRecord),n)this.push({data:(t=e,l.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:a.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,i,o,s,c,u,h=this.bytesWritten-e,f=(n=this.dirRecords.length,i=h,o=e,s=this.zipComment,c=this.encodeFileName,u=a.transformTo("string",c(s)),l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(i,4)+r(o,4)+r(u.length,2)+u);this.push({data:f,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:void 0!==a,newBufferFrom:function(e,t){if(a.from&&a.from!==Uint8Array.from)return a.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new a(e,t)},allocBuffer:function(e){if(a.alloc)return a.alloc(e);var t=new a(e);return t.fill(0),t},isBuffer:function(e){return a.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(t instanceof l&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new d(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),h=e("./generate"),f=e("./nodejsUtils"),d=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:c.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new o("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),c=e("../support"),l=e("../external"),u=null;if(c.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t){return new l.Promise((function(n,i){var o=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return a.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,o),u);n(e)}catch(e){i(e)}o=[]})).resume()}))}function f(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return h(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==a,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,c=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function h(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=h;var d={};d.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},d.array={string:h,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},d.arraybuffer={string:function(e){return h(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:h,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},d.nodebuffer={string:h,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return d[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){u((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u,h=n.getTypeOf(t);return h?("arraybuffer"===h?t=n.transformTo("uint8array",t):"string"===h&&(l?t=i.decode(t):a&&!0!==s&&(t=c(u=t,r.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),c=e("./compressions"),l=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<l.length;h++)r.prototype[l[h]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p((function(){t(i,r)}));"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))}),(function(e){r||(r=!0,a.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o,s=-1,c=new this(i);++s<n;)o=e[s],t.resolve(o).then((function(e){r||(r=!0,a.resolve(c,e))}),(function(e){r||(r=!0,a.reject(c,e))}));return c}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,h=0,f=8;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}d.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&n!==l)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=d,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(e,t){var n,s,c,l,h,f,d=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?d.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(f="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&n!==o.Z_STREAM_END&&(0!==d.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(d.output,d.next_out),l=d.next_out-c,h=a.buf2string(d.output,c),d.next_out=l,d.avail_out=p-l,l&&i.arraySet(d.output,d.output,c,l,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(m=!0)}while((0<d.avail_in||0===d.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(d.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),c=e("./messages"),l=0,u=4,h=0,f=-2,d=-1,p=4,g=2,m=8,v=9,y=286,A=30,b=19,w=2*y+1,x=15,C=3,_=258,I=_+C+1,E=42,k=113,S=1,B=2,M=3,T=4;function O(e,t){return e.msg=c[t],t}function D(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function L(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Q(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,L(e.strm)}function R(e,t){e.pending_buf[e.pending++]=t}function j(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function N(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-I?e.strstart-(e.w_size-I):0,l=e.window,u=e.w_mask,h=e.prev,f=e.strstart+_,d=l[a+o-1],p=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===p&&l[n+o-1]===d&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=_-(f-a),a=f-_,o<r){if(e.match_start=t,s<=(o=r))break;d=l[a+o-1],p=l[a+o]}}}while((t=h[t&u])>c&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,n,r,a,c,l,u,h,f,d,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-I)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,h=e.strstart+e.lookahead,d=void 0,(f=a)<(d=l.avail_in)&&(d=f),n=0===d?0:(l.avail_in-=d,i.arraySet(u,l.input,l.next_in,d,h),1===l.state.wrap?l.adler=o(l.adler,u,d,h):2===l.state.wrap&&(l.adler=s(l.adler,u,d,h)),l.next_in+=d,l.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+C-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<I&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<I){if(F(e),e.lookahead<I&&t===l)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-I&&(e.match_length=N(e,n)),e.match_length>=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}function H(e,t){for(var n,r,i;;){if(e.lookahead<I){if(F(e),e.lookahead<I&&t===l)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-I&&(e.match_length=N(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(Q(e,!1),0===e.strm.avail_out))return S}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&Q(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return S}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}function U(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*A+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:k,e.adler=2===t.wrap?0:1,t.last_flush=l,a._tr_init(t),h):O(e,f)}function W(e){var t,n=V(e);return n===h&&((t=e.state).window_size=2*t.w_size,P(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=C-1,t.match_available=0,t.ins_h=0),n}function q(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===d&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||v<a||n!==m||r<8||15<r||t<0||9<t||o<0||p<o)return O(e,f);8===r&&(r=9);var c=new G;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+C-1)/C),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,W(e)}r=[new U(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===l)return S;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Q(e,!1),0===e.strm.avail_out))return S;if(e.strstart-e.block_start>=e.w_size-I&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):(e.strstart>e.block_start&&(Q(e,!1),e.strm.avail_out),S)})),new U(4,4,8,4,z),new U(4,5,16,8,z),new U(4,6,32,32,z),new U(4,4,16,16,H),new U(8,16,32,32,H),new U(8,16,128,128,H),new U(8,32,128,256,H),new U(32,128,258,1024,H),new U(32,258,258,4096,H)],n.deflateInit=function(e,t){return q(e,t,m,15,8,0)},n.deflateInit2=q,n.deflateReset=W,n.deflateResetKeep=V,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,h):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?O(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return O(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E)if(2===i.wrap)e.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,255&i.gzhead.time),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,255&i.gzhead.extra.length),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),R(i,3),i.status=k);else{var d=m+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=k,j(i,d),0!==i.strstart&&(j(i,e.adler>>>16),j(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),L(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&L(e),i.pending+2<=i.pending_buf_size&&(R(i,255&e.adler),R(i,e.adler>>8&255),e.adler=0,i.status=k)):i.status=k),0!==i.pending){if(L(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==l&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===l)return S;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=_){if(F(e),e.lookahead<=_&&t===l)return S;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+_;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=_-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Q(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===u?(Q(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(Q(e,!1),0===e.strm.avail_out)?S:B}(i,t):r[i.level].func(i,t);if(p!==M&&p!==T||(i.status=666),p===S||p===M)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===B&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),L(e),0===e.avail_out))return i.last_flush=-1,h}return t!==u?h:i.wrap<=0?1:(2===i.wrap?(R(i,255&e.adler),R(i,e.adler>>8&255),R(i,e.adler>>16&255),R(i,e.adler>>24&255),R(i,255&e.total_in),R(i,e.total_in>>8&255),R(i,e.total_in>>16&255),R(i,e.total_in>>24&255)):(j(i,e.adler>>>16),j(i,65535&e.adler)),L(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?O(e,f):(e.state=null,t===k?O(e,-3):h):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,d,p=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==E||n.lookahead)return f;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=C-1,F(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,a,o,s,c,l,u,h,f,d,p,g,m,v,y,A,b,w,x,C,_,I,E;n=e.state,r=e.next_in,I=e.input,i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(d+=I[r++]<<p,p+=8,d+=I[r++]<<p,p+=8),A=g[d&v];t:for(;;){if(d>>>=b=A>>>24,p-=b,0==(b=A>>>16&255))E[a++]=65535&A;else{if(!(16&b)){if(!(64&b)){A=g[(65535&A)+(d&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&A,(b&=15)&&(p<b&&(d+=I[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=I[r++]<<p,p+=8,d+=I[r++]<<p,p+=8),A=m[d&y];n:for(;;){if(d>>>=b=A>>>24,p-=b,!(16&(b=A>>>16&255))){if(!(64&b)){A=m[(65535&A)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&A,p<(b&=15)&&(d+=I[r++]<<p,(p+=8)<b&&(d+=I[r++]<<p,p+=8)),c<(x+=d&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=b,p-=b,(b=a-o)<x){if(u<(b=x-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=f,(C=0)===h){if(C+=l-b,b<w){for(w-=b;E[a++]=f[C++],--b;);C=a-x,_=E}}else if(h<b){if(C+=l+h-b,(b-=h)<w){for(w-=b;E[a++]=f[C++],--b;);if(C=0,h<w){for(w-=b=h;E[a++]=f[C++],--b;);C=a-x,_=E}}}else if(C+=h-b,b<w){for(w-=b;E[a++]=f[C++],--b;);C=a-x,_=E}for(;2<w;)E[a++]=_[C++],E[a++]=_[C++],E[a++]=_[C++],w-=3;w&&(E[a++]=_[C++],1<w&&(E[a++]=_[C++]))}else{for(C=a-x;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(w-=3););w&&(E[a++]=E[C++],1<w&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=d,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=1,l=2,u=0,h=-2,f=1,d=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(d),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,u):h}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):h}function A(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):h}function b(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=A(e,t))!==u&&(e.state=null),n):h}var w,x,C=!0;function _(e){if(C){var t;for(w=new r.Buf32(512),x=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,x,0,e.work,{bits:5}),C=!1}e.lencode=w,e.lenbits=9,e.distcode=x,e.distbits=5}function I(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=y,n.inflateReset2=A,n.inflateResetKeep=v,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,d,p,m,v,y,A,b,w,x,C,E,k,S,B,M,T,O,D,P,L,Q,R,j,N=0,F=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,A=e.avail_out,m=e.next_in,d=e.input,y=e.avail_in,b=n.hold,w=n.bits,x=y,C=A,Q=u;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(2&n.wrap&&35615===b){F[n.check=0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(w-=4,L=8+(15&(b>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<L,e.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,F[2]=b>>>16&255,F[3]=b>>>24&255,n.check=a(n.check,F,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(F[0]=255&b,F[1]=b>>>8&255,n.check=a(n.check,F,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(E=n.length)&&(E=y),E&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,m,E,L)),512&n.flags&&(n.check=a(n.check,d,E,m)),y-=E,m+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(E=0;L=d[m+E++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L)),L&&E<y;);if(512&n.flags&&(n.check=a(n.check,d,E,m)),y-=E,m+=E,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;for(E=0;L=d[m+E++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L)),L&&E<y;);if(512&n.flags&&(n.check=a(n.check,d,E,m)),y-=E,m+=E,L)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}e.adler=n.check=g(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=A,e.next_in=m,e.avail_in=y,n.hold=b,n.bits=w,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(_(n),n.mode=20,6!==t)break;b>>>=2,w-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(y<E&&(E=y),A<E&&(E=A),0===E)break e;r.arraySet(p,d,m,E,v),y-=E,m+=E,A-=E,v+=E,n.length-=E;break}n.mode=12;break;case 17:for(;w<14;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.lens[z[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},Q=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,Q){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;M=(N=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,T=65535&N,!((B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(T<16)b>>>=B,w-=B,n.lens[n.have++]=T;else{if(16===T){for(j=B+2;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(b>>>=B,w-=B,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}L=n.lens[n.have-1],E=3+(3&b),b>>>=2,w-=2}else if(17===T){for(j=B+3;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}w-=B,L=0,E=3+(7&(b>>>=B)),b>>>=3,w-=3}else{for(j=B+7;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}w-=B,L=0,E=11+(127&(b>>>=B)),b>>>=7,w-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;E--;)n.lens[n.have++]=L}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},Q=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,Q){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},Q=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,Q){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=A){e.next_out=v,e.avail_out=A,e.next_in=m,e.avail_in=y,n.hold=b,n.bits=w,o(e,C),v=e.next_out,p=e.output,A=e.avail_out,m=e.next_in,d=e.input,y=e.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;M=(N=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,T=65535&N,!((B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(M&&!(240&M)){for(O=B,D=M,P=T;M=(N=n.lencode[P+((b&(1<<O+D)-1)>>O)])>>>16&255,T=65535&N,!(O+(B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}b>>>=O,w-=O,n.back+=O}if(b>>>=B,w-=B,n.back+=B,n.length=T,0===M){n.mode=26;break}if(32&M){n.back=-1,n.mode=12;break}if(64&M){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&M,n.mode=22;case 22:if(n.extra){for(j=n.extra;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;M=(N=n.distcode[b&(1<<n.distbits)-1])>>>16&255,T=65535&N,!((B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(!(240&M)){for(O=B,D=M,P=T;M=(N=n.distcode[P+((b&(1<<O+D)-1)>>O)])>>>16&255,T=65535&N,!(O+(B=N>>>24)<=w);){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}b>>>=O,w-=O,n.back+=O}if(b>>>=B,w-=B,n.back+=B,64&M){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&M,n.mode=24;case 24:if(n.extra){for(j=n.extra;w<j;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===A)break e;if(E=C-A,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}k=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),S=n.window}else S=p,k=v-n.offset,E=n.length;for(A<E&&(E=A),A-=E,n.length-=E;p[v++]=S[k++],--E;);0===n.length&&(n.mode=21);break;case 26:if(0===A)break e;p[v++]=n.length,A--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===y)break e;y--,b|=d[m++]<<w,w+=8}if(C-=A,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?a(n.check,p,C,v-C):i(n.check,p,C,v-C)),C=A,(n.flags?b:g(b))!==n.check){e.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===y)break e;y--,b+=d[m++]<<w,w+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:Q=1;break e;case 30:Q=-3;break e;case 31:return-4;default:return h}return e.next_out=v,e.avail_out=A,e.next_in=m,e.avail_in=y,n.hold=b,n.bits=w,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&I(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,C-=e.avail_out,e.total_in+=x,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?a(n.check,p,C,e.next_out-C):i(n.check,p,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===C||4===t)&&Q===u&&(Q=-5),Q)},n.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):h},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,t,r,0)!==n.check?-3:I(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,h,f){var d,p,g,m,v,y,A,b,w,x=f.bits,C=0,_=0,I=0,E=0,k=0,S=0,B=0,M=0,T=0,O=0,D=null,P=0,L=new r.Buf16(16),Q=new r.Buf16(16),R=null,j=0;for(C=0;C<=15;C++)L[C]=0;for(_=0;_<c;_++)L[t[n+_]]++;for(k=x,E=15;1<=E&&0===L[E];E--);if(E<k&&(k=E),0===E)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(I=1;I<E&&0===L[I];I++);for(k<I&&(k=I),C=M=1;C<=15;C++)if(M<<=1,(M-=L[C])<0)return-1;if(0<M&&(0===e||1!==E))return-1;for(Q[1]=0,C=1;C<15;C++)Q[C+1]=Q[C]+L[C];for(_=0;_<c;_++)0!==t[n+_]&&(h[Q[t[n+_]]++]=_);if(y=0===e?(D=R=h,19):1===e?(D=i,P-=257,R=a,j-=257,256):(D=o,R=s,-1),C=I,v=u,B=_=O=0,g=-1,m=(T=1<<(S=k))-1,1===e&&852<T||2===e&&592<T)return 1;for(;;){for(A=C-B,w=h[_]<y?(b=0,h[_]):h[_]>y?(b=R[j+h[_]],D[P+h[_]]):(b=96,0),d=1<<C-B,I=p=1<<S;l[v+(O>>B)+(p-=d)]=A<<24|b<<16|w,0!==p;);for(d=1<<C-1;O&d;)d>>=1;if(0!==d?(O&=d-1,O+=d):O=0,_++,0==--L[C]){if(C===E)break;C=t[n+h[_]]}if(k<C&&(O&m)!==g){for(0===B&&(B=k),v+=I,M=1<<(S=C-B);S+B<E&&!((M-=L[S+B])<=0);)S++,M<<=1;if(T+=1<<S,1===e&&852<T||2===e&&592<T)return 1;l[g=O&m]=k<<24|S<<16|v-u}}return 0!==O&&(l[v+O]=C-B<<24|64<<16),f.bits=k,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,h=30,f=19,d=2*u+1,p=15,g=16,m=7,v=256,y=16,A=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(u+2));o(I);var E=new Array(2*h);o(E);var k=new Array(512);o(k);var S=new Array(256);o(S);var B=new Array(c);o(B);var M,T,O,D=new Array(h);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Q(e){return e<256?k[e]:k[256+(e>>>7)]}function R(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,R(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function N(e,t,n){j(e,n[2*t],n[2*t+1])}function F(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(e,t,n){var r,i,a=new Array(p+1),o=0;for(r=1;r<=p;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function H(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function U(e){8<e.bi_valid?R(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function V(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&G(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!G(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function W(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?N(e,i,t):(N(e,(a=S[i])+l+1,t),0!==(o=w[a])&&j(e,i-=B[a],o),N(e,a=Q(--r),n),0!==(o=x[a])&&j(e,r-=D[a],o)),s<e.last_lit;);N(e,v,t)}function q(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=d,n=0;n<c;n++)0!==a[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)V(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,V(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<d;n++)m<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=m,v++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,g<=r&&(o=f[r-g]),s=c[2*r],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==v){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),z(a,l,e.bl_count)}function Y(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*A]++:e.bl_tree[2*b]++,a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function K(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;N(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(N(e,i,e.bl_tree),s--),N(e,y,e.bl_tree),j(e,s-3,2)):s<=10?(N(e,A,e.bl_tree),j(e,s-3,3)):(N(e,b,e.bl_tree),j(e,s-11,7));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(D);var $=!1;function J(e,t,n,i){var a,o,c,l;j(e,(s<<1)+(i?1:0),3),o=t,c=n,l=!0,U(a=e),l&&(R(a,c),R(a,~c)),r.arraySet(a.pending_buf,a.window,o,c,a.pending),a.pending+=c}n._tr_init=function(e){$||(function(){var e,t,n,r,i,a=new Array(p+1);for(r=n=0;r<c-1;r++)for(B[r]=n,e=0;e<1<<w[r];e++)S[n++]=r;for(S[n-1]=r,r=i=0;r<16;r++)for(D[r]=i,e=0;e<1<<x[r];e++)k[i++]=r;for(i>>=7;r<h;r++)for(D[r]=i<<7,e=0;e<1<<x[r]-7;e++)k[256+i++]=r;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)I[2*e+1]=8,e++,a[8]++;for(;e<=255;)I[2*e+1]=9,e++,a[9]++;for(;e<=279;)I[2*e+1]=7,e++,a[7]++;for(;e<=287;)I[2*e+1]=8,e++,a[8]++;for(z(I,u+1,a),e=0;e<h;e++)E[2*e+1]=5,E[2*e]=F(e,5);M=new P(I,w,l+1,u,p),T=new P(E,x,0,h,p),O=new P(new Array(0),C,0,f,m)}(),$=!0),e.l_desc=new L(e.dyn_ltree,M),e.d_desc=new L(e.dyn_dtree,T),e.bl_desc=new L(e.bl_tree,O),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=J,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),q(e,e.l_desc),q(e,e.d_desc),c=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),q(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==t?J(e,t,n,r):4===e.strategy||s===o?(j(e,2+(r?1:0),3),W(e,I,E)):(j(e,4+(r?1:0),3),function(e,t,n,r){var i;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),i=0;i<r;i++)j(e,e.bl_tree[2*_[i]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),W(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&U(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(S[n]+l+1)]++,e.dyn_dtree[2*Q(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;j(e,2,3),N(e,v,I),16===(t=e).bi_valid?(R(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){if(!e.setImmediate){var n,i,a,o,s=1,c={},l=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,n="[object process]"==={}.toString.call(e.process)?function(e){r.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(d,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return c[s]=i,n(s),s++},h.clearImmediate=f}function f(e){delete c[e]}function d(e){if(l)setTimeout(d,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,t,n){(function(e){(function(){var n=1/0,r="[object Symbol]",i=/[\\^$.*+?()[\]{}|]/g,a=RegExp(i.source),o="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,c=o||s||Function("return this")(),l=Object.prototype.toString,u=c.Symbol,h=u?u.prototype:void 0,f=h?h.toString:void 0;function d(e){if("string"==typeof e)return e;if(g(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}function p(e){return!!e&&"object"==typeof e}function g(e){return"symbol"==typeof e||p(e)&&l.call(e)==r}function m(e){return null==e?"":d(e)}function v(e){return(e=m(e))&&a.test(e)?e.replace(i,"\\$&"):e}t.exports=v}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,t,n){(function(e){(function(){var r=200,i="Expected a function",a="__lodash_hash_undefined__",o=1,s=2,c=1/0,l=9007199254740991,u="[object Arguments]",h="[object Array]",f="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Function]",m="[object GeneratorFunction]",v="[object Map]",y="[object Number]",A="[object Object]",b="[object Promise]",w="[object RegExp]",x="[object Set]",C="[object String]",_="[object Symbol]",I="[object WeakMap]",E="[object ArrayBuffer]",k="[object DataView]",S="[object Float64Array]",B="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",O="[object Uint8Array]",D="[object Uint8ClampedArray]",P="[object Uint16Array]",L="[object Uint32Array]",Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,j=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F=/[\\^$.*+?()[\]{}|]/g,z=/\\(\\)?/g,H=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,G={};G["[object Float32Array]"]=G[S]=G[B]=G[M]=G[T]=G[O]=G[D]=G[P]=G[L]=!0,G[u]=G[h]=G[E]=G[f]=G[k]=G[d]=G[p]=G[g]=G[v]=G[y]=G[A]=G[w]=G[x]=G[C]=G[I]=!1;var V="object"==typeof e&&e&&e.Object===Object&&e,W="object"==typeof self&&self&&self.Object===Object&&self,q=V||W||Function("return this")(),Y="object"==typeof n&&n&&!n.nodeType&&n,K=Y&&"object"==typeof t&&t&&!t.nodeType&&t,$=K&&K.exports===Y&&V.process,J=function(){try{return $&&$.binding("util")}catch(e){}}(),X=J&&J.isTypedArray;function Z(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function ee(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function te(e){return function(t){return null==t?void 0:t[e]}}function ne(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function re(e){return function(t){return e(t)}}function ie(e,t){return null==e?void 0:e[t]}function ae(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function se(e,t){return function(n){return e(t(n))}}function ce(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var le,ue=Array.prototype,he=Function.prototype,fe=Object.prototype,de=q["__core-js_shared__"],pe=(le=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"",ge=he.toString,me=fe.hasOwnProperty,ve=fe.toString,ye=RegExp("^"+ge.call(me).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=q.Symbol,be=q.Uint8Array,we=fe.propertyIsEnumerable,xe=ue.splice,Ce=se(Object.keys,Object),_e=Ft(q,"DataView"),Ie=Ft(q,"Map"),Ee=Ft(q,"Promise"),ke=Ft(q,"Set"),Se=Ft(q,"WeakMap"),Be=Ft(Object,"create"),Me=Xt(_e),Te=Xt(Ie),Oe=Xt(Ee),De=Xt(ke),Pe=Xt(Se),Le=Ae?Ae.prototype:void 0,Qe=Le?Le.valueOf:void 0,Re=Le?Le.toString:void 0;function je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(){this.__data__=Be?Be(null):{}}function Fe(e){return this.has(e)&&delete this.__data__[e]}function ze(e){var t=this.__data__;if(Be){var n=t[e];return n===a?void 0:n}return me.call(t,e)?t[e]:void 0}function He(e){var t=this.__data__;return Be?void 0!==t[e]:me.call(t,e)}function Ue(e,t){return this.__data__[e]=Be&&void 0===t?a:t,this}function Ge(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ve(){this.__data__=[]}function We(e){var t=this.__data__,n=ft(t,e);return!(n<0||(n==t.length-1?t.pop():xe.call(t,n,1),0))}function qe(e){var t=this.__data__,n=ft(t,e);return n<0?void 0:t[n][1]}function Ye(e){return ft(this.__data__,e)>-1}function Ke(e,t){var n=this.__data__,r=ft(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function $e(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Je(){this.__data__={hash:new je,map:new(Ie||Ge),string:new je}}function Xe(e){return jt(this,e).delete(e)}function Ze(e){return jt(this,e).get(e)}function et(e){return jt(this,e).has(e)}function tt(e,t){return jt(this,e).set(e,t),this}function nt(e){var t=-1,n=e?e.length:0;for(this.__data__=new $e;++t<n;)this.add(e[t])}function rt(e){return this.__data__.set(e,a),this}function it(e){return this.__data__.has(e)}function at(e){this.__data__=new Ge(e)}function ot(){this.__data__=new Ge}function st(e){return this.__data__.delete(e)}function ct(e){return this.__data__.get(e)}function lt(e){return this.__data__.has(e)}function ut(e,t){var n=this.__data__;if(n instanceof Ge){var i=n.__data__;if(!Ie||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new $e(i)}return n.set(e,t),this}function ht(e,t){var n=rn(e)||nn(e)?ne(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!me.call(e,a)||i&&("length"==a||Ut(a,r))||n.push(a);return n}function ft(e,t){for(var n=e.length;n--;)if(tn(e[n][0],t))return n;return-1}function dt(e,t,n,r){return pt(e,(function(e,i,a){t(r,e,n(e),a)})),r}je.prototype.clear=Ne,je.prototype.delete=Fe,je.prototype.get=ze,je.prototype.has=He,je.prototype.set=Ue,Ge.prototype.clear=Ve,Ge.prototype.delete=We,Ge.prototype.get=qe,Ge.prototype.has=Ye,Ge.prototype.set=Ke,$e.prototype.clear=Je,$e.prototype.delete=Xe,$e.prototype.get=Ze,$e.prototype.has=et,$e.prototype.set=tt,nt.prototype.add=nt.prototype.push=rt,nt.prototype.has=it,at.prototype.clear=ot,at.prototype.delete=st,at.prototype.get=ct,at.prototype.has=lt,at.prototype.set=ut;var pt=Dt(mt),gt=Pt();function mt(e,t){return e&&gt(e,t,mn)}function vt(e,t){for(var n=0,r=(t=Gt(t,e)?[t]:Tt(t)).length;null!=e&&n<r;)e=e[Jt(t[n++])];return n&&n==r?e:void 0}function yt(e){return ve.call(e)}function At(e,t){return null!=e&&t in Object(e)}function bt(e,t,n,r,i){return e===t||(null==e||null==t||!ln(e)&&!un(t)?e!=e&&t!=t:wt(e,t,bt,n,r,i))}function wt(e,t,n,r,i,a){var o=rn(e),c=rn(t),l=h,f=h;o||(l=(l=zt(e))==u?A:l),c||(f=(f=zt(t))==u?A:f);var d=l==A&&!ae(e),p=f==A&&!ae(t),g=l==f;if(g&&!d)return a||(a=new at),o||fn(e)?Lt(e,t,n,r,i,a):Qt(e,t,l,n,r,i,a);if(!(i&s)){var m=d&&me.call(e,"__wrapped__"),v=p&&me.call(t,"__wrapped__");if(m||v){var y=m?e.value():e,b=v?t.value():t;return a||(a=new at),n(y,b,r,i,a)}}return!!g&&(a||(a=new at),Rt(e,t,n,r,i,a))}function xt(e,t,n,r){var i=n.length,a=i,c=!r;if(null==e)return!a;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=n[i])[0],h=e[u],f=l[1];if(c&&l[2]){if(void 0===h&&!(u in e))return!1}else{var d=new at;if(r)var p=r(h,f,u,e,t,d);if(!(void 0===p?bt(f,h,r,o|s,d):p))return!1}}return!0}function Ct(e){return!(!ln(e)||Wt(e))&&(sn(e)||ae(e)?ye:H).test(Xt(e))}function _t(e){return un(e)&&cn(e.length)&&!!G[ve.call(e)]}function It(e){return"function"==typeof e?e:null==e?vn:"object"==typeof e?rn(e)?St(e[0],e[1]):kt(e):yn(e)}function Et(e){if(!qt(e))return Ce(e);var t=[];for(var n in Object(e))me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kt(e){var t=Nt(e);return 1==t.length&&t[0][2]?Kt(t[0][0],t[0][1]):function(n){return n===e||xt(n,e,t)}}function St(e,t){return Gt(e)&&Yt(t)?Kt(Jt(e),t):function(n){var r=pn(n,e);return void 0===r&&r===t?gn(n,e):bt(t,r,void 0,o|s)}}function Bt(e){return function(t){return vt(t,e)}}function Mt(e){if("string"==typeof e)return e;if(hn(e))return Re?Re.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Tt(e){return rn(e)?e:$t(e)}function Ot(e,t){return function(n,r){var i=rn(n)?Z:dt,a=t?t():{};return i(n,e,It(r),a)}}function Dt(e,t){return function(n,r){if(null==n)return n;if(!an(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Pt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}function Lt(e,t,n,r,i,a){var c=i&s,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var h=a.get(e);if(h&&a.get(t))return h==t;var f=-1,d=!0,p=i&o?new nt:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=c?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!ee(t,(function(e,t){if(!p.has(t)&&(g===e||n(g,e,r,i,a)))return p.add(t)}))){d=!1;break}}else if(g!==m&&!n(g,m,r,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Qt(e,t,n,r,i,a,c){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new be(e),new be(t)));case f:case d:case y:return tn(+e,+t);case p:return e.name==t.name&&e.message==t.message;case w:case C:return e==t+"";case v:var l=oe;case x:var u=a&s;if(l||(l=ce),e.size!=t.size&&!u)return!1;var h=c.get(e);if(h)return h==t;a|=o,c.set(e,t);var g=Lt(l(e),l(t),r,i,a,c);return c.delete(e),g;case _:if(Qe)return Qe.call(e)==Qe.call(t)}return!1}function Rt(e,t,n,r,i,a){var o=i&s,c=mn(e),l=c.length;if(l!=mn(t).length&&!o)return!1;for(var u=l;u--;){var h=c[u];if(!(o?h in t:me.call(t,h)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);for(var p=o;++u<l;){var g=e[h=c[u]],m=t[h];if(r)var v=o?r(m,g,h,t,e,a):r(g,m,h,e,t,a);if(!(void 0===v?g===m||n(g,m,r,i,a):v)){d=!1;break}p||(p="constructor"==h)}if(d&&!p){var y=e.constructor,A=t.constructor;y==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof A&&A instanceof A||(d=!1)}return a.delete(e),a.delete(t),d}function jt(e,t){var n=e.__data__;return Vt(t)?n["string"==typeof t?"string":"hash"]:n.map}function Nt(e){for(var t=mn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Yt(i)]}return t}function Ft(e,t){var n=ie(e,t);return Ct(n)?n:void 0}var zt=yt;function Ht(e,t,n){for(var r,i=-1,a=(t=Gt(t,e)?[t]:Tt(t)).length;++i<a;){var o=Jt(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||!!(a=e?e.length:0)&&cn(a)&&Ut(o,a)&&(rn(e)||nn(e))}function Ut(e,t){return!!(t=null==t?l:t)&&("number"==typeof e||U.test(e))&&e>-1&&e%1==0&&e<t}function Gt(e,t){if(rn(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hn(e))||R.test(e)||!Q.test(e)||null!=t&&e in Object(t)}function Vt(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Wt(e){return!!pe&&pe in e}function qt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fe)}function Yt(e){return e==e&&!ln(e)}function Kt(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(_e&&zt(new _e(new ArrayBuffer(1)))!=k||Ie&&zt(new Ie)!=v||Ee&&zt(Ee.resolve())!=b||ke&&zt(new ke)!=x||Se&&zt(new Se)!=I)&&(zt=function(e){var t=ve.call(e),n=t==A?e.constructor:void 0,r=n?Xt(n):void 0;if(r)switch(r){case Me:return k;case Te:return v;case Oe:return b;case De:return x;case Pe:return I}return t});var $t=en((function(e){e=dn(e);var t=[];return j.test(e)&&t.push(""),e.replace(N,(function(e,n,r,i){t.push(r?i.replace(z,"$1"):n||e)})),t}));function Jt(e){if("string"==typeof e||hn(e))return e;var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Xt(e){if(null!=e){try{return ge.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Zt=Ot((function(e,t,n){me.call(e,n)?e[n].push(t):e[n]=[t]}));function en(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(en.Cache||$e),n}function tn(e,t){return e===t||e!=e&&t!=t}function nn(e){return on(e)&&me.call(e,"callee")&&(!we.call(e,"callee")||ve.call(e)==u)}en.Cache=$e;var rn=Array.isArray;function an(e){return null!=e&&cn(e.length)&&!sn(e)}function on(e){return un(e)&&an(e)}function sn(e){var t=ln(e)?ve.call(e):"";return t==g||t==m}function cn(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function ln(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function un(e){return!!e&&"object"==typeof e}function hn(e){return"symbol"==typeof e||un(e)&&ve.call(e)==_}var fn=X?re(X):_t;function dn(e){return null==e?"":Mt(e)}function pn(e,t,n){var r=null==e?void 0:vt(e,t);return void 0===r?n:r}function gn(e,t){return null!=e&&Ht(e,t,At)}function mn(e){return an(e)?ht(e):Et(e)}function vn(e){return e}function yn(e){return Gt(e)?te(Jt(e)):Bt(e)}t.exports=Zt}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,n){var r="[object Boolean]",i=Object.prototype.toString;function a(e){return!0===e||!1===e||o(e)&&i.call(e)==r}function o(e){return!!e&&"object"==typeof e}t.exports=a},{}],445:[function(e,t,n){(function(e){(function(){var r=200,i="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",v="[object Number]",y="[object Null]",A="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",C="[object Set]",_="[object String]",I="[object Symbol]",E="[object Undefined]",k="[object WeakMap]",S="[object ArrayBuffer]",B="[object DataView]",M="[object Float64Array]",T="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",P="[object Uint8Array]",L="[object Uint8ClampedArray]",Q="[object Uint16Array]",R="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,z={};z["[object Float32Array]"]=z[M]=z[T]=z[O]=z[D]=z[P]=z[L]=z[Q]=z[R]=!0,z[c]=z[l]=z[S]=z[h]=z[B]=z[f]=z[d]=z[p]=z[m]=z[v]=z[A]=z[x]=z[C]=z[_]=z[k]=!1;var H="object"==typeof e&&e&&e.Object===Object&&e,U="object"==typeof self&&self&&self.Object===Object&&self,G=H||U||Function("return this")(),V="object"==typeof n&&n&&!n.nodeType&&n,W=V&&"object"==typeof t&&t&&!t.nodeType&&t,q=W&&W.exports===V,Y=q&&H.process,K=function(){try{return Y&&Y.binding&&Y.binding("util")}catch(e){}}(),$=K&&K.isTypedArray;function J(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function X(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Z(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ee(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function te(e){return function(t){return e(t)}}function ne(e,t){return e.has(t)}function re(e,t){return null==e?void 0:e[t]}function ie(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ae(e,t){return function(n){return e(t(n))}}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var se,ce=Array.prototype,le=Function.prototype,ue=Object.prototype,he=G["__core-js_shared__"],fe=le.toString,de=ue.hasOwnProperty,pe=(se=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"",ge=ue.toString,me=RegExp("^"+fe.call(de).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=q?G.Buffer:void 0,ye=G.Symbol,Ae=G.Uint8Array,be=ue.propertyIsEnumerable,we=ce.splice,xe=ye?ye.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,_e=ve?ve.isBuffer:void 0,Ie=ae(Object.keys,Object),Ee=kt(G,"DataView"),ke=kt(G,"Map"),Se=kt(G,"Promise"),Be=kt(G,"Set"),Me=kt(G,"WeakMap"),Te=kt(Object,"create"),Oe=Qt(Ee),De=Qt(ke),Pe=Qt(Se),Le=Qt(Be),Qe=Qt(Me),Re=ye?ye.prototype:void 0,je=Re?Re.valueOf:void 0;function Ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fe(){this.__data__=Te?Te(null):{},this.size=0}function ze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function He(e){var t=this.__data__;if(Te){var n=t[e];return n===i?void 0:n}return de.call(t,e)?t[e]:void 0}function Ue(e){var t=this.__data__;return Te?void 0!==t[e]:de.call(t,e)}function Ge(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Te&&void 0===t?i:t,this}function Ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__=[],this.size=0}function qe(e){var t=this.__data__,n=dt(t,e);return!(n<0||(n==t.length-1?t.pop():we.call(t,n,1),--this.size,0))}function Ye(e){var t=this.__data__,n=dt(t,e);return n<0?void 0:t[n][1]}function Ke(e){return dt(this.__data__,e)>-1}function $e(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Je(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xe(){this.size=0,this.__data__={hash:new Ne,map:new(ke||Ve),string:new Ne}}function Ze(e){var t=Et(this,e).delete(e);return this.size-=t?1:0,t}function et(e){return Et(this,e).get(e)}function tt(e){return Et(this,e).has(e)}function nt(e,t){var n=Et(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function rt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}function it(e){return this.__data__.set(e,i),this}function at(e){return this.__data__.has(e)}function ot(e){var t=this.__data__=new Ve(e);this.size=t.size}function st(){this.__data__=new Ve,this.size=0}function ct(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function lt(e){return this.__data__.get(e)}function ut(e){return this.__data__.has(e)}function ht(e,t){var n=this.__data__;if(n instanceof Ve){var i=n.__data__;if(!ke||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(i)}return n.set(e,t),this.size=n.size,this}function ft(e,t){var n=Nt(e),r=!n&&jt(e),i=!n&&!r&&zt(e),a=!n&&!r&&!i&&qt(e),o=n||r||i||a,s=o?ee(e.length,String):[],c=s.length;for(var l in e)!t&&!de.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Tt(l,c))||s.push(l);return s}function dt(e,t){for(var n=e.length;n--;)if(Rt(e[n][0],t))return n;return-1}function pt(e,t,n){var r=t(e);return Nt(e)?r:X(r,n(e))}function gt(e){return null==e?void 0===e?E:y:xe&&xe in Object(e)?St(e):Lt(e)}function mt(e){return Wt(e)&&gt(e)==c}function vt(e,t,n,r,i){return e===t||(null==e||null==t||!Wt(e)&&!Wt(t)?e!=e&&t!=t:yt(e,t,n,r,vt,i))}function yt(e,t,n,r,i,o){var s=Nt(e),u=Nt(t),h=s?l:Mt(e),f=u?l:Mt(t),d=(h=h==c?A:h)==A,p=(f=f==c?A:f)==A,g=h==f;if(g&&zt(e)){if(!zt(t))return!1;s=!0,d=!1}if(g&&!d)return o||(o=new ot),s||qt(e)?xt(e,t,n,r,i,o):Ct(e,t,h,n,r,i,o);if(!(n&a)){var m=d&&de.call(e,"__wrapped__"),v=p&&de.call(t,"__wrapped__");if(m||v){var y=m?e.value():e,b=v?t.value():t;return o||(o=new ot),i(y,b,n,r,o)}}return!!g&&(o||(o=new ot),_t(e,t,n,r,i,o))}function At(e){return!(!Vt(e)||Dt(e))&&(Ut(e)?me:N).test(Qt(e))}function bt(e){return Wt(e)&&Gt(e.length)&&!!z[gt(e)]}function wt(e){if(!Pt(e))return Ie(e);var t=[];for(var n in Object(e))de.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xt(e,t,n,r,i,s){var c=n&a,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var f=-1,d=!0,p=n&o?new rt:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=c?r(m,g,f,t,e,s):r(g,m,f,e,t,s);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!Z(t,(function(e,t){if(!ne(p,t)&&(g===e||i(g,e,n,r,s)))return p.push(t)}))){d=!1;break}}else if(g!==m&&!i(g,m,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Ct(e,t,n,r,i,s,c){switch(n){case B:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!s(new Ae(e),new Ae(t)));case h:case f:case v:return Rt(+e,+t);case d:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case m:var l=ie;case C:var u=r&a;if(l||(l=oe),e.size!=t.size&&!u)return!1;var p=c.get(e);if(p)return p==t;r|=o,c.set(e,t);var g=xt(l(e),l(t),r,i,s,c);return c.delete(e),g;case I:if(je)return je.call(e)==je.call(t)}return!1}function _t(e,t,n,r,i,o){var s=n&a,c=It(e),l=c.length;if(l!=It(t).length&&!s)return!1;for(var u=l;u--;){var h=c[u];if(!(s?h in t:de.call(t,h)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var d=!0;o.set(e,t),o.set(t,e);for(var p=s;++u<l;){var g=e[h=c[u]],m=t[h];if(r)var v=s?r(m,g,h,t,e,o):r(g,m,h,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){d=!1;break}p||(p="constructor"==h)}if(d&&!p){var y=e.constructor,A=t.constructor;y==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof A&&A instanceof A||(d=!1)}return o.delete(e),o.delete(t),d}function It(e){return pt(e,Yt,Bt)}function Et(e,t){var n=e.__data__;return Ot(t)?n["string"==typeof t?"string":"hash"]:n.map}function kt(e,t){var n=re(e,t);return At(n)?n:void 0}function St(e){var t=de.call(e,xe),n=e[xe];try{e[xe]=void 0;var r=!0}catch(e){}var i=ge.call(e);return r&&(t?e[xe]=n:delete e[xe]),i}Ne.prototype.clear=Fe,Ne.prototype.delete=ze,Ne.prototype.get=He,Ne.prototype.has=Ue,Ne.prototype.set=Ge,Ve.prototype.clear=We,Ve.prototype.delete=qe,Ve.prototype.get=Ye,Ve.prototype.has=Ke,Ve.prototype.set=$e,Je.prototype.clear=Xe,Je.prototype.delete=Ze,Je.prototype.get=et,Je.prototype.has=tt,Je.prototype.set=nt,rt.prototype.add=rt.prototype.push=it,rt.prototype.has=at,ot.prototype.clear=st,ot.prototype.delete=ct,ot.prototype.get=lt,ot.prototype.has=ut,ot.prototype.set=ht;var Bt=Ce?function(e){return null==e?[]:(e=Object(e),J(Ce(e),(function(t){return be.call(e,t)})))}:Kt,Mt=gt;function Tt(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Ot(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Dt(e){return!!pe&&pe in e}function Pt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ue)}function Lt(e){return ge.call(e)}function Qt(e){if(null!=e){try{return fe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Rt(e,t){return e===t||e!=e&&t!=t}(Ee&&Mt(new Ee(new ArrayBuffer(1)))!=B||ke&&Mt(new ke)!=m||Se&&Mt(Se.resolve())!=b||Be&&Mt(new Be)!=C||Me&&Mt(new Me)!=k)&&(Mt=function(e){var t=gt(e),n=t==A?e.constructor:void 0,r=n?Qt(n):"";if(r)switch(r){case Oe:return B;case De:return m;case Pe:return b;case Le:return C;case Qe:return k}return t});var jt=mt(function(){return arguments}())?mt:function(e){return Wt(e)&&de.call(e,"callee")&&!be.call(e,"callee")},Nt=Array.isArray;function Ft(e){return null!=e&&Gt(e.length)&&!Ut(e)}var zt=_e||$t;function Ht(e,t){return vt(e,t)}function Ut(e){if(!Vt(e))return!1;var t=gt(e);return t==p||t==g||t==u||t==w}function Gt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Wt(e){return null!=e&&"object"==typeof e}var qt=$?te($):bt;function Yt(e){return Ft(e)?ft(e):wt(e)}function Kt(){return[]}function $t(){return!1}t.exports=Ht}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,t,n){(function(e){(function(){var n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Null]",o="[object Proxy]",s="[object Undefined]",c="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),h=Object.prototype,f=h.hasOwnProperty,d=h.toString,p=u.Symbol,g=p?p.toStringTag:void 0;function m(e){return null==e?void 0===e?s:a:g&&g in Object(e)?v(e):y(e)}function v(e){var t=f.call(e,g),n=e[g];try{e[g]=void 0;var r=!0}catch(e){}var i=d.call(e);return r&&(t?e[g]=n:delete e[g]),i}function y(e){return d.call(e)}function A(e){if(!b(e))return!1;var t=m(e);return t==r||t==i||t==n||t==o}function b(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.exports=A}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,n){function r(e){return null==e}t.exports=r},{}],448:[function(e,t,n){function r(e){return void 0===e}t.exports=r},{}],449:[function(e,t,n){(function(e){(function(){var n=200,r="__lodash_hash_undefined__",i=1/0,a="[object Function]",o="[object GeneratorFunction]",s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,h=l||u||Function("return this")();function f(e,t){return!(!e||!e.length)&&g(e,t,0)>-1}function d(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function p(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function g(e,t,n){if(t!=t)return p(e,m,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function m(e){return e!=e}function v(e,t){return e.has(t)}function y(e,t){return null==e?void 0:e[t]}function A(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function b(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var w,x=Array.prototype,C=Function.prototype,_=Object.prototype,I=h["__core-js_shared__"],E=(w=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",k=C.toString,S=_.hasOwnProperty,B=_.toString,M=RegExp("^"+k.call(S).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=x.splice,O=se(h,"Map"),D=se(h,"Set"),P=se(Object,"create");function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(){this.__data__=P?P(null):{}}function R(e){return this.has(e)&&delete this.__data__[e]}function j(e){var t=this.__data__;if(P){var n=t[e];return n===r?void 0:n}return S.call(t,e)?t[e]:void 0}function N(e){var t=this.__data__;return P?void 0!==t[e]:S.call(t,e)}function F(e,t){return this.__data__[e]=P&&void 0===t?r:t,this}function z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function H(){this.__data__=[]}function U(e){var t=this.__data__,n=ne(t,e);return!(n<0||(n==t.length-1?t.pop():T.call(t,n,1),0))}function G(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]}function V(e){return ne(this.__data__,e)>-1}function W(e,t){var n=this.__data__,r=ne(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function q(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(){this.__data__={hash:new L,map:new(O||z),string:new L}}function K(e){return oe(this,e).delete(e)}function $(e){return oe(this,e).get(e)}function J(e){return oe(this,e).has(e)}function X(e,t){return oe(this,e).set(e,t),this}function Z(e){var t=-1,n=e?e.length:0;for(this.__data__=new q;++t<n;)this.add(e[t])}function ee(e){return this.__data__.set(e,r),this}function te(e){return this.__data__.has(e)}function ne(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function re(e){return!(!pe(e)||le(e))&&(de(e)||A(e)?M:c).test(ue(e))}function ie(e,t,r){var i=-1,a=f,o=e.length,s=!0,c=[],l=c;if(r)s=!1,a=d;else if(o>=n){var u=t?null:ae(e);if(u)return b(u);s=!1,a=v,l=new Z}else l=t?[]:c;e:for(;++i<o;){var h=e[i],p=t?t(h):h;if(h=r||0!==h?h:0,s&&p==p){for(var g=l.length;g--;)if(l[g]===p)continue e;t&&l.push(p),c.push(h)}else a(l,p,r)||(l!==c&&l.push(p),c.push(h))}return c}L.prototype.clear=Q,L.prototype.delete=R,L.prototype.get=j,L.prototype.has=N,L.prototype.set=F,z.prototype.clear=H,z.prototype.delete=U,z.prototype.get=G,z.prototype.has=V,z.prototype.set=W,q.prototype.clear=Y,q.prototype.delete=K,q.prototype.get=$,q.prototype.has=J,q.prototype.set=X,Z.prototype.add=Z.prototype.push=ee,Z.prototype.has=te;var ae=D&&1/b(new D([,-0]))[1]==i?function(e){return new D(e)}:ge;function oe(e,t){var n=e.__data__;return ce(t)?n["string"==typeof t?"string":"hash"]:n.map}function se(e,t){var n=y(e,t);return re(n)?n:void 0}function ce(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function le(e){return!!E&&E in e}function ue(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function he(e){return e&&e.length?ie(e):[]}function fe(e,t){return e===t||e!=e&&t!=t}function de(e){var t=pe(e)?B.call(e):"";return t==a||t==o}function pe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ge(){}t.exports=he}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,n){var r=e("inherits"),i=e("hash-base"),a=e("safe-buffer").Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,a,o){return c(e+(t&n|~t&r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return c(e+(t&r|n&~r)+i+a|0,o)+t|0}function h(e,t,n,r,i,a,o){return c(e+(t^n^r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return c(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=l(n,r,i,a,e[0],3614090360,7),a=l(a,n,r,i,e[1],3905402710,12),i=l(i,a,n,r,e[2],606105819,17),r=l(r,i,a,n,e[3],3250441966,22),n=l(n,r,i,a,e[4],4118548399,7),a=l(a,n,r,i,e[5],1200080426,12),i=l(i,a,n,r,e[6],2821735955,17),r=l(r,i,a,n,e[7],4249261313,22),n=l(n,r,i,a,e[8],1770035416,7),a=l(a,n,r,i,e[9],2336552879,12),i=l(i,a,n,r,e[10],4294925233,17),r=l(r,i,a,n,e[11],2304563134,22),n=l(n,r,i,a,e[12],1804603682,7),a=l(a,n,r,i,e[13],4254626195,12),i=l(i,a,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=h(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=h(a,n,r,i,e[8],2272392833,11),i=h(i,a,n,r,e[11],1839030562,16),r=h(r,i,a,n,e[14],4259657740,23),n=h(n,r,i,a,e[1],2763975236,4),a=h(a,n,r,i,e[4],1272893353,11),i=h(i,a,n,r,e[7],4139469664,16),r=h(r,i,a,n,e[10],3200236656,23),n=h(n,r,i,a,e[13],681279174,4),a=h(a,n,r,i,e[0],3936430074,11),i=h(i,a,n,r,e[3],3572445317,16),r=h(r,i,a,n,e[6],76029189,23),n=h(n,r,i,a,e[9],3654602809,4),a=h(a,n,r,i,e[12],3873151461,11),i=h(i,a,n,r,e[15],530742520,16),n=f(n,r=h(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,n,r,i,e[7],1126891415,10),i=f(i,a,n,r,e[14],2878612391,15),r=f(r,i,a,n,e[5],4237533241,21),n=f(n,r,i,a,e[12],1700485571,6),a=f(a,n,r,i,e[3],2399980690,10),i=f(i,a,n,r,e[10],4293915773,15),r=f(r,i,a,n,e[1],2240044497,21),n=f(n,r,i,a,e[8],1873313359,6),a=f(a,n,r,i,e[15],4264355552,10),i=f(i,a,n,r,e[6],2734768916,15),r=f(r,i,a,n,e[13],1309151649,21),n=f(n,r,i,a,e[4],4149444226,6),a=f(a,n,r,i,e[11],3174756917,10),i=f(i,a,n,r,e[2],718787259,15),r=f(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,n){var r=e("bn.js"),i=e("brorand");function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(a),h=!0;t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var d=f.toRed(a).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var p=1;p<c;p++){if(0===(d=d.redSqr()).cmp(o))return!1;if(0===d.cmp(u))break}if(p===c)return!1}}return h},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),h=e.gcd(u);if(0!==h.cmpn(1))return h;var f=u.toRed(i).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(l)){for(var d=1;d<s;d++){if(0===(f=f.redSqr()).cmp(a))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(l))break}if(d===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],453:[function(e,t,n){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,n){var r=n;function i(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n}function a(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t}r.toArray=i,r.zero2=a,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},{}],455:[function(e,t,n){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,n){var r=e("asn1.js");n.certificate=e("./certificate");var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));n.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));n.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));n.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));n.PrivateKey=c;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));n.EncryptedPrivateKey=l;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));n.DSAPrivateKey=u,n.DSAparam=r.define("DSAparam",(function(){this.int()}));var h=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));n.ECPrivateKey=h;var f=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));n.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(e,t,n){var r=e("asn1.js"),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),h=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(h),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=p},{"asn1.js":170}],458:[function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),s=e("browserify-aes"),c=e("safe-buffer").Buffer;t.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var h="aes"+u[1],f=c.from(u[2],"hex"),d=c.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(t,f.slice(0,8),parseInt(u[1],10)).key,g=[],m=s.createDecipheriv(h,p,f);g.push(m.update(d)),g.push(m.final()),n=c.concat(g)}else{var v=l.match(a);n=c.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,n){var r=e("./asn1"),i=e("./aesid.json"),a=e("./fixProc"),o=e("browserify-aes"),s=e("pbkdf2"),c=e("safe-buffer").Buffer;function l(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,i,o=a(e,t),s=o.tag,l=o.data;switch(s){case"CERTIFICATE":i=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=r.PublicKey.decode(l,"der")),n=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=r.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":l=u(l=r.EncryptedPrivateKey.decode(l,"der"),t);case"PRIVATE KEY":switch(n=(i=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:r.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=r.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+s)}}function u(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,h=parseInt(a.split("-")[1],10)/8,f=s.pbkdf2Sync(t,n,r,h,"sha1"),d=o.createDecipheriv(a,f,l),p=[];return p.push(d.update(u)),p.push(d.final()),c.concat(p)}t.exports=l,l.signature=r.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,n){n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,n){(function(n){(function(){var r,i,a=e("safe-buffer").Buffer,o=e("./precondition"),s=e("./default-encoding"),c=e("./sync"),l=e("./to-buffer"),u=n.crypto&&n.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function d(e){if(n.process&&!n.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=g(r=r||a.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}function p(){return i||(i=n.process&&n.process.nextTick?n.process.nextTick:n.queueMicrotask?n.queueMicrotask:n.setImmediate?n.setImmediate:n.setTimeout)}function g(e,t,n,r,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return a.from(e)}))}function m(e,t){e.then((function(e){p()((function(){t(null,e)}))}),(function(e){p()((function(){t(e)}))}))}t.exports=function(e,t,r,i,a,u){"function"==typeof a&&(u=a,a=void 0);var f=h[(a=a||"sha1").toLowerCase()];if(f&&"function"==typeof n.Promise){if(o(r,i),e=l(e,s,"Password"),t=l(t,s,"Salt"),"function"!=typeof u)throw new Error("No callback provided to pbkdf2");m(d(f).then((function(n){return n?g(e,t,r,i,f):c(e,t,r,i,a)})),u)}else p()((function(){var n;try{n=c(e,t,r,i,a)}catch(e){return u(e)}u(null,n)}))}}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,n){(function(e,n){(function(){var r;r=n.process&&n.process.browser?"utf-8":n.process&&n.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=r}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,n){var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,n){var r=e("create-hash/md5"),i=e("ripemd160"),a=e("sha.js"),o=e("safe-buffer").Buffer,s=e("./precondition"),c=e("./default-encoding"),l=e("./to-buffer"),u=o.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,n){var r=d(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length<i&&(t=o.concat([t,u],i));for(var a=o.allocUnsafe(i+h[e]),s=o.allocUnsafe(i+h[e]),c=0;c<i;c++)a[c]=54^t[c],s[c]=92^t[c];var l=o.allocUnsafe(i+n+4);a.copy(l,0,0,i),this.ipad1=l,this.ipad2=a,this.opad=s,this.alg=e,this.blocksize=i,this.hash=r,this.size=h[e]}function d(e){function t(t){return a(e).update(t).digest()}function n(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?n:"md5"===e?r:t}function p(e,t,n,r,i){s(n,r);var a=new f(i=i||"sha1",e=l(e,c,"Password"),(t=l(t,c,"Salt")).length),u=o.allocUnsafe(r),d=o.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var p=0,g=h[i],m=Math.ceil(r/g),v=1;v<=m;v++){d.writeUInt32BE(v,t.length);for(var y=a.run(d,a.ipad1),A=y,b=1;b<n;b++){A=a.run(A,a.ipad2);for(var w=0;w<g;w++)y[w]^=A[w]}y.copy(u,p),p+=g}return u}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=p},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,n){var r=e("safe-buffer").Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,n){(function(e){(function(){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function l(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,h=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?h=u.concat(h):d=-1,h.length&&g())}function g(){if(!f){var e=c(p);f=!0;for(var t=h.length;t;){for(u=h,h=[];++d<t;)u&&u[d].run();d=-1,t=h.length}u=null,f=!1,l(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new m(e,t)),1!==h.length||f||c(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],468:[function(e,t,n){n.publicEncrypt=e("./publicEncrypt"),n.privateDecrypt=e("./privateDecrypt"),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,n){var r=e("create-hash"),i=e("safe-buffer").Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],471:[function(e,t,n){var r=e("parse-asn1"),i=e("./mgf"),a=e("./xor"),o=e("bn.js"),s=e("browserify-rsa"),c=e("create-hash"),l=e("./withPublic"),u=e("safe-buffer").Buffer;function h(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),l=t.slice(o+1),h=a(s,i(l,o)),f=a(l,i(h,n-o-1));if(d(r,f.slice(0,o)))throw new Error("decryption error");for(var p=o;0===f[p];)p++;if(1!==f[p++])throw new Error("decryption error");return f.slice(p)}function f(e,t,n){for(var r=t.slice(0,2),i=2,a=0;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(i)}function d(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}t.exports=function(e,t,n){var i;i=e.padding?e.padding:n?1:4;var a,c=r(e),d=c.modulus.byteLength();if(t.length>d||new o(t).cmp(c.modulus)>=0)throw new Error("decryption error");a=n?l(new o(t),c):s(t,c);var p=u.alloc(d-a.length);if(a=u.concat([p,a],d),4===i)return h(c,a);if(1===i)return f(c,a,n);if(3===i)return a;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,n){var r=e("parse-asn1"),i=e("randombytes"),a=e("create-hash"),o=e("./mgf"),s=e("./xor"),c=e("bn.js"),l=e("./withPublic"),u=e("browserify-rsa"),h=e("safe-buffer").Buffer;function f(e,t){var n=e.modulus.byteLength(),r=t.length,l=a("sha1").update(h.alloc(0)).digest(),u=l.length,f=2*u;if(r>n-f-2)throw new Error("message too long");var d=h.alloc(n-r-f-2),p=n-u-1,g=i(u),m=s(h.concat([l,d,h.alloc(1,1),t],p),o(g,p)),v=s(g,o(m,u));return new c(h.concat([h.alloc(1),v,m],n))}function d(e,t,n){var r,i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");return r=n?h.alloc(a-i-3,255):p(a-i-3),new c(h.concat([h.from([0,n?1:2]),r,h.alloc(1),t],a))}function p(e){for(var t,n=h.allocUnsafe(e),r=0,a=i(2*e),o=0;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}t.exports=function(e,t,n){var i;i=e.padding?e.padding:n?1:4;var a,o=r(e);if(4===i)a=f(o,t);else if(1===i)a=d(o,t,n);else{if(3!==i)throw new Error("unknown padding");if((a=new c(t)).cmp(o.modulus)>=0)throw new Error("data too long for modulus")}return n?u(a,o):l(a,o)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,n){var r=e("bn.js"),i=e("safe-buffer").Buffer;function a(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}t.exports=a},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,n){t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},{}],475:[function(e,t,n){(function(n,r){(function(){var i=65536,a=4294967295;function o(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=e("safe-buffer").Buffer,c=r.crypto||r.msCrypto;function l(e,t){if(e>a)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(e);if(e>0)if(e>i)for(var o=0;o<e;o+=i)c.getRandomValues(r.slice(o,o+i));else c.getRandomValues(r);return"function"==typeof t?n.nextTick((function(){t(null,r)})):r}c&&c.getRandomValues?t.exports=l:t.exports=o}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,n){(function(t,r){(function(){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=e("safe-buffer"),o=e("randombytes"),s=a.Buffer,c=a.kMaxLength,l=r.crypto||r.msCrypto,u=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function d(e,t,n,i){if(!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(t,e.length),f(n,t,e.length),p(e,t,n,i)}function p(e,n,r,i){if(t.browser){var a=e.buffer,s=new Uint8Array(a,n,r);return l.getRandomValues(s),i?void t.nextTick((function(){i(null,e)})):e}if(!i)return o(r).copy(e,n),e;o(r,(function(t,r){if(t)return i(t);r.copy(e,n),i(null,e)}))}function g(e,t,n){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(t,e.length),void 0===n&&(n=e.length-t),f(n,t,e.length),p(e,t,n)}l&&l.getRandomValues||!t.browser?(n.randomFill=d,n.randomFillSync=g):(n.randomFill=i,n.randomFillSync=i)}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i={};function a(e,t,n){function a(e,n,r){return"string"==typeof t?t:t(e,n,r)}n||(n=Error);var o=function(e){function t(t,n,r){return e.call(this,a(t,n,r))||this}return r(t,e),t}(n);o.prototype.name=n.name,o.prototype.code=e,i[e]=o}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function s(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function c(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function l(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i;if("string"==typeof t&&s(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",c(e," argument"))i="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var a=l(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(r," ").concat(o(t,"type"))}return i+". Received type ".concat(typeof n)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},{}],478:[function(e,t,n){(function(n){(function(){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=l;var i=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(l,i);for(var o=r(a.prototype),s=0;s<o.length;s++){var c=o[s];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,n){t.exports=i;var r=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}e("inherits")(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,n){(function(n,r){(function(){var i;t.exports=S,S.ReadableState=k,e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),s=e("buffer").Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function l(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof c}var h,f=e("util");h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,m=e("./internal/streams/buffer_list"),v=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,A=e("../errors").codes,b=A.ERR_INVALID_ARG_TYPE,w=A.ERR_STREAM_PUSH_AFTER_EOF,x=A.ERR_METHOD_NOT_IMPLEMENTED,C=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(S,o);var _=v.errorOrDestroy,I=["error","close","destroy","pause","resume"];function E(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function k(t,n,r){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=e("string_decoder/").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function S(t){if(i=i||e("./_stream_duplex"),!(this instanceof S))return new S(t);var n=this instanceof i;this._readableState=new k(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function B(e,t,n,r,i){h("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,L(e,o);else if(i||(a=T(o,t)),a)_(e,a);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=l(t)),r)o.endEmitted?_(e,new C):M(e,o,t,!0);else if(o.ended)_(e,new w);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?M(e,o,t,!1):j(e,o)):M(e,o,t,!1)}else r||(o.reading=!1,j(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function M(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Q(e)),j(e,t)}function T(e,t){var n;return u(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=v.destroy,S.prototype._undestroy=v.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),B(this,e,t,!1,n)},S.prototype.unshift=function(e){return B(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){d||(d=e("string_decoder/").StringDecoder);var n=new d(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function D(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e,t){if(h("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?Q(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}}function Q(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(R,e))}function R(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(h("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function F(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,V(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){h("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(G,e,t))}function G(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function q(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(Y,t,e))}function Y(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function K(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?q(this):Q(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&q(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),null===(r=e>0?W(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&q(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new x("_read()"))},S.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===n.stdout||e===n.stderr?v:c;function s(e,t){h("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){h("onend"),e.end()}i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);var l=F(r);e.on("drain",l);var u=!1;function f(){h("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",d),u=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function d(t){h("ondata");var n=e.write(t);h("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==K(i.pipes,e))&&!u&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){h("onerror",t),v(),e.removeListener("error",p),0===a(e,"error")&&_(e,t)}function g(){e.removeListener("finish",m),v()}function m(){h("onfinish"),e.removeListener("close",g),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",d),E(e,"error",p),e.once("close",g),e.once("finish",m),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=K(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?Q(this):i.reading||n.nextTick(H,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(z,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(z,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},S.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<I.length;a++)e.on(I[a],this.emit.bind(this,I[a]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=e("./internal/streams/async_iterator")),p(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=W,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,n){return void 0===g&&(g=e("./internal/streams/from")),g(S,t,n)})}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,n){t.exports=u;var r=e("../errors").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=e("./_stream_duplex");function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,n){(function(n,r){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}var a;t.exports=k,k.WritableState=E;var o={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),c=e("buffer").Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function u(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof l}var f,d=e("./internal/streams/destroy"),p=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,A=g.ERR_STREAM_CANNOT_PIPE,b=g.ERR_STREAM_DESTROYED,w=g.ERR_STREAM_NULL_VALUES,x=g.ERR_STREAM_WRITE_AFTER_END,C=g.ERR_UNKNOWN_ENCODING,_=d.errorOrDestroy;function I(){}function E(t,n,r){a=a||e("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof a),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=p(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){L(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function k(t){var n=this instanceof(a=a||e("./_stream_duplex"));if(!n&&!f.call(k,this))return new k(t);this._writableState=new E(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function S(e,t){var r=new x;_(e,r),n.nextTick(t,r)}function B(e,t,r,i){var a;return null===r?a=new w:"string"==typeof r||t.objectMode||(a=new m("chunk",["string","Buffer"],r)),!a||(_(e,a),n.nextTick(i,a),!1)}function M(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n)),t}function T(e,t,n,r,i,a){if(!n){var o=M(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,s,r,i,a);return c}function O(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(H,e,t),e._writableState.errorEmitted=!0,_(e,i)):(a(i),e._writableState.errorEmitted=!0,_(e,i),H(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function L(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if("function"!=typeof a)throw new y;if(P(r),t)D(e,r,i,t,a);else{var o=N(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),i?n.nextTick(Q,e,r,o,a):Q(e,r,o,a)}}function Q(e,t,n,r){n||R(e,t),t.pendingcb--,r(),H(e,t)}function R(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function j(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,O(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(O(e,t,!1,t.objectMode?1:l.length,l,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function F(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),H(e,t)}))}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(F,e,t)))}function H(e,t){var n=N(t);if(n&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function U(e,t,r){t.ending=!0,H(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function G(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}e("inherits")(k,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===k&&e&&e._writableState instanceof E}})):f=function(e){return e instanceof this},k.prototype.pipe=function(){_(this,new A)},k.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&h(e);return a&&!c.isBuffer(e)&&(e=u(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=I),r.ending?S(this,n):(a||B(this,r,e,n))&&(r.pendingcb++,i=T(this,r,a,e,t,n)),i},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new C(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,n){n(new v("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||U(this,r,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,n){(function(n){(function(){var r;function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=o(e,"string");return"symbol"==typeof t?t:String(t)}function o(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var s=e("./end-of-stream"),c=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function g(e,t){return{value:e,done:t}}function m(e){var t=e[c];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[c]=null,e[l]=null,t(g(n,!1)))}}function v(e){n.nextTick(m,e)}function y(e,t){return function(n,r){e.then((function(){t[h]?n(g(void 0,!0)):t[d](n,r)}),r)}}var A=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((i(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[h])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise((function(t,r){n.nextTick((function(){e[u]?r(e[u]):t(g(void 0,!0))}))}));var r,i=this[f];if(i)r=new Promise(y(i,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(g(a,!1));r=new Promise(this[d])}return this[f]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(g(void 0,!0))}))}))})),r),A),w=function(e){var t,n=Object.create(b,(i(t={},p,{value:e,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,h,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[c]=null,n[l]=null,e(g(r,!1))):(n[c]=e,n[l]=t)},writable:!0}),t));return n[f]=null,s(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[l];return null!==t&&(n[f]=null,n[c]=null,n[l]=null,t(e)),void(n[u]=e)}var r=n[c];null!==r&&(n[f]=null,n[c]=null,n[l]=null,r(g(void 0,!0))),n[h]=!0})),e.on("readable",v.bind(null,n)),n};t.exports=w}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=u(e,"string");return"symbol"==typeof t?t:String(t)}function u(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h=e("buffer").Buffer,f=e("util").inspect,d=f&&f.custom||"inspect";function p(e,t,n){h.prototype.copy.call(e,t,n)}t.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return c(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);for(var t=h.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:d,value:function(e,t){return f(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},{buffer:220,util:188}],485:[function(e,t,n){(function(e){(function(){function n(t,n){var a=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(i,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):n?(e.nextTick(i,a),n(t)):e.nextTick(i,a)})),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,n){var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function a(){}function o(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,n){if("function"==typeof t)return s(e,null,t);t||(t={}),n=i(n||a);var c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||f()},h=e._writableState&&e._writableState.finished,f=function(){l=!1,h=!0,c||n.call(e)},d=e._readableState&&e._readableState.endEmitted,p=function(){c=!1,d=!0,l||n.call(e)},g=function(t){n.call(e,t)},m=function(){var t;return c&&!d?(e._readableState&&e._readableState.ended||(t=new r),n.call(e,t)):l&&!h?(e._writableState&&e._writableState.ended||(t=new r),n.call(e,t)):void 0},v=function(){e.req.on("finish",f)};return o(e)?(e.on("complete",f),e.on("abort",m),e.req?v():e.on("request",v)):l&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",f),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",f),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}t.exports=s},{"../../../errors":477}],487:[function(e,t,n){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,n){var r;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var a=e("../../../errors").codes,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function c(e){if(e)throw e}function l(e){return e.setHeader&&"function"==typeof e.abort}function u(t,n,a,o){o=i(o);var c=!1;t.on("close",(function(){c=!0})),void 0===r&&(r=e("./end-of-stream")),r(t,{readable:n,writable:a},(function(e){if(e)return o(e);c=!0,o()}));var u=!1;return function(e){if(!c&&!u)return u=!0,l(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}function h(e){e()}function f(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?c:e.pop():c}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=d(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,n){var o=n<t.length-1;return u(e,o,n>0,(function(e){r||(r=e),e&&a.forEach(h),o||(a.forEach(h),i(r))}))}));return t.reduce(f)}t.exports=p},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,n){var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function i(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function a(e,t,n,a){var o=i(t,a,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(a?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}t.exports={getHighWaterMark:a}},{"../../../errors":477}],490:[function(e,t,n){t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,n){var r=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,o=Object.create(a.prototype),s=new M(r||[]);return i(o,"_invoke",{value:E(e,n,s)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function A(){}var b={};l(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==n&&r.call(x,o)&&(b=x);var C=A.prototype=v.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(i,a,o,s){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var a;function o(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}i(this,"_invoke",{value:o})}function E(e,t,n){var r=f;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=h(e,t,n);if("normal"===c.type){if(r=n.done?g:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=g,n.method="throw",n.arg=c.arg)}}}function k(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=h(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return y.prototype=A,i(C,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:y,configurable:!0}),y.displayName=l(A,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,l(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},_(I.prototype),l(I.prototype,s,(function(){return this})),e.AsyncIterator=I,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new I(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(C),l(C,c,"Generator"),l(C,o,(function(){return this})),l(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),B(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;B(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{}],493:[function(e,t,n){var r=e("buffer").Buffer,i=e("inherits"),a=e("hash-base"),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function g(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function m(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function A(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}i(d,a),d.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,d=0|this._e,b=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,_=0|this._e,I=0;I<80;I+=1){var E,k;I<16?(E=g(n,r,i,a,d,e[s[I]],h[0],l[I]),k=A(b,w,x,C,_,e[c[I]],f[0],u[I])):I<32?(E=m(n,r,i,a,d,e[s[I]],h[1],l[I]),k=y(b,w,x,C,_,e[c[I]],f[1],u[I])):I<48?(E=v(n,r,i,a,d,e[s[I]],h[2],l[I]),k=v(b,w,x,C,_,e[c[I]],f[2],u[I])):I<64?(E=y(n,r,i,a,d,e[s[I]],h[3],l[I]),k=m(b,w,x,C,_,e[c[I]],f[3],u[I])):(E=A(n,r,i,a,d,e[s[I]],h[4],l[I]),k=g(b,w,x,C,_,e[c[I]],f[4],u[I])),n=d,d=a,a=p(i,10),i=r,r=E,b=_,_=C,C=p(x,10),x=w,w=k}var S=this._b+i+C|0;this._b=this._c+a+_|0,this._c=this._d+d+b|0,this._d=this._e+n+w|0,this._e=this._a+r+x|0,this._a=S},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=e("buffer"),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,n){(function(n){(function(){var r,i=e("buffer"),a=i.Buffer,o={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=i[r]);var s=o.Buffer={};for(r in a)a.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=a[r]);if(o.Buffer.prototype=a.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,n)}),s.alloc||(s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=a(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),a=e("xmlchars/xmlns/1.0/ed3"),o=r.isS,s=r.isChar,c=r.isNameStartChar,l=r.isNameChar,u=r.S_LIST,h=r.NAME_RE,d=i.isChar,g=a.isNCNameStartChar,m=a.isNCNameChar,v=a.NC_NAME_RE,y="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",w={__proto__:null,xml:y,xmlns:b},x={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},C=-1,_=-2,I=0,E=1,k=2,S=3,B=4,M=5,T=6,O=7,D=8,P=9,L=10,Q=11,R=12,j=13,N=14,F=15,z=16,H=17,U=18,G=19,V=20,W=21,q=22,Y=23,K=24,$=25,J=26,X=27,Z=28,ee=29,te=30,ne=31,re=32,ie=33,ae=34,oe=35,se=36,ce=37,le=38,ue=39,he=40,fe=41,de=42,pe=43,ge=44,me=9,ve=10,ye=13,Ae=32,be=33,we=34,xe=38,Ce=39,_e=45,Ie=47,Ee=59,ke=60,Se=61,Be=62,Me=63,Te=91,Oe=93,De=133,Pe=8232,Le=function(e){return e===we||e===Ce},Qe=[we,Ce],Re=[].concat(Qe,[Te,Be]),je=[].concat(Qe,[ke,Oe]),Ne=[Se,Me].concat(A(u)),Fe=[].concat(A(u),[Be,xe,ke]);function ze(e,t,n){switch(t){case"xml":n!==y&&e.fail("xml prefix must be bound to ".concat(y,"."));break;case"xmlns":n!==b&&e.fail("xmlns prefix must be bound to ".concat(b,"."))}switch(n){case b:e.fail(""===t?"the default namespace may not be set to ".concat(n,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(b,"."));break;case y:switch(t){case"xml":break;case"":e.fail("the default namespace may not be set to ".concat(n,"."));break;default:e.fail("may not assign the xml namespace to another prefix.")}}}function He(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];ze(e,i,t[i])}}var Ue=function(e){return v.test(e)},Ge=function(e){return h.test(e)},Ve=0,We=1,qe=2;n.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var Ye={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},Ke=function(){function e(t){f(this,e),this.opt=null!=t?t:{},this.fragmentOpt=!!this.opt.fragment;var n=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,n){this.nameStartCheck=g,this.nameCheck=m,this.isName=Ue,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},w);var r=this.opt.additionalNamespaces;null!=r&&(He(this,r),Object.assign(this.ns,r))}else this.nameStartCheck=c,this.nameCheck=l,this.isName=Ge,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}return p(e,[{key:"closed",get:function(){return this._closed}},{key:"_init",value:function(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=Ve,this.attribList=[];var t=this.fragmentOpt;this.state=t?j:I,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var n=this.opt.defaultXMLVersion;if(void 0===n){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(x),null===(e=this.readyHandler)||void 0===e||e.call(this)}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}},{key:"on",value:function(e,t){this[Ye[e]]=t}},{key:"off",value:function(e){this[Ye[e]]=void 0}},{key:"makeError",value:function(e){var t,n=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+="".concat(this.line,":").concat(this.column)),n.length>0&&(n+=": "),new Error(n+e)}},{key:"fail",value:function(e){var t=this.makeError(e),n=this.errorHandler;if(void 0===n)throw t;return n(t),this}},{key:"write",value:function(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var t=!1;null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e="".concat(this.carriedFromPrevious).concat(e),this.carriedFromPrevious=void 0);var n=e.length,r=e.charCodeAt(n-1);!t&&(r===ye||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));var i=this.stateTable;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return C;var n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=Ae||n===me)return n;switch(n){case ve:return this.line++,this.column=0,this.positionAtNewLine=this.position,ve;case ye:return e.charCodeAt(t+1)===ve&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,_;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;var r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}},{key:"getCode11",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return C;var n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==Pe||n===me)return n;switch(n){case ve:return this.line++,this.column=0,this.positionAtNewLine=this.position,ve;case ye:var r=e.charCodeAt(t+1);r!==ve&&r!==De||(this.i=t+2);case De:case Pe:return this.line++,this.column=0,this.positionAtNewLine=this.position,_;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;var i=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,i>1114111&&this.fail("disallowed character."),i}},{key:"getCodeNorm",value:function(){var e=this.getCode();return e===_?ve:e}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(e){for(var t=this.i,n=this.chunk;;){var r=this.getCode(),i=r===_,a=i?ve:r;if(a===C||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+="".concat(n.slice(t,this.prevI),"\n"),t=this.i)}}},{key:"captureToChar",value:function(e){for(var t=this.i,n=this.chunk;;){var r=this.getCode();switch(r){case _:this.text+="".concat(n.slice(t,this.prevI),"\n"),t=this.i,r=ve;break;case C:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var e=this.chunk,t=this.i;;){var n=this.getCode();if(n===C)return this.name+=e.slice(t),C;if(!l(n))return this.name+=e.slice(t,this.prevI),n===_?ve:n}}},{key:"skipSpaces",value:function(){for(;;){var e=this.getCodeNorm();if(e===C||!o(e))return e}}},{key:"setXMLVersion",value:function(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=s,this.getCode=this.getCode10):(this.isChar=d,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=E}},{key:"sBeginWhitespace",value:function(){var e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case ke:if(this.state=F,0!==this.text.length)throw new Error("no-empty text at start");break;case C:break;default:this.unget(),this.state=j,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var e,t=this.captureTo(Re);switch(t){case Be:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=j,this.doctype=!0;break;case C:break;default:this.text+=String.fromCodePoint(t),t===Te?this.state=B:Le(t)&&(this.state=S,this.q=t)}}},{key:"sDoctypeQuote",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=k)}},{key:"sDTD",value:function(){var e=this.captureTo(je);e!==C&&(this.text+=String.fromCodePoint(e),e===Oe?this.state=k:e===ke?this.state=T:Le(e)&&(this.state=M,this.q=e))}},{key:"sDTDQuoted",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=B,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case be:this.state=O,this.openWakaBang="";break;case Me:this.state=Q;break;default:this.state=B}}},{key:"sDTDOpenWakaBang",value:function(){var e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?D:B,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(_e)&&(this.text+="-",this.state=P)}},{key:"sDTDCommentEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===_e?L:D}},{key:"sDTDCommentEnded",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===Be?this.state=B:(this.fail("malformed comment."),this.state=D)}},{key:"sDTDPI",value:function(){this.captureToChar(Me)&&(this.text+="?",this.state=R)}},{key:"sDTDPIEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===Be&&(this.state=B)}},{key:"sText",value:function(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var e=this.i,t=this.chunk;e:for(;;)switch(this.getCode()){case _:this.entity+="".concat(t.slice(e,this.prevI),"\n"),e=this.i;break;case Ee:var n=this.entityReturnState,r=this.entity+t.slice(e,this.prevI);this.state=n;var i=void 0;""===r?(this.fail("empty entity name."),i="&;"):(i=this.parseEntity(r),this.entity=""),n===j&&void 0===this.textHandler||(this.text+=i);break e;case C:this.entity+=t.slice(e);break e}}},{key:"sOpenWaka",value:function(){var e=this.getCode();if(c(e))this.state=ae,this.unget(),this.xmlDeclPossible=!1;else switch(e){case Ie:this.state=pe,this.xmlDeclPossible=!1;break;case be:this.state=z,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Me:this.state=Y;break;default:this.fail("disallowed character in tag name"),this.state=j,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=V,this.openWakaBang="";break;case"--":this.state=H,this.openWakaBang="";break;case"DOCTYPE":this.state=k,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(_e)&&(this.state=U)}},{key:"sCommentEnding",value:function(){var e,t=this.getCodeNorm();t===_e?(this.state=G,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(t)),this.state=H)}},{key:"sCommentEnded",value:function(){var e=this.getCodeNorm();e!==Be?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(e)),this.state=H):this.state=j}},{key:"sCData",value:function(){this.captureToChar(Oe)&&(this.state=W)}},{key:"sCDataEnding",value:function(){var e=this.getCodeNorm();e===Oe?this.state=q:(this.text+="]".concat(String.fromCodePoint(e)),this.state=V)}},{key:"sCDataEnding2",value:function(){var e,t=this.getCodeNorm();switch(t){case Be:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=j;break;case Oe:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(t)),this.state=V}}},{key:"sPIFirstChar",value:function(){var e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=K):e===Me||o(e)?(this.fail("processing instruction without a target."),this.state=e===Me?J:$):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=K)}},{key:"sPIRest",value:function(){for(var e=this.chunk,t=this.i;;){var n=this.getCodeNorm();if(n===C)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);var r=n===Me;r||o(n)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=r?ie:X):this.state=r?J:$:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}},{key:"sPIBody",value:function(){if(0===this.text.length){var e=this.getCodeNorm();e===Me?this.state=J:o(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(Me)&&(this.state=J)}},{key:"sPIEnding",value:function(){var e,t=this.getCodeNorm();if(t===Be){var n=this.piTarget;"xml"===n.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:n,body:this.text}),this.piTarget=this.text="",this.state=j}else t===Me?this.text+="?":(this.text+="?".concat(String.fromCodePoint(t)),this.state=$);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var e=this.skipSpaces();e!==Me?e!==C&&(this.state=Z,this.name=String.fromCodePoint(e)):this.state=ie}},{key:"sXMLDeclName",value:function(){var e=this.captureTo(Ne);if(e===Me)return this.state=ie,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(o(e)||e===Se){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=e===Se?te:ee}}},{key:"sXMLDeclEq",value:function(){var e=this.getCodeNorm();if(e===Me)return this.state=ie,void this.fail("XML declaration is incomplete.");o(e)||(e!==Se&&this.fail("value required."),this.state=te)}},{key:"sXMLDeclValueStart",value:function(){var e=this.getCodeNorm();if(e===Me)return this.state=ie,void this.fail("XML declaration is incomplete.");o(e)||(Le(e)?this.q=e:(this.fail("value must be quoted."),this.q=Ae),this.state=ne)}},{key:"sXMLDeclValue",value:function(){var e=this.captureTo([this.q,Me]);if(e===Me)return this.state=ie,this.text="",void this.fail("XML declaration is incomplete.");if(e!==C){var t=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var n=t;this.xmlDecl.version=n,/^1\.[0-9]+$/.test(n)?this.opt.forceXMLVersion||this.setXMLVersion(n):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match \t/^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=re}}},{key:"sXMLDeclSeparator",value:function(){var e=this.getCodeNorm();e!==Me?(o(e)||(this.fail("whitespace required."),this.unget()),this.state=X):this.state=ie}},{key:"sXMLDeclEnding",value:function(){var e;this.getCodeNorm()===Be?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=j):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var e,t=this.captureNameChars();if(t!==C){var n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case Be:this.openTag();break;case Ie:this.state=oe;break;default:o(t)||this.fail("disallowed character in tag name."),this.state=se}}}},{key:"sOpenTagSlash",value:function(){this.getCode()===Be?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=se)}},{key:"sAttrib",value:function(){var e=this.skipSpaces();e!==C&&(c(e)?(this.unget(),this.state=ce):e===Be?this.openTag():e===Ie?this.state=oe:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var e=this.captureNameChars();e===Se?this.state=ue:o(e)?this.state=le:e===Be?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):e!==C&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var e=this.skipSpaces();switch(e){case C:return;case Se:this.state=ue;break;default:this.fail("attribute without value."),this.text="",this.name="",e===Be?this.openTag():c(e)?(this.unget(),this.state=ce):(this.fail("disallowed character in attribute name."),this.state=se)}}},{key:"sAttribValue",value:function(){var e=this.getCodeNorm();Le(e)?(this.q=e,this.state=he):o(e)||(this.fail("unquoted attribute value."),this.state=de,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var e=this.q,t=this.chunk,n=this.i;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text="",this.q=null,void(this.state=fe);case xe:return this.text+=t.slice(n,this.prevI),this.state=N,void(this.entityReturnState=he);case ve:case _:case me:this.text+="".concat(t.slice(n,this.prevI)," "),n=this.i;break;case ke:return this.text+=t.slice(n,this.prevI),void this.fail("disallowed character.");case C:return void(this.text+=t.slice(n))}}},{key:"sAttribValueClosed",value:function(){var e=this.getCodeNorm();o(e)?this.state=se:e===Be?this.openTag():e===Ie?this.state=oe:c(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=ce):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var e=this.captureTo(Fe);switch(e){case xe:this.state=N,this.entityReturnState=de;break;case ke:this.fail("disallowed character.");break;case C:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",e===Be?this.openTag():this.state=se}}},{key:"sCloseTag",value:function(){var e=this.captureNameChars();e===Be?this.closeTag():o(e)?this.state=ge:e!==C&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case Be:this.closeTag();break;case C:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var e=this.i,t=this.forbiddenState,n=this.chunk,r=this.textHandler;e:for(;;)switch(this.getCode()){case ke:if(this.state=F,void 0!==r){var i=this.text,a=n.slice(e,this.prevI);0!==i.length?(r(i+a),this.text=""):0!==a.length&&r(a)}t=Ve;break e;case xe:this.state=N,this.entityReturnState=j,void 0!==r&&(this.text+=n.slice(e,this.prevI)),t=Ve;break e;case Oe:switch(t){case Ve:t=We;break;case We:t=qe;break;case qe:break;default:throw new Error("impossible state")}break;case Be:t===qe&&this.fail('the string "]]>" is disallowed in char data.'),t=Ve;break;case _:void 0!==r&&(this.text+="".concat(n.slice(e,this.prevI),"\n")),e=this.i,t=Ve;break;case C:void 0!==r&&(this.text+=n.slice(e));break e;default:t=Ve}this.forbiddenState=t}},{key:"handleTextOutsideRoot",value:function(){var e=this.i,t=this.chunk,n=this.textHandler,r=!1;e:for(;;){var i=this.getCode();switch(i){case ke:if(this.state=F,void 0!==n){var a=this.text,s=t.slice(e,this.prevI);0!==a.length?(n(a+s),this.text=""):0!==s.length&&n(s)}break e;case xe:this.state=N,this.entityReturnState=j,void 0!==n&&(this.text+=t.slice(e,this.prevI)),r=!0;break e;case _:void 0!==n&&(this.text+="".concat(t.slice(e,this.prevI),"\n")),e=this.i;break;case C:void 0!==n&&(this.text+=t.slice(e));break e;default:o(i)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(e,t){var n,r=this.qname(e),i=r.prefix,a=r.local,o={name:e,prefix:i,local:a,value:t};if(this.attribList.push(o),null===(n=this.attributeHandler)||void 0===n||n.call(this,o),"xmlns"===i){var s=t.trim();"1.0"===this.currentXMLVersion&&""===s&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[a]=s,ze(this,a,s)}else if("xmlns"===e){var c=t.trim();this.topNS[""]=c,ze(this,"",c)}}},{key:"pushAttribPlain",value:function(e,t){var n,r={name:e,value:t};this.attribList.push(r),null===(n=this.attributeHandler)||void 0===n||n.call(this,r)}},{key:"end",value:function(){var e,t;this.sawRoot||this.fail("document must contain a root element.");for(var n=this.tags;n.length>0;){var r=n.pop();this.fail("unclosed tag: ".concat(r.name))}this.state!==I&&this.state!==j&&this.fail("unexpected end.");var i=this.text;return 0!==i.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,i),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}},{key:"resolve",value:function(e){var t,n,r=this.topNS[e];if(void 0!==r)return r;for(var i=this.tags,a=i.length-1;a>=0;a--)if(void 0!==(r=i[a].ns[e]))return r;return void 0!==(r=this.ns[e])?r:null===(n=(t=this.opt).resolvePrefix)||void 0===n?void 0:n.call(t,e)}},{key:"qname",value:function(e){var t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};var n=e.slice(t+1),r=e.slice(0,t);return(""===r||""===n||n.includes(":"))&&this.fail("malformed name: ".concat(e,".")),{prefix:r,local:n}}},{key:"processAttribsNS",value:function(){var e,t=this.attribList,n=this.tag,r=this.qname(n.name),i=r.prefix,a=r.local;n.prefix=i,n.local=a;var o=n.uri=null!==(e=this.resolve(i))&&void 0!==e?e:"";if(""!==i&&("xmlns"===i&&this.fail('tags may not have "xmlns" as prefix.'),""===o&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(i),".")),n.uri=i)),0!==t.length){var s,c=n.attributes,l=new Set,u=$i(t);try{for(u.s();!(s=u.n()).done;){var h=s.value,f=h.name,d=h.prefix,p=h.local,g=void 0,m=void 0;""===d?(g="xmlns"===f?b:"",m=f):(void 0===(g=this.resolve(d))&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(d),".")),g=d),m="{".concat(g,"}").concat(p)),l.has(m)&&this.fail("duplicate attribute: ".concat(m,".")),l.add(m),h.uri=g,c[f]=h}}catch(e){u.e(e)}finally{u.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var e,t=this.attribList,n=this.tag.attributes,r=$i(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i.name,o=i.value;void 0!==n[a]&&this.fail("duplicate attribute: ".concat(a,".")),n[a]=o}}catch(e){r.e(e)}finally{r.f()}this.attribList=[]}},{key:"openTag",value:function(){var e;this.processAttribs();var t=this.tags,n=this.tag;n.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,n),t.push(n),this.state=j,this.name=""}},{key:"openSelfClosingTag",value:function(){var e,t,n;this.processAttribs();var r=this.tags,i=this.tag;i.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),null===(t=this.closeTagHandler)||void 0===t||t.call(this,i),null===(this.tag=null!==(n=r[r.length-1])&&void 0!==n?n:null)&&(this.closedRoot=!0),this.state=j,this.name=""}},{key:"closeTag",value:function(){var e=this.tags,t=this.name;if(this.state=j,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");for(var n=this.closeTagHandler,r=e.length;r-- >0;){var i=this.tag=e.pop();if(this.topNS=i.ns,null==n||n(i),i.name===t)break;this.fail("unexpected close tag.")}0===r?this.closedRoot=!0:r<0&&(this.fail("unmatched closing tag: ".concat(t,".")),this.text+="</".concat(t,">"))}},{key:"parseEntity",value:function(e){if("#"!==e[0]){var t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),"&".concat(e,";"))}var n=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?n=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(n=parseInt(e.slice(1),10)),this.isChar(n)?String.fromCodePoint(n):(this.fail("malformed character entity."),"&".concat(e,";"))}}])}();n.SaxesParser=Ke},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,n){var r=e("safe-buffer").Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,l=Math.min(a-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(o+=l)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":494}],498:[function(e,t,n){var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function h(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var f=0;f<80;++f){var d=~~(f/20),p=l(n)+h(d,r,i,a)+s+t[f]+o[d]|0;s=a,a=i,i=u(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function h(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=l(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var d=0;d<80;++d){var p=~~(d/20),g=u(n)+f(p,r,i,a)+s+t[d]+o[p]|0;s=a,a=i,i=h(r),r=n,n=g}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,n){var r=e("inherits"),i=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function h(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,s=0|this._e,c=0|this._f,g=0|this._g,m=0|this._h,v=0;v<16;++v)t[v]=e.readInt32BE(4*v);for(;v<64;++v)t[v]=p(t[v-2])+t[v-7]+d(t[v-15])+t[v-16]|0;for(var y=0;y<64;++y){var A=m+f(s)+l(s,c,g)+o[y]+t[y]|0,b=h(n)+u(n,r,i)|0;m=g,g=c,c=s,s=a+A|0,a=i,i=r,r=n,n=A+b|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,n){var r=e("inherits"),i=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,n){var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,A=0|this._hh,b=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,_=0|this._el,I=0|this._fl,E=0|this._gl,k=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var B=t[S-30],M=t[S-30+1],T=d(B,M),O=p(M,B),D=g(B=t[S-4],M=t[S-4+1]),P=m(M,B),L=t[S-14],Q=t[S-14+1],R=t[S-32],j=t[S-32+1],N=O+Q|0,F=T+L+v(N,O)|0;F=(F=F+D+v(N=N+P|0,P)|0)+R+v(N=N+j|0,j)|0,t[S]=F,t[S+1]=N}for(var z=0;z<160;z+=2){F=t[z],N=t[z+1];var H=u(n,r,i),U=u(b,w,x),G=h(n,b),V=h(b,n),W=f(s,_),q=f(_,s),Y=o[z],K=o[z+1],$=l(s,c,y),J=l(_,I,E),X=k+q|0,Z=A+W+v(X,k)|0;Z=(Z=(Z=Z+$+v(X=X+J|0,J)|0)+Y+v(X=X+K|0,K)|0)+F+v(X=X+N|0,N)|0;var ee=V+U|0,te=G+H+v(ee,V)|0;A=y,k=E,y=c,E=I,c=s,I=_,s=a+Z+v(_=C+X|0,C)|0,a=i,C=x,i=r,x=w,r=n,w=b,n=Z+te+v(b=X+ee|0,X)|0}this._al=this._al+b|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+_|0,this._fl=this._fl+I|0,this._gl=this._gl+E|0,this._hl=this._hl+k|0,this._ah=this._ah+n+v(this._al,b)|0,this._bh=this._bh+r+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,x)|0,this._dh=this._dh+a+v(this._dl,C)|0,this._eh=this._eh+s+v(this._el,_)|0,this._fh=this._fh+c+v(this._fl,I)|0,this._gh=this._gh+y+v(this._gl,E)|0,this._hh=this._hh+A+v(this._hl,k)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,n){t.exports=i;var r=e("events").EventEmitter;function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],507:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,n){var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=h;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(h,o);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];h.prototype[u]||(h.prototype[u]=s.prototype[u])}function h(e){if(!(this instanceof h))return new h(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,n){t.exports=a;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,n){(function(n,r){(function(){var i=e("process-nextick-args");t.exports=x;var a,o=e("isarray");x.ReadableState=w,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,u=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function h(e){return l.from(e)}function f(e){return l.isBuffer(e)||e instanceof u}var d=Object.create(e("core-util-is"));d.inherits=e("inherits");var p=e("util"),g=void 0;g=p&&p.debuglog?p.debuglog("stream"):function(){};var m,v=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");d.inherits(x,c);var A=["error","close","destroy","pause","resume"];function b(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function w(t,n){t=t||{};var r=n instanceof(a=a||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(m||(m=e("string_decoder/").StringDecoder),this.decoder=new m(t.encoding),this.encoding=t.encoding)}function x(t){if(a=a||e("./_stream_duplex"),!(this instanceof x))return new x(t);this._readableState=new w(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function C(e,t,n,r,i){var a,o=e._readableState;return null===t?(o.reading=!1,M(e,o)):(i||(a=I(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=h(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):D(e,o)):_(e,o,t,!1))):r||(o.reading=!1)),E(o)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),D(e,t)}function I(e,t){var n;return f(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=y.destroy,x.prototype._undestroy=y.undestroy,x.prototype._destroy=function(e,t){this.push(null),t(e)},x.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},x.prototype.unshift=function(e){return C(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){return m||(m=e("string_decoder/").StringDecoder),this._readableState.decoder=new m(t),this._readableState.encoding=t,this};var k=8388608;function S(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function B(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=S(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,T(e)}}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){g("emit readable"),e.emit("readable"),N(e)}function D(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(g("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function L(e){return function(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,N(e))}}function Q(e){g("readable nexttick read 0"),e.read(0)}function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(j,e,t))}function j(e,t){t.reading||(g("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(g("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=z(e,t.buffer,t.decoder),n);var n}function z(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?H(e,t):U(e,t),r}function H(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function U(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0==(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function G(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(V,t,e))}function V(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function W(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}x.prototype.read=function(e){g("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):T(this),null;if(0===(e=B(e,t))&&t.ended)return 0===t.length&&G(this),null;var r,i=t.needReadable;return g("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&g("length less than watermark",i=!0),t.ended||t.reading?g("reading or ended",i=!1):i&&(g("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=B(n,t))),null===(r=e>0?F(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,g("pipe count=%d opts=%j",a.pipesCount,t);var o=t&&!1===t.end||e===n.stdout||e===n.stderr?A:l;function c(e,t){g("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function l(){g("onend"),e.end()}a.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",c);var u=L(r);e.on("drain",u);var h=!1;function f(){g("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",A),r.removeListener("data",p),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}var d=!1;function p(t){g("ondata"),d=!1,!1!==e.write(t)||d||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==W(a.pipes,e))&&!h&&(g("false write response, pause",a.awaitDrain),a.awaitDrain++,d=!0),r.pause())}function m(t){g("onerror",t),A(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),A()}function y(){g("onfinish"),e.removeListener("close",v),A()}function A(){g("unpipe"),r.unpipe(e)}return r.on("data",p),b(e,"error",m),e.once("close",v),e.once("finish",y),e.emit("pipe",r),a.flowing||(g("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=W(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},x.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&T(this):i.nextTick(Q,this))}return n},x.prototype.addListener=x.prototype.on,x.prototype.resume=function(){var e=this._readableState;return e.flowing||(g("resume"),e.flowing=!0,R(this,e)),this},x.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(g("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){g("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<A.length;a++)e.on(A[a],this.emit.bind(this,A[a]));return this._read=function(t){g("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=F}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,n){t.exports=o;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,n){(function(n,r,i){(function(){var a=e("process-nextick-args");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){R(t,e)}}t.exports=b;var s,c=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:a.nextTick;b.WritableState=A;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var u={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,d=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function p(e){return f.from(e)}function g(e){return f.isBuffer(e)||e instanceof d}var m,v=e("./internal/streams/destroy");function y(){}function A(t,n){s=s||e("./_stream_duplex"),t=t||{};var r=n instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,a=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){S(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(t){if(s=s||e("./_stream_duplex"),!(m.call(b,this)||this instanceof s))return new b(t);this._writableState=new A(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}function x(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}function C(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}function _(e,t,n,r,i,a){if(!n){var o=C(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else I(e,t,!1,s,r,i,a);return c}function I(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function E(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(L,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),L(e,t))}function k(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function S(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(k(n),t)E(e,n,r,t,i);else{var a=O(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),r?c(B,e,n,a,i):B(e,n,a,i)}}function B(e,t,n,r){n||M(e,t),t.pendingcb--,r(),L(e,t)}function M(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,I(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(I(e,t,!1,t.objectMode?1:l.length,l,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),L(e,t)}))}function P(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(D,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function L(e,t){var n=O(t);return n&&(P(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function Q(e,t,n){t.ending=!0,L(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function R(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}l.inherits(b,h),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===b&&e&&e._writableState instanceof A}})):m=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&g(e);return a&&!f.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=y),r.ended?w(this,n):(a||x(this,r,e,n))&&(r.pendingcb++,i=_(this,r,a,e,t,n)),i},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||Q(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,n){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("safe-buffer").Buffer,a=e("util");function o(e,t,n){e.copy(t,n)}t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)o(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(t.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,n){var r=e("process-nextick-args");function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(o,n,e)):r.nextTick(o,n,e):t&&t(e)})),this)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}t.exports={destroy:i,undestroy:a}},{"process-nextick-args":466}],515:[function(e,t,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:422}],516:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,n){arguments[4][217][0].apply(n,arguments)},{buffer:220,dup:217}],521:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},c=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,n){(function(e){(function(){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation"),n=!0}return e.apply(this,arguments)}return i}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this)}).call(this,void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],526:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,t,n){(function(t,r){(function(){var i=/%[sdj%]/g;n.format=function(e){if(!x(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<a;c=r[++n])A(c)||!E(c)?o+=" "+c:o+=" "+s(c);return o},n.deprecate=function(e,i){if(_(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation,a=!0}return e.apply(this,arguments)}return o};var a,o={};function s(e,t){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),h(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function u(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function h(e,t,r){if(e.customInspect&&t&&B(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return x(i)||(i=h(e,i,r)),i}var a=f(e,t);if(a)return a;var o=Object.keys(t),s=u(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),S(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(t);if(0===o.length){if(B(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(I(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var l,y="",A=!1,b=["{","}"];return v(t)&&(A=!0,b=["[","]"]),B(t)&&(y=" [Function"+(t.name?": "+t.name:"")+"]"),I(t)&&(y=" "+RegExp.prototype.toString.call(t)),k(t)&&(y=" "+Date.prototype.toUTCString.call(t)),S(t)&&(y=" "+d(t)),0!==o.length||A&&0!=t.length?r<0?I(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=A?p(e,t,r,s,o):o.map((function(n){return g(e,t,r,s,n,A)})),e.seen.pop(),m(l,y,b)):b[0]+y+b[1]}function f(e,t){if(_(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return w(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):A(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)O(t,String(o))?a.push(g(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(g(e,t,n,r,i,!0))})),a}function g(e,t,n,r,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),O(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=A(n)?h(e,c.value,null):h(e,c.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),_(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function m(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function A(e){return null===e}function b(e){return null==e}function w(e){return"number"==typeof e}function x(e){return"string"==typeof e}function C(e){return"symbol"==typeof e}function _(e){return void 0===e}function I(e){return E(e)&&"[object RegExp]"===T(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===T(e)}function S(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function B(e){return"function"==typeof e}function M(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.debuglog=function(e){return _(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),o[e]||(new RegExp("\\b"+e+"\\b","i").test(a)?(t.pid,o[e]=function(){n.format.apply(n,arguments)}):o[e]=function(){}),o[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=v,n.isBoolean=y,n.isNull=A,n.isNullOrUndefined=b,n.isNumber=w,n.isString=x,n.isSymbol=C,n.isUndefined=_,n.isRegExp=I,n.isObject=E,n.isDate=k,n.isError=S,n.isFunction=B,n.isPrimitive=M,n.isBuffer=e("./support/isBuffer"),n.log=function(){},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this)}).call(this,e("_process"),void 0!==Ri?Ri:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}});var r=f(e("./v1.js")),i=f(e("./v3.js")),a=f(e("./v4.js")),o=f(e("./v5.js")),s=f(e("./nil.js")),c=f(e("./version.js")),l=f(e("./validate.js")),u=f(e("./stringify.js")),h=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,n){function r(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return i(o(s(e),8*e.length))}function i(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var a=e[i>>5]>>>i%32&255,o=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(o)}return t}function a(e){return 14+(e+64>>>9<<4)+1}function o(e,t){e[t>>5]|=128<<t%32,e[a(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var l=n,u=r,g=i,m=o;n=h(n,r,i,o,e[s],7,-680876936),o=h(o,n,r,i,e[s+1],12,-389564586),i=h(i,o,n,r,e[s+2],17,606105819),r=h(r,i,o,n,e[s+3],22,-1044525330),n=h(n,r,i,o,e[s+4],7,-176418897),o=h(o,n,r,i,e[s+5],12,1200080426),i=h(i,o,n,r,e[s+6],17,-1473231341),r=h(r,i,o,n,e[s+7],22,-45705983),n=h(n,r,i,o,e[s+8],7,1770035416),o=h(o,n,r,i,e[s+9],12,-1958414417),i=h(i,o,n,r,e[s+10],17,-42063),r=h(r,i,o,n,e[s+11],22,-1990404162),n=h(n,r,i,o,e[s+12],7,1804603682),o=h(o,n,r,i,e[s+13],12,-40341101),i=h(i,o,n,r,e[s+14],17,-1502002290),n=f(n,r=h(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=f(o,n,r,i,e[s+6],9,-1069501632),i=f(i,o,n,r,e[s+11],14,643717713),r=f(r,i,o,n,e[s],20,-373897302),n=f(n,r,i,o,e[s+5],5,-701558691),o=f(o,n,r,i,e[s+10],9,38016083),i=f(i,o,n,r,e[s+15],14,-660478335),r=f(r,i,o,n,e[s+4],20,-405537848),n=f(n,r,i,o,e[s+9],5,568446438),o=f(o,n,r,i,e[s+14],9,-1019803690),i=f(i,o,n,r,e[s+3],14,-187363961),r=f(r,i,o,n,e[s+8],20,1163531501),n=f(n,r,i,o,e[s+13],5,-1444681467),o=f(o,n,r,i,e[s+2],9,-51403784),i=f(i,o,n,r,e[s+7],14,1735328473),n=d(n,r=f(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=d(o,n,r,i,e[s+8],11,-2022574463),i=d(i,o,n,r,e[s+11],16,1839030562),r=d(r,i,o,n,e[s+14],23,-35309556),n=d(n,r,i,o,e[s+1],4,-1530992060),o=d(o,n,r,i,e[s+4],11,1272893353),i=d(i,o,n,r,e[s+7],16,-155497632),r=d(r,i,o,n,e[s+10],23,-1094730640),n=d(n,r,i,o,e[s+13],4,681279174),o=d(o,n,r,i,e[s],11,-358537222),i=d(i,o,n,r,e[s+3],16,-722521979),r=d(r,i,o,n,e[s+6],23,76029189),n=d(n,r,i,o,e[s+9],4,-640364487),o=d(o,n,r,i,e[s+12],11,-421815835),i=d(i,o,n,r,e[s+15],16,530742520),n=p(n,r=d(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=p(o,n,r,i,e[s+7],10,1126891415),i=p(i,o,n,r,e[s+14],15,-1416354905),r=p(r,i,o,n,e[s+5],21,-57434055),n=p(n,r,i,o,e[s+12],6,1700485571),o=p(o,n,r,i,e[s+3],10,-1894986606),i=p(i,o,n,r,e[s+10],15,-1051523),r=p(r,i,o,n,e[s+1],21,-2054922799),n=p(n,r,i,o,e[s+8],6,1873313359),o=p(o,n,r,i,e[s+15],10,-30611744),i=p(i,o,n,r,e[s+6],15,-1560198380),r=p(r,i,o,n,e[s+13],21,1309151649),n=p(n,r,i,o,e[s+4],6,-145523070),o=p(o,n,r,i,e[s+11],10,-1120210379),i=p(i,o,n,r,e[s+2],15,718787259),r=p(r,i,o,n,e[s+9],21,-343485551),n=c(n,l),r=c(r,u),i=c(i,g),o=c(o,m)}return[n,r,i,o]}function s(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(a(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}function c(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function l(e,t){return e<<t|e>>>32-t}function u(e,t,n,r,i,a){return c(l(c(c(t,e),c(r,a)),i),n)}function h(e,t,n,r,i,a,o){return u(t&n|~t&r,e,t,i,a,o)}function f(e,t,n,r,i,a,o){return u(t&r|n&~r,e,t,i,a,o)}function d(e,t,n,r,i,a,o){return u(t^n^r,e,t,i,a,o)}function p(e,t,n,r,i,a,o){return u(n^(t|~r),e,t,i,a,o)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var g=r;n.default=g},{}],530:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r="00000000-0000-0000-0000-000000000000";n.default=r},{}],531:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./validate.js"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}var o=a;n.default=o},{"./validate.js":541}],532:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;n.default=r},{}],533:[function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},{}],534:[function(e,t,n){function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function i(e,t){return e<<t|e>>>32-t}function a(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=[];for(var o=0;o<a.length;++o)e.push(a.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,c=Math.ceil(s/16),l=new Array(c),u=0;u<c;++u){for(var h=new Uint32Array(16),f=0;f<16;++f)h[f]=e[64*u+4*f]<<24|e[64*u+4*f+1]<<16|e[64*u+4*f+2]<<8|e[64*u+4*f+3];l[u]=h}l[c-1][14]=8*(e.length-1)/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<c;++d){for(var p=new Uint32Array(80),g=0;g<16;++g)p[g]=l[d][g];for(var m=16;m<80;++m)p[m]=i(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);for(var v=n[0],y=n[1],A=n[2],b=n[3],w=n[4],x=0;x<80;++x){var C=Math.floor(x/20),_=i(v,5)+r(C,y,A,b)+w+t[C]+p[x]>>>0;w=b,b=A,A=i(y,30)>>>0,y=v,v=_}n[0]=n[0]+v>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+A>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a;n.default=o},{}],535:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./validate.js"));function i(e){return e&&e.__esModule?e:{default:e}}for(var a=[],o=0;o<256;++o)a.push((o+256).toString(16).substr(1));function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}var c=s;n.default=c},{"./validate.js":541}],536:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i,a=s(e("./rng.js")),o=s(e("./stringify.js"));function s(e){return e&&e.__esModule?e:{default:e}}var c=0,l=0;function u(e,t,n){var s=t&&n||0,u=t||new Array(16),h=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:i;if(null==h||null==f){var d=e.random||(e.rng||a.default)();null==h&&(h=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=i=16383&(d[6]<<8|d[7]))}var p=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:l+1,m=p-c+(g-l)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||p>c)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=p,l=g,i=f;var v=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;u[s++]=v>>>24&255,u[s++]=v>>>16&255,u[s++]=v>>>8&255,u[s++]=255&v;var y=p/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=f>>>8|128,u[s++]=255&f;for(var A=0;A<6;++A)u[s+A]=h[A];return t||(0,o.default)(u)}var h=u;n.default=h},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./v35.js")),i=a(e("./md5.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v3",48,i.default);n.default=o},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l,n.URL=n.DNS=void 0;var r=a(e("./stringify.js")),i=a(e("./parse.js"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=s;var c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function l(e,t,n){function a(e,a,s,c){if("string"==typeof e&&(e=o(e)),"string"==typeof a&&(a=(0,i.default)(a)),16!==a.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+e.length);if(l.set(a),l.set(e,a.length),(l=n(l))[6]=15&l[6]|t,l[8]=63&l[8]|128,s){c=c||0;for(var u=0;u<16;++u)s[c+u]=l[u];return s}return(0,r.default)(l)}try{a.name=e}catch(e){}return a.DNS=s,a.URL=c,a}n.URL=c},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./rng.js")),i=a(e("./stringify.js"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var a=(e=e||{}).random||(e.rng||r.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=a[o];return t}return(0,i.default)(a)}var s=o;n.default=s},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./v35.js")),i=a(e("./sha1.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v5",80,i.default);n.default=o},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./regex.js"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return"string"==typeof e&&r.default.test(e)}var o=a;n.default=o},{"./regex.js":532}],542:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("./validate.js"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var o=a;n.default=o},{"./validate.js":541}],543:[function(e,t,n){
/**
        * Character classes and associated utilities for the 5th edition of XML 1.0.
        *
        * @author Louis-Dominique Dubeau
        * @license MIT
        * @copyright Louis-Dominique Dubeau
        */
Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\t\n\r -퟿-�𐀀-􏿿",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,i=10,a=13,o=32;function s(e){return e>=o&&e<=55295||e===i||e===a||e===r||e>=57344&&e<=65533||e>=65536&&e<=1114111}function c(e){return e===o||e===i||e===a||e===r}function l(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function u(e){return l(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}n.S_LIST=[o,i,a,r],n.isChar=s,n.isS=c,n.isNameStartChar=l,n.isNameChar=u},{}],544:[function(e,t,n){
/**
        * Character classes and associated utilities for the 2nd edition of XML 1.1.
        *
        * @author Louis-Dominique Dubeau
        * @license MIT
        * @copyright Louis-Dominique Dubeau
        */
Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="-퟿-�𐀀-􏿿",n.RESTRICTED_CHAR="-\b\v\f---",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,i=10,a=13,o=32;function s(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}function c(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159}function l(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}function u(e){return e===o||e===i||e===a||e===r}function h(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function f(e){return h(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}n.S_LIST=[o,i,a,r],n.isChar=s,n.isRestrictedChar=c,n.isCharAndNotRestricted=l,n.isS=u,n.isNameStartChar=h,n.isNameChar=f},{}],545:[function(e,t,n){function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function i(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}
/**
        * Character class utilities for XML NS 1.0 edition 3.
        *
        * @author Louis-Dominique Dubeau
        * @license MIT
        * @copyright Louis-Dominique Dubeau
        */Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u"),n.isNCNameStartChar=r,n.isNCNameChar=i},{}]},{},[15])(15);var na=Wi.exports;function ra(){return(ra=Di(Gi.mark((function e(t,n){return Gi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:n instanceof ArrayBuffer&&(n=new Blob([n])),ia(t,URL.createObjectURL(n));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ia(e,t){var n=document.createElement("a");n.download=e,n.style.display="none",n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function aa(e){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var oa=/^\s+/,sa=/\s+$/;function ca(e,t){if(t=t||{},(e=e||"")instanceof ca)return e;if(!(this instanceof ca))return new ca(e,t);var n=function(e){var t,n,r,i={r:0,g:0,b:0},a=1,o=null,s=null,c=null,l=!1,u=!1;return"string"==typeof e&&(e=function(e){e=e.replace(oa,"").replace(sa,"").toLowerCase();var t,n=!1;if(Ia[e])e=Ia[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=ja.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=ja.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ja.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=ja.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ja.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=ja.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ja.hex8.exec(e))?{r:Ma(t[1]),g:Ma(t[2]),b:Ma(t[3]),a:Pa(t[4]),format:n?"name":"hex8"}:(t=ja.hex6.exec(e))?{r:Ma(t[1]),g:Ma(t[2]),b:Ma(t[3]),format:n?"name":"hex"}:(t=ja.hex4.exec(e))?{r:Ma(t[1]+""+t[1]),g:Ma(t[2]+""+t[2]),b:Ma(t[3]+""+t[3]),a:Pa(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=ja.hex3.exec(e))&&{r:Ma(t[1]+""+t[1]),g:Ma(t[2]+""+t[2]),b:Ma(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==aa(e)&&(Na(e.r)&&Na(e.g)&&Na(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*Sa(t,255),g:255*Sa(n,255),b:255*Sa(r,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Na(e.h)&&Na(e.s)&&Na(e.v)?(o=Oa(e.s),s=Oa(e.v),i=function(e,t,n){e=6*Sa(e,360),t=Sa(t,100),n=Sa(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6;return{r:255*[n,o,a,a,s,n][c],g:255*[s,n,n,o,a,a][c],b:255*[a,a,s,n,n,o][c]}}(e.h,o,s),l=!0,u="hsv"):Na(e.h)&&Na(e.s)&&Na(e.l)&&(o=Oa(e.s),c=Oa(e.l),i=function(e,t,n){var r,i,a;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Sa(e,360),t=Sa(t,100),n=Sa(n,100),0===t)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,o,c),l=!0,u="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=ka(a),{ok:l,format:e.format||u,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:a}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function la(e,t,n){e=Sa(e,255),t=Sa(t,255),n=Sa(n,255);var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=(a+o)/2;if(a==o)r=i=0;else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function ua(e,t,n){e=Sa(e,255),t=Sa(t,255),n=Sa(n,255);var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=a,c=a-o;if(i=0===a?0:c/a,a==o)r=0;else{switch(a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function ha(e,t,n,r){var i=[Ta(Math.round(e).toString(16)),Ta(Math.round(t).toString(16)),Ta(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function fa(e,t,n,r){return[Ta(Da(r)),Ta(Math.round(e).toString(16)),Ta(Math.round(t).toString(16)),Ta(Math.round(n).toString(16))].join("")}function da(e,t){t=0===t?0:t||10;var n=ca(e).toHsl();return n.s-=t/100,n.s=Ba(n.s),ca(n)}function pa(e,t){t=0===t?0:t||10;var n=ca(e).toHsl();return n.s+=t/100,n.s=Ba(n.s),ca(n)}function ga(e){return ca(e).desaturate(100)}function ma(e,t){t=0===t?0:t||10;var n=ca(e).toHsl();return n.l+=t/100,n.l=Ba(n.l),ca(n)}function va(e,t){t=0===t?0:t||10;var n=ca(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),ca(n)}function ya(e,t){t=0===t?0:t||10;var n=ca(e).toHsl();return n.l-=t/100,n.l=Ba(n.l),ca(n)}function Aa(e,t){var n=ca(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,ca(n)}function ba(e){var t=ca(e).toHsl();return t.h=(t.h+180)%360,ca(t)}function wa(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ca(e).toHsl(),r=[ca(e)],i=360/t,a=1;a<t;a++)r.push(ca({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function xa(e){var t=ca(e).toHsl(),n=t.h;return[ca(e),ca({h:(n+72)%360,s:t.s,l:t.l}),ca({h:(n+216)%360,s:t.s,l:t.l})]}function Ca(e,t,n){t=t||6,n=n||30;var r=ca(e).toHsl(),i=360/n,a=[ca(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(ca(r));return a}function _a(e,t){t=t||6;for(var n=ca(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(ca({h:r,s:i,v:a})),a=(a+s)%1;return o}ca.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=ka(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=ua(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=ua(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=la(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=la(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return ha(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[Ta(Math.round(e).toString(16)),Ta(Math.round(t).toString(16)),Ta(Math.round(n).toString(16)),Ta(Da(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Sa(this._r,255))+"%",g:Math.round(100*Sa(this._g,255))+"%",b:Math.round(100*Sa(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Sa(this._r,255))+"%, "+Math.round(100*Sa(this._g,255))+"%, "+Math.round(100*Sa(this._b,255))+"%)":"rgba("+Math.round(100*Sa(this._r,255))+"%, "+Math.round(100*Sa(this._g,255))+"%, "+Math.round(100*Sa(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Ea[ha(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+fa(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=ca(e);n="#"+fa(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return ca(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(ma,arguments)},brighten:function(){return this._applyModification(va,arguments)},darken:function(){return this._applyModification(ya,arguments)},desaturate:function(){return this._applyModification(da,arguments)},saturate:function(){return this._applyModification(pa,arguments)},greyscale:function(){return this._applyModification(ga,arguments)},spin:function(){return this._applyModification(Aa,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Ca,arguments)},complement:function(){return this._applyCombination(ba,arguments)},monochromatic:function(){return this._applyCombination(_a,arguments)},splitcomplement:function(){return this._applyCombination(xa,arguments)},triad:function(){return this._applyCombination(wa,[3])},tetrad:function(){return this._applyCombination(wa,[4])}},ca.fromRatio=function(e,t){if("object"==aa(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Oa(e[r]));e=n}return ca(e,t)},ca.equals=function(e,t){return!(!e||!t)&&ca(e).toRgbString()==ca(t).toRgbString()},ca.random=function(){return ca.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},ca.mix=function(e,t,n){n=0===n?0:n||50;var r=ca(e).toRgb(),i=ca(t).toRgb(),a=n/100;return ca({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},ca.readability=function(e,t){var n=ca(e),r=ca(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ca.isReadable=function(e,t,n){var r,i,a=ca.readability(e,t);switch(i=!1,(r=function(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},ca.mostReadable=function(e,t,n){var r,i,a,o,s=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,o=n.size;for(var l=0;l<t.length;l++)(r=ca.readability(e,t[l]))>c&&(c=r,s=ca(t[l]));return ca.isReadable(e,s,{level:a,size:o})||!i?s:(n.includeFallbackColors=!1,ca.mostReadable(e,["#fff","#000"],n))};var Ia=ca.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ea=ca.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Ia);function ka(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Sa(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ba(e){return Math.min(1,Math.max(0,e))}function Ma(e){return parseInt(e,16)}function Ta(e){return 1==e.length?"0"+e:""+e}function Oa(e){return e<=1&&(e=100*e+"%"),e}function Da(e){return Math.round(255*parseFloat(e)).toString(16)}function Pa(e){return Ma(e)/255}var La,Qa,Ra,ja=(Qa="[\\s|\\(]+("+(La="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+La+")[,|\\s]+("+La+")\\s*\\)?",Ra="[\\s|\\(]+("+La+")[,|\\s]+("+La+")[,|\\s]+("+La+")[,|\\s]+("+La+")\\s*\\)?",{CSS_UNIT:new RegExp(La),rgb:new RegExp("rgb"+Qa),rgba:new RegExp("rgba"+Ra),hsl:new RegExp("hsl"+Qa),hsla:new RegExp("hsla"+Ra),hsv:new RegExp("hsv"+Qa),hsva:new RegExp("hsva"+Ra),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Na(e){return!!ja.CSS_UNIT.exec(e)}var Fa={exports:{}};!function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,s=32,c=64,l=128,u=256,h=1/0,f=9007199254740991,d=NaN,p=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",s],["partialRight",c],["rearg",u]],m="[object Arguments]",v="[object Array]",y="[object Boolean]",A="[object Date]",b="[object Error]",w="[object Function]",x="[object GeneratorFunction]",C="[object Map]",_="[object Number]",I="[object Object]",E="[object Promise]",k="[object RegExp]",S="[object Set]",B="[object String]",M="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",D="[object DataView]",P="[object Float32Array]",L="[object Float64Array]",Q="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",U=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Y=RegExp(W.source),K=RegExp(q.source),$=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,ae=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,Ae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Be="['’]",Me="["+xe+"]",Te="["+Se+"]",Oe="["+Ce+"]",De="\\d+",Pe="["+_e+"]",Le="["+Ie+"]",Qe="[^"+xe+Se+De+_e+Ie+Ee+"]",Re="\\ud83c[\\udffb-\\udfff]",je="[^"+xe+"]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Ee+"]",He="\\u200d",Ue="(?:"+Le+"|"+Qe+")",Ge="(?:"+ze+"|"+Qe+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Oe+"|"+Re+")?",Ye="["+ke+"]?",Ke=Ye+qe+"(?:"+He+"(?:"+[je,Ne,Fe].join("|")+")"+Ye+qe+")*",$e="(?:"+[Pe,Ne,Fe].join("|")+")"+Ke,Je="(?:"+[je+Oe+"?",Oe,Ne,Fe,Me].join("|")+")",Xe=RegExp(Be,"g"),Ze=RegExp(Oe,"g"),et=RegExp(Re+"(?="+Re+")|"+Je+Ke,"g"),tt=RegExp([ze+"?"+Le+"+"+Ve+"(?="+[Te,ze,"$"].join("|")+")",Ge+"+"+We+"(?="+[Te,ze+Ue,"$"].join("|")+")",ze+"?"+Ue+"+"+Ve,ze+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,$e].join("|"),"g"),nt=RegExp("["+He+xe+Ce+ke+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ot={};ot[P]=ot[L]=ot[Q]=ot[R]=ot[j]=ot[N]=ot[F]=ot[z]=ot[H]=!0,ot[m]=ot[v]=ot[O]=ot[y]=ot[D]=ot[A]=ot[b]=ot[w]=ot[C]=ot[_]=ot[I]=ot[k]=ot[S]=ot[B]=ot[T]=!1;var st={};st[m]=st[v]=st[O]=st[D]=st[y]=st[A]=st[P]=st[L]=st[Q]=st[R]=st[j]=st[C]=st[_]=st[I]=st[k]=st[S]=st[B]=st[M]=st[N]=st[F]=st[z]=st[H]=!0,st[b]=st[w]=st[T]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,ht="object"==typeof Ri&&Ri&&Ri.Object===Object&&Ri,ft="object"==typeof self&&self&&self.Object===Object&&self,dt=ht||ft||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&e&&!e.nodeType&&e,mt=gt&&gt.exports===pt,vt=mt&&ht.process,yt=function(){try{return gt&&gt.require&&gt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),At=yt&&yt.isArrayBuffer,bt=yt&&yt.isDate,wt=yt&&yt.isMap,xt=yt&&yt.isRegExp,Ct=yt&&yt.isSet,_t=yt&&yt.isTypedArray;function It(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Tt(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Qt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var jt=Vt("length");function Nt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ft(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Ut,n)}function Ht(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Gt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:d}function Vt(e){return function(t){return null==t?n:t[e]}}function Wt(e){return function(t){return null==e?n:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Yt(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,dn(e)+1).replace(ie,""):e}function Jt(e){return function(t){return e(t)}}function Xt(e,t){return Dt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var nn=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),rn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ct[e]}function on(e){return nt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){return on(e)?function(e){for(var t=et.lastIndex=0;et.test(e);)++t;return t}(e):jt(e)}function fn(e){return on(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var pn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function e(t){var ae,xe=(t=null==t?dt:gn.defaults(dt.Object(),t,gn.pick(dt,it))).Array,Ce=t.Date,_e=t.Error,Ie=t.Function,Ee=t.Math,ke=t.Object,Se=t.RegExp,Be=t.String,Me=t.TypeError,Te=xe.prototype,Oe=Ie.prototype,De=ke.prototype,Pe=t["__core-js_shared__"],Le=Oe.toString,Qe=De.hasOwnProperty,Re=0,je=(ae=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"",Ne=De.toString,Fe=Le.call(ke),ze=dt._,He=Se("^"+Le.call(Qe).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=mt?t.Buffer:n,Ge=t.Symbol,Ve=t.Uint8Array,We=Ue?Ue.allocUnsafe:n,qe=cn(ke.getPrototypeOf,ke),Ye=ke.create,Ke=De.propertyIsEnumerable,$e=Te.splice,Je=Ge?Ge.isConcatSpreadable:n,et=Ge?Ge.iterator:n,nt=Ge?Ge.toStringTag:n,ct=function(){try{var e=ha(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ht=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ft=Ce&&Ce.now!==dt.Date.now&&Ce.now,pt=t.setTimeout!==dt.setTimeout&&t.setTimeout,gt=Ee.ceil,vt=Ee.floor,yt=ke.getOwnPropertySymbols,jt=Ue?Ue.isBuffer:n,Wt=t.isFinite,mn=Te.join,vn=cn(ke.keys,ke),yn=Ee.max,An=Ee.min,bn=Ce.now,wn=t.parseInt,xn=Ee.random,Cn=Te.reverse,_n=ha(t,"DataView"),In=ha(t,"Map"),En=ha(t,"Promise"),kn=ha(t,"Set"),Sn=ha(t,"WeakMap"),Bn=ha(ke,"create"),Mn=Sn&&new Sn,Tn={},On=Fa(_n),Dn=Fa(In),Pn=Fa(En),Ln=Fa(kn),Qn=Fa(Sn),Rn=Ge?Ge.prototype:n,jn=Rn?Rn.valueOf:n,Nn=Rn?Rn.toString:n;function Fn(e){if(is(e)&&!qo(e)&&!(e instanceof Gn)){if(e instanceof Un)return e;if(Qe.call(e,"__wrapped__"))return za(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!rs(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Hn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Wn(e);this.size=t.size}function $n(e,t){var n=qo(e),r=!n&&Wo(e),i=!n&&!r&&Jo(e),a=!n&&!r&&!i&&fs(e),o=n||r||i||a,s=o?Kt(e.length,Be):[],c=s.length;for(var l in e)!t&&!Qe.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ya(l,c))||s.push(l);return s}function Jn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function Xn(e,t){return Pa(Bi(e),sr(t,0,e.length))}function Zn(e){return Pa(Bi(e))}function er(e,t,r){(r!==n&&!Uo(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function tr(e,t,r){var i=e[t];Qe.call(e,t)&&Uo(i,r)&&(r!==n||t in e)||ar(e,t,r)}function nr(e,t){for(var n=e.length;n--;)if(Uo(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function ir(e,t){return e&&Mi(t,Ps(t),e)}function ar(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,i=t.length,a=xe(i),o=null==e;++r<i;)a[r]=o?n:Bs(e,t[r]);return a}function sr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,i,a,o){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!rs(e))return e;var h=qo(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Qe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Bi(e,s)}else{var f=pa(e),d=f==w||f==x;if(Jo(e))return Ci(e,c);if(f==I||f==m||d&&!a){if(s=l||d?{}:ma(e),!c)return l?function(e,t){return Mi(e,da(e),t)}(e,function(e,t){return e&&Mi(t,Ls(t),e)}(s,e)):function(e,t){return Mi(e,fa(e),t)}(e,ir(s,e))}else{if(!st[f])return a?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case O:return _i(e);case y:case A:return new i(+e);case D:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case L:case Q:case R:case j:case N:case F:case z:case H:return Ii(e,n);case C:return new i;case _:case B:return new i(e);case k:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new i;case M:return r=e,jn?ke(jn.call(r)):{}}}(e,f,c)}}o||(o=new Kn);var p=o.get(e);if(p)return p;o.set(e,s),ls(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,o))})):as(e)&&e.forEach((function(n,i){s.set(i,cr(n,t,r,i,e,o))}));var g=h?n:(u?l?ia:ra:l?Ls:Ps)(e);return kt(g||e,(function(n,i){g&&(n=e[i=n]),tr(s,i,cr(n,t,r,i,e,o))})),s}function lr(e,t,r){var i=r.length;if(null==e)return!i;for(e=ke(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function ur(e,t,i){if("function"!=typeof e)throw new Me(r);return Ma((function(){e.apply(n,i)}),t)}function hr(e,t,n,r){var i=-1,a=Tt,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Dt(t,Jt(n))),r?(a=Ot,o=!1):t.length>=200&&(a=Zt,o=!1,t=new Yn(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,o&&h==h){for(var f=l;f--;)if(t[f]===h)continue e;c.push(u)}else a(t,h,r)||c.push(u)}return c}Fn.templateSettings={escape:$,evaluate:J,interpolate:X,variable:"",imports:{_:Fn}},Fn.prototype=Hn.prototype,Fn.prototype.constructor=Fn,Un.prototype=zn(Hn.prototype),Un.prototype.constructor=Un,Gn.prototype=zn(Hn.prototype),Gn.prototype.constructor=Gn,Vn.prototype.clear=function(){this.__data__=Bn?Bn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Bn){var r=t[e];return r===i?n:r}return Qe.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Bn?t[e]!==n:Qe.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bn&&t===n?i:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0||(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?n:t[r][1]},Wn.prototype.has=function(e){return nr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(In||Wn),string:new Vn}},qn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return la(this,e).get(e)},qn.prototype.has=function(e){return la(this,e).has(e)},qn.prototype.set=function(e,t){var n=la(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Di(br),dr=Di(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(c===n?s==s&&!hs(s):r(s,c)))var c=s,l=o}return l}function mr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=va),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?vr(s,t-1,n,r,i):Pt(i,s):r||(i[i.length]=s)}return i}var yr=Pi(),Ar=Pi(!0);function br(e,t){return e&&yr(e,t,Ps)}function wr(e,t){return e&&Ar(e,t,Ps)}function xr(e,t){return Mt(t,(function(t){return es(e[t])}))}function Cr(e,t){for(var r=0,i=(t=Ai(t,e)).length;null!=e&&r<i;)e=e[Na(t[r++])];return r&&r==i?e:n}function _r(e,t,n){var r=t(e);return qo(e)?r:Pt(r,n(e))}function Ir(e){return null==e?e===n?"[object Undefined]":"[object Null]":nt&&nt in ke(e)?function(e){var t=Qe.call(e,nt),r=e[nt];try{e[nt]=n;var i=!0}catch(e){}var a=Ne.call(e);return i&&(t?e[nt]=r:delete e[nt]),a}(e):function(e){return Ne.call(e)}(e)}function Er(e,t){return e>t}function kr(e,t){return null!=e&&Qe.call(e,t)}function Sr(e,t){return null!=e&&t in ke(e)}function Br(e,t,r){for(var i=r?Ot:Tt,a=e[0].length,o=e.length,s=o,c=xe(o),l=1/0,u=[];s--;){var h=e[s];s&&t&&(h=Dt(h,Jt(t))),l=An(h.length,l),c[s]=!r&&(t||a>=120&&h.length>=120)?new Yn(s&&h):n}h=e[0];var f=-1,d=c[0];e:for(;++f<a&&u.length<l;){var p=h[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(d?Zt(d,g):i(u,g,r))){for(s=o;--s;){var m=c[s];if(!(m?Zt(m,g):i(e[s],g,r)))continue e}d&&d.push(g),u.push(p)}}return u}function Mr(e,t,r){var i=null==(e=ka(e,t=Ai(t,e)))?e:e[Na(Xa(t))];return null==i?n:It(i,e,r)}function Tr(e){return is(e)&&Ir(e)==m}function Or(e,t,r,i,a){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,r,i,a,o){var s=qo(e),c=qo(t),l=s?v:pa(e),u=c?v:pa(t),h=(l=l==m?I:l)==I,f=(u=u==m?I:u)==I,d=l==u;if(d&&Jo(e)){if(!Jo(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Kn),s||fs(e)?ta(e,t,r,i,a,o):function(e,t,n,r,i,a,o){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case y:case A:case _:return Uo(+e,+t);case b:return e.name==t.name&&e.message==t.message;case k:case B:return e==t+"";case C:var s=sn;case S:var c=1&r;if(s||(s=un),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=ta(s(e),s(t),r,i,a,o);return o.delete(e),u;case M:if(jn)return jn.call(e)==jn.call(t)}return!1}(e,t,l,r,i,a,o);if(!(1&r)){var p=h&&Qe.call(e,"__wrapped__"),g=f&&Qe.call(t,"__wrapped__");if(p||g){var w=p?e.value():e,x=g?t.value():t;return o||(o=new Kn),a(w,x,r,i,o)}}return!!d&&(o||(o=new Kn),function(e,t,r,i,a,o){var s=1&r,c=ra(e),l=c.length;if(l!=ra(t).length&&!s)return!1;for(var u=l;u--;){var h=c[u];if(!(s?h in t:Qe.call(t,h)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){var m=e[h=c[u]],v=t[h];if(i)var y=s?i(v,m,h,t,e,o):i(m,v,h,e,t,o);if(!(y===n?m===v||a(m,v,r,i,o):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var A=e.constructor,b=t.constructor;A==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,i,a,o))}(e,t,r,i,Or,a))}function Dr(e,t,r,i){var a=r.length,o=a,s=!i;if(null==e)return!o;for(e=ke(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){var l=(c=r[a])[0],u=e[l],h=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Kn;if(i)var d=i(u,h,l,e,t,f);if(!(d===n?Or(h,u,3,i,f):d))return!1}}return!0}function Pr(e){return!(!rs(e)||(t=e,je&&je in t))&&(es(e)?He:me).test(Fa(e));var t}function Lr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?qo(e)?zr(e[0],e[1]):Fr(e):gc(e)}function Qr(e){if(!Ca(e))return vn(e);var t=[];for(var n in ke(e))Qe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Rr(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Ca(e),n=[];for(var r in e)("constructor"!=r||!t&&Qe.call(e,r))&&n.push(r);return n}function jr(e,t){return e<t}function Nr(e,t){var n=-1,r=Ko(e)?xe(e.length):[];return fr(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function Fr(e){var t=ua(e);return 1==t.length&&t[0][2]?Ia(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function zr(e,t){return ba(e)&&_a(t)?Ia(Na(e),t):function(r){var i=Bs(r,e);return i===n&&i===t?Ms(r,e):Or(t,i,3)}}function Hr(e,t,r,i,a){e!==t&&yr(t,(function(o,s){if(a||(a=new Kn),rs(o))!function(e,t,r,i,a,o,s){var c=Sa(e,r),l=Sa(t,r),u=s.get(l);if(u)er(e,r,u);else{var h=o?o(c,l,r+"",e,t,s):n,f=h===n;if(f){var d=qo(l),p=!d&&Jo(l),g=!d&&!p&&fs(l);h=l,d||p||g?qo(c)?h=c:$o(c)?h=Bi(c):p?(f=!1,h=Ci(l,!0)):g?(f=!1,h=Ii(l,!0)):h=[]:ss(l)||Wo(l)?(h=c,Wo(c)?h=bs(c):rs(c)&&!es(c)||(h=ma(l))):f=!1}f&&(s.set(l,h),a(h,l,i,o,s),s.delete(l)),er(e,r,h)}}(e,t,s,r,Hr,i,a);else{var c=i?i(Sa(e,s),o,s+"",e,t,a):n;c===n&&(c=o),er(e,s,c)}}),Ls)}function Ur(e,t){var r=e.length;if(r)return ya(t+=t<0?r:0,r)?e[t]:n}function Gr(e,t,n){t=t.length?Dt(t,(function(e){return qo(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;return t=Dt(t,Jt(ca())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Nr(e,(function(e,n,i){return{criteria:Dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ei(i[r],a[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Cr(e,o);n(s,o)&&Zr(a,Ai(o,e),s)}return a}function Wr(e,t,n,r){var i=r?Ht:zt,a=-1,o=t.length,s=e;for(e===t&&(t=Bi(t)),n&&(s=Dt(e,Jt(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&$e.call(s,c,1),$e.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ya(i)?$e.call(e,i,1):hi(e,i)}}return e}function Yr(e,t){return e+vt(xn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function $r(e,t){return Ta(Ea(e,t,oc),e+"")}function Jr(e){return Jn(Us(e))}function Xr(e,t){var n=Us(e);return Pa(n,sr(t,0,n.length))}function Zr(e,t,r,i){if(!rs(e))return e;for(var a=-1,o=(t=Ai(t,e)).length,s=o-1,c=e;null!=c&&++a<o;){var l=Na(t[a]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=s){var h=c[l];(u=i?i(h,l,c):n)===n&&(u=rs(h)?h:ya(t[a+1])?[]:{})}tr(c,l,u),c=c[l]}return e}var ei=Mn?function(e,t){return Mn.set(e,t),e}:oc,ti=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rc(t),writable:!0})}:oc;function ni(e){return Pa(Us(e))}function ri(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=xe(i);++r<i;)a[r]=e[r+t];return a}function ii(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!hs(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return oi(e,t,oc,n)}function oi(e,t,r,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,c=null===t,l=hs(t),u=t===n;a<o;){var h=vt((a+o)/2),f=r(e[h]),d=f!==n,p=null===f,g=f==f,m=hs(f);if(s)var v=i||g;else v=u?g&&(i||d):c?g&&d&&(i||!p):l?g&&d&&!p&&(i||!m):!p&&!m&&(i?f<=t:f<t);v?a=h+1:o=h}return An(o,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Uo(s,c)){var c=s;a[i++]=0===o?0:o}}return a}function ci(e){return"number"==typeof e?e:hs(e)?d:+e}function li(e){if("string"==typeof e)return e;if(qo(e))return Dt(e,li)+"";if(hs(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=Tt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Ot;else if(a>=200){var l=t?null:Ki(e);if(l)return un(l);o=!1,i=Zt,c=new Yn}else c=t?[]:s;e:for(;++r<a;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),s.push(u)}else i(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s}function hi(e,t){return null==(e=ka(e,t=Ai(t,e)))||delete e[Na(Xa(t))]}function fi(e,t,n,r){return Zr(e,t,n(Cr(e,t)),r)}function di(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ri(e,r?0:a,r?a+1:i):ri(e,r?a+1:0,r?i:a)}function pi(e,t){var n=e;return n instanceof Gn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function gi(e,t,n){var r=e.length;if(r<2)return r?ui(e[0]):[];for(var i=-1,a=xe(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=hr(a[i]||o,e[s],t,n));return ui(vr(a,1),t,n)}function mi(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function vi(e){return $o(e)?e:[]}function yi(e){return"function"==typeof e?e:oc}function Ai(e,t){return qo(e)?e:ba(e,t)?[e]:ja(ws(e))}var bi=$r;function wi(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ri(e,t,r)}var xi=ht||function(e){return dt.clearTimeout(e)};function Ci(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ii(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var r=e!==n,i=null===e,a=e==e,o=hs(e),s=t!==n,c=null===t,l=t==t,u=hs(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function ki(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=yn(a-o,0),u=xe(c+l),h=!r;++s<c;)u[s]=t[s];for(;++i<o;)(h||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Si(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=yn(a-s,0),h=xe(u+l),f=!r;++i<u;)h[i]=e[i];for(var d=i;++c<l;)h[d+c]=t[c];for(;++o<s;)(f||i<a)&&(h[d+n[o]]=e[i++]);return h}function Bi(e,t){var n=-1,r=e.length;for(t||(t=xe(r));++n<r;)t[n]=e[n];return t}function Mi(e,t,r,i){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ar(r,c,l):tr(r,c,l)}return r}function Ti(e,t){return function(n,r){var i=qo(n)?Et:rr,a=t?t():{};return i(n,e,ca(r,2),a)}}function Oi(e){return $r((function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(a--,o):n,s&&Aa(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=ke(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t}))}function Di(e,t){return function(n,r){if(null==n)return n;if(!Ko(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=ke(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Pi(e){return function(t,n,r){for(var i=-1,a=ke(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}function Li(e){return function(t){var r=on(t=ws(t))?fn(t):n,i=r?r[0]:t.charAt(0),a=r?wi(r,1).join(""):t.slice(1);return i[e]()+a}}function Qi(e){return function(t){return Lt(ec(Ws(t).replace(Xe,"")),e,"")}}function Ri(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function ji(e){return function(t,r,i){var a=ke(t);if(!Ko(t)){var o=ca(r,3);t=Ps(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function Ni(e){return na((function(t){var i=t.length,a=i,o=Un.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Me(r);if(o&&!c&&"wrapper"==oa(s))var c=new Un([],!0)}for(a=c?a:i;++a<i;){var l=oa(s=t[a]),u="wrapper"==l?aa(s):n;c=u&&wa(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[oa(u[0])].apply(c,u[3]):1==s.length&&wa(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&qo(n))return c.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}}))}function Fi(e,t,r,i,a,o,s,c,u,h){var f=t&l,d=1&t,p=2&t,g=24&t,m=512&t,v=p?n:Ri(e);return function l(){for(var y=arguments.length,A=xe(y),b=y;b--;)A[b]=arguments[b];if(g)var w=sa(l),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(A,w);if(i&&(A=ki(A,i,a,g)),o&&(A=Si(A,o,s,g)),y-=x,g&&y<h){var C=ln(A,w);return qi(e,t,Fi,l.placeholder,r,A,C,c,u,h-y)}var _=d?r:this,I=p?_[e]:e;return y=A.length,c?A=function(e,t){for(var r=e.length,i=An(t.length,r),a=Bi(e);i--;){var o=t[i];e[i]=ya(o,r)?a[o]:n}return e}(A,c):m&&y>1&&A.reverse(),f&&u<y&&(A.length=u),this&&this!==dt&&this instanceof l&&(I=v||Ri(I)),I.apply(_,A)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ci(r),i=ci(i)),a=e(r,i)}return a}}function Ui(e){return na((function(t){return t=Dt(t,Jt(ca())),$r((function(n){var r=this;return e(t,(function(e){return It(e,r,n)}))}))}))}function Gi(e,t){var r=(t=t===n?" ":li(t)).length;if(r<2)return r?Kr(t,e):t;var i=Kr(t,gt(e/hn(t)));return on(t)?wi(fn(i),0,e).join(""):i.slice(0,e)}function Vi(e){return function(t,r,i){return i&&"number"!=typeof i&&Aa(t,r,i)&&(r=i=n),t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n,r){for(var i=-1,a=yn(gt((t-e)/(n||1)),0),o=xe(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,r,i=i===n?t<r?1:-1:ms(i),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=As(t),n=As(n)),e(t,n)}}function qi(e,t,r,i,a,o,l,u,h,f){var d=8&t;t|=d?s:c,4&(t&=~(d?c:s))||(t&=-4);var p=[e,t,a,d?o:n,d?l:n,d?n:o,d?n:l,u,h,f],g=r.apply(n,p);return wa(e)&&Ba(g,p),g.placeholder=i,Oa(g,e,t)}function Yi(e){var t=Ee[e];return function(e,n){if(e=As(e),(n=null==n?0:An(vs(n),292))&&Wt(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=kn&&1/un(new kn([,-0]))[1]==h?function(e){return new kn(e)}:hc;function $i(e){return function(t){var n=pa(t);return n==C?sn(t):n==S?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ji(e,t,i,h,f,d,p,g){var m=2&t;if(!m&&"function"!=typeof e)throw new Me(r);var v=h?h.length:0;if(v||(t&=-97,h=f=n),p=p===n?p:yn(vs(p),0),g=g===n?g:vs(g),v-=f?f.length:0,t&c){var y=h,A=f;h=f=n}var b=m?n:aa(e),w=[e,t,i,h,f,y,A,d,p,g];if(b&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var h=e[3];e[3]=h?ki(h,c,t[4]):c,e[4]=h?ln(e[3],a):t[4]}(c=t[5])&&(h=e[5],e[5]=h?Si(h,c,t[6]):c,e[6]=h?ln(e[5],a):t[6]),(c=t[7])&&(e[7]=c),r&l&&(e[8]=null==e[8]?t[8]:An(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(w,b),e=w[0],t=w[1],i=w[2],h=w[3],f=w[4],!(g=w[9]=w[9]===n?m?0:e.length:yn(w[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,r){var i=Ri(e);return function a(){for(var o=arguments.length,s=xe(o),c=o,l=sa(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:ln(s,l);return(o-=u.length)<r?qi(e,t,Fi,a.placeholder,n,s,u,n,n,r-o):It(this&&this!==dt&&this instanceof a?i:e,this,s)}}(e,t,g):t!=s&&33!=t||f.length?Fi.apply(n,w):function(e,t,n,r){var i=1&t,a=Ri(e);return function t(){for(var o=-1,s=arguments.length,c=-1,l=r.length,u=xe(l+s),h=this&&this!==dt&&this instanceof t?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++o];return It(h,i?n:this,u)}}(e,t,i,h);else var x=function(e,t,n){var r=1&t,i=Ri(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Oa((b?ei:Ba)(x,w),e,t)}function Xi(e,t,r,i){return e===n||Uo(e,De[r])&&!Qe.call(i,r)?t:e}function Zi(e,t,r,i,a,o){return rs(e)&&rs(t)&&(o.set(t,e),Hr(e,t,n,Zi,o),o.delete(t)),e}function ea(e){return ss(e)?n:e}function ta(e,t,r,i,a,o){var s=1&r,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var f=-1,d=!0,p=2&r?new Yn:n;for(o.set(e,t),o.set(t,e);++f<c;){var g=e[f],m=t[f];if(i)var v=s?i(m,g,f,t,e,o):i(g,m,f,e,t,o);if(v!==n){if(v)continue;d=!1;break}if(p){if(!Rt(t,(function(e,t){if(!Zt(p,t)&&(g===e||a(g,e,r,i,o)))return p.push(t)}))){d=!1;break}}else if(g!==m&&!a(g,m,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function na(e){return Ta(Ea(e,n,qa),e+"")}function ra(e){return _r(e,Ps,fa)}function ia(e){return _r(e,Ls,da)}var aa=Mn?function(e){return Mn.get(e)}:hc;function oa(e){for(var t=e.name+"",n=Tn[t],r=Qe.call(Tn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function sa(e){return(Qe.call(Fn,"placeholder")?Fn:e).placeholder}function ca(){var e=Fn.iteratee||sc;return e=e===sc?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ua(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_a(i)]}return t}function ha(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Pr(r)?r:n}var fa=yt?function(e){return null==e?[]:(e=ke(e),Mt(yt(e),(function(t){return Ke.call(e,t)})))}:yc,da=yt?function(e){for(var t=[];e;)Pt(t,fa(e)),e=qe(e);return t}:yc,pa=Ir;function ga(e,t,n){for(var r=-1,i=(t=Ai(t,e)).length,a=!1;++r<i;){var o=Na(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ns(i)&&ya(o,i)&&(qo(e)||Wo(e))}function ma(e){return"function"!=typeof e.constructor||Ca(e)?{}:zn(qe(e))}function va(e){return qo(e)||Wo(e)||!!(Je&&e&&e[Je])}function ya(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function Aa(e,t,n){if(!rs(n))return!1;var r=typeof t;return!!("number"==r?Ko(n)&&ya(t,n.length):"string"==r&&t in n)&&Uo(n[t],e)}function ba(e,t){if(qo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hs(e))||ee.test(e)||!Z.test(e)||null!=t&&e in ke(t)}function wa(e){var t=oa(e),n=Fn[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=aa(n);return!!r&&e===r[0]}(_n&&pa(new _n(new ArrayBuffer(1)))!=D||In&&pa(new In)!=C||En&&pa(En.resolve())!=E||kn&&pa(new kn)!=S||Sn&&pa(new Sn)!=T)&&(pa=function(e){var t=Ir(e),r=t==I?e.constructor:n,i=r?Fa(r):"";if(i)switch(i){case On:return D;case Dn:return C;case Pn:return E;case Ln:return S;case Qn:return T}return t});var xa=Pe?es:Ac;function Ca(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function _a(e){return e==e&&!rs(e)}function Ia(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in ke(r))}}function Ea(e,t,r){return t=yn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=yn(n.length-t,0),o=xe(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=xe(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),It(e,this,s)}}function ka(e,t){return t.length<2?e:Cr(e,ri(t,0,-1))}function Sa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ba=Da(ei),Ma=pt||function(e,t){return dt.setTimeout(e,t)},Ta=Da(ti);function Oa(e,t,n){var r=t+"";return Ta(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(g,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ce):[]}(r),n)))}function Da(e){var t=0,r=0;return function(){var i=bn(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Pa(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Yr(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var La,Qa,Ra,ja=(La=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t},Qa=Ro(La,(function(e){return 500===Ra.size&&Ra.clear(),e})),Ra=Qa.cache,Qa);function Na(e){if("string"==typeof e||hs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function za(e){if(e instanceof Gn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Bi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ha=$r((function(e,t){return $o(e)?hr(e,vr(t,1,$o,!0)):[]})),Ua=$r((function(e,t){var r=Xa(t);return $o(r)&&(r=n),$o(e)?hr(e,vr(t,1,$o,!0),ca(r,2)):[]})),Ga=$r((function(e,t){var r=Xa(t);return $o(r)&&(r=n),$o(e)?hr(e,vr(t,1,$o,!0),n,r):[]}));function Va(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=yn(r+i,0)),Ft(e,ca(t,3),i)}function Wa(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=vs(r),a=r<0?yn(i+a,0):An(a,i-1)),Ft(e,ca(t,3),a,!0)}function qa(e){return null!=e&&e.length?vr(e,1):[]}function Ya(e){return e&&e.length?e[0]:n}var Ka=$r((function(e){var t=Dt(e,vi);return t.length&&t[0]===e[0]?Br(t):[]})),$a=$r((function(e){var t=Xa(e),r=Dt(e,vi);return t===Xa(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Br(r,ca(t,2)):[]})),Ja=$r((function(e){var t=Xa(e),r=Dt(e,vi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Br(r,n,t):[]}));function Xa(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Za=$r(eo);function eo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var to=na((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,Dt(t,(function(e){return ya(e,n)?+e:e})).sort(Ei)),r}));function no(e){return null==e?e:Cn.call(e)}var ro=$r((function(e){return ui(vr(e,1,$o,!0))})),io=$r((function(e){var t=Xa(e);return $o(t)&&(t=n),ui(vr(e,1,$o,!0),ca(t,2))})),ao=$r((function(e){var t=Xa(e);return t="function"==typeof t?t:n,ui(vr(e,1,$o,!0),n,t)}));function oo(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if($o(e))return t=yn(e.length,t),!0})),Kt(t,(function(t){return Dt(e,Vt(t))}))}function so(e,t){if(!e||!e.length)return[];var r=oo(e);return null==t?r:Dt(r,(function(e){return It(t,n,e)}))}var co=$r((function(e,t){return $o(e)?hr(e,t):[]})),lo=$r((function(e){return gi(Mt(e,$o))})),uo=$r((function(e){var t=Xa(e);return $o(t)&&(t=n),gi(Mt(e,$o),ca(t,2))})),ho=$r((function(e){var t=Xa(e);return t="function"==typeof t?t:n,gi(Mt(e,$o),n,t)})),fo=$r(oo),po=$r((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,so(e,r)}));function go(e){var t=Fn(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var vo=na((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Gn&&ya(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:mo,args:[a],thisArg:n}),new Un(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)})),yo=Ti((function(e,t,n){Qe.call(e,n)?++e[n]:ar(e,n,1)})),Ao=ji(Va),bo=ji(Wa);function wo(e,t){return(qo(e)?kt:fr)(e,ca(t,3))}function xo(e,t){return(qo(e)?St:dr)(e,ca(t,3))}var Co=Ti((function(e,t,n){Qe.call(e,n)?e[n].push(t):ar(e,n,[t])})),_o=$r((function(e,t,n){var r=-1,i="function"==typeof t,a=Ko(e)?xe(e.length):[];return fr(e,(function(e){a[++r]=i?It(t,e,n):Mr(e,t,n)})),a})),Io=Ti((function(e,t,n){ar(e,n,t)}));function Eo(e,t){return(qo(e)?Dt:Nr)(e,ca(t,3))}var ko=Ti((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),So=$r((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Aa(e,t[0],t[1])?t=[]:n>2&&Aa(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,vr(t,1),[])})),Bo=ft||function(){return dt.Date.now()};function Mo(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ji(e,l,n,n,n,n,t)}function To(e,t){var i;if("function"!=typeof t)throw new Me(r);return e=vs(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Oo=$r((function(e,t,n){var r=1;if(n.length){var i=ln(n,sa(Oo));r|=s}return Ji(e,r,t,n,i)})),Do=$r((function(e,t,n){var r=3;if(n.length){var i=ln(n,sa(Do));r|=s}return Ji(t,r,e,n,i)}));function Po(e,t,i){var a,o,s,c,l,u,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Me(r);function g(t){var r=a,i=o;return a=o=n,h=t,c=e.apply(i,r)}function m(e){var r=e-u;return u===n||r>=t||r<0||d&&e-h>=s}function v(){var e=Bo();if(m(e))return y(e);l=Ma(v,function(e){var n=t-(e-u);return d?An(n,s-(e-h)):n}(e))}function y(e){return l=n,p&&a?g(e):(a=o=n,c)}function A(){var e=Bo(),r=m(e);if(a=arguments,o=this,u=e,r){if(l===n)return function(e){return h=e,l=Ma(v,t),f?g(e):c}(u);if(d)return xi(l),l=Ma(v,t),g(u)}return l===n&&(l=Ma(v,t)),c}return t=As(t)||0,rs(i)&&(f=!!i.leading,s=(d="maxWait"in i)?yn(As(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),A.cancel=function(){l!==n&&xi(l),h=0,a=u=o=l=n},A.flush=function(){return l===n?c:y(Bo())},A}var Lo=$r((function(e,t){return ur(e,1,t)})),Qo=$r((function(e,t,n){return ur(e,As(t)||0,n)}));function Ro(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ro.Cache||qn),n}function jo(e){if("function"!=typeof e)throw new Me(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ro.Cache=qn;var No=bi((function(e,t){var n=(t=1==t.length&&qo(t[0])?Dt(t[0],Jt(ca())):Dt(vr(t,1),Jt(ca()))).length;return $r((function(r){for(var i=-1,a=An(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return It(e,this,r)}))})),Fo=$r((function(e,t){var r=ln(t,sa(Fo));return Ji(e,s,n,t,r)})),zo=$r((function(e,t){var r=ln(t,sa(zo));return Ji(e,c,n,t,r)})),Ho=na((function(e,t){return Ji(e,u,n,n,n,t)}));function Uo(e,t){return e===t||e!=e&&t!=t}var Go=Wi(Er),Vo=Wi((function(e,t){return e>=t})),Wo=Tr(function(){return arguments}())?Tr:function(e){return is(e)&&Qe.call(e,"callee")&&!Ke.call(e,"callee")},qo=xe.isArray,Yo=At?Jt(At):function(e){return is(e)&&Ir(e)==O};function Ko(e){return null!=e&&ns(e.length)&&!es(e)}function $o(e){return is(e)&&Ko(e)}var Jo=jt||Ac,Xo=bt?Jt(bt):function(e){return is(e)&&Ir(e)==A};function Zo(e){if(!is(e))return!1;var t=Ir(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Ir(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var as=wt?Jt(wt):function(e){return is(e)&&pa(e)==C};function os(e){return"number"==typeof e||is(e)&&Ir(e)==_}function ss(e){if(!is(e)||Ir(e)!=I)return!1;var t=qe(e);if(null===t)return!0;var n=Qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Fe}var cs=xt?Jt(xt):function(e){return is(e)&&Ir(e)==k},ls=Ct?Jt(Ct):function(e){return is(e)&&pa(e)==S};function us(e){return"string"==typeof e||!qo(e)&&is(e)&&Ir(e)==B}function hs(e){return"symbol"==typeof e||is(e)&&Ir(e)==M}var fs=_t?Jt(_t):function(e){return is(e)&&ns(e.length)&&!!ot[Ir(e)]},ds=Wi(jr),ps=Wi((function(e,t){return e<=t}));function gs(e){if(!e)return[];if(Ko(e))return us(e)?fn(e):Bi(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=pa(e);return(t==C?sn:t==S?un:Us)(e)}function ms(e){return e?(e=As(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=ms(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?sr(vs(e),0,p):0}function As(e){if("number"==typeof e)return e;if(hs(e))return d;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=ge.test(e);return n||ve.test(e)?ut(e.slice(2),n?2:8):pe.test(e)?d:+e}function bs(e){return Mi(e,Ls(e))}function ws(e){return null==e?"":li(e)}var xs=Oi((function(e,t){if(Ca(t)||Ko(t))Mi(t,Ps(t),e);else for(var n in t)Qe.call(t,n)&&tr(e,n,t[n])})),Cs=Oi((function(e,t){Mi(t,Ls(t),e)})),_s=Oi((function(e,t,n,r){Mi(t,Ls(t),e,r)})),Is=Oi((function(e,t,n,r){Mi(t,Ps(t),e,r)})),Es=na(or),ks=$r((function(e,t){e=ke(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Aa(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Ls(o),c=-1,l=s.length;++c<l;){var u=s[c],h=e[u];(h===n||Uo(h,De[u])&&!Qe.call(e,u))&&(e[u]=o[u])}return e})),Ss=$r((function(e){return e.push(n,Zi),It(Rs,n,e)}));function Bs(e,t,r){var i=null==e?n:Cr(e,t);return i===n?r:i}function Ms(e,t){return null!=e&&ga(e,t,Sr)}var Ts=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),rc(oc)),Os=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Qe.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Ds=$r(Mr);function Ps(e){return Ko(e)?$n(e):Qr(e)}function Ls(e){return Ko(e)?$n(e,!0):Rr(e)}var Qs=Oi((function(e,t,n){Hr(e,t,n)})),Rs=Oi((function(e,t,n,r){Hr(e,t,n,r)})),js=na((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=Ai(t,e),r||(r=t.length>1),t})),Mi(e,ia(e),n),r&&(n=cr(n,7,ea));for(var i=t.length;i--;)hi(n,t[i]);return n})),Ns=na((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ms(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Dt(ia(e),(function(e){return[e]}));return t=ca(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var zs=$i(Ps),Hs=$i(Ls);function Us(e){return null==e?[]:Xt(e,Ps(e))}var Gs=Qi((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Zs(ws(e).toLowerCase())}function Ws(e){return(e=ws(e))&&e.replace(Ae,nn).replace(Ze,"")}var qs=Qi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=Qi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Li("toLowerCase"),$s=Qi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Js=Qi((function(e,t,n){return e+(n?" ":"")+Zs(t)})),Xs=Qi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Li("toUpperCase");function ec(e,t,r){return e=ws(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var tc=$r((function(e,t){try{return It(e,n,t)}catch(e){return Zo(e)?e:new _e(e)}})),nc=na((function(e,t){return kt(t,(function(t){t=Na(t),ar(e,t,Oo(e[t],e))})),e}));function rc(e){return function(){return e}}var ic=Ni(),ac=Ni(!0);function oc(e){return e}function sc(e){return Lr("function"==typeof e?e:cr(e,1))}var cc=$r((function(e,t){return function(n){return Mr(n,e,t)}})),lc=$r((function(e,t){return function(n){return Mr(e,n,t)}}));function uc(e,t,n){var r=Ps(t),i=xr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Ps(t)));var a=!(rs(n)&&"chain"in n&&!n.chain),o=es(e);return kt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Bi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function hc(){}var fc=Ui(Dt),dc=Ui(Bt),pc=Ui(Rt);function gc(e){return ba(e)?Vt(Na(e)):function(e){return function(t){return Cr(t,e)}}(e)}var mc=Vi(),vc=Vi(!0);function yc(){return[]}function Ac(){return!1}var bc,wc=Hi((function(e,t){return e+t}),0),xc=Yi("ceil"),Cc=Hi((function(e,t){return e/t}),1),_c=Yi("floor"),Ic=Hi((function(e,t){return e*t}),1),Ec=Yi("round"),kc=Hi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Me(r);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Mo,Fn.assign=xs,Fn.assignIn=Cs,Fn.assignInWith=_s,Fn.assignWith=Is,Fn.at=Es,Fn.before=To,Fn.bind=Oo,Fn.bindAll=nc,Fn.bindKey=Do,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Fn.chain=go,Fn.chunk=function(e,t,r){t=(r?Aa(e,t,r):t===n)?1:yn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=xe(gt(i/t));a<i;)s[o++]=ri(e,a,a+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Pt(qo(n)?Bi(n):[n],vr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Me(r);return[n(e[0]),e[1]]})):[],$r((function(n){for(var r=-1;++r<t;){var i=e[r];if(It(i[0],this,n))return It(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Fn.constant=rc,Fn.countBy=yo,Fn.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Fn.curry=function e(t,r,i){var a=Ji(t,8,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},Fn.curryRight=function e(t,r,i){var a=Ji(t,o,n,n,n,n,n,r=i?n:r);return a.placeholder=e.placeholder,a},Fn.debounce=Po,Fn.defaults=ks,Fn.defaultsDeep=Ss,Fn.defer=Lo,Fn.delay=Qo,Fn.difference=Ha,Fn.differenceBy=Ua,Fn.differenceWith=Ga,Fn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ri(e,(t=r||t===n?1:vs(t))<0?0:t,i):[]},Fn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ri(e,0,(t=i-(t=r||t===n?1:vs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?di(e,ca(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?di(e,ca(t,3),!0):[]},Fn.fill=function(e,t,r,i){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&Aa(e,t,r)&&(r=0,i=a),function(e,t,r,i){var a=e.length;for((r=vs(r))<0&&(r=-r>a?0:a+r),(i=i===n||i>a?a:vs(i))<0&&(i+=a),i=r>i?0:ys(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Fn.filter=function(e,t){return(qo(e)?Mt:mr)(e,ca(t,3))},Fn.flatMap=function(e,t){return vr(Eo(e,t),1)},Fn.flatMapDeep=function(e,t){return vr(Eo(e,t),h)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:vs(r),vr(Eo(e,t),r)},Fn.flatten=qa,Fn.flattenDeep=function(e){return null!=e&&e.length?vr(e,h):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===n?1:vs(t)):[]},Fn.flip=function(e){return Ji(e,512)},Fn.flow=ic,Fn.flowRight=ac,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:xr(e,Ps(e))},Fn.functionsIn=function(e){return null==e?[]:xr(e,Ls(e))},Fn.groupBy=Co,Fn.initial=function(e){return null!=e&&e.length?ri(e,0,-1):[]},Fn.intersection=Ka,Fn.intersectionBy=$a,Fn.intersectionWith=Ja,Fn.invert=Ts,Fn.invertBy=Os,Fn.invokeMap=_o,Fn.iteratee=sc,Fn.keyBy=Io,Fn.keys=Ps,Fn.keysIn=Ls,Fn.map=Eo,Fn.mapKeys=function(e,t){var n={};return t=ca(t,3),br(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=ca(t,3),br(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Fr(cr(e,1))},Fn.matchesProperty=function(e,t){return zr(e,cr(t,1))},Fn.memoize=Ro,Fn.merge=Qs,Fn.mergeWith=Rs,Fn.method=cc,Fn.methodOf=lc,Fn.mixin=uc,Fn.negate=jo,Fn.nthArg=function(e){return e=vs(e),$r((function(t){return Ur(t,e)}))},Fn.omit=js,Fn.omitBy=function(e,t){return Fs(e,jo(ca(t)))},Fn.once=function(e){return To(2,e)},Fn.orderBy=function(e,t,r,i){return null==e?[]:(qo(t)||(t=null==t?[]:[t]),qo(r=i?n:r)||(r=null==r?[]:[r]),Gr(e,t,r))},Fn.over=fc,Fn.overArgs=No,Fn.overEvery=dc,Fn.overSome=pc,Fn.partial=Fo,Fn.partialRight=zo,Fn.partition=ko,Fn.pick=Ns,Fn.pickBy=Fs,Fn.property=gc,Fn.propertyOf=function(e){return function(t){return null==e?n:Cr(e,t)}},Fn.pull=Za,Fn.pullAll=eo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,ca(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wr(e,t,n,r):e},Fn.pullAt=to,Fn.range=mc,Fn.rangeRight=vc,Fn.rearg=Ho,Fn.reject=function(e,t){return(qo(e)?Mt:mr)(e,jo(ca(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ca(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return qr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Me(r);return $r(e,t=t===n?t:vs(t))},Fn.reverse=no,Fn.sampleSize=function(e,t,r){return t=(r?Aa(e,t,r):t===n)?1:vs(t),(qo(e)?Xn:Xr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Fn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Zr(e,t,r,i)},Fn.shuffle=function(e){return(qo(e)?Zn:ni)(e)},Fn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Aa(e,t,r)?(t=0,r=i):(t=null==t?0:vs(t),r=r===n?i:vs(r)),ri(e,t,r)):[]},Fn.sortBy=So,Fn.sortedUniq=function(e){return e&&e.length?si(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?si(e,ca(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&Aa(e,t,r)&&(t=r=n),(r=r===n?p:r>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!cs(t))&&!(t=li(t))&&on(e)?wi(fn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Me(r);return t=null==t?0:yn(vs(t),0),$r((function(n){var r=n[t],i=wi(n,0,t);return r&&Pt(i,r),It(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?ri(e,0,(t=r||t===n?1:vs(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ri(e,(t=i-(t=r||t===n?1:vs(t)))<0?0:t,i):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?di(e,ca(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?di(e,ca(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Me(r);return rs(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Po(e,t,{leading:i,maxWait:t,trailing:a})},Fn.thru=mo,Fn.toArray=gs,Fn.toPairs=zs,Fn.toPairsIn=Hs,Fn.toPath=function(e){return qo(e)?Dt(e,Na):hs(e)?[e]:Bi(ja(ws(e)))},Fn.toPlainObject=bs,Fn.transform=function(e,t,n){var r=qo(e),i=r||Jo(e)||fs(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:rs(e)&&es(a)?zn(qe(e)):{}}return(i?kt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return Mo(e,1)},Fn.union=ro,Fn.unionBy=io,Fn.unionWith=ao,Fn.uniq=function(e){return e&&e.length?ui(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ui(e,ca(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ui(e,n,t):[]},Fn.unset=function(e,t){return null==e||hi(e,t)},Fn.unzip=oo,Fn.unzipWith=so,Fn.update=function(e,t,n){return null==e?e:fi(e,t,yi(n))},Fn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:fi(e,t,yi(r),i)},Fn.values=Us,Fn.valuesIn=function(e){return null==e?[]:Xt(e,Ls(e))},Fn.without=co,Fn.words=ec,Fn.wrap=function(e,t){return Fo(yi(t),e)},Fn.xor=lo,Fn.xorBy=uo,Fn.xorWith=ho,Fn.zip=fo,Fn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Fn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Zr)},Fn.zipWith=po,Fn.entries=zs,Fn.entriesIn=Hs,Fn.extend=Cs,Fn.extendWith=_s,uc(Fn,Fn),Fn.add=wc,Fn.attempt=tc,Fn.camelCase=Gs,Fn.capitalize=Vs,Fn.ceil=xc,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=As(r))==r?r:0),t!==n&&(t=(t=As(t))==t?t:0),sr(As(e),t,r)},Fn.clone=function(e){return cr(e,4)},Fn.cloneDeep=function(e){return cr(e,5)},Fn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,Ps(t))},Fn.deburr=Ws,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=Cc,Fn.endsWith=function(e,t,r){e=ws(e),t=li(t);var i=e.length,a=r=r===n?i:sr(vs(r),0,i);return(r-=t.length)>=0&&e.slice(r,a)==t},Fn.eq=Uo,Fn.escape=function(e){return(e=ws(e))&&K.test(e)?e.replace(q,rn):e},Fn.escapeRegExp=function(e){return(e=ws(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Fn.every=function(e,t,r){var i=qo(e)?Bt:pr;return r&&Aa(e,t,r)&&(t=n),i(e,ca(t,3))},Fn.find=Ao,Fn.findIndex=Va,Fn.findKey=function(e,t){return Nt(e,ca(t,3),br)},Fn.findLast=bo,Fn.findLastIndex=Wa,Fn.findLastKey=function(e,t){return Nt(e,ca(t,3),wr)},Fn.floor=_c,Fn.forEach=wo,Fn.forEachRight=xo,Fn.forIn=function(e,t){return null==e?e:yr(e,ca(t,3),Ls)},Fn.forInRight=function(e,t){return null==e?e:Ar(e,ca(t,3),Ls)},Fn.forOwn=function(e,t){return e&&br(e,ca(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,ca(t,3))},Fn.get=Bs,Fn.gt=Go,Fn.gte=Vo,Fn.has=function(e,t){return null!=e&&ga(e,t,kr)},Fn.hasIn=Ms,Fn.head=Ya,Fn.identity=oc,Fn.includes=function(e,t,n,r){e=Ko(e)?e:Us(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=yn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&zt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=yn(r+i,0)),zt(e,t,i)},Fn.inRange=function(e,t,r){return t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n){return e>=An(t,n)&&e<yn(t,n)}(e=As(e),t,r)},Fn.invoke=Ds,Fn.isArguments=Wo,Fn.isArray=qo,Fn.isArrayBuffer=Yo,Fn.isArrayLike=Ko,Fn.isArrayLikeObject=$o,Fn.isBoolean=function(e){return!0===e||!1===e||is(e)&&Ir(e)==y},Fn.isBuffer=Jo,Fn.isDate=Xo,Fn.isElement=function(e){return is(e)&&1===e.nodeType&&!ss(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ko(e)&&(qo(e)||"string"==typeof e||"function"==typeof e.splice||Jo(e)||fs(e)||Wo(e)))return!e.length;var t=pa(e);if(t==C||t==S)return!e.size;if(Ca(e))return!Qr(e).length;for(var n in e)if(Qe.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Or(e,t)},Fn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Or(e,t,n,r):!!i},Fn.isError=Zo,Fn.isFinite=function(e){return"number"==typeof e&&Wt(e)},Fn.isFunction=es,Fn.isInteger=ts,Fn.isLength=ns,Fn.isMap=as,Fn.isMatch=function(e,t){return e===t||Dr(e,t,ua(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Dr(e,t,ua(t),r)},Fn.isNaN=function(e){return os(e)&&e!=+e},Fn.isNative=function(e){if(xa(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=os,Fn.isObject=rs,Fn.isObjectLike=is,Fn.isPlainObject=ss,Fn.isRegExp=cs,Fn.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=f},Fn.isSet=ls,Fn.isString=us,Fn.isSymbol=hs,Fn.isTypedArray=fs,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return is(e)&&pa(e)==T},Fn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Ir(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=qs,Fn.last=Xa,Fn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=(a=vs(r))<0?yn(i+a,0):An(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,Ut,a,!0)},Fn.lowerCase=Ys,Fn.lowerFirst=Ks,Fn.lt=ds,Fn.lte=ps,Fn.max=function(e){return e&&e.length?gr(e,oc,Er):n},Fn.maxBy=function(e,t){return e&&e.length?gr(e,ca(t,2),Er):n},Fn.mean=function(e){return Gt(e,oc)},Fn.meanBy=function(e,t){return Gt(e,ca(t,2))},Fn.min=function(e){return e&&e.length?gr(e,oc,jr):n},Fn.minBy=function(e,t){return e&&e.length?gr(e,ca(t,2),jr):n},Fn.stubArray=yc,Fn.stubFalse=Ac,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Ic,Fn.nth=function(e,t){return e&&e.length?Ur(e,vs(t)):n},Fn.noConflict=function(){return dt._===this&&(dt._=ze),this},Fn.noop=hc,Fn.now=Bo,Fn.pad=function(e,t,n){e=ws(e);var r=(t=vs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(vt(i),n)+e+Gi(gt(i),n)},Fn.padEnd=function(e,t,n){e=ws(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?e+Gi(t-r,n):e},Fn.padStart=function(e,t,n){e=ws(e);var r=(t=vs(t))?hn(e):0;return t&&r<t?Gi(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ws(e).replace(ie,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Aa(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ms(e),t===n?(t=e,e=0):t=ms(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=xn();return An(e+a*(t-e+lt("1e-"+((a+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=qo(e)?Lt:qt,i=arguments.length<3;return r(e,ca(t,4),n,i,fr)},Fn.reduceRight=function(e,t,n){var r=qo(e)?Qt:qt,i=arguments.length<3;return r(e,ca(t,4),n,i,dr)},Fn.repeat=function(e,t,r){return t=(r?Aa(e,t,r):t===n)?1:vs(t),Kr(ws(e),t)},Fn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,r){var i=-1,a=(t=Ai(t,e)).length;for(a||(a=1,e=n);++i<a;){var o=null==e?n:e[Na(t[i])];o===n&&(i=a,o=r),e=es(o)?o.call(e):o}return e},Fn.round=Ec,Fn.runInContext=e,Fn.sample=function(e){return(qo(e)?Jn:Jr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ko(e))return us(e)?hn(e):e.length;var t=pa(e);return t==C||t==S?e.size:Qr(e).length},Fn.snakeCase=$s,Fn.some=function(e,t,r){var i=qo(e)?Rt:ii;return r&&Aa(e,t,r)&&(t=n),i(e,ca(t,3))},Fn.sortedIndex=function(e,t){return ai(e,t)},Fn.sortedIndexBy=function(e,t,n){return oi(e,t,ca(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Uo(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ai(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oi(e,t,ca(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ai(e,t,!0)-1;if(Uo(e[n],t))return n}return-1},Fn.startCase=Js,Fn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:sr(vs(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Fn.subtract=kc,Fn.sum=function(e){return e&&e.length?Yt(e,oc):0},Fn.sumBy=function(e,t){return e&&e.length?Yt(e,ca(t,2)):0},Fn.template=function(e,t,r){var i=Fn.templateSettings;r&&Aa(e,t,r)&&(t=n),e=ws(e),t=_s({},t,i,Xi);var a,o,s=_s({},t.imports,i.imports,Xi),c=Ps(s),l=Xt(s,c),u=0,h=t.interpolate||be,f="__p += '",d=Se((t.escape||be).source+"|"+h.source+"|"+(h===X?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Qe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(d,(function(t,n,r,i,s,c){return r||(r=i),f+=e.slice(u,c).replace(we,an),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var g=Qe.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(U,""):f).replace(G,"$1").replace(V,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=tc((function(){return Ie(c,p+"return "+f).apply(n,l)}));if(m.source=f,Zo(m))throw m;return m},Fn.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=p,r=An(e,p);t=ca(t),e-=p;for(var i=Kt(r,t);++n<e;)t(n);return i},Fn.toFinite=ms,Fn.toInteger=vs,Fn.toLength=ys,Fn.toLower=function(e){return ws(e).toLowerCase()},Fn.toNumber=As,Fn.toSafeInteger=function(e){return e?sr(vs(e),-9007199254740991,f):0===e?e:0},Fn.toString=ws,Fn.toUpper=function(e){return ws(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ws(e))&&(r||t===n))return $t(e);if(!e||!(t=li(t)))return e;var i=fn(e),a=fn(t);return wi(i,en(i,a),tn(i,a)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.slice(0,dn(e)+1);if(!e||!(t=li(t)))return e;var i=fn(e);return wi(i,0,tn(i,fn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ws(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=li(t)))return e;var i=fn(e);return wi(i,en(i,fn(t))).join("")},Fn.truncate=function(e,t){var r=30,i="...";if(rs(t)){var a="separator"in t?t.separator:a;r="length"in t?vs(t.length):r,i="omission"in t?li(t.omission):i}var o=(e=ws(e)).length;if(on(e)){var s=fn(e);o=s.length}if(r>=o)return e;var c=r-hn(i);if(c<1)return i;var l=s?wi(s,0,c).join(""):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),cs(a)){if(e.slice(c).search(a)){var u,h=l;for(a.global||(a=Se(a.source,ws(de.exec(a))+"g")),a.lastIndex=0;u=a.exec(h);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(li(a),c)!=c){var d=l.lastIndexOf(a);d>-1&&(l=l.slice(0,d))}return l+i},Fn.unescape=function(e){return(e=ws(e))&&Y.test(e)?e.replace(W,pn):e},Fn.uniqueId=function(e){var t=++Re;return ws(e)+t},Fn.upperCase=Xs,Fn.upperFirst=Zs,Fn.each=wo,Fn.eachRight=xo,Fn.first=Ya,uc(Fn,(bc={},br(Fn,(function(e,t){Qe.call(Fn.prototype,t)||(bc[t]=e)})),bc),{chain:!1}),Fn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),kt(["drop","take"],(function(e,t){Gn.prototype[e]=function(r){r=r===n?1:yn(vs(r),0);var i=this.__filtered__&&!t?new Gn(this):this.clone();return i.__filtered__?i.__takeCount__=An(r,i.__takeCount__):i.__views__.push({size:An(r,p),type:e+(i.__dir__<0?"Right":"")}),i},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(oc)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=$r((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Mr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(jo(ca(e)))},Gn.prototype.slice=function(e,t){e=vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(p)},br(Gn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Fn[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof Gn,l=s[0],u=c||qo(t),h=function(e){var t=a.apply(Fn,Pt([e],s));return i&&f?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,g=c&&!d;if(!o&&u){t=g?t:new Gn(this);var m=e.apply(t,s);return m.__actions__.push({func:mo,args:[h],thisArg:n}),new Un(m,f)}return p&&g?e.apply(this,s):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qo(i)?i:[],e)}return this[n]((function(n){return t.apply(qo(n)?n:[],e)}))}})),br(Gn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Qe.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Fi(n,2).name]=[{name:"wrapper",func:n}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Bi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Bi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Bi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=An(t,e+o);break;case"takeRight":e=yn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,h=u.length,f=0,d=An(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return pi(e,this.__actions__);var p=[];e:for(;c--&&f<d;){for(var g=-1,m=e[l+=t];++g<h;){var v=u[g],y=v.iteratee,A=v.type,b=y(m);if(2==A)m=b;else if(!b){if(1==A)continue e;break e}}p[f++]=m}return p},Fn.prototype.at=vo,Fn.prototype.chain=function(){return go(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=gs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Hn;){var i=za(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:mo,args:[no],thisArg:n}),new Un(t,this.__chain__)}return this.thru(no)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,et&&(Fn.prototype[et]=function(){return this}),Fn}();gt?((gt.exports=gn)._=gn,pt._=gn):dt._=gn}).call(Ri)}(Fa,Fa.exports);var za=Fa.exports;function Ha(e){for(var t=(e=e.replace("#","")).match(/../g),n=0;n<3;n++)t[n]=parseInt(t[n],16);return t}function Ua(e,t,n){for(var r=[e.toString(16),t.toString(16),n.toString(16)],i=0;i<3;i++)1==r[i].length&&(r[i]="0"+r[i]);return"#"+r.join("")}var Ga={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",h="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:h,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},A="en",b={};b[A]=m;var w="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[w])},C=function e(t,n,r){var i;if(!t)return A;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(A=i),i||!r&&A},_=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},I=y;I.l=C,I.i=x,I.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return I},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<_(e)},v.$g=function(e,t,n){return I.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!I.u(t)||t,u=I.p(e),d=function(e,t){var i=I.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return I.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case h:return r?d(1,0):d(31,11);case l:return r?d(1,m):d(0,m+1);case c:var A=this.$locale().weekStart||0,b=(g<A?g+7:g)-A;return d(r?v-b:v+(6-b),m);case s:case f:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case a:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=I.p(e),u="set"+(this.$u?"UTC":""),d=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[h]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===h){var g=this.clone().set(f,1);g.$d[d](p),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[I.p(e)]()},v.add=function(r,u){var f,d=this;r=Number(r);var p=I.p(u),g=function(e){var t=_(d);return I.w(t.date(t.date()+Math.round(e*r)),d)};if(p===l)return this.set(l,this.$M+r);if(p===h)return this.set(h,this.$y+r);if(p===s)return g(1);if(p===c)return g(7);var m=(f={},f[a]=t,f[o]=n,f[i]=e,f)[p]||1,v=this.$d.getTime()+r*m;return I.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=I.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,h=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return I.s(a%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return I.s(t.$y,4,"0");case"M":return s+1;case"MM":return I.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return t.$D;case"DD":return I.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return I.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return p(a,o,!0);case"A":return p(a,o,!1);case"m":return String(o);case"mm":return I.s(o,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,d){var p,g=this,m=I.p(f),v=_(r),y=(v.utcOffset()-this.utcOffset())*t,A=this-v,b=function(){return I.m(g,v)};switch(m){case h:p=b()/12;break;case l:p=b();break;case u:p=b()/3;break;case c:p=(A-y)/6048e5;break;case s:p=(A-y)/864e5;break;case o:p=A/n;break;case a:p=A/t;break;case i:p=A/e;break;default:p=A}return d?p:I.a(p)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return I.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),k=E.prototype;return _.prototype=k,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",h],["$D",f]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,E,_),e.$i=!0),_},_.locale=C,_.isDayjs=x,_.unix=function(e){return _(1e3*e)},_.en=b[A],_.Ls=b,_.p={},_}()}(Ga);const Va=ji(Ga.exports);
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Wa={version:"0.18.5"},qa=1252,Ya=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Ka={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},$a=function(e){-1!=Ya.indexOf(e)&&(qa=Ka[0]=e)},Ja=function(e){$a(e)};function Xa(){Ja(1200),$a(1252)}function Za(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e.charCodeAt(n);return t}function eo(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var to,no=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==n?eo(e.slice(2)):65279==t?e.slice(1):e},ro=function(e){return String.fromCharCode(e)},io=function(e){return String.fromCharCode(e)},ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function oo(e){for(var t="",n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0;l<e.length;)a=(n=e.charCodeAt(l++))>>2,o=(3&n)<<4|(r=e.charCodeAt(l++))>>4,s=(15&r)<<2|(i=e.charCodeAt(l++))>>6,c=63&i,isNaN(r)?s=c=64:isNaN(i)&&(c=64),t+=ao.charAt(a)+ao.charAt(o)+ao.charAt(s)+ao.charAt(c);return t}function so(e){var t="",n=0,r=0,i=0,a=0,o=0,s=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)n=ao.indexOf(e.charAt(c++))<<2|(a=ao.indexOf(e.charAt(c++)))>>4,t+=String.fromCharCode(n),r=(15&a)<<4|(o=ao.indexOf(e.charAt(c++)))>>2,64!==o&&(t+=String.fromCharCode(r)),i=(3&o)<<6|(s=ao.indexOf(e.charAt(c++))),64!==s&&(t+=String.fromCharCode(i));return t}var co=void 0!==r&&void 0!==i&&void 0!==i.versions&&!!i.versions.node,lo=function(){if(void 0!==r){var e=!r.from;if(!e)try{r.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new r(e,t):new r(e)}:r.from.bind(r)}return function(){}}();function uo(e){return co?r.alloc?r.alloc(e):new r(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function ho(e){return co?r.allocUnsafe?r.allocUnsafe(e):new r(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var fo=function(e){return co?lo(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function po(e){if("undefined"==typeof ArrayBuffer)return fo(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function go(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function mo(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return mo(new Uint8Array(e));for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}var vo=co?function(e){return r.concat(e.map((function(e){return r.isBuffer(e)?e:lo(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),i=0;for(t=0,n=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},yo=/\u0000/g,Ao=/[\u0001-\u0006]/g;function bo(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function wo(e,t){var n=""+e;return n.length>=t?n:Ps("0",t-n.length)+n}function xo(e,t){var n=""+e;return n.length>=t?n:Ps(" ",t-n.length)+n}function Co(e,t){var n=""+e;return n.length>=t?n:n+Ps(" ",t-n.length)}var _o=Math.pow(2,32);function Io(e,t){return e>_o||e<-_o?function(e,t){var n=""+Math.round(e);return n.length>=t?n:Ps("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:Ps("0",t-n.length)+n}(Math.round(e),t)}function Eo(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var ko=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],So=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Bo={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Mo={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},To={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Oo(e,t,n){for(var r=e<0?-1:1,i=e*r,a=0,o=1,s=0,c=1,l=0,u=0,h=Math.floor(i);l<t&&(s=(h=Math.floor(i))*o+a,u=h*l+c,!(i-h<5e-8));)i=1/(i-h),a=o,o=s,c=l,l=u;if(u>t&&(l>t?(u=c,s=a):(u=l,s=o)),!n)return[0,r*s,u];var f=Math.floor(r*s/u);return[f,r*s-f*u,u]}function Do(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),a=0,o=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)o=n?[1317,10,29]:[1900,2,29],a=3;else if(0===r)o=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var c=new Date(1900,0,1);c.setDate(c.getDate()+r-1),o=[c.getFullYear(),c.getMonth()+1,c.getDate()],a=c.getDay(),r<60&&(a=(a+6)%7),n&&(a=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(c,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var Po=new Date(1899,11,31,0,0,0),Lo=Po.getTime(),Qo=new Date(1900,2,1,0,0,0);function Ro(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Qo&&(n+=864e5),(n-(Lo+6e4*(e.getTimezoneOffset()-Po.getTimezoneOffset())))/864e5}function jo(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function No(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=jo(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=jo(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),jo(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function Fo(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):No(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return ss(14,Ro(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function zo(e,t,n,r){var i,a="",o=0,s=0,c=n.y,l=0;switch(e){case 98:c=n.y+543;case 121:switch(t.length){case 1:case 2:i=c%100,l=2;break;default:i=c%1e4,l=4}break;case 109:switch(t.length){case 1:case 2:i=n.m,l=t.length;break;case 3:return So[n.m-1][1];case 5:return So[n.m-1][0];default:return So[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,l=t.length;break;case 3:return ko[n.q][0];default:return ko[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,(o=Math.round(s*(n.S+n.u)))>=60*s&&(o=0),"s"===t?0===o?"0":""+o/s:(a=wo(o,2+r),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):wo(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:i=c,l=1}return l>0?wo(i,l):""}function Ho(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var Uo=/%/g;function Go(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Go(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),-1===(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).indexOf("e")){var o=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+a):n+="E+"+(o-a);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Vo=/# (\?+)( ?)\/( ?)(\d+)/,Wo=/^#*0*\.([0#]+)/,qo=/\).*[0#]/,Yo=/\(###\) ###\\?-####/;function Ko(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function $o(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Jo(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function Xo(e,t,n){if(40===e.charCodeAt(0)&&!t.match(qo)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Xo("n",r,n):"("+Xo("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return ts(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Uo,""),i=t.length-r.length;return ts(e,r,n*Math.pow(10,2*i))+Ps("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return Go(t,n);if(36===t.charCodeAt(0))return"$"+Xo(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,o,s,c=Math.abs(n),l=n<0?"-":"";if(t.match(/^00+$/))return l+Io(c,t.length);if(t.match(/^[#?]+$/))return"0"===(i=Io(n,0))&&(i=""),i.length>t.length?i:Ko(t.substr(0,t.length-i.length))+i;if(a=t.match(Vo))return function(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),a=Math.floor(i/r),o=i-a*r,s=r;return n+(0===a?"":""+a)+" "+(0===o?Ps(" ",e[1].length+1+e[4].length):xo(o,e[1].length)+e[2]+"/"+e[3]+wo(s,e[4].length))}(a,c,l);if(t.match(/^#+0+$/))return l+Io(c,t.length-t.indexOf("0"));if(a=t.match(Wo))return i=$o(n,a[1].length).replace(/^([^\.]+)$/,"$1."+Ko(a[1])).replace(/\.$/,"."+Ko(a[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Ps("0",Ko(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+$o(c,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+Ho(Io(c,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Xo(e,t,-n):Ho(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,a[1].length)))+"."+wo(Jo(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Xo(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=bo(Xo(e,t.replace(/[\\-]/g,""),n)),o=0,bo(bo(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<i.length?i.charAt(o++):"0"===e?"0":""})));if(t.match(Yo))return"("+(i=Xo(e,"##########",n)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=Oo(c,Math.pow(10,o)-1,!1),i=""+l," "==(u=ts("n",a[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],(u=Co(s[2],o)).length<a[4].length&&(u=Ko(a[4].substr(a[4].length-u.length))+u),i+=u;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),l+((s=Oo(c,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?xo(s[1],o)+a[2]+"/"+a[3]+Co(s[2],o):Ps(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Io(n,0),t.length<=i.length?i:Ko(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var h=t.indexOf(".")-o,f=t.length-i.length-h;return Ko(t.substr(0,h)+i+t.substr(t.length-f))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=Jo(n,a[1].length),n<0?"-"+Xo(e,t,-n):Ho(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?wo(0,3-e.length):"")+e}))+"."+wo(o,a[1].length);switch(t){case"###,##0.00":return Xo(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var d=Ho(Io(c,0));return"0"!==d?l+d:"";case"###,###.00":return Xo(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return Xo(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Zo(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+Zo(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),!(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+a):n+="E+"+(o-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function es(e,t,n){if(40===e.charCodeAt(0)&&!t.match(qo)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?es("n",r,n):"("+es("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return ts(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Uo,""),i=t.length-r.length;return ts(e,r,n*Math.pow(10,2*i))+Ps("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return Zo(t,n);if(36===t.charCodeAt(0))return"$"+es(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,o,s,c=Math.abs(n),l=n<0?"-":"";if(t.match(/^00+$/))return l+wo(c,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:Ko(t.substr(0,t.length-i.length))+i;if(a=t.match(Vo))return function(e,t,n){return n+(0===t?"":""+t)+Ps(" ",e[1].length+2+e[4].length)}(a,c,l);if(t.match(/^#+0+$/))return l+wo(c,t.length-t.indexOf("0"));if(a=t.match(Wo))return i=(i=(""+n).replace(/^([^\.]+)$/,"$1."+Ko(a[1])).replace(/\.$/,"."+Ko(a[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Ps("0",Ko(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+Ho(""+c);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+es(e,t,-n):Ho(""+n)+"."+Ps("0",a[1].length);if(a=t.match(/^#,#*,#0/))return es(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=bo(es(e,t.replace(/[\\-]/g,""),n)),o=0,bo(bo(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return o<i.length?i.charAt(o++):"0"===e?"0":""})));if(t.match(Yo))return"("+(i=es(e,"##########",n)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=Oo(c,Math.pow(10,o)-1,!1),i=""+l," "==(u=ts("n",a[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],(u=Co(s[2],o)).length<a[4].length&&(u=Ko(a[4].substr(a[4].length-u.length))+u),i+=u;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),l+((s=Oo(c,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?xo(s[1],o)+a[2]+"/"+a[3]+Co(s[2],o):Ps(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+n,t.length<=i.length?i:Ko(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var h=t.indexOf(".")-o,f=t.length-i.length-h;return Ko(t.substr(0,h)+i+t.substr(t.length-f))}if(a=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+es(e,t,-n):Ho(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?wo(0,3-e.length):"")+e}))+"."+wo(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=Ho(""+c);return"0"!==d?l+d:"";default:if(t.match(/\.[0#?]*$/))return es(e,t.slice(0,t.lastIndexOf(".")),n)+Ko(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function ts(e,t,n){return(0|n)===n?es(e,t,n):Xo(e,t,n)}var ns=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function rs(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":Eo(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(ns))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var is=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function as(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function os(e,t){var n=function(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var a=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,a];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var o=n[0].match(is),s=n[1].match(is);return as(t,o)?[r,n[0]]:as(t,s)?[r,n[1]]:[r,n[null!=o&&null!=s?2:1]]}return[r,a]}function ss(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:Bo)[e])&&(r=n.table&&n.table[Mo[e]]||Bo[Mo[e]]),null==r&&(r=To[e]||"General")}if(Eo(r,0))return Fo(t,n);t instanceof Date&&(t=Ro(t,n.date1904));var i=os(r,t);if(Eo(i[1]))return Fo(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var i,a,o,s=[],c="",l=0,u="",h="t",f="H";l<e.length;)switch(u=e.charAt(l)){case"G":if(!Eo(e,l))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"G",v:"General"},l+=7;break;case'"':for(c="";34!==(o=e.charCodeAt(++l))&&l<e.length;)c+=String.fromCharCode(o);s[s.length]={t:"t",v:c},++l;break;case"\\":var d=e.charAt(++l),p="("===d||")"===d?d:"t";s[s.length]={t:p,v:d},++l;break;case"_":s[s.length]={t:"t",v:" "},l+=2;break;case"@":s[s.length]={t:"T",v:t},++l;break;case"B":case"b":if("1"===e.charAt(l+1)||"2"===e.charAt(l+1)){if(null==i&&null==(i=Do(t,n,"2"===e.charAt(l+1))))return"";s[s.length]={t:"X",v:e.substr(l,2)},h=u,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==i&&null==(i=Do(t,n)))return"";for(c=u;++l<e.length&&e.charAt(l).toLowerCase()===u;)c+=u;"m"===u&&"h"===h.toLowerCase()&&(u="M"),"h"===u&&(u=f),s[s.length]={t:u,v:c},h=u;break;case"A":case"a":case"上":var g={t:u,v:u};if(null==i&&(i=Do(t,n)),"A/P"===e.substr(l,3).toUpperCase()?(null!=i&&(g.v=i.H>=12?"P":"A"),g.t="T",f="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=i&&(g.v=i.H>=12?"PM":"AM"),g.t="T",l+=5,f="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=i&&(g.v=i.H>=12?"下午":"上午"),g.t="T",l+=5,f="h"):(g.t="t",++l),null==i&&"T"===g.t)return"";s[s.length]=g,h=u;break;case"[":for(c=u;"]"!==e.charAt(l++)&&l<e.length;)c+=e.charAt(l);if("]"!==c.slice(-1))throw'unterminated "[" block: |'+c+"|";if(c.match(ns)){if(null==i&&null==(i=Do(t,n)))return"";s[s.length]={t:"Z",v:c.toLowerCase()},h=c.charAt(1)}else c.indexOf("$")>-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",rs(e)||(s[s.length]={t:"t",v:c}));break;case".":if(null!=i){for(c=u;++l<e.length&&"0"===(u=e.charAt(l));)c+=u;s[s.length]={t:"s",v:c};break}case"0":case"#":for(c=u;++l<e.length&&"0#?.,E+-%".indexOf(u=e.charAt(l))>-1;)c+=u;s[s.length]={t:"n",v:c};break;case"?":for(c=u;e.charAt(++l)===u;)c+=u;s[s.length]={t:u,v:c},h=u;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":s[s.length]={t:1===r?"t":u,v:u},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=u;l<e.length&&"0123456789".indexOf(e.charAt(++l))>-1;)c+=e.charAt(l);s[s.length]={t:"D",v:c};break;case" ":s[s.length]={t:u,v:u},++l;break;case"$":s[s.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++l}var m,v=0,y=0;for(l=s.length-1,h="t";l>=0;--l)switch(s[l].t){case"h":case"H":s[l].t=f,h="h",v<1&&(v=1);break;case"s":(m=s[l].v.match(/\.0+$/))&&(y=Math.max(y,m[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=s[l].t;break;case"m":"s"===h&&(s[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[l].v.match(/[Hh]/)&&(v=1),v<2&&s[l].v.match(/[Mm]/)&&(v=2),v<3&&s[l].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var A,b="";for(l=0;l<s.length;++l)switch(s[l].t){case"t":case"T":case" ":case"D":break;case"X":s[l].v="",s[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[l].v=zo(s[l].t.charCodeAt(0),s[l].v,i,y),s[l].t="t";break;case"n":case"?":for(A=l+1;null!=s[A]&&("?"===(u=s[A].t)||"D"===u||(" "===u||"t"===u)&&null!=s[A+1]&&("?"===s[A+1].t||"t"===s[A+1].t&&"/"===s[A+1].v)||"("===s[l].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===s[A].v||" "===s[A].v&&null!=s[A+1]&&"?"==s[A+1].t));)s[l].v+=s[A].v,s[A]={v:"",t:";"},++A;b+=s[l].v,l=A-1;break;case"G":s[l].t="t",s[l].v=Fo(t,n)}var w,x,C="";if(b.length>0){40==b.charCodeAt(0)?(w=t<0&&45===b.charCodeAt(0)?-t:t,x=ts("n",b,w)):(x=ts("n",b,w=t<0&&r>1?-t:t),w<0&&s[0]&&"t"==s[0].t&&(x=x.substr(1),s[0].v="-"+s[0].v)),A=x.length-1;var _=s.length;for(l=0;l<s.length;++l)if(null!=s[l]&&"t"!=s[l].t&&s[l].v.indexOf(".")>-1){_=l;break}var I=s.length;if(_===s.length&&-1===x.indexOf("E")){for(l=s.length-1;l>=0;--l)null!=s[l]&&-1!=="n?".indexOf(s[l].t)&&(A>=s[l].v.length-1?(A-=s[l].v.length,s[l].v=x.substr(A+1,s[l].v.length)):A<0?s[l].v="":(s[l].v=x.substr(0,A+1),A=-1),s[l].t="t",I=l);A>=0&&I<s.length&&(s[I].v=x.substr(0,A+1)+s[I].v)}else if(_!==s.length&&-1===x.indexOf("E")){for(A=x.indexOf(".")-1,l=_;l>=0;--l)if(null!=s[l]&&-1!=="n?".indexOf(s[l].t)){for(a=s[l].v.indexOf(".")>-1&&l===_?s[l].v.indexOf(".")-1:s[l].v.length-1,C=s[l].v.substr(a+1);a>=0;--a)A>=0&&("0"===s[l].v.charAt(a)||"#"===s[l].v.charAt(a))&&(C=x.charAt(A--)+C);s[l].v=C,s[l].t="t",I=l}for(A>=0&&I<s.length&&(s[I].v=x.substr(0,A+1)+s[I].v),A=x.indexOf(".")+1,l=_;l<s.length;++l)if(null!=s[l]&&(-1!=="n?(".indexOf(s[l].t)||l===_)){for(a=s[l].v.indexOf(".")>-1&&l===_?s[l].v.indexOf(".")+1:0,C=s[l].v.substr(0,a);a<s[l].v.length;++a)A<x.length&&(C+=x.charAt(A++));s[l].v=C,s[l].t="t",I=l}}}for(l=0;l<s.length;++l)null!=s[l]&&"n?".indexOf(s[l].t)>-1&&(w=r>1&&t<0&&l>0&&"-"===s[l-1].v?-t:t,s[l].v=ts(s[l].t,s[l].v,w),s[l].t="t");var E="";for(l=0;l!==s.length;++l)null!=s[l]&&(E+=s[l].v);return E}(i[1],t,n,i[0])}function cs(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=Bo[n]){if(Bo[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return Bo[t]=e,t}function ls(e){for(var t=0;392!=t;++t)void 0!==e[t]&&cs(e[t],t)}function us(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',Bo=e}var hs={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},fs=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,ds=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var a=[];for(r=1;16!=r;++r)a[r-1]="undefined"!=typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return a}(t),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],h=n[8],f=n[9],d=n[10],p=n[11],g=n[12],m=n[13],v=n[14];return e.table=t,e.bstr=function(e,n){for(var r=~n,i=0,a=e.length;i<a;)r=r>>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var y=~n,A=e.length-15,b=0;b<A;)y=v[e[b++]^255&y]^m[e[b++]^y>>8&255]^g[e[b++]^y>>16&255]^p[e[b++]^y>>>24]^d[e[b++]]^f[e[b++]]^h[e[b++]]^u[e[b++]]^l[e[b++]]^c[e[b++]]^s[e[b++]]^o[e[b++]]^a[e[b++]]^i[e[b++]]^r[e[b++]]^t[e[b++]];for(A+=15;b<A;)y=y>>>8^t[255&(y^e[b++])];return~y},e.str=function(e,n){for(var r=~n,i=0,a=e.length,o=0,s=0;i<a;)(o=e.charCodeAt(i++))<128?r=r>>>8^t[255&(r^o)]:o<2048?r=(r=r>>>8^t[255&(r^(192|o>>6&31))])>>>8^t[255&(r^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|o>>8&7))])>>>8^t[255&(r^(128|o>>2&63))])>>>8^t[255&(r^(128|s>>6&15|(3&o)<<4))])>>>8^t[255&(r^(128|63&s))]):r=(r=(r=r>>>8^t[255&(r^(224|o>>12&15))])>>>8^t[255&(r^(128|o>>6&63))])>>>8^t[255&(r^(128|63&o))];return~r},e}(),ps=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function i(e){if("/"==e.charAt(e.length-1))return i(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function a(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function o(e){Ll(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),i=e.read_shift(2),a=e.l+i,o={};21589===r&&(1&(n=e.read_shift(1))&&(o.mtime=e.read_shift(4)),i>5&&(2&n&&(o.atime=e.read_shift(4)),4&n&&(o.ctime=e.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime))),e.l=a,t[r]=o}return t}function s(){return e||(e={})}function c(e,t){if(80==e[0]&&75==e[1])return ae(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=C(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",i=(co&&r.isBuffer(e)?e.toString("binary"):C(e)).split("\r\n"),a=0,o="";for(a=0;a<i.length;++a)if(o=i[a],/^Content-Location:/i.test(o)&&(o=o.slice(o.indexOf("file")),n||(n=o.slice(0,o.lastIndexOf("/")+1)),o.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),o.slice(0,n.length)!=n););var s=(i[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var c="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};d(l);var u,h=0;for(a=0;a<i.length;++a){var f=i[a];f!==c&&f!==c+"--"||(h++&&he(l,i.slice(u,a),n),u=a)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,i,a,o,s,c,p=512,g=[],m=e.slice(0,512);Ll(m,0);var v=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(A,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=v[0]){case 3:p=512;break;case 4:p=4096;break;case 0:if(0==v[1])return ae(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==p&&Ll(m=e.slice(0,p),28);var b=e.slice(0,p);!function(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var w=m.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);m.l+=4,o=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),i=m.read_shift(4,"i"),c=m.read_shift(4,"i"),a=m.read_shift(4,"i");for(var x=-1,_=0;_<109&&!((x=m.read_shift(4,"i"))<0);++_)g[_]=x;var I=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}(e,p);u(c,a,I,p,g);var E=function(e,t,n,r){var i=e.length,a=[],o=[],s=[],c=[],l=r-1,u=0,h=0,f=0,d=0;for(u=0;u<i;++u)if(s=[],(f=u+t)>=i&&(f-=i),!o[f]){c=[];var p=[];for(h=f;h>=0;){p[h]=!0,o[h]=!0,s[s.length]=h,c.push(e[h]);var g=n[Math.floor(4*h/r)];if(r<4+(d=4*h&l))throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[g])break;if(p[h=kl(e[g],d)])break}a[f]={nodes:s,data:rl([c])}}return a}(I,o,g,p);E[o].name="!Directory",i>0&&s!==y&&(E[s].name="!MiniFAT"),E[g[0]].name="!FAT",E.fat_addrs=g,E.ssz=p;var k=[],S=[],B=[];!function(e,t,n,r,i,a,o,s){for(var c,u=0,d=r.length?2:0,p=t[e].data,g=0,m=0;g<p.length;g+=128){var v=p.slice(g,g+128);Ll(v,64),m=v.read_shift(2),c=al(v,0,m-d),r.push(c);var A={name:c,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(A.ct=f(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(A.mt=f(v,v.l-8)),A.start=v.read_shift(4,"i"),A.size=v.read_shift(4,"i"),A.size<0&&A.start<0&&(A.size=A.type=0,A.start=y,A.name=""),5===A.type?(u=A.start,i>0&&u!==y&&(t[u].name="!StreamData")):A.size>=4096?(A.storage="fat",void 0===t[A.start]&&(t[A.start]=h(n,A.start,t.fat_addrs,t.ssz)),t[A.start].name=A.name,A.content=t[A.start].data.slice(0,A.size)):(A.storage="minifat",A.size<0?A.size=0:u!==y&&A.start!==y&&t[u]&&(A.content=l(A,t[u].data,(t[s]||{}).data))),A.content&&Ll(A.content,0),a[c]=A,o.push(A)}}(o,E,I,k,i,{},S,s),function(e,t,n){for(var r=0,i=0,a=0,o=0,s=0,c=n.length,l=[],u=[];r<c;++r)l[r]=u[r]=r,t[r]=n[r];for(;s<u.length;++s)i=e[r=u[s]].L,a=e[r].R,o=e[r].C,l[r]===r&&(-1!==i&&l[i]!==i&&(l[r]=l[i]),-1!==a&&l[a]!==a&&(l[r]=l[a])),-1!==o&&(l[o]=r),-1!==i&&r!=l[r]&&(l[i]=l[r],u.lastIndexOf(i)<s&&u.push(i)),-1!==a&&r!=l[r]&&(l[a]=l[r],u.lastIndexOf(a)<s&&u.push(a));for(r=1;r<c;++r)l[r]===r&&(-1!==a&&l[a]!==a?l[r]=l[a]:-1!==i&&l[i]!==i&&(l[r]=l[i]));for(r=1;r<c;++r)if(0!==e[r].type){if((s=r)!=l[s])do{s=l[s],t[r]=t[s]+"/"+t[r]}while(0!==s&&-1!==l[s]&&s!=l[s]);l[r]=-1}for(t[0]+="/",r=1;r<c;++r)2!==e[r].type&&(t[r]+="/")}(S,B,k),k.shift();var M={FileIndex:S,FullPaths:B};return t&&t.raw&&(M.raw={header:b,sectors:I}),M}function l(e,t,n){for(var r=e.start,i=e.size,a=[],o=r;n&&i>0&&o>=0;)a.push(t.slice(o*v,o*v+v)),i-=v,o=kl(n,4*o);return 0===a.length?Rl(0):vo(a).slice(0,e.size)}function u(e,t,n,r,i){var a=y;if(e===y){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var o=n[e],s=(r>>>2)-1;if(!o)return;for(var c=0;c<s&&(a=kl(o,4*c))!==y;++c)i.push(a);u(kl(o,r-4),t-1,n,r,i)}}function h(e,t,n,r,i){var a=[],o=[];i||(i=[]);var s=r-1,c=0,l=0;for(c=t;c>=0;){i[c]=!0,a[a.length]=c,o.push(e[c]);var u=n[Math.floor(4*c/r)];if(r<4+(l=4*c&s))throw new Error("FAT boundary crossed: "+c+" 4 "+r);if(!e[u])break;c=kl(e[u],l)}return{nodes:a,data:rl([o])}}function f(e,t){return new Date(1e3*(El(e,t+4)/1e7*Math.pow(2,32)+El(e,t)/1e7-11644473600))}function d(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!ps.find(e,"/"+t)){var n=Rl(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),p(e)}}(e)}function p(e,t){d(e);for(var r=!1,a=!1,o=e.FullPaths.length-1;o>=0;--o){var s=e.FileIndex[o];switch(s.type){case 0:a?r=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(s.R*s.L*s.C)&&(r=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(r=!0);break;default:r=!0}}if(r||t){var c=new Date(1987,1,19),l=0,u=Object.create?Object.create(null):{},h=[];for(o=0;o<e.FullPaths.length;++o)u[e.FullPaths[o]]=!0,0!==e.FileIndex[o].type&&h.push([e.FullPaths[o],e.FileIndex[o]]);for(o=0;o<h.length;++o){var f=n(h[o][0]);(a=u[f])||(h.push([f,{name:i(f).replace("/",""),type:1,clsid:w,ct:c,mt:c,content:null}]),u[f]=!0)}for(h.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,a=0,o=Math.min(n.length,r.length);i<o;++i){if(a=n[i].length-r[i].length)return a;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],o=0;o<h.length;++o)e.FullPaths[o]=h[o][0],e.FileIndex[o]=h[o][1];for(o=0;o<h.length;++o){var p=e.FileIndex[o],g=e.FullPaths[o];if(p.name=i(g).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||w,0===o)p.C=h.length>1?1:-1,p.size=0,p.type=5;else if("/"==g.slice(-1)){for(l=o+1;l<h.length&&n(e.FullPaths[l])!=g;++l);for(p.C=l>=h.length?-1:l,l=o+1;l<h.length&&n(e.FullPaths[l])!=n(g);++l);p.R=l>=h.length?-1:l,p.type=1}else n(e.FullPaths[o+1]||"")==n(g)&&(p.R=o+1),p.type=2}}}function g(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},i=n.boundary||"SheetJS",a=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(i="------="+i).slice(2)+'"',"","",""],o=e.FullPaths[0],s=o,c=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(o.length),(c=e.FileIndex[l]).size&&c.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var u=c.content,h=co&&r.isBuffer(u)?u.toString("binary"):C(u),f=0,d=Math.min(1024,h.length),p=0,g=0;g<=d;++g)(p=h.charCodeAt(g))>=32&&p<128&&++f;var m=f>=4*d/5;a.push(i),a.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),a.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),a.push("Content-Type: "+ce(c,s)),a.push(""),a.push(m?ue(h):le(h))}return a.push(i+"--\r\n"),a.join("\r\n")}(e,n);if(p(e),"zip"===n.fileType)return function(e,t){var n=t||{},r=[],i=[],o=Rl(1),s=n.compression?8:0,c=0,l=0,u=0,h=0,f=0,d=e.FullPaths[0],p=d,g=e.FileIndex[0],m=[],v=0;for(l=1;l<e.FullPaths.length;++l)if(p=e.FullPaths[l].slice(d.length),(g=e.FileIndex[l]).size&&g.content&&"Sh33tJ5"!=p){var y=h,A=Rl(p.length);for(u=0;u<p.length;++u)A.write_shift(1,127&p.charCodeAt(u));A=A.slice(0,A.l),m[f]=ds.buf(g.content,0);var b=g.content;8==s&&(b=_(b)),(o=Rl(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,c),o.write_shift(2,s),g.mt?a(o,g.mt):o.write_shift(4,0),o.write_shift(-4,m[f]),o.write_shift(4,b.length),o.write_shift(4,g.content.length),o.write_shift(2,A.length),o.write_shift(2,0),h+=o.length,r.push(o),h+=A.length,r.push(A),h+=b.length,r.push(b),(o=Rl(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,c),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,m[f]),o.write_shift(4,b.length),o.write_shift(4,g.content.length),o.write_shift(2,A.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,y),v+=o.l,i.push(o),v+=A.length,i.push(A),++f}return(o=Rl(22)).write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,f),o.write_shift(2,f),o.write_shift(4,v),o.write_shift(4,h),o.write_shift(2,0),vo([vo(r),vo(i),o])}(e,n);var i=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var i=e.FileIndex[r];if(i.content){var a=i.content.length;a>0&&(a<4096?t+=a+63>>6:n+=a+511>>9)}}for(var o=e.FullPaths.length+3>>2,s=t+127>>7,c=(t+7>>3)+n+o+s,l=c+127>>7,u=l<=109?0:Math.ceil((l-109)/127);c+l+u+127>>7>l;)u=++l<=109?0:Math.ceil((l-109)/127);var h=[1,u,l,s,o,n,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),o=Rl(i[7]<<9),s=0,c=0;for(s=0;s<8;++s)o.write_shift(1,b[s]);for(s=0;s<8;++s)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),s=0;s<3;++s)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,i[2]),o.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:y),o.write_shift(4,i[3]),o.write_shift(-4,i[1]?i[0]-1:y),o.write_shift(4,i[1]),s=0;s<109;++s)o.write_shift(-4,s<i[2]?i[1]+s:-1);if(i[1])for(c=0;c<i[1];++c){for(;s<236+127*c;++s)o.write_shift(-4,s<i[2]?i[1]+s:-1);o.write_shift(-4,c===i[1]-1?y:c+1)}var l=function(e){for(c+=e;s<c-1;++s)o.write_shift(-4,s+1);e&&(++s,o.write_shift(-4,y))};for(c=s=0,c+=i[1];s<c;++s)o.write_shift(-4,x.DIFSECT);for(c+=i[2];s<c;++s)o.write_shift(-4,x.FATSECT);l(i[3]),l(i[4]);for(var u=0,h=0,f=e.FileIndex[0];u<e.FileIndex.length;++u)(f=e.FileIndex[u]).content&&((h=f.content.length)<4096||(f.start=c,l(h+511>>9)));for(l(i[6]+7>>3);511&o.l;)o.write_shift(-4,x.ENDOFCHAIN);for(c=s=0,u=0;u<e.FileIndex.length;++u)(f=e.FileIndex[u]).content&&(!(h=f.content.length)||h>=4096||(f.start=c,l(h+63>>6)));for(;511&o.l;)o.write_shift(-4,x.ENDOFCHAIN);for(s=0;s<i[4]<<2;++s){var d=e.FullPaths[s];if(d&&0!==d.length){f=e.FileIndex[s],0===s&&(f.start=f.size?f.start-1:y);var g=0===s&&n.root||f.name;if(h=2*(g.length+1),o.write_shift(64,g,"utf16le"),o.write_shift(2,h),o.write_shift(1,f.type),o.write_shift(1,f.color),o.write_shift(-4,f.L),o.write_shift(-4,f.R),o.write_shift(-4,f.C),f.clsid)o.write_shift(16,f.clsid,"hex");else for(u=0;u<4;++u)o.write_shift(4,0);o.write_shift(4,f.state||0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,f.start),o.write_shift(4,f.size),o.write_shift(4,0)}else{for(u=0;u<17;++u)o.write_shift(4,0);for(u=0;u<3;++u)o.write_shift(4,-1);for(u=0;u<12;++u)o.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((f=e.FileIndex[s]).size>=4096)if(o.l=f.start+1<<9,co&&r.isBuffer(f.content))f.content.copy(o,o.l,0,f.size),o.l+=f.size+511&-512;else{for(u=0;u<f.size;++u)o.write_shift(1,f.content[u]);for(;511&u;++u)o.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((f=e.FileIndex[s]).size>0&&f.size<4096)if(co&&r.isBuffer(f.content))f.content.copy(o,o.l,0,f.size),o.l+=f.size+63&-64;else{for(u=0;u<f.size;++u)o.write_shift(1,f.content[u]);for(;63&u;++u)o.write_shift(1,0)}if(co)o.l=o.length;else for(;o.l<o.length;)o.write_shift(1,0);return o}t.version="1.2.1";var m,v=64,y=-2,A="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],w="00000000000000000000000000000000",x={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:y,FREESECT:-1,HEADER_SIGNATURE:A,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function C(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function _(e){return m?m.deflateRawSync(e):$(e)}for(var I,E,k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],B=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],M="undefined"!=typeof Uint8Array,T=M?new Uint8Array(256):[],O=0;O<256;++O)T[O]=(E=void 0,255&((E=139536&((I=O)<<1|I<<11)|558144&(I<<5|I<<15))>>16|E>>8|E));function D(e,t){var n=T[255&e];return t<=8?n>>>8-t:(n=n<<8|T[e>>8&255],t<=16?n>>>16-t:(n=n<<8|T[e>>16&255])>>>24-t)}function P(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function L(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function Q(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function R(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function j(e,t,n){var r=7&t,i=t>>>3,a=(1<<n)-1,o=e[i]>>>r;return n<8-r?o&a:(o|=e[i+1]<<8-r,n<16-r?o&a:(o|=e[i+2]<<16-r,n<24-r?o&a:(o|=e[i+3]<<24-r)&a))}function N(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<<r:(e[i]|=n<<r&255,e[i+1]=(7&n)>>8-r),t+3}function F(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function z(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function H(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function U(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(co){var a=ho(r);if(e.copy)e.copy(a);else for(;i<e.length;++i)a[i]=e[i];return a}if(M){var o=new Uint8Array(r);if(o.set)o.set(e);else for(;i<n;++i)o[i]=e[i];return o}return e.length=r,e}function G(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function V(e,t,n){var r=1,i=0,a=0,o=0,s=0,c=e.length,l=M?new Uint16Array(32):G(32);for(a=0;a<32;++a)l[a]=0;for(a=c;a<n;++a)e[a]=0;c=e.length;var u=M?new Uint16Array(c):G(c);for(a=0;a<c;++a)l[i=e[a]]++,r<i&&(r=i),u[a]=0;for(l[0]=0,a=1;a<=r;++a)l[a+16]=s=s+l[a-1]<<1;for(a=0;a<c;++a)0!=(s=e[a])&&(u[a]=l[s+16]++);var h=0;for(a=0;a<c;++a)if(0!=(h=e[a]))for(s=D(u[a],r)>>r-h,o=(1<<r+4-h)-1;o>=0;--o)t[s|o<<h]=15&h|a<<4;return r}var W=M?new Uint16Array(512):G(512),q=M?new Uint16Array(32):G(32);if(!M){for(var Y=0;Y<512;++Y)W[Y]=0;for(Y=0;Y<32;++Y)q[Y]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);V(e,q,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);V(n,W,288)}();var K=function(){for(var e=M?new Uint8Array(32768):[],t=0,n=0;t<B.length-1;++t)for(;n<B[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=M?new Uint8Array(259):[];for(t=0,n=0;t<S.length-1;++t)for(;n<S[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),i=n+r==e.length;for(t.write_shift(1,+i),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var i=0,a=0,o=M?new Uint16Array(32768):[];a<t.length;){var s=Math.min(65535,t.length-a);if(s<10){for(7&(i=N(n,i,+!(a+s!=t.length)))&&(i+=8-(7&i)),n.l=i/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);s-- >0;)n[n.l++]=t[a++];i=8*n.l}else{i=N(n,i,+!(a+s!=t.length)+2);for(var c=0;s-- >0;){var l=t[a],u=-1,h=0;if((u=o[c=32767&(c<<5^l)])&&((u|=-32768&a)>a&&(u-=32768),u<a))for(;t[u+h]==t[a+h]&&h<250;)++h;if(h>2){(l=r[h])<=22?i=z(n,i,T[l+1]>>1)-1:(z(n,i,3),z(n,i+=5,T[l-23]>>5),i+=3);var f=l<8?0:l-4>>2;f>0&&(H(n,i,h-S[l]),i+=f),l=e[a-u],i=z(n,i,T[l]>>3),i-=3;var d=l<4?0:l-2>>1;d>0&&(H(n,i,a-u-B[l]),i+=d);for(var p=0;p<h;++p)o[c]=32767&a,c=32767&(c<<5^t[a]),++a;s-=h-1}else l<=143?l+=48:i=F(n,i,1),i=z(n,i,T[l]),o[c]=32767&a,++a}i=z(n,i,0)-1}}return n.l=(i+7)/8|0,n.l}(t,n)}}();function $(e){var t=Rl(50+Math.floor(1.1*e.length)),n=K(e,t);return t.slice(0,n)}var J=M?new Uint16Array(32768):G(32768),X=M?new Uint16Array(32768):G(32768),Z=M?new Uint16Array(128):G(128),ee=1,te=1;function ne(e,t){var n=Q(e,t)+257,r=Q(e,t+=5)+1,i=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var a=0,o=M?new Uint8Array(19):G(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=1,l=M?new Uint8Array(8):G(8),u=M?new Uint8Array(8):G(8),h=o.length,f=0;f<i;++f)o[k[f]]=a=L(e,t),c<a&&(c=a),l[a]++,t+=3;var d=0;for(l[0]=0,f=1;f<=c;++f)u[f]=d=d+l[f-1]<<1;for(f=0;f<h;++f)0!=(d=o[f])&&(s[f]=u[d]++);var p=0;for(f=0;f<h;++f)if(0!=(p=o[f])){d=T[s[f]]>>8-p;for(var g=(1<<7-p)-1;g>=0;--g)Z[d|g<<p]=7&p|f<<3}var m=[];for(c=1;m.length<n+r;)switch(t+=7&(d=Z[R(e,t)]),d>>>=3){case 16:for(a=3+P(e,t),t+=2,d=m[m.length-1];a-- >0;)m.push(d);break;case 17:for(a=3+L(e,t),t+=3;a-- >0;)m.push(0);break;case 18:for(a=11+R(e,t),t+=7;a-- >0;)m.push(0);break;default:m.push(d),c<d&&(c=d)}var v=m.slice(0,n),y=m.slice(n);for(f=n;f<286;++f)v[f]=0;for(f=r;f<30;++f)y[f]=0;return ee=V(v,J,286),te=V(y,X,30),t}function re(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[uo(t),2];for(var n=0,r=0,i=ho(t||1<<18),a=0,o=i.length>>>0,s=0,c=0;!(1&r);)if(r=L(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,c=5):(n=ne(e,n),s=ee,c=te);;){!t&&o<a+32767&&(o=(i=U(i,a+32767)).length);var l=j(e,n,s),u=r>>>1==1?W[l]:J[l];if(n+=15&u,(u>>>=4)>>>8&255){if(256==u)break;var h=(u-=257)<8?0:u-4>>2;h>5&&(h=0);var f=a+S[u];h>0&&(f+=j(e,n,h),n+=h),l=j(e,n,c),n+=15&(u=r>>>1==1?q[l]:X[l]);var d=(u>>>=4)<4?0:u-2>>1,p=B[u];for(d>0&&(p+=j(e,n,d),n+=d),!t&&o<f&&(o=(i=U(i,f+100)).length);a<f;)i[a]=i[a-p],++a}else i[a++]=u}else{7&n&&(n+=8-(7&n));var g=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,g>0)for(!t&&o<a+g&&(o=(i=U(i,a+g)).length);g-- >0;)i[a++]=e[n>>>3],n+=8}return t?[i,n+7>>>3]:[i.slice(0,a),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function ie(e,t){if(!e)throw new Error(t)}function ae(e,t){var n=e;Ll(n,0);var r={FileIndex:[],FullPaths:[]};d(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var a=n.read_shift(2);n.l+=6;var s=n.read_shift(4);for(n.l=s,i=0;i<a;++i){n.l+=20;var c=n.read_shift(4),l=n.read_shift(4),u=n.read_shift(2),h=n.read_shift(2),f=n.read_shift(2);n.l+=8;var p=n.read_shift(4),g=o(n.slice(n.l+u,n.l+u+h));n.l+=u+h+f;var m=n.l;n.l=p+4,oe(n,c,l,r,g),n.l=m}return r}function oe(e,t,n,r,i){e.l+=2;var a=e.read_shift(2),s=e.read_shift(2),c=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n,a=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(a-1),r.setDate(i);var o=31&t,s=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(o<<1),r}(e);if(8257&a)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var l=e.read_shift(4),u=e.read_shift(4),h=e.read_shift(2),f=e.read_shift(2),d="",p=0;p<h;++p)d+=String.fromCharCode(e[e.l++]);if(f){var g=o(e.slice(e.l,e.l+f));(g[21589]||{}).mt&&(c=g[21589].mt),((i||{})[21589]||{}).mt&&(c=i[21589].mt)}e.l+=f;var v=e.slice(e.l,e.l+l);switch(s){case 8:v=function(e,t){if(!m)return re(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,u);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+s)}var y=!1;8&a&&(134695760==e.read_shift(4)&&(e.read_shift(4),y=!0),l=e.read_shift(4),u=e.read_shift(4)),l!=t&&ie(y,"Bad compressed size: "+t+" != "+l),u!=n&&ie(y,"Bad uncompressed size: "+n+" != "+u),fe(r,d,v,{unsafe:!0,mt:c})}var se={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ce(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&se[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&se[r[1]]?se[r[1]]:"application/octet-stream"}function le(e){for(var t=oo(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function ue(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),i=0;i<r.length;++i){var a=r[i];if(0!=a.length)for(var o=0;o<a.length;){var s=76,c=a.slice(o,o+s);"="==c.charAt(s-1)?s--:"="==c.charAt(s-2)?s-=2:"="==c.charAt(s-3)&&(s-=3),c=a.slice(o,o+s),(o+=s)<a.length&&(c+="="),n.push(c)}else n.push("")}return n.join("\r\n")}function he(e,t,n){for(var r,i="",a="",o="",s=0;s<10;++s){var c=t[s];if(!c||c.match(/^\s*$/))break;var l=c.match(/^(.*?):\s*([^\s].*)$/);if(l)switch(l[1].toLowerCase()){case"content-location":i=l[2].trim();break;case"content-type":o=l[2].trim();break;case"content-transfer-encoding":a=l[2].trim()}}switch(++s,a.toLowerCase()){case"base64":r=fo(so(t.slice(s).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return fo(t.join("\r\n"))}(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+a)}var u=fe(e,i.slice(n.length),r,{unsafe:!0});o&&(u.ctype=o)}function fe(e,t,n,r){var a=r&&r.unsafe;a||d(e);var o=!a&&ps.find(e,t);if(!o){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),o={name:i(t),type:2},e.FileIndex.push(o),e.FullPaths.push(s),a||ps.utils.cfb_gc(e)}return o.content=n,o.size=n?n.length:0,r&&(r.CLSID&&(o.clsid=r.CLSID),r.mt&&(o.mt=r.mt),r.ct&&(o.ct=r.ct)),o}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),i=!1;47===t.charCodeAt(0)?(i=!0,t=n[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var a=t.toUpperCase(),o=!0===i?n.indexOf(a):r.indexOf(a);if(-1!==o)return e.FileIndex[o];var s=!a.match(Ao);for(a=a.replace(yo,""),s&&(a=a.replace(Ao,"!")),o=0;o<n.length;++o){if((s?n[o].replace(Ao,"!"):n[o]).replace(yo,"")==a)return e.FileIndex[o];if((s?r[o].replace(Ao,"!"):r[o]).replace(yo,"")==a)return e.FileIndex[o]}return null},t.read=function(t,n){var i=n&&n.type;switch(i||co&&r.isBuffer(t)&&(i="buffer"),i||"base64"){case"file":return function(t,n){return s(),c(e.readFileSync(t),n)}(t,n);case"base64":return c(fo(so(t)),n);case"binary":return c(fo(t),n)}return c(t,n)},t.parse=c,t.write=function(t,n){var i=g(t,n);switch(n&&n.type||"buffer"){case"file":return s(),e.writeFileSync(n.filename,i),i;case"binary":return"string"==typeof i?i:C(i);case"base64":return oo("string"==typeof i?i:C(i));case"buffer":if(co)return r.isBuffer(i)?i:lo(i);case"array":return"string"==typeof i?fo(i):i}return i},t.writeFile=function(t,n,r){s();var i=g(t,r);e.writeFileSync(n,i)},t.utils={cfb_new:function(e){var t={};return d(t,e),t},cfb_add:fe,cfb_del:function(e,t){d(e);var n=ps.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){d(e);var r=ps.find(e,t);if(r)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==r)return e.FileIndex[a].name=i(n),e.FullPaths[a]=n,!0;return!1},cfb_gc:function(e){p(e,!0)},ReadShift:Bl,CheckField:Pl,prep_blob:Ll,bconcat:vo,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){}},_deflateRaw:$,_inflateRaw:re,consts:x},t}();function gs(e){return"string"==typeof e?po(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function ms(e,t,n){if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=po(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?wc(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var i=new Blob([gs(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if("undefined"!=typeof saveAs)return saveAs(i,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(a)}),6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(null!=o.download)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(a)}),6e4),a}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=go(t)),s.write(t),s.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function vs(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function ys(e,t){for(var n=[],r=vs(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function As(e){for(var t=[],n=vs(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function bs(e){for(var t=[],n=vs(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var ws=new Date(1899,11,30,0,0,0);function xs(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(ws.getTime()+6e4*(e.getTimezoneOffset()-ws.getTimezoneOffset())))/864e5}var Cs=new Date,_s=ws.getTime()+6e4*(Cs.getTimezoneOffset()-ws.getTimezoneOffset()),Is=Cs.getTimezoneOffset();function Es(e){var t=new Date;return t.setTime(24*e*60*60*1e3+_s),t.getTimezoneOffset()!==Is&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Is)),t}function ks(e){var t=0,n=0,r=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(n=1,a>3&&(r=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60}t+=n*parseInt(i[a],10)}return t}var Ss=new Date("2017-02-19T19:06:09.000Z"),Bs=isNaN(Ss.getFullYear())?new Date("2/19/17"):Ss,Ms=2017==Bs.getFullYear();function Ts(e,t){var n=new Date(e);if(Ms)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==Bs.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-60*a.getTimezoneOffset()*1e3)),a}function Os(e,t){if(co&&r.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return wc(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return wc(eo(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return wc(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return wc(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"","‚":"","ƒ":"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var i=[],a=0;a!=e.length;++a)i.push(String.fromCharCode(e[a]));return i.join("")}function Ds(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Ds(e[n]));return t}function Ps(e,t){for(var n="";n.length<t;)n+=e;return n}function Ls(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var Qs=["january","february","march","april","may","june","july","august","september","october","november","december"];function Rs(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return n;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Qs.indexOf(o))return n}else if(o.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||a>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var js=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),a=[i[0]],o=1;o<i.length;++o)a.push(r),a.push(i[o]);return a}}();function Ns(e){return e?e.content&&e.type?Os(e.content,!0):e.data?no(e.data):e.asNodeBuffer&&co?no(e.asNodeBuffer().toString("binary")):e.asBinary?no(e.asBinary()):e._data&&e._data.getContent?no(Os(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Fs(e){if(!e)return null;if(e.data)return Za(e.data);if(e.asNodeBuffer&&co)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?Za(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function zs(e,t){for(var n=e.FullPaths||vs(e.files),r=t.toLowerCase().replace(/[\/]/g,"\\"),i=r.replace(/\\/g,"/"),a=0;a<n.length;++a){var o=n[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(r==o||i==o)return e.files?e.files[n[a]]:e.FileIndex[a]}return null}function Hs(e,t){var n=zs(e,t);if(null==n)throw new Error("Cannot find file "+t+" in zip");return n}function Us(e,t,n){if(!n)return(r=Hs(e,t))&&".bin"===r.name.slice(-4)?Fs(r):Ns(r);var r;if(!t)return null;try{return Us(e,t)}catch(e){return null}}function Gs(e,t,n){if(!n)return Ns(Hs(e,t));if(!t)return null;try{return Gs(e,t)}catch(e){return null}}function Vs(e,t,n){if(!n)return Fs(Hs(e,t));if(!t)return null;try{return Vs(e,t)}catch(e){return null}}function Ws(e){for(var t=e.FullPaths||vs(e.files),n=[],r=0;r<t.length;++r)"/"!=t[r].slice(-1)&&n.push(t[r].replace(/^Root Entry[\/]/,""));return n.sort()}function qs(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=co?lo(n):function(e){for(var t=[],n=0,r=e.length+250,i=uo(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[n++]=o;else if(o<2048)i[n++]=192|o>>6&31,i[n++]=128|63&o;else if(o>=55296&&o<57344){o=64+(1023&o);var s=1023&e.charCodeAt(++a);i[n++]=240|o>>8&7,i[n++]=128|o>>2&63,i[n++]=128|s>>6&15|(3&o)<<4,i[n++]=128|63&s}else i[n++]=224|o>>12&15,i[n++]=128|o>>6&63,i[n++]=128|63&o;n>r&&(t.push(i.slice(0,n)),n=0,i=uo(65535),r=65530)}return t.push(i.slice(0,n)),vo(t)}(n),ps.utils.cfb_add(e,t,r);ps.utils.cfb_add(e,t,n)}else e.file(t,n)}function Ys(){return ps.utils.cfb_new()}function Ks(e,t){switch(t.type){case"base64":return ps.read(e,{type:"base64"});case"binary":return ps.read(e,{type:"binary"});case"buffer":case"array":return ps.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function $s(e,t){if("/"==e.charAt(0))return e.slice(1);var n=t.split("/");"/"!=t.slice(-1)&&n.pop();for(var r=e.split("/");0!==r.length;){var i=r.shift();".."===i?n.pop():"."!==i&&n.push(i)}return n.join("/")}var Js='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Xs=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Zs=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,ec=Js.match(Zs)?Zs:/<[^>]*>/g,tc=/<\w*:/,nc=/<(\/?)\w+:/;function rc(e,t,n){for(var r={},i=0,a=0;i!==e.length&&32!==(a=e.charCodeAt(i))&&10!==a&&13!==a;++i);if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var o=e.match(Xs),s=0,c="",l=0,u="",h="",f=1;if(o)for(l=0;l!=o.length;++l){for(h=o[l],a=0;a!=h.length&&61!==h.charCodeAt(a);++a);for(u=h.slice(0,a).trim();32==h.charCodeAt(a+1);)++a;for(f=34==(i=h.charCodeAt(a+1))||39==i?1:0,c=h.slice(a+1+f,h.length-f),s=0;s!=u.length&&58!==u.charCodeAt(s);++s);if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=c,n||(r[u.toLowerCase()]=c);else{var d=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(r[d]&&"ext"==u.slice(s-3,s))continue;r[d]=c,n||(r[d.toLowerCase()]=c)}}return r}function ic(e){return e.replace(nc,"<$1")}var ac={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},oc=As(ac),sc=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",a=i.indexOf("<![CDATA[");if(-1==a)return i.replace(e,(function(e,t){return ac[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var o=i.indexOf("]]>");return n(i.slice(0,a))+i.slice(a+9,o)+n(i.slice(o+3))}}(),cc=/[&<>'"]/g,lc=/[\u0000-\u0008\u000b-\u001f]/g;function uc(e){return(e+"").replace(cc,(function(e){return oc[e]})).replace(lc,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function hc(e){return uc(e).replace(/ /g,"_x0020_")}var fc=/[\u0000-\u001f]/g;function dc(e){return(e+"").replace(cc,(function(e){return oc[e]})).replace(/\n/g,"<br/>").replace(fc,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var pc=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function gc(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function mc(e){for(var t="",n=0,r=0,i=0,a=0,o=0,s=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(i=e.charCodeAt(n++),r>191&&r<224?(o=(31&r)<<6,o|=63&i,t+=String.fromCharCode(o)):(a=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&a):(s=((7&r)<<18|(63&i)<<12|(63&a)<<6|63&(o=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function vc(e){var t,n,r,i=uo(2*e.length),a=1,o=0,s=0;for(n=0;n<e.length;n+=a)a=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),a=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),a=3):(a=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(i[o++]=255&s,i[o++]=s>>>8,s=0),i[o++]=t%256,i[o++]=t>>>8;return i.slice(0,o).toString("ucs2")}function yc(e){return lo(e,"binary").toString("utf8")}var Ac="foo bar bazâð£",bc=co&&(yc(Ac)==mc(Ac)&&yc||vc(Ac)==mc(Ac)&&vc)||mc,wc=co?function(e){return lo(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,i=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},xc=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",n||"")}}(),Cc=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),_c=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Ic=/<\/?(?:vt:)?variant>/g,Ec=/<(?:vt:)([^>]*)>([\s\S]*)</;function kc(e,t){var n=rc(e),r=e.match(_c(n.baseType))||[],i=[];if(r.length!=n.size){if(t.WTF)throw new Error("unexpected vector length "+r.length+" != "+n.size);return i}return r.forEach((function(e){var t=e.replace(Ic,"").match(Ec);t&&i.push({v:bc(t[2]),t:t[1]})})),i}var Sc=/(^\s|\s$|\n)/;function Bc(e,t){return"<"+e+(t.match(Sc)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Mc(e){return vs(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Tc(e,t,n){return"<"+e+(null!=n?Mc(n):"")+(null!=t?(t.match(Sc)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Oc(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}function Dc(e){if(co&&r.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return bc(go(mo(e)));throw new Error("Bad input format: expected Buffer or string")}var Pc=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Lc="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Qc="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Rc="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",jc="http://schemas.openxmlformats.org/package/2006/content-types",Nc="http://schemas.openxmlformats.org/package/2006/relationships",Fc="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",zc="http://purl.org/dc/elements/1.1/",Hc="http://purl.org/dc/terms/",Uc="http://purl.org/dc/dcmitype/",Gc="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Vc="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Wc="http://www.w3.org/2001/XMLSchema-instance",qc="http://www.w3.org/2001/XMLSchema",Yc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Kc="urn:schemas-microsoft-com:office:office",$c="urn:schemas-microsoft-com:office:excel",Jc="urn:schemas-microsoft-com:office:spreadsheet",Xc="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",Zc="http://macVmlSchemaUri",el="urn:schemas-microsoft-com:vml",tl="http://www.w3.org/TR/REC-html40",nl=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,i=e[0][n].length;r<i;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},rl=co?function(e){return e[0].length>0&&r.isBuffer(e[0][0])?r.concat(e[0].map((function(e){return r.isBuffer(e)?e:lo(e)}))):nl(e)}:nl,il=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(_l(e,i)));return r.join("").replace(yo,"")},al=co?function(e,t,n){return r.isBuffer(e)?e.toString("utf16le",t,n).replace(yo,""):il(e,t,n)}:il,ol=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push(("0"+e[i].toString(16)).slice(-2));return r.join("")},sl=co?function(e,t,n){return r.isBuffer(e)?e.toString("hex",t,t+n):ol(e,t,n)}:ol,cl=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(Cl(e,i)));return r.join("")},ll=co?function(e,t,n){return r.isBuffer(e)?e.toString("utf8",t,n):cl(e,t,n)}:cl,ul=function(e,t){var n=El(e,t);return n>0?ll(e,t+4,t+4+n-1):""},hl=ul,fl=function(e,t){var n=El(e,t);return n>0?ll(e,t+4,t+4+n-1):""},dl=fl,pl=function(e,t){var n=2*El(e,t);return n>0?ll(e,t+4,t+4+n-1):""},gl=pl,ml=function(e,t){var n=El(e,t);return n>0?al(e,t+4,t+4+n):""},vl=ml,yl=function(e,t){var n=El(e,t);return n>0?ll(e,t+4,t+4+n):""},Al=yl,bl=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],a=5;a>=0;--a)i=256*i+e[t+a];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}(e,t)},wl=bl,xl=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};co&&(hl=function(e,t){if(!r.isBuffer(e))return ul(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},dl=function(e,t){if(!r.isBuffer(e))return fl(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},gl=function(e,t){if(!r.isBuffer(e))return pl(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},vl=function(e,t){if(!r.isBuffer(e))return ml(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},Al=function(e,t){if(!r.isBuffer(e))return yl(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},wl=function(e,t){return r.isBuffer(e)?e.readDoubleLE(t):bl(e,t)},xl=function(e){return r.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var Cl=function(e,t){return e[t]},_l=function(e,t){return 256*e[t+1]+e[t]},Il=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},El=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},kl=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Sl=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Bl(e,t){var n,i,a,o,s,c,l="",u=[];switch(t){case"dbcs":if(c=this.l,co&&r.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(_l(this,c)),c+=2;e*=2;break;case"utf8":l=ll(this,this.l,this.l+e);break;case"utf16le":e*=2,l=al(this,this.l,this.l+e);break;case"wstr":return Bl.call(this,e,"dbcs");case"lpstr-ansi":l=hl(this,this.l),e=4+El(this,this.l);break;case"lpstr-cp":l=dl(this,this.l),e=4+El(this,this.l);break;case"lpwstr":l=gl(this,this.l),e=4+2*El(this,this.l);break;case"lpp4":e=4+El(this,this.l),l=vl(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+El(this,this.l),l=Al(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(a=Cl(this,this.l+e++));)u.push(ro(a));l=u.join("");break;case"_wstr":for(e=0,l="";0!==(a=_l(this,this.l+e));)u.push(ro(a)),e+=2;e+=2,l=u.join("");break;case"dbcs-cont":for(l="",c=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(c))return a=Cl(this,c),this.l=c+1,o=Bl.call(this,e-s,a?"dbcs-cont":"sbcs-cont"),u.join("")+o;u.push(ro(_l(this,c))),c+=2}l=u.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(l="",c=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(c))return a=Cl(this,c),this.l=c+1,o=Bl.call(this,e-s,a?"dbcs-cont":"sbcs-cont"),u.join("")+o;u.push(ro(Cl(this,c))),c+=1}l=u.join("");break;default:switch(e){case 1:return n=Cl(this,this.l),this.l++,n;case 2:return n=("i"===t?Il:_l)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(i=El(this,this.l),this.l+=4,i):(n=(e>0?kl:Sl)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return i=8==e?wl(this,this.l):wl([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:l=sl(this,this.l,e)}}return this.l+=e,l}var Ml=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},Tl=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Ol=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Dl(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Ol(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=255&o,this[this.l++]=o>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,Ml(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=r?-t:t;isFinite(o)?0==o?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[n+s]=255&a;e[n+6]=(15&i)<<4|15&a,e[n+7]=i>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,Tl(this,t,this.l)}}return this.l+=r,this}function Pl(e,t){var n=sl(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Ll(e,t){e.l=t,e.read_shift=Bl,e.chk=Pl,e.write_shift=Dl}function Ql(e,t){e.l+=t}function Rl(e){var t=uo(e);return Ll(t,0),t}function jl(e,t,n){if(e){var r,i,a;Ll(e,e.l||0);for(var o=e.length,s=0,c=0;e.l<o;){128&(s=e.read_shift(1))&&(s=(127&s)+((127&e.read_shift(1))<<7));var l=zm[s]||zm[65535];for(a=127&(r=e.read_shift(1)),i=1;i<4&&128&r;++i)a+=(127&(r=e.read_shift(1)))<<7*i;c=e.l+a;var u=l.f&&l.f(e,a,n);if(e.l=c,t(u,l,s))return}}}function Nl(){var e=[],t=co?256:2048,n=function(e){var t=Rl(e);return Ll(t,0),t},r=n(t),i=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},a=function(e){return r&&e<r.length-r.l?r:(i(),r=n(Math.max(e+1,t)))};return{next:a,push:function(e){i(),null==(r=e).l&&(r.l=r.length),a(t)},end:function(){return i(),vo(e)},_bufs:e}}function Fl(e,t,n,r){var i,a=+t;if(!isNaN(a)){r||(r=zm[a].p||(n||[]).length||0),i=1+(a>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var o=e.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,128+(127&a)),o.write_shift(1,a>>7));for(var s=0;4!=s;++s){if(!(r>=128)){o.write_shift(1,r);break}o.write_shift(1,128+(127&r)),r>>=7}r>0&&xl(n)&&e.push(n)}}function zl(e,t,n){var r=Ds(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function Hl(e,t,n){var r=Ds(e);return r.s=zl(r.s,t.s,n),r.e=zl(r.e,t.s,n),r}function Ul(e,t){if(e.cRel&&e.c<0)for(e=Ds(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Ds(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=$l(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function Gl(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Ul(e.s,t.biff)+":"+Ul(e.e,t.biff):(e.s.rRel?"":"$")+Wl(e.s.r)+":"+(e.e.rRel?"":"$")+Wl(e.e.r):(e.s.cRel?"":"$")+Yl(e.s.c)+":"+(e.e.cRel?"":"$")+Yl(e.e.c)}function Vl(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Wl(e){return""+(e+1)}function ql(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function Yl(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Kl(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function $l(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function Jl(e){var t=e.indexOf(":");return-1==t?{s:Kl(e),e:Kl(e)}:{s:Kl(e.slice(0,t)),e:Kl(e.slice(t+1))}}function Xl(e,t){return void 0===t||"number"==typeof t?Xl(e.s,e.e):("string"!=typeof e&&(e=$l(e)),"string"!=typeof t&&(t=$l(t)),e==t?e:e+":"+t)}function Zl(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,a=e.length;for(n=0;r<a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.s.c=--n,n=0;r<a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;if(t.s.r=--n,r===a||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.e.c=--n,n=0;r!=a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return t.e.r=--n,t}function eu(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=ss(e.z,n?xs(t):t)}catch(e){}try{return e.w=ss((e.XF||{}).numFmtId||(n?14:0),n?xs(t):t)}catch(e){return""+t}}function tu(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Nu[e.v]||e.v:eu(e,null==t?e.v:t))}function nu(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function ru(e,t){return function(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense,a=e||(i?[]:{}),o=0,s=0;if(a&&null!=r.origin){if("number"==typeof r.origin)o=r.origin;else{var c="string"==typeof r.origin?Kl(r.origin):r.origin;o=c.r,s=c.c}a["!ref"]||(a["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=Zl(a["!ref"]);l.s.c=u.s.c,l.s.r=u.s.r,l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),-1==o&&(l.e.r=o=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=t[h].length;++f)if(void 0!==t[h][f]){var d={v:t[h][f]},p=o+h,g=s+f;if(l.s.r>p&&(l.s.r=p),l.s.c>g&&(l.s.c=g),l.e.r<p&&(l.e.r=p),l.e.c<g&&(l.e.c=g),!t[h][f]||"object"!=typeof t[h][f]||Array.isArray(t[h][f])||t[h][f]instanceof Date)if(Array.isArray(d.v)&&(d.f=t[h][f][1],d.v=d.v[0]),null===d.v)if(d.f)d.t="n";else if(r.nullError)d.t="e",d.v=0;else{if(!r.sheetStubs)continue;d.t="z"}else"number"==typeof d.v?d.t="n":"boolean"==typeof d.v?d.t="b":d.v instanceof Date?(d.z=r.dateNF||Bo[14],r.cellDates?(d.t="d",d.w=ss(d.z,xs(d.v))):(d.t="n",d.v=xs(d.v),d.w=ss(d.z,d.v))):d.t="s";else d=t[h][f];if(i)a[p]||(a[p]=[]),a[p][g]&&a[p][g].z&&(d.z=a[p][g].z),a[p][g]=d;else{var m=$l({c:g,r:p});a[m]&&a[m].z&&(d.z=a[m].z),a[m]=d}}}return l.s.c<1e7&&(a["!ref"]=Xl(l)),a}(null,e,t)}function iu(e,t){return t||(t=Rl(4)),t.write_shift(4,e),t}function au(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function ou(e,t){var n=!1;return null==t&&(n=!0,t=Rl(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function su(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function cu(e,t){var n=e.l,r=e.read_shift(1),i=au(e),a=[],o={t:i,h:i};if(1&r){for(var s=e.read_shift(4),c=0;c!=s;++c)a.push(su(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=n+t,o}var lu=cu;function uu(e,t){var n=!1;return null==t&&(n=!0,t=Rl(23+4*e.t.length)),t.write_shift(1,1),ou(e.t,t),t.write_shift(4,1),function(e,t){t||(t=Rl(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function hu(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function fu(e,t){return null==t&&(t=Rl(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function du(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function pu(e,t){return null==t&&(t=Rl(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var gu=au,mu=ou;function vu(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function yu(e,t){var n=!1;return null==t&&(n=!0,t=Rl(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var Au=au,bu=vu,wu=yu;function xu(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var i=0===r?wl([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):kl(t,0)>>2;return n?i/100:i}function Cu(e,t){null==t&&(t=Rl(4));var n=0,r=0,i=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?i:e)<<2)+(n+2))}function _u(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Iu=_u,Eu=function(e,t){return t||(t=Rl(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function ku(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Su(e,t){return(t||Rl(8)).write_shift(8,e,"f")}function Bu(e,t){if(t||(t=Rl(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function Mu(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var Tu=80,Ou=[Tu,81],Du={1:{n:"CodePage",t:2},2:{n:"Category",t:Tu},3:{n:"PresentationFormat",t:Tu},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Tu},15:{n:"Company",t:Tu},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Tu},27:{n:"ContentStatus",t:Tu},28:{n:"Language",t:Tu},29:{n:"Version",t:Tu},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Pu={1:{n:"CodePage",t:2},2:{n:"Title",t:Tu},3:{n:"Subject",t:Tu},4:{n:"Author",t:Tu},5:{n:"Keywords",t:Tu},6:{n:"Comments",t:Tu},7:{n:"Template",t:Tu},8:{n:"LastAuthor",t:Tu},9:{n:"RevNumber",t:Tu},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Tu},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Lu={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Qu=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Ru(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var ju=Ds(Ru([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Nu={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Fu={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},zu={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Hu={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Uu(e,t){var n,r=function(e){for(var t=[],n=vs(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(zu),i=[];i[i.length]=Js,i[i.length]=Tc("Types",null,{xmlns:jc,"xmlns:xsd":qc,"xmlns:xsi":Wc}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Tc("Default",null,{Extension:e[0],ContentType:e[1]})})));var a=function(r){e[r]&&e[r].length>0&&(n=e[r][0],i[i.length]=Tc("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Hu[r][t.bookType]||Hu[r].xlsx}))},o=function(n){(e[n]||[]).forEach((function(e){i[i.length]=Tc("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Hu[n][t.bookType]||Hu[n].xlsx})}))},s=function(t){(e[t]||[]).forEach((function(e){i[i.length]=Tc("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var Gu={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Vu(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Wu(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(ec)||[]).forEach((function(e){var i=rc(e);if("<Relationship"===i[0]){var a={};a.Type=i.Type,a.Target=i.Target,a.Id=i.Id,i.TargetMode&&(a.TargetMode=i.TargetMode);var o="External"===i.TargetMode?i.Target:$s(i.Target,t);n[o]=a,r[i.Id]=a}})),n["!id"]=r,n}function qu(e){var t=[Js,Tc("Relationships",null,{xmlns:Nc})];return vs(e["!id"]).forEach((function(n){t[t.length]=Tc("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Yu(e,t,n,r,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=r,i.Target=n,a?i.TargetMode=a:[Gu.HLINK,Gu.XPATH,Gu.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function Ku(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function $u(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Wa.version+"</meta:generator></office:meta></office:document-meta>"}var Ju=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Xu=function(){for(var e=new Array(Ju.length),t=0;t<Ju.length;++t){var n=Ju[t],r="(?:"+n[0].slice(0,n[0].indexOf(":"))+":)"+n[0].slice(n[0].indexOf(":")+1);e[t]=new RegExp("<"+r+"[^>]*>([\\s\\S]*?)</"+r+">")}return e}();function Zu(e){var t={};e=bc(e);for(var n=0;n<Ju.length;++n){var r=Ju[n],i=e.match(Xu[n]);null!=i&&i.length>0&&(t[r[1]]=sc(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=Ts(t[r[1]]))}return t}function eh(e,t,n,r,i){null==i[e]&&null!=t&&""!==t&&(i[e]=t,t=uc(t),r[r.length]=n?Tc(e,t,n):Bc(e,t))}function th(e,t){var n=t||{},r=[Js,Tc("cp:coreProperties",null,{"xmlns:cp":Lc,"xmlns:dc":zc,"xmlns:dcterms":Hc,"xmlns:dcmitype":Uc,"xmlns:xsi":Wc})],i={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&eh("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:Oc(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=e.ModifiedDate&&eh("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:Oc(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var a=0;a!=Ju.length;++a){var o=Ju[a],s=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:e?e[o[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&eh(o[0],s,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var nh=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],rh=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ih(e,t,n,r){var i=[];if("string"==typeof e)i=kc(e,r);else for(var a=0;a<e.length;++a)i=i.concat(e[a].map((function(e){return{v:e}})));var o="string"==typeof t?kc(t,r).map((function(e){return e.v})):t,s=0,c=0;if(o.length>0)for(var l=0;l!==i.length;l+=2){switch(c=+i[l+1].v,i[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=c,n.SheetNames=o.slice(s,s+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=c,n.DefinedNames=o.slice(s,s+c);break;case"Charts":case"Diagramme":n.Chartsheets=c,n.ChartNames=o.slice(s,s+c)}s+=c}}function ah(e){var t=[],n=Tc;return e||(e={}),e.Application="SheetJS",t[t.length]=Js,t[t.length]=Tc("Properties",null,{xmlns:Rc,"xmlns:vt":Vc}),nh.forEach((function(r){if(void 0!==e[r[1]]){var i;switch(r[2]){case"string":i=uc(String(e[r[1]]));break;case"bool":i=e[r[1]]?"true":"false"}void 0!==i&&(t[t.length]=n(r[0],i))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+uc(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var oh=/<[^>]+>[^<]*/g;function sh(e){var t=[Js,Tc("Properties",null,{xmlns:Qc,"xmlns:vt":Vc})];if(!e)return t.join("");var n=1;return vs(e).forEach((function(r){++n,t[t.length]=Tc("property",function(e,t){switch(typeof e){case"string":var n=Tc("vt:lpwstr",uc(e));return t&&(n=n.replace(/&quot;/g,"_x0022_")),n;case"number":return Tc((0|e)==e?"vt:i4":"vt:r8",uc(String(e)));case"boolean":return Tc("vt:bool",e?"true":"false")}if(e instanceof Date)return Tc("vt:filetime",Oc(e));throw new Error("Unable to serialize "+e)}(e[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:uc(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var ch,lh={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function uh(e,t,n){ch||(ch=As(lh)),e[t=ch[t]||t]=n}function hh(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function fh(e,t,n){var r=e.l,i=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-r&3;)++e.l;return i}function dh(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function ph(e,t,n){return 31===t?dh(e):fh(e,0,n)}function gh(e,t,n){return ph(e,t,!1===n?0:4)}function mh(e){var t=e.l,n=Ah(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[n,Ah(e,3)]}function vh(e,t){for(var n=e.read_shift(4),r={},i=0;i!=n;++i){var a=e.read_shift(4),o=e.read_shift(4);r[a]=e.read_shift(o,1200===t?"utf16le":"utf8").replace(yo,"").replace(Ao,"!"),1200===t&&o%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function yh(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function Ah(e,t,n){var r,i=e.read_shift(2),a=n||{};if(e.l+=2,12!==t&&i!==t&&-1===Ou.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(12===t?i:t){case 2:return r=e.read_shift(2,"i"),a.raw||(e.l+=2),r;case 3:return e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return e.read_shift(4);case 30:return fh(e,0,4).replace(yo,"");case 31:return dh(e);case 64:return hh(e);case 65:return yh(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return gh(e,i,!a.raw).replace(yo,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return ph(e,t,0)}(e,i).replace(yo,"");case 4108:return function(e){for(var t=e.read_shift(4),n=[],r=0;r<t/2;++r)n.push(mh(e));return n}(e);case 4126:case 4127:return 4127==i?function(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r){var i=e.l;n[r]=e.read_shift(0,"lpwstr").replace(yo,""),e.l-i&2&&(e.l+=2)}return n}(e):function(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r)n[r]=e.read_shift(0,"lpstr-cp").replace(yo,"");return n}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function bh(e,t){var n=Rl(4),r=Rl(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=Rl(8)).write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var i=(n*=1e7)/Math.pow(2,32)|0;i>0&&(n%=Math.pow(2,32),r+=i);var a=Rl(8);return a.write_shift(4,n),a.write_shift(4,r),a}(t);break;case 31:case 80:for((r=Rl(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return vo([n,r])}function wh(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),a=[],o=0,s=0,c=-1,l={};for(o=0;o!=i;++o){var u=e.read_shift(4),h=e.read_shift(4);a[o]=[u,h+n]}a.sort((function(e,t){return e[1]-t[1]}));var f={};for(o=0;o!=i;++o){if(e.l!==a[o][1]){var d=!0;if(o>0&&t)switch(t[a[o-1][0]].t){case 2:e.l+2===a[o][1]&&(e.l+=2,d=!1);break;case 80:case 4108:e.l<=a[o][1]&&(e.l=a[o][1],d=!1)}if((!t||0==o)&&e.l<=a[o][1]&&(d=!1,e.l=a[o][1]),d)throw new Error("Read Error: Expected address "+a[o][1]+" at "+e.l+" :"+o)}if(t){var p=t[a[o][0]];if(f[p.n]=Ah(e,p.t,{raw:!0}),"version"===p.p&&(f[p.n]=String(f[p.n]>>16)+"."+("0000"+String(65535&f[p.n])).slice(-4)),"CodePage"==p.n)switch(f[p.n]){case 0:f[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Ja(s=f[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[p.n])}}else if(1===a[o][0]){if(s=f.CodePage=Ah(e,2),Ja(s),-1!==c){var g=e.l;e.l=a[c][1],l=vh(e,s),e.l=g}}else if(0===a[o][0]){if(0===s){c=o,e.l=a[o+1][1];continue}l=vh(e,s)}else{var m,v=l[a[o][0]];switch(e[e.l]){case 65:e.l+=4,m=yh(e);break;case 30:case 31:e.l+=4,m=gh(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,m=e.read_shift(4,"i");break;case 19:e.l+=4,m=e.read_shift(4);break;case 5:e.l+=4,m=e.read_shift(8,"f");break;case 11:e.l+=4,m=Sh(e,4);break;case 64:e.l+=4,m=Ts(hh(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[v]=m}}return e.l=n+r,f}var xh=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Ch(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function _h(e,t,n){var r=Rl(8),i=[],a=[],o=8,s=0,c=Rl(8),l=Rl(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),a.push(c),i.push(l),o+=8+c.length,!t){(l=Rl(8)).write_shift(4,0),i.unshift(l);var u=[Rl(4)];for(u[0].write_shift(4,e.length),s=0;s<e.length;++s){var h=e[s][0];for((c=Rl(8+2*(h.length+1)+(h.length%2?0:2))).write_shift(4,s+2),c.write_shift(4,h.length+1),c.write_shift(0,h,"dbcs");c.l!=c.length;)c.write_shift(1,0);u.push(c)}c=vo(u),a.unshift(c),o+=8+c.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(xh.indexOf(e[s][0])>-1||rh.indexOf(e[s][0])>-1)&&null!=e[s][1]){var f=e[s][1],d=0;if(t){var p=n[d=+t[e[s][0]]];if("version"==p.p&&"string"==typeof f){var g=f.split(".");f=(+g[0]<<16)+(+g[1]||0)}c=bh(p.t,f)}else{var m=Ch(f);-1==m&&(m=31,f=String(f)),c=bh(m,f)}a.push(c),(l=Rl(8)).write_shift(4,t?d:2+s),i.push(l),o+=8+c.length}var v=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,v),v+=a[s].length;return r.write_shift(4,o),r.write_shift(4,a.length),vo([r].concat(i).concat(a))}function Ih(e,t,n){var r=e.content;if(!r)return{};Ll(r,0);var i,a,o,s,c=0;r.chk("feff","Byte Order: "),r.read_shift(2);var l=r.read_shift(4),u=r.read_shift(16);if(u!==ps.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(1!==(i=r.read_shift(4))&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(a=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(o=r.read_shift(16),c=r.read_shift(4));var h,f=wh(r,t),d={SystemIdentifier:l};for(var p in f)d[p]=f[p];if(d.FMTID=a,1===i)return d;if(c-r.l==2&&(r.l+=2),r.l!==c)throw new Error("Length mismatch 2: "+r.l+" !== "+c);try{h=wh(r,null)}catch(e){}for(p in h)d[p]=h[p];return d.FMTID=[a,o],d}function Eh(e,t,n,r,i,a){var o=Rl(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,ps.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var c=_h(e,n,r);if(s.push(c),i){var l=_h(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+c.length),s.push(l)}return vo(s)}function kh(e,t){return e.read_shift(t),null}function Sh(e,t){return 1===e.read_shift(t)}function Bh(e,t){return t||(t=Rl(2)),t.write_shift(2,+!!e),t}function Mh(e){return e.read_shift(2,"u")}function Th(e,t){return t||(t=Rl(2)),t.write_shift(2,e),t}function Oh(e,t){return function(e,t,n){for(var r=[],i=e.l+t;e.l<i;)r.push(n(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return r}(e,t,Mh)}function Dh(e,t,n){return n||(n=Rl(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Ph(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont";return n&&n.biff,n&&8!=n.biff?12==n.biff&&(i="wstr"):e.read_shift(1)&&(i="dbcs-cont"),n.biff>=2&&n.biff<=5&&(i="cpstr"),r?e.read_shift(r,i):""}function Lh(e){var t,n=e.read_shift(2),r=e.read_shift(1),i=4&r,a=8&r,o=1+(1&r),s=0,c={};a&&(s=e.read_shift(2)),i&&(t=e.read_shift(4));var l=2==o?"dbcs-cont":"sbcs-cont",u=0===n?"":e.read_shift(n,l);return a&&(e.l+=4*s),i&&(e.l+=t),c.t=u,a||(c.raw="<t>"+c.t+"</t>",c.r=c.t),c}function Qh(e){var t=e.t||"",n=Rl(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=Rl(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),vo([n,r])}function Rh(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function jh(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):Rh(e,r,n)}function Nh(e,t,n){if(n.biff>5)return jh(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Fh(e,t,n){return n||(n=Rl(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function zh(e,t){var n=e.read_shift(16);switch(n){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(yo,"");return r&&(e.l+=24),i}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),n="";t-- >0;)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return n+r.replace(/\\/g,"/");var i=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return n+e.read_shift(i>>1,"utf16le").replace(yo,"")}(e);default:throw new Error("Unsupported Moniker "+n)}}function Hh(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(yo,""):""}function Uh(e,t){t||(t=Rl(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function Gh(e){var t=Rl(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var i=r.indexOf("#"),a=i>-1?31:23;switch(r.charAt(0)){case"#":a=28;break;case".":a&=-3}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)t.write_shift(4,o[n]);if(28==a)Uh(r=r.slice(1),t);else if(2&a){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));var s=i>-1?r.slice(0,i):r;for(t.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)t.write_shift(2,s.charCodeAt(n));t.write_shift(2,0),8&a&&Uh(i>-1?r.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));for(var c=0;"../"==r.slice(3*c,3*c+3)||"..\\"==r.slice(3*c,3*c+3);)++c;for(t.write_shift(2,c),t.write_shift(4,r.length-3*c+1),n=0;n<r.length-3*c;++n)t.write_shift(1,255&r.charCodeAt(n+3*c));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function Vh(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function Wh(e,t){var n=Vh(e);return n[3]=0,n}function qh(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Yh(e,t,n,r){return r||(r=Rl(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function Kh(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function $h(e){return[e.read_shift(2),xu(e)]}function Jh(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Xh(e,t){return t||(t=Rl(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Zh(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var ef=Zh;function tf(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function nf(e){e.l+=2,e.l+=e.read_shift(2)}var rf={0:nf,4:nf,5:nf,6:nf,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:nf,9:nf,10:nf,11:nf,12:nf,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:nf,15:nf,16:nf,17:nf,18:nf,19:nf,20:nf,21:tf};function af(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),(t-=2)>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function of(e,t,n){var r=1536,i=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;default:throw new Error("unsupported BIFF version")}var a=Rl(i);return a.write_shift(2,r),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function sf(e,t){var n=!t||t.biff>=8?2:1,r=Rl(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function cf(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var i=e.read_shift(2);return n&&2==n.biff&&(r=1-(i>>15),i&=32767),[{Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3},i]}function lf(e,t,n,r){var i=n&&5==n.biff;r||(r=Rl(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=r.length>r.l?r.slice(0,r.l):r;return null==a.l&&(a.l=a.length),a}var uf=Nh;function hf(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,a=e.read_shift(i),o=e.read_shift(i),s=e.read_shift(2),c=e.read_shift(2);return e.l=r,{s:{r:a,c:s},e:{r:o,c:c}}}function ff(e,t,n,r){var i=n&&5==n.biff;r||(r=Rl(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),r.write_shift(4,a),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function df(e,t,n){var r=qh(e);2!=n.biff&&9!=t||++e.l;var i=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}var pf=function(e,t,n){return 0===t?"":Nh(e,0,n)};function gf(e,t,n){var r,i=e.read_shift(2),a={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=function(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Ph(e,0,n),a=e.read_shift(2);if(a!==(r-=e.l))throw new Error("Malformed AddinUdf: padding = "+r+" != "+a);return e.l+=a,i}(e,t-2,n)),a.body=r||e.read_shift(t-2),"string"==typeof r&&(a.Name=r),a}var mf=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function vf(e,t,n){var r=e.l+t,i=e.read_shift(2),a=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),c=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),c=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var l=Rh(e,o,n);32&i&&(l=mf[l.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==s&&u>0?function(e,t,n,r){var i,a=e.l+t,o=Tp(e,r,n);return a!==e.l&&(i=Mp(e,a-e.l,o,n)),[o,i]}(e,u,n,s):[];return{chKey:a,Name:l,itab:c,rgce:h}}function yf(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Ph(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],i=e.l+t,a=e.read_shift(n.biff>8?4:2);0!=a--;)r.push(Kh(e,n.biff,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function Af(e,t,n){var r=ef(e);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Rp(e,t,n)]}var bf={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function wf(e){var t=Rl(24),n=Kl(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return vo([t,Gh(e[1])])}function xf(e){var t=e[1].Tooltip,n=Rl(10+2*(t.length+1));n.write_shift(2,2048);var r=Kl(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}function Cf(e,t,n){if(!n.cellStyles)return Ql(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),a=e.read_shift(r),o=e.read_shift(r),s=e.read_shift(r),c=e.read_shift(2);2==r&&(e.l+=2);var l={s:i,e:a,w:o,ixfe:s,flags:c};return(n.biff>=5||!n.biff)&&(l.level=c>>8&7),l}var _f=qh,If=Oh,Ef=jh,kf=[2,3,48,49,131,139,140,245],Sf=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=As({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var i=ru(function(t,n){var r=[],i=uo(1);switch(n.type){case"base64":i=fo(so(t));break;case"binary":i=fo(t);break;case"buffer":case"array":i=t}Ll(i,0);var a=i.read_shift(1),o=!!(136&a),s=!1,c=!1;switch(a){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:s=!0,o=!0;break;case 140:c=!0;break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var l=0,u=521;2==a&&(l=i.read_shift(2)),i.l+=3,2!=a&&(l=i.read_shift(4)),l>1048576&&(l=1e6),2!=a&&(u=i.read_shift(2));var h=i.read_shift(2),f=n.codepage||1252;2!=a&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(f=e[i[i.l]]),i.l+=1,i.l+=2),c&&(i.l+=36);for(var d=[],p={},g=Math.min(i.length,2==a?521:u-10-(s?264:0)),m=c?32:11;i.l<g&&13!=i[i.l];)switch((p={}).name=to.utils.decode(f,i.slice(i.l,i.l+m)).replace(/[\u0000\r\n].*$/g,""),i.l+=m,p.type=String.fromCharCode(i.read_shift(1)),2==a||c||(p.offset=i.read_shift(4)),p.len=i.read_shift(1),2==a&&(p.offset=i.read_shift(2)),p.dec=i.read_shift(1),p.name.length&&d.push(p),2!=a&&(i.l+=c?13:14),p.type){case"B":s&&8==p.len||n.WTF;break;case"G":case"P":n.WTF;break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==i[i.l]&&(i.l=u-1),13!==i.read_shift(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=u;var v=0,y=0;for(r[0]=[],y=0;y!=d.length;++y)r[0][y]=d[y].name;for(;l-- >0;)if(42!==i[i.l])for(++i.l,r[++v]=[],y=0,y=0;y!=d.length;++y){var A=i.slice(i.l,i.l+d[y].len);i.l+=d[y].len,Ll(A,0);var b=to.utils.decode(f,A);switch(d[y].type){case"C":b.trim().length&&(r[v][y]=b.replace(/\s+$/,""));break;case"D":8===b.length?r[v][y]=new Date(+b.slice(0,4),+b.slice(4,6)-1,+b.slice(6,8)):r[v][y]=b;break;case"F":r[v][y]=parseFloat(b.trim());break;case"+":case"I":r[v][y]=c?2147483648^A.read_shift(-4,"i"):A.read_shift(4,"i");break;case"L":switch(b.trim().toUpperCase()){case"Y":case"T":r[v][y]=!0;break;case"N":case"F":r[v][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+b+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));r[v][y]="##MEMO##"+(c?parseInt(b.trim(),10):A.read_shift(4));break;case"N":(b=b.replace(/\u0000/g,"").trim())&&"."!=b&&(r[v][y]=+b||0);break;case"@":r[v][y]=new Date(A.read_shift(-8,"f")-621356832e5);break;case"T":r[v][y]=new Date(864e5*(A.read_shift(4)-2440588)+A.read_shift(4));break;case"Y":r[v][y]=A.read_shift(4,"i")/1e4+A.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[v][y]=-A.read_shift(-8,"f");break;case"B":if(s&&8==d[y].len){r[v][y]=A.read_shift(8,"f");break}case"G":case"P":A.l+=d[y].len;break;case"0":if("_NullFlags"===d[y].name)break;default:throw new Error("DBF Unsupported data type "+d[y].type)}}else i.l+=h;if(2!=a&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=d,r}(t,r),r);return i["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,i}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return nu(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var i=n||{};if(+i.codepage>=0&&Ja(+i.codepage),"string"==i.type)throw new Error("Cannot write DBF to JS string");var a=Nl(),o=Zv(e,{header:1,raw:!0,cellDates:!0}),s=o[0],c=o.slice(1),l=e["!cols"]||[],u=0,h=0,f=0,d=1;for(u=0;u<s.length;++u)if(((l[u]||{}).DBF||{}).name)s[u]=l[u].DBF.name,++f;else if(null!=s[u]){if(++f,"number"==typeof s[u]&&(s[u]=s[u].toString(10)),"string"!=typeof s[u])throw new Error("DBF Invalid column name "+s[u]+" |"+typeof s[u]+"|");if(s.indexOf(s[u])!==u)for(h=0;h<1024;++h)if(-1==s.indexOf(s[u]+"_"+h)){s[u]+="_"+h;break}}var p=Zl(e["!ref"]),g=[],m=[],v=[];for(u=0;u<=p.e.c-p.s.c;++u){var y="",A="",b=0,w=[];for(h=0;h<c.length;++h)null!=c[h][u]&&w.push(c[h][u]);if(0!=w.length&&null!=s[u]){for(h=0;h<w.length;++h){switch(typeof w[h]){case"number":A="B";break;case"string":default:A="C";break;case"boolean":A="L";break;case"object":A=w[h]instanceof Date?"D":"C"}b=Math.max(b,String(w[h]).length),y=y&&y!=A?"C":A}b>250&&(b=250),"C"==(A=((l[u]||{}).DBF||{}).type)&&l[u].DBF.len>b&&(b=l[u].DBF.len),"B"==y&&"N"==A&&(y="N",v[u]=l[u].DBF.dec,b=l[u].DBF.len),m[u]="C"==y||"N"==A?b:r[y]||0,d+=m[u],g[u]=y}else g[u]="?"}var x=a.next(32);for(x.write_shift(4,318902576),x.write_shift(4,c.length),x.write_shift(2,296+32*f),x.write_shift(2,d),u=0;u<4;++u)x.write_shift(4,0);for(x.write_shift(4,(+t[qa]||3)<<8),u=0,h=0;u<s.length;++u)if(null!=s[u]){var C=a.next(32),_=(s[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);C.write_shift(1,_,"sbcs"),C.write_shift(1,"?"==g[u]?"C":g[u],"sbcs"),C.write_shift(4,h),C.write_shift(1,m[u]||r[g[u]]||0),C.write_shift(1,v[u]||0),C.write_shift(1,2),C.write_shift(4,0),C.write_shift(1,0),C.write_shift(4,0),C.write_shift(4,0),h+=m[u]||r[g[u]]||0}var I=a.next(264);for(I.write_shift(4,13),u=0;u<65;++u)I.write_shift(4,0);for(u=0;u<c.length;++u){var E=a.next(d);for(E.write_shift(1,0),h=0;h<s.length;++h)if(null!=s[h])switch(g[h]){case"L":E.write_shift(1,null==c[u][h]?63:c[u][h]?84:70);break;case"B":E.write_shift(8,c[u][h]||0,"f");break;case"N":var k="0";for("number"==typeof c[u][h]&&(k=c[u][h].toFixed(v[h]||0)),f=0;f<m[h]-k.length;++f)E.write_shift(1,32);E.write_shift(1,k,"sbcs");break;case"D":c[u][h]?(E.write_shift(4,("0000"+c[u][h].getFullYear()).slice(-4),"sbcs"),E.write_shift(2,("00"+(c[u][h].getMonth()+1)).slice(-2),"sbcs"),E.write_shift(2,("00"+c[u][h].getDate()).slice(-2),"sbcs")):E.write_shift(8,"00000000","sbcs");break;case"C":var S=String(null!=c[u][h]?c[u][h]:"").slice(0,m[h]);for(E.write_shift(1,S,"sbcs"),f=0;f<m[h]-S.length;++f)E.write_shift(1,32)}}return a.next(1).write_shift(1,26),a.end()}}}(),Bf=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+vs(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?io(r):r},i=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:io(r)};function a(e,r){var a,o=e.split(/[\n\r]+/),s=-1,c=-1,l=0,u=0,h=[],f=[],d=null,p={},g=[],m=[],v=[],y=0;for(+r.codepage>=0&&Ja(+r.codepage);l!==o.length;++l){y=0;var A,b=o[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(t,n),w=b.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),x=w[0];if(b.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&f.push(b.slice(3).replace(/;;/g,";"));break;case"C":var C=!1,_=!1,I=!1,E=!1,k=-1,S=-1;for(u=1;u<w.length;++u)switch(w[u].charAt(0)){case"A":case"G":break;case"X":c=parseInt(w[u].slice(1))-1,_=!0;break;case"Y":for(s=parseInt(w[u].slice(1))-1,_||(c=0),a=h.length;a<=s;++a)h[a]=[];break;case"K":'"'===(A=w[u].slice(1)).charAt(0)?A=A.slice(1,A.length-1):"TRUE"===A?A=!0:"FALSE"===A?A=!1:isNaN(Ls(A))?isNaN(Rs(A).getDate())||(A=Ts(A)):(A=Ls(A),null!==d&&rs(d)&&(A=Es(A))),C=!0;break;case"E":E=!0;var B=ap(w[u].slice(1),{r:s,c:c});h[s][c]=[h[s][c],B];break;case"S":I=!0,h[s][c]=[h[s][c],"S5S"];break;case"R":k=parseInt(w[u].slice(1))-1;break;case"C":S=parseInt(w[u].slice(1))-1;break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+b)}if(C&&(h[s][c]&&2==h[s][c].length?h[s][c][0]=A:h[s][c]=A,d=null),I){if(E)throw new Error("SYLK shared formula cannot have own formula");var M=k>-1&&h[k][S];if(!M||!M[1])throw new Error("SYLK shared formula cannot find base");h[s][c][1]=cp(M[1],{r:s-k,c:c-S})}break;case"F":var T=0;for(u=1;u<w.length;++u)switch(w[u].charAt(0)){case"X":c=parseInt(w[u].slice(1))-1,++T;break;case"Y":for(s=parseInt(w[u].slice(1))-1,a=h.length;a<=s;++a)h[a]=[];break;case"M":y=parseInt(w[u].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":d=f[parseInt(w[u].slice(1))];break;case"W":for(v=w[u].slice(1).split(" "),a=parseInt(v[0],10);a<=parseInt(v[1],10);++a)y=parseInt(v[2],10),m[a-1]=0===y?{hidden:!0}:{wch:y},gd(m[a-1]);break;case"C":m[c=parseInt(w[u].slice(1))-1]||(m[c]={});break;case"R":g[s=parseInt(w[u].slice(1))-1]||(g[s]={}),y>0?(g[s].hpt=y,g[s].hpx=yd(y)):0===y&&(g[s].hidden=!0);break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+b)}T<1&&(d=null);break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+b)}}return g.length>0&&(p["!rows"]=g),m.length>0&&(p["!cols"]=m),r&&r.sheetRows&&(h=h.slice(0,r.sheetRows)),[h,p]}function o(e,t){var n=function(e,t){switch(t.type){case"base64":return a(so(e),t);case"binary":return a(e,t);case"buffer":return a(co&&r.isBuffer(e)?e.toString("binary"):go(e),t);case"array":return a(Os(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),i=n[0],o=n[1],s=ru(i,t);return vs(o).forEach((function(e){s[e]=o[e]})),s}function s(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+sp(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return i}return e["|"]=254,{to_workbook:function(e,t){return nu(o(e,t),t)},to_sheet:o,from_sheet:function(e,t){var n,r,i=["ID;PWXL;N;E"],a=[],o=Zl(e["!ref"]),c=Array.isArray(e),l="\r\n";i.push("P;PGeneral"),i.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=i,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=ud(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=hd(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*vd(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}(i,e["!rows"]),i.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var u=o.s.r;u<=o.e.r;++u)for(var h=o.s.c;h<=o.e.c;++h){var f=$l({r:u,c:h});(n=c?(e[u]||[])[h]:e[f])&&(null!=n.v||n.f&&!n.F)&&a.push(s(n,0,u,h))}return i.join(l)+l+a.join(l)+l+"E"+l}}}(),Mf=function(){function e(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,o=[];a!==n.length;++a)if("BOT"!==n[a].trim()){if(!(r<0)){for(var s=n[a].trim().split(","),c=s[0],l=s[1],u=n[++a]||"";1&(u.match(/["]/g)||[]).length&&a<n.length-1;)u+="\n"+n[++a];switch(u=u.trim(),+c){case-1:if("BOT"===u){o[++r]=[],i=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?o[r][i]=!0:"FALSE"===u?o[r][i]=!1:isNaN(Ls(l))?isNaN(Rs(l).getDate())?o[r][i]=l:o[r][i]=Ts(l):o[r][i]=Ls(l),++i;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),o[r][i++]=""!==u?u:null}if("EOD"===u)break}}else o[++r]=[],i=0;return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}function t(t,n){return ru(function(t,n){switch(n.type){case"base64":return e(so(t),n);case"binary":return e(t,n);case"buffer":return e(co&&r.isBuffer(t)?t.toString("binary"):go(t),n);case"array":return e(Os(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return nu(t(e,n),n)},to_sheet:t,from_sheet:function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+","+r),e.push('"'+i.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,i=[],a=Zl(n["!ref"]),o=Array.isArray(n);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,a.e.r-a.s.r+1,""),e(i,"TUPLES",0,a.e.c-a.s.c+1,""),e(i,"DATA",0,0,"");for(var s=a.s.r;s<=a.e.r;++s){t(i,-1,0,"BOT");for(var c=a.s.c;c<=a.e.c;++c){var l=$l({r:s,c:c});if(r=o?(n[s]||[])[c]:n[l])switch(r.t){case"n":var u=r.w;u||null==r.v||(u=r.v),null==u?r.f&&!r.F?t(i,1,0,"="+r.f):t(i,1,0,""):t(i,0,u,"V");break;case"b":t(i,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(i,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=ss(r.z||Bo[14],xs(Ts(r.v)))),t(i,0,r.w,"V");break;default:t(i,1,0,"")}else t(i,1,0,"")}}return t(i,-1,0,"EOD"),i.join("\r\n")}}()}}(),Tf=function(){function e(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return ru(function(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,o=[];a!==n.length;++a){var s=n[a].trim().split(":");if("cell"===s[0]){var c=Kl(s[1]);if(o.length<=c.r)for(r=o.length;r<=c.r;++r)o[r]||(o[r]=[]);switch(r=c.r,i=c.c,s[2]){case"t":o[r][i]=s[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":o[r][i]=+s[3];break;case"vtf":var l=s[s.length-1];case"vtc":"nl"===s[3]?o[r][i]=!!+s[4]:o[r][i]=+s[4],"vtf"==s[2]&&(o[r][i]=[o[r][i],l])}}}return t&&t.sheetRows&&(o=o.slice(0,t.sheetRows)),o}(e,t),t)}var n=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),r=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),a="--SocialCalcSpreadsheetControlSave--";function o(t){if(!t||!t["!ref"])return"";for(var n,r=[],i=[],a="",o=Jl(t["!ref"]),s=Array.isArray(t),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l)if(a=$l({r:c,c:l}),(n=s?(t[c]||[])[l]:t[a])&&null!=n.v&&"z"!==n.t){switch(i=["cell",a,"t"],n.t){case"s":case"str":i.push(e(n.v));break;case"n":n.f?(i[2]="vtf",i[3]="n",i[4]=n.v,i[5]=e(n.f)):(i[2]="v",i[3]=n.v);break;case"b":i[2]="vt"+(n.f?"f":"c"),i[3]="nl",i[4]=n.v?"1":"0",i[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var u=xs(Ts(n.v));i[2]="vtc",i[3]="nd",i[4]=""+u,i[5]=n.w||ss(n.z||Bo[14],u);break;case"e":continue}r.push(i.join(":"))}return r.push("sheet:c:"+(o.e.c-o.s.c+1)+":r:"+(o.e.r-o.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,n){return nu(t(e,n),n)},to_sheet:t,from_sheet:function(e){return[n,r,i,r,o(e),a].join("\n")}}}(),Of=function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(Ls(e))?isNaN(Rs(e).getDate())?t[n][r]=e:t[n][r]=Ts(e):t[n][r]=Ls(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(e){for(var r={},i=!1,a=0,o=0;a<e.length;++a)34==(o=e.charCodeAt(a))?i=!i:!i&&o in t&&(r[o]=(r[o]||0)+1);for(a in o=[],r)Object.prototype.hasOwnProperty.call(r,a)&&o.push([r[a],a]);if(!o.length)for(a in r=n)Object.prototype.hasOwnProperty.call(r,a)&&o.push([r[a],a]);return o.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[o.pop()[1]]||44}function a(e,t){var n=t||{},r="",a=n.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(r=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(r=e.charAt(4),e=e.slice(6)):r=i(e.slice(0,1024)):r=n&&n.FS?n.FS:i(e.slice(0,1024));var s=0,c=0,l=0,u=0,h=0,f=r.charCodeAt(0),d=!1,p=0,g=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var m,v,y=null!=n.dateNF?(v=(v="number"==typeof(m=n.dateNF)?Bo[m]:m).replace(fs,"(\\d+)"),new RegExp("^"+v+"$")):null;function A(){var t=e.slice(u,h),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(l=Ls(t)))if(!isNaN(Rs(t).getDate())||y&&t.match(y)){r.z=n.dateNF||Bo[14];var i=0;y&&t.match(y)&&(t=function(e,t,n){var r=-1,i=-1,a=-1,o=-1,s=-1,c=-1;(t.match(fs)||[]).forEach((function(e,t){var l=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=l;break;case"d":a=l;break;case"h":o=l;break;case"s":c=l;break;case"m":o>=0?s=l:i=l}})),c>=0&&-1==s&&i>=0&&(s=i,i=-1);var l=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==o&&-1==s&&-1==c?l:-1==r&&-1==i&&-1==a?u:l+"T"+u}(0,n.dateNF,t.match(y)||[]),i=1),n.cellDates?(r.t="d",r.v=Ts(t,i)):(r.t="n",r.v=xs(Ts(t,i))),!1!==n.cellText&&(r.w=ss(r.z,r.v instanceof Date?xs(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=l;if("z"==r.t||(n.dense?(a[s]||(a[s]=[]),a[s][c]=r):a[$l({c:c,r:s})]=r),u=h+1,g=e.charCodeAt(u),o.e.c<c&&(o.e.c=c),o.e.r<s&&(o.e.r=s),p==f)++c;else if(c=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}e:for(;h<e.length;++h)switch(p=e.charCodeAt(h)){case 34:34===g&&(d=!d);break;case f:case 10:case 13:if(!d&&A())break e}return h-u>0&&A(),a["!ref"]=Xl(o),a}function o(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?a(t,n):ru(function(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;for(var a=t.split(/[\r\n]/),o=a.length-1;o>=0&&0===a[o].length;)--o;for(var s=10,c=0,l=0;l<=o;++l)-1==(c=a[l].indexOf(" "))?c=a[l].length:c++,s=Math.max(s,c);for(l=0;l<=o;++l){i[l]=[];var u=0;for(e(a[l].slice(0,s).trim(),i,l,u,r),u=1;u<=(a[l].length-s)/10+1;++u)e(a[l].slice(s+10*(u-1),s+10*u).trim(),i,l,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}(t,n),n):a(t,n)}function s(e,t){var n="",i="string"==t.type?[0,0,0,0]:Uv(e,t);switch(t.type){case"base64":n=so(e);break;case"binary":case"string":n=e;break;case"buffer":65001==t.codepage?n=e.toString("utf8"):(t.codepage,n=co&&r.isBuffer(e)?e.toString("binary"):go(e));break;case"array":n=Os(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==i[0]&&187==i[1]&&191==i[2]?n=bc(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=bc(n):t.type,"socialcalc:version:"==n.slice(0,19)?Tf.to_sheet("string"==t.type?n:bc(n),t):o(n,t)}return{to_workbook:function(e,t){return nu(s(e,t),t)},to_sheet:s,from_sheet:function(e){for(var t,n=[],r=Zl(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){for(var o=[],s=r.s.c;s<=r.e.c;++s){var c=$l({r:a,c:s});if((t=i?(e[a]||[])[s]:e[c])&&null!=t.v){for(var l=(t.w||(tu(t),t.w)||"").slice(0,10);l.length<10;)l+=" ";o.push(l+(0===s?" ":""))}else o.push("          ")}n.push(o.join(""))}return n.join("\n")}}}(),Df=function(){function e(e,t,n){if(e){Ll(e,e.l||0);for(var r=n.Enum||v;e.l<e.length;){var i=e.read_shift(2),a=r[i]||r[65535],o=e.read_shift(2),s=e.l+o,c=a.f&&a.f(e,o,n);if(e.l=s,t(c,a,i))return}}}function t(t,n){if(!t)return t;var r=n||{},i=r.dense?[]:{},a="Sheet1",o="",s=0,c={},l=[],u=[],h={s:{r:0,c:0},e:{r:0,c:0}},f=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=v,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(o=e);break;case 222:o=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||Bo[14],r.cellDates&&(e[1].t="d",e[1].v=Es(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=Xl(h),c[a]=i,l.push(a),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a=o||"Sheet"+(s+1),o="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[$l(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[$l(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=y,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=Xl(h),c[a]=i,l.push(a),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],a="Sheet"+(s+1)),f>0&&e[0].r>=f)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[$l(e[0])]=e[1],h.e.c<e[0].c&&(h.e.c=e[0].c),h.e.r<e[0].r&&(h.e.r=e[0].r);break;case 27:e[14e3]&&(u[e[14e3][0]]=e[14e3][1]);break;case 1537:u[e[0]]=e[1],e[0]==s&&(a=e[1])}}),r)}if(i["!ref"]=Xl(h),c[o||a]=i,l.push(o||a),!u.length)return{SheetNames:l,Sheets:c};for(var d={},p=[],g=0;g<u.length;++g)c[l[g]]?(p.push(u[g]||l[g]),d[u[g]]=c[u[g]]||c[l[g]]):(p.push(u[g]),d[u[g]]={"!ref":"A1"});return{SheetNames:p,Sheets:d}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].t="s",20768==r.vers){e.l++;var o=e.read_shift(1);return a[1].v=e.read_shift(o,"utf8"),a}return r.qpro&&e.l++,a[1].v=e.read_shift(i-e.l,"cstr"),a}function i(e,t,n){var r=Rl(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i<r.length;++i){var a=n.charCodeAt(i);r.write_shift(1,a>=128?95:a)}return r.write_shift(1,0),r}function a(e,t,n){var r=Rl(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function o(e,t,n){var r=Rl(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function s(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?Yl(t):Wl(t))}var c={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function h(e,t,n,r){var i=Rl(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var a=0;a<r.length;++a){var o=r.charCodeAt(a);i.write_shift(1,o>=128?95:o)}return i.write_shift(1,0),i}function f(e,t){var n=u(e),r=e.read_shift(4),i=e.read_shift(4),a=e.read_shift(2);if(65535==a)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var o=32768&a;return a=(32767&a)-16446,n[1].v=(1-2*o)*(i*Math.pow(2,a+32)+r*Math.pow(2,a)),n}function d(e,t,n,r){var i=Rl(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var a,o=0,s=0,c=0;return r<0&&(o=1,r=-r),s=0|Math.log2(r),2147483648&(c=(r/=Math.pow(2,s-31))>>>0)||(++s,c=(r/=2)>>>0),r-=c,c|=2147483648,c>>>=0,a=(r*=Math.pow(2,32))>>>0,i.write_shift(4,a),i.write_shift(4,c),s+=16383+(o?32768:0),i.write_shift(2,s),i}function p(e,t){var n=u(e),r=e.read_shift(8,"f");return n[1].v=r,n}function g(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function m(e,t){var n=Rl(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var i=e.charCodeAt(r);n[n.l++]=i>127?95:i}return n[n.l++]=0,n}var v={0:{n:"BOF",f:Mh},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(2,"i"),i}},14:{n:"NUMBER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(8,"f"),i}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].v=e.read_shift(8,"f"),r.qpro)e.l=i;else{var o=e.read_shift(2);!function(e,t){Ll(e,0);for(var n=[],r=0,i="",a="",o="",u="";e.l<e.length;){var h=e[e.l++];switch(h){case 0:n.push(e.read_shift(8,"f"));break;case 1:a=s(t[0].c,e.read_shift(2),!0),i=s(t[0].r,e.read_shift(2),!1),n.push(a+i);break;case 2:var f=s(t[0].c,e.read_shift(2),!0),d=s(t[0].r,e.read_shift(2),!1);a=s(t[0].c,e.read_shift(2),!0),i=s(t[0].r,e.read_shift(2),!1),n.push(f+d+":"+a+i);break;case 3:if(e.l<e.length)return;break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var p="";h=e[e.l++];)p+=String.fromCharCode(h);n.push('"'+p.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:u=n.pop(),o=n.pop(),n.push(["AND","OR"][h-20]+"("+o+","+u+")");break;default:if(h<32&&l[h])u=n.pop(),o=n.pop(),n.push(o+l[h]+u);else{if(!c[h])return;if(69==(r=c[h][1])&&(r=e[e.l++]),r>n.length)return;var g=n.slice(-r);n.length-=r,n.push(c[h][0]+"("+g.join(",")+")")}}}1==n.length&&(t[1].f=""+n[0])}(e.slice(e.l,e.l+o),a),e.l+=o}return a}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:g},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},y={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=u(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:f},24:{n:"NUMBER18",f:function(e,t){var n=u(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=f(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var i=e.read_shift(2);if(14e3==i){for(n[i]=[0,""],n[i][0]=e.read_shift(2);e[e.l];)n[i][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=u(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(e,t){var n=p(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:g},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&Ja(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,s,c=Nl(),l=Zl(e["!ref"]),u=Array.isArray(e),h=[];Um(c,0,(r=1030,(s=Rl(2)).write_shift(2,r),s)),Um(c,6,function(e){var t=Rl(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var f=Math.min(l.e.r,8191),d=l.s.r;d<=f;++d)for(var p=Wl(d),g=l.s.c;g<=l.e.c;++g){d===l.s.r&&(h[g]=Yl(g));var m=h[g]+p,v=u?(e[d]||[])[g]:e[m];v&&"z"!=v.t&&("n"==v.t?(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?Um(c,13,a(d,g,v.v)):Um(c,14,o(d,g,v.v)):Um(c,15,i(d,g,tu(v).slice(0,239))))}return Um(c,1),c.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&Ja(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=Nl();Um(r,0,function(e){var t=Rl(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,a=0;a<e.SheetNames.length;++a){var o=e.SheetNames[a],s=e.Sheets[o];if(s&&s["!ref"]){++i;var c=Jl(s["!ref"]);n<c.e.r&&(n=c.e.r),r<c.e.c&&(r=c.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,a=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&Um(r,27,m(e.SheetNames[i],a++));var o=0;for(i=0;i<e.SheetNames.length;++i){var s=e.Sheets[e.SheetNames[i]];if(s&&s["!ref"]){for(var c=Zl(s["!ref"]),l=Array.isArray(s),u=[],f=Math.min(c.e.r,8191),p=c.s.r;p<=f;++p)for(var g=Wl(p),v=c.s.c;v<=c.e.c;++v){p===c.s.r&&(u[v]=Yl(v));var y=u[v]+g,A=l?(s[p]||[])[v]:s[y];A&&"z"!=A.t&&("n"==A.t?Um(r,23,d(p,v,o,A.v)):Um(r,22,h(p,v,o,tu(A).slice(0,239))))}++o}}return Um(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(fo(so(e)),n);case"binary":return t(fo(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),Pf=function(){var e=xc("t"),t=xc("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:sc(r[1])},a=n.match(t);return a&&(i.s=function(e){var t={},n=e.match(ec),r=0,i=!1;if(n)for(;r!=n.length;++r){var a=rc(n[r]);switch(a[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==a.val)break;t.cp=Ka[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=a.val;break;case"<sz":t.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==a.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==a.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":a.rgb&&(t.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(47!==a[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+a[0])}}return t}(a[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Lf=function(){var e=/(\r\n|\n)/g;function t(t){var n=[[],t.v,[]];return t.v?(t.s&&function(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push('<span style="'+r.join("")+'">'),e.b&&(t.push("<b>"),n.push("</b>")),e.i&&(t.push("<i>"),n.push("</i>")),e.strike&&(t.push("<s>"),n.push("</s>"));var i=e.valign||"";"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("</"+i+">")),n.push("</span>")}(t.s,n[0],n[2]),n[0].join("")+n[1].replace(e,"<br/>")+n[2].join("")):""}return function(e){return e.map(t).join("")}}(),Qf=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Rf=/<(?:\w+:)?r>/,jf=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Nf(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=sc(bc(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=bc(e),n&&(r.h=dc(r.t))):e.match(Rf)&&(r.r=bc(e),r.t=sc(bc((e.replace(jf,"").match(Qf)||[]).join("").replace(ec,""))),n&&(r.h=Lf(Pf(r.r)))),r):{t:""}}var Ff=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,zf=/<(?:\w+:)?(?:si|sstItem)>/g,Hf=/<\/(?:\w+:)?(?:si|sstItem)>/,Uf=/^\s|\s$|[\t\n\r]/;function Gf(e,t){if(!t.bookSST)return"";var n=[Js];n[n.length]=Tc("sst",null,{xmlns:Yc[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var i=e[r],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(Uf)&&(a+=' xml:space="preserve"'),a+=">"+uc(i.t)+"</t>"),a+="</si>",n[n.length]=a}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Vf=function(e,t){var n=!1;return null==t&&(n=!0,t=Rl(15+4*e.t.length)),t.write_shift(1,0),ou(e.t,t),n?t.slice(0,t.l):t};function Wf(e){var t=Nl();Fl(t,159,function(e,t){return t||(t=Rl(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)Fl(t,19,Vf(e[n]));return Fl(t,160),t.end()}function qf(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function Yf(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),n}function Kf(e){for(var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),a=[];i-- >0;)a.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=a,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function $f(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Yf(e,4),t.U=Yf(e,4),t.W=Yf(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function Jf(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function Xf(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function Zf(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:Jf(e,t),v:Xf(e,e.length-e.l)}}function ed(){throw new Error("File is password-protected: ECMA-376 Extensible")}function td(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(ec,(function(e){var n=rc(e);switch(ic(n[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach((function(e){r[e]=n[e]}));break;case"<dataIntegrity":r.encryptedHmacKey=n.encryptedHmacKey,r.encryptedHmacValue=n.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"<keyEncryptor":r.uri=n.uri;break;case"<encryptedKey":r.encs.push(n);break;default:throw n[0]}})),r}function nd(e){var t,n,r=0,i=qf(e),a=i.length+1;for((t=uo(a))[0]=i.length,n=1;n!=a;++n)t[n]=i[n-1];for(n=a-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}var rd=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e,t){return 255&((n=e^t)/2|128*n);var n};return function(i){for(var a,o,s,c=qf(i),l=function(e){for(var r=t[e.length-1],i=104,a=e.length-1;a>=0;--a)for(var o=e[a],s=0;7!=s;++s)64&o&&(r^=n[i]),o*=2,--i;return r}(c),u=c.length,h=uo(16),f=0;16!=f;++f)h[f]=0;for(1&~u||(a=l>>8,h[u]=r(e[0],a),--u,a=255&l,o=c[c.length-1],h[u]=r(o,a));u>0;)a=l>>8,h[--u]=r(c[u],a),a=255&l,h[--u]=r(c[u],a);for(u=15,s=15-c.length;s>0;)a=l>>8,h[u]=r(e[s],a),--s,a=255&l,h[--u]=r(c[u],a),--u,--s;return h}}(),id=function(e){var t=0,n=rd(e);return function(e){var r=function(e,t,n,r,i){var a,o;for(i||(i=t),r||(r=rd("")),a=0;a!=t.length;++a)o=t[a],o=255&((o^=r[n])>>5|o<<3),i[a]=o,++n;return[i,n,r]}(0,e,t,n);return t=r[1],r[0]}};function ad(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=function(e){var t={},n=t.EncryptionVersionInfo=Yf(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):r.Data=function(e,t){var n={},r=n.EncryptionVersionInfo=Yf(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=Jf(e,i),t-=i,n.EncryptionVerifier=Xf(e,t),n}(e,t),r}var od=function(){function e(e,n){switch(n.type){case"base64":return t(so(e),n);case"binary":return t(e,n);case"buffer":return t(co&&r.isBuffer(e)?e.toString("binary"):go(e),n);case"array":return t(Os(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,a=/\\\w+\b/g,o=0,s=-1;r=a.exec(e);){if("\\cell"===r[0]){var c=e.slice(o,a.lastIndex-r[0].length);if(" "==c[0]&&(c=c.slice(1)),++s,c.length){var l={v:c,t:"s"};Array.isArray(n)?n[t][s]=l:n[$l({r:t,c:s})]=l}}o=a.lastIndex}s>i.e.c&&(i.e.c=s)})),n["!ref"]=Xl(i),n}return{to_workbook:function(t,n){return nu(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=Zl(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){n.push("\\trowd\\trautofit1");for(var o=r.s.c;o<=r.e.c;++o)n.push("\\cellx"+(o+1));for(n.push("\\pard\\intbl"),o=r.s.c;o<=r.e.c;++o){var s=$l({r:a,c:o});(t=i?(e[a]||[])[o]:e[s])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(tu(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function sd(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function cd(e,t){if(0===t)return e;var n,r,i=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=i-a;if(0===o)return[0,0,t];var s,c=0,l=i+a;switch(s=o/(l>1?2-l:l),i){case t:c=((n-r)/o+6)%6;break;case n:c=(r-t)/o+2;break;case r:c=(t-n)/o+4}return[c/6,s,l/2]}((r=(n=e).slice("#"===n[0]?1:0).slice(0,6),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]));return i[2]=t<0?i[2]*(1+t):1-(1-i[2])*(1-t),sd(function(e){var t,n=e[0],r=e[1],i=e[2],a=2*r*(i<.5?i:1-i),o=i-a/2,s=[o,o,o],c=6*n;if(0!==r)switch(0|c){case 0:case 6:t=a*c,s[0]+=a,s[1]+=t;break;case 1:t=a*(2-c),s[0]+=t,s[1]+=a;break;case 2:t=a*(c-2),s[1]+=a,s[2]+=t;break;case 3:t=a*(4-c),s[1]+=t,s[2]+=a;break;case 4:t=a*(c-4),s[2]+=a,s[0]+=t;break;case 5:t=a*(6-c),s[2]+=t,s[0]+=a}for(var l=0;3!=l;++l)s[l]=Math.round(255*s[l]);return s}(i))}var ld=6;function ud(e){return Math.floor((e+Math.round(128/ld)/256)*ld)}function hd(e){return Math.floor((e-5)/ld*100+.5)/100}function fd(e){return Math.round((e*ld+5)/ld*256)/256}function dd(e){return fd(hd(ud(e)))}function pd(e){var t=Math.abs(e-dd(e)),n=ld;if(t>.005)for(ld=1;ld<15;++ld)Math.abs(e-dd(e))<=t&&(t=Math.abs(e-dd(e)),n=ld);ld=n}function gd(e){e.width?(e.wpx=ud(e.width),e.wch=hd(e.wpx),e.MDW=ld):e.wpx?(e.wch=hd(e.wpx),e.width=fd(e.wch),e.MDW=ld):"number"==typeof e.wch&&(e.width=fd(e.wch),e.wpx=ud(e.width),e.MDW=ld),e.customWidth&&delete e.customWidth}var md=96;function vd(e){return 96*e/md}function yd(e){return e*md/96}var Ad={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},bd=["numFmtId","fillId","fontId","borderId","xfId"],wd=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],xd=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(a,o,s){var c,l={};return a?((c=(a=a.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,n){t.NumberFmt=[];for(var r=vs(Bo),i=0;i<r.length;++i)t.NumberFmt[r[i]]=Bo[r[i]];var a=e[0].match(ec);if(a)for(i=0;i<a.length;++i){var o=rc(a[i]);switch(ic(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var s=sc(bc(o.formatCode)),c=parseInt(o.numFmtId,10);if(t.NumberFmt[c]=s,c>0){if(c>392){for(c=392;c>60&&null!=t.NumberFmt[c];--c);t.NumberFmt[c]=s}cs(s,c)}break;default:if(n.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}(c,l,s),(c=a.match(r))&&function(e,t,n,r){t.Fonts=[];var i={},a=!1;(e[0].match(ec)||[]).forEach((function(e){var o=rc(e);switch(ic(o[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(i),i={};break;case"<name":o.val&&(i.name=bc(o.val));break;case"<b":i.bold=o.val?gc(o.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=o.val?gc(o.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(o.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=o.val?gc(o.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=o.val?gc(o.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=o.val?gc(o.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=o.val?gc(o.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=o.val?gc(o.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":o.val&&(i.sz=+o.val);break;case"<vertAlign":o.val&&(i.vertAlign=o.val);break;case"<family":o.val&&(i.family=parseInt(o.val,10));break;case"<scheme":o.val&&(i.scheme=o.val);break;case"<charset":if("1"==o.val)break;o.codepage=Ka[parseInt(o.val,10)];break;case"<color":if(i.color||(i.color={}),o.auto&&(i.color.auto=gc(o.auto)),o.rgb)i.color.rgb=o.rgb.slice(-6);else if(o.indexed){i.color.index=parseInt(o.indexed,10);var s=ju[i.color.index];81==i.color.index&&(s=ju[1]),s||(s=ju[1]),i.color.rgb=s[0].toString(16)+s[1].toString(16)+s[2].toString(16)}else o.theme&&(i.color.theme=parseInt(o.theme,10),o.tint&&(i.color.tint=parseFloat(o.tint)),o.theme&&n.themeElements&&n.themeElements.clrScheme&&(i.color.rgb=cd(n.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<AlternateContent":case"<ext":a=!0;break;case"</AlternateContent>":case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fonts")}}))}(c,l,o,s),(c=a.match(n))&&function(e,t,n,r){t.Fills=[];var i={},a=!1;(e[0].match(ec)||[]).forEach((function(e){var n=rc(e);switch(ic(n[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":i={},t.Fills.push(i);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":n.patternType&&(i.patternType=n.patternType);break;case"<bgColor":i.bgColor||(i.bgColor={}),n.indexed&&(i.bgColor.indexed=parseInt(n.indexed,10)),n.theme&&(i.bgColor.theme=parseInt(n.theme,10)),n.tint&&(i.bgColor.tint=parseFloat(n.tint)),n.rgb&&(i.bgColor.rgb=n.rgb.slice(-6));break;case"<fgColor":i.fgColor||(i.fgColor={}),n.theme&&(i.fgColor.theme=parseInt(n.theme,10)),n.tint&&(i.fgColor.tint=parseFloat(n.tint)),null!=n.rgb&&(i.fgColor.rgb=n.rgb.slice(-6));break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+n[0]+" in fills")}}))}(c,l,0,s),(c=a.match(i))&&function(e,t,n,r){t.Borders=[];var i={},a=!1;(e[0].match(ec)||[]).forEach((function(e){var n=rc(e);switch(ic(n[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":i={},n.diagonalUp&&(i.diagonalUp=gc(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=gc(n.diagonalDown)),t.Borders.push(i);break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+n[0]+" in borders")}}))}(c,l,0,s),(c=a.match(t))&&function(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(ec)||[]).forEach((function(e){var a=rc(e),o=0;switch(ic(a[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(r=a)[0],o=0;o<bd.length;++o)r[bd[o]]&&(r[bd[o]]=parseInt(r[bd[o]],10));for(o=0;o<wd.length;++o)r[wd[o]]&&(r[wd[o]]=gc(r[wd[o]]));if(t.NumberFmt&&r.numFmtId>392)for(o=392;o>60;--o)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[o]){r.numFmtId=o;break}t.CellXf.push(r);break;case"<alignment":case"<alignment/>":var s={};a.vertical&&(s.vertical=a.vertical),a.horizontal&&(s.horizontal=a.horizontal),null!=a.textRotation&&(s.textRotation=a.textRotation),a.indent&&(s.indent=a.indent),a.wrapText&&(s.wrapText=gc(a.wrapText)),r.alignment=s;break;case"<AlternateContent":case"<ext":i=!0;break;case"</AlternateContent>":case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+a[0]+" in cellXfs")}}))}(c,l,s),l):l}}();function Cd(e,t){var n,r=[Js,Tc("styleSheet",null,{xmlns:Yc[0],"xmlns:vt":Vc})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=Tc("numFmt",null,{numFmtId:r,formatCode:uc(e[r])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Tc("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=Tc("cellXfs",null),e.forEach((function(e){t[t.length]=Tc("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Tc("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function _d(e,t,n){n||(n=Rl(6+4*t.length)),n.write_shift(2,e),ou(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}function Id(e,t){t||(t=Rl(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Rl(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Bu(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),ou(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Ed,kd=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Sd=Ql;function Bd(e,t){t||(t=Rl(84)),Ed||(Ed=As(kd));var n=Ed[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(Bu({auto:1},t),Bu({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Md(e,t,n){return n||(n=Rl(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function Td(e,t){return t||(t=Rl(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Od=Ql;function Dd(e){var t;Fl(e,613,iu(1)),Fl(e,46,(t||(t=Rl(51)),t.write_shift(1,0),Td(0,t),Td(0,t),Td(0,t),Td(0,t),Td(0,t),t.length>t.l?t.slice(0,t.l):t)),Fl(e,614)}function Pd(e){var t,n;Fl(e,619,iu(1)),Fl(e,48,(t={xfId:0,builtinId:0,name:"Normal"},n||(n=Rl(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),yu(t.name||"",n),n.length>n.l?n.slice(0,n.l):n)),Fl(e,620)}function Ld(e){Fl(e,508,function(e,t,n){var r=Rl(2052);return r.write_shift(4,e),yu(t,r),yu(n,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),Fl(e,509)}function Qd(e,t){var n=Nl();return Fl(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(Fl(e,615,iu(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&Fl(e,44,_d(r,t[r]))})),Fl(e,616))}}(n,e.SSF),function(e){Fl(e,611,iu(1)),Fl(e,43,Id({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Fl(e,612)}(n),function(e){Fl(e,603,iu(2)),Fl(e,45,Bd({patternType:"none"})),Fl(e,45,Bd({patternType:"gray125"})),Fl(e,604)}(n),Dd(n),function(e){Fl(e,626,iu(1)),Fl(e,47,Md({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Fl(e,627)}(n),function(e,t){Fl(e,617,iu(t.length)),t.forEach((function(t){Fl(e,47,Md(t,0))})),Fl(e,618)}(n,t.cellXfs),Pd(n),function(e){Fl(e,505,iu(0)),Fl(e,506)}(n),Ld(n),Fl(n,279),n.end()}var Rd=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function jd(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(ec)||[]).forEach((function(e){var i=rc(e);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=i.val;break;case"<a:sysClr":r.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[Rd.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function Nd(){}function Fd(){}var zd=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Hd=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Ud=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,Gd=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Vd(e,t){var n;e&&0!==e.length||(e=Wd());var r={};if(!(n=e.match(Gd)))throw new Error("themeElements not found in theme");return function(e,t,n){var r;t.themeElements={},[["clrScheme",zd,jd],["fontScheme",Hd,Nd],["fmtScheme",Ud,Fd]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}(n[0],r,t),r.raw=e,r}function Wd(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Js];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function qd(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e){return Ql(e,4)}(e);break;case 2:t.xclrValue=Vh(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}function Yd(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=qd(e);break;case 6:r[1]=function(e,t){return Ql(e,t)}(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Kd(){var e,t,n=Nl();return Fl(n,332),Fl(n,334,iu(1)),Fl(n,335,((t=Rl(12+2*(e={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),ou(e.name,t),t.slice(0,t.l))),Fl(n,336),Fl(n,339,function(e,t){var n=Rl(8+2*t.length);return n.write_shift(4,e),ou(t,n),n.slice(0,n.l)}(1,"XLDAPR")),Fl(n,52),Fl(n,35,iu(514)),Fl(n,4096,iu(0)),Fl(n,4097,Th(1)),Fl(n,36),Fl(n,53),Fl(n,340),Fl(n,337,function(e,t){var n=Rl(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}(1,!0)),Fl(n,51,function(e){var t=Rl(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),Fl(n,338),Fl(n,333),n.end()}function $d(){var e=[Js];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}var Jd=1024;function Xd(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),i=[Tc("xml",null,{"xmlns:v":el,"xmlns:o":Kc,"xmlns:x":$c,"xmlns:mv":Zc}).replace(/\/>/,">"),Tc("o:shapelayout",Tc("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Tc("v:shapetype",[Tc("v:stroke",null,{joinstyle:"miter"}),Tc("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];Jd<1e3*e;)Jd+=1e3;return t.forEach((function(e){var t=Kl(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Tc("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=Tc("v:fill",r,n);++Jd,i=i.concat(["<v:shape"+Mc({id:"_x0000_s"+Jd,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",a,Tc("v:shadow",null,{on:"t",obscured:"t"}),Tc("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Bc("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Bc("x:AutoFill","False"),Bc("x:Row",String(t.r)),Bc("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),i.push("</xml>"),i.join("")}function Zd(e,t,n,r){var i,a=Array.isArray(e);t.forEach((function(t){var o=Kl(t.ref);if(a?(e[o.r]||(e[o.r]=[]),i=e[o.r][o.c]):i=e[t.ref],!i){i={t:"z"},a?e[o.r][o.c]=i:e[t.ref]=i;var s=Zl(e["!ref"]||"BDWGO1000001:A1");s.s.r>o.r&&(s.s.r=o.r),s.e.r<o.r&&(s.e.r=o.r),s.s.c>o.c&&(s.s.c=o.c),s.e.c<o.c&&(s.e.c=o.c);var c=Xl(s);c!==e["!ref"]&&(e["!ref"]=c)}i.c||(i.c=[]);var l={a:t.author,t:t.t,r:t.r,T:n};t.h&&(l.h=t.h);for(var u=i.c.length-1;u>=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u<r.length;++u)if(l.a==r[u].id){l.a=r[u].name||l.a;break}i.c.push(l)}))}function ep(e){var t=[Js,Tc("comments",null,{xmlns:Yc[0]})],n=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var r=uc(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var r=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(uc(e.a))),i.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),i.length<=1)t.push(Bc("t",uc(i[0]||"")));else{for(var a="Comment:\n    "+i[0]+"\n",o=1;o<i.length;++o)a+="Reply:\n    "+i[o]+"\n";t.push(Bc("t",uc(a)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function tp(e,t,n){var r=[Js,Tc("ThreadedComments",null,{xmlns:Fc}).replace(/[\/]>/,">")];return e.forEach((function(e){var i="";(e[1]||[]).forEach((function(a,o){if(a.T){a.a&&-1==t.indexOf(a.a)&&t.push(a.a);var s={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==o?i=s.id:s.parentId=i,a.ID=s.id,a.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),r.push(Tc("threadedComment",Bc("text",a.t||""),s))}else delete a.ID}))})),r.push("</ThreadedComments>"),r.join("")}var np=au;function rp(e){var t=Nl(),n=[];return Fl(t,628),Fl(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Fl(t,632,function(e){return ou(e.slice(0,54))}(e.a)))}))})),Fl(t,631),Fl(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var i={s:Kl(e[0]),e:Kl(e[0])};Fl(t,635,function(e,t){return null==t&&(t=Rl(36)),t.write_shift(4,e[1].iauthor),Eu(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([i,r])),r.t&&r.t.length>0&&Fl(t,637,uu(r)),Fl(t,636),delete r.iauthor}))})),Fl(t,634),Fl(t,629),t.end()}var ip=["xlsb","xlsm","xlam","biff8","xla"],ap=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var a=!1,o=!1;0==r.length?o=!0:"["==r.charAt(0)&&(o=!0,r=r.slice(1,-1)),0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,c=i.length>0?0|parseInt(i,10):0;return a?c+=t.c:--c,o?s+=t.r:--s,n+(a?"":"$")+Yl(c)+(o?"":"$")+Wl(s)}return function(r,i){return t=i,r.replace(e,n)}}(),op=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,sp=function(e,t){return e.replace(op,(function(e,n,r,i,a,o){var s=ql(i)-(r?0:t.c),c=Vl(o)-(a?0:t.r);return n+"R"+(0==c?"":a?c+1:"["+c+"]")+"C"+(0==s?"":r?s+1:"["+s+"]")}))};function cp(e,t){return e.replace(op,(function(e,n,r,i,a,o){return n+("$"==r?r+i:Yl(ql(i)+t.c))+("$"==a?a+o:Wl(Vl(o)+t.r))}))}function lp(e,t,n){var r=Jl(t).s,i=Kl(n);return cp(e,{r:i.r-r.r,c:i.c-r.c})}function up(e){return e.replace(/_xlfn\./g,"")}function hp(e){e.l+=1}function fp(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function dp(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return pp(e);12==n.biff&&(r=4)}var i=e.read_shift(r),a=e.read_shift(r),o=fp(e,2),s=fp(e,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function pp(e){var t=fp(e,2),n=fp(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function gp(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=fp(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),i=fp(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function mp(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function vp(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function yp(e){return[e.read_shift(1),e.read_shift(1)]}function Ap(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=Sh(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Nu[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=ku(e);break;case 2:n[1]=Nh(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function bp(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],a=0;a!=r;++a)i.push((12==n.biff?Iu:Jh)(e));return i}function wp(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var a=0,o=[];a!=r&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=Ap(e,n.biff);return o}function xp(e,t,n){return e.l+=2,[mp(e)]}function Cp(e){return e.l+=6,[]}function _p(e){return e.l+=2,[Mh(e),1&e.read_shift(2)]}var Ip=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Ep={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Ql},3:{n:"PtgAdd",f:hp},4:{n:"PtgSub",f:hp},5:{n:"PtgMul",f:hp},6:{n:"PtgDiv",f:hp},7:{n:"PtgPower",f:hp},8:{n:"PtgConcat",f:hp},9:{n:"PtgLt",f:hp},10:{n:"PtgLe",f:hp},11:{n:"PtgEq",f:hp},12:{n:"PtgGe",f:hp},13:{n:"PtgGt",f:hp},14:{n:"PtgNe",f:hp},15:{n:"PtgIsect",f:hp},16:{n:"PtgUnion",f:hp},17:{n:"PtgRange",f:hp},18:{n:"PtgUplus",f:hp},19:{n:"PtgUminus",f:hp},20:{n:"PtgPercent",f:hp},21:{n:"PtgParen",f:hp},22:{n:"PtgMissArg",f:hp},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Ph(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Nu[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,ku(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Yp[i],qp[i],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],i=e.read_shift(1),a=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[i,(0===a[0]?qp:Wp)[a[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,a=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,a]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,gp(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,dp(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Ql},40:{n:"PtgMemNoMem",f:Ql},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}(e);var i=e.read_shift(r>=12?4:2),a=e.read_shift(2),o=(16384&a)>>14,s=(32768&a)>>15;if(a&=16383,1==s)for(;i>524287;)i-=1048576;if(1==o)for(;a>8191;)a-=16384;return{r:i,c:a,cRel:o,rRel:s}}(e,0,n);return[r,i]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=function(e,t,n){if(n.biff<8)return pp(e);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),a=fp(e,2),o=fp(e,2);return{s:{r:r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}(e,0,n);return[r,i]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,i,gp(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i");return n&&5===n.biff&&(e.l+=12),[r,i,dp(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6}return e.l+=a,[r,i]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12}return e.l+=a,[r,i]}},255:{}},kp={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Sp={1:{n:"PtgElfLel",f:_p},2:{n:"PtgElfRw",f:xp},3:{n:"PtgElfCol",f:xp},6:{n:"PtgElfRwV",f:xp},7:{n:"PtgElfColV",f:xp},10:{n:"PtgElfRadical",f:xp},11:{n:"PtgElfRadicalS",f:Cp},13:{n:"PtgElfColS",f:Cp},15:{n:"PtgElfColSV",f:Cp},16:{n:"PtgElfRadicalLel",f:_p},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2);return{ixti:t,coltype:3&n,rt:Ip[n>>2&31],idx:r,c:i,C:a}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},Bp={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],a=0;a<=r;++a)i.push(e.read_shift(n&&2==n.biff?1:2));return i}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:vp},33:{n:"PtgAttrBaxcel",f:vp},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),yp(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),yp(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function Mp(e,t,n,r){if(r.biff<8)return Ql(e,t);for(var i=e.l+t,a=[],o=0;o!==n.length;++o)switch(n[o][0]){case"PtgArray":n[o][1]=wp(e,0,r),a.push(n[o][1]);break;case"PtgMemArea":n[o][2]=bp(e,n[o][1],r),a.push(n[o][2]);break;case"PtgExp":r&&12==r.biff&&(n[o][1][1]=e.read_shift(4),a.push(n[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[o][0]}return 0!=(t=i-e.l)&&a.push(Ql(e,t)),a}function Tp(e,t,n){for(var r,i,a=e.l+t,o=[];a!=e.l;)t=a-e.l,i=e[e.l],r=Ep[i]||Ep[kp[i]],24!==i&&25!==i||(r=(24===i?Sp:Bp)[e[e.l+1]]),r&&r.f?o.push([r.n,r.f(e,t,n)]):Ql(e,t);return o}function Op(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],a=0;a<r.length;++a){var o=r[a];o?2===o[0]?i.push('"'+o[1].replace(/"/g,'""')+'"'):i.push(o[1]):i.push("")}t.push(i.join(","))}return t.join(";")}var Dp={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Pp(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Lp(e,t,n){var r=Pp(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function Qp(e,t,n,r,i){var a,o,s,c,l=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],f=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var g=-1,m="",v=0,y=e[0].length;v<y;++v){var A=e[0][v];switch(A[0]){case"PtgUminus":h.push("-"+h.pop());break;case"PtgUplus":h.push("+"+h.pop());break;case"PtgPercent":h.push(h.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(a=h.pop(),o=h.pop(),g>=0){switch(e[0][g][1][0]){case 0:m=Ps(" ",e[0][g][1][1]);break;case 1:m=Ps("\r",e[0][g][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}o+=m,g=-1}h.push(o+Dp[A[0]]+a);break;case"PtgIsect":a=h.pop(),o=h.pop(),h.push(o+" "+a);break;case"PtgUnion":a=h.pop(),o=h.pop(),h.push(o+","+a);break;case"PtgRange":a=h.pop(),o=h.pop(),h.push(o+":"+a);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":s=zl(A[1][1],u,i),h.push(Ul(s,l));break;case"PtgRefN":s=n?zl(A[1][1],n,i):A[1][1],h.push(Ul(s,l));break;case"PtgRef3d":f=A[1][1],s=zl(A[1][2],u,i),p=Lp(r,f,i),h.push(p+"!"+Ul(s,l));break;case"PtgFunc":case"PtgFuncVar":var b=A[1][0],w=A[1][1];b||(b=0);var x=0==(b&=127)?[]:h.slice(-b);h.length-=b,"User"===w&&(w=x.shift()),h.push(w+"("+x.join(",")+")");break;case"PtgBool":h.push(A[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":h.push(A[1]);break;case"PtgNum":h.push(String(A[1]));break;case"PtgStr":h.push('"'+A[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=Hl(A[1][1],n?{s:n}:u,i),h.push(Gl(c,i));break;case"PtgArea":c=Hl(A[1][1],u,i),h.push(Gl(c,i));break;case"PtgArea3d":f=A[1][1],c=A[1][2],p=Lp(r,f,i),h.push(p+"!"+Gl(c,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgName":d=A[1][2];var C=(r.names||[])[d-1]||(r[0]||[])[d],_=C?C.Name:"SH33TJSNAME"+String(d);_&&"_xlfn."==_.slice(0,6)&&!i.xlfn&&(_=_.slice(6)),h.push(_);break;case"PtgNameX":var I,E=A[1][1];if(d=A[1][2],!(i.biff<=5)){var k="";if(14849==((r[E]||[])[0]||[])[0]||(1025==((r[E]||[])[0]||[])[0]?r[E][d]&&r[E][d].itab>0&&(k=r.SheetNames[r[E][d].itab-1]+"!"):k=r.SheetNames[d-1]+"!"),r[E]&&r[E][d])k+=r[E][d].Name;else if(r[0]&&r[0][d])k+=r[0][d].Name;else{var S=(Pp(r,E,i)||"").split(";;");S[d-1]?k=S[d-1]:k+="SH33TJSERRX"}h.push(k);break}E<0&&(E=-E),r[E]&&(I=r[E][d]),I||(I={Name:"SH33TJSERRY"}),h.push(I.Name);break;case"PtgParen":var B="(",M=")";if(g>=0){switch(m="",e[0][g][1][0]){case 2:B=Ps(" ",e[0][g][1][1])+B;break;case 3:B=Ps("\r",e[0][g][1][1])+B;break;case 4:M=Ps(" ",e[0][g][1][1])+M;break;case 5:M=Ps("\r",e[0][g][1][1])+M;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}g=-1}h.push(B+h.pop()+M);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":h.push("#REF!");break;case"PtgExp":s={c:A[1][1],r:A[1][0]};var T={c:n.c,r:n.r};if(r.sharedf[$l(s)]){var O=r.sharedf[$l(s)];h.push(Qp(O,u,T,r,i))}else{var D=!1;for(a=0;a!=r.arrayf.length;++a)if(o=r.arrayf[a],!(s.c<o[0].s.c||s.c>o[0].e.c||s.r<o[0].s.r||s.r>o[0].e.r)){h.push(Qp(o[1],u,T,r,i)),D=!0;break}D||h.push(A[1])}break;case"PtgArray":h.push("{"+Op(A[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=v;break;case"PtgMissArg":h.push("");break;case"PtgList":h.push("Table"+A[1].idx+"[#"+A[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(A))}if(3!=i.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var P=!0;switch((A=e[0][g])[1][0]){case 4:P=!1;case 0:m=Ps(" ",A[1][1]);break;case 5:P=!1;case 1:m=Ps("\r",A[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[1][0])}h.push((P?m:"")+h.pop()+(P?"":m)),g=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Rp(e,t,n){var r,i=e.l+t,a=2==n.biff?1:2,o=e.read_shift(a);if(65535==o)return[[],Ql(e,t-2)];var s=Tp(e,o,n);return t!==o+a&&(r=Mp(e,t-o-a,s,n)),e.l=i,[s,r]}function jp(e,t,n){var r,i=e.l+t,a=e.read_shift(2),o=Tp(e,a,n);return 65535==a?[[],Ql(e,t-2)]:(t!==a+2&&(r=Mp(e,i-a-2,o,n)),[o,r])}function Np(e,t,n){var r=e.l+t,i=qh(e);2==n.biff&&++e.l;var a=function(e){var t;if(65535!==_l(e,e.l+6))return[ku(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),o=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=function(e,t,n){var r,i=e.l+t,a=2==n.biff?1:2,o=e.read_shift(a);if(65535==o)return[[],Ql(e,t-2)];var s=Tp(e,o,n);return t!==o+a&&(r=Mp(e,t-o-a,s,n)),e.l=i,[s,r]}(e,r-e.l,n);return{cell:i,val:a[0],formula:s,shared:o>>3&1,tt:a[1]}}function Fp(e,t,n,r,i){var a=Yh(t,n,i),o=function(e){if(null==e){var t=Rl(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Su("number"==typeof e?e:0)}(e.v),s=Rl(6);s.write_shift(2,33),s.write_shift(4,0);for(var c=Rl(e.bf.length),l=0;l<e.bf.length;++l)c[l]=e.bf[l];return vo([a,o,s,c])}function zp(e,t,n){var r=e.read_shift(4),i=Tp(e,r,n),a=e.read_shift(4);return[i,a>0?Mp(e,a,i,n):null]}var Hp=zp,Up=zp,Gp=zp,Vp=zp,Wp={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},qp={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Yp={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Kp(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function $p(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Jp={},Xp={},Zp="undefined"!=typeof Map;function eg(e,t,n){var r=0,i=e.length;if(n){if(Zp?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var a=Zp?n.get(t):n[t];r<a.length;++r)if(e[a[r]].t===t)return e.Count++,a[r]}else for(;r<i;++r)if(e[r].t===t)return e.Count++,r;return e[i]={t:t},e.Count++,e.Unique++,n&&(Zp?(n.has(t)||n.set(t,[]),n.get(t).push(i)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(i))),i}function tg(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(ld=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=hd(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=fd(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function ng(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function rg(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,a=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){cs(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=a;++i)if(e[i].numFmtId===r)return i;return e[a]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function ig(e,t,n,r,i,a){try{r.cellNF&&(e.z=Bo[t])}catch(e){if(r.WTF)throw e}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=Ts(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==Bo[t]&&cs(hs[t]||"General",t),"e"===e.t)e.w=e.w||Nu[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=No(e.v);else if("d"===e.t){var o=xs(e.v);e.w=(0|o)===o?o.toString(10):No(o)}else{if(void 0===e.v)return"";e.w=Fo(e.v,Xp)}else"d"===e.t?e.w=ss(t,xs(e.v),Xp):e.w=ss(t,e.v,Xp)}catch(e){if(r.WTF)throw e}if(r.cellStyles&&null!=n)try{e.s=a.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=cd(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=cd(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(e){if(r.WTF&&a.Fills)throw e}}}function ag(e,t,n){if(e&&e["!ref"]){var r=Zl(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var og=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,sg=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,cg=/<(?:\w:)?hyperlink [^>]*>/gm,lg=/"(\w*:\w*)"/,ug=/<(?:\w:)?col\b[^>]*[\/]?>/g,hg=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,fg=/<(?:\w:)?pageMargins[^>]*\/>/g,dg=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,pg=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,gg=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function mg(e,t,n,r,i,a,o){if(!e)return e;r||(r={"!id":{}});var s=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",u="",h=e.match(sg);h?(l=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):l=u=e;var f=l.match(dg);f?vg(f[0],s,i,n):(f=l.match(pg))&&function(e,t,n,r,i){vg(e.slice(0,e.indexOf(">")),n,r,i)}(f[0],f[1],s,i,n);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(lg);p&&function(e,t){var n=Zl(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=Xl(n))}(s,p[1])}var g=l.match(gg);g&&g[1]&&function(e,t){t.Views||(t.Views=[{}]),(e.match(bg)||[]).forEach((function(e,n){var r=rc(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),gc(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}(g[1],i);var m=[];if(t.cellStyles){var v=l.match(ug);v&&function(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=rc(t[r],!0);i.hidden&&(i.hidden=gc(i.hidden));var a=parseInt(i.min,10)-1,o=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,pd(i.width)),gd(i);a<=o;)e[a++]=Ds(i)}}(m,v)}h&&xg(h[1],s,t,c,a,o);var y=u.match(hg);y&&(s["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(y[0]));var A=[],b=u.match(og);if(b)for(d=0;d!=b.length;++d)A[d]=Zl(b[d].slice(b[d].indexOf('"')+1));var w=u.match(cg);w&&function(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var a=rc(bc(t[i]),!0);if(!a.ref)return;var o=((n||{})["!id"]||[])[a.id];o?(a.Target=o.Target,a.location&&(a.Target+="#"+sc(a.location))):(a.Target="#"+sc(a.location),o={Target:a.Target,TargetMode:"Internal"}),a.Rel=o,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var s=Zl(a.ref),c=s.s.r;c<=s.e.r;++c)for(var l=s.s.c;l<=s.e.c;++l){var u=$l({c:l,r:c});r?(e[c]||(e[c]=[]),e[c][l]||(e[c][l]={t:"z",v:void 0}),e[c][l].l=a):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=a)}}}(s,w,r);var x,C,_=u.match(fg);if(_&&(s["!margins"]=(x=rc(_[0]),C={},["left","right","top","bottom","header","footer"].forEach((function(e){x[e]&&(C[e]=parseFloat(x[e]))})),C)),!s["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(s["!ref"]=Xl(c)),t.sheetRows>0&&s["!ref"]){var I=Zl(s["!ref"]);t.sheetRows<=+I.e.r&&(I.e.r=t.sheetRows-1,I.e.r>c.e.r&&(I.e.r=c.e.r),I.e.r<I.s.r&&(I.s.r=I.e.r),I.e.c>c.e.c&&(I.e.c=c.e.c),I.e.c<I.s.c&&(I.s.c=I.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Xl(I))}return m.length>0&&(s["!cols"]=m),A.length>0&&(s["!merges"]=A),s}function vg(e,t,n,r){var i=rc(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=sc(bc(i.codeName)))}var yg=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Ag=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],bg=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function wg(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var i="",a=e.t,o=e.v;if("z"!==e.t)switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Nu[e.v];break;case"d":r&&r.cellDates?i=Ts(e.v,-1).toISOString():((e=Ds(e)).t="n",i=""+(e.v=xs(Ts(e.v)))),void 0===e.z&&(e.z=Bo[14]);break;default:i=e.v}var s=Bc("v",uc(i)),c={r:t},l=rg(r.cellXfs,e,r);switch(0!==l&&(c.s=l),e.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){s=Bc("v",""+eg(r.Strings,e.v,r.revStrings)),c.t="s";break}c.t="str"}if(e.t!=a&&(e.t=a,e.v=o),"string"==typeof e.f&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=Tc("f",uc(e.f),u)+(null!=e.v?s:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(c.cm=1),Tc("c",s,c)}var xg=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=xc("v"),o=xc("f");return function(s,c,l,u,h,f){for(var d,p,g,m,v,y=0,A="",b=[],w=[],x=0,C=0,_=0,I="",E=0,k=0,S=0,B=0,M=Array.isArray(f.CellXf),T=[],O=[],D=Array.isArray(c),P=[],L={},Q=!1,R=!!l.sheetStubs,j=s.split(t),N=0,F=j.length;N!=F;++N){var z=(A=j[N].trim()).length;if(0!==z){var H=0;e:for(y=0;y<z;++y)switch(A[y]){case">":if("/"!=A[y-1]){++y;break e}if(l&&l.cellStyles){if(E=null!=(p=rc(A.slice(H,y),!0)).r?parseInt(p.r,10):E+1,k=-1,l.sheetRows&&l.sheetRows<E)continue;L={},Q=!1,p.ht&&(Q=!0,L.hpt=parseFloat(p.ht),L.hpx=yd(L.hpt)),"1"==p.hidden&&(Q=!0,L.hidden=!0),null!=p.outlineLevel&&(Q=!0,L.level=+p.outlineLevel),Q&&(P[E-1]=L)}break;case"<":H=y}if(H>=y)break;if(E=null!=(p=rc(A.slice(H,y),!0)).r?parseInt(p.r,10):E+1,k=-1,!(l.sheetRows&&l.sheetRows<E)){u.s.r>E-1&&(u.s.r=E-1),u.e.r<E-1&&(u.e.r=E-1),l&&l.cellStyles&&(L={},Q=!1,p.ht&&(Q=!0,L.hpt=parseFloat(p.ht),L.hpx=yd(L.hpt)),"1"==p.hidden&&(Q=!0,L.hidden=!0),null!=p.outlineLevel&&(Q=!0,L.level=+p.outlineLevel),Q&&(P[E-1]=L)),b=A.slice(y).split(e);for(var U=0;U!=b.length&&"<"==b[U].trim().charAt(0);++U);for(b=b.slice(U),y=0;y!=b.length;++y)if(0!==(A=b[y].trim()).length){if(w=A.match(n),x=y,C=0,_=0,A="<c "+("<"==A.slice(0,1)?">":"")+A,null!=w&&2===w.length){for(x=0,I=w[1],C=0;C!=I.length&&!((_=I.charCodeAt(C)-64)<1||_>26);++C)x=26*x+_;k=--x}else++k;for(C=0;C!=A.length&&62!==A.charCodeAt(C);++C);if(++C,(p=rc(A.slice(0,C),!0)).r||(p.r=$l({r:E-1,c:k})),d={t:""},null!=(w=(I=A.slice(C)).match(a))&&""!==w[1]&&(d.v=sc(w[1])),l.cellFormula){if(null!=(w=I.match(o))&&""!==w[1]){if(d.f=sc(bc(w[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=up(d.f)),w[0].indexOf('t="array"')>-1)d.F=(I.match(i)||[])[1],d.F.indexOf(":")>-1&&T.push([Zl(d.F),d.F]);else if(w[0].indexOf('t="shared"')>-1){m=rc(w[0]);var G=sc(bc(w[1]));l.xlfn||(G=up(G)),O[parseInt(m.si,10)]=[m,G,p.r]}}else(w=I.match(/<f[^>]*\/>/))&&O[(m=rc(w[0])).si]&&(d.f=lp(O[m.si][1],O[m.si][2],p.r));var V=Kl(p.r);for(C=0;C<T.length;++C)V.r>=T[C][0].s.r&&V.r<=T[C][0].e.r&&V.c>=T[C][0].s.c&&V.c<=T[C][0].e.c&&(d.F=T[C][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!R)continue;d.t="z"}else d.t=p.t||"n";switch(u.s.c>k&&(u.s.c=k),u.e.c<k&&(u.e.c=k),d.t){case"n":if(""==d.v||null==d.v){if(!R)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(void 0===d.v){if(!R)continue;d.t="z"}else g=Jp[parseInt(d.v,10)],d.v=g.t,d.r=g.r,l.cellHTML&&(d.h=g.h);break;case"str":d.t="s",d.v=null!=d.v?bc(d.v):"",l.cellHTML&&(d.h=dc(d.v));break;case"inlineStr":w=I.match(r),d.t="s",null!=w&&(g=Nf(w[1]))?(d.v=g.t,l.cellHTML&&(d.h=g.h)):d.v="";break;case"b":d.v=gc(d.v);break;case"d":l.cellDates?d.v=Ts(d.v,1):(d.v=xs(Ts(d.v,1)),d.t="n");break;case"e":l&&!1===l.cellText||(d.w=d.v),d.v=Fu[d.v]}if(S=B=0,v=null,M&&void 0!==p.s&&null!=(v=f.CellXf[p.s])&&(null!=v.numFmtId&&(S=v.numFmtId),l.cellStyles&&null!=v.fillId&&(B=v.fillId)),ig(d,S,B,l,h,f),l.cellDates&&M&&"n"==d.t&&rs(Bo[S])&&(d.t="d",d.v=Es(d.v)),p.cm&&l.xlmeta){var W=(l.xlmeta.Cell||[])[+p.cm-1];W&&"XLDAPR"==W.type&&(d.D=!0)}if(D){var q=Kl(p.r);c[q.r]||(c[q.r]=[]),c[q.r][q.c]=d}else c[p.r]=d}}}}P.length>0&&(c["!rows"]=P)}}();function Cg(e,t,n,r){var i,a=[Js,Tc("worksheet",null,{xmlns:Yc[0],"xmlns:r":Gc})],o=n.SheetNames[e],s="",c=n.Sheets[o];null==c&&(c={});var l=c["!ref"]||"A1",u=Zl(l);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),l=Xl(u)}r||(r={}),c["!comments"]=[];var h=[];!function(e,t,n,r,i){var a=!1,o={},s=null;if("xlsx"!==r.bookType&&t.vbaraw){var c=t.SheetNames[n];try{t.Workbook&&(c=t.Workbook.Sheets[n].CodeName||c)}catch(e){}a=!0,o.codeName=wc(uc(c))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),s=(s||"")+Tc("outlinePr",null,l)}(a||s)&&(i[i.length]=Tc("sheetPr",s,o))}(c,n,e,t,a),a[a.length]=Tc("dimension",null,{ref:l}),a[a.length]=function(e,t,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Tc("sheetViews",Tc("sheetView",null,i),{})}(0,0,0,n),t.sheetFormat&&(a[a.length]=Tc("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(a[a.length]=function(e,t){for(var n,r=["<cols>"],i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=Tc("col",null,tg(i,n)));return r[r.length]="</cols>",r.join("")}(0,c["!cols"])),a[i=a.length]="<sheetData/>",c["!links"]=[],null!=c["!ref"]&&(s=function(e,t){var n,r,i=[],a=[],o=Zl(e["!ref"]),s="",c="",l=[],u=0,h=0,f=e["!rows"],d=Array.isArray(e),p={r:c},g=-1;for(h=o.s.c;h<=o.e.c;++h)l[h]=Yl(h);for(u=o.s.r;u<=o.e.r;++u){for(a=[],c=Wl(u),h=o.s.c;h<=o.e.c;++h){n=l[h]+c;var m=d?(e[u]||[])[h]:e[n];void 0!==m&&null!=(s=wg(m,n,e,t))&&a.push(s)}(a.length>0||f&&f[u])&&(p={r:c},f&&f[u]&&((r=f[u]).hidden&&(p.hidden=1),g=-1,r.hpx?g=vd(r.hpx):r.hpt&&(g=r.hpt),g>-1&&(p.ht=g,p.customHeight=1),r.level&&(p.outlineLevel=r.level)),i[i.length]=Tc("row",a.join(""),p))}if(f)for(;u<f.length;++u)f&&f[u]&&(p={r:u+1},(r=f[u]).hidden&&(p.hidden=1),g=-1,r.hpx?g=vd(r.hpx):r.hpt&&(g=r.hpt),g>-1&&(p.ht=g,p.customHeight=1),r.level&&(p.outlineLevel=r.level),i[i.length]=Tc("row","",p));return i.join("")}(c,t),s.length>0&&(a[a.length]=s)),a.length>i+1&&(a[a.length]="</sheetData>",a[i]=a[i].replace("/>",">")),c["!protect"]&&(a[a.length]=function(e){var t={sheet:1};return yg.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Ag.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=nd(e.password).toString(16).toUpperCase()),Tc("sheetProtection",null,t)}(c["!protect"])),null!=c["!autofilter"]&&(a[a.length]=function(e,t,n,r){var i="string"==typeof e.ref?e.ref:Xl(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,o=Jl(i);o.s.r==o.e.r&&(o.e.r=Jl(t["!ref"]).e.r,i=Xl(o));for(var s=0;s<a.length;++s){var c=a[s];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==r){c.Ref="'"+n.SheetNames[r]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),Tc("autoFilter",null,{ref:i})}(c["!autofilter"],c,n,e)),null!=c["!merges"]&&c["!merges"].length>0&&(a[a.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Xl(e[n])+'"/>';return t+"</mergeCells>"}(c["!merges"]));var f,d,p=-1,g=-1;return c["!links"].length>0&&(a[a.length]="<hyperlinks>",c["!links"].forEach((function(e){e[1].Target&&(f={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(g=Yu(r,-1,uc(e[1].Target).replace(/#.*$/,""),Gu.HLINK),f["r:id"]="rId"+g),(p=e[1].Target.indexOf("#"))>-1&&(f.location=uc(e[1].Target.slice(p+1))),e[1].Tooltip&&(f.tooltip=uc(e[1].Tooltip)),a[a.length]=Tc("hyperlink",null,f))})),a[a.length]="</hyperlinks>"),delete c["!links"],null!=c["!margins"]&&(a[a.length]=(ng(d=c["!margins"]),Tc("pageMargins",null,d))),t&&!t.ignoreEC&&null!=t.ignoreEC||(a[a.length]=Bc("ignoredErrors",Tc("ignoredError",null,{numberStoredAsText:1,sqref:l}))),h.length>0&&(g=Yu(r,-1,"../drawings/drawing"+(e+1)+".xml",Gu.DRAW),a[a.length]=Tc("drawing",null,{"r:id":"rId"+g}),c["!drawing"]=h),c["!comments"].length>0&&(g=Yu(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Gu.VML),a[a.length]=Tc("legacyDrawing",null,{"r:id":"rId"+g}),c["!legacy"]=g),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function _g(e,t,n,r){var i=function(e,t,n){var r=Rl(145),i=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var a=320;i.hpx?a=20*vd(i.hpx):i.hpt&&(a=20*i.hpt),r.write_shift(2,a),r.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),r.write_shift(1,o),r.write_shift(1,0);var s=0,c=r.l;r.l+=4;for(var l={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var h=-1,f=-1,d=u<<10;d<u+1<<10;++d)l.c=d,(Array.isArray(n)?(n[l.r]||[])[l.c]:n[$l(l)])&&(h<0&&(h=d),f=d);h<0||(++s,r.write_shift(4,h),r.write_shift(4,f))}var p=r.l;return r.l=c,r.write_shift(4,s),r.l=p,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(i.length>17||(t["!rows"]||[])[r])&&Fl(e,0,i)}var Ig=Iu,Eg=Eu;function kg(e){return[du(e),ku(e),"n"]}var Sg=Iu,Bg=Eu,Mg=["left","right","top","bottom","header","footer"];function Tg(e,t,n,r,i,a,o){if(void 0===t.v)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":(t=Ds(t)).z=t.z||Bo[14],t.v=xs(Ts(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v}var c={r:n,c:r};switch(c.s=rg(i.cellXfs,t,i),t.l&&a["!links"].push([$l(c),t.l]),t.c&&a["!comments"].push([$l(c),t.c]),t.t){case"s":case"str":return i.bookSST?(s=eg(i.Strings,t.v,i.revStrings),c.t="s",c.v=s,o?Fl(e,18,function(e,t,n){return null==n&&(n=Rl(8)),pu(t,n),n.write_shift(4,t.v),n}(0,c)):Fl(e,7,function(e,t,n){return null==n&&(n=Rl(12)),fu(t,n),n.write_shift(4,t.v),n}(0,c))):(c.t="str",o?Fl(e,17,function(e,t,n){return null==n&&(n=Rl(8+4*e.v.length)),pu(t,n),ou(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,c)):Fl(e,6,function(e,t,n){return null==n&&(n=Rl(12+4*e.v.length)),fu(t,n),ou(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,c))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?o?Fl(e,13,function(e,t,n){return null==n&&(n=Rl(8)),pu(t,n),Cu(e.v,n),n}(t,c)):Fl(e,2,function(e,t,n){return null==n&&(n=Rl(12)),fu(t,n),Cu(e.v,n),n}(t,c)):o?Fl(e,16,function(e,t,n){return null==n&&(n=Rl(12)),pu(t,n),Su(e.v,n),n}(t,c)):Fl(e,5,function(e,t,n){return null==n&&(n=Rl(16)),fu(t,n),Su(e.v,n),n}(t,c)),!0;case"b":return c.t="b",o?Fl(e,15,function(e,t,n){return null==n&&(n=Rl(5)),pu(t,n),n.write_shift(1,e.v?1:0),n}(t,c)):Fl(e,4,function(e,t,n){return null==n&&(n=Rl(9)),fu(t,n),n.write_shift(1,e.v?1:0),n}(t,c)),!0;case"e":return c.t="e",o?Fl(e,14,function(e,t,n){return null==n&&(n=Rl(8)),pu(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,c)):Fl(e,3,function(e,t,n){return null==n&&(n=Rl(9)),fu(t,n),n.write_shift(1,e.v),n}(t,c)),!0}return o?Fl(e,12,function(e,t,n){return null==n&&(n=Rl(4)),pu(t,n)}(0,c)):Fl(e,1,function(e,t,n){return null==n&&(n=Rl(8)),fu(t,n)}(0,c)),!0}function Og(e,t){var n,r;t&&t["!merges"]&&(Fl(e,177,(n=t["!merges"].length,null==r&&(r=Rl(4)),r.write_shift(4,n),r)),t["!merges"].forEach((function(t){Fl(e,176,Bg(t))})),Fl(e,178))}function Dg(e,t){t&&t["!cols"]&&(Fl(e,390),t["!cols"].forEach((function(t,n){t&&Fl(e,60,function(e,t,n){null==n&&(n=Rl(18));var r=tg(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}(n,t))})),Fl(e,391))}function Pg(e,t){var n,r;t&&t["!ref"]&&(Fl(e,648),Fl(e,649,(n=Zl(t["!ref"]),(r=Rl(24)).write_shift(4,4),r.write_shift(4,1),Eu(n,r),r)),Fl(e,650))}function Lg(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Yu(n,-1,t[1].Target.replace(/#.*$/,""),Gu.HLINK);Fl(e,494,function(e,t){var n=Rl(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Eu({s:Kl(e[0]),e:Kl(e[0])},n),wu("rId"+t,n);var r=e[1].Target.indexOf("#");return ou((-1==r?"":e[1].Target.slice(r+1))||"",n),ou(e[1].Tooltip||"",n),ou("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}function Qg(e,t,n){Fl(e,133),Fl(e,137,function(e,t,n){null==n&&(n=Rl(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Fl(e,138),Fl(e,134)}function Rg(e,t){var n,r;t["!protect"]&&Fl(e,535,(n=t["!protect"],null==r&&(r=Rl(66)),r.write_shift(2,n.password?nd(n.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)})),r))}function jg(e,t,n,r){var i=Nl(),a=n.SheetNames[e],o=n.Sheets[a]||{},s=a;try{n&&n.Workbook&&(s=n.Workbook.Sheets[e].CodeName||s)}catch(e){}var c,l,u=Zl(o["!ref"]||"A1");if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],Fl(i,129),(n.vbaraw||o["!outline"])&&Fl(i,147,function(e,t,n){null==n&&(n=Rl(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return Bu({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),mu(e,n),n.slice(0,n.l)}(s,o["!outline"])),Fl(i,148,Eg(u)),Qg(i,0,n.Workbook),Dg(i,o),function(e,t,n,r){var i,a=Zl(t["!ref"]||"A1"),o="",s=[];Fl(e,145);var c=Array.isArray(t),l=a.e.r;t["!rows"]&&(l=Math.max(a.e.r,t["!rows"].length-1));for(var u=a.s.r;u<=l;++u){o=Wl(u),_g(e,t,a,u);var h=!1;if(u<=a.e.r)for(var f=a.s.c;f<=a.e.c;++f){u===a.s.r&&(s[f]=Yl(f)),i=s[f]+o;var d=c?(t[u]||[])[f]:t[i];h=!!d&&Tg(e,d,u,f,r,t,h)}}Fl(e,146)}(i,o,0,t),Rg(i,o),function(e,t,n,r){if(t["!autofilter"]){var i=t["!autofilter"],a="string"==typeof i.ref?i.ref:Xl(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,s=Jl(a);s.s.r==s.e.r&&(s.e.r=Jl(t["!ref"]).e.r,a=Xl(s));for(var c=0;c<o.length;++c){var l=o[c];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+a;break}}c==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+a}),Fl(e,161,Eu(Zl(a))),Fl(e,162)}}(i,o,n,e),Og(i,o),Lg(i,o,r),o["!margins"]&&Fl(i,476,(c=o["!margins"],null==l&&(l=Rl(48)),ng(c),Mg.forEach((function(e){Su(c[e],l)})),l)),t&&!t.ignoreEC&&null!=t.ignoreEC||Pg(i,o),function(e,t,n,r){if(t["!comments"].length>0){var i=Yu(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Gu.VML);Fl(e,551,wu("rId"+i)),t["!legacy"]=i}}(i,o,e,r),Fl(i,130),i.end()}function Ng(e,t,n,r,i,a){var o=a||{"!type":"chart"};if(!e)return a;var s=0,c=0,l="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,n=[],r=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=sc((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}(e);u.s.r=u.s.c=0,u.e.c=s,l=Yl(s),t[0].forEach((function(e,n){o[l+Wl(n)]={t:"n",v:e,z:t[1]},c=n})),u.e.r<c&&(u.e.r=c),++s})),s>0&&(o["!ref"]=Xl(u)),o}var Fg=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],zg=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Hg=[],Ug=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Gg(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var a=t[i];if(null==r[a[0]])r[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof r[a[0]]&&(r[a[0]]=gc(r[a[0]]));break;case"int":"string"==typeof r[a[0]]&&(r[a[0]]=parseInt(r[a[0]],10))}}}function Vg(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=gc(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10))}}}function Wg(e){Vg(e.WBProps,Fg),Vg(e.CalcPr,Ug),Gg(e.WBView,zg),Gg(e.Sheets,Hg),Xp.date1904=gc(e.WBProps.date1904)}var qg="][*?/\\".split("");function Yg(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return qg.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function Kg(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,r,i=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=i,r=!!e.vbaraw,t.forEach((function(e,i){Yg(e);for(var a=0;a<i;++a)if(e==t[a])throw new Error("Duplicate Sheet Name: "+e);if(r){var o=n&&n[i]&&n[i].CodeName||e;if(95==o.charCodeAt(0)&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}}));for(var a=0;a<e.SheetNames.length;++a)ag(e.Sheets[e.SheetNames[a]],e.SheetNames[a],a)}var $g=/<\w+:workbook/;function Jg(e){var t=[Js];t[t.length]=Tc("workbook",null,{xmlns:Yc[0],"xmlns:r":Gc});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Fg.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Tc("workbookPr",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&i[a]&&i[a].Hidden;++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:uc(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden"}t[t.length]=Tc("sheet",null,o)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Tc("definedName",uc(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Xg(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function Zg(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,i=t.Workbook.Sheets,a=0,o=-1,s=-1;a<i.length;++a)!i[a]||!i[a].Hidden&&-1==o?o=a:1==i[a].Hidden&&-1==s&&(s=a);s>o||(Fl(e,135),Fl(e,158,(n=o,r||(r=Rl(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),Fl(e,136))}}function em(e,t){var n=Nl();return Fl(n,131),Fl(n,128,function(e,t){t||(t=Rl(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return ou("SheetJS",t),ou(Wa.version,t),ou(Wa.version,t),ou("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Fl(n,153,function(e,t){t||(t=Rl(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),mu(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),Zg(n,e),function(e,t){Fl(e,143);for(var n=0;n!=t.SheetNames.length;++n)Fl(e,156,(r={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]},(i=void 0)||(i=Rl(127)),i.write_shift(4,r.Hidden),i.write_shift(4,r.iTabID),wu(r.strRelID,i),ou(r.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i));var r,i;Fl(e,144)}(n,e),Fl(n,132),n.end()}function tm(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var a=[],o=[[]];return o.SheetNames=[],o.XTI=[],zm[16]={n:"BrtFRTArchID$",f:Xg},jl(e,(function(e,s,c){switch(c){case 156:o.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Qp(e.Ptg,0,null,o,t),delete t.SID,delete e.Ptg,a.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:o[0].length?o.push([c,e]):o[0]=[c,e],o[o.length-1].XTI=[];break;case 362:0===o.length&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(e),o.XTI=o.XTI.concat(e);break;case 35:case 37:r.push(c),i=!0;break;case 36:case 38:r.pop(),i=!1;break;default:if(s.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}}),t),Wg(n),n.Names=a,n.supbooks=o,n}(e,n):function(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",a={},o=0;if(e.replace(ec,(function(s,c){var l=rc(s);switch(ic(l[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":s.match($g)&&(i="xmlns"+s.match(/<(\w+):/)[1]),n.xmlns=l[i];break;case"<fileVersion":delete l[0],n.AppVersion=l;break;case"<workbookPr":case"<workbookPr/>":Fg.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=gc(l[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:n.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(n.WBProps.CodeName=bc(l.codeName));break;case"<workbookView":case"<workbookView/>":delete l[0],n.WBView.push(l);break;case"<sheet":switch(l.state){case"hidden":l.Hidden=1;break;case"veryHidden":l.Hidden=2;break;default:l.Hidden=0}delete l.state,l.name=sc(bc(l.name)),delete l[0],n.Sheets.push(l);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":r=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":r=!1;break;case"<definedName":(a={}).Name=bc(l.name),l.comment&&(a.Comment=l.comment),l.localSheetId&&(a.Sheet=+l.localSheetId),gc(l.hidden||"0")&&(a.Hidden=!0),o=c+s.length;break;case"</definedName>":a.Ref=sc(bc(e.slice(o,c))),n.Names.push(a);break;case"<calcPr":case"<calcPr/>":delete l[0],n.CalcPr=l;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return s})),-1===Yc.indexOf(n.xmlns))throw new Error("Unknown Namespace: "+n.xmlns);return Wg(n),n}(e,n)}function nm(e,t,n,r,i,a,o,s){return".bin"===t.slice(-4)?function(e,t,n,r,i,a,o){if(!e)return e;var s=t||{};r||(r={"!id":{}});var c,l,u,h,f,d,p,g,m,v,y=s.dense?[]:{},A={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=!1,w=!1,x=[];s.biff=12,s["!row"]=0;var C=0,_=!1,I=[],E={},k=s.supbooks||i.supbooks||[[]];if(k.sharedf=E,k.arrayf=I,k.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=k,i.Names))for(var S=0;S<i.Names.length;++S)k[0][S+1]=i.Names[S];var B,M=[],T=[],O=!1;if(zm[16]={n:"BrtShortReal",f:kg},jl(e,(function(e,t,S){if(!w)switch(S){case 148:c=e;break;case 0:l=e,s.sheetRows&&s.sheetRows<=l.r&&(w=!0),m=Wl(f=l.r),s["!row"]=l.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=yd(e.hpt)),T[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(u={t:e[2]},e[2]){case"n":u.v=e[1];break;case"s":g=Jp[e[1]],u.v=g.t,u.r=g.r;break;case"b":u.v=!!e[1];break;case"e":u.v=e[1],!1!==s.cellText&&(u.w=Nu[u.v]);break;case"str":u.t="s",u.v=e[1];break;case"is":u.t="s",u.v=e[1].t}if((h=o.CellXf[e[0].iStyleRef])&&ig(u,h.numFmtId,null,s,a,o),d=-1==e[0].c?d+1:e[0].c,s.dense?(y[f]||(y[f]=[]),y[f][d]=u):y[Yl(d)+m]=u,s.cellFormula){for(_=!1,C=0;C<I.length;++C){var D=I[C];l.r>=D[0].s.r&&l.r<=D[0].e.r&&d>=D[0].s.c&&d<=D[0].e.c&&(u.F=Xl(D[0]),_=!0)}!_&&e.length>3&&(u.f=e[3])}if(A.s.r>l.r&&(A.s.r=l.r),A.s.c>d&&(A.s.c=d),A.e.r<l.r&&(A.e.r=l.r),A.e.c<d&&(A.e.c=d),s.cellDates&&h&&"n"==u.t&&rs(Bo[h.numFmtId])){var P=Do(u.v);P&&(u.t="d",u.v=new Date(P.y,P.m-1,P.d,P.H,P.M,P.S,P.u))}B&&("XLDAPR"==B.type&&(u.D=!0),B=void 0);break;case 1:case 12:if(!s.sheetStubs||b)break;u={t:"z",v:void 0},d=-1==e[0].c?d+1:e[0].c,s.dense?(y[f]||(y[f]=[]),y[f][d]=u):y[Yl(d)+m]=u,A.s.r>l.r&&(A.s.r=l.r),A.s.c>d&&(A.s.c=d),A.e.r<l.r&&(A.e.r=l.r),A.e.c<d&&(A.e.c=d),B&&("XLDAPR"==B.type&&(u.D=!0),B=void 0);break;case 176:x.push(e);break;case 49:B=((s.xlmeta||{}).Cell||[])[e-1];break;case 494:var L=r["!id"][e.relId];for(L?(e.Target=L.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=L):""==e.relId&&(e.Target="#"+e.loc),f=e.rfx.s.r;f<=e.rfx.e.r;++f)for(d=e.rfx.s.c;d<=e.rfx.e.c;++d)s.dense?(y[f]||(y[f]=[]),y[f][d]||(y[f][d]={t:"z",v:void 0}),y[f][d].l=e):(p=$l({c:d,r:f}),y[p]||(y[p]={t:"z",v:void 0}),y[p].l=e);break;case 426:if(!s.cellFormula)break;I.push(e),(v=s.dense?y[f][d]:y[Yl(d)+m]).f=Qp(e[1],0,{r:l.r,c:d},k,s),v.F=Xl(e[0]);break;case 427:if(!s.cellFormula)break;E[$l(e[0].s)]=e[1],(v=s.dense?y[f][d]:y[Yl(d)+m]).f=Qp(e[1],0,{r:l.r,c:d},k,s);break;case 60:if(!s.cellStyles)break;for(;e.e>=e.s;)M[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},O||(O=!0,pd(e.w/256)),gd(M[e.e+1]);break;case 161:y["!autofilter"]={ref:Xl(e)};break;case 476:y["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(y["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:case 37:b=!0;break;case 36:case 38:b=!1;break;default:if(t.T);else if(!b||s.WTF)throw new Error("Unexpected record 0x"+S.toString(16))}}),s),delete s.supbooks,delete s["!row"],!y["!ref"]&&(A.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(y["!ref"]=Xl(c||A)),s.sheetRows&&y["!ref"]){var D=Zl(y["!ref"]);s.sheetRows<=+D.e.r&&(D.e.r=s.sheetRows-1,D.e.r>A.e.r&&(D.e.r=A.e.r),D.e.r<D.s.r&&(D.s.r=D.e.r),D.e.c>A.e.c&&(D.e.c=A.e.c),D.e.c<D.s.c&&(D.s.c=D.e.c),y["!fullref"]=y["!ref"],y["!ref"]=Xl(D))}return x.length>0&&(y["!merges"]=x),M.length>0&&(y["!cols"]=M),T.length>0&&(y["!rows"]=T),y}(e,r,n,i,a,o,s):mg(e,r,n,i,a,o,s)}function rm(e,t,n,r,i,a,o,s){return".bin"===t.slice(-4)?function(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},o=!1;return jl(e,(function(e,r,s){switch(s){case 550:a["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:case 37:case 38:break;case 35:o=!0;break;case 36:o=!1;break;default:if(r.T>0);else if(r.T<0);else if(!o||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),t),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}(e,r,n,i,a):function(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var a,o={"!type":"chart","!drawel":null,"!rel":""},s=e.match(dg);return s&&vg(s[0],0,i,n),(a=e.match(/drawing r:id="(.*?)"/))&&(o["!rel"]=a[1]),r["!id"][o["!rel"]]&&(o["!drawel"]=r["!id"][o["!rel"]]),o}(e,0,n,i,a)}function im(e,t,n,r){return".bin"===t.slice(-4)?function(e,t,n){var r={NumberFmt:[]};for(var i in Bo)r.NumberFmt[i]=Bo[i];r.CellXf=[],r.Fonts=[];var a=[],o=!1;return jl(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],cs(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=cd(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==a[a.length-1]&&r.CellXf.push(e);break;case 35:o=!0;break;case 36:o=!1;break;case 37:a.push(s),o=!0;break;case 38:a.pop(),o=!1;break;default:if(i.T>0)a.push(s);else if(i.T<0)a.pop();else if(!o||n.WTF&&37!=a[a.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),r}(e,n,r):xd(e,n,r)}function am(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=!1;return jl(e,(function(e,i,a){switch(a){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}})),n}(e,n):function(e,t){var n=[],r="";if(!e)return n;var i=e.match(Ff);if(i){r=i[2].replace(zf,"").split(Hf);for(var a=0;a!=r.length;++a){var o=Nf(r[a].trim(),t);null!=o&&(n[n.length]=o)}i=rc(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}(e,n)}function om(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=[],i={},a=!1;return jl(e,(function(e,o,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:case 37:case 38:break;case 35:a=!0;break;case 36:a=!1;break;default:if(o.T);else if(!a||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),n}(e,n):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var a=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var a=rc(i[0]),o={author:a.authorId&&n[a.authorId]||"sheetjsghost",ref:a.ref,guid:a.guid},s=Kl(a.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!c&&!!c[1]&&Nf(c[1])||{r:"",t:"",h:""};o.r=l.r,"<t></t>"==l.r&&(l.t=l.h=""),o.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(o.h=l.h),r.push(o)}}}})),r}(e,n)}function sm(e,t,n){return".bin"===t.slice(-4)?function(e){var t=[];return jl(e,(function(e,n,r){if(63===r)t.push(e);else if(!n.T)throw new Error("Unexpected record 0x"+r.toString(16))})),t}(e):function(e){var t=[];if(!e)return t;var n=1;return(e.match(ec)||[]).forEach((function(e){var r=rc(e);switch(r[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete r[0],r.i?n=r.i:r.i=n,t.push(r)}})),t}(e)}function cm(e,t,n,r){if(".bin"===n.slice(-4))return function(e,t,n,r){if(!e)return e;var i=r||{},a=!1;jl(e,(function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(t.T);else if(!a||i.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}}),i)}(e,0,0,r)}function lm(e,t,n){return".bin"===t.slice(-4)?function(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},a=[],o=!1,s=2;return jl(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==s&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:a.push(n),o=!0;break;case 36:a.pop(),o=!1;break;default:if(t.T);else if(!o||i.WTF&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}(e,0,n):function(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,a=!1,o=2;return e.replace(ec,(function(e){var t=rc(e);switch(ic(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":r.Types.push({name:t.name});break;case"<futureMetadata":for(var s=0;s<r.Types.length;++s)r.Types[s].name==t.name&&(i=r.Types[s]);break;case"<rc":1==o?r.Cell.push({type:r.Types[t.t-1].name,index:+t.v}):0==o&&r.Value.push({type:r.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":o=1;break;case"</cellMetadata>":case"</valueMetadata>":o=2;break;case"<valueMetadata":o=0;break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!i)break;i.offsets||(i.offsets=[]),i.offsets.push(+t.i);break;default:if(!a&&n.WTF)throw new Error("unrecognized "+t[0]+" in metadata")}return e})),r}(e,0,n)}function um(e,t,n,r,i){return(".bin"===t.slice(-4)?jg:Cg)(e,n,r,i)}function hm(e,t,n){return(".bin"===t.slice(-4)?rp:ep)(e)}var fm,dm=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,pm=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function gm(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,a,o,s=e.match(dm);if(s)for(o=0;o!=s.length;++o)-1===(a=(i=s[o].match(pm))[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):r["xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(a+1)]=i[2].slice(1,i[2].length-1);return r}function mm(e){var t={};if(1===e.split(/\s+/).length)return t;var n,r,i,a=e.match(dm);if(a)for(i=0;i!=a.length;++i)-1===(r=(n=a[i].match(pm))[1].indexOf(":"))?t[n[1]]=n[2].slice(1,n[2].length-1):t["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(r+1)]=n[2].slice(1,n[2].length-1);return t}function vm(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=gc(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=Ts(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[sc(t)]=i}function ym(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||Nu[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=No(e.v):e.w=Fo(e.v):e.w=(r=t||"General",i=e.v,"General"===(a=fm[r]||sc(r))?Fo(i):ss(a,i))}catch(e){if(n.WTF)throw e}var r,i,a;try{var o=fm[t]||t||"General";if(n.cellNF&&(e.z=o),n.cellDates&&"n"==e.t&&rs(o)){var s=Do(e.v);s&&(e.t="d",e.v=new Date(s.y,s.m-1,s.d,s.H,s.M,s.S,s.u))}}catch(e){if(n.WTF)throw e}}}function Am(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Ad[r.Pattern]||r.Pattern)}e[t.ID]=t}function bm(e,t,n,r,i,a,o,s,c,l){var u="General",h=r.StyleID,f={};l=l||{};var d=[],p=0;for(void 0===h&&s&&(h=s.StyleID),void 0===h&&o&&(h=o.StyleID);void 0!==a[h]&&(a[h].nf&&(u=a[h].nf),a[h].Interior&&d.push(a[h].Interior),a[h].Parent);)h=a[h].Parent;switch(n.Type){case"Boolean":r.t="b",r.v=gc(e);break;case"String":r.t="s",r.r=pc(sc(e)),r.v=e.indexOf("<")>-1?sc(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(Ts(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!=r.v?r.v=sc(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=Fu[e],!1!==l.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=pc(t||e))}if(ym(r,u,l),!1!==l.cellFormula)if(r.Formula){var g=sc(r.Formula);61==g.charCodeAt(0)&&(g=g.slice(1)),r.f=ap(g,i),delete r.Formula,"RC"==r.ArrayRange?r.F=ap("RC:RC",i):r.ArrayRange&&(r.F=ap(r.ArrayRange,i),c.push([Zl(r.F),r.F]))}else for(p=0;p<c.length;++p)i.r>=c[p][0].s.r&&i.r<=c[p][0].e.r&&i.c>=c[p][0].s.c&&i.c<=c[p][0].e.c&&(r.F=c[p][1]);l.cellStyles&&(d.forEach((function(e){!f.patternType&&e.patternType&&(f.patternType=e.patternType)})),r.s=f),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function wm(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function xm(e,t){var n=t||{};us();var r=no(Dc(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r=bc(r));var i,a=r.slice(0,1024).toLowerCase(),o=!1;if((1023&(a=a.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&a.indexOf(","),1023&a.indexOf(";"))){var s=Ds(n);return s.type="string",Of.to_workbook(r,s)}if(-1==a.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){a.indexOf("<"+e)>=0&&(o=!0)})),o)return function(e,t){var n=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find <table>");if(1==n.length)return nu(Zm(n[0],t),t);var r={SheetNames:[],Sheets:{}};return n.forEach((function(e,n){ry(r,Zm(e,t),"Sheet"+(n+1))})),r}(r,n);fm={"General Number":"General","General Date":Bo[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Bo[15],"Short Date":Bo[14],"Long Time":Bo[19],"Medium Time":Bo[18],"Short Time":Bo[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Bo[2],Standard:Bo[4],Percent:Bo[10],Scientific:Bo[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,l,u=[],h={},f=[],d=n.dense?[]:{},p="",g={},m={},v=gm('<Data ss:Type="String">'),y=0,A=0,b=0,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},x={},C={},_="",I=0,E=[],k={},S={},B=0,M=[],T=[],O={},D=[],P=!1,L=[],Q=[],R={},j=0,N=0,F={Sheets:[],WBProps:{date1904:!1}},z={};Pc.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/gm,"");for(var H="";i=Pc.exec(r);)switch(i[3]=(H=i[3]).toLowerCase()){case"data":if("data"==H){if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break}if(u[u.length-1][1])break;"/"===i[1]?bm(r.slice(y,i.index),_,v,"comment"==u[u.length-1][0]?O:g,{c:A,r:b},x,D[A],m,L,n):(_="",v=gm(i[0]),y=i.index+i[0].length);break;case"cell":if("/"===i[1])if(T.length>0&&(g.c=T),(!n.sheetRows||n.sheetRows>b)&&void 0!==g.v&&(n.dense?(d[b]||(d[b]=[]),d[b][A]=g):d[Yl(A)+Wl(b)]=g),g.HRef&&(g.l={Target:sc(g.HRef)},g.HRefScreenTip&&(g.l.Tooltip=g.HRefScreenTip),delete g.HRef,delete g.HRefScreenTip),(g.MergeAcross||g.MergeDown)&&(j=A+(0|parseInt(g.MergeAcross,10)),N=b+(0|parseInt(g.MergeDown,10)),E.push({s:{c:A,r:b},e:{c:j,r:N}})),n.sheetStubs)if(g.MergeAcross||g.MergeDown){for(var U=A;U<=j;++U)for(var G=b;G<=N;++G)(U>A||G>b)&&(n.dense?(d[G]||(d[G]=[]),d[G][U]={t:"z"}):d[Yl(U)+Wl(G)]={t:"z"});A=j+1}else++A;else g.MergeAcross?A=j+1:++A;else(g=mm(i[0])).Index&&(A=+g.Index-1),A<w.s.c&&(w.s.c=A),A>w.e.c&&(w.e.c=A),"/>"===i[0].slice(-2)&&++A,T=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(b<w.s.r&&(w.s.r=b),b>w.e.r&&(w.e.r=b),"/>"===i[0].slice(-2)&&(m=gm(i[0])).Index&&(b=+m.Index-1),A=0,++b):((m=gm(i[0])).Index&&(b=+m.Index-1),R={},("0"==m.AutoFitHeight||m.Height)&&(R.hpx=parseInt(m.Height,10),R.hpt=vd(R.hpx),Q[b]=R),"1"==m.Hidden&&(R.hidden=!0,Q[b]=R));break;case"worksheet":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"));f.push(p),w.s.r<=w.e.r&&w.s.c<=w.e.c&&(d["!ref"]=Xl(w),n.sheetRows&&n.sheetRows<=w.e.r&&(d["!fullref"]=d["!ref"],w.e.r=n.sheetRows-1,d["!ref"]=Xl(w))),E.length&&(d["!merges"]=E),D.length>0&&(d["!cols"]=D),Q.length>0&&(d["!rows"]=Q),h[p]=d}else w={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=A=0,u.push([i[3],!1]),c=gm(i[0]),p=sc(c.Name),d=n.dense?[]:{},E=[],L=[],Q=[],z={name:p,Hidden:0},F.Sheets.push(z);break;case"table":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else{if("/>"==i[0].slice(-2))break;u.push([i[3],!1]),D=[],P=!1}break;case"style":"/"===i[1]?Am(x,C,n):C=gm(i[0]);break;case"numberformat":C.nf=sc(gm(i[0]).Format||"General"),fm[C.nf]&&(C.nf=fm[C.nf]);for(var V=0;392!=V&&Bo[V]!=C.nf;++V);if(392==V)for(V=57;392!=V;++V)if(null==Bo[V]){cs(C.nf,V);break}break;case"column":if("table"!==u[u.length-1][0])break;if((l=gm(i[0])).Hidden&&(l.hidden=!0,delete l.Hidden),l.Width&&(l.wpx=parseInt(l.Width,10)),!P&&l.wpx>10){P=!0,ld=6;for(var W=0;W<D.length;++W)D[W]&&gd(D[W])}P&&gd(l),D[l.Index-1||D.length]=l;for(var q=0;q<+l.Span;++q)D[D.length]=Ds(l);break;case"namedrange":if("/"===i[1])break;F.Names||(F.Names=[]);var Y=rc(i[0]),K={Name:Y.Name,Ref:ap(Y.RefersTo.slice(1),{r:0,c:0})};F.Sheets.length>0&&(K.Sheet=F.Sheets.length-1),F.Names.push(K);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?_+=r.slice(I,i.index):I=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;C.Interior=gm(i[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?uh(k,H,r.slice(B,i.index)):B=i.index+i[0].length;break;case"styles":case"workbook":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else u.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"));wm(O),T.push(O)}else u.push([i[3],!1]),O={a:(c=gm(i[0])).Author};break;case"autofilter":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var $=gm(i[0]);d["!autofilter"]={ref:ap($.Range).replace(/\$/g,"")},u.push([i[3],!0])}break;case"datavalidation":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break;default:if(0==u.length&&"document"==i[3])return iv(r,n);if(0==u.length&&"uof"==i[3])return iv(r,n);var J=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:J=!1}break;case"componentoptions":switch(i[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:J=!1}break;case"excelworkbook":switch(i[3]){case"date1904":F.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:J=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":case"height":case"width":break;default:J=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(B,i.index)){case"SheetHidden":z.Hidden=1;break;case"SheetVeryHidden":z.Hidden=2}else B=i.index+i[0].length;break;case"header":d["!margins"]||ng(d["!margins"]={},"xlml"),isNaN(+rc(i[0]).Margin)||(d["!margins"].header=+rc(i[0]).Margin);break;case"footer":d["!margins"]||ng(d["!margins"]={},"xlml"),isNaN(+rc(i[0]).Margin)||(d["!margins"].footer=+rc(i[0]).Margin);break;case"pagemargins":var X=rc(i[0]);d["!margins"]||ng(d["!margins"]={},"xlml"),isNaN(+X.Top)||(d["!margins"].top=+X.Top),isNaN(+X.Left)||(d["!margins"].left=+X.Left),isNaN(+X.Right)||(d["!margins"].right=+X.Right),isNaN(+X.Bottom)||(d["!margins"].bottom=+X.Bottom);break;case"displayrighttoleft":F.Views||(F.Views=[]),F.Views[0]||(F.Views[0]={}),F.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;default:J=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:J=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:J=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:J=!1}break;case"querytable":switch(i[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:J=!1}break;case"datavalidation":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:J=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:J=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:J=!1}break;case"smarttags":break;default:J=!1}if(J)break;if(i[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+u.join("|");if("customdocumentproperties"===u[u.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?vm(S,H,M,r.slice(B,i.index)):(M=i,B=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+u.join("|")}var Z={};return n.bookSheets||n.bookProps||(Z.Sheets=h),Z.SheetNames=f,Z.Workbook=F,Z.SSF=Ds(Bo),Z.Props=k,Z.Custprops=S,Z}function Cm(e,t){switch(Qv(t=t||{}),t.type||"base64"){case"base64":return xm(so(e),t);case"binary":case"buffer":case"file":return xm(e,t);case"array":return xm(go(e),t)}}function _m(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return vs(lh).map((function(e){for(var t=0;t<Ju.length;++t)if(Ju[t][1]==e)return Ju[t];for(t=0;t<nh.length;++t)if(nh[t][1]==e)return nh[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var i=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];"date"===r[2]&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),n.push(Bc(lh[r[1]]||r[1],i))}})),Tc("DocumentProperties",n.join(""),{xmlns:Kc})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return e&&vs(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<Ju.length;++r)if(t==Ju[r][1])return;for(r=0;r<nh.length;++r)if(t==nh[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var a=e[t],o="string";"number"==typeof a?(o="float",a=String(a)):!0===a||!1===a?(o="boolean",a=a?"1":"0"):a=String(a),i.push(Tc(hc(t),a,{"dt:dt":o}))}})),t&&vs(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],a="string";"number"==typeof r?(a="float",r=String(r)):!0===r||!1===r?(a="boolean",r=r?"1":"0"):r instanceof Date?(a="dateTime.tz",r=r.toISOString()):r=String(r),i.push(Tc(hc(n),r,{"dt:dt":a}))}})),"<"+r+' xmlns="'+Kc+'">'+i.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}function Im(e){return Tc("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+sp(e.Ref,{r:0,c:0})})}function Em(e,t,n,r,i,a,o){if(!e||null==e.v&&null==e.f)return"";var s={};if(e.f&&(s["ss:Formula"]="="+uc(sp(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var c=Kl(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==o.r?"":"["+(c.r-o.r)+"]")+"C"+(c.c==o.c?"":"["+(c.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=uc(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=uc(e.l.Tooltip))),n["!merges"])for(var l=n["!merges"],u=0;u!=l.length;++u)l[u].s.c==o.c&&l[u].s.r==o.r&&(l[u].e.c>l[u].s.c&&(s["ss:MergeAcross"]=l[u].e.c-l[u].s.c),l[u].e.r>l[u].s.r&&(s["ss:MergeDown"]=l[u].e.r-l[u].s.r));var h="",f="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":h="Number",f=String(e.v);break;case"b":h="Boolean",f=e.v?"1":"0";break;case"e":h="Error",f=Nu[e.v];break;case"d":h="DateTime",f=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||Bo[14]);break;case"s":h="String",f=((e.v||"")+"").replace(cc,(function(e){return oc[e]})).replace(fc,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var d=rg(r.cellXfs,e,r);s["ss:StyleID"]="s"+(21+d),s["ss:Index"]=o.c+1;var p=null!=e.v?f:"",g="z"==e.t?"":'<Data ss:Type="'+h+'">'+p+"</Data>";return(e.c||[]).length>0&&(g+=e.c.map((function(e){var t=Tc("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return Tc("Comment",t,{"ss:Author":e.a})})).join("")),Tc("Cell",g,s)}function km(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=yd(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Sm(e,t,n){var r=[],i=n.SheetNames[e],a=n.Sheets[i],o=a?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||a.push(Im(s)))}return a.join("")}(a,0,e,n):"";return o.length>0&&r.push("<Names>"+o+"</Names>"),o=a?function(e,t){if(!e["!ref"])return"";var n=Zl(e["!ref"]),r=e["!merges"]||[],i=0,a=[];e["!cols"]&&e["!cols"].forEach((function(e,t){gd(e);var n=!!e.width,r=tg(t,e),i={"ss:Index":t+1};n&&(i["ss:Width"]=ud(r.width)),e.hidden&&(i["ss:Hidden"]="1"),a.push(Tc("Column",null,i))}));for(var o=Array.isArray(e),s=n.s.r;s<=n.e.r;++s){for(var c=[km(s,(e["!rows"]||[])[s])],l=n.s.c;l<=n.e.c;++l){var u=!1;for(i=0;i!=r.length;++i)if(!(r[i].s.c>l||r[i].s.r>s||r[i].e.c<l||r[i].e.r<s)){r[i].s.c==l&&r[i].s.r==s||(u=!0);break}if(!u){var h={r:s,c:l},f=$l(h),d=o?(e[s]||[])[l]:e[f];c.push(Em(d,f,e,t,0,0,h))}}c.push("</Row>"),c.length>2&&a.push(c.join(""))}return a.join("")}(a,t):"",o.length>0&&r.push("<Table>"+o+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(Tc("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(Tc("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(Tc("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(Tc("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<n&&(!r.Workbook.Sheets[a]||r.Workbook.Sheets[a].Hidden);++a);a==n&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Bc("ProtectContents","True")),e["!protect"].objects&&i.push(Bc("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Bc("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||i.push(Bc("EnableSelection","UnlockedCells")):i.push(Bc("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&i.push("<"+t[1]+"/>")}))),0==i.length?"":Tc("WorksheetOptions",i.join(""),{xmlns:$c})}(a,0,e,n)),r.join("")}function Bm(e,t){t||(t={}),e.SSF||(e.SSF=Ds(Bo)),e.SSF&&(us(),ls(e.SSF),t.revssf=bs(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],rg(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(_m(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(Tc("Worksheet",Sm(r,t,e),{"ss:Name":uc(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(Tc("NumberFormat",null,{"ss:Format":uc(Bo[e.numFmtId])}));var i={"ss:ID":"s"+(21+t)};n.push(Tc("Style",r.join(""),i))})),Tc("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var i=t[r];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||n.push(Im(i)))}return Tc("Names",n.join(""))}(e),Js+Tc("Workbook",n.join(""),{xmlns:Jc,"xmlns:o":Kc,"xmlns:x":$c,"xmlns:ss":Jc,"xmlns:dt":Xc,"xmlns:html":tl})}function Mm(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Mu(e,1)}(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4||1907505652!==(r=n.read_shift(4))?t:(t.UnicodeClipboardFormat=function(e){return Mu(e,2)}(n),0==(r=n.read_shift(4))||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr")))))}var Tm=[60,1084,2066,2165,2175];function Om(e,t,n,r,i){var a=r,o=[],s=n.slice(n.l,n.l+a);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:i.enc.insitu(s)}o.push(s),n.l+=a;for(var c=_l(n,n.l),l=Hm[c],u=0;null!=l&&Tm.indexOf(c)>-1;)a=_l(n,n.l+2),u=n.l+4,2066==c?u+=4:2165!=c&&2175!=c||(u+=12),s=n.slice(u,n.l+4+a),o.push(s),n.l+=4+a,l=Hm[c=_l(n,n.l)];var h=vo(o);Ll(h,0);var f=0;h.lens=[];for(var d=0;d<o.length;++d)h.lens.push(f),f+=o[d].length;if(h.length<r)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+h.length+" < "+r;return t.f(h,h.length,i)}function Dm(e,t,n){if("z"!==e.t&&e.XF){var r=0;try{r=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=Bo[r])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Nu[e.v]:0===r||"General"==r?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=No(e.v):e.w=Fo(e.v):e.w=ss(r,e.v,{date1904:!!n,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}if(t.cellDates&&r&&"n"==e.t&&rs(Bo[r]||String(r))){var i=Do(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function Pm(e,t,n){return{v:e,ixfe:t,t:n}}function Lm(e,t){var n,r,i,a,o,s,c,l,u={opts:{}},h={},f=t.dense?[]:{},d={},p={},g=null,m=[],v="",y={},A="",b={},w=[],x=[],C=[],_={Sheets:[],WBProps:{date1904:!1},Views:[{}]},I={},E=function(e){return e<8?ju[e]:e<64&&C[e-8]||ju[e]},k=function(e,t,r){if(!(R>1||r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,n){var r,i=t.XF.data;i&&i.patternType&&n&&n.cellStyles&&(t.s={},t.s.patternType=i.patternType,(r=sd(E(i.icvFore)))&&(t.s.fgColor={rgb:r}),(r=sd(E(i.icvBack)))&&(t.s.bgColor={rgb:r}))}(0,t,r),delete t.ixfe,delete t.XF,n=e,A=$l(e),p&&p.s&&p.e||(p={s:{r:0,c:0},e:{r:0,c:0}}),e.r<p.s.r&&(p.s.r=e.r),e.c<p.s.c&&(p.s.c=e.c),e.r+1>p.e.r&&(p.e.r=e.r+1),e.c+1>p.e.c&&(p.e.c=e.c+1),r.cellFormula&&t.f)for(var i=0;i<w.length;++i)if(!(w[i][0].s.c>e.c||w[i][0].s.r>e.r||w[i][0].e.c<e.c||w[i][0].e.r<e.r)){t.F=Xl(w[i][0]),w[i][0].s.c==e.c&&w[i][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Qp(w[i][1],0,e,P,S));break}r.dense?(f[e.r]||(f[e.r]=[]),f[e.r][e.c]=t):f[A]=t}},S={enc:!1,sbcch:0,snames:[],sharedf:b,arrayf:w,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(S.password=t.password);var B=[],M=[],T=[],O=[],D=!1,P=[];P.SheetNames=S.snames,P.sharedf=S.sharedf,P.arrayf=S.arrayf,P.names=[],P.XTI=[];var L,Q=0,R=0,j=0,N=[],F=[];S.codepage=1200,Ja(1200);for(var z=!1;e.l<e.length-1;){var H=e.l,U=e.read_shift(2);if(0===U&&10===Q)break;var G=e.l===e.length?0:e.read_shift(2),V=Hm[U];if(V&&V.f){if(t.bookSheets&&133===Q&&133!==U)break;if(Q=U,2===V.r||12==V.r){var W=e.read_shift(2);if(G-=2,!S.enc&&W!==U&&((255&W)<<8|W>>8)!==U)throw new Error("rt mismatch: "+W+"!="+U);12==V.r&&(e.l+=10,G-=10)}var q={};if(q=10===U?V.f(e,G,S):Om(U,V,e,G,S),0==R&&-1===[9,521,1033,2057].indexOf(Q))continue;switch(U){case 34:u.opts.Date1904=_.WBProps.date1904=q;break;case 134:u.opts.WriteProtect=!0;break;case 47:if(S.enc||(e.l=0),S.enc=q,!t.password)throw new Error("File is password-protected");if(null==q.valid)throw new Error("Encryption scheme unsupported");if(!q.valid)throw new Error("Password is incorrect");break;case 92:S.lastuser=q;break;case 66:var Y=Number(q);switch(Y){case 21010:Y=1200;break;case 32768:Y=1e4;break;case 32769:Y=1252}Ja(S.codepage=Y),z=!0;break;case 317:S.rrtabid=q;break;case 25:S.winlocked=q;break;case 439:u.opts.RefreshAll=q;break;case 12:u.opts.CalcCount=q;break;case 16:u.opts.CalcDelta=q;break;case 17:u.opts.CalcIter=q;break;case 13:u.opts.CalcMode=q;break;case 14:u.opts.CalcPrecision=q;break;case 95:u.opts.CalcSaveRecalc=q;break;case 15:S.CalcRefMode=q;break;case 2211:u.opts.FullCalc=q;break;case 129:q.fDialog&&(f["!type"]="dialog"),q.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),q.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:x.push(q);break;case 430:P.push([q]),P[P.length-1].XTI=[];break;case 35:case 547:P[P.length-1].push(q);break;case 24:case 536:L={Name:q.Name,Ref:Qp(q.rgce,0,null,P,S)},q.itab>0&&(L.Sheet=q.itab-1),P.names.push(L),P[0]||(P[0]=[],P[0].XTI=[]),P[P.length-1].push(q),"_xlnm._FilterDatabase"==q.Name&&q.itab>0&&q.rgce&&q.rgce[0]&&q.rgce[0][0]&&"PtgArea3d"==q.rgce[0][0][0]&&(F[q.itab-1]={ref:Xl(q.rgce[0][0][1][2])});break;case 22:S.ExternCount=q;break;case 23:0==P.length&&(P[0]=[],P[0].XTI=[]),P[P.length-1].XTI=P[P.length-1].XTI.concat(q),P.XTI=P.XTI.concat(q);break;case 2196:if(S.biff<8)break;null!=L&&(L.Comment=q[1]);break;case 18:f["!protect"]=q;break;case 19:0!==q&&S.WTF;break;case 133:d[q.pos]=q,S.snames.push(q.name);break;case 10:if(--R)break;if(p.e){if(p.e.r>0&&p.e.c>0){if(p.e.r--,p.e.c--,f["!ref"]=Xl(p),t.sheetRows&&t.sheetRows<=p.e.r){var K=p.e.r;p.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=Xl(p),p.e.r=K}p.e.r++,p.e.c++}B.length>0&&(f["!merges"]=B),M.length>0&&(f["!objects"]=M),T.length>0&&(f["!cols"]=T),O.length>0&&(f["!rows"]=O),_.Sheets.push(I)}""===v?y=f:h[v]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===S.biff&&(S.biff={9:2,521:3,1033:4}[U]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[q.BIFFVer]||8),S.biffguess=0==q.BIFFVer,0==q.BIFFVer&&4096==q.dt&&(S.biff=5,z=!0,Ja(S.codepage=28591)),8==S.biff&&0==q.BIFFVer&&16==q.dt&&(S.biff=2),R++)break;if(f=t.dense?[]:{},S.biff<8&&!z&&(z=!0,Ja(S.codepage=t.codepage||1252)),S.biff<5||0==q.BIFFVer&&4096==q.dt){""===v&&(v="Sheet1"),p={s:{r:0,c:0},e:{r:0,c:0}};var $={pos:e.l-G,name:v};d[$.pos]=$,S.snames.push(v)}else v=(d[H]||{name:""}).name;32==q.dt&&(f["!type"]="chart"),64==q.dt&&(f["!type"]="macro"),B=[],M=[],S.arrayf=w=[],T=[],O=[],D=!1,I={Hidden:(d[H]||{hs:0}).hs,name:v};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[q.r]||[])[q.c]:f[$l({c:q.c,r:q.r})])&&++q.c,s={ixfe:q.ixfe,XF:x[q.ixfe]||{},v:q.val,t:"n"},j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:q.c,r:q.r},s,t);break;case 5:case 517:s={ixfe:q.ixfe,XF:x[q.ixfe],v:q.val,t:q.t},j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:q.c,r:q.r},s,t);break;case 638:s={ixfe:q.ixfe,XF:x[q.ixfe],v:q.rknum,t:"n"},j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:q.c,r:q.r},s,t);break;case 189:for(var J=q.c;J<=q.C;++J){var X=q.rkrec[J-q.c][0];s={ixfe:X,XF:x[X],v:q.rkrec[J-q.c][1],t:"n"},j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:J,r:q.r},s,t)}break;case 6:case 518:case 1030:if("String"==q.val){g=q;break}if((s=Pm(q.val,q.cell.ixfe,q.tt)).XF=x[s.ixfe],t.cellFormula){var Z=q.formula;if(Z&&Z[0]&&Z[0][0]&&"PtgExp"==Z[0][0][0]){var ee=Z[0][0][1][0],te=Z[0][0][1][1],ne=$l({r:ee,c:te});b[ne]?s.f=""+Qp(q.formula,0,q.cell,P,S):s.F=((t.dense?(f[ee]||[])[te]:f[ne])||{}).F}else s.f=""+Qp(q.formula,0,q.cell,P,S)}j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k(q.cell,s,t),g=q;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=q,(s=Pm(q,g.cell.ixfe,"s")).XF=x[s.ixfe],t.cellFormula&&(s.f=""+Qp(g.formula,0,g.cell,P,S)),j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k(g.cell,s,t),g=null;break;case 33:case 545:w.push(q);var re=$l(q[0].s);if(r=t.dense?(f[q[0].s.r]||[])[q[0].s.c]:f[re],t.cellFormula&&r){if(!g)break;if(!re||!r)break;r.f=""+Qp(q[1],0,q[0],P,S),r.F=Xl(q[0])}break;case 1212:if(!t.cellFormula)break;if(A){if(!g)break;b[$l(g.cell)]=q[0],((r=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[$l(g.cell)])||{}).f=""+Qp(q[0],0,n,P,S)}break;case 253:s=Pm(m[q.isst].t,q.ixfe,"s"),m[q.isst].h&&(s.h=m[q.isst].h),s.XF=x[s.ixfe],j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:q.c,r:q.r},s,t);break;case 513:t.sheetStubs&&(s={ixfe:q.ixfe,XF:x[q.ixfe],t:"z"},j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:q.c,r:q.r},s,t));break;case 190:if(t.sheetStubs)for(var ie=q.c;ie<=q.C;++ie){var ae=q.ixfe[ie-q.c];s={ixfe:ae,XF:x[ae],t:"z"},j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:ie,r:q.r},s,t)}break;case 214:case 516:case 4:(s=Pm(q.val,q.ixfe,"s")).XF=x[s.ixfe],j>0&&(s.z=N[s.ixfe>>8&63]),Dm(s,t,u.opts.Date1904),k({c:q.c,r:q.r},s,t);break;case 0:case 512:1===R&&(p=q);break;case 252:m=q;break;case 1054:if(4==S.biff){N[j++]=q[1];for(var oe=0;oe<j+163&&Bo[oe]!=q[1];++oe);oe>=163&&cs(q[1],j+163)}else cs(q[1],q[0]);break;case 30:N[j++]=q;for(var se=0;se<j+163&&Bo[se]!=q;++se);se>=163&&cs(q,j+163);break;case 229:B=B.concat(q);break;case 93:M[q.cmo[0]]=S.lastobj=q;break;case 438:S.lastobj.TxO=q;break;case 127:S.lastobj.ImData=q;break;case 440:for(o=q[0].s.r;o<=q[0].e.r;++o)for(a=q[0].s.c;a<=q[0].e.c;++a)(r=t.dense?(f[o]||[])[a]:f[$l({c:a,r:o})])&&(r.l=q[1]);break;case 2048:for(o=q[0].s.r;o<=q[0].e.r;++o)for(a=q[0].s.c;a<=q[0].e.c;++a)(r=t.dense?(f[o]||[])[a]:f[$l({c:a,r:o})])&&r.l&&(r.l.Tooltip=q[1]);break;case 28:if(S.biff<=5&&S.biff>=2)break;r=t.dense?(f[q[0].r]||[])[q[0].c]:f[$l(q[0])];var ce=M[q[2]];r||(t.dense?(f[q[0].r]||(f[q[0].r]=[]),r=f[q[0].r][q[0].c]={t:"z"}):r=f[$l(q[0])]={t:"z"},p.e.r=Math.max(p.e.r,q[0].r),p.s.r=Math.min(p.s.r,q[0].r),p.e.c=Math.max(p.e.c,q[0].c),p.s.c=Math.min(p.s.c,q[0].c)),r.c||(r.c=[]),i={a:q[1],t:ce.TxO.t},r.c.push(i);break;case 2173:x[q.ixfe],q.ext.forEach((function(e){e[0]}));break;case 125:if(!S.cellStyles)break;for(;q.e>=q.s;)T[q.e--]={width:q.w/256,level:q.level||0,hidden:!!(1&q.flags)},D||(D=!0,pd(q.w/256)),gd(T[q.e+1]);break;case 520:var le={};null!=q.level&&(O[q.r]=le,le.level=q.level),q.hidden&&(O[q.r]=le,le.hidden=!0),q.hpt&&(O[q.r]=le,le.hpt=q.hpt,le.hpx=yd(q.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||ng(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[U]]=q;break;case 161:f["!margins"]||ng(f["!margins"]={}),f["!margins"].header=q.header,f["!margins"].footer=q.footer;break;case 574:q.RTL&&(_.Views[0].RTL=!0);break;case 146:C=q;break;case 2198:l=q;break;case 140:c=q;break;case 442:v?I.CodeName=q||I.name:_.WBProps.CodeName=q||"ThisWorkbook"}}else e.l+=G}return u.SheetNames=vs(d).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return d[e].name})),t.bookSheets||(u.Sheets=h),!u.SheetNames.length&&y["!ref"]?(u.SheetNames.push("Sheet1"),u.Sheets&&(u.Sheets.Sheet1=y)):u.Preamble=y,u.Sheets&&F.forEach((function(e,t){u.Sheets[u.SheetNames[t]]["!autofilter"]=e})),u.Strings=m,u.SSF=Ds(Bo),S.enc&&(u.Encryption=S.enc),l&&(u.Themes=l),u.Metadata={},void 0!==c&&(u.Metadata.Country=c),P.names.length>0&&(_.Names=P.names),u.Workbook=_,u}var Qm="e0859ff2f94f6810ab9108002b27b3d9",Rm="02d5cdd59c2e1b10939708002b2cf9ae",jm="05d5cdd59c2e1b10939708002b2cf9ae";function Nm(e,t){var n,r,i,a;if(t||(t={}),Qv(t),Xa(),t.codepage&&$a(t.codepage),e.FullPaths){if(ps.find(e,"/encryption"))throw new Error("File is password-protected");n=ps.find(e,"!CompObj"),r=ps.find(e,"/Workbook")||ps.find(e,"/Book")}else{switch(t.type){case"base64":e=fo(so(e));break;case"binary":e=fo(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}Ll(e,0),r={content:e}}if(n&&Mm(n),t.bookProps&&!t.bookSheets)i={};else{var o=co?"buffer":"array";if(r&&r.content)i=Lm(r.content,t);else if((a=ps.find(e,"PerfectOffice_MAIN"))&&a.content)i=Df.to_workbook(a.content,(t.type=o,t));else{if(!(a=ps.find(e,"NativeContent_MAIN"))||!a.content)throw(a=ps.find(e,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=Df.to_workbook(a.content,(t.type=o,t))}t.bookVBA&&e.FullPaths&&ps.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=function(e){var t=ps.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");ps.utils.cfb_add(t,i,e.FileIndex[r].content)}})),ps.write(t)}(e))}var s={};return e.FullPaths&&function(e,t,n){var r=ps.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=Ih(r,Du,Rm);for(var a in i)t[a]=i[a]}catch(e){if(n.WTF)throw e}var o=ps.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=Ih(o,Pu,Qm);for(var c in s)null==t[c]&&(t[c]=s[c])}catch(e){if(n.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(ih(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}function Fm(e,t){var n=t||{},r=ps.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return ps.utils.cfb_add(r,i,Xm(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],i=[],a=[],o=0,s=ys(Du,"n"),c=ys(Pu,"n");if(e.Props)for(n=vs(e.Props),o=0;o<n.length;++o)(Object.prototype.hasOwnProperty.call(s,n[o])?r:Object.prototype.hasOwnProperty.call(c,n[o])?i:a).push([n[o],e.Props[n[o]]]);if(e.Custprops)for(n=vs(e.Custprops),o=0;o<n.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},n[o])||(Object.prototype.hasOwnProperty.call(s,n[o])?r:Object.prototype.hasOwnProperty.call(c,n[o])?i:a).push([n[o],e.Custprops[n[o]]]);var l=[];for(o=0;o<a.length;++o)xh.indexOf(a[o][0])>-1||rh.indexOf(a[o][0])>-1||null!=a[o][1]&&l.push(a[o]);i.length&&ps.utils.cfb_add(t,"/SummaryInformation",Eh(i,Qm,c,Pu)),(r.length||l.length)&&ps.utils.cfb_add(t,"/DocumentSummaryInformation",Eh(r,Rm,s,Du,l.length?l:null,jm))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var i=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&ps.utils.cfb_add(e,i,t.FileIndex[r].content)}}))}(r,ps.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var zm={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=r,7&a&&(n.level=7&a),16&a&&(n.hidden=!0),32&a&&(n.hpt=i/20),n}},1:{f:function(e){return[hu(e)]}},2:{f:function(e){return[hu(e),xu(e),"n"]}},3:{f:function(e){return[hu(e),e.read_shift(1),"e"]}},4:{f:function(e){return[hu(e),e.read_shift(1),"b"]}},5:{f:function(e){return[hu(e),ku(e),"n"]}},6:{f:function(e){return[hu(e),au(e),"str"]}},7:{f:function(e){return[hu(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,i=hu(e);i.r=n["!row"];var a=[i,au(e),"str"];if(n.cellFormula){e.l+=2;var o=Up(e,r-e.l,n);a[3]=Qp(o,0,i,n.supbooks,n)}else e.l=r;return a}},9:{f:function(e,t,n){var r=e.l+t,i=hu(e);i.r=n["!row"];var a=[i,ku(e),"n"];if(n.cellFormula){e.l+=2;var o=Up(e,r-e.l,n);a[3]=Qp(o,0,i,n.supbooks,n)}else e.l=r;return a}},10:{f:function(e,t,n){var r=e.l+t,i=hu(e);i.r=n["!row"];var a=[i,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var o=Up(e,r-e.l,n);a[3]=Qp(o,0,i,n.supbooks,n)}else e.l=r;return a}},11:{f:function(e,t,n){var r=e.l+t,i=hu(e);i.r=n["!row"];var a=[i,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var o=Up(e,r-e.l,n);a[3]=Qp(o,0,i,n.supbooks,n)}else e.l=r;return a}},12:{f:function(e){return[du(e)]}},13:{f:function(e){return[du(e),xu(e),"n"]}},14:{f:function(e){return[du(e),e.read_shift(1),"e"]}},15:{f:function(e){return[du(e),e.read_shift(1),"b"]}},16:{f:kg},17:{f:function(e){return[du(e),au(e),"str"]}},18:{f:function(e){return[du(e),e.read_shift(4),"s"]}},19:{f:cu},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=Au(e),o=Gp(e,0,n),s=vu(e);e.l=r;var c={Name:a,Ptg:o};return i<268435455&&(c.Sheet=i),s&&(c.Comment=s),c}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var a=e.read_shift(1);0!=a&&(r.underline=a);var o=e.read_shift(1);o>0&&(r.family=o);var s=e.read_shift(1);switch(s>0&&(r.charset=s),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),i=e.read_shift(2,"i"),a=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var c=ju[r];c&&(t.rgb=sd(c));break;case 2:t.rgb=sd([a,o,s]);break;case 3:t.theme=r}return 0!=i&&(t.tint=i>0?i/32767:i/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=au(e),r}},44:{f:function(e,t){return[e.read_shift(2),au(e)]}},45:{f:Sd},46:{f:Od},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Cf},62:{f:function(e){return[hu(e),cu(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=$l(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ql,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=gu(e),n}},148:{f:Ig,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?au(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=bu(e),n.name=au(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:Iu},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Sg},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:au(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:bu},357:{},358:{},359:{},360:{T:1},361:{},362:{f:yf},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,i=_u(e),a=e.read_shift(1),o=[i];if(o[2]=a,n.cellFormula){var s=Hp(e,r-e.l,n);o[1]=s}else e.l=r;return o}},427:{f:function(e,t,n){var r=e.l+t,i=[Iu(e)];if(n.cellFormula){var a=Vp(e,r-e.l,n);i[1]=a,e.l=r}else e.l=r;return i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Mg.forEach((function(n){t[n]=ku(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=Iu(e),i=vu(e),a=au(e),o=au(e),s=au(e);e.l=n;var c={rfx:r,relId:i,loc:a,display:s};return o&&(c.Tooltip=o),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:bu},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:np},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=Iu(e);return t.rfx=n.s,t.ref=$l(n.s),e.l+=16,t}},636:{T:-1},637:{f:lu},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:au(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Hm={6:{f:Np},10:{f:kh},12:{f:Mh},13:{f:Mh},14:{f:Sh},15:{f:Sh},16:{f:ku},17:{f:Sh},18:{f:Sh},19:{f:Mh},20:{f:pf},21:{f:pf},23:{f:yf},24:{f:vf},25:{f:Sh},26:{},27:{},28:{f:function(e,t,n){return function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),o=e.read_shift(2),s=Nh(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,o,a]}}(e,0,n)}},29:{},34:{f:Sh},35:{f:gf},38:{f:ku},39:{f:ku},40:{f:ku},41:{f:ku},42:{f:Sh},43:{f:Sh},47:{f:function(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?ad(e,t-2,r):function(e,t,n,r){var i={key:Mh(e),verificationBytes:Mh(e)};n.password&&(i.verifier=nd(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=id(n.password))}(e,n.biff,n,r),r}},49:{f:function(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return r.name=Ph(e,0,n),r}},51:{f:Mh},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:Sh},65:{f:function(){}},66:{f:Mh},77:{},80:{},81:{},82:{},85:{f:Mh},89:{},90:{},91:{},92:{f:function(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=Nh(e,0,n);return e.read_shift(t+r-e.l),i}},93:{f:function(e,t,n){if(n&&n.biff<8)return function(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var o=[];return o.push((bf[r]||Ql)(e,t,n)),{cmo:[i,r,a],ft:o}}(e,t,n);var r=tf(e),i=function(e,t){for(var n=e.l+t,r=[];e.l<n;){var i=e.read_shift(2);e.l-=2;try{r.push(rf[i](e,n-e.l))}catch(t){return e.l=n,r}}return e.l!=n&&(e.l=n),r}(e,t-22,r[1]);return{cmo:r,ft:i}}},94:{},95:{f:Sh},96:{},97:{},99:{f:Sh},125:{f:Cf},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}},130:{f:Mh},131:{f:Sh},132:{f:Sh},133:{f:function(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),a=e.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule"}var o=Ph(e,0,n);return 0===o.length&&(o="Sheet1"),{pos:r,hs:i,dt:a,name:o}}},134:{},140:{f:function(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=Lu[t]||t,t=e.read_shift(2),n[1]=Lu[t]||t,n}},141:{f:Mh},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Wh(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:Mh},157:{},158:{},160:{f:If},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=ku(e),n.footer=ku(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),a=[];e.l<n;)a.push($h(e));if(e.l!==n)throw new Error("MulRK read error");var o=e.read_shift(2);if(a.length!=o-i+1)throw new Error("MulRK length mismatch");return{r:r,c:i,C:o,rkrec:a}}},190:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),a=[];e.l<n;)a.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var o=e.read_shift(2);if(a.length!=o-i+1)throw new Error("MulBlank length mismatch");return{r:r,c:i,C:o,ixfe:a}}},193:{f:kh},197:{},198:{},199:{},200:{},201:{},202:{f:Sh},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Mh},220:{},221:{f:Sh},222:{},224:{f:function(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,r.data=function(e,t,n,r){var i={},a=e.read_shift(4),o=e.read_shift(4),s=e.read_shift(4),c=e.read_shift(2);return i.patternType=Qu[s>>26],r.cellStyles?(i.alc=7&a,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=15&o,i.dgRight=o>>4&15,i.dgTop=o>>8&15,i.dgBottom=o>>12&15,i.icvLeft=o>>16&127,i.icvRight=o>>23&127,i.grbitDiag=o>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&c,i.icvBack=c>>7&127,i.fsxButton=c>>14&1,i):i}(e,0,r.fStyle,n),r}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:kh},227:{},229:{f:function(e,t){for(var n=[],r=e.read_shift(2);r--;)n.push(Jh(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),a=[],o=0;o!=i&&e.l<n;++o)a.push(Lh(e));return a.Count=r,a.Unique=i,a}},253:{f:function(e){var t=qh(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Oh},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Sh},353:{f:kh},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,n){var r=e.l+t,i=e.read_shift(2),a=e.read_shift(2);if(n.sbcch=a,1025==a||14849==a)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var o=Rh(e,a),s=[];r>e.l;)s.push(jh(e));return[a,i,o,s]}},431:{f:Sh},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var r=e.l,i="";try{e.l+=4;var a=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(a)?e.l+=6:function(e){e.read_shift(1);e.l++;e.read_shift(2);e.l+=2}(e);var o=e.read_shift(2);e.read_shift(2),Mh(e);var s=e.read_shift(2);e.l+=s;for(var c=1;c<e.lens.length-1;++c){if(e.l-r!=e.lens[c])throw new Error("TxO: bad continue record");var l=e[e.l];if((i+=Rh(e,e.lens[c+1]-e.lens[c]-1)).length>=(l?o:2*o))break}if(i.length!==o&&i.length!==2*o)throw new Error("cchText: "+o+" != "+i.length);return e.l=r+t,{t:i}}catch(n){return e.l=r+t,{t:i}}}},439:{f:Sh},440:{f:function(e,t){var n=Jh(e);e.l+=16;var r=function(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var a,o,s,c,l,u,h="";16&i&&(a=Hh(e,e.l)),128&i&&(o=Hh(e,e.l)),257&~i||(s=Hh(e,e.l)),1==(257&i)&&(c=zh(e,e.l)),8&i&&(h=Hh(e,e.l)),32&i&&(l=e.read_shift(16)),64&i&&(u=hh(e)),e.l=n;var f=o||s||c||"";f&&h&&(f+="#"+h),f||(f="#"+h),2&i&&"/"==f.charAt(0)&&"/"!=f.charAt(1)&&(f="file://"+f);var d={Target:f};return l&&(d.guid=l),u&&(d.time=u),a&&(d.Tooltip=a),d}(e,t-24);return[n,r]}},441:{},442:{f:jh},443:{},444:{f:Mh},445:{},446:{},448:{f:kh},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:kh},512:{f:hf},513:{f:_f},515:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=qh(e),i=ku(e);return r.val=i,r}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var r=qh(e);2==n.biff&&e.l++;var i=jh(e,e.l,n);return r.val=i,r}},517:{f:df},519:{f:Ef},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}},523:{},545:{f:Af},549:{f:cf},566:{},574:{f:function(e,t,n){return n&&n.biff>=2&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=$h(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),Nh(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var r=Zh(e);e.l++;var i=e.read_shift(1);return[jp(e,t-=8,n),i,r]}},2048:{f:function(e,t){e.read_shift(2);var n=Jh(e),r=e.read_shift((t-10)/2,"dbcs-cont");return[n,r=r.replace(yo,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:af},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:kh},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var n=e.read_shift(2);e.l+=2;for(var r=e.read_shift(2),i=[];r-- >0;)i.push(Yd(e,e.l));return{ixfe:n,ext:i}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Sh,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2);return[Rh(e,r,n),Rh(e,i,n)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){var r=e.l+t;if(124226!==e.read_shift(4))if(n.cellStyles){var i,a=e.slice(e.l);e.l=r;try{i=Ks(a,{type:"array"})}catch(e){return}var o=Gs(i,"theme/theme/theme1.xml",!0);if(o)return Vd(o,n)}else e.l=r},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:kh},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Mh},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Wh(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:hf},1:{},2:{f:function(e){var t=qh(e);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}},3:{f:function(e){var t=qh(e);++e.l;var n=ku(e);return t.t="n",t.val=n,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=qh(e);++e.l;var i=Nh(e,0,n);return r.t="str",r.val=i,r}},5:{f:df},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:af},11:{},22:{f:Mh},30:{f:uf},31:{},32:{},33:{f:Af},36:{},37:{f:cf},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:Mh},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){var r=e.l+t,i=qh(e),a=e.read_shift(2),o=Rh(e,a,n);return e.l=r,i.t="str",i.val=o,i}},223:{},234:{},354:{},421:{},518:{f:Np},521:{f:af},536:{f:vf},547:{f:gf},561:{},579:{},1030:{f:Np},1033:{f:af},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Um(e,t,n,r){var i=t;if(!isNaN(i)){var a=r||(n||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&xl(n)&&e.push(n)}}function Gm(e,t,n){return e||(e=Rl(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function Vm(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var i="d"==t.t?xs(Ts(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?Um(e,2,(a=n,o=r,s=i,c=Rl(9),Gm(c,a,o),c.write_shift(2,s),c)):Um(e,3,function(e,t,n){var r=Rl(15);return Gm(r,e,t),r.write_shift(8,n,"f"),r}(n,r,i)));case"b":case"e":return void Um(e,5,function(e,t,n,r){var i=Rl(9);return Gm(i,e,t),Dh(n,r||"b",i),i}(n,r,t.v,t.t));case"s":case"str":return void Um(e,4,function(e,t,n){var r=Rl(8+2*n.length);return Gm(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}var a,o,s,c;Um(e,1,Gm(null,n,r))}function Wm(e,t){for(var n=t||{},r=Nl(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==n.sheet&&(i=a);if(0==i&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return Um(r,4==n.biff?1033:3==n.biff?521:9,of(0,16,n)),function(e,t,n,r){var i,a=Array.isArray(t),o=Zl(t["!ref"]||"A1"),s="",c=[];if(o.e.c>255||o.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),i=Xl(o)}for(var l=o.s.r;l<=o.e.r;++l){s=Wl(l);for(var u=o.s.c;u<=o.e.c;++u){l===o.s.r&&(c[u]=Yl(u)),i=c[u]+s;var h=a?(t[l]||[])[u]:t[i];h&&Vm(e,h,l,u)}}}(r,e.Sheets[e.SheetNames[i]],0,n),Um(r,10),r.end()}function qm(e,t,n){Um(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,i=Rl(r?15+n.length:16+2*n.length);return i.write_shift(2,20*(e.sz||12)),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),i}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function Ym(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&Um(e,125,function(e,t){var n=Rl(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(tg(r,t),r))}))}}function Km(e,t,n,r,i){var a=16+rg(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)Um(e,6,Fp(t,n,r,0,a));else switch(t.t){case"d":case"n":Um(e,515,function(e,t,n,r){var i=Rl(14);return Yh(e,t,r,i),Su(n,i),i}(n,r,"d"==t.t?xs(Ts(t.v)):t.v,a));break;case"b":case"e":Um(e,517,function(e,t,n,r,i,a){var o=Rl(8);return Yh(e,t,r,o),Dh(n,a,o),o}(n,r,t.v,a,0,t.t));break;case"s":case"str":i.bookSST?Um(e,253,function(e,t,n,r){var i=Rl(10);return Yh(e,t,r,i),i.write_shift(4,n),i}(n,r,eg(i.Strings,t.v,i.revStrings),a)):Um(e,516,function(e,t,n,r,i){var a=!i||8==i.biff,o=Rl(+a+8+(1+a)*n.length);return Yh(e,t,r,o),o.write_shift(2,n.length),a&&o.write_shift(1,1),o.write_shift((1+a)*n.length,n,a?"utf16le":"sbcs"),o}(n,r,(t.v||"").slice(0,255),a,i));break;default:Um(e,513,Yh(n,r,a))}else Um(e,513,Yh(n,r,a))}function $m(e,t,n){var r,i,a,o=Nl(),s=n.SheetNames[e],c=n.Sheets[s]||{},l=(n||{}).Workbook||{},u=(l.Sheets||[])[e]||{},h=Array.isArray(c),f=8==t.biff,d="",p=[],g=Zl(c["!ref"]||"A1"),m=f?65536:16384;if(g.e.c>255||g.e.r>=m){if(t.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:IV16384");g.e.c=Math.min(g.e.c,255),g.e.r=Math.min(g.e.c,m-1)}Um(o,2057,of(0,16,t)),Um(o,13,Th(1)),Um(o,12,Th(100)),Um(o,15,Bh(!0)),Um(o,17,Bh(!1)),Um(o,16,Su(.001)),Um(o,95,Bh(!0)),Um(o,42,Bh(!1)),Um(o,43,Bh(!1)),Um(o,130,Th(1)),Um(o,128,(i=[0,0],(a=Rl(8)).write_shift(4,0),a.write_shift(2,i[0]?i[0]+1:0),a.write_shift(2,i[1]?i[1]+1:0),a)),Um(o,131,Bh(!1)),Um(o,132,Bh(!1)),f&&Ym(o,c["!cols"]),Um(o,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=Rl(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(g,t)),f&&(c["!links"]=[]);for(var v=g.s.r;v<=g.e.r;++v){d=Wl(v);for(var y=g.s.c;y<=g.e.c;++y){v===g.s.r&&(p[y]=Yl(y)),r=p[y]+d;var A=h?(c[v]||[])[y]:c[r];A&&(Km(o,A,v,y,t),f&&A.l&&c["!links"].push([r,A.l]))}}var b=u.CodeName||u.name||s;return f&&Um(o,574,function(e){var t=Rl(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((l.Views||[])[0])),f&&(c["!merges"]||[]).length&&Um(o,229,function(e){var t=Rl(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)Xh(e[n],t);return t}(c["!merges"])),f&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];Um(e,440,wf(r)),r[1].Tooltip&&Um(e,2048,xf(r))}delete t["!links"]}(o,c),Um(o,442,Fh(b)),f&&function(e,t){var n=Rl(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),Um(e,2151,n),(n=Rl(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),Xh(Zl(t["!ref"]||"A1"),n),n.write_shift(4,4),Um(e,2152,n)}(o,c),Um(o,10),o.end()}function Jm(e,t,n){var r,i=Nl(),a=(e||{}).Workbook||{},o=a.Sheets||[],s=a.WBProps||{},c=8==n.biff,l=5==n.biff;Um(i,2057,of(0,5,n)),"xla"==n.bookType&&Um(i,135),Um(i,225,c?Th(1200):null),Um(i,193,function(e,t){t||(t=Rl(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}(2)),l&&Um(i,191),l&&Um(i,192),Um(i,226),Um(i,92,function(e,t){var n=!t||8==t.biff,r=Rl(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),Um(i,66,Th(c?1200:1252)),c&&Um(i,353,Th(0)),c&&Um(i,448),Um(i,317,function(e){for(var t=Rl(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),c&&e.vbaraw&&Um(i,211),c&&e.vbaraw&&Um(i,442,Fh(s.CodeName||"ThisWorkbook")),Um(i,156,Th(17)),Um(i,25,Bh(!1)),Um(i,18,Bh(!1)),Um(i,19,Th(0)),c&&Um(i,431,Bh(!1)),c&&Um(i,444,Th(0)),Um(i,61,((r=Rl(18)).write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r)),Um(i,64,Bh(!1)),Um(i,141,Th(0)),Um(i,34,Bh("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&gc(e.Workbook.WBProps.date1904)?"true":"false"}(e))),Um(i,14,Bh(!0)),c&&Um(i,439,Bh(!1)),Um(i,218,Th(0)),qm(i,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&Um(e,1054,lf(i,t[i],n))}))}(i,e.SSF,n),function(e,t){for(var n=0;n<16;++n)Um(e,224,ff({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){Um(e,224,ff(n,0,t))}))}(i,n),c&&Um(i,352,Bh(!1));var u=i.end(),h=Nl();c&&Um(h,140,function(e){return e||(e=Rl(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),c&&n.Strings&&function(e,t,n){var r=(n||[]).length||0;if(r<=8224)return Um(e,t,n,r);var i=t;if(!isNaN(i)){for(var a=n.parts||[],o=0,s=0,c=0;c+(a[o]||8224)<=8224;)c+=a[o]||8224,o++;var l=e.next(4);for(l.write_shift(2,i),l.write_shift(2,c),e.push(n.slice(s,s+c)),s+=c;s<r;){for((l=e.next(4)).write_shift(2,60),c=0;c+(a[o]||8224)<=8224;)c+=a[o]||8224,o++;l.write_shift(2,c),e.push(n.slice(s,s+c)),s+=c}}}(h,252,function(e){var t=Rl(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],r=0;r<e.length;++r)n[r]=Qh(e[r]);var i=vo([t].concat(n));return i.parts=[t.length].concat(n.map((function(e){return e.length}))),i}(n.Strings)),Um(h,10);var f=h.end(),d=Nl(),p=0,g=0;for(g=0;g<e.SheetNames.length;++g)p+=(c?12:11)+(c?2:1)*e.SheetNames[g].length;var m=u.length+p+f.length;for(g=0;g<e.SheetNames.length;++g)Um(d,133,sf({pos:m,hs:(o[g]||{}).Hidden||0,dt:0,name:e.SheetNames[g]},n)),m+=t[g].length;var v=d.end();if(p!=v.length)throw new Error("BS8 "+p+" != "+v.length);var y=[];return u.length&&y.push(u),v.length&&y.push(v),f.length&&y.push(f),vo(y)}function Xm(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];r&&r["!ref"]&&Jl(r["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error}var i=t||{};switch(i.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=Ds(Bo)),e&&e.SSF&&(us(),ls(e.SSF),n.revssf=bs(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Rv(n),n.cellXfs=[],rg(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=$m(i,n,e);return r.unshift(Jm(e,r,n)),vo(r)}(e,t);case 4:case 3:case 2:return Wm(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Zm(e,t){var n=t||{},r=n.dense?[]:{},i=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=e.match(/<\/table/i),o=i.index,s=a&&a.index||e.length,c=js(e.slice(o,s),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,u=0,h=0,f=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(o=0;o<c.length;++o){var g=c[o].trim(),m=g.slice(0,3).toLowerCase();if("<tr"!=m){if("<td"==m||"<th"==m){var v=g.split(/<\/t[dh]>/i);for(s=0;s<v.length;++s){var y=v[s].trim();if(y.match(/<t[dh]/i)){for(var A=y,b=0;"<"==A.charAt(0)&&(b=A.indexOf(">"))>-1;)A=A.slice(b+1);for(var w=0;w<p.length;++w){var x=p[w];x.s.c==u&&x.s.r<l&&l<=x.e.r&&(u=x.e.c+1,w=-1)}var C=rc(y.slice(0,y.indexOf(">")));f=C.colspan?+C.colspan:1,((h=+C.rowspan)>1||f>1)&&p.push({s:{r:l,c:u},e:{r:l+(h||1)-1,c:u+f-1}});var _=C.t||C["data-t"]||"";if(A.length)if(A=Cc(A),d.s.r>l&&(d.s.r=l),d.e.r<l&&(d.e.r=l),d.s.c>u&&(d.s.c=u),d.e.c<u&&(d.e.c=u),A.length){var I={t:"s",v:A};n.raw||!A.trim().length||"s"==_||("TRUE"===A?I={t:"b",v:!0}:"FALSE"===A?I={t:"b",v:!1}:isNaN(Ls(A))?isNaN(Rs(A).getDate())||(I={t:"d",v:Ts(A)},n.cellDates||(I={t:"n",v:xs(I.v)}),I.z=n.dateNF||Bo[14]):I={t:"n",v:Ls(A)}),n.dense?(r[l]||(r[l]=[]),r[l][u]=I):r[$l({r:l,c:u})]=I,u+=f}else u+=f;else u+=f}}}}else{if(++l,n.sheetRows&&n.sheetRows<=l){--l;break}u=0}}return r["!ref"]=Xl(d),p.length&&(r["!merges"]=p),r}function ev(e,t,n,r){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,c=0,l=0;l<i.length;++l)if(!(i[l].s.r>n||i[l].s.c>o||i[l].e.r<n||i[l].e.c<o)){if(i[l].s.r<n||i[l].s.c<o){s=-1;break}s=i[l].e.r-i[l].s.r+1,c=i[l].e.c-i[l].s.c+1;break}if(!(s<0)){var u=$l({r:n,c:o}),h=r.dense?(e[n]||[])[o]:e[u],f=h&&null!=h.v&&(h.h||dc(h.w||(tu(h),h.w)||""))||"",d={};s>1&&(d.rowspan=s),c>1&&(d.colspan=c),r.editable?f='<span contenteditable="true">'+f+"</span>":h&&(d["data-t"]=h&&h.t||"z",null!=h.v&&(d["data-v"]=h.v),null!=h.z&&(d["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(f='<a href="'+h.l.Target+'">'+f+"</a>")),d.id=(r.id||"sjs")+"-"+u,a.push(Tc("td",f,d))}}return"<tr>"+a.join("")+"</tr>"}var tv={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function nv(e,t){var n,r,i,a,o,s,c,l=t||{},u=Dc(e),h=[],f={name:""},d="",p=0,g={},m=[],v=l.dense?[]:{},y={value:""},A="",b=0,w=[],x=-1,C=-1,_={s:{r:1e6,c:1e7},e:{r:0,c:0}},I=0,E={},k=[],S={},B=[],M=1,T=1,O=[],D={Names:[]},P={},L=["",""],Q=[],R={},j="",N=0,F=!1,z=!1,H=0;for(Pc.lastIndex=0,u=u.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");o=Pc.exec(u);)switch(o[3]=o[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===o[1]?(_.e.c>=_.s.c&&_.e.r>=_.s.r?v["!ref"]=Xl(_):v["!ref"]="A1:A1",l.sheetRows>0&&l.sheetRows<=_.e.r&&(v["!fullref"]=v["!ref"],_.e.r=l.sheetRows-1,v["!ref"]=Xl(_)),k.length&&(v["!merges"]=k),B.length&&(v["!rows"]=B),i.name=i["名称"]||i.name,"undefined"!=typeof JSON&&JSON.stringify(i),m.push(i.name),g[i.name]=v,z=!1):"/"!==o[0].charAt(o[0].length-2)&&(i=rc(o[0],!1),x=C=-1,_.s.r=_.s.c=1e7,_.e.r=_.e.c=0,v=l.dense?[]:{},k=[],B=[],z=!0);break;case"table-row-group":"/"===o[1]?--I:++I;break;case"table-row":case"行":if("/"===o[1]){x+=M,M=1;break}if((a=rc(o[0],!1))["行号"]?x=a["行号"]-1:-1==x&&(x=0),(M=+a["number-rows-repeated"]||1)<10)for(H=0;H<M;++H)I>0&&(B[x+H]={level:I});C=-1;break;case"covered-table-cell":"/"!==o[1]&&++C,l.sheetStubs&&(l.dense?(v[x]||(v[x]=[]),v[x][C]={t:"z"}):v[$l({r:x,c:C})]={t:"z"}),A="",w=[];break;case"table-cell":case"数据":if("/"===o[0].charAt(o[0].length-2))++C,y=rc(o[0],!1),T=parseInt(y["number-columns-repeated"]||"1",10),s={t:"z",v:null},y.formula&&0!=l.cellFormula&&(s.f=Kp(sc(y.formula))),"string"==(y["数据类型"]||y["value-type"])&&(s.t="s",s.v=sc(y["string-value"]||""),l.dense?(v[x]||(v[x]=[]),v[x][C]=s):v[$l({r:x,c:C})]=s),C+=T-1;else if("/"!==o[1]){A="",b=0,w=[],T=1;var U=M?x+M-1:x;if(++C>_.e.c&&(_.e.c=C),C<_.s.c&&(_.s.c=C),x<_.s.r&&(_.s.r=x),U>_.e.r&&(_.e.r=U),Q=[],R={},s={t:(y=rc(o[0],!1))["数据类型"]||y["value-type"],v:null},l.cellFormula)if(y.formula&&(y.formula=sc(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(S={s:{r:x,c:C},e:{r:x+(parseInt(y["number-matrix-rows-spanned"],10)||0)-1,c:C+(parseInt(y["number-matrix-columns-spanned"],10)||0)-1}},s.F=Xl(S),O.push([S,s.F])),y.formula)s.f=Kp(y.formula);else for(H=0;H<O.length;++H)x>=O[H][0].s.r&&x<=O[H][0].e.r&&C>=O[H][0].s.c&&C<=O[H][0].e.c&&(s.F=O[H][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(S={s:{r:x,c:C},e:{r:x+(parseInt(y["number-rows-spanned"],10)||0)-1,c:C+(parseInt(y["number-columns-spanned"],10)||0)-1}},k.push(S)),y["number-columns-repeated"]&&(T=parseInt(y["number-columns-repeated"],10)),s.t){case"boolean":s.t="b",s.v=gc(y["boolean-value"]);break;case"float":case"percentage":case"currency":s.t="n",s.v=parseFloat(y.value);break;case"date":s.t="d",s.v=Ts(y["date-value"]),l.cellDates||(s.t="n",s.v=xs(s.v)),s.z="m/d/yy";break;case"time":s.t="n",s.v=ks(y["time-value"])/86400,l.cellDates&&(s.t="d",s.v=Es(s.v)),s.z="HH:MM:SS";break;case"number":s.t="n",s.v=parseFloat(y["数据数值"]);break;default:if("string"!==s.t&&"text"!==s.t&&s.t)throw new Error("Unsupported value type "+s.t);s.t="s",null!=y["string-value"]&&(A=sc(y["string-value"]),w=[])}}else{if(F=!1,"s"===s.t&&(s.v=A||"",w.length&&(s.R=w),F=0==b),P.Target&&(s.l=P),Q.length>0&&(s.c=Q,Q=[]),A&&!1!==l.cellText&&(s.w=A),F&&(s.t="z",delete s.v),(!F||l.sheetStubs)&&!(l.sheetRows&&l.sheetRows<=x))for(var G=0;G<M;++G){if(T=parseInt(y["number-columns-repeated"]||"1",10),l.dense)for(v[x+G]||(v[x+G]=[]),v[x+G][C]=0==G?s:Ds(s);--T>0;)v[x+G][C+T]=Ds(s);else for(v[$l({r:x+G,c:C})]=s;--T>0;)v[$l({r:x+G,c:C+T})]=Ds(s);_.e.c<=C&&(_.e.c=C)}C+=(T=parseInt(y["number-columns-repeated"]||"1",10))-1,T=0,s={},A="",w=[]}P={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===o[1]){if((n=h.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&h.push([o[3],!0]);break;case"annotation":if("/"===o[1]){if((n=h.pop())[0]!==o[3])throw"Bad state: "+n;R.t=A,w.length&&(R.R=w),R.a=j,Q.push(R)}else"/"!==o[0].charAt(o[0].length-2)&&h.push([o[3],!1]);j="",N=0,A="",b=0,w=[];break;case"creator":"/"===o[1]?j=u.slice(N,o.index):N=o.index+o[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===o[1]){if((n=h.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&h.push([o[3],!1]);A="",b=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===o[1]){if(E[f.name]=d,(n=h.pop())[0]!==o[3])throw"Bad state: "+n}else"/"!==o[0].charAt(o[0].length-2)&&(d="",f=rc(o[0],!1),h.push([o[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":r=rc(o[0],!1),d+=tv[o[3]]["long"===r.style?1:0]}break;case"text":if("/>"===o[0].slice(-2))break;if("/"===o[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":d+=u.slice(p,o.index)}else p=o.index+o[0].length;break;case"named-range":L=$p((r=rc(o[0],!1))["cell-range-address"]);var V={Name:r.name,Ref:L[0]+"!"+L[1]};z&&(V.Sheet=m.length),D.Names.push(V);break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==o[1]||y&&y["string-value"])rc(o[0],!1),b=o.index+o[0].length;else{var W=(c=void 0,c=u.slice(b,o.index).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),[sc(c.replace(/<[^>]*>/g,""))]);A=(A.length>0?A+"\n":"")+W[0]}break;case"database-range":if("/"===o[1])break;try{g[(L=$p(rc(o[0])["target-range-address"]))[0]]["!autofilter"]={ref:L[1]}}catch(e){}break;case"a":if("/"!==o[1]){if(!(P=rc(o[0],!1)).href)break;P.Target=sc(P.href),delete P.href,"#"==P.Target.charAt(0)&&P.Target.indexOf(".")>-1?(L=$p(P.Target.slice(1)),P.Target="#"+L[0]+"!"+L[1]):P.Target.match(/^\.\.[\\\/]/)&&(P.Target=P.Target.slice(3))}break;default:switch(o[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(l.WTF)throw new Error(o)}}var q={Sheets:g,SheetNames:m,Workbook:D};return l.bookSheets&&delete q.Sheets,q}function rv(e,t){t=t||{},zs(e,"META-INF/manifest.xml")&&function(e,t){for(var n,r,i=Dc(e);n=Pc.exec(i);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(r=rc(n[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==r.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}(Us(e,"META-INF/manifest.xml"),t);var n=Gs(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=nv(bc(n),t);return zs(e,"meta.xml")&&(r.Props=Zu(Us(e,"meta.xml"))),r}function iv(e,t){return nv(e,t)}var av=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Mc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Js+t}}(),ov=function(){var e="          <table:table-cell />\n",t=function(t,n,r){var i=[];i.push('      <table:table table:name="'+uc(n.SheetNames[r])+'" table:style-name="ta1">\n');var a=0,o=0,s=Jl(t["!ref"]||"A1"),c=t["!merges"]||[],l=0,u=Array.isArray(t);if(t["!cols"])for(o=0;o<=s.e.c;++o)i.push("        <table:table-column"+(t["!cols"][o]?' table:style-name="co'+t["!cols"][o].ods+'"':"")+"></table:table-column>\n");var h="",f=t["!rows"]||[];for(a=0;a<s.s.r;++a)h=f[a]?' table:style-name="ro'+f[a].ods+'"':"",i.push("        <table:table-row"+h+"></table:table-row>\n");for(;a<=s.e.r;++a){for(h=f[a]?' table:style-name="ro'+f[a].ods+'"':"",i.push("        <table:table-row"+h+">\n"),o=0;o<s.s.c;++o)i.push(e);for(;o<=s.e.c;++o){var d=!1,p={},g="";for(l=0;l!=c.length;++l)if(!(c[l].s.c>o||c[l].s.r>a||c[l].e.c<o||c[l].e.r<a)){c[l].s.c==o&&c[l].s.r==a||(d=!0),p["table:number-columns-spanned"]=c[l].e.c-c[l].s.c+1,p["table:number-rows-spanned"]=c[l].e.r-c[l].s.r+1;break}if(d)i.push("          <table:covered-table-cell/>\n");else{var m=$l({r:a,c:o}),v=u?(t[a]||[])[o]:t[m];if(v&&v.f&&(p["table:formula"]=uc(("of:="+v.f.replace(op,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),v.F&&v.F.slice(0,m.length)==m)){var y=Jl(v.F);p["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,p["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(v){switch(v.t){case"b":g=v.v?"TRUE":"FALSE",p["office:value-type"]="boolean",p["office:boolean-value"]=v.v?"true":"false";break;case"n":g=v.w||String(v.v||0),p["office:value-type"]="float",p["office:value"]=v.v||0;break;case"s":case"str":g=null==v.v?"":v.v,p["office:value-type"]="string";break;case"d":g=v.w||Ts(v.v).toISOString(),p["office:value-type"]="date",p["office:date-value"]=Ts(v.v).toISOString(),p["table:style-name"]="ce1";break;default:i.push(e);continue}var A=uc(g).replace(/  +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var b=v.l.Target;"#"==(b="#"==b.charAt(0)?"#"+b.slice(1).replace(/\./,"!"):b).charAt(0)||b.match(/^\w+:/)||(b="../"+b),A=Tc("text:a",A,{"xlink:href":b.replace(/&/g,"&amp;")})}i.push("          "+Tc("table:table-cell",Tc("text:p",A,{}),p)+"\n")}else i.push(e)}}i.push("        </table:table-row>\n")}return i.push("      </table:table>\n"),i.join("")};return function(e,n){var r=[Js],i=Mc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),a=Mc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("<office:document"+i+a+">\n"),r.push($u().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+i+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var i=t["!cols"][r];if(null==i.width&&null==i.wpx&&null==i.wch)continue;gd(i),i.ods=n;var a=t["!cols"][r].wpx+"px";e.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+a+'"/>\n'),e.push("  </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var i=t["!rows"][n].hpx+"px";e.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+i+'"/>\n'),e.push("  </style:style>\n"),++r}})),e.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push("  <office:body>\n"),r.push("    <office:spreadsheet>\n");for(var o=0;o!=e.SheetNames.length;++o)r.push(t(e.Sheets[e.SheetNames[o]],e,o));return r.push("    </office:spreadsheet>\n"),r.push("  </office:body>\n"),"fods"==n.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function sv(e,t){if("fods"==t.bookType)return ov(e,t);var n=Ys(),r="",i=[],a=[];return qs(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),qs(n,r="content.xml",ov(e,t)),i.push([r,"text/xml"]),a.push([r,"ContentFile"]),qs(n,r="styles.xml",av(e,t)),i.push([r,"text/xml"]),a.push([r,"StylesFile"]),qs(n,r="meta.xml",Js+$u()),i.push([r,"text/xml"]),a.push([r,"MetadataFile"]),qs(n,r="manifest.rdf",function(e){var t=[Js];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(Ku(e[n][0],e[n][1])),t.push(['  <rdf:Description rdf:about="">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e[n][0]+'"/>\n',"  </rdf:Description>\n"].join(""));return t.push(Ku("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(a)),i.push([r,"application/rdf+xml"]),qs(n,r="META-INF/manifest.xml",function(e){var t=[Js];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(i)),n}
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function cv(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function lv(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):bc(go(e))}function uv(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):fo(wc(e))}function hv(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function fv(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function dv(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function pv(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function gv(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function mv(e){for(var t=[],n=[0];n[0]<e.length;){var r,i=n[0],a=dv(e,n),o=7&a,s=0;if(0==(a=Math.floor(a/8)))break;switch(o){case 0:for(var c=n[0];e[n[0]++]>=128;);r=e.slice(c,n[0]);break;case 5:s=4,r=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,r=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=dv(e,n),r=e.slice(n[0],n[0]+s),n[0]+=s;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(i))}var l={data:r,type:o};null==t[a]?t[a]=[l]:t[a].push(l)}return t}function vv(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(pv(8*n+e.type)),2==e.type&&t.push(pv(e.data.length)),t.push(e.data))}))})),hv(t)}function yv(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Av(e){for(var t,n=[],r=[0];r[0]<e.length;){var i=dv(e,r),a=mv(e.slice(r[0],r[0]+i));r[0]+=i;var o={id:gv(a[1][0].data),messages:[]};a[2].forEach((function(t){var n=mv(t.data),i=gv(n[3][0].data);o.messages.push({meta:n,data:e.slice(r[0],r[0]+i)}),r[0]+=i})),(null==(t=a[3])?void 0:t[0])&&(o.merge=gv(a[3][0].data)>>>0>0),n.push(o)}return n}function bv(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:pv(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:pv(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:pv(e.data.length)}],n[2].push({data:vv(e.meta),type:2})}));var i=vv(n);t.push(pv(i.length)),t.push(i),r.forEach((function(e){return t.push(e)}))})),hv(t)}function wv(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=dv(t,n),i=[];n[0]<t.length;){var a=3&t[n[0]];if(0!=a){var o=0,s=0;if(1==a?(s=4+(t[n[0]]>>2&7),o=(224&t[n[0]++])<<3,o|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==a?(o=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(o=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[hv(i)],0==o)throw new Error("Invalid offset 0");if(o>i[0].length)throw new Error("Invalid offset beyond length");if(s>=o)for(i.push(i[0].slice(-o)),s-=o;s>=i[i.length-1].length;)i.push(i[i.length-1]),s-=i[i.length-1].length;i.push(i[0].slice(-o,-o+s))}else{var c=t[n[0]++]>>2;if(c<60)++c;else{var l=c-59;c=t[n[0]],l>1&&(c|=t[n[0]+1]<<8),l>2&&(c|=t[n[0]+2]<<16),l>3&&(c|=t[n[0]+3]<<24),c>>>=0,c++,n[0]+=l}i.push(t.slice(n[0],n[0]+c)),n[0]+=c}}var u=hv(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function xv(e){for(var t=[],n=0;n<e.length;){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(wv(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw new Error("data is not a valid framed stream!");return hv(t)}function Cv(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),i=new Uint8Array(4);t.push(i);var a=pv(r),o=a.length;t.push(a),r<=60?(o++,t.push(new Uint8Array([r-1<<2]))):r<=256?(o+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(o+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(o+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(o+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),o+=r,i[0]=0,i[1]=255&o,i[2]=o>>8&255,i[3]=o>>16&255,n+=r}return hv(t)}function _v(e,t,n){var r,i=cv(e),a=i.getUint32(8,!0),o=12,s=-1,c=-1,l=NaN,u=NaN,h=new Date(2001,0,1);switch(1&a&&(l=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}(e,o),o+=16),2&a&&(u=i.getFloat64(o,!0),o+=8),4&a&&(h.setTime(h.getTime()+1e3*i.getFloat64(o,!0)),o+=8),8&a&&(c=i.getUint32(o,!0),o+=4),16&a&&(s=i.getUint32(o,!0),o+=4),e[1]){case 0:break;case 2:case 10:r={t:"n",v:l};break;case 3:r={t:"s",v:t[c]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)));r={t:"s",v:n[s]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)))}return r}function Iv(e,t){var n=new Uint8Array(32),r=cv(n),i=12,a=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=255&i;e[t+15]|=n>=0?0:128}(n,i,e.v),a|=1,i+=16;break;case"b":n[1]=6,r.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,a,!0),n.slice(0,i)}function Ev(e,t){var n=new Uint8Array(32),r=cv(n),i=12,a=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":n[2]=6,r.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,a,!0),n.slice(0,i)}function kv(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,n,r){var i,a=cv(e),o=a.getUint32(4,!0),s=(r>1?12:8)+4*fv(o&(r>1?3470:398)),c=-1,l=-1,u=NaN,h=new Date(2001,0,1);switch(512&o&&(c=a.getUint32(s,!0),s+=4),s+=4*fv(o&(r>1?12288:4096)),16&o&&(l=a.getUint32(s,!0),s+=4),32&o&&(u=a.getFloat64(s,!0),s+=8),64&o&&(h.setTime(h.getTime()+1e3*a.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[l]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(c>-1)i={t:"s",v:n[c]};else if(l>-1)i={t:"s",v:t[l]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}(e,t,n,e[0]);case 5:return _v(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Sv(e){return dv(mv(e)[1][0].data)}function Bv(e,t){var n=mv(t.data),r=gv(n[1][0].data),i=n[3],a=[];return(i||[]).forEach((function(t){var n=mv(t.data),i=gv(n[1][0].data)>>>0;switch(r){case 1:a[i]=lv(n[3][0].data);break;case 8:var o=mv(e[Sv(n[9][0].data)][0].data),s=e[Sv(o[1][0].data)][0],c=gv(s.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var l=mv(s.data);a[i]=l[3].map((function(e){return lv(e.data)})).join("")}})),a}function Mv(e,t){var n,r=mv(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?gv(r[7][0].data)>>>0>0?1:0:-1,a=yv(r[5],(function(e){return function(e,t){var n,r,i,a,o,s,c,l,u,h,f,d,p,g,m,v,y=mv(e),A=gv(y[1][0].data)>>>0,b=gv(y[2][0].data)>>>0,w=(null==(r=null==(n=y[8])?void 0:n[0])?void 0:r.data)&&gv(y[8][0].data)>0||!1;if((null==(a=null==(i=y[7])?void 0:i[0])?void 0:a.data)&&0!=t)m=null==(s=null==(o=y[7])?void 0:o[0])?void 0:s.data,v=null==(l=null==(c=y[6])?void 0:c[0])?void 0:l.data;else{if(!(null==(h=null==(u=y[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");m=null==(d=null==(f=y[4])?void 0:f[0])?void 0:d.data,v=null==(g=null==(p=y[3])?void 0:p[0])?void 0:g.data}for(var x=w?4:1,C=cv(m),_=[],I=0;I<m.length/2;++I){var E=C.getUint16(2*I,!0);E<65535&&_.push([I,E])}if(_.length!=b)throw"Expected ".concat(b," cells, found ").concat(_.length);var k=[];for(I=0;I<_.length-1;++I)k[_[I][0]]=v.subarray(_[I][1]*x,_[I+1][1]*x);return _.length>=1&&(k[_[_.length-1][0]]=v.subarray(_[_.length-1][1]*x)),{R:A,cells:k}}(e,i)}));return{nrows:gv(r[4][0].data)>>>0,data:a.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function Tv(e,t){var n={"!ref":"A1"},r=e[Sv(mv(t.data)[2][0].data)],i=gv(r[0].meta[1][0].data);if(6001!=i)throw new Error("6000 unexpected reference to ".concat(i));return function(e,t,n){var r,i=mv(t.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(gv(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(gv(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=Xl(a);var o=mv(i[4][0].data),s=Bv(e,e[Sv(o[4][0].data)][0]),c=(null==(r=o[17])?void 0:r[0])?Bv(e,e[Sv(o[17][0].data)][0]):[],l=mv(o[3][0].data),u=0;l[1].forEach((function(t){var r=mv(t.data),i=e[Sv(r[2][0].data)][0],a=gv(i.meta[1][0].data);if(6002!=a)throw new Error("6001 unexpected reference to ".concat(a));var o=Mv(0,i);o.data.forEach((function(e,t){e.forEach((function(e,r){var i=$l({r:u+t,c:r}),a=kv(e,s,c);a&&(n[i]=a)}))})),u+=o.nrows}))}(e,r[0],n),n}function Ov(e,t){var n={SheetNames:[],Sheets:{}};if(yv(mv(t.data)[1],Sv).forEach((function(t){e[t].forEach((function(t){if(2==gv(t.meta[1][0].data)){var r=function(e,t){var n,r=mv(t.data),i={name:(null==(n=r[1])?void 0:n[0])?lv(r[1][0].data):"",sheets:[]};return yv(r[2],Sv).forEach((function(t){e[t].forEach((function(t){6e3==gv(t.meta[1][0].data)&&i.sheets.push(Tv(e,t))}))})),i}(e,t);r.sheets.forEach((function(e,t){ry(n,e,0==t?r.name:r.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function Dv(e){var t,n,r,i,a={},o=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=xv(e.content)}catch(e){return}try{n=Av(t)}catch(e){return}n.forEach((function(e){a[e.id]=e.messages,o.push(e.id)}))}})),!o.length)throw new Error("File has no messages");var s=(null==(i=null==(r=null==(n=null==(t=null==a?void 0:a[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==gv(a[1][0].meta[1][0].data)&&a[1][0];if(s||o.forEach((function(e){a[e].forEach((function(e){if(1==gv(e.meta[1][0].data)>>>0){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return Ov(a,s)}function Pv(e,t,n){var r,i,a,o;if(!(null==(r=e[6])?void 0:r[0])||!(null==(i=e[7])?void 0:i[0]))throw"Mutation only works on post-BNC storages!";if((null==(o=null==(a=e[8])?void 0:a[0])?void 0:o.data)&&gv(e[8][0].data)>0)throw"Math only works with normal offsets";for(var s=0,c=cv(e[7][0].data),l=0,u=[],h=cv(e[4][0].data),f=0,d=[],p=0;p<t.length;++p)if(null!=t[p]){var g,m;switch(c.setUint16(2*p,l,!0),h.setUint16(2*p,f,!0),typeof t[p]){case"string":g=Iv({t:"s",v:t[p]},n),m=Ev({t:"s",v:t[p]},n);break;case"number":g=Iv({t:"n",v:t[p]},n),m=Ev({t:"n",v:t[p]},n);break;case"boolean":g=Iv({t:"b",v:t[p]},n),m=Ev({t:"b",v:t[p]},n);break;default:throw new Error("Unsupported value "+t[p])}u.push(g),l+=g.length,d.push(m),f+=m.length,++s}else c.setUint16(2*p,65535,!0),h.setUint16(2*p,65535);for(e[2][0].data=pv(s);p<e[7][0].data.length/2;++p)c.setUint16(2*p,65535,!0),h.setUint16(2*p,65535,!0);return e[6][0].data=hv(u),e[3][0].data=hv(d),s}function Lv(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function Qv(e){Lv([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Rv(e){Lv([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function jv(e,t,n,r,i,a,o,s,c,l,u,h){try{a[r]=Wu(Gs(e,n,!0),t);var f,d=Us(e,t);switch(s){case"sheet":f=nm(d,t,i,c,a[r],l,u,h);break;case"chart":if(!(f=rm(d,t,i,c,a[r],l))||!f["!drawel"])break;var p=$s(f["!drawel"].Target,t),g=Vu(p),m=function(e,t){if(!e)return"??";var n=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}(Gs(e,p,!0),Wu(Gs(e,g,!0),p)),v=$s(m,p),y=Vu(v);f=Ng(Gs(e,v,!0),0,0,Wu(Gs(e,y,!0),v),0,f);break;case"macro":b=t,a[r],b.slice(-4),f={"!type":"macro"};break;case"dialog":f=function(e,t){return t.slice(-4),{"!type":"dialog"}}(0,t,a[r]);break;default:throw new Error("Unrecognized sheet type "+s)}o[r]=f;var A=[];a&&a[r]&&vs(a[r]).forEach((function(n){var i="";if(a[r][n].Type==Gu.CMNT){i=$s(a[r][n].Target,t);var o=om(Us(e,i,!0),i,c);if(!o||!o.length)return;Zd(f,o,!1)}a[r][n].Type==Gu.TCMNT&&(i=$s(a[r][n].Target,t),A=A.concat(function(e,t){var n=[],r=!1,i={},a=0;return e.replace(ec,(function(o,s){var c=rc(o);switch(ic(c[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":i={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":null!=i.t&&n.push(i);break;case"<text>":case"<text":a=s+o.length;break;case"</text>":i.t=e.slice(a,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":r=!0;break;case"</mentions>":case"</ext>":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return o})),n}(Us(e,i,!0),c)))})),A&&A.length&&Zd(f,A,!0,c.people||[])}catch(e){if(c.WTF)throw e}var b}function Nv(e){return"/"==e.charAt(0)?e.slice(1):e}function Fv(e,t){if(us(),Qv(t=t||{}),zs(e,"META-INF/manifest.xml"))return rv(e,t);if(zs(e,"objectdata.xml"))return rv(e,t);if(zs(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(void 0!==Dv){if(e.FileIndex)return Dv(e);var n=ps.utils.cfb_new();return Ws(e).forEach((function(t){qs(n,t,Vs(e,t))})),Dv(n)}throw new Error("Unsupported NUMBERS file")}if(!zs(e,"[Content_Types].xml")){if(zs(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(zs(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,a=Ws(e),o=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var n={};if((e.match(ec)||[]).forEach((function(e){var r=rc(e);switch(r[0].replace(tc,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[r.Extension]=r.ContentType;break;case"<Override":void 0!==t[zu[r.ContentType]]&&t[zu[r.ContentType]].push(r.PartName)}})),t.xmlns!==jc)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}(Gs(e,"[Content_Types].xml")),s=!1;if(0===o.workbooks.length&&Us(e,i="xl/workbook.xml",!0)&&o.workbooks.push(i),0===o.workbooks.length){if(!Us(e,i="xl/workbook.bin",!0))throw new Error("Could not find workbook");o.workbooks.push(i),s=!0}"bin"==o.workbooks[0].slice(-3)&&(s=!0);var c={},l={};if(!t.bookSheets&&!t.bookProps){if(Jp=[],o.sst)try{Jp=am(Us(e,Nv(o.sst)),o.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&o.themes.length&&(c=function(e,t,n){return Vd(e,n)}(Gs(e,o.themes[0].replace(/^\//,""),!0)||"",o.themes[0],t)),o.style&&(l=im(Us(e,Nv(o.style)),o.style,c,t))}o.links.map((function(n){try{return Wu(Gs(e,Vu(Nv(n))),n),cm(Us(e,Nv(n)),0,n,t)}catch(e){}}));var u=tm(Us(e,Nv(o.workbooks[0])),o.workbooks[0],t),h={},f="";o.coreprops.length&&((f=Us(e,Nv(o.coreprops[0]),!0))&&(h=Zu(f)),0!==o.extprops.length&&(f=Us(e,Nv(o.extprops[0]),!0))&&function(e,t,n){var r={};t||(t={}),e=bc(e),nh.forEach((function(n){var i=(e.match(xc(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=sc(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var a=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));a&&a.length>0&&(r[n[1]]=a[1])}})),r.HeadingPairs&&r.TitlesOfParts&&ih(r.HeadingPairs,r.TitlesOfParts,t,n)}(f,h,t));var d={};t.bookSheets&&!t.bookProps||0!==o.custprops.length&&(f=Gs(e,Nv(o.custprops[0]),!0))&&(d=function(e,t){var n={},r="",i=e.match(oh);if(i)for(var a=0;a!=i.length;++a){var o=i[a],s=rc(o);switch(s[0]){case"<?xml":case"<Properties":break;case"<property":r=sc(s.name);break;case"</property>":r=null;break;default:if(0===o.indexOf("<vt:")){var c=o.split(">"),l=c[0].slice(4),u=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":n[r]=sc(u);break;case"bool":n[r]=gc(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=Ts(u);break;default:if("/"==l.slice(-1))break;t.WTF}}else if("</"===o.slice(0,2));else if(t.WTF)throw new Error(o)}}return n}(f,t));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=d),t.bookSheets&&void 0!==r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var g={};t.bookDeps&&o.calcchain&&(g=sm(Us(e,Nv(o.calcchain)),o.calcchain));var m,v,y=0,A={},b=u.Sheets;h.Worksheets=b.length,h.SheetNames=[];for(var w=0;w!=b.length;++w)h.SheetNames[w]=b[w].name;var x=s?"bin":"xml",C=o.workbooks[0].lastIndexOf("/"),_=(o.workbooks[0].slice(0,C+1)+"_rels/"+o.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");zs(e,_)||(_="xl/_rels/workbook."+x+".rels");var I=Wu(Gs(e,_,!0),_.replace(/_rels.*/,"s5s"));(o.metadata||[]).length>=1&&(t.xlmeta=lm(Us(e,Nv(o.metadata[0])),o.metadata[0],t)),(o.people||[]).length>=1&&(t.people=function(e,t){var n=[],r=!1;return e.replace(ec,(function(e){var i=rc(e);switch(ic(i[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":n.push({name:i.displayname,id:i.id});break;case"<ext":r=!0;break;case"</ext>":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}(Us(e,Nv(o.people[0])),t)),I&&(I=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(n=e["!id"][t.id].Type,Gu.WS.indexOf(n)>-1?"sheet":n==Gu.CS?"chart":n==Gu.DS?"dialog":n==Gu.MS?"macro":n&&n.length?n:"sheet")];var n}))}catch(e){return null}return e&&0!==e.length?e:null}(I,u.Sheets));var E=Us(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(y=0;y!=h.Worksheets;++y){var k="sheet";if(I&&I[y]?(m="xl/"+I[y][1].replace(/[\/]?xl\//,""),zs(e,m)||(m=I[y][1]),zs(e,m)||(m=_.replace(/_rels\/.*$/,"")+I[y][1]),k=I[y][2]):m=(m="xl/worksheets/sheet"+(y+1-E)+"."+x).replace(/sheet0\./,"sheet."),v=m.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(y!=t.sheets)continue e;break;case"string":if(h.SheetNames[y].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var S=!1,B=0;B!=t.sheets.length;++B)"number"==typeof t.sheets[B]&&t.sheets[B]==y&&(S=1),"string"==typeof t.sheets[B]&&t.sheets[B].toLowerCase()==h.SheetNames[y].toLowerCase()&&(S=1);if(!S)continue e}}jv(e,m,v,h.SheetNames[y],y,A,r,k,t,u,c,l)}return p={Directory:o,Workbook:u,Props:h,Custprops:d,Deps:g,Sheets:r,SheetNames:h.SheetNames,Strings:Jp,Styles:l,Themes:c,SSF:Ds(Bo)},t&&t.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(o.vba.length>0?p.vbaraw=Us(e,Nv(o.vba[0]),!0):o.defaults&&"application/vnd.ms-office.vbaProject"===o.defaults.bin&&(p.vbaraw=Us(e,"xl/vbaProject.bin",!0))),p}function zv(e,t){var n,r,i=t||{},a="Workbook",o=ps.find(e,a);try{if(a="/!DataSpaces/Version",!(o=ps.find(e,a))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(n=o.content,(r={}).id=n.read_shift(0,"lpp4"),r.R=Yf(n,4),r.U=Yf(n,4),r.W=Yf(n,4),a="/!DataSpaces/DataSpaceMap",!(o=ps.find(e,a))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(Kf(e));return t}(o.content);if(1!==s.length||1!==s[0].comps.length||0!==s[0].comps[0].t||"StrongEncryptionDataSpace"!==s[0].name||"EncryptedPackage"!==s[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(o=ps.find(e,a))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(o.content);if(1!=c.length||"StrongEncryptionTransform"!=c[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(o=ps.find(e,a))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+a);$f(o.content)}catch(e){}if(a="/EncryptionInfo",!(o=ps.find(e,a))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=function(e){var t=Yf(e);switch(t.Minor){case 2:return[t.Minor,Zf(e)];case 3:return[t.Minor,ed()];case 4:return[t.Minor,td(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(o.content);if(a="/EncryptedPackage",!(o=ps.find(e,a))||!o.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==l[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(l[1],o.content,i.password||"",i);if(2==l[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(l[1],o.content,i.password||"",i);throw new Error("File is password-protected")}function Hv(e,t){return"ods"==t.bookType?sv(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length;var r=Jl(n["!ref"]);r.s.r=r.s.c=0,r.e.c>9&&(r.e.c=9),r.e.r>49&&(r.e.r=49);var i=Zv(n,{range:r,header:1}),a=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&a.push(e)}))}));var o={},s=[],c=ps.read(t.numbers,{type:"base64"});c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&Av(xv(t.content)).forEach((function(e){s.push(e.id),o[e.id]={deps:[],location:n,type:gv(e.messages[0].meta[1][0].data)}}))})),s.sort((function(e,t){return e-t}));var l=s.filter((function(e){return e>1})).map((function(e){return[e,pv(e)]}));c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&Av(xv(t.content)).forEach((function(e){e.messages.forEach((function(t){l.forEach((function(t){e.messages.some((function(e){return 11006!=gv(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])}))&&o[t[0]].deps.push(e.id)}))}))}))}));for(var u,h=ps.find(c,o[1].location),f=Av(xv(h.content)),d=0;d<f.length;++d){var p=f[d];1==p.id&&(u=p)}var g=Sv(mv(u.messages[0].data)[1][0].data);for(f=Av(xv((h=ps.find(c,o[g].location)).content)),d=0;d<f.length;++d)(p=f[d]).id==g&&(u=p);for(g=Sv(mv(u.messages[0].data)[2][0].data),f=Av(xv((h=ps.find(c,o[g].location)).content)),d=0;d<f.length;++d)(p=f[d]).id==g&&(u=p);for(g=Sv(mv(u.messages[0].data)[2][0].data),f=Av(xv((h=ps.find(c,o[g].location)).content)),d=0;d<f.length;++d)(p=f[d]).id==g&&(u=p);var m=mv(u.messages[0].data);m[6][0].data=pv(r.e.r+1),m[7][0].data=pv(r.e.c+1);for(var v=Sv(m[46][0].data),y=ps.find(c,o[v].location),A=Av(xv(y.content)),b=0;b<A.length&&A[b].id!=v;++b);if(A[b].id!=v)throw"Bad ColumnRowUIDMapArchive";var w=mv(A[b].messages[0].data);w[1]=[],w[2]=[],w[3]=[];for(var x=0;x<=r.e.c;++x){var C=[];C[1]=C[2]=[{type:0,data:pv(x+420690)}],w[1].push({type:2,data:vv(C)}),w[2].push({type:0,data:pv(x)}),w[3].push({type:0,data:pv(x)})}w[4]=[],w[5]=[],w[6]=[];for(var _=0;_<=r.e.r;++_)(C=[])[1]=C[2]=[{type:0,data:pv(_+726270)}],w[4].push({type:2,data:vv(C)}),w[5].push({type:0,data:pv(_)}),w[6].push({type:0,data:pv(_)});A[b].messages[0].data=vv(w),y.content=Cv(bv(A)),y.size=y.content.length,delete m[46];var I=mv(m[4][0].data);I[7][0].data=pv(r.e.r+1);var E=Sv(mv(I[1][0].data)[2][0].data);if((A=Av(xv((y=ps.find(c,o[E].location)).content)))[0].id!=E)throw"Bad HeaderStorageBucket";var k=mv(A[0].messages[0].data);for(_=0;_<i.length;++_){var S=mv(k[2][0].data);S[1][0].data=pv(_),S[4][0].data=pv(i[_].length),k[2][_]={type:k[2][0].type,data:vv(S)}}A[0].messages[0].data=vv(k),y.content=Cv(bv(A)),y.size=y.content.length;var B=Sv(I[2][0].data);if((A=Av(xv((y=ps.find(c,o[B].location)).content)))[0].id!=B)throw"Bad HeaderStorageBucket";for(k=mv(A[0].messages[0].data),x=0;x<=r.e.c;++x)(S=mv(k[2][0].data))[1][0].data=pv(x),S[4][0].data=pv(r.e.r+1),k[2][x]={type:k[2][0].type,data:vv(S)};A[0].messages[0].data=vv(k),y.content=Cv(bv(A)),y.size=y.content.length;var M=Sv(I[4][0].data);!function(){for(var e,t=ps.find(c,o[M].location),n=Av(xv(t.content)),r=0;r<n.length;++r){var i=n[r];i.id==M&&(e=i)}var s=mv(e.messages[0].data);s[3]=[];var l=[];a.forEach((function(e,t){l[1]=[{type:0,data:pv(t)}],l[2]=[{type:0,data:pv(1)}],l[3]=[{type:2,data:uv(e)}],s[3].push({type:2,data:vv(l)})})),e.messages[0].data=vv(s);var u=Cv(bv(n));t.content=u,t.size=t.content.length}();var T=mv(I[3][0].data),O=T[1][0];delete T[2];var D=mv(O.data),P=Sv(D[2][0].data);!function(){for(var e,t=ps.find(c,o[P].location),n=Av(xv(t.content)),s=0;s<n.length;++s){var l=n[s];l.id==P&&(e=l)}var u=mv(e.messages[0].data);delete u[6],delete T[7];var h=new Uint8Array(u[5][0].data);u[5]=[];for(var f=0,d=0;d<=r.e.r;++d){var p=mv(h);f+=Pv(p,i[d],a),p[1][0].data=pv(d),u[5].push({data:vv(p),type:2})}u[1]=[{type:0,data:pv(r.e.c+1)}],u[2]=[{type:0,data:pv(r.e.r+1)}],u[3]=[{type:0,data:pv(f)}],u[4]=[{type:0,data:pv(r.e.r+1)}],e.messages[0].data=vv(u);var g=Cv(bv(n));t.content=g,t.size=t.content.length}(),O.data=vv(D),I[3][0].data=vv(T),m[4][0].data=vv(I),u.messages[0].data=vv(m);var L=Cv(bv(f));return h.content=L,h.size=h.content.length,c}(e,t):"xlsb"==t.bookType?function(e,t){Jd=1024,e&&!e.SSF&&(e.SSF=Ds(Bo)),e&&e.SSF&&(us(),ls(e.SSF),t.revssf=bs(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Zp?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=ip.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Rv(t=t||{});var a=Ys(),o="",s=0;if(t.cellXfs=[],rg(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),qs(a,o="docProps/core.xml",th(e.Props,t)),i.coreprops.push(o),Yu(t.rels,2,o,Gu.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,qs(a,o,ah(e.Props)),i.extprops.push(o),Yu(t.rels,3,o,Gu.EXT_PROPS),e.Custprops!==e.Props&&vs(e.Custprops||{}).length>0&&(qs(a,o="docProps/custom.xml",sh(e.Custprops)),i.custprops.push(o),Yu(t.rels,4,o,Gu.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},h=e.Sheets[e.SheetNames[s-1]];if((h||{})["!type"],qs(a,o="xl/worksheets/sheet"+s+"."+n,um(s-1,o,t,e,u)),i.sheets.push(o),Yu(t.wbrels,-1,"worksheets/sheet"+s+"."+n,Gu.WS[0]),h){var f=h["!comments"],d=!1,p="";f&&f.length>0&&(qs(a,p="xl/comments"+s+"."+n,hm(f,p)),i.comments.push(p),Yu(u,-1,"../comments"+s+"."+n,Gu.CMNT),d=!0),h["!legacy"]&&d&&qs(a,"xl/drawings/vmlDrawing"+s+".vml",Xd(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&qs(a,Vu(o),qu(u))}return null!=t.Strings&&t.Strings.length>0&&(qs(a,o="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?Wf:Gf)(e,n)}(t.Strings,o,t)),i.strs.push(o),Yu(t.wbrels,-1,"sharedStrings."+n,Gu.SST)),qs(a,o="xl/workbook."+n,function(e,t){return(".bin"===t.slice(-4)?em:Jg)(e)}(e,o)),i.workbooks.push(o),Yu(t.rels,1,o,Gu.WB),qs(a,o="xl/theme/theme1.xml",Wd(e.Themes,t)),i.themes.push(o),Yu(t.wbrels,-1,"theme/theme1.xml",Gu.THEME),qs(a,o="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?Qd:Cd)(e,n)}(e,o,t)),i.styles.push(o),Yu(t.wbrels,-1,"styles."+n,Gu.STY),e.vbaraw&&r&&(qs(a,o="xl/vbaProject.bin",e.vbaraw),i.vba.push(o),Yu(t.wbrels,-1,"vbaProject.bin",Gu.VBA)),qs(a,o="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?Kd:$d)()}(o)),i.metadata.push(o),Yu(t.wbrels,-1,"metadata."+n,Gu.XLMETA),qs(a,"[Content_Types].xml",Uu(i,t)),qs(a,"_rels/.rels",qu(t.rels)),qs(a,"xl/_rels/workbook."+n+".rels",qu(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t):function(e,t){Jd=1024,e&&!e.SSF&&(e.SSF=Ds(Bo)),e&&e.SSF&&(us(),ls(e.SSF),t.revssf=bs(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Zp?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=ip.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Rv(t=t||{});var a=Ys(),o="",s=0;if(t.cellXfs=[],rg(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),qs(a,o="docProps/core.xml",th(e.Props,t)),i.coreprops.push(o),Yu(t.rels,2,o,Gu.CORE_PROPS),o="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,qs(a,o,ah(e.Props)),i.extprops.push(o),Yu(t.rels,3,o,Gu.EXT_PROPS),e.Custprops!==e.Props&&vs(e.Custprops||{}).length>0&&(qs(a,o="docProps/custom.xml",sh(e.Custprops)),i.custprops.push(o),Yu(t.rels,4,o,Gu.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var h={"!id":{}},f=e.Sheets[e.SheetNames[s-1]];if((f||{})["!type"],qs(a,o="xl/worksheets/sheet"+s+"."+n,Cg(s-1,t,e,h)),i.sheets.push(o),Yu(t.wbrels,-1,"worksheets/sheet"+s+"."+n,Gu.WS[0]),f){var d=f["!comments"],p=!1,g="";if(d&&d.length>0){var m=!1;d.forEach((function(e){e[1].forEach((function(e){1==e.T&&(m=!0)}))})),m&&(qs(a,g="xl/threadedComments/threadedComment"+s+"."+n,tp(d,u,t)),i.threadedcomments.push(g),Yu(h,-1,"../threadedComments/threadedComment"+s+"."+n,Gu.TCMNT)),qs(a,g="xl/comments"+s+"."+n,ep(d)),i.comments.push(g),Yu(h,-1,"../comments"+s+"."+n,Gu.CMNT),p=!0}f["!legacy"]&&p&&qs(a,"xl/drawings/vmlDrawing"+s+".vml",Xd(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}h["!id"].rId1&&qs(a,Vu(o),qu(h))}return null!=t.Strings&&t.Strings.length>0&&(qs(a,o="xl/sharedStrings."+n,Gf(t.Strings,t)),i.strs.push(o),Yu(t.wbrels,-1,"sharedStrings."+n,Gu.SST)),qs(a,o="xl/workbook."+n,Jg(e)),i.workbooks.push(o),Yu(t.rels,1,o,Gu.WB),qs(a,o="xl/theme/theme1.xml",Wd(e.Themes,t)),i.themes.push(o),Yu(t.wbrels,-1,"theme/theme1.xml",Gu.THEME),qs(a,o="xl/styles."+n,Cd(e,t)),i.styles.push(o),Yu(t.wbrels,-1,"styles."+n,Gu.STY),e.vbaraw&&r&&(qs(a,o="xl/vbaProject.bin",e.vbaraw),i.vba.push(o),Yu(t.wbrels,-1,"vbaProject.bin",Gu.VBA)),qs(a,o="xl/metadata."+n,$d()),i.metadata.push(o),Yu(t.wbrels,-1,"metadata."+n,Gu.XLMETA),u.length>1&&(qs(a,o="xl/persons/person.xml",function(e){var t=[Js,Tc("personList",null,{xmlns:Fc,"xmlns:x":Yc[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Tc("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(u)),i.people.push(o),Yu(t.wbrels,-1,"persons/person.xml",Gu.PEOPLE)),qs(a,"[Content_Types].xml",Uu(i,t)),qs(a,"_rels/.rels",qu(t.rels)),qs(a,"xl/_rels/workbook."+n+".rels",qu(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t)}function Uv(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=so(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Gv(e,t){var n=0;e:for(;n<e.length;)switch(e.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return Cm(e.slice(n),t);default:break e}return Of.to_workbook(e,t)}function Vv(e,t,n,r){return r?(n.type="string",Of.to_workbook(e,n)):Of.to_workbook(t,n)}function Wv(e,t){Xa();var n=t||{};if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return Wv(new Uint8Array(e),((n=Ds(n)).type="array",n));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!n.type&&(n.type="undefined"!=typeof Deno?"buffer":"array");var i,a=e,o=!1;if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),Xp={},n.dateNF&&(Xp.dateNF=n.dateNF),n.type||(n.type=co&&r.isBuffer(e)?"buffer":"base64"),"file"==n.type&&(n.type=co?"buffer":"binary",a=function(e){if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e);t.open("r"),t.encoding="binary";var n=t.read();return t.close(),n}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||co||(n.type="array")),"string"==n.type&&(o=!0,n.type="binary",n.codepage=65001,a=function(e){return e.match(/[^\x00-\x7F]/)?wc(e):e}(e)),"array"==n.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var s=new ArrayBuffer(3),c=new Uint8Array(s);if(c.foo="bar",!c.foo)return(n=Ds(n)).type="array",Wv(mo(a),n)}switch((i=Uv(a,n))[0]){case 208:if(207===i[1]&&17===i[2]&&224===i[3]&&161===i[4]&&177===i[5]&&26===i[6]&&225===i[7])return function(e,t){return ps.find(e,"EncryptedPackage")?zv(e,t):Nm(e,t)}(ps.read(a,n),n);break;case 9:if(i[1]<=8)return Nm(a,n);break;case 60:return Cm(a,n);case 73:if(73===i[1]&&42===i[2]&&0===i[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===i[1])return function(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=Bf.to_workbook(e,n);return n.WTF=r,i}catch(i){if(n.WTF=r,!i.message.match(/SYLK bad record ID/)&&r)throw i;return Of.to_workbook(e,t)}}(a,n);break;case 84:if(65===i[1]&&66===i[2]&&76===i[3])return Mf.to_workbook(a,n);break;case 80:return 75===i[1]&&i[2]<9&&i[3]<9?function(e,t){var n=e,i=t||{};return i.type||(i.type=co&&r.isBuffer(e)?"buffer":"base64"),Fv(Ks(n,i),i)}(a,n):Vv(e,a,n,o);case 239:return 60===i[3]?Cm(a,n):Vv(e,a,n,o);case 255:if(254===i[1])return function(e,t){var n=e;return"base64"==t.type&&(n=so(n)),n=to.utils.decode(1200,n.slice(2),"str"),t.type="binary",Gv(n,t)}(a,n);if(0===i[1]&&2===i[2]&&0===i[3])return Df.to_workbook(a,n);break;case 0:if(0===i[1]){if(i[2]>=2&&0===i[3])return Df.to_workbook(a,n);if(0===i[2]&&(8===i[3]||9===i[3]))return Df.to_workbook(a,n)}break;case 3:case 131:case 139:case 140:return Sf.to_workbook(a,n);case 123:if(92===i[1]&&114===i[2]&&116===i[3])return od.to_workbook(a,n);break;case 10:case 13:case 32:return function(e,t){var n="",r=Uv(e,t);switch(t.type){case"base64":n=so(e);break;case"binary":n=e;break;case"buffer":n=e.toString("binary");break;case"array":n=Os(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]&&(n=bc(n)),t.type="binary",Gv(n,t)}(a,n);case 137:if(80===i[1]&&78===i[2]&&71===i[3])throw new Error("PNG Image File is not a spreadsheet")}return kf.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?Sf.to_workbook(a,n):Vv(e,a,n,o)}function qv(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return ms(t.file,ps.write(e,{type:co?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return ps.write(e,t)}function Yv(e,t){var n=Ds(t||{});return function(e,t){var n={},r=co?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?ps.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof i){if("binary"==t.type||"base64"==t.type)return i;i=new Uint8Array(po(i))}return t.password&&"undefined"!=typeof encrypt_agile?qv(encrypt_agile(i,t.password),t):"file"===t.type?ms(t.file,i):"string"==t.type?bc(i):i}(Hv(e,n),n)}function Kv(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return oo(wc(r));case"binary":return wc(r);case"string":return e;case"file":return ms(t.file,r,"utf8");case"buffer":return co?lo(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):Kv(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function $v(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?oo(n):"string"==t.type?bc(n):n;case"file":return ms(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Jv(e,t){Xa(),Kg(e);var n=Ds(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=Jv(e,n);return n.type="array",po(r)}var i=0;if(n.sheet&&(i="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Kv(Bm(e,n),n);case"slk":case"sylk":return Kv(Bf.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"htm":case"html":return Kv(function(e,t){var n=t||{},r=null!=n.header?n.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',i=null!=n.footer?n.footer:"</body></html>",a=[r],o=Jl(e["!ref"]);n.dense=Array.isArray(e),a.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var s=o.s.r;s<=o.e.r;++s)a.push(ev(e,o,s,n));return a.push("</table>"+i),a.join("")}(e.Sheets[e.SheetNames[i]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return oo(e);case"binary":case"string":return e;case"file":return ms(t.file,e,"binary");case"buffer":return co?lo(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(function(e,t){return t||(t={}),t.FS="\t",t.RS="\n",ny(e,t)}(e.Sheets[e.SheetNames[i]],n),n);case"csv":return Kv(ny(e.Sheets[e.SheetNames[i]],n),n,"\ufeff");case"dif":return Kv(Mf.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"dbf":return $v(Sf.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"prn":return Kv(Of.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"rtf":return Kv(od.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"eth":return Kv(Tf.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case"fods":return Kv(sv(e,n),n);case"wk1":return $v(Df.sheet_to_wk1(e.Sheets[e.SheetNames[i]],n),n);case"wk3":return $v(Df.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),$v(Xm(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return qv(Fm(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Yv(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function Xv(e,t,n,r,i,a,o,s){var c=Wl(n),l=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,f=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:n,enumerable:!1})}catch(e){f.__rowNum__=n}else f.__rowNum__=n;if(!o||e[n])for(var d=t.s.c;d<=t.e.c;++d){var p=o?e[n][d]:e[r[d]+c];if(void 0!==p&&void 0!==p.t){var g=p.v;switch(p.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=a[d]){if(null==g)if("e"==p.t&&null===g)f[a[d]]=null;else if(void 0!==l)f[a[d]]=l;else{if(!u||null!==g)continue;f[a[d]]=null}else f[a[d]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?g:tu(p,g,s);null!=g&&(h=!1)}}else{if(void 0===l)continue;null!=a[d]&&(f[a[d]]=l)}}return{row:f,isempty:h}}function Zv(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,a=[],o=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},u=null!=l.range?l.range:e["!ref"];switch(1===l.header?r=1:"A"===l.header?r=2:Array.isArray(l.header)?r=3:null==l.header&&(r=0),typeof u){case"string":c=Zl(u);break;case"number":(c=Zl(e["!ref"])).s.r=u;break;default:c=u}r>0&&(i=0);var h=Wl(c.s.r),f=[],d=[],p=0,g=0,m=Array.isArray(e),v=c.s.r,y=0,A={};m&&!e[v]&&(e[v]=[]);var b=l.skipHidden&&e["!cols"]||[],w=l.skipHidden&&e["!rows"]||[];for(y=c.s.c;y<=c.e.c;++y)if(!(b[y]||{}).hidden)switch(f[y]=Yl(y),n=m?e[v][y]:e[f[y]+h],r){case 1:a[y]=y-c.s.c;break;case 2:a[y]=f[y];break;case 3:a[y]=l.header[y-c.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=o=tu(n,null,l),g=A[o]||0){do{s=o+"_"+g++}while(A[s]);A[o]=g,A[s]=1}else A[o]=1;a[y]=s}for(v=c.s.r+i;v<=c.e.r;++v)if(!(w[v]||{}).hidden){var x=Xv(e,c,v,f,r,a,m,l);(!1===x.isempty||(1===r?!1!==l.blankrows:l.blankrows))&&(d[p++]=x.row)}return d.length=p,d}var ey=/"/g;function ty(e,t,n,r,i,a,o,s){for(var c=!0,l=[],u="",h=Wl(n),f=t.s.c;f<=t.e.c;++f)if(r[f]){var d=s.dense?(e[n]||[])[f]:e[r[f]+h];if(null==d)u="";else if(null!=d.v){c=!1,u=""+(s.rawNumbers&&"n"==d.t?d.v:tu(d,null,s));for(var p=0,g=0;p!==u.length;++p)if((g=u.charCodeAt(p))===i||g===a||34===g||s.forceQuotes){u='"'+u.replace(ey,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==d.f||d.F?u="":(c=!1,(u="="+d.f).indexOf(",")>=0&&(u='"'+u.replace(ey,'""')+'"'));l.push(u)}return!1===s.blankrows&&c?null:l.join(o)}function ny(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=Zl(e["!ref"]),a=void 0!==r.FS?r.FS:",",o=a.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==a?"\\|":a)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var f=r.skipHidden&&e["!cols"]||[],d=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(f[p]||{}).hidden||(h[p]=Yl(p));for(var g=0,m=i.s.r;m<=i.e.r;++m)(d[m]||{}).hidden||null!=(u=ty(e,i,m,h,o,c,a,r))&&(r.strip&&(u=u.replace(l,"")),(u||!1!==r.blankrows)&&n.push((g++?s:"")+u));return delete r.dense,n.join("")}function ry(e,t,n,r){var i=1;if(!n)for(;i<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+i);++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=o+i);++i);}if(Yg(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ay=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],oy=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333","#000000"];function sy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){return new Promise((function(n,r){var i=new XMLHttpRequest;i.open(t.method||"GET",e,!0),i.responseType=t.responseType||"arraybuffer",i.onload=function(){200===i.status?n(i.response):r(i.status)},i.onerror=function(){r(i.status)},i.withCredentials=t.withCredentials||!1,t.headers&&Object.keys(t.headers).forEach((function(e){i.setRequestHeader(e,t.headers[e])})),i.send(t.body)}))}(function(e,t){return"string"==typeof e?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e],t)):e instanceof Response?URL.createObjectURL(e.blob()):e}(e),t)}function cy(e){if("object"==typeof e)return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(e))return e.startsWith("#")?e:"#"+e;e=e.trim().toLowerCase();var t={};try{var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t.r=parseInt(n[2],16),t.g=parseInt(n[3],16),t.b=parseInt(n[4],16),t.a=parseInt(n[1],16)/255,ca("rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(t.a,")")).toHexString()}catch(e){}}function ly(e,t){return e>9?"#C7C9CC":void 0===t?ay[e]:t>0?function(e,t){for(var n=Ha(e),r=0;r<3;r++)n[r]=Math.floor((255-n[r])*t+n[r]);return Ua(n[0],n[1],n[2])}(ay[e],t):function(e,t){for(var n=Ha(e),r=0;r<3;r++)n[r]=Math.floor(n[r]*(1-t));return Ua(n[0],n[1],n[2])}(ay[e],Math.abs(t))}function uy(e){e.style=za.cloneDeep(e.style);var t=null;e.style.fill&&e.style.fill.fgColor&&(t=e.style.fill.fgColor.argb?cy(e.style.fill.fgColor.argb):e.style.fill.fgColor.hasOwnProperty("theme")?ly(e.style.fill.fgColor.theme,e.style.fill.fgColor.tint):e.style.fill.fgColor.indexed&&oy[e.style.fill.fgColor.indexed]||"#C7C9CC"),t&&(e.style.bgcolor=t);var n=null;if(e.style.font&&e.style.font.color&&(n=e.style.font.color.argb?cy(e.style.font.color.argb):e.style.font.color.hasOwnProperty("theme")?ly(e.style.font.color.theme,e.style.font.color.tint):e.style.font.color.indexed&&oy[e.style.font.color.indexed]||"#000000"),n&&(e.style.color=n),e.style.alignment&&(e.style.alignment.horizontal&&(e.style.align=e.style.alignment.horizontal),e.style.alignment.vertical&&(e.style.valign=e.style.alignment.vertical)),e.style.alignment&&e.style.alignment.wrapText&&(e.style.textwrap=!0),e.style.border){var r={};Object.keys(e.style.border).forEach((function(t){var n=e.style.border[t],i="#000000";"string"==typeof n.color?i=n.color:n.color&&(n.color.argb?i=cy(n.color.argb):n.color.hasOwnProperty("theme")?i=ly(n.color.theme,n.color.tint):n.color.indexed&&(i=oy[n.color.indexed])),r[t]=[n.style||"thin",i]})),e.style.border2=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.style.border),e.style.border=r}return e.style.font&&e.style.font.size&&"number"==typeof e.style.font.size&&(e.style.font.size=Math.round(e.style.font.size/1.333333)),e.style}function hy(e,t){var n=[],r=[];return e.eachSheet((function(e){r.push(e);var i={name:e.name,styles:[],rows:{},cols:{},merges:[],media:[]},a=[];for(var o in e._merges){i.merges.push(e._merges[o].shortRange);var s={};s.startAddress=e._merges[o].tl,s.endAddress=e._merges[o].br,s.YRange=e._merges[o].model.bottom-e._merges[o].model.top,s.XRange=e._merges[o].model.right-e._merges[o].model.left,a.push(s)}var c=0;(e._rows||[]).forEach((function(e,n){i.rows[n]={cells:{}},e._hidden?(i.rows[n].height=.1,e._cells=[]):e.height?i.rows[n].height=e.height+(t.heightOffset||0):i.rows[n].height=24+(t.heightOffset||0),(e._cells||[]).forEach((function(e,t){i.rows[n].cells[t]={},c=Math.max(c,t);var r=za.find(a,(function(t){return t.startAddress==e._address}));r&&e.master.address!=r.startAddress||(r&&(i.rows[n].cells[t].merge=[r.YRange,r.XRange]),i.rows[n].cells[t].text=function(e){var t=e.numFmt,n=e.value;switch(e.type){case 2:try{if(e.style.numFmt){if(e.style.numFmt.endsWith("%")){var r=e.style.numFmt.match(/\.(\d+)%/);return r?(100*n).toFixed(r[1].length)+"%":100*n+"%"}if(/0(\.0+)?/.test(e.style.numFmt)){var i="";if(e.style.numFmt.startsWith("$")?i="$":e.style.numFmt.startsWith('"¥')&&(i="¥"),0===n&&e.style.numFmt.startsWith("_"))return"-";var a=e.style.numFmt.match(/0\.(0+)(_|;|$)/);a=a?a[1].length:0;var o=n.toFixed(a)+"";if(e.style.numFmt.includes("#,##")){for(var s=(o=o.split("."))[0].split("").reverse(),c=[],l=0;l<s.length;l++)c.push(s[l]),(l+1)%3==0&&l<s.length-1&&"-"!==s[l+1]&&c.push(",");o[0]=c.reverse().join(""),o=o.join(".")}return i+o}}return n+""}catch(e){return n}case 3:return n;case 4:switch(t){case"yyyy-mm-dd;@":default:return Va(n).format("YYYY-MM-DD");case"mm-dd-yy":return Va(n).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return Va(n).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return Va(n).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return Va(n).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return Va(n).format("HH:mm")}case 5:return n.text;case 6:return za.get(n,"result.error")||n.result;case 8:return e.text;case 9:return e.text.toUpperCase();default:return n}}(e),i.styles.push(uy(e)),i.rows[n].cells[t].style=i.styles.length-1)}))})),i._media&&(i.media=i._media);var l=Object.keys(i.rows);i.rows.len=Math.max(+l[l.length-1]+1,t.hasOwnProperty("minRowLength")?t.minRowLength:100),e._columns&&e._columns.length>c+1&&(e._columns=e._columns.slice(0,c+1)),function(e,t,n){for(var r=0;r<(e.columns||[]).length;r++)t.cols[r.toString()]={},e.columns[r]._hidden?t.cols[r.toString()].width=.1:e.columns[r].width?t.cols[r.toString()].width=6*e.columns[r].width+(n.widthOffset||0):t.cols[r.toString()].width=80+(n.widthOffset||0);t.cols.len=Math.max(Object.keys(t.cols).length,n.minColLength||0)}(e,i,t),n.push(i)})),e._worksheets=r,{workbookData:n,workbookSource:e,medias:e.media||[]}}var fy=[];function dy(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};n&&n._media.length&&n._media.forEach((function(a){var o=a.imageId,s=a.range;if("image"===a.type){var c=function(e,t,n,r){for(var i,a,o=r.widthOffset,s=r.heightOffset,c=t.tl,l=t.br,u=t.ext,h=c||{},f=h.nativeCol,d=void 0===f?0:f,p=h.nativeColOff,g=void 0===p?0:p,m=h.nativeRow,v=void 0===m?0:m,y=h.nativeRowOff,A=void 0===y?0:y,b=py,w=gy,x=0;x<d;x++){var C;b+=6*(null==e||null===(C=e._columns)||void 0===C||null===(C=C[x])||void 0===C?void 0:C.width)||my,b+=o||0}for(var _=0;_<v;_++){var I;w+=(null==e||null===(I=e._rows)||void 0===I||null===(I=I[_])||void 0===I?void 0:I.height)||vy,w+=s||0}var E,k=b+g/12700,S=w+A/12700,B=l||{},M=B.nativeCol,T=void 0===M?0:M,O=B.nativeColOff,D=void 0===O?0:O,P=B.nativeRow,L=void 0===P?0:P,Q=B.nativeRowOff,R=void 0===Q?0:Q,j=0;if(d===T&&l)j=(D-g)/12700;else if(l){var N;j=(6*(null==e||null===(N=e._columns)||void 0===N||null===(N=N[d])||void 0===N?void 0:N.width)||my)-g/12700;for(var F=d+1;F<T;F++){var z;j+=6*(null==e||null===(z=e._columns)||void 0===z||null===(z=z[F])||void 0===z?void 0:z.width)||my}j+=D/12700}else null!=u&&u.width&&(j=u.width/1.333333);if(v===L)E=(R-A)/12700;else if(l){var H;E=((null==e||null===(H=e._rows)||void 0===H||null===(H=H[v])||void 0===H?void 0:H.height)||vy)-A/12700;for(var U=v+1;U<L;U++){var G;E+=(null==e||null===(G=e._rows)||void 0===G||null===(G=G[U])||void 0===G?void 0:G.height)||vy}E+=R/12700}else null!=u&&u.height&&(E=u.height/1.333333);return{x:(k-((null==n||null===(i=n.scroll)||void 0===i?void 0:i.x)||0))*yy,y:(S-((null==n||null===(a=n.scroll)||void 0===a?void 0:a.y)||0))*yy,width:j*yy,height:E*yy}}(n,s,r,i);!function(e,t,n,r){(function(e,t){return new Promise((function(n,r){if(fy[e])return n(fy[e]);var i=t.buffer.buffer,a=new Blob([i],{type:"image/"+t.extension}),o=URL.createObjectURL(a),s=new Image;s.src=o,s.onload=function(){n(s),fy[e]=s},s.onerror=function(e){r(e)}}))})(t,n).then((function(t){var n=0,i=0,a=t.width,o=t.height,s=r.x,c=r.y,l=r.width,u=r.height,h=l/a,f=u/o;if(s<py*yy){var d=py*yy-s;s=py*yy,l-=d,a-=d/h,n+=d/h}if(c<gy*yy){var p=gy*yy-c;c=gy*yy,u-=p,o-=p/f,i+=p/f}var g=window.outerWidth/window.innerWidth;e.drawImage(t,n,i,a,o,s*g,c*g,l*g,u*g)})).catch((function(e){}))}(e,o,t[o],c)}}))}var py=60,gy=25,my=80,vy=24,yy=window.devicePixelRatio;function Ay(){fy=[]}var by=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"wrapperRef",staticClass:"vue-office-excel"},[t("div",{ref:"rootRef",staticClass:"vue-office-excel-main"})])},wy=[];function xy(e,t,n,r,i,a,o,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}function Cy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cy(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Iy={xls:!1,minColLength:20},Ey=e.defineComponent({name:"VueOfficeExcel",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return _y({},Iy)}}},emits:["rendered","error","switchSheet","cellSelected","cellsSelected"],setup:function(t,n){var r=n.emit,i=e.ref(null),a=e.ref(null),o={_worksheets:[]},s=[],c=0,l=null,u=null,h=null,f=null;function d(e){f=e,function(e,t){try{return t&&(e=Jv(Wv(e,{type:"array"}),{bookType:"xlsx",type:"array"})),(new na.Workbook).xlsx.load(e)}catch(e){return Promise.reject(e)}}(e,t.options.xls).then((function(e){if(!e._worksheets||0===e._worksheets.length)throw new Error("未获取到数据，可能文件格式不正确或文件已损坏");t.options.beforeTransformData&&"function"==typeof t.options.beforeTransformData&&(e=t.options.beforeTransformData(e));var n=hy(e,_y(_y({},Iy),t.options)),i=n.workbookData,a=n.medias,f=n.workbookSource;t.options.transformData&&"function"==typeof t.options.transformData&&(i=t.options.transformData(i)),s=a,o=f,h=null,c=0,Ay(),u.loadData(i),dy(l,s,o._worksheets[c],h,t.options),r("rendered"),r("switchSheet",0)})).catch((function(e){s=[],o={_worksheets:[]},Ay(),u&&u.loadData({}),r("error",e),r("switchSheet",0)}))}return e.onMounted((function(){e.nextTick((function(){(u=new Ti(a.value,{mode:"read",showToolbar:!1,showContextmenu:t.options.showContextmenu||!1,view:{height:function(){return i.value&&i.value.clientHeight||300},width:function(){return i.value&&i.value.clientWidth||1200}},row:{height:24,len:100},col:{len:26,width:80,indexWidth:60,minWidth:60},autoFocus:!1}).loadData({})).on("cell-selected",(function(e,t,n){r("cellSelected",{cell:e,rowIndex:t,columnIndex:n})})),u.on("cells-selected",(function(e,t){var n=t.sri,i=t.sci,a=t.eri,o=t.eci;r("cellsSelected",{cell:e,startRowIndex:n,startColumnIndex:i,endRowIndex:a,endColumnIndex:o})}));var e=u.bottombar.swapFunc;u.bottombar.swapFunc=function(n){e.call(u.bottombar,n),c=n,h=u.sheet.data.getSelectedRect(),setTimeout((function(){u.reRender(),dy(l,s,o._worksheets[c],h,t.options),r("switchSheet",n)}))};var n=za.debounce(dy,200,{leading:!0}),f=u.sheet.table.render;u.sheet.table.render=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];u&&u.sheet&&f.apply(u.sheet.table,r),n(l,s,o._worksheets[c],h,t.options)};var p=u.sheet.editor.setOffset;u.sheet.editor.setOffset=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];p.apply(u.sheet.editor,t),h=t[0]};var g=a.value.querySelector("canvas");l=g.getContext("2d"),t.src&&sy(t.src,t.requestOptions).then(d).catch((function(e){s=[],o={_worksheets:[]},u.loadData({}),r("error",e)}))}))})),e.onBeforeUnmount((function(){u=null})),e.watch((function(){return t.src}),(function(){t.src?sy(t.src,t.requestOptions).then(d).catch((function(e){s=[],o={_worksheets:[]},u.loadData({}),r("error",e)})):(s=[],o={_worksheets:[]},u.loadData({}),r("error",new Error("src属性不能为空")))})),{wrapperRef:i,rootRef:a,save:function(e){!function(e,t){ra.apply(this,arguments)}(e||"vue-office-excel-".concat((new Date).getTime(),".xlsx"),f)}}}}),ky={},Sy=xy(Ey,by,wy,!1,By,null,null,null);function By(e){for(var t in ky)this[t]=ky[t]}const My=Sy.exports;return My.install=function(e){e.component(My.name,My)},My}(n("8afd"));
/* WEBPACK VAR INJECTION */}).call(this,n("c8ba"),n("b639").Buffer,n("4362"))
/***/},
/***/b727:
/***/function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),a=n("44ad"),o=n("7b0b"),s=n("07fa"),c=n("65f0"),l=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,g,m,v){for(var y,A,b=o(p),w=a(b),x=s(w),C=r(g,m),_=0,I=v||c,E=t?I(p,x):n||f?I(p,0):void 0;x>_;_++)if((d||_ in w)&&(A=C(y=w[_],_,b),e))if(t)E[_]=A;// map
else if(A)switch(e){case 3:return!0;// some
case 5:return y;// find
case 6:return _;// findIndex
case 2:l(E,y);// filter
}else switch(e){case 4:return!1;// every
case 7:l(E,y);// filterReject
}return h?-1:i||u?u:E}};e.exports={
// `Array.prototype.forEach` method
// https://tc39.es/ecma262/#sec-array.prototype.foreach
forEach:u(0),
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
map:u(1),
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
filter:u(2),
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
some:u(3),
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
every:u(4),
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
find:u(5),
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
findIndex:u(6),
// `Array.prototype.filterReject` method
// https://github.com/tc39/proposal-array-filtering
filterReject:u(7)}},
/***/b72d:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/b760:
/***/function(e,t,n){var r=n("8fc4");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},
/***/b760e:
/***/function(e,t,n){var r=n("872a"),i=n("9638");
/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},
/***/b799:
/***/function(e,t,n){"use strict";var r=n("93e0"),i=n("c94e"),a=n("cee8"),o=n("f308"),s=n("0713"),c=n("c668"),l=n("f937"),u=n("928a"),h=n("9b6f"),f=n("6373"),d=n("53d3"),p=n("dbb2").f,g=n("2761").f,m=n("0ba2"),v=n("27bd"),y="ArrayBuffer",A="DataView",b="prototype",w="Wrong index!",x=r[y],C=r[A],_=r.Math,I=r.RangeError,E=r.Infinity,k=x,S=_.abs,B=_.pow,M=_.floor,T=_.log,O=_.LN2,D="buffer",P="byteLength",L="byteOffset",Q=i?"_b":D,R=i?"_l":P,j=i?"_o":L;
// IEEE754 conversions based on https://github.com/feross/ieee754
function N(e,t,n){var r,i,a,o=new Array(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?B(2,-24)-B(2,-77):0,h=0,f=e<0||0===e&&1/e<0?1:0;for(
// eslint-disable-next-line no-self-compare
(e=S(e))!=e||e===E?(
// eslint-disable-next-line no-self-compare
i=e!=e?1:0,r=c):(r=M(T(e)/O),e*(a=B(2,-r))<1&&(r--,a*=2),(e+=r+l>=1?u/a:u*B(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(i=0,r=c):r+l>=1?(i=(e*a-1)*B(2,t),r+=l):(i=e*B(2,l-1)*B(2,t),r=0));t>=8;o[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;o[h++]=255&r,r/=256,s-=8);return o[--h]|=128*f,o}function F(e,t,n){var r,i=8*n-t-1,a=(1<<i)-1,o=a>>1,s=i-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;s>0;u=256*u+e[c],c--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;r=256*r+e[c],c--,s-=8);if(0===u)u=1-o;else{if(u===a)return r?NaN:l?-E:E;r+=B(2,t),u-=o}return(l?-1:1)*r*B(2,u-t)}function z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function G(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return N(e,52,8)}function W(e){return N(e,23,4)}function q(e,t,n){g(e[b],t,{get:function(){return this[n]}})}function Y(e,t,n,r){var i=d(+n);if(i+t>e[R])throw I(w);var a=e[Q]._b,o=i+e[j],s=a.slice(o,o+t);return r?s:s.reverse()}function K(e,t,n,r,i,a){var o=d(+n);if(o+t>e[R])throw I(w);for(var s=e[Q]._b,c=o+e[j],l=r(+i),u=0;u<t;u++)s[c+u]=l[a?u:t-u-1]}if(o.ABV){if(!l((function(){x(1)}))||!l((function(){new x(-1);// eslint-disable-line no-new
}))||l((function(){// eslint-disable-line no-new
return new x,// eslint-disable-line no-new
new x(1.5),// eslint-disable-line no-new
new x(NaN),x.name!=y}))){for(var $,J=(x=function(e){return u(this,x),new k(d(e))})[b]=k[b],X=p(k),Z=0;X.length>Z;)($=X[Z++])in x||s(x,$,k[$]);a||(J.constructor=x)}
// iOS Safari 7.x bug
var ee=new C(new x(2)),te=C[b].setInt8;ee.setInt8(0,2147483648),ee.setInt8(1,2147483649),!ee.getInt8(0)&&ee.getInt8(1)||c(C[b],{setInt8:function(e,t){te.call(this,e,t<<24>>24)},setUint8:function(e,t){te.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,y);var t=d(e);this._b=m.call(new Array(t),0),this[R]=t},C=function(e,t,n){u(this,C,A),u(e,x,A);var r=e[R],i=h(t);if(i<0||i>r)throw I("Wrong offset!");if(i+(n=void 0===n?r-i:f(n))>r)throw I("Wrong length!");this[Q]=e,this[j]=i,this[R]=n},i&&(q(x,P,"_l"),q(C,D,"_b"),q(C,P,"_l"),q(C,L,"_o")),c(C[b],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e/* , littleEndian */){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e/* , littleEndian */){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e/* , littleEndian */){return z(Y(this,4,e,arguments[1]))},getUint32:function(e/* , littleEndian */){return z(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e/* , littleEndian */){return F(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e/* , littleEndian */){return F(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,H,t)},setUint8:function(e,t){K(this,1,e,H,t)},setInt16:function(e,t/* , littleEndian */){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t/* , littleEndian */){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t/* , littleEndian */){K(this,4,e,G,t,arguments[2])},setUint32:function(e,t/* , littleEndian */){K(this,4,e,G,t,arguments[2])},setFloat32:function(e,t/* , littleEndian */){K(this,4,e,W,t,arguments[2])},setFloat64:function(e,t/* , littleEndian */){K(this,8,e,V,t,arguments[2])}});v(x,y),v(C,A),s(C[b],o.VIEW,!0),t[y]=x,t[A]=C},
/***/b7d9:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"d",(function(){return o})),
/* harmony export (binding) */n.d(t,"c",(function(){return c})),
/* harmony export (binding) */n.d(t,"a",(function(){return h})),
/* harmony export (binding) */n.d(t,"b",(function(){return d}));
/* harmony import */var r=n("3842"),i=n("6d8b"),a=n("edae");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Convert raw the value in to inner value in List.
 *
 * [Performance sensitive]
 *
 * [Caution]: this is the key logic of user value parser.
 * For backward compatibility, do not modify it until you have to!
 */
function o(e,
// For high performance, do not omit the second param.
t){
// Performance sensitive.
var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(i.isNumber)(e)||null==e||"-"===e||(e=+Object(r.p)(e)),null==e||""===e?NaN:Number(e))}var s=Object(i.createHashMap)({number:function(e){
// Do not use `numericToNumber` here. We have `numericToNumber` by default.
// Here the number parser can have loose rule:
// enable to cut suffix: "120px" => 120, "14%" => 14.
return parseFloat(e)},time:function(e){
// return timestamp.
return+Object(r.p)(e)},trim:function(e){return Object(i.isString)(e)?Object(i.trim)(e):e}});function c(e){return s.get(e)}var l={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},u=/** @class */function(){function e(e,t){if(!Object(i.isNumber)(t)){0,Object(a.c)("")}this._opFn=l[e],this._rvalFloat=Object(r.o)(t)}
// Performance sensitive.
return e.prototype.evaluate=function(e){
// Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.
return Object(i.isNumber)(e)?this._opFn(e,this._rvalFloat):this._opFn(Object(r.o)(e),this._rvalFloat)},e}(),h=/** @class */function(){
/**
   * @param order by default: 'asc'
   * @param incomparable by default: Always on the tail.
   *        That is, if 'asc' => 'max', if 'desc' => 'min'
   *        See the definition of "incomparable" in [SORT_COMPARISON_RULE].
   */
function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}
// See [SORT_COMPARISON_RULE].
// Performance sensitive.
return e.prototype.evaluate=function(e,t){
// Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.
var n=Object(i.isNumber)(e)?e:Object(r.o)(e),a=Object(i.isNumber)(t)?t:Object(r.o)(t),o=isNaN(n),s=isNaN(a);if(o&&(n=this._incomparable),s&&(a=this._incomparable),o&&s){var c=Object(i.isString)(e),l=Object(i.isString)(t);c&&(n=l?e:0),l&&(a=c?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),f=/** @class */function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(r.o)(t)}
// Performance sensitive.
return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Object(r.o)(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();
/**
 * [FILTER_COMPARISON_RULE]
 * `lt`|`lte`|`gt`|`gte`:
 * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare.
 * `eq`:
 * + If same type, compare with `===`.
 * + If there is one number, convert to number (`numericToNumber`) to compare.
 * + Else return `false`.
 * `ne`:
 * + Not `eq`.
 *
 *
 * [SORT_COMPARISON_RULE]
 * All the values are grouped into three categories:
 * + "numeric" (number and numeric string)
 * + "non-numeric-string" (string that excluding numeric string)
 * + "others"
 * "numeric" vs "numeric": values are ordered by number order.
 * "non-numeric-string" vs "non-numeric-string": values are ordered by ES spec (#sec-abstract-relational-comparison).
 * "others" vs "others": do not change order (always return 0).
 * "numeric" vs "non-numeric-string": "non-numeric-string" is treated as "incomparable".
 * "number" vs "others": "others" is treated as "incomparable".
 * "non-numeric-string" vs "others": "others" is treated as "incomparable".
 * "incomparable" will be seen as -Infinity or Infinity (depends on the settings).
 * MEMO:
 *   Non-numeric string sort makes sense when we need to put the items with the same tag together.
 *   But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,
 *   So we treat "numeric-string" sorted by number order rather than string comparison.
 *
 *
 * [CHECK_LIST_OF_THE_RULE_DESIGN]
 * + Do not support string comparison until required. And also need to
 *   avoid the misleading of "2" > "12".
 * + Should avoid the misleading case:
 *   `" 22 " gte "22"` is `true` but `" 22 " eq "22"` is `false`.
 * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ...
 * + Only "numeric" can be converted to comparable number, otherwise converted to NaN.
 *   See `util/number.ts#numericToNumber`.
 *
 * @return If `op` is not `RelationalOperator`, return null;
 */
function d(e,t){return"eq"===e||"ne"===e?new f("eq"===e,t):Object(i.hasOwn)(l,e)?new u(e,t):null}
/***/},
/***/b806:
/***/function(e,t,n){
// https://github.com/tc39/proposal-object-getownpropertydescriptors
var r=n("f083"),i=n("eaeb"),a=n("5d6f"),o=n("8d87"),s=n("52d5");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),c=o.f,l=i(r),u={},h=0;l.length>h;)void 0!==(n=c(r,t=l[h++]))&&s(u,t,n);return u}})},
/***/b84d:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("0305");
/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
/* harmony default export */t.a=function(e,t,n){"__proto__"==t&&r.a?Object(r.a)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},
/***/b85c:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */n("a4d3"),n("e01a"),n("d28b"),n("d9e2"),n("d3b7"),n("3ca3"),n("ddb0")
/* harmony import */;var r=n("06c5");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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 o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}
/***/},
/***/b874:
/***/function(e,t,n){var r=n("f083");
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
r(r.S,"Object",{create:n("6621")})},
/***/b8ad:
/***/function(e,t,n){e.exports=function(){"use strict";function e(e,t,n){(n=n||{}).childrenKeyName=n.childrenKeyName||"children";var r=e||[],i=[],a=0;do{var o=r.filter((function(e){return t(e,a)}))[0];if(!o)break;i.push(o),r=o[n.childrenKeyName]||[],a+=1}while(r.length>0);return i}return e}();
/***/},
/***/b8b3:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/* harmony import */var r=n("5a89"),i=n("9fe7");
/* harmony import */class a extends r.P{constructor(e){super(e)}load(e,t,n,i){const a=this,o=""===a.path?r.Q.extractUrlBase(e):a.path,s=new r.t(a.manager);s.setPath(a.path),s.setRequestHeader(a.requestHeader),s.setWithCredentials(a.withCredentials),s.load(e,(function(n){try{t(a.parse(n,o))}catch(t){i&&i(t),a.manager.itemError(e)}}),n,i)}parse(e,t){function n(e,t){
// Non recursive xml.getElementsByTagName() ...
const n=[],r=e.childNodes;for(let e=0,i=r.length;e<i;e++){const i=r[e];i.nodeName===t&&n.push(i)}return n}function a(e){if(0===e.length)return[];const t=e.trim().split(/\s+/),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]=t[e];return n}function o(e){if(0===e.length)return[];const t=e.trim().split(/\s+/),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]=parseFloat(t[e]);return n}function s(e){if(0===e.length)return[];const t=e.trim().split(/\s+/),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]=parseInt(t[e]);return n}function c(e){return e.substring(1)}function l(e){return 0===Object.keys(e).length}
// asset
function u(e){return void 0!==e&&!0===e.hasAttribute("meter")?parseFloat(e.getAttribute("meter")):1}function h(e){return void 0!==e?e.textContent:"Y_UP"}
// library
function f(e,t,r,i){const a=n(e,t)[0];if(void 0!==a){const e=n(a,r);for(let t=0;t<e.length;t++)i(e[t])}}function d(e,t){for(const n in e){e[n].build=t(e[n])}}
// get
function p(e,t){return void 0!==e.build||(e.build=t(e)),e.build}
// animation
function g(e){const t={inputs:{}};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"input"===r.nodeName){const e=c(r.getAttribute("source")),n=r.getAttribute("semantic");t.inputs[n]=e}}return t}function m(e){const t={};
// parsing SID Addressing Syntax
let n=e.getAttribute("target").split("/");const r=n.shift();let i=n.shift();
// check selection syntax
const a=-1!==i.indexOf("("),o=-1!==i.indexOf(".");if(o)
//  member selection access
n=i.split("."),i=n.shift(),t.member=n.shift();else if(a){
// array-access syntax. can be used to express fields in one-dimensional vectors or two-dimensional matrices.
const e=i.split("(");i=e.shift();for(let t=0;t<e.length;t++)e[t]=parseInt(e[t].replace(/\)/,""));t.indices=e}return t.id=r,t.sid=i,t.arraySyntax=a,t.memberSyntax=o,t.sampler=c(e.getAttribute("source")),t}function v(e){const t=[],n=e.channels,r=e.samplers,i=e.sources;for(const e in n)if(n.hasOwnProperty(e)){const a=n[e],o=r[a.sampler],s=o.inputs.INPUT,c=o.inputs.OUTPUT;C(A(a,i[s],i[c]),t)}return t}function y(e){return p(Je.animations[e],v)}function A(e,t,n){const r=Je.nodes[e.id],i=je(r.id),a=r.transforms[e.sid],o=r.matrix.clone().transpose();let s,c,l,u,h,f;const d={};
// the collada spec allows the animation of data in various ways.
// depending on the transform type (matrix, translate, rotate, scale), we execute different logic
if("matrix"===a)for(l=0,u=t.array.length;l<u;l++)if(s=t.array[l],c=l*n.stride,void 0===d[s]&&(d[s]={}),!0===e.arraySyntax){const t=n.array[c],r=e.indices[0]+4*e.indices[1];d[s][r]=t}else for(h=0,f=n.stride;h<f;h++)d[s][h]=n.array[c+h];const p=function(e,t){const n=[];
// transfer data into a sortable array
for(const t in e)n.push({time:parseFloat(t),value:e[t]});
// ensure keyframes are sorted by time
n.sort(r);
// now we clean up all animation data, so we can use them for keyframe tracks
for(let e=0;e<16;e++)_(n,e,t.elements[e]);return n;
// array sort function
function r(e,t){return e.time-t.time}}(d,o);return{name:i.uuid,keyframes:p}}const b=new r.Pb,w=new r.Pb,x=new r.pb;function C(e,t){const n=e.keyframes,i=e.name,a=[],o=[],s=[],c=[];for(let e=0,t=n.length;e<t;e++){const t=n[e],r=t.time,i=t.value;ke.fromArray(i).transpose(),ke.decompose(b,x,w),a.push(r),o.push(b.x,b.y,b.z),s.push(x.x,x.y,x.z,x.w),c.push(w.x,w.y,w.z)}return o.length>0&&t.push(new r.Rb(i+".position",a,o)),s.length>0&&t.push(new r.qb(i+".quaternion",a,s)),c.length>0&&t.push(new r.Rb(i+".scale",a,c)),t}function _(e,t,n){let r,i,a,o=!0;
// check, if values of a property are missing in our keyframes
for(i=0,a=e.length;i<a;i++)r=e[i],void 0===r.value[t]?r.value[t]=null:o=!1;if(!0===o)
// no values at all, so we set a default value
for(i=0,a=e.length;i<a;i++)r=e[i],r.value[t]=n;else
// filling gaps
!function(e,t){let n,r;for(let i=0,a=e.length;i<a;i++){const a=e[i];if(null===a.value[t]){if(n=I(e,i,t),r=E(e,i,t),null===n){a.value[t]=r.value[t];continue}if(null===r){a.value[t]=n.value[t];continue}k(a,n,r,t)}}}(e,t)}function I(e,t,n){for(;t>=0;){const r=e[t];if(null!==r.value[n])return r;t--}return null}function E(e,t,n){for(;t<e.length;){const r=e[t];if(null!==r.value[n])return r;t++}return null}function k(e,t,n,r){n.time-t.time!=0?e.value[r]=(e.time-t.time)*(n.value[r]-t.value[r])/(n.time-t.time)+t.value[r]:e.value[r]=t.value[r]}
// animation clips
function S(e){const t=[],n=e.name,i=e.end-e.start||-1,a=e.animations;for(let e=0,n=a.length;e<n;e++){const n=y(a[e]);for(let e=0,r=n.length;e<r;e++)t.push(n[e])}return new r.b(n,i,t)}function B(e){return p(Je.clips[e],S)}
// controller
function M(e){const t={sources:{}};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"bind_shape_matrix":t.bindShapeMatrix=o(r.textContent);break;case"source":const e=r.getAttribute("id");t.sources[e]=se(r);break;case"joints":t.joints=T(r);break;case"vertex_weights":t.vertexWeights=O(r)}}return t}function T(e){const t={inputs:{}};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"input"===r.nodeName){const e=r.getAttribute("semantic"),n=c(r.getAttribute("source"));t.inputs[e]=n}}return t}function O(e){const t={inputs:{}};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"input":const e=r.getAttribute("semantic"),n=c(r.getAttribute("source")),i=parseInt(r.getAttribute("offset"));t.inputs[e]={id:n,offset:i};break;case"vcount":t.vcount=s(r.textContent);break;case"v":t.v=s(r.textContent)}}return t}function D(e){const t={id:e.id},n=Je.geometries[t.id];return void 0!==e.skin&&(t.skin=function(e){const t=4,n={joints:[],// this must be an array to preserve the joint order
indices:{array:[],stride:t},weights:{array:[],stride:t}},i=e.sources,a=e.vertexWeights,o=a.vcount,s=a.v,c=a.inputs.JOINT.offset,l=a.inputs.WEIGHT.offset,u=e.sources[e.joints.inputs.JOINT],h=e.sources[e.joints.inputs.INV_BIND_MATRIX],f=i[a.inputs.WEIGHT.id].array;let d,p,g,m=0;
// procces skin data for each vertex
for(d=0,g=o.length;d<g;d++){const e=o[d],r=[];// this is the amount of joints that affect a single vertex
for(p=0;p<e;p++){const e=s[m+c],t=f[s[m+l]];r.push({index:e,weight:t}),m+=2}
// we sort the joints in descending order based on the weights.
// this ensures, we only procced the most important joints of the vertex
// now we provide for each vertex a set of four index and weight values.
// the order of the skin data matches the order of vertices
for(r.sort(v),p=0;p<t;p++){const e=r[p];void 0!==e?(n.indices.array.push(e.index),n.weights.array.push(e.weight)):(n.indices.array.push(0),n.weights.array.push(0))}}
// setup bind matrix
e.bindShapeMatrix?n.bindMatrix=(new r.V).fromArray(e.bindShapeMatrix).transpose():n.bindMatrix=(new r.V).identity();
// process bones and inverse bind matrix data
for(d=0,g=u.array.length;d<g;d++){const e=u.array[d],t=(new r.V).fromArray(h.array,d*h.stride).transpose();n.joints.push({name:e,boneInverse:t})}return n;
// array sort function
function v(e,t){return t.weight-e.weight}}(e.skin),
// we enhance the 'sources' property of the corresponding geometry with our skin data
n.sources.skinIndices=t.skin.indices,n.sources.skinWeights=t.skin.weights),t}function P(e){return void 0!==e.build?e.build:e.init_from}function L(e){const t=Je.images[e];return void 0!==t?p(t,P):null}
// effect
function Q(e){const t={surfaces:{},samplers:{}};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"newparam":R(r,t);break;case"technique":t.technique=F(r);break;case"extra":t.extra=W(r)}}return t}function R(e,t){const n=e.getAttribute("sid");for(let r=0,i=e.childNodes.length;r<i;r++){const i=e.childNodes[r];if(1===i.nodeType)switch(i.nodeName){case"surface":t.surfaces[n]=j(i);break;case"sampler2D":t.samplers[n]=N(i)}}}function j(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"init_from"===r.nodeName)t.init_from=r.textContent}return t}function N(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"source"===r.nodeName)t.source=r.textContent}return t}function F(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"constant":case"lambert":case"blinn":case"phong":t.type=r.nodeName,t.parameters=z(r);break;case"extra":t.extra=W(r)}}return t}function z(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":t[r.nodeName]=H(r);break;case"transparent":t[r.nodeName]={opaque:r.hasAttribute("opaque")?r.getAttribute("opaque"):"A_ONE",data:H(r)}}}return t}function H(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"color":t[r.nodeName]=o(r.textContent);break;case"float":t[r.nodeName]=parseFloat(r.textContent);break;case"texture":t[r.nodeName]={id:r.getAttribute("texture"),extra:U(r)}}}return t}function U(e){const t={technique:{}};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"extra"===r.nodeName)G(r,t)}return t}function G(e,t){for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"technique"===r.nodeName)V(r,t)}}function V(e,t){for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":t.technique[r.nodeName]=parseFloat(r.textContent);break;case"wrapU":case"wrapV":
// some files have values for wrapU/wrapV which become NaN via parseInt
"TRUE"===r.textContent.toUpperCase()?t.technique[r.nodeName]=1:"FALSE"===r.textContent.toUpperCase()?t.technique[r.nodeName]=0:t.technique[r.nodeName]=parseInt(r.textContent);break;case"bump":t[r.nodeName]=Y(r)}}}function W(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"technique"===r.nodeName)t.technique=q(r)}return t}function q(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"double_sided":t[r.nodeName]=parseInt(r.textContent);break;case"bump":t[r.nodeName]=Y(r)}}return t}function Y(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"texture"===r.nodeName)t[r.nodeName]={id:r.getAttribute("texture"),texcoord:r.getAttribute("texcoord"),extra:U(r)}}return t}function K(e){return e}function $(e){const t=(n=e.url,p(Je.effects[n],K));var n;
// material
const i=t.profile.technique;let a;switch(i.type){case"phong":case"blinn":a=new r.Z;break;case"lambert":a=new r.Y;break;default:a=new r.X}function o(e,n=null){const i=t.profile.samplers[e.id];let a=null;
// get image
if(void 0!==i){a=L(t.profile.surfaces[i.source].init_from)}else a=L(e.id);
// create texture if image is avaiable
if(null!==a){const t=function(e){let t,n=e.slice(2+(e.lastIndexOf(".")-1>>>0));// http://www.jstips.co/en/javascript/get-file-extension/
n=n.toLowerCase(),t="tga"===n?We:Ve;return t}(a);if(void 0!==t){const i=t.load(a),o=e.extra;if(void 0!==o&&void 0!==o.technique&&!1===l(o.technique)){const e=o.technique;i.wrapS=e.wrapU?r.xb:r.h,i.wrapT=e.wrapV?r.xb:r.h,i.offset.set(e.offsetU||0,e.offsetV||0),i.repeat.set(e.repeatU||1,e.repeatV||1)}else i.wrapS=r.xb,i.wrapT=r.xb;return null!==n&&(i.encoding=n),i}return null}return null}a.name=e.name||"";const s=i.parameters;for(const e in s){const t=s[e];switch(e){case"diffuse":t.color&&a.color.fromArray(t.color),t.texture&&(a.map=o(t.texture,r.Tb));break;case"specular":t.color&&a.specular&&a.specular.fromArray(t.color),t.texture&&(a.specularMap=o(t.texture));break;case"bump":t.texture&&(a.normalMap=o(t.texture));break;case"ambient":t.texture&&(a.lightMap=o(t.texture,r.Tb));break;case"shininess":t.float&&a.shininess&&(a.shininess=t.float);break;case"emission":t.color&&a.emissive&&a.emissive.fromArray(t.color),t.texture&&(a.emissiveMap=o(t.texture,r.Tb))}}a.color.convertSRGBToLinear(),a.specular&&a.specular.convertSRGBToLinear(),a.emissive&&a.emissive.convertSRGBToLinear();
let c=s.transparent,u=s.transparency;if(
// <transparency> does not exist but <transparent>
void 0===u&&c&&(u={float:1}),
// <transparent> does not exist but <transparency>
void 0===c&&u&&(c={opaque:"A_ONE",data:{color:[1,1,1,1]}}),c&&u)
// handle case if a texture exists but no color
if(c.data.texture)
// we do not set an alpha map (see #13792)
a.transparent=!0;else{const e=c.data.color;switch(c.opaque){case"A_ONE":a.opacity=e[3]*u.float;break;case"RGB_ZERO":a.opacity=1-e[0]*u.float;break;case"A_ZERO":a.opacity=1-e[3]*u.float;break;case"RGB_ONE":a.opacity=e[0]*u.float}a.opacity<1&&(a.transparent=!0)}

if(void 0!==i.extra&&void 0!==i.extra.technique){const e=i.extra.technique;for(const t in e){const n=e[t];switch(t){case"double_sided":a.side=1===n?r.p:r.v;break;case"bump":a.normalMap=o(n.texture),a.normalScale=new r.Ob(1,1)}}}return a}function J(e){return p(Je.materials[e],$)}
// camera
function X(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if("technique_common"===n.nodeName)return Z(n)}return{}}function Z(e){const t={};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];switch(r.nodeName){case"perspective":case"orthographic":t.technique=r.nodeName,t.parameters=ee(r)}}return t}function ee(e){const t={};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];switch(r.nodeName){case"xfov":case"yfov":case"xmag":case"ymag":case"znear":case"zfar":case"aspect_ratio":t[r.nodeName]=parseFloat(r.textContent)}}return t}function te(e){let t;switch(e.optics.technique){case"perspective":t=new r.kb(e.optics.parameters.yfov,e.optics.parameters.aspect_ratio,e.optics.parameters.znear,e.optics.parameters.zfar);break;case"orthographic":let n=e.optics.parameters.ymag,i=e.optics.parameters.xmag;const a=e.optics.parameters.aspect_ratio;i=void 0===i?n*a:i,n=void 0===n?i/a:n,i*=.5,n*=.5,t=new r.jb(-i,i,n,-n,// left, right, top, bottom
e.optics.parameters.znear,e.optics.parameters.zfar);break;default:t=new r.kb}return t.name=e.name||"",t}function ne(e){const t=Je.cameras[e];return void 0!==t?p(t,te):null}
// light
function re(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"directional":case"point":case"spot":case"ambient":t.technique=r.nodeName,t.parameters=ie(r)}}return t}function ie(e){const t={};for(let n=0,i=e.childNodes.length;n<i;n++){const i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"color":const e=o(i.textContent);t.color=(new r.j).fromArray(e).convertSRGBToLinear();break;case"falloff_angle":t.falloffAngle=parseFloat(i.textContent);break;case"quadratic_attenuation":const n=parseFloat(i.textContent);t.distance=n?Math.sqrt(1/n):0}}return t}function ae(e){let t;switch(e.technique){case"directional":t=new r.o;break;case"point":t=new r.lb;break;case"spot":t=new r.Eb;break;case"ambient":t=new r.a}return e.parameters.color&&t.color.copy(e.parameters.color),e.parameters.distance&&(t.distance=e.parameters.distance),t}function oe(e){const t=Je.lights[e];return void 0!==t?p(t,ae):null}
// geometry
function se(e){const t={array:[],stride:3};for(let r=0;r<e.childNodes.length;r++){const i=e.childNodes[r];if(1===i.nodeType)switch(i.nodeName){case"float_array":t.array=o(i.textContent);break;case"Name_array":t.array=a(i.textContent);break;case"technique_common":const e=n(i,"accessor")[0];void 0!==e&&(t.stride=parseInt(e.getAttribute("stride")))}}return t}function ce(e){const t={};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];1===r.nodeType&&(t[r.getAttribute("semantic")]=c(r.getAttribute("source")))}return t}function le(e){const t={type:e.nodeName,material:e.getAttribute("material"),count:parseInt(e.getAttribute("count")),inputs:{},stride:0,hasUV:!1};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"input":const e=c(r.getAttribute("source")),n=r.getAttribute("semantic"),i=parseInt(r.getAttribute("offset")),a=parseInt(r.getAttribute("set")),o=a>0?n+a:n;t.inputs[o]={id:e,offset:i},t.stride=Math.max(t.stride,i+1),"TEXCOORD"===n&&(t.hasUV=!0);break;case"vcount":t.vcount=s(r.textContent);break;case"p":t.p=s(r.textContent)}}return t}function ue(e){let t=0;for(let n=0,r=e.length;n<r;n++){!0===e[n].hasUV&&t++}t>0&&t<e.length&&(e.uvsNeedsFix=!0)}function he(e){const t={},n=e.sources,r=e.vertices,i=e.primitives;if(0===i.length)return{};
// our goal is to create one buffer geometry for a single type of primitives
// first, we group all primitives by their type
const a=function(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];void 0===t[r.type]&&(t[r.type]=[]),t[r.type].push(r)}return t}(i);for(const e in a){const i=a[e];
// second, ensure consistent uv coordinates for each type of primitives (polylist,triangles or lines)
ue(i),
// third, create a buffer geometry for each type of primitives
t[e]=fe(i,n,r)}return t}function fe(e,t,n){const i={},a={array:[],stride:0},o={array:[],stride:0},s={array:[],stride:0},c={array:[],stride:0},l={array:[],stride:0},u=[],h=4,f=[],d=4,p=new r.g,g=[];let m=0;for(let r=0;r<e.length;r++){const i=e[r],h=i.inputs;
// groups
let d=0;switch(i.type){case"lines":case"linestrips":d=2*i.count;break;case"triangles":d=3*i.count;break;case"polylist":for(let e=0;e<i.count;e++){const t=i.vcount[e];switch(t){case 3:d+=3;// single triangle
break;case 4:d+=6;// quad, subdivided into two triangles
break;default:d+=3*(t-2)}}}p.addGroup(m,d,r),m+=d,
// material
i.material&&g.push(i.material);
// geometry data
for(const r in h){const d=h[r];switch(r){case"VERTEX":for(const r in n){const h=n[r];switch(r){case"POSITION":const n=a.array.length;
// see #3803
if(de(i,t[h],d.offset,a.array),a.stride=t[h].stride,t.skinWeights&&t.skinIndices&&(de(i,t.skinIndices,d.offset,u),de(i,t.skinWeights,d.offset,f)),!1===i.hasUV&&!0===e.uvsNeedsFix){const e=(a.array.length-n)/a.stride;for(let t=0;t<e;t++)
// fill missing uv coordinates
s.array.push(0,0)}break;case"NORMAL":de(i,t[h],d.offset,o.array),o.stride=t[h].stride;break;case"COLOR":de(i,t[h],d.offset,l.array),l.stride=t[h].stride;break;case"TEXCOORD":de(i,t[h],d.offset,s.array),s.stride=t[h].stride;break;case"TEXCOORD1":de(i,t[h],d.offset,c.array),s.stride=t[h].stride}}break;case"NORMAL":de(i,t[d.id],d.offset,o.array),o.stride=t[d.id].stride;break;case"COLOR":de(i,t[d.id],d.offset,l.array,!0),l.stride=t[d.id].stride;break;case"TEXCOORD":de(i,t[d.id],d.offset,s.array),s.stride=t[d.id].stride;break;case"TEXCOORD1":de(i,t[d.id],d.offset,c.array),c.stride=t[d.id].stride}}}
// build geometry
return a.array.length>0&&p.setAttribute("position",new r.u(a.array,a.stride)),o.array.length>0&&p.setAttribute("normal",new r.u(o.array,o.stride)),l.array.length>0&&p.setAttribute("color",new r.u(l.array,l.stride)),s.array.length>0&&p.setAttribute("uv",new r.u(s.array,s.stride)),c.array.length>0&&p.setAttribute("uv2",new r.u(c.array,c.stride)),u.length>0&&p.setAttribute("skinIndex",new r.u(u,h)),f.length>0&&p.setAttribute("skinWeight",new r.u(f,d)),i.data=p,i.type=e[0].type,i.materialKeys=g,i}function de(e,t,n,r,i=!1){const a=e.p,o=e.stride,s=e.vcount;function c(e){let t=a[e+n]*u;const o=t+u;for(;t<o;t++)r.push(l[t]);if(i){
// convert the vertex colors from srgb to linear if present
const e=r.length-u-1;qe.setRGB(r[e+0],r[e+1],r[e+2]).convertSRGBToLinear(),r[e+0]=qe.r,r[e+1]=qe.g,r[e+2]=qe.b}}const l=t.array,u=t.stride;if(void 0!==e.vcount){let e=0;for(let t=0,n=s.length;t<n;t++){const n=s[t];if(4===n){const t=e+1*o,n=e+2*o,r=e+3*o;c(e+0*o),c(t),c(r),c(t),c(n),c(r)}else if(3===n){const t=e+1*o,n=e+2*o;c(e+0*o),c(t),c(n)}else if(n>4)for(let t=1,r=n-2;t<=r;t++){const n=e+o*t,r=e+o*(t+1);c(e+0*o),c(n),c(r)}e+=o*n}}else for(let e=0,t=a.length;e<t;e+=o)c(e)}function pe(e){return p(Je.geometries[e],he)}
// kinematics
function ge(e){return void 0!==e.build?e.build:e}function me(e,t){for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"joint":t.joints[r.getAttribute("sid")]=ve(r);break;case"link":t.links.push(Ae(r))}}}function ve(e){let t;for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"prismatic":case"revolute":t=ye(r)}}return t}function ye(e){const t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",axis:new r.Pb,limits:{min:0,max:0},type:e.nodeName,static:!1,zeroPosition:0,middlePosition:0};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":const e=o(r.textContent);t.axis.fromArray(e);break;case"limits":const n=r.getElementsByTagName("max")[0],i=r.getElementsByTagName("min")[0];t.limits.max=parseFloat(n.textContent),t.limits.min=parseFloat(i.textContent)}}
// if min is equal to or greater than max, consider the joint static
return t.limits.min>=t.limits.max&&(t.static=!0),
// calculate middle position
t.middlePosition=(t.limits.min+t.limits.max)/2,t}function Ae(e){const t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"attachment_full":t.attachments.push(be(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(we(r))}}return t}function be(e){const t={joint:e.getAttribute("joint").split("/").pop(),transforms:[],links:[]};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"link":t.links.push(Ae(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(we(r))}}return t}function we(e){const t={type:e.nodeName},n=o(e.textContent);switch(t.type){case"matrix":t.obj=new r.V,t.obj.fromArray(n).transpose();break;case"translate":t.obj=new r.Pb,t.obj.fromArray(n);break;case"rotate":t.obj=new r.Pb,t.obj.fromArray(n),t.angle=r.T.degToRad(n[3])}return t}
// physics
function xe(e,t){for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType&&"technique_common"===r.nodeName)Ce(r,t)}}function Ce(e,t){for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"inertia":t.inertia=o(r.textContent);break;case"mass":t.mass=o(r.textContent)[0]}}}
// scene
function _e(e){const t={target:e.getAttribute("target").split("/").pop()};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType&&"axis"===r.nodeName){const e=r.getElementsByTagName("param")[0];t.axis=e.textContent;const n=t.axis.split("inst_").pop().split("axis")[0];t.jointIndex=n.substring(0,n.length-1)}}return t}function Ie(e){return void 0!==e.build?e.build:e}function Ee(e){const t=[],n=He.querySelector('[id="'+e.id+'"]');for(let e=0;e<n.childNodes.length;e++){const i=n.childNodes[e];if(1!==i.nodeType)continue;let a,s;switch(i.nodeName){case"matrix":a=o(i.textContent);const e=(new r.V).fromArray(a).transpose();t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:e});break;case"translate":case"scale":a=o(i.textContent),s=(new r.Pb).fromArray(a),t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:s});break;case"rotate":a=o(i.textContent),s=(new r.Pb).fromArray(a);const n=r.T.degToRad(a[3]);t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:s,angle:n})}}return t}
// nodes
const ke=new r.V,Se=new r.Pb;function Be(e){const t={name:e.getAttribute("name")||"",type:e.getAttribute("type"),id:e.getAttribute("id"),sid:e.getAttribute("sid"),matrix:new r.V,nodes:[],instanceCameras:[],instanceControllers:[],instanceLights:[],instanceGeometries:[],instanceNodes:[],transforms:{}};for(let n=0;n<e.childNodes.length;n++){const i=e.childNodes[n];if(1!==i.nodeType)continue;let a;switch(i.nodeName){case"node":t.nodes.push(i.getAttribute("id")),Be(i);break;case"instance_camera":t.instanceCameras.push(c(i.getAttribute("url")));break;case"instance_controller":t.instanceControllers.push(Me(i));break;case"instance_light":t.instanceLights.push(c(i.getAttribute("url")));break;case"instance_geometry":t.instanceGeometries.push(Me(i));break;case"instance_node":t.instanceNodes.push(c(i.getAttribute("url")));break;case"matrix":a=o(i.textContent),t.matrix.multiply(ke.fromArray(a).transpose()),t.transforms[i.getAttribute("sid")]=i.nodeName;break;case"translate":a=o(i.textContent),Se.fromArray(a),t.matrix.multiply(ke.makeTranslation(Se.x,Se.y,Se.z)),t.transforms[i.getAttribute("sid")]=i.nodeName;break;case"rotate":a=o(i.textContent);const e=r.T.degToRad(a[3]);t.matrix.multiply(ke.makeRotationAxis(Se.fromArray(a),e)),t.transforms[i.getAttribute("sid")]=i.nodeName;break;case"scale":a=o(i.textContent),t.matrix.scale(Se.fromArray(a)),t.transforms[i.getAttribute("sid")]=i.nodeName}}return Re(t.id)||(Je.nodes[t.id]=t),t}function Me(e){const t={id:c(e.getAttribute("url")),materials:{},skeletons:[]};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];switch(r.nodeName){case"bind_material":const e=r.getElementsByTagName("instance_material");for(let n=0;n<e.length;n++){const r=e[n],i=r.getAttribute("symbol"),a=r.getAttribute("target");t.materials[i]=c(a)}break;case"skeleton":t.skeletons.push(c(r.textContent))}}return t}function Te(e,t){const n=[],i=[];let a,o,s;
// a skeleton can have multiple root bones. collada expresses this
// situtation with multiple "skeleton" tags per controller instance
for(a=0;a<e.length;a++){const r=e[a];let i;if(Re(r))i=je(r),Oe(i,t,n);else if(c=r,void 0!==Je.visualScenes[c]){
// handle case where the skeleton refers to the visual scene (#13335)
const e=Je.visualScenes[r].children;for(let r=0;r<e.length;r++){const i=e[r];if("JOINT"===i.type){Oe(je(i.id),t,n)}}}}
// sort bone data (the order is defined in the corresponding controller)
var c;for(a=0;a<t.length;a++)for(o=0;o<n.length;o++)if(s=n[o],s.bone.name===t[a].name){i[a]=s,s.processed=!0;break}
// add unprocessed bone data at the end of the list
for(a=0;a<n.length;a++)s=n[a],!1===s.processed&&(i.push(s),s.processed=!0);
// setup arrays for skeleton creation
const l=[],u=[];for(a=0;a<i.length;a++)s=i[a],l.push(s.bone),u.push(s.boneInverse);return new r.Ab(l,u)}function Oe(e,t,n){
// setup bone data from visual scene
e.traverse((function(e){if(!0===e.isBone){let i;
// retrieve the boneInverse from the controller data
for(let n=0;n<t.length;n++){const r=t[n];if(r.name===e.name){i=r.boneInverse;break}}void 0===i&&(
// Unfortunately, there can be joints in the visual scene that are not part of the
// corresponding controller. In this case, we have to create a dummy boneInverse matrix
// for the respective bone. This bone won't affect any vertices, because there are no skin indices
// and weights defined for it. But we still have to add the bone to the sorted bone list in order to
// ensure a correct animation of the model.
i=new r.V),n.push({bone:e,boneInverse:i,processed:!1})}}))}function De(e){const t=[],n=e.matrix,i=e.nodes,a=e.type,o=e.instanceCameras,s=e.instanceControllers,c=e.instanceLights,l=e.instanceGeometries,u=e.instanceNodes;
// nodes
for(let e=0,n=i.length;e<n;e++)t.push(je(i[e]));
// instance cameras
for(let e=0,n=o.length;e<n;e++){const n=ne(o[e]);null!==n&&t.push(n.clone())}
// instance controllers
for(let e=0,n=s.length;e<n;e++){const n=s[e],r=(h=n.id,p(Je.controllers[h],D)),i=Qe(pe(r.id),n.materials),a=Te(n.skeletons,r.skin.joints);for(let e=0,n=i.length;e<n;e++){const n=i[e];n.isSkinnedMesh&&(n.bind(a,r.skin.bindMatrix),n.normalizeSkinWeights()),t.push(n)}}
// instance lights
var h;
// image
for(let e=0,n=c.length;e<n;e++){const n=oe(c[e]);null!==n&&t.push(n.clone())}
// instance geometries
for(let e=0,n=l.length;e<n;e++){const n=l[e],r=Qe(pe(n.id),n.materials);
// a single geometry instance in collada can lead to multiple object3Ds.
// this is the case when primitives are combined like triangles and lines
for(let e=0,n=r.length;e<n;e++)t.push(r[e])}
// instance nodes
for(let e=0,n=u.length;e<n;e++)t.push(je(u[e]).clone());let f;if(0===i.length&&1===t.length)f=t[0];else{f="JOINT"===a?new r.d:new r.w;for(let e=0;e<t.length;e++)f.add(t[e])}return f.name="JOINT"===a?e.sid:e.name,f.matrix.copy(n),f.matrix.decompose(f.position,f.quaternion,f.scale),f}const Pe=new r.X({color:16711935});function Le(e,t){const n=[];for(let r=0,i=e.length;r<i;r++){const i=t[e[r]];void 0===i?n.push(Pe):n.push(J(i))}return n}function Qe(e,t){const n=[];for(const i in e){const a=e[i],o=Le(a.materialKeys,t);
// Collada allows to use phong and lambert materials with lines. Replacing these cases with LineBasicMaterial.
if(
// handle case if no materials are defined
0===o.length&&("lines"===i||"linestrips"===i?o.push(new r.H):o.push(new r.Z)),"lines"===i||"linestrips"===i)for(let e=0,t=o.length;e<t;e++){const t=o[e];if(!0===t.isMeshPhongMaterial||!0===t.isMeshLambertMaterial){const n=new r.H;
// copy compatible properties
n.color.copy(t.color),n.opacity=t.opacity,n.transparent=t.transparent,
// replace material
o[e]=n}}
// regard skinning
const s=void 0!==a.data.attributes.skinIndex,c=1===o.length?o[0]:o;
// choose between a single or multi materials (material array)
// now create a specific 3D object
let l;switch(i){case"lines":l=new r.J(a.data,c);break;case"linestrips":l=new r.G(a.data,c);break;case"triangles":case"polylist":l=s?new r.Bb(a.data,c):new r.W(a.data,c)}n.push(l)}return n}function Re(e){return void 0!==Je.nodes[e]}function je(e){return p(Je.nodes[e],De)}
// visual scenes
function Ne(e){const t=new r.w;t.name=e.name;const n=e.children;for(let e=0;e<n.length;e++){const r=n[e];t.add(je(r.id))}return t}function Fe(e){return p(Je.visualScenes[e],Ne)}
// scenes
if(0===e.length)return{scene:new r.zb};const ze=(new DOMParser).parseFromString(e,"application/xml"),He=n(ze,"COLLADA")[0],Ue=ze.getElementsByTagName("parsererror")[0];if(void 0!==Ue){
// Chrome will return parser error with a div in it
const e=n(Ue,"div")[0];let t;return t=e?e.textContent:
// convert the parser error element into text with each child elements text
// separated by new lines.
function(e){let t="";const n=[e];for(;n.length;){const e=n.shift();e.nodeType===Node.TEXT_NODE?t+=e.textContent:(t+="\n",n.push.apply(n,e.childNodes))}return t.trim()}(Ue),null}
// metadata
He.getAttribute("version");const Ge=function(e){return{unit:u(n(e,"unit")[0]),upAxis:h(n(e,"up_axis")[0])}}(n(He,"asset")[0]),Ve=new r.Jb(this.manager);let We;Ve.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin),i.a&&(We=new i.a(this.manager),We.setPath(this.resourcePath||t));
const qe=new r.j,Ye=[];let Ke={},$e=0;
const Je={animations:{},clips:{},controllers:{},images:{},effects:{},materials:{},cameras:{},lights:{},geometries:{},nodes:{},visualScenes:{},kinematicsModels:{},physicsModels:{},kinematicsScenes:{}};f(He,"library_animations","animation",(function e(t){const n={sources:{},samplers:{},channels:{}};let i=!1;for(let r=0,a=t.childNodes.length;r<a;r++){const a=t.childNodes[r];if(1!==a.nodeType)continue;let o;switch(a.nodeName){case"source":o=a.getAttribute("id"),n.sources[o]=se(a);break;case"sampler":o=a.getAttribute("id"),n.samplers[o]=g(a);break;case"channel":o=a.getAttribute("target"),n.channels[o]=m(a);break;case"animation":
// hierarchy of related animations
e(a),i=!0}}!1===i&&(
// since 'id' attributes can be optional, it's necessary to generate a UUID for unqiue assignment
Je.animations[t.getAttribute("id")||r.T.generateUUID()]=n)})),f(He,"library_animation_clips","animation_clip",(function(e){const t={name:e.getAttribute("id")||"default",start:parseFloat(e.getAttribute("start")||0),end:parseFloat(e.getAttribute("end")||0),animations:[]};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"instance_animation"===r.nodeName)t.animations.push(c(r.getAttribute("url")))}Je.clips[e.getAttribute("id")]=t})),f(He,"library_controllers","controller",(function(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"skin":
// there is exactly one skin per controller
t.id=c(r.getAttribute("source")),t.skin=M(r);break;case"morph":t.id=c(r.getAttribute("source"))}}Je.controllers[e.getAttribute("id")]=t})),f(He,"library_images","image",(function(e){const t={init_from:n(e,"init_from")[0].textContent};Je.images[e.getAttribute("id")]=t})),f(He,"library_effects","effect",(function(e){const t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"profile_COMMON"===r.nodeName)t.profile=Q(r)}Je.effects[e.getAttribute("id")]=t})),f(He,"library_materials","material",(function(e){const t={name:e.getAttribute("name")};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"instance_effect"===r.nodeName)t.url=c(r.getAttribute("url"))}Je.materials[e.getAttribute("id")]=t})),f(He,"library_cameras","camera",(function(e){const t={name:e.getAttribute("name")};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"optics"===r.nodeName)t.optics=X(r)}Je.cameras[e.getAttribute("id")]=t})),f(He,"library_lights","light",(function(e){let t={};for(let n=0,r=e.childNodes.length;n<r;n++){const r=e.childNodes[n];if(1===r.nodeType&&"technique_common"===r.nodeName)t=re(r)}Je.lights[e.getAttribute("id")]=t})),f(He,"library_geometries","geometry",(function(e){const t={name:e.getAttribute("name"),sources:{},vertices:{},primitives:[]},r=n(e,"mesh")[0];
// the following tags inside geometry are not supported yet (see https://github.com/mrdoob/three.js/pull/12606): convex_mesh, spline, brep
if(void 0!==r){for(let e=0;e<r.childNodes.length;e++){const n=r.childNodes[e];if(1!==n.nodeType)continue;const i=n.getAttribute("id");switch(n.nodeName){case"source":t.sources[i]=se(n);break;case"vertices":
// data.sources[ id ] = data.sources[ parseId( getElementsByTagName( child, 'input' )[ 0 ].getAttribute( 'source' ) ) ];
t.vertices=ce(n);break;case"polygons":break;case"lines":case"linestrips":case"polylist":case"triangles":t.primitives.push(le(n))}}Je.geometries[e.getAttribute("id")]=t}})),f(He,"library_nodes","node",Be),f(He,"library_visual_scenes","visual_scene",(function(e){const t={name:e.getAttribute("name"),children:[]};!function(e){const t=e.getElementsByTagName("node");
// ensure all node elements have id attributes
for(let e=0;e<t.length;e++){const n=t[e];!1===n.hasAttribute("id")&&n.setAttribute("id","three_default_"+$e++)}}(e);const r=n(e,"node");for(let e=0;e<r.length;e++)t.children.push(Be(r[e]));Je.visualScenes[e.getAttribute("id")]=t})),f(He,"library_kinematics_models","kinematics_model",(function(e){const t={name:e.getAttribute("name")||"",joints:{},links:[]};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType&&"technique_common"===r.nodeName)me(r,t)}Je.kinematicsModels[e.getAttribute("id")]=t})),f(He,"library_physics_models","physics_model",(function(e){const t={name:e.getAttribute("name")||"",rigidBodies:{}};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType&&"rigid_body"===r.nodeName)t.rigidBodies[r.getAttribute("name")]={},xe(r,t.rigidBodies[r.getAttribute("name")])}Je.physicsModels[e.getAttribute("id")]=t})),f(He,"scene","instance_kinematics_scene",(function(e){const t={bindJointAxis:[]};for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if(1===r.nodeType&&"bind_joint_axis"===r.nodeName)t.bindJointAxis.push(_e(r))}Je.kinematicsScenes[c(e.getAttribute("url"))]=t})),d(Je.animations,v),d(Je.clips,S),d(Je.controllers,D),d(Je.images,P),d(Je.effects,K),d(Je.materials,$),d(Je.cameras,te),d(Je.lights,ae),d(Je.geometries,he),d(Je.visualScenes,Ne),function(){const e=Je.clips;if(!0===l(e)){if(!1===l(Je.animations)){
// if there are animations but no clips, we create a default clip for playback
const e=[];for(const t in Je.animations){const n=y(t);for(let t=0,r=n.length;t<r;t++)e.push(n[t])}Ye.push(new r.b("default",-1,e))}}else for(const t in e)Ye.push(B(t))}(),function(){const e=Object.keys(Je.kinematicsModels)[0],t=Object.keys(Je.kinematicsScenes)[0],n=Object.keys(Je.visualScenes)[0];if(void 0===e||void 0===t)return;const i=(a=e,p(Je.kinematicsModels[a],ge));var a;const o=function(e){return p(Je.kinematicsScenes[e],Ie)}(t),s=Fe(n),c=o.bindJointAxis,l={};for(let e=0,t=c.length;e<t;e++){const t=c[e],n=He.querySelector('[sid="'+t.target+'"]');
// the result of the following query is an element of type 'translate', 'rotate','scale' or 'matrix'
if(n){
// get the parent of the transform element
const e=n.parentElement;
// connect the joint of the kinematics model with the element in the visual scene
u(t.jointIndex,e)}}function u(e,t){const n=t.getAttribute("name"),r=i.joints[e];s.traverse((function(i){i.name===n&&(l[e]={object:i,transforms:Ee(t),joint:r,position:r.zeroPosition})}))}const h=new r.V;Ke={joints:i&&i.joints,getJointValue:function(e){const t=l[e];if(t)return t.position},setJointValue:function(e,t){const n=l[e];if(n){const i=n.joint;if(t>i.limits.max||t<i.limits.min);else if(i.static);else{const a=n.object,o=i.axis,s=n.transforms;ke.identity();
// each update, we have to apply all transforms in the correct order
for(let n=0;n<s.length;n++){const a=s[n];
// if there is a connection of the transform node with a joint, apply the joint value
if(a.sid&&-1!==a.sid.indexOf(e))switch(i.type){case"revolute":ke.multiply(h.makeRotationAxis(o,r.T.degToRad(t)));break;case"prismatic":ke.multiply(h.makeTranslation(o.x*t,o.y*t,o.z*t))}else switch(a.type){case"matrix":ke.multiply(a.obj);break;case"translate":ke.multiply(h.makeTranslation(a.obj.x,a.obj.y,a.obj.z));break;case"scale":ke.scale(a.obj);break;case"rotate":ke.multiply(h.makeRotationAxis(a.obj,a.angle))}}a.matrix.copy(ke),a.matrix.decompose(a.position,a.quaternion,a.scale),l[e].position=t}}}}}();const Xe=function(e){return Fe(c(n(e,"instance_visual_scene")[0].getAttribute("url")))}(n(He,"scene")[0]);return Xe.animations=Ye,"Z_UP"===Ge.upAxis&&Xe.rotation.set(-Math.PI/2,0,0),Xe.scale.multiplyScalar(Ge.unit),{get animations(){return Ye},kinematics:Ke,library:Je,scene:Xe}}}
/***/},
/***/b980:
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},
/***/b9c7:
/***/function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},
/***/ba01:
/***/function(e,t,n){e.exports=n("051b");
/***/},
/***/ba70:
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=n("2ce8"),o=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:a)(n),o(r))}}})},
/***/badf:
/***/function(e,t,n){var r=n("642a"),i=n("1838"),a=n("cd9d"),o=n("6747"),s=n("f9ce");
/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */e.exports=function(e){
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},
/***/bb2f:
/***/function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
return Object.isExtensible(Object.preventExtensions({}))}))},
/***/bbc0:
/***/function(e,t,n){var r=n("6044"),i=Object.prototype.hasOwnProperty;
/** Used to stand-in for `undefined` hash values. */e.exports=
/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},
/***/bc3a:
/***/function(e,t,n){e.exports=n("cee4");
/***/},
/***/bc96:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/bc9b:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("f0ce"),i=n("2332");
/* harmony import */
/* harmony default export */t.a=
/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function(e){if(!Object(i.a)(e))return!1;
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var t=Object(r.a)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},
/***/bcd0:
/***/function(e,t,n){"use strict";
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var r=n("f937"),i=Date.prototype.getTime,a=Date.prototype.toISOString,o=function(e){return e>9?e:"0"+e};
// PhantomJS / old WebKit has a broken implementations
e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:a},
/***/bcdf:
/***/function(e,t){e.exports=
/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function(){
// No operation performed.
}},
/***/bcf7:
/***/function(e,t,n){var r=n("9020"),i=n("217d").each;
/**
 * Represents a single media query, manages it's state and registered handlers for this query
 *
 * @constructor
 * @param {string} query the media query string
 * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
 */
function a(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){
// Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly
n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}a.prototype={constuctor:a,
/**
     * add a handler for this query, triggering if already active
     *
     * @param {object} handler
     * @param {function} handler.match callback for when query is activated
     * @param {function} [handler.unmatch] callback for when query is deactivated
     * @param {function} [handler.setup] callback for immediate execution when a query handler is registered
     * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
     */
addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},
/**
     * removes the given handler from the collection, and calls it's destroy methods
     *
     * @param {object || function} handler the handler to remove
     */
removeHandler:function(e){var t=this.handlers;i(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1);//remove from array and exit each early
}))},
/**
     * Determine whether the media query should be considered a match
     *
     * @return {Boolean} true if media query can be considered a match, false otherwise
     */
matches:function(){return this.mql.matches||this.isUnconditional},
/**
     * Clears all handlers and unbinds events
     */
clear:function(){i(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},
/*
        * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
        */
assess:function(){var e=this.matches()?"on":"off";i(this.handlers,(function(t){t[e]()}))}},e.exports=a},
/***/bd0c:
/***/function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=42)}([function(e,t){e.exports=function(e,t,n,r){var i,a=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(i=e,a=e.default);var s="function"==typeof a?a.options:a;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=s.computed||(s.computed={});Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}}))}return{esModule:i,exports:a,options:s}}},function(e,t,n){var r,i,a,o;o=function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(){var e=this.unload,t=this.renderByParent,n=this.$parent;t&&n.reload(),e()}Object.defineProperty(t,"__esModule",{value:!0});var i={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},a=function e(t){return t.abstract||t.$el===t.$children[0].$el?e(t.$parent):t},o=function e(t){n(this,e),this.methods={ready:function(){var e=a(this.$parent),t=this.BMap=e.BMap,n=this.map=e.map;this.load(),this.$emit("ready",{BMap:t,map:n})},transmitEvent:function(e){this.$emit(e.type.replace(/^on/,""),e)},reload:function(){var e=this;this&&this.BMap&&this.$nextTick((function(){e.unload(),e.$nextTick(e.load)}))},unload:function(){var e=this.map,n=this.originInstance;try{switch(t.type){case"search":return n.clearResults();case"autoComplete":case"lushu":return n.dispose();case"markerClusterer":return n.clearMarkers();default:e[i[t.type].unload](n)}}catch(e){}}},this.computed={renderByParent:function(){return this.$parent.preventChildrenRender}},this.mounted=function(){var e=a(this.$parent),t=e.map,n=this.ready;t?n():e.$on("ready",n)},this.destroyed=r,this.beforeDestroy=r};t.default=function(e){return new o({type:e})},e.exports=t.default},i=[e,t],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e){"use strict";function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.lng,r=t.lat;return new e.Point(n,r)}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.x,r=t.y;return new e.Pixel(n,r)}function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.sw,i=n.ne;return new e.Bounds(t(e,r),t(e,i))}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=t.height;return new e.Size(n,r)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.size,a=t.opts,o=void 0===a?{}:a;return new e.Icon(n,i(e,r),{anchor:o.anchor&&i(e,o.anchor),imageSize:o.imageSize&&i(e,o.imageSize),imageOffset:o.imageOffset&&i(e,o.imageOffset),infoWindowAnchor:o.infoWindowAnchor&&i(e,o.infoWindowAnchor),printImageUrl:o.printImageUrl})}function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.content,a=n.opts;return new e.Label(r,{offset:a.offset&&i(e,a.offset),position:a.position&&t(e,a.position),enableMassClear:a.enableMassClear})}Object.defineProperty(e,"__esModule",{value:!0}),e.createPoint=t,e.createPixel=n,e.createBounds=r,e.createSize=i,e.createIcon=a,e.createLabel=o},i=[t],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r,i,a,o;o=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=this,i=t||r.default[this.$options.name];i&&i.forEach((function(t){var r="on"===t.slice(0,2)?t.slice(2):t,i=n.$listeners[r];i&&e.addEventListener(t,i.fns)}))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n);e.exports=t.default},i=[e,t,n(41)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPosition=e.checkType=e.isPoint=void 0;var n=e.isPoint=function(e){return e.lng&&e.lat};e.checkType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},e.getPosition=function(e,r){return n(r)?(0,t.createPoint)(e,r):r}},i=[t,n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r=n(0)(n(71),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(43),n(89),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(44),n(87),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(45),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(46),n(94),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(47),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(48),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(49),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(50),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(51),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(52),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(53),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(54),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(55),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(56),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(57),n(90),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(58),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(59),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(60),n(97),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(61),n(82),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(62),n(95),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(63),n(86),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(64),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(65),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(66),n(83),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(67),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(68),n(96),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(69),n(84),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(70),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(72),null,null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(73),n(91),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(74),n(85),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(75),n(93),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(76),n(92),null,null);e.exports=r.exports},function(e,t,n){var r=n(0)(n(77),n(88),null,null);e.exports=r.exports},function(e,t,n){var r,i,a,o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]},e.exports=t.default},i=[e,t],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i,a,o,s,c,l,u,h,f,d,p,g,m,v,y,A,b,w,x,C,_,I,E,k,S,B,M,T,O,D,P,L){"use strict";function Q(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.BmlCurveLine=e.BmlHeatmap=e.BmlLushu=e.BmlMarkerClusterer=e.BmAutoComplete=e.BmBoundary=e.BmTraffic=e.BmTile=e.BmBus=e.BmDriving=e.BmWalking=e.BmTransit=e.BmLocalSearch=e.BmContextMenuItem=e.BmContextMenu=e.BmOverlay=e.BmInfoWindow=e.BmLabel=e.BmGround=e.BmCircle=e.BmPolygon=e.BmPolyline=e.BmPointCollection=e.BmMarker=e.BmControl=e.BmPanorama=e.BmCityList=e.BmCopyright=e.BmGeolocation=e.BmOverviewMap=e.BmMapType=e.BmNavigation=e.BmScale=e.BmView=e.BaiduMap=void 0;var R=Q(t),j=Q(n),N=Q(r),F=Q(i),z=Q(a),H=Q(o),U=Q(s),G=Q(c),V=Q(l),W=Q(u),q=Q(h),Y=Q(f),K=Q(d),$=Q(p),J=Q(g),X=Q(m),Z=Q(v),ee=Q(y),te=Q(A),ne=Q(b),re=Q(w),ie=Q(x),ae=Q(C),oe=Q(_),se=Q(I),ce=Q(E),le=Q(k),ue=Q(S),he=Q(B),fe=Q(M),de=Q(T),pe=Q(O),ge=Q(D),me=Q(P),ve=Q(L);e.default={install:function(e,t){var n=t.ak;e.prototype._BMap=function(){return{ak:n}},e.component("baidu-map",R.default),e.component("bm-view",j.default),e.component("bm-scale",N.default),e.component("bm-navigation",F.default),e.component("bm-map-type",z.default),e.component("bm-overview-map",H.default),e.component("bm-geolocation",U.default),e.component("bm-copyright",G.default),e.component("bm-city-list",V.default),e.component("bm-panorama",W.default),e.component("bm-control",q.default),e.component("bm-marker",Y.default),e.component("bm-point-collection",K.default),e.component("bm-polyline",$.default),e.component("bm-polygon",J.default),e.component("bm-circle",X.default),e.component("bm-ground",Z.default),e.component("bm-label",ee.default),e.component("bm-info-window",te.default),e.component("bm-overlay",ne.default),e.component("bm-context-menu",re.default),e.component("bm-context-menu-item",ie.default),e.component("bm-local-search",ae.default),e.component("bm-transit",oe.default),e.component("bm-walking",se.default),e.component("bm-driving",ce.default),e.component("bm-bus",le.default),e.component("bm-tile",ue.default),e.component("bm-traffic",he.default),e.component("bm-auto-complete",de.default),e.component("bm-boundary",fe.default)}},e.BaiduMap=R.default,e.BmView=j.default,e.BmScale=N.default,e.BmNavigation=F.default,e.BmMapType=z.default,e.BmOverviewMap=H.default,e.BmGeolocation=U.default,e.BmCopyright=G.default,e.BmCityList=V.default,e.BmPanorama=W.default,e.BmControl=q.default,e.BmMarker=Y.default,e.BmPointCollection=K.default,e.BmPolyline=$.default,e.BmPolygon=J.default,e.BmCircle=X.default,e.BmGround=Z.default,e.BmLabel=ee.default,e.BmInfoWindow=te.default,e.BmOverlay=ne.default,e.BmContextMenu=re.default,e.BmContextMenuItem=ie.default,e.BmLocalSearch=ae.default,e.BmTransit=oe.default,e.BmWalking=se.default,e.BmDriving=ce.default,e.BmBus=le.default,e.BmTile=ue.default,e.BmTraffic=he.default,e.BmBoundary=fe.default,e.BmAutoComplete=de.default,e.BmlMarkerClusterer=pe.default,e.BmlLushu=ge.default,e.BmlHeatmap=me.default,e.BmlCurveLine=ve.default},i=[t,n(24),n(25),n(17),n(14),n(13),n(15),n(12),n(11),n(9),n(16),n(10),n(32),n(34),n(35),n(6),n(28),n(29),n(31),n(30),n(33),n(8),n(7),n(38),n(39),n(40),n(37),n(36),n(22),n(23),n(27),n(26),n(21),n(20),n(19),n(18)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"bm-context-menu-item",props:{callback:{type:Function,default:function(){}},text:{type:String},iconUrl:{type:String},id:{type:String},disabled:{type:Boolean},seperator:{type:Boolean}},methods:{reload:function(){this.$parent.map&&this.$parent.load()}},watch:{text:function(){this.reload()},iconUrl:function(){this.reload()},id:function(){this.reload()},disabled:function(){this.reload()},iseperator:function(){this.reload()},callback:function(){this.reload()}},destroyed:function(){this.reload()},mounted:function(){this.reload()}},e.exports=t.default},i=[e,t],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-context-menu",props:{width:{type:Number}},mixins:[(0,r.default)("contextMenu")],methods:{load:function(){var e=this.width,t=this.BMap,n=this.map,r=this.$parent,i=this.parent=r.originInstance||n;this.originInstance&&i.removeContextMenu(this.originInstance);var a=this.originInstance=new t.ContextMenu,o=!0,s=!1,c=void 0;try{for(var l,u=this.$children[Symbol.iterator]();!(o=(l=u.next()).done);o=!0)!function(){var r=l.value;if(r.seperator)return a.addSeparator(),"continue";var o=new t.MenuItem(r.text,(function(e,a){r.callback({point:e,pixel:a,BMap:t,map:n,target:i})}),{width:e,id:r.id,iconUrl:r.iconUrl});r.disabled?o.disable():o.enable(),r.originInstance=o,a.addItem(o)}()}catch(e){s=!0,c=e}finally{try{!o&&u.return&&u.return()}finally{if(s)throw c}}i.addContextMenu(a)}}},e.exports=t.default},i=[e,t,n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-city-list",render:function(){},mixins:[(0,a.default)("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,a=this.offset,o=this;this.originInstance=new e.CityListControl({anchor:r[n],offset:a&&(0,i.createSize)(e,a),onChangeBefore:function(){o.$emit("changeBefore")},onChangeAfter:function(){o.$emit("changeAfter")}}),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-control",mixins:[(0,a.default)("control")],props:["anchor","offset"],watch:{anchor:function(e){this.originInstance.setAnchor(e)},offset:function(e){this.originInstance.setOffset(e)}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,a=this.offset,o=this.$el,s=function(){this.defaultAnchor=r[n||"BMAP_ANCHOR_TOP_LEFT"],this.defaultOffset=(0,i.createSize)(e,a)};s.prototype=new e.Control,s.prototype.initialize=function(e){return e.getContainer().appendChild(o)},this.originInstance=new s(n,a),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-copyright",render:function(){},mixins:[(0,a.default)("control")],props:["anchor","offset","copyright"],watch:{anchor:function(){this.reload()},offset:function(){this.reload()},copyright:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.offset,a=this.anchor,o=this.updateCopyrightList;this.originInstance=new e.CopyrightControl({anchor:r[a],offset:n&&(0,i.createSize)(e,n)}),o(),t.addControl(this.originInstance)},updateCopyrightList:function(){var e=this,t=this.BMap,n=this.map,r=this.originInstance,i=r.removeCopyright,a=(0,r.getCopyrightCollection)();a&&a.forEach((function(e){i(e.id)})),this.copyright&&this.copyright.forEach((function(r){var i=r.bounds?new t.Bounds(new t.Point(r.bounds.sw.lng,r.bounds.sw.lat),new t.Point(r.bounds.ne.lng,r.bounds.ne.lat)):n.getBounds();e.originInstance.addCopyright({id:r.id,content:r.content,bounds:i}),e.originInstance.getCopyrightCollection()}))}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),c=o(i);t.default={name:"bm-geolocation",render:function(){},mixins:[(0,s.default)("control")],props:{anchor:{type:String},offset:{type:Object},showAddressBar:{type:Boolean},autoLocation:{type:Boolean},locationIcon:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},showAddressBar:function(){this.reload()},autoLocation:function(){this.reload()},locationIcon:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,i=this.showAddressBar,o=this.autoLocation,s=this.locationIcon,l=this.offset;this.originInstance=new e.GeolocationControl({anchor:r[n],showAddressBar:i,enableAutoLocation:o,offset:l&&(0,a.createSize)(e,l),locationIcon:s&&(0,a.createIcon)(e,s)}),c.default.call(this,this.originInstance),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(4),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-map-type",render:function(){},mixins:[(0,a.default)("control")],props:["type","mapTypes","anchor","offset"],watch:{anchor:function(){this.reload()},offset:function(){this.reload()},type:function(){this.reload()},mapTypes:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,a=this.offset,o=this.type,s=[];this.mapTypes&&this.mapTypes.forEach((function(e){return s.push(r[e])})),this.originInstance=new e.MapTypeControl({anchor:r[n],offset:a&&(0,i.createSize)(e,a),type:r[o],mapTypes:s}),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-navigation",render:function(){},mixins:[(0,a.default)("control")],props:{anchor:{type:String},offset:{type:Object},type:{type:String},showZoomInfo:{type:Boolean},enableGeolocation:{type:Boolean,default:!1}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},type:function(){this.reload()},showZoomInfo:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,a=this.offset,o=this.type,s=this.showZoomInfo,c=this.enableGeolocation;this.originInstance=new e.NavigationControl({anchor:r[n],offset:a&&(0,i.createSize)(e,a),type:r[o],showZoomInfo:s,enableGeolocation:c}),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(i),c=o(a);t.default={name:"bm-overview-map",mixins:[(0,s.default)("control")],render:function(){},props:{anchor:{type:String},offset:{type:Object},size:{type:Object},isOpen:{type:Boolean}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},size:function(){this.reload()},isOpen:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,i=this.isOpen,a=this.size,o=this.offset,s=this.anchor,l=[];this.mapTypes&&this.mapTypes.forEach((function(e){l.push(r[e])})),this.originInstance=new e.OverviewMapControl({anchor:r[s],offset:(0,n.createSize)(e,o),size:(0,n.createSize)(e,a),isOpen:i}),c.default.call(this,this.originInstance),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(2),n(1),n(4)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-panorama",mixins:[(0,a.default)("control")],render:function(){},props:["anchor","offset"],watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,a=this.offset;this.originInstance=new e.PanoramaControl({anchor:r[n],offset:a&&(0,i.createSize)(e,a)}),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-scale",render:function(){},mixins:[(0,a.default)("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,a=this.offset;this.originInstance=new e.ScaleControl({anchor:r[n],offset:a&&(0,i.createSize)(e,a)}),t.addControl(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),c=o(r),l=o(i),u=["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"];t.default={name:"bml-curve-line",render:function(){},mixins:[(0,c.default)("overlay")],props:{points:{type:Array,default:Array},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{points:{handler:function(e,t){this.originInstance.disableEditing(),this.reload()},deep:!0},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},editing:function(e){e?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.points,r=this.strokeColor,i=this.strokeWeight,o=this.strokeOpacity,c=this.strokeStyle,h=this.editing,f=this.massClear,d=this.clicking,p=new s.default(n.map((function(t){return(0,a.createPoint)(e,t)})),{strokeColor:r,strokeWeight:i,strokeOpacity:o,strokeStyle:c,enableMassClear:f,enableClicking:d});h?p.enableEditing():p.disableEditing(),this.originInstance=p,t.addOverlay(p),l.default.call(this,p,u)}}},e.exports=t.default},i=[e,t,n(78),n(1),n(4),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n),o=i(r);t.default={name:"bml-heatmap",render:function(){},mixins:[(0,a.default)("overlay")],props:{data:{type:Array,default:Array},max:{type:Number},radius:{type:Number},gradient:{type:Object},opacity:{type:Number}},watch:{data:{handler:function(){this.reload()},deep:!0},max:function(){this.reload()},radius:function(e){var t=this.originInstance,n=this.opacity,r=this.gradient;t.setOptions({radius:e,opacity:n,gradient:r})},gradient:{handler:function(e){var t=this.originInstance,n=this.radius,r=this.opacity;t.setOptions({radius:n,opacity:r,gradient:e})},deep:!0},opacity:function(e){var t=this.originInstance,n=this.radius,r=this.gradient;t.setOptions({radius:n,opacity:e,gradient:r})}},methods:{load:function(){var e=this.map,t=this.data,n=this.max,r=this.radius,i=this.opacity,a=this.gradient,s=this.originInstance=new o.default({radius:r,opacity:i,gradient:a});e.addOverlay(s),s.setDataSet({data:t,max:n})}}},e.exports=t.default},i=[e,t,n(1),n(79)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(i);t.default={name:"bm-lushu",render:function(e){},mixins:[(0,o.default)("lushu")],props:{path:{type:Array,default:[]},landmarkPois:{type:Array,default:function(){return[]}},icon:{type:Object},speed:{type:Number,default:4e3},content:{type:String,default:""},autoView:{type:Boolean,default:!1},rotation:{type:Boolean,default:!1},infoWindow:{type:Boolean,default:!0},play:{type:Boolean,default:!0}},watch:{path:{handler:function(e){this.reload()},deep:!0},landmarkPois:{handler:function(e){this.reload()},deep:!0},icon:{handler:function(e){var t=this.originInstance,n=(this.content,(0,r.createIcon)(BMap,e));t._opts.icon=n,t._marker=n},deep:!0},speed:function(e){var t=this.originInstance;this.content,t._opts.speed=e},content:function(e){var t=this.originInstance,n=this.infoWindow;e&&n?t.showInfoWindow():t.hideInfoWindow(),t._opts.defaultContent=e,t._overlay&&t._overlay.setHtml(e)},autoView:function(e){var t=this.originInstance;this.content,t._opts.autoView=e},rotation:function(e){var t=this.originInstance;this.content,t._opts.enableRotation=e},infoWindow:function(e){var t=this.originInstance,n=this.content;t&&e&&n?t.showInfoWindow():t.hideInfoWindow()},play:function(e){var t=this.originInstance;e&&t?t.start():!this._isEnd&&t.pause()}},methods:{load:function(){var e=this,t=this.BMap,n=this.map,i=this.path,a=this.landmarkPois,o=this.icon,c=this.speed,l=this.content,u=this.autoView,h=this.rotation,f=this.infoWindow,d=this.play,p=this.originInstance=new s.default(n,i,{enableRotation:h,landmarkPois:a,showInfoWindow:f,defaultContent:l,icon:o&&(0,r.createIcon)(t,o),speed:c,autoView:u,onstart:function(t){e._isEnd=!1,e.$emit("start")},onstop:function(t){e._isEnd=!0,e.$emit("stop")},onpause:function(t){return e.$emit("pause")}});d&&i.length&&p.start(this),i.length&&(l&&f?p.showInfoWindow():p.hideInfoWindow())}}},e.exports=t.default},i=[e,t,n(1),n(2),n(80)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(i);t.default={name:"bml-marker-clusterer",mixins:[(0,s.default)("markerClusterer")],props:{gridSize:{type:Object},maxZoom:{type:Number},minClusterSize:{type:Number},styles:{type:Array,default:function(){return[]}},averageCenter:{type:Boolean,default:!1}},watch:{gridSize:{handler:function(e){var t=this.BMap;this.originInstance.setGridSize(t,e.map)},deep:!0},maxZoom:function(e){this.originInstance.setMaxZoom(e)},minClusterSize:{handler:function(e){var t=this.BMap;this.originInstance.setMinClusterSize((0,r.createSize)(t,e))},deep:!0},styles:{handler:function(e){var t=this.BMap,n=this.originInstance,i=JSON.parse(JSON.stringify(e)).map((function(e){return e.size=e.size&&(0,r.createSize)(t,e.size),e}));n.setStyles(i)},deep:!0},averageCenter:function(e){this.reload()}},methods:{load:function(){var e=this,t=this.BMap,n=this.map,i=this.gridSize,a=this.minClusterSize,s=this.maxZoom,c=this.styles,l=this.averageCenter;this.originInstance=new o.default(n,{gridSize:i&&(0,r.createSize)(t,i),maxZoom:s,minClusterSize:a&&(0,r.createSize)(t,a),styles:c.map((function(e){return e.size=(0,r.createSize)(t,e.size),e})),isAverageCenter:l}),this.$nextTick((function(){var n=e.$children.map((function(e){return e.originInstance})).filter((function(e){return e instanceof t.Marker}));e.originInstance.addMarkers(n)}))}},beforeCreate:function(){this.preventChildrenRender=!0}},e.exports=t.default},i=[e,t,n(81),n(2),n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-tile",render:function(e){},mixins:[(0,i.default)("layer")],props:{transparentPng:{type:Boolean},tileUrlTemplate:{type:String},copyright:{},zIndex:{type:Number}},watch:{transparentPng:function(){this.reload()},tileUrlTemplate:function(){this.reload()},copyright:function(){this.reload()},zIndex:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.transparentPng,i=this.tileUrlTemplate,a=this.copyright,o=this.zIndex;this.originInstance=new e.TileLayer({transparentPng:n,tileUrlTemplate:i,copyright:a&&{id:a.id,content:a.content,bounds:a.bounds&&(0,r.createBounds)(a.bounds)},zIndex:o}),t.addTileLayer(this.originInstance)}}},e.exports=t.default},i=[e,t,n(1),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-triffic",render:function(e){},mixins:[(0,r.default)("layer")],props:{predictDate:{type:Object}},watch:{"pridictDate.weekday":function(){this.reload()},"pridictDate.hour":function(){this.reload()},pridictDate:function(){this.reload()}},methods:{load:function(){var e=this.pridictDate,t=this.BMap,n=this.map;this.originInstance=new t.TrafficLayer({pridictDate:e}),n.addTileLayer(this.originInstance)}}},e.exports=t.default},i=[e,t,n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-map",props:{ak:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object}},watch:{center:function(e,t){var n=this.map,r=this.zoom;"String"===(0,i.checkType)(e)&&e!==t&&n.centerAndZoom(e,r)},"center.lng":function(e,t){var n=this.BMap,r=this.map,i=this.zoom,a=this.center;e!==t&&e>=-180&&e<=180&&r.centerAndZoom(new n.Point(e,a.lat),i)},"center.lat":function(e,t){var n=this.BMap,r=this.map,i=this.zoom,a=this.center;e!==t&&e>=-74&&e<=74&&r.centerAndZoom(new n.Point(a.lng,e),i)},zoom:function(e,t){var n=this.map;e!==t&&e>=3&&e<=19&&n.setZoom(e)},minZoom:function(e){this.map.setMinZoom(e)},maxZoom:function(e){this.map.setMaxZoom(e)},highResolution:function(){this.reset()},mapClick:function(){this.reset()},mapType:function(e){this.map.setMapType(r[e])},dragging:function(e){var t=this.map;e?t.enableDragging():t.disableDragging()},scrollWheelZoom:function(e){var t=this.map;e?t.enableScrollWheelZoom():t.disableScrollWheelZoom()},doubleClickZoom:function(e){var t=this.map;e?t.enableDoubleClickZoom():t.disableDoubleClickZoom()},keyboard:function(e){var t=this.map;e?t.enableKeyboard():t.disableKeyboard()},inertialDragging:function(e){var t=this.map;e?t.enableInertialDragging():t.disableInertialDragging()},continuousZoom:function(e){var t=this.map;e?t.enableContinuousZoom():t.disableContinuousZoom()},pinchToZoom:function(e){var t=this.map;e?t.enablePinchToZoom():t.disablePinchToZoom()},autoResize:function(e){var t=this.map;e?t.enableAutoResize():t.disableAutoResize()},theme:function(e){this.map.setMapStyle({styleJson:e})},"mapStyle.features":{handler:function(e,t){var n=this.map,r=this.mapStyle,i=r.style,a=r.styleJson;n.setMapStyle({styleJson:a,features:e,style:i})},deep:!0},"mapStyle.style":function(e,t){var n=this.map,r=this.mapStyle,i=r.features,a=r.styleJson;n.setMapStyle({styleJson:a,features:i,style:e})},"mapStyle.styleJson":{handler:function(e,t){var n=this.map,r=this.mapStyle,i=r.features,a=r.style;n.setMapStyle({styleJson:e,features:i,style:a})},deep:!0},mapStyle:function(e){var t=this.map;!this.theme&&t.setMapStyle(e)}},methods:{setMapOptions:function(){var e=this.map,t=this.minZoom,n=this.maxZoom,i=this.mapType,a=this.dragging,o=this.scrollWheelZoom,s=this.doubleClickZoom,c=this.keyboard,l=this.inertialDragging,u=this.continuousZoom,h=this.pinchToZoom,f=this.autoResize;t&&e.setMinZoom(t),n&&e.setMaxZoom(n),i&&e.setMapType(r[i]),a?e.enableDragging():e.disableDragging(),o?e.enableScrollWheelZoom():e.disableScrollWheelZoom(),s?e.enableDoubleClickZoom():e.disableDoubleClickZoom(),c?e.enableKeyboard():e.disableKeyboard(),l?e.enableInertialDragging():e.disableInertialDragging(),u?e.enableContinuousZoom():e.disableContinuousZoom(),h?e.enablePinchToZoom():e.disablePinchToZoom(),f?e.enableAutoResize():e.disableAutoResize()},init:function(e){if(!this.map){var t=this.$refs.view,n=!0,r=!1,i=void 0;try{for(var o,s=(this.$slots.default||[])[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;c.componentOptions&&"bm-view"===c.componentOptions.tag&&(this.hasBmView=!0,t=c.elm)}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}var l=new e.Map(t,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick});this.map=l;var u=this.setMapOptions,h=this.zoom,f=this.getCenterPoint,d=this.theme,p=this.mapStyle;d?l.setMapStyle({styleJson:d}):l.setMapStyle(p),u(),a.default.call(this,l),l.reset(),l.centerAndZoom(f(),h),this.$emit("ready",{BMap:e,map:l})}},getCenterPoint:function(){var e=this.center,t=this.BMap;switch((0,i.checkType)(e)){case"String":return e;case"Object":return new t.Point(e.lng,e.lat);default:return new t.Point}},initMap:function(e){this.BMap=e,this.init(e)},getMapScript:function(){if(r.BMap)return r.BMap._preloader?r.BMap._preloader:Promise.resolve(r.BMap);var e=this.ak||this._BMap().ak;return r.BMap={},r.BMap._preloader=new Promise((function(t,n){r._initBaiduMap=function(){t(r.BMap),r.document.body.removeChild(i),r.BMap._preloader=null,r._initBaiduMap=null};var i=document.createElement("script");r.document.body.appendChild(i),i.src="https://api.map.baidu.com/api?v=2.0&ak="+e+"&callback=_initBaiduMap"})),r.BMap._preloader},reset:function(){var e=this.getMapScript,t=this.initMap;e().then(t)}},mounted:function(){this.reset()},data:function(){return{hasBmView:!1}}},e.exports=t.default},a=[e,t,n(4),n(5)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"bm-view"},e.exports=t.default},i=[e,t],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n),o=i(r);t.default={name:"bm-autocomplete",mixins:[(0,a.default)()],props:{types:{type:String},location:{type:String},sugStyle:{type:Object,default:function(){return{}}}},watch:{types:function(){this.reload()},location:function(){this.reload()}},methods:{load:function(){var e=this,t=this.BMap,n=this.map,r=this.$el,i=this.types,a=this.location,s=this.sugStyle,c=r.querySelector("input");c&&(this.originInstance=new t.Autocomplete({input:c,types:i,location:a||n,onSearchComplete:function(t){var n=document.querySelectorAll(".tangram-suggestion-main"),r=!0,i=!1,a=void 0;try{for(var o,c=n[Symbol.iterator]();!(r=(o=c.next()).done);r=!0){var l=o.value;for(var u in s)l.style[u]=s[u].toString()}}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}e.$emit("searchcomplete",t)}}),this.originInstance.addEventListener("onconfirm",(function(t){var n=t.item.value;e.$emit("input",n.province+n.city+n.district+n.street+n.business)})),o.default.call(this,this.originInstance))}}},e.exports=t.default},i=[e,t,n(1),n(4)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(n),o=i(r),s=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default={mixins:[(0,o.default)("abstract")],props:["name","strokeColor","strokeWeight","strokeOpacity","strokeStyle","fillColor","fillOpacity","massClear","clicking"],data:function(){return{paths:[]}},components:{BmPolygon:a.default},watch:{name:function(){this.reload()}},methods:{load:function(){var e=this,t=this.BMap,n=this.name;(new t.Boundary).get(n,(function(t){e.paths=t.boundaries.map((function(e){return(e||[]).split(";").map((function(e){return function(e){var t=s(e,2);return{lng:t[0],lat:t[1]}}(e.split(",").map((function(e){return+e})))}))}))}))}}},e.exports=t.default},i=[e,t,n(6),n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(r);t.default={name:"bm-circle",render:function(){},mixins:[(0,o.default)("overlay")],props:{center:{},radius:{},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},fillColor:{type:String},fillOpacity:{type:Number},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{"center.lng":function(e,t){var n=this.BMap,r=this.originInstance,a=this.isEditing,o=this.disableEditing,s=this.enableEditing,c=this.center,l=this.editing;if(!a){o();var u=e;e.toString()!==t.toString()&&u>=-180&&u<=180&&r.setCenter((0,i.createPoint)(n,{lng:u,lat:c.lat})),l&&s()}},"center.lat":function(e,t){var n=this.BMap,r=this.originInstance,a=this.isEditing,o=this.disableEditing,s=this.enableEditing,c=this.center,l=this.editing;if(!a){o();var u=e;e.toString()!==t.toString()&&u>=-74&&u<=74&&r.setCenter((0,i.createPoint)(n,{lng:c.lng,lat:u})),l&&s()}},radius:function(e,t){var n=this.originInstance,r=this.isEditing,i=this.disableEditing,a=this.enableEditing,o=this.editing;r||(i(),n.setRadius(e),o&&a())},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},fillColor:function(e){this.originInstance.setFillColor(e)},fillOpacity:function(e){this.originInstance.setFillOpacity(e)},editing:function(e){e?this.enableEditing():this.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{dragStartHandler:function(){this.isEditing=!0},dragEndHandler:function(){this.isEditing=!1,this.bindEditingNodeEvents()},bindEditingNodeEvents:function(){var e=this.originInstance,t=this.editingKey,n=this.dragStartHandler,r=this.dragEndHandler;e[t].forEach((function(e){e.addEventListener("dragstart",n),e.addEventListener("dragend",r)}))},enableEditing:function(){var e=this.originInstance,t=this.bindEditingNodeEvents;e.enableEditing(),t()},disableEditing:function(){this.originInstance.disableEditing()},getEditingKey:function(e){var t=this,n=[];e.enableEditing(),setTimeout((function(){for(var r in e)e[r]&&2===e[r].length&&n.push(r);for(var i in e.disableEditing(),e)e[i]&&0===e[i].length&&~n.indexOf(i)&&(t.editingKey=i)}),0)},load:function(){var e=this.BMap,t=this.map,n=this.center,r=this.radius,a=this.strokeColor,o=this.strokeWeight,c=this.strokeOpacity,l=this.strokeStyle,u=this.fillColor,h=this.fillOpacity,f=this.editing,d=this.massClear,p=this.clicking,g=this.enableEditing,m=this.disableEditing,v=this.getEditingKey,y=this.editingKey,A=new e.Circle((0,i.createPoint)(e,{lng:n.lng,lat:n.lat}),r,{strokeColor:a,strokeWeight:o,strokeOpacity:c,strokeStyle:l,fillColor:u,fillOpacity:h,enableMassClear:d,enableClicking:p});this.originInstance=A,t.addOverlay(A),s.default.call(this,A),!y&&v(A),setTimeout((function(){f?g():m()}),0)}}},e.exports=t.default},i=[e,t,n(1),n(4),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(r);t.default={name:"bm-ground",render:function(){},mixins:[(0,o.default)("overlay")],props:{bounds:{type:Object},opacity:{type:Number},imageURL:{type:String},displayOnMinLevel:{type:Number},displayOnMaxLevel:{type:Number}},watch:{bounds:{handler:function(e){var t=this.BMap;this.originInstance.setBounds((0,i.createBounds)(t,e))},deep:!0},opacity:function(e){this.originInstance.setOpacity(e)},imageURL:function(e){this.originInstance.setImageURL(e)},displayOnMinLevel:function(e){this.originInstance.setDisplayOnMinLevel(e)},displayOnMaxLevel:function(e){this.originInstance.setDisplayOnMaxLevel(e)}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.bounds,r=this.opacity,a=this.imageURL,o=this.displayOnMinLevel,c=this.displayOnMaxLevel,l=new e.GroundOverlay(n&&(0,i.createBounds)(e,n),{opacity:r,imageURL:a,displayOnMaxLevel:c,displayOnMinLevel:o});l.setImageURL(a),this.originInstance=l,s.default.call(this,l),t.addOverlay(l)}}},e.exports=t.default},i=[e,t,n(1),n(4),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),c=o(i);t.default={name:"bm-info-window",mixins:[(0,s.default)("overlay")],props:{show:{type:Boolean},position:{type:Object},title:{type:String},width:{type:Number},height:{type:Number},maxWidth:{type:Number},offset:{type:Object},maximize:{type:Boolean},autoPan:{type:Boolean},closeOnClick:{type:Boolean,default:!0},message:{type:String}},watch:{show:function(e){e?this.openInfoWindow():this.closeInfoWindow()},"position.lng":function(e,t){this.reload()},"position.lat":function(e,t){this.reload()},"offset.width":function(e,t){this.reload()},"offset.height":function(e){this.reload()},maxWidth:function(){this.reload()},width:function(e){this.originInstance.setWidth(e)},height:function(e){this.originInstance.setHeight(e)},title:function(e){this.originInstance.setTitle(e)},maximize:function(e){e?this.originInstance.enableMaximize():this.originInstance.disableMaximize()},autoPan:function(e){e?this.originInstance.enableAutoPan():this.originInstance.disableAutoPan()},closeOnClick:function(e){e?this.originInstance.enableCloseOnClick():this.originInstance.disableCloseOnClick()}},methods:{redraw:function(){this.originInstance.redraw()},load:function(){var e=this.BMap,t=this.map,n=this.show,r=this.title,i=this.width,o=this.height,s=this.maxWidth,l=this.offset,u=this.autoPan,h=this.closeOnClick,f=this.message,d=this.maximize,p=this.bindObserver,g=this.$parent,m=this.$el,v=new e.InfoWindow(m,{width:i,height:o,title:r,maxWidth:s,offset:(0,a.createSize)(e,l),enableAutoPan:u,enableCloseOnClick:h,enableMessage:void 0===f,message:f});d?v.enableMaximize():v.disableMaximize(),c.default.call(this,v),this.originInstance=v,v.redraw(),[].forEach.call(m.querySelectorAll("img"),(function(e){e.onload=function(){return v.redraw()}})),p(),this.$container=g.originInstance&&g.originInstance.openInfoWindow?g.originInstance:t,n&&this.openInfoWindow()},bindObserver:function(){var e=r.MutationObserver;if(e){var t=this.$el,n=this.originInstance;this.observer=new e((function(e){return n.redraw()})),this.observer.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}},openInfoWindow:function(){var e=this.BMap,t=this.$container,n=this.position,r=this.originInstance;t.openInfoWindow(r,(0,a.createPoint)(e,n))},closeInfoWindow:function(){this.$container.closeInfoWindow(this.originInstance)}}},e.exports=t.default},a=[e,t,n(1),n(4),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(r);t.default={name:"bm-label",render:function(){},mixins:[(0,o.default)("overlay")],props:{content:{type:String},title:{type:String},offset:{},position:{},labelStyle:{},zIndex:{type:Number,default:0},massClear:{type:Boolean,default:!0}},watch:{content:function(e){this.originInstance.setContent(e)},title:function(e){this.originInstance.setTitle(e)},"offset.width":function(e,t){var n=this.BMap;e.toString()!==t.toString()&&this.originInstance.setOffset((0,i.createSize)(n,{width:e,height:this.offset.height}))},"offset.height":function(e,t){var n=this.BMap;e.toString()!==t.toString()&&this.originInstance.setOffset((0,i.createSize)(n,{width:this.offset.width,height:e}))},"position.lng":function(e,t){var n=this.BMap,r=e;e.toString()!==t.toString()&&r>=-180&&r<=180&&this.originInstance.setCenter((0,i.createPoint)(n,{lng:r,lat:this.center.lat}))},"position.lat":function(e,t){var n=this.BMap,r=e;e.toString()!==t.toString()&&r>=-74&&r<=74&&this.originInstance.setCenter((0,i.createPoint)(n,{lng:this.center.lng,lat:r}))},labelStyle:{handler:function(e){this.originInstance.setStyle(e)},deep:!0},zIndex:function(e){this.originInstance.setZIndex(e)},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.content,r=this.title,a=this.offset,o=this.position,c=this.labelStyle,l=this.zIndex,u=this.massClear,h=this.$parent,f=new e.Label(n,{offset:(0,i.createSize)(e,a),position:(0,i.createPoint)(e,o),enableMassClear:u});this.originInstance=f;try{h.originInstance.setLabel(f)}catch(e){t.addOverlay(f)}r&&f.setTitle(r),c&&f.setStyle(c),l&&f.setZIndex(l),s.default.call(this,f)}}},e.exports=t.default},i=[e,t,n(1),n(4),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),c=o(i);t.default={name:"bm-marker",mixins:[(0,s.default)("overlay")],props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng":function(e,t){var n=this.BMap,r=this.originInstance,i=this.position,o=this.renderByParent,s=this.$parent;e!==t&&e>=-180&&e<=180&&r.setPosition((0,a.createPoint)(n,{lng:e,lat:i.lat})),o&&s.reload()},"position.lat":function(e,t){var n=this.BMap,r=this.originInstance,i=this.position,o=this.renderByParent,s=this.$parent;e!==t&&e>=-74&&e<=74&&r.setPosition((0,a.createPoint)(n,{lng:i.lng,lat:e})),o&&s.reload()},"offset.width":function(e,t){var n=this.BMap,r=this.originInstance;e!==t&&r.setOffset(new n.Size(e,this.offset.height))},"offset.height":function(e,t){var n=this.BMap,r=this.originInstance;e!==t&&r.setOffset(new n.Size(this.offset.width,e))},icon:{deep:!0,handler:function(e){var t=this.BMap,n=this.originInstance,r=this.rotation;n&&n.setIcon((0,a.createIcon)(t,e)),r&&n&&n.setRotation(r)}},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging:function(e){e?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking:function(){this.reload()},raiseOnDrag:function(){this.reload()},draggingCursor:function(e){this.originInstance.setDraggingCursor(e)},rotation:function(e){this.originInstance.setRotation(e)},shadow:function(e){this.originInstance.setShadow(e)},title:function(e){this.originInstance.setTitle(e)},label:function(e){this.reload()},animation:function(e){this.originInstance.setAnimation(r[e])},top:function(e){this.originInstance.setTop(e)},zIndex:function(e){this.originInstance.setZIndex(e)}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.position,i=this.offset,o=this.icon,s=this.massClear,l=this.dragging,u=this.clicking,h=this.raiseOnDrag,f=this.draggingCursor,d=this.rotation,p=this.shadow,g=this.title,m=this.label,v=this.animation,y=this.top,A=this.renderByParent,b=this.$parent,w=this.zIndex,x=new e.Marker(new e.Point(n.lng,n.lat),{offset:i,icon:o&&(0,a.createIcon)(e,o),enableMassClear:s,enableDragging:l,enableClicking:u,raiseOnDrag:h,draggingCursor:f,rotation:d,shadow:p,title:g});this.originInstance=x,m&&x&&x.setLabel((0,a.createLabel)(e,m)),x.setTop(y),x.setZIndex(w),c.default.call(this,x),A?b.reload():t.addOverlay(x),x.setAnimation(r[v])}}},e.exports=t.default},a=[e,t,n(1),n(4),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default={name:"bm-overlay",mixins:[(0,o.default)("overlay")],props:{pane:{type:String}},watch:{pane:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.$el,o=this.pane,c=this.$emit.bind(this),l=function(l){function u(){return r(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return a(u,l),s(u,[{key:"initialize",value:function(){c("initialize",{BMap:e,map:t,el:n,overlay:this});try{t.getPanes()[o].appendChild(n)}catch(e){}return n}},{key:"draw",value:function(){c("draw",{BMap:e,map:t,el:n,overlay:this})}}]),u}(e.Overlay),u=new l;this.originInstance=u,t.addOverlay(u)}}},e.exports=t.default},i=[e,t,n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),c=o(i);t.default={render:function(){},name:"bm-point-collection",mixins:[(0,s.default)("overlay")],props:{points:{type:Array,default:function(){return[]}},shape:{type:String,default:"BMAP_POINT_SHAPE_CIRCLE"},color:{type:String},size:{type:String,default:"BMAP_POINT_SIZE_NORMAL"}},watch:{shape:function(e){var t=this.originInstance,n=this.color,i=this.size;t.setStyles({shape:r[e],color:n,size:r[i]})},size:function(e){var t=this.originInstance,n=this.color,i=this.shape;t.setStyles({shape:r[i],color:n,size:r[e]})},color:function(e){var t=this.originInstance,n=this.shape,i=this.size;t.setStyles({shape:r[n],color:e,size:r[i]})},points:{deep:!0,handler:function(e){var t=this.originInstance;t.clear(),t.setPoints(e)}}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.points,i=this.shape,o=this.color,s=this.size,l=this.originInstance=new e.PointCollection(n.map((function(t){return(0,a.createPoint)(e,t)})),{shape:r[i],color:o,size:r[s]});c.default.call(this,l),t.addOverlay(l)}}},e.exports=t.default},a=[e,t,n(1),n(4),n(2)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(r);t.default={name:"bm-polygon",render:function(){},mixins:[(0,o.default)("overlay")],props:{path:{type:Array,default:function(){return[]}},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},fillColor:{type:String},fillOpacity:{type:Number},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{path:{handler:function(e,t){this.reload()},deep:!0},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},fillColor:function(e){this.originInstance.setFillColor(e)},fillOpacity:function(e){this.originInstance.setFillOpacity(e)},editing:function(e){e?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.path,r=this.strokeColor,a=this.strokeWeight,o=this.strokeOpacity,c=this.strokeStyle,l=this.fillColor,u=this.fillOpacity,h=this.editing,f=this.massClear,d=this.clicking,p=new e.Polygon(n.map((function(t){return(0,i.createPoint)(e,{lng:t.lng,lat:t.lat})})),{strokeColor:r,strokeWeight:a,strokeOpacity:o,strokeStyle:c,fillColor:l,fillOpacity:u,enableMassClear:f,enableClicking:d});this.originInstance=p,t.addOverlay(p),s.default.call(this,p),h?p.enableEditing():p.disableEditing()}}},e.exports=t.default},i=[e,t,n(1),n(4),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(n),s=a(r);t.default={name:"bm-polyline",render:function(){},mixins:[(0,o.default)("overlay")],props:{path:{type:Array},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{path:{handler:function(e,t){this.reload()},deep:!0},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},editing:function(e){e?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.path,r=this.strokeColor,a=this.strokeWeight,o=this.strokeOpacity,c=this.strokeStyle,l=this.editing,u=this.massClear,h=this.clicking,f=new e.Polyline(n.map((function(t){return(0,i.createPoint)(e,{lng:t.lng,lat:t.lat})})),{strokeColor:r,strokeWeight:a,strokeOpacity:o,strokeStyle:c,enableEditing:l,enableMassClear:u,enableClicking:h});this.originInstance=f,t.addOverlay(f),s.default.call(this,f)}}},e.exports=t.default},i=[e,t,n(1),n(4),n(2)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default={name:"bm-bus",mixins:[(0,a.default)("search")],props:{location:{type:[Object,String]},keyword:{type:String},panel:{type:Boolean,default:!0},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},keyword:function(e){this.search(e)},panel:function(){this.reload()},autoViewport:function(e){this.reload()},selectFirstResult:function(e){this.reload()}},methods:{search:function(e){this.originInstance.getBusList(e)},load:function(){var e=this,t=this.location,i=this.selectFirstResult,a=this.autoViewport,o=this.highlightMode,s=this.keyword,c=this.search,l=this.BMap,u=this.map,h=this.originInstance,f=t?(0,r.isPoint)(t)?(0,n.createPoint)(l,t):t:u,d=this.originInstance=new l.BusLineSearch(f,{renderOptions:{map:u,panel:this.$el,selectFirstResult:i,autoViewport:a,highlightMode:o},onGetBusListComplete:function(t){h&&h!==d&&h.clearResults(),e.$emit("getbuslistcomplete",t)},onGetBusLineComplete:function(t){h&&h!==d&&h.clearResults(),e.$emit("getbuslinecomplete",t)},onBusListHtmlSet:function(t){e.$emit("buslisthtmlset",t)},onBusLineHtmlSet:function(t){e.$emit("buslinehtmlset",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)}});c(s)}}},e.exports=t.default},i=[e,t,n(2),n(5),n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default={name:"bm-driving",mixins:[(0,o.default)("search")],props:{location:{type:[Object,String]},start:{type:[Object,String]},end:{type:[Object,String]},startCity:{type:[String,Number]},endCity:{type:[String,Number]},waypoints:{type:Array},policy:{type:String},panel:{type:Boolean,default:!0},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},start:{handler:function(e){var t=this.originInstance,n=this.end,r=this.startCity,a=this.endCity,o=this.waypoints,s=this.BMap,c=this.getWaypoints;t.search((0,i.getPosition)(s,e),(0,i.getPosition)(s,n),{startCity:r,endCity:a,waypoints:c(o)})},deep:!0},end:{handler:function(e){var t=this.originInstance,n=this.start,r=this.startCity,a=this.endCity,o=this.waypoints,s=this.BMap,c=this.getWaypoints;t.search((0,i.getPosition)(s,n),(0,i.getPosition)(s,e),{startCity:r,endCity:a,waypoints:c(o)})},deep:!0},startCity:function(e){var t=this.originInstance,n=this.start,r=this.end,i=this.endCity,a=this.waypoints,o=this.getWaypoints;t.search(n,r,{val:e,endCity:i,waypoints:o(a)})},endCity:function(e){var t=this.originInstance,n=this.start,r=this.end,i=this.startCity,a=this.waypoints,o=this.getWaypoints;t.search(n,r,{startCity:i,val:e,waypoints:o(a)})},waypoints:{handler:function(e){var t=this.originInstance,n=this.start,r=this.end,i=this.startCity,a=this.endCity,o=this.getWaypoints;t.search(n,r,{startCity:i,endCity:a,waypoints:o(e)})},deep:!0},panel:function(){this.reload()},policy:function(e){this.reload()},autoViewport:function(){this.reload()},selectFirstResult:function(){this.reload()},highlightMode:function(){this.reload()}},methods:{search:function(e,t,n){var r=n.startCity,i=n.endCity,a=n.waypoints,o=this.originInstance,s=this.getWaypoints;o.search(e,t,{startCity:r,endCity:i,waypoints:s(a)})},getWaypoints:function(e){var t=this.BMap;if(e)return e.map((function(e){return(0,i.getPosition)(t,e)}))},load:function(){var e=this,t=this.map,a=this.BMap,o=this.location,s=this.policy,c=this.selectFirstResult,l=this.autoViewport,u=this.highlightMode,h=this.search,f=this.start,d=this.end,p=this.startCity,g=this.endCity,m=this.waypoints,v=this.originInstance,y=this.getWaypoints,A=o?(0,i.isPoint)(o)?(0,n.createPoint)(a,o):o:t,b=this.originInstance=new a.DrivingRoute(A,{renderOptions:{map:t,panel:this.$el,selectFirstResult:c,autoViewport:l,highlightMode:u},policy:r[s],onSearchComplete:function(t){v&&v!==b&&v.clearResults(),e.$emit("searchcomplete",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)}});h((0,i.getPosition)(a,f),(0,i.getPosition)(a,d),{startCity:p,endCity:g,waypoints:y(m)})}}},e.exports=t.default},a=[e,t,n(2),n(5),n(1)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default={name:"bm-local-search",mixins:[(0,a.default)("search")],props:{location:{type:[Object,String]},keyword:{type:[Array,String]},panel:{type:Boolean,default:!0},forceLocal:{type:Boolean},customData:{type:Object},bounds:{type:Object},nearby:{type:Object},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.search;t.setLocation(e||this.map),n()},deep:!0},keyword:function(){this.search()},bounds:{handler:function(e){(0,this.searchInBounds)(e)},deep:!0},nearby:{handler:function(e){(0,this.searchNearby)(e)},deep:!0},forceLocal:function(){this.reload()},customData:{deep:!0,handler:function(){this.reload()}},pageCapacity:function(e){this.originInstance&&this.originInstance.setPageCapacity(e)},autoViewport:function(e){this.originInstance&&(e?this.originInstance.enableAutoViewport():this.originInstance.disableAutoViewport())},selectFirstResult:function(e){this.originInstance&&(e?this.originInstance.enableFirstResultSelection():this.originInstance.disableFirstResultSelection())},highlightMode:function(){this.reload()}},methods:{searchNearby:function(e){var t=this.originInstance,r=this.keyword,i=this.customData,a=this.BMap;t.searchNearby(r,(0,n.createPoint)(a,e.center),e.radius,i)},searchInBounds:function(e){var t=this.originInstance,r=this.keyword,i=this.customData,a=this.BMap;t.searchInBounds(r,(0,n.createBounds)(a,e),i)},search:function(){var e=this.originInstance,t=this.keyword,n=this.forceLocal,r=this.customData,i=this.nearby,a=this.bounds,o=this.searchNearby,s=this.searchInBounds;i?o(i):a?s(a):e.search(t,{forceLocal:n,customData:r})},load:function(){var e=this,t=this.map,i=this.BMap,a=this.search,o=this.pageCapacity,s=this.autoViewport,c=this.selectFirstResult,l=this.highlightMode,u=this.location,h=this.originInstance,f=u?(0,r.isPoint)(u)?(0,n.createPoint)(i,u):u:t,d=this.originInstance=new i.LocalSearch(f,{onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)},onSearchComplete:function(t){h&&h!==d&&h.clearResults(),e.$emit("searchcomplete",t)},pageCapacity:o,renderOptions:{map:t,panel:this.$el,selectFirstResult:c,autoViewport:s,highlightMode:l}});a()}}},e.exports=t.default},i=[e,t,n(2),n(5),n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){(function(r){var i,a,o,s;s=function(e,t,n,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default={name:"bm-transit",mixins:[(0,o.default)("search")],props:{location:{type:[Object,String]},start:{type:[Object,String]},end:{type:[Object,String]},panel:{type:Boolean,default:!0},policy:{type:String},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},start:{handler:function(e){var t=this.originInstance,n=this.end,r=this.BMap;t.search((0,i.getPosition)(r,e),(0,i.getPosition)(r,n))},deep:!0},end:{handler:function(e){var t=this.originInstance,n=this.start,r=this.BMap;t.search((0,i.getPosition)(r,n),(0,i.getPosition)(r,e))},deep:!0},panel:function(){this.reload()},policy:function(e){this.originInstance.setPolicy(r[e])},pageCapacity:function(e){this.originInstance&&this.originInstance.setPageCapacity(e)},autoViewport:function(e){this.originInstance&&(e?this.originInstance.enableAutoViewport():this.originInstance.disableAutoViewport())},selectFirstResult:function(){this.reload()},highlightMode:function(){this.reload()}},methods:{search:function(e,t){this.originInstance.search(e,t)},load:function(){var e=this,t=this.map,a=this.BMap,o=this.location,s=this.policy,c=this.pageCapacity,l=this.selectFirstResult,u=this.autoViewport,h=this.highlightMode,f=this.search,d=this.start,p=this.end,g=this.originInstance,m=o?(0,i.isPoint)(o)?(0,n.createPoint)(a,o):o:t,v=this.originInstance=new a.TransitRoute(m,{renderOptions:{map:t,panel:this.$el,selectFirstResult:l,autoViewport:u,highlightMode:h},policy:r[s],pageCapacity:c,onSearchComplete:function(t){g&&g!==v&&g.clearResults(),e.$emit("searchcomplete",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)}});f((0,i.isPoint)(d)?(0,n.createPoint)(a,d):d,(0,i.isPoint)(p)?(0,n.createPoint)(a,p):p)}}},e.exports=t.default},a=[e,t,n(2),n(5),n(1)],void 0!==(o="function"==typeof(i=s)?i.apply(t,a):i)&&(e.exports=o)}).call(t,n(3))},function(e,t,n){var r,i,a,o;o=function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default={name:"bm-walking",mixins:[(0,a.default)("search")],props:{location:{type:[Object,String]},start:{type:[Object,String]},end:{type:[Object,String]},panel:{type:Boolean,default:!0},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},start:{handler:function(e){var t=this.originInstance,n=this.end,i=this.BMap;t.search((0,r.getPosition)(i,e),(0,r.getPosition)(i,n))},deep:!0},end:{handler:function(e){var t=this.originInstance,n=this.start,i=this.BMap;t.search((0,r.getPosition)(i,n),(0,r.getPosition)(i,e))},deep:!0},panel:function(){this.reload()},autoViewport:function(e){this.reload()},selectFirstResult:function(e){this.reload()},highlightMode:function(){this.reload()}},methods:{search:function(e,t){this.originInstance.search(e,t)},load:function(){var e=this,t=this.map,i=this.BMap,a=this.location,o=this.selectFirstResult,s=this.autoViewport,c=this.highlightMode,l=this.search,u=this.start,h=this.end,f=this.originInstance,d=a?(0,r.isPoint)(a)?(0,n.createPoint)(i,a):a:t,p=this.originInstance=new i.WalkingRoute(d,{renderOptions:{map:t,panel:this.$el,selectFirstResult:o,autoViewport:s,highlightMode:c},onSearchComplete:function(t){f&&f!==p&&f.clearResults(),e.$emit("searchcomplete",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)}});l((0,r.isPoint)(u)?(0,n.createPoint)(i,u):u,(0,r.isPoint)(h)?(0,n.createPoint)(i,h):h)}}},e.exports=t.default},i=[e,t,n(2),n(5),n(1)],void 0!==(a="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=a)},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){function e(e,n){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}var r=t(e),i=new BMap.Polyline(r,n);return i.addEventListener("lineupdate",(function(){this.isEditing&&this.enableEditing()})),i.cornerPoints=e,i.editMarkers=[],i.enableEditing=function(){var e=this;if(e.map){e.disableEditing();for(var n=0;n<e.cornerPoints.length;n++){var r=new BMap.Marker(e.cornerPoints[n],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});r.addEventListener("dragend",(function(){e.cornerPoints.length=0;for(var n=0;n<e.editMarkers.length;n++)e.cornerPoints.push(e.editMarkers[n].getPosition());var r=t(e.cornerPoints);e.setPath(r)})),r.index=n,e.editMarkers.push(r),e.map.addOverlay(r)}}e.isEditing=!0},i.disableEditing=function(){this.isEditing=!1;for(var e=0;e<this.editMarkers.length;e++)this.map.removeOverlay(this.editMarkers[e]),this.editMarkers[e]=null;this.editMarkers.length=0},i.getPath=function(){return r},i}function t(e){for(var t=[],r=0;r<e.length-1;r++){var i=n(e[r],e[r+1]);i&&i.length>0&&(t=t.concat(i))}return t}function n(e,t){var n=[];if(!(e&&t&&e instanceof BMap.Point&&t instanceof BMap.Point))return null;var r,i,a,o,s,c,l=function(e){return 1-2*e+e*e},u=function(e){return 2*e-2*e*e},h=function(e){return e*e},f=0,d=0;if(void 0!==t){var p=parseFloat(e.lat),g=parseFloat(t.lat),m=parseFloat(e.lng),v=parseFloat(t.lng);for(v>m&&parseFloat(v-m)>180&&m<0&&(m=parseFloat(360+m)),m>v&&parseFloat(m-v)>180&&v<0&&(v=parseFloat(360+v)),c=0,g==p?(r=0,i=m-v):v==m?(r=Math.PI/2,i=p-g):(r=Math.atan((g-p)/(v-m)),i=(g-p)/Math.sin(r)),0==c&&(c=r+Math.PI/5),s=(a=i/2)*Math.cos(c)+m,o=a*Math.sin(c)+p,f=0;f<31;f++)n.push(new BMap.Point(m*l(d)+s*u(d)+v*h(d),p*l(d)+o*u(d)+g*h(d))),d+=1/30;return n}void 0!==n&&(n=[])}return e}))},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){function e(e,t,n){var r,i,a=e.prototype,o=new Function;for(r in o.prototype=t.prototype,i=e.prototype=new o,a)i[r]=a[r];e.prototype.constructor=e,e.superClass=t.prototype,"string"==typeof n&&(i._className=n)}var t=function(){var e=function(e){var t={data:[],heatmap:e};this.max=1,this.get=function(e){return t[e]},this.set=function(e,n){t[e]=n}};e.prototype={addDataPoint:function(e,t){if(!(e<0||t<0)){var n=this,r=n.get("heatmap"),i=n.get("data");if(i[e]||(i[e]=[]),i[e][t]||(i[e][t]=0),i[e][t]+=arguments.length<3?1:arguments[2],n.set("data",i),n.max<i[e][t])return r.get("actx").clearRect(0,0,r.get("width"),r.get("height")),void n.setDataSet({max:i[e][t],data:i},!0);r.drawAlpha(e,t,i[e][t],!0)}},setDataSet:function(e,t){var n=this.get("heatmap"),r=[],i=e.data,a=i.length;if(n.clear(),this.max=e.max,n.get("legend")&&n.get("legend").update(e.max),null!=t&&t){for(var o in i)if(void 0!==o)for(var s in i[o])void 0!==s&&n.drawAlpha(o,s,i[o][s],!1)}else for(;a--;){var c=i[a];n.drawAlpha(c.x,c.y,c.count,!1),r[c.x]||(r[c.x]=[]),r[c.x][c.y]||(r[c.x][c.y]=0),r[c.x][c.y]=c.count}n.colorize(),this.set("data",i)},exportDataSet:function(){var e=this,t=e.get("data"),n=[];for(var r in t)if(void 0!==r)for(var i in t[r])void 0!==i&&n.push({x:parseInt(r,10),y:parseInt(i,10),count:t[r][i]});return{max:e.max,data:n}},generateRandomDataSet:function(e){var t=this.get("heatmap"),n=t.get("width"),r=t.get("height"),i={},a=Math.floor(1e3*Math.random()+1);i.max=a;for(var o=[];e--;)o.push({x:Math.floor(Math.random()*n+1),y:Math.floor(Math.random()*r+1),count:Math.floor(Math.random()*a+1)});i.data=o,this.setDataSet(i)}};var t=function(e){this.config=e;var t={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(e){return t[e]},this.set=function(e,n){t[e]=n},this.init()};t.prototype={init:function(){var e,t,n=this,r=n.config,i=r.title||"Legend",a=r.position,o=r.offset||10,s=(r.gradient,document.createElement("ul")),c="";n.processGradientObject(),a.indexOf("t")>-1?c+="top:"+o+"px;":c+="bottom:"+o+"px;",a.indexOf("l")>-1?c+="left:"+o+"px;":c+="right:"+o+"px;",(e=document.createElement("div")).style.cssText="border-radius:5px;position:absolute;"+c+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",e.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+i+"</h3>",s.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",(t=document.createElement("div")).style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",n.createGradientImage(),");"].join(""),e.appendChild(s),e.appendChild(t),n.set("element",e),n.set("labelsEl",s),n.update(1)},processGradientObject:function(){var e=this,t=this.config.gradient,n=[];for(var r in t)t.hasOwnProperty(r)&&n.push({stop:r,value:t[r]});n.sort((function(e,t){return e.stop-t.stop})),n.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",n)},createGradientImage:function(){var e,t=this,n=t.get("gradientArr"),r=n.length,i=document.createElement("canvas"),a=i.getContext("2d");i.width="256",i.height="15",e=a.createLinearGradient(0,5,256,10);for(var o=0;o<r;o++)e.addColorStop(1/(r-1)*o,n[o].value);for(a.fillStyle=e,a.fillRect(0,5,256,10),a.strokeStyle="black",a.beginPath(),o=0;o<r;o++)a.moveTo(.5+(1/(r-1)*o*256|0),0),a.lineTo(.5+(1/(r-1)*o*256|0),0==o?15:5);return a.moveTo(255.5,0),a.lineTo(255.5,15),a.moveTo(255.5,4.5),a.lineTo(0,4.5),a.stroke(),t.set("ctx",a),i.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var t,n,r=this,i=r.get("gradientArr"),a=r.get("ctx"),o=r.get("labelsEl"),s="",c=0;c<i.length;c++)t=e*i[c].stop|0,n=a.measureText(t).width/2|0,0==c&&(n=0),c==i.length-1&&(n*=2),s+='<li style="position:absolute;left:'+((0|(1/(i.length-1)*c*256||0))-n+.5)+'px">'+t+"</li>";o.innerHTML=s}};var n=function(t){var n={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new e(this),this.get=function(e){return n[e]},this.set=function(e,t){n[e]=t},this.configure(t),this.init()};return n.prototype={configure:function(e){var n=this;if(n.set("radius",e.radius||40),n.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),n.set("visible",null==e.visible||e.visible),n.set("max",e.max||!1),n.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),n.set("opacity",parseInt(255/(100/e.opacity),10)||180),n.set("width",e.width||0),n.set("height",e.height||0),n.set("debug",e.debug),e.legend){var r=e.legend;r.gradient=n.get("gradient"),n.set("legend",new t(r))}},resize:function(){var e=this,t=e.get("element"),n=e.get("canvas"),r=e.get("acanvas");n.width=r.width=e.get("width")||t.style.width.replace(/px/,"")||e.getWidth(t),this.set("width",n.width),n.height=r.height=e.get("height")||t.style.height.replace(/px/,"")||e.getHeight(t),this.set("height",n.height)},init:function(){var e=this,t=document.createElement("canvas"),n=document.createElement("canvas"),r=t.getContext("2d"),i=n.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",t),e.set("ctx",r),e.set("acanvas",n),e.set("actx",i),e.resize(),t.style.cssText=n.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(t.style.display="none"),a.appendChild(t),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(n),i.shadowOffsetX=15e3,i.shadowOffsetY=15e3,i.shadowBlur=15},initColorPalette:function(){var e,t,n,r=this,i=document.createElement("canvas"),a=r.get("gradient");for(var o in i.width="1",i.height="256",t=(e=i.getContext("2d")).createLinearGradient(0,0,1,256),(n=e.getImageData(0,0,1,1)).data[0]=n.data[3]=64,n.data[1]=n.data[2]=0,e.putImageData(n,0,0),n=e.getImageData(0,0,1,1),r.set("premultiplyAlpha",n.data[0]<60||n.data[0]>70),a)t.addColorStop(o,a[o]);e.fillStyle=t,e.fillRect(0,0,1,256),r.set("gradient",e.getImageData(0,0,1,256).data)},getWidth:function(e){var t=e.offsetWidth;return e.style.paddingLeft&&(t+=e.style.paddingLeft),e.style.paddingRight&&(t+=e.style.paddingRight),t},getHeight:function(e){var t=e.offsetHeight;return e.style.paddingTop&&(t+=e.style.paddingTop),e.style.paddingBottom&&(t+=e.style.paddingBottom),t},colorize:function(e,t){var n,r,i,a,o,s,c,l,u,h=this,f=h.get("width"),d=h.get("radius"),p=h.get("height"),g=h.get("actx"),m=h.get("ctx"),v=3*d,y=h.get("premultiplyAlpha"),A=h.get("gradient"),b=h.get("opacity"),w=h.get("bounds");null!=e&&null!=t?(e+v>f&&(e=f-v),e<0&&(e=0),t<0&&(t=0),t+v>p&&(t=p-v),n=e,r=t,a=e+v,i=t+v):(n=w.l<0?0:w.l,a=w.r>f?f:w.r,r=w.t<0?0:w.t,i=w.b>p?p:w.b),s=(o=g.getImageData(n,r,a-n,i-r)).data.length;for(var x=3;x<s;x+=4)(l=4*(c=o.data[x]))&&(u=c<b?c:b,o.data[x-3]=A[l],o.data[x-2]=A[l+1],o.data[x-1]=A[l+2],y&&(o.data[x-3]/=255/u,o.data[x-2]/=255/u,o.data[x-1]/=255/u),o.data[x]=u);m.putImageData(o,n,r)},drawAlpha:function(e,t,n,r){var i=this,a=i.get("radius"),o=i.get("actx"),s=(i.get("max"),i.get("bounds")),c=e-1.5*a|0,l=t-1.5*a|0,u=e+1.5*a|0,h=t+1.5*a|0;o.shadowColor="rgba(0,0,0,"+(n?n/i.store.max:"0.1")+")",o.shadowOffsetX=15e3,o.shadowOffsetY=15e3,o.shadowBlur=15,o.beginPath(),o.arc(e-15e3,t-15e3,a,0,2*Math.PI,!0),o.closePath(),o.fill(),r?i.colorize(c,l):(c<s.l&&(s.l=c),l<s.t&&(s.t=l),u>s.r&&(s.r=u),h>s.b&&(s.b=h))},toggleDisplay:function(){var e=this,t=e.get("visible");e.get("canvas").style.display=t?"none":"block",e.set("visible",!t)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,t=e.get("width"),n=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,t,n),e.get("actx").clearRect(0,0,t,n)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new n(e)},util:{mousePosition:function(e){var t,n;if(e.layerX?(t=e.layerX,n=e.layerY):e.offsetX&&(t=e.offsetX,n=e.offsetY),void 0!==t)return[t,n]}}}}(),n=function(t){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}if(!n._isExtended){n._isExtended=!0,e(n,BMap.Overlay,"HeatmapOverlay");var r=new n(t);this.__proto__=r.__proto__}this.conf=t,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return n.prototype.initialize=function(e){this._map=e;var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.border=0,n.style.width=this._map.getSize().width+"px",n.style.height=this._map.getSize().height+"px",this.conf.element=n,e.getPanes().mapPane.appendChild(n),this.heatmap=t.create(this.conf),this._div=n,n},n.prototype.draw=function(){var e=this._map.getBounds();if(!e.equals(this.bounds)){this.bounds=e;var t=this._map.pointToOverlayPixel(e.getNorthEast()),n=this._map.pointToOverlayPixel(e.getSouthWest());if(t&&n){var r=t.y,i=n.x,a=n.y-t.y,o=t.x-n.x;if(this.conf.element.style.left=i+"px",this.conf.element.style.top=r+"px",this.conf.element.style.width=o+"px",this.conf.element.style.height=a+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var s=this.latlngs.length,c={max:this.heatmap.store.max,data:[]};s--;){var l=this.latlngs[s].latlng;if(e.containsPoint(l)){var u=this._map.pointToOverlayPixel(l),h=new BMap.Pixel(u.x-i,u.y-r),f=this.pixelTransform(h);c.data.push({x:f.x,y:f.y,count:this.latlngs[s].c})}}this.heatmap.store.setDataSet(c)}}}},n.prototype.pixelTransform=function(e){for(var t=this.heatmap.get("width"),n=this.heatmap.get("height");e.x<0;)e.x+=t;for(;e.x>t;)e.x-=t;for(;e.y<0;)e.y+=n;for(;e.y>n;)e.y-=n;return e.x=0|e.x,e.y=0|e.y,e},n.prototype._moveendHandler=function(e){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},n.prototype.setDataSet=function(e){if(this._map){var t=this._map.getBounds(),n=this._map.pointToOverlayPixel(t.getNorthEast()),r=this._map.pointToOverlayPixel(t.getSouthWest());n&&r||(this._data=e,this._map.addEventListener("moveend",this._moveendHandler));var i={max:e.max,data:[]},a=e.data,o=a.length;for(this.latlngs=[];o--;){var s=new BMap.Point(a[o].lng,a[o].lat);if(this.latlngs.push({latlng:s,c:a[o].count}),t.containsPoint(s)){var c=this._map.pointToOverlayPixel(s),l=this._map.pointToOverlayPixel(t.getSouthWest()).x,u=this._map.pointToOverlayPixel(t.getNorthEast()).y,h=new BMap.Pixel(c.x-l,c.y-u),f=this.pixelTransform(h);i.data.push({x:f.x,y:f.y,count:a[o].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(i)}},n.prototype.addDataPoint=function(e,t,n){var r=new BMap.Point(e,t),i=this.pixelTransform(this._map.pointToOverlayPixel(r));this.heatmap.store.addDataPoint(i.x,i.y,n),this.latlngs.push({latlng:r,c:n})},n.prototype.toggle=function(){this.heatmap.toggleDisplay()},n}))},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){function e(e,t){this._point=e,this._html=t}function t(){e.prototype=new BMap.Overlay,e.prototype.initialize=function(e){var t=this._div=n.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return t.innerHTML=this._html,e.getPanes().floatPane.appendChild(t),this._map=e,t},e.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},n.object.extend(e.prototype,{setPosition:function(e,t){var r=this._map.pointToOverlayPixel(e),i=n.dom.getStyle(this._div,"width"),a=n.dom.getStyle(this._div,"height"),o=parseInt(this._div.clientWidth||i,10);parseInt(this._div.clientHeight||a,10),this._div.style.left=r.x-o/2+"px",this._div.style.bottom=-(r.y-t.height)+"px"},setHtml:function(e){this._div.innerHTML=e},setRelatedClass:function(e){this.lushuMain=e}})}var n={dom:{}};n.dom.g=function(e){return"string"==typeof e||e instanceof String?document.getElementById(e):e&&e.nodeName&&(1==e.nodeType||9==e.nodeType)?e:null},n.g=n.G=n.dom.g,n.lang=n.lang||{},n.lang.isString=function(e){return"[object String]"==Object.prototype.toString.call(e)},n.isString=n.lang.isString,n.dom._g=function(e){return n.lang.isString(e)?document.getElementById(e):e},n._g=n.dom._g,n.dom.getDocument=function(e){return 9==(e=n.dom.g(e)).nodeType?e:e.ownerDocument||e.document},n.browser=n.browser||{},n.browser.ie=n.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,n.dom.getComputedStyle=function(e,t){e=n.dom._g(e);var r,i=n.dom.getDocument(e);return i.defaultView&&i.defaultView.getComputedStyle&&(r=i.defaultView.getComputedStyle(e,null))?r[t]||r.getPropertyValue(t):""},n.dom._styleFixer=n.dom._styleFixer||{},n.dom._styleFilter=n.dom._styleFilter||[],n.dom._styleFilter.filter=function(e,t,r){for(var i,a=0,o=n.dom._styleFilter;i=o[a];a++)(i=i[r])&&(t=i(e,t));return t},n.string=n.string||{},n.string.toCamelCase=function(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,(function(e){return e.charAt(1).toUpperCase()}))},n.dom.getStyle=function(e,t){var r=n.dom;e=r.g(e),t=n.string.toCamelCase(t);var i=e.style[t]||(e.currentStyle?e.currentStyle[t]:"")||r.getComputedStyle(e,t);if(!i){var a=r._styleFixer[t];a&&(i=a.get?a.get(e):n.dom.getStyle(e,a))}return(a=r._styleFilter)&&(i=a.filter(t,i,"get")),i},n.getStyle=n.dom.getStyle,n.dom._NAME_ATTRS=function(){var e={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return n.browser.ie<8?(e.for="htmlFor",e.class="className"):(e.htmlFor="for",e.className="class"),e}(),n.dom.setAttr=function(e,t,r){return e=n.dom.g(e),"style"==t?e.style.cssText=r:(t=n.dom._NAME_ATTRS[t]||t,e.setAttribute(t,r)),e},n.setAttr=n.dom.setAttr,n.dom.setAttrs=function(e,t){for(var r in e=n.dom.g(e),t)n.dom.setAttr(e,r,t[r]);return e},n.setAttrs=n.dom.setAttrs,n.dom.create=function(e,t){var r=document.createElement(e),i=t||{};return n.dom.setAttrs(r,i)},n.object=n.object||{},n.extend=n.object.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var r=function(e,t,n){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}!t||t.length<1||(this._map=e,this._path=t,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(n),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};return r.prototype._setOptions=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this._opts[t]=e[t])},r.prototype.start=function(){var e=this,t=e._path.length;if(this._opts.onstart&&this._opts.onstart(e),e.i&&e.i<t-1){if(!e._fromPause)return;e._fromStop||e._moveNext(++e.i)}else!e._marker&&e._addMarker(),e._timeoutFlag=setTimeout((function(){!e._overlay&&e._addInfoWin(),e._moveNext(e.i)}),400);this._fromPause=!1,this._fromStop=!1},r.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var e=0,t=this._opts.landmarkPois,n=t.length;e<n;e++)t[e].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},r.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},r.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},r.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},r.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},n.object.extend(r.prototype,{_addMarker:function(e){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var t=new BMap.Marker(this._path[0]);this._opts.icon&&t.setIcon(this._opts.icon),this._map.addOverlay(t),t.setAnimation(BMAP_ANIMATION_DROP),this._marker=t},_addInfoWin:function(){var n=this;!e.prototype.initialize&&t();var r=new e(n._marker.getPosition(),n._opts.defaultContent);r.setRelatedClass(this),this._overlay=r,this._map.addOverlay(r),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(e){return this._map.getMapType().getProjection().lngLatToPoint(e)},_getDistance:function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},_move:function(e,t,n){var r=this,i=0,a=this._opts.speed/100,o=this._projection.lngLatToPoint(e),s=this._projection.lngLatToPoint(t),c=Math.round(r._getDistance(o,s)/a);c<1?r._moveNext(++r.i):r._intervalFlag=setInterval((function(){if(i>=c){if(clearInterval(r._intervalFlag),r.i>r._path.length)return;r._moveNext(++r.i)}else{i++;var a=n(o.x,s.x,i,c),l=n(o.y,s.y,i,c),u=r._projection.pointToLngLat(new BMap.Pixel(a,l));if(1==i){var h=null;r.i-1>=0&&(h=r._path[r.i-1]),1==r._opts.enableRotation&&r.setRotation(h,e,t),r._opts.autoView&&(r._map.getBounds().containsPoint(u)||r._map.setCenter(u))}r._marker.setPosition(u),r._setInfoWin(u)}}),10)},setRotation:function(e,t,n){var r=this,i=0;if(t=r._map.pointToPixel(t),(n=r._map.pointToPixel(n)).x!=t.x){var a=(n.y-t.y)/(n.x-t.x);i=360*Math.atan(a)/(2*Math.PI),i=n.x<t.x?90-i+90:-i,r._marker.setRotation(-i)}else{var o=0;o=n.y-t.y>0?-1:1,r._marker.setRotation(90*-o)}},linePixellength:function(e,t){return Math.sqrt(Math.abs(e.x-t.x)*Math.abs(e.x-t.x)+Math.abs(e.y-t.y)*Math.abs(e.y-t.y))},pointToPoint:function(e,t){return Math.abs(e.x-t.x)*Math.abs(e.x-t.x)+Math.abs(e.y-t.y)*Math.abs(e.y-t.y)},_moveNext:function(e){var t=this;e<this._path.length-1?t._move(t._path[e],t._path[e+1],t._tween.linear):t.stop()},_setInfoWin:function(e){var t=this;t._overlay.setPosition(e,t._marker.getIcon().size);var n=t._troughPointIndex(e);-1!=n?(clearInterval(t._intervalFlag),t._overlay.setHtml(t._opts.landmarkPois[n].html),t._overlay.setPosition(e,t._marker.getIcon().size),t._pauseForView(n)):t._overlay.setHtml(t._opts.defaultContent)},_pauseForView:function(e){var t=this,n=setTimeout((function(){t._moveNext(++t.i)}),1e3*t._opts.landmarkPois[e].pauseTime);t._setTimeoutQuene.push(n)},_clearTimeout:function(){for(var e in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[e]);this._setTimeoutQuene.length=0},_tween:{linear:function(e,t,n,r){return(t-e)*n/r+e}},_troughPointIndex:function(e){for(var t=this._opts.landmarkPois,n=0,r=t.length;n<r;n++)if(!t[n].bShow&&this._map.getDistance(new BMap.Point(t[n].lng,t[n].lat),e)<10)return t[n].bShow=!0,n;return-1}}),r}))},function(e,t,n){(function(t){var r,i;!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(e){this._markerClusterer=e,this._map=e.getMap(),this._minClusterSize=e.getMinClusterSize(),this._isAverageCenter=e.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new s(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}var a="undefined"!=typeof window?window:void 0!==t?t:this,o=function(e,t){return e(t={exports:{}},t.exports,a),t.exports}((function(e,t,a){!function(a,o){"object"==typeof t?e.exports=o():void 0!==(i="function"==typeof(r=o)?r.call(t,n,t,e):r)&&(e.exports=i)}(0,(function(){var e,t=e=t||{version:"1.3.8"},n={};t.guid="$BAIDU$",n[t.guid]=n[t.guid]||{},t.dom=t.dom||{},t.dom.g=function(e){return"string"==typeof e||e instanceof String?document.getElementById(e):e&&e.nodeName&&(1==e.nodeType||9==e.nodeType)?e:null},t.g=t.G=t.dom.g,t.dom.getDocument=function(e){return 9==(e=t.dom.g(e)).nodeType?e:e.ownerDocument||e.document},t.lang=t.lang||{},t.lang.isString=function(e){return"[object String]"==Object.prototype.toString.call(e)},t.isString=t.lang.isString,t.dom._g=function(e){return t.lang.isString(e)?document.getElementById(e):e},t._g=t.dom._g,t.browser=t.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(t.browser.ie=t.ie=document.documentMode||+RegExp.$1),t.dom.getComputedStyle=function(e,n){e=t.dom._g(e);var r,i=t.dom.getDocument(e);return i.defaultView&&i.defaultView.getComputedStyle&&(r=i.defaultView.getComputedStyle(e,null))?r[n]||r.getPropertyValue(n):""},t.dom._styleFixer=t.dom._styleFixer||{},t.dom._styleFilter=t.dom._styleFilter||[],t.dom._styleFilter.filter=function(e,n,r){for(var i,a=0,o=t.dom._styleFilter;i=o[a];a++)(i=i[r])&&(n=i(e,n));return n},t.string=t.string||{},t.string.toCamelCase=function(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,(function(e){return e.charAt(1).toUpperCase()}))},t.dom.getStyle=function(e,n){var r=t.dom;e=r.g(e),n=t.string.toCamelCase(n);var i=e.style[n]||(e.currentStyle?e.currentStyle[n]:"")||r.getComputedStyle(e,n);if(!i){var a=r._styleFixer[n];a&&(i=a.get?a.get(e):t.dom.getStyle(e,a))}return(a=r._styleFilter)&&(i=a.filter(n,i,"get")),i},t.getStyle=t.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(t.browser.opera=+RegExp.$1),t.browser.isWebkit=/webkit/i.test(navigator.userAgent),t.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),t.browser.isStrict="CSS1Compat"==document.compatMode,t.dom.getPosition=function(e){e=t.dom.g(e);var n,r,i=t.dom.getDocument(e),a=t.browser,o=t.dom.getStyle,s=(a.isGecko>0&&i.getBoxObjectFor&&"absolute"==o(e,"position")&&(""===e.style.top||e.style.left),{left:0,top:0});if(e==(a.ie&&!a.isStrict?i.body:i.documentElement))return s;if(e.getBoundingClientRect){r=e.getBoundingClientRect(),s.left=Math.floor(r.left)+Math.max(i.documentElement.scrollLeft,i.body.scrollLeft),s.top=Math.floor(r.top)+Math.max(i.documentElement.scrollTop,i.body.scrollTop),s.left-=i.documentElement.clientLeft,s.top-=i.documentElement.clientTop;var c=i.body,l=parseInt(o(c,"borderLeftWidth")),u=parseInt(o(c,"borderTopWidth"));a.ie&&!a.isStrict&&(s.left-=isNaN(l)?2:l,s.top-=isNaN(u)?2:u)}else{n=e;do{if(s.left+=n.offsetLeft,s.top+=n.offsetTop,a.isWebkit>0&&"fixed"==o(n,"position")){s.left+=i.body.scrollLeft,s.top+=i.body.scrollTop;break}n=n.offsetParent}while(n&&n!=e);for((a.opera>0||a.isWebkit>0&&"absolute"==o(e,"position"))&&(s.top-=i.body.offsetTop),n=e.offsetParent;n&&n!=i.body;)s.left-=n.scrollLeft,a.opera&&"TR"==n.tagName||(s.top-=n.scrollTop),n=n.offsetParent}return s},t.event=t.event||{},t.event._listeners=t.event._listeners||[],t.event.on=function(e,n,r){n=n.replace(/^on/i,""),e=t.dom._g(e);var i,a=function(t){r.call(e,t)},o=t.event._listeners,s=t.event._eventFilter,c=n;return n=n.toLowerCase(),s&&s[n]&&(c=(i=s[n](e,n,a)).type,a=i.listener),e.addEventListener?e.addEventListener(c,a,!1):e.attachEvent&&e.attachEvent("on"+c,a),o[o.length]=[e,n,r,a,c],e},t.on=t.event.on,function(){var e=n[t.guid];t.lang.guid=function(){return"TANGRAM__"+(e._counter++).toString(36)},e._counter=e._counter||1}(),n[t.guid]._instances=n[t.guid]._instances||{},t.lang.isFunction=function(e){return"[object Function]"==Object.prototype.toString.call(e)},t.lang.Class=function(e){this.guid=e||t.lang.guid(),n[t.guid]._instances[this.guid]=this},n[t.guid]._instances=n[t.guid]._instances||{},t.lang.Class.prototype.dispose=function(){for(var e in delete n[t.guid]._instances[this.guid],this)t.lang.isFunction(this[e])||delete this[e];this.disposed=!0},t.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},t.lang.Event=function(e,t){this.type=e,this.returnValue=!0,this.target=t||null,this.currentTarget=null},t.lang.Class.prototype.addEventListener=function(e,n,r){if(t.lang.isFunction(n)){!this.__listeners&&(this.__listeners={});var i,a=this.__listeners;if("string"==typeof r&&r){if(/[^\w\-]/.test(r))throw"nonstandard key:"+r;n.hashCode=r,i=r}0!=e.indexOf("on")&&(e="on"+e),"object"!=typeof a[e]&&(a[e]={}),i=i||t.lang.guid(),n.hashCode=i,a[e][i]=n}},t.lang.Class.prototype.removeEventListener=function(e,n){if(void 0===n||(!t.lang.isFunction(n)||(n=n.hashCode))&&t.lang.isString(n)){!this.__listeners&&(this.__listeners={}),0!=e.indexOf("on")&&(e="on"+e);var r=this.__listeners;if(r[e])if(void 0!==n)r[e][n]&&delete r[e][n];else for(var i in r[e])delete r[e][i]}},t.lang.Class.prototype.dispatchEvent=function(e,n){for(var r in t.lang.isString(e)&&(e=new t.lang.Event(e)),!this.__listeners&&(this.__listeners={}),n=n||{})e[r]=n[r];var i=this.__listeners,a=e.type;if(e.target=e.target||this,e.currentTarget=this,0!=a.indexOf("on")&&(a="on"+a),t.lang.isFunction(this[a])&&this[a].apply(this,arguments),"object"==typeof i[a])for(r in i[a])i[a][r].apply(this,arguments);return e.returnValue},t.lang.inherits=function(e,t,n){var r,i,a=e.prototype,o=new Function;for(r in o.prototype=t.prototype,i=e.prototype=new o,a)i[r]=a[r];e.prototype.constructor=e,e.superClass=t.prototype,"string"==typeof n&&(i._className=n)},t.inherits=t.lang.inherits;var r=function(t,n,i){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}e.lang.inherits(r,BMap.Overlay,"TextIconOverlay"),this._position=t,this._text=n,this._options=i||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return r.prototype._setupDefaultStyles=function(){for(var e,t=[53,56,66,78,90],n=0;e=t[n];n++)this._styles.push({url:"http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m"+n+".png",size:new BMap.Size(e,e)})},r.prototype.initialize=function(e){return this._map=e,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},r.prototype.draw=function(){this._map&&this._updatePosition()},r.prototype.getText=function(){return this._text},r.prototype.setText=function(e){!e||this._text&&this._text.toString()==e.toString()||(this._text=e,this._updateText(),this._updateCss(),this._updatePosition())},r.prototype.getPosition=function(){return this._position},r.prototype.setPosition=function(e){!e||this._position&&this._position.equals(e)||(this._position=e,this._updatePosition())},r.prototype.getStyleByText=function(e,t){var n=parseInt(e),r=parseInt(n/10);return r=Math.max(0,r),t[r=Math.min(r,t.length-1)]},r.prototype._updateCss=function(){if(this._domElement){var e=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(e)}},r.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},r.prototype._updatePosition=function(){if(this._domElement&&this._position){var e=this._domElement.style,t=this._map.pointToOverlayPixel(this._position);t.x-=Math.ceil(parseInt(e.width)/2),t.y-=Math.ceil(parseInt(e.height)/2),e.left=t.x+"px",e.top=t.y+"px"}},r.prototype._buildCssText=function(t){var n=t.url,r=t.size,i=t.anchor,a=t.offset,o=t.textColor||"black",s=t.textSize||10,c=[];if(e.browser.ie<7)c.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+n+'");');else{c.push("background-image:url("+n+");");var l="0 0";a instanceof BMap.Size&&(l=a.width+"px "+a.height+"px"),c.push("background-position:"+l+";")}return r instanceof BMap.Size&&(i instanceof BMap.Size?(i.height>0&&i.height<r.height&&c.push("height:"+(r.height-i.height)+"px; padding-top:"+i.height+"px;"),i.width>0&&i.width<r.width&&c.push("width:"+(r.width-i.width)+"px; padding-left:"+i.width+"px;")):(c.push("height:"+r.height+"px; line-height:"+r.height+"px;"),c.push("width:"+r.width+"px; text-align:center;"))),c.push("cursor:pointer; color:"+o+"; position:absolute; font-size:"+s+"px; font-family:Arial,sans-serif; font-weight:bold"),c.join("")},r.prototype._bind=function(){function t(t,n){var i=t.srcElement||t.target,a=t.clientX||t.pageX,o=t.clientY||t.pageY;if(t&&n&&a&&o&&i){var s=e.dom.getPosition(r.getContainer());n.pixel=new BMap.Pixel(a-s.left,o-s.top),n.point=r.pixelToPoint(n.pixel)}return n}if(this._domElement){var n=this,r=this._map,i=e.lang.Event;e.event.on(this._domElement,"mouseover",(function(e){n.dispatchEvent(t(e,new i("onmouseover")))})),e.event.on(this._domElement,"mouseout",(function(e){n.dispatchEvent(t(e,new i("onmouseout")))})),e.event.on(this._domElement,"click",(function(e){n.dispatchEvent(t(e,new i("onclick")))}))}},r}))})),s=o&&"object"==typeof o&&"default"in o?o.default:o,c=function(e,t,n){t=l(t);var r=e.pointToPixel(t.getNorthEast()),i=e.pointToPixel(t.getSouthWest());r.x+=n,r.y-=n,i.x-=n,i.y+=n;var a=e.pixelToPoint(r),o=e.pixelToPoint(i);return new BMap.Bounds(o,a)},l=function(e){var t=u(e.getNorthEast().lng,-180,180),n=u(e.getSouthWest().lng,-180,180),r=u(e.getNorthEast().lat,-74,74),i=u(e.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(n,i),new BMap.Point(t,r))},u=function(e,t,n){return t&&(e=Math.max(e,t)),n&&(e=Math.min(e,n)),e},h=function(e){return"[object Array]"===Object.prototype.toString.call(e)},f=function(e,t){var n=-1;if(h(t))if(t.indexOf)n=t.indexOf(e);else for(var r,i=0;r=t[i];i++)if(r===e){n=i;break}return n},d=function(e,t){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}if(e){this._map=e,this._markers=[],this._clusters=[];var n=t||{};this._gridSize=n.gridSize||60,this._maxZoom=n.maxZoom||18,this._minClusterSize=n.minClusterSize||2,this._isAverageCenter=!1,null!=n.isAverageCenter&&(this._isAverageCenter=n.isAverageCenter),this._styles=n.styles||[];var r=this;this._map.addEventListener("zoomend",(function(){r._redraw()})),this._map.addEventListener("moveend",(function(){r._redraw()}));var i=n.markers;h(i)&&this.addMarkers(i)}};return d.prototype.addMarkers=function(e){if(e.length){for(var t=0,n=e.length;t<n;t++)this._pushMarkerTo(e[t]);this._createClusters()}},d.prototype._pushMarkerTo=function(e){-1===f(e,this._markers)&&(e.isInCluster=!1,this._markers.push(e))},d.prototype.addMarker=function(e){this._pushMarkerTo(e),this._createClusters()},d.prototype._createClusters=function(){var e=this._map.getBounds();if(e.getCenter())for(var t,n=c(this._map,e,this._gridSize),r=0;t=this._markers[r];r++)!t.isInCluster&&n.containsPoint(t.getPosition())&&this._addToClosestCluster(t)},d.prototype._addToClosestCluster=function(t){for(var n=4e6,r=null,i=(t.getPosition(),0);s=this._clusters[i];i++){var a=s.getCenter();if(a){var o=this._map.getDistance(a,t.getPosition());o<n&&(n=o,r=s)}}var s;r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((s=new e(this)).addMarker(t),this._clusters.push(s))},d.prototype._clearLastClusters=function(){for(var e,t=0;e=this._clusters[t];t++)e.remove();this._clusters=[],this._removeMarkersFromCluster()},d.prototype._removeMarkersFromCluster=function(){for(var e,t=0;e=this._markers[t];t++)e.isInCluster=!1},d.prototype._removeMarkersFromMap=function(){for(var e,t=0;e=this._markers[t];t++){e.isInCluster=!1;var n=e.getLabel();this._map.removeOverlay(e),e.setLabel(n)}},d.prototype._removeMarker=function(e){var t=f(e,this._markers);return-1!==t&&(this._map.removeOverlay(e),this._markers.splice(t,1),!0)},d.prototype.removeMarker=function(e){var t=this._removeMarker(e);return t&&(this._clearLastClusters(),this._createClusters()),t},d.prototype.removeMarkers=function(e){for(var t=!1,n=0;n<e.length;n++){var r=this._removeMarker(e[n]);t=t||r}return t&&(this._clearLastClusters(),this._createClusters()),t},d.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},d.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},d.prototype.getGridSize=function(){return this._gridSize},d.prototype.setGridSize=function(e){this._gridSize=e,this._redraw()},d.prototype.getMaxZoom=function(){return this._maxZoom},d.prototype.setMaxZoom=function(e){this._maxZoom=e,this._redraw()},d.prototype.getStyles=function(){return this._styles},d.prototype.setStyles=function(e){this._styles=e,this._redraw()},d.prototype.getMinClusterSize=function(){return this._minClusterSize},d.prototype.setMinClusterSize=function(e){this._minClusterSize=e,this._redraw()},d.prototype.isAverageCenter=function(){return this._isAverageCenter},d.prototype.getMap=function(){return this._map},d.prototype.getMarkers=function(){return this._markers},d.prototype.getClustersCount=function(){for(var e,t=0,n=0;e=this._clusters[n];n++)e.isReal()&&t++;return t},e.prototype.addMarker=function(e){if(this.isMarkerInCluster(e))return!1;if(this._center){if(this._isAverageCenter){var t=this._markers.length+1,n=(this._center.lat*(t-1)+e.getPosition().lat)/t,r=(this._center.lng*(t-1)+e.getPosition().lng)/t;this._center=new BMap.Point(r,n),this.updateGridBounds()}}else this._center=e.getPosition(),this.updateGridBounds();e.isInCluster=!0,this._markers.push(e);var i=this._markers.length;if(i<this._minClusterSize)return this._map.addOverlay(e),!0;if(i===this._minClusterSize)for(var a=0;a<i;a++){var o=this._markers[a].getLabel();this._markers[a].getMap()&&this._map.removeOverlay(this._markers[a]),this._markers[a].setLabel(o)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},e.prototype.isMarkerInCluster=function(e){if(this._markers.indexOf)return-1!=this._markers.indexOf(e);for(var t,n=0;t=this._markers[n];n++)if(t===e)return!0;return!1},e.prototype.isMarkerInClusterBounds=function(e){return this._gridBounds.containsPoint(e.getPosition())},e.prototype.isReal=function(e){return this._isReal},e.prototype.updateGridBounds=function(){var e=new BMap.Bounds(this._center,this._center);this._gridBounds=c(this._map,e,this._markerClusterer.getGridSize())},e.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var e,t=0;e=this._markers[t];t++)this._map.addOverlay(e)}else{if(this._markers.length<this._minClusterSize)return void this._clusterMarker.hide();this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(e){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))}},e.prototype.remove=function(){for(var e=0;this._markers[e];e++){var t=this._markers[e].getLabel();this._markers[e].getMap()&&this._map.removeOverlay(this._markers[e]),this._markers[e].setLabel(t)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},e.prototype.getBounds=function(){for(var e,t=new BMap.Bounds(this._center,this._center),n=0;e=this._markers[n];n++)t.extend(e.getPosition());return t},e.prototype.getCenter=function(){return this._center},d}))}).call(t,n(3))},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.paths.length?n("div",e._l(e.paths,(function(t,r){return n("bm-polygon",{key:r,attrs:{path:t,"stroke-color":e.strokeColor,"stroke-weight":e.strokeWeight,"stroke-opacity":e.strokeOpacity,"stroke-style":e.strokeStyle,"fill-opacity":e.fillOpacity,"fill-color":e.fillColor,"mass-clear":e.massClear,clicking:e.clicking},on:{click:function(t){e.$emit("click",t)},dblclick:function(t){e.$emit("dblclick",t)},mousedown:function(t){e.$emit("mousedown",t)},mouseup:function(t){e.$emit("mouseup",t)},mouseout:function(t){e.$emit("mouseout",t)},mouseover:function(t){e.$emit("mouseover",t)},remove:function(t){e.$emit("remove",t)}}})}))):e._e()},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._t("default",[n("input")])],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.hasBmView?e._e():n("div",{ref:"view",staticStyle:{width:"100%",height:"100%"}}),e._v(" "),e._t("default")],2)},staticRenderFns:[]}}]);
/***/},
/***/bda7:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return s}));
/* harmony import */var r=n("6d8b"),i=n("f279");
/* harmony import */function a(e,t,n){for(var r=0;r<e.length;r++)e[r]=o(e[r],t[r],n)}function o(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;
// ZigZag decoding
s=s>>1^-(1&s),c=c>>1^-(1&c),i=
// Delta deocding
s+=i,a=c+=a,
// Dequantize
r.push([s/n,c/n])}return r}function s(e,t){return e=
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Parse and decode geo json
 */
function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return r.each(i,(function(e){var t=e.geometry,i=t.encodeOffsets,s=t.coordinates;
// Geometry may be appeded manually in the script after json loaded.
// In this case this geometry is usually not encoded.
if(i)switch(t.type){case"LineString":t.coordinates=o(s,i,n);break;case"Polygon":case"MultiLineString":a(s,i,n);break;case"MultiPolygon":r.each(s,(function(e,t){return a(e,i[t],n)}))}})),
// Has been decoded
t.UTF8Encoding=!1,t}(e),r.map(r.filter(e.features,(function(e){
// Output of mapshaper may have geometry null
return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,a=e.geometry,o=[];switch(a.type){case"Polygon":var s=a.coordinates;
// According to the GeoJSON specification.
// First must be exterior, and the rest are all interior(holes).
o.push(new i.b(s[0],s.slice(1)));break;case"MultiPolygon":r.each(a.coordinates,(function(e){e[0]&&o.push(new i.b(e[0],e.slice(1)))}));break;case"LineString":o.push(new i.a([a.coordinates]));break;case"MultiLineString":o.push(new i.a(a.coordinates))}var c=new i.c(n[t||"name"],o,n.cp);return c.properties=n,c}))}
/***/},
/***/bde8:
/***/function(e,t,n){var r=n("93e0"),i=n("eb9a").set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,c="process"==n("1c2d")(o);e.exports=function(){var e,t,n,l=function(){var r,i;for(c&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};
// Node.js
if(c)n=function(){o.nextTick(l)};
// browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){
// Promise.resolve without an argument throws an error in LG WebOS 2
var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){
// strange IE + webpack dev server bug - use .call(global)
i.call(r,l)};else{var h=!0,f=document.createTextNode("");new a(l).observe(f,{characterData:!0}),// eslint-disable-line no-new
n=function(){f.data=h=!h}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},
/***/becb:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.filterNonNumber=s,t.deepMerge=c,t.mulAdd=l,t.mergeSameStackData=function(e,t){var n=e.stack;if(!n)return(0,i.default)(e.data);var r=t.filter((function(e){return e.stack===n})),a=r.findIndex((function(t){return t.data===e.data})),o=r.splice(0,a+1).map((function(e){return e.data})),s=o[0].length;return new Array(s).fill(0).map((function(e,t){return l(o.map((function(e){return e[t]})))}))},t.getTwoPointDistance=u,t.getLinearGradientColor=function(e,t,n,r){if(!(e&&t&&n&&r.length))return;var a=r;"string"==typeof a&&(a=[r,r]);var o=e.createLinearGradient.apply(e,(0,i.default)(t).concat((0,i.default)(n))),s=1/(a.length-1);return a.forEach((function(e,t){return o.addColorStop(s*t,e)})),o},t.getPolylineLength=function(e){return l(new Array(e.length-1).fill(0).map((function(t,n){return[e[n],e[n+1]]})).map((function(e){return u.apply(void 0,(0,i.default)(e))})))},t.getPointToLineDistance=function(e,t,n){var r=u(e,t),i=u(e,n),a=u(t,n);return.5*Math.sqrt((r+i+a)*(r+i-a)*(r+a-i)*(i+a-r))/a},t.initNeedSeries=function(e,t,n){return(e=(e=e.filter((function(e){return e.type===n}))).map((function(e){return c((0,o.deepClone)(t,!0),e)}))).filter((function(e){return e.show}))},t.radianToAngle=function(e){return e/Math.PI*180}
/***/;var i=r(n("448a")),a=r(n("7037")),o=n("5557");function s(e){return e.filter((function(e){return"number"==typeof e}))}function c(e,t){for(var n in t)e[n]&&"object"===(0,a.default)(e[n])?c(e[n],t[n]):"object"!==(0,a.default)(t[n])?e[n]=t[n]:e[n]=(0,o.deepClone)(t[n],!0);return e}function l(e){return(e=s(e)).reduce((function(e,t){return e+t}),0)}function u(e,t){var n=Math.abs(e[0]-t[0]),r=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+r*r)}},
/***/bf19:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");
// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},
/***/c005:
/***/function(e,t,n){var r=n("2686"),i=n("b047f"),a=n("99d3"),o=a&&a.isRegExp,s=o?i(o):r;
/* Node.js helper references. */e.exports=s},
/***/c04e:
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");
// `ToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-toprimitive
e.exports=function(e,t){if(!i(e)||a(e))return e;var n,c=o(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||a(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},
/***/c053:
/***/function(e,t){e.exports={};
/***/},
/***/c05f:
/***/function(e,t,n){var r=n("7b97"),i=n("1310");
/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},
/***/c098:
/***/function(e,t){
/** Used as references for various `Number` constants. */
var n=/^(?:0|[1-9]\d*)$/;
/** Used to detect unsigned integer values. */e.exports=
/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},
/***/c135:
/***/function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/c183:
/***/function(e,t,n){var r=n("512c");
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
r(r.S+r.F*!n("0bad"),"Object",{defineProperty:n("1a14").f})},
/***/c195:
/***/function(e,t,n){var r=n("bcf7"),i=n("217d"),a=i.each,o=i.isFunction,s=i.isArray;
/**
 * Allows for registration of query handlers.
 * Manages the query handler's state and is responsible for wiring up browser events
 *
 * @constructor
 */
function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,
/**
     * Registers a handler for the given media query
     *
     * @param {string} q the media query
     * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
     * @param {function} options.match fired when query matched
     * @param {function} [options.unmatch] fired when a query is no longer matched
     * @param {function} [options.setup] fired when handler first triggered
     * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
     * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
     */
register:function(e,t,n){var i=this.queries,c=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,c)),
//normalise to object in an array
o(t)&&(t={match:t}),s(t)||(t=[t]),a(t,(function(t){o(t)&&(t={match:t}),i[e].addHandler(t)})),this},
/**
     * unregisters a query and all it's handlers, or a specific handler for a query
     *
     * @param {string} q the media query to target
     * @param {object || function} [handler] specific handler to unregister
     */
unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=c},
/***/c1a1:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b4bc");
// `Set.prototype.isDisjointFrom` method
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
r({target:"Set",proto:!0,real:!0,forced:!n("dad2")("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:i})},
/***/c1c9:
/***/function(e,t,n){var r=n("a454"),i=n("f3c1")(r);
/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */e.exports=i},
/***/c1df:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}
// This is done to register the method called with moment()
// without creating circular dependencies.
function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){
// IE8 will treat undefined and null as object if it wasn't for
// input != null
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Yn(e,t,n,r,!0).utc()}function g(){
// We need to deep clone this object.
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=g()),e._pf}function v(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=m(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function y(e){var t=p(NaN);return null!=e?d(m(t),e):m(t).userInvalidated=!0,t}
// Plugins that add properties should also add the key here (null value),
// so we can properly clone ourselves.
n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var A=r.momentProperties=[],b=!1;function w(e,t){var n,r,i,a=A.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=m(t)),l(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)l(i=t[r=A[n]])||(e[r]=i);return e}
// Moment prototype object
function x(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
// Prevent infinite loop in case updateOffset creates new moment
// objects.
!1===b&&(b=!0,r.updateOffset(this),b=!1)}function C(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function _(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function I(e,t){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,c=[],l=arguments.length;for(a=0;a<l;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];c.push(i)}_(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,k={};function S(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(_(t),k[e]=!0)}function B(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,n;for(n in e)s(e,n)&&(B(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
// Lenient ordinal parsing accepts just a number in addition to
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
// TODO: Remove "ordinalParse" fallback in next major release.
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,r=d({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(
// make sure changes to properties don't modify parent config
r[n]=d({},r[n]));return r}function O(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var D={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return B(r)?r.call(t,n):r}function L(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},N={};
// token:    'M'
// padded:   ['MM', 2]
// ordinal:  'Mo'
// callback: function () { this.month() + 1 }
function F(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(Q);for(t=0,n=r.length;t<n;t++)N[r[t]]?r[t]=N[r[t]]:r[t]=z(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=B(r[i])?r[i].call(t,e):r[i];return a}}
// format date using native date object
function U(e,t){return e.isValid()?(t=G(t,e.localeData()),j[t]=j[t]||H(t),j[t](e)):e.localeData().invalidDate()}function G(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,r),R.lastIndex=0,n-=1;return e}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Q).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function Y(){return this._invalidDate}var K="%d",$=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Z(e,t,n,r){var i=this._relativeTime[n];return B(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return B(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var//           0-99
oe,se=/\d/,//       0 - 9
ce=/\d\d/,//      00 - 99
le=/\d{3}/,//     000 - 999
ue=/\d{4}/,//    0000 - 9999
he=/[+-]?\d{6}/,// -999999 - 999999
fe=/\d\d?/,//       0 - 99
de=/\d\d\d\d?/,//     999 - 9999
pe=/\d\d\d\d\d\d?/,//   99999 - 999999
ge=/\d{1,3}/,//       0 - 999
me=/\d{1,4}/,//       0 - 9999
ve=/[+-]?\d{1,6}/,// -999999 - 999999
ye=/\d+/,//       0 - inf
Ae=/[+-]?\d+/,//    -inf - inf
be=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
we=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
xe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
// any word (or two) characters or numbers including two/three word month in arabic.
// includes scottish gaelic two word and hyphenated months
Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e=/^[1-9]\d?/,//         1-99
Ie=/^([1-9]\d|\d)/;function Ee(e,t,n){oe[e]=B(t)?t:function(e,r){return e&&n?n:t}}function ke(e,t){return s(oe,e)?oe[e](t._strict,t._locale):new RegExp(Se(e))}
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
function Se(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Te(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Me(t)),n}oe={};var Oe={};function De(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=Te(e)}),r=e.length,n=0;n<r;n++)Oe[e[n]]=i}function Pe(e,t){De(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Le(e,t,n){null!=t&&s(Oe,e)&&Oe[e](t,n._a,n,e)}function Qe(e){return e%4==0&&e%100!=0||e%400==0}var Re=0,je=1,Ne=2,Fe=3,ze=4,He=5,Ue=6,Ge=7,Ve=8;
// FORMATTING
// HELPERS
function We(e){return Qe(e)?366:365}
// HOOKS
F("Y",0,0,(function(){var e=this.year();return e<=9999?L(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),
// PARSING
Ee("Y",Ae),Ee("YY",fe,ce),Ee("YYYY",me,ue),Ee("YYYYY",ve,he),Ee("YYYYYY",ve,he),De(["YYYYY","YYYYYY"],Re),De("YYYY",(function(e,t){t[Re]=2===e.length?r.parseTwoDigitYear(e):Te(e)})),De("YY",(function(e,t){t[Re]=r.parseTwoDigitYear(e)})),De("Y",(function(e,t){t[Re]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Te(e)+(Te(e)>68?1900:2e3)};
// MOMENTS
var qe,Ye=$e("FullYear",!0);function Ke(){return Qe(this.year())}function $e(e,t){return function(n){return null!=n?(Xe(this,e,n),r.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN;// Just in case
}}function Xe(e,t,n){var r,i,a,o,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));
// case 'Day': // Not real
//    return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
// case 'Month': // Not used because we need to pass two variables
//     return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
case"FullYear":break;// See below ...
default:return;// Just in case
}a=n,o=e.month(),s=29!==(s=e.date())||1!==o||Qe(a)?s:28,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}
// MOMENTS
function Ze(e){return B(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=ae(e=re(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(B(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Qe(e)?29:28:31-n%7%2}
// FORMATTING
qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
// I know
var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),
// PARSING
Ee("M",fe,_e),Ee("MM",fe,ce),Ee("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ee("MMMM",(function(e,t){return t.monthsRegex(e)})),De(["M","MM"],(function(e,t){t[je]=Te(e)-1})),De(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
// if we didn't find a month name, mark the date as invalid.
null!=i?t[je]=i:m(n).invalidMonth=e}));
// LOCALES
var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Ce,st=Ce;function ct(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function lt(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(
// this is not used
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=qe.call(this._shortMonthsParse,o))?i:null:-1!==(i=qe.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=qe.call(this._shortMonthsParse,o))||-1!==(i=qe.call(this._longMonthsParse,o))?i:null:-1!==(i=qe.call(this._longMonthsParse,o))||-1!==(i=qe.call(this._shortMonthsParse,o))?i:null}function ht(e,t,n){var r,i,a;if(this._monthsParseExact)return ut.call(this,e,t,n);
// TODO: add sorting
// Sorting makes sure if one month (or abbr) is a prefix of another
// see sorting in computeMonthsParse
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){
// test the regex
if(
// make the regex if we don't have it already
i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}
// MOMENTS
function ft(e,t){if(!e.isValid())
// No op
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Te(t);else
// TODO: Another silent failure?
if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function dt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Je(this,"Month")}function pt(){return nt(this.year(),this.month())}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],o=[],s=[];for(t=0;t<12;t++)
// make the regex if we don't have it already
n=p([2e3,t]),r=Be(this.monthsShort(n,"")),i=Be(this.months(n,"")),a.push(r),o.push(i),s.push(i),s.push(r);
// Sorting makes sure if one month (or abbr) is a prefix of another it
// will match the longer piece.
a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function yt(e,t,n,r,i,a,o){
// can't just apply() to create a date:
// https://stackoverflow.com/q/181348
var s;
// the date constructor remaps years 0-99 to 1900-1999
return e<100&&e>=0?(
// preserve leap years using a full 400 year cycle, then reset
s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function At(e){var t,n;
// the Date.UTC function remaps years 0-99 to 1900-1999
return e<100&&e>=0?(
// preserve leap years using a full 400 year cycle, then reset
(n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}
// start-of-first-week - start-of-year
function bt(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
r=7+t-n;return-(7+At(e,0,r).getUTCDay()-t)%7+r-1}
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
function wt(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+bt(e,r,i);return s<=0?o=We(a=e-1)+s:s>We(e)?(a=e+1,o=s-We(e)):(a=e,o=s),{year:a,dayOfYear:o}}function xt(e,t,n){var r,i,a=bt(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Ct(i=e.year()-1,t,n):o>Ct(e.year(),t,n)?(r=o-Ct(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ct(e,t,n){var r=bt(e,t,n),i=bt(e+1,t,n);return(We(e)-r+i)/7}
// FORMATTING
// HELPERS
// LOCALES
function _t(e){return xt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),
// PARSING
Ee("w",fe,_e),Ee("ww",fe,ce),Ee("W",fe,_e),Ee("WW",fe,ce),Pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Te(e)}));var It={dow:0,// Sunday is the first day of the week.
doy:6};function Et(){return this._week.dow}function kt(){return this._week.doy}
// MOMENTS
function St(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Bt(e){var t=xt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}
// FORMATTING
// HELPERS
function Mt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Tt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
// LOCALES
function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),
// PARSING
Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ee("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ee("dddd",(function(e,t){return t.weekdaysRegex(e)})),Pe(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
// if we didn't get a weekday name, mark the date as invalid
null!=i?t.d=i:m(n).invalidWeekday=e})),Pe(["d","e","E"],(function(e,t,n,r){t[r]=Te(e)}));var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qt=Ce,Rt=Ce,jt=Ce;function Nt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(n,this._week.dow):e?n[e.day()]:n}function Ft(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=qe.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=qe.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=qe.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=qe.call(this._weekdaysParse,o))||-1!==(i=qe.call(this._shortWeekdaysParse,o))||-1!==(i=qe.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=qe.call(this._shortWeekdaysParse,o))||-1!==(i=qe.call(this._weekdaysParse,o))||-1!==(i=qe.call(this._minWeekdaysParse,o))?i:null:-1!==(i=qe.call(this._minWeekdaysParse,o))||-1!==(i=qe.call(this._weekdaysParse,o))||-1!==(i=qe.call(this._shortWeekdaysParse,o))?i:null}function Ut(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
// test the regex
if(
// make the regex if we don't have it already
i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}
// MOMENTS
function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;
// behaves the same as moment#day except
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
// as a setter, sunday should belong to the previous week.
if(null!=e){var t=Tt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Qt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],c=[],l=[];for(t=0;t<7;t++)
// make the regex if we don't have it already
n=p([2e3,1]).day(t),r=Be(this.weekdaysMin(n,"")),i=Be(this.weekdaysShort(n,"")),a=Be(this.weekdays(n,"")),o.push(r),s.push(i),c.push(a),l.push(r),l.push(i),l.push(a);
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
// will match the longer piece.
o.sort(e),s.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}
// FORMATTING
function Jt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Zt(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
// PARSING
function en(e,t){return t._meridiemParse}
// LOCALES
function tn(e){
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
// Using charAt should be more compatible.
return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Jt),F("k",["kk",2],0,Xt),F("hmm",0,0,(function(){return""+Jt.apply(this)+L(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Jt.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),Zt("a",!0),Zt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,Ie),Ee("h",fe,_e),Ee("k",fe,_e),Ee("HH",fe,ce),Ee("hh",fe,ce),Ee("kk",fe,ce),Ee("hmm",de),Ee("hmmss",pe),Ee("Hmm",de),Ee("Hmmss",pe),De(["H","HH"],Fe),De(["k","kk"],(function(e,t,n){var r=Te(e);t[Fe]=24===r?0:r})),De(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),De(["h","hh"],(function(e,t,n){t[Fe]=Te(e),m(n).bigHour=!0})),De("hmm",(function(e,t,n){var r=e.length-2;t[Fe]=Te(e.substr(0,r)),t[ze]=Te(e.substr(r)),m(n).bigHour=!0})),De("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Fe]=Te(e.substr(0,r)),t[ze]=Te(e.substr(r,2)),t[He]=Te(e.substr(i)),m(n).bigHour=!0})),De("Hmm",(function(e,t,n){var r=e.length-2;t[Fe]=Te(e.substr(0,r)),t[ze]=Te(e.substr(r))})),De("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Fe]=Te(e.substr(0,r)),t[ze]=Te(e.substr(r,2)),t[He]=Te(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,
// Setting the hour should keep the time, because the user explicitly
// specified which hour they want. So trying to maintain the same hour (in
// a new timezone) makes sense. Adding/subtracting hours does not follow
// this rule.
rn=$e("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,sn={calendar:D,longDateFormat:V,invalidDate:q,ordinal:K,dayOfMonthOrdinalParse:$,relativeTime:X,months:rt,monthsShort:it,week:It,weekdays:Dt,weekdaysMin:Lt,weekdaysShort:Pt,meridiemParse:nn},cn={},ln={};
// internal storage for locale config files
function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}
// pick the locale from the array
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
function fn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=hn(e[a]).split("-")).length,n=(n=hn(e[a+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(i,n)>=t-1)
//the next array item is better than a shallower substring of this one
break;t--}a++}return on}function dn(e){
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
// Ensure name is available and function returns boolean
return!(!e||!e.match("^[^/\\\\]*$"))}function pn(t){var n=null;
// TODO: Find a better way to register and load all the locales in Node
if(void 0===cn[t]&&void 0!==e&&e&&e.exports&&dn(t))try{n=on._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),gn(n)}catch(e){
// mark as not found to avoid repeating expensive file require call causing high CPU
// when trying to find en-US, en_US, en-us for every format call
cn[t]=null;// null means not found
}return cn[t]}
// This function will load locale and then set the global locale.  If
// no arguments are passed in, it will simply return the current global
// locale key.
function gn(e,t){var n;return e&&((n=l(t)?yn(e):mn(e,t))?
// moment.duration._locale = moment._locale = data;
on=n:"undefined"!=typeof console&&console.warn),on._abbr}function mn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=cn[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new O(T(r,t)),ln[e]&&ln[e].forEach((function(e){mn(e.name,e.config)})),
// backwards compat for now: also set the locale
// make sure we set the locale AFTER all child locales have been
// created, so we won't end up with the child locale set.
gn(e),cn[e]}
// useful for testing
return delete cn[e],null}function vn(e,t){if(null!=t){var n,r,i=sn;null!=cn[e]&&null!=cn[e].parentLocale?
// Update existing child locale in-place to avoid memory-leaks
cn[e].set(T(cn[e]._config,t)):(
// MERGE
null!=(r=pn(e))&&(i=r._config),t=T(i,t),null==r&&(
// updateLocale is called for creating a new locale
// Set abbr so it will have a name (getters return
// undefined otherwise).
t.abbr=e),(n=new O(t)).parentLocale=cn[e],cn[e]=n),
// backwards compat for now: also set the locale
gn(e)}else
// pass null for config to unupdate, useful for tests
null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}
// returns locale data
function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!a(e)){if(
//short-circuit everything else
t=pn(e))return t;e=[e]}return fn(e)}function An(){return E(cn)}function bn(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[je]<0||n[je]>11?je:n[Ne]<1||n[Ne]>nt(n[Re],n[je])?Ne:n[Fe]<0||n[Fe]>24||24===n[Fe]&&(0!==n[ze]||0!==n[He]||0!==n[Ue])?Fe:n[ze]<0||n[ze]>59?ze:n[He]<0||n[He]>59?He:n[Ue]<0||n[Ue]>999?Ue:-1,m(e)._overflowDayOfYear&&(t<Re||t>Ne)&&(t=Ne),m(e)._overflowWeeks&&-1===t&&(t=Ge),m(e)._overflowWeekday&&-1===t&&(t=Ve),m(e).overflow=t),e}
// iso 8601 regex
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,_n=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
// iso time formats and regexes
In=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
// date from iso format
function Bn(e){var t,n,r,i,a,o,s=e._i,c=wn.exec(s)||xn.exec(s),l=_n.length,u=In.length;if(c){for(m(e).iso=!0,t=0,n=l;t<n;t++)if(_n[t][1].exec(c[1])){i=_n[t][0],r=!1!==_n[t][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(In[t][1].exec(c[3])){
// match[2] should be 'T' or space
a=(c[2]||" ")+In[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(c[4]){if(!Cn.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),zn(e)}else e._isValid=!1}function Mn(e,t,n,r,i,a){var o=[Tn(e),it.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Tn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function On(e){
// Remove comments and folding whitespace and replace multiple-spaces with a single space
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Sn[e];if(t)
// the only allowed military tz is Z
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
// date and time from ref 2822 format
function Ln(e){var t,n=kn.exec(On(e._i));if(n){if(t=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=At.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
function Qn(e){var t=En.exec(e._i);null===t?(Bn(e),!1===e._isValid&&(delete e._isValid,Ln(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
// Final attempt, use Input Fallback
r.createFromInputFallback(e)))):e._d=new Date(+t[1])}
// Pick the first defined of two or three arguments.
function Rn(e,t,n){return null!=e?e:null!=t?t:n}function jn(e){
// hooks is actually the exported moment object
var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}
// convert an array to a date.
// the array should mirror the parameters below
// note: all values past the year are optional and will default to the lowest possible value.
// [year, month, day , hour, minute, second, millisecond]
function Nn(e){var t,n,r,i,a,o=[];if(!e._d){
// Default to current date.
// * if no year, month, day of month are given, default to today
// * if day of month is given, default month and year
// * if month is given, default only year
// * if year is given, don't default anything
for(r=jn(e),
//compute day of the year from weeks and weekdays
e._w&&null==e._a[Ne]&&null==e._a[je]&&Fn(e),
//if the day of the year is set, figure out what it is
null!=e._dayOfYear&&(a=Rn(e._a[Re],r[Re]),(e._dayOfYear>We(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=At(a,0,e._dayOfYear),e._a[je]=n.getUTCMonth(),e._a[Ne]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];
// Zero out whatever was not defaulted, including time
for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];
// Check for 24:00:00.000
24===e._a[Fe]&&0===e._a[ze]&&0===e._a[He]&&0===e._a[Ue]&&(e._nextDay=!0,e._a[Fe]=0),e._d=(e._useUTC?At:yt).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
// Apply timezone offset from input. The actual utcOffset can be changed
// with parseZone.
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Fe]=24),
// check for mismatching day of week
e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function Fn(e){var t,n,r,i,a,o,s,c,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,
// TODO: We need to take the current isoWeekYear, but that depends on
// how we interpret now (local, utc, fixed offset). So create
// a now version of current config (take local/utc/offset flags, and
// create now).
n=Rn(t.GG,e._a[Re],xt(Kn(),1,4).year),r=Rn(t.W,1),((i=Rn(t.E,1))<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=xt(Kn(),a,o),n=Rn(t.gg,e._a[Re],l.year),
// Default to current week.
r=Rn(t.w,l.week),null!=t.d?((
// weekday -- low day numbers are considered next week
i=t.d)<0||i>6)&&(c=!0):null!=t.e?(
// local weekday -- counting starts from beginning of week
i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):
// default to beginning of week
i=a),r<1||r>Ct(n,a,o)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(s=wt(n,r,i,a,o),e._a[Re]=s.year,e._dayOfYear=s.dayOfYear)}
// constant that refers to the ISO standard
// date from string and format string
function zn(e){
// TODO: Move this to another part of the creation flow to prevent circular deps
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;
// This array is used to make a Date, either with `new Date` or `Date.UTC`
var t,n,i,a,o,s,c,l=""+e._i,u=l.length,h=0;for(c=(i=G(e._f,e._locale).match(Q)||[]).length,t=0;t<c;t++)a=i[t],(n=(l.match(ke(a,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),h+=n.length),
// don't parse if it's not a known token
N[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),Le(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);
// add remaining unparsed input length to the string
m(e).charsLeftOver=u-h,l.length>0&&m(e).unusedInput.push(l),
// clear _12h flag if hour is <= 12
e._a[Fe]<=12&&!0===m(e).bigHour&&e._a[Fe]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,
// handle meridiem
e._a[Fe]=Hn(e._locale,e._a[Fe],e._meridiem),null!==(
// handle era
s=m(e).era)&&(e._a[Re]=e._locale.erasConvertYear(s,e._a[Re])),Nn(e),bn(e)}else Ln(e);else Bn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
// Fallback
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
// date from string and array of format strings
function Un(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(0===c)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<c;i++)a=0,o=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],zn(t),v(t)&&(o=!0),
// if there is any input that was not parsed add a penalty for that format
a+=m(t).charsLeftOver,
//or tokens
a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));d(e,n||t)}function Gn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Nn(e)}}function Vn(e){var t=new x(bn(Wn(e)));return t._nextDay&&(
// Adding is smart enough around DST
t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new x(bn(t)):(h(t)?e._d=t:a(n)?Un(e):n?zn(e):qn(e),v(e)||(e._d=null),e))}function qn(e){var t=e._i;l(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Qn(e):a(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Nn(e)):o(t)?Gn(e):u(t)?
// from milliseconds
e._d=new Date(t):r.createFromInputFallback(e)}function Yn(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),
// object construction must be done this way.
// https://github.com/moment/moment/issues/1423
s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,Vn(s)}function Kn(e,t,n,r){return Yn(e,t,n,r,!1)}r.createFromInputFallback=I("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},
// constant that refers to the RFC 2822 form
r.RFC_2822=function(){};var $n=I("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Jn=I("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));
// Pick a moment m from moments so that m[fn](other) is true for all
// other. This relies on the function fn to be transitive.

// moments should either be an array of moment objects or an array, whose
// first element is an array of moment objects.
function Xn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
// TODO: Use [].sort instead?
function Zn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;// only allow non-integers for smallest unit
parseFloat(e[nr[n]])!==Te(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function ar(){return Sr(NaN)}function or(e){var t=re(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=rr(t),
// representation for dateAddRemove
this._milliseconds=+u+1e3*l+// 1000
6e4*c+// 1000 * 60
1e3*s*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
// Because of dateAddRemove treats 24 hours as different from a
// day when working around DST, we need to store them separately
this._days=+o+7*a,
// It is impossible to translate months into days without knowing
// which months you are are talking about, so we have to store
// it separately.
this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function sr(e){return e instanceof or}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
// compare two arrays, return the number of differences
function lr(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&Te(e[r])!==Te(t[r]))&&o++;return o+a}
// FORMATTING
function ur(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),
// PARSING
Ee("Z",we),Ee("ZZ",we),De(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(we,e)}));
// HELPERS
// timezone chunker
// '+10:00' > ['10',  '00']
// '-1530'  > ['-15', '30']
var hr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(hr)||["-",0,0])[1]+Te(n[2]))?0:"+"===n[0]?r:-r}
// Return a moment from input, that is local/utc/zone equivalent to model.
function dr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(C(e)||h(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),
// Use low-level api, because this fn is low-level api.
n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Kn(e).local()}function pr(e){
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
// https://github.com/moment/moment/pull/1871
return-Math.round(e._d.getTimezoneOffset())}
// HOOKS
// This function will be called whenever a moment is mutated.
// It is intended to keep the offset in sync with the timezone.
// MOMENTS
// keepLocalTime = true means only change the timezone, without
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
// +0200, so we adjust the time as needed, to be valid.
// Keeping the time actually adds/subtracts (one hour)
// from the actual represented time. That is why we call updateOffset
// a second time. In case it wants us to change the offset again
// _changeInProgress == true case, then we have to adjust, because
// there is no such time in the given timezone.
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(we,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,Sr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pr(this)}function mr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function Ar(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function br(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Wn(t))._a?(e=t._isUTC?p(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Cr(){return!!this.isValid()&&!this._isUTC}function _r(){return!!this.isValid()&&this._isUTC}function Ir(){return!!this.isValid()&&this._isUTC&&0===this._offset}
// ASP.NET json date format regex
r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
// and further modified to allow for strings containing both week and day
kr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sr(e,t){var n,r,i,a=e,
// matching against regexp is expensive, do it on demand
o=null;return sr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Er.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:Te(o[Ne])*n,h:Te(o[Fe])*n,m:Te(o[ze])*n,s:Te(o[He])*n,ms:Te(cr(1e3*o[Ue]))*n}):(o=kr.exec(e))?(n="-"===o[1]?-1:1,a={y:Br(o[2],n),M:Br(o[3],n),w:Br(o[4],n),d:Br(o[5],n),h:Br(o[6],n),m:Br(o[7],n),s:Br(o[8],n)}):null==a?
// checks for null or undefined
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Tr(Kn(a.from),Kn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Br(e,t){
// We'd normally use ~~inp for this, but unfortunately it also
// converts floats to ints.
// inp may be undefined, so careful calling replace on it.
var n=e&&parseFloat(e.replace(",","."));
// apply sign while we're at it
return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Tr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
// TODO: remove 'name' arg after deprecation is removed
function Or(e,t){return function(n,r){var i;
//invert the arguments, but complain about it
return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Dr(this,Sr(n,r),e),this}}function Dr(e,t,n,i){var a=t._milliseconds,o=cr(t._days),s=cr(t._months);e.isValid()&&(i=null==i||i,s&&ft(e,Je(e,"Month")+s*n),o&&Xe(e,"Date",Je(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,o||s))}Sr.fn=or.prototype,Sr.invalid=ar;var Pr=Or(1,"add"),Lr=Or(-1,"subtract");function Qr(e){return"string"==typeof e||e instanceof String}
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
function Rr(e){return C(e)||h(e)||Qr(e)||u(e)||Nr(e)||jr(e)||null==e}function jr(e){var t,n,r=o(e)&&!c(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)n=a[t],i=i||s(e,n);return r&&i}function Nr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Qr(e)})).length),t&&n}function Fr(e){var t,n,r=o(e)&&!c(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||s(e,n);return r&&i}function zr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){
// Support for single parameter, formats only overload to the calendar function
1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):Fr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
// We want to compare the start of today, vs this.
// Getting start-of-today depends on whether we're local/utc/offset or not.
var n=e||Kn(),i=dr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(B(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Kn(n)))}function Ur(){return new x(this)}function Gr(e,t){var n=C(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=C(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wr(e,t,n,r){var i=C(e)?e:Kn(e),a=C(t)?t:Kn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function qr(e,t){var n,r=C(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Yr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=dr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(this,r)/3;break;case"second":a=(this-r)/1e3;break;// 1000
case"minute":a=(this-r)/6e4;break;// 1000 * 60
case"hour":a=(this-r)/36e5;break;// 1000 * 60 * 60
case"day":a=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
case"week":a=(this-r-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
default:a=this-r}return n?a:Me(a)}function Jr(e,t){if(e.date()<t.date())
// end-of-month calculations work correct when the start month has more
// days than the end month.
return-Jr(t,e);
// difference in months
var n=12*(t.year()-e.year())+(t.month()-e.month()),
// b is in (anchor - 1 month, anchor + 1 month)
r=e.clone().add(n,"months");
//check for negative zero, return zero if negative zero
return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):B(Date.prototype.toISOString)?
// native implementation is ~50x faster, use it when we can
t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
/**
     * Return a human readable representation of a moment that can
     * also be evaluated to get a new moment which is the same
     *
     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
     */function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(C(e)&&e.isValid()||Kn(e).isValid())?Sr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Kn(),e)}function ii(e,t){return this.isValid()&&(C(e)&&e.isValid()||Kn(e).isValid())?Sr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to(Kn(),e)}
// If passed a locale key, it will set the locale for this
// instance.  Otherwise, it will return the locale configuration
// variables for this instance.
function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ci(){return this._locale}var li=1e3,ui=60*li,hi=60*ui,fi=3506328*hi;
// actual modulo - handles negative numbers (for dates before 1970):
function di(e,t){return(e%t+t)%t}function pi(e,t,n){
// the date constructor remaps years 0-99 to 1900-1999
return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function gi(e,t,n){
// Date.UTC remaps years 0-99 to 1900-1999
return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function mi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=di(t+(this._isUTC?0:this.utcOffset()*ui),hi);break;case"minute":t=this._d.valueOf(),t-=di(t,ui);break;case"second":t=this._d.valueOf(),t-=di(t,li)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-di(t+(this._isUTC?0:this.utcOffset()*ui),hi)-1;break;case"minute":t=this._d.valueOf(),t+=ui-di(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=li-di(t,li)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function Ai(){return Math.floor(this.valueOf()/1e3)}function bi(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ci(){
// new Date(NaN).toJSON() === null
return this.isValid()?this.toISOString():null}function _i(){return v(this)}function Ii(){return d({},m(this))}function Ei(){return m(this).overflow}function ki(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Si(e,t){var n,i,a,o=this._eras||yn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(
// truncate time
a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":
// truncate time
a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Bi(e,t,n){var r,i,a,o,s,c=this.eras();for(e=e.toUpperCase(),r=0,i=c.length;r<i;++r)if(a=c[r].name.toUpperCase(),o=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return c[r];break;case"NNNN":if(a===e)return c[r];break;case"NNNNN":if(s===e)return c[r]}else if([a,o,s].indexOf(e)>=0)return c[r]}function Mi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ti(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
// truncate time
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Oi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
// truncate time
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Di(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
// truncate time
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Pi(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,
// truncate time
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Li(e){return s(this,"_erasNameRegex")||Hi.call(this),e?this._erasNameRegex:this._erasRegex}function Qi(e){return s(this,"_erasAbbrRegex")||Hi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return s(this,"_erasNarrowRegex")||Hi.call(this),e?this._erasNarrowRegex:this._erasRegex}function ji(e,t){return t.erasAbbrRegex(e)}function Ni(e,t){return t.erasNameRegex(e)}function Fi(e,t){return t.erasNarrowRegex(e)}function zi(e,t){return t._eraYearOrdinalRegex||ye}function Hi(){var e,t,n,r,i,a=[],o=[],s=[],c=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=Be(l[e].name),r=Be(l[e].abbr),i=Be(l[e].narrow),o.push(n),a.push(r),s.push(i),c.push(n),c.push(r),c.push(i);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}
// FORMATTING
function Ui(e,t){F(0,[e,e.length],0,t)}
// MOMENTS
function Gi(e){return $i.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return $i.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return Ct(this.year(),1,4)}function qi(){return Ct(this.isoWeekYear(),1,4)}function Yi(){var e=this.localeData()._week;return Ct(this.year(),e.dow,e.doy)}function Ki(){var e=this.localeData()._week;return Ct(this.weekYear(),e.dow,e.doy)}function $i(e,t,n,r,i){var a;return null==e?xt(this,r,i).year:(t>(a=Ct(e,r,i))&&(t=a),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var a=wt(e,t,n,r,i),o=At(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}
// FORMATTING
// MOMENTS
function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
// FORMATTING
F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Ee("N",ji),Ee("NN",ji),Ee("NNN",ji),Ee("NNNN",Ni),Ee("NNNNN",Fi),De(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),Ee("y",ye),Ee("yy",ye),Ee("yyy",ye),Ee("yyyy",ye),Ee("yo",zi),De(["y","yy","yyy","yyyy"],Re),De(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Re]=n._locale.eraYearOrdinalParse(e,i):t[Re]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),
// ALIASES
// PARSING
Ee("G",Ae),Ee("g",Ae),Ee("GG",fe,ce),Ee("gg",fe,ce),Ee("GGGG",me,ue),Ee("gggg",me,ue),Ee("GGGGG",ve,he),Ee("ggggg",ve,he),Pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Te(e)})),Pe(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),
// PARSING
Ee("Q",se),De("Q",(function(e,t){t[je]=3*(Te(e)-1)})),F("D",["DD",2],"Do","date"),
// PARSING
Ee("D",fe,_e),Ee("DD",fe,ce),Ee("Do",(function(e,t){
// TODO: Remove "ordinalParse" fallback in next major release.
return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),De(["D","DD"],Ne),De("Do",(function(e,t){t[Ne]=Te(e.match(fe)[0])}));
// MOMENTS
var Zi=$e("Date",!0);
// FORMATTING
// HELPERS
// MOMENTS
function ea(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}
// FORMATTING
F("DDD",["DDDD",3],"DDDo","dayOfYear"),
// PARSING
Ee("DDD",ge),Ee("DDDD",le),De(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Te(e)})),F("m",["mm",2],0,"minute"),
// PARSING
Ee("m",fe,Ie),Ee("mm",fe,ce),De(["m","mm"],ze);
// MOMENTS
var ta=$e("Minutes",!1);
// FORMATTING
F("s",["ss",2],0,"second"),
// PARSING
Ee("s",fe,Ie),Ee("ss",fe,ce),De(["s","ss"],He);
// MOMENTS
var na,ra,ia=$e("Seconds",!1);
// FORMATTING
for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),
// PARSING
Ee("S",ge,se),Ee("SS",ge,ce),Ee("SSS",ge,le),na="SSSS";na.length<=9;na+="S")Ee(na,ye);function aa(e,t){t[Ue]=Te(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")De(na,aa);
// MOMENTS
function oa(){return this._isUTC?"UTC":""}function sa(){return this._isUTC?"Coordinated Universal Time":""}ra=$e("Milliseconds",!1),
// FORMATTING
F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ca=x.prototype;function la(e){return Kn(1e3*e)}function ua(){return Kn.apply(null,arguments).parseZone()}function ha(e){return e}ca.add=Pr,ca.calendar=Hr,ca.clone=Ur,ca.diff=$r,ca.endOf=vi,ca.format=ti,ca.from=ni,ca.fromNow=ri,ca.to=ii,ca.toNow=ai,ca.get=Ze,ca.invalidAt=Ei,ca.isAfter=Gr,ca.isBefore=Vr,ca.isBetween=Wr,ca.isSame=qr,ca.isSameOrAfter=Yr,ca.isSameOrBefore=Kr,ca.isValid=_i,ca.lang=si,ca.locale=oi,ca.localeData=ci,ca.max=Jn,ca.min=$n,ca.parsingFlags=Ii,ca.set=et,ca.startOf=mi,ca.subtract=Lr,ca.toArray=wi,ca.toObject=xi,ca.toDate=bi,ca.toISOString=Zr,ca.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Ci,ca.toString=Xr,ca.unix=Ai,ca.valueOf=yi,ca.creationData=ki,ca.eraName=Ti,ca.eraNarrow=Oi,ca.eraAbbr=Di,ca.eraYear=Pi,ca.year=Ye,ca.isLeapYear=Ke,ca.weekYear=Gi,ca.isoWeekYear=Vi,ca.quarter=ca.quarters=Xi,ca.month=dt,ca.daysInMonth=pt,ca.week=ca.weeks=St,ca.isoWeek=ca.isoWeeks=Bt,ca.weeksInYear=Yi,ca.weeksInWeekYear=Ki,ca.isoWeeksInYear=Wi,ca.isoWeeksInISOWeekYear=qi,ca.date=Zi,ca.day=ca.days=Gt,ca.weekday=Vt,ca.isoWeekday=Wt,ca.dayOfYear=ea,ca.hour=ca.hours=rn,ca.minute=ca.minutes=ta,ca.second=ca.seconds=ia,ca.millisecond=ca.milliseconds=ra,ca.utcOffset=gr,ca.utc=vr,ca.local=yr,ca.parseZone=Ar,ca.hasAlignedHourOffset=br,ca.isDST=wr,ca.isLocal=Cr,ca.isUtcOffset=_r,ca.isUtc=Ir,ca.isUTC=Ir,ca.zoneAbbr=oa,ca.zoneName=sa,ca.dates=I("dates accessor is deprecated. Use date instead.",Zi),ca.months=I("months accessor is deprecated. Use month instead",dt),ca.years=I("years accessor is deprecated. Use year instead",Ye),ca.zone=I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),ca.isDSTShifted=I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var fa=O.prototype;function da(e,t,n,r){var i=yn(),a=p().set(r,t);return i[n](a,e)}function pa(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return da(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=da(e,r,n,"month");return i}
// ()
// (5)
// (fmt, 5)
// (fmt)
// (true)
// (true, 5)
// (true, fmt, 5)
// (true, fmt)
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=yn(),o=e?a._week.dow:0,s=[];if(null!=n)return da(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=da(t,(i+o)%7,r,"day");return s}function ma(e,t){return pa(e,t,"months")}function va(e,t){return pa(e,t,"monthsShort")}function ya(e,t,n){return ga(e,t,n,"weekdays")}function Aa(e,t,n){return ga(e,t,n,"weekdaysShort")}function ba(e,t,n){return ga(e,t,n,"weekdaysMin")}fa.calendar=P,fa.longDateFormat=W,fa.invalidDate=Y,fa.ordinal=J,fa.preparse=ha,fa.postformat=ha,fa.relativeTime=Z,fa.pastFuture=ee,fa.set=M,fa.eras=Si,fa.erasParse=Bi,fa.erasConvertYear=Mi,fa.erasAbbrRegex=Qi,fa.erasNameRegex=Li,fa.erasNarrowRegex=Ri,fa.months=ct,fa.monthsShort=lt,fa.monthsParse=ht,fa.monthsRegex=mt,fa.monthsShortRegex=gt,fa.week=_t,fa.firstDayOfYear=kt,fa.firstDayOfWeek=Et,fa.weekdays=Nt,fa.weekdaysMin=zt,fa.weekdaysShort=Ft,fa.weekdaysParse=Ut,fa.weekdaysRegex=qt,fa.weekdaysShortRegex=Yt,fa.weekdaysMinRegex=Kt,fa.isPM=tn,fa.meridiem=an,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Te(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
// Side effect imports
r.lang=I("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=I("moment.langData is deprecated. Use moment.localeData instead.",yn);var wa=Math.abs;function xa(){var e=this._data;return this._milliseconds=wa(this._milliseconds),this._days=wa(this._days),this._months=wa(this._months),e.milliseconds=wa(e.milliseconds),e.seconds=wa(e.seconds),e.minutes=wa(e.minutes),e.hours=wa(e.hours),e.months=wa(e.months),e.years=wa(e.years),this}function Ca(e,t,n,r){var i=Sr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
// supports only 2.0-style add(1, 's') or add(duration)
function _a(e,t){return Ca(this,e,t,1)}
// supports only 2.0-style subtract(1, 's') or subtract(duration)
function Ia(e,t){return Ca(this,e,t,-1)}function Ea(e){return e<0?Math.floor(e):Math.ceil(e)}function ka(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,c=this._data;
// if we have a mix of positive and negative values, bubble down first
// check: https://github.com/moment/moment/issues/2166
return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ea(Ba(s)+o),o=0,s=0),
// The following code bubbles up values, see the tests for
// examples of what that means.
c.milliseconds=a%1e3,e=Me(a/1e3),c.seconds=e%60,t=Me(e/60),c.minutes=t%60,n=Me(t/60),c.hours=n%24,o+=Me(n/24),s+=
// convert days to months
i=Me(Sa(o)),o-=Ea(Ba(i)),
// 12 months -> 1 year
r=Me(s/12),s%=12,c.days=o,c.months=s,c.years=r,this}function Sa(e){
// 400 years have 146097 days (taking into account leap year rules)
// 400 years have 12 months === 4800
return 4800*e/146097}function Ba(e){
// the reverse of daysToMonths
return 146097*e/4800}function Ma(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(
// handle milliseconds separately because of floating point math errors (issue #1867)
t=this._days+Math.round(Ba(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;
// Math.floor prevents floating point math errors here
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ta(e){return function(){return this.as(e)}}var Oa=Ta("ms"),Da=Ta("s"),Pa=Ta("m"),La=Ta("h"),Qa=Ta("d"),Ra=Ta("w"),ja=Ta("M"),Na=Ta("Q"),Fa=Ta("y"),za=Oa;function Ha(){return Sr(this)}function Ua(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Ga(e){return function(){return this.isValid()?this._data[e]:NaN}}var Va=Ga("milliseconds"),Wa=Ga("seconds"),qa=Ga("minutes"),Ya=Ga("hours"),Ka=Ga("days"),$a=Ga("months"),Ja=Ga("years");function Xa(){return Me(this.days()/7)}var Za=Math.round,eo={ss:44,// a few seconds to seconds
s:45,// seconds to minute
m:45,// minutes to hour
h:22,// hours to day
d:26,// days to month/week
w:null,// weeks to month
M:11};
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
function to(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function no(e,t,n,r){var i=Sr(e).abs(),a=Za(i.as("s")),o=Za(i.as("m")),s=Za(i.as("h")),c=Za(i.as("d")),l=Za(i.as("M")),u=Za(i.as("w")),h=Za(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=t,f[3]=+e>0,f[4]=r,to.apply(null,f)}
// This function allows you to set the rounding function for relative time strings
function ro(e){return void 0===e?Za:"function"==typeof e&&(Za=e,!0)}
// This function allows you to set a threshold for relative time strings
function io(e,t){return void 0!==eo[e]&&(void 0===t?eo[e]:(eo[e]=t,"s"===e&&(eo.ss=t-1),!0))}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=no(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var oo=Math.abs;function so(e){return(e>0)-(e<0)||+e}function co(){
// for ISO strings we do not use the normal bubbling rules:
//  * milliseconds bubble up until they become hours
//  * days do not bubble at all
//  * months bubble up until they become years
// This is because there is no context-free conversion between hours and days
// (think of clock changes)
// and also not between days and months (28-31 days per month)
if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,c=oo(this._milliseconds)/1e3,l=oo(this._days),u=oo(this._months),h=this.asSeconds();return h?(
// 3600 seconds -> 60 minutes -> 1 hour
e=Me(c/60),t=Me(e/60),c%=60,e%=60,
// 12 months -> 1 year
n=Me(u/12),u%=12,
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
r=c?c.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=so(this._months)!==so(h)?"-":"",o=so(this._days)!==so(h)?"-":"",s=so(this._milliseconds)!==so(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(l?o+l+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var lo=or.prototype;return lo.isValid=ir,lo.abs=xa,lo.add=_a,lo.subtract=Ia,lo.as=Ma,lo.asMilliseconds=Oa,lo.asSeconds=Da,lo.asMinutes=Pa,lo.asHours=La,lo.asDays=Qa,lo.asWeeks=Ra,lo.asMonths=ja,lo.asQuarters=Na,lo.asYears=Fa,lo.valueOf=za,lo._bubble=ka,lo.clone=Ha,lo.get=Ua,lo.milliseconds=Va,lo.seconds=Wa,lo.minutes=qa,lo.hours=Ya,lo.days=Ka,lo.weeks=Xa,lo.months=$a,lo.years=Ja,lo.humanize=ao,lo.toISOString=co,lo.toString=co,lo.toJSON=co,lo.locale=oi,lo.localeData=ci,lo.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),lo.lang=si,
// FORMATTING
F("X",0,0,"unix"),F("x",0,0,"valueOf"),
// PARSING
Ee("x",Ae),Ee("X",xe),De("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),De("x",(function(e,t,n){n._d=new Date(Te(e))})),
//! moment.js
r.version="2.30.1",i(Kn),r.fn=ca,r.min=Zn,r.max=er,r.now=tr,r.utc=p,r.unix=la,r.months=ma,r.isDate=h,r.locale=gn,r.invalid=y,r.duration=Sr,r.isMoment=C,r.weekdays=ya,r.parseZone=ua,r.localeData=yn,r.isDuration=sr,r.monthsShort=va,r.weekdaysMin=ba,r.defineLocale=mn,r.updateLocale=vn,r.locales=An,r.weekdaysShort=Aa,r.normalizeUnits=ne,r.relativeTimeRounding=ro,r.relativeTimeThreshold=io,r.calendarFormat=zr,r.prototype=ca,
// currently HTML5 input type only supports 24-hour formats
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",// <input type="datetime-local" step="0.001" />
DATE:"YYYY-MM-DD",// <input type="date" />
TIME:"HH:mm",// <input type="time" />
TIME_SECONDS:"HH:mm:ss",// <input type="time" step="1" />
TIME_MS:"HH:mm:ss.SSS",// <input type="time" step="0.001" />
WEEK:"GGGG-[W]WW",// <input type="week" />
MONTH:"YYYY-MM"},r}()}).call(this,n("62e4")(e))
/***/},
/***/c240:
/***/function(e,t,n){n("d9e2"),e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/c280:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/c293:
/***/function(e,t,n){
// 20.1.2.6 Number.MAX_SAFE_INTEGER
var r=n("f083");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},
/***/c2b3:
/***/function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},
/***/c2b6:
/***/function(e,t,n){var r=n("f8af"),i=n("5d89"),a=n("6f6c"),o=n("a2db"),s=n("c8fe");
/** `Object#toString` result references. */e.exports=
/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return a(e);case"[object Symbol]":return o(e)}}},
/***/c2ca:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/c32f:
/***/function(e,t,n){var r=n("2b10");
/**
 * Casts `array` to a slice if it's needed.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {number} start The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the cast slice.
 */e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},
/***/c345:
/***/function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];
// Headers whose duplicates are ignored by node
// c.f. https://nodejs.org/api/http.html#http_message_headers
/**
 * Parse headers into an object
 *
 * ```
 * Date: Wed, 27 Aug 2014 08:58:49 GMT
 * Content-Type: application/json
 * Connection: keep-alive
 * Transfer-Encoding: chunked
 * ```
 *
 * @param {String} headers Headers needing to be parsed
 * @returns {Object} Headers parsed into an object
 */
e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},
/***/c3b9:
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t);
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
var r=n("41b2"),i=n.n(r),a=n("a48b"),o=n.n(a),s=n("a026"),c=n("46cf"),l=n.n(c),u=n("b488"),h=n("7b05"),f=n("daa3"),d=n("1098"),p=n.n(d),g=n("8e8e"),m=n.n(g),v=n("b047"),y=n.n(v),A=n("4d26"),b=n.n(A),w=n("4d91"),x={accessibility:w.a.bool.def(!0),
// 自定义高度
adaptiveHeight:w.a.bool.def(!1),afterChange:w.a.any.def(null),arrows:w.a.bool.def(!0),autoplay:w.a.bool.def(!1),autoplaySpeed:w.a.number.def(3e3),beforeChange:w.a.any.def(null),centerMode:w.a.bool.def(!1),centerPadding:w.a.string.def("50px"),cssEase:w.a.string.def("ease"),dots:w.a.bool.def(!1),dotsClass:w.a.string.def("slick-dots"),draggable:w.a.bool.def(!0),unslick:w.a.bool.def(!1),easing:w.a.string.def("linear"),edgeFriction:w.a.number.def(.35),fade:w.a.bool.def(!1),focusOnSelect:w.a.bool.def(!1),infinite:w.a.bool.def(!0),initialSlide:w.a.number.def(0),lazyLoad:w.a.any.def(null),verticalSwiping:w.a.bool.def(!1),asNavFor:w.a.any.def(null),
// 圆点hover是否暂停
pauseOnDotsHover:w.a.bool.def(!1),
// focus是否暂停
pauseOnFocus:w.a.bool.def(!1),
// hover是否暂停
pauseOnHover:w.a.bool.def(!0),responsive:w.a.array,rows:w.a.number.def(1),rtl:w.a.bool.def(!1),slide:w.a.string.def("div"),slidesPerRow:w.a.number.def(1),slidesToScroll:w.a.number.def(1),slidesToShow:w.a.number.def(1),speed:w.a.number.def(500),swipe:w.a.bool.def(!0),swipeEvent:w.a.any.def(null),swipeToSlide:w.a.bool.def(!1),touchMove:w.a.bool.def(!0),touchThreshold:w.a.number.def(5),useCSS:w.a.bool.def(!0),useTransform:w.a.bool.def(!0),variableWidth:w.a.bool.def(!1),vertical:w.a.bool.def(!1),waitForAnimate:w.a.bool.def(!0),children:w.a.array,__propsSymbol__:w.a.any},C={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,// used by swipeEvent. differentites between touch and swipe.
swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0},_=function(e){for(var t=[],n=I(e),r=E(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},I=function(e){return e.currentSlide-k(e)},E=function(e){return e.currentSlide+S(e)},k=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},S=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},B=function(e){return e&&e.offsetWidth||0},M=function(e){return e&&e.offsetHeight||0},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0,r=e.startX-e.curX,i=e.startY-e.curY,a=Math.atan2(i,r);return(n=Math.round(180*a/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":!0===t?n>=35&&n<=135?"up":"down":"vertical"},O=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},D=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},P=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},L=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n=void 0,r=e.listRef.querySelectorAll(".slick-slide");if(Array.from(r).every((function(r){if(e.vertical){if(r.offsetTop+M(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+B(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},Q=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:void 0},R=function(e){Q(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t=void 0,n=void 0,r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=H(e)*e.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",c=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";a=i()({},a,{WebkitTransform:o,transform:s,msTransform:c})}else e.vertical?a.top=e.left:a.left=e.left;return e.fade&&(a={opacity:1}),t&&(a.width=t+"px"),n&&(a.height=n+"px"),
// Fallback for IE8
window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a},j=function(e){Q(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=R(e);
// useCSS is true by default so it can be undefined
return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},N=function(e){if(e.unslick)return 0;Q(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,i=e.centerMode,a=e.slideCount,o=e.slidesToShow,s=e.slidesToScroll,c=e.slideWidth,l=e.listWidth,u=e.variableWidth,h=e.slideHeight,f=e.fade,d=e.vertical,p=void 0,g=void 0;if(f||1===e.slideCount)return 0;var m=0;if(r?(m=-F(e),// bring active slide to the beginning of visual area
// if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
a%s!=0&&t+s>a&&(m=-(t>a?o-(t-a):a%s)),
// shift current slide to center of the frame
i&&(m+=parseInt(o/2))):(a%s!=0&&t+s>a&&(m=o-a%s),i&&(m=parseInt(o/2))),p=d?t*h*-1+m*h:t*c*-1+m*c,!0===u){var v=void 0,y=n;if(v=t+F(e),p=(g=y&&y.childNodes[v])?-1*g.offsetLeft:0,!0===i){v=r?t+F(e):t,g=y&&y.children[v],p=0;for(var A=0;A<v;A++)p-=y&&y.children[A]&&y.children[A].offsetWidth;p-=parseInt(e.centerPadding),p+=g&&(l-g.offsetWidth)/2}}return p},F=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},z=function(e){return e.unslick||!e.infinite?0:e.slideCount},H=function(e){return 1===e.slideCount?1:F(e)+e.slideCount+z(e)},U=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+G(e)?"left":"right":e.targetSlide<e.currentSlide-V(e)?"right":"left"},G=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;
// returns no of slides on the right of active slide
if(n){var a=(t-1)/2+1;return parseInt(i)>0&&(a+=1),r&&t%2==0&&(a+=1),a}return r?0:t-1},V=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;
// returns no of slides on the left of active slide
if(n){var a=(t-1)/2+1;return parseInt(i)>0&&(a+=1),r||t%2!=0||(a+=1),a}return r?t-1:0},W=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},q=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,a=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount;return e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":i===e.currentSlide}},Y=function(e,t){return e.key||0===e.key&&"0"||t},K=function(e,t,n){var r=void 0,a=[],o=[],s=[],c=t.length,l=I(e),u=E(e);return t.forEach((function(t,d){var p=void 0,g={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};
// in case of lazyLoad, whether or not we want to fetch the slide
p=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?t:n("div");var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth+("number"==typeof e.slideWidth?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t}(i()({},e,{index:d})),v=Object(f.f)(p.context)||"",y=q(i()({},e,{index:d}));
// if slide needs to be precloned or postcloned
if(
// push a cloned element of the desired slide
a.push(Object(h.a)(p,{key:"original"+Y(p,d),attrs:{tabIndex:"-1","data-index":d,"aria-hidden":!y["slick-active"]},class:b()(y,v),style:i()({outline:"none"},Object(f.q)(p.context)||{},m),on:{click:function(){
// child.props && child.props.onClick && child.props.onClick(e)
e.focusOnSelect&&e.focusOnSelect(g)}}},!0)),e.infinite&&!1===e.fade){var A=c-d;A<=F(e)&&c!==e.slidesToShow&&((r=-A)>=l&&(p=t),y=q(i()({},e,{index:r})),o.push(Object(h.a)(p,{key:"precloned"+Y(p,r),class:b()(y,v),attrs:{tabIndex:"-1","data-index":r,"aria-hidden":!y["slick-active"]},style:i()({},Object(f.q)(p.context)||{},m),on:{click:function(){
// child.props && child.props.onClick && child.props.onClick(e)
e.focusOnSelect&&e.focusOnSelect(g)}}}))),c!==e.slidesToShow&&((r=c+d)<u&&(p=t),y=q(i()({},e,{index:r})),s.push(Object(h.a)(p,{key:"postcloned"+Y(p,r),attrs:{tabIndex:"-1","data-index":r,"aria-hidden":!y["slick-active"]},class:b()(y,v),style:i()({},Object(f.q)(p.context)||{},m),on:{click:function(){
// child.props && child.props.onClick && child.props.onClick(e)
e.focusOnSelect&&e.focusOnSelect(g)}}})))}})),e.rtl?o.concat(a,s).reverse():o.concat(a,s)},$={functional:!0,render:function(e,t){var n=arguments[0],r=t.props,a=t.listeners,o=t.children,s=t.data,c=K(r,o,e),l={mouseenter:a.mouseenter,mouseover:a.mouseover,mouseleave:a.mouseleave};return n("div",{class:"slick-track",style:r.trackStyle,on:i()({},l),directives:s.directives},[c])}},J={functional:!0,render:function(e,t){var n,r=arguments[0],a=t.props,o=t.listeners,s=a.slideCount,c=a.slidesToScroll,l=a.slidesToShow,u=a.infinite,f=a.currentSlide,d=a.appendDots,p=a.customPaging,g=a.clickHandler,m=a.dotsClass,v=(n={slideCount:s,slidesToScroll:c,slidesToShow:l,infinite:u}).infinite?Math.ceil(n.slideCount/n.slidesToScroll):Math.ceil((n.slideCount-n.slidesToShow)/n.slidesToScroll)+1,y={mouseenter:o.mouseenter,mouseover:o.mouseover,mouseleave:o.mouseleave},A=Array.apply(null,Array(v+1).join("0").split("")).map((function(e,t){var n=t*c,i=t*c+(c-1),a=b()({"slick-active":f>=n&&f<=i}),o={message:"dots",index:t,slidesToScroll:c,currentSlide:f};return r("li",{key:t,class:a},[Object(h.a)(p({i:t}),{on:{click:function(e){
// In Autoplay the focus stays on clicked button even after transition
// to next slide. That only goes away by click somewhere outside
e&&e.preventDefault(),g(o)}}})])}));return Object(h.a)(d({dots:A}),{class:m,on:i()({},y)})}},X=n("92fa"),Z=n.n(X);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slick/src/arrows.js
function ee(){}var te={functional:!0,clickHandler:function(e,t,n){n&&n.preventDefault(),t(e,n)},render:function(e,t){var n=arguments[0],r=t.props,a=r.clickHandler,o=r.infinite,s=r.currentSlide,c=r.slideCount,l=r.slidesToShow,u={"slick-arrow":!0,"slick-prev":!0},f=function(e){e&&e.preventDefault(),a({message:"previous"})};!o&&(0===s||c<=l)&&(u["slick-disabled"]=!0,f=ee);var d={key:"0",domProps:{"data-role":"none"},class:u,style:{display:"block"},on:{click:f}},p={currentSlide:s,slideCount:c};return r.prevArrow?Object(h.a)(r.prevArrow(i()({},d,{props:p})),{key:"0",class:u,style:{display:"block"},on:{click:f}}):n("button",Z()([{key:"0",attrs:{type:"button"}},d]),[" ","Previous"])}},ne={functional:!0,clickHandler:function(e,t,n){n&&n.preventDefault(),t(e,n)},render:function(e,t){var n=arguments[0],r=t.props,a=r.clickHandler,o=r.currentSlide,s=r.slideCount,c={"slick-arrow":!0,"slick-next":!0},l=function(e){e&&e.preventDefault(),a({message:"next"})};O(r)||(c["slick-disabled"]=!0,l=ee);var u={key:"1",domProps:{"data-role":"none"},class:c,style:{display:"block"},on:{click:l}},f={currentSlide:o,slideCount:s};return r.nextArrow?Object(h.a)(r.nextArrow(i()({},u,{props:f})),{key:"1",class:c,style:{display:"block"},on:{click:l}}):n("button",Z()([{key:"1",attrs:{type:"button"}},u]),[" ","Next"])}},re=n("6dd8");function ie(){}
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slick/src/inner-slider.js
s.default.use(l.a,{name:"ant-ref"});var ae={props:i()({},x),mixins:[u.a],data:function(){return this.preProps=i()({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null,i()({},C,{currentSlide:this.initialSlide,slideCount:this.children.length})},methods:{listRefHandler:function(e){this.list=e},trackRefHandler:function(e){this.track=e},adaptHeight:function(){if(this.adaptiveHeight&&this.list){var e=this.list.querySelector('[data-index="'+this.currentSlide+'"]');this.list.style.height=M(e)+"px"}},onWindowResized:function(e){var t=this;this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=y()((function(){return t.resizeWindow(e)}),50),this.debouncedResize()},resizeWindow:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.track){var n=i()({listRef:this.list,trackRef:this.track,children:this.children},this.$props,this.$data);this.updateState(n,t,(function(){e.autoplay?e.handleAutoPlay("update"):e.pause("paused")})),
// animating state should be cleared while resizing, otherwise autoplay stops working
this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback}},updateState:function(e,t,n){var r=function(e){
// spec also contains listRef, trackRef
var t=e.children.length,n=Math.ceil(B(e.listRef)),r=Math.ceil(B(e.trackRef)),i=void 0;if(e.vertical)i=n;else{var a=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(a*=n/100),i=Math.ceil((n-a)/e.slidesToShow)}var o=e.listRef&&M(e.listRef.querySelector('[data-index="0"]')),s=o*e.slidesToShow,c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=t-1-e.initialSlide);var l=e.lazyLoadedList||[],u=_({currentSlide:c,lazyLoadedList:l});l.concat(u);var h={slideCount:t,slideWidth:i,listWidth:n,trackWidth:r,currentSlide:c,slideHeight:o,listHeight:s,lazyLoadedList:l};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h}(e);e=i()({},e,r,{slideIndex:r.currentSlide});var a=N(e);e=i()({},e,{left:a});var o=R(e);(t||this.children.length!==e.children.length)&&(r.trackStyle=o),this.setState(r,n)},ssrInit:function(){var e=this.children;if(this.variableWidth){var t=0,n=0,r=[],a=F(i()({},this.$props,this.$data,{slideCount:e.length})),o=z(i()({},this.$props,this.$data,{slideCount:e.length}));e.forEach((function(e){var n=Object(f.q)(e).width.split("px")[0];r.push(n),t+=n}));for(var s=0;s<a;s++)n+=r[r.length-1-s],t+=r[r.length-1-s];for(var c=0;c<o;c++)t+=r[c];for(var l=0;l<this.currentSlide;l++)n+=r[l];var u={width:t+"px",left:-n+"px"};if(this.centerMode){var h=r[this.currentSlide]+"px";u.left="calc("+u.left+" + (100% - "+h+") / 2 ) "}this.setState({trackStyle:u})}else{var d=e.length,p=i()({},this.$props,this.$data,{slideCount:d}),g=F(p)+z(p)+d,m=100/this.slidesToShow*g,v=100/g,y=-v*(F(p)+this.currentSlide)*m/100;this.centerMode&&(y+=(100-v*m/100)/2);var A={width:m+"%",left:y+"%"};this.setState({slideWidth:v+"%",trackStyle:A})}},checkImagesLoad:function(){var e=this,t=document.querySelectorAll(".slick-slide img"),n=t.length,r=0;Array.prototype.forEach.call(t,(function(t){var i=function(){return++r&&r>=n&&e.onWindowResized()};if(t.onclick){var a=t.onclick;t.onclick=function(){a(),t.parentNode.focus()}}else t.onclick=function(){return t.parentNode.focus()};t.onload||(e.$props.lazyLoad?t.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.speed))}:(t.onload=i,t.onerror=function(){i(),e.$emit("lazyLoadError")}))}))},progressiveLazyLoad:function(){for(var e=[],t=i()({},this.$props,this.$data),n=this.currentSlide;n<this.slideCount+z(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=this.currentSlide-1;r>=-F(t);r--)if(this.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(this.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),this.$emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.$props,a=r.asNavFor,o=r.currentSlide,s=r.beforeChange,c=r.speed,l=r.afterChange,u=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,a=e.infinite,o=e.index,s=e.slideCount,c=e.lazyLoadedList,l=e.lazyLoad,u=e.currentSlide,h=e.centerMode,f=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS;if(t&&n)return{};var g=o,m=void 0,v=void 0,y=void 0,A={},b={};if(r){if(!a&&(o<0||o>=s))return{};o<0?g=o+s:o>=s&&(g=o-s),l&&c.indexOf(g)<0&&c.push(g),A={animating:!0,currentSlide:g,lazyLoadedList:c},b={animating:!1}}else m=g,g<0?(m=g+s,a?s%f!=0&&(m=s-s%f):m=0):!O(e)&&g>u?g=m=u:h&&g>=s?(g=a?s:s-1,m=a?0:s-1):g>=s&&(m=g-s,a?s%f!=0&&(m=0):m=s-d),v=N(i()({},e,{slideIndex:g})),y=N(i()({},e,{slideIndex:m})),a||(v===y&&(g=m),v=y),l&&c.concat(_(i()({},e,{currentSlide:g}))),p?(A={animating:!0,currentSlide:m,trackStyle:j(i()({},e,{left:v})),lazyLoadedList:c},b={animating:!1,currentSlide:m,trackStyle:R(i()({},e,{left:y})),swipeLeft:null}):A={currentSlide:m,trackStyle:R(i()({},e,{left:y})),lazyLoadedList:c};return{state:A,nextState:b}}(i()({index:e},this.$props,this.$data,{trackRef:this.track,useCSS:this.useCSS&&!n})),h=u.state,d=u.nextState;if(h){s&&s(o,h.currentSlide);var p=h.lazyLoadedList.filter((function(e){return t.lazyLoadedList.indexOf(e)<0}));Object(f.k)(this).lazyLoad&&p.length>0&&this.$emit("lazyLoad",p),this.setState(h,(function(){a&&a.innerSlider.currentSlide!==o&&a.innerSlider.slideHandler(e),d&&(t.animationEndCallback=setTimeout((function(){var e=d.animating,n=m()(d,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),l&&l(h.currentSlide),delete t.animationEndCallback}))}),c))}))}},changeSlide:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e,t){var n=void 0,r=void 0,a=void 0,o=e.slidesToScroll,s=e.slidesToShow,c=e.slideCount,l=e.currentSlide,u=e.lazyLoad,h=e.infinite,f=c%o!=0?0:(c-l)%o;if("previous"===t.message)a=l-(r=0===f?o:s-f),u&&!h&&(a=-1==(n=l-r)?c-1:n);else if("next"===t.message)a=l+(r=0===f?o:f),u&&!h&&(a=(l+o)%c+f);else if("dots"===t.message){if((
// Click on dots
a=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((
// Click on the slides
a=t.index)===t.currentSlide)return null;if(h){var d=U(i()({},e,{targetSlide:a}));a>t.currentSlide&&"left"===d?a-=c:a<t.currentSlide&&"right"===d&&(a+=c)}}else if("index"===t.message&&(a=Number(t.index))===t.currentSlide)return null;return a}(i()({},this.$props,this.$data),e);(0===n||n)&&(!0===t?this.slideHandler(n,t):this.slideHandler(n))},clickHandler:function(e){!1===this.clickable&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler:function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},selectHandler:function(e){this.changeSlide(e)},disableBodyScroll:function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},enableBodyScroll:function(){window.ontouchmove=null},swipeStart:function(e){this.verticalSwiping&&this.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,this.swipe,this.draggable);""!==t&&this.setState(t)},swipeMove:function(e){var t=function(e,t){
// spec also contains, trackRef and slideIndex
var n=t.scrolling,r=t.animating,a=t.vertical,o=t.swipeToSlide,s=t.verticalSwiping,c=t.rtl,l=t.currentSlide,u=t.edgeFriction,h=t.edgeDragged,f=t.onEdge,d=t.swiped,p=t.swiping,g=t.slideCount,m=t.slidesToScroll,v=t.infinite,y=t.touchObject,A=t.swipeEvent,b=t.listHeight,w=t.listWidth;if(!n){if(r)return e.preventDefault();a&&o&&s&&e.preventDefault();var x=void 0,C={},_=N(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var I=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!s&&!p&&I>10)return{scrolling:!0};s&&(y.swipeLength=I);var E=(c?-1:1)*(y.curX>y.startX?1:-1);s&&(E=y.curY>y.startY?1:-1);var k=Math.ceil(g/m),S=T(t.touchObject,s),B=y.swipeLength;return v||(0===l&&"right"===S||l+1>=k&&"left"===S||!O(t)&&"left"===S)&&(B=y.swipeLength*u,!1===h&&f&&(f(S),C.edgeDragged=!0)),!d&&A&&(A(S),C.swiped=!0),x=a?_+B*(b/w)*E:c?_-B*E:_+B*E,s&&(x=_+B*E),C=i()({},C,{touchObject:y,swipeLeft:x,trackStyle:R(i()({},t,{left:x}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)||y.swipeLength>10&&(C.swiping=!0,e.preventDefault()),C}}(e,i()({},this.$props,this.$data,{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd:function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,a=t.touchObject,o=t.listWidth,s=t.touchThreshold,c=t.verticalSwiping,l=t.listHeight,u=t.currentSlide,h=t.swipeToSlide,f=t.scrolling,d=t.onSwipe;if(!n)return r&&e.preventDefault(),{};var p=c?l/s:o/s,g=T(a,c),m={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return m;if(!a.swipeLength)return m;if(a.swipeLength>p){e.preventDefault(),d&&d(g);var v=void 0,y=void 0;switch(g){case"left":case"up":y=u+L(t),v=h?P(t,y):y,m.currentDirection=0;break;case"right":case"down":y=u-L(t),v=h?P(t,y):y,m.currentDirection=1;break;default:v=u}m.triggerSlideHandler=v}else{
// Adjust the track back to it's original position.
var A=N(t);m.trackStyle=j(i()({},t,{left:A}))}return m}(e,i()({},this.$props,this.$data,{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),void 0!==n&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())}},slickPrev:function(){var e=this;
// this and fellow methods are wrapped in setTimeout
// to make sure initialize setState has happened before
// any of such methods are called
this.callbackTimers.push(setTimeout((function(){return e.changeSlide({message:"previous"})}),0))},slickNext:function(){var e=this;this.callbackTimers.push(setTimeout((function(){return e.changeSlide({message:"next"})}),0))},slickGoTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.currentSlide},n)}),0))},play:function(){var e=void 0;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!O(i()({},this.$props,this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},handleAutoPlay:function(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);var t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause:function(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);var t=this.autoplaying;"paused"===e?this.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||this.setState({autoplaying:"focused"}):
// pauseType  is 'hovered'
"playing"===t&&this.setState({autoplaying:"hovered"})},onDotsOver:function(){this.autoplay&&this.pause("hovered")},onDotsLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onTrackOver:function(){this.autoplay&&this.pause("hovered")},onTrackLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onSlideFocus:function(){this.autoplay&&this.pause("focused")},onSlideBlur:function(){this.autoplay&&"focused"===this.autoplaying&&this.handleAutoPlay("blur")},customPaging:function(e){var t=e.i;return(0,this.$createElement)("button",[t+1])},appendDots:function(e){var t=e.dots;return(0,this.$createElement)("ul",{style:{display:"block"}},[t])}},beforeMount:function(){if(this.ssrInit(),this.$emit("init"),this.lazyLoad){var e=_(i()({},this.$props,this.$data));e.length>0&&(this.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),this.$emit("lazyLoad",e))}},mounted:function(){var e=this;this.$nextTick((function(){var t=i()({listRef:e.list,trackRef:e.track,children:e.children},e.$props);e.updateState(t,!0,(function(){e.adaptHeight(),e.autoplay&&e.handleAutoPlay("update")})),"progressive"===e.lazyLoad&&(e.lazyLoadTimer=setInterval(e.progressiveLazyLoad,1e3)),e.ro=new re.a((function(){e.animating?(e.onWindowResized(!1),// don't set trackStyle hence don't break animation
e.callbackTimers.push(setTimeout((function(){return e.onWindowResized()}),e.speed))):e.onWindowResized()})),e.ro.observe(e.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(t){t.onfocus=e.$props.pauseOnFocus?e.onSlideFocus:null,t.onblur=e.$props.pauseOnFocus?e.onSlideBlur:null})),
// To support server-side rendering
window&&(window.addEventListener?window.addEventListener("resize",e.onWindowResized):window.attachEvent("onresize",e.onWindowResized))}))},beforeDestroy:function(){this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach((function(e){return clearTimeout(e)})),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer)},updated:function(){if(this.checkImagesLoad(),this.$emit("reInit"),this.lazyLoad){var e=_(i()({},this.$props,this.$data));e.length>0&&(this.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),this.$emit("lazyLoad"))}
// if (this.props.onLazyLoad) {
//   this.props.onLazyLoad([leftMostSlide])
// }
this.adaptHeight()},watch:{__propsSymbol__:function(){var e=this,t=this.$props,n=i()({listRef:this.list,trackRef:this.track},t,this.$data),r=!1,a=!0,o=!1,s=void 0;try{for(var c,l=Object.keys(this.preProps)[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var u=c.value;if(!t.hasOwnProperty(u)){r=!0;break}if("object"!==p()(t[u])&&"function"!=typeof t[u]&&"symbol"!==p()(t[u])&&t[u]!==this.preProps[u]){r=!0;break}}}catch(e){o=!0,s=e}finally{try{!a&&l.return&&l.return()}finally{if(o)throw s}}this.updateState(n,r,(function(){e.currentSlide>=t.children.length&&e.changeSlide({message:"index",index:t.children.length-t.slidesToShow,currentSlide:e.currentSlide}),t.autoplay?e.handleAutoPlay("update"):e.pause("paused")})),this.preProps=i()({},t)}},render:function(){var e=arguments[0],t=b()("slick-slider",{"slick-vertical":this.vertical,"slick-initialized":!0}),n=i()({},this.$props,this.$data),r=D(n,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]),a=this.$props.pauseOnHover;r={props:i()({},r,{focusOnSelect:this.focusOnSelect?this.selectHandler:null}),directives:[{name:"ant-ref",value:this.trackRefHandler}],on:{mouseenter:a?this.onTrackOver:ie,mouseleave:a?this.onTrackLeave:ie,mouseover:a?this.onTrackOver:ie}};var o=void 0;if(!0===this.dots&&this.slideCount>=this.slidesToShow){var s=D(n,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);s.customPaging=this.customPaging,s.appendDots=this.appendDots;var c=this.$scopedSlots,l=c.customPaging,u=c.appendDots;l&&(s.customPaging=l),u&&(s.appendDots=u);var h=this.$props.pauseOnDotsHover;s={props:i()({},s,{clickHandler:this.changeSlide}),on:{mouseenter:h?this.onDotsLeave:ie,mouseover:h?this.onDotsOver:ie,mouseleave:h?this.onDotsLeave:ie}},o=e(J,s)}var f=void 0,d=void 0,p=D(n,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);p.clickHandler=this.changeSlide;var g=this.$scopedSlots,m=g.prevArrow,v=g.nextArrow;m&&(p.prevArrow=m),v&&(p.nextArrow=v),this.arrows&&(f=e(te,{props:p}),d=e(ne,{props:p}));var y=null;this.vertical&&(y={height:"number"==typeof this.listHeight?this.listHeight+"px":this.listHeight});var A=null;!1===this.vertical?!0===this.centerMode&&(A={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(A={padding:this.centerPadding+" 0px"});var w=i()({},y,A),x=this.touchMove,C={directives:[{name:"ant-ref",value:this.listRefHandler}],class:"slick-list",style:w,on:{click:this.clickHandler,mousedown:x?this.swipeStart:ie,mousemove:this.dragging&&x?this.swipeMove:ie,mouseup:x?this.swipeEnd:ie,mouseleave:this.dragging&&x?this.swipeEnd:ie,touchstart:x?this.swipeStart:ie,touchmove:this.dragging&&x?this.swipeMove:ie,touchend:x?this.swipeEnd:ie,touchcancel:this.dragging&&x?this.swipeEnd:ie,keydown:this.accessibility?this.keyHandler:ie}},_={class:t,props:{dir:"ltr"}};return this.unslick&&(C={class:"slick-list",directives:[{name:"ant-ref",value:this.listRefHandler}]},_={class:t}),e("div",_,[this.unslick?"":f,e("div",C,[e($,r,[this.children])]),this.unslick?"":d,this.unslick?"":o])}},oe=W()&&n("8e95");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slick/src/slider.js
s.default.use(l.a,{name:"ant-ref"});
/* harmony default export */var se={props:i()({},x),mixins:[u.a],data:function(){return this._responsiveMediaHandlers=[],{breakpoint:null}},methods:{innerSliderRefHandler:function(e){this.innerSlider=e},media:function(e,t){
// javascript handler for  css media query
oe.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},slickPrev:function(){this.innerSlider.slickPrev()},slickNext:function(){this.innerSlider.slickNext()},slickGoTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.innerSlider.slickGoTo(e,t)},slickPause:function(){this.innerSlider.pause("paused")},slickPlay:function(){this.innerSlider.handleAutoPlay("play")}},
// handles responsive breakpoints
beforeMount:function(){var e=this;
// performance monitoring
// if (process.env.NODE_ENV !== 'production') {
// const { whyDidYouUpdate } = require('why-did-you-update')
// whyDidYouUpdate(React)
// }
if(this.responsive){var t=this.responsive.map((function(e){return e.breakpoint}));
// sort them in increasing order of their numerical value
t.sort((function(e,t){return e-t})),t.forEach((function(n,r){
// media query for each breakpoint
var i=void 0;i=0===r?o()({minWidth:0,maxWidth:n}):o()({minWidth:t[r-1]+1,maxWidth:n}),
// when not using server side rendering
W()&&e.media(i,(function(){e.setState({breakpoint:n})}))}));
// Register media query for full screen. Need to support resize from small to large
// convert javascript object to media query string
var n=o()({minWidth:t.slice(-1)[0]});W()&&this.media(n,(function(){e.setState({breakpoint:null})}))}},beforeDestroy:function(){this._responsiveMediaHandlers.forEach((function(e){oe.unregister(e.query,e.handler)}))},render:function(){var e=this,t=arguments[0],n=void 0,r=void 0;
// force scrolling by one if centerMode is on
(n=this.breakpoint?"unslick"===(r=this.responsive.filter((function(t){return t.breakpoint===e.breakpoint})))[0].settings?"unslick":i()({},this.$props,r[0].settings):i()({},this.$props)).centerMode&&(n.slidesToScroll,n.slidesToScroll=1),
// force showing one slide and scrolling by one if the fade mode is on
n.fade&&(n.slidesToShow,n.slidesToScroll,n.slidesToShow=1,n.slidesToScroll=1);
// makes sure that children is an array, even when there is only 1 child
var a=this.$slots.default||[];
// Children may contain false or null, so we should filter them
// children may also contain string filled with spaces (in certain cases where we use jsx strings)
a=a.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),
// rows and slidesPerRow logic is handled here
n.variableWidth&&(n.rows>1||n.slidesPerRow>1)&&(n.variableWidth=!1);for(var o=[],s=null,c=0;c<a.length;c+=n.rows*n.slidesPerRow){for(var l=[],u=c;u<c+n.rows*n.slidesPerRow;u+=n.slidesPerRow){for(var d=[],p=u;p<u+n.slidesPerRow&&(n.variableWidth&&Object(f.q)(a[p])&&(s=Object(f.q)(a[p]).width),!(p>=a.length));p+=1)d.push(Object(h.a)(a[p],{key:100*c+10*u+p,attrs:{tabIndex:-1},style:{width:100/n.slidesPerRow+"%",display:"inline-block"}}));l.push(t("div",{key:10*c+u},[d]))}n.variableWidth?o.push(t("div",{key:c,style:{width:s}},[l])):o.push(t("div",{key:c},[l]))}if("unslick"===n)return t("div",{class:"regular slider "+(this.className||"")},[o]);o.length<=n.slidesToShow&&(n.unslick=!0);var g={props:i()({},n,{children:o,__propsSymbol__:Symbol()}),on:Object(f.k)(this),directives:[{name:"ant-ref",value:this.innerSliderRefHandler}],scopedSlots:this.$scopedSlots};return t(ae,g)}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slick/src/index.js
// base react-slick 0.23.2
/* harmony default export */t.default=se},
/***/c3fc:
/***/function(e,t,n){var r=n("42a2"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function(e){return i(e)&&"[object Set]"==r(e)}},
/***/c401:
/***/function(e,t,n){"use strict";var r=n("c532");
/**
 * Transform the data for a request or a response
 *
 * @param {Object|String} data The data to be transformed
 * @param {Array} headers The headers for the request or response
 * @param {Array|Function} fns A single function or Array of functions
 * @returns {*} The resulting transformed data
 */e.exports=function(e,t,n){
/*eslint no-param-reassign:0*/
return r.forEach(n,(function(n){e=n(e,t)})),e}},
/***/c423:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/c430:
/***/function(e,t,n){"use strict";e.exports=!1},
/***/c449:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){for(var r=n("6d08"),i="undefined"==typeof window?t:window,a=["moz","webkit"],o="AnimationFrame",s=i["request"+o],c=i["cancel"+o]||i["cancelRequest"+o],l=0;!s&&l<a.length;l++)s=i[a[l]+"Request"+o],c=i[a[l]+"Cancel"+o]||i[a[l]+"CancelRequest"+o];
// Some versions of FF have rAF but not cAF
if(!s||!c){var u=0,h=0,f=[],d=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,d-(t-u));u=n+t,setTimeout((function(){var e=f.slice(0);
// Clear queue here to prevent
// callbacks from appending listeners
// to the current frame's queue
f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return f.push({handle:++h,callback:e,cancelled:!1}),h},c=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){
// Wrap in a new function to prevent
// `cancel` potentially being assigned
// to the native rAF function
return s.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}
/* WEBPACK VAR INJECTION */}).call(this,n("c8ba"))
/***/},
/***/c468:
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
n.r(t);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-pagination/locale/zh_TW.js
/* harmony default export */var r=n("41b2"),i=n.n(r),a={placeholder:"請選擇時間"},o={lang:i()({placeholder:"請選擇日期",rangePlaceholder:["開始日期","結束日期"]},{today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"}),timePickerLocale:i()({},a)};
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
o.lang.ok="確 定";
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
/* harmony default export */var s={locale:"zh-tw",Pagination:{
// Options.jsx
items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",
// Pagination.jsx
prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁"},DatePicker:o,TimePicker:a,Calendar:o,ColorPicker:{"btn:save":"保存","btn:cancel":"取消","btn:clear":"清除"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",selectAll:"全部選取",selectInvert:"反向選取",sortTitle:"排序",expand:"展開行",collapse:"關閉行"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},PageHeader:{back:"返回"}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/calendar/locale/zh_TW.js
/* harmony default export */t.default=s},
/***/c4c1:
/***/function(e,t,n){
// call something on iterator step with safe closing on error
var r=n("77e9");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n);
// 7.4.6 IteratorClose(iterator, completion)
}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},
/***/c4ef:
/***/function(e,t,n){var r=n("f083"),i=n("eb9a");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},
/***/c50c:
/***/function(e,t,n){e.exports=
/******/function(e){// webpackBootstrap
/******/ // The module cache
/******/var t={};
/******/
/******/ // The require function
/******/function n(r){
/******/
/******/ // Check if module is in cache
/******/if(t[r])
/******/return t[r].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/var i=t[r]={
/******/i:r,
/******/l:!1,
/******/exports:{}
/******/};
/******/
/******/ // Execute the module function
/******/
/******/
/******/ // Return the exports of the module
/******/return e[r].call(i.exports,i,i.exports,n),
/******/
/******/ // Flag the module as loaded
/******/i.l=!0,i.exports;
/******/}
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/
/******/
/******/
/******/ // Load entry module and return exports
/******/return n.m=e,
/******/
/******/ // expose the module cache
/******/n.c=t,
/******/
/******/ // define getter function for harmony exports
/******/n.d=function(e,t,r){
/******/n.o(e,t)||
/******/Object.defineProperty(e,t,{enumerable:!0,get:r})
/******/},
/******/
/******/ // define __esModule on exports
/******/n.r=function(e){
/******/"undefined"!=typeof Symbol&&Symbol.toStringTag&&
/******/Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})
/******/,Object.defineProperty(e,"__esModule",{value:!0})},
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/n.t=function(e,t){
/******/if(
/******/1&t&&(e=n(e)),8&t)return e;
/******/if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;
/******/var r=Object.create(null);
/******/
/******/if(n.r(r),
/******/Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));
/******/return r;
/******/},
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/n.n=function(e){
/******/var t=e&&e.__esModule?
/******/function(){return e.default}:
/******/function(){return e};
/******/
/******/return n.d(t,"a",t),t;
/******/},
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},
/******/
/******/ // __webpack_public_path__
/******/n.p="",n(n.s="fb15");
/******/}
/************************************************************************/
/******/({
/***/"0004":
/***/function(e,t,n){
// Module
(t=n("24fb")(!1)).push([e.i,".marquee-container[data-v-7f1eea7f]{position:relative;height:100%}.marquee-container:hover .marquee-progress[data-v-7f1eea7f]{visibility:visible;opacity:1}.marquee-slide[data-v-7f1eea7f]{display:inline-block!important}.marquee-progress[data-v-7f1eea7f]{z-index:99;position:relative;top:calc(100% - 22px);left:50px;height:3px;-webkit-transition:opacity .3s;transition:opacity .3s;visibility:hidden;opacity:0}.marquee-progress[data-v-7f1eea7f] .vue-slider-dot-handle{background-color:#ddd;border:0;border-radius:6px}.marquee-progress[data-v-7f1eea7f] .vue-slider-dot-handle-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.marquee-progress.vertical[data-v-7f1eea7f]{top:33px;left:calc(100% - 30px)}.marquee-progress.vertical[data-v-7f1eea7f] .vue-slider-dot-handle{background-color:#ddd;border:0;border-radius:6px}.marquee-progress.vertical[data-v-7f1eea7f] .vue-slider-dot-handle-focus{-webkit-box-shadow:none!important;box-shadow:none!important}",""]),
// Exports
e.exports=t},
/***/"00ee":
/***/function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},
/***/"00fd":
/***/function(e,t,n){var r=n("9e69"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;
/** Used for built-in method references. */e.exports=
/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},
/***/"0366":
/***/function(e,t,n){var r=n("1c0b");
// optional / simple context binding
e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},
/***/"03dd":
/***/function(e,t,n){var r=n("eac5"),i=n("57a5"),a=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},
/***/"057f":
/***/function(e,t,n){var r=n("fc6a"),i=n("241c").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},
/***/"06cf":
/***/function(e,t,n){var r=n("83ab"),i=n("d1e7"),a=n("5c6c"),o=n("fc6a"),s=n("c04e"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(e){/* empty */}if(c(e,t))return a(!i.f.call(e,t),e[t])}},
/***/"07c7":
/***/function(e,t){e.exports=
/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function(){return!1}},
/***/"087d":
/***/function(e,t){e.exports=
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},
/***/"08cc":
/***/function(e,t,n){var r=n("1a8c");
/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */e.exports=function(e){return e==e&&!r(e)}},
/***/"0b07":
/***/function(e,t,n){var r=n("34ac"),i=n("3698");
/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},
/***/"0cfb":
/***/function(e,t,n){var r=n("83ab"),i=n("d039"),a=n("cc12");
// Thank's IE8 for his funny defineProperty
e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},
/***/"0d24":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){var r=n("2b3e"),i=n("07c7"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;
/** Detect free variable `exports`. */e.exports=c}).call(this,n("62e4")(e))
/***/},
/***/1290:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},
/***/1310:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function(e){return null!=e&&"object"==typeof e}},
/***/1368:
/***/function(e,t,n){var r,i=n("da03"),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";
/** Used to detect methods masquerading as native. */e.exports=
/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function(e){return!!a&&a in e}},
/***/"13d5":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,a=n("a640"),o=n("ae40"),s=a("reduce"),c=o("reduce",{1:0});
// `Array.prototype.reduce` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e/* , initialValue */){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},
/***/"159b":
/***/function(e,t,n){var r=n("da84"),i=n("fdbc"),a=n("17c2"),o=n("9112");for(var s in i){var c=r[s],l=c&&c.prototype;
// some Chrome versions have non-configurable methods on DOMTokenList
if(l&&l.forEach!==a)try{o(l,"forEach",a)}catch(e){l.forEach=a}}
/***/},
/***/"17c2":
/***/function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=n("ae40"),o=i("forEach"),s=a("forEach");
// `Array.prototype.forEach` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
e.exports=o&&s?[].forEach:function(e/* , thisArg */){return r(this,e,arguments.length>1?arguments[1]:void 0)}},
/***/1838:
/***/function(e,t,n){var r=n("c05f"),i=n("9b02"),a=n("8604"),o=n("f608"),s=n("08cc"),c=n("20ec"),l=n("f4d6");
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function(e,t){return o(e)&&s(t)?c(l(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},
/***/"18d8":
/***/function(e,t,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46/* . */===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));
/** Used to match property names within property paths. */e.exports=o},
/***/"1a8c":
/***/function(e,t){e.exports=
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},
/***/"1be4":
/***/function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},
/***/"1c0b":
/***/function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e};
/***/},
/***/"1c3c":
/***/function(e,t,n){var r=n("9e69"),i=n("2474"),a=n("9638"),o=n("a2be"),s=n("edfa"),c=n("ac41"),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,r,l,h,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":
// Coerce booleans to `1` or `0` and dates to milliseconds.
// Invalid dates are coerced to `NaN`.
return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
// for more details.
return e==t+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=c),e.size!=t.size&&!p)return!1;
// Assume cyclic values are equal.
var g=f.get(e);if(g)return g==t;r|=2,
// Recursively compare objects (susceptible to call stack limits).
f.set(e,t);var m=o(d(e),d(t),r,l,h,f);return f.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},
/***/"1c7e":
/***/function(e,t,n){var r=n("b622")("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},
// eslint-disable-next-line no-throw-literal
Array.from(o,(function(){throw 2}))}catch(e){/* empty */}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){/* empty */}return n}},
/***/"1cec":
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"Promise");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"1d80":
/***/function(e,t){
// `RequireObjectCoercible` abstract operation
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e};
/***/},
/***/"1dde":
/***/function(e,t,n){var r=n("d039"),i=n("b622"),a=n("2d00"),o=i("species");e.exports=function(e){
// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/677
return a>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},
/***/"1efc":
/***/function(e,t){e.exports=
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},
/***/"1fc8":
/***/function(e,t,n){var r=n("4245");
/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},
/***/"20ec":
/***/function(e,t){e.exports=
/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},
/***/"234d":
/***/function(e,t,n){var r=n("e380");
/** Used as the maximum memoize cache size. */e.exports=
/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},
/***/"23cb":
/***/function(e,t,n){var r=n("a691"),i=Math.max,a=Math.min;
// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},
/***/"23e7":
/***/function(e,t,n){var r=n("da84"),i=n("06cf").f,a=n("9112"),o=n("6eeb"),s=n("ce4e"),c=n("e893"),l=n("94ca");
/*
  options.target      - name of the target object
  options.global      - target is the global object
  options.stat        - export as static methods of target
  options.proto       - export as prototype methods of target
  options.real        - real prototype method for the `pure` version
  options.forced      - export even if the native feature is available
  options.bind        - bind methods to the target, required for the `pure` version
  options.wrap        - wrap constructors to preventing global pollution, required for the `pure` version
  options.unsafe      - use the simple assignment of property instead of delete + defineProperty
  options.sham        - add a flag to not completely full polyfills
  options.enumerable  - export as enumerable property
  options.noTargetGet - prevent calling a getter on target
*/
e.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){
// contained in target
if(f=t[u],h=e.noTargetGet?(d=i(n,u))&&d.value:n[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}
// add a flag to not completely full polyfills
(e.sham||h&&h.sham)&&a(f,"sham",!0),
// extend global
o(n,u,f,e)}}},
/***/"241c":
/***/function(e,t,n){var r=n("ca84"),i=n("7839").concat("length","prototype");
// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},
/***/"242e":
/***/function(e,t,n){var r=n("72af"),i=n("ec69");
/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */e.exports=function(e,t){return e&&r(e,t,i)}},
/***/2474:
/***/function(e,t,n){var r=n("2b3e").Uint8Array;
/** Built-in value references. */e.exports=r},
/***/2478:
/***/function(e,t,n){var r=n("4245");
/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */e.exports=function(e){return r(this,e).get(e)}},
/***/"24fb":
/***/function(e,t,n){"use strict";
/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];// return the list of modules as css string
return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];// eslint-disable-next-line prefer-destructuring
if(!r)return n;if(t&&"function"==typeof btoa){var i=(o=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}// Adapted from convert-source-map (MIT)
var o,s,c;
/***/return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},// import a list of modules into the list
// eslint-disable-next-line func-names
t.i=function(e,n,r){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){
// eslint-disable-next-line prefer-destructuring
var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},
/***/2524:
/***/function(e,t,n){var r=n("6044");
/** Used to stand-in for `undefined` hash values. */e.exports=
/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},
/***/"253c":
/***/function(e,t,n){var r=n("3729"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function(e){return i(e)&&"[object Arguments]"==r(e)}},
/***/"25f0":
/***/function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),a=n("d039"),o=n("ad6d"),s="toString",c=RegExp.prototype,l=c[s],u=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=l.name!=s;
// `RegExp.prototype.toString` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
(u||h)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?o.call(e):n)}),{unsafe:!0})
/***/},
/***/"26e8":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function(e,t){return null!=e&&t in Object(e)}},
/***/"28c9":
/***/function(e,t){e.exports=
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function(){this.__data__=[],this.size=0}},
/***/"29f3":
/***/function(e,t){
/** Used for built-in method references. */
var n=Object.prototype.toString;
/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */e.exports=
/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function(e){return n.call(e)}},
/***/"2b3e":
/***/function(e,t,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();
/** Detect free variable `self`. */e.exports=a},
/***/"2d00":
/***/function(e,t,n){var r,i,a=n("da84"),o=n("342f"),s=a.process,c=s&&s.versions,l=c&&c.v8;l?i=(r=l.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},
/***/"2d7c":
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},
/***/"2fcc":
/***/function(e,t){e.exports=
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},
/***/"30c9":
/***/function(e,t,n){var r=n("9520"),i=n("b218");
/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},
/***/"32f4":
/***/function(e,t,n){var r=n("2d7c"),i=n("d327"),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;
/** Used for built-in method references. */e.exports=s},
/***/"342f":
/***/function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},
/***/"34ac":
/***/function(e,t,n){var r=n("9520"),i=n("1368"),a=n("1a8c"),o=n("dc57"),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,f=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");
/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */e.exports=
/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function(e){return!(!a(e)||i(e))&&(r(e)?f:s).test(o(e))}},
/***/"35a1":
/***/function(e,t,n){var r=n("f5df"),i=n("3f8c"),a=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},
/***/3698:
/***/function(e,t){e.exports=
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function(e,t){return null==e?void 0:e[t]}},
/***/3729:
/***/function(e,t,n){var r=n("9e69"),i=n("00fd"),a=n("29f3"),o=r?r.toStringTag:void 0;
/** `Object#toString` result references. */e.exports=
/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},
/***/"37e8":
/***/function(e,t,n){var r=n("83ab"),i=n("9bf2"),a=n("825a"),o=n("df75");
// `Object.defineProperties` method
// https://tc39.github.io/ecma262/#sec-object.defineproperties
e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},
/***/"39ff":
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"WeakMap");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"3b29":
/***/function(e,t,n){
// Module
(t=n("24fb")(!1)).push([e.i,'.vue-slider-disabled .vue-slider-process{background-color:#a7a7a7}.vue-slider-disabled .vue-slider-dot-handle{border-color:#a7a7a7}.vue-slider-disabled .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #a7a7a7;box-shadow:0 0 0 2px #a7a7a7}.vue-slider-rail{background-color:#f5f5f5;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-rail{background-color:#e1e1e1}.vue-slider-process{background-color:#9cd5ff;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-process{background-color:#69c0ff}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;-webkit-box-shadow:0 0 0 2px #e8e8e8;box-shadow:0 0 0 2px #e8e8e8;background-color:#fff}.vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #9cd5ff;box-shadow:0 0 0 2px #9cd5ff}.vue-slider:hover .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #69c0ff;box-shadow:0 0 0 2px #69c0ff}.vue-slider-mark-label{font-size:12px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;border:2px solid #9cd5ff;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .3s,-webkit-box-shadow .3s;transition:border-color .3s,-webkit-box-shadow .3s;transition:box-shadow .3s,border-color .3s;transition:box-shadow .3s,border-color .3s,-webkit-box-shadow .3s}.vue-slider:hover .vue-slider-dot-handle{border-color:#69c0ff}.vue-slider-dot-handle-focus{border-color:#36abff;-webkit-box-shadow:0 0 0 5px rgba(54,171,255,.2);box-shadow:0 0 0 5px rgba(54,171,255,.2)}.vue-slider-dot-handle:hover,.vue-slider:hover .vue-slider-dot-handle-focus,.vue-slider:hover .vue-slider-dot-handle:hover{border-color:#36abff}.vue-slider-dot-handle-disabled{cursor:not-allowed;border-color:#ddd!important}.vue-slider-dot-tooltip{opacity:0;visibility:hidden;-webkit-transition:all .3s;transition:all .3s}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:6px 8px;color:#fff;border-radius:5px;border-color:rgba(0,0,0,.75);background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transform:scale(.9);transform:scale(.9);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vue-slider-dot-tooltip-inner:after{content:"";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after,.vue-slider-dot-tooltip-inner-top:after{left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-left:after,.vue-slider-dot-tooltip-inner-right:after{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-right:after{right:100%;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-inner-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.vue-slider-dot-tooltip-inner-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.vue-slider-dot-tooltip-inner-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.vue-slider-dot-tooltip-inner-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.vue-slider-dot-tooltip-show,.vue-slider-dot:hover .vue-slider-dot-tooltip{opacity:1;visibility:visible}.vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner,.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner{-webkit-transform:scale(1);transform:scale(1)}',""]),
// Exports
e.exports=t},
/***/"3bb4":
/***/function(e,t,n){var r=n("08cc"),i=n("ec69");
/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},
/***/"3bbe":
/***/function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},
/***/"3ca3":
/***/function(e,t,n){"use strict";var r=n("6547").charAt,i=n("69f3"),a=n("7dd0"),o="String Iterator",s=i.set,c=i.getterFor(o);
// `String.prototype[@@iterator]` method
// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
a(String,"String",(function(e){s(this,{type:o,string:String(e),index:0});
// `%StringIteratorPrototype%.next` method
// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},
/***/"3e39":
/***/function(e,t,n){
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var r=n("3b29");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);
// add the styles to the DOM
(0,n("499e").default)("7fadf350",r,!0,{sourceMap:!1,shadowMode:!1})},
/***/"3f8c":
/***/function(e,t){e.exports={};
/***/},
/***/4160:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("17c2");
// `Array.prototype.forEach` method
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},
/***/4245:
/***/function(e,t,n){var r=n("1290");
/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},
/***/4284:
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},
/***/"428f":
/***/function(e,t,n){var r=n("da84");e.exports=r},
/***/"42a2":
/***/function(e,t,n){var r=n("b5a7"),i=n("79bc"),a=n("1cec"),o=n("c869"),s=n("39ff"),c=n("3729"),l=n("dc57"),u="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",g=l(r),m=l(i),v=l(a),y=l(o),A=l(s),b=c;
/** `Object#toString` result references. */
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=u||a&&b(a.resolve())!=h||o&&b(new o)!=f||s&&b(new s)!=d)&&(b=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case g:return p;case m:return u;case v:return h;case y:return f;case A:return d}return t}),e.exports=b},
/***/"44ad":
/***/function(e,t,n){var r=n("d039"),i=n("c6b6"),a="".split;
// fallback for non-array-like ES3 and non-enumerable old V8 strings
e.exports=r((function(){
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins
return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},
/***/"44d2":
/***/function(e,t,n){var r=n("b622"),i=n("7c73"),a=n("9bf2"),o=r("unscopables"),s=Array.prototype;
// Array.prototype[@@unscopables]
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),
// add a key to Array.prototype[@@unscopables]
e.exports=function(e){s[o][e]=!0}},
/***/"48a0":
/***/function(e,t,n){var r=n("242e"),i=n("950a")(r);
/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */e.exports=i},
/***/4930:
/***/function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return!String(Symbol())}))},
/***/4971:
/***/function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n("8bbf"),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({2350:function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var a=r(i),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<e.length;i++){var o=e[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},2638:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)}var i=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==i.indexOf(n))e[n]=r({},e[n],t[n]);else if(-1!==a.indexOf(n)){var s=e[n]instanceof Array?e[n]:[e[n]],l=t[n]instanceof Array?t[n]:[t[n]];e[n]=s.concat(l)}else if(-1!==o.indexOf(n))for(var u in t[n])if(e[n][u]){var h=e[n][u]instanceof Array?e[n][u]:[e[n][u]],f=t[n][u]instanceof Array?t[n][u]:[t[n][u]];e[n][u]=h.concat(f)}else e[n][u]=t[n][u];else if("hook"==n)for(var d in t[n])e[n][d]=e[n][d]?c(e[n][d],t[n][d]):t[n][d];else e[n]=t[n];else e[n]=t[n];return e}),{})},c=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=s},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s={id:e+":"+i,css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},h=null,f="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){l=n,h=i||{};var o=r(e,t);return g(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],c=a[s.id];c.refs--,n.push(c)}for(t?g(o=r(e,t)):o=[],i=0;i<n.length;i++)if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete a[c.id]}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(v(n.parts[i]));a[n.id]={id:n.id,refs:1,parts:o}}}}function m(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var i=c++;r=s||(s=m()),t=A.bind(null,r,i,!1),n=A.bind(null,r,i,!0)}else r=m(),t=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function A(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function b(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),h.ssrId&&e.setAttribute(f,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4abb":function(e,t,n){var r=n("df80");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n("499e").default)("3e7284f8",r,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(e,t,n){var r=n("ae61");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n("499e").default)("57c2b2f0",r,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(e,t,n){var r=n("d5ac");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n("499e").default)("f3ffc7f8",r,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(e,t,n){"use strict";
/**
  * vue-class-component v7.0.1
  * (c) 2015-present Evan You
  * @license MIT
  */function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("8bbf")),a="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function o(e,t){s(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(n){s(e.prototype,t.prototype,n)})),Object.getOwnPropertyNames(t).forEach((function(n){s(e,t,n)}))}function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(r){var i=n?Reflect.getOwnMetadata(r,t,n):Reflect.getOwnMetadata(r,t);n?Reflect.defineMetadata(r,i,e,n):Reflect.defineMetadata(r,i,e)}))}var c={__proto__:[]}instanceof Array;function l(e){return function(t,n,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return e(t,n,r)}))}}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.extend({mixins:e})}function h(e){var t=typeof e;return null==e||"object"!==t&&"function"!==t}function f(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var r=new t;t.prototype._init=n;var i={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(i[e]=r[e])})),i}var d=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function p(e,t){void 0===t&&(t={}),t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(d.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"==typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){var t;return(t={})[e]=r.value,t}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return f(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(t)})),delete e.__decorators__);var s=Object.getPrototypeOf(e.prototype),c=s instanceof i?s.constructor:i,l=c.extend(t);return g(l,e,c),a&&o(l,e),l}function g(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if("prototype"!==r){var i=Object.getOwnPropertyDescriptor(e,r);if(!i||i.configurable){var a=Object.getOwnPropertyDescriptor(t,r);if(!c){if("cid"===r)return;var o=Object.getOwnPropertyDescriptor(n,r);if(!h(a.value)&&o&&o.value===a.value)return}Object.defineProperty(e,r,a)}}}))}function m(e){return"function"==typeof e?p(e):function(t){return p(t,e)}}m.registerHooks=function(e){d.push.apply(d,e)},t.default=m,t.createDecorator=l,t.mixins=u},"8bbf":function(e,t){e.exports=r},ae61:function(e,t,n){(e.exports=n("2350")(!1)).push([e.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(e,t,n){(e.exports=n("2350")(!1)).push([e.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(e,t,n){(e.exports=n("2350")(!1)).push([e.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""])},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!=typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]);var i=n("2638"),a=n.n(i);function o(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}var s=n("8bbf"),c=n.n(s),l=n("65d9"),u=n.n(l);function h(e,t){return void 0===t&&(t={}),Object(l.createDecorator)((function(n,r){(n.props||(n.props={}))[r]=t,n.model={prop:r,event:e||r}}))}function f(e){return void 0===e&&(e={}),Object(l.createDecorator)((function(t,n){(t.props||(t.props={}))[n]=e}))}function d(e,t){void 0===t&&(t={});var n=t.deep,r=void 0!==n&&n,i=t.immediate,a=void 0!==i&&i;return Object(l.createDecorator)((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var i=t.watch;"object"!=typeof i[e]||Array.isArray(i[e])?void 0===i[e]&&(i[e]=[]):i[e]=[i[e]],i[e].push({handler:n,deep:r,immediate:a})}))}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function y(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?A(e):t}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}n("4ed8");var C=function(e){function t(){return g(this,t),y(this,b(t).apply(this,arguments))}return w(t,e),v(t,[{key:"dragStart",value:function(e){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var e=arguments[0];return e("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||e("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?e("div",{class:this.tooltipClasses},[this.$slots.tooltip||e("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[e("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":default:return!1;case"focus":case"active":return!!this.focus}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),t}(c.a);o([f({default:0})],C.prototype,"value",void 0),o([f()],C.prototype,"tooltip",void 0),o([f()],C.prototype,"dotStyle",void 0),o([f()],C.prototype,"tooltipStyle",void 0),o([f({type:String,validator:function(e){return["top","right","bottom","left"].indexOf(e)>-1},required:!0})],C.prototype,"tooltipPlacement",void 0),o([f({type:[String,Function]})],C.prototype,"tooltipFormatter",void 0),o([f({type:Boolean,default:!1})],C.prototype,"focus",void 0),o([f({default:!1})],C.prototype,"disabled",void 0);var _=C=o([u.a],C);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function B(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}n("556c");var P=function(e){function t(){return E(this,t),B(this,T(t).apply(this,arguments))}return O(t,e),S(t,[{key:"labelClickHandle",value:function(e){e.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var e=arguments[0],t=this.mark;return e("div",{class:this.marksClasses},[this.$slots.step||e("div",{class:this.stepClasses,style:[this.stepStyle,t.style,t.active?this.stepActiveStyle:null,t.active?t.activeStyle:null]}),this.hideLabel?null:this.$slots.label||e("div",{class:this.labelClasses,style:[this.labelStyle,t.labelStyle,t.active?this.labelActiveStyle:null,t.active?t.labelActiveStyle:null],on:{click:this.labelClickHandle}},[t.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),t}(c.a);o([f({required:!0})],P.prototype,"mark",void 0),o([f(Boolean)],P.prototype,"hideLabel",void 0),o([f()],P.prototype,"stepStyle",void 0),o([f()],P.prototype,"stepActiveStyle",void 0),o([f()],P.prototype,"labelStyle",void 0),o([f()],P.prototype,"labelActiveStyle",void 0);var L,Q=P=o([u.a],P),R=function(e){return"number"==typeof e?"".concat(e,"px"):e},j=function(e){var t=document.documentElement,n=document.body,r=e.getBoundingClientRect();return{y:r.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||n.clientTop||0),x:r.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}},N=function(e,t,n){var r="targetTouches"in e?e.targetTouches[0]:e,i=j(t),a={x:r.pageX-i.x,y:r.pageY-i.y};return{x:n?t.offsetWidth-a.x:a.x,y:n?t.offsetHeight-a.y:a.y}};!function(e){e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"}(L||(L={}));var F=function(e,t){if(t.hook){var n=t.hook(e);if("function"==typeof n)return n;if(!n)return null}switch(e.keyCode){case L.UP:return function(e){return"ttb"===t.direction?e-1:e+1};case L.RIGHT:return function(e){return"rtl"===t.direction?e-1:e+1};case L.DOWN:return function(e){return"ttb"===t.direction?e+1:e-1};case L.LEFT:return function(e){return"rtl"===t.direction?e+1:e-1};case L.END:return function(){return t.max};case L.HOME:return function(){return t.min};case L.PAGE_UP:return function(e){return e+10};case L.PAGE_DOWN:return function(e){return e-10};default:return null}};function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t&&H(e.prototype,t),n&&H(e,n),e}var G,V,W=function(){function e(t){z(this,e),this.num=t}return U(e,[{key:"decimal",value:function(e,t){var n=this.num,r=this.getDecimalLen(n),i=this.getDecimalLen(e),a=0;switch(t){case"+":a=this.getExponent(r,i),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(e,a))/a;break;case"-":a=this.getExponent(r,i),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(e,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(r)),this.safeRoundUp(e,this.getExponent(i)))/this.getExponent(r+i);break;case"/":a=this.getExponent(r,i),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(e,a);break;case"%":a=this.getExponent(r,i),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(e,a)/a}return this}},{key:"plus",value:function(e){return this.decimal(e,"+")}},{key:"minus",value:function(e){return this.decimal(e,"-")}},{key:"multiply",value:function(e){return this.decimal(e,"*")}},{key:"divide",value:function(e){return this.decimal(e,"/")}},{key:"remainder",value:function(e){return this.decimal(e,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(e){return("".concat(e).split(".")[1]||"").length}},{key:"getExponent",value:function(e,t){return Math.pow(10,void 0!==t?Math.max(e,t):e)}},{key:"safeRoundUp",value:function(e,t){return Math.round(e*t)}}]),e}();function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ae(e,t,n[t])}))}return e}function Y(e,t){return J(e)||$(e,t)||K()}function K(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function $(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}function J(e){if(Array.isArray(e))return e}function X(e){return te(e)||ee(e)||Z()}function Z(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ee(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function te(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.VALUE=1]="VALUE",e[e.INTERVAL=2]="INTERVAL",e[e.MIN=3]="MIN",e[e.MAX=4]="MAX",e[e.ORDER=5]="ORDER"}(V||(V={}));var oe=(ae(G={},V.VALUE,'The type of the "value" is illegal'),ae(G,V.INTERVAL,'The prop "interval" is invalid, "(max - min)" cannot be divisible by "interval"'),ae(G,V.MIN,'The "value" cannot be less than the minimum.'),ae(G,V.MAX,'The "value" cannot be greater than the maximum.'),ae(G,V.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),G),se=function(){function e(t){ne(this,e),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(V.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return ie(e,[{key:"setValue",value:function(e){this.setDotsValue(Array.isArray(e)?X(e):[e],!0)}},{key:"setDotsValue",value:function(e,t){this.dotsValue=e,t&&this.syncDotsPos()}},{key:"setDotsPos",value:function(e){var t=this,n=this.order?X(e).sort((function(e,t){return e-t})):e;this.dotsPos=n,this.setDotsValue(n.map((function(e){return t.getValueByPos(e)})),this.adsorb)}},{key:"getValueByPos",value:function(e){var t=this.parsePos(e);if(this.included){var n=100;this.markList.forEach((function(r){var i=Math.abs(r.pos-e);i<n&&(n=i,t=r.value)}))}return t}},{key:"syncDotsPos",value:function(){var e=this;this.dotsPos=this.dotsValue.map((function(t){return e.parseValue(t)}))}},{key:"getRecentDot",value:function(e){var t=this.dotsPos.map((function(t){return Math.abs(t-e)}));return t.indexOf(Math.min.apply(Math,X(t)))}},{key:"getIndexByValue",value:function(e){return this.data?this.data.indexOf(e):new W(+e).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(e){return e<0?e=0:e>this.total&&(e=this.total),this.data?this.data[e]:new W(e).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(e,t){var n=(e=this.getValidPos(e,t).pos)-this.dotsPos[t];if(n){var r=new Array(this.dotsPos.length);this.fixed?r=this.getFixedChangePosArr(n,t):this.minRange||this.maxRange?r=this.getLimitRangeChangePosArr(e,n,t):r[t]=n,this.setDotsPos(this.dotsPos.map((function(e,t){return e+(r[t]||0)})))}}},{key:"getFixedChangePosArr",value:function(e,t){var n=this;return this.dotsPos.forEach((function(r,i){if(i!==t){var a=n.getValidPos(r+e,i),o=a.pos;a.inRange||(e=Math.min(Math.abs(o-r),Math.abs(e))*(e<0?-1:1))}})),this.dotsPos.map((function(t){return e}))}},{key:"getLimitRangeChangePosArr",value:function(e,t,n){var r=this,i=[{index:n,changePos:t}],a=t;return[this.minRange,this.maxRange].forEach((function(o,s){if(!o)return!1;for(var c=0===s,l=t>0,u=0,h=function(e,t){var n=Math.abs(e-t);return c?n<r.minRangeDir:n>r.maxRangeDir},f=n+(u=c?l?1:-1:l?-1:1),d=r.dotsPos[f],p=e;r.isPos(d)&&h(d,p);){var g=r.getValidPos(d+a,f).pos;i.push({index:f,changePos:g-d}),f+=u,p=g,d=r.dotsPos[f]}})),this.dotsPos.map((function(e,t){var n=i.filter((function(e){return e.index===t}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(e){return"number"==typeof e}},{key:"getValidPos",value:function(e,t){var n=this.valuePosRange[t],r=!0;return e<n[0]?(e=n[0],r=!1):e>n[1]&&(e=n[1],r=!1),{pos:e,inRange:r}}},{key:"parseValue",value:function(e){if(this.data)e=this.data.indexOf(e);else if("number"==typeof e||"string"==typeof e){if((e=+e)<this.min)return this.emitError(V.MIN),0;if(e>this.max)return this.emitError(V.MAX),0;if("number"!=typeof e||e!=e)return this.emitError(V.VALUE),0;e=new W(e).minus(this.min).divide(this.interval).toNumber()}var t=new W(e).multiply(this.gap).toNumber();return t<0?0:t>100?100:t}},{key:"parsePos",value:function(e){var t=Math.round(e/this.gap);return this.getValueByIndex(t)}},{key:"isActiveByPos",value:function(e){return this.processArray.some((function(t){var n=Y(t,2),r=n[0],i=n[1];return e>=r&&e<=i}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var e=[],t=0;t<=this.total;t++)e.push(new W(t).multiply(this.interval).plus(this.min).toNumber());return e}},{key:"getRangeDir",value:function(e){return e?new W(e).divide(new W(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(e){this.onError&&this.onError(e,oe[e])}},{key:"getDotRange",value:function(e,t,n){if(!this.dotOptions)return n;var r=Array.isArray(this.dotOptions)?this.dotOptions[e]:this.dotOptions;return r&&void 0!==r[t]?this.parseValue(r[t]):n}},{key:"markList",get:function(){var e=this;if(!this.marks)return[];var t=function(t,n){var r=e.parseValue(t);return q({pos:r,value:t,label:t,active:e.isActiveByPos(r)},n)};return!0===this.marks?this.getValues().map((function(e){return t(e)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(e,t){return+e-+t})).map((function(n){var r=e.marks[n];return t(n,"string"!=typeof r?r:{label:r})})):Array.isArray(this.marks)?this.marks.map((function(e){return t(e)})):"function"==typeof this.marks?this.getValues().map((function(t){return{value:t,result:e.marks(t)}})).filter((function(e){return!!e.result})).map((function(e){var n=e.value,r=e.result;return t(n,r)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,X(this.dotsPos)),Math.max.apply(Math,X(this.dotsPos))]]}return[]}},{key:"total",get:function(){var e=0;return(e=this.data?this.data.length-1:new W(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(e)!=0?(this.emitError(V.INTERVAL),0):e}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var e=this,t=this.dotsPos,n=[];return t.forEach((function(r,i){n.push([Math.max(e.minRange?e.minRangeDir*i:0,e.enableCross?0:t[i-1]||0,e.getDotRange(i,"min",0)),Math.min(e.minRange?100-e.minRangeDir*(t.length-1-i):100,e.enableCross?100:t[i+1]||100,e.getDotRange(i,"max",100))])})),n}},{key:"dotsIndex",get:function(){var e=this;return this.dotsValue.map((function(t){return e.getIndexByValue(t)}))}}]),e}();function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ue(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),e}var he=function(){function e(t){ce(this,e),this.states=0,this.map=t}return ue(e,[{key:"add",value:function(e){this.states|=e}},{key:"delete",value:function(e){this.states&=~e}},{key:"toggle",value:function(e){this.has(e)?this.delete(e):this.add(e)}},{key:"has",value:function(e){return!!(this.states&e)}}]),e}();function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ye(e,t,n[t])}))}return e}function pe(e,t){return ve(e)||me(e,t)||ge()}function ge(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function me(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}function ve(e){if(Array.isArray(e))return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e){return xe(e)||we(e)||be()}function be(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function we(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function xe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),e}function Ee(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?ke(e):t}function ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function Be(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Me(e,t)}function Me(e,t){return Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Me(e,t)}n("4abb");var Te={None:0,Drag:2,Focus:4},Oe=4,De=function(e){function t(){var e;return Ce(this,t),(e=Ee(this,Se(t).apply(this,arguments))).states=new he(Te),e.scale=1,e.focusDotIndex=0,e}return Be(t,e),Ie(t,[{key:"onValueChanged",value:function(){this.control&&!this.states.has(Te.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new W(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var e=this;this.control=new se({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(t){e.$watch(t,(function(n){if("data"===t&&Array.isArray(e.control.data)&&Array.isArray(n)&&e.control.data.length===n.length&&n.every((function(t,n){return t===e.control.data[n]})))return!1;e.control[t]=n,["data","max","min","interval"].indexOf(t)>-1&&e.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var e=this.control.dotsValue;this.isDiff(e,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===e.length?e[0]:Ae(e))}},{key:"isDiff",value:function(e,t){return e.length!==t.length||e.some((function(e,n){return e!==t[n]}))}},{key:"emitError",value:function(e,t){this.silent,this.$emit("error",e,t)}},{key:"dragStartOnProcess",value:function(e){if(this.dragOnClick){this.setScale();var t=this.getPosByEvent(e),n=this.control.getRecentDot(t);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(e){this.focusDotIndex=e,this.setScale(),this.states.add(Te.Drag),this.states.add(Te.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(e){if(!this.states.has(Te.Drag))return!1;e.preventDefault();var t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:Ae(n))}},{key:"isCrossDot",value:function(e){if(this.canSort){var t=this.focusDotIndex,n=e;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex&&this.control.setDotPos(n,t)}}},{key:"dragEnd",value:function(){var e=this;if(!this.states.has(Te.Drag))return!1;setTimeout((function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(Te.Drag),e.useKeyboard||e.states.delete(Te.Focus),e.$emit("drag-end")}))}},{key:"blurHandle",value:function(e){if(!this.states.has(Te.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(Te.Focus)}},{key:"clickHandle",value:function(e){if(!this.clickable||this.disabled)return!1;if(!this.states.has(Te.Drag)){this.setScale();var t=this.getPosByEvent(e);this.setValueByPos(t)}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Te.Focus),this.focusDotIndex=e}},{key:"blur",value:function(){this.states.delete(Te.Focus)}},{key:"getValue",value:function(){var e=this.control.dotsValue;return 1===e.length?e[0]:e}},{key:"getIndex",value:function(){var e=this.control.dotsIndex;return 1===e.length?e[0]:e}},{key:"setValue",value:function(e){this.control.setValue(Array.isArray(e)?Ae(e):[e]),this.syncValueByPos()}},{key:"setIndex",value:function(e){var t=this,n=Array.isArray(e)?e.map((function(e){return t.control.getValueByIndex(e)})):this.control.getValueByIndex(e);this.setValue(n)}},{key:"setValueByPos",value:function(e){var t=this,n=this.control.getRecentDot(e);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(e,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(Te.Focus),setTimeout((function(){t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(e){var t=this;if(!this.useKeyboard||!this.states.has(Te.Focus))return!1;var n=this.included&&this.marks,r=F(e,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(r){e.preventDefault();var i=-1,a=0;n?(this.control.markList.some((function(e,n){return e.value===t.control.dotsValue[t.focusDotIndex]&&(i=r(n),!0)})),i<0?i=0:i>this.control.markList.length-1&&(i=this.control.markList.length-1),a=this.control.markList[i].pos):(i=r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),a=this.control.parseValue(this.control.getValueByIndex(i))),this.isCrossDot(a),this.control.setDotPos(a,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(e){return N(e,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(e,t,n,r){var i=this.$createElement,a=this.$scopedSlots[e];return a?r?a(t):i("template",{slot:e},[a(t)]):n}},{key:"render",value:function(){var e=this,t=arguments[0];return t("div",a()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[t("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,r){return e.renderSlot("process",n,t("div",{class:"vue-slider-process",key:"process-".concat(r),style:n.style}),!0)})),this.marks?t("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,r){var i;return e.renderSlot("mark",n,t("vue-slider-mark",{key:"mark-".concat(r),attrs:{mark:n,hideLabel:e.hideLabel,stepStyle:e.stepStyle,stepActiveStyle:e.stepActiveStyle,labelStyle:e.labelStyle,labelActiveStyle:e.labelActiveStyle},style:(i={},ye(i,e.isHorizontal?"height":"width","100%"),ye(i,e.isHorizontal?"width":"height",e.tailSize),ye(i,e.mainDirection,"".concat(n.pos,"%")),i),on:{pressLabel:function(t){return e.clickable&&e.setValueByPos(t)}}},[e.renderSlot("step",n,null),e.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,r){var i;return t("vue-slider-dot",{ref:"dot-".concat(r),key:"dot-".concat(r),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||e.tooltip,"tooltip-style":[e.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(e.tooltipFormatter)?e.tooltipFormatter[r]:e.tooltipFormatter,"tooltip-placement":e.tooltipDirections[r]},style:[e.dotBaseStyle,(i={},ye(i,e.mainDirection,"".concat(n.pos,"%")),ye(i,"transition","".concat(e.mainDirection," ").concat(e.animateTime,"s")),i)],on:{"drag-start":function(){return e.dragStart(r)}}},[e.renderSlot("dot",n,null),e.renderSlot("tooltip",n,null)])})),this.renderSlot("default",null,null,!0)])])}},{key:"tailSize",get:function(){return R((this.isHorizontal?this.height:this.width)||Oe)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var e=pe(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),t=e[0],n=e[1],r=this.width?R(this.width):this.isHorizontal?"auto":R(Oe),i=this.height?R(this.height):this.isHorizontal?R(Oe):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(t/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(t/2,"px"),width:r,height:i}}},{key:"processArray",get:function(){var e=this;return this.control.processArray.map((function(t,n){var r,i=pe(t,3),a=i[0],o=i[1],s=i[2];if(a>o){var c=[o,a];a=c[0],o=c[1]}var l=e.isHorizontal?"width":"height";return{start:a,end:o,index:n,style:de((r={},ye(r,e.isHorizontal?"height":"width","100%"),ye(r,e.isHorizontal?"top":"left",0),ye(r,e.mainDirection,"".concat(a,"%")),ye(r,l,"".concat(o-a,"%")),ye(r,"transitionProperty","".concat(l,",").concat(e.mainDirection)),ye(r,"transitionDuration","".concat(e.animateTime,"s")),r),e.processStyle,s)}}))}},{key:"dotBaseStyle",get:function(){var e,t=pe(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=t[0],r=t[1];return e=this.isHorizontal?ye({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):ye({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),de({width:"".concat(n,"px"),height:"".concat(r,"px")},e)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map((function(){return e}))}},{key:"dots",get:function(){var e=this;return this.control.dotsPos.map((function(t,n){return de({pos:t,index:n,value:e.control.dotsValue[n],focus:e.states.has(Te.Focus)&&e.focusDotIndex===n,disabled:e.disabled,style:e.dotStyle},(Array.isArray(e.dotOptions)?e.dotOptions[n]:e.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(Te.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var e=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==e.length||this.value.some((function(t,n){return t!==e[n]})):this.value!==e[0]}},{key:"dragRange",get:function(){var e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];return[e?e.pos:-1/0,t?t.pos:1/0]}}]),t}(c.a);o([h("change",{default:0})],De.prototype,"value",void 0),o([f({type:Boolean,default:!1})],De.prototype,"silent",void 0),o([f({default:"ltr",validator:function(e){return["ltr","rtl","ttb","btt"].indexOf(e)>-1}})],De.prototype,"direction",void 0),o([f({type:[Number,String]})],De.prototype,"width",void 0),o([f({type:[Number,String]})],De.prototype,"height",void 0),o([f({default:14})],De.prototype,"dotSize",void 0),o([f({default:!1})],De.prototype,"contained",void 0),o([f({type:Number,default:0})],De.prototype,"min",void 0),o([f({type:Number,default:100})],De.prototype,"max",void 0),o([f({type:Number,default:1})],De.prototype,"interval",void 0),o([f({type:Boolean,default:!1})],De.prototype,"disabled",void 0),o([f({type:Boolean,default:!0})],De.prototype,"clickable",void 0),o([f({type:Boolean,default:!1})],De.prototype,"dragOnClick",void 0),o([f({type:Number,default:.5})],De.prototype,"duration",void 0),o([f(Array)],De.prototype,"data",void 0),o([f({type:Boolean,default:!1})],De.prototype,"lazy",void 0),o([f({type:String,validator:function(e){return["none","always","focus","hover","active"].indexOf(e)>-1},default:"active"})],De.prototype,"tooltip",void 0),o([f({type:[String,Array],validator:function(e){return(Array.isArray(e)?e:[e]).every((function(e){return["top","right","bottom","left"].indexOf(e)>-1}))}})],De.prototype,"tooltipPlacement",void 0),o([f({type:[String,Array,Function]})],De.prototype,"tooltipFormatter",void 0),o([f({type:Boolean,default:!1})],De.prototype,"useKeyboard",void 0),o([f(Function)],De.prototype,"keydownHook",void 0),o([f({type:Boolean,default:!0})],De.prototype,"enableCross",void 0),o([f({type:Boolean,default:!1})],De.prototype,"fixed",void 0),o([f({type:Boolean,default:!0})],De.prototype,"order",void 0),o([f(Number)],De.prototype,"minRange",void 0),o([f(Number)],De.prototype,"maxRange",void 0),o([f({type:[Boolean,Object,Array,Function],default:!1})],De.prototype,"marks",void 0),o([f({type:[Boolean,Function],default:!0})],De.prototype,"process",void 0),o([f(Boolean)],De.prototype,"included",void 0),o([f(Boolean)],De.prototype,"adsorb",void 0),o([f(Boolean)],De.prototype,"hideLabel",void 0),o([f()],De.prototype,"dotOptions",void 0),o([f()],De.prototype,"railStyle",void 0),o([f()],De.prototype,"processStyle",void 0),o([f()],De.prototype,"dotStyle",void 0),o([f()],De.prototype,"tooltipStyle",void 0),o([f()],De.prototype,"stepStyle",void 0),o([f()],De.prototype,"stepActiveStyle",void 0),o([f()],De.prototype,"labelStyle",void 0),o([f()],De.prototype,"labelActiveStyle",void 0),o([d("value")],De.prototype,"onValueChanged",null);var Pe=De=o([u()({data:function(){return{control:null}},components:{VueSliderDot:_,VueSliderMark:Q}})],De);Pe.VueSliderMark=Q,Pe.VueSliderDot=_;var Le=Pe;n.d(t,"ERROR_TYPE",(function(){return V})),n.d(t,"VueSliderMark",(function(){return Q})),n.d(t,"VueSliderDot",(function(){return _})),t.default=Le}}).default)},
/***/"499e":
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
/**
 * Translates the list format produced by css-loader into something
 * easier to manipulate.
 */
function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s={id:e+":"+i,css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}
// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
  Modified by Evan You @yyx990803
*/n.r(t),
// EXPORTS
n.d(t,"default",(function(){/* binding */return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");
/*
type StyleObject = {
  id: number;
  parts: Array<StyleObjectPart>
}

type StyleObjectPart = {
  css: string;
  media: string;
  sourceMap: ?string
}
*/var a={
/*
  [id: number]: {
    id: number,
    refs: number,
    parts: Array<(obj?: StyleObjectPart) => void>
  }
*/},o=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},h=null,f="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){l=n,h=i||{};var o=r(e,t);return g(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i];(c=a[s.id]).refs--,n.push(c)}t?g(o=r(e,t)):o=[];for(i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete a[c.id]}}}}function g(e/* Array<StyleObject> */){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(v(n.parts[i]));a[n.id]={id:n.id,refs:1,parts:o}}}}function m(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e/* StyleObjectPart */){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(l)
// has SSR styles and in production mode.
// simply do nothing.
return u;
// has SSR styles but in dev mode.
// for some reason Chrome can't handle source map in server-rendered
// style tags - source maps in <style> only works if the style tag is
// created and inserted dynamically. So we remove the server rendered
// styles and inject new ones.
r.parentNode.removeChild(r)}if(d){
// use singleton mode for IE9.
var i=c++;r=s||(s=m()),t=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else
// use multi-style-tag mode in all other cases
r=m(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r/* StyleObjectPart */){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y,A=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function b(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=A(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function w(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),h.ssrId&&e.setAttribute(f,t.id),i&&(
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
n+="\n/*# sourceURL="+i.sources[0]+" */",
// http://stackoverflow.com/a/26603875
n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}
/***/},
/***/"49f4":
/***/function(e,t,n){var r=n("6044");
/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */e.exports=function(){this.__data__=r?r(null):{},this.size=0}},
/***/"4d64":
/***/function(e,t,n){var r=n("fc6a"),i=n("50c4"),a=n("23cb"),o=function(e){return function(t,n,o){var s,c=r(t),l=i(c.length),u=a(o,l);
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if(e&&n!=n){for(;l>u;)
// eslint-disable-next-line no-self-compare
if((s=c[u++])!=s)return!0;
// Array#indexOf ignores holes, Array#includes - not
}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
includes:o(!0),
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
indexOf:o(!1)}},
/***/"4de4":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,a=n("1dde"),o=n("ae40"),s=a("filter"),c=o("filter");
// `Array.prototype.filter` method
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
// with adding support of @@species
r({target:"Array",proto:!0,forced:!s||!c},{filter:function(e/* , thisArg */){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},
/***/"4df4":
/***/function(e,t,n){"use strict";var r=n("0366"),i=n("7b0b"),a=n("9bdd"),o=n("e95a"),s=n("50c4"),c=n("8418"),l=n("35a1");
// `Array.from` method implementation
// https://tc39.github.io/ecma262/#sec-array.from
e.exports=function(e/* , mapfn = undefined, thisArg = undefined */){var t,n,u,h,f,d,p=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,A=l(p),b=0;
// if the target is not iterable or it's an array with the default iterator - use a simple case
if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),null==A||g==Array&&o(A))for(n=new g(t=s(p.length));t>b;b++)d=y?v(p[b],b):p[b],c(n,b,d);else for(f=(h=A.call(p)).next,n=new g;!(u=f.call(h)).done;b++)d=y?a(h,v,[u.value,b],!0):u.value,c(n,b,d);return n.length=b,n}},
/***/"50c4":
/***/function(e,t,n){var r=n("a691"),i=Math.min;
// `ToLength` abstract operation
// https://tc39.github.io/ecma262/#sec-tolength
e.exports=function(e){return e>0?i(r(e),9007199254740991):0;// 2 ** 53 - 1 == 9007199254740991
}},
/***/"50d8":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},
/***/5135:
/***/function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},
/***/"55a3":
/***/function(e,t){e.exports=
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e){return this.__data__.has(e)}},
/***/5692:
/***/function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},
/***/"56ef":
/***/function(e,t,n){var r=n("d066"),i=n("241c"),a=n("7418"),o=n("825a");
// all object keys, includes non-enumerable and symbols
e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},
/***/"57a5":
/***/function(e,t,n){var r=n("91e9")(Object.keys,Object);
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=r},
/***/"57dc":
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.gt` which doesn't coerce arguments.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if `value` is greater than `other`,
 *  else `false`.
 */
function(e,t){return e>t}},
/***/"585a":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){/** Detect free variable `global` from Node.js. */
var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))
/***/},
/***/5899:
/***/function(e,t){
// a string of all valid unicode whitespaces
// eslint-disable-next-line max-len
e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff";
/***/},
/***/"58a8":
/***/function(e,t,n){var r=n("1d80"),i="["+n("5899")+"]",a=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={
// `String.prototype.{ trimLeft, trimStart }` methods
// https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
start:s(1),
// `String.prototype.{ trimRight, trimEnd }` methods
// https://tc39.github.io/ecma262/#sec-string.prototype.trimend
end:s(2),
// `String.prototype.trim` method
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
trim:s(3)}},
/***/"5c6c":
/***/function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}};
/***/},
/***/"5e2e":
/***/function(e,t,n){var r=n("28c9"),i=n("69d5"),a=n("b4c0"),o=n("fba5"),s=n("67ca");
/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `ListCache`.
c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},
/***/6044:
/***/function(e,t,n){var r=n("0b07")(Object,"create");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"60da":
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),a=n("df75"),o=n("7418"),s=n("d1e7"),c=n("7b0b"),l=n("44ad"),u=Object.assign,h=Object.defineProperty;
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
e.exports=!u||i((function(){
// should have correct order of operations (Edge bug)
if(r&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;
// should work with symbols and should have deterministic property order (V8 bug)
var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||a(u({},t)).join("")!=i}))?function(e,t){for(// eslint-disable-line no-unused-vars
var n=c(e),i=arguments.length,u=1,h=o.f,f=s.f;i>u;)for(var d,p=l(arguments[u++]),g=h?a(p).concat(h(p)):a(p),m=g.length,v=0;m>v;)d=g[v++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:u},
/***/"62e4":
/***/function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],
// module.parent = undefined by default
e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e};
/***/},
/***/"642a":
/***/function(e,t,n){var r=n("966f"),i=n("3bb4"),a=n("20ec");
/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},
/***/6547:
/***/function(e,t,n){var r=n("a691"),i=n("1d80"),a=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}};e.exports={
// `String.prototype.codePointAt` method
// https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
codeAt:a(!1),
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt:a(!0)}},
/***/"656b":
/***/function(e,t,n){var r=n("e2e4"),i=n("f4d6");
/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},
/***/"65f0":
/***/function(e,t,n){var r=n("861d"),i=n("e8b5"),a=n("b622")("species");
// `ArraySpeciesCreate` abstract operation
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
e.exports=function(e,t){var n;return i(e)&&(
// cross-realm fallback
"function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},
/***/6747:
/***/function(e,t){
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var n=Array.isArray;e.exports=n},
/***/"67ca":
/***/function(e,t,n){var r=n("cb5a");
/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},
/***/"69d5":
/***/function(e,t,n){var r=n("cb5a"),i=Array.prototype.splice;
/** Used for built-in method references. */e.exports=
/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},
/***/"69f3":
/***/function(e,t,n){var r,i,a,o=n("7f9a"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("5135"),h=n("f772"),f=n("d012"),d=s.WeakMap;if(o){var p=new d,g=p.get,m=p.has,v=p.set;r=function(e,t){return v.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},a=function(e){return m.call(p,e)}}else{var y=h("state");f[y]=!0,r=function(e,t){return l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},
/***/"6bd8":
/***/function(e,t,n){var r=n("badf"),i=n("ecf6");
/**
 * This method is like `_.sum` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the value to be summed.
 * The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {number} Returns the sum.
 * @example
 *
 * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
 *
 * _.sumBy(objects, function(o) { return o.n; });
 * // => 20
 *
 * // The `_.property` iteratee shorthand.
 * _.sumBy(objects, 'n');
 * // => 20
 */e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},
/***/"6eeb":
/***/function(e,t,n){var r=n("da84"),i=n("9112"),a=n("5135"),o=n("ce4e"),s=n("8925"),c=n("69f3"),l=c.get,u=c.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),u(n).source=h.join("string"==typeof t?t:"")),e!==r?(c?!f&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},
/***/"6fcd":
/***/function(e,t,n){var r=n("50d8"),i=n("d370"),a=n("6747"),o=n("0d24"),s=n("c098"),c=n("73ac"),l=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function(e,t){var n=a(e),u=!n&&i(e),h=!n&&!u&&o(e),f=!n&&!u&&!h&&c(e),d=n||u||h||f,p=d?r(e.length,String):[],g=p.length;for(var m in e)!t&&!l.call(e,m)||d&&(
// Safari 9 has enumerable `arguments.length` in strict mode.
"length"==m||
// Node.js 0.10 has enumerable non-index properties on buffers.
h&&("offset"==m||"parent"==m)||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||
// Skip index properties.
s(m,g))||p.push(m);return p}},
/***/7156:
/***/function(e,t,n){var r=n("861d"),i=n("d2bb");
// makes subclassing work correct for wrapped built-ins
e.exports=function(e,t,n){var a,o;
// it can work only with native `setPrototypeOf`
return i&&
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
"function"==typeof(a=t.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}},
/***/"72af":
/***/function(e,t,n){var r=n("99cd")();
/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */e.exports=r},
/***/"73ac":
/***/function(e,t,n){var r=n("743f"),i=n("b047"),a=n("99d3"),o=a&&a.isTypedArray,s=o?i(o):r;
/* Node.js helper references. */e.exports=s},
/***/7418:
/***/function(e,t){t.f=Object.getOwnPropertySymbols;
/***/},
/***/"743f":
/***/function(e,t,n){var r=n("3729"),i=n("b218"),a=n("1310"),o={};
/** `Object#toString` result references. */o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=
/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},
/***/"746f":
/***/function(e,t,n){var r=n("428f"),i=n("5135"),a=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},
/***/"74b6":
/***/function(e,t,n){
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var r=n("0004");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);
// add the styles to the DOM
(0,n("499e").default)("20c476cc",r,!0,{sourceMap:!1,shadowMode:!1})},
/***/"76dd":
/***/function(e,t,n){var r=n("ce86");
/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */e.exports=function(e){return null==e?"":r(e)}},
/***/"76e9":
/***/function(e,t,n){var r=n("ffd6");
/**
 * The base implementation of methods like `_.max` and `_.min` which accepts a
 * `comparator` to determine the extremum value.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The iteratee invoked per iteration.
 * @param {Function} comparator The comparator used to compare values.
 * @returns {*} Returns the extremum value.
 */e.exports=function(e,t,n){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(void 0===c?s==s&&!r(s):n(s,c)))var c=s,l=o}return l}},
/***/7839:
/***/function(e,t){
// IE8- don't enum bug keys
e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
/***/},
/***/7948:
/***/function(e,t){e.exports=
/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},
/***/"79bc":
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"Map");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/"7a48":
/***/function(e,t,n){var r=n("6044"),i=Object.prototype.hasOwnProperty;
/** Used for built-in method references. */e.exports=
/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},
/***/"7b0b":
/***/function(e,t,n){var r=n("1d80");
// `ToObject` abstract operation
// https://tc39.github.io/ecma262/#sec-toobject
e.exports=function(e){return Object(r(e))}},
/***/"7b83":
/***/function(e,t,n){var r=n("7c64"),i=n("93ed"),a=n("2478"),o=n("a524"),s=n("1fc8");
/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `MapCache`.
c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},
/***/"7b97":
/***/function(e,t,n){var r=n("7e64"),i=n("a2be"),a=n("1c3c"),o=n("b1e5"),s=n("42a2"),c=n("6747"),l=n("0d24"),u=n("73ac"),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,g,m,v){var y=c(e),A=c(t),b=y?f:s(e),w=A?f:s(t),x=(b=b==h?d:b)==d,C=(w=w==h?d:w)==d,_=b==w;if(_&&l(e)){if(!l(t))return!1;y=!0,x=!1}if(_&&!x)return v||(v=new r),y||u(e)?i(e,t,n,g,m,v):a(e,t,b,n,g,m,v);if(!(1&n)){var I=x&&p.call(e,"__wrapped__"),E=C&&p.call(t,"__wrapped__");if(I||E){var k=I?e.value():e,S=E?t.value():t;return v||(v=new r),m(k,S,n,g,v)}}return!!_&&(v||(v=new r),o(e,t,n,g,m,v))}},
/***/"7c64":
/***/function(e,t,n){var r=n("e24b"),i=n("5e2e"),a=n("79bc");
/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},
/***/"7c73":
/***/function(e,t,n){var r,i=n("825a"),a=n("37e8"),o=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),h="prototype",f="script",d=u("IE_PROTO"),p=function(){/* empty */},g=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(){try{
/* global ActiveXObject */
r=document.domain&&new ActiveXObject("htmlfile")}catch(e){/* ignore */}var e,t,n;m=r?function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;// avoid memory leak
return e=null,t}(r):(t=l("iframe"),n="java"+f+":",t.style.display="none",c.appendChild(t),
// https://github.com/zloirock/core-js/issues/475
t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var i=o.length;i--;)delete m[h][o[i]];return m()};s[d]=!0,
// `Object.create` method
// https://tc39.github.io/ecma262/#sec-object.create
e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=i(e),n=new p,p[h]=null,
// add "__proto__" for Object.getPrototypeOf polyfill
n[d]=e):n=m(),void 0===t?n:a(n,t)}},
/***/"7d1f":
/***/function(e,t,n){var r=n("087d"),i=n("6747");
/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},
/***/"7dd0":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("9ed3"),a=n("e163"),o=n("d2bb"),s=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),h=n("c430"),f=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",A="entries",b=function(){return this};e.exports=function(e,t,n,u,d,w,x){i(n,t,u);var C,_,I,E=function(e){if(e===d&&T)return T;if(!g&&e in B)return B[e];switch(e){case v:case y:case A:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",S=!1,B=e.prototype,M=B[m]||B["@@iterator"]||d&&B[d],T=!g&&M||E(d),O="Array"==t&&B.entries||M;
// export additional methods
if(
// fix native
O&&(C=a(O.call(new e)),p!==Object.prototype&&C.next&&(h||a(C)===p||(o?o(C,p):"function"!=typeof C[m]&&c(C,m,b)),
// Set @@toStringTag to native iterators
s(C,k,!0,!0),h&&(f[k]=b))),
// fix Array#{values, @@iterator}.name in V8 / FF
d==y&&M&&M.name!==y&&(S=!0,T=function(){return M.call(this)}),
// define iterator
h&&!x||B[m]===T||c(B,m,T),f[t]=T,d)if(_={values:E(y),keys:w?T:E(v),entries:E(A)},x)for(I in _)(g||S||!(I in B))&&l(B,I,_[I]);else r({target:t,proto:!0,forced:g||S},_);return _}},
/***/"7e64":
/***/function(e,t,n){var r=n("5e2e"),i=n("efb6"),a=n("2fcc"),o=n("802a"),s=n("55a3"),c=n("d02c");
/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function l(e){var t=this.__data__=new r(e);this.size=t.size}
// Add methods to `Stack`.
l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},
/***/"7ed2":
/***/function(e,t){e.exports=
/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},
/***/"7f9a":
/***/function(e,t,n){var r=n("da84"),i=n("8925"),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},
/***/"802a":
/***/function(e,t){e.exports=
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function(e){return this.__data__.get(e)}},
/***/"825a":
/***/function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},
/***/"83ab":
/***/function(e,t,n){var r=n("d039");
// Thank's IE8 for his funny defineProperty
e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},
/***/8418:
/***/function(e,t,n){"use strict";var r=n("c04e"),i=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},
/***/8604:
/***/function(e,t,n){var r=n("26e8"),i=n("e2c0");
/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */e.exports=function(e,t){return null!=e&&i(e,t,r)}},
/***/"861d":
/***/function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e};
/***/},
/***/8875:
/***/function(e,t,n){var r,i,a;// addapted from the document.currentScript polyfill by Adam Miller
// MIT license
// source: https://github.com/amiller-gh/currentScript-polyfill
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
"undefined"!=typeof self&&self,i=[],void 0===(a="function"==typeof(r=function(){function e(){if(document.currentScript)return document.currentScript;
// IE 8-10 support script readyState
// IE 11+ & Firefox support stack trace
try{throw new Error}catch(u){
// Find the second match for the "at" string to get file src url from stack.
var e,t,n,r=/@([^@]*):(\d+):(\d+)\s*$/gi,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(u.stack)||r.exec(u.stack),a=i&&i[1]||!1,o=i&&i[2]||!1,s=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");// Live NodeList collection
a===s&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<c.length;l++){
// If ready state is interactive, return the script tag
if("interactive"===c[l].readyState)return c[l];
// If src matches, return the script tag
if(c[l].src===a)return c[l];
// If inline source matches, return the script tag
if(a===s&&c[l].innerHTML&&c[l].innerHTML.trim()===n)return c[l]}
// If no match, return null
return null}}return e})?r.apply(t,i):r)||(e.exports=a)},
/***/8925:
/***/function(e,t,n){var r=n("c6cd"),i=Function.toString;
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},
/***/"8bbf":
/***/function(e,t){e.exports=n("a026");
/***/},
/***/"90e3":
/***/function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},
/***/9112:
/***/function(e,t,n){var r=n("83ab"),i=n("9bf2"),a=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},
/***/9129:
/***/function(e,t,n){
// `Number.isNaN` method
// https://tc39.github.io/ecma262/#sec-number.isnan
n("23e7")({target:"Number",stat:!0},{isNaN:function(e){
// eslint-disable-next-line no-self-compare
return e!=e}})},
/***/"91e9":
/***/function(e,t){e.exports=
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function(e,t){return function(n){return e(t(n))}}},
/***/"93ed":
/***/function(e,t,n){var r=n("4245");
/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},
/***/"94ca":
/***/function(e,t,n){var r=n("d039"),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},
/***/"950a":
/***/function(e,t,n){var r=n("30c9");
/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},
/***/9520:
/***/function(e,t,n){var r=n("3729"),i=n("1a8c");
/** `Object#toString` result references. */e.exports=
/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function(e){if(!i(e))return!1;
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},
/***/9638:
/***/function(e,t){e.exports=
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function(e,t){return e===t||e!=e&&t!=t}},
/***/"966f":
/***/function(e,t,n){var r=n("7e64"),i=n("c05f");
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function(e,t,n,a){var o=n.length,s=o,c=!a;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var u=(l=n[o])[0],h=e[u],f=l[1];if(c&&l[2]){if(void 0===h&&!(u in e))return!1}else{var d=new r;if(a)var p=a(h,f,u,e,t,d);if(!(void 0===p?i(f,h,3,a,d):p))return!1}}return!0}},
/***/"97d3":
/***/function(e,t,n){var r=n("48a0"),i=n("30c9");
/**
 * The base implementation of `_.map` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}},
/***/"99af":
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),c=n("50c4"),l=n("8418"),u=n("65f0"),h=n("1dde"),f=n("b622"),d=n("2d00"),p=f("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=d>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=h("concat"),A=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)};
// `Array.prototype.concat` method
// https://tc39.github.io/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
r({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){// eslint-disable-line no-unused-vars
var t,n,r,i,a,o=s(this),h=u(o,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(A(a=-1===t?o:arguments[t])){if(f+(i=c(a.length))>g)throw TypeError(m);for(n=0;n<i;n++,f++)n in a&&l(h,f,a[n])}else{if(f>=g)throw TypeError(m);l(h,f++,a)}return h.length=f,h}})},
/***/"99cd":
/***/function(e,t){e.exports=
/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}},
/***/"99d3":
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){var r=n("585a"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{
// Use `util.types` for Node.js 10+.
var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util");
// Legacy `process.binding('util')` for Node.js < 10.
}catch(e){}}();
/** Detect free variable `exports`. */e.exports=s}).call(this,n("62e4")(e))
/***/},
/***/"9b02":
/***/function(e,t,n){var r=n("656b");
/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},
/***/"9bdd":
/***/function(e,t,n){var r=n("825a");
// call something on iterator step with safe closing on error
e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n);
// 7.4.6 IteratorClose(iterator, completion)
}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},
/***/"9bf2":
/***/function(e,t,n){var r=n("83ab"),i=n("0cfb"),a=n("825a"),o=n("c04e"),s=Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.github.io/ecma262/#sec-object.defineproperty
t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){/* empty */}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},
/***/"9e69":
/***/function(e,t,n){var r=n("2b3e").Symbol;
/** Built-in value references. */e.exports=r},
/***/"9ed3":
/***/function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),a=n("5c6c"),o=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}},
/***/a2be:
/***/function(e,t,n){var r=n("d612"),i=n("4284"),a=n("c584");
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function(e,t,n,o,s,c){var l=1&n,u=e.length,h=t.length;if(u!=h&&!(l&&h>u))return!1;
// Assume cyclic values are equal.
var f=c.get(e);if(f&&c.get(t))return f==t;var d=-1,p=!0,g=2&n?new r:void 0;
// Ignore non-index properties.
for(c.set(e,t),c.set(t,e);++d<u;){var m=e[d],v=t[d];if(o)var y=l?o(v,m,d,t,e,c):o(m,v,d,e,t,c);if(void 0!==y){if(y)continue;p=!1;break}
// Recursively compare arrays (susceptible to call stack limits).
if(g){if(!i(t,(function(e,t){if(!a(g,t)&&(m===e||s(m,e,n,o,c)))return g.push(t)}))){p=!1;break}}else if(m!==v&&!s(m,v,n,o,c)){p=!1;break}}return c.delete(e),c.delete(t),p}},
/***/a434:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("23cb"),a=n("a691"),o=n("50c4"),s=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),h=n("ae40"),f=u("splice"),d=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min;
// `Array.prototype.splice` method
// https://tc39.github.io/ecma262/#sec-array.prototype.splice
// with adding support of @@species
r({target:"Array",proto:!0,forced:!f||!d},{splice:function(e,t/* , ...items */){var n,r,u,h,f,d,m=s(this),v=o(m.length),y=i(e,v),A=arguments.length;if(0===A?n=r=0:1===A?(n=0,r=v-y):(n=A-2,r=g(p(a(t),0),v-y)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=c(m,r),h=0;h<r;h++)(f=y+h)in m&&l(u,h,m[f]);if(u.length=r,n<r){for(h=y;h<v-r;h++)d=h+n,(f=h+r)in m?m[d]=m[f]:delete m[d];for(h=v;h>v-r+n;h--)delete m[h-1]}else if(n>r)for(h=v-r;h>y;h--)d=h+n-1,(f=h+r-1)in m?m[d]=m[f]:delete m[d];for(h=0;h<n;h++)m[h+y]=arguments[h+2];return m.length=v-r+n,u}})},
/***/a4d3:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d066"),o=n("c430"),s=n("83ab"),c=n("4930"),l=n("fdbf"),u=n("d039"),h=n("5135"),f=n("e8b5"),d=n("861d"),p=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),y=n("5c6c"),A=n("7c73"),b=n("df75"),w=n("241c"),x=n("057f"),C=n("7418"),_=n("06cf"),I=n("9bf2"),E=n("d1e7"),k=n("9112"),S=n("6eeb"),B=n("5692"),M=n("f772"),T=n("d012"),O=n("90e3"),D=n("b622"),P=n("e538"),L=n("746f"),Q=n("d44e"),R=n("69f3"),j=n("b727").forEach,N=M("hidden"),F="Symbol",z="prototype",H=D("toPrimitive"),U=R.set,G=R.getterFor(F),V=Object[z],W=i.Symbol,q=a("JSON","stringify"),Y=_.f,K=I.f,$=x.f,J=E.f,X=B("symbols"),Z=B("op-symbols"),ee=B("string-to-symbol-registry"),te=B("symbol-to-string-registry"),ne=B("wks"),re=i.QObject,ie=!re||!re[z]||!re[z].findChild,ae=s&&u((function(){return 7!=A(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(V,t);r&&delete V[t],K(e,t,n),r&&e!==V&&K(V,t,r)}:K,oe=function(e,t){var n=X[e]=A(W[z]);return U(n,{type:F,tag:e,description:t}),s||(n.description=t),n},se=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ce=function(e,t,n){e===V&&ce(Z,t,n),p(e);var r=v(t,!0);return p(n),h(X,r)?(n.enumerable?(h(e,N)&&e[N][r]&&(e[N][r]=!1),n=A(n,{enumerable:y(0,!1)})):(h(e,N)||K(e,N,y(1,{})),e[N][r]=!0),ae(e,r,n)):K(e,r,n)},le=function(e,t){p(e);var n=m(t),r=b(n).concat(de(n));return j(r,(function(t){s&&!ue.call(n,t)||ce(e,t,n[t])})),e},ue=function(e){var t=v(e,!0),n=J.call(this,t);return!(this===V&&h(X,t)&&!h(Z,t))&&(!(n||!h(this,t)||!h(X,t)||h(this,N)&&this[N][t])||n)},he=function(e,t){var n=m(e),r=v(t,!0);if(n!==V||!h(X,r)||h(Z,r)){var i=Y(n,r);return!i||!h(X,r)||h(n,N)&&n[N][r]||(i.enumerable=!0),i}},fe=function(e){var t=$(m(e)),n=[];return j(t,(function(e){h(X,e)||h(T,e)||n.push(e)})),n},de=function(e){var t=e===V,n=$(t?Z:m(e)),r=[];return j(n,(function(e){!h(X,e)||t&&!h(V,e)||r.push(X[e])})),r};
// `JSON.stringify` method behavior with symbols
// https://tc39.github.io/ecma262/#sec-json.stringify
(
// `Symbol` constructor
// https://tc39.github.io/ecma262/#sec-symbol-constructor
c||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),n=function(e){this===V&&n.call(Z,e),h(this,N)&&h(this[N],t)&&(this[N][t]=!1),ae(this,t,y(1,e))};return s&&ie&&ae(V,t,{configurable:!0,set:n}),oe(t,e)},S(W[z],"toString",(function(){return G(this).tag})),S(W,"withoutSetter",(function(e){return oe(O(e),e)})),E.f=ue,I.f=ce,_.f=he,w.f=x.f=fe,C.f=de,P.f=function(e){return oe(D(e),e)},s&&(
// https://github.com/tc39/proposal-Symbol-description
K(W[z],"description",{configurable:!0,get:function(){return G(this).description}}),o||S(V,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),j(b(ne),(function(e){L(e)})),r({target:F,stat:!0,forced:!c},{
// `Symbol.for` method
// https://tc39.github.io/ecma262/#sec-symbol.for
for:function(e){var t=String(e);if(h(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},
// `Symbol.keyFor` method
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{
// `Object.create` method
// https://tc39.github.io/ecma262/#sec-object.create
create:function(e,t){return void 0===t?A(e):le(A(e),t)},
// `Object.defineProperty` method
// https://tc39.github.io/ecma262/#sec-object.defineproperty
defineProperty:ce,
// `Object.defineProperties` method
// https://tc39.github.io/ecma262/#sec-object.defineproperties
defineProperties:le,
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
getOwnPropertyDescriptor:he}),r({target:"Object",stat:!0,forced:!c},{
// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
getOwnPropertyNames:fe,
// `Object.getOwnPropertySymbols` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
getOwnPropertySymbols:de}),
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
r({target:"Object",stat:!0,forced:u((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(g(e))}}),q)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var e=W();
// MS Edge converts symbol values to JSON as {}
return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{
// eslint-disable-next-line no-unused-vars
stringify:function(e,t,n){for(var r,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);if(r=t,(d(t)||void 0!==e)&&!se(e))// IE8 returns string on undefined
return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,q.apply(null,i)}});
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
W[z][H]||k(W[z],H,W[z].valueOf),
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
Q(W,F),T[N]=!0},
/***/a524:
/***/function(e,t,n){var r=n("4245");
/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */e.exports=function(e){return r(this,e).has(e)}},
/***/a630:
/***/function(e,t,n){var r=n("23e7"),i=n("4df4");
// `Array.from` method
// https://tc39.github.io/ecma262/#sec-array.from
r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:i})},
/***/a640:
/***/function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){
// eslint-disable-next-line no-useless-call,no-throw-literal
n.call(null,t||function(){throw 1},1)}))}},
/***/a691:
/***/function(e,t){var n=Math.ceil,r=Math.floor;
// `ToInteger` abstract operation
// https://tc39.github.io/ecma262/#sec-tointeger
e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},
/***/a994:
/***/function(e,t,n){var r=n("7d1f"),i=n("32f4"),a=n("ec69");
/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */e.exports=function(e){return r(e,a,i)}},
/***/a9e3:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("5135"),c=n("c6b6"),l=n("7156"),u=n("c04e"),h=n("d039"),f=n("7c73"),d=n("241c").f,p=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",y=i[v],A=y.prototype,b=c(f(A))==v,w=function(e){var t,n,r,i,a,o,s,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=m(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN;// Number('+0x1') should be NaN, old V8 fix
}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;// fast equal of /^0b[01]+$/i
case 79:case 111:r=8,i=55;break;// fast equal of /^0o[0-7]+$/i
default:return+l}for(o=(a=l.slice(2)).length,s=0;s<o;s++)
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if((c=a.charCodeAt(s))<48||c>i)return NaN;return parseInt(a,r)}return+l};
// `Number` constructor
// https://tc39.github.io/ecma262/#sec-number-constructor
if(a(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(b?h((function(){A.valueOf.call(n)})):c(n)!=v)?l(new y(w(t)),n,C):w(t)},_=r?d(y):
// ES3:
"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),I=0;_.length>I;I++)s(y,x=_[I])&&!s(C,x)&&g(C,x,p(y,x));C.prototype=A,A.constructor=C,o(i,v,C)}
/***/},
/***/abdd:
/***/function(e,t,n){var r=n("76e9"),i=n("57dc"),a=n("cd9d");
/**
 * Computes the maximum value of `array`. If `array` is empty or falsey,
 * `undefined` is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {*} Returns the maximum value.
 * @example
 *
 * _.max([4, 2, 8, 6]);
 * // => 8
 *
 * _.max([]);
 * // => undefined
 */e.exports=function(e){return e&&e.length?r(e,a,i):void 0}},
/***/ac41:
/***/function(e,t){e.exports=
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},
/***/ad6d:
/***/function(e,t,n){"use strict";var r=n("825a");
// `RegExp.prototype.flags` getter implementation
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},
/***/ae40:
/***/function(e,t,n){var r=n("83ab"),i=n("d039"),a=n("5135"),o=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],l=!!a(t,"ACCESSORS")&&t.ACCESSORS,u=a(t,0)?t[0]:c,h=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(l&&!r)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,h)}))}},
/***/ae93:
/***/function(e,t,n){"use strict";var r,i,a,o=n("e163"),s=n("9112"),c=n("5135"),l=n("b622"),u=n("c430"),h=l("iterator"),f=!1;[].keys&&(
// Safari 8 has buggy iterators w/o `next`
"next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
u||c(r,h)||s(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},
/***/b041:
/***/function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");
// `Object.prototype.toString` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},
/***/b047:
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function(e){return function(t){return e(t)}}},
/***/b0c0:
/***/function(e,t,n){var r=n("83ab"),i=n("9bf2").f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c="name";
// Function instances `.name` property
// https://tc39.github.io/ecma262/#sec-function-instances-name
r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})
/***/},
/***/b1e5:
/***/function(e,t,n){var r=n("a994"),i=Object.prototype.hasOwnProperty;
/** Used to compose bitmasks for value comparisons. */e.exports=
/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function(e,t,n,a,o,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var h=u;h--;){var f=l[h];if(!(c?f in t:i.call(t,f)))return!1}
// Assume cyclic values are equal.
var d=s.get(e);if(d&&s.get(t))return d==t;var p=!0;s.set(e,t),s.set(t,e);for(var g=c;++h<u;){var m=e[f=l[h]],v=t[f];if(a)var y=c?a(v,m,f,t,e,s):a(m,v,f,e,t,s);
// Recursively compare objects (susceptible to call stack limits).
if(!(void 0===y?m===v||o(m,v,n,a,s):y)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var A=e.constructor,b=t.constructor;
// Non `Object` object instances with different constructors are not equal.
A==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return s.delete(e),s.delete(t),p}},
/***/b218:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},
/***/b4c0:
/***/function(e,t,n){var r=n("cb5a");
/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},
/***/b5a7:
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"DataView");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/b622:
/***/function(e,t,n){var r=n("da84"),i=n("5692"),a=n("5135"),o=n("90e3"),s=n("4930"),c=n("fdbf"),l=i("wks"),u=r.Symbol,h=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=h("Symbol."+e)),l[e]}},
/***/b727:
/***/function(e,t,n){var r=n("0366"),i=n("44ad"),a=n("7b0b"),o=n("50c4"),s=n("65f0"),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,h=6==e,f=5==e||h;return function(d,p,g,m){for(var v,y,A=a(d),b=i(A),w=r(p,g,3),x=o(b.length),C=0,_=m||s,I=t?_(d,x):n?_(d,0):void 0;x>C;C++)if((f||C in b)&&(y=w(v=b[C],C,A),e))if(t)I[C]=y;// map
else if(y)switch(e){case 3:return!0;// some
case 5:return v;// find
case 6:return C;// findIndex
case 2:c.call(I,v);// filter
}else if(u)return!1;// every
return h?-1:l||u?u:I}};e.exports={
// `Array.prototype.forEach` method
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
forEach:l(0),
// `Array.prototype.map` method
// https://tc39.github.io/ecma262/#sec-array.prototype.map
map:l(1),
// `Array.prototype.filter` method
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
filter:l(2),
// `Array.prototype.some` method
// https://tc39.github.io/ecma262/#sec-array.prototype.some
some:l(3),
// `Array.prototype.every` method
// https://tc39.github.io/ecma262/#sec-array.prototype.every
every:l(4),
// `Array.prototype.find` method
// https://tc39.github.io/ecma262/#sec-array.prototype.find
find:l(5),
// `Array.prototype.findIndex` method
// https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
findIndex:l(6)}},
/***/badf:
/***/function(e,t,n){var r=n("642a"),i=n("1838"),a=n("cd9d"),o=n("6747"),s=n("f9ce");
/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */e.exports=function(e){
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},
/***/bbc0:
/***/function(e,t,n){var r=n("6044"),i=Object.prototype.hasOwnProperty;
/** Used to stand-in for `undefined` hash values. */e.exports=
/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},
/***/c04e:
/***/function(e,t,n){var r=n("861d");
// `ToPrimitive` abstract operation
// https://tc39.github.io/ecma262/#sec-toprimitive
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},
/***/c05f:
/***/function(e,t,n){var r=n("7b97"),i=n("1310");
/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},
/***/c098:
/***/function(e,t){
/** Used as references for various `Number` constants. */
var n=/^(?:0|[1-9]\d*)$/;
/** Used to detect unsigned integer values. */e.exports=
/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},
/***/c430:
/***/function(e,t){e.exports=!1;
/***/},
/***/c584:
/***/function(e,t){e.exports=
/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e,t){return e.has(t)}},
/***/c6b6:
/***/function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},
/***/c6cd:
/***/function(e,t,n){var r=n("da84"),i=n("ce4e"),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},
/***/c740:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,a=n("44d2"),o=n("ae40"),s="findIndex",c=!0,l=o(s);
// Shouldn't skip holes
s in[]&&Array(1)[s]((function(){c=!1})),
// `Array.prototype.findIndex` method
// https://tc39.github.io/ecma262/#sec-array.prototype.findindex
r({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e/* , that = undefined */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
a(s)},
/***/c869:
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"Set");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/c8ba:
/***/function(e,t){var n;
// This works in non-strict mode
n=function(){return this}();try{
// This works if eval is allowed (see CSP)
n=n||new Function("return this")()}catch(e){
// This works if the window reference is available
"object"==typeof window&&(n=window)}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
e.exports=n},
/***/c975:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").indexOf,a=n("a640"),o=n("ae40"),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=a("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
r({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(e/* , fromIndex = 0 */){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},
/***/ca84:
/***/function(e,t,n){var r=n("5135"),i=n("fc6a"),a=n("4d64").indexOf,o=n("d012");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(o,n)&&r(s,n)&&l.push(n);
// Don't enum bug & hidden keys
for(;t.length>c;)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},
/***/caad:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,a=n("44d2");
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
r({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e/* , fromIndex = 0 */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
a("includes")},
/***/cb5a:
/***/function(e,t,n){var r=n("9638");
/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},
/***/cc0f:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("74b6");
/* harmony import */n.n(r).a},
/***/cc12:
/***/function(e,t,n){var r=n("da84"),i=n("861d"),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},
/***/cca6:
/***/function(e,t,n){var r=n("23e7"),i=n("60da");
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},
/***/cd9d:
/***/function(e,t){e.exports=
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function(e){return e}},
/***/ce4e:
/***/function(e,t,n){var r=n("da84"),i=n("9112");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},
/***/ce86:
/***/function(e,t,n){var r=n("9e69"),i=n("7948"),a=n("6747"),o=n("ffd6"),s=r?r.prototype:void 0,c=s?s.toString:void 0;
/** Used as references for various `Number` constants. */e.exports=
/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function e(t){
// Exit early for strings to avoid a performance hit in some environments.
if("string"==typeof t)return t;if(a(t))
// Recursively convert values (susceptible to call stack limits).
return i(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},
/***/d012:
/***/function(e,t){e.exports={};
/***/},
/***/d02c:
/***/function(e,t,n){var r=n("5e2e"),i=n("79bc"),a=n("7b83");
/** Used as the size to enable large array optimizations. */e.exports=
/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},
/***/d039:
/***/function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}};
/***/},
/***/d066:
/***/function(e,t,n){var r=n("428f"),i=n("da84"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},
/***/d1e7:
/***/function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},
/***/d28b:
/***/function(e,t,n){
// `Symbol.iterator` well-known symbol
// https://tc39.github.io/ecma262/#sec-symbol.iterator
n("746f")("iterator")},
/***/d2bb:
/***/function(e,t,n){var r=n("825a"),i=n("3bbe");
// `Object.setPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){/* empty */}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},
/***/d327:
/***/function(e,t){e.exports=
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function(){return[]}},
/***/d370:
/***/function(e,t,n){var r=n("253c"),i=n("1310"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};
/** Used for built-in method references. */e.exports=c},
/***/d3b7:
/***/function(e,t,n){var r=n("00ee"),i=n("6eeb"),a=n("b041");
// `Object.prototype.toString` method
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
r||i(Object.prototype,"toString",a,{unsafe:!0})
/***/},
/***/d44e:
/***/function(e,t,n){var r=n("9bf2").f,i=n("5135"),a=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},
/***/d58f:
/***/function(e,t,n){var r=n("1c0b"),i=n("7b0b"),a=n("44ad"),o=n("50c4"),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),h=o(l.length),f=e?h-1:0,d=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=d;break}if(f+=d,e?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=d)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={
// `Array.prototype.reduce` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
left:s(!1),
// `Array.prototype.reduceRight` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
right:s(!0)}},
/***/d612:
/***/function(e,t,n){var r=n("7b83"),i=n("7ed2"),a=n("dc0f");
/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}
// Add methods to `SetCache`.
o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},
/***/d81d:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,a=n("1dde"),o=n("ae40"),s=a("map"),c=o("map");
// `Array.prototype.map` method
// https://tc39.github.io/ecma262/#sec-array.prototype.map
// with adding support of @@species
r({target:"Array",proto:!0,forced:!s||!c},{map:function(e/* , thisArg */){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},
/***/da03:
/***/function(e,t,n){var r=n("2b3e")["__core-js_shared__"];
/** Used to detect overreaching core-js shims. */e.exports=r},
/***/da84:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){var n=function(e){return e&&e.Math==Math&&e};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
e.exports=
// eslint-disable-next-line no-undef
n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||
// eslint-disable-next-line no-new-func
Function("return this")()}).call(this,n("c8ba"))
/***/},
/***/dc0f:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function(e){return this.__data__.has(e)}},
/***/dc57:
/***/function(e,t){
/** Used for built-in method references. */
var n=Function.prototype.toString;
/** Used to resolve the decompiled source of functions. */e.exports=
/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},
/***/dd61:
/***/function(e,t,n){var r=n("7948"),i=n("badf"),a=n("97d3"),o=n("6747");
/**
 * Creates an array of values by running each element in `collection` thru
 * `iteratee`. The iteratee is invoked with three arguments:
 * (value, index|key, collection).
 *
 * Many lodash methods are guarded to work as iteratees for methods like
 * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
 *
 * The guarded methods are:
 * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
 * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
 * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * _.map([4, 8], square);
 * // => [16, 64]
 *
 * _.map({ 'a': 4, 'b': 8 }, square);
 * // => [16, 64] (iteration order is not guaranteed)
 *
 * var users = [
 *   { 'user': 'barney' },
 *   { 'user': 'fred' }
 * ];
 *
 * // The `_.property` iteratee shorthand.
 * _.map(users, 'user');
 * // => ['barney', 'fred']
 */e.exports=function(e,t){return(o(e)?r:a)(e,i(t,3))}},
/***/ddb0:
/***/function(e,t,n){var r=n("da84"),i=n("fdbc"),a=n("e260"),o=n("9112"),s=n("b622"),c=s("iterator"),l=s("toStringTag"),u=a.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){
// some Chrome versions have non-configurable methods on DOMTokenList
if(d[c]!==u)try{o(d,c,u)}catch(e){d[c]=u}if(d[l]||o(d,l,h),i[h])for(var p in a)
// some Chrome versions have non-configurable methods on DOMTokenList
if(d[p]!==a[p])try{o(d,p,a[p])}catch(e){d[p]=a[p]}}}
/***/},
/***/df75:
/***/function(e,t,n){var r=n("ca84"),i=n("7839");
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
e.exports=Object.keys||function(e){return r(e,i)}},
/***/e01a:
/***/function(e,t,n){"use strict";
// `Symbol.prototype.description` getter
// https://tc39.github.io/ecma262/#sec-symbol.prototype.description
var r=n("23e7"),i=n("83ab"),a=n("da84"),o=n("5135"),s=n("861d"),c=n("9bf2").f,l=n("e893"),u=a.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||
// Safari 12 bug
void 0!==u().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};
// wrap Symbol constructor for correct work with undefined description
l(f,u);var d=f.prototype=u.prototype;d.constructor=f;var p=d.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(h,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}
/***/},
/***/e163:
/***/function(e,t,n){var r=n("5135"),i=n("7b0b"),a=n("f772"),o=n("e177"),s=a("IE_PROTO"),c=Object.prototype;
// `Object.getPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},
/***/e177:
/***/function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){/* empty */}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},
/***/e24b:
/***/function(e,t,n){var r=n("49f4"),i=n("1efc"),a=n("bbc0"),o=n("7a48"),s=n("2524");
/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `Hash`.
c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},
/***/e260:
/***/function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),a=n("3f8c"),o=n("69f3"),s=n("7dd0"),c="Array Iterator",l=o.set,u=o.getterFor(c);
// `Array.prototype.entries` method
// https://tc39.github.io/ecma262/#sec-array.prototype.entries
// `Array.prototype.keys` method
// https://tc39.github.io/ecma262/#sec-array.prototype.keys
// `Array.prototype.values` method
// https://tc39.github.io/ecma262/#sec-array.prototype.values
// `Array.prototype[@@iterator]` method
// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
// `CreateArrayIterator` internal method
// https://tc39.github.io/ecma262/#sec-createarrayiterator
e.exports=s(Array,"Array",(function(e,t){l(this,{type:c,target:r(e),// target
index:0,// next index
kind:t});
// `%ArrayIteratorPrototype%.next` method
// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),
// argumentsList[@@iterator] is %ArrayProto_values%
// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject
// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject
a.Arguments=a.Array,
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
i("keys"),i("values"),i("entries")},
/***/e2c0:
/***/function(e,t,n){var r=n("e2e4"),i=n("d370"),a=n("6747"),o=n("c098"),s=n("b218"),c=n("f4d6");
/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,h=!1;++l<u;){var f=c(t[l]);if(!(h=null!=e&&n(e,f)))break;e=e[f]}return h||++l!=u?h:!!(u=null==e?0:e.length)&&s(u)&&o(f,u)&&(a(e)||i(e))}},
/***/e2e4:
/***/function(e,t,n){var r=n("6747"),i=n("f608"),a=n("18d8"),o=n("76dd");
/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},
/***/e380:
/***/function(e,t,n){var r=n("7b83");
/** Error message constants. */
/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}
// Expose `MapCache`.
i.Cache=r,e.exports=i},
/***/e3f8:
/***/function(e,t,n){var r=n("656b");
/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */e.exports=function(e){return function(t){return r(t,e)}}},
/***/e538:
/***/function(e,t,n){var r=n("b622");t.f=r},
/***/e893:
/***/function(e,t,n){var r=n("5135"),i=n("56ef"),a=n("06cf"),o=n("9bf2");e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},
/***/e8b5:
/***/function(e,t,n){var r=n("c6b6");
// `IsArray` abstract operation
// https://tc39.github.io/ecma262/#sec-isarray
e.exports=Array.isArray||function(e){return"Array"==r(e)}},
/***/e95a:
/***/function(e,t,n){var r=n("b622"),i=n("3f8c"),a=r("iterator"),o=Array.prototype;
// check on default Array iterator
e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},
/***/eac5:
/***/function(e,t){
/** Used for built-in method references. */
var n=Object.prototype;
/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},
/***/ec69:
/***/function(e,t,n){var r=n("6fcd"),i=n("03dd"),a=n("30c9");
/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */e.exports=function(e){return a(e)?r(e):i(e)}},
/***/ecf6:
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.sum` and `_.sumBy` without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {number} Returns the sum.
 */
function(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n}},
/***/edfa:
/***/function(e,t){e.exports=
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},
/***/ef5d:
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function(e){return function(t){return null==t?void 0:t[e]}}},
/***/efb6:
/***/function(e,t,n){var r=n("5e2e");
/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */e.exports=function(){this.__data__=new r,this.size=0}},
/***/f4d6:
/***/function(e,t,n){var r=n("ffd6");
/** Used as references for various `Number` constants. */e.exports=
/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},
/***/f5df:
/***/function(e,t,n){var r=n("00ee"),i=n("c6b6"),a=n("b622")("toStringTag"),o="Arguments"==i(function(){return arguments}());
// getting tag from ES6+ `Object.prototype.toString`
e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){/* empty */}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},
/***/f608:
/***/function(e,t,n){var r=n("6747"),i=n("ffd6"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;
/** Used to match property names within property paths. */e.exports=
/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},
/***/f772:
/***/function(e,t,n){var r=n("5692"),i=n("90e3"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},
/***/f9ce:
/***/function(e,t,n){var r=n("ef5d"),i=n("e3f8"),a=n("f608"),o=n("f4d6");
/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */e.exports=function(e){return a(e)?r(o(e)):i(e)}},
/***/fb15:
/***/function(e,t,n){"use strict";
// ESM COMPAT FLAG
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
// This file is imported into lib/wc client bundles.
if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,i=n("8875");r=i(),
// for backward compatibility, because previously we directly included the polyfill
"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}
// Indicate to webpack that this file can be concatenated
/* harmony default export */n("b0c0"),n("4160"),n("caad"),n("d81d"),n("fb6a"),n("a9e3"),n("9129"),n("cca6"),n("159b");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var o=n("6bd8"),s=n.n(o),c=n("abdd"),l=n.n(c),u=n("dd61"),h=n.n(u),f=n("4971"),d=n.n(f),p=(n("3e39"),{update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0}),g={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},m=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],v={CSS:{},springs:{}};
// Utils
function y(e,t,n){return Math.min(Math.max(e,t),n)}function A(e,t){return e.indexOf(t)>-1}function b(e,t){return e.apply(null,t)}var w={arr:function(e){return Array.isArray(e)},obj:function(e){return A(Object.prototype.toString.call(e),"Object")},pth:function(e){return w.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||w.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return w.hex(e)||w.rgb(e)||w.hsl(e)},key:function(e){return!p.hasOwnProperty(e)&&!g.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};
// Easings
function x(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}
// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js
function C(e,t){var n=x(e),r=y(w.und(n[0])?1:n[0],.1,100),i=y(w.und(n[1])?100:n[1],.1,100),a=y(w.und(n[2])?10:n[2],.1,100),o=y(w.und(n[3])?0:n[3],.1,100),s=Math.sqrt(i/r),c=a/(2*Math.sqrt(i*r)),l=c<1?s*Math.sqrt(1-c*c):0,u=c<1?(c*s-o)/l:-o+s;function h(e){var n=t?t*e/1e3:e;return n=c<1?Math.exp(-n*c*s)*(1*Math.cos(l*n)+u*Math.sin(l*n)):(1+u*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?h:function(){var t=v.springs[e];if(t)return t;for(var n=1/6,r=0,i=0;;)if(1===h(r+=n)){if(++i>=16)break}else i=0;var a=r*n*1e3;return v.springs[e]=a,a}}
// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function
function _(e){return void 0===e&&(e=10),function(t){return Math.ceil(y(t,1e-6,1)*e)*(1/e)}}
// BezierEasing https://github.com/gre/bezier-easing
var I,E,k=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function i(e,i,a){return((t(i,a)*e+n(i,a))*e+r(i))*e}function a(e,i,a){return 3*t(i,a)*e*e+2*n(i,a)*e+r(i)}return function(t,n,r,o){if(0<=t&&t<=1&&0<=r&&r<=1){var s=new Float32Array(11);if(t!==n||r!==o)for(var c=0;c<11;++c)s[c]=i(c*e,t,r);return function(e){return t===n&&r===o||0===e||1===e?e:i(l(e),n,o)}}function l(n){for(var o=0,c=1;10!==c&&s[c]<=n;++c)o+=e;--c;var l=o+(n-s[c])/(s[c+1]-s[c])*e,u=a(l,t,r);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var s=a(t,n,r);if(0===s)return t;t-=(i(t,n,r)-e)/s}return t}(n,l,t,r):0===u?l:function(e,t,n,r,a){var o,s,c=0;do{(o=i(s=t+(n-t)/2,r,a)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++c<10);return s}(n,o,o+e,t,r)}}}(),S=(I={linear:function(){return function(e){return e}}},E={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=y(e,1,10),r=y(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){E[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(E).forEach((function(e){var t=E[e];I["easeIn"+e]=t,I["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},I["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}}})),I);function B(e,t){if(w.fnc(e))return e;var n=e.split("(")[0],r=S[n],i=x(e);switch(n){case"spring":return C(e,t);case"cubicBezier":return b(k,i);case"steps":return b(_,i);default:return b(r,i)}}
// Strings
function M(e){try{return document.querySelectorAll(e)}catch(e){return}}
// Arrays
function T(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,i=[],a=0;a<n;a++)if(a in e){var o=e[a];t.call(r,o,a,e)&&i.push(o)}return i}function O(e){return e.reduce((function(e,t){return e.concat(w.arr(t)?O(t):t)}),[])}function D(e){return w.arr(e)?e:(w.str(e)&&(e=M(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function P(e,t){return e.some((function(e){return e===t}))}
// Objects
function L(e){var t={};for(var n in e)t[n]=e[n];return t}function Q(e,t){var n=L(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function R(e,t){var n=L(e);for(var r in t)n[r]=w.und(e[r])?t[r]:e[r];return n}
// Colors
function j(e){return w.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:w.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):w.hsl(e)?function(e){var t,n,r,i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),a=parseInt(i[1],10)/360,o=parseInt(i[2],10)/100,s=parseInt(i[3],10)/100,c=i[4]||1;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==o)t=n=r=s;else{var u=s<.5?s*(1+o):s+o-s*o,h=2*s-u;t=l(h,u,a+1/3),n=l(h,u,a),r=l(h,u,a-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+c+")"}(e):void 0;var t,n}
// Units
function N(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}
// Values
function F(e,t){return w.fnc(e)?e(t.target,t.id,t.total):e}function z(e,t){return e.getAttribute(t)}function H(e,t,n){if(P([n,"deg","rad","turn"],N(t)))return t;var r=v.CSS[t+n];if(!w.und(r))return r;var i=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(i),i.style.position="absolute",i.style.width=100+n;var o=100/i.offsetWidth;a.removeChild(i);var s=o*parseFloat(t);return v.CSS[t+n]=s,s}function U(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?H(e,i,n):i}}function G(e,t){return w.dom(e)&&!w.inp(e)&&(z(e,t)||w.svg(e)&&e[t])?"attribute":w.dom(e)&&P(m,t)?"transform":w.dom(e)&&"transform"!==t&&U(e,t)?"css":null!=e[t]?"object":void 0}function V(e){if(w.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;t=r.exec(n);)i.set(t[1],t[2]);return i}}function W(e,t,n,r){var i=A(t,"scale")?1:0+function(e){return A(e,"translate")||"perspective"===e?"px":A(e,"rotate")||A(e,"skew")?"deg":void 0}(t),a=V(e).get(t)||i;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?H(e,a,r):a}function q(e,t,n,r){switch(G(e,t)){case"transform":return W(e,t,r,n);case"css":return U(e,t,n);case"attribute":return z(e,t);default:return e[t]||0}}function Y(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=N(e)||0,i=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return i+a+r;case"-":return i-a+r;case"*":return i*a+r}}function K(e,t){if(w.col(e))return j(e);if(/\s/g.test(e))return e;var n=N(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}
// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes
// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744
function $(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function J(e){for(var t,n=e.points,r=0,i=0;i<n.numberOfItems;i++){var a=n.getItem(i);i>0&&(r+=$(t,a)),t=a}return r}
// Path animation
function X(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*z(e,"r")}(e);case"rect":return function(e){return 2*z(e,"width")+2*z(e,"height")}(e);case"line":return function(e){return $({x:z(e,"x1"),y:z(e,"y1")},{x:z(e,"x2"),y:z(e,"y2")})}(e);case"polyline":return J(e);case"polygon":return function(e){var t=e.points;return J(e)+$(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Z(e,t){var n=t||{},r=n.el||
// Motion path
function(e){for(var t=e.parentNode;w.svg(t)&&w.svg(t.parentNode);)t=t.parentNode;return t}(e),i=r.getBoundingClientRect(),a=z(r,"viewBox"),o=i.width,s=i.height,c=n.viewBox||(a?a.split(" "):[0,0,o,s]);return{el:r,viewBox:c,x:c[0]/1,y:c[1]/1,w:o/c[2],h:s/c[3]}}function ee(e,t){function n(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var r=Z(e.el,e.svg),i=n(),a=n(-1),o=n(1);switch(e.property){case"x":return(i.x-r.x)*r.w;case"y":return(i.y-r.y)*r.h;case"angle":return 180*Math.atan2(o.y-a.y,o.x-a.x)/Math.PI}}
// Decompose value
function te(e,t){
// const rgx = /-?\d*\.?\d+/g; // handles basic numbers
// const rgx = /[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g; // handles exponents notation
var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=K(w.pth(e)?e.totalLength:e,t)+"";// handles exponents notation
return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:w.str(e)||t?r.split(n):[]}}
// Animatables
function ne(e){return T(e?O(w.arr(e)?e.map(D):D(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function re(e){var t=ne(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:V(e)}}}))}
// Properties
function ie(e,t){var n=L(t);
// Override duration if easing is a spring
if(/^spring/.test(n.easing)&&(n.duration=C(n.easing)),w.arr(e)){var r=e.length;2===r&&!w.obj(e[0])?
// Transform [from, to] values shorthand to a valid tween value
e={value:e}:
// Duration divided by the number of tweens
w.fnc(t.duration)||(n.duration=t.duration/r)}var i=w.arr(e)?e:[e];return i.map((function(e,n){var r=w.obj(e)&&!w.pth(e)?e:{value:e};
// Default delay value should only be applied to the first tween
return w.und(r.delay)&&(r.delay=n?0:t.delay),
// Default endDelay value should only be applied to the last tween
w.und(r.endDelay)&&(r.endDelay=n===i.length-1?t.endDelay:0),r})).map((function(e){return R(e,n)}))}function ae(e,t){var n=[],r=t.keyframes;for(var i in r&&(t=R(function(e){for(var t=T(O(e.map((function(e){return Object.keys(e)}))),(function(e){return w.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var i=t[r];n[i]=e.map((function(e){var t={};for(var n in e)w.key(n)?n==i&&(t.value=e[n]):t[n]=e[n];return t}))},i=0;i<t.length;i++)r(i);return n}(r),t)),t)w.key(i)&&n.push({name:i,tweens:ie(t[i],e)});return n}
// Tweens
function oe(e,t){var n;return e.tweens.map((function(r){var i=function(e,t){var n={};for(var r in e){var i=F(e[r],t);w.arr(i)&&1===(i=i.map((function(e){return F(e,t)}))).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,t),a=i.value,o=w.arr(a)?a[1]:a,s=N(o),c=q(t.target,e.name,s,t),l=n?n.to.original:c,u=w.arr(a)?a[0]:l,h=N(u)||N(c),f=s||h;return w.und(o)&&(o=l),i.from=te(u,f),i.to=te(Y(o,u),f),i.start=n?n.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=B(i.easing,i.duration),i.isPath=w.pth(a),i.isColor=w.col(i.from.original),i.isColor&&(i.round=1),n=i,i}))}
// Tween progress
var se={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){if(r.list.set(t,n),t===r.last||i){var a="";r.list.forEach((function(e,t){a+=t+"("+e+") "})),e.style.transform=a}}};
// Set Value helper
function ce(e,t){re(e).forEach((function(e){for(var n in t){var r=F(t[n],e),i=e.target,a=N(r),o=q(i,n,a,e),s=Y(K(r,a||N(o)),o),c=G(i,n);se[c](i,n,s,e.transforms,!0)}}))}
// Animations
function le(e,t){return T(O(e.map((function(e){return t.map((function(t){return function(e,t){var n=G(e.target,t.name);if(n){var r=oe(t,e),i=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:i.end,delay:r[0].delay,endDelay:i.endDelay}}}(e,t)}))}))),(function(e){return!w.und(e)}))}
// Create Instance
function ue(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},i={};return i.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,i.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,i.endDelay=n?i.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,i}var he=0;
// Core
var fe,de=[],pe=[],ge=function(){function e(){fe=requestAnimationFrame(t)}function t(t){var n=de.length;if(n){for(var r=0;r<n;){var i=de[r];if(i.paused){var a=de.indexOf(i);a>-1&&(de.splice(a,1),n=de.length)}else i.tick(t);r++}e()}else fe=cancelAnimationFrame(fe)}return e}();
// Public Instance
function me(e){void 0===e&&(e={});var t,n=0,r=0,i=0,a=0,o=null;function s(e){var t=window.Promise&&new Promise((function(e){return o=e}));return e.finished=t,t}var c=function(e){var t=Q(p,e),n=Q(g,e),r=ae(n,e),i=re(e.targets),a=le(i,r),o=ue(a,n),s=he;return he++,R(t,{id:s,children:[],animatables:i,animations:a,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(e);s(c);function l(){var e=c.direction;"alternate"!==e&&(c.direction="normal"!==e?"normal":"reverse"),c.reversed=!c.reversed,t.forEach((function(e){return e.reversed=c.reversed}))}function u(e){return c.reversed?c.duration-e:e}function h(){n=0,r=u(c.currentTime)*(1/me.speed)}function f(e,t){t&&t.seek(e-t.timelineOffset)}function d(e){for(var t=0,n=c.animations,r=n.length;t<r;){var i=n[t],a=i.animatable,o=i.tweens,s=o.length-1,l=o[s];
// Only check for keyframes if there is more than one tween
s&&(l=T(o,(function(t){return e<t.end}))[0]||l);for(var u=y(e-l.start-l.delay,0,l.duration)/l.duration,h=isNaN(u)?1:l.easing(u),f=l.to.strings,d=l.round,p=[],g=l.to.numbers.length,m=void 0,v=0;v<g;v++){var A=void 0,b=l.to.numbers[v],w=l.from.numbers[v]||0;A=l.isPath?ee(l.value,h*b):w+h*(b-w),d&&(l.isColor&&v>2||(A=Math.round(A*d)/d)),p.push(A)}
// Manual Array.reduce for better performances
var x=f.length;if(x){m=f[0];for(var C=0;C<x;C++){f[C];var _=f[C+1],I=p[C];isNaN(I)||(m+=_?I+_:I+" ")}}else m=p[0];se[i.type](a.target,i.property,m,a.transforms),i.currentValue=m,t++}}function m(e){c[e]&&!c.passThrough&&c[e](c)}function v(e){var h=c.duration,p=c.delay,g=h-c.endDelay,v=u(e);c.progress=y(v/h*100,0,100),c.reversePlayback=v<c.currentTime,t&&function(e){if(c.reversePlayback)for(var n=a;n--;)f(e,t[n]);else for(var r=0;r<a;r++)f(e,t[r])}(v),!c.began&&c.currentTime>0&&(c.began=!0,m("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,m("loopBegin")),v<=p&&0!==c.currentTime&&d(0),(v>=g&&c.currentTime!==h||!h)&&d(h),v>p&&v<g?(c.changeBegan||(c.changeBegan=!0,c.changeCompleted=!1,m("changeBegin")),m("change"),d(v)):c.changeBegan&&(c.changeCompleted=!0,c.changeBegan=!1,m("changeComplete")),c.currentTime=y(v,0,h),c.began&&m("update"),e>=h&&(r=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(n=i,m("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&l()):(c.paused=!0,c.completed||(c.completed=!0,m("loopComplete"),m("complete"),!c.passThrough&&"Promise"in window&&(o(),s(c)))))}return c.reset=function(){var e=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===e,c.remaining=c.loop,t=c.children;for(var n=a=t.length;n--;)c.children[n].reset();(c.reversed&&!0!==c.loop||"alternate"===e&&1===c.loop)&&c.remaining++,d(c.reversed?c.duration:0)},
// Set Value helper
c.set=function(e,t){return ce(e,t),c},c.tick=function(e){i=e,n||(n=i),v((i+(r-n))*me.speed)},c.seek=function(e){v(u(e))},c.pause=function(){c.paused=!0,h()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,de.push(c),h(),fe||ge())},c.reverse=function(){l(),c.completed=!c.reversed,h()},c.restart=function(){c.reset(),c.play()},c.reset(),c.autoplay&&c.play(),c}
// Remove targets from animation
function ve(e,t){for(var n=t.length;n--;)P(e,t[n].animatable.target)&&t.splice(n,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){document.hidden?(de.forEach((function(e){return e.pause()})),pe=de.slice(0),me.running=de=[]):pe.forEach((function(e){return e.play()}))})),me.version="3.2.0",me.speed=1,me.running=de,me.remove=function(e){for(var t=ne(e),n=de.length;n--;){var r=de[n],i=r.animations,a=r.children;ve(t,i);for(var o=a.length;o--;){var s=a[o],c=s.animations;ve(t,c),c.length||s.children.length||a.splice(o,1)}i.length||a.length||r.pause()}}
// Stagger helpers
,me.get=q,me.set=ce,me.convertPx=H,me.path=function(e,t){var n=w.str(e)?M(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:Z(n),totalLength:X(n)*(r/100)}}},me.setDashoffset=function(e){var t=X(e);return e.setAttribute("stroke-dasharray",t),t},me.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?B(t.easing):null,i=t.grid,a=t.axis,o=t.from||0,s="first"===o,c="center"===o,l="last"===o,u=w.arr(e),h=u?parseFloat(e[0]):parseFloat(e),f=u?parseFloat(e[1]):0,d=N(u?e[1]:e)||0,p=t.start||0+(u?h:0),g=[],m=0;return function(e,t,v){if(s&&(o=0),c&&(o=(v-1)/2),l&&(o=v-1),!g.length){for(var y=0;y<v;y++){if(i){var A=c?(i[0]-1)/2:o%i[0],b=c?(i[1]-1)/2:Math.floor(o/i[0]),w=A-y%i[0],x=b-Math.floor(y/i[0]),C=Math.sqrt(w*w+x*x);"x"===a&&(C=-w),"y"===a&&(C=-x),g.push(C)}else g.push(Math.abs(o-y));m=Math.max.apply(Math,g)}r&&(g=g.map((function(e){return r(e/m)*m}))),"reverse"===n&&(g=g.map((function(e){return a?e<0?-1*e:-e:Math.abs(m-e)})))}return p+(u?(f-h)/m:h)*(Math.round(100*g[t])/100)+d}}
// Timeline
,me.timeline=function(e){void 0===e&&(e={});var t=me(e);return t.duration=0,t.add=function(n,r){var i=de.indexOf(t),a=t.children;function o(e){e.passThrough=!0}i>-1&&de.splice(i,1);for(var s=0;s<a.length;s++)o(a[s]);var c=R(n,Q(g,e));c.targets=c.targets||e.targets;var l=t.duration;c.autoplay=!1,c.direction=t.direction,c.timelineOffset=w.und(r)?l:Y(r,l),o(t),t.seek(c.timelineOffset);var u=me(c);o(u),a.push(u);var h=ue(a,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},me.easing=B,me.penner=S,me.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};
/* harmony default export */var ye=me;
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
n("99af"),n("4de4"),n("c740"),n("c975"),n("13d5"),n("a434"),n("d3b7"),n("25f0"),n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("3ca3"),n("ddb0"),n("a630");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
function be(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,i,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}
// CONCATENATED MODULE: ./src/utils/index.js
/*
 * @Author: Wuxiaohong (wxh1220@gmail.com)
 * @Date: 2020-04-08 12:54:43
 * @Last Modified by: Wuxiaohong
 * @Last Modified time: 2020-04-10 23:44:15
 * @功能:
 * @简介: vue 查找组件的方法
 */
/**
 * 由一个组件，向上找到最近的指定组件
 * @param {VueComponent} context 查询开始组件
 * @param {string} componentName 组件名称
 * @returns {any} VueComponent 组件实例
 */
/**
 * 由一个组件，向下找到最近的指定组件
 * @param {VueComponent} context 查询开始组件
 * @param {string} componentName 组件名称
 * @returns {any} VueComponent 组件实例
 */
function we(e,t){var n=e.$children,r=null;if(n.length){var i,a=be(n);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o.$options.name===t){r=o;break}if(r=we(o,t))break}}catch(e){a.e(e)}finally{a.f()}}return r}
/**
 * 由一个组件，向下找到所有指定的组件
 * @param {VueComponent} context 查询开始组件
 * @param {string} componentName 组件名称
 */
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Marquee.vue?vue&type=script&lang=js&
/* harmony default export */var xe={name:"vue-marquee",props:{
/** 方向 */
direction:{type:String,validator:function(e){return["left","top","right","bottom"].includes(e)},default:function(){return"left"}},
/** 是否展示进度条 */
showProgress:{type:Boolean,default:function(){return!0}},
/** 执行一周需要的时间 */
duration:{type:Number,validator:function(e){return!Number.isNaN(e)&&"number"==typeof e}},hover:{type:Boolean,default:function(){return!0}}},data:function(){return{track:[],
// 进度条
progress:0,
// 动画实例
instance:null,
// 容器宽度
elWidth:0,
// 容器高度
elHeight:0,
// 所有子元素尺寸
clientRect:[],
// 进度条样式
processStyle:{backgroundColor:"#f3f3f3"}}},components:{VueSlider:d.a},computed:{
/** 元素最宽度 */
maxWidth:function(){return l()(h()(this.clientRect,"width"))},
/** 元素最大高度 */
maxHeight:function(){return l()(h()(this.clientRect,"height"))},
/** 总宽度 */
totalWidth:function(){return s()(this.clientRect,"width")},
/** 总长度 */
totalHeight:function(){return s()(this.clientRect,"height")},
/** 是否垂直 */
isVertical:function(){return["top","bottom"].includes(this.direction)},
/** 是否开启滚动 */
isRolling:function(){var e=this.clientRect.length>1;return this.isVertical?this.totalHeight>this.elHeight&&e:this.totalWidth>this.elWidth&&e},
/** 计算样式 */
formatStyle:function(){var e=this.isRolling?"hidden":"auto";return this.isVertical?{overflowY:e}:{overflowX:e}},
/** 进度条方向 */
sliderDirection:function(){return{left:"ltr",right:"rtl",top:"ttb",bottom:"btt"}[this.direction]}},created:function(){},mounted:function(){var e=this;this.$nextTick((function(){var t=e.$el.getBoundingClientRect(),n=t.width,r=t.height;e.elWidth=n,e.elHeight=r,e.clientRect=e.childrenClientRect(),e.isRolling&&(e.init(),e.initAnime())}))},methods:{
/** 鼠标移入 */
enter:function(){0!==this.duration&&this.hover&&this.isRolling&&this.instance&&this.instance.pause()},
/** 鼠标离开 */
leave:function(){0!==this.duration&&this.hover&&this.isRolling&&this.instance&&this.instance.play()},
/** 滚动条 */
sliderChangeHandler:function(e){if(this.instance){var t=this.instance.duration;this.instance.seek(t*(e/100))}},
/** 获取所有跑马灯子元素 */
children:function(){
/**
 * 由一个组件，找到指定组件的兄弟组件
 * @param {VueComponent} context 查询开始组件
 * @param {string} componentName 组件名称
 * @param {boolean} exceptMe 是否抛开自己
 */
return function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.$parent.$children.filter((function(e){return e.$options.name===t})),i=r.findIndex((function(t){return t._uid===e._uid}));return n&&r.splice(i,1),r}
/**
 * 返回随机范围整数
 * @param {number} min 最小值
 * @param {number} max 最大值
 */(we(this,"vue-marquee-slide"),"vue-marquee-slide",!1)},
/** 获取子元素的尺寸 */
childrenClientRect:function(){return this.children().map((function(e){return e.$el.getBoundingClientRect()}))},
/** 初始化 */
init:function(){var e=this;this.children().forEach((function(t,n){var r=t.$el;r.style[{left:"right",right:"left",bottom:"top",top:"bottom"}[e.direction]]="-".concat(e.isVertical?e.maxHeight:e.maxWidth,"px"),r.style.position="absolute";var i=e.isVertical?"height":"width";e.track[n]={value:s()(e.clientRect.slice(0,n),i)}}))},
/** 初始化动画 */
initAnime:function(){var e=this,t=this.children().map((function(e){return e.$el})),n=this.isVertical?this.totalHeight:this.totalWidth,r=Object.assign({targets:this.track,duration:this.duration||30*n,autoplay:!0,loop:!0,easing:"linear",value:function(t){var n=t.value;switch(e.direction){case"left":return n-e.totalWidth;case"right":return n+e.totalWidth;case"top":return n-e.totalHeight;case"bottom":return n+e.totalHeight;default:return n}},update:function(n){e.progress=n.progress,ye.set(t,{translateX:function(t,n){switch(e.direction){case"left":return(e.track[n].value-e.totalWidth)%e.totalWidth+e.clientRect[n].width;case"right":return(e.track[n].value+e.maxWidth)%e.totalWidth-e.elWidth;default:return 0}},translateY:function(t,n){switch(e.direction){case"top":return(e.track[n].value-e.totalHeight)%e.totalHeight+e.clientRect[n].height;case"bottom":return e.track[n].value%e.totalHeight;default:return 0}}}),ye({begin:function(){0===e.duration&&e.instance.pause()}})}});this.instance=ye(r)}},watch:{},beforeDestroy:function(){}},Ce=xe;
// CONCATENATED MODULE: ./src/components/Marquee.vue?vue&type=script&lang=js&
/* harmony default export */n("cc0f");
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function _e(e,t,n,r,i,a,o,/* server only */
s/* vue-cli only */){
// Vue.extend constructor export interop
var c,l="function"==typeof e?e.options:e;
// render functions
if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),
// functional template
r&&(l.functional=!0),
// scopedId
a&&(l._scopeId="data-v-"+a),o?(// server build
c=function(e){
// 2.3 injection
// functional
// 2.2 with runInNewContext: true
(e=e||// cached call
this.$vnode&&this.$vnode.ssrContext||// stateful
this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),
// inject component styles
i&&i.call(this,e),
// register component module identifier for async chunk inferrence
e&&e._registeredComponents&&e._registeredComponents.add(o)}
// used by ssr in case component is cached and beforeCreate
// never gets called
,l._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
l._injectStyles=c;
// register for functional component in vue file
var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{
// inject component registration as beforeCreate hook
var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}
// CONCATENATED MODULE: ./src/components/Marquee.vue
/* normalize component */var Ie=_e(Ce,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"marquee-container",style:e.formatStyle,attrs:{direction:e.direction},on:{mouseenter:e.enter,mouseleave:e.leave}},[e._t("default"),e.isRolling&&e.showProgress?n("vue-slider",{staticClass:"marquee-progress",class:{vertical:e.isVertical},attrs:{direction:e.sliderDirection,"process-style":e.processStyle,width:e.isVertical?4:e.elWidth-100,height:e.isVertical?e.elHeight-66:4,dotSize:e.isVertical?[8,66]:[99,8],tooltip:"none"},on:{change:e.sliderChangeHandler},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}}):e._e()],2)}),[],!1,null,"7f1eea7f",null)
/* harmony default export */.exports,Ee=_e({name:"vue-marquee-slide",render:function(e){return e("div",{class:"marquee-slide"},this.$slots.default)}},undefined,undefined
/* normalize component */,!1,null,null,null)
/* harmony default export */.exports,ke=function e(t){
// 判断是否可以安装
e.installed||(t.component(Ie.name,Ie),t.component(Ee.name,Ee),e.installed=!0)};// 判断是否是直接引入文件
"undefined"!=typeof window&&window.Vue&&ke(window.Vue)
/* harmony default export */;var Se={install:ke,Marquee:Ie,Slide:Ee};
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* harmony default export */t.default=Se},
/***/fb6a:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("861d"),a=n("e8b5"),o=n("23cb"),s=n("50c4"),c=n("fc6a"),l=n("8418"),u=n("b622"),h=n("1dde"),f=n("ae40"),d=h("slice"),p=f("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,v=Math.max;
// `Array.prototype.slice` method
// https://tc39.github.io/ecma262/#sec-array.prototype.slice
// fallback for not array-like ES3 strings and DOM objects
r({target:"Array",proto:!0,forced:!d||!p},{slice:function(e,t){var n,r,u,h=c(this),f=s(h.length),d=o(e,f),p=o(void 0===t?f:t,f);if(a(h)&&(
// cross-realm fallback
"function"!=typeof(n=h.constructor)||n!==Array&&!a(n.prototype)?i(n)&&null===(n=n[g])&&(n=void 0):n=void 0,n===Array||void 0===n))return m.call(h,d,p);for(r=new(void 0===n?Array:n)(v(p-d,0)),u=0;d<p;d++,u++)d in h&&l(r,u,h[d]);return r.length=u,r}})},
/***/fba5:
/***/function(e,t,n){var r=n("cb5a");
/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */e.exports=function(e){return r(this.__data__,e)>-1}},
/***/fc6a:
/***/function(e,t,n){
// toObject with fallback for non-array-like ES3 strings
var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},
/***/fdbc:
/***/function(e,t){
// iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
e.exports={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};
/***/},
/***/fdbf:
/***/function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},
/***/ffd6:
/***/function(e,t,n){var r=n("3729"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}}
/******/}).default;
//# sourceMappingURL=VueMarqueeComponent.common.js.map
/***/},
/***/c512:
/***/function(e,t,n){
// 26.1.8 Reflect.getPrototypeOf(target)
var r=n("f083"),i=n("ed60"),a=n("d77f");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(a(e))}})},
/***/c513:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("1a2d"),a=n("d9b5"),o=n("0d51"),s=n("5692"),c=n("0b43"),l=s("symbol-to-string-registry");
// `Symbol.keyFor` method
// https://tc39.es/ecma262/#sec-symbol.keyfor
r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw new TypeError(o(e)+" is not a symbol");if(i(l,e))return l[e]}})},
/***/c532:
/***/function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;
/*global toString:true*/
// utils is a library of generic helper functions non-specific to axios
/**
 * Determine if a value is an Array
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Array, otherwise false
 */
function a(e){return"[object Array]"===i.call(e)}
/**
 * Determine if a value is undefined
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if the value is undefined, otherwise false
 */function o(e){return void 0===e}
/**
 * Determine if a value is a Buffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Buffer, otherwise false
 */
/**
 * Determine if a value is an Object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Object, otherwise false
 */
function s(e){return null!==e&&"object"==typeof e}
/**
 * Determine if a value is a Date
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Date, otherwise false
 */
/**
 * Determine if a value is a Function
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Function, otherwise false
 */
function c(e){return"[object Function]"===i.call(e)}
/**
 * Determine if a value is a Stream
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Stream, otherwise false
 */
/**
 * Iterate over an Array or an Object invoking a function for each item.
 *
 * If `obj` is an Array callback will be called passing
 * the value, index, and complete array for each item.
 *
 * If 'obj' is an Object callback will be called passing
 * the value, key, and complete object for each property.
 *
 * @param {Object|Array} obj The object to iterate
 * @param {Function} fn The callback to invoke for each item
 */
function l(e,t){
// Don't bother if no value provided
if(null!=e)if(
// Force an array if not already something iterable
"object"!=typeof e&&(
/*eslint no-param-reassign:0*/
e=[e]),a(e))
// Iterate over array values
for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else
// Iterate over object keys
for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}
/**
 * Accepts varargs expecting each argument to be an object, then
 * immutably merges the properties of each object and returns result.
 *
 * When multiple objects contain the same key the later object in
 * the arguments list will take precedence.
 *
 * Example:
 *
 * ```js
 * var result = merge({foo: 123}, {foo: 456});
 * console.log(result.foo); // outputs 456
 * ```
 *
 * @param {Object} obj1 Object to merge
 * @returns {Object} Result of all merge properties
 */e.exports={isArray:a,isArrayBuffer:
/**
 * Determine if a value is an ArrayBuffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an ArrayBuffer, otherwise false
 */
function(e){return"[object ArrayBuffer]"===i.call(e)}
/**
 * Determine if a value is a FormData
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an FormData, otherwise false
 */,isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData}
/**
 * Determine if a value is a view on an ArrayBuffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
 */,isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}
/**
 * Determine if a value is a String
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a String, otherwise false
 */,isString:function(e){return"string"==typeof e}
/**
 * Determine if a value is a Number
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Number, otherwise false
 */,isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)}
/**
 * Determine if a value is a File
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a File, otherwise false
 */,isFile:function(e){return"[object File]"===i.call(e)}
/**
 * Determine if a value is a Blob
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Blob, otherwise false
 */,isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)}
/**
 * Determine if a value is a URLSearchParams object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
 */,isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}
/**
 * Trim excess whitespace off the beginning and end of a string
 *
 * @param {String} str The String to trim
 * @returns {String} The String freed of excess whitespace
 */,isStandardBrowserEnv:
/**
 * Determine if we're running in a standard browser environment
 *
 * This allows axios to run in a web worker, and react-native.
 * Both environments support XMLHttpRequest, but not fully standard globals.
 *
 * web workers:
 *  typeof window -> undefined
 *  typeof document -> undefined
 *
 * react-native:
 *  navigator.product -> 'ReactNative'
 * nativescript
 *  navigator.product -> 'NativeScript' or 'NS'
 */
function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t}
/**
 * Function equal to merge with the difference being that no reference
 * to original objects is kept.
 *
 * @see merge
 * @param {Object} obj1 Object to merge
 * @returns {Object} Result of all merge properties
 */,deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t}
/**
 * Extends object a by mutably adding to it the properties of object b.
 *
 * @param {Object} a The object to be extended
 * @param {Object} b The object to copy properties from
 * @param {Object} thisArg The object to bind function to
 * @return {Object} The resulting value of object a
 */,extend:function(e,t,n){return l(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},
/***/c544:
/***/function(e,t,n){"use strict";var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},a=[],o=[];function s(e,t,n){e.addEventListener(t,n,!1)}function c(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];for(var a in i)if(a in e){n.push(i[a]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete i.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete i.transitionend.transition),t(r,a),t(i,o)}();var l={
// Start events
startEvents:a,addStartEventListener:function(e,t){0!==a.length?a.forEach((function(n){s(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==a.length&&a.forEach((function(n){c(e,n,t)}))},
// End events
endEvents:o,addEndEventListener:function(e,t){0!==o.length?o.forEach((function(n){s(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==o.length&&o.forEach((function(n){c(e,n,t)}))}};
/* harmony default export */t.a=l},
/***/c584:
/***/function(e,t){e.exports=
/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function(e,t){return e.has(t)}},
/***/c5c0:
/***/function(e,t,n){
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var r=n("f083");r(r.P+r.R,"Map",{toJSON:n("1ff6")("Map")})},
/***/c5cc:
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("7c73"),a=n("9112"),o=n("6964"),s=n("b622"),c=n("69f3"),l=n("dc4a"),u=n("ae93").IteratorPrototype,h=n("4754"),f=n("2a62"),d=s("toStringTag"),p="IteratorHelper",g="WrapForValidIterator",m=c.set,v=function(e){var t=c.getterFor(e?g:p);return o(i(u),{next:function(){var n=t(this);
// for simplification:
//   for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
//   for `%IteratorHelperPrototype%.next` - just a value
if(e)return n.nextHandler();if(n.done)return h(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:h(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var a=l(i,"return");return a?r(a,i):h(void 0,!0)}if(n.inner)try{f(n.inner.iterator,"normal")}catch(e){return f(i,"throw",e)}return i&&f(i,"normal"),h(void 0,!0)}})},y=v(!0),A=v(!1);a(A,d,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:p,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?y:A,r}},
/***/c5d0:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("857a");
// `String.prototype.italics` method
// https://tc39.es/ecma262/#sec-string.prototype.italics
r({target:"String",proto:!0,forced:n("af03")("italics")},{italics:function(){return i(this,"i","","")}})},
/***/c607:
/***/function(e,t,n){"use strict";var r=n("83ab"),i=n("fce3"),a=n("c6b6"),o=n("edd0"),s=n("69f3").get,c=RegExp.prototype,l=TypeError;
// `RegExp.prototype.dotAll` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
r&&i&&o(c,"dotAll",{configurable:!0,get:function(){if(this!==c){
// We can't use InternalStateModule.getterFor because
// we don't add metadata for regexps created by a literal.
if("RegExp"===a(this))return!!s(this).dotAll;throw new l("Incompatible receiver, RegExp required")}}})
/***/},
/***/c65b:
/***/function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype.call;
// eslint-disable-next-line es/no-function-prototype-bind -- safe
e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},
/***/c668:
/***/function(e,t,n){var r=n("77ea");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},
/***/c67c:
/***/function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};t.__esModule=!0,t.TemplateRender=void 0;var i=n("a026"),a=/** @class */function(){function e(){}return e.render=function(e,t){return void 0===e&&(e=""),new i.default(r(r({el:document.createElement("div")},t),{template:e})).$el},e.renderOptions=function(e){return new i.default(r({el:document.createElement("div")},e)).$el},e}();e.exports=a},
/***/c6b6:
/***/function(e,t,n){"use strict";var r=n("e330"),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},
/***/c6cd:
/***/function(e,t,n){"use strict";var r=n("c430"),i=n("cfe9"),a=n("6374"),o="__core-js_shared__",s=e.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.40.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},
/***/c6cf:
/***/function(e,t,n){var r=n("4d8c"),i=n("2286"),a=n("c1c9");
/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */e.exports=function(e){return a(i(e,void 0,r),e+"")}},
/***/c6d2:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("c430"),o=n("5e77"),s=n("1626"),c=n("dcc3"),l=n("e163"),u=n("d2bb"),h=n("d44e"),f=n("9112"),d=n("cb2d"),p=n("b622"),g=n("3f8c"),m=n("ae93"),v=o.PROPER,y=o.CONFIGURABLE,A=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",C="values",_="entries",I=function(){return this};e.exports=function(e,t,n,o,p,m,E){c(n,t,o);var k,S,B,M=function(e){if(e===p&&L)return L;if(!b&&e&&e in D)return D[e];switch(e){case x:case C:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",O=!1,D=e.prototype,P=D[w]||D["@@iterator"]||p&&D[p],L=!b&&P||M(p),Q="Array"===t&&D.entries||P;
// export additional methods
if(
// fix native
Q&&(k=l(Q.call(new e)))!==Object.prototype&&k.next&&(a||l(k)===A||(u?u(k,A):s(k[w])||d(k,w,I)),
// Set @@toStringTag to native iterators
h(k,T,!0,!0),a&&(g[T]=I)),
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
v&&p===C&&P&&P.name!==C&&(!a&&y?f(D,"name",C):(O=!0,L=function(){return i(P,this)})),p)if(S={values:M(C),keys:m?L:M(x),entries:M(_)},E)for(B in S)(b||O||!(B in D))&&d(D,B,S[B]);else r({target:t,proto:!0,forced:b||O},S);
// define iterator
return a&&!E||D[w]===L||d(D,w,L,{name:p}),g[t]=L,S}},
/***/c6eb:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* harmony import */var r=n("5ea3"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.a.process,s=function(){try{
// Use `util.types` for Node.js 10+.
var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util");
// Legacy `process.binding('util')` for Node.js < 10.
}catch(e){}}();
/** Detect free variable `exports`. */
/* harmony default export */t.a=s}).call(this,n("dd40")(e))
/***/},
/***/c740:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,a=n("44d2"),o="findIndex",s=!0;
// Shouldn't skip holes
// eslint-disable-next-line es/no-array-prototype-findindex -- testing
o in[]&&Array(1)[o]((function(){s=!1})),
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findindex
r({target:"Array",proto:!0,forced:s},{findIndex:function(e/* , that = undefined */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
a(o)},
/***/c747:
/***/function(e,t,n){var r=n("2ce8"),i=n("42ee"),a=n("dbaf"),o=n("6373");e.exports=function(e,t,n,s,c){r(t);var l=i(e),u=a(l),h=o(l.length),f=c?h-1:0,d=c?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=d;break}if(f+=d,c?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:h>f;f+=d)f in u&&(s=t(s,u[f],f,l));return s}},
/***/c786:
/***/function(e,t,n){
// check on default Array iterator
var r=n("c053"),i=n("de24")("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},
/***/c7a2:
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: RectShape
// EXTERNAL MODULE: ./node_modules/zrender/node_modules/tslib/tslib.es6.js
var r=n("21a1"),i=n("cbe5");
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/Path.js + 3 modules
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/helper/subPixelOptimize.js
var a=n("9cf9"),o=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},c=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var c=Object(a.c)(s,t,this.style);n=c.x,r=c.y,i=c.width,o=c.height,c.r=t.r,t=c}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?
// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/helper/roundRect.js
function(e,t){var n,r,i,a,o,s=t.x,c=t.y,l=t.width,u=t.height,h=t.r;l<0&&(s+=l,l=-l),u<0&&(c+=u,u=-u),"number"==typeof h?n=r=i=a=h:h instanceof Array?1===h.length?n=r=i=a=h[0]:2===h.length?(n=i=h[0],r=a=h[1]):3===h.length?(n=h[0],r=a=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],a=h[3]):n=r=i=a=0,n+r>l&&(n*=l/(o=n+r),r*=l/o),i+a>l&&(i*=l/(o=i+a),a*=l/o),r+i>u&&(r*=u/(o=r+i),i*=u/o),n+a>u&&(n*=u/(o=n+a),a*=u/o),e.moveTo(s+n,c),e.lineTo(s+l-r,c),0!==r&&e.arc(s+l-r,c+r,r,-Math.PI/2,0),e.lineTo(s+l,c+u-i),0!==i&&e.arc(s+l-i,c+u-i,i,0,Math.PI/2),e.lineTo(s+a,c+u),0!==a&&e.arc(s+a,c+u-a,a,Math.PI/2,Math.PI),e.lineTo(s,c+n),0!==n&&e.arc(s+n,c+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i.b);
// CONCATENATED MODULE: ./node_modules/zrender/lib/graphic/shape/Rect.js
c.prototype.type="rect";
/* harmony default export */t.a=c;
/***/},
/***/c7c8:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/c7ca:
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=n("ed60"),o=r.has,s=r.key,c=function(e,t,n){if(o(e,t,n))return!0;var r=a(t);return null!==r&&c(e,r,n)};r.exp({hasMetadata:function(e,t/* , targetKey */){return c(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},
/***/c7eb:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("d9e2"),n("14d9"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("1f68"),n("131a"),n("d3b7"),n("3ca3"),n("0643"),n("4e3e"),n("159b"),n("ddb0")
/* harmony import */;var r=n("53ca");function i(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof A?t:A,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:S(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function A(){}function b(){}function w(){}var x={};h(x,c,(function(){return this}));var C=Object.getPrototypeOf,_=C&&C(C(D([])));_&&_!==n&&a.call(_,c)&&(x=_);var I=w.prototype=A.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,s,c){var l=d(e[i],e,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==Object(r.a)(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function S(t,n,r){var i=p;return function(a,o){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===a)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=B(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var l=d(t,n,r);if("normal"===l.type){if(i=r.done?v:g,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function B(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(r.a)(t)+" is not iterable")}return b.prototype=w,o(I,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=h(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,u,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},E(k.prototype),h(k.prototype,l,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new k(f(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(I),h(I,u,"Generator"),h(I,c,(function(){return this})),h(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t
/***/}},
/***/c869:
/***/function(e,t,n){var r=n("0b07")(n("2b3e"),"Set");
/* Built-in method references that are verified to be native. */e.exports=r},
/***/c87c:
/***/function(e,t){
/** Used for built-in method references. */
var n=Object.prototype.hasOwnProperty;
/** Used to check objects for own properties. */e.exports=
/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function(e){var t=e.length,r=new e.constructor(t);
// Add properties assigned by `RegExp#exec`.
return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},
/***/c8af:
/***/function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},
/***/c8b5:
/***/function(e,t,n){var r;
/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */!function(i,a,o,s){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=a.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;
/**
 * set a timeout with a given scope
 * @param {Function} fn
 * @param {Number} timeout
 * @param {Object} context
 * @returns {number}
 */
function p(e,t,n){return setTimeout(w(e,n),t)}
/**
 * if the argument is an array, we want to execute the fn on each entry
 * if it aint an array we don't want to do a thing.
 * this is used by all the methods that accept a single and array argument.
 * @param {*|Array} arg
 * @param {String} fn
 * @param {Object} [context]
 * @returns {Boolean}
 */function g(e,t,n){return!!Array.isArray(e)&&(m(e,n[t],n),!0)}
/**
 * walk objects and arrays
 * @param {Object} obj
 * @param {Function} iterator
 * @param {Object} context
 */function m(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}
/**
 * wrap a method with a deprecation warning and stack trace
 * @param {Function} method
 * @param {String} name
 * @param {String} message
 * @returns {Function} A new function wrapping the supplied method.
 */function v(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=i.console&&(i.console.warn||i.console.log);return a&&a.call(i.console,r,n),e.apply(this,arguments)}}
/**
 * extend object.
 * means that properties in dest will be overwritten by the ones in src.
 * @param {Object} target
 * @param {...Object} objects_to_assign
 * @returns {Object} target
 */c="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign
/**
 * extend object.
 * means that properties in dest will be overwritten by the ones in src.
 * @param {Object} dest
 * @param {Object} src
 * @param {Boolean} [merge=false]
 * @returns {Object} dest
 */;var y=v((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),A=v((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");
/**
 * merge the values from src in the dest.
 * means that properties that exist in dest will not be overwritten by src
 * @param {Object} dest
 * @param {Object} src
 * @returns {Object} dest
 */
/**
 * simple class inheritance
 * @param {Function} child
 * @param {Function} base
 * @param {Object} [properties]
 */
function b(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&c(r,n)}
/**
 * simple function bind
 * @param {Function} fn
 * @param {Object} context
 * @returns {Function}
 */function w(e,t){return function(){return e.apply(t,arguments)}}
/**
 * let a boolean value also be a function that must return a boolean
 * this first item in args will be used as the context
 * @param {Boolean|Function} val
 * @param {Array} [args]
 * @returns {Boolean}
 */function x(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}
/**
 * use the val2 when val1 is undefined
 * @param {*} val1
 * @param {*} val2
 * @returns {*}
 */function C(e,t){return e===s?t:e}
/**
 * addEventListener with multiple events at once
 * @param {EventTarget} target
 * @param {String} types
 * @param {Function} handler
 */function _(e,t,n){m(S(t),(function(t){e.addEventListener(t,n,!1)}))}
/**
 * removeEventListener with multiple events at once
 * @param {EventTarget} target
 * @param {String} types
 * @param {Function} handler
 */function I(e,t,n){m(S(t),(function(t){e.removeEventListener(t,n,!1)}))}
/**
 * find if a node is in the given parent
 * @method hasParent
 * @param {HTMLElement} node
 * @param {HTMLElement} parent
 * @return {Boolean} found
 */function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}
/**
 * small indexOf wrapper
 * @param {String} str
 * @param {String} find
 * @returns {Boolean} found
 */function k(e,t){return e.indexOf(t)>-1}
/**
 * split string on whitespace
 * @param {String} str
 * @returns {Array} words
 */function S(e){return e.trim().split(/\s+/g)}
/**
 * find if a array contains the object using indexOf or a simple polyFill
 * @param {Array} src
 * @param {String} find
 * @param {String} [findByKey]
 * @return {Boolean|Number} false when not found, or the index
 */function B(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}
/**
 * convert array-like objects to real arrays
 * @param {Object} obj
 * @returns {Array}
 */function M(e){return Array.prototype.slice.call(e,0)}
/**
 * unique array with objects based on a key (like 'id') or just by the array's value
 * @param {Array} src [{id:1},{id:2},{id:1}]
 * @param {String} [key]
 * @param {Boolean} [sort=False]
 * @returns {Array} [{id:1},{id:2}]
 */function T(e,t,n){for(var r=[],i=[],a=0;a<e.length;){var o=t?e[a][t]:e[a];B(i,o)<0&&r.push(e[a]),i[a]=o,a++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}
/**
 * get the prefixed property
 * @param {Object} obj
 * @param {String} property
 * @returns {String|Undefined} prefixed
 */function O(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),a=0;a<l.length;){if((r=(n=l[a])?n+i:t)in e)return r;a++}return s}
/**
 * get a unique id
 * @returns {number} uniqueId
 */var D=1;
/**
 * get the window object of an element
 * @param {HTMLElement} element
 * @returns {DocumentView|Window}
 */
function P(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var L="ontouchstart"in i,Q=O(i,"PointerEvent")!==s,R=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",N="mouse",F=24,z=["x","y"],H=["clientX","clientY"];
/**
 * create new input type manager
 * @param {Manager} manager
 * @param {Function} callback
 * @returns {Input}
 * @constructor
 */
function U(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,
// smaller wrapper around the handler, for the scope and the enabled state of the manager,
// so when disabled the input events are completely bypassed.
this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}
/**
 * handle input events
 * @param {Manager} manager
 * @param {String} eventType
 * @param {Object} input
 */
function G(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,a=1&t&&r-i==0,o=12&t&&r-i==0;n.isFirst=!!a,n.isFinal=!!o,a&&(e.session={}),
// source event is the normalized value of the domEvents
// like 'touchstart, mouseup, pointerdown'
n.eventType=t,
// compute scale, rotation etc
/**
 * extend the data with some usable properties like scale, rotate, velocity etc
 * @param {Object} manager
 * @param {Object} input
 */
function(e,t){var n=e.session,r=t.pointers,i=r.length;
// store the first input to calculate the distance and direction
n.firstInput||(n.firstInput=V(t));
// to compute scale and rotation we need to store the multiple touches
i>1&&!n.firstMultiple?n.firstMultiple=V(t):1===i&&(n.firstMultiple=!1);var a=n.firstInput,o=n.firstMultiple,c=o?o.center:a.center,l=t.center=W(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=$(c,l),t.distance=K(c,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},a=e.prevInput||{};1!==t.eventType&&4!==a.eventType||(i=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}
/**
 * velocity is calculated every x ms
 * @param {Object} session
 * @param {Object} input
 */(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var u=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=f(u.x)>f(u.y)?u.x:u.y,t.scale=o?(h=o.pointers,p=r,K(p[0],p[1],H)/K(h[0],h[1],H)):1,t.rotation=o?
/**
 * calculate the rotation degrees between two pointersets
 * @param {Array} start array of pointers
 * @param {Array} end array of pointers
 * @return {Number} rotation
 */
function(e,t){return $(t[1],t[0],H)+$(e[1],e[0],H)}
/**
 * calculate the scale factor between two pointersets
 * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out
 * @param {Array} start array of pointers
 * @param {Array} end array of pointers
 * @return {Number} scale
 */(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,a,o=e.lastInterval||t,c=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(c>25||o.velocity===s)){var l=t.deltaX-o.deltaX,u=t.deltaY-o.deltaY,h=q(c,l,u);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,a=Y(l,u),e.lastInterval=t}else
// use latest velocity info if it doesn't overtake a minimum period
n=o.velocity,r=o.velocityX,i=o.velocityY,a=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=a}
/**
 * create a simple clone from the input used for storage of firstInput and firstMultiple
 * @param {Object} input
 * @returns {Object} clonedInputData
 */(n,t);var h,p;
// find the correct target
var g=e.element;E(t.srcEvent.target,g)&&(g=t.srcEvent.target);t.target=g}(e,n),
// emit secret event
e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function V(e){for(
// make a simple copy of the pointers because we will get a reference if we don't
// we only need clientXY for the calculations
var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:W(t),deltaX:e.deltaX,deltaY:e.deltaY}}
/**
 * get the center of all the pointers
 * @param {Array} pointers
 * @return {Object} center contains `x` and `y` properties
 */function W(e){var t=e.length;
// no need to loop when only one touch
if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}
/**
 * calculate the velocity between two points. unit is in px per ms.
 * @param {Number} deltaTime
 * @param {Number} x
 * @param {Number} y
 * @return {Object} velocity `x` and `y`
 */function q(e,t,n){return{x:t/e||0,y:n/e||0}}
/**
 * get the direction between two points
 * @param {Number} x
 * @param {Number} y
 * @return {Number} direction
 */function Y(e,t){return e===t?1:f(e)>=f(t)?e<0?2:4:t<0?8:16}
/**
 * calculate the absolute distance between two points
 * @param {Object} p1 {x, y}
 * @param {Object} p2 {x, y}
 * @param {Array} [props] containing x and y keys
 * @return {Number} distance
 */function K(e,t,n){n||(n=z);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}
/**
 * calculate the angle between two coordinates
 * @param {Object} p1
 * @param {Object} p2
 * @param {Array} [props] containing x and y keys
 * @return {Number} angle
 */function $(e,t,n){n||(n=z);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}U.prototype={
/**
     * should handle the inputEvent data and trigger the callback
     * @virtual
     */
handler:function(){},
/**
     * bind the events
     */
init:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(P(this.element),this.evWin,this.domHandler)},
/**
     * unbind the events
     */
destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(P(this.element),this.evWin,this.domHandler)}};var J={mousedown:1,mousemove:2,mouseup:4},X="mousedown",Z="mousemove mouseup";
/**
 * Mouse events input
 * @constructor
 * @extends Input
 */
function ee(){this.evEl=X,this.evWin=Z,this.pressed=!1,// mousedown state
U.apply(this,arguments)}b(ee,U,{
/**
     * handle mouse events
     * @param {Object} ev
     */
handler:function(e){var t=J[e.type];
// on start we want to have the left mouse button down
1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),
// mouse must be down
this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:N,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:j,3:"pen",4:N,5:"kinect"},re="pointerdown",ie="pointermove pointerup pointercancel";
// in IE10 the pointer types is defined as an enum
/**
 * Pointer events input
 * @constructor
 * @extends Input
 */
function ae(){this.evEl=re,this.evWin=ie,U.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}
// IE10 has prefixed support, and case-sensitive
i.MSPointerEvent&&!i.PointerEvent&&(re="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),b(ae,U,{
/**
     * handle mouse events
     * @param {Object} ev
     */
handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=te[r],a=ne[e.pointerType]||e.pointerType,o=a==j,s=B(t,e.pointerId,"pointerId");
// start and mouse must be down
1&i&&(0===e.button||o)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),
// it not found, so the pointer hasn't been down (so it's probably a hover)
s<0||(
// update the event in the store
t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),n&&
// remove from the store
t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};
/**
 * Touch events input
 * @constructor
 * @extends Input
 */
function se(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,U.apply(this,arguments)}
/**
 * @this {TouchInput}
 * @param {Object} ev
 * @param {Number} type flag
 * @returns {undefined|Array} [all, changed]
 */
function ce(e,t){var n=M(e.touches),r=M(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}b(se,U,{handler:function(e){var t=oe[e.type];
// should we handle the touch events?
if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);
// when done, reset the started state
12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ue="touchstart touchmove touchend touchcancel";
/**
 * Multi-user touch events input
 * @constructor
 * @extends Input
 */
function he(){this.evTarget=ue,this.targetIds={},U.apply(this,arguments)}
/**
 * @this {TouchInput}
 * @param {Object} ev
 * @param {Number} type flag
 * @returns {undefined|Array} [all, changed]
 */
function fe(e,t){var n=M(e.touches),r=this.targetIds;
// when there is only one touch, the process can be simplified
if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,a,o=M(e.changedTouches),s=[],c=this.target;
// get target touches from touches
// collect touches
if(a=n.filter((function(e){return E(e.target,c)})),1===t)for(i=0;i<a.length;)r[a[i].identifier]=!0,i++;
// filter changed touches to only contain touches that exist in the collected target ids
for(i=0;i<o.length;)r[o[i].identifier]&&s.push(o[i]),
// cleanup removed touches
12&t&&delete r[o[i].identifier],i++;return s.length?[
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
T(a.concat(s),"identifier",!0),s]:void 0}
/**
 * Combined touch and mouse input
 *
 * Touch has a higher priority then mouse, and while touching no mouse events are allowed.
 * This because touch devices also emit mouse events while doing a touch.
 *
 * @constructor
 * @extends Input
 */b(he,U,{handler:function(e){var t=le[e.type],n=fe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}});function de(){U.apply(this,arguments);var e=w(this.handler,this);this.touch=new he(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function pe(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function me(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],a=Math.abs(t-i.x),o=Math.abs(n-i.y);if(a<=25&&o<=25)return!0}return!1}b(de,U,{
/**
     * handle mouse and touch events
     * @param {Hammer} manager
     * @param {String} inputEvent
     * @param {Object} inputData
     */
handler:function(e,t,n){var r=n.pointerType==j,i=n.pointerType==N;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){
// when we're in a touch event, record touches to  de-dupe synthetic mouse event
if(r)pe.call(this,t,n);else if(i&&me.call(this,n))return;this.callback(e,t,n)}},
/**
     * remove the event listeners
     */
destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ve=O(u.style,"touchAction"),ye=ve!==s,Ae="compute",be="auto",we="manipulation",xe="none",Ce="pan-x",_e="pan-y",Ie=function(){if(!ye)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){
// If css.supports is not supported but there is native touch-action assume it supports
// all values. This is the case for IE 10 and 11.
e[n]=!t||i.CSS.supports("touch-action",n)})),e}
/**
 * Recognizer flow explained; *
 * All recognizers have the initial state of POSSIBLE when a input session starts.
 * The definition of a input session is from the first input until the last input, with all it's movement in it. *
 * Example session for mouse-input: mousedown -> mousemove -> mouseup
 *
 * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed
 * which determines with state it should be.
 *
 * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to
 * POSSIBLE to give it another change on the next cycle.
 *
 *               Possible
 *                  |
 *            +-----+---------------+
 *            |                     |
 *      +-----+-----+               |
 *      |           |               |
 *   Failed      Cancelled          |
 *                          +-------+------+
 *                          |              |
 *                      Recognized       Began
 *                                         |
 *                                      Changed
 *                                         |
 *                                  Ended/Recognized
 */();
/**
 * Touch Action
 * sets the touchAction property or uses the js alternative
 * @param {Manager} manager
 * @param {String} value
 * @constructor
 */
function Ee(e,t){this.manager=e,this.set(t)}Ee.prototype={
/**
     * set the touchAction value on the element or enable the polyfill
     * @param {String} value
     */
set:function(e){
// find out the touch-action by the event handlers
e==Ae&&(e=this.compute()),ye&&this.manager.element.style&&Ie[e]&&(this.manager.element.style[ve]=e),this.actions=e.toLowerCase().trim()},
/**
     * just re-set the touchAction value
     */
update:function(){this.set(this.manager.options.touchAction)},
/**
     * compute the value for the touchAction property based on the recognizer's settings
     * @returns {String} value
     */
compute:function(){var e=[];return m(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),
/**
 * when the touchActions are collected they are not a valid value, so we need to clean things up. *
 * @param {String} actions
 * @returns {*}
 */
function(e){
// none
if(k(e,xe))return xe;var t=k(e,Ce),n=k(e,_e);
// if both pan-x and pan-y are set (different recognizers
// for different directions, e.g. horizontal pan but vertical swipe?)
// we need none (as otherwise with pan-x pan-y combined none of these
// recognizers will work, since the browser would handle all panning
if(t&&n)return xe;
// pan-x OR pan-y
if(t||n)return t?Ce:_e;
// manipulation
if(k(e,we))return we;return be}(e.join(" "))},
/**
     * this method is called on each input cycle and provides the preventing of the browser behavior
     * @param {Object} input
     */
preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;
// if the touch action did prevented once this session
if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=k(r,xe)&&!Ie[xe],a=k(r,_e)&&!Ie[_e],o=k(r,Ce)&&!Ie[Ce];if(i){
//do not prevent defaults if this is a tap gesture
var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}if(!o||!a)return i||a&&6&n||o&&n&F?this.preventSrc(t):void 0}},
/**
     * call preventDefault to prevent the browser's default behavior (scrolling in most cases)
     * @param {Object} srcEvent
     */
preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ke=32;
/**
 * Recognizer
 * Every recognizer needs to extend from this class.
 * @constructor
 * @param {Object} options
 */
function Se(e){this.options=c({},this.defaults,e||{}),this.id=D++,this.manager=null,
// default is enable true
this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}
/**
 * get a usable string, used as event postfix
 * @param {Const} state
 * @returns {String} state
 */
function Be(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}
/**
 * direction cons to string
 * @param {Const} direction
 * @returns {String}
 */function Me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}
/**
 * get a recognizer by name if it is bound to a manager
 * @param {Recognizer|String} otherRecognizer
 * @param {Recognizer} recognizer
 * @returns {Recognizer}
 */function Te(e,t){var n=t.manager;return n?n.get(e):e}
/**
 * This recognizer is just used as a base for the simple attribute recognizers.
 * @constructor
 * @extends Recognizer
 */function Oe(){Se.apply(this,arguments)}
/**
 * Pan
 * Recognized when the pointer is down and moved in the allowed direction.
 * @constructor
 * @extends AttrRecognizer
 */
function De(){Oe.apply(this,arguments),this.pX=null,this.pY=null}
/**
 * Pinch
 * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).
 * @constructor
 * @extends AttrRecognizer
 */
function Pe(){Oe.apply(this,arguments)}
/**
 * Press
 * Recognized when the pointer is down for x ms without any movement.
 * @constructor
 * @extends Recognizer
 */
function Le(){Se.apply(this,arguments),this._timer=null,this._input=null}
/**
 * Rotate
 * Recognized when two or more pointer are moving in a circular motion.
 * @constructor
 * @extends AttrRecognizer
 */
function Qe(){Oe.apply(this,arguments)}
/**
 * Swipe
 * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.
 * @constructor
 * @extends AttrRecognizer
 */
function Re(){Oe.apply(this,arguments)}
/**
 * A tap is ecognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur
 * between the given interval and position. The delay option can be used to recognize multi-taps without firing
 * a single tap.
 *
 * The eventData from the emitted event contains the property `tapCount`, which contains the amount of
 * multi-taps being recognized.
 * @constructor
 * @extends Recognizer
 */
function je(){Se.apply(this,arguments),
// previous time and center,
// used for tap counting
this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}
/**
 * Simple way to create a manager with a default set of recognizers.
 * @param {HTMLElement} element
 * @param {Object} [options]
 * @constructor
 */
function Ne(e,t){return(t=t||{}).recognizers=C(t.recognizers,Ne.defaults.preset),new Fe(e,t)}
/**
 * @const {string}
 */Se.prototype={
/**
     * @virtual
     * @type {Object}
     */
defaults:{},
/**
     * set options
     * @param {Object} options
     * @return {Recognizer}
     */
set:function(e){return c(this.options,e),
// also update the touchAction, in case something changed about the directions/enabled state
this.manager&&this.manager.touchAction.update(),this},
/**
     * recognize simultaneous with an other recognizer.
     * @param {Recognizer} otherRecognizer
     * @returns {Recognizer} this
     */
recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Te(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},
/**
     * drop the simultaneous link. it doesnt remove the link on the other recognizer.
     * @param {Recognizer} otherRecognizer
     * @returns {Recognizer} this
     */
dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=Te(e,this),delete this.simultaneous[e.id]),this},
/**
     * recognizer can only run when an other is failing
     * @param {Recognizer} otherRecognizer
     * @returns {Recognizer} this
     */
requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===B(t,e=Te(e,this))&&(t.push(e),e.requireFailure(this)),this},
/**
     * drop the requireFailure link. it does not remove the link on the other recognizer.
     * @param {Recognizer} otherRecognizer
     * @returns {Recognizer} this
     */
dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Te(e,this);var t=B(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},
/**
     * has require failures boolean
     * @returns {boolean}
     */
hasRequireFailures:function(){return this.requireFail.length>0},
/**
     * if the recognizer can recognize simultaneous with an other recognizer
     * @param {Recognizer} otherRecognizer
     * @returns {Boolean}
     */
canRecognizeWith:function(e){return!!this.simultaneous[e.id]},
/**
     * You should use `tryEmit` instead of `emit` directly to check
     * that all the needed recognizers has failed before emitting.
     * @param {Object} input
     */
emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}
// 'panstart' and 'panmove'
n<8&&r(t.options.event+Be(n)),r(t.options.event),// simple 'eventName' events
e.additionalEvent&&// additional event(panleft, panright, pinchin, pinchout...)
r(e.additionalEvent),
// panend and pancancel
n>=8&&r(t.options.event+Be(n))},
/**
     * Check that all the require failure recognizers has failed,
     * if true, it emits a gesture event,
     * otherwise, setup the state to FAILED.
     * @param {Object} input
     */
tryEmit:function(e){if(this.canEmit())return this.emit(e);
// it's failing anyway
this.state=ke},
/**
     * can we emit?
     * @returns {boolean}
     */
canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},
/**
     * update the recognizer
     * @param {Object} inputData
     */
recognize:function(e){
// make a new copy of the inputData
// so we can change the inputData without messing up the other recognizers
var t=c({},e);
// is is enabled and allow recognizing?
if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=ke);
// reset when we've reached the end
56&this.state&&(this.state=1),this.state=this.process(t),
// the recognizer has recognized a gesture
// so trigger an event
30&this.state&&this.tryEmit(t)},
/**
     * return the state of the recognizer
     * the actual recognizing happens in this method
     * @virtual
     * @param {Object} inputData
     * @returns {Const} STATE
     */
process:function(e){},// jshint ignore:line
/**
     * return the preferred touch-action
     * @virtual
     * @returns {Array}
     */
getTouchAction:function(){},
/**
     * called when the gesture isn't allowed to recognize
     * like when another is being recognized or it is disabled
     * @virtual
     */
reset:function(){}},b(Oe,Se,{
/**
     * @namespace
     * @memberof AttrRecognizer
     */
defaults:{
/**
         * @type {Number}
         * @default 1
         */
pointers:1},
/**
     * Used to check if it the recognizer receives valid input, like input.distance > 10.
     * @memberof AttrRecognizer
     * @param {Object} input
     * @returns {Boolean} recognized
     */
attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},
/**
     * Process the input and return the state for the recognizer
     * @memberof AttrRecognizer
     * @param {Object} input
     * @returns {*} State
     */
process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);
// on cancel input and we've recognized before, return STATE_CANCELLED
return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:ke}}),b(De,Oe,{
/**
     * @namespace
     * @memberof PanRecognizer
     */
defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(_e),e&F&&t.push(Ce),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,a=e.deltaX,o=e.deltaY;
// lock to axis?
return i&t.direction||(6&t.direction?(i=0===a?1:a<0?2:4,n=a!=this.pX,r=Math.abs(e.deltaX)):(i=0===o?1:o<0?8:16,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Oe.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(Pe,Oe,{
/**
     * @namespace
     * @memberof PinchRecognizer
     */
defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),b(Le,Se,{
/**
     * @namespace
     * @memberof PressRecognizer
     */
defaults:{event:"press",pointers:1,time:251,// minimal time of the pointer to be pressed
threshold:9},getTouchAction:function(){return[be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;
// we only allow little movement
// and we've reached an end event, so a tap is possible
if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return ke},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),b(Qe,Oe,{
/**
     * @namespace
     * @memberof RotateRecognizer
     */
defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),b(Re,Oe,{
/**
     * @namespace
     * @memberof SwipeRecognizer
     */
defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return De.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&F&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(je,Se,{
/**
     * @namespace
     * @memberof PinchRecognizer
     */
defaults:{event:"tap",pointers:1,taps:1,interval:300,// max time between the multi-tap taps
time:250,// max time of the pointer to be down (like finger on the screen)
threshold:9,// a minimal movement is ok, but keep it low
posThreshold:10},getTouchAction:function(){return[we]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();
// we only allow little movement
// and we've reached an end event, so a tap is possible
if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||K(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&a?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)
// no failing requirements, immediately trigger the tap event
// or wait as long as the multitap interval to trigger
return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return ke},failTimeout:function(){return this._timer=p((function(){this.state=ke}),this.options.interval,this),ke},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ne.VERSION="2.0.7",
/**
 * default settings
 * @namespace
 */
Ne.defaults={
/**
     * set if DOM events are being triggered.
     * But this is slower and unused by simple implementations, so disabled by default.
     * @type {Boolean}
     * @default false
     */
domEvents:!1,
/**
     * The value for the touchAction property/fallback.
     * When set to `compute` it will magically set the correct value based on the added recognizers.
     * @type {String}
     * @default compute
     */
touchAction:Ae,
/**
     * @type {Boolean}
     * @default true
     */
enable:!0,
/**
     * EXPERIMENTAL FEATURE -- can be removed/changed
     * Change the parent input target element.
     * If Null, then it is being set the to main element.
     * @type {Null|EventTarget}
     * @default null
     */
inputTarget:null,
/**
     * force an input class
     * @type {Null|Function}
     * @default null
     */
inputClass:null,
/**
     * Default recognizer setup when calling `Hammer()`
     * When creating a new Manager these will be skipped.
     * @type {Array}
     */
preset:[
// RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
[Qe,{enable:!1}],[Pe,{enable:!1},["rotate"]],[Re,{direction:6}],[De,{direction:6},["swipe"]],[je],[je,{event:"doubletap",taps:2},["tap"]],[Le]],
/**
     * Some CSS properties can be used to improve the working of Hammer.
     * Add them to this method and they will be set when creating a new Manager.
     * @namespace
     */
cssProps:{
/**
         * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.
         * @type {String}
         * @default 'none'
         */
userSelect:"none",
/**
         * Disable the Windows Phone grippers when pressing an element.
         * @type {String}
         * @default 'none'
         */
touchSelect:"none",
/**
         * Disables the default callout shown when you touch and hold a touch target.
         * On iOS, when you touch and hold a touch target such as a link, Safari displays
         * a callout containing information about the link. This property allows you to disable that callout.
         * @type {String}
         * @default 'none'
         */
touchCallout:"none",
/**
         * Specifies whether zooming is enabled. Used by IE10>
         * @type {String}
         * @default 'none'
         */
contentZooming:"none",
/**
         * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.
         * @type {String}
         * @default 'none'
         */
userDrag:"none",
/**
         * Overrides the highlight color shown when the user taps a link or a JavaScript
         * clickable element in iOS. This property obeys the alpha value, if specified.
         * @type {String}
         * @default 'rgba(0,0,0,0)'
         */
tapHighlightColor:"rgba(0,0,0,0)"}};
/**
 * Manager
 * @param {HTMLElement} element
 * @param {Object} [options]
 * @constructor
 */
function Fe(e,t){
/**
 * create new input type manager
 * called by the Manager constructor
 * @param {Hammer} manager
 * @returns {Input}
 */
var n;this.options=c({},Ne.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(Q?ae:R?he:L?de:ee))(n,G),this.touchAction=new Ee(this,this.options.touchAction),ze(this,!0),m(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}
/**
 * add/remove the css properties as defined in manager.options.cssProps
 * @param {Manager} manager
 * @param {Boolean} add
 */
function ze(e,t){var n,r=e.element;r.style&&(m(e.options.cssProps,(function(i,a){n=O(r.style,a),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}
/**
 * trigger dom event
 * @param {String} event
 * @param {Object} data
 */Fe.prototype={
/**
     * set options
     * @param {Object} options
     * @returns {Manager}
     */
set:function(e){return c(this.options,e),
// Options that need a little more setup
e.touchAction&&this.touchAction.update(),e.inputTarget&&(
// Clean up existing event listeners and reinitialize
this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},
/**
     * stop recognizing for this session.
     * This session will be discarded, when a new [input]start event is fired.
     * When forced, the recognizer cycle is stopped immediately.
     * @param {Boolean} [force]
     */
stop:function(e){this.session.stopped=e?2:1},
/**
     * run the recognizers!
     * called by the inputHandler function on every movement of the pointers (touches)
     * it walks through all the recognizers and tries to detect the gesture that is being made
     * @param {Object} inputData
     */
recognize:function(e){var t=this.session;if(!t.stopped){var n;
// run the touch-action polyfill
this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;
// this holds the recognizer that is being recognized.
// so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED
// if no recognizer is detecting a thing, it is set to `null`
// reset when the last recognizer is recognized
// or when we're in a new session
(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var a=0;a<r.length;)n=r[a],
// find out if we are allowed try to recognize the input for this one.
// 1.   allow if the session is NOT forced stopped (see the .stop() method)
// 2.   allow if we still haven't recognized a gesture in this session, or the this recognizer is the one
//      that is being recognized.
// 3.   allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.
//      this can be setup with the `recognizeWith()` method on the recognizer.
2===t.stopped||// 1
i&&n!=i&&// 2
!n.canRecognizeWith(i)?n.reset():// 3
n.recognize(e),
// if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the
// current active recognizer. but only if we don't already have an active recognizer
!i&&14&n.state&&(i=t.curRecognizer=n),a++}},
/**
     * get a recognizer by its event name.
     * @param {Recognizer|String} recognizer
     * @returns {Recognizer|Null}
     */
get:function(e){if(e instanceof Se)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},
/**
     * add a recognizer to the manager
     * existing recognizers with the same event name will be removed
     * @param {Recognizer} recognizer
     * @returns {Recognizer|Manager}
     */
add:function(e){if(g(e,"add",this))return this;
// remove existing
var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},
/**
     * remove a recognizer by name or instance
     * @param {Recognizer|String} recognizer
     * @returns {Manager}
     */
remove:function(e){if(g(e,"remove",this))return this;
// let's make sure this recognizer exists
if(e=this.get(e)){var t=this.recognizers,n=B(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},
/**
     * bind event
     * @param {String} events
     * @param {Function} handler
     * @returns {EventEmitter} this
     */
on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return m(S(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},
/**
     * unbind event, leave emit blank to remove all handlers
     * @param {String} events
     * @param {Function} [handler]
     * @returns {EventEmitter} this
     */
off:function(e,t){if(e!==s){var n=this.handlers;return m(S(e),(function(e){t?n[e]&&n[e].splice(B(n[e],t),1):delete n[e]})),this}},
/**
     * emit event to the listeners
     * @param {String} event
     * @param {Object} data
     */
emit:function(e,t){
// we also want to trigger dom events
this.options.domEvents&&function(e,t){var n=a.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);
// no handlers, so skip it all
var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},
/**
     * destroy the manager and unbinds all events
     * it doesn't unbind dom events, that is the user own responsibility
     */
destroy:function(){this.element&&ze(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ne,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:ke,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:F,DIRECTION_ALL:30,Manager:Fe,Input:U,TouchAction:Ee,TouchInput:he,MouseInput:ee,PointerEventInput:ae,TouchMouseInput:de,SingleTouchInput:se,Recognizer:Se,AttrRecognizer:Oe,Tap:je,Pan:De,Swipe:Re,Pinch:Pe,Rotate:Qe,Press:Le,on:_,off:I,each:m,merge:A,extend:y,assign:c,inherit:b,bindFn:w,prefixed:O}),// jshint ignore:line
(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ne,(r=function(){return Ne}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},
/***/c8ba:
/***/function(e,t){var n;
// This works in non-strict mode
n=function(){return this}();try{
// This works if eval is allowed (see CSP)
n=n||new Function("return this")()}catch(e){
// This works if the window reference is available
"object"==typeof window&&(n=window)}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
e.exports=n},
/***/c8c6:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a}));
/* harmony import */var r=n("2c80"),i=n.n(r);
/* harmony import */function a(e,t,n,r){return i()(e,t,n,r)}
/***/},
/***/c8d2:
/***/function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("d039"),a=n("5899");
// check that a method works with the correct list
// of whitespaces and has a correct name
e.exports=function(e){return i((function(){return!!a[e]()||"​᠎"!=="​᠎"[e]()||r&&a[e].name!==e}))}},
/***/c8fe:
/***/function(e,t,n){var r=n("f8af");
/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},
/***/c901:
/***/function(e,t){
// 7.2.1 RequireObjectCoercible(argument)
e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e};
/***/},
/***/c92b:
/***/function(e,t,n){
// https://github.com/tc39/proposal-object-values-entries
var r=n("f083"),i=n("2584")(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},
/***/c930:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yAxisConfig=t.xAxisConfig=void 0;t.xAxisConfig={
/**
   * @description Axis name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Whether to display this axis
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Axis position
   * @type {String}
   * @default position = 'bottom'
   * @example position = 'bottom' | 'top'
   */
position:"bottom",
/**
   * @description Name gap
   * @type {Number}
   * @default nameGap = 15
   */
nameGap:15,
/**
   * @description Name location
   * @type {String}
   * @default nameLocation = 'end'
   * @example nameLocation = 'end' | 'center' | 'start'
   */
nameLocation:"end",
/**
   * @description Name default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
nameTextStyle:{fill:"#333",fontSize:10},
/**
   * @description Axis min value
   * @type {String|Number}
   * @default min = '20%'
   * @example min = '20%' | 0
   */
min:"20%",
/**
   * @description Axis max value
   * @type {String|Number}
   * @default max = '20%'
   * @example max = '20%' | 0
   */
max:"20%",
/**
   * @description Axis value interval
   * @type {Number}
   * @default interval = null
   * @example interval = 100
   */
interval:null,
/**
   * @description Min interval
   * @type {Number}
   * @default minInterval = null
   * @example minInterval = 1
   */
minInterval:null,
/**
   * @description Max interval
   * @type {Number}
   * @default maxInterval = null
   * @example maxInterval = 100
   */
maxInterval:null,
/**
   * @description Boundary gap
   * @type {Boolean}
   * @default boundaryGap = null
   * @example boundaryGap = true
   */
boundaryGap:null,
/**
   * @description Axis split number
   * @type {Number}
   * @default splitNumber = 5
   */
splitNumber:5,
/**
   * @description Axis line configuration
   * @type {Object}
   */
axisLine:{
/**
     * @description Whether to display axis line
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis line default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#333",lineWidth:1}},
/**
   * @description Axis tick configuration
   * @type {Object}
   */
axisTick:{
/**
     * @description Whether to display axis tick
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis tick default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#333",lineWidth:1}},
/**
   * @description Axis label configuration
   * @type {Object}
   */
axisLabel:{
/**
     * @description Whether to display axis label
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis label formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = '{value}件'
     * @example formatter = (dataItem) => (dataItem.value)
     */
formatter:null,
/**
     * @description Axis label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fill:"#333",fontSize:10,rotate:0}},
/**
   * @description Axis split line configuration
   * @type {Object}
   */
splitLine:{
/**
     * @description Whether to display axis split line
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Axis split line default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#d4d4d4",lineWidth:1}},
/**
   * @description X axis render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = -20
   */
rLevel:-20,
/**
   * @description X axis animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description X axis animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50};t.yAxisConfig={
/**
   * @description Axis name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Whether to display this axis
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Axis position
   * @type {String}
   * @default position = 'left'
   * @example position = 'left' | 'right'
   */
position:"left",
/**
   * @description Name gap
   * @type {Number}
   * @default nameGap = 15
   */
nameGap:15,
/**
   * @description Name location
   * @type {String}
   * @default nameLocation = 'end'
   * @example nameLocation = 'end' | 'center' | 'start'
   */
nameLocation:"end",
/**
   * @description name default style configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
nameTextStyle:{fill:"#333",fontSize:10},
/**
   * @description Axis min value
   * @type {String|Number}
   * @default min = '20%'
   * @example min = '20%' | 0
   */
min:"20%",
/**
   * @description Axis max value
   * @type {String|Number}
   * @default max = '20%'
   * @example max = '20%' | 0
   */
max:"20%",
/**
   * @description Axis value interval
   * @type {Number}
   * @default interval = null
   * @example interval = 100
   */
interval:null,
/**
   * @description Min interval
   * @type {Number}
   * @default minInterval = null
   * @example minInterval = 1
   */
minInterval:null,
/**
   * @description Max interval
   * @type {Number}
   * @default maxInterval = null
   * @example maxInterval = 100
   */
maxInterval:null,
/**
   * @description Boundary gap
   * @type {Boolean}
   * @default boundaryGap = null
   * @example boundaryGap = true
   */
boundaryGap:null,
/**
   * @description Axis split number
   * @type {Number}
   * @default splitNumber = 5
   */
splitNumber:5,
/**
   * @description Axis line configuration
   * @type {Object}
   */
axisLine:{
/**
     * @description Whether to display axis line
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis line default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#333",lineWidth:1}},
/**
   * @description Axis tick configuration
   * @type {Object}
   */
axisTick:{
/**
     * @description Whether to display axis tick
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis tick default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#333",lineWidth:1}},
/**
   * @description Axis label configuration
   * @type {Object}
   */
axisLabel:{
/**
     * @description Whether to display axis label
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis label formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = '{value}件'
     * @example formatter = (dataItem) => (dataItem.value)
     */
formatter:null,
/**
     * @description Axis label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fill:"#333",fontSize:10,rotate:0}},
/**
   * @description Axis split line configuration
   * @type {Object}
   */
splitLine:{
/**
     * @description Whether to display axis split line
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis split line default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#d4d4d4",lineWidth:1}},
/**
   * @description Y axis render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = -20
   */
rLevel:-20,
/**
   * @description Y axis animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Y axis animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50}},
/***/c94e:
/***/function(e,t,n){
// Thank's IE8 for his funny defineProperty
e.exports=!n("f937")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));
/***/},
/***/c973:
/***/function(e,t,n){function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}n("d3b7"),e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/c9a4:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"o",(function(){return A})),
/* harmony export (binding) */n.d(t,"b",(function(){return b})),
/* harmony export (binding) */n.d(t,"a",(function(){return w})),
/* harmony export (binding) */n.d(t,"n",(function(){return x})),
/* harmony export (binding) */n.d(t,"k",(function(){return C})),
/* unused harmony export isTreeNode */
/* harmony export (binding) */n.d(t,"j",(function(){return I})),
/* unused harmony export isCheckDisabled */
/* unused harmony export traverseTreeNodes */
/* harmony export (binding) */n.d(t,"l",(function(){return S})),
/* harmony export (binding) */n.d(t,"i",(function(){return B})),
/* harmony export (binding) */n.d(t,"c",(function(){return M})),
/* harmony export (binding) */n.d(t,"d",(function(){return T})),
/* harmony export (binding) */n.d(t,"g",(function(){return D})),
/* harmony export (binding) */n.d(t,"h",(function(){return P})),
/* harmony export (binding) */n.d(t,"m",(function(){return L})),
/* harmony export (binding) */n.d(t,"e",(function(){return Q})),
/* harmony export (binding) */n.d(t,"f",(function(){return R}));
/* unused harmony export getDataAndAria */
/* harmony import */var r=n("9b57"),i=n.n(r),a=n("b24f"),o=n.n(a),s=n("1098"),c=n.n(s),l=n("8e8e"),u=n.n(l),h=n("d96e"),f=n.n(h),d=n("0464"),p=n("cdd1"),g=n("daa3"),m=.25,v=2,y=!1;
/* harmony import */function A(){y||(y=!0,f()(!1,"Tree only accept TreeNode as children."))}function b(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function w(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function x(e){return e.split("-")}function C(e,t){return e+"-"+t}function _(e){return Object(g.o)(e).isTreeNode}function I(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(_)}function E(e){var t=Object(g.l)(e)||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function k(e,t){!function n(r,i,a){var o=r?r.componentOptions.children:e,s=r?C(a.pos,i):0,c=I(o);
// Process node if is not root
if(r){var l=r.key;l||null!=l||(l=s);var u={node:r,index:i,pos:s,key:l,parentPos:a.node?a.pos:null};t(u)}
// Process children node
c.forEach((function(e,t){n(e,t,{node:r,pos:s})}))}(null)}
/**
 * Use `rc-util` `toArray` to get the children list which keeps the key.
 * And return single node if children is only one(This can avoid `key` missing check).
 */function S(){var e=arguments[1],t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(e);return 1===t.length?t[0]:t}function B(e,t){var n=Object(g.l)(t),r=n.eventKey,i=n.pos,a=[];return k(e,(function(e){var t=e.key;a.push(t)})),a.push(r||i),a}function M(e,t){var n=e.clientY,r=t.$refs.selectHandle.getBoundingClientRect(),i=r.top,a=r.bottom,o=r.height,s=Math.max(o*m,v);return n<=i+s?-1:n>=a-s?1:0}
/**
 * Return selectedKeys according with multiple prop
 * @param selectedKeys
 * @param props
 * @returns [string]
 */function T(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}
/**
 * Since React internal will convert key to string,
 * we need do this to avoid `checkStrictly` use number match
 */
// function keyListToString (keyList) {
//   if (!keyList) return keyList
//   return keyList.map(key => String(key))
// }
var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{props:Object(d.a)(e,["on","key","class","className","style"]),on:e.on||{},class:e.class||e.className,style:e.style,key:e.key}};function D(e,t,n){if(!t)return[];var r=(n||{}).processProps,i=void 0===r?O:r;return(Array.isArray(t)?t:[t]).map((function(t){var r=t.children,a=u()(t,["children"]),o=D(e,r,n);return e(p.a,i(a),[o])}))}
// TODO: ========================= NEW LOGIC =========================
/**
 * Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select`
 * @param treeNodes
 * @param processTreeEntity  User can customize the entity
 */function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=new Map,o=new Map,s={posEntities:a,keyEntities:o};return n&&(s=n(s)||s),k(e,(function(e){var t=e.node,n=e.index,i=e.pos,c=e.key,l=e.parentPos,u={node:t,index:n,key:c,pos:i};a.set(i,u),o.set(c,u),
// Fill children
u.parent=a.get(l),u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,s)})),i&&i(s),s}
/**
 * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
 */function L(e){if(!e)return null;
// Convert keys to object format
var t=void 0;if(Array.isArray(e))
// [Legacy] Follow the api doc
t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(void 0===e?"undefined":c()(e)))return f()(!1,"`checkedKeys` is not an array or an object"),null;
// keyProps.checkedKeys = keyListToString(keyProps.checkedKeys)
// keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys)
t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}
/**
 * Conduct check state by the keyList. It will conduct up & from the provided key.
 * If the conduct path reach the disabled or already checked / unchecked node will stop conduct.
 * @param keyList       list of keys
 * @param isCheck       is check the node or not
 * @param keyEntities   parsed by `convertTreeToEntities` function in Tree
 * @param checkStatus   Can pass current checked status for process (usually for uncheck operation)
 * @returns {{checkedKeys: [], halfCheckedKeys: []}}
 */function Q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new Map,a=new Map;
// Conduct up
function s(e){if(i.get(e)!==t){var r=n.get(e);if(r){var o=r.children,c=r.parent;if(!E(r.node)){
// Check child node checked status
var l=!0,u=!1;// Child checked or half checked
(o||[]).filter((function(e){return!E(e.node)})).forEach((function(e){var t=e.key,n=i.get(t),r=a.get(t);(n||r)&&(u=!0),n||(l=!1)})),
// Update checked status
t?i.set(e,l):i.set(e,!1),a.set(e,u),c&&s(c.key)}}}}
// Conduct down
function c(e){if(i.get(e)!==t){var r=n.get(e);if(r){var a=r.children;E(r.node)||(i.set(e,t),(a||[]).forEach((function(e){c(e.key)})))}}}function l(e){var r=n.get(e);if(r){var a=r.children,o=r.parent,l=r.node;i.set(e,t),E(l)||(
// Conduct down
(a||[]).filter((function(e){return!E(e.node)})).forEach((function(e){c(e.key)})),
// Conduct up
o&&s(o.key))}else f()(!1,"'"+e+"' does not exist in the tree.")}// Record the key has some child checked (include child half checked)
(r.checkedKeys||[]).forEach((function(e){i.set(e,!0)})),(r.halfCheckedKeys||[]).forEach((function(e){a.set(e,!0)})),(e||[]).forEach((function(e){l(e)}));var u=[],h=[],d=!0,p=!1,g=void 0;try{for(var m,v=i[Symbol.iterator]();!(d=(m=v.next()).done);d=!0){var y=m.value,A=o()(y,2),b=A[0];A[1]&&u.push(b)}
// Fill half checked list
}catch(e){p=!0,g=e}finally{try{!d&&v.return&&v.return()}finally{if(p)throw g}}var w=!0,x=!1,C=void 0;try{for(var _,I=a[Symbol.iterator]();!(w=(_=I.next()).done);w=!0){var k=_.value,S=o()(k,2),B=S[0],M=S[1];!i.get(B)&&M&&h.push(B)}}catch(e){x=!0,C=e}finally{try{!w&&I.return&&I.return()}finally{if(x)throw C}}return{checkedKeys:u,halfCheckedKeys:h}}
/**
 * If user use `autoExpandParent` we should get the list of parent node
 * @param keyList
 * @param keyEntities
 */function R(e,t){var n=new Map;function r(e){if(!n.get(e)){var i=t.get(e);if(i){n.set(e,!0);var a=i.parent,o=i.node,s=Object(g.l)(o);s&&s.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),[].concat(i()(n.keys()))}
/**
 * Returns only the data- and aria- key/value pairs
 * @param {object} props
 */},
/***/c9ca:
/***/function(e,t,n){var r=n("ef5d")("length");
/**
 * Gets the size of an ASCII `string`.
 *
 * @private
 * @param {string} string The string inspect.
 * @returns {number} Returns the string size.
 */e.exports=r},
/***/ca54:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("26ee").a.Symbol;
/** Built-in value references. */
/* harmony default export */t.a=r},
/***/ca80:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("dce8"),i=[0,0],a=[0,0],o=new r.a,s=new r.a,c=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.a;for(n=0;n<2;n++)this._axes[n]=new r.a;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,c=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,c),n[3].set(a,c),t)for(var l=0;l<4;l++)n[l].transform(t);r.a.sub(i[0],n[1],n[0]),r.a.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return o.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,e,o,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,o,s,i,-1)&&(n=!1,i)||i||r.a.copy(t,n?o:s),n},e.prototype._intersectCheckOneSide=function(e,t,n,o,s,c){for(var l=!0,u=0;u<2;u++){var h=this._axes[u];if(this._getProjMinMaxOnAxis(u,e._corners,i),this._getProjMinMaxOnAxis(u,t._corners,a),i[1]<a[0]||i[0]>a[1]){if(l=!1,s)return l;var f=Math.abs(a[0]-i[1]),d=Math.abs(i[0]-a[1]);Math.min(f,d)>o.len()&&(f<d?r.a.scale(o,h,-f*c):r.a.scale(o,h,d*c))}else if(n){f=Math.abs(a[0]-i[1]),d=Math.abs(i[0]-a[1]);Math.min(f,d)<n.len()&&(f<d?r.a.scale(n,h,f*c):r.a.scale(n,h,-d*c))}}return l},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}();
/* harmony default export */t.a=c},
/***/ca84:
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),a=n("fc6a"),o=n("4d64").indexOf,s=n("d012"),c=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);
// Don't enum bug & hidden keys
for(;t.length>l;)i(r,n=t[l++])&&(~o(u,n)||c(u,n));return u}},
/***/caad:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,a=n("d039"),o=n("44d2");
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
r({target:"Array",proto:!0,forced:a((function(){
// eslint-disable-next-line es/no-array-prototype-includes -- detection
return!Array(1).includes()}))},{includes:function(e/* , fromIndex = 0 */){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
o("includes")},
/***/cb11:
/***/function(e,t,n){"use strict";
/* unused harmony export LineShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=n("9cf9"),o={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},c=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var c=Object(a.b)(o,t,this.style);n=c.x1,r=c.y1,i=c.x2,s=c.y2}else n=t.x1,r=t.y1,i=t.x2,s=t.y2;var l=t.percent;0!==l&&(e.moveTo(n,r),l<1&&(i=n*(1-l)+i*l,s=r*(1-l)+s*l),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i.b);
/* harmony import */c.prototype.type="line",
/* harmony default export */t.a=c},
/***/cb27:
/***/function(e,t,n){"use strict";var r=n("e330"),i=Set.prototype;
// eslint-disable-next-line es/no-set -- safe
e.exports={
// eslint-disable-next-line es/no-set -- safe
Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},
/***/cb29:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("81d5"),a=n("44d2");
// `Array.prototype.fill` method
// https://tc39.es/ecma262/#sec-array.prototype.fill
r({target:"Array",proto:!0},{fill:i}),
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
a("fill")},
/***/cb2d:
/***/function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),a=n("13d2"),o=n("6374");e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){/* empty */}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},
/***/cb5a:
/***/function(e,t,n){var r=n("9638");
/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},
/***/cbe5:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return k}));
// UNUSED EXPORTS: DEFAULT_PATH_ANIMATION_PROPS
// EXTERNAL MODULE: ./node_modules/zrender/node_modules/tslib/tslib.es6.js
var r=n("21a1"),i=n("19eb"),a=n("20c8"),o=n("9680"),s=n("4a3f");
// EXTERNAL MODULE: ./node_modules/zrender/lib/graphic/Displayable.js
// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/cubic.js
function c(e,t,n,r,i,a,o,c,l,u,h){if(0===l)return!1;var f=l;return!(h>t+f&&h>r+f&&h>a+f&&h>c+f||h<t-f&&h<r-f&&h<a-f&&h<c-f||u>e+f&&u>n+f&&u>i+f&&u>o+f||u<e-f&&u<n-f&&u<i-f&&u<o-f)&&s.e(e,t,n,r,i,a,o,c,u,h,null)<=f/2}
// EXTERNAL MODULE: ./node_modules/zrender/lib/contain/quadratic.js
var l=n("68ab"),u=n("857d"),h=2*Math.PI;
// EXTERNAL MODULE: ./node_modules/zrender/lib/contain/util.js
function f(e,t,n,r,i,a,o,s,c){if(0===o)return!1;var l=o;s-=e,c-=t;var f=Math.sqrt(s*s+c*c);if(f-l>n||f+l<n)return!1;if(Math.abs(r-i)%h<1e-4)return!0;if(a){var d=r;r=Object(u.a)(i),i=Object(u.a)(d)}else r=Object(u.a)(r),i=Object(u.a)(i);r>i&&(i+=h);var p=Math.atan2(c,s);return p<0&&(p+=h),p>=r&&p<=i||p+h>=r&&p+h<=i}
// EXTERNAL MODULE: ./node_modules/zrender/lib/contain/windingLine.js
var d=n("8728"),p=a.a.CMD,g=2*Math.PI;
// CONCATENATED MODULE: ./node_modules/zrender/lib/contain/path.js
var m=[-1,-1,-1],v=[-1,-1];function y(e,t,n,r,i,a,o,c,l,u){if(u>t&&u>r&&u>a&&u>c||u<t&&u<r&&u<a&&u<c)return 0;var h,f=s.f(t,r,a,c,u,m);if(0===f)return 0;for(var d=0,p=-1,g=void 0,y=void 0,A=0;A<f;A++){var b=m[A],w=0===b||1===b?.5:1;s.a(e,n,i,o,b)<l||(p<0&&(p=s.c(t,r,a,c,v),v[1]<v[0]&&p>1&&(h=void 0,h=v[0],v[0]=v[1],v[1]=h),g=s.a(t,r,a,c,v[0]),p>1&&(y=s.a(t,r,a,c,v[1]))),2===p?b<v[0]?d+=g<t?w:-w:b<v[1]?d+=y<g?w:-w:d+=c<y?w:-w:b<v[0]?d+=g<t?w:-w:d+=c<g?w:-w)}return d}function A(e,t,n,r,i,a,o,c){if(c>t&&c>r&&c>a||c<t&&c<r&&c<a)return 0;var l=s.m(t,r,a,c,m);if(0===l)return 0;var u=s.j(t,r,a);if(u>=0&&u<=1){for(var h=0,f=s.h(t,r,a,u),d=0;d<l;d++){var p=0===m[d]||1===m[d]?.5:1;s.h(e,n,i,m[d])<o||(m[d]<u?h+=f<t?p:-p:h+=a<f?p:-p)}return h}p=0===m[0]||1===m[0]?.5:1;return s.h(e,n,i,m[0])<o?0:a<t?p:-p}function b(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);m[0]=-c,m[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=g-1e-4){r=0,i=g;var u=a?1:-1;return o>=m[0]+e&&o<=m[1]+e?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=g,i+=g);for(var f=0,d=0;d<2;d++){var p=m[d];if(p+e>o){var v=Math.atan2(s,p);u=a?1:-1;v<0&&(v=g+v),(v>=r&&v<=i||v+g>=r&&v+g<=i)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),f+=u)}}return f}function w(e,t,n,r,i){for(var a,s,u,h,g=e.data,m=e.len(),v=0,w=0,x=0,C=0,_=0,I=0;I<m;){var E=g[I++],k=1===I;switch(E===p.M&&I>1&&(n||(v+=Object(d.a)(w,x,C,_,r,i))),k&&(C=w=g[I],_=x=g[I+1]),E){case p.M:w=C=g[I++],x=_=g[I++];break;case p.L:if(n){if(o.a(w,x,g[I],g[I+1],t,r,i))return!0}else v+=Object(d.a)(w,x,g[I],g[I+1],r,i)||0;w=g[I++],x=g[I++];break;case p.C:if(n){if(c(w,x,g[I++],g[I++],g[I++],g[I++],g[I],g[I+1],t,r,i))return!0}else v+=y(w,x,g[I++],g[I++],g[I++],g[I++],g[I],g[I+1],r,i)||0;w=g[I++],x=g[I++];break;case p.Q:if(n){if(l.a(w,x,g[I++],g[I++],g[I],g[I+1],t,r,i))return!0}else v+=A(w,x,g[I++],g[I++],g[I],g[I+1],r,i)||0;w=g[I++],x=g[I++];break;case p.A:var S=g[I++],B=g[I++],M=g[I++],T=g[I++],O=g[I++],D=g[I++];I+=1;var P=!!(1-g[I++]);a=Math.cos(O)*M+S,s=Math.sin(O)*T+B,k?(C=a,_=s):v+=Object(d.a)(w,x,a,s,r,i);var L=(r-S)*T/M+S;if(n){if(f(S,B,T,O,O+D,P,t,L,i))return!0}else v+=b(S,B,T,O,O+D,P,L,i);w=Math.cos(O+D)*M+S,x=Math.sin(O+D)*T+B;break;case p.R:if(C=w=g[I++],_=x=g[I++],a=C+g[I++],s=_+g[I++],n){if(o.a(C,_,a,_,t,r,i)||o.a(a,_,a,s,t,r,i)||o.a(a,s,C,s,t,r,i)||o.a(C,s,C,_,t,r,i))return!0}else v+=Object(d.a)(a,_,a,s,r,i),v+=Object(d.a)(C,s,C,_,r,i);break;case p.Z:if(n){if(o.a(w,x,C,_,t,r,i))return!0}else v+=Object(d.a)(w,x,C,_,r,i);w=C,x=_}}return n||(u=x,h=_,Math.abs(u-h)<1e-4)||(v+=Object(d.a)(w,x,C,_,r,i)||0),0!==v}
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
var x=n("6d8b"),C=n("41ef"),_=n("2cf4"),I=n("4bc4"),E=n("8582"),k=Object(x.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.b),S={style:Object(x.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.a.style)},B=E.a.concat(["invisible","culling","z","z2","zlevel","parent"]),M=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.a)(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<B.length;++s)i[B[s]]=this[B[s]];i.__dirty|=I.a}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(x.keys)(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];"style"===a?this.style?Object(x.extend)(this.style,o):this.useStyle(o):"shape"===a?Object(x.extend)(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(x.isString)(e)){var t=Object(C.lum)(e,0);return t>.5?_.a:t>.2?_.c:_.d}if(e)return _.d}return _.a},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(x.isString)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(C.lum)(e,0)<_.b)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~I.b},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new a.a(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&I.b)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,null==c?4:c)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,n,r){return w(e,t,!0,n,r)}(a,o/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return w(e,0,!1,t,n)}(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=I.b,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Object(x.extend)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&I.b)},t.prototype.createStyle=function(e){return Object(x.createObject)(k,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(x.extend)({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,c=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=Object(x.extend)({},r.shape),Object(x.extend)(s,n.shape)):(s=Object(x.extend)({},i?this.shape:r.shape),Object(x.extend)(s,n.shape)):c&&(s=r.shape),s)if(a){this.shape=Object(x.extend)({},this.shape);for(var l={},u=Object(x.keys)(s),h=0;h<u.length;h++){var f=u[h];"object"==typeof s[f]?this.shape[f]=s[f]:l[f]=s[f]}this._transitionState(t,{shape:l},o)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return S},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Object(r.a)(n,t),n.prototype.getDefaultStyle=function(){return Object(x.clone)(e.style)},n.prototype.getDefaultShape=function(){return Object(x.clone)(e.shape)},n}(t);for(var i in e)"function"==typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=I.a|I.c|I.b)),t}(i.c);
// EXTERNAL MODULE: ./node_modules/zrender/lib/tool/color.js
t.b=M},
/***/cc12:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("861d"),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},
/***/cc15:
/***/function(e,t,n){var r=n("b367")("wks"),i=n("8b1a"),a=n("ef08").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},
/***/cc45:
/***/function(e,t,n){var r=n("1a2d0"),i=n("b047f"),a=n("99d3"),o=a&&a.isMap,s=o?i(o):r;
/* Node.js helper references. */e.exports=s},
/***/cc6d:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gaugeConfig=void 0;var r={
/**
   * @description Whether to display this gauge
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Legend name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Radius of gauge
   * @type {String|Number}
   * @default radius = '60%'
   * @example radius = '60%' | 100
   */
radius:"60%",
/**
   * @description Center point of gauge
   * @type {Array}
   * @default center = ['50%','50%']
   * @example center = ['50%','50%'] | [100, 100]
   */
center:["50%","50%"],
/**
   * @description Gauge start angle
   * @type {Number}
   * @default startAngle = -(Math.PI / 4) * 5
   * @example startAngle = -Math.PI
   */
startAngle:-Math.PI/4*5,
/**
   * @description Gauge end angle
   * @type {Number}
   * @default endAngle = Math.PI / 4
   * @example endAngle = 0
   */
endAngle:Math.PI/4,
/**
   * @description Gauge min value
   * @type {Number}
   * @default min = 0
   */
min:0,
/**
   * @description Gauge max value
   * @type {Number}
   * @default max = 100
   */
max:100,
/**
   * @description Gauge split number
   * @type {Number}
   * @default splitNum = 5
   */
splitNum:5,
/**
   * @description Gauge arc line width
   * @type {Number}
   * @default arcLineWidth = 15
   */
arcLineWidth:15,
/**
   * @description Gauge chart data
   * @type {Array}
   * @default data = []
   */
data:[],
/**
   * @description Data item arc default style configuration
   * @type {Object}
   * @default dataItemStyle = {Configuration Of Class Style}
   */
dataItemStyle:{},
/**
   * @description Axis tick configuration
   * @type {Object}
   */
axisTick:{
/**
     * @description Whether to display axis tick
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis tick length
     * @type {Number}
     * @default tickLength = 6
     */
tickLength:6,
/**
     * @description Axis tick default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#999",lineWidth:1}},
/**
   * @description Axis label configuration
   * @type {Object}
   */
axisLabel:{
/**
     * @description Whether to display axis label
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Axis label data (Can be calculated automatically)
     * @type {Array}
     * @default data = [Number...]
     */
data:[],
/**
     * @description Axis label formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = '{value}%'
     * @example formatter = (labelItem) => (labelItem.value)
     */
formatter:null,
/**
     * @description Axis label gap between label and axis tick
     * @type {String|Function}
     * @default labelGap = 5
     */
labelGap:5,
/**
     * @description Axis label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{}},
/**
   * @description Gauge pointer configuration
   * @type {Object}
   */
pointer:{
/**
     * @description Whether to display pointer
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Pointer value index of data
     * @type {Number}
     * @default valueIndex = 0 (pointer.value = data[0].value)
     */
valueIndex:0,
/**
     * @description Pointer default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{scale:[1,1],fill:"#fb7293"}},
/**
   * @description Data item arc detail configuration
   * @type {Object}
   */
details:{
/**
     * @description Whether to display details
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Details formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = '{value}%'
     * @example formatter = '{name}%'
     * @example formatter = (dataItem) => (dataItem.value)
     */
formatter:null,
/**
     * @description Details position offset
     * @type {Array}
     * @default offset = [0, 0]
     * @example offset = [10, 10]
     */
offset:[0,0],
/**
     * @description Value fractional precision
     * @type {Number}
     * @default valueToFixed = 0
     */
valueToFixed:0,
/**
     * @description Details position
     * @type {String}
     * @default position = 'center'
     * @example position = 'start' | 'center' | 'end'
     */
position:"center",
/**
     * @description Details default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},
/**
   * @description Gauge background arc configuration
   * @type {Object}
   */
backgroundArc:{
/**
     * @description Whether to display background arc
     * @type {Boolean}
     * @default show = true
     */
show:!0,
/**
     * @description Background arc default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{stroke:"#e0e0e0"}},
/**
   * @description Gauge chart render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 10
   */
rLevel:10,
/**
   * @description Gauge animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Gauge animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50};t.gaugeConfig=r},
/***/cc98:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("4738").CONSTRUCTOR,o=n("d256"),s=n("d066"),c=n("1626"),l=n("cb2d"),u=o&&o.prototype;
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
if(
// `Promise.prototype.catch` method
// https://tc39.es/ecma262/#sec-promise.prototype.catch
r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(o)){var h=s("Promise").prototype.catch;u.catch!==h&&l(u,"catch",h,{unsafe:!0})}
/***/},
/***/cca6:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("60da");
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
// eslint-disable-next-line es/no-object-assign -- required for testing
r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},
/***/cccd:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("e0d3");
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * @return {string} If large mode changed, return string 'reset';
 */function i(){var e=Object(r.o)();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}
/***/},
/***/cd1a:
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("796d")},
/***/cd3f:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e,n){
/**
 * lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="npm" -o ./`
 * Copyright jQuery Foundation and other contributors <https://jquery.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
/** Used as the size to enable large array optimizations. */
var r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Boolean]",s="[object Date]",c="[object Function]",l="[object GeneratorFunction]",u="[object Map]",h="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",y="[object WeakMap]",A="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",I="[object Int32Array]",E="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",B="[object Uint32Array]",M=/\w*$/,T=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,D={};
/** Used to stand-in for `undefined` hash values. */D[a]=D["[object Array]"]=D[A]=D[b]=D[o]=D[s]=D[w]=D[x]=D[C]=D[_]=D[I]=D[u]=D[h]=D[f]=D[p]=D[g]=D[m]=D[v]=D[E]=D[k]=D[S]=D[B]=!0,D["[object Error]"]=D[c]=D[y]=!1;
/** Detect free variable `global` from Node.js. */
var P="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,Q=P||L||Function("return this")(),R=t&&!t.nodeType&&t,j=R&&"object"==typeof n&&n&&!n.nodeType&&n,N=j&&j.exports===R;
/** Detect free variable `self`. */
/**
 * Adds the key-value `pair` to `map`.
 *
 * @private
 * @param {Object} map The map to modify.
 * @param {Array} pair The key-value pair to add.
 * @returns {Object} Returns `map`.
 */
function F(e,t){
// Don't return `map.set` because it's not chainable in IE 11.
return e.set(t[0],t[1]),e}
/**
 * Adds `value` to `set`.
 *
 * @private
 * @param {Object} set The set to modify.
 * @param {*} value The value to add.
 * @returns {Object} Returns `set`.
 */function z(e,t){
// Don't return `set.add` because it's not chainable in IE 11.
return e.add(t),e}
/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
/**
 * A specialized version of `_.reduce` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {*} [accumulator] The initial value.
 * @param {boolean} [initAccum] Specify using the first element of `array` as
 *  the initial value.
 * @returns {*} Returns the accumulated value.
 */
function H(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
/**
 * Checks if `value` is a host object in IE < 9.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
 */
function U(e){
// Many host objects are `Object` objects that can coerce to strings
// despite having improperly defined `toString` methods.
var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */function V(e,t){return function(n){return e(t(n))}}
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}
/** Used for built-in method references. */var q,Y=Array.prototype,K=Function.prototype,$=Object.prototype,J=Q["__core-js_shared__"],X=(q=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",Z=K.toString,ee=$.hasOwnProperty,te=$.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=N?Q.Buffer:void 0,ie=Q.Symbol,ae=Q.Uint8Array,oe=V(Object.getPrototypeOf,Object),se=Object.create,ce=$.propertyIsEnumerable,le=Y.splice,ue=Object.getOwnPropertySymbols,he=re?re.isBuffer:void 0,fe=V(Object.keys,Object),de=je(Q,"DataView"),pe=je(Q,"Map"),ge=je(Q,"Promise"),me=je(Q,"Set"),ve=je(Q,"WeakMap"),ye=je(Object,"create"),Ae=Ue(de),be=Ue(pe),we=Ue(ge),xe=Ue(me),Ce=Ue(ve),_e=ie?ie.prototype:void 0,Ie=_e?_e.valueOf:void 0;
/** Used to detect overreaching core-js shims. */
/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Be(e){this.__data__=new ke(e)}
/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function Me(e,t){
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
// Safari 9 makes `arguments.length` enumerable in strict mode.
var n=Ve(e)||
/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
function(e){
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
return function(e){
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
return function(e){return!!e&&"object"==typeof e}
/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */(e)&&We(e)}
/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||te.call(e)==a)}
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!ee.call(e,o)||i&&("length"==o||ze(o,r))||n.push(o);return n}
/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */function Te(e,t,n){var r=e[t];ee.call(e,t)&&Ge(r,n)&&(void 0!==n||t in e)||(e[t]=n)}
/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */function Oe(e,t){for(var n=e.length;n--;)if(Ge(e[n][0],t))return n;return-1}
/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @param {boolean} [isFull] Specify a clone including symbols.
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function De(e,t,n,r,i,d,y){var T;if(r&&(T=d?r(e,i,d,y):r(e)),void 0!==T)return T;if(!Ke(e))return e;var O=Ve(e);if(O){if(T=
/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function(e){var t=e.length,n=e.constructor(t);
// Add properties assigned by `RegExp#exec`.
t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}
/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */(e),!t)
/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}
/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */(e,T)}else{var P=Fe(e),L=P==c||P==l;if(qe(e))
/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}
/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */(e,t);if(P==f||P==a||L&&!d){if(U(e))return d?e:{};if(T=function(e){return"function"!=typeof e.constructor||He(e)?{}:(t=oe(e),Ke(t)?se(t):{});
/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} prototype The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var t;
/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */}
/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {Function} cloneFunc The function to clone values.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */(L?{}:e),!t)
/**
 * Copies own symbol properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
return function(e,t){return Qe(e,Ne(e),t)}
/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */(e,function(e,t){return e&&Qe(t,$e(t),e)}(T,e))}else{if(!D[P])return d?e:{};T=function(e,t,n,r){var i=e.constructor;switch(t){case A:return Le(e);case o:case s:return new i(+e);case b:
/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}
/**
 * Creates a clone of `map`.
 *
 * @private
 * @param {Object} map The map to clone.
 * @param {Function} cloneFunc The function to clone values.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned map.
 */(e,r);case w:case x:case C:case _:case I:case E:case k:case S:case B:
/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(G(e),!0):G(e);return H(r,F,new e.constructor)}
/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */(e,r,n);case h:case m:return new i(e);case p:return function(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t}
/**
 * Creates a clone of `set`.
 *
 * @private
 * @param {Object} set The set to clone.
 * @param {Function} cloneFunc The function to clone values.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned set.
 */(e);case g:return function(e,t,n){var r=t?n(W(e),!0):W(e);return H(r,z,new e.constructor)}
/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */(e,r,n);case v:return a=e,Ie?Object(Ie.call(a)):{}}var a}
/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */(e,P,De,t)}}
// Check for circular references and return its corresponding clone.
y||(y=new Be);var Q=y.get(e);if(Q)return Q;if(y.set(e,T),!O)var R=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}
/**
 * The base implementation of `getTag`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */(e,$e,Ne)}
/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */(e):$e(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,(function(i,a){R&&(i=e[a=i]),
// Recursively populate clone (susceptible to call stack limits).
Te(T,a,De(i,t,n,r,a,e,y))})),T}
/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function Pe(e){return!(!Ke(e)||(t=e,X&&X in t))&&(Ye(e)||U(e)?ne:T).test(Ue(e));
/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
var t;
/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */}
/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */function Le(e){var t=new e.constructor(e.byteLength);return new ae(t).set(new ae(e)),t}function Qe(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;Te(n,o,void 0===s?e[o]:s)}return n}function Re(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}
/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */function je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}
/**
 * Creates an array of the own enumerable symbol properties of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
// Add methods to `Hash`.
Ee.prototype.clear=function(){this.__data__=ye?ye(null):{}}
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */,Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]}
/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */,Ee.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0}
/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */,Ee.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:ee.call(t,e)}
/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */,Ee.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},
// Add methods to `ListCache`.
ke.prototype.clear=function(){this.__data__=[]}
/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */,ke.prototype.delete=function(e){var t=this.__data__,n=Oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),!0)}
/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */,ke.prototype.get=function(e){var t=this.__data__,n=Oe(t,e);return n<0?void 0:t[n][1]}
/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */,ke.prototype.has=function(e){return Oe(this.__data__,e)>-1}
/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */,ke.prototype.set=function(e,t){var n=this.__data__,r=Oe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},
// Add methods to `MapCache`.
Se.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||ke),string:new Ee}}
/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */,Se.prototype.delete=function(e){return Re(this,e).delete(e)}
/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */,Se.prototype.get=function(e){return Re(this,e).get(e)}
/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */,Se.prototype.has=function(e){return Re(this,e).has(e)}
/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */,Se.prototype.set=function(e,t){return Re(this,e).set(e,t),this},
// Add methods to `Stack`.
Be.prototype.clear=function(){this.__data__=new ke}
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */,Be.prototype.delete=function(e){return this.__data__.delete(e)}
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */,Be.prototype.get=function(e){return this.__data__.get(e)}
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */,Be.prototype.has=function(e){return this.__data__.has(e)}
/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */,Be.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Se(r)}return n.set(e,t),this};var Ne=ue?V(ue,Object):
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function(){return[]}
/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */,Fe=function(e){return te.call(e)};
/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */function ze(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$)}
/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to process.
 * @returns {string} Returns the source code.
 */function Ue(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}
/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function Ge(e,t){return e===t||e!=e&&t!=t}
// Fallback for data views, maps, sets, and weak maps in IE 11,
// for data views in Edge < 14, and promises in Node.js.
(de&&Fe(new de(new ArrayBuffer(1)))!=b||pe&&Fe(new pe)!=u||ge&&Fe(ge.resolve())!=d||me&&Fe(new me)!=g||ve&&Fe(new ve)!=y)&&(Fe=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case Ae:return b;case be:return u;case we:return d;case xe:return g;case Ce:return y}return t});var Ve=Array.isArray;
/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */function We(e){return null!=e&&
/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */(e.length)&&!Ye(e)}var qe=he||function(){return!1};
/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */function Ye(e){
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
var t=Ke(e)?te.call(e):"";return t==c||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $e(e){return We(e)?Me(e):function(e){if(!He(e))return fe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return De(e,!0,!0)}}).call(this,n("c8ba"),n("62e4")(e))
/***/},
/***/cd70:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("6d8b"),i=
/**
   * @param opt All of the fields will be shallow copied.
   */
function(e){
/**
     * The format of `otherDims` is:
     * ```js
     * {
     *     tooltip?: number
     *     label?: number
     *     itemName?: number
     *     seriesName?: number
     * }
     * ```
     *
     * A `series.encode` can specified these fields:
     * ```js
     * encode: {
     *     // "3, 1, 5" is the index of data dimension.
     *     tooltip: [3, 1, 5],
     *     label: [0, 3],
     *     ...
     * }
     * ```
     * `otherDims` is the parse result of the `series.encode` above, like:
     * ```js
     * // Suppose the index of this data dimension is `3`.
     * this.otherDims = {
     *     // `3` is at the index `0` of the `encode.tooltip`
     *     tooltip: 0,
     *     // `3` is at the index `1` of the `encode.label`
     *     label: 1
     * };
     * ```
     *
     * This prop should never be `null`/`undefined` after initialized.
     */
this.otherDims={},null!=e&&r.extend(this,e)};
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* harmony default export */t.a=i},
/***/cd9d:
/***/function(e,t){e.exports=
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function(e){return e}},
/***/cdce:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626"),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},
/***/cdd1:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("6042"),i=n.n(r),a=n("1098"),o=n.n(a),s=n("41b2"),c=n.n(s),l=n("4d91"),u=n("4d26"),h=n.n(u),f=n("c9a4"),d=n("daa3"),p=n("b488"),g=n("94eb");
/* harmony import */function m(){}var v="open",y="close",A={name:"TreeNode",mixins:[p.a],__ANT_TREE_NODE:!0,props:Object(d.t)({eventKey:l.a.oneOfType([l.a.string,l.a.number]),// Pass by parent `cloneElement`
prefixCls:l.a.string,
// className: PropTypes.string,
root:l.a.object,
// onSelect: PropTypes.func,
// By parent
expanded:l.a.bool,selected:l.a.bool,checked:l.a.bool,loaded:l.a.bool,loading:l.a.bool,halfChecked:l.a.bool,title:l.a.any,pos:l.a.string,dragOver:l.a.bool,dragOverGapTop:l.a.bool,dragOverGapBottom:l.a.bool,
// By user
isLeaf:l.a.bool,checkable:l.a.bool,selectable:l.a.bool,disabled:l.a.bool,disableCheckbox:l.a.bool,icon:l.a.any,dataRef:l.a.object,switcherIcon:l.a.any,label:l.a.any,value:l.a.any},{}),data:function(){return{dragNodeHighlight:!1}},inject:{vcTree:{default:function(){return{}}},vcTreeNode:{default:function(){return{}}}},provide:function(){return{vcTreeNode:this}},
// Isomorphic needn't load data in server side
mounted:function(){var e=this.eventKey,t=this.vcTree.registerTreeNode;this.syncLoadData(this.$props),t&&t(e,this)},updated:function(){this.syncLoadData(this.$props)},beforeDestroy:function(){var e=this.eventKey,t=this.vcTree.registerTreeNode;t&&t(e,null)},methods:{onSelectorClick:function(e){(0,this.vcTree.onNodeClick)(e,this),this.isSelectable()?this.onSelect(e):this.onCheck(e)},onSelectorDoubleClick:function(e){(0,this.vcTree.onNodeDoubleClick)(e,this)},onSelect:function(e){if(!this.isDisabled()){var t=this.vcTree.onNodeSelect;e.preventDefault(),t(e,this)}},onCheck:function(e){if(!this.isDisabled()){var t=this.disableCheckbox,n=this.checked,r=this.vcTree.onNodeCheck;if(this.isCheckable()&&!t)e.preventDefault(),r(e,this,!n)}},onMouseEnter:function(e){(0,this.vcTree.onNodeMouseEnter)(e,this)},onMouseLeave:function(e){(0,this.vcTree.onNodeMouseLeave)(e,this)},onContextMenu:function(e){(0,this.vcTree.onNodeContextMenu)(e,this)},onDragStart:function(e){var t=this.vcTree.onNodeDragStart;e.stopPropagation(),this.setState({dragNodeHighlight:!0}),t(e,this);try{
// ie throw error
// firefox-need-it
e.dataTransfer.setData("text/plain","")}catch(e){
// empty
}},onDragEnter:function(e){var t=this.vcTree.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,this)},onDragOver:function(e){var t=this.vcTree.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,this)},onDragLeave:function(e){var t=this.vcTree.onNodeDragLeave;e.stopPropagation(),t(e,this)},onDragEnd:function(e){var t=this.vcTree.onNodeDragEnd;e.stopPropagation(),this.setState({dragNodeHighlight:!1}),t(e,this)},onDrop:function(e){var t=this.vcTree.onNodeDrop;e.preventDefault(),e.stopPropagation(),this.setState({dragNodeHighlight:!1}),t(e,this)},
// Disabled item still can be switch
onExpand:function(e){(0,this.vcTree.onNodeExpand)(e,this)},getNodeChildren:function(){var e=this.$slots.default,t=Object(d.c)(e),n=Object(f.j)(t);return t.length!==n.length&&Object(f.o)(),n},getNodeState:function(){var e=this.expanded;return this.isLeaf2()?null:e?v:y},isLeaf2:function(){var e=this.isLeaf,t=this.loaded,n=this.vcTree.loadData,r=0!==this.getNodeChildren().length;return!1!==e&&(e||!n&&!r||n&&t&&!r)},isDisabled:function(){var e=this.disabled,t=this.vcTree.disabled;
// Follow the logic of Selectable
return!1!==e&&!(!t&&!e)},isCheckable:function(){var e=this.$props.checkable,t=this.vcTree.checkable;
// Return false if tree or treeNode is not checkable
return!(!t||!1===e)&&t},
// Load data to avoid default expanded tree without data
syncLoadData:function(e){var t=e.expanded,n=e.loading,r=e.loaded,i=this.vcTree,a=i.loadData,o=i.onNodeLoad;n||
// read from state to avoid loadData at same time
a&&t&&!this.isLeaf2()&&(0!==this.getNodeChildren().length||r||o(this))},isSelectable:function(){var e=this.selectable,t=this.vcTree.selectable;
// Ignore when selectable is undefined or null
return"boolean"==typeof e?e:t},
// Switcher
renderSwitcher:function(){var e=this.$createElement,t=this.expanded,n=this.vcTree.prefixCls,r=Object(d.g)(this,"switcherIcon",{},!1)||Object(d.g)(this.vcTree,"switcherIcon",{},!1);if(this.isLeaf2())return e("span",{key:"switcher",class:h()(n+"-switcher",n+"-switcher-noop")},["function"==typeof r?r(c()({},this.$props,this.$props.dataRef,{isLeaf:!0})):r]);var i=h()(n+"-switcher",n+"-switcher_"+(t?v:y));return e("span",{key:"switcher",on:{click:this.onExpand},class:i},["function"==typeof r?r(c()({},this.$props,this.$props.dataRef,{isLeaf:!1})):r])},
// Checkbox
renderCheckbox:function(){var e=this.$createElement,t=this.checked,n=this.halfChecked,r=this.disableCheckbox,i=this.vcTree.prefixCls,a=this.isDisabled(),o=this.isCheckable();if(!o)return null;
// [Legacy] Custom element should be separate with `checkable` in future
var s="boolean"!=typeof o?o:null;return e("span",{key:"checkbox",class:h()(i+"-checkbox",t&&i+"-checkbox-checked",!t&&n&&i+"-checkbox-indeterminate",(a||r)&&i+"-checkbox-disabled"),on:{click:this.onCheck}},[s])},renderIcon:function(){var e=this.$createElement,t=this.loading,n=this.vcTree.prefixCls;return e("span",{key:"icon",class:h()(n+"-iconEle",n+"-icon__"+(this.getNodeState()||"docu"),t&&n+"-icon_loading")})},
// Icon + Title
renderSelector:function(e){var t=this.selected,n=this.loading,r=this.dragNodeHighlight,i=Object(d.g)(this,"icon",{},!1),a=this.vcTree,o=a.prefixCls,s=a.showIcon,l=a.icon,u=a.draggable,f=a.loadData,p=this.isDisabled(),g=Object(d.g)(this,"title",{},!1),v=o+"-node-content-wrapper",y=void 0;if(s){var A=i||l;y=A?e("span",{class:h()(o+"-iconEle",o+"-icon__customize")},["function"==typeof A?A(c()({},this.$props,this.$props.dataRef),e):A]):this.renderIcon()}else f&&n&&(y=this.renderIcon());var b=g,w=e("span",{class:o+"-title"},b?["function"==typeof b?b(c()({},this.$props,this.$props.dataRef),e):b]:["---"]);return e("span",{key:"selector",ref:"selectHandle",attrs:{title:"string"==typeof g?g:"",draggable:!p&&u||void 0,"aria-grabbed":!p&&u||void 0},class:h()(""+v,v+"-"+(this.getNodeState()||"normal"),!p&&(t||r)&&o+"-node-selected",!p&&u&&"draggable"),on:{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave,contextmenu:this.onContextMenu,click:this.onSelectorClick,dblclick:this.onSelectorDoubleClick,dragstart:u?this.onDragStart:m}},[y,w])},
// Children list wrapped with `Animation`
renderChildren:function(){var e=this.$createElement,t=this.expanded,n=this.pos,r=this.vcTree,i=r.prefixCls,a=r.openTransitionName,s=r.openAnimation,l=r.renderTreeNode,u={};a?u=Object(g.a)(a):"object"===(void 0===s?"undefined":o()(s))&&((u=c()({},s)).props=c()({css:!1},u.props));
// Children TreeNode
var d=this.getNodeChildren();if(0===d.length)return null;var p=void 0;return t&&(p=e("ul",{class:h()(i+"-child-tree",t&&i+"-child-tree-open"),attrs:{"data-expanded":t,role:"group"}},[Object(f.l)(d,(function(e,t){return l(e,t,n)}))])),e("transition",u,[p])}},render:function(e){var t,n=this.$props,r=n.dragOver,a=n.dragOverGapTop,o=n.dragOverGapBottom,s=n.isLeaf,c=n.expanded,l=n.selected,u=n.checked,h=n.halfChecked,f=n.loading,d=this.vcTree,p=d.prefixCls,g=d.filterTreeNode,v=d.draggable,y=this.isDisabled();return e("li",{class:(t={},i()(t,p+"-treenode-disabled",y),i()(t,p+"-treenode-switcher-"+(c?"open":"close"),!s),i()(t,p+"-treenode-checkbox-checked",u),i()(t,p+"-treenode-checkbox-indeterminate",h),i()(t,p+"-treenode-selected",l),i()(t,p+"-treenode-loading",f),i()(t,"drag-over",!y&&r),i()(t,"drag-over-gap-top",!y&&a),i()(t,"drag-over-gap-bottom",!y&&o),i()(t,"filter-node",g&&g(this)),t),attrs:{role:"treeitem"},on:{dragenter:v?this.onDragEnter:m,dragover:v?this.onDragOver:m,dragleave:v?this.onDragLeave:m,drop:v?this.onDrop:m,dragend:v?this.onDragEnd:m}},[this.renderSwitcher(),this.renderCheckbox(),this.renderSelector(e),this.renderChildren()])},isTreeNode:1};
/* harmony default export */t.a=A},
/***/cdf9:
/***/function(e,t,n){"use strict";var r=n("825a"),i=n("861d"),a=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},
/***/ce7a:
/***/function(e,t,n){
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var r=n("9c0e"),i=n("0983"),a=n("5a94")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},
/***/ce86:
/***/function(e,t,n){var r=n("9e69"),i=n("7948"),a=n("6747"),o=n("ffd6"),s=r?r.prototype:void 0,c=s?s.toString:void 0;
/** Used as references for various `Number` constants. */e.exports=
/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function e(t){
// Exit early for strings to avoid a performance hit in some environments.
if("string"==typeof t)return t;if(a(t))
// Recursively convert values (susceptible to call stack limits).
return i(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},
/***/ceac:
/***/function(e,t,n){var r=n("2eaa"),i=n("5c69"),a=n("100e"),o=n("dcbe"),s=a((function(e,t){return o(e)?r(e,i(t,1,o,!0)):[]}));
/**
 * Creates an array of `array` values not included in the other given arrays
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. The order and references of result values are
 * determined by the first array.
 *
 * **Note:** Unlike `_.pullAll`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...Array} [values] The values to exclude.
 * @returns {Array} Returns the new array of filtered values.
 * @see _.without, _.xor
 * @example
 *
 * _.difference([2, 1], [2, 3]);
 * // => [1]
 */e.exports=s},
/***/cecd:
/***/function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1};
/***/},
/***/cee4:
/***/function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),a=n("0a06"),o=n("4a7b");
/**
 * Create an instance of Axios
 *
 * @param {Object} defaultConfig The default config for the instance
 * @return {Axios} A new instance of Axios
 */
function s(e){var t=new a(e),n=i(a.prototype.request,t);
// Copy axios.prototype to instance
return r.extend(n,a.prototype,t),
// Copy context to instance
r.extend(n,t),n}
// Create the default instance to be exported
var c=s(n("2444"));
// Expose Axios class to allow class inheritance
c.Axios=a,
// Factory for creating new instances
c.create=function(e){return s(o(c.defaults,e))},
// Expose Cancel & CancelToken
c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),
// Expose all/spread
c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,
// Allow use of default import syntax in TypeScript
e.exports.default=c},
/***/cee8:
/***/function(e,t){e.exports=!1;
/***/},
/***/cfe9:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(t){var n=function(e){return e&&e.Math===Math&&e};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
e.exports=
// eslint-disable-next-line es/no-global-this -- safe
n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||
// eslint-disable-next-line no-restricted-globals -- safe
n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||
// eslint-disable-next-line no-new-func -- fallback
function(){return this}()||Function("return this")()}).call(this,n("c8ba"))
/***/},
/***/cffc:
/***/function(e,t,n){
// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var r=n("911a"),i=n("dbaf"),a=n("42ee"),o=n("6373"),s=n("0a48");e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,h=6==e,f=5==e||h,d=t||s;return function(t,s,p){for(var g,m,v=a(t),y=i(v),A=r(s,p,3),b=o(y.length),w=0,x=n?d(t,b):c?d(t,0):void 0;b>w;w++)if((f||w in y)&&(m=A(g=y[w],w,v),e))if(n)x[w]=m;// map
else if(m)switch(e){case 3:return!0;// some
case 5:return g;// find
case 6:return w;// findIndex
case 2:x.push(g);// filter
}else if(u)return!1;// every
return h?-1:l||u?u:x}}},
/***/d012:
/***/function(e,t,n){"use strict";e.exports={}},
/***/d015:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/echarts/lib/export/core.js + 7 modules
var r=n("aa74"),i=n("22b4"),a=(n("1be7"),n("f95e")),o=n("5e81"),s=n("ee29");
// EXTERNAL MODULE: ./node_modules/echarts/lib/extension.js
// CONCATENATED MODULE: ./node_modules/echarts/lib/echarts.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Default to have canvas renderer and dataset for compitatble reason.
Object(i.a)([a.a,o.a]);
// Import label layout by default.
// TODO remove
Object(i.a)(s.a),
// CONCATENATED MODULE: ./node_modules/echarts-liquidfill/src/liquidFillSeries.js
r.t({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=r.A.createDimensions(e.data,{coordDimensions:["value"]}),i=new r.e(n,this);return i.initData(e.data),i},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/number.js
var c=n("3842"),l=r.z.extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius)
/**
         * We define a sine wave having 4 waves, and make sure at least 8 curves
         * is drawn. Otherwise, it may cause blank area for some waves when
         * wave length is large enough.
         */;
// map phase to [-Math.PI * 2, 0]
for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<2*-Math.PI;)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var r=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+r-2*t.radius;
/**
         * top-left corner as start point
         *
         * draws this point
         *  |
         * \|/
         *  ~~~~~~~~
         *  |      |
         *  +------+
         */
e.moveTo(i,t.waterLevel);for(
/**
         * top wave
         *
         * ~~~~~~~~ <- draws this sine wave
         * |      |
         * +------+
         */
var a=0,o=0;o<n;++o){var s=o%4,c=u(o*t.waveLength/4,s,t.waveLength,t.amplitude);e.bezierCurveTo(c[0][0]+i,-c[0][1]+t.waterLevel,c[1][0]+i,-c[1][1]+t.waterLevel,c[2][0]+i,-c[2][1]+t.waterLevel),o===n-1&&(a=c[2][0])}t.inverse?(
/**
             * top-right corner
             *                  2. draws this line
             *                          |
             *                       +------+
             * 3. draws this line -> |      | <- 1. draws this line
             *                       ~~~~~~~~
             */
e.lineTo(a+i,t.cy-t.radiusY),e.lineTo(i,t.cy-t.radiusY),e.lineTo(i,t.waterLevel)):(
/**
             * top-right corner
             *
             *                       ~~~~~~~~
             * 3. draws this line -> |      | <- 1. draws this line
             *                       +------+
             *                          ^
             *                          |
             *                  2. draws this line
             */
e.lineTo(a+i,t.cy+t.radiusY),e.lineTo(i,t.cy+t.radiusY),e.lineTo(i,t.waterLevel)),e.closePath()}});
// CONCATENATED MODULE: ./node_modules/echarts-liquidfill/src/liquidFillShape.js
/* harmony default export */
/**
 * Using Bezier curves to fit sine wave.
 * There is 4 control points for each curve of wave,
 * which is at 1/4 wave length of the sine wave.
 *
 * The control points for a wave from (a) to (d) are a-b-c-d:
 *          c *----* d
 *     b *
 *       |
 * ... a * ..................
 *
 * whose positions are a: (0, 0), b: (0.5, 0.5), c: (1, 1), d: (PI / 2, 1)
 *
 * @param {number} x          x position of the left-most point (a)
 * @param {number} stage      0-3, stating which part of the wave it is
 * @param {number} waveLength wave length of the sine wave
 * @param {number} amplitude  wave amplitude
 */
function u(e,t,n,r){return 0===t?[[e+.5*n/Math.PI/2,r/2],[e+.5*n/Math.PI,r],[e+n/4,r]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),r],[e+.5*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-r/2],[e+.5*n/Math.PI,-r],[e+n/4,-r]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-r],[e+.5*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}
// CONCATENATED MODULE: ./node_modules/echarts-liquidfill/src/liquidFillView.js
var h=c.q;function f(e){return e&&0===e.indexOf("path://")}r.q({type:"liquidFill",render:function(e,t,n){var i=this,a=this.group;a.removeAll();var o=e.getData(),s=o.getItemModel(0),c=s.get("center"),u=s.get("radius"),d=n.getWidth(),p=n.getHeight(),g=Math.min(d,p),m=0,v=0,y=e.get("outline.show");y&&(m=e.get("outline.borderDistance"),v=h(e.get("outline.itemStyle.borderWidth"),g));var A,b,w,x=h(c[0],d),C=h(c[1],p),_=!1,I=e.get("shape");("container"===I?(
// a shape that fully fills the container
_=!0,b=[(A=[d/2,p/2])[0]-v/2,A[1]-v/2],w=[h(m,d),h(m,p)],u=[Math.max(b[0]-w[0],0),Math.max(b[1]-w[1],0)]):(b=(A=h(u,g)/2)-v/2,w=h(m,g),u=Math.max(b-w,0)),y)&&(O().style.lineWidth=v,a.add(O()));var E=_?0:x-u,k=_?0:C-u,S=null;a.add(
/**
         * Create background
         */
function(){
// Seperate stroke and fill, so we can use stroke to cover the alias of clipping.
var t=T(u);t.setStyle(e.getModel("backgroundStyle").getItemStyle()),t.style.fill=null,
// Stroke is front of wave
t.z2=5;var n=T(u);n.setStyle(e.getModel("backgroundStyle").getItemStyle()),n.style.stroke=null;var i=new r.z.Group;return i.add(t),i.add(n),i}
/**
         * wave shape
         */());
// each data item for a wave
var B=this._data,M=[];
/**
         * Get path for outline, background and clipping
         *
         * @param {number} r outter radius of shape
         * @param {boolean|undefined} isForClipping if the shape is used
         *                                          for clipping
         */
function T(e,t){if(I){
// customed symbol path
if(f(I)){var n=r.z.makePath(I.slice(7),{}),i=n.getBoundingRect(),a=i.width,o=i.height;a>o?(o*=2*e/a,a=2*e):(a*=2*e/o,o=2*e);var s=t?0:x-a/2,c=t?0:C-o/2;return n=r.z.makePath(I.slice(7),{},new r.z.BoundingRect(s,c,a,o)),t&&(n.x=-a/2,n.y=-o/2),n}if(_){
// fully fill the container
var l=t?-e[0]:x-e[0],u=t?-e[1]:C-e[1];return r.A.createSymbol("rect",l,u,2*e[0],2*e[1])}l=t?-e:x-e,u=t?-e:C-e;return"pin"===I?u+=e:"arrow"===I&&(u-=e),r.A.createSymbol(I,l,u,2*e,2*e)}return new r.z.Circle({shape:{cx:t?0:x,cy:t?0:C,r:e}})}
/**
         * Create outline
         */function O(){var t=T(A);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function D(t,n,i){var a=_?u[0]:u,s=_?p/2:u,c=o.getItemModel(t),f=c.getModel("itemStyle"),d=c.get("phase"),g=h(c.get("amplitude"),2*s),m=h(c.get("waveLength"),2*a),v=s-o.get("value",t)*s*2;d=i?i.shape.phase:"auto"===d?t*Math.PI/4:d;var y=f.getItemStyle();if(!y.fill){var A=e.get("color"),b=t%A.length;y.fill=A[b]}var w=new l({shape:{waveLength:m,radius:a,radiusY:s,cx:2*a,cy:0,waterLevel:v,amplitude:g,phase:d,inverse:n},style:y,x:x,y:C});w.shape._waterLevel=v;var I=c.getModel("emphasis.itemStyle").getItemStyle();I.lineWidth=0,w.ensureState("emphasis").style=I,r.A.enableHoverEmphasis(w);
// clip out the part outside the circle
var E=T(u,!0);
// set fill for clipPath, otherwise it will not trigger hover event
return E.setStyle({fill:"white"}),w.setClipPath(E),w}function P(e,t,n){var r=o.getItemModel(e),i=r.get("period"),a=r.get("direction"),s=o.get("value",e),c=r.get("phase");c=n?n.shape.phase:"auto"===c?e*Math.PI/4:c;var l=0;l="auto"===i?function(t){var n=o.count();return 0===n?t:t*(.2+(n-e)/n*.8)}(5e3):"function"==typeof i?i(s,e):i;
// phase for moving left/right
var u=0;"right"===a||null==a?u=Math.PI:"left"===a?u=-Math.PI:"none"===a&&(u=0),
// wave animation of moving left/right
"none"!==a&&r.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:c}).when(l/2,{phase:u+c}).when(l,{phase:2*u+c}).during((function(){S&&S.dirty(!0)})).start()}
/**
         * text on wave
         */o.diff(B).add((function(t){var n=D(t,!1),i=n.shape.waterLevel;n.shape.waterLevel=_?p/2:u,r.z.initProps(n,{shape:{waterLevel:i}},e),n.z2=2,P(t,n,null),a.add(n),o.setItemGraphicEl(t,n),M.push(n)})).update((function(t,n){for(var s=B.getItemGraphicEl(n),c=D(t,!1,s),l={},u=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],h=0
// new wave is used to calculate position, but not added
;h<u.length;++h){var d=u[h];c.shape.hasOwnProperty(d)&&(l[d]=c.shape[d])}var g={},m=["fill","opacity","shadowBlur","shadowColor"];for(h=0;h<m.length;++h){d=m[h];c.style.hasOwnProperty(d)&&(g[d]=c.style[d])}_&&(l.radiusY=p/2),
// changes with animation
r.z.updateProps(s,{shape:l,x:c.x,y:c.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?r.z.updateProps(s,{style:g},e):s.useStyle(g);
// instant changes
var v=s.getClipPath(),y=c.getClipPath();s.setClipPath(c.getClipPath()),s.shape.inverse=c.inverse,v&&y&&i._shape===I&&!f(I)&&
// Can be animated.
r.z.updateProps(y,{shape:v.shape},e,{isFrom:!0}),P(t,s,s),a.add(s),o.setItemGraphicEl(t,s),M.push(s)})).remove((function(e){var t=B.getItemGraphicEl(e);a.remove(t)})).execute(),s.get("label.show")&&a.add(function(t){var n=s.getModel("label");function i(){var t=e.getFormattedLabel(0,"normal"),n=100*o.get("value",0),r=o.getName(0)||e.name;return isNaN(n)||(r=n.toFixed(0)+"%"),null==t?r:t}var a={z2:10,shape:{x:E,y:k,width:2*(_?u[0]:u),height:2*(_?u[1]:u)},style:{fill:"transparent"},textConfig:{position:n.get("position")||"inside"},silent:!0},c={style:{text:i(),textAlign:n.get("align"),textVerticalAlign:n.get("baseline")}};Object.assign(c.style,r.A.createTextStyle(n));var l=new r.z.Rect(a),h=new r.z.Rect(a);h.disableLabelAnimation=!0,l.disableLabelAnimation=!0;var f=new r.z.Text(c),d=new r.z.Text(c);l.setTextContent(f),h.setTextContent(d);var p=n.get("insideColor");d.style.fill=p;var g=new r.z.Group;g.add(l),g.add(h);
// clip out waves for insideText
var m=T(u,!0);return S=new r.z.CompoundPath({shape:{paths:t},x:x,y:C}),S.setClipPath(m),h.setClipPath(S),g}(M)),this._shape=I,this._data=o},dispose:function(){
// dispose nothing here
}})},
/***/d024:
/***/function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),a=n("825a"),o=n("46c4"),s=n("c5cc"),c=n("9bdd"),l=s((function(){var e=this.iterator,t=a(r(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)}));
// `Iterator.prototype.map` method
// https://github.com/tc39/proposal-iterator-helpers
e.exports=function(e){return a(this),i(e),new l(o(this),{mapper:e})}},
/***/d02c:
/***/function(e,t,n){var r=n("5e2e"),i=n("79bc"),a=n("7b83");
/** Used as the size to enable large array optimizations. */e.exports=
/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},
/***/d039:
/***/function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},
/***/d066:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("1626");e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},
/***/d090:
/***/function(e,t,n){
/**
 * Swiper 4.5.1
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * http://www.idangero.us/swiper/
 *
 * Copyright 2014-2019 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: September 13, 2019
 */
e.exports=function(){"use strict";
/**
   * SSR Window 1.0.1
   * Better handling for window object in SSR environment
   * https://github.com/nolimits4web/ssr-window
   *
   * Copyright 2018, Vladimir Kharlampidi
   *
   * Licensed under MIT
   *
   * Released on: July 18, 2018
   */var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(e){
// Create array-like object
for(var t=this,n=0;n<e.length;n+=1)t[n]=e[n];
// Return collection with methods
return t.length=e.length,this};// eslint-disable-line
function r(r,i){var a=[],o=0;if(r&&!i&&r instanceof n)return r;if(r)
// String
if("string"==typeof r){var s,c,l=r.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){var u="div";for(0===l.indexOf("<li")&&(u="ul"),0===l.indexOf("<tr")&&(u="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(u="tr"),0===l.indexOf("<tbody")&&(u="table"),0===l.indexOf("<option")&&(u="select"),(c=e.createElement(u)).innerHTML=l,o=0;o<c.childNodes.length;o+=1)a.push(c.childNodes[o])}else for(
// Other selectors
s=i||"#"!==r[0]||r.match(/[ .<>:~]/)?(i||e).querySelectorAll(r.trim()):[e.getElementById(r.trim().split("#")[1])],o=0;o<s.length;o+=1)s[o]&&a.push(s[o])}else if(r.nodeType||r===t||r===e)
// Node/element
a.push(r);else if(r.length>0&&r[0].nodeType)
// Array of elements or instance of Dom
for(o=0;o<r.length;o+=1)a.push(r[o]);return new n(a)}function i(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}
// Classes and attributes
function a(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.add(t[n]);return this}function o(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.remove(t[n]);return this}function s(e){return!!this[0]&&this[0].classList.contains(e)}function c(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.toggle(t[n]);return this}function l(e,t){var n=arguments;if(1===arguments.length&&"string"==typeof e)
// Get attr
return this[0]?this[0].getAttribute(e):void 0;
// Set attrs
for(var r=0;r<this.length;r+=1)if(2===n.length)
// String
this[r].setAttribute(e,t);else
// Object
// eslint-disable-next-line
for(var i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this}
// eslint-disable-next-line
function u(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function h(e,t){var n;if(void 0!==t){
// Set value
for(var r=0;r<this.length;r+=1)(n=this[r]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}
// Get value
if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-"+e);return i||void 0}}
// Transforms
// eslint-disable-next-line
function f(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function d(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}
// Events
function p(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=t[0],a=t[1],o=t[2],s=t[3];function c(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),r(t).is(a))o.apply(t,n);else// eslint-disable-line
for(var i=r(t).parents(),s=0;s<i.length;s+=1)r(i[s]).is(a)&&o.apply(i[s],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(i=(e=t)[0],o=e[1],s=e[2],a=void 0),s||(s=!1);for(var u,h=i.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(a)
// Live events
for(u=0;u<h.length;u+=1){var p=h[u];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:o,proxyListener:c}),d.addEventListener(p,c,s)}else for(u=0;u<h.length;u+=1){var g=h[u];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[g]||(d.dom7Listeners[g]=[]),d.dom7Listeners[g].push({listener:o,proxyListener:l}),d.addEventListener(g,l,s)}}return this}function g(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(r=(e=t)[0],a=e[1],o=e[2],i=void 0),o||(o=!1);for(var s=r.split(" "),c=0;c<s.length;c+=1)for(var l=s[c],u=0;u<this.length;u+=1){var h=this[u],f=void 0;if(!i&&h.dom7Listeners?f=h.dom7Listeners[l]:i&&h.dom7LiveListeners&&(f=h.dom7LiveListeners[l]),f&&f.length)for(var d=f.length-1;d>=0;d-=1){var p=f[d];a&&p.listener===a||a&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===a?(h.removeEventListener(l,p.proxyListener,o),f.splice(d,1)):a||(h.removeEventListener(l,p.proxyListener,o),f.splice(d,1))}}return this}function m(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var i=n[0].split(" "),a=n[1],o=0;o<i.length;o+=1)for(var s=i[o],c=0;c<this.length;c+=1){var l=this[c],u=void 0;try{u=new t.CustomEvent(s,{detail:a,bubbles:!0,cancelable:!0})}catch(t){(u=e.createEvent("Event")).initEvent(s,!0,!0),u.detail=a}
// eslint-disable-next-line
l.dom7EventData=n.filter((function(e,t){return t>0})),l.dispatchEvent(u),l.dom7EventData=[],delete l.dom7EventData}return this}function v(e){var t,n=["webkitTransitionEnd","transitionend"],r=this;function i(a){
/* jshint validthis:true */
if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this}function y(e){if(this.length>0){if(e){
// eslint-disable-next-line
var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function A(e){if(this.length>0){if(e){
// eslint-disable-next-line
var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function b(){if(this.length>0){var n=this[0],r=n.getBoundingClientRect(),i=e.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===t?t.scrollY:n.scrollTop,c=n===t?t.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}return null}function w(){return this[0]?t.getComputedStyle(this[0],null):{}}function x(e,n){var r;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)
// eslint-disable-next-line
for(var i in e)this[r].style[i]=e[i];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)this[r].style[e]=n;return this}return this}
// Iterate over the collection passing elements to `callback`
function C(e){
// Don't bother continuing without a callback
if(!e)return this;
// Iterate over the current collection
for(var t=0;t<this.length;t+=1)
// If the callback returns false
if(!1===e.call(this[t],t,this[t]))
// End the loop early
return this;
// Return `this` to allow chained DOM operations
return this}
// eslint-disable-next-line
function _(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}
// eslint-disable-next-line
function I(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function E(i){var a,o,s=this[0];if(!s||void 0===i)return!1;if("string"==typeof i){if(s.matches)return s.matches(i);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(i);if(s.msMatchesSelector)return s.msMatchesSelector(i);for(a=r(i),o=0;o<a.length;o+=1)if(a[o]===s)return!0;return!1}if(i===e)return s===e;if(i===t)return s===t;if(i.nodeType||i instanceof n){for(a=i.nodeType?[i]:i,o=0;o<a.length;o+=1)if(a[o]===s)return!0;return!1}return!1}function k(){var e,t=this[0];if(t){
// eslint-disable-next-line
for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}
// eslint-disable-next-line
function S(e){if(void 0===e)return this;var t,r=this.length;return new n(e>r-1?[]:e<0?(t=r+e)<0?[]:[this[t]]:[this[e]])}function B(){for(var t,r=[],i=arguments.length;i--;)r[i]=arguments[i];for(var a=0;a<r.length;a+=1){t=r[a];for(var o=0;o<this.length;o+=1)if("string"==typeof t){var s=e.createElement("div");for(s.innerHTML=t;s.firstChild;)this[o].appendChild(s.firstChild)}else if(t instanceof n)for(var c=0;c<t.length;c+=1)this[o].appendChild(t[c]);else this[o].appendChild(t)}return this}function M(t){var r,i;for(r=0;r<this.length;r+=1)if("string"==typeof t){var a=e.createElement("div");for(a.innerHTML=t,i=a.childNodes.length-1;i>=0;i-=1)this[r].insertBefore(a.childNodes[i],this[r].childNodes[0])}else if(t instanceof n)for(i=0;i<t.length;i+=1)this[r].insertBefore(t[i],this[r].childNodes[0]);else this[r].insertBefore(t,this[r].childNodes[0]);return this}function T(e){return this.length>0?e?this[0].nextElementSibling&&r(this[0].nextElementSibling).is(e)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])}function O(e){var t=[],i=this[0];if(!i)return new n([]);for(;i.nextElementSibling;){var a=i.nextElementSibling;// eslint-disable-line
e?r(a).is(e)&&t.push(a):t.push(a),i=a}return new n(t)}function D(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&r(t.previousElementSibling).is(e)?new n([t.previousElementSibling]):new n([]):t.previousElementSibling?new n([t.previousElementSibling]):new n([])}return new n([])}function P(e){var t=[],i=this[0];if(!i)return new n([]);for(;i.previousElementSibling;){var a=i.previousElementSibling;// eslint-disable-line
e?r(a).is(e)&&t.push(a):t.push(a),i=a}return new n(t)}function L(e){// eslint-disable-line
for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?r(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return r(i(t))}function Q(e){// eslint-disable-line
for(var t=[],n=0;n<this.length;n+=1)// eslint-disable-line
for(var a=this[n].parentNode;a;)e?r(a).is(e)&&t.push(a):t.push(a),a=a.parentNode;return r(i(t))}function R(e){var t=this;// eslint-disable-line
return void 0===e?new n([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function j(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].querySelectorAll(e),a=0;a<i.length;a+=1)t.push(i[a]);return new n(t)}function N(e){// eslint-disable-line
for(var t=[],a=0;a<this.length;a+=1)for(var o=this[a].childNodes,s=0;s<o.length;s+=1)e?1===o[s].nodeType&&r(o[s]).is(e)&&t.push(o[s]):1===o[s].nodeType&&t.push(o[s]);return new n(i(t))}function F(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function z(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,i,a=this;for(n=0;n<e.length;n+=1){var o=r(e[n]);for(i=0;i<o.length;i+=1)a[a.length]=o[i],a.length+=1}return a}r.fn=n.prototype,r.Class=n,r.Dom7=n;var H={addClass:a,removeClass:o,hasClass:s,toggleClass:c,attr:l,removeAttr:u,data:h,transform:f,transition:d,on:p,off:g,trigger:m,transitionEnd:v,outerWidth:y,outerHeight:A,offset:b,css:x,each:C,html:_,text:I,is:E,index:k,eq:S,append:B,prepend:M,next:T,nextAll:O,prev:D,prevAll:P,parent:L,parents:Q,closest:R,find:j,children:N,remove:F,add:z,styles:w};Object.keys(H).forEach((function(e){r.fn[e]=r.fn[e]||H[e]}));var U,G,V={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){
// no getter for object
}try{delete t[e]}catch(e){
// something got wrong
}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,n){var r,i,a;void 0===n&&(n="x");var o=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((i=o.transform||o.webkitTransform).split(",").length>6&&(i=i.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),
// Some old versions of Webkit choke when 'none' is passed; pass
// empty string instead in this case
a=new t.WebKitCSSMatrix("none"===i?"":i)):r=(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(
// Latest Chrome and webkits Fix
i=t.WebKitCSSMatrix?a.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===n&&(
// Latest Chrome and webkits Fix
i=t.WebKitCSSMatrix?a.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0},parseUrlQuery:function(e){var n,r,i,a,o={},s=e||t.location.href;if("string"==typeof s&&s.length)for(a=(r=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,n=0;n<a;n+=1)i=r[n].replace(/#\S+/g,"").split("="),o[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return o},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=Object(e[0]),r=1;r<e.length;r+=1){var i=e[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o+=1){var c=a[o],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(V.isObject(n[c])&&V.isObject(i[c])?V.extend(n[c],i[c]):!V.isObject(n[c])&&V.isObject(i[c])?(n[c]={},V.extend(n[c],i[c])):n[c]=i[c])}}return n}},W=(G=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!(t.navigator.pointerEnabled||t.PointerEvent||"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(U=G.style,"transition"in U||"webkitTransition"in U||"MozTransition"in U),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||function(){var e=G.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=G.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n+=1)if(t[n]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{
// eslint-disable-next-line
get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(e){
// No support
}return e}(),gestures:"ongesturestart"in t}),q=function(){function e(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}(),Y=function(e){void 0===e&&(e={});var t=this;t.params=e,
// Events
t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},K={components:{configurable:!0}};function $(){var e,t,n=this,r=n.$el;e=void 0!==n.params.width?n.params.width:r[0].clientWidth,t=void 0!==n.params.height?n.params.height:r[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(
// Subtract paddings
e=e-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),t=t-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),V.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function J(){var e=this,n=e.params,r=e.$wrapperEl,i=e.size,a=e.rtlTranslate,o=e.wrongRTL,s=e.virtual&&n.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,l=r.children("."+e.params.slideClass),u=s?e.virtual.slides.length:l.length,h=[],f=[],d=[],p=n.slidesOffsetBefore;"function"==typeof p&&(p=n.slidesOffsetBefore.call(e));var g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));var m=e.snapGrid.length,v=e.snapGrid.length,y=n.spaceBetween,A=-p,b=0,w=0;if(void 0!==i){var x,C;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*i),e.virtualSize=-y,
// reset margins
a?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),n.slidesPerColumn>1&&(x=Math.floor(u/n.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/n.slidesPerColumn)*n.slidesPerColumn,"auto"!==n.slidesPerView&&"row"===n.slidesPerColumnFill&&(x=Math.max(x,n.slidesPerView*n.slidesPerColumn)));for(var _,I=n.slidesPerColumn,E=x/I,k=Math.floor(u/n.slidesPerColumn),S=0;S<u;S+=1){C=0;var B=l.eq(S);if(n.slidesPerColumn>1){
// Set slides order
var M=void 0,T=void 0,O=void 0;if("column"===n.slidesPerColumnFill||"row"===n.slidesPerColumnFill&&n.slidesPerGroup>1){if("column"===n.slidesPerColumnFill)O=S-(T=Math.floor(S/I))*I,(T>k||T===k&&O===I-1)&&(O+=1)>=I&&(O=0,T+=1);else{var D=Math.floor(S/n.slidesPerGroup);T=S-(O=Math.floor(S/n.slidesPerView)-D*n.slidesPerColumn)*n.slidesPerView-D*n.slidesPerView}M=T+O*x/I,B.css({"-webkit-box-ordinal-group":M,"-moz-box-ordinal-group":M,"-ms-flex-order":M,"-webkit-order":M,order:M})}else T=S-(O=Math.floor(S/E))*E;B.css("margin-"+(e.isHorizontal()?"top":"left"),0!==O&&n.spaceBetween&&n.spaceBetween+"px").attr("data-swiper-column",T).attr("data-swiper-row",O)}if("none"!==B.css("display")){// eslint-disable-line
if("auto"===n.slidesPerView){var P=t.getComputedStyle(B[0],null),L=B[0].style.transform,Q=B[0].style.webkitTransform;if(L&&(B[0].style.transform="none"),Q&&(B[0].style.webkitTransform="none"),n.roundLengths)C=e.isHorizontal()?B.outerWidth(!0):B.outerHeight(!0);else
// eslint-disable-next-line
if(e.isHorizontal()){var R=parseFloat(P.getPropertyValue("width")),j=parseFloat(P.getPropertyValue("padding-left")),N=parseFloat(P.getPropertyValue("padding-right")),F=parseFloat(P.getPropertyValue("margin-left")),z=parseFloat(P.getPropertyValue("margin-right")),H=P.getPropertyValue("box-sizing");C=H&&"border-box"===H&&!q.isIE?R+F+z:R+j+N+F+z}else{var U=parseFloat(P.getPropertyValue("height")),G=parseFloat(P.getPropertyValue("padding-top")),Y=parseFloat(P.getPropertyValue("padding-bottom")),K=parseFloat(P.getPropertyValue("margin-top")),$=parseFloat(P.getPropertyValue("margin-bottom")),J=P.getPropertyValue("box-sizing");C=J&&"border-box"===J&&!q.isIE?U+K+$:U+G+Y+K+$}L&&(B[0].style.transform=L),Q&&(B[0].style.webkitTransform=Q),n.roundLengths&&(C=Math.floor(C))}else C=(i-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),l[S]&&(e.isHorizontal()?l[S].style.width=C+"px":l[S].style.height=C+"px");l[S]&&(l[S].swiperSlideSize=C),d.push(C),n.centeredSlides?(A=A+C/2+b/2+y,0===b&&0!==S&&(A=A-i/2-y),0===S&&(A=A-i/2-y),Math.abs(A)<.001&&(A=0),n.roundLengths&&(A=Math.floor(A)),w%n.slidesPerGroup==0&&h.push(A),f.push(A)):(n.roundLengths&&(A=Math.floor(A)),w%n.slidesPerGroup==0&&h.push(A),f.push(A),A=A+C+y),e.virtualSize+=C+y,b=C,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+g,a&&o&&("slide"===n.effect||"coverflow"===n.effect)&&r.css({width:e.virtualSize+n.spaceBetween+"px"}),W.flexbox&&!n.setWrapperSize||(e.isHorizontal()?r.css({width:e.virtualSize+n.spaceBetween+"px"}):r.css({height:e.virtualSize+n.spaceBetween+"px"})),n.slidesPerColumn>1&&(e.virtualSize=(C+n.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/n.slidesPerColumn)-n.spaceBetween,e.isHorizontal()?r.css({width:e.virtualSize+n.spaceBetween+"px"}):r.css({height:e.virtualSize+n.spaceBetween+"px"}),n.centeredSlides)){_=[];for(var X=0;X<h.length;X+=1){var Z=h[X];n.roundLengths&&(Z=Math.floor(Z)),h[X]<e.virtualSize+h[0]&&_.push(Z)}h=_}
// Remove last grid elements depending on width
if(!n.centeredSlides){_=[];for(var ee=0;ee<h.length;ee+=1){var te=h[ee];n.roundLengths&&(te=Math.floor(te)),h[ee]<=e.virtualSize-i&&_.push(te)}h=_,Math.floor(e.virtualSize-i)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-i)}if(0===h.length&&(h=[0]),0!==n.spaceBetween&&(e.isHorizontal()?a?l.css({marginLeft:y+"px"}):l.css({marginRight:y+"px"}):l.css({marginBottom:y+"px"})),n.centerInsufficientSlides){var ne=0;if(d.forEach((function(e){ne+=e+(n.spaceBetween?n.spaceBetween:0)})),(ne-=n.spaceBetween)<i){var re=(i-ne)/2;h.forEach((function(e,t){h[t]=e-re})),f.forEach((function(e,t){f[t]=e+re}))}}V.extend(e,{slides:l,snapGrid:h,slidesGrid:f,slidesSizesGrid:d}),u!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==v&&e.emit("slidesGridLengthChange"),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesOffset()}}function X(e){var t,n=this,r=[],i=0;
// Find slides currently in view
if("number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var a=n.activeIndex+t;if(a>n.slides.length)break;r.push(n.slides.eq(a)[0])}else r.push(n.slides.eq(n.activeIndex)[0]);
// Find new height from highest slide in view
for(t=0;t<r.length;t+=1)if(void 0!==r[t]){var o=r[t].offsetHeight;i=o>i?o:i}
// Update Height
i&&n.$wrapperEl.css("height",i+"px")}function Z(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop}function ee(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,i=t.slides,a=t.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();var o=-e;a&&(o=e),
// Visible Slides
i.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<i.length;s+=1){var c=i[s],l=(o+(n.centeredSlides?t.minTranslate():0)-c.swiperSlideOffset)/(c.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var u=-(o-c.swiperSlideOffset),h=u+t.slidesSizesGrid[s];(u>=0&&u<t.size-1||h>1&&h<=t.size||u<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(s),i.eq(s).addClass(n.slideVisibleClass))}c.progress=a?-l:l}t.visibleSlides=r(t.visibleSlides)}}function te(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,r=t.maxTranslate()-t.minTranslate(),i=t.progress,a=t.isBeginning,o=t.isEnd,s=a,c=o;0===r?(i=0,a=!0,o=!0):(a=(i=(e-t.minTranslate())/r)<=0,o=i>=1),V.extend(t,{progress:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),a&&!s&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(s&&!a||c&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}function ne(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,a=t.activeIndex,o=t.realIndex,s=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),
// Active classes
(e=s?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+a+'"]'):n.eq(a)).addClass(r.slideActiveClass),r.loop&&(
// Duplicate to all looped slides
e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(r.slideDuplicateActiveClass));
// Next Slide
var c=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===c.length&&(c=n.eq(0)).addClass(r.slideNextClass);
// Prev Slide
var l=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===l.length&&(l=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(
// Duplicate to all looped slides
c.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass))}function re(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,a=n.snapGrid,o=n.params,s=n.activeIndex,c=n.realIndex,l=n.snapIndex,u=e;if(void 0===u){for(var h=0;h<i.length;h+=1)void 0!==i[h+1]?r>=i[h]&&r<i[h+1]-(i[h+1]-i[h])/2?u=h:r>=i[h]&&r<i[h+1]&&(u=h+1):r>=i[h]&&(u=h);
// Normalize slideIndex
o.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if((t=a.indexOf(r)>=0?a.indexOf(r):Math.floor(u/o.slidesPerGroup))>=a.length&&(t=a.length-1),u!==s){
// Get real index
var f=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);V.extend(n,{snapIndex:t,realIndex:f,previousIndex:s,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),c!==f&&n.emit("realIndexChange"),(n.initialized||n.runCallbacksOnInit)&&n.emit("slideChange")}else t!==l&&(n.snapIndex=t,n.emit("snapIndexChange"))}function ie(e){var t=this,n=t.params,i=r(e.target).closest("."+n.slideClass)[0],a=!1;if(i)for(var o=0;o<t.slides.length;o+=1)t.slides[o]===i&&(a=!0);if(!i||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r(i).attr("data-swiper-slide-index"),10):t.clickedIndex=r(i).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}Y.prototype.on=function(e,t,n){var r=this;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},Y.prototype.once=function(e,t,n){var r=this;if("function"!=typeof t)return r;function i(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];t.apply(r,n),r.off(e,i),i.f7proxy&&delete i.f7proxy}return i.f7proxy=t,r.on(e,i,n)},Y.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},Y.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,a=this;return a.eventsListeners?("string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=a):(n=e[0].events,r=e[0].data,i=e[0].context||a),(Array.isArray(n)?n:n.split(" ")).forEach((function(e){if(a.eventsListeners&&a.eventsListeners[e]){var t=[];a.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(i,r)}))}})),a):a},Y.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n];
// Extend params
r.params&&V.extend(e,r.params)}))},Y.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n],i=e[n]||{};
// Extend instance methods and props
r.instance&&Object.keys(r.instance).forEach((function(e){var n=r.instance[e];t[e]="function"==typeof n?n.bind(t):n})),
// Add event listeners
r.on&&t.on&&Object.keys(r.on).forEach((function(e){t.on(e,r.on[e])})),
// Module create callback
r.create&&r.create.bind(t)(i)}))},K.components.set=function(e){var t=this;t.use&&t.use(e)},Y.installModule=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;r.prototype.modules||(r.prototype.modules={});var i=e.name||Object.keys(r.prototype.modules).length+"_"+V.now();return r.prototype.modules[i]=e,
// Prototype
e.proto&&Object.keys(e.proto).forEach((function(t){r.prototype[t]=e.proto[t]})),
// Class
e.static&&Object.keys(e.static).forEach((function(t){r[t]=e.static[t]})),
// Callback
e.install&&e.install.apply(r,t),r},Y.use=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;return Array.isArray(e)?(e.forEach((function(e){return r.installModule(e)})),r):r.installModule.apply(r,[e].concat(t))},Object.defineProperties(Y,K);var ae={updateSize:$,updateSlides:J,updateAutoHeight:X,updateSlidesOffset:Z,updateSlidesProgress:ee,updateProgress:te,updateSlidesClasses:ne,updateActiveIndex:re,updateClickedSlide:ie};function oe(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,n=t.params,r=t.rtlTranslate,i=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;var o=V.getTranslate(a[0],e);return r&&(o=-o),o||0}function se(e,t){var n=this,r=n.rtlTranslate,i=n.params,a=n.$wrapperEl,o=n.progress,s=0,c=0,l=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),i.virtualTranslate||(W.transforms3d?a.transform("translate3d("+s+"px, "+c+"px, "+l+"px)"):a.transform("translate("+s+"px, "+c+"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c;var u=n.maxTranslate()-n.minTranslate();(0===u?0:(e-n.minTranslate())/u)!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function ce(){return-this.snapGrid[0]}function le(){return-this.snapGrid[this.snapGrid.length-1]}var ue={getTranslate:oe,setTranslate:se,minTranslate:ce,maxTranslate:le};function he(e,t){var n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function fe(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,i=n.params,a=n.previousIndex;i.autoHeight&&n.updateAutoHeight();var o=t;if(o||(o=r>a?"next":r<a?"prev":"reset"),n.emit("transitionStart"),e&&r!==a){if("reset"===o)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===o?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function de(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,i=n.previousIndex;n.animating=!1,n.setTransition(0);var a=t;if(a||(a=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),e&&r!==i){if("reset"===a)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===a?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var pe={setTransition:he,transitionStart:fe,transitionEnd:de};function ge(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,a=e;a<0&&(a=0);var o=i.params,s=i.snapGrid,c=i.slidesGrid,l=i.previousIndex,u=i.activeIndex,h=i.rtlTranslate;if(i.animating&&o.preventInteractionOnTransition)return!1;var f=Math.floor(a/o.slidesPerGroup);f>=s.length&&(f=s.length-1),(u||o.initialSlide||0)===(l||0)&&n&&i.emit("beforeSlideChangeStart");var d,p=-s[f];
// Update progress
// Normalize slideIndex
if(i.updateProgress(p),o.normalizeSlideIndex)for(var g=0;g<c.length;g+=1)-Math.floor(100*p)>=Math.floor(100*c[g])&&(a=g);
// Directions locks
if(i.initialized&&a!==u){if(!i.allowSlideNext&&p<i.translate&&p<i.minTranslate())return!1;if(!i.allowSlidePrev&&p>i.translate&&p>i.maxTranslate()&&(u||0)!==a)return!1}
// Update Index
return d=a>u?"next":a<u?"prev":"reset",h&&-p===i.translate||!h&&p===i.translate?(i.updateActiveIndex(a),
// Update Height
o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==o.effect&&i.setTranslate(p),"reset"!==d&&(i.transitionStart(n,d),i.transitionEnd(n,d)),!1):(0!==t&&W.transition?(i.setTransition(t),i.setTranslate(p),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,d),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,d))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))):(i.setTransition(0),i.setTranslate(p),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,d),i.transitionEnd(n,d)),!0)}function me(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,a=e;return i.params.loop&&(a+=i.loopedSlides),i.slideTo(a,t,n,r)}
/* eslint no-unused-vars: "off" */function ve(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.params,a=r.animating;return i.loop?!a&&(r.loopFix(),
// eslint-disable-next-line
r._clientLeft=r.$wrapperEl[0].clientLeft,r.slideTo(r.activeIndex+i.slidesPerGroup,e,t,n)):r.slideTo(r.activeIndex+i.slidesPerGroup,e,t,n)}
/* eslint no-unused-vars: "off" */function ye(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.params,a=r.animating,o=r.snapGrid,s=r.slidesGrid,c=r.rtlTranslate;if(i.loop){if(a)return!1;r.loopFix(),
// eslint-disable-next-line
r._clientLeft=r.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var u,h=l(c?r.translate:-r.translate),f=o.map((function(e){return l(e)})),d=(s.map((function(e){return l(e)})),o[f.indexOf(h)],o[f.indexOf(h)-1]);return void 0!==d&&(u=s.indexOf(d))<0&&(u=r.activeIndex-1),r.slideTo(u,e,t,n)}
/* eslint no-unused-vars: "off" */function Ae(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this;return r.slideTo(r.activeIndex,e,t,n)}
/* eslint no-unused-vars: "off" */function be(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.activeIndex,a=Math.floor(i/r.params.slidesPerGroup);if(a<r.snapGrid.length-1){var o=r.rtlTranslate?r.translate:-r.translate,s=r.snapGrid[a];o-s>(r.snapGrid[a+1]-s)/2&&(i=r.params.slidesPerGroup)}return r.slideTo(i,e,t,n)}function we(){var e,t=this,n=t.params,i=t.$wrapperEl,a="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(r(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?o<t.loopedSlides-a/2||o>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),o=i.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),V.nextTick((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-a?(t.loopFix(),o=i.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),V.nextTick((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}var xe={slideTo:ge,slideToLoop:me,slideNext:ve,slidePrev:ye,slideReset:Ae,slideToClosest:be,slideToClickedSlide:we};function Ce(){var t=this,n=t.params,i=t.$wrapperEl;
// Remove duplicated slides
i.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var a=i.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-a.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;s<o;s+=1){var c=r(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);i.append(c)}a=i.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=a.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>a.length&&(t.loopedSlides=a.length);var l=[],u=[];a.each((function(e,n){var i=r(n);e<t.loopedSlides&&u.push(n),e<a.length&&e>=a.length-t.loopedSlides&&l.push(n),i.attr("data-swiper-slide-index",e)}));for(var h=0;h<u.length;h+=1)i.append(r(u[h].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var f=l.length-1;f>=0;f-=1)i.prepend(r(l[f].cloneNode(!0)).addClass(n.slideDuplicateClass))}function _e(){var e,t=this,n=t.params,r=t.activeIndex,i=t.slides,a=t.loopedSlides,o=t.allowSlidePrev,s=t.allowSlideNext,c=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var u=-c[r]-t.getTranslate();
// Fix For Negative Oversliding
r<a?(e=i.length-3*a+r,e+=a,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((l?-t.translate:t.translate)-u)):("auto"===n.slidesPerView&&r>=2*a||r>=i.length-a)&&(
// Fix For Positive Oversliding
e=-i.length+r+a,e+=a,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((l?-t.translate:t.translate)-u)),t.allowSlidePrev=o,t.allowSlideNext=s}function Ie(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}var Ee={loopCreate:Ce,loopFix:_e,loopDestroy:Ie};function ke(e){var t=this;if(!(W.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}}function Se(){var e=this;W.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var Be={setGrabCursor:ke,unsetGrabCursor:Se};function Me(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);r.loop&&t.loopCreate(),r.observer&&W.observer||t.update()}function Te(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.activeIndex;n.loop&&t.loopDestroy();var a=i+1;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&r.prepend(e[o]);a=i+e.length}else r.prepend(e);n.loop&&t.loopCreate(),n.observer&&W.observer||t.update(),t.slideTo(a,0,!1)}function Oe(e,t){var n=this,r=n.$wrapperEl,i=n.params,a=n.activeIndex;i.loop&&(a-=n.loopedSlides,n.loopDestroy(),n.slides=r.children("."+i.slideClass));var o=n.slides.length;if(e<=0)n.prependSlide(t);else if(e>=o)n.appendSlide(t);else{for(var s=a>e?a+1:a,c=[],l=o-1;l>=e;l-=1){var u=n.slides.eq(l);u.remove(),c.unshift(u)}if("object"==typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&r.append(t[h]);s=a>e?a+t.length:a}else r.append(t);for(var f=0;f<c.length;f+=1)r.append(c[f]);i.loop&&n.loopCreate(),i.observer&&W.observer||n.update(),i.loop?n.slideTo(s+n.loopedSlides,0,!1):n.slideTo(s,0,!1)}}function De(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.activeIndex;n.loop&&(i-=t.loopedSlides,t.loopDestroy(),t.slides=r.children("."+n.slideClass));var a,o=i;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)a=e[s],t.slides[a]&&t.slides.eq(a).remove(),a<o&&(o-=1);o=Math.max(o,0)}else a=e,t.slides[a]&&t.slides.eq(a).remove(),a<o&&(o-=1),o=Math.max(o,0);n.loop&&t.loopCreate(),n.observer&&W.observer||t.update(),n.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function Pe(){for(var e=this,t=[],n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var Le={appendSlide:Me,prependSlide:Te,addSlide:Oe,removeSlide:De,removeAllSlides:Pe},Qe=function(){var n=t.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},i=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=n.match(/(Android);?[\s\/]+([\d.]+)?/),o=n.match(/(iPad).*OS\s([\d_]+)/),s=n.match(/(iPod)(.*OS\s([\d_]+))?/),c=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
// Minimal UI
if(
// Windows
i&&(r.os="windows",r.osVersion=i[2],r.windows=!0),
// Android
a&&!i&&(r.os="android",r.osVersion=a[2],r.android=!0,r.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(o||c||s)&&(r.os="ios",r.ios=!0),
// iOS
c&&!s&&(r.osVersion=c[2].replace(/_/g,"."),r.iphone=!0),o&&(r.osVersion=o[2].replace(/_/g,"."),r.ipad=!0),s&&(r.osVersion=s[3]?s[3].replace(/_/g,"."):null,r.iphone=!0),
// iOS 8+ changed UA
r.ios&&r.osVersion&&n.indexOf("Version/")>=0&&"10"===r.osVersion.split(".")[0]&&(r.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),
// Desktop
r.desktop=!(r.os||r.android||r.webView),
// Webview
r.webView=(c||o||s)&&n.match(/.*AppleWebKit(?!.*Safari)/i),r.os&&"ios"===r.os){var l=r.osVersion.split("."),u=e.querySelector('meta[name="viewport"]');r.minimalUi=!r.webView&&(s||c)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&u&&u.getAttribute("content").indexOf("minimal-ui")>=0}
// Pixel Ratio
// Export object
return r.pixelRatio=t.devicePixelRatio||1,r}();function Re(n){var i=this,a=i.touchEventsData,o=i.params,s=i.touches;if(!i.animating||!o.preventInteractionOnTransition){var c=n;if(c.originalEvent&&(c=c.originalEvent),a.isTouchEvent="touchstart"===c.type,(a.isTouchEvent||!("which"in c)||3!==c.which)&&!(!a.isTouchEvent&&"button"in c&&c.button>0||a.isTouched&&a.isMoved))if(o.noSwiping&&r(c.target).closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])i.allowClick=!0;else if(!o.swipeHandler||r(c).closest(o.swipeHandler)[0]){s.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,s.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;var l=s.currentX,u=s.currentY,h=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,f=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(!h||!(l<=f||l>=t.screen.width-f)){if(V.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=l,s.startY=u,a.touchStartTime=V.now(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==c.type){var d=!0;r(c.target).is(a.formElements)&&(d=!1),e.activeElement&&r(e.activeElement).is(a.formElements)&&e.activeElement!==c.target&&e.activeElement.blur();var p=d&&i.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||p)&&c.preventDefault()}i.emit("touchStart",c)}}}}function je(t){var n=this,i=n.touchEventsData,a=n.params,o=n.touches,s=n.rtlTranslate,c=t;if(c.originalEvent&&(c=c.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==c.type){var l="touchmove"===c.type?c.targetTouches[0].pageX:c.pageX,u="touchmove"===c.type?c.targetTouches[0].pageY:c.pageY;if(c.preventedByNestedSwiper)return o.startX=l,void(o.startY=u);if(!n.allowTouchMove)
// isMoved = true;
return n.allowClick=!1,void(i.isTouched&&(V.extend(o,{startX:l,startY:u,currentX:l,currentY:u}),i.touchStartTime=V.now()));if(i.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){
// Vertical
if(u<o.startY&&n.translate<=n.maxTranslate()||u>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(l<o.startX&&n.translate<=n.maxTranslate()||l>o.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&c.target===e.activeElement&&r(c.target).is(i.formElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",c),!(c.targetTouches&&c.targetTouches.length>1)){o.currentX=l,o.currentY=u;var h,f=o.currentX-o.startX,d=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(f,2)+Math.pow(d,2))<n.params.threshold))if(void 0===i.isScrolling&&(n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:
// eslint-disable-next-line
f*f+d*d>=25&&(h=180*Math.atan2(Math.abs(d),Math.abs(f))/Math.PI,i.isScrolling=n.isHorizontal()?h>a.touchAngle:90-h>a.touchAngle)),i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){n.allowClick=!1,c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation(),i.isMoved||(a.loop&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,
// Grab Cursor
!a.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)),n.emit("sliderMove",c),i.isMoved=!0;var p=n.isHorizontal()?f:d;o.diff=p,p*=a.touchRatio,s&&(p=-p),n.swipeDirection=p>0?"prev":"next",i.currentTranslate=p+i.startTranslate;var g=!0,m=a.resistanceRatio;
// Threshold
if(a.touchReleaseOnEdges&&(m=0),p>0&&i.currentTranslate>n.minTranslate()?(g=!1,a.resistance&&(i.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+i.startTranslate+p,m))):p<0&&i.currentTranslate<n.maxTranslate()&&(g=!1,a.resistance&&(i.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-i.startTranslate-p,m))),g&&(c.preventedByNestedSwiper=!0),
// Directions locks
!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),a.threshold>0){if(!(Math.abs(p)>a.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}a.followFinger&&(
// Update active index in free mode
(a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&(
// Velocity
0===i.velocities.length&&i.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:V.now()})),
// Update progress
n.updateProgress(i.currentTranslate),
// Update translate
n.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c)}function Ne(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.$wrapperEl,s=t.slidesGrid,c=t.snapGrid,l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);
// Return Grab Cursor
r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);
// Time diff
var u,h=V.now(),f=h-n.touchStartTime;if(
// Tap, doubleTap, Click
t.allowClick&&(t.updateClickedSlide(l),t.emit("tap",l),f<300&&h-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=V.nextTick((function(){t&&!t.destroyed&&t.emit("click",l)}),300)),f<300&&h-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",l))),n.lastClickTime=V.now(),V.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){var d=n.velocities.pop(),p=n.velocities.pop(),g=d.position-p.position,m=d.time-p.time;t.velocity=g/m,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),
// this implies that the user stopped moving a finger then released.
// There would be no events with distance zero, so the last event is stale.
(m>150||V.now()-d.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var v=1e3*r.freeModeMomentumRatio,y=t.velocity*v,A=t.translate+y;a&&(A=-A);var b,w,x=!1,C=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(A<t.maxTranslate())r.freeModeMomentumBounce?(A+t.maxTranslate()<-C&&(A=t.maxTranslate()-C),b=t.maxTranslate(),x=!0,n.allowMomentumBounce=!0):A=t.maxTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(A>t.minTranslate())r.freeModeMomentumBounce?(A-t.minTranslate()>C&&(A=t.minTranslate()+C),b=t.minTranslate(),x=!0,n.allowMomentumBounce=!0):A=t.minTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(r.freeModeSticky){for(var _,I=0;I<c.length;I+=1)if(c[I]>-A){_=I;break}A=-(A=Math.abs(c[_]-A)<Math.abs(c[_-1]-A)||"next"===t.swipeDirection?c[_]:c[_-1])}
// Fix duration
if(w&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)v=a?Math.abs((-A-t.translate)/t.velocity):Math.abs((A-t.translate)/t.velocity);else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&x?(t.updateProgress(b),t.setTransition(v),t.setTranslate(A),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),t.setTranslate(b),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(A),t.setTransition(v),t.setTranslate(A),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(A),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();(!r.freeModeMomentum||f>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}
// Find current slide
else{for(var E=0,k=t.slidesSizesGrid[0],S=0;S<s.length;S+=r.slidesPerGroup)void 0!==s[S+r.slidesPerGroup]?u>=s[S]&&u<s[S+r.slidesPerGroup]&&(E=S,k=s[S+r.slidesPerGroup]-s[S]):u>=s[S]&&(E=S,k=s[s.length-1]-s[s.length-2]);
// Find current slide size
var B=(u-s[E])/k;if(f>r.longSwipesMs){
// Long touches
if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(B>=r.longSwipesRatio?t.slideTo(E+r.slidesPerGroup):t.slideTo(E)),"prev"===t.swipeDirection&&(B>1-r.longSwipesRatio?t.slideTo(E+r.slidesPerGroup):t.slideTo(E))}else{
// Short swipes
if(!r.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(E+r.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(E)}}}function Fe(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){
// Breakpoints
t.breakpoints&&e.setBreakpoint();
// Save locks
var r=e.allowSlideNext,i=e.allowSlidePrev,a=e.snapGrid;if(
// Disable locks on resize
e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var o=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),
// Return locks after resize
e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function ze(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function He(){var t=this,n=t.params,r=t.touchEvents,i=t.el,a=t.wrapperEl;t.onTouchStart=Re.bind(t),t.onTouchMove=je.bind(t),t.onTouchEnd=Ne.bind(t),t.onClick=ze.bind(t);var o="container"===n.touchEventsTarget?i:a,s=!!n.nested;if(W.touch||!W.pointerEvents&&!W.prefixedPointerEvents){if(W.touch){var c=!("touchstart"!==r.start||!W.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.addEventListener(r.start,t.onTouchStart,c),o.addEventListener(r.move,t.onTouchMove,W.passiveListener?{passive:!1,capture:s}:s),o.addEventListener(r.end,t.onTouchEnd,c)}(n.simulateTouch&&!Qe.ios&&!Qe.android||n.simulateTouch&&!W.touch&&Qe.ios)&&(o.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,s),e.addEventListener("mouseup",t.onTouchEnd,!1))}
// Prevent Links Clicks
else o.addEventListener(r.start,t.onTouchStart,!1),e.addEventListener(r.move,t.onTouchMove,s),e.addEventListener(r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&o.addEventListener("click",t.onClick,!0),
// Resize handler
t.on(Qe.ios||Qe.android?"resize orientationchange observerUpdate":"resize observerUpdate",Fe,!0)}function Ue(){var t=this,n=t.params,r=t.touchEvents,i=t.el,a=t.wrapperEl,o="container"===n.touchEventsTarget?i:a,s=!!n.nested;if(W.touch||!W.pointerEvents&&!W.prefixedPointerEvents){if(W.touch){var c=!("onTouchStart"!==r.start||!W.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(r.start,t.onTouchStart,c),o.removeEventListener(r.move,t.onTouchMove,s),o.removeEventListener(r.end,t.onTouchEnd,c)}(n.simulateTouch&&!Qe.ios&&!Qe.android||n.simulateTouch&&!W.touch&&Qe.ios)&&(o.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,s),e.removeEventListener("mouseup",t.onTouchEnd,!1))}
// Prevent Links Clicks
else o.removeEventListener(r.start,t.onTouchStart,!1),e.removeEventListener(r.move,t.onTouchMove,s),e.removeEventListener(r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&o.removeEventListener("click",t.onClick,!0),
// Resize handler
t.off(Qe.ios||Qe.android?"resize orientationchange observerUpdate":"resize observerUpdate",Fe)}function Ge(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides;void 0===r&&(r=0);var i=e.params,a=i.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){
// Set breakpoint for window width and update parameters
var o=e.getBreakpoint(a);if(o&&e.currentBreakpoint!==o){var s=o in a?a[o]:void 0;s&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=s[e];void 0!==t&&(s[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=s||e.originalParams,l=c.direction&&c.direction!==i.direction,u=i.loop&&(c.slidesPerView!==i.slidesPerView||l);l&&n&&e.changeDirection(),V.extend(e.params,c),V.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,u&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}}function Ve(e){var n=this;
// Get breakpoint for window width
if(e){var r=!1,i=[];Object.keys(e).forEach((function(e){i.push(e)})),i.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var a=0;a<i.length;a+=1){var o=i[a];n.params.breakpointsInverse?o<=t.innerWidth&&(r=o):o>=t.innerWidth&&!r&&(r=o)}return r||"max"}}function We(){var e=this,t=e.classNames,n=e.params,r=e.rtl,i=e.$el,a=[];a.push("initialized"),a.push(n.direction),n.freeMode&&a.push("free-mode"),W.flexbox||a.push("no-flexbox"),n.autoHeight&&a.push("autoheight"),r&&a.push("rtl"),n.slidesPerColumn>1&&a.push("multirow"),Qe.android&&a.push("android"),Qe.ios&&a.push("ios"),
// WP8 Touch Events Fix
(q.isIE||q.isEdge)&&(W.pointerEvents||W.prefixedPointerEvents)&&a.push("wp8-"+n.direction),a.forEach((function(e){t.push(n.containerModifierClass+e)})),i.addClass(t.join(" "))}function qe(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" "))}function Ye(e,n,r,i,a,o){var s;function c(){o&&o()}e.complete&&a?
// image already loaded...
c():n?((s=new t.Image).onload=c,s.onerror=c,i&&(s.sizes=i),r&&(s.srcset=r),n&&(s.src=n)):c()}function Ke(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}function $e(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,
// events
t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}var Je={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,
preventInteractionOnTransition:!1,
// To support iOS's swipe-to-go-back gesture (when being used in-app, with UIWebView).
edgeSwipeDetection:!1,edgeSwipeThreshold:20,
// Free mode
freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,
// Autoheight
autoHeight:!1,
// Set wrapper width
setWrapperSize:!1,
// Virtual Translate
virtualTranslate:!1,
// Effects
effect:"slide",// 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
// Breakpoints
breakpoints:void 0,breakpointsInverse:!1,
// Slides grid
spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,// in px
slidesOffsetAfter:0,// in px
normalizeSlideIndex:!0,centerInsufficientSlides:!1,
// Disable swiper and hide navigation when container not overflow
watchOverflow:!1,
// Round length
roundLengths:!1,
// Touches
touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,
// Unique Navigation Elements
uniqueNavElements:!0,
// Resistance
resistance:!0,resistanceRatio:.85,
// Progress
watchSlidesProgress:!1,watchSlidesVisibility:!1,
// Cursor
grabCursor:!1,
// Clicks
preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,
// Images
preloadImages:!0,updateOnImagesReady:!0,
// loop
loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,
// Swiping/no swiping
allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,// '.swipe-handler',
noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,
// Passive Listeners
passiveListeners:!0,
// NS
containerModifierClass:"swiper-container-",// NEW
slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",
// Callbacks
runCallbacksOnInit:!0},Xe={update:ae,translate:ue,transition:pe,slide:xe,loop:Ee,grabCursor:Be,manipulation:Le,events:{attachEvents:He,detachEvents:Ue},breakpoints:{setBreakpoint:Ge,getBreakpoint:Ve},checkOverflow:{checkOverflow:$e},classes:{addClasses:We,removeClasses:qe},images:{loadImage:Ye,preloadImages:Ke}},Ze={},et=function(e){function t(){for(var n,i,a,o=[],s=arguments.length;s--;)o[s]=arguments[s];1===o.length&&o[0].constructor&&o[0].constructor===Object?a=o[0]:(i=(n=o)[0],a=n[1]),a||(a={}),a=V.extend({},a),i&&!a.el&&(a.el=i),e.call(this,a),Object.keys(Xe).forEach((function(e){Object.keys(Xe[e]).forEach((function(n){t.prototype[n]||(t.prototype[n]=Xe[e][n])}))}));
// Swiper Instance
var c=this;void 0===c.modules&&(c.modules={}),Object.keys(c.modules).forEach((function(e){var t=c.modules[e];if(t.params){var n=Object.keys(t.params)[0],r=t.params[n];if("object"!=typeof r||null===r)return;if(!(n in a)||!("enabled"in r))return;!0===a[n]&&(a[n]={enabled:!0}),"object"!=typeof a[n]||"enabled"in a[n]||(a[n].enabled=!0),a[n]||(a[n]={enabled:!1})}}));
// Extend defaults with modules params
var l=V.extend({},Je);c.useModulesParams(l),
// Extend defaults with passed params
c.params=V.extend({},l,Ze,a),c.originalParams=V.extend({},c.params),c.passedParams=V.extend({},a),
// Save Dom lib
c.$=r;
// Find el
var u=r(c.params.el);if(i=u[0]){if(u.length>1){var h=[];return u.each((function(e,n){var r=V.extend({},a,{el:n});h.push(new t(r))})),h}i.swiper=c,u.data("swiper",c);
// Find Wrapper
var f,d,p=u.children("."+c.params.wrapperClass);
// Extend Swiper
// Return app instance
return V.extend(c,{$el:u,el:i,$wrapperEl:p,wrapperEl:p[0],
// Classes
classNames:[],
// Slides
slides:r(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],
// isDirection
isHorizontal:function(){return"horizontal"===c.params.direction},isVertical:function(){return"vertical"===c.params.direction},
// RTL
rtl:"rtl"===i.dir.toLowerCase()||"rtl"===u.css("direction"),rtlTranslate:"horizontal"===c.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===u.css("direction")),wrongRTL:"-webkit-box"===p.css("display"),
// Indexes
activeIndex:0,realIndex:0,
isBeginning:!0,isEnd:!1,
// Props
translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,
// Locks
allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,
// Touch Events
touchEvents:(f=["touchstart","touchmove","touchend"],d=["mousedown","mousemove","mouseup"],W.pointerEvents?d=["pointerdown","pointermove","pointerup"]:W.prefixedPointerEvents&&(d=["MSPointerDown","MSPointerMove","MSPointerUp"]),c.touchEventsTouch={start:f[0],move:f[1],end:f[2]},c.touchEventsDesktop={start:d[0],move:d[1],end:d[2]},W.touch||!c.params.simulateTouch?c.touchEventsTouch:c.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,
// Form elements to match
formElements:"input, select, option, textarea, button, video",
// Last click time
lastClickTime:V.now(),clickTimeout:void 0,
// Velocities
velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},
// Clicks
allowClick:!0,
// Touches
allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},
// Images
imagesToLoad:[],imagesLoaded:0}),
// Install Modules
c.useModules(),
// Init
c.params.init&&c.init(),c}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,a=e.activeIndex,o=1;if(t.centeredSlides){for(var s,c=n[a].swiperSlideSize,l=a+1;l<n.length;l+=1)n[l]&&!s&&(o+=1,(c+=n[l].swiperSlideSize)>i&&(s=!0));for(var u=a-1;u>=0;u-=1)n[u]&&!s&&(o+=1,(c+=n[u].swiperSlideSize)>i&&(s=!0))}else for(var h=a+1;h<n.length;h+=1)r[h]-r[a]<i&&(o+=1);return o},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;
// Breakpoints
n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(
// eslint-disable-next-line
e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r+" wp8-"+r).addClass(""+n.params.containerModifierClass+e),(q.isIE||q.isEdge)&&(W.pointerEvents||W.prefixedPointerEvents)&&n.$el.addClass(n.params.containerModifierClass+"wp8-"+e),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),
// Set breakpoint
e.params.breakpoints&&e.setBreakpoint(),
// Add Classes
e.addClasses(),
// Create loop
e.params.loop&&e.loopCreate(),
// Update size
e.updateSize(),
// Update slides
e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),
// Set Grab Cursor
e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),
// Slide To Initial Slide
e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),
// Attach events
e.attachEvents(),
// Init Flag
e.initialized=!0,
// Emit
e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),
// Init Flag
n.initialized=!1,
// Detach events
n.detachEvents(),
// Destroy loop
r.loop&&n.loopDestroy(),
// Cleanup styles
t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),
// Detach emitter events
Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),V.deleteProps(n)),n.destroyed=!0),null},t.extendDefaults=function(e){V.extend(Ze,e)},n.extendedDefaults.get=function(){return Ze},n.defaults.get=function(){return Je},n.Class.get=function(){return e},n.$.get=function(){return r},Object.defineProperties(t,n),t}(Y),tt={name:"device",proto:{device:Qe},static:{device:Qe}},nt={name:"support",proto:{support:W},static:{support:W}},rt={name:"browser",proto:{browser:q},static:{browser:q}},it={name:"resize",create:function(){var e=this;V.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;
// Emit resize
t.addEventListener("resize",e.resize.resizeHandler),
// Emit orientationchange
t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},at={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,n){void 0===n&&(n={});var r=this,i=new(0,at.func)((function(e){
// The observerUpdate event should only be triggered
// once despite the number of mutations.  Additional
// triggers are redundant and are very costly
if(1!==e.length){var n=function(){r.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(n):t.setTimeout(n,0)}else r.emit("observerUpdate",e[0])}));i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),r.observer.observers.push(i)},init:function(){var e=this;if(W.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),n=0;n<t.length;n+=1)e.observer.attach(t[n]);
// Observe container
e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),
// Observe wrapper
e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach((function(e){e.disconnect()})),e.observer.observers=[]}},ot={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;V.extend(e,{observer:{init:at.init.bind(e),attach:at.attach.bind(e),destroy:at.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},st={update:function(e){var t=this,n=t.params,r=n.slidesPerView,i=n.slidesPerGroup,a=n.centeredSlides,o=t.params.virtual,s=o.addSlidesBefore,c=o.addSlidesAfter,l=t.virtual,u=l.from,h=l.to,f=l.slides,d=l.slidesGrid,p=l.renderSlide,g=l.offset;t.updateActiveIndex();var m,v,y,A=t.activeIndex||0;m=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(v=Math.floor(r/2)+i+s,y=Math.floor(r/2)+i+c):(v=r+(i-1)+s,y=i+c);var b=Math.max((A||0)-y,0),w=Math.min((A||0)+v,f.length-1),x=(t.slidesGrid[b]||0)-(t.slidesGrid[0]||0);function C(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(V.extend(t.virtual,{from:b,to:w,offset:x,slidesGrid:t.slidesGrid}),u===b&&h===w&&!e)return t.slidesGrid!==d&&x!==g&&t.slides.css(m,x+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:x,from:b,to:w,slides:function(){for(var e=[],t=b;t<=w;t+=1)e.push(f[t]);return e}()}),void C();var _=[],I=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var E=u;E<=h;E+=1)(E<b||E>w)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+E+'"]').remove();for(var k=0;k<f.length;k+=1)k>=b&&k<=w&&(void 0===h||e?I.push(k):(k>h&&I.push(k),k<u&&_.push(k)));I.forEach((function(e){t.$wrapperEl.append(p(f[e],e))})),_.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(p(f[e],e))})),t.$wrapperEl.children(".swiper-slide").css(m,x+"px"),C()},renderSlide:function(e,t){var n=this,i=n.params.virtual;if(i.cache&&n.virtual.cache[t])return n.virtual.cache[t];var a=i.renderSlide?r(i.renderSlide.call(n,e,t)):r('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),i.cache&&(n.virtual.cache[t]=a),a},appendSlide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,n=t.activeIndex,r=n+1,i=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);r=n+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var o=t.virtual.cache,s={};Object.keys(o).forEach((function(e){s[parseInt(e,10)+i]=o[e]})),t.virtual.cache=s}t.virtual.update(!0),t.slideTo(r,0)},removeSlide:function(e){var t=this;if(null!=e){var n=t.activeIndex;if(Array.isArray(e))for(var r=e.length-1;r>=0;r-=1)t.virtual.slides.splice(e[r],1),t.params.virtual.cache&&delete t.virtual.cache[e[r]],e[r]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},ct={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;V.extend(e,{virtual:{update:st.update.bind(e),appendSlide:st.appendSlide.bind(e),prependSlide:st.prependSlide.bind(e),removeSlide:st.removeSlide.bind(e),removeAllSlides:st.removeAllSlides.bind(e),renderSlide:st.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};V.extend(e.params,t),V.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},lt={handle:function(n){var r=this,i=r.rtlTranslate,a=n;a.originalEvent&&(a=a.originalEvent);// jquery fix
var o=a.keyCode||a.charCode;
// Directions locks
if(!r.allowSlideNext&&(r.isHorizontal()&&39===o||r.isVertical()&&40===o||34===o))return!1;if(!r.allowSlidePrev&&(r.isHorizontal()&&37===o||r.isVertical()&&38===o||33===o))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(r.params.keyboard.onlyInViewport&&(33===o||34===o||37===o||39===o||38===o||40===o)){var s=!1;
// Check that swiper should be inside of visible area of window
if(r.$el.parents("."+r.params.slideClass).length>0&&0===r.$el.parents("."+r.params.slideActiveClass).length)return;var c=t.innerWidth,l=t.innerHeight,u=r.$el.offset();i&&(u.left-=r.$el[0].scrollLeft);for(var h=[[u.left,u.top],[u.left+r.width,u.top],[u.left,u.top+r.height],[u.left+r.width,u.top+r.height]],f=0;f<h.length;f+=1){var d=h[f];d[0]>=0&&d[0]<=c&&d[1]>=0&&d[1]<=l&&(s=!0)}if(!s)return}r.isHorizontal()?(33!==o&&34!==o&&37!==o&&39!==o||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==o&&39!==o||i)&&(33!==o&&37!==o||!i)||r.slideNext(),(33!==o&&37!==o||i)&&(34!==o&&39!==o||!i)||r.slidePrev()):(33!==o&&34!==o&&38!==o&&40!==o||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==o&&40!==o||r.slideNext(),33!==o&&38!==o||r.slidePrev()),r.emit("keyPress",o)}},enable:function(){var t=this;t.keyboard.enabled||(r(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(r(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},ut={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;V.extend(e,{keyboard:{enabled:!1,enable:lt.enable.bind(e),disable:lt.disable.bind(e),handle:lt.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function ht(){var t="onwheel",n=t in e;if(!n){var r=e.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return!n&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(
// This is the only way to test support for the `wheel` event in IE9+.
n=e.implementation.hasFeature("Events.wheel","3.0")),n}var ft={lastScrollTime:V.now(),event:t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":ht()?"wheel":"mousewheel",normalize:function(e){
// Reasonable defaults
var t=10,n=40,r=800,i=0,a=0,o=0,s=0;// pixelX, pixelY
// Legacy
return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),
// side scrolling on FF with DOMMouseScroll
"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=a,a=0),o=i*t,s=a*t,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||s)&&e.deltaMode&&(1===e.deltaMode?(// delta in LINE units
o*=n,s*=n):(// delta in PAGE units
o*=r,s*=r)),
// Fall-back if spin cannot be determined
o&&!i&&(i=o<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinX:i,spinY:a,pixelX:o,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var n=e,r=this,i=r.params.mousewheel;if(!r.mouseEntered&&!i.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);// jquery fix
var a=0,o=r.rtlTranslate?-1:1,s=ft.normalize(n);if(i.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;a=s.pixelX*o}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;a=s.pixelY}else a=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*o:-s.pixelY;if(0===a)return!0;if(i.invert&&(a=-a),r.params.freeMode){
// Freemode or scrollContainer:
r.params.loop&&r.loopFix();var c=r.getTranslate()+a*i.sensitivity,l=r.isBeginning,u=r.isEnd;
// Return page scroll on edge positions
if(c>=r.minTranslate()&&(c=r.minTranslate()),c<=r.maxTranslate()&&(c=r.maxTranslate()),r.setTransition(0),r.setTranslate(c),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!l&&r.isBeginning||!u&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky&&(clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=V.nextTick((function(){r.slideToClosest()}),300)),
// Emit event
r.emit("scroll",n),
// Stop autoplay
r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),c===r.minTranslate()||c===r.maxTranslate())return!0}else{if(V.now()-r.mousewheel.lastScrollTime>60)if(a<0)if(r.isEnd&&!r.params.loop||r.animating){if(i.releaseOnEdges)return!0}else r.slideNext(),r.emit("scroll",n);else if(r.isBeginning&&!r.params.loop||r.animating){if(i.releaseOnEdges)return!0}else r.slidePrev(),r.emit("scroll",n);r.mousewheel.lastScrollTime=(new t.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){var e=this;if(!ft.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=r(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(ft.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!ft.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=r(e.params.mousewheel.eventsTarged)),t.off(ft.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},dt={update:function(){
// Update Navigation Buttons
var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,r=n.$nextEl,i=n.$prevEl;i&&i.length>0&&(e.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),r&&r.length>0&&(e.isEnd?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,i=n.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=r(i.nextEl),n.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===n.$el.find(i.nextEl).length&&(e=n.$el.find(i.nextEl))),i.prevEl&&(t=r(i.prevEl),n.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===n.$el.find(i.prevEl).length&&(t=n.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),V.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}},pt={update:function(){
// Render || Update Pagination bullets/items
var e=this,t=e.rtl,n=e.params.pagination;if(n.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,o=e.pagination.$el,s=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;
// Types
if(e.params.loop?((i=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>a-1-2*e.loopedSlides&&(i-=a-2*e.loopedSlides),i>s-1&&(i-=s),i<0&&"bullets"!==e.params.paginationType&&(i=s+i)):i=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var c,l,u,h=e.pagination.bullets;if(n.dynamicBullets&&(e.pagination.bulletSize=h.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=i-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),c=i-e.pagination.dynamicBulletIndex,u=((l=c+(Math.min(h.length,n.dynamicMainBullets)-1))+c)/2),h.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),o.length>1)h.each((function(e,t){var a=r(t),o=a.index();o===i&&a.addClass(n.bulletActiveClass),n.dynamicBullets&&(o>=c&&o<=l&&a.addClass(n.bulletActiveClass+"-main"),o===c&&a.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),o===l&&a.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else if(h.eq(i).addClass(n.bulletActiveClass),n.dynamicBullets){for(var f=h.eq(c),d=h.eq(l),p=c;p<=l;p+=1)h.eq(p).addClass(n.bulletActiveClass+"-main");f.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),d.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}if(n.dynamicBullets){var g=Math.min(h.length,n.dynamicMainBullets+4),m=(e.pagination.bulletSize*g-e.pagination.bulletSize)/2-u*e.pagination.bulletSize,v=t?"right":"left";h.css(e.isHorizontal()?v:"top",m+"px")}}if("fraction"===n.type&&(o.find("."+n.currentClass).text(n.formatFractionCurrent(i+1)),o.find("."+n.totalClass).text(n.formatFractionTotal(s))),"progressbar"===n.type){var y;y=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var A=(i+1)/s,b=1,w=1;"horizontal"===y?b=A:w=A,o.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+w+")").transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(o.html(n.renderCustom(e,i+1,s)),e.emit("paginationRender",e,o[0])):e.emit("paginationUpdate",e,o[0]),o[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){
// Render Container
var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,i="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,o=0;o<a;o+=1)t.renderBullet?i+=t.renderBullet.call(e,o,t.bulletClass):i+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";r.html(i),e.pagination.bullets=r.find("."+t.bulletClass)}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',r.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',r.html(i)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=r(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,(function(t){t.preventDefault();var n=r(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),V.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click","."+t.bulletClass)}}},gt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,r=e.progress,i=t.dragSize,a=t.trackSize,o=t.$dragEl,s=t.$el,c=e.params.scrollbar,l=i,u=(a-i)*r;n?(u=-u)>0?(l=i-u,u=0):-u+i>a&&(l=a+u):u<0?(l=i+u,u=0):u+i>a&&(l=a-u),e.isHorizontal()?(W.transforms3d?o.transform("translate3d("+u+"px, 0, 0)"):o.transform("translateX("+u+"px)"),o[0].style.width=l+"px"):(W.transforms3d?o.transform("translate3d(0px, "+u+"px, 0)"):o.transform("translateY("+u+"px)"),o[0].style.height=l+"px"),c.hide&&(clearTimeout(e.scrollbar.timeout),s[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){s[0].style.opacity=0,s.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=t.$dragEl,r=t.$el;n[0].style.width="",n[0].style.height="";var i,a=e.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,o=e.size/e.virtualSize,s=o*(a/e.size);i="auto"===e.params.scrollbar.dragSize?a*o:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=i+"px":n[0].style.height=i+"px",r[0].style.display=o>=1?"none":"",e.params.scrollbar.hide&&(r[0].style.opacity=0),V.extend(t,{trackSize:a,divider:o,moveDivider:s,dragSize:i}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,n=this,r=n.scrollbar,i=n.rtlTranslate,a=r.$el,o=r.dragSize,s=r.trackSize,c=r.dragStartPos;t=(r.getPointerPosition(e)-a.offset()[n.isHorizontal()?"left":"top"]-(null!==c?c:o/2))/(s-o),t=Math.max(Math.min(t,1),0),i&&(t=1-t);var l=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*t;n.updateProgress(l),n.setTranslate(l),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar,i=t.$wrapperEl,a=r.$el,o=r.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===o[0]||e.target===o?r.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),o.transition(100),r.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),n.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,r=t.$wrapperEl,i=n.$el,a=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),r.transition(0),i.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=V.nextTick((function(){r.css("opacity",0),r.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.touchEventsTouch,i=t.touchEventsDesktop,a=t.params,o=n.$el[0],s=!(!W.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},c=!(!W.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};W.touch?(o.addEventListener(r.start,t.scrollbar.onDragStart,s),o.addEventListener(r.move,t.scrollbar.onDragMove,s),o.addEventListener(r.end,t.scrollbar.onDragEnd,c)):(o.addEventListener(i.start,t.scrollbar.onDragStart,s),e.addEventListener(i.move,t.scrollbar.onDragMove,s),e.addEventListener(i.end,t.scrollbar.onDragEnd,c))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.touchEventsTouch,i=t.touchEventsDesktop,a=t.params,o=n.$el[0],s=!(!W.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},c=!(!W.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};W.touch?(o.removeEventListener(r.start,t.scrollbar.onDragStart,s),o.removeEventListener(r.move,t.scrollbar.onDragMove,s),o.removeEventListener(r.end,t.scrollbar.onDragEnd,c)):(o.removeEventListener(i.start,t.scrollbar.onDragStart,s),e.removeEventListener(i.move,t.scrollbar.onDragMove,s),e.removeEventListener(i.end,t.scrollbar.onDragEnd,c))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.$el,i=e.params.scrollbar,a=r(i.el);e.params.uniqueNavElements&&"string"==typeof i.el&&a.length>1&&1===n.find(i.el).length&&(a=n.find(i.el));var o=a.find("."+e.params.scrollbar.dragClass);0===o.length&&(o=r('<div class="'+e.params.scrollbar.dragClass+'"></div>'),a.append(o)),V.extend(t,{$el:a,el:a[0],$dragEl:o,dragEl:o[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},mt={setTransform:function(e,t){var n=this,i=n.rtl,a=r(e),o=i?-1:1,s=a.attr("data-swiper-parallax")||"0",c=a.attr("data-swiper-parallax-x"),l=a.attr("data-swiper-parallax-y"),u=a.attr("data-swiper-parallax-scale"),h=a.attr("data-swiper-parallax-opacity");if(c||l?(c=c||"0",l=l||"0"):n.isHorizontal()?(c=s,l="0"):(l=s,c="0"),c=c.indexOf("%")>=0?parseInt(c,10)*t*o+"%":c*t*o+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=h){var f=h-(h-1)*(1-Math.abs(t));a[0].style.opacity=f}if(null==u)a.transform("translate3d("+c+", "+l+", 0px)");else{var d=u-(u-1)*(1-Math.abs(t));a.transform("translate3d("+c+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,i=e.progress,a=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,i)})),n.each((function(t,n){var o=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(t/2)-i*(a.length-1)),o=Math.min(Math.max(o,-1),1),r(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,o)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var i=r(n),a=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),i.transition(a)}))}},vt={
// Calc Scale From Multi-touches
getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))},
// Events
onGestureStart:function(e){var t=this,n=t.params.zoom,i=t.zoom,a=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!W.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,a.scaleStart=vt.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=r(e.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=t.slides.eq(t.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+n.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),t.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this,n=t.params.zoom,r=t.zoom,i=r.gesture;if(!W.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;r.fakeGestureMoved=!0,i.scaleMove=vt.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(W.gestures?r.scale=e.scale*r.currentScale:r.scale=i.scaleMove/i.scaleStart*r.currentScale,r.scale>i.maxRatio&&(r.scale=i.maxRatio-1+Math.pow(r.scale-i.maxRatio+1,.5)),r.scale<n.minRatio&&(r.scale=n.minRatio+1-Math.pow(n.minRatio-r.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+r.scale+")"))},onGestureEnd:function(e){var t=this,n=t.params.zoom,r=t.zoom,i=r.gesture;if(!W.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Qe.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+r.scale+")"),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,r=t.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(Qe.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,r=n.gesture,i=n.image,a=n.velocity;if(r.$imageEl&&0!==r.$imageEl.length&&(t.allowClick=!1,i.isTouched&&r.$slideEl)){i.isMoved||(i.width=r.$imageEl[0].offsetWidth,i.height=r.$imageEl[0].offsetHeight,i.startX=V.getTranslate(r.$imageWrapEl[0],"x")||0,i.startY=V.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));
// Define if we need image drag
var o=i.width*n.scale,s=i.height*n.scale;if(!(o<r.slideWidth&&s<r.slideHeight)){if(i.minX=Math.min(r.slideWidth/2-o/2,0),i.maxX=-i.minX,i.minY=Math.min(r.slideHeight/2-s/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),
// Velocity
a.prevPositionX||(a.prevPositionX=i.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=i.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(i.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(i.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(i.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(i.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=i.touchesCurrent.x,a.prevPositionY=i.touchesCurrent.y,a.prevTime=Date.now(),r.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,r=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,a=300,o=r.x*i,s=n.currentX+o,c=r.y*a,l=n.currentY+c;
// Fix duration
0!==r.x&&(i=Math.abs((s-n.currentX)/r.x)),0!==r.y&&(a=Math.abs((l-n.currentY)/r.y));var u=Math.max(i,a);n.currentX=s,n.currentY=l;
// Define if we need image drag
var h=n.width*e.scale,f=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-h/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-f/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(u).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},
// Toggle Zoom
toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?
// Zoom Out
t.out():
// Zoom In
t.in(e)},in:function(e){var t,n,i,a,o,s,c,l,u,h,f,d,p,g,m,v,y=this,A=y.zoom,b=y.params.zoom,w=A.gesture,x=A.image;w.$slideEl||(w.$slideEl=y.clickedSlide?r(y.clickedSlide):y.slides.eq(y.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas"),w.$imageWrapEl=w.$imageEl.parent("."+b.containerClass)),w.$imageEl&&0!==w.$imageEl.length&&(w.$slideEl.addClass(""+b.zoomedSlideClass),void 0===x.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=x.touchesStart.x,n=x.touchesStart.y),A.scale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,A.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(m=w.$slideEl[0].offsetWidth,v=w.$slideEl[0].offsetHeight,i=w.$slideEl.offset().left+m/2-t,a=w.$slideEl.offset().top+v/2-n,c=w.$imageEl[0].offsetWidth,l=w.$imageEl[0].offsetHeight,u=c*A.scale,h=l*A.scale,p=-(f=Math.min(m/2-u/2,0)),g=-(d=Math.min(v/2-h/2,0)),(o=i*A.scale)<f&&(o=f),o>p&&(o=p),(s=a*A.scale)<d&&(s=d),s>g&&(s=g)):(o=0,s=0),w.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+s+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+A.scale+")"))},out:function(){var e=this,t=e.zoom,n=e.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=e.clickedSlide?r(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+n.zoomedSlideClass),i.$slideEl=void 0)},
// Attach/Detach Events
enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!W.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};
// Scale image
W.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),
// Move image
e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var n=!("touchstart"!==e.touchEvents.start||!W.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};
// Scale image
W.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),
// Move image
e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},yt={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,i=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),o=a.find("."+i.elementClass+":not(."+i.loadedClass+"):not(."+i.loadingClass+")");!a.hasClass(i.elementClass)||a.hasClass(i.loadedClass)||a.hasClass(i.loadingClass)||(o=o.add(a[0])),0!==o.length&&o.each((function(e,o){var s=r(o);s.addClass(i.loadingClass);var c=s.attr("data-background"),l=s.attr("data-src"),u=s.attr("data-srcset"),h=s.attr("data-sizes");n.loadImage(s[0],l||c,u,h,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(c?(s.css("background-image",'url("'+c+'")'),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),h&&(s.attr("sizes",h),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(i.loadedClass).removeClass(i.loadingClass),a.find("."+i.preloaderClass).remove(),n.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasClass(n.params.slideDuplicateClass)){var r=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(r.index(),!1)}else{var o=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(o.index(),!1)}}n.emit("lazyImageReady",a[0],s[0])}})),n.emit("lazyImageLoad",a[0],s[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,i=e.slides,a=e.activeIndex,o=e.virtual&&n.virtual.enabled,s=n.lazy,c=n.slidesPerView;function l(e){if(o){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(i[e])return!0;return!1}function u(e){return o?r(e).attr("data-swiper-slide-index"):r(e).index()}if("auto"===c&&(c=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each((function(t,n){var i=o?r(n).attr("data-swiper-slide-index"):r(n).index();e.lazy.loadInSlide(i)}));else if(c>1)for(var h=a;h<a+c;h+=1)l(h)&&e.lazy.loadInSlide(h);else e.lazy.loadInSlide(a);if(s.loadPrevNext)if(c>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){
// Next Slides
for(var f=s.loadPrevNextAmount,d=c,p=Math.min(a+d+Math.max(f,d),i.length),g=Math.max(a-Math.max(d,f),0),m=a+c;m<p;m+=1)l(m)&&e.lazy.loadInSlide(m);
// Prev Slides
for(var v=g;v<a;v+=1)l(v)&&e.lazy.loadInSlide(v)}else{var y=t.children("."+n.slideNextClass);y.length>0&&e.lazy.loadInSlide(u(y));var A=t.children("."+n.slidePrevClass);A.length>0&&e.lazy.loadInSlide(u(A))}}},At={LinearSpline:function(e,t){var n,r,i,a,o,s=function(e,t){for(r=-1,n=e.length;n-r>1;)e[i=n+r>>1]<=t?r=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(
// Get the indexes of x1 and x3 (the array indexes before and after given x2):
o=s(this.x,e),a=o-1,(e-this.x[a])*(this.y[o]-this.y[a])/(this.x[o]-this.x[a])+this.y[a]):0},this},
// xxx: for now i will just save one spline function to to
getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new At.LinearSpline(t.slidesGrid,e.slidesGrid):new At.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,i=this,a=i.controller.control;function o(e){
// this will create an Interpolate function based on the snapGrids
// x is the Grid of the scrolled scroller and y will be the controlled scroller
// it makes sense to create this only once and recall it for the interpolation
// the function does a lot of value caching for performance
var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),
// i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid
// but it did not work out
r=-i.controller.spline.interpolate(-t)),r&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),r=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var s=0;s<a.length;s+=1)a[s]!==t&&a[s]instanceof et&&o(a[s]);else a instanceof et&&t!==a&&o(a)},setTransition:function(e,t){var n,r=this,i=r.controller.control;function a(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&V.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof et&&a(i[n]);else i instanceof et&&t!==i&&a(i)}},bt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;V.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:At.getInterpolateFunction.bind(e),setTranslate:At.setTranslate.bind(e),setTransition:At.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition:function(e,t){var n=this;n.controller.control&&n.controller.setTransition(e,t)}}},wt={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,n=t.params.a11y;if(13===e.keyCode){var i=r(e.target);t.navigation&&t.navigation.$nextEl&&i.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&i.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&i.is("."+t.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(e.isBeginning?e.a11y.disableEl(r):e.a11y.enableEl(r)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,i){var a=r(i);e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.paginationBulletMessage.replace(/{{index}}/,a.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);
// Navigation
var t,n,r=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,r.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,r.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),
// Pagination
e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(e=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(t=n.navigation.$prevEl),e&&e.off("keydown",n.a11y.onEnterKey),t&&t.off("keydown",n.a11y.onEnterKey),
// Pagination
n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},xt={init:function(){var e=this;if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var n=e.history;n.initialized=!0,n.paths=xt.getPathValues(),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||t.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=xt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),n=e.length;return{key:e[n-2],value:e[n-1]}},setHistory:function(e,n){var r=this;if(r.history.initialized&&r.params.history.enabled){var i=r.slides.eq(n),a=xt.slugify(i.attr("data-history"));t.location.pathname.includes(e)||(a=e+"/"+a);var o=t.history.state;o&&o.value===a||(r.params.history.replaceState?t.history.replaceState({value:a},null,a):t.history.pushState({value:a},null,a))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var r=this;if(t)for(var i=0,a=r.slides.length;i<a;i+=1){var o=r.slides.eq(i);if(xt.slugify(o.attr("data-history"))===t&&!o.hasClass(r.params.slideDuplicateClass)){var s=o.index();r.slideTo(s,e,n)}}else r.slideTo(0,e,n)}},Ct={onHashCange:function(){var t=this,n=e.location.hash.replace("#","");if(n!==t.slides.eq(t.activeIndex).attr("data-hash")){var r=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+n+'"]').index();if(void 0===r)return;t.slideTo(r)}},setHash:function(){var n=this;if(n.hashNavigation.initialized&&n.params.hashNavigation.enabled)if(n.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||!1);else{var r=n.slides.eq(n.activeIndex),i=r.attr("data-hash")||r.attr("data-history");e.location.hash=i||""}},init:function(){var n=this;if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){n.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var a=0,o=0,s=n.slides.length;o<s;o+=1){var c=n.slides.eq(o);if((c.attr("data-hash")||c.attr("data-history"))===i&&!c.hasClass(n.params.slideDuplicateClass)){var l=c.index();n.slideTo(l,a,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&r(t).on("hashchange",n.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&r(t).off("hashchange",e.hashNavigation.onHashCange)}},_t={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=V.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),n)},start:function(){var e=this;return void 0===e.autoplay.timeout&&!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0)},stop:function(){var e=this;return!!e.autoplay.running&&void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0)},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},It={setTranslate:function(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1){var r=e.slides.eq(n),i=-r[0].swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);var a=0;e.isHorizontal()||(a=i,i=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(r[0].progress),0):1+Math.min(Math.max(r[0].progress,-1),0);r.css({opacity:o}).transform("translate3d("+i+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}}))}}},Et={setTranslate:function(){var e,t=this,n=t.$el,i=t.$wrapperEl,a=t.slides,o=t.width,s=t.height,c=t.rtlTranslate,l=t.size,u=t.params.cubeEffect,h=t.isHorizontal(),f=t.virtual&&t.params.virtual.enabled,d=0;u.shadow&&(h?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=r('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:o+"px"})):0===(e=n.find(".swiper-cube-shadow")).length&&(e=r('<div class="swiper-cube-shadow"></div>'),n.append(e)));for(var p=0;p<a.length;p+=1){var g=a.eq(p),m=p;f&&(m=parseInt(g.attr("data-swiper-slide-index"),10));var v=90*m,y=Math.floor(v/360);c&&(v=-v,y=Math.floor(-v/360));var A=Math.max(Math.min(g[0].progress,1),-1),b=0,w=0,x=0;m%4==0?(b=4*-y*l,x=0):(m-1)%4==0?(b=0,x=4*-y*l):(m-2)%4==0?(b=l+4*y*l,x=l):(m-3)%4==0&&(b=-l,x=3*l+4*l*y),c&&(b=-b),h||(w=b,b=0);var C="rotateX("+(h?0:-v)+"deg) rotateY("+(h?v:0)+"deg) translate3d("+b+"px, "+w+"px, "+x+"px)";if(A<=1&&A>-1&&(d=90*m+90*A,c&&(d=90*-m-90*A)),g.transform(C),u.slideShadows){
// Set shadows
var _=h?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),I=h?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===_.length&&(_=r('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),g.append(_)),0===I.length&&(I=r('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),g.append(I)),_.length&&(_[0].style.opacity=Math.max(-A,0)),I.length&&(I[0].style.opacity=Math.max(A,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),u.shadow)if(h)e.transform("translate3d(0px, "+(o/2+u.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var E=Math.abs(d)-90*Math.floor(Math.abs(d)/90),k=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),S=u.shadowScale,B=u.shadowScale/k,M=u.shadowOffset;e.transform("scale3d("+S+", 1, "+B+") translate3d(0px, "+(s/2+M)+"px, "+-s/2/B+"px) rotateX(-90deg)")}var T=q.isSafari||q.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+T+"px) rotateX("+(t.isHorizontal()?0:d)+"deg) rotateY("+(t.isHorizontal()?-d:0)+"deg)")},setTransition:function(e){var t=this,n=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)}},kt={setTranslate:function(){for(var e=this,t=e.slides,n=e.rtlTranslate,i=0;i<t.length;i+=1){var a=t.eq(i),o=a[0].progress;e.params.flipEffect.limitRotation&&(o=Math.max(Math.min(a[0].progress,1),-1));var s=-180*o,c=0,l=-a[0].swiperSlideOffset,u=0;if(e.isHorizontal()?n&&(s=-s):(u=l,l=0,c=-s,s=0),a[0].style.zIndex=-Math.abs(Math.round(o))+t.length,e.params.flipEffect.slideShadows){
// Set shadows
var h=e.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=e.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=r('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===f.length&&(f=r('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),h.length&&(h[0].style.opacity=Math.max(-o,0)),f.length&&(f[0].style.opacity=Math.max(o,0))}a.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+c+"deg) rotateY("+s+"deg)")}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;
// eslint-disable-next-line
n.eq(r).transitionEnd((function(){if(!a&&t&&!t.destroyed){
// if (!$(this).hasClass(swiper.params.slideActiveClass)) return;
a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},St={setTranslate:function(){
// Each slide offset from center
for(var e=this,t=e.width,n=e.height,i=e.slides,a=e.$wrapperEl,o=e.slidesSizesGrid,s=e.params.coverflowEffect,c=e.isHorizontal(),l=e.translate,u=c?t/2-l:n/2-l,h=c?s.rotate:-s.rotate,f=s.depth,d=0,p=i.length;d<p;d+=1){var g=i.eq(d),m=o[d],v=(u-g[0].swiperSlideOffset-m/2)/m*s.modifier,y=c?h*v:0,A=c?0:h*v,b=-f*Math.abs(v),w=c?0:s.stretch*v,x=c?s.stretch*v:0;
// Fix for ultra small values
Math.abs(x)<.001&&(x=0),Math.abs(w)<.001&&(w=0),Math.abs(b)<.001&&(b=0),Math.abs(y)<.001&&(y=0),Math.abs(A)<.001&&(A=0);var C="translate3d("+x+"px,"+w+"px,"+b+"px)  rotateX("+A+"deg) rotateY("+y+"deg)";if(g.transform(C),g[0].style.zIndex=1-Math.abs(Math.round(v)),s.slideShadows){
// Set shadows
var _=c?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),I=c?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===_.length&&(_=r('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),g.append(_)),0===I.length&&(I=r('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),g.append(I)),_.length&&(_[0].style.opacity=v>0?v:0),I.length&&(I[0].style.opacity=-v>0?-v:0)}}
// Set correct perspective for IE10
(W.pointerEvents||W.prefixedPointerEvents)&&(a[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Bt={init:function(){var e=this,t=e.params.thumbs,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,V.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),V.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):V.isObject(t.swiper)&&(e.thumbs.swiper=new n(V.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var n=t.clickedIndex,i=t.clickedSlide;if(!(i&&r(i).hasClass(e.params.thumbs.slideThumbActiveClass)||null==n)){var a;if(a=t.params.loop?parseInt(r(t.clickedSlide).attr("data-swiper-slide-index"),10):n,e.params.loop){var o=e.activeIndex;e.slides.eq(o).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),
// eslint-disable-next-line
e._clientLeft=e.$wrapperEl[0].clientLeft,o=e.activeIndex);var s=e.slides.eq(o).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),c=e.slides.eq(o).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===s?c:void 0===c?s:c-o<o-s?c:s}e.slideTo(a)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var i,a=n.activeIndex;if(n.params.loop){n.slides.eq(a).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),
// eslint-disable-next-line
n._clientLeft=n.$wrapperEl[0].clientLeft,a=n.activeIndex);
// Find actual thumbs index to slide to
var o=n.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),s=n.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();i=void 0===o?s:void 0===s?o:s-a==a-o?a:s-a<a-o?s:o}else i=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(i)<0&&(n.params.centeredSlides?i=i>a?i-Math.floor(r/2)+1:i+Math.floor(r/2)-1:i>a&&(i=i-r+1),n.slideTo(i,e?0:void 0))}
// Activate thumbs
var c=1,l=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(c=t.params.slidesPerView),n.slides.removeClass(l),n.params.loop||n.params.virtual)for(var u=0;u<c;u+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+u)+'"]').addClass(l);else for(var h=0;h<c;h+=1)n.slides.eq(t.realIndex+h).addClass(l)}}},Mt=[tt,nt,rt,it,ot,ct,ut,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;V.extend(e,{mousewheel:{enabled:!1,enable:ft.enable.bind(e),disable:ft.disable.bind(e),handle:ft.handle.bind(e),handleMouseEnter:ft.handleMouseEnter.bind(e),handleMouseLeave:ft.handleMouseLeave.bind(e),lastScrollTime:V.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;V.extend(e,{navigation:{init:dt.init.bind(e),update:dt.update.bind(e),destroy:dt.destroy.bind(e),onNextClick:dt.onNextClick.bind(e),onPrevClick:dt.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this,i=n.navigation,a=i.$nextEl,o=i.$prevEl;!n.params.navigation.hideOnClick||r(e.target).is(o)||r(e.target).is(a)||(a?t=a.hasClass(n.params.navigation.hiddenClass):o&&(t=o.hasClass(n.params.navigation.hiddenClass)),!0===t?n.emit("navigationShow",n):n.emit("navigationHide",n),a&&a.toggleClass(n.params.navigation.hiddenClass),o&&o.toggleClass(n.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",// 'bullets' or 'progressbar' or 'fraction' or 'custom'
dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",// NEW
currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",// NEW
lockClass:"swiper-pagination-lock"}},create:function(){var e=this;V.extend(e,{pagination:{init:pt.init.bind(e),render:pt.render.bind(e),update:pt.update.bind(e),destroy:pt.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!r(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;V.extend(e,{scrollbar:{init:gt.init.bind(e),destroy:gt.destroy.bind(e),updateSize:gt.updateSize.bind(e),setTranslate:gt.setTranslate.bind(e),setTransition:gt.setTransition.bind(e),enableDraggable:gt.enableDraggable.bind(e),disableDraggable:gt.disableDraggable.bind(e),setDragPosition:gt.setDragPosition.bind(e),getPointerPosition:gt.getPointerPosition.bind(e),onDragStart:gt.onDragStart.bind(e),onDragMove:gt.onDragMove.bind(e),onDragEnd:gt.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;V.extend(e,{parallax:{setTransform:mt.setTransform.bind(e),setTranslate:mt.setTranslate.bind(e),setTransition:mt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=vt[n].bind(e)})),V.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,i)}n=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;V.extend(e,{lazy:{initialImageLoaded:!1,load:yt.load.bind(e),loadInSlide:yt.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},bt,{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;V.extend(e,{a11y:{liveRegion:r('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(wt).forEach((function(t){e.a11y[t]=wt[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;V.extend(e,{history:{init:xt.init.bind(e),setHistory:xt.setHistory.bind(e),setHistoryPopState:xt.setHistoryPopState.bind(e),scrollToSlide:xt.scrollToSlide.bind(e),destroy:xt.destroy.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;V.extend(e,{hashNavigation:{initialized:!1,init:Ct.init.bind(e),destroy:Ct.destroy.bind(e),setHash:Ct.setHash.bind(e),onHashCange:Ct.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;V.extend(e,{autoplay:{running:!1,paused:!1,run:_t.run.bind(e),start:_t.start.bind(e),stop:_t.stop.bind(e),pause:_t.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart:function(e,t){var n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;V.extend(e,{fadeEffect:{setTranslate:It.setTranslate.bind(e),setTransition:It.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;V.extend(e,{cubeEffect:{setTranslate:Et.setTranslate.bind(e),setTransition:Et.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;V.extend(e,{flipEffect:{setTranslate:kt.setTranslate.bind(e),setTransition:kt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;V.extend(e,{coverflowEffect:{setTranslate:St.setTranslate.bind(e),setTransition:St.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;V.extend(e,{thumbs:{swiper:null,init:Bt.init.bind(e),update:Bt.update.bind(e),onThumbClick:Bt.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},update:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},resize:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===et.use&&(et.use=et.Class.use,et.installModule=et.Class.installModule),et.use(Mt),et}();
/***/},
/***/d094:
/***/function(e,t){
/** Used to compose unicode character classes. */
var n="\\ud800-\\udfff",r="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",o="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+a+")"+"?",u="[\\ufe0e\\ufe0f]?",h=u+l+("(?:\\u200d(?:"+[o,s,c].join("|")+")"+u+l+")*"),f="(?:"+[o+i+"?",i,s,c,r].join("|")+")",d=RegExp(a+"(?="+a+")|"+f+h,"g");
/** Used to compose unicode capture groups. */e.exports=
/**
 * Converts a Unicode `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */
function(e){return e.match(d)||[]}},
/***/d0b5:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("448a")),a=r(n("970b")),o=n("a870"),s=n("5557"),c=function e(t){(0,a.default)(this,e),this.colorProcessor(t);Object.assign(this,{
/**
     * @description Rgba value of graph fill color
     * @type {Array}
     * @default fill = [0, 0, 0, 1]
     */
fill:[0,0,0,1],
/**
     * @description Rgba value of graph stroke color
     * @type {Array}
     * @default stroke = [0, 0, 0, 1]
     */
stroke:[0,0,0,0],
/**
     * @description Opacity of graph
     * @type {Number}
     * @default opacity = 1
     */
opacity:1,
/**
     * @description LineCap of Ctx
     * @type {String}
     * @default lineCap = null
     * @example lineCap = 'butt'|'round'|'square'
     */
lineCap:null,
/**
     * @description Linejoin of Ctx
     * @type {String}
     * @default lineJoin = null
     * @example lineJoin = 'round'|'bevel'|'miter'
     */
lineJoin:null,
/**
     * @description LineDash of Ctx
     * @type {Array}
     * @default lineDash = null
     * @example lineDash = [10, 10]
     */
lineDash:null,
/**
     * @description LineDashOffset of Ctx
     * @type {Number}
     * @default lineDashOffset = null
     * @example lineDashOffset = 10
     */
lineDashOffset:null,
/**
     * @description ShadowBlur of Ctx
     * @type {Number}
     * @default shadowBlur = 0
     */
shadowBlur:0,
/**
     * @description Rgba value of graph shadow color
     * @type {Array}
     * @default shadowColor = [0, 0, 0, 0]
     */
shadowColor:[0,0,0,0],
/**
     * @description ShadowOffsetX of Ctx
     * @type {Number}
     * @default shadowOffsetX = 0
     */
shadowOffsetX:0,
/**
     * @description ShadowOffsetY of Ctx
     * @type {Number}
     * @default shadowOffsetY = 0
     */
shadowOffsetY:0,
/**
     * @description LineWidth of Ctx
     * @type {Number}
     * @default lineWidth = 0
     */
lineWidth:0,
/**
     * @description Center point of the graph
     * @type {Array}
     * @default graphCenter = null
     * @example graphCenter = [10, 10]
     */
graphCenter:null,
/**
     * @description Graph scale
     * @type {Array}
     * @default scale = null
     * @example scale = [1.5, 1.5]
     */
scale:null,
/**
     * @description Graph rotation degree
     * @type {Number}
     * @default rotate = null
     * @example rotate = 10
     */
rotate:null,
/**
     * @description Graph translate distance
     * @type {Array}
     * @default translate = null
     * @example translate = [10, 10]
     */
translate:null,
/**
     * @description Cursor status when hover
     * @type {String}
     * @default hoverCursor = 'pointer'
     * @example hoverCursor = 'default'|'pointer'|'auto'|'crosshair'|'move'|'wait'|...
     */
hoverCursor:"pointer",
/**
     * @description Font style of Ctx
     * @type {String}
     * @default fontStyle = 'normal'
     * @example fontStyle = 'normal'|'italic'|'oblique'
     */
fontStyle:"normal",
/**
     * @description Font varient of Ctx
     * @type {String}
     * @default fontVarient = 'normal'
     * @example fontVarient = 'normal'|'small-caps'
     */
fontVarient:"normal",
/**
     * @description Font weight of Ctx
     * @type {String|Number}
     * @default fontWeight = 'normal'
     * @example fontWeight = 'normal'|'bold'|'bolder'|'lighter'|Number
     */
fontWeight:"normal",
/**
     * @description Font size of Ctx
     * @type {Number}
     * @default fontSize = 10
     */
fontSize:10,
/**
     * @description Font family of Ctx
     * @type {String}
     * @default fontFamily = 'Arial'
     */
fontFamily:"Arial",
/**
     * @description TextAlign of Ctx
     * @type {String}
     * @default textAlign = 'center'
     * @example textAlign = 'start'|'end'|'left'|'right'|'center'
     */
textAlign:"center",
/**
     * @description TextBaseline of Ctx
     * @type {String}
     * @default textBaseline = 'middle'
     * @example textBaseline = 'top'|'bottom'|'middle'|'alphabetic'|'hanging'
     */
textBaseline:"middle",
/**
     * @description The color used to create the gradient
     * @type {Array}
     * @default gradientColor = null
     * @example gradientColor = ['#000', '#111', '#222']
     */
gradientColor:null,
/**
     * @description Gradient type
     * @type {String}
     * @default gradientType = 'linear'
     * @example gradientType = 'linear' | 'radial'
     */
gradientType:"linear",
/**
     * @description Gradient params
     * @type {Array}
     * @default gradientParams = null
     * @example gradientParams = [x0, y0, x1, y1] (Linear Gradient)
     * @example gradientParams = [x0, y0, r0, x1, y1, r1] (Radial Gradient)
     */
gradientParams:null,
/**
     * @description When to use gradients
     * @type {String}
     * @default gradientWith = 'stroke'
     * @example gradientWith = 'stroke' | 'fill'
     */
gradientWith:"stroke",
/**
     * @description Gradient color stops
     * @type {String}
     * @default gradientStops = 'auto'
     * @example gradientStops = 'auto' | [0, .2, .3, 1]
     */
gradientStops:"auto",
/**
     * @description Extended color that supports animation transition
     * @type {Array|Object}
     * @default colors = null
     * @example colors = ['#000', '#111', '#222', 'red' ]
     * @example colors = { a: '#000', b: '#111' }
     */
colors:null},t)};
/**
 * @description Set colors to rgba value
 * @param {Object} style style config
 * @param {Boolean} reverse Whether to perform reverse operation
 * @return {Undefined} Void
 */
t.default=c,c.prototype.colorProcessor=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?o.getColorFromRgbValue:o.getRgbaValue,n=["fill","stroke","shadowColor"];Object.keys(e).filter((function(e){return n.find((function(t){return t===e}))})).forEach((function(n){return e[n]=t(e[n])}));var r=e.gradientColor,i=e.colors;(r&&(e.gradientColor=r.map((function(e){return t(e)}))),i)&&Object.keys(i).forEach((function(e){return i[e]=t(i[e])}))},
/**
 * @description Init graph style
 * @param {Object} ctx Context of canvas
 * @return {Undefined} Void
 */
c.prototype.initStyle=function(e){!
/**
 * @description Init canvas transform
 * @param {Object} ctx  Context of canvas
 * @param {Style} style Instance of Style
 * @return {Undefined} Void
 */
function(e,t){e.save();var n=t.graphCenter,r=t.rotate,a=t.scale,o=t.translate;if(!(n instanceof Array))return;e.translate.apply(e,(0,i.default)(n)),r&&e.rotate(r*Math.PI/180);a instanceof Array&&e.scale.apply(e,(0,i.default)(a));o&&e.translate.apply(e,(0,i.default)(o));e.translate(-n[0],-n[1])}(e,this),
/**
 * @description Set the style of canvas ctx
 * @param {Object} ctx  Context of canvas
 * @param {Style} style Instance of Style
 * @return {Undefined} Void
 */
function(e,t){var n=t.fill,r=t.stroke,a=t.shadowColor,s=t.opacity;l.forEach((function(n){(n||"number"==typeof n)&&(e[n]=t[n])})),n=(0,i.default)(n),r=(0,i.default)(r),a=(0,i.default)(a),n[3]*=s,r[3]*=s,a[3]*=s,e.fillStyle=(0,o.getColorFromRgbValue)(n),e.strokeStyle=(0,o.getColorFromRgbValue)(r),e.shadowColor=(0,o.getColorFromRgbValue)(a);var c=t.lineDash,u=t.shadowBlur;c&&(c=c.map((function(e){return e>=0?e:0})),e.setLineDash(c));"number"==typeof u&&(e.shadowBlur=u>0?u:.001);var h=t.fontStyle,f=t.fontVarient,d=t.fontWeight,p=t.fontSize,g=t.fontFamily;e.font=h+" "+f+" "+d+" "+p+"px "+g}
/**
 * @description Set the gradient color of canvas ctx
 * @param {Object} ctx  Context of canvas
 * @param {Style} style Instance of Style
 * @return {Undefined} Void
 */(e,this),function(e,t){if(!
/**
 * @description Check if the gradient configuration is legal
 * @param {Style} style Instance of Style
 * @return {Boolean} Check Result
 */
function(e){var t=e.gradientColor,n=e.gradientParams,r=e.gradientType,i=e.gradientWith,a=e.gradientStops;if(!t||!n)return!1;if(1===t.length)return!1;if("linear"!==r&&"radial"!==r)return!1;var o=n.length;if("linear"===r&&4!==o||"radial"===r&&6!==o)return!1;if("fill"!==i&&"stroke"!==i)return!1;if("auto"!==a&&!(a instanceof Array))return!1;return!0}
/**
 * @description Get a uniform gradient color stop
 * @param {Array} color Gradient color
 * @return {Array} Gradient color stop
 */(t))return;var n=t.gradientColor,r=t.gradientParams,a=t.gradientType,s=t.gradientWith,c=t.gradientStops,l=t.opacity;n=(n=n.map((function(e){var t=e[3]*l,n=(0,i.default)(e);return n[3]=t,n}))).map((function(e){return(0,o.getColorFromRgbValue)(e)})),"auto"===c&&(u=n,h=1/(u.length-1),c=u.map((function(e,t){return h*t})));var u,h;
/**
 * @description Restore canvas ctx transform
 * @param {Object} ctx  Context of canvas
 * @return {Undefined} Void
 */var f=e["create".concat(a.slice(0,1).toUpperCase()+a.slice(1),"Gradient")].apply(e,(0,i.default)(r));c.forEach((function(e,t){return f.addColorStop(e,n[t])})),e["".concat(s,"Style")]=f}(e,this)};var l=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];c.prototype.restoreTransform=function(e){e.restore()},
/**
 * @description Update style data
 * @param {Object} change Changed data
 * @return {Undefined} Void
 */
c.prototype.update=function(e){this.colorProcessor(e),Object.assign(this,e)},
/**
 * @description Get the current style configuration
 * @return {Object} Style configuration
 */
c.prototype.getStyle=function(){var e=(0,s.deepClone)(this,!0);return this.colorProcessor(e,!0),e}},
/***/d0ce:
/***/function(e,t,n){"use strict";
/* unused harmony export CtorUint32Array */
/* unused harmony export CtorUint16Array */
/* harmony export (binding) */n.d(t,"a",(function(){return u}));
/* unused harmony export CtorFloat64Array */
/* harmony import */var r,i=n("6d8b"),a=n("b7d9"),o=n("ec6f"),s="undefined",c=typeof Uint32Array===s?Array:Uint32Array,l=typeof Uint16Array===s?Array:Uint16Array,u=typeof Int32Array===s?Array:Int32Array,h=typeof Float64Array===s?Array:Float64Array,f={float:h,int:u,
// Ordinal data type can be string or int
ordinal:Array,number:Array,time:h};
/* harmony import */function d(e){
// The possible max value in this._indicies is always this._rawCount despite of filtering.
return e>65535?c:l}function p(e,t,n,r,i){var a=f[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){
// The cost of the copy is probably inconsiderable
// within the initial chunkSize.
for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}
/**
 * Basically, DataStore API keep immutable.
 */
var g=/** @class */function(){function e(){this._chunks=[],
// It will not be calculated until needed.
this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(i.createHashMap)()}
/**
   * Initialize from data
   */return e.prototype.initData=function(e,t,n){this._provider=e,
// Clear
this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),s=this.defaultDimValueGetter=r[a.sourceFormat];
// Default dim value getter
this._dimValueGetter=n||s,
// Reset raw extent.
this._rawExtent=[];Object(o.f)(a);this._dimensions=Object(i.map)(t,(function(e){return{
// Only pick these two props. Not leak other properties like orderMeta.
type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},
/**
   * Caution: even when a `source` instance owned by a series, the created data store
   * may still be shared by different sereis (the source hash does not use all `source`
   * props, see `sourceManager`). In this case, the `source` props that are not used in
   * hash (like `source.dimensionDefine`) probably only belongs to a certain series and
   * thus should not be fetch here.
   */
e.prototype.getSource=function(){return this._provider.getSource()},
/**
   * @caution Only used in dataStack.
   */
e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new f[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;0===a&&(
// We need to reset the rawExtent if collect is from start.
// Because this dimension may be guessed as number and calcuating a wrong extent.
i[e]=[1/0,-1/0]);
// Parse from previous data offset. len may be changed after appendData
for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},
/**
   * Caution: Can be only called on raw data (before `this._indices` created).
   */
e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),c=s+Math.max(e.length,t||0),l=0;l<a;l++){p(n,l,(g=i[l]).type,c,!0)}for(var u=[],h=s;h<c;h++)
// Store the data by dimensions
for(var f=h-s,d=0;d<a;d++){var g=i[d],m=r.arrayRows.call(this,e[f]||u,g.property,f,d);n[d][h]=m;var v=o[d];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}return this._rawCount=this._count=c,{start:s,end:c}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,a=this._chunks,o=this._dimensions,s=o.length,c=this._rawExtent,l=Object(i.map)(o,(function(e){return e.property})),u=0;u<s;u++){var h=o[u];c[u]||(c[u]=[1/0,-1/0]),p(a,u,h.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,a,c);else for(var f=[],d=e;d<t;d++){
// NOTICE: Try not to write things into dataItem
f=r.getItem(d,f);
// Each data item is value
// [1, 2]
// 2
// Bar chart, line chart which uses category axis
// only gives the 'y' value. 'x' value is the indices of category
// Use a tempValue to normalize the value to be a (x, y) value
// Store the data by dimensions
for(var g=0;g<s;g++){var m=a[g],v=this._dimValueGetter(f,l[g],d,g);
// PENDING NULL is empty or zero
m[d]=v;var y=c[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!r.persistent&&r.clean&&
// Clean unused data if data source is typed array.
r.clean(),this._rawCount=this._count=t,
// Reset data extent
this._extent=[]},e.prototype.count=function(){return this._count},
/**
   * Get value. Return NaN if idx is out of range.
   */
e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,
// TODO get all from store?
e=[];
// All dimensions
for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},
/**
   * @param dim concrete dim
   */
e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},
/**
   * Get sum of data in one dimension
   */
e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},
/**
   * Get median of data in one dimension
   */
e.prototype.getMedian=function(e){var t=[];
// map all data of one dimension
this.each([e],(function(e){isNaN(e)||t.push(e)}));
// TODO
// Use quick select?
var n=t.sort((function(e,t){return e-t})),r=this.count();
// calculate median
return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},
/**
   * Retrieve the index with given raw data index.
   */
e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;
// Indices are ascending
var t=this._indices,n=t[e];
// If rawIndex === dataIndex
if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},
/**
   * Retrieve the index of nearest value.
   * @param dim
   * @param value
   * @param [maxDistance=Infinity]
   * @return If and only if multiple indices have
   *         the same value, they are put to the result.
   */
e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);
// Check the test case of `test/ut/spec/data/SeriesData.js`.
for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],h=Math.abs(u);h<=n&&(
// When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,
// we'd better not push both of them to `nearestIndices`, otherwise it is easy to
// get more than one item in `nearestIndices` (more specifically, in `tooltip`).
// So we choose the one that `diff >= 0` in this case.
// But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them
// should be push to `nearestIndices`.
(h<a||h===a&&u>=0&&o<0)&&(a=h,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;
// `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`.
if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=d(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},
/**
   * Data filter.
   */
e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(d(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var h=void 0,f=n.getRawIndex(u);
// Simple optimization
if(0===o)h=t(u);else if(1===o){h=t(l[c][f],u)}else{for(var p=0;p<o;p++)a[p]=l[e[p]][f];a[p]=u,h=t.apply(null,a)}h&&(i[s++]=f)}
// Set indices after filtered.
return s<r&&(n._indices=i),n._count=s,
// Reset data extent
n._extent=[],n._updateGetRawIdx(),n},
/**
   * Select data in range. (For optimization of filter)
   * (Manually inline code, support 5 million data filtering in data zoom.)
   */
e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Object(i.keys)(e),a=r.length;if(!a)return this;var o=t.count(),s=new(d(t._rawCount))(o),c=0,l=r[0],u=e[l][0],h=e[l][1],f=t._chunks,p=!1;if(!t._indices){
// Extreme optimization for common case. About 2x faster in chrome.
var g=0;if(1===a){for(var m=f[r[0]],v=0;v<n;v++){
// NaN will not be filtered. Consider the case, in line chart, empty
// value indicates the line should be broken. But for the case like
// scatter plot, a data item with empty value will not be rendered,
// but the axis extent may be effected if some other dim of the data
// item has value. Fortunately it is not a significant negative effect.
((w=m[v])>=u&&w<=h||isNaN(w))&&(s[c++]=g),g++}p=!0}else if(2===a){m=f[r[0]];var y=f[r[1]],A=e[r[1]][0],b=e[r[1]][1];for(v=0;v<n;v++){var w=m[v],x=y[v];
// Do not filter NaN, see comment above.
(w>=u&&w<=h||isNaN(w))&&(x>=A&&x<=b||isNaN(x))&&(s[c++]=g),g++}p=!0}}if(!p)if(1===a)for(v=0;v<o;v++){var C=t.getRawIndex(v);
// Do not filter NaN, see comment above.
((w=f[r[0]][C])>=u&&w<=h||isNaN(w))&&(s[c++]=C)}else for(v=0;v<o;v++){for(var _=!0,I=(C=t.getRawIndex(v),0);I<a;I++){var E=r[I];
// Do not filter NaN, see comment above.
((w=f[E][C])<e[E][0]||w>e[E][1])&&(_=!1)}_&&(s[c++]=t.getRawIndex(v))}
// Set indices after filtered.
return c<o&&(t._indices=s),t._count=c,
// Reset data extent
t._extent=[],t._updateGetRawIdx(),t},
// /**
//  * Data mapping to a plain array
//  */
// mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] {
//     const result: any[] = [];
//     this.each(dims, function () {
//         result.push(cb && (cb as MapArrayCb).apply(null, arguments));
//     });
//     return result;
// }
/**
   * Data mapping to a new List with given dimensions
   */
e.prototype.map=function(e,t){
// TODO only clone picked chunks.
var n=this.clone(e);return this._updateDims(n,e,t),n},
/**
   * @caution Danger!! Only used in dataStack.
   */
e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=[1/0,-1/0];for(var u=0;u<o;u++){for(var h=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][h];s[a]=u;var d=n&&n.apply(null,s);if(null!=d){
// a number or string (in oridinal dimension)?
"object"!=typeof d&&(i[0]=d,d=i);for(l=0;l<d.length;l++){var p=t[l],g=d[l],m=c[p],v=r[p];v&&(v[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},
/**
   * Large data down sampling using largest-triangle-three-buckets
   * @param {string} valueDimension
   * @param {number} targetCount
   */
e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),c=0,l=Math.floor(1/t),u=this.getRawIndex(0),h=new(d(this._rawCount))(Math.min(2*(Math.ceil(s/l)+2),s));
// First frame use the first data.
h[c++]=u;for(var f=1;f<s-1;f+=l){for(var p=Math.min(f+l,s-1),g=Math.min(f+2*l,s),m=(g+p)/2,v=0,y=p;y<g;y++){var A=o[E=this.getRawIndex(y)];isNaN(A)||(v+=A)}v/=g-p;var b=f,w=Math.min(f+l,s),x=f-1,C=o[u];n=-1,i=b;var _=-1,I=0;
// Find a point from current frame that construct a triangle with largest area with previous selected point
// And the average of next frame.
for(y=b;y<w;y++){var E;A=o[E=this.getRawIndex(y)];isNaN(A)?(I++,_<0&&(_=E)):(
// Calculate triangle area over three buckets
r=Math.abs((x-m)*(A-C)-(x-y)*(v-C)))>n&&(n=r,i=E)}I>0&&I<w-b&&(
// Append first NaN point in every bucket.
// It is necessary to ensure the correct order of indices.
h[c++]=Math.min(_,i),i=Math.max(_,i)),h[c++]=i,u=i}
// First frame use the last data.
return h[c++]=this.getRawIndex(s-1),a._count=c,a._indices=h,a.getRawIndex=this._getRawIdx,a},
/**
   * Large data down sampling using min-max
   * @param {string} valueDimension
   * @param {number} rate
   */
e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(d(this._rawCount))(2*Math.ceil(o/i)),c=0,l=0;l<o;l+=i){var u=l,h=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],g=i;
// Handle final smaller frame
l+i>o&&(g=o-l);
// Determine min and max within the current frame
for(var m=0;m<g;m++){var v=a[this.getRawIndex(l+m)];v<h&&(h=v,u=l+m),v>p&&(p=v,f=l+m)}var y=this.getRawIndex(u),A=this.getRawIndex(f);
// Set the order of the min and max values, based on their ordering in the frame
u<f?(s[c++]=y,s[c++]=A):(s[c++]=A,s[c++]=y)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},
/**
   * Large data down sampling on given dimension
   * @param sampleIndex Sample index for name and id
   */
e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=[1/0,-1/0],h=new(d(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){
// Last frame
s>l-p&&(s=l-p,o.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g);o[g]=c[m]}var v=n(o),y=this.getRawIndex(Math.min(p+r(o,v)||0,l-1));
// Only write value on the filtered data
c[y]=v,v<u[0]&&(u[0]=v),v>u[1]&&(u[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},
/**
   * Data iteration
   * @param ctx default this
   * @example
   *  list.each('x', function (x, idx) {});
   *  list.each(['x', 'y'], function (x, y, idx) {});
   *  list.each(function (idx) {})
   */
e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);
// Simple optimization
switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];
// Index
c[s]=i,t.apply(null,c)}}},
/**
   * Get extent of data in one dimension
   */
e.prototype.getDataExtent=function(e){
// Make sure use concrete dim as cache name.
var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;
// Make more strict checkings to ensure hitting cache.
var r,i=this.count();
// Consider the most cases when using data zoom, `getDataExtent`
// happened before filtering. We cache raw extent, which is not
// necessary to be cleared and recalculated when restore data.
if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var a=(r=n)[0],o=r[1],s=0;s<i;s++){var c=t[this.getRawIndex(s)];c<a&&(a=c),c>o&&(o=c)}return r=[a,o],this._extent[e]=r,r},
/**
   * Get raw data item
   */
e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},
/**
   * Clone shallow.
   *
   * @param clonedDims Determine which dims to clone. Will share the data if not specified.
   */
e.prototype.clone=function(t,n){var r,a,o=new e,s=this._chunks,c=t&&Object(i.reduce)(t,(function(e,t){return e[t]=!0,e}),{});if(c)for(var l=0;l<s.length;l++)
// Not clone if dim is not picked.
o._chunks[l]=c[l]?(r=s[l],a=void 0,(a=r.constructor)===Array?r.slice():new a(r)):s[l];else o._chunks=s;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(i.clone)(this._extent),e._rawExtent=Object(i.clone)(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Object(a.d)(e[r],this._dimensions[r])}r={arrayRows:e,objectRows:function(e,t,n,r){return Object(a.d)(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){
// Performance sensitive, do not use modelUtil.getDataItemValue.
// If dataItem is an plain object with no value field, the let `value`
// will be assigned with the object, but it will be tread correctly
// in the `convertValue`.
var i=e&&(null==e.value?e:e.value);return Object(a.d)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}();
/* harmony default export */t.b=g},
/***/d0f4:
/***/function(e,t,n){
// 19.1.2.17 Object.seal(O)
var r=n("9fe8"),i=n("4c8d").onFreeze;n("0a66")("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},
/***/d168:
/***/function(e,t,n){"use strict";var r=n("93e0"),i=n("f083"),a=n("77ea"),o=n("c668"),s=n("4c8d"),c=n("8fc4"),l=n("928a"),u=n("9fe8"),h=n("f937"),f=n("ebe8"),d=n("27bd"),p=n("11e2");e.exports=function(e,t,n,g,m,v){var y=r[e],A=y,b=m?"set":"add",w=A&&A.prototype,x={},C=function(e){var t=w[e];a(w,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof A&&(v||w.forEach&&!h((function(){(new A).entries().next()})))){var _=new A,I=_[b](v?{}:-0,1)!=_,E=h((function(){_.has(1)})),k=f((function(e){new A(e)})),S=!v&&h((function(){for(
// V8 ~ Chromium 42- fails only with 5+ elements
var e=new A,t=5;t--;)e[b](t,t);return!e.has(-0)}));
// early implementations not supports chaining
k||((A=t((function(t,n){l(t,A,e);var r=p(new y,t,A);return null!=n&&c(n,m,r[b],r),r}))).prototype=w,w.constructor=A),(E||S)&&(C("delete"),C("has"),m&&C("get")),(S||I)&&C(b),
// weak collections should not contains .clear method
v&&w.clear&&delete w.clear}else
// create collection constructor
A=g.getConstructor(t,e,m,b),o(A.prototype,n),s.NEED=!0;return d(A,e),x[e]=A,i(i.G+i.W+i.F*(A!=y),x),v||g.setStrong(A,e,m),A}},
/***/d16a:
/***/function(e,t,n){
// 7.1.15 ToLength
var r=n("fc5e"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0;// pow(2, 53) - 1 == 9007199254740991
}},
/***/d1e7:
/***/function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},
/***/d248:
/***/function(e,t,n){
// 20.1.2.4 Number.isNaN(number)
var r=n("f083");r(r.S,"Number",{isNaN:function(e){
// eslint-disable-next-line no-self-compare
return e!=e}})},
/***/d256:
/***/function(e,t,n){"use strict";var r=n("cfe9");e.exports=r.Promise},
/***/d284:
/***/function(e,t,n){
// 19.1.2.15 Object.preventExtensions(O)
var r=n("9fe8"),i=n("4c8d").onFreeze;n("0a66")("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},
/***/d28b:
/***/function(e,t,n){"use strict";
// `Symbol.iterator` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.iterator
n("e065")("iterator")},
/***/d2bb:
/***/function(e,t,n){"use strict";
/* eslint-disable no-proto -- safe */var r=n("7282"),i=n("861d"),a=n("1d80"),o=n("3bbe");
// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
// eslint-disable-next-line es/no-object-setprototypeof -- safe
e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){/* empty */}return function(n,r){return a(n),o(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},
/***/d2db:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/d327:
/***/function(e,t){e.exports=
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function(){return[]}},
/***/d370:
/***/function(e,t,n){var r=n("253c"),i=n("1310"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};
/** Used for built-in method references. */e.exports=c},
/***/d3b7:
/***/function(e,t,n){"use strict";var r=n("00ee"),i=n("cb2d"),a=n("b041");
// `Object.prototype.toString` method
// https://tc39.es/ecma262/#sec-object.prototype.tostring
r||i(Object.prototype,"toString",a,{unsafe:!0})
/***/},
/***/d409:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"c",(function(){return s})),
/* harmony export (binding) */n.d(t,"a",(function(){return f})),
/* unused harmony export RichTextContentBlock */
/* harmony export (binding) */n.d(t,"b",(function(){return m}));
/* harmony import */var r=n("5e76"),i=n("6d8b"),a=n("e86a"),o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
/* harmony import */function s(e,t,n,r,i){var a={};return c(a,e,t,n,r,i),a.text}function c(e,t,n,r,i,a){if(!n)return e.text="",void(e.isTruncated=!1);var o=(t+"").split("\n");a=l(n,r,i,a);for(var s=!1,c={},h=0,f=o.length;h<f;h++)u(c,o[h],a),o[h]=c.textLine,s=s||c.isTruncated;e.text=o.join("\n"),e.isTruncated=s}function l(e,t,n,r){r=r||{};var o=Object(i.extend)({},r);o.font=t,n=Object(i.retrieve2)(n,"..."),o.maxIterations=Object(i.retrieve2)(r.maxIterations,2);var s=o.minChar=Object(i.retrieve2)(r.minChar,0);o.cnCharWidth=Object(a.f)("国",t);var c=o.ascCharWidth=Object(a.f)("a",t);o.placeholder=Object(i.retrieve2)(r.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<s&&l>=c;u++)l-=c;var h=Object(a.f)(n,t);return h>l&&(n="",h=0),l=e-h,o.ellipsis=n,o.ellipsisWidth=h,o.contentWidth=l,o.containerWidth=e,o}function u(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r)return e.textLine="",void(e.isTruncated=!1);var s=Object(a.f)(t,i);if(s<=r)return e.textLine=t,void(e.isTruncated=!1);for(var c=0;;c++){if(s<=o||c>=n.maxIterations){t+=n.ellipsis;break}var l=0===c?h(t,o,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*o/s):0;t=t.substr(0,l),s=Object(a.f)(t,i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function h(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function f(e,t){null!=e&&(e+="");var n,r=t.overflow,o=t.padding,s=t.font,c="truncate"===r,h=Object(a.e)(s),f=Object(i.retrieve2)(t.lineHeight,h),d=!!t.backgroundColor,p="truncate"===t.lineOverflow,g=!1,m=t.width,v=(n=null==m||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?b(e,t.font,m,"breakAll"===r,0).lines:[]).length*f,y=Object(i.retrieve2)(t.height,v);if(v>y&&p){var A=Math.floor(y/f);g=g||n.length>A,n=n.slice(0,A)}if(e&&c&&null!=m)for(var w=l(m,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},C=0;C<n.length;C++)u(x,n[C],w),n[C]=x.textLine,g=g||x.isTruncated;var _=y,I=0;for(C=0;C<n.length;C++)I=Math.max(Object(a.f)(n[C],s),I);null==m&&(m=I);var E=I;return o&&(_+=o[0]+o[2],E+=o[1]+o[3],m+=o[1]+o[3]),d&&(E=m),{lines:n,height:y,outerWidth:E,outerHeight:_,lineHeight:f,calculatedLineHeight:h,contentWidth:I,contentHeight:v,width:m,isTruncated:g}}var d=function(){},p=function(e){this.tokens=[],e&&(this.tokens=e)},g=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function m(e,t){var n=new g;if(null!=e&&(e+=""),!e)return n;for(var s,l=t.width,u=t.height,h=t.overflow,f="break"!==h&&"breakAll"!==h||null==l?null:{width:l,accumWidth:0,breakAll:"breakAll"===h},d=o.lastIndex=0;null!=(s=o.exec(e));){var p=s.index;p>d&&v(n,e.substring(d,p),t,f),v(n,s[2],t,f,s[1]),d=o.lastIndex}d<e.length&&v(n,e.substring(d,e.length),t,f);var m=[],y=0,A=0,b=t.padding,w="truncate"===h,x="truncate"===t.lineOverflow,C={};function _(e,t,n){e.width=t,e.lineHeight=n,y+=n,A=Math.max(A,t)}e:for(var I=0;I<n.lines.length;I++){for(var E=n.lines[I],k=0,S=0,B=0;B<E.tokens.length;B++){var M=(z=E.tokens[B]).styleName&&t.rich[z.styleName]||{},T=z.textPadding=M.padding,O=T?T[1]+T[3]:0,D=z.font=M.font||t.font;z.contentHeight=Object(a.e)(D);var P=Object(i.retrieve2)(M.height,z.contentHeight);if(z.innerHeight=P,T&&(P+=T[0]+T[2]),z.height=P,z.lineHeight=Object(i.retrieve3)(M.lineHeight,t.lineHeight,P),z.align=M&&M.align||t.align,z.verticalAlign=M&&M.verticalAlign||"middle",x&&null!=u&&y+z.lineHeight>u){var L=n.lines.length;B>0?(E.tokens=E.tokens.slice(0,B),_(E,S,k),n.lines=n.lines.slice(0,I+1)):n.lines=n.lines.slice(0,I),n.isTruncated=n.isTruncated||n.lines.length<L;break e}var Q=M.width,R=null==Q||"auto"===Q;if("string"==typeof Q&&"%"===Q.charAt(Q.length-1))z.percentWidth=Q,m.push(z),z.contentWidth=Object(a.f)(z.text,D);else{if(R){var j=M.backgroundColor,N=j&&j.image;N&&(N=r.b(N),r.c(N)&&(z.width=Math.max(z.width,N.width*P/N.height)))}var F=w&&null!=l?l-S:null;null!=F&&F<z.width?!R||F<O?(z.text="",z.width=z.contentWidth=0):(c(C,z.text,F-O,D,t.ellipsis,{minChar:t.truncateMinChar}),z.text=C.text,n.isTruncated=n.isTruncated||C.isTruncated,z.width=z.contentWidth=Object(a.f)(z.text,D)):z.contentWidth=Object(a.f)(z.text,D)}z.width+=O,S+=z.width,M&&(k=Math.max(k,z.lineHeight))}_(E,S,k)}n.outerWidth=n.width=Object(i.retrieve2)(l,A),n.outerHeight=n.height=Object(i.retrieve2)(u,y),n.contentHeight=y,n.contentWidth=A,b&&(n.outerWidth+=b[1]+b[3],n.outerHeight+=b[0]+b[2]);for(I=0;I<m.length;I++){var z,H=(z=m[I]).percentWidth;z.width=parseInt(H,10)/100*n.width}return n}function v(e,t,n,r,i){var o,s,c=""===t,l=i&&n.rich[i]||{},u=e.lines,h=l.font||n.font,f=!1;if(r){var g=l.padding,m=g?g[1]+g[3]:0;if(null!=l.width&&"auto"!==l.width){var v=Object(a.g)(l.width,r.width)+m;u.length>0&&v+r.accumWidth>r.width&&(o=t.split("\n"),f=!0),r.accumWidth=v}else{var y=b(t,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+m,s=y.linesWidths,o=y.lines}}else o=t.split("\n");for(var A=0;A<o.length;A++){var w=o[A],x=new d;if(x.styleName=i,x.text=w,x.isLineHolder=!w&&!c,"number"==typeof l.width?x.width=l.width:x.width=s?s[A]:Object(a.f)(w,h),A||f)u.push(new p([x]));else{var C=(u[u.length-1]||(u[0]=new p)).tokens,_=C.length;1===_&&C[0].isLineHolder?C[0]=x:(w||!_||c)&&C.push(x)}}}var y=Object(i.reduce)(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function A(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!y[e]}function b(e,t,n,r,i){for(var o=[],s=[],c="",l="",u=0,h=0,f=0;f<e.length;f++){var d=e.charAt(f);if("\n"!==d){var p=Object(a.f)(d,t),g=!r&&!A(d);(o.length?h+p>n:i+h+p>n)?h?(c||l)&&(g?(c||(c=l,l="",h=u=0),o.push(c),s.push(h-u),l+=d,c="",h=u+=p):(l&&(c+=l,l="",u=0),o.push(c),s.push(h),c=d,h=p)):g?(o.push(l),s.push(u),l=d,u=p):(o.push(d),s.push(p)):(h+=p,g?(l+=d,u+=p):(l&&(c+=l,l="",u=0),c+=d))}else l&&(c+=l,h+=u),o.push(c),s.push(h),c="",l="",u=0,h=0}return o.length||c||(c=e,l="",u=0),l&&(c+=l),c&&(o.push(c),s.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:s}}
/***/},
/***/d41d:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return a})),n.d(t,"b",(function(){/* binding */return o}));
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/getRequestAnimationFrame.js
var r=["moz","ms","webkit"];
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/requestAnimationTimeout.js
var i=function(){if("undefined"==typeof window)return function(){};if(window.requestAnimationFrame)
// https://github.com/vuejs/vue/issues/4465
return window.requestAnimationFrame.bind(window);var e,t=r.filter((function(e){return e+"RequestAnimationFrame"in window}))[0];return t?window[t+"RequestAnimationFrame"]:(e=0,function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),i=window.setTimeout((function(){t(n+r)}),r);return e=n+r,i})}(),a=function(e){return function(e){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=r.filter((function(e){return e+"CancelAnimationFrame"in window||e+"CancelRequestAnimationFrame"in window}))[0];return t?(window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]).call(this,e):clearTimeout(e)}(e.id)},o=function(e,t){var n=Date.now();var r={id:i((function a(){Date.now()-n>=t?e.call():r.id=i(a)}))};return r}},
/***/d44e:
/***/function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),a=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},
/***/d457:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/d498:
/***/function(e,t,n){"use strict";
/* unused harmony export PolylineShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=n("4fac"),o=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.a(e,t,!1)},t}(i.b);
/* harmony import */s.prototype.type="polyline",
/* harmony default export */t.a=s},
/***/d49b:
/***/function(e,t,n){
// 20.2.2.16 Math.fround(x)
var r=n("7bc9"),i=Math.pow,a=i(2,-52),o=i(2,-23),s=i(2,127)*(2-o),c=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<c?l*(i/c/o+1/a-1/a)*c*o:
// eslint-disable-next-line no-self-compare
(n=(t=(1+o/a)*i)-(t-i))>s||n!=n?l*(1/0):l*n}},
/***/d49c:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return h}));
/* harmony import */var r=n("41b2"),i=n.n(r),a=n("4d91"),o=n("c1df"),s=n("2cf8"),c=n("97e1"),l=n("db14"),u=n("6a21"),h="internalMark";
/* harmony import */function f(e){e&&e.locale?Object(s.a)(o).locale(e.locale):Object(s.a)(o).locale("en")}var d={name:"ALocaleProvider",props:{locale:a.a.object.def((function(){return{}})),_ANT_MARK__:a.a.string},data:function(){return Object(u.a)(this._ANT_MARK__===h,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead"),{antLocale:i()({},this.locale,{exist:!0})}},provide:function(){return{localeData:this.$data}},watch:{locale:function(e){this.antLocale=i()({},this.locale,{exist:!0}),f(e),Object(c.a)(e&&e.Modal)}},created:function(){var e=this.locale;f(e),Object(c.a)(e&&e.Modal)},beforeDestroy:function(){Object(c.a)()},render:function(){return this.$slots.default?this.$slots.default[0]:null},
/* istanbul ignore next */
install:function(e){e.use(l.a),e.component(d.name,d)}};
/* harmony default export */t.b=d},
/***/d4c6:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(r.a)(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i.b.prototype.getBoundingRect.call(this)},t}(i.b);
/* harmony import */
/* harmony default export */t.a=a},
/***/d516:
/***/function(e,t,n){"use strict";var r=n("cee8"),i=n("f083"),a=n("77ea"),o=n("0713"),s=n("c053"),c=n("6ada"),l=n("27bd"),u=n("ed60"),h=n("de24")("iterator"),f=!([].keys&&"next"in[].keys()),d="keys",p="values",g=function(){return this};e.exports=function(e,t,n,m,v,y,A){c(n,t,m);var b,w,x,C=function(e){if(!f&&e in k)return k[e];switch(e){case d:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",I=v==p,E=!1,k=e.prototype,S=k[h]||k["@@iterator"]||v&&k[v],B=S||C(v),M=v?I?C("entries"):B:void 0,T="Array"==t&&k.entries||S;if(
// Fix native
T&&(x=u(T.call(new e)))!==Object.prototype&&x.next&&(
// Set @@toStringTag to native iterators
l(x,_,!0),
// fix for some old engines
r||"function"==typeof x[h]||o(x,h,g)),
// fix Array#{values, @@iterator}.name in V8 / FF
I&&S&&S.name!==p&&(E=!0,B=function(){return S.call(this)}),
// Define iterator
r&&!A||!f&&!E&&k[h]||o(k,h,B),
// Plug for library
s[t]=B,s[_]=g,v)if(b={values:I?B:C(p),keys:y?B:C(d),entries:M},A)for(w in b)w in k||a(k,w,b[w]);else i(i.P+i.F*(f||E),t,b);return b}},
/***/d51b:
/***/function(e,t,n){"use strict";
/* unused harmony export Entry */
/* unused harmony export LinkedList */var r=function(e){this.value=e},i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),a=function(){function e(e){this._list=new i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var c=n.head;n.remove(c),delete i[c.key],a=c.value,this._lastRemovedEntry=c}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();
/* harmony default export */t.a=a},
/***/d51d:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/d537:
/***/function(e,t,n){
// 26.1.14 Reflect.setPrototypeOf(target, proto)
var r=n("f083"),i=n("4759");i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})
/***/},
/***/d58f:
/***/function(e,t,n){"use strict";var r=n("59ed"),i=n("7b0b"),a=n("44ad"),o=n("07fa"),s=TypeError,c="Reduce of empty array with no initial value",l=function(e){return function(t,n,l,u){var h=i(t),f=a(h),d=o(h);if(r(n),0===d&&l<2)throw new s(c);var p=e?d-1:0,g=e?-1:1;if(l<2)for(;;){if(p in f){u=f[p],p+=g;break}if(p+=g,e?p<0:d<=p)throw new s(c)}for(;e?p>=0:d>p;p+=g)p in f&&(u=n(u,f[p],p,h));return u}};e.exports={
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
left:l(!1),
// `Array.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
right:l(!0)}},
/***/d5b2:
/***/function(e,t,n){var r=n("1c6a"),i=n("d77f"),a=r.key,o=r.map,s=r.store;r.exp({deleteMetadata:function(e,t/* , targetKey */){var n=arguments.length<3?void 0:a(arguments[2]),r=o(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var c=s.get(t);return c.delete(n),!!c.size||s.delete(t)}})},
/***/d5b7:
/***/function(e,t,n){"use strict";
/* unused harmony export PRESERVED_NORMAL_STATE */
/* harmony import */var r=n("8582"),i=n("06ad"),a=n("9850"),o=n("6fd3"),s=n("e86a"),c=n("6d8b"),l=n("2cf4"),u=n("41ef"),h=n("4bc4"),f="__zr_normal__",d=r.a.concat(["ignore"]),p=Object(c.reduce)(r.a,(function(e,t){return e[t]=!0,e}),{ignore:!1}),g={},m=new a.a(0,0,0,0),v=function(){function e(e){this.id=Object(c.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,c=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=m;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,u):Object(s.c)(g,n,u),i.x=g.x,i.y=g.y,a=g.align,o=g.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var d=void 0,p=void 0;"center"===f?(d=.5*u.width,p=.5*u.height):(d=Object(s.g)(f[0],u.width),p=Object(s.g)(f[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,A=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,w=void 0,x=void 0;y&&this.canBeInsideText()?(b=n.insideFill,w=n.insideStroke,null!=b&&"auto"!==b||(b=this.getInsideTextFill()),null!=w&&"auto"!==w||(w=this.getInsideTextStroke(b),x=!0)):(b=n.outsideFill,w=n.outsideStroke,null!=b&&"auto"!==b||(b=this.getOutsideFill()),null!=w&&"auto"!==w||(w=this.getOutsideStroke(b),x=!0)),(b=b||"#000")===A.fill&&w===A.stroke&&x===A.autoStroke&&a===A.align&&o===A.verticalAlign||(c=!0,A.fill=b,A.stroke=w,A.autoStroke=x,A.align=a,A.verticalAlign=o,t.setDefaultTextStyle(A)),t.__dirty|=h.a,c&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l.d:l.a},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Object(u.parse)(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Object(u.stringify)(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(c.extend)(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Object(c.isObject)(e))for(var n=e,r=Object(c.keys)(n),i=0;i<r.length;i++){var a=r[i];this.attrKV(a,e[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==f)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,d)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(f,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===f;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(Object(c.indexOf)(a,e)>=0)||!t&&1!==a.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var u=this._textContent,d=this._textGuide;return u&&u.useState(e,t,n,l),d&&d.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.a),s}Object(c.logError)("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o)for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||(l=this.states[c]),l&&r.push(l)}var u=r[a-1],f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.a)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(c.indexOf)(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(c.indexOf)(r,e),a=Object(c.indexOf)(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];Object(c.extend)(n,i),i.textConfig&&(t=t||{},Object(c.extend)(t,i.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=Object(c.extend)({},r?this.textConfig:n.textConfig),Object(c.extend)(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<d.length;u++){var h=d[u],f=i&&p[h];t&&null!=t[h]?f?(l=!0,s[h]=t[h]):this[h]=t[h]:o&&null!=n[h]&&(f?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(u=0;u<this.animators.length;u++){var g=this.animators[u],m=g.targetName;g.getLoop()||g.__changeFinalValue(m?(t||n)[m]:t||n)}l&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new r.c,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(c.extend)(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=h.a;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var a=new i.b(r,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(c.indexOf)(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){y(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){y(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=y(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=h.a;function n(e,n,r,i){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||a(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();
/* harmony import */function y(e,t,n,r,i){var a=[];w(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,--o<=0&&(s?c&&c():l&&l())},h=function(){--o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during((function(e,t){n.during(t)}));for(var f=0;f<a.length;f++){var d=a[f];u&&d.done(u),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return a}function A(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function b(e,t,n){if(Object(c.isArrayLike)(t[n]))if(Object(c.isArrayLike)(e[n])||(e[n]=[]),Object(c.isTypedArray)(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),A(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(u=i,Object(c.isArrayLike)(u[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?A(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else A(a,i,o);a.length=i.length}else e[n]=t[n];var u}function w(e,t,n,r,a,o,s,l){for(var u=Object(c.keys)(r),h=a.duration,f=a.delay,d=a.additive,p=a.setToFinal,g=!Object(c.isObject)(o),m=e.animators,v=[],y=0;y<u.length;y++){var A=u[y],x=r[A];if(null!=x&&null!=n[A]&&(g||o[A]))if(!Object(c.isObject)(x)||Object(c.isArrayLike)(x)||Object(c.isGradientObject)(x))v.push(A);else{if(t){l||(n[A]=x,e.updateDuringAnimation(t));continue}w(e,A,n[A],x,a,o&&o[A],s,l)}else l||(n[A]=x,e.updateDuringAnimation(t),v.push(A))}var C=v.length;if(!d&&C)for(var _=0;_<m.length;_++){if((E=m[_]).targetName===t)if(E.stopTracks(v)){var I=Object(c.indexOf)(m,E);m.splice(I,1)}}if(a.force||(v=Object(c.filter)(v,(function(e){return t=r[e],i=n[e],!(t===i||Object(c.isArrayLike)(t)&&Object(c.isArrayLike)(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i})),C=v.length),C>0||a.force&&!s.length){var E,k=void 0,S=void 0,B=void 0;if(l){S={},p&&(k={});for(_=0;_<C;_++){S[A=v[_]]=n[A],p?k[A]=r[A]:n[A]=r[A]}}else if(p){B={};for(_=0;_<C;_++){B[A=v[_]]=Object(i.a)(n[A]),b(n,r,A)}}(E=new i.b(n,!1,!1,d?Object(c.filter)(m,(function(e){return e.targetName===t})):null)).targetName=t,a.scope&&(E.scope=a.scope),p&&k&&E.whenWithKeys(0,k,v),B&&E.whenWithKeys(0,B,v),E.whenWithKeys(null==h?500:h,l?S:r,v).delay(f||0),e.addAnimator(E,t),s.push(E)}}
/* harmony default export */Object(c.mixin)(v,o.a),Object(c.mixin)(v,r.c),t.a=v},
/***/d5b8:
/***/function(e,t,n){n("3a2f")("Array");
/***/},
/***/d5e0:
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var a,o,s=r.indentUnit,c={},l=i.htmlMode?t:n;for(var u in l)c[u]=l[u];for(var u in i)c[u]=i[u];
// Return variables for tokenizers
function h(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(a=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=h,a=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return a="equals",null;if("<"==n){t.tokenize=h,t.state=A,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=d(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=h;break}n.next()}return e}}function g(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=h;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(t))return;v(e)}}function A(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?w:A}function b(e,t,n){return"word"==e?(n.tagName=t.current(),o="tag",_):c.allowMissingTagName&&"endTag"==e?(o="tag bracket",_(e,t,n)):(o="error",b)}function w(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(o="tag",x):(o="tag error",C)}return c.allowMissingTagName&&"endTag"==e?(o="tag bracket",x(e,t,n)):(o="error",C)}function x(e,t,n){return"endTag"!=e?(o="error",x):(v(n),A)}function C(e,t,n){return o="error",x(e,t,n)}function _(e,t,n){if("word"==e)return o="attribute",I;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||c.autoSelfClosers.hasOwnProperty(r)?y(n,r):(y(n,r),n.context=new m(n,r,i==n.indented)),A}return o="error",_}function I(e,t,n){return"equals"==e?E:(c.allowMissing||(o="error"),_(e,t,n))}function E(e,t,n){return"string"==e?k:"word"==e&&c.allowUnquoted?(o="string",_):(o="error",_(e,t,n))}function k(e,t,n){return"string"==e?k:_(e,t,n)}return h.isInText=!0,{startState:function(e){var t={tokenize:h,state:A,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var n=t.tokenize(e,t);return(n||a)&&"comment"!=n&&(o=null,t.state=t.state(a||n,e,t),o&&(n="error"==o?n+" error":o)),n},indent:function(t,n,r){var i=t.context;
// Indent multi-line strings (e.g. css).
if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;
// Indent the starts of attribute names.
if(t.tagName)return!1!==c.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var a=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(a&&a[1])// Closing tag spotted
for(;i;){if(i.tagName==a[2]){i=i.prev;break}if(!c.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(a)// Opening tag spotted
for(;i;){var o=c.contextGrabbers[i.tagName];if(!o||!o.hasOwnProperty(a[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=_)}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n("56b3"));
/***/},
/***/d610:
/***/function(e,t,n){
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
var r=n("f083"),i=n("6621"),a=n("2ce8"),o=n("d77f"),s=n("9fe8"),c=n("f937"),l=n("02ee"),u=(n("93e0").Reflect||{}).construct,h=c((function(){function e(){/* empty */}return!(u((function(){/* empty */}),[],e)instanceof e)})),f=!c((function(){u((function(){/* empty */}))}));r(r.S+r.F*(h||f),"Reflect",{construct:function(e,t/* , newTarget */){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(f&&!h)return u(e,t,n);if(e==n){
// w/o altered newTarget, optimization for 0-4 arguments
switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}
// w/o altered newTarget, lot of arguments case
var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}
// with altered newTarget, not support built-in constructors
var c=n.prototype,d=i(s(c)?c:Object.prototype),p=Function.apply.call(e,d,t);return s(p)?p:d}})},
/***/d612:
/***/function(e,t,n){var r=n("7b83"),i=n("7ed2"),a=n("dc0f");
/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}
// Add methods to `SetCache`.
o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},
/***/d69f:
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}var r={};function i(e){var t=r[e];return t||(r[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function a(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function s(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],a=i.length-1;a>=0;a--)r.unshift(i[a])}function c(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r[0]||r[1].test(a(t,r[0])))return r[2]}}e.defineMode("htmlmixed",(function(r,i){var a=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag}),l={},u=i&&i.tags,h=i&&i.scriptTypes;if(s(t,l),u&&s(u,l),h)for(var f=h.length-1;f>=0;f--)l.script.unshift(["type",h[f].matches,h[f].mode]);function d(t,i){var s,u=a.token(t,i.htmlState),h=/\btag\b/.test(u);if(h&&!/[<>\s\/]/.test(t.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&h&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var p=">"==t.current()&&c(l[f[1]],f[2]),g=e.getMode(r,p),m=o(f[1],!0),v=o(f[1],!1);i.token=function(e,t){return e.match(m,!1)?(t.token=d,t.localState=t.localMode=null,null):n(e,v,t.localMode.token(e,t.localState))},i.localMode=g,i.localState=e.startState(g,a.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return u}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:e.startState(a)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(a,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?a.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||a}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n("56b3"),n("d5e0"),n("f9d4"),n("7b00"));
/***/},
/***/d6d6:
/***/function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},
/***/d77f:
/***/function(e,t,n){var r=n("9fe8");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},
/***/d784:
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4` since it's moved to entry points
n("ac1f");var r=n("c65b"),i=n("cb2d"),a=n("9263"),o=n("d039"),s=n("b622"),c=n("9112"),l=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,h){var f=s(e),d=!o((function(){
// String methods call symbol-named RegExp methods
var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=d&&!o((function(){
// Symbol-named RegExp methods call .exec
var t=!1,n=/a/;return"split"===e&&(
// We can't use real regex here since it causes deoptimization
// and serious performance degradation in V8
// https://github.com/zloirock/core-js/issues/306
// RegExp[@@split] doesn't call the regex's exec method, but first creates
// a new one. We need to return the patched regex when creating the new one.
(n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!p||n){var g=/./[f],m=t(f,""[e],(function(e,t,n,i,o){var s=t.exec;return s===a||s===u.exec?d&&!o?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(u,f,m[1])}h&&c(u[f],"sham",!0)}},
/***/d7ee:
/***/function(e,t,n){var r=n("c3fc"),i=n("b047f"),a=n("99d3"),o=a&&a.isSet,s=o?i(o):r;
/* Node.js helper references. */e.exports=s},
/***/d804:
/***/function(e,t,n){
// 26.1.10 Reflect.isExtensible(target)
var r=n("f083"),i=n("d77f"),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!a||a(e)}})},
/***/d81d:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map;
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
// with adding support of @@species
r({target:"Array",proto:!0,forced:!n("1dde")("map")},{map:function(e/* , thisArg */){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},
/***/d866:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("59ed"),o=n("825a"),s=n("46c4");
// `Iterator.prototype.every` method
// https://tc39.es/ecma262/#sec-iterator.prototype.every
r({target:"Iterator",proto:!0,real:!0},{every:function(e){o(this),a(e);var t=s(this),n=0;return!i(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},
/***/d86b:
/***/function(e,t,n){"use strict";
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},
/***/d8dd:
/***/function(e,t,n){"use strict";
/* unused harmony export DefaultLoadingManager */
/* harmony export (binding) */n.d(t,"a",(function(){return r}));class r{constructor(e,t,n){const r=this;let i,a=!1,o=0,s=0;const c=[];
// Refer to #5689 for the reason why we don't set .onStart
// in the constructor
this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){s++,!1===a&&void 0!==r.onStart&&r.onStart(e,o,s),a=!0},this.itemEnd=function(e){o++,void 0!==r.onProgress&&r.onProgress(e,o,s),o===s&&(a=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return i?i(e):e},this.setURLModifier=function(e){return i=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){const t=c.indexOf(e);return-1!==t&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){const n=c[t],r=c[t+1];// see #17920
if(n.global&&(n.lastIndex=0),n.test(e))return r}return null}}}},
/***/d925:
/***/function(e,t,n){"use strict";
/**
 * Determines whether the specified URL is absolute
 *
 * @param {string} url The URL to test
 * @returns {boolean} True if the specified URL is absolute, otherwise false
 */e.exports=function(e){
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
// by any combination of letters, digits, plus, period, or hyphen.
return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},
/***/d96e:
/***/function(e,t,n){"use strict";
/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */var r=function(){};e.exports=r},
/***/d9a8:
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */
function(e){return e!=e}},
/***/d9b5:
/***/function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),a=n("3a9b"),o=n("fdbf"),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},
/***/d9e2:
/***/function(e,t,n){"use strict";
/* eslint-disable no-unused-vars -- required for functions `.length` */var r=n("23e7"),i=n("cfe9"),a=n("2ba4"),o=n("e5cb"),s="WebAssembly",c=i[s],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},h=function(e,t){if(c&&c[e]){var n={};n[e]=o(s+"."+e,t,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};
// https://tc39.es/ecma262/#sec-nativeerror
u("Error",(function(e){return function(t){return a(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),u("URIError",(function(e){return function(t){return a(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},
/***/d9f5:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),a=n("c65b"),o=n("e330"),s=n("c430"),c=n("83ab"),l=n("04f8"),u=n("d039"),h=n("1a2d"),f=n("3a9b"),d=n("825a"),p=n("fc6a"),g=n("a04b"),m=n("577e"),v=n("5c6c"),y=n("7c73"),A=n("df75"),b=n("241c"),w=n("057f"),x=n("7418"),C=n("06cf"),_=n("9bf2"),I=n("37e8"),E=n("d1e7"),k=n("cb2d"),S=n("edd0"),B=n("5692"),M=n("f772"),T=n("d012"),O=n("90e3"),D=n("b622"),P=n("e538"),L=n("e065"),Q=n("57b9"),R=n("d44e"),j=n("69f3"),N=n("b727").forEach,F=M("hidden"),z="Symbol",H="prototype",U=j.set,G=j.getterFor(z),V=Object[H],W=i.Symbol,q=W&&W[H],Y=i.RangeError,K=i.TypeError,$=i.QObject,J=C.f,X=_.f,Z=w.f,ee=E.f,te=o([].push),ne=B("symbols"),re=B("op-symbols"),ie=B("wks"),ae=!$||!$[H]||!$[H].findChild,oe=function(e,t,n){var r=J(V,t);r&&delete V[t],X(e,t,n),r&&e!==V&&X(V,t,r)},se=c&&u((function(){return 7!==y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?oe:X,ce=function(e,t){var n=ne[e]=y(q);return U(n,{type:z,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===V&&le(re,t,n),d(e);var r=g(t);return d(n),h(ne,r)?(n.enumerable?(h(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(e,F)||X(e,F,v(1,y(null))),e[F][r]=!0),se(e,r,n)):X(e,r,n)},ue=function(e,t){d(e);var n=p(t),r=A(n).concat(pe(n));return N(r,(function(t){c&&!a(he,n,t)||le(e,t,n[t])})),e},he=function(e){var t=g(e),n=a(ee,this,t);return!(this===V&&h(ne,t)&&!h(re,t))&&(!(n||!h(this,t)||!h(ne,t)||h(this,F)&&this[F][t])||n)},fe=function(e,t){var n=p(e),r=g(t);if(n!==V||!h(ne,r)||h(re,r)){var i=J(n,r);return!i||!h(ne,r)||h(n,F)&&n[F][r]||(i.enumerable=!0),i}},de=function(e){var t=Z(p(e)),n=[];return N(t,(function(e){h(ne,e)||h(T,e)||te(n,e)})),n},pe=function(e){var t=e===V,n=Z(t?re:p(e)),r=[];return N(n,(function(e){!h(ne,e)||t&&!h(V,e)||te(r,ne[e])})),r};
// `Symbol` constructor
// https://tc39.es/ecma262/#sec-symbol-constructor
l||(W=function(){if(f(q,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=O(e),n=function(e){var r=void 0===this?i:this;r===V&&a(n,re,e),h(r,F)&&h(r[F],t)&&(r[F][t]=!1);var o=v(1,e);try{se(r,t,o)}catch(e){if(!(e instanceof Y))throw e;oe(r,t,o)}};return c&&ae&&se(V,t,{configurable:!0,set:n}),ce(t,e)},k(q=W[H],"toString",(function(){return G(this).tag})),k(W,"withoutSetter",(function(e){return ce(O(e),e)})),E.f=he,_.f=le,I.f=ue,C.f=fe,b.f=w.f=de,x.f=pe,P.f=function(e){return ce(D(e),e)},c&&(
// https://github.com/tc39/proposal-Symbol-description
S(q,"description",{configurable:!0,get:function(){return G(this).description}}),s||k(V,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),N(A(ie),(function(e){L(e)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
create:function(e,t){return void 0===t?y(e):ue(y(e),t)},
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
defineProperty:le,
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
defineProperties:ue,
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
getOwnPropertyNames:de}),
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
Q(),
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
R(W,z),T[F]=!0},
/***/d9fc:
/***/function(e,t,n){"use strict";
/* unused harmony export CircleShape */
/* harmony import */var r=n("21a1"),i=n("cbe5"),a=function(){this.cx=0,this.cy=0,this.r=0},o=function(e){function t(t){return e.call(this,t)||this}return Object(r.a)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(i.b);
/* harmony import */o.prototype.type="circle",
/* harmony default export */t.a=o},
/***/da03:
/***/function(e,t,n){var r=n("2b3e")["__core-js_shared__"];
/** Used to detect overreaching core-js shims. */e.exports=r},
/***/da30:
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: SubMenu, Item, itemProps, MenuItem, MenuItemGroup, ItemGroup, Divider
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
var r=n("41b2"),i=n.n(r),a=n("4d91"),o=n("6f54"),s=n("32e8"),c=n("1462"),l=n("b488"),u=n("daa3"),h=n("22a4"),f={name:"Menu",props:i()({},h.a,{selectable:a.a.bool.def(!0)}),mixins:[l.a],data:function(){var e=Object(u.l)(this),t=e.defaultSelectedKeys,n=e.defaultOpenKeys;
// this.isRootMenu = true // 声明在props上
return"selectedKeys"in e&&(t=e.selectedKeys||[]),"openKeys"in e&&(n=e.openKeys||[]),this.store=Object(o.a)({selectedKeys:t,openKeys:n,activeKey:{"0-menu-":Object(c.b)(i()({},e,{children:this.$slots.default||[]}),e.activeKey)}}),{}},mounted:function(){this.updateMiniStore()},updated:function(){this.updateMiniStore()},methods:{onSelect:function(e){var t=this.$props;if(t.selectable){
// root menu
var n=this.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],Object(u.b)(this,"selectedKeys")||this.store.setState({selectedKeys:n}),this.__emit("select",i()({},e,{selectedKeys:n}))}},onClick:function(e){this.__emit("click",e)},
// onKeyDown needs to be exposed as a instance method
// e.g., in rc-select, we need to navigate menu item while
// current active item is rc-select input box rather than the menu itself
onKeyDown:function(e,t){this.$refs.innerMenu.getWrappedInstance().onKeyDown(e,t)},onOpenChange:function(e){var t=this.store.getState().openKeys.concat(),n=!1,r=function(e){var r=!1;if(e.open)(r=-1===t.indexOf(e.key))&&t.push(e.key);else{var i=t.indexOf(e.key);(r=-1!==i)&&t.splice(i,1)}n=n||r};Array.isArray(e)?
// batch change call
e.forEach(r):r(e),n&&(Object(u.b)(this,"openKeys")||this.store.setState({openKeys:t}),this.__emit("openChange",t))},onDeselect:function(e){if(this.$props.selectable){var t=this.store.getState().selectedKeys.concat(),n=e.key,r=t.indexOf(n);-1!==r&&t.splice(r,1),Object(u.b)(this,"selectedKeys")||this.store.setState({selectedKeys:t}),this.__emit("deselect",i()({},e,{selectedKeys:t}))}},getOpenTransitionName:function(){var e=this.$props,t=e.openTransitionName,n=e.openAnimation;return t||"string"!=typeof n||(t=e.prefixCls+"-open-"+n),t},updateMiniStore:function(){var e=Object(u.l)(this);"selectedKeys"in e&&this.store.setState({selectedKeys:e.selectedKeys||[]}),"openKeys"in e&&this.store.setState({openKeys:e.openKeys||[]})}},render:function(){var e=arguments[0],t=Object(u.l)(this),n={props:i()({},t,{itemIcon:Object(u.g)(this,"itemIcon",t),expandIcon:Object(u.g)(this,"expandIcon",t),overflowedIndicator:Object(u.g)(this,"overflowedIndicator",t)||e("span",["···"]),openTransitionName:this.getOpenTransitionName(),parentMenu:this,children:Object(u.c)(this.$slots.default||[])}),class:t.prefixCls+"-root",on:i()({},Object(u.k)(this),{click:this.onClick,openChange:this.onOpenChange,deselect:this.onDeselect,select:this.onSelect}),ref:"innerMenu"};return e(s.a,{attrs:{store:this.store}},[e(c.a,n)])}},d=f;t.a=d},
/***/daa3:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"i",(function(){return S})),
/* harmony export (binding) */n.d(t,"h",(function(){return B})),
/* harmony export (binding) */n.d(t,"k",(function(){return M})),
/* harmony export (binding) */n.d(t,"f",(function(){return T})),
/* harmony export (binding) */n.d(t,"q",(function(){return O})),
/* unused harmony export getComponentName */
/* harmony export (binding) */n.d(t,"u",(function(){return D})),
/* harmony export (binding) */n.d(t,"v",(function(){return P})),
/* harmony export (binding) */n.d(t,"c",(function(){return L})),
/* harmony export (binding) */n.d(t,"x",(function(){return R})),
/* harmony export (binding) */n.d(t,"s",(function(){return m})),
/* unused harmony export filterProps */
/* harmony export (binding) */n.d(t,"l",(function(){return x})),
/* harmony export (binding) */n.d(t,"g",(function(){return C})),
/* harmony export (binding) */n.d(t,"o",(function(){return w})),
/* unused harmony export slotHasProp */
/* harmony export (binding) */n.d(t,"m",(function(){return _})),
/* harmony export (binding) */n.d(t,"j",(function(){return k})),
/* harmony export (binding) */n.d(t,"e",(function(){return E})),
/* harmony export (binding) */n.d(t,"r",(function(){return I})),
/* harmony export (binding) */n.d(t,"y",(function(){return g})),
/* harmony export (binding) */n.d(t,"t",(function(){return Q})),
/* harmony export (binding) */n.d(t,"w",(function(){return j})),
/* harmony export (binding) */n.d(t,"a",(function(){return p})),
/* harmony export (binding) */n.d(t,"p",(function(){return y})),
/* harmony export (binding) */n.d(t,"n",(function(){return A})),
/* unused harmony export getAllProps */
/* harmony export (binding) */n.d(t,"d",(function(){return b}));
/* harmony import */var r=n("1098"),i=n.n(r),a=n("b24f"),o=n.n(a),s=n("41b2"),c=n.n(s),l=n("60ed"),u=n.n(l),h=n("4d26"),f=n.n(h);
/* harmony import */var d=/-(\w)/g,p=function(e){return e.replace(d,(function(e,t){return t?t.toUpperCase():""}))},g=function(){var e=arguments[1],t={},n=/:(.+)/;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/;(?![^(]*\))/g).forEach((function(r){if(r){var i=r.split(n);if(i.length>1){var a=e?p(i[0].trim()):i[0].trim();t[a]=i[1].trim()}}})),t},m=function(e,t){return t in((e.$options||{}).propsData||{})},v=function(e){return e.data&&e.data.scopedSlots||{}},y=function(e){var t=e.componentOptions||{};e.$vnode&&(t=e.$vnode.componentOptions||{});var n=e.children||t.children||[],r={};return n.forEach((function(e){if(!D(e)){var t=e.data&&e.data.slot||"default";r[t]=r[t]||[],r[t].push(e)}})),c()({},r,v(e))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.$scopedSlots&&e.$scopedSlots[t]&&e.$scopedSlots[t](n)||e.$slots[t]||[]},b=function(e){var t=e.componentOptions||{};return e.$vnode&&(t=e.$vnode.componentOptions||{}),e.children||t.children||[]},w=function(e){if(e.fnOptions)
// 函数式组件
return e.fnOptions;var t=e.componentOptions;return e.$vnode&&(t=e.$vnode.componentOptions),t&&t.Ctor.options||{}},x=function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,r=void 0===n?{}:n,i=t.Ctor,a=((void 0===i?{}:i).options||{}).props||{},s={},l=!0,u=!1,h=void 0;try{for(var f,d=Object.entries(a)[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var p=f.value,g=o()(p,2),m=g[0],v=g[1],y=v.default;void 0!==y&&(s[m]="function"==typeof y&&"Function"!==(A=v.type,b=void 0,(b=A&&A.toString().match(/^\s*function (\w+)/))?b[1]:"")?y.call(e):y)}}catch(e){u=!0,h=e}finally{try{!l&&d.return&&d.return()}finally{if(u)throw h}}return c()({},s,r)}var A,b,w=e.$options,x=void 0===w?{}:w,C=e.$props;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.keys(e).forEach((function(r){(r in t||void 0!==e[r])&&(n[r]=e[r])})),n}(void 0===C?{}:C,x.propsData)},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$createElement){var i=e.$createElement,a=e[t];return void 0!==a?"function"==typeof a&&r?a(i,n):a:e.$scopedSlots[t]&&r&&e.$scopedSlots[t](n)||e.$scopedSlots[t]||e.$slots[t]||void 0}var o=e.context.$createElement,s=_(e)[t];if(void 0!==s)return"function"==typeof s&&r?s(o,n):s;var c=v(e)[t];if(void 0!==c)return"function"==typeof c&&r?c(o,n):c;var l=[];return((e.componentOptions||{}).children||[]).forEach((function(e){e.data&&e.data.slot===t&&(e.data.attrs&&delete e.data.attrs.slot,"template"===e.tag?l.push(e.children):l.push(e))})),l.length?l:void 0},_=function(e){var t=e.componentOptions;return e.$vnode&&(t=e.$vnode.componentOptions),t&&t.propsData||{}},I=function(e,t){return _(e)[t]},E=function(e){var t=e.data;return e.$vnode&&(t=e.$vnode.data),t&&t.attrs||{}},k=function(e){var t=e.key;return e.$vnode&&(t=e.$vnode.key),t};function S(e){var t={};return e.componentOptions&&e.componentOptions.listeners?t=e.componentOptions.listeners:e.data&&e.data.on&&(t=e.data.on),c()({},t)}
// 获取 xxx.native 或者 原生标签 事件
function B(e){var t={};return e.data&&e.data.on&&(t=e.data.on),c()({},t)}
// use getListeners instead this.$listeners
// https://github.com/vueComponent/ant-design-vue/issues/1705
function M(e){return(e.$vnode?e.$vnode.componentOptions.listeners:e.$listeners)||{}}function T(e){var t={};e.data?t=e.data:e.$vnode&&e.$vnode.data&&(t=e.$vnode.data);var n=t.class||{},r=t.staticClass,i={};return r&&r.split(" ").forEach((function(e){i[e.trim()]=!0})),"string"==typeof n?n.split(" ").forEach((function(e){i[e.trim()]=!0})):Array.isArray(n)?f()(n).split(" ").forEach((function(e){i[e.trim()]=!0})):i=c()({},i,n),i}function O(e,t){var n={};e.data?n=e.data:e.$vnode&&e.$vnode.data&&(n=e.$vnode.data);var r=n.style||n.staticStyle;if("string"==typeof r)r=g(r,t);else if(t&&r){
// 驼峰化
var i={};return Object.keys(r).forEach((function(e){return i[p(e)]=r[e]})),i}return r}function D(e){return!(e.tag||e.text&&""!==e.text.trim())}function P(e){return!e.tag}function L(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(e){return!D(e)}))}var Q=function(e,t){return Object.keys(t).forEach((function(n){if(!e[n])throw new Error("not have "+n+" prop");e[n].def&&(e[n]=e[n].def(t[n]))})),e};function R(){var e=[].slice.call(arguments,0),t={};return e.forEach((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!0,r=!1,i=void 0;try{for(var a,s=Object.entries(e)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value,h=o()(l,2),f=h[0],d=h[1];t[f]=t[f]||{},u()(d)?c()(t[f],d):t[f]=d}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}})),t}function j(e){return e&&"object"===(void 0===e?"undefined":i()(e))&&"componentOptions"in e&&"context"in e&&void 0!==e.tag;// remove text node
}
/* harmony default export */t.b=m},
/***/dad2:
/***/function(e,t,n){"use strict";var r=n("d066"),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{
// late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
// https://github.com/tc39/proposal-set-methods/pull/88
return(new n)[e](i(-1)),!1}catch(r){if(!t)return!0;
// early V8 implementation bug
// https://issues.chromium.org/issues/351332634
try{return(new n)[e](a(-1/0)),!1}catch(r){var o=new n;return o.add(1),o.add(2),t(o[e](a(1/0)))}}}catch(e){return!1}}},
/***/db14:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/vue-ref/index.js
var r=n("46cf"),i=n.n(r),a=n("129d"),o=n("dfdf");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/portalDirective.js
function s(e){return e.directive("ant-portal",{inserted:function(e,t){var n=t.value,r="function"==typeof n?n(e):n;r!==e.parentNode&&r.appendChild(e)},componentUpdated:function(e,t){var n=t.value,r="function"==typeof n?n(e):n;r!==e.parentNode&&r.appendChild(e)}})}
/* harmony default export */var c={install:function(e){e.use(i.a,{name:"ant-ref"}),Object(a.a)(e),Object(o.a)(e),s(e)}},l={};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/antDirective.js
/* harmony default export */l.install=function(e){l.Vue=e,e.use(c)};
/* harmony default export */t.a=l;
/***/},
/***/db27:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return i}));
/* harmony import */var r=n("5a89");class i extends r.k{constructor(e){super(e)}parse(e,t){const n={mipmaps:[],width:0,height:0,format:null,mipmapCount:1};
// Adapted from @toji's DDS utils
// https://github.com/toji/webgl-texture-utils/blob/master/texture-util/dds.js
// All values and structures referenced from:
// http://msdn.microsoft.com/en-us/library/bb943991.aspx/
// const DDSCAPS2_VOLUME = 0x200000;
// const DDPF_ALPHAPIXELS = 0x1;
// const DDPF_ALPHA = 0x2;
// const DDPF_FOURCC = 0x4;
// const DDPF_RGB = 0x40;
// const DDPF_YUV = 0x200;
// const DDPF_LUMINANCE = 0x20000;
function i(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}function a(e,t,n,r){const i=n*r*4,a=new Uint8Array(e,t,i),o=new Uint8Array(i);let s=0,c=0;for(let e=0;e<r;e++)for(let e=0;e<n;e++){const e=a[c];c++;const t=a[c];c++;const n=a[c];c++;const r=a[c];c++,o[s]=n,s++,//r
o[s]=t,s++,//g
o[s]=e,s++,//b
o[s]=r,s++}return o}const o=i("DXT1"),s=i("DXT3"),c=i("DXT5"),l=i("ETC1"),u=new Int32Array(e,0,31);if(542327876!==u[0])return n;let h;let f=!1;switch(u[21]){case o:h=8,n.format=r.vb;break;case s:h=16,n.format=r.sb;break;case c:h=16,n.format=r.tb;break;case l:h=8,n.format=r.ub;break;default:if(!(32===u[22]&&16711680&u[23]&&65280&u[24]&&255&u[25]&&4278190080&u[26]))return n;f=!0,h=64,n.format=r.rb}n.mipmapCount=1,131072&u[2]&&!1!==t&&(n.mipmapCount=Math.max(1,u[7]));const d=u[28];if(n.isCubemap=!!(512&d),n.isCubemap&&(!(1024&d)||!(2048&d)||!(4096&d)||!(8192&d)||!(16384&d)||!(32768&d)))return n;n.width=u[4],n.height=u[3];let p=u[1]+4;
// Extract mipmaps buffers
const g=n.isCubemap?6:1;for(let t=0;t<g;t++){let t=n.width,r=n.height;for(let i=0;i<n.mipmapCount;i++){let i,o;f?(i=a(e,p,t,r),o=i.length):(o=Math.max(4,t)/4*Math.max(4,r)/4*h,i=new Uint8Array(e,p,o));const s={data:i,width:t,height:r};n.mipmaps.push(s),p+=o,t=Math.max(t>>1,1),r=Math.max(r>>1,1)}}return n}}
/***/},
/***/db4d:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){if(n("6b90"),n("96cf"),n("76de"),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;function t(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&t(Array,e,Function.call.bind([][e]))}))}).call(this,n("c8ba"))
/***/},
/***/db72:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("b84d"),i=n("6071"),a=Object.prototype.hasOwnProperty;
/* harmony import */
/* harmony default export */t.a=
/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function(e,t,n){var o=e[t];a.call(e,t)&&Object(i.a)(o,n)&&(void 0!==n||t in e)||Object(r.a)(e,t,n)}},
/***/db91:
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],i=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function a(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",r.concat(i)),e.defineMode("python",(function(o,s){for(var c="error",l=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,u=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@])/],h=0;h<u.length;h++)u[h]||u.splice(h--,1);var f=s.hangingIndent||o.indentUnit,d=r,p=i;null!=s.extra_keywords&&(d=d.concat(s.extra_keywords)),null!=s.extra_builtins&&(p=p.concat(s.extra_builtins));var g=!(s.version&&Number(s.version)<3);if(g){
// since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator
var m=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;d=d.concat(["nonlocal","False","True","None","async","await"]),p=p.concat(["ascii","bytes","exec","print"]);var v=new RegExp("^(([rbuf]|(br)|(fr))?('{3}|\"{3}|['\"]))","i")}else m=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/,d=d.concat(["exec","print"]),p=p.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]),v=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i");var y=t(d),A=t(p);
// tokenizers
function b(e,t){var n=e.sol()&&"\\"!=t.lastToken;
// Handle scope changes
if(n&&(t.indent=e.indentation()),n&&"py"==a(t).type){var r=a(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?_(t):i<r&&E(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var o=w(e,t);return r>0&&E(e,t)&&(o+=" "+c),o}return w(e,t)}function w(e,t){if(e.eatSpace())return null;
// Handle Comments
if(e.match(/^#.*/))return"comment";
// Handle Number Literals
if(e.match(/^[0-9\.]/,!1)){var r=!1;
// Floats
if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(r=!0),e.match(/^[\d_]+\.\d*/)&&(r=!0),e.match(/^\.\d+/)&&(r=!0),r)
// Float literals may be "imaginary"
return e.eat(/J/i),"number";
// Integers
var i=!1;
// Hex
if(e.match(/^0x[0-9a-f_]+/i)&&(i=!0),
// Binary
e.match(/^0b[01_]+/i)&&(i=!0),
// Octal
e.match(/^0o[0-7_]+/i)&&(i=!0),
// Decimal
e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(
// Decimal literals may be "imaginary"
e.eat(/J/i),
// TODO - Can you have imaginary longs?
i=!0),
// Zero by itself with no other piece of number.
e.match(/^0(?![\dx])/i)&&(i=!0),i)
// Integer literals may be "long"
return e.eat(/L/i),"number"}
// Handle Strings
if(e.match(v))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=x(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=C(e.current(),t.tokenize),t.tokenize(e,t));for(var a=0;a<u.length;a++)if(e.match(u[a]))return"operator";return e.match(l)?"punctuation":"."==t.lastToken&&e.match(m)?"property":e.match(y)||e.match(n)?"keyword":e.match(A)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(m)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(
// Handle non-detected items
e.next(),c)}function x(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(e){return function(t,n){var r=w(t,n);return"punctuation"==r&&("{"==t.current()?n.tokenize=i(e+1):"}"==t.current()&&(n.tokenize=e>1?i(e-1):a)),r}}function a(a,o){for(;!a.eol();)if(a.eatWhile(/[^'"\{\}\\]/),a.eat("\\")){if(a.next(),n&&a.eol())return r}else{if(a.match(e))return o.tokenize=t,r;if(a.match("{{"))
// ignore {{ in f-str
return r;if(a.match("{",!1))
// switch to nested mode
return o.tokenize=i(0),a.current()?r:o.tokenize(a,o);if(a.match("}}"))return r;if(a.match("}"))
// single } in f-string is an error
return c;a.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return c;o.tokenize=t}return r}return a.isString=!0,a}function C(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(i,a){for(;!i.eol();)if(i.eatWhile(/[^'"\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return a.tokenize=t,r;i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return c;a.tokenize=t}return r}return i.isString=!0,i}function _(e){for(;"py"!=a(e).type;)e.scopes.pop();e.scopes.push({offset:a(e).offset+o.indentUnit,type:"py",align:null})}function I(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+f,type:n,align:r})}function E(e,t){for(var n=e.indentation();t.scopes.length>1&&a(t).offset>n;){if("py"!=a(t).type)return!0;t.scopes.pop()}return a(t).offset!=n}function k(e,t){e.sol()&&(t.beginningOfLine=!0);var n=t.tokenize(e,t),r=e.current();
// Handle decorators
if(t.beginningOfLine&&"@"==r)return e.match(m,!1)?"meta":g?"operator":c;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),
// Handle scope changes.
"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=a(t).type||_(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&I(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(a(t).type!=r)return c;t.indent=t.scopes.pop().offset-f}}return t.dedent>0&&e.eol()&&"py"==a(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}return{startState:function(e){return{tokenize:b,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=k(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+c:r},indent:function(t,n){if(t.tokenize!=b)return t.tokenize.isString?e.Pass:0;var r=a(t),i=r.type==n.charAt(0);return null!=r.align?r.align-(i?1:0):r.offset-(i?f:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python");var o=function(e){return e.split(" ")};e.defineMIME("text/x-cython",{name:"python",extra_keywords:o("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})}(n("56b3"));
/***/},
/***/db97:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("b4f1"),i=n("ff51");
/* harmony import */
/* harmony default export */t.a=
/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function(e,t,n){var a=t(e);return Object(i.a)(e)?a:Object(r.a)(a,n(e))}},
/***/dbaf:
/***/function(e,t,n){
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var r=n("1c2d");
// eslint-disable-next-line no-prototype-builtins
e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},
/***/dbb2:
/***/function(e,t,n){
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var r=n("30de"),i=n("68ae").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},
/***/dbb4:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),a=n("56ef"),o=n("fc6a"),s=n("06cf"),c=n("8418");
// `Object.getOwnPropertyDescriptors` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),i=s.f,l=a(r),u={},h=0;l.length>h;)void 0!==(n=i(r,t=l[h++]))&&c(u,t,n);return u}})},
/***/dbbf:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/dbcc:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("52d5");
// WebKit Array.of isn't generic
r(r.S+r.F*n("f937")((function(){function e(){/* empty */}return!(Array.of.call(e)instanceof e)})),"Array",{
// 22.1.2.3 Array.of( ...items)
of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},
/***/dc0f:
/***/function(e,t){e.exports=
/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function(e){return this.__data__.has(e)}},
/***/dc19:
/***/function(e,t,n){"use strict";var r=n("cb27").has;
// Perform ? RequireInternalSlot(M, [[SetData]])
e.exports=function(e){return r(e),e}},
/***/dc3f:
/***/function(e,t){
// 20.2.2.20 Math.log1p(x)
e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)};
/***/},
/***/dc4a:
/***/function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");
// `GetMethod` abstract operation
// https://tc39.es/ecma262/#sec-getmethod
e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},
/***/dc57:
/***/function(e,t){
/** Used for built-in method references. */
var n=Function.prototype.toString;
/** Used to resolve the decompiled source of functions. */e.exports=
/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},
/***/dcb1:
/***/function(e,t,n){var r;r=function(){/******/
return function(e){// webpackBootstrap
/******/ // The module cache
/******/var t={};
/******/
/******/ // The require function
/******/function n(r){
/******/
/******/ // Check if module is in cache
/******/if(t[r])
/******/return t[r].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/var i=t[r]={
/******/i:r,
/******/l:!1,
/******/exports:{}
/******/};
/******/
/******/ // Execute the module function
/******/
/******/
/******/ // Return the exports of the module
/******/return e[r].call(i.exports,i,i.exports,n),
/******/
/******/ // Flag the module as loaded
/******/i.l=!0,i.exports;
/******/}
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/
/******/
/******/ // Load entry module and return exports
/******/return n.m=e,
/******/
/******/ // expose the module cache
/******/n.c=t,
/******/
/******/ // define getter function for harmony exports
/******/n.d=function(e,t,r){
/******/n.o(e,t)||
/******/Object.defineProperty(e,t,{
/******/configurable:!1,
/******/enumerable:!0,
/******/get:r
/******/})
/******/},
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/n.n=function(e){
/******/var t=e&&e.__esModule?
/******/function(){return e.default}:
/******/function(){return e};
/******/
/******/return n.d(t,"a",t),t;
/******/},
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},
/******/
/******/ // __webpack_public_path__
/******/n.p="",n(n.s=0);
/******/}
/************************************************************************/
/******/([
/* 0 */
/***/function(e,t,n){var r=n(1);window&&window.G2,e.exports=r},
/* 1 */
/***/function(e,t,n){
/**
 * @fileOverview G2's plugin for datazoom.
 * @author sima.zhang
 */
var r=n(2),i=window&&window.G2,a=i.Chart,o=i.Util,s=i.G,c=i.Global,l=s.Canvas,u=o.DomUtil,h=function(e){return"number"==typeof e},f=

function(){var e=t.prototype;function t(e){this._initProps(),o.deepMix(this,e);var t=this.container;if(!t)throw new Error("Please specify the container for the Slider!");o.isString(t)?this.domContainer=document.getElementById(t):this.domContainer=t,this.handleStyle=o.mix({width:this.height,height:this.height},this.handleStyle),"auto"===this.width&&
// 宽度自适应
window.addEventListener("resize",o.wrapBehavior(this,"_initForceFitEvent"))}return e._initProps=function(){this.height=26,this.width="auto",// 默认自适应
this.padding=c.plotCfg.padding,this.container=null,this.xAxis=null,this.yAxis=null,// 选中区域的样式
this.fillerStyle={fill:"#BDCCED",fillOpacity:.3},// 滑动条背景样式
this.backgroundStyle={stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},this.range=[0,100],this.layout="horizontal",// 文本颜色
this.textStyle={fill:"#545454"},// 滑块的样式
this.handleStyle={img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},// 背景图表的配置，如果为 false 则表示不渲染
this.backgroundChart={type:["area"],
// 图表的类型，可以是字符串也可是是数组
color:"#CCD6EC"}},e._initForceFitEvent=function(){var e=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=e},e.forceFit=function(){if(this&&!this.destroyed){var e=u.getWidth(this.domContainer),t=this.height;if(e!==this.domWidth){var n=this.canvas;n.changeSize(e,t),// 改变画布尺寸
this.bgChart&&this.bgChart.changeWidth(e),n.clear(),this._initWidth(),this._initSlider(),// 初始化滑动条
this._bindEvent(),n.draw()}}},e._initWidth=function(){var e;e="auto"===this.width?u.getWidth(this.domContainer):this.width,this.domWidth=e;var t=o.toAllPadding(this.padding);"horizontal"===this.layout?(this.plotWidth=e-t[1]-t[3],this.plotPadding=t[3],this.plotHeight=this.height):"vertical"===this.layout&&(this.plotWidth=this.width,this.plotHeight=this.height-t[0]-t[2],this.plotPadding=t[0])},e.render=function(){this._initWidth(),this._initCanvas(),// 初始化 canvas
this._initBackground(),// 初始化背景图表
this._initSlider(),// 初始化滑动条
this._bindEvent(),this.canvas.draw()},e.changeData=function(e){this.data=e,this.repaint()},e.destroy=function(){clearTimeout(this.resizeTimer),this.rangeElement.off("sliderchange"),this.bgChart&&this.bgChart.destroy(),this.canvas.destroy();for(var e=this.domContainer;e.hasChildNodes();)e.removeChild(e.firstChild);window.removeEventListener("resize",o.getWrapBehavior(this,"_initForceFitEvent")),this.destroyed=!0},e.clear=function(){this.canvas.clear(),this.bgChart&&this.bgChart.destroy(),this.bgChart=null,this.scale=null,this.canvas.draw()},e.repaint=function(){this.clear(),this.render()},e._initCanvas=function(){var e=this.domWidth,t=this.height,n=new l({width:e,height:t,containerDOM:this.domContainer,capture:!1}),r=n.get("el");r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.zIndex=3,this.canvas=n},e._initBackground=function(){var e,t=this.data,n=this.xAxis,r=this.yAxis,i=o.deepMix(((e={})[""+n]={range:[0,1]},e),this.scales);// 用户列定义
if(!t)
// 没有数据，则不创建
throw new Error("Please specify the data!");if(!n)throw new Error("Please specify the xAxis!");if(!r)throw new Error("Please specify the yAxis!");var s=this.backgroundChart,c=s.type,l=s.color;o.isArray(c)||(c=[c]);var u=o.toAllPadding(this.padding),h=new a({container:this.container,width:this.domWidth,height:this.height,padding:[0,u[1],0,u[3]],animate:!1});h.source(t),h.scale(i),h.axis(!1),h.tooltip(!1),h.legend(!1),o.each(c,(function(e){h[e]().position(n+"*"+r).color(l).opacity(1)})),h.render(),this.bgChart=h,this.scale="horizontal"===this.layout?h.getXScale():h.getYScales()[0],"vertical"===this.layout&&h.destroy()},e._initRange=function(){var e=this.startRadio,t=this.endRadio,n=this.start,r=this.end,i=this.scale,a=0,o=1;// startRadio 优先级高于 start
h(e)?a=e:n&&(a=i.scale(i.translate(n))),// endRadio 优先级高于 end
h(t)?o=t:r&&(o=i.scale(i.translate(r)));var s=this.minSpan,c=this.maxSpan,l=0;if("time"===i.type||"timeCat"===i.type){
// 时间类型已排序
var u=i.values,f=u[0];l=u[u.length-1]-f}else i.isLinear&&(l=i.max-i.min);l&&s&&(this.minRange=s/l*100),l&&c&&(this.maxRange=c/l*100);var d=[100*a,100*o];return this.range=d,d},e._getHandleValue=function(e){var t=this.range,n=t[0]/100,r=t[1]/100,i=this.scale;return"min"===e?this.start?this.start:i.invert(n):this.end?this.end:i.invert(r)},e._initSlider=function(){var e=this.canvas,t=this._initRange(),n=this.scale,i=e.addGroup(r,{middleAttr:this.fillerStyle,range:t,minRange:this.minRange,maxRange:this.maxRange,layout:this.layout,width:this.plotWidth,height:this.plotHeight,backgroundStyle:this.backgroundStyle,textStyle:this.textStyle,handleStyle:this.handleStyle,minText:n.getText(this._getHandleValue("min")),maxText:n.getText(this._getHandleValue("max"))});"horizontal"===this.layout?i.translate(this.plotPadding,0):"vertical"===this.layout&&i.translate(0,this.plotPadding),this.rangeElement=i},e._bindEvent=function(){var e=this;e.rangeElement.on("sliderchange",(function(t){var n=t.range,r=n[0]/100,i=n[1]/100;e._updateElement(r,i)}))},e._updateElement=function(e,t){var n=this.scale,r=this.rangeElement,i=r.get("minTextElement"),a=r.get("maxTextElement"),o=n.invert(e),s=n.invert(t),c=n.getText(o),l=n.getText(s);i.attr("text",c),a.attr("text",l),this.start=o,this.end=s,this.onChange&&this.onChange({startText:c,endText:l,startValue:o,endValue:s,startRadio:e,endRadio:t})},t}();e.exports=f},
/* 2 */
/***/function(e,t){
/**
 * @fileOverview The class of slider
 * @author sima.zhang
 */
var n=window&&window.G2,r=n.Util,i=n.G.Group,a=r.DomUtil,o=

function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){return{
/**
       * 范围
       * @type {Array}
       */
range:null,
/**
       * 中滑块属性
       * @type {ATTRS}
       */
middleAttr:null,
/**
       * 背景
       * @type {G-Element}
       */
backgroundElement:null,
/**
       * 下滑块
       * @type {G-Element}
       */
minHandleElement:null,
/**
       * 上滑块
       * @type {G-Element}
       */
maxHandleElement:null,
/**
       * 中块
       * @type {G-Element}
       */
middleHandleElement:null,
/**
       * 当前的激活的元素
       * @type {G-Element}
       */
currentTarget:null,
/**
       * 布局方式： horizontal，vertical
       * @type {String}
       */
layout:"vertical",
/**
       * 宽
       * @type {Number}
       */
width:null,
/**
       * 高
       * @type {Number}
       */
height:null,
/**
       * 当前的PageX
       * @type {Number}
       */
pageX:null,
/**
       * 当前的PageY
       * @type {Number}
       */
pageY:null}},o._initHandle=function(e){var t,n,i,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),c=s.img,l=s.width,u=s.height;if("horizontal"===o){var h=s.width;i="ew-resize",n=a.addShape("Image",{attrs:{x:-h/2,y:0,width:h,height:u,img:c,cursor:i}}),t=a.addShape("Text",{attrs:r.mix({x:"min"===e?-(h/2+5):h/2+5,y:u/2,textAlign:"min"===e?"end":"start",textBaseline:"middle",text:"min"===e?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))})}else i="ns-resize",n=a.addShape("Image",{attrs:{x:0,y:-u/2,width:l,height:u,img:c,cursor:i}}),t=a.addShape("Text",{attrs:r.mix({x:l/2,y:"min"===e?u/2+5:-(u/2+5),textAlign:"center",textBaseline:"middle",text:"min"===e?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))});return this.set(e+"TextElement",t),this.set(e+"IconElement",n),a},o._initSliderBackground=function(){var e=this.addGroup();return e.initTransform(),e.translate(0,0),e.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),e},o._beforeRenderUI=function(){var e=this._initSliderBackground(),t=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",t),this.set("maxHandleElement",n),this.set("backgroundElement",e),e.set("zIndex",0),r.set("zIndex",1),t.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},o._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},o._transform=function(e){var t=this.get("range"),n=t[0]/100,r=t[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),c=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===e?(c.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(c.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},o._renderHorizontal=function(){this._transform("horizontal")},o._renderVertical=function(){this._transform("vertical")},o._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},o._isElement=function(e,t){
// 判断是否是该元素
var n=this.get(t);return e===n||!!n.isGroup&&n.get("children").indexOf(e)>-1},o._getRange=function(e,t){var n=e+t;return n=(n=n>100?100:n)<0?0:n},o._limitRange=function(e,t,n){n[0]=this._getRange(e,n[0]),n[1]=n[0]+t,n[1]>100&&(n[1]=100,n[0]=n[1]-t)},o._updateStatus=function(e,t){var n="x"===e?this.get("width"):this.get("height");e=r.upperFirst(e);var i,a=this.get("range"),o=this.get("page"+e),s=this.get("currentTarget"),c=this.get("rangeStash"),l="vertical"===this.get("layout")?-1:1,u=t["page"+e],h=(u-o)/n*100*l,f=this.get("minRange"),d=this.get("maxRange");a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),d&&a[1]-a[0]>=d&&this._limitRange(h,d,a)),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),d&&a[1]-a[0]>=d&&this._limitRange(h,d,a))),this._isElement(s,"middleHandleElement")&&(i=c[1]-c[0],this._limitRange(h,i,a)),this.emit("sliderchange",{range:a}),this.set("page"+e,u),this._renderUI(),this.get("canvas").draw()},o._onMouseDown=function(e){var t=e.currentTarget,n=e.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",t),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},o._bindCanvasEvents=function(){var e=this.get("canvas").get("containerDOM");this.onMouseMoveListener=a.addEventListener(e,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(e,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),// @2018-06-06 by blue.lb 添加mouseleave事件监听，让用户在操作出滑块区域后有一个“正常”的效果，可以正常重新触发滑块的操作流程
this.onMouseLeaveListener=a.addEventListener(e,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},o._onCanvasMouseMove=function(e){"horizontal"===this.get("layout")?this._updateStatus("x",e):this._updateStatus("y",e)},o._onCanvasMouseUp=function(){this._removeDocumentEvents()},o._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},i}(i);e.exports=o}
/******/])},e.exports=r()},
/***/dcbe:
/***/function(e,t,n){var r=n("30c9"),i=n("1310");
/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */e.exports=function(e){return i(e)&&r(e)}},
/***/dcc3:
/***/function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),a=n("5c6c"),o=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=i(r,{next:a(+!l,n)}),o(e,u,!1,!0),s[u]=c,e}},
/***/dce8:
/***/function(e,t,n){"use strict";var r=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();
/* harmony default export */t.a=r},
/***/dd40:
/***/function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);
// module.parent = undefined by default
t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t};
/***/},
/***/dd46:
/***/function(e,t,n){"use strict";
// B.2.3.2 String.prototype.anchor(name)
n("e681")("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},
/***/dd4f:
/***/function(e,t,n){"use strict";
/* unused harmony export DEFAULT_TSPAN_STYLE */
/* harmony import */var r=n("21a1"),i=n("19eb"),a=n("e86a"),o=n("cbe5"),s=n("6d8b"),c=n("726e"),l=Object(s.defaults)({strokeFirst:!0,font:c.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o.a),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Object(s.createObject)(l,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(a.d)(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(i.c);
/* harmony import */u.prototype.type="tspan",
/* harmony default export */t.a=u},
/***/dd7f:
/***/function(e,t,n){
/*!
 * 
 *   simple-keyboard v3.8.26
 *   https://github.com/hodgef/simple-keyboard
 *
 *   Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
 *
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 *
 */
e.exports=function(){"use strict";var e={9306:function(e,t,n){var r=n(4901),i=n(6823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},5548:function(e,t,n){var r=n(3517),i=n(6823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},3506:function(e,t,n){var r=n(3925),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},6469:function(e,t,n){var r=n(8227),i=n(2360),a=n(4913).f,o=r("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},7829:function(e,t,n){var r=n(8183).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},8551:function(e,t,n){var r=n(34),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},235:function(e,t,n){var r=n(9213).forEach,i=n(4598)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},7916:function(e,t,n){var r=n(6080),i=n(9565),a=n(8981),o=n(6319),s=n(4209),c=n(3517),l=n(6198),u=n(4659),h=n(81),f=n(851),d=Array;e.exports=function(e){var t=a(e),n=c(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,A,b,w,x,C=f(t),_=0;if(!C||this===d&&s(C))for(v=l(t),y=n?new this(v):d(v);v>_;_++)x=m?g(t[_],_):t[_],u(y,_,x);else for(y=n?new this:[],w=(b=h(t,C)).next;!(A=i(w,b)).done;_++)x=m?o(b,g,[A.value,_],!0):A.value,u(y,_,x);return y.length=_,y}},9617:function(e,t,n){var r=n(5397),i=n(5610),a=n(6198),o=function(e){return function(t,n,o){var s=r(t),c=a(s);if(0===c)return!e&&-1;var l,u=i(o,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9213:function(e,t,n){var r=n(6080),i=n(9504),a=n(7055),o=n(8981),s=n(6198),c=n(1469),l=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,g,m,v){for(var y,A,b=o(p),w=a(b),x=s(w),C=r(g,m),_=0,I=v||c,E=t?I(p,x):n||f?I(p,0):void 0;x>_;_++)if((d||_ in w)&&(A=C(y=w[_],_,b),e))if(t)E[_]=A;else if(A)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:l(E,y)}else switch(e){case 4:return!1;case 7:l(E,y)}return h?-1:i||u?u:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},597:function(e,t,n){var r=n(9039),i=n(8227),a=n(9519),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},4598:function(e,t,n){var r=n(9039);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},926:function(e,t,n){var r=n(9306),i=n(8981),a=n(7055),o=n(6198),s=TypeError,c="Reduce of empty array with no initial value",l=function(e){return function(t,n,l,u){var h=i(t),f=a(h),d=o(h);if(r(n),0===d&&l<2)throw new s(c);var p=e?d-1:0,g=e?-1:1;if(l<2)for(;;){if(p in f){u=f[p],p+=g;break}if(p+=g,e?p<0:d<=p)throw new s(c)}for(;e?p>=0:d>p;p+=g)p in f&&(u=n(u,f[p],p,h));return u}};e.exports={left:l(!1),right:l(!0)}},4527:function(e,t,n){var r=n(3724),i=n(4376),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!o(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,n){var r=n(9504);e.exports=r([].slice)},4488:function(e,t,n){var r=n(7680),i=Math.floor,a=function(e,t){var n=e.length;if(n<8)for(var o,s,c=1;c<n;){for(s=c,o=e[c];s&&t(e[s-1],o)>0;)e[s]=e[--s];s!==c++&&(e[s]=o)}else for(var l=i(n/2),u=a(r(e,0,l),t),h=a(r(e,l),t),f=u.length,d=h.length,p=0,g=0;p<f||g<d;)e[p+g]=p<f&&g<d?t(u[p],h[g])<=0?u[p++]:h[g++]:p<f?u[p++]:h[g++];return e};e.exports=a},7433:function(e,t,n){var r=n(4376),i=n(3517),a=n(34),o=n(8227)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},1469:function(e,t,n){var r=n(7433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6319:function(e,t,n){var r=n(8551),i=n(9539);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},4428:function(e,t,n){var r=n(8227)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},2195:function(e,t,n){var r=n(9504),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},6955:function(e,t,n){var r=n(2140),i=n(4901),a=n(2195),o=n(8227)("toStringTag"),s=Object,c="Arguments"===a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),o))?n:c?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},7740:function(e,t,n){var r=n(9297),i=n(5031),a=n(7347),o=n(4913);e.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var h=s[u];r(e,h)||n&&r(n,h)||c(e,h,l(t,h))}}},1436:function(e,t,n){var r=n(8227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},2211:function(e,t,n){var r=n(9039);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2529:function(e){e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,n){var r=n(3724),i=n(4913),a=n(6980);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},3640:function(e,t,n){var r=n(8551),i=n(4270),a=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new a("Incorrect hint");return i(this,e)}},2106:function(e,t,n){var r=n(283),i=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6840:function(e,t,n){var r=n(4901),i=n(4913),a=n(283),o=n(9433);e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},9433:function(e,t,n){var r=n(4576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4606:function(e,t,n){var r=n(6823),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},3724:function(e,t,n){var r=n(9039);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(e,t,n){var r=n(4576),i=n(34),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},6837:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7400:function(e){e.exports={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}},9296:function(e,t,n){var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},8727:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(e,t,n){var r=n(2839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},3763:function(e,t,n){var r=n(2839);e.exports=/MSIE|Trident/.test(r)},6193:function(e,t,n){var r=n(4215);e.exports="NODE"===r},2839:function(e,t,n){var r=n(4576).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},9519:function(e,t,n){var r,i,a=n(4576),o=n(2839),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},3607:function(e,t,n){var r=n(2839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},4215:function(e,t,n){var r=n(4576),i=n(2839),a=n(2195),o=function(e){return i.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},6518:function(e,t,n){var r=n(4576),i=n(7347).f,a=n(6699),o=n(6840),s=n(9433),c=n(7740),l=n(2796);e.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in t){if(f=t[u],h=e.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(n,u,f,e)}}},9039:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9228:function(e,t,n){n(7495);var r=n(9565),i=n(6840),a=n(7323),o=n(9039),s=n(8227),c=n(6699),l=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,h){var f=s(e),d=!o((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=d&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!p||n){var g=/./[f],m=t(f,""[e],(function(e,t,n,i,o){var s=t.exec;return s===a||s===u.exec?d&&!o?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(u,f,m[1])}h&&c(u[f],"sham",!0)}},8745:function(e,t,n){var r=n(616),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},6080:function(e,t,n){var r=n(7476),i=n(9306),a=n(616),o=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,n){var r=n(9039);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:function(e,t,n){var r=n(616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350:function(e,t,n){var r=n(3724),i=n(9297),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},6706:function(e,t,n){var r=n(9504),i=n(9306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},7476:function(e,t,n){var r=n(2195),i=n(9504);e.exports=function(e){if("Function"===r(e))return i(e)}},9504:function(e,t,n){var r=n(616),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},7751:function(e,t,n){var r=n(4576),i=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},851:function(e,t,n){var r=n(6955),i=n(5966),a=n(4117),o=n(6269),s=n(8227)("iterator");e.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},81:function(e,t,n){var r=n(9565),i=n(9306),a=n(8551),o=n(6823),s=n(851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+" is not iterable")}},6933:function(e,t,n){var r=n(9504),i=n(4376),a=n(4901),o=n(2195),s=n(655),c=r([].push);e.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!==o(l)&&"String"!==o(l)||c(n,s(l))}var u=n.length,h=!0;return function(e,t){if(h)return h=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},5966:function(e,t,n){var r=n(9306),i=n(4117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},2478:function(e,t,n){var r=n(9504),i=n(8981),a=Math.floor,o=r("".charAt),s=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,f){var d=n+e.length,p=r.length,g=u;return void 0!==h&&(h=i(h),g=l),s(f,g,(function(i,s){var l;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,d);case"<":l=h[c(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var f=a(u/10);return 0===f?i:f<=p?void 0===r[f-1]?o(s,1):r[f-1]+o(s,1):i}l=r[u-1]}return void 0===l?"":l}))}},4576:function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){var r=n(9504),i=n(8981),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},421:function(e){e.exports={}},397:function(e,t,n){var r=n(7751);e.exports=r("document","documentElement")},5917:function(e,t,n){var r=n(3724),i=n(9039),a=n(4055);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},7055:function(e,t,n){var r=n(9504),i=n(9039),a=n(2195),o=Object,s=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},3167:function(e,t,n){var r=n(4901),i=n(34),a=n(2967);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},3706:function(e,t,n){var r=n(9504),i=n(4901),a=n(7629),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},1181:function(e,t,n){var r,i,a,o=n(8622),s=n(4576),c=n(34),l=n(6699),u=n(9297),h=n(7629),f=n(6119),d=n(421),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(o||h.state){var v=h.state||(h.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new g(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var y=f("state");d[y]=!0,r=function(e,t){if(u(e,y))throw new g(p);return t.facade=e,l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},4209:function(e,t,n){var r=n(8227),i=n(6269),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},4376:function(e,t,n){var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4901:function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},3517:function(e,t,n){var r=n(9504),i=n(9039),a=n(4901),o=n(6955),s=n(7751),c=n(3706),l=function(){},u=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),d=!h.test(l),p=function(e){if(!a(e))return!1;try{return u(l,[],e),!0}catch(e){return!1}},g=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(h,c(e))}catch(e){return!0}};g.sham=!0,e.exports=!u||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},2796:function(e,t,n){var r=n(9039),i=n(4901),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u||n!==l&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},2087:function(e,t,n){var r=n(34),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},4117:function(e){e.exports=function(e){return null==e}},34:function(e,t,n){var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},3925:function(e,t,n){var r=n(34);e.exports=function(e){return r(e)||null===e}},6395:function(e){e.exports=!1},788:function(e,t,n){var r=n(34),i=n(2195),a=n(8227)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},757:function(e,t,n){var r=n(7751),i=n(4901),a=n(1625),o=n(7040),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},9539:function(e,t,n){var r=n(9565),i=n(8551),a=n(5966);e.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw n;if(s)throw o;return i(o),n}},3994:function(e,t,n){var r=n(7657).IteratorPrototype,i=n(2360),a=n(6980),o=n(687),s=n(6269),c=function(){return this};e.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=i(r,{next:a(+!l,n)}),o(e,u,!1,!0),s[u]=c,e}},1088:function(e,t,n){var r=n(6518),i=n(9565),a=n(6395),o=n(350),s=n(4901),c=n(3994),l=n(2787),u=n(2967),h=n(687),f=n(6699),d=n(6840),p=n(8227),g=n(6269),m=n(7657),v=o.PROPER,y=o.CONFIGURABLE,A=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",C="values",_="entries",I=function(){return this};e.exports=function(e,t,n,o,p,m,E){c(n,t,o);var k,S,B,M=function(e){if(e===p&&L)return L;if(!b&&e&&e in D)return D[e];switch(e){case x:case C:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",O=!1,D=e.prototype,P=D[w]||D["@@iterator"]||p&&D[p],L=!b&&P||M(p),Q="Array"===t&&D.entries||P;if(Q&&(k=l(Q.call(new e)))!==Object.prototype&&k.next&&(a||l(k)===A||(u?u(k,A):s(k[w])||d(k,w,I)),h(k,T,!0,!0),a&&(g[T]=I)),v&&p===C&&P&&P.name!==C&&(!a&&y?f(D,"name",C):(O=!0,L=function(){return i(P,this)})),p)if(S={values:M(C),keys:m?L:M(x),entries:M(_)},E)for(B in S)(b||O||!(B in D))&&d(D,B,S[B]);else r({target:t,proto:!0,forced:b||O},S);return a&&!E||D[w]===L||d(D,w,L,{name:p}),g[t]=L,S}},7657:function(e,t,n){var r,i,a,o=n(9039),s=n(4901),c=n(34),l=n(2360),u=n(2787),h=n(6840),f=n(8227),d=n(6395),p=f("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(r=i):g=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=l(r)),s(r[p])||h(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},6269:function(e){e.exports={}},6198:function(e,t,n){var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,n){var r=n(9504),i=n(9039),a=n(4901),o=n(9297),s=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),A=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===g(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return o(r,"source")||(r.source=v(A,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&f(this).source||l(this)}),"toString")},741:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5749:function(e,t,n){var r=n(788),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},4213:function(e,t,n){var r=n(3724),i=n(9504),a=n(9565),o=n(9039),s=n(1072),c=n(3717),l=n(8773),u=n(8981),h=n(7055),f=Object.assign,d=Object.defineProperty,p=i([].concat);e.exports=!f||o((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){for(var n=u(e),i=arguments.length,o=1,f=c.f,d=l.f;i>o;)for(var g,m=h(arguments[o++]),v=f?p(s(m),f(m)):s(m),y=v.length,A=0;y>A;)g=v[A++],r&&!a(d,m,g)||(n[g]=m[g]);return n}:f},2360:function(e,t,n){var r,i=n(8551),a=n(6801),o=n(8727),s=n(421),c=n(397),l=n(4055),u=n(6119),h="prototype",f="script",d=u("IE_PROTO"),p=function(){},g=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?m(r):(t=l("iframe"),n="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(r);for(var i=o.length;i--;)delete v[h][o[i]];return v()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=i(e),n=new p,p[h]=null,n[d]=e):n=v(),void 0===t?n:a.f(n,t)}},6801:function(e,t,n){var r=n(3724),i=n(8686),a=n(4913),o=n(8551),s=n(5397),c=n(1072);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=c(t),l=i.length,u=0;l>u;)a.f(e,n=i[u++],r[n]);return e}},4913:function(e,t,n){var r=n(3724),i=n(5917),a=n(8686),o=n(8551),s=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var r=u(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){var r=n(3724),i=n(9565),a=n(8773),o=n(6980),s=n(5397),c=n(6969),l=n(9297),u=n(5917),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=c(t),u)try{return h(e,t)}catch(e){}if(l(e,t))return o(!i(a.f,e,t),e[t])}},298:function(e,t,n){var r=n(2195),i=n(5397),a=n(8480).f,o=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return a(e)}catch(e){return o(s)}}(e):a(i(e))}},8480:function(e,t,n){var r=n(1828),i=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717:function(e,t){t.f=Object.getOwnPropertySymbols},2787:function(e,t,n){var r=n(9297),i=n(4901),a=n(8981),o=n(6119),s=n(2211),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},1625:function(e,t,n){var r=n(9504);e.exports=r({}.isPrototypeOf)},1828:function(e,t,n){var r=n(9504),i=n(9297),a=n(5397),o=n(9617).indexOf,s=n(421),c=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);for(;t.length>l;)i(r,n=t[l++])&&(~o(u,n)||c(u,n));return u}},1072:function(e,t,n){var r=n(1828),i=n(8727);e.exports=Object.keys||function(e){return r(e,i)}},8773:function(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2551:function(e,t,n){var r=n(6395),i=n(4576),a=n(9039),o=n(3607);e.exports=r||!a((function(){if(!(o&&o<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},2967:function(e,t,n){var r=n(6706),i=n(34),a=n(7750),o=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return a(n),o(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},3179:function(e,t,n){var r=n(2140),i=n(6955);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},4270:function(e,t,n){var r=n(9565),i=n(4901),a=n(34),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},5031:function(e,t,n){var r=n(7751),i=n(9504),a=n(8480),o=n(3717),s=n(8551),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},9167:function(e,t,n){var r=n(4576);e.exports=r},1056:function(e,t,n){var r=n(4913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},6682:function(e,t,n){var r=n(9565),i=n(8551),a=n(4901),o=n(2195),s=n(7323),c=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var l=r(n,e,t);return null!==l&&i(l),l}if("RegExp"===o(e))return r(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},7323:function(e,t,n){var r,i,a=n(9565),o=n(9504),s=n(655),c=n(7979),l=n(8429),u=n(5745),h=n(2360),f=n(1181).get,d=n(3635),p=n(8814),g=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,y=o("".charAt),A=o("".indexOf),b=o("".replace),w=o("".slice),x=(i=/b*/g,a(m,r=/a/,"a"),a(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),C=l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||C||d||p)&&(v=function(e){var t,n,r,i,o,l,u,d=this,p=f(d),I=s(e),E=p.raw;if(E)return E.lastIndex=d.lastIndex,t=a(v,E,I),d.lastIndex=E.lastIndex,t;var k=p.groups,S=C&&d.sticky,B=a(c,d),M=d.source,T=0,O=I;if(S&&(B=b(B,"y",""),-1===A(B,"g")&&(B+="g"),O=w(I,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(I,d.lastIndex-1))&&(M="(?: "+M+")",O=" "+O,T++),n=new RegExp("^(?:"+M+")",B)),_&&(n=new RegExp("^"+M+"$(?!\\s)",B)),x&&(r=d.lastIndex),i=a(m,S?n:d,O),S?i?(i.input=w(i.input,T),i[0]=w(i[0],T),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),_&&i&&i.length>1&&a(g,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&k)for(i.groups=l=h(null),o=0;o<k.length;o++)l[(u=k[o])[0]]=i[u[1]];return i}),e.exports=v},7979:function(e,t,n){var r=n(8551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1034:function(e,t,n){var r=n(9565),i=n(9297),a=n(1625),o=n(7979),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!a(s,e)?t:r(o,e)}},8429:function(e,t,n){var r=n(9039),i=n(4576).RegExp,a=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},3635:function(e,t,n){var r=n(9039),i=n(4576).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},8814:function(e,t,n){var r=n(9039),i=n(4576).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},7750:function(e,t,n){var r=n(4117),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},7633:function(e,t,n){var r=n(7751),i=n(2106),a=n(8227),o=n(3724),s=a("species");e.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},687:function(e,t,n){var r=n(4913).f,i=n(9297),a=n(8227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},6119:function(e,t,n){var r=n(5745),i=n(3392),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},7629:function(e,t,n){var r=n(6395),i=n(4576),a=n(9433),o="__core-js_shared__",s=e.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.40.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},2293:function(e,t,n){var r=n(8551),i=n(5548),a=n(4117),o=n(8227)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||a(n=r(s)[o])?t:i(n)}},8183:function(e,t,n){var r=n(9504),i=n(1291),a=n(655),o=n(7750),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,n){var r,u,h=a(o(t)),f=i(n),d=h.length;return f<0||f>=d?e?"":void 0:(r=c(h,f))<55296||r>56319||f+1===d||(u=c(h,f+1))<56320||u>57343?e?s(h,f):r:e?l(h,f,f+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},706:function(e,t,n){var r=n(350).PROPER,i=n(9039),a=n(7452);e.exports=function(e){return i((function(){return!!a[e]()||"​᠎"!=="​᠎"[e]()||r&&a[e].name!==e}))}},3802:function(e,t,n){var r=n(9504),i=n(7750),a=n(655),o=n(7452),s=r("".replace),c=RegExp("^["+o+"]+"),l=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var n=a(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},4495:function(e,t,n){var r=n(9519),i=n(9039),a=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8242:function(e,t,n){var r=n(9565),i=n(7751),a=n(8227),o=n(6840);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return r(n,this)}),{arity:1})}},1296:function(e,t,n){var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},1240:function(e,t,n){var r=n(9504);e.exports=r(1..valueOf)},5610:function(e,t,n){var r=n(1291),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},5397:function(e,t,n){var r=n(7055),i=n(7750);e.exports=function(e){return r(i(e))}},1291:function(e,t,n){var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8014:function(e,t,n){var r=n(1291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},8981:function(e,t,n){var r=n(7750),i=Object;e.exports=function(e){return i(r(e))}},2777:function(e,t,n){var r=n(9565),i=n(34),a=n(757),o=n(5966),s=n(4270),c=n(8227),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,c=o(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||a(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){var r=n(2777),i=n(757);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},2140:function(e,t,n){var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},655:function(e,t,n){var r=n(6955),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},6823:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3392:function(e,t,n){var r=n(9504),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},7040:function(e,t,n){var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){var r=n(3724),i=n(9039);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(e,t,n){var r=n(4576),i=n(4901),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},511:function(e,t,n){var r=n(9167),i=n(9297),a=n(1951),o=n(4913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},1951:function(e,t,n){var r=n(8227);t.f=r},8227:function(e,t,n){var r=n(4576),i=n(5745),a=n(9297),o=n(3392),s=n(4495),c=n(7040),l=r.Symbol,u=i("wks"),h=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:h("Symbol."+e)),u[e]}},7452:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},8706:function(e,t,n){var r=n(6518),i=n(9039),a=n(4376),o=n(34),s=n(8981),c=n(6198),l=n(6837),u=n(4659),h=n(1469),f=n(597),d=n(8227),p=n(9519),g=d("isConcatSpreadable"),m=p>=51||!i((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!f("concat")},{concat:function(e){var t,n,r,i,a,o=s(this),f=h(o,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(v(a=-1===t?o:arguments[t]))for(i=c(a),l(d+i),n=0;n<i;n++,d++)n in a&&u(f,d,a[n]);else l(d+1),u(f,d++,a);return f.length=d,f}})},2008:function(e,t,n){var r=n(6518),i=n(9213).filter;r({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},3418:function(e,t,n){var r=n(6518),i=n(7916);r({target:"Array",stat:!0,forced:!n(4428)((function(e){Array.from(e)}))},{from:i})},4423:function(e,t,n){var r=n(6518),i=n(9617).includes,a=n(9039),o=n(6469);r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},5276:function(e,t,n){var r=n(6518),i=n(7476),a=n(9617).indexOf,o=n(4598),s=i([].indexOf),c=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:c||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:a(this,e,t)}})},3792:function(e,t,n){var r=n(5397),i=n(6469),a=n(6269),o=n(1181),s=n(4913).f,c=n(1088),l=n(2529),u=n(6395),h=n(3724),f="Array Iterator",d=o.set,p=o.getterFor(f);e.exports=c(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var g=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!u&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(e){}},8598:function(e,t,n){var r=n(6518),i=n(9504),a=n(7055),o=n(5397),s=n(4598),c=i([].join);r({target:"Array",proto:!0,forced:a!==Object||!s("join",",")},{join:function(e){return c(o(this),void 0===e?",":e)}})},2062:function(e,t,n){var r=n(6518),i=n(9213).map;r({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},2712:function(e,t,n){var r=n(6518),i=n(926).left,a=n(4598),o=n(9519);r({target:"Array",proto:!0,forced:!n(6193)&&o>79&&o<83||!a("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},4782:function(e,t,n){var r=n(6518),i=n(4376),a=n(3517),o=n(34),s=n(5610),c=n(6198),l=n(5397),u=n(4659),h=n(8227),f=n(597),d=n(7680),p=f("slice"),g=h("species"),m=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,h,f=l(this),p=c(f),y=s(e,p),A=s(void 0===t?p:t,p);if(i(f)&&(n=f.constructor,(a(n)&&(n===m||i(n.prototype))||o(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return d(f,y,A);for(r=new(void 0===n?m:n)(v(A-y,0)),h=0;y<A;y++,h++)y in f&&u(r,h,f[y]);return r.length=h,r}})},6910:function(e,t,n){var r=n(6518),i=n(9504),a=n(9306),o=n(8981),s=n(6198),c=n(4606),l=n(655),u=n(9039),h=n(4488),f=n(4598),d=n(3709),p=n(3763),g=n(9519),m=n(3607),v=[],y=i(v.sort),A=i(v.push),b=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),x=f("sort"),C=!u((function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:b||!w||!x||!C},{sort:function(e){void 0!==e&&a(e);var t=o(this);if(C)return void 0===e?y(t):y(t,e);var n,r,i=[],u=s(t);for(r=0;r<u;r++)r in t&&A(i,t[r]);for(h(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}}(e)),n=s(i),r=0;r<n;)t[r]=i[r++];for(;r<u;)c(t,r++);return t}})},4554:function(e,t,n){var r=n(6518),i=n(8981),a=n(5610),o=n(1291),s=n(6198),c=n(4527),l=n(6837),u=n(1469),h=n(4659),f=n(4606),d=n(597)("splice"),p=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,r,d,m,v,y,A=i(this),b=s(A),w=a(e,b),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=b-w):(n=x-2,r=g(p(o(t),0),b-w)),l(b+n-r),d=u(A,r),m=0;m<r;m++)(v=w+m)in A&&h(d,m,A[v]);if(d.length=r,n<r){for(m=w;m<b-r;m++)y=m+n,(v=m+r)in A?A[y]=A[v]:f(A,y);for(m=b;m>b-r+n;m--)f(A,m-1)}else if(n>r)for(m=b-r;m>w;m--)y=m+n-1,(v=m+r-1)in A?A[y]=A[v]:f(A,y);for(m=0;m<n;m++)A[m+w]=arguments[m+2];return c(A,b-r+n),d}})},739:function(e,t,n){var r=n(6518),i=n(9039),a=n(8981),o=n(2777);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=a(this),n=o(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},9572:function(e,t,n){var r=n(9297),i=n(6840),a=n(3640),o=n(8227)("toPrimitive"),s=Date.prototype;r(s,o)||i(s,o,a)},2010:function(e,t,n){var r=n(3724),i=n(350).EXISTS,a=n(9504),o=n(2106),s=Function.prototype,c=a(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(l.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch(e){return""}}})},3110:function(e,t,n){var r=n(6518),i=n(7751),a=n(8745),o=n(9565),s=n(9504),c=n(9039),l=n(4901),u=n(757),h=n(7680),f=n(6933),d=n(4495),p=String,g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),A=s("".replace),b=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,_=!d||c((function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),I=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),E=function(e,t){var n=h(arguments),r=f(t);if(l(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(l(r)&&(t=o(r,this,p(e),t)),!u(t))return t},a(g,null,n)},k=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(x,e)&&!m(C,i)||m(C,e)&&!m(x,r)?"\\u"+b(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:_||I},{stringify:function(e,t,n){var r=h(arguments),i=a(_?E:g,null,r);return I&&"string"==typeof i?A(i,w,k):i}})},2892:function(e,t,n){var r=n(6518),i=n(6395),a=n(3724),o=n(4576),s=n(9167),c=n(9504),l=n(2796),u=n(9297),h=n(3167),f=n(1625),d=n(757),p=n(2777),g=n(9039),m=n(8480).f,v=n(7347).f,y=n(4913).f,A=n(1240),b=n(3802).trim,w="Number",x=o[w],C=s[w],_=x.prototype,I=o.TypeError,E=c("".slice),k=c("".charCodeAt),S=function(e){var t,n,r,i,a,o,s,c,l=p(e,"number");if(d(l))throw new I("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=b(l),43===(t=k(l,0))||45===t){if(88===(n=k(l,2))||120===n)return NaN}else if(48===t){switch(k(l,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(o=(a=E(l,2)).length,s=0;s<o;s++)if((c=k(a,s))<48||c>i)return NaN;return parseInt(a,r)}return+l},B=l(w,!x(" 0o1")||!x("0b1")||x("+0x1")),M=function(e){var t,n=arguments.length<1?0:x(function(e){var t=p(e,"number");return"bigint"==typeof t?t:S(t)}(e));return f(_,t=this)&&g((function(){A(t)}))?h(Object(n),this,M):n};M.prototype=_,B&&!i&&(_.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:B},{Number:M});var T=function(e,t){for(var n,r=a?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)u(t,n=r[i])&&!u(e,n)&&y(e,n,v(t,n))};i&&C&&T(s[w],C),(B||i)&&T(s[w],x)},2637:function(e,t,n){n(6518)({target:"Number",stat:!0},{isInteger:n(2087)})},9085:function(e,t,n){var r=n(6518),i=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},7427:function(e,t,n){var r=n(6518),i=n(3724),a=n(2551),o=n(9306),s=n(8981),c=n(4913);i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){c.f(s(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},3851:function(e,t,n){var r=n(6518),i=n(9039),a=n(5397),o=n(7347).f,s=n(3724);r({target:"Object",stat:!0,forced:!s||i((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},1278:function(e,t,n){var r=n(6518),i=n(3724),a=n(5031),o=n(5397),s=n(7347),c=n(4659);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),i=s.f,l=a(r),u={},h=0;l.length>h;)void 0!==(n=i(r,t=l[h++]))&&c(u,t,n);return u}})},1480:function(e,t,n){var r=n(6518),i=n(9039),a=n(298).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},9773:function(e,t,n){var r=n(6518),i=n(4495),a=n(9039),o=n(3717),s=n(8981);r({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},9432:function(e,t,n){var r=n(6518),i=n(8981),a=n(1072);r({target:"Object",stat:!0,forced:n(9039)((function(){a(1)}))},{keys:function(e){return a(i(e))}})},6099:function(e,t,n){var r=n(2140),i=n(6840),a=n(3179);r||i(Object.prototype,"toString",a,{unsafe:!0})},4864:function(e,t,n){var r=n(3724),i=n(4576),a=n(9504),o=n(2796),s=n(3167),c=n(6699),l=n(2360),u=n(8480).f,h=n(1625),f=n(788),d=n(655),p=n(1034),g=n(8429),m=n(1056),v=n(6840),y=n(9039),A=n(9297),b=n(1181).enforce,w=n(7633),x=n(8227),C=n(3635),_=n(8814),I=x("match"),E=i.RegExp,k=E.prototype,S=i.SyntaxError,B=a(k.exec),M=a("".charAt),T=a("".replace),O=a("".indexOf),D=a("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,Q=/a/g,R=new E(L)!==L,j=g.MISSED_STICKY,N=g.UNSUPPORTED_Y;if(o("RegExp",r&&(!R||j||C||_||y((function(){return Q[I]=!1,E(L)!==L||E(Q)===Q||"/a/i"!==String(E(L,"i"))}))))){for(var F=function(e,t){var n,r,i,a,o,u,g=h(k,this),m=f(e),v=void 0===t,y=[],w=e;if(!g&&m&&v&&e.constructor===F)return e;if((m||h(k,e))&&(e=e.source,v&&(t=p(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,C&&"dotAll"in L&&(r=!!t&&O(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,j&&"sticky"in L&&(i=!!t&&O(t,"y")>-1)&&N&&(t=T(t,/y/g,"")),_&&(a=function(e){for(var t,n=e.length,r=0,i="",a=[],o=l(null),s=!1,c=!1,u=0,h="";r<=n;r++){if("\\"===(t=M(e,r)))t+=M(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===D(e,r+1,r+3))continue;B(P,D(e,r+1))&&(r+=2,c=!0),u++;continue;case">"===t&&c:if(""===h||A(o,h))throw new S("Invalid capture group name");o[h]=!0,a[a.length]=[h,u],c=!1,h="";continue}c?h+=t:i+=t}return[i,a]}(e),e=a[0],y=a[1]),o=s(E(e,t),g?this:k,F),(r||i||y.length)&&(u=b(o),r&&(u.dotAll=!0,u.raw=F(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=M(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+M(e,++r);return i}(e),n)),i&&(u.sticky=!0),y.length&&(u.groups=y)),e!==w)try{c(o,"source",""===w?"(?:)":w)}catch(e){}return o},z=u(E),H=0;z.length>H;)m(F,E,z[H++]);k.constructor=F,F.prototype=k,v(i,"RegExp",F,{constructor:!0})}w("RegExp")},7495:function(e,t,n){var r=n(6518),i=n(7323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8781:function(e,t,n){var r=n(350).PROPER,i=n(6840),a=n(8551),o=n(655),s=n(9039),c=n(1034),l="toString",u=RegExp.prototype,h=u[l],f=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=r&&h.name!==l;(f||d)&&i(u,l,(function(){var e=a(this);return"/"+o(e.source)+"/"+o(c(e))}),{unsafe:!0})},1699:function(e,t,n){var r=n(6518),i=n(9504),a=n(5749),o=n(7750),s=n(655),c=n(1436),l=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},7764:function(e,t,n){var r=n(8183).charAt,i=n(655),a=n(1181),o=n(1088),s=n(2529),c="String Iterator",l=a.set,u=a.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:i(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},8543:function(e,t,n){var r=n(6518),i=n(9565),a=n(7476),o=n(3994),s=n(2529),c=n(7750),l=n(8014),u=n(655),h=n(8551),f=n(4117),d=n(2195),p=n(788),g=n(1034),m=n(5966),v=n(6840),y=n(9039),A=n(8227),b=n(2293),w=n(7829),x=n(6682),C=n(1181),_=n(6395),I=A("matchAll"),E="RegExp String",k=E+" Iterator",S=C.set,B=C.getterFor(k),M=RegExp.prototype,T=TypeError,O=a("".indexOf),D=a("".matchAll),P=!!D&&!y((function(){D("a",/./)})),L=o((function(e,t,n,r){S(this,{type:k,regexp:e,string:t,global:n,unicode:r,done:!1})}),E,(function(){var e=B(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=x(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===u(r[0])&&(t.lastIndex=w(n,l(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),Q=function(e){var t,n,r,i=h(this),a=u(e),o=b(i,RegExp),s=u(g(i));return t=new o(o===RegExp?i.source:i,s),n=!!~O(s,"g"),r=!!~O(s,"u"),t.lastIndex=l(i.lastIndex),new L(t,a,n,r)};r({target:"String",proto:!0,forced:P},{matchAll:function(e){var t,n,r,a,o=c(this);if(f(e)){if(P)return D(o,e)}else{if(p(e)&&(t=u(c(g(e))),!~O(t,"g")))throw new T("`.matchAll` does not allow non-global regexes");if(P)return D(o,e);if(void 0===(r=m(e,I))&&_&&"RegExp"===d(e)&&(r=Q),r)return i(r,e,o)}return n=u(o),a=new RegExp(e,"g"),_?i(Q,a,n):a[I](n)}}),_||I in M||v(M,I,Q)},1761:function(e,t,n){var r=n(9565),i=n(9228),a=n(8551),o=n(4117),s=n(8014),c=n(655),l=n(7750),u=n(5966),h=n(7829),f=n(6682);i("match",(function(e,t,n){return[function(t){var n=l(this),i=o(t)?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=a(this),i=c(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return f(r,i);var l=r.unicode;r.lastIndex=0;for(var u,d=[],p=0;null!==(u=f(r,i));){var g=c(u[0]);d[p]=g,""===g&&(r.lastIndex=h(i,s(r.lastIndex),l)),p++}return 0===p?null:d}]}))},5440:function(e,t,n){var r=n(8745),i=n(9565),a=n(9504),o=n(9228),s=n(9039),c=n(8551),l=n(4901),u=n(4117),h=n(1291),f=n(8014),d=n(655),p=n(7750),g=n(7829),m=n(5966),v=n(2478),y=n(6682),A=n(8227)("replace"),b=Math.max,w=Math.min,x=a([].concat),C=a([].push),_=a("".indexOf),I=a("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[A]&&""===/./[A]("a","$0");o("replace",(function(e,t,n){var a=k?"$":"$0";return[function(e,n){var r=p(this),a=u(e)?void 0:m(e,A);return a?i(a,e,r,n):i(t,d(r),e,n)},function(e,i){var o=c(this),s=d(e);if("string"==typeof i&&-1===_(i,a)&&-1===_(i,"$<")){var u=n(t,o,s,i);if(u.done)return u.value}var p=l(i);p||(i=d(i));var m,A=o.global;A&&(m=o.unicode,o.lastIndex=0);for(var E,k=[];null!==(E=y(o,s))&&(C(k,E),A);)""===d(E[0])&&(o.lastIndex=g(s,f(o.lastIndex),m));for(var S,B="",M=0,T=0;T<k.length;T++){for(var O,D=d((E=k[T])[0]),P=b(w(h(E.index),s.length),0),L=[],Q=1;Q<E.length;Q++)C(L,void 0===(S=E[Q])?S:String(S));var R=E.groups;if(p){var j=x([D],L,P,s);void 0!==R&&C(j,R),O=d(r(i,void 0,j))}else O=v(D,s,P,L,R,i);P>=M&&(B+=I(s,M,P)+O,M=P+D.length)}return B+I(s,M)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!E||k)},744:function(e,t,n){var r=n(9565),i=n(9504),a=n(9228),o=n(8551),s=n(4117),c=n(7750),l=n(2293),u=n(7829),h=n(8014),f=n(655),d=n(5966),p=n(6682),g=n(8429),m=n(9039),v=g.UNSUPPORTED_Y,y=Math.min,A=i([].push),b=i("".slice),w=!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;a("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var a=c(this),o=s(t)?void 0:d(t,e);return o?r(o,t,a,n):r(i,f(a),t,n)},function(e,r){var a=o(this),s=f(e);if(!x){var c=n(i,a,s,r,i!==t);if(c.done)return c.value}var d=l(a,RegExp),g=a.unicode,m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"g":"y"),w=new d(v?"^(?:"+a.source+")":a,m),C=void 0===r?4294967295:r>>>0;if(0===C)return[];if(0===s.length)return null===p(w,s)?[s]:[];for(var _=0,I=0,E=[];I<s.length;){w.lastIndex=v?0:I;var k,S=p(w,v?b(s,I):s);if(null===S||(k=y(h(w.lastIndex+(v?I:0)),s.length))===_)I=u(s,I,g);else{if(A(E,b(s,_,I)),E.length===C)return E;for(var B=1;B<=S.length-1;B++)if(A(E,S[B]),E.length===C)return E;I=_=k}}return A(E,b(s,_)),E}]}),x||!w,v)},2762:function(e,t,n){var r=n(6518),i=n(3802).trim;r({target:"String",proto:!0,forced:n(706)("trim")},{trim:function(){return i(this)}})},6761:function(e,t,n){var r=n(6518),i=n(4576),a=n(9565),o=n(9504),s=n(6395),c=n(3724),l=n(4495),u=n(9039),h=n(9297),f=n(1625),d=n(8551),p=n(5397),g=n(6969),m=n(655),v=n(6980),y=n(2360),A=n(1072),b=n(8480),w=n(298),x=n(3717),C=n(7347),_=n(4913),I=n(6801),E=n(8773),k=n(6840),S=n(2106),B=n(5745),M=n(6119),T=n(421),O=n(3392),D=n(8227),P=n(1951),L=n(511),Q=n(8242),R=n(687),j=n(1181),N=n(9213).forEach,F=M("hidden"),z="Symbol",H="prototype",U=j.set,G=j.getterFor(z),V=Object[H],W=i.Symbol,q=W&&W[H],Y=i.RangeError,K=i.TypeError,$=i.QObject,J=C.f,X=_.f,Z=w.f,ee=E.f,te=o([].push),ne=B("symbols"),re=B("op-symbols"),ie=B("wks"),ae=!$||!$[H]||!$[H].findChild,oe=function(e,t,n){var r=J(V,t);r&&delete V[t],X(e,t,n),r&&e!==V&&X(V,t,r)},se=c&&u((function(){return 7!==y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?oe:X,ce=function(e,t){var n=ne[e]=y(q);return U(n,{type:z,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===V&&le(re,t,n),d(e);var r=g(t);return d(n),h(ne,r)?(n.enumerable?(h(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(e,F)||X(e,F,v(1,y(null))),e[F][r]=!0),se(e,r,n)):X(e,r,n)},ue=function(e,t){d(e);var n=p(t),r=A(n).concat(pe(n));return N(r,(function(t){c&&!a(he,n,t)||le(e,t,n[t])})),e},he=function(e){var t=g(e),n=a(ee,this,t);return!(this===V&&h(ne,t)&&!h(re,t))&&(!(n||!h(this,t)||!h(ne,t)||h(this,F)&&this[F][t])||n)},fe=function(e,t){var n=p(e),r=g(t);if(n!==V||!h(ne,r)||h(re,r)){var i=J(n,r);return!i||!h(ne,r)||h(n,F)&&n[F][r]||(i.enumerable=!0),i}},de=function(e){var t=Z(p(e)),n=[];return N(t,(function(e){h(ne,e)||h(T,e)||te(n,e)})),n},pe=function(e){var t=e===V,n=Z(t?re:p(e)),r=[];return N(n,(function(e){!h(ne,e)||t&&!h(V,e)||te(r,ne[e])})),r};l||(W=function(){if(f(q,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=O(e),n=function(e){var r=void 0===this?i:this;r===V&&a(n,re,e),h(r,F)&&h(r[F],t)&&(r[F][t]=!1);var o=v(1,e);try{se(r,t,o)}catch(e){if(!(e instanceof Y))throw e;oe(r,t,o)}};return c&&ae&&se(V,t,{configurable:!0,set:n}),ce(t,e)},k(q=W[H],"toString",(function(){return G(this).tag})),k(W,"withoutSetter",(function(e){return ce(O(e),e)})),E.f=he,_.f=le,I.f=ue,C.f=fe,b.f=w.f=de,x.f=pe,P.f=function(e){return ce(D(e),e)},c&&(S(q,"description",{configurable:!0,get:function(){return G(this).description}}),s||k(V,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),N(A(ie),(function(e){L(e)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de}),Q(),R(W,z),T[F]=!0},9463:function(e,t,n){var r=n(6518),i=n(3724),a=n(4576),o=n(9504),s=n(9297),c=n(4901),l=n(1625),u=n(655),h=n(2106),f=n(7740),d=a.Symbol,p=d&&d.prototype;if(i&&c(d)&&(!("description"in p)||void 0!==d().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=l(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(g[t]=!0),t};f(m,d),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),y=o(p.valueOf),A=o(p.toString),b=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),x=o("".slice);h(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=A(e),n=v?x(t,7,-1):w(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},1510:function(e,t,n){var r=n(6518),i=n(7751),a=n(9297),o=n(655),s=n(5745),c=n(1296),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(a(l,t))return l[t];var n=i("Symbol")(t);return l[t]=n,u[n]=t,n}})},2259:function(e,t,n){n(511)("iterator")},2675:function(e,t,n){n(6761),n(1510),n(7812),n(3110),n(9773)},7812:function(e,t,n){var r=n(6518),i=n(9297),a=n(757),o=n(6823),s=n(5745),c=n(1296),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw new TypeError(o(e)+" is not a symbol");if(i(l,e))return l[e]}})},5700:function(e,t,n){var r=n(511),i=n(8242);r("toPrimitive"),i()},8344:function(e,t,n){n(8543)},3500:function(e,t,n){var r=n(4576),i=n(7400),a=n(9296),o=n(235),s=n(6699),c=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var l in i)i[l]&&c(r[l]&&r[l].prototype);c(a)},2953:function(e,t,n){var r=n(4576),i=n(7400),a=n(9296),o=n(3792),s=n(6699),c=n(687),l=n(8227)("iterator"),u=o.values,h=function(e,t){if(e){if(e[l]!==u)try{s(e,l,u)}catch(t){e[l]=u}if(c(e,t,!0),i[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(t){e[n]=o[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(a,"DOMTokenList")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}n.r(r),n.d(r,{SimpleKeyboard:function(){return O},default:function(){return D}}),n(5276),n(8598),n(4782),n(4554),n(2010),n(7427),n(6099),n(7495),n(8781),n(5440),n(744),n(2762),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var t="classList",n="prototype",r=e.Element[n],i=Object,a=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},c=function(e,t){if(""===t)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return o.call(e,t)},l=function(e){for(var t=a.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=l[n]=[],h=function(){return new l(this)};if(s[n]=Error[n],u.item=function(e){return this[e]||null},u.contains=function(e){return~c(this,e+"")},u.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{~c(this,e=t[n]+"")||(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,r=0,i=n.length,a=!1;do{for(t=c(this,e=n[r]+"");~t;)this.splice(t,1),a=!0,t=c(this,e)}while(++r<i);a&&this._updateClassName()},u.toggle=function(e,t){var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},u.replace=function(e,t){var n=c(e+"");~n&&(this.splice(n,1,t),this._updateClassName())},u.toString=function(){return this.join(" ")},i.defineProperty){var f={get:h,enumerable:!0,configurable:!0};try{i.defineProperty(r,t,f)}catch(e){void 0!==e.number&&-2146823252!==e.number||(f.enumerable=!1,i.defineProperty(r,t,f))}}else i[n].__defineGetter__&&r.__defineGetter__(t,h)}}(self),function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,r=arguments.length;for(n=0;n<r;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,t){var n=this.toString().split(" "),r=n.indexOf(e+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(t),this.add.apply(this,n.slice(1)))}),e=null}()),n(2675),n(9463),n(2259),n(5700),n(8706),n(2008),n(3418),n(4423),n(3792),n(2062),n(6910),n(739),n(9572),n(2892),n(9085),n(3851),n(1278),n(9432),n(4864),n(1699),n(7764),n(8344),n(3500),n(2953),n(2712),n(2637),n(1480),n(1761);var h=function(){return e=function e(t){var n=t.getOptions,r=t.getCaretPosition,i=t.getCaretPositionEnd,a=t.dispatch;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"getOptions",void 0),l(this,"getCaretPosition",void 0),l(this,"getCaretPositionEnd",void 0),l(this,"dispatch",void 0),l(this,"maxLengthReached",void 0),l(this,"isStandardButton",(function(e){return e&&!("{"===e[0]&&"}"===e[e.length-1])})),this.getOptions=n,this.getCaretPosition=r,this.getCaretPositionEnd=i,this.dispatch=a,e.bindMethods(e,this)},t=[{key:"getButtonType",value:function(e){return e.includes("{")&&e.includes("}")&&"{//}"!==e?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(e){var t=this.getButtonType(e),n=e.replace("{","").replace("}",""),r="";return"standardBtn"!==t&&(r=" hg-button-".concat(n)),"hg-".concat(t).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,t){return(t=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),t):t||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.getOptions(),o=[n,r,i],s=t;return("{bksp}"===e||"{backspace}"===e)&&s.length>0?s=this.removeAt.apply(this,[s].concat(o)):("{delete}"===e||"{forwarddelete}"===e)&&s.length>0?s=this.removeForwardsAt.apply(this,[s].concat(o)):"{space}"===e?s=this.addStringAt.apply(this,[s," "].concat(o)):"{tab}"!==e||"boolean"==typeof a.tabCharOnTab&&!1===a.tabCharOnTab?"{enter}"!==e&&"{numpadenter}"!==e||!a.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?s=this.addStringAt.apply(this,[s,e[e.length-2]].concat(o)):"{numpaddivide}"===e?s=this.addStringAt.apply(this,[s,"/"].concat(o)):"{numpadmultiply}"===e?s=this.addStringAt.apply(this,[s,"*"].concat(o)):"{numpadsubtract}"===e?s=this.addStringAt.apply(this,[s,"-"].concat(o)):"{numpadadd}"===e?s=this.addStringAt.apply(this,[s,"+"].concat(o)):"{numpaddecimal}"===e?s=this.addStringAt.apply(this,[s,"."].concat(o)):"{"===e||"}"===e?s=this.addStringAt.apply(this,[s,e].concat(o)):e.includes("{")||e.includes("}")||(s=this.addStringAt.apply(this,[s,e].concat(o))):s=this.addStringAt.apply(this,[s,"\n"].concat(o)):s=this.addStringAt.apply(this,[s,"\t"].concat(o)),a.debug,s}},{key:"updateCaretPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(e,t);this.dispatch((function(e){e.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),r=this.getCaretPosition();return null!=r&&(t?r>0&&(r-=e):r+=e),n.debug,r}},{key:"addStringAt",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[e.slice(0,r),t,e.slice(i)].join(""),this.isMaxLengthReached()||a&&this.updateCaretPos(t.length)):n=e+t,n}},{key:"removeAt",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return e;if(n===r){var a=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?e.substring(n-2,n).match(a)?(t=e.substr(0,n-2)+e.substr(n),i&&this.updateCaretPos(2,!0)):(t=e.substr(0,n-1)+e.substr(n),i&&this.updateCaretPos(1,!0)):e.slice(-2).match(a)?(t=e.slice(0,-2),i&&this.updateCaretPos(2,!0)):(t=e.slice(0,-1),i&&this.updateCaretPos(1,!0))}else t=e.slice(0,n)+e.slice(r),i&&this.dispatch((function(e){e.setCaretPosition(n)}));return t}},{key:"removeForwardsAt",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=e&&e.length&&null!==n?(n===r?t=e.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,n)+e.substr(n+2):e.substr(0,n)+e.substr(n+1):(t=e.slice(0,n)+e.slice(r),i&&this.dispatch((function(e){e.setCaretPosition(n)}))),t):e}},{key:"handleMaxLength",value:function(e,t){var n=this.getOptions(),r=n.maxLength,i=e[n.inputName||"default"],a=t.length-1>=r;if(t.length<=i.length)return!1;if(Number.isInteger(r))return n.debug,a?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===s(r)){var o=t.length-1>=r[n.inputName||"default"];return n.debug,o?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(e){return e?e.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(e,t){return t.length?e+t[0].toUpperCase()+t.slice(1):e})):""}},{key:"chunkArray",value:function(e,t){return i(Array(Math.ceil(e.length/t))).map((function(n,r){return e.slice(t*r,t+t*r)}))}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,t){var n=e,r=t.indexOf("‫");return r<e&&-1!=r&&n--,t.indexOf("‬")<e&&-1!=r&&n--,n<0?0:n}}],n=[{key:"bindMethods",value:function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}(Object.getOwnPropertyNames(e.prototype));try{for(r.s();!(n=r.n()).done;){var i=n.value;"constructor"===i||"bindMethods"===i||(t[i]=t[i].bind(t))}}catch(e){r.e(e)}finally{r.f()}}}],t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();l(h,"noop",(function(){}));var f=h;function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function g(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var v=function(){return e=function e(t){var n=this,r=t.dispatch,i=t.getOptions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"getOptions",void 0),g(this,"dispatch",void 0),g(this,"isModifierKey",(function(e){return e.altKey||e.ctrlKey||e.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.code||e.key||n.keyCodeToKey(null==e?void 0:e.keyCode))})),this.dispatch=r,this.getOptions=i,f.bindMethods(e,this)},t=[{key:"handleHighlightKeyDown",value:function(e){var t=this.getOptions();t.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(r){var i,a,o=r.getButtonElement(n),s=r.getButtonElement("{".concat(n,"}"));if(o)i=o,a=n;else{if(!s)return;i=s,a="{".concat(n,"}")}var c,l,u,h,f=function(e){e.style.background=t.physicalKeyboardHighlightBgColor||"#dadce4",e.style.color=t.physicalKeyboardHighlightTextColor||"black"};if(i)if(Array.isArray(i)){if(i.forEach((function(e){return f(e)})),t.physicalKeyboardHighlightPress)if(t.physicalKeyboardHighlightPressUsePointerEvents)null===(c=i[0])||void 0===c||null===(l=c.onpointerdown)||void 0===l||l.call(c,e);else if(t.physicalKeyboardHighlightPressUseClick){var d;null===(d=i[0])||void 0===d||d.click()}else r.handleButtonClicked(a,e)}else f(i),t.physicalKeyboardHighlightPress&&(t.physicalKeyboardHighlightPressUsePointerEvents?null===(u=i)||void 0===u||null===(h=u.onpointerdown)||void 0===h||h.call(u,e):t.physicalKeyboardHighlightPressUseClick?i.click():r.handleButtonClicked(a,e))}))}},{key:"handleHighlightKeyUp",value:function(e){var t=this.getOptions();t.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(r){var i,a,o,s=r.getButtonElement(n)||r.getButtonElement("{".concat(n,"}")),c=function(e){e.removeAttribute&&e.removeAttribute("style")};s&&(Array.isArray(s)?(s.forEach((function(e){return c(e)})),t.physicalKeyboardHighlightPressUsePointerEvents&&(null===(i=s[0])||void 0===i||null===(a=i.onpointerup)||void 0===a||a.call(i,e))):(c(s),t.physicalKeyboardHighlightPressUsePointerEvents&&(null==s||null===(o=s.onpointerup)||void 0===o||o.call(s,e))))}))}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var t,n="",r=e.code||e.key||this.keyCodeToKey(null==e?void 0:e.keyCode);return(n=null!=r&&r.includes("Numpad")||null!=r&&r.includes("Shift")||null!=r&&r.includes("Space")||null!=r&&r.includes("Backspace")||null!=r&&r.includes("Control")||null!=r&&r.includes("Alt")||null!=r&&r.includes("Meta")?e.code||"":e.key||this.keyCodeToKey(null==e?void 0:e.keyCode)||"").length>1?null===(t=n)||void 0===t?void 0:t.toLowerCase():n}},{key:"keyCodeToKey",value:function(e){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[e]||""}}],t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function b(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}var x=function(){return e=function e(t){var n=t.utilities,r=t.options;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,"utilities",void 0),b(this,"options",void 0),b(this,"candidateBoxElement",void 0),b(this,"pageIndex",0),b(this,"pageSize",void 0),this.utilities=n,this.options=r,f.bindMethods(e,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},t=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(e){var t=this,n=e.candidateValue,r=e.targetElement,i=e.onSelect;if(n&&n.length){var a=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:a,targetElement:r,pageIndex:this.pageIndex,nbPages:a.length,onItemSelected:function(e,n){i(e,n),t.destroy()}})}}},{key:"renderPage",value:function(e){var t,n=this,r=e.candidateListPages,i=e.targetElement,a=e.pageIndex,o=e.nbPages,s=e.onItemSelected;null===(t=this.candidateBoxElement)||void 0===t||t.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var c=document.createElement("ul");c.className="hg-candidate-box-list",r[a].forEach((function(e){var t,r=document.createElement("li"),i=function(){var e=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(e,"target",{value:r}),e};r.className="hg-candidate-box-list-item",r.innerHTML=(null===(t=n.options.display)||void 0===t?void 0:t[e])||e,n.options.useTouchEvents?r.ontouchstart=function(t){return s(e,t||i())}:r.onclick=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i();return s(e,t)},c.appendChild(r)}));var l=a>0,u=document.createElement("div");u.classList.add("hg-candidate-box-prev"),l&&u.classList.add("hg-candidate-box-btn-active");var h=function(){l&&n.renderPage({candidateListPages:r,targetElement:i,pageIndex:a-1,nbPages:o,onItemSelected:s})};this.options.useTouchEvents?u.ontouchstart=h:u.onclick=h,this.candidateBoxElement.appendChild(u),this.candidateBoxElement.appendChild(c);var f=a<o-1,d=document.createElement("div");d.classList.add("hg-candidate-box-next"),f&&d.classList.add("hg-candidate-box-btn-active");var p=function(){f&&n.renderPage({candidateListPages:r,targetElement:i,pageIndex:a+1,nbPages:o,onItemSelected:s})};this.options.useTouchEvents?d.ontouchstart=p:d.onclick=p,this.candidateBoxElement.appendChild(d),i.prepend(this.candidateBoxElement)}}],t&&A(e.prototype,t),n&&A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),C=x;function _(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function B(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}var T=function(){return e=function e(t,n){var r=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),B(this,"input",void 0),B(this,"options",void 0),B(this,"utilities",void 0),B(this,"caretPosition",void 0),B(this,"caretPositionEnd",void 0),B(this,"keyboardDOM",void 0),B(this,"keyboardPluginClasses",void 0),B(this,"keyboardDOMClass",void 0),B(this,"buttonElements",void 0),B(this,"currentInstanceName",void 0),B(this,"allKeyboardInstances",void 0),B(this,"keyboardInstanceNames",void 0),B(this,"isFirstKeyboardInstance",void 0),B(this,"physicalKeyboard",void 0),B(this,"modules",void 0),B(this,"activeButtonClass",void 0),B(this,"holdInteractionTimeout",void 0),B(this,"holdTimeout",void 0),B(this,"isMouseHold",void 0),B(this,"initialized",void 0),B(this,"candidateBox",void 0),B(this,"keyboardRowsDOM",void 0),B(this,"defaultName","default"),B(this,"activeInputElement",null),B(this,"handleParams",(function(e,t){var n,r,i;if("string"==typeof e)n=e.split(".").join(""),r=document.querySelector(".".concat(n)),i=t;else if(e instanceof HTMLDivElement){if(!e.className)throw new Error("KEYBOARD_DOM_CLASS_ERROR");n=e.className.split(" ")[0],r=e,i=t}else n="simple-keyboard",r=document.querySelector(".".concat(n)),i=e;return{keyboardDOMClass:n,keyboardDOM:r,options:i}})),B(this,"getOptions",(function(){return r.options})),B(this,"getCaretPosition",(function(){return r.caretPosition})),B(this,"getCaretPositionEnd",(function(){return r.caretPositionEnd})),B(this,"registerModule",(function(e,t){r.modules[e]||(r.modules[e]={}),t(r.modules[e])})),B(this,"getKeyboardClassString",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return[r.keyboardDOMClass].concat(t).filter((function(e){return!!e})).join(" ")})),"undefined"!=typeof window){var i=this.handleParams(t,n),a=i.keyboardDOMClass,o=i.keyboardDOM,s=i.options,c=void 0===s?{}:s;this.utilities=new f({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=o,this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},c),this.keyboardPluginClasses="",f.bindMethods(e,this);var l=this.options.inputName,u=void 0===l?this.defaultName:l;if(this.input={},this.input[u]="",this.keyboardDOMClass=a,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new v({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new C({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},t=[{key:"setCaretPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=t}},{key:"getInputCandidates",value:function(e){var t=this,n=this.options,r=n.layoutCandidates,i=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==E(r))return{};var a=Object.keys(r).filter((function(n){var r=e.substring(0,t.getCaretPositionEnd()||0)||e,a=new RegExp("".concat(t.utilities.escapeRegex(n),"$"),i?"g":"gi");return!!_(r.matchAll(a)).length}));if(a.length>1){var o=a.sort((function(e,t){return t.length-e.length}))[0];return{candidateKey:o,candidateValue:r[o]}}if(a.length){var s=a[0];return{candidateKey:s,candidateValue:r[s]}}return{}}},{key:"showCandidatesBox",value:function(e,t,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:t,targetElement:n,onSelect:function(t,n){var i=r.options,a=i.layoutCandidatesCaseSensitiveMatch,o=i.disableCandidateNormalization,s=i.enableLayoutCandidatesKeyPress,c=t;o||(c=t.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var l=r.getInput(r.options.inputName,!0),u=r.getCaretPositionEnd()||0,h=l.substring(0,u||0)||l,f=new RegExp("".concat(r.utilities.escapeRegex(e),"$"),a?"g":"gi"),d=h.replace(f,c),p=l.replace(h,d),g=d.length-h.length,m=(u||l.length)+g;m<0&&(m=0),r.setInput(p,r.options.inputName,!0),r.setCaretPosition(m),s&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(t,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,!0),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(e,t){var n=this.options,r=n.inputName,i=void 0===r?this.defaultName:r;if(n.debug,"{//}"!==e){this.input[i]||(this.input[i]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(e,this.input[i],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(e)&&this.activeInputElement&&this.input[i]&&this.input[i]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(e,t);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(e,t),this.input[i]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var o=this.utilities.getUpdatedInput(e,this.input[i],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(o,this.options.inputName,!0),this.options.debug,this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0),t),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),t),null!=t&&t.target&&this.options.enableLayoutCandidates){var s,c=this.getInputCandidates(a),l=c.candidateKey,u=c.candidateValue;l&&u?this.showCandidatesBox(l,u,this.keyboardDOM):null===(s=this.candidateBox)||void 0===s||s.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch((function(t){t.isMouseHold=e})):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,t){var n=this;t&&(this.options.preventMouseDownDefault&&t.preventDefault(),this.options.stopMouseDownPropagation&&t.stopPropagation(),t.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(n.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||"{delete}"===e||"{backspace}"===e||"{bksp}"===e||"{space}"===e||"{tab}"===e)||"{arrowright}"===e||"{arrowleft}"===e||"{arrowup}"===e||"{arrowdown}"===e)&&(n.options.debug,n.handleButtonHold(e)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(e,t){var n=this;t&&(this.options.preventMouseUpDefault&&t.preventDefault&&t.preventDefault(),this.options.stopMouseUpPropagation&&t.stopPropagation&&t.stopPropagation(),!(t.target===this.keyboardDOM||t.target&&this.keyboardDOM.contains(t.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(t.target===this.candidateBox.candidateBoxElement||t.target&&this.candidateBox.candidateBoxElement.contains(t.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(e){e.classList.remove(n.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(e,t)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var t=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){t.getMouseHold()?(t.handleButtonClicked(e),t.handleButtonHold(e)):clearTimeout(t.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch((function(t){t.replaceInput(e.input),t.setCaretPosition(e.caretPosition,e.caretPositionEnd)}))}},{key:"clearInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.options.syncInstanceInputs&&!t&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,t={};return Object.keys(this.input).forEach((function(n){t[n]=e.getInput(n,!0)})),t}},{key:"setInput",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[t]=e,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.changedOptions(e);this.options=Object.assign(this.options,e),t.length&&(this.options.debug,this.onSetOptions(t),this.render())}},{key:"changedOptions",value:function(e){var t=this;return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(t.options[n])}))}},{key:"onSetOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(e.includes("layoutCandidatesPageSize")||e.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new C({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(t){e(window.SimpleKeyboardInstances[t],t)}))}},{key:"addButtonTheme",value:function(e,t){var n=this;t&&e&&(e.split(" ").forEach((function(r){t.split(" ").forEach((function(t){n.options.buttonTheme||(n.options.buttonTheme=[]);var i=!1;n.options.buttonTheme.map((function(e){if(null!=e&&e.class.split(" ").includes(t)){i=!0;var n=e.buttons.split(" ");n.includes(r)||(i=!0,n.push(r),e.buttons=n.join(" "))}return e})),i||n.options.buttonTheme.push({class:t,buttons:e})}))})),this.render())}},{key:"removeButtonTheme",value:function(e,t){var n=this;if(!e&&!t)return this.options.buttonTheme=[],void this.render();e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach((function(e){var r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map((function(r,i){if(r&&t&&t.includes(r.class)||!t){var a,o,s=null===(a=r)||void 0===a?void 0:a.buttons.split(" ").filter((function(t){return t!==e}));r&&null!=s&&s.length?r.buttons=s.join(" "):(null===(o=n.options.buttonTheme)||void 0===o||o.splice(i,1),r=null)}return r}))})),this.render())}},{key:"getButtonElement",value:function(e){var t,n=this.buttonElements[e];return n&&(t=n.length>1?n:n[0]),t}},{key:"inputPatternIsValid",value:function(e){var t,n=this.options.inputPattern;if((t=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&e){var r=t.test(e);return this.options.debug,r}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug;var e=this.options.physicalKeyboardHighlightPreventDefault,t=void 0!==e&&e;document.addEventListener("keyup",this.handleKeyUp,t),document.addEventListener("keydown",this.handleKeyDown,t),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"handleSelect",value:function(e){this.caretEventHandler(e)}},{key:"handleSelectionChange",value:function(e){navigator.userAgent.includes("Firefox")||this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var t,n=this;e.target.tagName&&(t=e.target.tagName.toLowerCase()),this.dispatch((function(r){var i=e.target===r.keyboardDOM||e.target&&r.keyboardDOM.contains(e.target);if(n.options.syncInstanceInputs&&Array.isArray(e.path)&&(i=e.path.some((function(e){var t;return null==e||null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"data-skInstance")}))),("textarea"===t||"input"===t&&["text","search","url","tel","password"].includes(e.target.type))&&!r.options.disableCaretPositioning){var a=e.target.selectionStart,o=e.target.selectionEnd;r.options.rtl&&(a=r.utilities.getRtlOffset(a,r.getInput()),o=r.utilities.getRtlOffset(o,r.getInput())),r.setCaretPosition(a,o),r.activeInputElement=e.target,r.options.debug}else!r.options.disableCaretPositioning&&i||"selectionchange"===(null==e?void 0:e.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.options.debug)}))}},{key:"recurseButtons",value:function(e){var t=this;e&&Object.keys(this.buttonElements).forEach((function(n){return t.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug;var e=this.options.physicalKeyboardHighlightPreventDefault,t=void 0!==e&&e;document.removeEventListener("keyup",this.handleKeyUp,t),document.removeEventListener("keydown",this.handleKeyDown,t),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(e){e&&(e.onpointerdown=null,e.onpointerup=null,e.onpointercancel=null,e.ontouchstart=null,e.ontouchend=null,e.ontouchcancel=null,e.onclick=null,e.onmousedown=null,e.onmouseup=null,e.remove(),e=null)})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var t=this.options.buttonTheme,n=[];return Array.isArray(t)&&t.forEach((function(t){if(t&&t.class&&"string"==typeof t.class&&t.buttons&&"string"==typeof t.buttons){var r=t.class.split(" ");t.buttons.split(" ").includes(e)&&(n=[].concat(_(n),_(r)))}})),n}},{key:"setDOMButtonAttributes",value:function(e,t){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value&&n.buttons&&"string"==typeof n.buttons&&n.buttons.split(" ").includes(e)&&t(n.attribute,n.value)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){if(e.target.classList.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug)}},{key:"onInit",value:function(){this.options.debug,this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug,this.options.useTouchEvents&&this.options.debug}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(t){var n=new t(e);n.init&&n.init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,t){return!!this.modules[e]&&this.modules[e][t]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,t,n,r){var i=this,a=Array.from(e.children),o=0;return a.length&&n.forEach((function(n,s){var c=r[s];if(!(c&&c>n))return!1;var l=n-o,u=c-o,h=document.createElement("div");h.className+="hg-button-container";var f="".concat(i.options.layoutName,"-r").concat(t,"c").concat(s);h.setAttribute("data-skUID",f);var d=a.splice(l,u-l+1);o=u-l,d.forEach((function(e){return h.appendChild(e)})),a.splice(l,0,h),e.innerHTML="",a.forEach((function(t){return e.appendChild(t)})),i.options.debug})),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var t="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||!1,i=r?"hg-touch-events":"",a=this.options.useMouseEvents||!1,o=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,t,this.keyboardPluginClasses,i),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(t,n){var i=t.split(" ");e.options.excludeFromLayout&&e.options.excludeFromLayout[e.options.layoutName||e.defaultName]&&(i=i.filter((function(t){return e.options.excludeFromLayout&&!e.options.excludeFromLayout[e.options.layoutName||e.defaultName].includes(t)})));var s=document.createElement("div");s.className+="hg-row";var c=[],l=[];i.forEach((function(t,i){var u,h=!o&&"string"==typeof t&&t.length>1&&0===t.indexOf("["),f=!o&&"string"==typeof t&&t.length>1&&t.indexOf("]")===t.length-1;h&&(c.push(i),t=t.replace(/\[/g,"")),f&&(l.push(i),t=t.replace(/\]/g,""));var d=e.utilities.getButtonClass(t),p=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),g=e.options.useButtonTag?"button":"div",m=document.createElement(g);m.className+="hg-button ".concat(d),(u=m.classList).add.apply(u,_(e.getButtonThemeClasses(t))),e.setDOMButtonAttributes(t,(function(e,t){m.setAttribute(e,t)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||r||a?r?(m.ontouchstart=function(n){e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},m.ontouchend=function(n){e.handleButtonMouseUp(t,n)},m.ontouchcancel=function(n){e.handleButtonMouseUp(t,n)}):(m.onclick=function(n){e.setMouseHold(!1),"function"==typeof e.options.onKeyReleased||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(t,n)},m.onmousedown=function(n){("function"==typeof e.options.onKeyReleased||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},m.onmouseup=function(n){e.handleButtonMouseUp(t,n)}):(m.onpointerdown=function(n){e.handleButtonClicked(t,n),e.handleButtonMouseDown(t,n)},m.onpointerup=function(n){e.handleButtonMouseUp(t,n)},m.onpointercancel=function(n){e.handleButtonMouseUp(t,n)}),m.setAttribute("data-skBtn",t);var v="".concat(e.options.layoutName,"-r").concat(n,"b").concat(i);m.setAttribute("data-skBtnUID",v);var y=document.createElement("span");y.innerHTML=p,m.appendChild(y),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(m),s.appendChild(m)})),s=e.parseRowDOMContainers(s,n,c,l),e.keyboardRowsDOM.appendChild(s)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||a?r?(document.ontouchend=function(t){return e.handleButtonMouseUp(void 0,t)},document.ontouchcancel=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.ontouchstart=function(t){return e.handleKeyboardContainerMouseDown(t)}):r||(document.onmouseup=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.onmousedown=function(t){return e.handleKeyboardContainerMouseDown(t)}):(document.onpointerup=function(t){return e.handleButtonMouseUp(void 0,t)},this.keyboardDOM.onpointerdown=function(t){return e.handleKeyboardContainerMouseDown(t)}),this.onInit())}}],t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),O=T,D=O;return r}();
/***/},
/***/ddb0:
/***/function(e,t,n){"use strict";var r=n("cfe9"),i=n("fdbc"),a=n("785a"),o=n("e260"),s=n("9112"),c=n("d44e"),l=n("b622")("iterator"),u=o.values,h=function(e,t){if(e){
// some Chrome versions have non-configurable methods on DOMTokenList
if(e[l]!==u)try{s(e,l,u)}catch(t){e[l]=u}if(c(e,t,!0),i[t])for(var n in o)
// some Chrome versions have non-configurable methods on DOMTokenList
if(e[n]!==o[n])try{s(e,n,o[n])}catch(t){e[n]=o[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(a,"DOMTokenList")},
/***/ddc9:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("63bc"),i=n("26ee"),a=Object(r.a)(i.a,"Map");
/* harmony import */
/* harmony default export */t.a=a},
/***/dded:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("21a1"),i=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=null==t?.5:t,o.y=null==n?.5:n,o.r=null==r?.5:r,o.type="radial",o.global=a||!1,o}return Object(r.a)(t,e),t}(n("42e5").a);
/* harmony import */
/* harmony default export */t.a=i},
/***/de24:
/***/function(e,t,n){var r=n("de85")("wks"),i=n("5689"),a=n("93e0").Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},
/***/de85:
/***/function(e,t,n){var r=n("0ae2"),i=n("93e0"),a="__core-js_shared__",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("cee8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},
/***/deca:
/***/function(e,t,n){"use strict";
/* unused harmony export transitionStore */
/* harmony export (binding) */n.d(t,"a",(function(){return o})),
/* harmony export (binding) */n.d(t,"h",(function(){return c})),
/* harmony export (binding) */n.d(t,"c",(function(){return l})),
/* harmony export (binding) */n.d(t,"d",(function(){return u})),
/* harmony export (binding) */n.d(t,"e",(function(){return h})),
/* harmony export (binding) */n.d(t,"f",(function(){return d})),
/* harmony export (binding) */n.d(t,"g",(function(){return p})),
/* harmony export (binding) */n.d(t,"b",(function(){return g}));
/* harmony import */var r=n("6d8b"),i=n("e0d3"),a=Object(i.o)();
/* harmony import */
/**
 * Return null if animation is disabled.
 */
function o(e,t,n,
// Extra opts can override the option in animatable model.
i,
// TODO It's only for pictorial bar now.
a){var o;
// Check if there is global animation configuration from dataZoom/resize can override the config in option.
// If animation is enabled. Will use this animation config in payload.
// If animation is disabled. Just ignore it.
if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();o=s&&s.animation}var c="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,h=void 0;return i?(l=Object(r.retrieve2)(i.duration,200),u=Object(r.retrieve2)(i.easing,"cubicOut"),h=0):(l=t.getShallow(c?"animationDurationUpdate":"animationDuration"),u=t.getShallow(c?"animationEasingUpdate":"animationEasing"),h=t.getShallow(c?"animationDelayUpdate":"animationDelay")),
// animation from payload has highest priority.
o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(h=o.delay)),Object(r.isFunction)(h)&&(h=h(n,a)),Object(r.isFunction)(l)&&(l=l(n)),{duration:l||0,delay:h,easing:u}}return null}function s(e,t,n,i,a,s,c){var l,u=!1;Object(r.isFunction)(a)?(c=s,s=a,a=null):Object(r.isObject)(a)&&(s=a.cb,c=a.during,u=a.isFrom,l=a.removeOpt,a=a.dataIndex);var h="leave"===e;h||
// Must stop the remove animation.
t.stopAnimation("leave");var f=o(e,i,a,h?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:s,force:!!s||!!c,
// Set to final state in update/init animation.
// So the post processing based on the path shape can be done correctly.
setToFinal:!h,scope:e,during:c};u?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),
// If `isFrom`, the props is the "from" props.
!u&&t.attr(n),
// Call during at least once.
c&&c(1),s&&s()}
/**
 * Update graphic element properties with or without animation according to the
 * configuration in series.
 *
 * Caution: this method will stop previous animation.
 * So do not use this method to one element twice before
 * animation starts, unless you know what you are doing.
 * @example
 *     graphic.updateProps(el, {
 *         position: [100, 100]
 *     }, seriesModel, dataIndex, function () { console.log('Animation done!'); });
 *     // Or
 *     graphic.updateProps(el, {
 *         position: [100, 100]
 *     }, seriesModel, function () { console.log('Animation done!'); });
 */function c(e,t,
// TODO: TYPE AnimatableModel
n,r,i,a){s("update",e,t,n,r,i,a)}
/**
 * Init graphic element properties with or without animation according to the
 * configuration in series.
 *
 * Caution: this method will stop previous animation.
 * So do not use this method to one element twice before
 * animation starts, unless you know what you are doing.
 */function l(e,t,n,r,i,a){s("enter",e,t,n,r,i,a)}
/**
 * If element is removed.
 * It can determine if element is having remove animation.
 */function u(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}
/**
 * Remove graphic element
 */function h(e,t,n,r,i,a){
// Don't do remove animation twice.
u(e)||s("leave",e,t,n,r,i,a)}function f(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),h(e,{style:{opacity:0}},t,n,r)}function d(e,t,n){function r(){e.parent&&e.parent.remove(e)}
// Hide label and labelLine first
// TODO Also use fade out animation?
e.isGroup?e.traverse((function(e){e.isGroup||
// Can invoke doRemove multiple times.
f(e,t,n,r)})):f(e,t,n,r)}
/**
 * Save old style for style transition in universalTransition module.
 * It's used when element will be reused in each render.
 * For chart like map, heatmap, which will always create new element.
 * We don't need to save this because universalTransition can get old style from the old element
 */function p(e){a(e).oldStyle=e.style}function g(e){return a(e).oldStyle}
/***/},
/***/ded3:
/***/function(e,t,n){n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("0643"),n("2382"),n("4e3e"),n("159b");var r=n("9523");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/df59:
/***/function(e,t,n){"use strict";var r=n("f083"),i=n("cffc")(4);r(r.P+r.F*!n("55c7")([].every,!0),"Array",{
// 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
every:function(e/* , thisArg */){return i(this,e,arguments[1])}})},
/***/df75:
/***/function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
// eslint-disable-next-line es/no-object-keys -- safe
e.exports=Object.keys||function(e){return r(e,i)}},
/***/df7c:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
// backported and transplited with Babel, with backwards-compat fixes
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// resolves . and .. elements in a path array with directory names there
// must be no slashes, empty elements, or device names (c:\) in the array
// (so also no leading and trailing slashes - it does not distinguish
// relative and absolute paths)
function n(e,t){for(
// if the path tries to go above the root, `up` ends up > 0
var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}
// if the path is allowed to go above the root, restore leading ..s
if(t)for(;n--;n)e.unshift("..");return e}
// path.resolve([from ...], to)
// posix version
function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}
// String.prototype.substr - negative index don't work in IE8
t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();
// Skip empty and invalid entries
if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}
// At this point the path should be resolved to a full absolute path, but
// handle relative paths to be safe (might happen when process.cwd() fails)
// Normalize the path
return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},
// path.normalize(path)
// posix version
t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);
// Normalize the path
return(e=n(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},
// posix version
t.isAbsolute=function(e){return"/"===e.charAt(0)},
// posix version
t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},
// path.relative(from, to)
// posix version
t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var l=[];for(c=s;c<i.length;c++)l.push("..");return(l=l.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47/*/*/===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47/*/*/===(t=e.charCodeAt(a))){if(!i){r=a;break}}else
// We saw the first non-path separator
i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},
// Uses a mixed approach for backwards-compatibility, as ext behavior changed
// in new Node.js versions, so only basename() above is backported here
t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47/*/*/===e.charCodeAt(t)){
// If we reached a path separator that was not part of a set of path
// separators at the end of the string, stop now
if(!i){n=t+1;break}}else-1===r&&(
// We saw the first non-path separator, mark this as the end of our
// path component
i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47/*/*/!==s)-1===r&&(
// We saw the first non-path separator, mark this as the end of our
// extension
i=!1,r=o+1),46/*.*/===s?
// If this is our first dot, mark it as the start of our extension
-1===t?t=o:1!==a&&(a=1):-1!==t&&(
// We saw a non-dot and non-path separator before our dot, so we should
// have a good chance at having a non-empty extension
a=-1);else
// If we reached a path separator that was not part of a set of path
// separators at the end of the string, stop now
if(!i){n=o+1;break}}return-1===t||-1===r||
// We saw a non-dot character immediately before the dot
0===a||
// The (right-most) trimmed path component is exactly '..'
1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)};
/* WEBPACK VAR INJECTION */}).call(this,n("4362"))
/***/},
/***/df83:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.easeInOutBounce=t.easeOutBounce=t.easeInBounce=t.easeInOutElastic=t.easeOutElastic=t.easeInElastic=t.easeInOutBack=t.easeOutBack=t.easeInBack=t.easeInOutQuint=t.easeOutQuint=t.easeInQuint=t.easeInOutQuart=t.easeOutQuart=t.easeInQuart=t.easeInOutCubic=t.easeOutCubic=t.easeInCubic=t.easeInOutQuad=t.easeOutQuad=t.easeInQuad=t.easeInOutSine=t.easeOutSine=t.easeInSine=t.linear=void 0;var r=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];
/**
 * @description Sine
 */t.linear=r;var i=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];t.easeInSine=i;var a=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];t.easeOutSine=a;var o=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];
/**
 * @description Quad
 */t.easeInOutSine=o;var s=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];t.easeInQuad=s;var c=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];t.easeOutQuad=c;var l=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];
/**
 * @description Cubic
 */t.easeInOutQuad=l;var u=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];t.easeInCubic=u;var h=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];t.easeOutCubic=h;var f=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];
/**
 * @description Quart
 */t.easeInOutCubic=f;var d=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];t.easeInQuart=d;var p=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];t.easeOutQuart=p;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];
/**
 * @description Quint
 */t.easeInOutQuart=g;var m=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];t.easeInQuint=m;var v=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];t.easeOutQuint=v;var y=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];
/**
 * @description Back
 */t.easeInOutQuint=y;var A=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];t.easeInBack=A;var b=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];t.easeOutBack=b;var w=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];
/**
 * @description Elastic
 */t.easeInOutBack=w;var x=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];t.easeInElastic=x;var C=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];t.easeOutElastic=C;var _=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];
/**
 * @description Bounce
 */t.easeInOutElastic=_;var I=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];t.easeInBounce=I;var E=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];t.easeOutBounce=E;var k=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];t.easeInOutBounce=k;var S=new Map([["linear",r],["easeInSine",i],["easeOutSine",a],["easeInOutSine",o],["easeInQuad",s],["easeOutQuad",c],["easeInOutQuad",l],["easeInCubic",u],["easeOutCubic",h],["easeInOutCubic",f],["easeInQuart",d],["easeOutQuart",p],["easeInOutQuart",g],["easeInQuint",m],["easeOutQuint",v],["easeInOutQuint",y],["easeInBack",A],["easeOutBack",b],["easeInOutBack",w],["easeInElastic",x],["easeOutElastic",C],["easeInOutElastic",_],["easeInBounce",I],["easeOutBounce",E],["easeInOutBounce",k]]);t.default=S},
/***/dfa4:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/dfd1:
/***/function(e,t,n){
// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
var r=n("2761"),i=n("f083"),a=n("d77f"),o=n("019f");
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
i(i.S+i.F*n("f937")((function(){
// eslint-disable-next-line no-undef
Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){a(e),t=o(t,!0),a(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},
/***/dfdf:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */function r(e){return e.directive("decorator",{})}
/* harmony default export */n.d(t,"a",(function(){return r})),t.b={
// just for tag
install:function(e){r(e)}}},
/***/dfe5:
/***/function(e,t){
/***/},
/***/dff1:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){/* harmony import */var r=n("26ee"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;
/** Detect free variable `exports`. */
/* harmony default export */t.a=
/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n("dd40")(e))
/***/},
/***/dffd:
/***/function(e,t,n){
/* eslint-disable no-bitwise, no-mixed-operators, no-use-before-define, max-len */
const{BigInteger:r,SecureRandom:i}=n("e0c8"),{ECCurveFp:a}=n("4701"),o=new i,{curve:s,G:c,n:l}=u()
/**
 * 获取公共椭圆曲线
 */;
/**
 * 生成ecparam
 */
function u(){
// 椭圆曲线
const e=new r("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new r("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new r("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),i=new a(e,t,n),o=i.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:i,G:o,n:new r("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}
/**
 * 生成密钥对：publicKey = privateKey * G
 */
/**
 * 补全16进制字符串
 */
function h(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}
/**
 * 转成16进制串
 */e.exports={getGlobalCurve:function(){return s},generateEcparam:u,generateKeyPairHex:function(e,t,n){const i=(e?new r(e,t,n):new r(l.bitLength(),o)).mod(l.subtract(r.ONE)).add(r.ONE),a=h(i.toString(16),64),s=c.multiply(i);return{privateKey:a,publicKey:"04"+h(s.getX().toBigInteger().toString(16),64)+h(s.getY().toBigInteger().toString(16),64)}}
/**
 * 生成压缩公钥
 */,compressPublicKeyHex:function(e){if(130!==e.length)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,n=e.substr(2,t);let i="03";return new r(e.substr(t+2,t),16).mod(new r("2")).equals(r.ZERO)&&(i="02"),i+n}
/**
 * utf8串转16进制串
 */,utf8ToHex:function(e){const t=(e=unescape(encodeURIComponent(e))).length,n=[];
// 转换到字数组
for(let r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;
// 转换到16进制
const r=[];for(let e=0;e<t;e++){const t=n[e>>>2]>>>24-e%4*8&255;r.push((t>>>4).toString(16)),r.push((15&t).toString(16))}return r.join("")},leftPad:h,arrayToHex:function(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}
/**
 * 转成utf8串
 */,arrayToUtf8:function(e){const t=[];let n=0;for(let r=0;r<2*e.length;r+=2)t[r>>>3]|=parseInt(e[n],10)<<24-r%8*4,n++;try{const n=[];for(let r=0;r<e.length;r++){const e=t[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(e))}return decodeURIComponent(escape(n.join("")))}catch(e){throw new Error("Malformed UTF-8 data")}}
/**
 * 转成字节数组
 */,hexToArray:function(e){const t=[];let n=e.length;n%2!=0&&(e=h(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}
/**
 * 验证公钥是否为椭圆曲线上的点
 */,verifyPublicKey:function(e){const t=s.decodePointHex(e);if(!t)return!1;const n=t.getX();
// 验证 y^2 是否等于 x^3 + ax + b
return t.getY().square().equals(n.multiply(n.square()).add(n.multiply(s.a)).add(s.b))}
/**
 * 验证公钥是否等价，等价返回true
 */,comparePublicKeyHex:function(e,t){const n=s.decodePointHex(e);if(!n)return!1;const r=s.decodePointHex(t);return!!r&&n.equals(r)}}
/***/},
/***/e01a:
/***/function(e,t,n){"use strict";
// `Symbol.prototype.description` getter
// https://tc39.es/ecma262/#sec-symbol.prototype.description
var r=n("23e7"),i=n("83ab"),a=n("cfe9"),o=n("e330"),s=n("1a2d"),c=n("1626"),l=n("3a9b"),u=n("577e"),h=n("edd0"),f=n("e893"),d=a.Symbol,p=d&&d.prototype;if(i&&c(d)&&(!("description"in p)||
// Safari 12 bug
void 0!==d().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=l(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(g[t]=!0),t};
// wrap Symbol constructor for correct work with undefined description
f(m,d),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),y=o(p.valueOf),A=o(p.toString),b=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),x=o("".slice);h(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=A(e),n=v?x(t,7,-1):w(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}
/***/},
/***/e03f:
/***/function(e,t,n){
// 20.2.2.5 Math.asinh(x)
var r=n("f083"),i=Math.asinh;
// Tor Browser bug: Math.asinh(0) -> -0
r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},
/***/e056:
/***/function(e,t,n){"use strict";var r,i,a=n("66ac"),o=RegExp.prototype.exec,s=String.prototype.replace,c=o,l="lastIndex",u=(r=/a/,i=/b*/g,o.call(r,"a"),o.call(i,"a"),0!==r[l]||0!==i[l]),h=void 0!==/()??/.exec("")[1];(u||h)&&(c=function(e){var t,n,r,i,c=this;return h&&(n=new RegExp("^"+c.source+"$(?!\\s)",a.call(c))),u&&(t=c[l]),r=o.call(c,e),u&&r&&(c[l]=c.global?r.index+r[0].length:t),h&&r&&r.length>1&&
// Fix browsers whose `exec` methods don't consistently return `undefined`
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
// eslint-disable-next-line no-loop-func
s.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=c},
/***/e065:
/***/function(e,t,n){"use strict";var r=n("428f"),i=n("1a2d"),a=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},
/***/e0c8:
/***/function(e,t,n){(function(){
// Copyright (c) 2005  Tom Wu
// All Rights Reserved.
// See "LICENSE" for details.
// Basic JavaScript BN library - subset useful for RSA encryption.
// Bits per digit
var t;
// JavaScript engine analysis
// (public) Constructor
function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}
// return new, unset BigInteger
function r(){return new n(null)}
// am: Compute w_j += (x*this_i), propagate carries,
// c is initial carry, returns final carry.
// c < 3*dvalue, x < 2*dvalue, this_i < dvalue
// We need to select the fastest one that works in this environment.
// am1: use a single mult and divide to get the high bits,
// max digit bits should be 26 because
// max internal value = 2*dvalue^2-2*dvalue (< 2^53)
var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=
// am2 avoids a big mult-and-extract completely.
// Max digit bits should be <= 30 because we do bitwise ops
// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)
function(e,t,n,r,i,a){for(var o=32767&t,s=t>>15;--a>=0;){var c=32767&this[e],l=this[e++]>>15,u=s*c+l*o;i=((c=o*c+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*l+(i>>>30),n[r++]=1073741823&c}return i}
// Alternately, set max digit bits to 28 since some
// browsers slow down when dealing with 32-bit numbers.
,t=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,i,a){for(;--a>=0;){var o=t*this[e++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},t=26):(// Mozilla/Netscape seems to prefer am3
n.prototype.am=function(e,t,n,r,i,a){for(var o=16383&t,s=t>>14;--a>=0;){var c=16383&this[e],l=this[e++]>>14,u=s*c+l*o;i=((c=o*c+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*l,n[r++]=268435455&c}return i},t=28),n.prototype.DB=t,n.prototype.DM=(1<<t)-1,n.prototype.DV=1<<t;n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-t,n.prototype.F2=2*t-52;
// Digit conversions
var a,o,s=new Array;for(a="0".charCodeAt(0),o=0;o<=9;++o)s[a++]=o;for(a="a".charCodeAt(0),o=10;o<36;++o)s[a++]=o;for(a="A".charCodeAt(0),o=10;o<36;++o)s[a++]=o;function c(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function l(e,t){var n=s[e.charCodeAt(t)];return null==n?-1:n}
// (protected) copy this to r
// return bigint initialized to value
function u(e){var t=r();return t.fromInt(e),t}
// (protected) set from string and radix
// returns bit length of the integer x
function h(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}
// (public) return the number of bits in "this"
// Modular reduction using "classic" algorithm
function f(e){this.m=e}
// Montgomery reduction
function d(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}
// xR mod m
// (public) this & a
function p(e,t){return e&t}
// (public) this | a
function g(e,t){return e|t}
// (public) this ^ a
function m(e,t){return e^t}
// (public) this & ~a
function v(e,t){return e&~t}
// return index of lowest 1-bit in x, x < 2^31
function y(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}
// (public) returns index of lowest 1-bit (or -1 if none)
// return number of 1 bits in x
function A(e){for(var t=0;0!=e;)e&=e-1,++t;return t}
// (public) return number of set bits
// A "null" reducer
function b(){}function w(e){return e}
// Barrett modular reduction
function x(e){
// setup Barrett
this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}f.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},f.prototype.revert=function(e){return e},f.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},f.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},f.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},d.prototype.convert=function(e){var t=r();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t}
// x/R mod m
,d.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t}
// x = x/R mod m (HAC 14.32)
,d.prototype.reduce=function(e){for(;e.t<=this.mt2;)// pad x so am has enough room later
e[e.t++]=0;for(var t=0;t<this.m.t;++t){
// faster way of calculating u0 = x[i]*mp mod DV
var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;
// propagate carry
for(e[
// use am to combine the multiply-shift-add into one call
n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}
// r = "x^2/R mod m"; x != r
,d.prototype.mulTo=
// r = "xy/R mod m"; x,y != r
function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},
// protected
n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}
// (protected) set from integer value x, -DV <= x < DV
,n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;// byte array
else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&e[i]:l(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&e[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&n.ZERO.subTo(this,this)}
// (protected) clamp off excess high words
,n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}
// (public) return string representation in given radix
,n.prototype.dlShiftTo=
// (protected) r = this << n*DB
function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}
// (protected) r = this >> n*DB
,n.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}
// (protected) r = this << n
,n.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>i|s,s=(this[n]&a)<<r;for(n=o-1;n>=0;--n)t[n]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()}
// (protected) r = this >> n
,n.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)t[o-n-1]|=(this[o]&a)<<i,t[o-n]=this[o]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<i),t.t=this.t-n,t.clamp()}}
// (protected) r = this - a
,n.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}
// (protected) r = this * a, r != this,a (HAC 14.12)
// "this" should be the larger one if appropriate.
,n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),a=r.t;for(t.t=a+i.t;--a>=0;)t[a]=0;for(a=0;a<i.t;++a)t[a+r.t]=r.am(0,i[a],t,a,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)}
// (protected) r = this^2, r != this (HAC 14.16)
,n.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}
// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)
// r != q, this != m.  q or r may be null.
,n.prototype.divRemTo=function(e,t,i){var a=e.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=r());var s=r(),c=this.s,l=e.s,u=this.DB-h(a[a.t-1]);// normalize modulus
u>0?(a.lShiftTo(u,s),o.lShiftTo(u,i)):(a.copyTo(s),o.copyTo(i));var f=s.t,d=s[f-1];if(0!=d){var p=d*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/p,m=(1<<this.F1)/p,v=1<<this.F2,y=i.t,A=y-f,b=null==t?r():t;// "negative" y so we can replace sub with am later
for(s.dlShiftTo(A,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),n.ONE.dlShiftTo(f,b),b.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--A>=0;){
// Estimate quotient digit
var w=i[--y]==d?this.DM:Math.floor(i[y]*g+(i[y-1]+v)*m);if((i[y]+=s.am(0,w,i,A,0,f))<w)for(// Try it out
s.dlShiftTo(A,b),i.subTo(b,i);i[y]<--w;)i.subTo(b,i)}null!=t&&(i.drShiftTo(f,t),c!=l&&n.ZERO.subTo(t,t)),i.t=f,i.clamp(),u>0&&i.rShiftTo(u,i),// Denormalize remainder
c<0&&n.ZERO.subTo(i,i)}}}
// (public) this mod a
,n.prototype.invDigit=
// (protected) return "-1/this % 2^DB"; useful for Mont. reduction
// justification:
//         xy == 1 (mod m)
//         xy =  1+km
//   xy(2-xy) = (1+km)(1-km)
// x[y(2-xy)] = 1-k^2m^2
// x[y(2-xy)] == 1 (mod m^2)
// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2
// should reduce x and y(2-xy) by m^2 at each step to keep size bounded.
// JS multiply "overflows" differently from C/C++, so care is needed here.
function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;// y == 1/x mod 2^2
// y == 1/x mod 2^dbits
// we really want the negative inverse, and -DV < y < DV
// y == 1/x mod 2^16
// last step - calculate inverse mod DV directly;
// assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints
return(t=(// y == 1/x mod 2^8
t=(// y == 1/x mod 2^4
t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=
// (protected) true iff this is even
function(){return 0==(this.t>0?1&this[0]:this.s)}
// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79)
,n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var i=r(),a=r(),o=t.convert(this),s=h(e)-1;for(o.copyTo(i);--s>=0;)if(t.sqrTo(i,a),(e&1<<s)>0)t.mulTo(a,o,i);else{var c=i;i=a,a=c}return t.revert(i)}
// (public) this^e % m, 0 <= e < 2^32
,
// public
n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=c(n));o>=0;)s<t?(n=(this[o]&(1<<s)-1)<<t-s,n|=this[--o]>>(s+=this.DB-t)):(n=this[o]>>(s-=t)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=c(n));return i?a:"0"}
// (public) -this
,n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e}
// (public) |this|
,n.prototype.abs=function(){return this.s<0?this.negate():this}
// (public) return + if this > a, - if this < a, 0 if equal
,n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=r();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new f(t):new d(t),this.exp(e,n)},
// "constants"
n.ZERO=u(0),n.ONE=u(1),b.prototype.convert=w,b.prototype.revert=w,b.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},b.prototype.sqrTo=function(e,t){e.squareTo(t)},x.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=r();return e.copyTo(t),this.reduce(t),t},x.prototype.revert=function(e){return e}
// x = x mod m (HAC 14.42)
,x.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}
// r = x^2 mod m; x != r
,x.prototype.mulTo=
// r = x*y mod m; x,y != r
function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var C,_,I,E=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],k=(1<<26)/E[E.length-1];
// Mix in the current time (w/milliseconds) into the pool
function S(){
// Mix in a 32-bit integer into the pool
var e;e=(new Date).getTime(),_[I++]^=255&e,_[I++]^=e>>8&255,_[I++]^=e>>16&255,_[I++]^=e>>24&255,I>=L&&(I-=L)}
// Initialize the pool with junk if needed.
if(
// protected
n.prototype.chunkSize=
// (protected) return x s.t. r^x < DV
function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}
// (public) 0 if this == 0, 1 if this > 0
,n.prototype.toRadix=
// (protected) convert to radix string
function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=u(n),a=r(),o=r(),s="";for(this.divRemTo(i,a,o);a.signum()>0;)s=(n+o.intValue()).toString(e).substr(1)+s,a.divRemTo(i,a,o);return o.intValue().toString(e)+s}
// (protected) convert from radix string
,n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),a=!1,o=0,s=0,c=0;c<e.length;++c){var u=l(e,c);u<0?"-"==e.charAt(c)&&0==this.signum()&&(a=!0):(s=t*s+u,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),a&&n.ZERO.subTo(this,this)}
// (protected) alternate constructor
,n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)
// new BigInteger(int,int,RNG)
if(e<2)this.fromInt(1);else// force odd
for(this.fromNumber(e,r),this.testBit(e-1)||// force MSB set
this.bitwiseTo(n.ONE.shiftLeft(e-1),g,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{
// new BigInteger(int,RNG)
var i=new Array,a=7&e;i.length=1+(e>>3),t.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}}
// (public) convert to bigendian byte array
,n.prototype.bitwiseTo=
// (protected) r = this op a (bitwise)
function(e,t,n){var r,i,a=Math.min(e.t,this.t);for(r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},n.prototype.changeBit=
// (protected) this op (1<<n)
function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r}
// (public) this | (1<<n)
,n.prototype.addTo=
// (protected) r = this + a
function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}
// (public) this + a
,n.prototype.dMultiply=
// (protected) this *= n, this >= 0, 1 < n < DV
function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}
// (protected) this += n << w words, this >= 0
,n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=
// (protected) r = lower n words of "this * a", a.t <= n
// "this" should be the larger one if appropriate.
function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,// assumes a,this >= 0
n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()}
// (protected) r = "this * a" without lower n words, n > 0
// "this" should be the larger one if appropriate.
,n.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;// assumes a,this >= 0
for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},n.prototype.modInt=
// (protected) this % n, n < 2^26
function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}
// (public) 1/this % m (HAC 14.61)
,n.prototype.millerRabin=
// (protected) true if probably prime (HAC 4.24, Miller-Rabin)
function(e){var t=this.subtract(n.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var a=t.shiftRight(i);(e=e+1>>1)>E.length&&(e=E.length);for(var o=r(),s=0;s<e;++s){
//Pick bases at random, instead of starting at 2
o.fromInt(E[Math.floor(Math.random()*E.length)]);var c=o.modPow(a,this);if(0!=c.compareTo(n.ONE)&&0!=c.compareTo(t)){for(var l=1;l++<i&&0!=c.compareTo(t);)if(0==(c=c.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=c.compareTo(t))return!1}}return!0},
// public
n.prototype.clone=
// Copyright (c) 2005-2009  Tom Wu
// All Rights Reserved.
// See "LICENSE" for details.
// Extended JavaScript BN functions, required for RSA private ops.
// Version 1.1: new BigInteger("0", 10) returns "proper" zero
// Version 1.2: square() API, isProbablePrime fix
// (public)
function(){var e=r();return this.copyTo(e),e}
// (public) return value as integer
,n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];
// assumes 16 < DB < 32
if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}
// (public) return value as byte
,n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24}
// (public) return value as short (assumes DB>=16)
,n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=r();return this.bitwiseTo(e,p,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,g,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,v,t),t}
// (public) ~this
,n.prototype.not=function(){for(var e=r(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}
// (public) this << n
,n.prototype.shiftLeft=function(e){var t=r();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}
// (public) this >> n
,n.prototype.shiftRight=function(e){var t=r();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+y(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=A(this[n]^t);return e}
// (public) true iff nth bit is set
,n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,g)}
// (public) this & ~(1<<n)
,n.prototype.clearBit=function(e){return this.changeBit(e,v)}
// (public) this ^ (1<<n)
,n.prototype.flipBit=function(e){return this.changeBit(e,m)},n.prototype.add=function(e){var t=r();return this.addTo(e,t),t}
// (public) this - a
,n.prototype.subtract=function(e){var t=r();return this.subTo(e,t),t}
// (public) this * a
,n.prototype.multiply=function(e){var t=r();return this.multiplyTo(e,t),t}
// (public) this^2
,n.prototype.divide=
// (public) this / a
function(e){var t=r();return this.divRemTo(e,t,null),t}
// (public) this % a
,n.prototype.remainder=function(e){var t=r();return this.divRemTo(e,null,t),t}
// (public) [this/a,this%a]
,n.prototype.divideAndRemainder=function(e){var t=r(),n=r();return this.divRemTo(e,t,n),new Array(t,n)},n.prototype.modPow=
// (public) this^e % m (HAC 14.85)
function(e,t){var n,i,a=e.bitLength(),o=u(1);if(a<=0)return o;n=a<18?1:a<48?3:a<144?4:a<768?5:6,i=a<8?new f(t):t.isEven()?new x(t):new d(t);
// precomputation
var s=new Array,c=3,l=n-1,p=(1<<n)-1;if(s[1]=i.convert(this),n>1){var g=r();for(i.sqrTo(s[1],g);c<=p;)s[c]=r(),i.mulTo(g,s[c-2],s[c]),c+=2}var m,v,y=e.t-1,A=!0,b=r();for(a=h(e[y])-1;y>=0;){for(a>=l?m=e[y]>>a-l&p:(m=(e[y]&(1<<a+1)-1)<<l-a,y>0&&(m|=e[y-1]>>this.DB+a-l)),c=n;!(1&m);)m>>=1,--c;if((a-=c)<0&&(a+=this.DB,--y),A)// ret == 1, don't bother squaring or multiplying it
s[m].copyTo(o),A=!1;else{for(;c>1;)i.sqrTo(o,b),i.sqrTo(b,o),c-=2;c>0?i.sqrTo(o,b):(v=o,o=b,b=v),i.mulTo(b,s[m],o)}for(;y>=0&&!(e[y]&1<<a);)i.sqrTo(o,b),v=o,o=b,b=v,--a<0&&(a=this.DB-1,--y)}return i.revert(o)}
// (public) gcd(this,a) (HAC 14.54)
,n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return n.ZERO;for(var r=e.clone(),i=this.clone(),a=u(1),o=u(0),s=u(0),c=u(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),t?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(e,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),t&&a.subTo(s,a),o.subTo(c,o)):(i.subTo(r,i),t&&s.subTo(a,s),c.subTo(o,c))}return 0!=i.compareTo(n.ONE)?n.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},n.prototype.pow=
// (public) this^e
function(e){return this.exp(e,new b)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;for(i<a&&(a=i),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},n.prototype.isProbablePrime=
// (public) test primality with certainty >= 1-.5^t
function(e){var t,n=this.abs();if(1==n.t&&n[0]<=E[E.length-1]){for(t=0;t<E.length;++t)if(n[0]==E[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<E.length;){for(var r=E[t],i=t+1;i<E.length&&r<k;)r*=E[i++];for(r=n.modInt(r);t<i;)if(r%E[t++]==0)return!1}return n.millerRabin(e)},
// JSBN-specific extension
n.prototype.square=function(){var e=r();return this.squareTo(e),e},
// Expose the Barrett function
n.prototype.Barrett=x,null==_){var B;if(_=new Array,I=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){
// Use webcrypto if available
var M=new Uint8Array(32);for(window.crypto.getRandomValues(M),B=0;B<32;++B)_[I++]=M[B]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){
// Extract entropy (256 bits) from NS4 RNG if available
var T=window.crypto.random(32);for(B=0;B<T.length;++B)_[I++]=255&T.charCodeAt(B)}for(;I<L;)// extract some randomness from Math.random()
B=Math.floor(65536*Math.random()),_[I++]=B>>>8,_[I++]=255&B;I=0,S()}function O(){if(null==C){for(S(),(C=new P).init(_),I=0;I<_.length;++I)_[I]=0;I=0}
// TODO: allow reseeding after first request
return C.next()}function D(){}
// prng4.js - uses Arcfour as a PRNG
function P(){this.i=0,this.j=0,this.S=new Array}
// Initialize arcfour context from key, an array of ints, each from [0..255]
D.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=O()},P.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},P.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};
// Pool size must be a multiple of 4 and greater than 32.
// An array of bytes the size of the pool will be passed to init()
var L=256;e.exports={default:n,BigInteger:n,SecureRandom:D}}).call(this);
/***/},
/***/e0d3:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"r",(function(){return l})),
/* harmony export (binding) */n.d(t,"f",(function(){return u})),
/* harmony export (binding) */n.d(t,"c",(function(){return h})),
/* harmony export (binding) */n.d(t,"h",(function(){return f})),
/* harmony export (binding) */n.d(t,"m",(function(){return d})),
/* harmony export (binding) */n.d(t,"q",(function(){return p})),
/* harmony export (binding) */n.d(t,"e",(function(){return v})),
/* harmony export (binding) */n.d(t,"n",(function(){return y})),
/* harmony export (binding) */n.d(t,"l",(function(){return A})),
/* harmony export (binding) */n.d(t,"p",(function(){return b})),
/* harmony export (binding) */n.d(t,"x",(function(){return w})),
/* harmony export (binding) */n.d(t,"d",(function(){return x})),
/* harmony export (binding) */n.d(t,"u",(function(){return C})),
/* harmony export (binding) */n.d(t,"o",(function(){return _})),
/* harmony export (binding) */n.d(t,"s",(function(){return E})),
/* harmony export (binding) */n.d(t,"t",(function(){return k})),
/* harmony export (binding) */n.d(t,"b",(function(){return S})),
/* harmony export (binding) */n.d(t,"a",(function(){return B})),
/* harmony export (binding) */n.d(t,"v",(function(){return M})),
/* harmony export (binding) */n.d(t,"w",(function(){return T})),
/* harmony export (binding) */n.d(t,"g",(function(){return O})),
/* harmony export (binding) */n.d(t,"i",(function(){return D})),
/* harmony export (binding) */n.d(t,"j",(function(){return P})),
/* harmony export (binding) */n.d(t,"k",(function(){return L}));
/* harmony import */var r=n("6d8b"),i=n("22d1"),a=n("3842");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function o(e,t,n){return(t-e)*n+e}
/**
 * Make the name displayable. But we should
 * make sure it is not duplicated with user
 * specified name, so use '\0';
 */var s="series\0",c="\0_ec_\0";
/**
 * If value is not array, then translate it to array.
 * @param  {*} value
 * @return {Array} [value] or value
 */
function l(e){return e instanceof Array?e:null==e?[]:[e]}
/**
 * Sync default option between normal and emphasis like `position` and `show`
 * In case some one will write code like
 *     label: {
 *          show: false,
 *          position: 'outside',
 *          fontSize: 18
 *     },
 *     emphasis: {
 *          label: { show: true }
 *     }
 */function u(e,t,n){
// Caution: performance sensitive.
if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};
// Default emphasis option from normal
for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];
// modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([
//     'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',
//     'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',
//     // FIXME: deprecated, check and remove it.
//     'textStyle'
// ]);
/**
 * The method does not ensure performance.
 * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
 * This helper method retrieves value from data.
 */function f(e){return!Object(r.isObject)(e)||Object(r.isArray)(e)||e instanceof Date?e:e.value}
/**
 * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
 * This helper method determine if dataItem has extra option besides value
 */function d(e){return Object(r.isObject)(e)&&!(e instanceof Array);
// // markLine data can be array
// && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));
}
/**
 * Mapping to existings for merge.
 *
 * Mode "normalMege":
 *     The mapping result (merge result) will keep the order of the existing
 *     component, rather than the order of new option. Because we should ensure
 *     some specified index reference (like xAxisIndex) keep work.
 *     And in most cases, "merge option" is used to update partial option but not
 *     be expected to change the order.
 *
 * Mode "replaceMege":
 *     (1) Only the id mapped components will be merged.
 *     (2) Other existing components (except internal components) will be removed.
 *     (3) Other new options will be used to create new component.
 *     (4) The index of the existing components will not be modified.
 *     That means their might be "hole" after the removal.
 *     The new components are created first at those available index.
 *
 * Mode "replaceAll":
 *     This mode try to support that reproduce an echarts instance from another
 *     echarts instance (via `getOption`) in some simple cases.
 *     In this scenario, the `result` index are exactly the consistent with the `newCmptOptions`,
 *     which ensures the component index referring (like `xAxisIndex: ?`) corrent. That is,
 *     the "hole" in `newCmptOptions` will also be kept.
 *     On the contrary, other modes try best to eliminate holes.
 *     PENDING: This is an experimental mode yet.
 *
 * @return See the comment of <MappingResult>.
 */
function p(e,t,n){var i="normalMerge"===n,a="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var c=Object(r.createHashMap)();
// Validate id and name on user input option.
Object(r.each)(t,(function(e,n){Object(r.isObject)(e)||(t[n]=null)}));var l,u,h=function(e,t,n){var r=[];if("replaceAll"===n)return r;
// Do not use native `map` to in case that the array `existings`
// contains elided items, which will be omitted.
for(var i=0;i<e.length;i++){var a=e[i];
// Because of replaceMerge, `existing` may be null/undefined.
a&&null!=a.id&&t.set(a.id,i),
// For non-internal-componnets:
//     Mode "normalMerge": all existings kept.
//     Mode "replaceMerge": all existing removed unless mapped by id.
// For internal-components:
//     go with "replaceMerge" approach in both mode.
r.push({existing:"replaceMerge"===n||A(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(e,c,n);
// The array `result` MUST NOT contain elided items, otherwise the
// forEach will omit those items and result in incorrect result.
return(i||a)&&function(e,t,n,i){
// Mapping by id if specified.
Object(r.each)(i,(function(a,o){if(a&&null!=a.id){var s=m(a.id),c=n.get(s);if(null!=c){var l=e[c];Object(r.assert)(!l.newOption,'Duplicated option on id "'+s+'".'),l.newOption=a,
// In both mode, if id matched, new option will be merged to
// the existings rather than creating new component model.
l.existing=t[c],i[o]=null}}}))}(h,e,c,t),i&&function(e,t){
// Mapping by name if specified.
Object(r.each)(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(null==a.id||null==n.id)&&!A(n)&&!A(a)&&g("name",a,n))return e[i].newOption=n,void(t[r]=null)}}))}(h,t),i||a?function(e,t,n){Object(r.each)(t,(function(t){if(t){for(
// Find the first place that not mapped by id and not internal component (consider the "hole").
var r,i=0;
// Be `!resultItem` only when `nextIdx >= result.length`.
(r=e[i])&&(r.newOption||A(r.existing)||
// In mode "replaceMerge", here no not-mapped-non-internal-existing.
r.existing&&null!=t.id&&!g("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}(h,t,a):o&&function(e,t){Object(r.each)(t,(function(t){
// The feature "reproduce" requires "hole" will also reproduced
// in case that component index referring are broken.
e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}
/**
 * Make id and name for mapping result (result of mappingToExists)
 * into `keyInfo` field.
 */(h,t),l=h,u=Object(r.createHashMap)(),Object(r.each)(l,(function(e){var t=e.existing;t&&u.set(t.id,e)})),Object(r.each)(l,(function(e){var t=e.newOption;
// Force ensure id not duplicated.
Object(r.assert)(!t||null==t.id||!u.get(t.id)||u.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&u.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),
// Make name and id.
Object(r.each)(l,(function(e,t){var n=e.existing,i=e.newOption,a=e.keyInfo;if(Object(r.isObject)(i)){if(
// Name can be overwritten. Consider case: axis.name = '20km'.
// But id generated by name will not be changed, which affect
// only in that case: setOption with 'not merge mode' and view
// instance will be recreated, which can be accepted.
a.name=null!=i.name?m(i.name):n?n.name:s+t,n)a.id=m(n.id);else if(null!=i.id)a.id=m(i.id);else{
// Consider this situatoin:
//  optionA: [{name: 'a'}, {name: 'a'}, {..}]
//  optionB [{..}, {name: 'a'}, {name: 'a'}]
// Series with the same name between optionA and optionB
// should be mapped.
var o=0;do{a.id="\0"+a.name+"\0"+o++}while(u.get(a.id))}u.set(a.id,e)}})),h}function g(e,t,n){var r=v(t[e],null),i=v(n[e],null);
// See `MappingExistingItem`. `id` and `name` trade string equals to number.
return null!=r&&null!=i&&r===i}
/**
 * @return return null if not exist.
 */function m(e){return v(e,"")}function v(e,t){return null==e?t:Object(r.isString)(e)?e:Object(r.isNumber)(e)||Object(r.isStringSafe)(e)?e+"":t}function y(e){var t=e.name;
// Is specified when `indexOf` get -1 or > 0.
return!(!t||!t.indexOf(s))}
/**
 * @public
 * @param {Object} cmptOption
 * @return {boolean}
 */function A(e){return e&&null!=e.id&&0===m(e.id).indexOf(c)}function b(e){return c+e}function w(e,t,n){
// Set mainType and complete subType.
Object(r.each)(e,(function(e){var i=e.newOption;Object(r.isObject)(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);
// tooltip, markline, markpoint may always has no subType
return i}
/**
 * A helper for removing duplicate items between batchA and batchB,
 * and in themselves, and categorize by series.
 *
 * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
 * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
 * @return result: [resultBatchA, resultBatchB]
 */(t,i,e.existing,n))}))}function x(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=v(e[r].seriesId,null);if(null==a)return;for(var o=l(e[r].dataIndex),s=n&&n[a],c=0,u=o.length;c<u;c++){var h=o[c];s&&s[h]?s[h]=null:(t[a]||(t[a]={}))[h]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}
/**
 * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name
 *                         each of which can be Array or primary type.
 * @return dataIndex If not found, return undefined/null.
 */function C(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(r.isArray)(t.dataIndex)?Object(r.map)(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(r.isArray)(t.name)?Object(r.map)(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}
/**
 * Enable property storage to any host object.
 * Notice: Serialization is not supported.
 *
 * For example:
 * let inner = zrUitl.makeInner();
 *
 * function some1(hostObj) {
 *      inner(hostObj).someProperty = 1212;
 *      ...
 * }
 * function some2() {
 *      let fields = inner(this);
 *      fields.someProperty1 = 1212;
 *      fields.someProperty2 = 'xx';
 *      ...
 * }
 *
 * @return {Function}
 */function _(){var e="__ec_inner_"+I++;return function(t){return t[e]||(t[e]={})}}var I=Object(a.j)();
/**
 * The same behavior as `component.getReferringComponents`.
 */function E(e,t,n){var r=k(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each((function(t,r){var i=M(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]})),o}function k(e,t){var n;if(Object(r.isString)(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var a=Object(r.createHashMap)(),o={},s=!1;return Object(r.each)(n,(function(e,n){
// Exclude 'dataIndex' and other illgal keys.
if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],c=i[1],l=(i[2]||"").toLowerCase();if(c&&l&&!(t&&t.includeMainTypes&&Object(r.indexOf)(t.includeMainTypes,c)<0))s=s||!!c,(a.get(c)||a.set(c,{}))[l]=e}else o[n]=e})),{mainTypeSpecified:s,queryOptionMap:a,others:o}}var S={useDefault:!0,enableAll:!1,enableNone:!1},B={useDefault:!1,enableAll:!0,enableNone:!0};function M(e,t,n,i){i=i||S;var a=n.index,o=n.id,s=n.name,c={models:null,specified:null!=a||null!=o||null!=s};if(!c.specified){
// Use the first as default if `useDefault`.
var l=void 0;return c.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],c}return"none"===a||!1===a?(Object(r.assert)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),c.models=[],c):(
// `queryComponents` will return all components if
// both all of index/id/name are null/undefined.
"all"===a&&(Object(r.assert)(i.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),c.models=e.queryComponents({mainType:t,index:a,id:o,name:s}),c)}function T(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function O(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function D(e){return"auto"===e?i.a.domSupported?"html":"richText":e||"html"}
/**
 * Group a list by key.
 */function P(e,t){var n=Object(r.createHashMap)(),i=[];return Object(r.each)(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}
/**
 * Interpolate raw values of a series with percent
 *
 * @param data         data
 * @param labelModel   label model of the text element
 * @param sourceValue  start value. May be null/undefined when init.
 * @param targetValue  end value
 * @param percent      0~1 percentage; 0 uses start value while 1 uses end value
 * @return             interpolated values
 *                     If `sourceValue` and `targetValue` are `number`, return `number`.
 *                     If `sourceValue` and `targetValue` are `string`, return `string`.
 *                     If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`.
 *                     Other cases do not supported.
 */function L(e,t,n,i,s){var c=null==t||"auto"===t;if(null==i)return i;if(Object(r.isNumber)(i)){var l=o(n||0,i,s);return Object(a.w)(l,c?Math.max(Object(a.h)(n||0),Object(a.h)(i)):t)}if(Object(r.isString)(i))return s<1?n:i;for(var u=[],h=n,f=i,d=Math.max(h?h.length:0,f.length),p=0;p<d;++p){var g=e.getDimensionInfo(p);
// Don't interpolate ordinal dims
if(g&&"ordinal"===g.type)
// In init, there is no `sourceValue`, but should better not to get undefined result.
u[p]=(s<1&&h?h:f)[p];else{var m=h&&h[p]?h[p]:0,v=f[p];l=o(m,v,s);u[p]=Object(a.w)(l,c?Math.max(Object(a.h)(m),Object(a.h)(v)):t)}}return u}
/***/},
/***/e0d8:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("625e"),i=/** @class */function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},
/**
   * Set extent from data
   */
e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},
/**
   * Set extent from data
   */
e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},
/**
   * Get extent
   *
   * Extent is always in increase order.
   */
e.prototype.getExtent=function(){return this._extent.slice()},
/**
   * Set extent
   */
e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},
/**
   * If value is in extent range
   */
e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},
/**
   * When axis extent depends on data and no data exists,
   * axis ticks should not be drawn, which is named 'blank'.
   */
e.prototype.isBlank=function(){return this._isBlank},
/**
   * When axis extent depends on data and no data exists,
   * axis ticks should not be drawn, which is named 'blank'.
   */
e.prototype.setBlank=function(e){this._isBlank=e},e}();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/r.c(i),
/* harmony default export */t.a=i},
/***/e0e7:
/***/function(e,t,n){var r=n("60ed");
/**
 * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
 * objects.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {string} key The key of the property to inspect.
 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
 */e.exports=function(e){return r(e)?void 0:e}},
/***/e11e:
/***/function(e,t,n){
/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */
!function(e){"use strict";var t="1.9.4";
/*
   * @namespace Util
   *
   * Various utility functions, used by Leaflet internally.
   */
// @function extend(dest: Object, src?: Object): Object
// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.
function n(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}
// @function create(proto: Object, properties?: Object): Object
// Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)
var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();
// @function bind(fn: Function, …): Function
// Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
// Has a `L.bind()` shortcut.
function i(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}
// @property lastId: Number
// Last unique ID used by [`stamp()`](#util-stamp)
var a=0;
// @function stamp(obj: Object): Number
// Returns the unique ID of an object, assigning it one if it doesn't have it.
function o(e){return"_leaflet_id"in e||(e._leaflet_id=++a),e._leaflet_id}
// @function throttle(fn: Function, time: Number, context: Object): Function
// Returns a function which executes function `fn` with the given scope `context`
// (so that the `this` keyword refers to `context` inside `fn`'s code). The function
// `fn` will be called no more than one time per given amount of `time`. The arguments
// received by the bound function will be any arguments passed when binding the
// function, followed by any arguments passed when invoking the bound function.
// Has an `L.throttle` shortcut.
function s(e,t,n){var r,i,a,o;return o=function(){
// reset lock and call if queued
r=!1,i&&(a.apply(n,i),i=!1)},a=function(){r?
// called too soon, queue to call later
i=arguments:(
// call and lock until later
e.apply(n,arguments),setTimeout(o,t),r=!0)},a}
// @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number
// Returns the number `num` modulo `range` in such a way so it lies within
// `range[0]` and `range[1]`. The returned value will be always smaller than
// `range[1]` unless `includeMax` is set to `true`.
function c(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}
// @function falseFn(): Function
// Returns a function which always returns `false`.
function l(){return!1}
// @function formatNum(num: Number, precision?: Number|false): Number
// Returns the number `num` rounded with specified `precision`.
// The default `precision` value is 6 decimal places.
// `false` can be passed to skip any processing (can be useful to avoid round-off errors).
function u(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}
// @function trim(str: String): String
// Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)
function h(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
// @function splitWords(str: String): String[]
// Trims and splits the string on whitespace and returns the array of parts.
function f(e){return h(e).split(/\s+/)}
// @function setOptions(obj: Object, options: Object): Object
// Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.
function d(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}
// @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String
// Converts an object into a parameter URL string, e.g. `{a: "foo", b: "bar"}`
// translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will
// be appended at the end. If `uppercase` is `true`, the parameter names will
// be uppercased (e.g. `'?A=foo&B=bar'`)
function p(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var g=/\{ *([\w_ -]+) *\}/g;
// @function template(str: String, data: Object): String
// Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`
// and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string
// `('Hello foo, bar')`. You can also specify functions instead of strings for
// data values — they will be evaluated passing `data` as an argument.
function m(e,t){return e.replace(g,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r}))}
// @function isArray(obj): Boolean
// Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)
var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};
// @function indexOf(array: Array, el: Object): Number
// Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)
function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}
// @property emptyImageUrl: String
// Data URI string containing a base64-encoded empty GIF image.
// Used as a hack to free memory from unused images on WebKit-powered
// mobile devices (by setting image `src` to this string).
var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
// inspired by https://paulirish.com/2011/requestanimationframe-for-smart-animating/
function b(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var w=0;
// fallback for IE 7-8
function x(e){var t=+new Date,n=Math.max(0,16-(t-w));return w=t+n,window.setTimeout(e,n)}var C=window.requestAnimationFrame||b("RequestAnimationFrame")||x,_=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};
// @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number
// Schedules `fn` to be executed when the browser repaints. `fn` is bound to
// `context` if given. When `immediate` is set, `fn` is called immediately if
// the browser doesn't have native support for
// [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),
// otherwise it's delayed. Returns a request ID that can be used to cancel the request.
function I(e,t,n){if(!n||C!==x)return C.call(window,i(e,t));e.call(t)}
// @function cancelAnimFrame(id: Number): undefined
// Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).
function E(e){e&&_.call(window,e)}var k={__proto__:null,extend:n,create:r,bind:i,get lastId(){return a},stamp:o,throttle:s,wrapNum:c,falseFn:l,formatNum:u,trim:h,splitWords:f,setOptions:d,getParamString:p,template:m,isArray:v,indexOf:y,emptyImageUrl:A,requestFn:C,cancelFn:_,requestAnimFrame:I,cancelAnimFrame:E};
// @class Class
// @aka L.Class
// @section
// @uninheritable
// Thanks to John Resig and Dean Edwards for inspiration!
function S(){}function B(e){
/* global L: true */
if("undefined"!=typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t],L.Mixin.Events}}
/*
   * @class Evented
   * @aka L.Evented
   * @inherits Class
   *
   * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).
   *
   * @example
   *
   * ```js
   * map.on('click', function(e) {
   * 	alert(e.latlng);
   * } );
   * ```
   *
   * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:
   *
   * ```js
   * function onClick(e) { ... }
   *
   * map.on('click', onClick);
   * map.off('click', onClick);
   * ```
   */S.extend=function(e){
// @function extend(props: Object): Function
// [Extends the current class](#class-inheritance) given the properties to be included.
// Returns a Javascript function that is a class constructor (to be called with `new`).
var t=function(){d(this),
// call the constructor
this.initialize&&this.initialize.apply(this,arguments),
// call all constructor hooks
this.callInitHooks()},i=t.__super__=this.prototype,a=r(i);
// inherit parent's statics
for(var o in a.constructor=t,t.prototype=a,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(t[o]=this[o]);
// mix static properties into the class
return e.statics&&n(t,e.statics),
// mix includes into the prototype
e.includes&&(B(e.includes),n.apply(null,[a].concat(e.includes))),
// mix given properties into the prototype
n(a,e),delete a.statics,delete a.includes,
// merge options
a.options&&(a.options=i.options?r(i.options):{},n(a.options,e.options)),a._initHooks=[],
// add method for calling all hooks
a.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=a._initHooks.length;e<t;e++)a._initHooks[e].call(this)}},t},
// @function include(properties: Object): this
// [Includes a mixin](#class-includes) into the current class.
S.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},
// @function mergeOptions(options: Object): this
// [Merges `options`](#class-options) into the defaults of the class.
S.mergeOptions=function(e){return n(this.prototype.options,e),this},
// @function addInitHook(fn: Function): this
// Adds a [constructor hook](#class-constructor-hooks) to the class.
S.addInitHook=function(e){// (Function) || (String, args...)
var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var M={
/* @method on(type: String, fn: Function, context?: Object): this
  	 * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
  	 *
  	 * @alternative
  	 * @method on(eventMap: Object): this
  	 * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
  	 */
on:function(e,t,n){
// types can be a map of types/handlers
if("object"==typeof e)for(var r in e)
// we don't process space-separated events here for performance;
// it's a hot path since Layer uses the on(obj) syntax
this._on(r,e[r],t);else for(var i=0,a=(
// types can be a string of space-separated words
e=f(e)).length;i<a;i++)this._on(e[i],t,n);return this},
/* @method off(type: String, fn?: Function, context?: Object): this
  	 * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.
  	 *
  	 * @alternative
  	 * @method off(eventMap: Object): this
  	 * Removes a set of type/listener pairs.
  	 *
  	 * @alternative
  	 * @method off: this
  	 * Removes all listeners to all events on the object. This includes implicitly attached events.
  	 */
off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=f(e);for(var i=1===arguments.length,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}else
// clear all listeners if called without arguments
delete this._events;return this},
// attach listener (without syntactic sugar now)
_on:function(e,t,n,r){if("function"==typeof t&&!1===this._listens(e,t,n))
// check if fn already there
{n===this&&(
// Less memory footprint.
n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){var r,i,a;if(this._events&&(r=this._events[e]))if(1!==arguments.length){if("function"==typeof t){
// find fn and remove it
var o=this._listens(e,t,n);if(!1!==o){var s=r[o];this._firingCount&&(
// set the removed listener to noop so that's not called if remove happens in fire
s.fn=l,
/* copy array in case events are being fired */
this._events[e]=r=r.slice()),r.splice(o,1)}}}else{// remove all
if(this._firingCount)
// Set all removed listeners to noop
// so they are not called if remove happens in fire
for(i=0,a=r.length;i<a;i++)r[i].fn=l;
// clear all listeners for a type if function isn't specified
delete this._events[e]}},
// @method fire(type: String, data?: Object, propagate?: Boolean): this
// Fires an event of the specified type. You can optionally provide a data
// object — the first argument of the listener function will contain its
// properties. The event can optionally be propagated to event parents.
fire:function(e,t,r){if(!this.listens(e,r))return this;var i=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var c=a[o],l=c.fn;
// off overwrites l.fn, so we need to copy fn to a var
c.once&&this.off(e,l,c.ctx),l.call(c.ctx||this,i)}this._firingCount--}}return r&&
// propagate the event to parents (set with addEventParent)
this._propagateEvent(i),this},
// @method listens(type: String, propagate?: Boolean): Boolean
// @method listens(type: String, fn: Function, context?: Object, propagate?: Boolean): Boolean
// Returns `true` if a particular event type has any listeners attached to it.
// The verification can optionally be propagated, it will return `true` if parents have the listener attached to it.
listens:function(e,t,n,r){
// we don't overwrite the input `fn` value, because we need to use it for propagation
var i=t;"function"!=typeof t&&(r=!!t,i=void 0,n=void 0);var a=this._events&&this._events[e];if(a&&a.length&&!1!==this._listens(e,i,n))return!0;if(r)
// also check parents for listeners if event propagates
for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0;return!1},
// returns the index (number) or false
_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(
// Less memory footprint.
n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},
// @method once(…): this
// Behaves as [`on(…)`](#evented-on), except the listener will only get fired once and then removed.
once:function(e,t,n){
// types can be a map of types/handlers
if("object"==typeof e)for(var r in e)
// we don't process space-separated events here for performance;
// it's a hot path since Layer uses the on(obj) syntax
this._on(r,e[r],t,!0);else for(var i=0,a=(
// types can be a string of space-separated words
e=f(e)).length;i<a;i++)this._on(e[i],t,n,!0);return this},
// @method addEventParent(obj: Evented): this
// Adds an event parent - an `Evented` that will receive propagated events
addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[o(e)]=e,this},
// @method removeEventParent(obj: Evented): this
// Removes an event parent, so it will stop receiving propagated events
removeEventParent:function(e){return this._eventParents&&delete this._eventParents[o(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};
// aliases; we should ditch those eventually
// @method addEventListener(…): this
// Alias to [`on(…)`](#evented-on)
M.addEventListener=M.on,
// @method removeEventListener(…): this
// Alias to [`off(…)`](#evented-off)
// @method clearAllEventListeners(…): this
// Alias to [`off()`](#evented-off)
M.removeEventListener=M.clearAllEventListeners=M.off,
// @method addOneTimeEventListener(…): this
// Alias to [`once(…)`](#evented-once)
M.addOneTimeEventListener=M.once,
// @method fireEvent(…): this
// Alias to [`fire(…)`](#evented-fire)
M.fireEvent=M.fire,
// @method hasEventListeners(…): Boolean
// Alias to [`listens(…)`](#evented-listens)
M.hasEventListeners=M.listens;var T=S.extend(M);
/*
   * @class Point
   * @aka L.Point
   *
   * Represents a point with `x` and `y` coordinates in pixels.
   *
   * @example
   *
   * ```js
   * var point = L.point(200, 300);
   * ```
   *
   * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:
   *
   * ```js
   * map.panBy([200, 300]);
   * map.panBy(L.point(200, 300));
   * ```
   *
   * Note that `Point` does not inherit from Leaflet's `Class` object,
   * which means new classes can't inherit from it, and new methods
   * can't be added to it with the `include` function.
   */function O(e,t,n){
// @property x: Number; The `x` coordinate of the point
this.x=n?Math.round(e):e,
// @property y: Number; The `y` coordinate of the point
this.y=n?Math.round(t):t}var D=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};
// @factory L.point(x: Number, y: Number, round?: Boolean)
// Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.
// @alternative
// @factory L.point(coords: Number[])
// Expects an array of the form `[x, y]` instead.
// @alternative
// @factory L.point(coords: Object)
// Expects a plain object of the form `{x: Number, y: Number}` instead.
function P(e,t,n){return e instanceof O?e:v(e)?new O(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new O(e.x,e.y):new O(e,t,n)}
/*
   * @class Bounds
   * @aka L.Bounds
   *
   * Represents a rectangular area in pixel coordinates.
   *
   * @example
   *
   * ```js
   * var p1 = L.point(10, 10),
   * p2 = L.point(40, 60),
   * bounds = L.bounds(p1, p2);
   * ```
   *
   * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
   *
   * ```js
   * otherBounds.intersects([[10, 10], [40, 60]]);
   * ```
   *
   * Note that `Bounds` does not inherit from Leaflet's `Class` object,
   * which means new classes can't inherit from it, and new methods
   * can't be added to it with the `include` function.
   */function Q(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}
// @factory L.bounds(corner1: Point, corner2: Point)
// Creates a Bounds object from two corners coordinate pairs.
// @alternative
// @factory L.bounds(points: Point[])
// Creates a Bounds object from the given array of points.
function R(e,t){return!e||e instanceof Q?e:new Q(e,t)}
/*
   * @class LatLngBounds
   * @aka L.LatLngBounds
   *
   * Represents a rectangular geographical area on a map.
   *
   * @example
   *
   * ```js
   * var corner1 = L.latLng(40.712, -74.227),
   * corner2 = L.latLng(40.774, -74.125),
   * bounds = L.latLngBounds(corner1, corner2);
   * ```
   *
   * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
   *
   * ```js
   * map.fitBounds([
   * 	[40.712, -74.227],
   * 	[40.774, -74.125]
   * ]);
   * ```
   *
   * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.
   *
   * Note that `LatLngBounds` does not inherit from Leaflet's `Class` object,
   * which means new classes can't inherit from it, and new methods
   * can't be added to it with the `include` function.
   */function j(e,t){// (LatLng, LatLng) or (LatLng[])
if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}
// TODO International date line?
// @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)
// Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.
// @alternative
// @factory L.latLngBounds(latlngs: LatLng[])
// Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).
function N(e,t){return e instanceof j?e:new j(e,t)}
/* @class LatLng
   * @aka L.LatLng
   *
   * Represents a geographical point with a certain latitude and longitude.
   *
   * @example
   *
   * ```
   * var latlng = L.latLng(50.5, 30.5);
   * ```
   *
   * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:
   *
   * ```
   * map.panTo([50, 30]);
   * map.panTo({lon: 30, lat: 50});
   * map.panTo({lat: 50, lng: 30});
   * map.panTo(L.latLng(50, 30));
   * ```
   *
   * Note that `LatLng` does not inherit from Leaflet's `Class` object,
   * which means new classes can't inherit from it, and new methods
   * can't be added to it with the `include` function.
   */function F(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");
// @property lat: Number
// Latitude in degrees
this.lat=+e,
// @property lng: Number
// Longitude in degrees
this.lng=+t,
// @property alt: Number
// Altitude in meters (optional)
void 0!==n&&(this.alt=+n)}
// @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng
// Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).
// @alternative
// @factory L.latLng(coords: Array): LatLng
// Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.
// @alternative
// @factory L.latLng(coords: Object): LatLng
// Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.
function z(e,t,n){return e instanceof F?e:v(e)&&"object"!=typeof e[0]?3===e.length?new F(e[0],e[1],e[2]):2===e.length?new F(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new F(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new F(e,t,n)}
/*
   * @namespace CRS
   * @crs L.CRS.Base
   * Object that defines coordinate reference systems for projecting
   * geographical points into pixel (screen) coordinates and back (and to
   * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See
   * [spatial reference system](https://en.wikipedia.org/wiki/Spatial_reference_system).
   *
   * Leaflet defines the most usual CRSs by default. If you want to use a
   * CRS not defined by default, take a look at the
   * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.
   *
   * Note that the CRS instances do not inherit from Leaflet's `Class` object,
   * and can't be instantiated. Also, new classes can't inherit from them,
   * and methods can't be added to them with the `include` function.
   */O.prototype={
// @method clone(): Point
// Returns a copy of the current point.
clone:function(){return new O(this.x,this.y)},
// @method add(otherPoint: Point): Point
// Returns the result of addition of the current and the given points.
add:function(e){
// non-destructive, returns a new point
return this.clone()._add(P(e))},_add:function(e){
// destructive, used directly for performance in situations where it's safe to modify existing point
return this.x+=e.x,this.y+=e.y,this},
// @method subtract(otherPoint: Point): Point
// Returns the result of subtraction of the given point from the current.
subtract:function(e){return this.clone()._subtract(P(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},
// @method divideBy(num: Number): Point
// Returns the result of division of the current point by the given number.
divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},
// @method multiplyBy(num: Number): Point
// Returns the result of multiplication of the current point by the given number.
multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},
// @method scaleBy(scale: Point): Point
// Multiply each coordinate of the current point by each coordinate of
// `scale`. In linear algebra terms, multiply the point by the
// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)
// defined by `scale`.
scaleBy:function(e){return new O(this.x*e.x,this.y*e.y)},
// @method unscaleBy(scale: Point): Point
// Inverse of `scaleBy`. Divide each coordinate of the current point by
// each coordinate of `scale`.
unscaleBy:function(e){return new O(this.x/e.x,this.y/e.y)},
// @method round(): Point
// Returns a copy of the current point with rounded coordinates.
round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},
// @method floor(): Point
// Returns a copy of the current point with floored coordinates (rounded down).
floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},
// @method ceil(): Point
// Returns a copy of the current point with ceiled coordinates (rounded up).
ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},
// @method trunc(): Point
// Returns a copy of the current point with truncated coordinates (rounded towards zero).
trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=D(this.x),this.y=D(this.y),this},
// @method distanceTo(otherPoint: Point): Number
// Returns the cartesian distance between the current and the given points.
distanceTo:function(e){var t=(e=P(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},
// @method equals(otherPoint: Point): Boolean
// Returns `true` if the given point has the same coordinates.
equals:function(e){return(e=P(e)).x===this.x&&e.y===this.y},
// @method contains(otherPoint: Point): Boolean
// Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).
contains:function(e){return e=P(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},
// @method toString(): String
// Returns a string representation of the point for debugging purposes.
toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},Q.prototype={
// @method extend(point: Point): this
// Extends the bounds to contain the given point.
// @alternative
// @method extend(otherBounds: Bounds): this
// Extend the bounds to contain the given bounds
extend:function(e){var t,n;if(!e)return this;if(e instanceof O||"number"==typeof e[0]||"x"in e)t=n=P(e);else if(t=(e=R(e)).min,n=e.max,!t||!n)return this;
// @property min: Point
// The top left corner of the rectangle.
// @property max: Point
// The bottom right corner of the rectangle.
return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},
// @method getCenter(round?: Boolean): Point
// Returns the center point of the bounds.
getCenter:function(e){return P((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},
// @method getBottomLeft(): Point
// Returns the bottom-left point of the bounds.
getBottomLeft:function(){return P(this.min.x,this.max.y)},
// @method getTopRight(): Point
// Returns the top-right point of the bounds.
getTopRight:function(){// -> Point
return P(this.max.x,this.min.y)},
// @method getTopLeft(): Point
// Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).
getTopLeft:function(){return this.min;// left, top
},
// @method getBottomRight(): Point
// Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).
getBottomRight:function(){return this.max;// right, bottom
},
// @method getSize(): Point
// Returns the size of the given bounds
getSize:function(){return this.max.subtract(this.min)},
// @method contains(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle contains the given one.
// @alternative
// @method contains(point: Point): Boolean
// Returns `true` if the rectangle contains the given point.
contains:function(e){var t,n;return(e="number"==typeof e[0]||e instanceof O?P(e):R(e))instanceof Q?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},
// @method intersects(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle intersects the given bounds. Two bounds
// intersect if they have at least one point in common.
intersects:function(e){// (Bounds) -> Boolean
e=R(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},
// @method overlaps(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
// overlap if their intersection is an area.
overlaps:function(e){// (Bounds) -> Boolean
e=R(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},
// @method isValid(): Boolean
// Returns `true` if the bounds are properly initialized.
isValid:function(){return!(!this.min||!this.max)},
// @method pad(bufferRatio: Number): Bounds
// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
// For example, a ratio of 0.5 extends the bounds by 50% in each direction.
// Negative values will retract the bounds.
pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return R(P(t.x-r,t.y-i),P(n.x+r,n.y+i))},
// @method equals(otherBounds: Bounds): Boolean
// Returns `true` if the rectangle is equivalent to the given bounds.
equals:function(e){return!!e&&(e=R(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},j.prototype={
// @method extend(latlng: LatLng): this
// Extend the bounds to contain the given point
// @alternative
// @method extend(otherBounds: LatLngBounds): this
// Extend the bounds to contain the given bounds
extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof F)t=e,n=e;else{if(!(e instanceof j))return e?this.extend(z(e)||N(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new F(t.lat,t.lng),this._northEast=new F(n.lat,n.lng)),this},
// @method pad(bufferRatio: Number): LatLngBounds
// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
// For example, a ratio of 0.5 extends the bounds by 50% in each direction.
// Negative values will retract the bounds.
pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new j(new F(t.lat-r,t.lng-i),new F(n.lat+r,n.lng+i))},
// @method getCenter(): LatLng
// Returns the center point of the bounds.
getCenter:function(){return new F((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},
// @method getSouthWest(): LatLng
// Returns the south-west point of the bounds.
getSouthWest:function(){return this._southWest},
// @method getNorthEast(): LatLng
// Returns the north-east point of the bounds.
getNorthEast:function(){return this._northEast},
// @method getNorthWest(): LatLng
// Returns the north-west point of the bounds.
getNorthWest:function(){return new F(this.getNorth(),this.getWest())},
// @method getSouthEast(): LatLng
// Returns the south-east point of the bounds.
getSouthEast:function(){return new F(this.getSouth(),this.getEast())},
// @method getWest(): Number
// Returns the west longitude of the bounds
getWest:function(){return this._southWest.lng},
// @method getSouth(): Number
// Returns the south latitude of the bounds
getSouth:function(){return this._southWest.lat},
// @method getEast(): Number
// Returns the east longitude of the bounds
getEast:function(){return this._northEast.lng},
// @method getNorth(): Number
// Returns the north latitude of the bounds
getNorth:function(){return this._northEast.lat},
// @method contains(otherBounds: LatLngBounds): Boolean
// Returns `true` if the rectangle contains the given one.
// @alternative
// @method contains (latlng: LatLng): Boolean
// Returns `true` if the rectangle contains the given point.
contains:function(e){// (LatLngBounds) or (LatLng) -> Boolean
e="number"==typeof e[0]||e instanceof F||"lat"in e?z(e):N(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof j?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},
// @method intersects(otherBounds: LatLngBounds): Boolean
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
intersects:function(e){e=N(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},
// @method overlaps(otherBounds: LatLngBounds): Boolean
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
overlaps:function(e){e=N(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},
// @method toBBoxString(): String
// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},
// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
equals:function(e,t){return!!e&&(e=N(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},
// @method isValid(): Boolean
// Returns `true` if the bounds are properly initialized.
isValid:function(){return!(!this._southWest||!this._northEast)}},F.prototype={
// @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean
// Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.
equals:function(e,t){return!!e&&(e=z(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},
// @method toString(): String
// Returns a string representation of the point (for debugging purposes).
toString:function(e){return"LatLng("+u(this.lat,e)+", "+u(this.lng,e)+")"},
// @method distanceTo(otherLatLng: LatLng): Number
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
distanceTo:function(e){return G.distance(this,z(e))},
// @method wrap(): LatLng
// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
wrap:function(){return G.wrapLatLng(this)},
// @method toBounds(sizeInMeters: Number): LatLngBounds
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return N([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};var H,U={
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
// Projects geographical coordinates into pixel coordinates for a given zoom.
latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},
// @method pointToLatLng(point: Point, zoom: Number): LatLng
// The inverse of `latLngToPoint`. Projects pixel coordinates on a given
// zoom into geographical coordinates.
pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},
// @method project(latlng: LatLng): Point
// Projects geographical coordinates into coordinates in units accepted for
// this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).
project:function(e){return this.projection.project(e)},
// @method unproject(point: Point): LatLng
// Given a projected coordinate returns the corresponding LatLng.
// The inverse of `project`.
unproject:function(e){return this.projection.unproject(e)},
// @method scale(zoom: Number): Number
// Returns the scale used when transforming projected coordinates into
// pixel coordinates for a particular zoom. For example, it returns
// `256 * 2^zoom` for Mercator-based CRS.
scale:function(e){return 256*Math.pow(2,e)},
// @method zoom(scale: Number): Number
// Inverse of `scale()`, returns the zoom level corresponding to a scale
// factor of `scale`.
zoom:function(e){return Math.log(e/256)/Math.LN2},
// @method getProjectedBounds(zoom: Number): Bounds
// Returns the projection's bounds scaled and transformed for the provided `zoom`.
getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new Q(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
// Returns the distance between two geographical coordinates.
// @property code: String
// Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)
// @property wrapLng: Number[]
// An array of two numbers defining whether the longitude (horizontal) coordinate
// axis wraps around a given range and how. Defaults to `[-180, 180]` in most
// geographical CRSs. If `undefined`, the longitude axis does not wrap around.
// @property wrapLat: Number[]
// Like `wrapLng`, but for the latitude (vertical) axis.
// wrapLng: [min, max],
// wrapLat: [min, max],
// @property infinite: Boolean
// If true, the coordinate space will be unbounded (infinite in both axes)
infinite:!1,
// @method wrapLatLng(latlng: LatLng): LatLng
// Returns a `LatLng` where lat and lng has been wrapped according to the
// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
wrapLatLng:function(e){var t=this.wrapLng?c(e.lng,this.wrapLng,!0):e.lng;return new F(this.wrapLat?c(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
// Returns a `LatLngBounds` with the same size as the given one, ensuring
// that its center is within the CRS's bounds.
// Only accepts actual `L.LatLngBounds` instances, not arrays.
wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var a=e.getSouthWest(),o=e.getNorthEast();return new j(new F(a.lat-r,a.lng-i),new F(o.lat-r,o.lng-i))}},G=n({},U,{wrapLng:[-180,180],
// Mean Earth Radius, as recommended for use by
// the International Union of Geodesy and Geophysics,
// see https://rosettacode.org/wiki/Haversine_formula
R:6371e3,
// distance between two geographical points using spherical law of cosines approximation
distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,c=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*c}}),V=6378137,W={R:V,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new O(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new F((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:(H=V*Math.PI,new Q([-H,-H],[H,H]))};
/*
   * @namespace CRS
   * @crs L.CRS.Earth
   *
   * Serves as the base for CRS that are global such that they cover the earth.
   * Can only be used as the base for other CRS and cannot be used directly,
   * since it does not have a `code`, `projection` or `transformation`. `distance()` returns
   * meters.
   */
/*
   * @class Transformation
   * @aka L.Transformation
   *
   * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`
   * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing
   * the reverse. Used by Leaflet in its projections code.
   *
   * @example
   *
   * ```js
   * var transformation = L.transformation(2, 5, -1, 10),
   * 	p = L.point(1, 2),
   * 	p2 = transformation.transform(p), //  L.point(7, 8)
   * 	p3 = transformation.untransform(p2); //  L.point(1, 2)
   * ```
   */
// factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)
// Creates a `Transformation` object with the given coefficients.
function q(e,t,n,r){if(v(e))
// use array properties
return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}
// factory L.transformation(a: Number, b: Number, c: Number, d: Number)
// @factory L.transformation(a: Number, b: Number, c: Number, d: Number)
// Instantiates a Transformation object with the given coefficients.
// @alternative
// @factory L.transformation(coefficients: Array): Transformation
// Expects an coefficients array of the form
// `[a: Number, b: Number, c: Number, d: Number]`.
function Y(e,t,n,r){return new q(e,t,n,r)}
/*
   * @namespace CRS
   * @crs L.CRS.EPSG3857
   *
   * The most common CRS for online maps, used by almost all free and commercial
   * tile providers. Uses Spherical Mercator projection. Set in by default in
   * Map's `crs` option.
   */q.prototype={
// @method transform(point: Point, scale?: Number): Point
// Returns a transformed point, optionally multiplied by the given scale.
// Only accepts actual `L.Point` instances, not arrays.
transform:function(e,t){// (Point, Number) -> Point
return this._transform(e.clone(),t)},
// destructive transform (faster)
_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},
// @method untransform(point: Point, scale?: Number): Point
// Returns the reverse transformation of the given point, optionally divided
// by the given scale. Only accepts actual `L.Point` instances, not arrays.
untransform:function(e,t){return t=t||1,new O((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var K=n({},G,{code:"EPSG:3857",projection:W,transformation:function(){var e=.5/(Math.PI*W.R);return Y(e,.5,-e,.5)}()}),$=n({},K,{code:"EPSG:900913"});
// @namespace SVG; @section
// There are several static functions which can be called without instantiating L.SVG:
// @function create(name: String): SVGElement
// Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),
// corresponding to the class name passed. For example, using 'line' will return
// an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).
function J(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}
// @function pointsToPath(rings: Point[], closed: Boolean): String
// Generates a SVG path string for multiple rings, with each ring turning
// into "M..L..L.." instructions
function X(e,t){var n,r,i,a,o,s,c="";for(n=0,i=e.length;n<i;n++){for(r=0,a=(o=e[n]).length;r<a;r++)c+=(r?"L":"M")+(s=o[r]).x+" "+s.y;
// closes the ring for polygons; "x" is VML syntax
c+=t?je.svg?"z":"x":""}
// SVG complains about empty path strings
return c||"M0 0"}
/*
   * @namespace Browser
   * @aka L.Browser
   *
   * A namespace with static properties for browser/feature detection used by Leaflet internally.
   *
   * @example
   *
   * ```js
   * if (L.Browser.ielt9) {
   *   alert('Upgrade your browser, dude!');
   * }
   * ```
   */var Z,ee=document.documentElement.style,te="ActiveXObject"in window,ne=te&&!document.addEventListener,re="msLaunchUri"in navigator&&!("documentMode"in document),ie=Re("webkit"),ae=Re("android"),oe=Re("android 2")||Re("android 3"),se=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ce=ae&&Re("Google")&&se<537&&!("AudioNode"in window),le=!!window.opera,ue=!re&&Re("chrome"),he=Re("gecko")&&!ie&&!le&&!te,fe=!ue&&Re("safari"),de=Re("phantom"),pe="OTransition"in ee,ge=0===navigator.platform.indexOf("Win"),me=te&&"transition"in ee,ve="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!oe,ye="MozPerspective"in ee,Ae=!window.L_DISABLE_3D&&(me||ve||ye)&&!pe&&!de,be="undefined"!=typeof orientation||Re("mobile"),we=be&&ie,xe=be&&ve,Ce=!window.PointerEvent&&window.MSPointerEvent,_e=!(!window.PointerEvent&&!Ce),Ie="ontouchstart"in window||!!window.TouchEvent,Ee=!window.L_NO_TOUCH&&(Ie||_e),ke=be&&le,Se=be&&he,Be=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Me=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){// eslint-disable-line getter-return
e=!0}});window.addEventListener("testPassiveEventSupport",l,t),window.removeEventListener("testPassiveEventSupport",l,t)}catch(e){
// Errors can safely be ignored since this is only a browser support test.
}return e}(),Te=!!document.createElement("canvas").getContext,Oe=!(!document.createElementNS||!J("svg").createSVGRect),De=!!Oe&&((Z=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Z.firstChild&&Z.firstChild.namespaceURI)),Pe=!Oe&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}(),Le=0===navigator.platform.indexOf("Mac"),Qe=0===navigator.platform.indexOf("Linux");
// @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).
function Re(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var je={ie:te,ielt9:ne,edge:re,webkit:ie,android:ae,android23:oe,androidStock:ce,opera:le,chrome:ue,gecko:he,safari:fe,phantom:de,opera12:pe,win:ge,ie3d:me,webkit3d:ve,gecko3d:ye,any3d:Ae,mobile:be,mobileWebkit:we,mobileWebkit3d:xe,msPointer:Ce,pointer:_e,touch:Ee,touchNative:Ie,mobileOpera:ke,mobileGecko:Se,retina:Be,passiveEvents:Me,canvas:Te,svg:Oe,vml:Pe,inlineSvg:De,mac:Le,linux:Qe},Ne=je.msPointer?"MSPointerDown":"pointerdown",Fe=je.msPointer?"MSPointerMove":"pointermove",ze=je.msPointer?"MSPointerUp":"pointerup",He=je.msPointer?"MSPointerCancel":"pointercancel",Ue={touchstart:Ne,touchmove:Fe,touchend:ze,touchcancel:He},Ge={touchstart:et,touchmove:Ze,touchend:Ze,touchcancel:Ze},Ve={},We=!1;
/*
   * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices.
   */
// Provides a touch events wrapper for (ms)pointer events.
// ref https://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
function qe(e,t,n){return"touchstart"===t&&Xe(),Ge[t]?(n=Ge[t].bind(this,n),e.addEventListener(Ue[t],n,!1),n):l}function Ye(e,t,n){Ue[t]&&e.removeEventListener(Ue[t],n,!1)}function Ke(e){Ve[e.pointerId]=e}function $e(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function Je(e){delete Ve[e.pointerId]}function Xe(){
// need to keep track of what pointers and how many are active to provide e.touches emulation
We||(
// we listen document as any drags that end by moving the touch off the screen get fired there
document.addEventListener(Ne,Ke,!0),document.addEventListener(Fe,$e,!0),document.addEventListener(ze,Je,!0),document.addEventListener(He,Je,!0),We=!0)}function Ze(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}function et(e,t){
// IE10 specific: MsTouch needs preventDefault. See #2000
t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Kt(t),Ze(e,t)}
/*
   * Extends the event handling code with double tap support for mobile browsers.
   *
   * Note: currently most browsers fire native dblclick, with only a few exceptions
   * (see https://github.com/Leaflet/Leaflet/issues/7012#issuecomment-595087386)
   */function tt(e){
// in modern browsers `type` cannot be just overridden:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only
var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;// for debug purposes
return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var nt=200;function rt(e,t){
// Most browsers handle double tap natively
e.addEventListener("dblclick",t);
// On some platforms the browser doesn't fire native dblclicks for touch events.
// It seems that in all such cases `detail` property of `click` event is always `1`.
// So here we rely on that fact to avoid excessive 'dblclick' simulation when not needed.
var n,r=0;function i(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){
// When clicking on an <input>, the browser generates a click on its
// <label> (and vice versa) triggering two clicks in quick succession.
// This ignores clicks on elements which are a label with a 'for'
// attribute (or children of such a label), but not children of
// a <input>.
var i=Jt(e);if(!i.some((function(e){return e instanceof HTMLLabelElement&&e.attributes.for}))||i.some((function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var a=Date.now();a-r<=nt?2==++n&&t(tt(e)):n=1,r=a}}}else n=e.detail}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}function it(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}
/*
   * @namespace DomUtil
   *
   * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)
   * tree, used by Leaflet internally.
   *
   * Most functions expecting or returning a `HTMLElement` also work for
   * SVG elements. The only difference is that classes refer to CSS classes
   * in HTML and SVG classes in SVG.
   */
// @property TRANSFORM: String
// Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit).
var at,ot,st,ct,lt,ut=kt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ht=kt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ft="webkitTransition"===ht||"OTransition"===ht?ht+"End":"transitionend";
// webkitTransition comes first because some browser versions that drop vendor prefix don't do
// the same for the transitionend event, in particular the Android 4.1 stock browser
// @property TRANSITION: String
// Vendor-prefixed transition style name.
// @function get(id: String|HTMLElement): HTMLElement
// Returns an element given its DOM id, or returns the element itself
// if it was passed directly.
function dt(e){return"string"==typeof e?document.getElementById(e):e}
// @function getStyle(el: HTMLElement, styleAttrib: String): String
// Returns the value for a certain style attribute on an element,
// including computed values or values set through CSS.
function pt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}
// @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement
// Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.
function gt(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}
// @function remove(el: HTMLElement)
// Removes `el` from its parent element
function mt(e){var t=e.parentNode;t&&t.removeChild(e)}
// @function empty(el: HTMLElement)
// Removes all of `el`'s children elements from `el`
function vt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}
// @function toFront(el: HTMLElement)
// Makes `el` the last child of its parent, so it renders in front of the other children.
function yt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}
// @function toBack(el: HTMLElement)
// Makes `el` the first child of its parent, so it renders behind the other children.
function At(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}
// @function hasClass(el: HTMLElement, name: String): Boolean
// Returns `true` if the element's class attribute contains `name`.
function bt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=_t(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}
// @function addClass(el: HTMLElement, name: String)
// Adds `name` to the element's class attribute.
function wt(e,t){if(void 0!==e.classList)for(var n=f(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!bt(e,t)){var a=_t(e);Ct(e,(a?a+" ":"")+t)}}
// @function removeClass(el: HTMLElement, name: String)
// Removes `name` from the element's class attribute.
function xt(e,t){void 0!==e.classList?e.classList.remove(t):Ct(e,h((" "+_t(e)+" ").replace(" "+t+" "," ")))}
// @function setClass(el: HTMLElement, name: String)
// Sets the element's class.
function Ct(e,t){void 0===e.className.baseVal?e.className=t:
// in case of SVG element
e.className.baseVal=t}
// @function getClass(el: HTMLElement): String
// Returns the element's class.
function _t(e){
// Check if the element is an SVGElementInstance and use the correspondingElement instead
// (Required for linked SVG elements in IE11.)
return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}
// @function setOpacity(el: HTMLElement, opacity: Number)
// Set the opacity of an element (including old IE support).
// `opacity` must be a number from `0` to `1`.
function It(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&Et(e,t)}function Et(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";
// filters collection throws an error if we try to retrieve a filter that doesn't exist
try{n=e.filters.item(r)}catch(e){
// don't set opacity to 1 if we haven't already set an opacity,
// it isn't needed and breaks transparent pngs.
if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}
// @function testProp(props: String[]): String|false
// Goes through the array of style names and returns the first name
// that is a valid style name for an element. If no such name is found,
// it returns false. Useful for vendor-prefixed styles like `transform`.
function kt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}
// @function setTransform(el: HTMLElement, offset: Point, scale?: Number)
// Resets the 3D CSS transform of `el` so it is translated by `offset` pixels
// and optionally scaled by `scale`. Does not have an effect if the
// browser doesn't support 3D CSS transforms.
function St(e,t,n){var r=t||new O(0,0);e.style[ut]=(je.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}
// @function setPosition(el: HTMLElement, position: Point)
// Sets the position of `el` to coordinates specified by `position`,
// using CSS translate or top/left positioning depending on the browser
// (used by Leaflet internally to position its layers).
function Bt(e,t){
/*eslint-disable */
e._leaflet_pos=t,
/* eslint-enable */
je.any3d?St(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}
// @function getPosition(el: HTMLElement): Point
// Returns the coordinates of an element previously positioned with setPosition.
function Mt(e){
// this method is only used for elements previously positioned using setPosition,
// so it's safe to cache the position for performance
return e._leaflet_pos||new O(0,0)}
// @function disableTextSelection()
// Prevents the user from generating `selectstart` DOM events, usually generated
// when the user drags the mouse through a page with text. Used internally
// by Leaflet to override the behaviour of any click-and-drag interaction on
// the map. Affects drag interactions on the whole document.
// @function enableTextSelection()
// Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection).
if("onselectstart"in document)at=function(){Nt(window,"selectstart",Kt)},ot=function(){zt(window,"selectstart",Kt)};else{var Tt=kt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);at=function(){if(Tt){var e=document.documentElement.style;st=e[Tt],e[Tt]="none"}},ot=function(){Tt&&(document.documentElement.style[Tt]=st,st=void 0)}}
// @function disableImageDrag()
// As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but
// for `dragstart` DOM events, usually generated when the user drags an image.
function Ot(){Nt(window,"dragstart",Kt)}
// @function enableImageDrag()
// Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection).
function Dt(){zt(window,"dragstart",Kt)}
// @function preventOutline(el: HTMLElement)
// Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline)
// of the element `el` invisible. Used internally by Leaflet to prevent
// focusable elements from displaying an outline when the user performs a
// drag interaction on them.
function Pt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Lt(),ct=e,lt=e.style.outlineStyle,e.style.outlineStyle="none",Nt(window,"keydown",Lt))}
// @function restoreOutline()
// Cancels the effects of a previous [`L.DomUtil.preventOutline`]().
function Lt(){ct&&(ct.style.outlineStyle=lt,ct=void 0,lt=void 0,zt(window,"keydown",Lt))}
// @function getSizedParentNode(el: HTMLElement): HTMLElement
// Finds the closest parent node which size (width and height) is not null.
function Qt(e){do{e=e.parentNode}while(!(e.offsetWidth&&e.offsetHeight||e===document.body));return e}
// @function getScale(el: HTMLElement): Object
// Computes the CSS scale currently applied on the element.
// Returns an object with `x` and `y` members as horizontal and vertical scales respectively,
// and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
function Rt(e){var t=e.getBoundingClientRect();// Read-only in old browsers.
return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var jt={__proto__:null,TRANSFORM:ut,TRANSITION:ht,TRANSITION_END:ft,get:dt,getStyle:pt,create:gt,remove:mt,empty:vt,toFront:yt,toBack:At,hasClass:bt,addClass:wt,removeClass:xt,setClass:Ct,getClass:_t,setOpacity:It,testProp:kt,setTransform:St,setPosition:Bt,getPosition:Mt,get disableTextSelection(){return at},get enableTextSelection(){return ot},disableImageDrag:Ot,enableImageDrag:Dt,preventOutline:Pt,restoreOutline:Lt,getSizedParentNode:Qt,getScale:Rt};
/*
   * @namespace DomEvent
   * Utility functions to work with the [DOM events](https://developer.mozilla.org/docs/Web/API/Event), used by Leaflet internally.
   */
// Inspired by John Resig, Dean Edwards and YUI addEvent implementations.
// @function on(el: HTMLElement, types: String, fn: Function, context?: Object): this
// Adds a listener function (`fn`) to a particular DOM event type of the
// element `el`. You can optionally specify the context of the listener
// (object the `this` keyword will point to). You can also pass several
// space-separated types (e.g. `'click dblclick'`).
// @alternative
// @function on(el: HTMLElement, eventMap: Object, context?: Object): this
// Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
function Nt(e,t,n,r){if(t&&"object"==typeof t)for(var i in t)Gt(e,i,t[i],n);else for(var a=0,o=(t=f(t)).length;a<o;a++)Gt(e,t[a],n,r);return this}var Ft="_leaflet_events";
// @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this
// Removes a previously added listener function.
// Note that if you passed a custom context to on, you must pass the same
// context to `off` in order to remove the listener.
// @alternative
// @function off(el: HTMLElement, eventMap: Object, context?: Object): this
// Removes a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
// @alternative
// @function off(el: HTMLElement, types: String): this
// Removes all previously added listeners of given types.
// @alternative
// @function off(el: HTMLElement): this
// Removes all previously added listeners from given HTMLElement
function zt(e,t,n,r){if(1===arguments.length)Ht(e),delete e[Ft];else if(t&&"object"==typeof t)for(var i in t)Vt(e,i,t[i],n);else if(t=f(t),2===arguments.length)Ht(e,(function(e){return-1!==y(t,e)}));else for(var a=0,o=t.length;a<o;a++)Vt(e,t[a],n,r);return this}function Ht(e,t){for(var n in e[Ft]){var r=n.split(/\d/)[0];t&&!t(r)||Vt(e,r,null,null,n)}}var Ut={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Gt(e,t,n,r){var i=t+o(n)+(r?"_"+o(r):"");if(e[Ft]&&e[Ft][i])return this;var a=function(t){return n.call(r||e,t||window.event)},s=a;!je.touchNative&&je.pointer&&0===t.indexOf("touch")?
// Needs DomEvent.Pointer.js
a=qe(e,t,a):je.touch&&"dblclick"===t?a=rt(e,a):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ut[t]||t,a,!!je.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){t=t||window.event,tn(e,t)&&s(t)},e.addEventListener(Ut[t],a,!1)):e.addEventListener(t,s,!1):e.attachEvent("on"+t,a),e[Ft]=e[Ft]||{},e[Ft][i]=a}function Vt(e,t,n,r,i){i=i||t+o(n)+(r?"_"+o(r):"");var a=e[Ft]&&e[Ft][i];if(!a)return this;!je.touchNative&&je.pointer&&0===t.indexOf("touch")?Ye(e,t,a):je.touch&&"dblclick"===t?it(e,a):"removeEventListener"in e?e.removeEventListener(Ut[t]||t,a,!1):e.detachEvent("on"+t,a),e[Ft][i]=null}
// @function stopPropagation(ev: DOMEvent): this
// Stop the given event from propagation to parent elements. Used inside the listener functions:
// ```js
// L.DomEvent.on(div, 'click', function (ev) {
// 	L.DomEvent.stopPropagation(ev);
// });
// ```
function Wt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?// In case of Leaflet event.
e.originalEvent._stopped=!0:e.cancelBubble=!0,this}
// @function disableScrollPropagation(el: HTMLElement): this
// Adds `stopPropagation` to the element's `'wheel'` events (plus browser variants).
function qt(e){return Gt(e,"wheel",Wt),this}
// @function disableClickPropagation(el: HTMLElement): this
// Adds `stopPropagation` to the element's `'click'`, `'dblclick'`, `'contextmenu'`,
// `'mousedown'` and `'touchstart'` events (plus browser variants).
function Yt(e){return Nt(e,"mousedown touchstart dblclick contextmenu",Wt),e._leaflet_disable_click=!0,this}
// @function preventDefault(ev: DOMEvent): this
// Prevents the default action of the DOM Event `ev` from happening (such as
// following a link in the href of the a element, or doing a POST request
// with page reload when a `<form>` is submitted).
// Use it inside listener functions.
function Kt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}
// @function stop(ev: DOMEvent): this
// Does `stopPropagation` and `preventDefault` at the same time.
function $t(e){return Kt(e),Wt(e),this}
// @function getPropagationPath(ev: DOMEvent): Array
// Compatibility polyfill for [`Event.composedPath()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath).
// Returns an array containing the `HTMLElement`s that the given DOM event
// should propagate to (if not stopped).
function Jt(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}
// @function getMousePosition(ev: DOMEvent, container?: HTMLElement): Point
// Gets normalized mouse position from a DOM event relative to the
// `container` (border excluded) or to the whole page if not specified.
function Xt(e,t){if(!t)return new O(e.clientX,e.clientY);var n=Rt(t),r=n.boundingClientRect;// left and top  values are in page scale (like the event clientX/Y)
return new O(
// offset.left/top values are in page scale (like clientX/Y),
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
(e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}
//  except , Safari and
// We need double the scroll pixels (see #7403 and #4538) for all Browsers
// except OSX (Mac) -> 3x, Chrome running on Linux 1x
var Zt=je.linux&&je.chrome?window.devicePixelRatio:je.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;
// @function getWheelDelta(ev: DOMEvent): Number
// Gets normalized wheel delta from a wheel DOM event, in vertical
// pixels scrolled (negative if scrolling down).
// Events from pointing devices without precise scrolling are mapped to
// a best guess of 60 pixels.
function en(e){return je.edge?e.wheelDeltaY/2:// Don't trust window-geometry-based delta
e.deltaY&&0===e.deltaMode?-e.deltaY/Zt:// Pixels
e.deltaY&&1===e.deltaMode?20*-e.deltaY:// Lines
e.deltaY&&2===e.deltaMode?60*-e.deltaY:// Pages
e.deltaX||e.deltaZ?0:// Skip horizontal/depth wheel events
e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:// Legacy IE pixels
e.detail&&Math.abs(e.detail)<32765?20*-e.detail:// Legacy Moz lines
e.detail?e.detail/-32765*60:// Legacy Moz pages
0}
// check if element really left/entered the event target (for mouseenter/mouseleave)
function tn(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var nn={__proto__:null,on:Nt,off:zt,stopPropagation:Wt,disableScrollPropagation:qt,disableClickPropagation:Yt,preventDefault:Kt,stop:$t,getPropagationPath:Jt,getMousePosition:Xt,getWheelDelta:en,isExternalTarget:tn,addListener:Nt,removeListener:zt},rn=T.extend({
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
// Run an animation of a given element to a new position, optionally setting
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
// `0.5` by default).
run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Mt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,
// @event start: Event
// Fired when the animation starts
this.fire("start"),this._animate()},
// @method stop()
// Stops the animation (if currently running).
stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){
// animation loop
this._animId=I(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Bt(this._el,n),
// @event step: Event
// Fired continuously during the animation.
this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,
// @event end: Event
// Fired when the animation ends.
this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),an=T.extend({options:{
// @section Map State Options
// @option crs: CRS = L.CRS.EPSG3857
// The [Coordinate Reference System](#crs) to use. Don't change this if you're not
// sure what it means.
crs:K,
// @option center: LatLng = undefined
// Initial geographic center of the map
center:void 0,
// @option zoom: Number = undefined
// Initial map zoom level
zoom:void 0,
// @option minZoom: Number = *
// Minimum zoom level of the map.
// If not specified and at least one `GridLayer` or `TileLayer` is in the map,
// the lowest of their `minZoom` options will be used instead.
minZoom:void 0,
// @option maxZoom: Number = *
// Maximum zoom level of the map.
// If not specified and at least one `GridLayer` or `TileLayer` is in the map,
// the highest of their `maxZoom` options will be used instead.
maxZoom:void 0,
// @option layers: Layer[] = []
// Array of layers that will be added to the map initially
layers:[],
// @option maxBounds: LatLngBounds = null
// When this option is set, the map restricts the view to the given
// geographical bounds, bouncing the user back if the user tries to pan
// outside the view. To set the restriction dynamically, use
// [`setMaxBounds`](#map-setmaxbounds) method.
maxBounds:void 0,
// @option renderer: Renderer = *
// The default method for drawing vector layers on the map. `L.SVG`
// or `L.Canvas` by default depending on browser support.
renderer:void 0,
// @section Animation Options
// @option zoomAnimation: Boolean = true
// Whether the map zoom animation is enabled. By default it's enabled
// in all browsers that support CSS3 Transitions except Android.
zoomAnimation:!0,
// @option zoomAnimationThreshold: Number = 4
// Won't animate zoom if the zoom difference exceeds this value.
zoomAnimationThreshold:4,
// @option fadeAnimation: Boolean = true
// Whether the tile fade animation is enabled. By default it's enabled
// in all browsers that support CSS3 Transitions except Android.
fadeAnimation:!0,
// @option markerZoomAnimation: Boolean = true
// Whether markers animate their zoom with the zoom animation, if disabled
// they will disappear for the length of the animation. By default it's
// enabled in all browsers that support CSS3 Transitions except Android.
markerZoomAnimation:!0,
// @option transform3DLimit: Number = 2^23
// Defines the maximum size of a CSS translation transform. The default
// value should not be changed unless a web browser positions layers in
// the wrong place after doing a large `panBy`.
transform3DLimit:8388608,// Precision limit of a 32-bit float
// @section Interaction Options
// @option zoomSnap: Number = 1
// Forces the map's zoom level to always be a multiple of this, particularly
// right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.
// By default, the zoom level snaps to the nearest integer; lower values
// (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`
// means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.
zoomSnap:1,
// @option zoomDelta: Number = 1
// Controls how much the map's zoom level will change after a
// [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`
// or `-` on the keyboard, or using the [zoom controls](#control-zoom).
// Values smaller than `1` (e.g. `0.5`) allow for greater granularity.
zoomDelta:1,
// @option trackResize: Boolean = true
// Whether the map automatically handles browser window resize to update itself.
trackResize:!0},initialize:function(e,t){// (HTMLElement or String, Object)
t=d(this,t),
// Make sure to assign internal flags at the beginning,
// to avoid inconsistent state in some edge cases.
this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),
// hack for https://github.com/Leaflet/Leaflet/issues/1980
this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(z(t.center),t.zoom,{reset:!0}),this.callInitHooks(),
// don't animate on browsers without hardware-accelerated transitions or old Android/Opera
this._zoomAnimated=ht&&je.any3d&&!je.mobileOpera&&this.options.zoomAnimation,
// zoom transitions run with the same duration for all layers, so if one of transitionend events
// happens after starting zoom animation (propagating to the map pane), we know that it ended globally
this._zoomAnimated&&(this._createAnimProxy(),Nt(this._proxy,ft,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},
// @section Methods for modifying map state
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
// Sets the view of the map (geographical center and zoom) with the given
// animation options.
setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(z(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(
// prevent resize handler call, the view will refresh after animation anyway
clearTimeout(this._sizeTimer),this):(
// animation didn't start, just reset the map view
this._resetView(e,t,r.pan&&r.pan.noMoveStart),this)},
// @method setZoom(zoom: Number, options?: Zoom/pan options): this
// Sets the zoom of the map.
setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},
// @method zoomIn(delta?: Number, options?: Zoom options): this
// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
zoomIn:function(e,t){return e=e||(je.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},
// @method zoomOut(delta?: Number, options?: Zoom options): this
// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
zoomOut:function(e,t){return e=e||(je.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},
// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
// Zooms the map while keeping a specified geographical point on the map
// stationary (e.g. used internally for scroll zoom and double-click zoom).
// @alternative
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof O?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():N(e);var n=P(t.paddingTopLeft||t.padding||[0,0]),r=P(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"==typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},
// @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this
// Sets a map view that contains the given geographical bounds with the
// maximum zoom level possible.
fitBounds:function(e,t){if(!(e=N(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},
// @method fitWorld(options?: fitBounds options): this
// Sets a map view that mostly contains the whole world with the maximum
// zoom level possible.
fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},
// @method panTo(latlng: LatLng, options?: Pan options): this
// Pans the map to a given center.
panTo:function(e,t){// (LatLng)
return this.setView(e,this._zoom,{pan:t})},
// @method panBy(offset: Point, options?: Pan options): this
// Pans the map by a given number of pixels (animated).
panBy:function(e,t){if(t=t||{},!(e=P(e).round()).x&&!e.y)return this.fire("moveend");
// If we pan too far, Chrome gets issues with tiles
// and makes them disappear or appear in the wrong place (slightly offset) #2602
if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;
// animate pan unless animate: false specified
if(this._panAnim||(this._panAnim=new rn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),
// don't fire movestart if animating inertia
t.noMoveStart||this.fire("movestart"),!1!==t.animate){wt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},
// @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this
// Sets the view of the map (geographical center and zoom) performing a smooth
// pan-zoom animation.
flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!je.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=z(e),t=void 0===t?o:t;var s=Math.max(a.x,a.y),c=s*this.getZoomScale(o,t),l=i.distanceTo(r)||1,u=1.42,h=u*u;function f(e){var t=(c*c-s*s+(e?-1:1)*h*h*l*l)/(2*(e?c:s)*h*l),n=Math.sqrt(t*t+1)-t;
// workaround for floating point precision bug when sq = 0, log = -Infinite,
// thus triggering an infinite loop in flyTo
return n<1e-9?-18:Math.log(n)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}function g(e){return d(e)/p(e)}var m=f(0);function v(e){return s*(p(m)/p(m+u*e))}function y(e){return s*(p(m)*g(m+u*e)-d(m))/h}function A(e){return 1-Math.pow(1-e,1.5)}var b=Date.now(),w=(f(1)-m)/u,x=n.duration?1e3*n.duration:1e3*w*.8;function C(){var n=(Date.now()-b)/x,a=A(n)*w;n<=1?(this._flyToFrame=I(C,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(y(a)/l)),o),this.getScaleZoom(s/v(a),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),C.call(this),this},
// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
// but takes a bounds parameter like [`fitBounds`](#map-fitbounds).
flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},
// @method setMaxBounds(bounds: LatLngBounds): this
// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
setMaxBounds:function(e){return e=N(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},
// @method setMinZoom(zoom: Number): this
// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},
// @method setMaxZoom(zoom: Number): this
// Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).
setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},
// @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this
// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,N(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},
// @method panInside(latlng: LatLng, options?: padding options): this
// Pans the map the minimum amount to make the `latlng` visible. Use
// padding options to fit the display to more restricted bounds.
// If `latlng` is already within the (optionally padded) display bounds,
// the map will not be panned.
panInside:function(e,t){var n=P((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=P(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=R([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},
// @method invalidateSize(options: Zoom/pan options): this
// Checks if the map container size changed and updates the map if so —
// call it after you've changed the map size dynamically, also animating
// pan by default. If `options.pan` is `false`, panning will not occur.
// If `options.debounceMoveend` is `true`, it will delay `moveend` event so
// that it doesn't happen often even if the method is called many
// times in a row.
// @alternative
// @method invalidateSize(animate: Boolean): this
// Checks if the map container size changed and updates the map if so —
// call it after you've changed the map size dynamically, also animating
// pan by default.
invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),a=t.divideBy(2).round(),o=r.divideBy(2).round(),s=a.subtract(o);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},
// @section Methods for modifying map state
// @method stop(): this
// Stops the currently running `panTo` or `flyTo` animation, if any.
stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},
// @section Geolocation methods
// @method locate(options?: Locate options): this
// Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)
// event with location data on success or a [`locationerror`](#map-locationerror) event on failure,
// and optionally sets the map view to the user's location with respect to
// detection accuracy (or to the world view if geolocation failed).
// Note that, if your page doesn't use HTTPS, this method will fail in
// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
// See `Locate options` for more details.
locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},
// @method stopLocate(): this
// Stops watching location previously initiated by `map.locate({watch: true})`
// and aborts resetting the map view if map.locate was called with
// `{setView: true}`.
stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),
// @section Location events
// @event locationerror: ErrorEvent
// Fired when geolocation (using the [`locate`](#map-locate) method) failed.
this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new F(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var a={latlng:t,bounds:n,timestamp:e.timestamp};for(var o in e.coords)"number"==typeof e.coords[o]&&(a[o]=e.coords[o]);
// @event locationfound: LocationEvent
// Fired when geolocation (using the [`locate`](#map-locate) method)
// went successfully.
this.fire("locationfound",a)}},
// TODO Appropriate docs section?
// @section Other Methods
// @method addHandler(name: String, HandlerClass: Function): this
// Adds a new `Handler` to the map, given its name and constructor function.
addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},
// @method remove(): this
// Destroys the map and clears all related event listeners.
remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{
// throws error in IE6-8
delete this._container._leaflet_id,delete this._containerId}catch(e){
/*eslint-disable */
this._container._leaflet_id=void 0,
/* eslint-enable */
this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),mt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&
// @section Map state change events
// @event unload: Event
// Fired when the map is destroyed with [remove](#map-remove) method.
this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)mt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},
// @section Other Methods
// @method createPane(name: String, container?: HTMLElement): HTMLElement
// Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,
// then returns it. The pane is created as a child of `container`, or
// as a child of the main map pane if not set.
createPane:function(e,t){var n=gt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},
// @section Methods for Getting Map State
// @method getCenter(): LatLng
// Returns the geographical center of the map view
getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},
// @method getZoom(): Number
// Returns the current zoom level of the map view
getZoom:function(){return this._zoom},
// @method getBounds(): LatLngBounds
// Returns the geographical bounds visible in the current map view
getBounds:function(){var e=this.getPixelBounds();return new j(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},
// @method getMinZoom(): Number
// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},
// @method getMaxZoom(): Number
// Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).
getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},
// @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number
// Returns the maximum zoom level on which the given bounds fit to the map
// view in its entirety. If `inside` (optional) is set to `true`, the method
// instead returns the minimum zoom level on which the map view fits into
// the given bounds in its entirety.
getBoundsZoom:function(e,t,n){// (LatLngBounds[, Boolean, Point]) -> Number
e=N(e),n=P(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=R(this.project(s,r),this.project(o,r)).getSize(),u=je.any3d?this.options.zoomSnap:1,h=c.x/l.x,f=c.y/l.y,d=t?Math.max(h,f):Math.min(h,f);return r=this.getScaleZoom(d,r),u&&(r=Math.round(r/(u/100))*(u/100),// don't jump if within 1% of a snap level
r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},
// @method getSize(): Point
// Returns the current size of the map container (in pixels).
getSize:function(){return this._size&&!this._sizeChanged||(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},
// @method getPixelBounds(): Bounds
// Returns the bounds of the current map view in projected pixel
// coordinates (sometimes useful in layer and overlay implementations).
getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new Q(n,n.add(this.getSize()))},
// TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
// the map pane? "left point of the map layer" can be confusing, specially
// since there can be negative offsets.
// @method getPixelOrigin(): Point
// Returns the projected pixel coordinates of the top left point of
// the map layer (useful in custom layer and overlay implementations).
getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},
// @method getPixelWorldBounds(zoom?: Number): Bounds
// Returns the world's bounds in pixel coordinates for zoom level `zoom`.
// If `zoom` is omitted, the map's current zoom level is used.
getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},
// @section Other Methods
// @method getPane(pane: String|HTMLElement): HTMLElement
// Returns a [map pane](#map-pane), given its name or its HTML element (its identity).
getPane:function(e){return"string"==typeof e?this._panes[e]:e},
// @method getPanes(): Object
// Returns a plain object containing the names of all [panes](#map-pane) as keys and
// the panes as values.
getPanes:function(){return this._panes},
// @method getContainer: HTMLElement
// Returns the HTML element that contains the map.
getContainer:function(){return this._container},
// @section Conversion Methods
// @method getZoomScale(toZoom: Number, fromZoom: Number): Number
// Returns the scale factor to be applied to a map transition from zoom level
// `fromZoom` to `toZoom`. Used internally to help with zoom animations.
getZoomScale:function(e,t){
// TODO replace with universal implementation after refactoring projections
var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},
// @method getScaleZoom(scale: Number, fromZoom: Number): Number
// Returns the zoom level that the map would end up at, if it is at `fromZoom`
// level and everything is scaled by a factor of `scale`. Inverse of
// [`getZoomScale`](#map-getZoomScale).
getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},
// @method project(latlng: LatLng, zoom: Number): Point
// Projects a geographical coordinate `LatLng` according to the projection
// of the map's CRS, then scales it according to `zoom` and the CRS's
// `Transformation`. The result is pixel coordinate relative to
// the CRS origin.
project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(z(e),t)},
// @method unproject(point: Point, zoom: Number): LatLng
// Inverse of [`project`](#map-project).
unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(P(e),t)},
// @method layerPointToLatLng(point: Point): LatLng
// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
// returns the corresponding geographical coordinate (for the current zoom level).
layerPointToLatLng:function(e){var t=P(e).add(this.getPixelOrigin());return this.unproject(t)},
// @method latLngToLayerPoint(latlng: LatLng): Point
// Given a geographical coordinate, returns the corresponding pixel coordinate
// relative to the [origin pixel](#map-getpixelorigin).
latLngToLayerPoint:function(e){return this.project(z(e))._round()._subtract(this.getPixelOrigin())},
// @method wrapLatLng(latlng: LatLng): LatLng
// Returns a `LatLng` where `lat` and `lng` has been wrapped according to the
// map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the
// CRS's bounds.
// By default this means longitude is wrapped around the dateline so its
// value is between -180 and +180 degrees.
wrapLatLng:function(e){return this.options.crs.wrapLatLng(z(e))},
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
// Returns a `LatLngBounds` with the same size as the given one, ensuring that
// its center is within the CRS's bounds.
// By default this means the center longitude is wrapped around the dateline so its
// value is between -180 and +180 degrees, and the majority of the bounds
// overlaps the CRS's bounds.
wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(N(e))},
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
// Returns the distance between two geographical coordinates according to
// the map's CRS. By default this measures distance in meters.
distance:function(e,t){return this.options.crs.distance(z(e),z(t))},
// @method containerPointToLayerPoint(point: Point): Point
// Given a pixel coordinate relative to the map container, returns the corresponding
// pixel coordinate relative to the [origin pixel](#map-getpixelorigin).
containerPointToLayerPoint:function(e){// (Point)
return P(e).subtract(this._getMapPanePos())},
// @method layerPointToContainerPoint(point: Point): Point
// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
// returns the corresponding pixel coordinate relative to the map container.
layerPointToContainerPoint:function(e){// (Point)
return P(e).add(this._getMapPanePos())},
// @method containerPointToLatLng(point: Point): LatLng
// Given a pixel coordinate relative to the map container, returns
// the corresponding geographical coordinate (for the current zoom level).
containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(P(e));return this.layerPointToLatLng(t)},
// @method latLngToContainerPoint(latlng: LatLng): Point
// Given a geographical coordinate, returns the corresponding pixel coordinate
// relative to the map container.
latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(z(e)))},
// @method mouseEventToContainerPoint(ev: MouseEvent): Point
// Given a MouseEvent object, returns the pixel coordinate relative to the
// map container where the event took place.
mouseEventToContainerPoint:function(e){return Xt(e,this._container)},
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
// Given a MouseEvent object, returns the pixel coordinate relative to
// the [origin pixel](#map-getpixelorigin) where the event took place.
mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},
// @method mouseEventToLatLng(ev: MouseEvent): LatLng
// Given a MouseEvent object, returns geographical coordinate where the
// event took place.
mouseEventToLatLng:function(e){// (MouseEvent)
return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},
// map initialization methods
_initContainer:function(e){var t=this._container=dt(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Nt(t,"scroll",this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&je.any3d,wt(e,"leaflet-container"+(je.touch?" leaflet-touch":"")+(je.retina?" leaflet-retina":"")+(je.ielt9?" leaflet-oldie":"")+(je.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=pt(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},
// @section
// Panes are DOM elements used to control the ordering of layers on the map. You
// can access panes with [`map.getPane`](#map-getpane) or
// [`map.getPanes`](#map-getpanes) methods. New panes can be created with the
// [`map.createPane`](#map-createpane) method.
// Every map has the following default panes that differ only in zIndex.
// @pane mapPane: HTMLElement = 'auto'
// Pane that contains all other map panes
this._mapPane=this.createPane("mapPane",this._container),Bt(this._mapPane,new O(0,0)),
// @pane tilePane: HTMLElement = 200
// Pane for `GridLayer`s and `TileLayer`s
this.createPane("tilePane"),
// @pane overlayPane: HTMLElement = 400
// Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s
this.createPane("overlayPane"),
// @pane shadowPane: HTMLElement = 500
// Pane for overlay shadows (e.g. `Marker` shadows)
this.createPane("shadowPane"),
// @pane markerPane: HTMLElement = 600
// Pane for `Icon`s of `Marker`s
this.createPane("markerPane"),
// @pane tooltipPane: HTMLElement = 650
// Pane for `Tooltip`s.
this.createPane("tooltipPane"),
// @pane popupPane: HTMLElement = 700
// Pane for `Popup`s.
this.createPane("popupPane"),this.options.markerZoomAnimation||(wt(e.markerPane,"leaflet-zoom-hide"),wt(e.shadowPane,"leaflet-zoom-hide"))},
// private methods that modify map state
// @section Map state change events
_resetView:function(e,t,n){Bt(this._mapPane,new O(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),
// @event viewreset: Event
// Fired when the map needs to redraw its content (this usually happens
// on map zoom or load). Very useful for creating custom overlays.
this.fire("viewreset"),
// @event load: Event
// Fired when the map is initialized (when its center and zoom are set
// for the first time).
r&&this.fire("load")},_moveStart:function(e,t){
// @event zoomstart: Event
// Fired when the map zoom is about to change (e.g. before zoom animation).
// @event movestart: Event
// Fired when the view of the map starts changing (e.g. user starts dragging the map).
return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&// Always fire 'zoom' if pinching because #3530
this.fire("zoom",n):(
// @event zoom: Event
// Fired repeatedly during any change in zoom level,
// including zoom and fly animations.
(i||n&&n.pinch)&&// Always fire 'zoom' if pinching because #3530
this.fire("zoom",n),
// @event move: Event
// Fired repeatedly during any movement of the map,
// including pan and fly animations.
this.fire("move",n)),this},_moveEnd:function(e){
// @event moveend: Event
// Fired when the center of the map stops changing
// (e.g. user stopped dragging the map or after non-centered zoom).
// @event zoomend: Event
// Fired when the map zoom changed, after any animations.
return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Bt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},
// DOM event handling
// @section Interaction events
_initEvents:function(e){this._targets={},this._targets[o(this._container)]=this;var t=e?zt:Nt;
// @event click: MouseEvent
// Fired when the user clicks (or taps) the map.
// @event dblclick: MouseEvent
// Fired when the user double-clicks (or double-taps) the map.
// @event mousedown: MouseEvent
// Fired when the user pushes the mouse button on the map.
// @event mouseup: MouseEvent
// Fired when the user releases the mouse button on the map.
// @event mouseover: MouseEvent
// Fired when the mouse enters the map.
// @event mouseout: MouseEvent
// Fired when the mouse leaves the map.
// @event mousemove: MouseEvent
// Fired while the mouse moves over the map.
// @event contextmenu: MouseEvent
// Fired when the user pushes the right mouse button on the map, prevents
// default browser context menu from showing if there are listeners on
// this event. Also fired on mobile when the user holds a single touch
// for a second (also called long press).
// @event keypress: KeyboardEvent
// Fired when the user presses a key from the keyboard that produces a character value while the map is focused.
// @event keydown: KeyboardEvent
// Fired when the user presses a key from the keyboard while the map is focused. Unlike the `keypress` event,
// the `keydown` event is fired for keys that produce a character value and for keys
// that do not produce a character value.
// @event keyup: KeyboardEvent
// Fired when the user releases a key from the keyboard while the map is focused.
t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),je.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=I((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&
// https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have
// a pixel offset on very high values, see: https://jsfiddle.net/dg6r5hhb/
this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){
// Prevent firing click after you just dragged an object.
s=!0;break}if(n&&n.listens(t,!0)){if(i&&!tn(a,e))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||s||i||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&
// prevents outline when clicking on keyboard-focusable element
Pt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){
// Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).
// @event preclick: MouseEvent
// Fired before mouse click on the map (sometimes useful when you
// want something to happen on click before any existing click
// handlers start running).
var i=n({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}
// Find the layer the event is propagating from and its parents.
var a=this._findEventTargets(e,t);if(r){// pick only targets with listeners
for(var o=[],s=0;s<r.length;s++)r[s].listens(t,!0)&&o.push(r[s]);a=o.concat(a)}if(a.length){"contextmenu"===t&&Kt(e);var c=a[0],l={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var u=c.getLatLng&&(!c._radius||c._radius<=10);l.containerPoint=u?this.latLngToContainerPoint(c.getLatLng()):this.mouseEventToContainerPoint(e),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=u?c.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(s=0;s<a.length;s++)if(a[s].fire(t,l,!0),l.originalEvent._stopped||!1===a[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},
// @section Other Methods
// @method whenReady(fn: Function, context?: Object): this
// Runs the given function `fn` when the map gets initialized with
// a view (center and zoom) and at least one layer, or immediately
// if it's already initialized, optionally passing a function context.
whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},
// private methods for getting map state
_getMapPanePos:function(){return Mt(this._mapPane)||new O(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return R([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},
// layer point of the current center
_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},
// offset of the specified place to the current center in pixels
_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},
// adjust center for view to get inside bounds
_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new Q(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);
// If offset is less than a pixel, ignore.
// This prevents unstable projections from getting into
// an infinite loop of tiny offsets.
return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?e:this.unproject(r.add(o),t)},
// adjust offset for view to get inside bounds
_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new Q(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},
// returns offset needed for pxBounds to get inside maxBounds at a specified zoom
_getBoundsOffset:function(e,t,n){var r=R(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new O(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=je.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){
// difference between the new and current centers in pixels
var n=this._getCenterOffset(e)._trunc();
// don't animate too far unless animate: true specified in options
return!(!0!==(t&&t.animate)&&!this.getSize().contains(n)||(this.panBy(n,t),0))},_createAnimProxy:function(){var e=this._proxy=gt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=ut,n=this._proxy.style[t];St(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),
// workaround for case when transform is the same and so transitionend event is not fired
n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){mt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();St(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;
// don't animate if disabled, not supported or zoom difference is too large
if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;
// offset is the pixel coords of the zoom origin relative to the current center
var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);
// don't animate if the zoom origin isn't within one screen from the current center, unless forced
return!(!0!==n.animate&&!this.getSize().contains(i)||(I((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,
// remember what center/zoom to set after animation
this._animateToCenter=e,this._animateToZoom=t,wt(this._mapPane,"leaflet-zoom-anim")),
// @section Other Events
// @event zoomanim: ZoomAnimEvent
// Fired at least once per zoom animation. For continuous zoom, like pinch zooming, fired once per frame during zoom.
this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),
// Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693
setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});
/*
   * @class PosAnimation
   * @aka L.PosAnimation
   * @inherits Evented
   * Used internally for panning animations, utilizing CSS3 Transitions for modern browsers and a timer fallback for IE6-9.
   *
   * @example
   * ```js
   * var myPositionMarker = L.marker([48.864716, 2.294694]).addTo(map);
   *
   * myPositionMarker.on("click", function() {
   * 	var pos = map.latLngToLayerPoint(myPositionMarker.getLatLng());
   * 	pos.y -= 25;
   * 	var fx = new L.PosAnimation();
   *
   * 	fx.once('end',function() {
   * 		pos.y += 25;
   * 		fx.run(myPositionMarker._icon, pos, 0.8);
   * 	});
   *
   * 	fx.run(myPositionMarker._icon, pos, 0.3);
   * });
   *
   * ```
   *
   * @constructor L.PosAnimation()
   * Creates a `PosAnimation` object.
   *
   */
// @section
// @factory L.map(id: String, options?: Map options)
// Instantiates a map object given the DOM ID of a `<div>` element
// and optionally an object literal with `Map options`.
// @alternative
// @factory L.map(el: HTMLElement, options?: Map options)
// Instantiates a map object given an instance of a `<div>` HTML element
// and optionally an object literal with `Map options`.
function on(e,t){return new an(e,t)}
/*
   * @class Control
   * @aka L.Control
   * @inherits Class
   *
   * L.Control is a base class for implementing map controls. Handles positioning.
   * All other controls extend from this class.
   */var sn=S.extend({
// @section
// @aka Control Options
options:{
// @option position: String = 'topright'
// The position of the control (one of the map corners). Possible values are `'topleft'`,
// `'topright'`, `'bottomleft'` or `'bottomright'`
position:"topright"},initialize:function(e){d(this,e)},
/* @section
  	 * Classes extending L.Control will inherit the following methods:
  	 *
  	 * @method getPosition: string
  	 * Returns the position of the control.
  	 */
getPosition:function(){return this.options.position},
// @method setPosition(position: string): this
// Sets the position of the control.
setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},
// @method getContainer: HTMLElement
// Returns the HTMLElement that contains the control.
getContainer:function(){return this._container},
// @method addTo(map: Map): this
// Adds the control to the given map.
addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return wt(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},
// @method remove: this
// Removes the control from the map it is currently active on.
remove:function(){return this._map?(mt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){
// if map exists and event is not a keyboard event
this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),cn=function(e){return new sn(e)};
/* @section Extension methods
   * @uninheritable
   *
   * Every control should extend from `L.Control` and (re-)implement the following methods.
   *
   * @method onAdd(map: Map): HTMLElement
   * Should return the container DOM element for the control and add listeners on relevant map events. Called on [`control.addTo(map)`](#control-addTo).
   *
   * @method onRemove(map: Map)
   * Optional method. Should contain all clean up code that removes the listeners previously added in [`onAdd`](#control-onadd). Called on [`control.remove()`](#control-remove).
   */
/* @namespace Map
   * @section Methods for Layers and Controls
   */
an.include({
// @method addControl(control: Control): this
// Adds the given control to the map
addControl:function(e){return e.addTo(this),this},
// @method removeControl(control: Control): this
// Removes the given control from the map
removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=gt("div",t+"control-container",this._container);function r(r,i){var a=t+r+" "+t+i;e[r+i]=gt("div",a,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)mt(this._controlCorners[e]);mt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});
/*
   * @class Control.Layers
   * @aka L.Control.Layers
   * @inherits Control
   *
   * The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the [detailed example](https://leafletjs.com/examples/layers-control/)). Extends `Control`.
   *
   * @example
   *
   * ```js
   * var baseLayers = {
   * 	"Mapbox": mapbox,
   * 	"OpenStreetMap": osm
   * };
   *
   * var overlays = {
   * 	"Marker": marker,
   * 	"Roads": roadsLayer
   * };
   *
   * L.control.layers(baseLayers, overlays).addTo(map);
   * ```
   *
   * The `baseLayers` and `overlays` parameters are object literals with layer names as keys and `Layer` objects as values:
   *
   * ```js
   * {
   *     "<someName1>": layer1,
   *     "<someName2>": layer2
   * }
   * ```
   *
   * The layer names can contain HTML, which allows you to add additional styling to the items:
   *
   * ```js
   * {"<img src='my-layer-icon' /> <span class='my-layer-item'>My Layer</span>": myLayer}
   * ```
   */
var ln=sn.extend({
// @section
// @aka Control.Layers options
options:{
// @option collapsed: Boolean = true
// If `true`, the control will be collapsed into an icon and expanded on mouse hover, touch, or keyboard activation.
collapsed:!0,position:"topright",
// @option autoZIndex: Boolean = true
// If `true`, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.
autoZIndex:!0,
// @option hideSingleBase: Boolean = false
// If `true`, the base layers in the control will be hidden when there is only one.
hideSingleBase:!1,
// @option sortLayers: Boolean = false
// Whether to sort the layers. When `false`, layers will keep the order
// in which they were added to the control.
sortLayers:!1,
// @option sortFunction: Function = *
// A [compare function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
// that will be used for sorting the layers, when `sortLayers` is `true`.
// The function receives both the `L.Layer` instances and their names, as in
// `sortFunction(layerA, layerB, nameA, nameB)`.
// By default, it sorts layers alphabetically by their name.
sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){
// Trigger expand after Layers Control has been inserted into DOM so that is now has an actual height.
return sn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},
// @method addBaseLayer(layer: Layer, name: String): this
// Adds a base layer (radio button entry) with the given name to the control.
addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},
// @method addOverlay(layer: Layer, name: String): this
// Adds an overlay (checkbox entry) with the given name to the control.
addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},
// @method removeLayer(layer: Layer): this
// Remove the given layer from the control.
removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(o(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},
// @method expand(): this
// Expand the control container if collapsed.
expand:function(){wt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(wt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):xt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},
// @method collapse(): this
// Collapse the control container if expanded.
collapse:function(){return xt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=gt("div",e),n=this.options.collapsed;
// makes this work on IE touch devices by stopping it from firing a mouseout event when the touch is released
t.setAttribute("aria-haspopup",!0),Yt(t),qt(t);var r=this._section=gt("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Nt(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=gt("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),Nt(i,{keydown:function(e){13===e.keyCode&&this._expandSafely()},
// Certain screen readers intercept the key event and instead send a click event
click:function(e){Kt(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=gt("div",e+"-base",r),this._separator=gt("div",e+"-separator",r),this._overlaysList=gt("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&o(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;vt(this._baseLayersList),vt(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;
// Hide base layers section if there's only one layer.
return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;
// @namespace Map
// @section Layer events
// @event baselayerchange: LayersControlEvent
// Fired when the base layer is changed through the [layers control](#control-layers).
// @event overlayadd: LayersControlEvent
// Fired when an overlay is selected through the [layers control](#control-layers).
// @event overlayremove: LayersControlEvent
// Fired when an overlay is deselected through the [layers control](#control-layers).
// @namespace Control.Layers
n&&this._map.fire(n,t)},
// IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see https://stackoverflow.com/a/119079)
_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+o(this),r),this._layerControlInputs.push(t),t.layerId=o(e.layer),Nt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;
// Helps from preventing layer control flicker when checkboxes are disabled
// https://github.com/Leaflet/Leaflet/issues/2771
var a=document.createElement("span");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){
// expanding the control on mobile with a click can cause adding a layer - we don't want this
if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)e=n[a],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);
// Bugfix issue 2318: Should remove all old layers before readding new ones
for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,Nt(e,"click",Kt),this.expand();var t=this;setTimeout((function(){zt(e,"click",Kt),t._preventClick=!1}))}}),un=function(e,t,n){return new ln(e,t,n)},hn=sn.extend({
// @section
// @aka Control.Zoom options
options:{position:"topleft",
// @option zoomInText: String = '<span aria-hidden="true">+</span>'
// The text set on the 'zoom in' button.
zoomInText:'<span aria-hidden="true">+</span>',
// @option zoomInTitle: String = 'Zoom in'
// The title set on the 'zoom in' button.
zoomInTitle:"Zoom in",
// @option zoomOutText: String = '<span aria-hidden="true">&#x2212;</span>'
// The text set on the 'zoom out' button.
zoomOutText:'<span aria-hidden="true">&#x2212;</span>',
// @option zoomOutTitle: String = 'Zoom out'
// The title set on the 'zoom out' button.
zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=gt("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=gt("a",n,r);return a.innerHTML=e,a.href="#",a.title=t,
/*
  		 * Will force screen readers like VoiceOver to read this as "Zoom in - button"
  		 */
a.setAttribute("role","button"),a.setAttribute("aria-label",t),Yt(a),Nt(a,"click",$t),Nt(a,"click",i,this),Nt(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";xt(this._zoomInButton,t),xt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(wt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(wt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});
// @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)
// Creates a layers control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.
// @namespace Map
// @section Control options
// @option zoomControl: Boolean = true
// Whether a [zoom control](#control-zoom) is added to the map by default.
an.mergeOptions({zoomControl:!0}),an.addInitHook((function(){this.options.zoomControl&&(
// @section Controls
// @property zoomControl: Control.Zoom
// The default zoom control (only available if the
// [`zoomControl` option](#map-zoomcontrol) was `true` when creating the map).
this.zoomControl=new hn,this.addControl(this.zoomControl))}));
// @namespace Control.Zoom
// @factory L.control.zoom(options: Control.Zoom options)
// Creates a zoom control
var fn=function(e){return new hn(e)},dn=sn.extend({
// @section
// @aka Control.Scale options
options:{position:"bottomleft",
// @option maxWidth: Number = 100
// Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).
maxWidth:100,
// @option metric: Boolean = True
// Whether to show the metric scale line (m/km).
metric:!0,
// @option imperial: Boolean = True
// Whether to show the imperial scale line (mi/ft).
imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=gt("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=gt("div",t,n)),e.imperial&&(this._iScale=gt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(e){return new dn(e)},gn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mn=sn.extend({
// @section
// @aka Control.Attribution options
options:{position:"bottomright",
// @option prefix: String|false = 'Leaflet'
// The HTML text shown before the attributions. Pass `false` to disable.
prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(je.inlineSvg?gn+" ":"")+"Leaflet</a>"},initialize:function(e){d(this,e),this._attributions={}},onAdd:function(e){
// TODO ugly, refactor
for(var t in e.attributionControl=this,this._container=gt("div","leaflet-control-attribution"),Yt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},
// @method setPrefix(prefix: String|false): this
// The HTML text shown before the attributions. Pass `false` to disable.
setPrefix:function(e){return this.options.prefix=e,this._update(),this},
// @method addAttribution(text: String): this
// Adds an attribution text (e.g. `'&copy; OpenStreetMap contributors'`).
addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},
// @method removeAttribution(text: String): this
// Removes an attribution text.
removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});
/*
   * @class Control.Scale
   * @aka L.Control.Scale
   * @inherits Control
   *
   * A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Extends `Control`.
   *
   * @example
   *
   * ```js
   * L.control.scale().addTo(map);
   * ```
   */
// @namespace Map
// @section Control options
// @option attributionControl: Boolean = true
// Whether a [attribution control](#control-attribution) is added to the map by default.
an.mergeOptions({attributionControl:!0}),an.addInitHook((function(){this.options.attributionControl&&(new mn).addTo(this)}));
// @namespace Control.Attribution
// @factory L.control.attribution(options: Control.Attribution options)
// Creates an attribution control.
var vn=function(e){return new mn(e)};sn.Layers=ln,sn.Zoom=hn,sn.Scale=dn,sn.Attribution=mn,cn.layers=un,cn.zoom=fn,cn.scale=pn,cn.attribution=vn;
/*
  	L.Handler is a base class for handler classes that are used internally to inject
  	interaction features like dragging to classes like Map and Marker.
  */
// @class Handler
// @aka L.Handler
// Abstract class for map interaction handlers
var yn=S.extend({initialize:function(e){this._map=e},
// @method enable(): this
// Enables the handler
enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},
// @method disable(): this
// Disables the handler
disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},
// @method enabled(): Boolean
// Returns `true` if the handler is enabled
enabled:function(){return!!this._enabled}
// @section Extension methods
// Classes inheriting from `Handler` must implement the two following methods:
// @method addHooks()
// Called when the handler is enabled, should add event hooks.
// @method removeHooks()
// Called when the handler is disabled, should remove the event hooks added previously.
});
// @section There is static function which can be called without instantiating L.Handler:
// @function addTo(map: Map, name: String): this
// Adds a new Handler to the given map with the given name.
yn.addTo=function(e,t){return e.addHandler(t,this),this};var An={Events:M},bn=je.touch?"touchstart mousedown":"mousedown",wn=T.extend({options:{
// @section
// @aka Draggable options
// @option clickTolerance: Number = 3
// The max number of pixels a user can shift the mouse pointer during a click
// for it to be considered a valid click (as opposed to a mouse drag).
clickTolerance:3},
// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
// Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
initialize:function(e,t,n,r){d(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},
// @method enable()
// Enables the dragging ability
enable:function(){this._enabled||(Nt(this._dragStartTarget,bn,this._onDown,this),this._enabled=!0)},
// @method disable()
// Disables the dragging ability
disable:function(){this._enabled&&(
// If we're currently dragging this draggable,
// disabling it counts as first ending the drag.
wn._dragging===this&&this.finishDrag(!0),zt(this._dragStartTarget,bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){
// Ignore the event if disabled; this happens in IE11
// under some circumstances, see #3666.
if(this._enabled&&(this._moved=!1,!bt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)
// Finish dragging to avoid conflict with touchZoom
wn._dragging===this&&this.finishDrag();else if(!(wn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(wn._dragging=this,// Prevent dragging multiple objects at once.
this._preventOutline&&Pt(this._element),Ot(),at(),this._moving))){
// @event down: Event
// Fired when a drag is about to start.
this.fire("down");var t=e.touches?e.touches[0]:e,n=Qt(this._element);this._startPoint=new O(t.clientX,t.clientY),this._startPos=Mt(this._element),
// Cache the scale, so that we can continuously compensate for it during drag (_onMove).
this._parentScale=Rt(n);var r="mousedown"===e.type;Nt(document,r?"mousemove":"touchmove",this._onMove,this),Nt(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){
// Ignore the event if disabled; this happens in IE11
// under some circumstances, see #3666.
if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new O(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(
// We assume that the parent container's position, border and scale do not change for the duration of the drag.
// Therefore there is no need to account for the position and border (they are eliminated by the subtraction)
// and we can use the cached value for the scale.
n.x/=this._parentScale.x,n.y/=this._parentScale.y,Kt(e),this._moved||(
// @event dragstart: Event
// Fired when a drag starts
this.fire("dragstart"),this._moved=!0,wt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,
// IE and Edge do not give the <use> element, so fetch it
// if necessary
window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),wt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};
// @event predrag: Event
// Fired continuously during dragging *before* each corresponding
// update of the element's position.
this.fire("predrag",e),Bt(this._element,this._newPos),
// @event drag: Event
// Fired continuously during dragging.
this.fire("drag",e)},_onUp:function(){
// Ignore the event if disabled; this happens in IE11
// under some circumstances, see #3666.
this._enabled&&this.finishDrag()},finishDrag:function(e){xt(document.body,"leaflet-dragging"),this._lastTarget&&(xt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),zt(document,"mousemove touchmove",this._onMove,this),zt(document,"mouseup touchend touchcancel",this._onUp,this),Dt(),ot();var t=this._moved&&this._moving;this._moving=!1,wn._dragging=!1,t&&
// @event dragend: DragEndEvent
// Fired when the drag ends.
this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});
/*
   * @class Draggable
   * @aka L.Draggable
   * @inherits Evented
   *
   * A class for making DOM elements draggable (including touch support).
   * Used internally for map and marker dragging. Only works for elements
   * that were positioned with [`L.DomUtil.setPosition`](#domutil-setposition).
   *
   * @example
   * ```js
   * var draggable = new L.Draggable(elementToDrag);
   * draggable.enable();
   * ```
   */
/*
   * @namespace PolyUtil
   * Various utility functions for polygon geometries.
   */
/* @function clipPolygon(points: Point[], bounds: Bounds, round?: Boolean): Point[]
   * Clips the polygon geometry defined by the given `points` by the given bounds (using the [Sutherland-Hodgman algorithm](https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm)).
   * Used by Leaflet to only show polygon points that are on the screen or near, increasing
   * performance. Note that polygon points needs different algorithm for clipping
   * than polyline, so there's a separate method for it.
   */
function xn(e,t,n){var r,i,a,o,s,c,l,u,h,f=[1,4,2,8];for(i=0,l=e.length;i<l;i++)e[i]._code=Ln(e[i],t);
// for each edge (left, bottom, right, top)
for(o=0;o<4;o++){for(u=f[o],r=[],i=0,a=(l=e.length)-1;i<l;a=i++)s=e[i],c=e[a],
// if a is inside the clip window
s._code&u?c._code&u||((h=Pn(c,s,u,t,n))._code=Ln(h,t),r.push(h)):(
// if b is outside the clip window (a->b goes out of screen)
c._code&u&&((h=Pn(c,s,u,t,n))._code=Ln(h,t),r.push(h)),r.push(s));e=r}return e}
/* @function polygonCenter(latlngs: LatLng[], crs: CRS): LatLng
   * Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the passed LatLngs (first ring) from a polygon.
   */function Cn(e,t){var n,r,i,a,o,s,c,l,u;if(!e||0===e.length)throw new Error("latlngs not passed");jn(e)||(e=e[0]);var h=z([0,0]),f=N(e);
// tests showed that below 1700 rounding errors are happening
f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(
// getting a inexact center, to move the latlngs near to [0, 0] to prevent rounding errors
h=_n(e));var d=e.length,p=[];for(n=0;n<d;n++){var g=z(e[n]);p.push(t.project(z([g.lat-h.lat,g.lng-h.lng])))}
// polygon centroid algorithm;
for(s=c=l=0,n=0,r=d-1;n<d;r=n++)i=p[n],a=p[r],o=i.y*a.x-a.y*i.x,c+=(i.x+a.x)*o,l+=(i.y+a.y)*o,s+=3*o;
// Polygon is so small that all points are on same pixel.
u=0===s?p[0]:[c/s,l/s];var m=t.unproject(P(u));return z([m.lat+h.lat,m.lng+h.lng])}
/* @function centroid(latlngs: LatLng[]): LatLng
   * Returns the 'center of mass' of the passed LatLngs.
   */function _n(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=z(e[i]);t+=a.lat,n+=a.lng,r++}return z([t/r,n/r])}var In,En={__proto__:null,clipPolygon:xn,polygonCenter:Cn,centroid:_n};
/*
   * @namespace LineUtil
   *
   * Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.
   */
// Simplify polyline with vertex reduction and Douglas-Peucker simplification.
// Improves rendering performance dramatically by lessening the number of points to draw.
// @function simplify(points: Point[], tolerance: Number): Point[]
// Dramatically reduces the number of points in a polyline while retaining
// its shape and returns a new array of simplified points, using the
// [Ramer-Douglas-Peucker algorithm](https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm).
// Used for a huge performance boost when processing/displaying Leaflet polylines for
// each zoom level and also reducing visual noise. tolerance affects the amount of
// simplification (lesser value means higher quality but slower and with more points).
// Also released as a separated micro-library [Simplify.js](https://mourner.github.io/simplify-js/).
function kn(e,t){if(!t||!e.length)return e.slice();var n=t*t;
// stage 1: vertex reduction
// stage 2: Douglas-Peucker simplification
return e=Mn(e=On(e,n),n)}
// @function pointToSegmentDistance(p: Point, p1: Point, p2: Point): Number
// Returns the distance between point `p` and segment `p1` to `p2`.
function Sn(e,t,n){return Math.sqrt(Rn(e,t,n,!0))}
// @function closestPointOnSegment(p: Point, p1: Point, p2: Point): Number
// Returns the closest point from a point `p` on a segment `p1` to `p2`.
function Bn(e,t,n){return Rn(e,t,n)}
// Ramer-Douglas-Peucker simplification, see https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm
function Mn(e,t){var n=e.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Tn(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}function Tn(e,t,n,r,i){var a,o,s,c=0;for(o=r+1;o<=i-1;o++)(s=Rn(e[o],e[r],e[i],!0))>c&&(a=o,c=s);c>n&&(t[a]=1,Tn(e,t,n,r,a),Tn(e,t,n,a,i))}
// reduce points that are too close to each other to a single point
function On(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)Qn(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}
// @function clipSegment(a: Point, b: Point, bounds: Bounds, useLastCode?: Boolean, round?: Boolean): Point[]|Boolean
// Clips the segment a to b by rectangular bounds with the
// [Cohen-Sutherland algorithm](https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm)
// (modifying the segment points directly!). Used by Leaflet to only show polyline
// points that are on the screen or near, increasing performance.
function Dn(e,t,n,r,i){var a,o,s,c=r?In:Ln(e,n),l=Ln(t,n);
// save 2nd code to avoid calculating it on the next segment
for(In=l;;){
// if a,b is inside the clip window (trivial accept)
if(!(c|l))return[e,t];
// if a,b is outside the clip window (trivial reject)
if(c&l)return!1;
// other cases
s=Ln(o=Pn(e,t,a=c||l,n,i),n),a===c?(e=o,c=s):(t=o,l=s)}}function Pn(e,t,n,r,i){var a,o,s=t.x-e.x,c=t.y-e.y,l=r.min,u=r.max;return 8&n?(// top
a=e.x+s*(u.y-e.y)/c,o=u.y):4&n?(// bottom
a=e.x+s*(l.y-e.y)/c,o=l.y):2&n?(// right
a=u.x,o=e.y+c*(u.x-e.x)/s):1&n&&(// left
a=l.x,o=e.y+c*(l.x-e.x)/s),new O(a,o,i)}function Ln(e,t){var n=0;return e.x<t.min.x?// left
n|=1:e.x>t.max.x&&(// right
n|=2),e.y<t.min.y?// bottom
n|=4:e.y>t.max.y&&(// top
n|=8),n}
// square distance (to avoid unnecessary Math.sqrt calls)
function Qn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}
// return closest point on segment or distance to that point
function Rn(e,t,n,r){var i,a=t.x,o=t.y,s=n.x-a,c=n.y-o,l=s*s+c*c;return l>0&&((i=((e.x-a)*s+(e.y-o)*c)/l)>1?(a=n.x,o=n.y):i>0&&(a+=s*i,o+=c*i)),s=e.x-a,c=e.y-o,r?s*s+c*c:new O(a,o)}
// @function isFlat(latlngs: LatLng[]): Boolean
// Returns true if `latlngs` is a flat array, false is nested.
function jn(e){return!v(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function Nn(e){return jn(e)}
/* @function polylineCenter(latlngs: LatLng[], crs: CRS): LatLng
   * Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the passed LatLngs (first ring) from a polyline.
   */function Fn(e,t){var n,r,i,a,o,s,c,l;if(!e||0===e.length)throw new Error("latlngs not passed");jn(e)||(e=e[0]);var u=z([0,0]),h=N(e);
// tests showed that below 1700 rounding errors are happening
h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(
// getting a inexact center, to move the latlngs near to [0, 0] to prevent rounding errors
u=_n(e));var f=e.length,d=[];for(n=0;n<f;n++){var p=z(e[n]);d.push(t.project(z([p.lat-u.lat,p.lng-u.lng])))}for(n=0,r=0;n<f-1;n++)r+=d[n].distanceTo(d[n+1])/2;
// The line is so small in the current view that all points are on the same pixel.
if(0===r)l=d[0];else for(n=0,a=0;n<f-1;n++)if(o=d[n],s=d[n+1],(a+=i=o.distanceTo(s))>r){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var g=t.unproject(P(l));return z([g.lat+u.lat,g.lng+u.lng])}var zn={__proto__:null,simplify:kn,pointToSegmentDistance:Sn,closestPointOnSegment:Bn,clipSegment:Dn,_getEdgeIntersection:Pn,_getBitCode:Ln,_sqClosestPointOnSegment:Rn,isFlat:jn,_flat:Nn,polylineCenter:Fn},Hn={project:function(e){return new O(e.lng,e.lat)},unproject:function(e){return new F(e.y,e.x)},bounds:new Q([-180,-90],[180,90])},Un={R:6378137,R_MINOR:6356752.314245179,bounds:new Q([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),a/2);return r=-n*Math.log(Math.max(s,1e-10)),new O(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,a=Math.sqrt(1-i*i),o=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(o),c=0,l=.1;c<15&&Math.abs(l)>1e-7;c++)t=a*Math.sin(s),t=Math.pow((1-t)/(1+t),a/2),s+=l=Math.PI/2-2*Math.atan(o*t)-s;return new F(s*n,e.x*n/r)}},Gn={__proto__:null,LonLat:Hn,Mercator:Un,SphericalMercator:W},Vn=n({},G,{code:"EPSG:3395",projection:Un,transformation:function(){var e=.5/(Math.PI*Un.R);return Y(e,.5,-e,.5)}()}),Wn=n({},G,{code:"EPSG:4326",projection:Hn,transformation:Y(1/180,1,-1/180,.5)}),qn=n({},U,{projection:Hn,transformation:Y(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});
/*
   * @namespace Projection
   * @section
   * Leaflet comes with a set of already defined Projections out of the box:
   *
   * @projection L.Projection.LonLat
   *
   * Equirectangular, or Plate Carree projection — the most simple projection,
   * mostly used by GIS enthusiasts. Directly maps `x` as longitude, and `y` as
   * latitude. Also suitable for flat worlds, e.g. game maps. Used by the
   * `EPSG:4326` and `Simple` CRS.
   */U.Earth=G,U.EPSG3395=Vn,U.EPSG3857=K,U.EPSG900913=$,U.EPSG4326=Wn,U.Simple=qn;
/*
   * @class Layer
   * @inherits Evented
   * @aka L.Layer
   * @aka ILayer
   *
   * A set of methods from the Layer base class that all Leaflet layers use.
   * Inherits all methods, options and events from `L.Evented`.
   *
   * @example
   *
   * ```js
   * var layer = L.marker(latlng).addTo(map);
   * layer.addTo(map);
   * layer.remove();
   * ```
   *
   * @event add: Event
   * Fired after the layer is added to a map
   *
   * @event remove: Event
   * Fired after the layer is removed from a map
   */
var Yn=T.extend({
// Classes extending `L.Layer` will inherit the following options:
options:{
// @option pane: String = 'overlayPane'
// By default the layer will be added to the map's [overlay pane](#map-overlaypane). Overriding this option will cause the layer to be placed on another pane by default.
pane:"overlayPane",
// @option attribution: String = null
// String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
attribution:null,bubblingMouseEvents:!0},
/* @section
  	 * Classes extending `L.Layer` will inherit the following methods:
  	 *
  	 * @method addTo(map: Map|LayerGroup): this
  	 * Adds the layer to the given map or layer group.
  	 */
addTo:function(e){return e.addLayer(this),this},
// @method remove: this
// Removes the layer from the map it is currently active on.
remove:function(){return this.removeFrom(this._map||this._mapToAdd)},
// @method removeFrom(map: Map): this
// Removes the layer from the given map
// @alternative
// @method removeFrom(group: LayerGroup): this
// Removes the layer from the given `LayerGroup`
removeFrom:function(e){return e&&e.removeLayer(this),this},
// @method getPane(name? : String): HTMLElement
// Returns the `HTMLElement` representing the named pane on the map. If `name` is omitted, returns the pane for this layer.
getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},
// @method getAttribution: String
// Used by the `attribution control`, returns the [attribution option](#gridlayer-attribution).
getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;
// check in case layer gets added and then removed before the map is ready
if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});
/* @section Extension methods
   * @uninheritable
   *
   * Every layer should extend from `L.Layer` and (re-)implement the following methods.
   *
   * @method onAdd(map: Map): this
   * Should contain code that creates DOM elements for the layer, adds them to `map panes` where they should belong and puts listeners on relevant map events. Called on [`map.addLayer(layer)`](#map-addlayer).
   *
   * @method onRemove(map: Map): this
   * Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in [`onAdd`](#layer-onadd). Called on [`map.removeLayer(layer)`](#map-removelayer).
   *
   * @method getEvents(): Object
   * This optional method should return an object like `{ viewreset: this._reset }` for [`addEventListener`](#evented-addeventlistener). The event handlers in this object will be automatically added and removed from the map with your layer.
   *
   * @method getAttribution(): String
   * This optional method should return a string containing HTML to be shown on the `Attribution control` whenever the layer is visible.
   *
   * @method beforeAdd(map: Map): this
   * Optional method. Called on [`map.addLayer(layer)`](#map-addlayer), before the layer is added to the map, before events are initialized, without waiting until the map is in a usable state. Use for early initialization only.
   */
/* @namespace Map
   * @section Layer events
   *
   * @event layeradd: LayerEvent
   * Fired when a new layer is added to the map.
   *
   * @event layerremove: LayerEvent
   * Fired when some layer is removed from the map
   *
   * @section Methods for Layers and Controls
   */an.include({
// @method addLayer(layer: Layer): this
// Adds the given layer to the map
addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=o(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},
// @method removeLayer(layer: Layer): this
// Removes the given layer from the map.
removeLayer:function(e){var t=o(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},
// @method hasLayer(layer: Layer): Boolean
// Returns `true` if the given layer is currently added to the map
hasLayer:function(e){return o(e)in this._layers},
/* @method eachLayer(fn: Function, context?: Object): this
  	 * Iterates over the layers of the map, optionally specifying context of the iterator function.
  	 * ```
  	 * map.eachLayer(function(layer){
  	 *     layer.bindPopup('Hello');
  	 * });
  	 * ```
  	 */
eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[o(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=o(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,
// @section Map state change events
// @event zoomlevelschange: Event
// Fired when the number of zoomlevels on the map is changed due
// to adding or removing a layer.
n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});
/*
   * @class LayerGroup
   * @aka L.LayerGroup
   * @inherits Interactive layer
   *
   * Used to group several layers and handle them as one. If you add it to the map,
   * any layers added or removed from the group will be added/removed on the map as
   * well. Extends `Layer`.
   *
   * @example
   *
   * ```js
   * L.layerGroup([marker1, marker2])
   * 	.addLayer(polyline)
   * 	.addTo(map);
   * ```
   */
var Kn=Yn.extend({initialize:function(e,t){var n,r;if(d(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},
// @method addLayer(layer: Layer): this
// Adds the given layer to the group.
addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},
// @method removeLayer(layer: Layer): this
// Removes the given layer from the group.
// @alternative
// @method removeLayer(id: Number): this
// Removes the layer with the given internal ID from the group.
removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},
// @method hasLayer(layer: Layer): Boolean
// Returns `true` if the given layer is currently added to the group.
// @alternative
// @method hasLayer(id: Number): Boolean
// Returns `true` if the given internal ID is currently added to the group.
hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},
// @method clearLayers(): this
// Removes all the layers from the group.
clearLayers:function(){return this.eachLayer(this.removeLayer,this)},
// @method invoke(methodName: String, …): this
// Calls `methodName` on every layer contained in this group, passing any
// additional parameters. Has no effect if the layers contained do not
// implement `methodName`.
invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},
// @method eachLayer(fn: Function, context?: Object): this
// Iterates over the layers of the group, optionally specifying context of the iterator function.
// ```js
// group.eachLayer(function (layer) {
// 	layer.bindPopup('Hello');
// });
// ```
eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},
// @method getLayer(id: Number): Layer
// Returns the layer with the given internal ID.
getLayer:function(e){return this._layers[e]},
// @method getLayers(): Layer[]
// Returns an array of all the layers added to the group.
getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},
// @method setZIndex(zIndex: Number): this
// Calls `setZIndex` on every layer contained in this group, passing the z-index.
setZIndex:function(e){return this.invoke("setZIndex",e)},
// @method getLayerId(layer: Layer): Number
// Returns the internal ID for a layer
getLayerId:function(e){return o(e)}}),$n=function(e,t){return new Kn(e,t)},Jn=Kn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Kn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Kn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},
// @method setStyle(style: Path options): this
// Sets the given path options to each layer of the group that has a `setStyle` method.
setStyle:function(e){return this.invoke("setStyle",e)},
// @method bringToFront(): this
// Brings the layer group to the top of all other layers
bringToFront:function(){return this.invoke("bringToFront")},
// @method bringToBack(): this
// Brings the layer group to the back of all other layers
bringToBack:function(){return this.invoke("bringToBack")},
// @method getBounds(): LatLngBounds
// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
getBounds:function(){var e=new j;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Xn=function(e,t){return new Jn(e,t)},Zn=S.extend({
/* @section
  	 * @aka Icon options
  	 *
  	 * @option iconUrl: String = null
  	 * **(required)** The URL to the icon image (absolute or relative to your script path).
  	 *
  	 * @option iconRetinaUrl: String = null
  	 * The URL to a retina sized version of the icon image (absolute or relative to your
  	 * script path). Used for Retina screen devices.
  	 *
  	 * @option iconSize: Point = null
  	 * Size of the icon image in pixels.
  	 *
  	 * @option iconAnchor: Point = null
  	 * The coordinates of the "tip" of the icon (relative to its top left corner). The icon
  	 * will be aligned so that this point is at the marker's geographical location. Centered
  	 * by default if size is specified, also can be set in CSS with negative margins.
  	 *
  	 * @option popupAnchor: Point = [0, 0]
  	 * The coordinates of the point from which popups will "open", relative to the icon anchor.
  	 *
  	 * @option tooltipAnchor: Point = [0, 0]
  	 * The coordinates of the point from which tooltips will "open", relative to the icon anchor.
  	 *
  	 * @option shadowUrl: String = null
  	 * The URL to the icon shadow image. If not specified, no shadow image will be created.
  	 *
  	 * @option shadowRetinaUrl: String = null
  	 *
  	 * @option shadowSize: Point = null
  	 * Size of the shadow image in pixels.
  	 *
  	 * @option shadowAnchor: Point = null
  	 * The coordinates of the "tip" of the shadow (relative to its top left corner) (the same
  	 * as iconAnchor if not specified).
  	 *
  	 * @option className: String = ''
  	 * A custom class name to assign to both icon and shadow images. Empty by default.
  	 */
options:{popupAnchor:[0,0],tooltipAnchor:[0,0],
// @option crossOrigin: Boolean|String = false
// Whether the crossOrigin attribute will be added to the tiles.
// If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
crossOrigin:!1},initialize:function(e){d(this,e)},
// @method createIcon(oldIcon?: HTMLElement): HTMLElement
// Called internally when the icon has to be shown, returns a `<img>` HTML element
// styled according to the options.
createIcon:function(e){return this._createIcon("icon",e)},
// @method createShadow(oldIcon?: HTMLElement): HTMLElement
// As `createIcon`, but for the shadow beneath it.
createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var i=P(r),a=P("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),a&&(e.style.marginLeft=-a.x+"px",e.style.marginTop=-a.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return je.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});
// @factory L.layerGroup(layers?: Layer[], options?: Object)
// Create a layer group, optionally given an initial set of layers and an `options` object.
// @factory L.icon(options: Icon options)
// Creates an icon instance with the given options.
function er(e){return new Zn(e)}
/*
   * @miniclass Icon.Default (Icon)
   * @aka L.Icon.Default
   * @section
   *
   * A trivial subclass of `Icon`, represents the icon to use in `Marker`s when
   * no icon is specified. Points to the blue marker image distributed with Leaflet
   * releases.
   *
   * In order to customize the default icon, just change the properties of `L.Icon.Default.prototype.options`
   * (which is a set of `Icon options`).
   *
   * If you want to _completely_ replace the default icon, override the
   * `L.Marker.prototype.options.icon` with your own icon instead.
   */var tr=Zn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){
// @option imagePath: String
// `Icon.Default` will try to auto-detect the location of the
// blue icon images. If you are placing these images in a non-standard
// way, set this option to point to the right path.
return"string"!=typeof tr.imagePath&&(// Deprecated, backwards-compatibility only
tr.imagePath=this._detectIconPath()),(this.options.imagePath||tr.imagePath)+Zn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){// separate function to use in tests
var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=gt("div","leaflet-default-icon-path",document.body),t=pt(e,"background-image")||pt(e,"backgroundImage");if(// IE8
document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),nr=yn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new wn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),wt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&xt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=Mt(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),c=R(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!c.contains(a)){
// Compute incremental movement
var l=P((Math.max(c.max.x,a.x)-c.max.x)/(o.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(o.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(o.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(o.min.y-c.min.y)).multiplyBy(r);n.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),Bt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=I(this._adjustPan.bind(this,e))}},_onDragStart:function(){
// @section Dragging events
// @event dragstart: Event
// Fired when the user starts dragging the marker.
// @event movestart: Event
// Fired when the marker starts moving (because of dragging).
this._oldLatLng=this._marker.getLatLng(),
// When using ES6 imports it could not be set when `Popup` was not imported as well
this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Mt(t._icon),i=t._map.layerPointToLatLng(r);
// update shadow position
n&&Bt(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,
// @event drag: Event
// Fired repeatedly while the user drags the marker.
t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){
// @event dragend: DragEndEvent
// Fired when the user stops dragging the marker.
E(this._panRequest),
// @event moveend: Event
// Fired when the marker stops moving (because of dragging).
delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),rr=Yn.extend({
// @section
// @aka Marker options
options:{
// @option icon: Icon = *
// Icon instance to use for rendering the marker.
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
// If not specified, a common instance of `L.Icon.Default` is used.
icon:new tr,
// Option inherited from "Interactive layer" abstract class
interactive:!0,
// @option keyboard: Boolean = true
// Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
keyboard:!0,
// @option title: String = ''
// Text for the browser tooltip that appear on marker hover (no tooltip by default).
// [Useful for accessibility](https://leafletjs.com/examples/accessibility/#markers-must-be-labelled).
title:"",
// @option alt: String = 'Marker'
// Text for the `alt` attribute of the icon image.
// [Useful for accessibility](https://leafletjs.com/examples/accessibility/#markers-must-be-labelled).
alt:"Marker",
// @option zIndexOffset: Number = 0
// By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively).
zIndexOffset:0,
// @option opacity: Number = 1.0
// The opacity of the marker.
opacity:1,
// @option riseOnHover: Boolean = false
// If `true`, the marker will get on top of others when you hover the mouse over it.
riseOnHover:!1,
// @option riseOffset: Number = 250
// The z-index offset used for the `riseOnHover` feature.
riseOffset:250,
// @option pane: String = 'markerPane'
// `Map pane` where the markers icon will be added.
pane:"markerPane",
// @option shadowPane: String = 'shadowPane'
// `Map pane` where the markers shadow will be added.
shadowPane:"shadowPane",
// @option bubblingMouseEvents: Boolean = false
// When `true`, a mouse event on this marker will trigger the same event on the map
// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
bubblingMouseEvents:!1,
// @option autoPanOnFocus: Boolean = true
// When `true`, the map will pan whenever the marker is focused (via
// e.g. pressing `tab` on the keyboard) to ensure the marker is
// visible within the map's bounds
autoPanOnFocus:!0,
// @section Draggable marker options
// @option draggable: Boolean = false
// Whether the marker is draggable with mouse/touch or not.
draggable:!1,
// @option autoPan: Boolean = false
// Whether to pan the map when dragging this marker near its edge or not.
autoPan:!1,
// @option autoPanPadding: Point = Point(50, 50)
// Distance (in pixels to the left/right and to the top/bottom) of the
// map edge to start panning the map.
autoPanPadding:[50,50],
// @option autoPanSpeed: Number = 10
// Number of pixels the map should pan by.
autoPanSpeed:10},
/* @section
  	 *
  	 * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
  	 */
initialize:function(e,t){d(this,t),this._latlng=z(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},
// @method getLatLng: LatLng
// Returns the current geographical position of the marker.
getLatLng:function(){return this._latlng},
// @method setLatLng(latlng: LatLng): this
// Changes the marker position to the given point.
setLatLng:function(e){var t=this._latlng;
// @event move: Event
// Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
return this._latlng=z(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},
// @method setZIndexOffset(offset: Number): this
// Changes the [zIndex offset](#marker-zindexoffset) of the marker.
setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},
// @method getIcon: Icon
// Returns the current icon used by the marker
getIcon:function(){return this.options.icon},
// @method setIcon(icon: Icon): this
// Changes the marker icon.
setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;
// if we're not reusing the icon, remove the old one and init new one
n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),wt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Nt(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(wt(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&zt(this._icon,"focus",this._panOnFocus,this),mt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&mt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Bt(this._icon,e),this._shadow&&Bt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(wt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),nr)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new nr(this),e&&this.dragging.enable()}},
// @method setOpacity(opacity: Number): this
// Changes the opacity of the marker.
setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&It(this._icon,e),this._shadow&&It(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?P(t.iconSize):P(0,0),r=t.iconAnchor?P(t.iconAnchor):P(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});
/*
   * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable.
   */
/* @namespace Marker
   * @section Interaction handlers
   *
   * Interaction handlers are properties of a marker instance that allow you to control interaction behavior in runtime, enabling or disabling certain features such as dragging (see `Handler` methods). Example:
   *
   * ```js
   * marker.dragging.disable();
   * ```
   *
   * @property dragging: Handler
   * Marker dragging handler (by both mouse and touch). Only valid when the marker is on the map (Otherwise set [`marker.options.draggable`](#marker-draggable)).
   */
// factory L.marker(latlng: LatLng, options? : Marker options)
// @factory L.marker(latlng: LatLng, options? : Marker options)
// Instantiates a Marker object given a geographical point and optionally an options object.
function ir(e,t){return new rr(e,t)}
/*
   * @class Path
   * @aka L.Path
   * @inherits Interactive layer
   *
   * An abstract class that contains options and constants shared between vector
   * overlays (Polygon, Polyline, Circle). Do not use it directly. Extends `Layer`.
   */var ar=Yn.extend({
// @section
// @aka Path options
options:{
// @option stroke: Boolean = true
// Whether to draw stroke along the path. Set it to `false` to disable borders on polygons or circles.
stroke:!0,
// @option color: String = '#3388ff'
// Stroke color
color:"#3388ff",
// @option weight: Number = 3
// Stroke width in pixels
weight:3,
// @option opacity: Number = 1.0
// Stroke opacity
opacity:1,
// @option lineCap: String= 'round'
// A string that defines [shape to be used at the end](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) of the stroke.
lineCap:"round",
// @option lineJoin: String = 'round'
// A string that defines [shape to be used at the corners](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linejoin) of the stroke.
lineJoin:"round",
// @option dashArray: String = null
// A string that defines the stroke [dash pattern](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dasharray). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
dashArray:null,
// @option dashOffset: String = null
// A string that defines the [distance into the dash pattern to start the dash](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dashoffset). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
dashOffset:null,
// @option fill: Boolean = depends
// Whether to fill the path with color. Set it to `false` to disable filling on polygons or circles.
fill:!1,
// @option fillColor: String = *
// Fill color. Defaults to the value of the [`color`](#path-color) option
fillColor:null,
// @option fillOpacity: Number = 0.2
// Fill opacity.
fillOpacity:.2,
// @option fillRule: String = 'evenodd'
// A string that defines [how the inside of a shape](https://developer.mozilla.org/docs/Web/SVG/Attribute/fill-rule) is determined.
fillRule:"evenodd",
// className: '',
// Option inherited from "Interactive layer" abstract class
interactive:!0,
// @option bubblingMouseEvents: Boolean = true
// When `true`, a mouse event on this path will trigger the same event on the map
// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
bubblingMouseEvents:!0},beforeAdd:function(e){
// Renderer is set here because we need to call renderer.getEvents
// before this.getEvents.
this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},
// @method redraw(): this
// Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.
redraw:function(){return this._map&&this._renderer._updatePath(this),this},
// @method setStyle(style: Path options): this
// Changes the appearance of a Path based on the options in the `Path options` object.
setStyle:function(e){return d(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},
// @method bringToFront(): this
// Brings the layer to the top of all path layers.
bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},
// @method bringToBack(): this
// Brings the layer to the bottom of all path layers.
bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){
// defined in child classes
this._project(),this._update()},_clickTolerance:function(){
// used when doing hit detection for Canvas layers
return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),or=ar.extend({
// @section
// @aka CircleMarker options
options:{fill:!0,
// @option radius: Number = 10
// Radius of the circle marker, in pixels
radius:10},initialize:function(e,t){d(this,t),this._latlng=z(e),this._radius=this.options.radius},
// @method setLatLng(latLng: LatLng): this
// Sets the position of a circle marker to a new location.
setLatLng:function(e){var t=this._latlng;
// @event move: Event
// Fired when the marker is moved via [`setLatLng`](#circlemarker-setlatlng). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
return this._latlng=z(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},
// @method getLatLng(): LatLng
// Returns the current geographical position of the circle marker
getLatLng:function(){return this._latlng},
// @method setRadius(radius: Number): this
// Sets the radius of a circle marker. Units are in pixels.
setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},
// @method getRadius(): Number
// Returns the current radius of the circle
getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return ar.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new Q(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},
// Needed by the `Canvas` renderer for interactivity
_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});
/*
   * @class CircleMarker
   * @aka L.CircleMarker
   * @inherits Path
   *
   * A circle of a fixed size with radius specified in pixels. Extends `Path`.
   */
// @factory L.circleMarker(latlng: LatLng, options?: CircleMarker options)
// Instantiates a circle marker object given a geographical point, and an optional options object.
function sr(e,t){return new or(e,t)}
/*
   * @class Circle
   * @aka L.Circle
   * @inherits CircleMarker
   *
   * A class for drawing circle overlays on a map. Extends `CircleMarker`.
   *
   * It's an approximation and starts to diverge from a real circle closer to poles (due to projection distortion).
   *
   * @example
   *
   * ```js
   * L.circle([50.5, 30.5], {radius: 200}).addTo(map);
   * ```
   */var cr=or.extend({initialize:function(e,t,r){if("number"==typeof t&&(
// Backwards compatibility with 0.7.x factory (latlng, radius, options?)
t=n({},r,{radius:t})),d(this,t),this._latlng=z(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");
// @section
// @aka Circle options
// @option radius: Number; Radius of the circle, in meters.
this._mRadius=this.options.radius},
// @method setRadius(radius: Number): this
// Sets the radius of a circle. Units are in meters.
setRadius:function(e){return this._mRadius=e,this.redraw()},
// @method getRadius(): Number
// Returns the current radius of a circle. Units are in meters.
getRadius:function(){return this._mRadius},
// @method getBounds(): LatLngBounds
// Returns the `LatLngBounds` of the path.
getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new j(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ar.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===G.distance){var i=Math.PI/180,a=this._mRadius/G.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),c=o.add(s).divideBy(2),l=n.unproject(c).lat,u=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(l*i))/(Math.cos(t*i)*Math.cos(l*i)))/i;(isNaN(u)||0===u)&&(u=a/Math.cos(Math.PI/180*t)),this._point=c.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:c.x-n.project([l,e-u]).x,this._radiusY=c.y-o.y}else{var h=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});
// @factory L.circle(latlng: LatLng, options?: Circle options)
// Instantiates a circle object given a geographical point, and an options object
// which contains the circle radius.
// @alternative
// @factory L.circle(latlng: LatLng, radius: Number, options?: Circle options)
// Obsolete way of instantiating a circle, for compatibility with 0.7.x code.
// Do not use in new applications or plugins.
function lr(e,t,n){return new cr(e,t,n)}
/*
   * @class Polyline
   * @aka L.Polyline
   * @inherits Path
   *
   * A class for drawing polyline overlays on a map. Extends `Path`.
   *
   * @example
   *
   * ```js
   * // create a red polyline from an array of LatLng points
   * var latlngs = [
   * 	[45.51, -122.68],
   * 	[37.77, -122.43],
   * 	[34.04, -118.2]
   * ];
   *
   * var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
   *
   * // zoom the map to the polyline
   * map.fitBounds(polyline.getBounds());
   * ```
   *
   * You can also pass a multi-dimensional array to represent a `MultiPolyline` shape:
   *
   * ```js
   * // create a red polyline from an array of arrays of LatLng points
   * var latlngs = [
   * 	[[45.51, -122.68],
   * 	 [37.77, -122.43],
   * 	 [34.04, -118.2]],
   * 	[[40.78, -73.91],
   * 	 [41.83, -87.62],
   * 	 [32.76, -96.72]]
   * ];
   * ```
   */var ur=ar.extend({
// @section
// @aka Polyline options
options:{
// @option smoothFactor: Number = 1.0
// How much to simplify the polyline on each zoom level. More means
// better performance and smoother look, and less means more accurate representation.
smoothFactor:1,
// @option noClip: Boolean = false
// Disable polyline clipping.
noClip:!1},initialize:function(e,t){d(this,t),this._setLatLngs(e)},
// @method getLatLngs(): LatLng[]
// Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
getLatLngs:function(){return this._latlngs},
// @method setLatLngs(latlngs: LatLng[]): this
// Replaces all the points in the polyline with the given array of geographical points.
setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},
// @method isEmpty(): Boolean
// Returns `true` if the Polyline has no LatLngs.
isEmpty:function(){return!this._latlngs.length},
// @method closestLayerPoint(p: Point): Point
// Returns the point closest to `p` on the Polyline.
closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,a=Rn,o=0,s=this._parts.length;o<s;o++)for(var c=this._parts[o],l=1,u=c.length;l<u;l++){var h=a(e,t=c[l-1],n=c[l],!0);h<r&&(r=h,i=a(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},
// @method getCenter(): LatLng
// Returns the center ([centroid](https://en.wikipedia.org/wiki/Centroid)) of the polyline.
getCenter:function(){
// throws error when not yet added to map as this center calculation requires projected coordinates
if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fn(this._defaultShape(),this._map.options.crs)},
// @method getBounds(): LatLngBounds
// Returns the `LatLngBounds` of the path.
getBounds:function(){return this._bounds},
// @method addLatLng(latlng: LatLng, latlngs?: LatLng[]): this
// Adds a given point to the polyline. By default, adds to the first ring of
// the polyline in case of a multi-polyline, but can be overridden by passing
// a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).
addLatLng:function(e,t){return t=t||this._defaultShape(),e=z(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new j,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return jn(this._latlngs)?this._latlngs:this._latlngs[0]},
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
_convertLatLngs:function(e){for(var t=[],n=jn(e),r=0,i=e.length;r<i;r++)n?(t[r]=z(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new Q;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new O(e,e);this._rawPxBounds&&(this._pxBounds=new Q([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},
// recursively turns latlngs into a set of rings with projected coordinates
_projectLatlngs:function(e,t,n){var r,i,a=e[0]instanceof F,o=e.length;if(a){for(i=[],r=0;r<o;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<o;r++)this._projectLatlngs(e[r],t,n)},
// clip polyline by renderer bounds so that we have less to render for performance
_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,i,a,o,s,c=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,a=(s=this._rings[t]).length;n<a-1;n++)(o=Dn(s[n],s[n+1],e,n,!0))&&(c[r]=c[r]||[],c[r].push(o[0]),
// if segment goes out of screen, or it's the last one, it's the end of the line part
o[1]===s[n+1]&&n!==a-2||(c[r].push(o[1]),r++))}},
// simplify each clipped part of the polyline for performance
_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=kn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},
// Needed by the `Canvas` renderer for interactivity
_containsPoint:function(e,t){var n,r,i,a,o,s,c=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;
// hit detection for polylines
for(n=0,a=this._parts.length;n<a;n++)for(r=0,i=(o=(s=this._parts[n]).length)-1;r<o;i=r++)if((t||0!==r)&&Sn(e,s[i],s[r])<=c)return!0;return!1}});
// @factory L.polyline(latlngs: LatLng[], options?: Polyline options)
// Instantiates a polyline object given an array of geographical points and
// optionally an options object. You can create a `Polyline` object with
// multiple separate lines (`MultiPolyline`) by passing an array of arrays
// of geographic points.
function hr(e,t){return new ur(e,t)}
// Retrocompat. Allow plugins to support Leaflet versions before and after 1.1.
ur._flat=Nn;
/*
   * @class Polygon
   * @aka L.Polygon
   * @inherits Polyline
   *
   * A class for drawing polygon overlays on a map. Extends `Polyline`.
   *
   * Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.
   *
   *
   * @example
   *
   * ```js
   * // create a red polygon from an array of LatLng points
   * var latlngs = [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]];
   *
   * var polygon = L.polygon(latlngs, {color: 'red'}).addTo(map);
   *
   * // zoom the map to the polygon
   * map.fitBounds(polygon.getBounds());
   * ```
   *
   * You can also pass an array of arrays of latlngs, with the first array representing the outer shape and the other arrays representing holes in the outer shape:
   *
   * ```js
   * var latlngs = [
   *   [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
   *   [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
   * ];
   * ```
   *
   * Additionally, you can pass a multi-dimensional array to represent a MultiPolygon shape.
   *
   * ```js
   * var latlngs = [
   *   [ // first polygon
   *     [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
   *     [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
   *   ],
   *   [ // second polygon
   *     [[41, -111.03],[45, -111.04],[45, -104.05],[41, -104.05]]
   *   ]
   * ];
   * ```
   */
var fr=ur.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},
// @method getCenter(): LatLng
// Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the Polygon.
getCenter:function(){
// throws error when not yet added to map as this center calculation requires projected coordinates
if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Cn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=ur.prototype._convertLatLngs.call(this,e),n=t.length;
// remove last point if it equals first one
return n>=2&&t[0]instanceof F&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){ur.prototype._setLatLngs.call(this,e),jn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return jn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){
// polygons need a different clipping algorithm so we redefine that
var e=this._renderer._bounds,t=this.options.weight,n=new O(t,t);
// increase clip padding by stroke width to avoid stroke on clip edges
if(e=new Q(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,a=this._rings.length;i<a;i++)(r=xn(this._rings[i],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},
// Needed by the `Canvas` renderer for interactivity
_containsPoint:function(e){var t,n,r,i,a,o,s,c,l=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;
// ray casting algorithm for detecting if point is in polygon
for(i=0,s=this._parts.length;i<s;i++)for(a=0,o=(c=(t=this._parts[i]).length)-1;a<c;o=a++)n=t[a],r=t[o],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);
// also check if it's on polygon stroke
return l||ur.prototype._containsPoint.call(this,e,!0)}});
// @factory L.polygon(latlngs: LatLng[], options?: Polyline options)
function dr(e,t){return new fr(e,t)}
/*
   * @class GeoJSON
   * @aka L.GeoJSON
   * @inherits FeatureGroup
   *
   * Represents a GeoJSON object or an array of GeoJSON objects. Allows you to parse
   * GeoJSON data and display it on the map. Extends `FeatureGroup`.
   *
   * @example
   *
   * ```js
   * L.geoJSON(data, {
   * 	style: function (feature) {
   * 		return {color: feature.properties.color};
   * 	}
   * }).bindPopup(function (layer) {
   * 	return layer.feature.properties.description;
   * }).addTo(map);
   * ```
   */var pr=Jn.extend({
/* @section
  	 * @aka GeoJSON options
  	 *
  	 * @option pointToLayer: Function = *
  	 * A `Function` defining how GeoJSON points spawn Leaflet layers. It is internally
  	 * called when data is added, passing the GeoJSON point feature and its `LatLng`.
  	 * The default is to spawn a default `Marker`:
  	 * ```js
  	 * function(geoJsonPoint, latlng) {
  	 * 	return L.marker(latlng);
  	 * }
  	 * ```
  	 *
  	 * @option style: Function = *
  	 * A `Function` defining the `Path options` for styling GeoJSON lines and polygons,
  	 * called internally when data is added.
  	 * The default value is to not override any defaults:
  	 * ```js
  	 * function (geoJsonFeature) {
  	 * 	return {}
  	 * }
  	 * ```
  	 *
  	 * @option onEachFeature: Function = *
  	 * A `Function` that will be called once for each created `Feature`, after it has
  	 * been created and styled. Useful for attaching events and popups to features.
  	 * The default is to do nothing with the newly created layers:
  	 * ```js
  	 * function (feature, layer) {}
  	 * ```
  	 *
  	 * @option filter: Function = *
  	 * A `Function` that will be used to decide whether to include a feature or not.
  	 * The default is to include all features:
  	 * ```js
  	 * function (geoJsonFeature) {
  	 * 	return true;
  	 * }
  	 * ```
  	 * Note: dynamically changing the `filter` option will have effect only on newly
  	 * added data. It will _not_ re-evaluate already included features.
  	 *
  	 * @option coordsToLatLng: Function = *
  	 * A `Function` that will be used for converting GeoJSON coordinates to `LatLng`s.
  	 * The default is the `coordsToLatLng` static method.
  	 *
  	 * @option markersInheritOptions: Boolean = false
  	 * Whether default Markers for "Point" type Features inherit from group options.
  	 */
initialize:function(e,t){d(this,t),this._layers={},e&&this.addData(e)},
// @method addData( <GeoJSON> data ): this
// Adds a GeoJSON object to the layer.
addData:function(e){var t,n,r,i=v(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)
// only add this if geometry or geometries are set and not null
((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=gr(e,a);return o?(o.feature=xr(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},
// @method resetStyle( <Path> layer? ): this
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
// If `layer` is omitted, the style of all features in the current layer is reset.
resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(
// reset any custom styles
e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},
// @method setStyle( <Function> style ): this
// Changes styles of GeoJSON vector layers with the given style function.
setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});
// @section
// There are several static functions which can be called without instantiating L.GeoJSON:
// @function geometryToLayer(featureData: Object, options?: GeoJSON options): Layer
// Creates a `Layer` from a given GeoJSON feature. Can use a custom
// [`pointToLayer`](#geojson-pointtolayer) and/or [`coordsToLatLng`](#geojson-coordstolatlng)
// functions if provided as options.
function gr(e,t){var n,r,i,a,o="Feature"===e.type?e.geometry:e,s=o?o.coordinates:null,c=[],l=t&&t.pointToLayer,u=t&&t.coordsToLatLng||vr;if(!s&&!o)return null;switch(o.type){case"Point":return mr(l,e,n=u(s),t);case"MultiPoint":for(i=0,a=s.length;i<a;i++)n=u(s[i]),c.push(mr(l,e,n,t));return new Jn(c);case"LineString":case"MultiLineString":return r=yr(s,"LineString"===o.type?0:1,u),new ur(r,t);case"Polygon":case"MultiPolygon":return r=yr(s,"Polygon"===o.type?1:2,u),new fr(r,t);case"GeometryCollection":for(i=0,a=o.geometries.length;i<a;i++){var h=gr({geometry:o.geometries[i],type:"Feature",properties:e.properties},t);h&&c.push(h)}return new Jn(c);case"FeatureCollection":for(i=0,a=o.features.length;i<a;i++){var f=gr(o.features[i],t);f&&c.push(f)}return new Jn(c);default:throw new Error("Invalid GeoJSON object.")}}function mr(e,t,n,r){return e?e(t,n):new rr(n,r&&r.markersInheritOptions&&r)}
// @function coordsToLatLng(coords: Array): LatLng
// Creates a `LatLng` object from an array of 2 numbers (longitude, latitude)
// or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.
function vr(e){return new F(e[1],e[0],e[2])}
// @function coordsToLatLngs(coords: Array, levelsDeep?: Number, coordsToLatLng?: Function): Array
// Creates a multidimensional array of `LatLng`s from a GeoJSON coordinates array.
// `levelsDeep` specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).
// Can use a custom [`coordsToLatLng`](#geojson-coordstolatlng) function.
function yr(e,t,n){for(var r,i=[],a=0,o=e.length;a<o;a++)r=t?yr(e[a],t-1,n):(n||vr)(e[a]),i.push(r);return i}
// @function latLngToCoords(latlng: LatLng, precision?: Number|false): Array
// Reverse of [`coordsToLatLng`](#geojson-coordstolatlng)
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function.
function Ar(e,t){return void 0!==(e=z(e)).alt?[u(e.lng,t),u(e.lat,t),u(e.alt,t)]:[u(e.lng,t),u(e.lat,t)]}
// @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean, precision?: Number|false): Array
// Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs)
// `closed` determines whether the first point should be appended to the end of the array to close the feature, only used when `levelsDeep` is 0. False by default.
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function.
function br(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)
// Check for flat arrays required to ensure unbalanced arrays are correctly converted in recursion
i.push(t?br(e[a],jn(e[a])?0:t-1,n,r):Ar(e[a],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function wr(e,t){return e.feature?n({},e.feature,{geometry:t}):xr(t)}
// @function asFeature(geojson: Object): Object
// Normalize GeoJSON geometries/features into GeoJSON features.
function xr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var Cr={toGeoJSON:function(e){return wr(this,{type:"Point",coordinates:Ar(this.getLatLng(),e)})}};
// @namespace Marker
// @section Other methods
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the marker (as a GeoJSON `Point` Feature).
// @namespace GeoJSON
// @factory L.geoJSON(geojson?: Object, options?: GeoJSON options)
// Creates a GeoJSON layer. Optionally accepts an object in
// [GeoJSON format](https://tools.ietf.org/html/rfc7946) to display on the map
// (you can alternatively add it later with `addData` method) and an `options` object.
function _r(e,t){return new pr(e,t)}
// Backward compatibility.
rr.include(Cr),
// @namespace CircleMarker
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the circle marker (as a GeoJSON `Point` Feature).
cr.include(Cr),or.include(Cr),
// @namespace Polyline
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the polyline (as a GeoJSON `LineString` or `MultiLineString` Feature).
ur.include({toGeoJSON:function(e){var t=!jn(this._latlngs);return wr(this,{type:(t?"Multi":"")+"LineString",coordinates:br(this._latlngs,t?1:0,!1,e)})}}),
// @namespace Polygon
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the polygon (as a GeoJSON `Polygon` or `MultiPolygon` Feature).
fr.include({toGeoJSON:function(e){var t=!jn(this._latlngs),n=t&&!jn(this._latlngs[0]),r=br(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),wr(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),
// @namespace LayerGroup
Kn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),wr(this,{type:"MultiPoint",coordinates:t})},
// @method toGeoJSON(precision?: Number|false): Object
// Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
// Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the layer group (as a GeoJSON `FeatureCollection`, `GeometryCollection`, or `MultiPoint`).
toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=xr(i);
// Squash nested feature collections
"FeatureCollection"===a.type?r.push.apply(r,a.features):r.push(a)}}})),n?wr(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var Ir=_r,Er=Yn.extend({
// @section
// @aka ImageOverlay options
options:{
// @option opacity: Number = 1.0
// The opacity of the image overlay.
opacity:1,
// @option alt: String = ''
// Text for the `alt` attribute of the image (useful for accessibility).
alt:"",
// @option interactive: Boolean = false
// If `true`, the image overlay will emit [mouse events](#interactive-layer) when clicked or hovered.
interactive:!1,
// @option crossOrigin: Boolean|String = false
// Whether the crossOrigin attribute will be added to the image.
// If a String is provided, the image will have its crossOrigin attribute set to the String provided. This is needed if you want to access image pixel data.
// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
crossOrigin:!1,
// @option errorOverlayUrl: String = ''
// URL to the overlay image to show in place of the overlay that failed to load.
errorOverlayUrl:"",
// @option zIndex: Number = 1
// The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the overlay layer.
zIndex:1,
// @option className: String = ''
// A custom class name to assign to the image. Empty by default.
className:""},initialize:function(e,t,n){// (String, LatLngBounds, Object)
this._url=e,this._bounds=N(t),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(wt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){mt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},
// @method setOpacity(opacity: Number): this
// Sets the opacity of the overlay.
setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},
// @method bringToFront(): this
// Brings the layer to the top of all overlays.
bringToFront:function(){return this._map&&yt(this._image),this},
// @method bringToBack(): this
// Brings the layer to the bottom of all overlays.
bringToBack:function(){return this._map&&At(this._image),this},
// @method setUrl(url: String): this
// Changes the URL of the image.
setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},
// @method setBounds(bounds: LatLngBounds): this
// Update the bounds that this ImageOverlay covers
setBounds:function(e){return this._bounds=N(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},
// @method setZIndex(value: Number): this
// Changes the [zIndex](#imageoverlay-zindex) of the image overlay.
setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},
// @method getBounds(): LatLngBounds
// Get the bounds that this ImageOverlay covers
getBounds:function(){return this._bounds},
// @method getElement(): HTMLElement
// Returns the instance of [`HTMLImageElement`](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
// used by this overlay.
getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:gt("img");wt(t,"leaflet-image-layer"),this._zoomAnimated&&wt(t,"leaflet-zoom-animated"),this.options.className&&wt(t,this.options.className),t.onselectstart=l,t.onmousemove=l,
// @event load: Event
// Fired when the ImageOverlay layer has loaded its image
t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;St(this._image,n,t)},_reset:function(){var e=this._image,t=new Q(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Bt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){It(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){
// @event error: Event
// Fired when the ImageOverlay layer fails to load its image
this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},
// @method getCenter(): LatLng
// Returns the center of the ImageOverlay.
getCenter:function(){return this._bounds.getCenter()}}),kr=function(e,t,n){return new Er(e,t,n)},Sr=Er.extend({
// @section
// @aka VideoOverlay options
options:{
// @option autoplay: Boolean = true
// Whether the video starts playing automatically when loaded.
// On some browsers autoplay will only work with `muted: true`
autoplay:!0,
// @option loop: Boolean = true
// Whether the video will loop back to the beginning when played.
loop:!0,
// @option keepAspectRatio: Boolean = true
// Whether the video will save aspect ratio after the projection.
// Relevant for supported browsers. See [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
keepAspectRatio:!0,
// @option muted: Boolean = false
// Whether the video starts on mute when loaded.
muted:!1,
// @option playsInline: Boolean = true
// Mobile browsers will play the video right where it is instead of open it up in fullscreen mode.
playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:gt("video");if(wt(t,"leaflet-image-layer"),this._zoomAnimated&&wt(t,"leaflet-zoom-animated"),this.options.className&&wt(t,this.options.className),t.onselectstart=l,t.onmousemove=l,
// @event load: Event
// Fired when the video has finished loading the first frame
t.onloadeddata=i(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],a=0;a<n.length;a++)r.push(n[a].src);this._url=n.length>0?r:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var s=gt("source");s.src=this._url[o],t.appendChild(s)}}}
// @method getElement(): HTMLVideoElement
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
// used by this overlay.
});
/*
   * @class ImageOverlay
   * @aka L.ImageOverlay
   * @inherits Interactive layer
   *
   * Used to load and display a single image over specific bounds of the map. Extends `Layer`.
   *
   * @example
   *
   * ```js
   * var imageUrl = 'https://maps.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
   * 	imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
   * L.imageOverlay(imageUrl, imageBounds).addTo(map);
   * ```
   */
// @factory L.videoOverlay(video: String|Array|HTMLVideoElement, bounds: LatLngBounds, options?: VideoOverlay options)
// Instantiates an image overlay object given the URL of the video (or array of URLs, or even a video element) and the
// geographical bounds it is tied to.
function Br(e,t,n){return new Sr(e,t,n)}
/*
   * @class SVGOverlay
   * @aka L.SVGOverlay
   * @inherits ImageOverlay
   *
   * Used to load, display and provide DOM access to an SVG file over specific bounds of the map. Extends `ImageOverlay`.
   *
   * An SVG overlay uses the [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element.
   *
   * @example
   *
   * ```js
   * var svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
   * svgElement.setAttribute('xmlns', "http://www.w3.org/2000/svg");
   * svgElement.setAttribute('viewBox', "0 0 200 200");
   * svgElement.innerHTML = '<rect width="200" height="200"/><rect x="75" y="23" width="50" height="50" style="fill:red"/><rect x="75" y="123" width="50" height="50" style="fill:#0013ff"/>';
   * var svgElementBounds = [ [ 32, -130 ], [ 13, -100 ] ];
   * L.svgOverlay(svgElement, svgElementBounds).addTo(map);
   * ```
   */var Mr=Er.extend({_initImage:function(){var e=this._image=this._url;wt(e,"leaflet-image-layer"),this._zoomAnimated&&wt(e,"leaflet-zoom-animated"),this.options.className&&wt(e,this.options.className),e.onselectstart=l,e.onmousemove=l}
// @method getElement(): SVGElement
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
// used by this overlay.
});
// @factory L.svgOverlay(svg: String|SVGElement, bounds: LatLngBounds, options?: SVGOverlay options)
// Instantiates an image overlay object given an SVG element and the geographical bounds it is tied to.
// A viewBox attribute is required on the SVG element to zoom in and out properly.
function Tr(e,t,n){return new Mr(e,t,n)}
/*
   * @class DivOverlay
   * @inherits Interactive layer
   * @aka L.DivOverlay
   * Base model for L.Popup and L.Tooltip. Inherit from it for custom overlays like plugins.
   */
// @namespace DivOverlay
var Or=Yn.extend({
// @section
// @aka DivOverlay options
options:{
// @option interactive: Boolean = false
// If true, the popup/tooltip will listen to the mouse events.
interactive:!1,
// @option offset: Point = Point(0, 0)
// The offset of the overlay position.
offset:[0,0],
// @option className: String = ''
// A custom CSS class name to assign to the overlay.
className:"",
// @option pane: String = undefined
// `Map pane` where the overlay will be added.
pane:void 0,
// @option content: String|HTMLElement|Function = ''
// Sets the HTML content of the overlay while initializing. If a function is passed the source layer will be
// passed to the function. The function should return a `String` or `HTMLElement` to be used in the overlay.
content:""},initialize:function(e,t){e&&(e instanceof F||v(e))?(this._latlng=z(e),d(this,t)):(d(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},
// @method openOn(map: Map): this
// Adds the overlay to the map.
// Alternative to `map.openPopup(popup)`/`.openTooltip(tooltip)`.
openOn:function(e){// experimental, not the part of public api
return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},
// @method close(): this
// Closes the overlay.
// Alternative to `map.closePopup(popup)`/`.closeTooltip(tooltip)`
// and `layer.closePopup()`/`.closeTooltip()`.
close:function(){return this._map&&this._map.removeLayer(this),this},
// @method toggle(layer?: Layer): this
// Opens or closes the overlay bound to layer depending on its current state.
// Argument may be omitted only for overlay bound to layer.
// Alternative to `layer.togglePopup()`/`.toggleTooltip()`.
toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),
// open the overlay on the map
this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&It(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&It(this._container,1),this.bringToFront(),this.options.interactive&&(wt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(It(this._container,0),this._removeTimeout=setTimeout(i(mt,void 0,this._container),200)):mt(this._container),this.options.interactive&&(xt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},
// @namespace DivOverlay
// @method getLatLng: LatLng
// Returns the geographical point of the overlay.
getLatLng:function(){return this._latlng},
// @method setLatLng(latlng: LatLng): this
// Sets the geographical point where the overlay will open.
setLatLng:function(e){return this._latlng=z(e),this._map&&(this._updatePosition(),this._adjustPan()),this},
// @method getContent: String|HTMLElement
// Returns the content of the overlay.
getContent:function(){return this._content},
// @method setContent(htmlContent: String|HTMLElement|Function): this
// Sets the HTML content of the overlay. If a function is passed the source layer will be passed to the function.
// The function should return a `String` or `HTMLElement` to be used in the overlay.
setContent:function(e){return this._content=e,this.update(),this},
// @method getElement: String|HTMLElement
// Returns the HTML container of the overlay.
getElement:function(){return this._container},
// @method update: null
// Updates the overlay content, layout and position. Useful for updating the overlay after something inside changed, e.g. image loaded.
update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},
// @method isOpen: Boolean
// Returns `true` when the overlay is visible on the map.
isOpen:function(){return!!this._map&&this._map.hasLayer(this)},
// @method bringToFront: this
// Brings this overlay in front of other overlays (in the same map pane).
bringToFront:function(){return this._map&&yt(this._container),this},
// @method bringToBack: this
// Brings this overlay to the back of other overlays (in the same map pane).
bringToBack:function(){return this._map&&At(this._container),this},
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Jn){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;// Unable to get source layer.
// set overlay source to this layer
this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&
// update the overlay (content, layout, etc...)
this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}
// @namespace DivOverlay
// @section DivOverlay events
// @event contentupdate: Event
// Fired when the content of the overlay is updated
this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=P(this.options.offset),n=this._getAnchor();this._zoomAnimated?Bt(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;
// bottom position the overlay in case the height of the overlay changes (images loading etc)
this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});an.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),Yn.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(d(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});
/*
   * @class Popup
   * @inherits DivOverlay
   * @aka L.Popup
   * Used to open popups in certain places of the map. Use [Map.openPopup](#map-openpopup) to
   * open popups while making sure that only one popup is open at one time
   * (recommended for usability), or use [Map.addLayer](#map-addlayer) to open as many as you want.
   *
   * @example
   *
   * If you want to just bind a popup to marker click and then open it, it's really easy:
   *
   * ```js
   * marker.bindPopup(popupContent).openPopup();
   * ```
   * Path overlays like polylines also have a `bindPopup` method.
   *
   * A popup can be also standalone:
   *
   * ```js
   * var popup = L.popup()
   * 	.setLatLng(latlng)
   * 	.setContent('<p>Hello world!<br />This is a nice popup.</p>')
   * 	.openOn(map);
   * ```
   * or
   * ```js
   * var popup = L.popup(latlng, {content: '<p>Hello world!<br />This is a nice popup.</p>')
   * 	.openOn(map);
   * ```
   */
// @namespace Popup
var Dr=Or.extend({
// @section
// @aka Popup options
options:{
// @option pane: String = 'popupPane'
// `Map pane` where the popup will be added.
pane:"popupPane",
// @option offset: Point = Point(0, 7)
// The offset of the popup position.
offset:[0,7],
// @option maxWidth: Number = 300
// Max width of the popup, in pixels.
maxWidth:300,
// @option minWidth: Number = 50
// Min width of the popup, in pixels.
minWidth:50,
// @option maxHeight: Number = null
// If set, creates a scrollable container of the given height
// inside a popup if its content exceeds it.
// The scrollable container can be styled using the
// `leaflet-popup-scrolled` CSS class selector.
maxHeight:null,
// @option autoPan: Boolean = true
// Set it to `false` if you don't want the map to do panning animation
// to fit the opened popup.
autoPan:!0,
// @option autoPanPaddingTopLeft: Point = null
// The margin between the popup and the top left corner of the map
// view after autopanning was performed.
autoPanPaddingTopLeft:null,
// @option autoPanPaddingBottomRight: Point = null
// The margin between the popup and the bottom right corner of the map
// view after autopanning was performed.
autoPanPaddingBottomRight:null,
// @option autoPanPadding: Point = Point(5, 5)
// Equivalent of setting both top left and bottom right autopan padding to the same value.
autoPanPadding:[5,5],
// @option keepInView: Boolean = false
// Set it to `true` if you want to prevent users from panning the popup
// off of the screen while it is open.
keepInView:!1,
// @option closeButton: Boolean = true
// Controls the presence of a close button in the popup.
closeButton:!0,
// @option autoClose: Boolean = true
// Set it to `false` if you want to override the default behavior of
// the popup closing when another popup is opened.
autoClose:!0,
// @option closeOnEscapeKey: Boolean = true
// Set it to `false` if you want to override the default behavior of
// the ESC key for closing of the popup.
closeOnEscapeKey:!0,
// @option closeOnClick: Boolean = *
// Set it if you want to override the default behavior of the popup closing when user clicks
// on the map. Defaults to the map's [`closePopupOnClick`](#map-closepopuponclick) option.
// @option className: String = ''
// A custom CSS class name to assign to the popup.
className:""},
// @namespace Popup
// @method openOn(map: Map): this
// Alternative to `map.openPopup(popup)`.
// Adds the popup to the map and closes the previous one.
openOn:function(e){// experimental, not the part of public api
return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Or.prototype.openOn.call(this,e)},onAdd:function(e){Or.prototype.onAdd.call(this,e),
// @namespace Map
// @section Popup events
// @event popupopen: PopupEvent
// Fired when a popup is opened in the map
e.fire("popupopen",{popup:this}),this._source&&(
// @namespace Layer
// @section Popup events
// @event popupopen: PopupEvent
// Fired when a popup bound to this layer is opened
this._source.fire("popupopen",{popup:this},!0),
// For non-path layers, we toggle the popup when clicking
// again the layer, so prevent the map to reopen it.
this._source instanceof ar||this._source.on("preclick",Wt))},onRemove:function(e){Or.prototype.onRemove.call(this,e),
// @namespace Map
// @section Popup events
// @event popupclose: PopupEvent
// Fired when a popup in the map is closed
e.fire("popupclose",{popup:this}),this._source&&(
// @namespace Layer
// @section Popup events
// @event popupclose: PopupEvent
// Fired when a popup bound to this layer is closed
this._source.fire("popupclose",{popup:this},!0),this._source instanceof ar||this._source.off("preclick",Wt))},getEvents:function(){var e=Or.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=gt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=gt("div",e+"-content-wrapper",t);if(this._contentNode=gt("div",e+"-content",n),Yt(t),qt(this._contentNode),Nt(t,"contextmenu",Wt),this._tipContainer=gt("div",e+"-tip-container",t),this._tip=gt("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=gt("a",e+"-close-button",t);r.setAttribute("role","button"),// overrides the implicit role=link of <a> elements #7399
r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',Nt(r,"click",(function(e){Kt(e),this.close()}),this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,a="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",wt(e,a)):xt(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Bt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan)
// We can endlessly recurse if keepInView is set and the view resets.
// Let's guard against that by exiting early if we're responding to our own autopan.
if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(pt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new O(this._containerLeft,-n-this._containerBottom);i._add(Mt(this._container));var a=e.layerPointToContainerPoint(i),o=P(this.options.autoPanPadding),s=P(this.options.autoPanPaddingTopLeft||o),c=P(this.options.autoPanPaddingBottomRight||o),l=e.getSize(),u=0,h=0;a.x+r+c.x>l.x&&(// right
u=a.x+r-l.x+c.x),a.x-u-s.x<0&&(// left
u=a.x-s.x),a.y+n+c.y>l.y&&(// bottom
h=a.y+n-l.y+c.y),a.y-h-s.y<0&&(// top
h=a.y-s.y),
// @namespace Map
// @section Popup events
// @event autopanstart: Event
// Fired when the map starts autopanning when opening a popup.
(u||h)&&(
// Track that we're autopanning, as this function will be re-ran on moveend
this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([u,h]))}},_getAnchor:function(){
// Where should we anchor the popup on the source layer?
return P(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Pr=function(e,t){return new Dr(e,t)};
// @namespace Popup
// @factory L.popup(options?: Popup options, source?: Layer)
// Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.
// @alternative
// @factory L.popup(latlng: LatLng, options?: Popup options)
// Instantiates a `Popup` object given `latlng` where the popup will open and an optional `options` object that describes its appearance and location.
/* @namespace Map
   * @section Interaction Options
   * @option closePopupOnClick: Boolean = true
   * Set it to `false` if you don't want popups to close when user clicks the map.
   */
an.mergeOptions({closePopupOnClick:!0}),
// @namespace Map
// @section Methods for Layers and Controls
an.include({
// @method openPopup(popup: Popup): this
// Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).
// @alternative
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
// Creates a popup with the specified content and options and opens it in the given point on a map.
openPopup:function(e,t,n){return this._initOverlay(Dr,e,t,n).openOn(this),this},
// @method closePopup(popup?: Popup): this
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),
/*
   * @namespace Layer
   * @section Popup methods example
   *
   * All layers share a set of methods convenient for binding popups to it.
   *
   * ```js
   * var layer = L.Polygon(latlngs).bindPopup('Hi There!').addTo(map);
   * layer.openPopup();
   * layer.closePopup();
   * ```
   *
   * Popups will also be automatically opened when the layer is clicked on and closed when the layer is removed from the map or another popup is opened.
   */
// @section Popup methods
Yn.include({
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
// Binds a popup to the layer with the passed `content` and sets up the
// necessary event listeners. If a `Function` is passed it will receive
// the layer as the first argument and should return a `String` or `HTMLElement`.
bindPopup:function(e,t){return this._popup=this._initOverlay(Dr,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},
// @method unbindPopup(): this
// Removes the popup previously bound with `bindPopup`.
unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},
// @method openPopup(latlng?: LatLng): this
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
openPopup:function(e){return this._popup&&(this instanceof Jn||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&
// open the popup on the map
this._popup.openOn(this._map)),this},
// @method closePopup(): this
// Closes the popup bound to this layer if it is open.
closePopup:function(){return this._popup&&this._popup.close(),this},
// @method togglePopup(): this
// Opens or closes the popup bound to this layer depending on its current state.
togglePopup:function(){return this._popup&&this._popup.toggle(this),this},
// @method isPopupOpen(): boolean
// Returns `true` if the popup bound to this layer is currently open.
isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},
// @method setPopupContent(content: String|HTMLElement|Popup): this
// Sets the content of the popup bound to this layer.
setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},
// @method getPopup(): Popup
// Returns the popup bound to this layer.
getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){
// prevent map click
$t(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof ar?(this._popup._source=t,this.openPopup(e.latlng)):
// treat it like a marker and figure out
// if we should toggle it open/closed
this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});
/*
   * @class Tooltip
   * @inherits DivOverlay
   * @aka L.Tooltip
   * Used to display small texts on top of map layers.
   *
   * @example
   * If you want to just bind a tooltip to marker:
   *
   * ```js
   * marker.bindTooltip("my tooltip text").openTooltip();
   * ```
   * Path overlays like polylines also have a `bindTooltip` method.
   *
   * A tooltip can be also standalone:
   *
   * ```js
   * var tooltip = L.tooltip()
   * 	.setLatLng(latlng)
   * 	.setContent('Hello world!<br />This is a nice tooltip.')
   * 	.addTo(map);
   * ```
   * or
   * ```js
   * var tooltip = L.tooltip(latlng, {content: 'Hello world!<br />This is a nice tooltip.'})
   * 	.addTo(map);
   * ```
   *
   *
   * Note about tooltip offset. Leaflet takes two options in consideration
   * for computing tooltip offsetting:
   * - the `offset` Tooltip option: it defaults to [0, 0], and it's specific to one tooltip.
   *   Add a positive x offset to move the tooltip to the right, and a positive y offset to
   *   move it to the bottom. Negatives will move to the left and top.
   * - the `tooltipAnchor` Icon option: this will only be considered for Marker. You
   *   should adapt this value if you use a custom icon.
   */
// @namespace Tooltip
var Lr=Or.extend({
// @section
// @aka Tooltip options
options:{
// @option pane: String = 'tooltipPane'
// `Map pane` where the tooltip will be added.
pane:"tooltipPane",
// @option offset: Point = Point(0, 0)
// Optional offset of the tooltip position.
offset:[0,0],
// @option direction: String = 'auto'
// Direction where to open the tooltip. Possible values are: `right`, `left`,
// `top`, `bottom`, `center`, `auto`.
// `auto` will dynamically switch between `right` and `left` according to the tooltip
// position on the map.
direction:"auto",
// @option permanent: Boolean = false
// Whether to open the tooltip permanently or only on mouseover.
permanent:!1,
// @option sticky: Boolean = false
// If true, the tooltip will follow the mouse instead of being fixed at the feature center.
sticky:!1,
// @option opacity: Number = 0.9
// Tooltip container opacity.
opacity:.9},onAdd:function(e){Or.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),
// @namespace Map
// @section Tooltip events
// @event tooltipopen: TooltipEvent
// Fired when a tooltip is opened in the map.
e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),
// @namespace Layer
// @section Tooltip events
// @event tooltipopen: TooltipEvent
// Fired when a tooltip bound to this layer is opened.
this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Or.prototype.onRemove.call(this,e),
// @namespace Map
// @section Tooltip events
// @event tooltipclose: TooltipEvent
// Fired when a tooltip in the map is closed.
e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),
// @namespace Layer
// @section Tooltip events
// @event tooltipclose: TooltipEvent
// Fired when a tooltip bound to this layer is closed.
this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Or.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=gt("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,c=i.offsetWidth,l=i.offsetHeight,u=P(this.options.offset),h=this._getAnchor();"top"===s?(t=c/2,n=l):"bottom"===s?(t=c/2,n=0):"center"===s?(t=c/2,n=l/2):"right"===s?(t=0,n=l/2):"left"===s?(t=c,n=l/2):o.x<a.x?(s="right",t=0,n=l/2):(s="left",t=c+2*(u.x+h.x),n=l/2),e=e.subtract(P(t,n,!0)).add(u).add(h),xt(i,"leaflet-tooltip-right"),xt(i,"leaflet-tooltip-left"),xt(i,"leaflet-tooltip-top"),xt(i,"leaflet-tooltip-bottom"),wt(i,"leaflet-tooltip-"+s),Bt(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&It(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){
// Where should we anchor the tooltip on the source layer?
return P(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Qr=function(e,t){return new Lr(e,t)};
// @namespace Tooltip
// @factory L.tooltip(options?: Tooltip options, source?: Layer)
// Instantiates a `Tooltip` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.
// @alternative
// @factory L.tooltip(latlng: LatLng, options?: Tooltip options)
// Instantiates a `Tooltip` object given `latlng` where the tooltip will open and an optional `options` object that describes its appearance and location.
// @namespace Map
// @section Methods for Layers and Controls
an.include({
// @method openTooltip(tooltip: Tooltip): this
// Opens the specified tooltip.
// @alternative
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
// Creates a tooltip with the specified content and options and open it.
openTooltip:function(e,t,n){return this._initOverlay(Lr,e,t,n).openOn(this),this},
// @method closeTooltip(tooltip: Tooltip): this
// Closes the tooltip given as parameter.
closeTooltip:function(e){return e.close(),this}}),
/*
   * @namespace Layer
   * @section Tooltip methods example
   *
   * All layers share a set of methods convenient for binding tooltips to it.
   *
   * ```js
   * var layer = L.Polygon(latlngs).bindTooltip('Hi There!').addTo(map);
   * layer.openTooltip();
   * layer.closeTooltip();
   * ```
   */
// @section Tooltip methods
Yn.include({
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
// Binds a tooltip to the layer with the passed `content` and sets up the
// necessary event listeners. If a `Function` is passed it will receive
// the layer as the first argument and should return a `String` or `HTMLElement`.
bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lr,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},
// @method unbindTooltip(): this
// Removes the tooltip previously bound with `bindTooltip`.
unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},
// @method openTooltip(latlng?: LatLng): this
// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
openTooltip:function(e){return this._tooltip&&(this instanceof Jn||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(
// open the tooltip on the map
this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},
// @method closeTooltip(): this
// Closes the tooltip bound to this layer if it is open.
closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},
// @method toggleTooltip(): this
// Opens or closes the tooltip bound to this layer depending on its current state.
toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},
// @method isTooltipOpen(): boolean
// Returns `true` if the tooltip bound to this layer is currently open.
isTooltipOpen:function(){return this._tooltip.isOpen()},
// @method setTooltipContent(content: String|HTMLElement|Tooltip): this
// Sets the content of the tooltip bound to this layer.
setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},
// @method getTooltip(): Tooltip
// Returns the tooltip bound to this layer.
getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&(Nt(t,"focus",(function(){this._tooltip._source=e,this.openTooltip()}),this),Nt(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map)
// If the map is moving, we will show the tooltip after it's done.
if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",(function(){t._openOnceFlag=!1,t._openTooltip(e)}))}else this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});
/*
   * @class DivIcon
   * @aka L.DivIcon
   * @inherits Icon
   *
   * Represents a lightweight icon for markers that uses a simple `<div>`
   * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.
   *
   * @example
   * ```js
   * var myIcon = L.divIcon({className: 'my-div-icon'});
   * // you can set .my-div-icon styles in CSS
   *
   * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
   * ```
   *
   * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.
   */
var Rr=Zn.extend({options:{
// @section
// @aka DivIcon options
iconSize:[12,12],// also can be set through CSS
// iconAnchor: (Point),
// popupAnchor: (Point),
// @option html: String|HTMLElement = ''
// Custom HTML code to put inside the div element, empty by default. Alternatively,
// an instance of `HTMLElement`.
html:!1,
// @option bgPos: Point = [0, 0]
// Optional relative position of the background, in pixels
bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(vt(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=P(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});
// @factory L.divIcon(options: DivIcon options)
// Creates a `DivIcon` instance with the given options.
function jr(e){return new Rr(e)}Zn.Default=tr;
/*
   * @class GridLayer
   * @inherits Layer
   * @aka L.GridLayer
   *
   * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.
   * GridLayer can be extended to create a tiled grid of HTML elements like `<canvas>`, `<img>` or `<div>`. GridLayer will handle creating and animating these DOM elements for you.
   *
   *
   * @section Synchronous usage
   * @example
   *
   * To create a custom layer, extend GridLayer and implement the `createTile()` method, which will be passed a `Point` object with the `x`, `y`, and `z` (zoom level) coordinates to draw your tile.
   *
   * ```js
   * var CanvasLayer = L.GridLayer.extend({
   *     createTile: function(coords){
   *         // create a <canvas> element for drawing
   *         var tile = L.DomUtil.create('canvas', 'leaflet-tile');
   *
   *         // setup tile width and height according to the options
   *         var size = this.getTileSize();
   *         tile.width = size.x;
   *         tile.height = size.y;
   *
   *         // get a canvas context and draw something on it using coords.x, coords.y and coords.z
   *         var ctx = tile.getContext('2d');
   *
   *         // return the tile so it can be rendered on screen
   *         return tile;
   *     }
   * });
   * ```
   *
   * @section Asynchronous usage
   * @example
   *
   * Tile creation can also be asynchronous, this is useful when using a third-party drawing library. Once the tile is finished drawing it can be passed to the `done()` callback.
   *
   * ```js
   * var CanvasLayer = L.GridLayer.extend({
   *     createTile: function(coords, done){
   *         var error;
   *
   *         // create a <canvas> element for drawing
   *         var tile = L.DomUtil.create('canvas', 'leaflet-tile');
   *
   *         // setup tile width and height according to the options
   *         var size = this.getTileSize();
   *         tile.width = size.x;
   *         tile.height = size.y;
   *
   *         // draw something asynchronously and pass the tile to the done() callback
   *         setTimeout(function() {
   *             done(error, tile);
   *         }, 1000);
   *
   *         return tile;
   *     }
   * });
   * ```
   *
   * @section
   */
var Nr=Yn.extend({
// @section
// @aka GridLayer options
options:{
// @option tileSize: Number|Point = 256
// Width and height of tiles in the grid. Use a number if width and height are equal, or `L.point(width, height)` otherwise.
tileSize:256,
// @option opacity: Number = 1.0
// Opacity of the tiles. Can be used in the `createTile()` function.
opacity:1,
// @option updateWhenIdle: Boolean = (depends)
// Load new tiles only when panning ends.
// `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
// `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
// [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
updateWhenIdle:je.mobile,
// @option updateWhenZooming: Boolean = true
// By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
updateWhenZooming:!0,
// @option updateInterval: Number = 200
// Tiles will not update more than once every `updateInterval` milliseconds when panning.
updateInterval:200,
// @option zIndex: Number = 1
// The explicit zIndex of the tile layer.
zIndex:1,
// @option bounds: LatLngBounds = undefined
// If set, tiles will only be loaded inside the set `LatLngBounds`.
bounds:null,
// @option minZoom: Number = 0
// The minimum zoom level down to which this layer will be displayed (inclusive).
minZoom:0,
// @option maxZoom: Number = undefined
// The maximum zoom level up to which this layer will be displayed (inclusive).
maxZoom:void 0,
// @option maxNativeZoom: Number = undefined
// Maximum zoom number the tile source has available. If it is specified,
// the tiles on all zoom levels higher than `maxNativeZoom` will be loaded
// from `maxNativeZoom` level and auto-scaled.
maxNativeZoom:void 0,
// @option minNativeZoom: Number = undefined
// Minimum zoom number the tile source has available. If it is specified,
// the tiles on all zoom levels lower than `minNativeZoom` will be loaded
// from `minNativeZoom` level and auto-scaled.
minNativeZoom:void 0,
// @option noWrap: Boolean = false
// Whether the layer is wrapped around the antimeridian. If `true`, the
// GridLayer will only be displayed once at low zoom levels. Has no
// effect when the [map CRS](#map-crs) doesn't wrap around. Can be used
// in combination with [`bounds`](#gridlayer-bounds) to prevent requesting
// tiles outside the CRS limits.
noWrap:!1,
// @option pane: String = 'tilePane'
// `Map pane` where the grid layer will be added.
pane:"tilePane",
// @option className: String = ''
// A custom class name to assign to the tile layer. Empty by default.
className:"",
// @option keepBuffer: Number = 2
// When panning the map, keep this many rows and columns of tiles before unloading them.
keepBuffer:2},initialize:function(e){d(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),mt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},
// @method bringToFront: this
// Brings the tile layer to the top of all tile layers.
bringToFront:function(){return this._map&&(yt(this._container),this._setAutoZIndex(Math.max)),this},
// @method bringToBack: this
// Brings the tile layer to the bottom of all tile layers.
bringToBack:function(){return this._map&&(At(this._container),this._setAutoZIndex(Math.min)),this},
// @method getContainer: HTMLElement
// Returns the HTML element that contains the tiles for this layer.
getContainer:function(){return this._container},
// @method setOpacity(opacity: Number): this
// Changes the [opacity](#gridlayer-opacity) of the grid layer.
setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},
// @method setZIndex(zIndex: Number): this
// Changes the [zIndex](#gridlayer-zindex) of the grid layer.
setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},
// @method isLoading: Boolean
// Returns `true` if any tile in the grid layer has not finished loading.
isLoading:function(){return this._loading},
// @method redraw: this
// Causes the layer to clear all the tiles and request them again.
redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(
// update tiles on move, but not more often than once per given interval
this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},
// @section Extension methods
// Layers extending `GridLayer` shall reimplement the following method.
// @method createTile(coords: Object, done?: Function): HTMLElement
// Called only internally, must be overridden by classes extending `GridLayer`.
// Returns the `HTMLElement` corresponding to the given `coords`. If the `done` callback
// is specified, it must be called when the tile has finished loading and drawing.
createTile:function(){return document.createElement("div")},
// @section
// @method getTileSize: Point
// Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.
getTileSize:function(){var e=this.options.tileSize;return e instanceof O?e:new O(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){// -Infinity for max, Infinity for min
for(
// go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back)
var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,a=n.length;i<a;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!je.ielt9)
// IE doesn't inherit filter opacity properly, so we're forced to set it on tiles
{It(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var a=Math.min(1,(e-i.loaded)/200);It(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=gt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(mt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=gt("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),
// force the browser to consider the newly added element for transition
l(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)mt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new O(+i,+a);s.z=+o;var c=this._tileCoordsToKey(s),l=this._tiles[c];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),o>r&&this._retainParent(i,a,o,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new O(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),c=this._tiles[s];c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!a||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),
// Flag to prevent _updateOpacity from pruning tiles during
// a zoom anim or a pinch gesture
this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();je.any3d?St(e.el,i,r):Bt(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(2*r);return new Q(i.subtract(a),i.add(a))},
// Private method to load tiles in the grid's active zoom level according to map bounds
_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){// if out of minzoom/maxzoom
var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,c=new Q(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));
// Sanity check: panic if the tile range contains Infinity somewhere.
if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var u=this._tiles[l].coords;u.z===this._tileZoom&&c.contains(new O(u.x,u.y))||(this._tiles[l].current=!1)}
// _update just loads more tiles. If the tile zoom level differs too much
// from the map's, let _setView reset levels and prune old tiles.
if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{
// create a queue of coordinates to load tiles from
for(var h=i.min.y;h<=i.max.y;h++)for(var f=i.min.x;f<=i.max.x;f++){var d=new O(f,h);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:o.push(d)}}
// sort tile queue to load tiles in order of their distance to center
if(o.sort((function(e,t){return e.distanceTo(a)-t.distanceTo(a)})),0!==o.length){
// if it's the first batch of tiles to load
this._loading||(this._loading=!0,
// @event loading: Event
// Fired when the grid layer starts loading tiles.
this.fire("loading"));
// create DOM fragment to append tiles in one batch
var g=document.createDocumentFragment();for(f=0;f<o.length;f++)this._addTile(o[f],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){
// don't load tile if it's out of bounds and not wrapped
var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;
// don't load tile if it doesn't intersect the bounds in options
var r=this._tileCoordsToBounds(e);return N(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},
// converts tile coordinates to its geographical bounds
_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new j(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},
// converts tile coordinates to key for the tile cache
_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},
// converts tile cache key to coordinates
_keyToTileCoords:function(e){var t=e.split(":"),n=new O(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(mt(t.el),delete this._tiles[e],
// @event tileunload: TileEvent
// Fired when a tile is removed (e.g. when a tile goes off the screen).
this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){wt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=l,e.onmousemove=l,
// update opacity on tiles in IE7-8 because of filter inheritance problems
je.ielt9&&this.options.opacity<1&&It(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),a=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(a),
// if createTile is defined with a second argument ("done" callback),
// we know that tile is async and will be ready later; otherwise
this.createTile.length<2&&
// mark tile as ready, but delay one frame for opacity animation to happen
I(i(this._tileReady,this,e,null,a)),Bt(a,n),
// save tile in cache
this._tiles[r]={el:a,coords:e,current:!0},t.appendChild(a),
// @event tileloadstart: TileEvent
// Fired when a tile is requested and starts loading.
this.fire("tileloadstart",{tile:a,coords:e})},_tileReady:function(e,t,n){t&&
// @event tileerror: TileErrorEvent
// Fired when there is an error loading a tile.
this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(It(n.el,0),E(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(wt(n.el,"leaflet-tile-loaded"),
// @event tileload: TileEvent
// Fired when a tile loads.
this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,
// @event load: Event
// Fired when the grid layer loaded all visible tiles.
this.fire("load"),je.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):
// Wait a bit more than 0.2 secs (the duration of the tile fade-in)
// to trigger a pruning.
setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new O(this._wrapX?c(e.x,this._wrapX):e.x,this._wrapY?c(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new Q(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});
// @factory L.gridLayer(options?: GridLayer options)
// Creates a new instance of GridLayer with the supplied options.
function Fr(e){return new Nr(e)}
/*
   * @class TileLayer
   * @inherits GridLayer
   * @aka L.TileLayer
   * Used to load and display tile layers on the map. Note that most tile servers require attribution, which you can set under `Layer`. Extends `GridLayer`.
   *
   * @example
   *
   * ```js
   * L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar', attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
   * ```
   *
   * @section URL template
   * @example
   *
   * A string of the following form:
   *
   * ```
   * 'https://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'
   * ```
   *
   * `{s}` means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; `a`, `b` or `c` by default, can be omitted), `{z}` — zoom level, `{x}` and `{y}` — tile coordinates. `{r}` can be used to add "&commat;2x" to the URL to load retina tiles.
   *
   * You can use custom keys in the template, which will be [evaluated](#util-template) from TileLayer options, like this:
   *
   * ```
   * L.tileLayer('https://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});
   * ```
   */var zr=Nr.extend({
// @section
// @aka TileLayer options
options:{
// @option minZoom: Number = 0
// The minimum zoom level down to which this layer will be displayed (inclusive).
minZoom:0,
// @option maxZoom: Number = 18
// The maximum zoom level up to which this layer will be displayed (inclusive).
maxZoom:18,
// @option subdomains: String|String[] = 'abc'
// Subdomains of the tile service. Can be passed in the form of one string (where each letter is a subdomain name) or an array of strings.
subdomains:"abc",
// @option errorTileUrl: String = ''
// URL to the tile image to show in place of the tile that failed to load.
errorTileUrl:"",
// @option zoomOffset: Number = 0
// The zoom number used in tile URLs will be offset with this value.
zoomOffset:0,
// @option tms: Boolean = false
// If `true`, inverses Y axis numbering for tiles (turn this on for [TMS](https://en.wikipedia.org/wiki/Tile_Map_Service) services).
tms:!1,
// @option zoomReverse: Boolean = false
// If set to true, the zoom number used in tile URLs will be reversed (`maxZoom - zoom` instead of `zoom`)
zoomReverse:!1,
// @option detectRetina: Boolean = false
// If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.
detectRetina:!1,
// @option crossOrigin: Boolean|String = false
// Whether the crossOrigin attribute will be added to the tiles.
// If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
crossOrigin:!1,
// @option referrerPolicy: Boolean|String = false
// Whether the referrerPolicy attribute will be added to the tiles.
// If a String is provided, all tiles will have their referrerPolicy attribute set to the String provided.
// This may be needed if your map's rendering context has a strict default but your tile provider expects a valid referrer
// (e.g. to validate an API token).
// Refer to [HTMLImageElement.referrerPolicy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy) for valid String values.
referrerPolicy:!1},initialize:function(e,t){this._url=e,
// detecting retina displays, adjusting tileSize and zoom levels
(t=d(this,t)).detectRetina&&je.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?
// make sure minZoom is lte maxZoom
t.minZoom=Math.min(t.maxZoom,t.minZoom):
// make sure maxZoom is gte minZoom
t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},
// @method setUrl(url: String, noRedraw?: Boolean): this
// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
// If the URL does not change, the layer will not be redrawn unless
// the noRedraw parameter is set to false.
setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},
// @method createTile(coords: Object, done?: Function): HTMLElement
// Called only internally, overrides GridLayer's [`createTile()`](#gridlayer-createtile)
// to return an `<img>` HTML element with the appropriate image URL given `coords`. The `done`
// callback is called when the tile has been loaded.
createTile:function(e,t){var n=document.createElement("img");return Nt(n,"load",i(this._tileOnLoad,this,t,n)),Nt(n,"error",i(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),
// for this new option we follow the documented behavior
// more closely by only setting the property when string
"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),
// The alt attribute is set to the empty string,
// allowing screen readers to ignore the decorative image tiles.
// https://www.w3.org/WAI/tutorials/images/decorative/
// https://www.w3.org/TR/html-aria/#el-img-empty-alt
n.alt="",n.src=this.getTileUrl(e),n},
// @section Extension methods
// @uninheritable
// Layers extending `TileLayer` might reimplement the following method.
// @method getTileUrl(coords: Object): String
// Called only internally, returns the URL for a tile given its coordinates.
// Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
getTileUrl:function(e){var t={r:je.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){
// For https://github.com/Leaflet/Leaflet/issues/3332
je.ielt9?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},
// stops loading all tiles in the background layer
_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=l,t.onerror=l,!t.complete)){t.src=A;var n=this._tiles[e].coords;mt(t),delete this._tiles[e],
// @event tileabort: TileEvent
// Fired when a tile was loading but is now not wanted.
this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)
// Cancels any pending http requests associated with the tile
return t.el.setAttribute("src",A),Nr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==A))return Nr.prototype._tileReady.call(this,e,t,n)}});
// @factory L.tilelayer(urlTemplate: String, options?: TileLayer options)
// Instantiates a tile layer object given a `URL template` and optionally an options object.
function Hr(e,t){return new zr(e,t)}
/*
   * @class TileLayer.WMS
   * @inherits TileLayer
   * @aka L.TileLayer.WMS
   * Used to display [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services as tile layers on the map. Extends `TileLayer`.
   *
   * @example
   *
   * ```js
   * var nexrad = L.tileLayer.wms("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
   * 	layers: 'nexrad-n0r-900913',
   * 	format: 'image/png',
   * 	transparent: true,
   * 	attribution: "Weather data © 2012 IEM Nexrad"
   * });
   * ```
   */var Ur=zr.extend({
// @section
// @aka TileLayer.WMS options
// If any custom options not documented here are used, they will be sent to the
// WMS server as extra parameters in each request URL. This can be useful for
// [non-standard vendor WMS parameters](https://docs.geoserver.org/stable/en/user/services/wms/vendor.html).
defaultWmsParams:{service:"WMS",request:"GetMap",
// @option layers: String = ''
// **(required)** Comma-separated list of WMS layers to show.
layers:"",
// @option styles: String = ''
// Comma-separated list of WMS styles.
styles:"",
// @option format: String = 'image/jpeg'
// WMS image format (use `'image/png'` for layers with transparency).
format:"image/jpeg",
// @option transparent: Boolean = false
// If `true`, the WMS service will return images with transparency.
transparent:!1,
// @option version: String = '1.1.1'
// Version of the WMS service to use
version:"1.1.1"},options:{
// @option crs: CRS = null
// Coordinate Reference System to use for the WMS requests, defaults to
// map CRS. Don't change this if you're not sure what it means.
crs:null,
// @option uppercase: Boolean = false
// If `true`, WMS request parameter keys will be uppercase.
uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);
// all keys that are not TileLayer options go to WMS params
for(var i in t)i in this.options||(r[i]=t[i]);var a=(t=d(this,t)).detectRetina&&je.retina?2:1,o=this.getTileSize();r.width=o.x*a,r.height=o.y*a,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,zr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=R(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===Wn?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(","),s=zr.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},
// @method setParams(params: Object, noRedraw?: Boolean): this
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});
// @factory L.tileLayer.wms(baseUrl: String, options: TileLayer.WMS options)
// Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object.
function Gr(e,t){return new Ur(e,t)}zr.WMS=Ur,Hr.wms=Gr;
/*
   * @class Renderer
   * @inherits Layer
   * @aka L.Renderer
   *
   * Base class for vector renderer implementations (`SVG`, `Canvas`). Handles the
   * DOM container of the renderer, its bounds, and its zoom animation.
   *
   * A `Renderer` works as an implicit layer group for all `Path`s - the renderer
   * itself can be added or removed to the map. All paths use a renderer, which can
   * be implicit (the map will decide the type of renderer and use it automatically)
   * or explicit (using the [`renderer`](#path-renderer) option of the path).
   *
   * Do not use this class directly, use `SVG` and `Canvas` instead.
   *
   * @event update: Event
   * Fired when the renderer updates its bounds, center and zoom, for example when
   * its map has moved
   */
var Vr=Yn.extend({
// @section
// @aka Renderer options
options:{
// @option padding: Number = 0.1
// How much to extend the clip area around the map view (relative to its size)
// e.g. 0.1 would be 10% of map view in each direction
padding:.1},initialize:function(e){d(this,e),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),// defined by renderer implementations
// always keep transform-origin as 0 0
wt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));je.any3d?St(this._container,a,n):Bt(this._container,a)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){
// Update pixel bounds of renderer container (for positioning/sizing/clipping later)
// Subclasses are responsible of firing the 'update' event.
var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new Q(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wr=Vr.extend({
// @section
// @aka Canvas options
options:{
// @option tolerance: Number = 0
// How much to extend the click tolerance around a path/object on the map.
tolerance:0},getEvents:function(){var e=Vr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){
// Set a flag so that a viewprereset+moveend+viewreset only updates&redraws once
this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),
// Redraw vectors since canvas is cleared upon removal,
// in case of removing the renderer itself from the map.
this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Nt(e,"mousemove",this._onMouseMove,this),Nt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Nt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,mt(this._container),zt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=je.retina?2:1;Bt(t,e.min),
// set canvas size (also clearing it); use double size on retina
t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",je.retina&&this._ctx.scale(2,2),
// translate so we use the same path coordinates after canvas element moves
this._ctx.translate(-e.min.x,-e.min.y),
// Tell paths to redraw themselves
this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[o(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[o(e)],this._requestRedraw(e)},_updatePath:function(e){
// Redraw the union of the layer's old pixel
// bounds and the new pixel bounds.
this._extendRedrawBounds(e),e._project(),e._update(),
// The redraw will extend the redraw bounds
// with the new pixel bounds.
this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){
// Ignore dash array containing invalid lengths
if(t=Number(r[n]),isNaN(t))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Q,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),// clear layers in redraw bounds
this._draw(),// draw layers
this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,c=this._ctx;if(s){for(c.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],c[r?"lineTo":"moveTo"](a.x,a.y);t&&c.closePath()}this._fillStroke(c,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},
// Canvas obviously doesn't have mouse events for individual drawn objects,
// so we emulate that by calculating what's under the mouse on mousemove/click manually
_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(
// if we're leaving the layer, fire mouseout
xt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,a=this._drawFirst;a;a=a.next)(n=a.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(wt(this._container,"leaflet-interactive"),// change cursor
this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(
// Update first entry unless this is the
// single entry
this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(
// Update last entry unless this is the
// single entry
this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});
/*
   * @class Canvas
   * @inherits Renderer
   * @aka L.Canvas
   *
   * Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
   * Inherits `Renderer`.
   *
   * Due to [technical limitations](https://caniuse.com/canvas), Canvas is not
   * available in all web browsers, notably IE8, and overlapping geometries might
   * not display properly in some edge cases.
   *
   * @example
   *
   * Use Canvas by default for all paths in the map:
   *
   * ```js
   * var map = L.map('map', {
   * 	renderer: L.canvas()
   * });
   * ```
   *
   * Use a Canvas renderer with extra padding for specific vector geometries:
   *
   * ```js
   * var map = L.map('map');
   * var myRenderer = L.canvas({ padding: 0.5 });
   * var line = L.polyline( coordinates, { renderer: myRenderer } );
   * var circle = L.circle( center, { renderer: myRenderer } );
   * ```
   */
// @factory L.canvas(options?: Renderer options)
// Creates a Canvas renderer with the given options.
function qr(e){return je.canvas?new Wr(e):null}
/*
   * Thanks to Dmitry Baranovsky and his Raphael library for inspiration!
   */var Yr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){
// Do not return fn from catch block so `e` can be garbage collected
// See https://github.com/Leaflet/Leaflet/pull/7279
}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Kr={_initContainer:function(){this._container=gt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Yr("shape");wt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Yr("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;mt(t),e.removeInteractiveTarget(t),delete this._layers[o(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=Yr("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=Yr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){yt(e._container)},_bringToBack:function(e){At(e._container)}},$r=je.vml?Yr:J,Jr=Vr.extend({_initContainer:function(){this._container=$r("svg"),
// makes it possible to click through svg root; we'll reset it back in individual paths
this._container.setAttribute("pointer-events","none"),this._rootGroup=$r("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){mt(this._container),zt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;
// set size of svg-container if changed
this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),
// movement: update container viewBox so that we don't have to change coordinates of individual layers
Bt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},
// methods below are called by vector layers implementations
_initPath:function(e){var t=e._path=$r("path");
// @namespace Path
// @option className: String = null
// Custom class name set on an element. Only for SVG renderer.
e.options.className&&wt(t,e.options.className),e.options.interactive&&wt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){mt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[o(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,X(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";
// drawing a circle with two half-arcs
this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
_bringToFront:function(e){yt(e._path)},_bringToBack:function(e){At(e._path)}});
/*
   * @class SVG
   *
   *
   * VML was deprecated in 2012, which means VML functionality exists only for backwards compatibility
   * with old versions of Internet Explorer.
   */
// mixin to redefine some SVG methods to handle VML syntax which is similar but with some differences
// @namespace SVG
// @factory L.svg(options?: Renderer options)
// Creates a SVG renderer with the given options.
function Xr(e){return je.svg||je.vml?new Jr(e):null}je.vml&&Jr.include(Kr),an.include({
// @namespace Map; @method getRenderer(layer: Path): Renderer
// Returns the instance of `Renderer` that should be used to render the given
// `Path`. It will ensure that the `renderer` options of the map and paths
// are respected, and that the renderers do exist on the map.
getRenderer:function(e){
// @namespace Path; @option renderer: Renderer
// Use this specific instance of `Renderer` for this path. Takes
// precedence over the map's [default renderer](#map-renderer).
var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){
// @namespace Map; @option preferCanvas: Boolean = false
// Whether `Path`s should be rendered on a `Canvas` renderer.
// By default, all `Path`s are rendered in a `SVG` renderer.
return this.options.preferCanvas&&qr(e)||Xr(e)}});
/*
   * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object.
   */
/*
   * @class Rectangle
   * @aka L.Rectangle
   * @inherits Polygon
   *
   * A class for drawing rectangle overlays on a map. Extends `Polygon`.
   *
   * @example
   *
   * ```js
   * // define rectangle geographical bounds
   * var bounds = [[54.559322, -5.767822], [56.1210604, -3.021240]];
   *
   * // create an orange rectangle
   * L.rectangle(bounds, {color: "#ff7800", weight: 1}).addTo(map);
   *
   * // zoom the map to the rectangle bounds
   * map.fitBounds(bounds);
   * ```
   *
   */
var Zr=fr.extend({initialize:function(e,t){fr.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},
// @method setBounds(latLngBounds: LatLngBounds): this
// Redraws the rectangle with the passed bounds.
setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=N(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});
// @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)
function ei(e,t){return new Zr(e,t)}Jr.create=$r,Jr.pointsToPath=X,pr.geometryToLayer=gr,pr.coordsToLatLng=vr,pr.coordsToLatLngs=yr,pr.latLngToCoords=Ar,pr.latLngsToCoords=br,pr.getFeature=wr,pr.asFeature=xr,
/*
   * L.Handler.BoxZoom is used to add shift-drag zoom interaction to the map
   * (zoom to a selected bounding box), enabled by default.
   */
// @namespace Map
// @section Interaction Options
an.mergeOptions({
// @option boxZoom: Boolean = true
// Whether the map can be zoomed to a rectangular area specified by
// dragging the mouse while pressing the shift key.
boxZoom:!0});var ti=yn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Nt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){zt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){mt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;
// Clear the deferred resetState if it hasn't executed yet, otherwise it
// will interrupt the interaction and orphan a box element in the container.
this._clearDeferredResetState(),this._resetState(),at(),Ot(),this._startPoint=this._map.mouseEventToContainerPoint(e),Nt(document,{contextmenu:$t,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=gt("div","leaflet-zoom-box",this._container),wt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new Q(this._point,this._startPoint),n=t.getSize();Bt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(mt(this._box),xt(this._container,"leaflet-crosshair")),ot(),Dt(),zt(document,{contextmenu:$t,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){
// Postpone to next JS tick so internal click event handling
// still see it as "moved".
this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new j(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});
// @section Handlers
// @property boxZoom: Handler
// Box (shift-drag with mouse) zoom handler.
an.addInitHook("addHandler","boxZoom",ti),
/*
   * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.
   */
// @namespace Map
// @section Interaction Options
an.mergeOptions({
// @option doubleClickZoom: Boolean|String = true
// Whether the map can be zoomed in by double clicking on it and
// zoomed out by double clicking while holding shift. If passed
// `'center'`, double-click zoom will zoom to the center of the
//  view regardless of where the mouse was.
doubleClickZoom:!0});var ni=yn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});
// @section Handlers

// Map properties include interaction handlers that allow you to control
// interaction behavior in runtime, enabling or disabling certain features such
// as dragging or touch zoom (see `Handler` methods). For example:

// ```js
// map.doubleClickZoom.disable();
// ```

// @property doubleClickZoom: Handler
// Double click zoom handler.
an.addInitHook("addHandler","doubleClickZoom",ni),
/*
   * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.
   */
// @namespace Map
// @section Interaction Options
an.mergeOptions({
// @option dragging: Boolean = true
// Whether the map is draggable with mouse/touch or not.
dragging:!0,
// @section Panning Inertia Options
// @option inertia: Boolean = *
// If enabled, panning of the map will have an inertia effect where
// the map builds momentum while dragging and continues moving in
// the same direction for some time. Feels especially nice on touch
// devices. Enabled by default.
inertia:!0,
// @option inertiaDeceleration: Number = 3000
// The rate with which the inertial movement slows down, in pixels/second².
inertiaDeceleration:3400,// px/s^2
// @option inertiaMaxSpeed: Number = Infinity
// Max speed of the inertial movement, in pixels/second.
inertiaMaxSpeed:1/0,// px/s
// @option easeLinearity: Number = 0.2
easeLinearity:.2,
// TODO refactor, move to CRS
// @option worldCopyJump: Boolean = false
// With this option enabled, the map tracks when you pan to another "copy"
// of the world and seamlessly jumps to the original one so that all overlays
// like markers and vector layers are still visible.
worldCopyJump:!1,
// @option maxBoundsViscosity: Number = 0.0
// If `maxBounds` is set, this option will control how solid the bounds
// are when dragging the map around. The default value of `0.0` allows the
// user to drag outside the bounds at normal speed, higher values will
// slow down map dragging outside bounds, and `1.0` makes the bounds fully
// solid, preventing the user from dragging outside the bounds.
maxBoundsViscosity:0});var ri=yn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new wn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}wt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xt(this._map._container,"leaflet-grab"),xt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=N(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){
// TODO refactor to be able to adjust map pane position after zoom
var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),c=s.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,c),u=s.multiplyBy(l/c),h=l/(n.inertiaDeceleration*o),f=u.multiplyBy(-h/2).round();f.x||f.y?(f=t._limitOffset(f,t.options.maxBounds),I((function(){t.panBy(f,{duration:h,easeLinearity:o,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});
// @section Handlers
// @property dragging: Handler
// Map dragging handler (by both mouse and touch).
an.addInitHook("addHandler","dragging",ri),
/*
   * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.
   */
// @namespace Map
// @section Keyboard Navigation Options
an.mergeOptions({
// @option keyboard: Boolean = true
// Makes the map focusable and allows users to navigate the map with keyboard
// arrows and `+`/`-` keys.
keyboard:!0,
// @option keyboardPanDelta: Number = 80
// Amount of pixels to pan when pressing an arrow key.
keyboardPanDelta:80});var ii=yn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;
// make the container focusable by tabbing
e.tabIndex<=0&&(e.tabIndex="0"),Nt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),zt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){Nt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){zt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=P(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset(P(t),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(i)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}$t(e)}}});
// @section Handlers
// @section Handlers
// @property keyboard: Handler
// Keyboard navigation handler.
an.addInitHook("addHandler","keyboard",ii),
/*
   * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map.
   */
// @namespace Map
// @section Interaction Options
an.mergeOptions({
// @section Mouse wheel options
// @option scrollWheelZoom: Boolean|String = true
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
// it will zoom to the center of the view regardless of where the mouse was.
scrollWheelZoom:!0,
// @option wheelDebounceTime: Number = 40
// Limits the rate at which a wheel can fire (in milliseconds). By default
// user can't zoom via wheel more often than once per 40 ms.
wheelDebounceTime:40,
// @option wheelPxPerZoomLevel: Number = 60
// How many scroll pixels (as reported by [L.DomEvent.getWheelDelta](#domevent-getwheeldelta))
// mean a change of one full zoom level. Smaller values will make wheel-zooming
// faster (and vice versa).
wheelPxPerZoomLevel:60});var ai=yn.extend({addHooks:function(){Nt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){zt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=en(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),$t(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();// stop panning and fly animations if any
// map the delta with a sigmoid function to -4..4 range leaning on -1..1
var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,a=n?Math.ceil(i/n)*n:i,o=e._limitZoom(t+(this._delta>0?a:-a))-t;this._delta=0,this._startTime=null,o&&("center"===e.options.scrollWheelZoom?e.setZoom(t+o):e.setZoomAround(this._lastMousePos,t+o))}});
// @section Handlers
// @property scrollWheelZoom: Handler
// Scroll wheel zoom handler.
an.addInitHook("addHandler","scrollWheelZoom",ai);
/*
   * L.Map.TapHold is used to simulate `contextmenu` event on long hold,
   * which otherwise is not fired by mobile Safari.
   */
var oi=600;
// @namespace Map
// @section Interaction Options
an.mergeOptions({
// @section Touch interaction options
// @option tapHold: Boolean
// Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
tapHold:je.touchNative&&je.safari&&je.mobile,
// @option tapTolerance: Number = 15
// The max number of pixels a user can shift his finger during touch
// for it to be considered a valid tap.
tapTolerance:15});var si=yn.extend({addHooks:function(){Nt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){zt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new O(t.clientX,t.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(
// prevent simulated mouse events https://w3c.github.io/touch-events/#mouse-events
Nt(document,"touchend",Kt),Nt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),oi),Nt(document,"touchend touchcancel contextmenu",this._cancel,this),Nt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){zt(document,"touchend",Kt),zt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),zt(document,"touchend touchcancel contextmenu",this._cancel,this),zt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new O(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,
// detail: 1,
screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});
// @section Handlers
// @property tapHold: Handler
// Long tap handler to simulate `contextmenu` event (useful in mobile Safari).
an.addInitHook("addHandler","tapHold",si),
/*
   * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers.
   */
// @namespace Map
// @section Interaction Options
an.mergeOptions({
// @section Touch interaction options
// @option touchZoom: Boolean|String = *
// Whether the map can be zoomed by touch-dragging with two fingers. If
// passed `'center'`, it will zoom to the center of the view regardless of
// where the touch events (fingers) were. Enabled for touch-capable web
// browsers.
touchZoom:je.touch,
// @option bounceAtZoomLimits: Boolean = true
// Set it to false if you don't want the map to zoom beyond min/max zoom
// and then bounce back when pinch-zooming.
bounceAtZoomLimits:!0});var ci=yn.extend({addHooks:function(){wt(this._map._container,"leaflet-touch-zoom"),Nt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xt(this._map._container,"leaflet-touch-zoom"),zt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Nt(document,"touchmove",this._onTouchMove,this),Nt(document,"touchend touchcancel",this._onTouchEnd,this),Kt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),a=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(a,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&a<1||this._zoom>t.getMaxZoom()&&a>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{
// Get delta from pinch to center, so centerLatLng is delta applied to initial pinchLatLng
var o=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===a&&0===o.x&&0===o.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(s,this,!0),Kt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),zt(document,"touchmove",this._onTouchMove,this),zt(document,"touchend touchcancel",this._onTouchEnd,this),
// Pinch updates GridLayers' levels only when zoomSnap is off, so zoomSnap becomes noUpdate.
this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});
// @section Handlers
// @property touchZoom: Handler
// Touch zoom handler.
an.addInitHook("addHandler","touchZoom",ci),an.BoxZoom=ti,an.DoubleClickZoom=ni,an.Drag=ri,an.Keyboard=ii,an.ScrollWheelZoom=ai,an.TapHold=si,an.TouchZoom=ci,e.Bounds=Q,e.Browser=je,e.CRS=U,e.Canvas=Wr,e.Circle=cr,e.CircleMarker=or,e.Class=S,e.Control=sn,e.DivIcon=Rr,e.DivOverlay=Or,e.DomEvent=nn,e.DomUtil=jt,e.Draggable=wn,e.Evented=T,e.FeatureGroup=Jn,e.GeoJSON=pr,e.GridLayer=Nr,e.Handler=yn,e.Icon=Zn,e.ImageOverlay=Er,e.LatLng=F,e.LatLngBounds=j,e.Layer=Yn,e.LayerGroup=Kn,e.LineUtil=zn,e.Map=an,e.Marker=rr,e.Mixin=An,e.Path=ar,e.Point=O,e.PolyUtil=En,e.Polygon=fr,e.Polyline=ur,e.Popup=Dr,e.PosAnimation=rn,e.Projection=Gn,e.Rectangle=Zr,e.Renderer=Vr,e.SVG=Jr,e.SVGOverlay=Mr,e.TileLayer=zr,e.Tooltip=Lr,e.Transformation=q,e.Util=k,e.VideoOverlay=Sr,e.bind=i,e.bounds=R,e.canvas=qr,e.circle=lr,e.circleMarker=sr,e.control=cn,e.divIcon=jr,e.extend=n,e.featureGroup=Xn,e.geoJSON=_r,e.geoJson=Ir,e.gridLayer=Fr,e.icon=er,e.imageOverlay=kr,e.latLng=z,e.latLngBounds=N,e.layerGroup=$n,e.map=on,e.marker=ir,e.point=P,e.polygon=dr,e.polyline=hr,e.popup=Pr,e.rectangle=ei,e.setOptions=d,e.stamp=o,e.svg=Xr,e.svgOverlay=Tr,e.tileLayer=Hr,e.tooltip=Qr,e.transformation=Y,e.version=t,e.videoOverlay=Br;var li=window.L;e.noConflict=function(){return window.L=li,this}
// Always export us to window global (see #2364)
,window.L=e}(t);
//# sourceMappingURL=leaflet-src.js.map
/***/},
/***/e11f:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/e163:
/***/function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),a=n("7b0b"),o=n("f772"),s=n("e177"),c=o("IE_PROTO"),l=Object,u=l.prototype;
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
// eslint-disable-next-line es/no-object-getprototypeof -- safe
e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},
/***/e169:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.drawPolylinePath=a,t.drawBezierCurvePath=o,t.default=void 0;var i=r(n("448a"));
/**
 * @description Draw a polyline path
 * @param {Object} ctx        Canvas 2d context
 * @param {Array} points      The points that makes up a polyline
 * @param {Boolean} beginPath Whether to execute beginPath
 * @param {Boolean} closePath Whether to execute closePath
 * @return {Undefined} Void
 */function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||t.length<2)return!1;n&&e.beginPath(),t.forEach((function(t,n){return t&&(0===n?e.moveTo.apply(e,(0,i.default)(t)):e.lineTo.apply(e,(0,i.default)(t)))})),r&&e.closePath()}
/**
 * @description Draw a bezier curve path
 * @param {Object} ctx        Canvas 2d context
 * @param {Array} points      The points that makes up a bezier curve
 * @param {Array} moveTo      The point need to excute moveTo
 * @param {Boolean} beginPath Whether to execute beginPath
 * @param {Boolean} closePath Whether to execute closePath
 * @return {Undefined} Void
 */function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e||!t)return!1;arguments.length>3&&void 0!==arguments[3]&&arguments[3]&&e.beginPath(),n&&e.moveTo.apply(e,(0,i.default)(n)),t.forEach((function(t){return t&&e.bezierCurveTo.apply(e,(0,i.default)(t[0]).concat((0,i.default)(t[1]),(0,i.default)(t[2])))})),r&&e.closePath()}var s={drawPolylinePath:a,drawBezierCurvePath:o};t.default=s},
/***/e171:
/***/function(e,t){t.f={}.propertyIsEnumerable;
/***/},
/***/e177:
/***/function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){/* empty */}
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},
/***/e198:
/***/function(e,t,n){var r=n("ef08"),i=n("5524"),a=n("e444"),o=n("fcd4"),s=n("1a14").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},
/***/e1d3:
/***/function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,// Monday is the first day of the week.
doy:4}})}(n("c1df"));
/***/},
/***/e24b:
/***/function(e,t,n){var r=n("49f4"),i=n("1efc"),a=n("bbc0"),o=n("7a48"),s=n("2524");
/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}
// Add methods to `Hash`.
c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},
/***/e260:
/***/function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),a=n("3f8c"),o=n("69f3"),s=n("9bf2").f,c=n("c6d2"),l=n("4754"),u=n("c430"),h=n("83ab"),f="Array Iterator",d=o.set,p=o.getterFor(f);
// `Array.prototype.entries` method
// https://tc39.es/ecma262/#sec-array.prototype.entries
// `Array.prototype.keys` method
// https://tc39.es/ecma262/#sec-array.prototype.keys
// `Array.prototype.values` method
// https://tc39.es/ecma262/#sec-array.prototype.values
// `Array.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
// `CreateArrayIterator` internal method
// https://tc39.es/ecma262/#sec-createarrayiterator
e.exports=c(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),// target
index:0,// next index
kind:t});
// `%ArrayIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");
// argumentsList[@@iterator] is %ArrayProto_values%
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
var g=a.Arguments=a.Array;
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
// V8 ~ Chrome 45- bug
if(i("keys"),i("values"),i("entries"),!u&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(e){/* empty */}
/***/},
/***/e263:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"d",(function(){return d})),
/* harmony export (binding) */n.d(t,"c",(function(){return p})),
/* harmony export (binding) */n.d(t,"b",(function(){return v})),
/* harmony export (binding) */n.d(t,"e",(function(){return y})),
/* harmony export (binding) */n.d(t,"a",(function(){return A}));
/* harmony import */var r=n("401b"),i=n("4a3f"),a=Math.min,o=Math.max,s=Math.sin,c=Math.cos,l=2*Math.PI,u=r.create(),h=r.create(),f=r.create();
/* harmony import */function d(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],c=r[1],l=r[1],u=1;u<e.length;u++)r=e[u],i=a(i,r[0]),s=o(s,r[0]),c=a(c,r[1]),l=o(l,r[1]);t[0]=i,t[1]=c,n[0]=s,n[1]=l}}function p(e,t,n,r,i,s){i[0]=a(e,n),i[1]=a(t,r),s[0]=o(e,n),s[1]=o(t,r)}var g=[],m=[];function v(e,t,n,r,s,c,l,u,h,f){var d=i.c,p=i.a,v=d(e,n,s,l,g);h[0]=1/0,h[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var y=0;y<v;y++){var A=p(e,n,s,l,g[y]);h[0]=a(A,h[0]),f[0]=o(A,f[0])}v=d(t,r,c,u,m);for(y=0;y<v;y++){var b=p(t,r,c,u,m[y]);h[1]=a(b,h[1]),f[1]=o(b,f[1])}h[0]=a(e,h[0]),f[0]=o(e,f[0]),h[0]=a(l,h[0]),f[0]=o(l,f[0]),h[1]=a(t,h[1]),f[1]=o(t,f[1]),h[1]=a(u,h[1]),f[1]=o(u,f[1])}function y(e,t,n,r,s,c,l,u){var h=i.j,f=i.h,d=o(a(h(e,n,s),1),0),p=o(a(h(t,r,c),1),0),g=f(e,n,s,d),m=f(t,r,c,p);l[0]=a(e,s,g),l[1]=a(t,c,m),u[0]=o(e,s,g),u[1]=o(t,c,m)}function A(e,t,n,i,a,o,d,p,g){var m=r.min,v=r.max,y=Math.abs(a-o);if(y%l<1e-4&&y>1e-4)return p[0]=e-n,p[1]=t-i,g[0]=e+n,void(g[1]=t+i);if(u[0]=c(a)*n+e,u[1]=s(a)*i+t,h[0]=c(o)*n+e,h[1]=s(o)*i+t,m(p,u,h),v(g,u,h),(a%=l)<0&&(a+=l),(o%=l)<0&&(o+=l),a>o&&!d?o+=l:a<o&&d&&(a+=l),d){var A=o;o=a,a=A}for(var b=0;b<o;b+=Math.PI/2)b>a&&(f[0]=c(b)*n+e,f[1]=s(b)*i+t,m(p,f,p),v(g,f,g))}
/***/},
/***/e267:
/***/function(e,t,n){"use strict";var r=n("e330"),i=n("e8b5"),a=n("1626"),o=n("c6b6"),s=n("577e"),c=r([].push);e.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!==o(l)&&"String"!==o(l)||c(n,s(l))}var u=n.length,h=!0;return function(e,t){if(h)return h=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},
/***/e285:
/***/function(e,t,n){"use strict";var r=n("cfe9").isFinite;
// `Number.isFinite` method
// https://tc39.es/ecma262/#sec-number.isfinite
// eslint-disable-next-line es/no-number-isfinite -- safe
e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},
/***/e2b9:
/***/function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"
/***/},
/***/e2c0:
/***/function(e,t,n){var r=n("e2e4"),i=n("d370"),a=n("6747"),o=n("c098"),s=n("b218"),c=n("f4d6");
/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,h=!1;++l<u;){var f=c(t[l]);if(!(h=null!=e&&n(e,f)))break;e=e[f]}return h||++l!=u?h:!!(u=null==e?0:e.length)&&s(u)&&o(f,u)&&(a(e)||i(e))}},
/***/e2e4:
/***/function(e,t,n){var r=n("6747"),i=n("f608"),a=n("18d8"),o=n("76dd");
/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},
/***/e330:
/***/function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},
/***/e34a:
/***/function(e,t,n){var r=n("8b1a")("meta"),i=n("7a41"),a=n("9c0e"),o=n("1a14").f,s=0,c=Object.isExtensible||function(){return!0},l=!n("4b8b")((function(){return c(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,// object ID
w:{}}})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){
// return primitive with prefix
if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){
// can't set metadata to uncaught frozen object
if(!c(e))return"F";
// not necessary to add metadata
if(!t)return"E";
// add missing metadata
u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){
// can't set metadata to uncaught frozen object
if(!c(e))return!0;
// not necessary to add metadata
if(!t)return!1;
// add missing metadata
u(e)}return e[r].w},onFreeze:function(e){return l&&h.NEED&&c(e)&&!a(e,r)&&u(e),e}}},
/***/e380:
/***/function(e,t,n){var r=n("7b83");
/** Error message constants. */
/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}
// Expose `MapCache`.
i.Cache=r,e.exports=i},
/***/e391:
/***/function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},
/***/e3f8:
/***/function(e,t,n){var r=n("656b");
/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */e.exports=function(e){return function(t){return r(t,e)}}},
/***/e3fa:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_arrayLikeKeys.js + 1 modules
var r=n("ee03"),i=n("2332"),a=n("a724");
// EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js
/* harmony default export */var o=
// CONCATENATED MODULE: ./node_modules/lodash-es/_nativeKeysIn.js
/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty;
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseKeysIn.js
/** Used for built-in method references. */
/* harmony default export */var c=
/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){if(!Object(i.a)(e))return o(e);var t=Object(a.a)(e),n=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&n.push(r);return n},l=n("e56b");
// EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLike.js
/* harmony default export */t.a=
// CONCATENATED MODULE: ./node_modules/lodash-es/keysIn.js
/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function(e){return Object(l.a)(e)?Object(r.a)(e,!0):c(e)};
/***/},
/***/e439:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("fc6a"),o=n("06cf").f,s=n("83ab");
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
r({target:"Object",stat:!0,forced:!s||i((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},
/***/e444:
/***/function(e,t){e.exports=!0;
/***/},
/***/e4a7:
/***/function(e,t,n){"use strict";
// B.2.3.13 String.prototype.sub()
n("e681")("sub",(function(e){return function(){return e(this,"sub","","")}}))},
/***/e507:
/***/function(e,t,n){
// 19.1.3.1 Object.assign(target, source)
var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},
/***/e50d:
/***/function(e,t,n){n("8172"),n("d9e2"),n("efec"),n("a9e3");var r=n("7037").default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},
/***/e538:
/***/function(e,t,n){"use strict";var r=n("b622");t.f=r},
/***/e5383:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(e){var r=n("2b3e"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;
/** Detect free variable `exports`. */e.exports=
/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n("62e4")(e))
/***/},
/***/e56b:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("bc9b"),i=n("26ce");
/* harmony import */
/* harmony default export */t.a=
/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function(e){return null!=e&&Object(i.a)(e.length)&&!Object(r.a)(e)}},
/***/e5aa:
/***/function(e,t,n){
// call something on iterator step with safe closing on error
var r=n("d77f");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n);
// 7.4.6 IteratorClose(iterator, completion)
}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},
/***/e5cb:
/***/function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),a=n("9112"),o=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),h=n("e391"),f=n("ab36"),d=n("6f19"),p=n("83ab"),g=n("c430");e.exports=function(e,t,n,m){var v="stackTraceLimit",y=m?2:1,A=e.split("."),b=A[A.length-1],w=r.apply(null,A);if(w){var x=w.prototype;
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
if(!g&&i(x,"cause")&&delete x.cause,!n)return w;var C=r("Error"),_=t((function(e,t){var n=h(m?t:e,void 0),r=m?new w(e):new w;return void 0!==n&&a(r,"message",n),d(r,_,r.stack,2),this&&o(x,this)&&u(r,this,_),arguments.length>y&&f(r,arguments[y]),r}));if(_.prototype=x,"Error"!==b?s?s(_,C):c(_,C,{name:!0}):p&&v in w&&(l(_,w,v),l(_,w,"prepareStackTrace")),c(_,w),!g)try{
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
x.name!==b&&a(x,"name",b),x.constructor=_}catch(e){/* empty */}return _}}},
/***/e5cd:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("41b2"),i=n.n(r),a=n("4d91"),o=n("02ea");
/* harmony import */
/* harmony default export */t.a={name:"LocaleReceiver",props:{componentName:a.a.string.def("global"),defaultLocale:a.a.oneOfType([a.a.object,a.a.func]),children:a.a.func},inject:{localeData:{default:function(){return{}}}},methods:{getLocale:function(){var e=this.componentName,t=this.defaultLocale||o.a[e||"global"],n=this.localeData.antLocale,r=e&&n?n[e]:{};return i()({},"function"==typeof t?t():t,r||{})},getLocaleCode:function(){var e=this.localeData.antLocale,t=e&&e.locale;
// Had use LocaleProvide but didn't set locale
return e&&e.exist&&!t?o.a.locale:t}},render:function(){var e=this.$scopedSlots,t=this.children||e.default,n=this.localeData.antLocale;return t(this.getLocale(),this.getLocaleCode(),n)}}},
/***/e5d9:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm.js
var r=n("a026"),i=n("b85c");
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-contextmenujs/src/components/Submenu.vue?vue&type=template&id=ba60adee&scoped=true
// CONCATENATED MODULE: ./node_modules/vue-contextmenujs/src/constant.js
const a="left",o="right",s="contextmenu-submenu",c="contextmenu_menu",l="contextmenu_menu_item",u="contextmenu_menu_item_unclickable";
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-contextmenujs/src/components/Submenu.vue?vue&type=script&lang=js
/* harmony default export */var h={name:s,data:function(){return{CLASS_MENU:c,CLASS_MENU_ITEM:l,CLASS_MENU_ITEM_CLICKABLE:"contextmenu_menu_item_clickable",CLASS_MENU_ITEM_UNCLICKABLE:u,activeSubmenu:{index:null,instance:null},items:[],position:{x:0,y:0,width:0,height:0},style:{left:0,top:0,zIndex:2,minWidth:150},customClass:null,visible:!1,hasIcon:!1,openTrend:o}},mounted:function(){var e=this;this.visible=!0;var t,n=Object(i.a)(this.items);try{for(n.s();!(t=n.n()).done;){if(t.value.icon){this.hasIcon=!0;break}}}catch(e){n.e(e)}finally{n.f()}this.$nextTick((function(){var t=document.documentElement.clientWidth,n=document.documentElement.clientHeight,r=e.$refs.menu,i=r.offsetWidth,o=r.offsetHeight;(e.openTrend===a?e.leftOpen:e.rightOpen)(t,n,i),e.style.top=e.position.y,e.position.y+o>n&&(0===e.position.height?e.style.top=e.position.y/n>.5?e.position.y-o:e.position.y:e.style.top=n-o)}))},methods:{leftOpen:function(e,t,n){this.style.left=this.position.x-n,this.openTrend=a,this.style.left<0&&(this.openTrend=o,0===this.position.width?this.style.left=0:this.style.left=this.position.x+this.position.width)},rightOpen:function(e,t,n){this.style.left=this.position.x+this.position.width,this.openTrend=o,this.style.left+n>e&&(this.openTrend=a,0===this.position.width?this.style.left=e-n:this.style.left=this.position.x-n)},enterItem:function(e,t,n){if(this.visible){if(this.activeSubmenu.instance){if(this.activeSubmenu.index===n)return;this.activeSubmenu.instance.close(),this.activeSubmenu.instance=null,this.activeSubmenu.index=null}if(t.children){var i=e.target.getBoundingClientRect(),a=r.default.component(s);this.activeSubmenu.index=n,this.activeSubmenu.instance=new a,this.activeSubmenu.instance.items=t.children,this.activeSubmenu.instance.openTrend=this.openTrend,this.activeSubmenu.instance.position={x:i.x+3,y:i.y+-8,width:i.width-6,height:i.height- -16},this.activeSubmenu.instance.style.minWidth="number"==typeof t.minWidth?t.minWidth:this.style.minWidth,this.activeSubmenu.instance.style.zIndex=this.style.zIndex,this.activeSubmenu.instance.customClass="string"==typeof t.customClass?t.customClass:this.customClass,this.activeSubmenu.instance.$mount(),document.body.appendChild(this.activeSubmenu.instance.$el)}}},itemClick:function(e){if(this.visible)return!e||e.disabled||e.hidden||"function"!=typeof e.onClick?void 0:e.onClick()},close:function(){var e=this;this.visible=!1,this.activeSubmenu.instance&&this.activeSubmenu.instance.close(),this.$nextTick((function(){e.$destroy()}))}}},f=(n("fdb6"),n("767a"),n("2877")),d=Object(f.a)(h,(function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"contextmenu-submenu-fade"}},[e.visible?t("div",{ref:"menu",class:[e.CLASS_MENU,"menu",e.customClass],style:{left:e.style.left+"px",top:e.style.top+"px",minWidth:e.style.minWidth+"px",zIndex:e.style.zIndex},on:{contextmenu:function(e){return e.preventDefault()}}},[t("div",{staticClass:"menu_body"},[e._l(e.items,(function(n,r){return[n.hidden?e._e():[n.disabled?t("div",{key:r+"_disabled",class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_UNCLICKABLE,"menu_item","menu_item__disabled",n.divided?"menu_item__divided":null]},[e.hasIcon?t("div",{staticClass:"menu_item_icon"},[n.icon?t("i",{class:n.icon}):e._e()]):e._e(),t("span",{staticClass:"menu_item_label"},[e._v(e._s(n.label))]),t("div",{staticClass:"menu_item_expand_icon"})]):n.children?t("div",{key:r+"_children",class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_UNCLICKABLE,"menu_item","menu_item__available",e.activeSubmenu.index===r?"menu_item_expand":null,n.divided?"menu_item__divided":null],on:{mouseenter:function(t){return e.enterItem(t,n,r)}}},[e.hasIcon?t("div",{staticClass:"menu_item_icon"},[n.icon?t("i",{class:n.icon}):e._e()]):e._e(),t("span",{staticClass:"menu_item_label"},[e._v(e._s(n.label))]),t("div",{staticClass:"menu_item_expand_icon"},[e._v("▶")])]):t("div",{key:r,class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_CLICKABLE,"menu_item","menu_item__available",n.divided?"menu_item__divided":null],on:{mouseenter:function(t){return e.enterItem(t,n,r)},click:function(t){return e.itemClick(n)}}},[e.hasIcon?t("div",{staticClass:"menu_item_icon"},[n.icon?t("i",{class:n.icon}):e._e()]):e._e(),t("span",{staticClass:"menu_item_label"},[e._v(e._s(n.label))]),t("div",{staticClass:"menu_item_expand_icon"})])]]}))],2)]):e._e()])}),[],!1,null,"ba60adee",null)
/* harmony default export */.exports;
// CONCATENATED MODULE: ./node_modules/vue-contextmenujs/src/components/Submenu.vue?vue&type=script&lang=js
/* harmony default export */function p(e){let t=[];for(let n of document.getElementsByClassName(e)||[])t.push(n);return t}
// CONCATENATED MODULE: ./node_modules/vue-contextmenujs/src/index.js
r.default.component(s,d);class g{constructor(e){const t=r.default.component(s);this.instance=new t,this.instance.items=e.items,this.instance.position={x:e.event&&e.event.clientX||e.x||0,y:e.event&&e.event.clientY||e.y||0,width:0,height:0},e.minWidth&&(this.instance.style.minWidth=e.minWidth),e.zIndex&&(this.instance.style.zIndex=e.zIndex),this.instance.customClass=e.customClass,this.instance.$mount(),document.body.appendChild(this.instance.$el),this.addListener()}mousewheelListener(e){this.close()}mouseDownListener(e){let t=e.target;const n=p(c);for(;!n.find((e=>e===t))&&t.parentElement;)t=t.parentElement;n.find((e=>e===t))||this.close()}mouseClickListener(e){let t=e.target;const n=p(c),r=p(l),i=p(u);for(;!n.find((e=>e===t))&&!r.find((e=>e===t))&&t.parentElement;)t=t.parentElement;if(r.find((e=>e===t))){if(0!==e.button||i.find((e=>e===t)))return;this.close()}else n.find((e=>e===t))||this.close()}addListener(){this.mouseClickListenerProxy=e=>this.mouseClickListener(e),this.mouseDownListenerProxy=e=>this.mouseDownListener(e),this.mousewheelListenerProxy=e=>this.mousewheelListener(e),document.addEventListener("click",this.mouseClickListenerProxy),document.addEventListener("mousedown",this.mouseDownListenerProxy),document.addEventListener("mousewheel",this.mousewheelListenerProxy)}removeListener(){document.removeEventListener("click",this.mouseClickListenerProxy),document.removeEventListener("mousedown",this.mouseDownListenerProxy),document.removeEventListener("mousewheel",this.mousewheelListenerProxy)}close(){this.removeListener(),this.instance.close()}}function m(e){let t=null;const n=function(e){n.destroy(),t=new g(e)};n.destroy=function(){t&&(t.close(),t=null)},e.prototype.$contextmenu=n}window&&window.Vue&&m(window.Vue)
/* harmony default export */;var v={install:m};
// CONCATENATED MODULE: ./node_modules/vue-contextmenujs/index.js
/* harmony default export */t.a=v},
/***/e642:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return m}));
/* harmony import */var r=n("5a89");
// o object_name | g group_name
const i=/^[og]\s*(.+)?/,a=/^mtllib /,o=/^usemtl /,s=/^usemap /,c=/\s+/,l=new r.Pb,u=new r.Pb,h=new r.Pb,f=new r.Pb,d=new r.Pb,p=new r.j;
// mtllib file_reference
function g(){const e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){
// If the current object (initial from reset) is not from a g/o declaration in the parsed
// file. We need to use it for the first parsed g/o to keep things in sync.
if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);const n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;
// Inherit previous objects material.
// Spec tells us that a declared material must be set to all objects until a new material is declared.
// If a usemtl declaration is encountered while this new object is being parsed, it will
// overwrite the inherited material. Exception being that there was already face declarations
// to the inherited material, then it will be preserved for proper MultiMaterial continuation.
if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){const n=this._finalize(!1);
// New usemtl declaration overwrites an inherited material, except if faces were declared
// after the material, then it must be preserved for proper MultiMaterial continuation.
n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);const r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){const t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const t=this.currentMaterial();
// Ignore objects tail materials if no face declarations followed them before a new o/g started.
if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(let e=this.materials.length-1;e>=0;e--)this.materials[e].groupCount<=0&&this.materials.splice(e,1);
// Guarantee at least one empty material, this makes the creation later more straight forward.
return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){const e=n.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){const n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){const r=this.vertices,i=this.object.geometry.vertices;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){const r=this.normals,i=this.object.geometry.normals;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addFaceNormal:function(e,t,n){const r=this.vertices,i=this.object.geometry.normals;l.fromArray(r,e),u.fromArray(r,t),h.fromArray(r,n),d.subVectors(h,u),f.subVectors(l,u),d.cross(f),d.normalize(),i.push(d.x,d.y,d.z),i.push(d.x,d.y,d.z),i.push(d.x,d.y,d.z)},addColor:function(e,t,n){const r=this.colors,i=this.object.geometry.colors;void 0!==r[e]&&i.push(r[e+0],r[e+1],r[e+2]),void 0!==r[t]&&i.push(r[t+0],r[t+1],r[t+2]),void 0!==r[n]&&i.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){const r=this.uvs,i=this.object.geometry.uvs;i.push(r[e+0],r[e+1]),i.push(r[t+0],r[t+1]),i.push(r[n+0],r[n+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,i,a,o,s,c){const l=this.vertices.length;let u=this.parseVertexIndex(e,l),h=this.parseVertexIndex(t,l),f=this.parseVertexIndex(n,l);
// normals
if(this.addVertex(u,h,f),this.addColor(u,h,f),void 0!==o&&""!==o){const e=this.normals.length;u=this.parseNormalIndex(o,e),h=this.parseNormalIndex(s,e),f=this.parseNormalIndex(c,e),this.addNormal(u,h,f)}else this.addFaceNormal(u,h,f);
// uvs
if(void 0!==r&&""!==r){const e=this.uvs.length;u=this.parseUVIndex(r,e),h=this.parseUVIndex(i,e),f=this.parseUVIndex(a,e),this.addUV(u,h,f),this.object.geometry.hasUVIndices=!0}else
// add placeholder values (for inconsistent face definitions)
this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let n=0,r=e.length;n<r;n++){const r=this.parseVertexIndex(e[n],t);this.addVertexPoint(r),this.addColor(r)}},addLineGeometry:function(e,t){this.object.geometry.type="Line";const n=this.vertices.length,r=this.uvs.length;for(let t=0,r=e.length;t<r;t++)this.addVertexLine(this.parseVertexIndex(e[t],n));for(let e=0,n=t.length;e<n;e++)this.addUVLine(this.parseUVIndex(t[e],r))}};return e.startObject("",!1),e}

class m extends r.P{constructor(e){super(e),this.materials=null}load(e,t,n,i){const a=this,o=new r.t(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,(function(n){try{t(a.parse(n))}catch(t){i&&i(t),a.manager.itemError(e)}}),n,i)}setMaterials(e){return this.materials=e,this}parse(e){const t=new g;-1!==e.indexOf("\r\n")&&(
// This is faster than String.split with regex that splits on both
e=e.replace(/\r\n/g,"\n")),-1!==e.indexOf("\\\n")&&(
// join lines separated by a line continuation character (\)
e=e.replace(/\\\n/g,""));const n=e.split("\n");let l=[];for(let e=0,r=n.length;e<r;e++){const r=n[e].trimStart();if(0===r.length)continue;const u=r.charAt(0);
// @todo invoke passed in handler if any
if("#"!==u)if("v"===u){const e=r.split(c);switch(e[0]){case"v":t.vertices.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])),e.length>=7?(p.setRGB(parseFloat(e[4]),parseFloat(e[5]),parseFloat(e[6])).convertSRGBToLinear(),t.colors.push(p.r,p.g,p.b)):
// if no colors are defined, add placeholders so color and vertex indices match
t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]));break;case"vt":t.uvs.push(parseFloat(e[1]),parseFloat(e[2]))}}else if("f"===u){const e=r.slice(1).trim().split(c),n=[];
// Parse the face vertex data into an easy to work with format
for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r.length>0){const e=r.split("/");n.push(e)}}
// Draw an edge between the first vertex and all subsequent vertices to form an n-gon
const i=n[0];for(let e=1,r=n.length-1;e<r;e++){const r=n[e],a=n[e+1];t.addFace(i[0],r[0],a[0],i[1],r[1],a[1],i[2],r[2],a[2])}}else if("l"===u){const e=r.substring(1).trim().split(" ");let n=[];const i=[];if(-1===r.indexOf("/"))n=e;else for(let t=0,r=e.length;t<r;t++){const r=e[t].split("/");""!==r[0]&&n.push(r[0]),""!==r[1]&&i.push(r[1])}t.addLineGeometry(n,i)}else if("p"===u){const e=r.slice(1).trim().split(" ");t.addPointGeometry(e)}else if(null!==(l=i.exec(r))){
// o object_name
// or
// g group_name
// WORKAROUND: https://bugs.chromium.org/p/v8/issues/detail?id=2869
// let name = result[ 0 ].slice( 1 ).trim();
const e=(" "+l[0].slice(1).trim()).slice(1);t.startObject(e)}else if(o.test(r))
// material
t.object.startMaterial(r.substring(7).trim(),t.materialLibraries);else if(a.test(r))
// mtl file
t.materialLibraries.push(r.substring(7).trim());else if(s.test(r));else if("s"===u){
// smooth shading
// @todo Handle files that have varying smooth values for a set of faces inside one geometry,
// but does not define a usemtl for each face set.
// This should be detected and a dummy material created (later MultiMaterial and geometry groups).
// This requires some care to not create extra material on each smooth value for "normal" obj files.
// where explicit usemtl defines geometry groups.
// Example asset: examples/models/obj/cerberus/Cerberus.obj
/*
					 * http://paulbourke.net/dataformats/obj/
					 *
					 * From chapter "Grouping" Syntax explanation "s group_number":
					 * "group_number is the smoothing group number. To turn off smoothing groups, use a value of 0 or off.
					 * Polygonal elements use group numbers to put elements in different smoothing groups. For free-form
					 * surfaces, smoothing groups are either turned on or off; there is no difference between values greater
					 * than 0."
					 */
if(l=r.split(" "),l.length>1){const e=l[1].trim().toLowerCase();t.object.smooth="0"!==e&&"off"!==e}else
// ZBrush can produce "s" lines #11707
t.object.smooth=!0;const e=t.object.currentMaterial();e&&(e.smooth=t.object.smooth)}else
// Handle null terminated files without exception
if("\0"===r)continue}t.finalize();const u=new r.w;u.materialLibraries=[].concat(t.materialLibraries);if(!0===!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length))for(let e=0,n=t.objects.length;e<n;e++){const n=t.objects[e],i=n.geometry,a=n.materials,o="Line"===i.type,s="Points"===i.type;let c=!1;
// Skip o/g line declarations that did not follow with any faces
if(0===i.vertices.length)continue;const l=new r.g;l.setAttribute("position",new r.u(i.vertices,3)),i.normals.length>0&&l.setAttribute("normal",new r.u(i.normals,3)),i.colors.length>0&&(c=!0,l.setAttribute("color",new r.u(i.colors,3))),!0===i.hasUVIndices&&l.setAttribute("uv",new r.u(i.uvs,2));
// Create materials
const h=[];for(let e=0,n=a.length;e<n;e++){const n=a[e],i=n.name+"_"+n.smooth+"_"+c;let l=t.materials[i];if(null!==this.materials)
// mtl etc. loaders probably can't create line materials correctly, copy properties to a line material.
if(l=this.materials.create(n.name),!o||!l||l instanceof r.H){if(s&&l&&!(l instanceof r.nb)){const e=new r.nb({size:10,sizeAttenuation:!1});r.S.prototype.copy.call(e,l),e.color.copy(l.color),e.map=l.map,l=e}}else{const e=new r.H;r.S.prototype.copy.call(e,l),e.color.copy(l.color),l=e}void 0===l&&(l=o?new r.H:s?new r.nb({size:1,sizeAttenuation:!1}):new r.Z,l.name=n.name,l.flatShading=!n.smooth,l.vertexColors=c,t.materials[i]=l),h.push(l)}
// Create mesh
let f;if(h.length>1){for(let e=0,t=a.length;e<t;e++){const t=a[e];l.addGroup(t.groupStart,t.groupCount,e)}f=o?new r.J(l,h):s?new r.mb(l,h):new r.W(l,h)}else f=o?new r.J(l,h[0]):s?new r.mb(l,h[0]):new r.W(l,h[0]);f.name=n.name,u.add(f)}else
// if there is only the default parser state object with no geometry data, interpret data as point cloud
if(t.vertices.length>0){const e=new r.nb({size:1,sizeAttenuation:!1}),n=new r.g;n.setAttribute("position",new r.u(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(n.setAttribute("color",new r.u(t.colors,3)),e.vertexColors=!0);const i=new r.mb(n,e);u.add(i)}return u}}
/***/},
/***/e667:
/***/function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},
/***/e681:
/***/function(e,t,n){var r=n("f083"),i=n("f937"),a=n("688d"),o=/"/g,s=function(e,t,n,r){var i=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(o,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},
/***/e683:
/***/function(e,t,n){"use strict";
/**
 * Creates a new URL by combining the specified URLs
 *
 * @param {string} baseURL The base URL
 * @param {string} relativeURL The relative URL
 * @returns {string} The combined URL
 */e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},
/***/e6cf:
/***/function(e,t,n){"use strict";
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},
/***/e735:
/***/function(e,t,n){"use strict";
// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten
var r=n("f083"),i=n("428b"),a=n("42ee"),o=n("6373"),s=n("9b6f"),c=n("0a48");r(r.P,"Array",{flatten:function(){var e=arguments[0],t=a(this),n=o(t.length),r=c(t,0);return i(r,t,t,n,0,void 0===e?1:s(e)),r}}),n("66b7")("flatten")},
/***/e7ff:
/***/function(e,t,n){"use strict";
// 25.4.1.5 NewPromiseCapability(C)
var r=n("2ce8");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},
/***/e86a:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"f",(function(){return s})),
/* unused harmony export innerGetBoundingRect */
/* harmony export (binding) */n.d(t,"d",(function(){return l})),
/* harmony export (binding) */n.d(t,"a",(function(){return u})),
/* harmony export (binding) */n.d(t,"b",(function(){return h})),
/* harmony export (binding) */n.d(t,"e",(function(){return f})),
/* unused harmony export measureText */
/* harmony export (binding) */n.d(t,"g",(function(){return d})),
/* harmony export (binding) */n.d(t,"c",(function(){return p}));
/* harmony import */var r=n("9850"),i=n("d51b"),a=n("726e"),o={};
/* harmony import */function s(e,t){t=t||a.a;var n=o[t];n||(n=o[t]=new i.a(500));var r=n.get(e);return null==r&&(r=a.d.measureText(e,t).width,n.put(e,r)),r}function c(e,t,n,i){var a=s(e,t),o=f(t),c=u(0,a,n),l=h(0,o,i);return new r.a(c,l,a,o)}function l(e,t,n,i){var a=((e||"")+"").split("\n");if(1===a.length)return c(a[0],t,n,i);for(var o=new r.a(0,0,0,0),s=0;s<a.length;s++){var l=c(a[s],t,n,i);0===s?o.copy(l):o.union(l)}return o}function u(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function h(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function f(e){return s("国",e)}function d(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function p(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u="left",h="top";if(r instanceof Array)c+=d(r[0],n.width),l+=d(r[1],n.height),u=null,h=null;else switch(r){case"left":c-=i,l+=s,u="right",h="middle";break;case"right":c+=i+o,l+=s,h="middle";break;case"top":c+=o/2,l-=i,u="center",h="bottom";break;case"bottom":c+=o/2,l+=a+i,u="center";break;case"inside":c+=o/2,l+=s,u="center",h="middle";break;case"insideLeft":c+=i,l+=s,h="middle";break;case"insideRight":c+=o-i,l+=s,u="right",h="middle";break;case"insideTop":c+=o/2,l+=i,u="center";break;case"insideBottom":c+=o/2,l+=a-i,u="center",h="bottom";break;case"insideTopLeft":c+=i,l+=i;break;case"insideTopRight":c+=o-i,l+=i,u="right";break;case"insideBottomLeft":c+=i,l+=a-i,h="bottom";break;case"insideBottomRight":c+=o-i,l+=a-i,u="right",h="bottom"}return(e=e||{}).x=c,e.y=l,e.align=u,e.verticalAlign=h,e}
/***/},
/***/e887:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("6d8b"),i=n("2dc5"),a=n("8918"),o=n("625e"),s=n("e0d3"),c=n("7d6c"),l=n("9fbc"),u=n("cccd"),h=n("2306"),f=s.o(),d=Object(u.a)(),p=/** @class */function(){function e(){this.group=new i.a,this.uid=a.c("viewChart"),this.renderTask=Object(l.a)({plan:v,reset:y}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},
/**
   * Highlight series or specified data item.
   */
e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&m(i,r,"emphasis")},
/**
   * Downplay series or specified data item.
   */
e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&m(i,r,"normal")},
/**
   * Remove self.
   */
e.prototype.remove=function(e,t){this.group.removeAll()},
/**
   * Dispose self.
   */
e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},
// FIXME never used?
e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},
// FIXME never used?
e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},
/**
   * Traverse the new rendered elements.
   *
   * It will traverse the new added element in progressive rendering.
   * And traverse all in normal rendering.
   */
e.prototype.eachRendered=function(e){Object(h.traverseElements)(this.group,e)},e.markUpdateMethod=function(e,t){f(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();
/* harmony import */
/**
 * Set state of single element
 */
function g(e,t,n){e&&Object(c.y)(e)&&("emphasis"===t?c.r:c.C)(e,n)}function m(e,t,n){var i=s.u(e,t),a=t&&null!=t.highlightKey?Object(c.v)(t.highlightKey):null;null!=i?Object(r.each)(s.r(i),(function(t){g(e.getItemGraphicEl(t),n,a)})):e.eachItemGraphicEl((function(e){g(e,n,a)}))}function v(e){return d(e.model)}function y(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&f(i).updateMethod,c=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==c&&o[c](t,n,r,i),A[c]}o.b(p,["dispose"]),o.c(p);var A={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{
// Put view.render in `progress` to support appendData. But in this case
// view.render should not be called in reset, otherwise it will be called
// twise. Use `forceFirstProgress` to make sure that view.render is called
// in any cases.
forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};
/* harmony default export */t.a=p},
/***/e893:
/***/function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),a=n("06cf"),o=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var h=s[u];r(e,h)||n&&r(n,h)||c(e,h,l(t,h))}}},
/***/e8ae:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){return i(t[o][1][e]||e)}),l,l.exports,e,t,n,r)}return n[o].exports}for(var a=!1,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";const r=e("fs"),i=e("fast-csv"),a=e("dayjs/plugin/customParseFormat"),o=e("dayjs/plugin/utc"),s=e("dayjs").extend(a).extend(o),c=e("../utils/stream-buf"),{fs:{exists:l}}=e("../utils/utils"),u={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t=t||{},!await l(e))throw new Error("File not found: "+e);const n=r.createReadStream(e),i=await this.read(n,t);return n.close(),i}read(e,t){return t=t||{},new Promise(((n,r)=>{const a=this.workbook.addWorksheet(t.sheetName),o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],c=t.map||function(e){if(""===e)return null;const t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;const n=o.reduce(((t,n)=>{if(t)return t;const r=s(e,n,!0);return r.isValid()?r:null}),null);if(n)return new Date(n.valueOf());const r=u[e];return void 0!==r?r:e},l=i.parse(t.parserOptions).on("data",(e=>{a.addRow(e.map(c))})).on("end",(()=>{l.emit("worksheet",a)}));l.on("worksheet",n).on("error",r),e.pipe(l)}))}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise(((n,r)=>{t=t||{};const a=this.workbook.getWorksheet(t.sheetName||t.sheetId),o=i.format(t.formatterOptions);e.on("finish",(()=>{n()})),o.on("error",r),o.pipe(e);const{dateFormat:c,dateUTC:l}=t,u=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return c?l?s.utc(e).format(c):s(e).format(c):l?s.utc(e).format():s(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),h=void 0===t.includeEmptyRows||t.includeEmptyRows;let f=1;a&&a.eachRow(((e,t)=>{if(h)for(;f++<t-1;)o.write([]);const{values:n}=e;n.shift(),o.write(n.map(u)),f=t})),o.end()}))}writeFile(e,t){const n={encoding:(t=t||{}).encoding||"utf8"},i=r.createWriteStream(e,n);return this.write(i,t)}async writeBuffer(e){const t=new c;return await this.write(t,e),t.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,n){"use strict";const r=e("../utils/col-cache");class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=e,t)if("string"==typeof t){const e=r.decodeAddress(t);this.nativeCol=e.col+n,this.nativeColOff=0,this.nativeRow=e.row+n,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+n,this.row=t.row+n):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(e){return e instanceof i||null==e?e:new i(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,n){"use strict";const r=e("../utils/col-cache"),i=e("../utils/under-dash"),a=e("./enums"),{slideFormula:o}=e("../utils/shared-formula"),s=e("./note");class c{constructor(e,t,n){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,r.validateAddress(n),this._address=n,this._value=l.create(c.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,n){const r=e&&e.numFmt||t&&t.numFmt;r&&(n.numFmt=r);const i=e&&e.font||t&&t.font;i&&(n.font=i);const a=e&&e.alignment||t&&t.alignment;a&&(n.alignment=a);const o=e&&e.border||t&&t.border;o&&(n.border=o);const s=e&&e.fill||t&&t.fill;s&&(n.fill=s);const c=e&&e.protection||t&&t.protection;return c&&(n.protection=c),n}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===c.Types.Merge}merge(e,t){this._value.release(),this._value=l.create(c.Types.Merge,this,e),t||(this.style=e.style)}unmerge(){this.type===c.Types.Merge&&(this._value.release(),this._value=l.create(c.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===c.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===c.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===c.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==c.Types.Merge?(this._value.release(),this._value=l.create(l.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new s(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===c.Types.String&&(this._value=l.create(c.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach((e=>{t.addEx(this.fullAddress,e)}))}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){this._value.release(),this._value=l.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type&&(this._comment=s.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}c.Types=a.ValueType;const l={getType:e=>null==e?c.Types.Null:e instanceof String||"string"==typeof e?c.Types.String:"number"==typeof e?c.Types.Number:"boolean"==typeof e?c.Types.Boolean:e instanceof Date?c.Types.Date:e.text&&e.hyperlink?c.Types.Hyperlink:e.formula||e.sharedFormula?c.Types.Formula:e.richText?c.Types.RichText:e.sharedString?c.Types.SharedString:e.error?c.Types.Error:c.Types.JSON,types:[{t:c.Types.Null,f:class{constructor(e){this.model={address:e.address,type:c.Types.Null}}get value(){return null}set value(e){}get type(){return c.Types.Null}get effectiveType(){return c.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:c.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Number}get effectiveType(){return c.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:c.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Date}get effectiveType(){return c.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return c.Types.Hyperlink}get effectiveType(){return c.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:c.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:c.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},n=n=>{const r=e[n];r&&(t[n]=r)};return n("formula"),n("result"),n("ref"),n("shareType"),n("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(l.getType(e)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return c.Types.Formula}get effectiveType(){const e=this.model.result;return null==e?a.ValueType.Null:e instanceof String||"string"==typeof e?a.ValueType.String:"number"==typeof e?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:c.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof c?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return c.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:c.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:c.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.SharedString}get effectiveType(){return c.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map((e=>e.text)).join("")}get type(){return c.Types.RichText}get effectiveType(){return c.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:c.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Boolean}get effectiveType(){return c.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Error}get effectiveType(){return c.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce(((e,t)=>(e[t.t]=t.f,e)),[]),create(e,t,n){const r=this.types[e];if(!r)throw new Error("Could not create Value of type "+e);return new r(t,n)}};t.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache");class o{constructor(e,t,n){this._worksheet=e,this._number=t,!1!==n&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){void 0!==e?(this._header=e,this.headers.forEach(((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&r.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){const n=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,((e,r)=>{t(e.getCell(n),r)}))}get values(){const e=[];return this.eachCell(((t,n)=>{t&&t.type!==i.ValueType.Null&&(e[n]=t.value)})),e}set values(e){if(!e)return;const t=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach(((e,r)=>{this._worksheet.getCell(r+n,t).value=e}))}_applyStyle(e,t){return this.style[e]=t,this.eachCell((n=>{n[e]=t})),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let n=null;return e&&e.forEach(((e,r)=>{e.isDefault?n&&(n=null):n&&e.equivalentTo(n)?n.max=r+1:(n={min:r+1,max:r+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(n))})),t.length?t:void 0}static fromModel(e,t){const n=[];let r=1,i=0;for(t=(t=t||[]).sort((function(e,t){return e.min-t.min}));i<t.length;){const a=t[i++];for(;r<a.min;)n.push(new o(e,r++));for(;r<=a.max;)n.push(new o(e,r++,a))}return n.length?n:null}}t.exports=o},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,n){"use strict";t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("../utils/cell-matrix"),o=e("./range"),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}add(e,t){const n=i.decodeEx(e);this.addEx(n,t)}addEx(e,t){const n=this.getMatrix(t);if(e.top)for(let t=e.left;t<=e.right;t++)for(let r=e.top;r<=e.bottom;r++){const a={sheetName:e.sheetName,address:i.n2l(t)+r,row:r,col:t};n.addCellEx(a)}else n.addCellEx(e)}remove(e,t){const n=i.decodeEx(e);this.removeEx(n,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){r.each(this.matrixMap,(t=>{t.removeCellEx(e)}))}forEach(e){r.each(this.matrixMap,((t,n)=>{t.forEach((t=>{e(n,t)}))}))}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return r.map(this.matrixMap,((t,n)=>t.findCellEx(e)&&n)).filter(Boolean)}_explore(e,t){t.mark=!1;const{sheetName:n}=t,r=new o(t.row,t.col,t.row,t.col,n);let i,a;function s(i,a){const o=e.findCellAt(n,i,t.col);return!(!o||!o.mark||(r[a]=i,o.mark=!1,0))}for(a=t.row-1;s(a,"top");a--);for(a=t.row+1;s(a,"bottom");a++);function c(t,i){const o=[];for(a=r.top;a<=r.bottom;a++){const r=e.findCellAt(n,a,t);if(!r||!r.mark)return!1;o.push(r)}r[i]=t;for(let e=0;e<o.length;e++)o[e].mark=!1;return!0}for(i=t.col-1;c(i,"left");i--);for(i=t.col+1;c(i,"right");i++);return r}getRanges(e,t){return(t=t||this.matrixMap[e])?(t.forEach((e=>{e.mark=!0})),{name:e,ranges:t.map((e=>e.mark&&this._explore(t,e))).filter(Boolean).map((e=>e.$shortRange))}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,((e,t,n)=>{e&&(e.row===t&&e.col===n||(e.row=t,e.col=n,e.address=i.n2l(n)+t))}))}spliceRows(e,t,n,i){r.each(this.matrixMap,(r=>{r.spliceRows(e,t,n,i),this.normaliseMatrix(r,e)}))}spliceColumns(e,t,n,i){r.each(this.matrixMap,(r=>{r.spliceColumns(e,t,n,i),this.normaliseMatrix(r,e)}))}get model(){return r.map(this.matrixMap,((e,t)=>this.getRanges(t,e))).filter((e=>e.ranges.length))}set model(e){const t=this.matrixMap={};e.forEach((e=>{const n=t[e.name]=new a;e.ranges.forEach((e=>{s.test(e.split("!").pop()||"")&&n.addCell(e)}))}))}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,n){"use strict";t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,n){"use strict";const r=e("../utils/col-cache"),i=e("./anchor");t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(e){let{type:t,imageId:n,range:a,hyperlinks:o}=e;if(this.type=t,this.imageId=n,"image"===t)if("string"==typeof a){const e=r.decode(a);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,a.tl,0),br:a.br&&new i(this.worksheet,a.br,0),ext:a.ext,editAs:a.editAs,hyperlinks:o||a.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,n){"use strict";const r=e("../utils/under-dash");class i{constructor(e){this.note=e}get model(){let e=null;return e="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},r.deepMerge({},i.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e,{texts:n}=t;1===n.length&&1===Object.keys(n[0]).length?this.note=n[0].text:this.note=t}static fromModel(e){const t=new i;return t.model=e,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,n){"use strict";const r=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(e,t,n,i,a){if(arguments.length<4){const i=r.decodeAddress(e),o=r.decodeAddress(t);this.model={top:Math.min(i.row,o.row),left:Math.min(i.col,o.col),bottom:Math.max(i.row,o.row),right:Math.max(i.col,o.col),sheetName:n},this.setTLBR(i.row,i.col,o.row,o.col,a)}else this.model={top:Math.min(e,n),left:Math.min(t,i),bottom:Math.max(e,n),right:Math.max(t,i),sheetName:a}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof i)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=r.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+e.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?e+"!":`'${e}'!`:""}expand(e,t,n,r){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||n>this.bottom)&&(this.bottom=n),(!this.model.right||r>this.right)&&(this.right=r)}expandRow(e){if(e){const{dimensions:t,number:n}=e;t&&this.expand(n,t.min,n,t.max)}}expandToAddress(e){const t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return r.n2l(this.left)+this.top}get $t$l(){return`$${r.n2l(this.left)}$${this.top}`}get br(){return r.n2l(this.right)+this.bottom}get $b$r(){return`$${r.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}contains(e){const t=r.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let n=this.top;n<=this.bottom;n++)e(r.encodeAddress(n,t),n,t)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("./enums"),a=e("../utils/col-cache"),o=e("./cell");t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const n=this._worksheet.getColumn(e.col);t=new o(this,n,e.address),this._cells[e.col-1]=t}return t}getCell(e){if("string"==typeof e){const t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){const n=e+t;for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];const o=i.length-t,s=this._cells.length;let c,l,u;if(o<0)for(c=e+i.length;c<=s;c++)u=this._cells[c-1],l=this._cells[c-o-1],l?(u=this.getCell(c),u.value=l.value,u.style=l.style,u._comment=l._comment):u&&(u.value=null,u.style={},u._comment=void 0);else if(o>0)for(c=s;c>=n;c--)l=this._cells[c-1],l?(u=this.getCell(c+o),u.value=l.value,u.style=l.style,u._comment=l._comment):this._cells[c+o-1]=void 0;for(c=0;c<i.length;c++)u=this.getCell(e+c),u.value=i[c],u.style={},u._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let n=1;n<=e;n++)t(this.getCell(n),n)}else this._cells.forEach(((e,n)=>{e&&e.type!==i.ValueType.Null&&t(e,n+1)}))}addPageBreak(e,t){const n=this._worksheet,r=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};r&&(a.min=r),n.rowBreaks.push(a)}get values(){const e=[];return this._cells.forEach((t=>{t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)})),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach(((e,n)=>{void 0!==e&&(this.getCellEx({address:a.encodeAddress(this._number,n+t),row:this._number,col:n+t}).value=e)}))}else this._worksheet.eachColumnKey(((t,n)=>{void 0!==e[n]&&(this.getCellEx({address:a.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[n])}))}get hasValues(){return r.some(this._cells,(e=>e&&e.type!==i.ValueType.Null))}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell((()=>{e++})),e}get dimensions(){let e=0,t=0;return this._cells.forEach((n=>{n&&n.type!==i.ValueType.Null&&((!e||e>n.col)&&(e=n.col),t<n.col&&(t=n.col))})),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach((n=>{n&&(n[e]=t)})),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,n=0;return this._cells.forEach((r=>{if(r){const i=r.model;i&&((!t||t>r.col)&&(t=r.col),n<r.col&&(n=r.col),e.push(i))}})),this.height||e.length?{cells:e,number:this.number,min:t,max:n,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach((e=>{switch(e.type){case o.Types.Merge:break;default:{let n;if(e.address)n=a.decodeAddress(e.address);else if(t){const{row:e}=t,r=t.col+1;n={row:e,col:r,address:a.encodeAddress(e,r),$col$row:`$${a.n2l(r)}$${e}`}}t=n,this.getCellEx(n).model=e;break}}})),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,n){"use strict";const r=e("../utils/col-cache");class i{constructor(e,t,n){this.table=e,this.column=t,this.index=n}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+e.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this,t=(e,t,n)=>{void 0===e[t]&&(e[t]=n)};t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1);const n=(e,t)=>{if(!e)throw new Error(t)};n(e.ref,"Table must have ref"),n(e.columns,"Table must have column definitions"),n(e.rows,"Table must have row definitions"),e.tl=r.decodeAddress(e.ref);const{row:i,col:a}=e.tl;n(i>0,"Table must be on valid row"),n(a>0,"Table must be on valid col");const{width:o,filterHeight:s,tableHeight:c}=this;e.autoFilterRef=r.encode(i,a,i+s-1,a+o-1),e.tableRef=r.encode(i,a,i+c-1,a+o-1),e.columns.forEach(((e,r)=>{n(e.name,`Column ${r} must have a name`),0===r?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))}))}store(){const e=(e,t)=>{t&&Object.keys(t).forEach((n=>{e[n]=t[n]}))},{worksheet:t,table:n}=this,{row:r,col:i}=n.tl;let a=0;if(n.headerRow){const o=t.getRow(r+a++);n.columns.forEach(((t,n)=>{const{style:r,name:a}=t,s=o.getCell(i+n);s.value=a,e(s,r)}))}if(n.rows.forEach((o=>{const s=t.getRow(r+a++);o.forEach(((t,r)=>{const a=s.getCell(i+r);a.value=t,e(a,n.columns[r].style)}))})),n.totalsRow){const o=t.getRow(r+a++);n.columns.forEach(((t,n)=>{const r=o.getCell(i+n);if(0===n)r.value=t.totalsRowLabel;else{const e=this.getFormula(t);r.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(r,t.style)}))}}load(e){const{table:t}=this,{row:n,col:r}=t.tl;let i=0;if(t.headerRow){const a=e.getRow(n+i++);t.columns.forEach(((e,t)=>{a.getCell(r+t).value=e.name}))}if(t.rows.forEach((t=>{const a=e.getRow(n+i++);t.forEach(((e,t)=>{a.getCell(r+t).value=e}))})),t.totalsRow){const a=e.getRow(n+i++);t.columns.forEach(((e,t)=>{const n=a.getCell(r+t);0===t?n.value=e.totalsRowLabel:this.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}))}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const e=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)n.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){const n=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)n.getCell(e.col+t).value=null}}this.store()}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new i(this,t,e)}addColumn(e,t,n){this.cacheState(),void 0===n?(this.table.columns.push(e),this.table.rows.forEach(((e,n)=>{e.push(t[n])}))):(this.table.columns.splice(n,0,e),this.table.rows.forEach(((e,r)=>{e.splice(n,0,t[r])})))}removeColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((n=>{n.splice(e,t)}))}_assign(e,t,n){this.cacheState(),e[t]=n}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,n){"use strict";const r=e("./worksheet"),i=e("./defined-names"),a=e("../xlsx/xlsx"),o=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new o(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){const n=this.nextId;t&&("string"==typeof t?t={properties:{tabColor:{argb:t}}}:(t.argb||t.theme||t.indexed)&&(t={properties:{tabColor:t}}));const i=this._worksheets.reduce(((e,t)=>(t&&t.orderNo)>e?t.orderNo:e),0),a=Object.assign({},t,{id:n,name:e,orderNo:i+1,workbook:this}),o=new r(a);return this._worksheets[n]=o,o}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((t=>t&&t.name===e)):void 0}get worksheets(){return this._worksheets.slice(1).sort(((e,t)=>e.orderNo-t.orderNo)).filter(Boolean)}eachSheet(e){this.worksheets.forEach((t=>{e(t,t.id)}))}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((e=>e.model)),sheets:this.worksheets.map((e=>e.model)).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach((t=>{const{id:n,name:i,state:a}=t,o=e.sheets&&e.sheets.findIndex((e=>e.id===n));(this._worksheets[n]=new r({id:n,name:i,orderNo:o,state:a,workbook:this})).model=t})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,n){"use strict";const r=e("../utils/under-dash"),i=e("../utils/col-cache"),a=e("./range"),o=e("./row"),s=e("./column"),c=e("./enums"),l=e("./image"),u=e("./table"),h=e("./data-validations"),f=e("../utils/encryptor"),{copyStyle:d}=e("../utils/copy-style");t.exports=class{constructor(e){e=e||{},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new h,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e="sheet"+this.id),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+e);if(e&&e.length>31&&(e=e.substring(0,31)),this._workbook._worksheets.find((t=>t&&t.name.toLowerCase()===e.toLowerCase())))throw new Error("Worksheet name already exists: "+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new a;return this._rows.forEach((t=>{if(t){const n=t.dimensions;n&&e.expand(t.number,n.min,t.number,n.max)}})),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const n=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,n)}),0);let t=1;const n=this._columns=[];e.forEach((e=>{const r=new s(this,t++,!1);n.push(r),r.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){r.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new s(this,t++))}return this._columns[e-1]}spliceColumns(e,t){const n=this._rows.length;for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(i.length>0)for(let r=0;r<n;r++){const n=[e,t];i.forEach((e=>{n.push(e[r]||null)}));const a=this.getRow(r+1);a.splice.apply(a,n)}else this._rows.forEach((n=>{n&&n.splice(e,t)}));const o=i.length-t,s=e+t,c=this._columns.length;if(o<0)for(let t=e+i.length;t<=c;t++)this.getColumn(t).defn=this.getColumn(t-o).defn;else if(o>0)for(let e=c;e>=s;e--)this.getColumn(e+o).defn=this.getColumn(e).defn;for(let t=e;t<e+i.length;t++)this.getColumn(t).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,i.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow((t=>{e=Math.max(e,t.cellCount)})),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow((n=>{n.eachCell((n=>{let{col:r}=n;e[r]||(e[r]=!0,t++)}))})),t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;for(;t>0&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow((()=>{e++})),e}getRow(e){let t=this._rows[e-1];return t||(t=this._rows[e-1]=new o(this,e)),t}getRows(e,t){if(t<1)return;const n=[];for(let r=e;r<e+t;r++)n.push(this.getRow(r));return n}addRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const n=this._nextRow,r=this.getRow(n);return r.values=e,this._setStyleOption(n,"i"===t[0]?t:"n"),r}addRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const n=[];return e.forEach((e=>{n.push(this.addRow(e,t))})),n}insertRow(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,n),this.getRow(e)}insertRows(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(e,0,...t),"n"!==n)for(let r=0;r<t.length;r++)"o"===n[0]&&void 0!==this.findRow(t.length+e+r)?this._copyStyle(t.length+e+r,e+r,"+"===n[1]):"i"===n[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+r,"+"===n[1]);return this.getRows(e,t.length)}_setStyleOption(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.getRow(e),i=this.getRow(t);i.style=d(r.style),r.eachCell({includeEmpty:n},((e,t)=>{i.getCell(t).style=d(e.style)})),i.height=r.height}duplicateRow(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this._rows[e-1],i=new Array(t).fill(r.values);this.spliceRows(e+1,n?0:t,...i);for(let n=0;n<t;n++){const t=this._rows[e+n];t.style=r.style,t.height=r.height,r.eachCell({includeEmpty:!0},((e,n)=>{t.getCell(n).style=e.style}))}}spliceRows(e,t){const n=e+t;for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];const o=i.length,s=o-t,c=this._rows.length;let l,u;if(s<0)for(e===c&&(this._rows[c-1]=void 0),l=n;l<=c;l++)if(u=this._rows[l-1],u){const e=this.getRow(l+s);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},((t,n)=>{e.getCell(n).style=t.style})),this._rows[l-1]=void 0}else this._rows[l+s-1]=void 0;else if(s>0)for(l=c;l>=n;l--)if(u=this._rows[l-1],u){const e=this.getRow(l+s);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},((t,n)=>{if(e.getCell(n).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+o).getCell(n),r=t._value._master,i=this.getRow(r._row._number+o).getCell(r._column._number);e.merge(i)}}))}else this._rows[l+s-1]=void 0;for(l=0;l<o;l++){const t=this.getRow(e+l);t.style={},t.values=i[l]}this.workbook.definedNames.spliceRows(this.name,e,t,o)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let n=1;n<=e;n++)t(this.getRow(n),n)}else this._rows.forEach((e=>{e&&e.hasValues&&t(e,e.number)}))}getSheetValues(){const e=[];return this._rows.forEach((t=>{t&&(e[t.number]=t.values)})),e}findCell(e,t){const n=i.getAddress(e,t),r=this._rows[n.row-1];return r?r.findCell(n.col):void 0}getCell(e,t){const n=i.getAddress(e,t);return this.getRow(n.row).getCellEx(n)}mergeCells(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new a(t);this._mergeCellsInternal(r)}mergeCellsWithoutStyle(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new a(t);this._mergeCellsInternal(r,!0)}_mergeCellsInternal(e,t){r.each(this._merges,(t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")}));const n=this.getCell(e.top,e.left);for(let r=e.top;r<=e.bottom;r++)for(let i=e.left;i<=e.right;i++)(r>e.top||i>e.left)&&this.getCell(r,i).merge(n,t);this._merges[n.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let n=t.left;n<=t.right;n++)this.getCell(e,n).unmerge();delete this._merges[e.address]}}get hasMerges(){return r.some(this._merges,Boolean)}unMergeCells(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new a(t);for(let e=r.top;e<=r.bottom;e++)for(let t=r.left;t<=r.right;t++){const n=this.findCell(e,t);n&&(n.type===c.ValueType.Merge?this._unMergeMaster(n.master):this._merges[n.address]&&this._unMergeMaster(n))}}fillFormula(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared";const a=i.decode(e),{top:o,left:s,bottom:c,right:l}=a,u=l-s+1,h=i.encodeAddress(o,s),f="shared"===r;let d;d="function"==typeof n?n:Array.isArray(n)?Array.isArray(n[0])?(e,t)=>n[e-o][t-s]:(e,t)=>n[(e-o)*u+(t-s)]:()=>{};let p=!0;for(let n=o;n<=c;n++)for(let i=s;i<=l;i++)p?(this.getCell(n,i).value={shareType:r,formula:t,ref:e,result:d(n,i)},p=!1):this.getCell(n,i).value=f?{sharedFormula:h,result:d(n,i)}:d(n,i)}addImage(e,t){const n={type:"image",imageId:e,range:t};this._media.push(new l(this,n))}getImages(){return this._media.filter((e=>"image"===e.type))}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new l(this,t))}getBackgroundImageId(){const e=this._media.find((e=>"background"===e.type));return e&&e.imageId}protect(e,t){return new Promise((n=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),n()}))}unprotect(){this.sheetProtection=null}addTable(e){const t=new u(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return this.properties.tabColor}set tabColor(e){this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((e=>e.model)),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((e=>e.model)),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);const t=e.rows=[],n=e.dimensions=new a;return this._rows.forEach((e=>{const r=e&&e.model;r&&(n.expand(r.number,r.min,r.number,r.max),t.push(r))})),e.merges=[],r.each(this._merges,(t=>{e.merges.push(t.range)})),e}_parseRows(e){this._rows=[],e.rows.forEach((e=>{const t=new o(this,e.number);this._rows[t.number-1]=t,t.model=e}))}_parseMergeCells(e){r.each(e.mergeCells,(e=>{this.mergeCellsWithoutStyle(e)}))}set model(e){this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new h(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((e=>new l(this,e))),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce(((e,t)=>{const n=new u;return n.model=t,e[t.name]=n,e}),{}),this.conditionalFormattings=e.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,n){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const r={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach((e=>{r[e]=i[e]})),t.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,n){"use strict";const r="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");n.bufferToString=function(e){return"string"==typeof e?e:r?r.decode(e):e.toString()}},{}],17:[function(e,t,n){"use strict";const r="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");n.stringToBuffer=function(e){return"string"!=typeof e?e:r?i.from(r.encode(e).buffer):i.from(e)}},{buffer:220}],18:[function(e,t,n){"use strict";const r=e("./under-dash"),i=e("./col-cache");t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),!0)}findCell(e){return this.findCellEx(i.decodeEx(e),!1)}findCellAt(e,t,n){const r=this.sheets[e],i=r&&r[t];return i&&i[n]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let n=e.left;n<=e.right;n++)this.getCellAt(e.sheetName,t,n);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){const n=this.findSheet(e,t),r=this.findSheetRow(n,e,t);return this.findRowCell(r,e,t)}getCellAt(e,t,n){const r=this.sheets[e]||(this.sheets[e]=[]),a=r[t]||(r[t]=[]);return a[n]||(a[n]={sheetName:e,address:i.n2l(n)+t,row:t,col:n})}removeCellEx(e){const t=this.findSheet(e);if(!t)return;const n=this.findSheetRow(t,e);n&&delete n[e.col]}forEachInSheet(e,t){const n=this.sheets[e];n&&n.forEach(((e,n)=>{e&&e.forEach(((e,r)=>{e&&t(e,n,r)}))}))}forEach(e){r.each(this.sheets,((t,n)=>{this.forEachInSheet(n,e)}))}map(e){const t=[];return this.forEach((n=>{t.push(e(n))})),t}findSheet(e,t){const n=e.sheetName;return this.sheets[n]?this.sheets[n]:t?this.sheets[n]=[]:void 0}findSheetRow(e,t,n){const{row:r}=t;return e&&e[r]?e[r]:n?e[r]=[]:void 0}findRowCell(e,t,n){const{col:r}=t;return e&&e[r]?e[r]:n?e[r]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,n,r){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<r;t++)e.push([]);i.splice(t,n,...e)}}spliceColumns(e,t,n,i){const a=this.sheets[e];if(a){const e=[];for(let t=0;t<i;t++)e.push(null);r.each(a,(r=>{r.splice(t,n,...e)}))}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,n){"use strict";const r=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,n,r,i,a,o=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)n=o-27,r=n%26,i=Math.floor(n/26),t=this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)n=o-703,r=n%26,i=Math.floor(n/26)%26,a=Math.floor(n/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[r],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: "+e);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!r.test(e))throw new Error("Invalid Address: "+e);return!0},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t)return t;let n=!1,r="",i=0,a=!1,o="",s=0;for(let t,c=0;c<e.length;c++)if(t=e.charCodeAt(c),!a&&t>=65&&t<=90)n=!0,r+=e[c],i=26*i+t-64;else if(t>=48&&t<=57)a=!0,o+=e[c],s=10*s+t-48;else if(a&&n&&36!==t)break;if(n){if(i>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else i=void 0;a||(s=void 0);const c={address:e=r+o,col:i,row:s,$col$row:`$${r}$${o}`};return i<=100&&s<=100&&(this._hash[e]=c,this._hash[c.$col$row]=c),c},getAddress(e,t){if(t){const n=this.n2l(t)+e;return this.decodeAddress(n)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(2===t.length){const e=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),r={top:Math.min(e.row,n.row),left:Math.min(e.col,n.col),bottom:Math.max(e.row,n.row),right:Math.max(e.col,n.col)};return r.tl=this.n2l(r.left)+r.top,r.br=this.n2l(r.right)+r.bottom,r.dimensions=`${r.tl}:${r.br}`,r}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=t[1]||t[2],r=t[3],i=r.split(":");if(i.length>1){let e=this.decodeAddress(i[0]),t=this.decodeAddress(i[1]);const r=Math.min(e.row,t.row),a=Math.min(e.col,t.col),o=Math.max(e.row,t.row),s=Math.max(e.col,t.col);return e=this.n2l(a)+r,t=this.n2l(s)+o,{top:r,left:a,bottom:o,right:s,sheetName:n,tl:{address:e,col:a,row:r,$col$row:`$${this.n2l(a)}$${r}`,sheetName:n},br:{address:t,col:s,row:o,$col$row:`$${this.n2l(s)}$${o}`,sheetName:n},dimensions:`${e}:${t}`}}if(r.startsWith("#"))return n?{sheetName:n,error:r}:{error:r};const a=this.decodeAddress(r);return n?{sheetName:n,...a}:a},encodeAddress:(e,t)=>i.n2l(t)+e,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[n,r,,i,a]=e,[o,s]=t;return o>=n&&o<=i&&s>=r&&s<=a}};t.exports=i},{}],20:[function(e,t,n){"use strict";const r=(e,t)=>({...e,...t.reduce(((t,n)=>(e[n]&&(t[n]={...e[n]}),t)),{})}),i=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[n]&&(t[n]=r(e[n],i))};n.copyStyle=e=>{if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t;const n={...e};return i(e,n,"font",["color"]),i(e,n,"alignment"),i(e,n,"protection"),e.border&&(i(e,n,"border"),i(e.border,n.border,"top",["color"]),i(e.border,n.border,"left",["color"]),i(e.border,n.border,"bottom",["color"]),i(e.border,n.border,"right",["color"]),i(e.border,n.border,"diagonal",["color"])),e.fill&&(i(e,n,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(n.fill.stops=e.fill.stops.map((e=>r(e,["color"]))))),n}},{}],21:[function(e,t,n){(function(n){(function(){"use strict";const r=e("crypto"),i={hash(e){const t=r.createHash(e);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.update(n.concat(a)),t.digest()},convertPasswordToHash(e,t,i,a){if(t=t.toLowerCase(),r.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const o=n.from(e,"utf16le");let s=this.hash(t,n.from(i,"base64"),o);for(let e=0;e<a;e++){const r=n.alloc(4);r.writeUInt32LE(e,0),s=this.hash(t,s,r)}return s.toString("base64")},randomBytes:e=>r.randomBytes(e)};t.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,n){"use strict";const{SaxesParser:r}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:a}=e("./browser-buffer-decode");t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new i));const t=new r;let n;t.on("error",(e=>{n=e}));let o=[];t.on("opentag",(e=>o.push({eventType:"opentag",value:e}))),t.on("text",(e=>o.push({eventType:"text",value:e}))),t.on("closetag",(e=>o.push({eventType:"closetag",value:e})));for await(const r of e){if(t.write(a(r)),n)throw n;yield o,o=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,n){"use strict";const r=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,n){const o=r.decode(t),s=r.decode(n);return e.replace(i,((e,t,n,i,c)=>{if(c)return e;const l=a.exec(i);if(l){const n=l[1],i=l[2].toUpperCase(),a=l[3],c=l[4];if(i.length>3||3===i.length&&i>"XFD")return e;let u=r.l2n(i),h=parseInt(c,10);return n||(u+=s.col-o.col),a||(h+=s.row-o.row),(t||"")+(n||"")+r.n2l(u)+(a||"")+h}return e}))}}},{"./col-cache":19}],24:[function(e,t,n){(function(n,r){(function(){"use strict";const i=e("readable-stream"),a=e("./utils"),o=e("./string-buf");class s{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,n,r){return this.toBuffer().copy(e,t,n,r)}toBuffer(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){return this._data._buf.copy(e,t,n,r)}toBuffer(){return this._data.toBuffer()}}class l{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,n,r){this._data.copy(e,t,n,r)}toBuffer(){return this._data}}class u{constructor(e){this.size=e,this.buffer=r.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const e=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=r.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,n){const r=Math.min(n,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}const h=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(h,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map((e=>e.toBuffer())))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new u(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map((function(t){return new Promise((n=>{t.write(e.toBuffer(),(()=>{n()}))}))})))},_writeToBuffers(e){let t=0;const n=e.length;for(;t<n;)t+=this._getWritableBuffer().write(e,t,n-t)},async write(e,t,i){let u;if(t instanceof Function&&(i=t,t="utf8"),i=i||a.nop,e instanceof o)u=new c(e);else if(e instanceof r)u=new l(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");u=new s(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(u);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(u),n.nextTick(i)):(await this._pipe(u),i());else this.paused||this.emit("data",u.toBuffer()),this._writeToBuffers(u),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(e,t,n){const r=e=>{e?n(e):(this._flush(),this.pipes.forEach((e=>{e.end()})),this.emit("finish"))};e?this.write(e,t,r):r()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const n=this.buffers[0],r=n.read(e);e-=r.length,t.push(r),n.eod&&n.full&&this.buffers.shift()}return r.concat(t)}return t=this.buffers.map((e=>e.toBuffer())).filter(Boolean),this.buffers=[],r.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter((t=>t!==e))},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=h}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,n){(function(e){(function(){"use strict";t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(t){let n=2*this._buf.length;for(;n<t;)n*=2;const r=e.alloc(n);this._buf.copy(r,0),this._buf=r}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,n){"use strict";const{toString:r}=Object.prototype,i=/["&<>]/,a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((n=>{t(e[n],n)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((n=>t(e[n],n))))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((n=>t(e[n],n))))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((n=>t(e[n],n))):[]},keyBy:(e,t)=>e.reduce(((e,n)=>(e[n[t]]=n,e)),{}),isEqual:function(e,t){const n=typeof e,r=typeof t,i=Array.isArray(e),o=Array.isArray(t);let s;if(n!==r)return!1;if("object"==typeof e){if(i||o)return!(!i||!o)&&e.length===t.length&&e.every(((e,n)=>{const r=t[n];return a.isEqual(e,r)}));if(null===e||null===t)return e===t;if(s=Object.keys(e),Object.keys(t).length!==s.length)return!1;for(const e of s)if(!t.hasOwnProperty(e))return!1;return a.every(e,((e,n)=>{const r=t[n];return a.isEqual(e,r)}))}return e===t},escapeHtml(e){const t=i.exec(e);if(!t)return e;let n="",r="",a=0,o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case'"':r="&quot;";break;case"&":r="&amp;";break;case"'":r="&apos;";break;case"<":r="&lt;";break;case">":r="&gt;";break;default:continue}a!==o&&(n+=e.substring(a,o)),a=o+1,n+=r}return a!==o?n+e.substring(a,o):n},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>"[object Undefined]"===r.call(e),isObject:e=>"[object Object]"===r.call(e),deepMerge(){const e=arguments[0]||{},{length:t}=arguments;let n,r,i;function o(t,o){n=e[o],i=Array.isArray(t),a.isObject(t)||i?(i?(i=!1,r=n&&Array.isArray(n)?n:[]):r=n&&a.isObject(n)?n:{},e[o]=a.deepMerge(r,t)):a.isUndefined(t)||(e[o]=t)}for(let e=0;e<t;e++)a.each(arguments[e],o);return e}};t.exports=a},{}],27:[function(e,n,r){(function(t,r){(function(){"use strict";const i=e("fs"),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop(){},promiseImmediate:e=>new Promise((n=>{t.setImmediate?r((()=>{n(e)})):setTimeout((()=>{n(e)}),1)})),inherits:function(e,t,n,r){e.super_=t,r||(r=n,n=null),n&&Object.keys(n).forEach((t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));const i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};r&&Object.keys(r).forEach((e=>{i[e]=Object.getOwnPropertyDescriptor(r,e)})),e.prototype=Object.create(t.prototype,i)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){const n=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=o.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=a.exec(e);if(!t)return e;let n="",r="",i=0,o=t.index;for(;o<e.length;o++){const t=e.charCodeAt(o);switch(t){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&apos;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;case 127:r="";break;default:if(t<=31&&(t<=8||t>=11&&13!==t)){r="";break}continue}i!==o&&(n+=e.substring(i,o)),i=o+1,r&&(n+=r)}return i!==o?n+e.substring(i,o):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,(e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}})),validInt(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:e=>!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/),fs:{exists:e=>new Promise((t=>{i.access(e,i.constants.F_OK,(e=>{t(!e)}))}))},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};n.exports=o}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,n){"use strict";const r=e("./under-dash"),i=e("./utils");function a(e,t,n){e.push(` ${t}="${i.xmlEncode(n.toString())}"`)}function o(e,t){if(t){const n=[];r.each(t,((e,t)=>{void 0!==e&&a(n,t,e)})),e.push(n.join(""))}}class s{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml"),o(t,e),t.push("?>\n")}openNode(e,t){const n=this.tos,r=this._xml;n&&this.open&&r.push(">"),this._stack.push(e),r.push("<"),r.push(e),o(r,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&a(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");o(this._xml,e)}writeText(e){const t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){const e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}leafNode(e,t,n){this.openNode(e,t),void 0!==n&&this.writeText(n),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}s.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=s},{"./under-dash":26,"./utils":27}],29:[function(e,t,n){(function(n){(function(){"use strict";const r=e("events"),i=e("jszip"),a=e("./stream-buf"),{stringToBuffer:o}=e("./browser-buffer-encode");class s extends r.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new i,this.stream=new a}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(n.browser&&"string"==typeof e&&(e=o(e)),this.zip.file(t.name,e))}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:s}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,n){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,n){"use strict";t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,n){"use strict";const r=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class a{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach((e=>{e instanceof a?e.reset():e.xform&&e.xform.reset()}))}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:n}of t)if("opentag"===e)this.parseOpen(n);else if("text"===e)this.parseText(n);else if("closetag"===e&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(e){return this.parse(r(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new i;return this.render(t,e),t.xml}static toAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e.toString()}static toStringAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.toAttribute(e,t,n)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(n)return t}else if(n||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.toAttribute(e,t,n)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.toAttribute(e,t,n)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}t.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../../../utils/col-cache");function a(e){try{return i.decodeEx(e),!0}catch(e){return!1}}function o(e){const t=[];let n=!1,r="";return e.split(",").forEach((e=>{if(!e)return;const i=(e.match(/'/g)||[]).length;if(!i)return void(n?r+=e+",":a(e)&&t.push(e));const o=i%2==0;!n&&o&&a(e)?t.push(e):n&&!o?(n=!1,a(r+e)&&t.push(r+e),r=""):(n=!0,r+=e+",")})),t}t.exports=class extends r{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:o(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,n){"use strict";const r=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:r.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){const n={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(n.visibility=t.visibility),e.leafNode("workbookView",n)}parseOpen(e){if("workbookView"===e.name){const t=this.model={},n=function(e,n,r){const i=void 0!==n?t[e]=n:r;void 0!==i&&(t[e]=i)},r=function(e,n,r){const i=void 0!==n?t[e]=parseInt(n,10):r;void 0!==i&&(t[e]=i)};return r("x",e.attributes.xWindow,0),r("y",e.attributes.yWindow,0),r("width",e.attributes.windowWidth,25e3),r("height",e.attributes.windowHeight,1e4),n("visibility",e.attributes.visibility,"visible"),r("activeTab",e.attributes.activeTab,void 0),r("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../static-xform"),c=e("../list-xform"),l=e("./defined-name-xform"),u=e("./sheet-xform"),h=e("./workbook-view-xform"),f=e("./workbook-properties-xform"),d=e("./workbook-calc-properties-xform");class p extends o{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new f,bookViews:new c({tag:"bookViews",count:!1,childXform:new h}),sheets:new c({tag:"sheets",count:!1,childXform:new u}),definedNames:new c({tag:"definedNames",count:!1,childXform:new l}),calcPr:new d}}prepare(e){e.sheets=e.worksheets;const t=[];let n=0;e.sheets.forEach((e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach((r=>{const i=r.split(":"),a={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:n};t.push(a)})),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const r=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");r.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const i={name:"_xlnm.Print_Titles",ranges:r,localSheetId:n};t.push(i)}n++})),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach(((e,t)=>{e.name=e.type+(t+1)}))}render(e,t){e.openXml(a.StdDocAttributes),e.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(e){const t=(e.workbookRels||[]).reduce(((e,t)=>(e[t.Id]=t,e)),{}),n=[];let a,o=0;(e.sheets||[]).forEach((r=>{const i=t[r.rId];i&&(a=e.worksheetHash["xl/"+i.Target.replace(/^(\s|\/xl\/)+/,"")],a&&(a.name=r.name,a.id=r.id,a.state=r.state,n[o++]=a))}));const s=[];r.each(e.definedNames,(e=>{if("_xlnm.Print_Area"===e.name){if(a=n[e.localSheetId],a){a.pageSetup||(a.pageSetup={});const t=i.decodeEx(e.ranges[0]);a.pageSetup.printArea=a.pageSetup.printArea?`${a.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(a=n[e.localSheetId],a){a.pageSetup||(a.pageSetup={});const t=e.ranges.join(","),n=/\$/g,r=/\$\d+:\$\d+/,i=t.match(r);if(i&&i.length){const e=i[0];a.pageSetup.printTitlesRow=e.replace(n,"")}const o=/\$[A-Z]+:\$[A-Z]+/,s=t.match(o);if(s&&s.length){const e=s[0];a.pageSetup.printTitlesColumn=e.replace(n,"")}}}else s.push(e)})),e.definedNames=s,e.media.forEach(((e,t)=>{e.index=t}))}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new s({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,n){"use strict";const r=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),a=e("../base-xform"),o=t.exports=function(e){this.model=e};i.inherits(o,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new r),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach((t=>{this.richTextXform.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),a=e("../base-xform"),o=e("./comment-xform"),s=t.exports=function(){this.map={comment:new o}};i.inherits(s,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(r.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach((t=>{this.map.comment.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,n){(t===n[2]||"x:SizeWithCells"===this.tag&&t===n[1])&&e.leafNode(this.tag)}parseOpen(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left),n=Math.floor(68*(e.left-t)),r=Math.floor(e.top),i=Math.floor(18*(e.top-r)),a=Math.floor(e.right),o=Math.floor(68*(e.right-a)),s=Math.floor(e.bottom);return[t,n,r,i,a,o,s,Math.floor(18*(e.bottom-s))]}getDefaultRect(e){const t=e.col,n=Math.max(e.row-2,0);return[t,6,n,14,t+2,2,n+4,16]}render(e,t){const n=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,n.join(", "))}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./vml-anchor-xform"),a=e("./style/vml-protection-xform"),o=e("./style/vml-position-xform"),s=["twoCells","oneCells","absolute"];t.exports=class extends r{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:n,editAs:r}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,r,s),this.map["x:SizeWithCells"].render(e,r,s),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=s[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./vml-shape-xform");class o extends i{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,o.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach(((t,n)=>{this.map["v:shape"].render(e,t,n)})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach((e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}o.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./vml-textbox-xform"),a=e("./vml-client-data-xform");class o extends r{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new a}}get tag(){return"v:shape"}render(e,t,n){e.openNode("v:shape",o.V_SHAPE_ATTRIBUTES(t,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}o.V_SHAPE_ATTRIBUTES=(e,t)=>({id:"_x0000_s"+(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"v:textbox"}conversionUnit(e,t,n){return`${parseFloat(e)*t.toFixed(2)}${n}`}reverseConversionUnit(e){return(e||"").split(",").map((e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2))))}render(e,t){const n={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map((e=>this.conversionUnit(e,10,"mm"))).join(",")),e&&(n.inset=e)}e.openNode("v:textbox",n),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],48:[function(e,t,n){"use strict";const r=e("./base-xform");t.exports=class extends r{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},{"../base-xform":32}],50:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach((t=>{e.leafNode("vt:lpstr",void 0,t.name)})),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},{"../base-xform":32}],51:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../simple/string-xform"),o=e("./app-heading-pairs-xform"),s=e("./app-titles-of-parts-xform");class c extends i{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new s}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode("Properties",c.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform");class a extends i{render(e,t){e.openXml(r.StdDocAttributes),e.openNode("Types",a.PROPERTY_ATTRIBUTES);const n={};(t.media||[]).forEach((t=>{if("image"===t.type){const r=t.extension;n[r]||(n[r]=!0,e.leafNode("Default",{Extension:r,ContentType:"image/"+r}))}})),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach((t=>{const n=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:n,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})})),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach((t=>{e.leafNode("Override",{PartName:"/xl/tables/"+t.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})})),t.drawings&&t.drawings.forEach((t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})})),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach((t=>{let{commentName:n}=t;e.leafNode("Override",{PartName:`/xl/${n}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../simple/date-xform"),o=e("../simple/string-xform"),s=e("../simple/integer-xform");class c extends i{constructor(){super(),this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:c.DateFormat}),"cp:revision":new s({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:c.DateAttrs,format:c.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:c.DateAttrs,format:c.DateFormat})}}render(e,t){e.openXml(r.StdDocAttributes),e.openNode("cp:coreProperties",c.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./relationship-xform");class o extends i{constructor(){super(),this.map={Relationship:new a}}render(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("Relationships",o.RELATIONSHIPS_ATTRIBUTES),t.forEach((t=>{this.map.Relationship.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){const n=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=t.mediaIndex[e];return t.media[r]}}}}},{"../base-xform":32}],57:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./blip-xform");t.exports=class extends r{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],59:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],60:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./hlink-click-xform"),a=e("./ext-lst-xform");t.exports=class extends r{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../simple/integer-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,n){"use strict";const r=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("./two-cell-anchor-xform"),s=e("./one-cell-anchor-xform");class c extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new s}}prepare(e){e.anchors.forEach(((e,t)=>{e.anchorType=function(e){return("string"==typeof e.range?r.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),this.map[e.anchorType].prepare(e,{index:t})}))}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,c.DRAWING_ATTRIBUTES),t.anchors.forEach((t=>{this.map[t.anchorType].render(e,t)})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach((e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}c.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=c},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],64:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);const n=Math.floor(9525*t.width),r=Math.floor(9525*t.height);e.addAttribute("cx",n),e.addAttribute("cy",r),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./c-nv-pr-xform"),a=e("./c-nv-pic-pr-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,n){"use strict";const r=e("./base-cell-anchor-xform"),i=e("../static-xform"),a=e("./cell-position-xform"),o=e("./ext-xform"),s=e("./pic-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new s,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../static-xform"),a=e("./blip-fill-xform"),o=e("./nv-pic-pr-xform"),s=e("./sp-pr");t.exports=class extends r{constructor(){super(),this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new a,"xdr:spPr":new i(s)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,n){"use strict";t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,n){"use strict";const r=e("./base-cell-anchor-xform"),i=e("../static-xform"),a=e("./cell-position-xform"),o=e("./pic-xform");t.exports=class extends r{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,n){"use strict";const r=e("./base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const{childXform:n}=this;e&&e.forEach(((e,r)=>{t.index=r,n.prepare(e,t)}))}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const{childXform:n}=this;(t||[]).forEach(((t,r)=>{n.render(e,t,r)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){const{childXform:n}=this;e.forEach((e=>{n.reconcile(e,t)}))}}}},{"./base-xform":32}],72:[function(e,t,n){"use strict";const r=e("../../../utils/col-cache"),i=e("../base-xform");t.exports=class extends i{get tag(){return"autoFilter"}render(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{const n=function(e){return"string"==typeof e?e:r.getAddress(e.row,e.column).address},i=n(t.from),a=n(t.to);i&&a&&e.leafNode("autoFilter",{ref:`${i}:${a}`})}}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,n){"use strict";const r=e("../../../utils/utils"),i=e("../base-xform"),a=e("../../../doc/range"),o=e("../../../doc/enums"),s=e("../strings/rich-text-xform");function c(e){if(null==e)return o.ValueType.Null;if(e instanceof String||"string"==typeof e)return o.ValueType.String;if("number"==typeof e)return o.ValueType.Number;if("boolean"==typeof e)return o.ValueType.Boolean;if(e instanceof Date)return o.ValueType.Date;if(e.text&&e.hyperlink)return o.ValueType.Hyperlink;if(e.formula)return o.ValueType.Formula;if(e.error)return o.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends i{constructor(){super(),this.richTextXForm=new s}get tag(){return"c"}prepare(e,t){const n=t.styles.addStyleModel(e.style||{},function(e){return e.type===o.ValueType.Formula?c(e.result):e.type}(e));switch(n&&(e.styleId=n),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const n=t.formulae[e.sharedFormula];if(!n)throw new Error("Shared Formula master must exist above and or left of clone for cell "+e.address);void 0===n.si?(n.shareType="shared",n.si=t.siFormulae++,n.range=new a(n.address,e.address)):n.range&&n.range.expandToAddress(e.address),e.si=n.si}}}renderFormula(e,t){let n=null;switch(t.shareType){case"shared":n={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":n={t:"array",ref:t.ref};break;default:void 0!==t.si&&(n={t:"shared",si:t.si})}switch(c(t.result)){case o.ValueType.Null:e.leafNode("f",n,t.formula);break;case o.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",n,t.formula),e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",n,t.formula),e.leafNode("v",null,r.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach((t=>{this.richTextXForm.render(e,t)})),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case o.ValueType.Date:e.leafNode("v",null,r.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case o.ValueType.Formula:this.renderFormula(e,t);case o.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType)e.type=o.ValueType.Formula,e.value&&("str"===this.t?e.result=r.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=o.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=o.ValueType.String,e.value=r.xmlDecode(e.value);break;case"inlineStr":e.type=o.ValueType.String;break;case"b":e.type=o.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=o.ValueType.Error,e.value={error:e.value};break;default:e.type=o.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=o.ValueType.Null:e.type=o.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}reconcile(e,t){const n=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(n&&(e.style=n),void 0!==e.styleId&&(e.styleId=void 0),e.type){case o.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:n&&r.isDateFmt(n.numFmt)&&(e.type=o.ValueType.Date,e.value=r.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:void 0!==e.result&&n&&r.isDateFmt(n.numFmt)&&(e.result=r.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}const i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);const a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){let{attributes:t}=e;this.model={iconSet:t.iconSet,iconId:r.toIntValue(t.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,n){"use strict";const{v4:r}=e("uuid"),i=e("../../base-xform"),a=e("../../composite-xform"),o=e("./databar-ext-xform"),s=e("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new s}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?o.isExt(e):!("iconSet"!==e.type||!e.custom&&!c[e.iconSet])}prepare(e){l.isExt(e)&&(e.x14Id=`{${r()}}`.toUpperCase())}render(e,t){if(l.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${r()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./f-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){"xm:f"===e&&(this.model.value=t.model?parseFloat(t.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./sqref-ext-xform"),a=e("./cf-rule-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach((e=>{this.cfRule.prepare(e,t)}))}render(e,t){t.rules.some(a.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach((t=>this.cfRule.render(e,t))),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),a=e("./conditional-formatting-ext-xform");t.exports=class extends r{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some((e=>e.rules.some(i.isExt)))),e.hasExtContent}prepare(e,t){e.forEach((e=>{this.cfXform.prepare(e,t)}))}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach((t=>this.cfXform.render(e,t))),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("../../style/color-xform"),o=e("./cfvo-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:r.toIntAttribute(t.minLength,0,!0),maxLength:r.toIntAttribute(t.maxLength,100,!0),border:r.toBoolAttribute(t.border,!1),gradient:r.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(t.axisPosition,"auto"),direction:r.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],minLength:r.toIntValue(t.minLength,0),maxLength:r.toIntValue(t.maxLength,100),border:r.toBoolValue(t.border,!1),gradient:r.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(t.axisPosition,"auto"),direction:r.toStringValue(t.direction,"leftToRight")}}onParserClose(e,t){const[,n]=e.split(":");"cfvo"===n?this.model.cfvo.push(t.model):this.model[n]=t.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("./cfvo-ext-xform"),o=e("./cf-icon-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0),custom:r.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),t.icons&&t.icons.forEach(((t,n)=>{t.iconId=n,this.cfIconXform.render(e,t)})),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse,!1),showValue:r.toBoolValue(t.showValue,!0)}}onParserClose(e,t){const[,n]=e.split(":");switch(n){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[n]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("../../../../doc/range"),o=e("./databar-xform"),s=e("./ext-lst-ref-xform"),c=e("./formula-xform"),l=e("./color-scale-xform"),u=e("./icon-set-xform"),h={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},f=e=>{const{type:t,operator:n}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:n}}};class d extends i{constructor(){super(),this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new s,formula:this.formulaXform=new c,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new u}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!h[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach((t=>{this.formulaXform.render(e,t)})),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:r.toBoolAttribute(t.percent,!1),bottom:r.toBoolAttribute(t.bottom,!1),rank:r.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:r.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){d.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:r.toStringAttribute(t.operator,"containsText")});const n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new a(e.ref),{tl:n}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${n})))`;case"containsBlanks":return`LEN(TRIM(${n}))=0`;case"notContainsBlanks":return`LEN(TRIM(${n}))>0`;case"containsErrors":return`ISERROR(${n})`;case"notContainsErrors":return`NOT(ISERROR(${n}))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const n=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new a(e.ref),{tl:n}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${n},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${n},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${n},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${n},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${n},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${n},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${n},1)=TODAY()-1`;case"today":return`FLOOR(${n},1)=TODAY()`;case"tomorrow":return`FLOOR(${n},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${n},1)<=6,FLOOR(${n},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${n})=MONTH(EDATE(TODAY(),0-1)),YEAR(${n})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${n})=MONTH(TODAY()),YEAR(${n})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${n})=MONTH(EDATE(TODAY(),0+1)),YEAR(${n})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);n&&this.formulaXform.render(e,n),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{...f(t),dxfId:r.toIntValue(t.dxfId),priority:r.toIntValue(t.priority),timePeriod:t.timePeriod,percent:r.toBoolValue(t.percent),bottom:r.toBoolValue(t.bottom),rank:r.toIntValue(t.rank),aboveAverage:r.toBoolValue(t.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=d},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:r.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-xform");t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),t.color.forEach((t=>{this.colorXform.render(e,t)})),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("./cf-rule-xform");t.exports=class extends r{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach((n=>{i.isPrimitive(n)&&(n.ref=t.ref,this.map.cfRule.render(e,n))})),e.closeNode())}createNewModel(e){let{attributes:t}=e;return{ref:t.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("./conditional-formatting-xform");t.exports=class extends r{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let n=e.reduce(((e,t)=>Math.max(e,...t.rules.map((e=>e.priority||0)))),1);e.forEach((e=>{e.rules.forEach((e=>{e.priority||(e.priority=n++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))}))}))}render(e,t){t.forEach((t=>{this.cfXform.render(e,t)}))}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}reconcile(e,t){e.forEach((e=>{e.rules.forEach((e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)}))}))}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,n){"use strict";const r=e("../../composite-xform"),i=e("../../style/color-xform"),a=e("./cfvo-xform");t.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform");class a extends r{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class o extends i{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends i{constructor(){super(),this.map={ext:new o}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,n){"use strict";const r=e("../../base-xform");t.exports=class extends r{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,n){"use strict";const r=e("../../base-xform"),i=e("../../composite-xform"),a=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:r.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:r.toBoolAttribute(t.reverse,!1),showValue:r.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{iconSet:r.toStringValue(t.iconSet,"3TrafficLights"),reverse:r.toBoolValue(t.reverse),showValue:r.toBoolValue(t.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,n){"use strict";const r=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{get tag(){return"col"}prepare(e,t){const n=t.styles.addStyleModel(e.style||{});n&&(e.styleId=n)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){if("col"===e.name){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),r.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),r.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),r.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../utils/utils"),a=e("../../../utils/col-cache"),o=e("../base-xform"),s=e("../../../doc/range");function c(e,t,n,r){const i=t[n];void 0!==i?e[n]=i:void 0!==r&&(e[n]=r)}function l(e,t,n,r){const a=t[n];void 0!==a?e[n]=i.parseBoolean(a):void 0!==r&&(e[n]=r)}t.exports=class extends o{get tag(){return"dataValidations"}render(e,t){const n=function(e){const t=r.map(e,((e,t)=>({address:t,dataValidation:e,marked:!1}))).sort(((e,t)=>r.strcmp(e.address,t.address))),n=r.keyBy(t,"address"),i=(t,n,i)=>{for(let o=0;o<n;o++){const n=a.encodeAddress(t.row+o,i);if(!e[n]||!r.isEqual(e[t.address],e[n]))return!1}return!0};return t.map((t=>{if(!t.marked){const o=a.decodeEx(t.address);if(o.dimensions)return n[o.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let s=1,c=a.encodeAddress(o.row+s,o.col);for(;e[c]&&r.isEqual(t.dataValidation,e[c]);)s++,c=a.encodeAddress(o.row+s,o.col);let l=1;for(;i(o,s,o.col+l);)l++;for(let e=0;e<s;e++)for(let t=0;t<l;t++)c=a.encodeAddress(o.row+e,o.col+t),n[c].marked=!0;if(s>1||l>1){const e=o.row+(s-1),n=o.col+(l-1);return{...t.dataValidation,sqref:`${t.address}:${a.encodeAddress(e,n)}`}}return{...t.dataValidation,sqref:t.address}}return null})).filter(Boolean)}(t);n.length&&(e.openNode("dataValidations",{count:n.length}),n.forEach((t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach(((n,r)=>{e.openNode("formula"+(r+1)),"date"===t.type?e.writeText(i.dateToExcel(new Date(n))):e.writeText(n),e.closeNode()})),e.closeNode()})),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&l(t,e.attributes,"allowBlank"),l(t,e.attributes,"showInputMessage"),l(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:c(t,e.attributes,"operator","between")}return c(t,e.attributes,"promptTitle"),c(t,e.attributes,"prompt"),c(t,e.attributes,"errorStyle"),c(t,e.attributes,"errorTitle"),c(t,e.attributes,"error"),this._dataValidation=t,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach((e=>{e.includes(":")?new s(e).forEachAddress((e=>{this.model[e]=this._dataValidation})):this.model[e]=this._dataValidation})),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=i.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,n){"use strict";const r=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class a extends r{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends r{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let n=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),n=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),n=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),n=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),n=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),n=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),n=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),n=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),n=!0),n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../doc/range"),a=e("../../../utils/col-cache"),o=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return r.map(this.merges,(e=>e.range))}reconcile(e,t){r.each(e,(e=>{const n=a.decode(e);for(let e=n.top;e<=n.bottom;e++){const r=t[e-1];for(let t=n.left;t<=n.right;t++){const i=r.cells[t-1];i?i.type===o.ValueType.Merge&&(i.master=n.tl):r.cells[t]={type:o.ValueType.Null,address:a.encodeAddress(e,t)}}}}))}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e=>void 0!==e;t.exports=class extends r{get tag(){return"outlinePr"}render(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:i(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"pageMargins"}render(e,t){if(t){const n={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};r.some(n,(e=>void 0!==e))&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");function a(e){return e?"1":void 0}function o(e){if("overThenDown"===e)return e}function s(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function c(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}t.exports=class extends i{get tag(){return"pageSetup"}render(e,t){if(t){const n={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:o(t.pageOrder),blackAndWhite:a(t.blackAndWhite),draft:a(t.draft),cellComments:s(t.cellComments),errors:c(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:a(t.firstPageNumber),usePrinterDefaults:a(t.usePrinterDefaults),copies:t.copies};r.some(n,(e=>void 0!==e))&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");function a(e){return e?"1":void 0}t.exports=class extends i{get tag(){return"printOptions"}render(e,t){if(t){const n={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};r.some(n,(e=>void 0!==e))&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,n){"use strict";const r=e("./page-breaks-xform"),i=e("../list-xform");t.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new r})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const{childXform:n}=this;t.forEach((t=>{n.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../../../utils/utils"),a=e("./cell-xform");t.exports=class extends r{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(e,t){const n=t.styles.addStyleModel(e.style);n&&(e.styleId=n);const r=this.map.c;e.cells.forEach((e=>{r.prepare(e,t)}))}render(e,t,n){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const r=this.map.c;t.cells.forEach((t=>{r.render(e,t,n)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map((e=>parseInt(e,10))):[void 0,void 0],n=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(n.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(n.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(n.bestFit=!0),e.attributes.ht&&(n.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(n.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(n.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const n=this.map.c;e.cells.forEach((e=>{n.reconcile(e,t)}))}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"sheetFormatPr"}render(e,t){if(t){const n={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(n.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(n.customHeight="1"),r.some(n,(e=>void 0!==e))&&e.leafNode("sheetFormatPr",n)}}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../style/color-xform"),a=e("./page-setup-properties-xform"),o=e("./outline-properties-xform");t.exports=class extends r{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new a,outlinePr:new o}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback(),e.openNode("sheetPr");let n=!1;n=this.map.tabColor.render(e,t.tabColor)||n,n=this.map.pageSetUpPr.render(e,t.pageSetup)||n,n=this.map.outlinePr.render(e,t.outlineProperties)||n,n?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../base-xform");function a(e,t){return e?t:void 0}function o(e,t){return e===t||void 0}t.exports=class extends i{get tag(){return"sheetProtection"}render(e,t){if(t){const n={sheet:a(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:a(t.formatCells,"0"),formatColumns:a(t.formatColumns,"0"),formatRows:a(t.formatRows,"0"),insertColumns:a(t.insertColumns,"0"),insertRows:a(t.insertRows,"0"),insertHyperlinks:a(t.insertHyperlinks,"0"),deleteColumns:a(t.deleteColumns,"0"),deleteRows:a(t.deleteRows,"0"),sort:a(t.sort,"0"),autoFilter:a(t.autoFilter,"0"),pivotTables:a(t.pivotTables,"0")};t.sheet&&(n.algorithmName=t.algorithmName,n.hashValue=t.hashValue,n.saltValue=t.saltValue,n.spinCount=t.spinCount,n.objects=a(!1===t.objects,"1"),n.scenarios=a(!1===t.scenarios,"1")),r.some(n,(e=>void 0!==e))&&e.leafNode(this.tag,n)}}parseOpen(e){return e.name===this.tag&&(this.model={sheet:o(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:o(e.attributes.formatCells,"0"),formatColumns:o(e.attributes.formatColumns,"0"),formatRows:o(e.attributes.formatRows,"0"),insertColumns:o(e.attributes.insertColumns,"0"),insertRows:o(e.attributes.insertRows,"0"),insertHyperlinks:o(e.attributes.insertHyperlinks,"0"),deleteColumns:o(e.attributes.deleteColumns,"0"),deleteRows:o(e.attributes.deleteRows,"0"),sort:o(e.attributes.sort,"0"),autoFilter:o(e.attributes.autoFilter,"0"),pivotTables:o(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,n){"use strict";const r=e("../../../utils/col-cache"),i=e("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends i{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const n=function(t,n,r){r&&e.addAttribute(t,n)};let i,a,o,s;switch(n("rightToLeft","1",!0===t.rightToLeft),n("tabSelected","1",t.tabSelected),n("showRuler","0",!1===t.showRuler),n("showRowColHeaders","0",!1===t.showRowColHeaders),n("showGridLines","0",!1===t.showGridLines),n("zoomScale",t.zoomScale,t.zoomScale),n("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),n("view",t.style,t.style),t.state){case"frozen":a=t.xSplit||0,o=t.ySplit||0,i=t.topLeftCell||r.getAddress(o+1,a+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":{const t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,n;return"sheetView"!==e||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),n=this.selections[this.pane.activePane],n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},n=this.selections.topLeft,n&&n.activeCell&&(t.activeCell=n.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),o=e("../../rel-type"),s=e("./merges"),c=e("../base-xform"),l=e("../list-xform"),u=e("./row-xform"),h=e("./col-xform"),f=e("./dimension-xform"),d=e("./hyperlink-xform"),p=e("./merge-cell-xform"),g=e("./data-validations-xform"),m=e("./sheet-properties-xform"),v=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),A=e("./sheet-protection-xform"),b=e("./page-margins-xform"),w=e("./page-setup-xform"),x=e("./print-options-xform"),C=e("./auto-filter-xform"),_=e("./picture-xform"),I=e("./drawing-xform"),E=e("./table-part-xform"),k=e("./row-breaks-xform"),S=e("./header-footer-xform"),B=e("./cf/conditional-formattings-xform"),M=e("./ext-lst-xform"),T=(e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;const n={},r={};return e.forEach((e=>{n[e.ref]=e,e.rules.forEach((e=>{const{x14Id:t}=e;t&&(r[t]=e)}))})),t.forEach((t=>{t.rules.forEach((i=>{const a=r[i.x14Id];a?((e,t)=>{Object.keys(t).forEach((n=>{const r=e[n],i=t[n];void 0===r&&void 0!==i&&(e[n]=i)}))})(a,i):n[t.ref]?n[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})}))})),e};class O extends c{constructor(e){super();const{maxRows:t,maxCols:n,ignoreNodes:r}=e||{};this.ignoreNodes=r||[],this.map={sheetPr:new m,dimension:new f,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new v,cols:new l({tag:"cols",count:!1,childXform:new h}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:n}),maxItems:t}),autoFilter:new C,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new k,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new d}),pageMargins:new b,dataValidations:new g,pageSetup:new w,headerFooter:new S,printOptions:new x,picture:new _,drawing:new I,sheetProtection:new A,tableParts:new l({tag:"tableParts",count:!0,childXform:new E}),conditionalFormatting:new B,extLst:new M}}prepare(e,t){t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const n=e.rels=[];function r(e){return"rId"+(e.length+1)}if(e.hyperlinks.forEach((e=>{const t=r(n);e.rId=t,n.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})})),e.comments.length>0){const a={Id:r(n),Type:o.Comments,Target:`../comments${e.id}.xml`};n.push(a);const s={Id:r(n),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};n.push(s),e.comments.forEach((e=>{e.refAddress=i.decodeAddress(e.ref)})),t.commentRefs.push({commentName:"comments"+e.id,vmlDrawing:"vmlDrawing"+e.id})}const a=[];let c;e.media.forEach((i=>{if("background"===i.type){const a=r(n);c=t.media[i.imageId],n.push({Id:a,Type:o.Image,Target:`../media/${c.name}.${c.extension}`}),e.background={rId:a},e.image=t.media[i.imageId]}else if("image"===i.type){let{drawing:s}=e;c=t.media[i.imageId],s||(s=e.drawing={rId:r(n),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(s),n.push({Id:s.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${s.name}.xml`}));let l=this.preImageId===i.imageId?a[i.imageId]:a[s.rels.length];l||(l=r(s.rels),a[s.rels.length]=l,s.rels.push({Id:l,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${c.name}.${c.extension}`}));const u={picture:{rId:l},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){const e=r(s.rels);a[s.rels.length]=e,u.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e},s.rels.push({Id:e,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=i.imageId,s.anchors.push(u)}})),e.tables.forEach((e=>{const i=r(n);e.rId=i,n.push({Id:i,Type:o.Table,Target:"../tables/"+e.target}),e.columns.forEach((e=>{const{style:n}=e;n&&(e.dxfId=t.styles.addDxfStyle(n))}))})),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(a.StdDocAttributes),e.openNode("worksheet",O.WORKSHEET_ATTRIBUTES);const n=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(n.defaultColWidth=t.properties.defaultColWidth);const r={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},i=t.pageSetup&&t.pageSetup.margins,s={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},c=t.sheetProtection;this.map.sheetPr.render(e,r),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,n),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,c),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,s),this.map.pageMargins.render(e,i),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach((t=>{t.Type===o.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(r.each(this.map,(e=>{e.reset()})),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),r=T(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:r},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(e,t){const n=(e.relationships||[]).reduce(((n,r)=>{if(n[r.Id]=r,r.Type===o.Comments&&(e.comments=t.comments[r.Target].comments),r.Type===o.VmlDrawing&&e.comments&&e.comments.length){const n=t.vmlDrawings[r.Target].comments;e.comments.forEach(((e,t)=>{e.note=Object.assign({},e.note,n[t])}))}return n}),{});if(t.commentsMap=(e.comments||[]).reduce(((e,t)=>(t.ref&&(e[t.ref]=t),e)),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce(((e,t)=>(t.rId&&(e[t.address]=n[t.rId].Target),e)),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const r=n[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(r){const n=r[1];t.drawings[n].anchors.forEach((t=>{if(t.medium){const n={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(n)}}))}}const r=e.background&&n[e.background.rId];if(r){const n=r.Target.split("/media/")[1],i=t.mediaIndex&&t.mediaIndex[n];void 0!==i&&e.media.push({type:"background",imageId:i})}e.tables=(e.tables||[]).map((e=>{const r=n[e.rId];return t.tables[r.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}O.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=O},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,n){"use strict";const r=e("./base-xform"),i=e("../../utils/xml-stream");t.exports=class extends r{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new i;!function e(t,n){t.openNode(n.tag,n.$),n.c&&n.c.forEach((n=>{e(t,n)})),n.t&&t.writeText(n.t),t.closeNode()}(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){return e!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,n){"use strict";const r=e("./text-xform"),i=e("./rich-text-xform"),a=e("../base-xform");t.exports=class extends a{constructor(){super(),this.map={r:new i,t:new r}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:n}=this.map;t.richText.forEach((t=>{n.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,n){"use strict";const r=e("./text-xform"),i=e("../style/font-xform"),a=e("../base-xform");class o extends a{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new r)}get fontXform(){return this._fontXform||(this._fontXform=new i(o.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=o},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,n){"use strict";const r=e("./text-xform"),i=e("./rich-text-xform"),a=e("./phonetic-text-xform"),o=e("../base-xform");t.exports=class extends o{constructor(e){super(),this.model=e,this.map={r:new i,t:new r,rPh:new a}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach((t=>{this.map.r.render(e,t)})):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("./shared-string-xform");t.exports=class extends i{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){const t=this.sharedStringXform.toXml(e);let n=this.rich[t];return void 0===n&&(n=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,n}render(e,t){t=t||this._values,e.openXml(r.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const n=this.sharedStringXform;t.values.forEach((t=>{n.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}parseOpen(e){return"t"===e.name&&(this._text=[],!0)}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,n){"use strict";const r=e("../../../doc/enums"),i=e("../../../utils/utils"),a=e("../base-xform"),o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(((e,t)=>(e[t]=!0,e)),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(((e,t)=>(e[t]=!0,e)),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation:e=>"vertical"===e||(e=i.validInt(e))>=-90&&e<=90?e:void 0,indent:e=>(e=i.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return r.ReadingOrder.LeftToRight;case"rtl":return r.ReadingOrder.RightToLeft;default:return}}},s={toXml(e){if(e=o.textRotation(e)){if("vertical"===e)return 255;const t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){const t=i.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=class extends a{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let n=!1;function r(t,r){r&&(e.addAttribute(t,r),n=!0)}r("horizontal",o.horizontal(t.horizontal)),r("vertical",o.vertical(t.vertical)),r("wrapText",!!o.wrapText(t.wrapText)&&"1"),r("shrinkToFit",!!o.shrinkToFit(t.shrinkToFit)&&"1"),r("indent",o.indent(t.indent)),r("textRotation",s.toXml(t.textRotation)),r("readingOrder",o.readingOrder(t.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const t={};let n=!1;function r(e,r,i){e&&(t[r]=i,n=!0)}r(e.attributes.horizontal,"horizontal",e.attributes.horizontal),r(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),r(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText)),r(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit)),r(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),r(e.attributes.textRotation,"textRotation",s.toModel(e.attributes.textRotation)),r(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../../../utils/utils"),a=e("./color-xform");class o extends r{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,t,n){const r=t&&t.color||n||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),r&&this.map.color.render(e,r)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return o.validStyleValues[e]}}o.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(((e,t)=>(e[t]=!0,e)),{}),t.exports=class extends r{constructor(){super(),this.map={top:new o("top"),left:new o("left"),bottom:new o("bottom"),right:new o("right"),diagonal:new o("diagonal")}}render(e,t){const{color:n}=t;function r(r,i){r&&!r.color&&t.color&&(r={...r,color:t.color}),i.render(e,r,n)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),r(t.left,this.map.left),r(t.right,this.map.right),r(t.top,this.map.top),r(t.bottom,this.map.bottom),r(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,n,r){n&&(r&&Object.assign(n,r),e[t]=n)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./alignment-xform"),a=e("./border-xform"),o=e("./fill-xform"),s=e("./font-xform"),c=e("./numfmt-xform"),l=e("./protection-xform");t.exports=class extends r{constructor(){super(),this.map={alignment:new i,border:new a,fill:new o,font:new s,numFmt:new c,protection:new l}}get tag(){return"dxf"}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){const n={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,n)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./color-xform");class a extends r{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class o extends r{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class s extends r{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const n=this.map.stop;t.stops.forEach((t=>{n.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":{const t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class c extends r{constructor(){super(),this.map={patternFill:new o,gradientFill:new s}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return c.validPatternValues[e]}}c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(((e,t)=>(e[t]=!0,e)),{}),c.StopXform=a,c.PatternFillXform=o,c.GradientFillXform=s,t.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,n){"use strict";const r=e("./color-xform"),i=e("../simple/boolean-xform"),a=e("../simple/integer-xform"),o=e("../simple/string-xform"),s=e("./underline-xform"),c=e("../../../utils/under-dash"),l=e("../base-xform");class u extends l{constructor(e){super(),this.options=e||u.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new s},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new r},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:n}=this;e.openNode(this.options.tagName),c.each(this.map,((r,i)=>{n[i].xform.render(e,t[r.prop])})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}u.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=u},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,n){"use strict";const r=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),a=e("../base-xform"),o=function(){const e={};return r.each(i,((t,n)=>{t.f&&(e[t.f]=parseInt(n,10))})),e}();class s extends a{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}s.getDefaultFmtId=function(e){return o[e]},s.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=s},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,n){"use strict";const r=e("../base-xform"),i={boolean:(e,t)=>void 0===e?t:e};t.exports=class extends r{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let n=!1;function r(t,r){void 0!==r&&(e.addAttribute(t,r),n=!0)}r("locked",i.boolean(t.locked,!0)?void 0:"0"),r("hidden",i.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},n=!t.locked||t.hidden;this.model=n?t:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./alignment-xform"),a=e("./protection-xform");t.exports=class extends r{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new i,protection:new a}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,n){"use strict";const r=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("../static-xform"),s=e("../list-xform"),c=e("./font-xform"),l=e("./fill-xform"),u=e("./border-xform"),h=e("./numfmt-xform"),f=e("./style-xform"),d=e("./dxf-xform");class p extends a{constructor(e){super(),this.map={numFmts:new s({tag:"numFmts",count:!0,childXform:new h}),fonts:new s({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new s({tag:"fills",count:!0,childXform:new l}),borders:new s({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new s({tag:"cellStyleXfs",count:!0,childXform:new f}),cellXfs:new s({tag:"cellXfs",count:!0,childXform:new f({xfId:!0})}),dxfs:new s({tag:"dxfs",always:!0,count:!0,childXform:new d}),numFmt:new h,font:new c,fill:new l,border:new u,style:new f({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},e&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(e,t){t=t||this.model,e.openXml(i.StdDocAttributes),e.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach((t=>{e.writeXml(t)})),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach((t=>{e.writeXml(t)})),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach((t=>{e.writeXml(t)})),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach((t=>{e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach((t=>{e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),p.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),p.STATIC_XFORMS.tableStyles.render(e),p.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach((t=>{e[t.id]=t.formatCode}))}return!1}return!0}addStyleModel(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);const n={};if(t=t||r.ValueType.Number,e.numFmt)n.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case r.ValueType.Number:n.numFmtId=this._addNumFmtStr("General");break;case r.ValueType.Date:n.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(n.fontId=this._addFont(e.font)),e.border&&(n.borderId=this._addBorder(e.border)),e.fill&&(n.fillId=this._addFill(e.fill)),e.alignment&&(n.alignment=e.alignment),e.protection&&(n.protection=e.protection);const i=this._addStyle(n);return this.weakMap&&this.weakMap.set(e,i),i}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let n=this.index.model[e];if(n)return n;if(n=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||h.getDefaultFmtCode(t.numFmtId);e&&(n.numFmt=e)}function r(e,t,r){if(r||0===r){const i=t[r];i&&(n[e]=i)}}return r("font",this.model.fonts,t.fontId),r("border",this.model.borders,t.borderId),r("fill",this.model.fills,t.fillId),t.alignment&&(n.alignment=t.alignment),t.protection&&(n.protection=t.protection),n}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let n=this.index.style[t];return void 0===n&&(n=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),n}_addNumFmtStr(e){let t=h.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;const n=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(n),t}_addFont(e){const t=this.map.font.toXml(e);let n=this.index.font[t];return void 0===n&&(n=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),n}_addBorder(e){const t=this.map.border.toXml(e);let n=this.index.border[t];return void 0===n&&(n=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),n}_addFill(e){const t=this.map.fill.toXml(e);let n=this.index.fill[t];return void 0===n&&(n=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),n}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){return t===r.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:h.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},t.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,n){"use strict";const r=e("../base-xform");class i extends r{constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{const n=i.Attributes[t];n&&e.leafNode("u",n)}}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=i},{"../base-xform":32}],137:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("./filter-column-xform");t.exports=class extends r{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach(((e,t)=>{this.map.filterColumn.prepare(e,{index:t})}))}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach((t=>{this.map.filterColumn.render(e,t)})),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,n){"use strict";const r=e("../base-xform"),i=e("../list-xform"),a=e("./custom-filter-xform"),o=e("./filter-xform");t.exports=class extends r{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new o})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:t}=e;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,n){"use strict";const r=e("../base-xform");t.exports=class extends r{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,n){"use strict";const r=e("../../../utils/xml-stream"),i=e("../base-xform"),a=e("../list-xform"),o=e("./auto-filter-xform"),s=e("./table-column-xform"),c=e("./table-style-info-xform");class l extends i{constructor(){super(),this.map={autoFilter:new o,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new s}),tableStyleInfo:new c}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(r.StdDocAttributes),e.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{name:t,attributes:n}=e;return t===this.tag?(this.reset(),this.model={name:n.name,displayName:n.displayName||n.name,tableRef:n.ref,totalsRow:"1"===n.totalsRowCount,headerRow:"1"===n.headerRowCount}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(((e,t)=>{this.model.columns[t].filterButton=e.filterButton}))),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(e,t){e.columns.forEach((e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))}))}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,n){(function(n,r){(function(){"use strict";const i=e("fs"),a=e("jszip"),{PassThrough:o}=e("readable-stream"),s=e("../utils/zip-stream"),c=e("../utils/stream-buf"),l=e("../utils/utils"),u=e("../utils/xml-stream"),{bufferToString:h}=e("../utils/browser-buffer-decode"),f=e("./xform/style/styles-xform"),d=e("./xform/core/core-xform"),p=e("./xform/strings/shared-strings-xform"),g=e("./xform/core/relationships-xform"),m=e("./xform/core/content-types-xform"),v=e("./xform/core/app-xform"),y=e("./xform/book/workbook-xform"),A=e("./xform/sheet/worksheet-xform"),b=e("./xform/drawing/drawing-xform"),w=e("./xform/table/table-xform"),x=e("./xform/comment/comments-xform"),C=e("./xform/comment/vml-notes-xform"),_=e("./xml/theme1");class I{constructor(e){this.workbook=e}async readFile(e,t){if(!await l.fs.exists(e))throw new Error("File not found: "+e);const n=i.createReadStream(e);try{const e=await this.read(n,t);return n.close(),e}catch(e){throw n.close(),e}}parseRels(e){return(new g).parseStream(e)}parseWorkbook(e){return(new y).parseStream(e)}parseSharedStrings(e){return(new p).parseStream(e)}reconcile(e,t){const n=new y,r=new A(t),i=new b,a=new w;n.reconcile(e);const o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((t=>{const n=e.drawings[t],r=e.drawingRels[t];r&&(o.rels=r.reduce(((e,t)=>(e[t.Id]=t,e)),{}),(n.anchors||[]).forEach((e=>{const t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)})),i.reconcile(n,o))}));const s={styles:e.styles};Object.values(e.tables).forEach((e=>{a.reconcile(e,s)}));const c={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((t=>{t.relationships=e.worksheetRels[t.sheetNo],r.reconcile(t,c)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,n,r,i){const a=new A(r),o=await a.parseStream(e);o.sheetNo=n,t.worksheetHash[i]=o,t.worksheets.push(o)}async _processCommentEntry(e,t,n){const r=new x,i=await r.parseStream(e);t.comments[`../${n}.xml`]=i}async _processTableEntry(e,t,n){const r=new w,i=await r.parseStream(e);t.tables[`../tables/${n}.xml`]=i}async _processWorksheetRelsEntry(e,t,n){const r=new g,i=await r.parseStream(e);t.worksheetRels[n]=i}async _processMediaEntry(e,t,n){const r=n.lastIndexOf(".");if(r>=1){const i=n.substr(r+1),a=n.substr(0,r);await new Promise(((r,o)=>{const s=new c;s.on("finish",(()=>{t.mediaIndex[n]=t.media.length,t.mediaIndex[a]=t.media.length;const e={type:"image",name:a,extension:i,buffer:s.toBuffer()};t.media.push(e),r()})),e.on("error",(e=>{o(e)})),e.pipe(s)}))}}async _processDrawingEntry(e,t,n){const r=new b,i=await r.parseStream(e);t.drawings[n]=i}async _processDrawingRelsEntry(e,t,n){const r=new g,i=await r.parseStream(e);t.drawingRels[n]=i}async _processVmlDrawingEntry(e,t,n){const r=new C,i=await r.parseStream(e);t.vmlDrawings[`../drawings/${n}.vml`]=i}async _processThemeEntry(e,t,n){await new Promise(((r,i)=>{const a=new c;e.on("error",i),a.on("error",i),a.on("finish",(()=>{t.themes[n]=a.read().toString(),r()})),e.pipe(a)}))}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new o));const n=[];for await(const t of e)n.push(t);return this.load(r.concat(n),t)}async load(e,t){let i;i=t&&t.base64?r.from(e.toString(),"base64"):e;const s={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},c=await a.loadAsync(i);for(const e of Object.values(c.files))if(!e.dir){let r,i=e.name;if("/"===i[0]&&(i=i.substr(1)),i.match(/xl\/media\//)||i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))r=new o,r.write(await e.async("nodebuffer"));else{let t;r=new o({writableObjectMode:!0,readableObjectMode:!0}),t=n.browser?h(await e.async("nodebuffer")):await e.async("string");const i=16384;for(let e=0;e<t.length;e+=i)r.write(t.substring(e,e+i))}switch(r.end(),i){case"_rels/.rels":s.globalRels=await this.parseRels(r);break;case"xl/workbook.xml":{const e=await this.parseWorkbook(r);s.sheets=e.sheets,s.definedNames=e.definedNames,s.views=e.views,s.properties=e.properties,s.calcProperties=e.calcProperties;break}case"xl/_rels/workbook.xml.rels":s.workbookRels=await this.parseRels(r);break;case"xl/sharedStrings.xml":s.sharedStrings=new p,await s.sharedStrings.parseStream(r);break;case"xl/styles.xml":s.styles=new f,await s.styles.parseStream(r);break;case"docProps/app.xml":{const e=new v,t=await e.parseStream(r);s.company=t.company,s.manager=t.manager;break}case"docProps/core.xml":{const e=new d,t=await e.parseStream(r);Object.assign(s,t);break}default:{let e=i.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(r,s,e[1],t,i);break}if(e=i.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),e){await this._processWorksheetRelsEntry(r,s,e[1]);break}if(e=i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),e){await this._processThemeEntry(r,s,e[1]);break}if(e=i.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),e){await this._processMediaEntry(r,s,e[1]);break}if(e=i.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),e){await this._processDrawingEntry(r,s,e[1]);break}if(e=i.match(/xl\/(comments\d+)[.]xml/),e){await this._processCommentEntry(r,s,e[1]);break}if(e=i.match(/xl\/tables\/(table\d+)[.]xml/),e){await this._processTableEntry(r,s,e[1]);break}if(e=i.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),e){await this._processDrawingRelsEntry(r,s,e[1]);break}if(e=i.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),e){await this._processVmlDrawingEntry(r,s,e[1]);break}}}}return this.reconcile(s,t),this.workbook.model=s,this.workbook}async addMedia(e,t){await Promise.all(t.media.map((async t=>{if("image"===t.type){const n=`xl/media/${t.name}.${t.extension}`;if(t.filename){const r=await function(e,t){return new Promise(((n,r)=>{i.readFile(e,t,((e,t)=>{e?r(e):n(t)}))}))}(t.filename);return e.append(r,{name:n})}if(t.buffer)return e.append(t.buffer,{name:n});if(t.base64){const r=t.base64,i=r.substring(r.indexOf(",")+1);return e.append(i,{name:n,base64:!0})}}throw new Error("Unsupported media")})))}addDrawings(e,t){const n=new b,r=new g;t.worksheets.forEach((t=>{const{drawing:i}=t;if(i){n.prepare(i,{});let t=n.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`}),t=r.toXml(i.rels),e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}}))}addTables(e,t){const n=new w;t.worksheets.forEach((t=>{const{tables:r}=t;r.forEach((t=>{n.prepare(t,{});const r=n.toXml(t);e.append(r,{name:"xl/tables/"+t.target})}))}))}async addContentTypes(e,t){const n=(new m).toXml(t);e.append(n,{name:"[Content_Types].xml"})}async addApp(e,t){const n=(new v).toXml(t);e.append(n,{name:"docProps/app.xml"})}async addCore(e,t){const n=new d;e.append(n.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const n=t.themes||{theme1:_};Object.keys(n).forEach((t=>{const r=n[t],i=`xl/theme/${t}.xml`;e.append(r,{name:i})}))}async addOfficeRels(e){const t=(new g).toXml([{Id:"rId1",Type:I.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:I.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:I.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let n=1;const r=[{Id:"rId"+n++,Type:I.RelType.Styles,Target:"styles.xml"},{Id:"rId"+n++,Type:I.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&r.push({Id:"rId"+n++,Type:I.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach((e=>{e.rId="rId"+n++,r.push({Id:e.rId,Type:I.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}));const i=(new g).toXml(r);e.append(i,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){const{xml:n}=t.styles;n&&e.append(n,{name:"xl/styles.xml"})}async addWorkbook(e,t){const n=new y;e.append(n.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const n=new A,r=new g,i=new x,a=new C;t.worksheets.forEach((t=>{let o=new u;n.render(o,t),e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(o=new u,r.render(o,t.rels),e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(o=new u,i.render(o,t),e.append(o.xml,{name:`xl/comments${t.id}.xml`}),o=new u,a.render(o,t),e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))}))}_finalize(e){return new Promise(((t,n)=>{e.on("finish",(()=>{t(this)})),e.on("error",n),e.finalize()}))}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new p,e.styles=e.useStyles?new f(!0):new f.Mock;const n=new y,r=new A;n.prepare(e);const i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];let a=0;e.tables=[],e.worksheets.forEach((t=>{t.tables.forEach((t=>{a++,t.target=`table${a}.xml`,t.id=a,e.tables.push(t)})),r.prepare(t,i)}))}async write(e,t){t=t||{};const{model:n}=this.workbook,r=new s.ZipWriter(t.zip);return r.pipe(e),this.prepareModel(n,t),await this.addContentTypes(r,n),await this.addOfficeRels(r,n),await this.addWorkbookRels(r,n),await this.addWorksheets(r,n),await this.addSharedStrings(r,n),await this.addDrawings(r,n),await this.addTables(r,n),await Promise.all([this.addThemes(r,n),this.addStyles(r,n)]),await this.addMedia(r,n),await Promise.all([this.addApp(r,n),this.addCore(r,n)]),await this.addWorkbook(r,n),this._finalize(r)}writeFile(e,t){const n=i.createWriteStream(e);return new Promise(((e,r)=>{n.on("finish",(()=>{e()})),n.on("error",(e=>{r(e)})),this.write(n,t).then((()=>{n.end()})).catch((e=>{r(e)}))}))}async writeBuffer(e){const t=new c;return await this.write(t,e),t.read()}}I.RelType=e("./rel-type"),t.exports=I}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,n){"use strict";t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],146:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CsvFormatterStream=void 0;const r=e("stream"),i=e("./formatter");class a extends r.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new i.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,n,r){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,((e,n)=>e?(i=!0,r(e)):(n&&n.forEach((e=>{this.push(t.from(e,"utf8"))})),i=!0,r())))}catch(e){if(i)throw e;r(e)}}_flush(e){this.rowFormatter.finish(((n,r)=>n?e(n):(r&&r.forEach((e=>{this.push(t.from(e,"utf8"))})),e())))}}n.CsvFormatterStream=a}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),void 0===(null==e?void 0:e.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==e?void 0:e.quote)?this.quote='"':!1===(null==e?void 0:e.quote)&&(this.quote=""),"string"!=typeof(null==e?void 0:e.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=e.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=void 0;const i=r(e("lodash.isboolean")),a=r(e("lodash.isnil")),o=r(e("lodash.escaperegexp"));n.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,null!==e.headers&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const t=`[${e.delimiter}${o.default(e.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(t)}set headers(e){this._headers=e}shouldQuote(e,t){const n=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(n)?n:Array.isArray(n)?n[e]:null!==this._headers&&n[this._headers[e]]}format(e,t,n){const r=(""+(a.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:i}=this;return""!==i.quote&&-1!==r.indexOf(i.quote)?this.quoteField(r.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==r.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,n)?this.quoteField(r):r}quoteField(e){const{quote:t}=this.formatterOptions;return`${t}${e}${t}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowFormatter=void 0;const i=r(e("lodash.isfunction")),a=r(e("lodash.isequal")),o=e("./FieldFormatter"),s=e("../types");class c{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new o.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return c.isRowHashArray(e)?e.map((e=>e[0])):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return s.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:(t,n)=>{e(t,n)}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=c.createTransform(e)}format(e,t){this.callTransformer(e,((n,r)=>{if(n)return t(n);if(!e)return t(null);const i=[];if(r){const{shouldFormatColumns:e,headers:t}=this.checkHeaders(r);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(i.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){const e=this.gatherColumns(r);i.push(this.formatColumns(e,!1))}}return t(null,i)}))}finish(e){const t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const t=c.gatherHeaders(e);return this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null}}gatherColumns(e){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(e)?c.isRowHashArray(e)?this.headers.map(((t,n)=>{const r=e[n];return r?r[1]:""})):c.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map(((t,n)=>e[n])):this.headers.map((t=>e[t]))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){const n=e.map(((e,n)=>this.fieldFormatter.format(e,n,t))).join(this.formatterOptions.delimiter),{rowCount:r}=this;return this.rowCount+=1,r?[this.formatterOptions.rowDelimiter,n].join(""):n}}n.RowFormatter=c},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var r=e("./RowFormatter");Object.defineProperty(n,"RowFormatter",{enumerable:!0,get:function(){return r.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(n,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,n){(function(t){(function(){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;const s=e("util"),c=e("stream"),l=a(e("fs")),u=e("./FormatterOptions"),h=e("./CsvFormatterStream");o(e("./types"),n);var f=e("./CsvFormatterStream");Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}});var d=e("./FormatterOptions");Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}}),n.format=e=>new h.CsvFormatterStream(new u.FormatterOptions(e)),n.write=(e,t)=>{const r=n.format(t),i=s.promisify(((e,t)=>{r.write(e,void 0,t)}));return e.reduce(((e,t)=>e.then((()=>i(t)))),Promise.resolve()).then((()=>r.end())).catch((e=>{r.emit("error",e)})),r},n.writeToStream=(e,t,r)=>n.write(t,r).pipe(e),n.writeToBuffer=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[],a=new c.Writable({write(e,t,n){i.push(e),n()}});return new Promise(((o,s)=>{a.on("error",s).on("finish",(()=>o(t.concat(i)))),n.write(e,r).pipe(a)}))},n.writeToString=(e,t)=>n.writeToBuffer(e,t).then((e=>e.toString())),n.writeToPath=(e,t,r)=>{const i=l.createWriteStream(e,{encoding:"utf8"});return n.write(t,r).pipe(i)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=e=>1===e.length},{}],153:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=void 0;const r=e("string_decoder"),i=e("stream"),a=e("./transforms"),o=e("./parser");class s extends i.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new o.Parser(e),this.headerTransformer=new a.HeaderTransformer(e),this.decoder=new r.StringDecoder(e.encoding),this.rowTransformerValidator=new a.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return super.emit(e,...n)}_transform(e,t,n){if(this.hasHitRowLimit)return n();const r=s.wrapDoneCallback(n);try{const{lines:t}=this,n=t+this.decoder.write(e),i=this.parse(n,!0);return this.processRows(i,r)}catch(e){return r(e)}}_flush(e){const t=s.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{const e=this.lines+this.decoder.end(),n=this.parse(e,!1);return this.processRows(n,t)}catch(e){return t(e)}}parse(e,t){if(!e)return[];const{line:n,rows:r}=this.parser.parse(e,t);return this.lines=n,r}processRows(e,n){const r=e.length,i=a=>{const o=e=>e?n(e):a%100!=0?i(a+1):void t((()=>i(a+1)));if(this.checkAndEmitHeaders(),a>=r||this.hasHitRowLimit)return n();if(this.parsedLineCount+=1,this.shouldSkipLine)return o();const s=e[a];this.rowCount+=1,this.parsedRowCount+=1;const c=this.rowCount;return this.transformRow(s,((e,t)=>{if(e)return this.rowCount-=1,o(e);if(!t)return o(new Error("expected transform result"));if(t.isValid){if(t.row)return this.pushRow(t.row,o)}else this.emit("data-invalid",t.row,c,t.reason);return o()}))};i(0)}transformRow(e,t){try{this.headerTransformer.transform(e,((n,r)=>n?t(n):r?r.isValid?r.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(r.row,t):this.skipRow(t):(this.rowCount-=1,this.parsedRowCount-=1,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(new Error("Expected result from header transform"))))}catch(e){t(e)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}static wrapDoneCallback(e){let t=!1;return function(n){if(n){if(t)throw n;return t=!0,void e(n)}for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e(...i)}}}n.CsvParserStream=s}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ParserOptions=void 0;const i=r(e("lodash.escaperegexp")),a=r(e("lodash.isnil"));n.ParserOptions=class{constructor(e){var t;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,e||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=null!==(t=this.escape)&&void 0!==t?t:this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;const s=a(e("fs")),c=e("stream"),l=e("./ParserOptions"),u=e("./CsvParserStream");o(e("./types"),n);var h=e("./CsvParserStream");Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return h.CsvParserStream}});var f=e("./ParserOptions");Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),n.parse=e=>new u.CsvParserStream(new l.ParserOptions(e)),n.parseStream=(e,t)=>e.pipe(new u.CsvParserStream(new l.ParserOptions(t))),n.parseFile=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(e).pipe(new u.CsvParserStream(new l.ParserOptions(t)))},n.parseString=(e,t)=>{const n=new c.Readable;return n.push(e),n.push(null),n.pipe(new u.CsvParserStream(new l.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;const r=e("./Scanner"),i=e("./RowParser"),a=e("./Token");class o{constructor(e){this.parserOptions=e,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}parse(e,t){const n=new r.Scanner({line:o.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}parseWithoutComments(e){const t=[];let n=!0;for(;n;)n=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){const{parserOptions:t}=this,n=[];for(let r=e.nextCharacterToken;null!==r;r=e.nextCharacterToken)if(a.Token.isTokenComment(r,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}parseRow(e,t){if(!e.nextNonSpaceToken)return!1;const n=this.rowParser.parse(e);return null!==n&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(n)||t.push(n),!0)}}n.Parser=o},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RowParser=void 0;const r=e("./column"),i=e("./Token");n.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new r.ColumnParser(e)}static isEmptyRow(e){return""===e.join("").replace(/\s+/g,"")}parse(e){const{parserOptions:t}=this,{hasMoreData:n}=e,r=e,a=[];let o=this.getStartToken(r,a);for(;o;){if(i.Token.isTokenRowDelimiter(o))return r.advancePastToken(o),!r.hasMoreCharacters&&i.Token.isTokenCarriageReturn(o,t)&&n?null:(r.truncateToCursor(),a);if(!this.shouldSkipColumnParse(r,o,a)){const e=this.columnParser.parse(r);if(null===e)return null;a.push(e)}o=r.nextNonSpaceToken}return n?null:(r.truncateToCursor(),a)}getStartToken(e,t){const n=e.nextNonSpaceToken;return null!==n&&i.Token.isTokenDelimiter(n,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):n}shouldSkipColumnParse(e,t,n){const{parserOptions:r}=this;if(i.Token.isTokenDelimiter(t,r)){e.advancePastToken(t);const a=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==a&&i.Token.isTokenRowDelimiter(a))return n.push(""),!0;if(null!==a&&i.Token.isTokenDelimiter(a,r))return n.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Scanner=void 0;const r=e("./Token"),i=/((?:\r\n)|\n|\r)/;n.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:e}=this,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;const n=t.exec(e);if(null==n)return null;const i=n[1],a=this.cursor+(n.index||0);return new r.Token({token:i,startCursor:a,endCursor:a+i.length-1})}get nextCharacterToken(){const{cursor:e,lineLength:t}=this;return t<=e?null:new r.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Token=void 0,n.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){const t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnParser=void 0;const r=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),a=e("../Token");n.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new i.QuotedColumnParser(e),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(e)}parse(e){const{nextNonSpaceToken:t}=e;return null!==t&&a.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NonQuotedColumnParser=void 0;const r=e("./ColumnFormatter"),i=e("../Token");n.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const{parserOptions:t}=this,n=[];let r=e.nextCharacterToken;for(;r&&!i.Token.isTokenDelimiter(r,t)&&!i.Token.isTokenRowDelimiter(r);r=e.nextCharacterToken)n.push(r.token),e.advancePastToken(r);return this.columnFormatter.format(n.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=void 0;const r=e("./ColumnFormatter"),i=e("../Token");n.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new r.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const t=e.cursor,{foundClosingQuote:n,col:r}=this.gatherDataBetweenQuotes(e);if(!n){if(e.advanceTo(t),!e.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(e),r}gatherDataBetweenQuotes(e){const{parserOptions:t}=this;let n=!1,r=!1;const a=[];let o=e.nextCharacterToken;for(;!r&&null!==o;o=e.nextCharacterToken){const s=i.Token.isTokenQuote(o,t);if(!n&&s)n=!0;else if(n)if(i.Token.isTokenEscapeCharacter(o,t)){e.advancePastToken(o);const n=e.nextCharacterToken;null!==n&&(i.Token.isTokenQuote(n,t)||i.Token.isTokenEscapeCharacter(n,t))?(a.push(n.token),o=n):s?r=!0:a.push(o.token)}else s?r=!0:a.push(o.token);e.advancePastToken(o)}return{col:this.columnFormatter.format(a.join("")),foundClosingQuote:r}}checkForMalformedColumn(e){const{parserOptions:t}=this,{nextNonSpaceToken:n}=e;if(n){const r=i.Token.isTokenDelimiter(n,t),a=i.Token.isTokenRowDelimiter(n);if(!r&&!a){const r=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${n.token}'. at '${r}`)}e.advanceToToken(n)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var r=e("./ColumnParser");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var a=e("./QuotedColumnParser");Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}});var o=e("./ColumnFormatter");Object.defineProperty(n,"ColumnFormatter",{enumerable:!0,get:function(){return o.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var r=e("./Parser");Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return r.Parser}});var i=e("./RowParser");Object.defineProperty(n,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var a=e("./Scanner");Object.defineProperty(n,"Scanner",{enumerable:!0,get:function(){return a.Scanner}});var o=e("./Token");Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return o.Token}});var s=e("./column");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=void 0;const i=r(e("lodash.isundefined")),a=r(e("lodash.isfunction")),o=r(e("lodash.uniq")),s=r(e("lodash.groupby"));n.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,!0===e.headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):a.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:t}=this;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:t}=this;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const t={},{headers:n,headersLength:r}=this;for(let a=0;a<r;a+=1){const r=n[a];if(!i.default(r)){const n=e[a];i.default(n)?t[r]="":t[r]=n}}return t}setHeaders(e){var t;const n=e.filter((e=>!!e));if(o.default(n).length!==n.length){const e=s.default(n),t=Object.keys(e).filter((t=>e[t].length>1));throw new Error("Duplicate headers found "+JSON.stringify(t))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowTransformerValidator=void 0;const i=r(e("lodash.isfunction")),a=e("../types");class o{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return a.isSyncTransform(e)?(t,n)=>{let r=null;try{r=e(t)}catch(e){return n(e)}return n(null,r)}:e}static createValidator(e){return a.isSyncValidate(e)?(t,n)=>{n(null,{row:t,isValid:e(t)})}:(t,n)=>{e(t,((e,r,i)=>e?n(e):n(null,r?{row:t,isValid:r,reason:i}:{row:t,isValid:!1,reason:i})))}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=o.createTransform(e)}set rowValidator(e){if(!i.default(e))throw new TypeError("The validate should be a function");this._rowValidator=o.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,((e,n)=>e?t(e):n?this.callValidator(n,((e,r)=>e?t(e):r&&!r.isValid?t(null,{row:n,isValid:!1,reason:r.reason}):t(null,{row:n,isValid:!0}))):t(null,{row:null,isValid:!0})))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}n.RowTransformerValidator=o},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var r=e("./RowTransformerValidator");Object.defineProperty(n,"RowTransformerValidator",{enumerable:!0,get:function(){return r.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(n,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=e=>1===e.length,n.isSyncValidate=e=>1===e.length},{}],170:[function(e,t,n){"use strict";const r=n;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,n){"use strict";const r=e("./encoders"),i=e("./decoders"),a=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return a(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,n){"use strict";const r=e("inherits"),i=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),n.DecoderBuffer=o,o.isDecoderBuffer=function(e){return e instanceof o||"object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){const t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},n.EncoderBuffer=s,s.isEncoderBuffer=function(e){return e instanceof s||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,n){"use strict";const r=n;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,n){"use strict";const r=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,o=e("minimalistic-assert"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){const e=this._baseState;c.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){const t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){l.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){o(e);const t=this._baseState;return o(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){const t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){const t=this._baseState;return o(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){const t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){const t=this._baseState;return o(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(a){const o=e.save(),s=n.choice[a];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:a,value:n},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},l.prototype._encodeValue=function(e,t,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);let a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(e,s,n,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},l.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,n){"use strict";const r=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}n.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,n){"use strict";function r(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=r(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=r(n.tag)},{}],177:[function(e,t,n){"use strict";const r=n;r._reverse=function(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t},r.der=e("./der")},{"./der":176}],178:[function(e,t,n){"use strict";const r=e("inherits"),i=e("bn.js"),a=e("../base/buffer").DecoderBuffer,o=e("../base/node"),s=e("../constants/der");function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,"der",e)}function u(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=s.tagClass[n>>6],i=!(32&n);if(31&~n)n&=31;else{let r=n;for(n=0;!(128&~r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function h(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(!(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;t<i;t++){r<<=8;const t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}t.exports=c,c.prototype.decode=function(e,t){return a.isDecoderBuffer(e)||(e=new a(e,t)),this.tree._decode(e,t)},r(l,o),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){const r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let i=h(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){const n=u(e,t);if(e.isError(n))return n;const r=h(e,n.primitive,t);if(e.isError(r))return r;let i;if(i=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const a=n.decode(e,"der",r);if(e.isError(a)&&t)break;i.push(a)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){let r;const i=[];let a=0,o=0;for(;!e.isEmpty();)o=e.readUInt8(),a<<=7,a|=127&o,!(128&o)&&(i.push(a),a=0);128&o&&i.push(a);const s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},l.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,i,a,o,s,c;if("gentime"===t)r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,c,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){const n=e.raw();let r=new i(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,n){"use strict";const r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,n){"use strict";const r=e("inherits"),i=e("safer-buffer").Buffer,a=e("./der");function o(e){a.call(this,e),this.enc="pem"}r(o,a),t.exports=o,o.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,c=-1;for(let e=0;e<n.length;e++){const t=n[e].match(o);if(null!==t&&t[2]===r){if(-1!==s){if("END"!==t[1])break;c=e;break}if("BEGIN"!==t[1])break;s=e}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);const l=n.slice(s+1,c).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const u=i.from(l,"base64");return a.prototype.decode.call(this,u,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,n){"use strict";const r=e("inherits"),i=e("safer-buffer").Buffer,a=e("../base/node"),o=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function l(e){return e<10?"0"+e:e}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,a),c.prototype._encodeComposite=function(e,t,n,r){const a=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=o.tagClassByName[n||"universal"]<<6,i)}(e,t,n,this.reporter);if(r.length<128){const e=i.alloc(2);return e[0]=a,e[1]=r.length,this._createEncoderBuffer([e,r])}let s=1;for(let e=r.length;e>=256;e>>=8)s++;const c=i.alloc(2+s);c[0]=a,c[1]=128|s;for(let e=1+s,t=r.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t<e.length;t++){let n=e[t];for(r++;n>=128;n>>=7)r++}const a=i.alloc(r);let o=a.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(a[o--]=127&n;(n>>=7)>0;)a[o--]=128|127&n}return this._createEncoderBuffer(a)},c.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=i.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const r=new Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const a=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==r.defaultBuffer[i])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,n){"use strict";const r=n;r.der=e("./der"),r.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,n){"use strict";const r=e("inherits"),i=e("./der");function a(e){i.call(this,e),this.enc="pem"}r(a,i),t.exports=a,a.prototype.encode=function(e,t){const n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let e=0;e<n.length;e+=64)r.push(n.slice(e,e+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,n){"use strict";!function(t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function o(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var h=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)h*=t;this.imuln(h),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,h=67108863&c,f=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=f;d++){var p=l-d|0;u+=(o=(i=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);r=0!=(a=s>>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],d=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(d).toString(e);r=(p=p.idivn(d)).isZero()?g+r:l[f-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,l=new e(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[s]=o;for(;s<a;s++)l[s]=0}else{for(s=0;s<a-i;s++)l[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[a-s-1]=o}return l},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(!(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(!(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(!(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var d=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],h=8191&u,f=u>>>13,d=0|o[1],p=8191&d,g=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,A=0|o[3],b=8191&A,w=A>>>13,x=0|o[4],C=8191&x,_=x>>>13,I=0|o[5],E=8191&I,k=I>>>13,S=0|o[6],B=8191&S,M=S>>>13,T=0|o[7],O=8191&T,D=T>>>13,P=0|o[8],L=8191&P,Q=P>>>13,R=0|o[9],j=8191&R,N=R>>>13,F=0|s[0],z=8191&F,H=F>>>13,U=0|s[1],G=8191&U,V=U>>>13,W=0|s[2],q=8191&W,Y=W>>>13,K=0|s[3],$=8191&K,J=K>>>13,X=0|s[4],Z=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],he=8191&ue,fe=ue>>>13,de=0|s[9],pe=8191&de,ge=de>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;l=((a=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,a=Math.imul(g,H);var ve=(l+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,G)|0))<<13)|0;l=((a=a+Math.imul(f,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(y,z)|0,a=Math.imul(y,H),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,G)|0,a=a+Math.imul(g,V)|0;var ye=(l+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,q)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,z),i=(i=Math.imul(b,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,V)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,Y)|0;var Ae=(l+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(_,z)|0,a=Math.imul(_,H),r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,V)|0,r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,J)|0;var be=(l+(r=r+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(f,Z)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,V)|0,r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,J)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Z)|0,a=a+Math.imul(g,ee)|0;var we=(l+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(M,z)|0,a=Math.imul(M,H),r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,V)|0,r=r+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,J)|0,r=r+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var xe=(l+(r=r+Math.imul(h,ae)|0)|0)+((8191&(i=(i=i+Math.imul(h,oe)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(D,z)|0,a=Math.imul(D,H),r=r+Math.imul(B,G)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,J)|0,r=r+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Ce=(l+(r=r+Math.imul(h,ce)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(Q,z)|0,a=Math.imul(Q,H),r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,V)|0,r=r+Math.imul(B,q)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,Y)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,J)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(g,ce)|0,a=a+Math.imul(g,le)|0;var _e=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(N,z)|0,a=Math.imul(N,H),r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(Q,G)|0,a=a+Math.imul(Q,V)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,J)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,he)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,he)|0,a=a+Math.imul(g,fe)|0;var Ie=(l+(r=r+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ge)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,V))+Math.imul(N,G)|0,a=Math.imul(N,V),r=r+Math.imul(L,q)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(Q,q)|0,a=a+Math.imul(Q,Y)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(v,he)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,he)|0,a=a+Math.imul(y,fe)|0;var Ee=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;l=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,Y))+Math.imul(N,q)|0,a=Math.imul(N,Y),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(Q,$)|0,a=a+Math.imul(Q,J)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(B,ne)|0,i=(i=i+Math.imul(B,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,fe)|0)+Math.imul(w,he)|0,a=a+Math.imul(w,fe)|0;var ke=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,J))+Math.imul(N,$)|0,a=Math.imul(N,J),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(Q,Z)|0,a=a+Math.imul(Q,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(C,he)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(_,he)|0,a=a+Math.imul(_,fe)|0;var Se=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ge)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(N,Z)|0,a=Math.imul(N,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(Q,ne)|0,a=a+Math.imul(Q,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(E,he)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,he)|0,a=a+Math.imul(k,fe)|0;var Be=(l+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(_,pe)|0))<<13)|0;l=((a=a+Math.imul(_,ge)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(N,ne)|0,a=Math.imul(N,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(Q,ae)|0,a=a+Math.imul(Q,oe)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(B,he)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(M,he)|0,a=a+Math.imul(M,fe)|0;var Me=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(N,ae)|0,a=Math.imul(N,oe),r=r+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(Q,ce)|0,a=a+Math.imul(Q,le)|0,r=r+Math.imul(O,he)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(D,he)|0,a=a+Math.imul(D,fe)|0;var Te=(l+(r=r+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(M,pe)|0))<<13)|0;l=((a=a+Math.imul(M,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),i=(i=Math.imul(j,le))+Math.imul(N,ce)|0,a=Math.imul(N,le),r=r+Math.imul(L,he)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(Q,he)|0,a=a+Math.imul(Q,fe)|0;var Oe=(l+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,ge)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,he),i=(i=Math.imul(j,fe))+Math.imul(N,he)|0,a=Math.imul(N,fe);var De=(l+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ge)|0)+Math.imul(Q,pe)|0))<<13)|0;l=((a=a+Math.imul(Q,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Pe=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ge))+Math.imul(N,pe)|0))<<13)|0;return l=((a=Math.imul(N,ge))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=me,c[1]=ve,c[2]=ye,c[3]=Ae,c[4]=be,c[5]=we,c[6]=xe,c[7]=Ce,c[8]=_e,c[9]=Ie,c[10]=Ee,c[11]=ke,c[12]=Se,c[13]=Be,c[14]=Me,c[15]=Te,c[16]=Oe,c[17]=De,c[18]=Pe,0!==l&&(c[19]=l,n.length++),n};function p(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(d=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,h=(0|e.words[u])*(0|t.words[l]),f=67108863&h;s=67108863&(f=f+s|0),i+=(o=(o=o+(h/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},g.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var h=c,f=l,d=0;d<o;d++){var p=n[u+d],g=r[u+d],m=n[u+d+o],v=r[u+d+o],y=h*m-f*v;v=h*v+f*m,m=y,n[u+d]=p+m,r[u+d]=g+v,n[u+d+o]=p-m,r[u+d+o]=g-v,d!==s&&(y=c*h-l*f,f=c*f+l*h,h=y)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(!(-8192&a))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),h=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,h,r,i);for(var d=0;d<r;d++){var p=s[d]*u[d]-c[d]*h[d];c[d]=s[d]*h[d]+c[d]*u[d],s[d]=p}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<r;this.words[t]=c|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=r;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-a|h>>>a,u=h&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(a,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var h=c-1;h>=0;h--){var f=67108864*(0|r.words[a.length+h])+(0|r.words[a.length+h-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,h);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(a,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var f=0,d=1;!(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(h)),a.iushrn(1),o.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(h)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(c)):(r.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;!(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,f=1;!(r.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new x(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(y,v),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(A,v),r(b,v),r(w,v),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new A;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return m[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,a),f=this.pow(e,a.addn(1).iushrn(1)),d=this.pow(e,a),p=o;0!==d.cmp(s);){for(var g=d,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<p);var v=this.pow(h,new i(1).iushln(p-m-1));f=f.redMul(v),h=v.redSqr(),d=d.redMul(h),p=m}return f},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var h=l>>u&1;a!==n[0]&&(a=this.sqr(a)),0!==h||0!==o?(o<<=1,o|=h,(4==++s||0===r&&0===u)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new C(e)},r(C,x),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],185:[function(e,t,n){"use strict";n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=l(e),o=r[0],s=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],186:[function(e,t,n){"use strict";!function(t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function c(e,t,r,i){for(var a=0,o=0,s=Math.min(e.length,r),c=t;c<s;c++){var l=e.charCodeAt(c)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o<i,"Invalid character"),a+=o}return a}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=s(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var h=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)h*=t;this.imuln(h),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,h=67108863&c,f=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=f;d++){var p=l-d|0;u+=(o=(i=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==a||o!==this.length-1?h[6-c.length]+c+r:c+r}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modrn(u).toString(e);r=(p=p.idivn(u)).isZero()?g+r:h[l-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===a?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(!(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(!(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(!(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],h=8191&u,f=u>>>13,d=0|o[1],p=8191&d,g=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,A=0|o[3],b=8191&A,w=A>>>13,x=0|o[4],C=8191&x,_=x>>>13,I=0|o[5],E=8191&I,k=I>>>13,S=0|o[6],B=8191&S,M=S>>>13,T=0|o[7],O=8191&T,D=T>>>13,P=0|o[8],L=8191&P,Q=P>>>13,R=0|o[9],j=8191&R,N=R>>>13,F=0|s[0],z=8191&F,H=F>>>13,U=0|s[1],G=8191&U,V=U>>>13,W=0|s[2],q=8191&W,Y=W>>>13,K=0|s[3],$=8191&K,J=K>>>13,X=0|s[4],Z=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],he=8191&ue,fe=ue>>>13,de=0|s[9],pe=8191&de,ge=de>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;l=((a=Math.imul(f,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,a=Math.imul(g,H);var ve=(l+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,G)|0))<<13)|0;l=((a=a+Math.imul(f,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(y,z)|0,a=Math.imul(y,H),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,G)|0,a=a+Math.imul(g,V)|0;var ye=(l+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,q)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,z),i=(i=Math.imul(b,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,V)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,Y)|0;var Ae=(l+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(_,z)|0,a=Math.imul(_,H),r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,V)|0,r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,J)|0;var be=(l+(r=r+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(f,Z)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,V)|0,r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,J)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Z)|0,a=a+Math.imul(g,ee)|0;var we=(l+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(M,z)|0,a=Math.imul(M,H),r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,V)|0,r=r+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,Y)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,J)|0,r=r+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Z)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var xe=(l+(r=r+Math.imul(h,ae)|0)|0)+((8191&(i=(i=i+Math.imul(h,oe)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(D,z)|0,a=Math.imul(D,H),r=r+Math.imul(B,G)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,J)|0,r=r+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Ce=(l+(r=r+Math.imul(h,ce)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(Q,z)|0,a=Math.imul(Q,H),r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,V)|0,r=r+Math.imul(B,q)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,Y)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,J)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(g,ce)|0,a=a+Math.imul(g,le)|0;var _e=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(N,z)|0,a=Math.imul(N,H),r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(Q,G)|0,a=a+Math.imul(Q,V)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,J)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,he)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,he)|0,a=a+Math.imul(g,fe)|0;var Ie=(l+(r=r+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ge)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,V))+Math.imul(N,G)|0,a=Math.imul(N,V),r=r+Math.imul(L,q)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(Q,q)|0,a=a+Math.imul(Q,Y)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(v,he)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,he)|0,a=a+Math.imul(y,fe)|0;var Ee=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;l=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,Y))+Math.imul(N,q)|0,a=Math.imul(N,Y),r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(Q,$)|0,a=a+Math.imul(Q,J)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(B,ne)|0,i=(i=i+Math.imul(B,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,fe)|0)+Math.imul(w,he)|0,a=a+Math.imul(w,fe)|0;var ke=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,J))+Math.imul(N,$)|0,a=Math.imul(N,J),r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(Q,Z)|0,a=a+Math.imul(Q,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(C,he)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(_,he)|0,a=a+Math.imul(_,fe)|0;var Se=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ge)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(N,Z)|0,a=Math.imul(N,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(Q,ne)|0,a=a+Math.imul(Q,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(E,he)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(k,he)|0,a=a+Math.imul(k,fe)|0;var Be=(l+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(_,pe)|0))<<13)|0;l=((a=a+Math.imul(_,ge)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(N,ne)|0,a=Math.imul(N,re),r=r+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(Q,ae)|0,a=a+Math.imul(Q,oe)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(B,he)|0,i=(i=i+Math.imul(B,fe)|0)+Math.imul(M,he)|0,a=a+Math.imul(M,fe)|0;var Me=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(N,ae)|0,a=Math.imul(N,oe),r=r+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(Q,ce)|0,a=a+Math.imul(Q,le)|0,r=r+Math.imul(O,he)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(D,he)|0,a=a+Math.imul(D,fe)|0;var Te=(l+(r=r+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(M,pe)|0))<<13)|0;l=((a=a+Math.imul(M,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ce),i=(i=Math.imul(j,le))+Math.imul(N,ce)|0,a=Math.imul(N,le),r=r+Math.imul(L,he)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(Q,he)|0,a=a+Math.imul(Q,fe)|0;var Oe=(l+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,ge)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,he),i=(i=Math.imul(j,fe))+Math.imul(N,he)|0,a=Math.imul(N,fe);var De=(l+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ge)|0)+Math.imul(Q,pe)|0))<<13)|0;l=((a=a+Math.imul(Q,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863;var Pe=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ge))+Math.imul(N,pe)|0))<<13)|0;return l=((a=Math.imul(N,ge))+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=me,c[1]=ve,c[2]=ye,c[3]=Ae,c[4]=be,c[5]=we,c[6]=xe,c[7]=Ce,c[8]=_e,c[9]=Ie,c[10]=Ee,c[11]=ke,c[12]=Se,c[13]=Be,c[14]=Me,c[15]=Te,c[16]=Oe,c[17]=De,c[18]=Pe,0!==l&&(c[19]=l,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,h=(0|e.words[u])*(0|t.words[l]),f=67108863&h;s=67108863&(f=f+s|0),i+=(o=(o=o+(h/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function v(e,t,n){return m(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?p(this,e,t):n<1024?m(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},y.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var h=c,f=l,d=0;d<o;d++){var p=n[u+d],g=r[u+d],m=n[u+d+o],v=r[u+d+o],y=h*m-f*v;v=h*v+f*m,m=y,n[u+d]=p+m,r[u+d]=g+v,n[u+d+o]=p-m,r[u+d+o]=g-v,d!==s&&(y=c*h-l*f,f=c*f+l*h,h=y)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(!(-8192&a))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),h=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,h,r,i);for(var d=0;d<r;d++){var p=s[d]*u[d]-c[d]*h[d];c[d]=s[d]*h[d]+c[d]*u[d],s[d]=p}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&r);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<r;this.words[t]=c|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=r;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-a|h>>>a,u=h&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(a,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var h=c-1;h>=0;h--){var f=67108864*(0|r.words[a.length+h])+(0|r.words[a.length+h-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,h);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(a,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(r*i+(0|this.words[a]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*r;this.words[i]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var f=0,d=1;!(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(h)),a.iushrn(1),o.iushrn(1);for(var p=0,g=1;!(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(h)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(c)):(r.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;!(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,f=1;!(r.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new I(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(x,b),r(C,b),r(_,b),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(A[e])return A[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return A[e]=t,t},I.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},I.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,a),f=this.pow(e,a.addn(1).iushrn(1)),d=this.pow(e,a),p=o;0!==d.cmp(s);){for(var g=d,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<p);var v=this.pow(h,new i(1).iushln(p-m-1));f=f.redMul(v),h=v.redSqr(),d=d.redMul(h),p=m}return f},I.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},I.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var h=l>>u&1;a!==n[0]&&(a=this.sqr(a)),0!==h||0!==o?(o<<=1,o|=h,(4==++s||0===r&&0===u)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},r(E,I),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],187:[function(e,t,n){"use strict";var r;function i(e){this.rand=e}if(t.exports=function(e){return r||(r=new i(null)),r.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:188}],188:[function(e,t,n){},{}],189:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,c,l=n[0],u=n[1],h=n[2],f=n[3],d=e[0]^t[0],p=e[1]^t[1],g=e[2]^t[2],m=e[3]^t[3],v=4,y=1;y<i;y++)a=l[d>>>24]^u[p>>>16&255]^h[g>>>8&255]^f[255&m]^t[v++],o=l[p>>>24]^u[g>>>16&255]^h[m>>>8&255]^f[255&d]^t[v++],s=l[g>>>24]^u[m>>>16&255]^h[d>>>8&255]^f[255&p]^t[v++],c=l[m>>>24]^u[d>>>16&255]^h[p>>>8&255]^f[255&g]^t[v++],d=a,p=o,g=s,m=c;return a=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[g>>>8&255]<<8|r[255&m])^t[v++],o=(r[p>>>24]<<24|r[g>>>16&255]<<16|r[m>>>8&255]<<8|r[255&d])^t[v++],s=(r[g>>>24]<<24|r[m>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^t[v++],c=(r[m>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&g])^t[v++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[o]=l,r[l]=o;var u=e[o],h=e[u],f=e[h],d=257*e[l]^16843008*l;i[0][o]=d<<24|d>>>8,i[1][o]=d<<16|d>>>16,i[2][o]=d<<8|d>>>24,i[3][o]=d,d=16843009*f^65537*h^257*u^16843008*o,a[0][l]=d<<24|d>>>8,a[1][l]=d<<16|d>>>16,a[2][l]=d<<8|d>>>24,a[3][l]=d,0===o?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var l=[],u=0;u<r;u++){var h=r-u,f=i[h-(u%4?0:4)];l[u]=u<4||h<=4?f:c.INV_SUB_MIX[0][c.SBOX[f>>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=l},{"safe-buffer":494}],190:[function(e,t,n){"use strict";var r=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base"),o=e("inherits"),s=e("./ghash"),c=e("buffer-xor"),l=e("./incr32");function u(e,t,n,o){a.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(c);this._ghash=new s(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var c=8*a,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var h=i.from(e._finID);return l(h),h}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=u},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,n){"use strict";var r=e("./encrypter"),i=e("./decrypter"),a=e("./modes/list.json");n.createCipher=n.Cipher=r.createCipher,n.createCipheriv=n.Cipheriv=r.createCipheriv,n.createDecipher=n.Decipher=i.createDecipher,n.createDecipheriv=n.Decipheriv=i.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(a)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,n){"use strict";var r=e("./authCipher"),i=e("safe-buffer").Buffer,a=e("./modes"),o=e("./streamCipher"),s=e("cipher-base"),c=e("./aes"),l=e("evp_bytestokey");function u(e,t,n){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function f(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}e("inherits")(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=i.concat([this.cache,e])},h.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},n.createDecipheriv=f},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,n){"use strict";var r=e("./modes"),i=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./streamCipher"),s=e("cipher-base"),c=e("./aes"),l=e("evp_bytestokey");function u(e,t,n){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}e("inherits")(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var h=a.alloc(16,16);function f(){this.cache=a.allocUnsafe(0)}function d(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=a.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},n.createCipheriv=d,n.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(t,!1,n.key,n.iv);return d(e,i.key,i.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(!!(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=!!(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":494}],195:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},{}],196:[function(e,t,n){"use strict";var r=e("buffer-xor");n.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},n.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},{"buffer-xor":219}],197:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("buffer-xor");function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}n.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],199:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}n.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},{"safe-buffer":494}],200:[function(e,t,n){"use strict";var r=e("buffer-xor"),i=e("safe-buffer").Buffer,a=e("../incr32");function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}n.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=o(e),l=a+16*s;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,n){"use strict";n.encrypt=function(e,t){return e._cipher.encryptBlock(t)},n.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,n){"use strict";var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var a in i)i[a].module=r[i[a].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,n){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,n){(function(t){(function(){"use strict";var r=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}n.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var a=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,a)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,n){"use strict";var r=e("./aes"),i=e("safe-buffer").Buffer,a=e("cipher-base");function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}e("inherits")(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,n){"use strict";var r=e("browserify-des"),i=e("browserify-aes/browser"),a=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}n.createCipher=n.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},n.createCipheriv=n.Cipheriv=c,n.createDecipher=n.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},n.createDecipheriv=n.Decipheriv=l,n.listCiphers=n.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,n){"use strict";var r=e("cipher-base"),i=e("des.js"),a=e("inherits"),o=e("safe-buffer").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:a,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=c,a(c,r),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,n){"use strict";n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,n){(function(n){(function(){"use strict";var r=e("bn.js"),i=e("randombytes");function a(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var i=function(e){var t=a(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),o=t.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(t.modulus),c=s.toRed(r.mont(t.prime1)),l=s.toRed(r.mont(t.prime2)),u=t.coefficient,h=t.prime1,f=t.prime2,d=c.redPow(t.exponent1).fromRed(),p=l.redPow(t.exponent2).fromRed(),g=d.isub(p).imul(u).umod(h).imul(f);return p.iadd(g).imul(i.unblinder).umod(t.modulus).toArrayLike(n,"be",o)}o.getr=a,t.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,n){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,n){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,n){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("create-hash"),a=e("readable-stream"),o=e("inherits"),s=e("./sign"),c=e("./verify"),l=e("./algorithms.json");function u(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function d(e){return new h(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),o(u,a.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(h,a.Writable),h.prototype._write=function(e,t,n){this._hash.update(e),n()},h.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},h.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},t.exports={Sign:f,Verify:d,createSign:f,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("create-hmac"),a=e("browserify-rsa"),o=e("elliptic").ec,s=e("bn.js"),c=e("parse-asn1"),l=e("./curves.json");function u(e,t,n,a){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var s=n.length,c=function(e,t){e=(e=h(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),l=r.alloc(s);l.fill(1);var u=r.alloc(s);return u=i(a,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(a,u).update(l).digest(),{k:u=i(a,u).update(l).update(r.from([1])).update(e).update(c).digest(),v:l=i(a,u).update(l).digest()}}function h(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function f(e,t,n){var a,o;do{for(a=r.alloc(0);8*a.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),a=r.concat([a,t.v]);o=h(a,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function d(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}t.exports=function(e,t,n,i,p){var g=c(t);if(g.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,g)}if("dsa"===g.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){for(var i,a=t.params.priv_key,o=t.params.p,c=t.params.q,l=t.params.g,p=new s(0),g=h(e,c).mod(c),m=!1,v=u(a,c,e,n);!1===m;)p=d(l,i=f(c,v,n),o,c),0===(m=i.invm(c).imul(g.add(a.mul(p))).mod(c)).cmpn(0)&&(m=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(p,m)}(e,g,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([p,e]);for(var m=g.modulus.byteLength(),v=[0,1];e.length+v.length+1<m;)v.push(255);v.push(0);for(var y=-1;++y<e.length;)v.push(e[y]);return a(v,g)},t.exports.getKey=u,t.exports.makeKey=f},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("bn.js"),a=e("elliptic").ec,o=e("parse-asn1"),s=e("./curves.json");function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,n,l,u){var h=o(n);if("ec"===h.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,h)}if("dsa"===h.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,l=n.data.pub_key,u=o.signature.decode(e,"der"),h=u.s,f=u.r;c(h,a),c(f,a);var d=i.mont(r),p=h.invm(a);return 0===s.toRed(d).redPow(new i(t).mul(p).mod(a)).fromRed().mul(l.toRed(d).redPow(f.mul(p).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}(e,t,h)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=r.concat([u,t]);for(var f=h.modulus.byteLength(),d=[1],p=0;t.length+d.length+2<f;)d.push(255),p++;d.push(0);for(var g=-1;++g<t.length;)d.push(t[g]);d=r.from(d);var m=i.mont(h.modulus);e=(e=new i(e).toRed(m)).redPow(new i(h.publicExponent)),e=r.from(e.fromRed().toArray());var v=p<8?1:0;for(f=Math.min(e.length,d.length),e.length!==d.length&&(v=1),g=-1;++g<f;)v|=e[g]^d[g];return 0===v}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,n){},{}],217:[function(e,t,n){"use strict";var r=e("buffer"),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=h,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}n.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,n){(function(e){(function(){"use strict";t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),a=0;a<r;++a)i[a]=t[a]^n[a];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,n){(function(t){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
"use strict";var t=e("base64-js"),r=e("ieee754");function i(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return o(e,t,n)}function o(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=i(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=a.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var o=function(e){if(a.isBuffer(e)){var t=0|u(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||N(e.length)?i(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return s(e),i(e<0?0:0|u(e))}function l(e){for(var t=e.length<0?0:0|u(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function u(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return r?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),N(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,f=0;f<c;f++)if(l(e,a+f)!==l(t,f)){h=!1;break}if(h)return a}return-1}function m(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(N(s))return o;e[n+o]=s}return o}function v(e,t,n,r){return R(L(t,e.length-n),e,n,r)}function y(e,t,n,r){return R(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return y(e,t,n,r)}function b(e,t,n,r){return R(Q(t),e,n,r)}function w(e,t,n,r){return R(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function x(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function E(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=P(e[a]);return i}function k(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function S(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,n,i,a){return t=+t,n>>>=0,a||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function O(e,t,n,i,a){return t=+t,n>>>=0,a||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}n.Buffer=a,n.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return o(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(j(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):f.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),c=Math.min(o,s),l=this.slice(r,i),u=e.slice(t,n),h=0;h<c;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return p(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return p(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return b(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||S(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return e>>>=0,t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||S(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||S(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||S(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||S(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||S(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||S(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||B(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||B(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),c=s.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%c]}return this};var D=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Q(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function N(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=o},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,n){"use strict";var r=e("../internals/is-constructor"),i=e("../internals/try-to-string"),a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=String,a=TypeError;t.exports=function(e){if("object"==typeof e||r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/object-create"),a=e("../internals/object-define-property").f,o=r("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(e){s[o][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,n){"use strict";var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=String,a=TypeError;t.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var s,c=r(t),l=a(c),u=i(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),a=e("../internals/indexed-object"),o=e("../internals/to-object"),s=e("../internals/length-of-array-like"),c=e("../internals/array-species-create"),l=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,g,m,v){for(var y,A,b=o(p),w=a(b),x=r(g,m),C=s(w),_=0,I=v||c,E=t?I(p,C):n||f?I(p,0):void 0;C>_;_++)if((d||_ in w)&&(A=x(y=w[_],_,b),e))if(t)E[_]=A;else if(A)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:l(E,y)}else switch(e){case 4:return!1;case 7:l(E,y)}return h?-1:i||u?u:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,n){"use strict";var r=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),a=e("../internals/create-property"),o=Array,s=Math.max;t.exports=function(e,t,n){for(var c=i(e),l=r(t,c),u=r(void 0===n?c:n,c),h=o(s(u-l,0)),f=0;l<u;l++,f++)a(h,f,e[l]);return h.length=f,h}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,n){"use strict";var r=e("../internals/is-array"),i=e("../internals/is-constructor"),a=e("../internals/is-object"),o=e("../internals/well-known-symbol")("species"),s=Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,n){"use strict";var r=e("../internals/array-species-constructor");t.exports=function(e,t){return new(r(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol")("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},{"../internals/well-known-symbol":357}],235:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=r({}.toString),a=r("".slice);t.exports=function(e){return a(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,n){"use strict";var r=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),a=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("toStringTag"),s=Object,c="Arguments"===a(function(){return arguments}());t.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),o))?n:c?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),a=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var h=s[u];r(e,h)||n&&r(n,h)||c(e,h,l(t,h))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":260}],240:[function(e,t,n){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,n){"use strict";var r=e("../internals/to-property-key"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,n){"use strict";var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),a=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,n){"use strict";var r=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":260}],248:[function(e,t,n){"use strict";var r="object"==typeof document&&document.all,i=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:i}},{}],249:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-object"),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,n){"use strict";var r=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,n){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":256}],254:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(r.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,n){"use strict";var r=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":256}],256:[function(e,t,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,n){"use strict";var r,i,a=e("../internals/global"),o=e("../internals/engine-user-agent"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),s=e("../internals/define-global-property"),c=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");t.exports=function(e,t){var n,u,h,f,d,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],h=e.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!l(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(n,u,f,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],261:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),a=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-callable"),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,n){"use strict";var r=e("../internals/classof"),i=e("../internals/get-method"),a=e("../internals/is-null-or-undefined"),o=e("../internals/iterators"),s=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/a-callable"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),s=e("../internals/get-iterator-method"),c=TypeError;t.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),a=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/to-string"),c=r([].push);t.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!==o(l)&&"String"!==o(l)||c(n,s(l))}var u=n.length,h=!0;return function(e,t){if(h)return h=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,n,r){(function(e){(function(){"use strict";var t=function(e){return e&&e.Math===Math&&e};n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,n){"use strict";t.exports={}},{}],277:[function(e,t,n){"use strict";t.exports=function(e,t){}},{}],278:[function(e,t,n){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/document-create-element");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/classof-raw"),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),a=e("../internals/shared-store"),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),t.exports=a.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,n){"use strict";var r,i,a,o=e("../internals/weak-map-basic-detection"),s=e("../internals/global"),c=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),h=e("../internals/shared-store"),f=e("../internals/shared-key"),d=e("../internals/hidden-keys"),p=s.TypeError,g=s.WeakMap;if(o||h.state){var m=h.state||(h.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(e,t){if(m.has(e))throw new p("Object already initialized");return t.facade=e,m.set(e,t),t},i=function(e){return m.get(e)||{}},a=function(e){return m.has(e)}}else{var v=f("state");d[v]=!0,r=function(e,t){if(u(e,v))throw new p("Object already initialized");return t.facade=e,l(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}t.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),a=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,n){"use strict";var r=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===r(e)}},{"../internals/classof-raw":235}],285:[function(e,t,n){"use strict";var r=e("../internals/document-all"),i=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/classof"),s=e("../internals/get-built-in"),c=e("../internals/inspect-source"),l=function(){},u=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(l),g=function(e){if(!a(e))return!1;try{return h(l,u,e),!0}catch(e){return!1}},m=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,c(e))}catch(e){return!0}};m.sham=!0,t.exports=!h||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/is-callable"),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u||n!==l&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],289:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/document-all"),a=i.all;t.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,n){"use strict";t.exports=!1},{}],291:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),a=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),s=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),s=e("../internals/is-array-iterator-method"),c=e("../internals/length-of-array-like"),l=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),h=e("../internals/get-iterator-method"),f=e("../internals/iterator-close"),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;t.exports=function(e,t,n){var m,v,y,A,b,w,x,C=n&&n.that,_=!(!n||!n.AS_ENTRIES),I=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),S=r(t,C),B=function(e){return m&&f(m,"normal",e),new p(!0,e)},M=function(e){return _?(a(e),k?S(e[0],e[1],B):S(e[0],e[1])):k?S(e,B):S(e)};if(I)m=e.iterator;else if(E)m=e;else{if(!(v=h(e)))throw new d(o(e)+" is not iterable");if(s(v)){for(y=0,A=c(e);A>y;y++)if((b=M(e[y]))&&l(g,b))return b;return new p(!1)}m=u(e,v)}for(w=I?e.next:m.next;!(x=i(w,m)).done;){try{b=M(x.value)}catch(e){f(m,"throw",e)}if("object"==typeof b&&b&&l(g,b))return b}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),a=e("../internals/get-method");t.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw n;if(s)throw o;return i(o),n}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),s=e("../internals/iterators"),c=function(){return this};t.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=i(r,{next:a(+!l,n)}),o(e,u,!1,!0),s[u]=c,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/is-pure"),o=e("../internals/function-name"),s=e("../internals/is-callable"),c=e("../internals/iterator-create-constructor"),l=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),h=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),d=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),g=e("../internals/iterators"),m=e("../internals/iterators-core"),v=o.PROPER,y=o.CONFIGURABLE,A=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(e,t,n,o,p,m,C){c(n,t,o);var _,I,E,k=function(e){if(e===p&&O)return O;if(!b&&e&&e in M)return M[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",B=!1,M=e.prototype,T=M[w]||M["@@iterator"]||p&&M[p],O=!b&&T||k(p),D="Array"===t&&M.entries||T;if(D&&(_=l(D.call(new e)))!==Object.prototype&&_.next&&(a||l(_)===A||(u?u(_,A):s(_[w])||d(_,w,x)),h(_,S,!0,!0),a&&(g[S]=x)),v&&"values"===p&&T&&"values"!==T.name&&(!a&&y?f(M,"name","values"):(B=!0,O=function(){return i(T,this)})),p)if(I={values:k("values"),keys:m?O:k("keys"),entries:k("entries")},C)for(E in I)(b||B||!(E in M))&&d(M,E,I[E]);else r({target:t,proto:!0,forced:b||B},I);return a&&!C||M[w]===O||d(M,w,O,{name:p}),g[t]=O,I}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,n){"use strict";var r,i,a,o=e("../internals/fails"),s=e("../internals/is-callable"),c=e("../internals/is-object"),l=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),h=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),p=f("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(r=i):g=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=l(r)),s(r[p])||h(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,n){arguments[4][276][0].apply(n,arguments)},{dup:276}],299:[function(e,t,n){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":343}],300:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/has-own-property"),s=e("../internals/descriptors"),c=e("../internals/function-name").CONFIGURABLE,l=e("../internals/inspect-source"),u=e("../internals/internal-state"),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),A=String(String).split("String"),b=t.exports=function(e,t,n){"Symbol("===g(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return o(r,"source")||(r.source=v(A,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&f(this).source||l(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],302:[function(e,t,n){"use strict";var r,i,a,o,s,c=e("../internals/global"),l=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/task").set,f=e("../internals/queue"),d=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),g=e("../internals/engine-is-webos-webkit"),m=e("../internals/engine-is-node"),v=c.MutationObserver||c.WebKitMutationObserver,y=c.document,A=c.process,b=c.Promise,w=u(c,"queueMicrotask"),x=w&&w.value;if(!x){var C=new f,_=function(){var e,t;for(m&&(e=A.domain)&&e.exit();t=C.get();)try{t()}catch(e){throw C.head&&r(),e}e&&e.enter()};d||m||g||!v||!y?!p&&b&&b.resolve?((o=b.resolve(void 0)).constructor=b,s=l(o.then,o),r=function(){s(_)}):m?r=function(){A.nextTick(_)}:(h=l(h,c),r=function(){h(_)}):(i=!0,a=y.createTextNode(""),new v(_).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),x=function(e){C.head||r(),C.add(e)}}t.exports=x},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=TypeError,a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new a(e)}},{"../internals/a-callable":222}],304:[function(e,t,n){"use strict";var r=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),a=e("../internals/function-call"),o=e("../internals/fails"),s=e("../internals/object-keys"),c=e("../internals/object-get-own-property-symbols"),l=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),h=e("../internals/indexed-object"),f=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!f||o((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var n=u(e),i=arguments.length,o=1,f=c.f,d=l.f;i>o;)for(var g,m=h(arguments[o++]),v=f?p(s(m),f(m)):s(m),y=v.length,A=0;y>A;)g=v[A++],r&&!a(d,m,g)||(n[g]=m[g]);return n}:f},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,n){"use strict";var r,i=e("../internals/an-object"),a=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),c=e("../internals/html"),l=e("../internals/document-create-element"),u=e("../internals/shared-key")("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?d(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[u]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[u]=e):n=p(),void 0===t?n:a.f(n,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),a=e("../internals/object-define-property"),o=e("../internals/an-object"),s=e("../internals/to-indexed-object"),c=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=c(t),l=i.length,u=0;l>u;)a.f(e,n=i[u++],r[n]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),a=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),s=e("../internals/to-property-key"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;n.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-call"),a=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),s=e("../internals/to-indexed-object"),c=e("../internals/to-property-key"),l=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;n.f=r?h:function(e,t){if(e=s(e),t=c(t),u)try{return h(e,t)}catch(e){}if(l(e,t))return o(!i(a.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),a=e("../internals/object-get-own-property-names").f,o=e("../internals/array-slice-simple"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return a(e)}catch(e){return o(s)}}(e):a(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),a=e("../internals/to-object"),o=e("../internals/shared-key"),s=e("../internals/correct-prototype-getter"),c=o("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),a=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,s=e("../internals/hidden-keys"),c=r([].push);t.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);for(;t.length>l;)i(r,n=t[l++])&&(~o(u,n)||c(u,n));return u}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);n.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],318:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),a=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/function-uncurry-this"),o=e("../internals/object-get-prototype-of"),s=e("../internals/object-keys"),c=e("../internals/to-indexed-object"),l=a(e("../internals/object-property-is-enumerable").f),u=a([].push),h=r&&i((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),f=function(e){return function(t){for(var n,i=c(t),a=s(i),f=h&&null===o(i),d=a.length,p=0,g=[];d>p;)n=a[p++],r&&!(f?n in i:l(i,n))||u(g,e?[n,i[n]]:i[n]);return g}};t.exports={entries:f(!0),values:f(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),a=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),a=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/an-object"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,n){"use strict";var r=e("../internals/global");t.exports=r},{"../internals/global":274}],323:[function(e,t,n){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/promise-native-constructor"),a=e("../internals/is-callable"),o=e("../internals/is-forced"),s=e("../internals/inspect-source"),c=e("../internals/well-known-symbol"),l=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),h=e("../internals/is-pure"),f=e("../internals/engine-v8-version"),d=i&&i.prototype,p=c("species"),g=!1,m=a(r.PromiseRejectionEvent),v=o("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(h&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(g=n.then((function(){}))instanceof r))return!0}return!t&&(l||u)&&!m}));t.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:g}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,n){"use strict";var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":274}],326:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/is-object"),a=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,n){"use strict";var r=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=a||!i((function(e){r.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=r},{}],329:[function(e,t,n){"use strict";var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),a=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),s=a("species");t.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,n){"use strict";var r=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,n){"use strict";var r=e("../internals/shared"),i=e("../internals/uid"),a=r("keys");t.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/define-global-property"),a=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=a},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,n){"use strict";var r=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/a-constructor"),a=e("../internals/is-null-or-undefined"),o=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||a(n=r(s)[o])?t:i(n)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,n){"use strict";var r=e("../internals/engine-v8-version"),i=e("../internals/fails"),a=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/get-built-in"),a=e("../internals/well-known-symbol"),o=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,(function(e){return r(n,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,n){"use strict";var r,i,a,o,s=e("../internals/global"),c=e("../internals/function-apply"),l=e("../internals/function-bind-context"),u=e("../internals/is-callable"),h=e("../internals/has-own-property"),f=e("../internals/fails"),d=e("../internals/html"),p=e("../internals/array-slice"),g=e("../internals/document-create-element"),m=e("../internals/validate-arguments-length"),v=e("../internals/engine-is-ios"),y=e("../internals/engine-is-node"),A=s.setImmediate,b=s.clearImmediate,w=s.process,x=s.Dispatch,C=s.Function,_=s.MessageChannel,I=s.String,E=0,k={};f((function(){r=s.location}));var S=function(e){if(h(k,e)){var t=k[e];delete k[e],t()}},B=function(e){return function(){S(e)}},M=function(e){S(e.data)},T=function(e){s.postMessage(I(e),r.protocol+"//"+r.host)};A&&b||(A=function(e){m(arguments.length,1);var t=u(e)?e:C(e),n=p(arguments,1);return k[++E]=function(){c(t,void 0,n)},i(E),E},b=function(e){delete k[e]},y?i=function(e){w.nextTick(B(e))}:x&&x.now?i=function(e){x.now(B(e))}:_&&!v?(o=(a=new _).port2,a.port1.onmessage=M,i=l(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(T)?(i=T,s.addEventListener("message",M,!1)):i="onreadystatechange"in g("script")?function(e){d.appendChild(g("script")).onreadystatechange=function(){d.removeChild(this),S(e)}}:function(e){setTimeout(B(e),0)}),t.exports={set:A,clear:b}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.max,a=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,n){"use strict";var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,n){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":301}],343:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,n){"use strict";var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-object"),a=e("../internals/is-symbol"),o=e("../internals/get-method"),s=e("../internals/ordinary-to-primitive"),c=e("../internals/well-known-symbol"),l=TypeError,u=c("toPrimitive");t.exports=function(e,t){if(!i(e)||a(e))return e;var n,c=o(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||a(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,n){"use strict";var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":357}],348:[function(e,t,n){"use strict";var r=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":236}],349:[function(e,t,n){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],350:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=0,a=Math.random(),o=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,n){"use strict";var r=TypeError;t.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},{}],354:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/is-callable"),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,n){"use strict";var r=e("../internals/path"),i=e("../internals/has-own-property"),a=e("../internals/well-known-symbol-wrapped"),o=e("../internals/object-define-property").f;t.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol");n.f=r},{"../internals/well-known-symbol":357}],357:[function(e,t,n){"use strict";var r=e("../internals/global"),i=e("../internals/shared"),a=e("../internals/has-own-property"),o=e("../internals/uid"),s=e("../internals/symbol-constructor-detection"),c=e("../internals/use-symbol-as-uid"),l=r.Symbol,u=i("wks"),h=c?l.for||l:l&&l.withoutSetter||o;t.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:h("Symbol."+e)),u[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-iteration").findIndex,a=e("../internals/add-to-unscopables"),o=!0;"findIndex"in[]&&Array(1).findIndex((function(){o=!1})),r({target:"Array",proto:!0,forced:o},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-iteration").find,a=e("../internals/add-to-unscopables"),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/array-includes").includes,a=e("../internals/fails"),o=e("../internals/add-to-unscopables");r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),a=e("../internals/iterators"),o=e("../internals/internal-state"),s=e("../internals/object-define-property").f,c=e("../internals/iterator-define"),l=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),h=e("../internals/descriptors"),f=o.set,d=o.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,l(void 0,!0);switch(n){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var p=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!u&&h&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/function-apply"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),c=e("../internals/fails"),l=e("../internals/is-callable"),u=e("../internals/is-symbol"),h=e("../internals/array-slice"),f=e("../internals/get-json-replacer-function"),d=e("../internals/symbol-constructor-detection"),p=String,g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),A=s("".replace),b=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,_=!d||c((function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),I=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),E=function(e,t){var n=h(arguments),r=f(t);if(l(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(l(r)&&(t=o(r,this,p(e),t)),!u(t))return t},a(g,null,n)},k=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(x,e)&&!m(C,i)||m(C,e)&&!m(x,r)?"\\u"+b(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:_||I},{stringify:function(e,t,n){var r=h(arguments),i=a(_?E:g,null,r);return I&&"string"==typeof i?A(i,w,k):i}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,n){"use strict";e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/object-assign");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),a=e("../internals/fails"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/to-object");r({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/to-object"),a=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")((function(){a(1)}))},{keys:function(e){return a(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/object-to-array").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),s=e("../internals/perform"),c=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),o=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,i(n,t,e).then((function(e){c||(c=!0,o[a]=e,--u||r(o))}),l)})),--u||r(o)}));return u.error&&l(u.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,o=e("../internals/promise-native-constructor"),s=e("../internals/get-built-in"),c=e("../internals/is-callable"),l=e("../internals/define-built-in"),u=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(o)){var h=s("Promise").prototype.catch;u.catch!==h&&l(u,"catch",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,n){"use strict";var r,i,a,o=e("../internals/export"),s=e("../internals/is-pure"),c=e("../internals/engine-is-node"),l=e("../internals/global"),u=e("../internals/function-call"),h=e("../internals/define-built-in"),f=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),g=e("../internals/a-callable"),m=e("../internals/is-callable"),v=e("../internals/is-object"),y=e("../internals/an-instance"),A=e("../internals/species-constructor"),b=e("../internals/task").set,w=e("../internals/microtask"),x=e("../internals/host-report-errors"),C=e("../internals/perform"),_=e("../internals/queue"),I=e("../internals/internal-state"),E=e("../internals/promise-native-constructor"),k=e("../internals/promise-constructor-detection"),S=e("../internals/new-promise-capability"),B=k.CONSTRUCTOR,M=k.REJECTION_EVENT,T=k.SUBCLASSING,O=I.getterFor("Promise"),D=I.set,P=E&&E.prototype,L=E,Q=P,R=l.TypeError,j=l.document,N=l.process,F=S.f,z=F,H=!!(j&&j.createEvent&&l.dispatchEvent),U=function(e){var t;return!(!v(e)||!m(t=e.then))&&t},G=function(e,t){var n,r,i,a=t.value,o=1===t.state,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{s?(o||(2===t.rejection&&K(t),t.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),h&&(h.exit(),i=!0)),n===e.promise?l(new R("Promise-chain cycle")):(r=U(n))?u(r,n,c,l):c(n)):l(a)}catch(e){h&&!i&&h.exit(),l(e)}},V=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)G(n,e);e.notified=!1,t&&!e.rejection&&q(e)})))},W=function(e,t,n){var r,i;H?((r=j.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!M&&(i=l["on"+e])?i(r):"unhandledrejection"===e&&x("Unhandled promise rejection",n)},q=function(e){u(b,l,(function(){var t,n=e.facade,r=e.value;if(Y(e)&&(t=C((function(){c?N.emit("unhandledRejection",r,n):W("unhandledrejection",n,r)})),e.rejection=c||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},K=function(e){u(b,l,(function(){var t=e.facade;c?N.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},$=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},X=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var r=U(t);r?w((function(){var n={done:!1};try{u(r,t,$(X,n,e),$(J,n,e))}catch(t){J(n,t,e)}})):(e.value=t,e.state=1,V(e,!1))}catch(t){J({done:!1},t,e)}}};if(B&&(Q=(L=function(e){y(this,Q),g(e),u(r,this);var t=O(this);try{e($(X,t),$(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){D(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=h(Q,"then",(function(e,t){var n=O(this),r=F(A(this,L));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=c?N.domain:void 0,0===n.state?n.reactions.add(r):w((function(){G(r,n)})),r.promise})),i=function(){var e=new r,t=O(e);this.promise=e,this.resolve=$(X,t),this.reject=$(J,t)},S.f=F=function(e){return e===L||void 0===e?new i(e):z(e)},!s&&m(E)&&P!==Object.prototype)){a=P.then,T||h(P,"then",(function(e,t){var n=this;return new L((function(e,t){u(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete P.constructor}catch(e){}f&&f(P,Q)}o({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:L}),d(L,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),o=e("../internals/fails"),s=e("../internals/get-built-in"),c=e("../internals/is-callable"),l=e("../internals/species-constructor"),u=e("../internals/promise-resolve"),h=e("../internals/define-built-in"),f=a&&a.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&c(a)){var d=s("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,n){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),s=e("../internals/perform"),c=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,n=o.f(t),r=n.reject,l=s((function(){var o=a(t.resolve);c(e,(function(e){i(o,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),a=e("../internals/new-promise-capability");r({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=a.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,c=e("../internals/promise-resolve"),l=i("Promise"),u=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?o:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/to-absolute-index"),o=RangeError,s=String.fromCharCode,c=String.fromCodePoint,l=i([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new o(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-uncurry-this"),a=e("../internals/not-a-regexp"),o=e("../internals/require-object-coercible"),s=e("../internals/to-string"),c=e("../internals/correct-is-regexp-logic"),l=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,n){"use strict";e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global"),a=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-pure"),c=e("../internals/descriptors"),l=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),h=e("../internals/has-own-property"),f=e("../internals/object-is-prototype-of"),d=e("../internals/an-object"),p=e("../internals/to-indexed-object"),g=e("../internals/to-property-key"),m=e("../internals/to-string"),v=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),A=e("../internals/object-keys"),b=e("../internals/object-get-own-property-names"),w=e("../internals/object-get-own-property-names-external"),x=e("../internals/object-get-own-property-symbols"),C=e("../internals/object-get-own-property-descriptor"),_=e("../internals/object-define-property"),I=e("../internals/object-define-properties"),E=e("../internals/object-property-is-enumerable"),k=e("../internals/define-built-in"),S=e("../internals/define-built-in-accessor"),B=e("../internals/shared"),M=e("../internals/shared-key"),T=e("../internals/hidden-keys"),O=e("../internals/uid"),D=e("../internals/well-known-symbol"),P=e("../internals/well-known-symbol-wrapped"),L=e("../internals/well-known-symbol-define"),Q=e("../internals/symbol-define-to-primitive"),R=e("../internals/set-to-string-tag"),j=e("../internals/internal-state"),N=e("../internals/array-iteration").forEach,F=M("hidden"),z=j.set,H=j.getterFor("Symbol"),U=Object.prototype,G=i.Symbol,V=G&&G.prototype,W=i.RangeError,q=i.TypeError,Y=i.QObject,K=C.f,$=_.f,J=w.f,X=E.f,Z=o([].push),ee=B("symbols"),te=B("op-symbols"),ne=B("wks"),re=!Y||!Y.prototype||!Y.prototype.findChild,ie=function(e,t,n){var r=K(U,t);r&&delete U[t],$(e,t,n),r&&e!==U&&$(U,t,r)},ae=c&&u((function(){return 7!==y($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?ie:$,oe=function(e,t){var n=ee[e]=y(V);return z(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),d(e);var r=g(t);return d(n),h(ee,r)?(n.enumerable?(h(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(e,F)||$(e,F,v(1,{})),e[F][r]=!0),ae(e,r,n)):$(e,r,n)},ce=function(e,t){d(e);var n=p(t),r=A(n).concat(fe(n));return N(r,(function(t){c&&!a(le,n,t)||se(e,t,n[t])})),e},le=function(e){var t=g(e),n=a(X,this,t);return!(this===U&&h(ee,t)&&!h(te,t))&&(!(n||!h(this,t)||!h(ee,t)||h(this,F)&&this[F][t])||n)},ue=function(e,t){var n=p(e),r=g(t);if(n!==U||!h(ee,r)||h(te,r)){var i=K(n,r);return!i||!h(ee,r)||h(n,F)&&n[F][r]||(i.enumerable=!0),i}},he=function(e){var t=J(p(e)),n=[];return N(t,(function(e){h(ee,e)||h(T,e)||Z(n,e)})),n},fe=function(e){var t=e===U,n=J(t?te:p(e)),r=[];return N(n,(function(e){!h(ee,e)||t&&!h(U,e)||Z(r,ee[e])})),r};l||(k(V=(G=function(){if(f(V,this))throw new q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=O(e),n=function(e){this===U&&a(n,te,e),h(this,F)&&h(this[F],t)&&(this[F][t]=!1);var r=v(1,e);try{ae(this,t,r)}catch(e){if(!(e instanceof W))throw e;ie(this,t,r)}};return c&&re&&ae(U,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return H(this).tag})),k(G,"withoutSetter",(function(e){return oe(O(e),e)})),E.f=le,_.f=se,I.f=ce,C.f=ue,b.f=w.f=he,x.f=fe,P.f=function(e){return oe(D(e),e)},c&&(S(V,"description",{configurable:!0,get:function(){return H(this).description}}),s||k(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),N(A(ne),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he}),Q(),R(G,"Symbol"),T[F]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/get-built-in"),a=e("../internals/has-own-property"),o=e("../internals/to-string"),s=e("../internals/shared"),c=e("../internals/symbol-registry-detection"),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(a(l,t))return l[t];var n=i("Symbol")(t);return l[t]=n,u[n]=t,n}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,n){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/has-own-property"),a=e("../internals/is-symbol"),o=e("../internals/try-to-string"),s=e("../internals/shared"),c=e("../internals/symbol-registry-detection"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw new TypeError(o(e)+" is not a symbol");if(i(l,e))return l[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,n){(function(n){(function(){"use strict";var r=e("elliptic"),i=e("bn.js");t.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var a=new n(r-i.length);a.fill(0),i=n.concat([a,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],386:[function(e,t,n){"use strict";var r=e("inherits"),i=e("md5.js"),a=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,n){"use strict";var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":450}],388:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./legacy"),a=e("cipher-base"),o=e("safe-buffer").Buffer,s=e("create-hash/md5"),c=e("ripemd160"),l=e("sha.js"),u=o.alloc(128);function h(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(h,a),h.prototype._update=function(e){this._hash.update(e)},h.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new h("rmd160",t):"md5"===e?new i(s,t):new h(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,n){"use strict";var r=e("inherits"),i=e("safe-buffer").Buffer,a=e("cipher-base"),o=i.alloc(128);function s(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,a),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=s},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,n){"use strict";n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e("randombytes"),n.createHash=n.Hash=e("create-hash"),n.createHmac=n.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);n.getHashes=function(){return a};var o=e("pbkdf2");n.pbkdf2=o.pbkdf2,n.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");n.Cipher=s.Cipher,n.createCipher=s.createCipher,n.Cipheriv=s.Cipheriv,n.createCipheriv=s.createCipheriv,n.Decipher=s.Decipher,n.createDecipher=s.createDecipher,n.Decipheriv=s.Decipheriv,n.createDecipheriv=s.createDecipheriv,n.getCiphers=s.getCiphers,n.listCiphers=s.listCiphers;var c=e("diffie-hellman");n.DiffieHellmanGroup=c.DiffieHellmanGroup,n.createDiffieHellmanGroup=c.createDiffieHellmanGroup,n.getDiffieHellman=c.getDiffieHellman,n.createDiffieHellman=c.createDiffieHellman,n.DiffieHellman=c.DiffieHellman;var l=e("browserify-sign");n.createSign=l.createSign,n.Sign=l.Sign,n.createVerify=l.createVerify,n.Verify=l.Verify,n.createECDH=e("create-ecdh");var u=e("public-encrypt");n.publicEncrypt=u.publicEncrypt,n.privateEncrypt=u.privateEncrypt,n.publicDecrypt=u.publicDecrypt,n.privateDecrypt=u.privateDecrypt;var h=e("randomfill");n.randomFill=h.randomFill,n.randomFillSync=h.randomFillSync,n.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,n){"use strict";!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=r()}(void 0,(function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",a="hour",o="day",s="week",c="month",l="quarter",u="year",h="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),a=n-i<0,o=t.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:s,d:o,D:h,h:a,m:i,s:r,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",A={};A[y]=g;var b="$isDayjsObject",w=function(e){return e instanceof I||!(!e||!e[b])},x=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();A[a]&&(i=a),n&&(A[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;A[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new I(n)},_=v;_.l=x,_.i=w,_.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return _},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return C(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<C(e)},m.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,l=!!_.u(t)||t,f=_.p(e),d=function(e,t){var r=_.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(o)},p=function(e,t){return _.w(n.toDate()[e].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case u:return l?d(1,0):d(31,11);case c:return l?d(1,m):d(0,m+1);case s:var A=this.$locale().weekStart||0,b=(g<A?g+7:g)-A;return d(l?v-b:v+(6-b),m);case o:case h:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var s,l=_.p(e),f="set"+(this.$u?"UTC":""),d=(s={},s[o]=f+"Date",s[h]=f+"Date",s[c]=f+"Month",s[u]=f+"FullYear",s[a]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[l],p=l===o?this.$D+(t-this.$W):t;if(l===c||l===u){var g=this.clone().set(h,1);g.$d[d](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[_.p(e)]()},m.add=function(n,l){var h,f=this;n=Number(n);var d=_.p(l),p=function(e){var t=C(f);return _.w(t.date(t.date()+Math.round(e*n)),f)};if(d===c)return this.set(c,this.$M+n);if(d===u)return this.set(u,this.$y+n);if(d===o)return p(1);if(d===s)return p(7);var g=(h={},h[i]=e,h[a]=t,h[r]=1e3,h)[d]||1,m=this.$d.getTime()+n*g;return _.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,h=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},d=function(e){return _.s(a%12||12,e,"0")},g=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return s+1;case"MM":return _.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return _.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return _.s(o,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,f){var d,p=this,g=_.p(h),m=C(n),v=(m.utcOffset()-this.utcOffset())*e,y=this-m,A=function(){return _.m(p,m)};switch(g){case u:d=A()/12;break;case c:d=A();break;case l:d=A()/3;break;case s:d=(y-v)/6048e5;break;case o:d=(y-v)/864e5;break;case a:d=y/t;break;case i:d=y/e;break;case r:d=y/1e3;break;default:d=y}return f?d:_.a(d)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return A[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return _.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),E=I.prototype;return C.prototype=E,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",o],["$M",c],["$y",u],["$D",h]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,I,C),e.$i=!0),C},C.locale=x,C.isDayjs=w,C.unix=function(e){return C(1e3*e)},C.en=A[y],C.Ls=A,C.p={},C}))},{}],392:[function(e,t,n){"use strict";!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=r()}(void 0,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=h[l],f=u&&u[0],d=u&&u[1];o[c]=d?{regex:f,parser:d}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var c=!0===o[2],l=!0===o[3],u=c||l,h=o[2];l&&(h=o[2]),a=this.$locale(),!c&&h&&(a=n.Ls[h]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,h=r.zone,d=new Date,p=o||(i||a?1:d.getDate()),g=i||d.getFullYear(),m=0;i&&!a||(m=a>0?a-1:d.getMonth());var v=s||0,y=c||0,A=l||0,b=u||0;return h?new Date(Date.UTC(g,m,p,v,y,A,b+60*h.offset*1e3)):n?new Date(Date.UTC(g,m,p,v,y,A,b)):new Date(g,m,p,v,y,A,b)}catch(e){return new Date("")}}(t,s,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var d=s.length,p=1;p<=d;p+=1){o[1]=s[p-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===d&&(this.$d=new Date(""))}else i.call(this,e)}}}))},{}],393:[function(e,t,n){"use strict";!function(e,r){"object"==typeof n&&void 0!==t?t.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=r()}(void 0,(function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r)))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=0===r,s;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))},{}],394:[function(e,t,n){"use strict";n.utils=e("./des/utils"),n.Cipher=e("./des/cipher"),n.DES=e("./des/des"),n.CBC=e("./des/cbc"),n.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits"),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}n.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];for(a._update.call(this,o,0,n,r),s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{for(a._update.call(this,e,t,n,r),s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,n){"use strict";var r=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits"),a=e("./utils"),o=e("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function c(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,o),t.exports=c,c.create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=l[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},c.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];a.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var h=a.substitute(l,u),f=s;s=(o^a.permute(h))>>>0,o=f}a.rip(s,o,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];a.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var h=a.substitute(l,u),f=o;o=(s^a.permute(h))>>>0,s=f}a.rip(o,s,r,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits"),a=e("./cipher"),o=e("./des");function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function c(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,a),t.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,n){"use strict";n.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},n.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},n.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},n.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},n.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>r[c]&1;for(c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},n.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)];return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},n.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},{}],400:[function(e,t,n){(function(t){(function(){"use strict";var r=e("./lib/generatePrime"),i=e("./lib/primes.json"),a=e("./lib/dh"),o={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new a(n,r)},n.createDiffieHellman=n.DiffieHellman=function e(n,i,s,c){return t.isBuffer(i)||void 0===o[i]?e(n,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,c)),"number"==typeof n?new a(r(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,i)),new a(n,s,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,n){(function(n){(function(){"use strict";var r=e("bn.js"),i=new(e("miller-rabin")),a=new r(24),o=new r(11),s=new r(10),c=new r(3),l=new r(7),u=e("./generatePrime"),h=e("randombytes");function f(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function d(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}t.exports=g;var p={};function g(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=d):this._primeCode=8}function m(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var h,f=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return f+=1,f+="02"===n||"05"===n?8:4,p[r]=f,f;switch(i.test(e.shrn(1))||(f+=2),n){case"02":e.mod(a).cmp(o)&&(f+=8);break;case"05":(h=e.mod(s)).cmp(c)&&h.cmp(l)&&(f+=8);break;default:f+=4}return p[r]=f,f}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new r(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(t.toArray()),a=this.getPrime();if(i.length<a.length){var o=new n(a.length-i.length);o.fill(0),i=n.concat([o,i])}return i},g.prototype.getPublicKey=function(e){return m(this._pub,e)},g.prototype.getPrivateKey=function(e){return m(this._priv,e)},g.prototype.getPrime=function(e){return m(this.__prime,e)},g.prototype.getGenerator=function(e){return m(this._gen,e)},g.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,n){"use strict";var r=e("randombytes");t.exports=y,y.simpleSieve=m,y.fermatTest=v;var i=e("bn.js"),a=new i(24),o=new(e("miller-rabin")),s=new i(1),c=new i(2),l=new i(5),u=(new i(16),new i(8),new i(10)),h=new i(3),f=(new i(7),new i(11)),d=new i(4),p=(new i(12),null);function g(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return p=e,e}function m(e){for(var t=g(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function v(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(h);)n.iadd(d)}else for(;n.mod(a).cmp(f);)n.iadd(d);if(m(p=n.shrn(1))&&m(n)&&v(p)&&v(n)&&o.test(p)&&o.test(n))return n}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,n){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],405:[function(e,t,n){"use strict";var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,c,l=[];for(o=0;o<r.length;o+=n.step){c=0;for(var u=o+n.step-1;u>=o;u--)c=(c<<1)+r[u];l.push(c)}for(var h=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o<l.length;o++)(c=l[o])===d?f=f.mixedAdd(n.points[o]):c===-d&&(f=f.mixedAdd(n.points[o].neg()));h=h.add(f)}return h.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var u=0;l>=0&&0===o[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var h=o[l];s(0!==h),c="affine"===e.type?h>0?c.mixedAdd(i[h-1>>1]):c.mixedAdd(i[-h-1>>1].neg()):h>0?c.add(i[h-1>>1]):c.add(i[-h-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){var s,c,l,u=this._wnafT1,h=this._wnafT2,f=this._wnafT3,d=0;for(s=0;s<r;s++){var p=(l=t[s])._getNAFPoints(e);u[s]=p.wnd,h[s]=p.points}for(s=r-1;s>=1;s-=2){var g=s-1,m=s;if(1===u[g]&&1===u[m]){var v=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(v[1]=t[g].add(t[m]),v[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(v[1]=t[g].toJ().mixedAdd(t[m]),v[2]=t[g].add(t[m].neg())):(v[1]=t[g].toJ().mixedAdd(t[m]),v[2]=t[g].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],A=o(n[g],n[m]);for(d=Math.max(A[0].length,d),f[g]=new Array(d),f[m]=new Array(d),c=0;c<d;c++){var b=0|A[0][c],w=0|A[1][c];f[g][c]=y[3*(b+1)+(w+1)],f[m][c]=0,h[g]=v}}else f[g]=a(n[g],u[g],this._bitLength),f[m]=a(n[m],u[m],this._bitLength),d=Math.max(f[g].length,d),d=Math.max(f[m].length,d)}var x=this.jpoint(null,null,null),C=this._wnafT4;for(s=d;s>=0;s--){for(var _=0;s>=0;){var I=!0;for(c=0;c<r;c++)C[c]=0|f[c][s],0!==C[c]&&(I=!1);if(!I)break;_++,s--}if(s>=0&&_++,x=x.dblp(_),s<0)break;for(c=0;c<r;c++){var E=C[c];0!==E&&(E>0?l=h[c][E-1>>1]:E<0&&(l=h[c][-E-1>>1].neg()),x="affine"===l.type?x.mixedAdd(l):x.add(l))}}for(s=0;s<r;s++)h[s]=null;return i?x:x.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,n){"use strict";var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,o),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(l,o.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),c=i.redMul(o),l=a.redMul(s),u=i.redMul(s),h=o.redMul(a);return this.curve.point(c,l,h,u)},l.prototype._projDbl=function(){var e,t,n,r,i,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(c)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),a=l.redSub(i).redISub(i),e=o.redSub(s).redISub(c).redMul(a),t=l.redMul(r.redSub(c)),n=l.redMul(a))}else r=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),a=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(a);return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=a.redMul(o),u=s.redMul(c),h=a.redMul(c),f=o.redMul(s);return this.curve.point(l,u,f,h)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),h=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),n=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),n=this.curve._mulC(c).redMul(l)),this.curve.point(h,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,n){"use strict";var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("inherits"),a=e("./base"),o=e("../utils");function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,n){"use strict";var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function c(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,o),t.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,c,l,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,d=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),v=new i(1),y=0;0!==f.cmpn(0);){var A=d.div(f);l=d.sub(A.mul(f)),u=m.sub(A.mul(p));var b=v.sub(A.mul(g));if(!r&&l.cmp(h)<0)t=c.neg(),n=p,r=l.neg(),a=u;else if(r&&2==++y)break;c=l,d=f,f=l,m=p,p=u,v=g,g=b}o=l.neg(),s=u;var w=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),c=i.mul(n.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),h=r.redMul(l),f=c.redSqr().redIAdd(u).redISub(h).redISub(h),d=c.redMul(h.redISub(f)).redISub(a.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,d,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=n.redMul(c),h=s.redSqr().redIAdd(l).redISub(u).redISub(u),f=s.redMul(u.redISub(h)).redISub(i.redMul(l)),d=this.z.redMul(o);return this.curve.jpoint(h,f,d)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),h=l.redSqr(),f=h.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),p=a.redMul(h),g=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),v=d.redMul(m);v=v.redIAdd(v).redISub(f);var y=l.redMul(s);t+1<e&&(c=c.redMul(f)),a=g,s=y,l=v}return this.curve.jpoint(a,l.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),h=this.y.redSqr(),f=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(u).redISub(f);d=d.redIAdd(d);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=f.redIAdd(f);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(m),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),h=this.y.redSqr(),f=this.x.redMul(h),d=this.x.redSub(u).redMul(this.x.redAdd(u));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f),g=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(g),n=this.y.redAdd(this.z).redSqr().redISub(h).redISub(u);var m=h.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=d.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),h=l.redISub(u),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=s.redMul(h).redISub(f),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,d,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var h=this.x.redMul(s).redISub(u);h=(h=h.redIAdd(h)).redIAdd(h);var f=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(h,f,d)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,n){"use strict";var r,i=n,a=e("hash.js"),o=e("./curve"),s=e("./utils").assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch(e){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("hmac-drbg"),a=e("../utils"),o=e("../curves"),s=e("brorand"),c=a.assert,l=e("./key"),u=e("./signature");function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=h,h.prototype.keyPair=function(e){return new l(this,e)},h.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},h.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),l=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new r(1)),f=0;;f++){var d=a.k?a.k(f):new r(l.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var v=d.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return a.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:m,s:v,recoveryParam:y})}}}}}},h.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new u(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),l=c.mul(e).umod(this.n),h=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),h)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,n.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},h.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,o=new r(e),s=t.r,l=t.s,h=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),h):this.curve.pointFromX(s,h);var d=t.r.invm(a),p=a.sub(o).mul(d).umod(a),g=l.mul(d).umod(a);return this.g.mulAdd(p,s,g)},h.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;if(a+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var l=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var h=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new r(l),this.s=new r(h),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,n){"use strict";var r=e("hash.js"),i=e("../curves"),a=e("../utils"),o=a.assert,s=a.parseBytes,c=e("./key"),l=e("./signature");function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=!!(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,n){"use strict";var r=e("../utils"),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=s},{"../utils":419}],417:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":419,"bn.js":420}],418:[function(e,t,n){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,t,n){"use strict";var r=n,i=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,c=a.andln(i-1);a.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,c=e.andln(3)+i&3,l=t.andln(3)+a&3;3===c&&(c=-1),3===l&&(l=-1),o=1&c?3!=(r=e.andln(7)+i&7)&&5!==r||2!==l?c:-c:0,n[0].push(o),s=1&l?3!=(r=t.andln(7)+a&7)&&5!==r||2!==c?l:-l:0,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],421:[function(e,t,n){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,n){"use strict";var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),s=0===l.x}catch(e){s=!1}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,n){if(t)e.call(n);else for(var r=e.length,i=w(e,r),a=0;a<r;++a)i[a].call(n)}function f(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=w(e,i),o=0;o<i;++o)a[o].call(n,r)}function d(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=w(e,a),s=0;s<a;++s)o[s].call(n,r,i)}function p(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=w(e,o),c=0;c<o;++c)s[c].call(n,r,i,a)}function g(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=w(e,i),o=0;o<i;++o)a[o].apply(n,r)}function m(e,t,n,i){var a,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=r(null),e._eventsCount=0),s){if("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),!s.warned&&(a=u(e))&&a>0&&s.length>a){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,"object"==typeof console&&console.warn}}else s=o[t]=n,++e._eventsCount;return e}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(v,r);return i.listener=n,r.wrapFn=i,i}function A(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):w(i,i.length):[]}function b(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function w(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}s?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):o.defaultMaxListeners=c,o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){var t,n,r,i,a,o,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var c=new Error('Unhandled "error" event. ('+t+")");throw c.context=t,c}if(!(n=o[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:h(n,l,this);break;case 2:f(n,l,this,arguments[1]);break;case 3:d(n,l,this,arguments[1],arguments[2]);break;case 4:p(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),a=1;a<r;a++)i[a-1]=arguments[a];g(n,l,this,i)}return!0},o.prototype.addListener=function(e,t){return m(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return m(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,a,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,a),1===n.length&&(i[e]=n[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,a;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var o,s=i(n);for(a=0;a<s.length;++a)"removeListener"!==(o=s[a])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return A(this,e,!0)},o.prototype.rawListeners=function(e){return A(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("md5.js");t.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(a||0),l=r.alloc(0);o>0||a>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var h=0;if(o>0){var f=s.length-o;h=Math.min(o,l.length),l.copy(s,f,0,h),o-=h}if(h<l.length&&a>0){var d=c.length-a,p=Math.min(a,l.length-h);l.copy(c,d,h,h+p),a-=p}}return l.fill(0),{key:s,iv:c}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=n.ParserOptions=n.parseFile=n.parseStream=n.parseString=n.parse=n.FormatterOptions=n.CsvFormatterStream=n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;var r=e("@fast-csv/format");Object.defineProperty(n,"format",{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(n,"write",{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(n,"writeToStream",{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(n,"writeToBuffer",{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(n,"writeToString",{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(n,"writeToPath",{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return r.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(n,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(n,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(n,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,n){"use strict";var r=n;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,n){"use strict";var r=e("./utils"),i=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}n.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,n){"use strict";var r=e("./utils"),i=e("minimalistic-assert");function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./common"),a=r.rotl32,o=r.sum32,s=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),n.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],y=n,A=r,b=i,w=l,x=u,C=0;C<80;C++){var _=o(a(c(n,h(C,r,i,l),e[p[C]+t],f(C)),m[C]),u);n=u,u=l,l=a(i,10),i=r,r=_,_=o(a(c(y,h(79-C,A,b,w),e[g[C]+t],d(C)),v[C]),x),y=x,x=w,w=a(b,10),b=A,A=_}_=s(this.h[1],i,w),this.h[1]=s(this.h[2],l,x),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],n,A),this.h[4]=s(this.h[0],r,b),this.h[0]=_},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,n){"use strict";n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),a=e("./common"),o=r.rotl32,s=r.sum32,c=r.sum32_5,l=a.ft_1,u=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],f=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),g=c(o(i,5),l(p,a,u,f),d,n[r],h[p]);d=f,f=u,u=o(a,30),a=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],d)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./256");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),a=e("./common"),o=e("minimalistic-assert"),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=a.ch32,h=a.maj32,f=a.s0_256,d=a.s1_256,p=a.g0_256,g=a.g1_256,m=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(g(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],m=this.h[2],v=this.h[3],y=this.h[4],A=this.h[5],b=this.h[6],w=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var x=l(w,d(y),u(y,A,b),this.k[r],n[r]),C=s(f(i),h(i,a,m));w=b,b=A,A=y,y=s(v,x),v=m,m=a,a=i,i=s(x,C)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],A),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./512");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),a=e("minimalistic-assert"),o=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,h=r.sum64_hi,f=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,g=r.sum64_5_hi,m=r.sum64_5_lo,v=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function w(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function C(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function _(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function S(e,t){var n=o(e,t,1)^o(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function B(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=o(e,t,19)^o(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(A,v),t.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=M(n[r-4],n[r-3]),a=T(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=S(n[r-30],n[r-29]),l=B(n[r-30],n[r-29]),u=n[r-32],h=n[r-31];n[r]=d(i,a,o,s,c,l,u,h),n[r+1]=p(i,a,o,s,c,l,u,h)}},A.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],d=this.h[6],p=this.h[7],v=this.h[8],y=this.h[9],A=this.h[10],S=this.h[11],B=this.h[12],M=this.h[13],T=this.h[14],O=this.h[15];a(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var P=T,L=O,Q=E(v,y),R=k(v,y),j=b(v,y,A,S,B),N=w(v,y,A,S,B,M),F=this.k[D],z=this.k[D+1],H=n[D],U=n[D+1],G=g(P,L,Q,R,j,N,F,z,H,U),V=m(P,L,Q,R,j,N,F,z,H,U);P=_(r,i),L=I(r,i),Q=x(r,i,o,s,c),R=C(r,i,o,s,c,l);var W=h(P,L,Q,R),q=f(P,L,Q,R);T=B,O=M,B=A,M=S,A=v,S=y,v=h(d,p,G,V),y=f(p,p,G,V),d=c,p=l,c=o,l=s,o=r,s=i,r=h(G,V,W,q),i=f(G,V,W,q)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,c,l),u(this.h,6,d,p),u(this.h,8,v,y),u(this.h,10,A,S),u(this.h,12,B,M),u(this.h,14,T,O)},A.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,n){"use strict";var r=e("../utils").rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}n.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},n.ch32=i,n.maj32=a,n.p32=o,n.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},n.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},n.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},n.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits");function a(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}n.inherits=i,n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},n.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},n.htonl=o,n.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=c(i.toString(16))}return n},n.zero2=s,n.zero8=c,n.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,c=t;s<o.length;s++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=l>>>0}return o},n.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},n.rotr32=function(e,t){return e>>>t|e<<32-t},n.rotl32=function(e,t){return e<<t|e>>>32-t},n.sum32=function(e,t){return e+t>>>0},n.sum32_3=function(e,t,n){return e+t+n>>>0},n.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},n.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},n.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},n.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},n.sum64_lo=function(e,t,n,r){return t+r>>>0},n.sum64_4_hi=function(e,t,n,r,i,a,o,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},n.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},n.sum64_5_hi=function(e,t,n,r,i,a,o,s,c,l){var u=0,h=t;return u+=(h=h+r>>>0)<t?1:0,u+=(h=h+a>>>0)<a?1:0,u+=(h=h+s>>>0)<s?1:0,e+n+i+o+c+(u+=(h=h+l>>>0)<l?1:0)>>>0},n.sum64_5_lo=function(e,t,n,r,i,a,o,s,c,l){return t+r+a+s+l>>>0},n.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},n.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},n.shr64_hi=function(e,t,n){return e>>>n},n.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,n){"use strict";var r=e("hash.js"),i=e("minimalistic-crypto-utils"),a=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}t.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,n){"use strict";
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=f,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=l}return(d?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*c-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+d]=255&o,d+=p,o/=256,l-=8);e[n+d-p]|=128*g}},{}],440:[function(e,t,n){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],441:[function(e,n,r){(function(t,i,a,o,s,c,l,u){(function(){"use strict";
/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/!function(e){"object"==typeof r&&void 0!==n?n.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l="function"==typeof e&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[s]={exports:{}};n[s][0].call(h.exports,(function(e){return a(n[s][1][e]||e)}),h,h.exports,t,n,r,i)}return r[s].exports}for(var o="function"==typeof e&&e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],h=0,f=e.length,d=f,p="string"!==r.getTypeOf(e);h<e.length;)d=f-h,i=p?(t=e[h++],n=h<f?e[h++]:0,h<f?e[h++]:0):(t=e.charCodeAt(h++),n=h<f?e.charCodeAt(h++):0,h<f?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<d?(15&n)<<2|i>>6:64,l=2<d?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var f,d=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&d--,e.charAt(e.length-2)===a.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|d):new Array(0|d);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,64!==s&&(f[u++]=n),64!==c&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n){var r=i,a=0+n;e^=-1;for(var o=0;o<a;o++)e=e>>>8^r[255&(e^t[o])];return~e}(0|t,e,e.length):function(e,t,n){var r=i,a=0+n;e^=-1;for(var o=0;o<a;o++)e=e>>>8^r[255&(e^t.charCodeAt(o))];return~e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function c(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var h,f,d=e.file,p=e.compression,g=u!==s.utf8encode,m=a.transformTo("string",u(d.name)),v=a.transformTo("string",s.utf8encode(d.name)),y=d.comment,A=a.transformTo("string",u(y)),b=a.transformTo("string",s.utf8encode(y)),w=v.length!==d.name.length,x=b.length!==y.length,C="",_="",I="",E=d.dir,k=d.date,S={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(S.crc32=e.crc32,S.compressedSize=e.compressedSize,S.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),g||!w&&!x||(B|=2048);var M=0,T=0;E&&(M|=16),"UNIX"===o?(T=798,M|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(d.unixPermissions,E)):(T=20,M|=function(e){return 63&(e||0)}(d.dosPermissions)),h=k.getUTCHours(),h<<=6,h|=k.getUTCMinutes(),h<<=5,h|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),w&&(_=r(1,1)+r(c(m),4)+v,C+="up"+r(_.length,2)+_),x&&(I=r(1,1)+r(c(A),4)+b,C+="uc"+r(I.length,2)+I);var O="";return O+="\n\0",O+=r(B,2),O+=p.magic,O+=r(h,2),O+=r(f,2),O+=r(S.crc32,4),O+=r(S.compressedSize,4),O+=r(S.uncompressedSize,4),O+=r(m.length,2),O+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+O+m+C,dirRecord:l.CENTRAL_FILE_HEADER+r(T,2)+O+r(A.length,2)+"\0\0\0\0"+r(M,4)+r(i,4)+m+C+A}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),l=e("../signature");function u(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo("string",o(i));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function l(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)})).then((function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:void 0!==a,newBufferFrom:function(e,t){if(a.from&&a.from!==Uint8Array.from)return a.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new a(e,t)},allocBuffer:function(e){if(a.alloc)return a.alloc(e);var t=new a(e);return t.fill(0),t},isBuffer:function(e){return a.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var h,v="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!v),(t instanceof l&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string"),h=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new d(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,h,s);this.files[e]=y}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),h=e("./generate"),f=e("./nodejsUtils"),d=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:c.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new o("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),c=e("../support"),l=e("../external"),u=null;if(c.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(n,i){var o=[],c=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return a.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(c,o),u);n(e)}catch(e){i(e)}o=[]})).resume()}))}(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==a,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,c=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function h(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=h;var d={};d.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},d.array={string:h,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},d.arraybuffer={string:function(e){return h(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:h,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},d.nodebuffer={string:h,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return d[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){u((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),c=e("./compressions"),l=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<l.length;h++)r.prototype[l[h]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return a.reject(e,r)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p((function(){t(i,r)}));"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))}),(function(e){r||(r=!0,a.reject(l,e))}))}},l.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,o=-1,s=new this(i);++o<t;)r=e[o],this.resolve(r).then((function(e){n||(n=!0,a.resolve(s,e))}),(function(e){n||(n=!0,a.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(o[n]);this._dict_set=!0}}function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}l.prototype.push=function(e,t){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,o))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),!(s.avail_out=0))},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=l,n.deflate=u,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(e,t){var n,s,c,l,h,f,d=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?d.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(f="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&n!==o.Z_STREAM_END&&(0!==d.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(d.output,d.next_out),l=d.next_out-c,h=a.buf2string(d.output,c),d.next_out=l,d.avail_out=p-l,l&&i.arraySet(d.output,d.output,c,l,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(m=!0)}while((0<d.avail_in||0===d.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(d.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),c=e("./messages"),l=-2,u=258,h=262,f=113;function d(e,t){return e.msg=c[t],t}function p(e){return(e<<1)-(4<e?9:0)}function g(e){for(var t=e.length;0<=--t;)e[t]=0}function m(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function v(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,m(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function A(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function b(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-h?e.strstart-(e.w_size-h):0,l=e.window,f=e.w_mask,d=e.prev,p=e.strstart+u,g=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+o]===m&&l[n+o-1]===g&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<p);if(r=u-(p-a),a=p-u,o<r){if(e.match_start=t,s<=(o=r))break;g=l[a+o-1],m=l[a+o]}}}while((t=d[t&f])>c&&0!=--i);return o<=e.lookahead?o:e.lookahead}function w(e){var t,n,r,a,c,l,u,f,d,p,g=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-h)){for(i.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=n=e.hash_size;r=e.head[--t],e.head[t]=g<=r?r-g:0,--n;);for(t=n=g;r=e.prev[--t],e.prev[t]=g<=r?r-g:0,--n;);a+=g}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,f=e.strstart+e.lookahead,p=void 0,(d=a)<(p=l.avail_in)&&(p=d),n=0===p?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,f),1===l.state.wrap?l.adler=o(l.adler,u,p,f):2===l.state.wrap&&(l.adler=s(l.adler,u,p,f)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<h&&0!==e.strm.avail_in)}function x(e,t){for(var n,r;;){if(e.lookahead<h){if(w(e),e.lookahead<h&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-h&&(e.match_length=b(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function C(e,t){for(var n,r,i;;){if(e.lookahead<h){if(w(e),e.lookahead<h&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-h&&(e.match_length=b(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function _(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function E(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):d(e,l)}function k(e){var t=E(e);return 0===t&&function(e){e.window_size=2*e.w_size,g(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function S(e,t,n,r,a,o){if(!e)return l;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||9<a||8!==n||r<8||15<r||t<0||9<t||o<0||4<o)return d(e,l);8===r&&(r=9);var c=new I;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,k(e)}r=[new _(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-h&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new _(4,4,8,4,x),new _(4,5,16,8,x),new _(4,6,32,32,x),new _(4,4,16,16,C),new _(8,16,32,32,C),new _(8,16,128,128,C),new _(8,32,128,256,C),new _(32,128,258,1024,C),new _(32,258,258,4096,C)],n.deflateInit=function(e,t){return S(e,t,8,15,8,0)},n.deflateInit2=S,n.deflateReset=k,n.deflateResetKeep=E,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?d(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return d(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=f);else{var h=8+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=f,A(i,h),0!==i.strstart&&(A(i,e.adler>>>16),A(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),m(e),o=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),m(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),m(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&m(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=f)):i.status=f),0!==i.pending){if(m(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(n)&&4!==t)return d(e,-5);if(666===i.status&&0!==e.avail_in)return d(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var b=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=u){if(w(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+u;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=u-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==b&&4!==b||(i.status=666),1===b||3===b)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===b&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(g(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),m(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(A(i,e.adler>>>16),A(i,65535&e.adler)),m(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==f&&666!==t?d(e,l):(e.state=null,t===f?d(e,-3):0):l},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,u,h,f,d=t.length;if(!e||!e.state)return l;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return l;for(1===s&&(e.adler=o(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,d-n.w_size,n.w_size,0),t=f,d=n.w_size),c=e.avail_in,u=e.next_in,h=e.input,e.avail_in=d,e.next_in=0,e.input=t,w(n);n.lookahead>=3;){for(r=n.strstart,a=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=2,w(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=u,e.input=h,e.avail_in=c,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,a,o,s,c,l,u,h,f,d,p,g,m,v,y,A,b,w,x,C,_,I,E;n=e.state,r=e.next_in,I=e.input,i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(d+=I[r++]<<p,p+=8,d+=I[r++]<<p,p+=8),A=g[d&v];t:for(;;){if(d>>>=b=A>>>24,p-=b,0==(b=A>>>16&255))E[a++]=65535&A;else{if(!(16&b)){if(!(64&b)){A=g[(65535&A)+(d&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&A,(b&=15)&&(p<b&&(d+=I[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=I[r++]<<p,p+=8,d+=I[r++]<<p,p+=8),A=m[d&y];n:for(;;){if(d>>>=b=A>>>24,p-=b,!(16&(b=A>>>16&255))){if(!(64&b)){A=m[(65535&A)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&A,p<(b&=15)&&(d+=I[r++]<<p,(p+=8)<b&&(d+=I[r++]<<p,p+=8)),c<(x+=d&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=b,p-=b,(b=a-o)<x){if(u<(b=x-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=f,(C=0)===h){if(C+=l-b,b<w){for(w-=b;E[a++]=f[C++],--b;);C=a-x,_=E}}else if(h<b){if(C+=l+h-b,(b-=h)<w){for(w-=b;E[a++]=f[C++],--b;);if(C=0,h<w){for(w-=b=h;E[a++]=f[C++],--b;);C=a-x,_=E}}}else if(C+=h-b,b<w){for(w-=b;E[a++]=f[C++],--b;);C=a-x,_=E}for(;2<w;)E[a++]=_[C++],E[a++]=_[C++],E[a++]=_[C++],w-=3;w&&(E[a++]=_[C++],1<w&&(E[a++]=_[C++]))}else{for(C=a-x;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(w-=3););w&&(E[a++]=E[C++],1<w&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=d,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=-2;function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):c}function d(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):c}function p(e,t){var n,r;return e?(r=new u,(e.state=r).window=null,0!==(n=d(e,t))&&(e.state=null),n):c}var g,m,v=!0;function y(e){if(v){var t;for(g=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),v=!1}e.lencode=g,e.lenbits=9,e.distcode=m,e.distbits=5}function A(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=f,n.inflateReset2=d,n.inflateResetKeep=h,n.inflateInit=function(e){return p(e,15)},n.inflateInit2=p,n.inflate=function(e,t){var n,u,h,f,d,p,g,m,v,b,w,x,C,_,I,E,k,S,B,M,T,O,D,P,L=0,Q=new r.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(n=e.state).mode&&(n.mode=13),d=e.next_out,h=e.output,g=e.avail_out,f=e.next_in,u=e.input,p=e.avail_in,m=n.hold,v=n.bits,b=p,w=g,O=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(2&n.wrap&&35615===m){Q[n.check=0]=255&m,Q[1]=m>>>8&255,n.check=a(n.check,Q,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(v-=4,T=8+(15&(m>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,e.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(Q[0]=255&m,Q[1]=m>>>8&255,n.check=a(n.check,Q,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(Q[0]=255&m,Q[1]=m>>>8&255,Q[2]=m>>>16&255,Q[3]=m>>>24&255,n.check=a(n.check,Q,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(Q[0]=255&m,Q[1]=m>>>8&255,n.check=a(n.check,Q,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(Q[0]=255&m,Q[1]=m>>>8&255,n.check=a(n.check,Q,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(x=n.length)&&(x=p),x&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,u,f,x,T)),512&n.flags&&(n.check=a(n.check,u,x,f)),p-=x,f+=x,n.length-=x),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;for(x=0;T=u[f+x++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T)),T&&x<p;);if(512&n.flags&&(n.check=a(n.check,u,x,f)),p-=x,f+=x,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;for(x=0;T=u[f+x++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T)),T&&x<p;);if(512&n.flags&&(n.check=a(n.check,u,x,f)),p-=x,f+=x,T)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}e.adler=n.check=l(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=d,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==t)break;m>>>=2,v-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(x=n.length){if(p<x&&(x=p),g<x&&(x=g),0===x)break e;r.arraySet(h,u,f,x,d),p-=x,f+=x,g-=x,d+=x,n.length-=x;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}n.lens[R[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},O=s(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,O){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;E=(L=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,k=65535&L,!((I=L>>>24)<=v);){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(k<16)m>>>=I,v-=I,n.lens[n.have++]=k;else{if(16===k){for(P=I+2;v<P;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(m>>>=I,v-=I,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],x=3+(3&m),m>>>=2,v-=2}else if(17===k){for(P=I+3;v<P;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}v-=I,T=0,x=3+(7&(m>>>=I)),m>>>=3,v-=3}else{for(P=I+7;v<P;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}v-=I,T=0,x=11+(127&(m>>>=I)),m>>>=7,v-=7}if(n.have+x>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,D={bits:n.lenbits},O=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,O){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},O=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,O){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=p&&258<=g){e.next_out=d,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,o(e,w),d=e.next_out,h=e.output,g=e.avail_out,f=e.next_in,u=e.input,p=e.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;E=(L=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,k=65535&L,!((I=L>>>24)<=v);){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(E&&!(240&E)){for(S=I,B=E,M=k;E=(L=n.lencode[M+((m&(1<<S+B)-1)>>S)])>>>16&255,k=65535&L,!(S+(I=L>>>24)<=v);){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=I,v-=I,n.back+=I,n.length=k,0===E){n.mode=26;break}if(32&E){n.back=-1,n.mode=12;break}if(64&E){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&E,n.mode=22;case 22:if(n.extra){for(P=n.extra;v<P;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;E=(L=n.distcode[m&(1<<n.distbits)-1])>>>16&255,k=65535&L,!((I=L>>>24)<=v);){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(!(240&E)){for(S=I,B=E,M=k;E=(L=n.distcode[M+((m&(1<<S+B)-1)>>S)])>>>16&255,k=65535&L,!(S+(I=L>>>24)<=v);){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=I,v-=I,n.back+=I,64&E){e.msg="invalid distance code",n.mode=30;break}n.offset=k,n.extra=15&E,n.mode=24;case 24:if(n.extra){for(P=n.extra;v<P;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break e;if(x=w-g,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}C=x>n.wnext?(x-=n.wnext,n.wsize-x):n.wnext-x,x>n.length&&(x=n.length),_=n.window}else _=h,C=d-n.offset,x=n.length;for(g<x&&(x=g),g-=x,n.length-=x;h[d++]=_[C++],--x;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break e;h[d++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break e;p--,m|=u[f++]<<v,v+=8}if(w-=g,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?a(n.check,h,w,d-w):i(n.check,h,w,d-w)),w=g,(n.flags?m:l(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break e;p--,m+=u[f++]<<v,v+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;default:return c}return e.next_out=d,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&A(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,w-=e.avail_out,e.total_in+=b,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?a(n.check,h,w,e.next_out-w):i(n.check,h,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==b&&0===w||4===t)&&0===O&&(O=-5),O)},n.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,0):c},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?c:11===n.mode&&i(1,t,r,0)!==n.check?-3:A(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,h,f){var d,p,g,m,v,y,A,b,w,x=f.bits,C=0,_=0,I=0,E=0,k=0,S=0,B=0,M=0,T=0,O=0,D=null,P=0,L=new r.Buf16(16),Q=new r.Buf16(16),R=null,j=0;for(C=0;C<=15;C++)L[C]=0;for(_=0;_<c;_++)L[t[n+_]]++;for(k=x,E=15;1<=E&&0===L[E];E--);if(E<k&&(k=E),0===E)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(I=1;I<E&&0===L[I];I++);for(k<I&&(k=I),C=M=1;C<=15;C++)if(M<<=1,(M-=L[C])<0)return-1;if(0<M&&(0===e||1!==E))return-1;for(Q[1]=0,C=1;C<15;C++)Q[C+1]=Q[C]+L[C];for(_=0;_<c;_++)0!==t[n+_]&&(h[Q[t[n+_]]++]=_);if(y=0===e?(D=R=h,19):1===e?(D=i,P-=257,R=a,j-=257,256):(D=o,R=s,-1),C=I,v=u,B=_=O=0,g=-1,m=(T=1<<(S=k))-1,1===e&&852<T||2===e&&592<T)return 1;for(;;){for(A=C-B,w=h[_]<y?(b=0,h[_]):h[_]>y?(b=R[j+h[_]],D[P+h[_]]):(b=96,0),d=1<<C-B,I=p=1<<S;l[v+(O>>B)+(p-=d)]=A<<24|b<<16|w,0!==p;);for(d=1<<C-1;O&d;)d>>=1;if(0!==d?(O&=d-1,O+=d):O=0,_++,0==--L[C]){if(C===E)break;C=t[n+h[_]]}if(k<C&&(O&m)!==g){for(0===B&&(B=k),v+=I,M=1<<(S=C-B);S+B<E&&!((M-=L[S+B])<=0);)S++,M<<=1;if(T+=1<<S,1===e&&852<T||2===e&&592<T)return 1;l[g=O&m]=k<<24|S<<16|v-u}}return 0!==O&&(l[v+O]=C-B<<24|64<<16),f.bits=k,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=256,o=286,s=30,c=15,l=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);i(d);var p=new Array(60);i(p);var g=new Array(512);i(g);var m=new Array(256);i(m);var v=new Array(29);i(v);var y,A,b,w=new Array(s);function x(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function C(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _(e){return e<256?g[e]:g[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function k(e,t,n){E(e,n[2*t],n[2*t+1])}function S(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function B(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=c;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=S(a[s]++,s))}}function M(e){var t;for(t=0;t<o;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function T(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function O(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function D(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&O(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!O(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function P(e,t,n){var r,i,o,s,c=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===r?k(e,i,t):(k(e,(o=m[i])+a+1,t),0!==(s=l[o])&&E(e,i-=v[o],s),k(e,o=_(--r),n),0!==(s=u[o])&&E(e,r-=w[o],s)),c<e.last_lit;);k(e,256,t)}function L(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)D(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,D(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,h=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(a=0;a<=c;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=g,m++),l[2*r+1]=a,u<r||(e.bl_count[a]++,o=0,p<=r&&(o=d[r-p]),s=l[2*r],e.opt_len+=s*(a+o),f&&(e.static_len+=s*(h[2*r+1]+o)));if(0!==m){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(a=g;0!==a;a--)for(r=e.bl_count[a];0!==r;)u<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),B(a,u,e.bl_count)}function Q(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function R(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;k(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(k(e,i,e.bl_tree),s--),k(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(k(e,17,e.bl_tree),E(e,s-3,3)):(k(e,18,e.bl_tree),E(e,s-11,7));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}i(w);var j=!1;function N(e,t,n,i){E(e,0+(i?1:0),3),function(e,t,n){T(e),I(e,n),I(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){j||(function(){var e,t,n,r,i,a=new Array(16);for(r=n=0;r<28;r++)for(v[r]=n,e=0;e<1<<l[r];e++)m[n++]=r;for(m[n-1]=r,r=i=0;r<16;r++)for(w[r]=i,e=0;e<1<<u[r];e++)g[i++]=r;for(i>>=7;r<s;r++)for(w[r]=i<<7,e=0;e<1<<u[r]-7;e++)g[256+i++]=r;for(t=0;t<=c;t++)a[t]=0;for(e=0;e<=143;)d[2*e+1]=8,e++,a[8]++;for(;e<=255;)d[2*e+1]=9,e++,a[9]++;for(;e<=279;)d[2*e+1]=7,e++,a[7]++;for(;e<=287;)d[2*e+1]=8,e++,a[8]++;for(B(d,287,a),e=0;e<s;e++)p[2*e+1]=5,p[2*e]=S(e,5);y=new x(d,l,257,o,c),A=new x(p,u,0,s,c),b=new x(new Array(0),h,0,19,7)}(),j=!0),e.l_desc=new C(e.dyn_ltree,y),e.d_desc=new C(e.dyn_dtree,A),e.bl_desc=new C(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,M(e)},n._tr_stored_block=N,n._tr_flush_block=function(e,t,n,r){var i,o,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),s=function(e){var t;for(Q(e,e.dyn_ltree,e.l_desc.max_code),Q(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?N(e,t,n,r):4===e.strategy||o===i?(E(e,2+(r?1:0),3),P(e,d,p)):(E(e,4+(r?1:0),3),function(e,t,n,r){var i;for(E(e,t-257,5),E(e,n-1,5),E(e,r-4,4),i=0;i<r;i++)E(e,e.bl_tree[2*f[i]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),P(e,e.dyn_ltree,e.dyn_dtree)),M(e),r&&T(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(m[n]+a+1)]++,e.dyn_dtree[2*_(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){E(e,2,3),k(e,256,d),function(e){16===e.bi_valid?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,n,r){(function(e){!function(e){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){t.nextTick((function(){f(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",d,!1):e.attachEvent("onmessage",d),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return s[o]=i,n(o),o++},u.clearImmediate=h}function h(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),c=!1}}}}function d(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&f(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,n,r){(function(e){(function(){"use strict";var t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source),i="object"==typeof e&&e&&e.Object===Object&&e,a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")(),s=Object.prototype.toString,c=o.Symbol,l=c?c.prototype:void 0,u=l?l.toString:void 0;function h(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}n.exports=function(e){var n;return(e=null==(n=e)?"":h(n))&&r.test(e)?e.replace(t,"\\$&"):e}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,n,r){(function(e){(function(){"use strict";var t="[object Arguments]",i="[object Map]",a="[object Object]",o="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[t]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[a]=p["[object RegExp]"]=p[o]=p["[object String]"]=p["[object WeakMap]"]=!1;var g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y="object"==typeof r&&r&&!r.nodeType&&r,A=y&&"object"==typeof n&&n&&!n.nodeType&&n,b=A&&A.exports===y&&g.process,w=function(){try{return b&&b.binding("util")}catch(e){}}(),x=w&&w.isTypedArray;function C(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function _(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function I(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var S,B,M,T=Array.prototype,O=Function.prototype,D=Object.prototype,P=v["__core-js_shared__"],L=(S=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",Q=O.toString,R=D.hasOwnProperty,j=D.toString,N=RegExp("^"+Q.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=v.Symbol,z=v.Uint8Array,H=D.propertyIsEnumerable,U=T.splice,G=(B=Object.keys,M=Object,function(e){return B(M(e))}),V=Ee(v,"DataView"),W=Ee(v,"Map"),q=Ee(v,"Promise"),Y=Ee(v,"Set"),K=Ee(v,"WeakMap"),$=Ee(Object,"create"),J=Pe(V),X=Pe(W),Z=Pe(q),ee=Pe(Y),te=Pe(K),ne=F?F.prototype:void 0,re=ne?ne.valueOf:void 0,ie=ne?ne.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new se;++t<n;)this.add(e[t])}function le(e){this.__data__=new oe(e)}function ue(e,t){var n=ze(e)||Fe(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!R.call(e,a)||i&&("length"==a||Se(a,r))||n.push(a);return n}function he(e,t){for(var n=e.length;n--;)if(Ne(e[n][0],t))return n;return-1}function fe(e,t,n,r){return ge(e,(function(e,i,a){t(r,e,n(e),a)})),r}ae.prototype.clear=function(){this.__data__=$?$(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:R.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},oe.prototype.clear=function(){this.__data__=[]},oe.prototype.delete=function(e){var t=this.__data__,n=he(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),0))},oe.prototype.get=function(e){var t=this.__data__,n=he(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return he(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,r=he(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},se.prototype.clear=function(){this.__data__={hash:new ae,map:new(W||oe),string:new ae}},se.prototype.delete=function(e){return Ie(this,e).delete(e)},se.prototype.get=function(e){return Ie(this,e).get(e)},se.prototype.has=function(e){return Ie(this,e).has(e)},se.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},le.prototype.clear=function(){this.__data__=new oe},le.prototype.delete=function(e){return this.__data__.delete(e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this;n=this.__data__=new se(r)}return n.set(e,t),this};var de,pe,ge=(de=function(e,t){return e&&me(e,t,Ke)},function(e,t){if(null==e)return e;if(!He(e))return de(e,t);for(var n=e.length,r=pe?n:-1,i=Object(e);(pe?r--:++r<n)&&!1!==t(i[r],r,i););return e}),me=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}();function ve(e,t){for(var n=0,r=(t=Be(t,e)?[t]:Ce(t)).length;null!=e&&n<r;)e=e[De(t[n++])];return n&&n==r?e:void 0}function ye(e,t){return null!=e&&t in Object(e)}function Ae(e,n,r,s,c){return e===n||(null==e||null==n||!Ve(e)&&!We(n)?e!=e&&n!=n:function(e,n,r,s,c,l){var u=ze(e),h=ze(n),f="[object Array]",d="[object Array]";u||(f=(f=ke(e))==t?a:f),h||(d=(d=ke(n))==t?a:d);var p=f==a&&!I(e),g=d==a&&!I(n),m=f==d;if(m&&!p)return l||(l=new le),u||Ye(e)?_e(e,n,r,s,c,l):function(e,t,n,r,a,s,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new z(e),new z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var l=E;case o:var u=2&s;if(l||(l=k),e.size!=t.size&&!u)return!1;var h=c.get(e);if(h)return h==t;s|=1,c.set(e,t);var f=_e(l(e),l(t),r,a,s,c);return c.delete(e),f;case"[object Symbol]":if(re)return re.call(e)==re.call(t)}return!1}(e,n,f,r,s,c,l);if(!(2&c)){var v=p&&R.call(e,"__wrapped__"),y=g&&R.call(n,"__wrapped__");if(v||y){var A=v?e.value():e,b=y?n.value():n;return l||(l=new le),r(A,b,s,c,l)}}return!!m&&(l||(l=new le),function(e,t,n,r,i,a){var o=2&i,s=Ke(e),c=s.length;if(c!=Ke(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:R.call(t,u)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var f=!0;a.set(e,t),a.set(t,e);for(var d=o;++l<c;){var p=e[u=s[l]],g=t[u];if(r)var m=o?r(g,p,u,t,e,a):r(p,g,u,e,t,a);if(!(void 0===m?p===g||n(p,g,r,i,a):m)){f=!1;break}d||(d="constructor"==u)}if(f&&!d){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f}(e,n,r,s,c,l))}(e,n,Ae,r,s,c))}function be(e){return!(!Ve(e)||function(e){return!!L&&L in e}(e))&&(Ue(e)||I(e)?N:f).test(Pe(e))}function we(e){return"function"==typeof e?e:null==e?$e:"object"==typeof e?ze(e)?function(e,t){return Be(e)&&Me(t)?Te(De(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:ve(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){for(var r,i=-1,a=(t=Be(t,e)?[t]:Ce(t)).length;++i<a;){var o=De(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||!!(a=e?e.length:0)&&Ge(a)&&Se(o,a)&&(ze(e)||Fe(e))}(e,t,ye)}(n,e):Ae(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Me(i)]}return t}(e);return 1==t.length&&t[0][2]?Te(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],l=e[c],u=s[1];if(o&&s[2]){if(void 0===l&&!(c in e))return!1}else{var h=new le;if(r)var f=r(l,u,c,e,t,h);if(!(void 0===f?Ae(u,l,r,3,h):f))return!1}}return!0}(n,e,t)}}(e):Be(t=e)?(n=De(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ve(t,e)}}(t);var t,n}function xe(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||D))return G(e);var t,n,r=[];for(var i in Object(e))R.call(e,i)&&"constructor"!=i&&r.push(i);return r}function Ce(e){return ze(e)?e:Oe(e)}function _e(e,t,n,r,i,a){var o=2&i,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,h=!0,f=1&i?new ce:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var d=e[u],p=t[u];if(r)var g=o?r(p,d,u,t,e,a):r(d,p,u,e,t,a);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!_(t,(function(e,t){if(!f.has(t)&&(d===e||n(d,e,r,i,a)))return f.add(t)}))){h=!1;break}}else if(d!==p&&!n(d,p,r,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Ie(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ee(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return be(n)?n:void 0}var ke=function(e){return j.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||d.test(e))&&e>-1&&e%1==0&&e<t}function Be(e,t){if(ze(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!qe(e))||c.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Me(e){return e==e&&!Ve(e)}function Te(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(V&&"[object DataView]"!=ke(new V(new ArrayBuffer(1)))||W&&ke(new W)!=i||q&&"[object Promise]"!=ke(q.resolve())||Y&&ke(new Y)!=o||K&&"[object WeakMap]"!=ke(new K))&&(ke=function(e){var t=j.call(e),n=t==a?e.constructor:void 0,r=n?Pe(n):void 0;if(r)switch(r){case J:return"[object DataView]";case X:return i;case Z:return"[object Promise]";case ee:return o;case te:return"[object WeakMap]"}return t});var Oe=je((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(qe(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return l.test(e)&&n.push(""),e.replace(u,(function(e,t,r,i){n.push(r?i.replace(h,"$1"):t||e)})),n}));function De(e){if("string"==typeof e||qe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pe(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Le,Qe,Re=(Le=function(e,t,n){R.call(e,n)?e[n].push(t):e[n]=[t]},function(e,t){var n=ze(e)?C:fe,r=Qe?Qe():{};return n(e,Le,we(t),r)});function je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(je.Cache||se),n}function Ne(e,t){return e===t||e!=e&&t!=t}function Fe(e){return function(e){return We(e)&&He(e)}(e)&&R.call(e,"callee")&&(!H.call(e,"callee")||j.call(e)==t)}je.Cache=se;var ze=Array.isArray;function He(e){return null!=e&&Ge(e.length)&&!Ue(e)}function Ue(e){var t=Ve(e)?j.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Ge(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function We(e){return!!e&&"object"==typeof e}function qe(e){return"symbol"==typeof e||We(e)&&"[object Symbol]"==j.call(e)}var Ye=x?function(e){return function(t){return e(t)}}(x):function(e){return We(e)&&Ge(e.length)&&!!p[j.call(e)]};function Ke(e){return He(e)?ue(e):xe(e)}function $e(e){return e}n.exports=Re}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==r.call(e)}},{}],445:[function(e,n,r){(function(e){(function(){"use strict";var t="[object Arguments]",i="[object Map]",a="[object Object]",o="[object Set]",s=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[t]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l[i]=l["[object Number]"]=l[a]=l["[object RegExp]"]=l[o]=l["[object String]"]=l["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,f=u||h||Function("return this")(),d="object"==typeof r&&r&&!r.nodeType&&r,p=d&&"object"==typeof n&&n&&!n.nodeType&&n,g=p&&p.exports===d,m=g&&u.process,v=function(){try{return m&&m.binding&&m.binding("util")}catch(e){}}(),y=v&&v.isTypedArray;function A(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function b(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function w(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var x,C,_,I=Array.prototype,E=Function.prototype,k=Object.prototype,S=f["__core-js_shared__"],B=E.toString,M=k.hasOwnProperty,T=(x=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",O=k.toString,D=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g?f.Buffer:void 0,L=f.Symbol,Q=f.Uint8Array,R=k.propertyIsEnumerable,j=I.splice,N=L?L.toStringTag:void 0,F=Object.getOwnPropertySymbols,z=P?P.isBuffer:void 0,H=(C=Object.keys,_=Object,function(e){return C(_(e))}),U=ve(f,"DataView"),G=ve(f,"Map"),V=ve(f,"Promise"),W=ve(f,"Set"),q=ve(f,"WeakMap"),Y=ve(Object,"create"),K=we(U),$=we(G),J=we(V),X=we(W),Z=we(q),ee=L?L.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function oe(e){var t=this.__data__=new re(e);this.size=t.size}function se(e,t){var n=_e(e),r=!n&&Ce(e),i=!n&&!r&&Ie(e),a=!n&&!r&&!i&&Me(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!M.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||be(l,c))||s.push(l);return s}function ce(e,t){for(var n=e.length;n--;)if(xe(e[n][0],t))return n;return-1}function le(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?function(e){var t=M.call(e,N),n=e[N];try{e[N]=void 0;var r=!0}catch(e){}var i=O.call(e);return r&&(t?e[N]=n:delete e[N]),i}(e):function(e){return O.call(e)}(e)}function ue(e){return Be(e)&&le(e)==t}function he(e,n,r,s,c){return e===n||(null==e||null==n||!Be(e)&&!Be(n)?e!=e&&n!=n:function(e,n,r,s,c,l){var u=_e(e),h=_e(n),f=u?"[object Array]":Ae(e),d=h?"[object Array]":Ae(n),p=(f=f==t?a:f)==a,g=(d=d==t?a:d)==a,m=f==d;if(m&&Ie(e)){if(!Ie(n))return!1;u=!0,p=!1}if(m&&!p)return l||(l=new oe),u||Me(e)?pe(e,n,r,s,c,l):function(e,t,n,r,a,s,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Q(e),new Q(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var l=b;case o:var u=1&r;if(l||(l=w),e.size!=t.size&&!u)return!1;var h=c.get(e);if(h)return h==t;r|=2,c.set(e,t);var f=pe(l(e),l(t),r,a,s,c);return c.delete(e),f;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,n,f,r,s,c,l);if(!(1&r)){var v=p&&M.call(e,"__wrapped__"),y=g&&M.call(n,"__wrapped__");if(v||y){var A=v?e.value():e,x=y?n.value():n;return l||(l=new oe),c(A,x,r,s,l)}}return!!m&&(l||(l=new oe),function(e,t,n,r,i,a){var o=1&n,s=ge(e),c=s.length;if(c!=ge(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:M.call(t,u)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var f=!0;a.set(e,t),a.set(t,e);for(var d=o;++l<c;){var p=e[u=s[l]],g=t[u];if(r)var m=o?r(g,p,u,t,e,a):r(p,g,u,e,t,a);if(!(void 0===m?p===g||i(p,g,n,r,a):m)){f=!1;break}d||(d="constructor"==u)}if(f&&!d){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f}(e,n,r,s,c,l))}(e,n,r,s,he,c))}function fe(e){return!(!Se(e)||function(e){return!!T&&T in e}(e))&&(Ee(e)?D:s).test(we(e))}function de(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||k))return H(e);var t,n,r=[];for(var i in Object(e))M.call(e,i)&&"constructor"!=i&&r.push(i);return r}function pe(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,h=!0,f=2&n?new ae:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var d=e[u],p=t[u];if(r)var g=o?r(p,d,u,t,e,a):r(d,p,u,e,t,a);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!A(t,(function(e,t){if(o=t,!f.has(o)&&(d===e||i(d,e,n,r,a)))return f.push(t);var o}))){h=!1;break}}else if(d!==p&&!i(d,p,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ge(e){return function(e,t,n){var r=t(e);return _e(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Te,ye)}function me(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}ne.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return M.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:M.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=ce(t,e);return!(n<0||(n==t.length-1?t.pop():j.call(t,n,1),--this.size,0))},re.prototype.get=function(e){var t=this.__data__,n=ce(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return ce(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(G||re),string:new ne}},ie.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return me(this,e).get(e)},ie.prototype.has=function(e){return me(this,e).has(e)},ie.prototype.set=function(e,t){var n=me(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ae.prototype.add=ae.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ae.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.clear=function(){this.__data__=new re,this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},oe.prototype.get=function(e){return this.__data__.get(e)},oe.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ye=F?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(F(e),(function(t){return R.call(e,t)})))}:function(){return[]},Ae=le;function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function we(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xe(e,t){return e===t||e!=e&&t!=t}(U&&"[object DataView]"!=Ae(new U(new ArrayBuffer(1)))||G&&Ae(new G)!=i||V&&"[object Promise]"!=Ae(V.resolve())||W&&Ae(new W)!=o||q&&"[object WeakMap]"!=Ae(new q))&&(Ae=function(e){var t=le(e),n=t==a?e.constructor:void 0,r=n?we(n):"";if(r)switch(r){case K:return"[object DataView]";case $:return i;case J:return"[object Promise]";case X:return o;case Z:return"[object WeakMap]"}return t});var Ce=ue(function(){return arguments}())?ue:function(e){return Be(e)&&M.call(e,"callee")&&!R.call(e,"callee")},_e=Array.isArray,Ie=z||function(){return!1};function Ee(e){if(!Se(e))return!1;var t=le(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Se(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Be(e){return null!=e&&"object"==typeof e}var Me=y?function(e){return function(t){return e(t)}}(y):function(e){return Be(e)&&ke(e.length)&&!!l[le(e)]};function Te(e){return null!=(t=e)&&ke(t.length)&&!Ee(t)?se(e):de(e);var t}n.exports=function(e,t){return he(e,t)}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,n,r){(function(e){(function(){"use strict";var t="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=t||r||Function("return this")(),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,c=i.Symbol,l=c?c.toStringTag:void 0;function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?function(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[l]=n:delete e[l]),i}(e):function(e){return s.call(e)}(e)}n.exports=function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=u(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],448:[function(e,t,n){"use strict";t.exports=function(e){return void 0===e}},{}],449:[function(e,n,r){(function(e){(function(){"use strict";var t=/^\[object .+?Constructor\]$/,r="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();function o(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}(e,c,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function s(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function c(e){return e!=e}function l(e,t){return e.has(t)}function u(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var h,f=Array.prototype,d=Function.prototype,p=Object.prototype,g=a["__core-js_shared__"],m=(h=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",v=d.toString,y=p.hasOwnProperty,A=p.toString,b=RegExp("^"+v.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=f.splice,x=D(a,"Map"),C=D(a,"Set"),_=D(Object,"create");function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=e?e.length:0;for(this.__data__=new k;++t<n;)this.add(e[t])}function B(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function M(e){return!(!P(e)||(n=e,m&&m in n))&&(function(e){var t=P(e)?A.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?b:t).test(function(e){if(null!=e){try{return v.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var n}I.prototype.clear=function(){this.__data__=_?_(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:y.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=_&&void 0===t?"__lodash_hash_undefined__":t,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():w.call(t,n,1),0))},E.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},E.prototype.has=function(e){return B(this.__data__,e)>-1},E.prototype.set=function(e,t){var n=this.__data__,r=B(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new I,map:new(x||E),string:new I}},k.prototype.delete=function(e){return O(this,e).delete(e)},k.prototype.get=function(e){return O(this,e).get(e)},k.prototype.has=function(e){return O(this,e).has(e)},k.prototype.set=function(e,t){return O(this,e).set(e,t),this},S.prototype.add=S.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},S.prototype.has=function(e){return this.__data__.has(e)};var T=C&&1/u(new C([,-0]))[1]==1/0?function(e){return new C(e)}:function(){};function O(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function D(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return M(n)?n:void 0}function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}n.exports=function(e){return e&&e.length?function(e,t,n){var r=-1,i=o,a=e.length,c=!0,h=[],f=h;if(n)c=!1,i=s;else if(a>=200){var d=t?null:T(e);if(d)return u(d);c=!1,i=l,f=new S}else f=t?[]:h;e:for(;++r<a;){var p=e[r],g=t?t(p):p;if(p=n||0!==p?p:0,c&&g==g){for(var m=f.length;m--;)if(f[m]===g)continue e;t&&f.push(g),h.push(p)}else i(f,g,n)||(f!==h&&f.push(g),h.push(p))}return h}(e):[]}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,n){"use strict";var r=e("inherits"),i=e("hash-base"),a=e("safe-buffer").Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,a,o){return c(e+(t&n|~t&r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return c(e+(t&r|n&~r)+i+a|0,o)+t|0}function h(e,t,n,r,i,a,o){return c(e+(t^n^r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return c(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=l(n,r,i,a,e[0],3614090360,7),a=l(a,n,r,i,e[1],3905402710,12),i=l(i,a,n,r,e[2],606105819,17),r=l(r,i,a,n,e[3],3250441966,22),n=l(n,r,i,a,e[4],4118548399,7),a=l(a,n,r,i,e[5],1200080426,12),i=l(i,a,n,r,e[6],2821735955,17),r=l(r,i,a,n,e[7],4249261313,22),n=l(n,r,i,a,e[8],1770035416,7),a=l(a,n,r,i,e[9],2336552879,12),i=l(i,a,n,r,e[10],4294925233,17),r=l(r,i,a,n,e[11],2304563134,22),n=l(n,r,i,a,e[12],1804603682,7),a=l(a,n,r,i,e[13],4254626195,12),i=l(i,a,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=h(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=h(a,n,r,i,e[8],2272392833,11),i=h(i,a,n,r,e[11],1839030562,16),r=h(r,i,a,n,e[14],4259657740,23),n=h(n,r,i,a,e[1],2763975236,4),a=h(a,n,r,i,e[4],1272893353,11),i=h(i,a,n,r,e[7],4139469664,16),r=h(r,i,a,n,e[10],3200236656,23),n=h(n,r,i,a,e[13],681279174,4),a=h(a,n,r,i,e[0],3936430074,11),i=h(i,a,n,r,e[3],3572445317,16),r=h(r,i,a,n,e[6],76029189,23),n=h(n,r,i,a,e[9],3654602809,4),a=h(a,n,r,i,e[12],3873151461,11),i=h(i,a,n,r,e[15],530742520,16),n=f(n,r=h(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,n,r,i,e[7],1126891415,10),i=f(i,a,n,r,e[14],2878612391,15),r=f(r,i,a,n,e[5],4237533241,21),n=f(n,r,i,a,e[12],1700485571,6),a=f(a,n,r,i,e[3],2399980690,10),i=f(i,a,n,r,e[10],4293915773,15),r=f(r,i,a,n,e[1],2240044497,21),n=f(n,r,i,a,e[8],1873313359,6),a=f(a,n,r,i,e[15],4264355552,10),i=f(i,a,n,r,e[6],2734768916,15),r=f(r,i,a,n,e[13],1309151649,21),n=f(n,r,i,a,e[4],4149444226,6),a=f(a,n,r,i,e[11],3174756917,10),i=f(i,a,n,r,e[2],718787259,15),r=f(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("brorand");function a(e){this.rand=e||new i.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(a);t>0;t--){var h=this._randrange(new r(2),s);n&&n(h);var f=h.toRed(a).redPow(l);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var d=1;d<c;d++){if(0===(f=f.redSqr()).cmp(o))return!1;if(0===f.cmp(u))break}if(d===c)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),h=e.gcd(u);if(0!==h.cmpn(1))return h;var f=u.toRed(i).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(l)){for(var d=1;d<s;d++){if(0===(f=f.redSqr()).cmp(a))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(l))break}if(d===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],453:[function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,n){"use strict";var r=n;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],455:[function(e,t,n){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,n){"use strict";var r=e("asn1.js");n.certificate=e("./certificate");var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));n.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));n.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));n.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));n.PrivateKey=c;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));n.EncryptedPrivateKey=l;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));n.DSAPrivateKey=u,n.DSAparam=r.define("DSAparam",(function(){this.int()}));var h=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));n.ECPrivateKey=h;var f=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));n.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(e,t,n){"use strict";var r=e("asn1.js"),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),h=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(h),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=p},{"asn1.js":170}],458:[function(e,t,n){"use strict";var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),s=e("browserify-aes"),c=e("safe-buffer").Buffer;t.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var h="aes"+u[1],f=c.from(u[2],"hex"),d=c.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(t,f.slice(0,8),parseInt(u[1],10)).key,g=[],m=s.createDecipheriv(h,p,f);g.push(m.update(d)),g.push(m.final()),n=c.concat(g)}else{var v=l.match(a);n=c.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,n){"use strict";var r=e("./asn1"),i=e("./aesid.json"),a=e("./fixProc"),o=e("browserify-aes"),s=e("pbkdf2"),c=e("safe-buffer").Buffer;function l(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,l,u=a(e,t),h=u.tag,f=u.data;switch(h){case"CERTIFICATE":l=r.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(f,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":f=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,h=parseInt(a.split("-")[1],10)/8,f=s.pbkdf2Sync(t,n,r,h,"sha1"),d=o.createDecipheriv(a,f,l),p=[];return p.push(d.update(u)),p.push(d.final()),c.concat(p)}(f=r.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=r.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+h)}}t.exports=l,l.signature=r.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,n){"use strict";n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,n,r){(function(t){(function(){"use strict";var r,i,a=e("safe-buffer").Buffer,o=e("./precondition"),s=e("./default-encoding"),c=e("./sync"),l=e("./to-buffer"),u=t.crypto&&t.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function d(){return i||(i=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function p(e,t,n,r,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return a.from(e)}))}n.exports=function(e,n,i,g,m,v){"function"==typeof m&&(v=m,m=void 0);var y=h[(m=m||"sha1").toLowerCase()];if(y&&"function"==typeof t.Promise){if(o(i,g),e=l(e,s,"Password"),n=l(n,s,"Salt"),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){d()((function(){t(null,e)}))}),(function(e){d()((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var n=p(r=r||a.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=n,n}(y).then((function(t){return t?p(e,n,i,g,y):c(e,n,i,g,m)})),v)}else d()((function(){var t;try{t=c(e,n,i,g,m)}catch(e){return v(e)}v(null,t)}))}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,n,r){(function(e,t){(function(){"use strict";var r;r=t.process&&t.process.browser?"utf-8":t.process&&t.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",n.exports=r}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,n){"use strict";var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,n){"use strict";var r=e("create-hash/md5"),i=e("ripemd160"),a=e("sha.js"),o=e("safe-buffer").Buffer,s=e("./precondition"),c=e("./default-encoding"),l=e("./to-buffer"),u=o.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,n){var s=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length<c&&(t=o.concat([t,u],c));for(var l=o.allocUnsafe(c+h[e]),f=o.allocUnsafe(c+h[e]),d=0;d<c;d++)l[d]=54^t[d],f[d]=92^t[d];var p=o.allocUnsafe(c+n+4);l.copy(p,0,0,c),this.ipad1=p,this.ipad2=l,this.opad=f,this.alg=e,this.blocksize=c,this.hash=s,this.size=h[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,n,r,i){s(n,r);var a=new f(i=i||"sha1",e=l(e,c,"Password"),(t=l(t,c,"Salt")).length),u=o.allocUnsafe(r),d=o.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var p=0,g=h[i],m=Math.ceil(r/g),v=1;v<=m;v++){d.writeUInt32BE(v,t.length);for(var y=a.run(d,a.ipad1),A=y,b=1;b<n;b++){A=a.run(A,a.ipad2);for(var w=0;w<g;w++)y[w]^=A[w]}y.copy(u,p),p+=g}return u}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,n){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,n){"use strict";var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,u=[],h=!1,f=-1;function d(){h&&l&&(h=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!h){var e=c(d);h=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new g(e,t)),1!==u.length||h||c(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],468:[function(e,t,n){"use strict";n.publicEncrypt=e("./publicEncrypt"),n.privateDecrypt=e("./privateDecrypt"),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,n){"use strict";var r=e("create-hash"),i=e("safe-buffer").Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],471:[function(e,t,n){"use strict";var r=e("parse-asn1"),i=e("./mgf"),a=e("./xor"),o=e("bn.js"),s=e("browserify-rsa"),c=e("create-hash"),l=e("./withPublic"),u=e("safe-buffer").Buffer;t.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var f,d=r(e),p=d.modulus.byteLength();if(t.length>p||new o(t).cmp(d.modulus)>=0)throw new Error("decryption error");f=n?l(new o(t),d):s(t,d);var g=u.alloc(p-f.length);if(f=u.concat([g,f],p),4===h)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),l=t.slice(o+1),h=a(s,i(l,o)),f=a(l,i(h,n-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}(r,f.slice(0,o)))throw new Error("decryption error");for(var d=o;0===f[d];)d++;if(1!==f[d++])throw new Error("decryption error");return f.slice(d)}(d,f);if(1===h)return function(e,t,n){for(var r=t.slice(0,2),i=2,a=0;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(i)}(0,f,n);if(3===h)return f;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,n){"use strict";var r=e("parse-asn1"),i=e("randombytes"),a=e("create-hash"),o=e("./mgf"),s=e("./xor"),c=e("bn.js"),l=e("./withPublic"),u=e("browserify-rsa"),h=e("safe-buffer").Buffer;t.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var d,p=r(e);if(4===f)d=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=a("sha1").update(h.alloc(0)).digest(),u=l.length,f=2*u;if(r>n-f-2)throw new Error("message too long");var d=h.alloc(n-r-f-2),p=n-u-1,g=i(u),m=s(h.concat([l,d,h.alloc(1,1),t],p),o(g,p)),v=s(g,o(m,u));return new c(h.concat([h.alloc(1),v,m],n))}(p,t);else if(1===f)d=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");return r=n?h.alloc(o-a-3,255):function(e){for(var t,n=h.allocUnsafe(e),r=0,a=i(2*e),o=0;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3),new c(h.concat([h.from([0,n?1:2]),r,h.alloc(1),t],o))}(p,t,n);else{if(3!==f)throw new Error("unknown padding");if((d=new c(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?u(d,p):l(d,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},{}],475:[function(e,n,r){(function(t,r){(function(){"use strict";var i=e("safe-buffer").Buffer,a=r.crypto||r.msCrypto;a&&a.getRandomValues?n.exports=function(e,n){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)a.getRandomValues(r.slice(o,o+65536));else a.getRandomValues(r);return"function"==typeof n?t.nextTick((function(){n(null,r)})):r}:n.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,n,r){(function(t,n){(function(){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=e("safe-buffer"),o=e("randombytes"),s=a.Buffer,c=a.kMaxLength,l=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function h(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function d(e,n,r,i){if(t.browser){var a=e.buffer,s=new Uint8Array(a,n,r);return l.getRandomValues(s),i?void t.nextTick((function(){i(null,e)})):e}if(!i)return o(r).copy(e,n),e;o(r,(function(t,r){if(t)return i(t);r.copy(e,n),i(null,e)}))}l&&l.getRandomValues||!t.browser?(r.randomFill=function(e,t,r,i){if(!(s.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(t,e.length),f(r,t,e.length),d(e,t,r,i)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(t,e.length),void 0===r&&(r=e.length-t),f(r,t,e.length),d(e,t,r)}):(r.randomFill=i,r.randomFillSync=i)}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o,s;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(a(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(a(t,"type"))}return s+". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},{}],478:[function(e,t,n){(function(n){(function(){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=l;var i=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(l,i);for(var o=r(a.prototype),s=0;s<o.length;s++){var c=o[s];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,n){"use strict";t.exports=i;var r=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}e("inherits")(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,n,r){(function(t,r){(function(){"use strict";var i;n.exports=I,I.ReadableState=_,e("events").EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),c=e("buffer").Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=e("util");a=u&&u.debuglog?u.debuglog("stream"):function(){};var h,f,d,p=e("./internal/streams/buffer_list"),g=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,y=v.ERR_INVALID_ARG_TYPE,A=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(I,s);var x=g.errorOrDestroy,C=["error","close","destroy","pause","resume"];function _(t,n,r){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function I(t){if(i=i||e("./_stream_duplex"),!(this instanceof I))return new I(t);var n=this instanceof i;this._readableState=new _(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function E(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)x(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)s.endEmitted?x(e,new w):k(e,s,t,!0);else if(s.ended)x(e,new A);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?k(e,s,t,!1):T(e,s)):k(e,s,t,!1)}else r||(s.reading=!1,T(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function k(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&B(e)),T(e,t)}function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function B(e){var n=e._readableState;a("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(a("emitReadable",n.flowing),n.emittedReadable=!0,t.nextTick(M,e))}function M(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Q(e)}function T(e,n){n.readingMore||(n.readingMore=!0,t.nextTick(O,e,n))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function D(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){a("readable nexttick read 0"),e.read(0)}function L(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Q(e),t.flowing&&!t.reading&&e.read(0)}function Q(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function j(e){var n=e._readableState;a("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,t.nextTick(N,n,e))}function N(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function F(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),I.prototype.destroy=g.destroy,I.prototype._undestroy=g.undestroy,I.prototype._destroy=function(e,t){t(e)},I.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),E(this,e,t,!1,n)},I.prototype.unshift=function(e){return E(this,e,null,!0,!1)},I.prototype.isPaused=function(){return!1===this._readableState.flowing},I.prototype.setEncoding=function(t){h||(h=e("string_decoder/").StringDecoder);var n=new h(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},I.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):B(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&j(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?R(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&j(this)),null!==r&&this.emit("data",r),r},I.prototype._read=function(e){x(this,new b("_read()"))},I.prototype.pipe=function(e,n){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,a("pipe count=%d opts=%j",i.pipesCount,n);var s=n&&!1===n.end||e===t.stdout||e===t.stderr?m:l;function c(t,n){a("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",f),h=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){a("onend"),e.end()}i.endEmitted?t.nextTick(s):r.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,Q(e))}}(r);e.on("drain",u);var h=!1;function f(t){a("ondata");var n=e.write(t);a("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!h&&(a("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&x(e,t)}function p(){e.removeListener("finish",g),m()}function g(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",g),e.emit("pipe",r),i.flowing||(a("pipe resume"),r.resume()),e},I.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=F(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},I.prototype.on=function(e,n){var r=s.prototype.on.call(this,e,n),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,a("on readable",i.length,i.reading),i.length?B(this):i.reading||t.nextTick(P,this))),r},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,n){var r=s.prototype.removeListener.call(this,e,n);return"readable"===e&&t.nextTick(D,this),r},I.prototype.removeAllListeners=function(e){var n=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(D,this),n},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,n){n.resumeScheduled||(n.resumeScheduled=!0,t.nextTick(L,e,n))}(this,e)),e.paused=!1,this},I.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<C.length;o++)e.on(C[o],this.emit.bind(this,C[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(I.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),I._fromList=R,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(I.from=function(t,n){return void 0===d&&(d=e("./internal/streams/from")),d(I,t,n)})}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,n){"use strict";t.exports=u;var r=e("../errors").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=e("./_stream_duplex");function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,n,r){(function(t,r){(function(){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var a;n.exports=I,I.WritableState=_;var o,s={deprecate:e("util-deprecate")},c=e("./internal/streams/stream"),l=e("buffer").Buffer,u=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,p=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,A=d.ERR_STREAM_NULL_VALUES,b=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,x=h.errorOrDestroy;function C(){}function _(n,r,o){a=a||e("./_stream_duplex"),n=n||{},"boolean"!=typeof o&&(o=r instanceof a),this.objectMode=!!n.objectMode,o&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=f(this,n,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===n.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,n){var r=e._writableState,i=r.sync,a=r.writecb;if("function"!=typeof a)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),n)!function(e,n,r,i,a){--n.pendingcb,r?(t.nextTick(a,i),t.nextTick(T,e,n),e._writableState.errorEmitted=!0,x(e,i)):(a(i),e._writableState.errorEmitted=!0,x(e,i),T(e,n))}(e,r,i,n,a);else{var o=B(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),i?t.nextTick(k,e,r,o,a):k(e,r,o,a)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function I(t){var n=this instanceof(a=a||e("./_stream_duplex"));if(!n&&!o.call(I,this))return new I(t);this._writableState=new _(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function E(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function k(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),T(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,E(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function B(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,n){var r=B(n);if(r&&(function(e,n){n.prefinished||n.finalCalled||("function"!=typeof e._final||n.destroyed?(n.prefinished=!0,e.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,t.nextTick(M,e,n)))}(e,n),0===n.pendingcb&&(n.finished=!0,e.emit("finish"),n.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}e("inherits")(I,c),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===I&&e&&e._writableState instanceof _}})):o=function(e){return e instanceof this},I.prototype.pipe=function(){x(this,new v)},I.prototype.write=function(e,n,r){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,l.isBuffer(i)||i instanceof u);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof n&&(r=n,n=null),s?n="buffer":n||(n=a.defaultEncoding),"function"!=typeof r&&(r=C),a.ending?function(e,n){var r=new b;x(e,r),t.nextTick(n,r)}(this,r):(s||function(e,n,r,i){var a;return null===r?a=new A:"string"==typeof r||n.objectMode||(a=new p("chunk",["string","Buffer"],r)),!a||(x(e,a),t.nextTick(i,a),!1)}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,a);return c}(this,a,s,e,n,r)),o},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,n){n(new g("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,n,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,n=null):"function"==typeof n&&(r=n,n=null),null!=e&&this.write(e,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,n,r){n.ending=!0,T(e,n),r&&(n.finished?t.nextTick(r):e.once("finish",r)),n.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=h.destroy,I.prototype._undestroy=h.undestroy,I.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,n){(function(n){(function(){"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=e("./end-of-stream"),o=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var n=e[f].read();null!==n&&(e[u]=null,e[o]=null,e[s]=null,t(d(n,!1)))}}function g(e){n.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(r={get stream(){return this[f]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){n.nextTick((function(){e[c]?r(e[c]):t(d(void 0,!0))}))}));var r,i=this[u];if(i)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[l]?n(d(void 0,!0)):t[h](n,r)}),r)}}(i,this));else{var a=this[f].read();if(null!==a)return Promise.resolve(d(a,!1));r=new Promise(this[h])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[f].destroy(null,(function(e){e?n(e):t(d(void 0,!0))}))}))})),r),m);t.exports=function(e){var t,n=Object.create(v,(i(t={},f,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var r=n[f].read();r?(n[u]=null,n[o]=null,n[s]=null,e(d(r,!1))):(n[o]=e,n[s]=t)},writable:!0}),t));return n[u]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[o]=null,n[s]=null,t(e)),void(n[c]=e)}var r=n[o];null!==r&&(n[u]=null,n[o]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0})),e.on("readable",g.bind(null,n)),n}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=e("buffer").Buffer,l=e("util").inspect,u=l&&l.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,n,r,i=c.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,c.prototype.copy.call(t,n,r),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,n){(function(e){(function(){"use strict";function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,a){var o=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(a?a(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!a&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):a?(e.nextTick(r,o),a(t)):e.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,o||a.call(t)},h=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,h=!0,s||a.call(t)},d=function(e){a.call(t,e)},p=function(){var e;return o&&!h?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},g=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",p),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",f),t.on("finish",u),!1!==n.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,n){"use strict";t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,n){"use strict";var r,i=e("../../../errors").codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(t,n,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;t.on("close",(function(){s=!0})),void 0===r&&(r=e("./end-of-stream")),r(t,{readable:n,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var c=!1;return function(e){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new o("pipe"))}}function l(e){e()}function u(e,t){return e.pipe(t)}function h(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}t.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=h(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return c(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(l),a||(o.forEach(l),i(r))}))}));return t.reduce(u)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,n){"use strict";(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,n){"use strict";var r=function(e){var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var a=t&&t.prototype instanceof f?t:f,o=Object.create(a.prototype),s=new I(i||[]);return r(o,"_invoke",{value:w(e,n,s)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h={};function f(){}function d(){}function p(){}var g={};c(g,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==t&&n.call(v,a)&&(g=v);var y=p.prototype=f.prototype=Object.create(g);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var i;r(this,"_invoke",{value:function(r,a){function o(){return new t((function(i,o){!function r(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(h).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(r,a,i,o)}))}return i=i?i.then(o,o):o()}})}function w(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return k()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},A(b.prototype),c(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},A(y),c(y,s,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{}],493:[function(e,t,n){"use strict";var r=e("buffer").Buffer,i=e("inherits"),a=e("hash-base"),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function g(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function m(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function A(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}i(d,a),d.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,d=0|this._e,b=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,_=0|this._e,I=0;I<80;I+=1){var E,k;I<16?(E=g(n,r,i,a,d,e[s[I]],h[0],l[I]),k=A(b,w,x,C,_,e[c[I]],f[0],u[I])):I<32?(E=m(n,r,i,a,d,e[s[I]],h[1],l[I]),k=y(b,w,x,C,_,e[c[I]],f[1],u[I])):I<48?(E=v(n,r,i,a,d,e[s[I]],h[2],l[I]),k=v(b,w,x,C,_,e[c[I]],f[2],u[I])):I<64?(E=y(n,r,i,a,d,e[s[I]],h[3],l[I]),k=m(b,w,x,C,_,e[c[I]],f[3],u[I])):(E=A(n,r,i,a,d,e[s[I]],h[4],l[I]),k=g(b,w,x,C,_,e[c[I]],f[4],u[I])),n=d,d=a,a=p(i,10),i=r,r=E,b=_,_=C,C=p(x,10),x=w,w=k}var S=this._b+i+C|0;this._b=this._c+a+_|0,this._c=this._d+d+b|0,this._d=this._e+n+w|0,this._e=this._a+r+x|0,this._a=S},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,n){"use strict";
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var r=e("buffer"),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,n){(function(n){(function(){"use strict";var r,i=e("buffer"),a=i.Buffer,o={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(o[r]=i[r]);var s=o.Buffer={};for(r in a)a.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=a[r]);if(o.Buffer.prototype=a.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,n)}),s.alloc||(s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=a(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!o.kStringMaxLength)try{o.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const r=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),a=e("xmlchars/xmlns/1.0/ed3");var o=r.isS,s=r.isChar,c=r.isNameStartChar,l=r.isNameChar,u=r.S_LIST,h=r.NAME_RE,f=i.isChar,d=a.isNCNameStartChar,p=a.isNCNameChar,g=a.NC_NAME_RE;const m="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:m,xmlns:v},A={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},b=e=>34===e||39===e,w=[34,39],x=[...w,91,62],C=[...w,60,93],_=[61,63,...u],I=[...u,62,38,60];function E(e,t,n){switch(t){case"xml":n!==m&&e.fail(`xml prefix must be bound to ${m}.`);break;case"xmlns":n!==v&&e.fail(`xmlns prefix must be bound to ${v}.`)}switch(n){case v:e.fail(""===t?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${v}.`);break;case m:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}}}const k=e=>g.test(e),S=e=>h.test(e);n.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const B={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};n.SaxesParser=class{constructor(e){this.opt=null!=e?e:{},this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=d,this.nameCheck=p,this.isName=k,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);const e=this.opt.additionalNamespaces;null!=e&&(function(e,t){for(const n of Object.keys(t))E(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=c,this.nameCheck=l,this.isName=S,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(void 0===n){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(A),null===(e=this.readyHandler)||void 0===e||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[B[e]]=t}off(e){this[B[e]]=void 0}makeError(e){var t;let n=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+e)}fail(e){const t=this.makeError(e),n=this.errorHandler;if(void 0===n)throw t;return n(t),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let t=!1;null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length;const r=e.charCodeAt(n-1);!t&&(13===r||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));const{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}getCode11(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&8232!==n||9===n)return n;switch(n){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const n=e.charCodeAt(t+1);10!==n&&133!==n||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail("disallowed character."),r}getCodeNorm(){const e=this.getCode();return-2===e?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this;const{chunk:n}=this;for(;;){const r=this.getCode(),i=-2===r,a=i?10:r;if(-1===a||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=n.slice(t,this.prevI)+"\n",t=this.i)}}captureToChar(e){let{i:t}=this;const{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case-2:this.text+=n.slice(t,this.prevI)+"\n",t=this.i,r=10;break;case-1:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){const{chunk:e,i:t}=this;for(;;){const n=this.getCode();if(-1===n)return this.name+=e.slice(t),-1;if(!l(n))return this.name+=e.slice(t,this.prevI),-2===n?10:n}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(-1===e||!o(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=s,this.getCode=this.getCode10):(this.isChar=f,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e;const t=this.captureTo(x);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:b(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){const e=this.captureTo(C);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:b(e)&&(this.state=5,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:t}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+"\n",e=this.i;break;case 59:{const{entityReturnState:n}=this,r=this.entity+t.slice(e,this.prevI);let i;this.state=n,""===r?(this.fail("empty entity name."),i="&;"):(i=this.parseEntity(r),this.entity=""),13===n&&void 0===this.textHandler||(this.text+=i);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(c(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var e;const t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(t),this.state=17)}sCommentEnded(){const e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(e),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const e=this.getCodeNorm();93===e?this.state=22:(this.text+="]"+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):63===e||o(e)?(this.fail("processing instruction without a target."),this.state=63===e?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){const{chunk:e,i:t}=this;for(;;){const n=this.getCodeNorm();if(-1===n)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);const r=63===n;r||o(n)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=r?33:27):this.state=r?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(0===this.text.length){const e=this.getCodeNorm();63===e?this.state=26:o(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;const t=this.getCodeNorm();if(62===t){const{piTarget:t}=this;"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:t,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===t?this.text+="?":(this.text+="?"+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();63!==e?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}sXMLDeclName(){const e=this.captureTo(_);if(63===e)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(o(e)||61===e){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=61===e?30:29}}sXMLDeclEq(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");o(e)||(61!==e&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");o(e)||(b(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const e=this.captureTo([this.q,63]);if(63===e)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1===e)return;const t=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}sXMLDeclSeparator(){const e=this.getCodeNorm();63!==e?(o(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const t=this.captureNameChars();if(-1===t)return;const n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:o(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const e=this.skipSpaces();-1!==e&&(c(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();61===e?this.state=39:o(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():c(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const e=this.getCodeNorm();b(e)?(this.q=e,this.state=40):o(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:n}=this;for(;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(n,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=t.slice(n,this.prevI)+" ",n=this.i;break;case 60:return this.text+=t.slice(n,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(n))}}sAttribValueClosed(){const e=this.getCodeNorm();o(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:c(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(I);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}sCloseTag(){const e=this.captureNameChars();62===e?this.closeTag():o(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;const{chunk:n,textHandler:r}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==r){const{text:t}=this,i=n.slice(e,this.prevI);0!==t.length?(r(t+i),this.text=""):0!==i.length&&r(i)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=n.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==r&&(this.text+=n.slice(e,this.prevI)+"\n"),e=this.i,t=0;break;case-1:void 0!==r&&(this.text+=n.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:n}=this;let r=!1;e:for(;;){const i=this.getCode();switch(i){case 60:if(this.state=15,void 0!==n){const{text:r}=this,i=t.slice(e,this.prevI);0!==r.length?(n(r+i),this.text=""):0!==i.length&&n(i)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=t.slice(e,this.prevI)),r=!0;break e;case-2:void 0!==n&&(this.text+=t.slice(e,this.prevI)+"\n"),e=this.i;break;case-1:void 0!==n&&(this.text+=t.slice(e));break e;default:o(i)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,t){var n;const{prefix:r,local:i}=this.qname(e),a={name:e,prefix:r,local:i,value:t};if(this.attribList.push(a),null===(n=this.attributeHandler)||void 0===n||n.call(this,a),"xmlns"===r){const e=t.trim();"1.0"===this.currentXMLVersion&&""===e&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[i]=e,E(this,i,e)}else if("xmlns"===e){const e=t.trim();this.topNS[""]=e,E(this,"",e)}}pushAttribPlain(e,t){var n;const r={name:e,value:t};this.attribList.push(r),null===(n=this.attributeHandler)||void 0===n||n.call(this,r)}end(){var e,t;this.sawRoot||this.fail("document must contain a root element.");const{tags:n}=this;for(;n.length>0;){const e=n.pop();this.fail("unclosed tag: "+e.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");const{text:r}=this;return 0!==r.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,r),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}resolve(e){var t,n;let r=this.topNS[e];if(void 0!==r)return r;const{tags:i}=this;for(let t=i.length-1;t>=0;t--)if(r=i[t].ns[e],void 0!==r)return r;return r=this.ns[e],void 0!==r?r:null===(n=(t=this.opt).resolvePrefix)||void 0===n?void 0:n.call(t,e)}qname(e){const t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};const n=e.slice(t+1),r=e.slice(0,t);return(""===r||""===n||n.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){var e;const{attribList:t}=this,n=this.tag;{const{prefix:t,local:r}=this.qname(n.name);n.prefix=t,n.local=r;const i=n.uri=null!==(e=this.resolve(t))&&void 0!==e?e:"";""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===i&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),n.uri=t))}if(0===t.length)return;const{attributes:r}=n,i=new Set;for(const e of t){const{name:t,prefix:n,local:a}=e;let o,s;""===n?(o="xmlns"===t?v:"",s=t):(o=this.resolve(n),void 0===o&&(this.fail(`unbound namespace prefix: ${JSON.stringify(n)}.`),o=n),s=`{${o}}${a}`),i.has(s)&&this.fail(`duplicate attribute: ${s}.`),i.add(s),e.uri=o,r[t]=e}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,t=this.tag.attributes;for(const{name:n,value:r}of e)void 0!==t[n]&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this,n=this.tag;n.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,n),t.push(n),this.state=13,this.name=""}openSelfClosingTag(){var e,t,n;this.processAttribs();const{tags:r}=this,i=this.tag;i.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),null===(t=this.closeTagHandler)||void 0===t||t.call(this,i),null===(this.tag=null!==(n=r[r.length-1])&&void 0!==n?n:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:e,name:t}=this;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");const n=this.closeTagHandler;let r=e.length;for(;r-- >0;){const r=this.tag=e.pop();if(this.topNS=r.ns,null==n||n(r),r.name===t)break;this.fail("unexpected close tag.")}0===r?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if("#"!==e[0]){const t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let t=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail("malformed character entity."),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,l=Math.min(a-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(o+=l)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":494}],498:[function(e,t,n){"use strict";var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=n[h-3]^n[h-8]^n[h-14]^n[h-16];for(var f=0;f<80;++f){var d=~~(f/20),p=0|((t=r)<<5|t>>>27)+u(d,i,a,s)+c+n[f]+o[d];c=s,s=a,a=l(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function h(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var d=0;d<80;++d){var p=~~(d/20),g=l(r)+h(p,i,a,s)+c+n[d]+o[p]|0;c=s,s=a,a=u(i),i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function h(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+d(n[v-15])+n[v-16];for(var y=0;y<64;++y){var A=m+f(c)+l(c,p,g)+o[y]+n[y]|0,b=h(r)+u(r,i,a)|0;m=g,g=p,p=c,c=s+A|0,s=a,a=i,i=r,r=A+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,A=0|this._hh,b=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,_=0|this._el,I=0|this._fl,E=0|this._gl,k=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var B=t[S-30],M=t[S-30+1],T=d(B,M),O=p(M,B),D=g(B=t[S-4],M=t[S-4+1]),P=m(M,B),L=t[S-14],Q=t[S-14+1],R=t[S-32],j=t[S-32+1],N=O+Q|0,F=T+L+v(N,O)|0;F=(F=F+D+v(N=N+P|0,P)|0)+R+v(N=N+j|0,j)|0,t[S]=F,t[S+1]=N}for(var z=0;z<160;z+=2){F=t[z],N=t[z+1];var H=u(n,r,i),U=u(b,w,x),G=h(n,b),V=h(b,n),W=f(s,_),q=f(_,s),Y=o[z],K=o[z+1],$=l(s,c,y),J=l(_,I,E),X=k+q|0,Z=A+W+v(X,k)|0;Z=(Z=(Z=Z+$+v(X=X+J|0,J)|0)+Y+v(X=X+K|0,K)|0)+F+v(X=X+N|0,N)|0;var ee=V+U|0,te=G+H+v(ee,V)|0;A=y,k=E,y=c,E=I,c=s,I=_,s=a+Z+v(_=C+X|0,C)|0,a=i,C=x,i=r,x=w,r=n,w=b,n=Z+te+v(b=X+ee|0,X)|0}this._al=this._al+b|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+_|0,this._fl=this._fl+I|0,this._gl=this._gl+E|0,this._hl=this._hl+k|0,this._ah=this._ah+n+v(this._al,b)|0,this._bh=this._bh+r+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,x)|0,this._dh=this._dh+a+v(this._dl,C)|0,this._eh=this._eh+s+v(this._el,_)|0,this._fh=this._fh+c+v(this._fl,I)|0,this._gh=this._gh+y+v(this._gl,E)|0,this._hh=this._hh+A+v(this._hl,k)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,n){"use strict";t.exports=i;var r=e("events").EventEmitter;function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,n){"use strict";var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],507:[function(e,t,n){"use strict";t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=h;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(h,o);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];h.prototype[u]||(h.prototype[u]=s.prototype[u])}function h(e){if(!(this instanceof h))return new h(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,n){"use strict";t.exports=a;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,n,r){(function(t,r){(function(){"use strict";var i=e("process-nextick-args");n.exports=A;var a,o=e("isarray");A.ReadableState=y,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,u=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=Object.create(e("core-util-is"));h.inherits=e("inherits");var f=e("util"),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var p,g=e("./internal/streams/BufferList"),m=e("./internal/streams/destroy");h.inherits(A,c);var v=["error","close","destroy","pause","resume"];function y(t,n){t=t||{};var r=n instanceof(a=a||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function A(t){if(a=a||e("./_stream_duplex"),!(this instanceof A))return new A(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function b(e,t,n,r,i){var a,o=e._readableState;return null===t?(o.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}}(e,o)):(i||(a=function(e,t){var n,r;return r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):I(e,o)):w(e,o,t,!1))):r||(o.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),I(e,t)}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(_,e):_(e))}function _(e){d("emit readable"),e.emit("readable"),B(e)}function I(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function k(e){d("readable nexttick read 0"),e.read(0)}function S(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0==(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function T(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=m.destroy,A.prototype._undestroy=m.undestroy,A.prototype._destroy=function(e,t){this.push(null),t(e)},A.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},A.prototype.unshift=function(e){return b(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},A.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):C(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&T(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&T(this)),null!==r&&this.emit("data",r),r},A.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(e,n){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,n);var c=n&&!1===n.end||e===t.stdout||e===t.stderr?A:u;function l(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",l),r.removeListener("end",u),r.removeListener("end",A),r.removeListener("data",g),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function u(){d("onend"),e.end()}a.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",l);var h=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,B(e))}}(r);e.on("drain",h);var f=!1,p=!1;function g(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==D(a.pipes,e))&&!f&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),r.pause())}function m(t){d("onerror",t),A(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),A()}function y(){d("onfinish"),e.removeListener("close",v),A()}function A(){d("unpipe"),r.unpipe(e)}return r.on("data",g),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",v),e.once("finish",y),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=D(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},A.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(k,this))}return n},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(S,e,t))}(this,e)),this},A.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<v.length;a++)e.on(v[a],this.emit.bind(this,v[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=M}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,n,r){(function(t,r,i){(function(){"use strict";var a=e("process-nextick-args");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}n.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;y.WritableState=v;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var u,h={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},g=e("./internal/streams/destroy");function m(){}function v(t,n){s=s||e("./_stream_duplex"),t=t||{};var r=n instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(_,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),_(e,t))}(e,n,r,t,i);else{var o=x(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(b,e,n,o,i):b(e,n,o,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(t){if(s=s||e("./_stream_duplex"),!(u.call(y,this)||this instanceof s))return new y(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),_(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,A(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),_(e,t)}))}function _(e,t){var n=x(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(y,f),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===y&&e&&e._writableState instanceof v}})):u=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return c}(this,i,s,e,t,n)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i=r.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=i,n=o,a.data.copy(t,n),o+=a.data.length,a=a.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,n){"use strict";var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:422}],516:[function(e,t,n){"use strict";t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,n){"use strict";(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,n){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,n){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,n){arguments[4][217][0].apply(n,arguments)},{buffer:220,dup:217}],521:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,n){(function(t,r){(function(){"use strict";var i=e("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},c=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,n,r){(function(e){(function(){"use strict";function t(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}n.exports=function(e,n){if(t("noDeprecation"))return e;var r=!1;return function(){if(!r){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation"),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,n){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],526:[function(e,t,n){"use strict";t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,n,r){(function(t,n){(function(){"use strict";var i=/%[sdj%]/g;r.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<a;c=r[++n])g(c)||!b(c)?o+=" "+c:o+=" "+s(c);return o},r.deprecate=function(e,i){if(y(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return function(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation,a=!0}return e.apply(this,arguments)}};var a,o={};function s(e,t){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),u(n,e,n.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function u(e,t,n){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return v(i)||(i=u(e,i,n)),i}var a=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,t);if(a)return a;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(t);if(0===o.length){if(C(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(A(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return h(t)}var l,b="",_=!1,E=["{","}"];return d(t)&&(_=!0,E=["[","]"]),C(t)&&(b=" [Function"+(t.name?": "+t.name:"")+"]"),A(t)&&(b=" "+RegExp.prototype.toString.call(t)),w(t)&&(b=" "+Date.prototype.toUTCString.call(t)),x(t)&&(b=" "+h(t)),0!==o.length||_&&0!=t.length?n<0?A(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=_?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)I(t,String(o))?a.push(f(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(f(e,t,n,r,i,!0))})),a}(e,t,n,s,o):o.map((function(r){return f(e,t,n,s,r,_)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,b,E)):E[0]+b+E[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),I(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=g(n)?u(e,c.value,null):u(e,c.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return void 0===e}function A(e){return b(e)&&"[object RegExp]"===_(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===_(e)}function x(e){return b(e)&&("[object Error]"===_(e)||e instanceof Error)}function C(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.debuglog=function(e){return y(a)&&(a=t.env.NODE_DEBUG||""),e=e.toUpperCase(),o[e]||(new RegExp("\\b"+e+"\\b","i").test(a)?(t.pid,o[e]=function(){r.format.apply(r,arguments)}):o[e]=function(){}),o[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=p,r.isNull=g,r.isNullOrUndefined=function(e){return null==e},r.isNumber=m,r.isString=v,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=y,r.isRegExp=A,r.isObject=b,r.isDate=w,r.isError=x,r.isFunction=C,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer"),r.log=function(){},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}});var r=f(e("./v1.js")),i=f(e("./v3.js")),a=f(e("./v4.js")),o=f(e("./v5.js")),s=f(e("./nil.js")),c=f(e("./version.js")),l=f(e("./validate.js")),u=f(e("./stringify.js")),h=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,n){"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,a,o){return i((s=i(i(t,e),i(r,o)))<<(c=a)|s>>>32-c,n);var s,c}function o(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function s(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let r=0;r<n;r+=8){const n=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let n=1732584193,a=-271733879,u=-1732584194,h=271733878;for(let t=0;t<e.length;t+=16){const r=n,f=a,d=u,p=h;n=o(n,a,u,h,e[t],7,-680876936),h=o(h,n,a,u,e[t+1],12,-389564586),u=o(u,h,n,a,e[t+2],17,606105819),a=o(a,u,h,n,e[t+3],22,-1044525330),n=o(n,a,u,h,e[t+4],7,-176418897),h=o(h,n,a,u,e[t+5],12,1200080426),u=o(u,h,n,a,e[t+6],17,-1473231341),a=o(a,u,h,n,e[t+7],22,-45705983),n=o(n,a,u,h,e[t+8],7,1770035416),h=o(h,n,a,u,e[t+9],12,-1958414417),u=o(u,h,n,a,e[t+10],17,-42063),a=o(a,u,h,n,e[t+11],22,-1990404162),n=o(n,a,u,h,e[t+12],7,1804603682),h=o(h,n,a,u,e[t+13],12,-40341101),u=o(u,h,n,a,e[t+14],17,-1502002290),a=o(a,u,h,n,e[t+15],22,1236535329),n=s(n,a,u,h,e[t+1],5,-165796510),h=s(h,n,a,u,e[t+6],9,-1069501632),u=s(u,h,n,a,e[t+11],14,643717713),a=s(a,u,h,n,e[t],20,-373897302),n=s(n,a,u,h,e[t+5],5,-701558691),h=s(h,n,a,u,e[t+10],9,38016083),u=s(u,h,n,a,e[t+15],14,-660478335),a=s(a,u,h,n,e[t+4],20,-405537848),n=s(n,a,u,h,e[t+9],5,568446438),h=s(h,n,a,u,e[t+14],9,-1019803690),u=s(u,h,n,a,e[t+3],14,-187363961),a=s(a,u,h,n,e[t+8],20,1163531501),n=s(n,a,u,h,e[t+13],5,-1444681467),h=s(h,n,a,u,e[t+2],9,-51403784),u=s(u,h,n,a,e[t+7],14,1735328473),a=s(a,u,h,n,e[t+12],20,-1926607734),n=c(n,a,u,h,e[t+5],4,-378558),h=c(h,n,a,u,e[t+8],11,-2022574463),u=c(u,h,n,a,e[t+11],16,1839030562),a=c(a,u,h,n,e[t+14],23,-35309556),n=c(n,a,u,h,e[t+1],4,-1530992060),h=c(h,n,a,u,e[t+4],11,1272893353),u=c(u,h,n,a,e[t+7],16,-155497632),a=c(a,u,h,n,e[t+10],23,-1094730640),n=c(n,a,u,h,e[t+13],4,681279174),h=c(h,n,a,u,e[t],11,-358537222),u=c(u,h,n,a,e[t+3],16,-722521979),a=c(a,u,h,n,e[t+6],23,76029189),n=c(n,a,u,h,e[t+9],4,-640364487),h=c(h,n,a,u,e[t+12],11,-421815835),u=c(u,h,n,a,e[t+15],16,530742520),a=c(a,u,h,n,e[t+2],23,-995338651),n=l(n,a,u,h,e[t],6,-198630844),h=l(h,n,a,u,e[t+7],10,1126891415),u=l(u,h,n,a,e[t+14],15,-1416354905),a=l(a,u,h,n,e[t+5],21,-57434055),n=l(n,a,u,h,e[t+12],6,1700485571),h=l(h,n,a,u,e[t+3],10,-1894986606),u=l(u,h,n,a,e[t+10],15,-1051523),a=l(a,u,h,n,e[t+1],21,-2054922799),n=l(n,a,u,h,e[t+8],6,1873313359),h=l(h,n,a,u,e[t+15],10,-30611744),u=l(u,h,n,a,e[t+6],15,-1560198380),a=l(a,u,h,n,e[t+13],21,1309151649),n=l(n,a,u,h,e[t+4],6,-145523070),h=l(h,n,a,u,e[t+11],10,-1120210379),u=l(u,h,n,a,e[t+2],15,718787259),a=l(a,u,h,n,e[t+9],21,-343485551),n=i(n,r),a=i(a,f),u=i(u,d),h=i(h,p)}return[n,a,u,h]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};n.default=u},{}],530:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r},a=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};n.default=a},{"./validate.js":541}],532:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,t,n){"use strict";let r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)};const i=new Uint8Array(16)},{}],534:[function(e,t,n){"use strict";function r(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const a=new Uint32Array(80);for(let t=0;t<16;++t)a[t]=s[e][t];for(let e=16;e<80;++e)a[e]=i(a[e-3]^a[e-8]^a[e-14]^a[e-16],1);let o=n[0],c=n[1],l=n[2],u=n[3],h=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=i(o,5)+r(n,c,l,u)+h+t[n]+a[e]>>>0;h=u,u=l,l=i(c,30)>>>0,c=o,o=s}n[0]=n[0]+o>>>0,n[1]=n[1]+c>>>0,n[2]=n[2]+l>>>0,n[3]=n[3]+u>>>0,n[4]=n[4]+h>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};n.default=a},{}],535:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r};const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).substr(1));var o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};n.default=o},{"./validate.js":541}],536:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./rng.js")),i=a(e("./stringify.js"));function a(e){return e&&e.__esModule?e:{default:e}}let o,s,c=0,l=0;var u=function(e,t,n){let a=t&&n||0;const u=t||new Array(16);let h=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:s;if(null==h||null==f){const t=e.random||(e.rng||r.default)();null==h&&(h=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:l+1;const g=d-c+(p-l)/1e4;if(g<0&&void 0===e.clockseq&&(f=f+1&16383),(g<0||d>c)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=d,l=p,s=f,d+=122192928e5;const m=(1e4*(268435455&d)+p)%4294967296;u[a++]=m>>>24&255,u[a++]=m>>>16&255,u[a++]=m>>>8&255,u[a++]=255&m;const v=d/4294967296*1e4&268435455;u[a++]=v>>>8&255,u[a++]=255&v,u[a++]=v>>>24&15|16,u[a++]=v>>>16&255,u[a++]=f>>>8|128,u[a++]=255&f;for(let e=0;e<6;++e)u[a+e]=h[e];return t||(0,i.default)(u)};n.default=u},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./v35.js")),i=a(e("./md5.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v3",48,i.default);n.default=o},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){function a(e,a,o,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof a&&(a=(0,i.default)(a)),16!==a.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(a),c.set(e,a.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){s=s||0;for(let e=0;e<16;++e)o[s+e]=c[e];return o}return(0,r.default)(c)}try{a.name=e}catch(e){}return a.DNS=o,a.URL=s,a},n.URL=n.DNS=void 0;var r=a(e("./stringify.js")),i=a(e("./parse.js"));function a(e){return e&&e.__esModule?e:{default:e}}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=o;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=s},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./rng.js")),i=a(e("./stringify.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t,n){const a=(e=e||{}).random||(e.rng||r.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.default)(a)};n.default=o},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./v35.js")),i=a(e("./sha1.js"));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v5",80,i.default);n.default=o},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./regex.js"))&&r.__esModule?r:{default:r},a=function(e){return"string"==typeof e&&i.default.test(e)};n.default=a},{"./regex.js":532}],542:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("./validate.js"))&&r.__esModule?r:{default:r},a=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};n.default=a},{"./validate.js":541}],543:[function(e,t,n){"use strict";
/**
 * Character classes and associated utilities for the 5th edition of XML 1.0.
 *
 * @author Louis-Dominique Dubeau
 * @license MIT
 * @copyright Louis-Dominique Dubeau
 */function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="\t\n\r -퟿-�𐀀-􏿿",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,n){"use strict";
/**
 * Character classes and associated utilities for the 2nd edition of XML 1.1.
 *
 * @author Louis-Dominique Dubeau
 * @license MIT
 * @copyright Louis-Dominique Dubeau
 */function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="-퟿-�𐀀-􏿿",n.RESTRICTED_CHAR="-\b\v\f---",n.S=" \t\r\n",n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u"),n.S_LIST=[32,10,13,9],n.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},n.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},n.isS=function(e){return 32===e||10===e||13===e||9===e},n.isNameStartChar=r,n.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,n){"use strict";
/**
 * Character class utilities for XML NS 1.0 edition 3.
 *
 * @author Louis-Dominique Dubeau
 * @license MIT
 * @copyright Louis-Dominique Dubeau
 */function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u"),n.isNCNameStartChar=r,n.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)}).call(this,n("c8ba"))
/***/},
/***/e8b5:
/***/function(e,t,n){"use strict";var r=n("c6b6");
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
// eslint-disable-next-line es/no-array-isarray -- safe
e.exports=Array.isArray||function(e){return"Array"===r(e)}},
/***/e90a:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return g}));
/* harmony import */var r=n("92fa"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("1b2b"),c=n.n(s),l=n("0464"),u=n("daa3"),h=n("4d91"),f=n("58c1");
/* harmony import */function d(e){return e.name||"Component"}var p=function(){return{}};function g(e){var t=!!e,n=e||p;return function(r){var a=Object(l.a)(r.props||{},["store"]),s={__propsSymbol__:h.a.any};Object.keys(a).forEach((function(e){s[e]=o()({},a[e],{required:!1})}));var p={name:"Connect_"+d(r),props:s,inject:{storeContext:{default:function(){return{}}}},data:function(){return this.store=this.storeContext.store,this.preProps=Object(l.a)(Object(u.l)(this),["__propsSymbol__"]),{subscribed:n(this.store.getState(),this.$props)}},watch:{__propsSymbol__:function(){e&&2===e.length&&(this.subscribed=n(this.store.getState(),this.$props))}},mounted:function(){this.trySubscribe()},beforeDestroy:function(){this.tryUnsubscribe()},methods:{handleChange:function(){if(this.unsubscribe){var e=Object(l.a)(Object(u.l)(this),["__propsSymbol__"]),t=n(this.store.getState(),e);c()(this.preProps,e)&&c()(this.subscribed,t)||(this.subscribed=t)}},trySubscribe:function(){t&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},tryUnsubscribe:function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},getWrappedInstance:function(){return this.$refs.wrappedInstance}},render:function(){var e=arguments[0],t=this.$slots,n=void 0===t?{}:t,a=this.$scopedSlots,s=this.subscribed,c=this.store,h=Object(u.l)(this);this.preProps=o()({},Object(l.a)(h,["__propsSymbol__"]));var f={props:o()({},h,s,{store:c}),on:Object(u.k)(this),scopedSlots:a};return e(r,i()([f,{ref:"wrappedInstance"}]),[Object.keys(n).map((function(t){return e("template",{slot:t},[n[t]])}))])}};return Object(f.a)(p)}}
/***/},
/***/e93f:
/***/function(e,t,n){
// ie9- setTimeout & setInterval additional parameters fix
var r=n("93e0"),i=n("f083"),a=n("64ff"),o=[].slice,s=/MSIE .\./.test(a),c=function(e){return function(t,n/* , ...args */){var r=arguments.length>2,i=!!r&&o.call(arguments,2);return e(r?function(){
// eslint-disable-next-line no-new-func
("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},
/***/e95a:
/***/function(e,t,n){"use strict";var r=n("b622"),i=n("3f8c"),a=r("iterator"),o=Array.prototype;
// check on default Array iterator
e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},
/***/e960:
/***/function(e,t,n){var r=n("9b6f"),i=n("688d");
// true  -> String#at
// false -> String#codePointAt
e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}}},
/***/e9bc:
/***/function(e,t,n){"use strict";var r=n("dc19"),i=n("cb27").add,a=n("83b9"),o=n("7f65"),s=n("5388");
// `Set.prototype.union` method
// https://github.com/tc39/proposal-set-methods
e.exports=function(e){var t=r(this),n=o(e).getIterator(),c=a(t);return s(n,(function(e){i(c,e)})),c}},
/***/e9c4:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),a=n("2ba4"),o=n("c65b"),s=n("e330"),c=n("d039"),l=n("1626"),u=n("d9b5"),h=n("f36a"),f=n("e267"),d=n("04f8"),p=String,g=i("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),A=s("".replace),b=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,_=!d||c((function(){var e=i("Symbol")("stringify detection");
// MS Edge converts symbol values to JSON as {}
return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))})),I=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),E=function(e,t){var n=h(arguments),r=f(t);if(l(r)||void 0!==e&&!u(e))// IE8 returns string on undefined
return n[1]=function(e,t){if(
// some old implementations (like WebKit) could pass numbers as keys
l(r)&&(t=o(r,this,p(e),t)),!u(t))return t},a(g,null,n)},k=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(x,e)&&!m(C,i)||m(C,e)&&!m(x,r)?"\\u"+b(y(e,0),16):e};g&&
// `JSON.stringify` method
// https://tc39.es/ecma262/#sec-json.stringify
r({target:"JSON",stat:!0,arity:3,forced:_||I},{
// eslint-disable-next-line no-unused-vars -- required for `.length`
stringify:function(e,t,n){var r=h(arguments),i=a(_?E:g,null,r);return I&&"string"==typeof i?A(i,w,k):i}})
/***/},
/***/e9d8:
/***/function(e,t,n){var r=n("f083"),i=n("688d"),a=n("f937"),o=n("69b4"),s="["+o+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(e,t,n){var i={},s=a((function(){return!!o[e]()||"​"!="​"[e]()})),c=i[e]=s?t(h):o[e];n&&(i[n]=c),r(r.P+r.F*s,"String",i)},h=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},
/***/e9f5:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("cfe9"),a=n("19aa"),o=n("825a"),s=n("1626"),c=n("e163"),l=n("edd0"),u=n("8418"),h=n("d039"),f=n("1a2d"),d=n("b622"),p=n("ae93").IteratorPrototype,g=n("83ab"),m=n("c430"),v="constructor",y="Iterator",A=d("toStringTag"),b=TypeError,w=i[y],x=m||!s(w)||w.prototype!==p||!h((function(){w({})})),C=function(){if(a(this,p),c(this)===p)throw new b("Abstract class Iterator not directly constructable")},_=function(e,t){g?l(p,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===p)throw new b("You can't redefine this property");f(this,e)?this[e]=t:u(this,e,t)}}):p[e]=t};f(p,A)||_(A,y),!x&&f(p,v)&&p[v]!==Object||_(v,C),C.prototype=p,
// `Iterator` constructor
// https://tc39.es/ecma262/#sec-iterator
r({global:!0,constructor:!0,forced:x},{Iterator:C})},
/***/ea34:
/***/function(e,t){e.exports=function(e,t){return{value:t,done:!!e}};
/***/},
/***/ea83:
/***/function(e,t,n){"use strict";var r=n("b5db").match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},
/***/eac5:
/***/function(e,t){
/** Used for built-in method references. */
var n=Object.prototype;
/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},
/***/eaeb:
/***/function(e,t,n){
// all object keys, includes non-enumerable and symbols
var r=n("dbb2"),i=n("10dd"),a=n("d77f"),o=n("93e0").Reflect;e.exports=o&&o.ownKeys||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},
/***/eb31:
/***/function(e,t,n){"use strict";
/**
 * Layout: Chinese
 * Source: https://github.com/sxei/pinyinjs
 */
/* harmony default export */t.a={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m . - / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ) ( _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},layoutCandidates:{a:"阿 啊 呵 腌 嗄 吖 锕",e:"额 阿 俄 恶 鹅 遏 鄂 厄 饿 峨 扼 娥 鳄 哦 蛾 噩 愕 讹 锷 垩 婀 鹗 萼 谔 莪 腭 锇 颚 呃 阏 屙 苊 轭",ai:"爱 埃 艾 碍 癌 哀 挨 矮 隘 蔼 唉 皑 哎 霭 捱 暧 嫒 嗳 瑷 嗌 锿 砹",ei:"诶",xi:"系 西 席 息 希 习 吸 喜 细 析 戏 洗 悉 锡 溪 惜 稀 袭 夕 洒 晰 昔 牺 腊 烯 熙 媳 栖 膝 隙 犀 蹊 硒 兮 熄 曦 禧 嬉 玺 奚 汐 徙 羲 铣 淅 嘻 歙 熹 矽 蟋 郗 唏 皙 隰 樨 浠 忾 蜥 檄 郄 翕 阋 鳃 舾 屣 葸 螅 咭 粞 觋 欷 僖 醯 鼷 裼 穸 饩 舄 禊 诶 菥 蓰",yi:"一 以 已 意 议 义 益 亿 易 医 艺 食 依 移 衣 异 伊 仪 宜 射 遗 疑 毅 谊 亦 疫 役 忆 抑 尾 乙 译 翼 蛇 溢 椅 沂 泄 逸 蚁 夷 邑 怡 绎 彝 裔 姨 熠 贻 矣 屹 颐 倚 诣 胰 奕 翌 疙 弈 轶 蛾 驿 壹 猗 臆 弋 铱 旖 漪 迤 佚 翊 诒 怿 痍 懿 饴 峄 揖 眙 镒 仡 黟 肄 咿 翳 挹 缢 呓 刈 咦 嶷 羿 钇 殪 荑 薏 蜴 镱 噫 癔 苡 悒 嗌 瘗 衤 佾 埸 圯 舣 酏 劓",an:"安 案 按 岸 暗 鞍 氨 俺 胺 铵 谙 庵 黯 鹌 桉 埯 犴 揞 厂 广",han:"厂 汉 韩 含 旱 寒 汗 涵 函 喊 憾 罕 焊 翰 邯 撼 瀚 憨 捍 酣 悍 鼾 邗 颔 蚶 晗 菡 旰 顸 犴 焓 撖",ang:"昂 仰 盎 肮",ao:"奥 澳 傲 熬 凹 鳌 敖 遨 鏖 袄 坳 翱 嗷 拗 懊 岙 螯 骜 獒 鏊 艹 媪 廒 聱",wa:"瓦 挖 娃 洼 袜 蛙 凹 哇 佤 娲 呙 腽",yu:"于 与 育 余 预 域 予 遇 奥 语 誉 玉 鱼 雨 渔 裕 愈 娱 欲 吁 舆 宇 羽 逾 豫 郁 寓 吾 狱 喻 御 浴 愉 禹 俞 邪 榆 愚 渝 尉 淤 虞 屿 峪 粥 驭 瑜 禺 毓 钰 隅 芋 熨 瘀 迂 煜 昱 汩 於 臾 盂 聿 竽 萸 妪 腴 圄 谕 觎 揄 龉 谀 俣 馀 庾 妤 瘐 鬻 欤 鹬 阈 嵛 雩 鹆 圉 蜮 伛 纡 窬 窳 饫 蓣 狳 肀 舁 蝓 燠",niu:"牛 纽 扭 钮 拗 妞 忸 狃",o:"哦 噢 喔",ba:"把 八 巴 拔 伯 吧 坝 爸 霸 罢 芭 跋 扒 叭 靶 疤 笆 耙 鲅 粑 岜 灞 钯 捌 菝 魃 茇",pa:"怕 帕 爬 扒 趴 琶 啪 葩 耙 杷 钯 筢",pi:"被 批 副 否 皮 坏 辟 啤 匹 披 疲 罢 僻 毗 坯 脾 譬 劈 媲 屁 琵 邳 裨 痞 癖 陂 丕 枇 噼 霹 吡 纰 砒 铍 淠 郫 埤 濞 睥 芘 蚍 圮 鼙 罴 蜱 疋 貔 仳 庀 擗 甓 陴",bi:"比 必 币 笔 毕 秘 避 闭 佛 辟 壁 弊 彼 逼 碧 鼻 臂 蔽 拂 泌 璧 庇 痹 毙 弼 匕 鄙 陛 裨 贲 敝 蓖 吡 篦 纰 俾 铋 毖 筚 荸 薜 婢 哔 跸 濞 秕 荜 愎 睥 妣 芘 箅 髀 畀 滗 狴 萆 嬖 襞 舭",bai:"百 白 败 摆 伯 拜 柏 佰 掰 呗 擘 捭 稗",bo:"波 博 播 勃 拨 薄 佛 伯 玻 搏 柏 泊 舶 剥 渤 卜 驳 簿 脖 膊 簸 菠 礴 箔 铂 亳 钵 帛 擘 饽 跛 钹 趵 檗 啵 鹁 擗 踣",bei:"北 被 备 倍 背 杯 勃 贝 辈 悲 碑 臂 卑 悖 惫 蓓 陂 钡 狈 呗 焙 碚 褙 庳 鞴 孛 鹎 邶 鐾",ban:"办 版 半 班 般 板 颁 伴 搬 斑 扮 拌 扳 瓣 坂 阪 绊 钣 瘢 舨 癍",pan:"判 盘 番 潘 攀 盼 拚 畔 胖 叛 拌 蹒 磐 爿 蟠 泮 袢 襻 丬",bin:"份 宾 频 滨 斌 彬 濒 殡 缤 鬓 槟 摈 膑 玢 镔 豳 髌 傧",bang:"帮 邦 彭 旁 榜 棒 膀 镑 绑 傍 磅 蚌 谤 梆 浜 蒡",pang:"旁 庞 乓 磅 螃 彷 滂 逄 耪",beng:"泵 崩 蚌 蹦 迸 绷 甭 嘣 甏 堋",bao:"报 保 包 宝 暴 胞 薄 爆 炮 饱 抱 堡 剥 鲍 曝 葆 瀑 豹 刨 褒 雹 孢 苞 煲 褓 趵 鸨 龅 勹",bu:"不 部 步 布 补 捕 堡 埔 卜 埠 簿 哺 怖 钚 卟 瓿 逋 晡 醭 钸",pu:"普 暴 铺 浦 朴 堡 葡 谱 埔 扑 仆 蒲 曝 瀑 溥 莆 圃 璞 濮 菩 蹼 匍 噗 氆 攵 镨 攴 镤",mian:"面 棉 免 绵 缅 勉 眠 冕 娩 腼 渑 湎 沔 黾 宀 眄",po:"破 繁 坡 迫 颇 朴 泊 婆 泼 魄 粕 鄱 珀 陂 叵 笸 泺 皤 钋 钷",fan:"反 范 犯 繁 饭 泛 翻 凡 返 番 贩 烦 拚 帆 樊 藩 矾 梵 蕃 钒 幡 畈 蘩 蹯 燔",fu:"府 服 副 负 富 复 福 夫 妇 幅 付 扶 父 符 附 腐 赴 佛 浮 覆 辅 傅 伏 抚 赋 辐 腹 弗 肤 阜 袱 缚 甫 氟 斧 孚 敷 俯 拂 俘 咐 腑 孵 芙 涪 釜 脯 茯 馥 宓 绂 讣 呋 罘 麸 蝠 匐 芾 蜉 跗 凫 滏 蝮 驸 绋 蚨 砩 桴 赙 菔 呒 趺 苻 拊 阝 鲋 怫 稃 郛 莩 幞 祓 艴 黻 黼 鳆",ben:"本 体 奔 苯 笨 夯 贲 锛 畚 坌",feng:"风 丰 封 峰 奉 凤 锋 冯 逢 缝 蜂 枫 疯 讽 烽 俸 沣 酆 砜 葑 唪",bian:"变 便 边 编 遍 辩 鞭 辨 贬 匾 扁 卞 汴 辫 砭 苄 蝙 鳊 弁 窆 笾 煸 褊 碥 忭 缏",pian:"便 片 篇 偏 骗 翩 扁 骈 胼 蹁 谝 犏 缏",zhen:"镇 真 针 圳 振 震 珍 阵 诊 填 侦 臻 贞 枕 桢 赈 祯 帧 甄 斟 缜 箴 疹 砧 榛 鸩 轸 稹 溱 蓁 胗 椹 朕 畛 浈",biao:"表 标 彪 镖 裱 飚 膘 飙 镳 婊 骠 飑 杓 髟 鳔 灬 瘭",piao:"票 朴 漂 飘 嫖 瓢 剽 缥 殍 瞟 骠 嘌 莩 螵",huo:"和 活 或 货 获 火 伙 惑 霍 祸 豁 嚯 藿 锪 蠖 钬 耠 镬 夥 灬 劐 攉",bie:"别 鳖 憋 瘪 蹩",min:"民 敏 闽 闵 皿 泯 岷 悯 珉 抿 黾 缗 玟 愍 苠 鳘",fen:"分 份 纷 奋 粉 氛 芬 愤 粪 坟 汾 焚 酚 吩 忿 棼 玢 鼢 瀵 偾 鲼",bing:"并 病 兵 冰 屏 饼 炳 秉 丙 摒 柄 槟 禀 枋 邴 冫",geng:"更 耕 颈 庚 耿 梗 埂 羹 哽 赓 绠 鲠",fang:"方 放 房 防 访 纺 芳 仿 坊 妨 肪 邡 舫 彷 枋 鲂 匚 钫",xian:"现 先 县 见 线 限 显 险 献 鲜 洗 宪 纤 陷 闲 贤 仙 衔 掀 咸 嫌 掺 羡 弦 腺 痫 娴 舷 馅 酰 铣 冼 涎 暹 籼 锨 苋 蚬 跹 岘 藓 燹 鹇 氙 莶 霰 跣 猃 彡 祆 筅",fou:"不 否 缶",ca:"拆 擦 嚓 礤",cha:"查 察 差 茶 插 叉 刹 茬 楂 岔 诧 碴 嚓 喳 姹 杈 汊 衩 搽 槎 镲 苴 檫 馇 锸 猹",cai:"才 采 财 材 菜 彩 裁 蔡 猜 踩 睬",can:"参 残 餐 灿 惨 蚕 掺 璨 惭 粲 孱 骖 黪",shen:"信 深 参 身 神 什 审 申 甚 沈 伸 慎 渗 肾 绅 莘 呻 婶 娠 砷 蜃 哂 椹 葚 吲 糁 渖 诜 谂 矧 胂",cen:"参 岑 涔",san:"三 参 散 伞 叁 糁 馓 毵",cang:"藏 仓 苍 沧 舱 臧 伧",zang:"藏 脏 葬 赃 臧 奘 驵",chen:"称 陈 沈 沉 晨 琛 臣 尘 辰 衬 趁 忱 郴 宸 谌 碜 嗔 抻 榇 伧 谶 龀 肜",cao:"草 操 曹 槽 糙 嘈 漕 螬 艚 屮",ce:"策 测 册 侧 厕 栅 恻",ze:"责 则 泽 择 侧 咋 啧 仄 箦 赜 笮 舴 昃 迮 帻",zhai:"债 择 齐 宅 寨 侧 摘 窄 斋 祭 翟 砦 瘵 哜",dao:"到 道 导 岛 倒 刀 盗 稻 蹈 悼 捣 叨 祷 焘 氘 纛 刂 帱 忉",ceng:"层 曾 蹭 噌",zha:"查 扎 炸 诈 闸 渣 咋 乍 榨 楂 札 栅 眨 咤 柞 喳 喋 铡 蚱 吒 怍 砟 揸 痄 哳 齄",chai:"差 拆 柴 钗 豺 侪 虿 瘥",ci:"次 此 差 词 辞 刺 瓷 磁 兹 慈 茨 赐 祠 伺 雌 疵 鹚 糍 呲 粢",zi:"资 自 子 字 齐 咨 滋 仔 姿 紫 兹 孜 淄 籽 梓 鲻 渍 姊 吱 秭 恣 甾 孳 訾 滓 锱 辎 趑 龇 赀 眦 缁 呲 笫 谘 嵫 髭 茈 粢 觜 耔",cuo:"措 错 磋 挫 搓 撮 蹉 锉 厝 嵯 痤 矬 瘥 脞 鹾",chan:"产 单 阐 崭 缠 掺 禅 颤 铲 蝉 搀 潺 蟾 馋 忏 婵 孱 觇 廛 谄 谗 澶 骣 羼 躔 蒇 冁",shan:"山 单 善 陕 闪 衫 擅 汕 扇 掺 珊 禅 删 膳 缮 赡 鄯 栅 煽 姗 跚 鳝 嬗 潸 讪 舢 苫 疝 掸 膻 钐 剡 蟮 芟 埏 彡 骟",zhan:"展 战 占 站 崭 粘 湛 沾 瞻 颤 詹 斩 盏 辗 绽 毡 栈 蘸 旃 谵 搌",xin:"新 心 信 辛 欣 薪 馨 鑫 芯 锌 忻 莘 昕 衅 歆 囟 忄 镡",lian:"联 连 练 廉 炼 脸 莲 恋 链 帘 怜 涟 敛 琏 镰 濂 楝 鲢 殓 潋 裢 裣 臁 奁 莶 蠊 蔹",chang:"场 长 厂 常 偿 昌 唱 畅 倡 尝 肠 敞 倘 猖 娼 淌 裳 徜 昶 怅 嫦 菖 鲳 阊 伥 苌 氅 惝 鬯",zhang:"长 张 章 障 涨 掌 帐 胀 彰 丈 仗 漳 樟 账 杖 璋 嶂 仉 瘴 蟑 獐 幛 鄣 嫜",chao:"超 朝 潮 炒 钞 抄 巢 吵 剿 绰 嘲 晁 焯 耖 怊",zhao:"着 照 招 找 召 朝 赵 兆 昭 肇 罩 钊 沼 嘲 爪 诏 濯 啁 棹 笊",zhou:"调 州 周 洲 舟 骤 轴 昼 宙 粥 皱 肘 咒 帚 胄 绉 纣 妯 啁 诌 繇 碡 籀 酎 荮",che:"车 彻 撤 尺 扯 澈 掣 坼 砗 屮",ju:"车 局 据 具 举 且 居 剧 巨 聚 渠 距 句 拒 俱 柜 菊 拘 炬 桔 惧 矩 鞠 驹 锯 踞 咀 瞿 枸 掬 沮 莒 橘 飓 疽 钜 趄 踽 遽 琚 龃 椐 苣 裾 榘 狙 倨 榉 苴 讵 雎 锔 窭 鞫 犋 屦 醵",cheng:"成 程 城 承 称 盛 抢 乘 诚 呈 净 惩 撑 澄 秤 橙 骋 逞 瞠 丞 晟 铛 埕 塍 蛏 柽 铖 酲 裎 枨",rong:"容 荣 融 绒 溶 蓉 熔 戎 榕 茸 冗 嵘 肜 狨 蝾",sheng:"生 声 升 胜 盛 乘 圣 剩 牲 甸 省 绳 笙 甥 嵊 晟 渑 眚",deng:"等 登 邓 灯 澄 凳 瞪 蹬 噔 磴 嶝 镫 簦 戥",zhi:"制 之 治 质 职 只 志 至 指 织 支 值 知 识 直 致 执 置 止 植 纸 拓 智 殖 秩 旨 址 滞 氏 枝 芝 脂 帜 汁 肢 挚 稚 酯 掷 峙 炙 栉 侄 芷 窒 咫 吱 趾 痔 蜘 郅 桎 雉 祉 郦 陟 痣 蛭 帙 枳 踯 徵 胝 栀 贽 祗 豸 鸷 摭 轵 卮 轾 彘 觯 絷 跖 埴 夂 黹 忮 骘 膣 踬",zheng:"政 正 证 争 整 征 郑 丁 症 挣 蒸 睁 铮 筝 拯 峥 怔 诤 狰 徵 钲",tang:"堂 唐 糖 汤 塘 躺 趟 倘 棠 烫 淌 膛 搪 镗 傥 螳 溏 帑 羰 樘 醣 螗 耥 铴 瑭",chi:"持 吃 池 迟 赤 驰 尺 斥 齿 翅 匙 痴 耻 炽 侈 弛 叱 啻 坻 眙 嗤 墀 哧 茌 豉 敕 笞 饬 踟 蚩 柢 媸 魑 篪 褫 彳 鸱 螭 瘛 眵 傺",shi:"是 时 实 事 市 十 使 世 施 式 势 视 识 师 史 示 石 食 始 士 失 适 试 什 泽 室 似 诗 饰 殖 释 驶 氏 硕 逝 湿 蚀 狮 誓 拾 尸 匙 仕 柿 矢 峙 侍 噬 嗜 栅 拭 嘘 屎 恃 轼 虱 耆 舐 莳 铈 谥 炻 豕 鲥 饣 螫 酾 筮 埘 弑 礻 蓍 鲺 贳",qi:"企 其 起 期 气 七 器 汽 奇 齐 启 旗 棋 妻 弃 揭 枝 歧 欺 骑 契 迄 亟 漆 戚 岂 稽 岐 琦 栖 缉 琪 泣 乞 砌 祁 崎 绮 祺 祈 凄 淇 杞 脐 麒 圻 憩 芪 伎 俟 畦 耆 葺 沏 萋 骐 鳍 綦 讫 蕲 屺 颀 亓 碛 柒 啐 汔 綮 萁 嘁 蛴 槭 欹 芑 桤 丌 蜞",chuai:"揣 踹 啜 搋 膪",tuo:"托 脱 拓 拖 妥 驼 陀 沱 鸵 驮 唾 椭 坨 佗 砣 跎 庹 柁 橐 乇 铊 沲 酡 鼍 箨 柝",duo:"多 度 夺 朵 躲 铎 隋 咄 堕 舵 垛 惰 哆 踱 跺 掇 剁 柁 缍 沲 裰 哚 隳",xue:"学 血 雪 削 薛 穴 靴 谑 噱 鳕 踅 泶 彐",chong:"重 种 充 冲 涌 崇 虫 宠 忡 憧 舂 茺 铳 艟",chou:"筹 抽 绸 酬 愁 丑 臭 仇 畴 稠 瞅 踌 惆 俦 瘳 雠 帱",qiu:"求 球 秋 丘 邱 仇 酋 裘 龟 囚 遒 鳅 虬 蚯 泅 楸 湫 犰 逑 巯 艽 俅 蝤 赇 鼽 糗",xiu:"修 秀 休 宿 袖 绣 臭 朽 锈 羞 嗅 岫 溴 庥 馐 咻 髹 鸺 貅",chu:"出 处 础 初 助 除 储 畜 触 楚 厨 雏 矗 橱 锄 滁 躇 怵 绌 搐 刍 蜍 黜 杵 蹰 亍 樗 憷 楮",tuan:"团 揣 湍 疃 抟 彖",zhui:"追 坠 缀 揣 椎 锥 赘 惴 隹 骓 缒",chuan:"传 川 船 穿 串 喘 椽 舛 钏 遄 氚 巛 舡",zhuan:"专 转 传 赚 砖 撰 篆 馔 啭 颛",yuan:"元 员 院 原 源 远 愿 园 援 圆 缘 袁 怨 渊 苑 宛 冤 媛 猿 垣 沅 塬 垸 鸳 辕 鸢 瑗 圜 爰 芫 鼋 橼 螈 眢 箢 掾",cuan:"窜 攒 篡 蹿 撺 爨 汆 镩",chuang:"创 床 窗 闯 幢 疮 怆",zhuang:"装 状 庄 壮 撞 妆 幢 桩 奘 僮 戆",chui:"吹 垂 锤 炊 椎 陲 槌 捶 棰",chun:"春 纯 醇 淳 唇 椿 蠢 鹑 朐 莼 肫 蝽",zhun:"准 屯 淳 谆 肫 窀",cu:"促 趋 趣 粗 簇 醋 卒 蹴 猝 蹙 蔟 殂 徂",dun:"吨 顿 盾 敦 蹲 墩 囤 沌 钝 炖 盹 遁 趸 砘 礅",qu:"区 去 取 曲 趋 渠 趣 驱 屈 躯 衢 娶 祛 瞿 岖 龋 觑 朐 蛐 癯 蛆 苣 阒 诎 劬 蕖 蘧 氍 黢 蠼 璩 麴 鸲 磲",xu:"需 许 续 须 序 徐 休 蓄 畜 虚 吁 绪 叙 旭 邪 恤 墟 栩 絮 圩 婿 戌 胥 嘘 浒 煦 酗 诩 朐 盱 蓿 溆 洫 顼 勖 糈 砉 醑",chuo:"辍 绰 戳 淖 啜 龊 踔 辶",zu:"组 族 足 祖 租 阻 卒 俎 诅 镞 菹",ji:"济 机 其 技 基 记 计 系 期 际 及 集 级 几 给 积 极 己 纪 即 继 击 既 激 绩 急 奇 吉 季 齐 疾 迹 鸡 剂 辑 籍 寄 挤 圾 冀 亟 寂 暨 脊 跻 肌 稽 忌 饥 祭 缉 棘 矶 汲 畸 姬 藉 瘠 骥 羁 妓 讥 稷 蓟 悸 嫉 岌 叽 伎 鲫 诘 楫 荠 戟 箕 霁 嵇 觊 麂 畿 玑 笈 犄 芨 唧 屐 髻 戢 佶 偈 笄 跽 蒺 乩 咭 赍 嵴 虮 掎 齑 殛 鲚 剞 洎 丌 墼 蕺 彐 芰 哜",cong:"从 丛 匆 聪 葱 囱 琮 淙 枞 骢 苁 璁",zong:"总 从 综 宗 纵 踪 棕 粽 鬃 偬 枞 腙",cou:"凑 辏 腠 楱",cui:"衰 催 崔 脆 翠 萃 粹 摧 璀 瘁 悴 淬 啐 隹 毳 榱",wei:"为 位 委 未 维 卫 围 违 威 伟 危 味 微 唯 谓 伪 慰 尾 魏 韦 胃 畏 帷 喂 巍 萎 蔚 纬 潍 尉 渭 惟 薇 苇 炜 圩 娓 诿 玮 崴 桅 偎 逶 倭 猥 囗 葳 隗 痿 猬 涠 嵬 韪 煨 艉 隹 帏 闱 洧 沩 隈 鲔 軎",cun:"村 存 寸 忖 皴",zuo:"作 做 座 左 坐 昨 佐 琢 撮 祚 柞 唑 嘬 酢 怍 笮 阼 胙",zuan:"钻 纂 攥 缵 躜",da:"大 达 打 答 搭 沓 瘩 惮 嗒 哒 耷 鞑 靼 褡 笪 怛 妲",dai:"大 代 带 待 贷 毒 戴 袋 歹 呆 隶 逮 岱 傣 棣 怠 殆 黛 甙 埭 诒 绐 玳 呔 迨",tai:"大 台 太 态 泰 抬 胎 汰 钛 苔 薹 肽 跆 邰 鲐 酞 骀 炱",ta:"他 它 她 拓 塔 踏 塌 榻 沓 漯 獭 嗒 挞 蹋 趿 遢 铊 鳎 溻 闼",dan:"但 单 石 担 丹 胆 旦 弹 蛋 淡 诞 氮 郸 耽 殚 惮 儋 眈 疸 澹 掸 膻 啖 箪 聃 萏 瘅 赕",lu:"路 六 陆 录 绿 露 鲁 卢 炉 鹿 禄 赂 芦 庐 碌 麓 颅 泸 卤 潞 鹭 辘 虏 璐 漉 噜 戮 鲈 掳 橹 轳 逯 渌 蓼 撸 鸬 栌 氇 胪 镥 簏 舻 辂 垆",tan:"谈 探 坦 摊 弹 炭 坛 滩 贪 叹 谭 潭 碳 毯 瘫 檀 痰 袒 坍 覃 忐 昙 郯 澹 钽 锬",ren:"人 任 认 仁 忍 韧 刃 纫 饪 妊 荏 稔 壬 仞 轫 亻 衽",jie:"家 结 解 价 界 接 节 她 届 介 阶 街 借 杰 洁 截 姐 揭 捷 劫 戒 皆 竭 桔 诫 楷 秸 睫 藉 拮 芥 诘 碣 嗟 颉 蚧 孑 婕 疖 桀 讦 疥 偈 羯 袷 哜 喈 卩 鲒 骱",yan:"研 严 验 演 言 眼 烟 沿 延 盐 炎 燕 岩 宴 艳 颜 殷 彦 掩 淹 阎 衍 铅 雁 咽 厌 焰 堰 砚 唁 焉 晏 檐 蜒 奄 俨 腌 妍 谚 兖 筵 焱 偃 闫 嫣 鄢 湮 赝 胭 琰 滟 阉 魇 酽 郾 恹 崦 芫 剡 鼹 菸 餍 埏 谳 讠 厣 罨",dang:"当 党 档 荡 挡 宕 砀 铛 裆 凼 菪 谠",tao:"套 讨 跳 陶 涛 逃 桃 萄 淘 掏 滔 韬 叨 洮 啕 绦 饕 鼗",tiao:"条 调 挑 跳 迢 眺 苕 窕 笤 佻 啁 粜 髫 铫 祧 龆 蜩 鲦",te:"特 忑 忒 铽 慝",de:"的 地 得 德 底 锝",dei:"得",di:"的 地 第 提 低 底 抵 弟 迪 递 帝 敌 堤 蒂 缔 滴 涤 翟 娣 笛 棣 荻 谛 狄 邸 嘀 砥 坻 诋 嫡 镝 碲 骶 氐 柢 籴 羝 睇 觌",ti:"体 提 题 弟 替 梯 踢 惕 剔 蹄 棣 啼 屉 剃 涕 锑 倜 悌 逖 嚏 荑 醍 绨 鹈 缇 裼",tui:"推 退 弟 腿 褪 颓 蜕 忒 煺",you:"有 由 又 优 游 油 友 右 邮 尤 忧 幼 犹 诱 悠 幽 佑 釉 柚 铀 鱿 囿 酉 攸 黝 莠 猷 蝣 疣 呦 蚴 莸 莜 铕 宥 繇 卣 牖 鼬 尢 蚰 侑",dian:"电 点 店 典 奠 甸 碘 淀 殿 垫 颠 滇 癫 巅 惦 掂 癜 玷 佃 踮 靛 钿 簟 坫 阽",tian:"天 田 添 填 甜 甸 恬 腆 佃 舔 钿 阗 忝 殄 畋 栝 掭",zhu:"主 术 住 注 助 属 逐 宁 著 筑 驻 朱 珠 祝 猪 诸 柱 竹 铸 株 瞩 嘱 贮 煮 烛 苎 褚 蛛 拄 铢 洙 竺 蛀 渚 伫 杼 侏 澍 诛 茱 箸 炷 躅 翥 潴 邾 槠 舳 橥 丶 瘃 麈 疰",nian:"年 念 酿 辗 碾 廿 捻 撵 拈 蔫 鲶 埝 鲇 辇 黏",diao:"调 掉 雕 吊 钓 刁 貂 凋 碉 鲷 叼 铫 铞",yao:"要 么 约 药 邀 摇 耀 腰 遥 姚 窑 瑶 咬 尧 钥 谣 肴 夭 侥 吆 疟 妖 幺 杳 舀 窕 窈 曜 鹞 爻 繇 徭 轺 铫 鳐 崾 珧",die:"跌 叠 蝶 迭 碟 爹 谍 牒 耋 佚 喋 堞 瓞 鲽 垤 揲 蹀",she:"设 社 摄 涉 射 折 舍 蛇 拾 舌 奢 慑 赦 赊 佘 麝 歙 畲 厍 猞 揲 滠",ye:"业 也 夜 叶 射 野 液 冶 喝 页 爷 耶 邪 咽 椰 烨 掖 拽 曳 晔 谒 腋 噎 揶 靥 邺 铘 揲",xie:"些 解 协 写 血 叶 谢 械 鞋 胁 斜 携 懈 契 卸 谐 泄 蟹 邪 歇 泻 屑 挟 燮 榭 蝎 撷 偕 亵 楔 颉 缬 邂 鲑 瀣 勰 榍 薤 绁 渫 廨 獬 躞",zhe:"这 者 着 著 浙 折 哲 蔗 遮 辙 辄 柘 锗 褶 蜇 蛰 鹧 谪 赭 摺 乇 磔 螫",ding:"定 订 顶 丁 鼎 盯 钉 锭 叮 仃 铤 町 酊 啶 碇 腚 疔 玎 耵",diu:"丢 铥",ting:"听 庭 停 厅 廷 挺 亭 艇 婷 汀 铤 烃 霆 町 蜓 葶 梃 莛",dong:"动 东 董 冬 洞 懂 冻 栋 侗 咚 峒 氡 恫 胴 硐 垌 鸫 岽 胨",tong:"同 通 统 童 痛 铜 桶 桐 筒 彤 侗 佟 潼 捅 酮 砼 瞳 恸 峒 仝 嗵 僮 垌 茼",zhong:"中 重 种 众 终 钟 忠 仲 衷 肿 踵 冢 盅 蚣 忪 锺 舯 螽 夂",dou:"都 斗 读 豆 抖 兜 陡 逗 窦 渎 蚪 痘 蔸 钭 篼",du:"度 都 独 督 读 毒 渡 杜 堵 赌 睹 肚 镀 渎 笃 竺 嘟 犊 妒 牍 蠹 椟 黩 芏 髑",duan:"断 段 短 端 锻 缎 煅 椴 簖",dui:"对 队 追 敦 兑 堆 碓 镦 怼 憝",rui:"瑞 兑 锐 睿 芮 蕊 蕤 蚋 枘",yue:"月 说 约 越 乐 跃 兑 阅 岳 粤 悦 曰 钥 栎 钺 樾 瀹 龠 哕 刖",tun:"吞 屯 囤 褪 豚 臀 饨 暾 氽",hui:"会 回 挥 汇 惠 辉 恢 徽 绘 毁 慧 灰 贿 卉 悔 秽 溃 荟 晖 彗 讳 诲 珲 堕 诙 蕙 晦 睢 麾 烩 茴 喙 桧 蛔 洄 浍 虺 恚 蟪 咴 隳 缋 哕",wu:"务 物 无 五 武 午 吴 舞 伍 污 乌 误 亡 恶 屋 晤 悟 吾 雾 芜 梧 勿 巫 侮 坞 毋 诬 呜 钨 邬 捂 鹜 兀 婺 妩 於 戊 鹉 浯 蜈 唔 骛 仵 焐 芴 鋈 庑 鼯 牾 怃 圬 忤 痦 迕 杌 寤 阢",ya:"亚 压 雅 牙 押 鸭 呀 轧 涯 崖 邪 芽 哑 讶 鸦 娅 衙 丫 蚜 碣 垭 伢 氩 桠 琊 揠 吖 睚 痖 疋 迓 岈 砑",he:"和 合 河 何 核 盖 贺 喝 赫 荷 盒 鹤 吓 呵 苛 禾 菏 壑 褐 涸 阂 阖 劾 诃 颌 嗬 貉 曷 翮 纥 盍",wo:"我 握 窝 沃 卧 挝 涡 斡 渥 幄 蜗 喔 倭 莴 龌 肟 硪",en:"恩 摁 蒽",n:"嗯 唔",er:"而 二 尔 儿 耳 迩 饵 洱 贰 铒 珥 佴 鸸 鲕",fa:"发 法 罚 乏 伐 阀 筏 砝 垡 珐",quan:"全 权 券 泉 圈 拳 劝 犬 铨 痊 诠 荃 醛 蜷 颧 绻 犭 筌 鬈 悛 辁 畎",fei:"费 非 飞 肥 废 菲 肺 啡 沸 匪 斐 蜚 妃 诽 扉 翡 霏 吠 绯 腓 痱 芾 淝 悱 狒 榧 砩 鲱 篚 镄",pei:"配 培 坏 赔 佩 陪 沛 裴 胚 妃 霈 淠 旆 帔 呸 醅 辔 锫",ping:"平 评 凭 瓶 冯 屏 萍 苹 乒 坪 枰 娉 俜 鲆",fo:"佛",hu:"和 护 许 户 核 湖 互 乎 呼 胡 戏 忽 虎 沪 糊 壶 葫 狐 蝴 弧 瑚 浒 鹄 琥 扈 唬 滹 惚 祜 囫 斛 笏 芴 醐 猢 怙 唿 戽 槲 觳 煳 鹕 冱 瓠 虍 岵 鹱 烀 轷",ga:"夹 咖 嘎 尬 噶 旮 伽 尕 钆 尜",ge:"个 合 各 革 格 歌 哥 盖 隔 割 阁 戈 葛 鸽 搁 胳 舸 疙 铬 骼 蛤 咯 圪 镉 颌 仡 硌 嗝 鬲 膈 纥 袼 搿 塥 哿 虼",ha:"哈 蛤 铪",xia:"下 夏 峡 厦 辖 霞 夹 虾 狭 吓 侠 暇 遐 瞎 匣 瑕 唬 呷 黠 硖 罅 狎 瘕 柙",gai:"改 该 盖 概 溉 钙 丐 芥 赅 垓 陔 戤",hai:"海 还 害 孩 亥 咳 骸 骇 氦 嗨 胲 醢",gan:"干 感 赶 敢 甘 肝 杆 赣 乾 柑 尴 竿 秆 橄 矸 淦 苷 擀 酐 绀 泔 坩 旰 疳 澉",gang:"港 钢 刚 岗 纲 冈 杠 缸 扛 肛 罡 戆 筻",jiang:"将 强 江 港 奖 讲 降 疆 蒋 姜 浆 匠 酱 僵 桨 绛 缰 犟 豇 礓 洚 茳 糨 耩",hang:"行 航 杭 巷 夯 吭 桁 沆 绗 颃",gong:"工 公 共 供 功 红 贡 攻 宫 巩 龚 恭 拱 躬 弓 汞 蚣 珙 觥 肱 廾",hong:"红 宏 洪 轰 虹 鸿 弘 哄 烘 泓 訇 蕻 闳 讧 荭 黉 薨",guang:"广 光 逛 潢 犷 胱 咣 桄",qiong:"穷 琼 穹 邛 茕 筇 跫 蛩 銎",gao:"高 告 搞 稿 膏 糕 镐 皋 羔 锆 杲 郜 睾 诰 藁 篙 缟 槁 槔",hao:"好 号 毫 豪 耗 浩 郝 皓 昊 皋 蒿 壕 灏 嚎 濠 蚝 貉 颢 嗥 薅 嚆",li:"理 力 利 立 里 李 历 例 离 励 礼 丽 黎 璃 厉 厘 粒 莉 梨 隶 栗 荔 沥 犁 漓 哩 狸 藜 罹 篱 鲤 砺 吏 澧 俐 骊 溧 砾 莅 锂 笠 蠡 蛎 痢 雳 俪 傈 醴 栎 郦 俚 枥 喱 逦 娌 鹂 戾 砬 唳 坜 疠 蜊 黧 猁 鬲 粝 蓠 呖 跞 疬 缡 鲡 鳢 嫠 詈 悝 苈 篥 轹",jia:"家 加 价 假 佳 架 甲 嘉 贾 驾 嫁 夹 稼 钾 挟 拮 迦 伽 颊 浃 枷 戛 荚 痂 颉 镓 笳 珈 岬 胛 袈 郏 葭 袷 瘕 铗 跏 蛱 恝 哿",luo:"落 罗 络 洛 逻 螺 锣 骆 萝 裸 漯 烙 摞 骡 咯 箩 珞 捋 荦 硌 雒 椤 镙 跞 瘰 泺 脶 猡 倮 蠃",ke:"可 科 克 客 刻 课 颗 渴 壳 柯 棵 呵 坷 恪 苛 咳 磕 珂 稞 瞌 溘 轲 窠 嗑 疴 蝌 岢 铪 颏 髁 蚵 缂 氪 骒 钶 锞",qia:"卡 恰 洽 掐 髂 袷 咭 葜",gei:"给",gen:"根 跟 亘 艮 哏 茛",hen:"很 狠 恨 痕 哏",gou:"构 购 够 句 沟 狗 钩 拘 勾 苟 垢 枸 篝 佝 媾 诟 岣 彀 缑 笱 鞲 觏 遘",kou:"口 扣 寇 叩 抠 佝 蔻 芤 眍 筘",gu:"股 古 顾 故 固 鼓 骨 估 谷 贾 姑 孤 雇 辜 菇 沽 咕 呱 锢 钴 箍 汩 梏 痼 崮 轱 鸪 牯 蛊 诂 毂 鹘 菰 罟 嘏 臌 觚 瞽 蛄 酤 牿 鲴",pai:"牌 排 派 拍 迫 徘 湃 俳 哌 蒎",gua:"括 挂 瓜 刮 寡 卦 呱 褂 剐 胍 诖 鸹 栝 呙",tou:"投 头 透 偷 愉 骰 亠",guai:"怪 拐 乖",kuai:"会 快 块 筷 脍 蒯 侩 浍 郐 蒉 狯 哙",guan:"关 管 观 馆 官 贯 冠 惯 灌 罐 莞 纶 棺 斡 矜 倌 鹳 鳏 盥 掼 涫",wan:"万 完 晚 湾 玩 碗 顽 挽 弯 蔓 丸 莞 皖 宛 婉 腕 蜿 惋 烷 琬 畹 豌 剜 纨 绾 脘 菀 芄 箢",ne:"呢 哪 呐 讷 疒",gui:"规 贵 归 轨 桂 柜 圭 鬼 硅 瑰 跪 龟 匮 闺 诡 癸 鳜 桧 皈 鲑 刽 晷 傀 眭 妫 炅 庋 簋 刿 宄 匦",jun:"军 均 俊 君 峻 菌 竣 钧 骏 龟 浚 隽 郡 筠 皲 麇 捃",jiong:"窘 炯 迥 炅 冂 扃",jue:"决 绝 角 觉 掘 崛 诀 獗 抉 爵 嚼 倔 厥 蕨 攫 珏 矍 蹶 谲 镢 鳜 噱 桷 噘 撅 橛 孓 觖 劂 爝",gun:"滚 棍 辊 衮 磙 鲧 绲 丨",hun:"婚 混 魂 浑 昏 棍 珲 荤 馄 诨 溷 阍",guo:"国 过 果 郭 锅 裹 帼 涡 椁 囗 蝈 虢 聒 埚 掴 猓 崞 蜾 呙 馘",hei:"黑 嘿 嗨",kan:"看 刊 勘 堪 坎 砍 侃 嵌 槛 瞰 阚 龛 戡 凵 莰",heng:"衡 横 恒 亨 哼 珩 桁 蘅",mo:"万 没 么 模 末 冒 莫 摩 墨 默 磨 摸 漠 脉 膜 魔 沫 陌 抹 寞 蘑 摹 蓦 馍 茉 嘿 谟 秣 蟆 貉 嫫 镆 殁 耱 嬷 麽 瘼 貊 貘",peng:"鹏 朋 彭 膨 蓬 碰 苹 棚 捧 亨 烹 篷 澎 抨 硼 怦 砰 嘭 蟛 堋",hou:"后 候 厚 侯 猴 喉 吼 逅 篌 糇 骺 後 鲎 瘊 堠",hua:"化 华 划 话 花 画 滑 哗 豁 骅 桦 猾 铧 砉",huai:"怀 坏 淮 徊 槐 踝",huan:"还 环 换 欢 患 缓 唤 焕 幻 痪 桓 寰 涣 宦 垸 洹 浣 豢 奂 郇 圜 獾 鲩 鬟 萑 逭 漶 锾 缳 擐",xun:"讯 训 迅 孙 寻 询 循 旬 巡 汛 勋 逊 熏 徇 浚 殉 驯 鲟 薰 荀 浔 洵 峋 埙 巽 郇 醺 恂 荨 窨 蕈 曛 獯",huang:"黄 荒 煌 皇 凰 慌 晃 潢 谎 惶 簧 璜 恍 幌 湟 蝗 磺 隍 徨 遑 肓 篁 鳇 蟥 癀",nai:"能 乃 奶 耐 奈 鼐 萘 氖 柰 佴 艿",luan:"乱 卵 滦 峦 鸾 栾 銮 挛 孪 脔 娈",qie:"切 且 契 窃 茄 砌 锲 怯 伽 惬 妾 趄 挈 郄 箧 慊",jian:"建 间 件 见 坚 检 健 监 减 简 艰 践 兼 鉴 键 渐 柬 剑 尖 肩 舰 荐 箭 浅 剪 俭 碱 茧 奸 歼 拣 捡 煎 贱 溅 槛 涧 堑 笺 谏 饯 锏 缄 睑 謇 蹇 腱 菅 翦 戬 毽 笕 犍 硷 鞯 牮 枧 湔 鲣 囝 裥 踺 搛 缣 鹣 蒹 谫 僭 戋 趼 楗",nan:"南 难 男 楠 喃 囡 赧 腩 囝 蝻",qian:"前 千 钱 签 潜 迁 欠 纤 牵 浅 遣 谦 乾 铅 歉 黔 谴 嵌 倩 钳 茜 虔 堑 钎 骞 阡 掮 钤 扦 芊 犍 荨 仟 芡 悭 缱 佥 愆 褰 凵 肷 岍 搴 箝 慊 椠",qiang:"强 抢 疆 墙 枪 腔 锵 呛 羌 蔷 襁 羟 跄 樯 戕 嫱 戗 炝 镪 锖 蜣",xiang:"向 项 相 想 乡 象 响 香 降 像 享 箱 羊 祥 湘 详 橡 巷 翔 襄 厢 镶 飨 饷 缃 骧 芗 庠 鲞 葙 蟓",jiao:"教 交 较 校 角 觉 叫 脚 缴 胶 轿 郊 焦 骄 浇 椒 礁 佼 蕉 娇 矫 搅 绞 酵 剿 嚼 饺 窖 跤 蛟 侥 狡 姣 皎 茭 峤 铰 醮 鲛 湫 徼 鹪 僬 噍 艽 挢 敫",zhuo:"着 著 缴 桌 卓 捉 琢 灼 浊 酌 拙 茁 涿 镯 淖 啄 濯 焯 倬 擢 斫 棹 诼 浞 禚",qiao:"桥 乔 侨 巧 悄 敲 俏 壳 雀 瞧 翘 窍 峭 锹 撬 荞 跷 樵 憔 鞘 橇 峤 诮 谯 愀 鞒 硗 劁 缲",xiao:"小 效 销 消 校 晓 笑 肖 削 孝 萧 俏 潇 硝 宵 啸 嚣 霄 淆 哮 筱 逍 姣 箫 骁 枭 哓 绡 蛸 崤 枵 魈",si:"司 四 思 斯 食 私 死 似 丝 饲 寺 肆 撕 泗 伺 嗣 祀 厮 驷 嘶 锶 俟 巳 蛳 咝 耜 笥 纟 糸 鸶 缌 澌 姒 汜 厶 兕",kai:"开 凯 慨 岂 楷 恺 揩 锴 铠 忾 垲 剀 锎 蒈",jin:"进 金 今 近 仅 紧 尽 津 斤 禁 锦 劲 晋 谨 筋 巾 浸 襟 靳 瑾 烬 缙 钅 矜 觐 堇 馑 荩 噤 廑 妗 槿 赆 衿 卺",qin:"亲 勤 侵 秦 钦 琴 禽 芹 沁 寝 擒 覃 噙 矜 嗪 揿 溱 芩 衾 廑 锓 吣 檎 螓",jing:"经 京 精 境 竞 景 警 竟 井 惊 径 静 劲 敬 净 镜 睛 晶 颈 荆 兢 靖 泾 憬 鲸 茎 腈 菁 胫 阱 旌 粳 靓 痉 箐 儆 迳 婧 肼 刭 弪 獍",ying:"应 营 影 英 景 迎 映 硬 盈 赢 颖 婴 鹰 荧 莹 樱 瑛 蝇 萦 莺 颍 膺 缨 瀛 楹 罂 荥 萤 鹦 滢 蓥 郢 茔 嘤 璎 嬴 瘿 媵 撄 潆",jiu:"就 究 九 酒 久 救 旧 纠 舅 灸 疚 揪 咎 韭 玖 臼 柩 赳 鸠 鹫 厩 啾 阄 桕 僦 鬏",zui:"最 罪 嘴 醉 咀 蕞 觜",juan:"卷 捐 圈 眷 娟 倦 绢 隽 镌 涓 鹃 鄄 蠲 狷 锩 桊",suan:"算 酸 蒜 狻",yun:"员 运 云 允 孕 蕴 韵 酝 耘 晕 匀 芸 陨 纭 郧 筠 恽 韫 郓 氲 殒 愠 昀 菀 狁",qun:"群 裙 逡 麇",ka:"卡 喀 咖 咔 咯 佧 胩",kang:"康 抗 扛 慷 炕 亢 糠 伉 钪 闶",keng:"坑 铿 吭",kao:"考 靠 烤 拷 铐 栲 尻 犒",ken:"肯 垦 恳 啃 龈 裉",yin:"因 引 银 印 音 饮 阴 隐 姻 殷 淫 尹 荫 吟 瘾 寅 茵 圻 垠 鄞 湮 蚓 氤 胤 龈 窨 喑 铟 洇 狺 夤 廴 吲 霪 茚 堙",kong:"空 控 孔 恐 倥 崆 箜",ku:"苦 库 哭 酷 裤 枯 窟 挎 骷 堀 绔 刳 喾",kua:"跨 夸 垮 挎 胯 侉",kui:"亏 奎 愧 魁 馈 溃 匮 葵 窥 盔 逵 睽 馗 聩 喟 夔 篑 岿 喹 揆 隗 傀 暌 跬 蒉 愦 悝 蝰",kuan:"款 宽 髋",kuang:"况 矿 框 狂 旷 眶 匡 筐 邝 圹 哐 贶 夼 诳 诓 纩",que:"确 却 缺 雀 鹊 阙 瘸 榷 炔 阕 悫",kun:"困 昆 坤 捆 琨 锟 鲲 醌 髡 悃 阃",kuo:"扩 括 阔 廓 蛞",la:"拉 落 垃 腊 啦 辣 蜡 喇 剌 旯 砬 邋 瘌",lai:"来 莱 赖 睐 徕 籁 涞 赉 濑 癞 崃 疠 铼",lan:"兰 览 蓝 篮 栏 岚 烂 滥 缆 揽 澜 拦 懒 榄 斓 婪 阑 褴 罱 啉 谰 镧 漤",lin:"林 临 邻 赁 琳 磷 淋 麟 霖 鳞 凛 拎 遴 蔺 吝 粼 嶙 躏 廪 檩 啉 辚 膦 瞵 懔",lang:"浪 朗 郎 廊 狼 琅 榔 螂 阆 锒 莨 啷 蒗 稂",liang:"量 两 粮 良 辆 亮 梁 凉 谅 粱 晾 靓 踉 莨 椋 魉 墚",lao:"老 劳 落 络 牢 捞 涝 烙 姥 佬 崂 唠 酪 潦 痨 醪 铑 铹 栳 耢",mu:"目 模 木 亩 幕 母 牧 莫 穆 姆 墓 慕 牟 牡 募 睦 缪 沐 暮 拇 姥 钼 苜 仫 毪 坶",le:"了 乐 勒 肋 叻 鳓 嘞 仂 泐",lei:"类 累 雷 勒 泪 蕾 垒 磊 擂 镭 肋 羸 耒 儡 嫘 缧 酹 嘞 诔 檑",sui:"随 岁 虽 碎 尿 隧 遂 髓 穗 绥 隋 邃 睢 祟 濉 燧 谇 眭 荽",lie:"列 烈 劣 裂 猎 冽 咧 趔 洌 鬣 埒 捩 躐",leng:"冷 愣 棱 楞 塄",ling:"领 令 另 零 灵 龄 陵 岭 凌 玲 铃 菱 棱 伶 羚 苓 聆 翎 泠 瓴 囹 绫 呤 棂 蛉 酃 鲮 柃",lia:"俩",liao:"了 料 疗 辽 廖 聊 寥 缪 僚 燎 缭 撂 撩 嘹 潦 镣 寮 蓼 獠 钌 尥 鹩",liu:"流 刘 六 留 柳 瘤 硫 溜 碌 浏 榴 琉 馏 遛 鎏 骝 绺 镏 旒 熘 鹨 锍",lun:"论 轮 伦 仑 纶 沦 抡 囵",lv:"率 律 旅 绿 虑 履 吕 铝 屡 氯 缕 滤 侣 驴 榈 闾 偻 褛 捋 膂 稆",lou:"楼 露 漏 陋 娄 搂 篓 喽 镂 偻 瘘 髅 耧 蝼 嵝 蒌",mao:"贸 毛 矛 冒 貌 茂 茅 帽 猫 髦 锚 懋 袤 牦 卯 铆 耄 峁 瑁 蟊 茆 蝥 旄 泖 昴 瞀",long:"龙 隆 弄 垄 笼 拢 聋 陇 胧 珑 窿 茏 咙 砻 垅 泷 栊 癃",nong:"农 浓 弄 脓 侬 哝",shuang:"双 爽 霜 孀 泷",shu:"术 书 数 属 树 输 束 述 署 朱 熟 殊 蔬 舒 疏 鼠 淑 叔 暑 枢 墅 俞 曙 抒 竖 蜀 薯 梳 戍 恕 孰 沭 赎 庶 漱 塾 倏 澍 纾 姝 菽 黍 腧 秫 毹 殳 疋 摅",shuai:"率 衰 帅 摔 甩 蟀",lve:"略 掠 锊",ma:"么 马 吗 摩 麻 码 妈 玛 嘛 骂 抹 蚂 唛 蟆 犸 杩",me:"么 麽",mai:"买 卖 麦 迈 脉 埋 霾 荬 劢",man:"满 慢 曼 漫 埋 蔓 瞒 蛮 鳗 馒 幔 谩 螨 熳 缦 镘 颟 墁 鞔",mi:"米 密 秘 迷 弥 蜜 谜 觅 靡 泌 眯 麋 猕 谧 咪 糜 宓 汨 醚 嘧 弭 脒 冖 幂 祢 縻 蘼 芈 糸 敉",men:"们 门 闷 瞒 汶 扪 焖 懑 鞔 钔",mang:"忙 盲 茫 芒 氓 莽 蟒 邙 硭 漭",meng:"蒙 盟 梦 猛 孟 萌 氓 朦 锰 檬 勐 懵 蟒 蜢 虻 黾 蠓 艨 甍 艋 瞢 礞",miao:"苗 秒 妙 描 庙 瞄 缪 渺 淼 藐 缈 邈 鹋 杪 眇 喵",mou:"某 谋 牟 缪 眸 哞 鍪 蛑 侔 厶",miu:"缪 谬",mei:"美 没 每 煤 梅 媒 枚 妹 眉 魅 霉 昧 媚 玫 酶 镁 湄 寐 莓 袂 楣 糜 嵋 镅 浼 猸 鹛",wen:"文 问 闻 稳 温 纹 吻 蚊 雯 紊 瘟 汶 韫 刎 璺 玟 阌",mie:"灭 蔑 篾 乜 咩 蠛",ming:"明 名 命 鸣 铭 冥 茗 溟 酩 瞑 螟 暝",na:"内 南 那 纳 拿 哪 娜 钠 呐 捺 衲 镎 肭",nei:"内 那 哪 馁",nuo:"难 诺 挪 娜 糯 懦 傩 喏 搦 锘",ruo:"若 弱 偌 箬",nang:"囊 馕 囔 曩 攮",nao:"脑 闹 恼 挠 瑙 淖 孬 垴 铙 桡 呶 硇 猱 蛲",ni:"你 尼 呢 泥 疑 拟 逆 倪 妮 腻 匿 霓 溺 旎 昵 坭 铌 鲵 伲 怩 睨 猊",nen:"嫩 恁",neng:"能",nin:"您 恁",niao:"鸟 尿 溺 袅 脲 茑 嬲",nie:"摄 聂 捏 涅 镍 孽 捻 蘖 啮 蹑 嗫 臬 镊 颞 乜 陧",niang:"娘 酿",ning:"宁 凝 拧 泞 柠 咛 狞 佞 聍 甯",nu:"努 怒 奴 弩 驽 帑 孥 胬",nv:"女 钕 衄 恧",ru:"入 如 女 乳 儒 辱 汝 茹 褥 孺 濡 蠕 嚅 缛 溽 铷 洳 薷 襦 颥 蓐",nuan:"暖",nve:"虐 疟",re:"热 若 惹 喏",ou:"区 欧 偶 殴 呕 禺 藕 讴 鸥 瓯 沤 耦 怄",pao:"跑 炮 泡 抛 刨 袍 咆 疱 庖 狍 匏 脬",pou:"剖 掊 裒",pen:"喷 盆 湓",pie:"瞥 撇 苤 氕 丿",pin:"品 贫 聘 频 拼 拚 颦 姘 嫔 榀 牝",se:"色 塞 瑟 涩 啬 穑 铯 槭",qing:"情 青 清 请 亲 轻 庆 倾 顷 卿 晴 氢 擎 氰 罄 磬 蜻 箐 鲭 綮 苘 黥 圊 檠 謦",zan:"赞 暂 攒 堑 昝 簪 糌 瓒 錾 趱 拶",shao:"少 绍 召 烧 稍 邵 哨 韶 捎 勺 梢 鞘 芍 苕 劭 艄 筲 杓 潲",sao:"扫 骚 嫂 梢 缫 搔 瘙 臊 埽 缲 鳋",sha:"沙 厦 杀 纱 砂 啥 莎 刹 杉 傻 煞 鲨 霎 嗄 痧 裟 挲 铩 唼 歃",xuan:"县 选 宣 券 旋 悬 轩 喧 玄 绚 渲 璇 炫 萱 癣 漩 眩 暄 煊 铉 楦 泫 谖 痃 碹 揎 镟 儇",ran:"然 染 燃 冉 苒 髯 蚺",rang:"让 壤 攘 嚷 瓤 穰 禳",rao:"绕 扰 饶 娆 桡 荛",reng:"仍 扔",ri:"日",rou:"肉 柔 揉 糅 鞣 蹂",ruan:"软 阮 朊",run:"润 闰",sa:"萨 洒 撒 飒 卅 仨 脎",suo:"所 些 索 缩 锁 莎 梭 琐 嗦 唆 唢 娑 蓑 羧 挲 桫 嗍 睃",sai:"思 赛 塞 腮 噻 鳃",shui:"说 水 税 谁 睡 氵",sang:"桑 丧 嗓 搡 颡 磉",sen:"森",seng:"僧",shai:"筛 晒",shang:"上 商 尚 伤 赏 汤 裳 墒 晌 垧 觞 殇 熵 绱",xing:"行 省 星 腥 猩 惺 兴 刑 型 形 邢 饧 醒 幸 杏 性 姓 陉 荇 荥 擤 悻 硎",shou:"收 手 受 首 售 授 守 寿 瘦 兽 狩 绶 艏 扌",shuo:"说 数 硕 烁 朔 铄 妁 槊 蒴 搠",su:"速 素 苏 诉 缩 塑 肃 俗 宿 粟 溯 酥 夙 愫 簌 稣 僳 谡 涑 蔌 嗉 觫",shua:"刷 耍 唰",shuan:"栓 拴 涮 闩",shun:"顺 瞬 舜 吮",song:"送 松 宋 讼 颂 耸 诵 嵩 淞 怂 悚 崧 凇 忪 竦 菘",sou:"艘 搜 擞 嗽 嗖 叟 馊 薮 飕 嗾 溲 锼 螋 瞍",sun:"损 孙 笋 荪 榫 隼 狲 飧",teng:"腾 疼 藤 滕 誊",tie:"铁 贴 帖 餮 萜",tu:"土 突 图 途 徒 涂 吐 屠 兔 秃 凸 荼 钍 菟 堍 酴",wai:"外 歪 崴",wang:"王 望 往 网 忘 亡 旺 汪 枉 妄 惘 罔 辋 魍",weng:"翁 嗡 瓮 蓊 蕹",zhua:"抓 挝 爪",yang:"样 养 央 阳 洋 扬 杨 羊 详 氧 仰 秧 痒 漾 疡 泱 殃 恙 鸯 徉 佯 怏 炀 烊 鞅 蛘",xiong:"雄 兄 熊 胸 凶 匈 汹 芎",yo:"哟 唷",yong:"用 永 拥 勇 涌 泳 庸 俑 踊 佣 咏 雍 甬 镛 臃 邕 蛹 恿 慵 壅 痈 鳙 墉 饔 喁",za:"杂 扎 咱 砸 咋 匝 咂 拶",zai:"在 再 灾 载 栽 仔 宰 哉 崽 甾",zao:"造 早 遭 枣 噪 灶 燥 糟 凿 躁 藻 皂 澡 蚤 唣",zei:"贼",zen:"怎 谮",zeng:"增 曾 综 赠 憎 锃 甑 罾 缯",zhei:"这",zou:"走 邹 奏 揍 诹 驺 陬 楱 鄹 鲰",zhuai:"转 拽",zun:"尊 遵 鳟 樽 撙",dia:"嗲",nou:"耨"}}},
/***/eb53:
/***/function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("a34a")),a=r(n("c973")),o=r(n("7037")),s=r(n("448a")),c=r(n("970b")),l=r(n("d0b5")),u=r(n("8f47")),h=n("5557"),f=function e(t,n){(0,c.default)(this,e);var r={
/**
     * @description Weather to render graph
     * @type {Boolean}
     * @default visible = true
     */
visible:!0,
/**
     * @description Whether to enable drag
     * @type {Boolean}
     * @default drag = false
     */
drag:!1,
/**
     * @description Whether to enable hover
     * @type {Boolean}
     * @default hover = false
     */
hover:!1,
/**
     * @description Graph rendering index
     *  Give priority to index high graph in rendering
     * @type {Number}
     * @example index = 1
     */
index:1,
/**
     * @description Animation delay time(ms)
     * @type {Number}
     * @default animationDelay = 0
     */
animationDelay:0,
/**
     * @description Number of animation frames
     * @type {Number}
     * @default animationFrame = 30
     */
animationFrame:30,
/**
     * @description Animation dynamic curve (Supported by transition)
     * @type {String}
     * @default animationCurve = 'linear'
     * @link https://github.com/jiaming743/Transition
     */
animationCurve:"linear",
/**
     * @description Weather to pause graph animation
     * @type {Boolean}
     * @default animationPause = false
     */
animationPause:!1,
/**
     * @description Rectangular hover detection zone
     *  Use this method for hover detection first
     * @type {Null|Array}
     * @default hoverRect = null
     * @example hoverRect = [0, 0, 100, 100] // [Rect start x, y, Rect width, height]
     */
hoverRect:null,
/**
     * @description Mouse enter event handler
     * @type {Function|Null}
     * @default mouseEnter = null
     */
mouseEnter:null,
/**
     * @description Mouse outer event handler
     * @type {Function|Null}
     * @default mouseOuter = null
     */
mouseOuter:null,
/**
     * @description Mouse click event handler
     * @type {Function|Null}
     * @default click = null
     */
click:null};(n=(0,h.deepClone)(n,!0)).shape||(n.shape={}),n.style||(n.style={});var i=Object.assign({},t.shape,n.shape);Object.assign(r,n,{status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}}),Object.assign(this,t,r),this.shape=i,this.style=new l.default(n.style),this.addedProcessor()};
/**
 * @description Return a timed release Promise
 * @param {Number} time Release time
 * @return {Promise} A timed release Promise
 */
function d(e){return new Promise((function(t){setTimeout(t,e)}))}
/***/
/**
 * @description Processor of added
 * @return {Undefined} Void
 */
t.default=f,f.prototype.addedProcessor=function(){"function"==typeof this.setGraphCenter&&this.setGraphCenter(null,this),// The life cycle 'added"
"function"==typeof this.added&&this.added(this)},
/**
 * @description Processor of draw
 * @param {CRender} render Instance of CRender
 * @param {Graph} graph    Instance of Graph
 * @return {Undefined} Void
 */
f.prototype.drawProcessor=function(e,t){var n=e.ctx;t.style.initStyle(n),"function"==typeof this.beforeDraw&&this.beforeDraw(this,e),t.draw(e,t),"function"==typeof this.drawed&&this.drawed(this,e),t.style.restoreTransform(n)},
/**
 * @description Processor of hover check
 * @param {Array} position Mouse Position
 * @param {Graph} graph    Instance of Graph
 * @return {Boolean} Result of hover check
 */
f.prototype.hoverCheckProcessor=function(e,t){var n=t.hoverRect,r=t.style,i=t.hoverCheck,a=r.graphCenter,o=r.rotate,c=r.scale,l=r.translate;return a&&(o&&(e=(0,h.getRotatePointPos)(-o,e,a)),c&&(e=(0,h.getScalePointPos)(c.map((function(e){return 1/e})),e,a)),l&&(e=(0,h.getTranslatePointPos)(l.map((function(e){return-1*e})),e))),n?h.checkPointIsInRect.apply(void 0,[e].concat((0,s.default)(n))):i(e,this)},
/**
 * @description Processor of move
 * @param {Event} e Mouse movement event
 * @return {Undefined} Void
 */
f.prototype.moveProcessor=function(e){this.move(e,this),"function"==typeof this.beforeMove&&this.beforeMove(e,this),"function"==typeof this.setGraphCenter&&this.setGraphCenter(e,this),"function"==typeof this.moved&&this.moved(e,this)},
/**
 * @description Update graph state
 * @param {String} attrName Updated attribute name
 * @param {Any} change      Updated value
 * @return {Undefined} Void
 */
f.prototype.attr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!e||void 0===t)return!1;var n="object"===(0,o.default)(this[e]);n&&(t=(0,h.deepClone)(t,!0));var r=this.render;"style"===e?this.style.update(t):n?Object.assign(this[e],t):this[e]=t,"index"===e&&r.sortGraphsByIndex(),r.drawAllGraph()},
/**
 * @description Update graphics state (with animation)
 *  Only shape and style attributes are supported
 * @param {String} attrName Updated attribute name
 * @param {Any} change      Updated value
 * @param {Boolean} wait    Whether to store the animation waiting
 *                          for the next animation request
 * @return {Promise} Animation Promise
 */
f.prototype.animation=

function(){var e=(0,a.default)(

i.default.mark((function e(t,n){var r,o,s,c,l,f,p,g,m,v=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=v.length>2&&void 0!==v[2]&&v[2],"shape"===t||"style"===t){e.next=4;break}return e.abrupt("return");case 4:if(n=(0,h.deepClone)(n,!0),"style"===t&&this.style.colorProcessor(n),o=this[t],s=Object.keys(n),c={},s.forEach((function(e){return c[e]=o[e]})),l=this.animationFrame,f=this.animationCurve,p=this.animationDelay,g=(0,u.default)(f,c,n,l,!0),this.animationRoot.push(o),this.animationKeys.push(s),this.animationFrameState.push(g),!r){e.next=17;break}return e.abrupt("return");case 17:if(!(p>0)){e.next=20;break}return e.next=20,d(p);case 20:return m=this.render,e.abrupt("return",new Promise(

function(){var e=(0,a.default)(

i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.launchAnimation();case 2:t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 22:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),
/**
 * @description Extract the next frame of data from the animation queue
 *              and update the graph state
 * @return {Undefined} Void
 */
f.prototype.turnNextAnimationFrame=function(e){var t=this.animationDelay,n=this.animationRoot,r=this.animationKeys,i=this.animationFrameState;this.animationPause||Date.now()-e<t||(n.forEach((function(e,t){r[t].forEach((function(n){e[n]=i[t][0][n]}))})),i.forEach((function(e,t){e.shift();var i=0===e.length;i&&(n[t]=null),i&&(r[t]=null)})),this.animationFrameState=i.filter((function(e){return e.length})),this.animationRoot=n.filter((function(e){return e})),this.animationKeys=r.filter((function(e){return e})))},
/**
 * @description Skip to the last frame of animation
 * @return {Undefined} Void
 */
f.prototype.animationEnd=function(){var e=this.animationFrameState,t=this.animationKeys,n=this.animationRoot,r=this.render;return n.forEach((function(n,r){var i=t[r],a=e[r].pop();i.forEach((function(e){return n[e]=a[e]}))})),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],r.drawAllGraph()},
/**
 * @description Pause animation behavior
 * @return {Undefined} Void
 */
f.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},
/**
 * @description Try animation behavior
 * @return {Undefined} Void
 */
f.prototype.playAnimation=function(){var e=this.render;return this.attr("animationPause",!1),new Promise(

function(){var t=(0,a.default)(

i.default.mark((function t(n){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.launchAnimation();case 2:n();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},
/**
 * @description Processor of delete
 * @param {CRender} render Instance of CRender
 * @return {Undefined} Void
 */
f.prototype.delProcessor=function(e){var t=this,n=e.graphs,r=n.findIndex((function(e){return e===t}));-1!==r&&("function"==typeof this.beforeDelete&&this.beforeDelete(this),n.splice(r,1,null),"function"==typeof this.deleted&&this.deleted(this))}},
/***/eb8c:
/***/function(e,t,n){"use strict";var r=n("9fe8"),i=n("ed60"),a=n("de24")("hasInstance"),o=Function.prototype;
// 19.2.3.6 Function.prototype[@@hasInstance](V)
a in o||n("2761").f(o,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;
// for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
for(;e=i(e);)if(this.prototype===e)return!0;return!1}})
/***/},
/***/eb9a:
/***/function(e,t,n){var r,i,a,o=n("911a"),s=n("09db"),c=n("7433"),l=n("8ad7"),u=n("93e0"),h=u.process,f=u.setImmediate,d=u.clearImmediate,p=u.MessageChannel,g=u.Dispatch,m=0,v={},y="onreadystatechange",A=function(){var e=+this;
// eslint-disable-next-line no-prototype-builtins
if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){A.call(e.data)};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){
// eslint-disable-next-line no-new-func
s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete v[e]},
// Node.js 0.8-
"process"==n("1c2d")(h)?r=function(e){h.nextTick(o(A,e,1))}:g&&g.now?r=function(e){g.now(o(A,e,1))}:p?(a=(i=new p).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r=y in l("script")?function(e){c.appendChild(l("script"))[y]=function(){c.removeChild(this),A.call(e)}}:function(e){setTimeout(o(A,e,1),0)}),e.exports={set:f,clear:d}},
/***/ebb7:
/***/function(e,t,n){
// https://rwaldron.github.io/proposal-math-extensions/
var r=n("f083"),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},
/***/ebc1:
/***/function(e,t,n){"use strict";var r=n("b5db");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},
/***/ebe8:
/***/function(e,t,n){var r=n("de24")("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},
// eslint-disable-next-line no-throw-literal
Array.from(a,(function(){throw 2}))}catch(e){/* empty */}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){/* empty */}return n}},
/***/ec44:
/***/function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var i=e.document;// ie6,7,8 standard mode
"number"!=typeof(n=i.documentElement[r])&&(
// quirks mode
n=i.body[r])}return n}function s(e){return o(e)}function c(e){return o(e,!0)}function l(e){var t=function(e){var t,n,r,i=e.ownerDocument,a=i.body,o=i&&i.documentElement;// 根据 GBS 最新数据，A-Grade Browsers 都已支持 getBoundingClientRect 方法，不用再考虑传统的实现方式
// 注：jQuery 还考虑减去 docElem.clientLeft/clientTop
// 但测试发现，这样反而会导致当 html 和 body 有边距/边框样式时，获取的值不正确
// 此外，ie6 会忽略 html 的 margin 值，幸运地是没有谁会去设置 html 的 margin
return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:// In IE, most of the time, 2 extra pixels are added to the top and left
// due to the implicit 2-pixel inset border.  In IE6/7 quirks mode and
// IE6 standards mode, this border can be overridden by setting the
// document element's border to zero -- thus, we cannot rely on the
// offset always being 2 pixels.
// In quirks mode, the offset can be determined by querying the body's
// clientLeft/clientTop, but in standards mode, it is found by querying
// the document element's clientLeft/clientTop.  Since we already called
// getClientBoundingRect we have already forced a reflow, so it is not
// too expensive just to query them all.
// ie 下应该减去窗口的边框吧，毕竟默认 absolute 都是相对窗口定位的
// 窗口边框标准是设 documentElement ,quirks 时设置 body
// 最好禁止在 body 和 html 上边框 ，但 ie < 9 html 默认有 2px ，减去
// 但是非 ie 不可能设置窗口边框，body html 也不是窗口 ,ie 可以通过 html,body 设置
// 标准 ie 下 docElem.clientTop 就是 border-top
// ie7 html 即窗口边框改变不了。永远为 2
// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框，即使设了 border-top 也为 0
n-=o.clientLeft||a.clientLeft||0,top:r-=o.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=s(r),t.top+=c(r),t}var u,h=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),f=/^(top|right|bottom|left)$/,d="currentStyle",p="runtimeStyle",g="left";function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function v(e){return"border-box"===u(e,"boxSizing")}"undefined"!=typeof window&&(u=window.getComputedStyle?function(e,t,n){var r="",i=e.ownerDocument,a=n||i.defaultView.getComputedStyle(e,null);// https://github.com/kissyteam/kissy/issues/61
return a&&(r=a.getPropertyValue(t)||a[t]),r}:function(e,t){
// currentStyle maybe null
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
var n=e[d]&&e[d][t];// 当 width/height 设置为百分比时，通过 pixelLeft 方式转换的 width/height 值
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
// 在 ie 下不对，需要直接用 offset 方式
// borderWidth 等值也有问题，但考虑到 borderWidth 设为百分比的概率很小，这里就不考虑了
// From the awesome hack by Dean Edwards
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
// If we're not dealing with a regular pixel number
// but a number that has a weird ending, we need to convert it to pixels
// exclude left right for relativity
if(h.test(n)&&!f.test(t)){
// Remember the original values
var r=e.style,i=r[g],a=e[p][g];// prevent flashing of content
e[p][g]=e[d][g],// Put in the new values to get a computed value out
r[g]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",// Revert the changed values
r[g]=i,e[p][g]=a}return""===n?"auto":n});var y=["margin","border","padding"];function A(e,t,n){var r,i,a,o=0;for(i=0;i<t.length;i++)if(r=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===r?"".concat(r+n[a],"Width"):r+n[a],o+=parseFloat(u(e,s))||0}return o}
/**
 * A crude way of determining if an object is a window
 * @member util
 */function b(e){
// must use == for ie8
/* eslint eqeqeq:0 */
return null!=e&&e==e.window}var w={};
/*
 得到元素的大小信息
 @param elem
 @param name
 @param {String} [extra]  'padding' : (css width) + padding
 'border' : (css width) + padding + border
 'margin' : (css width) + padding + border + margin
 */
function x(e,t,n){if(b(e))return"width"===t?w.viewportWidth(e):w.viewportHeight(e);if(9===e.nodeType)return"width"===t?w.docWidth(e):w.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.offsetWidth:e.offsetHeight,a=(u(e),v(e)),o=0;(null==i||i<=0)&&(i=void 0,(null==(// Fall back to computed then un computed css if necessary
o=u(e,t))||Number(o)<0)&&(o=e.style[t]||0),// Normalize '', auto, and prepare for extra
o=parseFloat(o)||0),void 0===n&&(n=a?1:-1);var s=void 0!==i||a,c=i||o;if(-1===n)return s?c-A(e,["border","padding"],r):o;if(s){var l=2===n?-A(e,["border"],r):A(e,["margin"],r);return c+(1===n?0:l)}return o+A(e,y.slice(n),r)}m(["Width","Height"],(function(e){w["doc".concat(e)]=function(t){var n=t.document;return Math.max(// firefox chrome documentElement.scrollHeight< body.scrollHeight
// ie standard mode : documentElement.scrollHeight> body.scrollHeight
n.documentElement["scroll".concat(e)],// quirks : documentElement.scrollHeight 最大等于可视窗口多一点？
n.body["scroll".concat(e)],w["viewport".concat(e)](n))},w["viewport".concat(e)]=function(t){
// pc browser includes scrollbar in window.innerWidth
var n="client".concat(e),r=t.document,i=r.body,a=r.documentElement[n];// 标准模式取 documentElement
// backcompat 取 body
return"CSS1Compat"===r.compatMode&&a||i&&i[n]||a}}));var C={position:"absolute",visibility:"hidden",display:"block"};// fix #119 : https://github.com/kissyteam/kissy/issues/119
function _(e){var t,n=arguments;// in case elem is window
// elem.offsetWidth === undefined
return 0!==e.offsetWidth?t=x.apply(void 0,n):function(e,t,n){var r,i={},a=e.style;// Remember the old values, and insert the new ones
for(r in t)t.hasOwnProperty(r)&&(i[r]=a[r],a[r]=t[r]);// Revert the old values
for(r in n.call(e),t)t.hasOwnProperty(r)&&(a[r]=i[r])}(e,C,(function(){t=x.apply(void 0,n)})),t}function I(e,t,n){var i=n;if("object"!==r(t))return void 0!==i?("number"==typeof i&&(i+="px"),void(e.style[t]=i)):u(e,t);for(var a in t)t.hasOwnProperty(a)&&I(e,a,t[a])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);w["outer".concat(t)]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];w[e]=function(t,r){if(void 0===r)return t&&_(t,e,-1);if(t){u(t);return v(t)&&(r+=A(t,["padding","border"],n)),I(t,e,r)}}}));var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!// 设置 elem 相对 elem.ownerDocument 的坐标
function(e,t){
// set position first, in-case top/left are set even on static elem
"static"===I(e,"position")&&(e.style.position="relative");var n,r,i=l(e),a={};for(r in t)t.hasOwnProperty(r)&&(n=parseFloat(I(e,r))||0,a[r]=n+t[r]-i[r]);I(e,a)}(e,t)},isWindow:b,each:m,css:I,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var r in e)e.hasOwnProperty(r)&&(t.overflow[r]=e.overflow[r]);return t},scrollLeft:function(e,t){if(b(e)){if(void 0===t)return s(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(b(e)){if(void 0===t)return c(e);window.scrollTo(s(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},w);
/* harmony default export */t.a=function(e,t,n){n=n||{},// document 归一化到 window
9===t.nodeType&&(t=E.getWindow(t));var r=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,o=n.alignWithLeft,s=n.offsetTop||0,c=n.offsetLeft||0,l=n.offsetBottom||0,u=n.offsetRight||0;r=void 0===r||r;var h,f,d,p,g,m,v,y,A,b,w=E.isWindow(t),x=E.offset(e),C=E.outerHeight(e),_=E.outerWidth(e);w?(v=t,b=E.height(v),A=E.width(v),y={left:E.scrollLeft(v),top:E.scrollTop(v)},// elem 相对 container 可视视窗的距离
g={left:x.left-y.left-c,top:x.top-y.top-s},m={left:x.left+_-(y.left+A)+u,top:x.top+C-(y.top+b)+l},p=y):(h=E.offset(t),f=t.clientHeight,d=t.clientWidth,p={left:t.scrollLeft,top:t.scrollTop},// elem 相对 container 可视视窗的距离
// 注意边框, offset 是边框到根节点
g={left:x.left-(h.left+(parseFloat(E.css(t,"borderLeftWidth"))||0))-c,top:x.top-(h.top+(parseFloat(E.css(t,"borderTopWidth"))||0))-s},m={left:x.left+_-(h.left+d+(parseFloat(E.css(t,"borderRightWidth"))||0))+u,top:x.top+C-(h.top+f+(parseFloat(E.css(t,"borderBottomWidth"))||0))+l}),g.top<0||m.top>0?
// 强制向上
!0===a?E.scrollTop(t,p.top+g.top):!1===a?E.scrollTop(t,p.top+m.top):
// 自动调整
g.top<0?E.scrollTop(t,p.top+g.top):E.scrollTop(t,p.top+m.top):i||((a=void 0===a||!!a)?E.scrollTop(t,p.top+g.top):E.scrollTop(t,p.top+m.top)),r&&(g.left<0||m.left>0?
// 强制向上
!0===o?E.scrollLeft(t,p.left+g.left):!1===o?E.scrollLeft(t,p.left+m.left):
// 自动调整
g.left<0?E.scrollLeft(t,p.left+g.left):E.scrollLeft(t,p.left+m.left):i||((o=void 0===o||!!o)?E.scrollLeft(t,p.left+g.left):E.scrollLeft(t,p.left+m.left)))}},
/***/ec69:
/***/function(e,t,n){var r=n("6fcd"),i=n("03dd"),a=n("30c9");
/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */e.exports=function(e){return a(e)?r(e):i(e)}},
/***/ec6f:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"e",(function(){return c})),
/* harmony export (binding) */n.d(t,"b",(function(){return l})),
/* harmony export (binding) */n.d(t,"c",(function(){return u})),
/* harmony export (binding) */n.d(t,"a",(function(){return h})),
/* harmony export (binding) */n.d(t,"d",(function(){return f})),
/* harmony export (binding) */n.d(t,"f",(function(){return g}));
/* harmony import */var r=n("6d8b"),i=n("07fd"),a=n("e0d3"),o=n("0f99"),s=function(e){this.data=e.data||(e.sourceFormat===i.d?{}:[]),this.sourceFormat=e.sourceFormat||i.h,
// Visit config
this.seriesLayoutBy=e.seriesLayoutBy||i.a,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Object(o.b)(this,n)===o.a.Must&&(r.type="ordinal")}};
/* harmony import */function c(e){return e instanceof s}
/**
 * Create a source from option.
 * NOTE: Created source is immutable. Don't change any properties in it.
 */function l(e,t,
// can be null. If not provided, auto detect it from `sourceData`.
n){n=n||f(e);var o=t.seriesLayoutBy,c=
/**
 * Determine the source definitions from data standalone dimensions definitions
 * are not specified.
 */
function(e,t,n,o,
// standalone raw dimensions definition, like:
// {
//     dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]
// }
// in `dataset` or `series`
s){var c,l;
// PENDING: Could data be null/undefined here?
// currently, if `dataset.source` not specified, error thrown.
// if `series.data` not specified, nothing rendered without error thrown.
// Should test these cases.
if(!e)return{dimensionsDefine:d(s),startIndex:l,dimensionsDetectedCount:c};if(t===i.c){var u=e;
// Rule: Most of the first line are string: it is header.
// Caution: consider a line with 5 string and 1 number,
// it still can not be sure it is a head, because the
// 5 string may be 5 values of category columns.
"auto"===o||null==o?p((function(e){
// '-' is regarded as null/undefined.
null!=e&&"-"!==e&&(Object(r.isString)(e)?null==l&&(l=1):l=0);
// 10 is an experience number, avoid long loop.
}),n,u,10):l=Object(r.isNumber)(o)?o:o?1:0,s||1!==l||(s=[],p((function(e,t){s[t]=null!=e?e+"":""}),n,u,1/0)),c=s?s.length:n===i.b?u.length:u[0]?u[0].length:null}else if(t===i.e)s||(s=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););// jshint ignore: line
if(t)return Object(r.keys)(t)}
// Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],
// which is reasonable. But dimension name is duplicated.
// Returns undefined or an array contains only object without null/undefined or string.
(e));else if(t===i.d)s||(s=[],Object(r.each)(e,(function(e,t){s.push(t)})));else if(t===i.f){var h=Object(a.h)(e[0]);c=Object(r.isArray)(h)&&h.length||1}else i.g;return{startIndex:l,dimensionsDefine:d(s),dimensionsDetectedCount:c}}(e,n,o,t.sourceHeader,t.dimensions);return new s({data:e,sourceFormat:n,seriesLayoutBy:o,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectedCount:c.dimensionsDetectedCount,metaRawOption:Object(r.clone)(t)})}
/**
 * Wrap original series data for some compatibility cases.
 */function u(e){return new s({data:e,sourceFormat:Object(r.isTypedArray)(e)?i.g:i.f})}
/**
 * Clone source but excludes source data.
 */function h(e){return new s({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(r.clone)(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}
/**
 * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.
 */function f(e){var t=i.h;if(Object(r.isTypedArray)(e))t=i.g;else if(Object(r.isArray)(e)){
// FIXME Whether tolerate null in top level array?
0===e.length&&(t=i.c);for(var n=0,a=e.length;n<a;n++){var o=e[n];if(null!=o){if(Object(r.isArray)(o)||Object(r.isTypedArray)(o)){t=i.c;break}if(Object(r.isObject)(o)){t=i.e;break}}}}else if(Object(r.isObject)(e))for(var s in e)if(Object(r.hasOwn)(e,s)&&Object(r.isArrayLike)(e[s])){t=i.d;break}return t}function d(e){if(e){var t=Object(r.createHashMap)();return Object(r.map)(e,(function(e,n){
// Other fields will be discarded.
var i={name:(e=Object(r.isObject)(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};
// User can set null in dimensions.
// We don't auto specify name, otherwise a given name may
// cause it to be referred unexpectedly.
if(null==i.name)return i;
// Also consider number form like 2012.
i.name+="",
// User may also specify displayName.
// displayName will always exists except user not
// specified or dim name is not specified or detected.
// (A auto generated dim name will not be used as
// displayName).
null==i.displayName&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i}))}}function p(e,t,n,r){if(t===i.b)for(var a=0;a<n.length&&a<r;a++)e(n[a]?n[a][0]:null,a);else{var o=n[0]||[];for(a=0;a<o.length&&a<r;a++)e(o[a],a)}}function g(e){var t=e.sourceFormat;return t===i.e||t===i.d}
/***/},
/***/ec87:
/***/function(e,t,n){"use strict";var r=n("b5db");e.exports=/web0s(?!.*chrome)/i.test(r)},
/***/ec8c:
/***/function(e,t){e.exports=
/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},
/***/ed60:
/***/function(e,t,n){
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var r=n("2fb2"),i=n("42ee"),a=n("964f")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},
/***/eda2:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return s})),
/* harmony export (binding) */n.d(t,"j",(function(){return c})),
/* harmony export (binding) */n.d(t,"i",(function(){return l})),
/* harmony export (binding) */n.d(t,"h",(function(){return u})),
/* harmony export (binding) */n.d(t,"e",(function(){return d})),
/* harmony export (binding) */n.d(t,"f",(function(){return p})),
/* harmony export (binding) */n.d(t,"g",(function(){return g})),
/* harmony export (binding) */n.d(t,"d",(function(){return m})),
/* harmony export (binding) */n.d(t,"b",(function(){return v})),
/* harmony export (binding) */n.d(t,"c",(function(){return y})),
/* harmony export (binding) */n.d(t,"k",(function(){return A}));
/* harmony import */var r=n("6d8b"),i=n("65ed"),a=n("3842"),o=n("f876");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Add a comma each three digit.
 */
function s(e){if(!Object(a.k)(e))return r.isString(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function c(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var l=r.normalizeCssArray;
/**
 * Make value user readable for tooltip and label.
 * "User readable":
 *     Try to not print programmer-specific text like NaN, Infinity, null, undefined.
 *     Avoid to display an empty string, which users can not recognize there is
 *     a value and it might look like a bug.
 */function u(e,t,n){function i(e){return e&&r.trim(e)?e:"-"}function c(e){return!(null==e||isNaN(e)||!isFinite(e))}var l="time"===t,u=e instanceof Date;if(l||u){var h=l?Object(a.p)(e):e;if(!isNaN(+h))return Object(o.h)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);
// In other cases, continue to try to display the value in the following code.
if(u)return"-"}if("ordinal"===t)return r.isStringSafe(e)?i(e):r.isNumber(e)&&c(e)?e+"":"-";
// By default.
var f=Object(a.o)(e);return c(f)?s(f):r.isStringSafe(e)?i(e):"boolean"==typeof e?e+"":"-"}var h=["a","b","c","d","e","f","g"],f=function(e,t){return"{"+e+(null==t?"":t)+"}"};
/**
 * Template formatter
 * @param {Array.<Object>|Object} paramsList
 */
function d(e,t,n){r.isArray(t)||(t=[t]);var a=t.length;if(!a)return"";for(var o=t[0].$vars||[],s=0;s<o.length;s++){var c=h[s];e=e.replace(f(c),f(c,0))}for(var l=0;l<a;l++)for(var u=0;u<o.length;u++){var d=t[l][o[u]];e=e.replace(f(h[u],l),n?Object(i.a)(d):d)}return e}
/**
 * simple Template formatter
 */function p(e,t,n){return r.each(t,(function(t,r){e=e.replace("{"+r+"}",n?Object(i.a)(t):t)})),e}function g(e,t){var n=r.isString(e)?{color:e,extraCssText:t}:e||{},a=n.color,o=n.type;t=n.extraCssText;var s=n.renderMode||"html";return a?"html"===s?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Object(i.a)(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Object(i.a)(a)+";"+(t||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|}  ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:""}
/**
 * @deprecated Use `time/format` instead.
 * ISO Date format
 * @param {string} tpl
 * @param {number} value
 * @param {boolean} [isUTC=false] Default in local time.
 *           see `module:echarts/scale/Time`
 *           and `module:echarts/util/number#parseDate`.
 * @inner
 */function m(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Object(a.p)(t),i=n?"getUTC":"get",s=r[i+"FullYear"](),c=r[i+"Month"]()+1,l=r[i+"Date"](),u=r[i+"Hours"](),h=r[i+"Minutes"](),f=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return e=e.replace("MM",Object(o.y)(c,2)).replace("M",c).replace("yyyy",s).replace("yy",Object(o.y)(s%100+"",2)).replace("dd",Object(o.y)(l,2)).replace("d",l).replace("hh",Object(o.y)(u,2)).replace("h",u).replace("mm",Object(o.y)(h,2)).replace("m",h).replace("ss",Object(o.y)(f,2)).replace("s",f).replace("SSS",Object(o.y)(d,3))}
/**
 * Capital first
 * @param {string} str
 * @return {string}
 */function v(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}
/**
 * @return Never be null/undefined.
 */function y(e,t){return t=t||"transparent",r.isString(e)?e:r.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}
/**
 * open new tab
 * @param link url
 * @param target blank or self
 */function A(e,t){
/* global window */
if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}
/***/},
/***/edae:
/***/function(e,t,n){"use strict";
/* unused harmony export log */
/* harmony export (binding) */n.d(t,"d",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s})),
/* harmony export (binding) */n.d(t,"a",(function(){return c})),
/* unused harmony export deprecateReplaceLog */
/* unused harmony export makePrintable */
/* harmony export (binding) */n.d(t,"c",(function(){return l}));
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var r={},i="undefined"!=typeof console&&console.warn&&console.log;function a(e,t,n){if(i&&n){if(r[t])return;r[t]=!0}
// eslint-disable-next-line
}function o(e,t){a(0,e,t)}function s(e,t){a(0,e,t)}function c(e){0}
/**
 * @throws Error
 */
function l(e){throw new Error(e)}
/***/},
/***/edd0:
/***/function(e,t,n){"use strict";var r=n("13d2"),i=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},
/***/edfa:
/***/function(e,t){e.exports=
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},
/***/ee03:
/***/function(e,t,n){"use strict";
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseTimes.js
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
/* harmony default export */var r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},i=n("f5fe"),a=n("ff51"),o=n("58e0"),s=n("7129"),c=n("a187"),l=Object.prototype.hasOwnProperty;
// EXTERNAL MODULE: ./node_modules/lodash-es/isArguments.js + 1 modules
/* harmony default export */t.a=
/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function(e,t){var n=Object(a.a)(e),u=!n&&Object(i.a)(e),h=!n&&!u&&Object(o.a)(e),f=!n&&!u&&!h&&Object(c.a)(e),d=n||u||h||f,p=d?r(e.length,String):[],g=p.length;for(var m in e)!t&&!l.call(e,m)||d&&(
// Safari 9 has enumerable `arguments.length` in strict mode.
"length"==m||
// Node.js 0.10 has enumerable non-index properties on buffers.
h&&("offset"==m||"parent"==m)||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||
// Skip index properties.
Object(s.a)(m,g))||p.push(m);return p};
/***/},
/***/ee1a:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a})),
/* harmony export (binding) */n.d(t,"c",(function(){return o})),
/* harmony export (binding) */n.d(t,"b",(function(){return s}));
/* harmony import */var r=n("6d8b"),i=n("80b9");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * Note that it is too complicated to support 3d stack by value
 * (have to create two-dimension inverted index), so in 3d case
 * we just support that stacked by index.
 *
 * @param seriesModel
 * @param dimensionsInput The same as the input of <module:echarts/data/SeriesData>.
 *        The input will be modified.
 * @param opt
 * @param opt.stackedCoordDimension Specify a coord dimension if needed.
 * @param opt.byIndex=false
 * @return calculationInfo
 * {
 *     stackedDimension: string
 *     stackedByDimension: string
 *     isStackedByIndex: boolean
 *     stackedOverDimension: string
 *     stackResultDimension: string
 * }
 */
function a(e,t,n){var a,o,s,c=(n=n||{}).byIndex,l=n.stackedCoordDimension;!function(e){return!Object(i.d)(e.schema)}(t)?(o=t.schema,a=o.dimensions,s=t.store):a=t;
// Compatibal: when `stack` is set as '', do not stack.
var u,h,f,d,p=!(!e||!e.get("stack"));
// Add stack dimension, they can be both calculated by coordinate system in `unionExtent`.
// That put stack logic in List is for using conveniently in echarts extensions, but it
// might not be a good way.
if(Object(r.each)(a,(function(e,t){Object(r.isString)(e)&&(a[t]=e={name:e}),p&&!e.isExtraCoord&&(
// Find the first ordinal dimension as the stackedByDimInfo.
c||u||!e.ordinalMeta||(u=e),
// Find the first stackable dimension as the stackedDimInfo.
h||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(h=e))})),!h||c||u||(
// Compatible with previous design, value axis (time axis) only stack by index.
// It may make sense if the user provides elaborately constructed data.
c=!0),h){
// Use a weird name that not duplicated with other names.
// Also need to use seriesModel.id as postfix because different
// series may share same data store. The stack dimension needs to be distinguished.
f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,
// Create inverted index to fast query index by value.
u&&(u.createInvertedIndices=!0);var g=h.coordDim,m=h.type,v=0;Object(r.each)(a,(function(e){e.coordDim===g&&v++}));var y={name:f,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},A={name:d,
// This dimension contains stack base (generally, 0), so do not set it as
// `stackedDimCoordDim` to avoid extent calculation, consider log scale.
coordDim:d,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,m),A.storeDimIndex=s.ensureCalculationDimension(f,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(A)):(a.push(y),a.push(A))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:c,stackedOverDimension:d,stackResultDimension:f}}function o(e,t){
// Each single series only maps to one pair of axis. So we do not need to
// check stackByDim, whatever stacked by a dimension or stacked by index.
return!!t&&t===e.getCalculationInfo("stackedDimension")}function s(e,t){return o(e,t)?e.getCalculationInfo("stackResultDimension"):t}
/***/},
/***/ee29:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return _}));
// EXTERNAL MODULE: ./node_modules/echarts/lib/util/model.js
var r=n("e0d3"),i=n("9850"),a=n("deca"),o=n("861c"),s=n("3842"),c=n("8582"),l=n("89b6"),u=n("6d8b"),h=n("2355"),f=n("7837"),d=n("857d");
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/BoundingRect.js
// CONCATENATED MODULE: ./node_modules/echarts/lib/label/LabelManager.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO: move labels out of viewport.
function p(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function g(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,
// x: labelAttr.x,
// y: labelAttr.y,
align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:p(r&&r.shape.points)}}var m=["align","verticalAlign","width","height","fontSize"],v=new c.c,y=Object(r.o)(),A=Object(r.o)();function b(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var w=["x","y","rotation"],x=/** @class */function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},
/**
   * Add label to manager
   */
e.prototype._addLabel=function(e,t,n,r,a){var o=r.style,s=r.__hostTarget.textConfig||{},c=r.getComputedTransform(),l=r.getBoundingRect().plain();i.a.applyTransform(l,l,c),c?v.setLocalTransform(c):(
// Identity transform.
v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1),v.rotation=Object(d.a)(v.rotation);var u,h=r.__hostTarget;if(h){u=h.getBoundingRect().plain();var f=h.getComputedTransform();i.a.applyTransform(u,u,f)}var p=u&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:a,computedLayoutOption:null,rect:l,hostRect:u,
// Label with lower priority will be hidden when overlapped
// Use rect size as default priority
priority:u?u.width*u.height:0,
// Save default label attributes.
// For restore if developers want get back to default value in callback.
defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");
/**
     * Ignore layouting if it's not specified anything.
     */
(Object(u.isFunction)(r)||Object(u.keys)(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;// Stop traverse descendants.
// Only support label being hosted on graphic elements.
var i=e.getTextContent(),a=Object(o.a)(e);
// Can only attach the text on the element with dataIndex
i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Object(l.e)(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,c=o.__hostTarget,h=a.defaultAttr,f=void 0;f=(
// TODO A global layout option?
f=Object(u.isFunction)(a.layoutOption)?a.layoutOption(g(a,c)):a.layoutOption)||{},a.computedLayoutOption=f;var d=Math.PI/180;
// TODO hostEl should always exists.
// Or label should not have parent because the x, y is all in global space.
c&&c.setTextConfig({
// Force to set local false.
local:!1,
// Ignore position and rotation config on the host el if x or y is changed.
position:null!=f.x||null!=f.y?null:h.attachedPos,
// Ignore rotation config on the host el if rotation is changed.
rotation:null!=f.rotate?f.rotate*d:h.attachedRot,offset:[f.dx||0,f.dy||0]});var p=!1;if(null!=f.x?(
// TODO width of chart view.
o.x=Object(s.q)(f.x,t),o.setStyle("x",0),// Ignore movement in style. TODO: origin.
p=!0):(o.x=h.x,o.setStyle("x",h.style.x)),null!=f.y?(
// TODO height of chart view.
o.y=Object(s.q)(f.y,n),o.setStyle("y",0),// Ignore movement in style.
p=!0):(o.y=h.y,o.setStyle("y",h.style.y)),f.labelLinePoints){var v=c.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),
// Not update
p=!1)}y(o).needsUpdateLabelLine=p,o.rotation=null!=f.rotate?f.rotate*d:h.rotation,o.scaleX=h.scaleX,o.scaleY=h.scaleY;for(var A=0;A<m.length;A++){var b=m[A];o.setStyle(b,null!=f[b]?f[b]:h.style[b])}if(f.draggable){if(o.draggable=!0,o.cursor="move",c){var w=a.seriesModel;if(null!=a.dataIndex)w=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex);o.on("drag",r(c,w.getModel("labelLine")))}}else
// TODO Other drag functions?
o.off("drag"),o.cursor=h.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=Object(h.b)(this._labelList),i=Object(u.filter)(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=Object(u.filter)(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));Object(h.c)(i,0,t),Object(h.d)(a,0,n);var o=Object(u.filter)(r,(function(e){return e.layoutOption.hideOverlap}));Object(h.a)(o)},
/**
   * Process all labels. Not only labels with layoutOption.
   */
e.prototype.processLabelsOverall=function(){var e=this;Object(u.each)(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;// Stop traverse descendants.
var a=!r,o=t.getTextContent();!a&&o&&(a=y(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){
// Only support label being hosted on graphic elements.
var n=e.getTextContent(),r=Object(o.a)(e),i=r.dataIndex;
// Update label line style.
// Only support labelLine on the labels represent data.
if(n&&null!=i){var a=t.getData(r.dataType),s=a.getItemModel(i),c={},u=a.getItemVisual(i,"style");if(u){var h=a.getVisual("drawType");
// Default to be same with main color
c.stroke=u[h]}var f=s.getModel("labelLine");Object(l.d)(e,Object(l.a)(s),c),Object(l.e)(e,f)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();
// Animate
if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Object(a.d)(e))){var i=(v=y(n)).oldLayout,s=Object(o.a)(e),c=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},h=t.getData(s.dataType);if(i){n.attr(i);
// Make sure the animation from is in the right status.
var d=e.prevStates;d&&(Object(u.indexOf)(d,"select")>=0&&n.attr(v.oldLayoutSelect),Object(u.indexOf)(d,"emphasis")>=0&&n.attr(v.oldLayoutEmphasis)),Object(a.h)(n,l,t,c)}else
// Disable fade in animation if value animation is enabled.
if(n.attr(l),!Object(f.f)(n).valueAnimation){var p=Object(u.retrieve2)(n.style.opacity,1);
// Fade in animation
n.style.opacity=0,Object(a.c)(n,{style:{opacity:p}},t,c)}if(v.oldLayout=l,n.states.select){var g=v.oldLayoutSelect={};b(g,l,w),b(g,n.states.select,w)}if(n.states.emphasis){var m=v.oldLayoutEmphasis={};b(m,l,w),b(m,n.states.emphasis,w)}Object(f.a)(n,c,h,t,t)}if(r&&!r.ignore&&!r.invisible){i=(v=A(r)).oldLayout;var v,x={points:r.shape.points};i?(r.attr({shape:i}),Object(a.h)(r,{shape:x},t)):(r.setShape(x),r.style.strokePercent=0,Object(a.c)(r,{style:{strokePercent:1}},t)),v.oldLayout=x}},e}(),C=Object(r.o)();function _(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){
// TODO api provide an namespace that can save stuff per instance
var r=C(t).labelManager;r||(r=C(t).labelManager=new x),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=C(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}
/***/},
/***/ee7f:
/***/function(e,t,n){
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
var r=n("8d87"),i=n("ed60"),a=n("2fb2"),o=n("f083"),s=n("9fe8"),c=n("d77f");o(o.S,"Reflect",{get:function e(t,n/* , receiver */){var o,l,u=arguments.length<3?t:arguments[2];return c(t)===u?t[n]:(o=r.f(t,n))?a(o,"value")?o.value:void 0!==o.get?o.get.call(u):void 0:s(l=i(t))?e(l,n,u):void 0}})},
/***/ef08:
/***/function(e,t){
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);// eslint-disable-line no-undef
/***/},
/***/ef20:
/***/function(e,t,n){"use strict";var r=function(){var e=0,t=document.createElement("div");
function n(e){return t.appendChild(e.dom),e}function i(n){for(var r=0;r<t.children.length;r++)t.children[r].style.display=r===n?"block":"none";e=n}

t.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",(function(n){n.preventDefault(),i(++e%t.children.length)}),!1);var a=(performance||Date).now(),o=a,s=0,c=n(new r.Panel("FPS","#0ff","#002")),l=n(new r.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=n(new r.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:t,addPanel:n,showPanel:i,begin:function(){a=(performance||Date).now()},end:function(){s++;var e=(performance||Date).now();if(l.update(e-a,200),e>=o+1e3&&(c.update(1e3*s/(e-o),100),o=e,s=0,u)){var t=performance.memory;u.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){a=this.end()},
// Backwards Compatibility
domElement:t,setMode:i}};r.Panel=function(e,t,n){var r=1/0,i=0,a=Math.round,o=a(window.devicePixelRatio||1),s=80*o,c=48*o,l=3*o,u=2*o,h=3*o,f=15*o,d=74*o,p=30*o,g=document.createElement("canvas");g.width=s,g.height=c,g.style.cssText="width:80px;height:48px";var m=g.getContext("2d");return m.font="bold "+9*o+"px Helvetica,Arial,sans-serif",m.textBaseline="top",m.fillStyle=n,m.fillRect(0,0,s,c),m.fillStyle=t,m.fillText(e,l,u),m.fillRect(h,f,d,p),m.fillStyle=n,m.globalAlpha=.9,m.fillRect(h,f,d,p),{dom:g,update:function(c,v){r=Math.min(r,c),i=Math.max(i,c),m.fillStyle=n,m.globalAlpha=1,m.fillRect(0,0,s,f),m.fillStyle=t,m.fillText(a(c)+" "+e+" ("+a(r)+"-"+a(i)+")",l,u),m.drawImage(g,h+o,f,d-o,p,h,f,d-o,p),m.fillRect(h+d-o,f,o,p),m.fillStyle=n,m.globalAlpha=.9,m.fillRect(h+d-o,f,o,a((1-c/v)*p))}}},
/* harmony default export */t.a=r},
/***/ef59:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return h})),n.d(t,"e",(function(){/* binding */return f})),n.d(t,"b",(function(){/* binding */return d})),n.d(t,"d",(function(){/* binding */return p})),n.d(t,"c",(function(){/* binding */return g}));
// EXTERNAL MODULE: ./node_modules/echarts/lib/model/Model.js + 2 modules
var r=n("4319"),i=n("22d1"),a=n("6d8b"),o="ZH",s="EN",c=s,l={},u={},h=i.a.domSupported&&/* eslint-disable-next-line */(document.documentElement.lang||navigator.language||navigator.browserLanguage||c).toUpperCase().indexOf(o)>-1?o:c;
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/env.js
function f(e,t){e=e.toUpperCase(),u[e]=new r.a(t),l[e]=t}
// export function getLocale(locale: string) {
//     return localeStorage[locale];
// }
function d(e){if(Object(a.isString)(e)){var t=l[e.toUpperCase()]||{};return e===o||e===s?Object(a.clone)(t):Object(a.merge)(Object(a.clone)(t),Object(a.clone)(l[c]),!1)}return Object(a.merge)(Object(a.clone)(e),Object(a.clone)(l[c]),!1)}function p(e){return u[e]}function g(){return u[c]}
// Default locale
f(s,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),f(o,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}})},
/***/ef5d:
/***/function(e,t){e.exports=
/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function(e){return function(t){return null==t?void 0:t[e]}}},
/***/efb6:
/***/function(e,t,n){var r=n("5e2e");
/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */e.exports=function(){this.__data__=new r,this.size=0}},
/***/efec:
/***/function(e,t,n){"use strict";var r=n("1a2d"),i=n("cb2d"),a=n("51eb"),o=n("b622")("toPrimitive"),s=Date.prototype;
// `Date.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
r(s,o)||i(s,o,a)
/***/},
/***/f00c:
/***/function(e,t,n){"use strict";
// `Number.isFinite` method
// https://tc39.es/ecma262/#sec-number.isfinite
n("23e7")({target:"Number",stat:!0},{isFinite:n("e285")})},
/***/f040:
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];
// Ensure all modes have a mime property for backwards compatibility
for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),a=i>-1&&t.substring(i+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n("56b3"));
/***/},
/***/f069:
/***/function(e,t,n){"use strict";var r=n("59ed"),i=TypeError,a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};
// `NewPromiseCapability` abstract operation
// https://tc39.es/ecma262/#sec-newpromisecapability
e.exports.f=function(e){return new a(e)}},
/***/f083:
/***/function(e,t,n){var r=n("93e0"),i=n("0ae2"),a=n("0713"),o=n("77ea"),s=n("911a"),c="prototype",l=function(e,t,n){var u,h,f,d,p=e&l.F,g=e&l.G,m=e&l.S,v=e&l.P,y=e&l.B,A=g?r:m?r[t]||(r[t]={}):(r[t]||{})[c],b=g?i:i[t]||(i[t]={}),w=b[c]||(b[c]={});for(u in g&&(n=t),n)
// contains in native
// export native or passed
f=((h=!p&&A&&void 0!==A[u])?A:n)[u],
// bind timers to global for call from export context
d=y&&h?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,
// extend global
A&&o(A,u,f,e&l.U),
// export
b[u]!=f&&a(b,u,d),v&&w[u]!=f&&(w[u]=f)};r.core=i,
// type bitmap
l.F=1,// forced
l.G=2,// global
l.S=4,// static
l.P=8,// proto
l.B=16,// bind
l.W=32,// wrap
l.U=64,// safe
l.R=128,// real proto method for `library`
e.exports=l},
/***/f0ce:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_Symbol.js
var r=n("ca54"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r.a?r.a.toStringTag:void 0;
// CONCATENATED MODULE: ./node_modules/lodash-es/_getRawTag.js
/** Used for built-in method references. */
/* harmony default export */var c=
/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i},l=Object.prototype.toString;
// CONCATENATED MODULE: ./node_modules/lodash-es/_objectToString.js
/** Used for built-in method references. */
/* harmony default export */var u=
/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function(e){return l.call(e)},h=r.a?r.a.toStringTag:void 0;
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseGetTag.js
/** `Object#toString` result references. */
/* harmony default export */t.a=
/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?c(e):u(e)};
/***/},
/***/f111:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.barConfig=void 0;t.barConfig={
/**
   * @description Whether to display this bar chart
   * @type {Boolean}
   * @default show = true
   */
show:!0,
/**
   * @description Legend name
   * @type {String}
   * @default name = ''
   */
name:"",
/**
   * @description Data stacking
   * The data value of the series element of the same stack
   * will be superimposed (the latter value will be superimposed on the previous value)
   * @type {String}
   * @default stack = ''
   */
stack:"",
/**
   * @description Bar shape type
   * @type {String}
   * @default shapeType = 'normal'
   * @example shapeType = 'normal' | 'leftEchelon' | 'rightEchelon'
   */
shapeType:"normal",
/**
   * @description Echelon bar sharpness offset
   * @type {Number}
   * @default echelonOffset = 10
   */
echelonOffset:10,
/**
   * @description Bar width
   * This property should be set on the last 'bar' series
   * in this coordinate system to take effect and will be in effect
   * for all 'bar' series in this coordinate system
   * @type {String|Number}
   * @default barWidth = 'auto'
   * @example barWidth = 'auto' | '10%' | 20
   */
barWidth:"auto",
/**
   * @description Bar gap
   * This property should be set on the last 'bar' series
   * in this coordinate system to take effect and will be in effect
   * for all 'bar' series in this coordinate system
   * @type {String|Number}
   * @default barGap = '30%'
   * @example barGap = '30%' | 30
   */
barGap:"30%",
/**
   * @description Bar category gap
   * This property should be set on the last 'bar' series
   * in this coordinate system to take effect and will be in effect
   * for all 'bar' series in this coordinate system
   * @type {String|Number}
   * @default barCategoryGap = '20%'
   * @example barCategoryGap = '20%' | 20
   */
barCategoryGap:"20%",
/**
   * @description Bar x axis index
   * @type {Number}
   * @default xAxisIndex = 0
   * @example xAxisIndex = 0 | 1
   */
xAxisIndex:0,
/**
   * @description Bar y axis index
   * @type {Number}
   * @default yAxisIndex = 0
   * @example yAxisIndex = 0 | 1
   */
yAxisIndex:0,
/**
   * @description Bar chart data
   * @type {Array}
   * @default data = []
   * @example data = [100, 200, 300]
   */
data:[],
/**
   * @description Background bar configuration
   * @type {Object}
   */
backgroundBar:{
/**
     * @description Whether to display background bar
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Background bar width
     * @type {String|Number}
     * @default width = 'auto'
     * @example width = 'auto' | '30%' | 30
     */
width:"auto",
/**
     * @description Background bar default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fill:"rgba(200, 200, 200, .4)"}},
/**
   * @description Bar label configuration
   * @type {Object}
   */
label:{
/**
     * @description Whether to display bar label
     * @type {Boolean}
     * @default show = false
     */
show:!1,
/**
     * @description Bar label position
     * @type {String}
     * @default position = 'top'
     * @example position = 'top' | 'center' | 'bottom'
     */
position:"top",
/**
     * @description Bar label offset
     * @type {Array}
     * @default offset = [0, -10]
     */
offset:[0,-10],
/**
     * @description Bar label formatter
     * @type {String|Function}
     * @default formatter = null
     * @example formatter = '{value}件'
     * @example formatter = (dataItem) => (dataItem.value)
     */
formatter:null,
/**
     * @description Bar label default style configuration
     * @type {Object}
     * @default style = {Configuration Of Class Style}
     */
style:{fontSize:10}},
/**
   * @description Bar gradient configuration
   * @type {Object}
   */
gradient:{
/**
     * @description Gradient color (Hex|rgb|rgba)
     * @type {Array}
     * @default color = []
     */
color:[],
/**
     * @description Local gradient
     * @type {Boolean}
     * @default local = true
     */
local:!0},
/**
   * @description Bar style default configuration
   * @type {Object}
   * @default style = {Configuration Of Class Style}
   */
barStyle:{},
/**
   * @description Independent color mode
   * When set to true, independent color mode is enabled
   * @type {Boolean}
   * @default independentColor = false
   */
independentColor:!1,
/**
   * @description Independent colors
   * Only effective when independent color mode is enabled
   * Default value is the same as the color in the root configuration
   * Two-dimensional color array can produce gradient colors
   * @type {Array}
   * @example independentColor = ['#fff', '#000']
   * @example independentColor = [['#fff', '#000'], '#000']
   */
independentColors:[],
/**
   * @description Bar chart render level
   * Priority rendering high level
   * @type {Number}
   * @default rLevel = 0
   */
rLevel:0,
/**
   * @description Bar animation curve
   * @type {String}
   * @default animationCurve = 'easeOutCubic'
   */
animationCurve:"easeOutCubic",
/**
   * @description Bar animation frame
   * @type {Number}
   * @default animationFrame = 50
   */
animationFrame:50}},
/***/f183:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("d012"),o=n("861d"),s=n("1a2d"),c=n("9bf2").f,l=n("241c"),u=n("057f"),h=n("4fadd"),f=n("90e3"),d=n("bb2f"),p=!1,g=f("meta"),m=0,v=function(e){c(e,g,{value:{objectID:"O"+m++,// object ID
weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){/* empty */},p=!0;var e=l.f,t=i([].splice),n={};n[g]=1,
// prevent exposing of metadata key
e(n).length&&(l.f=function(n){for(var r=e(n),i=0,a=r.length;i<a;i++)if(r[i]===g){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){
// return a primitive with prefix
if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){
// can't set metadata to uncaught frozen object
if(!h(e))return"F";
// not necessary to add metadata
if(!t)return"E";
// add missing metadata
v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){
// can't set metadata to uncaught frozen object
if(!h(e))return!0;
// not necessary to add metadata
if(!t)return!1;
// add missing metadata
v(e)}return e[g].weakData},onFreeze:function(e){return d&&p&&h(e)&&!s(e,g)&&v(e),e}};a[g]=!0},
/***/f22b:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("f069");
// `Promise.reject` method
// https://tc39.es/ecma262/#sec-promise.reject
r({target:"Promise",stat:!0,forced:n("4738").CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},
/***/f23d:
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: Base, version, install, message, notification, Affix, Anchor, AutoComplete, Alert, Avatar, BackTop, Badge, Breadcrumb, Button, Calendar, Card, Collapse, Carousel, Cascader, Checkbox, Col, DatePicker, Divider, Dropdown, Form, FormModel, Icon, Input, InputNumber, Layout, List, LocaleProvider, Menu, Mentions, Modal, Pagination, Popconfirm, Popover, Progress, Radio, Rate, Row, Select, Slider, Spin, Statistic, Steps, Switch, Table, Transfer, Tree, TreeSelect, Tabs, Tag, TimePicker, Timeline, Tooltip, Upload, Drawer, Skeleton, Comment, ConfigProvider, Empty, Result, Descriptions, PageHeader, Space
// EXTERNAL MODULE: ./node_modules/babel-helper-vue-jsx-merge-props/index.js
var r=n("92fa"),i=n.n(r),a=n("6042"),o=n.n(a),s=n("4d91"),c=n("4d26"),l=n.n(c),u=n("0464"),h=n("6dd8"),f={name:"ResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){
// Unregister if disabled
if(this.$props.disabled)this.destroyObserver();else{
// Unregister if element changed
var e=this.$el;e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new h.a(this.onResize),this.resizeObserver.observe(e))}},onResize:function(e){var t=e[0].target.getBoundingClientRect(),n=t.width,r=t.height,i=Math.floor(n),a=Math.floor(r);if(this.width!==i||this.height!==a){var o={width:i,height:a};this.width=i,this.height=a,this.$emit("resize",o)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}},d=n("b488"),p=n("9b57"),g=n.n(p),m=n("c449"),v=n.n(m);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/throttleByAnimationFrame.js
function y(e){var t=void 0,n=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t&&(t=v()(function(n){return function(){t=null,e.apply(void 0,g()(n))}}(r)))};return n.cancel=function(){return v.a.cancel(t)},n}
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/config-provider/index.js + 1 modules
var A=n("4df5"),b=n("db14"),w=n("6a21"),x=n("c8c6");
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/base/index.js + 2 modules
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/affix/utils.js
function C(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function _(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top+"px"}function I(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)+"px"}
// ======================== Observer ========================
var E=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],k=[];function S(e,t){if(e){var n=k.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},k.push(n),
// Add listener
E.forEach((function(t){n.eventHandlers[t]=Object(x.a)(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function B(e){var t=k.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(k=k.filter((function(e){return e!==t})),
// Remove listener
E.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/affix/index.js
// Affix
var M={
/**
   * 距离窗口顶部达到指定偏移量后触发
   */
offsetTop:s.a.number,offset:s.a.number,
/** 距离窗口底部达到指定偏移量后触发 */
offsetBottom:s.a.number,
/** 固定状态改变时触发的回调函数 */
// onChange?: (affixed?: boolean) => void;
/** 设置 Affix 需要监听其滚动事件的元素，值为一个返回对应 DOM 元素的函数 */
target:s.a.func.def((function(){return"undefined"!=typeof window?window:null})),prefixCls:s.a.string},T="none",O="Prepare",D={name:"AAffix",props:M,mixins:[d.a],inject:{configProvider:{default:function(){return A.a}}},data:function(){return{affixStyle:void 0,placeholderStyle:void 0,status:T,lastAffix:!1,prevTarget:null}},beforeMount:function(){this.updatePosition=y(this.updatePosition),this.lazyUpdatePosition=y(this.lazyUpdatePosition)},mounted:function(){var e=this,t=this.target;t&&(
// [Legacy] Wait for parent component ref has its value.
// We should use target as directly element instead of function which makes element check hard.
this.timeout=setTimeout((function(){S(t(),e),
// Mock Event object.
e.updatePosition()})))},updated:function(){this.measure()},watch:{target:function(e){var t=null;e&&(t=e()||null),this.prevTarget!==t&&(B(this),t&&(S(t,this),
// Mock Event object.
this.updatePosition()),this.prevTarget=t)},offsetTop:function(){this.updatePosition()},offsetBottom:function(){this.updatePosition()}},beforeDestroy:function(){clearTimeout(this.timeout),B(this),this.updatePosition.cancel(),
// https://github.com/ant-design/ant-design/issues/22683
this.lazyUpdatePosition.cancel()},methods:{getOffsetTop:function(){var e=this.offset,t=this.offsetBottom,n=this.offsetTop;return void 0===n&&(n=e,Object(w.a)(void 0===e,"Affix","`offset` is deprecated. Please use `offsetTop` instead.")),void 0===t&&void 0===n&&(n=0),n},getOffsetBottom:function(){return this.offsetBottom},
// =================== Measure ===================
measure:function(){var e=this.status,t=this.lastAffix,n=this.target;if(e===O&&this.$refs.fixedNode&&this.$refs.placeholderNode&&n){var r=this.getOffsetTop(),i=this.getOffsetBottom(),a=n();if(a){var o={status:T},s=C(a),c=C(this.$refs.placeholderNode),l=_(c,s,r),u=I(c,s,i);void 0!==l?(o.affixStyle={position:"fixed",top:l,width:c.width+"px",height:c.height+"px"},o.placeholderStyle={width:c.width+"px",height:c.height+"px"}):void 0!==u&&(o.affixStyle={position:"fixed",bottom:u,width:c.width+"px",height:c.height+"px"},o.placeholderStyle={width:c.width+"px",height:c.height+"px"}),o.lastAffix=!!o.affixStyle,t!==o.lastAffix&&this.$emit("change",o.lastAffix),this.setState(o)}}},
// @ts-ignore TS6133
prepareMeasure:function(){this.setState({status:O,affixStyle:void 0,placeholderStyle:void 0}),this.$forceUpdate()},updatePosition:function(){this.prepareMeasure()},lazyUpdatePosition:function(){var e=this.target,t=this.affixStyle;
// Check position change before measure to make Safari smooth
if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),i=e();if(i&&this.$refs.placeholderNode){var a=C(i),o=C(this.$refs.placeholderNode),s=_(o,a,n),c=I(o,a,r);if(void 0!==s&&t.top===s||void 0!==c&&t.bottom===c)return}}
// Directly call prepare measure since it's already throttled.
this.prepareMeasure()}},render:function(){var e=this,t=arguments[0],n=this.prefixCls,r=this.affixStyle,a=this.placeholderStyle,s=this.$slots,c=this.$props,h=this.configProvider.getPrefixCls,d=l()(o()({},h("affix",n),r)),p={attrs:Object(u.a)(c,["prefixCls","offsetTop","offsetBottom","target"])};return t(f,{on:{resize:function(){e.updatePosition()}}},[t("div",i()([p,{style:a,ref:"placeholderNode"}]),[t("div",{class:d,ref:"fixedNode",style:r},[s.default])])])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(D.name,D)}},P=D,L=n("41b2"),Q=n.n(L);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/getScroll.js
function R(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft",r=e===window,i=r?e[t?"pageYOffset":"pageXOffset"]:e[n];
// ie6,7,8 standard mode
return r&&"number"!=typeof i&&(i=window.document.documentElement[n]),i}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/easings.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/scrollTo.js
// interface ScrollToOptions {
//   /** Scroll container, default as window */
//   getContainer?: () => HTMLElement | Window;
//   /** Scroll end callback */
//   callback?: () => any;
//   /** Animation duration, default as 450 */
//   duration?: number;
// }
function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,i=t.callback,a=t.duration,o=void 0===a?450:a,s=r(),c=R(s,!0),l=Date.now();v()((function t(){var n,r,a,u=Date.now()-l,h=(n=u>o?o:u,a=e-(r=c),(n/=o/2)<1?a/2*n*n*n+r:a/2*((n-=2)*n*n+2)+r);s===window?window.scrollTo(window.pageXOffset,h):s.scrollTop=h,u<o?v()(t):"function"==typeof i&&i()}))}
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/_util/props-util.js
var N=n("daa3");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/anchor/Anchor.js
function F(e,t){if(!e)return 0;if(!e.getClientRects().length)return 0;var n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}
// function easeInOutCubic(t, b, c, d) {
//   const cc = c - b;
//   t /= d / 2;
//   if (t < 1) {
//     return (cc / 2) * t * t * t + b;
//   }
//   return (cc / 2) * ((t -= 2) * t * t + 2) + b;
// }
var z=/#([^#]+)$/,H={prefixCls:s.a.string,offsetTop:s.a.number,bounds:s.a.number,affix:s.a.bool,showInkInFixed:s.a.bool,getContainer:s.a.func,wrapperClass:s.a.string,wrapperStyle:s.a.object,getCurrentAnchor:s.a.func,targetOffset:s.a.number},U={name:"AAnchor",mixins:[d.a],inheritAttrs:!1,props:Object(N.t)(H,{affix:!0,showInkInFixed:!1,getContainer:function(){return window}}),inject:{configProvider:{default:function(){return A.a}}},data:function(){return this.links=[],this._sPrefixCls="",{activeLink:null}},provide:function(){var e=this;return{antAnchor:{registerLink:function(t){e.links.includes(t)||e.links.push(t)},unregisterLink:function(t){var n=e.links.indexOf(t);-1!==n&&e.links.splice(n,1)},$data:this.$data,scrollTo:this.handleScrollTo},antAnchorContext:this}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.getContainer;e.scrollContainer=t(),e.scrollEvent=Object(x.a)(e.scrollContainer,"scroll",e.handleScroll),e.handleScroll()}))},updated:function(){var e=this;this.$nextTick((function(){if(e.scrollEvent){var t=(0,e.getContainer)();e.scrollContainer!==t&&(e.scrollContainer=t,e.scrollEvent.remove(),e.scrollEvent=Object(x.a)(e.scrollContainer,"scroll",e.handleScroll),e.handleScroll())}e.updateInk()}))},beforeDestroy:function(){this.scrollEvent&&this.scrollEvent.remove()},methods:{getCurrentActiveLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=this.getCurrentAnchor;if("function"==typeof n)return n();if("undefined"==typeof document)return"";var r=[],i=(0,this.getContainer)();return this.links.forEach((function(n){var a=z.exec(n.toString());if(a){var o=document.getElementById(a[1]);if(o){var s=F(o,i);s<e+t&&r.push({link:n,top:s})}}})),r.length?r.reduce((function(e,t){return t.top>e.top?t:e})).link:""},handleScrollTo:function(e){var t=this,n=this.offsetTop,r=this.getContainer,i=this.targetOffset;this.setCurrentActiveLink(e);var a=r(),o=R(a,!0),s=z.exec(e);if(s){var c=document.getElementById(s[1]);if(c){var l=o+F(c,a);l-=void 0!==i?i:n||0,this.animating=!0,j(l,{callback:function(){t.animating=!1},getContainer:r})}}},setCurrentActiveLink:function(e){this.activeLink!==e&&(this.setState({activeLink:e}),this.$emit("change",e))},handleScroll:function(){if(!this.animating){var e=this.offsetTop,t=this.bounds,n=this.targetOffset,r=this.getCurrentActiveLink(void 0!==n?n:e||0,t);this.setCurrentActiveLink(r)}},updateInk:function(){if("undefined"!=typeof document){var e=this._sPrefixCls,t=this.$el.getElementsByClassName(e+"-link-title-active")[0];t&&(this.$refs.inkNode.style.top=t.offsetTop+t.clientHeight/2-4.5+"px")}}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.offsetTop,r=this.affix,i=this.showInkInFixed,a=this.activeLink,o=this.$slots,s=this.getContainer,c=(0,this.configProvider.getPrefixCls)("anchor",t);this._sPrefixCls=c;var u=l()(c+"-ink-ball",{visible:a}),h=l()(this.wrapperClass,c+"-wrapper"),f=l()(c,{fixed:!r&&!i}),d=e("div",{class:h,style:Q()({maxHeight:n?"calc(100vh - "+n+"px)":"100vh"},this.wrapperStyle)},[e("div",{class:f},[e("div",{class:c+"-ink"},[e("span",{class:u,ref:"inkNode"})]),o.default])]);return r?e(P,{attrs:{offsetTop:n,target:s}},[d]):d}},G={prefixCls:s.a.string,href:s.a.string,title:s.a.any,target:s.a.string},V={name:"AAnchorLink",props:Object(N.t)(G,{href:"#"}),inject:{antAnchor:{default:function(){return{}}},antAnchorContext:{default:function(){return{}}},configProvider:{default:function(){return A.a}}},watch:{href:function(e,t){var n=this;this.$nextTick((function(){n.antAnchor.unregisterLink(t),n.antAnchor.registerLink(e)}))}},mounted:function(){this.antAnchor.registerLink(this.href)},beforeDestroy:function(){this.antAnchor.unregisterLink(this.href)},methods:{handleClick:function(e){this.antAnchor.scrollTo(this.href);var t=this.antAnchor.scrollTo,n=this.$props,r=n.href,i=n.title;this.antAnchorContext.$emit&&this.antAnchorContext.$emit("click",e,{title:i,href:r}),t(r)}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.href,r=this.$slots,i=this.target,a=(0,this.configProvider.getPrefixCls)("anchor",t),s=Object(N.g)(this,"title"),c=this.antAnchor.$data.activeLink===n;return e("div",{class:l()(a+"-link",o()({},a+"-link-active",c))},[e("a",{class:l()(a+"-link-title",o()({},a+"-link-title-active",c)),attrs:{href:n,title:"string"==typeof s?s:"",target:i},on:{click:this.handleClick}},[s]),r.default])}};
// function scrollTo(href, offsetTop = 0, getContainer, callback = () => {}) {
//   const container = getContainer();
//   const scrollTop = getScroll(container, true);
//   const sharpLinkMatch = sharpMatcherRegx.exec(href);
//   if (!sharpLinkMatch) {
//     return;
//   }
//   const targetElement = document.getElementById(sharpLinkMatch[1]);
//   if (!targetElement) {
//     return;
//   }
//   const eleOffsetTop = getOffsetTop(targetElement, container);
//   const targetScrollTop = scrollTop + eleOffsetTop - offsetTop;
//   const startTime = Date.now();
//   const frameFunc = () => {
//     const timestamp = Date.now();
//     const time = timestamp - startTime;
//     const nextScrollTop = easeInOutCubic(time, scrollTop, targetScrollTop, 450);
//     if (container === window) {
//       window.scrollTo(window.pageXOffset, nextScrollTop);
//     } else {
//       container.scrollTop = nextScrollTop;
//     }
//     if (time < 450) {
//       raf(frameFunc);
//     } else {
//       callback();
//     }
//   };
//   raf(frameFunc);
// }
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/anchor/index.js
U.Link=V,
/* istanbul ignore next */
U.install=function(e){e.use(b.a),e.component(U.name,U),e.component(U.Link.name,U.Link)};
/* harmony default export */var W=U,q=n("1098"),Y=n.n(q),K={props:{value:s.a.oneOfType([s.a.string,s.a.number]),label:s.a.oneOfType([s.a.string,s.a.number]),disabled:s.a.bool,title:s.a.oneOfType([s.a.string,s.a.number])},isSelectOption:!0},$={props:{value:s.a.oneOfType([s.a.string,s.a.number]),label:s.a.oneOfType([s.a.string,s.a.number])},isSelectOptGroup:!0},J=n("8e8e"),X=n.n(J),Z=n("18a7"),ee=n("3c55"),te=n.n(ee),ne=n("528d"),re=n("4a15"),ie=n("d96e"),ae=n.n(ie),oe=n("a026"),se=n("94eb"),ce=n("7b05"),le=n("58c1"),ue=n("46cf"),he=n.n(ue),fe=n("8496"),de=n("da30"),pe=n("ec44");
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/typeof.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-select/util.js
function ge(e){return"string"==typeof e?e.trim():""}function me(e){if(!e)return null;var t=Object(N.m)(e);if("value"in t)return t.value;if(void 0!==Object(N.j)(e))return Object(N.j)(e);if(Object(N.o)(e).isSelectOptGroup){var n=Object(N.g)(e,"label");if(n)return n}throw new Error("Need at least a key or a value or a label (only for OptGroup) for "+e)}function ve(e,t){if("value"===t)return me(e);if("children"===t){var n=e.$slots?Object(ce.b)(e.$slots.default,!0):Object(ce.b)(e.componentOptions.children,!0);return 1!==n.length||n[0].tag?n:n[0].text}var r=Object(N.m)(e);return t in r?r[t]:Object(N.e)(e)[t]}function ye(e){return e.combobox}function Ae(e){return e.multiple||e.tags}function be(e){return Ae(e)||ye(e)}function we(e){return!be(e)}function xe(e){var t=e;return void 0===e?t=[]:Array.isArray(e)||(t=[e]),t}function Ce(e){return(void 0===e?"undefined":Y()(e))+"-"+e}function _e(e){e.preventDefault()}function Ie(e,t){var n=-1;if(e)for(var r=0;r<e.length;r++)if(e[r]===t){n=r;break}return n}function Ee(e,t){var n=void 0;if(e=xe(e))for(var r=0;r<e.length;r++)if(e[r].key===t){n=e[r].label;break}return n}function ke(e,t){if(null==t)return[];var n=[];return e.forEach((function(e){if(Object(N.o)(e).isMenuItemGroup)n=n.concat(ke(e.componentOptions.children,t));else{var r=me(e),i=e.key;-1!==Ie(t,r)&&void 0!==i&&n.push(i)}})),n}var Se={userSelect:"none",WebkitUserSelect:"none"},Be={unselectable:"on"};function Me(e){for(var t=0;t<e.length;t++){var n=e[t],r=Object(N.m)(n);if(Object(N.o)(n).isMenuItemGroup){var i=Me(n.componentOptions.children);if(i)return i}else if(!r.disabled)return n}return null}function Te(e,t){if(Object(N.m)(t).disabled)return!1;var n=ve(t,this.optionFilterProp);return(n=n.length&&n[0].text?n[0].text:String(n)).toLowerCase().indexOf(e.toLowerCase())>-1}function Oe(e,t){return function(n){e[t]=n}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-select/DropdownMenu.js
/* harmony default export */var De={name:"DropdownMenu",mixins:[d.a],props:{ariaId:s.a.string,defaultActiveFirstOption:s.a.bool,value:s.a.any,dropdownMenuStyle:s.a.object,multiple:s.a.bool,
// onPopupFocus: PropTypes.func,
// onPopupScroll: PropTypes.func,
// onMenuDeSelect: PropTypes.func,
// onMenuSelect: PropTypes.func,
prefixCls:s.a.string,menuItems:s.a.any,inputValue:s.a.string,visible:s.a.bool,backfillValue:s.a.any,firstActiveValue:s.a.string,menuItemSelectedIcon:s.a.any},watch:{visible:function(e){var t=this;e?this.$nextTick((function(){t.scrollActiveItemToView()})):this.lastVisible=e}},created:function(){this.rafInstance=null,this.lastInputValue=this.$props.inputValue,this.lastVisible=!1},mounted:function(){var e=this;this.$nextTick((function(){e.scrollActiveItemToView()})),this.lastVisible=this.$props.visible},updated:function(){var e=this.$props;
// if (!this.prevVisible && props.visible) {
//   this.$nextTick(() => {
//     this.scrollActiveItemToView();
//   });
// }
this.lastVisible=e.visible,this.lastInputValue=e.inputValue,this.prevVisible=this.visible},beforeDestroy:function(){this.rafInstance&&v.a.cancel(this.rafInstance)},methods:{scrollActiveItemToView:function(){var e=this,t=this.firstActiveItem&&this.firstActiveItem.$el,n=this.$props,r=n.value,i=n.visible,a=n.firstActiveValue;
// scroll into view
if(t&&i){var o={onlyScrollIfNeeded:!0};r&&0!==r.length||!a||(o.alignWithTop=!0),
// Delay to scroll since current frame item position is not ready when pre view is by filter
// https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462
this.rafInstance=v()((function(){Object(pe.a)(t,e.$refs.menuRef.$el,o)}))}},renderMenu:function(){var e=this,t=this.$createElement,n=this.$props,r=n.menuItems,i=n.defaultActiveFirstOption,a=n.value,o=n.prefixCls,s=n.multiple,c=n.inputValue,l=n.firstActiveValue,u=n.dropdownMenuStyle,h=n.backfillValue,f=n.visible,d=Object(N.g)(this,"menuItemSelectedIcon"),p=Object(N.k)(this),g=p.menuDeselect,m=p.menuSelect,v=p.popupScroll;if(r&&r.length){var y=ke(r,a),A={props:{multiple:s,itemIcon:s?d:null,selectedKeys:y,prefixCls:o+"-menu"},on:{},style:u,ref:"menuRef",attrs:{role:"listbox"}};v&&(A.on.scroll=v),s?(A.on.deselect=g,A.on.select=m):A.on.click=m;var b={},w=i,x=r;if(y.length||l){n.visible&&!this.lastVisible?b.activeKey=y[0]||l:f||(
// Do not trigger auto active since we already have selectedKeys
y[0]&&(w=!1),b.activeKey=void 0);var C=!1,_=function(t){return!C&&-1!==y.indexOf(t.key)||!C&&!y.length&&-1!==l.indexOf(t.key)?(C=!0,Object(ce.a)(t,{directives:[{name:"ant-ref",value:function(t){e.firstActiveItem=t}}]})):t};
// set firstActiveItem via cloning menus
// for scroll into view
x=r.map((function(e){if(Object(N.o)(e).isMenuItemGroup){var t=e.componentOptions.children.map(_);return Object(ce.a)(e,{children:t})}return _(e)}))}else
// Clear firstActiveItem when dropdown menu items was empty
// Avoid `Unable to find node on an unmounted component`
// https://github.com/ant-design/ant-design/issues/10774
this.firstActiveItem=null;
// clear activeKey when inputValue change
var I=a&&a[a.length-1];return c===this.lastInputValue||I&&I===h||(b.activeKey=""),A.props=Q()({},b,A.props,{defaultActiveFirst:w}),t(de.a,A,[x])}return null}},render:function(){var e=arguments[0],t=this.renderMenu(),n=Object(N.k)(this),r=n.popupFocus,i=n.popupScroll;return t?e("div",{style:{overflow:"auto",transform:"translateZ(0)"},attrs:{id:this.$props.ariaId,tabIndex:"-1"},on:{focus:r,mousedown:_e,scroll:i},ref:"menuContainer"},[t]):null}},Pe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},Le={name:"SelectTrigger",mixins:[d.a],props:{
// onPopupFocus: PropTypes.func,
// onPopupScroll: PropTypes.func,
dropdownMatchSelectWidth:s.a.bool,defaultActiveFirstOption:s.a.bool,dropdownAlign:s.a.object,visible:s.a.bool,disabled:s.a.bool,showSearch:s.a.bool,dropdownClassName:s.a.string,dropdownStyle:s.a.object,dropdownMenuStyle:s.a.object,multiple:s.a.bool,inputValue:s.a.string,filterOption:s.a.any,empty:s.a.bool,options:s.a.any,prefixCls:s.a.string,popupClassName:s.a.string,value:s.a.array,
// children: PropTypes.any,
showAction:s.a.arrayOf(s.a.string),combobox:s.a.bool,animation:s.a.string,transitionName:s.a.string,getPopupContainer:s.a.func,backfillValue:s.a.any,menuItemSelectedIcon:s.a.any,dropdownRender:s.a.func,ariaId:s.a.string},data:function(){return{dropdownWidth:0}},created:function(){this.rafInstance=null,this.saveDropdownMenuRef=Oe(this,"dropdownMenuRef"),this.saveTriggerRef=Oe(this,"triggerRef")},mounted:function(){var e=this;this.$nextTick((function(){e.setDropdownWidth()}))},updated:function(){var e=this;this.$nextTick((function(){e.setDropdownWidth()}))},beforeDestroy:function(){this.cancelRafInstance()},methods:{setDropdownWidth:function(){var e=this;this.cancelRafInstance(),this.rafInstance=v()((function(){var t=e.$el.offsetWidth;t!==e.dropdownWidth&&e.setState({dropdownWidth:t})}))},cancelRafInstance:function(){this.rafInstance&&v.a.cancel(this.rafInstance)},getInnerMenu:function(){return this.dropdownMenuRef&&this.dropdownMenuRef.$refs.menuRef},getPopupDOMNode:function(){return this.triggerRef.getPopupDomNode()},getDropdownElement:function(e){var t=this.$createElement,n=this.value,r=this.firstActiveValue,i=this.defaultActiveFirstOption,a=this.dropdownMenuStyle,o=this.getDropdownPrefixCls,s=this.backfillValue,c=this.menuItemSelectedIcon,l=Object(N.k)(this),u=l.menuSelect,h=l.menuDeselect,f=l.popupScroll,d=this.$props,p=d.dropdownRender,g=d.ariaId,m={props:Q()({},e.props,{ariaId:g,prefixCls:o(),value:n,firstActiveValue:r,defaultActiveFirstOption:i,dropdownMenuStyle:a,backfillValue:s,menuItemSelectedIcon:c}),on:Q()({},e.on,{menuSelect:u,menuDeselect:h,popupScroll:f}),directives:[{name:"ant-ref",value:this.saveDropdownMenuRef}]},v=t(De,m);return p?p(v,d):null},getDropdownTransitionName:function(){var e=this.$props,t=e.transitionName;return!t&&e.animation&&(t=this.getDropdownPrefixCls()+"-"+e.animation),t},getDropdownPrefixCls:function(){return this.prefixCls+"-dropdown"}},render:function(){var e,t=arguments[0],n=this.$props,r=this.$slots,i=n.multiple,a=n.visible,s=n.inputValue,c=n.dropdownAlign,u=n.disabled,h=n.showSearch,f=n.dropdownClassName,d=n.dropdownStyle,p=n.dropdownMatchSelectWidth,g=n.options,m=n.getPopupContainer,v=n.showAction,y=n.empty,A=Object(N.k)(this),b=A.mouseenter,w=A.mouseleave,x=A.popupFocus,C=A.dropdownVisibleChange,_=this.getDropdownPrefixCls(),I=(e={},o()(e,f,!!f),o()(e,_+"--"+(i?"multiple":"single"),1),o()(e,_+"--empty",y),e),E=this.getDropdownElement({props:{menuItems:g,multiple:i,inputValue:s,visible:a},on:{popupFocus:x}}),k=void 0;k=u?[]:we(n)&&!h?["click"]:["blur"];var S=Q()({},d),B=p?"width":"minWidth";this.dropdownWidth&&(S[B]=this.dropdownWidth+"px");var M={props:Q()({},n,{showAction:u?[]:v,hideAction:k,ref:"triggerRef",popupPlacement:"bottomLeft",builtinPlacements:Pe,prefixCls:_,popupTransitionName:this.getDropdownTransitionName(),popupAlign:c,popupVisible:a,getPopupContainer:m,popupClassName:l()(I),popupStyle:S}),on:{popupVisibleChange:C},directives:[{name:"ant-ref",value:this.saveTriggerRef}]};return b&&(M.on.mouseenter=b),w&&(M.on.mouseleave=w),t(fe.a,M,[r.default,t("template",{slot:"popup"},[E])])}},Qe={defaultActiveFirstOption:s.a.bool,multiple:s.a.bool,filterOption:s.a.any,
// children: PropTypes.any,
showSearch:s.a.bool,disabled:s.a.bool,allowClear:s.a.bool,showArrow:s.a.bool,tags:s.a.bool,prefixCls:s.a.string,
// className: PropTypes.string,
transitionName:s.a.string,optionLabelProp:s.a.string,optionFilterProp:s.a.string,animation:s.a.string,choiceTransitionName:s.a.string,open:s.a.bool,defaultOpen:s.a.bool,
// onChange: PropTypes.func,
// onBlur: PropTypes.func,
// onFocus: PropTypes.func,
// onSelect: PropTypes.func,
// onSearch: PropTypes.func,
// onPopupScroll: PropTypes.func,
// onMouseEnter: PropTypes.func,
// onMouseLeave: PropTypes.func,
// onInputKeyDown: PropTypes.func,
placeholder:s.a.any,
// onDeselect: PropTypes.func,
labelInValue:s.a.bool,loading:s.a.bool,value:s.a.any,defaultValue:s.a.any,dropdownStyle:s.a.object,dropdownClassName:s.a.string,maxTagTextLength:s.a.number,maxTagCount:s.a.number,maxTagPlaceholder:s.a.any,tokenSeparators:s.a.arrayOf(s.a.string),getInputElement:s.a.func,showAction:s.a.arrayOf(s.a.string),autoFocus:s.a.bool,getPopupContainer:s.a.func,clearIcon:s.a.any,inputIcon:s.a.any,removeIcon:s.a.any,menuItemSelectedIcon:s.a.any,dropdownRender:s.a.func,mode:s.a.oneOf(["multiple","tags"]),backfill:s.a.bool,dropdownAlign:s.a.any,dropdownMatchSelectWidth:s.a.bool,dropdownMenuStyle:s.a.object,notFoundContent:s.a.oneOfType([String,Number]),tabIndex:s.a.oneOfType([String,Number])},Re=n("6bb4"),je="undefined"!=typeof window,Ne="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform&&WXEnvironment.platform.toLowerCase(),Fe=je&&window.navigator.userAgent.toLowerCase(),ze=Fe&&/msie|trident/.test(Fe),He=(Fe&&Fe.indexOf("msie 9.0"),Fe&&Fe.indexOf("edge/")>0);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-select/SelectTrigger.js
Fe&&Fe.indexOf("android"),Fe&&/iphone|ipad|ipod|ios/.test(Fe),Fe&&/chrome\/\d+/.test(Fe),Fe&&/phantomjs/.test(Fe),Fe&&Fe.match(/firefox\/(\d+)/);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-select/Select.js
oe.default.use(he.a,{name:"ant-ref"});var Ue=function(){return null};function Ge(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
// eslint-disable-line
// eslint-disable-line
for(var i=0;i<t.length;i++)t[i]&&"function"==typeof t[i]&&t[i].apply(Ge,n)}}var Ve={inheritAttrs:!1,Option:K,OptGroup:$,name:"Select",mixins:[d.a],props:Q()({},Qe,{prefixCls:Qe.prefixCls.def("rc-select"),defaultOpen:s.a.bool.def(!1),labelInValue:Qe.labelInValue.def(!1),defaultActiveFirstOption:Qe.defaultActiveFirstOption.def(!0),showSearch:Qe.showSearch.def(!0),allowClear:Qe.allowClear.def(!1),placeholder:Qe.placeholder.def(""),
// showArrow: SelectPropTypes.showArrow.def(true),
dropdownMatchSelectWidth:s.a.bool.def(!0),dropdownStyle:Qe.dropdownStyle.def((function(){return{}})),dropdownMenuStyle:s.a.object.def((function(){return{}})),optionFilterProp:Qe.optionFilterProp.def("value"),optionLabelProp:Qe.optionLabelProp.def("value"),notFoundContent:s.a.any.def("Not Found"),backfill:s.a.bool.def(!1),showAction:Qe.showAction.def(["click"]),combobox:s.a.bool.def(!1),tokenSeparators:s.a.arrayOf(s.a.string).def([]),autoClearSearchValue:s.a.bool.def(!0),tabIndex:s.a.any.def(0),dropdownRender:s.a.func.def((function(e){return e}))}),model:{prop:"value",event:"change"},created:function(){this.saveInputRef=Oe(this,"inputRef"),this.saveInputMirrorRef=Oe(this,"inputMirrorRef"),this.saveTopCtrlRef=Oe(this,"topCtrlRef"),this.saveSelectTriggerRef=Oe(this,"selectTriggerRef"),this.saveRootRef=Oe(this,"rootRef"),this.saveSelectionRef=Oe(this,"selectionRef"),this._focused=!1,this._mouseDown=!1,this._options=[],this._empty=!1},data:function(){var e=Object(N.l)(this),t=this.getOptionsInfoFromProps(e);if(ae()(this.__propsSymbol__,"Replace slots.default with props.children and pass props.__propsSymbol__"),e.tags&&"function"!=typeof e.filterOption){var n=Object.keys(t).some((function(e){return t[e].disabled}));ae()(!n,"Please avoid setting option to disabled in tags mode since user can always type text as tag.")}var r,i={_value:this.getValueFromProps(e,!0),// true: use default value
_inputValue:e.combobox?this.getInputValueForCombobox(e,t,!0):"",_open:e.defaultOpen,_optionsInfo:t,_backfillValue:"",
// a flag for aviod redundant getOptionsInfoFromProps call
_skipBuildOptionsInfo:!0,_ariaId:(r=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"===e?t:7&t|8).toString(16)})))};return Q()({},i,{_mirrorInputValue:i._inputValue},this.getDerivedState(e,i))},mounted:function(){var e=this;this.$nextTick((function(){
// when defaultOpen is true, we should auto focus search input
// https://github.com/ant-design/ant-design/issues/14254
(e.autoFocus||e._open)&&e.focus();
// this.setState({
//   _ariaId: generateUUID(),
// });
}))},watch:{__propsSymbol__:function(){Q()(this.$data,this.getDerivedState(Object(N.l)(this),this.$data))},"$data._inputValue":function(e){this.$data._mirrorInputValue=e}},updated:function(){var e=this;this.$nextTick((function(){if(Ae(e.$props)){var t=e.getInputDOMNode(),n=e.getInputMirrorDOMNode();t&&t.value&&n?(t.style.width="",t.style.width=n.clientWidth+10+"px"):t&&(t.style.width="")}e.forcePopupAlign()}))},beforeDestroy:function(){this.clearFocusTime(),this.clearBlurTime(),this.clearComboboxTime(),this.dropdownContainer&&(document.body.removeChild(this.dropdownContainer),this.dropdownContainer=null)},methods:{getDerivedState:function(e,t){var n=t._skipBuildOptionsInfo?t._optionsInfo:this.getOptionsInfoFromProps(e,t),r={_optionsInfo:n,_skipBuildOptionsInfo:!1};if("open"in e&&(r._open=e.open),"value"in e){var i=this.getValueFromProps(e);r._value=i,e.combobox&&(r._inputValue=this.getInputValueForCombobox(e,n))}return r},getOptionsFromChildren:function(){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){n.data&&void 0===n.data.slot&&(Object(N.o)(n).isSelectOptGroup?e.getOptionsFromChildren(n.componentOptions.children,t):t.push(n))})),t},getInputValueForCombobox:function(e,t,n){var r=[];if("value"in e&&!n&&(r=xe(e.value)),"defaultValue"in e&&n&&(r=xe(e.defaultValue)),!r.length)return"";var i=r=r[0];return e.labelInValue?i=r.label:t[Ce(r)]&&(i=t[Ce(r)].label),void 0===i&&(i=""),i},getLabelFromOption:function(e,t){return ve(t,e.optionLabelProp)},getOptionsInfoFromProps:function(e,t){var n=this,r=this.getOptionsFromChildren(this.$props.children),i={};if(r.forEach((function(t){var r=me(t);i[Ce(r)]={option:t,value:r,label:n.getLabelFromOption(e,t),title:Object(N.r)(t,"title"),disabled:Object(N.r)(t,"disabled")}})),t){
// keep option info in pre state value.
var a=t._optionsInfo,o=t._value;o&&o.forEach((function(e){var t=Ce(e);i[t]||void 0===a[t]||(i[t]=a[t])}))}return i},getValueFromProps:function(e,t){var n=[];return"value"in e&&!t&&(n=xe(e.value)),"defaultValue"in e&&t&&(n=xe(e.defaultValue)),e.labelInValue&&(n=n.map((function(e){return e.key}))),n},onInputChange:function(e){var t=e.target,n=t.value,r=t.composing,i=this.$data._inputValue,a=void 0===i?"":i;if(e.isComposing||r||a===n)this.setState({_mirrorInputValue:n});else{var o=this.$props.tokenSeparators;if(Ae(this.$props)&&o.length&&function(e,t){for(var n=0;n<t.length;++n)if(e.lastIndexOf(t[n])>0)return!0;return!1}(n,o)){var s=this.getValueByInput(n);return void 0!==s&&this.fireChange(s),this.setOpenState(!1,{needFocus:!0}),void this.setInputValue("",!1)}this.setInputValue(n),this.setState({_open:!0}),ye(this.$props)&&this.fireChange([n])}},onDropdownVisibleChange:function(e){e&&!this._focused&&(this.clearBlurTime(),this.timeoutFocus(),this._focused=!0,this.updateFocusClassName()),this.setOpenState(e)},
// combobox ignore
onKeyDown:function(e){var t=this.$data._open;if(!this.$props.disabled){var n=e.keyCode;t&&!this.getInputDOMNode()?this.onInputKeydown(e):n===Z.a.ENTER||n===Z.a.DOWN?(
// vue state是同步更新，onKeyDown在onMenuSelect后会再次调用，单选时不在调用setOpenState
// https://github.com/vueComponent/ant-design-vue/issues/1142
n!==Z.a.ENTER||Ae(this.$props)?t||this.setOpenState(!0):this.maybeFocus(!0),e.preventDefault()):n===Z.a.SPACE&&(
// Not block space if popup is shown
t||(this.setOpenState(!0),e.preventDefault()))}},onInputKeydown:function(e){var t=this,n=this.$props,r=n.disabled,i=n.combobox,a=n.defaultActiveFirstOption;if(!r){var o=this.$data,s=this.getRealOpenState(o),c=e.keyCode;if(!Ae(this.$props)||e.target.value||c!==Z.a.BACKSPACE){if(c===Z.a.DOWN){if(!o._open)return this.openIfHasChildren(),e.preventDefault(),void e.stopPropagation()}else if(c===Z.a.ENTER&&o._open)
// Aviod trigger form submit when select item
// https://github.com/ant-design/ant-design/issues/10861
// https://github.com/ant-design/ant-design/issues/14544
!s&&i||e.preventDefault(),
// Hard close popup to avoid lock of non option in combobox mode
s&&i&&!1===a&&(this.comboboxTimer=setTimeout((function(){t.setOpenState(!1)})));else if(c===Z.a.ESC)return void(o._open&&(this.setOpenState(!1),e.preventDefault(),e.stopPropagation()));if(s&&this.selectTriggerRef){var l=this.selectTriggerRef.getInnerMenu();l&&l.onKeyDown(e,this.handleBackfill)&&(e.preventDefault(),e.stopPropagation())}}else{e.preventDefault();var u=o._value;u.length&&this.removeSelected(u[u.length-1])}}},onMenuSelect:function(e){var t=e.item;if(t){var n=this.$data._value,r=this.$props,i=me(t),a=n[n.length-1],o=!1;if(Ae(r)?-1!==Ie(n,i)?o=!0:n=n.concat([i]):ye(r)||void 0===a||a!==i||i===this.$data._backfillValue?(n=[i],this.setOpenState(!1,{needFocus:!0,fireSearch:!1})):(this.setOpenState(!1,{needFocus:!0,fireSearch:!1}),o=!0),o||this.fireChange(n),!o){this.fireSelect(i);var s=ye(r)?ve(t,r.optionLabelProp):"";r.autoClearSearchValue&&this.setInputValue(s,!1)}}},onMenuDeselect:function(e){var t=e.item,n=e.domEvent;if("keydown"!==n.type||n.keyCode!==Z.a.ENTER){
// Where el is the DOM element you'd like to test for visibility
var r;"click"===n.type&&this.removeSelected(me(t)),this.autoClearSearchValue&&this.setInputValue("")}else{var i=t.$el;
// https://github.com/ant-design/ant-design/issues/20465#issuecomment-569033796
(r=i)&&null!==r.offsetParent&&this.removeSelected(me(t))}},onArrowClick:function(e){e.stopPropagation(),e.preventDefault(),this.clearBlurTime(),this.disabled||this.setOpenState(!this.$data._open,{needFocus:!this.$data._open})},onPlaceholderClick:function(){this.getInputDOMNode()&&this.getInputDOMNode()&&this.getInputDOMNode().focus()},onPopupFocus:function(){
// fix ie scrollbar, focus element again
this.maybeFocus(!0,!0)},onClearSelection:function(e){var t=this.$props,n=this.$data;if(!t.disabled){var r=n._inputValue,i=n._value;e.stopPropagation(),(r||i.length)&&(i.length&&this.fireChange([]),this.setOpenState(!1,{needFocus:!0}),r&&this.setInputValue(""))}},onChoiceAnimationLeave:function(){this.forcePopupAlign()},getOptionInfoBySingleValue:function(e,t){var n=this.$createElement,r=void 0;if((t=t||this.$data._optionsInfo)[Ce(e)]&&(r=t[Ce(e)]),r)return r;var i=e;if(this.$props.labelInValue){var a=Ee(this.$props.value,e),o=Ee(this.$props.defaultValue,e);void 0!==a?i=a:void 0!==o&&(i=o)}return{option:n(K,{attrs:{value:e},key:e},[e]),value:e,label:i}},getOptionBySingleValue:function(e){return this.getOptionInfoBySingleValue(e).option},getOptionsBySingleValue:function(e){var t=this;return e.map((function(e){return t.getOptionBySingleValue(e)}))},getValueByLabel:function(e){var t=this;if(void 0===e)return null;var n=null;return Object.keys(this.$data._optionsInfo).forEach((function(r){var i=t.$data._optionsInfo[r];if(!i.disabled){var a=xe(i.label);a&&a.join("")===e&&(n=i.value)}})),n},getVLBySingleValue:function(e){return this.$props.labelInValue?{key:e,label:this.getLabelBySingleValue(e)}:e},getVLForOnChange:function(e){var t=this,n=e;return void 0!==n?(n=this.labelInValue?n.map((function(e){return{key:e,label:t.getLabelBySingleValue(e)}})):n.map((function(e){return e})),Ae(this.$props)?n:n[0]):n},getLabelBySingleValue:function(e,t){return this.getOptionInfoBySingleValue(e,t).label},getDropdownContainer:function(){return this.dropdownContainer||(this.dropdownContainer=document.createElement("div"),document.body.appendChild(this.dropdownContainer)),this.dropdownContainer},getPlaceholderElement:function(){var e=this.$createElement,t=this.$props,n=this.$data,r=!1;n._mirrorInputValue&&(r=!0);var i=n._value;i.length&&(r=!0),!n._mirrorInputValue&&ye(t)&&1===i.length&&n._value&&!n._value[0]&&(r=!1);var a=t.placeholder;return a?e("div",{on:{mousedown:_e,click:this.onPlaceholderClick},attrs:Be,style:Q()({display:r?"none":"block"},Se),class:t.prefixCls+"-selection__placeholder"},[a]):null},inputClick:function(e){this.$data._open?(this.clearBlurTime(),e.stopPropagation()):this._focused=!1},inputBlur:function(e){var t=this,n=e.relatedTarget||document.activeElement;
// https://github.com/vueComponent/ant-design-vue/issues/999
// https://github.com/vueComponent/ant-design-vue/issues/1223
if((ze||He)&&(e.relatedTarget===this.$refs.arrow||n&&this.selectTriggerRef&&this.selectTriggerRef.getInnerMenu()&&this.selectTriggerRef.getInnerMenu().$el===n||Object(Re.a)(e.target,n)))return e.target.focus(),void e.preventDefault();this.clearBlurTime(),this.disabled?e.preventDefault():this.blurTimer=setTimeout((function(){t._focused=!1,t.updateFocusClassName();var e=t.$props,n=t.$data._value,r=t.$data._inputValue;if(we(e)&&e.showSearch&&r&&e.defaultActiveFirstOption){var i=t._options||[];if(i.length){var a=Me(i);a&&(n=[me(a)],t.fireChange(n))}}else if(Ae(e)&&r){t._mouseDown?
// need update dropmenu when not blur
t.setInputValue(""):(
// why not use setState?
t.$data._inputValue="",t.getInputDOMNode&&t.getInputDOMNode()&&(t.getInputDOMNode().value=""));var o=t.getValueByInput(r);void 0!==o&&(n=o,t.fireChange(n))}
// if click the rest space of Select in multiple mode
if(Ae(e)&&t._mouseDown)return t.maybeFocus(!0,!0),void(t._mouseDown=!1);t.setOpenState(!1),t.$emit("blur",t.getVLForOnChange(n))}),200)},inputFocus:function(e){if(this.$props.disabled)e.preventDefault();else{this.clearBlurTime();
// In IE11, onOuterFocus will be trigger twice when focus input
// First one: e.target is div
// Second one: e.target is input
// other browser only trigger second one
// https://github.com/ant-design/ant-design/issues/15942
// Here we ignore the first one when e.target is div
var t=this.getInputDOMNode();t&&e.target===this.rootRef||(be(this.$props)||e.target!==t)&&(this._focused||(this._focused=!0,this.updateFocusClassName(),
// only effect multiple or tag mode
Ae(this.$props)&&this._mouseDown||this.timeoutFocus()))}},_getInputElement:function(){var e=this.$createElement,t=this.$props,n=this.$data,r=n._inputValue,a=n._mirrorInputValue,s=e("input",{attrs:{id:Object(N.e)(this).id,autoComplete:"off"}}),c=t.getInputElement?t.getInputElement():s,u=l()(Object(N.f)(c),o()({},t.prefixCls+"-search__field",!0)),h=Object(N.i)(c);
// https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159
// Add space to the end of the inputValue as the width measurement tolerance
return c.data=c.data||{},e("div",{class:t.prefixCls+"-search__field__wrap",on:{click:this.inputClick}},[Object(ce.a)(c,{props:{disabled:t.disabled,value:r},attrs:Q()({},c.data.attrs||{},{disabled:t.disabled,value:r}),domProps:{value:r},class:u,directives:[{name:"ant-ref",value:this.saveInputRef},{name:"ant-input"}],on:{input:this.onInputChange,keydown:Ge(this.onInputKeydown,h.keydown,Object(N.k)(this).inputKeydown),focus:Ge(this.inputFocus,h.focus),blur:Ge(this.inputBlur,h.blur)}}),e("span",i()([{directives:[{name:"ant-ref",value:this.saveInputMirrorRef}]},{
// ref='inputMirrorRef'
class:t.prefixCls+"-search__field__mirror"}]),[a," "])])},getInputDOMNode:function(){return this.topCtrlRef?this.topCtrlRef.querySelector("input,textarea,div[contentEditable]"):this.inputRef},getInputMirrorDOMNode:function(){return this.inputMirrorRef},getPopupDOMNode:function(){if(this.selectTriggerRef)return this.selectTriggerRef.getPopupDOMNode()},getPopupMenuComponent:function(){if(this.selectTriggerRef)return this.selectTriggerRef.getInnerMenu()},setOpenState:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.$props,i=this.$data,a=n.needFocus,o=n.fireSearch;if(i._open!==e){this.__emit("dropdownVisibleChange",e);var s={_open:e,_backfillValue:""};
// clear search input value when open is false in singleMode.
!e&&we(r)&&r.showSearch&&this.setInputValue("",o),e||this.maybeFocus(e,!!a),this.setState(s,(function(){e&&t.maybeFocus(e,!!a)}))}else this.maybeFocus(e,!!a)},setInputValue:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==this.$data._inputValue&&(this.setState({_inputValue:e},this.forcePopupAlign),t&&this.$emit("search",e))},getValueByInput:function(e){var t=this,n=this.$props,r=n.multiple,i=n.tokenSeparators,a=this.$data._value,o=!1;return function(e,t){var n=new RegExp("["+t.join()+"]");return e.split(n).filter((function(e){return e}))}(e,i).forEach((function(e){var n=[e];if(r){var i=t.getValueByLabel(e);i&&-1===Ie(a,i)&&(a=a.concat(i),o=!0,t.fireSelect(i))}else-1===Ie(a,e)&&(a=a.concat(n),o=!0,t.fireSelect(e))})),o?a:void 0},getRealOpenState:function(e){var t=this.$props.open;if("boolean"==typeof t)return t;var n=(e||this.$data)._open,r=this._options||[];return!be(this.$props)&&this.$props.showSearch||n&&!r.length&&(n=!1),n},focus:function(){we(this.$props)&&this.selectionRef?this.selectionRef.focus():this.getInputDOMNode()&&this.getInputDOMNode().focus()},blur:function(){we(this.$props)&&this.selectionRef?this.selectionRef.blur():this.getInputDOMNode()&&this.getInputDOMNode().blur()},markMouseDown:function(){this._mouseDown=!0},markMouseLeave:function(){this._mouseDown=!1},handleBackfill:function(e){if(this.backfill&&(we(this.$props)||ye(this.$props))){var t=me(e);ye(this.$props)&&this.setInputValue(t,!1),this.setState({_value:[t],_backfillValue:t})}},_filterOption:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Te,r=this.$data,i=r._value,a=r._backfillValue,o=i[i.length-1];if(!e||o&&o===a)return!0;var s=this.$props.filterOption;return Object(N.s)(this,"filterOption")?!0===s&&(s=n.bind(this)):s=n.bind(this),!s||("function"==typeof s?s.call(this,e,t):!Object(N.r)(t,"disabled"))},timeoutFocus:function(){var e=this;this.focusTimer&&this.clearFocusTime(),this.focusTimer=window.setTimeout((function(){
// this._focused = true
// this.updateFocusClassName()
e.$emit("focus")}),10)},clearFocusTime:function(){this.focusTimer&&(clearTimeout(this.focusTimer),this.focusTimer=null)},clearBlurTime:function(){this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},clearComboboxTime:function(){this.comboboxTimer&&(clearTimeout(this.comboboxTimer),this.comboboxTimer=null)},updateFocusClassName:function(){var e=this.rootRef,t=this.prefixCls;
// avoid setState and its side effect
this._focused?te()(e).add(t+"-focused"):te()(e).remove(t+"-focused")},maybeFocus:function(e,t){if(t||e){var n=this.getInputDOMNode(),r=document.activeElement;n&&(e||be(this.$props))?r!==n&&(n.focus(),this._focused=!0):r!==this.selectionRef&&this.selectionRef&&(this.selectionRef.focus(),this._focused=!0)}},removeSelected:function(e,t){var n=this.$props;if(!n.disabled&&!this.isChildDisabled(e)){
// Do not trigger Trigger popup
t&&t.stopPropagation&&t.stopPropagation();var r=this.$data._value.filter((function(t){return t!==e}));if(Ae(n)){var i=e;n.labelInValue&&(i={key:e,label:this.getLabelBySingleValue(e)}),this.$emit("deselect",i,this.getOptionBySingleValue(e))}this.fireChange(r)}},openIfHasChildren:function(){var e=this.$props;(e.children&&e.children.length||we(e))&&this.setOpenState(!0)},fireSelect:function(e){this.$emit("select",this.getVLBySingleValue(e),this.getOptionBySingleValue(e))},fireChange:function(e){Object(N.s)(this,"value")||this.setState({_value:e},this.forcePopupAlign);var t=this.getVLForOnChange(e),n=this.getOptionsBySingleValue(e);this._valueOptions=n,this.$emit("change",t,Ae(this.$props)?n:n[0])},isChildDisabled:function(e){return(this.$props.children||[]).some((function(t){return me(t)===e&&Object(N.r)(t,"disabled")}))},forcePopupAlign:function(){this.$data._open&&this.selectTriggerRef&&this.selectTriggerRef.triggerRef&&this.selectTriggerRef.triggerRef.forcePopupAlign()},renderFilterOptions:function(){var e=this.$createElement,t=this.$data._inputValue,n=this.$props,r=n.children,a=n.tags,o=n.notFoundContent,s=[],c=[],l=!1,u=this.renderFilterOptionsFromChildren(r,c,s);if(a){
// tags value must be string
var h=this.$data._value;
// ref: https://github.com/ant-design/ant-design/issues/14090
if(
// sort by length
(h=h.filter((function(e){return-1===c.indexOf(e)&&(!t||String(e).indexOf(String(t))>-1)}))).sort((function(e,t){return e.length-t.length})),h.forEach((function(t){var n=t,r=Q()({},Be,{role:"option"}),a=e(ne.a,i()([{style:Se},{attrs:r},{attrs:{value:n},key:n}]),[n]);u.push(a),s.push(a)})),t&&s.every((function(e){return me(e)!==t}))){var f={attrs:Be,key:t,props:{value:t,role:"option"},style:Se};u.unshift(e(ne.a,f,[t]))}}if(!u.length&&o){l=!0;var d={attrs:Be,key:"NOT_FOUND",props:{value:"NOT_FOUND",disabled:!0,role:"option"},style:Se};u=[e(ne.a,d,[o])]}return{empty:l,options:u}},renderFilterOptionsFromChildren:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this,n=arguments[1],r=arguments[2],a=this.$createElement,o=[],s=this.$props,c=this.$data._inputValue,l=s.tags;return e.forEach((function(e){if(e.data&&void 0===e.data.slot)if(Object(N.o)(e).isSelectOptGroup){var s=Object(N.g)(e,"label"),u=e.key;u||"string"!=typeof s?!s&&u&&(s=u):u=s;var h=Object(N.p)(e).default;
// Match option group label
if(h="function"==typeof h?h():h,c&&t._filterOption(c,e)){var f=h.map((function(e){var t=me(e)||e.key;return a(ne.a,i()([{key:t,attrs:{value:t}},e.data]),[e.componentOptions.children])}));o.push(a(re.a,{key:u,attrs:{title:s},class:Object(N.f)(e)},[f]))}else{var d=t.renderFilterOptionsFromChildren(h,n,r);d.length&&o.push(a(re.a,i()([{key:u,attrs:{title:s}},e.data]),[d]))}}else{ae()(Object(N.o)(e).isSelectOption,"the children of `Select` should be `Select.Option` or `Select.OptGroup`, instead of `"+(Object(N.o)(e).name||Object(N.o)(e))+"`.");var p=me(e);if(function(e,t){if(!we(t)&&!function(e){return e.multiple}(t)&&"string"!=typeof e)throw new Error("Invalid `value` of type `"+(void 0===e?"undefined":Y()(e))+"` supplied to Option, expected `string` when `tags/combobox` is `true`.")}(p,t.$props),t._filterOption(c,e)){var g={attrs:Q()({},Be,Object(N.e)(e)),key:p,props:Q()({value:p},Object(N.m)(e),{role:"option"}),style:Se,on:Object(N.i)(e),class:Object(N.f)(e)},m=a(ne.a,g,[e.componentOptions.children]);o.push(m),r.push(m)}l&&n.push(p)}})),o},renderTopControlNode:function(){var e=this,t=this.$createElement,n=this.$props,r=this.$data,a=r._value,o=r._inputValue,s=r._open,c=n.choiceTransitionName,l=n.prefixCls,u=n.maxTagTextLength,h=n.maxTagCount,f=n.maxTagPlaceholder,d=n.showSearch,p=Object(N.g)(this,"removeIcon"),g=l+"-selection__rendered",m=null;if(we(n)){var v=null;if(a.length){var y=!1,A=1;d&&s?(y=!o)&&(A=.4):y=!0;var b=a[0],w=this.getOptionInfoBySingleValue(b),x=w.label,C=w.title;v=t("div",{key:"value",class:l+"-selection-selected-value",attrs:{title:ge(C||x)},style:{display:y?"block":"none",opacity:A}},[x])}m=d?[v,t("div",{class:l+"-search "+l+"-search--inline",key:"input",style:{display:s?"block":"none"}},[this._getInputElement()])]:[v]}else{var _=[],I=a,E=void 0;if(void 0!==h&&a.length>h){I=I.slice(0,h);var k=this.getVLForOnChange(a.slice(h,a.length)),S="+ "+(a.length-h)+" ...";f&&(S="function"==typeof f?f(k):f);var B=Q()({},Be,{role:"presentation",title:ge(S)});E=t("li",i()([{style:Se},{attrs:B},{on:{mousedown:_e},class:l+"-selection__choice "+l+"-selection__choice__disabled",key:"maxTagPlaceholder"}]),[t("div",{class:l+"-selection__choice__content"},[S])])}if(Ae(n)&&(_=I.map((function(n){var r=e.getOptionInfoBySingleValue(n),a=r.label,o=r.title||a;u&&"string"==typeof a&&a.length>u&&(a=a.slice(0,u)+"...");var s=e.isChildDisabled(n),c=s?l+"-selection__choice "+l+"-selection__choice__disabled":l+"-selection__choice",h=Q()({},Be,{role:"presentation",title:ge(o)});return t("li",i()([{style:Se},{attrs:h},{on:{mousedown:_e},class:c,key:n||"RC_SELECT_EMPTY_VALUE_KEY"}]),[t("div",{class:l+"-selection__choice__content"},[a]),s?null:t("span",{on:{click:function(t){e.removeSelected(n,t)}},class:l+"-selection__choice__remove"},[p||t("i",{class:l+"-selection__choice__remove-icon"},["×"])])])}))),E&&_.push(E),_.push(t("li",{class:l+"-search "+l+"-search--inline",key:"__input"},[this._getInputElement()])),Ae(n)&&c){var M=Object(se.a)(c,{tag:"ul",afterLeave:this.onChoiceAnimationLeave});m=t("transition-group",M,[_])}else m=t("ul",[_])}return t("div",i()([{class:g},{directives:[{name:"ant-ref",value:this.saveTopCtrlRef}]},{on:{click:this.topCtrlContainerClick}}]),[this.getPlaceholderElement(),m])},renderArrow:function(e){var t=this.$createElement,n=this.$props,r=n.showArrow,a=void 0===r?!e:r,o=n.loading,s=n.prefixCls,c=Object(N.g)(this,"inputIcon");
// showArrow : Set to true if not multiple by default but keep set value.
if(!a&&!o)return null;
// if loading  have loading icon
var l=t("i",o?{class:s+"-arrow-loading"}:{class:s+"-arrow-icon"});return t("span",i()([{key:"arrow",class:s+"-arrow",style:Se},{attrs:Be},{on:{click:this.onArrowClick},ref:"arrow"}]),[c||l])},topCtrlContainerClick:function(e){this.$data._open&&!we(this.$props)&&e.stopPropagation()},renderClear:function(){var e=this.$createElement,t=this.$props,n=t.prefixCls,r=t.allowClear,a=this.$data,o=a._value,s=a._inputValue,c=Object(N.g)(this,"clearIcon"),l=e("span",i()([{key:"clear",class:n+"-selection__clear",on:{mousedown:_e},style:Se},{attrs:Be},{on:{click:this.onClearSelection}}]),[c||e("i",{class:n+"-selection__clear-icon"},["×"])]);return r?ye(this.$props)?s?l:null:s||o.length?l:null:null},selectionRefClick:function(){
//e.stopPropagation();
if(!this.disabled){var e=this.getInputDOMNode();this._focused&&this.$data._open?(
// this._focused = false;
this.setOpenState(!1,!1),e&&e.blur()):(this.clearBlurTime(),
//this._focused = true;
this.setOpenState(!0,!0),e&&e.focus())}},selectionRefFocus:function(e){this._focused||this.disabled||be(this.$props)?e.preventDefault():(this._focused=!0,this.updateFocusClassName(),this.$emit("focus"))},selectionRefBlur:function(e){be(this.$props)?e.preventDefault():this.inputBlur(e)}},render:function(){var e,t=arguments[0],n=this.$props,r=Ae(n),a=n.showArrow,s=void 0===a||a,c=this.$data,u=n.disabled,h=n.prefixCls,f=n.loading,d=this.renderTopControlNode(),p=this.$data,g=p._open,m=p._inputValue,v=p._value;if(g){var y=this.renderFilterOptions();this._empty=y.empty,this._options=y.options}var A=this.getRealOpenState(),b=this._empty,w=this._options||[],x=Object(N.k)(this),C=x.mouseenter,_=void 0===C?Ue:C,I=x.mouseleave,E=void 0===I?Ue:I,k=x.popupScroll,S=void 0===k?Ue:k,B={props:{},attrs:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":A,"aria-controls":this.$data._ariaId},on:{},class:h+"-selection "+h+"-selection--"+(r?"multiple":"single"),
// directives: [
//   {
//     name: 'ant-ref',
//     value: this.saveSelectionRef,
//   },
// ],
key:"selection"},M={attrs:{tabIndex:-1}};be(n)||(M.attrs.tabIndex=n.disabled?-1:n.tabIndex);var T=(e={},o()(e,h,!0),o()(e,h+"-open",g),o()(e,h+"-focused",g||!!this._focused),o()(e,h+"-combobox",ye(n)),o()(e,h+"-disabled",u),o()(e,h+"-enabled",!u),o()(e,h+"-allow-clear",!!n.allowClear),o()(e,h+"-no-arrow",!s),o()(e,h+"-loading",!!f),e);return t(Le,i()([{attrs:{dropdownAlign:n.dropdownAlign,dropdownClassName:n.dropdownClassName,dropdownMatchSelectWidth:n.dropdownMatchSelectWidth,defaultActiveFirstOption:n.defaultActiveFirstOption,dropdownMenuStyle:n.dropdownMenuStyle,transitionName:n.transitionName,animation:n.animation,prefixCls:n.prefixCls,dropdownStyle:n.dropdownStyle,combobox:n.combobox,showSearch:n.showSearch,options:w,empty:b,multiple:r,disabled:u,visible:A,inputValue:m,value:v,backfillValue:c._backfillValue,firstActiveValue:n.firstActiveValue,getPopupContainer:n.getPopupContainer,showAction:n.showAction,menuItemSelectedIcon:Object(N.g)(this,"menuItemSelectedIcon")},on:{dropdownVisibleChange:this.onDropdownVisibleChange,menuSelect:this.onMenuSelect,menuDeselect:this.onMenuDeselect,popupScroll:S,popupFocus:this.onPopupFocus,mouseenter:_,mouseleave:E}},{directives:[{name:"ant-ref",value:this.saveSelectTriggerRef}]},{attrs:{dropdownRender:n.dropdownRender,ariaId:this.$data._ariaId}}]),[t("div",i()([{directives:[{name:"ant-ref",value:Ge(this.saveRootRef,this.saveSelectionRef)}]},{style:Object(N.q)(this),class:l()(T),on:{mousedown:this.markMouseDown,mouseup:this.markMouseLeave,mouseout:this.markMouseLeave}},M,{on:{blur:this.selectionRefBlur,focus:this.selectionRefFocus,click:this.selectionRefClick,keydown:be(n)?Ue:this.onKeyDown}}]),[t("div",B,[d,this.renderClear(),this.renderArrow(!!r)])])])}},We=(Object(le.a)(Ve),n("0c63")),qe=function(){return{prefixCls:s.a.string,size:s.a.oneOf(["small","large","default"]),showAction:s.a.oneOfType([s.a.string,s.a.arrayOf(String)]),notFoundContent:s.a.any,transitionName:s.a.string,choiceTransitionName:s.a.string,showSearch:s.a.bool,allowClear:s.a.bool,disabled:s.a.bool,tabIndex:s.a.number,placeholder:s.a.any,defaultActiveFirstOption:s.a.bool,dropdownClassName:s.a.string,dropdownStyle:s.a.any,dropdownMenuStyle:s.a.any,dropdownMatchSelectWidth:s.a.bool,
// onSearch: (value: string) => any,
filterOption:s.a.oneOfType([s.a.bool,s.a.func]),autoFocus:s.a.bool,backfill:s.a.bool,showArrow:s.a.bool,getPopupContainer:s.a.func,open:s.a.bool,defaultOpen:s.a.bool,autoClearSearchValue:s.a.bool,dropdownRender:s.a.func,loading:s.a.bool}},Ye=s.a.shape({key:s.a.oneOfType([s.a.string,s.a.number])}).loose,Ke=s.a.oneOfType([s.a.string,s.a.number,s.a.arrayOf(s.a.oneOfType([Ye,s.a.string,s.a.number])),Ye]),$e=Q()({},qe(),{value:Ke,defaultValue:Ke,
// mode: PropTypes.oneOf(['default', 'multiple', 'tags', 'combobox']),
mode:s.a.string,optionLabelProp:s.a.string,firstActiveValue:s.a.oneOfType([String,s.a.arrayOf(String)]),maxTagCount:s.a.number,maxTagPlaceholder:s.a.any,maxTagTextLength:s.a.number,dropdownMatchSelectWidth:s.a.bool,optionFilterProp:s.a.string,labelInValue:s.a.boolean,getPopupContainer:s.a.func,tokenSeparators:s.a.arrayOf(s.a.string),getInputElement:s.a.func,options:s.a.array,suffixIcon:s.a.any,removeIcon:s.a.any,clearIcon:s.a.any,menuItemSelectedIcon:s.a.any}),Je={prefixCls:s.a.string,size:s.a.oneOf(["default","large","small"]),
// combobox: PropTypes.bool,
notFoundContent:s.a.any,showSearch:s.a.bool,optionLabelProp:s.a.string,transitionName:s.a.string,choiceTransitionName:s.a.string},Xe="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ze={SECRET_COMBOBOX_MODE_DO_NOT_USE:Xe,Option:Q()({},K,{name:"ASelectOption"}),OptGroup:Q()({},$,{name:"ASelectOptGroup"}),name:"ASelect",props:Q()({},$e,{showSearch:s.a.bool.def(!1),transitionName:s.a.string.def("slide-up"),choiceTransitionName:s.a.string.def("zoom")}),propTypes:Je,model:{prop:"value",event:"change"},provide:function(){return{savePopupRef:this.savePopupRef}},inject:{configProvider:{default:function(){return A.a}}},created:function(){Object(w.a)("combobox"!==this.$props.mode,"Select","The combobox mode of Select is deprecated,it will be removed in next major version,please use AutoComplete instead")},methods:{getNotFoundContent:function(e){var t=this.$createElement,n=Object(N.g)(this,"notFoundContent");return void 0!==n?n:this.isCombobox()?null:e(t,"Select")},savePopupRef:function(e){this.popupRef=e},focus:function(){this.$refs.vcSelect.focus()},blur:function(){this.$refs.vcSelect.blur()},isCombobox:function(){var e=this.mode;return"combobox"===e||e===Xe},renderSuffixIcon:function(e){var t=this.$createElement,n=this.$props.loading,r=Object(N.g)(this,"suffixIcon");return(r=Array.isArray(r)?r[0]:r)?Object(N.w)(r)?Object(ce.a)(r,{class:e+"-arrow-icon"}):r:t(We.a,n?{attrs:{type:"loading"}}:{attrs:{type:"down"},class:e+"-arrow-icon"})}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,a=n.size,s=n.mode,c=n.options,l=n.getPopupContainer,h=n.showArrow,f=X()(n,["prefixCls","size","mode","options","getPopupContainer","showArrow"]),d=this.configProvider.getPrefixCls,p=this.configProvider.renderEmpty,g=d("select",r),m=this.configProvider.getPopupContainer,v=Object(N.g)(this,"removeIcon");v=Array.isArray(v)?v[0]:v;var y=Object(N.g)(this,"clearIcon");y=Array.isArray(y)?y[0]:y;var A=Object(N.g)(this,"menuItemSelectedIcon");A=Array.isArray(A)?A[0]:A;var b=Object(u.a)(f,["inputIcon","removeIcon","clearIcon","suffixIcon","menuItemSelectedIcon"]),w=(e={},o()(e,g+"-lg","large"===a),o()(e,g+"-sm","small"===a),o()(e,g+"-show-arrow",h),e),x=this.$props.optionLabelProp;this.isCombobox()&&(
// children 带 dom 结构时，无法填入输入框
x=x||"value");var C={multiple:"multiple"===s,tags:"tags"===s,combobox:this.isCombobox()},_=v&&(Object(N.w)(v)?Object(ce.a)(v,{class:g+"-remove-icon"}):v)||t(We.a,{attrs:{type:"close"},class:g+"-remove-icon"}),I=y&&(Object(N.w)(y)?Object(ce.a)(y,{class:g+"-clear-icon"}):y)||t(We.a,{attrs:{type:"close-circle",theme:"filled"},class:g+"-clear-icon"}),E=A&&(Object(N.w)(A)?Object(ce.a)(A,{class:g+"-selected-icon"}):A)||t(We.a,{attrs:{type:"check"},class:g+"-selected-icon"}),k={props:Q()({inputIcon:this.renderSuffixIcon(g),removeIcon:_,clearIcon:I,menuItemSelectedIcon:E,showArrow:h},b,C,{prefixCls:g,optionLabelProp:x||"children",notFoundContent:this.getNotFoundContent(p),maxTagPlaceholder:Object(N.g)(this,"maxTagPlaceholder"),placeholder:Object(N.g)(this,"placeholder"),children:c?c.map((function(e){var n=e.key,r=e.label,a=void 0===r?e.title:r,o=e.on,s=e.class,c=e.style,l=X()(e,["key","label","on","class","style"]);return t(K,i()([{key:n},{props:l,on:o,class:s,style:c}]),[a])})):Object(N.c)(this.$slots.default),__propsSymbol__:Symbol(),dropdownRender:Object(N.g)(this,"dropdownRender",{},!1),getPopupContainer:l||m}),on:Object(N.k)(this),class:w,ref:"vcSelect"};return t(Ve,k)},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Ze.name,Ze),e.component(Ze.Option.name,Ze.Option),e.component(Ze.OptGroup.name,Ze.OptGroup)}},et=Ze;
/* harmony default export */var tt=["text","input"],nt={props:{prefixCls:s.a.string,inputType:s.a.oneOf(tt),value:s.a.any,defaultValue:s.a.any,allowClear:s.a.bool,element:s.a.any,handleReset:s.a.func,disabled:s.a.bool,size:s.a.oneOf(["small","large","default"]),suffix:s.a.any,prefix:s.a.any,addonBefore:s.a.any,addonAfter:s.a.any,className:s.a.string,readOnly:s.a.bool},methods:{renderClearIcon:function(e){var t=this.$createElement,n=this.$props,r=n.allowClear,i=n.value,a=n.disabled,o=n.readOnly,s=n.inputType,c=n.handleReset;if(!r||a||o||null==i||""===i)return null;var l=s===tt[0]?e+"-textarea-clear-icon":e+"-clear-icon";return t(We.a,{attrs:{type:"close-circle",theme:"filled",role:"button"},on:{click:c},class:l})},renderSuffix:function(e){var t=this.$createElement,n=this.$props,r=n.suffix,i=n.allowClear;return r||i?t("span",{class:e+"-suffix"},[this.renderClearIcon(e),r]):null},renderLabeledIcon:function(e,t){var n,r,i=this.$createElement,a=this.$props,s=this.renderSuffix(e);if(r=this,!(Object(N.g)(r,"prefix")||Object(N.g)(r,"suffix")||r.$props.allowClear))return Object(ce.a)(t,{props:{value:a.value}});var c=a.prefix?i("span",{class:e+"-prefix"},[a.prefix]):null;return i("span",{class:l()(a.className,e+"-affix-wrapper",(n={},o()(n,e+"-affix-wrapper-sm","small"===a.size),o()(n,e+"-affix-wrapper-lg","large"===a.size),o()(n,e+"-affix-wrapper-input-with-clear-btn",a.suffix&&a.allowClear&&this.$props.value),n)),style:a.style},[c,Object(ce.a)(t,{style:null,props:{value:a.value},class:vt(e,a.size,a.disabled)}),s])},renderInputWithLabel:function(e,t){var n,r=this.$createElement,i=this.$props,a=i.addonBefore,s=i.addonAfter,c=i.style,u=i.size,h=i.className;
// Not wrap when there is not addons
if(!a&&!s)return t;var f=e+"-group",d=f+"-addon",p=a?r("span",{class:d},[a]):null,g=s?r("span",{class:d},[s]):null,m=l()(e+"-wrapper",o()({},f,a||s));
// Need another wrapper for changing display:table to display:inline-block
// and put style prop in wrapper
return r("span",{class:l()(h,e+"-group-wrapper",(n={},o()(n,e+"-group-wrapper-sm","small"===u),o()(n,e+"-group-wrapper-lg","large"===u),n)),style:c},[r("span",{class:m},[p,Object(ce.a)(t,{style:null}),g])])},renderTextAreaWithClearIcon:function(e,t){var n=this.$createElement,r=this.$props,i=r.value,a=r.allowClear,o=r.className,s=r.style;return a?n("span",{class:l()(o,e+"-affix-wrapper",e+"-affix-wrapper-textarea-with-clear-btn"),style:s},[Object(ce.a)(t,{style:null,props:{value:i}}),this.renderClearIcon(e)]):Object(ce.a)(t,{props:{value:i}})},renderClearableLabeledInput:function(){var e=this.$props,t=e.prefixCls,n=e.inputType,r=e.element;return n===tt[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}},render:function(){return this.renderClearableLabeledInput()}},rt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],it={},at=void 0;function ot(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;at||(at=document.createElement("textarea"),document.body.appendChild(at)),
// Fix wrap="off" issue
// https://github.com/ant-design/ant-design/issues/6577
e.getAttribute("wrap")?at.setAttribute("wrap",e.getAttribute("wrap")):at.removeAttribute("wrap");
// Copy all CSS properties that have an impact on the height of the content in
// the textbox
var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&it[n])return it[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:rt.map((function(e){return e+":"+r.getPropertyValue(e)})).join(";"),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(it[n]=s),s}(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;
// Need to have the overflow attribute to hide the scrollbar otherwise
// text-lines will not calculated properly as the shadow will technically be
// narrower for content
at.setAttribute("style",c+";\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important\n"),at.value=e.value||e.placeholder||"";var l=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,h=at.scrollHeight,f=void 0;if("border-box"===s?
// border-box: add border, since height = content + padding + border
h+=o:"content-box"===s&&(
// remove padding, since height = content
h-=a),null!==n||null!==r){
// measure height of a textarea with a single row
at.value=" ";var d=at.scrollHeight-a;null!==n&&(l=d*n,"border-box"===s&&(l=l+a+o),h=Math.max(l,h)),null!==r&&(u=d*r,"border-box"===s&&(u=u+a+o),f=h>u?"":"hidden",h=Math.min(u,h))}return{height:h+"px",minHeight:l+"px",maxHeight:u+"px",overflowY:f}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/raf.js
var st=0,ct={};
// Support call raf with delay specified frame
function lt(e){var t=st++,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return ct[t]=v()((function r(){(n-=1)<=0?(e(),delete ct[t]):ct[t]=v()(r)})),t}lt.cancel=function(e){void 0!==e&&(v.a.cancel(ct[e]),delete ct[e])},lt.ids=ct;// export this for test usage
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/input/inputProps.js
/* harmony default export */var ut={prefixCls:s.a.string,inputPrefixCls:s.a.string,defaultValue:s.a.oneOfType([s.a.string,s.a.number]),value:s.a.oneOfType([s.a.string,s.a.number]),placeholder:[String,Number],type:{default:"text",type:String},name:String,size:s.a.oneOf(["small","large","default"]),disabled:s.a.bool,readOnly:s.a.bool,addonBefore:s.a.any,addonAfter:s.a.any,
// onPressEnter?: React.FormEventHandler<any>;
// onKeyDown?: React.FormEventHandler<any>;
// onChange?: React.ChangeEventHandler<HTMLInputElement>;
// onClick?: React.FormEventHandler<any>;
// onFocus?: React.FormEventHandler<any>;
// onBlur?: React.FormEventHandler<any>;
prefix:s.a.any,suffix:s.a.any,
// spellCheck: Boolean,
autoFocus:Boolean,allowClear:Boolean,lazy:{default:!0,type:Boolean},maxLength:s.a.number,loading:s.a.bool,className:s.a.string},ht={name:"ResizableTextArea",props:Q()({},ut,{autosize:s.a.oneOfType([Object,Boolean]),autoSize:s.a.oneOfType([Object,Boolean])}),data:function(){return{textareaStyles:{},resizeStatus:0}},mixins:[d.a],mounted:function(){var e=this;this.$nextTick((function(){e.resizeTextarea()}))},beforeDestroy:function(){lt.cancel(this.nextFrameActionId),lt.cancel(this.resizeFrameId)},watch:{value:function(){var e=this;this.$nextTick((function(){e.resizeTextarea()}))}},methods:{handleResize:function(e){var t=this.$data.resizeStatus,n=this.$props.autoSize;0===t&&(this.$emit("resize",e),n&&this.resizeOnNextFrame())},resizeOnNextFrame:function(){lt.cancel(this.nextFrameActionId),this.nextFrameActionId=lt(this.resizeTextarea)},resizeTextarea:function(){var e=this,t=this.$props.autoSize||this.$props.autosize;if(t&&this.$refs.textArea){var n=t.minRows,r=t.maxRows,i=ot(this.$refs.textArea,!1,n,r);this.setState({textareaStyles:i,resizeStatus:1},(function(){lt.cancel(e.resizeFrameId),e.resizeFrameId=lt((function(){e.setState({resizeStatus:2},(function(){e.resizeFrameId=lt((function(){e.setState({resizeStatus:0}),e.fixFirefoxAutoScroll()}))}))}))}))}},
// https://github.com/ant-design/ant-design/issues/21870
fixFirefoxAutoScroll:function(){try{if(document.activeElement===this.$refs.textArea){var e=this.$refs.textArea.selectionStart,t=this.$refs.textArea.selectionEnd;this.$refs.textArea.setSelectionRange(e,t)}}catch(e){
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}},renderTextArea:function(){var e=this.$createElement,t=Object(N.l)(this),n=t.prefixCls,r=t.autoSize,a=t.autosize,s=t.disabled,c=this.$data,h=c.textareaStyles,d=c.resizeStatus;Object(w.a)(void 0===a,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var p=Object(u.a)(t,["prefixCls","autoSize","autosize","defaultValue","allowClear","type","lazy","value"]),g=l()(n,o()({},n+"-disabled",s)),m={};
// Fix https://github.com/ant-design/ant-design/issues/6776
// Make sure it could be reset when using form.getFieldDecorator
"value"in t&&(m.value=t.value||"");var v={attrs:p,domProps:m,style:Q()({},h,1===d?{overflowX:"hidden",overflowY:"hidden"}:null),class:g,on:Object(u.a)(Object(N.k)(this),"pressEnter"),directives:[{name:"ant-input"}]};return e(f,{on:{resize:this.handleResize},attrs:{disabled:!(r||a)}},[e("textarea",i()([v,{ref:"textArea"}]))])}},render:function(){return this.renderTextArea()}},ft=Q()({},ut,{autosize:s.a.oneOfType([Object,Boolean]),autoSize:s.a.oneOfType([Object,Boolean])}),dt={name:"ATextarea",inheritAttrs:!1,model:{prop:"value",event:"change.value"},props:Q()({},ft),inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=void 0===this.value?this.defaultValue:this.value;return{stateValue:void 0===e?"":e}},computed:{},watch:{value:function(e){this.stateValue=e}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&e.focus()}))},methods:{setValue:function(e,t){Object(N.b)(this,"value")||(this.stateValue=e,this.$nextTick((function(){t&&t()})))},handleKeyDown:function(e){13===e.keyCode&&this.$emit("pressEnter",e),this.$emit("keydown",e)},onChange:function(e){this.$emit("change.value",e.target.value),this.$emit("change",e),this.$emit("input",e)},handleChange:function(e){var t=this,n=e.target,r=n.value,i=n.composing;(e.isComposing||i)&&this.lazy||this.stateValue===r||(this.setValue(e.target.value,(function(){t.$refs.resizableTextArea.resizeTextarea()})),mt(this.$refs.resizableTextArea.$refs.textArea,e,this.onChange))},focus:function(){this.$refs.resizableTextArea.$refs.textArea.focus()},blur:function(){this.$refs.resizableTextArea.$refs.textArea.blur()},handleReset:function(e){var t=this;this.setValue("",(function(){t.$refs.resizableTextArea.renderTextArea(),t.focus()})),mt(this.$refs.resizableTextArea.$refs.textArea,e,this.onChange)},renderTextArea:function(e){var t=this.$createElement,n=Object(N.l)(this),r={props:Q()({},n,{prefixCls:e}),on:Q()({},Object(N.k)(this),{input:this.handleChange,keydown:this.handleKeyDown}),attrs:this.$attrs};return t(ht,i()([r,{ref:"resizableTextArea"}]))}},render:function(){var e=arguments[0],t=this.stateValue,n=this.prefixCls,r=(0,this.configProvider.getPrefixCls)("input",n),i={props:Q()({},Object(N.l)(this),{prefixCls:r,inputType:"text",value:gt(t),element:this.renderTextArea(r),handleReset:this.handleReset}),on:Object(N.k)(this)};return e(nt,i)}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/input/ResizableTextArea.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/input/Input.js
function pt(){}function gt(e){return null==e?"":e}function mt(e,t,n){if(n){var r=t;if("click"===t.type){
// click clear icon
//event = Object.create(e);
Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e;var i=e.value;
// change target ref value cause e.target.value should be '' when clear input
return e.value="",n(r),void(
// reset target ref value
e.value=i)}n(r)}}function vt(e,t,n){var r;return l()(e,(r={},o()(r,e+"-sm","small"===t),o()(r,e+"-lg","large"===t),o()(r,e+"-disabled",n),r))}
/* harmony default export */var yt={name:"AInput",inheritAttrs:!1,model:{prop:"value",event:"change.value"},props:Q()({},ut),inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.$props,t=void 0===e.value?e.defaultValue:e.value;return{stateValue:void 0===t?"":t}},watch:{value:function(e){this.stateValue=e}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&e.focus(),e.clearPasswordValueAttribute()}))},beforeDestroy:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)},methods:{focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},select:function(){this.$refs.input.select()},setValue:function(e,t){this.stateValue!==e&&(Object(N.s)(this,"value")||(this.stateValue=e,this.$nextTick((function(){t&&t()}))))},onChange:function(e){this.$emit("change.value",e.target.value),this.$emit("change",e),this.$emit("input",e)},handleReset:function(e){var t=this;this.setValue("",(function(){t.focus()})),mt(this.$refs.input,e,this.onChange)},renderInput:function(e){var t=this.$createElement,n=Object(u.a)(this.$props,["prefixCls","addonBefore","addonAfter","prefix","suffix","allowClear","value","defaultValue","lazy","size","inputType","className"]),r=this.stateValue,i=this.handleKeyDown,a=this.handleChange,o=this.size,s=this.disabled;return t("input",{directives:[{name:"ant-input"}],domProps:{value:gt(r)},attrs:Q()({},n,this.$attrs),on:Q()({},Object(N.k)(this),{keydown:i,input:a,change:pt}),class:vt(e,o,s),ref:"input",key:"ant-input"})},clearPasswordValueAttribute:function(){var e=this;
// https://github.com/ant-design/ant-design/issues/20541
this.removePasswordTimeout=setTimeout((function(){e.$refs.input&&e.$refs.input.getAttribute&&"password"===e.$refs.input.getAttribute("type")&&e.$refs.input.hasAttribute("value")&&e.$refs.input.removeAttribute("value")}))},handleChange:function(e){var t=e.target,n=t.value,r=t.composing;
// https://github.com/vueComponent/ant-design-vue/issues/2203
(e.isComposing||r)&&this.lazy||this.stateValue===n||(this.setValue(n,this.clearPasswordValueAttribute),mt(this.$refs.input,e,this.onChange))},handleKeyDown:function(e){13===e.keyCode&&this.$emit("pressEnter",e),this.$emit("keydown",e)}},render:function(){var e=arguments[0];if("textarea"===this.$props.type){var t={props:this.$props,attrs:this.$attrs,on:Q()({},Object(N.k)(this),{input:this.handleChange,keydown:this.handleKeyDown,change:pt})};return e(dt,i()([t,{ref:"input"}]))}var n=this.$props.prefixCls,r=this.$data.stateValue,a=(0,this.configProvider.getPrefixCls)("input",n),o=Object(N.g)(this,"addonAfter"),s=Object(N.g)(this,"addonBefore"),c=Object(N.g)(this,"suffix"),l=Object(N.g)(this,"prefix"),u={props:Q()({},Object(N.l)(this),{prefixCls:a,inputType:"input",value:gt(r),element:this.renderInput(a),handleReset:this.handleReset,addonAfter:o,addonBefore:s,suffix:c,prefix:l}),on:Object(N.k)(this)};return e(nt,u)}},At={name:"AInputGroup",props:{prefixCls:s.a.string,size:{validator:function(e){return["small","large","default"].includes(e)}},compact:Boolean},inject:{configProvider:{default:function(){return A.a}}},computed:{classes:function(){var e,t=this.prefixCls,n=this.size,r=this.compact,i=void 0!==r&&r,a=(0,this.configProvider.getPrefixCls)("input-group",t);return e={},o()(e,""+a,!0),o()(e,a+"-lg","large"===n),o()(e,a+"-sm","small"===n),o()(e,a+"-compact",i),e}},methods:{},render:function(){return(0,arguments[0])("span",i()([{class:this.classes},{on:Object(N.k)(this)}]),[Object(N.c)(this.$slots.default)])}},bt=n("8df8"),wt=n("c544"),xt=void 0;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/input/Group.js
/* harmony default export */
// Where el is the DOM element you'd like to test for visibility
function Ct(e){return!e||null===e.offsetParent}
/* harmony default export */var _t={name:"Wave",props:["insertExtraNode"],mounted:function(){var e=this;this.$nextTick((function(){var t=e.$el;1===t.nodeType&&(e.instance=e.bindAnimationEvent(t))}))},inject:{configProvider:{default:function(){return A.a}}},beforeDestroy:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroy=!0},methods:{onClick:function(e,t){if(!(!e||Ct(e)||e.className.indexOf("-leave")>=0)){var n=this.$props.insertExtraNode;this.extraNode=document.createElement("div");var r=this.extraNode;r.className="ant-click-animating-node";var i,a=this.getAttributeName();e.removeAttribute(a),e.setAttribute(a,"true"),
// Not white or transparent or grey
xt=xt||document.createElement("style"),!t||"#ffffff"===t||"rgb(255, 255, 255)"===t||(i=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/))&&i[1]&&i[2]&&i[3]&&i[1]===i[2]&&i[2]===i[3]||/rgba\(\d*, \d*, \d*, 0\)/.test(t)||// any transparent rgba color
"transparent"===t||(
// Add nonce if CSP exist
this.csp&&this.csp.nonce&&(xt.nonce=this.csp.nonce),r.style.borderColor=t,xt.innerHTML="\n        [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n          --antd-wave-shadow-color: "+t+";\n        }",document.body.contains(xt)||document.body.appendChild(xt)),n&&e.appendChild(r),wt.a.addStartEventListener(e,this.onTransitionStart),wt.a.addEndEventListener(e,this.onTransitionEnd)}},onTransitionStart:function(e){if(!this.destroy){var t=this.$el;e&&e.target===t&&(this.animationStart||this.resetEffect(t))}},onTransitionEnd:function(e){e&&"fadeEffect"===e.animationName&&this.resetEffect(e.target)},getAttributeName:function(){return this.$props.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"},bindAnimationEvent:function(e){var t=this;if(e&&e.getAttribute&&!e.getAttribute("disabled")&&!(e.className.indexOf("disabled")>=0)){var n=function(n){
// Fix radio button click twice
if("INPUT"!==n.target.tagName&&!Ct(n.target)){t.resetEffect(e);
// Get wave color from target
var r=getComputedStyle(e).getPropertyValue("border-top-color")||// Firefox Compatible
getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");t.clickWaveTimeoutId=window.setTimeout((function(){return t.onClick(e,r)}),0),lt.cancel(t.animationStartId),t.animationStart=!0,
// Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
t.animationStartId=lt((function(){t.animationStart=!1}),10)}};return e.addEventListener("click",n,!0),{cancel:function(){e.removeEventListener("click",n,!0)}}}},resetEffect:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.$props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),// edge has bug on `removeAttribute` #14466
xt&&(xt.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),wt.a.removeStartEventListener(e,this.onTransitionStart),wt.a.removeEndEventListener(e,this.onTransitionEnd)}}},render:function(){return this.configProvider.csp&&(this.csp=this.configProvider.csp),this.$slots.default&&this.$slots.default[0]}},It=function(){return{prefixCls:s.a.string,type:s.a.string,htmlType:s.a.oneOf(["button","submit","reset"]).def("button"),icon:s.a.any,shape:s.a.oneOf(["circle","circle-outline","round"]),size:s.a.oneOf(["small","large","default"]).def("default"),loading:s.a.oneOfType([s.a.bool,s.a.object]),disabled:s.a.bool,ghost:s.a.bool,block:s.a.bool}},Et=/^[\u4e00-\u9fa5]{2}$/,kt=Et.test.bind(Et),St={name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:It(),inject:{configProvider:{default:function(){return A.a}}},data:function(){return{sizeMap:{large:"lg",small:"sm"},sLoading:!!this.loading,hasTwoCNChar:!1}},computed:{classes:function(){var e,t=this.prefixCls,n=this.type,r=this.shape,i=this.size,a=this.hasTwoCNChar,s=this.sLoading,c=this.ghost,l=this.block,u=this.icon,h=this.$slots,f=(0,this.configProvider.getPrefixCls)("btn",t),d=!1!==this.configProvider.autoInsertSpaceInButton,p="";switch(i){case"large":p="lg";break;case"small":p="sm"}var g=s?"loading":u,m=Object(N.c)(h.default);return e={},o()(e,""+f,!0),o()(e,f+"-"+n,n),o()(e,f+"-"+r,r),o()(e,f+"-"+p,p),o()(e,f+"-icon-only",0===m.length&&g),o()(e,f+"-loading",s),o()(e,f+"-background-ghost",c||"ghost"===n),o()(e,f+"-two-chinese-chars",a&&d),o()(e,f+"-block",l),e}},watch:{loading:function(e,t){var n=this;t&&"boolean"!=typeof t&&clearTimeout(this.delayTimeout),e&&"boolean"!=typeof e&&e.delay?this.delayTimeout=setTimeout((function(){n.sLoading=!!e}),e.delay):this.sLoading=!!e}},mounted:function(){this.fixTwoCNChar()},updated:function(){this.fixTwoCNChar()},beforeDestroy:function(){
// if (this.timeout) {
//   clearTimeout(this.timeout)
// }
this.delayTimeout&&clearTimeout(this.delayTimeout)},methods:{fixTwoCNChar:function(){
// Fix for HOC usage like <FormatMessage />
var e=this.$refs.buttonNode;if(e){var t=e.textContent;this.isNeedInserted()&&kt(t)?this.hasTwoCNChar||(this.hasTwoCNChar=!0):this.hasTwoCNChar&&(this.hasTwoCNChar=!1)}},handleClick:function(e){this.$data.sLoading||this.$emit("click",e)},insertSpace:function(e,t){var n=this.$createElement,r=t?" ":"";if("string"==typeof e.text){var i=e.text.trim();return kt(i)&&(i=i.split("").join(r)),n("span",[i])}return e},isNeedInserted:function(){var e=this.$slots,t=this.type,n=Object(N.g)(this,"icon");return e.default&&1===e.default.length&&!n&&"link"!==t}},render:function(){var e=this,t=arguments[0],n=this.type,r=this.htmlType,a=this.classes,o=this.disabled,s=this.handleClick,c=this.sLoading,l=this.$slots,u=this.$attrs,h=Object(N.g)(this,"icon"),f={attrs:Q()({},u,{disabled:o}),class:a,on:Q()({},Object(N.k)(this),{click:s})},d=c?"loading":h,p=d?t(We.a,{attrs:{type:d}}):null,g=Object(N.c)(l.default),m=!1!==this.configProvider.autoInsertSpaceInButton,v=g.map((function(t){return e.insertSpace(t,e.isNeedInserted()&&m)}));if(void 0!==u.href)return t("a",i()([f,{ref:"buttonNode"}]),[p,v]);var y=t("button",i()([f,{ref:"buttonNode",attrs:{type:r||"button"}}]),[p,v]);return"link"===n?y:t(_t,[y])}},Bt={prefixCls:s.a.string,size:{validator:function(e){return["small","large","default"].includes(e)}}},Mt={name:"AButtonGroup",props:Bt,inject:{configProvider:{default:function(){return A.a}}},data:function(){return{sizeMap:{large:"lg",small:"sm"}}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.size,i=this.$slots,a=(0,this.configProvider.getPrefixCls)("btn-group",n),s="";switch(r){case"large":s="lg";break;case"small":s="sm"}return t("div",{class:(e={},o()(e,""+a,!0),o()(e,a+"-"+s,s),e)},[Object(N.c)(i.default)])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/button/buttonTypes.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/button/index.js
St.Group=Mt,
/* istanbul ignore next */
St.install=function(e){e.use(b.a),e.component(St.name,St),e.component(Mt.name,Mt)};
/* harmony default export */var Tt=St,Ot={name:"AInputSearch",inheritAttrs:!1,model:{prop:"value",event:"change.value"},props:Q()({},ut,{
// 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
enterButton:s.a.any}),inject:{configProvider:{default:function(){return A.a}}},methods:{onChange:function(e){e&&e.target&&"click"===e.type&&this.$emit("search",e.target.value,e),this.$emit("change",e)},onSearch:function(e){this.loading||this.disabled||(this.$emit("search",this.$refs.input.stateValue,e),Object(bt.isMobile)({tablet:!0})||this.$refs.input.focus())},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},renderLoading:function(e){var t=this.$createElement,n=this.$props.size,r=Object(N.g)(this,"enterButton");
// 兼容 <a-input-search enterButton />， 因enterButton类型为 any，此类写法 enterButton 为空字符串
return(r=r||""===r)?t(Tt,{class:e+"-button",attrs:{type:"primary",size:n},key:"enterButton"},[t(We.a,{attrs:{type:"loading"}})]):t(We.a,{class:e+"-icon",attrs:{type:"loading"},key:"loadingIcon"})},renderSuffix:function(e){var t=this.$createElement,n=this.loading,r=Object(N.g)(this,"suffix"),i=Object(N.g)(this,"enterButton");if(
// 兼容 <a-input-search enterButton />， 因enterButton类型为 any，此类写法 enterButton 为空字符串
i=i||""===i,n&&!i)return[r,this.renderLoading(e)];if(i)return r;var a=t(We.a,{class:e+"-icon",attrs:{type:"search"},key:"searchIcon",on:{click:this.onSearch}});return r?[r,a]:a},renderAddonAfter:function(e){var t=this.$createElement,n=this.size,r=this.disabled,i=this.loading,a=e+"-button",o=Object(N.g)(this,"enterButton");o=o||""===o;var s=Object(N.g)(this,"addonAfter");if(i&&o)return[this.renderLoading(e),s];if(!o)return s;var c=Array.isArray(o)?o[0]:o,l=void 0,u=c.componentOptions&&c.componentOptions.Ctor.extendOptions.__ANT_BUTTON;return l="button"===c.tag||u?Object(ce.a)(c,{key:"enterButton",class:u?a:"",props:u?{size:n}:{},on:{click:this.onSearch}}):t(Tt,{class:a,attrs:{type:"primary",size:n,disabled:r},key:"enterButton",on:{click:this.onSearch}},[!0===o||""===o?t(We.a,{attrs:{type:"search"}}):o]),s?[l,s]:l}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.inputPrefixCls,a=n.size,s=(n.loading,X()(n,["prefixCls","inputPrefixCls","size","loading"])),c=this.configProvider.getPrefixCls,u=c("input-search",r),h=c("input",i),f=Object(N.g)(this,"enterButton"),d=Object(N.g)(this,"addonBefore"),p=void 0;(f=f||""===f)?p=l()(u,(e={},o()(e,u+"-enter-button",!!f),o()(e,u+"-"+a,!!a),e)):p=u;var g=Q()({},Object(N.k)(this));delete g.search;var m={props:Q()({},s,{prefixCls:h,size:a,suffix:this.renderSuffix(u),prefix:Object(N.g)(this,"prefix"),addonAfter:this.renderAddonAfter(u),addonBefore:d,className:p}),attrs:this.$attrs,ref:"input",on:Q()({pressEnter:this.onSearch},g,{change:this.onChange})};return t(yt,m)}},Dt={click:"click",hover:"mouseover"},Pt={name:"AInputPassword",mixins:[d.a],inheritAttrs:!1,model:{prop:"value",event:"change.value"},props:Q()({},ut,{prefixCls:s.a.string.def("ant-input-password"),inputPrefixCls:s.a.string.def("ant-input"),action:s.a.string.def("click"),visibilityToggle:s.a.bool.def(!0)}),data:function(){return{visible:!1}},methods:{focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},onVisibleChange:function(){this.disabled||this.setState({visible:!this.visible})},getIcon:function(){var e,t=this.$createElement,n=this.$props,r=n.prefixCls,i=n.action,a=Dt[i]||"",s={props:{type:this.visible?"eye":"eye-invisible"},on:(e={},o()(e,a,this.onVisibleChange),o()(e,"mousedown",(function(e){
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault()})),o()(e,"mouseup",(function(e){
// Prevent focused state lost
// https://github.com/ant-design/ant-design/pull/23633/files
e.preventDefault()})),e),class:r+"-icon",key:"passwordIcon"};return t(We.a,s)}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.prefixCls,r=t.inputPrefixCls,i=t.size,a=(t.suffix,t.visibilityToggle),s=X()(t,["prefixCls","inputPrefixCls","size","suffix","visibilityToggle"]),c=a&&this.getIcon(),u=l()(n,o()({},n+"-"+i,!!i)),h={props:Q()({},s,{prefixCls:r,size:i,suffix:c,prefix:Object(N.g)(this,"prefix"),addonAfter:Object(N.g)(this,"addonAfter"),addonBefore:Object(N.g)(this,"addonBefore")}),attrs:Q()({},this.$attrs,{type:this.visible?"text":"password"}),class:u,ref:"input",on:Object(N.k)(this)};return e(yt,h)}},Lt=n("129d");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/input/Search.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/input/index.js
oe.default.use(Lt.b),yt.Group=At,yt.Search=Ot,yt.TextArea=dt,yt.Password=Pt,
/* istanbul ignore next */
yt.install=function(e){e.use(b.a),e.component(yt.name,yt),e.component(yt.Group.name,yt.Group),e.component(yt.Search.name,yt.Search),e.component(yt.TextArea.name,yt.TextArea),e.component(yt.Password.name,yt.Password)};
/* harmony default export */var Qt=yt,Rt=n("b24f"),jt=n.n(Rt);
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/slicedToArray.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/auto-complete/InputElement.js
function Nt(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
// eslint-disable-line
// eslint-disable-line
for(var i=0;i<t.length;i++)t[i]&&"function"==typeof t[i]&&t[i].apply(this,n)}}
/* harmony default export */var Ft={name:"InputElement",inheritAttrs:!1,props:{value:s.a.any,disabled:s.a.bool,placeholder:s.a.string},render:function(){var e=this.$slots,t=void 0===e?{}:e,n=this.$attrs,r=void 0===n?{}:n,i=this.placeholder,a=Object(N.k)(this),o=Object(N.l)(this),s=void 0===o.value?"":o.value,c=t.default[0],l=t.default[0].componentOptions,u=(void 0===l?{}:l).listeners,h=void 0===u?{}:u,f=Q()({},h),d=!0,p=!1,g=void 0;try{for(var m,v=Object.entries(a)[Symbol.iterator]();!(d=(m=v.next()).done);d=!0){var y=m.value,A=jt()(y,2),b=A[0],w=A[1];f[b]=Nt(w,h[b])}}catch(e){p=!0,g=e}finally{try{!d&&v.return&&v.return()}finally{if(p)throw g}}var x=Q()({},r,{value:s});
// https://github.com/vueComponent/ant-design-vue/issues/1761
return delete o.placeholder,i&&(o.placeholder=i,x.placeholder=i),Object(ce.a)(c,{domProps:{value:s},props:o,on:f,attrs:x,ref:"ele"})}},zt=Q()({},qe(),{value:Ke,defaultValue:Ke,dataSource:s.a.array,dropdownMenuStyle:s.a.object,optionLabelProp:String,dropdownMatchSelectWidth:s.a.bool}),Ht={name:"AAutoComplete",props:Q()({},zt,{prefixCls:s.a.string.def("ant-select"),showSearch:s.a.bool.def(!1),transitionName:s.a.string.def("slide-up"),choiceTransitionName:s.a.string.def("zoom"),autoFocus:s.a.bool,backfill:s.a.bool,optionLabelProp:s.a.string.def("children"),filterOption:s.a.oneOfType([s.a.bool,s.a.func]).def(!1),defaultActiveFirstOption:s.a.bool.def(!0)}),Option:Q()({},K,{name:"AAutoCompleteOption"}),OptGroup:Q()({},$,{name:"AAutoCompleteOptGroup"}),model:{prop:"value",event:"change"},inject:{configProvider:{default:function(){return A.a}}},provide:function(){return{savePopupRef:this.savePopupRef}},methods:{savePopupRef:function(e){this.popupRef=e},getInputElement:function(){var e=this.$createElement,t=this.$slots,n=this.placeholder,r=Object(N.c)(t.default),i=r.length?r[0]:e(Qt,{attrs:{lazy:!1}});return e(Ft,{attrs:{placeholder:n}},[i])},focus:function(){this.$refs.select&&this.$refs.select.focus()},blur:function(){this.$refs.select&&this.$refs.select.blur()}},render:function(){var e,t=arguments[0],n=this.size,r=this.prefixCls,i=this.optionLabelProp,a=this.dataSource,s=this.$slots,c=(0,this.configProvider.getPrefixCls)("select",r),l=(e={},o()(e,c+"-lg","large"===n),o()(e,c+"-sm","small"===n),o()(e,c+"-show-search",!0),o()(e,c+"-auto-complete",!0),e),u=void 0,h=Object(N.c)(s.dataSource);u=h.length?h:a?a.map((function(e){if(Object(N.w)(e))return e;switch(void 0===e?"undefined":Y()(e)){case"string":return t(K,{key:e},[e]);case"object":return t(K,{key:e.value},[e.text]);default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[];var f={props:Q()({},Object(N.l)(this),{mode:et.SECRET_COMBOBOX_MODE_DO_NOT_USE,optionLabelProp:i,getInputElement:this.getInputElement,notFoundContent:Object(N.g)(this,"notFoundContent"),placeholder:""}),class:l,ref:"select",on:Object(N.k)(this)};return t(et,f,[u])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Ht.name,Ht),e.component(Ht.Option.name,Ht.Option),e.component(Ht.OptGroup.name,Ht.OptGroup)}},Ut=Ht;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/auto-complete/index.js
// const DataSourceItemObject = PropTypes.shape({
//   value: String,
//   text: String,
// }).loose
// const DataSourceItemType = PropTypes.oneOfType([
//   PropTypes.string,
//   DataSourceItemObject,
// ]).isRequired
// export interface AutoCompleteInputProps {
//   onChange?: React.FormEventHandler<any>;
//   value: any;
// }
var Gt={name:"AAlert",props:{
/**
   * Type of Alert styles, options:`success`, `info`, `warning`, `error`
   */
type:s.a.oneOf(["success","info","warning","error"]),
/** Whether Alert can be closed */
closable:s.a.bool,
/** Close text to show */
closeText:s.a.any,
/** Content of Alert */
message:s.a.any,
/** Additional content of Alert */
description:s.a.any,
/** Callback when close Alert */
// onClose?: React.MouseEventHandler<HTMLAnchorElement>;
/** Trigger when animation ending of Alert */
afterClose:s.a.func.def((
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/alert/index.js
function(){})),
/** Whether to show icon */
showIcon:s.a.bool,iconType:s.a.string,prefixCls:s.a.string,banner:s.a.bool,icon:s.a.any},mixins:[d.a],inject:{configProvider:{default:function(){return A.a}}},data:function(){return{closing:!1,closed:!1}},methods:{handleClose:function(e){e.preventDefault();var t=this.$el;t.style.height=t.offsetHeight+"px",
// Magic code
// 重复一次后才能正确设置 height
t.style.height=t.offsetHeight+"px",this.setState({closing:!0}),this.$emit("close",e)},animationEnd:function(){this.setState({closing:!1,closed:!0}),this.afterClose()}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.banner,i=this.closing,a=this.closed,s=(0,this.configProvider.getPrefixCls)("alert",n),c=this.closable,u=this.type,h=this.showIcon,f=this.iconType,d=Object(N.g)(this,"closeText"),p=Object(N.g)(this,"description"),g=Object(N.g)(this,"message"),m=Object(N.g)(this,"icon");
// banner模式默认有 Icon
h=!(!r||void 0!==h)||h,
// banner模式默认为警告
u=r&&void 0===u?"warning":u||"info";var v="filled";if(!f){switch(u){case"success":f="check-circle";break;case"info":f="info-circle";break;case"error":f="close-circle";break;case"warning":f="exclamation-circle";break;default:f="default"}
// use outline icon in alert with description
p&&(v="outlined")}
// closeable when closeText is assigned
d&&(c=!0);var y=l()(s,(e={},o()(e,s+"-"+u,!0),o()(e,s+"-closing",i),o()(e,s+"-with-description",!!p),o()(e,s+"-no-icon",!h),o()(e,s+"-banner",!!r),o()(e,s+"-closable",c),e)),A=c?t("a",{attrs:{type:"button",tabIndex:0},on:{click:this.handleClose},class:s+"-close-icon"},[d?t("span",{class:s+"-close-text"},[d]):t(We.a,{attrs:{type:"close"}})]):null,b=m&&(Object(N.w)(m)?Object(ce.a)(m,{class:s+"-icon"}):t("span",{class:s+"-icon"},[m]))||t(We.a,{class:s+"-icon",attrs:{type:f,theme:v}}),w=Object(se.a)(s+"-slide-up",{appear:!1,afterLeave:this.animationEnd});return a?null:t("transition",w,[t("div",{directives:[{name:"show",value:!i}],class:y,attrs:{"data-show":!i}},[h?b:null,t("span",{class:s+"-message"},[g]),t("span",{class:s+"-description"},[p]),A])])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Gt.name,Gt)}},Vt=Gt,Wt={name:"AAvatar",props:{prefixCls:{type:String,default:void 0},shape:{validator:function(e){return["circle","square"].includes(e)},default:"circle"},size:{validator:function(e){return"number"==typeof e||["small","large","default"].includes(e)},default:"default"},src:String,
/** Srcset of image avatar */
srcSet:String,icon:s.a.any,alt:String,loadError:Function},inject:{configProvider:{default:function(){return A.a}}},data:function(){return{isImgExist:!0,isMounted:!1,scale:1}},watch:{src:function(){var e=this;this.$nextTick((function(){e.isImgExist=!0,e.scale=1,
// force uodate for position
e.$forceUpdate()}))}},mounted:function(){var e=this;this.$nextTick((function(){e.setScale(),e.isMounted=!0}))},updated:function(){var e=this;this.$nextTick((function(){e.setScale()}))},methods:{setScale:function(){if(this.$refs.avatarChildren&&this.$refs.avatarNode){var e=this.$refs.avatarChildren.offsetWidth,t=this.$refs.avatarNode.offsetWidth;// offsetWidth avoid affecting be transform scale
// denominator is 0 is no meaning
0===e||0===t||this.lastChildrenWidth===e&&this.lastNodeWidth===t||(this.lastChildrenWidth=e,this.lastNodeWidth=t,
// add 4px gap for each side to get better performance
this.scale=t-8<e?(t-8)/e:1)}},handleImgLoadError:function(){var e=this.$props.loadError;!1!==(e?e():void 0)&&(this.isImgExist=!1)}},render:function(){var e,t,n=arguments[0],r=this.$props,a=r.prefixCls,s=r.shape,c=r.size,l=r.src,u=r.alt,h=r.srcSet,f=Object(N.g)(this,"icon"),d=(0,this.configProvider.getPrefixCls)("avatar",a),p=this.$data,g=p.isImgExist,m=p.scale,v=(p.isMounted,e={},o()(e,d+"-lg","large"===c),o()(e,d+"-sm","small"===c),e),y=Q()(o()({},d,!0),v,(t={},o()(t,d+"-"+s,s),o()(t,d+"-image",l&&g),o()(t,d+"-icon",f),t)),A="number"==typeof c?{width:c+"px",height:c+"px",lineHeight:c+"px",fontSize:f?c/2+"px":"18px"}:{},b=this.$slots.default;if(l&&g)b=n("img",{attrs:{src:l,srcSet:h,alt:u},on:{error:this.handleImgLoadError}});else if(f)b="string"==typeof f?n(We.a,{attrs:{type:f}}):f;else{if(this.$refs.avatarChildren||1!==m){var w="scale("+m+") translateX(-50%)",x={msTransform:w,WebkitTransform:w,transform:w},C="number"==typeof c?{lineHeight:c+"px"}:{};b=n("span",{class:d+"-string",ref:"avatarChildren",style:Q()({},C,x)},[b])}else{b=n("span",{class:d+"-string",ref:"avatarChildren",style:{opacity:0}},[b])}}return n("span",i()([{ref:"avatarNode"},{on:Object(N.k)(this),class:y,style:A}]),[b])},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/avatar/index.js
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Wt.name,Wt)}},qt=Wt;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/back-top/index.js
function Yt(){return window}var Kt={visibilityHeight:s.a.number,
// onClick?: React.MouseEventHandler<any>;
target:s.a.func,prefixCls:s.a.string},$t={name:"ABackTop",mixins:[d.a],props:Q()({},Kt,{visibilityHeight:s.a.number.def(400)}),inject:{configProvider:{default:function(){return A.a}}},data:function(){return this.scrollEvent=null,{visible:!1}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.target||Yt;e.scrollEvent=Object(x.a)(t(),"scroll",e.handleScroll),e.handleScroll()}))},beforeDestroy:function(){this.scrollEvent&&this.scrollEvent.remove()},methods:{getCurrentScrollTop:function(){var e=(this.target||Yt)();return e===window?window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop:e.scrollTop},scrollToTop:function(e){var t=this.target;j(0,{getContainer:void 0===t?Yt:t}),this.$emit("click",e)},handleScroll:function(){var e=this.visibilityHeight,t=this.target,n=R((void 0===t?Yt:t)(),!0);this.setState({visible:n>e})}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.$slots,r=(0,this.configProvider.getPrefixCls)("back-top",t),i=e("div",{class:r+"-content"},[e("div",{class:r+"-icon"})]),a={on:Q()({},Object(N.k)(this),{click:this.scrollToTop}),class:r},o=this.visible?e("div",a,[n.default||i]):null;return e("transition",Object(se.a)("fade"),[o])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component($t.name,$t)}},Jt=$t;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/badge/ScrollNumber.js
function Xt(e){return e?e.toString().split("").reverse().map((function(e){var t=Number(e);return isNaN(t)?e:t})):[]}var Zt={prefixCls:s.a.string,count:s.a.any,component:s.a.string,title:s.a.oneOfType([s.a.number,s.a.string,null]),displayComponent:s.a.any,className:s.a.object},en={mixins:[d.a],props:Zt,inject:{configProvider:{default:function(){return A.a}}},data:function(){return{animateStarted:!0,sCount:this.count}},watch:{count:function(){this.lastCount=this.sCount,this.setState({animateStarted:!0})}},updated:function(){var e=this,t=this.animateStarted,n=this.count;t&&(this.clearTimeout(),
// Let browser has time to reset the scroller before actually
// performing the transition.
this.timeout=setTimeout((function(){e.setState({animateStarted:!1,sCount:n},e.onAnimated)})))},beforeDestroy:function(){this.clearTimeout()},methods:{clearTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)})),getPositionByNum:function(e,t){var n=this.sCount,r=Math.abs(Number(n)),i=Math.abs(Number(this.lastCount)),a=Math.abs(Xt(n)[t]),o=Math.abs(Xt(this.lastCount)[t]);return this.animateStarted?10+e:
// 同方向则在同一侧切换数字
r>i?a>=o?10+e:20+e:a<=o?10+e:e},onAnimated:function(){this.$emit("animated")},renderNumberList:function(e,t){for(var n=this.$createElement,r=[],i=0;i<30;i++)r.push(n("p",{key:i.toString(),class:l()(t,{current:e===i})},[i%10]));return r},renderCurrentNumber:function(e,t,n){var r=this.$createElement;if("number"==typeof t){var i=this.getPositionByNum(t,n);return r("span",{class:e+"-only",style:{transition:this.animateStarted||void 0===Xt(this.lastCount)[n]?"none":void 0,msTransform:"translateY("+100*-i+"%)",WebkitTransform:"translateY("+100*-i+"%)",transform:"translateY("+100*-i+"%)"},key:n},[this.renderNumberList(i,e+"-only-unit")])}return r("span",{key:"symbol",class:e+"-symbol"},[t])},renderNumberElement:function(e){var t=this,n=this.sCount;return n&&Number(n)%1==0?Xt(n).map((function(n,r){return t.renderCurrentNumber(e,n,r)})).reverse():n}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.title,r=this.component,i=void 0===r?"sup":r,a=this.displayComponent,o=this.className,s=(0,this.configProvider.getPrefixCls)("scroll-number",t);if(a)return Object(ce.a)(a,{class:s+"-custom-component"});var c=Object(N.q)(this,!0),h=Object(u.a)(this.$props,["count","component","prefixCls","displayComponent"]),f={props:Q()({},h),attrs:{title:n},style:c,class:l()(s,o)};
// fix https://fb.me/react-unknown-prop
// allow specify the border
// mock border-color by box-shadow for compatible with old usage:
// <Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />
return c&&c.borderColor&&(f.style.boxShadow="0 0 0 1px "+c.borderColor+" inset"),e(i,f,[this.renderNumberElement(s)])}},tn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),nn=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},rn={
/** Number to show in badge */
count:s.a.any,showZero:s.a.bool,
/** Max count to show */
overflowCount:s.a.number,
/** whether to show red dot without number */
dot:s.a.bool,prefixCls:s.a.string,scrollNumberPrefixCls:s.a.string,status:s.a.oneOf(["success","processing","default","error","warning"]),color:s.a.string,text:s.a.string,offset:s.a.array,numberStyle:s.a.object.def((function(){return{}})),title:s.a.string};
/* harmony default export */function an(e){return-1!==tn.indexOf(e)}
/* harmony default export */var on={name:"ABadge",props:Object(N.t)(rn,{showZero:!1,dot:!1,overflowCount:99}),inject:{configProvider:{default:function(){return A.a}}},methods:{getNumberedDispayCount:function(){var e=this.$props.overflowCount,t=this.badgeCount;return t>e?e+"+":t},getDispayCount:function(){
// dot mode don't need count
return this.isDot()?"":this.getNumberedDispayCount()},getScrollNumberTitle:function(){var e=this.$props.title,t=this.badgeCount;return e||("string"==typeof t||"number"==typeof t?t:void 0)},getStyleWithOffset:function(){var e=this.$props,t=e.offset,n=e.numberStyle;return t?Q()({right:-parseInt(t[0],10)+"px",marginTop:nn(t[1])?t[1]+"px":t[1]},n):Q()({},n)},getBadgeClassName:function(e){var t,n=Object(N.c)(this.$slots.default),r=this.hasStatus();return l()(e,(t={},o()(t,e+"-status",r),o()(t,e+"-dot-status",r&&this.dot&&!this.isZero()),o()(t,e+"-not-a-wrapper",!n.length),t))},hasStatus:function(){var e=this.$props,t=e.status,n=e.color;return!!t||!!n},isZero:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e},isDot:function(){var e=this.$props.dot,t=this.isZero();return e&&!t||this.hasStatus()},isHidden:function(){var e=this.$props.showZero,t=this.getDispayCount(),n=this.isZero(),r=this.isDot();return(null==t||""===t||n&&!e)&&!r},renderStatusText:function(e){var t=this.$createElement,n=this.$props.text;return this.isHidden()||!n?null:t("span",{class:e+"-status-text"},[n])},renderDispayComponent:function(){var e=this.badgeCount;if(e&&"object"===(void 0===e?"undefined":Y()(e)))return Object(ce.a)(e,{style:this.getStyleWithOffset()})},renderBadgeNumber:function(e,t){var n,r=this.$createElement,i=this.$props,a=i.status,s=i.color,c=this.badgeCount,l=this.getDispayCount(),u=this.isDot(),h=this.isHidden(),f=(n={},o()(n,e+"-dot",u),o()(n,e+"-count",!u),o()(n,e+"-multiple-words",!u&&c&&c.toString&&c.toString().length>1),o()(n,e+"-status-"+a,!!a),o()(n,e+"-status-"+s,an(s)),n),d=this.getStyleWithOffset();return s&&!an(s)&&((d=d||{}).background=s),h?null:r(en,{attrs:{prefixCls:t,"data-show":!h,className:f,count:l,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle()},directives:[{name:"show",value:!h}],style:d,key:"scrollNumber"})}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.scrollNumberPrefixCls,a=this.status,s=this.text,c=this.color,u=this.$slots,h=this.configProvider.getPrefixCls,f=h("badge",n),d=h("scroll-number",r),p=Object(N.c)(u.default),g=Object(N.g)(this,"count");Array.isArray(g)&&(g=g[0]),this.badgeCount=g;var m=this.renderBadgeNumber(f,d),v=this.renderStatusText(f),y=l()((e={},o()(e,f+"-status-dot",this.hasStatus()),o()(e,f+"-status-"+a,!!a),o()(e,f+"-status-"+c,an(c)),e)),A={};
// <Badge status="success" />
if(c&&!an(c)&&(A.background=c),!p.length&&this.hasStatus()){var b=this.getStyleWithOffset(),w=b&&b.color;return t("span",i()([{on:Object(N.k)(this)},{class:this.getBadgeClassName(f),style:b}]),[t("span",{class:y,style:A}),t("span",{style:{color:w},class:f+"-status-text"},[s])])}var x=Object(se.a)(p.length?f+"-zoom":"");return t("span",i()([{on:Object(N.k)(this)},{class:this.getBadgeClassName(f)}]),[p,t("transition",x,[m]),v])},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/badge/index.js
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(on.name,on)}},sn=on,cn={adjustX:1,adjustY:1},ln=[0,0],un={topLeft:{points:["bl","tl"],overflow:cn,offset:[0,-4],targetOffset:ln},topCenter:{points:["bc","tc"],overflow:cn,offset:[0,-4],targetOffset:ln},topRight:{points:["br","tr"],overflow:cn,offset:[0,-4],targetOffset:ln},bottomLeft:{points:["tl","bl"],overflow:cn,offset:[0,4],targetOffset:ln},bottomCenter:{points:["tc","bc"],overflow:cn,offset:[0,4],targetOffset:ln},bottomRight:{points:["tr","br"],overflow:cn,offset:[0,4],targetOffset:ln}},hn={mixins:[d.a],props:{minOverlayWidthMatchTrigger:s.a.bool,prefixCls:s.a.string.def("rc-dropdown"),transitionName:s.a.string,overlayClassName:s.a.string.def(""),openClassName:s.a.string,animation:s.a.any,align:s.a.object,overlayStyle:s.a.object.def((function(){return{}})),placement:s.a.string.def("bottomLeft"),overlay:s.a.any,trigger:s.a.array.def(["hover"]),alignPoint:s.a.bool,showAction:s.a.array.def([]),hideAction:s.a.array.def([]),getPopupContainer:s.a.func,visible:s.a.bool,defaultVisible:s.a.bool.def(!1),mouseEnterDelay:s.a.number.def(.15),mouseLeaveDelay:s.a.number.def(.1)},data:function(){var e=this.defaultVisible;return Object(N.s)(this,"visible")&&(e=this.visible),{sVisible:e}},watch:{visible:function(e){void 0!==e&&this.setState({sVisible:e})}},methods:{onClick:function(e){
// do no call onVisibleChange, if you need click to hide, use onClick and control visible
Object(N.s)(this,"visible")||this.setState({sVisible:!1}),this.$emit("overlayClick",e),this.childOriginEvents.click&&this.childOriginEvents.click(e)},onVisibleChange:function(e){Object(N.s)(this,"visible")||this.setState({sVisible:e}),this.__emit("visibleChange",e)},getMinOverlayWidthMatchTrigger:function(){var e=Object(N.l)(this),t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},getOverlayElement:function(){var e=this.overlay||this.$slots.overlay||this.$scopedSlots.overlay;return"function"==typeof e?e():e},getMenuElement:function(){var e=this,t=this.onClick,n=this.prefixCls,r=this.$slots;this.childOriginEvents=Object(N.i)(r.overlay[0]);var i={props:{prefixCls:n+"-menu",getPopupContainer:function(){return e.getPopupDomNode()}},on:{click:t}};return"string"==typeof this.getOverlayElement().type&&delete i.props.prefixCls,Object(ce.a)(r.overlay[0],i)},getMenuElementOrLambda:function(){return"function"==typeof(this.overlay||this.$slots.overlay||this.$scopedSlots.overlay)?this.getMenuElement:this.getMenuElement()},getPopupDomNode:function(){return this.$refs.trigger.getPopupDomNode()},getOpenClassName:function(){var e=this.$props,t=e.openClassName,n=e.prefixCls;return void 0!==t?t:n+"-open"},afterVisibleChange:function(e){if(e&&this.getMinOverlayWidthMatchTrigger()){var t=this.getPopupDomNode(),n=this.$el;n&&t&&n.offsetWidth>t.offsetWidth&&(t.style.minWidth=n.offsetWidth+"px",this.$refs.trigger&&this.$refs.trigger._component&&this.$refs.trigger._component.$refs&&this.$refs.trigger._component.$refs.alignInstance&&this.$refs.trigger._component.$refs.alignInstance.forceAlign())}},renderChildren:function(){var e=this.$slots.default&&this.$slots.default[0];return this.sVisible&&e?Object(ce.a)(e,{class:this.getOpenClassName()}):e}},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.transitionName,i=t.animation,a=t.align,o=t.placement,s=t.getPopupContainer,c=t.showAction,l=t.hideAction,u=t.overlayClassName,h=t.overlayStyle,f=t.trigger,d=X()(t,["prefixCls","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]),p=l;p||-1===f.indexOf("contextmenu")||(p=["click"]);var g={props:Q()({},d,{prefixCls:n,popupClassName:u,popupStyle:h,builtinPlacements:un,action:f,showAction:c,hideAction:p||[],popupPlacement:o,popupAlign:a,popupTransitionName:r,popupAnimation:i,popupVisible:this.sVisible,afterPopupVisibleChange:this.afterVisibleChange,getPopupContainer:s}),on:{popupVisibleChange:this.onVisibleChange},ref:"trigger"};return e(fe.a,g,[this.renderChildren(),e("template",{slot:"popup"},[this.$slots.overlay&&this.getMenuElement()])])}},fn=hn,dn=function(){return{trigger:s.a.array.def(["hover"]),overlay:s.a.any,visible:s.a.bool,disabled:s.a.bool,align:s.a.object,getPopupContainer:s.a.func,prefixCls:s.a.string,transitionName:s.a.string,placement:s.a.oneOf(["topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight"]),overlayClassName:s.a.string,overlayStyle:s.a.object,forceRender:s.a.bool,mouseEnterDelay:s.a.number,mouseLeaveDelay:s.a.number,openClassName:s.a.string,minOverlayWidthMatchTrigger:s.a.bool}},pn=It(),gn=dn(),mn=Tt.Group,vn={name:"ADropdownButton",model:{prop:"visible",event:"visibleChange"},props:Q()({},Bt,gn,{type:s.a.oneOf(["primary","ghost","dashed","danger","default"]).def("default"),size:s.a.oneOf(["small","large","default"]).def("default"),htmlType:pn.htmlType,href:s.a.string,disabled:s.a.bool,prefixCls:s.a.string,placement:gn.placement.def("bottomRight"),icon:s.a.any,title:s.a.string}),provide:function(){return{savePopupRef:this.savePopupRef}},inject:{configProvider:{default:function(){return A.a}}},methods:{savePopupRef:function(e){this.popupRef=e},onClick:function(e){this.$emit("click",e)},onVisibleChange:function(e){this.$emit("visibleChange",e)}},render:function(){var e=arguments[0],t=this.$props,n=t.type,r=t.disabled,i=t.htmlType,a=t.prefixCls,o=t.trigger,s=t.align,c=t.visible,l=t.placement,u=t.getPopupContainer,h=t.href,f=t.title,d=X()(t,["type","disabled","htmlType","prefixCls","trigger","align","visible","placement","getPopupContainer","href","title"]),p=Object(N.g)(this,"icon")||e(We.a,{attrs:{type:"ellipsis"}}),g=this.configProvider.getPopupContainer,m=(0,this.configProvider.getPrefixCls)("dropdown-button",a),v={props:{align:s,disabled:r,trigger:r?[]:o,placement:l,getPopupContainer:u||g},on:{visibleChange:this.onVisibleChange}};Object(N.s)(this,"visible")&&(v.props.visible=c);var y={props:Q()({},d),class:m};return e(mn,y,[e(Tt,{attrs:{type:n,disabled:r,htmlType:i,href:h,title:f},on:{click:this.onClick}},[this.$slots.default]),e(bn,v,[e("template",{slot:"overlay"},[Object(N.g)(this,"overlay")]),e(Tt,{attrs:{type:n}},[p])])])}},yn=dn(),An={name:"ADropdown",props:Q()({},yn,{prefixCls:s.a.string,mouseEnterDelay:s.a.number.def(.15),mouseLeaveDelay:s.a.number.def(.1),placement:yn.placement.def("bottomLeft")}),model:{prop:"visible",event:"visibleChange"},provide:function(){return{savePopupRef:this.savePopupRef}},inject:{configProvider:{default:function(){return A.a}}},methods:{savePopupRef:function(e){this.popupRef=e},getTransitionName:function(){var e=this.$props,t=e.placement,n=void 0===t?"":t,r=e.transitionName;return void 0!==r?r:n.indexOf("top")>=0?"slide-down":"slide-up"},renderOverlay:function(e){var t=this.$createElement,n=Object(N.g)(this,"overlay"),r=Array.isArray(n)?n[0]:n,i=r&&Object(N.m)(r)||{},a=i.selectable,o=void 0!==a&&a,s=i.focusable,c=void 0===s||s,l=t("span",{class:e+"-menu-submenu-arrow"},[t(We.a,{attrs:{type:"right"},class:e+"-menu-submenu-arrow-icon"})]);return r&&r.componentOptions?Object(ce.a)(r,{props:{mode:"vertical",selectable:o,focusable:c,expandIcon:l}}):n}},render:function(){var e=arguments[0],t=this.$slots,n=Object(N.l)(this),r=n.prefixCls,i=n.trigger,a=n.disabled,o=n.getPopupContainer,s=this.configProvider.getPopupContainer,c=(0,this.configProvider.getPrefixCls)("dropdown",r),l=Object(ce.a)(t.default,{class:c+"-trigger",props:{disabled:a}}),u=a?[]:i,h=void 0;u&&-1!==u.indexOf("contextmenu")&&(h=!0);var f={props:Q()({alignPoint:h},n,{prefixCls:c,getPopupContainer:o||s,transitionName:this.getTransitionName(),trigger:u}),on:Object(N.k)(this)};return e(fn,f,[l,e("template",{slot:"overlay"},[this.renderOverlay(c)])])}};An.Button=vn;
/* harmony default export */var bn=An,wn={name:"ABreadcrumbItem",__ANT_BREADCRUMB_ITEM:!0,props:{prefixCls:s.a.string,href:s.a.string,separator:s.a.any.def("/"),overlay:s.a.any},inject:{configProvider:{default:function(){return A.a}}},methods:{
/**
     * if overlay is have
     * Wrap a DropDown
     */
renderBreadcrumbNode:function(e,t){var n=this.$createElement,r=Object(N.g)(this,"overlay");return r?n(bn,{attrs:{overlay:r,placement:"bottomCenter"}},[n("span",{class:t+"-overlay-link"},[e,n(We.a,{attrs:{type:"down"}})])]):e}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.$slots,r=(0,this.configProvider.getPrefixCls)("breadcrumb",t),i=Object(N.g)(this,"separator"),a=n.default,o=void 0;return o=Object(N.s)(this,"href")?e("a",{class:r+"-link"},[a]):e("span",{class:r+"-link"},[a]),
// wrap to dropDown
o=this.renderBreadcrumbNode(o,r),a?e("span",[o,i&&""!==i&&e("span",{class:r+"-separator"},[i])]):null}},xn=n("55f1"),Cn=s.a.shape({path:s.a.string,breadcrumbName:s.a.string,children:s.a.array}).loose;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/breadcrumb/BreadcrumbItem.js
/* harmony default export */
/* harmony default export */var _n={name:"ABreadcrumb",props:{prefixCls:s.a.string,routes:s.a.arrayOf(Cn),params:s.a.any,separator:s.a.any,itemRender:s.a.func},inject:{configProvider:{default:function(){return A.a}}},methods:{defaultItemRender:function(e){var t=e.route,n=e.params,r=e.routes,i=e.paths,a=this.$createElement,o=r.indexOf(t)===r.length-1,s=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":("+n+")","g"),(function(e,n){return t[n]||e}))}(t,n);return o?a("span",[s]):a("a",{attrs:{href:"#/"+i.join("/")}},[s])},getPath:function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":"+n,t[n])})),e},addChildPath:function(e,t,n){var r=[].concat(g()(e)),i=this.getPath(t,n);return i&&r.push(i),r},genForRoutes:function(e){var t=this,n=e.routes,r=void 0===n?[]:n,i=e.params,a=void 0===i?{}:i,o=e.separator,s=e.itemRender,c=void 0===s?this.defaultItemRender:s,l=this.$createElement,u=[];return r.map((function(e){var n=t.getPath(e.path,a);n&&u.push(n);
// generated overlay by route.children
var i=null;return e.children&&e.children.length&&(i=l(xn.a,[e.children.map((function(e){return l(xn.a.Item,{key:e.path||e.breadcrumbName},[c({route:e,params:a,routes:r,paths:t.addChildPath(u,e.path,a),h:t.$createElement})])}))])),l(wn,{attrs:{overlay:i,separator:o},key:n||e.breadcrumbName},[c({route:e,params:a,routes:r,paths:u,h:t.$createElement})])}))}},render:function(){var e=arguments[0],t=void 0,n=this.prefixCls,r=this.routes,i=this.params,a=void 0===i?{}:i,o=this.$slots,s=this.$scopedSlots,c=(0,this.configProvider.getPrefixCls)("breadcrumb",n),l=Object(N.c)(o.default),u=Object(N.g)(this,"separator"),h=this.itemRender||s.itemRender||this.defaultItemRender;return r&&r.length>0?
// generated by route
t=this.genForRoutes({routes:r,params:a,separator:u,itemRender:h}):l.length&&(t=l.map((function(e,t){return Object(w.a)(Object(N.o)(e).__ANT_BREADCRUMB_ITEM||Object(N.o)(e).__ANT_BREADCRUMB_SEPARATOR,"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(ce.a)(e,{props:{separator:u},key:t})}))),e("div",{class:c},[t])}},In={name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,props:{prefixCls:s.a.string},inject:{configProvider:{default:function(){return A.a}}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.$slots;return e("span",{class:(0,this.configProvider.getPrefixCls)("breadcrumb",t)+"-separator"},[n.default||"/"])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/breadcrumb/BreadcrumbSeparator.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/breadcrumb/index.js
_n.Item=wn,_n.Separator=In,
/* istanbul ignore next */
_n.install=function(e){e.use(b.a),e.component(_n.name,_n),e.component(wn.name,wn),e.component(In.name,In)};
/* harmony default export */var En=_n,kn=n("c1df"),Sn=n.n(kn),Bn=6,Mn=7,Tn={functional:!0,render:function(e,t){for(var n=arguments[0],r=t.props,i=r.value.localeData(),a=r.prefixCls,o=[],s=[],c=i.firstDayOfWeek(),l=void 0,u=Sn()(),h=0;h<Mn;h++){var f=(c+h)%Mn;u.day(f),o[h]=i.weekdaysMin(u),s[h]=i.weekdaysShort(u)}r.showWeekNumber&&(l=n("th",{attrs:{role:"columnheader"},class:a+"-column-header "+a+"-week-number-header"},[n("span",{class:a+"-column-header-inner"},["x"])]));var d=s.map((function(e,t){return n("th",{key:t,attrs:{role:"columnheader",title:e},class:a+"-column-header"},[n("span",{class:a+"-column-header-inner"},[o[t]])])}));return n("thead",[n("tr",{attrs:{role:"row"}},[l,d])])}},On={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}};
// EXTERNAL MODULE: ./node_modules/moment/moment.js
function Dn(e){var t=Sn()();return t.locale(e.locale()).utcOffset(e.utcOffset()),t}function Pn(e){return e.format("LL")}function Ln(e){return Pn(Dn(e))}function Qn(e){var t=e.locale();return e.localeData()["zh-cn"===t?"months":"monthsShort"](e)}function Rn(e,t){Sn.a.isMoment(e)&&Sn.a.isMoment(t)&&(t.hour(e.hour()),t.minute(e.minute()),t.second(e.second()),t.millisecond(e.millisecond()))}function jn(e,t){var n=t?t(e):{};return n=Q()({},On,n)}function Nn(e,t,n){return(!t||!t(e))&&!(n&&!function(e,t){return function(e,t){var n=!1;if(e){var r=e.hour(),i=e.minute(),a=e.second();n=-1!==t.disabledHours().indexOf(r)||-1!==t.disabledMinutes(r).indexOf(i)||-1!==t.disabledSeconds(r,i).indexOf(a)}return!n}(e,jn(e,t))}(e,n))}function Fn(e,t){if(!e)return"";if(Array.isArray(t)&&(t=t[0]),"function"==typeof t){var n=t(e);if("string"==typeof n)return n;throw new Error("The function of format does not return a string")}return e.format(t)}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/date/DateTBody.js
function zn(){}function Hn(e,t){return e&&t&&e.isSame(t,"day")}function Un(e,t){return e.year()<t.year()?1:e.year()===t.year()&&e.month()<t.month()}function Gn(e,t){return e.year()>t.year()?1:e.year()===t.year()&&e.month()>t.month()}var Vn={props:{contentRender:s.a.func,dateRender:s.a.func,disabledDate:s.a.func,prefixCls:s.a.string,selectedValue:s.a.oneOfType([s.a.any,s.a.arrayOf(s.a.any)]),value:s.a.object,hoverValue:s.a.any.def([]),showWeekNumber:s.a.bool},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.contentRender,r=t.prefixCls,i=t.selectedValue,a=t.value,s=t.showWeekNumber,c=t.dateRender,u=t.disabledDate,h=t.hoverValue,f=Object(N.k)(this),d=f.select,p=void 0===d?zn:d,g=f.dayHover,m=void 0===g?zn:g,v=void 0,y=void 0,A=void 0,b=[],w=Dn(a),x=r+"-cell",C=r+"-week-number-cell",_=r+"-date",I=r+"-today",E=r+"-selected-day",k=r+"-selected-date",S=r+"-selected-start-date",B=r+"-selected-end-date",M=r+"-in-range-cell",T=r+"-last-month-cell",O=r+"-next-month-btn-day",D=r+"-disabled-cell",P=r+"-disabled-cell-first-of-row",L=r+"-disabled-cell-last-of-row",Q=r+"-last-day-of-month",R=a.clone();R.date(1);var j=(R.day()+7-a.localeData().firstDayOfWeek())%7,F=R.clone();F.add(0-j,"days");var z=0;for(v=0;v<Bn;v++)for(y=0;y<Mn;y++)A=F,z&&(A=A.clone()).add(z,"days"),b.push(A),z++;var H,U=[];for(z=0,v=0;v<Bn;v++){var G,V=void 0,W=void 0,q=!1,Y=[];for(s&&(W=e("td",{key:"week-"+b[z].week(),attrs:{role:"gridcell"},class:C},[b[z].week()])),y=0;y<Mn;y++){var K=null,$=null;A=b[z],y<Mn-1&&(K=b[z+1]),y>0&&($=b[z-1]);var J=x,X=!1,Z=!1;Hn(A,w)&&(J+=" "+I,V=!0);var ee=Un(A,a),te=Gn(A,a);if(i&&Array.isArray(i)){var ne=h.length?h:i;if(!ee&&!te){var re=ne[0],ie=ne[1];re&&Hn(A,re)&&(Z=!0,q=!0,J+=" "+S),(re||ie)&&(Hn(A,ie)?(Z=!0,q=!0,J+=" "+B):(null==re&&A.isBefore(ie,"day")||null==ie&&A.isAfter(re,"day")||A.isAfter(re,"day")&&A.isBefore(ie,"day"))&&(J+=" "+M))}}else Hn(A,a)&&(
// keyboard change value, highlight works
Z=!0,q=!0);Hn(A,i)&&(J+=" "+k),ee&&(J+=" "+T),te&&(J+=" "+O),A.clone().endOf("month").date()===A.date()&&(J+=" "+Q),u&&u(A,a)&&(X=!0,$&&u($,a)||(J+=" "+P),K&&u(K,a)||(J+=" "+L)),Z&&(J+=" "+E),X&&(J+=" "+D);var ae=void 0;if(c)ae=c(A,a);else{var oe=n?n(A,a):A.date();ae=e("div",{key:(H=A,"rc-calendar-"+H.year()+"-"+H.month()+"-"+H.date()),class:_,attrs:{"aria-selected":Z,"aria-disabled":X}},[oe])}Y.push(e("td",{key:z,on:{click:X?zn:p.bind(null,A),mouseenter:X?zn:m.bind(null,A)},attrs:{role:"gridcell",title:Pn(A)},class:J},[ae])),z++}U.push(e("tr",{key:v,attrs:{role:"row"},class:l()((G={},o()(G,r+"-current-week",V),o()(G,r+"-active-week",q),G))},[W,Y]))}return e("tbody",{class:r+"-tbody"},[U])}},Wn=Vn,qn={functional:!0,render:function(e,t){var n=arguments[0],r=t.props,i=t.listeners,a={props:r,on:void 0===i?{}:i};return n("table",{class:r.prefixCls+"-table",attrs:{cellSpacing:"0",role:"grid"}},[n(Tn,a),n(Wn,a)])}};
/* harmony default export */function Yn(){}var Kn={name:"MonthTable",mixins:[d.a],props:{cellRender:s.a.func,prefixCls:s.a.string,value:s.a.object,locale:s.a.any,contentRender:s.a.any,disabledDate:s.a.func},data:function(){return{sValue:this.value}},watch:{value:function(e){this.setState({sValue:e})}},methods:{setAndSelectValue:function(e){this.setState({sValue:e}),this.__emit("select",e)},chooseMonth:function(e){var t=this.sValue.clone();t.month(e),this.setAndSelectValue(t)},months:function(){for(var e=this.sValue.clone(),t=[],n=0,r=0;r<4;r++){t[r]=[];for(var i=0;i<3;i++){e.month(n);var a=Qn(e);t[r][i]={value:n,content:a,title:a},n++}}return t}},render:function(){var e=this,t=arguments[0],n=this.$props,r=this.sValue,i=Dn(r),a=this.months(),s=r.month(),c=n.prefixCls,l=n.locale,u=n.contentRender,h=n.cellRender,f=n.disabledDate,d=a.map((function(n,a){var d=n.map((function(n){var a,d=!1;if(f){var p=r.clone();p.month(n.value),d=f(p)}var g=(a={},o()(a,c+"-cell",1),o()(a,c+"-cell-disabled",d),o()(a,c+"-selected-cell",n.value===s),o()(a,c+"-current-cell",i.year()===r.year()&&n.value===i.month()),a),m=void 0;if(h){var v=r.clone();v.month(n.value),m=h(v,l)}else{var y=void 0;if(u){var A=r.clone();A.month(n.value),y=u(A,l)}else y=n.content;m=t("a",{class:c+"-month"},[y])}return t("td",{attrs:{role:"gridcell",title:n.title},key:n.value,on:{click:d?Yn:function(){return e.chooseMonth(n.value)}},class:g},[m])}));return t("tr",{key:a,attrs:{role:"row"}},[d])}));return t("table",{class:c+"-table",attrs:{cellSpacing:"0",role:"grid"}},[t("tbody",{class:c+"-tbody"},[d])])}},$n=Kn;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/mixin/CalendarMixin.js
function Jn(){}function Xn(e){return e?Dn(e):Sn()()}var Zn=s.a.custom((function(e){return Array.isArray(e)?0===e.length||-1!==e.findIndex((function(e){return void 0===e||Sn.a.isMoment(e)})):void 0===e||Sn.a.isMoment(e)})),er={mixins:[d.a],name:"CalendarMixinWrapper",props:{value:Zn,defaultValue:Zn},data:function(){var e=this.$props;return{sValue:e.value||e.defaultValue||Xn(),sSelectedValue:e.selectedValue||e.defaultSelectedValue}},watch:{value:function(e){var t=e||this.defaultValue||Xn(this.sValue);this.setState({sValue:t})},selectedValue:function(e){this.setState({sSelectedValue:e})}},methods:{onSelect:function(e,t){e&&this.setValue(e),this.setSelectedValue(e,t)},renderRoot:function(e){var t,n=this.$createElement,r=this.$props,i=r.prefixCls;return n("div",{ref:"rootInstance",class:(t={},o()(t,i,1),o()(t,i+"-hidden",!r.visible),o()(t,e.class,!!e.class),t),attrs:{tabIndex:"0"},on:{keydown:this.onKeyDown||Jn,blur:this.onBlur||Jn}},[e.children])},setSelectedValue:function(e,t){
// if (this.isAllowedDate(selectedValue)) {
Object(N.s)(this,"selectedValue")||this.setState({sSelectedValue:e}),this.__emit("select",e,t)},setValue:function(e){var t=this.sValue;Object(N.s)(this,"value")||this.setState({sValue:e}),(t&&e&&!t.isSame(e)||!t&&e||t&&!e)&&this.__emit("change",e)},isAllowedDate:function(e){return Nn(e,this.disabledDate,this.disabledTime)}}},tr={methods:{getFormat:function(){var e=this.format,t=this.locale,n=this.timePicker;return e||(e=n?t.dateTimeFormat:t.dateFormat),e},focus:function(){this.focusElement?this.focusElement.focus():this.$refs.rootInstance&&this.$refs.rootInstance.focus()},saveFocusElement:function(e){this.focusElement=e}}},nr={name:"CalendarHeader",mixins:[d.a],props:{value:s.a.object,locale:s.a.object,yearSelectOffset:s.a.number.def(10),yearSelectTotal:s.a.number.def(20),
// onValueChange: PropTypes.func,
// onTypeChange: PropTypes.func,
Select:s.a.object,prefixCls:s.a.string,type:s.a.string,showTypeSwitch:s.a.bool,headerComponents:s.a.array},methods:{onYearChange:function(e){var t=this.value.clone();t.year(parseInt(e,10)),this.__emit("valueChange",t)},onMonthChange:function(e){var t=this.value.clone();t.month(parseInt(e,10)),this.__emit("valueChange",t)},yearSelectElement:function(e){for(var t=this.$createElement,n=this.yearSelectOffset,r=this.yearSelectTotal,i=this.prefixCls,a=this.Select,o=e-n,s=o+r,c=[],l=o;l<s;l++)c.push(t(a.Option,{key:""+l},[l]));return t(a,{class:i+"-header-year-select",on:{change:this.onYearChange},attrs:{dropdownStyle:{zIndex:2e3},dropdownMenuStyle:{maxHeight:"250px",overflow:"auto",fontSize:"12px"},optionLabelProp:"children",value:String(e),showSearch:!1}},[c])},monthSelectElement:function(e){for(var t=this.$createElement,n=this.value,r=this.Select,i=this.prefixCls,a=n.clone(),o=[],s=0;s<12;s++)a.month(s),o.push(t(r.Option,{key:""+s},[Qn(a)]));return t(r,{class:i+"-header-month-select",attrs:{dropdownStyle:{zIndex:2e3},dropdownMenuStyle:{maxHeight:"250px",overflow:"auto",overflowX:"hidden",fontSize:"12px"},optionLabelProp:"children",value:String(e),showSearch:!1},on:{change:this.onMonthChange}},[o])},changeTypeToDate:function(){this.__emit("typeChange","date")},changeTypeToMonth:function(){this.__emit("typeChange","month")}},render:function(){var e=arguments[0],t=this.value,n=this.locale,r=this.prefixCls,i=this.type,a=this.showTypeSwitch,o=this.headerComponents,s=t.year(),c=t.month(),l=this.yearSelectElement(s),u="month"===i?null:this.monthSelectElement(c),h=r+"-header-switcher",f=a?e("span",{class:h},[e("span","date"===i?{class:h+"-focus"}:{on:{click:this.changeTypeToDate},class:h+"-normal"},[n.month]),e("span","month"===i?{class:h+"-focus"}:{on:{click:this.changeTypeToMonth},class:h+"-normal"},[n.year])]):null;return e("div",{class:r+"-header"},[f,u,l,o])}},rr=nr,ir=n("f8d5"),ar={name:"FullCalendar",props:{locale:s.a.object.def(ir.a),format:s.a.oneOfType([s.a.string,s.a.array,s.a.func]),visible:s.a.bool.def(!0),prefixCls:s.a.string.def("rc-calendar"),defaultType:s.a.string.def("date"),type:s.a.string,fullscreen:s.a.bool.def(!1),monthCellRender:s.a.func,dateCellRender:s.a.func,showTypeSwitch:s.a.bool.def(!0),Select:s.a.object.isRequired,headerComponents:s.a.array,headerComponent:s.a.object,// The whole header component
headerRender:s.a.func,showHeader:s.a.bool.def(!0),disabledDate:s.a.func,value:s.a.object,defaultValue:s.a.object,selectedValue:s.a.object,defaultSelectedValue:s.a.object,renderFooter:s.a.func.def((function(){return null})),renderSidebar:s.a.func.def((function(){return null}))},mixins:[d.a,tr,er],data:function(){var e=void 0;e=Object(N.s)(this,"type")?this.type:this.defaultType;var t=this.$props;return{sType:e,sValue:t.value||t.defaultValue||Sn()(),sSelectedValue:t.selectedValue||t.defaultSelectedValue}},watch:{type:function(e){this.setState({sType:e})},value:function(e){var t=e||this.defaultValue||Xn(this.sValue);this.setState({sValue:t})},selectedValue:function(e){this.setState({sSelectedValue:e})}},methods:{onMonthSelect:function(e){this.onSelect(e,{target:"month"})},setType:function(e){Object(N.s)(this,"type")||this.setState({sType:e}),this.__emit("typeChange",e)}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.locale,r=t.prefixCls,i=t.fullscreen,a=t.showHeader,o=t.headerComponent,s=t.headerRender,c=t.disabledDate,l=this.sValue,u=this.sType,h=null;a&&(h=s?s(l,u,n):e(o||rr,{props:Q()({},t,{prefixCls:r+"-full",type:u,value:l}),on:Q()({},Object(N.k)(this),{typeChange:this.setType,valueChange:this.setValue}),key:"calendar-header"}));var f="date"===u?e(qn,{attrs:{dateRender:t.dateCellRender,contentRender:t.dateCellContentRender,locale:n,prefixCls:r,value:l,disabledDate:c},on:{select:this.onSelect}}):e($n,{attrs:{cellRender:t.monthCellRender,contentRender:t.monthCellContentRender,locale:n,prefixCls:r+"-month-panel",value:l,disabledDate:c},on:{select:this.onMonthSelect}}),d=[h,e("div",{key:"calendar-body",class:r+"-calendar-body"},[f])],p=[r+"-full"];return i&&p.push(r+"-fullscreen"),this.renderRoot({children:d,class:p.join(" ")})}},or=ar,sr={name:"Checkbox",mixins:[d.a],inheritAttrs:!1,model:{prop:"checked",event:"change"},props:Object(N.t)({prefixCls:s.a.string,name:s.a.string,id:s.a.string,type:s.a.string,defaultChecked:s.a.oneOfType([s.a.number,s.a.bool]),checked:s.a.oneOfType([s.a.number,s.a.bool]),disabled:s.a.bool,
// onFocus: PropTypes.func,
// onBlur: PropTypes.func,
// onChange: PropTypes.func,
// onClick: PropTypes.func,
tabIndex:s.a.oneOfType([s.a.string,s.a.number]),readOnly:s.a.bool,autoFocus:s.a.bool,value:s.a.any},{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),data:function(){return{sChecked:Object(N.s)(this,"checked")?this.checked:this.defaultChecked}},watch:{checked:function(e){this.sChecked=e}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&e.$refs.input&&e.$refs.input.focus()}))},methods:{focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},handleChange:function(e){var t=Object(N.l)(this);t.disabled||("checked"in t||(this.sChecked=e.target.checked),this.$forceUpdate(),// change前，维持现有状态
e.shiftKey=this.eventShiftKey,this.__emit("change",{target:Q()({},t,{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e}),this.eventShiftKey=!1)},onClick:function(e){this.__emit("click",e),
// onChange没能获取到shiftKey，使用onClick hack
this.eventShiftKey=e.shiftKey}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,a=n.name,s=n.id,c=n.type,u=n.disabled,h=n.readOnly,f=n.tabIndex,d=n.autoFocus,p=n.value,g=X()(n,["prefixCls","name","id","type","disabled","readOnly","tabIndex","autoFocus","value"]),m=Object(N.e)(this),v=Object.keys(Q()({},g,m)).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=g[t]),e}),{}),y=this.sChecked;return t("span",{class:l()(r,(e={},o()(e,r+"-checked",y),o()(e,r+"-disabled",u),e))},[t("input",i()([{attrs:{name:a,id:s,type:c,readOnly:h,disabled:u,tabIndex:f,autoFocus:d},class:r+"-input",domProps:{checked:!!y,value:p},ref:"input"},{attrs:v,on:Q()({},Object(N.k)(this),{change:this.handleChange,click:this.onClick})}])),t("span",{class:r+"-inner"})])}},cr=sr;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/radio/Radio.js
function lr(){}
/* harmony default export */var ur={name:"ARadio",model:{prop:"checked"},props:{prefixCls:s.a.string,defaultChecked:Boolean,checked:{type:Boolean,default:void 0},disabled:Boolean,isGroup:Boolean,value:s.a.any,name:String,id:String,autoFocus:Boolean,type:s.a.string.def("radio")},inject:{radioGroupContext:{default:void 0},configProvider:{default:function(){return A.a}}},methods:{focus:function(){this.$refs.vcCheckbox.focus()},blur:function(){this.$refs.vcCheckbox.blur()},handleChange:function(e){var t=e.target.checked;this.$emit("input",t),this.$emit("change",e)},onChange:function(e){this.$emit("change",e),this.radioGroupContext&&this.radioGroupContext.onRadioChange&&this.radioGroupContext.onRadioChange(e)}},render:function(){var e,t=arguments[0],n=this.$slots,r=this.radioGroupContext,a=Object(N.l)(this),s=n.default,c=Object(N.k)(this),u=c.mouseenter,h=void 0===u?lr:u,f=c.mouseleave,d=void 0===f?lr:f,p=X()(c,["mouseenter","mouseleave"]),g=a.prefixCls,m=X()(a,["prefixCls"]),v=(0,this.configProvider.getPrefixCls)("radio",g),y={props:Q()({},m,{prefixCls:v}),on:p,attrs:Object(N.e)(this)};return r?(y.props.name=r.name,y.on.change=this.onChange,y.props.checked=a.value===r.stateValue,y.props.disabled=a.disabled||r.disabled):y.on.change=this.handleChange,t("label",{class:l()((e={},o()(e,v+"-wrapper",!0),o()(e,v+"-wrapper-checked",y.props.checked),o()(e,v+"-wrapper-disabled",y.props.disabled),e)),on:{mouseenter:h,mouseleave:d}},[t(cr,i()([y,{ref:"vcCheckbox"}])),void 0!==s?t("span",[s]):null])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/radio/Group.js
function hr(){}
/* harmony default export */var fr={name:"ARadioGroup",model:{prop:"value"},props:{prefixCls:s.a.string,defaultValue:s.a.any,value:s.a.any,size:{default:"default",validator:function(e){return["large","default","small"].includes(e)}},options:{default:function(){return[]},type:Array},disabled:Boolean,name:String,buttonStyle:s.a.string.def("outline")},data:function(){var e=this.value,t=this.defaultValue;return this.updatingValue=!1,{stateValue:void 0===e?t:e}},provide:function(){return{radioGroupContext:this}},inject:{configProvider:{default:function(){return A.a}}},computed:{radioOptions:function(){var e=this.disabled;return this.options.map((function(t){return"string"==typeof t?{label:t,value:t}:Q()({},t,{disabled:void 0===t.disabled?e:t.disabled})}))},classes:function(){var e,t=this.prefixCls,n=this.size;return e={},o()(e,""+t,!0),o()(e,t+"-"+n,n),e}},watch:{value:function(e){this.updatingValue=!1,this.stateValue=e}},methods:{onRadioChange:function(e){var t=this,n=this.stateValue,r=e.target.value;Object(N.s)(this,"value")||(this.stateValue=r),
// nextTick for https://github.com/vueComponent/ant-design-vue/issues/1280
this.updatingValue||r===n||(this.updatingValue=!0,this.$emit("input",r),this.$emit("change",e)),this.$nextTick((function(){t.updatingValue=!1}))}},render:function(){var e=this,t=arguments[0],n=Object(N.k)(this),r=n.mouseenter,i=void 0===r?hr:r,a=n.mouseleave,s=void 0===a?hr:a,c=Object(N.l)(this),u=c.prefixCls,h=c.options,f=c.buttonStyle,d=(0,this.configProvider.getPrefixCls)("radio",u),p=d+"-group",g=l()(p,p+"-"+f,o()({},p+"-"+c.size,c.size)),m=Object(N.c)(this.$slots.default);
// 如果存在 options, 优先使用
return h&&h.length>0&&(m=h.map((function(n){return"string"==typeof n?t(ur,{key:n,attrs:{prefixCls:d,disabled:c.disabled,value:n,checked:e.stateValue===n}},[n]):t(ur,{key:"radio-group-value-options-"+n.value,attrs:{prefixCls:d,disabled:n.disabled||c.disabled,value:n.value,checked:e.stateValue===n.value}},[n.label])}))),t("div",{class:g,on:{mouseenter:i,mouseleave:s}},[m])}},dr={name:"ARadioButton",props:Q()({},ur.props),inject:{radioGroupContext:{default:void 0},configProvider:{default:function(){return A.a}}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.prefixCls,r=X()(t,["prefixCls"]),i=(0,this.configProvider.getPrefixCls)("radio-button",n),a={props:Q()({},r,{prefixCls:i}),on:Object(N.k)(this)};return this.radioGroupContext&&(a.on.change=this.radioGroupContext.onRadioChange,a.props.checked=this.$props.value===this.radioGroupContext.stateValue,a.props.disabled=this.$props.disabled||this.radioGroupContext.disabled),e(ur,a,[this.$slots.default])}},pr=et.Option;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/radio/RadioButton.js
/* harmony default export */var gr={prefixCls:s.a.string,locale:s.a.any,fullscreen:s.a.boolean,yearSelectOffset:s.a.number,yearSelectTotal:s.a.number,type:s.a.string,
// onValueChange: PropTypes.(value: moment.Moment) => void,
// onTypeChange: PropTypes.(type: string) => void,
value:s.a.any,validRange:s.a.array,headerRender:s.a.func},mr={props:Object(N.t)(gr,{yearSelectOffset:10,yearSelectTotal:20}),inject:{configProvider:{default:function(){return A.a}}},
// private calenderHeaderNode: HTMLDivElement;
methods:{getYearSelectElement:function(e,t){var n=this,r=this.$createElement,i=this.yearSelectOffset,a=this.yearSelectTotal,o=this.locale,s=void 0===o?{}:o,c=this.fullscreen,l=this.validRange,u=t-i,h=u+a;l&&(u=l[0].get("year"),h=l[1].get("year")+1);for(var f="年"===s.year?"年":"",d=[],p=u;p<h;p++)d.push(r(pr,{key:""+p},[p+f]));return r(et,{attrs:{size:c?"default":"small",dropdownMatchSelectWidth:!1,value:String(t),getPopupContainer:function(){return n.getCalenderHeaderNode()}},class:e+"-year-select",on:{change:this.onYearChange}},[d])},getMonthSelectElement:function(e,t,n){var r=this,i=this.$createElement,a=this.fullscreen,o=this.validRange,s=this.value,c=[],l=0,u=12;if(o){var h=jt()(o,2),f=h[0],d=h[1],p=s.get("year");d.get("year")===p&&(u=d.get("month")+1),f.get("year")===p&&(l=f.get("month"))}for(var g=l;g<u;g++)c.push(i(pr,{key:""+g},[n[g]]));return i(et,{attrs:{size:a?"default":"small",dropdownMatchSelectWidth:!1,value:String(t),getPopupContainer:function(){return r.getCalenderHeaderNode()}},class:e+"-month-select",on:{change:this.onMonthChange}},[c])},onYearChange:function(e){var t=this.value,n=this.validRange,r=t.clone();
// switch the month so that it remains within range when year changes
if(r.year(parseInt(e,10)),n){var i=jt()(n,2),a=i[0],o=i[1],s=r.get("year"),c=r.get("month");s===o.get("year")&&c>o.get("month")&&r.month(o.get("month")),s===a.get("year")&&c<a.get("month")&&r.month(a.get("month"))}this.$emit("valueChange",r)},onMonthChange:function(e){var t=this.value.clone();t.month(parseInt(e,10)),this.$emit("valueChange",t)},onInternalTypeChange:function(e){this.onTypeChange(e.target.value)},onTypeChange:function(e){this.$emit("typeChange",e)},getCalenderHeaderNode:function(){return this.$refs.calenderHeaderNode},getMonthYearSelections:function(e){var t=this.$props,n=t.prefixCls,r=t.type,i=t.value,a=e("fullcalendar",n);return{yearReactNode:this.getYearSelectElement(a,i.year()),monthReactNode:"month"===r?this.getMonthSelectElement(a,i.month(),function(e){for(var t=e.clone(),n=e.localeData(),r=[],i=0;i<12;i++)t.month(i),r.push(n.monthsShort(t));return r}(i)):null}},getTypeSwitch:function(){var e=this.$createElement,t=this.$props,n=t.locale,r=void 0===n?{}:n,i=t.type,a=t.fullscreen?"default":"small";return e(fr,{on:{change:this.onInternalTypeChange},attrs:{value:i,size:a}},[e(dr,{attrs:{value:"month"}},[r.month]),e(dr,{attrs:{value:"year"}},[r.year])])},onValueChange:function(){this.$emit.apply(this,["valueChange"].concat(Array.prototype.slice.call(arguments)))},headerRenderCustom:function(e){var t=this.$props,n=t.type;return e({value:t.value,type:n||"month",onChange:this.onValueChange,onTypeChange:this.onTypeChange})}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.headerRender,r=this.configProvider.getPrefixCls,i=r("fullcalendar",t),a=this.getTypeSwitch(),o=this.getMonthYearSelections(r),s=o.yearReactNode,c=o.monthReactNode;return n?this.headerRenderCustom(n):e("div",{class:i+"-header",ref:"calenderHeaderNode"},[s,c,a])}},vr=n("e5cd"),yr=n("2cf8"),Ar=n("3a8b"),br=n("2768"),wr=n.n(br),xr={validator:function(e){return"string"==typeof e||wr()(e)||kn.isMoment(e)}},Cr={validator:function(e){return!!Array.isArray(e)&&(0===e.length||-1===e.findIndex((function(e){return"string"!=typeof e}))||-1===e.findIndex((function(e){return!wr()(e)&&!kn.isMoment(e)})))}},_r={validator:function(e){return Array.isArray(e)?0===e.length||-1===e.findIndex((function(e){return"string"!=typeof e}))||-1===e.findIndex((function(e){return!wr()(e)&&!kn.isMoment(e)})):"string"==typeof e||wr()(e)||kn.isMoment(e)}};
/* harmony default export */function Ir(e,t,n,r){(Array.isArray(t)?t:[t]).forEach((function(t){t&&(r&&Object(w.a)(Object(yr.a)(kn)(t,r).isValid(),e,"When set `valueFormat`, `"+n+"` should provides invalidate string time. "),!r&&Object(w.a)(Object(yr.a)(kn).isMoment(t)&&t.isValid(),e,"`"+n+"` provides invalidate moment time. If you want to set empty value, use `null` instead."))}))}var Er=function(e,t){return Array.isArray(e)?e.map((function(e){return"string"==typeof e&&e?Object(yr.a)(kn)(e,t):e||null})):"string"==typeof e&&e?Object(yr.a)(kn)(e,t):e||null},kr=function(e,t){return Array.isArray(e)?e.map((function(e){return Object(yr.a)(kn).isMoment(e)?e.format(t):e})):Object(yr.a)(kn).isMoment(e)?e.format(t):e};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/calendar/index.js
function Sr(){return null}function Br(e){return Array.isArray(e)&&!!e.find((function(e){return kn.isMoment(e)}))}var Mr=s.a.oneOf(["month","year"]),Tr={name:"ACalendar",mixins:[d.a],props:Object(N.t)({prefixCls:s.a.string,value:xr,defaultValue:xr,mode:Mr,fullscreen:s.a.bool,
// dateCellRender: PropTypes.func,
// monthCellRender: PropTypes.func,
// dateFullCellRender: PropTypes.func,
// monthFullCellRender: PropTypes.func,
locale:s.a.object,
// onPanelChange?: (date?: moment.Moment, mode?: CalendarMode) => void;
// onSelect?: (date?: moment.Moment) => void;
disabledDate:s.a.func,validRange:s.a.custom(Br),headerRender:s.a.func,valueFormat:s.a.string},{locale:{},fullscreen:!0}),model:{prop:"value",event:"change"},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.value,t=this.defaultValue,n=this.valueFormat,r=e||t||Object(yr.a)(kn)();return Ir("Calendar",t,"defaultValue",n),Ir("Calendar",e,"value",n),this._sPrefixCls=void 0,{sValue:Er(r,n),sMode:this.mode||"month"}},watch:{value:function(e){Ir("Calendar",e,"value",this.valueFormat),this.setState({sValue:Er(e,this.valueFormat)})},mode:function(e){this.setState({sMode:e})}},methods:{onHeaderValueChange:function(e){this.setValue(e,"changePanel")},onHeaderTypeChange:function(e){this.sMode=e,this.onPanelChange(this.sValue,e)},onPanelChange:function(e,t){var n=this.valueFormat?kr(e,this.valueFormat):e;this.$emit("panelChange",n,t),e!==this.sValue&&this.$emit("change",n)},onSelect:function(e){this.setValue(e,"select")},setValue:function(e,t){var n=this.value?Er(this.value,this.valueFormat):this.sValue,r=this.sMode,i=this.valueFormat;Object(N.s)(this,"value")||this.setState({sValue:e}),"select"===t?(n&&n.month()!==e.month()&&this.onPanelChange(e,r),this.$emit("select",i?kr(e,i):e)):"changePanel"===t&&this.onPanelChange(e,r)},getDateRange:function(e,t){return function(n){if(!n)return!1;var r=jt()(e,2),i=r[0],a=r[1],o=!n.isBetween(i,a,"days","[]");return t&&t(n)||o}},getDefaultLocale:function(){var e=Q()({},Ar.a,this.$props.locale);return e.lang=Q()({},e.lang,(this.$props.locale||{}).lang),e},monthCellRender2:function(e){var t=this.$createElement,n=this._sPrefixCls,r=this.$scopedSlots,i=this.monthCellRender||r.monthCellRender||Sr;return t("div",{class:n+"-month"},[t("div",{class:n+"-value"},[e.localeData().monthsShort(e)]),t("div",{class:n+"-content"},[i(e)])])},dateCellRender2:function(e){var t,n=this.$createElement,r=this._sPrefixCls,i=this.$scopedSlots,a=this.dateCellRender||i.dateCellRender||Sr;return n("div",{class:r+"-date"},[n("div",{class:r+"-value"},[(t=e.date(),t<10?"0"+t:""+t)]),n("div",{class:r+"-content"},[a(e)])])},renderCalendar:function(e,t){var n=this.$createElement,r=Object(N.l)(this),i=this.sValue,a=this.sMode,o=this.$scopedSlots;i&&t&&i.locale(t);var s=r.prefixCls,c=r.fullscreen,l=r.dateFullCellRender,u=r.monthFullCellRender,h=this.headerRender||o.headerRender,f=(0,this.configProvider.getPrefixCls)("fullcalendar",s);
// To support old version react.
// Have to add prefixCls on the instance.
// https://github.com/facebook/react/issues/12397
this._sPrefixCls=f;var d="";c&&(d+=" "+f+"-fullscreen");var p=u||o.monthFullCellRender||this.monthCellRender2,g=l||o.dateFullCellRender||this.dateCellRender2,m=r.disabledDate;r.validRange&&(m=this.getDateRange(r.validRange,m));var v={props:Q()({},r,{Select:{},locale:e.lang,type:"year"===a?"month":"date",prefixCls:f,showHeader:!1,value:i,monthCellRender:p,dateCellRender:g,disabledDate:m}),on:Q()({},Object(N.k)(this),{select:this.onSelect})};return n("div",{class:d},[n(mr,{attrs:{fullscreen:c,type:a,headerRender:h,value:i,locale:e.lang,prefixCls:f,validRange:r.validRange},on:{typeChange:this.onHeaderTypeChange,valueChange:this.onHeaderValueChange}}),n(or,v)])}},render:function(){return(0,arguments[0])(vr.a,{attrs:{componentName:"Calendar",defaultLocale:this.getDefaultLocale},scopedSlots:{default:this.renderCalendar}})},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Tr.name,Tr)}},Or=Tr,Dr={width:0,height:0,overflow:"hidden",position:"absolute"},Pr={name:"Sentinel",props:{setRef:s.a.func,prevElement:s.a.any,nextElement:s.a.any},methods:{onKeyDown:function(e){var t=e.target,n=e.which,r=e.shiftKey,i=this.$props,a=i.nextElement,o=i.prevElement;n===Z.a.TAB&&document.activeElement===t&&(
// Tab next
!r&&a&&a.focus(),
// Tab prev
r&&o&&o.focus())}},render:function(){var e=arguments[0],t=this.$props.setRef;return e("div",i()([{attrs:{tabIndex:0}},{directives:[{name:"ant-ref",value:t}]},{style:Dr,on:{keydown:this.onKeyDown},attrs:{role:"presentation"}}]),[this.$slots.default])}},Lr={name:"TabPane",props:{active:s.a.bool,destroyInactiveTabPane:s.a.bool,forceRender:s.a.bool,placeholder:s.a.any,rootPrefixCls:s.a.string,tab:s.a.any,closable:s.a.bool,disabled:s.a.bool},inject:{sentinelContext:{default:function(){return{}}}},render:function(){var e,t=arguments[0],n=this.$props,r=n.destroyInactiveTabPane,i=n.active,a=n.forceRender,s=n.rootPrefixCls,c=this.$slots.default,l=Object(N.g)(this,"placeholder");this._isActived=this._isActived||i;var u=s+"-tabpane",h=(e={},o()(e,u,1),o()(e,u+"-inactive",!i),o()(e,u+"-active",i),e),f=(r?i:this._isActived)||a,d=this.sentinelContext,p=d.sentinelStart,g=d.sentinelEnd,m=d.setPanelSentinelStart,v=d.setPanelSentinelEnd,y=void 0,A=void 0;return i&&f&&(y=t(Pr,{attrs:{setRef:m,prevElement:p}}),A=t(Pr,{attrs:{setRef:v,nextElement:g}})),t("div",{class:h,attrs:{role:"tabpanel","aria-hidden":i?"false":"true"}},[y,f?c:l,A])}},Qr=37,Rr=38,jr=39,Nr=40,Fr=function(e){return null!=e&&""!==e};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/Tabs.js
function zr(e){var t=void 0;return e.children.forEach((function(e){!e||Fr(t)||e.disabled||(t=e.key)})),t}
/* harmony default export */var Hr={name:"Tabs",mixins:[d.a],model:{prop:"activeKey",event:"change"},props:{destroyInactiveTabPane:s.a.bool,renderTabBar:s.a.func.isRequired,renderTabContent:s.a.func.isRequired,navWrapper:s.a.func.def((function(e){return e})),children:s.a.any.def([]),prefixCls:s.a.string.def("ant-tabs"),tabBarPosition:s.a.string.def("top"),activeKey:s.a.oneOfType([s.a.string,s.a.number]),defaultActiveKey:s.a.oneOfType([s.a.string,s.a.number]),__propsSymbol__:s.a.any,direction:s.a.string.def("ltr"),tabBarGutter:s.a.number},data:function(){var e=Object(N.l)(this);return{_activeKey:"activeKey"in e?e.activeKey:"defaultActiveKey"in e?e.defaultActiveKey:zr(e)}},provide:function(){return{sentinelContext:this}},watch:{__propsSymbol__:function(){var e,t,n=Object(N.l)(this);"activeKey"in n?this.setState({_activeKey:n.activeKey}):(e=n,t=this.$data._activeKey,e.children.map((function(e){return e&&e.key})).indexOf(t)>=0||
// https://github.com/ant-design/ant-design/issues/7093
this.setState({_activeKey:zr(n)}))}},beforeDestroy:function(){this.destroy=!0,v.a.cancel(this.sentinelId)},methods:{onTabClick:function(e,t){this.tabBar.componentOptions&&this.tabBar.componentOptions.listeners&&this.tabBar.componentOptions.listeners.tabClick&&this.tabBar.componentOptions.listeners.tabClick(e,t),this.setActiveKey(e)},onNavKeyDown:function(e){var t=e.keyCode;if(t===jr||t===Nr){e.preventDefault();var n=this.getNextActiveKey(!0);this.onTabClick(n)}else if(t===Qr||t===Rr){e.preventDefault();var r=this.getNextActiveKey(!1);this.onTabClick(r)}},onScroll:function(e){var t=e.target;t===e.currentTarget&&t.scrollLeft>0&&(t.scrollLeft=0)},
// Sentinel for tab index
setSentinelStart:function(e){this.sentinelStart=e},setSentinelEnd:function(e){this.sentinelEnd=e},setPanelSentinelStart:function(e){e!==this.panelSentinelStart&&this.updateSentinelContext(),this.panelSentinelStart=e},setPanelSentinelEnd:function(e){e!==this.panelSentinelEnd&&this.updateSentinelContext(),this.panelSentinelEnd=e},setActiveKey:function(e){this.$data._activeKey!==e&&("activeKey"in Object(N.l)(this)||this.setState({_activeKey:e}),this.__emit("change",e))},getNextActiveKey:function(e){var t=this.$data._activeKey,n=[];this.$props.children.forEach((function(t){t&&!t.disabled&&""!==t.disabled&&(e?n.push(t):n.unshift(t))}));var r=n.length,i=r&&n[0].key;return n.forEach((function(e,a){e.key===t&&(i=a===r-1?n[0].key:n[a+1].key)})),i},updateSentinelContext:function(){var e=this;this.destroy||(v.a.cancel(this.sentinelId),this.sentinelId=v()((function(){e.destroy||e.$forceUpdate()})))}},render:function(){var e,t=arguments[0],n=this.$props,r=n.prefixCls,i=n.navWrapper,a=n.tabBarPosition,s=n.renderTabContent,c=n.renderTabBar,l=n.destroyInactiveTabPane,h=n.direction,f=n.tabBarGutter,d=(e={},o()(e,r,1),o()(e,r+"-"+a,1),o()(e,r+"-rtl","rtl"===h),e);this.tabBar=c();var p=Object(ce.a)(this.tabBar,{props:{prefixCls:r,navWrapper:i,tabBarPosition:a,panels:n.children,activeKey:this.$data._activeKey,direction:h,tabBarGutter:f},on:{keydown:this.onNavKeyDown,tabClick:this.onTabClick},key:"tabBar"}),g=Object(ce.a)(s(),{props:{prefixCls:r,tabBarPosition:a,activeKey:this.$data._activeKey,destroyInactiveTabPane:l,direction:h},on:{change:this.setActiveKey},children:n.children,key:"tabContent"}),m=t(Pr,{key:"sentinelStart",attrs:{setRef:this.setSentinelStart,nextElement:this.panelSentinelStart}}),v=t(Pr,{key:"sentinelEnd",attrs:{setRef:this.setSentinelEnd,prevElement:this.panelSentinelEnd}}),y=[];return"bottom"===a?y.push(m,g,v,p):y.push(p,m,g,v),t("div",{on:Q()({},Object(u.a)(Object(N.k)(this),["change"]),{scroll:this.onScroll}),class:d},[y])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/index.js
// based on rc-tabs 9.7.0
oe.default.use(he.a,{name:"ant-ref"});
/* harmony default export */var Ur=Hr;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/utils.js
function Gr(e){var t=[];return e.forEach((function(e){e.data&&t.push(e)})),t}function Vr(e,t){for(var n=Gr(e),r=0;r<n.length;r++)if(n[r].key===t)return r;return-1}function Wr(e,t){e.transform=t,e.webkitTransform=t,e.mozTransform=t}function qr(e){return("transform"in e||"webkitTransform"in e||"MozTransform"in e)&&window.atob}function Yr(e){return"left"===e||"right"===e}function Kr(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function $r(e,t){return+e.getPropertyValue(t).replace("px","")}function Jr(e,t,n,r,i){var a=Kr(i,"padding-"+e);if(!r||!r.parentNode)return a;var o=r.parentNode.childNodes;return Array.prototype.some.call(o,(function(i){var o=window.getComputedStyle(i);return i!==r?(a+=$r(o,"margin-"+e),a+=i[t],a+=$r(o,"margin-"+n),"content-box"===o.boxSizing&&(a+=$r(o,"border-"+e+"-width")+$r(o,"border-"+n+"-width")),!1):(
// We need count current node margin
// ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262
a+=$r(o,"margin-"+e),!0)})),a}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/TabContent.js
/* harmony default export */var Xr={name:"TabContent",props:{animated:{type:Boolean,default:!0},animatedWithMargin:{type:Boolean,default:!0},prefixCls:{default:"ant-tabs",type:String},activeKey:s.a.oneOfType([s.a.string,s.a.number]),tabBarPosition:String,direction:s.a.string,destroyInactiveTabPane:s.a.bool},computed:{classes:function(){var e,t=this.animated,n=this.prefixCls;return e={},o()(e,n+"-content",!0),o()(e,t?n+"-content-animated":n+"-content-no-animated",!0),e}},methods:{getTabPanes:function(){var e=this.$props,t=e.activeKey,n=this.$slots.default||[],r=[];return n.forEach((function(n){if(n){var i=n.key,a=t===i;r.push(Object(ce.a)(n,{props:{active:a,destroyInactiveTabPane:e.destroyInactiveTabPane,rootPrefixCls:e.prefixCls}}))}})),r}},render:function(){var e,t=arguments[0],n=this.activeKey,r=this.tabBarPosition,i=this.animated,a=this.animatedWithMargin,s=this.direction,c=this.classes,l={};if(i&&this.$slots.default){var u=Vr(this.$slots.default,n);if(-1!==u){var h=a?function(e,t){var n=Yr(t)?"marginTop":"marginLeft";return o()({},n,100*-e+"%")}(u,r):(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=Yr(t)?"translateY":"translateX";return Yr(t)||"rtl"!==n?r+"("+100*-e+"%) translateZ(0)":r+"("+100*e+"%) translateZ(0)"}(u,r,s),{transform:e,WebkitTransform:e,MozTransform:e});l=h}else l={display:"none"}}return t("div",{class:c,style:l},[this.getTabPanes()])}},Zr=function(e){if("undefined"!=typeof window&&window.document&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},ei=Zr(["flex","webkitFlex","Flex","msFlex"]);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/styleChecker.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/InkTabBarNode.js
function ti(e,t){var n=e.$props,r=n.styles,i=void 0===r?{}:r,a=n.panels,o=n.activeKey,s=n.direction,c=e.getRef("root"),l=e.getRef("nav")||c,u=e.getRef("inkBar"),h=e.getRef("activeTab"),f=u.style,d=e.$props.tabBarPosition,p=Vr(a,o);if(t&&(
// prevent mount animation
f.display="none"),h){var g=h,m=qr(f);if(
// Reset current style
Wr(f,""),f.width="",f.height="",f.left="",f.top="",f.bottom="",f.right="","top"===d||"bottom"===d){var v=function(e,t){return Jr("left","offsetWidth","right",e,t)}(g,l),y=g.offsetWidth;
// If tabNode'width width equal to wrapNode'width when tabBarPosition is top or bottom
// It means no css working, then ink bar should not have width until css is loaded
// Fix https://github.com/ant-design/ant-design/issues/7564
y===c.offsetWidth?y=0:i.inkBar&&void 0!==i.inkBar.width&&(y=parseFloat(i.inkBar.width,10))&&(v+=(g.offsetWidth-y)/2),"rtl"===s&&(v=Kr(g,"margin-left")-v),
// use 3d gpu to optimize render
m?Wr(f,"translate3d("+v+"px,0,0)"):f.left=v+"px",f.width=y+"px"}else{var A=function(e,t){return Jr("top","offsetHeight","bottom",e,t)}(g,l),b=g.offsetHeight;i.inkBar&&void 0!==i.inkBar.height&&(b=parseFloat(i.inkBar.height,10))&&(A+=(g.offsetHeight-b)/2),m?(Wr(f,"translate3d(0,"+A+"px,0)"),f.top="0"):f.top=A+"px",f.height=b+"px"}}f.display=-1!==p?"block":"none"}
/* harmony default export */var ni={name:"InkTabBarNode",mixins:[d.a],props:{inkBarAnimated:{type:Boolean,default:!0},direction:s.a.string,prefixCls:String,styles:Object,tabBarPosition:String,saveRef:s.a.func.def((function(){})),getRef:s.a.func.def((function(){})),panels:s.a.array,activeKey:s.a.oneOfType([s.a.string,s.a.number])},updated:function(){this.$nextTick((function(){ti(this)}))},mounted:function(){this.$nextTick((function(){ti(this,!0)}))},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.styles,a=void 0===r?{}:r,s=this.inkBarAnimated,c=n+"-ink-bar",l=(e={},o()(e,c,!0),o()(e,s?c+"-animated":c+"-no-animated",!0),e);return t("div",i()([{style:a.inkBar,class:l,key:"inkBar"},{directives:[{name:"ant-ref",value:this.saveRef("inkBar")}]}]))}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/TabBarTabsNode.js
function ri(){}
/* harmony default export */var ii={name:"TabBarTabsNode",mixins:[d.a],props:{activeKey:s.a.oneOfType([s.a.string,s.a.number]),panels:s.a.any.def([]),prefixCls:s.a.string.def(""),tabBarGutter:s.a.any.def(null),onTabClick:s.a.func,saveRef:s.a.func.def(ri),getRef:s.a.func.def(ri),renderTabBarNode:s.a.func,tabBarPosition:s.a.string,direction:s.a.string},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.panels,a=n.activeKey,s=n.prefixCls,c=n.tabBarGutter,l=n.saveRef,u=n.tabBarPosition,h=n.direction,f=[],d=this.renderTabBarNode||this.$scopedSlots.renderTabBarNode;return r.forEach((function(n,p){if(n){var g=Object(N.l)(n),m=n.key,v=a===m?s+"-tab-active":"";v+=" "+s+"-tab";var y={on:{}},A=g.disabled||""===g.disabled;A?v+=" "+s+"-tab-disabled":y.on.click=function(){e.__emit("tabClick",m)};var b=[];a===m&&b.push({name:"ant-ref",value:l("activeTab")});var w=Object(N.g)(n,"tab"),x=c&&p===r.length-1?0:c;x="number"==typeof x?x+"px":x;var C="rtl"===h?"marginLeft":"marginRight",_=o()({},Yr(u)?"marginBottom":C,x);ae()(void 0!==w,"There must be `tab` property or slot on children of Tabs.");var I=t("div",i()([{attrs:{role:"tab","aria-disabled":A?"true":"false","aria-selected":a===m?"true":"false"}},y,{class:v,key:m,style:_},{directives:b}]),[w]);d&&(I=d(I)),f.push(I)}})),t("div",{directives:[{name:"ant-ref",value:this.saveRef("navTabsContainer")}]},[f])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/TabBarRootNode.js
function ai(){}
/* harmony default export */var oi={name:"TabBarRootNode",mixins:[d.a],props:{saveRef:s.a.func.def(ai),getRef:s.a.func.def(ai),prefixCls:s.a.string.def(""),tabBarPosition:s.a.string.def("top"),extraContent:s.a.any},methods:{onKeyDown:function(e){this.__emit("keydown",e)}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.onKeyDown,r=this.tabBarPosition,a=this.extraContent,s=o()({},t+"-bar",!0),c="top"===r||"bottom"===r,l=c?{float:"right"}:{},u=this.$slots.default,h=u;return a&&(h=[Object(ce.a)(a,{key:"extra",style:Q()({},l)}),Object(ce.a)(u,{key:"content"})],h=c?h:h.reverse()),e("div",i()([{attrs:{role:"tablist",tabIndex:"0"},class:s,on:{keydown:n}},{directives:[{name:"ant-ref",value:this.saveRef("root")}]}]),[h])}},si=n("b047"),ci=n.n(si);
// EXTERNAL MODULE: ./node_modules/lodash/debounce.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/ScrollableTabBarNode.js
function li(){}
/* harmony default export */var ui={name:"ScrollableTabBarNode",mixins:[d.a],props:{activeKey:s.a.any,getRef:s.a.func.def((function(){})),saveRef:s.a.func.def((function(){})),tabBarPosition:s.a.oneOf(["left","right","top","bottom"]).def("left"),prefixCls:s.a.string.def(""),scrollAnimated:s.a.bool.def(!0),navWrapper:s.a.func.def((function(e){return e})),prevIcon:s.a.any,nextIcon:s.a.any,direction:s.a.string},data:function(){return this.offset=0,this.prevProps=Q()({},this.$props),{next:!1,prev:!1}},watch:{tabBarPosition:function(){var e=this;this.tabBarPositionChange=!0,this.$nextTick((function(){e.setOffset(0)}))}},mounted:function(){var e=this;this.$nextTick((function(){e.updatedCal(),e.debouncedResize=ci()((function(){e.setNextPrev(),e.scrollToActiveTab()}),200),e.resizeObserver=new h.a(e.debouncedResize),e.resizeObserver.observe(e.$props.getRef("container"))}))},updated:function(){var e=this;this.$nextTick((function(){e.updatedCal(e.prevProps),e.prevProps=Q()({},e.$props)}))},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.debouncedResize&&this.debouncedResize.cancel&&this.debouncedResize.cancel()},methods:{updatedCal:function(e){var t=this,n=this.$props;e&&e.tabBarPosition!==n.tabBarPosition?this.setOffset(0):
// wait next, prev show hide
this.isNextPrevShown(this.$data)!==this.isNextPrevShown(this.setNextPrev())?(this.$forceUpdate(),this.$nextTick((function(){t.scrollToActiveTab()}))):e&&n.activeKey===e.activeKey||
// can not use props.activeKey
this.scrollToActiveTab()},setNextPrev:function(){var e=this.$props.getRef("nav"),t=this.$props.getRef("navTabsContainer"),n=this.getScrollWH(t||e),r=this.getOffsetWH(this.$props.getRef("container"))+1,i=this.getOffsetWH(this.$props.getRef("navWrap")),a=this.offset,o=r-n,s=this.next,c=this.prev;if(o>=0)s=!1,this.setOffset(0,!1),a=0;else if(o<a)s=!0;else{s=!1;
// Fix https://github.com/ant-design/ant-design/issues/8861
// Test with container offset which is stable
// and set the offset of the nav wrap node
var l=i-n;this.setOffset(l,!1),a=l}return c=a<0,this.setNext(s),this.setPrev(c),{next:s,prev:c}},getOffsetWH:function(e){var t=this.$props.tabBarPosition,n="offsetWidth";return"left"!==t&&"right"!==t||(n="offsetHeight"),e[n]},getScrollWH:function(e){var t=this.tabBarPosition,n="scrollWidth";return"left"!==t&&"right"!==t||(n="scrollHeight"),e[n]},getOffsetLT:function(e){var t=this.$props.tabBarPosition,n="left";return"left"!==t&&"right"!==t||(n="top"),e.getBoundingClientRect()[n]},setOffset:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Math.min(0,e);if(this.offset!==n){this.offset=n;var r={},i=this.$props.tabBarPosition,a=this.$props.getRef("nav").style,o=qr(a);"left"===i||"right"===i?r=o?{value:"translate3d(0,"+n+"px,0)"}:{name:"top",value:n+"px"}:o?("rtl"===this.$props.direction&&(n=-n),r={value:"translate3d("+n+"px,0,0)"}):r={name:"left",value:n+"px"},o?Wr(a,r.value):a[r.name]=r.value,t&&this.setNextPrev()}},setPrev:function(e){this.prev!==e&&(this.prev=e)},setNext:function(e){this.next!==e&&(this.next=e)},isNextPrevShown:function(e){return e?e.next||e.prev:this.next||this.prev},prevTransitionEnd:function(e){if("opacity"===e.propertyName){var t=this.$props.getRef("container");this.scrollToActiveTab({target:t,currentTarget:t})}},scrollToActiveTab:function(e){var t=this.$props.getRef("activeTab"),n=this.$props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&t){
// when not scrollable or enter scrollable first time, don't emit scrolling
var r=this.isNextPrevShown()&&this.lastNextPrevShown;if(this.lastNextPrevShown=this.isNextPrevShown(),r){var i=this.getScrollWH(t),a=this.getOffsetWH(n),o=this.offset,s=this.getOffsetLT(n),c=this.getOffsetLT(t);s>c?(o+=s-c,this.setOffset(o)):s+a<c+i&&(o-=c+i-(s+a),this.setOffset(o))}}},prevClick:function(e){this.__emit("prevClick",e);var t=this.$props.getRef("navWrap"),n=this.getOffsetWH(t),r=this.offset;this.setOffset(r+n)},nextClick:function(e){this.__emit("nextClick",e);var t=this.$props.getRef("navWrap"),n=this.getOffsetWH(t),r=this.offset;this.setOffset(r-n)}},render:function(){var e,t,n,r,a=arguments[0],s=this.next,c=this.prev,l=this.$props,u=l.prefixCls,h=l.scrollAnimated,f=l.navWrapper,d=Object(N.g)(this,"prevIcon"),p=Object(N.g)(this,"nextIcon"),g=c||s,m=a("span",{on:{click:c?this.prevClick:li,transitionend:this.prevTransitionEnd},attrs:{unselectable:"unselectable"},class:(e={},o()(e,u+"-tab-prev",1),o()(e,u+"-tab-btn-disabled",!c),o()(e,u+"-tab-arrow-show",g),e)},[d||a("span",{class:u+"-tab-prev-icon"})]),v=a("span",{on:{click:s?this.nextClick:li},attrs:{unselectable:"unselectable"},class:(t={},o()(t,u+"-tab-next",1),o()(t,u+"-tab-btn-disabled",!s),o()(t,u+"-tab-arrow-show",g),t)},[p||a("span",{class:u+"-tab-next-icon"})]),y=u+"-nav",A=(n={},o()(n,y,!0),o()(n,h?y+"-animated":y+"-no-animated",!0),n);return a("div",i()([{class:(r={},o()(r,u+"-nav-container",1),o()(r,u+"-nav-container-scrolling",g),r),key:"container"},{directives:[{name:"ant-ref",value:this.saveRef("container")}]}]),[m,v,a("div",i()([{class:u+"-nav-wrap"},{directives:[{name:"ant-ref",value:this.saveRef("navWrap")}]}]),[a("div",{class:u+"-nav-scroll"},[a("div",i()([{class:A},{directives:[{name:"ant-ref",value:this.saveRef("nav")}]}]),[f(this.$slots.default)])])])])}},hi={props:{children:s.a.func.def((function(){return null}))},methods:{getRef:function(e){return this[e]},saveRef:function(e){var t=this;return function(n){n&&(t[e]=n)}}},render:function(){var e=this;
// 每次都new一个新的function，避免子节点不能重新渲染
return this.children((function(t){return e.saveRef(t)}),(function(t){return e.getRef(t)}))}},fi={name:"ScrollableInkTabBar",inheritAttrs:!1,props:["extraContent","inkBarAnimated","tabBarGutter","prefixCls","navWrapper","tabBarPosition","panels","activeKey","prevIcon","nextIcon"],render:function(){var e=arguments[0],t=Q()({},this.$props),n=Object(N.k)(this),r=this.$scopedSlots.default;return e(hi,{attrs:{children:function(a,o){return e(oi,i()([{attrs:{saveRef:a}},{props:t,on:n}]),[e(ui,i()([{attrs:{saveRef:a,getRef:o}},{props:t,on:n}]),[e(ii,i()([{attrs:{saveRef:a}},{props:Q()({},t,{renderTabBarNode:r}),on:n}])),e(ni,i()([{attrs:{saveRef:a,getRef:o}},{props:t,on:n}]))])])}}})}},di={name:"TabBar",inheritAttrs:!1,props:{prefixCls:s.a.string,tabBarStyle:s.a.object,tabBarExtraContent:s.a.any,type:s.a.oneOf(["line","card","editable-card"]),tabPosition:s.a.oneOf(["top","right","bottom","left"]).def("top"),tabBarPosition:s.a.oneOf(["top","right","bottom","left"]),size:s.a.oneOf(["default","small","large"]),animated:s.a.oneOfType([s.a.bool,s.a.object]),renderTabBar:s.a.func,panels:s.a.array.def([]),activeKey:s.a.oneOfType([s.a.string,s.a.number]),tabBarGutter:s.a.number},render:function(){var e,t=arguments[0],n=this.$props,r=n.tabBarStyle,i=n.animated,a=void 0===i||i,s=n.renderTabBar,c=n.tabBarExtraContent,l=n.tabPosition,u=n.prefixCls,h=n.type,f=void 0===h?"line":h,d=n.size,p="object"===(void 0===a?"undefined":Y()(a))?a.inkBar:a,g="left"===l||"right"===l,m=g?"up":"left",v=g?"down":"right",y=t("span",{class:u+"-tab-prev-icon"},[t(We.a,{attrs:{type:m},class:u+"-tab-prev-icon-target"})]),A=t("span",{class:u+"-tab-next-icon"},[t(We.a,{attrs:{type:v},class:u+"-tab-next-icon-target"})]),b=(e={},o()(e,u+"-"+l+"-bar",!0),o()(e,u+"-"+d+"-bar",!!d),o()(e,u+"-card-bar",f&&f.indexOf("card")>=0),e),w={props:Q()({},this.$props,this.$attrs,{inkBarAnimated:p,extraContent:c,prevIcon:y,nextIcon:A}),style:r,on:Object(N.k)(this),class:b},x=void 0;return s?(x=s(w,fi),Object(ce.a)(x,w)):t(fi,w)}},pi=di,gi={TabPane:Lr,name:"ATabs",model:{prop:"activeKey",event:"change"},props:{prefixCls:s.a.string,activeKey:s.a.oneOfType([s.a.string,s.a.number]),defaultActiveKey:s.a.oneOfType([s.a.string,s.a.number]),hideAdd:s.a.bool.def(!1),tabBarStyle:s.a.object,tabBarExtraContent:s.a.any,destroyInactiveTabPane:s.a.bool.def(!1),type:s.a.oneOf(["line","card","editable-card"]),tabPosition:s.a.oneOf(["top","right","bottom","left"]).def("top"),size:s.a.oneOf(["default","small","large"]),animated:s.a.oneOfType([s.a.bool,s.a.object]),tabBarGutter:s.a.number,renderTabBar:s.a.func},inject:{configProvider:{default:function(){return A.a}}},mounted:function(){var e=" no-flex",t=this.$el;t&&!ei&&-1===t.className.indexOf(e)&&(t.className+=e)},methods:{removeTab:function(e,t){t.stopPropagation(),Fr(e)&&this.$emit("edit",e,"remove")},handleChange:function(e){this.$emit("change",e)},createNewTab:function(e){this.$emit("edit",e,"add")},onTabClick:function(e){this.$emit("tabClick",e)},onPrevClick:function(e){this.$emit("prevClick",e)},onNextClick:function(e){this.$emit("nextClick",e)}},render:function(){var e,t,n=this,r=arguments[0],a=Object(N.l)(this),s=a.prefixCls,c=a.size,l=a.type,u=void 0===l?"line":l,h=a.tabPosition,f=a.animated,d=void 0===f||f,p=a.hideAdd,g=a.renderTabBar,m=(0,this.configProvider.getPrefixCls)("tabs",s),v=Object(N.c)(this.$slots.default),y=Object(N.g)(this,"tabBarExtraContent"),A="object"===(void 0===d?"undefined":Y()(d))?d.tabPane:d;
// card tabs should not have animation
"line"!==u&&(A="animated"in a&&A);var b=(e={},o()(e,m+"-vertical","left"===h||"right"===h),o()(e,m+"-"+c,!!c),o()(e,m+"-card",u.indexOf("card")>=0),o()(e,m+"-"+u,!0),o()(e,m+"-no-animation",!A),e),w=[];
// only card type tabs can be added and closed
"editable-card"===u&&(w=[],v.forEach((function(e,t){var i=Object(N.l)(e).closable,a=(i=void 0===i||i)?r(We.a,{attrs:{type:"close"},class:m+"-close-x",on:{click:function(t){return n.removeTab(e.key,t)}}}):null;w.push(Object(ce.a)(e,{props:{tab:r("div",{class:i?void 0:m+"-tab-unclosable"},[Object(N.g)(e,"tab"),a])},key:e.key||t}))})),
// Add new tab handler
p||(y=r("span",[r(We.a,{attrs:{type:"plus"},class:m+"-new-tab",on:{click:this.createNewTab}}),y]))),y=y?r("div",{class:m+"-extra-content"},[y]):null;var x=g||this.$scopedSlots.renderTabBar,C=Object(N.k)(this),_={props:Q()({},this.$props,{prefixCls:m,tabBarExtraContent:y,renderTabBar:x}),on:C},I=(t={},o()(t,m+"-"+h+"-content",!0),o()(t,m+"-card-content",u.indexOf("card")>=0),t),E={props:Q()({},Object(N.l)(this),{prefixCls:m,tabBarPosition:h,
// https://github.com/vueComponent/ant-design-vue/issues/2030
// 如仅传递 tabBarProps 会导致，第二次执行 renderTabBar 时，丢失 on 属性，
// 添加key之后，会在babel jsx 插件中做一次merge，最终TabBar接收的是一个新的对象，而不是 tabBarProps
renderTabBar:function(){return r(pi,i()([{key:"tabBar"},_]))},renderTabContent:function(){return r(Xr,{class:I,attrs:{animated:A,animatedWithMargin:!0}})},children:w.length>0?w:v,__propsSymbol__:Symbol()}),on:Q()({},C,{change:this.handleChange}),class:b};return r(Ur,E)}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tabs/src/SaveRef.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tabs/index.js
gi.TabPane=Q()({},Lr,{name:"ATabPane",__ANT_TAB_PANE:!0}),gi.TabContent=Q()({},Xr,{name:"ATabContent"}),oe.default.use(he.a,{name:"ant-ref"}),
/* istanbul ignore next */
gi.install=function(e){e.use(b.a),e.component(gi.name,gi),e.component(gi.TabPane.name,gi.TabPane),e.component(gi.TabContent.name,gi.TabContent)};
/* harmony default export */var mi=gi,vi=void 0;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/responsiveObserve.js
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
// TODO: Will be removed in antd 4.0 because we will no longer support ie9
if("undefined"!=typeof window){
// ref: https://github.com/ant-design/ant-design/issues/18774
window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}}),
// eslint-disable-next-line global-require
vi=n("8e95")}var yi=["xxl","xl","lg","md","sm","xs"],Ai={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},bi=[],wi=-1,xi={},Ci={dispatch:function(e){return xi=e,!(bi.length<1)&&(bi.forEach((function(e){e.func(xi)})),!0)},subscribe:function(e){0===bi.length&&this.register();var t=(++wi).toString();return bi.push({token:t,func:e}),e(xi),t},unsubscribe:function(e){0===(bi=bi.filter((function(t){return t.token!==e}))).length&&this.unregister()},unregister:function(){Object.keys(Ai).map((function(e){return vi.unregister(Ai[e])}))},register:function(){var e=this;Object.keys(Ai).map((function(t){return vi.register(Ai[t],{match:function(){var n=Q()({},xi,o()({},t,!0));e.dispatch(n)},unmatch:function(){var n=Q()({},xi,o()({},t,!1));e.dispatch(n)},
// Keep a empty destroy to avoid triggering unmatch when unregister
destroy:function(){}})}))}},_i={gutter:s.a.oneOfType([s.a.object,s.a.number,s.a.array]),type:s.a.oneOf(["flex"]),align:s.a.oneOf(["top","middle","bottom","stretch"]),justify:s.a.oneOf(["start","end","center","space-around","space-between"]),prefixCls:s.a.string},Ii=["xxl","xl","lg","md","sm","xs"],Ei={name:"ARow",mixins:[d.a],props:Q()({},_i,{gutter:s.a.oneOfType([s.a.object,s.a.number,s.a.array]).def(0)}),provide:function(){return{rowContext:this}},inject:{configProvider:{default:function(){return A.a}}},data:function(){return{screens:{}}},mounted:function(){var e=this;this.$nextTick((function(){e.token=Ci.subscribe((function(t){var n=e.gutter;("object"===(void 0===n?"undefined":Y()(n))||Array.isArray(n)&&("object"===Y()(n[0])||"object"===Y()(n[1])))&&(e.screens=t)}))}))},beforeDestroy:function(){Ci.unsubscribe(this.token)},methods:{getGutter:function(){var e=[0,0],t=this.gutter,n=this.screens;return(Array.isArray(t)?t:[t,0]).forEach((function(t,r){if("object"===(void 0===t?"undefined":Y()(t)))for(var i=0;i<Ii.length;i++){var a=Ii[i];if(n[a]&&void 0!==t[a]){e[r]=t[a];break}}else e[r]=t||0})),e}},render:function(){var e,t=arguments[0],n=this.type,r=this.justify,i=this.align,a=this.prefixCls,s=this.$slots,c=(0,this.configProvider.getPrefixCls)("row",a),l=this.getGutter();return t("div",{class:(e={},o()(e,c,!n),o()(e,c+"-"+n,n),o()(e,c+"-"+n+"-"+r,n&&r),o()(e,c+"-"+n+"-"+i,n&&i),e),style:Q()({},l[0]>0?{marginLeft:l[0]/-2+"px",marginRight:l[0]/-2+"px"}:{},l[1]>0?{marginTop:l[1]/-2+"px",marginBottom:l[1]/-2+"px"}:{})},[s.default])},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/row/index.js
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Ei.name,Ei)}},ki=Ei,Si=s.a.oneOfType([s.a.string,s.a.number]),Bi=s.a.shape({span:Si,order:Si,offset:Si,push:Si,pull:Si}).loose,Mi=s.a.oneOfType([s.a.string,s.a.number,Bi]),Ti={span:Si,order:Si,offset:Si,push:Si,pull:Si,xs:Mi,sm:Mi,md:Mi,lg:Mi,xl:Mi,xxl:Mi,prefixCls:s.a.string,flex:Si},Oi={name:"ACol",props:Ti,inject:{configProvider:{default:function(){return A.a}},rowContext:{default:function(){return null}}},methods:{parseFlex:function(e){return"number"==typeof e?e+" "+e+" auto":/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 "+e:e}},render:function(){var e,t=this,n=arguments[0],r=this.span,i=this.order,a=this.offset,s=this.push,c=this.pull,l=this.flex,u=this.prefixCls,h=this.$slots,f=this.rowContext,d=(0,this.configProvider.getPrefixCls)("col",u),p={};["xs","sm","md","lg","xl","xxl"].forEach((function(e){var n,r={},i=t[e];"number"==typeof i?r.span=i:"object"===(void 0===i?"undefined":Y()(i))&&(r=i||{}),p=Q()({},p,(n={},o()(n,d+"-"+e+"-"+r.span,void 0!==r.span),o()(n,d+"-"+e+"-order-"+r.order,r.order||0===r.order),o()(n,d+"-"+e+"-offset-"+r.offset,r.offset||0===r.offset),o()(n,d+"-"+e+"-push-"+r.push,r.push||0===r.push),o()(n,d+"-"+e+"-pull-"+r.pull,r.pull||0===r.pull),n))}));var g=Q()((e={},o()(e,""+d,!0),o()(e,d+"-"+r,void 0!==r),o()(e,d+"-order-"+i,i),o()(e,d+"-offset-"+a,a),o()(e,d+"-push-"+s,s),o()(e,d+"-pull-"+c,c),e),p),m={on:Object(N.k)(this),class:g,style:{}};if(f){var v=f.getGutter();v&&(m.style=Q()({},v[0]>0?{paddingLeft:v[0]/2+"px",paddingRight:v[0]/2+"px"}:{},v[1]>0?{paddingTop:v[1]/2+"px",paddingBottom:v[1]/2+"px"}:{}))}return l&&(m.style.flex=this.parseFlex(l)),n("div",m,[h.default])},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/col/index.js
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Oi.name,Oi)}},Di=Oi,Pi=mi.TabPane,Li={name:"ACard",mixins:[d.a],props:{prefixCls:s.a.string,title:s.a.any,extra:s.a.any,bordered:s.a.bool.def(!0),bodyStyle:s.a.object,headStyle:s.a.object,loading:s.a.bool.def(!1),hoverable:s.a.bool.def(!1),type:s.a.string,size:s.a.oneOf(["default","small"]),actions:s.a.any,tabList:s.a.array,tabBarExtraContent:s.a.any,activeTabKey:s.a.string,defaultActiveTabKey:s.a.string},inject:{configProvider:{default:function(){return A.a}}},data:function(){return{widerPadding:!1}},methods:{getAction:function(e){var t=this.$createElement;return e.map((function(n,r){return t("li",{style:{width:100/e.length+"%"},key:"action-"+r},[t("span",[n])])}))},onTabChange:function(e){this.$emit("tabChange",e)},isContainGrid:function(){var e=void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){t&&Object(N.o)(t).__ANT_CARD_GRID&&(e=!0)})),e}},render:function(){var e,t,n=arguments[0],r=this.$props,a=r.prefixCls,s=r.headStyle,c=void 0===s?{}:s,l=r.bodyStyle,h=void 0===l?{}:l,f=r.loading,d=r.bordered,p=void 0===d||d,g=r.size,m=void 0===g?"default":g,v=r.type,y=r.tabList,A=r.hoverable,b=r.activeTabKey,w=r.defaultActiveTabKey,x=(0,this.configProvider.getPrefixCls)("card",a),C=this.$slots,_=this.$scopedSlots,I=Object(N.g)(this,"tabBarExtraContent"),E=(e={},o()(e,""+x,!0),o()(e,x+"-loading",f),o()(e,x+"-bordered",p),o()(e,x+"-hoverable",!!A),o()(e,x+"-contain-grid",this.isContainGrid(C.default)),o()(e,x+"-contain-tabs",y&&y.length),o()(e,x+"-"+m,"default"!==m),o()(e,x+"-type-"+v,!!v),e),k=0===h.padding||"0px"===h.padding?{padding:24}:void 0,S=n("div",{class:x+"-loading-content",style:k},[n(ki,{attrs:{gutter:8}},[n(Di,{attrs:{span:22}},[n("div",{class:x+"-loading-block"})])]),n(ki,{attrs:{gutter:8}},[n(Di,{attrs:{span:8}},[n("div",{class:x+"-loading-block"})]),n(Di,{attrs:{span:15}},[n("div",{class:x+"-loading-block"})])]),n(ki,{attrs:{gutter:8}},[n(Di,{attrs:{span:6}},[n("div",{class:x+"-loading-block"})]),n(Di,{attrs:{span:18}},[n("div",{class:x+"-loading-block"})])]),n(ki,{attrs:{gutter:8}},[n(Di,{attrs:{span:13}},[n("div",{class:x+"-loading-block"})]),n(Di,{attrs:{span:9}},[n("div",{class:x+"-loading-block"})])]),n(ki,{attrs:{gutter:8}},[n(Di,{attrs:{span:4}},[n("div",{class:x+"-loading-block"})]),n(Di,{attrs:{span:3}},[n("div",{class:x+"-loading-block"})]),n(Di,{attrs:{span:16}},[n("div",{class:x+"-loading-block"})])])]),B=void 0!==b,M={props:(t={size:"large"},o()(t,B?"activeKey":"defaultActiveKey",B?b:w),o()(t,"tabBarExtraContent",I),t),on:{change:this.onTabChange},class:x+"-head-tabs"},T=void 0,O=y&&y.length?n(mi,M,[y.map((function(e){var t=e.tab,r=e.scopedSlots,i=(void 0===r?{}:r).tab,a=void 0!==t?t:_[i]?_[i](e):null;return n(Pi,{attrs:{tab:a,disabled:e.disabled},key:e.key})}))]):null,D=Object(N.g)(this,"title"),P=Object(N.g)(this,"extra");(D||P||O)&&(T=n("div",{class:x+"-head",style:c},[n("div",{class:x+"-head-wrapper"},[D&&n("div",{class:x+"-head-title"},[D]),P&&n("div",{class:x+"-extra"},[P])]),O]));var L=C.default,Q=Object(N.g)(this,"cover"),R=Q?n("div",{class:x+"-cover"},[Q]):null,j=n("div",{class:x+"-body",style:h},[f?S:L]),F=Object(N.c)(this.$slots.actions),z=F&&F.length?n("ul",{class:x+"-actions"},[this.getAction(F)]):null;return n("div",i()([{class:E,ref:"cardContainerRef"},{on:Object(u.a)(Object(N.k)(this),["tabChange","tab-change"])}]),[T,R,L?j:null,z])}},Qi={name:"ACardMeta",props:{prefixCls:s.a.string,title:s.a.any,description:s.a.any},inject:{configProvider:{default:function(){return A.a}}},render:function(){var e=arguments[0],t=this.$props.prefixCls,n=(0,this.configProvider.getPrefixCls)("card",t),r=o()({},n+"-meta",!0),a=Object(N.g)(this,"avatar"),s=Object(N.g)(this,"title"),c=Object(N.g)(this,"description"),l=a?e("div",{class:n+"-meta-avatar"},[a]):null,u=s?e("div",{class:n+"-meta-title"},[s]):null,h=c?e("div",{class:n+"-meta-description"},[c]):null,f=u||h?e("div",{class:n+"-meta-detail"},[u,h]):null;return e("div",i()([{on:Object(N.k)(this)},{class:r}]),[l,f])}},Ri={name:"ACardGrid",__ANT_CARD_GRID:!0,props:{prefixCls:s.a.string,hoverable:s.a.bool},inject:{configProvider:{default:function(){return A.a}}},render:function(){var e,t=arguments[0],n=this.$props,r=n.prefixCls,a=n.hoverable,s=void 0===a||a,c=(0,this.configProvider.getPrefixCls)("card",r),l=(e={},o()(e,c+"-grid",!0),o()(e,c+"-grid-hoverable",s),e);return t("div",i()([{on:Object(N.k)(this)},{class:l}]),[this.$slots.default])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/card/index.js
Li.Meta=Qi,Li.Grid=Ri,
/* istanbul ignore next */
Li.install=function(e){e.use(b.a),e.component(Li.name,Li),e.component(Qi.name,Qi),e.component(Ri.name,Ri)};
/* harmony default export */var ji=Li,Ni=n("3593"),Fi=function(){return{prefixCls:s.a.string,activeKey:s.a.oneOfType([s.a.string,s.a.number,s.a.arrayOf(s.a.oneOfType([s.a.string,s.a.number]))]),defaultActiveKey:s.a.oneOfType([s.a.string,s.a.number,s.a.arrayOf(s.a.oneOfType([s.a.string,s.a.number]))]),accordion:s.a.bool,destroyInactivePanel:s.a.bool,bordered:s.a.bool,expandIcon:s.a.func,openAnimation:s.a.object,expandIconPosition:s.a.oneOf(["left","right"])}},zi=function(){return{openAnimation:s.a.object,prefixCls:s.a.string,header:s.a.oneOfType([s.a.string,s.a.number,s.a.node]),headerClass:s.a.string,showArrow:s.a.bool,isActive:s.a.bool,destroyInactivePanel:s.a.bool,disabled:s.a.bool,accordion:s.a.bool,forceRender:s.a.bool,expandIcon:s.a.func,extra:s.a.any,panelKey:s.a.any}},Hi={name:"PanelContent",props:{prefixCls:s.a.string,isActive:s.a.bool,destroyInactivePanel:s.a.bool,forceRender:s.a.bool,role:s.a.any},data:function(){return{_isActive:void 0}},render:function(){var e,t=arguments[0];if(this._isActive=this.forceRender||this._isActive||this.isActive,!this._isActive)return null;var n=this.$props,r=n.prefixCls,i=n.isActive,a=n.destroyInactivePanel,s=n.forceRender,c=n.role,l=this.$slots,u=(e={},o()(e,r+"-content",!0),o()(e,r+"-content-active",i),e),h=s||i||!a?t("div",{class:r+"-content-box"},[l.default]):null;return t("div",{class:u,attrs:{role:c}},[h])}},Ui={name:"Panel",props:Object(N.t)(zi(),{showArrow:!0,isActive:!1,destroyInactivePanel:!1,headerClass:"",forceRender:!1}),methods:{handleItemClick:function(){this.$emit("itemClick",this.panelKey)},handleKeyPress:function(e){"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||this.handleItemClick()}},render:function(){var e,t,n=arguments[0],r=this.$props,i=r.prefixCls,a=r.headerClass,s=r.isActive,c=r.showArrow,l=r.destroyInactivePanel,u=r.disabled,h=r.openAnimation,f=r.accordion,d=r.forceRender,p=r.expandIcon,g=r.extra,m=this.$slots,v={props:Q()({appear:!0,css:!1}),on:Q()({},h)},y=(e={},o()(e,i+"-header",!0),o()(e,a,a),e),A=Object(N.g)(this,"header"),b=(t={},o()(t,i+"-item",!0),o()(t,i+"-item-active",s),o()(t,i+"-item-disabled",u),t),w=n("i",{class:"arrow"});return c&&"function"==typeof p&&(w=p(this.$props)),n("div",{class:b,attrs:{role:"tablist"}},[n("div",{class:y,on:{click:this.handleItemClick.bind(this),keypress:this.handleKeyPress},attrs:{role:f?"tab":"button",tabIndex:u?-1:0,"aria-expanded":s}},[c&&w,A,g&&n("div",{class:i+"-extra"},[g])]),n("transition",v,[n(Hi,{directives:[{name:"show",value:s}],attrs:{prefixCls:i,isActive:s,destroyInactivePanel:l,forceRender:d,role:f?"tabpanel":null}},[m.default])])])}},Gi=n("18ce");
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/_util/openAnimation.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-collapse/src/openAnimationFactory.js
function Vi(e,t,n,r){var i=void 0;return Object(Gi.a)(e,n,{start:function(){t?(i=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?i:0)+"px"},end:function(){e.style.height="",r()}})}
/* harmony default export */var Wi=function(e){return{enter:function(t,n){return Vi(t,!0,e+"-anim",n)},leave:function(t,n){return Vi(t,!1,e+"-anim",n)}}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-collapse/src/Collapse.js
function qi(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t.map((function(e){return String(e)}))}
/* harmony default export */var Yi={name:"Collapse",mixins:[d.a],model:{prop:"activeKey",event:"change"},props:Object(N.t)(Fi(),{prefixCls:"rc-collapse",accordion:!1,destroyInactivePanel:!1}),data:function(){var e=this.$props,t=e.activeKey,n=e.defaultActiveKey,r=e.openAnimation,i=e.prefixCls,a=n;return Object(N.s)(this,"activeKey")&&(a=t),{currentOpenAnimations:r||Wi(i),stateActiveKey:qi(a)}},watch:{activeKey:function(e){this.setState({stateActiveKey:qi(e)})},openAnimation:function(e){this.setState({currentOpenAnimations:e})}},methods:{onClickItem:function(e){var t=this.stateActiveKey;if(this.accordion)t=t[0]===e?[]:[e];else{var n=(t=[].concat(g()(t))).indexOf(e);n>-1?
// remove active state
t.splice(n,1):t.push(e)}this.setActiveKey(t)},getNewChild:function(e,t){if(!Object(N.u)(e)){var n=this.stateActiveKey,r=this.$props,i=r.prefixCls,a=r.accordion,o=r.destroyInactivePanel,s=r.expandIcon,c=e.key||String(t),l=Object(N.m)(e),u=l.header,h=l.headerClass,f=l.disabled,d=!1;d=a?n[0]===c:n.indexOf(c)>-1;var p={};f||""===f||(p={itemClick:this.onClickItem});var g={key:c,props:{panelKey:c,header:u,headerClass:h,isActive:d,prefixCls:i,destroyInactivePanel:o,openAnimation:this.currentOpenAnimations,accordion:a,expandIcon:s},on:p};return Object(ce.a)(e,g)}},getItems:function(){var e=this,t=[];return this.$slots.default&&this.$slots.default.forEach((function(n,r){t.push(e.getNewChild(n,r))})),t},setActiveKey:function(e){this.setState({stateActiveKey:e}),this.$emit("change",this.accordion?e[0]:e)}},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.accordion;return e("div",{class:o()({},n,!0),attrs:{role:r?"tablist":null}},[this.getItems()])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-collapse/index.js
// based on rc-collapse 1.11.8
Yi.Panel=Ui;
/* harmony default export */var Ki=Yi,$i={name:"ACollapse",model:{prop:"activeKey",event:"change"},props:Object(N.t)(Fi(),{bordered:!0,openAnimation:Ni.a,expandIconPosition:"left"}),inject:{configProvider:{default:function(){return A.a}}},methods:{renderExpandIcon:function(e,t){var n=this.$createElement,r=Object(N.g)(this,"expandIcon",e),i=r||n(We.a,{attrs:{type:"right",rotate:e.isActive?90:void 0}});return Object(N.w)(Array.isArray(r)?i[0]:i)?Object(ce.a)(i,{class:t+"-arrow"}):i}},render:function(){var e,t=this,n=arguments[0],r=this.prefixCls,i=this.bordered,a=this.expandIconPosition,s=(0,this.configProvider.getPrefixCls)("collapse",r),c=(e={},o()(e,s+"-borderless",!i),o()(e,s+"-icon-position-"+a,!0),e),l={props:Q()({},Object(N.l)(this),{prefixCls:s,expandIcon:function(e){return t.renderExpandIcon(e,s)}}),class:c,on:Object(N.k)(this)};return n(Ki,l,[this.$slots.default])}},Ji={name:"ACollapsePanel",props:Q()({},zi()),inject:{configProvider:{default:function(){return A.a}}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.showArrow,r=void 0===n||n,i=(0,this.configProvider.getPrefixCls)("collapse",t),a=o()({},i+"-no-arrow",!r),s={props:Q()({},Object(N.l)(this),{prefixCls:i,extra:Object(N.g)(this,"extra")}),class:a,on:Object(N.k)(this)},c=Object(N.g)(this,"header");return e(Ki.Panel,s,[this.$slots.default,c?e("template",{slot:"header"},[c]):null])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/collapse/Collapse.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/collapse/index.js
$i.Panel=Ji,
/* istanbul ignore next */
$i.install=function(e){e.use(b.a),e.component($i.name,$i),e.component(Ji.name,Ji)};
/* harmony default export */var Xi=$i;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/carousel/index.js
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
if("undefined"!=typeof window){
// ref: https://github.com/ant-design/ant-design/issues/18774
window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}})}
// Use require over import (will be lifted up)
// make sure matchMedia polyfill run before require('vc-slick')
// Fix https://github.com/ant-design/ant-design/issues/6560
// Fix https://github.com/ant-design/ant-design/issues/3308
var Zi=n("c3b9").default,ea={effect:s.a.oneOf(["scrollx","fade"]),dots:s.a.bool,vertical:s.a.bool,autoplay:s.a.bool,easing:s.a.string,beforeChange:s.a.func,afterChange:s.a.func,
// style: PropTypes.React.CSSProperties,
prefixCls:s.a.string,accessibility:s.a.bool,nextArrow:s.a.any,prevArrow:s.a.any,pauseOnHover:s.a.bool,
// className: PropTypes.string,
adaptiveHeight:s.a.bool,arrows:s.a.bool,autoplaySpeed:s.a.number,centerMode:s.a.bool,centerPadding:s.a.string,cssEase:s.a.string,dotsClass:s.a.string,draggable:s.a.bool,fade:s.a.bool,focusOnSelect:s.a.bool,infinite:s.a.bool,initialSlide:s.a.number,lazyLoad:s.a.bool,rtl:s.a.bool,slide:s.a.string,slidesToShow:s.a.number,slidesToScroll:s.a.number,speed:s.a.number,swipe:s.a.bool,swipeToSlide:s.a.bool,touchMove:s.a.bool,touchThreshold:s.a.number,variableWidth:s.a.bool,useCSS:s.a.bool,slickGoTo:s.a.number,responsive:s.a.array,dotPosition:s.a.oneOf(["top","bottom","left","right"])},ta={name:"ACarousel",props:Object(N.t)(ea,{dots:!0,arrows:!1,draggable:!1}),inject:{configProvider:{default:function(){return A.a}}},beforeMount:function(){this.onWindowResized=ci()(this.onWindowResized,500,{leading:!1})},mounted:function(){Object(N.b)(this,"vertical")&&Object(w.a)(!this.vertical,"Carousel","`vertical` is deprecated, please use `dotPosition` instead."),this.autoplay&&window.addEventListener("resize",this.onWindowResized),
// https://github.com/ant-design/ant-design/issues/7191
this.innerSlider=this.$refs.slick&&this.$refs.slick.innerSlider},beforeDestroy:function(){this.autoplay&&(window.removeEventListener("resize",this.onWindowResized),this.onWindowResized.cancel())},methods:{getDotPosition:function(){return this.dotPosition?this.dotPosition:Object(N.b)(this,"vertical")&&this.vertical?"right":"bottom"},onWindowResized:function(){this.autoplay&&this.$refs.slick&&this.$refs.slick.innerSlider&&this.$refs.slick.innerSlider.autoPlay&&this.$refs.slick.innerSlider.autoPlay()},next:function(){this.$refs.slick.slickNext()},prev:function(){this.$refs.slick.slickPrev()},goTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$refs.slick.slickGoTo(e,t)}},render:function(){var e=arguments[0],t=Q()({},this.$props),n=this.$slots;"fade"===t.effect&&(t.fade=!0);var r=(0,this.configProvider.getPrefixCls)("carousel",t.prefixCls),a="slick-dots",s=this.getDotPosition();t.vertical="left"===s||"right"===s,t.dotsClass=l()(""+a,a+"-"+(s||"bottom"),o()({},""+t.dotsClass,!!t.dotsClass)),t.vertical&&(r=r+" "+r+"-vertical");var c={props:Q()({},t,{nextArrow:Object(N.g)(this,"nextArrow"),prevArrow:Object(N.g)(this,"prevArrow")}),on:Object(N.k)(this),scopedSlots:this.$scopedSlots},u=Object(N.c)(n.default);return e("div",{class:r},[e(Zi,i()([{ref:"slick"},c]),[u])])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(ta.name,ta)}},na=ta,ra=n("b8ad"),ia=n.n(ra),aa={name:"CascaderMenus",mixins:[d.a],props:{value:s.a.array.def([]),activeValue:s.a.array.def([]),options:s.a.array,prefixCls:s.a.string.def("rc-cascader-menus"),expandTrigger:s.a.string.def("click"),
// onSelect: PropTypes.func,
visible:s.a.bool.def(!1),dropdownMenuColumnStyle:s.a.object,defaultFieldNames:s.a.object,fieldNames:s.a.object,expandIcon:s.a.any,loadingIcon:s.a.any},data:function(){return this.menuItems={},{}},watch:{visible:function(e){var t=this;e&&this.$nextTick((function(){t.scrollActiveItemToView()}))}},mounted:function(){var e=this;this.$nextTick((function(){e.scrollActiveItemToView()}))},methods:{getFieldName:function(e){var t=this.$props,n=t.fieldNames,r=t.defaultFieldNames;
// 防止只设置单个属性的名字
return n[e]||r[e]},getOption:function(e,t){var n=this,r=this.$createElement,i=this.prefixCls,a=this.expandTrigger,o=Object(N.g)(this,"loadingIcon"),s=Object(N.g)(this,"expandIcon"),c=function(r){n.__emit("select",e,t,r)},l=e[this.getFieldName("value")],u={attrs:{role:"menuitem"},on:{click:c,dblclick:function(r){n.__emit("itemDoubleClick",e,t,r)},mousedown:function(e){return e.preventDefault()}},key:Array.isArray(l)?l.join("__ant__"):l},h=i+"-menu-item",f=null,d=e[this.getFieldName("children")]&&e[this.getFieldName("children")].length>0;(d||!1===e.isLeaf)&&(h+=" "+i+"-menu-item-expand",e.loading||(f=r("span",{class:i+"-menu-item-expand-icon"},[s]))),"hover"!==a||!d&&!1!==e.isLeaf||(u.on={mouseenter:this.delayOnSelect.bind(this,c),mouseleave:this.delayOnSelect.bind(this),click:c}),this.isActiveOption(e,t)&&(h+=" "+i+"-menu-item-active",u.ref=this.getMenuItemRef(t)),e.disabled&&(h+=" "+i+"-menu-item-disabled");var p=null;e.loading&&(h+=" "+i+"-menu-item-loading",p=o||null);var g="";return e.title?g=e.title:"string"==typeof e[this.getFieldName("label")]&&(g=e[this.getFieldName("label")]),u.attrs.title=g,u.class=h,r("li",u,[e[this.getFieldName("label")],f,p])},getActiveOptions:function(e){var t=this,n=e||this.activeValue,r=this.options;return ia()(r,(function(e,r){return e[t.getFieldName("value")]===n[r]}),{childrenKeyName:this.getFieldName("children")})},getShowOptions:function(){var e=this,t=this.options,n=this.getActiveOptions().map((function(t){return t[e.getFieldName("children")]})).filter((function(e){return!!e}));return n.unshift(t),n},delayOnSelect:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),"function"==typeof e&&(this.delayTimer=setTimeout((function(){e(r),t.delayTimer=null}),150))},scrollActiveItemToView:function(){for(
// scroll into view
var e=this.getShowOptions().length,t=0;t<e;t++){var n=this.$refs["menuItems_"+t];if(n){var r=n;r.parentNode.scrollTop=r.offsetTop}}},isActiveOption:function(e,t){var n=this.activeValue;return(void 0===n?[]:n)[t]===e[this.getFieldName("value")]},getMenuItemRef:function(e){return"menuItems_"+e}},render:function(){var e=this,t=arguments[0],n=this.prefixCls,r=this.dropdownMenuColumnStyle;return t("div",[this.getShowOptions().map((function(i,a){return t("ul",{class:n+"-menu",key:a,style:r},[i.map((function(t){return e.getOption(t,a)}))])}))])}},oa=n("c2b3"),sa=n.n(oa),ca={mixins:[d.a],model:{prop:"value",event:"change"},props:{value:s.a.array,defaultValue:s.a.array,options:s.a.array,
// onChange: PropTypes.func,
// onPopupVisibleChange: PropTypes.func,
popupVisible:s.a.bool,disabled:s.a.bool.def(!1),transitionName:s.a.string.def(""),popupClassName:s.a.string.def(""),popupStyle:s.a.object.def((function(){return{}})),popupPlacement:s.a.string.def("bottomLeft"),prefixCls:s.a.string.def("rc-cascader"),dropdownMenuColumnStyle:s.a.object,builtinPlacements:s.a.object.def({bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}}),loadData:s.a.func,changeOnSelect:s.a.bool,
// onKeyDown: PropTypes.func,
expandTrigger:s.a.string.def("click"),fieldNames:s.a.object.def((function(){return{label:"label",value:"value",children:"children"}})),expandIcon:s.a.any,loadingIcon:s.a.any,getPopupContainer:s.a.func},data:function(){var e=[],t=this.value,n=this.defaultValue,r=this.popupVisible;
// warning(!('filedNames' in props),
//   '`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead.');
return Object(N.s)(this,"value")?e=t||[]:Object(N.s)(this,"defaultValue")&&(e=n||[]),{sPopupVisible:r,sActiveValue:e,sValue:e}},watch:{value:function(e,t){if(!sa()(e,t)){var n={sValue:e||[]};
// allow activeValue diff from value
// https://github.com/ant-design/ant-design/issues/2767
Object(N.s)(this,"loadData")||(n.sActiveValue=e||[]),this.setState(n)}},popupVisible:function(e){this.setState({sPopupVisible:e})}},methods:{getPopupDOMNode:function(){return this.$refs.trigger.getPopupDomNode()},getFieldName:function(e){var t=this.defaultFieldNames;return this.fieldNames[e]||t[e]},getFieldNames:function(){return this.fieldNames},getCurrentLevelOptions:function(){var e=this,t=this.options,n=void 0===t?[]:t,r=this.sActiveValue,i=void 0===r?[]:r,a=ia()(n,(function(t,n){return t[e.getFieldName("value")]===i[n]}),{childrenKeyName:this.getFieldName("children")});return a[a.length-2]?a[a.length-2][this.getFieldName("children")]:[].concat(g()(n)).filter((function(e){return!e.disabled}))},getActiveOptions:function(e){var t=this;return ia()(this.options||[],(function(n,r){return n[t.getFieldName("value")]===e[r]}),{childrenKeyName:this.getFieldName("children")})},setPopupVisible:function(e){Object(N.s)(this,"popupVisible")||this.setState({sPopupVisible:e}),
// sync activeValue with value when panel open
e&&!this.sPopupVisible&&this.setState({sActiveValue:this.sValue}),this.__emit("popupVisibleChange",e)},handleChange:function(e,t,n){var r=this;"keydown"===n.type&&n.keyCode!==Z.a.ENTER||(this.__emit("change",e.map((function(e){return e[r.getFieldName("value")]})),e),this.setPopupVisible(t.visible))},handlePopupVisibleChange:function(e){this.setPopupVisible(e)},handleMenuSelect:function(e,t,n){
// Keep focused state for keyboard support
var r=this.$refs.trigger.getRootDomNode();r&&r.focus&&r.focus();var i=this.changeOnSelect,a=this.loadData,o=this.expandTrigger;if(e&&!e.disabled){var s=this.sActiveValue;(s=s.slice(0,t+1))[t]=e[this.getFieldName("value")];var c=this.getActiveOptions(s);if(!1===e.isLeaf&&!e[this.getFieldName("children")]&&a)return i&&this.handleChange(c,{visible:!0},n),this.setState({sActiveValue:s}),void a(c);var l={};e[this.getFieldName("children")]&&e[this.getFieldName("children")].length?!i||"click"!==n.type&&"keydown"!==n.type||("hover"===o?this.handleChange(c,{visible:!1},n):this.handleChange(c,{visible:!0},n),
// set value to activeValue on every select
l.sValue=s):(this.handleChange(c,{visible:!1},n),
// set value to activeValue when select leaf option
l.sValue=s),l.sActiveValue=s,
//  not change the value by keyboard
(Object(N.s)(this,"value")||"keydown"===n.type&&n.keyCode!==Z.a.ENTER)&&delete l.sValue,this.setState(l)}},handleItemDoubleClick:function(){this.$props.changeOnSelect&&this.setPopupVisible(!1)},handleKeyDown:function(e){var t=this,n=this.$slots,r=n.default&&n.default[0];
// https://github.com/ant-design/ant-design/issues/6717
// Don't bind keyboard support when children specify the onKeyDown
if(r){var i=Object(N.i)(r).keydown;if(i)return void i(e)}var a=[].concat(g()(this.sActiveValue)),o=a.length-1<0?0:a.length-1,s=this.getCurrentLevelOptions(),c=s.map((function(e){return e[t.getFieldName("value")]})).indexOf(a[o]);if(e.keyCode===Z.a.DOWN||e.keyCode===Z.a.UP||e.keyCode===Z.a.LEFT||e.keyCode===Z.a.RIGHT||e.keyCode===Z.a.ENTER||e.keyCode===Z.a.SPACE||e.keyCode===Z.a.BACKSPACE||e.keyCode===Z.a.ESC||e.keyCode===Z.a.TAB)
// Press any keys above to reopen menu
if(this.sPopupVisible||e.keyCode===Z.a.BACKSPACE||e.keyCode===Z.a.LEFT||e.keyCode===Z.a.RIGHT||e.keyCode===Z.a.ESC||e.keyCode===Z.a.TAB){if(e.keyCode===Z.a.DOWN||e.keyCode===Z.a.UP){e.preventDefault();var l=c;l=-1!==l?e.keyCode===Z.a.DOWN?(l+=1)>=s.length?0:l:(l-=1)<0?s.length-1:l:0,a[o]=s[l][this.getFieldName("value")]}else if(e.keyCode===Z.a.LEFT||e.keyCode===Z.a.BACKSPACE)e.preventDefault(),a.splice(a.length-1,1);else if(e.keyCode===Z.a.RIGHT)e.preventDefault(),s[c]&&s[c][this.getFieldName("children")]&&a.push(s[c][this.getFieldName("children")][0][this.getFieldName("value")]);else if(e.keyCode===Z.a.ESC||e.keyCode===Z.a.TAB)return void this.setPopupVisible(!1);a&&0!==a.length||this.setPopupVisible(!1);var u=this.getActiveOptions(a),h=u[u.length-1];this.handleMenuSelect(h,u.length-1,e),this.__emit("keydown",e)}else this.setPopupVisible(!0)}},render:function(){var e=arguments[0],t=this.$props,n=this.sActiveValue,r=this.handleMenuSelect,i=this.sPopupVisible,a=this.handlePopupVisibleChange,o=this.handleKeyDown,s=Object(N.k)(this),c=t.prefixCls,l=t.transitionName,u=t.popupClassName,h=t.options,f=void 0===h?[]:h,d=t.disabled,p=t.builtinPlacements,g=t.popupPlacement,m=X()(t,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement"]),v=e("div"),y="";if(f&&f.length>0){var A=Object(N.g)(this,"loadingIcon"),b=Object(N.g)(this,"expandIcon")||">",w={props:Q()({},t,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:n,visible:i,loadingIcon:A,expandIcon:b}),on:Q()({},s,{select:r,itemDoubleClick:this.handleItemDoubleClick})};v=e(aa,w)}else y=" "+c+"-menus-empty";var x={props:Q()({},m,{disabled:d,popupPlacement:g,builtinPlacements:p,popupTransitionName:l,action:d?[]:["click"],popupVisible:!d&&i,prefixCls:c+"-menus",popupClassName:u+y}),on:Q()({},s,{popupVisibleChange:a}),ref:"trigger"},C=Object(N.n)(this,"default")[0];return e(fe.a,x,[C&&Object(ce.a)(C,{on:{keydown:o},attrs:{tabIndex:d?void 0:0}}),e("template",{slot:"popup"},[v])])}},la=ca,ua=s.a.shape({value:s.a.oneOfType([s.a.string,s.a.number]),label:s.a.any,disabled:s.a.bool,children:s.a.array,key:s.a.oneOfType([s.a.string,s.a.number])}).loose,ha=s.a.shape({value:s.a.string.isRequired,label:s.a.string.isRequired,children:s.a.string}).loose,fa=s.a.oneOf(["click","hover"]),da=s.a.shape({filter:s.a.func,render:s.a.func,sort:s.a.func,matchInputWidth:s.a.bool,limit:s.a.oneOfType([Boolean,Number])}).loose;function pa(){}var ga={
/** 可选项数据源 */
options:s.a.arrayOf(ua).def([]),
/** 默认的选中项 */
defaultValue:s.a.array,
/** 指定选中项 */
value:s.a.array,
/** 选择完成后的回调 */
// onChange?: (value: string[], selectedOptions?: CascaderOptionType[]) => void;
/** 选择后展示的渲染函数 */
displayRender:s.a.func,transitionName:s.a.string.def("slide-up"),popupStyle:s.a.object.def((function(){return{}})),
/** 自定义浮层类名 */
popupClassName:s.a.string,
/** 浮层预设位置：`bottomLeft` `bottomRight` `topLeft` `topRight` */
popupPlacement:s.a.oneOf(["bottomLeft","bottomRight","topLeft","topRight"]).def("bottomLeft"),
/** 输入框占位文本*/
placeholder:s.a.string.def("Please select"),
/** 输入框大小，可选 `large` `default` `small` */
size:s.a.oneOf(["large","default","small"]),
/** 禁用*/
disabled:s.a.bool.def(!1),
/** 是否支持清除*/
allowClear:s.a.bool.def(!0),showSearch:s.a.oneOfType([Boolean,da]),notFoundContent:s.a.any,loadData:s.a.func,
/** 次级菜单的展开方式，可选 'click' 和 'hover' */
expandTrigger:fa,
/** 当此项为 true 时，点选每级菜单选项值都会发生变化 */
changeOnSelect:s.a.bool,
/** 浮层可见变化时回调 */
// onPopupVisibleChange?: (popupVisible: boolean) => void;
prefixCls:s.a.string,inputPrefixCls:s.a.string,getPopupContainer:s.a.func,popupVisible:s.a.bool,fieldNames:ha,autoFocus:s.a.bool,suffixIcon:s.a.any};
// We limit the filtered item count by default
function ma(e,t,n){return t.some((function(t){return t[n.label].indexOf(e)>-1}))}function va(e,t,n,r){function i(e){return e[r.label].indexOf(n)>-1}return e.findIndex(i)-t.findIndex(i)}function ya(e){var t=e.fieldNames,n=void 0===t?{}:t;return{children:n.children||"children",label:n.label||"label",value:n.value||"value"}}function Aa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=ya(t),i=[],a=r.children;return e.forEach((function(e){var r=n.concat(e);!t.changeOnSelect&&e[a]&&e[a].length||i.push(r),e[a]&&(i=i.concat(Aa(e[a],t,r)))})),i}var ba=function(e){return e.labels.join(" / ")},wa={inheritAttrs:!1,name:"ACascader",mixins:[d.a],props:ga,model:{prop:"value",event:"change"},provide:function(){return{savePopupRef:this.savePopupRef}},inject:{configProvider:{default:function(){return A.a}},localeData:{default:function(){return{}}}},data:function(){this.cachedOptions=[];var e=this.value,t=this.defaultValue,n=this.popupVisible,r=this.showSearch,i=this.options;return{sValue:e||t||[],inputValue:"",inputFocused:!1,sPopupVisible:n,flattenOptions:r?Aa(i,this.$props):void 0}},mounted:function(){var e=this;this.$nextTick((function(){!e.autoFocus||e.showSearch||e.disabled||e.$refs.picker.focus()}))},watch:{value:function(e){this.setState({sValue:e||[]})},popupVisible:function(e){this.setState({sPopupVisible:e})},options:function(e){this.showSearch&&this.setState({flattenOptions:Aa(e,this.$props)})}},methods:{savePopupRef:function(e){this.popupRef=e},highlightKeyword:function(e,t,n){var r=this.$createElement;return e.split(t).map((function(e,i){return 0===i?e:[r("span",{class:n+"-menu-item-keyword"},[t]),e]}))},defaultRenderFilteredOption:function(e){var t=this,n=e.inputValue,r=e.path,i=e.prefixCls,a=e.names;return r.map((function(e,r){var o=e[a.label],s=o.indexOf(n)>-1?t.highlightKeyword(o,n,i):o;return 0===r?s:[" / ",s]}))},handleChange:function(e,t){if(this.setState({inputValue:""}),t[0].__IS_FILTERED_OPTION){var n=e[0],r=t[0].path;this.setValue(n,r)}else this.setValue(e,t)},handlePopupVisibleChange:function(e){Object(N.s)(this,"popupVisible")||this.setState((function(t){return{sPopupVisible:e,inputFocused:e,inputValue:e?t.inputValue:""}})),this.$emit("popupVisibleChange",e)},handleInputFocus:function(e){this.$emit("focus",e)},handleInputBlur:function(e){this.setState({inputFocused:!1}),this.$emit("blur",e)},handleInputClick:function(e){var t=this.inputFocused,n=this.sPopupVisible;
// Prevent `Trigger` behaviour.
(t||n)&&(e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation())},handleKeyDown:function(e){e.keyCode!==Z.a.BACKSPACE&&e.keyCode!==Z.a.SPACE||e.stopPropagation()},handleInputChange:function(e){var t=e.target.value;this.setState({inputValue:t}),this.$emit("search",t)},setValue:function(e,t){Object(N.s)(this,"value")||this.setState({sValue:e}),this.$emit("change",e,t)},getLabel:function(){var e=this.options,t=this.$scopedSlots,n=ya(this.$props),r=this.displayRender||t.displayRender||ba,i=this.sValue,a=Array.isArray(i[0])?i[0]:i,o=ia()(e,(function(e,t){return e[n.value]===a[t]}),{childrenKeyName:n.children});return r({labels:o.map((function(e){return e[n.label]})),selectedOptions:o})},clearSelection:function(e){e.preventDefault(),e.stopPropagation(),this.inputValue?this.setState({inputValue:""}):(this.setValue([]),this.handlePopupVisibleChange(!1))},generateFilteredOptions:function(e,t){var n,r=this.$createElement,i=this.showSearch,a=this.notFoundContent,s=this.$scopedSlots,c=ya(this.$props),l=i.filter,u=void 0===l?ma:l,h=i.sort,f=void 0===h?va:h,d=i.limit,p=void 0===d?50:d,g=i.render||s.showSearchRender||this.defaultRenderFilteredOption,m=this.$data,v=m.flattenOptions,y=void 0===v?[]:v,A=m.inputValue,b=void 0;if(p>0){b=[];var x=0;
// Perf optimization to filter items only below the limit
y.some((function(e){return u(A,e,c)&&(b.push(e),x+=1),x>=p}))}else Object(w.a)("number"!=typeof p,"Cascader","'limit' of showSearch in Cascader should be positive number or false."),b=y.filter((function(e){return u(A,e,c)}));return b.sort((function(e,t){return f(e,t,A,c)})),b.length>0?b.map((function(t){var n;return n={__IS_FILTERED_OPTION:!0,path:t},o()(n,c.label,g({inputValue:A,path:t,prefixCls:e,names:c})),o()(n,c.value,t.map((function(e){return e[c.value]}))),o()(n,"disabled",t.some((function(e){return!!e.disabled}))),n})):[(n={},o()(n,c.label,a||t(r,"Cascader")),o()(n,c.value,"ANT_CASCADER_NOT_FOUND"),o()(n,"disabled",!0),n)]},focus:function(){this.showSearch?this.$refs.input.focus():this.$refs.picker.focus()},blur:function(){this.showSearch?this.$refs.input.blur():this.$refs.picker.blur()}},render:function(){var e,t,n,r=arguments[0],i=this.$slots,a=this.sPopupVisible,s=this.inputValue,c=this.configProvider,h=this.localeData,f=this.$data,d=f.sValue,p=f.inputFocused,g=Object(N.l)(this),m=Object(N.g)(this,"suffixIcon");m=Array.isArray(m)?m[0]:m;var v,y=c.getPopupContainer,A=g.prefixCls,b=g.inputPrefixCls,w=g.placeholder,x=void 0===w?h.placeholder:w,C=g.size,_=g.disabled,I=g.allowClear,E=g.showSearch,k=void 0!==E&&E,S=g.notFoundContent,B=X()(g,["prefixCls","inputPrefixCls","placeholder","size","disabled","allowClear","showSearch","notFoundContent"]),M=this.configProvider.getPrefixCls,T=this.configProvider.renderEmpty,O=M("cascader",A),D=M("input",b),P=l()((e={},o()(e,D+"-lg","large"===C),o()(e,D+"-sm","small"===C),e)),L=I&&!_&&d.length>0||s?r(We.a,{attrs:{type:"close-circle",theme:"filled"},class:O+"-picker-clear",on:{click:this.clearSelection},key:"clear-icon"}):null,R=l()((t={},o()(t,O+"-picker-arrow",!0),o()(t,O+"-picker-arrow-expand",a),t)),j=l()(Object(N.f)(this),O+"-picker",(n={},o()(n,O+"-picker-with-value",s),o()(n,O+"-picker-disabled",_),o()(n,O+"-picker-"+C,!!C),o()(n,O+"-picker-show-search",!!k),o()(n,O+"-picker-focused",p),n)),F=Object(u.a)(B,["options","popupPlacement","transitionName","displayRender","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","defaultValue","fieldNames"]),z=g.options,H=ya(this.$props);z&&z.length>0?s&&(z=this.generateFilteredOptions(O,T)):z=[(v={},o()(v,H.label,S||T(r,"Cascader")),o()(v,H.value,"ANT_CASCADER_NOT_FOUND"),o()(v,"disabled",!0),v)];
// Dropdown menu should keep previous status until it is fully closed.
a?this.cachedOptions=z:z=this.cachedOptions;var U={},G=1===(z||[]).length&&"ANT_CASCADER_NOT_FOUND"===z[0].value;G&&(U.height="auto"),!1!==k.matchInputWidth&&(s||G)&&this.$refs.input&&(U.width=this.$refs.input.$el.offsetWidth+"px");
// The default value of `matchInputWidth` is `true`
// showSearch时，focus、blur在input上触发，反之在ref='picker'上触发
var V={props:Q()({},F,{prefixCls:D,placeholder:d&&d.length>0?void 0:x,value:s,disabled:_,readOnly:!k,autoComplete:"off"}),class:O+"-input "+P,ref:"input",on:{focus:k?this.handleInputFocus:pa,click:k?this.handleInputClick:pa,blur:k?this.handleInputBlur:pa,keydown:this.handleKeyDown,change:k?this.handleInputChange:pa},attrs:Object(N.e)(this)},W=Object(N.c)(i.default),q=m&&(Object(N.w)(m)?Object(ce.a)(m,{class:o()({},O+"-picker-arrow",!0)}):r("span",{class:O+"-picker-arrow"},[m]))||r(We.a,{attrs:{type:"down"},class:R}),Y=W.length?W:r("span",{class:j,style:Object(N.q)(this),ref:"picker"},[k?r("span",{class:O+"-picker-label"},[this.getLabel()]):null,r(Qt,V),k?null:r("span",{class:O+"-picker-label"},[this.getLabel()]),L,q]),K=r(We.a,{attrs:{type:"right"}}),$=r("span",{class:O+"-menu-item-loading-icon"},[r(We.a,{attrs:{type:"redo",spin:!0}})]),J=g.getPopupContainer||y,Z={props:Q()({},g,{getPopupContainer:J,options:z,prefixCls:O,value:d,popupVisible:a,dropdownMenuColumnStyle:U,expandIcon:K,loadingIcon:$}),on:Q()({},Object(N.k)(this),{popupVisibleChange:this.handlePopupVisibleChange,change:this.handleChange})};return r(la,Z,[Y])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(wa.name,wa)}},xa=wa;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/checkbox/Checkbox.js
function Ca(){}
/* harmony default export */var _a={name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,model:{prop:"checked"},props:{prefixCls:s.a.string,defaultChecked:s.a.bool,checked:s.a.bool,disabled:s.a.bool,isGroup:s.a.bool,value:s.a.any,name:s.a.string,id:s.a.string,indeterminate:s.a.bool,type:s.a.string.def("checkbox"),autoFocus:s.a.bool},inject:{configProvider:{default:function(){return A.a}},checkboxGroupContext:{default:function(){}}},watch:{value:function(e,t){var n=this;this.$nextTick((function(){var r=n.checkboxGroupContext,i=void 0===r?{}:r;i.registerValue&&i.cancelValue&&(i.cancelValue(t),i.registerValue(e))}))}},mounted:function(){var e=this.value,t=this.checkboxGroupContext,n=void 0===t?{}:t;n.registerValue&&n.registerValue(e),Object(w.a)(Object(N.b)(this,"checked")||this.checkboxGroupContext||!Object(N.b)(this,"value"),"Checkbox","`value` is not validate prop, do you mean `checked`?")},beforeDestroy:function(){var e=this.value,t=this.checkboxGroupContext,n=void 0===t?{}:t;n.cancelValue&&n.cancelValue(e)},methods:{handleChange:function(e){var t=e.target.checked;this.$emit("input",t),this.$emit("change",e)},focus:function(){this.$refs.vcCheckbox.focus()},blur:function(){this.$refs.vcCheckbox.blur()}},render:function(){var e,t=this,n=arguments[0],r=this.checkboxGroupContext,a=this.$slots,s=Object(N.l)(this),c=a.default,u=Object(N.k)(this),h=u.mouseenter,f=void 0===h?Ca:h,d=u.mouseleave,p=void 0===d?Ca:d,g=(u.input,X()(u,["mouseenter","mouseleave","input"])),m=s.prefixCls,v=s.indeterminate,y=X()(s,["prefixCls","indeterminate"]),A=(0,this.configProvider.getPrefixCls)("checkbox",m),b={props:Q()({},y,{prefixCls:A}),on:g,attrs:Object(N.e)(this)};r?(b.on.change=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t.$emit.apply(t,["change"].concat(n)),r.toggleOption({label:c,value:s.value})},b.props.name=r.name,b.props.checked=-1!==r.sValue.indexOf(s.value),b.props.disabled=s.disabled||r.disabled,b.props.indeterminate=v):b.on.change=this.handleChange;var w=l()((e={},o()(e,A+"-wrapper",!0),o()(e,A+"-wrapper-checked",b.props.checked),o()(e,A+"-wrapper-disabled",b.props.disabled),e)),x=l()(o()({},A+"-indeterminate",v));return n("label",{class:w,on:{mouseenter:f,mouseleave:p}},[n(cr,i()([b,{class:x,ref:"vcCheckbox"}])),void 0!==c&&n("span",[c])])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/checkbox/Group.js
function Ia(){}
/* harmony default export */var Ea={name:"ACheckboxGroup",model:{prop:"value"},props:{name:s.a.string,prefixCls:s.a.string,defaultValue:s.a.array,value:s.a.array,options:s.a.array.def([]),disabled:s.a.bool},provide:function(){return{checkboxGroupContext:this}},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.value,t=this.defaultValue;return{sValue:e||t||[],registeredValues:[]}},watch:{value:function(e){this.sValue=e||[]}},methods:{getOptions:function(){var e=this.options,t=this.$scopedSlots;return e.map((function(e){if("string"==typeof e)return{label:e,value:e};var n=e.label;return void 0===n&&t.label&&(n=t.label(e)),Q()({},e,{label:n})}))},cancelValue:function(e){this.registeredValues=this.registeredValues.filter((function(t){return t!==e}))},registerValue:function(e){this.registeredValues=[].concat(g()(this.registeredValues),[e])},toggleOption:function(e){var t=this.registeredValues,n=this.sValue.indexOf(e.value),r=[].concat(g()(this.sValue));-1===n?r.push(e.value):r.splice(n,1),Object(N.b)(this,"value")||(this.sValue=r);var i=this.getOptions(),a=r.filter((function(e){return-1!==t.indexOf(e)})).sort((function(e,t){return i.findIndex((function(t){return t.value===e}))-i.findIndex((function(e){return e.value===t}))}));this.$emit("input",a),this.$emit("change",a)}},render:function(){var e=arguments[0],t=this.$props,n=this.$data,r=this.$slots,i=t.prefixCls,a=t.options,o=(0,this.configProvider.getPrefixCls)("checkbox",i),s=r.default,c=o+"-group";return a&&a.length>0&&(s=this.getOptions().map((function(r){return e(_a,{attrs:{prefixCls:o,disabled:"disabled"in r?r.disabled:t.disabled,indeterminate:r.indeterminate,value:r.value,checked:-1!==n.sValue.indexOf(r.value)},key:r.value.toString(),on:{change:r.onChange||Ia},class:c+"-item"},[r.label])}))),e("div",{class:c},[s])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/checkbox/index.js
_a.Group=Ea,
/* istanbul ignore next */
_a.install=function(e){e.use(b.a),e.component(_a.name,_a),e.component(Ea.name,Ea)};
/* harmony default export */var ka=_a;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/month/MonthPanel.js
function Sa(e){this.changeYear(e)}function Ba(){}var Ma={name:"MonthPanel",mixins:[d.a],props:{value:s.a.any,defaultValue:s.a.any,cellRender:s.a.any,contentRender:s.a.any,locale:s.a.any,rootPrefixCls:s.a.string,
// onChange: PropTypes.func,
disabledDate:s.a.func,
// onSelect: PropTypes.func,
renderFooter:s.a.func,changeYear:s.a.func.def(Ba)},data:function(){var e=this.value,t=this.defaultValue;
// bind methods
return this.nextYear=Sa.bind(this,1),this.previousYear=Sa.bind(this,-1),{sValue:e||t}},watch:{value:function(e){this.setState({sValue:e})}},methods:{setAndSelectValue:function(e){this.setValue(e),this.__emit("select",e)},setValue:function(e){Object(N.s)(this,"value")&&this.setState({sValue:e})}},render:function(){var e=arguments[0],t=this.sValue,n=this.cellRender,r=this.contentRender,i=this.locale,a=this.rootPrefixCls,o=this.disabledDate,s=this.renderFooter,c=t.year(),l=a+"-month-panel",u=s&&s("month");return e("div",{class:l},[e("div",[e("div",{class:l+"-header"},[e("a",{class:l+"-prev-year-btn",attrs:{role:"button",title:i.previousYear},on:{click:this.previousYear}}),e("a",{class:l+"-year-select",attrs:{role:"button",title:i.yearSelect},on:{click:Object(N.k)(this).yearPanelShow||Ba}},[e("span",{class:l+"-year-select-content"},[c]),e("span",{class:l+"-year-select-arrow"},["x"])]),e("a",{class:l+"-next-year-btn",attrs:{role:"button",title:i.nextYear},on:{click:this.nextYear}})]),e("div",{class:l+"-body"},[e($n,{attrs:{disabledDate:o,locale:i,value:t,cellRender:n,contentRender:r,prefixCls:l},on:{select:this.setAndSelectValue}})]),u&&e("div",{class:l+"-footer"},[u])])])}},Ta=Ma;
/* harmony default export */function Oa(){}function Da(e){var t=this.sValue.clone();t.add(e,"year"),this.setState({sValue:t})}function Pa(e){var t=this.sValue.clone();t.year(e),t.month(this.sValue.month()),this.sValue=t,this.__emit("select",t)}
/* harmony default export */var La={mixins:[d.a],props:{rootPrefixCls:s.a.string,value:s.a.object,defaultValue:s.a.object,locale:s.a.object,renderFooter:s.a.func},data:function(){return this.nextDecade=Da.bind(this,10),this.previousDecade=Da.bind(this,-10),{sValue:this.value||this.defaultValue}},watch:{value:function(e){this.sValue=e}},methods:{years:function(){for(var e=this.sValue.year(),t=10*parseInt(e/10,10)-1,n=[],r=0,i=0;i<4;i++){n[i]=[];for(var a=0;a<3;a++){var o=t+r,s=String(o);n[i][a]={content:s,year:o,title:s},r++}}return n}},render:function(){var e=this,t=arguments[0],n=this.sValue,r=this.locale,i=this.renderFooter,a=Object(N.k)(this).decadePanelShow||Oa,s=this.years(),c=n.year(),l=10*parseInt(c/10,10),u=l+9,h=this.rootPrefixCls+"-year-panel",f=s.map((function(n,r){var i=n.map((function(n){var r,i=(r={},o()(r,h+"-cell",1),o()(r,h+"-selected-cell",n.year===c),o()(r,h+"-last-decade-cell",n.year<l),o()(r,h+"-next-decade-cell",n.year>u),r),a=Oa;return a=n.year<l?e.previousDecade:n.year>u?e.nextDecade:Pa.bind(e,n.year),t("td",{attrs:{role:"gridcell",title:n.title},key:n.content,on:{click:a},class:i},[t("a",{class:h+"-year"},[n.content])])}));return t("tr",{key:r,attrs:{role:"row"}},[i])})),d=i&&i("year");return t("div",{class:h},[t("div",[t("div",{class:h+"-header"},[t("a",{class:h+"-prev-decade-btn",attrs:{role:"button",title:r.previousDecade},on:{click:this.previousDecade}}),t("a",{class:h+"-decade-select",attrs:{role:"button",title:r.decadeSelect},on:{click:a}},[t("span",{class:h+"-decade-select-content"},[l,"-",u]),t("span",{class:h+"-decade-select-arrow"},["x"])]),t("a",{class:h+"-next-decade-btn",attrs:{role:"button",title:r.nextDecade},on:{click:this.nextDecade}})]),t("div",{class:h+"-body"},[t("table",{class:h+"-table",attrs:{cellSpacing:"0",role:"grid"}},[t("tbody",{class:h+"-tbody"},[f])])]),d&&t("div",{class:h+"-footer"},[d])])])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/decade/DecadePanel.js
function Qa(){}function Ra(e){var t=this.sValue.clone();t.add(e,"years"),this.setState({sValue:t})}function ja(e,t){var n=this.sValue.clone();n.year(e),n.month(this.sValue.month()),this.__emit("select",n),t.preventDefault()}
/* harmony default export */var Na={mixins:[d.a],props:{locale:s.a.object,value:s.a.object,defaultValue:s.a.object,rootPrefixCls:s.a.string,renderFooter:s.a.func},data:function(){return this.nextCentury=Ra.bind(this,100),this.previousCentury=Ra.bind(this,-100),{sValue:this.value||this.defaultValue}},watch:{value:function(e){this.sValue=e}},render:function(){for(var e=this,t=arguments[0],n=this.sValue,r=this.$props,i=r.locale,a=r.renderFooter,s=n.year(),c=100*parseInt(s/100,10),l=c-10,u=c+99,h=[],f=0,d=this.rootPrefixCls+"-decade-panel",p=0;p<4;p++){h[p]=[];for(var g=0;g<3;g++){var m=l+10*f,v=l+10*f+9;h[p][g]={startDecade:m,endDecade:v},f++}}var y=a&&a("decade"),A=h.map((function(n,r){var i=n.map((function(n){var r,i=n.startDecade,a=n.endDecade,l=i<c,h=a>u,f=(r={},o()(r,d+"-cell",1),o()(r,d+"-selected-cell",i<=s&&s<=a),o()(r,d+"-last-century-cell",l),o()(r,d+"-next-century-cell",h),r),p=i+"-"+a,g=Qa;return g=l?e.previousCentury:h?e.nextCentury:ja.bind(e,i),t("td",{key:i,on:{click:g},attrs:{role:"gridcell"},class:f},[t("a",{class:d+"-decade"},[p])])}));return t("tr",{key:r,attrs:{role:"row"}},[i])}));return t("div",{class:d},[t("div",{class:d+"-header"},[t("a",{class:d+"-prev-century-btn",attrs:{role:"button",title:i.previousCentury},on:{click:this.previousCentury}}),t("div",{class:d+"-century"},[c,"-",u]),t("a",{class:d+"-next-century-btn",attrs:{role:"button",title:i.nextCentury},on:{click:this.nextCentury}})]),t("div",{class:d+"-body"},[t("table",{class:d+"-table",attrs:{cellSpacing:"0",role:"grid"}},[t("tbody",{class:d+"-tbody"},[A])])]),y&&t("div",{class:d+"-footer"},[y])])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/calendar/CalendarHeader.js
function Fa(){}function za(e){var t=this.value.clone();t.add(e,"months"),this.__emit("valueChange",t)}function Ha(e){var t=this.value.clone();t.add(e,"years"),this.__emit("valueChange",t)}function Ua(e,t){return e?t:null}var Ga={name:"CalendarHeader",mixins:[d.a],props:{prefixCls:s.a.string,value:s.a.object,
// onValueChange: PropTypes.func,
showTimePicker:s.a.bool,
// onPanelChange: PropTypes.func,
locale:s.a.object,enablePrev:s.a.any.def(1),enableNext:s.a.any.def(1),disabledMonth:s.a.func,mode:s.a.any,monthCellRender:s.a.func,monthCellContentRender:s.a.func,renderFooter:s.a.func},data:function(){return this.nextMonth=za.bind(this,1),this.previousMonth=za.bind(this,-1),this.nextYear=Ha.bind(this,1),this.previousYear=Ha.bind(this,-1),{yearPanelReferer:null}},methods:{onMonthSelect:function(e){this.__emit("panelChange",e,"date"),Object(N.k)(this).monthSelect?this.__emit("monthSelect",e):this.__emit("valueChange",e)},onYearSelect:function(e){var t=this.yearPanelReferer;this.setState({yearPanelReferer:null}),this.__emit("panelChange",e,t),this.__emit("valueChange",e)},onDecadeSelect:function(e){this.__emit("panelChange",e,"year"),this.__emit("valueChange",e)},changeYear:function(e){e>0?this.nextYear():this.previousYear()},monthYearElement:function(e){var t=this,n=this.$createElement,r=this.$props,i=r.prefixCls,a=r.locale,o=r.value,s=o.localeData(),c=a.monthBeforeYear,l=i+"-"+(c?"my-select":"ym-select"),u=e?" "+i+"-time-status":"",h=n("a",{class:i+"-year-select"+u,attrs:{role:"button",title:e?null:a.yearSelect},on:{click:e?Fa:function(){return t.showYearPanel("date")}}},[o.format(a.yearFormat)]),f=n("a",{class:i+"-month-select"+u,attrs:{role:"button",title:e?null:a.monthSelect},on:{click:e?Fa:this.showMonthPanel}},[a.monthFormat?o.format(a.monthFormat):s.monthsShort(o)]),d=void 0;e&&(d=n("a",{class:i+"-day-select"+u,attrs:{role:"button"}},[o.format(a.dayFormat)]));return n("span",{class:l},[c?[f,d,h]:[h,f,d]])},showMonthPanel:function(){
// null means that users' interaction doesn't change value
this.__emit("panelChange",null,"month")},showYearPanel:function(e){this.setState({yearPanelReferer:e}),this.__emit("panelChange",null,"year")},showDecadePanel:function(){this.__emit("panelChange",null,"decade")}},render:function(){var e=this,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.locale,a=n.mode,o=n.value,s=n.showTimePicker,c=n.enableNext,l=n.enablePrev,u=n.disabledMonth,h=n.renderFooter,f=null;return"month"===a&&(f=t(Ta,{attrs:{locale:i,value:o,rootPrefixCls:r,disabledDate:u,cellRender:n.monthCellRender,contentRender:n.monthCellContentRender,renderFooter:h,changeYear:this.changeYear},on:{select:this.onMonthSelect,yearPanelShow:function(){return e.showYearPanel("month")}}})),"year"===a&&(f=t(La,{attrs:{locale:i,value:o,rootPrefixCls:r,renderFooter:h},on:{select:this.onYearSelect,decadePanelShow:this.showDecadePanel}})),"decade"===a&&(f=t(Na,{attrs:{locale:i,value:o,rootPrefixCls:r,renderFooter:h},on:{select:this.onDecadeSelect}})),t("div",{class:r+"-header"},[t("div",{style:{position:"relative"}},[Ua(l&&!s,t("a",{class:r+"-prev-year-btn",attrs:{role:"button",title:i.previousYear},on:{click:this.previousYear}})),Ua(l&&!s,t("a",{class:r+"-prev-month-btn",attrs:{role:"button",title:i.previousMonth},on:{click:this.previousMonth}})),this.monthYearElement(s),Ua(c&&!s,t("a",{class:r+"-next-month-btn",on:{click:this.nextMonth},attrs:{title:i.nextMonth}})),Ua(c&&!s,t("a",{class:r+"-next-year-btn",on:{click:this.nextYear},attrs:{title:i.nextYear}}))]),f])}},Va=Ga;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/calendar/TodayButton.js
function Wa(){}
/* harmony default export */var qa={functional:!0,render:function(e,t){var n=arguments[0],r=t.props,i=t.listeners,a=void 0===i?{}:i,o=r.prefixCls,s=r.locale,c=r.value,l=r.timePicker,u=r.disabled,h=r.disabledDate,f=r.text,d=a.today,p=void 0===d?Wa:d,g=(!f&&l?s.now:f)||s.today,m=h&&!Nn(Dn(c),h)||u;return n("a",{class:o+"-today-btn "+(m?o+"-today-btn-disabled":""),attrs:{role:"button",title:Ln(c)},on:{click:m?Wa:p}},[g])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/calendar/OkButton.js
function Ya(){}
/* harmony default export */var Ka={functional:!0,render:function(e,t){var n=arguments[0],r=t.props,i=t.listeners,a=void 0===i?{}:i,o=r.prefixCls,s=r.locale,c=r.okDisabled,l=a.ok,u=o+"-ok-btn";return c&&(u+=" "+o+"-ok-btn-disabled"),n("a",{class:u,attrs:{role:"button"},on:{click:c?Ya:void 0===l?Ya:l}},[s.ok])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/calendar/TimePickerButton.js
function $a(){}
/* harmony default export */var Ja={functional:!0,render:function(e,t){var n,r=t.props,i=t.listeners,a=void 0===i?{}:i,s=r.prefixCls,c=r.locale,l=r.showTimePicker,u=r.timePickerDisabled,h=a.closeTimePicker,f=void 0===h?$a:h,d=a.openTimePicker,p=$a;return u||(p=l?f:void 0===d?$a:d),e("a",{class:(n={},o()(n,s+"-time-picker-btn",!0),o()(n,s+"-time-picker-btn-disabled",u),n),attrs:{role:"button"},on:{click:p}},[l?c.dateSelect:c.timeSelect])}},Xa={mixins:[d.a],props:{prefixCls:s.a.string,showDateInput:s.a.bool,disabledTime:s.a.any,timePicker:s.a.any,selectedValue:s.a.any,showOk:s.a.bool,
// onSelect: PropTypes.func,
value:s.a.object,renderFooter:s.a.func,defaultValue:s.a.object,locale:s.a.object,showToday:s.a.bool,disabledDate:s.a.func,showTimePicker:s.a.bool,okDisabled:s.a.bool,mode:s.a.string},methods:{onSelect:function(e){this.__emit("select",e)},getRootDOMNode:function(){return this.$el}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.value,r=t.prefixCls,a=t.showOk,s=t.timePicker,c=t.renderFooter,l=t.showToday,u=t.mode,h=null,f=c&&c(u);if(l||s||f){var d,p={props:Q()({},t,{value:n}),on:Object(N.k)(this)},g=null;l&&(g=e(qa,i()([{key:"todayButton"},p]))),delete p.props.value;var m=null;(!0===a||!1!==a&&s)&&(m=e(Ka,i()([{key:"okButton"},p])));var v=null;s&&(v=e(Ja,i()([{key:"timePickerButton"},p])));var y=void 0;(g||v||m||f)&&(y=e("span",{class:r+"-footer-btn"},[f,g,v,m])),h=e("div",{class:(d={},o()(d,r+"-footer",!0),o()(d,r+"-footer-show-ok",!!m),d)},[y])}return h}},Za=Xa,eo=void 0,to=void 0,no=void 0,ro={mixins:[d.a],props:{prefixCls:s.a.string,timePicker:s.a.object,value:s.a.object,disabledTime:s.a.any,format:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string),s.a.func]),locale:s.a.object,disabledDate:s.a.func,
// onChange: PropTypes.func,
// onClear: PropTypes.func,
placeholder:s.a.string,
// onSelect: PropTypes.func,
selectedValue:s.a.object,clearIcon:s.a.any,inputMode:s.a.string,inputReadOnly:s.a.bool},data:function(){return{str:Fn(this.selectedValue,this.format),invalid:!1,hasFocus:!1}},watch:{selectedValue:function(){this.setState()},format:function(){this.setState()}},updated:function(){var e=this;this.$nextTick((function(){!no||!e.$data.hasFocus||e.invalid||0===eo&&0===to||no.setSelectionRange(eo,to)}))},getInstance:function(){return no},methods:{getDerivedStateFromProps:function(e,t){var n={};no&&(eo=no.selectionStart,to=no.selectionEnd);
// when popup show, click body will call this, bug!
var r=e.selectedValue;return t.hasFocus||(n={str:Fn(r,this.format),invalid:!1}),n},onClear:function(){this.setState({str:""}),this.__emit("clear",null)},onInputChange:function(e){var t=e.target,n=t.value,r=t.composing,i=this.str,a=void 0===i?"":i;if(!e.isComposing&&!r&&a!==n){var o=this.$props,s=o.disabledDate,c=o.format,l=o.selectedValue;
// 没有内容，合法并直接退出
if(!n)return this.__emit("change",null),void this.setState({invalid:!1,str:n});
// 不合法直接退出
var u=Sn()(n,c,!0);if(u.isValid()){var h=this.value.clone();h.year(u.year()).month(u.month()).date(u.date()).hour(u.hour()).minute(u.minute()).second(u.second()),!h||s&&s(h)?this.setState({invalid:!0,str:n}):(l!==h||l&&h&&!l.isSame(h))&&(this.setState({invalid:!1,str:n}),this.__emit("change",h))}else this.setState({invalid:!0,str:n})}},onFocus:function(){this.setState({hasFocus:!0})},onBlur:function(){this.setState((function(e,t){return{hasFocus:!1,str:Fn(t.value,t.format)}}))},onKeyDown:function(e){var t=e.keyCode,n=this.$props,r=n.value,i=n.disabledDate;t===Z.a.ENTER&&((!i||!i(r))&&this.__emit("select",r.clone()),e.preventDefault())},getRootDOMNode:function(){return this.$el},focus:function(){no&&no.focus()},saveDateInput:function(e){no=e}},render:function(){var e=arguments[0],t=this.invalid,n=this.str,r=this.locale,a=this.prefixCls,o=this.placeholder,s=this.disabled,c=this.showClear,l=this.inputMode,u=this.inputReadOnly,h=Object(N.g)(this,"clearIcon"),f=t?a+"-input-invalid":"";return e("div",{class:a+"-input-wrap"},[e("div",{class:a+"-date-input-wrap"},[e("input",i()([{directives:[{name:"ant-ref",value:this.saveDateInput},{name:"ant-input"}]},{class:a+"-input "+f,domProps:{value:n},attrs:{disabled:s,placeholder:o,inputMode:l,readOnly:u},on:{input:this.onInputChange,keydown:this.onKeyDown,focus:this.onFocus,blur:this.onBlur}}]))]),c?e("a",{attrs:{role:"button",title:r.clear},on:{click:this.onClear}},[h||e("span",{class:a+"-clear-btn"})]):null])}},io=ro;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/calendar/CalendarFooter.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/util/toTime.js
function ao(e){return e.clone().startOf("month")}function oo(e){return e.clone().endOf("month")}function so(e,t,n){return e.clone().add(t,n)}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/Calendar.js
var co=function(e){return!(!Sn.a.isMoment(e)||!e.isValid())&&e},lo={name:"Calendar",props:{locale:s.a.object.def(ir.a),format:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string),s.a.func]),visible:s.a.bool.def(!0),prefixCls:s.a.string.def("rc-calendar"),
// prefixCls: PropTypes.string,
defaultValue:s.a.object,value:s.a.object,selectedValue:s.a.object,defaultSelectedValue:s.a.object,mode:s.a.oneOf(["time","date","month","year","decade"]),
// locale: PropTypes.object,
showDateInput:s.a.bool.def(!0),showWeekNumber:s.a.bool,showToday:s.a.bool.def(!0),showOk:s.a.bool,
// onSelect: PropTypes.func,
// onOk: PropTypes.func,
// onKeyDown: PropTypes.func,
timePicker:s.a.any,dateInputPlaceholder:s.a.any,
// onClear: PropTypes.func,
// onChange: PropTypes.func,
// onPanelChange: PropTypes.func,
disabledDate:s.a.func,disabledTime:s.a.any,dateRender:s.a.func,renderFooter:s.a.func.def((function(){return null})),renderSidebar:s.a.func.def((function(){return null})),clearIcon:s.a.any,focusablePanel:s.a.bool.def(!0),inputMode:s.a.string,inputReadOnly:s.a.bool},mixins:[d.a,tr,er],data:function(){var e=this.$props;return{sMode:this.mode||"date",sValue:co(e.value)||co(e.defaultValue)||Sn()(),sSelectedValue:e.selectedValue||e.defaultSelectedValue}},watch:{mode:function(e){this.setState({sMode:e})},value:function(e){this.setState({sValue:co(e)||co(this.defaultValue)||Xn(this.sValue)})},selectedValue:function(e){this.setState({sSelectedValue:e})}},mounted:function(){var e=this;this.$nextTick((function(){e.saveFocusElement(io.getInstance())}))},methods:{onPanelChange:function(e,t){var n=this.sValue;Object(N.s)(this,"mode")||this.setState({sMode:t}),this.__emit("panelChange",e||n,t)},onKeyDown:function(e){if("input"!==e.target.nodeName.toLowerCase()){var t=e.keyCode,n=e.ctrlKey||e.metaKey,r=this.disabledDate,i=this.sValue;
// mac
switch(t){case Z.a.DOWN:return this.goTime(1,"weeks"),e.preventDefault(),1;case Z.a.UP:return this.goTime(-1,"weeks"),e.preventDefault(),1;case Z.a.LEFT:return n?this.goTime(-1,"years"):this.goTime(-1,"days"),e.preventDefault(),1;case Z.a.RIGHT:return n?this.goTime(1,"years"):this.goTime(1,"days"),e.preventDefault(),1;case Z.a.HOME:return this.setValue(ao(i)),e.preventDefault(),1;case Z.a.END:return this.setValue(oo(i)),e.preventDefault(),1;case Z.a.PAGE_DOWN:return this.goTime(1,"month"),e.preventDefault(),1;case Z.a.PAGE_UP:return this.goTime(-1,"month"),e.preventDefault(),1;case Z.a.ENTER:return r&&r(i)||this.onSelect(i,{source:"keyboard"}),e.preventDefault(),1;default:return this.__emit("keydown",e),1}}},onClear:function(){this.onSelect(null),this.__emit("clear")},onOk:function(){var e=this.sSelectedValue;this.isAllowedDate(e)&&this.__emit("ok",e)},onDateInputChange:function(e){this.onSelect(e,{source:"dateInput"})},onDateInputSelect:function(e){this.onSelect(e,{source:"dateInputSelect"})},onDateTableSelect:function(e){var t=this.timePicker;if(!this.sSelectedValue&&t){var n=Object(N.l)(t).defaultValue;n&&Rn(n,e)}this.onSelect(e)},onToday:function(){var e=Dn(this.sValue);this.onSelect(e,{source:"todayButton"})},onBlur:function(e){var t=this;setTimeout((function(){var n=io.getInstance(),r=t.rootInstance;!r||r.contains(document.activeElement)||n&&n.contains(document.activeElement)||t.$emit("blur",e)}),0)},getRootDOMNode:function(){return this.$el},openTimePicker:function(){this.onPanelChange(null,"time")},closeTimePicker:function(){this.onPanelChange(null,"date")},goTime:function(e,t){this.setValue(so(this.sValue,e,t))}},render:function(){var e=arguments[0],t=this.locale,n=this.prefixCls,r=this.disabledDate,i=this.dateInputPlaceholder,a=this.timePicker,o=this.disabledTime,s=this.showDateInput,c=this.sValue,l=this.sSelectedValue,u=this.sMode,h=this.renderFooter,f=this.inputMode,d=this.inputReadOnly,p=this.monthCellRender,g=this.monthCellContentRender,m=this.$props,v=Object(N.g)(this,"clearIcon"),y="time"===u,A=y&&o&&a?jn(l,o):null,b=null;if(a&&y){var w=Object(N.l)(a),x={props:Q()({showHour:!0,showSecond:!0,showMinute:!0},w,A,{value:l,disabledTime:o}),on:{change:this.onDateInputChange}};void 0!==w.defaultValue&&(x.props.defaultOpenValue=w.defaultValue),b=Object(ce.a)(a,x)}var C=s?e(io,{attrs:{format:this.getFormat(),value:c,locale:t,placeholder:i,showClear:!0,disabledTime:o,disabledDate:r,prefixCls:n,selectedValue:l,clearIcon:v,inputMode:f,inputReadOnly:d},key:"date-input",on:{clear:this.onClear,change:this.onDateInputChange,select:this.onDateInputSelect}}):null,_=[];return m.renderSidebar&&_.push(m.renderSidebar()),_.push(e("div",{class:n+"-panel",key:"panel"},[C,e("div",{attrs:{tabIndex:m.focusablePanel?0:void 0},class:n+"-date-panel"},[e(Va,{attrs:{locale:t,mode:u,value:c,renderFooter:h,showTimePicker:y,prefixCls:n,monthCellRender:p,monthCellContentRender:g},on:{valueChange:this.setValue,panelChange:this.onPanelChange}}),a&&y?e("div",{class:n+"-time-picker"},[e("div",{class:n+"-time-picker-panel"},[b])]):null,e("div",{class:n+"-body"},[e(qn,{attrs:{locale:t,value:c,selectedValue:l,prefixCls:n,dateRender:m.dateRender,disabledDate:r,showWeekNumber:m.showWeekNumber},on:{select:this.onDateTableSelect}})]),e(Za,{attrs:{showOk:m.showOk,mode:u,renderFooter:m.renderFooter,locale:t,prefixCls:n,showToday:m.showToday,disabledTime:o,showTimePicker:y,showDateInput:m.showDateInput,timePicker:a,selectedValue:l,timePickerDisabled:!l,value:c,disabledDate:r,okDisabled:!(!1===m.showOk||l&&this.isAllowedDate(l))},on:{ok:this.onOk,select:this.onSelect,today:this.onToday,openTimePicker:this.openTimePicker,closeTimePicker:this.closeTimePicker}})])])),this.renderRoot({children:_,class:m.showWeekNumber?n+"-week-number":""})}},uo=lo;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/index.js
// based on rc-calendar 9.15.10
oe.default.use(he.a,{name:"ant-ref"});
/* harmony default export */var ho=uo,fo={name:"MonthCalendar",props:{locale:s.a.object.def(ir.a),format:s.a.string,visible:s.a.bool.def(!0),prefixCls:s.a.string.def("rc-calendar"),monthCellRender:s.a.func,value:s.a.object,defaultValue:s.a.object,selectedValue:s.a.object,defaultSelectedValue:s.a.object,disabledDate:s.a.func,monthCellContentRender:s.a.func,renderFooter:s.a.func.def((function(){return null})),renderSidebar:s.a.func.def((function(){return null}))},mixins:[d.a,tr,er],data:function(){var e=this.$props;return{mode:"month",sValue:e.value||e.defaultValue||Sn()(),sSelectedValue:e.selectedValue||e.defaultSelectedValue}},methods:{onKeyDown:function(e){var t=e.keyCode,n=e.ctrlKey||e.metaKey,r=this.sValue,i=this.disabledDate,a=r;switch(t){case Z.a.DOWN:(a=r.clone()).add(3,"months");break;case Z.a.UP:(a=r.clone()).add(-3,"months");break;case Z.a.LEFT:a=r.clone(),n?a.add(-1,"years"):a.add(-1,"months");break;case Z.a.RIGHT:a=r.clone(),n?a.add(1,"years"):a.add(1,"months");break;case Z.a.ENTER:return i&&i(r)||this.onSelect(r),e.preventDefault(),1;default:return}if(a!==r)return this.setValue(a),e.preventDefault(),1},handlePanelChange:function(e,t){"date"!==t&&this.setState({mode:t})}},render:function(){var e=arguments[0],t=this.mode,n=this.sValue,r=this.$props,i=this.$scopedSlots,a=r.prefixCls,o=r.locale,s=r.disabledDate,c=this.monthCellRender||i.monthCellRender,l=this.monthCellContentRender||i.monthCellContentRender,u=this.renderFooter||i.renderFooter,h=e("div",{class:a+"-month-calendar-content"},[e("div",{class:a+"-month-header-wrap"},[e(Va,{attrs:{prefixCls:a,mode:t,value:n,locale:o,disabledMonth:s,monthCellRender:c,monthCellContentRender:l},on:{monthSelect:this.onSelect,valueChange:this.setValue,panelChange:this.handlePanelChange}})]),e(Za,{attrs:{prefixCls:a,renderFooter:u}})]);return this.renderRoot({class:r.prefixCls+"-month-calendar",children:h})}},po=fo,go=n("3eea"),mo=n.n(go);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/MonthCalendar.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/createChainedFunction.js
/**
 * Safe chained function
 *
 * Will only create a new function if needed,
 * otherwise will pass back existing functions or null.
 *
 * @returns {function|null}
 */
function vo(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/picker/placements.js
var yo={adjustX:1,adjustY:1},Ao=[0,0],bo={bottomLeft:{points:["tl","tl"],overflow:yo,offset:[0,-3],targetOffset:Ao},bottomRight:{points:["tr","tr"],overflow:yo,offset:[0,-3],targetOffset:Ao},topRight:{points:["br","br"],overflow:yo,offset:[0,3],targetOffset:Ao},topLeft:{points:["bl","bl"],overflow:yo,offset:[0,3],targetOffset:Ao}},wo={validator:function(e){return Array.isArray(e)?0===e.length||-1===e.findIndex((function(e){return!wr()(e)&&!Sn.a.isMoment(e)})):wr()(e)||Sn.a.isMoment(e)}},xo={name:"Picker",props:{animation:s.a.oneOfType([s.a.func,s.a.string]),disabled:s.a.bool,transitionName:s.a.string,format:s.a.oneOfType([s.a.string,s.a.array,s.a.func]),
// onChange: PropTypes.func,
// onOpenChange: PropTypes.func,
children:s.a.func,getCalendarContainer:s.a.func,calendar:s.a.any,open:s.a.bool,defaultOpen:s.a.bool.def(!1),prefixCls:s.a.string.def("rc-calendar-picker"),placement:s.a.any.def("bottomLeft"),value:wo,defaultValue:wo,align:s.a.object.def((function(){return{}})),dropdownClassName:s.a.string,dateRender:s.a.func},mixins:[d.a],data:function(){var e=this.$props;return{sOpen:Object(N.s)(this,"open")?e.open:e.defaultOpen,sValue:e.value||e.defaultValue}},watch:{value:function(e){this.setState({sValue:e})},open:function(e){this.setState({sOpen:e})}},mounted:function(){this.preSOpen=this.sOpen},updated:function(){!this.preSOpen&&this.sOpen&&(
// setTimeout is for making sure saveCalendarRef happen before focusCalendar
this.focusTimeout=setTimeout(this.focusCalendar,0)),this.preSOpen=this.sOpen},beforeDestroy:function(){clearTimeout(this.focusTimeout)},methods:{onCalendarKeyDown:function(e){e.keyCode===Z.a.ESC&&(e.stopPropagation(),this.closeCalendar(this.focus))},onCalendarSelect:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$props;Object(N.s)(this,"value")||this.setState({sValue:e});var r=Object(N.l)(n.calendar);("keyboard"===t.source||"dateInputSelect"===t.source||!r.timePicker&&"dateInput"!==t.source||"todayButton"===t.source)&&this.closeCalendar(this.focus),this.__emit("change",e)},onKeyDown:function(e){this.sOpen||e.keyCode!==Z.a.DOWN&&e.keyCode!==Z.a.ENTER||(this.openCalendar(),e.preventDefault())},onCalendarOk:function(){this.closeCalendar(this.focus)},onCalendarClear:function(){this.closeCalendar(this.focus)},onCalendarBlur:function(){this.setOpen(!1)},onVisibleChange:function(e){this.setOpen(e)},getCalendarElement:function(){var e=this.$props,t=Object(N.l)(e.calendar),n=Object(N.i)(e.calendar),r=this.sValue,i={ref:"calendarInstance",props:{defaultValue:r||t.defaultValue,selectedValue:r},on:{keydown:this.onCalendarKeyDown,ok:vo(n.ok,this.onCalendarOk),select:vo(n.select,this.onCalendarSelect),clear:vo(n.clear,this.onCalendarClear),blur:vo(n.blur,this.onCalendarBlur)}};return Object(ce.a)(e.calendar,i)},setOpen:function(e,t){this.sOpen!==e&&(Object(N.s)(this,"open")||this.setState({sOpen:e},t),this.__emit("openChange",e))},openCalendar:function(e){this.setOpen(!0,e)},closeCalendar:function(e){this.setOpen(!1,e)},focus:function(){this.sOpen||this.$el.focus()},focusCalendar:function(){this.sOpen&&this.calendarInstance&&this.calendarInstance.componentInstance&&this.calendarInstance.componentInstance.focus()}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=Object(N.q)(this),r=t.prefixCls,i=t.placement,a=t.getCalendarContainer,o=t.align,s=t.animation,c=t.disabled,l=t.dropdownClassName,u=t.transitionName,h=this.sValue,f=this.sOpen,d=this.$scopedSlots.default,p={value:h,open:f};return!this.sOpen&&this.calendarInstance||(this.calendarInstance=this.getCalendarElement()),e(fe.a,{attrs:{popupAlign:o,builtinPlacements:bo,popupPlacement:i,action:c&&!f?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:a,popupStyle:n,popupAnimation:s,popupTransitionName:u,popupVisible:f,prefixCls:r,popupClassName:l},on:{popupVisibleChange:this.onVisibleChange}},[e("template",{slot:"popup"},[this.calendarInstance]),Object(ce.a)(d(p,t),{on:{keydown:this.onKeyDown}})])}},Co=xo;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/date-picker/utils.js
function _o(e,t){if(!e)return"";if(Array.isArray(t)&&(t=t[0]),"function"==typeof t){var n=t(e);if("string"==typeof n)return n;throw new Error("The function of format does not return a string")}return e.format(t)}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/date-picker/createPicker.js
// export const PickerProps = {
//   value?: moment.Moment;
//   prefixCls: string;
// }
function Io(){}function Eo(e,t){return{props:Object(N.t)(t,{allowClear:!0,showToday:!0}),mixins:[d.a],model:{prop:"value",event:"change"},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.value||this.defaultValue;if(e&&!Object(yr.a)(kn).isMoment(e))throw new Error("The value/defaultValue of DatePicker or MonthPicker must be a moment object");return{sValue:e,showDate:e,_open:!!this.open}},watch:{open:function(e){var t=Object(N.l)(this),n={};n._open=e,"value"in t&&!e&&t.value!==this.showDate&&(n.showDate=t.value),this.setState(n)},value:function(e){var t={};t.sValue=e,e!==this.sValue&&(t.showDate=e),this.setState(t)},_open:function(e,t){var n=this;this.$nextTick((function(){Object(N.s)(n,"open")||!t||e||n.focus()}))}},methods:{clearSelection:function(e){e.preventDefault(),e.stopPropagation(),this.handleChange(null)},handleChange:function(e){Object(N.s)(this,"value")||this.setState({sValue:e,showDate:e}),this.$emit("change",e,_o(e,this.format))},handleCalendarChange:function(e){this.setState({showDate:e})},handleOpenChange:function(e){"open"in Object(N.l)(this)||this.setState({_open:e}),this.$emit("openChange",e)},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},renderFooter:function(){var e=this.$createElement,t=this.$scopedSlots,n=this.$slots,r=this._prefixCls,i=this.renderExtraFooter||t.renderExtraFooter||n.renderExtraFooter;return i?e("div",{class:r+"-footer-extra"},["function"==typeof i?i.apply(void 0,arguments):i]):null},onMouseEnter:function(e){this.$emit("mouseenter",e)},onMouseLeave:function(e){this.$emit("mouseleave",e)}},render:function(){var t,n=this,r=arguments[0],i=this.$scopedSlots,a=this.$data,s=a.sValue,c=a.showDate,u=a._open,h=Object(N.g)(this,"suffixIcon");h=Array.isArray(h)?h[0]:h;var f=Object(N.k)(this),d=f.panelChange,p=void 0===d?Io:d,g=f.focus,m=void 0===g?Io:g,v=f.blur,y=void 0===v?Io:v,A=f.ok,b=void 0===A?Io:A,w=Object(N.l)(this),x=w.prefixCls,C=w.locale,_=w.localeCode,I=w.inputReadOnly,E=(0,this.configProvider.getPrefixCls)("calendar",x);this._prefixCls=E;var k=w.dateRender||i.dateRender,S=w.monthCellContentRender||i.monthCellContentRender,B="placeholder"in w?w.placeholder:C.lang.placeholder,M=w.showTime?w.disabledTime:null,T=l()((t={},o()(t,E+"-time",w.showTime),o()(t,E+"-month",po===e),t));s&&_&&s.locale(_);var O={props:{},on:{}},D={props:{},on:{}},P={};w.showTime?(
// fix https://github.com/ant-design/ant-design/issues/1902
D.on.select=this.handleChange,P.minWidth="195px"):O.on.change=this.handleChange,"mode"in w&&(D.props.mode=w.mode);var L=Object(N.x)(D,{props:{disabledDate:w.disabledDate,disabledTime:M,locale:C.lang,timePicker:w.timePicker,defaultValue:w.defaultPickerValue||Object(yr.a)(kn)(),dateInputPlaceholder:B,prefixCls:E,dateRender:k,format:w.format,showToday:w.showToday,monthCellContentRender:S,renderFooter:this.renderFooter,value:c,inputReadOnly:I},on:{ok:b,panelChange:p,change:this.handleCalendarChange},class:T,scopedSlots:i}),R=r(e,L),j=!w.disabled&&w.allowClear&&s?r(We.a,{attrs:{type:"close-circle",theme:"filled"},class:E+"-picker-clear",on:{click:this.clearSelection}}):null,F=h&&(Object(N.w)(h)?Object(ce.a)(h,{class:E+"-picker-icon"}):r("span",{class:E+"-picker-icon"},[h]))||r(We.a,{attrs:{type:"calendar"},class:E+"-picker-icon"}),z={props:Q()({},w,O.props,{calendar:R,value:s,prefixCls:E+"-picker-container"}),on:Q()({},mo()(f,"change"),O.on,{open:u,onOpenChange:this.handleOpenChange}),style:w.popupStyle,scopedSlots:Q()({default:function(e){var t=e.value;return r("div",[r("input",{ref:"input",attrs:{disabled:w.disabled,readOnly:!0,placeholder:B,tabIndex:w.tabIndex,name:n.name},on:{focus:m,blur:y},domProps:{value:_o(t,n.format)},class:w.pickerInputClass}),j,F])}},i)};return r("span",{class:w.pickerClass,style:P,on:{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave}},[r(Co,z)])}}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-time-picker/Header.js
var ko={mixins:[d.a],props:{format:s.a.string,prefixCls:s.a.string,disabledDate:s.a.func,placeholder:s.a.string,clearText:s.a.string,value:s.a.object,inputReadOnly:s.a.bool.def(!1),hourOptions:s.a.array,minuteOptions:s.a.array,secondOptions:s.a.array,disabledHours:s.a.func,disabledMinutes:s.a.func,disabledSeconds:s.a.func,
// onChange: PropTypes.func,
// onClear: PropTypes.func,
// onEsc: PropTypes.func,
allowEmpty:s.a.bool,defaultOpenValue:s.a.object,currentSelectPanel:s.a.string,focusOnOpen:s.a.bool,
// onKeyDown: PropTypes.func,
clearIcon:s.a.any},data:function(){var e=this.value,t=this.format;return{str:e&&e.format(t)||"",invalid:!1}},mounted:function(){var e=this;this.focusOnOpen&&(window.requestAnimationFrame||window.setTimeout)((function(){e.$refs.input.focus(),e.$refs.input.select()}))},watch:{value:function(e){var t=this;this.$nextTick((function(){t.setState({str:e&&e.format(t.format)||"",invalid:!1})}))}},methods:{onInputChange:function(e){var t=e.target,n=t.value,r=t.composing,i=this.str,a=void 0===i?"":i;if(!e.isComposing&&!r&&a!==n){this.setState({str:n});var o=this.format,s=this.hourOptions,c=this.minuteOptions,l=this.secondOptions,u=this.disabledHours,h=this.disabledMinutes,f=this.disabledSeconds,d=this.value;if(n){var p=this.getProtoValue().clone(),g=Sn()(n,o,!0);if(!g.isValid())return void this.setState({invalid:!0});
// if time value not allowed, response warning.
if(p.hour(g.hour()).minute(g.minute()).second(g.second()),s.indexOf(p.hour())<0||c.indexOf(p.minute())<0||l.indexOf(p.second())<0)return void this.setState({invalid:!0});
// if time value is disabled, response warning.
var m=u(),v=h(p.hour()),y=f(p.hour(),p.minute());if(m&&m.indexOf(p.hour())>=0||v&&v.indexOf(p.minute())>=0||y&&y.indexOf(p.second())>=0)return void this.setState({invalid:!0});if(d){if(d.hour()!==p.hour()||d.minute()!==p.minute()||d.second()!==p.second()){
// keep other fields for rc-calendar
var A=d.clone();A.hour(p.hour()),A.minute(p.minute()),A.second(p.second()),this.__emit("change",A)}}else d!==p&&this.__emit("change",p)}else this.__emit("change",null);this.setState({invalid:!1})}},onKeyDown:function(e){27===e.keyCode&&this.__emit("esc"),this.__emit("keydown",e)},getProtoValue:function(){return this.value||this.defaultOpenValue},getInput:function(){var e=this.$createElement,t=this.prefixCls,n=this.placeholder,r=this.inputReadOnly,a=this.invalid,o=this.str,s=a?t+"-input-invalid":"";return e("input",i()([{class:t+"-input "+s,ref:"input",on:{keydown:this.onKeyDown,input:this.onInputChange},domProps:{value:o},attrs:{placeholder:n,readOnly:!!r}},{directives:[{name:"ant-input"}]}]))}},render:function(){return(0,arguments[0])("div",{class:this.prefixCls+"-input-wrap"},[this.getInput()])}},So=ko;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-time-picker/Select.js
function Bo(){}var Mo=function e(t,n,r){
// jump to target if duration zero
if(r<=0)v()((function(){t.scrollTop=n}));else{var i=(n-t.scrollTop)/r*10;v()((function(){t.scrollTop+=i,t.scrollTop!==n&&e(t,n,r-10)}))}},To={mixins:[d.a],props:{prefixCls:s.a.string,options:s.a.array,selectedIndex:s.a.number,type:s.a.string},data:function(){return{active:!1}},mounted:function(){var e=this;this.$nextTick((function(){
// jump to selected option
e.scrollToSelected(0)}))},watch:{selectedIndex:function(){var e=this;this.$nextTick((function(){
// smooth scroll to selected option
e.scrollToSelected(120)}))}},methods:{onSelect:function(e){var t=this.type;this.__emit("select",t,e)},onEsc:function(e){this.__emit("esc",e)},getOptions:function(){var e=this,t=this.$createElement,n=this.options,r=this.selectedIndex,i=this.prefixCls;return n.map((function(n,a){var s,c=l()((s={},o()(s,i+"-select-option-selected",r===a),o()(s,i+"-select-option-disabled",n.disabled),s)),u=n.disabled?Bo:function(){e.onSelect(n.value)};return t("li",{attrs:{role:"button",disabled:n.disabled,tabIndex:"0"},on:{click:u,keydown:function(t){13===t.keyCode?u():27===t.keyCode&&e.onEsc()}},class:c,key:a},[n.value])}))},handleMouseEnter:function(e){this.setState({active:!0}),this.__emit("mouseenter",e)},handleMouseLeave:function(){this.setState({active:!1})},scrollToSelected:function(e){
// move to selected item
var t=this.$el,n=this.$refs.list;if(n){var r=this.selectedIndex;r<0&&(r=0);var i=n.children[r].offsetTop;Mo(t,i,e)}}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.options,i=this.active;return 0===r.length?null:t("div",{class:(e={},o()(e,n+"-select",1),o()(e,n+"-select-active",i),e),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave}},[t("ul",{ref:"list"},[this.getOptions()])])}},Oo=To,Do=function(e,t){var n=""+e;e<10&&(n="0"+e);var r=!1;return t&&t.indexOf(e)>=0&&(r=!0),{value:n,disabled:r}},Po={mixins:[d.a],name:"Combobox",props:{format:s.a.string,defaultOpenValue:s.a.object,prefixCls:s.a.string,value:s.a.object,
// onChange: PropTypes.func,
// onAmPmChange: PropTypes.func,
showHour:s.a.bool,showMinute:s.a.bool,showSecond:s.a.bool,hourOptions:s.a.array,minuteOptions:s.a.array,secondOptions:s.a.array,disabledHours:s.a.func,disabledMinutes:s.a.func,disabledSeconds:s.a.func,
// onCurrentSelectPanelChange: PropTypes.func,
use12Hours:s.a.bool,isAM:s.a.bool},methods:{onItemChange:function(e,t){var n=this.defaultOpenValue,r=this.use12Hours,i=this.value,a=this.isAM,o=(i||n).clone();if("hour"===e)r?a?o.hour(+t%12):o.hour(+t%12+12):o.hour(+t);else if("minute"===e)o.minute(+t);else if("ampm"===e){var s=t.toUpperCase();r&&("PM"===s&&o.hour()<12&&o.hour(o.hour()%12+12),"AM"===s&&o.hour()>=12&&o.hour(o.hour()-12)),this.__emit("amPmChange",s)}else o.second(+t);this.__emit("change",o)},onEnterSelectPanel:function(e){this.__emit("currentSelectPanelChange",e)},onEsc:function(e){this.__emit("esc",e)},getHourSelect:function(e){var t=this,n=this.$createElement,r=this.prefixCls,i=this.hourOptions,a=this.disabledHours,o=this.showHour,s=this.use12Hours;if(!o)return null;var c=a(),l=void 0,u=void 0;return s?(l=[12].concat(i.filter((function(e){return e<12&&e>0}))),u=e%12||12):(l=i,u=e),n(Oo,{attrs:{prefixCls:r,options:l.map((function(e){return Do(e,c)})),selectedIndex:l.indexOf(u),type:"hour"},on:{select:this.onItemChange,mouseenter:function(){return t.onEnterSelectPanel("hour")},esc:this.onEsc}})},getMinuteSelect:function(e){var t=this,n=this.$createElement,r=this.prefixCls,i=this.minuteOptions,a=this.disabledMinutes,o=this.defaultOpenValue,s=this.showMinute,c=this.value;if(!s)return null;var l=a((c||o).hour());return n(Oo,{attrs:{prefixCls:r,options:i.map((function(e){return Do(e,l)})),selectedIndex:i.indexOf(e),type:"minute"},on:{select:this.onItemChange,mouseenter:function(){return t.onEnterSelectPanel("minute")},esc:this.onEsc}})},getSecondSelect:function(e){var t=this,n=this.$createElement,r=this.prefixCls,i=this.secondOptions,a=this.disabledSeconds,o=this.showSecond,s=this.defaultOpenValue,c=this.value;if(!o)return null;var l=c||s,u=a(l.hour(),l.minute());return n(Oo,{attrs:{prefixCls:r,options:i.map((function(e){return Do(e,u)})),selectedIndex:i.indexOf(e),type:"second"},on:{select:this.onItemChange,mouseenter:function(){return t.onEnterSelectPanel("second")},esc:this.onEsc}})},getAMPMSelect:function(){var e=this,t=this.$createElement,n=this.prefixCls,r=this.use12Hours,i=this.format,a=this.isAM;if(!r)return null;var o=["am","pm"].map((function(e){return i.match(/\sA/)?e.toUpperCase():e})).map((function(e){return{value:e}}));return t(Oo,{attrs:{prefixCls:n,options:o,selectedIndex:a?0:1,type:"ampm"},on:{select:this.onItemChange,mouseenter:function(){return e.onEnterSelectPanel("ampm")},esc:this.onEsc}})}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.defaultOpenValue,r=this.value||n;return e("div",{class:t+"-combobox"},[this.getHourSelect(r.hour()),this.getMinuteSelect(r.minute()),this.getSecondSelect(r.second()),this.getAMPMSelect(r.hour())])}},Lo=Po;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-time-picker/Panel.js
function Qo(){}function Ro(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=[],a=0;a<e;a+=r)(!t||t.indexOf(a)<0||!n)&&i.push(a);return i}var jo={mixins:[d.a],props:{clearText:s.a.string,prefixCls:s.a.string.def("rc-time-picker-panel"),defaultOpenValue:{type:Object,default:function(){return Sn()()}},value:s.a.any,defaultValue:s.a.any,placeholder:s.a.string,format:s.a.string,inputReadOnly:s.a.bool.def(!1),disabledHours:s.a.func.def(Qo),disabledMinutes:s.a.func.def(Qo),disabledSeconds:s.a.func.def(Qo),hideDisabledOptions:s.a.bool,
// onChange: PropTypes.func,
// onEsc: PropTypes.func,
allowEmpty:s.a.bool,showHour:s.a.bool,showMinute:s.a.bool,showSecond:s.a.bool,
// onClear: PropTypes.func,
use12Hours:s.a.bool.def(!1),hourStep:s.a.number,minuteStep:s.a.number,secondStep:s.a.number,addon:s.a.func.def(Qo),focusOnOpen:s.a.bool,
// onKeydown: PropTypes.func,
clearIcon:s.a.any},data:function(){return{sValue:this.value,selectionRange:[],currentSelectPanel:""}},watch:{value:function(e){this.setState({sValue:e})}},methods:{onChange:function(e){this.setState({sValue:e}),this.__emit("change",e)},onAmPmChange:function(e){this.__emit("amPmChange",e)},onCurrentSelectPanelChange:function(e){this.setState({currentSelectPanel:e})},
// https://github.com/ant-design/ant-design/issues/5829
close:function(){this.__emit("esc")},onEsc:function(e){this.__emit("esc",e)},disabledHours2:function(){var e=this.use12Hours,t=(0,this.disabledHours)();return e&&Array.isArray(t)&&(t=this.isAM()?t.filter((function(e){return e<12})).map((function(e){return 0===e?12:e})):t.map((function(e){return 12===e?12:e-12}))),t},isAM:function(){var e=this.sValue||this.defaultOpenValue;return e.hour()>=0&&e.hour()<12}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.placeholder,r=this.disabledMinutes,i=this.addon,a=this.disabledSeconds,o=this.hideDisabledOptions,s=this.showHour,c=this.showMinute,l=this.showSecond,u=this.format,h=this.defaultOpenValue,f=this.clearText,d=this.use12Hours,p=this.focusOnOpen,g=this.hourStep,m=this.minuteStep,v=this.secondStep,y=this.inputReadOnly,A=this.sValue,b=this.currentSelectPanel,w=Object(N.g)(this,"clearIcon"),x=Object(N.k)(this),C=x.esc,_=void 0===C?Qo:C,I=x.keydown,E=void 0===I?Qo:I,k=this.disabledHours2(),S=r(A?A.hour():null),B=a(A?A.hour():null,A?A.minute():null),M=Ro(24,k,o,g),T=Ro(60,S,o,m),O=Ro(60,B,o,v),D=function(e,t,n,r){var i=t.slice().sort((function(t,n){return Math.abs(e.hour()-t)-Math.abs(e.hour()-n)}))[0],a=n.slice().sort((function(t,n){return Math.abs(e.minute()-t)-Math.abs(e.minute()-n)}))[0],o=r.slice().sort((function(t,n){return Math.abs(e.second()-t)-Math.abs(e.second()-n)}))[0];return Sn()(i+":"+a+":"+o,"HH:mm:ss")}(h,M,T,O);return e("div",{class:t+"-inner"},[e(So,{attrs:{clearText:f,prefixCls:t,defaultOpenValue:D,value:A,currentSelectPanel:b,format:u,placeholder:n,hourOptions:M,minuteOptions:T,secondOptions:O,disabledHours:this.disabledHours2,disabledMinutes:r,disabledSeconds:a,focusOnOpen:p,inputReadOnly:y,clearIcon:w},on:{esc:_,change:this.onChange,keydown:E}}),e(Lo,{attrs:{prefixCls:t,value:A,defaultOpenValue:D,format:u,showHour:s,showMinute:c,showSecond:l,hourOptions:M,minuteOptions:T,secondOptions:O,disabledHours:this.disabledHours2,disabledMinutes:r,disabledSeconds:a,use12Hours:d,isAM:this.isAM()},on:{change:this.onChange,amPmChange:this.onAmPmChange,currentSelectPanelChange:this.onCurrentSelectPanelChange,esc:this.onEsc}}),i(this)])}},No=jo,Fo={adjustX:1,adjustY:1},zo=[0,0],Ho={bottomLeft:{points:["tl","tl"],overflow:Fo,offset:[0,-3],targetOffset:zo},bottomRight:{points:["tr","tr"],overflow:Fo,offset:[0,-3],targetOffset:zo},topRight:{points:["br","br"],overflow:Fo,offset:[0,3],targetOffset:zo},topLeft:{points:["bl","bl"],overflow:Fo,offset:[0,3],targetOffset:zo}};
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-time-picker/TimePicker.js
function Uo(){}
/* harmony default export */var Go={name:"VcTimePicker",mixins:[d.a],props:Object(N.t)({prefixCls:s.a.string,clearText:s.a.string,value:s.a.any,defaultOpenValue:{type:Object,default:function(){return Sn()()}},inputReadOnly:s.a.bool,disabled:s.a.bool,allowEmpty:s.a.bool,defaultValue:s.a.any,open:s.a.bool,defaultOpen:s.a.bool,align:s.a.object,placement:s.a.any,transitionName:s.a.string,getPopupContainer:s.a.func,placeholder:s.a.string,format:s.a.string,showHour:s.a.bool,showMinute:s.a.bool,showSecond:s.a.bool,popupClassName:s.a.string,popupStyle:s.a.object,disabledHours:s.a.func,disabledMinutes:s.a.func,disabledSeconds:s.a.func,hideDisabledOptions:s.a.bool,
// onChange: PropTypes.func,
// onAmPmChange: PropTypes.func,
// onOpen: PropTypes.func,
// onClose: PropTypes.func,
// onFocus: PropTypes.func,
// onBlur: PropTypes.func,
name:s.a.string,autoComplete:s.a.string,use12Hours:s.a.bool,hourStep:s.a.number,minuteStep:s.a.number,secondStep:s.a.number,focusOnOpen:s.a.bool,
// onKeyDown: PropTypes.func,
autoFocus:s.a.bool,id:s.a.string,inputIcon:s.a.any,clearIcon:s.a.any,addon:s.a.func},{clearText:"clear",prefixCls:"rc-time-picker",defaultOpen:!1,inputReadOnly:!1,popupClassName:"",popupStyle:{},align:{},allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:Uo,disabledMinutes:Uo,disabledSeconds:Uo,hideDisabledOptions:!1,placement:"bottomLeft",use12Hours:!1,focusOnOpen:!1}),data:function(){var e=this.defaultOpen,t=this.defaultValue,n=this.open,r=void 0===n?e:n,i=this.value;return{sOpen:r,sValue:void 0===i?t:i}},watch:{value:function(e){this.setState({sValue:e})},open:function(e){void 0!==e&&this.setState({sOpen:e})}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&e.focus()}))},methods:{onPanelChange:function(e){this.setValue(e)},onAmPmChange:function(e){this.__emit("amPmChange",e)},onClear:function(e){e.stopPropagation(),this.setValue(null),this.setOpen(!1)},onVisibleChange:function(e){this.setOpen(e)},onEsc:function(){this.setOpen(!1),this.focus()},onKeyDown:function(e){40===e.keyCode&&this.setOpen(!0)},onKeyDown2:function(e){this.__emit("keydown",e)},setValue:function(e){Object(N.s)(this,"value")||this.setState({sValue:e}),this.__emit("change",e)},getFormat:function(){var e=this.format,t=this.showHour,n=this.showMinute,r=this.showSecond,i=this.use12Hours;return e||(i?[t?"h":"",n?"mm":"",r?"ss":""].filter((function(e){return!!e})).join(":").concat(" a"):[t?"HH":"",n?"mm":"",r?"ss":""].filter((function(e){return!!e})).join(":"))},getPanelElement:function(){var e=this.$createElement,t=this.prefixCls,n=this.placeholder,r=this.disabledHours,i=this.addon,a=this.disabledMinutes,o=this.disabledSeconds,s=this.hideDisabledOptions,c=this.inputReadOnly,l=this.showHour,u=this.showMinute,h=this.showSecond,f=this.defaultOpenValue,d=this.clearText,p=this.use12Hours,g=this.focusOnOpen,m=this.onKeyDown2,v=this.hourStep,y=this.minuteStep,A=this.secondStep,b=this.sValue,w=Object(N.g)(this,"clearIcon");return e(No,{attrs:{clearText:d,prefixCls:t+"-panel",value:b,inputReadOnly:c,defaultOpenValue:f,showHour:l,showMinute:u,showSecond:h,format:this.getFormat(),placeholder:n,disabledHours:r,disabledMinutes:a,disabledSeconds:o,hideDisabledOptions:s,use12Hours:p,hourStep:v,minuteStep:y,secondStep:A,focusOnOpen:g,clearIcon:w,addon:i},ref:"panel",on:{change:this.onPanelChange,amPmChange:this.onAmPmChange,esc:this.onEsc,keydown:m}})},getPopupClassName:function(){var e=this.showHour,t=this.showMinute,n=this.showSecond,r=this.use12Hours,i=this.prefixCls,a=this.popupClassName,s=0;
// Keep it for old compatibility
return e&&(s+=1),t&&(s+=1),n&&(s+=1),r&&(s+=1),l()(a,o()({},i+"-panel-narrow",!(e&&t&&n||r)),i+"-panel-column-"+s)},setOpen:function(e){this.sOpen!==e&&(Object(N.s)(this,"open")||this.setState({sOpen:e}),e?this.__emit("open",{open:e}):this.__emit("close",{open:e}))},focus:function(){this.$refs.picker.focus()},blur:function(){this.$refs.picker.blur()},onFocus:function(e){this.__emit("focus",e)},onBlur:function(e){this.__emit("blur",e)},renderClearButton:function(){var e=this,t=this.$createElement,n=this.sValue,r=this.$props,i=r.prefixCls,a=r.allowEmpty,o=r.clearText,s=r.disabled;if(!a||!n||s)return null;var c=Object(N.g)(this,"clearIcon");if(Object(N.w)(c)){var l=(Object(N.i)(c)||{}).click;return Object(ce.a)(c,{on:{click:function(){l&&l.apply(void 0,arguments),e.onClear.apply(e,arguments)}}})}return t("a",{attrs:{role:"button",title:o,tabIndex:0},class:i+"-clear",on:{click:this.onClear}},[c||t("i",{class:i+"-clear-icon"})])}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.placeholder,r=this.placement,i=this.align,a=this.id,o=this.disabled,s=this.transitionName,c=this.getPopupContainer,l=this.name,u=this.autoComplete,h=this.autoFocus,f=this.inputReadOnly,d=this.sOpen,p=this.sValue,g=this.onFocus,m=this.onBlur,v=this.popupStyle,y=this.getPopupClassName(),A=Object(N.g)(this,"inputIcon");return e(fe.a,{attrs:{prefixCls:t+"-panel",popupClassName:y,popupStyle:v,popupAlign:i,builtinPlacements:Ho,popupPlacement:r,action:o?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:c,popupTransitionName:s,popupVisible:d},on:{popupVisibleChange:this.onVisibleChange}},[e("template",{slot:"popup"},[this.getPanelElement()]),e("span",{class:""+t},[e("input",{class:t+"-input",ref:"picker",attrs:{type:"text",placeholder:n,name:l,disabled:o,autoComplete:u,autoFocus:h,readOnly:!!f,id:a},on:{keydown:this.onKeyDown,focus:g,blur:m},domProps:{value:p&&p.format(this.getFormat())||""}}),A||e("span",{class:t+"-icon"}),this.renderClearButton()])])}},Vo=n("01c2");
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/time-picker/locale/en_US.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/time-picker/index.js
function Wo(e){
// Ref: http://momentjs.com/docs/#/parsing/string-format/
return{showHour:e.indexOf("H")>-1||e.indexOf("h")>-1||e.indexOf("k")>-1,showMinute:e.indexOf("m")>-1,showSecond:e.indexOf("s")>-1}}var qo={name:"ATimePicker",mixins:[d.a],props:Object(N.t)({size:s.a.oneOf(["large","default","small"]),value:_r,defaultValue:_r,open:s.a.bool,format:s.a.string,disabled:s.a.bool,placeholder:s.a.string,prefixCls:s.a.string,hideDisabledOptions:s.a.bool,disabledHours:s.a.func,disabledMinutes:s.a.func,disabledSeconds:s.a.func,getPopupContainer:s.a.func,use12Hours:s.a.bool,focusOnOpen:s.a.bool,hourStep:s.a.number,minuteStep:s.a.number,secondStep:s.a.number,allowEmpty:s.a.bool,allowClear:s.a.bool,inputReadOnly:s.a.bool,clearText:s.a.string,defaultOpenValue:s.a.object,popupClassName:s.a.string,popupStyle:s.a.object,suffixIcon:s.a.any,align:s.a.object,placement:s.a.any,transitionName:s.a.string,autoFocus:s.a.bool,addon:s.a.any,clearIcon:s.a.any,locale:s.a.object,valueFormat:s.a.string},{align:{offset:[0,-2]},disabled:!1,disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up",focusOnOpen:!0,allowClear:!0}),model:{prop:"value",event:"change"},provide:function(){return{savePopupRef:this.savePopupRef}},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.value,t=this.defaultValue,n=this.valueFormat;return Ir("TimePicker",t,"defaultValue",n),Ir("TimePicker",e,"value",n),Object(w.a)(!Object(N.s)(this,"allowEmpty"),"TimePicker","`allowEmpty` is deprecated. Please use `allowClear` instead."),{sValue:Er(e||t,n)}},watch:{value:function(e){Ir("TimePicker",e,"value",this.valueFormat),this.setState({sValue:Er(e,this.valueFormat)})}},methods:{getDefaultFormat:function(){var e=this.format,t=this.use12Hours;return e||(t?"h:mm:ss a":"HH:mm:ss")},getAllowClear:function(){var e=this.$props,t=e.allowClear,n=e.allowEmpty;return Object(N.s)(this,"allowClear")?t:n},getDefaultLocale:function(){return Q()({},Vo.a,this.$props.locale)},savePopupRef:function(e){this.popupRef=e},handleChange:function(e){Object(N.s)(this,"value")||this.setState({sValue:e});var t=this.format,n=void 0===t?"HH:mm:ss":t;this.$emit("change",this.valueFormat?kr(e,this.valueFormat):e,e&&e.format(n)||"")},handleOpenClose:function(e){var t=e.open;this.$emit("openChange",t),this.$emit("update:open",t)},focus:function(){this.$refs.timePicker.focus()},blur:function(){this.$refs.timePicker.blur()},renderInputIcon:function(e){var t=this.$createElement,n=Object(N.g)(this,"suffixIcon"),r=(n=Array.isArray(n)?n[0]:n)&&Object(N.w)(n)&&Object(ce.a)(n,{class:e+"-clock-icon"})||t(We.a,{attrs:{type:"clock-circle"},class:e+"-clock-icon"});return t("span",{class:e+"-icon"},[r])},renderClearIcon:function(e){var t=this.$createElement,n=Object(N.g)(this,"clearIcon"),r=e+"-clear";return n&&Object(N.w)(n)?Object(ce.a)(n,{class:r}):t(We.a,{attrs:{type:"close-circle",theme:"filled"},class:r})},renderTimePicker:function(e){var t=this.$createElement,n=Object(N.l)(this),r=n=Object(u.a)(n,["defaultValue","suffixIcon","allowEmpty","allowClear"]),i=r.prefixCls,a=r.getPopupContainer,s=r.placeholder,c=r.size,l=(0,this.configProvider.getPrefixCls)("time-picker",i),h=this.getDefaultFormat(),f=o()({},l+"-"+c,!!c),d=Object(N.g)(this,"addon",{},!1),p=this.renderInputIcon(l),g=this.renderClearIcon(l),m=this.configProvider.getPopupContainer,v={props:Q()({},Wo(h),n,{allowEmpty:this.getAllowClear(),prefixCls:l,getPopupContainer:a||m,format:h,value:this.sValue,placeholder:void 0===s?e.placeholder:s,addon:function(e){return d?t("div",{class:l+"-panel-addon"},["function"==typeof d?d(e):d]):null},inputIcon:p,clearIcon:g}),class:f,ref:"timePicker",on:Q()({},Object(N.k)(this),{change:this.handleChange,open:this.handleOpenClose,close:this.handleOpenClose})};return t(Go,v)}},render:function(){return(0,arguments[0])(vr.a,{attrs:{componentName:"TimePicker",defaultLocale:this.getDefaultLocale()},scopedSlots:{default:this.renderTimePicker}})},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(qo.name,qo)}},Yo=qo,Ko=n("b4a0"),$o={date:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",week:"gggg-wo",month:"YYYY-MM"},Jo={date:"dateFormat",dateTime:"dateTimeFormat",week:"weekFormat",month:"monthFormat"};function Xo(e,t,n){return{name:e.name,props:Object(N.t)(t,{transitionName:"slide-up",popupStyle:{},locale:{}}),model:{prop:"value",event:"change"},inject:{configProvider:{default:function(){return A.a}}},provide:function(){return{savePopupRef:this.savePopupRef}},mounted:function(){var e=this,t=this.autoFocus,n=this.disabled,r=this.value,i=this.defaultValue,a=this.valueFormat;Ir("DatePicker",i,"defaultValue",a),Ir("DatePicker",r,"value",a),t&&!n&&this.$nextTick((function(){e.focus()}))},watch:{value:function(e){Ir("DatePicker",e,"value",this.valueFormat)}},methods:{getDefaultLocale:function(){var e=Q()({},Ko.a,this.locale);return e.lang=Q()({},e.lang,(this.locale||{}).lang),e},savePopupRef:function(e){this.popupRef=e},handleOpenChange:function(e){this.$emit("openChange",e)},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleMouseEnter:function(e){this.$emit("mouseenter",e)},handleMouseLeave:function(e){this.$emit("mouseleave",e)},handleChange:function(e,t){this.$emit("change",this.valueFormat?kr(e,this.valueFormat):e,t)},handleOk:function(e){this.$emit("ok",this.valueFormat?kr(e,this.valueFormat):e)},handleCalendarChange:function(e,t){this.$emit("calendarChange",this.valueFormat?kr(e,this.valueFormat):e,t)},focus:function(){this.$refs.picker.focus()},blur:function(){this.$refs.picker.blur()},transformValue:function(e){"value"in e&&(e.value=Er(e.value,this.valueFormat)),"defaultValue"in e&&(e.defaultValue=Er(e.defaultValue,this.valueFormat)),"defaultPickerValue"in e&&(e.defaultPickerValue=Er(e.defaultPickerValue,this.valueFormat))},renderPicker:function(t,r){var i,a=this,s=this.$createElement,c=Object(N.l)(this);this.transformValue(c);var u,h,f=c.prefixCls,d=c.inputPrefixCls,p=c.getCalendarContainer,g=c.size,m=c.showTime,v=c.disabled,y=c.format,A=m?n+"Time":n,b=y||t[Jo[A]]||$o[A],w=this.configProvider,x=w.getPrefixCls,C=w.getPopupContainer,_=p||C,I=x("calendar",f),E=x("input",d),k=l()(I+"-picker",o()({},I+"-picker-"+g,!!g)),S=l()(I+"-picker-input",E,(i={},o()(i,E+"-lg","large"===g),o()(i,E+"-sm","small"===g),o()(i,E+"-disabled",v),i)),B=m&&m.format||"HH:mm:ss",M=Q()({},Wo(B),{format:B,use12Hours:m&&m.use12Hours}),T=I+"-time-picker-column-"+(h=0,(u=M).showHour&&(h+=1),u.showMinute&&(h+=1),u.showSecond&&(h+=1),u.use12Hours&&(h+=1),h),O={props:Q()({},M,m,{prefixCls:I+"-time-picker",placeholder:t.timePickerLocale.placeholder,transitionName:"slide-up"}),class:T,on:{esc:function(){}}},D=m?s(No,O):null,P={props:Q()({},c,{getCalendarContainer:_,format:b,pickerClass:k,pickerInputClass:S,locale:t,localeCode:r,timePicker:D}),on:Q()({},Object(N.k)(this),{openChange:this.handleOpenChange,focus:this.handleFocus,blur:this.handleBlur,mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,change:this.handleChange,ok:this.handleOk,calendarChange:this.handleCalendarChange}),ref:"picker",scopedSlots:this.$scopedSlots||{}};return s(e,P,[this.$slots&&Object.keys(this.$slots).map((function(e){return s("template",{slot:e,key:e},[a.$slots[e]])}))])}},render:function(){return(0,arguments[0])(vr.a,{attrs:{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},scopedSlots:{default:this.renderPicker}})}}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/range-calendar/CalendarPart.js
function Zo(){}var es={mixins:[d.a],props:{prefixCls:s.a.string,value:s.a.any,hoverValue:s.a.any,selectedValue:s.a.any,direction:s.a.any,locale:s.a.any,showDateInput:s.a.bool,showTimePicker:s.a.bool,showWeekNumber:s.a.bool,format:s.a.any,placeholder:s.a.any,disabledDate:s.a.any,timePicker:s.a.any,disabledTime:s.a.any,disabledMonth:s.a.any,mode:s.a.any,
// onInputSelect: PropTypes.func,
timePickerDisabledTime:s.a.object,enableNext:s.a.any,enablePrev:s.a.any,clearIcon:s.a.any,dateRender:s.a.func,inputMode:s.a.string,inputReadOnly:s.a.bool},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.value,i=t.hoverValue,a=t.selectedValue,o=t.mode,s=t.direction,c=t.locale,l=t.format,u=t.placeholder,h=t.disabledDate,f=t.timePicker,d=t.disabledTime,p=t.timePickerDisabledTime,g=t.showTimePicker,m=t.enablePrev,v=t.enableNext,y=t.disabledMonth,A=t.showDateInput,b=t.dateRender,w=t.showWeekNumber,x=t.showClear,C=t.inputMode,_=t.inputReadOnly,I=Object(N.g)(this,"clearIcon"),E=Object(N.k)(this),k=E.inputChange,S=void 0===k?Zo:k,B=E.inputSelect,M=void 0===B?Zo:B,T=E.valueChange,O=void 0===T?Zo:T,D=E.panelChange,P=void 0===D?Zo:D,L=E.select,R=void 0===L?Zo:L,j=E.dayHover,F=void 0===j?Zo:j,z=g&&f,H=z&&d?jn(a,d):null,U=n+"-range",G={locale:c,value:r,prefixCls:n,showTimePicker:g},V="left"===s?0:1,W=null;if(z){var q=Object(N.l)(f);W=Object(ce.a)(f,{props:Q()({showHour:!0,showMinute:!0,showSecond:!0},q,H,p,{defaultOpenValue:r,value:a[V]}),on:{change:S}})}var Y=A&&e(io,{attrs:{format:l,locale:c,prefixCls:n,timePicker:f,disabledDate:h,placeholder:u,disabledTime:d,value:r,showClear:x||!1,selectedValue:a[V],clearIcon:I,inputMode:C,inputReadOnly:_},on:{change:S,select:M}}),K={props:Q()({},G,{mode:o,enableNext:v,enablePrev:m,disabledMonth:y}),on:{valueChange:O,panelChange:P}},$={props:Q()({},G,{hoverValue:i,selectedValue:a,dateRender:b,disabledDate:h,showWeekNumber:w}),on:{select:R,dayHover:F}};return e("div",{class:U+"-part "+U+"-"+s},[Y,e("div",{style:{outline:"none"}},[e(Va,K),g?e("div",{class:n+"-time-picker"},[e("div",{class:n+"-time-picker-panel"},[W])]):null,e("div",{class:n+"-body"},[e(qn,$)])])])}},ts=es;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-calendar/src/RangeCalendar.js
function ns(){}function rs(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}function is(e){var t=jt()(e,2),n=t[0],r=t[1];return r&&null==n&&(n=r.clone().subtract(1,"month")),n&&null==r&&(r=n.clone().add(1,"month")),[n,r]}function as(e,t){var n,r=e.selectedValue||t&&e.defaultSelectedValue,i=e.value||t&&e.defaultValue,a=is(i||r);return n=a,!Array.isArray(n)||0!==n.length&&!n.every((function(e){return!e}))?a:t&&[Sn()(),Sn()().add(1,"months")]}function os(e,t){for(var n=t?t().concat():[],r=0;r<e;r++)-1===n.indexOf(r)&&n.push(r);return n}function ss(e,t,n){if(t){var r=this.sSelectedValue.concat(),i="left"===e?0:1;r[i]=t,r[0]&&this.compare(r[0],r[1])>0&&(r[1-i]=this.sShowTimePicker?r[i]:void 0),this.__emit("inputSelect",r),this.fireSelectValueChange(r,null,n||{source:"dateInput"})}}var cs={props:{locale:s.a.object.def(ir.a),visible:s.a.bool.def(!0),prefixCls:s.a.string.def("rc-calendar"),dateInputPlaceholder:s.a.any,seperator:s.a.string.def("~"),defaultValue:s.a.any,value:s.a.any,hoverValue:s.a.any,mode:s.a.arrayOf(s.a.oneOf(["time","date","month","year","decade"])),showDateInput:s.a.bool.def(!0),timePicker:s.a.any,showOk:s.a.bool,showToday:s.a.bool.def(!0),defaultSelectedValue:s.a.array.def([]),selectedValue:s.a.array,showClear:s.a.bool,showWeekNumber:s.a.bool,
// locale: PropTypes.object,
// onChange: PropTypes.func,
// onSelect: PropTypes.func,
// onValueChange: PropTypes.func,
// onHoverChange: PropTypes.func,
// onPanelChange: PropTypes.func,
format:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string),s.a.func]),
// onClear: PropTypes.func,
type:s.a.any.def("both"),disabledDate:s.a.func,disabledTime:s.a.func.def(ns),renderFooter:s.a.func.def((function(){return null})),renderSidebar:s.a.func.def((function(){return null})),dateRender:s.a.func,clearIcon:s.a.any,inputReadOnly:s.a.bool},mixins:[d.a,tr],data:function(){var e=this.$props,t=e.selectedValue||e.defaultSelectedValue,n=as(e,1);return{sSelectedValue:t,prevSelectedValue:t,firstSelectedValue:null,sHoverValue:e.hoverValue||[],sValue:n,sShowTimePicker:!1,sMode:e.mode||["date","date"],sPanelTriggerSource:""}},watch:{value:function(){var e={};e.sValue=as(this.$props,0),this.setState(e)},hoverValue:function(e){rs(this.sHoverValue,e)||this.setState({sHoverValue:e})},selectedValue:function(e){var t={};t.sSelectedValue=e,t.prevSelectedValue=e,this.setState(t)},mode:function(e){rs(this.sMode,e)||this.setState({sMode:e})}},methods:{onDatePanelEnter:function(){this.hasSelectedValue()&&this.fireHoverValueChange(this.sSelectedValue.concat())},onDatePanelLeave:function(){this.hasSelectedValue()&&this.fireHoverValueChange([])},onSelect:function(e){var t=this.type,n=this.sSelectedValue,r=this.prevSelectedValue,i=this.firstSelectedValue,a=void 0;if("both"===t)i?this.compare(i,e)<0?(Rn(r[1],e),a=[i,e]):(Rn(r[0],e),Rn(r[1],i),a=[e,i]):(Rn(r[0],e),a=[e]);else if("start"===t){Rn(r[0],e);var o=n[1];a=o&&this.compare(o,e)>0?[e,o]:[e]}else{
// type === 'end'
var s=n[0];s&&this.compare(s,e)<=0?(Rn(r[1],e),a=[s,e]):(Rn(r[0],e),a=[e])}this.fireSelectValueChange(a)},onKeyDown:function(e){var t=this;if("input"!==e.target.nodeName.toLowerCase()){var n=e.keyCode,r=e.ctrlKey||e.metaKey,i=this.$data,a=i.sSelectedValue,o=i.sHoverValue,s=i.firstSelectedValue,c=i.sValue,l=this.$props.disabledDate,u=function(n){
// Change hover to make focus in UI
var r=void 0,i=void 0,l=void 0;
// Find origin hover time on value index
if(s?1===o.length?(r=o[0].clone(),i=n(r),l=t.onDayHover(i)):(r=o[0].isSame(s,"day")?o[1]:o[0],i=n(r),l=t.onDayHover(i)):(r=o[0]||a[0]||c[0]||Sn()(),l=[i=n(r)],t.fireHoverValueChange(l)),l.length>=2){var u=l.some((function(e){return!function(){var e=arguments[1],t=arguments[2];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((function(n){return n.isSame(e,t)}))}(c,e,"month")}));if(u){var h=l.slice().sort((function(e,t){return e.valueOf()-t.valueOf()}));h[0].isSame(h[1],"month")&&(h[1]=h[0].clone().add(1,"month")),t.fireValueChange(h)}}else if(1===l.length){
// If only one value, let's keep the origin panel
var f=c.findIndex((function(e){return e.isSame(r,"month")}));if(-1===f&&(f=0),c.every((function(e){return!e.isSame(i,"month")}))){var d=c.slice();d[f]=i.clone(),t.fireValueChange(d)}}return e.preventDefault(),i};switch(n){case Z.a.DOWN:return void u((function(e){return so(e,1,"weeks")}));case Z.a.UP:return void u((function(e){return so(e,-1,"weeks")}));case Z.a.LEFT:return void u(r?function(e){return so(e,-1,"years")}:function(e){return so(e,-1,"days")});case Z.a.RIGHT:return void u(r?function(e){return so(e,1,"years")}:function(e){return so(e,1,"days")});case Z.a.HOME:return void u((function(e){return ao(e)}));case Z.a.END:return void u((function(e){return oo(e)}));case Z.a.PAGE_DOWN:return void u((function(e){return so(e,1,"month")}));case Z.a.PAGE_UP:return void u((function(e){return so(e,-1,"month")}));case Z.a.ENTER:var h=void 0;return!(h=0===o.length?u((function(e){return e})):1===o.length?o[0]:o[0].isSame(s,"day")?o[1]:o[0])||l&&l(h)||this.onSelect(h),void e.preventDefault();default:this.__emit("keydown",e)}}},onDayHover:function(e){var t=[],n=this.sSelectedValue,r=this.firstSelectedValue,i=this.type;if("start"===i&&n[1])t=this.compare(e,n[1])<0?[e,n[1]]:[e];else if("end"===i&&n[0])t=this.compare(e,n[0])>0?[n[0],e]:[];else{if(!r)return this.sHoverValue.length&&this.setState({sHoverValue:[]}),t;t=this.compare(e,r)<0?[e,r]:[r,e]}return this.fireHoverValueChange(t),t},onToday:function(){var e=Dn(this.sValue[0]),t=e.clone().add(1,"months");this.setState({sValue:[e,t]})},onOpenTimePicker:function(){this.setState({sShowTimePicker:!0})},onCloseTimePicker:function(){this.setState({sShowTimePicker:!1})},onOk:function(){var e=this.sSelectedValue;this.isAllowedDateAndTime(e)&&this.__emit("ok",e)},onStartInputChange:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=["left"].concat(t);return ss.apply(this,r)},onEndInputChange:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=["right"].concat(t);return ss.apply(this,r)},onStartInputSelect:function(e){var t=["left",e,{source:"dateInputSelect"}];return ss.apply(this,t)},onEndInputSelect:function(e){var t=["right",e,{source:"dateInputSelect"}];return ss.apply(this,t)},onStartValueChange:function(e){var t=[].concat(g()(this.sValue));return t[0]=e,this.fireValueChange(t)},onEndValueChange:function(e){var t=[].concat(g()(this.sValue));return t[1]=e,this.fireValueChange(t)},onStartPanelChange:function(e,t){var n=this.sMode,r=this.sValue,i=[t,n[1]],a=[e||r[0],r[1]];this.__emit("panelChange",a,i);var o={sPanelTriggerSource:"start"};Object(N.s)(this,"mode")||(o.sMode=i),this.setState(o)},onEndPanelChange:function(e,t){var n=this.sMode,r=this.sValue,i=[n[0],t],a=[r[0],e||r[1]];this.__emit("panelChange",a,i);var o={sPanelTriggerSource:"end"};Object(N.s)(this,"mode")||(o.sMode=i),this.setState(o)},getStartValue:function(){var e=this.$data,t=e.sSelectedValue,n=e.sShowTimePicker,r=e.sValue,i=e.sMode,a=e.sPanelTriggerSource,o=r[0];
// keep selectedTime when select date
return t[0]&&this.$props.timePicker&&(o=o.clone(),Rn(t[0],o)),n&&t[0]&&(o=t[0]),
// Adjust month if date not align
"end"===a&&"date"===i[0]&&"date"===i[1]&&o.isSame(r[1],"month")&&(o=o.clone().subtract(1,"month")),o},getEndValue:function(){var e=this.$data,t=e.sSelectedValue,n=e.sShowTimePicker,r=e.sValue,i=e.sMode,a=e.sPanelTriggerSource,o=r[1]?r[1].clone():r[0].clone().add(1,"month");
// keep selectedTime when select date
return t[1]&&this.$props.timePicker&&Rn(t[1],o),n&&(o=t[1]?t[1]:this.getStartValue()),
// Adjust month if date not align
!n&&"end"!==a&&"date"===i[0]&&"date"===i[1]&&o.isSame(r[0],"month")&&(o=o.clone().add(1,"month")),o},
// get disabled hours for second picker
getEndDisableTime:function(){var e=this.sSelectedValue,t=this.sValue,n=(0,this.disabledTime)(e,"end")||{},r=e&&e[0]||t[0].clone();
// if startTime and endTime is same day..
// the second time picker will not able to pick time before first time picker
if(!e[1]||r.isSame(e[1],"day")){var i=r.hour(),a=r.minute(),o=r.second(),s=n.disabledHours,c=n.disabledMinutes,l=n.disabledSeconds,u=c?c():[],h=l?l():[];return s=os(i,s),c=os(a,c),l=os(o,l),{disabledHours:function(){return s},disabledMinutes:function(e){return e===i?c:u},disabledSeconds:function(e,t){return e===i&&t===a?l:h}}}return n},isAllowedDateAndTime:function(e){return Nn(e[0],this.disabledDate,this.disabledStartTime)&&Nn(e[1],this.disabledDate,this.disabledEndTime)},isMonthYearPanelShow:function(e){return["month","year","decade"].indexOf(e)>-1},hasSelectedValue:function(){var e=this.sSelectedValue;return!!e[1]&&!!e[0]},compare:function(e,t){return this.timePicker?e.diff(t):e.diff(t,"days")},fireSelectValueChange:function(e,t,n){var r=this.timePicker,i=this.prevSelectedValue;if(r){var a=Object(N.l)(r);if(a.defaultValue){var o=a.defaultValue;!i[0]&&e[0]&&Rn(o[0],e[0]),!i[1]&&e[1]&&Rn(o[1],e[1])}}
// 尚未选择过时间，直接输入的话
if(!this.sSelectedValue[0]||!this.sSelectedValue[1]){var s=e[0]||Sn()(),c=e[1]||s.clone().add(1,"months");this.setState({sSelectedValue:e,sValue:e&&2===e.length?is([s,c]):this.sValue})}e[0]&&!e[1]&&(this.setState({firstSelectedValue:e[0]}),this.fireHoverValueChange(e.concat())),this.__emit("change",e),(t||e[0]&&e[1])&&(this.setState({prevSelectedValue:e,firstSelectedValue:null}),this.fireHoverValueChange([]),this.__emit("select",e,n)),Object(N.s)(this,"selectedValue")||this.setState({sSelectedValue:e})},fireValueChange:function(e){Object(N.s)(this,"value")||this.setState({sValue:e}),this.__emit("valueChange",e)},fireHoverValueChange:function(e){Object(N.s)(this,"hoverValue")||this.setState({sHoverValue:e}),this.__emit("hoverChange",e)},clear:function(){this.fireSelectValueChange([],!0),this.__emit("clear")},disabledStartTime:function(e){return this.disabledTime(e,"start")},disabledEndTime:function(e){return this.disabledTime(e,"end")},disabledStartMonth:function(e){var t=this.sValue;return e.isAfter(t[1],"month")},disabledEndMonth:function(e){var t=this.sValue;return e.isBefore(t[0],"month")}},render:function(){var e,t,n=arguments[0],r=Object(N.l)(this),a=r.prefixCls,s=r.dateInputPlaceholder,c=r.timePicker,l=r.showOk,u=r.locale,h=r.showClear,f=r.showToday,d=r.type,p=r.seperator,g=Object(N.g)(this,"clearIcon"),m=this.sHoverValue,v=this.sSelectedValue,y=this.sMode,A=this.sShowTimePicker,b=this.sValue,w=(e={},o()(e,a,1),o()(e,a+"-hidden",!r.visible),o()(e,a+"-range",1),o()(e,a+"-show-time-picker",A),o()(e,a+"-week-number",r.showWeekNumber),e),x={props:r,on:Object(N.k)(this)},C={props:{selectedValue:v},on:{select:this.onSelect,dayHover:"start"===d&&v[1]||"end"===d&&v[0]||m.length?this.onDayHover:ns}},_=void 0,I=void 0;if(s)if(Array.isArray(s)){var E=jt()(s,2);_=E[0],I=E[1]}else _=I=s;var k=!0===l||!1!==l&&!!c,S=(t={},o()(t,a+"-footer",!0),o()(t,a+"-range-bottom",!0),o()(t,a+"-footer-show-ok",k),t),B=this.getStartValue(),M=this.getEndValue(),T=Dn(B),O=T.month(),D=T.year(),P=B.year()===D&&B.month()===O||M.year()===D&&M.month()===O,L=B.clone().add(1,"months"),Q=L.year()===M.year()&&L.month()===M.month(),R=Object(N.x)(x,C,{props:{hoverValue:m,direction:"left",disabledTime:this.disabledStartTime,disabledMonth:this.disabledStartMonth,format:this.getFormat(),value:B,mode:y[0],placeholder:_,showDateInput:this.showDateInput,timePicker:c,showTimePicker:A||"time"===y[0],enablePrev:!0,enableNext:!Q||this.isMonthYearPanelShow(y[1]),clearIcon:g},on:{inputChange:this.onStartInputChange,inputSelect:this.onStartInputSelect,valueChange:this.onStartValueChange,panelChange:this.onStartPanelChange}}),j=Object(N.x)(x,C,{props:{hoverValue:m,direction:"right",format:this.getFormat(),timePickerDisabledTime:this.getEndDisableTime(),placeholder:I,value:M,mode:y[1],showDateInput:this.showDateInput,timePicker:c,showTimePicker:A||"time"===y[1],disabledTime:this.disabledEndTime,disabledMonth:this.disabledEndMonth,enablePrev:!Q||this.isMonthYearPanelShow(y[0]),enableNext:!0,clearIcon:g},on:{inputChange:this.onEndInputChange,inputSelect:this.onEndInputSelect,valueChange:this.onEndValueChange,panelChange:this.onEndPanelChange}}),F=null;if(f){var z=Object(N.x)(x,{props:{disabled:P,value:b[0],text:u.backToToday},on:{today:this.onToday}});F=n(qa,i()([{key:"todayButton"},z]))}var H=null;if(r.timePicker){var U=Object(N.x)(x,{props:{showTimePicker:A||"time"===y[0]&&"time"===y[1],timePickerDisabled:!this.hasSelectedValue()||m.length},on:{openTimePicker:this.onOpenTimePicker,closeTimePicker:this.onCloseTimePicker}});H=n(Ja,i()([{key:"timePickerButton"},U]))}var G=null;if(k){var V=Object(N.x)(x,{props:{okDisabled:!this.isAllowedDateAndTime(v)||!this.hasSelectedValue()||m.length},on:{ok:this.onOk}});G=n(Ka,i()([{key:"okButtonNode"},V]))}var W=this.renderFooter(y);return n("div",{ref:"rootInstance",class:w,attrs:{tabIndex:"0"},on:{keydown:this.onKeyDown}},[r.renderSidebar(),n("div",{class:a+"-panel"},[h&&v[0]&&v[1]?n("a",{attrs:{role:"button",title:u.clear},on:{click:this.clear}},[g||n("span",{class:a+"-clear-btn"})]):null,n("div",{class:a+"-date-panel",on:{mouseleave:"both"!==d?this.onDatePanelLeave:ns,mouseenter:"both"!==d?this.onDatePanelEnter:ns}},[n(ts,R),n("span",{class:a+"-range-middle"},[p]),n(ts,j)]),n("div",{class:S},[f||r.timePicker||k||W?n("div",{class:a+"-footer-btn"},[W,F,H,G]):null])])])}},ls=cs,us=n("1b2b"),hs=n.n(us),fs=new RegExp("^("+["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"].join("|")+")(-inverse)?$"),ds={name:"ATag",mixins:[d.a],model:{prop:"visible",event:"close.visible"},props:{prefixCls:s.a.string,color:s.a.string,closable:s.a.bool.def(!1),visible:s.a.bool,afterClose:s.a.func},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=!0,t=Object(N.l)(this);return"visible"in t&&(e=this.visible),Object(w.a)(!("afterClose"in t),"Tag","'afterClose' will be deprecated, please use 'close' event, we will remove this in the next version."),{_visible:e}},watch:{visible:function(e){this.setState({_visible:e})}},methods:{setVisible:function(e,t){this.$emit("close",t),this.$emit("close.visible",!1);var n=this.afterClose;n&&
// next version remove.
n(),t.defaultPrevented||Object(N.s)(this,"visible")||this.setState({_visible:e})},handleIconClick:function(e){e.stopPropagation(),this.setVisible(!1,e)},isPresetColor:function(){var e=this.$props.color;return!!e&&fs.test(e)},getTagStyle:function(){var e=this.$props.color,t=this.isPresetColor();return{backgroundColor:e&&!t?e:void 0}},getTagClassName:function(e){var t,n=this.$props.color,r=this.isPresetColor();return t={},o()(t,e,!0),o()(t,e+"-"+n,r),o()(t,e+"-has-color",n&&!r),t},renderCloseIcon:function(){var e=this.$createElement;return this.$props.closable?e(We.a,{attrs:{type:"close"},on:{click:this.handleIconClick}}):null}},render:function(){var e=arguments[0],t=this.$props.prefixCls,n=(0,this.configProvider.getPrefixCls)("tag",t),r=this.$data._visible,a=e("span",i()([{directives:[{name:"show",value:r}]},{on:Object(u.a)(Object(N.k)(this),["close"])},{class:this.getTagClassName(n),style:this.getTagStyle()}]),[this.$slots.default,this.renderCloseIcon()]),o=Object(se.a)(n+"-zoom",{appear:!1});return e(_t,[e("transition",o,[a])])}},ps={name:"ACheckableTag",model:{prop:"checked"},props:{prefixCls:s.a.string,checked:Boolean},inject:{configProvider:{default:function(){return A.a}}},computed:{classes:function(){var e,t=this.checked,n=this.prefixCls,r=(0,this.configProvider.getPrefixCls)("tag",n);return e={},o()(e,""+r,!0),o()(e,r+"-checkable",!0),o()(e,r+"-checkable-checked",t),e}},methods:{handleClick:function(){var e=this.checked;this.$emit("input",!e),this.$emit("change",!e)}},render:function(){return(0,arguments[0])("div",{class:this.classes,on:{click:this.handleClick}},[this.$slots.default])}};
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tag/index.js
ds.CheckableTag=ps,
/* istanbul ignore next */
ds.install=function(e){e.use(b.a),e.component(ds.name,ds),e.component(ds.CheckableTag.name,ds.CheckableTag)};
/* harmony default export */var gs=ds,ms=function(){return{name:s.a.string,transitionName:s.a.string,prefixCls:s.a.string,inputPrefixCls:s.a.string,format:s.a.oneOfType([s.a.string,s.a.array,s.a.func]),disabled:s.a.bool,allowClear:s.a.bool,suffixIcon:s.a.any,popupStyle:s.a.object,dropdownClassName:s.a.string,locale:s.a.any,localeCode:s.a.string,size:s.a.oneOf(["large","small","default"]),getCalendarContainer:s.a.func,open:s.a.bool,
// onOpenChange: PropTypes.(status: bool) => void,
disabledDate:s.a.func,showToday:s.a.bool,dateRender:s.a.any,// (current: moment.Moment, today: moment.Moment) => React.ReactNode,
pickerClass:s.a.string,pickerInputClass:s.a.string,timePicker:s.a.any,autoFocus:s.a.bool,tagPrefixCls:s.a.string,tabIndex:s.a.oneOfType([s.a.string,s.a.number]),align:s.a.object.def((function(){return{}})),inputReadOnly:s.a.bool,valueFormat:s.a.string}},vs=function(){return{value:xr,defaultValue:xr,defaultPickerValue:xr,renderExtraFooter:s.a.any,placeholder:s.a.string}},ys=function(){return Q()({},ms(),vs(),{showTime:s.a.oneOfType([s.a.object,s.a.bool]),open:s.a.bool,disabledTime:s.a.func,
// onOpenChange?: (status: bool) => void;
// onOk?: (selectedTime: moment.Moment) => void;
mode:s.a.oneOf(["time","date","month","year"])})},As=function(){return Q()({},ms(),vs(),{placeholder:s.a.string,monthCellContentRender:s.a.func})},bs=function(){return Q()({},ms(),{tagPrefixCls:s.a.string,value:Cr,defaultValue:Cr,defaultPickerValue:Cr,timePicker:s.a.any,
// onChange?: (dates: TimesType, dateStrings: [string, string]) => void;
// onCalendarChange?: (dates: TimesType, dateStrings: [string, string]) => void;
// onOk?: (selectedTime: moment.Moment) => void;
showTime:s.a.oneOfType([s.a.object,s.a.bool]),ranges:s.a.object,placeholder:s.a.arrayOf(String),mode:s.a.oneOfType([s.a.string,s.a.arrayOf(String)]),separator:s.a.any,disabledTime:s.a.func,showToday:s.a.bool,renderExtraFooter:s.a.any})},ws=function(){return Q()({},ms(),vs(),{placeholder:s.a.string})},xs={functional:!0,render:function(e,t){var n=t.props,r=n.suffixIcon,i=n.prefixCls;return(r&&Object(N.w)(r)?Object(ce.a)(r,{class:i+"-picker-icon"}):e("span",{class:i+"-picker-icon"},[r]))||e(We.a,{attrs:{type:"calendar"},class:i+"-picker-icon"})}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/date-picker/interface.js
// import { TimePickerProps } from '../time-picker'
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/date-picker/RangePicker.js
function Cs(){}function _s(e,t){var n=jt()(e,2),r=n[0],i=n[1];
// value could be an empty array, then we should not reset showDate
if(r||i)return t&&"month"===t[0]?[r,i]:[r,i&&i.isSame(r,"month")?i.clone().add(1,"month"):i]}function Is(e){if(e)return Array.isArray(e)?e:[e,e.clone().add(1,"month")]}function Es(e,t){if(t&&e&&0!==e.length){var n=jt()(e,2),r=n[0],i=n[1];r&&r.locale(t),i&&i.locale(t)}}
/* harmony default export */var ks={name:"ARangePicker",mixins:[d.a],model:{prop:"value",event:"change"},props:Object(N.t)(bs(),{allowClear:!0,showToday:!1,separator:"~"}),inject:{configProvider:{default:function(){return A.a}}},data:function(){var e,t=this.value||this.defaultValue||[],n=jt()(t,2),r=n[0],i=n[1];if(r&&!Object(yr.a)(kn).isMoment(r)||i&&!Object(yr.a)(kn).isMoment(i))throw new Error("The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, see: https://u.ant.design/date-picker-value");return{sValue:t,sShowDate:Is((t&&(e=t,!Array.isArray(e)||0!==e.length&&!e.every((function(e){return!e})))?t:this.defaultPickerValue)||Object(yr.a)(kn)()),sOpen:this.open,sHoverValue:[]}},watch:{value:function(e){var t=e||[],n={sValue:t};hs()(e,this.sValue)||(n=Q()({},n,{sShowDate:_s(t,this.mode)||this.sShowDate})),this.setState(n)},open:function(e){var t={sOpen:e};this.setState(t)},sOpen:function(e,t){var n=this;this.$nextTick((function(){Object(N.s)(n,"open")||!t||e||n.focus()}))}},methods:{setValue:function(e,t){this.handleChange(e),!t&&this.showTime||Object(N.s)(this,"open")||this.setState({sOpen:!1})},clearSelection:function(e){e.preventDefault(),e.stopPropagation(),this.setState({sValue:[]}),this.handleChange([])},clearHoverValue:function(){this.setState({sHoverValue:[]})},handleChange:function(e){Object(N.s)(this,"value")||this.setState((function(t){var n=t.sShowDate;return{sValue:e,sShowDate:_s(e)||n}})),e[0]&&e[1]&&e[0].diff(e[1])>0&&(e[1]=void 0);var t=jt()(e,2),n=t[0],r=t[1];this.$emit("change",e,[_o(n,this.format),_o(r,this.format)])},handleOpenChange:function(e){Object(N.s)(this,"open")||this.setState({sOpen:e}),!1===e&&this.clearHoverValue(),this.$emit("openChange",e)},handleShowDateChange:function(e){this.setState({sShowDate:e})},handleHoverChange:function(e){this.setState({sHoverValue:e})},handleRangeMouseLeave:function(){this.sOpen&&this.clearHoverValue()},handleCalendarInputSelect:function(e){jt()(e,1)[0]&&this.setState((function(t){var n=t.sShowDate;return{sValue:e,sShowDate:_s(e)||n}}))},handleRangeClick:function(e){"function"==typeof e&&(e=e()),this.setValue(e,!0),this.$emit("ok",e),this.$emit("openChange",!1)},onMouseEnter:function(e){this.$emit("mouseenter",e)},onMouseLeave:function(e){this.$emit("mouseleave",e)},focus:function(){this.$refs.picker.focus()},blur:function(){this.$refs.picker.blur()},renderFooter:function(){var e=this,t=this.$createElement,n=this.ranges,r=this.$scopedSlots,i=this.$slots,a=this._prefixCls,o=this._tagPrefixCls,s=this.renderExtraFooter||r.renderExtraFooter||i.renderExtraFooter;if(!n&&!s)return null;var c=s?t("div",{class:a+"-footer-extra",key:"extra"},["function"==typeof s?s():s]):null,l=n&&Object.keys(n).map((function(r){var i=n[r],a="function"==typeof i?i.call(e):i;return t(gs,{key:r,attrs:{prefixCls:o,color:"blue"},on:{click:function(){return e.handleRangeClick(i)},mouseenter:function(){return e.setState({sHoverValue:a})},mouseleave:e.handleRangeMouseLeave}},[r])}));return[l&&l.length>0?t("div",{class:a+"-footer-extra "+a+"-range-quick-selector",key:"range"},[l]):null,c]}},render:function(){var e,t=this,n=arguments[0],r=Object(N.l)(this),i=Object(N.g)(this,"suffixIcon");i=Array.isArray(i)?i[0]:i;var a=this.sValue,s=this.sShowDate,c=this.sHoverValue,u=this.sOpen,h=this.$scopedSlots,f=Object(N.k)(this),d=f.calendarChange,p=void 0===d?Cs:d,g=f.ok,m=void 0===g?Cs:g,v=f.focus,y=void 0===v?Cs:v,A=f.blur,b=void 0===A?Cs:A,w=f.panelChange,x=void 0===w?Cs:w,C=r.prefixCls,_=r.tagPrefixCls,I=r.popupStyle,E=r.disabledDate,k=r.disabledTime,S=r.showTime,B=r.showToday,M=r.ranges,T=r.locale,O=r.localeCode,D=r.format,P=r.separator,L=r.inputReadOnly,R=this.configProvider.getPrefixCls,j=R("calendar",C),F=R("tag",_);this._prefixCls=j,this._tagPrefixCls=F;var z=r.dateRender||h.dateRender;Es(a,O),Es(s,O);var H=l()((e={},o()(e,j+"-time",S),o()(e,j+"-range-with-ranges",M),e)),U={on:{change:this.handleChange}},G={on:{ok:this.handleChange},props:{}};
// 需要选择时间时，点击 ok 时才触发 onChange
r.timePicker?U.on.change=function(e){return t.handleChange(e)}:G={on:{},props:{}},"mode"in r&&(G.props.mode=r.mode);var V=Array.isArray(r.placeholder)?r.placeholder[0]:T.lang.rangePlaceholder[0],W=Array.isArray(r.placeholder)?r.placeholder[1]:T.lang.rangePlaceholder[1],q=Object(N.x)(G,{props:{separator:P,format:D,prefixCls:j,renderFooter:this.renderFooter,timePicker:r.timePicker,disabledDate:E,disabledTime:k,dateInputPlaceholder:[V,W],locale:T.lang,dateRender:z,value:s,hoverValue:c,showToday:B,inputReadOnly:L},on:{change:p,ok:m,valueChange:this.handleShowDateChange,hoverChange:this.handleHoverChange,panelChange:x,inputSelect:this.handleCalendarInputSelect},class:H,scopedSlots:h}),Y=n(ls,q),K={};r.showTime&&(K.width="350px");var $=jt()(a,2),J=$[0],X=$[1],Z=!r.disabled&&r.allowClear&&a&&(J||X)?n(We.a,{attrs:{type:"close-circle",theme:"filled"},class:j+"-picker-clear",on:{click:this.clearSelection}}):null,ee=n(xs,{attrs:{suffixIcon:i,prefixCls:j}}),te=Object(N.x)({props:r,on:f},U,{props:{calendar:Y,value:a,open:u,prefixCls:j+"-picker-container"},on:{openChange:this.handleOpenChange},style:I,scopedSlots:Q()({default:function(e){var t=e.value,i=jt()(t,2),a=i[0],o=i[1];return n("span",{class:r.pickerInputClass},[n("input",{attrs:{disabled:r.disabled,readOnly:!0,placeholder:V,tabIndex:-1},domProps:{value:_o(a,r.format)},class:j+"-range-picker-input"}),n("span",{class:j+"-range-picker-separator"},[" ",P," "]),n("input",{attrs:{disabled:r.disabled,readOnly:!0,placeholder:W,tabIndex:-1},domProps:{value:_o(o,r.format)},class:j+"-range-picker-input"}),Z,ee])}},h)});return n("span",{ref:"picker",class:r.pickerClass,style:K,attrs:{tabIndex:r.disabled?-1:0},on:{focus:y,blur:b,mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave}},[n(Co,te)])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/date-picker/WeekPicker.js
function Ss(){}
/* harmony default export */var Bs={
// static defaultProps = {
//   format: 'YYYY-wo',
//   allowClear: true,
// };
// private input: any;
name:"AWeekPicker",mixins:[d.a],model:{prop:"value",event:"change"},props:Object(N.t)(ws(),{format:"gggg-wo",allowClear:!0}),inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.value||this.defaultValue;if(e&&!Object(yr.a)(kn).isMoment(e))throw new Error("The value/defaultValue of WeekPicker or MonthPicker must be a moment object");return{_value:e,_open:this.open}},watch:{value:function(e){var t={_value:e};this.setState(t),this.prevState=Q()({},this.$data,t)},open:function(e){var t={_open:e};this.setState(t),this.prevState=Q()({},this.$data,t)},_open:function(e,t){var n=this;this.$nextTick((function(){Object(N.s)(n,"open")||!t||e||n.focus()}))}},mounted:function(){this.prevState=Q()({},this.$data)},updated:function(){var e=this;this.$nextTick((function(){Object(N.s)(e,"open")||!e.prevState._open||e._open||e.focus()}))},methods:{weekDateRender:function(e){var t=this.$createElement,n=this.$data._value,r=this._prefixCls,i=this.$scopedSlots,a=this.dateRender||i.dateRender,o=a?a(e):e.date();return n&&e.year()===n.year()&&e.week()===n.week()?t("div",{class:r+"-selected-day"},[t("div",{class:r+"-date"},[o])]):t("div",{class:r+"-date"},[o])},handleChange:function(e){Object(N.s)(this,"value")||this.setState({_value:e}),this.$emit("change",e,function(e,t){return e&&e.format(t)||""}(e,this.format))},handleOpenChange:function(e){Object(N.s)(this,"open")||this.setState({_open:e}),this.$emit("openChange",e)},clearSelection:function(e){e.preventDefault(),e.stopPropagation(),this.handleChange(null)},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},renderFooter:function(){var e=this.$createElement,t=this._prefixCls,n=this.$scopedSlots,r=this.renderExtraFooter||n.renderExtraFooter;return r?e("div",{class:t+"-footer-extra"},[r.apply(void 0,arguments)]):null}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=Object(N.g)(this,"suffixIcon");n=Array.isArray(n)?n[0]:n;var r=this.prefixCls,i=this.disabled,a=this.pickerClass,o=this.popupStyle,s=this.pickerInputClass,c=this.format,l=this.allowClear,u=this.locale,h=this.localeCode,f=this.disabledDate,d=this.defaultPickerValue,p=this.$data,g=this.$scopedSlots,m=Object(N.k)(this),v=(0,this.configProvider.getPrefixCls)("calendar",r);this._prefixCls=v;var y=p._value,A=p._open,b=m.focus,w=void 0===b?Ss:b,x=m.blur,C=void 0===x?Ss:x;y&&h&&y.locale(h);var _=Object(N.s)(this,"placeholder")?this.placeholder:u.lang.placeholder,I=this.dateRender||g.dateRender||this.weekDateRender,E=e(ho,{attrs:{showWeekNumber:!0,dateRender:I,prefixCls:v,format:c,locale:u.lang,showDateInput:!1,showToday:!1,disabledDate:f,renderFooter:this.renderFooter,defaultValue:d}}),k=!i&&l&&p._value?e(We.a,{attrs:{type:"close-circle",theme:"filled"},class:v+"-picker-clear",on:{click:this.clearSelection}}):null,S=e(xs,{attrs:{suffixIcon:n,prefixCls:v}}),B={props:Q()({},t,{calendar:E,prefixCls:v+"-picker-container",value:y,open:A}),on:Q()({},m,{change:this.handleChange,openChange:this.handleOpenChange}),style:o,scopedSlots:Q()({default:function(t){var n=t.value;return e("span",{style:{display:"inline-block",width:"100%"}},[e("input",{ref:"input",attrs:{disabled:i,readOnly:!0,placeholder:_},domProps:{value:n&&n.format(c)||""},class:s,on:{focus:w,blur:C}}),k,S])}},g)};return e("span",{class:a},[e(Co,B)])}},Ms=Xo(Q()({},Eo(ho,ys()),{name:"ADatePicker"}),ys(),"date"),Ts=Xo(Q()({},Eo(po,As()),{name:"AMonthPicker"}),As(),"month");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/date-picker/index.js
Q()(Ms,{RangePicker:Xo(ks,bs(),"date"),MonthPicker:Ts,WeekPicker:Xo(Bs,ws(),"week")}),
/* istanbul ignore next */
Ms.install=function(e){e.use(b.a),e.component(Ms.name,Ms),e.component(Ms.RangePicker.name,Ms.RangePicker),e.component(Ms.MonthPicker.name,Ms.MonthPicker),e.component(Ms.WeekPicker.name,Ms.WeekPicker)};
/* harmony default export */var Os=Ms,Ds={name:"ADivider",props:{prefixCls:s.a.string,type:s.a.oneOf(["horizontal","vertical",""]).def("horizontal"),dashed:s.a.bool,orientation:s.a.oneOf(["left","right","center"])},inject:{configProvider:{default:function(){return A.a}}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.type,i=this.$slots,a=this.dashed,s=this.orientation,c=void 0===s?"center":s,l=(0,this.configProvider.getPrefixCls)("divider",n),u=c.length>0?"-"+c:c;return t("div",{class:(e={},o()(e,l,!0),o()(e,l+"-"+r,!0),o()(e,l+"-with-text"+u,i.default),o()(e,l+"-dashed",!!a),e),attrs:{role:"separator"}},[i.default&&t("span",{class:l+"-inner-text"},[i.default])])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Ds.name,Ds)}},Ps=Ds;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/divider/index.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/dropdown/index.js
bn.Button=vn,
/* istanbul ignore next */
bn.install=function(e){e.use(b.a),e.component(bn.name,bn),e.component(vn.name,vn)};
/* harmony default export */var Ls=bn,Qs=n("c005"),Rs=n.n(Qs),js=n("3852"),Ns=n.n(js),Fs=n("2a95"),zs=n("9b02"),Hs=n.n(zs),Us=n("0f5c"),Gs=n.n(Us),Vs=n("9638"),Ws=n.n(Vs),qs=n("8827"),Ys=n.n(qs),Ks=n("57ba"),$s=n.n(Ks),Js=function e(t){Ys()(this,e),Q()(this,t)};
// EXTERNAL MODULE: ./node_modules/lodash/isRegExp.js
function Xs(e){return e instanceof Js}function Zs(e){return Xs(e)?e:new Js(e)}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-form/src/utils.js
function ec(e){return e}function tc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[4];if(n(e,t))i(e,t);else if(null==t);else if(Array.isArray(t))t.forEach((function(t,a){return tc(e+"["+a+"]",t,n,r,i)}));else{
// It's object and not a leaf node
if("object"!==(void 0===t?"undefined":Y()(t)))return void ae()(!1,r);Object.keys(t).forEach((function(a){var o=t[a];tc(e+(e?".":"")+a,o,n,r,i)}))}}function nc(e,t,n){var r={};return tc(void 0,e,t,n,(function(e,t){r[e]=t})),r}function rc(e){
// To support custom element
if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value}function ic(e,t,n){var r=e,i=t,a=n;return void 0===n&&("function"==typeof r?(a=r,i={},r=void 0):Array.isArray(r)?"function"==typeof i?(a=i,i={}):i=i||{}:(a=i,i=r||{},r=void 0)),{names:r,options:i,callback:a}}function ac(e){return 0===Object.keys(e).length}function oc(e){return!!e&&e.some((function(e){return e.rules&&e.rules.length}))}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-form/src/createFieldsStore.js
function sc(e,t){return 0===t.indexOf(e)&&-1!==[".","["].indexOf(t[e.length])}function cc(e){return nc(e,(function(e,t){return Xs(t)}),"You must wrap field data with `createFormField`.")}var lc=function(){function e(t){Ys()(this,e),uc.call(this),this.fields=cc(t),this.fieldsMeta={}}return $s()(e,[{key:"updateFields",value:function(e){this.fields=cc(e)}},{key:"flattenRegisteredFields",value:function(e){var t=this.getAllFieldsName();return nc(e,(function(e){return t.indexOf(e)>=0}),'You cannot set a form field before rendering a field associated with the value. You can use `getFieldDecorator(id, options)` instead `v-decorator="[id, options]"` to register it before render.')}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,r=Q()({},this.fields,e),i={};Object.keys(n).forEach((function(e){i[e]=t.getValueFromFields(e,r)})),Object.keys(i).forEach((function(e){var n=i[e],a=t.getFieldMeta(e);if(a&&a.normalize){var o=a.normalize(n,t.getValueFromFields(e,t.fields),i);o!==n&&(r[e]=Q()({},r[e],{value:o}))}})),this.fields=r}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce((function(e,n){var r=t[n];return r&&"value"in r&&(e[n]={}),e}),{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach((function(t){var n=e.fields[t],r=e.fieldsMeta[t];n&&r&&oc(r.validate)&&(e.fields[t]=Q()({},n,{dirty:!0}))}))}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var r=this.getFieldMeta(e);return r&&r.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter((function(t){return!e.getFieldMeta(t).hidden})):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter((function(e){return t.some((function(t){return e===t||(n=t,0===e.lastIndexOf(n,0)&&[".","["].indexOf(e[t.length])>=0);var n}))}))}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,r=e.valuePropName,i=this.getField(t),a="value"in i?i.value:e.initialValue;return n?n(a):o()({},r,a)}},{key:"getField",value:function(e){return Q()({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter((function(t){return!e.fields[t]})).map((function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}})).reduce((function(e,t){return Gs()(e,t.name,Zs(t))}),{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce((function(t,n){return Gs()(t,n,Zs(e.fields[n]))}),this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce((function(e,n){return Gs()(e,n,t(n))}),{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||// Not registered
1===n.length&&n[0]===e)return t(e);var r="["===n[0][e.length],i=r?e.length:e.length+1;return n.reduce((function(e,n){return Gs()(e,n.slice(i),t(n))}),r?[]:{})}},{key:"isValidNestedFieldName",
// @private
// BG: `a` and `a.b` cannot be use in the same form
value:function(e){return this.getAllFieldsName().every((function(t){return!sc(t,e)&&!sc(e,t)}))}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),e}(),uc=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),r=e.fieldsMeta;Object.keys(n).forEach((function(t){r[t]&&e.setFieldMeta(t,Q()({},e.getFieldMeta(t),{initialValue:n[t]}))}))},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce((function(t,r){return Gs()(t,r,e.getValueFromFields(r,n))}),{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,(function(t){return e.getValueFromFields(t,n)}))},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,(function(t){return(n=e.getFieldMember(t,"errors"))?n.map((function(e){return e&&e.message?e.message:e})):n;var n}))},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldValidating(t)}))},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldTouched(t)}))}};
/* harmony default export */var hc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.validateMessages,r=e.onFieldsChange,i=e.onValuesChange,a=e.mapProps,c=void 0===a?ec:a,l=e.mapPropsToFields,u=e.fieldNameProp,h=e.fieldMetaProp,f=e.fieldDataProp,p=e.formPropName,m=void 0===p?"form":p,v=e.name,y=e.props,A=void 0===y?{}:y,b=e.templateContext;return function(e){var a={};Array.isArray(A)?A.forEach((function(e){a[e]=s.a.any})):a=A;var p={mixins:[d.a].concat(g()(t)),props:Q()({},a,{wrappedComponentRef:s.a.func.def((function(){}))}),data:function(){var e=this,t=l&&l(this.$props);return this.fieldsStore=function(e){return new lc(e)}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-form/src/createBaseForm.js
(t||{}),this.templateContext=b,this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},this.formItems={},this.renderFields={},this.domFields={},
// HACK: https://github.com/ant-design/ant-design/issues/6406
["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach((function(t){e[t]=function(){var n;return(n=e.fieldsStore)[t].apply(n,arguments)}})),{submitting:!1}},watch:b?{}:{$props:{handler:function(e){l&&this.fieldsStore.updateFields(l(e))},deep:!0}},mounted:function(){this.cleanUpUselessFields()},updated:function(){
// form updated add for template v-decorator
this.cleanUpUselessFields()},methods:{updateFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fieldsStore.updateFields(l(e)),b&&b.$forceUpdate()},onCollectCommon:function(e,t,n){var r=this.fieldsStore.getFieldMeta(e);if(r[t])r[t].apply(r,g()(n));else if(r.originalProps&&r.originalProps[t]){var a;(a=r.originalProps)[t].apply(a,g()(n))}var s=r.getValueFromEvent?r.getValueFromEvent.apply(r,g()(n)):rc.apply(void 0,g()(n));if(i&&s!==this.fieldsStore.getFieldValue(e)){var c=this.fieldsStore.getAllValues(),l={};c[e]=s,Object.keys(c).forEach((function(e){return Gs()(l,e,c[e])})),i(Q()(o()({},m,this.getForm()),this.$props),Gs()({},e,s),l)}var u=this.fieldsStore.getField(e);return{name:e,field:Q()({},u,{value:s,touched:!0}),fieldMeta:r}},onCollect:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=this.onCollectCommon(e,t,r),s=a.name,c=a.field,l=a.fieldMeta.validate;this.fieldsStore.setFieldsAsDirty();var u=Q()({},c,{dirty:oc(l)});this.setFields(o()({},s,u))},onCollectValidate:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=this.onCollectCommon(e,t,r),o=a.field,s=a.fieldMeta,c=Q()({},o,{dirty:!0});this.fieldsStore.setFieldsAsDirty(),this.validateFieldsInternal([c],{action:t,options:{firstFields:!!s.validateFirst}})},getCacheBind:function(e,t,n){this.cachedBind[e]||(this.cachedBind[e]={});var r=this.cachedBind[e];return r[t]&&r[t].oriFn===n||(r[t]={fn:n.bind(this,e,t),oriFn:n}),r[t].fn},getFieldDecorator:function(e,t,n){var r=this,i=this.getFieldProps(e,t),a=i.props,o=X()(i,["props"]);return this.formItems[e]=n,function(t){
// We should put field in record if it is rendered
r.renderFields[e]=!0;var n=r.fieldsStore.getFieldMeta(e),i=Object(N.l)(t),s=Object(N.i)(t);n.originalProps=i;
// fieldMeta.ref = fieldElem.data && fieldElem.data.ref
var c=Q()({props:Q()({},a,r.fieldsStore.getFieldValuePropValue(n))},o);c.domProps.value=c.props.value;var l={};return Object.keys(c.on).forEach((function(e){if(s[e]){var t=c.on[e];l[e]=function(){s[e].apply(s,arguments),t.apply(void 0,arguments)}}else l[e]=c.on[e]})),Object(ce.a)(t,Q()({},c,{on:l}))}},getFieldProps:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[e];var r=Q()({name:e,trigger:"change",valuePropName:"value",validate:[]},n),i=r.rules,a=r.trigger,o=r.validateTrigger,s=void 0===o?a:o,c=r.validate,l=this.fieldsStore.getFieldMeta(e);"initialValue"in r&&(l.initialValue=r.initialValue);var d=Q()({},this.fieldsStore.getFieldValuePropValue(r)),p={},g={};u&&(d[u]=v?v+"_"+e:e);var m=function(e,t,n){var r=e.map((function(e){var t=Q()({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t}));return t&&r.push({trigger:n?[].concat(n):[],rules:t}),r}(c,i,s),y=function(e){return e.filter((function(e){return!!e.rules&&e.rules.length})).map((function(e){return e.trigger})).reduce((function(e,t){return e.concat(t)}),[])}(m);y.forEach((function(n){p[n]||(p[n]=t.getCacheBind(e,n,t.onCollectValidate))})),
// make sure that the value will be collect
a&&-1===y.indexOf(a)&&(p[a]=this.getCacheBind(e,a,this.onCollect));var A=Q()({},l,r,{validate:m});return this.fieldsStore.setFieldMeta(e,A),h&&(g[h]=A),f&&(g[f]=this.fieldsStore.getField(e)),
// This field is rendered, record it
this.renderFields[e]=!0,{props:mo()(d,["id"]),
// id: inputProps.id,
domProps:{value:d.value},attrs:Q()({},g,{id:d.id}),directives:[{name:"ant-ref",value:this.getCacheBind(e,e+"__ref",this.saveRef)}],on:p}},getFieldInstance:function(e){return this.instances[e]},getRules:function(e,t){var n,r=e.validate.filter((function(e){return!t||e.trigger.indexOf(t)>=0})).map((function(e){return e.rules}));return n=r,Array.prototype.concat.apply([],n)},setFields:function(e,t){var n=this,i=this.fieldsStore.flattenRegisteredFields(e);this.fieldsStore.setFields(i);var a=Object.keys(i).reduce((function(e,t){return Gs()(e,t,n.fieldsStore.getField(t))}),{});if(r){var o=Object.keys(i).reduce((function(e,t){return Gs()(e,t,n.fieldsStore.getField(t))}),{});r(this,o,this.fieldsStore.getNestedAllFields())}var s=b||this,c=!1;Object.keys(a).forEach((function(e){var t=n.formItems[e];(t="function"==typeof t?t():t)&&t.itemSelfUpdate?t.$forceUpdate():c=!0})),c&&s.$forceUpdate(),this.$nextTick((function(){t&&t()}))},setFieldsValue:function(e,t){var n=this.fieldsStore.fieldsMeta,r=this.fieldsStore.flattenRegisteredFields(e),a=Object.keys(r).reduce((function(e,t){if(n[t]){var i=r[t];e[t]={value:i}}return e}),{});if(this.setFields(a,t),i){var s=this.fieldsStore.getAllValues();i(Q()(o()({},m,this.getForm()),this.$props),e,s)}},saveRef:function(e,t,n){if(!n){var r=this.fieldsStore.getFieldMeta(e);return r.preserve||(
// after destroy, delete data
this.clearedFieldMetaCache[e]={field:this.fieldsStore.getField(e),meta:r},this.clearField(e)),void delete this.domFields[e]}this.domFields[e]=!0,this.recoverClearedField(e),
// const fieldMeta = this.fieldsStore.getFieldMeta(name)
// if (fieldMeta) {
//   const ref = fieldMeta.ref
//   if (ref) {
//     if (typeof ref === 'string') {
//       throw new Error(`can not set ref string for ${name}`)
//     }
//     ref(component)
//   }
// }
this.instances[e]=n},cleanUpUselessFields:function(){var e=this,t=this.fieldsStore.getAllFieldsName().filter((function(t){var n=e.fieldsStore.getFieldMeta(t);return!e.renderFields[t]&&!e.domFields[t]&&!n.preserve}));t.length&&t.forEach(this.clearField),this.renderFields={}},clearField:function(e){this.fieldsStore.clearField(e),delete this.instances[e],delete this.cachedBind[e]},resetFields:function(e){var t=this,n=this.fieldsStore.resetFields(e);(Object.keys(n).length>0&&this.setFields(n),e)?(Array.isArray(e)?e:[e]).forEach((function(e){return delete t.clearedFieldMetaCache[e]})):this.clearedFieldMetaCache={}},recoverClearedField:function(e){this.clearedFieldMetaCache[e]&&(this.fieldsStore.setFields(o()({},e,this.clearedFieldMetaCache[e].field)),this.fieldsStore.setFieldMeta(e,this.clearedFieldMetaCache[e].meta),delete this.clearedFieldMetaCache[e])},validateFieldsInternal:function(e,t,r){var i=this,a=t.fieldNames,o=t.action,s=t.options,c=void 0===s?{}:s,l={},u={},h={},f={};if(e.forEach((function(e){var t=e.name;if(!0===c.force||!1!==e.dirty){var n=i.fieldsStore.getFieldMeta(t),r=Q()({},e);r.errors=void 0,r.validating=!0,r.dirty=!0,l[t]=i.getRules(n,o),u[t]=r.value,h[t]=r}else e.errors&&Gs()(f,t,{errors:e.errors})})),this.setFields(h),
// in case normalize
Object.keys(u).forEach((function(e){u[e]=i.fieldsStore.getFieldValue(e)})),r&&ac(h))r(ac(f)?null:f,this.fieldsStore.getFieldsValue(a));else{var d=new Fs.a(l);n&&d.messages(n),d.validate(u,c,(function(e){var t=Q()({},f);e&&e.length&&e.forEach((function(e){var n=e.field,r=n;
// Handle using array validation rule.
// ref: https://github.com/ant-design/ant-design/issues/14275
Object.keys(l).some((function(e){var t=l[e]||[];
// Exist if match rule
if(e===n)return r=e,!0;
// Skip if not match array type
if(t.every((function(e){return"array"!==e.type}))&&0!==n.indexOf(e))return!1;
// Exist if match the field name
var i=n.slice(e.length+1);return!!/^\d+$/.test(i)&&(r=e,!0)}));var i=Hs()(t,r);("object"!==(void 0===i?"undefined":Y()(i))||Array.isArray(i))&&Gs()(t,r,{errors:[]}),Hs()(t,r.concat(".errors")).push(e)}));var n=[],o={};Object.keys(l).forEach((function(e){var r=Hs()(t,e),a=i.fieldsStore.getField(e);
// avoid concurrency problems
Ws()(a.value,u[e])?(a.errors=r&&r.errors,a.value=u[e],a.validating=!1,a.dirty=!1,o[e]=a):n.push({name:e})})),i.setFields(o),r&&(n.length&&n.forEach((function(e){var n=e.name,r=[{message:n+" need to revalidate",field:n}];Gs()(t,n,{expired:!0,errors:r})})),r(ac(t)?null:t,i.fieldsStore.getFieldsValue(a)))}))}},validateFields:function(e,t,n){var r=this,i=new Promise((function(i,a){var o=ic(e,t,n),s=o.names,c=o.options,l=ic(e,t,n).callback;if(!l||"function"==typeof l){var u=l;l=function(e,t){u?u(e,t):e?a({errors:e,values:t}):i(t)}}var h=s?r.fieldsStore.getValidFieldsFullName(s):r.fieldsStore.getValidFieldsName(),f=h.filter((function(e){return oc(r.fieldsStore.getFieldMeta(e).validate)})).map((function(e){var t=r.fieldsStore.getField(e);return t.value=r.fieldsStore.getFieldValue(e),t}));f.length?("firstFields"in c||(c.firstFields=h.filter((function(e){return!!r.fieldsStore.getFieldMeta(e).validateFirst}))),r.validateFieldsInternal(f,{fieldNames:h,options:c},l)):l(null,r.fieldsStore.getFieldsValue(h))}));return i.catch((function(e){return console.error,e})),i},isSubmitting:function(){return this.submitting},submit:function(e){var t=this;this.setState({submitting:!0}),e((function(){t.setState({submitting:!1})}))}},render:function(){var t=arguments[0],n=this.$slots,r=this.$scopedSlots,i=o()({},m,this.getForm()),a=Object(N.l)(this),s=a.wrappedComponentRef,l=X()(a,["wrappedComponentRef"]),u={props:c.call(this,Q()({},i,l)),on:Object(N.k)(this),ref:"WrappedComponent",directives:[{name:"ant-ref",value:s}]};Object.keys(r).length&&(u.scopedSlots=r);var h=Object.keys(n);return e?t(e,u,[h.length?h.map((function(e){return t("template",{slot:e},[n[e]])})):null]):null}};if(!e)return p;if(Array.isArray(e.props)){var y={};e.props.forEach((function(e){y[e]=s.a.any})),y[m]=Object,e.props=y}else e.props=e.props||{},m in e.props||(e.props[m]=Object);return function(e,t){
/* eslint no-param-reassign:0 */
return e.name="Form_"+function(e){return e.name||"WrappedComponent"}(t),e.WrappedComponent=t,e.props=Q()({},e.props,t.props),e}(p,e)}},fc={methods:{getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-form/src/createForm.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-form/src/createDOMForm.js
function dc(e,t){var n=window.getComputedStyle,r=
// If we have getComputedStyle
n?// Query it
// TODO: From CSS-Query notes, we might need (node, null) for FF
n(e):// Otherwise, we are in IE and use currentStyle
e.currentStyle;if(r)return r[
// Switch to camelCase for CSSOM
// DEV: Grabbed from jQuery
// https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194
// https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597
t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}var pc={methods:{getForm:function(){return Q()({},fc.methods.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){var r=this,i=ic(e,t,n),a=i.names,o=i.callback,s=i.options;return this.validateFields(a,s,(function(e,t){if(e){var n=r.fieldsStore.getValidFieldsName(),i=void 0,a=void 0;if(n.forEach((function(t){if(Ns()(e,t)){var n=r.getFieldInstance(t);if(n){var o=n.$el||n.elm,s=o.getBoundingClientRect().top;"hidden"!==o.type&&(void 0===a||a>s)&&(a=s,i=o)}}})),i){var c=s.container||function(e){
/* eslint no-cond-assign:0 */
for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var r=dc(t,"overflowY");
// https://stackoverflow.com/a/36900407/3040605
if(t!==e&&("auto"===r||"scroll"===r)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(i);Object(pe.a)(i,c,Q()({onlyScrollIfNeeded:!0},s.scroll))}}"function"==typeof o&&o(e,t)}))}}};
/* harmony default export */var gc=function(e){return hc(Q()({},e),[pc])},mc=n("2769"),vc=n.n(mc),yc="data-__meta",Ac="data-__field";
// EXTERNAL MODULE: ./node_modules/lodash/find.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/form/FormItem.js
function bc(){}var wc={id:s.a.string,htmlFor:s.a.string,prefixCls:s.a.string,label:s.a.any,labelCol:s.a.shape(Ti).loose,wrapperCol:s.a.shape(Ti).loose,help:s.a.any,extra:s.a.any,validateStatus:s.a.oneOf(["","success","warning","error","validating"]),hasFeedback:s.a.bool,required:s.a.bool,colon:s.a.bool,fieldDecoratorId:s.a.string,fieldDecoratorOptions:s.a.object,selfUpdate:s.a.bool,labelAlign:s.a.oneOf(["left","right"])};function xc(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=!1,r=0,i=e.length;r<i;r++){var a=e[r];if(!a||a!==t&&a.$vnode!==t){var o=a.componentOptions||a.$vnode&&a.$vnode.componentOptions;n=xc(o?o.children:a.$children,t)}else n=!0;if(n)break}return n}
/* harmony default export */var Cc={name:"AFormItem",__ANT_FORM_ITEM:!0,mixins:[d.a],props:Object(N.t)(wc,{hasFeedback:!1}),provide:function(){return{isFormItemChildren:!0}},inject:{isFormItemChildren:{default:!1},FormContext:{default:function(){return{}}},decoratorFormProps:{default:function(){return{}}},collectFormItemContext:{default:function(){return bc}},configProvider:{default:function(){return A.a}}},data:function(){return{helpShow:!1}},computed:{itemSelfUpdate:function(){return!!(void 0===this.selfUpdate?this.FormContext.selfUpdate:this.selfUpdate)}},created:function(){this.collectContext()},beforeUpdate:function(){0},beforeDestroy:function(){this.collectFormItemContext(this.$vnode&&this.$vnode.context,"delete")},mounted:function(){var e=this.$props,t=e.help,n=e.validateStatus;Object(w.a)(this.getControls(this.slotDefault,!0).length<=1||void 0!==t||void 0!==n,"Form.Item","Cannot generate `validateStatus` and `help` automatically, while there are more than one `getFieldDecorator` in it."),Object(w.a)(!this.fieldDecoratorId,"Form.Item","`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.")},methods:{collectContext:function(){if(this.FormContext.form&&this.FormContext.form.templateContext){var e=this.FormContext.form.templateContext,t=xc(Object.values(e.$slots||{}).reduce((function(e,t){return[].concat(g()(e),g()(t))}),[]),this.$vnode);Object(w.a)(!t,"You can not set FormItem from slot, please use slot-scope instead slot");var n=!1;
// 进一步判断是否是通过slot-scope传递
t||this.$vnode.context===e||(n=xc(this.$vnode.context.$children,e.$vnode)),n||t||this.collectFormItemContext(this.$vnode.context)}},getHelpMessage:function(){var e=Object(N.g)(this,"help"),t=this.getOnlyControl();if(void 0===e&&t){var n=this.getField().errors;return n?n.map((function(e,t){var n=null;return Object(N.w)(e)?n=e:Object(N.w)(e.message)&&(n=e.message),n?Object(ce.a)(n,{key:t}):e.message})).reduce((function(e,t){return[].concat(g()(e),[" ",t])}),[]).slice(1):""}return e},getControls:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=[],r=0;r<e.length&&(t||!(n.length>0));r++){var i=e[r];if((i.tag||""!==i.text.trim())&&!Object(N.o)(i).__ANT_FORM_ITEM){var a=Object(N.d)(i),o=i.data&&i.data.attrs||{};yc in o?
// And means FIELD_DATA_PROP in child.props, too.
n.push(i):a&&(n=n.concat(this.getControls(a,t)))}}return n},getOnlyControl:function(){var e=this.getControls(this.slotDefault,!1)[0];return void 0!==e?e:null},getChildAttr:function(e){var t=this.getOnlyControl(),n={};if(t)return t.data?n=t.data:t.$vnode&&t.$vnode.data&&(n=t.$vnode.data),n[e]||n.attrs[e]},getId:function(){return this.getChildAttr("id")},getMeta:function(){return this.getChildAttr(yc)},getField:function(){return this.getChildAttr(Ac)},getValidateStatus:function(){if(!this.getOnlyControl())return"";var e=this.getField();if(e.validating)return"validating";if(e.errors)return"error";var t="value"in e?e.value:this.getMeta().initialValue;return null!=t&&""!==t?"success":""},
// Resolve duplicated ids bug between different forms
// https://github.com/ant-design/ant-design/issues/7351
onLabelClick:function(){var e=this.id||this.getId();if(e){var t=this.$el.querySelector('[id="'+e+'"]');t&&t.focus&&t.focus()}},onHelpAnimEnd:function(e,t){this.helpShow=t,t||this.$forceUpdate()},isRequired:function(){var e=this.required;return void 0!==e?e:!!this.getOnlyControl()&&((this.getMeta()||{}).validate||[]).filter((function(e){return!!e.rules})).some((function(e){return e.rules.some((function(e){return e.required}))}))},renderHelp:function(e){var t=this,n=this.$createElement,r=this.getHelpMessage(),a=r?n("div",{class:e+"-explain",key:"help"},[r]):null;a&&(this.helpShow=!!a);var o=Object(se.a)("show-help",{afterEnter:function(){return t.onHelpAnimEnd("help",!0)},afterLeave:function(){return t.onHelpAnimEnd("help",!1)}});return n("transition",i()([o,{key:"help"}]),[a])},renderExtra:function(e){var t=this.$createElement,n=Object(N.g)(this,"extra");return n?t("div",{class:e+"-extra"},[n]):null},renderValidateWrapper:function(e,t,n,r){var i=this.$createElement,a=this.$props,o=this.getOnlyControl,s=void 0===a.validateStatus&&o?this.getValidateStatus():a.validateStatus,c=e+"-item-control";s&&(c=l()(e+"-item-control",{"has-feedback":s&&a.hasFeedback,"has-success":"success"===s,"has-warning":"warning"===s,"has-error":"error"===s,"is-validating":"validating"===s}));var u="";switch(s){case"success":u="check-circle";break;case"warning":u="exclamation-circle";break;case"error":u="close-circle";break;case"validating":u="loading";break;default:u=""}var h=a.hasFeedback&&u?i("span",{class:e+"-item-children-icon"},[i(We.a,{attrs:{type:u,theme:"loading"===u?"outlined":"filled"}})]):null;return i("div",{class:c},[i("span",{class:e+"-item-children"},[t,h]),n,r])},renderWrapper:function(e,t){var n=this.$createElement,r=(this.isFormItemChildren?{}:this.FormContext).wrapperCol,i=this.wrapperCol||r||{},a=i.style,o=i.id,s=i.on,c=X()(i,["style","id","on"]),u=l()(e+"-item-control-wrapper",i.class);return n(Oi,{props:c,class:u,key:"wrapper",style:a,id:o,on:s},[t])},renderLabel:function(e){var t,n=this.$createElement,r=this.FormContext,i=r.vertical,a=r.labelAlign,s=r.labelCol,c=r.colon,u=this.labelAlign,h=this.labelCol,f=this.colon,d=this.id,p=this.htmlFor,g=Object(N.g)(this,"label"),m=this.isRequired(),v=h||s||{},y=u||a,A=e+"-item-label",b=l()(A,"left"===y&&A+"-left",v.class),w=(v.class,v.style),x=v.id,C=v.on,_=X()(v,["class","style","id","on"]),I=g,E=!0===f||!1!==c&&!1!==f;
// Remove duplicated user input colon
E&&!i&&"string"==typeof g&&""!==g.trim()&&(I=g.replace(/[：:]\s*$/,""));var k=l()((t={},o()(t,e+"-item-required",m),o()(t,e+"-item-no-colon",!E),t));return g?n(Oi,{props:_,class:b,key:"label",style:w,id:x,on:C},[n("label",{attrs:{for:p||d||this.getId(),title:"string"==typeof g?g:""},class:k,on:{click:this.onLabelClick}},[I])]):null},renderChildren:function(e){return[this.renderLabel(e),this.renderWrapper(e,this.renderValidateWrapper(e,this.slotDefault,this.renderHelp(e),this.renderExtra(e)))]},renderFormItem:function(){var e,t=this.$createElement,n=this.$props.prefixCls,r=(0,this.configProvider.getPrefixCls)("form",n),i=this.renderChildren(r),a=(e={},o()(e,r+"-item",!0),o()(e,r+"-item-with-help",this.helpShow),e);return t(Ei,{class:l()(a),key:"row"},[i])},decoratorOption:function(e){if(e.data&&e.data.directives){var t=vc()(e.data.directives,["name","decorator"]);return Object(w.a)(!t||t&&Array.isArray(t.value),"Form",'Invalid directive: type check failed for directive "decorator". Expected Array, got '+Y()(t?t.value:t)+". At "+e.tag+"."),t?t.value:null}return null},decoratorChildren:function(e){for(var t=this.FormContext.form.getFieldDecorator,n=0,r=e.length;n<r;n++){var i=e[n];if(Object(N.o)(i).__ANT_FORM_ITEM)break;i.children?i.children=this.decoratorChildren(Object(ce.b)(i.children)):i.componentOptions&&i.componentOptions.children&&(i.componentOptions.children=this.decoratorChildren(Object(ce.b)(i.componentOptions.children)));var a=this.decoratorOption(i);a&&a[0]&&(e[n]=t(a[0],a[1],this)(i))}return e}},render:function(){var e=this.$slots,t=this.decoratorFormProps,n=this.fieldDecoratorId,r=this.fieldDecoratorOptions,i=void 0===r?{}:r,a=this.FormContext,o=Object(N.c)(e.default||[]);if(t.form&&n&&o.length){var s=t.form.getFieldDecorator;o[0]=s(n,i,this)(o[0]),Object(w.a)(!(o.length>1),"Form","`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children"),this.slotDefault=o}else a.form?(o=Object(ce.b)(o),this.slotDefault=this.decoratorChildren(o)):this.slotDefault=o;return this.renderFormItem()}},_c=(s.a.func,s.a.func,s.a.func,s.a.any,s.a.bool,s.a.string,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,{layout:s.a.oneOf(["horizontal","inline","vertical"]),labelCol:s.a.shape(Ti).loose,wrapperCol:s.a.shape(Ti).loose,colon:s.a.bool,labelAlign:s.a.oneOf(["left","right"]),form:s.a.object,
// onSubmit: React.FormEventHandler<any>;
prefixCls:s.a.string,hideRequiredMark:s.a.bool,autoFormCreate:s.a.func,options:s.a.object,selfUpdate:s.a.bool}),Ic=(s.a.string,s.a.string,s.a.boolean,s.a.boolean,s.a.number,s.a.number,s.a.number,s.a.oneOfType([String,s.a.arrayOf(String)]),s.a.custom(Rs.a),s.a.func,s.a.func,{name:"AForm",props:Object(N.t)(_c,{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Cc,createFormField:Zs,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gc(Q()({fieldNameProp:"id"},e,{fieldMetaProp:yc,fieldDataProp:Ac}))},createForm:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new(b.a.Vue||oe.default)(Ic.create(Q()({},t,{templateContext:e}))())},created:function(){this.formItemContexts=new Map},provide:function(){var e=this;return{FormContext:this,
// https://github.com/vueComponent/ant-design-vue/issues/446
collectFormItemContext:this.form&&this.form.templateContext?function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add",r=e.formItemContexts,i=r.get(t)||0;"delete"===n?i<=1?r.delete(t):r.set(t,i-1):t!==e.form.templateContext&&r.set(t,i+1)}:function(){}}},inject:{configProvider:{default:function(){return A.a}}},watch:{form:function(){this.$forceUpdate()}},computed:{vertical:function(){return"vertical"===this.layout}},beforeUpdate:function(){this.formItemContexts.forEach((function(e,t){t.$forceUpdate&&t.$forceUpdate()}))},updated:function(){this.form&&this.form.cleanUpUselessFields&&this.form.cleanUpUselessFields()},methods:{onSubmit:function(e){Object(N.k)(this).submit?this.$emit("submit",e):e.preventDefault()}},render:function(){var e,t=this,n=arguments[0],r=this.prefixCls,i=this.hideRequiredMark,a=this.layout,s=this.onSubmit,c=this.$slots,u=this.autoFormCreate,h=this.options,f=void 0===h?{}:h,d=(0,this.configProvider.getPrefixCls)("form",r),p=l()(d,(e={},o()(e,d+"-horizontal","horizontal"===a),o()(e,d+"-vertical","vertical"===a),o()(e,d+"-inline","inline"===a),o()(e,d+"-hide-required-mark",i),e));if(u){Object(w.a)(!1,"Form","`autoFormCreate` is deprecated. please use `form` instead.");var g=this.DomForm||gc(Q()({fieldNameProp:"id"},f,{fieldMetaProp:yc,fieldDataProp:Ac,templateContext:this.$vnode.context}))({provide:function(){return{decoratorFormProps:this.$props}},data:function(){return{children:c.default,formClassName:p,submit:s}},created:function(){u(this.form)},render:function(){var e=arguments[0],t=this.children,n=this.formClassName;return e("form",{on:{submit:this.submit},class:n},[t])}});return this.domForm&&(this.domForm.children=c.default,this.domForm.submit=s,this.domForm.formClassName=p),this.DomForm=g,n(g,{attrs:{wrappedComponentRef:function(e){t.domForm=e}}})}return n("form",{on:{submit:s},class:p},[c.default])}}),Ec=Ic,kc=n("dfdf");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/form/Form.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/form/index.js
oe.default.use(he.a,{name:"ant-ref"}),oe.default.use(kc.b),oe.default.prototype.$form=Ec,
/* istanbul ignore next */
Ec.install=function(e){e.use(b.a),e.component(Ec.name,Ec),e.component(Ec.Item.name,Ec.Item),e.prototype.$form=Ec};
/* harmony default export */var Sc=Ec,Bc=n("0644"),Mc=n.n(Bc);
// EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/form-model/FormItem.js
function Tc(){}function Oc(e,t,n){for(var r=e,i=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),a=0,o=i.length;a<o-1&&(r||n);++a){var s=i[a];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[a],v:r?r[i[a]]:null}}var Dc={id:s.a.string,htmlFor:s.a.string,prefixCls:s.a.string,label:s.a.any,help:s.a.any,extra:s.a.any,labelCol:s.a.shape(Ti).loose,wrapperCol:s.a.shape(Ti).loose,hasFeedback:s.a.bool,colon:s.a.bool,labelAlign:s.a.oneOf(["left","right"]),prop:s.a.string,rules:s.a.oneOfType([Array,Object]),autoLink:s.a.bool,required:s.a.bool,validateStatus:s.a.oneOf(["","success","warning","error","validating"])},Pc={name:"AFormModelItem",__ANT_NEW_FORM_ITEM:!0,mixins:[d.a],props:Object(N.t)(Dc,{hasFeedback:!1,autoLink:!0}),inject:{configProvider:{default:function(){return A.a}},FormContext:{default:function(){return{}}}},data:function(){return{validateState:this.validateStatus,validateMessage:"",validateDisabled:!1,validator:{}}},computed:{fieldValue:function(){var e=this.FormContext.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/g,".")),Oc(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t}},watch:{validateStatus:function(e){this.validateState=e}},mounted:function(){if(this.prop){var e=this.FormContext.addField;e&&e(this),this.initialValue=Mc()(this.fieldValue)}},beforeDestroy:function(){var e=this.FormContext.removeField;e&&e(this)},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tc;this.validateDisabled=!1;var r=this.getFilteredRule(e);if(!r||0===r.length)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach((function(e){delete e.trigger})),i[this.prop]=r;var a=new Fs.a(i);this.FormContext&&this.FormContext.validateMessages&&a.messages(this.FormContext.validateMessages);var o={};o[this.prop]=this.fieldValue,a.validate(o,{firstFields:!0},(function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,r),t.FormContext&&t.FormContext.$emit&&t.FormContext.$emit("validate",t.prop,!e,t.validateMessage||null)}))},getRules:function(){var e=this.FormContext.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required,trigger:"change"}:[],r=Oc(e,this.prop||"");return e=e?r.o[this.prop||""]||r.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){return this.getRules().filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return Q()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.FormContext.model||{},n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Oc(t,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,
// reset validateDisabled after onFieldChange triggered
this.$nextTick((function(){e.validateDisabled=!1}))}},render:function(){var e=this,t=arguments[0],n=this.$slots,r=this.$scopedSlots,i=Object(N.l)(this),a=Object(N.g)(this,"label"),o=Object(N.g)(this,"extra"),s=Object(N.g)(this,"help"),c={props:Q()({},i,{label:a,extra:o,validateStatus:this.validateState,help:this.validateMessage||s,required:this.isRequired||i.required})},l=Object(N.c)(r.default?r.default():n.default),u=l[0];if(this.prop&&this.autoLink&&Object(N.w)(u)){var h=Object(N.i)(u),f=h.blur,d=h.change;u=Object(ce.a)(u,{on:{blur:function(){f&&f.apply(void 0,arguments),e.onFieldBlur()},change:function(){if(Array.isArray(d))for(var t=0,n=d.length;t<n;t++)d[t].apply(d,arguments);else d&&d.apply(void 0,arguments);e.onFieldChange()}}})}return t(Cc,c,[u,l.slice(1)])}},Lc={layout:s.a.oneOf(["horizontal","inline","vertical"]),labelCol:s.a.shape(Ti).loose,wrapperCol:s.a.shape(Ti).loose,colon:s.a.bool,labelAlign:s.a.oneOf(["left","right"]),prefixCls:s.a.string,hideRequiredMark:s.a.bool,model:s.a.object,rules:s.a.object,validateMessages:s.a.any,validateOnRuleChange:s.a.bool},Qc=(s.a.string,s.a.string,s.a.boolean,s.a.boolean,s.a.number,s.a.number,s.a.number,s.a.oneOfType([String,s.a.arrayOf(String)]),s.a.custom(Rs.a),s.a.func,s.a.func,{name:"AFormModel",props:Object(N.t)(Lc,{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Pc,created:function(){this.fields=[]},provide:function(){return{FormContext:this}},inject:{configProvider:{default:function(){return A.a}}},watch:{rules:function(){this.validateOnRuleChange&&this.validate((function(){}))}},computed:{vertical:function(){return"vertical"===this.layout}},methods:{addField:function(e){e&&this.fields.push(e)},removeField:function(e){e.prop&&this.fields.splice(this.fields.indexOf(e),1)},onSubmit:function(e){Object(N.k)(this).submit?this.$emit("submit",e):e.preventDefault()},resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):Object(w.a)(!1,"FormModel","model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(e.length?"string"==typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields).forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;
// if no callback, return promise
"function"!=typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e){e?t(e):n(e)}})));var r=!0,i=0;
// 如果需要验证的fields为空，调用验证时立刻返回callback
0===this.fields.length&&e&&e(!0);var a={};return this.fields.forEach((function(n){n.validate("",(function(n,o){n&&(r=!1),a=Q()({},a,o),"function"==typeof e&&++i===t.fields.length&&e(r,a)}))})),n||void 0}Object(w.a)(!1,"FormModel","model is required for resetFields to work.")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):Object(w.a)(!1,"FormModel","please pass correct props!")}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.hideRequiredMark,i=this.layout,a=this.onSubmit,s=this.$slots,c=(0,this.configProvider.getPrefixCls)("form",n);return t("form",{on:{submit:a},class:l()(c,(e={},o()(e,c+"-horizontal","horizontal"===i),o()(e,c+"-vertical","vertical"===i),o()(e,c+"-inline","inline"===i),o()(e,c+"-hide-required-mark",r),e))},[s.default])}}),Rc=Qc;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/form-model/index.js
oe.default.use(he.a,{name:"ant-ref"}),oe.default.use(kc.b),
/* istanbul ignore next */
Rc.install=function(e){e.use(b.a),e.component(Rc.name,Rc),e.component(Rc.Item.name,Rc.Item)};
/* harmony default export */var jc=Rc,Nc={disabled:s.a.bool,activeClassName:s.a.string,activeStyle:s.a.any},Fc={name:"TouchFeedback",mixins:[d.a],props:Object(N.t)(Nc,{disabled:!1}),data:function(){return{active:!1}},mounted:function(){var e=this;this.$nextTick((function(){e.disabled&&e.active&&e.setState({active:!1})}))},methods:{triggerEvent:function(e,t,n){
// 暂时仅有input-number用到，事件直接到挂载到Touchable上，不需要像antd那样从子组件触发
this.$emit(e,n),t!==this.active&&this.setState({active:t})},onTouchStart:function(e){this.triggerEvent("touchstart",!0,e)},onTouchMove:function(e){this.triggerEvent("touchmove",!1,e)},onTouchEnd:function(e){this.triggerEvent("touchend",!1,e)},onTouchCancel:function(e){this.triggerEvent("touchcancel",!1,e)},onMouseDown:function(e){
// pc simulate mobile
this.triggerEvent("mousedown",!0,e)},onMouseUp:function(e){this.triggerEvent("mouseup",!1,e)},onMouseLeave:function(e){this.triggerEvent("mouseleave",!1,e)}},render:function(){var e=this.$props,t=e.disabled,n=e.activeClassName,r=void 0===n?"":n,i=e.activeStyle,a=void 0===i?{}:i,o=this.$slots.default;if(1!==o.length)return Object(w.a)(!1,"m-feedback组件只能包含一个子元素"),null;var s={on:t?{}:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchCancel,mousedown:this.onMouseDown,mouseup:this.onMouseUp,mouseleave:this.onMouseLeave}};return!t&&this.active&&(s=Q()({},s,{style:a,class:r})),Object(ce.a)(o,s)}},zc={name:"InputHandler",props:{prefixCls:s.a.string,disabled:s.a.bool},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r={props:{disabled:t.disabled,activeClassName:n+"-handler-active"},on:Object(N.k)(this)};return e(Fc,r,[e("span",[this.$slots.default])])}},Hc=zc;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-m-feedback/src/PropTypes.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-input-number/src/index.js
// based on rc-input-number 4.5.5
function Uc(){}function Gc(e){e.preventDefault()}
/**
 * When click and hold on a button - the speed of auto changin the value.
 */
var Vc=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Wc=function(e){return null!=e},qc=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},Yc={value:s.a.oneOfType([s.a.number,s.a.string]),defaultValue:s.a.oneOfType([s.a.number,s.a.string]),focusOnUpDown:s.a.bool,autoFocus:s.a.bool,
// onChange: PropTypes.func,
// onKeyDown: PropTypes.func,
// onKeyUp: PropTypes.func,
prefixCls:s.a.string,tabIndex:s.a.oneOfType([s.a.string,s.a.number]),placeholder:s.a.string,disabled:s.a.bool,
// onFocus: PropTypes.func,
// onBlur: PropTypes.func,
readOnly:s.a.bool,max:s.a.number,min:s.a.number,step:s.a.oneOfType([s.a.number,s.a.string]),upHandler:s.a.any,downHandler:s.a.any,useTouch:s.a.bool,formatter:s.a.func,parser:s.a.func,
// onMouseEnter: PropTypes.func,
// onMouseLeave: PropTypes.func,
// onMouseOver: PropTypes.func,
// onMouseOut: PropTypes.func,
precision:s.a.number,required:s.a.bool,pattern:s.a.string,decimalSeparator:s.a.string,autoComplete:s.a.string,title:s.a.string,name:s.a.string,id:s.a.string},Kc={name:"VCInputNumber",mixins:[d.a],model:{prop:"value",event:"change"},props:Object(N.t)(Yc,{focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-Vc,step:1,parser:function(e){return e.replace(/[^\w\.-]+/g,"")},required:!1,autoComplete:"off"}),data:function(){var e=Object(N.l)(this);this.prevProps=Q()({},e);var t=void 0;t="value"in e?this.value:this.defaultValue;var n=this.getValidValue(this.toNumber(t));return{inputValue:this.toPrecisionAsStep(n),sValue:n,focused:this.autoFocus}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&!e.disabled&&e.focus(),e.updatedFunc()}))},updated:function(){var e=this,t=this.$props,n=t.value,r=t.max,i=t.min,a=this.$data.focused,o=this.prevProps,s=Object(N.l)(this);
// Don't trigger in componentDidMount
if(o){if(!qc(o.value,n)||!qc(o.max,r)||!qc(o.min,i)){var c=a?n:this.getValidValue(n),l=void 0;l=this.pressingUpOrDown?c:this.inputting?this.rawInput:this.toPrecisionAsStep(c),this.setState({
// eslint-disable-line
sValue:c,inputValue:l})}
// Trigger onChange when max or min change
// https://github.com/ant-design/ant-design/issues/11574
var u="value"in s?n:this.sValue;
// ref: null < 20 === true
// https://github.com/ant-design/ant-design/issues/14277
"max"in s&&o.max!==r&&"number"==typeof u&&u>r&&this.$emit("change",r),"min"in s&&o.min!==i&&"number"==typeof u&&u<i&&this.$emit("change",i)}this.prevProps=Q()({},s),this.$nextTick((function(){e.updatedFunc()}))},beforeDestroy:function(){this.stop()},methods:{updatedFunc:function(){var e=this.$refs.inputRef;
// Restore cursor
try{
// Firefox set the input cursor after it get focused.
// This caused that if an input didn't init with the selection,
// set will cause cursor not correct when first focus.
// Safari will focus input if set selection. We need skip this.
if(void 0!==this.cursorStart&&this.focused)
// In most cases, the string after cursor is stable.
// We can move the cursor before it
if(
// If not match full str, try to match part of str
this.partRestoreByAfter(this.cursorAfter)||this.sValue===this.value){if(this.currentValue===e.value)
// Handle some special key code
switch(this.lastKeyCode){case Z.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case Z.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{
// If not match any of then, let's just keep the position
// TODO: Logic should not reach here, need check if happens
var t=this.cursorStart+1;
// If not have last string, just position to the end
this.cursorAfter?this.lastKeyCode===Z.a.BACKSPACE?t=this.cursorStart-1:this.lastKeyCode===Z.a.DELETE&&(t=this.cursorStart):t=e.value.length,this.fixCaret(t,t)}}catch(e){}
// Do nothing
// Reset last key
this.lastKeyCode=null,
// pressingUpOrDown is true means that someone just click up or down button
this.pressingUpOrDown&&(this.focusOnUpDown&&this.focused&&document.activeElement!==e&&this.focus(),this.pressingUpOrDown=!1)},onKeyDown:function(e){if(e.keyCode===Z.a.UP){var t=this.getRatio(e);this.up(e,t),this.stop()}else if(e.keyCode===Z.a.DOWN){var n=this.getRatio(e);this.down(e,n),this.stop()}else e.keyCode===Z.a.ENTER&&this.$emit("pressEnter",e);
// Trigger user key down
this.recordCursorPosition(),this.lastKeyCode=e.keyCode;for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];this.$emit.apply(this,["keydown",e].concat(g()(i)))},onKeyUp:function(e){this.stop(),this.recordCursorPosition();for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["keyup",e].concat(g()(n)))},onChange:function(e){this.focused&&(this.inputting=!0),this.rawInput=this.parser(this.getValueFromEvent(e)),this.setState({inputValue:this.rawInput}),this.$emit("change",this.toNumber(this.rawInput))},onFocus:function(){this.setState({focused:!0});for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["focus"].concat(g()(t)))},onBlur:function(){this.inputting=!1,this.setState({focused:!1});var e=this.getCurrentValidValue(this.inputValue),t=this.setValue(e);if(this.$listeners.blur){var n=this.$refs.inputRef.value,r=this.getInputDisplayValue({focused:!1,sValue:t});this.$refs.inputRef.value=r;for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];this.$emit.apply(this,["blur"].concat(g()(a))),this.$refs.inputRef.value=n}},getCurrentValidValue:function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t,10))?this.sValue:this.getValidValue(t),this.toNumber(t)},getRatio:function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},getValueFromEvent:function(e){
// optimize for chinese input expierence
// https://github.com/ant-design/ant-design/issues/8196
var t=e.target.value.trim().replace(/。/g,".");return Wc(this.decimalSeparator)&&(t=t.replace(this.decimalSeparator,".")),t},getValidValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.max,r=parseFloat(e,10);
// https://github.com/ant-design/ant-design/issues/7358
return isNaN(r)?e:(r<t&&(r=t),r>n&&(r=n),r)},setValue:function(e,t){
// trigger onChange
var n=this.$props.precision,r=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),i=this.$data,a=i.sValue,o=void 0===a?null:a,s=i.inputValue,c=void 0===s?null:s,l="number"==typeof r?r.toFixed(n):""+r,u=r!==o||l!==""+c;return Object(N.s)(this,"value")?
// always set input value same as value
this.setState({inputValue:this.toPrecisionAsStep(this.sValue)},t):this.setState({sValue:r,inputValue:this.toPrecisionAsStep(e)},t),u&&this.$emit("change",r),r},getPrecision:function(e){if(Wc(this.precision))return this.precision;var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},
// step={1.0} value={1.51}
// press +
// then value should be 2.51, rather than 2.5
// if this.$props.precision is undefined
// https://github.com/react-component/input-number/issues/39
getMaxPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(Wc(this.precision))return this.precision;var n=this.step,r=this.getPrecision(t),i=this.getPrecision(n),a=this.getPrecision(e);return e?Math.max(a,r+i):r+i},getPrecisionFactor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)},getInputDisplayValue:function(e){var t=e||this.$data,n=t.focused,r=t.inputValue,i=t.sValue,a=void 0;null==(a=n?r:this.toPrecisionAsStep(i))&&(a="");var o=this.formatWrapper(a);return Wc(this.$props.decimalSeparator)&&(o=o.toString().replace(".",this.$props.decimalSeparator)),o},recordCursorPosition:function(){
// Record position
try{var e=this.$refs.inputRef;this.cursorStart=e.selectionStart,this.cursorEnd=e.selectionEnd,this.currentValue=e.value,this.cursorBefore=e.value.substring(0,this.cursorStart),this.cursorAfter=e.value.substring(this.cursorEnd)}catch(e){
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}},fixCaret:function(e,t){if(void 0!==e&&void 0!==t&&this.$refs.inputRef&&this.$refs.inputRef.value)try{var n=this.$refs.inputRef,r=n.selectionStart,i=n.selectionEnd;e===r&&t===i||n.setSelectionRange(e,t)}catch(e){
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}},restoreByAfter:function(e){if(void 0===e)return!1;var t=this.$refs.inputRef.value,n=t.lastIndexOf(e);if(-1===n)return!1;var r=this.cursorBefore.length;return this.lastKeyCode===Z.a.DELETE&&this.cursorBefore.charAt(r-1)===e[0]?(this.fixCaret(r,r),!0):n+e.length===t.length&&(this.fixCaret(n,n),!0)},partRestoreByAfter:function(e){var t=this;return void 0!==e&&Array.prototype.some.call(e,(function(n,r){var i=e.substring(r);return t.restoreByAfter(i)}));
// For loop from full str to the str with last char to map. e.g. 123
// -> 123
// -> 23
// -> 3
},focus:function(){this.$refs.inputRef.focus(),this.recordCursorPosition()},blur:function(){this.$refs.inputRef.blur()},formatWrapper:function(e){
// http://2ality.com/2012/03/signedzero.html
// https://github.com/ant-design/ant-design/issues/9439
return this.formatter?this.formatter(e):e},toPrecisionAsStep:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)},
// '1.' '1x' 'xx' '' => are not complete numbers
isNotCompleteNumber:function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},toNumber:function(e){var t=this.$props,n=t.precision,r=t.autoFocus,i=this.focused,a=void 0===i?r:i,o=e&&e.length>16&&a;return this.isNotCompleteNumber(e)||o?e:Wc(n)?Math.round(e*Math.pow(10,n))/Math.pow(10,n):Number(e)},upStep:function(e,t){var n=this.step,r=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t)),a=((r*e+r*n*t)/r).toFixed(i);return this.toNumber(a)},downStep:function(e,t){var n=this.step,r=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t)),a=((r*e-r*n*t)/r).toFixed(i);return this.toNumber(a)},stepFn:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments[3];if(this.stop(),t&&
// e.persist()
t.preventDefault(),!this.disabled){var a=this.max,o=this.min,s=this.getCurrentValidValue(this.inputValue)||0;if(!this.isNotCompleteNumber(s)){var c=this[e+"Step"](s,r),l=c>a||c<o;c>a?c=a:c<o&&(c=o),this.setValue(c),this.setState({focused:!0}),l||(this.autoStepTimer=setTimeout((function(){n[e](t,r,!0)}),i?200:600))}}},stop:function(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)},down:function(e,t,n){this.pressingUpOrDown=!0,this.stepFn("down",e,t,n)},up:function(e,t,n){this.pressingUpOrDown=!0,this.stepFn("up",e,t,n)},handleInputClick:function(){this.$emit("click")}},render:function(){var e,t=arguments[0],n=this.$props,r=n.prefixCls,i=n.disabled,a=n.readOnly,s=n.useTouch,c=n.autoComplete,u=n.upHandler,h=n.downHandler,f=l()((e={},o()(e,r,!0),o()(e,r+"-disabled",i),o()(e,r+"-focused",this.focused),e)),d="",p="",g=this.sValue;if(g||0===g)if(isNaN(g))d=r+"-handler-up-disabled",p=r+"-handler-down-disabled";else{var m=Number(g);m>=this.max&&(d=r+"-handler-up-disabled"),m<=this.min&&(p=r+"-handler-down-disabled")}var v=!this.readOnly&&!this.disabled,y=this.getInputDisplayValue(),A=void 0,b=void 0;
// focus state, show input value
// unfocus state, show valid value
s?(A={touchstart:v&&!d?this.up:Uc,touchend:this.stop},b={touchstart:v&&!p?this.down:Uc,touchend:this.stop}):(A={mousedown:v&&!d?this.up:Uc,mouseup:this.stop,mouseleave:this.stop},b={mousedown:v&&!p?this.down:Uc,mouseup:this.stop,mouseleave:this.stop});var w=!!d||i||a,x=!!p||i||a,C=Object(N.k)(this),_=C.mouseenter,I=void 0===_?Uc:_,E=C.mouseleave,k=void 0===E?Uc:E,S=C.mouseover,B=void 0===S?Uc:S,M=C.mouseout,T={props:{disabled:x,prefixCls:r},attrs:{unselectable:"unselectable",role:"button","aria-label":"Decrease Value","aria-disabled":!!x},class:r+"-handler "+r+"-handler-down "+p,on:b,ref:"down"};
// ref for test
return t("div",{on:{mouseenter:I,mouseleave:k,mouseover:B,mouseout:void 0===M?Uc:M},class:f,attrs:{title:this.$props.title}},[t("div",{class:r+"-handler-wrap"},[t(Hc,{props:{disabled:w,prefixCls:r},attrs:{unselectable:"unselectable",role:"button","aria-label":"Increase Value","aria-disabled":!!w},class:r+"-handler "+r+"-handler-up "+d,on:A,ref:"up"},[u||t("span",{attrs:{unselectable:"unselectable"},class:r+"-handler-up-inner",on:{click:Gc}})]),t(Hc,T,[h||t("span",{attrs:{unselectable:"unselectable"},class:r+"-handler-down-inner",on:{click:Gc}})])]),t("div",{class:r+"-input-wrap"},[t("input",{attrs:{role:"spinbutton","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":g,required:this.required,type:this.type,placeholder:this.placeholder,tabIndex:this.tabIndex,autoComplete:c,readOnly:this.readOnly,disabled:this.disabled,max:this.max,min:this.min,step:this.step,name:this.name,title:this.title,id:this.id,pattern:this.pattern},on:{click:this.handleInputClick,focus:this.onFocus,blur:this.onBlur,keydown:v?this.onKeyDown:Uc,keyup:v?this.onKeyUp:Uc,input:this.onChange},class:r+"-input",ref:"inputRef",domProps:{value:y}})])])}},$c={prefixCls:s.a.string,min:s.a.number,max:s.a.number,value:s.a.oneOfType([s.a.number,s.a.string]),step:s.a.oneOfType([s.a.number,s.a.string]),defaultValue:s.a.oneOfType([s.a.number,s.a.string]),tabIndex:s.a.number,disabled:s.a.bool,size:s.a.oneOf(["large","small","default"]),formatter:s.a.func,parser:s.a.func,decimalSeparator:s.a.string,placeholder:s.a.string,name:s.a.string,id:s.a.string,precision:s.a.number,autoFocus:s.a.bool},Jc={name:"AInputNumber",model:{prop:"value",event:"change"},props:Object(N.t)($c,{step:1}),inject:{configProvider:{default:function(){return A.a}}},methods:{focus:function(){this.$refs.inputNumberRef.focus()},blur:function(){this.$refs.inputNumberRef.blur()}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.size,a=X()(n,["prefixCls","size"]),s=(0,this.configProvider.getPrefixCls)("input-number",r),c=l()((e={},o()(e,s+"-lg","large"===i),o()(e,s+"-sm","small"===i),e)),u=t(We.a,{attrs:{type:"up"},class:s+"-handler-up-inner"}),h=t(We.a,{attrs:{type:"down"},class:s+"-handler-down-inner"}),f={props:Q()({prefixCls:s,upHandler:u,downHandler:h},a),class:c,ref:"inputNumberRef",on:Object(N.k)(this)};return t(Kc,f)},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Jc.name,Jc)}},Xc=Jc,Zc={prefixCls:s.a.string,hasSider:s.a.boolean,tagName:s.a.string};
/**
 * When click and hold on a button - the delay before auto changin the value.
 */function el(e){var t=e.suffixCls,n=e.tagName,r=e.name;return function(e){return{name:r,props:e.props,inject:{configProvider:{default:function(){return A.a}}},render:function(){var r=arguments[0],i=this.$props.prefixCls,a=(0,this.configProvider.getPrefixCls)(t,i),o={props:Q()({prefixCls:a},Object(N.l)(this),{tagName:n}),on:Object(N.k)(this)};return r(e,o,[this.$slots.default])}}}}var tl={props:Zc,render:function(){var e=arguments[0],t=this.prefixCls,n=this.tagName,r=this.$slots;return e(n,{class:t,on:Object(N.k)(this)},[r.default])}},nl={props:Zc,data:function(){return{siders:[]}},provide:function(){var e=this;return{siderHook:{addSider:function(t){e.siders=[].concat(g()(e.siders),[t])},removeSider:function(t){e.siders=e.siders.filter((function(e){return e!==t}))}}}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.$slots,r=this.hasSider;return e(this.tagName,{class:l()(t,o()({},t+"-has-sider","boolean"==typeof r?r:this.siders.length>0)),on:N.k},[n.default])}},rl=el({suffixCls:"layout",tagName:"section",name:"ALayout"})(nl),il=el({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(tl),al=el({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(tl),ol=el({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(tl);rl.Header=il,rl.Footer=al,rl.Content=ol;
/* harmony default export */var sl=rl;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/layout/Sider.js
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
if("undefined"!=typeof window){window.matchMedia=window.matchMedia||function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}}}var cl,ll={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ul={prefixCls:s.a.string,collapsible:s.a.bool,collapsed:s.a.bool,defaultCollapsed:s.a.bool,reverseArrow:s.a.bool,
// onCollapse?: (collapsed: boolean, type: CollapseType) => void;
zeroWidthTriggerStyle:s.a.object,trigger:s.a.any,width:s.a.oneOfType([s.a.number,s.a.string]),collapsedWidth:s.a.oneOfType([s.a.number,s.a.string]),breakpoint:s.a.oneOf(["xs","sm","md","lg","xl","xxl"]),theme:s.a.oneOf(["light","dark"]).def("dark")},hl=(cl=0,function(){return""+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+(cl+=1)}),fl={name:"ALayoutSider",__ANT_LAYOUT_SIDER:!0,mixins:[d.a],model:{prop:"collapsed",event:"collapse"},props:Object(N.t)(ul,{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),data:function(){this.uniqueId=hl("ant-sider-");var e=void 0;"undefined"!=typeof window&&(e=window.matchMedia);var t=Object(N.l)(this);e&&t.breakpoint&&t.breakpoint in ll&&(this.mql=e("(max-width: "+ll[t.breakpoint]+")"));return{sCollapsed:"collapsed"in t?t.collapsed:t.defaultCollapsed,below:!1,belowShow:!1}},provide:function(){return{layoutSiderContext:this}},inject:{siderHook:{default:function(){return{}}},configProvider:{default:function(){return A.a}}},
// getChildContext() {
//   return {
//     siderCollapsed: this.state.collapsed,
//     collapsedWidth: this.props.collapsedWidth,
//   };
// }
watch:{collapsed:function(e){this.setState({sCollapsed:e})}},mounted:function(){var e=this;this.$nextTick((function(){e.mql&&(e.mql.addListener(e.responsiveHandler),e.responsiveHandler(e.mql)),e.siderHook.addSider&&e.siderHook.addSider(e.uniqueId)}))},beforeDestroy:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.siderHook.removeSider&&this.siderHook.removeSider(this.uniqueId)},methods:{responsiveHandler:function(e){this.setState({below:e.matches}),this.$emit("breakpoint",e.matches),this.sCollapsed!==e.matches&&this.setCollapsed(e.matches,"responsive")},setCollapsed:function(e,t){Object(N.s)(this,"collapsed")||this.setState({sCollapsed:e}),this.$emit("collapse",e,t)},toggle:function(){var e=!this.sCollapsed;this.setCollapsed(e,"clickTrigger")},belowShowChange:function(){this.setState({belowShow:!this.belowShow})}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.theme,a=n.collapsible,s=n.reverseArrow,c=n.width,u=n.collapsedWidth,h=n.zeroWidthTriggerStyle,f=(0,this.configProvider.getPrefixCls)("layout-sider",r),d=Object(N.g)(this,"trigger"),p=this.sCollapsed?u:c,g=nn(p)?p+"px":String(p),m=0===parseFloat(String(u||0))?t("span",{on:{click:this.toggle},class:f+"-zero-width-trigger "+f+"-zero-width-trigger-"+(s?"right":"left"),style:h},[t(We.a,{attrs:{type:"bars"}})]):null,v={expanded:t(We.a,s?{attrs:{type:"right"}}:{attrs:{type:"left"}}),collapsed:t(We.a,s?{attrs:{type:"left"}}:{attrs:{type:"right"}})}[this.sCollapsed?"collapsed":"expanded"],y=null!==d?m||t("div",{class:f+"-trigger",on:{click:this.toggle},style:{width:g}},[d||v]):null,A={
// ...style,
flex:"0 0 "+g,maxWidth:g,// Fix width transition bug in IE11
minWidth:g,// https://github.com/ant-design/ant-design/issues/6349
width:g},b=l()(f,f+"-"+i,(e={},o()(e,f+"-collapsed",!!this.sCollapsed),o()(e,f+"-has-trigger",a&&null!==d&&!m),o()(e,f+"-below",!!this.below),o()(e,f+"-zero-width",0===parseFloat(g)),e));return t("aside",{on:Object(N.k)(this),class:b,style:A},[t("div",{class:f+"-children"},[this.$slots.default]),a||this.below&&m?y:null])}};
// export type CollapseType = 'clickTrigger' | 'responsive';
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/layout/index.js
sl.Sider=fl,
/* istanbul ignore next */
sl.install=function(e){e.use(b.a),e.component(sl.name,sl),e.component(sl.Header.name,sl.Header),e.component(sl.Footer.name,sl.Footer),e.component(sl.Sider.name,sl.Sider),e.component(sl.Content.name,sl.Content)};
/* harmony default export */var dl=sl,pl=s.a.oneOf(["small","default","large"]),gl=function(){return{prefixCls:s.a.string,spinning:s.a.bool,size:pl,wrapperClassName:s.a.string,tip:s.a.string,delay:s.a.number,indicator:s.a.any}},ml=void 0;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/spin/Spin.js
/* harmony default export */var vl={name:"ASpin",mixins:[d.a],props:Object(N.t)(gl(),{size:"default",spinning:!0,wrapperClassName:""}),inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this.spinning,t=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(e,this.delay);return this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props),{sSpinning:e&&!t}},mounted:function(){this.updateSpinning()},updated:function(){var e=this;this.$nextTick((function(){e.debouncifyUpdateSpinning(),e.updateSpinning()}))},beforeDestroy:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var t=(e||this.$props).delay;t&&(this.cancelExistingSpin(),this.updateSpinning=ci()(this.originalUpdateSpinning,t))},updateSpinning:function(){var e=this.spinning;this.sSpinning!==e&&this.setState({sSpinning:e})},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},getChildren:function(){return this.$slots&&this.$slots.default?Object(N.c)(this.$slots.default):null},renderIndicator:function(e,t){
// const h = this.$createElement
var n=t+"-dot",r=Object(N.g)(this,"indicator");
// should not be render default indicator when indicator value is null
return null===r?null:(Array.isArray(r)&&(r=1===(r=Object(N.c)(r)).length?r[0]:r),Object(N.w)(r)?Object(ce.a)(r,{class:n}):ml&&Object(N.w)(ml(e))?Object(ce.a)(ml(e),{class:n}):e("span",{class:n+" "+t+"-dot-spin"},[e("i",{class:t+"-dot-item"}),e("i",{class:t+"-dot-item"}),e("i",{class:t+"-dot-item"}),e("i",{class:t+"-dot-item"})]))}},render:function(e){var t,n=this.$props,r=n.size,a=n.prefixCls,s=n.tip,c=n.wrapperClassName,l=X()(n,["size","prefixCls","tip","wrapperClassName"]),u=(0,this.configProvider.getPrefixCls)("spin",a),h=this.sSpinning,f=(t={},o()(t,u,!0),o()(t,u+"-sm","small"===r),o()(t,u+"-lg","large"===r),o()(t,u+"-spinning",h),o()(t,u+"-show-text",!!s),t),d=e("div",i()([l,{class:f}]),[this.renderIndicator(e,u),s?e("div",{class:u+"-text"},[s]):null]),p=this.getChildren();if(p){var g,m=(g={},o()(g,u+"-container",!0),o()(g,u+"-blur",h),g);return e("div",i()([{on:Object(N.k)(this)},{class:[u+"-nested-loading",c]}]),[h&&e("div",{key:"loading"},[d]),e("div",{class:m,key:"container"},[p])])}return d},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/spin/index.js
setDefaultIndicator:function(e){ml="function"==typeof e.indicator?e.indicator:function(t){return t(e.indicator)}},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(vl.name,vl)}},yl=vl,Al={props:Q()({},$e),Option:et.Option,render:function(){var e=arguments[0],t=Object(N.l)(this),n={props:Q()({},t,{size:"small"}),on:Object(N.k)(this)};return e(et,n,[Object(N.c)(this.$slots.default)])}},bl={name:"Pager",props:{rootPrefixCls:s.a.string,page:s.a.number,active:s.a.bool,last:s.a.bool,locale:s.a.object,showTitle:s.a.bool,itemRender:{type:Function,default:function(){}}},methods:{handleClick:function(){this.$emit("click",this.page)},handleKeyPress:function(e){this.$emit("keypress",e,this.handleClick,this.page)}},render:function(){var e,t=arguments[0],n=this.$props,r=n.rootPrefixCls+"-item";return t("li",{class:l()(r,r+"-"+n.page,(e={},o()(e,r+"-active",n.active),o()(e,r+"-disabled",!n.page),e)),on:{click:this.handleClick,keypress:this.handleKeyPress},attrs:{title:this.showTitle?this.page:null,tabIndex:"0"}},[this.itemRender(this.page,"page",t("a",[this.page]))])}},wl=13,xl=38,Cl=40,_l={mixins:[d.a],props:{disabled:s.a.bool,changeSize:s.a.func,quickGo:s.a.func,selectComponentClass:s.a.any,current:s.a.number,pageSizeOptions:s.a.array.def(["10","20","30","40"]),pageSize:s.a.number,buildOptionText:s.a.func,locale:s.a.object,rootPrefixCls:s.a.string,selectPrefixCls:s.a.string,goButton:s.a.any},data:function(){return{goInputText:""}},methods:{getValidValue:function(){var e=this.goInputText,t=this.current;return!e||isNaN(e)?t:Number(e)},defaultBuildOptionText:function(e){return e.value+" "+this.locale.items_per_page},handleChange:function(e){var t=e.target,n=t.value,r=t.composing;e.isComposing||r||this.goInputText===n||this.setState({goInputText:n})},handleBlur:function(e){var t=this.$props,n=t.goButton,r=t.quickGo,i=t.rootPrefixCls;n||e.relatedTarget&&(e.relatedTarget.className.indexOf(i+"-prev")>=0||e.relatedTarget.className.indexOf(i+"-next")>=0)||r(this.getValidValue())},go:function(e){""!==this.goInputText&&(e.keyCode!==wl&&"click"!==e.type||(
// https://github.com/vueComponent/ant-design-vue/issues/1316
this.quickGo(this.getValidValue()),this.setState({goInputText:""})))}},render:function(){var e=this,t=arguments[0],n=this.rootPrefixCls,r=this.locale,a=this.changeSize,o=this.quickGo,s=this.goButton,c=this.selectComponentClass,l=this.defaultBuildOptionText,u=this.selectPrefixCls,h=this.pageSize,f=this.pageSizeOptions,d=this.goInputText,p=this.disabled,g=n+"-options",m=null,v=null,y=null;if(!a&&!o)return null;if(a&&c){var A=this.buildOptionText||l,b=f.map((function(e,n){return t(c.Option,{key:n,attrs:{value:e}},[A({value:e})])}));m=t(c,{attrs:{disabled:p,prefixCls:u,showSearch:!1,optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(h||f[0]).toString(),getPopupContainer:function(e){return e.parentNode}},class:g+"-size-changer",on:{change:function(t){return e.changeSize(Number(t))}}},[b])}return o&&(s&&(y="boolean"==typeof s?t("button",{attrs:{type:"button",disabled:p},on:{click:this.go,keyup:this.go}},[r.jump_to_confirm]):t("span",{on:{click:this.go,keyup:this.go}},[s])),v=t("div",{class:g+"-quick-jumper"},[r.jump_to,t("input",i()([{attrs:{disabled:p,type:"text"},domProps:{value:d},on:{input:this.handleChange,keyup:this.go,blur:this.handleBlur}},{directives:[{name:"ant-input"}]}])),r.page,y])),t("li",{class:""+g},[m,v])}},Il=n("3579");function El(e,t,n){var r=e;return void 0===r&&(r=t.statePageSize),Math.floor((n.total-1)/r)+1}
/* harmony default export */var kl={name:"Pagination",mixins:[d.a],model:{prop:"current",event:"change.current"},props:{disabled:s.a.bool,prefixCls:s.a.string.def("rc-pagination"),selectPrefixCls:s.a.string.def("rc-select"),current:s.a.number,defaultCurrent:s.a.number.def(1),total:s.a.number.def(0),pageSize:s.a.number,defaultPageSize:s.a.number.def(10),hideOnSinglePage:s.a.bool.def(!1),showSizeChanger:s.a.bool.def(!1),showLessItems:s.a.bool.def(!1),
// showSizeChange: PropTypes.func.def(noop),
selectComponentClass:s.a.any,showPrevNextJumpers:s.a.bool.def(!0),showQuickJumper:s.a.oneOfType([s.a.bool,s.a.object]).def(!1),showTitle:s.a.bool.def(!0),pageSizeOptions:s.a.arrayOf(s.a.string),buildOptionText:s.a.func,showTotal:s.a.func,simple:s.a.bool,locale:s.a.object.def(Il.a),itemRender:s.a.func.def((function(e,t,n){return n})),prevIcon:s.a.any,nextIcon:s.a.any,jumpPrevIcon:s.a.any,jumpNextIcon:s.a.any},data:function(){var e=Object(N.l)(this),t=(this.onChange,this.defaultCurrent);"current"in e&&(t=this.current);var n=this.defaultPageSize;return"pageSize"in e&&(n=this.pageSize),{stateCurrent:t=Math.min(t,El(n,void 0,e)),stateCurrentInputValue:t,statePageSize:n}},watch:{current:function(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize:function(e){var t={},n=this.stateCurrent,r=El(e,this.$data,this.$props);n=n>r?r:n,Object(N.s)(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent:function(e,t){var n=this;
// When current page change, fix focused style of prev item
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
this.$nextTick((function(){if(n.$refs.paginationNode){var e=n.$refs.paginationNode.querySelector("."+n.prefixCls+"-item-"+t);e&&document.activeElement===e&&e.blur()}}))},total:function(){var e={},t=El(this.pageSize,this.$data,this.$props);if(Object(N.s)(this,"current")){var n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{var r=this.stateCurrent;r=0===r&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=r}this.setState(e)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(El(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(e){var t=this.$createElement,n=this.$props.prefixCls;return Object(N.g)(this,e,this.$props)||t("a",{class:n+"-item-link"})},getValidValue:function(e){var t=e.target.value,n=El(void 0,this.$data,this.$props),r=this.$data.stateCurrentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)},isValid:function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==this.stateCurrent;
// 是否是正整数
var t},shouldDisplayQuickJumper:function(){var e=this.$props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},
// calculatePage (p) {
//   let pageSize = p
//   if (typeof pageSize === 'undefined') {
//     pageSize = this.statePageSize
//   }
//   return Math.floor((this.total - 1) / pageSize) + 1
// },
handleKeyDown:function(e){e.keyCode!==xl&&e.keyCode!==Cl||e.preventDefault()},handleKeyUp:function(e){if(!e.isComposing&&!e.target.composing){var t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===wl?this.handleChange(t):e.keyCode===xl?this.handleChange(t-1):e.keyCode===Cl&&this.handleChange(t+1)}},changePageSize:function(e){var t=this.stateCurrent,n=t,r=El(e,this.$data,this.$props);t=t>r?r:t,
// fix the issue:
// Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
0===r&&(t=this.stateCurrent),"number"==typeof e&&(Object(N.s)(this,"pageSize")||this.setState({statePageSize:e}),Object(N.s)(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.$emit("update:pageSize",e),this.$emit("showSizeChange",t,e),t!==n&&this.$emit("change.current",t,e)},handleChange:function(e){var t=this.$props.disabled,n=e;if(this.isValid(n)&&!t){var r=El(void 0,this.$data,this.$props);return n>r?n=r:n<1&&(n=1),Object(N.s)(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),
// this.$emit('input', page)
this.$emit("change.current",n,this.statePageSize),this.$emit("change",n,this.statePageSize),n}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrent<El(void 0,this.$data,this.$props)},runIfEnter:function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t.apply(void 0,g()(r))}},runIfEnterPrev:function(e){this.runIfEnter(e,this.prev)},runIfEnterNext:function(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev:function(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext:function(e){this.runIfEnter(e,this.jumpNext)},handleGoTO:function(e){e.keyCode!==wl&&"click"!==e.type||this.handleChange(this.stateCurrentInputValue)}},render:function(){var e,t=arguments[0],n=this.$props,r=n.prefixCls,a=n.disabled;
// When hideOnSinglePage is true and there is only 1 page, hide the pager
if(!0===this.hideOnSinglePage&&this.total<=this.statePageSize)return null;var s=this.$props,c=this.locale,l=El(void 0,this.$data,this.$props),u=[],h=null,f=null,d=null,p=null,g=null,m=this.showQuickJumper&&this.showQuickJumper.goButton,v=this.showLessItems?1:2,y=this.stateCurrent,A=this.statePageSize,b=y-1>0?y-1:0,w=y+1<l?y+1:l;if(this.simple){m&&(g="boolean"==typeof m?t("button",{attrs:{type:"button"},on:{click:this.handleGoTO,keyup:this.handleGoTO}},[c.jump_to_confirm]):t("span",{on:{click:this.handleGoTO,keyup:this.handleGoTO}},[m]),g=t("li",{attrs:{title:this.showTitle?""+c.jump_to+this.stateCurrent+"/"+l:null},class:r+"-simple-pager"},[g]));var x=this.hasPrev(),C=this.hasNext();return t("ul",{class:r+" "+r+"-simple"},[t("li",{attrs:{title:this.showTitle?c.prev_page:null,tabIndex:x?0:null,"aria-disabled":!this.hasPrev()},on:{click:this.prev,keypress:this.runIfEnterPrev},class:(x?"":r+"-disabled")+" "+r+"-prev"},[this.itemRender(b,"prev",this.getItemIcon("prevIcon"))]),t("li",{attrs:{title:this.showTitle?y+"/"+l:null},class:r+"-simple-pager"},[t("input",i()([{attrs:{type:"text",size:"3"},domProps:{value:this.stateCurrentInputValue},on:{keydown:this.handleKeyDown,keyup:this.handleKeyUp,input:this.handleKeyUp}},{directives:[{name:"ant-input"}]}])),t("span",{class:r+"-slash"},["／"]),l]),t("li",{attrs:{title:this.showTitle?c.next_page:null,tabIndex:this.hasNext?0:null,"aria-disabled":!this.hasNext()},on:{click:this.next,keypress:this.runIfEnterNext},class:(C?"":r+"-disabled")+" "+r+"-next"},[this.itemRender(w,"next",this.getItemIcon("nextIcon"))]),g])}if(l<=5+2*v){var _={props:{locale:c,rootPrefixCls:r,showTitle:s.showTitle,itemRender:s.itemRender},on:{click:this.handleChange,keypress:this.runIfEnter}};l||u.push(t(bl,i()([_,{key:"noPager",attrs:{page:l},class:r+"-disabled"}])));for(var I=1;I<=l;I++){var E=y===I;u.push(t(bl,i()([_,{key:I,attrs:{page:I,active:E}}])))}}else{var k=this.showLessItems?c.prev_3:c.prev_5,S=this.showLessItems?c.next_3:c.next_5;if(this.showPrevNextJumpers){var B=r+"-jump-prev";s.jumpPrevIcon&&(B+=" "+r+"-jump-prev-custom-icon"),h=t("li",{attrs:{title:this.showTitle?k:null,tabIndex:"0"},key:"prev",on:{click:this.jumpPrev,keypress:this.runIfEnterJumpPrev},class:B},[this.itemRender(this.getJumpPrevPage(),"jump-prev",this.getItemIcon("jumpPrevIcon"))]);var M=r+"-jump-next";s.jumpNextIcon&&(M+=" "+r+"-jump-next-custom-icon"),f=t("li",{attrs:{title:this.showTitle?S:null,tabIndex:"0"},key:"next",on:{click:this.jumpNext,keypress:this.runIfEnterJumpNext},class:M},[this.itemRender(this.getJumpNextPage(),"jump-next",this.getItemIcon("jumpNextIcon"))])}p=t(bl,{attrs:{locale:c,last:!0,rootPrefixCls:r,page:l,active:!1,showTitle:this.showTitle,itemRender:this.itemRender},on:{click:this.handleChange,keypress:this.runIfEnter},key:l}),d=t(bl,{attrs:{locale:c,rootPrefixCls:r,page:1,active:!1,showTitle:this.showTitle,itemRender:this.itemRender},on:{click:this.handleChange,keypress:this.runIfEnter},key:1});var T=Math.max(1,y-v),O=Math.min(y+v,l);y-1<=v&&(O=1+2*v),l-y<=v&&(T=l-2*v);for(var D=T;D<=O;D++){var P=y===D;u.push(t(bl,{attrs:{locale:c,rootPrefixCls:r,page:D,active:P,showTitle:this.showTitle,itemRender:this.itemRender},on:{click:this.handleChange,keypress:this.runIfEnter},key:D}))}y-1>=2*v&&3!==y&&(u[0]=t(bl,{attrs:{locale:c,rootPrefixCls:r,page:T,active:!1,showTitle:this.showTitle,itemRender:this.itemRender},on:{click:this.handleChange,keypress:this.runIfEnter},key:T,class:r+"-item-after-jump-prev"}),u.unshift(h)),l-y>=2*v&&y!==l-2&&(u[u.length-1]=t(bl,{attrs:{locale:c,rootPrefixCls:r,page:O,active:!1,showTitle:this.showTitle,itemRender:this.itemRender},on:{click:this.handleChange,keypress:this.runIfEnter},key:O,class:r+"-item-before-jump-next"}),u.push(f)),1!==T&&u.unshift(d),O!==l&&u.push(p)}var L=null;this.showTotal&&(L=t("li",{class:r+"-total-text"},[this.showTotal(this.total,[0===this.total?0:(y-1)*A+1,y*A>this.total?this.total:y*A])]));var Q=!this.hasPrev()||!l,R=!this.hasNext()||!l,j=this.buildOptionText||this.$scopedSlots.buildOptionText;return t("ul",{class:(e={},o()(e,""+r,!0),o()(e,r+"-disabled",a),e),attrs:{unselectable:"unselectable"},ref:"paginationNode"},[L,t("li",{attrs:{title:this.showTitle?c.prev_page:null,tabIndex:Q?null:0,"aria-disabled":Q},on:{click:this.prev,keypress:this.runIfEnterPrev},class:(Q?r+"-disabled":"")+" "+r+"-prev"},[this.itemRender(b,"prev",this.getItemIcon("prevIcon"))]),u,t("li",{attrs:{title:this.showTitle?c.next_page:null,tabIndex:R?null:0,"aria-disabled":R},on:{click:this.next,keypress:this.runIfEnterNext},class:(R?r+"-disabled":"")+" "+r+"-next"},[this.itemRender(w,"next",this.getItemIcon("nextIcon"))]),t(_l,{attrs:{disabled:a,locale:c,rootPrefixCls:r,selectComponentClass:this.selectComponentClass,selectPrefixCls:this.selectPrefixCls,changeSize:this.showSizeChanger?this.changePageSize:null,current:y,pageSize:A,pageSizeOptions:this.pageSizeOptions,buildOptionText:j||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:m}})])}},Sl=n("2deb"),Bl=function(){return{total:s.a.number,defaultCurrent:s.a.number,disabled:s.a.bool,current:s.a.number,defaultPageSize:s.a.number,pageSize:s.a.number,hideOnSinglePage:s.a.bool,showSizeChanger:s.a.bool,pageSizeOptions:s.a.arrayOf(s.a.oneOfType([s.a.number,s.a.string])),buildOptionText:s.a.func,showSizeChange:s.a.func,showQuickJumper:s.a.oneOfType([s.a.bool,s.a.object]),showTotal:s.a.any,size:s.a.string,simple:s.a.bool,locale:s.a.object,prefixCls:s.a.string,selectPrefixCls:s.a.string,itemRender:s.a.any,role:s.a.string,showLessItems:s.a.bool}},Ml={name:"APagination",model:{prop:"current",event:"change.current"},props:Q()({},Bl()),inject:{configProvider:{default:function(){return A.a}}},methods:{getIconsProps:function(e){var t=this.$createElement;return{prevIcon:t("a",{class:e+"-item-link"},[t(We.a,{attrs:{type:"left"}})]),nextIcon:t("a",{class:e+"-item-link"},[t(We.a,{attrs:{type:"right"}})]),jumpPrevIcon:t("a",{class:e+"-item-link"},[t("div",{class:e+"-item-container"},[t(We.a,{class:e+"-item-link-icon",attrs:{type:"double-left"}}),t("span",{class:e+"-item-ellipsis"},["•••"])])]),jumpNextIcon:t("a",{class:e+"-item-link"},[t("div",{class:e+"-item-container"},[t(We.a,{class:e+"-item-link-icon",attrs:{type:"double-right"}}),t("span",{class:e+"-item-ellipsis"},["•••"])])])}},renderPagination:function(e){var t=this.$createElement,n=Object(N.l)(this),r=n.prefixCls,i=n.selectPrefixCls,a=n.buildOptionText,o=n.size,s=n.locale,c=X()(n,["prefixCls","selectPrefixCls","buildOptionText","size","locale"]),l=this.configProvider.getPrefixCls,u=l("pagination",r),h=l("select",i),f="small"===o,d={props:Q()({prefixCls:u,selectPrefixCls:h},c,this.getIconsProps(u),{selectComponentClass:f?Al:et,locale:Q()({},e,s),buildOptionText:a||this.$scopedSlots.buildOptionText}),class:{mini:f},on:Object(N.k)(this)};return t(kl,d)}},render:function(){return(0,arguments[0])(vr.a,{attrs:{componentName:"Pagination",defaultLocale:Sl.a},scopedSlots:{default:this.renderPagination}})},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/pagination/index.js
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Ml.name,Ml)}},Tl=Ml,Ol={prefixCls:s.a.string,extra:s.a.any,actions:s.a.arrayOf(s.a.any),grid:Ql};
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/vc-pagination/locale/en_US.js
s.a.any,s.a.any,s.a.string,s.a.any;function Dl(e,t){return e[t]&&Math.floor(24/e[t])}
/* harmony default export */var Pl={name:"AListItem",Meta:{functional:!0,name:"AListItemMeta",__ANT_LIST_ITEM_META:!0,inject:{configProvider:{default:function(){return A.a}}},render:function(e,t){var n=t.props,r=t.slots,a=t.listeners,o=t.injections,s=r(),c=(0,o.configProvider.getPrefixCls)("list",n.prefixCls),l=n.avatar||s.avatar,u=n.title||s.title,h=n.description||s.description,f=e("div",{class:c+"-item-meta-content"},[u&&e("h4",{class:c+"-item-meta-title"},[u]),h&&e("div",{class:c+"-item-meta-description"},[h])]);return e("div",i()([{on:a},{class:c+"-item-meta"}]),[l&&e("div",{class:c+"-item-meta-avatar"},[l]),(u||h)&&f])}},props:Ol,inject:{listContext:{default:function(){return{}}},configProvider:{default:function(){return A.a}}},methods:{isItemContainsTextNodeAndNotSingular:function(){var e=this.$slots,t=void 0,n=e.default||[];return n.forEach((function(e){Object(N.v)(e)&&!Object(N.u)(e)&&(t=!0)})),t&&n.length>1},isFlexMode:function(){var e=Object(N.g)(this,"extra");return"vertical"===this.listContext.itemLayout?!!e:!this.isItemContainsTextNodeAndNotSingular()}},render:function(){var e=arguments[0],t=this.listContext,n=t.grid,r=t.itemLayout,a=this.prefixCls,s=this.$slots,c=Object(N.k)(this),u=(0,this.configProvider.getPrefixCls)("list",a),h=Object(N.g)(this,"extra"),f=Object(N.g)(this,"actions"),d=f&&f.length>0&&e("ul",{class:u+"-item-action",key:"actions"},[f.map((function(t,n){return e("li",{key:u+"-item-action-"+n},[t,n!==f.length-1&&e("em",{class:u+"-item-action-split"})])}))]),p=e(n?"div":"li",i()([{on:c},{class:l()(u+"-item",o()({},u+"-item-no-flex",!this.isFlexMode()))}]),["vertical"===r&&h?[e("div",{class:u+"-item-main",key:"content"},[s.default,d]),e("div",{class:u+"-item-extra",key:"extra"},[h])]:[s.default,d,Object(ce.a)(h,{key:"extra"})]]);return n?e(Oi,{attrs:{span:Dl(n,"column"),xs:Dl(n,"xs"),sm:Dl(n,"sm"),md:Dl(n,"md"),lg:Dl(n,"lg"),xl:Dl(n,"xl"),xxl:Dl(n,"xxl")}},[p]):p}},Ll=["",1,2,3,4,6,8,12,24],Ql={gutter:s.a.number,column:s.a.oneOf(Ll),xs:s.a.oneOf(Ll),sm:s.a.oneOf(Ll),md:s.a.oneOf(Ll),lg:s.a.oneOf(Ll),xl:s.a.oneOf(Ll),xxl:s.a.oneOf(Ll)},Rl=["small","default","large"],jl={Item:Pl,name:"AList",props:Object(N.t)({bordered:s.a.bool,dataSource:s.a.array,extra:s.a.any,grid:s.a.shape(Ql).loose,itemLayout:s.a.string,loading:s.a.oneOfType([s.a.bool,s.a.object]),loadMore:s.a.any,pagination:s.a.oneOfType([s.a.shape(Q()({},Bl(),{position:s.a.oneOf(["top","bottom","both"])})).loose,s.a.bool]),prefixCls:s.a.string,rowKey:s.a.any,renderItem:s.a.any,size:s.a.oneOf(Rl),split:s.a.bool,header:s.a.any,footer:s.a.any,locale:s.a.object},{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),provide:function(){return{listContext:this}},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=this;this.keys=[],this.defaultPaginationProps={current:1,pageSize:10,onChange:function(t,n){var r=e.pagination;e.paginationCurrent=t,r&&r.onChange&&r.onChange(t,n)},total:0},this.onPaginationChange=this.triggerPaginationEvent("onChange"),this.onPaginationShowSizeChange=this.triggerPaginationEvent("onShowSizeChange");var t=this.$props.pagination,n=t&&"object"===(void 0===t?"undefined":Y()(t))?t:{};return{paginationCurrent:n.defaultCurrent||1,paginationSize:n.defaultPageSize||10}},methods:{triggerPaginationEvent:function(e){var t=this;return function(n,r){var i=t.$props.pagination;t.paginationCurrent=n,t.paginationSize=r,i&&i[e]&&i[e](n,r)}},renderItem2:function(e,t){var n=this.$scopedSlots,r=this.rowKey,i=this.renderItem||n.renderItem;if(!i)return null;var a=void 0;return(a="function"==typeof r?r(e):"string"==typeof r?e[r]:e.key)||(a="list-item-"+t),this.keys[t]=a,i(e,t)},isSomethingAfterLastItem:function(){var e=this.pagination,t=Object(N.g)(this,"loadMore"),n=Object(N.g)(this,"footer");return!!(t||e||n)},renderEmpty:function(e,t){var n=this.$createElement,r=this.locale;return n("div",{class:e+"-empty-text"},[r&&r.emptyText||t(n,"List")])}},render:function(){var e,t=this,n=arguments[0],r=this.prefixCls,a=this.bordered,s=this.split,c=this.itemLayout,h=this.pagination,f=this.grid,d=this.dataSource,p=void 0===d?[]:d,m=this.size,v=this.loading,y=this.$slots,A=this.paginationCurrent,b=this.paginationSize,w=(0,this.configProvider.getPrefixCls)("list",r),x=Object(N.g)(this,"loadMore"),C=Object(N.g)(this,"footer"),_=Object(N.g)(this,"header"),I=Object(N.c)(y.default||[]),E=v;"boolean"==typeof E&&(E={spinning:E});var k=E&&E.spinning,S="";
// large => lg
// small => sm
switch(m){case"large":S="lg";break;case"small":S="sm"}var B=l()(w,(e={},o()(e,w+"-vertical","vertical"===c),o()(e,w+"-"+S,S),o()(e,w+"-split",s),o()(e,w+"-bordered",a),o()(e,w+"-loading",k),o()(e,w+"-grid",f),o()(e,w+"-something-after-last-item",this.isSomethingAfterLastItem()),e)),M=Q()({},this.defaultPaginationProps,{total:p.length,current:A,pageSize:b},h||{}),T=Math.ceil(M.total/M.pageSize);M.current>T&&(M.current=T);var O=M.class,D=M.style,P=X()(M,["class","style"]),L=h?n("div",{class:w+"-pagination"},[n(Tl,{props:Object(u.a)(P,["onChange"]),class:O,style:D,on:{change:this.onPaginationChange,showSizeChange:this.onPaginationShowSizeChange}})]):null,R=[].concat(g()(p));h&&p.length>(M.current-1)*M.pageSize&&(R=[].concat(g()(p)).splice((M.current-1)*M.pageSize,M.pageSize));var j=void 0;if(j=k&&n("div",{style:{minHeight:53}}),R.length>0){var F=R.map((function(e,n){return t.renderItem2(e,n)})).map((function(e,n){return Object(ce.a)(e,{key:t.keys[n]})}));j=f?n(Ei,{attrs:{gutter:f.gutter}},[F]):n("ul",{class:w+"-items"},[F])}else if(!I.length&&!k){var z=this.configProvider.renderEmpty;j=this.renderEmpty(w,z)}var H=M.position||"bottom";return n("div",i()([{class:B},{on:Object(N.k)(this)}]),[("top"===H||"both"===H)&&L,_&&n("div",{class:w+"-header"},[_]),n(yl,{props:E},[j,I]),C&&n("div",{class:w+"-footer"},[C]),x||("bottom"===H||"both"===H)&&L])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(jl.name,jl),e.component(jl.Item.name,jl.Item),e.component(jl.Item.Meta.name,jl.Item.Meta)}},Nl=jl,Fl=n("d49c");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/list/index.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-notification/Notice.js
function zl(){}
/* harmony default export */var Hl={mixins:[d.a],props:{duration:s.a.number.def(1.5),closable:s.a.bool,prefixCls:s.a.string,update:s.a.bool,closeIcon:s.a.any},watch:{duration:function(){this.restartCloseTimer()}},mounted:function(){this.startCloseTimer()},updated:function(){this.update&&this.restartCloseTimer()},beforeDestroy:function(){this.clearCloseTimer(),this.willDestroy=!0},methods:{close:function(e){e&&e.stopPropagation(),this.clearCloseTimer(),this.__emit("close")},startCloseTimer:function(){var e=this;this.clearCloseTimer(),!this.willDestroy&&this.duration&&(this.closeTimer=setTimeout((function(){e.close()}),1e3*this.duration))},clearCloseTimer:function(){this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null)},restartCloseTimer:function(){this.clearCloseTimer(),this.startCloseTimer()}},render:function(){var e,t=arguments[0],n=this.prefixCls,r=this.closable,i=this.clearCloseTimer,a=this.startCloseTimer,s=this.$slots,c=this.close,l=n+"-notice",u=(e={},o()(e,""+l,1),o()(e,l+"-closable",r),e),h=Object(N.q)(this),f=Object(N.g)(this,"closeIcon");return t("div",{class:u,style:h||{right:"50%"},on:{mouseenter:i,mouseleave:a,click:Object(N.k)(this).click||zl}},[t("div",{class:l+"-content"},[s.default]),r?t("a",{attrs:{tabIndex:"0"},on:{click:c},class:l+"-close"},[f||t("span",{class:l+"-close-x"})]):null])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-notification/Notification.js
function Ul(){}var Gl=0,Vl=Date.now();var Wl={mixins:[d.a],props:{prefixCls:s.a.string.def("rc-notification"),transitionName:s.a.string,animation:s.a.oneOfType([s.a.string,s.a.object]).def("fade"),maxCount:s.a.number,closeIcon:s.a.any},data:function(){return{notices:[]}},methods:{getTransitionName:function(){var e=this.$props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},add:function(e){var t=e.key=e.key||"rcNotification_"+Vl+"_"+Gl++,n=this.$props.maxCount;this.setState((function(r){var i=r.notices,a=i.map((function(e){return e.key})).indexOf(t),o=i.concat();return-1!==a?o.splice(a,1,e):(n&&i.length>=n&&(
// XXX, use key of first item to update new added (let React to move exsiting
// instead of remove and mount). Same key was used before for both a) external
// manual control and b) internal react 'key' prop , which is not that good.
e.updateKey=o[0].updateKey||o[0].key,o.shift()),o.push(e)),{notices:o}}))},remove:function(e){this.setState((function(t){return{notices:t.notices.filter((function(t){return t.key!==e}))}}))}},render:function(e){var t=this,n=this.prefixCls,r=this.notices,i=this.remove,a=this.getTransitionName,s=Object(se.a)(a()),c=r.map((function(a,o){var s=Boolean(o===r.length-1&&a.updateKey),c=a.updateKey?a.updateKey:a.key,l=a.content,u=a.duration,h=a.closable,f=a.onClose,d=a.style,p=a.class,g=vo(i.bind(t,a.key),f),m={props:{prefixCls:n,duration:u,closable:h,update:s,closeIcon:Object(N.g)(t,"closeIcon")},on:{close:g,click:a.onClick||Ul},style:d,class:p,key:c};return e(Hl,m,["function"==typeof l?l(e):l])})),l=o()({},n,1),u=Object(N.q)(this);return e("div",{class:l,style:u||{top:"65px",left:"50%"}},[e("transition-group",s,[c])])},newInstance:function(e,t){var n=e||{},r=n.getContainer,i=n.style,a=n.class,o=X()(n,["getContainer","style","class"]),s=document.createElement("div");r?r().appendChild(s):document.body.appendChild(s);new(b.a.Vue||oe.default)({el:s,mounted:function(){var e=this;this.$nextTick((function(){t({notice:function(t){e.$refs.notification.add(t)},removeNotice:function(t){e.$refs.notification.remove(t)},component:e,destroy:function(){e.$destroy(),e.$el.parentNode.removeChild(e.$el)}})}))},render:function(){return(0,arguments[0])(Wl,{props:o,ref:"notification",style:i,class:a})}})}},ql=Wl,Yl=3,Kl=void 0,$l=void 0,Jl=1,Xl="ant-message",Zl="move-up",eu=function(){return document.body},tu=void 0;
// export interface ConfigOptions {
//   top?: number;
//   duration?: number;
//   prefixCls?: string;
//   getContainer?: () => HTMLElement;
//   transitionName?: string;
// }
var nu={open:
// type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
function(e){var t=void 0!==e.duration?e.duration:Yl,n={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle",loading:"loading"}[e.type],r=e.key||Jl++,i=new Promise((function(i){var a=function(){return"function"==typeof e.onClose&&e.onClose(),i(!0)};!function(e){$l?e($l):ql.newInstance({prefixCls:Xl,transitionName:Zl,style:{top:Kl},// 覆盖原来的样式
getContainer:eu,maxCount:tu},(function(t){$l?e($l):($l=t,e(t))}))}((function(i){i.notice({key:r,duration:t,style:{},content:function(t){var r=t(We.a,{attrs:{type:n,theme:"loading"===n?"outlined":"filled"}}),i=n?r:"";return t("div",{class:Xl+"-custom-content"+(e.type?" "+Xl+"-"+e.type:"")},[e.icon?"function"==typeof e.icon?e.icon(t):e.icon:i,t("span",["function"==typeof e.content?e.content(t):e.content])])},onClose:a})}))})),a=function(){$l&&$l.removeNotice(r)};return a.then=function(e,t){return i.then(e,t)},a.promise=i,a}
// type ConfigContent = React.ReactNode | string;
// type ConfigDuration = number | (() => void);
// export type ConfigOnClose = () => void;
,config:function(e){void 0!==e.top&&(Kl=e.top,$l=null),void 0!==e.duration&&(Yl=e.duration),void 0!==e.prefixCls&&(Xl=e.prefixCls),void 0!==e.getContainer&&(eu=e.getContainer),void 0!==e.transitionName&&(Zl=e.transitionName,$l=null),void 0!==e.maxCount&&(tu=e.maxCount,$l=null)},destroy:function(){$l&&($l.destroy(),$l=null)}};["success","info","warning","error","loading"].forEach((function(e){nu[e]=function(t,n,r){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(t)?nu.open(Q()({},t,{type:e})):("function"==typeof n&&(r=n,n=void 0),nu.open({content:t,duration:n,type:e,onClose:r}))}})),nu.warn=nu.warning;
/* harmony default export */var ru=nu;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-mentions/src/util.js
/**
 * Cut input selection into 2 part and return text before selection start
 */function iu(e){return(e||"").toLowerCase()}
/**
 * Find the last match prefix index
 */
/**
 * Paint targetText into current text:
 *  text: little@litest
 *  targetText: light
 *  => little @light test
 */
function au(e,t){var n=t.measureLocation,r=t.prefix,i=t.targetText,a=t.selectionStart,o=t.split,s=e.slice(0,n);
// Before text will append one space if have other text
s[s.length-o.length]===o&&(s=s.slice(0,s.length-o.length)),s&&(s=""+s+o);
// Cut duplicate string with current targetText
var c=function(e,t,n){var r=e[0];if(!r||r===n)return e;
// Reuse rest text as it can
for(var i=e,a=t.length,o=0;o<a;o+=1){if(iu(i[o])!==iu(t[o])){i=i.slice(o);break}o===a-1&&(i=i.slice(a))}return i}(e.slice(a),i.slice(a-n-r.length),o);c.slice(0,o.length)===o&&(c=c.slice(o.length));var l=""+s+r+i+o;return{text:""+l+c,selectionLocation:l.length}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-mentions/src/Option.js
var ou={value:s.a.string,disabled:s.a.boolean,children:s.a.any},su={name:"Option",props:ou,render:function(){return null}};
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-mentions/src/DropdownMenu.js
function cu(){}
/* harmony default export */var lu={name:"DropdownMenu",props:{prefixCls:s.a.string,options:s.a.arrayOf(ou)},inject:{mentionsContext:{default:{}}},render:function(){var e=arguments[0],t=this.mentionsContext,n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,o=t.onFocus,s=void 0===o?cu:o,c=t.onBlur,l=void 0===c?cu:c,u=this.$props,h=u.prefixCls,f=u.options,d=f[r]||{};return e(de.a,{props:{prefixCls:h+"-menu",activeKey:d.value},on:{select:function(e){var t=e.key,n=f.find((function(e){return e.value===t}));a(n)},focus:s,blur:l}},[f.map((function(t,n){var r=t.value,a=t.disabled,o=t.children;return e(ne.a,{key:r,attrs:{disabled:a},on:{mouseenter:function(){i(n)}}},[o])})),!f.length&&e(ne.a,{attrs:{disabled:!0}},[n])])}},uu=["top","bottom"],hu={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},fu={name:"KeywordTrigger",props:{loading:s.a.bool,options:s.a.arrayOf(ou),prefixCls:s.a.string,placement:s.a.oneOf(uu),visible:s.a.bool,transitionName:s.a.string,getPopupContainer:s.a.func},methods:{getDropdownPrefix:function(){return this.$props.prefixCls+"-dropdown"},getDropdownElement:function(){var e=this.$createElement,t=this.$props.options;return e(lu,{attrs:{prefixCls:this.getDropdownPrefix(),options:t}})}},render:function(){var e=arguments[0],t=this.$props,n=t.visible,r=t.placement,i=t.transitionName,a=t.getPopupContainer,o=this.$slots.default,s=this.getDropdownElement();return e(fe.a,{attrs:{prefixCls:this.getDropdownPrefix(),popupVisible:n,popup:s,popupPlacement:"top"===r?"topRight":"bottomRight",popupTransitionName:i,builtinPlacements:hu,getPopupContainer:a}},[o])}},du={autoFocus:s.a.bool,prefix:s.a.oneOfType([s.a.string,s.a.array]),prefixCls:s.a.string,value:s.a.string,defaultValue:s.a.string,disabled:s.a.bool,notFoundContent:s.a.any,split:s.a.string,transitionName:s.a.string,placement:s.a.oneOf(uu),character:s.a.any,characterRender:s.a.func,filterOption:s.a.func,validateSearch:s.a.func,getPopupContainer:s.a.func},pu=Q()({},du,{children:s.a.any}),gu={prefix:"@",split:" ",validateSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).split;return!t||-1===e.indexOf(t)},filterOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).value,n=void 0===t?"":t,r=e.toLowerCase();return-1!==n.toLowerCase().indexOf(r)}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-mentions/src/placement.js
Object(N.t)(pu,gu);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-mentions/src/Mentions.js
function mu(){}var vu={name:"Mentions",mixins:[d.a],inheritAttrs:!1,model:{prop:"value",event:"change"},props:Object(N.t)(pu,gu),provide:function(){return{mentionsContext:this}},data:function(){var e=this.$props,t=e.value,n=void 0===t?"":t,r=e.defaultValue,i=void 0===r?"":r;return ae()(this.$props.children,"please children prop replace slots.default"),{_value:Object(N.s)(this,"value")?n:i,measuring:!1,measureLocation:0,measureText:null,measurePrefix:"",activeIndex:0,isFocus:!1}},watch:{value:function(e){this.$data._value=e}},updated:function(){var e=this;this.$nextTick((function(){
// Sync measure div top with textarea for rc-trigger usage
e.$data.measuring&&(e.$refs.measure.scrollTop=e.$refs.textarea.scrollTop)}))},methods:{triggerChange:function(e){"value"in Object(N.l)(this)?this.$forceUpdate():this.setState({_value:e}),this.$emit("change",e)},onChange:function(e){var t=e.target,n=t.value,r=t.composing;e.isComposing||r||this.triggerChange(n)},onKeyDown:function(e){var t=e.which,n=this.$data,r=n.activeIndex;
// Skip if not measuring
if(n.measuring)if(t===Z.a.UP||t===Z.a.DOWN){
// Control arrow function
var i=this.getOptions().length,a=(r+(t===Z.a.UP?-1:1)+i)%i;this.setState({activeIndex:a}),e.preventDefault()}else if(t===Z.a.ESC)this.stopMeasure();else if(t===Z.a.ENTER){
// Measure hit
e.preventDefault();var o=this.getOptions();if(!o.length)return void this.stopMeasure();var s=o[r];this.selectOption(s)}},
/**
     * When to start measure:
     * 1. When user press `prefix`
     * 2. When measureText !== prevMeasureText
     *  - If measure hit
     *  - If measuring
     *
     * When to stop measure:
     * 1. Selection is out of range
     * 2. Contains `space`
     * 3. ESC or select one
     */
onKeyUp:function(e){var t,n,r=e.key,i=e.which,a=this.$data,o=a.measureText,s=a.measuring,c=this.$props,l=c.prefix,u=void 0===l?"":l,h=c.validateSearch,f=e.target,d=(n=(t=f).selectionStart,t.value.slice(0,n)),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((function(t,n){var r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t}),{location:-1,prefix:""})}(d,u),g=p.location,m=p.prefix;
// Skip if match the white key list
if(-1===[Z.a.ESC,Z.a.UP,Z.a.DOWN,Z.a.ENTER].indexOf(i))if(-1!==g){var v=d.slice(g+m.length),y=h(v,this.$props),A=!!this.getOptions(v).length;y?(r===m||s||v!==o&&A)&&this.startMeasure(v,m,g):s&&
// Stop if measureText is invalidate
this.stopMeasure()
/**
         * We will trigger `onSearch` to developer since they may use for async update.
         * If met `space` means user finished searching.
         */,y&&this.$emit("search",v,m)}else s&&this.stopMeasure()},onInputFocus:function(e){this.onFocus(e)},onInputBlur:function(e){this.onBlur(e)},onDropdownFocus:function(){this.onFocus()},onDropdownBlur:function(){this.onBlur()},onFocus:function(e){window.clearTimeout(this.focusId),!this.$data.isFocus&&e&&this.$emit("focus",e),this.setState({isFocus:!0})},onBlur:function(e){var t=this;this.focusId=window.setTimeout((function(){t.setState({isFocus:!1}),t.stopMeasure(),t.$emit("blur",e)}),0)},selectOption:function(e){var t=this,n=this.$data,r=n._value,i=n.measureLocation,a=n.measurePrefix,o=this.$props.split,s=e.value,c=au(r,{measureLocation:i,targetText:void 0===s?"":s,prefix:a,selectionStart:this.$refs.textarea.selectionStart,split:o}),l=c.text,u=c.selectionLocation;this.triggerChange(l),this.stopMeasure((function(){
// We need restore the selection position
!function(e,t){e.setSelectionRange(t,t),
/**
   * Reset caret into view.
   * Since this function always called by user control, it's safe to focus element.
   */
e.blur(),e.focus()}(t.$refs.textarea,u)})),this.$emit("select",e,a)},setActiveIndex:function(e){this.setState({activeIndex:e})},getOptions:function(e){var t=e||this.$data.measureText||"",n=this.$props,r=n.filterOption,i=n.children,a=void 0===i?[]:i;return(Array.isArray(a)?a:[a]).map((function(e){var t=Object(N.p)(e).default;return Q()({},Object(N.l)(e),{children:t})})).filter((function(e){
/** Return all result if `filterOption` is false. */
return!1===r||r(t,e)}))},startMeasure:function(e,t,n){this.setState({measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})},stopMeasure:function(e){this.setState({measuring:!1,measureLocation:0,measureText:null},e)},focus:function(){this.$refs.textarea.focus()},blur:function(){this.$refs.textarea.blur()}},render:function(){var e=arguments[0],t=this.$data,n=t._value,r=t.measureLocation,a=t.measurePrefix,o=t.measuring,s=Object(N.l)(this),c=s.prefixCls,l=s.placement,h=s.transitionName,f=(s.autoFocus,s.notFoundContent,s.getPopupContainer),d=X()(s,["prefixCls","placement","transitionName","autoFocus","notFoundContent","getPopupContainer"]),p=Object(u.a)(d,["value","defaultValue","prefix","split","children","validateSearch","filterOption"]),g=o?this.getOptions():[];return e("div",{class:c},[e("textarea",i()([{ref:"textarea"},{directives:[{name:"ant-input"}],attrs:Q()({},p,this.$attrs),domProps:{value:n},on:Q()({},Object(N.k)(this),{select:mu,change:mu,input:this.onChange,keydown:this.onKeyDown,keyup:this.onKeyUp,blur:this.onInputBlur})}])),o&&e("div",{ref:"measure",class:c+"-measure"},[n.slice(0,r),e(fu,{attrs:{prefixCls:c,transitionName:h,placement:l,options:g,visible:!0,getPopupContainer:f}},[e("span",[a])]),n.slice(r+a.length)])])}},yu=vu;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-mentions/index.js
yu.Option=su;
/* harmony default export */var Au=yu,bu=Au.Option;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/mentions/index.js
function wu(){return!0}var xu={name:"AMentions",mixins:[d.a],inheritAttrs:!1,model:{prop:"value",event:"change"},Option:Q()({},bu,{name:"AMentionsOption"}),getMentions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1]||{},n=t.prefix,r=void 0===n?"@":n,i=t.split,a=void 0===i?" ":i,o=Array.isArray(r)?r:[r];return e.split(a).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return o.some((function(n){return e.slice(0,n.length)===n&&(t=n,!0)})),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((function(e){return!!e&&!!e.value}))},props:Q()({},du,{loading:s.a.bool}),inject:{configProvider:{default:function(){return A.a}}},data:function(){return{focused:!1}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&e.focus()}))},methods:{onFocus:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["focus"].concat(g()(t))),this.setState({focused:!0})},onBlur:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["blur"].concat(g()(t))),this.setState({focused:!1})},onSelect:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["select"].concat(g()(t))),this.setState({focused:!0})},onChange:function(e){this.$emit("change",e)},getNotFoundContent:function(e){var t=this.$createElement,n=Object(N.g)(this,"notFoundContent");return void 0!==n?n:e(t,"Select")},getOptions:function(){var e=this.$createElement,t=this.$props.loading,n=Object(N.c)(this.$slots.default||[]);return t?e(bu,{attrs:{value:"ANTD_SEARCHING",disabled:!0}},[e(yl,{attrs:{size:"small"}})]):n},getFilterOption:function(){var e=this.$props,t=e.filterOption;return e.loading?wu:t},focus:function(){this.$refs.vcMentions.focus()},blur:function(){this.$refs.vcMentions.blur()}},render:function(){var e,t=arguments[0],n=this.$data.focused,r=this.configProvider,i=r.getPrefixCls,a=r.renderEmpty,s=Object(N.l)(this),c=s.prefixCls,h=s.disabled,f=s.getPopupContainer,d=X()(s,["prefixCls","disabled","getPopupContainer"]),p=i("mentions",c),g=Object(u.a)(d,["loading"]),m=l()((e={},o()(e,p+"-disabled",h),o()(e,p+"-focused",n),e)),v={props:Q()({prefixCls:p,notFoundContent:this.getNotFoundContent(a)},g,{disabled:h,filterOption:this.getFilterOption(),getPopupContainer:f,children:this.getOptions()}),class:m,attrs:Q()({rows:1},this.$attrs),on:Q()({},Object(N.k)(this),{change:this.onChange,select:this.onSelect,focus:this.onFocus,blur:this.onBlur}),ref:"vcMentions"};return t(Au,v)},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(xu.name,xu),e.component(xu.Option.name,xu.Option)}},Cu=xu,_u={props:{visible:s.a.bool,hiddenClassName:s.a.string,forceRender:s.a.bool},render:function(){return(0,arguments[0])("div",{on:Object(N.k)(this)},[this.$slots.default])}},Iu=void 0;function Eu(e){if(e||void 0===Iu){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),Iu=i-a}return Iu}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/switchScrollingEffect.js
/* harmony default export */var ku=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth){if(e)return document.body.style.position="",void(document.body.style.width="");var t=Eu();t&&(document.body.style.position="relative",document.body.style.width="calc(100% - "+t+"px)")}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-dialog/IDialogPropTypes.js
/* harmony default export */var Su=function(){return{keyboard:s.a.bool,mask:s.a.bool,afterClose:s.a.func,
// onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
closable:s.a.bool,maskClosable:s.a.bool,visible:s.a.bool,destroyOnClose:s.a.bool,mousePosition:s.a.shape({x:s.a.number,y:s.a.number}).loose,title:s.a.any,footer:s.a.any,transitionName:s.a.string,maskTransitionName:s.a.string,animation:s.a.any,maskAnimation:s.a.any,wrapStyle:s.a.object,bodyStyle:s.a.object,maskStyle:s.a.object,prefixCls:s.a.string,wrapClassName:s.a.string,width:s.a.oneOfType([s.a.string,s.a.number]),height:s.a.oneOfType([s.a.string,s.a.number]),zIndex:s.a.number,bodyProps:s.a.any,maskProps:s.a.any,wrapProps:s.a.any,getContainer:s.a.any,dialogStyle:s.a.object.def((function(){return{}})),dialogClass:s.a.string.def(""),closeIcon:s.a.any,forceRender:s.a.bool,getOpenCount:s.a.func,
// https://github.com/ant-design/ant-design/issues/19771
// https://github.com/react-component/dialog/issues/95
focusTriggerAfterClose:s.a.bool}},Bu=Su(),Mu=0;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-dialog/Dialog.js
function Tu(){}function Ou(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var i=e.document;"number"!=typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}function Du(e,t){var n=e.style;["Webkit","Moz","Ms","ms"].forEach((function(e){n[e+"TransformOrigin"]=t})),n.transformOrigin=t}var Pu={},Lu={mixins:[d.a],props:Object(N.t)(Bu,{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),data:function(){return{destroyPopup:!1}},provide:function(){return{dialogContext:this}},watch:{visible:function(e){var t=this;e&&(this.destroyPopup=!1),this.$nextTick((function(){t.updatedCallback(!e)}))}},beforeMount:function(){this.inTransition=!1,this.titleId="rcDialogTitle"+Mu++},mounted:function(){var e=this;this.$nextTick((function(){e.updatedCallback(!1),
// if forceRender is true, set element style display to be none;
(e.forceRender||!1===e.getContainer&&!e.visible)&&e.$refs.wrap&&(e.$refs.wrap.style.display="none")}))},beforeDestroy:function(){var e=this.visible,t=this.getOpenCount;!e&&!this.inTransition||t()||this.switchScrollingEffect(),clearTimeout(this.timeoutId)},methods:{
// 对外暴露的 api 不要更改名称或删除
getDialogWrap:function(){return this.$refs.wrap},updatedCallback:function(e){var t,n,r,i,a,o=this.mousePosition,s=this.mask,c=this.focusTriggerAfterClose;if(this.visible){
// first show
if(!e){this.openTime=Date.now(),
// this.lastOutSideFocusNode = document.activeElement
this.switchScrollingEffect(),
// this.$refs.wrap.focus()
this.tryFocus();var l=this.$refs.dialog.$el;if(o){var u=(n=(t=l).getBoundingClientRect(),r={left:n.left,top:n.top},i=t.ownerDocument,a=i.defaultView||i.parentWindow,r.left+=Ou(a),r.top+=Ou(a,!0),r);Du(l,o.x-u.left+"px "+(o.y-u.top)+"px")}else Du(l,"")}}else if(e&&(this.inTransition=!0,s&&this.lastOutSideFocusNode&&c)){try{this.lastOutSideFocusNode.focus()}catch(e){this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null}},tryFocus:function(){Object(Re.a)(this.$refs.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.$refs.sentinelStart.focus())},onAnimateLeave:function(){var e=this.afterClose,t=this.destroyOnClose;
// need demo?
// https://github.com/react-component/dialog/pull/28
this.$refs.wrap&&(this.$refs.wrap.style.display="none"),t&&(this.destroyPopup=!0),this.inTransition=!1,this.switchScrollingEffect(),e&&e()},onDialogMouseDown:function(){this.dialogMouseDown=!0},onMaskMouseUp:function(){var e=this;this.dialogMouseDown&&(this.timeoutId=setTimeout((function(){e.dialogMouseDown=!1}),0))},onMaskClick:function(e){
// android trigger click on open (fastclick??)
Date.now()-this.openTime<300||e.target!==e.currentTarget||this.dialogMouseDown||this.close(e)},onKeydown:function(e){var t=this.$props;if(t.keyboard&&e.keyCode===Z.a.ESC)return e.stopPropagation(),void this.close(e);
// keep focus inside dialog
if(t.visible&&e.keyCode===Z.a.TAB){var n=document.activeElement,r=this.$refs.sentinelStart;e.shiftKey?n===r&&this.$refs.sentinelEnd.focus():n===this.$refs.sentinelEnd&&r.focus()}},getDialogElement:function(){var e=this.$createElement,t=this.closable,n=this.prefixCls,r=this.width,a=this.height,s=this.title,c=this.footer,l=this.bodyStyle,u=this.visible,h=this.bodyProps,f=this.forceRender,d=this.dialogStyle,p=this.dialogClass,g=Q()({},d);void 0!==r&&(g.width="number"==typeof r?r+"px":r),void 0!==a&&(g.height="number"==typeof a?a+"px":a);var m=void 0;c&&(m=e("div",{key:"footer",class:n+"-footer",ref:"footer"},[c]));var v=void 0;s&&(v=e("div",{key:"header",class:n+"-header",ref:"header"},[e("div",{class:n+"-title",attrs:{id:this.titleId}},[s])]));var y=void 0;if(t){var A=Object(N.g)(this,"closeIcon");y=e("button",{attrs:{type:"button","aria-label":"Close"},key:"close",on:{click:this.close||Tu},class:n+"-close"},[A||e("span",{class:n+"-close-x"})])}var b=g,w={width:0,height:0,overflow:"hidden"},x=o()({},n,!0),C=this.getTransitionName(),_=e(_u,{directives:[{name:"show",value:u}],key:"dialog-element",attrs:{role:"document",forceRender:f},ref:"dialog",style:b,class:[x,p],on:{mousedown:this.onDialogMouseDown}},[e("div",{attrs:{tabIndex:0,"aria-hidden":"true"},ref:"sentinelStart",style:w}),e("div",{class:n+"-content"},[y,v,e("div",i()([{key:"body",class:n+"-body",style:l,ref:"body"},h]),[this.$slots.default]),m]),e("div",{attrs:{tabIndex:0,"aria-hidden":"true"},ref:"sentinelEnd",style:w})]),I=Object(se.a)(C,{afterLeave:this.onAnimateLeave});return e("transition",i()([{key:"dialog"},I]),[u||!this.destroyPopup?_:null])},getZIndexStyle:function(){var e={},t=this.$props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},getWrapStyle:function(){return Q()({},this.getZIndexStyle(),this.wrapStyle)},getMaskStyle:function(){return Q()({},this.getZIndexStyle(),this.maskStyle)},getMaskElement:function(){var e=this.$createElement,t=this.$props,n=void 0;if(t.mask){var r=this.getMaskTransitionName();if(n=e(_u,i()([{directives:[{name:"show",value:t.visible}],style:this.getMaskStyle(),key:"mask",class:t.prefixCls+"-mask"},t.maskProps])),r){var a=Object(se.a)(r);n=e("transition",i()([{key:"mask"},a]),[n])}}return n},getMaskTransitionName:function(){var e=this.$props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},getTransitionName:function(){var e=this.$props,t=e.transitionName,n=e.animation;return!t&&n&&(t=e.prefixCls+"-"+n),t},
// setScrollbar() {
//   if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) {
//     document.body.style.paddingRight = `${this.scrollbarWidth}px`;
//   }
// },
switchScrollingEffect:function(){var e=(0,this.getOpenCount)();if(1===e){if(Pu.hasOwnProperty("overflowX"))return;Pu={overflowX:document.body.style.overflowX,overflowY:document.body.style.overflowY,overflow:document.body.style.overflow},ku(),
// Must be set after switchScrollingEffect
document.body.style.overflow="hidden"}else e||(
// IE browser doesn't merge overflow style, need to set it separately
// https://github.com/ant-design/ant-design/issues/19393
void 0!==Pu.overflow&&(document.body.style.overflow=Pu.overflow),void 0!==Pu.overflowX&&(document.body.style.overflowX=Pu.overflowX),void 0!==Pu.overflowY&&(document.body.style.overflowY=Pu.overflowY),Pu={},ku(!0))},
// removeScrollingEffect() {
//   const { getOpenCount } = this;
//   const openCount = getOpenCount();
//   if (openCount !== 0) {
//     return;
//   }
//   document.body.style.overflow = '';
//   switchScrollingEffect(true);
//   // this.resetAdjustments();
// },
close:function(e){this.__emit("close",e)}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.maskClosable,r=this.visible,a=this.wrapClassName,o=this.title,s=this.wrapProps,c=this.getWrapStyle();
// clear hide display
// and only set display after async anim, not here for hide
return r&&(c.display=null),e("div",{class:t+"-root"},[this.getMaskElement(),e("div",i()([{attrs:{tabIndex:-1,role:"dialog","aria-labelledby":o?this.titleId:null},on:{keydown:this.onKeydown,click:n?this.onMaskClick:Tu,mouseup:n?this.onMaskMouseUp:Tu},class:t+"-wrap "+(a||""),ref:"wrap",style:c},s]),[this.getDialogElement()])])}};
/* harmony default export */
/* harmony default export */var Qu=
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/setStyle.js
/**
 * Easy to set element style, return previous style
 * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
 * https://github.com/ant-design/ant-design/issues/19393
 *
 */
function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).element,n=void 0===t?document.body:t,r={},i=Object.keys(e);
// IE browser compatible
return i.forEach((function(e){r[e]=n.style[e]})),i.forEach((function(t){n.style[t]=e[t]})),r},Ru={name:"Portal",props:{getContainer:s.a.func.isRequired,children:s.a.any.isRequired,didUpdate:s.a.func},mounted:function(){this.createContainer()},updated:function(){var e=this,t=this.$props.didUpdate;t&&this.$nextTick((function(){t(e.$props)}))},beforeDestroy:function(){this.removeContainer()},methods:{createContainer:function(){this._container=this.$props.getContainer(),this.$forceUpdate()},removeContainer:function(){this._container&&this._container.parentNode&&this._container.parentNode.removeChild(this._container)}},render:function(){return this._container?Object(ce.a)(this.$props.children,{directives:[{name:"ant-portal",value:this._container}]}):null}},ju=0,Nu=!("undefined"!=typeof window&&window.document&&window.document.createElement),Fu={},zu={name:"PortalWrapper",props:{wrapperClassName:s.a.string,forceRender:s.a.bool,getContainer:s.a.any,children:s.a.func,visible:s.a.bool},data:function(){var e=this.$props.visible;return ju=e?ju+1:ju,{}},updated:function(){this.setWrapperClassName()},watch:{visible:function(e){ju=e?ju+1:ju-1},getContainer:function(e,t){("function"==typeof e&&"function"==typeof t?e.toString()!==t.toString():e!==t)&&this.removeCurrentContainer(!1)}},beforeDestroy:function(){var e=this.$props.visible;
// 离开时不会 render， 导到离开时数值不变，改用 func 。。
ju=e&&ju?ju-1:ju,this.removeCurrentContainer(e)},methods:{getParent:function(){var e=this.$props.getContainer;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===(void 0===e?"undefined":Y()(e))&&e instanceof window.HTMLElement)return e}return document.body},getDomContainer:function(){if(Nu)return null;if(!this.container){this.container=document.createElement("div");var e=this.getParent();e&&e.appendChild(this.container)}return this.setWrapperClassName(),this.container},setWrapperClassName:function(){var e=this.$props.wrapperClassName;this.container&&e&&e!==this.container.className&&(this.container.className=e)},savePortal:function(e){
// Warning: don't rename _component
// https://github.com/react-component/util/pull/65#discussion_r352407916
this._component=e},removeCurrentContainer:function(){this.container=null,this._component=null},
/**
     * Enhance ./switchScrollingEffect
     * 1. Simulate document body scroll bar with
     * 2. Record body has overflow style and recover when all of PortalWrapper invisible
     * 3. Disable body scroll when PortalWrapper has open
     *
     * @memberof PortalWrapper
     */
switchScrollingEffect:function(){1!==ju||Object.keys(Fu).length?ju||(Qu(Fu),Fu={},ku(!0)):(ku(),
// Must be set after switchScrollingEffect
Fu=Qu({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))}},render:function(){var e=arguments[0],t=this.$props,n=t.children,r=t.forceRender,a=t.visible,o=null,s={getOpenCount:function(){return ju},getContainer:this.getDomContainer,switchScrollingEffect:this.switchScrollingEffect};return(r||a||this._component)&&(o=e(Ru,i()([{attrs:{getContainer:this.getDomContainer,children:n(s)}},{directives:[{name:"ant-ref",value:this.savePortal}]}]))),o}},Hu=Su(),Uu={inheritAttrs:!1,props:Q()({},Hu,{visible:Hu.visible.def(!1)}),render:function(){var e=this,t=arguments[0],n=this.$props,r=n.visible,a=n.getContainer,o=n.forceRender,s={props:this.$props,attrs:this.$attrs,ref:"_component",key:"dialog",on:Object(N.k)(this)};
// 渲染在当前 dom 里；
return!1===a?t(Lu,i()([s,{attrs:{getOpenCount:function(){return 2}// 不对 body 做任何操作。。
}}]),[this.$slots.default]):t(zu,{attrs:{visible:r,forceRender:o,getContainer:a,children:function(n){return s.props=Q()({},s.props,n),t(Lu,s,[e.$slots.default])}}})}},Gu=Uu,Vu=n("97e1"),Wu=It().type,qu=null;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/Portal.js
/* harmony default export */function Yu(){}
// 只有点击事件支持从鼠标位置动画展开
"undefined"!=typeof window&&window.document&&window.document.documentElement&&Object(x.a)(document.documentElement,"click",(function(e){qu={x:e.pageX,y:e.pageY},
// 100ms 内发生过点击事件，则从点击位置动画展示
// 否则直接 zoom 展示
// 这样可以兼容非点击方式展开
setTimeout((function(){return qu=null}),100)}),!0);var Ku=[],$u={name:"AModal",inheritAttrs:!1,model:{prop:"visible",event:"change"},props:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={prefixCls:s.a.string,
/** 对话框是否可见*/
visible:s.a.bool,
/** 确定按钮 loading*/
confirmLoading:s.a.bool,
/** 标题*/
title:s.a.any,
/** 是否显示右上角的关闭按钮*/
closable:s.a.bool,closeIcon:s.a.any,
/** 点击确定回调*/
// onOk: (e: React.MouseEvent<any>) => void,
/** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/
// onCancel: (e: React.MouseEvent<any>) => void,
afterClose:s.a.func.def(Yu),
/** 垂直居中 */
centered:s.a.bool,
/** 宽度*/
width:s.a.oneOfType([s.a.string,s.a.number]),
/** 底部内容*/
footer:s.a.any,
/** 确认按钮文字*/
okText:s.a.any,
/** 确认按钮类型*/
okType:Wu,
/** 取消按钮文字*/
cancelText:s.a.any,icon:s.a.any,
/** 点击蒙层是否允许关闭*/
maskClosable:s.a.bool,
/** 强制渲染 Modal*/
forceRender:s.a.bool,okButtonProps:s.a.object,cancelButtonProps:s.a.object,destroyOnClose:s.a.bool,wrapClassName:s.a.string,maskTransitionName:s.a.string,transitionName:s.a.string,getContainer:s.a.func,zIndex:s.a.number,bodyStyle:s.a.object,maskStyle:s.a.object,mask:s.a.bool,keyboard:s.a.bool,wrapProps:s.a.object,focusTriggerAfterClose:s.a.bool};return Object(N.t)(t,e)}({width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),data:function(){return{sVisible:!!this.visible}},watch:{visible:function(e){this.sVisible=e}},inject:{configProvider:{default:function(){return A.a}}},
// static info: ModalFunc;
// static success: ModalFunc;
// static error: ModalFunc;
// static warn: ModalFunc;
// static warning: ModalFunc;
// static confirm: ModalFunc;
methods:{handleCancel:function(e){this.$emit("cancel",e),this.$emit("change",!1)},handleOk:function(e){this.$emit("ok",e)},renderFooter:function(e){var t=this.$createElement,n=this.okType,r=this.confirmLoading,i=Object(N.x)({on:{click:this.handleCancel}},this.cancelButtonProps||{}),a=Object(N.x)({on:{click:this.handleOk},props:{type:n,loading:r}},this.okButtonProps||{});return t("div",[t(Tt,i,[Object(N.g)(this,"cancelText")||e.cancelText]),t(Tt,a,[Object(N.g)(this,"okText")||e.okText])])}},render:function(){var e=arguments[0],t=this.prefixCls,n=this.sVisible,r=this.wrapClassName,i=this.centered,a=this.getContainer,s=this.$slots,c=this.$scopedSlots,u=this.$attrs,h=c.default?c.default():s.default,f=this.configProvider,d=f.getPrefixCls,p=f.getPopupContainer,g=d("modal",t),m=e(vr.a,{attrs:{componentName:"Modal",defaultLocale:Object(Vu.b)()},scopedSlots:{default:this.renderFooter}}),v=e("span",{class:g+"-close-x"},[Object(N.g)(this,"closeIcon")||e(We.a,{class:g+"-close-icon",attrs:{type:"close"}})]),y=Object(N.g)(this,"footer"),A=Object(N.g)(this,"title"),b={props:Q()({},this.$props,{getContainer:void 0===a?p:a,prefixCls:g,wrapClassName:l()(o()({},g+"-centered",!!i),r),title:A,footer:void 0===y?m:y,visible:n,mousePosition:qu,closeIcon:v}),on:Q()({},Object(N.k)(this),{close:this.handleCancel}),class:Object(N.f)(this),style:Object(N.q)(this),attrs:u};return e(Gu,b,[h])}},Ju={type:It().type,actionFn:s.a.func,closeModal:s.a.func,autoFocus:s.a.bool,buttonProps:s.a.object},Xu={mixins:[d.a],props:Ju,data:function(){return{loading:!1}},mounted:function(){var e=this;this.autoFocus&&(this.timeoutId=setTimeout((function(){return e.$el.focus()})))},beforeDestroy:function(){clearTimeout(this.timeoutId)},methods:{onClick:function(){var e=this,t=this.actionFn,n=this.closeModal;if(t){var r=void 0;t.length?r=t(n):(r=t())||n(),r&&r.then&&(this.setState({loading:!0}),r.then((function(){
// It's unnecessary to set loading=false, for the Modal will be unmounted after close.
// this.setState({ loading: false });
n.apply(void 0,arguments)}),(function(t){
// See: https://github.com/ant-design/ant-design/issues/6183
e.setState({loading:!1})})))}else n()}},render:function(){var e=arguments[0],t=this.type,n=this.$slots,r=this.loading,a=this.buttonProps;return e(Tt,i()([{attrs:{type:t,loading:r},on:{click:this.onClick}},a]),[n.default])}},Zu={functional:!0,render:function(e,t){var n=t.props,r=n.onCancel,i=n.onOk,a=n.close,s=n.zIndex,c=n.afterClose,u=n.visible,h=n.keyboard,f=n.centered,d=n.getContainer,p=n.maskStyle,g=n.okButtonProps,m=n.cancelButtonProps,v=n.iconType,y=void 0===v?"question-circle":v,A=n.closable,b=void 0!==A&&A;Object(w.a)(!("iconType"in n),"Modal","The property 'iconType' is deprecated. Use the property 'icon' instead.");var x=n.icon?n.icon:y,C=n.okType||"primary",_=n.prefixCls||"ant-modal",I=_+"-confirm",E=!("okCancel"in n)||n.okCancel,k=n.width||416,S=n.style||{},B=void 0===n.mask||n.mask,M=void 0!==n.maskClosable&&n.maskClosable,T=Object(Vu.b)(),O=n.okText||(E?T.okText:T.justOkText),D=n.cancelText||T.cancelText,P=null!==n.autoFocusButton&&(n.autoFocusButton||"ok"),L=n.transitionName||"zoom",Q=n.maskTransitionName||"fade",R=l()(I,I+"-"+n.type,_+"-"+n.type,n.class),j=E&&e(Xu,{attrs:{actionFn:r,closeModal:a,autoFocus:"cancel"===P,buttonProps:m}},[D]),N="string"==typeof x?e(We.a,{attrs:{type:x}}):x(e);return e($u,{attrs:{prefixCls:_,wrapClassName:l()(o()({},I+"-centered",!!f)),visible:u,closable:b,title:"",transitionName:L,footer:"",maskTransitionName:Q,mask:B,maskClosable:M,maskStyle:p,width:k,zIndex:s,afterClose:c,keyboard:h,centered:f,getContainer:d},class:R,on:{cancel:function(e){return a({triggerCancel:!0},e)}},style:S},[e("div",{class:I+"-body-wrapper"},[e("div",{class:I+"-body"},[N,void 0===n.title?null:e("span",{class:I+"-title"},["function"==typeof n.title?n.title(e):n.title]),e("div",{class:I+"-content"},["function"==typeof n.content?n.content(e):n.content])]),e("div",{class:I+"-btns"},[j,e(Xu,{attrs:{type:C,actionFn:i,closeModal:a,autoFocus:"ok"===P,buttonProps:g}},[O])])])])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/modal/confirm.js
function eh(e){var t=document.createElement("div"),n=document.createElement("div");t.appendChild(n),document.body.appendChild(t);var r,i=Q()({},Object(u.a)(e,["parentContext"]),{close:s,visible:!0}),a=null,o={props:{}};function s(){c.apply(void 0,arguments)}function c(){a&&t.parentNode&&(a.$destroy(),a=null,t.parentNode.removeChild(t));for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.some((function(e){return e&&e.triggerCancel}));e.onCancel&&o&&e.onCancel.apply(e,r);for(var c=0;c<Ku.length;c++){if(Ku[c]===s){Ku.splice(c,1);break}}}return r=i,o.props=r,a=new(b.a.Vue||oe.default)({el:n,parent:e.parentContext,data:function(){return{confirmDialogProps:o}},render:function(){var e=arguments[0],t=Q()({},this.confirmDialogProps);
// 先解构，避免报错，原因不详
return e(Zu,t)}}),Ku.push(s),{destroy:s,update:function(e){i=Q()({},i,e),o.props=i}}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/modal/index.js
// export { ActionButtonProps } from './ActionButton'
// export { ModalProps, ModalFuncProps } from './Modal'
var th=function(e){return eh(Q()({type:"warning",icon:function(e){return e(We.a,{attrs:{type:"exclamation-circle"}})},okCancel:!1},e))},nh=th;$u.info=function(e){return eh(Q()({type:"info",icon:function(e){return e(We.a,{attrs:{type:"info-circle"}})},okCancel:!1},e))},$u.success=function(e){return eh(Q()({type:"success",icon:function(e){return e(We.a,{attrs:{type:"check-circle"}})},okCancel:!1},e))},$u.error=function(e){return eh(Q()({type:"error",icon:function(e){return e(We.a,{attrs:{type:"close-circle"}})},okCancel:!1},e))},$u.warning=th,$u.warn=nh,$u.confirm=function(e){return eh(Q()({type:"confirm",okCancel:!0},e))},$u.destroyAll=function(){for(;Ku.length;){var e=Ku.pop();e&&e()}},
/* istanbul ignore next */
$u.install=function(e){e.use(b.a),e.component($u.name,$u)};
/* harmony default export */var rh=$u,ih={},ah=4.5,oh="24px",sh="24px",ch="topRight",lh=function(){return document.body},uh=null;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/notification/index.js
function hh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oh,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sh,r=void 0;switch(e){case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}var fh={success:"check-circle-o",info:"info-circle-o",error:"close-circle-o",warning:"exclamation-circle-o"};var dh={open:function(e){var t=e.icon,n=e.type,r=e.description,i=e.message,a=e.btn,o=e.prefixCls||"ant-notification",s=o+"-notice",c=void 0===e.duration?ah:e.duration,l=null;if(t)l=function(e){return e("span",{class:s+"-icon"},["function"==typeof t?t(e):t])};else if(n){var u=fh[n];l=function(e){return e(We.a,{class:s+"-icon "+s+"-icon-"+n,attrs:{type:u}})}}!function(e,t){var n=e.prefixCls,r=e.placement,i=void 0===r?ch:r,a=e.getContainer,o=void 0===a?lh:a,s=e.top,c=e.bottom,l=e.closeIcon,u=void 0===l?uh:l,h=n+"-"+i;ih[h]?t(ih[h]):ql.newInstance({prefixCls:n,class:n+"-"+i,style:hh(i,s,c),getContainer:o,closeIcon:function(e){var t="function"==typeof u?u(e):u;return e("span",{class:n+"-close-x"},[t||e(We.a,{class:n+"-close-icon",attrs:{type:"close"}})])}},(function(e){ih[h]=e,t(e)}))}({prefixCls:o,placement:e.placement,top:e.top,bottom:e.bottom,getContainer:e.getContainer,closeIcon:e.closeIcon},(function(t){t.notice({content:function(e){return e("div",{class:l?s+"-with-icon":""},[l&&l(e),e("div",{class:s+"-message"},[!r&&l?e("span",{class:s+"-message-single-line-auto-margin"}):null,"function"==typeof i?i(e):i]),e("div",{class:s+"-description"},["function"==typeof r?r(e):r]),a?e("span",{class:s+"-btn"},["function"==typeof a?a(e):a]):null])},duration:c,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close:function(e){Object.keys(ih).forEach((function(t){return ih[t].removeNotice(e)}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,i=e.top,a=e.getContainer,o=e.closeIcon;void 0!==t&&(ah=t),void 0!==n&&(ch=n),void 0!==r&&(sh="number"==typeof r?r+"px":r),void 0!==i&&(oh="number"==typeof i?i+"px":i),void 0!==a&&(lh=a),void 0!==o&&(uh=o)},destroy:function(){Object.keys(ih).forEach((function(e){ih[e].destroy(),delete ih[e]}))}};["success","info","warning","error"].forEach((function(e){dh[e]=function(t){return dh.open(Q()({},t,{type:e}))}})),dh.warn=dh.warning;
/* harmony default export */var ph=dh,gh=n("f933"),mh=n("f54f"),vh=n("02ea"),yh=Object(mh.a)(),Ah=It(),bh={name:"APopconfirm",props:Q()({},yh,{prefixCls:s.a.string,transitionName:s.a.string.def("zoom-big"),content:s.a.any,title:s.a.any,trigger:yh.trigger.def("click"),okType:Ah.type.def("primary"),disabled:s.a.bool.def(!1),okText:s.a.any,cancelText:s.a.any,icon:s.a.any,okButtonProps:s.a.object,cancelButtonProps:s.a.object}),mixins:[d.a],model:{prop:"visible",event:"visibleChange"},watch:{visible:function(e){this.sVisible=e}},inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=Object(N.l)(this),t={sVisible:!1};return"visible"in e&&(t.sVisible=e.visible),"defaultVisible"in e&&(t.sVisible=e.defaultVisible),t},methods:{onConfirm:function(e){this.setVisible(!1,e),this.$emit("confirm",e)},onCancel:function(e){this.setVisible(!1,e),this.$emit("cancel",e)},onVisibleChange:function(e){this.$props.disabled||this.setVisible(e)},setVisible:function(e,t){Object(N.s)(this,"visible")||this.setState({sVisible:e}),this.$emit("visibleChange",e,t)},getPopupDomNode:function(){return this.$refs.tooltip.getPopupDomNode()},renderOverlay:function(e,t){var n=this.$createElement,r=this.okType,i=this.okButtonProps,a=this.cancelButtonProps,o=Object(N.g)(this,"icon")||n(We.a,{attrs:{type:"exclamation-circle",theme:"filled"}}),s=Object(N.x)({props:{size:"small"},on:{click:this.onCancel}},a),c=Object(N.x)({props:{type:r,size:"small"},on:{click:this.onConfirm}},i);return n("div",{class:e+"-inner-content"},[n("div",{class:e+"-message"},[o,n("div",{class:e+"-message-title"},[Object(N.g)(this,"title")])]),n("div",{class:e+"-buttons"},[n(Tt,s,[Object(N.g)(this,"cancelText")||t.cancelText]),n(Tt,c,[Object(N.g)(this,"okText")||t.okText])])])}},render:function(){var e=this,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=(0,this.configProvider.getPrefixCls)("popover",r),a=Object(u.a)(n,["title","content","cancelText","okText"]),o={props:Q()({},a,{prefixCls:i,visible:this.sVisible}),ref:"tooltip",on:{visibleChange:this.onVisibleChange}},s=t(vr.a,{attrs:{componentName:"Popconfirm",defaultLocale:vh.a.Popconfirm},scopedSlots:{default:function(t){return e.renderOverlay(i,t)}}});return t(gh.a,o,[t("template",{slot:"title"},[s]),this.$slots.default])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(bh.name,bh)}},wh=bh,xh=Object(mh.a)(),Ch={name:"APopover",props:Q()({},xh,{prefixCls:s.a.string,transitionName:s.a.string.def("zoom-big"),content:s.a.any,title:s.a.any}),model:{prop:"visible",event:"visibleChange"},inject:{configProvider:{default:function(){return A.a}}},methods:{getPopupDomNode:function(){return this.$refs.tooltip.getPopupDomNode()}},render:function(){var e=arguments[0],t=this.title,n=this.prefixCls,r=this.$slots,i=(0,this.configProvider.getPrefixCls)("popover",n),a=Object(N.l)(this);delete a.title,delete a.content;var o={props:Q()({},a,{prefixCls:i}),ref:"tooltip",on:Object(N.k)(this)};return e(gh.a,o,[e("template",{slot:"title"},[e("div",[(t||r.title)&&e("div",{class:i+"-title"},[Object(N.g)(this,"title")]),e("div",{class:i+"-inner-content"},[Object(N.g)(this,"content")])])]),this.$slots.default])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Ch.name,Ch)}},_h=Ch;
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/tooltip/index.js + 6 modules
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/progress/utils.js
function Ih(e){return!e||e<0?0:e>100?100:e}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/progress/line.js
/**
 * {
 *   '0%': '#afc163',
 *   '75%': '#009900',
 *   '50%': 'green',     ====>     '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
 *   '25%': '#66FF00',
 *   '100%': '#ffffff'
 * }
 */var Eh=function(e){var t=e.from,n=void 0===t?"#1890ff":t,r=e.to,i=void 0===r?"#1890ff":r,a=e.direction,o=void 0===a?"to right":a,s=X()(e,["from","to","direction"]);return 0!==Object.keys(s).length?{backgroundImage:"linear-gradient("+o+", "+function(e){var t=[],n=!0,r=!1,i=void 0;
// eslint-disable-next-line no-restricted-syntax
try{for(var a,o=Object.entries(e)[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value,c=jt()(s,2),l=c[0],u=c[1],h=parseFloat(l.replace(/%/g,""));if(isNaN(h))return{};t.push({key:h,value:u})}}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}return(t=t.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key;return e.value+" "+t+"%"})).join(", ")}(s)+")"}:{backgroundImage:"linear-gradient("+o+", "+n+", "+i+")"}},kh={functional:!0,render:function(e,t){var n=t.props,r=t.children,i=n.prefixCls,a=n.percent,o=n.successPercent,s=n.strokeWidth,c=n.size,l=n.strokeColor,u=n.strokeLinecap,h=void 0;h=l&&"string"!=typeof l?Eh(l):{background:l};var f=Q()({width:Ih(a)+"%",height:(s||("small"===c?6:8))+"px",background:l,borderRadius:"square"===u?0:"100px"},h),d={width:Ih(o)+"%",height:(s||("small"===c?6:8))+"px",borderRadius:"square"===u?0:""},p=void 0!==o?e("div",{class:i+"-success-bg",style:d}):null;return e("div",[e("div",{class:i+"-outer"},[e("div",{class:i+"-inner"},[e("div",{class:i+"-bg",style:f}),p])]),r])}};
/**
 * {
 *   '0%': '#afc163',
 *   '25%': '#66FF00',
 *   '50%': '#00CC00',     ====>  linear-gradient(to right, #afc163 0%, #66FF00 25%,
 *   '75%': '#009900',              #00CC00 50%, #009900 75%, #ffffff 100%)
 *   '100%': '#ffffff'
 * }
 *
 * Then this man came to realize the truth:
 * Besides six pence, there is the moon.
 * Besides bread and butter, there is the bug.
 * And...
 * Besides women, there is the code.
 */
/* harmony default export */var Sh=
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-progress/src/enhancer.js
function(e){return{mixins:[e],updated:function(){var e=this,t=Date.now(),n=!1;Object.keys(this.paths).forEach((function(r){var i=e.paths[r];if(i){n=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",e.prevTimeStamp&&t-e.prevTimeStamp<100&&(a.transitionDuration="0s, 0s")}})),n&&(this.prevTimeStamp=Date.now())}}},Bh=s.a.oneOfType([s.a.number,s.a.string]),Mh={
// className: PropTypes.string,
percent:s.a.oneOfType([Bh,s.a.arrayOf(Bh)]),prefixCls:s.a.string,strokeColor:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.oneOfType([s.a.string,s.a.object])),s.a.object]),strokeLinecap:s.a.oneOf(["butt","round","square"]),strokeWidth:Bh,
// style: PropTypes.object,
trailColor:s.a.string,trailWidth:Bh},Th=Q()({},Mh,{gapPosition:s.a.oneOf(["top","bottom","left","right"]),gapDegree:s.a.oneOfType([s.a.number,s.a.string,s.a.bool])}),Oh=Q()({},{
// className: '',
percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,
// style: {},
trailColor:"#D9D9D9",trailWidth:1},{gapPosition:"top"});
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-progress/src/types.js
oe.default.use(he.a,{name:"ant-ref"});var Dh=0;function Ph(e){return+e.replace("%","")}function Lh(e){return Array.isArray(e)?e:[e]}function Qh(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=50-r/2,o=0,s=-a,c=0,l=-2*a;switch(arguments[5]){case"left":o=-a,s=0,c=2*a,l=0;break;case"right":o=a,s=0,c=-2*a,l=0;break;case"bottom":s=a,l=2*a}var u="M 50,50 m "+o+","+s+"\n   a "+a+","+a+" 0 1 1 "+c+","+-l+"\n   a "+a+","+a+" 0 1 1 "+-c+","+l,h=2*Math.PI*a;return{pathString:u,pathStyle:{stroke:n,strokeDasharray:t/100*(h-i)+"px "+h+"px",strokeDashoffset:"-"+(i/2+e/100*(h-i))+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"}}}var Rh={props:Object(N.t)(Th,Oh),created:function(){this.paths={},this.gradientId=Dh,Dh+=1},methods:{getStokeList:function(){var e=this,t=this.$createElement,n=this.$props,r=n.prefixCls,i=n.percent,a=n.strokeColor,o=n.strokeWidth,s=n.strokeLinecap,c=n.gapDegree,l=n.gapPosition,u=Lh(i),h=Lh(a),f=0;return u.map((function(n,i){var a=h[i]||h[h.length-1],u="[object Object]"===Object.prototype.toString.call(a)?"url(#"+r+"-gradient-"+e.gradientId+")":"",d=Qh(f,n,a,o,c,l),p=d.pathString,g=d.pathStyle;return f+=n,t("path",{key:i,attrs:{d:p,stroke:u,"stroke-linecap":s,"stroke-width":0===n?0:o,"fill-opacity":"0"},class:r+"-circle-path",style:g,directives:[{name:"ant-ref",value:function(t){e.paths[i]=t}}]})}))}},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.strokeWidth,a=t.trailWidth,o=t.gapDegree,s=t.gapPosition,c=t.trailColor,l=t.strokeLinecap,u=t.strokeColor,h=X()(t,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),f=Qh(0,100,c,r,o,s),d=f.pathString,p=f.pathStyle;delete h.percent;var g=Lh(u).find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),m={attrs:{d:d,stroke:c,"stroke-linecap":l,"stroke-width":a||r,"fill-opacity":"0"},class:n+"-circle-trail",style:p};return e("svg",i()([{class:n+"-circle",attrs:{viewBox:"0 0 100 100"}},h]),[g&&e("defs",[e("linearGradient",{attrs:{id:n+"-gradient-"+this.gradientId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[Object.keys(g).sort((function(e,t){return Ph(e)-Ph(t)})).map((function(t,n){return e("stop",{key:n,attrs:{offset:t,"stop-color":g[t]}})}))])]),e("path",m),this.getStokeList().reverse()])}},jh=Sh(Rh),Nh={normal:"#108ee9",exception:"#ff5500",success:"#87d068"};
/* harmony default export */function Fh(e){var t=e.percent,n=e.successPercent,r=Ih(t);if(!n)return r;var i=Ih(n);return[n,Ih(r-i)]}var zh={functional:!0,render:function(e,t){var n,r,i,a,s,c=t.props,l=t.children,u=c.prefixCls,h=c.width,f=c.strokeWidth,d=c.trailColor,p=c.strokeLinecap,g=c.gapPosition,m=c.gapDegree,v=c.type,y=h||120,A={width:"number"==typeof y?y+"px":y,height:"number"==typeof y?y+"px":y,fontSize:.15*y+6},b=f||6,w=g||"dashboard"===v&&"bottom"||"top",x=m||"dashboard"===v&&75,C=(i=(r=c).progressStatus,a=r.successPercent,s=r.strokeColor||Nh[i],a?[Nh.success,s]:s),_="[object Object]"===Object.prototype.toString.call(C);return e("div",{class:(n={},o()(n,u+"-inner",!0),o()(n,u+"-circle-gradient",_),n),style:A},[e(jh,{attrs:{percent:Fh(c),strokeWidth:b,trailWidth:b,strokeColor:C,strokeLinecap:p,trailColor:d,prefixCls:u,gapDegree:x,gapPosition:w}}),l])}},Hh=["normal","exception","active","success"],Uh=s.a.oneOf(["line","circle","dashboard"]),Gh=s.a.oneOf(["default","small"]),Vh={prefixCls:s.a.string,type:Uh,percent:s.a.number,successPercent:s.a.number,format:s.a.func,status:s.a.oneOf(Hh),showInfo:s.a.bool,strokeWidth:s.a.number,strokeLinecap:s.a.oneOf(["butt","round","square"]),strokeColor:s.a.oneOfType([s.a.string,s.a.object]),trailColor:s.a.string,width:s.a.number,gapDegree:s.a.number,gapPosition:s.a.oneOf(["top","bottom","left","right"]),size:Gh},Wh={name:"AProgress",props:Object(N.t)(Vh,{type:"line",percent:0,showInfo:!0,trailColor:"#f3f3f3",size:"default",gapDegree:0,strokeLinecap:"round"}),inject:{configProvider:{default:function(){return A.a}}},methods:{getPercentNumber:function(){var e=this.$props,t=e.successPercent,n=e.percent,r=void 0===n?0:n;return parseInt(void 0!==t?t.toString():r.toString(),10)},getProgressStatus:function(){var e=this.$props.status;return Hh.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"},renderProcessInfo:function(e,t){var n=this.$createElement,r=this.$props,i=r.showInfo,a=r.format,o=r.type,s=r.percent,c=r.successPercent;if(!i)return null;var l=void 0,u=a||this.$scopedSlots.format||function(e){return e+"%"},h="circle"===o||"dashboard"===o?"":"-circle";return a||this.$scopedSlots.format||"exception"!==t&&"success"!==t?l=u(Ih(s),Ih(c)):"exception"===t?l=n(We.a,{attrs:{type:"close"+h,theme:"line"===o?"filled":"outlined"}}):"success"===t&&(l=n(We.a,{attrs:{type:"check"+h,theme:"line"===o?"filled":"outlined"}})),n("span",{class:e+"-text",attrs:{title:"string"==typeof l?l:void 0}},[l])}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.size,a=n.type,s=n.showInfo,c=(0,this.configProvider.getPrefixCls)("progress",r),u=this.getProgressStatus(),h=this.renderProcessInfo(c,u),f=void 0;
// Render progress shape
if("line"===a){var d={props:Q()({},n,{prefixCls:c})};f=t(kh,d,[h])}else if("circle"===a||"dashboard"===a){var p={props:Q()({},n,{prefixCls:c,progressStatus:u})};f=t(zh,p,[h])}var g=l()(c,(e={},o()(e,c+"-"+("dashboard"===a?"circle":a),!0),o()(e,c+"-status-"+u,!0),o()(e,c+"-show-info",s),o()(e,c+"-"+i,i),e));return t("div",{on:Object(N.k)(this),class:g},[f])},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/progress/index.js
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Wh.name,Wh)}},qh=Wh;
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/radio/index.js
ur.Group=fr,ur.Button=dr,
/* istanbul ignore next */
ur.install=function(e){e.use(b.a),e.component(ur.name,ur),e.component(ur.Group.name,ur.Group),e.component(ur.Button.name,ur.Button)};
/* harmony default export */var Yh=ur;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-rate/src/util.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-rate/src/Star.js
function Kh(){}
/* harmony default export */var $h={name:"Star",mixins:[d.a],props:{value:s.a.number,index:s.a.number,prefixCls:s.a.string,allowHalf:s.a.bool,disabled:s.a.bool,character:s.a.any,characterRender:s.a.func,focused:s.a.bool,count:s.a.number},methods:{onHover:function(e){var t=this.index;this.$emit("hover",e,t)},onClick:function(e){var t=this.index;this.$emit("click",e,t)},onKeyDown:function(e){var t=this.$props.index;13===e.keyCode&&this.__emit("click",e,t)},getClassName:function(){var e=this.prefixCls,t=this.index,n=this.value,r=this.allowHalf,i=this.focused,a=t+1,o=e;return 0===n&&0===t&&i?o+=" "+e+"-focused":r&&n+.5===a?(o+=" "+e+"-half "+e+"-active",i&&(o+=" "+e+"-focused")):(o+=a<=n?" "+e+"-full":" "+e+"-zero",a===n&&i&&(o+=" "+e+"-focused")),o}},render:function(){var e=arguments[0],t=this.onHover,n=this.onClick,r=this.onKeyDown,i=this.disabled,a=this.prefixCls,o=this.characterRender,s=this.index,c=this.count,l=this.value,u=Object(N.g)(this,"character"),h=e("li",{class:this.getClassName()},[e("div",{on:{click:i?Kh:n,keydown:i?Kh:r,mousemove:i?Kh:t},attrs:{role:"radio","aria-checked":l>s?"true":"false","aria-posinset":s+1,"aria-setsize":c,tabIndex:0}},[e("div",{class:a+"-first"},[u]),e("div",{class:a+"-second"},[u])])]);return o&&(h=o(h,this.$props)),h}},Jh={disabled:s.a.bool,value:s.a.number,defaultValue:s.a.number,count:s.a.number,allowHalf:s.a.bool,allowClear:s.a.bool,prefixCls:s.a.string,character:s.a.any,characterRender:s.a.func,tabIndex:s.a.number,autoFocus:s.a.bool};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-rate/src/Rate.js
function Xh(){}
/* harmony default export */var Zh={name:"Rate",mixins:[d.a],model:{prop:"value",event:"change"},props:Object(N.t)(Jh,{defaultValue:0,count:5,allowHalf:!1,allowClear:!0,prefixCls:"rc-rate",tabIndex:0,character:"★"}),data:function(){var e=this.value;return Object(N.s)(this,"value")||(e=this.defaultValue),{sValue:e,focused:!1,cleanedValue:null,hoverValue:void 0}},watch:{value:function(e){this.setState({sValue:e})}},mounted:function(){var e=this;this.$nextTick((function(){e.autoFocus&&!e.disabled&&e.focus()}))},methods:{onHover:function(e,t){var n=this.getStarValue(t,e.pageX);n!==this.cleanedValue&&this.setState({hoverValue:n,cleanedValue:null}),this.$emit("hoverChange",n)},onMouseLeave:function(){this.setState({hoverValue:void 0,cleanedValue:null}),this.$emit("hoverChange",void 0)},onClick:function(e,t){var n=this.allowClear,r=this.sValue,i=this.getStarValue(t,e.pageX),a=!1;n&&(a=i===r),this.onMouseLeave(!0),this.changeValue(a?0:i),this.setState({cleanedValue:a?i:null})},onFocus:function(){this.setState({focused:!0}),this.$emit("focus")},onBlur:function(){this.setState({focused:!1}),this.$emit("blur")},onKeyDown:function(e){var t=e.keyCode,n=this.count,r=this.allowHalf,i=this.sValue;t===Z.a.RIGHT&&i<n?(i+=r?.5:1,this.changeValue(i),e.preventDefault()):t===Z.a.LEFT&&i>0&&(i-=r?.5:1,this.changeValue(i),e.preventDefault()),this.$emit("keydown",e)},getStarDOM:function(e){return this.$refs["stars"+e].$el},getStarValue:function(e,t){var n,r,i,a,o=e+1;if(this.allowHalf){var s=this.getStarDOM(e),c=(r=function(e){var t=void 0,n=void 0,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,{left:t-=a.clientLeft||i.clientLeft||0,top:n-=a.clientTop||i.clientTop||0}}(n=s),i=n.ownerDocument,a=i.defaultView||i.parentWindow,r.left+=function(e,t){var n=t?e.pageYOffset:e.pageXOffset,r=t?"scrollTop":"scrollLeft";if("number"!=typeof n){var i=e.document;
// ie6,7,8 standard mode
"number"!=typeof(n=i.documentElement[r])&&(
// quirks mode
n=i.body[r])}return n}(a),r.left);t-c<s.clientWidth/2&&(o-=.5)}return o},focus:function(){this.disabled||this.$refs.rateRef.focus()},blur:function(){this.disabled||this.$refs.rateRef.blur()},changeValue:function(e){Object(N.s)(this,"value")||this.setState({sValue:e}),this.$emit("change",e)}},render:function(){for(var e=arguments[0],t=Object(N.l)(this),n=t.count,r=t.allowHalf,i=t.prefixCls,a=t.disabled,o=t.tabIndex,s=this.sValue,c=this.hoverValue,u=this.focused,h=[],f=a?i+"-disabled":"",d=Object(N.g)(this,"character"),p=this.characterRender||this.$scopedSlots.characterRender,g=0;g<n;g++){var m={props:{index:g,count:n,disabled:a,prefixCls:i+"-star",allowHalf:r,value:void 0===c?s:c,character:d,characterRender:p,focused:u},on:{click:this.onClick,hover:this.onHover},key:g,ref:"stars"+g};h.push(e($h,m))}return e("ul",{class:l()(i,f),on:{mouseleave:a?Xh:this.onMouseLeave,focus:a?Xh:this.onFocus,blur:a?Xh:this.onBlur,keydown:a?Xh:this.onKeyDown},attrs:{tabIndex:a?-1:o,role:"radiogroup"},ref:"rateRef"},[h])}},ef=Zh,tf={name:"ARate",model:{prop:"value",event:"change"},props:{prefixCls:s.a.string,count:s.a.number,value:s.a.value,defaultValue:s.a.value,allowHalf:s.a.bool,allowClear:s.a.bool,tooltips:s.a.arrayOf(s.a.string),disabled:s.a.bool,character:s.a.any,autoFocus:s.a.bool},inject:{configProvider:{default:function(){return A.a}}},methods:{characterRender:function(e,t){var n=t.index,r=this.$createElement,i=this.$props.tooltips;return i?r(gh.a,{attrs:{title:i[n]}},[e]):e},focus:function(){this.$refs.refRate.focus()},blur:function(){this.$refs.refRate.blur()}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.prefixCls,r=X()(t,["prefixCls"]),i=(0,this.configProvider.getPrefixCls)("rate",n),a=Object(N.g)(this,"character")||e(We.a,{attrs:{type:"star",theme:"filled"}}),o={props:Q()({character:a,characterRender:this.characterRender,prefixCls:i},Object(u.a)(r,["tooltips"])),on:Object(N.k)(this),ref:"refRate"};return e(ef,o)},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(tf.name,tf)}},nf=tf,rf={functional:!0,render:function(e,t){var n,r,i=t.props,a=i.included,s=i.vertical,c=i.offset,l=i.length,u=i.reverse,h=t.data,f=h.style,d=h.class,p=s?(n={},o()(n,u?"top":"bottom",c+"%"),o()(n,u?"bottom":"top","auto"),o()(n,"height",l+"%"),n):(r={},o()(r,u?"right":"left",c+"%"),o()(r,u?"left":"right","auto"),o()(r,"width",l+"%"),r),g=Q()({},f,p);return a?e("div",{class:d,style:g}):null}},af={functional:!0,render:function(e,t){var n=t.props,r=n.prefixCls,i=n.vertical,a=n.reverse,s=n.marks,c=n.dots,u=n.step,h=n.included,f=n.lowerBound,d=n.upperBound,p=n.max,g=n.min,m=n.dotStyle,v=n.activeDotStyle,y=p-g,A=function(e,t,n,r,i,a){Object(w.a)(!n||r>0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var o=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var s=i;s<=a;s+=r)-1===o.indexOf(s)&&o.push(s);return o}(0,s,c,u,g,p).map((function(t){var n,s=Math.abs(t-g)/y*100+"%",c=!h&&t===d||h&&t<=d&&t>=f,u=i?Q()({},m,o()({},a?"top":"bottom",s)):Q()({},m,o()({},a?"right":"left",s));c&&(u=Q()({},u,v));var p=l()((n={},o()(n,r+"-dot",!0),o()(n,r+"-dot-active",c),o()(n,r+"-dot-reverse",a),n));return e("span",{class:p,style:u,key:t})}));return e("div",{class:r+"-step"},[A])}},of=af,sf={functional:!0,render:function(e,t){var n=t.props,r=n.className,i=n.vertical,a=n.reverse,s=n.marks,c=n.included,u=n.upperBound,h=n.lowerBound,f=n.max,d=n.min,p=t.listeners.clickLabel,g=Object.keys(s),m=f-d,v=g.map(parseFloat).sort((function(e,t){return e-t})).map((function(t){var n,f="function"==typeof s[t]?s[t](e):s[t],g="object"===(void 0===f?"undefined":Y()(f))&&!Object(N.w)(f),v=g?f.label:f;if(!v&&0!==v)return null;var y=!c&&t===u||c&&t<=u&&t>=h,A=l()((n={},o()(n,r+"-text",!0),o()(n,r+"-text-active",y),n)),b=o()({marginBottom:"-50%"},a?"top":"bottom",(t-d)/m*100+"%"),w=o()({transform:"translateX(-50%)",msTransform:"translateX(-50%)"},a?"right":"left",a?(t-d/4)/m*100+"%":(t-d)/m*100+"%"),x=i?b:w,C=g?Q()({},x,f.style):x;return e("span",{class:A,style:C,key:t,on:{mousedown:function(e){return p(e,t)},touchstart:function(e){return p(e,t)}}},[v])}));return e("div",{class:r},[v])}},cf={name:"Handle",mixins:[d.a],props:{prefixCls:s.a.string,vertical:s.a.bool,offset:s.a.number,disabled:s.a.bool,min:s.a.number,max:s.a.number,value:s.a.number,tabIndex:s.a.number,className:s.a.string,reverse:s.a.bool},data:function(){return{clickFocused:!1}},mounted:function(){
// mouseup won't trigger if mouse moved out of handle
// so we listen on document here.
this.onMouseUpListener=Object(x.a)(document,"mouseup",this.handleMouseUp)},beforeDestroy:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()},methods:{setClickFocus:function(e){this.setState({clickFocused:e})},handleMouseUp:function(){document.activeElement===this.$refs.handle&&this.setClickFocus(!0)},handleBlur:function(e){this.setClickFocus(!1),this.__emit("blur",e)},handleKeyDown:function(){this.setClickFocus(!1)},clickFocus:function(){this.setClickFocus(!0),this.focus()},focus:function(){this.$refs.handle.focus()},blur:function(){this.$refs.handle.blur()},
// when click can not focus in vue, use mousedown trigger focus
handleMousedown:function(e){this.focus(),this.__emit("mousedown",e)}},render:function(){var e,t,n=arguments[0],r=Object(N.l)(this),i=r.prefixCls,a=r.vertical,s=r.reverse,c=r.offset,u=r.disabled,h=r.min,f=r.max,d=r.value,p=r.tabIndex,g=l()(this.$props.className,o()({},i+"-handle-click-focused",this.clickFocused)),m=a?(e={},o()(e,s?"top":"bottom",c+"%"),o()(e,s?"bottom":"top","auto"),o()(e,"transform","translateY(+50%)"),e):(t={},o()(t,s?"right":"left",c+"%"),o()(t,s?"left":"right","auto"),o()(t,"transform","translateX("+(s?"+":"-")+"50%)"),t),v={"aria-valuemin":h,"aria-valuemax":f,"aria-valuenow":d,"aria-disabled":!!u},y=p||0;return(u||null===p)&&(y=null),n("div",{attrs:Q()({role:"slider",tabIndex:y},v),class:g,on:Q()({},Object(N.k)(this),{blur:this.handleBlur,keydown:this.handleKeyDown,mousedown:this.handleMousedown}),ref:"handle",style:m})}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-rate/src/index.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slider/src/utils.js
function lf(e,t){try{return Object.keys(t).some((function(n){return e.target===t[n].$el||e.target===t[n]}))}catch(e){return!1}}function uf(e,t){var n=t.min,r=t.max;return e<n||e>r}function hf(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function ff(e,t){var n=t.marks,r=t.step,i=t.min,a=t.max,o=Object.keys(n).map(parseFloat);if(null!==r){var s=Math.floor((a-i)/r),c=Math.min((e-i)/r,s),l=Math.round(c)*r+i;o.push(l)}var u=o.map((function(t){return Math.abs(e-t)}));return o[u.indexOf(Math.min.apply(Math,g()(u)))]}function df(e,t){var n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function pf(e,t){var n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function gf(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function mf(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function vf(e,t){var n=t.step,r=isFinite(ff(e,t))?ff(e,t):0;// eslint-disable-line
return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function yf(e){e.stopPropagation(),e.preventDefault()}function Af(e,t,n){var r="increase",i="decrease",a=r;switch(e.keyCode){case Z.a.UP:a=t&&n?i:r;break;case Z.a.RIGHT:a=!t&&n?i:r;break;case Z.a.DOWN:a=t&&n?r:i;break;case Z.a.LEFT:a=!t&&n?r:i;break;case Z.a.END:return function(e,t){return t.max};case Z.a.HOME:return function(e,t){return t.min};case Z.a.PAGE_UP:return function(e,t){return e+2*t.step};case Z.a.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},i=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[i];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}(a,e,t)}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slider/src/common/createSlider.js
function bf(){}function wf(e){
// const displayName = `ComponentEnhancer(${Component.displayName})`
var t={min:s.a.number,max:s.a.number,step:s.a.number,marks:s.a.object,included:s.a.bool,prefixCls:s.a.string,disabled:s.a.bool,handle:s.a.func,dots:s.a.bool,vertical:s.a.bool,reverse:s.a.bool,minimumTrackStyle:s.a.object,// just for compatibility, will be deperecate
maximumTrackStyle:s.a.object,// just for compatibility, will be deperecate
handleStyle:s.a.oneOfType([s.a.object,s.a.arrayOf(s.a.object)]),trackStyle:s.a.oneOfType([s.a.object,s.a.arrayOf(s.a.object)]),railStyle:s.a.object,dotStyle:s.a.object,activeDotStyle:s.a.object,autoFocus:s.a.bool};return{name:"createSlider",mixins:[e],model:{prop:"value",event:"change"},props:Object(N.t)(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),data:function(){var e=this.step,t=this.max,n=this.min,r=!isFinite(t-n)||(t-n)%e==0;// eslint-disable-line
return Object(w.a)(!e||Math.floor(e)!==e||r,"Slider","Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",t-n,e),this.handlesRefs={},{}},mounted:function(){var e=this;this.$nextTick((function(){
// Snapshot testing cannot handle refs, so be sure to null-check this.
e.document=e.$refs.sliderRef&&e.$refs.sliderRef.ownerDocument;
// this.setHandleRefs()
var t=e.autoFocus,n=e.disabled;t&&!n&&e.focus()}))},beforeDestroy:function(){var e=this;this.$nextTick((function(){
// if (super.componentWillUnmount) super.componentWillUnmount()
e.removeDocumentEvents()}))},methods:{defaultHandle:function(e){var t=e.index,n=e.directives,r=e.className,i=e.style,a=e.on,o=X()(e,["index","directives","className","style","on"]),s=this.$createElement;if(delete o.dragging,null===o.value)return null;var c={props:Q()({},o),class:r,style:i,key:t,directives:n,on:a};return s(cf,c)},onMouseDown:function(e){if(0===e.button){var t=this.vertical,n=df(t,e);if(lf(e,this.handlesRefs)){var r=gf(t,e.target);this.dragOffset=n-r,n=r}else this.dragOffset=0;this.removeDocumentEvents(),this.onStart(n),this.addDocumentMouseEvents(),yf(e)}},onTouchStart:function(e){if(!hf(e)){var t=this.vertical,n=pf(t,e);if(lf(e,this.handlesRefs)){var r=gf(t,e.target);this.dragOffset=n-r,n=r}else this.dragOffset=0;this.onStart(n),this.addDocumentTouchEvents(),yf(e)}},onFocus:function(e){var t=this.vertical;if(lf(e,this.handlesRefs)){var n=gf(t,e.target);this.dragOffset=0,this.onStart(n),yf(e),this.$emit("focus",e)}},onBlur:function(e){this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(this.$refs.sliderRef){var t=df(this.vertical,e);this.onMove(e,t-this.dragOffset)}else this.onEnd()},onTouchMove:function(e){if(!hf(e)&&this.$refs.sliderRef){var t=pf(this.vertical,e);this.onMove(e,t-this.dragOffset)}else this.onEnd()},onKeyDown:function(e){this.$refs.sliderRef&&lf(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,t){var n=this;e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(function(){return n.onEnd(!0)}))},getSliderStart:function(){var e=this.$refs.sliderRef,t=this.vertical,n=this.reverse,r=e.getBoundingClientRect();return t?n?r.bottom:r.top:window.pageXOffset+(n?r.right:r.left)},getSliderLength:function(){var e=this.$refs.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents:function(){
// just work for Chrome iOS Safari and Android Browser
this.onTouchMoveListener=Object(x.a)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Object(x.a)(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=Object(x.a)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Object(x.a)(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){
/* eslint-disable no-unused-expressions */
this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){this.disabled||this.handlesRefs[0].focus()},blur:function(){var e=this;this.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))},calcValue:function(e){var t=this.vertical,n=this.min,r=this.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return t?(1-i)*(r-n)+n:i*(r-n)+n},calcValueByPos:function(e){var t=(this.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))},calcOffset:function(e){var t=this.min;return 100*((e-t)/(this.max-t))},saveHandle:function(e,t){this.handlesRefs[e]=t}},render:function(e){var t,n=this.prefixCls,r=this.marks,i=this.dots,a=this.step,s=this.included,c=this.disabled,u=this.vertical,h=this.reverse,f=this.min,d=this.max,p=this.maximumTrackStyle,g=this.railStyle,m=this.dotStyle,v=this.activeDotStyle,y=this.renderSlider(e),A=y.tracks,b=y.handles,w=l()(n,(t={},o()(t,n+"-with-marks",Object.keys(r).length),o()(t,n+"-disabled",c),o()(t,n+"-vertical",u),t)),x={props:{vertical:u,marks:r,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:f,reverse:h,className:n+"-mark"},on:{clickLabel:c?bf:this.onClickMarkLabel}};return e("div",{ref:"sliderRef",attrs:{tabIndex:"-1"},class:w,on:{touchstart:c?bf:this.onTouchStart,mousedown:c?bf:this.onMouseDown,mouseup:c?bf:this.onMouseUp,keydown:c?bf:this.onKeyDown,focus:c?bf:this.onFocus,blur:c?bf:this.onBlur}},[e("div",{class:n+"-rail",style:Q()({},p,g)}),A,e(of,{attrs:{prefixCls:n,vertical:u,reverse:h,marks:r,dots:i,step:a,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:f,dotStyle:m,activeDotStyle:v}}),b,e(sf,x),this.$slots.default])}}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-slider/src/Slider.js
var xf={name:"Slider",mixins:[d.a],props:{defaultValue:s.a.number,value:s.a.number,disabled:s.a.bool,autoFocus:s.a.bool,tabIndex:s.a.number,reverse:s.a.bool,min:s.a.number,max:s.a.number},data:function(){var e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return Object(w.a)(!Object(N.s)(this,"minimumTrackStyle"),"Slider","minimumTrackStyle will be deprecate, please use trackStyle instead."),Object(w.a)(!Object(N.s)(this,"maximumTrackStyle"),"Slider","maximumTrackStyle will be deprecate, please use railStyle instead."),{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler:function(e){this.setChangeValue(e)},deep:!0},min:function(){var e=this.sValue;this.setChangeValue(e)},max:function(){var e=this.sValue;this.setChangeValue(e)}},methods:{setChangeValue:function(e){var t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),uf(t,this.$props)&&this.$emit("change",n))},onChange:function(e){var t=!Object(N.s)(this,"value"),n=e.sValue>this.max?Q()({},e,{sValue:this.max}):e;t&&this.setState(n);var r=n.sValue;this.$emit("change",r)},onStart:function(e){this.setState({dragging:!0});var t=this.sValue;this.$emit("beforeChange",t);var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd:function(e){var t=this.dragging;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(e,t){yf(e);var n=this.sValue,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard:function(e){var t=this.$props,n=t.reverse,r=Af(e,t.vertical,n);if(r){yf(e);var i=this.sValue,a=r(i,this.$props),o=this.trimAlignValue(a);if(o===i)return;this.onChange({sValue:o}),this.$emit("afterChange",o),this.onEnd()}},getLowerBound:function(){return this.min},getUpperBound:function(){return this.sValue},trimAlignValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=Q()({},this.$props,t);return vf(mf(e,n),n)},getTrack:function(e){var t=e.prefixCls,n=e.reverse,r=e.vertical,i=e.included,a=e.offset,o=e.minimumTrackStyle,s=e._trackStyle;return(0,this.$createElement)(rf,{class:t+"-track",attrs:{vertical:r,included:i,offset:0,reverse:n,length:a},style:Q()({},o,s)})},renderSlider:function(){var e=this,t=this.prefixCls,n=this.vertical,r=this.included,i=this.disabled,a=this.minimumTrackStyle,o=this.trackStyle,s=this.handleStyle,c=this.tabIndex,l=this.min,u=this.max,h=this.reverse,f=this.handle,d=this.defaultHandle,p=f||d,g=this.sValue,m=this.dragging,v=this.calcOffset(g),y=p({className:t+"-handle",prefixCls:t,vertical:n,offset:v,value:g,dragging:m,disabled:i,min:l,max:u,reverse:h,index:0,tabIndex:c,style:s[0]||s,directives:[{name:"ant-ref",value:function(t){return e.saveHandle(0,t)}}],on:{focus:this.onFocus,blur:this.onBlur}}),A=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:h,vertical:n,included:r,offset:v,minimumTrackStyle:a,_trackStyle:A}),handles:y}}}},Cf=wf(xf),_f=function(e){var t=e.value,n=e.handle,r=e.bounds,i=e.props,a=i.allowCross,o=i.pushable,s=Number(o),c=mf(t,i),l=c;return a||null==n||void 0===r||(n>0&&c<=r[n-1]+s&&(l=r[n-1]+s),n<r.length-1&&c>=r[n+1]-s&&(l=r[n+1]-s)),vf(l,i)},If={defaultValue:s.a.arrayOf(s.a.number),value:s.a.arrayOf(s.a.number),count:s.a.number,pushable:s.a.oneOfType([s.a.bool,s.a.number]),allowCross:s.a.bool,disabled:s.a.bool,reverse:s.a.bool,tabIndex:s.a.arrayOf(s.a.number),prefixCls:s.a.string,min:s.a.number,max:s.a.number,autoFocus:s.a.bool},Ef={name:"Range",displayName:"Range",mixins:[d.a],props:Object(N.t)(If,{count:1,allowCross:!0,pushable:!1,tabIndex:[]}),data:function(){var e=this,t=this.count,n=this.min,r=this.max,i=Array.apply(void 0,g()(Array(t+1))).map((function(){return n})),a=Object(N.s)(this,"defaultValue")?this.defaultValue:i,o=this.value;void 0===o&&(o=a);var s=o.map((function(t,n){return _f({value:t,handle:n,props:e.$props})}));return{sHandle:null,recent:s[0]===r?0:s.length-1,bounds:s}},watch:{value:{handler:function(e){var t=this.bounds;this.setChangeValue(e||t)},deep:!0},min:function(){var e=this.value;this.setChangeValue(e||this.bounds)},max:function(){var e=this.value;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue:function(e){var t=this,n=this.bounds,r=e.map((function(e,r){return _f({value:e,handle:r,bounds:n,props:t.$props})}));if((r.length!==n.length||!r.every((function(e,t){return e===n[t]})))&&(this.setState({bounds:r}),e.some((function(e){return uf(e,t.$props)})))){var i=e.map((function(e){return mf(e,t.$props)}));this.$emit("change",i)}},onChange:function(e){if(!Object(N.s)(this,"value"))this.setState(e);else{var t={};["sHandle","recent"].forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}var n=Q()({},this.$data,e).bounds;this.$emit("change",n)},onStart:function(e){var t=this.bounds;this.$emit("beforeChange",t);var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;var r=this.getClosestBound(n);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),n!==t[this.prevMovedHandleIndex]){var i=[].concat(g()(t));i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})}},onEnd:function(e){var t=this.sHandle;this.removeDocumentEvents(),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(e,t){yf(e);var n=this.bounds,r=this.sHandle,i=this.calcValueByPos(t);i!==n[r]&&this.moveTo(i)},onKeyboard:function(e){var t=this.$props,n=t.reverse,r=Af(e,t.vertical,n);if(r){yf(e);var i=this.bounds,a=this.sHandle,o=i[null===a?this.recent:a],s=r(o,this.$props),c=_f({value:s,handle:a,bounds:i,props:this.$props});if(c===o)return;this.moveTo(c,!0)}},getClosestBound:function(e){for(var t=this.bounds,n=0,r=1;r<t.length-1;++r)e>t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n},getBoundNeedMoving:function(e,t){var n=this.bounds,r=this.recent,i=t,a=n[t+1]===n[t];return a&&n[r]===n[t]&&(i=r),a&&e!==n[t+1]&&(i=e<n[t+1]?t:t+1),i},getLowerBound:function(){return this.bounds[0]},getUpperBound:function(){var e=this.bounds;return e[e.length-1]},
/**
     * Returns an array of possible slider points, taking into account both
     * `marks` and `step`. The result is cached.
     */
getPoints:function(){var e=this.marks,t=this.step,n=this.min,r=this.max,i=this._getPointsCache;if(!i||i.marks!==e||i.step!==t){var a=Q()({},e);if(null!==t)for(var o=n;o<=r;o+=t)a[o]=o;var s=Object.keys(a).map(parseFloat);s.sort((function(e,t){return e-t})),this._getPointsCache={marks:e,step:t,points:s}}return this._getPointsCache.points},moveTo:function(e,t){var n=this,r=[].concat(g()(this.bounds)),i=this.sHandle,a=this.recent,o=null===i?a:i;r[o]=e;var s=o;!1!==this.$props.pushable?this.pushSurroundingHandles(r,s):this.$props.allowCross&&(r.sort((function(e,t){return e-t})),s=r.indexOf(e)),this.onChange({recent:s,sHandle:s,bounds:r}),t&&(
// known problem: because setState is async,
// so trigger focus will invoke handler's onEnd and another handler's onStart too early,
// cause onBeforeChange and onAfterChange receive wrong value.
// here use setState callback to hack，but not elegant
this.$emit("afterChange",r),this.setState({},(function(){n.handlesRefs[s].focus()})),this.onEnd())},pushSurroundingHandles:function(e,t){var n=e[t],r=this.pushable;r=Number(r);var i=0;if(e[t+1]-n<r&&(i=1),n-e[t-1]<r&&(i=-1),0!==i){var a=t+i,o=i*(e[a]-n);this.pushHandle(e,a,i,r-o)||(
// revert to original value if pushing is impossible
e[t]=e[a]-i*r)}},pushHandle:function(e,t,n,r){for(var i=e[t],a=e[t];n*(a-i)<r;){if(!this.pushHandleOnePoint(e,t,n))
// can't push handle enough to create the needed `amount` gap, so we
// revert its position to the original value
return e[t]=i,!1;a=e[t]}
// the handle was pushed enough to create the needed `amount` gap
return!0},pushHandleOnePoint:function(e,t,n){var r=this.getPoints(),i=r.indexOf(e[t])+n;if(i>=r.length||i<0)
// reached the minimum or maximum available point, can't push anymore
return!1;var a=t+n,o=r[i],s=this.pushable,c=n*(e[a]-o);return!!this.pushHandle(e,a,n,s-c)&&(
// push the handle
e[t]=o,!0)},trimAlignValue:function(e){var t=this.sHandle,n=this.bounds;return _f({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict:function(e,t,n){var r=n.allowCross,i=n.pushable,a=this.$data||{},o=a.bounds;
/* eslint-disable eqeqeq */
if(e=void 0===e?a.sHandle:e,i=Number(i),!r&&null!=e&&void 0!==o){if(e>0&&t<=o[e-1]+i)return o[e-1]+i;if(e<o.length-1&&t>=o[e+1]-i)return o[e+1]-i}
/* eslint-enable eqeqeq */return t},getTrack:function(e){var t=e.bounds,n=e.prefixCls,r=e.reverse,i=e.vertical,a=e.included,s=e.offsets,c=e.trackStyle,u=this.$createElement;return t.slice(0,-1).map((function(e,t){var h,f=t+1,d=l()((h={},o()(h,n+"-track",!0),o()(h,n+"-track-"+f,!0),h));return u(rf,{class:d,attrs:{vertical:i,reverse:r,included:a,offset:s[f-1],length:s[f]-s[f-1]},style:c[t],key:f})}))},renderSlider:function(){var e=this,t=this.sHandle,n=this.bounds,r=this.prefixCls,i=this.vertical,a=this.included,s=this.disabled,c=this.min,u=this.max,h=this.reverse,f=this.handle,d=this.defaultHandle,p=this.trackStyle,g=this.handleStyle,m=this.tabIndex,v=f||d,y=n.map((function(t){return e.calcOffset(t)})),A=r+"-handle",b=n.map((function(n,a){var f,d=m[a]||0;return(s||null===m[a])&&(d=null),v({className:l()((f={},o()(f,A,!0),o()(f,A+"-"+(a+1),!0),f)),prefixCls:r,vertical:i,offset:y[a],value:n,dragging:t===a,index:a,tabIndex:d,min:c,max:u,reverse:h,disabled:s,style:g[a],directives:[{name:"ant-ref",value:function(t){return e.saveHandle(a,t)}}],on:{focus:e.onFocus,blur:e.onBlur}})}));return{tracks:this.getTrack({bounds:n,prefixCls:r,reverse:h,vertical:i,included:a,offsets:y,trackStyle:p}),handles:b}}}},kf=wf(Ef),Sf=Object(mh.a)(),Bf={name:"ASlider",model:{prop:"value",event:"change"},mixins:[d.a],inject:{configProvider:{default:function(){return A.a}}},props:Q()({},{prefixCls:s.a.string,tooltipPrefixCls:s.a.string,range:s.a.bool,reverse:s.a.bool,min:s.a.number,max:s.a.number,step:s.a.oneOfType([s.a.number,s.a.any]),marks:s.a.object,dots:s.a.bool,value:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),defaultValue:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),included:s.a.bool,disabled:s.a.bool,vertical:s.a.bool,tipFormatter:s.a.oneOfType([s.a.func,s.a.object]),tooltipVisible:s.a.bool,tooltipPlacement:Sf.placement,getTooltipPopupContainer:s.a.func},{tipFormatter:s.a.oneOfType([s.a.func,s.a.object]).def((function(e){return e.toString()}))}),data:function(){return{visibles:{}}},methods:{toggleTooltipVisible:function(e,t){this.setState((function(n){var r=n.visibles;return{visibles:Q()({},r,o()({},e,t))}}))},handleWithTooltip:function(e,t,n){var r=this,i=n.value,a=n.dragging,o=n.index,s=n.directives,c=n.on,l=X()(n,["value","dragging","index","directives","on"]),u=this.$createElement,h=this.$props,f=h.tipFormatter,d=h.tooltipVisible,p=h.tooltipPlacement,g=h.getTooltipPopupContainer,m=this.visibles,v=!!f&&(m[o]||a),y=d||void 0===d&&v,A={props:{prefixCls:e,title:f?f(i):"",visible:y,placement:p||"top",transitionName:"zoom-down",overlayClassName:t+"-tooltip",getPopupContainer:g||function(){return document.body}},key:o},b={props:Q()({value:i},l),directives:s,on:Q()({},c,{mouseenter:function(){return r.toggleTooltipVisible(o,!0)},mouseleave:function(){return r.toggleTooltipVisible(o,!1)}})};return u(gh.a,A,[u(cf,b)])},focus:function(){this.$refs.sliderRef.focus()},blur:function(){this.$refs.sliderRef.blur()}},render:function(){var e=this,t=arguments[0],n=Object(N.l)(this),r=n.range,i=n.prefixCls,a=n.tooltipPrefixCls,o=X()(n,["range","prefixCls","tooltipPrefixCls"]),s=this.configProvider.getPrefixCls,c=s("slider",i),l=s("tooltip",a),u=Object(N.k)(this);if(r){var h={props:Q()({},o,{prefixCls:c,tooltipPrefixCls:l,handle:function(t){return e.handleWithTooltip(l,c,t)}}),ref:"sliderRef",on:u};return t(kf,h)}var f={props:Q()({},o,{prefixCls:c,tooltipPrefixCls:l,handle:function(t){return e.handleWithTooltip(l,c,t)}}),ref:"sliderRef",on:u};return t(Cf,f)},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Bf.name,Bf)}},Mf=Bf,Tf=n("07a9"),Of=n.n(Tf),Df={name:"AStatisticNumber",functional:!0,render:function(e,t){var n=t.props,r=n.value,i=n.formatter,a=n.precision,o=n.decimalSeparator,s=n.groupSeparator,c=void 0===s?"":s,l=n.prefixCls,u=void 0;if("function"==typeof i)
// Customize formatter
u=i({value:r,h:e});else{
// Internal formatter
var h=String(r),f=h.match(/^(-?)(\d*)(\.(\d+))?$/);
// Process if illegal number
if(f){var d=f[1],p=f[2]||"0",g=f[4]||"";p=p.replace(/\B(?=(\d{3})+(?!\d))/g,c),"number"==typeof a&&(g=Of()(g,a,"0").slice(0,a)),g&&(g=""+o+g),u=[e("span",{key:"int",class:l+"-content-value-int"},[d,p]),g&&e("span",{key:"decimal",class:l+"-content-value-decimal"},[g])]}else u=h}return e("span",{class:l+"-content-value"},[u])}},Pf={prefixCls:s.a.string,decimalSeparator:s.a.string,groupSeparator:s.a.string,format:s.a.string,value:s.a.oneOfType([s.a.string,s.a.number,s.a.object]),valueStyle:s.a.any,valueRender:s.a.any,formatter:s.a.any,precision:s.a.number,prefix:s.a.any,suffix:s.a.any,title:s.a.any},Lf={name:"AStatistic",props:Object(N.t)(Pf,{decimalSeparator:".",groupSeparator:","}),inject:{configProvider:{default:function(){return A.a}}},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.value,i=void 0===r?0:r,a=t.valueStyle,o=t.valueRender,s=(0,this.configProvider.getPrefixCls)("statistic",n),c=Object(N.g)(this,"title"),l=Object(N.g)(this,"prefix"),u=Object(N.g)(this,"suffix"),h=Object(N.g)(this,"formatter",{},!1),f=e(Df,{props:Q()({},this.$props,{prefixCls:s,value:i,formatter:h})});return o&&(f=o(f)),e("div",{class:s},[c&&e("div",{class:s+"-title"},[c]),e("div",{style:a,class:s+"-content"},[l&&e("span",{class:s+"-content-prefix"},[l]),f,u&&e("span",{class:s+"-content-suffix"},[u])])])}},Qf=n("4106"),Rf=n.n(Qf),jf=[["Y",31536e6],// years
["M",2592e6],// months
["D",864e5],// days
["H",36e5],// hours
["m",6e4],// minutes
["s",1e3],// seconds
["S",1]];
/* harmony default export */function Nf(e,t){var n=t.format,r=void 0===n?"":n,i=Object(yr.a)(kn)(e).valueOf(),a=Object(yr.a)(kn)().valueOf();return function(e,t){var n=e,r=/\[[^\]]*\]/g,i=(t.match(r)||[]).map((function(e){return e.slice(1,-1)})),a=t.replace(r,"[]"),o=jf.reduce((function(e,t){var r=jt()(t,2),i=r[0],a=r[1];if(-1!==e.indexOf(i)){var o=Math.floor(n/a);return n-=o*a,e.replace(new RegExp(i+"+","g"),(function(e){var t=e.length;return Rf()(o.toString(),t,"0")}))}return e}),a),s=0;return o.replace(r,(function(){var e=i[s];return s+=1,e}))}(Math.max(i-a,0),r)}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/statistic/Countdown.js
var Ff=1e3/30;function zf(e){return Object(yr.a)(kn)(e).valueOf()}
/* harmony default export */var Hf={name:"AStatisticCountdown",props:Object(N.t)(Pf,{format:"HH:mm:ss"}),created:function(){this.countdownId=void 0},mounted:function(){this.syncTimer()},updated:function(){this.syncTimer()},beforeDestroy:function(){this.stopTimer()},methods:{syncTimer:function(){zf(this.$props.value)>=Date.now()?this.startTimer():this.stopTimer()},startTimer:function(){var e=this;this.countdownId||(this.countdownId=window.setInterval((function(){e.$refs.statistic.$forceUpdate(),e.syncTimer()}),Ff))},stopTimer:function(){var e=this.$props.value;this.countdownId&&(clearInterval(this.countdownId),this.countdownId=void 0,zf(e)<Date.now()&&this.$emit("finish"))},formatCountdown:function(e){var t=e.value,n=e.config,r=this.$props.format;return Nf(t,Q()({},n,{format:r}))},valueRenderHtml:function(e){return e}},render:function(){return(0,arguments[0])(Lf,i()([{ref:"statistic"},{props:Q()({},this.$props,{valueRender:this.valueRenderHtml,formatter:this.formatCountdown}),on:Object(N.k)(this)}]))}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/statistic/index.js
Lf.Countdown=Hf,
/* istanbul ignore next */
Lf.install=function(e){e.use(b.a),e.component(Lf.name,Lf),e.component(Lf.Countdown.name,Lf.Countdown)};
/* harmony default export */var Uf=Lf;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/isFlexSupported.js
function Gf(){if("undefined"!=typeof window&&window.document&&window.document.documentElement){var e=window.document.documentElement;return"flex"in e.style||"webkitFlex"in e.style||"Flex"in e.style||"msFlex"in e.style}return!1}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-steps/Steps.js
/* harmony default export */var Vf={name:"Steps",mixins:[d.a],props:{type:s.a.string.def("default"),prefixCls:s.a.string.def("rc-steps"),iconPrefix:s.a.string.def("rc"),direction:s.a.string.def("horizontal"),labelPlacement:s.a.string.def("horizontal"),status:s.a.string.def("process"),size:s.a.string.def(""),progressDot:s.a.oneOfType([s.a.bool,s.a.func]),initial:s.a.number.def(0),current:s.a.number.def(0),icons:s.a.shape({finish:s.a.any,error:s.a.any}).loose},data:function(){return this.calcStepOffsetWidth=ci()(this.calcStepOffsetWidth,150),{flexSupported:!0,lastStepOffsetWidth:0}},mounted:function(){var e=this;this.$nextTick((function(){e.calcStepOffsetWidth(),Gf()||e.setState({flexSupported:!1})}))},updated:function(){var e=this;this.$nextTick((function(){e.calcStepOffsetWidth()}))},beforeDestroy:function(){this.calcTimeout&&clearTimeout(this.calcTimeout),this.calcStepOffsetWidth&&this.calcStepOffsetWidth.cancel&&this.calcStepOffsetWidth.cancel()},methods:{onStepClick:function(e){this.$props.current!==e&&this.$emit("change",e)},calcStepOffsetWidth:function(){var e=this;if(!Gf()){var t=this.$data.lastStepOffsetWidth,n=this.$refs.vcStepsRef;
// Just for IE9
n.children.length>0&&(this.calcTimeout&&clearTimeout(this.calcTimeout),this.calcTimeout=setTimeout((function(){
// +1 for fit edge bug of digit width, like 35.4px
var r=(n.lastChild.offsetWidth||0)+1;
// Reduce shake bug
t===r||Math.abs(t-r)<=3||e.setState({lastStepOffsetWidth:r})})))}}},render:function(){var e,t=this,n=arguments[0],r=this.prefixCls,i=this.direction,a=this.type,s=this.labelPlacement,c=this.iconPrefix,l=this.status,u=this.size,h=this.current,f=this.$scopedSlots,d=this.initial,p=this.icons,g="navigation"===a,m=this.progressDot;void 0===m&&(m=f.progressDot);var v=this.lastStepOffsetWidth,y=this.flexSupported,A=Object(N.c)(this.$slots.default),b=A.length-1,w=m?"vertical":s,x=(e={},o()(e,r,!0),o()(e,r+"-"+i,!0),o()(e,r+"-"+u,u),o()(e,r+"-label-"+w,"horizontal"===i),o()(e,r+"-dot",!!m),o()(e,r+"-navigation",g),o()(e,r+"-flex-not-supported",!y),e),C=Object(N.k)(this);return n("div",{class:x,ref:"vcStepsRef",on:C},[A.map((function(e,n){var a=Object(N.m)(e),o=d+n,s={props:Q()({stepNumber:""+(o+1),stepIndex:o,prefixCls:r,iconPrefix:c,progressDot:t.progressDot,icons:p},a),on:Object(N.i)(e),scopedSlots:f};return C.change&&(s.on.stepClick=t.onStepClick),y||"vertical"===i||(g?(s.props.itemWidth=100/(b+1)+"%",s.props.adjustMarginRight=0):n!==b&&(s.props.itemWidth=100/b+"%",s.props.adjustMarginRight=-Math.round(v/b+1)+"px")),
// fix tail color
"error"===l&&n===h-1&&(s.class=r+"-next-error"),a.status||(s.props.status=o===h?l:o<h?"finish":"wait"),s.props.active=o===h,Object(ce.a)(e,s)}))])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-steps/Step.js
function Wf(e){return"string"==typeof e}function qf(){}
/* harmony default export */var Yf={name:"Step",props:{prefixCls:s.a.string,wrapperStyle:s.a.object,itemWidth:s.a.string,active:s.a.bool,disabled:s.a.bool,status:s.a.string,iconPrefix:s.a.string,icon:s.a.any,adjustMarginRight:s.a.string,stepNumber:s.a.string,stepIndex:s.a.number,description:s.a.any,title:s.a.any,subTitle:s.a.any,progressDot:s.a.oneOfType([s.a.bool,s.a.func]),tailContent:s.a.any,icons:s.a.shape({finish:s.a.any,error:s.a.any}).loose},methods:{onClick:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["click"].concat(g()(t))),this.$emit("stepClick",this.stepIndex)},renderIconNode:function(){var e,t=this.$createElement,n=Object(N.l)(this),r=n.prefixCls,i=n.stepNumber,a=n.status,s=n.iconPrefix,c=n.icons,l=this.progressDot;void 0===l&&(l=this.$scopedSlots.progressDot);var u=Object(N.g)(this,"icon"),h=Object(N.g)(this,"title"),f=Object(N.g)(this,"description"),d=(e={},o()(e,r+"-icon",!0),o()(e,s+"icon",!0),o()(e,s+"icon-"+u,u&&Wf(u)),o()(e,s+"icon-check",!u&&"finish"===a&&c&&!c.finish),o()(e,s+"icon-close",!u&&"error"===a&&c&&!c.error),e),p=t("span",{class:r+"-icon-dot"});
// `progressDot` enjoy the highest priority
return l?t("span",{class:r+"-icon"},"function"==typeof l?[l({index:i-1,status:a,title:h,description:f,prefixCls:r})]:[p]):u&&!Wf(u)?t("span",{class:r+"-icon"},[u]):c&&c.finish&&"finish"===a?t("span",{class:r+"-icon"},[c.finish]):c&&c.error&&"error"===a?t("span",{class:r+"-icon"},[c.error]):u||"finish"===a||"error"===a?t("span",{class:d}):t("span",{class:r+"-icon"},[i])}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,a=n.itemWidth,s=n.active,c=n.status,l=void 0===c?"wait":c,u=n.tailContent,h=n.adjustMarginRight,f=n.disabled,d=Object(N.g)(this,"title"),p=Object(N.g)(this,"subTitle"),g=Object(N.g)(this,"description"),m={class:(e={},o()(e,r+"-item",!0),o()(e,r+"-item-"+l,!0),o()(e,r+"-item-custom",Object(N.g)(this,"icon")),o()(e,r+"-item-active",s),o()(e,r+"-item-disabled",!0===f),e),on:Object(N.k)(this)},v={};a&&(v.width=a),h&&(v.marginRight=h);var y=Object(N.k)(this),A={attrs:{},on:{click:y.click||qf}};return y.stepClick&&!f&&(A.attrs.role="button",A.attrs.tabIndex=0,A.on.click=this.onClick),t("div",i()([m,{style:v}]),[t("div",i()([A,{class:r+"-item-container"}]),[t("div",{class:r+"-item-tail"},[u]),t("div",{class:r+"-item-icon"},[this.renderIconNode()]),t("div",{class:r+"-item-content"},[t("div",{class:r+"-item-title"},[d,p&&t("div",{attrs:{title:p},class:r+"-item-subtitle"},[p])]),g&&t("div",{class:r+"-item-description"},[g])])])])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-steps/index.js
// base rc-steps 3.5.0
Vf.Step=Yf;
/* harmony default export */var Kf=Vf,$f={name:"ASteps",props:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={prefixCls:s.a.string,iconPrefix:s.a.string,current:s.a.number,initial:s.a.number,labelPlacement:s.a.oneOf(["horizontal","vertical"]).def("horizontal"),status:s.a.oneOf(["wait","process","finish","error"]),size:s.a.oneOf(["default","small"]),direction:s.a.oneOf(["horizontal","vertical"]),progressDot:s.a.oneOfType([s.a.bool,s.a.func]),type:s.a.oneOf(["default","navigation"])};return Object(N.t)(t,e)}({current:0}),inject:{configProvider:{default:function(){return A.a}}},model:{prop:"current",event:"change"},Step:Q()({},Kf.Step,{name:"AStep"}),render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.prefixCls,r=t.iconPrefix,i=this.configProvider.getPrefixCls,a=i("steps",n),o=i("",r),s={finish:e(We.a,{attrs:{type:"check"},class:a+"-finish-icon"}),error:e(We.a,{attrs:{type:"close"},class:a+"-error-icon"})},c={props:Q()({icons:s,iconPrefix:o,prefixCls:a},t),on:Object(N.k)(this),scopedSlots:this.$scopedSlots};return e(Kf,c,[this.$slots.default])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component($f.name,$f),e.component($f.Step.name,$f.Step)}},Jf=$f,Xf={prefixCls:s.a.string,disabled:s.a.bool.def(!1),checkedChildren:s.a.any,unCheckedChildren:s.a.any,
// onChange: PropTypes.func,
// onMouseUp: PropTypes.func,
// onClick: PropTypes.func,
tabIndex:s.a.oneOfType([s.a.string,s.a.number]),checked:s.a.bool.def(!1),defaultChecked:s.a.bool.def(!1),autoFocus:s.a.bool.def(!1),loadingIcon:s.a.any},Zf={name:"VcSwitch",mixins:[d.a],model:{prop:"checked",event:"change"},props:Q()({},Xf,{prefixCls:Xf.prefixCls.def("rc-switch")}),data:function(){return{stateChecked:Object(N.s)(this,"checked")?!!this.checked:!!this.defaultChecked}},watch:{checked:function(e){this.stateChecked=e}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.autoFocus,n=e.disabled;t&&!n&&e.focus()}))},methods:{setChecked:function(e,t){this.disabled||(Object(N.s)(this,"checked")||(this.stateChecked=e),this.$emit("change",e,t))},handleClick:function(e){var t=!this.stateChecked;this.setChecked(t,e),this.$emit("click",t,e)},handleKeyDown:function(e){37===e.keyCode?
// Left
this.setChecked(!1,e):39===e.keyCode&&
// Right
this.setChecked(!0,e)},handleMouseUp:function(e){this.$refs.refSwitchNode&&this.$refs.refSwitchNode.blur(),this.$emit("mouseup",e)},focus:function(){this.$refs.refSwitchNode.focus()},blur:function(){this.$refs.refSwitchNode.blur()}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.disabled,a=n.loadingIcon,s=n.tabIndex,c=X()(n,["prefixCls","disabled","loadingIcon","tabIndex"]),l=this.stateChecked,u=(e={},o()(e,r,!0),o()(e,r+"-checked",l),o()(e,r+"-disabled",i),e);return t("button",{props:Q()({},c),on:Q()({},Object(N.k)(this),{keydown:this.handleKeyDown,click:this.handleClick,mouseup:this.handleMouseUp}),attrs:{type:"button",role:"switch","aria-checked":l,disabled:i,tabIndex:s},class:u,ref:"refSwitchNode"},[a,t("span",{class:r+"-inner"},[l?Object(N.g)(this,"checkedChildren"):Object(N.g)(this,"unCheckedChildren")])])}},ed=Zf,td={name:"ASwitch",__ANT_SWITCH:!0,model:{prop:"checked",event:"change"},props:{prefixCls:s.a.string,
// size=default and size=large are the same
size:s.a.oneOf(["small","default","large"]),disabled:s.a.bool,checkedChildren:s.a.any,unCheckedChildren:s.a.any,tabIndex:s.a.oneOfType([s.a.string,s.a.number]),checked:s.a.bool,defaultChecked:s.a.bool,autoFocus:s.a.bool,loading:s.a.bool},inject:{configProvider:{default:function(){return A.a}}},methods:{focus:function(){this.$refs.refSwitchNode.focus()},blur:function(){this.$refs.refSwitchNode.blur()}},created:function(){Object(w.a)(Object(N.b)(this,"checked")||!Object(N.b)(this,"value"),"Switch","`value` is not validate prop, do you mean `checked`?")},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.size,a=n.loading,s=n.disabled,c=X()(n,["prefixCls","size","loading","disabled"]),l=(0,this.configProvider.getPrefixCls)("switch",r),u=(e={},o()(e,l+"-small","small"===i),o()(e,l+"-loading",a),e),h=a?t(We.a,{attrs:{type:"loading"},class:l+"-loading-icon"}):null,f={props:Q()({},c,{prefixCls:l,loadingIcon:h,checkedChildren:Object(N.g)(this,"checkedChildren"),unCheckedChildren:Object(N.g)(this,"unCheckedChildren"),disabled:s||a}),on:Object(N.k)(this),class:u,ref:"refSwitchNode"};return t(_t,{attrs:{insertExtraNode:!0}},[t(ed,f)])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(td.name,td)}},nd=td,rd=void 0,id=void 0,ad={position:"absolute",top:"-9999px",width:"50px",height:"50px"},od="RC_TABLE_INTERNAL_COL_DEFINE";
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/steps/index.js
function sd(e){var t=e.direction,n=void 0===t?"vertical":t,r=e.prefixCls;if("undefined"==typeof document||"undefined"==typeof window)return 0;var i="vertical"===n;if(i&&rd)return rd;if(!i&&id)return id;var a=document.createElement("div");Object.keys(ad).forEach((function(e){a.style[e]=ad[e]})),
// apply hide scrollbar className ahead
a.className=r+"-hide-scrollbar scroll-div-append-to-body",
// Append related overflow style
i?a.style.overflowY="scroll":a.style.overflowX="scroll",document.body.appendChild(a);var o=0;return i?(o=a.offsetWidth-a.clientWidth,rd=o):(o=a.offsetHeight-a.clientHeight,id=o),document.body.removeChild(a),o}
// EXTERNAL MODULE: ./node_modules/lodash/merge.js
var cd=n("42454"),ld=n.n(cd),ud=n("6f54"),hd=n("32e8"),fd=function(){function e(t){Ys()(this,e),this.columns=t,this._cached={}}return $s()(e,[{key:"isAnyColumnsFixed",value:function(){var e=this;return this._cache("isAnyColumnsFixed",(function(){return e.columns.some((function(e){return!!e.fixed}))}))}},{key:"isAnyColumnsLeftFixed",value:function(){var e=this;return this._cache("isAnyColumnsLeftFixed",(function(){return e.columns.some((function(e){return"left"===e.fixed||!0===e.fixed}))}))}},{key:"isAnyColumnsRightFixed",value:function(){var e=this;return this._cache("isAnyColumnsRightFixed",(function(){return e.columns.some((function(e){return"right"===e.fixed}))}))}},{key:"leftColumns",value:function(){var e=this;return this._cache("leftColumns",(function(){return e.groupedColumns().filter((function(e){return"left"===e.fixed||!0===e.fixed}))}))}},{key:"rightColumns",value:function(){var e=this;return this._cache("rightColumns",(function(){return e.groupedColumns().filter((function(e){return"right"===e.fixed}))}))}},{key:"leafColumns",value:function(){var e=this;return this._cache("leafColumns",(function(){return e._leafColumns(e.columns)}))}},{key:"leftLeafColumns",value:function(){var e=this;return this._cache("leftLeafColumns",(function(){return e._leafColumns(e.leftColumns())}))}},{key:"rightLeafColumns",value:function(){var e=this;return this._cache("rightLeafColumns",(function(){return e._leafColumns(e.rightColumns())}))}
// add appropriate rowspan and colspan to column
},{key:"groupedColumns",value:function(){var e=this;return this._cache("groupedColumns",(function(){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];
// track how many rows we got
i[n]=i[n]||[];var a=[],o=function(e){var t=i.length-n;e&&!e.children&&// parent columns are supposed to be one row
t>1&&(!e.rowSpan||e.rowSpan<t)&&(e.rowSpan=t)};return t.forEach((function(s,c){var l=Q()({},s);i[n].push(l),r.colSpan=r.colSpan||0,l.children&&l.children.length>0?(l.children=e(l.children,n+1,l,i),r.colSpan+=l.colSpan):r.colSpan+=1;
// update rowspan to all same row columns
for(var u=0;u<i[n].length-1;u+=1)o(i[n][u]);
// last column, update rowspan immediately
c+1===t.length&&o(l),a.push(l)})),a}(e.columns)}))}},{key:"reset",value:function(e){this.columns=e,this._cached={}}},{key:"_cache",value:function(e,t){return e in this._cached||(this._cached[e]=t()),this._cached[e]}},{key:"_leafColumns",value:function(e){var t=this,n=[];return e.forEach((function(e){e.children?n.push.apply(n,g()(t._leafColumns(e.children))):n.push(e)})),n}}]),e}(),dd=fd,pd={name:"ColGroup",props:{fixed:s.a.string,columns:s.a.array},inject:{table:{default:function(){return{}}}},render:function(){var e=arguments[0],t=this.fixed,n=this.table,r=n.prefixCls,a=n.expandIconAsCell,o=n.columnManager,s=[];a&&"right"!==t&&s.push(e("col",{class:r+"-expand-icon-col",key:"rc-table-expand-icon-col"}));var c=void 0;return c="left"===t?o.leftLeafColumns():"right"===t?o.rightLeafColumns():o.leafColumns(),s=s.concat(c.map((function(t){var n=t.key,r=t.dataIndex,a=t.width,o=t[od],s=void 0!==n?n:r,c="number"==typeof a?a+"px":a;return e("col",i()([{key:s,style:{width:c,minWidth:c}},o]))}))),e("colgroup",[s])}},gd=n("e90a"),md={props:{index:s.a.number,fixed:s.a.string,columns:s.a.array,rows:s.a.array,row:s.a.array,components:s.a.object,height:s.a.any,customHeaderRow:s.a.func,prefixCls:s.a.prefixCls},name:"TableHeaderRow",render:function(e){var t=this.row,n=this.index,r=this.height,a=this.components,s=this.customHeaderRow,c=this.prefixCls,u=a.header.row,h=a.header.cell,f=s(t.map((function(e){return e.column})),n),d=f?f.style:{},p=Q()({height:r},d);return null===p.height&&delete p.height,e(u,i()([f,{style:p}]),[t.map((function(t,n){var r,i=t.column,a=t.isLast,s=t.children,u=(t.className,X()(t,["column","isLast","children","className"])),f=i.customHeaderCell?i.customHeaderCell(i):{},d=Object(N.x)({attrs:Q()({},u)},Q()({},f,{key:i.key||i.dataIndex||n}));return i.align&&(d.style=Q()({},f.style,{textAlign:i.align})),d.class=l()(f.class,f.className,i.class,i.className,(r={},o()(r,c+"-align-"+i.align,!!i.align),o()(r,c+"-row-cell-ellipsis",!!i.ellipsis),o()(r,c+"-row-cell-break-word",!!i.width),o()(r,c+"-row-cell-last",a),r)),"function"==typeof h?h(e,d,s):e(h,d,[s])}))])}};function vd(e,t){var n=e.fixedColumnsHeadRowsHeight,r=t.columns,i=t.rows,a=t.fixed,o=n[0];return a&&o&&r?"auto"===o?"auto":o/i.length+"px":null}
/* harmony default export */var yd=Object(gd.a)((function(e,t){return{height:vd(e,t)}}))(md);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-table/src/TableHeader.js
function Ad(e){var t=e.columns,n=void 0===t?[]:t,r=e.currentRow,i=void 0===r?0:r,a=e.rows,o=void 0===a?[]:a,s=e.isLast,c=void 0===s||s;return(o=o||[])[i]=o[i]||[],n.forEach((function(e,t){if(e.rowSpan&&o.length<e.rowSpan)for(;o.length<e.rowSpan;)o.push([]);var r=c&&t===n.length-1,a={key:e.key,className:e.className||e.class||"",children:e.title,isLast:r,column:e};e.children&&Ad({columns:e.children,currentRow:i+1,rows:o,isLast:r}),"colSpan"in e&&(a.colSpan=e.colSpan),"rowSpan"in e&&(a.rowSpan=e.rowSpan),0!==a.colSpan&&o[i].push(a)})),o.filter((function(e){return e.length>0}))}
/* harmony default export */var bd={name:"TableHeader",props:{fixed:s.a.string,columns:s.a.array.isRequired,expander:s.a.object.isRequired},inject:{table:{default:function(){return{}}}},render:function(){var e=arguments[0],t=this.table,n=t.sComponents,r=t.prefixCls,i=t.showHeader,a=t.customHeaderRow,o=this.expander,s=this.columns,c=this.fixed;if(!i)return null;var l=Ad({columns:s});o.renderExpandIndentCell(l,c);var u=n.header.wrapper;return e(u,{class:r+"-thead"},[l.map((function(t,i){return e(yd,{attrs:{prefixCls:r,index:i,fixed:c,columns:s,rows:l,row:t,components:n,customHeaderRow:a},key:i})}))])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-table/src/TableCell.js
function wd(e){return e&&!Object(N.w)(e)&&"[object Object]"===Object.prototype.toString.call(e)}
/* harmony default export */var xd={name:"TableCell",props:{record:s.a.object,prefixCls:s.a.string,index:s.a.number,indent:s.a.number,indentSize:s.a.number,column:s.a.object,expandIcon:s.a.any,component:s.a.any},inject:{table:{default:function(){return{}}}},methods:{handleClick:function(e){var t=this.record,n=this.column.onCellClick;n&&n(t,e)}},render:function(){var e,t=arguments[0],n=this.record,r=this.indentSize,a=this.prefixCls,s=this.indent,c=this.index,u=this.expandIcon,h=this.column,f=this.component,d=h.dataIndex,p=h.customRender,g=h.className,m=void 0===g?"":g,v=this.table.transformCellText,y=void 0;y="number"==typeof d||d&&0!==d.length?Hs()(n,d):n;var A={props:{},attrs:{},on:{click:this.handleClick}},b=void 0,w=void 0;p&&wd(y=p(y,n,c,h))&&(A.attrs=y.attrs||{},A.props=y.props||{},A.class=y.class,A.style=y.style,b=A.attrs.colSpan,w=A.attrs.rowSpan,y=y.children),h.customCell&&(A=Object(N.x)(A,h.customCell(n,c))),
// Fix https://github.com/ant-design/ant-design/issues/1202
wd(y)&&(y=null),v&&(y=v({text:y,column:h,record:n,index:c}));var x=u?t("span",{style:{paddingLeft:r*s+"px"},class:a+"-indent indent-level-"+s}):null;if(0===w||0===b)return null;h.align&&(A.style=Q()({textAlign:h.align},A.style));var C=l()(m,h.class,(e={},o()(e,a+"-cell-ellipsis",!!h.ellipsis),o()(e,a+"-cell-break-word",!!h.width),e));return h.ellipsis&&"string"==typeof y&&(A.attrs.title=y),t(f,i()([{class:C},A]),[x,u,y])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-table/src/TableRow.js
function Cd(){}var _d={name:"TableRow",mixins:[d.a],props:Object(N.t)({customRow:s.a.func,
// onRowClick: PropTypes.func,
// onRowDoubleClick: PropTypes.func,
// onRowContextMenu: PropTypes.func,
// onRowMouseEnter: PropTypes.func,
// onRowMouseLeave: PropTypes.func,
record:s.a.object,prefixCls:s.a.string,
// onHover: PropTypes.func,
columns:s.a.array,height:s.a.oneOfType([s.a.string,s.a.number]),index:s.a.number,rowKey:s.a.oneOfType([s.a.string,s.a.number]).isRequired,className:s.a.string,indent:s.a.number,indentSize:s.a.number,hasExpandIcon:s.a.func,hovered:s.a.bool.isRequired,visible:s.a.bool.isRequired,store:s.a.object.isRequired,fixed:s.a.oneOfType([s.a.string,s.a.bool]),renderExpandIcon:s.a.func,renderExpandIconCell:s.a.func,components:s.a.any,expandedRow:s.a.bool,isAnyColumnsFixed:s.a.bool,ancestorKeys:s.a.array.isRequired,expandIconColumnIndex:s.a.number,expandRowByClick:s.a.bool},{
// expandIconColumnIndex: 0,
// expandRowByClick: false,
hasExpandIcon:function(){},renderExpandIcon:function(){},renderExpandIconCell:function(){}}),data:function(){
// this.shouldRender = this.visible
return{shouldRender:this.visible}},mounted:function(){var e=this;this.shouldRender&&this.$nextTick((function(){e.saveRowRef()}))},watch:{visible:function(e){e&&(this.shouldRender=!0)}},updated:function(){var e=this;this.shouldRender&&!this.rowRef&&this.$nextTick((function(){e.saveRowRef()}))},methods:{onRowClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cd,n=this.record,r=this.index;this.__emit("rowClick",n,r,e),t(e)},onRowDoubleClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cd,n=this.record,r=this.index;this.__emit("rowDoubleClick",n,r,e),t(e)},onContextMenu:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cd,n=this.record,r=this.index;this.__emit("rowContextmenu",n,r,e),t(e)},onMouseEnter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cd,n=this.record,r=this.index,i=this.rowKey;this.__emit("hover",!0,i),this.__emit("rowMouseenter",n,r,e),t(e)},onMouseLeave:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cd,n=this.record,r=this.index,i=this.rowKey;this.__emit("hover",!1,i),this.__emit("rowMouseleave",n,r,e),t(e)},setExpandedRowHeight:function(){var e=this.store,t=this.rowKey,n=e.getState().expandedRowsHeight,r=this.rowRef.getBoundingClientRect().height;n=Q()({},n,o()({},t,r)),e.setState({expandedRowsHeight:n})},setRowHeight:function(){var e=this.store,t=this.rowKey,n=e.getState().fixedColumnsBodyRowsHeight,r=this.rowRef.getBoundingClientRect().height;e.setState({fixedColumnsBodyRowsHeight:Q()({},n,o()({},t,r))})},getStyle:function(){var e=this.height,t=this.visible,n=Object(N.q)(this);return e&&(n=Q()({},n,{height:e})),t||n.display||(n=Q()({},n,{display:"none"})),n},saveRowRef:function(){this.rowRef=this.$el;var e=this.isAnyColumnsFixed,t=this.fixed,n=this.expandedRow,r=this.ancestorKeys;e&&(!t&&n&&this.setExpandedRowHeight(),!t&&r.length>=0&&this.setRowHeight())}},render:function(){var e=this,t=arguments[0];if(!this.shouldRender)return null;var n=this.prefixCls,r=this.columns,i=this.record,a=this.rowKey,o=this.index,s=this.customRow,c=void 0===s?Cd:s,u=this.indent,h=this.indentSize,f=this.hovered,d=this.height,p=this.visible,g=this.components,m=this.hasExpandIcon,v=this.renderExpandIcon,y=this.renderExpandIconCell,A=g.body.row,b=g.body.cell,x="";f&&(x+=" "+n+"-hover");var C=[];y(C);for(var _=0;_<r.length;_+=1){var I=r[_];Object(w.a)(void 0===I.onCellClick,"column[onCellClick] is deprecated, please use column[customCell] instead."),C.push(t(xd,{attrs:{prefixCls:n,record:i,indentSize:h,indent:u,index:o,column:I,expandIcon:m(_)&&v(),component:b},key:I.key||I.dataIndex}))}var E=c(i,o)||{},k=E.class,S=E.className,B=E.style,M=X()(E,["class","className","style"]),T={height:"number"==typeof d?d+"px":d};p||(T.display="none"),T=Q()({},T,B);var O=l()(n,x,n+"-level-"+u,S,k),D=M.on||{};return t(A,Object(N.x)(Q()({},M,{style:T}),{on:{click:function(t){e.onRowClick(t,D.click)},dblclick:function(t){e.onRowDoubleClick(t,D.dblclick)},mouseenter:function(t){e.onMouseEnter(t,D.mouseenter)},mouseleave:function(t){e.onMouseLeave(t,D.mouseleave)},contextmenu:function(t){e.onContextMenu(t,D.contextmenu)}},class:O},{attrs:{"data-row-key":a}}),[C])}};function Id(e,t){var n=e.expandedRowsHeight,r=e.fixedColumnsBodyRowsHeight,i=t.fixed,a=t.rowKey;return i?n[a]?n[a]:r[a]?r[a]:null:null}
/* harmony default export */var Ed=Object(gd.a)((function(e,t){var n=e.currentHoverKey,r=e.expandedRowKeys,i=t.rowKey,a=t.ancestorKeys;return{visible:0===a.length||a.every((function(e){return r.includes(e)})),hovered:n===i,height:Id(e,t)}}))(_d),kd={name:"ExpandIcon",mixins:[d.a],props:{record:s.a.object,prefixCls:s.a.string,expandable:s.a.any,expanded:s.a.bool,needIndentSpaced:s.a.bool},methods:{onExpand:function(e){this.__emit("expand",this.record,e)}},render:function(){var e=arguments[0],t=this.expandable,n=this.prefixCls,r=this.onExpand,i=this.needIndentSpaced,a=this.expanded;return t?e("span",{class:n+"-expand-icon "+n+"-"+(a?"expanded":"collapsed"),on:{click:r}}):i?e("span",{class:n+"-expand-icon "+n+"-spaced"}):null}},Sd={mixins:[d.a],name:"ExpandableRow",props:{prefixCls:s.a.string.isRequired,rowKey:s.a.oneOfType([s.a.string,s.a.number]).isRequired,fixed:s.a.oneOfType([s.a.string,s.a.bool]),record:s.a.oneOfType([s.a.object,s.a.array]).isRequired,indentSize:s.a.number,needIndentSpaced:s.a.bool.isRequired,expandRowByClick:s.a.bool,expanded:s.a.bool.isRequired,expandIconAsCell:s.a.bool,expandIconColumnIndex:s.a.number,childrenColumnName:s.a.string,expandedRowRender:s.a.func,expandIcon:s.a.func},beforeDestroy:function(){this.handleDestroy()},methods:{hasExpandIcon:function(e){var t=this.$props,n=t.expandRowByClick,r=t.expandIcon;return!this.tempExpandIconAsCell&&e===this.tempExpandIconColumnIndex&&(!!r||!n)},handleExpandChange:function(e,t){var n=this.expanded,r=this.rowKey;this.__emit("expandedChange",!n,e,t,r)},handleDestroy:function(){var e=this.rowKey,t=this.record;this.__emit("expandedChange",!1,t,null,e,!0)},handleRowClick:function(e,t,n){this.expandRowByClick&&this.handleExpandChange(e,n),this.__emit("rowClick",e,t,n)},renderExpandIcon:function(){var e=this.$createElement,t=this.prefixCls,n=this.expanded,r=this.record,i=this.needIndentSpaced,a=this.expandIcon;return a?a({prefixCls:t,expanded:n,record:r,needIndentSpaced:i,expandable:this.expandable,onExpand:this.handleExpandChange}):e(kd,{attrs:{expandable:this.expandable,prefixCls:t,needIndentSpaced:i,expanded:n,record:r},on:{expand:this.handleExpandChange}})},renderExpandIconCell:function(e){var t=this.$createElement;if(this.tempExpandIconAsCell){var n=this.prefixCls;e.push(t("td",{class:n+"-expand-icon-cell",key:"rc-table-expand-icon-cell"},[this.renderExpandIcon()]))}}},render:function(){var e=this.childrenColumnName,t=this.expandedRowRender,n=this.indentSize,r=this.record,i=this.fixed,a=this.$scopedSlots,o=this.expanded;this.tempExpandIconAsCell="right"!==i&&this.expandIconAsCell,this.tempExpandIconColumnIndex="right"!==i?this.expandIconColumnIndex:-1;var s=r[e];this.expandable=!(!s&&!t);var c={props:{indentSize:n,expanded:o,// not used in TableRow, but it's required to re-render TableRow when `expanded` changes
hasExpandIcon:this.hasExpandIcon,renderExpandIcon:this.renderExpandIcon,renderExpandIconCell:this.renderExpandIconCell},on:{rowClick:this.handleRowClick}};return a.default&&a.default(c)}},Bd=Object(gd.a)((function(e,t){var n=e.expandedRowKeys,r=t.rowKey;return{expanded:n.includes(r)}}))(Sd);
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-table/src/ExpandIcon.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-table/src/BaseTable.js
function Md(){}var Td={name:"BaseTable",props:{fixed:s.a.oneOfType([s.a.string,s.a.bool]),columns:s.a.array.isRequired,tableClassName:s.a.string.isRequired,hasHead:s.a.bool.isRequired,hasBody:s.a.bool.isRequired,store:s.a.object.isRequired,expander:s.a.object.isRequired,getRowKey:s.a.func,isAnyColumnsFixed:s.a.bool},inject:{table:{default:function(){return{}}}},methods:{getColumns:function(e){var t=this.$props,n=t.columns,r=void 0===n?[]:n,i=t.fixed,a=this.table.$props.prefixCls;return(e||r).map((function(e){return Q()({},e,{className:e.fixed&&!i?l()(a+"-fixed-columns-in-body",e.className||e.class):e.className||e.class})}))},handleRowHover:function(e,t){this.store.setState({currentHoverKey:e?t:null})},renderRows:function(e,t){for(var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=this.$createElement,a=this.table,o=a.columnManager,s=a.sComponents,c=a.prefixCls,l=a.childrenColumnName,u=a.rowClassName,h=a.customRow,f=void 0===h?Md:h,d=Object(N.k)(this.table),p=d.rowClick,g=void 0===p?Md:p,m=d.rowDoubleclick,v=void 0===m?Md:m,y=d.rowContextmenu,A=void 0===y?Md:y,b=d.rowMouseenter,w=void 0===b?Md:b,x=d.rowMouseleave,C=void 0===x?Md:x,_=this.getRowKey,I=this.fixed,E=this.expander,k=this.isAnyColumnsFixed,S=[],B=function(a){var h=e[a],d=_(h,a),p="string"==typeof u?u:u(h,a,t),m={};o.isAnyColumnsFixed()&&(m.hover=n.handleRowHover);var y=void 0;y="left"===I?o.leftLeafColumns():"right"===I?o.rightLeafColumns():n.getColumns(o.leafColumns());var b=c+"-row",x={props:Q()({},E.props,{fixed:I,index:a,prefixCls:b,record:h,rowKey:d,needIndentSpaced:E.needIndentSpaced}),key:d,on:{
// ...expander.on,
rowClick:g,expandedChange:E.handleExpandChange},scopedSlots:{default:function(e){var n=Object(N.x)({props:{fixed:I,indent:t,record:h,index:a,prefixCls:b,childrenColumnName:l,columns:y,rowKey:d,ancestorKeys:r,components:s,isAnyColumnsFixed:k,customRow:f},on:Q()({rowDoubleclick:v,rowContextmenu:A,rowMouseenter:w,rowMouseleave:C},m),class:p,ref:"row_"+a+"_"+t},e);return i(Ed,n)}}},B=i(Bd,x);S.push(B),E.renderRows(n.renderRows,S,h,a,t,I,d,r)},M=0;M<e.length;M+=1)B(M);return S}},render:function(){var e=arguments[0],t=this.table,n=t.sComponents,r=t.prefixCls,i=t.scroll,a=t.data,o=t.getBodyWrapper,s=this.$props,c=s.expander,l=s.tableClassName,u=s.hasHead,h=s.hasBody,f=s.fixed,d=s.isAnyColumnsFixed,p=this.getColumns(),g={};if(!f&&i.x){
// 当有固定列时，width auto 会导致 body table 的宽度撑不开，从而固定列无法对齐
// 详情见：https://github.com/ant-design/ant-design/issues/22160
var m=d?"max-content":"auto";
// not set width, then use content fixed width
g.width=!0===i.x?m:i.x,g.width="number"==typeof g.width?g.width+"px":g.width}if(f){var v=p.reduce((function(e,t){var n=t.width;return e+parseFloat(n,10)}),0);v>0&&(g.width=v+"px")}var y=h?n.table:"table",A=n.body.wrapper,b=void 0;return h&&(b=e(A,{class:r+"-tbody"},[this.renderRows(a,0)]),o&&(b=o(b))),e(y,{class:l,style:g,key:"table"},[e(pd,{attrs:{columns:p,fixed:f}}),u&&e(bd,{attrs:{expander:c,columns:p,fixed:f}}),b])}},Od=Object(gd.a)()(Td),Dd={name:"HeadTable",props:{fixed:s.a.oneOfType([s.a.string,s.a.bool]),columns:s.a.array.isRequired,tableClassName:s.a.string.isRequired,handleBodyScrollLeft:s.a.func.isRequired,expander:s.a.object.isRequired},inject:{table:{default:function(){return{}}}},render:function(){var e=arguments[0],t=this.columns,n=this.fixed,r=this.tableClassName,a=this.handleBodyScrollLeft,s=this.expander,c=this.table,u=c.prefixCls,h=c.scroll,f=c.showHeader,d=c.saveRef,p=c.useFixedHeader,g={},m=sd({direction:"vertical"});if(h.y){p=!0;
// https://github.com/ant-design/ant-design/issues/17051
var v=sd({direction:"horizontal",prefixCls:u});
// Add negative margin bottom for scroll bar overflow bug
v>0&&!n&&(g.marginBottom="-"+v+"px",g.paddingBottom="0px",
// https://github.com/ant-design/ant-design/pull/19986
g.minWidth=m+"px",
// https://github.com/ant-design/ant-design/issues/17051
g.overflowX="scroll",g.overflowY=0===m?"hidden":"scroll")}return p&&f?e("div",i()([{key:"headTable"},{directives:[{name:"ant-ref",value:n?function(){}:d("headTable")}]},{class:l()(u+"-header",o()({},u+"-hide-scrollbar",m>0)),style:g,on:{scroll:a}}]),[e(Od,{attrs:{tableClassName:r,hasHead:!0,hasBody:!1,fixed:n,columns:t,expander:s}})]):null}},Pd={name:"BodyTable",props:{fixed:s.a.oneOfType([s.a.string,s.a.bool]),columns:s.a.array.isRequired,tableClassName:s.a.string.isRequired,handleBodyScroll:s.a.func.isRequired,handleWheel:s.a.func.isRequired,getRowKey:s.a.func.isRequired,expander:s.a.object.isRequired,isAnyColumnsFixed:s.a.bool},inject:{table:{default:function(){return{}}}},render:function(){var e=arguments[0],t=this.table,n=t.prefixCls,r=t.scroll,a=this.columns,o=this.fixed,s=this.tableClassName,c=this.getRowKey,l=this.handleBodyScroll,u=this.handleWheel,h=this.expander,f=this.isAnyColumnsFixed,d=this.table,p=d.useFixedHeader,g=d.saveRef,m=Q()({},this.table.bodyStyle),v={};if((r.x||o)&&(m.overflowX=m.overflowX||"scroll",
// Fix weired webkit render bug
// https://github.com/ant-design/ant-design/issues/7783
m.WebkitTransform="translate3d (0, 0, 0)"),r.y){
// maxHeight will make fixed-Table scrolling not working
// so we only set maxHeight to body-Table here
var y=m.maxHeight||r.y;y="number"==typeof y?y+"px":y,o?(v.maxHeight=y,v.overflowY=m.overflowY||"scroll"):m.maxHeight=y,m.overflowY=m.overflowY||"scroll",p=!0;
// Add negative margin bottom for scroll bar overflow bug
var A=sd({direction:"vertical"});A>0&&o&&(m.marginBottom="-"+A+"px",m.paddingBottom="0px")}var b=e(Od,{attrs:{tableClassName:s,hasHead:!p,hasBody:!0,fixed:o,columns:a,expander:h,getRowKey:c,isAnyColumnsFixed:f}});if(o&&a.length){var w=void 0;return"left"===a[0].fixed||!0===a[0].fixed?w="fixedColumnsBodyLeft":"right"===a[0].fixed&&(w="fixedColumnsBodyRight"),delete m.overflowX,delete m.overflowY,e("div",{key:"bodyTable",class:n+"-body-outer",style:Q()({},m)},[e("div",i()([{class:n+"-body-inner",style:v},{directives:[{name:"ant-ref",value:g(w)}]},{on:{wheel:u,scroll:l}}]),[b])])}
// Should provides `tabIndex` if use scroll to enable keyboard scroll
var x=r&&(r.x||r.y);return e("div",i()([{attrs:{tabIndex:x?-1:void 0},key:"bodyTable",class:n+"-body",style:m},{directives:[{name:"ant-ref",value:g("bodyTable")}]},{on:{wheel:u,scroll:l}}]),[b])}},Ld={name:"ExpandableTable",mixins:[d.a],props:Object(N.t)({expandIconAsCell:s.a.bool,expandRowByClick:s.a.bool,expandedRowKeys:s.a.array,expandedRowClassName:s.a.func,defaultExpandAllRows:s.a.bool,defaultExpandedRowKeys:s.a.array,expandIconColumnIndex:s.a.number,expandedRowRender:s.a.func,expandIcon:s.a.func,childrenColumnName:s.a.string,indentSize:s.a.number,
// onExpand: PropTypes.func,
// onExpandedRowsChange: PropTypes.func,
columnManager:s.a.object.isRequired,store:s.a.object.isRequired,prefixCls:s.a.string.isRequired,data:s.a.array,getRowKey:s.a.func},{expandIconAsCell:!1,expandedRowClassName:function(){return""},expandIconColumnIndex:0,defaultExpandAllRows:!1,defaultExpandedRowKeys:[],childrenColumnName:"children",indentSize:15}),data:function(){var e=this.data,t=this.childrenColumnName,n=this.defaultExpandAllRows,r=this.expandedRowKeys,i=this.defaultExpandedRowKeys,a=this.getRowKey,o=[],s=[].concat(g()(e));if(n)for(var c=0;c<s.length;c+=1){var l=s[c];o.push(a(l,c)),s=s.concat(l[t]||[])}else o=r||i;
// this.columnManager = props.columnManager
// this.store = props.store
return this.store.setState({expandedRowsHeight:{},expandedRowKeys:o}),{}},mounted:function(){this.handleUpdated()},updated:function(){this.handleUpdated()},watch:{expandedRowKeys:function(e){var t=this;this.$nextTick((function(){t.store.setState({expandedRowKeys:e})}))}},methods:{handleUpdated:function(){
// We should record latest expanded rows to avoid multiple rows remove cause `onExpandedRowsChange` trigger many times
this.latestExpandedRows=null},handleExpandChange:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];n&&(n.preventDefault(),n.stopPropagation());var a,o,s,c,l,u=this.store.getState().expandedRowKeys;e?
// row was expaned
u=[].concat(g()(u),[r]):-1!==u.indexOf(r)&&(o=r,s=(a=u).indexOf(o),c=a.slice(0,s),l=a.slice(s+1,a.length),u=c.concat(l));this.expandedRowKeys||this.store.setState({expandedRowKeys:u}),
// De-dup of repeat call
this.latestExpandedRows&&hs()(this.latestExpandedRows,u)||(this.latestExpandedRows=u,this.__emit("expandedRowsChange",u)),i||this.__emit("expand",e,t)},renderExpandIndentCell:function(e,t){var n=this.prefixCls;if(this.expandIconAsCell&&"right"!==t&&e.length){var r={key:"rc-table-expand-icon-cell",className:n+"-expand-icon-th",title:"",rowSpan:e.length};e[0].unshift(Q()({},r,{column:r}))}},renderExpandedRow:function(e,t,n,r,i,a,o){var s=this,c=this.$createElement,l=this.prefixCls,u=this.expandIconAsCell,h=this.indentSize,f=i[i.length-1],d=f+"-extra-row",p=void 0;p="left"===o?this.columnManager.leftLeafColumns().length:"right"===o?this.columnManager.rightLeafColumns().length:this.columnManager.leafColumns().length;var g=[{key:"extra-row",customRender:function(){var r=s.store.getState().expandedRowKeys.includes(f);return{attrs:{colSpan:p},children:"right"!==o?n(e,t,a,r):"&nbsp;"}}}];return u&&"right"!==o&&g.unshift({key:"expand-icon-placeholder",customRender:function(){return null}}),c(Ed,{key:d,attrs:{columns:g,rowKey:d,ancestorKeys:i,prefixCls:l+"-expanded-row",indentSize:h,indent:a,fixed:o,components:{body:{row:"tr",cell:"td"}},expandedRow:!0,hasExpandIcon:function(){}},class:r})},renderRows:function(e,t,n,r,i,a,o,s){var c=this.expandedRowClassName,l=this.expandedRowRender,u=n[this.childrenColumnName],h=[].concat(g()(s),[o]),f=i+1;l&&t.push(this.renderExpandedRow(n,r,l,c(n,r,i),h,f,a)),u&&t.push.apply(t,g()(e(u,f,h)))}},render:function(){var e=this.data,t=this.childrenColumnName,n=this.$scopedSlots,r=Object(N.l)(this),i=e.some((function(e){return e[t]}));return n.default&&n.default({props:r,on:Object(N.k)(this),needIndentSpaced:i,renderRows:this.renderRows,handleExpandChange:this.handleExpandChange,renderExpandIndentCell:this.renderExpandIndentCell})}},Qd=Object(gd.a)()(Ld),Rd={name:"Table",mixins:[d.a],props:Object(N.t)({data:s.a.array,useFixedHeader:s.a.bool,columns:s.a.array,prefixCls:s.a.string,bodyStyle:s.a.object,rowKey:s.a.oneOfType([s.a.string,s.a.func]),rowClassName:s.a.oneOfType([s.a.string,s.a.func]),customRow:s.a.func,customHeaderRow:s.a.func,
// onRowClick: PropTypes.func,
// onRowDoubleClick: PropTypes.func,
// onRowContextMenu: PropTypes.func,
// onRowMouseEnter: PropTypes.func,
// onRowMouseLeave: PropTypes.func,
showHeader:s.a.bool,title:s.a.func,id:s.a.string,footer:s.a.func,emptyText:s.a.any,scroll:s.a.object,rowRef:s.a.func,getBodyWrapper:s.a.func,components:s.a.shape({table:s.a.any,header:s.a.shape({wrapper:s.a.any,row:s.a.any,cell:s.a.any}),body:s.a.shape({wrapper:s.a.any,row:s.a.any,cell:s.a.any})}),expandIconAsCell:s.a.bool,expandedRowKeys:s.a.array,expandedRowClassName:s.a.func,defaultExpandAllRows:s.a.bool,defaultExpandedRowKeys:s.a.array,expandIconColumnIndex:s.a.number,expandedRowRender:s.a.func,childrenColumnName:s.a.string,indentSize:s.a.number,expandRowByClick:s.a.bool,expandIcon:s.a.func,tableLayout:s.a.string,transformCellText:s.a.func},{data:[],useFixedHeader:!1,rowKey:"key",rowClassName:function(){return""},prefixCls:"rc-table",bodyStyle:{},showHeader:!0,scroll:{},rowRef:function(){return null},emptyText:function(){return"No Data"},customHeaderRow:function(){}}),data:function(){return this.preData=[].concat(g()(this.data)),{columnManager:new dd(this.columns),sComponents:ld()({table:"table",header:{wrapper:"thead",row:"tr",cell:"th"},body:{wrapper:"tbody",row:"tr",cell:"td"}},this.components)}},watch:{components:function(){this._components=ld()({table:"table",header:{wrapper:"thead",row:"tr",cell:"th"},body:{wrapper:"tbody",row:"tr",cell:"td"}},this.components)},columns:function(e){e&&this.columnManager.reset(e)},data:function(e){var t=this;0===e.length&&this.hasScrollX()&&this.$nextTick((function(){t.resetScrollX()}))}},
// static childContextTypes = {
//   table: PropTypes.any,
//   components: PropTypes.any,
// },
created:function(){var e=this;["rowClick","rowDoubleclick","rowContextmenu","rowMouseenter","rowMouseleave"].forEach((function(t){Object(w.a)(void 0===Object(N.k)(e)[t],t+" is deprecated, please use customRow instead.")})),Object(w.a)(void 0===this.getBodyWrapper,"getBodyWrapper is deprecated, please use custom components instead."),
// this.columnManager = new ColumnManager(this.columns, this.$slots.default)
this.store=Object(ud.a)({currentHoverKey:null,fixedColumnsHeadRowsHeight:[],fixedColumnsBodyRowsHeight:{}}),this.setScrollPosition("left"),this.debouncedWindowResize=function(e,t,n){var r=void 0;function i(){for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=this;
// https://fb.me/react-event-pooling
a[0]&&a[0].persist&&a[0].persist();var c=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(s,a)}),t),c&&e.apply(s,a)}return i.cancel=function(){r&&(clearTimeout(r),r=null)},i}(this.handleWindowResize,150)},provide:function(){return{table:this}},mounted:function(){var e=this;this.$nextTick((function(){e.columnManager.isAnyColumnsFixed()&&(e.handleWindowResize(),e.resizeEvent=Object(x.a)(window,"resize",e.debouncedWindowResize)),
// https://github.com/ant-design/ant-design/issues/11635
e.ref_headTable&&(e.ref_headTable.scrollLeft=0),e.ref_bodyTable&&(e.ref_bodyTable.scrollLeft=0)}))},updated:function(){var e=this;this.$nextTick((function(){e.columnManager.isAnyColumnsFixed()&&(e.handleWindowResize(),e.resizeEvent||(e.resizeEvent=Object(x.a)(window,"resize",e.debouncedWindowResize)))}))},beforeDestroy:function(){this.resizeEvent&&this.resizeEvent.remove(),this.debouncedWindowResize&&this.debouncedWindowResize.cancel()},methods:{getRowKey:function(e,t){var n=this.rowKey,r="function"==typeof n?n(e,t):e[n];return Object(w.a)(void 0!==r,"Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key."),void 0===r?t:r},setScrollPosition:function(e){if(this.scrollPosition=e,this.tableNode){var t=this.prefixCls;"both"===e?te()(this.tableNode).remove(new RegExp("^"+t+"-scroll-position-.+$")).add(t+"-scroll-position-left").add(t+"-scroll-position-right"):te()(this.tableNode).remove(new RegExp("^"+t+"-scroll-position-.+$")).add(t+"-scroll-position-"+e)}},setScrollPositionClassName:function(){var e=this.ref_bodyTable,t=0===e.scrollLeft,n=e.scrollLeft+1>=e.children[0].getBoundingClientRect().width-e.getBoundingClientRect().width;t&&n?this.setScrollPosition("both"):t?this.setScrollPosition("left"):n?this.setScrollPosition("right"):"middle"!==this.scrollPosition&&this.setScrollPosition("middle")},isTableLayoutFixed:function(){var e=this.$props,t=e.tableLayout,n=e.columns,r=void 0===n?[]:n,i=e.useFixedHeader,a=e.scroll,o=void 0===a?{}:a;return void 0!==t?"fixed"===t:
// if one column is ellipsis, use fixed table layout to fix align issue
!!r.some((function(e){return!!e.ellipsis}))||(
// if header fixed, use fixed table layout to fix align issue
!(!i&&!o.y)||!(!o.x||!0===o.x||"max-content"===o.x))},handleWindowResize:function(){this.syncFixedTableRowHeight(),this.setScrollPositionClassName()},syncFixedTableRowHeight:function(){var e=this.tableNode.getBoundingClientRect();
// If tableNode's height less than 0, suppose it is hidden and don't recalculate rowHeight.
// see: https://github.com/ant-design/ant-design/issues/4836
if(!(void 0!==e.height&&e.height<=0)){var t=this.prefixCls,n=this.ref_headTable?this.ref_headTable.querySelectorAll("thead"):this.ref_bodyTable.querySelectorAll("thead"),r=this.ref_bodyTable.querySelectorAll("."+t+"-row")||[],i=[].map.call(n,(function(e){return e.getBoundingClientRect().height?e.getBoundingClientRect().height-.5:"auto"})),a=this.store.getState(),o=[].reduce.call(r,(function(e,t){var n=t.getAttribute("data-row-key"),r=t.getBoundingClientRect().height||a.fixedColumnsBodyRowsHeight[n]||"auto";return e[n]=r,e}),{});hs()(a.fixedColumnsHeadRowsHeight,i)&&hs()(a.fixedColumnsBodyRowsHeight,o)||this.store.setState({fixedColumnsHeadRowsHeight:i,fixedColumnsBodyRowsHeight:o})}},resetScrollX:function(){this.ref_headTable&&(this.ref_headTable.scrollLeft=0),this.ref_bodyTable&&(this.ref_bodyTable.scrollLeft=0)},hasScrollX:function(){var e=this.scroll;return"x"in(void 0===e?{}:e)},handleBodyScrollLeft:function(e){
// Fix https://github.com/ant-design/ant-design/issues/7635
if(e.currentTarget===e.target){var t=e.target,n=this.scroll,r=void 0===n?{}:n,i=this.ref_headTable,a=this.ref_bodyTable;t.scrollLeft!==this.lastScrollLeft&&r.x&&(t===a&&i?i.scrollLeft=t.scrollLeft:t===i&&a&&(a.scrollLeft=t.scrollLeft),this.setScrollPositionClassName()),
// Remember last scrollLeft for scroll direction detecting.
this.lastScrollLeft=t.scrollLeft}},handleBodyScrollTop:function(e){var t=e.target;
// Fix https://github.com/ant-design/ant-design/issues/9033
if(e.currentTarget===t){var n=this.scroll,r=void 0===n?{}:n,i=this.ref_headTable,a=this.ref_bodyTable,o=this.ref_fixedColumnsBodyLeft,s=this.ref_fixedColumnsBodyRight;if(t.scrollTop!==this.lastScrollTop&&r.y&&t!==i){var c=t.scrollTop;o&&t!==o&&(o.scrollTop=c),s&&t!==s&&(s.scrollTop=c),a&&t!==a&&(a.scrollTop=c)}
// Remember last scrollTop for scroll direction detecting.
this.lastScrollTop=t.scrollTop}},handleBodyScroll:function(e){this.handleBodyScrollLeft(e),this.handleBodyScrollTop(e)},handleWheel:function(e){var t=this.$props.scroll,n=void 0===t?{}:t;if(window.navigator.userAgent.match(/Trident\/7\./)&&n.y){e.preventDefault();var r=e.deltaY,i=e.target,a=this.ref_bodyTable,o=this.ref_fixedColumnsBodyLeft,s=this.ref_fixedColumnsBodyRight,c=0;c=this.lastScrollTop?this.lastScrollTop+r:r,o&&i!==o&&(o.scrollTop=c),s&&i!==s&&(s.scrollTop=c),a&&i!==a&&(a.scrollTop=c)}},
// saveChildrenRef(name, node) {
//   this[`ref_${name}`] = node;
// },
saveRef:function(e){var t=this;return function(n){t["ref_"+e]=n}},saveTableNodeRef:function(e){this.tableNode=e},renderMainTable:function(){var e=this.$createElement,t=this.scroll,n=this.prefixCls,r=this.columnManager.isAnyColumnsFixed(),i=r||t.x||t.y,a=[this.renderTable({columns:this.columnManager.groupedColumns(),isAnyColumnsFixed:r}),this.renderEmptyText(),this.renderFooter()];return i?e("div",{class:n+"-scroll"},[a]):a},renderLeftFixedTable:function(){return(0,this.$createElement)("div",{class:this.prefixCls+"-fixed-left"},[this.renderTable({columns:this.columnManager.leftColumns(),fixed:"left"})])},renderRightFixedTable:function(){return(0,this.$createElement)("div",{class:this.prefixCls+"-fixed-right"},[this.renderTable({columns:this.columnManager.rightColumns(),fixed:"right"})])},renderTable:function(e){var t=this.$createElement,n=e.columns,r=e.fixed,i=e.isAnyColumnsFixed,a=this.prefixCls,o=this.scroll,s=(void 0===o?{}:o).x||r?a+"-fixed":"";return[t(Dd,{key:"head",attrs:{columns:n,fixed:r,tableClassName:s,handleBodyScrollLeft:this.handleBodyScrollLeft,expander:this.expander}}),t(Pd,{key:"body",attrs:{columns:n,fixed:r,tableClassName:s,getRowKey:this.getRowKey,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,expander:this.expander,isAnyColumnsFixed:i}})]},renderTitle:function(){var e=this.$createElement,t=this.title,n=this.prefixCls,r=this.data;return t?e("div",{class:n+"-title",key:"title"},[t(r)]):null},renderFooter:function(){var e=this.$createElement,t=this.footer,n=this.prefixCls,r=this.data;return t?e("div",{class:n+"-footer",key:"footer"},[t(r)]):null},renderEmptyText:function(){var e=this.$createElement,t=this.emptyText,n=this.prefixCls;return this.data.length?null:e("div",{class:n+"-placeholder",key:"emptyText"},["function"==typeof t?t():t])}},render:function(){var e,t=this,n=arguments[0],r=Object(N.l)(this),a=this.columnManager,s=this.getRowKey,c=r.prefixCls,u=l()(r.prefixCls,(e={},o()(e,c+"-fixed-header",r.useFixedHeader||r.scroll&&r.scroll.y),o()(e,c+"-scroll-position-left "+c+"-scroll-position-right","both"===this.scrollPosition),o()(e,c+"-scroll-position-"+this.scrollPosition,"both"!==this.scrollPosition),o()(e,c+"-layout-fixed",this.isTableLayoutFixed()),e)),h=a.isAnyColumnsLeftFixed(),f=a.isAnyColumnsRightFixed(),d={props:Q()({},r,{columnManager:a,getRowKey:s}),on:Object(N.k)(this),scopedSlots:{default:function(e){return t.expander=e,n("div",i()([{directives:[{name:"ant-ref",value:t.saveTableNodeRef}]},{class:u}]),[t.renderTitle(),n("div",{class:c+"-content"},[t.renderMainTable(),h&&t.renderLeftFixedTable(),f&&t.renderRightFixedTable()])])}}};return n(hd.a,{attrs:{store:this.store}},[n(Qd,d)])}},jd={name:"Table",Column:{name:"Column",props:{rowSpan:s.a.number,colSpan:s.a.number,title:s.a.any,dataIndex:s.a.string,width:s.a.oneOfType([s.a.number,s.a.string]),ellipsis:s.a.bool,fixed:s.a.oneOf([!0,"left","right"]),align:s.a.oneOf(["left","center","right"]),customRender:s.a.func,className:s.a.string,
// onCellClick: PropTypes.func,
customCell:s.a.func,customHeaderCell:s.a.func}},ColumnGroup:{name:"ColumnGroup",props:{title:s.a.any},isTableColumnGroup:!0},props:Rd.props,methods:{getTableNode:function(){return this.$refs.table.tableNode},getBodyTable:function(){return this.$refs.table.ref_bodyTable},normalize:function(){var e=this,t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){if(n.tag){var r=Object(N.j)(n),i=Object(N.q)(n),a=Object(N.f)(n),o=Object(N.l)(n),s=Object(N.i)(n),c={};Object.keys(s).forEach((function(e){var t="on-"+e;c[Object(N.a)(t)]=s[e]}));var l=Object(N.p)(n),u=l.default,h=l.title,f=Q()({title:h},o,{style:i,class:a},c);if(r&&(f.key=r),Object(N.o)(n).isTableColumnGroup)f.children=e.normalize("function"==typeof u?u():u);else{var d=n.data&&n.data.scopedSlots&&n.data.scopedSlots.default;f.customRender=f.customRender||d}t.push(f)}})),t}},render:function(){var e=arguments[0],t=this.$slots,n=this.normalize,r=Object(N.l)(this),i=r.columns||n(t.default),a={props:Q()({},r,{columns:i}),on:Object(N.k)(this),ref:"table"};return e(Rd,a)}},Nd=jd,Fd=n("a3a2"),zd=n("61fe"),Hd=n.n(zd),Ud={name:"FilterDropdownMenuWrapper",methods:{handelClick:function(e){e.stopPropagation();
//this.$emit('click', e);
}},render:function(){var e=arguments[0],t=this.$slots;return e("div",{on:{click:this.handelClick}},[t.default])}},Gd=s.a.shape({setState:s.a.func,getState:s.a.func,subscribe:s.a.func}).loose,Vd=ud.a,Wd=Bl(),qd=gl(),Yd=s.a.shape({text:s.a.string,value:s.a.string,children:s.a.array}).loose,Kd={title:s.a.any,
// key?: React.Key;
dataIndex:s.a.string,customRender:s.a.func,customCell:s.a.func,customHeaderCell:s.a.func,align:s.a.oneOf(["left","right","center"]),ellipsis:s.a.bool,filters:s.a.arrayOf(Yd),
// onFilter: (value: any, record: T) => PropTypes.bool,
filterMultiple:s.a.bool,filterDropdown:s.a.any,filterDropdownVisible:s.a.bool,
// onFilterDropdownVisibleChange?: (visible: boolean) => void;
sorter:s.a.oneOfType([s.a.boolean,s.a.func]),defaultSortOrder:s.a.oneOf(["ascend","descend"]),colSpan:s.a.number,width:s.a.oneOfType([s.a.string,s.a.number]),className:s.a.string,fixed:s.a.oneOfType([s.a.bool,s.a.oneOf(["left","right"])]),filterIcon:s.a.any,filteredValue:s.a.array,filtered:s.a.bool,defaultFilteredValue:s.a.array,sortOrder:s.a.oneOfType([s.a.bool,s.a.oneOf(["ascend","descend"])]),sortDirections:s.a.array},$d=s.a.shape({filterTitle:s.a.string,filterConfirm:s.a.any,filterReset:s.a.any,emptyText:s.a.any,selectAll:s.a.any,selectInvert:s.a.any,sortTitle:s.a.string,expand:s.a.string,collapse:s.a.string}).loose,Jd=s.a.oneOf(["checkbox","radio"]),Xd={type:Jd,selectedRowKeys:s.a.array,
// onChange?: (selectedRowKeys: string[] | number[], selectedRows: Object[]) => any;
getCheckboxProps:s.a.func,
// onSelect?: SelectionSelectFn<T>;
// onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => any;
// onSelectInvert?: (selectedRows: Object[]) => any;
selections:s.a.oneOfType([s.a.array,s.a.bool]),hideDefaultSelections:s.a.bool,fixed:s.a.bool,columnWidth:s.a.oneOfType([s.a.string,s.a.number]),selectWay:s.a.oneOf(["onSelect","onSelectMultiple","onSelectAll","onSelectInvert"]),columnTitle:s.a.any},Zd={prefixCls:s.a.string,dropdownPrefixCls:s.a.string,rowSelection:s.a.oneOfType([s.a.shape(Xd).loose,null]),pagination:s.a.oneOfType([s.a.shape(Q()({},Wd,{position:s.a.oneOf(["top","bottom","both"])})).loose,s.a.bool]),size:s.a.oneOf(["default","middle","small","large"]),dataSource:s.a.array,components:s.a.object,columns:s.a.array,rowKey:s.a.oneOfType([s.a.string,s.a.func]),rowClassName:s.a.func,expandedRowRender:s.a.any,defaultExpandAllRows:s.a.bool,defaultExpandedRowKeys:s.a.array,expandedRowKeys:s.a.array,expandIconAsCell:s.a.bool,expandIconColumnIndex:s.a.number,expandRowByClick:s.a.bool,
// onExpandedRowsChange?: (expandedRowKeys: string[] | number[]) => void;
//  onExpand?: (expanded: boolean, record: T) => void;
// onChange?: (pagination: PaginationProps | boolean, filters: string[], sorter: Object) => any;
loading:s.a.oneOfType([s.a.shape(qd).loose,s.a.bool]),locale:$d,indentSize:s.a.number,
// onRowClick?: (record: T, index: number, event: Event) => any;
customRow:s.a.func,customHeaderRow:s.a.func,useFixedHeader:s.a.bool,bordered:s.a.bool,showHeader:s.a.bool,footer:s.a.func,title:s.a.func,scroll:s.a.object,childrenColumnName:s.a.oneOfType([s.a.array,s.a.string]),bodyStyle:s.a.any,sortDirections:s.a.array,tableLayout:s.a.string,getPopupContainer:s.a.func,expandIcon:s.a.func,transformCellText:s.a.func},ep={store:Gd,locale:s.a.any,disabled:s.a.bool,getCheckboxPropsByItem:s.a.func,getRecordKey:s.a.func,data:s.a.array,prefixCls:s.a.string,
// onSelect: (key: string, index: number, selectFunc: any) => void;
hideDefaultSelections:s.a.bool,selections:s.a.oneOfType([s.a.array,s.a.bool]),getPopupContainer:s.a.func},tp={store:Gd,type:Jd,defaultSelection:s.a.arrayOf([s.a.string,s.a.number]),rowIndex:s.a.oneOfType([s.a.string,s.a.number]),name:s.a.string,disabled:s.a.bool,id:s.a.string},np={_propsSymbol:s.a.any,locale:$d,selectedKeys:s.a.arrayOf([s.a.string,s.a.number]),column:s.a.object,confirmFilter:s.a.func,prefixCls:s.a.string,dropdownPrefixCls:s.a.string,getPopupContainer:s.a.func,handleFilter:s.a.func};
/* harmony default export */
// export interface FilterMenuState {
//   selectedKeys: string[];
//   keyPathOfSelectedItem: { [key: string]: string };
//   visible?: PropTypes.bool,
// }
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/util.js
function rp(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",t=[];return function n(r){r.forEach((function(r){if(r[e]){var i=Q()({},r);delete i[e],t.push(i),r[e].length>0&&n(r[e])}else t.push(r)}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),t}function ip(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((function(e,r){var i={};return e[n]&&(i[n]=ip(e[n],t,n)),Q()({},t(e,r),i)}))}function ap(e,t){return e.reduce((function(e,n){if(t(n)&&e.push(n),n.children){var r=ap(n.children,t);e.push.apply(e,g()(r))}return e}),[])}
// export function normalizeColumns (elements) {
//   const columns = []
//   React.Children.forEach(elements, (element) => {
//     if (!React.isValidElement(element)) {
//       return
//     }
//     const column = {
//       ...element.props,
//     }
//     if (element.key) {
//       column.key = element.key
//     }
//     if (element.type && element.type.__ANT_TABLE_COLUMN_GROUP) {
//       column.children = normalizeColumns(column.children)
//     }
//     columns.push(column)
//   })
//   return columns
// }
function op(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e||[]).forEach((function(e){var n=e.value,r=e.children;t[n.toString()]=n,op(r,t)})),t}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/filterDropdown.js
function sp(e){e.stopPropagation()}
/* harmony default export */var cp={name:"FilterMenu",mixins:[d.a],props:Object(N.t)(np,{handleFilter:function(){},column:{}}),data:function(){var e="filterDropdownVisible"in this.column&&this.column.filterDropdownVisible;return this.preProps=Q()({},Object(N.l)(this)),{sSelectedKeys:this.selectedKeys,sKeyPathOfSelectedItem:{},// 记录所有有选中子菜单的祖先菜单
sVisible:e,sValueKeys:op(this.column.filters)}},watch:{_propsSymbol:function(){var e=Object(N.l)(this),t=e.column,n={};
/**
       * if the state is visible the component should ignore updates on selectedKeys prop to avoid
       * that the user selection is lost
       * this happens frequently when a table is connected on some sort of realtime data
       * Fixes https://github.com/ant-design/ant-design/issues/10289 and
       * https://github.com/ant-design/ant-design/issues/10209
       */
"selectedKeys"in e&&!hs()(this.preProps.selectedKeys,e.selectedKeys)&&(n.sSelectedKeys=e.selectedKeys),hs()((this.preProps.column||{}).filters,(e.column||{}).filters)||(n.sValueKeys=op(e.column.filters)),"filterDropdownVisible"in t&&(n.sVisible=t.filterDropdownVisible),Object.keys(n).length>0&&this.setState(n),this.preProps=Q()({},e)}},mounted:function(){var e=this,t=this.column;this.$nextTick((function(){e.setNeverShown(t)}))},updated:function(){var e=this,t=this.column;this.$nextTick((function(){e.setNeverShown(t)}))},methods:{getDropdownVisible:function(){return!this.neverShown&&this.sVisible},setNeverShown:function(e){var t=this.$el;!!Hd()(t,".ant-table-scroll")&&(
// When fixed column have filters, there will be two dropdown menus
// Filter dropdown menu inside scroll body should never be shown
// To fix https://github.com/ant-design/ant-design/issues/5010 and
// https://github.com/ant-design/ant-design/issues/7909
this.neverShown=!!e.fixed)},setSelectedKeys:function(e){var t=e.selectedKeys;this.setState({sSelectedKeys:t})},setVisible:function(e){var t=this.column;"filterDropdownVisible"in t||this.setState({sVisible:e}),t.onFilterDropdownVisibleChange&&t.onFilterDropdownVisibleChange(e)},handleClearFilters:function(){this.setState({sSelectedKeys:[]},this.handleConfirm)},handleConfirm:function(){var e=this;this.setVisible(!1),this.confirmFilter2(),
// Call `setSelectedKeys` & `confirm` in the same time will make filter data not up to date
// https://github.com/ant-design/ant-design/issues/12284
this.$forceUpdate(),this.$nextTick((function(){e.confirmFilter}))},onVisibleChange:function(e){this.setVisible(e);var t=this.$props.column;
// https://github.com/ant-design/ant-design/issues/17833
e||t.filterDropdown instanceof Function||this.confirmFilter2()},handleMenuItemClick:function(e){var t=this.$data.sSelectedKeys;if(e.keyPath&&!(e.keyPath.length<=1)){var n=this.$data.sKeyPathOfSelectedItem;t&&t.indexOf(e.key)>=0?
// deselect SubMenu child
delete n[e.key]:
// select SubMenu child
n[e.key]=e.keyPath,this.setState({sKeyPathOfSelectedItem:n})}},hasSubMenu:function(){var e=this.column.filters;return(void 0===e?[]:e).some((function(e){return!!(e.children&&e.children.length>0)}))},confirmFilter2:function(){var e=this.$props,t=e.column,n=e.selectedKeys,r=e.confirmFilter,i=this.$data,a=i.sSelectedKeys,o=i.sValueKeys,s=t.filterDropdown;hs()(a,n)||r(t,s?a:a.map((function(e){return o[e]})).filter((function(e){return void 0!==e})))},renderMenus:function(e){var t=this,n=this.$createElement,r=this.$props,i=r.dropdownPrefixCls,a=r.prefixCls;return e.map((function(e){if(e.children&&e.children.length>0){var r=t.sKeyPathOfSelectedItem,s=Object.keys(r).some((function(t){return r[t].indexOf(e.value)>=0})),c=l()(a+"-dropdown-submenu",o()({},i+"-submenu-contain-selected",s));return n(Fd.a,{attrs:{title:e.text,popupClassName:c},key:e.value},[t.renderMenus(e.children)])}return t.renderMenuItem(e)}))},renderFilterIcon:function(){var e,t=this.$createElement,n=this.column,r=this.locale,i=this.prefixCls,a=this.selectedKeys,s=a&&a.length>0,c=n.filterIcon;"function"==typeof c&&(c=c(s,n));var u=l()((e={},o()(e,i+"-selected","filtered"in n?n.filtered:s),o()(e,i+"-open",this.getDropdownVisible()),e));return c?1===c.length&&Object(N.w)(c[0])?Object(ce.a)(c[0],{on:{click:sp},class:l()(i+"-icon",u)}):t("span",{class:l()(i+"-icon",u)},[c]):t(We.a,{attrs:{title:r.filterTitle,type:"filter",theme:"filled"},class:u,on:{click:sp}})},renderMenuItem:function(e){var t=this.$createElement,n=this.column,r=this.$data.sSelectedKeys,i=t(!("filterMultiple"in n)||n.filterMultiple?ka:Yh,{attrs:{checked:r&&r.indexOf(e.value)>=0}});return t(ne.a,{key:e.value},[i,t("span",[e.text])])}},render:function(){var e=this,t=arguments[0],n=this.$data.sSelectedKeys,r=this.column,i=this.locale,a=this.prefixCls,s=this.dropdownPrefixCls,c=this.getPopupContainer,u=!("filterMultiple"in r)||r.filterMultiple,h=l()(o()({},s+"-menu-without-submenu",!this.hasSubMenu())),f=r.filterDropdown;f instanceof Function&&(f=f({prefixCls:s+"-custom",setSelectedKeys:function(t){return e.setSelectedKeys({selectedKeys:t})},selectedKeys:n,confirm:this.handleConfirm,clearFilters:this.handleClearFilters,filters:r.filters,visible:this.getDropdownVisible(),column:r}));var d=t(Ud,{class:a+"-dropdown"},f?[f]:[t(de.a,{attrs:{multiple:u,prefixCls:s+"-menu",selectedKeys:n&&n.map((function(e){return e})),getPopupContainer:c},on:{click:this.handleMenuItemClick,select:this.setSelectedKeys,deselect:this.setSelectedKeys},class:h},[this.renderMenus(r.filters)]),t("div",{class:a+"-dropdown-btns"},[t("a",{class:a+"-dropdown-link confirm",on:{click:this.handleConfirm}},[i.filterConfirm]),t("a",{class:a+"-dropdown-link clear",on:{click:this.handleClearFilters}},[i.filterReset])])]);return t(Ls,{attrs:{trigger:["click"],placement:"bottomRight",visible:this.getDropdownVisible(),getPopupContainer:c,forceRender:!0},on:{visibleChange:this.onVisibleChange}},[t("template",{slot:"overlay"},[d]),this.renderFilterIcon()])}},lp={name:"SelectionBox",mixins:[d.a],props:tp,data:function(){return{checked:this.getCheckState(this.$props)}},mounted:function(){this.subscribe()},beforeDestroy:function(){this.unsubscribe&&this.unsubscribe()},methods:{getCheckState:function(e){var t=e.store,n=e.defaultSelection,r=e.rowIndex;return t.getState().selectionDirty?t.getState().selectedRowKeys.indexOf(r)>=0:t.getState().selectedRowKeys.indexOf(r)>=0||n.indexOf(r)>=0},subscribe:function(){var e=this,t=this.store;this.unsubscribe=t.subscribe((function(){var t=e.getCheckState(e.$props);e.setState({checked:t})}))}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.type,r=t.rowIndex,i=X()(t,["type","rowIndex"]),a=this.checked,o={props:Q()({checked:a},i),on:Object(N.k)(this)};return"radio"===n?(o.props.value=r,e(Yh,o)):e(ka,o)}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/SelectionBox.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/SelectionCheckboxAll.js
function up(e){var t=e.store,n=e.getCheckboxPropsByItem,r=e.getRecordKey,i=e.data,a=e.type;return e.byDefaultChecked?i[a]((function(e,t){return n(e,t).defaultChecked})):i[a]((function(e,n){return t.getState().selectedRowKeys.indexOf(r(e,n))>=0}))}function hp(e){var t=e.store,n=e.data;if(!n.length)return!1;var r=up(Q()({},e,{data:n,type:"some",byDefaultChecked:!1}))&&!up(Q()({},e,{data:n,type:"every",byDefaultChecked:!1})),i=up(Q()({},e,{data:n,type:"some",byDefaultChecked:!0}))&&!up(Q()({},e,{data:n,type:"every",byDefaultChecked:!0}));return t.getState().selectionDirty?r:r||i}function fp(e){var t=e.store,n=e.data;return!!n.length&&(t.getState().selectionDirty?up(Q()({},e,{data:n,type:"every",byDefaultChecked:!1})):up(Q()({},e,{data:n,type:"every",byDefaultChecked:!1}))||up(Q()({},e,{data:n,type:"every",byDefaultChecked:!0})))}
/* harmony default export */var dp={name:"SelectionCheckboxAll",mixins:[d.a],props:ep,data:function(){var e=this.$props;return this.defaultSelections=e.hideDefaultSelections?[]:[{key:"all",text:e.locale.selectAll},{key:"invert",text:e.locale.selectInvert}],{checked:fp(e),indeterminate:hp(e)}},watch:{$props:{handler:function(){this.setCheckState(this.$props)},deep:!0}},mounted:function(){this.subscribe()},beforeDestroy:function(){this.unsubscribe&&this.unsubscribe()},methods:{checkSelection:function(e,t,n,r){var i=e||this.$props,a=i.store,o=i.getCheckboxPropsByItem,s=i.getRecordKey;
// type should be 'every' | 'some'
return("every"===n||"some"===n)&&(r?t[n]((function(e,t){return o(e,t).props.defaultChecked})):t[n]((function(e,t){return a.getState().selectedRowKeys.indexOf(s(e,t))>=0})))},setCheckState:function(e){var t=fp(e),n=hp(e);this.setState((function(e){var r={};return n!==e.indeterminate&&(r.indeterminate=n),t!==e.checked&&(r.checked=t),r}))},handleSelectAllChange:function(e){var t=e.target.checked;this.$emit("select",t?"all":"removeAll",0,null)},subscribe:function(){var e=this,t=this.store;this.unsubscribe=t.subscribe((function(){e.setCheckState(e.$props)}))},renderMenus:function(e){var t=this,n=this.$createElement;return e.map((function(e,r){return n(xn.a.Item,{key:e.key||r},[n("div",{on:{click:function(){t.$emit("select",e.key,r,e.onSelect)}}},[e.text])])}))}},render:function(){var e=arguments[0],t=this.disabled,n=this.prefixCls,r=this.selections,i=this.getPopupContainer,a=this.checked,s=this.indeterminate,c=n+"-selection",u=null;if(r){var h=Array.isArray(r)?this.defaultSelections.concat(r):this.defaultSelections,f=e(xn.a,{class:c+"-menu",attrs:{selectedKeys:[]}},[this.renderMenus(h)]);u=h.length>0?e(Ls,{attrs:{getPopupContainer:i}},[e("template",{slot:"overlay"},[f]),e("div",{class:c+"-down"},[e(We.a,{attrs:{type:"down"}})])]):null}return e("div",{class:c},[e(ka,{class:l()(o()({},c+"-select-all-custom",u)),attrs:{checked:a,indeterminate:s,disabled:t},on:{change:this.handleSelectAllChange}}),u])}},pp={name:"ATableColumn",props:Kd},gp={name:"ATableColumnGroup",props:{title:s.a.any},__ANT_TABLE_COLUMN_GROUP:!0},mp={store:Gd,rowKey:s.a.oneOfType([s.a.string,s.a.number]),prefixCls:s.a.string};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/Column.js
/* harmony default export */function vp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"tr",t={name:"BodyRow",props:mp,data:function(){return{selected:this.store.getState().selectedRowKeys.indexOf(this.rowKey)>=0}},mounted:function(){this.subscribe()},beforeDestroy:function(){this.unsubscribe&&this.unsubscribe()},methods:{subscribe:function(){var e=this,t=this.store,n=this.rowKey;this.unsubscribe=t.subscribe((function(){var t=e.store.getState().selectedRowKeys.indexOf(n)>=0;t!==e.selected&&(e.selected=t)}))}},render:function(){var t=arguments[0],n=o()({},this.prefixCls+"-row-selected",this.selected);return t(e,i()([{class:n},{on:Object(N.k)(this)}]),[this.$slots.default])}};return t}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/transButton.js
/**
 * Wrap of sub component which need use as Button capacity (like Icon component).
 * This helps accessibility reader to tread as a interactive button to operation.
 */var yp={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Ap={props:{noStyle:s.a.bool},methods:{onKeyDown:function(e){e.keyCode===Z.a.ENTER&&e.preventDefault()},onKeyUp:function(e){e.keyCode===Z.a.ENTER&&this.$emit("click",e)},setRef:function(e){this.div=e},focus:function(){this.div&&this.div.focus()},blur:function(){this.div&&this.div.blur()}},render:function(){var e=arguments[0],t=this.$props.noStyle;return e("div",i()([{attrs:{role:"button",tabIndex:0}},{directives:[{name:"ant-ref",value:this.setRef}],on:Q()({},this.$listeners,{keydown:this.onKeyDown,keyup:this.onKeyUp})},{style:Q()({},t?null:yp)}]),[this.$slots.default])}},bp=Ap;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/Table.js
function wp(){}function xp(e){e.stopPropagation()}function Cp(e){return e.rowSelection||{}}function _p(e,t){return e.key||e.dataIndex||t}function Ip(e,t){return!!(e&&t&&e.key&&e.key===t.key)||(e===t||hs()(e,t,(function(e,t){
// https://github.com/ant-design/ant-design/issues/12737
return"function"==typeof e&&"function"==typeof t?e===t||e.toString()===t.toString():
// https://github.com/ant-design/ant-design/issues/19398
Array.isArray(e)&&Array.isArray(t)?e===t||hs()(e,t):void 0})))}var Ep={onChange:wp,onShowSizeChange:wp},kp={},Sp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e&&e.body&&e.body.row;return Q()({},e,{body:Q()({},e.body,{row:vp(t)})})};
/**
 * Avoid creating new object, so that parent component's shouldComponentUpdate
 * can works appropriately。
 */function Bp(e,t){return ap(t||(e||{}).columns||[],(function(e){return void 0!==e.filteredValue}))}function Mp(e,t){var n={};return Bp(e,t).forEach((function(e){var t=_p(e);n[t]=e.filteredValue})),n}
/* harmony default export */var Tp={name:"Table",Column:pp,ColumnGroup:gp,mixins:[d.a],props:Object(N.t)(Zd,{dataSource:[],useFixedHeader:!1,
// rowSelection: null,
size:"default",loading:!1,bordered:!1,indentSize:20,locale:{},rowKey:"key",showHeader:!0,sortDirections:["ascend","descend"],childrenColumnName:"children"}),inject:{configProvider:{default:function(){return A.a}}},
// CheckboxPropsCache: {
//   [key: string]: any;
// };
// store: Store;
// columns: ColumnProps<T>[];
// components: TableComponents;
data:function(){
// this.columns = props.columns || normalizeColumns(props.children)
var e=Object(N.l)(this);return Object(w.a)(!e.expandedRowRender||!("scroll"in e),"`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time."),this.CheckboxPropsCache={},this.store=Vd({selectedRowKeys:Cp(this.$props).selectedRowKeys||[],selectionDirty:!1}),Q()({},this.getDefaultSortOrder(e.columns||[]),{
// 减少状态
sFilters:this.getDefaultFilters(e.columns),sPagination:this.getDefaultPagination(this.$props),pivot:void 0,sComponents:Sp(this.components),filterDataCnt:0})},watch:{pagination:{handler:function(e){this.setState((function(t){var n=Q()({},Ep,t.sPagination,e);return n.current=n.current||1,n.pageSize=n.pageSize||10,{sPagination:!1!==e?n:kp}}))},deep:!0},rowSelection:{handler:function(e,t){if(e&&"selectedRowKeys"in e){this.store.setState({selectedRowKeys:e.selectedRowKeys||[]});var n=this.rowSelection;n&&e.getCheckboxProps!==n.getCheckboxProps&&(this.CheckboxPropsCache={})}else t&&!e&&this.store.setState({selectedRowKeys:[]})},deep:!0},dataSource:function(){this.store.setState({selectionDirty:!1}),this.CheckboxPropsCache={}},columns:function(e){var t,n;if(Bp({columns:e},e).length>0){var r=Mp({columns:e},e),i=Q()({},this.sFilters);Object.keys(r).forEach((function(e){i[e]=r[e]})),t={filters:this.sFilters},n=i,(Object.keys(n).length!==Object.keys(t.filters).length||Object.keys(n).some((function(e){return n[e]!==t.filters[e]})))&&this.setState({sFilters:i})}},components:{handler:function(e,t){if(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e===t||["table","header","body"].every((function(n){return hs()(e[n],t[n])}))}(e,t)){var n=Sp(e);this.setState({sComponents:n})}},deep:!0}},updated:function(){var e=this.columns,t=this.sSortColumn,n=this.sSortOrder;if(this.getSortOrderColumns(e).length>0){var r=this.getSortStateFromColumns(e);Ip(r.sSortColumn,t)&&r.sSortOrder===n||this.setState(r)}},methods:{getCheckboxPropsByItem:function(e,t){var n=Cp(this.$props);if(!n.getCheckboxProps)return{props:{}};var r=this.getRecordKey(e,t);
// Cache checkboxProps
return this.CheckboxPropsCache[r]||(this.CheckboxPropsCache[r]=n.getCheckboxProps(e)),this.CheckboxPropsCache[r].props=this.CheckboxPropsCache[r].props||{},this.CheckboxPropsCache[r]},getDefaultSelection:function(){var e=this;return Cp(this.$props).getCheckboxProps?this.getFlatData().filter((function(t,n){return e.getCheckboxPropsByItem(t,n).props.defaultChecked})).map((function(t,n){return e.getRecordKey(t,n)})):[]},getDefaultPagination:function(e){var t="object"===Y()(e.pagination)?e.pagination:{},n=void 0;"current"in t?n=t.current:"defaultCurrent"in t&&(n=t.defaultCurrent);var r=void 0;return"pageSize"in t?r=t.pageSize:"defaultPageSize"in t&&(r=t.defaultPageSize),this.hasPagination(e)?Q()({},Ep,t,{current:n||1,pageSize:r||10}):{}},getSortOrderColumns:function(e){return ap(e||this.columns||[],(function(e){return"sortOrder"in e}))},getDefaultFilters:function(e){var t=Mp({columns:this.columns},e),n=ap(e||[],(function(e){return void 0!==e.defaultFilteredValue})).reduce((function(e,t){return e[_p(t)]=t.defaultFilteredValue,e}),{});return Q()({},n,t)},getDefaultSortOrder:function(e){var t=this.getSortStateFromColumns(e),n=ap(e||[],(function(e){return null!=e.defaultSortOrder}))[0];return n&&!t.sortColumn?{sSortColumn:n,sSortOrder:n.defaultSortOrder}:t},getSortStateFromColumns:function(e){
// return first column which sortOrder is not falsy
var t=this.getSortOrderColumns(e).filter((function(e){return e.sortOrder}))[0];return t?{sSortColumn:t,sSortOrder:t.sortOrder}:{sSortColumn:null,sSortOrder:null}},getMaxCurrent:function(e){var t=this.sPagination,n=t.current,r=t.pageSize;return(n-1)*r>=e?Math.floor((e-1)/r)+1:n},getRecordKey:function(e,t){var n=this.rowKey,r="function"==typeof n?n(e,t):e[n];return Object(w.a)(void 0!==r,"Table","Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key, "),void 0===r?t:r},getSorterFn:function(e){var t=e||this.$data,n=t.sSortOrder,r=t.sSortColumn;if(n&&r&&"function"==typeof r.sorter)return function(e,t){var i=r.sorter(e,t,n);return 0!==i?"descend"===n?-i:i:0}},getCurrentPageData:function(){var e=this.getLocalData();this.filterDataCnt=e.length;var t=void 0,n=void 0,r=this.sPagination;
// 如果没有分页的话，默认全部展示
return this.hasPagination()?(n=r.pageSize,t=this.getMaxCurrent(r.total||e.length)):(n=Number.MAX_VALUE,t=1),
// 分页
// ---
// 当数据量少于等于每页数量时，直接设置数据
// 否则进行读取分页数据
(e.length>n||n===Number.MAX_VALUE)&&(e=e.slice((t-1)*n,t*n)),e},getFlatData:function(){var e=this.$props.childrenColumnName;return rp(this.getLocalData(null,!1),e)},getFlatCurrentPageData:function(){var e=this.$props.childrenColumnName;return rp(this.getCurrentPageData(),e)},getLocalData:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e||this.$data,i=r.sFilters,a=this.$props.dataSource||[];
// 优化本地排序
a=a.slice(0);var o=this.getSorterFn(r);return o&&(
// 使用新数组，避免改变原数组导致无限循环更新
// https://github.com/vueComponent/ant-design-vue/issues/2270
a=this.recursiveSort([].concat(g()(a)),o)),
// 筛选
n&&i&&Object.keys(i).forEach((function(e){var n=t.findColumn(e);if(n){var r=i[e]||[];if(0!==r.length){var o=n.onFilter;a=o?a.filter((function(e){return r.some((function(t){return o(t,e)}))})):a}}})),a},onRow:function(e,t,n){var r=this.customRow,i=r?r(t,n):{};return Object(N.x)(i,{props:{prefixCls:e,store:this.store,rowKey:this.getRecordKey(t,n)}})},setSelectedRowKeys:function(e,t){var n=this,r=t.selectWay,i=t.record,a=t.checked,o=t.changeRowKeys,s=t.nativeEvent,c=Cp(this.$props);c&&!("selectedRowKeys"in c)&&this.store.setState({selectedRowKeys:e});var l=this.getFlatData();if(c.onChange||c[r]){var u=l.filter((function(t,r){return e.indexOf(n.getRecordKey(t,r))>=0}));if(c.onChange&&c.onChange(e,u),"onSelect"===r&&c.onSelect)c.onSelect(i,a,u,s);else if("onSelectMultiple"===r&&c.onSelectMultiple){var h=l.filter((function(e,t){return o.indexOf(n.getRecordKey(e,t))>=0}));c.onSelectMultiple(a,u,h)}else if("onSelectAll"===r&&c.onSelectAll){var f=l.filter((function(e,t){return o.indexOf(n.getRecordKey(e,t))>=0}));c.onSelectAll(a,u,f)}else"onSelectInvert"===r&&c.onSelectInvert&&c.onSelectInvert(e)}},generatePopupContainerFunc:function(e){var t=this.$props.scroll,n=this.$refs.vcTable;return e||(t&&n?function(){return n.getTableNode()}:void 0);
// Use undefined to let rc component use default logic.
},scrollToFirstRow:function(){var e=this,t=this.$props.scroll;t&&!1!==t.scrollToFirstRowOnChange&&j(0,{getContainer:function(){return e.$refs.vcTable.getBodyTable()}})},isSameColumn:function(e,t){return!!(e&&t&&e.key&&e.key===t.key)||(e===t||hs()(e,t,(function(e,t){if("function"==typeof e&&"function"==typeof t)return e===t||e.toString()===t.toString()})))},handleFilter:function(e,t){var n=this,r=this.$props,i=Q()({},this.sPagination),a=Q()({},this.sFilters,o()({},_p(e),t)),s=[];ip(this.columns,(function(e){e.children||s.push(_p(e))})),Object.keys(a).forEach((function(e){s.indexOf(e)<0&&delete a[e]})),r.pagination&&(
// Reset current prop
i.current=1,i.onChange(i.current));var c={sPagination:i,sFilters:{}},l=Q()({},a);
// Remove filters which is controlled
Bp({columns:r.columns}).forEach((function(e){var t=_p(e);t&&delete l[t]})),Object.keys(l).length>0&&(c.sFilters=l),
// Controlled current prop will not respond user interaction
"object"===Y()(r.pagination)&&"current"in r.pagination&&(c.sPagination=Q()({},i,{current:this.sPagination.current})),this.setState(c,(function(){n.scrollToFirstRow(),n.store.setState({selectionDirty:!1}),n.$emit.apply(n,["change"].concat(g()(n.prepareParamsArguments(Q()({},n.$data,{sSelectionDirty:!1,sFilters:a,sPagination:i})))))}))},handleSelect:function(e,t,n){var r=this,i=n.target.checked,a=n.nativeEvent,o=this.store.getState().selectionDirty?[]:this.getDefaultSelection(),s=this.store.getState().selectedRowKeys.concat(o),c=this.getRecordKey(e,t),l=this.$data.pivot,u=this.getFlatCurrentPageData(),h=t;if(this.$props.expandedRowRender&&(h=u.findIndex((function(e){return r.getRecordKey(e,t)===c}))),a.shiftKey&&void 0!==l&&h!==l){for(var f=[],d=Math.sign(l-h),p=Math.abs(l-h),g=0,m=function(){var e=h+g*d;g+=1;var t=u[e],n=r.getRecordKey(t,e);r.getCheckboxPropsByItem(t,e).disabled||(s.includes(n)?i||(s=s.filter((function(e){return n!==e})),f.push(n)):i&&(s.push(n),f.push(n)))};g<=p;)m();this.setState({pivot:h}),this.store.setState({selectionDirty:!0}),this.setSelectedRowKeys(s,{selectWay:"onSelectMultiple",record:e,checked:i,changeRowKeys:f,nativeEvent:a})}else i?s.push(this.getRecordKey(e,h)):s=s.filter((function(e){return c!==e})),this.setState({pivot:h}),this.store.setState({selectionDirty:!0}),this.setSelectedRowKeys(s,{selectWay:"onSelect",record:e,checked:i,changeRowKeys:void 0,nativeEvent:a})},handleRadioSelect:function(e,t,n){var r=n.target.checked,i=n.nativeEvent,a=[this.getRecordKey(e,t)];this.store.setState({selectionDirty:!0}),this.setSelectedRowKeys(a,{selectWay:"onSelect",record:e,checked:r,changeRowKeys:void 0,nativeEvent:i})},handleSelectRow:function(e,t,n){var r=this,i=this.getFlatCurrentPageData(),a=this.store.getState().selectionDirty?[]:this.getDefaultSelection(),o=this.store.getState().selectedRowKeys.concat(a),s=i.filter((function(e,t){return!r.getCheckboxPropsByItem(e,t).props.disabled})).map((function(e,t){return r.getRecordKey(e,t)})),c=[],l="onSelectAll",u=void 0;
// handle default selection
switch(e){case"all":s.forEach((function(e){o.indexOf(e)<0&&(o.push(e),c.push(e))})),l="onSelectAll",u=!0;break;case"removeAll":s.forEach((function(e){o.indexOf(e)>=0&&(o.splice(o.indexOf(e),1),c.push(e))})),l="onSelectAll",u=!1;break;case"invert":s.forEach((function(e){o.indexOf(e)<0?o.push(e):o.splice(o.indexOf(e),1),c.push(e),l="onSelectInvert"}))}this.store.setState({selectionDirty:!0});
// when select custom selection, callback selections[n].onSelect
var h=this.rowSelection,f=2;if(h&&h.hideDefaultSelections&&(f=0),t>=f&&"function"==typeof n)return n(s);this.setSelectedRowKeys(o,{selectWay:l,checked:u,changeRowKeys:c})},handlePageChange:function(e){var t=this.$props,n=Q()({},this.sPagination);n.current=e||(n.current||1);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];n.onChange.apply(n,[n.current].concat(g()(i)));var o={sPagination:n};
// Controlled current prop will not respond user interaction
t.pagination&&"object"===Y()(t.pagination)&&"current"in t.pagination&&(o.sPagination=Q()({},n,{current:this.sPagination.current})),this.setState(o,this.scrollToFirstRow),this.store.setState({selectionDirty:!1}),this.$emit.apply(this,["change"].concat(g()(this.prepareParamsArguments(Q()({},this.$data,{sSelectionDirty:!1,sPagination:n})))))},handleShowSizeChange:function(e,t){var n=this.sPagination;n.onShowSizeChange(e,t);var r=Q()({},n,{pageSize:t,current:e});this.setState({sPagination:r},this.scrollToFirstRow),this.$emit.apply(this,["change"].concat(g()(this.prepareParamsArguments(Q()({},this.$data,{sPagination:r})))))},toggleSortOrder:function(e){var t=e.sortDirections||this.sortDirections,n=this.sSortOrder,r=void 0;
// 切换另一列时，丢弃 sortOrder 的状态
if(Ip(this.sSortColumn,e)&&void 0!==n){
// 按照sortDirections的内容依次切换排序状态
var i=t.indexOf(n)+1;r=i===t.length?void 0:t[i]}else r=t[0];var a={sSortOrder:r,sSortColumn:r?e:null};
// Controlled
0===this.getSortOrderColumns().length&&this.setState(a,this.scrollToFirstRow),this.$emit.apply(this,["change"].concat(g()(this.prepareParamsArguments(Q()({},this.$data,a),e))))},hasPagination:function(e){return!1!==(e||this.$props).pagination},isSortColumn:function(e){var t=this.sSortColumn;return!(!e||!t)&&_p(t)===_p(e)},
// Get pagination, filters, sorter
prepareParamsArguments:function(e,t){var n=Q()({},e.sPagination);
// remove useless handle function in Table.onChange
delete n.onChange,delete n.onShowSizeChange;var r=e.sFilters,i={},a=t;return e.sSortColumn&&e.sSortOrder&&(a=e.sSortColumn,i.column=e.sSortColumn,i.order=e.sSortOrder),a&&(i.field=a.dataIndex,i.columnKey=_p(a)),[n,r,i,{currentDataSource:this.getLocalData(e)}]},findColumn:function(e){var t=void 0;return ip(this.columns,(function(n){_p(n)===e&&(t=n)})),t},recursiveSort:function(e,t){var n=this,r=this.childrenColumnName,i=void 0===r?"children":r;return e.sort(t).map((function(e){return e[i]?Q()({},e,o()({},i,n.recursiveSort([].concat(g()(e[i])),t))):e}))},renderExpandIcon:function(e){var t=this.$createElement;return function(n){var r=n.expandable,i=n.expanded,a=n.needIndentSpaced,s=n.record,c=n.onExpand;return r?t(vr.a,{attrs:{componentName:"Table",defaultLocale:vh.a.Table}},[function(n){var r;return t(bp,{class:l()(e+"-row-expand-icon",(r={},o()(r,e+"-row-collapsed",!i),o()(r,e+"-row-expanded",i),r)),on:{click:function(e){c(s,e)}},attrs:{"aria-label":i?n.collapse:n.expand,noStyle:!0}})}]):a?t("span",{class:e+"-row-expand-icon "+e+"-row-spaced"}):null}},renderPagination:function(e,t){var n=this.$createElement;
// 强制不需要分页
if(!this.hasPagination())return null;var r="default",i=this.sPagination;i.size?r=i.size:"middle"!==this.size&&"small"!==this.size||(r="small");var a=i.position||"bottom",o=i.total||this.filterDataCnt,s=i.class,c=i.style,u=(i.onChange,i.onShowSizeChange,X()(i,["class","style","onChange","onShowSizeChange"])),h=Object(N.x)({key:"pagination-"+t,class:l()(s,e+"-pagination"),props:Q()({},u,{total:o,size:r,current:this.getMaxCurrent(o)}),style:c,on:{change:this.handlePageChange,showSizeChange:this.handleShowSizeChange}});return o>0&&(a===t||"both"===a)?n(Tl,h):null},renderSelectionBox:function(e){var t=this,n=this.$createElement;return function(r,i,a){var o=t.getRecordKey(i,a),s=t.getCheckboxPropsByItem(i,a),c=Object(N.x)({props:{type:e,store:t.store,rowIndex:o,defaultSelection:t.getDefaultSelection()},on:{change:function(n){"radio"===e?t.handleRadioSelect(i,a,n):t.handleSelect(i,a,n)}}},s);// 从 1 开始
return n("span",{on:{click:xp}},[n(lp,c)])}},renderRowSelection:function(e){var t=this,n=e.prefixCls,r=e.locale,i=e.getPopupContainer,a=this.$createElement,s=this.rowSelection,c=this.columns.concat();if(s){var u=this.getFlatCurrentPageData().filter((function(e,n){return!s.getCheckboxProps||!t.getCheckboxPropsByItem(e,n).props.disabled})),h=l()(n+"-selection-column",o()({},n+"-selection-column-custom",s.selections)),f=o()({key:"selection-column",customRender:this.renderSelectionBox(s.type),className:h,fixed:s.fixed,width:s.columnWidth,title:s.columnTitle},od,{class:n+"-selection-col"});if("radio"!==s.type){var d=u.every((function(e,n){return t.getCheckboxPropsByItem(e,n).props.disabled}));f.title=f.title||a(dp,{attrs:{store:this.store,locale:r,data:u,getCheckboxPropsByItem:this.getCheckboxPropsByItem,getRecordKey:this.getRecordKey,disabled:d,prefixCls:n,selections:s.selections,hideDefaultSelections:s.hideDefaultSelections,getPopupContainer:this.generatePopupContainerFunc(i)},on:{select:this.handleSelectRow}})}"fixed"in s?f.fixed=s.fixed:c.some((function(e){return"left"===e.fixed||!0===e.fixed}))&&(f.fixed="left"),c[0]&&"selection-column"===c[0].key?c[0]=f:c.unshift(f)}return c},renderColumnsDropdown:function(e){var t=this,n=e.prefixCls,r=e.dropdownPrefixCls,i=e.columns,a=e.locale,s=e.getPopupContainer,c=this.$createElement,u=this.sSortOrder,h=this.sFilters;return ip(i,(function(e,i){var f,d=_p(e,i),p=void 0,g=void 0,m=e.customHeaderCell,v=t.isSortColumn(e);if(e.filters&&e.filters.length>0||e.filterDropdown){var y=d in h?h[d]:[];p=c(cp,{attrs:{_propsSymbol:Symbol(),locale:a,column:e,selectedKeys:y,confirmFilter:t.handleFilter,prefixCls:n+"-filter",dropdownPrefixCls:r||"ant-dropdown",getPopupContainer:t.generatePopupContainerFunc(s)},key:"filter-dropdown"})}if(e.sorter){var A=e.sortDirections||t.sortDirections,b=v&&"ascend"===u,w=v&&"descend"===u,x=-1!==A.indexOf("ascend")&&c(We.a,{class:n+"-column-sorter-up "+(b?"on":"off"),attrs:{type:"caret-up",theme:"filled"},key:"caret-up"}),C=-1!==A.indexOf("descend")&&c(We.a,{class:n+"-column-sorter-down "+(w?"on":"off"),attrs:{type:"caret-down",theme:"filled"},key:"caret-down"});g=c("div",{attrs:{title:a.sortTitle},class:l()(n+"-column-sorter-inner",x&&C&&n+"-column-sorter-inner-full"),key:"sorter"},[x,C]),m=function(n){var r={};
// Get original first
e.customHeaderCell&&(r=Q()({},e.customHeaderCell(n))),r.on=r.on||{};
// Add sorter logic
var i=r.on.click;return r.on.click=function(){t.toggleSortOrder(e),i&&i.apply(void 0,arguments)},r}}return Q()({},e,{className:l()(e.className,(f={},o()(f,n+"-column-has-actions",g||p),o()(f,n+"-column-has-filters",p),o()(f,n+"-column-has-sorters",g),o()(f,n+"-column-sort",v&&u),f)),title:[c("span",{key:"title",class:n+"-header-column"},[c("div",{class:g?n+"-column-sorters":void 0},[c("span",{class:n+"-column-title"},[t.renderColumnTitle(e.title)]),c("span",{class:n+"-column-sorter"},[g])])]),p],customHeaderCell:m})}))},renderColumnTitle:function(e){var t=this.$data,n=t.sFilters,r=t.sSortOrder,i=t.sSortColumn;
// https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167
return e instanceof Function?e({filters:n,sortOrder:r,sortColumn:i}):e},renderTable:function(e){var t,n=this,r=e.prefixCls,i=e.renderEmpty,a=e.dropdownPrefixCls,s=e.contextLocale,c=e.getPopupContainer,u=e.transformCellText,h=this.$createElement,f=Object(N.l)(this),d=f.showHeader,p=f.locale,g=f.getPopupContainer,m=X()(f,["showHeader","locale","getPopupContainer"]),v=this.getCurrentPageData(),y=this.expandedRowRender&&!1!==this.expandIconAsCell,A=g||c,b=Q()({},s,p);p&&p.emptyText||(b.emptyText=i(h,"Table"));var w=l()((t={},o()(t,r+"-"+this.size,!0),o()(t,r+"-bordered",this.bordered),o()(t,r+"-empty",!v.length),o()(t,r+"-without-column-header",!d),t)),x=this.renderRowSelection({prefixCls:r,locale:b,getPopupContainer:A}),C=this.renderColumnsDropdown({columns:x,prefixCls:r,dropdownPrefixCls:a,locale:b,getPopupContainer:A}).map((function(e,t){var n=Q()({},e);return n.key=_p(n,t),n})),_=C[0]&&"selection-column"===C[0].key?1:0;"expandIconColumnIndex"in m&&(_=m.expandIconColumnIndex);var I={key:"table",props:Q()({expandIcon:this.renderExpandIcon(r)},m,{customRow:function(e,t){return n.onRow(r,e,t)},components:this.sComponents,prefixCls:r,data:v,columns:C,showHeader:d,expandIconColumnIndex:_,expandIconAsCell:y,emptyText:b.emptyText,transformCellText:u}),on:Object(N.k)(this),class:w,ref:"vcTable"};return h(Nd,I)}},render:function(){var e=this,t=arguments[0],n=this.prefixCls,r=this.dropdownPrefixCls,i=this.transformCellText,a=this.getCurrentPageData(),o=this.configProvider,s=o.getPopupContainer,c=o.transformCellText,u=this.getPopupContainer||s,h=i||c,f=this.loading;f="boolean"==typeof f?{props:{spinning:f}}:{props:Q()({},f)};var d=this.configProvider.getPrefixCls,p=this.configProvider.renderEmpty,g=d("table",n),m=d("dropdown",r),v=t(vr.a,{attrs:{componentName:"Table",defaultLocale:vh.a.Table,children:function(t){return e.renderTable({prefixCls:g,renderEmpty:p,dropdownPrefixCls:m,contextLocale:t,getPopupContainer:u,transformCellText:h})}}}),y=this.hasPagination()&&a&&0!==a.length?g+"-with-pagination":g+"-without-pagination",A=Q()({},f,{class:f.props&&f.props.spinning?y+" "+g+"-spin-holder":""});return t("div",{class:l()(g+"-wrapper")},[t(yl,A,[this.renderPagination(g,"top"),v,this.renderPagination(g,"bottom")])])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/table/index.js
oe.default.use(he.a,{name:"ant-ref"});var Op={name:"ATable",Column:Tp.Column,ColumnGroup:Tp.ColumnGroup,props:Tp.props,methods:{normalize:function(){var e=this,t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){if(n.tag){var r=Object(N.j)(n),i=Object(N.q)(n),a=Object(N.f)(n),o=Object(N.l)(n),s=Object(N.i)(n),c={};Object.keys(s).forEach((function(e){var t="on-"+e;c[Object(N.a)(t)]=s[e]}));var l=Object(N.p)(n),u=l.default,h=X()(l,["default"]),f=Q()({},h,o,{style:i,class:a},c);if(r&&(f.key=r),Object(N.o)(n).__ANT_TABLE_COLUMN_GROUP)f.children=e.normalize("function"==typeof u?u():u);else{var d=n.data&&n.data.scopedSlots&&n.data.scopedSlots.default;f.customRender=f.customRender||d}t.push(f)}})),t},updateColumns:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=this.$slots,i=this.$scopedSlots;return t.forEach((function(t){var a=t.slots,o=void 0===a?{}:a,s=t.scopedSlots,c=void 0===s?{}:s,l=X()(t,["slots","scopedSlots"]),u=Q()({},l);Object.keys(o).forEach((function(e){var t=o[e];void 0===u[e]&&r[t]&&(u[e]=1===r[t].length?r[t][0]:r[t])})),Object.keys(c).forEach((function(e){var t=c[e];void 0===u[e]&&i[t]&&(u[e]=i[t])})),
// if (slotScopeName && $scopedSlots[slotScopeName]) {
//   column.customRender = column.customRender || $scopedSlots[slotScopeName]
// }
t.children&&(u.children=e.updateColumns(u.children)),n.push(u)})),n}},render:function(){var e=arguments[0],t=this.$slots,n=this.normalize,r=this.$scopedSlots,i=Object(N.l)(this),a=i.columns?this.updateColumns(i.columns):n(t.default),o=i.title,s=i.footer,c=r.title,l=r.footer,u=r.expandedRowRender,h=void 0===u?i.expandedRowRender:u;o=o||c,s=s||l;var f={props:Q()({},i,{columns:a,title:o,footer:s,expandedRowRender:h}),on:Object(N.k)(this)};return e(Tp,f)},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Op.name,Op),e.component(Op.Column.name,Op.Column),e.component(Op.ColumnGroup.name,Op.ColumnGroup)}},Dp=Op,Pp={prefixCls:s.a.string,placeholder:s.a.string,value:s.a.any,handleClear:s.a.func,disabled:s.a.bool},Lp={name:"Search",props:Object(N.t)(Pp,{placeholder:""}),methods:{handleChange:function(e){this.$emit("change",e)},handleClear2:function(e){e.preventDefault();var t=this.$props,n=t.handleClear;!t.disabled&&n&&n(e)}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.placeholder,r=t.value,i=t.prefixCls,a=t.disabled,o=r&&r.length>0?e("a",{attrs:{href:"#"},class:i+"-action",on:{click:this.handleClear2}},[e(We.a,{attrs:{type:"close-circle",theme:"filled"}})]):e("span",{class:i+"-action"},[e(We.a,{attrs:{type:"search"}})]);return e("div",[e(Qt,{attrs:{placeholder:n,value:r,disabled:a},class:i,on:{change:this.handleChange}}),o])}},Qp=n("0f32"),Rp=n.n(Qp),jp=function(e,t){return"undefined"!=typeof getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]},Np=function(e){return jp(e,"overflow")+jp(e,"overflow-y")+jp(e,"overflow-x")},Fp=function(e){if(!(e instanceof window.HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(Np(t)))return t;t=t.parentNode}return window};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-lazy-load/src/utils/getElementPosition.js
/*
 * Finds element's position relative to the whole document,
 * rather than to the viewport as it is the case with .getBoundingClientRect().
 */
function zp(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-lazy-load/src/utils/inViewport.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-lazy-load/src/LazyLoad.js
var Hp={debounce:s.a.bool,elementType:s.a.string,height:s.a.oneOfType([s.a.string,s.a.number]),offset:s.a.number,offsetBottom:s.a.number,offsetHorizontal:s.a.number,offsetLeft:s.a.number,offsetRight:s.a.number,offsetTop:s.a.number,offsetVertical:s.a.number,threshold:s.a.number,throttle:s.a.number,width:s.a.oneOfType([s.a.string,s.a.number]),_propsSymbol:s.a.any},Up={name:"LazyLoad",mixins:[d.a],props:Object(N.t)(Hp,{elementType:"div",debounce:!0,offset:0,offsetBottom:0,offsetHorizontal:0,offsetLeft:0,offsetRight:0,offsetTop:0,offsetVertical:0,throttle:250}),data:function(){return this.throttle>0&&(this.debounce?this.lazyLoadHandler=ci()(this.lazyLoadHandler,this.throttle):this.lazyLoadHandler=Rp()(this.lazyLoadHandler,this.throttle)),{visible:!1}},watch:{_propsSymbol:function(){this.visible||this.lazyLoadHandler()}},mounted:function(){var e=this;this.$nextTick((function(){e._mounted=!0;var t=e.getEventNode();e.lazyLoadHandler(),e.lazyLoadHandler.flush&&e.lazyLoadHandler.flush(),e.resizeHander=Object(x.a)(window,"resize",e.lazyLoadHandler),e.scrollHander=Object(x.a)(t,"scroll",e.lazyLoadHandler)}))},beforeDestroy:function(){this._mounted=!1,this.lazyLoadHandler.cancel&&this.lazyLoadHandler.cancel(),this.detachListeners()},methods:{getEventNode:function(){return Fp(this.$el)},getOffset:function(){var e=this.$props,t=e.offset,n=e.offsetVertical,r=e.offsetHorizontal,i=e.offsetTop,a=e.offsetBottom,o=e.offsetLeft,s=e.offsetRight,c=e.threshold||t,l=n||c,u=r||c;return{top:i||l,bottom:a||l,left:o||u,right:s||u}},lazyLoadHandler:function(){var e=this;if(this._mounted){var t=this.getOffset();(function(e,t,n){if(function(e){return null===e.offsetParent}(e))return!1;var r=void 0,i=void 0,a=void 0,o=void 0;if(void 0===t||t===window)r=window.pageYOffset,a=window.pageXOffset,i=r+window.innerHeight,o=a+window.innerWidth;else{var s=zp(t);r=s.top,a=s.left,i=r+t.offsetHeight,o=a+t.offsetWidth}var c=zp(e);return r<=c.top+e.offsetHeight+n.top&&i>=c.top-n.bottom&&a<=c.left+e.offsetWidth+n.left&&o>=c.left-n.right})(this.$el,this.getEventNode(),t)&&(this.setState({visible:!0},(function(){e.__emit("contentVisible")})),this.detachListeners())}},detachListeners:function(){this.resizeHander&&this.resizeHander.remove(),this.scrollHander&&this.scrollHander.remove()}},render:function(e){var t=this.$slots.default;if(1!==t.length)return Object(w.a)(!1,"lazyLoad组件只能包含一个子元素"),null;var n=this.$props,r=n.height,i=n.width,a=n.elementType,o=this.visible;return e(a,{class:{LazyLoad:!0,"is-visible":o},style:{height:"number"==typeof r?r+"px":r,width:"number"==typeof i?i+"px":i}},[o?t[0]:null])}};
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/transfer/ListItem.js
function Gp(){}
/* harmony default export */var Vp={name:"ListItem",props:{renderedText:s.a.any,renderedEl:s.a.any,item:s.a.any,lazy:s.a.oneOfType([s.a.bool,s.a.object]),checked:s.a.bool,prefixCls:s.a.string,disabled:s.a.bool},render:function(){var e,t=this,n=arguments[0],r=this.$props,i=r.renderedText,a=r.renderedEl,s=r.item,c=r.lazy,u=r.checked,h=r.disabled,f=r.prefixCls,d=l()((e={},o()(e,f+"-content-item",!0),o()(e,f+"-content-item-disabled",h||s.disabled),e)),p=void 0;"string"!=typeof i&&"number"!=typeof i||(p=String(i));var g=n("li",{class:d,attrs:{title:p},on:{click:h||s.disabled?Gp:function(){t.$emit("click",s)}}},[n(ka,{attrs:{checked:u,disabled:h||s.disabled}}),n("span",{class:f+"-content-item-text"},[a])]),m=null;if(c){var v={props:Q()({height:32,offset:500,throttle:0,debounce:!1},c,{_propsSymbol:Symbol()})};m=n(Up,v,[g])}else m=g;return m}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/transfer/renderListBody.js
function Wp(){}var qp={name:"ListBody",inheritAttrs:!1,props:{prefixCls:s.a.string,filteredRenderItems:s.a.array.def([]),lazy:s.a.oneOfType([s.a.bool,s.a.object]),selectedKeys:s.a.array,disabled:s.a.bool},data:function(){return{mounted:!1}},computed:{itemsLength:function(){return this.filteredRenderItems?this.filteredRenderItems.length:0}},watch:{itemsLength:function(){var e=this;this.$nextTick((function(){if(!1!==e.$props.lazy){var t=e.$el;lt.cancel(e.lazyId),e.lazyId=lt((function(){if(t){var e=new Event("scroll",{bubbles:!0});t.dispatchEvent(e)}}))}}))}},mounted:function(){var e=this;this.mountId=lt((function(){e.mounted=!0}))},beforeDestroy:function(){lt.cancel(this.mountId),lt.cancel(this.lazyId)},methods:{onItemSelect:function(e){var t=this.$props.selectedKeys.indexOf(e.key)>=0;this.$emit("itemSelect",e.key,!t)},onScroll:function(e){this.$emit("scroll",e)}},render:function(){var e=this,t=arguments[0],n=this.$data.mounted,r=this.$props,a=r.prefixCls,o=r.filteredRenderItems,s=r.lazy,c=r.selectedKeys,l=r.disabled,u=o.map((function(n){var r=n.renderedEl,i=n.renderedText,o=n.item,u=o.disabled,h=c.indexOf(o.key)>=0;return t(Vp,{attrs:{disabled:l||u,item:o,lazy:s,renderedText:i,renderedEl:r,checked:h,prefixCls:a},key:o.key,on:{click:e.onItemSelect}})})),h=Object(se.a)(n?a+"-content-item-highlight":"",{tag:"ul",nativeOn:{scroll:this.onScroll},leave:Wp});return t("transition-group",i()([{class:a+"-content"},h]),[u])}};
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/transfer/list.js
var Yp=function(){return null},Kp={key:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string,disabled:s.a.bool};var $p={prefixCls:s.a.string,titleText:s.a.string,dataSource:s.a.arrayOf(s.a.shape(Kp).loose),filter:s.a.string,filterOption:s.a.func,checkedKeys:s.a.arrayOf(s.a.string),handleFilter:s.a.func,handleSelect:s.a.func,handleSelectAll:s.a.func,handleClear:s.a.func,renderItem:s.a.func,showSearch:s.a.bool,searchPlaceholder:s.a.string,notFoundContent:s.a.any,itemUnit:s.a.string,itemsUnit:s.a.string,body:s.a.any,renderList:s.a.any,footer:s.a.any,lazy:s.a.oneOfType([s.a.bool,s.a.object]),disabled:s.a.bool,direction:s.a.string,showSelectAll:s.a.bool};function Jp(e,t,n){var r=t?t(n):null,i=!!r;return i||(r=function(e,t){return e(qp,t)}(e,n)),{customize:i,bodyContent:r}}
/* harmony default export */var Xp={name:"TransferList",mixins:[d.a],props:Object(N.t)($p,{dataSource:[],titleText:"",showSearch:!1,lazy:{}}),data:function(){return this.timer=null,this.triggerScrollTimer=null,{filterValue:""}},
// mounted() {
//   this.timer = setTimeout(() => {
//     this.setState({
//       mounted: true,
//     });
//   }, 0);
//   this.$nextTick(() => {
//     if (this.$refs.listContentWrapper) {
//       const listContentWrapperDom = this.$refs.listContentWrapper.$el;
//       this.scrollEvent = addEventListener(listContentWrapperDom, 'scroll', this.handleScroll);
//     }
//   });
// },
beforeDestroy:function(){clearTimeout(this.triggerScrollTimer);
// if (this.scrollEvent) {
//   this.scrollEvent.remove();
// }
},updated:function(){var e=this;this.$nextTick((function(){if(e.scrollEvent&&e.scrollEvent.remove(),e.$refs.listContentWrapper){var t=e.$refs.listContentWrapper.$el;e.scrollEvent=Object(x.a)(t,"scroll",e.handleScroll)}}))},methods:{handleScroll:function(e){this.$emit("scroll",e)},getCheckStatus:function(e){var t=this.$props.checkedKeys;return 0===t.length?"none":e.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"},getFilteredItems:function(e,t){var n=this,r=[],i=[];return e.forEach((function(e){var a=n.renderItemHtml(e),o=a.renderedText;
// Filter skip
if(t&&t.trim()&&!n.matchFilter(o,e))return null;r.push(e),i.push(a)})),{filteredItems:r,filteredRenderItems:i}},getListBody:function(e,t,n,r,i,a,o,s,c,u,h){var f=this.$createElement,d=u?f("div",{class:e+"-body-search-wrapper"},[f(Lp,{attrs:{prefixCls:e+"-search",handleClear:this._handleClear,placeholder:t,value:n,disabled:h},on:{change:this._handleFilter}})]):null,p=a;if(!p){var g=void 0,m=Jp(this.$createElement,c,{props:Q()({},this.$props,{filteredItems:r,filteredRenderItems:o,selectedKeys:s}),on:Object(N.k)(this)}),v=m.bodyContent;
// We should wrap customize list body in a classNamed div to use flex layout.
g=m.customize?f("div",{class:e+"-body-customize-wrapper"},[v]):r.length?v:f("div",{class:e+"-body-not-found"},[i]),p=f("div",{class:l()(u?e+"-body "+e+"-body-with-search":e+"-body")},[d,g])}return p},getCheckBox:function(e,t,n){var r=this,i=this.$createElement,a=this.getCheckStatus(e),o="all"===a;return!1!==t&&i(ka,{attrs:{disabled:n,checked:o,indeterminate:"part"===a},on:{change:function(){
// Only select enabled items
r.$emit("itemSelectAll",e.filter((function(e){return!e.disabled})).map((function(e){return e.key})),!o)}}})},_handleSelect:function(e){var t=this.$props.checkedKeys.some((function(t){return t===e.key}));this.handleSelect(e,!t)},_handleFilter:function(e){var t=this,n=this.$props.handleFilter,r=e.target.value;this.setState({filterValue:r}),n(e),r&&(
// Manually trigger scroll event for lazy search bug
// https://github.com/ant-design/ant-design/issues/5631
this.triggerScrollTimer=setTimeout((function(){var e=t.$el.querySelectorAll(".ant-transfer-list-content")[0];e&&
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/_util/triggerEvent.js
function(e,t){if("createEvent"in document){
// modern browsers, IE9+
var n=document.createEvent("HTMLEvents");n.initEvent(t,!1,!0),e.dispatchEvent(n)}}(e,"scroll")}),0))},_handleClear:function(e){this.setState({filterValue:""}),this.handleClear(e)},matchFilter:function(e,t){var n=this.$data.filterValue,r=this.$props.filterOption;return r?r(n,t):e.indexOf(n)>=0},renderItemHtml:function(e){var t,n=this.$props.renderItem,r=(void 0===n?Yp:n)(e),i=(t=r)&&!Object(N.w)(t)&&"[object Object]"===Object.prototype.toString.call(t);return{renderedText:i?r.value:r,renderedEl:i?r.label:r,item:e}},filterNull:function(e){return e.filter((function(e){return null!==e}))}},render:function(){var e=arguments[0],t=this.$data.filterValue,n=this.$props,r=n.prefixCls,i=n.dataSource,a=n.titleText,s=n.checkedKeys,c=n.disabled,u=n.body,h=n.footer,f=n.showSearch,d=n.searchPlaceholder,p=n.notFoundContent,g=n.itemUnit,m=n.itemsUnit,v=n.renderList,y=n.showSelectAll,A=h&&h(Q()({},this.$props)),b=u&&u(Q()({},this.$props)),w=l()(r,o()({},r+"-with-footer",!!A)),x=this.getFilteredItems(i,t),C=x.filteredItems,_=x.filteredRenderItems,I=i.length>1?m:g,E=this.getListBody(r,d,t,C,p,b,_,s,v,f,c),k=A?e("div",{class:r+"-footer"},[A]):null;return e("div",{class:w},[e("div",{class:r+"-header"},[this.getCheckBox(C,y,c),e("span",{class:r+"-header-selected"},[e("span",[(s.length>0?s.length+"/":"")+C.length," ",I]),e("span",{class:r+"-header-title"},[a])])]),E,k])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/transfer/operation.js
function Zp(){}var eg={className:s.a.string,leftArrowText:s.a.string,rightArrowText:s.a.string,moveToLeft:s.a.any,moveToRight:s.a.any,leftActive:s.a.bool,rightActive:s.a.bool,disabled:s.a.bool},tg={name:"Operation",props:Q()({},eg),render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.disabled,r=t.moveToLeft,i=void 0===r?Zp:r,a=t.moveToRight,o=void 0===a?Zp:a,s=t.leftArrowText,c=void 0===s?"":s,l=t.rightArrowText,u=void 0===l?"":l,h=t.leftActive,f=t.rightActive;return e("div",[e(Tt,{attrs:{type:"primary",size:"small",disabled:n||!f,icon:"right"},on:{click:o}},[u]),e(Tt,{attrs:{type:"primary",size:"small",disabled:n||!h,icon:"left"},on:{click:i}},[c])])}},ng={key:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string,disabled:s.a.bool},rg={prefixCls:s.a.string,dataSource:s.a.arrayOf(s.a.shape(ng).loose),disabled:s.a.boolean,targetKeys:s.a.arrayOf(s.a.string),selectedKeys:s.a.arrayOf(s.a.string),render:s.a.func,listStyle:s.a.oneOfType([s.a.func,s.a.object]),operationStyle:s.a.object,titles:s.a.arrayOf(s.a.string),operations:s.a.arrayOf(s.a.string),showSearch:s.a.bool,filterOption:s.a.func,searchPlaceholder:s.a.string,notFoundContent:s.a.any,locale:s.a.object,rowKey:s.a.func,lazy:s.a.oneOfType([s.a.object,s.a.bool]),showSelectAll:s.a.bool},ig=(s.a.arrayOf(s.a.string),s.a.string,s.a.string,s.a.string,{name:"ATransfer",mixins:[d.a],props:Object(N.t)(rg,{dataSource:[],locale:{},showSearch:!1,listStyle:function(){}}),inject:{configProvider:{default:function(){return A.a}}},data:function(){
// vue 中 通过slot，不方便传递，保留notFoundContent及searchPlaceholder
// warning(
//   !(getComponentFromProp(this, 'notFoundContent') || hasProp(this, 'searchPlaceholder')),
//   'Transfer[notFoundContent] and Transfer[searchPlaceholder] will be removed, ' +
//   'please use Transfer[locale] instead.',
// )
var e=this.selectedKeys,t=void 0===e?[]:e,n=this.targetKeys,r=void 0===n?[]:n;return{leftFilter:"",rightFilter:"",sourceSelectedKeys:t.filter((function(e){return-1===r.indexOf(e)})),targetSelectedKeys:t.filter((function(e){return r.indexOf(e)>-1}))}},mounted:function(){
// this.currentProps = { ...this.$props }
},watch:{targetKeys:function(){if(this.updateState(),this.selectedKeys){var e=this.targetKeys||[];this.setState({sourceSelectedKeys:this.selectedKeys.filter((function(t){return!e.includes(t)})),targetSelectedKeys:this.selectedKeys.filter((function(t){return e.includes(t)}))})}},dataSource:function(){this.updateState()},selectedKeys:function(){if(this.selectedKeys){var e=this.targetKeys||[];this.setState({sourceSelectedKeys:this.selectedKeys.filter((function(t){return!e.includes(t)})),targetSelectedKeys:this.selectedKeys.filter((function(t){return e.includes(t)}))})}}},methods:{getSelectedKeysName:function(e){return"left"===e?"sourceSelectedKeys":"targetSelectedKeys"},getTitles:function(e){return this.titles?this.titles:e.titles||["",""]},getLocale:function(e,t){var n={notFoundContent:t(this.$createElement,"Transfer")},r=Object(N.g)(this,"notFoundContent");
// Keep old locale props still working.
return r&&(n.notFoundContent=r),Object(N.s)(this,"searchPlaceholder")&&(n.searchPlaceholder=this.$props.searchPlaceholder),Q()({},e,n,this.$props.locale)},updateState:function(){var e=this.sourceSelectedKeys,t=this.targetSelectedKeys;if(this.separatedDataSource=null,!this.selectedKeys){
// clear key nolonger existed
// clear checkedKeys according to targetKeys
var n=this.dataSource,r=this.targetKeys,i=void 0===r?[]:r,a=[],o=[];n.forEach((function(n){var r=n.key;e.includes(r)&&!i.includes(r)&&a.push(r),t.includes(r)&&i.includes(r)&&o.push(r)})),this.setState({sourceSelectedKeys:a,targetSelectedKeys:o})}},moveTo:function(e){var t=this.$props,n=t.targetKeys,r=void 0===n?[]:n,i=t.dataSource,a=void 0===i?[]:i,s=this.sourceSelectedKeys,c=this.targetSelectedKeys,l=("right"===e?s:c).filter((function(e){return!a.some((function(t){return!(e!==t.key||!t.disabled)}))})),u="right"===e?l.concat(r):r.filter((function(e){return-1===l.indexOf(e)})),h="right"===e?"left":"right";this.setState(o()({},this.getSelectedKeysName(h),[])),this.handleSelectChange(h,[]),this.$emit("change",u,e,l)},moveToLeft:function(){this.moveTo("left")},moveToRight:function(){this.moveTo("right")},onItemSelectAll:function(e,t,n){var r=this.$data[this.getSelectedKeysName(e)]||[],i=[];
// Merge current keys with origin key
i=n?Array.from(new Set([].concat(g()(r),g()(t)))):r.filter((function(e){return-1===t.indexOf(e)})),this.handleSelectChange(e,i),this.$props.selectedKeys||this.setState(o()({},this.getSelectedKeysName(e),i))},handleSelectAll:function(e,t,n){this.onItemSelectAll(e,t.map((function(e){return e.key})),!n)},
// [Legacy] Old prop `body` pass origin check as arg. It's confusing.
// TODO: Remove this in next version.
handleLeftSelectAll:function(e,t){return this.handleSelectAll("left",e,!t)},handleRightSelectAll:function(e,t){return this.handleSelectAll("right",e,!t)},onLeftItemSelectAll:function(e,t){return this.onItemSelectAll("left",e,t)},onRightItemSelectAll:function(e,t){return this.onItemSelectAll("right",e,t)},handleFilter:function(e,t){var n=t.target.value;Object(N.k)(this).searchChange&&(Object(w.a)(!1,"Transfer","`searchChange` in Transfer is deprecated. Please use `search` instead."),this.$emit("searchChange",e,t)),this.$emit("search",e,n)},handleLeftFilter:function(e){this.handleFilter("left",e)},handleRightFilter:function(e){this.handleFilter("right",e)},handleClear:function(e){this.$emit("search",e,"")},handleLeftClear:function(){this.handleClear("left")},handleRightClear:function(){this.handleClear("right")},onItemSelect:function(e,t,n){var r=this.sourceSelectedKeys,i=this.targetSelectedKeys,a=[].concat("left"===e?g()(r):g()(i)),s=a.indexOf(t);s>-1&&a.splice(s,1),n&&a.push(t),this.handleSelectChange(e,a),this.selectedKeys||this.setState(o()({},this.getSelectedKeysName(e),a))},handleSelect:function(e,t,n){Object(w.a)(!1,"Transfer","`handleSelect` will be removed, please use `onSelect` instead."),this.onItemSelect(e,t.key,n)},handleLeftSelect:function(e,t){return this.handleSelect("left",e,t)},handleRightSelect:function(e,t){return this.handleSelect("right",e,t)},onLeftItemSelect:function(e,t){return this.onItemSelect("left",e,t)},onRightItemSelect:function(e,t){return this.onItemSelect("right",e,t)},handleScroll:function(e,t){this.$emit("scroll",e,t)},handleLeftScroll:function(e){this.handleScroll("left",e)},handleRightScroll:function(e){this.handleScroll("right",e)},handleSelectChange:function(e,t){var n=this.sourceSelectedKeys,r=this.targetSelectedKeys;"left"===e?this.$emit("selectChange",t,r):this.$emit("selectChange",n,t)},handleListStyle:function(e,t){return"function"==typeof e?e({direction:t}):e},separateDataSource:function(){var e=this.$props,t=e.dataSource,n=e.rowKey,r=e.targetKeys,i=void 0===r?[]:r,a=[],o=new Array(i.length);return t.forEach((function(e){n&&(e.key=n(e));
// rightDataSource should be ordered by targetKeys
// leftDataSource should be ordered by dataSource
var t=i.indexOf(e.key);-1!==t?o[t]=e:a.push(e)})),{leftDataSource:a,rightDataSource:o}},renderTransfer:function(e){var t,n=this.$createElement,r=Object(N.l)(this),i=r.prefixCls,a=r.disabled,s=r.operations,c=void 0===s?[]:s,u=r.showSearch,h=r.listStyle,f=r.operationStyle,d=r.filterOption,p=r.lazy,g=r.showSelectAll,m=Object(N.g)(this,"children",{},!1),v=(0,this.configProvider.getPrefixCls)("transfer",i),y=this.configProvider.renderEmpty,A=this.getLocale(e,y),b=this.sourceSelectedKeys,w=this.targetSelectedKeys,x=this.$scopedSlots,C=x.body,_=x.footer,I=r.render,E=this.separateDataSource(),k=E.leftDataSource,S=E.rightDataSource,B=w.length>0,M=b.length>0,T=l()(v,(t={},o()(t,v+"-disabled",a),o()(t,v+"-customize-list",!!m),t)),O=this.getTitles(A);return n("div",{class:T},[n(Xp,{key:"leftList",attrs:{prefixCls:v+"-list",titleText:O[0],dataSource:k,filterOption:d,checkedKeys:b,handleFilter:this.handleLeftFilter,handleClear:this.handleLeftClear,handleSelect:this.handleLeftSelect,handleSelectAll:this.handleLeftSelectAll,renderItem:I,showSearch:u,body:C,renderList:m,footer:_,lazy:p,disabled:a,direction:"left",showSelectAll:g,itemUnit:A.itemUnit,itemsUnit:A.itemsUnit,notFoundContent:A.notFoundContent,searchPlaceholder:A.searchPlaceholder},style:this.handleListStyle(h,"left"),on:{itemSelect:this.onLeftItemSelect,itemSelectAll:this.onLeftItemSelectAll,scroll:this.handleLeftScroll}}),n(tg,{key:"operation",class:v+"-operation",attrs:{rightActive:M,rightArrowText:c[0],moveToRight:this.moveToRight,leftActive:B,leftArrowText:c[1],moveToLeft:this.moveToLeft,disabled:a},style:f}),n(Xp,{key:"rightList",attrs:{prefixCls:v+"-list",titleText:O[1],dataSource:S,filterOption:d,checkedKeys:w,handleFilter:this.handleRightFilter,handleClear:this.handleRightClear,handleSelect:this.handleRightSelect,handleSelectAll:this.handleRightSelectAll,renderItem:I,showSearch:u,body:C,renderList:m,footer:_,lazy:p,disabled:a,direction:"right",showSelectAll:g,itemUnit:A.itemUnit,itemsUnit:A.itemsUnit,notFoundContent:A.notFoundContent,searchPlaceholder:A.searchPlaceholder},style:this.handleListStyle(h,"right"),on:{itemSelect:this.onRightItemSelect,itemSelectAll:this.onRightItemSelectAll,scroll:this.handleRightScroll}})])}},render:function(){return(0,arguments[0])(vr.a,{attrs:{componentName:"Transfer",defaultLocale:vh.a.Transfer},scopedSlots:{default:this.renderTransfer}})},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(ig.name,ig)}}),ag=ig,og=n("7d1c");
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tree/Tree.js
function sg(){return{showLine:s.a.bool,
/** 是否支持多选 */
multiple:s.a.bool,
/** 是否自动展开父节点 */
autoExpandParent:s.a.bool,
/** checkable状态下节点选择完全受控（父子节点选中状态不再关联）*/
checkStrictly:s.a.bool,
/** 是否支持选中 */
checkable:s.a.bool,
/** 是否禁用树 */
disabled:s.a.bool,
/** 默认展开所有树节点 */
defaultExpandAll:s.a.bool,
/** 默认展开对应树节点 */
defaultExpandParent:s.a.bool,
/** 默认展开指定的树节点 */
defaultExpandedKeys:s.a.array,
/** （受控）展开指定的树节点 */
expandedKeys:s.a.array,
/** （受控）选中复选框的树节点 */
checkedKeys:s.a.oneOfType([s.a.array,s.a.shape({checked:s.a.array,halfChecked:s.a.array}).loose]),
/** 默认选中复选框的树节点 */
defaultCheckedKeys:s.a.array,
/** （受控）设置选中的树节点 */
selectedKeys:s.a.array,
/** 默认选中的树节点 */
defaultSelectedKeys:s.a.array,selectable:s.a.bool,
/** 展开/收起节点时触发 */
// onExpand: (expandedKeys: string[], info: AntTreeNodeExpandedEvent) => void | PromiseLike<any>,
/** 点击复选框触发 */
// onCheck: (checkedKeys: string[] | { checked: string[]; halfChecked: string[] }, e: AntTreeNodeCheckedEvent) => void,
/** 点击树节点触发 */
// onSelect: (selectedKeys: string[], e: AntTreeNodeSelectedEvent) => void,
/** 单击树节点触发 */
// onClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
/** 双击树节点触发 */
// onDoubleClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
/** filter some AntTreeNodes as you need. it should return true */
filterAntTreeNode:s.a.func,
/** 异步加载数据 */
loadData:s.a.func,loadedKeys:s.a.array,
// onLoaded: (loadedKeys: string[], info: { event: 'load', node: AntTreeNode; }) => void,
/** 响应右键点击 */
// onRightClick: (options: AntTreeNodeMouseEvent) => void,
/** 设置节点可拖拽（IE>8）*/
draggable:s.a.bool,
// /** 开始拖拽时调用 */
// onDragStart: (options: AntTreeNodeMouseEvent) => void,
// /** dragenter 触发时调用 */
// onDragEnter: (options: AntTreeNodeMouseEvent) => void,
// /** dragover 触发时调用 */
// onDragOver: (options: AntTreeNodeMouseEvent) => void,
// /** dragleave 触发时调用 */
// onDragLeave: (options: AntTreeNodeMouseEvent) => void,
// /** drop 触发时调用 */
// onDrop: (options: AntTreeNodeMouseEvent) => void,
showIcon:s.a.bool,icon:s.a.func,switcherIcon:s.a.any,prefixCls:s.a.string,filterTreeNode:s.a.func,openAnimation:s.a.any,treeNodes:s.a.array,treeData:s.a.array,
/**
     * @default{title,key,children}
     * 替换treeNode中 title,key,children字段为treeData中对应的字段
     */
replaceFields:s.a.object,blockNode:s.a.bool}}
/* harmony default export */var cg={name:"ATree",model:{prop:"checkedKeys",event:"check"},props:Object(N.t)(sg(),{checkable:!1,showIcon:!1,openAnimation:{on:Ni.a,props:{appear:null}},blockNode:!1}),inject:{configProvider:{default:function(){return A.a}}},created:function(){ae()(!("treeNodes"in Object(N.l)(this)),"`treeNodes` is deprecated. please use treeData instead.")},TreeNode:og.TreeNode,methods:{renderSwitcherIcon:function(e,t,n){var r=n.isLeaf,i=n.expanded,a=n.loading,s=this.$createElement,c=this.$props.showLine;if(a)return s(We.a,{attrs:{type:"loading"},class:e+"-switcher-loading-icon"});if(r)return c?s(We.a,{attrs:{type:"file"},class:e+"-switcher-line-icon"}):null;var l=e+"-switcher-icon";return t?Object(ce.a)(t,{class:o()({},l,!0)}):s(We.a,c?{attrs:{type:i?"minus-square":"plus-square",theme:"outlined"},class:e+"-switcher-line-icon"}:{attrs:{type:"caret-down",theme:"filled"},class:l})},updateTreeData:function(e){var t=this,n=this.$slots,r=this.$scopedSlots,i=Q()({},{children:"children",title:"title",key:"key"},this.$props.replaceFields);return e.map((function(e){var a=e[i.key],o=e[i.children],s=e.on,c=void 0===s?{}:s,l=e.slots,u=void 0===l?{}:l,h=e.scopedSlots,f=void 0===h?{}:h,d=e.class,p=e.style,g=X()(e,["on","slots","scopedSlots","class","style"]),m=Q()({},g,{icon:r[f.icon]||n[u.icon]||g.icon,switcherIcon:r[f.switcherIcon]||n[u.switcherIcon]||g.switcherIcon,title:r[f.title]||n[u.title]||g[i.title],dataRef:e,on:c,key:a,class:d,style:p});return o?Q()({},m,{children:t.updateTreeData(o)}):m}))}},render:function(){var e,t=this,n=arguments[0],r=Object(N.l)(this),i=this.$slots,a=this.$scopedSlots,s=r.prefixCls,c=r.showIcon,l=r.treeNodes,u=r.blockNode,h=(0,this.configProvider.getPrefixCls)("tree",s),f=Object(N.g)(this,"switcherIcon"),d=r.checkable,p=r.treeData||l;p&&(p=this.updateTreeData(p));var g={props:Q()({},r,{prefixCls:h,checkable:d?n("span",{class:h+"-checkbox-inner"}):d,children:Object(N.c)(a.default?a.default():i.default),__propsSymbol__:Symbol(),switcherIcon:function(e){return t.renderSwitcherIcon(h,f,e)}}),on:Object(N.k)(this),ref:"tree",class:(e={},o()(e,h+"-icon-hide",!c),o()(e,h+"-block-node",u),e)};return p&&(g.props.treeData=p),n(og.Tree,g)}},lg=n("c9a4"),ug="node",hg="start",fg="end";
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/vc-tree/src/util.js
// TODO: Move this logic into `rc-tree`
function dg(e,t){(Object(lg.j)(e)||[]).forEach((function(e){var n=e.key,r=Object(N.p)(e).default;!1!==t(n,e)&&dg("function"==typeof r?r():r,t)}))}
/** 计算选中范围，只考虑expanded情况以优化性能 */
function pg(e,t,n,r){var i=[],a=ug;if(n&&n===r)return[n];if(!n||!r)return[];return dg(e,(function(e){if(a===fg)return!1;if(function(e){return e===n||e===r}(e)){if(
// Match test
i.push(e),a===ug)a=hg;else if(a===hg)return a=fg,!1}else a===hg&&
// Append selection
i.push(e);return-1!==t.indexOf(e)})),i}function gg(e,t){var n=[].concat(g()(t)),r=[];return dg(e,(function(e,t){var i=n.indexOf(e);return-1!==i&&(r.push(t),n.splice(i,1)),!!n.length})),r}function mg(e){var t=[];return(e||[]).forEach((function(e){t.push(e.key),e.children&&(t=[].concat(g()(t),g()(mg(e.children))))})),t}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tree/DirectoryTree.js
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
// DirectoryTreeProps extends TreeProps {   expandAction?: ExpandAction; }
// export interface DirectoryTreeState {   expandedKeys?: string[];
// selectedKeys?: string[]; }
function vg(e,t){var n=e.isLeaf,r=e.expanded;return t(We.a,n?{attrs:{type:"file"}}:{attrs:{type:r?"folder-open":"folder"}})}
/* harmony default export */var yg={name:"ADirectoryTree",mixins:[d.a],model:{prop:"checkedKeys",event:"check"},props:Object(N.t)(Q()({},sg(),{expandAction:s.a.oneOf([!1,"click","doubleclick","dblclick"])}),{showIcon:!0,expandAction:"click"}),
// state: DirectoryTreeState; onDebounceExpand: (event, node: AntTreeNode) =>
// void; // Shift click usage lastSelectedKey?: string; cachedSelectedKeys?:
// string[];
inject:{configProvider:{default:function(){return A.a}}},data:function(){var e=Object(N.l)(this),t=e.defaultExpandAll,n=e.defaultExpandParent,r=e.expandedKeys,i=e.defaultExpandedKeys,a=Object(lg.h)(this.$slots.default).keyEntities,o={};
// Selected keys
return o._selectedKeys=e.selectedKeys||e.defaultSelectedKeys||[],
// Expanded keys
t?e.treeData?o._expandedKeys=mg(e.treeData):o._expandedKeys=function(e){var t=Object(lg.h)(e).keyEntities;return[].concat(g()(t.keys()))}(this.$slots.default):o._expandedKeys=n?Object(lg.f)(r||i,a):r||i,this.onDebounceExpand=ci()(this.expandFolderNode,200,{leading:!0}),Q()({_selectedKeys:[],_expandedKeys:[]},o)},watch:{expandedKeys:function(e){this.setState({_expandedKeys:e})},selectedKeys:function(e){this.setState({_selectedKeys:e})}},methods:{onExpand:function(e,t){this.setUncontrolledState({_expandedKeys:e}),this.$emit("expand",e,t)},onClick:function(e,t){
// Expand the tree
"click"===this.$props.expandAction&&this.onDebounceExpand(e,t),this.$emit("click",e,t)},onDoubleClick:function(e,t){var n=this.$props.expandAction;
// Expand the tree
"dblclick"!==n&&"doubleclick"!==n||this.onDebounceExpand(e,t),this.$emit("doubleclick",e,t),this.$emit("dblclick",e,t)},onSelect:function(e,t){var n=this.$props.multiple,r=this.$slots.default||[],i=this.$data._expandedKeys,a=void 0===i?[]:i,o=t.node,s=t.nativeEvent,c=o.eventKey,l=void 0===c?"":c,u={},h=Q()({},t,{selected:!0}),f=s.ctrlKey||s.metaKey,d=s.shiftKey,p=void 0;n&&f?(
// Control click
p=e,this.lastSelectedKey=l,this.cachedSelectedKeys=p,h.selectedNodes=gg(r,p)):n&&d?(
// Shift click
p=Array.from(new Set([].concat(g()(this.cachedSelectedKeys||[]),g()(pg(r,a,l,this.lastSelectedKey))))),h.selectedNodes=gg(r,p)):(
// Single click
p=[l],this.lastSelectedKey=l,this.cachedSelectedKeys=p,h.selectedNodes=[t.node]),u._selectedKeys=p,this.$emit("update:selectedKeys",p),this.$emit("select",p,h),this.setUncontrolledState(u)},expandFolderNode:function(e,t){t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey||this.$refs.tree.$refs.tree&&
// Call internal rc-tree expand function
// https://github.com/ant-design/ant-design/issues/12567
this.$refs.tree.$refs.tree.onNodeExpand(e,t)},setUncontrolledState:function(e){var t=Object(u.a)(e,Object.keys(Object(N.l)(this)).map((function(e){return"_"+e})));Object.keys(t).length&&this.setState(t)}},render:function(){var e=arguments[0],t=Object(N.l)(this),n=t.prefixCls,r=X()(t,["prefixCls"]),i=(0,this.configProvider.getPrefixCls)("tree",n),a=this.$data,o=a._expandedKeys,s=a._selectedKeys,c=Object(N.k)(this);Object(w.a)(!c.doubleclick,"`doubleclick` is deprecated. please use `dblclick` instead.");var l={props:Q()({icon:vg},r,{prefixCls:i,expandedKeys:o,selectedKeys:s,switcherIcon:Object(N.g)(this,"switcherIcon")}),ref:"tree",class:i+"-directory",on:Q()({},Object(u.a)(c,["update:selectedKeys"]),{select:this.onSelect,click:this.onClick,dblclick:this.onDoubleClick,expand:this.onExpand})};return e(cg,l,[this.$slots.default])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tree/index.js
cg.TreeNode.name="ATreeNode",cg.DirectoryTree=yg,
/* istanbul ignore next */
cg.install=function(e){e.use(b.a),e.component(cg.name,cg),e.component(cg.TreeNode.name,cg.TreeNode),e.component(yg.name,yg)};
/* harmony default export */var Ag=cg;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-util/Dom/class.js
function bg(e,t){return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/src/strategies.js
var wg="SHOW_ALL",xg="SHOW_PARENT",Cg="SHOW_CHILD",_g=!1;
// =================== MISC ====================
function Ig(e){return"string"==typeof e?e:null}function Eg(){var e=function(t){e.current=t};return e}
// =============== Legacy ===============
var kg={userSelect:"none",WebkitUserSelect:"none"},Sg={unselectable:"unselectable"};
/**
 * Convert position list to hierarchy structure.
 * This is little hack since use '-' to split the position.
 */
function Bg(e){if(!e.length)return[];var t={},n={},r=e.slice().map((function(e){var t=Q()({},e,{fields:e.pos.split("-")});return delete t.children,t}));
// Prepare the position map
return r.forEach((function(e){n[e.pos]=e})),r.sort((function(e,t){return e.fields.length-t.fields.length})),
// Create the hierarchy
r.forEach((function(e){var r=e.fields.slice(0,-1).join("-"),i=n[r];i?(i.children=i.children||[],i.children.push(e)):t[e.pos]=e,
// Some time position list provide `key`, we don't need it
delete e.key,delete e.fields})),Object.keys(t).map((function(e){return t[e]}))}
// =============== Accessibility ===============
var Mg=0;function Tg(e){var t=e.treeCheckable,n=e.treeCheckStrictly,r=e.labelInValue;return!(!t||!n)||(r||!1)}
// =================== Tree ====================
/**
 * This function is only used on treeNode check (none treeCheckStrictly but has searchInput).
 * We convert entity to { node, pos, children } format.
 * This is legacy bug but we still need to do with it.
 * @param entity
 */
function Og(e){var t=e.node,n=e.pos,r=e.children,i={node:t,pos:n};return r&&(i.children=r.map(Og)),i}
/**
 * Get a filtered TreeNode list by provided treeNodes.
 * [Legacy] Since `Tree` use `key` as map but `key` will changed by React,
 * we have to convert `treeNodes > data > treeNodes` to keep the key.
 * Such performance hungry!
 */function Dg(e,t,n,r,a,o){if(!n)return null;return t.map((function t(s){if(!s||Object(N.u)(s))return null;var c=!1;r(n,s)&&(c=!0);var l=Object(N.p)(s).default;return(l=(("function"==typeof l?l():l)||[]).map(t).filter((function(e){return e}))).length||c?e(o,i()([s.data,{key:a[Object(N.m)(s).value].key}]),[l]):null})).filter((function(e){return e}))}
// =================== Value ===================
/**
 * Convert value to array format to make logic simplify.
 */function Pg(e,t){var n,r=null==(n=e)?[]:Array.isArray(n)?n:[n];
// Parse label in value
return Tg(t)?r.map((function(e){return"object"===(void 0===e?"undefined":Y()(e))&&e?e:{value:"",label:""}})):r.map((function(e){return{value:e}}))}function Lg(e,t,n){if(e.label)return e.label;if(t){var r=Object(N.m)(t.node);if(Object.keys(r).length)return r[n]}
// Since value without entity will be in missValueList.
// This code will never reached, but we still need this in case.
return e.value}
/**
 * Convert internal state `valueList` to user needed value list.
 * This will return an array list. You need check if is not multiple when return.
 *
 * `allCheckedNodes` is used for `treeCheckStrictly`
 */function Qg(e,t,n){var r=t.treeNodeLabelProp,i=t.treeCheckable,a=t.treeCheckStrictly,o=t.showCheckedStrategy;
// Will hide some value if `showCheckedStrategy` is set
if(i&&!a){var s={};e.forEach((function(e){s[e.value]=e}));var c=Bg(e.map((function(e){var t=e.value;return n[t]})));if(o===xg)
// Only get the parent checked value
return c.map((function(e){var t=e.node,i=Object(N.m)(t).value;return{label:Lg(s[i],n[i],r),value:i}}));if(o===Cg){
// Only get the children checked value
var l=[],u=function e(t){var i=t.node,a=t.children,o=Object(N.m)(i).value;a&&0!==a.length?a.forEach((function(t){e(t)})):l.push({label:Lg(s[o],n[o],r),value:o})};
// Find the leaf children
return c.forEach((function(e){u(e)})),l}}return e.map((function(e){return{label:Lg(e,n[e.value],r),value:e.value}}))}
/**
 * Use `rc-tree` convertDataToTree to convert treeData to TreeNodes.
 * This will change the label to title value
 */function Rg(e){var t=e.title,n=e.label,r=e.value,i=e.class,a=e.style,o=e.on,s=void 0===o?{}:o,c=e.key;c||null!=c||(c=r);var l={props:Object(u.a)(e,["on","key","class","className","style"]),on:s,class:i||e.className,style:a,key:c};
// Warning user not to use deprecated label prop.
return n&&!t&&(_g||(ae()(!1,"'label' in treeData is deprecated. Please use 'title' instead."),_g=!0),l.props.title=n),l}function jg(e,t){return Object(lg.g)(e,t,{processProps:Rg})}
/**
 * Use `rc-tree` convertTreeToEntities for entities calculation.
 * We have additional entities of `valueEntities`
 */function Ng(e){return Q()({},e,{valueEntities:{}})}function Fg(e,t){var n=Object(N.m)(e.node).value;e.value=n;
// This should be empty, or will get error message.
var r=t.valueEntities[n];r&&ae()(!1,"Conflict! value of node '"+e.key+"' ("+n+") has already used by node '"+r.key+"'."),t.valueEntities[n]=e}
/**
 * https://github.com/ant-design/ant-design/issues/13328
 * We need calculate the half check key when searchValue is set.
 */
// TODO: This logic may better move to rc-tree
function zg(e,t){var n={};
// Fill checked keys
// Get half keys
return e.forEach((function(e){var t=e.value;n[t]=!1})),
// Fill half checked keys
e.forEach((function(e){for(var r=e.value,i=t[r];i&&i.parent;){var a=i.parent.value;if(a in n)break;n[a]=!0,i=i.parent}})),Object.keys(n).filter((function(e){return n[e]})).map((function(e){return t[e].key}))}var Hg=lg.e,Ug={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1},ignoreShake:!0},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1},ignoreShake:!0}},Gg={name:"SelectTrigger",props:{
// Pass by outside user props
disabled:s.a.bool,showSearch:s.a.bool,prefixCls:s.a.string,dropdownPopupAlign:s.a.object,dropdownClassName:s.a.string,dropdownStyle:s.a.object,transitionName:s.a.string,animation:s.a.string,getPopupContainer:s.a.func,dropdownMatchSelectWidth:s.a.bool,
// Pass by Select
isMultiple:s.a.bool,dropdownPrefixCls:s.a.string,dropdownVisibleChange:s.a.func,popupElement:s.a.node,open:s.a.bool},created:function(){this.triggerRef=Eg()},methods:{getDropdownTransitionName:function(){var e=this.$props,t=e.transitionName,n=e.animation,r=e.dropdownPrefixCls;return!t&&n?r+"-"+n:t},forcePopupAlign:function(){var e=this.triggerRef.current;e&&e.forcePopupAlign()}},render:function(){var e,t=arguments[0],n=this.$props,r=n.disabled,a=n.isMultiple,s=n.dropdownPopupAlign,c=n.dropdownMatchSelectWidth,u=n.dropdownClassName,h=n.dropdownStyle,f=n.dropdownVisibleChange,d=n.getPopupContainer,p=n.dropdownPrefixCls,g=n.popupElement,m=n.open,v=void 0;return!1!==c&&(v=c?"width":"minWidth"),t(fe.a,i()([{directives:[{name:"ant-ref",value:this.triggerRef}]},{attrs:{action:r?[]:["click"],popupPlacement:"bottomLeft",builtinPlacements:Ug,popupAlign:s,prefixCls:p,popupTransitionName:this.getDropdownTransitionName(),popup:g,popupVisible:m,getPopupContainer:d,stretch:v,popupClassName:l()(u,(e={},o()(e,p+"--multiple",a),o()(e,p+"--single",!a),e)),popupStyle:h},on:{popupVisibleChange:f}}]),[this.$slots.default])}},Vg=Gg,Wg=function(){return{prefixCls:s.a.string,className:s.a.string,open:s.a.bool,selectorValueList:s.a.array,allowClear:s.a.bool,showArrow:s.a.bool,
// onClick: PropTypes.func,
// onBlur: PropTypes.func,
// onFocus: PropTypes.func,
removeSelected:s.a.func,choiceTransitionName:s.a.string,
// Pass by component
ariaId:s.a.string,inputIcon:s.a.any,clearIcon:s.a.any,removeIcon:s.a.any,placeholder:s.a.any,disabled:s.a.bool,focused:s.a.bool}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/src/SelectTrigger.js
function qg(){}
/* harmony default export */var Yg=function(e){var t={name:"BaseSelector",mixins:[d.a],props:Object(N.t)(Q()({},Wg(),{
// Pass by HOC
renderSelection:s.a.func.isRequired,renderPlaceholder:s.a.func,tabIndex:s.a.number}),{tabIndex:0}),inject:{vcTreeSelect:{default:function(){return{}}}},created:function(){this.domRef=Eg()},methods:{onFocus:function(e){var t=this.$props.focused,n=this.vcTreeSelect.onSelectorFocus;t||n(),this.__emit("focus",e)},onBlur:function(e){
// TODO: Not trigger when is inner component get focused
(0,this.vcTreeSelect.onSelectorBlur)(),this.__emit("blur",e)},focus:function(){this.domRef.current.focus()},blur:function(){this.domRef.current.blur()},renderClear:function(){var e=this.$createElement,t=this.$props,n=t.prefixCls,r=t.allowClear,i=t.selectorValueList,a=this.vcTreeSelect.onSelectorClear;return r&&i.length&&i[0].value?e("span",{key:"clear",class:n+"-selection__clear",on:{click:a}},[Object(N.g)(this,"clearIcon")]):null},renderArrow:function(){var e=this.$createElement,t=this.$props,n=t.prefixCls;return t.showArrow?e("span",{key:"arrow",class:n+"-arrow",style:{outline:"none"}},[Object(N.g)(this,"inputIcon")]):null}},render:function(){var t,n=arguments[0],r=this.$props,a=r.prefixCls,s=r.className,c=r.style,u=r.open,h=r.focused,f=r.disabled,d=r.allowClear,p=r.ariaId,g=r.renderSelection,m=r.renderPlaceholder,v=r.tabIndex,y=this.vcTreeSelect.onSelectorKeyDown,A=v;return f&&(A=null),n("span",i()([{style:c,on:{click:Object(N.k)(this).click||qg},class:l()(s,a,(t={},o()(t,a+"-open",u),o()(t,a+"-focused",u||h),o()(t,a+"-disabled",f),o()(t,a+"-enabled",!f),o()(t,a+"-allow-clear",d),t))},{directives:[{name:"ant-ref",value:this.domRef}]},{attrs:{role:"combobox","aria-expanded":u,"aria-owns":u?p:void 0,"aria-controls":u?p:void 0,"aria-haspopup":"listbox","aria-disabled":f,tabIndex:A},on:{focus:this.onFocus,blur:this.onBlur,keydown:y}}]),[n("span",{key:"selection",class:l()(a+"-selection",a+"-selection--"+e)},[g(),this.renderClear(),this.renderArrow(),m&&m()])])}};return t},Kg=Yg("single"),$g={name:"SingleSelector",props:Wg(),created:function(){this.selectorRef=Eg()},methods:{focus:function(){this.selectorRef.current.focus()},blur:function(){this.selectorRef.current.blur()},renderSelection:function(){var e=this.$createElement,t=this.$props,n=t.selectorValueList,r=t.placeholder,i=t.prefixCls,a=void 0;if(n.length){var o=n[0],s=o.label,c=o.value;a=e("span",{key:"value",attrs:{title:Ig(s)},class:i+"-selection-selected-value"},[s||c])}else a=e("span",{key:"placeholder",class:i+"-selection__placeholder"},[r]);return e("span",{class:i+"-selection__rendered"},[a])}},render:function(){var e=arguments[0],t={props:Q()({},Object(N.l)(this),{renderSelection:this.renderSelection}),on:Object(N.k)(this),directives:[{name:"ant-ref",value:this.selectorRef}]};return e(Kg,t)}},Jg=$g,Xg={name:"SearchInput",props:{open:s.a.bool,searchValue:s.a.string,prefixCls:s.a.string,disabled:s.a.bool,renderPlaceholder:s.a.func,needAlign:s.a.bool,ariaId:s.a.string},inject:{vcTreeSelect:{default:function(){return{}}}},data:function(){return{mirrorSearchValue:this.searchValue}},watch:{searchValue:function(e){this.mirrorSearchValue=e}},created:function(){this.inputRef=Eg(),this.mirrorInputRef=Eg(),this.prevProps=Q()({},this.$props)},mounted:function(){var e=this;this.$nextTick((function(){var t=e.$props,n=t.open;t.needAlign&&e.alignInputWidth(),n&&e.focus(!0)}))},updated:function(){var e=this,t=this.$props,n=t.open,r=t.searchValue,i=t.needAlign,a=this.prevProps;this.$nextTick((function(){n&&a.open!==n&&e.focus(),i&&r!==a.searchValue&&e.alignInputWidth(),e.prevProps=Q()({},e.$props)}))},methods:{
/**
     * `scrollWidth` is not correct in IE, do the workaround.
     * ref: https://github.com/react-component/tree-select/issues/65
     *  clientWidth 0 when mounted in vue. why?
     */
alignInputWidth:function(){this.inputRef.current.style.width=(this.mirrorInputRef.current.clientWidth||this.mirrorInputRef.current.offsetWidth)+"px"},
/**
     * Need additional timeout for focus cause parent dom is not ready when didMount trigger
     */
focus:function(e){var t=this;this.inputRef.current&&(e?setTimeout((function(){t.inputRef.current.focus()}),0):
// set it into else, Avoid scrolling when focus
this.inputRef.current.focus())},blur:function(){this.inputRef.current&&this.inputRef.current.blur()},handleInputChange:function(e){var t=e.target,n=t.value,r=t.composing,i=this.searchValue,a=void 0===i?"":i;e.isComposing||r||a===n?this.mirrorSearchValue=n:this.vcTreeSelect.onSearchInputChange(e)}},render:function(){var e=arguments[0],t=this.$props,n=t.searchValue,r=t.prefixCls,a=t.disabled,o=t.renderPlaceholder,s=t.open,c=t.ariaId,l=this.vcTreeSelect.onSearchInputKeyDown,u=this.handleInputChange,h=this.mirrorSearchValue;return e("span",{class:r+"-search__field__wrap"},[e("input",i()([{attrs:{type:"text"}},{directives:[{name:"ant-ref",value:this.inputRef},{name:"ant-input"}]},{on:{input:u,keydown:l},domProps:{value:n},attrs:{disabled:a,"aria-label":"filter select","aria-autocomplete":"list","aria-controls":s?c:void 0,"aria-multiline":"false"},class:r+"-search__field"}])),e("span",i()([{directives:[{name:"ant-ref",value:this.mirrorInputRef}]},{class:r+"-search__field__mirror"}]),[h," "]),o&&!h?o():null])}},Zg=Xg,em={mixins:[d.a],props:{prefixCls:s.a.string,maxTagTextLength:s.a.number,
// onRemove: PropTypes.func,
label:s.a.any,value:s.a.oneOfType([s.a.string,s.a.number]),removeIcon:s.a.any},methods:{onRemove:function(e){var t=this.$props.value;this.__emit("remove",e,t),e.stopPropagation()}},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.maxTagTextLength,a=t.label,o=t.value,s=a||o;return r&&"string"==typeof s&&s.length>r&&(s=s.slice(0,r)+"..."),e("li",i()([{style:kg},{attrs:Sg},{attrs:{role:"menuitem",title:Ig(a)},class:n+"-selection__choice"}]),[Object(N.k)(this).remove&&e("span",{class:n+"-selection__choice__remove",on:{click:this.onRemove}},[Object(N.g)(this,"removeIcon")]),e("span",{class:n+"-selection__choice__content"},[s])])}},tm=em,nm=Yg("multiple"),rm={mixins:[d.a],props:Q()({},Wg(),Zg.props,{selectorValueList:s.a.array,disabled:s.a.bool,searchValue:s.a.string,labelInValue:s.a.bool,maxTagCount:s.a.number,maxTagPlaceholder:s.a.any}),inject:{vcTreeSelect:{default:function(){return{}}}},created:function(){this.inputRef=Eg()},methods:{onPlaceholderClick:function(){this.inputRef.current.focus()},focus:function(){this.inputRef.current.focus()},blur:function(){this.inputRef.current.blur()},_renderPlaceholder:function(){var e=this.$createElement,t=this.$props,n=t.prefixCls,r=t.placeholder,i=t.searchPlaceholder,a=t.searchValue,o=t.selectorValueList,s=r||i;return s?e("span",{style:{display:a||o.length?"none":"block"},on:{click:this.onPlaceholderClick},class:n+"-search__field__placeholder"},[s]):null},onChoiceAnimationLeave:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.__emit.apply(this,["choiceAnimationLeave"].concat(g()(t)))},renderSelection:function(){var e=this,t=this.$createElement,n=this.$props,r=n.selectorValueList,a=n.choiceTransitionName,o=n.prefixCls,s=n.labelInValue,c=n.maxTagCount,l=this.vcTreeSelect.onMultipleSelectorRemove,u=this.$slots,h=Object(N.k)(this),f=r;c>=0&&(f=r.slice(0,c));
// Selector node list
var d=f.map((function(n){var r=n.label,a=n.value;return t(tm,i()([{props:Q()({},e.$props,{label:r,value:a}),on:Q()({},h,{remove:l})},{key:a||"RC_TREE_SELECT_EMPTY_VALUE_KEY"}]),[u.default])}));
// Rest node count
if(c>=0&&c<r.length){var p="+ "+(r.length-c)+" ...",g=Object(N.g)(this,"maxTagPlaceholder",{},!1);if("string"==typeof g)p=g;else if("function"==typeof g){var m=r.slice(c);p=g(s?m:m.map((function(e){return e.value})))}var v=t(tm,i()([{props:Q()({},this.$props,{label:p,value:null}),on:h},{key:"rc-tree-select-internal-max-tag-counter"}]),[u.default]);d.push(v)}d.push(t("li",{class:o+"-search "+o+"-search--inline",key:"__input"},[t(Zg,{props:Q()({},this.$props,{needAlign:!0}),on:h,directives:[{name:"ant-ref",value:this.inputRef}]},[u.default])]));var y=o+"-selection__rendered";if(a){var A=Object(se.a)(a,{tag:"ul",afterLeave:this.onChoiceAnimationLeave});return t("transition-group",i()([{class:y},A]),[d])}return t("ul",{class:y,attrs:{role:"menubar"}},[d])}},render:function(){var e=arguments[0],t=this.$slots,n=Object(N.k)(this);return e(nm,{props:Q()({},this.$props,{tabIndex:-1,showArrow:!1,renderSelection:this.renderSelection,renderPlaceholder:this._renderPlaceholder}),on:n},[t.default])}},im=rm;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/src/Selector/SingleSelector.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/src/Base/BasePopup.js
// export const popupContextTypes = {
//   onPopupKeyDown: PropTypes.func.isRequired,
//   onTreeNodeSelect: PropTypes.func.isRequired,
//   onTreeNodeCheck: PropTypes.func.isRequired,
// }
function am(e,t){var n=t||{},r=n._prevProps,i=void 0===r?{}:r,a=n._loadedKeys,o=n._expandedKeyList,s=n._cachedExpandedKeyList,c=e.valueList,l=e.valueEntities,u=e.keyEntities,h=e.treeExpandedKeys,f=e.filteredTreeNodes,d=e.upperSearchValue,p={_prevProps:Q()({},e)};
// Check value update
return c!==i.valueList&&(p._keyList=c.map((function(e){var t=e.value;return l[t]})).filter((function(e){return e})).map((function(e){return e.key}))),
// Show all when tree is in filter mode
!h&&f&&f.length&&f!==i.filteredTreeNodes&&(p._expandedKeyList=[].concat(g()(u.keys()))),
// Cache `expandedKeyList` when filter set
d&&!i.upperSearchValue?p._cachedExpandedKeyList=o:d||!i.upperSearchValue||h||(p._expandedKeyList=s||[],p._cachedExpandedKeyList=[]),
// Use expandedKeys if provided
i.treeExpandedKeys!==h&&(p._expandedKeyList=h),
// Clean loadedKeys if key not exist in keyEntities anymore
e.loadData&&(p._loadedKeys=a.filter((function(e){return u.has(e)}))),p}var om={mixins:[d.a],name:"BasePopup",props:{prefixCls:s.a.string,upperSearchValue:s.a.string,valueList:s.a.array,searchHalfCheckedKeys:s.a.array,valueEntities:s.a.object,keyEntities:Map,treeIcon:s.a.bool,treeLine:s.a.bool,treeNodeFilterProp:s.a.string,treeCheckable:s.a.any,treeCheckStrictly:s.a.bool,treeDefaultExpandAll:s.a.bool,treeDefaultExpandedKeys:s.a.array,treeExpandedKeys:s.a.array,loadData:s.a.func,multiple:s.a.bool,
// onTreeExpand: PropTypes.func,
searchValue:s.a.string,treeNodes:s.a.any,filteredTreeNodes:s.a.any,notFoundContent:s.a.any,ariaId:s.a.string,switcherIcon:s.a.any,
// HOC
renderSearch:s.a.func,
// onTreeExpanded: PropTypes.func,
__propsSymbol__:s.a.any},inject:{vcTreeSelect:{default:function(){return{}}}},watch:{__propsSymbol__:function(){var e=am(this.$props,this.$data);this.setState(e)}},data:function(){this.treeRef=Eg(),ae()(this.$props.__propsSymbol__,"must pass __propsSymbol__");var e=this.$props,t=e.treeDefaultExpandAll,n=e.treeDefaultExpandedKeys,r=e.keyEntities,i=n;
// TODO: make `expandedKeyList` control
t&&(i=[].concat(g()(r.keys())));var a={_keyList:[],_expandedKeyList:i,
// Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedState`
_cachedExpandedKeyList:[],_loadedKeys:[],_prevProps:{}};return Q()({},a,am(this.$props,a))},methods:{onTreeExpand:function(e){var t=this;
// Set uncontrolled state
this.$props.treeExpandedKeys||this.setState({_expandedKeyList:e},(function(){t.__emit("treeExpanded")})),this.__emit("update:treeExpandedKeys",e),this.__emit("treeExpand",e)},onLoad:function(e){this.setState({_loadedKeys:e})},getTree:function(){return this.treeRef.current},
/**
     * Not pass `loadData` when searching. To avoid loop ajax call makes browser crash.
     */
getLoadData:function(){var e=this.$props,t=e.loadData;return e.upperSearchValue?null:t},
/**
     * This method pass to Tree component which is used for add filtered class
     * in TreeNode > li
     */
filterTreeNode:function(e){var t=this.$props,n=t.upperSearchValue,r=e[t.treeNodeFilterProp];return"string"==typeof r&&(n&&-1!==r.toUpperCase().indexOf(n))},renderNotFound:function(){var e=this.$createElement,t=this.$props;return e("span",{class:t.prefixCls+"-not-found"},[t.notFoundContent])}},render:function(){var e=arguments[0],t=this.$data,n=t._keyList,r=t._expandedKeyList,i=t._loadedKeys,a=this.$props,o=a.prefixCls,s=a.treeNodes,c=a.filteredTreeNodes,l=a.treeIcon,u=a.treeLine,h=a.treeCheckable,f=a.treeCheckStrictly,d=a.multiple,p=a.ariaId,g=a.renderSearch,m=a.switcherIcon,v=a.searchHalfCheckedKeys,y=this.vcTreeSelect,A=y.onPopupKeyDown,b=y.onTreeNodeSelect,w=y.onTreeNodeCheck,x=this.getLoadData(),C={};h?C.checkedKeys=n:C.selectedKeys=n;var _=void 0,I=void 0;c?c.length?(C.checkStrictly=!0,I=c,
// Fill halfCheckedKeys
h&&!f&&(C.checkedKeys={checked:n,halfChecked:v})):_=this.renderNotFound():s&&s.length?I=s:_=this.renderNotFound();var E=void 0;if(_)E=_;else{var k={props:Q()({prefixCls:o+"-tree",showIcon:l,showLine:u,selectable:!h,checkable:h,checkStrictly:f,multiple:d,loadData:x,loadedKeys:i,expandedKeys:r,filterTreeNode:this.filterTreeNode,switcherIcon:m},C,{__propsSymbol__:Symbol(),children:I}),on:{select:b,check:w,expand:this.onTreeExpand,load:this.onLoad},directives:[{name:"ant-ref",value:this.treeRef}]};E=e(og.Tree,k)}return e("div",{attrs:{role:"listbox",id:p,tabIndex:-1},on:{keydown:A}},[g?g():null,E])}},sm=om,cm={name:"SinglePopup",props:Q()({},sm.props,Zg.props,{searchValue:s.a.string,showSearch:s.a.bool,dropdownPrefixCls:s.a.string,disabled:s.a.bool,searchPlaceholder:s.a.string}),created:function(){this.inputRef=Eg(),this.searchRef=Eg(),this.popupRef=Eg()},methods:{onPlaceholderClick:function(){this.inputRef.current.focus()},getTree:function(){return this.popupRef.current&&this.popupRef.current.getTree()},_renderPlaceholder:function(){var e=this.$createElement,t=this.$props,n=t.searchPlaceholder,r=t.searchValue,i=t.prefixCls;return n?e("span",{style:{display:r?"none":"block"},on:{click:this.onPlaceholderClick},class:i+"-search__field__placeholder"},[n]):null},_renderSearch:function(){var e=this.$createElement,t=this.$props,n=t.showSearch,r=t.dropdownPrefixCls;return n?e("span",i()([{class:r+"-search"},{directives:[{name:"ant-ref",value:this.searchRef}]}]),[e(Zg,{props:Q()({},this.$props,{renderPlaceholder:this._renderPlaceholder}),on:Object(N.k)(this),directives:[{name:"ant-ref",value:this.inputRef}]})]):null}},render:function(){return(0,arguments[0])(sm,{props:Q()({},this.$props,{renderSearch:this._renderSearch,__propsSymbol__:Symbol()}),on:Object(N.k)(this),directives:[{name:"ant-ref",value:this.popupRef}]})}},lm=cm,um=sm,hm={name:"SelectNode",functional:!0,isTreeNode:!0,props:og.TreeNode.props,render:function(e,t){var n=t.props,r=t.slots,i=t.listeners,a=t.data,o=t.scopedSlots,s=r()||{},c=s.default,l=Object.keys(s),u={};// for vue 2.5.x
l.forEach((function(e){u[e]=function(){return s[e]}}));var h=Q()({},a,{on:Q()({},i,a.nativeOn),props:n,scopedSlots:Q()({},u,o)});return e(og.TreeNode,h,[c])}};
/* harmony default export */var fm={name:"Select",mixins:[d.a],props:Object(N.t)({prefixCls:s.a.string,prefixAria:s.a.string,multiple:s.a.bool,showArrow:s.a.bool,open:s.a.bool,value:s.a.any,autoFocus:s.a.bool,defaultOpen:s.a.bool,defaultValue:s.a.any,showSearch:s.a.bool,placeholder:s.a.any,inputValue:s.a.string,// [Legacy] Deprecated. Use `searchValue` instead.
searchValue:s.a.string,autoClearSearchValue:s.a.bool,searchPlaceholder:s.a.any,// [Legacy] Confuse with placeholder
disabled:s.a.bool,children:s.a.any,labelInValue:s.a.bool,maxTagCount:s.a.number,maxTagPlaceholder:s.a.oneOfType([s.a.any,s.a.func]),maxTagTextLength:s.a.number,showCheckedStrategy:s.a.oneOf([wg,xg,Cg]),dropdownClassName:s.a.string,dropdownStyle:s.a.object,dropdownVisibleChange:s.a.func,dropdownMatchSelectWidth:s.a.bool,treeData:s.a.array,treeDataSimpleMode:s.a.oneOfType([s.a.bool,s.a.object]),treeNodeFilterProp:s.a.string,treeNodeLabelProp:s.a.string,treeCheckable:s.a.oneOfType([s.a.any,s.a.object,s.a.bool]),
// treeCheckable: PropTypes.any,
treeCheckStrictly:s.a.bool,treeIcon:s.a.bool,treeLine:s.a.bool,treeDefaultExpandAll:s.a.bool,treeDefaultExpandedKeys:s.a.array,treeExpandedKeys:s.a.array,loadData:s.a.func,filterTreeNode:s.a.oneOfType([s.a.func,s.a.bool]),notFoundContent:s.a.any,getPopupContainer:s.a.func,
// onSearch: PropTypes.func,
// onSelect: PropTypes.func,
// onDeselect: PropTypes.func,
// onChange: PropTypes.func,
// onDropdownVisibleChange: PropTypes.func,
// onTreeExpand: PropTypes.func,
allowClear:s.a.bool,transitionName:s.a.string,animation:s.a.string,choiceTransitionName:s.a.string,inputIcon:s.a.any,clearIcon:s.a.any,removeIcon:s.a.any,switcherIcon:s.a.any,__propsSymbol__:s.a.any},{prefixCls:"rc-tree-select",prefixAria:"rc-tree-select",showArrow:!0,showSearch:!0,autoClearSearchValue:!0,showCheckedStrategy:Cg,
// dropdownMatchSelectWidth change the origin design, set to false now
// ref: https://github.com/react-component/select/blob/4cad95e098a341a09de239ad6981067188842020/src/Select.jsx#L344
// ref: https://github.com/react-component/select/pull/71
treeNodeFilterProp:"value",treeNodeLabelProp:"title",treeIcon:!1,notFoundContent:"Not Found",dropdownStyle:{},dropdownVisibleChange:function(){return!0}}),data:function(){ae()(this.$props.__propsSymbol__,"must pass __propsSymbol__");var e=this.$props,t=e.prefixAria,n=e.defaultOpen,r=e.open;this.needSyncKeys={},this.selectorRef=Eg(),this.selectTriggerRef=Eg(),
// ARIA need `aria-controls` props mapping
// Since this need user input. Let's generate ourselves
this.ariaId=t+"-list"+"_"+(Mg+=1);var i={_open:r||n,_valueList:[],_searchHalfCheckedKeys:[],_missValueList:[],// Contains the value not in the tree
_selectorValueList:[],// Used for multiple selector
_valueEntities:{},_posEntities:new Map,_keyEntities:new Map,_searchValue:"",_prevProps:{},_init:!0,_focused:void 0,_treeNodes:void 0,_filteredTreeNodes:void 0},a=this.getDerivedState(this.$props,i);return Q()({},i,a)},provide:function(){return{vcTreeSelect:{onSelectorFocus:this.onSelectorFocus,onSelectorBlur:this.onSelectorBlur,onSelectorKeyDown:this.onComponentKeyDown,onSelectorClear:this.onSelectorClear,onMultipleSelectorRemove:this.onMultipleSelectorRemove,onTreeNodeSelect:this.onTreeNodeSelect,onTreeNodeCheck:this.onTreeNodeCheck,onPopupKeyDown:this.onComponentKeyDown,onSearchInputChange:this.onSearchInputChange,onSearchInputKeyDown:this.onSearchInputKeyDown}}},watch:Q()({},
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/src/Select.js
/**
 * ARIA: https://www.w3.org/TR/wai-aria/#combobox
 * Sample 1: https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/combobox/aria1.1pattern/listbox-combo.html
 * Sample 2: https://www.w3.org/blog/wai-components-gallery/widget/combobox-with-aria-autocompleteinline/
 *
 * Tab logic:
 * Popup is close
 * 1. Focus input (mark component as focused)
 * 2. Press enter to show the popup
 * 3. If popup has input, focus it
 *
 * Popup is open
 * 1. press tab to close the popup
 * 2. Focus back to the selection input box
 * 3. Let the native tab going on
 *
 * TreeSelect use 2 design type.
 * In single mode, we should focus on the `span`
 * In multiple mode, we should focus on the `input`
 */
function(){var e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e[t]=function(){this.needSyncKeys[t]=!0}})),e}(["treeData","defaultValue","value"]),{__propsSymbol__:function(){var e=this.getDerivedState(this.$props,this.$data);this.setState(e),this.needSyncKeys={}},"$data._valueList":function(){var e=this;this.$nextTick((function(){e.forcePopupAlign()}))},"$data._open":function(e){var t=this;setTimeout((function(){var n=t.$props.prefixCls,r=t.$data,i=r._selectorValueList,a=r._valueEntities;
// Scroll to value position, only need sync on single mode
if(!t.isMultiple()&&i.length&&e&&t.popup){var o=i[0].value,s=t.popup.getTree().domTreeNodes[(a[o]||{}).key];if(s){var c=s.$el;v()((function(){var e=
// =================== DOM =====================
function(e,t){for(var n=e;n;){if(bg(n,t))return n;n=n.parentNode}return null}(t.popup.$el,n+"-dropdown"),r=t.popup.searchRef.current;c&&e&&r&&Object(pe.a)(c,e,{onlyScrollIfNeeded:!0,offsetTop:r.offsetHeight})}))}}}))}}),mounted:function(){var e=this;this.$nextTick((function(){var t=e.$props,n=t.autoFocus,r=t.disabled;n&&!r&&e.focus()}))},methods:{getDerivedState:function(e,t){var n=this.$createElement,r=t._prevProps,i=void 0===r?{}:r,a=e.treeCheckable,o=e.treeCheckStrictly,s=e.filterTreeNode,c=e.treeNodeFilterProp,l=e.treeDataSimpleMode,u={_prevProps:Q()({},e),_init:!1},h=this;
// Process the state when props updated
function f(t,n){return!(i[t]===e[t]&&!h.needSyncKeys[t])&&(n(e[t],i[t]),!0)}var d=!1;
// Open
f("open",(function(e){u._open=e}));
// Tree Nodes
var p,m,v,y,A,b,w,x=void 0,C=!1,_=!1;
// Parse by `treeDataSimpleMode`
if(f("treeData",(function(e){x=jg(n,e),C=!0})),f("treeDataSimpleMode",(function(e,t){if(e){var n=t&&!0!==t?t:{};
// Shallow equal to avoid dynamic prop object
hs()(e,n)||(_=!0)}})),l&&(C||_)){var I=Q()({id:"id",pId:"pId",rootPId:null},!0!==l?l:{});x=jg(n,(p=e.treeData,v=(m=I).id,y=m.pId,A=m.rootPId,b={},w=[],
// Connect tree
p.map((function(e){var t=Q()({},e),n=t[v];return b[n]=t,t.key=t.key||n,t})).forEach((function(e){var t=e[y],n=b[t];
// Fill parent
n&&(n.children=n.children||[],n.children.push(e)),
// Fill root tree node
(t===A||!n&&null===A)&&w.push(e)})),w))}
// If `treeData` not provide, use children TreeNodes
// Convert `treeData` to entities
if(e.treeData||(
// processState('children', (propValue) => {
//   treeNodes = Array.isArray(propValue) ? propValue : [propValue]
// })
x=Object(N.c)(this.$slots.default)),x){var E=function(e){return Object(lg.h)(e,{initWrapper:Ng,processEntity:Fg})}(x);u._treeNodes=x,u._posEntities=E.posEntities,u._valueEntities=E.valueEntities,u._keyEntities=E.keyEntities,d=!0}
// Value List
// Selector Value List
if(t._init&&f("defaultValue",(function(t){u._valueList=Pg(t,e),d=!0})),f("value",(function(t){u._valueList=Pg(t,e),d=!0})),d){
// Find out that value not exist in the tree
var k=[],S=[],B=[],M=u._valueList;M||(
// Also need add prev missValueList to avoid new treeNodes contains the value
M=[].concat(g()(t._valueList),g()(t._missValueList)));
// Get key by value
var T={};
// We need calculate the value when tree is checked tree
if(M.forEach((function(e){var n=e.value,r=e.label,i=(u._valueEntities||t._valueEntities)[n];if(T[n]=r,i)return B.push(i.key),void S.push(e);
// If not match, it may caused by ajax load. We need keep this
k.push(e)})),a&&!o){
// Calculate the keys need to be checked
var O=Hg(B,!0,u._keyEntities||t._keyEntities).checkedKeys;
// Format value list again for internal usage
u._valueList=O.map((function(e){var n=(u._keyEntities||t._keyEntities).get(e).value,r={value:n};return void 0!==T[n]&&(r.label=T[n]),r}))}else u._valueList=S;
// Fill the missValueList, we still need display in the selector
u._missValueList=k,
// Calculate the value list for `Selector` usage
u._selectorValueList=Qg(u._valueList,e,u._valueEntities||t._valueEntities)}
// [Legacy] To align with `Select` component,
// We use `searchValue` instead of `inputValue` but still keep the api
// `inputValue` support `null` to work as `autoClearSearchValue`
// Do the search logic
if(f("inputValue",(function(e){null!==e&&(u._searchValue=e)})),
// Search value
f("searchValue",(function(e){u._searchValue=e})),void 0!==u._searchValue||t._searchValue&&x){var D=void 0!==u._searchValue?u._searchValue:t._searchValue,P=String(D).toUpperCase(),L=s;!1===s?
// Don't filter if is false
L=function(){return!0}:"function"!=typeof L&&(
// When is not function (true or undefined), use inner filter
L=function(e,t){return-1!==String(Object(N.m)(t)[c]).toUpperCase().indexOf(P)}),u._filteredTreeNodes=Dg(this.$createElement,u._treeNodes||t._treeNodes,D,L,u._valueEntities||t._valueEntities,hm)}
// We should re-calculate the halfCheckedKeys when in search mode
return d&&a&&!o&&(u._searchValue||t._searchValue)&&(u._searchHalfCheckedKeys=zg(u._valueList,u._valueEntities||t._valueEntities)),
// Checked Strategy
f("showCheckedStrategy",(function(){u._selectorValueList=u._selectorValueList||Qg(u._valueList||t._valueList,e,u._valueEntities||t._valueEntities)})),u},
// ==================== Selector ====================
onSelectorFocus:function(){this.setState({_focused:!0})},onSelectorBlur:function(){this.setState({_focused:!1});
// TODO: Close when Popup is also not focused
// this.setState({ open: false });
},
// Handle key board event in both Selector and Popup
onComponentKeyDown:function(e){var t=this.$data._open,n=e.keyCode;t?Z.a.ESC===n?this.setOpenState(!1):-1!==[Z.a.UP,Z.a.DOWN,Z.a.LEFT,Z.a.RIGHT].indexOf(n)&&
// TODO: Handle `open` state
e.stopPropagation():-1!==[Z.a.ENTER,Z.a.DOWN].indexOf(n)&&this.setOpenState(!0)},onDeselect:function(e,t,n){this.__emit("deselect",e,t,n)},onSelectorClear:function(e){this.$props.disabled||(this.triggerChange([],[]),this.isSearchValueControlled()||this.setUncontrolledState({_searchValue:"",_filteredTreeNodes:null}),e.stopPropagation())},onMultipleSelectorRemove:function(e,t){e.stopPropagation();var n=this.$data,r=n._valueList,i=n._missValueList,a=n._valueEntities,o=this.$props,s=o.treeCheckable,c=o.treeCheckStrictly,l=o.treeNodeLabelProp;if(!o.disabled){
// Find trigger entity
var u=a[t],h=r;
// Clean up value
u&&(
// If value is in tree
h=s&&!c?r.filter((function(e){var t=e.value;return!
/**
 * Detect if position has relation.
 * e.g. 1-2 related with 1-2-3
 * e.g. 1-3-2 related with 1
 * e.g. 1-2 not related with 1-21
 */
function(e,t){for(var n=e.split("-"),r=t.split("-"),i=Math.min(n.length,r.length),a=0;a<i;a+=1)if(n[a]!==r[a])return!1;return!0}(a[t].pos,u.pos)})):r.filter((function(e){return e.value!==t})));var f=u?u.node:null,d={triggerValue:t,triggerNode:f},p={node:f};
// [Legacy] Little hack on this to make same action as `onCheck` event.
if(s){var g=h.map((function(e){var t=e.value;return a[t]}));p.event="check",p.checked=!1,p.checkedNodes=g.map((function(e){return e.node})),p.checkedNodesPositions=g.map((function(e){return{node:e.node,pos:e.pos}})),d.allCheckedNodes=c?p.checkedNodes:Bg(g).map((function(e){return e.node}))}else p.event="select",p.selected=!1,p.selectedNodes=h.map((function(e){var t=e.value;return(a[t]||{}).node}));
// Some value user pass prop is not in the tree, we also need clean it
var m=i.filter((function(e){return e.value!==t})),v=void 0;v=this.isLabelInValue()?{label:f?Object(N.m)(f)[l]:null,value:t}:t,this.onDeselect(v,f,p),this.triggerChange(m,h,d)}},
// ===================== Popup ======================
onValueTrigger:function(e,t,n,r){var i=n.node,a=i.$props.value,o=this.$data,s=o._missValueList,c=o._valueEntities,l=o._keyEntities,u=o._searchValue,h=this.$props,f=h.disabled,d=h.inputValue,p=h.treeNodeLabelProp,g=h.multiple,m=h.treeCheckable,v=h.treeCheckStrictly,y=h.autoClearSearchValue,A=i.$props[p];if(!f){
// Wrap the return value for user
var b=void 0;b=this.isLabelInValue()?{value:a,label:A}:a,
// [Legacy] Origin code not trigger `onDeselect` every time. Let's align the behaviour.
e?this.__emit("select",b,i,n):this.__emit("deselect",b,i,n);
// Get wrapped value list.
// This is a bit hack cause we use key to match the value.
var w=t.map((function(e){var t=Object(N.m)(e);return{value:t.value,label:t[p]}}));
// When is `treeCheckable` and with `searchValue`, `valueList` is not full filled.
// We need calculate the missing nodes.
if(m&&!v){var x=w.map((function(e){var t=e.value;return c[t].key}));w=(x=e?Hg(x,!0,l).checkedKeys:Hg([c[a].key],!1,l,{checkedKeys:x}).checkedKeys).map((function(e){var t=Object(N.m)(l.get(e).node);return{value:t.value,label:t[p]}}))}
// Clean up `searchValue` when this prop is set
(y||null===d)&&(
// Clean state `searchValue` if uncontrolled
this.isSearchValueControlled()||!g&&!m||this.setUncontrolledState({_searchValue:"",_filteredTreeNodes:null}),
// Trigger onSearch if `searchValue` to be empty.
// We should also trigger onSearch with empty string here
// since if user use `treeExpandedKeys`, it need user have the ability to reset it.
u&&u.length&&(this.__emit("update:searchValue",""),this.__emit("search","")));
// [Legacy] Provide extra info
var C=Q()({},r,{triggerValue:a,triggerNode:i});this.triggerChange(s,w,C)}},onTreeNodeSelect:function(e,t){var n=this.$data,r=n._valueList,i=n._valueEntities,a=this.$props,o=a.treeCheckable,s=a.multiple;if(!o){s||this.setOpenState(!1);var c=t.selected,l=t.node.$props.value,u=void 0;s?(u=r.filter((function(e){return e.value!==l})),c&&u.push({value:l})):u=[{value:l}];var h=u.map((function(e){var t=e.value;return i[t]})).filter((function(e){return e})).map((function(e){return e.node}));this.onValueTrigger(c,h,t,{selected:c})}},onTreeNodeCheck:function(e,t){var n=this.$data,r=n._searchValue,i=n._keyEntities,a=n._valueEntities,o=n._valueList,s=this.$props.treeCheckStrictly,c=t.checkedNodes,l=t.checkedNodesPositions,u=t.checked,h={checked:u},f=c;
// [Legacy] Check event provide `allCheckedNodes`.
// When `treeCheckStrictly` or internal `searchValue` is set, TreeNode will be unrelated:
// - Related: Show the top checked nodes and has children prop.
// - Unrelated: Show all the checked nodes.
if(r){var d=o.map((function(e){var t=e.value;return a[t]})).filter((function(e){return e})).map((function(e){return e.key})),p=void 0;p=u?Array.from(new Set([].concat(g()(d),g()(f.map((function(e){var t=Object(N.m)(e).value;return a[t].key})))))):Hg([Object(N.m)(t.node).eventKey],!1,i,{checkedKeys:d}).checkedKeys,f=p.map((function(e){return i.get(e).node})),
// Let's follow as not `treeCheckStrictly` format
h.allCheckedNodes=p.map((function(e){return Og(i.get(e))}))}else h.allCheckedNodes=s?t.checkedNodes:Bg(l);this.onValueTrigger(u,f,t,h)},
// ==================== Trigger =====================
onDropdownVisibleChange:function(e){var t=this.$props,n=t.multiple,r=t.treeCheckable,i=this.$data._searchValue;
// When set open success and single mode,
// we will reset the input content.
e&&!n&&!r&&i&&this.setUncontrolledState({_searchValue:"",_filteredTreeNodes:null}),this.setOpenState(e,!0)},onSearchInputChange:function(e){var t=e.target.value,n=this.$data,r=n._treeNodes,i=n._valueEntities,a=this.$props,o=a.filterTreeNode,s=a.treeNodeFilterProp;this.__emit("update:searchValue",t),this.__emit("search",t);var c=!1;if(this.isSearchValueControlled()||(c=this.setUncontrolledState({_searchValue:t}),this.setOpenState(!0)),c){
// Do the search logic
var l=String(t).toUpperCase(),u=o;!1===o?u=function(){return!0}:u||(u=function(e,t){return-1!==String(Object(N.m)(t)[s]).toUpperCase().indexOf(l)}),this.setState({_filteredTreeNodes:Dg(this.$createElement,r,t,u,i,hm)})}},onSearchInputKeyDown:function(e){var t=this.$data,n=t._searchValue,r=t._valueList,i=e.keyCode;if(Z.a.BACKSPACE===i&&this.isMultiple()&&!n&&r.length){var a=r[r.length-1].value;this.onMultipleSelectorRemove(e,a)}},onChoiceAnimationLeave:function(){var e=this;v()((function(){e.forcePopupAlign()}))},setPopupRef:function(e){this.popup=e},
/**
     * Only update the value which is not in props
     */
setUncontrolledState:function(e){var t=!1,n={},r=Object(N.l)(this);return Object.keys(e).forEach((function(i){i.slice(1)in r||(t=!0,n[i]=e[i])})),t&&this.setState(n),t},
// [Legacy] Origin provide `documentClickClose` which triggered by `Trigger`
// Currently `TreeSelect` align the hide popup logic as `Select` which blur to hide.
// `documentClickClose` is not accurate anymore. Let's just keep the key word.
setOpenState:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.$props.dropdownVisibleChange;n&&!1===n(e,{documentClickClose:!e&&t})||this.setUncontrolledState({_open:e})},
// Tree checkable is also a multiple case
isMultiple:function(){var e=this.$props,t=e.multiple,n=e.treeCheckable;return!(!t&&!n)},isLabelInValue:function(){return Tg(this.$props)},
// [Legacy] To align with `Select` component,
// We use `searchValue` instead of `inputValue`
// but currently still need support that.
// Add this method the check if is controlled
isSearchValueControlled:function(){var e=Object(N.l)(this),t=e.inputValue;return"searchValue"in e||"inputValue"in e&&null!==t},forcePopupAlign:function(){var e=this.selectTriggerRef.current;e&&e.forcePopupAlign()},delayForcePopupAlign:function(){var e=this;
// Wait 2 frame to avoid dom update & dom algin in the same time
// https://github.com/ant-design/ant-design/issues/12031
v()((function(){v()(e.forcePopupAlign)}))},
/**
     * 1. Update state valueList.
     * 2. Fire `onChange` event to user.
     */
triggerChange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.$data,i=r._valueEntities,a=r._searchValue,o=r._selectorValueList,s=Object(N.l)(this),c=s.disabled,l=s.treeCheckable,u=s.treeCheckStrictly;if(!c){
// Trigger
var h=Q()({
// [Legacy] Always return as array contains label & value
preValue:o.map((function(e){return{label:e.label,value:e.value}}))},n),f=Qg(t,s,i);
// Format value by `treeCheckStrictly`
if(!("value"in s)){var d={_missValueList:e,_valueList:t,_selectorValueList:f};a&&l&&!u&&(d._searchHalfCheckedKeys=zg(t,i)),this.setState(d)}
// Only do the logic when `onChange` function provided
if(Object(N.k)(this).change){var p=void 0;
// Get value by mode
p=this.isMultiple()?[].concat(g()(e),g()(f)):f.slice(0,1);var m=null,v=void 0;this.isLabelInValue()?v=p.map((function(e){return{label:e.label,value:e.value}})):(m=[],v=p.map((function(e){var t=e.label,n=e.value;return m.push(t),n}))),this.isMultiple()||(v=v[0]),this.__emit("change",v,m,h)}}},focus:function(){this.selectorRef.current.focus()},blur:function(){this.selectorRef.current.blur()}},
// ===================== Render =====================
render:function(){var e=arguments[0],t=this.$data,n=t._valueList,r=t._missValueList,a=t._selectorValueList,o=t._searchHalfCheckedKeys,s=t._valueEntities,c=t._keyEntities,l=t._searchValue,u=t._open,h=t._focused,f=t._treeNodes,d=t._filteredTreeNodes,p=Object(N.l)(this),m=p.prefixCls,v=p.treeExpandedKeys,y=this.isMultiple(),A={props:Q()({},p,{isMultiple:y,valueList:n,searchHalfCheckedKeys:o,selectorValueList:[].concat(g()(r),g()(a)),valueEntities:s,keyEntities:c,searchValue:l,upperSearchValue:(l||"").toUpperCase(),// Perf save
open:u,focused:h,dropdownPrefixCls:m+"-dropdown",ariaId:this.ariaId}),on:Q()({},Object(N.k)(this),{choiceAnimationLeave:this.onChoiceAnimationLeave}),scopedSlots:this.$scopedSlots},b=Object(N.x)(A,{props:{treeNodes:f,filteredTreeNodes:d,
// Tree expanded control
treeExpandedKeys:v,__propsSymbol__:Symbol()},on:{treeExpanded:this.delayForcePopupAlign},directives:[{name:"ant-ref",value:this.setPopupRef}]}),w=e(y?um:lm,b),x=e(y?im:Jg,i()([A,{directives:[{name:"ant-ref",value:this.selectorRef}]}])),C=Object(N.x)(A,{props:{popupElement:w,dropdownVisibleChange:this.onDropdownVisibleChange},directives:[{name:"ant-ref",value:this.selectTriggerRef}]});return e(Vg,C,[x])}};fm.TreeNode=hm,fm.SHOW_ALL=wg,fm.SHOW_PARENT=xg,fm.SHOW_CHILD=Cg,
// Let warning show correct component name
fm.name="TreeSelect";
/* harmony default export */var dm=hm,pm=fm;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/src/index.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tree-select/index.js
// export this package's api
// base 2.9.3
oe.default.use(he.a,{name:"ant-ref"});
/* harmony default export */var gm=pm,mm=(s.a.shape({key:s.a.string,value:s.a.string,label:s.a.any,scopedSlots:s.a.object,children:s.a.array}).loose,{TreeNode:Q()({},dm,{name:"ATreeSelectNode"}),SHOW_ALL:wg,SHOW_PARENT:xg,SHOW_CHILD:Cg,name:"ATreeSelect",props:Object(N.t)(Q()({},qe(),{autoFocus:s.a.bool,dropdownStyle:s.a.object,filterTreeNode:s.a.oneOfType([Function,Boolean]),getPopupContainer:s.a.func,labelInValue:s.a.bool,loadData:s.a.func,maxTagCount:s.a.number,maxTagPlaceholder:s.a.any,value:s.a.oneOfType([s.a.string,s.a.object,s.a.array,s.a.number]),defaultValue:s.a.oneOfType([s.a.string,s.a.object,s.a.array,s.a.number]),multiple:s.a.bool,notFoundContent:s.a.any,
// onSelect: (value: any) => void,
// onChange: (value: any, label: any) => void,
// onSearch: (value: any) => void,
searchPlaceholder:s.a.string,searchValue:s.a.string,showCheckedStrategy:s.a.oneOf(["SHOW_ALL","SHOW_PARENT","SHOW_CHILD"]),suffixIcon:s.a.any,treeCheckable:s.a.oneOfType([s.a.any,s.a.bool]),treeCheckStrictly:s.a.bool,treeData:s.a.arrayOf(Object),treeDataSimpleMode:s.a.oneOfType([Boolean,Object]),dropdownClassName:s.a.string,dropdownMatchSelectWidth:s.a.bool,treeDefaultExpandAll:s.a.bool,treeExpandedKeys:s.a.array,treeIcon:s.a.bool,treeDefaultExpandedKeys:s.a.array,treeNodeFilterProp:s.a.string,treeNodeLabelProp:s.a.string,replaceFields:s.a.object.def({})}),{transitionName:"slide-up",choiceTransitionName:"zoom",showSearch:!1}),model:{prop:"value",event:"change"},inject:{configProvider:{default:function(){return A.a}}},created:function(){Object(w.a)(!1!==this.multiple||!this.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true")},methods:{focus:function(){this.$refs.vcTreeSelect.focus()},blur:function(){this.$refs.vcTreeSelect.blur()},renderSwitcherIcon:function(e,t){var n=t.isLeaf,r=t.loading,i=this.$createElement;return r?i(We.a,{attrs:{type:"loading"},class:e+"-switcher-loading-icon"}):n?null:i(We.a,{attrs:{type:"caret-down"},class:e+"-switcher-icon"})},onChange:function(){this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments)))},updateTreeData:function(e){var t=this,n=this.$scopedSlots,r=Q()({},{children:"children",title:"title",key:"key",label:"label",value:"value"},this.$props.replaceFields);return e.map((function(e){var i=e.scopedSlots,a=void 0===i?{}:i,o=e[r.label],s=e[r.title],c=e[r.value],l=e[r.key],u=e[r.children],h="function"==typeof o?o(t.$createElement):o,f="function"==typeof s?s(t.$createElement):s;!h&&a.label&&n[a.label]&&(h=n[a.label](e)),!f&&a.title&&n[a.title]&&(f=n[a.title](e));var d=Q()({},e,{title:f||h,value:c,dataRef:e,key:l});return u?Q()({},d,{children:t.updateTreeData(u)}):d}))}},render:function(e){var t,n=this,r=Object(N.l)(this),i=r.prefixCls,a=r.size,s=r.dropdownStyle,c=r.dropdownClassName,h=r.getPopupContainer,f=X()(r,["prefixCls","size","dropdownStyle","dropdownClassName","getPopupContainer"]),d=(0,this.configProvider.getPrefixCls)("select",i),p=this.configProvider.renderEmpty,g=Object(N.g)(this,"notFoundContent"),m=Object(N.g)(this,"removeIcon"),v=Object(N.g)(this,"clearIcon"),y=this.configProvider.getPopupContainer,A=Object(u.a)(f,["inputIcon","removeIcon","clearIcon","switcherIcon","suffixIcon"]),b=Object(N.g)(this,"suffixIcon");b=Array.isArray(b)?b[0]:b;var w=r.treeData;w&&(w=this.updateTreeData(w));var x=(t={},o()(t,d+"-lg","large"===a),o()(t,d+"-sm","small"===a),t),C=f.showSearch;
// showSearch: single - false, multiple - true
"showSearch"in f||(C=!(!f.multiple&&!f.treeCheckable));var _=Object(N.g)(this,"treeCheckable");_&&(_=e("span",{class:d+"-tree-checkbox-inner"}));var I=b||e(We.a,{attrs:{type:"down"},class:d+"-arrow-icon"}),E=m||e(We.a,{attrs:{type:"close"},class:d+"-remove-icon"}),k=v||e(We.a,{attrs:{type:"close-circle",theme:"filled"},class:d+"-clear-icon"}),S={props:Q()(Q()({switcherIcon:function(e){return n.renderSwitcherIcon(d,e)},inputIcon:I,removeIcon:E,clearIcon:k},A,{showSearch:C,getPopupContainer:h||y,dropdownClassName:l()(c,d+"-tree-dropdown"),prefixCls:d,dropdownStyle:Q()({maxHeight:"100vh",overflow:"auto"},s),treeCheckable:_,notFoundContent:g||p(e,"Select"),__propsSymbol__:Symbol()}),w?{treeData:w}:{}),class:x,on:Q()({},Object(N.k)(this),{change:this.onChange}),ref:"vcTreeSelect",scopedSlots:this.$scopedSlots};return e(gm,S,[Object(N.c)(this.$slots.default)])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(mm.name,mm),e.component(mm.TreeNode.name,mm.TreeNode)}}),vm=mm,ym={prefixCls:s.a.string,color:s.a.string,dot:s.a.any,pending:s.a.bool,position:s.a.oneOf(["left","right",""]).def("")},Am={name:"ATimelineItem",props:Object(N.t)(ym,{color:"blue",pending:!1}),inject:{configProvider:{default:function(){return A.a}}},render:function(){var e,t,n=arguments[0],r=Object(N.l)(this),i=r.prefixCls,a=r.color,s=void 0===a?"":a,c=r.pending,u=(0,this.configProvider.getPrefixCls)("timeline",i),h=Object(N.g)(this,"dot"),f=l()((e={},o()(e,u+"-item",!0),o()(e,u+"-item-pending",c),e)),d=l()((t={},o()(t,u+"-item-head",!0),o()(t,u+"-item-head-custom",h),o()(t,u+"-item-head-"+s,!0),t));return n("li",{class:f,on:Object(N.k)(this)},[n("div",{class:u+"-item-tail"}),n("div",{class:d,style:{borderColor:/blue|red|green|gray/.test(s)?void 0:s}},[h]),n("div",{class:u+"-item-content"},[this.$slots.default])])}},bm={prefixCls:s.a.string,
/** 指定最后一个幽灵节点是否存在或内容 */
pending:s.a.any,pendingDot:s.a.string,reverse:s.a.bool,mode:s.a.oneOf(["left","alternate","right",""])},wm={name:"ATimeline",props:Object(N.t)(bm,{reverse:!1,mode:""}),inject:{configProvider:{default:function(){return A.a}}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.reverse,a=n.mode,s=X()(n,["prefixCls","reverse","mode"]),c=(0,this.configProvider.getPrefixCls)("timeline",r),u=Object(N.g)(this,"pendingDot"),h=Object(N.g)(this,"pending"),f="boolean"==typeof h?null:h,d=l()(c,(e={},o()(e,c+"-pending",!!h),o()(e,c+"-reverse",!!i),o()(e,c+"-"+a,!!a),e)),p=Object(N.c)(this.$slots.default),m=h?t(Am,{attrs:{pending:!!h}},[t("template",{slot:"dot"},[u||t(We.a,{attrs:{type:"loading"}})]),f]):null,v=i?[m].concat(g()(p.reverse())):[].concat(g()(p),[m]),y=function(e,t){var n=Object(N.m)(e);return"alternate"===a?"right"===n.position?c+"-item-right":"left"===n.position||t%2==0?c+"-item-left":c+"-item-right":"left"===a?c+"-item-left":"right"===a||"right"===n.position?c+"-item-right":""},A=v.filter((function(e){return!!e})),b=A.length,w=c+"-item-last",x=A.map((function(e,t){var n=t===b-2?w:"",r=t===b-1?w:"";return Object(ce.a)(e,{class:l()([!i&&h?n:r,y(e,t)])})}));return t("ul",{props:Q()({},s),class:d,on:Object(N.k)(this)},[x])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tree-select/interface.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/timeline/index.js
wm.Item=Am,
/* istanbul ignore next */
wm.install=function(e){e.use(b.a),e.component(wm.name,wm),e.component(Am.name,Am)};
/* harmony default export */var xm=wm,Cm=n("a8fc"),_m=n.n(Cm),Im=n("51f5"),Em=n.n(Im),km=n("2593"),Sm=n.n(km),Bm=n("327d"),Mm=n.n(Bm);
// EXTERNAL MODULE: ./node_modules/lodash/uniqBy.js
function Tm(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}
// option {
//  onProgress: (event: { percent: number }): void,
//  onError: (event: Error, body?: Object): void,
//  onSuccess: (body: Object): void,
//  data: Object,
//  filename: String,
//  file: File,
//  withCredentials: Boolean,
//  action: String,
//  headers: Object,
// }
function Om(e){var t=new window.XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new window.FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];
// support key-value array data
Array.isArray(r)?r.forEach((function(e){
// { list: [ 11, 22 ] }
// formData.append('list[]', 11);
n.append(t+"[]",e)})):n.append(t,e.data[t])})),n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){
// allow success when 2xx status
// see https://github.com/react-component/upload/issues/34
if(t.status<200||t.status>=300)return e.onError(
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-upload/src/request.js
function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),Tm(t));e.onSuccess(Tm(t),t)},t.open(e.method,e.action,!0),
// Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179
e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};
// when set headers['X-Requested-With'] = null , can close default XHR header
// see https://github.com/react-component/upload/issues/33
for(var i in null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),r)r.hasOwnProperty(i)&&null!==r[i]&&t.setRequestHeader(i,r[i]);return t.send(n),{abort:function(){t.abort()}}}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-upload/src/uid.js
var Dm=+new Date,Pm=0;function Lm(){return"vc-upload-"+Dm+"-"+ ++Pm}
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-upload/src/attr-accept.js
/* harmony default export */var Qm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some((function(e){var t,n,o=e.trim();return"."===o.charAt(0)?(t=r.toLowerCase(),n=o.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(o)?a===o.replace(/\/.*$/,""):i===o}))}return!0};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-upload/src/traverseFileTree.js
var Rm=function(e,t,n){var r=function e(r,i){i=i||"",r.isFile?r.file((function(e){n(e)&&(
// https://github.com/ant-design/ant-design/issues/16426
r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var i=Array.prototype.slice.apply(n);r=r.concat(i),i.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,""+i+r.name+"/")}))}))},i=!0,a=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){r(s.value.webkitGetAsEntry())}}catch(e){a=!0,o=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw o}}},jm={componentTag:s.a.string,
// style: PropTypes.object,
prefixCls:s.a.string,name:s.a.string,
// className: PropTypes.string,
multiple:s.a.bool,directory:s.a.bool,disabled:s.a.bool,accept:s.a.string,
// children: PropTypes.any,
// onStart: PropTypes.func,
data:s.a.oneOfType([s.a.object,s.a.func]),action:s.a.oneOfType([s.a.string,s.a.func]),headers:s.a.object,beforeUpload:s.a.func,customRequest:s.a.func,
// onProgress: PropTypes.func,
withCredentials:s.a.bool,openFileDialogOnClick:s.a.bool,transformFile:s.a.func,method:s.a.string},Nm={inheritAttrs:!1,name:"ajaxUploader",mixins:[d.a],props:jm,data:function(){return this.reqs={},{uid:Lm()}},mounted:function(){this._isMounted=!0},beforeDestroy:function(){this._isMounted=!1,this.abort()},methods:{onChange:function(e){var t=e.target.files;this.uploadFiles(t),this.reset()},onClick:function(){var e=this.$refs.fileInputRef;e&&e.click()},onKeyDown:function(e){"Enter"===e.key&&this.onClick()},onFileDrop:function(e){var t=this,n=this.$props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(this.directory)Rm(e.dataTransfer.items,this.uploadFiles,(function(e){return Qm(e,t.accept)}));else{var r=Mm()(Array.prototype.slice.call(e.dataTransfer.files),(function(e){return Qm(e,t.accept)})),i=r[0],a=r[1];!1===n&&(i=i.slice(0,1)),this.uploadFiles(i),a.length&&this.$emit("reject",a)}},uploadFiles:function(e){var t=this,n=Array.prototype.slice.call(e);n.map((function(e){return e.uid=Lm(),e})).forEach((function(e){t.upload(e,n)}))},upload:function(e,t){var n=this;if(!this.beforeUpload)
// always async in case use react state to keep fileList
return setTimeout((function(){return n.post(e)}),0);var r=this.beforeUpload(e,t);r&&r.then?r.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console;// eslint-disable-line
})):!1!==r&&setTimeout((function(){return n.post(e)}),0)},post:function(e){var t=this;if(this._isMounted){var n=this.$props,r=n.data,i=n.transformFile,a=void 0===i?function(e){return e}:i;new Promise((function(n){var r=t.action;if("function"==typeof r)return n(r(e));n(r)})).then((function(i){var o=e.uid,s=t.customRequest||Om;Promise.resolve(a(e)).catch((function(e){// eslint-disable-line no-console
})).then((function(a){"function"==typeof r&&(r=r(e));var c={action:i,filename:t.name,data:r,file:a,headers:t.headers,withCredentials:t.withCredentials,method:n.method||"post",onProgress:function(n){t.$emit("progress",n,e)},onSuccess:function(n,r){delete t.reqs[o],t.$emit("success",n,e,r)},onError:function(n,r){delete t.reqs[o],t.$emit("error",n,r,e)}};t.reqs[o]=s(c),t.$emit("start",e)}))}))}},reset:function(){this.setState({uid:Lm()})},abort:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},render:function(){var e,t=arguments[0],n=this.$props,r=this.$attrs,i=n.componentTag,a=n.prefixCls,s=n.disabled,c=n.multiple,u=n.accept,h=n.directory,f=n.openFileDialogOnClick,d=l()((e={},o()(e,a,!0),o()(e,a+"-disabled",s),e)),p=s?{}:{click:f?this.onClick:function(){},keydown:f?this.onKeyDown:function(){},drop:this.onFileDrop,dragover:this.onFileDrop};return t(i,{on:Q()({},Object(N.k)(this),p),attrs:{role:"button",tabIndex:s?null:"0"},class:d},[t("input",{attrs:{id:r.id,type:"file",accept:u,directory:h?"directory":null,webkitdirectory:h?"webkitdirectory":null,multiple:c},ref:"fileInputRef",on:{click:function(e){return e.stopPropagation()},change:this.onChange},
// https://github.com/ant-design/ant-design/issues/19948
key:this.uid,style:{display:"none"}}),this.$slots.default])}},Fm=Nm,zm={position:"absolute",top:0,opacity:0,filter:"alpha(opacity=0)",left:0,zIndex:9999},Hm={mixins:[d.a],props:{componentTag:s.a.string,
// style: PropTypes.object,
disabled:s.a.bool,prefixCls:s.a.string,
// className: PropTypes.string,
accept:s.a.string,
// onStart: PropTypes.func,
multiple:s.a.bool,
// children: PropTypes.any,
data:s.a.oneOfType([s.a.object,s.a.func]),action:s.a.oneOfType([s.a.string,s.a.func]),name:s.a.string},data:function(){return this.file={},{uploading:!1}},methods:{onLoad:function(){if(this.uploading){var e=this.file,t=void 0;try{var n=this.getIframeDocument(),r=n.getElementsByTagName("script")[0];r&&r.parentNode===n.body&&n.body.removeChild(r),t=n.body.innerHTML,this.$emit("success",t,e)}catch(n){Object(w.a)(!1,"cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload"),t="cross-domain",this.$emit("error",n,null,e)}this.endUpload()}},onChange:function(){var e=this,t=this.getFormInputNode(),n=this.file={uid:Lm(),name:t.value&&t.value.substring(t.value.lastIndexOf("\\")+1,t.value.length)};this.startUpload();var r=this.$props;if(!r.beforeUpload)return this.post(n);var i=r.beforeUpload(n);i&&i.then?i.then((function(){e.post(n)}),(function(){e.endUpload()})):!1!==i?this.post(n):this.endUpload()},getIframeNode:function(){return this.$refs.iframeRef},getIframeDocument:function(){return this.getIframeNode().contentDocument},getFormNode:function(){return this.getIframeDocument().getElementById("form")},getFormInputNode:function(){return this.getIframeDocument().getElementById("input")},getFormDataNode:function(){return this.getIframeDocument().getElementById("data")},getFileForMultiple:function(e){return this.multiple?[e]:e},getIframeHTML:function(e){var t="",n="";if(e){var r="script";t="<"+r+'>document.domain="'+e+'";</'+r+">",n='<input name="_documentDomain" value="'+e+'" />'}return'\n      <!DOCTYPE html>\n      <html>\n      <head>\n      <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n      <style>\n      body,html {padding:0;margin:0;border:0;overflow:hidden;}\n      </style>\n      '+t+'\n      </head>\n      <body>\n      <form method="post"\n      encType="multipart/form-data"\n      action="" id="form"\n      style="display:block;height:9999px;position:relative;overflow:hidden;">\n      <input id="input" type="file"\n       name="'+this.name+'"\n       style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n      '+n+'\n      <span id="data"></span>\n      </form>\n      </body>\n      </html>\n      '},initIframeSrc:function(){this.domain&&(this.getIframeNode().src="javascript:void((function(){\n          var d = document;\n          d.open();\n          d.domain='"+this.domain+"';\n          d.write('');\n          d.close();\n        })())")},initIframe:function(){var e=this.getIframeNode(),t=e.contentWindow,n=void 0;this.domain=this.domain||"",this.initIframeSrc();try{n=t.document}catch(r){this.domain=document.domain,this.initIframeSrc(),n=(t=e.contentWindow).document}n.open("text/html","replace"),n.write(this.getIframeHTML(this.domain)),n.close(),this.getFormInputNode().onchange=this.onChange},endUpload:function(){this.uploading&&(this.file={},
// hack avoid batch
this.uploading=!1,this.setState({uploading:!1}),this.initIframe())},startUpload:function(){this.uploading||(this.uploading=!0,this.setState({uploading:!0}))},updateIframeWH:function(){var e=this.$el,t=this.getIframeNode();t.style.height=e.offsetHeight+"px",t.style.width=e.offsetWidth+"px"},abort:function(e){if(e){var t=e;e&&e.uid&&(t=e.uid),t===this.file.uid&&this.endUpload()}else this.endUpload()},post:function(e){var t=this,n=this.getFormNode(),r=this.getFormDataNode(),i=this.$props.data;"function"==typeof i&&(i=i(e));var a=document.createDocumentFragment();for(var o in i)if(i.hasOwnProperty(o)){var s=document.createElement("input");s.setAttribute("name",o),s.value=i[o],a.appendChild(s)}r.appendChild(a),new Promise((function(n){var r=t.action;if("function"==typeof r)return n(r(e));n(r)})).then((function(i){n.setAttribute("action",i),n.submit(),r.innerHTML="",t.$emit("start",e)}))}},mounted:function(){var e=this;this.$nextTick((function(){e.updateIframeWH(),e.initIframe()}))},updated:function(){var e=this;this.$nextTick((function(){e.updateIframeWH()}))},render:function(){var e,t=arguments[0],n=this.$props,r=n.componentTag,i=n.disabled,a=n.prefixCls,s=Q()({},zm,{display:this.uploading||i?"none":""});return t(r,{attrs:{className:l()((e={},o()(e,a,!0),o()(e,a+"-disabled",i),e))},style:{position:"relative",zIndex:0}},[t("iframe",{ref:"iframeRef",on:{load:this.onLoad},style:s}),this.$slots.default])}},Um=Hm;
/* harmony default export */var Gm={componentTag:s.a.string,prefixCls:s.a.string,action:s.a.oneOfType([s.a.string,s.a.func]),name:s.a.string,multipart:s.a.bool,directory:s.a.bool,
// onError: PropTypes.func,
// onSuccess: PropTypes.func,
// onProgress: PropTypes.func,
// onStart: PropTypes.func,
data:s.a.oneOfType([s.a.object,s.a.func]),headers:s.a.object,accept:s.a.string,multiple:s.a.bool,disabled:s.a.bool,beforeUpload:s.a.func,customRequest:s.a.func,
// onReady: PropTypes.func,
withCredentials:s.a.bool,supportServerRender:s.a.bool,openFileDialogOnClick:s.a.bool},Vm={name:"Upload",mixins:[d.a],inheritAttrs:!1,props:Object(N.t)(Gm,{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,
// onReady: empty,
// onStart: empty,
// onError: empty,
// onSuccess: empty,
supportServerRender:!1,multiple:!1,beforeUpload:
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-upload/src/Upload.js
function(){},withCredentials:!1,openFileDialogOnClick:!0}),data:function(){return{Component:null}},mounted:function(){var e=this;this.$nextTick((function(){e.supportServerRender&&e.setState({Component:e.getComponent()},(function(){e.$emit("ready")}))}))},methods:{getComponent:function(){return"undefined"!=typeof File?Fm:Um},abort:function(e){this.$refs.uploaderRef.abort(e)}},render:function(){var e=arguments[0],t={props:Q()({},this.$props),on:Object(N.k)(this),ref:"uploaderRef",attrs:this.$attrs};if(this.supportServerRender){var n=this.Component;return n?e(n,t,[this.$slots.default]):null}return e(this.getComponent(),t,[this.$slots.default])}},Wm=Vm;
/* harmony default export */s.a.oneOf(["error","success","done","uploading","removed"]);
// export const HttpRequestHeader {
//   [key: string]: string;
// }
// export const UploadFile = PropsTypes.shape({
//   uid: PropsTypes.oneOfType([
//     PropsTypes.string,
//     PropsTypes.number,
//   ]),
//   size: PropsTypes.number,
//   name: PropsTypes.string,
//   filename: PropsTypes.string,
//   lastModified: PropsTypes.number,
//   lastModifiedDate: PropsTypes.any,
//   url: PropsTypes.string,
//   status: UploadFileStatus,
//   percent: PropsTypes.number,
//   thumbUrl: PropsTypes.string,
//   originFileObj: PropsTypes.any,
//   response: PropsTypes.any,
//   error: PropsTypes.any,
//   linkProps: PropsTypes.any,
//   type: PropsTypes.string,
// }).loose
function qm(e){var t=e.uid,n=e.name;return!(!t&&0!==t)&&(!!["string","number"].includes(void 0===t?"undefined":Y()(t))&&(""!==n&&"string"==typeof n))}s.a.custom(qm),s.a.arrayOf(s.a.custom(qm)),s.a.object;var Ym=s.a.shape({showRemoveIcon:s.a.bool,showPreviewIcon:s.a.bool}).loose,Km=s.a.shape({uploading:s.a.string,removeFile:s.a.string,downloadFile:s.a.string,uploadError:s.a.string,previewFile:s.a.string}).loose,$m={type:s.a.oneOf(["drag","select"]),name:s.a.string,defaultFileList:s.a.arrayOf(s.a.custom(qm)),fileList:s.a.arrayOf(s.a.custom(qm)),action:s.a.oneOfType([s.a.string,s.a.func]),directory:s.a.bool,data:s.a.oneOfType([s.a.object,s.a.func]),method:s.a.oneOf(["POST","PUT","post","put"]),headers:s.a.object,showUploadList:s.a.oneOfType([s.a.bool,Ym]),multiple:s.a.bool,accept:s.a.string,beforeUpload:s.a.func,
// onChange: PropsTypes.func,
listType:s.a.oneOf(["text","picture","picture-card"]),
// className: PropsTypes.string,
// onPreview: PropsTypes.func,
remove:s.a.func,supportServerRender:s.a.bool,
// style: PropsTypes.object,
disabled:s.a.bool,prefixCls:s.a.string,customRequest:s.a.func,withCredentials:s.a.bool,openFileDialogOnClick:s.a.bool,locale:Km,height:s.a.number,id:s.a.string,previewFile:s.a.func,transformFile:s.a.func},Jm=(s.a.arrayOf(s.a.custom(qm)),s.a.string,{listType:s.a.oneOf(["text","picture","picture-card"]),
// onPreview: PropsTypes.func,
// onRemove: PropsTypes.func,
// items: PropsTypes.arrayOf(UploadFile),
items:s.a.arrayOf(s.a.custom(qm)),
// items: PropsTypes.any,
progressAttr:s.a.object,prefixCls:s.a.string,showRemoveIcon:s.a.bool,showDownloadIcon:s.a.bool,showPreviewIcon:s.a.bool,locale:Km,previewFile:s.a.func}),Xm={name:"AUploadDragger",props:$m,render:function(){var e=arguments[0],t=Object(N.l)(this),n={props:Q()({},t,{type:"drag"}),on:Object(N.k)(this),style:{height:this.height}};return e(iv,n,[this.$slots.default])}};
// Fix IE file.status problem
// via coping a new Object
function Zm(e){return Q()({},e,{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}
/**
 * 生成Progress percent: 0.1 -> 0.98
 *   - for ie
 */function ev(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}
// ==================== Default Image Preview ====================
var tv=function(e){return!!e&&0===e.indexOf("image/")},nv=200;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/upload/UploadList.js
/* harmony default export */var rv={name:"AUploadList",mixins:[d.a],props:Object(N.t)(Jm,{listType:"text",// or picture
progressAttr:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(tv(e.type)){var n=document.createElement("canvas");n.width=nv,n.height=nv,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);var r=n.getContext("2d"),i=new Image;i.onload=function(){var e=i.width,a=i.height,o=nv,s=nv,c=0,l=0;e<a?l=-((s=a*(nv/e))-o)/2:c=-((o=e*(nv/a))-s)/2,r.drawImage(i,c,l,o,s);var u=n.toDataURL();document.body.removeChild(n),t(u)},i.src=window.URL.createObjectURL(e)}else t("")}))}}),inject:{configProvider:{default:function(){return A.a}}},updated:function(){var e=this;this.$nextTick((function(){var t=e.$props,n=t.listType,r=t.items,i=t.previewFile;"picture"!==n&&"picture-card"!==n||(r||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(
/*eslint-disable */
t.thumbUrl="",i&&i(t.originFileObj).then((function(n){
// Need append '' to avoid dead loop
t.thumbUrl=n||"",e.$forceUpdate()})))}))}))},methods:{handlePreview:function(e,t){if(Object(N.k)(this).preview)return t.preventDefault(),this.$emit("preview",e)},handleDownload:function(e){var t=Object(N.k)(this).download;"function"==typeof t?t(e):e.url&&window.open(e.url)},handleClose:function(e){this.$emit("remove",e)}},render:function(){var e,t=this,n=arguments[0],r=Object(N.l)(this),a=r.prefixCls,s=r.items,c=void 0===s?[]:s,u=r.listType,h=r.showPreviewIcon,f=r.showRemoveIcon,d=r.showDownloadIcon,p=r.locale,g=r.progressAttr,m=(0,this.configProvider.getPrefixCls)("upload",a),v=c.map((function(e){var r,a,s=void 0,c=n(We.a,{attrs:{type:"uploading"===e.status?"loading":"paper-clip"}});if("picture"===u||"picture-card"===u)if("picture-card"===u&&"uploading"===e.status)c=n("div",{class:m+"-list-item-uploading-text"},[p.uploading]);else if(e.thumbUrl||e.url){var v=function(e){if(tv(e.type))return!0;var t=e.thumbUrl||e.url,n=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n}(e)?n("img",{attrs:{src:e.thumbUrl||e.url,alt:e.name},class:m+"-list-item-image"}):n(We.a,{attrs:{type:"file",theme:"twoTone"},class:m+"-list-item-icon"});c=n("a",{class:m+"-list-item-thumbnail",on:{click:function(n){return t.handlePreview(e,n)}},attrs:{href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer"}},[v])}else c=n(We.a,{class:m+"-list-item-thumbnail",attrs:{type:"picture",theme:"twoTone"}});if("uploading"===e.status){var y={props:Q()({},g,{type:"line",percent:e.percent})},A="percent"in e?n(qh,y):null;
// show loading icon if upload progress listener is disabled
s=n("div",{class:m+"-list-item-progress",key:"progress"},[A])}var b=l()((r={},o()(r,m+"-list-item",!0),o()(r,m+"-list-item-"+e.status,!0),o()(r,m+"-list-item-list-type-"+u,!0),r)),w="string"==typeof e.linkProps?JSON.parse(e.linkProps):e.linkProps,x=f?n(We.a,{attrs:{type:"delete",title:p.removeFile},on:{click:function(){return t.handleClose(e)}}}):null,C=d&&"done"===e.status?n(We.a,{attrs:{type:"download",title:p.downloadFile},on:{click:function(){return t.handleDownload(e)}}}):null,_="picture-card"!==u&&n("span",{key:"download-delete",class:m+"-list-item-card-actions "+("picture"===u?"picture":"")},[C&&n("a",{attrs:{title:p.downloadFile}},[C]),x&&n("a",{attrs:{title:p.removeFile}},[x])]),I=l()((a={},o()(a,m+"-list-item-name",!0),o()(a,m+"-list-item-name-icon-count-"+[C,x].filter((function(e){return e})).length,!0),a)),E=e.url?[n("a",i()([{attrs:{target:"_blank",rel:"noopener noreferrer",title:e.name},class:I},w,{attrs:{href:e.url},on:{click:function(n){return t.handlePreview(e,n)}}}]),[e.name]),_]:[n("span",{key:"view",class:m+"-list-item-name",on:{click:function(n){return t.handlePreview(e,n)}},attrs:{title:e.name}},[e.name]),_],k=e.url||e.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},S=h?n("a",{attrs:{href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer",title:p.previewFile},style:k,on:{click:function(n){return t.handlePreview(e,n)}}},[n(We.a,{attrs:{type:"eye-o"}})]):null,B="picture-card"===u&&"uploading"!==e.status&&n("span",{class:m+"-list-item-actions"},[S,"done"===e.status&&C,x]),M=void 0;M=e.response&&"string"==typeof e.response?e.response:e.error&&e.error.statusText||p.uploadError;var T=n("span",[c,E]),O=Object(se.a)("fade"),D=n("div",{class:b,key:e.uid},[n("div",{class:m+"-list-item-info"},[T]),B,n("transition",O,[s])]),P=l()(o()({},m+"-list-picture-card-container","picture-card"===u));return n("div",{key:e.uid,class:P},["error"===e.status?n(gh.a,{attrs:{title:M}},[D]):n("span",[D])])})),y=l()((e={},o()(e,m+"-list",!0),o()(e,m+"-list-"+u,!0),e)),A="picture-card"===u?"animate-inline":"animate",b=Object(se.a)(m+"-"+A);return n("transition-group",i()([b,{attrs:{tag:"div"},class:y}]),[v])}},iv={name:"AUpload",mixins:[d.a],inheritAttrs:!1,Dragger:Xm,props:Object(N.t)($m,{type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/upload/utils.js
function(){return!0},showUploadList:!0,listType:"text",// or pictrue
disabled:!1,supportServerRender:!0}),inject:{configProvider:{default:function(){return A.a}}},
// recentUploadStatus: boolean | PromiseLike<any>;
data:function(){return this.progressTimer=null,{sFileList:this.fileList||this.defaultFileList||[],dragState:"drop"}},watch:{fileList:function(e){this.sFileList=e||[]}},beforeDestroy:function(){this.clearProgressTimer()},methods:{onStart:function(e){var t=Zm(e);t.status="uploading";var n=this.sFileList.concat(),r=Em()(n,(function(e){return e.uid===t.uid}));-1===r?n.push(t):n[r]=t,this.onChange({file:t,fileList:n}),
// fix ie progress
window.File&&!Object({NODE_ENV:"production",VUE_APP_API_BASE_URL:"http://localhost:8081",VUE_APP_NAME:"Loading",VUE_APP_PERMISSIONS_KEY:"admin.permissions",VUE_APP_PUBLIC_PATH:"",VUE_APP_ROLES_KEY:"admin.roles",VUE_APP_ROUTES_KEY:"admin.routes",VUE_APP_SETTING_KEY:"admin.setting",VUE_APP_TBAS_KEY:"admin.tabs",VUE_APP_TBAS_TITLES_KEY:"admin.tabs.titles",VUE_APP_USER_KEY:"admin.user",BASE_URL:""}).TEST_IE||this.autoUpdateProgress(0,t)},onSuccess:function(e,t,n){this.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){
/* do nothing */}var r=this.sFileList,i=ev(t,r);
// removed
i&&(i.status="done",i.response=e,i.xhr=n,this.onChange({file:Q()({},i),fileList:r}))},onProgress:function(e,t){var n=ev(t,this.sFileList);
// removed
n&&(n.percent=e.percent,this.onChange({event:e,file:Q()({},n),fileList:this.sFileList}))},onError:function(e,t,n){this.clearProgressTimer();var r=this.sFileList,i=ev(n,r);
// removed
i&&(i.error=e,i.response=t,i.status="error",this.onChange({file:Q()({},i),fileList:r}))},onReject:function(e){this.$emit("reject",e)},handleRemove:function(e){var t=this,n=this.remove,r=this.$data.sFileList;Promise.resolve("function"==typeof n?n(e):n).then((function(n){
// Prevent removing file
if(!1!==n){var i=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}(e,r);i&&(e.status="removed",// eslint-disable-line
t.upload&&t.upload.abort(e),t.onChange({file:e,fileList:i}))}}))},handleManualRemove:function(e){this.$refs.uploadRef&&this.$refs.uploadRef.abort(e),this.handleRemove(e)},onChange:function(e){Object(N.s)(this,"fileList")||this.setState({sFileList:e.fileList}),this.$emit("change",e)},onFileDrop:function(e){this.setState({dragState:e.type})},reBeforeUpload:function(e,t){var n=this.$props.beforeUpload,r=this.$data.sFileList;if(!n)return!0;var i=n(e,t);return!1===i?(this.onChange({file:e,fileList:_m()(r.concat(t.map(Zm)),(function(e){return e.uid}))}),!1):!i||!i.then||i},clearProgressTimer:function(){clearInterval(this.progressTimer)},autoUpdateProgress:function(e,t){var n,r=this,i=(n=.1,function(e){var t=e;return t>=.98||(t+=n,(n-=.01)<.001&&(n=.001)),t}),a=0;this.clearProgressTimer(),this.progressTimer=setInterval((function(){a=i(a),r.onProgress({percent:100*a},t)}),200)},renderUploadList:function(e){var t=this.$createElement,n=Object(N.l)(this),r=n.showUploadList,i=void 0===r?{}:r,a=n.listType,o=n.previewFile,s=n.disabled,c=n.locale,l=i.showRemoveIcon,u=i.showPreviewIcon,h=i.showDownloadIcon,f={props:{listType:a,items:this.$data.sFileList,previewFile:o,showRemoveIcon:!s&&l,showPreviewIcon:u,showDownloadIcon:h,locale:Q()({},e,c)},on:Q()({remove:this.handleManualRemove},Sm()(Object(N.k)(this),["download","preview"]))};return t(rv,f)}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,a=n.showUploadList,s=n.listType,c=n.type,u=n.disabled,h=this.$data,f=h.sFileList,d=h.dragState,p=(0,this.configProvider.getPrefixCls)("upload",r),g={props:Q()({},this.$props,{prefixCls:p,beforeUpload:this.reBeforeUpload}),on:{start:this.onStart,error:this.onError,progress:this.onProgress,success:this.onSuccess,reject:this.onReject},ref:"uploadRef",attrs:Q()({},this.$attrs)},m=this.$slots.default;
// Remove id to avoid open by label when trigger is hidden
// https://github.com/ant-design/ant-design/issues/14298
m&&!u||(delete g.props.id,delete g.attrs.id);var v,y=a?t(vr.a,{attrs:{componentName:"Upload",defaultLocale:vh.a.Upload},scopedSlots:{default:this.renderUploadList}}):null;if("drag"===c)return t("span",[t("div",{class:l()(p,(v={},o()(v,p+"-drag",!0),o()(v,p+"-drag-uploading",f.some((function(e){return"uploading"===e.status}))),o()(v,p+"-drag-hover","dragover"===d),o()(v,p+"-disabled",u),v)),on:{drop:this.onFileDrop,dragover:this.onFileDrop,dragleave:this.onFileDrop}},[t(Wm,i()([g,{class:p+"-btn"}]),[t("div",{class:p+"-drag-container"},[m])])]),y]);var A=t("div",{class:l()(p,(e={},o()(e,p+"-select",!0),o()(e,p+"-select-"+s,!0),o()(e,p+"-disabled",u),e)),style:m?void 0:{display:"none"}},[t(Wm,g,[m])]);return"picture-card"===s?t("span",{class:p+"-picture-card-wrapper"},[y,A]):t("span",[A,y])}};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/upload/Upload.js
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/upload/index.js
iv.Dragger=Xm,
/* istanbul ignore next */
iv.install=function(e){e.use(b.a),e.component(iv.name,iv),e.component(Xm.name,Xm)};
/* harmony default export */var av=iv,ov=n("1552").version,sv={width:s.a.any,height:s.a.any,defaultOpen:s.a.bool,firstEnter:s.a.bool,open:s.a.bool,prefixCls:s.a.string,placement:s.a.string,level:s.a.oneOfType([s.a.string,s.a.array]),levelMove:s.a.oneOfType([s.a.number,s.a.func,s.a.array]),ease:s.a.string,duration:s.a.string,handler:s.a.any,showMask:s.a.bool,maskStyle:s.a.object,className:s.a.string,wrapStyle:s.a.object,maskClosable:s.a.bool,afterVisibleChange:s.a.func,keyboard:s.a.bool},cv=Q()({},sv,{wrapperClassName:s.a.string,forceRender:s.a.bool,getContainer:s.a.oneOfType([s.a.string,s.a.func,s.a.object,s.a.bool])});
// EXTERNAL MODULE: ./node_modules/ant-design-vue/package.json
Q()({},sv,{getContainer:s.a.func,getOpenCount:s.a.func,switchScrollingEffect:s.a.func});var lv={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},uv=Object.keys(lv).filter((function(e){if("undefined"==typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],hv=lv[uv];function fv(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)}function dv(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on"+t,n)}var pv=function(e){return!isNaN(parseFloat(e))&&isFinite(e);// eslint-disable-line
};"undefined"!=typeof window&&window.document&&window.document.createElement;
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-drawer/src/Drawer.js
function gv(){}var mv={},vv=!("undefined"!=typeof window&&window.document&&window.document.createElement);oe.default.use(he.a,{name:"ant-ref"});var yv={mixins:[d.a],props:Object(N.t)(cv,{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",firstEnter:!1,// 记录首次进入.
showMask:!0,handler:!0,maskStyle:{},wrapperClassName:"",className:""}),data:function(){this.levelDom=[],this.contentDom=null,this.maskDom=null,this.handlerdom=null,this.mousePos=null,this.sFirstEnter=this.firstEnter,this.timeout=null,this.children=null,this.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16);var e=void 0!==this.open?this.open:!!this.defaultOpen;return mv[this.drawerId]=e,this.orignalOpen=this.open,this.preProps=Q()({},this.$props),{sOpen:e}},mounted:function(){var e=this;this.$nextTick((function(){if(!vv){var t=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),e.passive=!!t&&{passive:!1}}var n=e.getOpen();(e.handler||n||e.sFirstEnter)&&(e.getDefault(e.$props),n&&(e.isOpenChange=!0),e.$forceUpdate())}))},watch:{open:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){void 0!==e&&e!==this.preProps.open&&(this.isOpenChange=!0,
// 没渲染 dom 时，获取默认数据;
this.container||this.getDefault(this.$props),this.setState({sOpen:open})),this.preProps.open=e})),placement:function(e){e!==this.preProps.placement&&(
// test 的 bug, 有动画过场，删除 dom
this.contentDom=null),this.preProps.placement=e},level:function(e){this.preProps.level!==e&&this.getParentAndLevelDom(this.$props),this.preProps.level=e}},updated:function(){var e=this;this.$nextTick((function(){
// dom 没渲染时，重走一遍。
!e.sFirstEnter&&e.container&&(e.$forceUpdate(),e.sFirstEnter=!0)}))},beforeDestroy:function(){delete mv[this.drawerId],delete this.isOpenChange,this.container&&(this.sOpen&&this.setLevelDomTransform(!1,!0),document.body.style.overflow=""),this.sFirstEnter=!1,clearTimeout(this.timeout)},methods:{onKeyDown:function(e){e.keyCode===Z.a.ESC&&(e.stopPropagation(),this.$emit("close",e))},onMaskTouchEnd:function(e){this.$emit("close",e),this.onTouchEnd(e,!0)},onIconTouchEnd:function(e){this.$emit("handleClick",e),this.onTouchEnd(e)},onTouchEnd:function(e,t){if(void 0===this.open){var n=t||this.sOpen;this.isOpenChange=!0,this.setState({sOpen:!n})}},onWrapperTransitionEnd:function(e){if(e.target===this.contentWrapper&&e.propertyName.match(/transform$/)){var t=this.getOpen();this.dom.style.transition="",!t&&this.getCurrentDrawerSome()&&(document.body.style.overflowX="",this.maskDom&&(this.maskDom.style.left="",this.maskDom.style.width="")),this.afterVisibleChange&&this.afterVisibleChange(!!t)}},getDefault:function(e){this.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(this.container=this.defaultGetContainer())},getCurrentDrawerSome:function(){return!Object.keys(mv).some((function(e){return mv[e]}))},getSelfContainer:function(){return this.container},getParentAndLevelDom:function(e){var t=this;if(!vv){var n,r=e.level,i=e.getContainer;if(this.levelDom=[],i){if("string"==typeof i){var a=document.querySelectorAll(i)[0];this.parent=a}"function"==typeof i&&(this.parent=i()),"object"===(void 0===i?"undefined":Y()(i))&&i instanceof window.HTMLElement&&(this.parent=i)}if(!i&&this.container&&(this.parent=this.container.parentNode),"all"===r)Array.prototype.slice.call(this.parent.children).forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)}));else r&&(n=r,Array.isArray(n)?n:[n]).forEach((function(e){document.querySelectorAll(e).forEach((function(e){t.levelDom.push(e)}))}))}},setLevelDomTransform:function(e,t,n,r){var i=this,a=this.$props,o=a.placement,s=a.levelMove,c=a.duration,l=a.ease,u=a.getContainer;if(!vv&&(this.levelDom.forEach((function(a){if(i.isOpenChange||t){
/* eslint no-param-reassign: "error" */
a.style.transition="transform "+c+" "+l,fv(a,hv,i.trnasitionEnd);var u=e?r:0;if(s){var h=(g={target:a,open:e},m=void 0,m="function"==typeof(p=s)?p(g):p,Array.isArray(m)?2===m.length?m:[m[0],m[1]]:[m]);u=e?h[0]:h[1]||0}var f="number"==typeof u?u+"px":u,d="left"===o||"top"===o?f:"-"+f;a.style.transform=u?n+"("+d+")":"",a.style.msTransform=u?n+"("+d+")":""}var p,g,m})),"body"===u)){var h=["touchstart"],f=[document.body,this.maskDom,this.handlerdom,this.contentDom],d=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Eu(1):0,p="width "+c+" "+l,g="transform "+c+" "+l;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",d){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+d+"px)",this.dom.style.transition="none",o){case"right":this.dom.style.transform="translateX(-"+d+"px)",this.dom.style.msTransform="translateX(-"+d+"px)";break;case"top":case"bottom":this.dom.style.width="calc(100% - "+d+"px)",this.dom.style.transform="translateZ(0)"}clearTimeout(this.timeout),this.timeout=setTimeout((function(){i.dom.style.transition=g+","+p,i.dom.style.width="",i.dom.style.transform="",i.dom.style.msTransform=""}))}
// 手机禁滚
f.forEach((function(e,t){e&&fv(e,h[t]||"touchmove",t?i.removeMoveHandler:i.removeStartHandler,i.passive)}))}else if(this.getCurrentDrawerSome()){if(document.body.style.overflow="",(this.isOpenChange||t)&&d){document.body.style.position="",document.body.style.width="",uv&&(document.body.style.overflowX="hidden"),this.dom.style.transition="none";var m=void 0;switch(o){case"right":this.dom.style.transform="translateX("+d+"px)",this.dom.style.msTransform="translateX("+d+"px)",this.dom.style.width="100%",p="width 0s "+l+" "+c,this.maskDom&&(this.maskDom.style.left="-"+d+"px",this.maskDom.style.width="calc(100% + "+d+"px)");break;case"top":case"bottom":this.dom.style.width="calc(100% + "+d+"px)",this.dom.style.height="100%",this.dom.style.transform="translateZ(0)",m="height 0s "+l+" "+c}clearTimeout(this.timeout),this.timeout=setTimeout((function(){i.dom.style.transition=g+","+(m?m+",":"")+p,i.dom.style.transform="",i.dom.style.msTransform="",i.dom.style.width="",i.dom.style.height=""}))}f.forEach((function(e,t){e&&dv(e,h[t]||"touchmove",t?i.removeMoveHandler:i.removeStartHandler,i.passive)}))}}var v=Object(N.k)(this).change;v&&this.isOpenChange&&this.sFirstEnter&&(v(e),this.isOpenChange=!1)},getChildToRender:function(e){var t,n=this,r=this.$createElement,a=this.$props,s=a.className,c=a.prefixCls,u=a.placement,h=a.handler,f=a.showMask,d=a.maskStyle,p=a.width,g=a.height,m=a.wrapStyle,v=a.keyboard,y=a.maskClosable,A=this.$slots.default,b=l()(c,(t={},o()(t,c+"-"+u,!0),o()(t,c+"-open",e),o()(t,s,!!s),o()(t,"no-mask",!f),t)),w=this.isOpenChange,x="left"===u||"right"===u,C="translate"+(x?"X":"Y"),_=e?"":C+"("+("left"===u||"top"===u?"-100%":"100%")+")";if(void 0===w||w){var I=this.contentDom?this.contentDom.getBoundingClientRect()[x?"width":"height"]:0,E=(x?p:g)||I;this.setLevelDomTransform(e,!1,C,E)}var k=void 0;if(!1!==h){var S=r("div",{class:"drawer-handle"},[r("i",{class:"drawer-handle-icon"})]),B=this.handler,M=B&&B[0]||S,T=Object(N.i)(M).click;k=Object(ce.a)(M,{on:{click:function(e){T&&T(),n.onIconTouchEnd(e)}},directives:[{name:"ant-ref",value:function(e){n.handlerdom=e}}]})}var O={class:b,directives:[{name:"ant-ref",value:function(e){n.dom=e}}],on:{transitionend:this.onWrapperTransitionEnd,keydown:e&&v?this.onKeyDown:gv},style:m},D=[{name:"ant-ref",value:function(e){n.maskDom=e}}],P=[{name:"ant-ref",value:function(e){n.contentWrapper=e}}],L=[{name:"ant-ref",value:function(e){n.contentDom=e}}];return r("div",i()([O,{attrs:{tabIndex:-1}}]),[f&&r("div",i()([{key:e,class:c+"-mask",on:{click:y?this.onMaskTouchEnd:gv},style:d},{directives:D}])),r("div",i()([{class:c+"-content-wrapper",style:{transform:_,msTransform:_,width:pv(p)?p+"px":p,height:pv(g)?g+"px":g}},{directives:P}]),[r("div",i()([{class:c+"-content"},{directives:L},{on:{touchstart:e?this.removeStartHandler:gv,touchmove:e?this.removeMoveHandler:gv}}]),[A]),k])])},getOpen:function(){return void 0!==this.open?this.open:this.sOpen},getTouchParentScroll:function(e,t,n,r){if(!t||t===document)return!1;
// root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动；
if(t===e.parentNode)return!0;var i=Math.max(Math.abs(n),Math.abs(r))===Math.abs(r),a=Math.max(Math.abs(n),Math.abs(r))===Math.abs(n),o=t.scrollHeight-t.clientHeight,s=t.scrollWidth-t.clientWidth,c=t.scrollTop,l=t.scrollLeft;t.scrollTo&&t.scrollTo(t.scrollLeft+1,t.scrollTop+1);var u=t.scrollTop,h=t.scrollLeft;return t.scrollTo&&t.scrollTo(t.scrollLeft-1,t.scrollTop-1),!((!i||o&&u-c&&(!o||!(t.scrollTop>=o&&r<0||t.scrollTop<=0&&r>0)))&&(!a||s&&h-l&&(!s||!(t.scrollLeft>=s&&n<0||t.scrollLeft<=0&&n>0))))&&this.getTouchParentScroll(e,t.parentNode,n,r)},removeStartHandler:function(e){e.touches.length>1||(this.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},removeMoveHandler:function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,n=e.changedTouches[0].clientX-this.startPos.x,r=e.changedTouches[0].clientY-this.startPos.y;(t===this.maskDom||t===this.handlerdom||t===this.contentDom&&this.getTouchParentScroll(t,e.target,n,r))&&e.preventDefault()}},trnasitionEnd:function(e){dv(e.target,hv,this.trnasitionEnd),e.target.style.transition=""},defaultGetContainer:function(){if(vv)return null;var e=document.createElement("div");return this.parent.appendChild(e),this.wrapperClassName&&(e.className=this.wrapperClassName),e}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getContainer,a=n.wrapperClassName,o=n.handler,s=n.forceRender,c=this.getOpen(),l=null;mv[this.drawerId]=c?this.container:c;var u=this.getChildToRender(!!this.sFirstEnter&&c);if(!r){var h=[{name:"ant-ref",value:function(t){e.container=t}}];return t("div",i()([{class:a},{directives:h}]),[u])}return this.container&&(c||this.sFirstEnter)?((!!o||s||c||this.dom)&&(l=t(Ru,{attrs:{getContainer:this.getSelfContainer,children:u}})),l):null;
// 如果有 handler 为内置强制渲染；
}},Av=yv,bv={name:"ADrawer",props:{closable:s.a.bool.def(!0),destroyOnClose:s.a.bool,getContainer:s.a.any,maskClosable:s.a.bool.def(!0),mask:s.a.bool.def(!0),maskStyle:s.a.object,wrapStyle:s.a.object,bodyStyle:s.a.object,headerStyle:s.a.object,drawerStyle:s.a.object,title:s.a.any,visible:s.a.bool,width:s.a.oneOfType([s.a.string,s.a.number]).def(256),height:s.a.oneOfType([s.a.string,s.a.number]).def(256),zIndex:s.a.number,prefixCls:s.a.string,placement:s.a.oneOf(["top","right","bottom","left"]).def("right"),level:s.a.any.def(null),wrapClassName:s.a.string,// not use class like react, vue will add class to root dom
handle:s.a.any,afterVisibleChange:s.a.func,keyboard:s.a.bool.def(!0)},mixins:[d.a],data:function(){return this.destroyClose=!1,this.preVisible=this.$props.visible,{_push:!1}},inject:{parentDrawer:{default:function(){return null}},configProvider:{default:function(){return A.a}}},provide:function(){return{parentDrawer:this}},mounted:function(){this.visible&&this.parentDrawer&&this.parentDrawer.push()},updated:function(){var e=this;this.$nextTick((function(){e.preVisible!==e.visible&&e.parentDrawer&&(e.visible?e.parentDrawer.push():e.parentDrawer.pull()),e.preVisible=e.visible}))},beforeDestroy:function(){
// unmount drawer in child, clear push.
this.parentDrawer&&this.parentDrawer.pull()},methods:{close:function(e){this.$emit("close",e)},
// onMaskClick(e) {
//   if (!this.maskClosable) {
//     return;
//   }
//   this.close(e);
// },
push:function(){this.setState({_push:!0})},pull:function(){this.setState({_push:!1})},onDestroyTransitionEnd:function(){this.getDestroyOnClose()&&(this.visible||(this.destroyClose=!0,this.$forceUpdate()))},getDestroyOnClose:function(){return this.destroyOnClose&&!this.visible},
// get drawar push width or height
getPushTransform:function(e){return"left"===e||"right"===e?"translateX("+("left"===e?180:-180)+"px)":"top"===e||"bottom"===e?"translateY("+("top"===e?180:-180)+"px)":void 0},getRcDrawerStyle:function(){var e=this.$props,t=e.zIndex,n=e.placement,r=e.wrapStyle,i=this.$data._push;return Q()({zIndex:t,transform:i?this.getPushTransform(n):void 0},r)},renderHeader:function(e){var t=this.$createElement,n=this.$props,r=n.closable,i=n.headerStyle,a=Object(N.g)(this,"title");return a||r?t("div",{class:a?e+"-header":e+"-header-no-title",style:i},[a&&t("div",{class:e+"-title"},[a]),r?this.renderCloseIcon(e):null]):null},renderCloseIcon:function(e){var t=this.$createElement;return this.closable&&t("button",{key:"closer",on:{click:this.close},attrs:{"aria-label":"Close"},class:e+"-close"},[t(We.a,{attrs:{type:"close"}})])},
// render drawer body dom
renderBody:function(e){var t=this.$createElement;if(this.destroyClose&&!this.visible)return null;this.destroyClose=!1;var n=this.$props,r=n.bodyStyle,i=n.drawerStyle,a={};return this.getDestroyOnClose()&&(
// Increase the opacity transition, delete children after closing.
a.opacity=0,a.transition="opacity .3s"),t("div",{class:e+"-wrapper-body",style:Q()({},a,i),on:{transitionend:this.onDestroyTransitionEnd}},[this.renderHeader(e),t("div",{key:"body",class:e+"-body",style:r},[this.$slots.default])])}},render:function(){var e,t=arguments[0],n=Object(N.l)(this),r=n.prefixCls,i=n.width,a=n.height,s=n.visible,c=n.placement,h=n.wrapClassName,f=n.mask,d=X()(n,["prefixCls","width","height","visible","placement","wrapClassName","mask"]),p=f?"":"no-mask",g={};"left"===c||"right"===c?g.width="number"==typeof i?i+"px":i:g.height="number"==typeof a?a+"px":a;var m=Object(N.g)(this,"handle")||!1,v=(0,this.configProvider.getPrefixCls)("drawer",r),y={props:Q()({},Object(u.a)(d,["closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton"]),{handler:m},g,{prefixCls:v,open:s,showMask:f,placement:c,className:l()((e={},o()(e,h,!!h),o()(e,p,!!p),e)),wrapStyle:this.getRcDrawerStyle()}),on:Q()({},Object(N.k)(this))};return t(Av,y,[this.renderBody(v)])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(bv.name,bv)}},wv=bv,xv={prefixCls:s.a.string,size:s.a.oneOfType([s.a.oneOf(["large","small","default"]),s.a.number]),shape:s.a.oneOf(["circle","square"])},Cv=s.a.shape(xv).loose,_v={props:Object(N.t)(xv,{size:"large"}),render:function(){var e,t,n=arguments[0],r=this.$props,i=r.prefixCls,a=r.size,s=r.shape,c=l()((e={},o()(e,i+"-lg","large"===a),o()(e,i+"-sm","small"===a),e)),u=l()((t={},o()(t,i+"-circle","circle"===s),o()(t,i+"-square","square"===s),t)),h="number"==typeof a?{width:a+"px",height:a+"px",lineHeight:a+"px"}:{};return n("span",{class:l()(i,c,u),style:h})}},Iv=_v,Ev={prefixCls:s.a.string,width:s.a.oneOfType([s.a.number,s.a.string])},kv=s.a.shape(Ev),Sv={props:Ev,render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.width;return e("h3",{class:n,style:{width:"number"==typeof r?r+"px":r}})}},Bv=Sv,Mv=s.a.oneOfType([s.a.number,s.a.string]),Tv={prefixCls:s.a.string,width:s.a.oneOfType([Mv,s.a.arrayOf(Mv)]),rows:s.a.number},Ov=s.a.shape(Tv),Dv={props:Tv,methods:{getWidth:function(e){var t=this.width,n=this.rows,r=void 0===n?2:n;return Array.isArray(t)?t[e]:
// last paragraph
r-1===e?t:void 0}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.prefixCls,i=n.rows,a=[].concat(g()(Array(i))).map((function(n,r){var i=e.getWidth(r);return t("li",{key:r,style:{width:"number"==typeof i?i+"px":i}})}));return t("ul",{class:r},[a])}},Pv=Dv,Lv={active:s.a.bool,loading:s.a.bool,prefixCls:s.a.string,children:s.a.any,avatar:s.a.oneOfType([s.a.string,Cv,s.a.bool]),title:s.a.oneOfType([s.a.bool,s.a.string,kv]),paragraph:s.a.oneOfType([s.a.bool,s.a.string,Ov])};
/* harmony default export */function Qv(e){return e&&"object"===(void 0===e?"undefined":Y()(e))?e:{}}function Rv(e,t){return e&&!t?{shape:"square"}:{shape:"circle"}}function jv(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Nv(e,t){var n={};
// Width
return e&&t||(n.width="61%"),
// Rows
n.rows=!e&&t?3:2,n}var Fv={name:"ASkeleton",props:Object(N.t)(Lv,{avatar:!1,title:!0,paragraph:!0}),inject:{configProvider:{default:function(){return A.a}}},render:function(){var e=arguments[0],t=this.$props,n=t.prefixCls,r=t.loading,i=t.avatar,a=t.title,s=t.paragraph,c=t.active,u=(0,this.configProvider.getPrefixCls)("skeleton",n);if(r||!Object(N.s)(this,"loading")){var h,f=!!i||""===i,d=!!a,p=!!s,g=void 0;if(f){var m={props:Q()({prefixCls:u+"-avatar"},Rv(d,p),Qv(i))};g=e("div",{class:u+"-header"},[e(Iv,m)])}var v=void 0;if(d||p){
// Title
var y=void 0;if(d){var A={props:Q()({prefixCls:u+"-title"},jv(f,p),Qv(a))};y=e(Bv,A)}
// Paragraph
var b=void 0;if(p){var w={props:Q()({prefixCls:u+"-paragraph"},Nv(f,d),Qv(s))};b=e(Pv,w)}v=e("div",{class:u+"-content"},[y,b])}return e("div",{class:l()(u,(h={},o()(h,u+"-with-avatar",f),o()(h,u+"-active",c),h))},[g,v])}var x=this.$slots.default;return x&&1===x.length?x[0]:e("span",[x])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Fv.name,Fv)}},zv=Fv,Hv={name:"AComment",props:{actions:s.a.array,
/** The element to display as the comment author. */
author:s.a.any,
/** The element to display as the comment avatar - generally an antd Avatar */
avatar:s.a.any,
/** The main content of the comment */
content:s.a.any,
/** Comment prefix defaults to '.ant-comment' */
prefixCls:s.a.string,
/** A datetime element containing the time to be displayed */
datetime:s.a.any},inject:{configProvider:{default:function(){return A.a}}},methods:{getAction:function(e){var t=this.$createElement;return e&&e.length?e.map((function(e,n){return t("li",{key:"action-"+n},[e])})):null},renderNested:function(e,t){return(0,this.$createElement)("div",{class:e+"-nested"},[t])}},render:function(){var e=arguments[0],t=this.$props.prefixCls,n=(0,this.configProvider.getPrefixCls)("comment",t),r=Object(N.g)(this,"actions"),a=Object(N.g)(this,"author"),o=Object(N.g)(this,"avatar"),s=Object(N.g)(this,"content"),c=Object(N.g)(this,"datetime"),l=e("div",{class:n+"-avatar"},["string"==typeof o?e("img",{attrs:{src:o,alt:"comment-avatar"}}):o]),u=r&&r.length?e("ul",{class:n+"-actions"},[this.getAction(r)]):null,h=e("div",{class:n+"-content-author"},[a&&e("span",{class:n+"-content-author-name"},[a]),c&&e("span",{class:n+"-content-author-time"},[c])]),f=e("div",{class:n+"-content"},[h,e("div",{class:n+"-content-detail"},[s]),u]),d=e("div",{class:n+"-inner"},[l,f]),p=this.$slots.default;return e("div",i()([{class:n},{on:Object(N.k)(this)}]),[d,p?this.renderNested(n,p):null])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(Hv.name,Hv)}},Uv=Hv,Gv=n("fc25"),Vv={functional:!0,render:function(){var e=arguments[0];return e("svg",{attrs:{width:"252",height:"294"}},[e("defs",[e("path",{attrs:{d:"M0 .387h251.772v251.772H0z"}})]),e("g",{attrs:{fill:"none",fillRule:"evenodd"}},[e("g",{attrs:{transform:"translate(0 .012)"}},[e("mask",{attrs:{fill:"#fff"}}),e("path",{attrs:{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"}})]),e("path",{attrs:{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}}),e("path",{attrs:{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}}),e("path",{attrs:{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}}),e("path",{attrs:{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}}),e("path",{attrs:{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}}),e("path",{attrs:{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}}),e("path",{attrs:{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}}),e("path",{attrs:{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}}),e("path",{attrs:{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}}),e("path",{attrs:{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}}),e("path",{attrs:{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}}),e("path",{attrs:{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}}),e("path",{attrs:{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}}),e("path",{attrs:{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}}),e("path",{attrs:{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}}),e("path",{attrs:{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}}),e("path",{attrs:{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}}),e("path",{attrs:{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}}),e("path",{attrs:{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}}),e("path",{attrs:{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}}),e("path",{attrs:{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}}),e("path",{attrs:{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}}),e("path",{attrs:{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}}),e("path",{attrs:{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}}),e("path",{attrs:{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}}),e("path",{attrs:{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}}),e("path",{attrs:{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}}),e("path",{attrs:{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}}),e("path",{attrs:{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}}),e("path",{attrs:{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}}),e("path",{attrs:{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}}),e("path",{attrs:{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}}),e("path",{attrs:{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}}),e("path",{attrs:{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}})])])}},Wv={functional:!0,render:function(){var e=arguments[0];return e("svg",{attrs:{width:"254",height:"294"}},[e("defs",[e("path",{attrs:{d:"M0 .335h253.49v253.49H0z"}}),e("path",{attrs:{d:"M0 293.665h253.49V.401H0z"}})]),e("g",{attrs:{fill:"none",fillRule:"evenodd"}},[e("g",{attrs:{transform:"translate(0 .067)"}},[e("mask",{attrs:{fill:"#fff"}}),e("path",{attrs:{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"}})]),e("path",{attrs:{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}}),e("path",{attrs:{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}}),e("path",{attrs:{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}}),e("path",{attrs:{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}}),e("path",{attrs:{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}}),e("path",{attrs:{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}}),e("path",{attrs:{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}}),e("path",{attrs:{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}}),e("path",{attrs:{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}}),e("path",{attrs:{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}}),e("path",{attrs:{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}}),e("path",{attrs:{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}}),e("path",{attrs:{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}}),e("path",{attrs:{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}}),e("path",{attrs:{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}}),e("path",{attrs:{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}}),e("path",{attrs:{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}}),e("path",{attrs:{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}}),e("path",{attrs:{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}}),e("path",{attrs:{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}}),e("path",{attrs:{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}}),e("path",{attrs:{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}}),e("path",{attrs:{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}}),e("path",{attrs:{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}}),e("path",{attrs:{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}}),e("mask",{attrs:{fill:"#fff"}}),e("path",{attrs:{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}}),e("path",{attrs:{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}}),e("path",{attrs:{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}}),e("path",{attrs:{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}}),e("path",{attrs:{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}}),e("path",{attrs:{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}}),e("path",{attrs:{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}}),e("path",{attrs:{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}}),e("path",{attrs:{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}}),e("path",{attrs:{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}}),e("path",{attrs:{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}})])])}},qv={functional:!0,render:function(){var e=arguments[0];return e("svg",{attrs:{width:"251",height:"294"}},[e("g",{attrs:{fill:"none",fillRule:"evenodd"}},[e("path",{attrs:{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}}),e("path",{attrs:{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}}),e("path",{attrs:{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}}),e("path",{attrs:{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}}),e("path",{attrs:{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}}),e("path",{attrs:{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}}),e("path",{attrs:{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}}),e("path",{attrs:{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}}),e("path",{attrs:{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}}),e("path",{attrs:{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}}),e("path",{attrs:{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}}),e("path",{attrs:{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}}),e("path",{attrs:{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}}),e("path",{attrs:{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}}),e("path",{attrs:{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}}),e("path",{attrs:{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}}),e("path",{attrs:{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}}),e("path",{attrs:{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}}),e("path",{attrs:{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}}),e("path",{attrs:{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}}),e("path",{attrs:{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}}),e("path",{attrs:{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}}),e("path",{attrs:{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}}),e("path",{attrs:{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}}),e("path",{attrs:{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}}),e("path",{attrs:{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}}),e("path",{attrs:{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}}),e("path",{attrs:{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}}),e("path",{attrs:{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}}),e("path",{attrs:{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}}),e("path",{attrs:{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}}),e("path",{attrs:{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}}),e("path",{attrs:{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}}),e("path",{attrs:{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}}),e("path",{attrs:{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}})])])}},Yv={success:"check-circle",error:"close-circle",info:"exclamation-circle",warning:"warning"},Kv={404:Vv,500:Wv,403:qv},$v=Object.keys(Kv),Jv={prefixCls:s.a.string,icon:s.a.any,status:s.a.oneOf(["success","error","info","warning","404","403","500"]).def("info"),title:s.a.any,subTitle:s.a.any,extra:s.a.any},Xv=function(e,t,n){var r=n.status,i=n.icon;if($v.includes(""+r))return e("div",{class:t+"-icon "+t+"-image"},[e(Kv[r])]);
// prop `icon` require slot or VNode
var a=Yv[r],o=i||e(We.a,{attrs:{type:a,theme:"filled"}});return e("div",{class:t+"-icon"},[o])},Zv=function(e,t,n){return n&&e("div",{class:t+"-extra"},[n])},ey={name:"AResult",props:Jv,inject:{configProvider:{default:function(){return A.a}}},render:function(e){var t=this.prefixCls,n=this.status,r=(0,this.configProvider.getPrefixCls)("result",t),i=Object(N.g)(this,"title"),a=Object(N.g)(this,"subTitle"),o=Object(N.g)(this,"icon"),s=Object(N.g)(this,"extra");return e("div",{class:r+" "+r+"-"+n},[Xv(e,r,{status:n,icon:o}),e("div",{class:r+"-title"},[i]),a&&e("div",{class:r+"-subtitle"},[a]),this.$slots.default&&e("div",{class:r+"-content"},[this.$slots.default]),Zv(e,r,s)])}};
/* add resource */
ey.PRESENTED_IMAGE_403=Kv[403],ey.PRESENTED_IMAGE_404=Kv[404],ey.PRESENTED_IMAGE_500=Kv[500],
/* istanbul ignore next */
ey.install=function(e){e.use(b.a),e.component(ey.name,ey)};
/* harmony default export */var ty=ey,ny={functional:!0,props:{child:s.a.any,bordered:s.a.bool,colon:s.a.bool,type:s.a.oneOf(["label","content"]),layout:s.a.oneOf(["horizontal","vertical"])},render:function(e,t){var n,r=t.props,i=r.child,a=r.bordered,s=r.colon,c=r.type,l=r.layout,u=Object(N.l)(i),h=u.prefixCls,f=u.span,d=void 0===f?1:f,p=t.data.key,g=Object(N.g)(i,"label"),m=Object(N.p)(i),v={attrs:{},class:[h+"-item-label",(n={},o()(n,h+"-item-colon",s),o()(n,h+"-item-no-label",!g),n)],key:p+"-label"};return"vertical"===l&&(v.attrs.colSpan=2*d-1),a?"label"===c?e("th",v,[g]):e("td",{class:h+"-item-content",key:p+"-content",attrs:{colSpan:2*d-1}},[m.default]):e("td",{attrs:{colSpan:d},class:h+"-item"},"vertical"===l?"content"===c?[e("span",{class:h+"-item-content",key:p+"-content"},[m.default])]:[e("span",{class:[h+"-item-label",o()({},h+"-item-colon",s)],key:p+"-label"},[g])]:[e("span",v,[g]),e("span",{class:h+"-item-content",key:p+"-content"},[m.default])])}},ry={prefixCls:s.a.string,label:s.a.any,span:s.a.number};
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/descriptions/Col.js
function iy(e){var t=e;return void 0===e?t=[]:Array.isArray(e)||(t=[e]),t}var ay={name:"ADescriptionsItem",props:Object(N.t)(ry,{span:1})},oy={prefixCls:s.a.string,bordered:s.a.bool,size:s.a.oneOf(["default","middle","small"]).def("default"),title:s.a.any,column:s.a.oneOfType([s.a.number,s.a.object]),layout:s.a.oneOf(["horizontal","vertical"]),colon:s.a.bool},sy={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},cy={name:"ADescriptions",Item:ay,mixins:[d.a],inject:{configProvider:{default:function(){return A.a}}},props:Object(N.t)(oy,{column:sy}),data:function(){return{screens:{},token:void 0}},methods:{getColumn:function(){var e=this.$props.column;if("object"===(void 0===e?"undefined":Y()(e)))for(var t=0;t<yi.length;t++){var n=yi[t];if(this.screens[n]&&void 0!==e[n])return e[n]||sy[n]}
// If the configuration is not an object, it is a number, return number
return"number"==typeof e?e:3;
// If it is an object, but no response is found, this happens only in the test.
// Maybe there are some strange environments
},renderRow:function(e,t,n,r,i,a){var o=n.prefixCls,s=this.$createElement,c=function(e,t,n){return s(ny,{attrs:{child:e,bordered:r,colon:a,type:t,layout:i},key:t+"-"+(e.key||n)})},l=[],u=[];return iy(e).forEach((function(e,t){l.push(c(e,"label",t)),"vertical"===i?u.push(c(e,"content",t)):r&&l.push(c(e,"content",t))})),"vertical"===i?[s("tr",{class:o+"-row",key:"label-"+t},[l]),s("tr",{class:o+"-row",key:"content-"+t},[u])]:s("tr",{class:o+"-row",key:t},[l])}},mounted:function(){var e=this,t=this.$props.column;this.token=Ci.subscribe((function(n){"object"===(void 0===t?"undefined":Y()(t))&&e.setState({screens:n})}))},beforeDestroy:function(){Ci.unsubscribe(this.token)},render:function(){var e,t=this,n=arguments[0],r=this.$props,i=r.prefixCls,a=r.size,s=r.bordered,c=void 0!==s&&s,l=r.layout,u=void 0===l?"horizontal":l,h=r.colon,f=void 0===h||h,d=Object(N.g)(this,"title")||null,p=(0,this.configProvider.getPrefixCls)("descriptions",i),g=this.getColumn(),m=function(e,t){var n=[],r=null,i=void 0,a=iy(e);return a.forEach((function(e,o){var s=Object(N.l)(e),c=e;r||(i=t,r=[],n.push(r));
// Always set last span to align the end of Descriptions
var l=!0;o===a.length-1&&(l=!s.span||s.span===i,c=Object(ce.a)(c,{props:{span:i}}));
// Calculate left fill span
var u=s.span,h=void 0===u?1:u;r.push(c),(i-=h)<=0&&(r=null,Object(w.a)(0===i&&l,"Descriptions","Sum of column `span` in a line exceeds `column` of Descriptions."))})),n}(iy(this.$slots.default).map((function(e){return Object(N.w)(e)?Object(ce.a)(e,{props:{prefixCls:p}}):null})).filter((function(e){return e})),g);return n("div",{class:[p,(e={},o()(e,p+"-"+a,"default"!==a),o()(e,p+"-bordered",!!c),e)]},[d&&n("div",{class:p+"-title"},[d]),n("div",{class:p+"-view"},[n("table",[n("tbody",[m.map((function(e,n){return t.renderRow(e,n,{prefixCls:p},c,u,f)}))])])])])},install:function(e){e.use(b.a),e.component(cy.name,cy),e.component(cy.Item.name,cy.Item)}},ly=cy,uy={backIcon:s.a.any,prefixCls:s.a.string,title:s.a.any,subTitle:s.a.any,breadcrumb:s.a.object,tags:s.a.any,footer:s.a.any,extra:s.a.any,avatar:s.a.object,ghost:s.a.bool},hy=function(e,t,n){var r=n.avatar,i=Object(N.g)(n,"title"),a=Object(N.g)(n,"subTitle"),o=Object(N.g)(n,"tags"),s=Object(N.g)(n,"extra"),c=void 0!==Object(N.g)(n,"backIcon")?Object(N.g)(n,"backIcon"):e(We.a,{attrs:{type:"arrow-left"}}),l=n.$listeners.back,u=t+"-heading";if(i||a||o||s){var h=function(e,t,n,r){
// eslint-disable-next-line no-unused-vars
var i=e.$createElement;return n&&r?i(vr.a,{attrs:{componentName:"PageHeader"}},[function(r){var a=r.back;return i("div",{class:t+"-back"},[i(bp,{on:{click:function(t){e.$emit("back",t)}},class:t+"-back-button",attrs:{"aria-label":a}},[n])])}]):null}(n,t,c,l);return e("div",{class:u},[h,r&&e(qt,r),i&&e("span",{class:u+"-title"},[i]),a&&e("span",{class:u+"-sub-title"},[a]),o&&e("span",{class:u+"-tags"},[o]),s&&e("span",{class:u+"-extra"},[s])])}return null},fy=function(e,t,n){return n?e("div",{class:t+"-footer"},[n]):null},dy=function(e,t,n){return e("div",{class:t+"-content"},[n])},py={name:"APageHeader",props:uy,inject:{configProvider:{default:function(){return A.a}}},render:function(e){var t=this.configProvider,n=t.getPrefixCls,r=t.pageHeader,i=Object(N.l)(this),a=i.prefixCls,s=i.breadcrumb,c=Object(N.g)(this,"footer"),l=this.$slots.default,u=!0;
// Use `ghost` from `props` or from `ConfigProvider` instead.
"ghost"in i?u=i.ghost:r&&"ghost"in r&&(u=r.ghost);var h=n("page-header",a),f=s&&s.props&&s.props.routes?function(e,t){return e(En,t)}(e,s):null;return e("div",{class:[h,o()({"has-breadcrumb":f,"has-footer":c},h+"-ghost",u)]},[f,hy(e,h,this),l&&dy(e,h,l),fy(e,h,c)])},
/* istanbul ignore next */
install:function(e){e.use(b.a),e.component(py.name,py)}},gy=py,my=s.a.oneOfType([s.a.number,s.a.oneOf(["small","middle","large"])]),vy={small:8,middle:16,large:24},yy={prefixCls:s.a.string,size:my,direction:s.a.oneOf(["horizontal","vertical"]),align:s.a.oneOf(["start","end","center","baseline"])},Ay={functional:!0,name:"ASpace",props:Object(N.t)(yy,{size:"small",direction:"horizontal"}),inject:{configProvider:{default:function(){return A.a}}},render:function(e,t){var n,r=t.prefixCls,a=t.injections.configProvider,s=t.children,c=t.props,l=c.align,u=c.size,h=c.direction,f=(0,a.getPrefixCls)("space",r),d=Object(N.c)(s),p=d.length;if(0===p)return null;var g=void 0===l&&"horizontal"===h?"center":l,m=[(n={},o()(n,f,!0),o()(n,f+"-"+h,!0),o()(n,f+"-align-"+g,g),n)];t.data.class&&m.push(t.data.class);var v=f+"-item";// directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
return e("div",i()([t.data,{class:m}]),[d.map((function(t,n){return e("div",{class:v,key:v+"-"+n,style:n===p-1?{}:o()({},"vertical"===h?"marginBottom":"marginRight","string"==typeof u?vy[u]+"px":u+"px")},[t])}))])},
/* istanbul ignore next */
install:function(e){e.component(Ay.name,Ay)}},by=Ay,wy=[b.a,P,W,Ut,Vt,qt,Jt,sn,En,Tt,Or,ji,Xi,na,xa,ka,Di,Os,Ps,Ls,Sc,jc,We.a,Qt,Xc,dl,Nl,Fl.b,xn.a,Cu,rh,Tl,wh,_h,qh,Yh,nf,ki,et,Mf,yl,Uf,Jf,nd,Dp,ag,Ag,vm,mi,gs,Yo,xm,gh.a,av,wv,zv,Uv,
// ColorPicker,
A.b,Gv.a,ty,ly,gy,by],xy=function(e){wy.map((function(t){e.use(t)})),e.prototype.$message=ru,e.prototype.$notification=ph,e.prototype.$info=rh.info,e.prototype.$success=rh.success,e.prototype.$error=rh.error,e.prototype.$warning=rh.warning,e.prototype.$confirm=rh.confirm,e.prototype.$destroyAll=rh.destroyAll};
/* istanbul ignore if */
"undefined"!=typeof window&&window.Vue&&xy(window.Vue)
/* harmony default export */;t.a={version:ov,install:xy};
/***/},
/***/f279:
/***/function(e,t,n){"use strict";
/* unused harmony export Region */
/* harmony export (binding) */n.d(t,"b",(function(){return d})),
/* harmony export (binding) */n.d(t,"a",(function(){return p})),
/* harmony export (binding) */n.d(t,"c",(function(){return g})),
/* harmony export (binding) */n.d(t,"d",(function(){return m}));
/* harmony import */var r=n("7fae"),i=n("9850"),a=n("401b"),o=n("0655"),s=n("1687"),c=n("6d8b"),l=[];
/* harmony import */function u(e,t){for(var n=0;n<e.length;n++)a.applyTransform(e[n],e[n],t)}function h(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(
// projection may return null point.
o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(a.min(t,t,o),a.max(n,n,o))}}var f=/** @class */function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},
/**
   * Get center point in data unit. That is,
   * for GeoJSONRegion, the unit is lat/lng,
   * for GeoSVGRegion, the unit is SVG local coord.
   */
e.prototype.getCenter=function(){var e=this._center;return e||(
// In most cases there are no need to calculate this center.
// So calculate only when called.
e=this._center=this.calcCenter()),e},e}(),d=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},p=function(e){this.type="linestring",this.points=e},g=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return Object(r.a)(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],a=i.exterior,o=a&&a.length;o>n&&(e=i,n=o)}if(e)return function(e){
// Polygon should been closed.
for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);
// from bounding rect by default.
var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;
// Always recalculate if using projection.
if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],a=this.geometries;return Object(c.each)(a,(function(t){"polygon"===t.type?
// Doesn't consider hole
h(t.exterior,n,r,e):Object(c.each)(t.points,(function(t){h(t,n,r,e)}))})),
// Normalie invalid bounding.
isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new i.a(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var a=n[r];
// Only support polygon.
if("polygon"===a.type){var s=a.exterior,c=a.interiors;if(o.a(s,e[0],e[1])){
// Not in the region if point is in the hole.
for(var l=0;l<(c?c.length:0);l++)if(o.a(c[l],e[0],e[1]))continue e;return!0}}}return!1},
/**
   * Transform the raw coords to target bounding.
   * @param x
   * @param y
   * @param width
   * @param height
   */
t.prototype.transformTo=function(e,t,n,r){var a=this.getBoundingRect(),o=a.width/a.height;n?r||(r=n/o):n=o*r;for(var s=new i.a(e,t,n,r),l=a.calculateTransform(s),h=this.geometries,f=0;f<h.length;f++){var d=h[f];"polygon"===d.type?(u(d.exterior,l),Object(c.each)(d.interiors,(function(e){u(e,l)}))):Object(c.each)(d.points,(function(e){u(e,l)}))}(a=this._rect).copy(s),
// Update center
this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);// Simply avoid to be called.
return n._rect=this._rect,n.transformTo=null,n},t}(f),m=/** @class */function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Object(r.a)(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=s.identity(l),i=e;i&&!i.isGeoSVGGraphicRoot;)s.mul(r,i.getLocalTransform(),r),i=i.parent;return s.invert(r,r),a.applyTransform(n,n,r),n},t}(f)},
/***/f2d9:
/***/function(e,t,n){"use strict";
/* WEBPACK VAR INJECTION */(function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){
//download.js v4.2, by dandavis; 2008-2016. [MIT] see http://danml.com/download.html for tests/usage
// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime
// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs
// v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support. 3.1 improved safari handling.
// v4 adds AMD/UMD, commonJS, and plain browser support
// v4.1 adds url download capability via solo URL argument (same domain/CORS only)
// v4.2 adds semantic variable names, long (over 2MB) dataURL support, and hidden by default temp anchors
// https://github.com/rndme/download
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
e.exports=function e(t,n,r){var i,a,o=window,// this script is only for browsers anyway...
s="application/octet-stream",// this default mime also triggers iframe downloads
c=r||s,l=t,u=!n&&!r&&l,h=document.createElement("a"),f=function(e){return String(e)},d=o.Blob||o.MozBlob||o.WebKitBlob||f,p=n||"download";if(d=d.call?d.bind(o):Blob,"true"===String(this)&&(//reverse arguments, allowing download.bind(true, "text/xml", "export.xml") to act as a callback
c=(l=[l,c])[0],l=l[1]),u&&u.length<2048&&(// if no filename and no mime, assume a url was passed as the only argument
p=u.split("/").pop().split("?")[0],h.href=u,-1!==h.href.indexOf(u))){// if the browser determines that it's a potentially valid url path:
var g=new XMLHttpRequest;// allows setting custom ajax headers using the return:
return g.open("GET",u,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,p,s)},setTimeout((function(){g.send()}),0),g}// end if valid url?
// end if url?
//go ahead and download dataURLs right away
if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(l)){if(!(l.length>2096103.424&&d!==f))return navigator.msSaveBlob?// IE10 can't do a[download], only Blobs:
navigator.msSaveBlob(A(l),p):b(l);// everyone else can save dataURLs un-processed
c=(l=A(l)).type||s}else//not data url, is it a string with special needs?
if(/([\x80-\xff])/.test(l)){for(var m=0,v=new Uint8Array(l.length),y=v.length;m<y;++m)v[m]=l.charCodeAt(m);l=new d([v],{type:c})}function A(e){for(var t=e.split(/[:;,]/),n=t[1],r=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),i=r.length,a=0,o=new Uint8Array(i);a<i;++a)o[a]=r.charCodeAt(a);return new d([o],{type:n})}function b(e,t){if("download"in h)//html5 A[download]
return h.href=e,h.setAttribute("download",p),h.className="download-js-link",h.innerHTML="downloading...",h.style.display="none",document.body.appendChild(h),setTimeout((function(){h.click(),document.body.removeChild(h),!0===t&&setTimeout((function(){o.URL.revokeObjectURL(h.href)}),250)}),66),!0;
// handle non-a[download] safari as best we can:
if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||// popup blocked, offer direct download:
confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;
//do iframe dataURL download (old ch+FF):
var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(// force a mime that will download:
e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}//end saver
if(i=l instanceof d?l:new d([l],{type:c}),navigator.msSaveBlob)// IE10+ : (has Blob, but not a[download] or URL)
return navigator.msSaveBlob(i,p);if(o.URL)// simple fast and modern way using Blob and URL:
b(o.URL.createObjectURL(i),!0);else{
// handle non-Blob()+non-URL browsers:
if("string"==typeof i||i.constructor===f)try{return b("data:"+c+";base64,"+o.btoa(i))}catch(e){return b("data:"+c+","+encodeURIComponent(i))}
// Blob but not URL support:
(a=new FileReader).onload=function(e){b(this.result)},a.readAsDataURL(i)}return!0}}));

var r=function(e,t,n,r,i,a
/* server only */,o,s,c,l){"boolean"!=typeof o&&(c=s,s=o,o=!1);// Vue.extend constructor export interop.
var u,h="function"==typeof n?n.options:n;// render functions
if(e&&e.render&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0,// functional template
i&&(h.functional=!0)),// scopedId
r&&(h._scopeId=r),a?(
// server build
u=function(e){
// 2.3 injection
// functional
// 2.2 with runInNewContext: true
(e=e||// cached call
this.$vnode&&this.$vnode.ssrContext||// stateful
this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),// inject component styles
t&&t.call(this,c(e)),// register component module identifier for async chunk inference
e&&e._registeredComponents&&e._registeredComponents.add(a)},// used by ssr in case component is cached and beforeCreate
// never gets called
h._ssrRegister=u):t&&(u=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(h.functional){
// register for functional component in vue file
var f=h.render;h.render=function(e,t){return u.call(t),f(e,t)}}else{
// inject component registration as beforeCreate hook
var d=h.beforeCreate;h.beforeCreate=d?[].concat(d,u):[u]}return n};
/* script */const i={props:{
// mime type [xls, csv]
type:{type:String,default:"xls"},
// Json to download
data:{type:Array,required:!1,default:null},
// fields inside the Json Object that you want to export
// if no given, all the properties in the Json are exported
fields:{type:Object,default:()=>null},
// this prop is used to fix the problem with other components that use the
// variable fields, like vee-validate. exportFields works exactly like fields
exportFields:{type:Object,default:()=>null},
// Use as fallback when the row has no field values
defaultValue:{type:String,required:!1,default:""},
// Title(s) for the data, could be a string or an array of strings (multiple titles)
header:{default:null},
// Footer(s) for the data, could be a string or an array of strings (multiple footers)
footer:{default:null},
// filename to export
name:{type:String,default:"data.xls"},fetch:{type:Function},meta:{type:Array,default:()=>[]},worksheet:{type:String,default:"Sheet1"},
//event before generate was called
beforeGenerate:{type:Function},
//event before download pops up
beforeFinish:{type:Function},
// Determine if CSV Data should be escaped
escapeCsv:{type:Boolean,default:!0},
// long number stringify
stringifyLongNum:{type:Boolean,default:!1}},computed:{
// unique identifier
idName:()=>"export_"+(new Date).getTime(),downloadFields(){return this.fields?this.fields:this.exportFields?this.exportFields:void 0}},methods:{async generate(){"function"==typeof this.beforeGenerate&&await this.beforeGenerate();let e=this.data;if("function"!=typeof this.fetch&&e||(e=await this.fetch()),!e||!e.length)return;let t=this.getProcessedJson(e,this.downloadFields);return"html"===this.type?this.export(this.jsonToXLS(t),this.name.replace(".xls",".html"),"text/html"):"csv"===this.type?this.export(this.jsonToCSV(t),this.name.replace(".xls",".csv"),"application/csv"):this.export(this.jsonToXLS(t),this.name,"application/vnd.ms-excel")},
/*
		Use downloadjs to generate the download link
		*/
export:async function(e,t,r){let i=this.base64ToBlob(e,r);"function"==typeof this.beforeFinish&&await this.beforeFinish(),n(i,t,r)},
/*
		jsonToXLS
		---------------
		Transform json data into an xml document with MS Excel format, sadly
		it shows a prompt when it opens, that is a default behavior for
		Microsoft office and cannot be avoided. It's recommended to use CSV format instead.
		*/
jsonToXLS(e){let t="<thead>";const n=Object.keys(e[0]).length;let r=this;
//Header
const i=this.header||this.$attrs.title;i&&(t+=this.parseExtraData(i,'<tr><th colspan="'+n+'">${data}</th></tr>')),
//Fields
t+="<tr>";for(let n in e[0])t+="<th>"+n+"</th>";return t+="</tr>",t+="</thead>",
//Data
t+="<tbody>",e.map((function(e,n){t+="<tr>";for(let n in e)t+="<td>"+r.preprocessLongNum(r.valueReformattedForMultilines(e[n]))+"</td>";t+="</tr>"})),t+="</tbody>",
//Footer
null!=this.footer&&(t+="<tfoot>",t+=this.parseExtraData(this.footer,'<tr><td colspan="'+n+'">${data}</td></tr>'),t+="</tfoot>"),'<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>${worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e<style>br {mso-data-placement: same-cell;}</style></head><body><table>${table}</table></body></html>'.replace("${table}",t).replace("${worksheet}",this.worksheet)},
/*
		jsonToCSV
		---------------
		Transform json data into an CSV file.
		*/
jsonToCSV(e){let t=this;var n=[];
//Header
const r=this.header||this.$attrs.title;r&&n.push(this.parseExtraData(r,"${data}\r\n"));
//Fields
for(let t in e[0])n.push(t),n.push(",");return n.pop(),n.push("\r\n"),
//Data
e.map((function(e){for(let r in e){let i=e[r]+"";
// Escaped CSV data to string to avoid problems with numbers or other types of values
// this is controlled by the prop escapeCsv
t.escapeCsv&&(i='="'+i+'"',// cast Numbers to string
i.match(/[,"\n]/)&&(i='"'+i.replace(/\"/g,'""')+'"')),n.push(i),n.push(",")}n.pop(),n.push("\r\n")})),
//Footer
null!=this.footer&&n.push(this.parseExtraData(this.footer,"${data}\r\n")),n.join("")},
/*
		getProcessedJson
		---------------
		Get only the data to export, if no fields are set return all the data
		*/
getProcessedJson(e,t){let n=this.getKeys(e,t),r=[],i=this;return e.map((function(e,t){let a={};for(let t in n){let r=n[t];a[t]=i.getValue(r,e)}r.push(a)})),r},getKeys(e,t){if(t)return t;let n={};for(let t in e[0])n[t]=t;return n},
/*
		parseExtraData
		---------------
		Parse title and footer attribute to the csv format
		*/
parseExtraData(e,t){let n="";if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&(n+=t.replace("${data}",e[r]));else n+=t.replace("${data}",e);return n},getValue(e,t){const n="object"!=typeof e?e:e.field;let r="string"!=typeof n?[]:n.split("."),i=this.defaultValue;return i=n?r.length>1?this.getValueFromNestedItem(t,r):this.parseValue(t[n]):t,e.hasOwnProperty("callback")&&(i=this.getValueFromCallback(i,e.callback)),i},
/*
    convert values with newline \n characters into <br/>
    */
valueReformattedForMultilines:e=>"string"==typeof e?e.replace(/\n/gi,"<br/>"):e,preprocessLongNum(e){if(this.stringifyLongNum){if(String(e).startsWith("0x"))return e;if(!isNaN(e)&&""!=e&&(e>99999999999||e<1e-13))return'="'+e+'"'}return e},getValueFromNestedItem(e,t){let n=e;for(let e of t)n&&(n=n[e]);return this.parseValue(n)},getValueFromCallback(e,t){if("function"!=typeof t)return this.defaultValue;const n=t(e);return this.parseValue(n)},parseValue(e){return e||0===e||"boolean"==typeof e?e:this.defaultValue},base64ToBlob(e,t){let n=window.btoa(window.unescape(encodeURIComponent(e))),r=atob(n),i=r.length,a=new Uint8ClampedArray(i);for(;i--;)a[i]=r.charCodeAt(i);return new Blob([a],{type:t})}}};
/* template */var a=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{attrs:{id:e.idName},on:{click:e.generate}},[e._t("default",[e._v(" Download "+e._s(e.name)+" ")])],2)};a._withStripped=!0;
/* style inject */
/* style inject SSR */
var o=r({render:a,staticRenderFns:[]},undefined,i,undefined,!1,undefined,void 0,void 0);
/* harmony default export */t.a=o}).call(this,n("c8ba"))
/***/},
/***/f308:
/***/function(e,t,n){for(var r,i=n("93e0"),a=n("0713"),o=n("5689"),s=o("typed_array"),c=o("view"),l=!(!i.ArrayBuffer||!i.DataView),u=l,h=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(r=i[f[h++]])?(a(r.prototype,s,!0),a(r.prototype,c,!0)):u=!1;e.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},
/***/f354:
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),a=n("83ab"),o=n("c430"),s=i("iterator");e.exports=!r((function(){
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),
// `undefined` case is a Chromium 117 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
n.delete("b",void 0),o&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(o||!a)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},
/***/f36a:
/***/function(e,t,n){"use strict";var r=n("e330");e.exports=r([].slice)},
/***/f3bb:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return a})),
/* harmony export (binding) */n.d(t,"b",(function(){return s}));
/* harmony import */var r=n("6d8b"),i=n("e0d3");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Legacy data selection action.
// Includes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect
function a(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(r.each)([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,a){t=Object(r.extend)({},t),a.dispatchAction(Object(r.extend)(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function o(e,t,n,a,o){var s=e+t;n.isSilent(s)||a.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,a=e.option.selectedMap,c=o.selected,l=0;l<c.length;l++)if(c[l].seriesIndex===t){var u=e.getData(),h=Object(i.u)(u,o.fromActionPayload);n.trigger(s,{type:s,seriesId:e.id,name:Object(r.isArray)(h)?u.getName(h[0]):u.getName(h),selected:Object(r.isString)(a)?a:Object(r.extend)({},a)})}}))}function s(e,t,n){e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(o("map","selectchanged",t,r,e),o("pie","selectchanged",t,r,e)):"select"===e.fromAction?(o("map","selected",t,r,e),o("pie","selected",t,r,e)):"unselect"===e.fromAction&&(o("map","unselected",t,r,e),o("pie","unselected",t,r,e))}))}
/***/},
/***/f3c1:
/***/function(e,t){
/** Used to detect hot functions by number of calls within a span of milliseconds. */
var n=Date.now;
/* Built-in method references for those with the same name as other `lodash` methods. */e.exports=
/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},
/***/f3cb:
/***/function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorConfig=void 0;t.colorConfig=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"]},
/***/f415:
/***/function(e,t,n){n("1b1e")("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}));
/***/},
/***/f4d6:
/***/function(e,t,n){var r=n("ffd6");
/** Used as references for various `Number` constants. */e.exports=
/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},
/***/f54f:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("4d91"),i=r.a.oneOf(["hover","focus","click","contextmenu"]);
/* harmony default export */t.a=function(){return{trigger:r.a.oneOfType([i,r.a.arrayOf(i)]).def("hover"),visible:r.a.bool,defaultVisible:r.a.bool,placement:r.a.oneOf(["top","left","right","bottom","topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]).def("top"),transitionName:r.a.string.def("zoom-big-fast"),
// onVisibleChange: PropTypes.func,
overlayStyle:r.a.object.def((function(){return{}})),overlayClassName:r.a.string,prefixCls:r.a.string,mouseEnterDelay:r.a.number.def(.1),mouseLeaveDelay:r.a.number.def(.1),getPopupContainer:r.a.func,arrowPointAtCenter:r.a.bool.def(!1),autoAdjustOverflow:r.a.oneOfType([r.a.bool,r.a.object]).def(!0),destroyTooltipOnHide:r.a.bool.def(!1),align:r.a.object.def((function(){return{}})),builtinPlacements:r.a.object}}},
/***/f58c:
/***/function(e,t,n){"use strict";var r=n("e960")(!0);
// 21.1.3.27 String.prototype[@@iterator]()
n("d516")(String,"String",(function(e){this._t=String(e),// target
this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},
/***/f5df:
/***/function(e,t,n){"use strict";var r=n("00ee"),i=n("1626"),a=n("c6b6"),o=n("b622")("toStringTag"),s=Object,c="Arguments"===a(function(){return arguments}());
// getting tag from ES6+ `Object.prototype.toString`
e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){/* empty */}}(t=s(e),o))?n:c?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},
/***/f5fe:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js + 2 modules
var r=n("f0ce"),i=n("1147");
// EXTERNAL MODULE: ./node_modules/lodash-es/isObjectLike.js
/* harmony default export */var a=
/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function(e){return Object(i.a)(e)&&"[object Arguments]"==Object(r.a)(e)},o=Object.prototype,s=o.hasOwnProperty,c=o.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return Object(i.a)(e)&&s.call(e,"callee")&&!c.call(e,"callee")};
// CONCATENATED MODULE: ./node_modules/lodash-es/isArguments.js
/** Used for built-in method references. */t.a=l},
/***/f608:
/***/function(e,t,n){var r=n("6747"),i=n("ffd6"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;
/** Used to match property names within property paths. */e.exports=
/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},
/***/f658:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return o}));
/* harmony import */var r=n("6d8b"),i="undefined"!=typeof Float32Array,a=i?Float32Array:Array;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* global Float32Array */function o(e){return Object(r.isArray)(e)?i?new Float32Array(e):e:new a(e);
// Else is number
}
/***/},
/***/f665:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("59ed"),o=n("825a"),s=n("46c4");
// `Iterator.prototype.find` method
// https://tc39.es/ecma262/#sec-iterator.prototype.find
r({target:"Iterator",proto:!0,real:!0},{find:function(e){o(this),a(e);var t=s(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},
/***/f6b4:
/***/function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}
/**
 * Add a new interceptor to the stack
 *
 * @param {Function} fulfilled The function to handle `then` for a `Promise`
 * @param {Function} rejected The function to handle `reject` for a `Promise`
 *
 * @return {Number} An ID used to remove interceptor later
 */i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},
/**
 * Remove an interceptor from the stack
 *
 * @param {Number} id The ID that was returned by `use`
 */
i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},
/**
 * Iterate over all the registered interceptors
 *
 * This method is particularly useful for skipping over any
 * interceptors that may have become `null` calling `eject`.
 *
 * @param {Function} fn The function to call for each interceptor
 */
i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},
/***/f6d6:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("23cb"),o=RangeError,s=String.fromCharCode,c=String.fromCodePoint,l=i([].join);
// `String.fromCodePoint` method
// https://tc39.es/ecma262/#sec-string.fromcodepoint
r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{
// eslint-disable-next-line no-unused-vars -- required for `.length`
fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new o(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},
/***/f6d8:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return s}));
/* harmony import */var r=n("6d8b"),i=n("217c"),a=n("2b17"),o=n("e0d3");
/* harmony import */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function s(e){var t,n,s,c,l=e.series,u=e.dataIndex,h=e.multipleSeries,f=l.getData(),d=f.mapDimensionsAll("defaultedTooltip"),p=d.length,g=l.getRawValue(u),m=Object(r.isArray)(g),v=Object(i.e)(l,u);if(p>1||m&&!p){var y=function(e,t,n,o,s){
// check: category-no-encode-has-axis-data in dataset.html
var c=t.getData(),l=Object(r.reduce)(e,(function(e,t,n){var r=c.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),u=[],h=[],f=[];function d(e,t){var n=c.getDimensionInfo(t);
// If `dimInfo.tooltip` is not set, show tooltip.
n&&!1!==n.otherDims.tooltip&&(l?f.push(Object(i.c)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(u.push(e),h.push(n.type)))}return o.length?Object(r.each)(o,(function(e){d(Object(a.e)(c,n,e),e)})):Object(r.each)(e,d),{inlineValues:u,inlineValueTypes:h,blocks:f}}
/***/(g,l,u,d,v);t=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,
// Only support tooltip sort by the first inline value. It's enough in most cases.
c=y.inlineValues[0]}else if(p){var A=f.getDimensionInfo(d[0]);c=t=Object(a.e)(f,u,d[0]),n=A.type}else c=t=m?g[0]:g;
// Do not show generated series name. It might not be readable.
var b=Object(o.n)(l),w=b&&l.name||"",x=f.getName(u),C=h?w:x;return Object(i.c)("section",{header:w,
// When series name is not specified, do not show a header line with only '-'.
// This case always happens in tooltip.trigger: 'item'.
noHeader:h||!b,sortParam:c,blocks:[Object(i.c)("nameValue",{markerType:"item",markerColor:v,
// Do not mix display seriesName and itemName in one tooltip,
// which might confuses users.
name:C,
// name dimension might be auto assigned, where the name might
// be not readable. So we check trim here.
noName:!Object(r.trim)(C),value:t,valueType:n,dataIndex:u})].concat(s||[])})}},
/***/f72b:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return u})),
/* harmony export (binding) */n.d(t,"b",(function(){return h}));
/* harmony import */var r=n("6d8b"),i=n("ec6f"),a=n("07fd"),o=n("0f99"),s=n("04f7"),c=n("d0ce"),l=n("2b17"),u=/** @class */function(){function e(e){
// Cached source. Do not repeat calculating if not dirty.
this._sourceList=[],this._storeList=[],
// version sign of each upstream source manager.
this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}
/**
   * Mark dirty.
   */return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},
/**
   * For detecting whether the upstream source is dirty, so that
   * the local cached source (in `_sourceList`) should be discarded.
   */
e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},
/**
   * Always return a source instance. Otherwise throw error.
   */
e.prototype.prepareSource=function(){
// For the case that call `setOption` multiple time but no data changed,
// cache the result source to prevent from repeating transform.
this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,o=this._getUpstreamSourceManagers(),s=!!o.length;if(f(n)){var c=n,l=void 0,u=void 0,h=void 0;
// Has upstream dataset
if(s){var d=o[0];d.prepareSource(),l=(h=d.getSource()).data,u=h.sourceFormat,t=[d._getVersionSign()]}
// Series data is from own.
else l=c.get("data",!0),u=Object(r.isTypedArray)(l)?a.g:a.f,t=[];
// See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root.
var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},m=Object(r.retrieve2)(p.seriesLayoutBy,g.seriesLayoutBy)||null,v=Object(r.retrieve2)(p.sourceHeader,g.sourceHeader),y=Object(r.retrieve2)(p.dimensions,g.dimensions);e=m!==g.seriesLayoutBy||!!v!=!!g.sourceHeader||y?[Object(i.b)(l,{seriesLayoutBy:m,sourceHeader:v,dimensions:y},u)]:[]}else{var A=n;
// Has upstream dataset.
if(s){var b=this._applyTransform(o);e=b.sourceList,t=b.upstreamSignList}
// Is root dataset.
else{var w=A.get("source",!0);e=[Object(i.b)(w,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,a=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){1!==e.length&&d("")}var c=[],l=[];return Object(r.each)(e,(function(e){e.prepareSource();var t=e.getSource(o||0);null==o||t||d(""),c.push(t),l.push(e._getVersionSign())})),a?t=Object(s.a)(a,c,{datasetIndex:n.componentIndex}):null!=o&&(t=[Object(i.a)(c[0])]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;
// All sourceList is from the some upstream.
for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(
// Consider the case that there is ancestor diry, call it recursively.
// The performance is probably not an issue because usually the chain is not long.
n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},
/**
   * @param sourceIndex By default 0, means "main source".
   *                    In most cases there is only one source.
   */
e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){
// Series may share source instance with dataset.
var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},
/**
   *
   * Get a data store which can be shared across series.
   * Only available for series.
   *
   * @param seriesDimRequest Dimensions that are generated in series.
   *        Should have been sorted by `storeDimIndex` asc.
   */
e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){
// TODO Can use other sourceIndex?
var r=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];f(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):
// Always create store from source of series.
(a=new c.b).initData(new l.a(t,e.length),e),i[n]=a}return a},
/**
   * PENDING: Is it fast enough?
   * If no upstream, return empty array.
   */
e.prototype._getUpstreamSourceManagers=function(){
// Always get the relationship from the raw option.
// Do not cache the link of the dependency graph, so that
// there is no need to update them when change happens.
var e=this._sourceHost;if(f(e)){var t=Object(o.f)(e);return t?[t.getSourceManager()]:[]}return Object(r.map)(Object(o.e)(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(f(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();
/* harmony import */
// Call this method after `super.init` and `super.mergeOption` to
// disable the transform merge, but do not disable transform clone from rawOption.
function h(e){e.option.transform&&Object(r.setAsPrimitive)(e.option.transform)}function f(e){
// Avoid circular dependency with Series.ts
return"series"===e.mainType}function d(e){throw new Error(e)}
/***/},
/***/f772:
/***/function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},
/***/f787:
/***/function(e,t,n){"use strict";
// B.2.3.11 String.prototype.small()
n("e681")("small",(function(e){return function(){return e(this,"small","","")}}))},
/***/f7e6:
/***/function(e,t,n){
/* WEBPACK VAR INJECTION */(function(t){e.exports=function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){return i(t[o][1][e]||e)}),l,l.exports,e,t,n,r)}return n[o].exports}for(var a=!1,o=0;o<r.length;o++)i(r[o]);return i}return e}()({1:[function(e,t,n){"use strict";n.byteLength=u,n.toByteArray=f,n.fromByteArray=g;for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;
// Support decoding URL-safe base64 strings, as Node.js does.
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");
// Trim off extra bytes after placeholder bytes are found
// See: https://github.com/beatgammit/base64-js/issues/42
var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}
// base64 is 4/3 + up to two characters of the original data
function u(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=l(e),o=r[0],s=r[1],c=new a(h(e,o,s)),u=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(d(r));return i.join("")}function g(e){// must be multiple of 3
// go through the array every three bytes, we'll deal with trailing stuff later
for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(p(e,s,s+o>c?c:s+o));
// pad the end with zeros, but make sure to not forget the extra bytes
return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
/* eslint-disable no-proto */
"use strict";var r=e("base64-js"),i=e("ieee754");n.Buffer=t,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50;var a=2147483647;function o(){
// Can typed array instances can be augmented?
try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');
// Return an augmented `Uint8Array` instance
var n=new Uint8Array(e);return n.__proto__=t.prototype,n}
/**
 * The Buffer constructor returns instances of `Uint8Array` that have their
 * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
 * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
 * and the `Uint8Array` methods. Square bracket notation works as expected -- it
 * returns a single octet.
 *
 * The `Uint8Array` prototype remains unmodified.
 */function t(e,t,n){
// Common case.
if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,n)}
// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
// not used by this implementation
function c(e,n,r){if("string"==typeof e)return f(e,n);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return p(e,n,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return t.from(i,n,r);var a=g(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}
/**
 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
 * if value is a number.
 * Buffer.from(str[, encoding])
 * Buffer.from(array)
 * Buffer.from(buffer)
 * Buffer.from(arrayBuffer[, byteOffset[, length]])
 **/function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}
/**
 * Creates a new filled Buffer instance.
 * alloc(size[, fill[, encoding]])
 **/function h(e){return l(e),s(e<0?0:0|m(e))}
/**
 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
 * */function f(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|y(e,n),i=s(r),a=i.write(e,n);return a!==r&&(
// Writing a hex string, for example, that contains invalid characters will
// cause everything after the first invalid character to be ignored. (e.g.
// 'abxxcd' will be treated as 'ab')
i=i.slice(0,a)),i}function d(e){for(var t=e.length<0?0:0|m(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;
// Return an augmented `Uint8Array` instance
return(i=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r)).__proto__=t.prototype,i}function g(e){if(t.isBuffer(e)){var n=0|m(e.length),r=s(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}function m(e){
// Note: cannot use `length < K_MAX_LENGTH` here because that fails when
// length is NaN (which is otherwise coerced to zero.)
if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(// eslint-disable-line eqeqeq
e=0),t.alloc(+e)}function y(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;
// Use a for loop to avoid recursion
for(var a=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(a)return i?-1:V(e).length;// assume utf8
n=(""+n).toLowerCase(),a=!0}}function A(e,t,n){var r=!1;
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
// property of a typed array.
// This behaves neither like String nor Uint8Array in that we set start/end
// to their upper/lower bounds if the value passed is out of range.
// undefined is handled specially as per ECMA-262 6th Edition,
// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
// Return early if start > this.length. Done here to prevent potential uint32
// coercion fail below.
if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";
// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return B(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}
// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)
// to detect a Buffer instance. It's not possible to use `instanceof Buffer`
// reliably in a browserify context because there could be multiple different
// copies of the 'buffer' package in use. This method works even for Buffer
// instances that were created from another copy of the `buffer` package.
// See: https://github.com/feross/buffer/issues/154
function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}
// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
// Arguments:
// - buffer - a Buffer to search
// - val - a string, Buffer, or number
// - byteOffset - an index into `buffer`; will be clamped to an int32
// - encoding - an optional encoding, relevant is val is a string
// - dir - true for indexOf, false for lastIndexOf
function w(e,n,r,i,a){
// Empty buffer means no match
if(0===e.length)return-1;
// Normalize byteOffset
if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),// Coerce to Number.
J(r=+r)&&(
// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
r=a?0:e.length-1),
// Normalize byteOffset: negative offsets start from the end of the buffer
r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}
// Normalize val
// Finally, search either indexOf (if dir is true) or lastIndexOf
if("string"==typeof n&&(n=t.from(n,i)),t.isBuffer(n))
// Special case: looking for empty string/buffer always fails
return 0===n.length?-1:x(e,n,r,i,a);if("number"==typeof n)// Search for a byte value [0-255]
return n&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):x(e,[n],r,i,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,f=0;f<c;f++)if(l(e,a+f)!==l(t,f)){h=!1;break}if(h)return a}return-1}function C(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(J(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return K(V(t,e.length-n),e,n,r)}function I(e,t,n,r){return K(W(t),e,n,r)}function E(e,t,n,r){return I(e,t,n,r)}function k(e,t,n,r){return K(Y(t),e,n,r)}function S(e,t,n,r){return K(q(t,e.length-n),e,n,r)}function B(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(
// we did not generate a valid codePoint so insert a
// replacement char (U+FFFD) and advance only 1 byte
u=65533,h=1):u>65535&&(
// encode to utf16 (surrogate pair dance)
u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return O(r)}
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
n.kMaxLength=a
/**
 * If `Buffer.TYPED_ARRAY_SUPPORT`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Print warning and recommend using `buffer` v4.x which has an Object
 *               implementation (most compatible, even IE6)
 *
 * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
 * Opera 11.6+, iOS 4.2+.
 *
 * We report that the browser does not support typed arrays if the are not subclassable
 * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`
 * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
 * for __proto__ and has a buggy typed array implementation.
 */,t.TYPED_ARRAY_SUPPORT=o(),!t.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,n){return c(e,t,n)}
// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
// https://github.com/feross/buffer/pull/148
,t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,n){return u(e,t,n)},t.allocUnsafe=function(e){return h(e)}
/**
 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
 */,t.allocUnsafeSlow=function(e){return h(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype;// so Buffer.isBuffer(Buffer.prototype) will be false
},t.compare=function(e,n){if($(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),$(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var r=e.length,i=n.length,a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==n[a]){r=e[a],i=n[a];break}return r<i?-1:i<r?1:0},t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var i=t.allocUnsafe(n),a=0;for(r=0;r<e.length;++r){var o=e[r];if($(o,Uint8Array)&&(o=t.from(o)),!t.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i},t.byteLength=y,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},t.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},t.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):A.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,n,r,i,a){if($(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),n<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&n>=r)return 0;if(i>=a)return-1;if(n>=r)return 1;if(this===e)return 0;for(var o=(a>>>=0)-(i>>>=0),s=(r>>>=0)-(n>>>=0),c=Math.min(o,s),l=this.slice(i,a),u=e.slice(n,r),h=0;h<c;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},t.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},t.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},t.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},t.prototype.write=function(e,t,n,r){
// Buffer#write(string)
if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return I(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":
// Warning: maxLength not taken into account in base64Write
return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function O(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);// avoid extra slice()
// Decode in chunks to avoid "call stack size exceeded".
for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=G(e[a]);return i}function Q(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}
/*
 * Need to make sure that buffer isn't trying to write out of bounds.
 */
function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,n,r,i,a,o){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>a||n<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,a){return t=+t,n>>>=0,a||N(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return t=+t,n>>>=0,a||N(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e);var i=this.subarray(e,n);
// Return an augmented `Uint8Array` instance
return i.__proto__=t.prototype,i},t.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},t.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},t.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},t.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)}
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
,t.prototype.copy=function(e,n,r,i){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");
// Copy 0 bytes; we're done
if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;
// Fatal error conditions
if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");
// Are we oob?
i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);var a=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)
// Use built-in when available, missing from IE11
this.copyWithin(n,r,i);else if(this===e&&r<n&&n<i)
// descending copy from end
for(var o=a-1;o>=0;--o)e[o+n]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),n);return a}
// Usage:
//    buffer.fill(number[, offset[, end]])
//    buffer.fill(buffer[, offset[, end]])
//    buffer.fill(string[, offset[, end]][, encoding])
,t.prototype.fill=function(e,n,r,i){
// Handle string cases:
if("string"==typeof e){if("string"==typeof n?(i=n,n=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(
// Fast path: If `val` fits into a single byte, use that numeric value.
e=a)}}else"number"==typeof e&&(e&=255);
// Invalid ranges are not set to a default, so can range check early.
if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var o;if(n>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=n;o<r;++o)this[o]=e;else{var s=t.isBuffer(e)?e:t.from(e,i),c=s.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-n;++o)this[o+n]=s[o%c]}return this}
// HELPER FUNCTIONS
// ================;
var H=/[^+/0-9A-Za-z-_]/g;function U(e){
// Node converts strings with length < 2 to ''
if((
// Node strips out invalid characters like \n and \t from the string, base64-js does not
e=(
// Node takes equal signs as end of the Base64 encoding
e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
for(;e.length%4!=0;)e+="=";return e}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){
// is surrogate component
if((n=e.charCodeAt(o))>55295&&n<57344){
// last char was a lead
if(!i){
// no lead yet
if(n>56319){
// unexpected trail
(t-=3)>-1&&a.push(239,191,189);continue}
// valid lead
if(o+1===r){
// unpaired lead
(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}
// 2 leads in a row
if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}
// valid surrogate pair
n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);
// encode utf8
if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function W(e){for(var t=[],n=0;n<e.length;++n)
// Node's code seems to be doing this and not & 0x7F..
t.push(255&e.charCodeAt(n));return t}function q(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}function Y(e){return r.toByteArray(U(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}
// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass
// the `instanceof` check but they should be treated as of that type.
// See: https://github.com/feross/buffer/issues/166
function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){
// For IE11 support
return e!=e;// eslint-disable-line no-self-compare
}}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:6}],4:[function(e,t,n){(function(e){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function r(e){return"boolean"==typeof e}function i(e){return null===e}function a(e){return null==e}function o(e){return"number"==typeof e}function s(e){return"string"==typeof e}function c(e){return"symbol"==typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===m(e)}function h(e){return"object"==typeof e&&null!==e}function f(e){return"[object Date]"===m(e)}function d(e){return"[object Error]"===m(e)||e instanceof Error}function p(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||// ES6 symbol
void 0===e}function m(e){return Object.prototype.toString.call(e)}n.isArray=t,n.isBoolean=r,n.isNull=i,n.isNullOrUndefined=a,n.isNumber=o,n.isString=s,n.isSymbol=c,n.isUndefined=l,n.isRegExp=u,n.isObject=h,n.isDate=f,n.isError=d,n.isFunction=p,n.isPrimitive=g,n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":9}],5:[function(e,t,n){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var r=Object.create||_,i=Object.keys||I,a=Function.prototype.bind||E;function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,
// Backwards-compat with node 0.10.x
o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;
// By default EventEmitters will print a warning if more than 10 listeners are
// added to it. This is a useful default which helps finding memory leaks.
var s,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),s=0===l.x}catch(e){s=!1}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}
// These standalone emit* functions are used to optimize calling of event
// handlers for fast cases because emit() itself often has a variable number of
// arguments and can be deoptimized because of that. These functions always have
// the same number of arguments and thus do not get deoptimized, so the code
// inside them can execute faster.
function h(e,t,n){if(t)e.call(n);else for(var r=e.length,i=x(e,r),a=0;a<r;++a)i[a].call(n)}function f(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].call(n,r)}function d(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=x(e,a),s=0;s<a;++s)o[s].call(n,r,i)}function p(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=x(e,o),c=0;c<o;++c)s[c].call(n,r,i,a)}function g(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=x(e,i),o=0;o<i;++o)a[o].apply(n,r)}function m(e,t,n,i){var a,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(
// To avoid recursion in the case that type === "newListener"! Before
// adding it to the listeners, first emit "newListener".
o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),
// Re-assign `events` because a newListener handler could have caused the
// this._events to be assigned to a new object
o=e._events),s=o[t]):(o=e._events=r(null),e._eventsCount=0),s){
// Check for listener leak
if("function"==typeof s?
// Adding the second element, need to change to array.
s=o[t]=i?[n,s]:[s,n]:
// If we've already got an array, just append.
i?s.unshift(n):s.push(n),!s.warned&&(a=u(e))&&a>0&&s.length>a){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,"object"==typeof console&&console.warn}}else
// Optimize the case of one listener. Don't need the extra array object.
s=o[t]=n,++e._eventsCount;return e}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(v,r);return i.listener=n,r.wrapFn=i,i}function A(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?C(i):x(i,i.length):[]}function b(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}
// About 1.5x faster than the two-arg version of Array#splice().
function w(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function x(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function C(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function _(e){var t=function(){};return t.prototype=e,new t}function I(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n}function E(e){var t=this;return function(){return t.apply(e,arguments)}}s?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){
// check whether the input is a positive number (whose value is zero or
// greater and not a NaN).
if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):o.defaultMaxListeners=c,
// Obviously not all Emitters should be limited to 10. This function allows
// that to be increased. Set to zero for unlimited.
o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){var t,n,r,i,a,o,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;
// If there is no 'error' event listener then throw.
if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;// Unhandled 'error' event
// At least give some kind of context to the user
var c=new Error('Unhandled "error" event. ('+t+")");throw c.context=t,c}if(!(n=o[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){
// fast cases
case 1:h(n,l,this);break;case 2:f(n,l,this,arguments[1]);break;case 3:d(n,l,this,arguments[1],arguments[2]);break;case 4:p(n,l,this,arguments[1],arguments[2],arguments[3]);break;
// slower
default:for(i=new Array(r-1),a=1;a<r;a++)i[a-1]=arguments[a];g(n,l,this,i)}return!0},o.prototype.addListener=function(e,t){return m(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return m(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},
// Emits a 'removeListener' event if and only if the listener was removed.
o.prototype.removeListener=function(e,t){var n,i,a,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():w(n,a),1===n.length&&(i[e]=n[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,a;if(!(n=this._events))return this;
// not listening for removeListener, no need to emit
if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;
// emit removeListener for all listeners on all events
if(0===arguments.length){var o,s=i(n);for(a=0;a<s.length;++a)"removeListener"!==(o=s[a])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)
// LIFO order
for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return A(this,e,!0)},o.prototype.rawListeners=function(e){return A(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],6:[function(e,t,n){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=f,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=l}return(d?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*c-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+d]=255&o,d+=p,o/=256,l-=8);e[n+d-p]|=128*g}},{}],7:[function(e,n,r){(function(e){"use strict";var t,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){
// Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
// into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,t=function(){c.port2.postMessage(0)}}var l=[];
//named nextTick for less confusing stack traces
function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}function h(e){1!==l.push(e)||r||t()}n.exports=h}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){"function"==typeof Object.create?
// implementation from standard node.js 'util' module
t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:
// old school shim for old browsers
t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],9:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
// For Node v0.10 support. Remove this eventually.
function i(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
t.exports=function(e){return null!=e&&(r(e)||i(e)||!!e._isBuffer)}},{}],10:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
// public method for encoding
n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],h=0,f=e.length,d=f,p="string"!==r.getTypeOf(e);h<e.length;)d=f-h,p?(t=e[h++],n=h<f?e[h++]:0,i=h<f?e[h++]:0):(t=e.charCodeAt(h++),n=h<f?e.charCodeAt(h++):0,i=h<f?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,c=d>1?(15&n)<<2|i>>6:64,l=d>2?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},
// public method for decoding
n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,h="data:";if(e.substr(0,h.length)===h)
// This is a common error: people give a data url
// (data:image/png;base64,iVBOR...) with a {base64: true} and
// wonders why things don't work.
// We can detect that the string input looks like a data url but we
// *can't* be sure it is one: removing everything up to the comma would
// be too dangerous.
throw new Error("Invalid base64 input, it looks like a data url.");var f,d=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&d--,e.charAt(e.length-2)===a.charAt(64)&&d--,d%1!=0)
// totalLength is not an integer, the length does not match a valid
// base64 content. That can happen if:
// - the input is not a base64 content
// - the input is *almost* a base64 content, with a extra chars at the
//   beginning or at the end
// - the input uses a base64 variant (base64url for example)
throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|d):new Array(0|d);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,64!==s&&(f[u++]=n),64!==c&&(f[u++]=r);return f}},{"./support":40,"./utils":42}],12:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");
/**
 * Represent a compressed object, with everything needed to decompress it.
 * @constructor
 * @param {number} compressedSize the size of the data compressed.
 * @param {number} uncompressedSize the size of the data after decompression.
 * @param {number} crc32 the crc32 of the decompressed file.
 * @param {object} compression the type of compression, see lib/compressions.js.
 * @param {String|ArrayBuffer|Uint8Array|Buffer} data the compressed data.
 */
function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}a=e("./stream/DataLengthProbe"),s.prototype={
/**
     * Create a worker to get the uncompressed content.
     * @return {GenericWorker} the worker.
     */
getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},
/**
     * Create a worker to get the compressed content.
     * @return {GenericWorker} the worker.
     */
getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},
/**
 * Chain the given worker with other workers to compress the content with the
 * given compression.
 * @param {GenericWorker} uncompressedWorker the worker to pipe.
 * @param {Object} compression the compression object.
 * @param {Object} compressionOptions the options to use when compressing.
 * @return {GenericWorker} the new worker compressing the content.
 */
s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":16,"./stream/Crc32Probe":35,"./stream/DataLengthProbe":36,"./stream/DataWorker":37}],13:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":17,"./stream/GenericWorker":38}],14:[function(e,t,n){"use strict";var r=e("./utils");
/**
 * The following functions come from pako, from pako/lib/zlib/crc32.js
 * released under the MIT license, see pako https://github.com/nodeca/pako/
 */
// Use ordinary array, since untyped makes no boost here
function i(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}
// Create table on load. Just 255 signed longs. Not a problem.
var a=i();function o(e,t,n,r){var i=a,o=r+n;e=~e;for(var s=r;s<o;s++)e=e>>>8^i[255&(e^t[s])];return~e;// >>> 0;
}
// That's all for the pako functions.
/**
 * Compute the crc32 of a string.
 * This is almost the same as the function crc32, but for strings. Using the
 * same function for the two use cases leads to horrible performances.
 * @param {Number} crc the starting value of the crc.
 * @param {String} str the string to use.
 * @param {Number} len the length of the string.
 * @param {Number} pos the starting position for the crc32 computation.
 * @return {Number} the computed crc32.
 */function s(e,t,n,r){var i=a,o=r+n;e=~e;for(var s=r;s<o;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return~e;// >>> 0;
}t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?o(0|t,e,e.length,0):s(0|t,e,e.length,0):0}},{"./utils":42}],15:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],16:[function(e,t,n){
/* global Promise */
"use strict";
// load the global object first:
// - it should be better integrated in the system (unhandledRejection in node)
// - the environment may have a custom Promise implementation (see zone.js)
var r=null;r="undefined"!=typeof Promise?Promise:e("lie")
/**
 * Let the user use/change some implementations.
 */,t.exports={Promise:r}},{lie:46}],17:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";
/**
 * Create a worker that uses pako to inflate/deflate.
 * @constructor
 * @param {String} action the name of the pako function to call : either "Deflate" or "Inflate".
 * @param {Object} options the options to use when (de)compressing.
 */
function c(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,
// the `meta` object from the last chunk received
// this allow this worker to pass around metadata
this.meta={}}n.magic="\b\0",a.inherits(c,o),
/**
 * @see GenericWorker.processChunk
 */
c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},
/**
 * @see GenericWorker.flush
 */
c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},
/**
 * @see GenericWorker.cleanUp
 */
c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},
/**
 * Create the _pako object.
 * TODO: lazy-loading this object isn't the best solution but it's the
 * quickest. The best solution is to lazy-load the worker list. See also the
 * issue #446.
 */
c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":38,"./utils":42,pako:47}],18:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker"),a=e("../utf8"),o=e("../crc32"),s=e("../signature"),c=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},l=function(e,t){var n=e;return e||(
// I can't use octal values in strict mode, hence the hexa.
//  040775 => 0x41fd
// 0100664 => 0x81b4
n=t?16893:33204),(65535&n)<<16},u=function(e,t){
// the dir flag is already set for compatibility
return 63&(e||0)},h=function(e,t,n,i,h,f){var d,p,g=e.file,m=e.compression,v=f!==a.utf8encode,y=r.transformTo("string",f(g.name)),A=r.transformTo("string",a.utf8encode(g.name)),b=g.comment,w=r.transformTo("string",f(b)),x=r.transformTo("string",a.utf8encode(b)),C=A.length!==g.name.length,_=x.length!==b.length,I="",E="",k="",S=g.dir,B=g.date,M={crc32:0,compressedSize:0,uncompressedSize:0};
// if the content is streamed, the sizes/crc32 are only available AFTER
// the end of the stream.
t&&!n||(M.crc32=e.crc32,M.compressedSize=e.compressedSize,M.uncompressedSize=e.uncompressedSize);var T=0;t&&(
// Bit 3: the sizes/crc32 are set to zero in the local header.
// The correct values are put in the data descriptor immediately
// following the compressed data.
T|=8),v||!C&&!_||(
// Bit 11: Language encoding flag (EFS).
T|=2048);var O=0,D=0;S&&(
// dos or unix, we set the dos dir flag
O|=16),"UNIX"===h?(D=798,// UNIX, version 3.0
O|=l(g.unixPermissions,S)):(// DOS or other, fallback to DOS
D=20,// DOS, version 2.0
O|=u(g.dosPermissions,S)),
// date
// @see http://www.delorie.com/djgpp/doc/rbinter/it/52/13.html
// @see http://www.delorie.com/djgpp/doc/rbinter/it/65/16.html
// @see http://www.delorie.com/djgpp/doc/rbinter/it/66/16.html
d=B.getUTCHours(),d<<=6,d|=B.getUTCMinutes(),d<<=5,d|=B.getUTCSeconds()/2,p=B.getUTCFullYear()-1980,p<<=4,p|=B.getUTCMonth()+1,p<<=5,p|=B.getUTCDate(),C&&(
// set the unicode path extra field. unzip needs at least one extra
// field to correctly handle unicode path, so using the path is as good
// as any other information. This could improve the situation with
// other archive managers too.
// This field is usually used without the utf8 flag, with a non
// unicode path in the header (winrar, winzip). This helps (a bit)
// with the messy Windows' default compressed folders feature but
// breaks on p7zip which doesn't seek the unicode path extra field.
// So for now, UTF-8 everywhere !
E=
// Version
c(1,1)+
// NameCRC32
c(o(y),4)+
// UnicodeName
A,I+=
// Info-ZIP Unicode Path Extra Field
"up"+
// size
c(E.length,2)+
// content
E),_&&(k=
// Version
c(1,1)+
// CommentCRC32
c(o(w),4)+
// UnicodeName
x,I+=
// Info-ZIP Unicode Path Extra Field
"uc"+
// size
c(k.length,2)+
// content
k);var P="";
// version needed to extract
return P+="\n\0",
// general purpose bit flag
P+=c(T,2),
// compression method
P+=m.magic,
// last mod file time
P+=c(d,2),
// last mod file date
P+=c(p,2),
// crc-32
P+=c(M.crc32,4),
// compressed size
P+=c(M.compressedSize,4),
// uncompressed size
P+=c(M.uncompressedSize,4),
// file name length
P+=c(y.length,2),
// extra field length
P+=c(I.length,2),{fileRecord:s.LOCAL_FILE_HEADER+P+y+I,dirRecord:s.CENTRAL_FILE_HEADER+
// version made by (00: DOS)
c(D,2)+
// file header (common to file and central directory)
P+
// file comment length
c(w.length,2)+"\0\0\0\0"+
// external file attributes
c(O,4)+
// relative offset of local header
c(i,4)+
// file name
y+
// extra field
I+
// file comment
w}},f=function(e,t,n,i,a){var o=r.transformTo("string",a(i));return s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+
// total number of entries in the central directory on this disk
c(e,2)+
// total number of entries in the central directory
c(e,2)+
// size of the central directory   4 bytes
c(t,4)+
// offset of start of central directory with respect to the starting disk number
c(n,4)+
// .ZIP file comment length
c(o.length,2)+
// .ZIP file comment
o},d=function(e){return s.DATA_DESCRIPTOR+
// crc-32                          4 bytes
c(e.crc32,4)+
// compressed size                 4 bytes
c(e.compressedSize,4)+
// uncompressed size               4 bytes
c(e.uncompressedSize,4)};
/**
 * A worker to concatenate other workers to create a zip file.
 * @param {Boolean} streamFiles `true` to stream the content of the files,
 * `false` to accumulate it.
 * @param {String} comment the comment to use.
 * @param {String} platform the platform to use, "UNIX" or "DOS".
 * @param {Function} encodeFileName the function to encode file names and comments.
 */
function p(e,t,n,r){i.call(this,"ZipFileWorker"),
// The number of bytes written so far. This doesn't count accumulated chunks.
this.bytesWritten=0,
// The comment of the zip file
this.zipComment=t,
// The platform "generating" the zip file.
this.zipPlatform=n,
// the function to encode file names and comments.
this.encodeFileName=r,
// Should we stream the content of the files ?
this.streamFiles=e,
// If `streamFiles` is false, we will need to accumulate the content of the
// files to calculate sizes / crc32 (and write them *before* the content).
// This boolean indicates if we are accumulating chunks (it will change a lot
// during the lifetime of this worker).
this.accumulate=!1,
// The buffer receiving chunks when accumulating content.
this.contentBuffer=[],
// The list of generated directory records.
this.dirRecords=[],
// The offset (in bytes) from the beginning of the zip file for the current source.
this.currentSourceOffset=0,
// The total number of entries in this zip file.
this.entriesCount=0,
// the name of the file currently being added, null when handling the end of the zip file.
// Used for the emitted metadata.
this.currentFile=null,this._sources=[]}r.inherits(p,i),
/**
 * @see GenericWorker.push
 */
p.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},
/**
 * The worker started a new source (an other worker).
 * @param {Object} streamInfo the streamInfo object from the new source.
 */
p.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;
// don't stream folders (because they don't have any content)
if(t){var n=h(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else
// we need to wait for the whole file before pushing anything
this.accumulate=!0},
/**
 * The worker finished a source (an other worker).
 * @param {Object} streamInfo the streamInfo object from the finished source.
 */
p.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=h(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)
// after the streamed file, we put data descriptors
this.push({data:d(e),meta:{percent:100}});else for(
// the content wasn't streamed, we need to push everything now
// first the file record, then the content
this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},
/**
 * @see GenericWorker.flush
 */
p.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=f(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},
/**
 * Prepare the next source to be read.
 */
p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},
/**
 * @see GenericWorker.registerPrevious
 */
p.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},
/**
 * @see GenericWorker.resume
 */
p.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},
/**
 * @see GenericWorker.error
 */
p.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){
// the `error` exploded, nothing to do
}return!0},
/**
 * @see GenericWorker.lock
 */
p.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=p},{"../crc32":14,"../signature":33,"../stream/GenericWorker":38,"../utf8":41,"../utils":42}],19:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker"),a=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i};
/**
 * Create a worker to generate a zip file.
 * @param {JSZip} zip the JSZip instance at the right root level.
 * @param {Object} options to generate the zip file.
 * @param {String} comment the comment to use.
 */
n.generateWorker=function(e,t,n){var r=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var i=a(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(e){r.error(e)}return r}},{"../compressions":13,"./ZipFileWorker":18}],20:[function(e,t,n){"use strict";
/**
 * Representation a of zip file in js
 * @constructor
 */function r(){
// if this constructor is used without `new`, it adds `new` before itself:
if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
// object containing the files :
// {
//   "folder/" : {...},
//   "folder/data.txt" : {...}
// }
this.files={},this.comment=null,
// Where we are in the hierarchy
this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}r.prototype=e("./object"),r.prototype.loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),
// TODO find a better way to handle this version,
// a require('package.json').version doesn't work with webpack, see #327
r.version="3.5.0",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":15,"./external":16,"./load":21,"./object":25,"./support":40}],21:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=(r=e("./utils"),e("./zipEntries")),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");
/**
 * Check the CRC32 of an entry.
 * @param {ZipEntry} zipEntry the zip entry to check.
 * @return {Promise} the result.
 */
function l(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,a=0;a<i.length;a++){var o=i[a];n.file(o.fileNameStr,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":16,"./nodejsUtils":22,"./stream/Crc32Probe":35,"./utf8":41,"./utils":42,"./zipEntries":43}],22:[function(e,t,n){(function(e){"use strict";t.exports={
/**
     * True if this is running in Nodejs, will be undefined in a browser.
     * In a browser, browserify won't include this file and the whole module
     * will be resolved an empty object.
     */
isNode:void 0!==e,
/**
     * Create a new nodejs Buffer from an existing content.
     * @param {Object} data the data to pass to the constructor.
     * @param {String} encoding the encoding to use.
     * @return {Buffer} a new Buffer.
     */
newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)
// Safeguard for old Node.js versions. On newer versions,
// Buffer.from(number) / Buffer(number, encoding) already throw.
throw new Error('The "data" argument must not be a number');return new e(t,n)},
/**
     * Create a new nodejs Buffer with the specified size.
     * @param {Integer} size the size of the buffer.
     * @return {Buffer} a new Buffer.
     */
allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},
/**
     * Find out if an object is a Buffer.
     * @param {Object} b the object to test.
     * @return {Boolean} true if the object is a Buffer, false otherwise.
     */
isBuffer:function(t){return e.isBuffer(t)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}}).call(this,e("buffer").Buffer)},{buffer:3}],23:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");
/**
 * A worker that use a nodejs stream as source.
 * @constructor
 * @param {String} filename the name of the file entry for this stream.
 * @param {Readable} stream the nodejs stream.
 */
function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),
/**
 * Prepare the stream and bind the callbacks on it.
 * Do this ASAP on node 0.10 ! A lazy binding doesn't always work.
 * @param {Stream} stream the nodejs stream to use.
 */
a.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":38,"../utils":42}],24:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;
/**
* A nodejs stream using a worker as source.
* @see the SourceWrapper in http://nodejs.org/api/stream.html
* @constructor
* @param {StreamHelper} helper the helper wrapping the worker
* @param {Object} options the nodejs stream options
* @param {Function} updateCb the update callback.
*/
function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":42,"readable-stream":26}],25:[function(e,t,n){"use strict";var r=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),s=e("./defaults"),c=e("./compressedObject"),l=e("./zipObject"),u=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),d=function(e,t,n){
// be sure sub folders exist
var r,o=i.getTypeOf(t),u=i.extend(n||{},s);
/*
     * Correct options.
     */u.date=u.date||new Date,null!==u.compression&&(u.compression=u.compression.toUpperCase()),"string"==typeof u.unixPermissions&&(u.unixPermissions=parseInt(u.unixPermissions,8)),
// UNX_IFDIR  0040000 see zipinfo.c
u.unixPermissions&&16384&u.unixPermissions&&(u.dir=!0),
// Bit 4    Directory
u.dosPermissions&&16&u.dosPermissions&&(u.dir=!0),u.dir&&(e=g(e)),u.createFolders&&(r=p(e))&&m.call(this,r,!0);var d="string"===o&&!1===u.binary&&!1===u.base64;n&&void 0!==n.binary||(u.binary=!d),(t instanceof c&&0===t.uncompressedSize||u.dir||!t||0===t.length)&&(u.base64=!1,u.binary=!0,t="",u.compression="STORE",o="string")
/*
     * Convert content to fit.
     */;var v=null;v=t instanceof c||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):i.prepareContent(e,t,u.binary,u.optimizedBinaryString,u.base64);var y=new l(e,v,u);this.files[e]=y},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},g=function(e){
// Check the name ends with a /
return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:s.createFolders,e=g(e),
// Does this folder already exist?
this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};
/**
* Cross-window, cross-Node-context regular expression detection
* @param  {Object}  object Anything
* @return {Boolean}        true if the object is a regular expression,
* false otherwise
*/
function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}
// return the actual prototype of JSZip
var y={
/**
     * @see loadAsync
     */
load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},
/**
     * Call a callback function for each entry at this folder level.
     * @param {Function} cb the callback function:
     * function (relativePath, file) {...}
     * It takes 2 arguments : the relative path and the file.
     */
forEach:function(e){var t,n,r;for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&// the file is in the current root
e(n,r))},
/**
     * Filter nested files/folders with the specified function.
     * @param {Function} search the predicate to use :
     * function (relativePath, file) {...}
     * It takes 2 arguments : the relative path and the file.
     * @return {Array} An array of matching elements.
     */
filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&// the file matches the function
t.push(r)})),t},
/**
     * Add a file to the zip file, or search a file.
     * @param   {string|RegExp} name The name of the file to add (if data is defined),
     * the name of the file to find (if no data) or a regex to match files.
     * @param   {String|ArrayBuffer|Uint8Array|Buffer} data  The file data, either raw or base64 encoded
     * @param   {Object} o     File options
     * @return  {JSZip|Object|Array} this JSZip object (when adding a file),
     * a file (when searching by string) or an array of files (when searching by regex).
     */
file:function(e,t,n){if(1===arguments.length){if(v(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}// text
var i=this.files[this.root+e];return i&&!i.dir?i:null}// more than one argument : we have data !
return e=this.root+e,d.call(this,e,t,n),this},
/**
     * Add a directory to the zip file, or search.
     * @param   {String|RegExp} arg The name of the directory to add, or a regex to search folders.
     * @return  {JSZip} an object with the new directory as the root, or an array containing matching folders.
     */
folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));
// else, name is a new folder
var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},
/**
     * Delete a file, or a directory and all sub-files, from the zip
     * @param {string} name the name of the file to delete
     * @return {JSZip} this JSZip object
     */
remove:function(e){e=this.root+e;var t=this.files[e];if(t||(
// Look for any folders
"/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)
// file
delete this.files[e];else for(
// maybe a folder, delete recursively
var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},
/**
     * Generate the complete zip file
     * @param {Object} options the options to generate the zip file :
     * - compression, "STORE" by default.
     * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
     * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file
     */
generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},
/**
     * Generate the complete zip file as an internal stream.
     * @param {Object} options the options to generate the zip file :
     * - compression, "STORE" by default.
     * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
     * @return {StreamHelper} the streamed zip file.
     */
generateInternalStream:function(e){var t,n={};try{if((n=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),
// "binarystring" is preferred but the internals use "string".
"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");i.checkSupport(n.type),
// accept nodejs `process.platform`
"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var s=n.comment||this.comment||"";t=u.generateWorker(this,n,s)}catch(e){(t=new a("error")).error(e)}return new o(t,n.type||"string",n.mimeType)},
/**
     * Generate the complete zip file asynchronously.
     * @see generateInternalStream
     */
generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},
/**
     * Generate the complete zip file asynchronously.
     * @see generateInternalStream
     */
generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":12,"./defaults":15,"./generate":19,"./nodejs/NodejsStreamInputAdapter":23,"./nodejsUtils":22,"./stream/GenericWorker":38,"./stream/StreamHelper":39,"./utf8":41,"./utils":42,"./zipObject":45}],26:[function(e,t,n){
/*
 * This file is used by module bundlers (browserify/webpack/etc) when
 * including a stream implementation. We use "readable-stream" to get a
 * consistent behavior between nodejs versions but bundlers often have a shim
 * for "stream". Using this shim greatly improve the compatibility and greatly
 * reduce the final size of the bundle (only one stream implementation, not
 * two).
 */
t.exports=e("stream")},{stream:80}],27:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),
/**
 * @see DataReader.byteAt
 */
i.prototype.byteAt=function(e){return this.data[this.zero+e]},
/**
 * @see DataReader.lastIndexOfSignature
 */
i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},
/**
 * @see DataReader.readAndCheckSignature
 */
i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},
/**
 * @see DataReader.readData
 */
i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":42,"./DataReader":28}],28:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,// type : see implementation
this.length=e.length,this.index=0,this.zero=0}i.prototype={
/**
     * Check that the offset will not go too far.
     * @param {string} offset the additional offset to check.
     * @throws {Error} an Error if the offset is out of bounds.
     */
checkOffset:function(e){this.checkIndex(this.index+e)},
/**
     * Check that the specified index will not be too far.
     * @param {string} newIndex the index to check.
     * @throws {Error} an Error if the index is out of bounds.
     */
checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},
/**
     * Change the index.
     * @param {number} newIndex The new index.
     * @throws {Error} if the new index is out of the data.
     */
setIndex:function(e){this.checkIndex(e),this.index=e},
/**
     * Skip the next n bytes.
     * @param {number} n the number of bytes to skip.
     * @throws {Error} if the new index is out of the data.
     */
skip:function(e){this.setIndex(this.index+e)},
/**
     * Get the byte at the specified index.
     * @param {number} i the index to use.
     * @return {number} a byte.
     */
byteAt:function(e){
// see implementations
},
/**
     * Get the next number with a given byte size.
     * @param {number} size the number of bytes to read.
     * @return {number} the corresponding number.
     */
readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},
/**
     * Get the next string with a given byte size.
     * @param {number} size the number of bytes to read.
     * @return {string} the corresponding string.
     */
readString:function(e){return r.transformTo("string",this.readData(e))},
/**
     * Get raw data without conversion, <size> bytes.
     * @param {number} size the number of bytes to read.
     * @return {Object} the raw data, implementation specific.
     */
readData:function(e){
// see implementations
},
/**
     * Find the last occurrence of a zip signature (4 bytes).
     * @param {string} sig the signature to find.
     * @return {number} the index of the last occurrence, -1 if not found.
     */
lastIndexOfSignature:function(e){
// see implementations
},
/**
     * Read the signature (4 bytes) at the current position and compare it with sig.
     * @param {string} sig the expected signature
     * @return {boolean} true if the signature matches, false otherwise.
     */
readAndCheckSignature:function(e){
// see implementations
},
/**
     * Get the next date.
     * @return {Date} the date.
     */
readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),// year
(e>>21&15)-1,// month
e>>16&31,// day
e>>11&31,// hour
e>>5&63,// minute
(31&e)<<1));// second
}},t.exports=i},{"../utils":42}],29:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),
/**
 * @see DataReader.readData
 */
i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":42,"./Uint8ArrayReader":31}],30:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),
/**
 * @see DataReader.byteAt
 */
i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},
/**
 * @see DataReader.lastIndexOfSignature
 */
i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},
/**
 * @see DataReader.readAndCheckSignature
 */
i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},
/**
 * @see DataReader.readData
 */
i.prototype.readData=function(e){this.checkOffset(e);
// this will work because the constructor applied the "& 0xff" mask.
var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":42,"./DataReader":28}],31:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),
/**
 * @see DataReader.readData
 */
i.prototype.readData=function(e){if(this.checkOffset(e),0===e)
// in IE10, when using subarray(idx, idx), we get the array [0x00] instead of [].
return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":42,"./ArrayReader":27}],32:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");
/**
 * Create a reader adapted to the data.
 * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data to read.
 * @return {DataReader} the data reader.
 */
t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new c(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":40,"../utils":42,"./ArrayReader":27,"./NodeBufferReader":29,"./StringReader":30,"./Uint8ArrayReader":31}],33:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],34:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");
/**
 * A worker which convert chunks to a specified type.
 * @constructor
 * @param {String} destType the destination type.
 */
function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),
/**
 * @see GenericWorker.processChunk
 */
a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":42,"./GenericWorker":38}],35:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");
/**
 * A worker which calculate the crc32 of the data flowing through.
 * @constructor
 */
function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),
/**
 * @see GenericWorker.processChunk
 */
a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":14,"../utils":42,"./GenericWorker":38}],36:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");
/**
 * A worker which calculate the total length of the data flowing through.
 * @constructor
 * @param {String} propName the name used to expose the length
 */
function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),
/**
 * @see GenericWorker.processChunk
 */
a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":42,"./GenericWorker":38}],37:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker"),a=16384;
/**
 * A worker that reads a content and emits chunks.
 * @constructor
 * @param {Promise} dataP the promise of the data to split
 */
function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),
/**
 * @see GenericWorker.cleanUp
 */
o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},
/**
 * @see GenericWorker.resume
 */
o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},
/**
 * Trigger a tick a schedule an other call to this function.
 */
o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},
/**
 * Read and push a chunk.
 */
o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=a,t=null,n=Math.min(this.max,this.index+e);if(this.index>=this.max)
// EOF
return this.end();switch(this.type){case"string":t=this.data.substring(this.index,n);break;case"uint8array":t=this.data.subarray(this.index,n);break;case"array":case"nodebuffer":t=this.data.slice(this.index,n)}return this.index=n,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":42,"./GenericWorker":38}],38:[function(e,t,n){"use strict";
/**
 * A worker that does nothing but passing chunks to the next one. This is like
 * a nodejs stream but with some differences. On the good side :
 * - it works on IE 6-9 without any issue / polyfill
 * - it weights less than the full dependencies bundled with browserify
 * - it forwards errors (no need to declare an error handler EVERYWHERE)
 *
 * A chunk is an object with 2 attributes : `meta` and `data`. The former is an
 * object containing anything (`percent` for example), see each worker for more
 * details. The latter is the real data (String, Uint8Array, etc).
 *
 * @constructor
 * @param {String} name the name of the stream (mainly used for debugging purposes)
 */function r(e){
// the name of the worker
this.name=e||"default",
// an object containing metadata about the workers chain
this.streamInfo={},
// an error which happened when the worker was paused
this.generatedError=null,
// an object containing metadata to be merged by this worker into the general metadata
this.extraStreamInfo={},
// true if the stream is paused (and should not do anything), false otherwise
this.isPaused=!0,
// true if the stream is finished (and should not do anything), false otherwise
this.isFinished=!1,
// true if the stream is locked to prevent further structure updates (pipe), false otherwise
this.isLocked=!1,
// the event listeners
this._listeners={data:[],end:[],error:[]},
// the previous worker, if any
this.previous=null}r.prototype={
/**
     * Push a chunk to the next workers.
     * @param {Object} chunk the chunk to push
     */
push:function(e){this.emit("data",e)},
/**
     * End the stream.
     * @return {Boolean} true if this call ended the worker, false otherwise.
     */
end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},
/**
     * End the stream with an error.
     * @param {Error} e the error which caused the premature end.
     * @return {Boolean} true if this call ended the worker with an error, false otherwise.
     */
error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),
// in the workers chain exploded in the middle of the chain,
// the error event will go downward but we also need to notify
// workers upward that there has been an error.
this.previous&&this.previous.error(e),this.cleanUp()),!0)},
/**
     * Add a callback on an event.
     * @param {String} name the name of the event (data, end, error)
     * @param {Function} listener the function to call when the event is triggered
     * @return {GenericWorker} the current object for chainability
     */
on:function(e,t){return this._listeners[e].push(t),this},
/**
     * Clean any references when a worker is ending.
     */
cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},
/**
     * Trigger an event. This will call registered callback with the provided arg.
     * @param {String} name the name of the event (data, end, error)
     * @param {Object} arg the argument to call the callback with.
     */
emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},
/**
     * Chain a worker with an other.
     * @param {Worker} next the worker receiving events from the current one.
     * @return {worker} the next worker for chainability
     */
pipe:function(e){return e.registerPrevious(this)},
/**
     * Same as `pipe` in the other direction.
     * Using an API with `pipe(next)` is very easy.
     * Implementing the API with the point of view of the next one registering
     * a source is easier, see the ZipFileWorker.
     * @param {Worker} previous the previous worker, sending events to this one
     * @return {Worker} the current worker for chainability
     */
registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");
// sharing the streamInfo...
this.streamInfo=e.streamInfo,
// ... and adding our own bits
this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},
/**
     * Pause the stream so it doesn't send events anymore.
     * @return {Boolean} true if this call paused the worker, false otherwise.
     */
pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},
/**
     * Resume a paused stream.
     * @return {Boolean} true if this call resumed the worker, false otherwise.
     */
resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;
// if true, the worker tried to resume but failed
var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},
/**
     * Flush any remaining bytes as the stream is ending.
     */
flush:function(){},
/**
     * Process a chunk. This is usually the method overridden.
     * @param {Object} chunk the chunk to process.
     */
processChunk:function(e){this.push(e)},
/**
     * Add a key/value to be added in the workers chain streamInfo once activated.
     * @param {String} key the key to use
     * @param {Object} value the associated value
     * @return {Worker} the current worker for chainability
     */
withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},
/**
     * Merge this worker's streamInfo into the chain's streamInfo.
     */
mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},
/**
     * Lock the stream to prevent further updates on the workers chain.
     * After calling this method, all calls to pipe will fail.
     */
lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},
/**
     *
     * Pretty print the workers chain.
     */
toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],39:[function(e,t,n){(function(n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),c=e("../external"),l=null;if(s.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}
/**
 * Apply the final transformation of the data. If the user wants a Blob for
 * example, it's easier to work with an U8intArray and finally do the
 * ArrayBuffer/Blob conversion.
 * @param {String} type the name of the final type
 * @param {String|Uint8Array|Buffer} content the content to transform
 * @param {String} mimeType the mime type of the content, if applicable.
 * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the content in the right format.
 */function u(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return r.transformTo(e,t)}}
/**
 * Concatenate an array of data of the given type.
 * @param {String} type the type of the data in the given array.
 * @param {Array} dataArray the array containing the data chunks to concatenate
 * @return {String|Uint8Array|Buffer} the concatenated data
 * @throws Error if the asked type is unsupported
 */function h(e,t){var r,i=0,a=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(o),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return n.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}
/**
 * Listen a StreamHelper, accumulate its content and concatenate it into a
 * complete block.
 * @param {StreamHelper} helper the helper to use.
 * @param {Function} updateCallback a callback called on each update. Called
 * with one arg :
 * - the metadata linked to the update received.
 * @return Promise the promise for the accumulation.
 */function f(e,t){return new c.Promise((function(n,r){var i=[],a=e._internalType,o=e._outputType,s=e._mimeType;e.on("data",(function(e,n){i.push(e),t&&t(n)})).on("error",(function(e){i=[],r(e)})).on("end",(function(){try{var e=u(o,h(a,i),s);n(e)}catch(e){r(e)}i=[]})).resume()}))}
/**
 * An helper to easily use workers outside of JSZip.
 * @constructor
 * @param {Worker} worker the worker to wrap
 * @param {String} outputType the type of data expected by the use
 * @param {String} mimeType the mime type of the content, if applicable.
 */function d(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{
// the type used internally
this._internalType=o,
// the type used to output results
this._outputType=t,
// the mime type
this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),
// the last workers can be rewired without issues but we need to
// prevent any updates on previous workers.
e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}d.prototype={
/**
     * Listen a StreamHelper, accumulate its content and concatenate it into a
     * complete block.
     * @param {Function} updateCb the update callback.
     * @return Promise the promise for the accumulation.
     */
accumulate:function(e){return f(this,e)},
/**
     * Add a listener on an event triggered on a stream.
     * @param {String} evt the name of the event
     * @param {Function} fn the listener
     * @return {StreamHelper} the current helper.
     */
on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},
/**
     * Resume the flow of chunks.
     * @return {StreamHelper} the current helper.
     */
resume:function(){return r.delay(this._worker.resume,[],this._worker),this},
/**
     * Pause the flow of chunks.
     * @return {StreamHelper} the current helper.
     */
pause:function(){return this._worker.pause(),this},
/**
     * Return a nodejs stream for this helper.
     * @param {Function} updateCb the update callback.
     * @return {NodejsStreamOutputAdapter} the nodejs stream.
     */
toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)
// an object stream containing blob/arraybuffer/uint8array/string
// is strange and I don't know if it would be useful.
// I you find this comment and have a good usecase, please open a
// bug report !
throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d}).call(this,e("buffer").Buffer)},{"../base64":11,"../external":16,"../nodejs/NodejsStreamOutputAdapter":24,"../support":40,"../utils":42,"./ConvertWorker":34,"./GenericWorker":38,buffer:3}],40:[function(e,t,n){(function(t){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==t,
// contains true if JSZip can read/generate Uint8Array, false otherwise.
n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}}).call(this,e("buffer").Buffer)},{buffer:3,"readable-stream":26}],41:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;s[254]=s[254]=1;// Invalid sequence start
// convert string to array (typed, when possible)
var l=function(e){var t,n,r,a,o,s=e.length,c=0;
// count binary size
for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;
// allocate buffer
// convert
for(t=i.uint8array?new Uint8Array(c):new Array(c),o=0,a=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?
/* one byte */
t[o++]=n:n<2048?(
/* two bytes */
t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(
/* three bytes */
t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(
/* four bytes */
t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},u=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),
// go back from last position, until start of sequence found
n=t-1;n>=0&&128==(192&e[n]);)n--;
// Fuckup - very small and broken sequence,
// return max, because we should return something anyway.
return n<0||0===n?t:n+s[e[n]]>t?n:t;
// If we came to start of buffer - that means vuffer is too small,
// return max too.
},h=function(e){var t,n,i,a,o=e.length,c=new Array(2*o);for(n=0,t=0;t<o;)
// quick process ascii
if((i=e[t++])<128)c[n++]=i;else
// skip 5 & 6 byte codes
if((a=s[i])>4)c[n++]=65533,t+=a-1;else{
// join the rest
for(
// apply mask on first byte
i&=2===a?31:3===a?15:7;a>1&&t<o;)i=i<<6|63&e[t++],a--;
// terminated by end of string?
a>1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}
// shrinkBuf(utf16buf, out)
// return String.fromCharCode.apply(null, utf16buf);
return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)};
// Calculate max possible position in utf8 buffer,
// that will not break sequence. If that's not possible
// - (very small limits) return max size as is.

// buf[] - utf8 bytes array
// max   - length limit (mandatory);
/**
 * A worker to decode utf8 encoded binary chunks into string chunks.
 * @constructor
 */
function f(){o.call(this,"utf-8 decode"),
// the last bytes if a chunk didn't end with a complete codepoint.
this.leftOver=null}
/**
 * A worker to endcode string chunks into utf8 encoded binary chunks.
 * @constructor
 */
function d(){o.call(this,"utf-8 encode")}
// That's all for the pako functions.
/**
 * Transform a javascript string into an array (typed if possible) of bytes,
 * UTF-8 encoded.
 * @param {String} str the string to encode
 * @return {Array|Uint8Array|Buffer} the UTF-8 encoded string.
 */
n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):l(e)},
/**
 * Transform a bytes array (or a representation) representing an UTF-8 encoded
 * string into a javascript string.
 * @param {Array|Uint8Array|Buffer} buf the data de decode
 * @return {String} the decoded string.
 */
n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):(e=r.transformTo(i.uint8array?"uint8array":"array",e),h(e))},r.inherits(f,o),
/**
 * @see GenericWorker.processChunk
 */
f.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);
// 1st step, re-use what's left of the previous chunk
if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=u(t),s=t;o!==t.length&&(i.uint8array?(s=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(s=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(s),meta:e.meta})},
/**
 * @see GenericWorker.flush
 */
f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=f,r.inherits(d,o),
/**
 * @see GenericWorker.processChunk
 */
d.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=d},{"./nodejsUtils":22,"./stream/GenericWorker":38,"./support":40,"./utils":42}],42:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");
/**
 * Convert a string that pass as a "binary string": it should represent a byte
 * array but may have > 255 char codes. Be sure to take only the first byte
 * and returns the byte array.
 * @param {String} str the string to transform.
 * @return {Array|Uint8Array} the string in a binary format.
 */
function c(e){return u(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}
/**
 * Create a new blob with the given content and the given type.
 * @param {String|ArrayBuffer} part the content to put in the blob. DO NOT use
 * an Uint8Array because the stock browser of android 4 won't accept it (it
 * will be silently converted to a string, "[object Uint8Array]").
 *
 * Use only ONE part to build the blob to avoid a memory leak in IE11 / Edge:
 * when a large amount of Array is used to create the Blob, the amount of
 * memory consumed is nearly 100 times the original data amount.
 *
 * @param {String} type the mime type of the blob.
 * @return {Blob} the created blob.
 */
/**
 * The identity function.
 * @param {Object} input the input.
 * @return {Object} the same input.
 */
function l(e){return e}
/**
 * Fill in an array with a string.
 * @param {String} str the string to use.
 * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated).
 * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.
 */function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}
/**
 * An helper for the function arrayLikeToString.
 * This contains static information and functions that
 * can be optimized by the browser JIT compiler.
 */n.newBlob=function(e,t){n.checkSupport("blob");try{
// Blob constructor
return new Blob([e],{type:t})}catch(n){try{
// deprecated, browser only, old way
var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){
// well, fuck ?!
throw new Error("Bug : can't construct the Blob.")}}};var h={
/**
     * Transform an array of int into a string, chunk by chunk.
     * See the performances notes on arrayLikeToString.
     * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.
     * @param {String} type the type of the array.
     * @param {Integer} chunk the chunk size.
     * @return {String} the resulting string.
     * @throws Error if the chunk is too big for the stack.
     */
stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;
// shortcut
if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},
/**
     * Call String.fromCharCode on every item in the array.
     * This is the naive implementation, which generate A LOT of intermediate string.
     * This should be used when everything else fail.
     * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.
     * @return {String} the result.
     */
stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{
/**
         * true if the browser accepts to use String.fromCharCode on Uint8Array
         */
uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),
/**
         * true if the browser accepts to use String.fromCharCode on nodejs Buffer.
         */
nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};
/**
 * Transform an array-like object to a string.
 * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.
 * @return {String} the result.
 */function f(e){
// Performances notes :
// --------------------
// String.fromCharCode.apply(null, array) is the fastest, see
// see http://jsperf.com/converting-a-uint8array-to-a-string/2
// but the stack is limited (and we can get huge arrays !).
// result += String.fromCharCode(array[i]); generate too many strings !
// This code is inspired by http://jsperf.com/arraybuffer-to-string-apply-performance/2
// TODO : we now have workers that split the work. Do we still need that ?
var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=h.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=h.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return h.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}
// no apply or chunk error : slow and painful algorithm
// default browser on android 4.*
return h.stringifyByChar(e)}
/**
 * Copy the data from an array-like to an other array-like.
 * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array.
 * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated.
 * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array.
 */
function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}
// a matrix containing functions to transform everything into everything.
n.applyFromCharCode=f;var p={};
// string to ?
p.string={string:l,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,a.allocBuffer(e.length))}},
// array to ?
p.array={string:f,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},
// arraybuffer to ?
p.arraybuffer={string:function(e){return f(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},
// uint8array to ?
p.uint8array={string:f,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return a.newBufferFrom(e)}},
// nodebuffer to ?
p.nodebuffer={string:f,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:l},
/**
 * Transform an input into any type.
 * The supported output type are : string, array, uint8array, arraybuffer, nodebuffer.
 * If no output type is specified, the unmodified input will be returned.
 * @param {String} outputType the output type.
 * @param {String|Array|ArrayBuffer|Uint8Array|Buffer} input the input to convert.
 * @throws {Error} an Error if the browser doesn't support the requested output type.
 */
n.transformTo=function(e,t){if(t||(
// undefined, null, etc
// an empty string won't harm.
t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return p[r][e](t)},
/**
 * Return the type of the input.
 * The type will be in a format valid for JSZip.utils.transformTo : string, array, uint8array, arraybuffer.
 * @param {Object} input the input to identify.
 * @return {String} the (lowercase) type of the input.
 */
n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},
/**
 * Throw an exception if the type is not supported.
 * @param {String} type the type to check.
 * @throws {Error} an Error if the browser doesn't support the requested type.
 */
n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,// well, "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" is parsed as -1
/**
 * Prettify a string read as binary.
 * @param {string} str the string to prettify.
 * @return {string} a pretty string.
 */
n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},
/**
 * Defer the call of a function.
 * @param {Function} callback the function to call asynchronously.
 * @param {Array} args the arguments to give to the callback.
 */
n.delay=function(e,t,n){o((function(){e.apply(n||null,t||[])}))},
/**
 * Extends a prototype with an other, without calling a constructor with
 * side effects. Inspired by nodejs' `utils.inherits`
 * @param {Function} ctor the constructor to augment
 * @param {Function} superCtor the parent constructor to use
 */
n.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n},
/**
 * Merge the objects passed as parameters into a new one.
 * @private
 * @param {...Object} var_args All objects to merge.
 * @return {Object} a new object with the data of the others.
 */
n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)// arguments is not enumerable in some browsers
for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},
/**
 * Transform arbitrary content into a Promise.
 * @param {String} name a name for the content being processed.
 * @param {Object} inputData the content to process.
 * @param {Boolean} isBinary true if the content is not an unicode string
 * @param {Boolean} isOptimizedBinaryString true if the string content only has one byte per character.
 * @param {Boolean} isBase64 true if the string content is encoded with base64.
 * @return {Promise} a promise in a format usable by JSZip.
 */
n.prepareContent=function(e,t,a,o,l){return s.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var r=n.getTypeOf(t);return r?(
// special case : it's way easier to work with Uint8Array than with ArrayBuffer
"arraybuffer"===r?t=n.transformTo("uint8array",t):"string"===r&&(l?t=i.decode(t):a&&!0!==o&&(
// this is a string, not in a base64 format.
// Be sure that this is a correct "binary string"
t=c(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":11,"./external":16,"./nodejsUtils":22,"./support":40,"set-immediate-shim":79}],43:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));
//  class ZipEntries {{{
/**
 * All the entries in the zip file.
 * @constructor
 * @param {Object} loadOptions Options for loading the stream.
 */
function c(e){this.files=[],this.loadOptions=e}c.prototype={
/**
     * Check that the reader is on the specified signature.
     * @param {string} expectedSignature the expected signature.
     * @throws {Error} if it is an other signature.
     */
checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},
/**
     * Check if the given signature is at the given index.
     * @param {number} askedIndex the index to check.
     * @param {string} expectedSignature the signature to expect.
     * @return {boolean} true if the signature is here, false otherwise.
     */
isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},
/**
     * Read the end of the central directory.
     */
readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);
// warning : the encoding depends of the system locale
// On a linux machine with LANG=en_US.utf8, this field is utf8 encoded.
// On a windows machine, this field is encoded with the localized windows code page.
var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},
/**
     * Read the end of the Zip 64 central directory.
     * Not merged with the method readEndOfCentral :
     * The end of central can coexist with its Zip64 brother,
     * I don't want to read the wrong number of bytes !
     */
readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),
// this.versionMadeBy = this.reader.readString(2);
// this.versionNeeded = this.reader.readInt(2);
this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44,i=0;i<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},
/**
     * Read the end of the Zip 64 central directory locator.
     */
readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},
/**
     * Read the local files, based on the offset read in the central part.
     */
readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},
/**
     * Read the central directory.
     */
readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)
// We expected some records but couldn't find ANY.
// This is really suspicious, as if something went wrong.
throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},
/**
     * Read the end of central directory.
     */
readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;
/* extract from the zip spec :
            4)  If one of the fields in the end of central directory
                record is too small to hold required data, the field
                should be set to -1 (0xFFFF or 0xFFFFFFFF) and the
                ZIP64 format record should be created.
            5)  The end of central directory record and the
                Zip64 end of central directory locator record must
                reside on the same disk when splitting or spanning
                an archive.
         */
if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(
/*
            Warning : the zip64 extension is supported, but ONLY if the 64bits integer read from
            the zip file can fit into a 32bits integer. This cannot be solved : JavaScript represents
            all numbers as 64-bit double precision IEEE 754 floating point numbers.
            So, we have 53bits for integers and bitwise operations treat everything as 32bits.
            see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Bitwise_Operators
            and http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf section 8.5
            */
// should look for a zip64 EOCD locator
e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
// now the zip64 EOCD record
if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(
// console.warn("ZIP64 end of central directory not where expected.");
this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,// end of central dir 64 locator
n+=12/* should not include the leading 12 bytes */+this.zip64EndOfCentralSize);var r=t-n;if(r>0)
// console.warn(extraBytes, "extra bytes at beginning or within zipfile");
this.isSignature(t,a.CENTRAL_FILE_HEADER)||(
// the offset is wrong, update the "zero" of the reader
// this happens if data has been prepended (crx files for example)
this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},
/**
     * Read a zip file and create ZipEntries.
     * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file.
     */
load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},
// }}} end of ZipEntries
t.exports=c},{"./reader/readerFor":32,"./signature":33,"./support":40,"./utf8":41,"./utils":42,"./zipEntry":44}],44:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),c=e("./compressions"),l=e("./support"),u=0,h=3,f=function(e){for(var t in c)if(c.hasOwnProperty(t)&&c[t].magic===e)return c[t];return null};
// class ZipEntry {{{
/**
 * An entry in the zip file.
 * @constructor
 * @param {Object} options Options of the current file.
 * @param {Object} loadOptions Options for loading the stream.
 */
function d(e,t){this.options=e,this.loadOptions=t}d.prototype={
/**
     * say if the file is encrypted.
     * @return {boolean} true if the file is encrypted, false otherwise.
     */
isEncrypted:function(){
// bit 1 is set
return!(1&~this.bitFlag)},
/**
     * say if the file has utf-8 filename/comment.
     * @return {boolean} true if the filename/comment is in utf-8, false otherwise.
     */
useUTF8:function(){
// bit 11 is set
return!(2048&~this.bitFlag)},
/**
     * Read the local part of a zip file and add the info in this object.
     * @param {DataReader} reader the reader to use.
     */
readLocalPart:function(e){var t,n;
// we already know everything from the central dir !
// If the central dir data are false, we are doomed.
// On the bright side, the local part is scary  : zip64, data descriptors, both, etc.
// The less data we get here, the more reliable this should be.
// Let's skip the whole header and dash to the data !
if(e.skip(22),
// in some zip created on windows, the filename stored in the central dir contains \ instead of /.
// Strangely, the filename here is OK.
// I would love to treat these zip files as corrupted (see http://www.info-zip.org/FAQ.html#backslashes
// or APPNOTE#4.4.17.1, "All slashes MUST be forward slashes '/'") but there are a lot of bad zip generators...
// Search "unzip mismatching "local" filename continuing with "central" filename version" on
// the internet.
// I think I see the logic here : the central directory is used to display
// content and the local directory is used to extract the files. Mixing / and \
// may be used to display \ to windows users and use / when extracting the files.
// Unfortunately, this lead also to some issues : http://seclists.org/fulldisclosure/2009/Sep/394
this.fileNameLength=e.readInt(2),n=e.readInt(2),// can't be sure this will be the same as the central dir
// the fileName is stored as binary data, the handleUTF8 method will take care of the encoding.
this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=f(this.compressionMethod)))// no compression found
throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},
/**
     * Read the central part of a zip file and add the info in this object.
     * @param {DataReader} reader the reader to use.
     */
readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),
// this.versionNeeded = reader.readInt(2);
this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");
// will be read in the local part, see the comments there
e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},
/**
     * Parse the external file attributes and get the unix/dos permissions.
     */
processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;
// Check if we have the DOS directory flag set.
// We look for it in the DOS and UNIX permissions
// but some unknown platform could set it as a compatibility flag.
this.dir=!!(16&this.externalFileAttributes),e===u&&(
// first 6 bits (0 to 5)
this.dosPermissions=63&this.externalFileAttributes),e===h&&(this.unixPermissions=this.externalFileAttributes>>16&65535),
// fail safe : if the name ends with a / it probably means a folder
this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},
/**
     * Parse the ZIP64 extra field and merge the info in the current ZipEntry.
     * @param {DataReader} reader the reader to use.
     */
parseZIP64ExtraField:function(e){if(this.extraFields[1]){
// should be something, preparing the extra reader
var t=r(this.extraFields[1].value);
// I really hope that these 64bits integer can fit in 32 bits integer, because js
// won't let us have more.
this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},
/**
     * Read the central part of a zip file and add the info in this object.
     * @param {DataReader} reader the reader to use.
     */
readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},
/**
     * Apply an UTF8 transformation if needed.
     */
handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{
// ASCII text or unsupported code page
var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{
// ASCII text or unsupported code page
var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},
/**
     * Find the unicode path declared in the extra field, if any.
     * @return {String} the unicode path, null otherwise.
     */
findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);
// wrong version
return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5));
// the crc of the filename changed, this field is out of date.
}return null},
/**
     * Find the unicode comment declared in the extra field, if any.
     * @return {String} the unicode comment, null otherwise.
     */
findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);
// wrong version
return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5));
// the crc of the comment changed, this field is out of date.
}return null}},t.exports=d},{"./compressedObject":12,"./compressions":13,"./crc32":14,"./reader/readerFor":32,"./support":40,"./utf8":41,"./utils":42}],45:[function(e,t,n){"use strict";var r=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),s=e("./stream/GenericWorker"),c=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,
// keep only the compression
this.options={compression:n.compression,compressionOptions:n.compressionOptions}};c.prototype={
/**
     * Create an internal stream for the content of this object.
     * @param {String} type the type of each chunk.
     * @return StreamHelper the stream.
     */
internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new r(t,n,"")},
/**
     * Prepare the content in the asked type.
     * @param {String} type the type of the result.
     * @param {Function} onUpdate a function to call on each internal update.
     * @return Promise the promise of the result.
     */
async:function(e,t){return this.internalStream(e).accumulate(t)},
/**
     * Prepare the content as a nodejs stream.
     * @param {String} type the type of each chunk.
     * @param {Function} onUpdate a function to call on each internal update.
     * @return Stream the stream.
     */
nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},
/**
     * Return a worker for the compressed content.
     * @private
     * @param {Object} compression the compression object to use.
     * @param {Object} compressionOptions the options to use when compressing.
     * @return Worker the worker.
     */
_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(n,e,t)},
/**
     * Return a worker for the decompressed content.
     * @private
     * @return Worker the worker.
     */
_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof s?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<l.length;h++)c.prototype[l[h]]=u;t.exports=c},{"./compressedObject":12,"./stream/DataWorker":37,"./stream/GenericWorker":38,"./stream/StreamHelper":39,"./utf8":41}],46:[function(e,t,n){"use strict";var r=e("immediate");
/* istanbul ignore next */function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function f(e){
// Make sure we only access the accessor once as required by the spec
var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){
// Either fulfill, reject or reject with error
var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}function o(){t(i,r)}var s=p(o);"error"===s.status&&r(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}function g(e){return e instanceof this?e:a.resolve(new this(i),e)}function m(e){var t=new this(i);return a.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){function c(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))}t.resolve(e).then(c,(function(e){r||(r=!0,a.reject(l,e))}))}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c(e[o]);return s;function c(e){t.resolve(e).then((function(e){r||(r=!0,a.resolve(s,e))}),(function(e){r||(r=!0,a.reject(s,e))}))}}t.exports=l,l.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(n,r);function n(n){function r(){return n}return t.resolve(e()).then(r)}function r(n){function r(){throw n}return t.resolve(e()).then(r)}},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=g,l.reject=m,l.all=v,l.race=y},{immediate:7}],47:[function(e,t,n){
// Top level file is just a mixin of submodules & constants
"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":48,"./lib/inflate":49,"./lib/utils/common":50,"./lib/zlib/constants":53}],48:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,l=0,u=4,h=0,f=1,d=2,p=-1,g=0,m=8;
/* ===========================================================================*/
/**
 * class Deflate
 *
 * Generic JS-style wrapper for zlib calls. If you don't need
 * streaming behaviour - use more simple functions: [[deflate]],
 * [[deflateRaw]] and [[gzip]].
 **/
/* internal
 * Deflate.chunks -> Array
 *
 * Chunks of output data, if [[Deflate#onData]] not overridden.
 **/
/**
 * Deflate.result -> Uint8Array|Array
 *
 * Compressed result, generated by default [[Deflate#onData]]
 * and [[Deflate#onEnd]] handlers. Filled after you push last chunk
 * (call [[Deflate#push]] with `Z_FINISH` / `true` param)  or if you
 * push a chunk with explicit flush (call [[Deflate#push]] with
 * `Z_SYNC_FLUSH` param).
 **/
/**
 * Deflate.err -> Number
 *
 * Error code after deflate finished. 0 (Z_OK) on success.
 * You will not need it in real life, because deflate errors
 * are possible only on wrong options or bad `onData` / `onEnd`
 * custom handlers.
 **/
/**
 * Deflate.msg -> String
 *
 * Error message, if [[Deflate.err]] != 0
 **/
/**
 * new Deflate(options)
 * - options (Object): zlib deflate options.
 *
 * Creates new deflator instance with specified params. Throws exception
 * on bad params. Supported options:
 *
 * - `level`
 * - `windowBits`
 * - `memLevel`
 * - `strategy`
 * - `dictionary`
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information on these.
 *
 * Additional options, for internal needs:
 *
 * - `chunkSize` - size of generated data chunks (16K by default)
 * - `raw` (Boolean) - do raw deflate
 * - `gzip` (Boolean) - create gzip wrapper
 * - `to` (String) - if equal to 'string', then result will be "binary string"
 *    (each char code [0..255])
 * - `header` (Object) - custom header for gzip
 *   - `text` (Boolean) - true if compressed data believed to be text
 *   - `time` (Number) - modification time, unix timestamp
 *   - `os` (Number) - operation system code
 *   - `extra` (Array) - array of bytes with extra data (max 65536)
 *   - `name` (String) - file name (binary string)
 *   - `comment` (String) - comment (binary string)
 *   - `hcrc` (Boolean) - true if header crc should be added
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])
 *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);
 *
 * var deflate = new pako.Deflate({ level: 3});
 *
 * deflate.push(chunk1, false);
 * deflate.push(chunk2, true);  // true -> last chunk
 *
 * if (deflate.err) { throw new Error(deflate.err); }
 *
 * console.log(deflate.result);
 * ```
 **/
function v(e){if(!(this instanceof v))return new v(e);this.options=i.assign({level:p,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:g,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,// error code, if happens (0 = Z_OK)
this.msg="",// error message
this.ended=!1,// used to avoid multiple onEnd() calls
this.chunks=[],// chunks of compressed data
this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==h)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var l;
// Convert data if needed
if(
// If we need to compress text, change encoding to utf8.
l="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,l))!==h)throw new Error(o[n]);this._dict_set=!0}}
/**
 * Deflate#push(data[, mode]) -> Boolean
 * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be
 *   converted to utf8 byte sequence.
 * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.
 *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.
 *
 * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with
 * new compressed chunks. Returns `true` on success. The last data block must have
 * mode Z_FINISH (or `true`). That will flush internal pending buffers and call
 * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you
 * can use mode Z_SYNC_FLUSH, keeping the compression context.
 *
 * On fail call [[Deflate#onEnd]] with error code and return false.
 *
 * We strongly recommend to use `Uint8Array` on input for best speed (output
 * array format is detected automatically). Also, don't skip last param and always
 * use the same type in your code (boolean or number). That will improve JS speed.
 *
 * For regular `Array`-s make sure all elements are [0..255].
 *
 * ##### Example
 *
 * ```javascript
 * push(chunk, false); // push one of data chunks
 * ...
 * push(chunk, true);  // push last chunk
 * ```
 **/
/**
 * deflate(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to compress.
 * - options (Object): zlib deflate options.
 *
 * Compress `data` with deflate algorithm and `options`.
 *
 * Supported options are:
 *
 * - level
 * - windowBits
 * - memLevel
 * - strategy
 * - dictionary
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information on these.
 *
 * Sugar (options):
 *
 * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
 *   negative windowBits implicitly.
 * - `to` (String) - if equal to 'string', then result will be "binary string"
 *    (each char code [0..255])
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , data = Uint8Array([1,2,3,4,5,6,7,8,9]);
 *
 * console.log(pako.deflate(data));
 * ```
 **/
function y(e,t){var n=new v(t);
// That will never happens, if you don't cheat with options :)
if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}
/**
 * deflateRaw(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to compress.
 * - options (Object): zlib deflate options.
 *
 * The same as [[deflate]], but creates raw data, without wrapper
 * (header and adler32 crc).
 **/function A(e,t){return(t=t||{}).raw=!0,y(e,t)}
/**
 * gzip(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to compress.
 * - options (Object): zlib deflate options.
 *
 * The same as [[deflate]], but create gzip wrapper instead of
 * deflate one.
 **/function b(e,t){return(t=t||{}).gzip=!0,y(e,t)}v.prototype.push=function(e,t){var n,o,s=this.strm,p=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?u:l,
// Convert data if needed
"string"==typeof e?
// If we need to compress text, change encoding to utf8.
s.input=a.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{/* no bad return value */
if(0===s.avail_out&&(s.output=new i.Buf8(p),s.next_out=0,s.avail_out=p),(n=r.deflate(s,o))!==f&&n!==h)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||o!==u&&o!==d)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&n!==f);
// Finalize on the last chunk.
return o===u?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===h):
// callback interim results if Z_SYNC_FLUSH.
o!==d||(this.onEnd(h),s.avail_out=0,!0)},
/**
 * Deflate#onData(chunk) -> Void
 * - chunk (Uint8Array|Array|String): output data. Type of array depends
 *   on js engine support. When string output requested, each chunk
 *   will be string.
 *
 * By default, stores data blocks in `chunks[]` property and glue
 * those in `onEnd`. Override this handler, if you need another behaviour.
 **/
v.prototype.onData=function(e){this.chunks.push(e)},
/**
 * Deflate#onEnd(status) -> Void
 * - status (Number): deflate status. 0 (Z_OK) on success,
 *   other if not.
 *
 * Called once after you tell deflate that the input stream is
 * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)
 * or if an error happened. By default - join collected chunks,
 * free memory and fill `results` / `err` properties.
 **/
v.prototype.onEnd=function(e){
// On success - join
e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=v,n.deflate=y,n.deflateRaw=A,n.gzip=b},{"./utils/common":50,"./utils/strings":51,"./zlib/deflate":55,"./zlib/messages":60,"./zlib/zstream":62}],49:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),u=Object.prototype.toString;
/**
 * class Inflate
 *
 * Generic JS-style wrapper for zlib calls. If you don't need
 * streaming behaviour - use more simple functions: [[inflate]]
 * and [[inflateRaw]].
 **/
/* internal
 * inflate.chunks -> Array
 *
 * Chunks of output data, if [[Inflate#onData]] not overridden.
 **/
/**
 * Inflate.result -> Uint8Array|Array|String
 *
 * Uncompressed result, generated by default [[Inflate#onData]]
 * and [[Inflate#onEnd]] handlers. Filled after you push last chunk
 * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you
 * push a chunk with explicit flush (call [[Inflate#push]] with
 * `Z_SYNC_FLUSH` param).
 **/
/**
 * Inflate.err -> Number
 *
 * Error code after inflate finished. 0 (Z_OK) on success.
 * Should be checked if broken data possible.
 **/
/**
 * Inflate.msg -> String
 *
 * Error message, if [[Inflate.err]] != 0
 **/
/**
 * new Inflate(options)
 * - options (Object): zlib inflate options.
 *
 * Creates new inflator instance with specified params. Throws exception
 * on bad params. Supported options:
 *
 * - `windowBits`
 * - `dictionary`
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information on these.
 *
 * Additional options, for internal needs:
 *
 * - `chunkSize` - size of generated data chunks (16K by default)
 * - `raw` (Boolean) - do raw inflate
 * - `to` (String) - if equal to 'string', then result will be converted
 *   from utf8 to utf16 (javascript) string. When string output requested,
 *   chunk length can differ from `chunkSize`, depending on content.
 *
 * By default, when no options set, autodetect deflate/gzip data format via
 * wrapper header.
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])
 *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);
 *
 * var inflate = new pako.Inflate({ level: 3});
 *
 * inflate.push(chunk1, false);
 * inflate.push(chunk2, true);  // true -> last chunk
 *
 * if (inflate.err) { throw new Error(inflate.err); }
 *
 * console.log(inflate.result);
 * ```
 **/
function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;
// Force window size for `raw` data, if not set directly,
// because we have no header for autodetect.
t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),
// If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate
!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),
// Gzip header has no info about windows size, we can do autodetect only
// for deflate. So, if window size not set, force it to max when gzip possible
t.windowBits>15&&t.windowBits<48&&(
// bit 3 (16) -> gzipped data
// bit 4 (32) -> autodetect gzip/deflate
15&t.windowBits||(t.windowBits|=15)),this.err=0,// error code, if happens (0 = Z_OK)
this.msg="",// error message
this.ended=!1,// used to avoid multiple onEnd() calls
this.chunks=[],// chunks of compressed data
this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);
// Setup dictionary
if(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&(
// Convert data if needed
"string"==typeof t.dictionary?t.dictionary=a.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(//In raw mode we need to set the dictionary early
n=r.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(s[n])}
/**
 * Inflate#push(data[, mode]) -> Boolean
 * - data (Uint8Array|Array|ArrayBuffer|String): input data
 * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.
 *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.
 *
 * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with
 * new output chunks. Returns `true` on success. The last data block must have
 * mode Z_FINISH (or `true`). That will flush internal pending buffers and call
 * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you
 * can use mode Z_SYNC_FLUSH, keeping the decompression context.
 *
 * On fail call [[Inflate#onEnd]] with error code and return false.
 *
 * We strongly recommend to use `Uint8Array` on input for best speed (output
 * format is detected automatically). Also, don't skip last param and always
 * use the same type in your code (boolean or number). That will improve JS speed.
 *
 * For regular `Array`-s make sure all elements are [0..255].
 *
 * ##### Example
 *
 * ```javascript
 * push(chunk, false); // push one of data chunks
 * ...
 * push(chunk, true);  // push last chunk
 * ```
 **/
/**
 * inflate(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to decompress.
 * - options (Object): zlib inflate options.
 *
 * Decompress `data` with inflate/ungzip and `options`. Autodetect
 * format via wrapper header by default. That's why we don't provide
 * separate `ungzip` method.
 *
 * Supported options are:
 *
 * - windowBits
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information.
 *
 * Sugar (options):
 *
 * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
 *   negative windowBits implicitly.
 * - `to` (String) - if equal to 'string', then result will be converted
 *   from utf8 to utf16 (javascript) string. When string output requested,
 *   chunk length can differ from `chunkSize`, depending on content.
 *
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , input = pako.deflate([1,2,3,4,5,6,7,8,9])
 *   , output;
 *
 * try {
 *   output = pako.inflate(input);
 * } catch (err)
 *   console.log(err);
 * }
 * ```
 **/
function f(e,t){var n=new h(t);
// That will never happens, if you don't cheat with options :)
if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}
/**
 * inflateRaw(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to decompress.
 * - options (Object): zlib inflate options.
 *
 * The same as [[inflate]], but creates raw data, without wrapper
 * (header and adler32 crc).
 **/function d(e,t){return(t=t||{}).raw=!0,f(e,t)}
/**
 * ungzip(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to decompress.
 * - options (Object): zlib inflate options.
 *
 * Just shortcut to [[inflate]], because it autodetects format
 * by header.content. Done for convenience.
 **/h.prototype.push=function(e,t){var n,s,c,l,h,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,
// Convert data if needed
"string"==typeof e?
// Only binary strings can be decompressed on practice
f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(d),f.next_out=0,f.avail_out=d),/* no bad return value */
(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),l=f.next_out-c,h=a.buf2string(f.output,c),
// move tail
f.next_out=l,f.avail_out=d-l,l&&i.arraySet(f.output,f.output,c,l,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),
// When no more input data, we should check that internal inflate buffers
// are flushed. The only way to do it when avail_out = 0 - run one more
// inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.
// Here we set flag to process this error properly.
// NOTE. Deflate does not return error in this case and does not needs such
// logic.
0===f.avail_in&&0===f.avail_out&&(g=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==o.Z_STREAM_END);
// Finalize on the last chunk.
return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):
// callback interim results if Z_SYNC_FLUSH.
s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},
/**
 * Inflate#onData(chunk) -> Void
 * - chunk (Uint8Array|Array|String): output data. Type of array depends
 *   on js engine support. When string output requested, each chunk
 *   will be string.
 *
 * By default, stores data blocks in `chunks[]` property and glue
 * those in `onEnd`. Override this handler, if you need another behaviour.
 **/
h.prototype.onData=function(e){this.chunks.push(e)},
/**
 * Inflate#onEnd(status) -> Void
 * - status (Number): inflate status. 0 (Z_OK) on success,
 *   other if not.
 *
 * Called either after you tell inflate that the input stream is
 * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)
 * or if an error happened. By default - join collected chunks,
 * free memory and fill `results` / `err` properties.
 **/
h.prototype.onEnd=function(e){
// On success - join
e===o.Z_OK&&("string"===this.options.to?
// Glue & convert here, until we teach pako to send
// utf8 aligned strings to onData
this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=f,n.inflateRaw=d,n.ungzip=f},{"./utils/common":50,"./utils/strings":51,"./zlib/constants":53,"./zlib/gzheader":56,"./zlib/inflate":58,"./zlib/messages":60,"./zlib/zstream":62}],50:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e/*from1, from2, from3, ...*/){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},
// reduce buffer size, avoiding mem copy
n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else
// Fallback to ordinary array
for(var a=0;a<r;a++)e[i+a]=t[n+a]},
// Join array of chunks to single array.
flattenChunks:function(e){var t,n,r,i,a,o;
// calculate data length
for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;
// join chunks
for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},o={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},
// Join array of chunks to single array.
flattenChunks:function(e){return[].concat.apply([],e)}};
// Enable/Disable typed arrays use, for testing
n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],51:[function(e,t,n){
// String encode/decode helpers
"use strict";var r=e("./common"),i=!0,a=!0;
// Quick check if we can use fast array to bin string conversion

// - apply(Array) can fail on Android 2.2
// - apply(Uint8Array) can fail on iOS 5.1 Safari

try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}
// Table with utf8 lengths (calculated by first byte of sequence)
// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,
// because max possible codepoint is 0x10ffff
for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;
// Helper (used in 2 places)
function c(e,t){
// On Chrome, the arguments in a function call that are allowed is `65534`.
// If the length of the buffer is smaller than that, we can use this optimization,
// otherwise we will take a slower path.
if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}
// Convert byte array to binary string
o[254]=o[254]=1,// Invalid sequence start
// convert string to array (typed, when possible)
n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;
// count binary size
for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;
// allocate buffer
// convert
for(t=new r.Buf8(c),o=0,a=0;o<c;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?
/* one byte */
t[o++]=n:n<2048?(
/* two bytes */
t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(
/* three bytes */
t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(
/* four bytes */
t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},
// Convert binary string (typed, when possible)
n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},
// convert array to string
n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=new Array(2*s);for(r=0,n=0;n<s;)
// quick process ascii
if((i=e[n++])<128)l[r++]=i;else
// skip 5 & 6 byte codes
if((a=o[i])>4)l[r++]=65533,n+=a-1;else{
// join the rest
for(
// apply mask on first byte
i&=2===a?31:3===a?15:7;a>1&&n<s;)i=i<<6|63&e[n++],a--;
// terminated by end of string?
a>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},
// Calculate max possible position in utf8 buffer,
// that will not break sequence. If that's not possible
// - (very small limits) return max size as is.
// buf[] - utf8 bytes array
// max   - length limit (mandatory);
n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),
// go back from last position, until start of sequence found
n=t-1;n>=0&&128==(192&e[n]);)n--;
// Very small and broken sequence,
// return max, because we should return something anyway.
return n<0||0===n?t:n+o[e[n]]>t?n:t;
// If we came to start of buffer - that means buffer is too small,
// return max too.
}},{"./common":50}],52:[function(e,t,n){"use strict";
// Note: adler32 takes 12% for level 0 and 2% for level 6.
// It isn't worth it to make additional optimizations as in original.
// Small size is preferable.
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
function r(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){n-=
// Set limit ~ twice less than 5552, to keep
// s2 in 31-bits, because we force signed ints.
// in other case %= will fail.
o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}t.exports=r},{}],53:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
t.exports={
/* Allowed flush values; see deflate() and inflate() below for details */
Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,
/* Return codes for the compression/decompression functions. Negative values
  * are errors, positive values are used for special but normal events.
  */
Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,
//Z_MEM_ERROR:     -4,
Z_BUF_ERROR:-5,
//Z_VERSION_ERROR: -6,
/* compression levels */
Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,
/* Possible values of the data_type field (though see inflate()) */
Z_BINARY:0,Z_TEXT:1,
//Z_ASCII:                1, // = Z_TEXT (deprecated)
Z_UNKNOWN:2,
/* The deflate compression method */
Z_DEFLATED:8}},{}],54:[function(e,t,n){"use strict";
// Note: we can't get significant speed boost here.
// So write code to minimize size - no pregenerated tables
// and array tools dependencies.
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
// Use ordinary array, since untyped makes no boost here
function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}
// Create table on load. Just 255 signed longs. Not a problem.
var i=r();function a(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e;// >>> 0;
}t.exports=a},{}],55:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),c=e("./messages"),l=0,u=1,h=3,f=4,d=5,p=0,g=1,m=-2,v=-3,y=-5,A=-1,b=1,w=2,x=3,C=4,_=0,I=2,E=8,k=9,S=15,B=8,M=286,T=30,O=19,D=2*M+1,P=15,L=3,Q=258,R=Q+L+1,j=32,N=42,F=69,z=73,H=91,U=103,G=113,V=666,W=1,q=2,Y=3,K=4,$=3;// Unix :) . Don't detect, use this default.
function J(e,t){return e.msg=c[t],t}function X(e){return(e<<1)-(e>4?9:0)}function Z(e){for(var t=e.length;--t>=0;)e[t]=0}
/* =========================================================================
 * Flush as much pending output as possible. All deflate() output goes
 * through this function so some applications may wish to modify it
 * to avoid allocating a large strm->output buffer and copying into it.
 * (See also read_buf()).
 */function ee(e){var t=e.state,n=t.pending;
//_tr_flush_bits(s);
n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function te(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function ne(e,t){e.pending_buf[e.pending++]=t}
/* =========================================================================
 * Put a short in the pending buffer. The 16-bit value is put in MSB order.
 * IN assertion: the stream state is correct and there is enough room in
 * pending_buf.
 */function re(e,t){
//  put_byte(s, (Byte)(b >> 8));
//  put_byte(s, (Byte)(b & 0xff));
e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}
/* ===========================================================================
 * Read a new buffer from the current input stream, update the adler32
 * and total number of bytes read.  All deflate() input goes through
 * this function so some applications may wish to modify it to avoid
 * allocating a large strm->input buffer and copying from it.
 * (See also flush_pending()).
 */function ie(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,
// zmemcpy(buf, strm->next_in, len);
i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}
/* ===========================================================================
 * Set match_start to the longest match starting at the given string and
 * return its length. Matches shorter or equal to prev_length are discarded,
 * in which case the result is equal to prev_length and match_start is
 * garbage.
 * IN assertions: cur_match is the head of the hash chain for the current
 *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
 * OUT assertion: the match length is not greater than s->lookahead.
 */function ae(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-R?e.strstart-(e.w_size-R):0/*NIL*/,l=e.window,u=e.w_mask,h=e.prev,f=e.strstart+Q,d=l[a+o-1],p=l[a+o];/* max hash chain length */
/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
   * It is easy to get rid of this optimization if necessary.
   */
// Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
/* Do not waste too much time if we already have a good match: */
e.prev_length>=e.good_match&&(i>>=2)
/* Do not look for matches beyond the end of the input. This is necessary
   * to make deflate deterministic.
   */,s>e.lookahead&&(s=e.lookahead);
// Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
do{
/* Skip to next match if the match length cannot increase
     * or if the match length is less than 2.  Note that the checks below
     * for insufficient lookahead only occur occasionally for performance
     * reasons.  Therefore uninitialized memory will be accessed, and
     * conditional jumps will be made that depend on those values.
     * However the length of the match is limited to the lookahead, so
     * the output of deflate is not affected by the uninitialized values.
     */
if(l[(
// Assert(cur_match < s->strstart, "no future");
n=t)+o]===p&&l[n+o-1]===d&&l[n]===l[a]&&l[++n]===l[a+1]){
/* The check at best_len-1 can be removed because it will be made
     * again later. (This heuristic is not always a win.)
     * It is not necessary to compare scan[2] and match[2] since they
     * are always equal when the other bytes match, given that
     * the hash keys are equal and that HASH_BITS >= 8.
     */
a+=2,n++;
// Assert(*scan == *match, "match[2]?");
/* We check for insufficient lookahead only every 8th comparison;
     * the 256th check will be made at strstart+258.
     */
do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);
// Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
if(r=Q-(f-a),a=f-Q,r>o){if(e.match_start=t,o=r,r>=s)break;d=l[a+o-1],p=l[a+o]}}}while((t=h[t&u])>c&&0!=--i);return o<=e.lookahead?o:e.lookahead}
/* ===========================================================================
 * Fill the window when the lookahead becomes insufficient.
 * Updates strstart and lookahead.
 *
 * IN assertion: lookahead < MIN_LOOKAHEAD
 * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
 *    At least one byte has been read, or avail_in == 0; reads are
 *    performed for at least two bytes (required for the zip translate_eol
 *    option -- not supported here).
 */function oe(e){var t,n,r,a,o,s=e.w_size;
//Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
do{
// JS ints have 32 bit, block below not needed
/* Deal with !@#$% 64K limit: */
//if (sizeof(int) <= 2) {
//    if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
//        more = wsize;
//  } else if (more == (unsigned)(-1)) {
//        /* Very unlikely, but possible on 16 bit machine if
//         * strstart == 0 && lookahead == 1 (input done a byte at time)
//         */
//        more--;
//    }
//}
/* If the window is almost full and there is insufficient lookahead,
     * move the upper half to the lower one to make room in the upper half.
     */
if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-R)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,
/* we now have strstart >= MAX_DIST */
e.block_start-=s,t=
/* Slide the hash table (could be avoided with 32 bit values
       at the expense of memory usage). We slide even when level == 0
       to keep the hash table consistent if we switch back to level > 0
       later. (Using level 0 permanently is not an optimal usage of
       zlib, so we don't care about this pathological case.)
       */
n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;
/* If there was no sliding:
     *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
     *    more == window_size - lookahead - strstart
     * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
     * => more >= window_size - 2*WSIZE + 2
     * In the BIG_MEM or MMAP case (not yet supported),
     *   window_size == input_size + MIN_LOOKAHEAD  &&
     *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
     * Otherwise, window_size == 2*WSIZE so more >= 2.
     * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
     */
//Assert(more >= 2, "more < 2");
/* Initialize the hash value now that we have some input: */
if(n=ie(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=L)
//#if MIN_MATCH != 3
//        Call update_hash() MIN_MATCH-3 more times
//#endif
for(o=e.strstart-e.insert,e.ins_h=e.window[o],
/* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+L-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<L)););
/* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
     * but this is not important since only literal bytes will be emitted.
     */}while(e.lookahead<R&&0!==e.strm.avail_in);
/* If the WIN_INIT bytes after the end of the current data have never been
   * written, then zero those bytes in order to avoid memory check reports of
   * the use of uninitialized (or uninitialised as Julian writes) bytes by
   * the longest match routines.  Update the high water mark for the next
   * time through here.  WIN_INIT is set to MAX_MATCH since the longest match
   * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
   */
//  if (s.high_water < s.window_size) {
//    var curr = s.strstart + s.lookahead;
//    var init = 0;

//    if (s.high_water < curr) {
//      /* Previous high water mark below current data -- zero WIN_INIT
//       * bytes or up to end of window, whichever is less.
//       */
//      init = s.window_size - curr;
//      if (init > WIN_INIT)
//        init = WIN_INIT;
//      zmemzero(s->window + curr, (unsigned)init);
//      s->high_water = curr + init;
//    }
//    else if (s->high_water < (ulg)curr + WIN_INIT) {
//      /* High water mark at or above current data, but below current data
//       * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
//       * to end of window, whichever is less.
//       */
//      init = (ulg)curr + WIN_INIT - s->high_water;
//      if (init > s->window_size - s->high_water)
//        init = s->window_size - s->high_water;
//      zmemzero(s->window + s->high_water, (unsigned)init);
//      s->high_water += init;
//    }
//  }

//  Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
//    "not enough room for search");
}
/* ===========================================================================
 * Copy without compression as much as possible from the input stream, return
 * the current block state.
 * This function does not insert new strings in the dictionary since
 * uncompressible data is probably not useful. This function is used
 * only for the level=0 compression option.
 * NOTE: this function should be optimized to avoid extra copying from
 * window to pending_buf.
 */function se(e,t){
/* Stored blocks are limited to 0xffff bytes, pending_buf is limited
   * to pending_buf_size, and each stored block has a 5 byte header:
   */
var n=65535;
/* Copy as much as possible from input to output: */
for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){
/* Fill the window as much as possible: */
if(e.lookahead<=1){if(
//Assert(s->strstart < s->w_size+MAX_DIST(s) ||
//  s->block_start >= (long)s->w_size, "slide too late");
//      if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||
//        s.block_start >= s.w_size)) {
//        throw  new Error("slide too late");
//      }
oe(e),0===e.lookahead&&t===l)return W;if(0===e.lookahead)break;
/* flush the current block */}
//Assert(s->block_start >= 0L, "block gone");
//    if (s.block_start < 0) throw new Error("block gone");
e.strstart+=e.lookahead,e.lookahead=0;
/* Emit a stored block if pending_buf will be full: */
var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(
/* strstart == 0 is possible when wraparound on 16-bit machine */
e.lookahead=e.strstart-r,e.strstart=r,
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out))return W;
/* Flush if we may have to slide, otherwise block_start may become
     * negative and the data will be gone:
     */if(e.strstart-e.block_start>=e.w_size-R&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out))return W}return e.insert=0,t===f?(
/*** FLUSH_BLOCK(s, 1); ***/
te(e,!0),0===e.strm.avail_out?Y:K
/***/):(e.strstart>e.block_start&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),e.strm.avail_out),W)}
/* ===========================================================================
 * Compress as much as possible from the input stream, return the current
 * block state.
 * This function does not perform lazy evaluation of matches and inserts
 * new strings in the dictionary only for unmatched strings or for short
 * matches. It is used only for the fast compression options.
 */function ce(e,t){/* set if current block must be flushed */
for(var n,r/* head of the hash chain */;;){
/* Make sure that we always have enough lookahead, except
     * at the end of the input file. We need MAX_MATCH bytes
     * for the next match, plus MIN_MATCH bytes to insert the
     * string following the next match.
     */
if(e.lookahead<R){if(oe(e),e.lookahead<R&&t===l)return W;if(0===e.lookahead)break;/* flush the current block */}
/* Insert the string window[strstart .. strstart+2] in the
     * dictionary, and set hash_head to the head of the hash chain:
     */if(n=0/*NIL*/,e.lookahead>=L&&(
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)
/* Find the longest match, discarding those <= prev_length.
     * At this point we have always match_length < MIN_MATCH
     */,0/*NIL*/!==n&&e.strstart-n<=e.w_size-R&&(
/* To simplify the code, we prevent matches with the string
       * of window index 0 (in particular we have to avoid a match
       * of the string with itself at the start of the input file).
       */
e.match_length=ae(e,n)),e.match_length>=L)
/* Insert new strings in the hash table only if the match length
       * is not too large. This saves time but degrades compression.
       */
if(
// check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
/*** _tr_tally_dist(s, s.strstart - s.match_start,
                     s.match_length - MIN_MATCH, bflush); ***/
r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-L),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match/*max_insert_length*/&&e.lookahead>=L){e.match_length--;/* string at strstart already in table */
do{e.strstart++,
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],
/* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else
/* No match, output a literal byte */
//Tracevv((stderr,"%c", s.window[s.strstart]));
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out))return W}return e.insert=e.strstart<L-1?e.strstart:L-1,t===f?(
/*** FLUSH_BLOCK(s, 1); ***/
te(e,!0),0===e.strm.avail_out?Y:K
/***/):e.last_lit&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out)?W:q}
/* ===========================================================================
 * Same as above, but achieves better compression. We use a lazy
 * evaluation for matches: a match is finally adopted only if there is
 * no better match at the next window position.
 */function le(e,t){
/* Process the input block. */
for(var n,r,i/* head of hash chain */;;){
/* Make sure that we always have enough lookahead, except
     * at the end of the input file. We need MAX_MATCH bytes
     * for the next match, plus MIN_MATCH bytes to insert the
     * string following the next match.
     */
if(e.lookahead<R){if(oe(e),e.lookahead<R&&t===l)return W;if(0===e.lookahead)break;/* flush the current block */}
/* Insert the string window[strstart .. strstart+2] in the
     * dictionary, and set hash_head to the head of the hash chain:
     */
/* If there was a match at the previous step and the current
     * match is not better, output the previous match:
     */
if(n=0/*NIL*/,e.lookahead>=L&&(
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)
/* Find the longest match, discarding those <= prev_length.
     */,e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=L-1,0/*NIL*/!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-R/*MAX_DIST(s)*/&&(
/* To simplify the code, we prevent matches with the string
       * of window index 0 (in particular we have to avoid a match
       * of the string with itself at the start of the input file).
       */
e.match_length=ae(e,n),
/* longest_match() sets match_start */
e.match_length<=5&&(e.strategy===b||e.match_length===L&&e.strstart-e.match_start>4096/*TOO_FAR*/)&&(
/* If prev_match is also MIN_MATCH, match_start is garbage
         * but we will ignore the current match anyway.
         */
e.match_length=L-1)),e.prev_length>=L&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-L,
/* Do not insert strings in hash table beyond this. */
//check_match(s, s.strstart-1, s.prev_match, s.prev_length);
/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
                     s.prev_length - MIN_MATCH, bflush);***/
r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-L),
/* Insert in hash table all strings up to the end of the match.
       * strstart-1 and strstart are already inserted. If there is not
       * enough lookahead, the last two strings are not inserted in
       * the hash table.
       */
e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=L-1,e.strstart++,r&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out))return W}else if(e.match_available){if(
/* If there was no match at the previous position, output a
       * single literal. If there was a match but the current match
       * is longer, truncate the previous match to a single literal.
       */
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
(r=a._tr_tally(e,0,e.window[e.strstart-1]))&&
/*** FLUSH_BLOCK_ONLY(s, 0) ***/
te(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return W}else
/* There is no previous match to compare with, wait for
       * the next step to decide.
       */
e.match_available=1,e.strstart++,e.lookahead--}
//Assert (flush != Z_NO_FLUSH, "no flush?");
return e.match_available&&(
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<L-1?e.strstart:L-1,t===f?(
/*** FLUSH_BLOCK(s, 1); ***/
te(e,!0),0===e.strm.avail_out?Y:K
/***/):e.last_lit&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out)?W:q}
/* ===========================================================================
 * For Z_RLE, simply look for runs of bytes, generate matches only of distance
 * one.  Do not maintain a hash table.  (It will be regenerated if this run of
 * deflate switches away from Z_RLE.)
 */function ue(e,t){for(var n,r,i,o,s=e.window/* set if current block must be flushed */;;){
/* Make sure that we always have enough lookahead, except
     * at the end of the input file. We need MAX_MATCH bytes
     * for the longest run, plus one for the unrolled loop.
     */
if(e.lookahead<=Q){if(oe(e),e.lookahead<=Q&&t===l)return W;if(0===e.lookahead)break;/* flush the current block */}
/* See how many times the previous byte repeats */if(e.match_length=0,e.lookahead>=L&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+Q;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=Q-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}
//Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
/* Emit match if have run of MIN_MATCH or longer, else emit literal */if(e.match_length>=L?(
//check_match(s, s.strstart, s.strstart - 1, s.match_length);
/*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
n=a._tr_tally(e,1,e.match_length-L),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(
/* No match, output a literal byte */
//Tracevv((stderr,"%c", s->window[s->strstart]));
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out))return W}return e.insert=0,t===f?(
/*** FLUSH_BLOCK(s, 1); ***/
te(e,!0),0===e.strm.avail_out?Y:K
/***/):e.last_lit&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out)?W:q}
/* ===========================================================================
 * For Z_HUFFMAN_ONLY, do not look for matches.  Do not maintain a hash table.
 * (It will be regenerated if this run of deflate switches away from Huffman.)
 */function he(e,t){/* set if current block must be flushed */
for(var n;;){
/* Make sure that we have a literal to write. */
if(0===e.lookahead&&(oe(e),0===e.lookahead)){if(t===l)return W;break;/* flush the current block */}
/* Output a literal byte */if(e.match_length=0,
//Tracevv((stderr,"%c", s->window[s->strstart]));
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out))return W}return e.insert=0,t===f?(
/*** FLUSH_BLOCK(s, 1); ***/
te(e,!0),0===e.strm.avail_out?Y:K
/***/):e.last_lit&&(
/*** FLUSH_BLOCK(s, 0); ***/
te(e,!1),0===e.strm.avail_out)?W:q}
/* Values for max_lazy_match, good_match and max_chain_length, depending on
 * the desired pack level (0..9). The values given below have been tuned to
 * exclude worst case performance for pathological files. Better values may be
 * found for specific files.
 */function fe(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}
/* ===========================================================================
 * Initialize the "longest match" routines for a new zlib stream
 */
function de(e){e.window_size=2*e.w_size,
/*** CLEAR_HASH(s); ***/
Z(e.head),// Fill with NIL (= 0);
/* Set the default configuration parameters:
   */
e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=L-1,e.match_available=0,e.ins_h=0}function pe(){this.strm=null,/* pointer back to this zlib stream */
this.status=0,/* as the name implies */
this.pending_buf=null,/* output still pending */
this.pending_buf_size=0,/* size of pending_buf */
this.pending_out=0,/* next pending byte to output to the stream */
this.pending=0,/* nb of bytes in the pending buffer */
this.wrap=0,/* bit 0 true for zlib, bit 1 true for gzip */
this.gzhead=null,/* gzip header information to write */
this.gzindex=0,/* where in extra, name, or comment */
this.method=E,/* can only be DEFLATED */
this.last_flush=-1,/* value of flush param for previous deflate call */
this.w_size=0,/* LZ77 window size (32K by default) */
this.w_bits=0,/* log2(w_size)  (8..16) */
this.w_mask=0,/* w_size - 1 */
this.window=null,
/* Sliding window. Input bytes are read into the second half of the window,
   * and move to the first half later to keep a dictionary of at least wSize
   * bytes. With this organization, matches are limited to a distance of
   * wSize-MAX_MATCH bytes, but this ensures that IO is always
   * performed with a length multiple of the block size.
   */
this.window_size=0,
/* Actual size of window: 2*wSize, except when the user input buffer
   * is directly used as sliding window.
   */
this.prev=null,
/* Link to older string with same hash index. To limit the size of this
   * array to 64K, this link is maintained only for the last 32K strings.
   * An index in this array is thus a window index modulo 32K.
   */
this.head=null,/* Heads of the hash chains or NIL. */
this.ins_h=0,/* hash index of string to be inserted */
this.hash_size=0,/* number of elements in hash table */
this.hash_bits=0,/* log2(hash_size) */
this.hash_mask=0,/* hash_size-1 */
this.hash_shift=0,
/* Number of bits by which ins_h must be shifted at each input
   * step. It must be such that after MIN_MATCH steps, the oldest
   * byte no longer takes part in the hash key, that is:
   *   hash_shift * MIN_MATCH >= hash_bits
   */
this.block_start=0,
/* Window position at the beginning of the current output block. Gets
   * negative when the window is moved backwards.
   */
this.match_length=0,/* length of best match */
this.prev_match=0,/* previous match */
this.match_available=0,/* set if previous match exists */
this.strstart=0,/* start of string to insert */
this.match_start=0,/* start of matching string */
this.lookahead=0,/* number of valid bytes ahead in window */
this.prev_length=0,
/* Length of the best match at previous step. Matches not greater than this
   * are discarded. This is used in the lazy match evaluation.
   */
this.max_chain_length=0,
/* To speed up deflation, hash chains are never searched beyond this
   * length.  A higher limit improves compression ratio but degrades the
   * speed.
   */
this.max_lazy_match=0,
/* Attempt to find a better match only when the current match is strictly
   * smaller than this value. This mechanism is used only for compression
   * levels >= 4.
   */
// That's alias to max_lazy_match, don't use directly
//this.max_insert_length = 0;
/* Insert new strings in the hash table only if the match length is not
   * greater than this length. This saves time but degrades compression.
   * max_insert_length is used only for compression levels <= 3.
   */
this.level=0,/* compression level (1..9) */
this.strategy=0,/* favor or force Huffman coding*/
this.good_match=0,
/* Use a faster search when the previous match is longer than this */
this.nice_match=0,/* Stop searching when current match exceeds this */
/* used by trees.c: */
/* Didn't use ct_data typedef below to suppress compiler warning */
// struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */
// struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
// struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */
// Use flat array of DOUBLE size, with interleaved fata,
// because JS does not support effective
this.dyn_ltree=new i.Buf16(2*D),this.dyn_dtree=new i.Buf16(2*(2*T+1)),this.bl_tree=new i.Buf16(2*(2*O+1)),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,/* desc. for literal tree */
this.d_desc=null,/* desc. for distance tree */
this.bl_desc=null,/* desc. for bit length tree */
//ush bl_count[MAX_BITS+1];
this.bl_count=new i.Buf16(P+1),
/* number of codes at each bit length for an optimal tree */
//int heap[2*L_CODES+1];      /* heap used to build the Huffman trees */
this.heap=new i.Buf16(2*M+1),/* heap used to build the Huffman trees */
Z(this.heap),this.heap_len=0,/* number of elements in the heap */
this.heap_max=0,/* element of largest frequency */
/* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
   * The same heap array is used to build all trees.
   */
this.depth=new i.Buf16(2*M+1),//uch depth[2*L_CODES+1];
Z(this.depth),
/* Depth of each subtree used as tie breaker for trees of equal frequency
   */
this.l_buf=0,/* buffer index for literals or lengths */
this.lit_bufsize=0,
/* Size of match buffer for literals/lengths.  There are 4 reasons for
   * limiting lit_bufsize to 64K:
   *   - frequencies can be kept in 16 bit counters
   *   - if compression is not successful for the first block, all input
   *     data is still in the window so we can still emit a stored block even
   *     when input comes from standard input.  (This can also be done for
   *     all blocks if lit_bufsize is not greater than 32K.)
   *   - if compression is not successful for a file smaller than 64K, we can
   *     even emit a stored file instead of a stored block (saving 5 bytes).
   *     This is applicable only for zip (not gzip or zlib).
   *   - creating new Huffman trees less frequently may not provide fast
   *     adaptation to changes in the input data statistics. (Take for
   *     example a binary file with poorly compressible code followed by
   *     a highly compressible string table.) Smaller buffer sizes give
   *     fast adaptation but have of course the overhead of transmitting
   *     trees more frequently.
   *   - I can't count above 4
   */
this.last_lit=0,/* running index in l_buf */
this.d_buf=0,
/* Buffer index for distances. To simplify the code, d_buf and l_buf have
   * the same number of elements. To use different lengths, an extra flag
   * array would be necessary.
   */
this.opt_len=0,/* bit length of current block with optimal trees */
this.static_len=0,/* bit length of current block with static trees */
this.matches=0,/* number of string matches in current block */
this.insert=0,/* bytes at end of window left to insert */
this.bi_buf=0,
/* Output buffer. bits are inserted starting at the bottom (least
   * significant bits).
   */
this.bi_valid=0}function ge(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=I,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?N:G,e.adler=2===t.wrap?0:1,// adler32(0, Z_NULL, 0)
t.last_flush=l,a._tr_init(t),p):J(e,m)}function me(e){var t=ge(e);return t===p&&de(e.state),t}function ve(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,p):m}function ye(e,t,n,r,a,o){if(!e)// === Z_NULL
return m;var s=1;if(t===A&&(t=6),r<0?(/* suppress zlib wrapper */
s=0,r=-r):r>15&&(s=2,/* write gzip wrapper instead */
r-=16),a<1||a>k||n!==E||r<8||r>15||t<0||t>9||o<0||o>C)return J(e,m);8===r&&(r=9)
/* until 256-byte window bug fixed */;var c=new pe;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+L-1)/L),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),
// Don't need mem init magic for JS.
//s.high_water = 0;  /* nothing written to s->window yet */
c.lit_bufsize=1<<a+6,/* 16K elements by default */
c.pending_buf_size=4*c.lit_bufsize,
//overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);
//s->pending_buf = (uchf *) overlay;
c.pending_buf=new i.Buf8(c.pending_buf_size),
// It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)
//s->d_buf = overlay + s->lit_bufsize/sizeof(ush);
c.d_buf=1*c.lit_bufsize,
//s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;
c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,me(e)}function Ae(e,t){return ye(e,t,E,S,B,_)}function be(e,t){var n,i,o,c;// for gzip header write only
if(!e||!e.state||t>d||t<0)return e?J(e,m):m;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===V&&t!==f)return J(e,0===e.avail_out?y:m);
/* Write the header */
if(i.strm=e,/* just in case */
n=i.last_flush,i.last_flush=t,i.status===N)if(2===i.wrap)// GZIP header
e.adler=0,//crc32(0L, Z_NULL, 0);
ne(i,31),ne(i,139),ne(i,8),i.gzhead?(ne(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ne(i,255&i.gzhead.time),ne(i,i.gzhead.time>>8&255),ne(i,i.gzhead.time>>16&255),ne(i,i.gzhead.time>>24&255),ne(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),ne(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ne(i,255&i.gzhead.extra.length),ne(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=F):(// s->gzhead == Z_NULL
ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),ne(i,$),i.status=G);else// DEFLATE header
{var v=E+(i.w_bits-8<<4)<<8;v|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=j),v+=31-v%31,i.status=G,re(i,v),
/* Save the adler32 of the preset dictionary: */
0!==i.strstart&&(re(i,e.adler>>>16),re(i,65535&e.adler)),e.adler=1}
//#ifdef GZIP
if(i.status===F)if(i.gzhead.extra/* != Z_NULL*/){/* start of bytes to update crc */
for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending!==i.pending_buf_size));)ne(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=z)}else i.status=z;if(i.status===z)if(i.gzhead.name/* != Z_NULL*/){o=i.pending;/* start of bytes to update crc */
//int val;
do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}
// JS specific: little magic to add zero terminator to end of string
c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,ne(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=H)}else i.status=H;if(i.status===H)if(i.gzhead.comment/* != Z_NULL*/){o=i.pending;/* start of bytes to update crc */
//int val;
do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),ee(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}
// JS specific: little magic to add zero terminator to end of string
c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,ne(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=U)}else i.status=U;
//#endif
/* Flush as much pending output as possible */
if(i.status===U&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(ne(i,255&e.adler),ne(i,e.adler>>8&255),e.adler=0,//crc32(0L, Z_NULL, 0);
i.status=G)):i.status=G),0!==i.pending){if(ee(e),0===e.avail_out)
/* Since avail_out is 0, deflate will be called again with
       * more output space, but possibly with both pending and
       * avail_in equal to zero. There won't be anything to do,
       * but this is not an error situation so make sure we
       * return OK instead of BUF_ERROR at next call of deflate:
       */
return i.last_flush=-1,p;
/* Make sure there is something to do and avoid duplicate consecutive
     * flushes. For repeated and useless calls with Z_FINISH, we keep
     * returning Z_STREAM_END instead of Z_BUF_ERROR.
     */}else if(0===e.avail_in&&X(t)<=X(n)&&t!==f)return J(e,y);
/* User must not provide more input after the first FINISH: */if(i.status===V&&0!==e.avail_in)return J(e,y);
/* Start a new block or continue the current one.
   */if(0!==e.avail_in||0!==i.lookahead||t!==l&&i.status!==V){var A=i.strategy===w?he(i,t):i.strategy===x?ue(i,t):r[i.level].func(i,t);if(A!==Y&&A!==K||(i.status=V),A===W||A===Y)return 0===e.avail_out&&(i.last_flush=-1),p;
/* If flush != Z_NO_FLUSH && avail_out == 0, the next call
       * of deflate should use the same flush parameter to make sure
       * that the flush is complete. So we don't have to output an
       * empty block here, this will be done at next call. This also
       * ensures that for a very small output buffer, we emit at most
       * one empty block.
       */if(A===q&&(t===u?a._tr_align(i):t!==d&&(/* FULL_FLUSH or SYNC_FLUSH */
a._tr_stored_block(i,0,0,!1),
/* For a full flush, this empty block will be recognized
         * as a special marker by inflate_sync().
         */
t===h&&(
/*** CLEAR_HASH(s); ***/ /* forget history */
Z(i.head),// Fill with NIL (= 0);
0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))/* avoid BUF_ERROR at next call, see above */
return i.last_flush=-1,p}
//Assert(strm->avail_out > 0, "bug2");
//if (strm.avail_out <= 0) { throw new Error("bug2");}
return t!==f?p:i.wrap<=0?g:(
/* Write the trailer */
2===i.wrap?(ne(i,255&e.adler),ne(i,e.adler>>8&255),ne(i,e.adler>>16&255),ne(i,e.adler>>24&255),ne(i,255&e.total_in),ne(i,e.total_in>>8&255),ne(i,e.total_in>>16&255),ne(i,e.total_in>>24&255)):(re(i,e.adler>>>16),re(i,65535&e.adler)),ee(e),
/* If avail_out is zero, the application will call deflate again
   * to flush the rest.
   */
i.wrap>0&&(i.wrap=-i.wrap)
/* write the trailer only once! */,0!==i.pending?p:g)}function we(e){var t;return e/*== Z_NULL*/&&e.state/*== Z_NULL*/?(t=e.state.status)!==N&&t!==F&&t!==z&&t!==H&&t!==U&&t!==G&&t!==V?J(e,m):(e.state=null,t===G?J(e,v):p):m}
/* =========================================================================
 * Initializes the compression dictionary from the given byte
 * sequence without producing any compressed output.
 */function xe(e,t){var n,r,a,s,c,l,u,h,f=t.length;if(!e/*== Z_NULL*/||!e.state/*== Z_NULL*/)return m;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==N||n.lookahead)return m;
/* when using zlib wrappers, compute Adler-32 for provided dictionary */for(1===s&&(
/* adler32(strm->adler, dictionary, dictLength); */
e.adler=o(e.adler,t,f,0)),n.wrap=0,/* avoid computing Adler-32 in read_buf */
/* if dictionary would fill window, just replace the history */
f>=n.w_size&&(0===s&&(/* already empty otherwise */
/*** CLEAR_HASH(s); ***/
Z(n.head),// Fill with NIL (= 0);
n.strstart=0,n.block_start=0,n.insert=0),
/* use the tail */
// dictionary = dictionary.slice(dictLength - s.w_size);
h=new i.Buf8(n.w_size),i.arraySet(h,t,f-n.w_size,n.w_size,0),t=h,f=n.w_size)
/* insert dictionary into window and hash */,c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=f,e.next_in=0,e.input=t,oe(n);n.lookahead>=L;){r=n.strstart,a=n.lookahead-(L-1);do{
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+L-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=L-1,oe(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=L-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,p}r=[
/*      good lazy nice chain */
new fe(0,0,0,0,se),/* 0 store only */
new fe(4,4,8,4,ce),/* 1 max speed, no lazy matches */
new fe(4,5,16,8,ce),/* 2 */
new fe(4,6,32,32,ce),/* 3 */
new fe(4,4,16,16,le),/* 4 lazy matches */
new fe(8,16,32,32,le),/* 5 */
new fe(8,16,128,128,le),/* 6 */
new fe(8,32,128,256,le),/* 7 */
new fe(32,128,258,1024,le),/* 8 */
new fe(32,258,258,4096,le)/* 9 max compression */],n.deflateInit=Ae,n.deflateInit2=ye,n.deflateReset=me,n.deflateResetKeep=ge,n.deflateSetHeader=ve,n.deflate=be,n.deflateEnd=we,n.deflateSetDictionary=xe,n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":50,"./adler32":52,"./crc32":54,"./messages":60,"./trees":61}],56:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
function r(){
/* true if compressed data believed to be text */
this.text=0,
/* modification time */
this.time=0,
/* extra flags (not used when writing a gzip file) */
this.xflags=0,
/* operating system */
this.os=0,
/* pointer to extra field or Z_NULL if none */
this.extra=null,
/* extra field length (valid if extra != Z_NULL) */
this.extra_len=0,// Actually, we don't need it in JS,
// but leave for few code modifications
// Setup limits is not necessary because in js we should not preallocate memory
// for inflate use constant limit in 65536 bytes
/* space at extra (only when reading header) */
// this.extra_max  = 0;
/* pointer to zero-terminated file name or Z_NULL */
this.name="",
/* space at name (only when reading header) */
// this.name_max   = 0;
/* pointer to zero-terminated comment or Z_NULL */
this.comment="",
/* space at comment (only when reading header) */
// this.comm_max   = 0;
/* true if there was or will be a header crc */
this.hcrc=0,
/* true when done reading gzip header (not used when writing a gzip file) */
this.done=!1}t.exports=r},{}],57:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
// See state defs from inflate.js
var r=30,i=12;/* got a data error -- remain here until reset */ /* i: waiting for type bits, including last-flag bit */
/*
   Decode literal, length, and distance codes and write out the resulting
   literal and match bytes until either not enough input or output is
   available, an end-of-block is encountered, or a data error is encountered.
   When large enough input and output buffers are supplied to inflate(), for
   example, a 16K input buffer and a 64K output buffer, more than 95% of the
   inflate execution time is spent in this routine.

   Entry assumptions:

        state.mode === LEN
        strm.avail_in >= 6
        strm.avail_out >= 258
        start >= strm.avail_out
        state.bits < 8

   On return, state.mode is one of:

        LEN -- ran out of enough output space or enough available input
        TYPE -- reached end of block code, inflate() to interpret next block
        BAD -- error in block data

   Notes:

    - The maximum input bits used by a length/distance pair is 15 bits for the
      length code, 5 bits for the length extra, 15 bits for the distance code,
      and 13 bits for the distance extra.  This totals 48 bits, or six bytes.
      Therefore if strm.avail_in >= 6, then there is enough input to avoid
      checking for available input while decoding.

    - The maximum bytes that a single length/distance pair can output is 258
      bytes, which is the maximum length that can be coded.  inflate_fast()
      requires strm.avail_out >= 258 for each loop to avoid checking for
      output space.
 */
t.exports=function(e,t){var n,a,o,s,c,l,u,h,f,d,p,g,m,v,y,A,b,w,x,C,_,I,E,k,S;// JS specific, because we have no pointers
/* copy state to local variables */
n=e.state,
//here = state.here;
a=e.next_in,k=e.input,o=a+(e.avail_in-5),s=e.next_out,S=e.output,c=s-(t-e.avail_out),l=s+(e.avail_out-257),
//#ifdef INFLATE_STRICT
u=n.dmax,
//#endif
h=n.wsize,f=n.whave,d=n.wnext,p=n.window,g=n.hold,m=n.bits,v=n.lencode,y=n.distcode,A=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;
/* decode literals and length/distances until end-of-block or not enough
     input data or output space */
e:do{m<15&&(g+=k[a++]<<m,m+=8,g+=k[a++]<<m,m+=8),w=v[g&A];t:for(;;){if(// Goto emulation
g>>>=x=w>>>24/*here.bits*/,m-=x,0==(x=w>>>16&255/*here.op*/))/* literal */
//Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
//        "inflate:         literal '%c'\n" :
//        "inflate:         literal 0x%02x\n", here.val));
S[s++]=65535/*here.val*/&w;else{if(!(16&x)){if(64&x){if(32&x){/* end-of-block */
//Tracevv((stderr, "inflate:         end of block\n"));
n.mode=i;break e}e.msg="invalid literal/length code",n.mode=r;break e}/* 2nd level length code */
w=v[(65535/*here.val*/&w)+(g&(1<<x)-1)];continue t}for(/* length base */
C=65535/*here.val*/&w,/* number of extra bits */
(x&=15)&&(m<x&&(g+=k[a++]<<m,m+=8),C+=g&(1<<x)-1,g>>>=x,m-=x),
//Tracevv((stderr, "inflate:         length %u\n", len));
m<15&&(g+=k[a++]<<m,m+=8,g+=k[a++]<<m,m+=8),w=y[g&b];;){if(g>>>=// goto emulation
x=w>>>24/*here.bits*/,m-=x,16&(x=w>>>16&255/*here.op*/)){
//#ifdef INFLATE_STRICT
if(/* distance base */
_=65535/*here.val*/&w,/* number of extra bits */
m<(x&=15)&&(g+=k[a++]<<m,(m+=8)<x&&(g+=k[a++]<<m,m+=8)),(_+=g&(1<<x)-1)>u){e.msg="invalid distance too far back",n.mode=r;break e}
//#endif
/* max distance in output */
if(g>>>=x,m-=x,_>(
//Tracevv((stderr, "inflate:         distance %u\n", dist));
x=s-c)){/* distance back in window */
if((/* see if copy from window */
x=_-x)>f&&n.sane){e.msg="invalid distance too far back",n.mode=r;break e}
// (!) This block is disabled in zlib defaults,
// don't enable it for binary compatibility
//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
//                if (len <= op - whave) {
//                  do {
//                    output[_out++] = 0;
//                  } while (--len);
//                  continue top;
//                }
//                len -= op - whave;
//                do {
//                  output[_out++] = 0;
//                } while (--op > whave);
//                if (op === 0) {
//                  from = _out - dist;
//                  do {
//                    output[_out++] = output[from++];
//                  } while (--len);
//                  continue top;
//                }
//#endif
if(I=0,// window index
E=p,0===d){if(/* very common case */
I+=h-x,x<C){/* some from window */
C-=x;do{S[s++]=p[I++]}while(--x);I=s-_,/* rest from output */
E=S}}else if(d<x){if(/* wrap around window */
I+=h+d-x,(x-=d)<C){/* some from end of window */
C-=x;do{S[s++]=p[I++]}while(--x);if(I=0,d<C){C-=/* some from start of window */
x=d;do{S[s++]=p[I++]}while(--x);I=s-_,/* rest from output */
E=S}}}else if(/* contiguous in window */
I+=d-x,x<C){/* some from window */
C-=x;do{S[s++]=p[I++]}while(--x);I=s-_,/* rest from output */
E=S}for(;C>2;)S[s++]=E[I++],S[s++]=E[I++],S[s++]=E[I++],C-=3;C&&(S[s++]=E[I++],C>1&&(S[s++]=E[I++]))}else{I=s-_;/* copy direct from output */
do{/* minimum length is three */
S[s++]=S[I++],S[s++]=S[I++],S[s++]=S[I++],C-=3}while(C>2);C&&(S[s++]=S[I++],C>1&&(S[s++]=S[I++]))}break;// need to emulate goto via "continue"
}if(64&x){e.msg="invalid distance code",n.mode=r;break e}/* 2nd level distance code */
w=y[(65535/*here.val*/&w)+(g&(1<<x)-1)]}}break;// need to emulate goto via "continue"
}}while(a<o&&s<l);
/* return unused bytes (on entry, bits < 8, so in won't go too far back) */a-=C=m>>3,g&=(1<<(m-=C<<3))-1,
/* update state and return */
e.next_in=a,e.next_out=s,e.avail_in=a<o?o-a+5:5-(a-o),e.avail_out=s<l?l-s+257:257-(s-l),n.hold=g,n.bits=m}},{}],58:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),c=0,l=1,u=2,h=4,f=5,d=6,p=0,g=1,m=2,v=-2,y=-3,A=-4,b=-5,w=8,x=1,C=2,_=3,I=4,E=5,k=6,S=7,B=8,M=9,T=10,O=11,D=12,P=13,L=14,Q=15,R=16,j=17,N=18,F=19,z=20,H=21,U=22,G=23,V=24,W=25,q=26,Y=27,K=28,$=29,J=30,X=31,Z=852,ee=592,te=15;function ne(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function re(){this.mode=0,/* current inflate mode */
this.last=!1,/* true if processing last block */
this.wrap=0,/* bit 0 true for zlib, bit 1 true for gzip */
this.havedict=!1,/* true if dictionary provided */
this.flags=0,/* gzip header method and flags (0 if zlib) */
this.dmax=0,/* zlib header max distance (INFLATE_STRICT) */
this.check=0,/* protected copy of check value */
this.total=0,/* protected copy of output count */
// TODO: may be {}
this.head=null,/* where to save gzip header information */
/* sliding window */
this.wbits=0,/* log base 2 of requested window size */
this.wsize=0,/* window size or zero if not using window */
this.whave=0,/* valid bytes in the window */
this.wnext=0,/* window write index */
this.window=null,/* allocated sliding window, if needed */
/* bit accumulator */
this.hold=0,/* input bit accumulator */
this.bits=0,/* number of bits in "in" */
/* for string and stored block copying */
this.length=0,/* literal or length of data to copy */
this.offset=0,/* distance back to copy string from */
/* for table and code decoding */
this.extra=0,/* extra bits needed */
/* fixed and dynamic code tables */
this.lencode=null,/* starting table for length/literal codes */
this.distcode=null,/* starting table for distance codes */
this.lenbits=0,/* index bits for lencode */
this.distbits=0,/* index bits for distcode */
/* dynamic table building */
this.ncode=0,/* number of code length code lengths */
this.nlen=0,/* number of length code lengths */
this.ndist=0,/* number of distance code lengths */
this.have=0,/* number of code lengths in lens[] */
this.next=null,/* next available space in codes[] */
this.lens=new r.Buf16(320),/* temporary storage for code lengths */
this.work=new r.Buf16(288),/* work area for code table building */
/*
   because we don't have pointers in js, we use lencode and distcode directly
   as buffers so we don't need codes
  */
//this.codes = new utils.Buf32(ENOUGH);       /* space for code tables */
this.lendyn=null,/* dynamic table for length/literal codes (JS specific) */
this.distdyn=null,/* dynamic table for distance codes (JS specific) */
this.sane=0,/* if false, allow invalid distance too far */
this.back=0,/* bits back of last unprocessed length/lit */
this.was=0}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",/*Z_NULL*/
t.wrap&&(/* to support ill-conceived Java test suite */
e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null/*Z_NULL*/,t.hold=0,t.bits=0,
//state.lencode = state.distcode = state.next = state.codes;
t.lencode=t.lendyn=new r.Buf32(Z),t.distcode=t.distdyn=new r.Buf32(ee),t.sane=1,t.back=-1,p):v}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):v}function oe(e,t){var n,r;
/* get the state */
return e&&e.state?(
/* set number of window bits, free window if different */
r=e.state,
/* extract wrap request from windowBits parameter */
t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==r.window&&r.wbits!==t&&(r.window=null)
/* update state and reset the rest of it */,r.wrap=n,r.wbits=t,ae(e))):v}function se(e,t){var n,r;return e?(
//strm.msg = Z_NULL;                 /* in case we return an error */
r=new re,
//if (state === Z_NULL) return Z_MEM_ERROR;
//Tracev((stderr, "inflate: allocated\n"));
e.state=r,r.window=null/*Z_NULL*/,(n=oe(e,t))!==p&&(e.state=null/*Z_NULL*/),n):v}function ce(e){return se(e,te)}
/*
 Return state with length and distance decoding tables and index sizes set to
 fixed code decoding.  Normally this returns fixed tables from inffixed.h.
 If BUILDFIXED is defined, then instead this routine builds the tables the
 first time it's called, and returns those tables the first time and
 thereafter.  This reduces the size of the code by about 2K bytes, in
 exchange for a little execution time.  However, BUILDFIXED should not be
 used for threaded applications, since the rewriting of the tables and virgin
 may not be thread-safe.
 */var le,ue,he=!0;// We have no pointers in JS, so keep tables separate
function fe(e){
/* build fixed huffman tables if first call (may not be thread safe) */
if(he){var t;for(le=new r.Buf32(512),ue=new r.Buf32(32),
/* literal/length table */
t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,le,0,e.work,{bits:9}),
/* distance table */
t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,ue,0,e.work,{bits:5}),
/* do this just once */
he=!1}e.lencode=le,e.lenbits=9,e.distcode=ue,e.distbits=5}
/*
 Update the window with the last wsize (normally 32K) bytes written before
 returning.  If window does not exist yet, create it.  This is only called
 when a window is already in use, or when output has been written during this
 inflate call, but the end of the deflate stream has not been reached yet.
 It is also called to create a window for dictionary data when a dictionary
 is loaded.

 Providing output buffers larger than 32K to inflate() should provide a speed
 advantage, since only the last 32K of output is copied to the sliding window
 upon return from inflate(), and since all distances after the first 32K of
 output will fall in the output data, making match copies simpler and faster.
 The advantage may be dependent on the size of the processor's data caches.
 */function de(e,t,n,i){var a,o=e.state;
/* if it hasn't been done already, allocate space for the window */
return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize))
/* copy state->wsize or less output bytes into the circular window */,i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),
//zmemcpy(state->window + state->wnext, end - copy, dist);
r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(
//zmemcpy(state->window, end - copy, copy);
r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function pe(e,t){var n,Z,ee,te,re,ie,ae,oe,se,ce,le,ue,he,pe,ge,me,ve,ye,Ae,be,we,xe,Ce,_e,Ie=0,Ee=new r.Buf8(4),ke=/* permutation of code lengths */
[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return v;(n=e.state).mode===D&&(n.mode=P),/* skip check */
//--- LOAD() ---
re=e.next_out,ee=e.output,ae=e.avail_out,te=e.next_in,Z=e.input,ie=e.avail_in,oe=n.hold,se=n.bits,
//---
ce=ie,le=ae,xe=p;e:// goto emulation
for(;;)switch(n.mode){case x:if(0===n.wrap){n.mode=P;break}
//=== NEEDBITS(16);
for(;se<16;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
if(2&n.wrap&&35615===oe){/* gzip header */
n.check=0/*crc32(0L, Z_NULL, 0)*/,
//=== CRC2(state.check, hold);
Ee[0]=255&oe,Ee[1]=oe>>>8&255,n.check=a(n.check,Ee,2,0),
//===//
//=== INITBITS();
oe=0,se=0,
//===//
n.mode=C;break}if(n.flags=0,/* expect zlib header */
n.head&&(n.head.done=!1),!(1&n.wrap)||/* check if zlib header allowed */
(((255/*BITS(8)*/&oe)<<8)+(oe>>8))%31){e.msg="incorrect header check",n.mode=J;break}if((15/*BITS(4)*/&oe)!==w){e.msg="unknown compression method",n.mode=J;break}
//--- DROPBITS(4) ---//
if(se-=4,
//---//
we=8+(15/*BITS(4)*/&(oe>>>=4)),0===n.wbits)n.wbits=we;else if(we>n.wbits){e.msg="invalid window size",n.mode=J;break}n.dmax=1<<we,
//Tracev((stderr, "inflate:   zlib header ok\n"));
e.adler=n.check=1/*adler32(0L, Z_NULL, 0)*/,n.mode=512&oe?T:D,
//=== INITBITS();
oe=0,se=0;
//===//
break;case C:
//=== NEEDBITS(16); */
for(;se<16;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
if(n.flags=oe,(255&n.flags)!==w){e.msg="unknown compression method",n.mode=J;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=J;break}n.head&&(n.head.text=oe>>8&1),512&n.flags&&(
//=== CRC2(state.check, hold);
Ee[0]=255&oe,Ee[1]=oe>>>8&255,n.check=a(n.check,Ee,2,0)),
//=== INITBITS();
oe=0,se=0,
//===//
n.mode=_;
/* falls through */case _:
//=== NEEDBITS(32); */
for(;se<32;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
n.head&&(n.head.time=oe),512&n.flags&&(
//=== CRC4(state.check, hold)
Ee[0]=255&oe,Ee[1]=oe>>>8&255,Ee[2]=oe>>>16&255,Ee[3]=oe>>>24&255,n.check=a(n.check,Ee,4,0)),
//=== INITBITS();
oe=0,se=0,
//===//
n.mode=I;
/* falls through */case I:
//=== NEEDBITS(16); */
for(;se<16;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
n.head&&(n.head.xflags=255&oe,n.head.os=oe>>8),512&n.flags&&(
//=== CRC2(state.check, hold);
Ee[0]=255&oe,Ee[1]=oe>>>8&255,n.check=a(n.check,Ee,2,0)),
//=== INITBITS();
oe=0,se=0,
//===//
n.mode=E;
/* falls through */case E:if(1024&n.flags){
//=== NEEDBITS(16); */
for(;se<16;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
n.length=oe,n.head&&(n.head.extra_len=oe),512&n.flags&&(
//=== CRC2(state.check, hold);
Ee[0]=255&oe,Ee[1]=oe>>>8&255,n.check=a(n.check,Ee,2,0)),
//=== INITBITS();
oe=0,se=0}else n.head&&(n.head.extra=null/*Z_NULL*/);n.mode=k;
/* falls through */case k:if(1024&n.flags&&((ue=n.length)>ie&&(ue=ie),ue&&(n.head&&(we=n.head.extra_len-n.length,n.head.extra||(
// Use untyped array for more convenient processing later
n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,Z,te,
// extra field is limited to 65536 bytes
// - no need for additional size check
ue,
/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
we)),512&n.flags&&(n.check=a(n.check,Z,ue,te)),ie-=ue,te+=ue,n.length-=ue),n.length))break e;n.length=0,n.mode=S;
/* falls through */case S:if(2048&n.flags){if(0===ie)break e;ue=0;do{
// TODO: 2 or 1 bytes?
we=Z[te+ue++],
/* use constant limit because in js we should not preallocate memory */
n.head&&we&&n.length<65536/*state.head.name_max*/&&(n.head.name+=String.fromCharCode(we))}while(we&&ue<ie);if(512&n.flags&&(n.check=a(n.check,Z,ue,te)),ie-=ue,te+=ue,we)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=B;
/* falls through */case B:if(4096&n.flags){if(0===ie)break e;ue=0;do{we=Z[te+ue++],
/* use constant limit because in js we should not preallocate memory */
n.head&&we&&n.length<65536/*state.head.comm_max*/&&(n.head.comment+=String.fromCharCode(we))}while(we&&ue<ie);if(512&n.flags&&(n.check=a(n.check,Z,ue,te)),ie-=ue,te+=ue,we)break e}else n.head&&(n.head.comment=null);n.mode=M;
/* falls through */case M:if(512&n.flags){
//=== NEEDBITS(16); */
for(;se<16;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
if(oe!==(65535&n.check)){e.msg="header crc mismatch",n.mode=J;break}
//=== INITBITS();
oe=0,se=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=D;break;case T:
//=== NEEDBITS(32); */
for(;se<32;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
e.adler=n.check=ne(oe),
//=== INITBITS();
oe=0,se=0,
//===//
n.mode=O;
/* falls through */case O:if(0===n.havedict)
//---
//--- RESTORE() ---
return e.next_out=re,e.avail_out=ae,e.next_in=te,e.avail_in=ie,n.hold=oe,n.bits=se,m;e.adler=n.check=1/*adler32(0L, Z_NULL, 0)*/,n.mode=D;
/* falls through */case D:if(t===f||t===d)break e;
/* falls through */case P:if(n.last){
//--- BYTEBITS() ---//
oe>>>=7&se,se-=7&se,
//---//
n.mode=Y;break}
//=== NEEDBITS(3); */
for(;se<3;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
//---//
switch(n.last=1/*BITS(1)*/&oe,se-=1,3/*BITS(2)*/&(
//--- DROPBITS(1) ---//
oe>>>=1)){case 0:/* stored block */
//Tracev((stderr, "inflate:     stored block%s\n",
//        state.last ? " (last)" : ""));
n.mode=L;break;case 1:/* decode codes */
if(/* fixed block */
fe(n),
//Tracev((stderr, "inflate:     fixed codes block%s\n",
//        state.last ? " (last)" : ""));
n.mode=z,t===d){
//--- DROPBITS(2) ---//
oe>>>=2,se-=2;
//---//
break e}break;case 2:/* dynamic block */
//Tracev((stderr, "inflate:     dynamic codes block%s\n",
//        state.last ? " (last)" : ""));
n.mode=j;break;case 3:e.msg="invalid block type",n.mode=J}
//--- DROPBITS(2) ---//
oe>>>=2,se-=2;
//---//
break;case L:
//---//
//=== NEEDBITS(32); */
for(
//--- BYTEBITS() ---// /* go to byte boundary */
oe>>>=7&se,se-=7&se;se<32;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
if((65535&oe)!=(oe>>>16^65535)){e.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&oe,
//Tracev((stderr, "inflate:       stored length %u\n",
//        state.length));
//=== INITBITS();
oe=0,se=0,
//===//
n.mode=Q,t===d)break e;
/* falls through */case Q:n.mode=R;
/* falls through */case R:if(ue=n.length){if(ue>ie&&(ue=ie),ue>ae&&(ue=ae),0===ue)break e;
//--- zmemcpy(put, next, copy); ---
r.arraySet(ee,Z,te,ue,re),
//---//
ie-=ue,te+=ue,ae-=ue,re+=ue,n.length-=ue;break}
//Tracev((stderr, "inflate:       stored end\n"));
n.mode=D;break;case j:
//=== NEEDBITS(14); */
for(;se<14;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
//---//
//#ifndef PKZIP_BUG_WORKAROUND
if(n.nlen=257+(31/*BITS(5)*/&oe),
//--- DROPBITS(5) ---//
oe>>>=5,se-=5,
//---//
n.ndist=1+(31/*BITS(5)*/&oe),
//--- DROPBITS(5) ---//
oe>>>=5,se-=5,
//---//
n.ncode=4+(15/*BITS(4)*/&oe),
//--- DROPBITS(4) ---//
oe>>>=4,se-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=J;break}
//#endif
//Tracev((stderr, "inflate:       table sizes ok\n"));
n.have=0,n.mode=N;
/* falls through */case N:for(;n.have<n.ncode;){
//=== NEEDBITS(3);
for(;se<3;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
n.lens[ke[n.have++]]=7&oe,//BITS(3);
//--- DROPBITS(3) ---//
oe>>>=3,se-=3}for(;n.have<19;)n.lens[ke[n.have++]]=0;
// We have separate tables & no pointers. 2 commented lines below not needed.
//state.next = state.codes;
//state.lencode = state.next;
// Switch to use dynamic table
if(n.lencode=n.lendyn,n.lenbits=7,Ce={bits:n.lenbits},xe=s(c,n.lens,0,19,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,xe){e.msg="invalid code lengths set",n.mode=J;break}
//Tracev((stderr, "inflate:       code lengths ok\n"));
n.have=0,n.mode=F;
/* falls through */case F:for(;n.have<n.nlen+n.ndist;){for(;me=(Ie=n.lencode[oe&(1<<n.lenbits)-1])>>>16&255,ve=65535&Ie,!((/*BITS(state.lenbits)*/
ge=Ie>>>24)<=se);){
//--- PULLBYTE() ---//
if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}if(ve<16)
//--- DROPBITS(here.bits) ---//
oe>>>=ge,se-=ge,
//---//
n.lens[n.have++]=ve;else{if(16===ve){for(
//=== NEEDBITS(here.bits + 2);
_e=ge+2;se<_e;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
//--- DROPBITS(here.bits) ---//
//---//
if(oe>>>=ge,se-=ge,0===n.have){e.msg="invalid bit length repeat",n.mode=J;break}we=n.lens[n.have-1],ue=3+(3&oe),//BITS(2);
//--- DROPBITS(2) ---//
oe>>>=2,se-=2}else if(17===ve){for(
//=== NEEDBITS(here.bits + 3);
_e=ge+3;se<_e;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
//--- DROPBITS(here.bits) ---//
se-=ge,
//---//
we=0,ue=3+(7&(oe>>>=ge)),//BITS(3);
//--- DROPBITS(3) ---//
oe>>>=3,se-=3}else{for(
//=== NEEDBITS(here.bits + 7);
_e=ge+7;se<_e;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
//--- DROPBITS(here.bits) ---//
se-=ge,
//---//
we=0,ue=11+(127&(oe>>>=ge)),//BITS(7);
//--- DROPBITS(7) ---//
oe>>>=7,se-=7}if(n.have+ue>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=J;break}for(;ue--;)n.lens[n.have++]=we}}
/* handle error breaks in while */if(n.mode===J)break;
/* check for end-of-block code (better have one) */if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=J;break}
/* build code tables -- note: do not change the lenbits or distbits
           values here (9 and 6) without reading the comments in inftrees.h
           concerning the ENOUGH constants, which depend on those values */
// state.lencode = state.next;
if(n.lenbits=9,Ce={bits:n.lenbits},xe=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,Ce),
// We have separate tables & no pointers. 2 commented lines below not needed.
// state.next_index = opts.table_index;
n.lenbits=Ce.bits,xe){e.msg="invalid literal/lengths set",n.mode=J;break}
// state.distcode = state.next;
if(n.distbits=6,
//state.distcode.copy(state.codes);
// Switch to use dynamic table
n.distcode=n.distdyn,Ce={bits:n.distbits},xe=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ce),
// We have separate tables & no pointers. 2 commented lines below not needed.
// state.next_index = opts.table_index;
n.distbits=Ce.bits,xe){e.msg="invalid distances set",n.mode=J;break}
//Tracev((stderr, 'inflate:       codes ok\n'));
if(n.mode=z,t===d)break e;
/* falls through */case z:n.mode=H;
/* falls through */case H:if(ie>=6&&ae>=258){
//--- RESTORE() ---
e.next_out=re,e.avail_out=ae,e.next_in=te,e.avail_in=ie,n.hold=oe,n.bits=se,
//---
o(e,le),
//--- LOAD() ---
re=e.next_out,ee=e.output,ae=e.avail_out,te=e.next_in,Z=e.input,ie=e.avail_in,oe=n.hold,se=n.bits,
//---
n.mode===D&&(n.back=-1);break}for(n.back=0;me=(Ie=n.lencode[oe&(1<<n.lenbits)-1])>>>16&255,ve=65535&Ie,!((/*BITS(state.lenbits)*/
ge=Ie>>>24)<=se);){
//--- PULLBYTE() ---//
if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}if(me&&!(240&me)){for(ye=ge,Ae=me,be=ve;me=(Ie=n.lencode[be+((oe&(1<<ye+Ae)-1/*BITS(last.bits + last.op)*/)>>ye)])>>>16&255,ve=65535&Ie,!(ye+(ge=Ie>>>24)<=se);){
//--- PULLBYTE() ---//
if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//--- DROPBITS(last.bits) ---//
oe>>>=ye,se-=ye,
//---//
n.back+=ye}
//--- DROPBITS(here.bits) ---//
if(oe>>>=ge,se-=ge,
//---//
n.back+=ge,n.length=ve,0===me){
//Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
//        "inflate:         literal '%c'\n" :
//        "inflate:         literal 0x%02x\n", here.val));
n.mode=q;break}if(32&me){
//Tracevv((stderr, "inflate:         end of block\n"));
n.back=-1,n.mode=D;break}if(64&me){e.msg="invalid literal/length code",n.mode=J;break}n.extra=15&me,n.mode=U;
/* falls through */case U:if(n.extra){for(
//=== NEEDBITS(state.extra);
_e=n.extra;se<_e;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
n.length+=oe&(1<<n.extra)-1/*BITS(state.extra)*/,
//--- DROPBITS(state.extra) ---//
oe>>>=n.extra,se-=n.extra,
//---//
n.back+=n.extra}
//Tracevv((stderr, "inflate:         length %u\n", state.length));
n.was=n.length,n.mode=G;
/* falls through */case G:for(;me=(Ie=n.distcode[oe&(1<<n.distbits)-1])>>>16&255,ve=65535&Ie,!((/*BITS(state.distbits)*/
ge=Ie>>>24)<=se);){
//--- PULLBYTE() ---//
if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}if(!(240&me)){for(ye=ge,Ae=me,be=ve;me=(Ie=n.distcode[be+((oe&(1<<ye+Ae)-1/*BITS(last.bits + last.op)*/)>>ye)])>>>16&255,ve=65535&Ie,!(ye+(ge=Ie>>>24)<=se);){
//--- PULLBYTE() ---//
if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//--- DROPBITS(last.bits) ---//
oe>>>=ye,se-=ye,
//---//
n.back+=ye}
//--- DROPBITS(here.bits) ---//
if(oe>>>=ge,se-=ge,
//---//
n.back+=ge,64&me){e.msg="invalid distance code",n.mode=J;break}n.offset=ve,n.extra=15&me,n.mode=V;
/* falls through */case V:if(n.extra){for(
//=== NEEDBITS(state.extra);
_e=n.extra;se<_e;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
n.offset+=oe&(1<<n.extra)-1/*BITS(state.extra)*/,
//--- DROPBITS(state.extra) ---//
oe>>>=n.extra,se-=n.extra,
//---//
n.back+=n.extra}
//#ifdef INFLATE_STRICT
if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=J;break}
//#endif
//Tracevv((stderr, "inflate:         distance %u\n", state.offset));
n.mode=W;
/* falls through */case W:if(0===ae)break e;if(ue=le-ae,n.offset>ue){if((/* copy from window */
ue=n.offset-ue)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=J;break}
// (!) This block is disabled in zlib defaults,
// don't enable it for binary compatibility
//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
//          Trace((stderr, "inflate.c too far\n"));
//          copy -= state.whave;
//          if (copy > state.length) { copy = state.length; }
//          if (copy > left) { copy = left; }
//          left -= copy;
//          state.length -= copy;
//          do {
//            output[put++] = 0;
//          } while (--copy);
//          if (state.length === 0) { state.mode = LEN; }
//          break;
//#endif
ue>n.wnext?(ue-=n.wnext,he=n.wsize-ue):he=n.wnext-ue,ue>n.length&&(ue=n.length),pe=n.window}else/* copy from output */
pe=ee,he=re-n.offset,ue=n.length;ue>ae&&(ue=ae),ae-=ue,n.length-=ue;do{ee[re++]=pe[he++]}while(--ue);0===n.length&&(n.mode=H);break;case q:if(0===ae)break e;ee[re++]=n.length,ae--,n.mode=H;break;case Y:if(n.wrap){
//=== NEEDBITS(32);
for(;se<32;){if(0===ie)break e;ie--,
// Use '|' instead of '+' to make sure that result is signed
oe|=Z[te++]<<se,se+=8}
//===//
// NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
if(le-=ae,e.total_out+=le,n.total+=le,le&&(e.adler=n.check=
/*UPDATE(state.check, put - _out, _out);*/
n.flags?a(n.check,ee,le,re-le):i(n.check,ee,le,re-le)),le=ae,(n.flags?oe:ne(oe))!==n.check){e.msg="incorrect data check",n.mode=J;break}
//=== INITBITS();
oe=0,se=0}n.mode=K;
/* falls through */case K:if(n.wrap&&n.flags){
//=== NEEDBITS(32);
for(;se<32;){if(0===ie)break e;ie--,oe+=Z[te++]<<se,se+=8}
//===//
if(oe!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=J;break}
//=== INITBITS();
oe=0,se=0}n.mode=$;
/* falls through */case $:xe=g;break e;case J:xe=y;break e;case X:return A;
/* falls through */
default:return v}
// inf_leave <- here is real place for "goto inf_leave", emulated via "break inf_leave"
/*
     Return from inflate(), updating the total counts and the check value.
     If there was no progress during the inflate() call, return a buffer
     error.  Call updatewindow() to create and/or update the window state.
     Note: a memory error from inflate() is non-recoverable.
   */
//--- RESTORE() ---
//---
return e.next_out=re,e.avail_out=ae,e.next_in=te,e.avail_in=ie,n.hold=oe,n.bits=se,(n.wsize||le!==e.avail_out&&n.mode<J&&(n.mode<Y||t!==h))&&de(e,e.output,e.next_out,le-e.avail_out)?(n.mode=X,A):(ce-=e.avail_in,le-=e.avail_out,e.total_in+=ce,e.total_out+=le,n.total+=le,n.wrap&&le&&(e.adler=n.check=/*UPDATE(state.check, strm.next_out - _out, _out);*/
n.flags?a(n.check,ee,le,e.next_out-le):i(n.check,ee,le,e.next_out-le)),e.data_type=n.bits+(n.last?64:0)+(n.mode===D?128:0)+(n.mode===z||n.mode===Q?256:0),(0===ce&&0===le||t===h)&&xe===p&&(xe=b),xe)}function ge(e){if(!e||!e.state/*|| strm->zfree == (free_func)0*/)return v;var t=e.state;return t.window&&(t.window=null),e.state=null,p}function me(e,t){var n;
/* check state */return e&&e.state&&2&(n=e.state).wrap?(
/* save header structure */
n.head=t,t.done=!1,p):v}function ve(e,t){var n,r=t.length;
/* check state */
return e/* == Z_NULL */&&e.state/* == Z_NULL */?0!==(n=e.state).wrap&&n.mode!==O?v:
/* check for correct dictionary identifier */
n.mode===O&&i(1,t,r,0)!==n.check?y:de(e,t,r,r)?(n.mode=X,A):(n.havedict=1,p)
/* copy dictionary to window using updatewindow(), which will amend the
   existing dictionary if appropriate */:v}n.inflateReset=ae,n.inflateReset2=oe,n.inflateResetKeep=ie,n.inflateInit=ce,n.inflateInit2=se,n.inflate=pe,n.inflateEnd=ge,n.inflateGetHeader=me,n.inflateSetDictionary=ve,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":50,"./adler32":52,"./crc32":54,"./inffast":57,"./inftrees":59}],59:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
var r=e("../utils/common"),i=15,a=852,o=592,s=0,c=1,l=2,u=[/* Length codes 257..285 base */
3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[/* Length codes 257..285 extra */
16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[/* Distance codes 0..29 base */
1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[/* Distance codes 0..29 extra */
16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,p,g,m,v,y){var A,b,w,x,C,_,I,E,k,S=y.bits,B=0,M=0,T=0,O=0,D=0,P=0,L=0,Q=0,R=0,j=0,N=null,F=0,z=new r.Buf16(i+1),H=new r.Buf16(i+1),U=null,G=0;
//here = opts.here; /* table entry for duplication */
/*
   Process a set of code lengths to create a canonical Huffman code.  The
   code lengths are lens[0..codes-1].  Each length corresponds to the
   symbols 0..codes-1.  The Huffman code is generated by first sorting the
   symbols by length from short to long, and retaining the symbol order
   for codes with equal lengths.  Then the code starts with all zero bits
   for the first code of the shortest length, and the codes are integer
   increments for the same length, and zeros are appended as the length
   increases.  For the deflate format, these bits are stored backwards
   from their more natural integer increment ordering, and so when the
   decoding tables are built in the large loop below, the integer codes
   are incremented backwards.

   This routine assumes, but does not check, that all of the entries in
   lens[] are in the range 0..MAXBITS.  The caller must assure this.
   1..MAXBITS is interpreted as that code length.  zero means that that
   symbol does not occur in this code.

   The codes are sorted by computing a count of codes for each length,
   creating from that a table of starting indices for each length in the
   sorted table, and then entering the symbols in order in the sorted
   table.  The sorted table is work[], with that space being provided by
   the caller.

   The length counts are used for other purposes as well, i.e. finding
   the minimum and maximum length codes, determining if there are any
   codes at all, checking for a valid set of lengths, and looking ahead
   at length counts to determine sub-table sizes when building the
   decoding tables.
   */
/* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
for(B=0;B<=i;B++)z[B]=0;for(M=0;M<p;M++)z[t[n+M]]++;
/* bound code lengths, force root to be within code lengths */for(D=S,O=i;O>=1&&0===z[O];O--);if(D>O&&(D=O),0===O)/* no symbols to code at all */
//table.op[opts.table_index] = 64;  //here.op = (var char)64;    /* invalid code marker */
//table.bits[opts.table_index] = 1;   //here.bits = (var char)1;
//table.val[opts.table_index++] = 0;   //here.val = (var short)0;
return g[m++]=20971520,
//table.op[opts.table_index] = 64;
//table.bits[opts.table_index] = 1;
//table.val[opts.table_index++] = 0;
g[m++]=20971520,y.bits=1,0;/* no symbols, but wait for decoding to report error */for(T=1;T<O&&0===z[T];T++);for(D<T&&(D=T)
/* check for an over-subscribed or incomplete set of lengths */,Q=1,B=1;B<=i;B++)if(Q<<=1,(Q-=z[B])<0)return-1;/* over-subscribed */if(Q>0&&(e===s||1!==O))return-1;/* incomplete set */
/* generate offsets into symbol table for each length for sorting */for(H[1]=0,B=1;B<i;B++)H[B+1]=H[B]+z[B];
/* sort symbols by length, by symbol order within each length */for(M=0;M<p;M++)0!==t[n+M]&&(v[H[t[n+M]]++]=M);
/*
   Create and fill in decoding tables.  In this loop, the table being
   filled is at next and has curr index bits.  The code being used is huff
   with length len.  That code is converted to an index by dropping drop
   bits off of the bottom.  For codes where len is less than drop + curr,
   those top drop + curr - len bits are incremented through all values to
   fill the table with replicated entries.

   root is the number of index bits for the root table.  When len exceeds
   root, sub-tables are created pointed to by the root entry with an index
   of the low root bits of huff.  This is saved in low to check for when a
   new sub-table should be started.  drop is zero when the root table is
   being filled, and drop is root when sub-tables are being filled.

   When a new sub-table is needed, it is necessary to look ahead in the
   code lengths to determine what size sub-table is needed.  The length
   counts are used for this, and so count[] is decremented as codes are
   entered in the tables.

   used keeps track of how many table entries have been allocated from the
   provided *table space.  It is checked for LENS and DIST tables against
   the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in
   the initial root table size constants.  See the comments in inftrees.h
   for more information.

   sym increments through all symbols, and the loop terminates when
   all codes of length max, i.e. all codes, have been processed.  This
   routine permits incomplete codes, so another loop after this one fills
   in the rest of the decoding tables with invalid code markers.
   */
/* set up for code type */
// poor man optimization - use if-else instead of switch,
// to avoid deopts in old v8
/* mask for comparing low */
/* check available table space */
if(e===s?(N=U=v,/* dummy value--not used */
_=19):e===c?(N=u,F-=257,U=h,G-=257,_=256):(/* DISTS */
N=f,U=d,_=-1)
/* initialize opts for loop */,j=0,/* starting code */
M=0,/* starting code symbol */
B=T,/* starting code length */
C=m,/* current table to fill in */
P=D,/* current table index bits */
L=0,/* current bits to drop from code for index */
w=-1,/* use root table entries */
x=(/* trigger new sub-table when len > root */
R=1<<D)-1,e===c&&R>a||e===l&&R>o)return 1;
/* process all codes and make table entries */for(;;){
/* create table entry */
I=B-L,v[M]<_?(E=0,k=v[M]):v[M]>_?(E=U[G+v[M]],k=N[F+v[M]]):(E=96,/* end of block */
k=0)
/* replicate for those indices with low len bits equal to huff */,A=1<<B-L,T=b=1<<P;/* save offset to next table */
do{g[C+(j>>L)+(b-=A)]=I<<24|E<<16|k}while(0!==b);
/* backwards increment the len-bit code huff */for(A=1<<B-1;j&A;)A>>=1;if(0!==A?(j&=A-1,j+=A):j=0
/* go to next symbol, update count, len */,M++,0==--z[B]){if(B===O)break;B=t[n+v[M]]}
/* create new sub-table if needed */if(B>D&&(j&x)!==w){for(
/* if first time, transition to sub-tables */
0===L&&(L=D)
/* increment past last table */,C+=T,Q=1<<(/* here min is 1 << curr */
/* determine length of next table */
P=B-L);P+L<O&&!((Q-=z[P+L])<=0);)P++,Q<<=1;
/* check for enough space */if(R+=1<<P,e===c&&R>a||e===l&&R>o)return 1;
/* point entry in root table to sub-table */
/*table.op[low] = curr;
      table.bits[low] = root;
      table.val[low] = next - opts.table_index;*/
g[w=j&x]=D<<24|P<<16|C-m}}
/* fill in remaining table entry if code is incomplete (guaranteed to have
   at most one remaining entry, since if the code is incomplete, the
   maximum code length that was allowed to get this far is one bit) */return 0!==j&&(
//table.op[next + huff] = 64;            /* invalid code marker */
//table.bits[next + huff] = len - drop;
//table.val[next + huff] = 0;
g[C+j]=B-L<<24|64<<16),
/* set return parameters */
//opts.table_index += used;
y.bits=D,0}},{"../utils/common":50}],60:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
t.exports={2:"need dictionary",/* Z_NEED_DICT       2  */
1:"stream end",/* Z_STREAM_END      1  */
0:"",/* Z_OK              0  */
"-1":"file error",/* Z_ERRNO         (-1) */
"-2":"stream error",/* Z_STREAM_ERROR  (-2) */
"-3":"data error",/* Z_DATA_ERROR    (-3) */
"-4":"insufficient memory",/* Z_MEM_ERROR     (-4) */
"-5":"buffer error",/* Z_BUF_ERROR     (-5) */
"-6":"incompatible version"/* Z_VERSION_ERROR (-6) */}},{}],61:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
/* eslint-disable space-unary-ops */var r=e("../utils/common"),i=4,a=0,o=1,s=2;
/* Public constants ==========================================================*/
/* ===========================================================================*/
//var Z_FILTERED          = 1;
//var Z_HUFFMAN_ONLY      = 2;
//var Z_RLE               = 3;
/*============================================================================*/
function c(e){for(var t=e.length;--t>=0;)e[t]=0}
// From zutil.h
var l=0,u=1,h=2,f=3,d=258,p=29,g=256,m=g+1+p,v=30,y=19,A=2*m+1,b=15,w=16,x=7,C=256,_=16,I=17,E=18,k=/* extra bits for each length code */
[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=/* extra bits for each distance code */
[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],B=/* extra bits for each bit length code */
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=512,O=new Array(2*(m+2));c(O);
/* The static literal tree. Since the bit lengths are imposed, there is no
 * need for the L_CODES extra codes used during heap construction. However
 * The codes 286 and 287 are needed to build a canonical tree (see _tr_init
 * below).
 */
var D=new Array(2*v);c(D);
/* The static distance tree. (Actually a trivial tree since all codes use
 * 5 bits.)
 */
var P=new Array(T);c(P);
/* Distance codes. The first 256 values correspond to the distances
 * 3 .. 258, the last 256 values correspond to the top 8 bits of
 * the 15 bit distances.
 */
var L=new Array(d-f+1);c(L);
/* length code for each normalized match length (0 == MIN_MATCH) */
var Q=new Array(p);c(Q);
/* First normalized length for each code (0 = MIN_MATCH) */
var R,j,N,F=new Array(v);
/* First normalized distance for each code (0 = distance of 1) */
function z(e,t,n,r,i){this.static_tree=e,/* static tree or NULL */
this.extra_bits=t,/* extra bits for each code or NULL */
this.extra_base=n,/* base index for extra_bits */
this.elems=r,/* max number of elements in the tree */
this.max_length=i,/* max bit length for the codes */
// show if `static_tree` has data or dummy - needed for monomorphic objects
this.has_stree=e&&e.length}function H(e,t){this.dyn_tree=e,/* the dynamic tree */
this.max_code=0,/* largest code with non zero frequency */
this.stat_desc=t}function U(e){return e<256?P[e]:P[256+(e>>>7)]}
/* ===========================================================================
 * Output a short LSB first on the stream.
 * IN assertion: there is enough room in pendingBuf.
 */function G(e,t){
//    put_byte(s, (uch)((w) & 0xff));
//    put_byte(s, (uch)((ush)(w) >> 8));
e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}
/* ===========================================================================
 * Send a value on a given number of bits.
 * IN assertion: length <= 16 and value fits in length bits.
 */function V(e,t,n){e.bi_valid>w-n?(e.bi_buf|=t<<e.bi_valid&65535,G(e,e.bi_buf),e.bi_buf=t>>w-e.bi_valid,e.bi_valid+=n-w):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function W(e,t,n){V(e,n[2*t]/*.Code*/,n[2*t+1]/*.Len*/)}
/* ===========================================================================
 * Reverse the first len bits of a code, using straightforward code (a faster
 * method would use a table)
 * IN assertion: 1 <= len <= 15
 */function q(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}
/* ===========================================================================
 * Flush the bit buffer, keeping at most 7 bits in it.
 */function Y(e){16===e.bi_valid?(G(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}
/* ===========================================================================
 * Compute the optimal bit lengths for a tree and update the total bit length
 * for the current block.
 * IN assertion: the fields freq and dad are set, heap[heap_max] and
 *    above are the tree nodes sorted by increasing frequency.
 * OUT assertions: the field len is set to the optimal bit length, the
 *     array bl_count contains the frequencies for each bit length.
 *     The length opt_len is updated; static_len is also updated if stree is
 *     not null.
 */function K(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;/* number of elements with bit length too large */
for(a=0;a<=b;a++)e.bl_count[a]=0;
/* In a first pass, compute the optimal bit lengths (which may
   * overflow in the case of the bit length tree).
   */ /* root of the heap */
for(c[2*e.heap[e.heap_max]+1]/*.Len*/=0,n=e.heap_max+1;n<A;n++)(a=c[2*c[2*(r=e.heap[n])+1]/*.Dad*/+1]/*.Len*/+1)>p&&(a=p,g++),c[2*r+1]/*.Len*/=a,
/* We overwrite tree[n].Dad which is no longer needed */
r>l||(/* not a leaf node */
e.bl_count[a]++,o=0,r>=d&&(o=f[r-d]),s=c[2*r]/*.Freq*/,e.opt_len+=s*(a+o),h&&(e.static_len+=s*(u[2*r+1]/*.Len*/+o)));if(0!==g){
// Trace((stderr,"\nbit length overflow\n"));
/* This happens for example on obj2 and pic of the Calgary corpus */
/* Find the first bit length which could increase: */
do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,/* move one leaf down the tree */
e.bl_count[a+1]+=2,/* move one overflow item as its brother */
e.bl_count[p]--,
/* The brother of the overflow item also moves one step up,
     * but this does not affect bl_count[max_length]
     */
g-=2}while(g>0);
/* Now recompute all bit lengths, scanning in increasing frequency.
   * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
   * lengths instead of fixing only the wrong ones. This idea is taken
   * from 'ar' written by Haruhiko Okumura.)
   */for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>l||(c[2*i+1]/*.Len*/!==a&&(
// Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
e.opt_len+=(a-c[2*i+1]/*.Len*/)*c[2*i]/*.Freq*/,c[2*i+1]/*.Len*/=a),r--)}}
/* ===========================================================================
 * Generate the codes for a given tree and bit counts (which need not be
 * optimal).
 * IN assertion: the array bl_count contains the bit length statistics for
 * the given tree and the field len is set for all tree elements.
 * OUT assertion: the field code is set for all tree elements of non
 *     zero code length.
 */function $(e,t,n){var r,i,a=new Array(b+1),o=0;/* next code value for each bit length */ /* code index */
/* The distribution counts are first used to generate the code values
   * without bit reversal.
   */
for(r=1;r<=b;r++)a[r]=o=o+n[r-1]<<1;
/* Check that the bit counts in bl_count are consistent. The last code
   * must be all ones.
   */
//Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,
//        "inconsistent bit counts");
//Tracev((stderr,"\ngen_codes: max_code %d ", max_code));
for(i=0;i<=t;i++){var s=e[2*i+1]/*.Len*/;0!==s&&(
/* Now reverse the bits */
e[2*i]/*.Code*/=q(a[s]++,s))}}
/* ===========================================================================
 * Initialize the various 'constant' tables.
 */function J(){var e,t,n,r,i,a=new Array(b+1);/* iterates over tree elements */for(
/* number of codes at each bit length for an optimal tree */
// do check in _tr_init()
//if (static_init_done) return;
/* For some embedded targets, global variables are not initialized: */
/*#ifdef NO_INIT_GLOBAL_POINTERS
  static_l_desc.static_tree = static_ltree;
  static_l_desc.extra_bits = extra_lbits;
  static_d_desc.static_tree = static_dtree;
  static_d_desc.extra_bits = extra_dbits;
  static_bl_desc.extra_bits = extra_blbits;
#endif*/
/* Initialize the mapping length (0..255) -> length code (0..28) */
n=0,r=0;r<p-1;r++)for(Q[r]=n,e=0;e<1<<k[r];e++)L[n++]=r;
//Assert (length == 256, "tr_static_init: length != 256");
/* Note that the length 255 (match length 258) can be represented
   * in two different ways: code 284 + 5 bits or code 285, so we
   * overwrite length_code[255] to use the best encoding:
   */for(L[n-1]=r,
/* Initialize the mapping dist (0..32K) -> dist code (0..29) */
i=0,r=0;r<16;r++)for(F[r]=i,e=0;e<1<<S[r];e++)P[i++]=r;
//Assert (dist == 256, "tr_static_init: dist != 256");
/* from now on, all distances are divided by 128 */
for(i>>=7;r<v;r++)for(F[r]=i<<7,e=0;e<1<<S[r]-7;e++)P[256+i++]=r;
//Assert (dist == 256, "tr_static_init: 256+dist != 512");
/* Construct the codes of the static literal tree */for(t=0;t<=b;t++)a[t]=0;for(e=0;e<=143;)O[2*e+1]/*.Len*/=8,e++,a[8]++;for(;e<=255;)O[2*e+1]/*.Len*/=9,e++,a[9]++;for(;e<=279;)O[2*e+1]/*.Len*/=7,e++,a[7]++;for(;e<=287;)O[2*e+1]/*.Len*/=8,e++,a[8]++;
/* Codes 286 and 287 do not exist, but we must include them in the
   * tree construction to get a canonical Huffman tree (longest code
   * all ones)
   */
/* The static distance tree is trivial: */
for($(O,m+1,a),e=0;e<v;e++)D[2*e+1]/*.Len*/=5,D[2*e]/*.Code*/=q(e,5);
// Now data ready and we can init static trees
R=new z(O,k,g+1,m,b),j=new z(D,S,0,v,b),N=new z(new Array(0),B,0,y,x)}
/* ===========================================================================
 * Initialize a new block.
 */function X(e){var t;/* iterates over tree elements */
/* Initialize the trees. */for(t=0;t<m;t++)e.dyn_ltree[2*t]/*.Freq*/=0;for(t=0;t<v;t++)e.dyn_dtree[2*t]/*.Freq*/=0;for(t=0;t<y;t++)e.bl_tree[2*t]/*.Freq*/=0;e.dyn_ltree[2*C]/*.Freq*/=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}
/* ===========================================================================
 * Flush the bit buffer and align the output on a byte boundary
 */function Z(e){e.bi_valid>8?G(e,e.bi_buf):e.bi_valid>0&&(
//put_byte(s, (Byte)s->bi_buf);
e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}
/* ===========================================================================
 * Copy a stored block, storing first the length and its
 * one's complement if requested.
 */function ee(e,t,n,i){Z(e),/* align on byte boundary */
i&&(G(e,n),G(e,~n)),
//  while (len--) {
//    put_byte(s, *buf++);
//  }
r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}
/* ===========================================================================
 * Compares to subtrees, using the tree depth as tie breaker when
 * the subtrees have equal frequency. This minimizes the worst case length.
 */function te(e,t,n,r){var i=2*t,a=2*n;return e[i]/*.Freq*/<e[a]/*.Freq*/||e[i]/*.Freq*/===e[a]/*.Freq*/&&r[t]<=r[n]}
/* ===========================================================================
 * Restore the heap property by moving down the tree starting at node k,
 * exchanging a node with the smallest of its two sons if necessary, stopping
 * when the heap property is re-established (each father smaller than its
 * two sons).
 */function ne(e,t,n){/* left son of k */
for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(
/* Set j to the smallest of the two sons: */
i<e.heap_len&&te(t,e.heap[i+1],e.heap[i],e.depth)&&i++
/* Exit if v is smaller than both sons */,!te(t,r,e.heap[i],e.depth));)
/* Exchange v with the smallest son */
e.heap[n]=e.heap[i],n=i,
/* And continue down the tree, setting j to the left son of k */
i<<=1;e.heap[n]=r}
// inlined manually
// var SMALLEST = 1;
/* ===========================================================================
 * Send the block data compressed using the given Huffman trees
 */function re(e,t,n){var r,i,a,o,s=0;/* distance of matched string */ /* number of extra bits to send */
if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?W(e,i,t):(
/* Here, lc is the match length - MIN_MATCH */
W(e,(a=L[i])+g+1,t),0!==(/* send the length code */
o=k[a])&&V(e,i-=Q[a],o),
//Assert (code < D_CODES, "bad d_code");
W(e,/* dist is now the match distance - 1 */
a=U(--r),n),0!==(/* send the distance code */
o=S[a])&&V(e,r-=F[a],o))}while(s<e.last_lit);W(e,C,t)}
/* ===========================================================================
 * Construct one Huffman tree and assigns the code bit strings and lengths.
 * Update the total bit length for the current block.
 * IN assertion: the field freq is set for all tree elements.
 * OUT assertions: the fields len and code are set to the optimal bit length
 *     and corresponding code. The length opt_len is updated; static_len is
 *     also updated if stree is not null. The field max_code is set.
 */function ie(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(/* new node being created */
/* Construct the initial heap, with least frequent element in
   * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].
   * heap[0] is not used.
   */
e.heap_len=0,e.heap_max=A,n=0;n<c;n++)0!==a[2*n]/*.Freq*/?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):a[2*n+1]/*.Len*/=0;
/* The pkzip format requires that at least one distance code exists,
   * and that at least one bit should be sent even if there is only one
   * possible code. So to avoid special checks later on we force at least
   * two codes of non zero frequency.
   */for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]/*.Freq*/=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]/*.Len*/)
/* node is 0 or 1 so it does not have extra bits */;
/* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
   * establish sub-heaps of increasing lengths:
   */
for(t.max_code=l,n=e.heap_len>>1/*int /2*/;n>=1;n--)ne(e,a,n);
/* Construct the Huffman tree by repeatedly combining the least two
   * frequent nodes.
   */i=c;/* next internal node of the tree */
do{
//pqremove(s, tree, n);  /* n = node of least frequency */
/*** pqremove ***/
n=e.heap[1/*SMALLEST*/],e.heap[1/*SMALLEST*/]=e.heap[e.heap_len--],ne(e,a,1/*SMALLEST*/),
/***/
r=e.heap[1/*SMALLEST*/],/* m = node of next least frequency */
e.heap[--e.heap_max]=n,/* keep the nodes sorted by frequency */
e.heap[--e.heap_max]=r,
/* Create a new node father of n and m */
a[2*i]/*.Freq*/=a[2*n]/*.Freq*/+a[2*r]/*.Freq*/,e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]/*.Dad*/=a[2*r+1]/*.Dad*/=i,
/* and insert the new node in the heap */
e.heap[1/*SMALLEST*/]=i++,ne(e,a,1/*SMALLEST*/)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1/*SMALLEST*/],
/* At this point, the fields freq and dad are set. We can now
   * generate the bit lengths.
   */
K(e,t),
/* The field len is now set, we can generate the bit codes */
$(a,l,e.bl_count)}
/* ===========================================================================
 * Scan a literal or distance tree to determine the frequencies of the codes
 * in the bit length tree.
 */function ae(e,t,n){var r,i,a=-1,o=t[1]/*.Len*/,s=0,c=7,l=4;/* iterates over all tree elements */ /* guard */
for(/* min repeat count */
0===o&&(c=138,l=3),t[2*(n+1)+1]/*.Len*/=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1]/*.Len*/,++s<c&&i===o||(s<l?e.bl_tree[2*i]/*.Freq*/+=s:0!==i?(i!==a&&e.bl_tree[2*i]/*.Freq*/++,e.bl_tree[2*_]/*.Freq*/++):s<=10?e.bl_tree[2*I]/*.Freq*/++:e.bl_tree[2*E]/*.Freq*/++,s=0,a=i,0===o?(c=138,l=3):i===o?(c=6,l=3):(c=7,l=4))}
/* ===========================================================================
 * Send a literal or distance tree in compressed form, using the codes in
 * bl_tree.
 */function oe(e,t,n){var r,i,a=-1,o=t[1]/*.Len*/,s=0,c=7,l=4;/* iterates over all tree elements */for(/* min repeat count */
/* tree[max_code+1].Len = -1; */ /* guard already set */
0===o&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1]/*.Len*/,!(++s<c&&i===o)){if(s<l)do{W(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(W(e,i,e.bl_tree),s--),
//Assert(count >= 3 && count <= 6, " 3_6?");
W(e,_,e.bl_tree),V(e,s-3,2)):s<=10?(W(e,I,e.bl_tree),V(e,s-3,3)):(W(e,E,e.bl_tree),V(e,s-11,7));s=0,a=i,0===o?(c=138,l=3):i===o?(c=6,l=3):(c=7,l=4)}}
/* ===========================================================================
 * Construct the Huffman tree for the bit lengths and return the index in
 * bl_order of the last bit length code to send.
 */function se(e){var t;/* index of last bit length code of non zero freq */
/* Determine the bit length frequencies for literal and distance trees */
/* opt_len now includes the length of the tree representations, except
   * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.
   */
/* Determine the number of bit length codes to send. The pkzip format
   * requires that at least 4 bit length codes be sent. (appnote.txt says
   * 3 but the actual value used is 4.)
   */
for(ae(e,e.dyn_ltree,e.l_desc.max_code),ae(e,e.dyn_dtree,e.d_desc.max_code),
/* Build the bit length tree: */
ie(e,e.bl_desc),t=y-1;t>=3&&0===e.bl_tree[2*M[t]+1]/*.Len*/;t--);
/* Update opt_len to include the bit length tree and counts */
//Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld",
//        s->opt_len, s->static_len));
return e.opt_len+=3*(t+1)+5+5+4,t}
/* ===========================================================================
 * Send the header for a block using dynamic Huffman trees: the counts, the
 * lengths of the bit length codes, the literal tree and the distance tree.
 * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
 */function ce(e,t,n,r){var i;/* index in bl_order */
//Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes");
//Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,
//        "too many codes");
//Tracev((stderr, "\nbl counts: "));
/* not -3 as stated in appnote.txt */
for(V(e,t-257,5),/* not +255 as stated in appnote.txt */
V(e,n-1,5),V(e,r-4,4),i=0;i<r;i++)
//Tracev((stderr, "\nbl code %2d ", bl_order[rank]));
V(e,e.bl_tree[2*M[i]+1]/*.Len*/,3);
//Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent));
oe(e,e.dyn_ltree,t-1),/* literal tree */
//Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent));
oe(e,e.dyn_dtree,n-1)}
/* ===========================================================================
 * Check if the data type is TEXT or BINARY, using the following algorithm:
 * - TEXT if the two conditions below are satisfied:
 *    a) There are no non-portable control characters belonging to the
 *       "black list" (0..6, 14..25, 28..31).
 *    b) There is at least one printable character belonging to the
 *       "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
 * - BINARY otherwise.
 * - The following partially-portable control characters form a
 *   "gray list" that is ignored in this detection algorithm:
 *   (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
 * IN assertion: the fields Freq of dyn_ltree are set.
 */function le(e){
/* black_mask is the bit mask of black-listed bytes
   * set bits 0..6, 14..25, and 28..31
   * 0xf3ffc07f = binary 11110011111111111100000001111111
   */
var t,n=4093624447;
/* Check for non-textual ("black-listed") bytes. */
for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t]/*.Freq*/)return a;
/* Check for textual ("white-listed") bytes. */if(0!==e.dyn_ltree[18]/*.Freq*/||0!==e.dyn_ltree[20]/*.Freq*/||0!==e.dyn_ltree[26]/*.Freq*/)return o;for(t=32;t<g;t++)if(0!==e.dyn_ltree[2*t]/*.Freq*/)return o;
/* There are no "black-listed" or "white-listed" bytes:
   * this stream either is empty or has tolerated ("gray-listed") bytes only.
   */return a}c(F);var ue=!1;
/* ===========================================================================
 * Initialize the tree data structures for a new zlib stream.
 */function he(e){ue||(J(),ue=!0),e.l_desc=new H(e.dyn_ltree,R),e.d_desc=new H(e.dyn_dtree,j),e.bl_desc=new H(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,
/* Initialize the first block of the first file: */
X(e)}
/* ===========================================================================
 * Send a stored block
 */function fe(e,t,n,r){V(e,(l<<1)+(r?1:0),3),/* send block type */
ee(e,t,n,!0)}
/* ===========================================================================
 * Send one empty static block to give enough lookahead for inflate.
 * This takes 10 bits, of which 7 may remain in the bit buffer.
 */function de(e){V(e,u<<1,3),W(e,C,O),Y(e)}
/* ===========================================================================
 * Determine the best encoding for the current block: dynamic trees, static
 * trees or store, and output the encoded block to the zip file.
 */function pe(e,t,n,r){var a,o,c=0;/* opt_len and static_len in bytes */ /* index of last bit length code of non zero freq */
/* Build the Huffman trees unless a stored block is forced */
e.level>0?(
/* Check if the file is binary or text */
e.strm.data_type===s&&(e.strm.data_type=le(e))
/* Construct the literal and distance trees */,ie(e,e.l_desc),
// Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
//        s->static_len));
ie(e,e.d_desc),
// Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
//        s->static_len));
/* At this point, opt_len and static_len are the total bit lengths of
     * the compressed block data, excluding the tree representations.
     */
/* Build the bit length tree for the above two trees, and get the index
     * in bl_order of the last bit length code to send.
     */
c=se(e),
/* Determine the best encoding. Compute the block lengths in bytes. */
a=e.opt_len+3+7>>>3,
// Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
//        opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
//        s->last_lit));
(o=e.static_len+3+7>>>3)<=a&&(a=o)):
// Assert(buf != (char*)0, "lost buf");
a=o=n+5,n+4<=a&&-1!==t?
/* 4: two words for the lengths */
/* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
     * Otherwise we can't have processed more than WSIZE input bytes since
     * the last block flush, because compression would have been
     * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
     * transform a block into a stored block.
     */
fe(e,t,n,r):e.strategy===i||o===a?(V(e,(u<<1)+(r?1:0),3),re(e,O,D)):(V(e,(h<<1)+(r?1:0),3),ce(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),re(e,e.dyn_ltree,e.dyn_dtree)),
// Assert (s->compressed_len == s->bits_sent, "bad compressed size");
/* The above check is made mod 2^32, for files larger than 512 MB
   * and uLong implemented on 32 bits.
   */
X(e),r&&Z(e)}
/* ===========================================================================
 * Save the match info and tally the frequency counts. Return true if
 * the current block must be flushed.
 */function ge(e,t,n){
// (!) This block is disabled in zlib defaults,
// don't enable it for binary compatibility
//#ifdef TRUNCATE_BLOCK
//  /* Try to guess if it is profitable to stop the current block here */
//  if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {
//    /* Compute an upper bound for the compressed length */
//    out_length = s.last_lit*8;
//    in_length = s.strstart - s.block_start;
//    for (dcode = 0; dcode < D_CODES; dcode++) {
//      out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);
//    }
//    out_length >>>= 3;
//    //Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ",
//    //       s->last_lit, in_length, out_length,
//    //       100L - out_length*100L/in_length));
//    if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {
//      return true;
//    }
//  }
//#endif
//var out_length, in_length, dcode;
return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?
/* lc is the unmatched char */
e.dyn_ltree[2*n]/*.Freq*/++:(e.matches++,
/* Here, lc is the match length - MIN_MATCH */
t--,/* dist = match distance - 1 */
//Assert((ush)dist < (ush)MAX_DIST(s) &&
//       (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
//       (ush)d_code(dist) < (ush)D_CODES,  "_tr_tally: bad match");
e.dyn_ltree[2*(L[n]+g+1)]/*.Freq*/++,e.dyn_dtree[2*U(t)]/*.Freq*/++),e.last_lit===e.lit_bufsize-1;
/* We avoid equality with lit_bufsize because of wraparound at 64K
   * on 16 bit machines and because stored blocks are restricted to
   * 64K-1 bytes.
   */}n._tr_init=he,n._tr_stored_block=fe,n._tr_flush_block=pe,n._tr_tally=ge,n._tr_align=de},{"../utils/common":50}],62:[function(e,t,n){"use strict";
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin

// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.

// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:

// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
function r(){
/* next input byte */
this.input=null,// JS specific, because we have no pointers
this.next_in=0,
/* number of bytes available at input */
this.avail_in=0,
/* total number of input bytes read so far */
this.total_in=0,
/* next output byte should be put there */
this.output=null,// JS specific, because we have no pointers
this.next_out=0,
/* remaining free space at output */
this.avail_out=0,
/* total number of bytes output so far */
this.total_out=0,
/* last error message, NULL if no error */
this.msg=""/*Z_NULL*/,
/* not visible by applications */
this.state=null,
/* best guess about the data type: binary or text */
this.data_type=2/*Z_UNKNOWN*/,
/* adler32 value of the uncompressed data */
this.adler=0}t.exports=r},{}],63:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick((function(){t.apply(null,a)}))}}void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this,e("_process"))},{_process:64}],64:[function(e,t,n){
// shim for using process in browser
var r,i,a=t.exports={};
// cached from whatever global is present so that test runners that stub it
// don't break things.  But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals.  It's inside a
// function because try/catches deoptimize in certain engines.
function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)
//normal enviroments in sane situations
return setTimeout(e,0);
// if setTimeout wasn't available but was latter defined
if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{
// when when somebody has screwed with setTimeout but no I.E. maddness
return r(e,0)}catch(t){try{
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return r.call(null,e,0)}catch(t){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return r.call(this,e,0)}}}function l(e){if(i===clearTimeout)
//normal enviroments in sane situations
return clearTimeout(e);
// if clearTimeout wasn't available but was latter defined
if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{
// when when somebody has screwed with setTimeout but no I.E. maddness
return i(e)}catch(t){try{
// When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
return i.call(null,e)}catch(t){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return i.call(this,e)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,h=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?h=u.concat(h):d=-1,h.length&&g())}function g(){if(!f){var e=c(p);f=!0;for(var t=h.length;t;){for(u=h,h=[];++d<t;)u&&u[d].run();d=-1,t=h.length}u=null,f=!1,l(e)}}
// v8 likes predictible objects
function m(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new m(e,t)),1!==h.length||f||c(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",// empty string to avoid regexp issues
a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],65:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":66}],66:[function(e,t,n){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.
"use strict";
/*<replacement>*/var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};
/*</replacement>*/
/*<replacement>*/
/*</replacement>*/
t.exports=h;
/*<replacement>*/
var a=Object.create(e("core-util-is"));a.inherits=e("inherits");
/*</replacement>*/
var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(h,o);for(
// avoid scope creep, the keys array can then be collected
var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];h.prototype[u]||(h.prototype[u]=s.prototype[u])}function h(e){if(!(this instanceof h))return new h(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}
// the no-half-open enforcer
function f(){
// if we allow half-open state, or if the writable side ended,
// then we're ok.
this.allowHalfOpen||this._writableState.ended||
// no more data can be written.
// But allow more writes to happen in this tick.
r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{
// making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){
// we ignore the value if the stream
// has not been initialized yet
void 0!==this._readableState&&void 0!==this._writableState&&(
// backward compatibility, the user is explicitly
// managing destroyed
this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":68,"./_stream_writable":70,"core-util-is":4,inherits:8,"process-nextick-args":63}],67:[function(e,t,n){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
"use strict";t.exports=a;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));
/*<replacement>*/function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e("inherits"),
/*</replacement>*/
i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":69,"core-util-is":4,inherits:8}],68:[function(e,n,r){(function(t,r){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
"use strict";
/*<replacement>*/var i=e("process-nextick-args");
/*</replacement>*/n.exports=x;
/*<replacement>*/
var a,o=e("isarray");
/*</replacement>*/
/*<replacement>*/
/*</replacement>*/
x.ReadableState=w,e("events").EventEmitter;
/*<replacement>*/
var s=function(e,t){return e.listeners(t).length},c=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,u=r.Uint8Array||function(){};function h(e){return l.from(e)}function f(e){return l.isBuffer(e)||e instanceof u}
/*</replacement>*/
/*<replacement>*/var d=Object.create(e("core-util-is"));d.inherits=e("inherits");
/*</replacement>*/
/*<replacement>*/
var p=e("util"),g=void 0;g=p&&p.debuglog?p.debuglog("stream"):function(){}
/*</replacement>*/;var m,v=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");d.inherits(x,c);var A=["error","close","destroy","pause","resume"];function b(e,t,n){
// Sadly this is not cacheable as some libraries bundle their own
// event emitter implementation with them.
if("function"==typeof e.prependListener)return e.prependListener(t,n);
// This is a hack to make sure that our error handler is attached before any
// userland ones.  NEVER DO THIS. This is here only because this code needs
// to continue to work with older versions of Node.js that do not include
// the prependListener() method. The goal is to eventually remove this hack.
e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function w(t,n){t=t||{};
// Duplex streams are both readable and writable, but share
// the same options object.
// However, some cases require setting options to different
// values for the readable and the writable sides of the duplex stream.
// These options can be provided separately as readableXXX and writableXXX.
var r=n instanceof(a=a||e("./_stream_duplex"));
// object stream flag. Used to make read(n) ignore n and to
// make all the buffer merging and length checks go away
this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);
// the point at which it stops calling _read() to fill the buffer
// Note: 0 is a valid value, means "don't call _read preemptively ever"
var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,
// cast to ints.
this.highWaterMark=Math.floor(this.highWaterMark),
// A linked list is used to store data chunks instead of an array because the
// linked list can remove elements from the beginning faster than
// array.shift()
this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,
// a flag to be able to tell if the event 'readable'/'data' is emitted
// immediately, or on a later tick.  We set this to true at first, because
// any actions that shouldn't happen until "later" should generally also
// not happen before the first read call.
this.sync=!0,
// whenever we return null, then we set a flag to say
// that we're awaiting a 'readable' event emission.
this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,
// has it been destroyed
this.destroyed=!1,
// Crypto is kind of old and crusty.  Historically, its default string
// encoding is 'binary' so we have to make this configurable.
// Everything else in the universe uses 'utf8', though.
this.defaultEncoding=t.defaultEncoding||"utf8",
// the number of writers that are awaiting a drain event in .pipe()s
this.awaitDrain=0,
// if true, a maybeReadMore has been scheduled
this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(m||(m=e("string_decoder/").StringDecoder),this.decoder=new m(t.encoding),this.encoding=t.encoding)}function x(t){if(a=a||e("./_stream_duplex"),!(this instanceof x))return new x(t);this._readableState=new w(t,this),
// legacy
this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function C(e,t,n,r,i){var a,o=e._readableState;return null===t?(o.reading=!1,M(e,o)):(i||(a=I(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=h(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):D(e,o)):_(e,o,t,!1))):r||(o.reading=!1)),E(o)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(
// update the buffer info.
t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),D(e,t)}function I(e,t){var n;return f(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}
// if it's past the high water mark, we can push in some more.
// Also, if we have no data yet, we can stand some
// more bytes.  This is to work around cases where hwm=0,
// such as the repl.  Also, if the push() triggered a
// readable event, and the user called read(largeNumber) such that
// needReadable was set, then we ought to push more, so that another
// 'readable' event will be triggered.
function E(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){
// we ignore the value if the stream
// has not been initialized yet
this._readableState&&(
// backward compatibility, the user is explicitly
// managing destroyed
this._readableState.destroyed=e)}}),x.prototype.destroy=y.destroy,x.prototype._undestroy=y.undestroy,x.prototype._destroy=function(e,t){this.push(null),t(e)},
// Manually shove something into the read() buffer.
// This returns true if the highWaterMark has not been hit yet,
// similar to how Writable.write() returns true if you should
// write() some more.
x.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},
// Unshift should *always* be something directly out of read()
x.prototype.unshift=function(e){return C(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},
// backwards compatibility.
x.prototype.setEncoding=function(t){return m||(m=e("string_decoder/").StringDecoder),this._readableState.decoder=new m(t),this._readableState.encoding=t,this};
// Don't raise the hwm > 8MB
var k=8388608;function S(e){return e>=k?e=k:(
// Get the next highest power of 2 to prevent increasing hwm excessively in
// tiny amounts
e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function B(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?
// Only flow one buffer at a time
t.flowing&&t.length?t.buffer.head.data.length:t.length:(
// If we're asking for more than the current hwm, then raise the hwm.
e>t.highWaterMark&&(t.highWaterMark=S(e)),e<=t.length?e:
// Don't have enough
t.ended?t.length:(t.needReadable=!0,0))}
// you can override either this method, or the async _read(n) below.
function M(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,
// emit 'readable' now to make sure it gets picked up.
T(e)}}
// Don't emit readable right away in sync mode, because this can trigger
// another read() call => stack overflow.  This way, it might trigger
// a nextTick recursion warning, but that's not so bad.
function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){g("emit readable"),e.emit("readable"),N(e)}
// at this point, the user has presumably seen the 'readable' event,
// and called read() to consume some data.  that may have triggered
// in turn another _read(n) call, in which case reading = true if
// it's in progress.
// However, if we're not ended, or reading, and the length < hwm,
// then go ahead and try to read some more preemptively.
function D(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(g("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}
// abstract method.  to be overridden in specific implementation classes.
// call cb(er, data) where data is <= n in length.
// for virtual (non-string, non-buffer) streams, "length" is somewhat
// arbitrary, and perhaps not very meaningful.
function L(e){return function(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,N(e))}}function Q(e){g("readable nexttick read 0"),e.read(0)}
// pause() and resume() are remnants of the legacy readable stream API
// If the user uses them, then switch into old mode.
function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(j,e,t))}function j(e,t){t.reading||(g("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(g("flow",t.flowing);t.flowing&&null!==e.read(););}
// wrap an old-style stream as the async data source.
// This is *not* part of the readable stream interface.
// It is an ugly unfortunate mess of history.
// Pluck off n bytes from an array of buffers.
// Length is the combined lengths of all the buffers in the list.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function F(e,t){
// nothing buffered
return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(
// read it all, truncate the list
n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):
// read part of list
n=z(e,t.buffer,t.decoder),n);var n}
// Extracts only enough buffered data to satisfy the amount requested.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function z(e,t,n){var r;return e<t.head.data.length?(
// slice is the same for buffers and strings
r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):
// first chunk is a perfect match
r=e===t.head.data.length?t.shift():n?H(e,t):U(e,t),r}
// Copies a specified amount of characters from the list of buffered data
// chunks.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function H(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}
// Copies a specified amount of bytes from the list of buffered data chunks.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function U(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0==(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function G(e){var t=e._readableState;
// If we get here before consuming all the bytes, then that is a
// bug in node.  Should never happen.
if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(V,t,e))}function V(e,t){
// Check that we didn't get one last unshift.
e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function W(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}x.prototype.read=function(e){g("read",e),e=parseInt(e,10);var t=this._readableState,n=e;
// if we're doing read(0) to trigger a readable event, but we
// already have a bunch of data in the buffer, then just trigger
// the 'readable' event and move on.
if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return g("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):T(this),null;
// if we've ended, and we're now clear, then finish it up.
if(0===(e=B(e,t))&&t.ended)return 0===t.length&&G(this),null;
// All the actual chunk generation logic needs to be
// *below* the call to _read.  The reason is that in certain
// synthetic stream cases, such as passthrough streams, _read
// may be a completely synchronous operation which may change
// the state of the read buffer, providing enough data when
// before there was *not* enough.

// So, the steps are:
// 1. Figure out what the state of things will be after we do
// a read from the buffer.

// 2. If that resulting state will trigger a _read, then call _read.
// Note that this may be asynchronous, or synchronous.  Yes, it is
// deeply ugly to write APIs this way, but that still doesn't mean
// that the Readable class should behave improperly, as streams are
// designed to be sync/async agnostic.
// Take note if the _read call is sync or async (ie, if the read call
// has returned yet), so that we know whether or not it's safe to emit
// 'readable' etc.

// 3. Actually pull the requested chunks out of the buffer and return.
// if we need a readable event, then we need to do some reading.
var r,i=t.needReadable;return g("need readable",i),
// if we currently have less than the highWaterMark, then also read some
(0===t.length||t.length-e<t.highWaterMark)&&g("length less than watermark",i=!0),
// however, if we've ended, then there's no point, and if we're already
// reading, then it's unnecessary.
t.ended||t.reading?g("reading or ended",i=!1):i&&(g("do read"),t.reading=!0,t.sync=!0,
// if the length is currently zero, then we *need* a readable event.
0===t.length&&(t.needReadable=!0),
// call internal read method
this._read(t.highWaterMark),t.sync=!1,
// If _read pushed data synchronously, then `reading` will be false,
// and we need to re-evaluate how much data we can return to the user.
t.reading||(e=B(n,t))),null===(r=e>0?F(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(
// If we have nothing in the buffer, then we want to know
// as soon as we *do* get something into the buffer.
t.ended||(t.needReadable=!0),
// If we tried to read() past the EOF, then emit end on the next tick.
n!==e&&t.ended&&G(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,n){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,g("pipe count=%d opts=%j",a.pipesCount,n);var o=n&&!1===n.end||e===t.stdout||e===t.stderr?A:l;function c(e,t){g("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function l(){g("onend"),e.end()}
// when the dest drains, it reduces the awaitDrain counter
// on the source.  This would be more elegant with a .once()
// handler in flow(), but adding and removing repeatedly is
// too slow.
a.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",c);var u=L(r);e.on("drain",u);var h=!1;function f(){g("cleanup"),
// cleanup event handlers once the pipe is broken
e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",A),r.removeListener("data",p),h=!0,
// if the reader is waiting for a drain event from this
// specific writer, then it would cause it to never start
// flowing again.
// So, if this is awaiting a drain, then we just call it now.
// If we don't know, then assume that we are waiting for one.
!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}
// If the user pushes more data while we're writing to dest then we'll end up
// in ondata again. However, we only want to increase awaitDrain once because
// dest will only emit one 'drain' event for the multiple writes.
// => Introduce a guard on increasing awaitDrain.
var d=!1;function p(t){g("ondata"),d=!1,!1!==e.write(t)||d||(
// If the user unpiped during `dest.write()`, it is possible
// to get stuck in a permanently paused state if that write
// also returned false.
// => Check whether `dest` is still a piping destination.
(1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==W(a.pipes,e))&&!h&&(g("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}
// if the dest has an error, then stop piping into it.
// however, don't suppress the throwing behavior for this.
function m(t){g("onerror",t),A(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}
// Make sure our error handler is attached before userland ones.
// Both close and finish should trigger unpipe, but only once.
function v(){e.removeListener("finish",y),A()}function y(){g("onfinish"),e.removeListener("close",v),A()}function A(){g("unpipe"),r.unpipe(e)}
// tell the dest that it's being piped to
return r.on("data",p),b(e,"error",m),e.once("close",v),e.once("finish",y),e.emit("pipe",r),
// start the flow if it hasn't been started already.
a.flowing||(g("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};
// if we're not piping anywhere, then do nothing.
if(0===t.pipesCount)return this;
// just one destination.  most common case.
if(1===t.pipesCount)
// passed in one, but it's not the right one.
return e&&e!==t.pipes||(e||(e=t.pipes),
// got a match.
t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;
// slow case. multiple pipe destinations.
if(!e){
// remove all.
var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}
// try to find the right one.
var o=W(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},
// set up data events if they are asked for
// Ensure readable listeners eventually get something
x.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)
// Start flowing on next tick if stream isn't explicitly paused
!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&T(this):i.nextTick(Q,this))}return n},x.prototype.addListener=x.prototype.on,x.prototype.resume=function(){var e=this._readableState;return e.flowing||(g("resume"),e.flowing=!0,R(this,e)),this},x.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;
// proxy all the other methods.
// important when wrapping filters and duplexes.
for(var i in e.on("end",(function(){if(g("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){
// don't skip over falsy values in objectMode
g("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));
// proxy certain important events.
for(var a=0;a<A.length;a++)e.on(A[a],this.emit.bind(this,A[a]));
// when we try to consume some more bytes, simply unpause the
// underlying stream.
return this._read=function(t){g("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{
// making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable:!1,get:function(){return this._readableState.highWaterMark}}),
// exposed for testing purposes only.
x._fromList=F}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":66,"./internal/streams/BufferList":71,"./internal/streams/destroy":72,"./internal/streams/stream":73,_process:64,"core-util-is":4,events:5,inherits:8,isarray:10,"process-nextick-args":63,"safe-buffer":78,"string_decoder/":81,util:2}],69:[function(e,t,n){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a transform stream is a readable/writable stream where you do
// something with the data.  Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
// some bits pass through, and others are simply ignored.  (That would
// be a valid example of a transform, of course.)
// While the output is causally related to the input, it's not a
// necessarily symmetric or synchronous transformation.  For example,
// a zlib stream might take multiple plain-text writes(), and then
// emit a single compressed chunk some time in the future.
// Here's how this works:
// The Transform stream has all the aspects of the readable and writable
// stream classes.  When you write(chunk), that calls _write(chunk,cb)
// internally, and returns false if there's a lot of pending writes
// buffered up.  When you call read(), that calls _read(n) until
// there's enough pending readable data buffered up.
// In a transform stream, the written data is placed in a buffer.  When
// _read(n) is called, it transforms the queued up data, calling the
// buffered _write cb's as it consumes chunks.  If consuming a single
// written chunk would result in multiple output chunks, then the first
// outputted bit calls the readcb, and subsequent chunks just go into
// the read buffer, and will cause it to emit 'readable' if necessary.
// This way, back-pressure is actually determined by the reading side,
// since _read has to be called to start processing a new chunk.  However,
// a pathological inflate type of transform can cause excessive buffering
// here.  For example, imagine a stream where every byte of input is
// interpreted as an integer from 0-255, and then results in that many
// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in
// 1kb of data being output.  In this case, you could write a very small
// amount of input, and end up with a very large amount of output.  In
// such a pathological inflating mechanism, there'd be no way to tell
// the system to stop doing the transform.  A single 4MB write could
// cause the system to run out of memory.
// However, even in such a pathological case, only a single written chunk
// would be consumed, and then the rest would wait (un-transformed) until
// the results of the previous transformed chunk were consumed.
"use strict";t.exports=o;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));
/*<replacement>*/function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&// single equals check for both `null` and `undefined`
this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},
// start out asking for a readable event once data is transformed.
this._readableState.needReadable=!0,
// we have implemented the _read method, and done the other things
// that Readable wants before the first _read call, so unset the
// sync guard flag.
this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),
// When the writable side finishes, then flush out anything remaining.
this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);
// if there's nothing in the write buffer, then that means
// that nothing more will ever be provided
if(null!=n&&// single equals check for both `null` and `undefined`
e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),
/*</replacement>*/
i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},
// This is the part where you do stuff!
// override this function in implementation classes.
// 'chunk' is an input chunk.
// Call `push(newChunk)` to pass along transformed output
// to the readable side.  You may call 'push' zero or more times.
// Call `cb(err)` when you are done with this chunk.  If you pass
// an error, then that'll put the hurt on the whole operation.  If you
// never call cb(), then you'll never get another chunk.
o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},
// Doesn't matter what the args are here.
// _transform does all the work.
// That we got here means that the readable side wants more data.
o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):
// mark that we need a transform, so that any data that comes in
// will get processed, now that we've asked for it.
t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":66,"core-util-is":4,inherits:8}],70:[function(e,n,r){(function(t,r,i){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.
"use strict";
/*<replacement>*/var a=e("process-nextick-args");
/*</replacement>*/
// It seems a linked list but it is not
// there will be only 2 of these for each stream
function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){R(t,e)}}
/* </replacement> */
/*<replacement>*/n.exports=b;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;
/*</replacement>*/
/*<replacement>*/
/*</replacement>*/
b.WritableState=A;
/*<replacement>*/
var l=Object.create(e("core-util-is"));l.inherits=e("inherits");
/*</replacement>*/
/*<replacement>*/
var u={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,d=r.Uint8Array||function(){};
/*</replacement>*/
/*<replacement>*/function p(e){return f.from(e)}function g(e){return f.isBuffer(e)||e instanceof d}
/*</replacement>*/var m,v=e("./internal/streams/destroy");function y(){}function A(t,n){s=s||e("./_stream_duplex"),t=t||{};
// Duplex streams are both readable and writable, but share
// the same options object.
// However, some cases require setting options to different
// values for the readable and the writable sides of the duplex stream.
// These options can be provided separately as readableXXX and writableXXX.
var r=n instanceof s;
// object stream flag to indicate whether or not this stream
// contains buffers or objects.
this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);
// the point at which write() starts returning false
// Note: 0 is a valid value, means that we always return false if
// the entire buffer is not flushed immediately on write()
var i=t.highWaterMark,a=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:c,
// cast to ints.
this.highWaterMark=Math.floor(this.highWaterMark),
// if _final has been called
this.finalCalled=!1,
// drain event flag.
this.needDrain=!1,
// at the start of calling end()
this.ending=!1,
// when end() has been called, and returned
this.ended=!1,
// when 'finish' is emitted
this.finished=!1,
// has it been destroyed
this.destroyed=!1;
// should we decode strings into buffers before passing to _write?
// this is here so that some node-core streams can optimize string
// handling at a lower level.
var l=!1===t.decodeStrings;this.decodeStrings=!l,
// Crypto is kind of old and crusty.  Historically, its default string
// encoding is 'binary' so we have to make this configurable.
// Everything else in the universe uses 'utf8', though.
this.defaultEncoding=t.defaultEncoding||"utf8",
// not an actual buffer we keep track of, but a measurement
// of how much we're waiting to get pushed to some underlying
// socket or file.
this.length=0,
// a flag to see when we're in the middle of a write.
this.writing=!1,
// when true all writes will be buffered until .uncork() call
this.corked=0,
// a flag to be able to tell if the onwrite cb is called immediately,
// or on a later tick.  We set this to true at first, because any
// actions that shouldn't happen until "later" should generally also
// not happen before the first write call.
this.sync=!0,
// a flag to know if we're processing previously buffered items, which
// may call the _write() callback in the same tick, so that we don't
// end up in an overlapped onwrite situation.
this.bufferProcessing=!1,
// the callback that's passed to _write(chunk,cb)
this.onwrite=function(e){S(n,e)},
// the callback that the user supplies to write(chunk,encoding,cb)
this.writecb=null,
// the amount that is being written when _write is called.
this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,
// number of pending user-supplied write callbacks
// this must be 0 before 'finish' can be emitted
this.pendingcb=0,
// emit prefinish if the only thing we're waiting for is _write cbs
// This is relevant for synchronous Transform streams
this.prefinished=!1,
// True if the error was already emitted and should not be thrown again
this.errorEmitted=!1,
// count buffered requests
this.bufferedRequestCount=0,
// allocate the first CorkedRequest, there is always
// one allocated and free to use, and we maintain at most two
this.corkedRequestsFree=new o(this)}function b(t){
// Writable ctor is applied to Duplexes, too.
// `realHasInstance` is necessary because using plain `instanceof`
// would return false, as no `_writableState` property is attached.
// Trying to use the custom `instanceof` for Writable here will also break the
// Node.js LazyTransform implementation, which has a non-trivial getter for
// `_writableState` that would lead to infinite recursion.
if(s=s||e("./_stream_duplex"),!(m.call(b,this)||this instanceof s))return new b(t);this._writableState=new A(t,this),
// legacy.
this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}
// Otherwise people can pipe Writable streams, which is just wrong.
function w(e,t){var n=new Error("write after end");
// TODO: defer error events consistently everywhere, not just the cb
e.emit("error",n),a.nextTick(t,n)}
// Checks that a user-supplied chunk is valid, especially for the particular
// mode the stream is in. Currently this means that `null` is never accepted
// and undefined/non-string values are only allowed in object mode.
function x(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}function C(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}
// if we're already writing something, then just put this
// in the queue, and wait our turn.  Otherwise, call _write
// If we return false, then we need a drain event, so set that flag.
function _(e,t,n,r,i,a){if(!n){var o=C(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;
// we must ensure that previous needDrain will not be reset to false.
if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else I(e,t,!1,s,r,i,a);return c}function I(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function E(e,t,n,r,i){--t.pendingcb,n?(
// defer the callback if we are being called synchronously
// to avoid piling up things on the stack
a.nextTick(i,r),
// this can emit finish, and it will always happen
// after error
a.nextTick(L,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(
// the caller expect this to happen before if
// it is async
i(r),e._writableState.errorEmitted=!0,e.emit("error",r),
// this can emit finish, but finish must
// always follow error
L(e,t))}function k(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function S(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(k(n),t)E(e,n,r,t,i);else{
// Check if we're actually ready to finish, but don't emit yet
var a=O(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),r?
/*<replacement>*/
c(B,e,n,a,i):B(e,n,a,i)}}function B(e,t,n,r){n||M(e,t),t.pendingcb--,r(),L(e,t)}
// Must force callback to be called on nextTick, so that we don't
// emit 'drain' before the write() consumer gets the 'false' return
// value, and has a chance to attach a 'drain' listener.
function M(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}
// if there's something in the buffer waiting, then process it
function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){
// Fast case, write everything using _writev()
var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,I(e,t,!0,t.length,i,"",a.finish),
// doWrite is almost always async, defer these to save a bit of time
// as the hot path ends with doWrite
t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{
// Slow case, write chunks one-by-one
for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;
// if we didn't call the onwrite immediately, then
// it means that we need to wait until it does.
// also, that means that the chunk and cb are currently
// being processed, so move the buffer counter past them.
if(I(e,t,!1,t.objectMode?1:l.length,l,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),L(e,t)}))}function P(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(D,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function L(e,t){var n=O(t);return n&&(P(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function Q(e,t,n){t.ending=!0,L(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function R(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}l.inherits(b,h),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===b&&e&&e._writableState instanceof A}})):m=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&g(e);return a&&!f.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=y),r.ended?w(this,n):(a||x(this,r,e,n))&&(r.pendingcb++,i=_(this,r,a,e,t,n)),i},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||T(this,e))},b.prototype.setDefaultEncoding=function(e){if(
// node::ParseEncoding() requires lower case.
"string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{
// making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),
// .end() fully uncorks
r.corked&&(r.corked=1,this.uncork()),
// ignore unnecessary end() calls.
r.ending||r.finished||Q(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){
// we ignore the value if the stream
// has not been initialized yet
this._writableState&&(
// backward compatibility, the user is explicitly
// managing destroyed
this._writableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":66,"./internal/streams/destroy":72,"./internal/streams/stream":73,_process:64,"core-util-is":4,inherits:8,"process-nextick-args":63,"safe-buffer":78,timers:82,"util-deprecate":83}],71:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("safe-buffer").Buffer,a=e("util");function o(e,t,n){e.copy(t,n)}t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)o(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(t.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":78,util:2}],72:[function(e,t,n){"use strict";
/*<replacement>*/var r=e("process-nextick-args");
/*</replacement>*/
// undocumented cb() API, needed for core, not for public API
function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(
// we set destroyed to true before firing error callbacks in order
// to make it re-entrance safe in case destroy() is called within callbacks
this._readableState&&(this._readableState.destroyed=!0),
// if this is a duplex stream mark the writable part as destroyed as well
this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}t.exports={destroy:i,undestroy:a}},{"process-nextick-args":63}],73:[function(e,t,n){t.exports=e("events").EventEmitter},{events:5}],74:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":75}],75:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":66,"./lib/_stream_passthrough.js":67,"./lib/_stream_readable.js":68,"./lib/_stream_transform.js":69,"./lib/_stream_writable.js":70}],76:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":75}],77:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":70}],78:[function(e,t,n){
/* eslint-disable node/no-deprecated-api */
var r=e("buffer"),i=r.Buffer;
// alternative to using Object.keys for old browsers
function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}
// Copy static methods from Buffer
i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(
// Copy properties from require('buffer')
a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:3}],79:[function(e,t,n){(function(e){"use strict";t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:82}],80:[function(e,t,n){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
t.exports=i;var r=e("events").EventEmitter;
// old-style streams.  Note that the pipe method (the only relevant
// part of this class) is overridden in the Readable class.
function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),
// Backwards-compat with node 0.4.x
i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),
// If the 'end' option is not supplied, dest.end() will be called when
// source gets the 'end' or 'close' events.  Only dest.end() once.
e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}
// don't leave dangling pipes when there are errors.
function l(e){if(u(),0===r.listenerCount(this,"error"))throw e;// Unhandled stream error in pipe.
}
// remove all the event listeners that were added.
function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}
// Allow for unix-like usage: A.pipe(B).pipe(C)
return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},{events:5,inherits:8,"readable-stream/duplex.js":65,"readable-stream/passthrough.js":74,"readable-stream/readable.js":75,"readable-stream/transform.js":76,"readable-stream/writable.js":77}],81:[function(e,t,n){
// Copyright Joyent, Inc. and other Node contributors.
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
"use strict";
/*<replacement>*/var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};
/*</replacement>*/function a(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;// undefined
e=(""+e).toLowerCase(),t=!0}}
// Do not cache `Buffer.isEncoding` when checking encoding names as some
// modules monkey-patch it to support additional encodings
function o(e){var t=a(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}
// StringDecoder provides an interface for efficiently splitting a series of
// buffers into a series of JS strings without breaking apart multi-byte
// characters.
function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=y,void(this.end=A)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
// continuation byte. If an invalid byte is detected, -2 is returned.
function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}
// Checks at most 3 bytes at the end of a Buffer in order to detect an
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
// needed to complete the UTF-8 character (if applicable) are returned.
function l(e,t,n){var r=t.length-1;if(r<n)return 0;var i=c(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=c(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=c(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}
// Validates as many continuation bytes for a multi-byte UTF-8 character as
// needed or are available. If we see a non-continuation byte where we expect
// one, we "replace" the validated continuation bytes we've seen so far with
// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
// behavior. The continuation byte check is included three times in the case
// where all of the continuation bytes for a character exist in the same buffer.
// It is also done this way as a slight performance increase instead of using a
// loop.
function u(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}
// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}
// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
// partial character, the character's bytes are buffered until the required
// number of bytes are available.
function f(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}
// For UTF-8, a replacement character is added when ending on a partial
// character.
function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}
// UTF-16LE typically needs two bytes per character, but even if we have an even
// number of bytes available, we need to check if we end on a leading/high
// surrogate. In that case, we need to wait for the next two bytes in order to
// decode the last character properly.
function p(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}
// For UTF-16LE we do not explicitly append special replacement characters if we
// end on a partial character, we simply let v8 handle that.
function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function m(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}
// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
function y(e){return e.toString(this.encoding)}function A(e){return e&&e.length?this.write(e):""}n.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=d,
// Returns only complete characters in a Buffer
s.prototype.text=f,
// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":78}],82:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},c=0;function l(e,t){this._id=e,this._clearFn=t}
// DOM APIs, for completeness
n.setTimeout=function(){return new l(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},
// Does not start the time, just sets up the members needed.
n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},
// That's not how node.js implements it but the exposed api is the same.
n.setImmediate="function"==typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(
// fn.call() is faster so we optimize for the common use-case
// @see http://jsperf.com/call-apply-segu
r?e.apply(null,r):e.call(null),
// Prevent ids from leaking
n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":64,timers:82}],83:[function(e,n,r){(function(e){
/**
 * Mark that a method should not be used.
 * Returns a modified function which warns once by default.
 *
 * If `localStorage.noDeprecation = true` is set, then it is a no-op.
 *
 * If `localStorage.throwDeprecation = true` is set, then deprecated functions
 * will throw an Error when invoked.
 *
 * If `localStorage.traceDeprecation = true` is set, then deprecated functions
 * will invoke `console.trace()` instead of `console.error()`.
 *
 * @param {Function} fn - the function to deprecate
 * @param {String} msg - the string to print to the console when `fn` is invoked
 * @returns {Function} a new "deprecated" version of `fn`
 * @api public
 */
function t(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation"),n=!0}return e.apply(this,arguments)}return i}
/**
 * Checks `localStorage` for boolean values for the given `name`.
 *
 * @param {String} name
 * @returns {Boolean}
 * @api private
 */function r(t){
// accessing global.localStorage can trigger a DOMException in sandboxed iframes
try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}
/**
 * Module exports.
 */
n.exports=t}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],84:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.HandleZip=void 0;var i=r(e("jszip")),a=e("./common/method"),o=
/** @class */
function(){function e(e){
// Support nodejs fs to read files
// if(file instanceof File){
this.uploadFile=e;// }
}return e.prototype.unzipFile=function(e,t){
// var new_zip:JSZip = new JSZip();
i.default.loadAsync(this.uploadFile).then((function(t){var n={},r=Object.keys(t.files).length,i=0;t.forEach((function(t,a){var o=a.name.split("."),s=o[o.length-1].toLowerCase(),c="string";s in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1}?c="base64":"emf"==s&&(c="arraybuffer"),a.async(c).then((function(t){"base64"==c&&(t="data:image/"+s+";base64,"+t),n[a.name]=t,// console.log(lastIndex, index);
r==i+1&&e(n),i++}))}))}),(function(e){t(e)}))},e.prototype.unzipFileByUrl=function(e,t,n){new i.default,a.getBinaryContent(e,(function(e,r){if(e)throw e;// or handle err
i.default.loadAsync(r).then((function(e){var n={},r=Object.keys(e.files).length,i=0;e.forEach((function(e,a){var o=a.name.split("."),s=o[o.length-1].toLowerCase(),c="string";s in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1}?c="base64":"emf"==s&&(c="arraybuffer"),a.async(c).then((function(e){"base64"==c&&(e="data:image/"+s+";base64,"+e),n[a.name]=e,// console.log(lastIndex, index);
r==i+1&&t(n),i++}))}))}),(function(e){n(e)}))}))},e.prototype.newZipFile=function(){var e=new i.default;this.workBook=e},//title:"nested/hello.txt", content:"Hello Worldasdfasfasdfasfasfasfasfasdfas"
e.prototype.addToZipFile=function(e,t){if(null==this.workBook){var n=new i.default;this.workBook=n}this.workBook.file(e,t)},e}();n.HandleZip=o},{"./common/method":93,jszip:20}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LuckyImageBase=n.LuckysheetCalcChain=n.LuckySheetConfigMerge=n.LuckySheetborderInfoCellValueStyle=n.LuckySheetborderInfoCellValue=n.LuckySheetborderInfoCellForImp=n.LuckyConfig=n.LuckyInlineString=n.LuckySheetCellFormat=n.LuckySheetCelldataValue=n.LuckySheetCelldataBase=n.LuckyFileInfo=n.LuckySheetBase=n.LuckyFileBase=void 0;var r=
/** @class */
function(){function e(){}return e}();n.LuckyFileBase=r;var i=
/** @class */
function(){function e(){}return e}();n.LuckySheetBase=i;var a=
/** @class */
function(){function e(){}return e}();n.LuckyFileInfo=a;var o=
/** @class */
function(){function e(){}return e}();n.LuckySheetCelldataBase=o;var s=
/** @class */
function(){function e(){}return e}();n.LuckySheetCelldataValue=s;var c=
/** @class */
function(){function e(){}return e}();n.LuckySheetCellFormat=c;var l=
/** @class */
function(){function e(){}return e}();n.LuckyInlineString=l;var u=
/** @class */
function(){function e(){}return e}();n.LuckyConfig=u;var h=
/** @class */
function(){function e(){}return e}();n.LuckySheetborderInfoCellForImp=h;var f=
/** @class */
function(){function e(){}return e}();n.LuckySheetborderInfoCellValue=f;var d=
/** @class */
function(){function e(){}return e}();n.LuckySheetborderInfoCellValueStyle=d;var p=
/** @class */
function(){function e(){}return e}();n.LuckySheetConfigMerge=p;var g=
/** @class */
function(){function e(){}return e}();n.LuckysheetCalcChain=g;var m=
/** @class */
function(){function e(){}return e}();n.LuckyImageBase=m},{}],86:[function(e,t,n){"use strict";var r,i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.LuckySheetCelldata=void 0;var a=e("./ReadXml"),o=e("../common/method"),s=e("../common/constant"),c=e("./LuckyBase"),l=
/** @class */
function(e){function t(t,n,r,i,a,s){var c=//Private
e.call(this)||this;c.cell=t,c.sheetFile=a,c.styles=n,c.sharedStrings=r,c.readXml=s,c.mergeCells=i;var l=t.attributeList,u=l.r,h=l.s,f=l.t,d=o.getcellrange(u);return c.r=d.row[0],c.c=d.column[0],c.v=c.generateValue(h,f),c}
/**
  * @param s Style index ,start 1
  * @param t Cell type, Optional value is ST_CellType, it's found at constat.ts
  */return i(t,e),t.prototype.generateValue=function(e,t){var n=this,r=this.cell.getInnerElements("v"),i=this.cell.getInnerElements("f");null==r&&(r=this.cell.getInnerElements("t"));var l=this.styles.cellXfs,u=this.styles.cellStyleXfs,h=(this.styles.cellStyles,this.styles.fonts),f=this.styles.fills,d=this.styles.borders,p=this.styles.numfmts,g=this.styles.clrScheme,m=this.sharedStrings,v=new c.LuckySheetCelldataValue;if(null!=i){var y=(H=i[0].attributeList).t,A=H.ref,b=H.si,w=i[0].value;"shared"==y&&(this._fomulaRef=A,this._formulaType=y,this._formulaSi=b),// console.log(ref, t, si);
(null!=A||null!=w&&w.length>0)&&(w=o.escapeCharacter(w),v.f="="+w)}var x,C=null;if(null!=e){var _=l[parseInt(e)],I=_.attributeList.xfId,E=void 0,k=void 0,S=void 0,B=void 0,M=void 0,T=void 0,O=void 0,D=void 0;if(null!=I){var P=u[parseInt(I)],L=(H=P.attributeList).applyNumberFormat,Q=H.applyFont,R=H.applyFill,j=H.applyBorder,N=H.applyAlignment;if(// let applyProtection = attrList.applyProtection;
H.applyProtection,x=H.quotePrefix,"0"!=L&&null!=H.numFmtId&&(
// if(attrList.numFmtId!="0"){
E=H.numFmtId),"0"!=Q&&null!=H.fontId&&(k=H.fontId),"0"!=R&&null!=H.fillId&&(S=H.fillId),"0"!=j&&null!=H.borderId&&(B=H.borderId),null!=N&&"0"!=N&&null!=(z=P.getInnerElements("alignment"))){var F=z[0].attributeList;null!=F.horizontal&&(M=F.horizontal),null!=F.vertical&&(T=F.vertical),null!=F.wrapText&&(O=F.wrapText),null!=F.textRotation&&(D=F.textRotation),null!=F.shrinkToFit&&F.shrinkToFit,null!=F.indent&&F.indent}}var z,H,U=_.attributeList.applyNumberFormat,G=_.attributeList.applyFont,V=_.attributeList.applyFill,W=_.attributeList.applyBorder,q=_.attributeList.applyAlignment;if(null!=_.attributeList.applyProtection&&_.attributeList.applyProtection,null!=_.attributeList.quotePrefix&&(x=_.attributeList.quotePrefix),"0"!=U&&null!=_.attributeList.numFmtId&&(E=_.attributeList.numFmtId),"0"!=G&&(k=_.attributeList.fontId),"0"!=V&&(S=_.attributeList.fillId),"0"!=W&&(B=_.attributeList.borderId),"0"!=q&&null!=(z=_.getInnerElements("alignment"))&&z.length>0&&(null!=(H=z[0].attributeList).horizontal&&(M=H.horizontal),null!=H.vertical&&(T=H.vertical),null!=H.wrapText&&(O=H.wrapText),null!=H.textRotation&&(D=H.textRotation),null!=H.shrinkToFit&&H.shrinkToFit,null!=H.indent&&H.indent),null!=E){var Y=p[parseInt(E)];(qe=new c.LuckySheetCellFormat).fa=o.escapeCharacter(Y),// console.log(numf, numFmtId, this.v);
qe.t=t,v.ct=qe}if(null!=S){var K=f[parseInt(S)],$=this.getBackgroundByFill(K,g);null!=$&&(v.bg=$)}if(null!=k){var J=h[parseInt(k)];if(null!=J){var X,Z=J.getInnerElements("sz"),ee=J.getInnerElements("color"),te=J.getInnerElements("name"),ne=J.getInnerElements("family"),re=(J.getInnerElements("charset"),J.getInnerElements("b")),ie=J.getInnerElements("i"),ae=J.getInnerElements("strike"),oe=J.getInnerElements("u");//font size
//font italic
if(null!=Z&&Z.length>0){var se=Z[0].attributeList.val;null!=se&&(v.fs=parseInt(se))}if(null!=ee&&ee.length>0){var ce=ee[0],le=a.getColor(ce,this.styles,"t");null!=le&&(v.fc=le)}if(null!=ne&&ne.length>0&&null!=(X=ne[0].attributeList.val)&&(C=s.fontFamilys[X]),null!=te&&te.length>0&&null!=(X=te[0].attributeList.val)&&(v.ff=X),null!=re&&re.length>0){var ue=re[0].attributeList.val;v.bl="0"==ue?0:1}if(null!=ie&&ie.length>0){var he=ie[0].attributeList.val;v.it="0"==he?0:1}if(null!=ae&&ae.length>0){var fe=ae[0].attributeList.val;v.cl="0"==fe?0:1}if(null!=oe&&oe.length>0){var de=oe[0].attributeList.val;v.un="single"==de?1:"double"==de?2:"singleAccounting"==de?3:"doubleAccounting"==de?4:0}}}// vt: number | undefined//Vertical alignment, 0 middle, 1 up, 2 down, alignment
// ht: number | undefined//Horizontal alignment,0 center, 1 left, 2 right, alignment
// tr: number | undefined //Text rotation,0: 0、1: 45 、2: -45、3 Vertical text、4: 90 、5: -90, alignment
// tb: number | undefined //Text wrap,0 truncation, 1 overflow, 2 word wrap, alignment
if(null!=M&&(
//Horizontal alignment
v.ht="center"==M||"centerContinuous"==M?0:"left"==M?1:"right"==M?2:"distributed"==M?0:"fill"==M||"general"==M?1:"justify"==M?0:1),null!=T&&(
//Vertical alignment
v.vt="bottom"==T?2:"center"==T||"distributed"==T||"justify"==T?0:1),v.tb=null!=O&&"1"==O?2:1,null!=D&&(
// tr: number | undefined //Text rotation,0: 0、1: 45 、2: -45、3 Vertical text、4: 90 、5: -90, alignment
"255"==D?v.tr=3:(v.tr=0,v.rt=parseInt(D))),null!=B){var pe=d[parseInt(B)],ge=new c.LuckySheetborderInfoCellForImp;ge.rangeType="cell";// borderObject.cells = [];
var me=new c.LuckySheetborderInfoCellValue;me.row_index=this.r,me.col_index=this.c;var ve=pe.getInnerElements("left"),ye=pe.getInnerElements("right"),Ae=pe.getInnerElements("top"),be=pe.getInnerElements("bottom"),we=pe.getInnerElements("diagonal"),xe=pe.getInnerElements("start"),Ce=pe.getInnerElements("end"),_e=this.getBorderInfo(ve),Ie=this.getBorderInfo(ye),Ee=this.getBorderInfo(Ae),ke=this.getBorderInfo(be),Se=(this.getBorderInfo(we),this.getBorderInfo(xe)),Be=this.getBorderInfo(Ce),Me=!1;null!=Se&&null!=Se.color&&(me.l=Se,Me=!0),null!=Be&&null!=Be.color&&(me.r=Be,Me=!0),null!=_e&&null!=_e.color&&(me.l=_e,Me=!0),null!=Ie&&null!=Ie.color&&(me.r=Ie,Me=!0),null!=Ee&&null!=Ee.color&&(me.t=Ee,Me=!0),null!=ke&&null!=ke.color&&(me.b=ke,Me=!0),Me&&(ge.value=me,// this.config._borderInfo[borderId] = borderObject;
this._borderObject=ge)}}else v.tb=1;if(null!=r){var Te=r[0].value;if(/&#\d+;/.test(Te)&&(Te=this.htmlDecode(Te)),t==s.ST_CellType.SharedString){var Oe=m[parseInt(r[0].value)],De=Oe.getInnerElements("r");if(null==De){var Pe=Oe.getInnerElements("t");if(null!=Pe){var Le="";//isContainMultiType(text) &&
if(Pe.forEach((function(e){Le+=e.value})),Le=o.escapeCharacter(Le),"Roman"==C&&Le.length>0){var Qe=Le.split(""),Re=null,je="",Ne=null,Fe="Times New Roman";null!=v.ff&&(Fe=v.ff),null==(qe=v.ct)&&(qe=new c.LuckySheetCellFormat),null==qe.s&&(qe.s=[]);for(var ze=0;ze<Qe.length;ze++){var He=Qe[ze],Ue=null,Ge=Fe;if(o.isChinese(He)?(Ue="c",Ge="宋体"):o.isJapanese(He)?(Ue="j",Ge="Yu Gothic"):o.isKoera(He)?(Ue="k",Ge="Malgun Gothic"):Ue="e",Ue!=Re&&null!=Re||ze==Qe.length-1){if((We=new c.LuckyInlineString).ff=Ne,null!=v.fc&&(We.fc=v.fc),null!=v.fs&&(We.fs=v.fs),null!=v.cl&&(We.cl=v.cl),null!=v.un&&(We.un=v.un),null!=v.bl&&(We.bl=v.bl),null!=v.it&&(We.it=v.it),ze==Qe.length-1){if(Ue!=Re){We.ff=Ne,We.v=je,qe.s.push(We);var Ve=new c.LuckyInlineString;Ve.ff=Ge,Ve.v=He,null!=v.fc&&(Ve.fc=v.fc),null!=v.fs&&(Ve.fs=v.fs),null!=v.cl&&(Ve.cl=v.cl),null!=v.un&&(Ve.un=v.un),null!=v.bl&&(Ve.bl=v.bl),null!=v.it&&(Ve.it=v.it),qe.s.push(Ve);break}We.ff=Ge,We.v=je+He}else We.v=je;qe.s.push(We),je=He}else je+=He;Re=Ue,Ne=Ge}qe.t="inlineStr",// cellFormat.s = [InlineString];
v.ct=qe}else{var We;(Le=this.replaceSpecialWrap(Le)).indexOf("\r\n")>-1||Le.indexOf("\n")>-1?((We=new c.LuckyInlineString).v=Le,null==(qe=v.ct)&&(qe=new c.LuckySheetCellFormat),null!=v.ff&&(We.ff=v.ff),null!=v.fc&&(We.fc=v.fc),null!=v.fs&&(We.fs=v.fs),null!=v.cl&&(We.cl=v.cl),null!=v.un&&(We.un=v.un),null!=v.bl&&(We.bl=v.bl),null!=v.it&&(We.it=v.it),qe.t="inlineStr",qe.s=[We],v.ct=qe):(v.v=Le,x="1")}}}else{var qe,Ye=[];De.forEach((function(e){var t=e.getInnerElements("t"),r=e.getInnerElements("rPr"),i=new c.LuckyInlineString;if(null!=t&&t.length>0){var s=t[0].value;s=n.replaceSpecialWrap(s),s=o.escapeCharacter(s),i.v=s}if(null!=r&&r.length>0){var l=r[0],u=a.getlineStringAttr(l,"sz"),h=a.getlineStringAttr(l,"rFont"),f=(a.getlineStringAttr(l,"family"),a.getlineStringAttr(l,"charset"),a.getlineStringAttr(l,"scheme"),a.getlineStringAttr(l,"b")),d=a.getlineStringAttr(l,"i"),p=a.getlineStringAttr(l,"u"),g=a.getlineStringAttr(l,"strike"),m=a.getlineStringAttr(l,"vertAlign"),y=void 0,A=l.getInnerElements("color");null!=A&&A.length>0&&(y=a.getColor(A[0],n.styles,"t"));var b=void 0;// if(family!=null){
//     ff = fontFamilys[family];
// }
null!=h&&(b=h),null!=b?i.ff=b:null!=v.ff&&(i.ff=v.ff),null!=y?i.fc=y:null!=v.fc&&(i.fc=v.fc),null!=u?i.fs=parseInt(u):null!=v.fs&&(i.fs=v.fs),null!=g?i.cl=parseInt(g):null!=v.cl&&(i.cl=v.cl),null!=p?i.un=parseInt(p):null!=v.un&&(i.un=v.un),null!=f?i.bl=parseInt(f):null!=v.bl&&(i.bl=v.bl),null!=d?i.it=parseInt(d):null!=v.it&&(i.it=v.it),null!=m&&(i.va=parseInt(m))}else null==i.ff&&null!=v.ff&&(i.ff=v.ff),null==i.fc&&null!=v.fc&&(i.fc=v.fc),null==i.fs&&null!=v.fs&&(i.fs=v.fs),null==i.cl&&null!=v.cl&&(i.cl=v.cl),null==i.un&&null!=v.un&&(i.un=v.un),null==i.bl&&null!=v.bl&&(i.bl=v.bl),null==i.it&&null!=v.it&&(i.it=v.it);Ye.push(i)})),null==(qe=v.ct)&&(qe=new c.LuckySheetCellFormat),qe.t="inlineStr",qe.s=Ye,v.ct=qe}}// else if(t==ST_CellType["InlineString"] && v!=null){
// }
else Te=o.escapeCharacter(Te),v.v=Te}return null!=x&&(v.qp=parseInt(x)),v},t.prototype.replaceSpecialWrap=function(e){return e=e.replace(/_x000D_/g,"").replace(/&#13;&#10;/g,"\r\n").replace(/&#13;/g,"\r").replace(/&#10;/g,"\n")},t.prototype.getBackgroundByFill=function(e,t){var n=e.getInnerElements("patternFill");if(null!=n){var r=n[0],i=r.getInnerElements("fgColor"),o=r.getInnerElements("bgColor"),s=void 0,c=void 0;if(null!=i){var l=i[0];s=a.getColor(l,this.styles)}if(null!=o){var u=o[0];c=a.getColor(u,this.styles)}// console.log(fgColors,bgColors,clrScheme);
if(null!=s)return s;if(null!=c)return c}else if(null!=e.getInnerElements("gradientFill"))
//graient color fill handler
return null},t.prototype.getBorderInfo=function(e){if(null==e)return null;var t=e[0],n=t.attributeList,r=(this.styles.clrScheme,n.style);if(null==r||"none"==r)return null;var i=t.getInnerElements("color"),o="#000000";if(null!=i){var l=i[0];null==(o=a.getColor(l,this.styles,"b"))&&(o="#000000")}var u=new c.LuckySheetborderInfoCellValueStyle;return u.style=s.borderTypes[r],u.color=o,u},t.prototype.htmlDecode=function(e){return e.replace(/&#(x)?([^&]{1,5});?/g,(function(e,t,n){return String.fromCharCode(parseInt(n,t?16:10))}))},t}(c.LuckySheetCelldataBase);n.LuckySheetCelldata=l},{"../common/constant":91,"../common/method":93,"./LuckyBase":85,"./ReadXml":90}],87:[function(e,t,n){"use strict";var r,i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.LuckyFile=void 0;var a=e("./LuckySheet"),o=e("../common/constant"),s=e("./ReadXml"),c=e("../common/method"),l=e("./LuckyBase"),u=e("./LuckyImage"),h=
/** @class */
function(e){function t(t,n){var r=e.call(this)||this;r.columnWidthSet=[],r.rowHeightSet=[],r.files=t,r.fileName=n,r.readXml=new s.ReadXml(t),r.getSheetNameList(),r.sharedStrings=r.readXml.getElementsByTagName("sst/si",o.sharedStringsFile),r.calcChain=r.readXml.getElementsByTagName("calcChain/c",o.calcChainFile),r.styles={},r.styles.cellXfs=r.readXml.getElementsByTagName("cellXfs/xf",o.stylesFile),r.styles.cellStyleXfs=r.readXml.getElementsByTagName("cellStyleXfs/xf",o.stylesFile),r.styles.cellStyles=r.readXml.getElementsByTagName("cellStyles/cellStyle",o.stylesFile),r.styles.fonts=r.readXml.getElementsByTagName("fonts/font",o.stylesFile),r.styles.fills=r.readXml.getElementsByTagName("fills/fill",o.stylesFile),r.styles.borders=r.readXml.getElementsByTagName("borders/border",o.stylesFile),r.styles.clrScheme=r.readXml.getElementsByTagName("a:clrScheme/a:dk1|a:lt1|a:dk2|a:lt2|a:accent1|a:accent2|a:accent3|a:accent4|a:accent5|a:accent6|a:hlink|a:folHlink",o.theme1File),r.styles.indexedColors=r.readXml.getElementsByTagName("colors/indexedColors/rgbColor",o.stylesFile),r.styles.mruColors=r.readXml.getElementsByTagName("colors/mruColors/color",o.stylesFile),r.imageList=new u.ImageList(t);for(var i=r.readXml.getElementsByTagName("numFmt/numFmt",o.stylesFile),a=JSON.parse(JSON.stringify(o.numFmtDefault)),l=0;l<i.length;l++){var h=i[l].attributeList,f=c.getXmlAttibute(h,"numFmtId","49"),d=c.getXmlAttibute(h,"formatCode","@");// console.log(numfmtid, formatcode);
f in o.numFmtDefault||(a[f]=d)}// console.log(JSON.stringify(numFmtDefaultC), numfmts);
return r.styles.numfmts=a,r}
/**
  * @return All sheet name of workbook
  */return i(t,e),t.prototype.getSheetNameList=function(){var e=this.readXml.getElementsByTagName("Relationships/Relationship",o.workbookRels);if(null!=e){for(var t=new RegExp("worksheets/[^/]*?.xml"),n={},r=0;r<e.length;r++){var i=e[r].attributeList,a=i.Id,s=i.Target;t.test(s)&&(s.startsWith("/xl")?n[a]=s.substr(1):n[a]="xl/"+s)}this.sheetNameList=n}},
/**
  * @param sheetName WorkSheet'name
  * @return sheet file name and path in zip
  */
t.prototype.getSheetFileBysheetId=function(e){
// for(let i=0;i<this.sheetNameList.length;i++){
//     let sheetFileName = this.sheetNameList[i];
//     if(sheetFileName.indexOf("sheet"+sheetId)>-1){
//         return sheetFileName;
//     }
// }
return this.sheetNameList[e]},
/**
  * @return workBook information
  */
t.prototype.getWorkBookInfo=function(){var e=this.readXml.getElementsByTagName("Company",o.appFile),t=this.readXml.getElementsByTagName("AppVersion",o.appFile),n=this.readXml.getElementsByTagName("dc:creator",o.coreFile),r=this.readXml.getElementsByTagName("cp:lastModifiedBy",o.coreFile),i=this.readXml.getElementsByTagName("dcterms:created",o.coreFile),a=this.readXml.getElementsByTagName("dcterms:modified",o.coreFile);this.info=new l.LuckyFileInfo,this.info.name=this.fileName,this.info.creator=n.length>0?n[0].value:"",this.info.lastmodifiedby=r.length>0?r[0].value:"",this.info.createdTime=i.length>0?i[0].value:"",this.info.modifiedTime=a.length>0?a[0].value:"",this.info.company=e.length>0?e[0].value:"",this.info.appversion=t.length>0?t[0].value:""},
/**
  * @return All sheet , include whole information
  */
t.prototype.getSheetsFull=function(e){void 0===e&&(e=!0);var t=this.readXml.getElementsByTagName("sheets/sheet",o.workBookFile),n={};for(var r in t)n[(s=t[r]).attributeList.name]=s.attributeList.sheetId;this.sheets=[];var i=0;for(var r in t){var s,l=(s=t[r]).attributeList.name,u=s.attributeList.sheetId,h=s.attributeList["r:id"],f=this.getSheetFileBysheetId(h),d=this.readXml.getElementsByTagName("worksheet/drawing",f),p=void 0,g=void 0;if(null!=d&&d.length>0){var m=d[0].attributeList,v=c.getXmlAttibute(m,"r:id",null);null!=v&&(p=this.getDrawingFile(v,f),g=this.getDrawingRelsFile(p))}if(null!=f){var y=new a.LuckySheet(l,u,i,e,{sheetFile:f,readXml:this.readXml,sheetList:n,styles:this.styles,sharedStrings:this.sharedStrings,calcChain:this.calcChain,imageList:this.imageList,drawingFile:p,drawingRelsFile:g});this.columnWidthSet=[],this.rowHeightSet=[],this.imagePositionCaculation(y),this.sheets.push(y),i++}}},t.prototype.extendArray=function(e,t,n,r,i){if(!(e<t.length)){var a=t.length,o=e,s=0;a>0&&(s=t[a-1]);// else{
//     sets.push(0);
// }
for(var c=a;c<=o;c++){var l=n,u=c.toString();u in r?l=0:u in i&&(l=i[u]),s+=Math.round(l+1),t.push(s)}}},t.prototype.imagePositionCaculation=function(e){var t=e.images,n=e.defaultColWidth,r=e.defaultRowHeight,i={};e.config.colhidden&&(i=e.config.colhidden);var a={};e.config.columnlen&&(a=e.config.columnlen);var o={};e.config.rowhidden&&(o=e.config.rowhidden);var s={};for(var c in e.config.rowlen&&(s=e.config.rowlen),t){var l=t[c],u=l.fromCol,h=l.fromColOff,f=l.fromRow,d=l.fromRowOff,p=l.toCol,g=l.toColOff,m=l.toRow,v=l.toRowOff,y=0,A=0,b=0,w=0;//Image, luckyImage
u>=this.columnWidthSet.length&&this.extendArray(u,this.columnWidthSet,n,i,a),y=0==u?0:this.columnWidthSet[u-1],y+=h,f>=this.rowHeightSet.length&&this.extendArray(f,this.rowHeightSet,r,o,s),A=0==f?0:this.rowHeightSet[f-1],A+=d,p>=this.columnWidthSet.length&&this.extendArray(p,this.columnWidthSet,n,i,a),b=(b=0==p?0:this.columnWidthSet[p-1])+g-y,m>=this.rowHeightSet.length&&this.extendArray(m,this.rowHeightSet,r,o,s),w=(w=0==m?0:this.rowHeightSet[m-1])+v-A,l.originWidth=b,l.originHeight=w,l.crop.height=w,l.crop.width=b,l.default.height=w,l.default.left=y,l.default.top=A,l.default.width=b}},
/**
  * @return drawing file string
  */
t.prototype.getDrawingFile=function(e,t){var n="xl/worksheets/_rels/",r=t.split("/"),i=n+r[r.length-1]+".rels",a=this.readXml.getElementsByTagName("Relationships/Relationship",i);if(a.length>0)for(var o=0;o<a.length;o++){var s=a[o].attributeList;if(c.getXmlAttibute(s,"Id",null)==e){var l=c.getXmlAttibute(s,"Target",null);if(null!=l)return l.replace(/\.\.\//g,"")}}return null},t.prototype.getDrawingRelsFile=function(e){var t="xl/drawings/_rels/",n=e.split("/");return t+n[n.length-1]+".rels"},
/**
  * @return All sheet base information widthout cell and config
  */
t.prototype.getSheetsWithoutCell=function(){this.getSheetsFull(!1)},
/**
  * @return LuckySheet file json
  */
t.prototype.Parse=function(){// for(let i=0;i<this.sheets.length;i++){
//     let sheet = this.sheets[i];
//     let _borderInfo = sheet.config._borderInfo;
//     if(_borderInfo==null){
//         continue;
//     }
//     let _borderInfoKeys = Object.keys(_borderInfo);
//     _borderInfoKeys.sort();
//     for(let a=0;a<_borderInfoKeys.length;a++){
//         let key = parseInt(_borderInfoKeys[a]);
//         let b = _borderInfo[key];
//         if(b.cells.length==0){
//             continue;
//         }
//         if(sheet.config.borderInfo==null){
//             sheet.config.borderInfo = [];
//         }
//         sheet.config.borderInfo.push(b);
//     }
// }
// let xml = this.readXml;
// for(let key in this.sheetNameList){
//     let sheetName=this.sheetNameList[key];
//     let sheetColumns = xml.getElementsByTagName("row/c/f", sheetName);
//     console.log(sheetColumns);
// }
// return "";
return this.getWorkBookInfo(),this.getSheetsFull(),this.toJsonString(this)},t.prototype.toJsonString=function(e){var t=new l.LuckyFileBase;return t.info=e.info,t.sheets=[],e.sheets.forEach((function(e){var n=new l.LuckySheetBase;//let attrName = ["name","color","config","index","status","order","row","column","luckysheet_select_save","scrollLeft","scrollTop","zoomRatio","showGridLines","defaultColWidth","defaultRowHeight","celldata","chart","isPivotTable","pivotTable","luckysheet_conditionformat_save","freezen","calcChain"];
null!=e.name&&(n.name=e.name),null!=e.color&&(n.color=e.color),null!=e.config&&(n.config=e.config),null!=e.index&&(n.index=e.index),null!=e.status&&(n.status=e.status),null!=e.order&&(n.order=e.order),null!=e.row&&(n.row=e.row),null!=e.column&&(n.column=e.column),null!=e.luckysheet_select_save&&(n.luckysheet_select_save=e.luckysheet_select_save),null!=e.scrollLeft&&(n.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(n.scrollTop=e.scrollTop),null!=e.zoomRatio&&(n.zoomRatio=e.zoomRatio),null!=e.showGridLines&&(n.showGridLines=e.showGridLines),null!=e.defaultColWidth&&(n.defaultColWidth=e.defaultColWidth),null!=e.defaultRowHeight&&(n.defaultRowHeight=e.defaultRowHeight),null!=e.celldata&&(
// sheetout.celldata = sheet.celldata;
n.celldata=[],e.celldata.forEach((function(e){var t=new l.LuckySheetCelldataBase;t.r=e.r,t.c=e.c,t.v=e.v,n.celldata.push(t)}))),null!=e.chart&&(n.chart=e.chart),null!=e.isPivotTable&&(n.isPivotTable=e.isPivotTable),null!=e.pivotTable&&(n.pivotTable=e.pivotTable),null!=e.luckysheet_conditionformat_save&&(n.luckysheet_conditionformat_save=e.luckysheet_conditionformat_save),null!=e.freezen&&(n.freezen=e.freezen),null!=e.calcChain&&(n.calcChain=e.calcChain),null!=e.images&&(n.images=e.images),t.sheets.push(n)})),JSON.stringify(t)},t}(l.LuckyFileBase);n.LuckyFile=h},{"../common/constant":91,"../common/method":93,"./LuckyBase":85,"./LuckyImage":88,"./LuckySheet":89,"./ReadXml":90}],88:[function(e,t,n){"use strict";var r,i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ImageList=void 0;var a=e("./LuckyBase"),o=e("../common/emf"),s=
/** @class */
function(){function e(e){if(null!=e)for(var t in this.images={},e)
// let reg = new RegExp("xl/media/image1.png", "g");
if(t.indexOf("xl/media/")>-1){var n=t.split("."),r=n[n.length-1].toLowerCase();if(r in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1,emf:1})if("emf"==r){var i,a,s,c=0,l=1,u=new o.ToContext2D(c,l);// number of the page, that you want to render
for(var h in o.FromEMF.K=[],i=o.FromEMF.C,a=o.FromEMF.K,s=4,i)a[i[h]]=h.slice(s);o.FromEMF.Parse(e[t],u),this.images[t]=u.canvas.toDataURL("image/png")}else this.images[t]=e[t]}}return e.prototype.getImageByName=function(e){if(e in this.images){var t=this.images[e];return new c(e,t)}return null},e}();n.ImageList=s;var c=
/** @class */
function(e){function t(t,n){var r=e.call(this)||this;return r.src=n,r}return i(t,e),t.prototype.setDefault=function(){},t}(a.LuckyImageBase)},{"../common/emf":92,"./LuckyBase":85}],89:[function(e,t,n){"use strict";var r,i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.LuckySheet=void 0;var a=e("./LuckyCell"),o=e("../common/method"),s=e("./ReadXml"),c=e("./LuckyBase"),l=
/** @class */
function(e){function t(t,n,r,i,a){void 0===i&&(i=!1);var l=//Private
e.call(this)||this;l.isInitialCell=i,l.readXml=a.readXml,l.sheetFile=a.sheetFile,l.styles=a.styles,l.sharedStrings=a.sharedStrings,l.calcChainEles=a.calcChain,l.sheetList=a.sheetList,l.imageList=a.imageList,//Output
l.name=t,l.index=n,l.order=r.toString(),l.config=new c.LuckyConfig,l.celldata=[],l.mergeCells=l.readXml.getElementsByTagName("mergeCells/mergeCell",l.sheetFile),l.styles.clrScheme;var u=l.readXml.getElementsByTagName("sheetViews/sheetView",l.sheetFile),h="1",f="0",d="100",p="A1";if(u.length>0){var g=u[0].attributeList;h=o.getXmlAttibute(g,"showGridLines","1"),f=o.getXmlAttibute(g,"tabSelected","0"),d=o.getXmlAttibute(g,"zoomScale","100");// let colorId = getXmlAttibute(attrList, "colorId", "0");
var m=u[0].getInnerElements("selection");if(null!=m&&m.length>0){p=o.getXmlAttibute(m[0].attributeList,"activeCell","A1");var v=o.getcellrange(p,l.sheetList,n);l.luckysheet_select_save=[],l.luckysheet_select_save.push(v)}}l.showGridLines=h,l.status=f,l.zoomRatio=parseInt(d)/100;var y=l.readXml.getElementsByTagName("sheetPr/tabColor",l.sheetFile);if(null!=y&&y.length>0){var A=y[0],b=(g=A.attributeList,s.getColor(A,l.styles,"b"));// if(attrList.rgb!=null){
l.color=b}var w,x,C=l.readXml.getElementsByTagName("sheetFormatPr",l.sheetFile);C.length>0&&(g=C[0].attributeList,w=o.getXmlAttibute(g,"defaultColWidth","9.21"),x=o.getXmlAttibute(g,"defaultRowHeight","19")),l.defaultColWidth=o.getColumnWidthPixel(parseFloat(w)),l.defaultRowHeight=o.getRowHeightPixel(parseFloat(x)),l.generateConfigColumnLenAndHidden();var _=l.generateConfigRowLenAndHiddenAddCell();if(null!=l.formulaRefList)for(var I in l.formulaRefList){var E=l.formulaRefList[I],k=E.mainRef,S=k.cellValue,B=k.fv,M=S.r,T=S.c;// let refRange = getcellrange(ref);
for(var O in E)if("mainRef"!=O){var D=E[O].cellValue;if(null!=D){var P=B,L=(N=D.r)-M,Q=(j=D.c)-T;L>0?P="="+o.fromulaRef.functionCopy(P,"down",L):L<0&&(P="="+o.fromulaRef.functionCopy(P,"up",Math.abs(L))),Q>0?P="="+o.fromulaRef.functionCopy(P,"right",Q):Q<0&&(P="="+o.fromulaRef.functionCopy(P,"left",Math.abs(Q))),// console.log(offsetRow, offsetCol, func);
D.v.f=P}}}null==l.calcChain&&(l.calcChain=[]);for(var R={},j=0;j<l.calcChainEles.length;j++)if((g=l.calcChainEles[j].attributeList).i==n){var N=g.r,F=g.i;g.l,g.s,g.a,g.t,v=o.getcellrange(N),(z=new c.LuckysheetCalcChain).r=v.row[0],z.c=v.column[0],z.index=l.index,l.calcChain.push(z),R["r"+N+"c"+j]=null}//There may be formulas that do not appear in calcChain
for(var I in _.formulaList)if(!(I in R)){var z,H=_.formulaList[I];(z=new c.LuckysheetCalcChain).r=H.r,z.c=H.c,z.index=l.index,l.calcChain.push(z)}if(null!=l.mergeCells)for(F=0;F<l.mergeCells.length;F++){var U=(g=l.mergeCells[F].attributeList).ref;if(null!=U){v=o.getcellrange(U,l.sheetList,n);var G=new c.LuckySheetConfigMerge;G.r=v.row[0],G.c=v.column[0],G.rs=v.row[1]-v.row[0]+1,G.cs=v.column[1]-v.column[0]+1,null==l.config.merge&&(l.config.merge={}),l.config.merge[v.row[0]+"_"+v.column[0]]=G}}var V=a.drawingFile,W=a.drawingRelsFile;if(null!=V&&null!=W){var q=l.readXml.getElementsByTagName("xdr:twoCellAnchor",V);if(null!=q&&q.length>0)for(F=0;F<q.length;F++){var Y=q[F],K=o.getXmlAttibute(Y.attributeList,"editAs","twoCell"),$=Y.getInnerElements("xdr:from"),J=Y.getInnerElements("xdr:to"),X=Y.getInnerElements("a:blip");if(null!=$&&null!=X&&$.length>0&&X.length>0){var Z=$[0],ee=J[0],te=X[0],ne=o.getXmlAttibute(te.attributeList,"r:embed",null),re=l.getBase64ByRid(ne,W),ie=0,ae=0,oe=0,se=0;re.fromCol=l.getXdrValue(Z.getInnerElements("xdr:col")),re.fromColOff=o.getPxByEMUs(l.getXdrValue(Z.getInnerElements("xdr:colOff"))),re.fromRow=l.getXdrValue(Z.getInnerElements("xdr:row")),re.fromRowOff=o.getPxByEMUs(l.getXdrValue(Z.getInnerElements("xdr:rowOff"))),re.toCol=l.getXdrValue(ee.getInnerElements("xdr:col")),re.toColOff=o.getPxByEMUs(l.getXdrValue(ee.getInnerElements("xdr:colOff"))),re.toRow=l.getXdrValue(ee.getInnerElements("xdr:row")),re.toRowOff=o.getPxByEMUs(l.getXdrValue(ee.getInnerElements("xdr:rowOff"))),re.originWidth=oe,re.originHeight=se,re.type="absolute"==K?"3":"oneCell"==K?"2":"1",re.isFixedPos=!1,re.fixedLeft=0,re.fixedTop=0;var ce={color:"#000",radius:0,style:"solid",width:0};re.border=ce;var le={height:se,offsetLeft:0,offsetTop:0,width:oe};re.crop=le;var ue={height:se,left:ie,top:ae,width:oe};re.default=ue,null==l.images&&(l.images={}),l.images[o.generateRandomIndex("image")]=re}}}return l}return i(t,e),t.prototype.getXdrValue=function(e){return null==e||0==e.length?null:parseInt(e[0].value)},t.prototype.getBase64ByRid=function(e,t){var n=this.readXml.getElementsByTagName("Relationships/Relationship",t);if(null!=n&&n.length>0)for(var r=0;r<n.length;r++){var i=n[r].attributeList,a=o.getXmlAttibute(i,"Id",null),s=o.getXmlAttibute(i,"Target",null);if(a==e)return s="xl/"+(s=s.replace(/\.\.\//g,"")),this.imageList.getImageByName(s)}return null},
/**
  * @desc This will convert cols/col to luckysheet config of column'width
  */
t.prototype.generateConfigColumnLenAndHidden=function(){for(var e=this.readXml.getElementsByTagName("cols/col",this.sheetFile),t=0;t<e.length;t++){var n=e[t].attributeList,r=o.getXmlAttibute(n,"min",null),i=o.getXmlAttibute(n,"max",null),a=o.getXmlAttibute(n,"width",null),s=o.getXmlAttibute(n,"hidden",null),c=o.getXmlAttibute(n,"customWidth",null);if(null!=r&&null!=i)for(var l=parseInt(r)-1,u=parseInt(i)-1,h=parseFloat(a),f=l;f<=u;f++)null!=a&&(null==this.config.columnlen&&(this.config.columnlen={}),this.config.columnlen[f]=o.getColumnWidthPixel(h)),"1"==s&&(null==this.config.colhidden&&(this.config.colhidden={}),this.config.colhidden[f]=0,this.config.columnlen&&delete this.config.columnlen[f]),null!=c&&(null==this.config.customWidth&&(this.config.customWidth={}),this.config.customWidth[f]=1)}},
/**
  * @desc This will convert cols/col to luckysheet config of column'width
  */
t.prototype.generateConfigRowLenAndHiddenAddCell=function(){var e=this.readXml.getElementsByTagName("sheetData/row",this.sheetFile),t={},n={};t.formulaList=n;for(var r=0;r<e.length;r++){var i=e[r],s=i.attributeList,c=o.getXmlAttibute(s,"r",null),l=o.getXmlAttibute(s,"ht",null),u=o.getXmlAttibute(s,"hidden",null),h=o.getXmlAttibute(s,"customHeight",null);if(null!=c){var f=parseInt(c)-1;if(null!=l){var d=parseFloat(l);null==this.config.rowlen&&(this.config.rowlen={}),this.config.rowlen[f]=o.getRowHeightPixel(d)}if("1"==u&&(null==this.config.rowhidden&&(this.config.rowhidden={}),this.config.rowhidden[f]=0,this.config.rowlen&&delete this.config.rowlen[f]),null!=h&&(null==this.config.customHeight&&(this.config.customHeight={}),this.config.customHeight[f]=1),this.isInitialCell){var p=i.getInnerElements("c");for(var g in p){var m=p[g],v=new a.LuckySheetCelldata(m,this.styles,this.sharedStrings,this.mergeCells,this.sheetFile,this.readXml);// let borderId = cellValue._borderId;
// if(borderId!=null){
//     let borders = this.styles["borders"] as Element[];
//     if(this.config._borderInfo==null){
//         this.config._borderInfo = {};
//     }
//     if( borderId in this.config._borderInfo){
//         this.config._borderInfo[borderId].cells.push(cellValue.r + "_" + cellValue.c);
//     }
//     else{
//         let border = borders[borderId];
//         let borderObject = new LuckySheetborderInfoCellForImp();
//         borderObject.rangeType = "cellGroup";
//         borderObject.cells = [];
//         let borderCellValue = new LuckySheetborderInfoCellValue();
//         let lefts = border.getInnerElements("left");
//         let rights = border.getInnerElements("right");
//         let tops = border.getInnerElements("top");
//         let bottoms = border.getInnerElements("bottom");
//         let diagonals = border.getInnerElements("diagonal");
//         let left = this.getBorderInfo(lefts);
//         let right = this.getBorderInfo(rights);
//         let top = this.getBorderInfo(tops);
//         let bottom = this.getBorderInfo(bottoms);
//         let diagonal = this.getBorderInfo(diagonals);
//         let isAdd = false;
//         if(left!=null && left.color!=null){
//             borderCellValue.l = left;
//             isAdd = true;
//         }
//         if(right!=null && right.color!=null){
//             borderCellValue.r = right;
//             isAdd = true;
//         }
//         if(top!=null && top.color!=null){
//             borderCellValue.t = top;
//             isAdd = true;
//         }
//         if(bottom!=null && bottom.color!=null){
//             borderCellValue.b = bottom;
//             isAdd = true;
//         }
//         if(isAdd){
//             borderObject.value = borderCellValue;
//             this.config._borderInfo[borderId] = borderObject;
//         }
//     }
// }
if(null!=v._borderObject&&(null==this.config.borderInfo&&(this.config.borderInfo=[]),this.config.borderInfo.push(v._borderObject),delete v._borderObject),"shared"==v._formulaType){null==this.formulaRefList&&(this.formulaRefList={}),null==this.formulaRefList[v._formulaSi]&&(this.formulaRefList[v._formulaSi]={});var y=void 0;null!=v.v&&(y=v.v.f);var A={t:v._formulaType,ref:v._fomulaRef,si:v._formulaSi,fv:y,cellValue:v};null!=v._fomulaRef?this.formulaRefList[v._formulaSi].mainRef=A:this.formulaRefList[v._formulaSi][v.r+"_"+v.c]=A;// console.log(refValue, this.formulaRefList);
}//There may be formulas that do not appear in calcChain
if(null!=v.v&&null!=v.v.f){var b={r:v.r,c:v.c};t.formulaList["r"+v.r+"c"+v.c]=b}this.celldata.push(v)}}}}return t},t}(c.LuckySheetBase);n.LuckySheet=l},{"../common/method":93,"./LuckyBase":85,"./LuckyCell":86,"./ReadXml":90}],90:[function(e,t,n){"use strict";var r,i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.getlineStringAttr=n.getColor=n.Element=n.ReadXml=void 0;var a=e("../common/constant"),o=e("../common/method"),s=
/** @class */
function(){function e(){}
/**
  * @param tag Search xml tag name , div,title etc.
  * @param file Xml string
  * @return Xml element string
  */return e.prototype.getElementsByOneTag=function(e,t){
//<a:[^/>: ]+?>.*?</a:[^/>: ]+?>
var n;if(e.indexOf("|")>-1){for(var r=e.split("|"),i="",a=0;a<r.length;a++){var o=r[a];i+="|<"+o+" [^>]+?[^/]>[\\s\\S]*?</"+o+">|<"+o+" [^>]+?/>|<"+o+">[\\s\\S]*?</"+o+">|<"+o+"/>"}i=i.substr(1,i.length),n=new RegExp(i,"g")}else n=new RegExp("<"+e+" [^>]+?[^/]>[\\s\\S]*?</"+e+">|<"+e+" [^>]+?/>|<"+e+">[\\s\\S]*?</"+e+">|<"+e+"/>","g");var s=t.match(n);return null==s?[]:s},e}(),c=
/** @class */
function(e){function t(t){var n=e.call(this)||this;return n.originFile=t,n}
/**
  * @param path Search xml tag group , div,title etc.
  * @param fileName One of uploadfileList, uploadfileList is file group, {key:value}
  * @return Xml element calss
  */return i(t,e),t.prototype.getElementsByTagName=function(e,t){var n,r=this.getFileByName(t),i=e.split("/");for(var a in i){var o=i[a];if(null==n)n=this.getElementsByOneTag(o,r);else if(n instanceof Array){var s=[];for(var c in n){var u=n[c];s=s.concat(this.getElementsByOneTag(o,u))}n=s}else n=this.getElementsByOneTag(o,n)}for(var h=[],f=0;f<n.length;f++){var d=new l(n[f]);h.push(d)}return h},
/**
  * @param name One of uploadfileList's name, search for file by this parameter
  * @retrun Select a file from uploadfileList
  */
t.prototype.getFileByName=function(e){for(var t in this.originFile)if(t.indexOf(e)>-1)return this.originFile[t];return""},t}(s);n.ReadXml=c;var l=
/** @class */
function(e){function t(t){var n=e.call(this)||this;n.elementString=t,n.setValue();var r=new RegExp('[a-zA-Z0-9_:]*?=".*?"',"g"),i=n.container.match(r);if(n.attributeList={},null!=i)for(var a in i){var o=i[a];// let al= attrFull.split("=");
if(0!=o.length){var s=o.substr(0,o.indexOf("=")),c=o.substr(o.indexOf("=")+1);null!=s&&null!=c&&0!=s.length&&0!=c.length&&(n.attributeList[s]=c.substr(1,c.length-2))}}return n}
/**
  * @param name Get attribute by key in element
  * @return Single attribute
  */return i(t,e),t.prototype.get=function(e){return this.attributeList[e]},
/**
  * @param tag Get elements by tag in elementString
  * @return Element group
  */
t.prototype.getInnerElements=function(e){for(var n=this.getElementsByOneTag(e,this.elementString),r=[],i=0;i<n.length;i++){var a=new t(n[i]);r.push(a)}return 0==r.length?null:r},
/**
  * @desc get xml dom value and container, <container>value</container>
  */
t.prototype.setValue=function(){var e=this.elementString;if("/>"==e.substr(e.length-2,2))this.value="",this.container=e;else{var t=this.getFirstTag(),n=new RegExp("(<"+t+" [^>]+?[^/]>)([\\s\\S]*?)</"+t+">|(<"+t+">)([\\s\\S]*?)</"+t+">","g").exec(e);null!=n&&(null!=n[1]?(this.container=n[1],this.value=n[2]):(this.container=n[3],this.value=n[4]))}},
/**
  * @desc get xml dom first tag, <a><b></b></a>, get a
  */
t.prototype.getFirstTag=function(){var e=this.elementString,t=e.substr(0,e.indexOf(" "));return(""==t||t.indexOf(">")>-1)&&(t=e.substr(0,e.indexOf(">"))),t=t.substr(1,t.length)},t}(s);function u(e,t){var n={};if(null==e||0==e.length)return t;for(var r in t){var i=t[r],a=e[parseInt(r)];if(null==a)n[r]=i;else{var o=a.attributeList.rgb;n[r]=o}}return n}//clrScheme:Element[]
function h(e,t,n){void 0===n&&(n="g");var r,i=e.attributeList,s=t.clrScheme,c=t.indexedColors,l=(t.mruColors,u(c,a.indexedColors)),h=i.indexed,f=i.rgb,d=i.theme,p=i.tint;if(null!=h)null!=(r=l[parseInt(h)])&&(r="#"+(r=r.substring(r.length-6,r.length)));else if(null!=f)r="#"+(f=f.substring(f.length-6,f.length));else if(null!=d){var g=parseInt(d);0==g?g=1:1==g?g=0:2==g?g=3:3==g&&(g=2);var m=s[g];if(null!=m){var v=m.getInnerElements("a:sysClr|a:srgbClr");if(null!=v){var y=v[0],A=y.attributeList;// console.log(clr.container, );
y.container.indexOf("sysClr")>-1?
// if(type=="g" && clrAttrList.val=="windowText"){
//     bg = null;
// }
// else if((type=="t" || type=="b") && clrAttrList.val=="window"){
//     bg = null;
// }                    
// else 
null!=A.lastClr?r="#"+A.lastClr:null!=A.val&&(r="#"+A.val):y.container.indexOf("srgbClr")>-1&&(
// console.log(clrAttrList.val);
r="#"+A.val)}}}if(null!=p){var b=parseFloat(p);null!=r&&(r=o.LightenDarkenColor(r,b))}return r}
/**
 * @dom xml attribute object
 * @attr attribute name
 * @d if attribute is null, return default value
 * @return attribute value
*/
function f(e,t){var n,r=e.getInnerElements(t);if(null!=r&&r.length>0)if("b"==t||"i"==t||"strike"==t)n="1";else if("u"==t)n="double"==(i=r[0].attributeList.val)?"2":"singleAccounting"==i?"3":"doubleAccounting"==i?"4":"1";else if("vertAlign"==t){var i;"subscript"==(i=r[0].attributeList.val)?n="1":"superscript"==i&&(n="2")}else n=r[0].attributeList.val;return n}n.Element=l,n.getColor=h,n.getlineStringAttr=f},{"../common/constant":91,"../common/method":93}],91:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fontFamilys=n.borderTypes=n.OEM_CHARSET=n.indexedColors=n.numFmtDefault=n.BuiltInCellStyles=n.ST_CellType=n.workbookRels=n.theme1File=n.worksheetFilePath=n.sharedStringsFile=n.stylesFile=n.calcChainFile=n.workBookFile=n.contentTypesFile=n.appFile=n.coreFile=n.columeHeader_word_index=n.columeHeader_word=void 0,n.columeHeader_word=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],n.columeHeader_word_index={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25},n.coreFile="docProps/core.xml",n.appFile="docProps/app.xml",n.contentTypesFile="[Content_Types].xml",n.workBookFile="xl/workbook.xml",n.calcChainFile="xl/calcChain.xml",n.stylesFile="xl/styles.xml",n.sharedStringsFile="xl/sharedStrings.xml",n.worksheetFilePath="xl/worksheets/",n.theme1File="xl/theme/theme1.xml",n.workbookRels="xl/_rels/workbook.xml.rels",//Excel Built-In cell type
n.ST_CellType={Boolean:"b",Date:"d",Error:"e",InlineString:"inlineStr",Number:"n",SharedString:"s",String:"str"},//Excel Built-In cell style
n.BuiltInCellStyles={0:"Normal"},n.numFmtDefault={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},n.indexedColors={0:"00000000",1:"00FFFFFF",2:"00FF0000",3:"0000FF00",4:"000000FF",5:"00FFFF00",6:"00FF00FF",7:"0000FFFF",8:"00000000",9:"00FFFFFF",10:"00FF0000",11:"0000FF00",12:"000000FF",13:"00FFFF00",14:"00FF00FF",15:"0000FFFF",16:"00800000",17:"00008000",18:"00000080",19:"00808000",20:"00800080",21:"00008080",22:"00C0C0C0",23:"00808080",24:"009999FF",25:"00993366",26:"00FFFFCC",27:"00CCFFFF",28:"00660066",29:"00FF8080",30:"000066CC",31:"00CCCCFF",32:"00000080",33:"00FF00FF",34:"00FFFF00",35:"0000FFFF",36:"00800080",37:"00800000",38:"00008080",39:"000000FF",40:"0000CCFF",41:"00CCFFFF",42:"00CCFFCC",43:"00FFFF99",44:"0099CCFF",45:"00FF99CC",46:"00CC99FF",47:"00FFCC99",48:"003366FF",49:"0033CCCC",50:"0099CC00",51:"00FFCC00",52:"00FF9900",53:"00FF6600",54:"00666699",55:"00969696",56:"00003366",57:"00339966",58:"00003300",59:"00333300",60:"00993300",61:"00993366",62:"00333399",63:"00333333",64:null,65:null},n.OEM_CHARSET={0:"ANSI_CHARSET",1:"DEFAULT_CHARSET",2:"SYMBOL_CHARSET",77:"MAC_CHARSET",128:"SHIFTJIS_CHARSET",129:"HANGUL_CHARSET",130:"JOHAB_CHARSET",134:"GB2312_CHARSET",136:"CHINESEBIG5_CHARSET",161:"GREEK_CHARSET",162:"TURKISH_CHARSET",163:"VIETNAMESE_CHARSET",177:"HEBREW_CHARSET",178:"ARABIC_CHARSET",186:"BALTIC_CHARSET",204:"RUSSIAN_CHARSET",222:"THAI_CHARSET",238:"EASTEUROPE_CHARSET",255:"OEM_CHARSET"},n.borderTypes={none:0,thin:1,hair:2,dotted:3,dashed:4,dashDot:5,dashDotDot:6,double:7,medium:8,mediumDashed:9,mediumDashDot:10,mediumDashDotDot:11,slantDashDot:12,thick:13},n.fontFamilys={0:"defualt",1:"Roman",2:"Swiss",3:"Modern",4:"Script",5:"Decorative"}},{}],92:[function(e,t,n){"use strict";function r(e){return""+parseFloat(e.toFixed(2))}Object.defineProperty(n,"__esModule",{value:!0}),n.ToContext2D=n.FromEMF=n.UDOC=void 0,n.UDOC={},n.UDOC.G={concat:function(e,t){for(var n=0;n<t.cmds.length;n++)e.cmds.push(t.cmds[n]);for(n=0;n<t.crds.length;n++)e.crds.push(t.crds[n])},getBB:function(e){for(var t=1e99,n=1e99,r=-t,i=-n,a=0;a<e.length;a+=2){var o=e[a],s=e[a+1];o<t?t=o:o>r&&(r=o),s<n?n=s:s>i&&(i=s)}return[t,n,r,i]},rectToPath:function(e){return{cmds:["M","L","L","L","Z"],crds:[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]]}},
// a inside b
insideBox:function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]},isBox:function(e,t){var n=function(e,t){for(var n=0;n<8;n+=2){for(var r=!0,i=0;i<8;i++)if(Math.abs(t[i]-e[i+n&7])>=2){r=!1;break}if(r)return!0}return!1};if(e.cmds.length>10)return!1;var r=e.cmds.join(""),i=e.crds,a=!1;if("MLLLZ"==r&&8==i.length||"MLLLLZ"==r&&10==i.length){10==i.length&&(i=i.slice(0,8));var o=t[0],s=t[1],c=t[2],l=t[3];a||(a=n(i,[o,s,c,s,c,l,o,l])),a||(a=n(i,[o,l,c,l,c,s,o,s]))}return a},boxArea:function(e){return(e[2]-e[0])*(e[3]-e[1])},newPath:function(e){e.pth={cmds:[],crds:[]}},moveTo:function(e,t,r){var i=n.UDOC.M.multPoint(e.ctm,[t,r]);//if(gst.cpos[0]==p[0] && gst.cpos[1]==p[1]) return;
e.pth.cmds.push("M"),e.pth.crds.push(i[0],i[1]),e.cpos=i},lineTo:function(e,t,r){var i=n.UDOC.M.multPoint(e.ctm,[t,r]);e.cpos[0]==i[0]&&e.cpos[1]==i[1]||(e.pth.cmds.push("L"),e.pth.crds.push(i[0],i[1]),e.cpos=i)},curveTo:function(e,t,r,i,a,o,s){var c;t=(c=n.UDOC.M.multPoint(e.ctm,[t,r]))[0],r=c[1],i=(c=n.UDOC.M.multPoint(e.ctm,[i,a]))[0],a=c[1],o=(c=n.UDOC.M.multPoint(e.ctm,[o,s]))[0],s=c[1],e.cpos=c,e.pth.cmds.push("C"),e.pth.crds.push(t,r,i,a,o,s)},closePath:function(e){e.pth.cmds.push("Z")},arc:function(e,t,r,i,a,o,s){
// circle from a0 counter-clock-wise to a1
if(s)for(;o>a;)o-=2*Math.PI;else for(;o<a;)o+=2*Math.PI;var c=(o-a)/4,l=Math.cos(c/2),u=-Math.sin(c/2),h=(4-l)/3,f=0==u?u:(1-l)*(3-l)/(3*u),d=h,p=-f,g=l,m=-u,v=[h,f],y=[d,p],A=[g,m],b={cmds:[0==e.pth.cmds.length?"M":"L","C","C","C","C"],crds:[l,u,h,f,d,p,g,m]},w=[1,0,0,1,0,0];n.UDOC.M.rotate(w,-c);for(var x=0;x<3;x++)v=n.UDOC.M.multPoint(w,v),y=n.UDOC.M.multPoint(w,y),A=n.UDOC.M.multPoint(w,A),b.crds.push(v[0],v[1],y[0],y[1],A[0],A[1]);var C=[i,0,0,i,t,r];n.UDOC.M.rotate(w,c/2-a),n.UDOC.M.concat(w,C),n.UDOC.M.multArray(w,b.crds),n.UDOC.M.multArray(e.ctm,b.crds),n.UDOC.G.concat(e.pth,b),r=b.crds.pop(),t=b.crds.pop(),e.cpos=[t,r]},toPoly:function(e){if("M"!=e.cmds[0]||"Z"!=e.cmds[e.cmds.length-1])return null;for(var t=1;t<e.cmds.length-1;t++)if("L"!=e.cmds[t])return null;var r=[],i=e.crds.length;for(e.crds[0]==e.crds[i-2]&&e.crds[1]==e.crds[i-1]&&(i-=2),t=0;t<i;t+=2)r.push([e.crds[t],e.crds[t+1]]);return n.UDOC.G.polyArea(e.crds)<0&&r.reverse(),r},fromPoly:function(e){for(var t={cmds:[],crds:[]},n=0;n<e.length;n++)t.crds.push(e[n][0],e[n][1]),t.cmds.push(0==n?"M":"L");return t.cmds.push("Z"),t},polyArea:function(e){if(e.length<6)return 0;for(var t=e.length-2,n=(e[0]-e[t])*(e[t+1]+e[1]),r=0;r<t;r+=2)n+=(e[r+2]-e[r])*(e[r+1]+e[r+3]);return.5*-n},polyClip:function(e,t){var n,r,i=function(e){return(c[0]-n[0])*(e[1]-n[1])>(c[1]-n[1])*(e[0]-n[0])},a=function(){var e=[n[0]-c[0],n[1]-c[1]],t=[r[0]-h[0],r[1]-h[1]],i=n[0]*c[1]-n[1]*c[0],a=r[0]*h[1]-r[1]*h[0],o=1/(e[0]*t[1]-e[1]*t[0]);return[(i*t[0]-a*e[0])*o,(i*t[1]-a*e[1])*o]},o=e;for(var s in n=t[t.length-1],t){var c=t[s],l=o;//last on the input list
for(var u in o=[],r=l[l.length-1],l){var h;i(h=l[u])?(i(r)||o.push(a()),o.push(h)):i(r)&&o.push(a()),r=h}n=c}return o}},n.UDOC.M={getScale:function(e){return Math.sqrt(Math.abs(e[0]*e[3]-e[1]*e[2]))},translate:function(e,t,r){n.UDOC.M.concat(e,[1,0,0,1,t,r])},rotate:function(e,t){n.UDOC.M.concat(e,[Math.cos(t),-Math.sin(t),Math.sin(t),Math.cos(t),0,0])},scale:function(e,t,r){n.UDOC.M.concat(e,[t,0,0,r,0,0])},concat:function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5];e[0]=n*t[0]+r*t[2],e[1]=n*t[1]+r*t[3],e[2]=i*t[0]+a*t[2],e[3]=i*t[1]+a*t[3],e[4]=o*t[0]+s*t[2]+t[4],e[5]=o*t[1]+s*t[3]+t[5]},invert:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=t*i-n*r;e[0]=i/s,e[1]=-n/s,e[2]=-r/s,e[3]=t/s,e[4]=(r*o-i*a)/s,e[5]=(n*a-t*o)/s},multPoint:function(e,t){var n=t[0],r=t[1];return[n*e[0]+r*e[2]+e[4],n*e[1]+r*e[3]+e[5]]},multArray:function(e,t){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];t[n]=r*e[0]+i*e[2]+e[4],t[n+1]=r*e[1]+i*e[3]+e[5]}}},n.UDOC.C={srgbGamma:function(e){return e<.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},cmykToRgb:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=255+t*(-4.387332384609988*t+54.48615194189176*n+18.82290502165302*r+212.25662451639585*i-285.2331026137004)+n*(1.7149763477362134*n-5.6096736904047315*r+-17.873870861415444*i-5.497006427196366)+r*(-2.5217340131683033*r-21.248923337353073*i+17.5119270841813)+i*(-21.86122147463605*i-189.48180835922747),o=255+t*(8.841041422036149*t+60.118027045597366*n+6.871425592049007*r+31.159100130055922*i-79.2970844816548)+n*(-15.310361306967817*n+17.575251261109482*r+131.35250912493976*i-190.9453302588951)+r*(4.444339102852739*r+9.8632861493405*i-24.86741582555878)+i*(-20.737325471181034*i-187.80453709719578),s=255+t*(.8842522430003296*t+8.078677503112928*n+30.89978309703729*r-.23883238689178934*i-14.183576799673286)+n*(10.49593273432072*n+63.02378494754052*r+50.606957656360734*i-112.23884253719248)+r*(.03296041114873217*r+115.60384449646641*i-193.58209356861505)+i*(-22.33816807309886*i-180.12613974708367);// return [1-Math.min(1,c+k), 1-Math.min(1, m+k), 1-Math.min(1,y+k)];
return[Math.max(0,Math.min(1,a/255)),Math.max(0,Math.min(1,o/255)),Math.max(0,Math.min(1,s/255))];//var iK = 1-c[3];  
//return [(1-c[0])*iK, (1-c[1])*iK, (1-c[2])*iK];  
},labToRgb:function(e){for(var t=903.3,r=.008856,i=e[0],a=e[1],o=(i+16)/116,s=o*o*o,c=o-e[2]/200,l=c*c*c,u=a/500+o,h=u*u*u,f=[96.72*(h>r?h:(116*u-16)/t)/100,100*(s>r?s:(116*o-16)/t)/100,81.427*(l>r?l:(116*c-16)/t)/100],d=[3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427],p=[d[0]*f[0]+d[1]*f[1]+d[2]*f[2],d[3]*f[0]+d[4]*f[1]+d[5]*f[2],d[6]*f[0]+d[7]*f[1]+d[8]*f[2]],g=0;g<3;g++)p[g]=Math.max(0,Math.min(1,n.UDOC.C.srgbGamma(p[g])));return p}},n.UDOC.getState=function(e){return{font:n.UDOC.getFont(),dd:{flat:1},space:"/DeviceGray",
// fill
ca:1,colr:[0,0,0],sspace:"/DeviceGray",
// stroke
CA:1,COLR:[0,0,0],bmode:"/Normal",SA:!1,OPM:0,AIS:!1,OP:!1,op:!1,SMask:"/None",lwidth:1,lcap:0,ljoin:0,mlimit:10,SM:.1,doff:0,dash:[],ctm:[1,0,0,1,0,0],cpos:[0,0],pth:{cmds:[],crds:[]},cpth:e?n.UDOC.G.rectToPath(e):null}},n.UDOC.getFont=function(){return{Tc:0,Tw:0,Th:100,Tl:0,Tf:"Helvetica-Bold",Tfs:1,Tmode:0,Trise:0,Tk:0,Tal:0,Tun:0,Tm:[1,0,0,1,0,0],Tlm:[1,0,0,1,0,0],Trm:[1,0,0,1,0,0]}},n.FromEMF=function(){},n.FromEMF.Parse=function(e,t){e=new Uint8Array(e);for(var r,i=0,a={fill:!1,strk:!1,bb:[0,0,1,1],wbb:[0,0,1,1],fnt:{nam:"Arial",hgh:25,und:!1,orn:0},tclr:[0,0,0],talg:0},o=[],s=[],c=n.FromEMF.B.readShort,l=n.FromEMF.B.readUshort,u=n.FromEMF.B.readInt,h=n.FromEMF.B.readUint,f=n.FromEMF.B.readFloat//console.log(buff.slice(0,32));
;;){var d=h(e,i);i+=4;var p=n.FromEMF.K[d],g=h(e,i),m=i+=4,v=null,y=0;if("EOF"==p)break;if("HEADER"==p)a.bb=n.FromEMF._readBox(e,m),m+=16,//console.log(fnm, prms.bb);
t.StartPage(a.bb[0],a.bb[1],a.bb[2],a.bb[3]),r=n.UDOC.getState(a.bb);else if("SAVEDC"==p)s.push(JSON.stringify(r),JSON.stringify(a));else if("RESTOREDC"==p){var A=u(e,m);for(m+=4;A<-1;)s.pop(),s.pop();a=JSON.parse(s.pop()),r=JSON.parse(s.pop())}else if("SELECTCLIPPATH"==p)r.cpth=JSON.parse(JSON.stringify(r.pth));else if(-1!=["SETMAPMODE","SETPOLYFILLMODE","SETBKMODE"
/*,"SETVIEWPORTEXTEX"*/,"SETICMMODE","SETROP2","EXTSELECTCLIPRGN"].indexOf(p));else if("SETMITERLIMIT"==p)r.mlimit=h(e,m);else if("SETTEXTCOLOR"==p)a.tclr=[e[m]/255,e[m+1]/255,e[m+2]/255];else if("SETTEXTALIGN"==p)a.talg=h(e,m);else if("SETVIEWPORTEXTEX"==p||"SETVIEWPORTORGEX"==p){null==a.vbb&&(a.vbb=[]);var b="SETVIEWPORTORGEX"==p?0:2;a.vbb[b]=u(e,m),m+=4,a.vbb[b+1]=u(e,m),m+=4,//console.log(prms.vbb);
"SETVIEWPORTEXTEX"==p&&n.FromEMF._updateCtm(a,r)}else if("SETWINDOWEXTEX"==p||"SETWINDOWORGEX"==p)b="SETWINDOWORGEX"==p?0:2,a.wbb[b]=u(e,m),m+=4,a.wbb[b+1]=u(e,m),m+=4,"SETWINDOWEXTEX"==p&&n.FromEMF._updateCtm(a,r);else if("COMMENT"==p)h(e,m),m+=4;else if("SELECTOBJECT"==p){var w=h(e,m);//console.log(ind.toString(16), tab, tab[ind]);
if(m+=4,2147483648==w)a.fill=!0,r.colr=[1,1,1];else if(2147483653==w)a.fill=!1;else if(2147483655==w)a.strk=!0,a.lwidth=1,r.COLR=[0,0,0];else if(2147483656==w)a.strk=!1;else if(2147483661==w);else if(2147483662==w);else{var x=o[w];//console.log(ind, co);
if("b"==x.t){if(a.fill=1!=x.stl,0==x.stl);else if(1!=x.stl)throw x.stl+" e";r.colr=x.clr}else if("p"==x.t)a.strk=5!=x.stl,r.lwidth=x.wid,r.COLR=x.clr;else{if("f"!=x.t)throw"e";a.fnt=x,r.font.Tf=x.nam,r.font.Tfs=Math.abs(x.hgh),r.font.Tun=x.und}}}else if("DELETEOBJECT"==p){if(w=h(e,m),m+=4,null==o[w])throw"e";o[w]=null}else if("CREATEBRUSHINDIRECT"==p)y=h(e,m),(v={t:"b"}).stl=h(e,m+=4),m+=4,v.clr=[e[m]/255,e[m+1]/255,e[m+2]/255],m+=4,v.htc=h(e,m),m+=4;else if("CREATEPEN"==p||"EXTCREATEPEN"==p)y=h(e,m),m+=4,v={t:"p"},"EXTCREATEPEN"==p?(m+=16,v.stl=h(e,m),m+=4,v.wid=h(e,m),m+=4,//obj.stl = rU32(buff, loff);  
m+=4):(v.stl=h(e,m),m+=4,v.wid=h(e,m),m+=4,m+=4),v.clr=[e[m]/255,e[m+1]/255,e[m+2]/255],m+=4;else if("EXTCREATEFONTINDIRECTW"==p){y=h(e,m),(v={t:"f",nam:""}).hgh=u(e,m+=4),m+=4,m+=8,v.orn=u(e,m)/10;var C=h(e,m+=4);for(m+=4,//console.log(fnm, obj.orn, wgh);
//console.log(rU32(buff,loff), rU32(buff,loff+4), buff.slice(loff,loff+8));
v.und=e[m+1],v.stk=e[m+2],m+=8;0!=l(e,m);)v.nam+=String.fromCharCode(l(e,m)),m+=2;C>500&&(v.nam+="-Bold");//console.log(wgh, obj.nam);
}else if("EXTTEXTOUTW"==p){var _=h(e,
//console.log(buff.slice(loff-8, loff-8+siz));
m+=16),I=(f(e,m+=4),f(e,m+=4),u(e,m+=4)),E=u(e,m+=4);m+=4,//console.log(mod, scx, scy,rfx,rfy);
r.font.Tm=[1,0,0,-1,0,0],n.UDOC.M.rotate(r.font.Tm,a.fnt.orn*Math.PI/180),n.UDOC.M.translate(r.font.Tm,I,E);var k=a.talg;//console.log(alg.toString(2));
if(6&~k){if(7&k)throw k+" e";r.font.Tal=0}else r.font.Tal=2;if(24&~k){if(24&k)throw"e";n.UDOC.M.translate(r.font.Tm,0,r.font.Tfs)}var S=h(e,m),B=h(e,m+=4);h(e,m+=4),m+=4,h(e,//if(ops!=0) throw "e";
//console.log(ofs,ops,crs);
m+=16),m+=4,//console.log(ops, ofD, loff, ofs+off-8);
B+=i-8;for(//console.log(crs, ops);
var M="",T=0;T<S;T++){var O=l(e,B+2*T);M+=String.fromCharCode(O)}var D=r.colr;r.colr=a.tclr,//console.log(str, gst.colr, gst.font.Tm);
//var otfs = gst.font.Tfs;  gst.font.Tfs *= 1/gst.ctm[0];
t.PutText(r,M,M.length*r.font.Tfs*.5),r.colr=D}else if("BEGINPATH"==p)n.UDOC.G.newPath(r);else if("ENDPATH"==p);else if("CLOSEFIGURE"==p)n.UDOC.G.closePath(r);else if("MOVETOEX"==p)n.UDOC.G.moveTo(r,u(e,m),u(e,m+4));else if("LINETO"==p){if(0==r.pth.cmds.length){var P=r.ctm.slice(0);n.UDOC.M.invert(P);var L=n.UDOC.M.multPoint(P,r.cpos);n.UDOC.G.moveTo(r,L[0],L[1])}n.UDOC.G.lineTo(r,u(e,m),u(e,m+4))}else if("POLYGON"==p||"POLYGON16"==p||"POLYLINE"==p||"POLYLINE16"==p||"POLYLINETO"==p||"POLYLINETO16"==p){m+=16;var Q=p.startsWith("POLYGON"),R=-1!=p.indexOf("TO"),j=h(e,m);m+=4,R||n.UDOC.G.newPath(r),m=n.FromEMF._drawPoly(e,m,j,r,p.endsWith("16")?2:4,Q,R),R||n.FromEMF._draw(t,r,a,Q)}else if("POLYPOLYGON16"==p){m+=16,Q=p.startsWith("POLYPOLYGON"),R=-1!=p.indexOf("TO");var N=h(e,m);m+=4;var F=m+=4;for(m+=4*N,R||n.UDOC.G.newPath(r),T=0;T<N;T++){var z=l(e,F+4*T);m=n.FromEMF._drawPoly(e,m,z,r,p.endsWith("16")?2:4,Q,R)}R||n.FromEMF._draw(t,r,a,Q)}else if("POLYBEZIER"==p||"POLYBEZIER16"==p||"POLYBEZIERTO"==p||"POLYBEZIERTO16"==p){m+=16;var H=p.endsWith("16"),U=H?c:u,G=H?2:4;for(j=h(e,m),m+=4,-1==p.indexOf("TO")&&(n.UDOC.G.moveTo(r,U(e,m),U(e,m+G)),m+=2*G,j--);j>0;)n.UDOC.G.curveTo(r,U(e,m),U(e,m+G),U(e,m+2*G),U(e,m+3*G),U(e,m+4*G),U(e,m+5*G)),m+=6*G,j-=3;//console.log(JSON.parse(JSON.stringify(gst.pth)));
}else if("RECTANGLE"==p||"ELLIPSE"==p){n.UDOC.G.newPath(r);var V=n.FromEMF._readBox(e,m);if("RECTANGLE"==p)n.UDOC.G.moveTo(r,V[0],V[1]),n.UDOC.G.lineTo(r,V[2],V[1]),n.UDOC.G.lineTo(r,V[2],V[3]),n.UDOC.G.lineTo(r,V[0],V[3]);else{var W=(V[0]+V[2])/2,q=(V[1]+V[3])/2;n.UDOC.G.arc(r,W,q,(V[2]-V[0])/2,0,2*Math.PI,!1)}n.UDOC.G.closePath(r),n.FromEMF._draw(t,r,a,!0)}else if("FILLPATH"==p)t.Fill(r,!1);else if("STROKEPATH"==p)t.Stroke(r);else if("STROKEANDFILLPATH"==p)t.Fill(r,!1),t.Stroke(r);else if("SETWORLDTRANSFORM"==p||"MODIFYWORLDTRANSFORM"==p){var Y=[];for(T=0;T<6;T++)Y.push(f(e,m+4*T));//console.log(fnm, gst.ctm.slice(0), mat);
if(m+=24,"SETWORLDTRANSFORM"==p)r.ctm=Y;else{if(_=h(e,m),m+=4,2!=_)throw"e";var K=r.ctm;r.ctm=Y,n.UDOC.M.concat(r.ctm,K)}}else if("SETSTRETCHBLTMODE"==p)h(e,m),m+=4;else if("STRETCHDIBITS"==p){V=n.FromEMF._readBox(e,m);var $=u(e,m+=16),J=u(e,m+=4),X=(u(e,m+=4),u(e,m+=4),u(e,m+=4)),Z=u(e,m+=4),ee=h(e,m+=4)+i-8,te=(h(e,m+=4),h(e,m+=4)+i-8);if(h(e,m+=4),0!=h(e,m+=4))throw"e";h(e,m+=4);var ne=u(e,m+=4),re=u(e,m+=4);m+=4,h(e,ee);//console.log(bop, wD, hD);
//console.log(ofH, szH, ofB, szB, ofH+40);
//console.log(bx, xD,yD,wD,hD);
//console.log(xS,yS,wS,hS);
//console.log(ofH,szH,ofB,szB,usg,bop);
var ie=h(e,ee+=4),ae=h(e,ee+=4);if(ie!=X||ae!=Z)throw"e";var oe=l(e,ee+=4),se=l(e,ee+=2);if(8!=se&&24!=se&&32!=se)throw se+" e";var ce=h(e,ee+=2);if(0!=ce)throw ce+" e";h(e,ee+=4),h(e,ee+=4),h(e,ee+=4),h(e,ee+=4),h(e,ee+=4),ee+=4;//console.log(hl, w, h, ps, bc, cpr, sz, xpm, ypm, cu, ci);
//console.log(hl,w,h,",",xS,yS,wS,hS,",",xD,yD,wD,hD,",",xpm,ypm);
var le=Math.floor((ie*oe*se+31&-32)/8),ue=new Uint8Array(ie*ae*4);if(8==se)for(q=0;q<ae;q++)for(W=0;W<ie;W++){var he=q*ie+W<<2;w=e[te+(ae-1-q)*le+W]<<2,ue[he]=e[ee+w+2],ue[he+1]=e[ee+w+1],ue[he+2]=e[ee+w+0],ue[he+3]=255}if(24==se)for(q=0;q<ae;q++)for(W=0;W<ie;W++){var fe=te+(ae-1-q)*le+3*W;ue[he=q*ie+W<<2]=e[fe+2],ue[he+1]=e[fe+1],ue[he+2]=e[fe+0],ue[he+3]=255}if(32==se)for(q=0;q<ae;q++)for(W=0;W<ie;W++)fe=te+(ae-1-q)*le+4*W,ue[he=q*ie+W<<2]=e[fe+2],ue[he+1]=e[fe+1],ue[he+2]=e[fe+0],ue[he+3]=e[fe+3];var de=r.ctm.slice(0);r.ctm=[1,0,0,1,0,0],n.UDOC.M.scale(r.ctm,ne,-re),n.UDOC.M.translate(r.ctm,$,J+re),n.UDOC.M.concat(r.ctm,de),t.PutImage(r,ue,ie,ae),r.ctm=de}null!=v&&(o[y]=v),i+=g-8}//genv.Stroke(gst);
t.ShowPage(),t.Done()},n.FromEMF._readBox=function(e,t){for(var r=[],i=0;i<4;i++)r[i]=n.FromEMF.B.readInt(e,t+4*i);return r},n.FromEMF._updateCtm=function(e,t){var r=[1,0,0,1,0,0],i=e.wbb,a=(e.bb,e.vbb&&4==e.vbb.length?e.vbb:e.bb);//var y0 = bb[1], y1 = bb[3];  bb[1]=Math.min(y0,y1);  bb[3]=Math.max(y0,y1);
n.UDOC.M.translate(r,-i[0],-i[1]),n.UDOC.M.scale(r,1/i[2],1/i[3]),n.UDOC.M.scale(r,a[2],a[3]),//UDOC.M.scale(mat, vbb[2]/(bb[2]-bb[0]), vbb[3]/(bb[3]-bb[1]));
//UDOC.M.scale(mat, bb[2]-bb[0],bb[3]-bb[1]);
t.ctm=r},n.FromEMF._draw=function(e,t,n,r){n.fill&&r&&e.Fill(t,!1),n.strk&&0!=t.lwidth&&e.Stroke(t)},n.FromEMF._drawPoly=function(e,t,r,i,a,o,s){for(var c=2==a?n.FromEMF.B.readShort:n.FromEMF.B.readInt,l=0;l<r;l++){var u=c(e,t),h=c(e,t+=a);t+=a,0!=l||s?n.UDOC.G.lineTo(i,u,h):n.UDOC.G.moveTo(i,u,h)}return o&&n.UDOC.G.closePath(i),t},n.FromEMF.B={uint8:new Uint8Array(4),readShort:function(e,t){var r=n.FromEMF.B.uint8;return r[0]=e[t],r[1]=e[t+1],n.FromEMF.B.int16[0]},readUshort:function(e,t){var r=n.FromEMF.B.uint8;return r[0]=e[t],r[1]=e[t+1],n.FromEMF.B.uint16[0]},readInt:function(e,t){var r=n.FromEMF.B.uint8;return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],n.FromEMF.B.int32[0]},readUint:function(e,t){var r=n.FromEMF.B.uint8;return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],n.FromEMF.B.uint32[0]},readFloat:function(e,t){var r=n.FromEMF.B.uint8;return r[0]=e[t],r[1]=e[t+1],r[2]=e[t+2],r[3]=e[t+3],n.FromEMF.B.flot32[0]},readASCII:function(e,t,n){for(var r="",i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r}},n.FromEMF.B.int16=new Int16Array(n.FromEMF.B.uint8.buffer),n.FromEMF.B.uint16=new Uint16Array(n.FromEMF.B.uint8.buffer),n.FromEMF.B.int32=new Int32Array(n.FromEMF.B.uint8.buffer),n.FromEMF.B.uint32=new Uint32Array(n.FromEMF.B.uint8.buffer),n.FromEMF.B.flot32=new Float32Array(n.FromEMF.B.uint8.buffer),n.FromEMF.C={EMR_HEADER:1,EMR_POLYBEZIER:2,EMR_POLYGON:3,EMR_POLYLINE:4,EMR_POLYBEZIERTO:5,EMR_POLYLINETO:6,EMR_POLYPOLYLINE:7,EMR_POLYPOLYGON:8,EMR_SETWINDOWEXTEX:9,EMR_SETWINDOWORGEX:10,EMR_SETVIEWPORTEXTEX:11,EMR_SETVIEWPORTORGEX:12,EMR_SETBRUSHORGEX:13,EMR_EOF:14,EMR_SETPIXELV:15,EMR_SETMAPPERFLAGS:16,EMR_SETMAPMODE:17,EMR_SETBKMODE:18,EMR_SETPOLYFILLMODE:19,EMR_SETROP2:20,EMR_SETSTRETCHBLTMODE:21,EMR_SETTEXTALIGN:22,EMR_SETCOLORADJUSTMENT:23,EMR_SETTEXTCOLOR:24,EMR_SETBKCOLOR:25,EMR_OFFSETCLIPRGN:26,EMR_MOVETOEX:27,EMR_SETMETARGN:28,EMR_EXCLUDECLIPRECT:29,EMR_INTERSECTCLIPRECT:30,EMR_SCALEVIEWPORTEXTEX:31,EMR_SCALEWINDOWEXTEX:32,EMR_SAVEDC:33,EMR_RESTOREDC:34,EMR_SETWORLDTRANSFORM:35,EMR_MODIFYWORLDTRANSFORM:36,EMR_SELECTOBJECT:37,EMR_CREATEPEN:38,EMR_CREATEBRUSHINDIRECT:39,EMR_DELETEOBJECT:40,EMR_ANGLEARC:41,EMR_ELLIPSE:42,EMR_RECTANGLE:43,EMR_ROUNDRECT:44,EMR_ARC:45,EMR_CHORD:46,EMR_PIE:47,EMR_SELECTPALETTE:48,EMR_CREATEPALETTE:49,EMR_SETPALETTEENTRIES:50,EMR_RESIZEPALETTE:51,EMR_REALIZEPALETTE:52,EMR_EXTFLOODFILL:53,EMR_LINETO:54,EMR_ARCTO:55,EMR_POLYDRAW:56,EMR_SETARCDIRECTION:57,EMR_SETMITERLIMIT:58,EMR_BEGINPATH:59,EMR_ENDPATH:60,EMR_CLOSEFIGURE:61,EMR_FILLPATH:62,EMR_STROKEANDFILLPATH:63,EMR_STROKEPATH:64,EMR_FLATTENPATH:65,EMR_WIDENPATH:66,EMR_SELECTCLIPPATH:67,EMR_ABORTPATH:68,EMR_COMMENT:70,EMR_FILLRGN:71,EMR_FRAMERGN:72,EMR_INVERTRGN:73,EMR_PAINTRGN:74,EMR_EXTSELECTCLIPRGN:75,EMR_BITBLT:76,EMR_STRETCHBLT:77,EMR_MASKBLT:78,EMR_PLGBLT:79,EMR_SETDIBITSTODEVICE:80,EMR_STRETCHDIBITS:81,EMR_EXTCREATEFONTINDIRECTW:82,EMR_EXTTEXTOUTA:83,EMR_EXTTEXTOUTW:84,EMR_POLYBEZIER16:85,EMR_POLYGON16:86,EMR_POLYLINE16:87,EMR_POLYBEZIERTO16:88,EMR_POLYLINETO16:89,EMR_POLYPOLYLINE16:90,EMR_POLYPOLYGON16:91,EMR_POLYDRAW16:92,EMR_CREATEMONOBRUSH:93,EMR_CREATEDIBPATTERNBRUSHPT:94,EMR_EXTCREATEPEN:95,EMR_POLYTEXTOUTA:96,EMR_POLYTEXTOUTW:97,EMR_SETICMMODE:98,EMR_CREATECOLORSPACE:99,EMR_SETCOLORSPACE:100,EMR_DELETECOLORSPACE:101,EMR_GLSRECORD:102,EMR_GLSBOUNDEDRECORD:103,EMR_PIXELFORMAT:104,EMR_DRAWESCAPE:105,EMR_EXTESCAPE:106,EMR_SMALLTEXTOUT:108,EMR_FORCEUFIMAPPING:109,EMR_NAMEDESCAPE:110,EMR_COLORCORRECTPALETTE:111,EMR_SETICMPROFILEA:112,EMR_SETICMPROFILEW:113,EMR_ALPHABLEND:114,EMR_SETLAYOUT:115,EMR_TRANSPARENTBLT:116,EMR_GRADIENTFILL:118,EMR_SETLINKEDUFIS:119,EMR_SETTEXTJUSTIFICATION:120,EMR_COLORMATCHTOTARGETW:121,EMR_CREATECOLORSPACEW:122},n.FromEMF.K=[],// (function() {
//     var inp, out, stt;
//     inp = FromEMF.C;   out = FromEMF.K;   stt=4;
//     for(var p in inp) out[inp[p]] = p.slice(stt);
// }  )();
n.ToContext2D=function(e,t){this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.bb=null,this.currPage=0,this.needPage=e,this.scale=t},n.ToContext2D.prototype.StartPage=function(e,t,n,r){if(this.currPage==this.needPage){this.bb=[e,t,n,r];var i=this.scale,a=window.devicePixelRatio,o=this.canvas,s=this.ctx;o.width=Math.round(n*i),o.height=Math.round(r*i),s.translate(0,r*i),s.scale(i,-i),o.setAttribute("style","border:1px solid; width:"+o.width/a+"px; height:"+o.height/a+"px")}},n.ToContext2D.prototype.Fill=function(e,t){if(this.currPage==this.needPage){var n=this.ctx;n.beginPath(),this._setStyle(e,n),this._draw(e.pth,n),n.fill()}},n.ToContext2D.prototype.Stroke=function(e){if(this.currPage==this.needPage){var t=this.ctx;t.beginPath(),this._setStyle(e,t),this._draw(e.pth,t),t.stroke()}},n.ToContext2D.prototype.PutText=function(e,t,n){if(this.currPage==this.needPage){this._scale(e.ctm);var r=this.ctx;this._setStyle(e,r),r.save();var i=[1,0,0,-1,0,0];this._concat(i,e.font.Tm),this._concat(i,e.ctm),//console.log(str, m, gst);  throw "e";
r.transform(i[0],i[1],i[2],i[3],i[4],i[5]),r.fillText(t,0,0),r.restore()}},n.ToContext2D.prototype.PutImage=function(e,t,n,r,i){if(this.currPage==this.needPage){var a=this.ctx;if(t.length==n*r*4){if(t=t.slice(0),i&&i.length==n*r*4)for(var o=0;o<t.length;o+=4)t[o+3]=i[o+1];var s=document.createElement("canvas"),c=s.getContext("2d");s.width=n,s.height=r;var l=c.createImageData(n,r);for(o=0;o<t.length;o++)l.data[o]=t[o];c.putImageData(l,0,0),a.save();var u=[1,0,0,1,0,0];this._concat(u,[1/n,0,0,-1/r,0,1]),this._concat(u,e.ctm),a.transform(u[0],u[1],u[2],u[3],u[4],u[5]),a.drawImage(s,0,0),a.restore()}}},n.ToContext2D.prototype.ShowPage=function(){this.currPage++},n.ToContext2D.prototype.Done=function(){},n.ToContext2D.prototype._setStyle=function(e,t){var n=this._scale(e.ctm);t.fillStyle=this._getFill(e.colr,e.ca,t),t.strokeStyle=this._getFill(e.COLR,e.CA,t),t.lineCap=["butt","round","square"][e.lcap],t.lineJoin=["miter","round","bevel"][e.ljoin],t.lineWidth=e.lwidth*n;for(var i=e.dash.slice(0),a=0;a<i.length;a++)i[a]=r(i[a]*n);t.setLineDash(i),t.miterLimit=e.mlimit*n;var o=e.font.Tf,s=o.toLowerCase(),c=-1!=s.indexOf("bold")?"bold ":"",l=-1!=s.indexOf("italic")||-1!=s.indexOf("oblique")?"italic ":"";t.font=c+l+e.font.Tfs+'px "'+o+'"'},n.ToContext2D.prototype._getFill=function(e,t,n){if(null==e.typ)return this._colr(e,t);var r,i=e,a=i.crds,o=i.mat,s=this._scale(o);if("lin"==i.typ){var c=this._multPoint(o,a.slice(0,2)),l=this._multPoint(o,a.slice(2));r=n.createLinearGradient(c[0],c[1],l[0],l[1])}else"rad"==i.typ&&(c=this._multPoint(o,a.slice(0,2)),l=this._multPoint(o,a.slice(3)),r=n.createRadialGradient(c[0],c[1],a[2]*s,l[0],l[1],a[5]*s));for(var u=0;u<i.grad.length;u++)r.addColorStop(i.grad[u][0],this._colr(i.grad[u][1],t));return r},n.ToContext2D.prototype._colr=function(e,t){return"rgba("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+","+t+")"},n.ToContext2D.prototype._scale=function(e){return Math.sqrt(Math.abs(e[0]*e[3]-e[1]*e[2]))},n.ToContext2D.prototype._concat=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5];e[0]=n*t[0]+r*t[2],e[1]=n*t[1]+r*t[3],e[2]=i*t[0]+a*t[2],e[3]=i*t[1]+a*t[3],e[4]=o*t[0]+s*t[2]+t[4],e[5]=o*t[1]+s*t[3]+t[5]},n.ToContext2D.prototype._multPoint=function(e,t){var n=t[0],r=t[1];return[n*e[0]+r*e[2]+e[4],n*e[1]+r*e[3]+e[5]]},n.ToContext2D.prototype._draw=function(e,t){for(var n=0,r=e.crds,i=0;i<e.cmds.length;i++){var a=e.cmds[i];"M"==a?(t.moveTo(r[n],r[n+1]),n+=2):"L"==a?(t.lineTo(r[n],r[n+1]),n+=2):"C"==a?(t.bezierCurveTo(r[n],r[n+1],r[n+2],r[n+3],r[n+4],r[n+5]),n+=6):"Q"==a?(t.quadraticCurveTo(r[n],r[n+1],r[n+2],r[n+3]),n+=4):"Z"==a&&t.closePath()}}},{}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getBinaryContent=n.isContainMultiType=n.isKoera=n.isJapanese=n.isChinese=n.fromulaRef=n.escapeCharacter=n.generateRandomIndex=n.LightenDarkenColor=n.getRowHeightPixel=n.getColumnWidthPixel=n.getXmlAttibute=n.getPxByEMUs=n.getptToPxRatioByDPI=n.getcellrange=n.getRangetxt=void 0;var r=e("./constant");function i(e,t){var n=e.row[0],r=e.row[1],i=e.column[0],a=e.column[1];return null==n&&null==r?t+s(i)+":"+s(a):null==i&&null==a?t+(n+1)+":"+(r+1):i==a&&n==r?t+s(i)+(n+1):t+s(i)+(n+1)+":"+s(a)+(r+1)}function a(e,t,n){void 0===t&&(t={}),void 0===n&&(n="1");var r=e.split("!"),i="",a="",s=-1;if(r.length>1){i=r[0],a=r[1];var c=t[i];s=null==c?parseInt(n):parseInt(c)}else s=parseInt(n),a=r[0];if(-1==a.indexOf(":")){var l=parseInt(a.replace(/[^0-9]/g,""))-1,u=o(a.replace(/[^A-Za-z]/g,""));return isNaN(l)||isNaN(u)?null:{row:[l,l],column:[u,u],sheetIndex:s}}var h=a.split(":");// if (isNaN(row[0])) {
//     row[0] = 0;
// }
// if (isNaN(row[1])) {
//     row[1] = sheetdata.length - 1;
// }
return u=[],(l=[])[0]=parseInt(h[0].replace(/[^0-9]/g,""))-1,l[1]=parseInt(h[1].replace(/[^0-9]/g,""))-1,l[0]>l[1]?null:(u[0]=o(h[0].replace(/[^A-Za-z]/g,"")),u[1]=o(h[1].replace(/[^A-Za-z]/g,"")),// if (isNaN(col[0])) {
//     col[0] = 0;
// }
// if (isNaN(col[1])) {
//     col[1] = sheetdata[0].length - 1;
// }
u[0]>u[1]?null:{row:l,column:u,sheetIndex:s})}//列下标  字母转数字
function o(e){var t=(e=e.toUpperCase()).length;if(0==t)return NaN;for(var n=e.split(""),i=r.columeHeader_word.length,a=0,o=t-1;o>=0;o--)a+=o==t-1?r.columeHeader_word_index[n[o]]:Math.pow(i,t-o-1)*(r.columeHeader_word_index[n[o]]+1);return a}//列下标  数字转字母
function s(e){var t=r.columeHeader_word.length;if(e<t)return r.columeHeader_word[e];for(var n=0,i="",a=1,o=0;e>=t/(t-1)*(Math.pow(t,a++)-1);)o=a;//970
n=e-t/(t-1)*(Math.pow(t,o-1)-1)+1;for(var s=o;s>0;s--){var c=n;//-702=268, 3
if(1==s)return 0==(c%=t)&&(c=26),i+r.columeHeader_word[c-1];c=Math.ceil(c/Math.pow(t,s-1)),//last1 = last1 % wordlen;
i+=r.columeHeader_word[c-1],s>1&&(n-=(c-1)*t)}}
/**
 * @return ratio, default 0.75 1in = 2.54cm = 25.4mm = 72pt = 6pc,  pt = 1/72 In, px = 1/dpi In
*/function c(){return.75}
/**
 * @emus EMUs, Excel drawing unit
 * @return pixel
*/
function l(e){return null==e?0:e/914400*72/c()}
/**
 * @dom xml attribute object
 * @attr attribute name
 * @d if attribute is null, return default value
 * @return attribute value
*/
function u(e,t,n){var r=e[t];return r=null==r?n:r}
/**
 * @columnWidth Excel column width
 * @return pixel column width
*/
function h(e){return Math.round(8*(e-.83)+5)}
/**
 * @rowHeight Excel row height
 * @return pixel row height
*/
function f(e){return Math.round(e/c())}function d(e,t){var n=e.substring(e.length-6,e.length),r=g("#"+n),i=v(r[0],r[1],r[2]);if(t>0)i[2]=i[2]*(1-t)+t;else{if(!(t<0))return"#"+n;i[2]=i[2]*(1+t)}return p("RGB("+m(i[0],i[1],i[2]).join(",")+")")}function p(e){
//十六进制颜色值的正则表达式
var t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;// 如果是rgb颜色表示
if(/^(rgb|RGB)/.test(e)){for(var n=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),r="#",i=0;i<n.length;i++){var a=Number(n[i]).toString(16);a.length<2&&(a="0"+a),r+=a}return 7!==r.length&&(r=e),r}if(t.test(e)){var o=e.replace(/#/,"").split("");if(6===o.length)return e;if(3===o.length){var s="#";for(i=0;i<o.length;i+=1)s+=o[i]+o[i];return s}}return e}function g(e){var t=e.toLowerCase();//十六进制颜色值的正则表达式
// 如果是16进制颜色
if(t&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)){if(4===t.length){for(var n="#",r=1;r<4;r+=1)n+=t.slice(r,r+1).concat(t.slice(r,r+1));t=n}//处理六位的颜色值
var i=[];for(r=1;r<7;r+=2)i.push(parseInt("0x"+t.slice(r,r+2)));return i}return null}
/**
 * HSL颜色值转换为RGB.
 * 换算公式改编自 http://en.wikipedia.org/wiki/HSL_color_space.
 * h, s, 和 l 设定在 [0, 1] 之间
 * 返回的 r, g, 和 b 在 [0, 255]之间
 *
 * @param   Number  h       色相
 * @param   Number  s       饱和度
 * @param   Number  l       亮度
 * @return  Array           RGB色值数值
 */function m(e,t,n){var r,i,a;if(0==t)r=i=a=n;// achromatic
else{var o=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return[Math.round(255*r),Math.round(255*i),Math.round(255*a)]}
/**
 * RGB 颜色值转换为 HSL.
 * 转换公式参考自 http://en.wikipedia.org/wiki/HSL_color_space.
 * r, g, 和 b 需要在 [0, 255] 范围内
 * 返回的 h, s, 和 l 在 [0, 1] 之间
 *
 * @param   Number  r       红色色值
 * @param   Number  g       绿色色值
 * @param   Number  b       蓝色色值
 * @return  Array           HSL各值数组
 */function v(e,t,n){e/=255,t/=255,n/=255;var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=(a+o)/2;if(a==o)r=i=0;// achromatic
else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return[r,i,s]}function y(e){null==e&&(e="Sheet");for(var t=window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g,"").split(""),n="",r=0;r<5;r++)n+=t[Math.round(Math.random()*(t.length-1))];return e+"_"+n+"_"+(new Date).getTime()}function A(e){return null==e||0==e.length?e:e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&apos;/g,"'").replace(/&iexcl;/g,"¡").replace(/&cent;/g,"¢").replace(/&pound;/g,"£").replace(/&curren;/g,"¤").replace(/&yen;/g,"¥").replace(/&brvbar;/g,"¦").replace(/&sect;/g,"§").replace(/&uml;/g,"¨").replace(/&copy;/g,"©").replace(/&ordf;/g,"ª").replace(/&laquo;/g,"«").replace(/&not;/g,"¬").replace(/&shy;/g,"­").replace(/&reg;/g,"®").replace(/&macr;/g,"¯").replace(/&deg;/g,"°").replace(/&plusmn;/g,"±").replace(/&sup2;/g,"²").replace(/&sup3;/g,"³").replace(/&acute;/g,"´").replace(/&micro;/g,"µ").replace(/&para;/g,"¶").replace(/&middot;/g,"·").replace(/&cedil;/g,"¸").replace(/&sup1;/g,"¹").replace(/&ordm;/g,"º").replace(/&raquo;/g,"»").replace(/&frac14;/g,"¼").replace(/&frac12;/g,"½").replace(/&frac34;/g,"¾").replace(/&iquest;/g,"¿").replace(/&times;/g,"×").replace(/&divide;/g,"÷").replace(/&Agrave;/g,"À").replace(/&Aacute;/g,"Á").replace(/&Acirc;/g,"Â").replace(/&Atilde;/g,"Ã").replace(/&Auml;/g,"Ä").replace(/&Aring;/g,"Å").replace(/&AElig;/g,"Æ").replace(/&Ccedil;/g,"Ç").replace(/&Egrave;/g,"È").replace(/&Eacute;/g,"É").replace(/&Ecirc;/g,"Ê").replace(/&Euml;/g,"Ë").replace(/&Igrave;/g,"Ì").replace(/&Iacute;/g,"Í").replace(/&Icirc;/g,"Î").replace(/&Iuml;/g,"Ï").replace(/&ETH;/g,"Ð").replace(/&Ntilde;/g,"Ñ").replace(/&Ograve;/g,"Ò").replace(/&Oacute;/g,"Ó").replace(/&Ocirc;/g,"Ô").replace(/&Otilde;/g,"Õ").replace(/&Ouml;/g,"Ö").replace(/&Oslash;/g,"Ø").replace(/&Ugrave;/g,"Ù").replace(/&Uacute;/g,"Ú").replace(/&Ucirc;/g,"Û").replace(/&Uuml;/g,"Ü").replace(/&Yacute;/g,"Ý").replace(/&THORN;/g,"Þ").replace(/&szlig;/g,"ß").replace(/&agrave;/g,"à").replace(/&aacute;/g,"á").replace(/&acirc;/g,"â").replace(/&atilde;/g,"ã").replace(/&auml;/g,"ä").replace(/&aring;/g,"å").replace(/&aelig;/g,"æ").replace(/&ccedil;/g,"ç").replace(/&egrave;/g,"è").replace(/&eacute;/g,"é").replace(/&ecirc;/g,"ê").replace(/&euml;/g,"ë").replace(/&igrave;/g,"ì").replace(/&iacute;/g,"í").replace(/&icirc;/g,"î").replace(/&iuml;/g,"ï").replace(/&eth;/g,"ð").replace(/&ntilde;/g,"ñ").replace(/&ograve;/g,"ò").replace(/&oacute;/g,"ó").replace(/&ocirc;/g,"ô").replace(/&otilde;/g,"õ").replace(/&ouml;/g,"ö").replace(/&oslash;/g,"ø").replace(/&ugrave;/g,"ù").replace(/&uacute;/g,"ú").replace(/&ucirc;/g,"û").replace(/&uuml;/g,"ü").replace(/&yacute;/g,"ý").replace(/&thorn;/g,"þ").replace(/&yuml;/g,"ÿ")}n.getRangetxt=i,n.getcellrange=a,n.getptToPxRatioByDPI=c,n.getPxByEMUs=l,n.getXmlAttibute=u,n.getColumnWidthPixel=h,n.getRowHeightPixel=f,n.LightenDarkenColor=d,n.generateRandomIndex=y,n.escapeCharacter=A;var b=
/** @class */
function(){function e(){}return e.trim=function(e){return null==e&&(e=""),e.replace(/(^\s*)|(\s*$)/g,"")},e.functionCopy=function(e,t,n){var r=this;if(null==r.operatorjson){for(var i=r.operator.split("|"),a={},o=0;o<i.length;o++)a[i[o].toString()]=1;r.operatorjson=a}null==t&&(t="down"),null==n&&(n=1),"="==e.substr(0,1)&&(e=e.substr(1));for(var s=e.split(""),c=0,l="",u="",h={bracket:0,comma:0,squote:0,dquote:0};c<s.length;){var f=s[c];if("("==f&&0==h.dquote)h.bracket+=1,l.length>0?u+=l+"(":u+="(",l="";else if(")"==f&&0==h.dquote)h.bracket-=1,u+=r.functionCopy(l,t,n)+")",l="";else if('"'==f&&0==h.squote)h.dquote>0?(u+=l+'"',h.dquote-=1,l=""):(h.dquote+=1,l+='"');else if(","==f&&0==h.dquote)u+=r.functionCopy(l,t,n)+",",l="";else if("&"==f&&0==h.dquote)l.length>0?(u+=r.functionCopy(l,t,n)+"&",l=""):u+="&";else if(f in r.operatorjson&&0==h.dquote){var d="";c+1<s.length&&(d=s[c+1]);var p=c-1,g=null;if(p>=0)do{g=s[p--]}while(p>=0&&" "==g);f+d in r.operatorjson?(l.length>0?(u+=r.functionCopy(l,t,n)+f+d,l=""):u+=f+d,c++):/[^0-9]/.test(d)||"-"!=f||"("!=g&&null!=g&&","!=g&&" "!=g&&!(g in r.operatorjson)?l.length>0?(u+=r.functionCopy(l,t,n)+f,l=""):u+=f:l+=f}else l+=f;c==s.length-1&&(r.iscelldata(r.trim(l))?"down"==t?u+=r.downparam(r.trim(l),n):"up"==t?u+=r.upparam(r.trim(l),n):"left"==t?u+=r.leftparam(r.trim(l),n):"right"==t&&(u+=r.rightparam(r.trim(l),n)):u+=r.trim(l)),c++}return u},e.downparam=function(e,t){return this.updateparam("d",e,t)},e.upparam=function(e,t){return this.updateparam("u",e,t)},e.leftparam=function(e,t){return this.updateparam("l",e,t)},e.rightparam=function(e,t){return this.updateparam("r",e,t)},e.updateparam=function(e,t,n){var r,i=this,a=t.split("!"),c="";if(a.length>1?(r=a[1],c=a[0]+"!"):r=a[0],-1==r.indexOf(":")){var l=parseInt(r.replace(/[^0-9]/g,"")),u=o(r.replace(/[^A-Za-z]/g,"")),h=i.isfreezonFuc(r),f=h[0]?"$":"",d=h[1]?"$":"";return"u"!=e||h[0]?"r"!=e||h[1]?"l"!=e||h[1]?h[0]||(l+=n):u-=n:u+=n:l-=n,l<0||u<0?i.error.r:isNaN(l)||isNaN(u)?isNaN(l)?isNaN(u)?t:c+d+s(u):c+f+l:c+d+s(u)+f+l}if(r=r.split(":"),u=[],(l=[])[0]=parseInt(r[0].replace(/[^0-9]/g,"")),l[1]=parseInt(r[1].replace(/[^0-9]/g,"")),l[0]>l[1])return t;if(u[0]=o(r[0].replace(/[^A-Za-z]/g,"")),u[1]=o(r[1].replace(/[^A-Za-z]/g,"")),u[0]>u[1])return t;var p=i.isfreezonFuc(r[0]),g=i.isfreezonFuc(r[1]),m=p[0]?"$":"",v=p[1]?"$":"",y=g[0]?"$":"",A=g[1]?"$":"";return"u"==e?(p[0]||(l[0]-=n),g[0]||(l[1]-=n)):"r"==e?(p[1]||(u[0]+=n),g[1]||(u[1]+=n)):"l"==e?(p[1]||(u[0]-=n),g[1]||(u[1]-=n)):(p[0]||(l[0]+=n),g[0]||(l[1]+=n)),l[0]<0||u[0]<0?i.error.r:isNaN(u[0])&&isNaN(u[1])?c+m+l[0]+":"+y+l[1]:isNaN(l[0])&&isNaN(l[1])?c+v+s(u[0])+":"+A+s(u[1]):c+v+s(u[0])+m+l[0]+":"+A+s(u[1])+y+l[1]},e.iscelldata=function(e){var t,n=e.split("!"),r=/^(([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+))$/g,i=/^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+))))$/g;//增加正则判断单元格为字母+数字或字母的格式：如 A1:B3，A:A
if(-1==(t=n.length>1?n[1]:n[0]).indexOf(":")){var a=parseInt(t.replace(/[^0-9]/g,""))-1,s=o(t.replace(/[^A-Za-z]/g,""));return!(isNaN(a)||isNaN(s)||!t.toString().match(r))||!!isNaN(a)&&(isNaN(s),!1)}return i=/^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+)))|((([0-9]+)|([$][0-9]+s))))$/g,t=t.split(":"),s=[],(a=[])[0]=parseInt(t[0].replace(/[^0-9]/g,""))-1,a[1]=parseInt(t[1].replace(/[^0-9]/g,""))-1,!(a[0]>a[1]||(s[0]=o(t[0].replace(/[^A-Za-z]/g,"")),s[1]=o(t[1].replace(/[^A-Za-z]/g,"")),s[0]>s[1]||!t[0].toString().match(i)||!t[1].toString().match(i)))},e.isfreezonFuc=function(e){var t=e.replace(/[^0-9]/g,""),n=e.replace(/[^A-Za-z]/g,""),r=e.substr(e.indexOf(t)-1,1),i=e.substr(e.indexOf(n)-1,1),a=[!1,!1];return"$"==r&&(a[0]=!0),"$"==i&&(a[1]=!0),a},e.operator="==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^",e.error={v:"#VALUE!",n:"#NAME?",na:"#N/A",r:"#REF!",d:"#DIV/0!",nm:"#NUM!",nl:"#NULL!",sp:"#SPILL!"},e.operatorjson=null,e}();function w(e){var t=/[^\u4e00-\u9fa5]/;return!!/[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/.test(e)||!t.test(e)}function x(e){return!/[^\u0800-\u4e00]/.test(e)}function C(e){return e>12592&&e<12687||e>=44032&&e<=55203}function _(e){var t=!1;escape(e).indexOf("%u")>-1&&(t=!0);var n=!1;return/[0-9a-z]/gi.test(e)&&(n=!0),/[\x00-\xff]+/g.test(e)&&(n=!0),!(!t||!n)}function I(e,t){var n,r,i,a;t||(t={});// taken from jQuery
var o=function(){try{return new window.XMLHttpRequest}catch(e){}},s=function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}},c="undefined"!=typeof window&&window.ActiveXObject?
/* Microsoft failed to properly
  * implement the XMLHttpRequest in IE7 (can't request local files),
  * so we use the ActiveXObject when it is available
  * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
  * we need a fallback.
  */
function(){return o()||s()}:// For all other browsers, use the standard XMLHttpRequest object
o;// backward compatible callback
"function"==typeof t?(a=t,t={}):"function"==typeof t.callback&&(
// callback inside options object
a=t.callback),r=function(e){a(null,e)},i=function(e){a(e,null)};try{var l=c();l.open("GET",e,!0),// recent browsers
"responseType"in l&&(l.responseType="arraybuffer"),// older browser
l.overrideMimeType&&l.overrideMimeType("text/plain; charset=x-user-defined"),l.onreadystatechange=function(t){
// use `xhr` and not `this`... thanks IE
if(4===l.readyState)if(200===l.status||0===l.status)try{r(function(e){
// for xhr.responseText, the 0xFF mask is applied by JSZip
return e.response||e.responseText}(l))}catch(e){i(new Error(e))}else i(new Error("Ajax error for "+e+" : "+this.status+" "+this.statusText))},t.progress&&(l.onprogress=function(n){t.progress({path:e,originalEvent:n,percent:n.loaded/n.total*100,loaded:n.loaded,total:n.total})}),l.send()}catch(e){i(new Error(e),null)}// returns a promise or undefined depending on whether a callback was
// provided
return n}n.fromulaRef=b,n.isChinese=w,n.isJapanese=x,n.isKoera=C,n.isContainMultiType=_,n.getBinaryContent=I},{"./constant":91}],94:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LuckyExcel=void 0;var r=e("./ToLuckySheet/LuckyFile"),i=e("./HandleZip"),a=
/** @class */
function(){function e(){}return e.transformExcelToLucky=function(e,t){new i.HandleZip(e).unzipFile((function(n){var i=new r.LuckyFile(n,e.name).Parse(),a=JSON.parse(i);null!=t&&t(a,i)}),(function(e){}))},e.transformExcelToLuckyByUrl=function(e,t,n){(new i.HandleZip).unzipFileByUrl(e,(function(e){var i=new r.LuckyFile(e,t).Parse(),a=JSON.parse(i);null!=n&&n(a,i)}),(function(e){}))},e.transformLuckyToExcel=function(e,t){},e}();// import {SecurityDoor,Car} from './content';
n.LuckyExcel=a},{"./HandleZip":84,"./ToLuckySheet/LuckyFile":87}],95:[function(e,t,n){"use strict";var r=e("./main");t.exports=r.LuckyExcel},{"./main":94}]},{},[95])(95)}).call(this,n("c8ba"))
/***/},
/***/f842:
/***/function(e,t,n){"use strict";
/* harmony import */var r=n("db72"),i=n("b84d");
/* harmony import */
/* harmony default export */t.a=
/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),o?Object(i.a)(n,l,u):Object(r.a)(n,l,u)}return n}},
/***/f876:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"d",(function(){return s})),
/* harmony export (binding) */n.d(t,"c",(function(){return c})),
/* harmony export (binding) */n.d(t,"b",(function(){return l})),
/* harmony export (binding) */n.d(t,"a",(function(){return u})),
/* harmony export (binding) */n.d(t,"e",(function(){return h})),
/* unused harmony export defaultLeveledFormatter */
/* harmony export (binding) */n.d(t,"i",(function(){return p})),
/* unused harmony export primaryTimeUnits */
/* harmony export (binding) */n.d(t,"B",(function(){return m})),
/* harmony export (binding) */n.d(t,"y",(function(){return v})),
/* harmony export (binding) */n.d(t,"m",(function(){return y})),
/* harmony export (binding) */n.d(t,"q",(function(){return A})),
/* harmony export (binding) */n.d(t,"l",(function(){return b})),
/* harmony export (binding) */n.d(t,"h",(function(){return w})),
/* harmony export (binding) */n.d(t,"r",(function(){return x})),
/* unused harmony export getUnitFromValue */
/* harmony export (binding) */n.d(t,"n",(function(){return _})),
/* harmony export (binding) */n.d(t,"j",(function(){return I})),
/* harmony export (binding) */n.d(t,"w",(function(){return E})),
/* harmony export (binding) */n.d(t,"f",(function(){return k})),
/* harmony export (binding) */n.d(t,"o",(function(){return S})),
/* harmony export (binding) */n.d(t,"u",(function(){return B})),
/* harmony export (binding) */n.d(t,"z",(function(){return M})),
/* harmony export (binding) */n.d(t,"s",(function(){return T})),
/* harmony export (binding) */n.d(t,"k",(function(){return O})),
/* harmony export (binding) */n.d(t,"x",(function(){return D})),
/* harmony export (binding) */n.d(t,"g",(function(){return P})),
/* harmony export (binding) */n.d(t,"p",(function(){return L})),
/* harmony export (binding) */n.d(t,"v",(function(){return Q})),
/* harmony export (binding) */n.d(t,"A",(function(){return R})),
/* harmony export (binding) */n.d(t,"t",(function(){return j}));
/* harmony import */var r=n("6d8b"),i=n("3842"),a=n("ef59"),o=n("4319"),s=1e3,c=60*s,l=60*c,u=24*l,h=365*u,f={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},d="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:d,hour:d+" "+f.hour,minute:d+" "+f.minute,second:d+" "+f.second,millisecond:f.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];
/* harmony import */function v(e,t){return"0000".substr(0,t-(e+="").length)+e}function y(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:
// year, minutes, second, milliseconds
return e}}function A(e){return e===y(e)}function b(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:
// Also for day, hour, minute, second
return"second"}}function w(
// Note: The result based on `isUTC` are totally different, which can not be just simply
// substituted by the result without `isUTC`. So we make the param `isUTC` mandatory.
e,t,n,r){var s=i.p(e),c=s[I(n)](),l=s[E(n)]()+1,u=Math.floor((l-1)/3)+1,h=s[k(n)](),f=s["get"+(n?"UTC":"")+"Day"](),d=s[S(n)](),p=(d-1)%12+1,g=s[B(n)](),m=s[M(n)](),y=s[T(n)](),A=d>=12?"pm":"am",b=A.toUpperCase(),w=(r instanceof o.a?r:Object(a.d)(r||a.a)||Object(a.c)()).getModel("time"),x=w.get("month"),C=w.get("monthAbbr"),_=w.get("dayOfWeek"),O=w.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,A+"").replace(/{A}/g,b+"").replace(/{yyyy}/g,c+"").replace(/{yy}/g,v(c%100+"",2)).replace(/{Q}/g,u+"").replace(/{MMMM}/g,x[l-1]).replace(/{MMM}/g,C[l-1]).replace(/{MM}/g,v(l,2)).replace(/{M}/g,l+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,_[f]).replace(/{ee}/g,O[f]).replace(/{e}/g,f+"").replace(/{HH}/g,v(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function x(e,t,n,i,a){var o=null;if(r.isString(n))
// Single formatter for all units at all levels
o=n;else if(r.isFunction(n))
// Callback formatter
o=n(e.value,t,{level:e.level});else{var s=r.extend({},f);if(e.level>0)for(var c=0;c<g.length;++c)s[g[c]]="{primary|"+s[g[c]]+"}";var l=n?!1===n.inherit?n:r.defaults(n,s):s,u=C(e.value,a);if(l[u])o=l[u];else if(l.inherit){for(c=m.indexOf(u)-1;c>=0;--c)if(l[u]){o=l[u];break}o=o||s.none}if(r.isArray(o)){var h=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[h=Math.min(h,o.length-1)]}}return w(new Date(e.value),o,a,i)}function C(e,t){var n=i.p(e),r=n[E(t)]()+1,a=n[k(t)](),o=n[S(t)](),s=n[B(t)](),c=n[M(t)](),l=0===n[T(t)](),u=l&&0===c,h=u&&0===s,f=h&&0===o,d=f&&1===a;return d&&1===r?"year":d?"month":f?"day":h?"hour":u?"minute":l?"second":"millisecond"}function _(e,t,n){var a=r.isNumber(e)?i.p(e):e;switch(t=t||C(e,n)){case"year":return a[I(n)]();case"half-year":return a[E(n)]()>=6?1:0;case"quarter":return Math.floor((a[E(n)]()+1)/4);case"month":return a[E(n)]();case"day":return a[k(n)]();case"half-day":return a[S(n)]()/24;case"hour":return a[S(n)]();case"minute":return a[B(n)]();case"second":return a[M(n)]();case"millisecond":return a[T(n)]()}}function I(e){return e?"getUTCFullYear":"getFullYear"}function E(e){return e?"getUTCMonth":"getMonth"}function k(e){return e?"getUTCDate":"getDate"}function S(e){return e?"getUTCHours":"getHours"}function B(e){return e?"getUTCMinutes":"getMinutes"}function M(e){return e?"getUTCSeconds":"getSeconds"}function T(e){return e?"getUTCMilliseconds":"getMilliseconds"}function O(e){return e?"setUTCFullYear":"setFullYear"}function D(e){return e?"setUTCMonth":"setMonth"}function P(e){return e?"setUTCDate":"setDate"}function L(e){return e?"setUTCHours":"setHours"}function Q(e){return e?"setUTCMinutes":"setMinutes"}function R(e){return e?"setUTCSeconds":"setSeconds"}function j(e){return e?"setUTCMilliseconds":"setMilliseconds"}
/***/},
/***/f893:
/***/function(e,t,n){e.exports={default:n("8119"),__esModule:!0};
/***/},
/***/f8af:
/***/function(e,t,n){var r=n("2474");
/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},
/***/f8d5:
/***/function(e,t,n){"use strict";
/* harmony default export */t.a={today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}},
/***/f909:
/***/function(e,t,n){var r=n("7e64"),i=n("b760e"),a=n("72af"),o=n("4f50"),s=n("1a8c"),c=n("9934"),l=n("8adb");
/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */e.exports=function e(t,n,u,h,f){t!==n&&a(n,(function(a,c){if(f||(f=new r),s(a))o(t,n,c,u,e,h,f);else{var d=h?h(l(t,c),a,c+"",t,n,f):void 0;void 0===d&&(d=a),i(t,c,d)}}),c)}},
/***/f933:
/***/function(e,t,n){"use strict";
// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/defineProperty.js
var r=n("6042"),i=n.n(r),a=n("41b2"),o=n.n(a),s=n("7b05"),c=n("8e8e"),l=n.n(c),u=n("4d91"),h=n("8496"),f={adjustX:1,adjustY:1},d=[0,0],p={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:d},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:d},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:d},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:d},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:d},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:d},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:d},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:d},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:d},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:d},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:d},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:d}},g={props:{prefixCls:u.a.string,overlay:u.a.any,trigger:u.a.any},updated:function(){var e=this.trigger;e&&e.forcePopupAlign()},render:function(){var e=arguments[0],t=this.overlay;return e("div",{class:this.prefixCls+"-inner",attrs:{role:"tooltip"}},["function"==typeof t?t():t])}},m=n("daa3");
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tooltip/Tooltip.js
function v(){}
/* harmony default export */var y={props:{trigger:u.a.any.def(["hover"]),defaultVisible:u.a.bool,visible:u.a.bool,placement:u.a.string.def("right"),transitionName:u.a.oneOfType([u.a.string,u.a.object]),animation:u.a.any,afterVisibleChange:u.a.func.def((function(){})),overlay:u.a.any,overlayStyle:u.a.object,overlayClassName:u.a.string,prefixCls:u.a.string.def("rc-tooltip"),mouseEnterDelay:u.a.number.def(0),mouseLeaveDelay:u.a.number.def(.1),getTooltipContainer:u.a.func,destroyTooltipOnHide:u.a.bool.def(!1),align:u.a.object.def((function(){return{}})),arrowContent:u.a.any.def(null),tipId:u.a.string,builtinPlacements:u.a.object},methods:{getPopupElement:function(){var e=this.$createElement,t=this.$props,n=t.prefixCls,r=t.tipId;return[e("div",{class:n+"-arrow",key:"arrow"},[Object(m.g)(this,"arrowContent")]),e(g,{key:"content",attrs:{trigger:this.$refs.trigger,prefixCls:n,id:r,overlay:Object(m.g)(this,"overlay")}})]},getPopupDomNode:function(){return this.$refs.trigger.getPopupDomNode()}},render:function(e){var t=Object(m.l)(this),n=t.overlayClassName,r=t.trigger,i=t.mouseEnterDelay,a=t.mouseLeaveDelay,s=t.overlayStyle,c=t.prefixCls,u=t.afterVisibleChange,f=t.transitionName,d=t.animation,g=t.placement,y=t.align,A=t.destroyTooltipOnHide,b=t.defaultVisible,w=t.getTooltipContainer,x=l()(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=o()({},x);Object(m.s)(this,"visible")&&(C.popupVisible=this.$props.visible);var _=Object(m.k)(this),I={props:o()({popupClassName:n,prefixCls:c,action:r,builtinPlacements:p,popupPlacement:g,popupAlign:y,getPopupContainer:w,afterPopupVisibleChange:u,popupTransitionName:f,popupAnimation:d,defaultPopupVisible:b,destroyPopupOnHide:A,mouseLeaveDelay:a,popupStyle:s,mouseEnterDelay:i},C),on:o()({},_,{popupVisibleChange:_.visibleChange||v,popupAlign:_.popupAlign||v}),ref:"trigger"};return e(h.a,I,[e("template",{slot:"popup"},[this.getPopupElement(e)]),this.$slots.default])}},A={adjustX:1,adjustY:1},b={adjustX:0,adjustY:0},w=[0,0];
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/vc-tooltip/index.js
// based on rc-tooltip 3.7.3
/* harmony default export */function x(e){return"boolean"==typeof e?e?A:b:o()({},b,e)}
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/config-provider/index.js + 1 modules
var C=n("4df5"),_=n("f54f"),I=Object(_.a)(),E={name:"ATooltip",model:{prop:"visible",event:"visibleChange"},props:o()({},I,{title:u.a.any}),inject:{configProvider:{default:function(){return C.a}}},data:function(){return{sVisible:!!this.$props.visible||!!this.$props.defaultVisible}},watch:{visible:function(e){this.sVisible=e}},methods:{onVisibleChange:function(e){Object(m.s)(this,"visible")||(this.sVisible=!this.isNoTitle()&&e),this.isNoTitle()||this.$emit("visibleChange",e)},getPopupDomNode:function(){return this.$refs.tooltip.getPopupDomNode()},getPlacements:function(){var e=this.$props,t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||function(e){var t=e.arrowWidth,n=void 0===t?5:t,r=e.horizontalArrowShift,i=void 0===r?16:r,a=e.verticalArrowShift,s=void 0===a?12:a,c=e.autoAdjustOverflow,l=void 0===c||c,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(s+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(s+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,s+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,s+n]}};return Object.keys(u).forEach((function(t){u[t]=e.arrowPointAtCenter?o()({},u[t],{overflow:x(l),targetOffset:w}):o()({},p[t],{overflow:x(l)}),u[t].ignoreShake=!0})),u}({arrowPointAtCenter:n,verticalArrowShift:8,autoAdjustOverflow:r})},
// Fix Tooltip won't hide at disabled button
// mouse events don't trigger at disabled button in Chrome
// https://github.com/react-component/tooltip/issues/18
getDisabledCompatibleChildren:function(e){var t=this.$createElement,n=e.componentOptions&&e.componentOptions.Ctor.options||{};if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX)&&(e.componentOptions.propsData.disabled||""===e.componentOptions.propsData.disabled)||"button"===e.tag&&e.data&&e.data.attrs&&void 0!==e.data.attrs.disabled){
// Pick some layout related style properties up to span
// Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
var r=function(e,t){var n={},r=o()({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(Object(m.q)(e),["position","left","right","top","bottom","float","display","zIndex"]),i=r.picked,a=r.omitted,c=o()({display:"inline-block"},i,{cursor:"not-allowed",width:e.componentOptions.propsData.block?"100%":null}),l=o()({},a,{pointerEvents:"none"});return t("span",{style:c,class:Object(m.f)(e)},[Object(s.a)(e,{style:l,class:null})])}return e},isNoTitle:function(){var e=Object(m.g)(this,"title");return!e&&0!==e},getOverlay:function(){var e=Object(m.g)(this,"title");return 0===e?e:e||""},
// 动态设置动画点
onPopupAlign:function(e,t){var n=this.getPlacements(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];
// 当前返回的位置
if(r){
// 根据当前坐标设置动画点
var i=e.getBoundingClientRect(),a={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?a.top=i.height-t.offset[1]+"px":(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(a.top=-t.offset[1]+"px"),r.indexOf("left")>=0||r.indexOf("Right")>=0?a.left=i.width-t.offset[0]+"px":(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(a.left=-t.offset[0]+"px"),e.style.transformOrigin=a.left+" "+a.top}}},render:function(){var e=arguments[0],t=this.$props,n=this.$data,r=this.$slots,a=t.prefixCls,c=t.openClassName,l=t.getPopupContainer,u=this.configProvider.getPopupContainer,h=(0,this.configProvider.getPrefixCls)("tooltip",a),f=(r.default||[]).filter((function(e){return e.tag||""!==e.text.trim()}));f=1===f.length?f[0]:f;var d=n.sVisible;
// Hide tooltip when there is no title
if(!Object(m.s)(this,"visible")&&this.isNoTitle()&&(d=!1),!f)return null;var p=this.getDisabledCompatibleChildren(Object(m.w)(f)?f:e("span",[f])),g=i()({},c||h+"-open",!0),v={props:o()({},t,{prefixCls:h,getTooltipContainer:l||u,builtinPlacements:this.getPlacements(),overlay:this.getOverlay(),visible:d}),ref:"tooltip",on:o()({},Object(m.k)(this),{visibleChange:this.onVisibleChange,popupAlign:this.onPopupAlign})};return e(y,v,[d?Object(s.a)(p,{class:g}):p])}},k=n("db14");
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/tooltip/abstractTooltipProps.js
// CONCATENATED MODULE: ./node_modules/ant-design-vue/es/tooltip/index.js
/* istanbul ignore next */
E.install=function(e){e.use(k.a),e.component(E.name,E)};
/* harmony default export */t.a=E;
/***/},
/***/f934:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */n.d(t,"a",(function(){return c})),
/* unused harmony export HV_NAMES */
/* harmony export (binding) */n.d(t,"b",(function(){return h})),
/* unused harmony export vbox */
/* unused harmony export hbox */
/* harmony export (binding) */n.d(t,"e",(function(){return f})),
/* harmony export (binding) */n.d(t,"g",(function(){return d})),
/* harmony export (binding) */n.d(t,"i",(function(){return p})),
/* harmony export (binding) */n.d(t,"j",(function(){return g})),
/* harmony export (binding) */n.d(t,"d",(function(){return m})),
/* harmony export (binding) */n.d(t,"h",(function(){return v})),
/* harmony export (binding) */n.d(t,"f",(function(){return y})),
/* harmony export (binding) */n.d(t,"c",(function(){return A}));
/* harmony import */var r=n("6d8b"),i=n("9850"),a=n("3842"),o=n("eda2"),s=r.each,c=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];
/* harmony import */function u(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(c,l){var u,h,f=c.getBoundingRect(),d=t.childAt(l+1),p=d&&d.getBoundingRect();if("horizontal"===e){var g=f.width+(p?-p.x+f.x:0);
// Wrap when width exceeds maxWidth or meet a `newline` group
// FIXME compare before adding gap?
(u=a+g)>r||c.newline?(a=0,u=g,o+=s+n,s=f.height):
// FIXME: consider rect.y is not `0`?
s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);
// Wrap when width exceeds maxHeight or meet a `newline` group
(h=o+m)>i||c.newline?(a+=s+n,o=0,h=m,s=f.width):s=Math.max(s,f.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),"horizontal"===e?a=u+n:o=h+n)}))}
/**
 * VBox or HBox layouting
 * @param {string} orient
 * @param {module:zrender/graphic/Group} group
 * @param {number} gap
 * @param {number} [width=Infinity]
 * @param {number} [height=Infinity]
 */var h=u;
/**
 * VBox layouting
 * @param {module:zrender/graphic/Group} group
 * @param {number} gap
 * @param {number} [width=Infinity]
 * @param {number} [height=Infinity]
 */r.curry(u,"vertical"),r.curry(u,"horizontal");
/**
 * If x or x2 is not specified or 'center' 'left' 'right',
 * the width would be as long as possible.
 * If y or y2 is not specified or 'middle' 'top' 'bottom',
 * the height would be as long as possible.
 */
function f(e,t,n){var r=t.width,i=t.height,s=Object(a.q)(e.left,r),c=Object(a.q)(e.top,i),l=Object(a.q)(e.right,r),u=Object(a.q)(e.bottom,i);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(l)||isNaN(parseFloat(e.right)))&&(l=r),(isNaN(c)||isNaN(parseFloat(e.top)))&&(c=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=i),n=o.i(n||0),{width:Math.max(l-s-n[1]-n[3],0),height:Math.max(u-c-n[0]-n[2],0)}}
/**
 * Parse position info.
 */function d(e,t,n){n=o.i(n||0);var r=t.width,s=t.height,c=Object(a.q)(e.left,r),l=Object(a.q)(e.top,s),u=Object(a.q)(e.right,r),h=Object(a.q)(e.bottom,s),f=Object(a.q)(e.width,r),d=Object(a.q)(e.height,s),p=n[2]+n[0],g=n[1]+n[3],m=e.aspect;
// Align left and top
switch(
// If width is not specified, calculate width from left and right
isNaN(f)&&(f=r-u-g-c),isNaN(d)&&(d=s-h-p-l),null!=m&&(
// If width and height are not given
// 1. Graph should not exceeds the container
// 2. Aspect must be keeped
// 3. Graph should take the space as more as possible
// FIXME
// Margin is not considered, because there is no case that both
// using margin and aspect so far.
isNaN(f)&&isNaN(d)&&(m>r/s?f=.8*r:d=.8*s),
// Calculate width or height with given aspect
isNaN(f)&&(f=m*d),isNaN(d)&&(d=f/m)),
// If left is not specified, calculate left from right and width
isNaN(c)&&(c=r-u-f-g),isNaN(l)&&(l=s-h-d-p),e.left||e.right){case"center":c=r/2-f/2-n[3];break;case"right":c=r-f-g}switch(e.top||e.bottom){case"middle":case"center":l=s/2-d/2-n[0];break;case"bottom":l=s-d-p}
// If something is wrong and left, top, width, height are calculated as NaN
c=c||0,l=l||0,isNaN(f)&&(
// Width may be NaN if only one value is given except width
f=r-g-c-(u||0)),isNaN(d)&&(
// Height may be NaN if only one value is given except height
d=s-p-l-(h||0));var v=new i.a(c+n[3],l+n[0],f,d);return v.margin=n,v}
/**
 * Position a zr element in viewport
 *  Group position is specified by either
 *  {left, top}, {right, bottom}
 *  If all properties exists, right and bottom will be igonred.
 *
 * Logic:
 *     1. Scale (against origin point in parent coord)
 *     2. Rotate (against origin point in parent coord)
 *     3. Translate (with el.position by this method)
 * So this method only fixes the last step 'Translate', which does not affect
 * scaling and rotating.
 *
 * If be called repeatedly with the same input el, the same result will be gotten.
 *
 * Return true if the layout happened.
 *
 * @param el Should have `getBoundingRect` method.
 * @param positionInfo
 * @param positionInfo.left
 * @param positionInfo.top
 * @param positionInfo.right
 * @param positionInfo.bottom
 * @param positionInfo.width Only for opt.boundingModel: 'raw'
 * @param positionInfo.height Only for opt.boundingModel: 'raw'
 * @param containerRect
 * @param margin
 * @param opt
 * @param opt.hv Only horizontal or only vertical. Default to be [1, 1]
 * @param opt.boundingMode
 *        Specify how to calculate boundingRect when locating.
 *        'all': Position the boundingRect that is transformed and uioned
 *               both itself and its descendants.
 *               This mode simplies confine the elements in the bounding
 *               of their container (e.g., using 'right: 0').
 *        'raw': Position the boundingRect that is not transformed and only itself.
 *               This mode is useful when you want a element can overflow its
 *               container. (Consider a rotated circle needs to be located in a corner.)
 *               In this mode positionInfo.width/height can only be number.
 */function p(e,t,n,a,o,s){var c,l=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],h=o&&o.boundingMode||"all";if((s=s||e).x=e.x,s.y=e.y,!l&&!u)return!1;if("raw"===h)c="group"===e.type?new i.a(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();
// Notice: raw rect may be inner object of el,
// which should not be modified.
(c=c.clone()).applyTransform(f)}
// The real width and height can not be specified but calculated by the given el.
var p=d(r.defaults({width:c.width,height:c.height},t),n,a),g=l?p.x-c.x:0,m=u?p.y-c.y:0;
// Because 'tranlate' is the last step in transform
// (see zrender/core/Transformable#getLocalTransform),
// we can just only modify el.position to get final result.
return"raw"===h?(s.x=g,s.y=m):(s.x+=g,s.y+=m),s===e&&e.markRedraw(),!0}
/**
 * @param option Contains some of the properties in HV_NAMES.
 * @param hvIdx 0: horizontal; 1: vertical.
 */function g(e,t){return null!=e[l[t][0]]||null!=e[l[t][1]]&&null!=e[l[t][2]]}function m(e){var t=e.layoutMode||e.constructor.layoutMode;return r.isObject(t)?t:t?{type:t}:null}
/**
 * Consider Case:
 * When default option has {left: 0, width: 100}, and we set {right: 0}
 * through setOption or media query, using normal zrUtil.merge will cause
 * {right: 0} does not take effect.
 *
 * @example
 * ComponentModel.extend({
 *     init: function () {
 *         ...
 *         let inputPositionParams = layout.getLayoutParams(option);
 *         this.mergeOption(inputPositionParams);
 *     },
 *     mergeOption: function (newOption) {
 *         newOption && zrUtil.merge(thisOption, newOption, true);
 *         layout.mergeLayoutParam(thisOption, newOption);
 *     }
 * });
 *
 * @param targetOption
 * @param newOption
 * @param opt
 */function v(e,t,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var a=c(l[0],0),o=c(l[1],1);function c(n,r){var a={},o=0,c={},l=0;if(s(n,(function(t){c[t]=e[t]})),s(n,(function(e){
// Consider case: newOption.width is null, which is
// set by user for removing width setting.
u(t,e)&&(a[e]=c[e]=t[e]),h(a,e)&&o++,h(c,e)&&l++})),i[r])
// Only one of left/right is premitted to exist.
return h(t,n[1])?c[n[2]]=null:h(t,n[2])&&(c[n[1]]=null),c;
// Case: newOption: {width: ..., right: ...},
// or targetOption: {right: ...} and newOption: {width: ...},
// There is no conflict when merged only has params count
// little than enoughParamNumber.
if(2!==l&&o){if(o>=2)return a;
// Chose another param from targetOption by priority.
for(var f=0;f<n.length;f++){var d=n[f];if(!u(a,d)&&u(e,d)){a[d]=e[d];break}}return a}return c}function u(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function f(e,t,n){s(e,(function(e){t[e]=n[e]}))}f(l[0],e,a),f(l[1],e,o)}
/**
 * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
 */function y(e){return A({},e)}
/**
 * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
 * @param {Object} source
 * @return {Object} Result contains those props.
 */function A(e,t){return t&&e&&s(c,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}
/***/},
/***/f937:
/***/function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}};
/***/},
/***/f945:
/***/function(e,t,n){"use strict";
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
var r=n("42ee"),i=n("6fc7"),a=n("6373");e.exports=[].copyWithin||function(e/* = 0 */,t/* = 0, end = @length */){var n=r(this),o=a(n.length),s=i(e,o),c=i(t,o),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?o:i(l,o))-c,o-s),h=1;for(c<s&&s<c+u&&(h=-1,c+=u-1,s+=u-1);u-- >0;)c in n?n[s]=n[c]:delete n[s],s+=h,c+=h;return n}},
/***/f948:
/***/function(e,t,n){"use strict";
// https://tc39.github.io/proposal-setmap-offrom/
var r=n("f083");e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},
/***/f95e:
/***/function(e,t,n){"use strict";
// EXPORTS
n.d(t,"a",(function(){/* binding */return b}));
// EXTERNAL MODULE: ./node_modules/zrender/lib/config.js
var r=n("2cf4"),i=n("6d8b"),a=n("21a1"),o=n("6fd3"),s=n("3437"),c=n("5210"),l=n("9850"),u=n("4bc4"),h=n("726e");
// EXTERNAL MODULE: ./node_modules/zrender/lib/core/util.js
// CONCATENATED MODULE: ./node_modules/zrender/lib/canvas/Layer.js
function f(e,t,n){var r=h.d.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=a*n,r}var d=function(e){function t(t,n,a){var o,s=e.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,a=a||r.e,"string"==typeof t?o=f(t,n,a):i.isObject(t)&&(t=(o=t).id),s.id=t,s.dom=o;var c=o.style;return c&&(i.disableUserSelect(o),o.onselectstart=function(){return!1},c.padding="0",c.margin="0",c.borderWidth="0"),s.painter=n,s.dpr=a,s}return Object(a.a)(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=f("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,c=new l.a(0,0,0,0);function h(e){if(e.isFinite()&&!e.isZero())if(0===a.length){(t=new l.a(0,0,0,0)).copy(e),a.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<a.length;++u){var h=a[u];if(h.intersect(e)){var f=new l.a(0,0,0,0);f.copy(h),f.union(e),a[u]=f,n=!0;break}if(s){c.copy(e),c.union(h);var d=e.width*e.height,p=h.width*h.height,g=c.width*c.height-d-p;g<r&&(r=g,i=u)}}if(s&&(a[i].union(e),n=!0),!n)(t=new l.a(0,0,0,0)).copy(e),a.push(t);s||(s=a.length>=o)}}for(var f=this.__startIndex;f<this.__endIndex;++f){if(g=e[f]){var d=g.shouldBePainted(n,r,!0,!0);(m=g.__isRendered&&(g.__dirty&u.a||!d)?g.getPrevPaintRect():null)&&h(m);var p=d&&(g.__dirty&u.a||!g.__isRendered)?g.getPaintRect():null;p&&h(p)}}for(f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var g,m;d=(g=t[f])&&g.shouldBePainted(n,r,!0,!0);if(g&&(!d||!g.__zr)&&g.__isRendered)(m=g.getPrevPaintRect())&&h(m)}do{i=!1;for(f=0;f<a.length;)if(a[f].isZero())a.splice(f,1);else{for(var v=f+1;v<a.length;)a[f].intersect(a[v])?(i=!0,a[f].union(a[v]),a.splice(v,1)):v++;f++}}while(i);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,a=this.ctx,o=r.width,l=r.height;t=t||this.clearColor;var u=this.motionBlur&&!e,h=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/f,l/f));var p=this.domBack;function g(e,n,r,o){if(a.clearRect(e,n,r,o),t&&"transparent"!==t){var l=void 0;if(i.isGradientObject(t))l=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||Object(s.a)(a,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=l,t.__width=r,t.__height=o;else i.isImagePatternObject(t)&&(t.scaleX=t.scaleX||f,t.scaleY=t.scaleY||f,l=Object(c.c)(a,t,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=l||t,a.fillRect(e,n,r,o),a.restore()}u&&(a.save(),a.globalAlpha=h,a.drawImage(p,e,n,r,o),a.restore())}!n||u?g(0,0,o,l):n.length&&i.each(n,(function(e){g(e.x*f,e.y*f,e.width*f,e.height*f)}))},t}(o.a),p=n("98b7"),g=n("22d1"),m=1e5,v=314159,y=.01;
/* harmony default export */var A=function(){function e(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=i.extend({},n||{}),this.dpr=n.devicePixelRatio||r.e,this._singleCanvas=o,this.root=e,e.style&&(i.disableUserSelect(e),e.innerHTML=""),this.storage=t;var c=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var u=e,h=u.width,f=u.height;null!=n.width&&(h=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,u.width=h*this.dpr,u.height=f*this.dpr,this._width=h,this._height=f;var p=new d(u,this,this.dpr);p.__builtin__=!0,p.initContext(),l[314159]=p,p.zlevel=v,c.push(v),this._domRoot=e}else{this._width=Object(s.b)(e,0,n),this._height=Object(s.b)(e,1,n);var g=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(g)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<t;a++){var o=e[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(m)),r||(r=n.ctx).save(),Object(c.a)(r,o,i,a===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(m)},e.prototype.paintOne=function(e,t){Object(c.b)(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;Object(p.a)((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(v).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var c=this._zlevelList[s],l=this._layers[c];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var u=!0,h=!1,f=function(i){var s,c=a[i],l=c.ctx,f=o&&c.createRepaintRects(e,t,d._width,d._height),p=n?c.__startIndex:c.__drawIndex,g=!n&&c.incremental&&Date.now,m=g&&Date.now(),v=c.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(c.__startIndex===c.__endIndex)c.clear(!1,v,f);else if(p===c.__startIndex){var y=e[p];y.incremental&&y.notClear&&!n||c.clear(!1,v,f)}-1===p&&(p=c.__startIndex);var A=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<c.__endIndex;s++){var i=e[s];if(i.__inHover&&(h=!0),r._doPaintEl(i,c,o,t,n,s===c.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&l.restore()};if(f)if(0===f.length)s=c.__endIndex;else for(var b=d.dpr,w=0;w<f.length;++w){var x=f[w];l.save(),l.beginPath(),l.rect(x.x*b,x.y*b,x.width*b,x.height*b),l.clip(),A(x),l.restore()}else l.save(),A(),l.restore();c.__drawIndex=s,c.__drawIndex<c.__endIndex&&(u=!1)},d=this,p=0;p<a.length;p++)f(p);return g.a.wxa&&i.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:h}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Object(c.a)(o,e,i,a),e.setPrevPaintRect(s))}else Object(c.a)(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=v);var n=this._layers[e];return n||((n=new d("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?i.merge(n,this._layerConfig[e],!0):this._layerConfig[e-y]&&i.merge(n,this._layerConfig[e-y],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((c=e[n]).zlevel!==e[n-1].zlevel||c.incremental){this._needsManuallyCompositing=!0;break}}var r,a,o=null,s=0;for(a=0;a<e.length;a++){var c,l=(c=e[a]).zlevel,h=void 0;r!==l&&(r=l,s=0),c.incremental?((h=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(l+(s>0?y:0),this._needsManuallyCompositing),h.__builtin__||i.logError("ZLevel "+l+" has been used by unkown layer "+h.id),h!==o&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.incremental?h.__drawIndex=-1:h.__drawIndex=a,t(a),o=h),c.__dirty&u.a&&!c.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=a))}t(a),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,i.each(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?i.merge(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var a=this._zlevelList[r];if(a===e||a===e+y){var o=this._layers[a];i.merge(o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(i.indexOf(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Object(s.b)(i,0,r),t=Object(s.b)(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(v).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new d("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var u=o[s];Object(c.a)(n,u,a,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();
/* harmony default export */
// CONCATENATED MODULE: ./node_modules/echarts/lib/renderer/installCanvasRenderer.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function b(e){e.registerPainter("canvas",A)}
/***/},
/***/f96c:
/***/function(e,t,n){
// https://github.com/ljharb/proposal-is-error
var r=n("f083"),i=n("1c2d");r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},
/***/f97f:
/***/function(e,t,n){e.exports=!n("c94e")&&!n("f937")((function(){return 7!=Object.defineProperty(n("8ad7")("div"),"a",{get:function(){return 7}}).a}));
/***/},
/***/f9ce:
/***/function(e,t,n){var r=n("ef5d"),i=n("e3f8"),a=n("f608"),o=n("f4d6");
/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */e.exports=function(e){return a(e)?r(o(e)):i(e)}},
/***/f9d4:
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,a=t.indentUnit,o=n.statementIndent,s=n.jsonld,c=n.json||s,l=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),a=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}
// Used as scratch variables to communicate multiple values without
// consing up tons of objects.
function g(e,t,n){return r=e,i=n,t}function m(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=v(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return g("number","number");if("."==n&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("="==n&&e.eat(">"))return g("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return g("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),g("number","number");if("/"==n)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):Ze(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==n)return t.tokenize=A,A(e,t);if("#"==n)return e.skipToEnd(),g("error","error");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),g("operator","operator",e.current());if(u.test(n)){e.eatWhile(u);var r=e.current();if("."!=t.lastType){if(h.propertyIsEnumerable(r)){var i=h[r];return g(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",r)}return g("variable","variable",r)}}function v(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(d))return n.tokenize=m,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=m),g("string","string")}}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return g("comment","comment")}function A(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",e.current())}var b="([{}])";
// This is a crude lookahead trick to try and notice that we're
// parsing the argument patterns for a fat-arrow function before we
// actually hit the arrow token. It only works if the arrow is on
// the same line as the arguments and there's no strange noise
// (comments) in between. Fallback is to only notice when we hit the
// arrow, and not declare the arguments as locals for the arrow
// body.
function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(l){// Try to skip TypeScript return type declarations after the arguments
var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,a=!1,o=n-1;o>=0;--o){var s=e.string.charAt(o),c=b.indexOf(s);if(c>=0&&c<3){if(!i){++o;break}if(0==--i){"("==s&&(a=!0);break}}else if(c>=3&&c<6)++i;else if(u.test(s))a=!0;else{if(/["'\/]/.test(s))return;if(a&&!i){++o;break}}}a&&!i&&(t.fatArrowAt=o)}}
// Parser
var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function C(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=a,null!=r&&(this.align=r)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function I(e,t,n,r,i){var a=e.cc;
// Communicate our context to the combinators.
// (Less wasteful than consing up a hundred closures on every call.)
for(E.state=e,E.stream=i,E.marked=null,E.cc=a,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((a.length?a.pop():c?G:H)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return E.marked?E.marked:"variable"==n&&_(e,r)?"variable-2":t}}
// Combinator utils
var E={state:null,column:null,marked:null,cc:null};function k(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function S(){return k.apply(null,arguments),!0}function B(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function M(e){var t=E.state;if(E.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){
// FIXME function decls are also not block scoped
var r=T(e,t.context);if(null!=r)return void(t.context=r)}else if(!B(e,t.localVars))return void(t.localVars=new P(e,t.localVars));
// Fall through means this is global
n.globalVars&&!B(e,t.globalVars)&&(t.globalVars=new P(e,t.globalVars))}function T(e,t){if(t){if(t.block){var n=T(e,t.prev);return n?n==t.prev?t:new D(n,t.vars,!0):null}return B(e,t.vars)?t:new D(t.prev,new P(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}
// Combinators
function D(e,t,n){this.prev=e,this.vars=t,this.block=n}function P(e,t){this.name=e,this.next=t}var L=new P("this",new P("arguments",null));function Q(){E.state.context=new D(E.state.context,E.state.localVars,!1),E.state.localVars=L}function R(){E.state.context=new D(E.state.context,E.state.localVars,!0),E.state.localVars=null}function j(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function N(e,t){var n=function(){var n=E.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new C(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){function t(n){return n==e?S():";"==e||"}"==n||")"==n||"]"==n?k():S(t)}return t}function H(e,t){return"var"==e?S(N("vardef",t),Ce,z(";"),F):"keyword a"==e?S(N("form"),W,H,F):"keyword b"==e?S(N("form"),H,F):"keyword d"==e?E.stream.match(/^\s*$/,!1)?S():S(N("stat"),Y,z(";"),F):"debugger"==e?S(z(";")):"{"==e?S(N("}"),R,he,F,j):";"==e?S():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==F&&E.state.cc.pop()(),S(N("form"),W,H,F,Be)):"function"==e?S(De):"for"==e?S(N("form"),Me,H,F):"class"==e||l&&"interface"==t?(E.marked="keyword",S(N("form","class"==e?e:t),je,F)):"variable"==e?l&&"declare"==t?(E.marked="keyword",S(H)):l&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?S($e):"type"==t?S(Le,z("operator"),ge,z(";")):S(N("form"),_e,z("{"),N("}"),he,F,F)):l&&"namespace"==t?(E.marked="keyword",S(N("form"),G,H,F)):l&&"abstract"==t?(E.marked="keyword",S(H)):S(N("stat"),ie):"switch"==e?S(N("form"),W,z("{"),N("}","switch"),R,he,F,F,j):"case"==e?S(G,z(":")):"default"==e?S(z(":")):"catch"==e?S(N("form"),Q,U,H,F,j):"export"==e?S(N("stat"),He,F):"import"==e?S(N("stat"),Ge,F):"async"==e?S(H):"@"==t?S(G,H):k(N("stat"),G,z(";"),F)}function U(e){if("("==e)return S(Qe,z(")"))}function G(e,t){return q(e,t,!1)}function V(e,t){return q(e,t,!0)}function W(e){return"("!=e?k():S(N(")"),G,z(")"),F)}function q(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?ee:Z;if("("==e)return S(Q,N(")"),le(Qe,")"),F,z("=>"),r,j);if("variable"==e)return k(Q,_e,z("=>"),r,j)}var i=n?$:K;return x.hasOwnProperty(e)?S(i):"function"==e?S(De,i):"class"==e||l&&"interface"==t?(E.marked="keyword",S(N("form"),Re,F)):"keyword c"==e||"async"==e?S(n?V:G):"("==e?S(N(")"),Y,z(")"),F,i):"operator"==e||"spread"==e?S(n?V:G):"["==e?S(N("]"),Ke,F,i):"{"==e?ue(oe,"}",null,i):"quasi"==e?k(J,i):"new"==e?S(te(n)):"import"==e?S(G):S()}function Y(e){return e.match(/[;\}\)\],]/)?k():k(G)}function K(e,t){return","==e?S(G):$(e,t,!1)}function $(e,t,n){var r=0==n?K:$,i=0==n?G:V;return"=>"==e?S(Q,n?ee:Z,j):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?S(r):l&&"<"==t&&E.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?S(N(">"),le(ge,">"),F,r):"?"==t?S(G,z(":"),i):S(i):"quasi"==e?k(J,r):";"!=e?"("==e?ue(V,")","call",r):"."==e?S(ae,r):"["==e?S(N("]"),Y,z("]"),F,r):l&&"as"==t?(E.marked="keyword",S(ge,r)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),S(i)):void 0:void 0}function J(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?S(J):S(G,X)}function X(e){if("}"==e)return E.marked="string-2",E.state.tokenize=A,S(J)}function Z(e){return w(E.stream,E.state),k("{"==e?H:G)}function ee(e){return w(E.stream,E.state),k("{"==e?H:V)}function te(e){return function(t){return"."==t?S(e?re:ne):"variable"==t&&l?S(be,e?$:K):k(e?V:G)}}function ne(e,t){if("target"==t)return E.marked="keyword",S(K)}function re(e,t){if("target"==t)return E.marked="keyword",S($)}function ie(e){return":"==e?S(F,H):k(K,z(";"),F)}function ae(e){if("variable"==e)return E.marked="property",S()}function oe(e,t){return"async"==e?(E.marked="property",S(oe)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?S(se):(// Work around fat-arrow-detection complication for detecting typescript typed arrow params
l&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),S(ce))):"number"==e||"string"==e?(E.marked=s?"property":E.style+" property",S(ce)):"jsonld-keyword"==e?S(ce):l&&O(t)?(E.marked="keyword",S(oe)):"["==e?S(G,fe,z("]"),ce):"spread"==e?S(V,ce):"*"==t?(E.marked="keyword",S(oe)):":"==e?k(ce):void 0;var n}function se(e){return"variable"!=e?k(ce):(E.marked="property",S(De))}function ce(e){return":"==e?S(V):"("==e?k(De):void 0}function le(e,t,n){function r(i,a){if(n?n.indexOf(i)>-1:","==i){var o=E.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),S((function(n,r){return n==t||r==t?k():k(e)}),r)}return i==t||a==t?S():n&&n.indexOf(";")>-1?k(e):S(z(t))}return function(n,i){return n==t||i==t?S():k(e,r)}}function ue(e,t,n){for(var r=3;r<arguments.length;r++)E.cc.push(arguments[r]);return S(N(t,n),le(e,t),F)}function he(e){return"}"==e?S():k(H,he)}function fe(e,t){if(l){if(":"==e||"in"==t)return S(ge);if("?"==t)return S(fe)}}function de(e){if(l&&":"==e)return E.stream.match(/^\s*\w+\s+is\b/,!1)?S(G,pe,ge):S(ge)}function pe(e,t){if("is"==t)return E.marked="keyword",S()}function ge(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(E.marked="keyword",S("typeof"==t?V:ge)):"variable"==e||"void"==t?(E.marked="type",S(Ae)):"|"==t||"&"==t?S(ge):"string"==e||"number"==e||"atom"==e?S(Ae):"["==e?S(N("]"),le(ge,"]",","),F,Ae):"{"==e?S(N("}"),le(ve,"}",",;"),F,Ae):"("==e?S(le(ye,")"),me,Ae):"<"==e?S(le(ge,">"),ge):void 0}function me(e){if("=>"==e)return S(ge)}function ve(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",S(ve)):"?"==t||"number"==e||"string"==e?S(ve):":"==e?S(ge):"["==e?S(z("variable"),fe,z("]"),ve):"("==e?k(Pe,ve):void 0}function ye(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?S(ye):":"==e?S(ge):"spread"==e?S(ye):k(ge)}function Ae(e,t){return"<"==t?S(N(">"),le(ge,">"),F,Ae):"|"==t||"."==e||"&"==t?S(ge):"["==e?S(ge,z("]"),Ae):"extends"==t||"implements"==t?(E.marked="keyword",S(ge)):"?"==t?S(ge,z(":"),ge):void 0}function be(e,t){if("<"==t)return S(N(">"),le(ge,">"),F,Ae)}function we(){return k(ge,xe)}function xe(e,t){if("="==t)return S(ge)}function Ce(e,t){return"enum"==t?(E.marked="keyword",S($e)):k(_e,fe,ke,Se)}function _e(e,t){return l&&O(t)?(E.marked="keyword",S(_e)):"variable"==e?(M(t),S()):"spread"==e?S(_e):"["==e?ue(Ee,"]"):"{"==e?ue(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?S(_e):"}"==e?k():"["==e?S(G,z("]"),z(":"),Ie):S(z(":"),_e,ke)):(M(t),S(ke))}function Ee(){return k(_e,ke)}function ke(e,t){if("="==t)return S(V)}function Se(e){if(","==e)return S(Ce)}function Be(e,t){if("keyword b"==e&&"else"==t)return S(N("form","else"),H,F)}function Me(e,t){return"await"==t?S(Me):"("==e?S(N(")"),Te,F):void 0}function Te(e){return"var"==e?S(Ce,Oe):"variable"==e?S(Oe):k(Oe)}function Oe(e,t){return")"==e?S():";"==e?S(Oe):"in"==t||"of"==t?(E.marked="keyword",S(G,Oe)):k(G,Oe)}function De(e,t){return"*"==t?(E.marked="keyword",S(De)):"variable"==e?(M(t),S(De)):"("==e?S(Q,N(")"),le(Qe,")"),F,de,H,j):l&&"<"==t?S(N(">"),le(we,">"),F,De):void 0}function Pe(e,t){return"*"==t?(E.marked="keyword",S(Pe)):"variable"==e?(M(t),S(Pe)):"("==e?S(Q,N(")"),le(Qe,")"),F,de,j):l&&"<"==t?S(N(">"),le(we,">"),F,Pe):void 0}function Le(e,t){return"keyword"==e||"variable"==e?(E.marked="type",S(Le)):"<"==t?S(N(">"),le(we,">"),F):void 0}function Qe(e,t){return"@"==t&&S(G,Qe),"spread"==e?S(Qe):l&&O(t)?(E.marked="keyword",S(Qe)):l&&"this"==e?S(fe,ke):k(_e,fe,ke)}function Re(e,t){
// Class expressions may have an optional name.
return"variable"==e?je(e,t):Ne(e,t)}function je(e,t){if("variable"==e)return M(t),S(Ne)}function Ne(e,t){return"<"==t?S(N(">"),le(we,">"),F,Ne):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(E.marked="keyword"),S(l?ge:G,Ne)):"{"==e?S(N("}"),Fe,F):void 0}function Fe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&O(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",S(Fe)):"variable"==e||"keyword"==E.style?(E.marked="property",S(l?ze:De,Fe)):"number"==e||"string"==e?S(l?ze:De,Fe):"["==e?S(G,fe,z("]"),l?ze:De,Fe):"*"==t?(E.marked="keyword",S(Fe)):l&&"("==e?k(Pe,Fe):";"==e||","==e?S(Fe):"}"==e?S():"@"==t?S(G,Fe):void 0}function ze(e,t){if("?"==t)return S(ze);if(":"==e)return S(ge,ke);if("="==t)return S(V);var n=E.state.lexical.prev;return k(n&&"interface"==n.info?Pe:De)}function He(e,t){return"*"==t?(E.marked="keyword",S(Ye,z(";"))):"default"==t?(E.marked="keyword",S(G,z(";"))):"{"==e?S(le(Ue,"}"),Ye,z(";")):k(H)}function Ue(e,t){return"as"==t?(E.marked="keyword",S(z("variable"))):"variable"==e?k(V,Ue):void 0}function Ge(e){return"string"==e?S():"("==e?k(G):k(Ve,We,Ye)}function Ve(e,t){return"{"==e?ue(Ve,"}"):("variable"==e&&M(t),"*"==t&&(E.marked="keyword"),S(qe))}function We(e){if(","==e)return S(Ve,We)}function qe(e,t){if("as"==t)return E.marked="keyword",S(Ve)}function Ye(e,t){if("from"==t)return E.marked="keyword",S(G)}function Ke(e){return"]"==e?S():k(le(V,"]"))}function $e(){return k(N("form"),_e,z("{"),N("}"),le(Je,"}"),F,F)}function Je(){return k(_e,ke)}function Xe(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ze(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}
// Interface
return j.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new C((e||0)-a,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",I(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==y)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),c=t.lexical;
// Kludge to prevent 'maybelse' from blocking lexical scope pops
if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==F)c=c.prev;else if(u!=Be)break}for(;("stat"==c.type||"form"==c.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==K||i==$)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var h=c.type,f=s==h;return"vardef"==h?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==h&&"{"==s?c.indented:"form"==h?c.indented+a:"stat"==h?c.indented+(Xe(t,r)?o||a:0):"switch"!=c.info||f||0==n.doubleIndentSwitch?c.align?c.column+(f?0:1):c.indented+(f?0:a):c.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:s,jsonMode:c,expressionAllowed:Ze,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=G&&t!=V||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("56b3"));
/***/},
/***/f9dd:
/***/function(e,t,n){
/* eslint-disable class-methods-use-this */
const{BigInteger:r}=n("e0c8");class i{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}
/**
   * 获取 der 编码比特流16进制串
   */getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const e=this.v.length/2;// 字节数
let t=e.toString(16);// 补齐到整字节
if(t.length%2==1&&(t="0"+t),e<128)
// 短格式，以 0 开头
return t;// 1(1位) + 真正的长度占用字节数(7位) + 真正的长度
return(128+t.length/2).toString(16)+t}getValue(){return""}}class a extends i{constructor(e){super(),this.t="02",// 整型标签说明
e&&(this.v=function(e){let t=e.toString(16);if("-"!==t[0])
// 正数
t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);// 非0开头，则补一个全0字节
else{
// 负数
t=t.substr(1);let n=t.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);// 非0开头，则补一个全0字节
let i="";for(let e=0;e<n;e++)i+="f";i=new r(i,16),
// 对绝对值取反，加1
t=i.xor(e).add(r.ONE),t=t.toString(16).replace(/^-/,"")}return t}(e))}getValue(){return this.v}}class o extends i{constructor(e){super(),this.t="30",// 序列标签说明
this.asn1Array=e}getValue(){return this.v=this.asn1Array.map((e=>e.getEncodedHex())).join(""),this.v}}
/**
 * 获取 l 占用字节数
 */function s(e,t){return+e[t+2]<8?1:128&+e.substr(t+2,2);// l 以0开头，则表示短格式，只占一个字节
}
/**
 * 获取 l
 */function c(e,t){
// 获取 l
const n=s(e,t),i=e.substr(t+2,2*n);if(!i)return-1;return(+i[0]<8?new r(i,16):new r(i.substr(2),16)).intValue()}
/**
 * 获取 v 的位置
 */function l(e,t){return t+2*(s(e,t)+1)}e.exports={
/**
   * ASN.1 der 编码，针对 sm2 签名
   */
encodeDer(e,t){const n=new a(e),r=new a(t);return new o([n,r]).getEncodedHex()},
/**
   * 解析 ASN.1 der，针对 sm2 验签
   */
decodeDer(e){
// 结构：
// input = | tSeq | lSeq | vSeq |
// vSeq = | tR | lR | vR | tS | lS | vS |
const t=l(e,0),n=l(e,t),i=c(e,t),a=e.substr(n,2*i),o=n+a.length,s=l(e,o),u=c(e,o),h=e.substr(s,2*u);return{r:new r(a,16),s:new r(h,16)}}}
/***/},
/***/f9f3:
/***/function(e,t,n){var r=n("f083"),i=n("8539");
// 18.2.4 parseFloat(string)
r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},
/***/fa10:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/fa21:
/***/function(e,t,n){var r=n("7530"),i=n("2dcb"),a=n("eac5");
/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},
/***/fadd:
/***/function(e,t,n){"use strict";
/* harmony export (binding) */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/
function r(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}
/***/n.d(t,"a",(function(){return r}))},
/***/faf5:
/***/function(e,t,n){e.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}));
/***/},
/***/fb32:
/***/function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}};
/***/},
/***/fb3f:
/***/function(e,t,n){"use strict";
// 19.1.3.6 Object.prototype.toString()
var r=n("5155"),i={};i[n("de24")("toStringTag")]="z",i+""!="[object z]"&&n("77ea")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)
/***/},
/***/fb6a:
/***/function(e,t,n){"use strict";var r=n("23e7"),i=n("e8b5"),a=n("68ee"),o=n("861d"),s=n("23cb"),c=n("07fa"),l=n("fc6a"),u=n("8418"),h=n("b622"),f=n("1dde"),d=n("f36a"),p=f("slice"),g=h("species"),m=Array,v=Math.max;
// `Array.prototype.slice` method
// https://tc39.es/ecma262/#sec-array.prototype.slice
// fallback for not array-like ES3 strings and DOM objects
r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,h,f=l(this),p=c(f),y=s(e,p),A=s(void 0===t?p:t,p);if(i(f)&&(n=f.constructor,
// cross-realm fallback
(a(n)&&(n===m||i(n.prototype))||o(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return d(f,y,A);for(r=new(void 0===n?m:n)(v(A-y,0)),h=0;y<A;y++,h++)y in f&&u(r,h,f[y]);return r.length=h,r}})},
/***/fb87:
/***/function(e,t){e.exports=function(e,t){return{value:t,done:!!e}};
/***/},
/***/fb8d:
/***/function(e,t,n){var r=n("f083"),i=n("67fe");
// 18.2.5 parseInt(string, radix)
r(r.G+r.F*(parseInt!=i),{parseInt:i})},
/***/fba5:
/***/function(e,t,n){var r=n("cb5a");
/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */e.exports=function(e){return r(this.__data__,e)>-1}},
/***/fbd9:
/***/function(e,t,n){
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
n("f948")("WeakSet");
/***/},
/***/fc25:
/***/function(e,t,n){"use strict";
// UNUSED EXPORTS: TransferLocale, EmptyProps
// EXTERNAL MODULE: ./node_modules/babel-helper-vue-jsx-merge-props/index.js
var r=n("92fa"),i=n.n(r),a=n("1098"),o=n.n(a),s=n("6042"),c=n.n(s),l=n("41b2"),u=n.n(l),h=n("4d91"),f=n("4df5"),d=n("daa3"),p=n("e5cd"),g={functional:!0,PRESENTED_IMAGE_DEFAULT:!0,render:function(){var e=arguments[0];return e("svg",{attrs:{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{fill:"none",fillRule:"evenodd"}},[e("g",{attrs:{transform:"translate(24 31.67)"}},[e("ellipse",{attrs:{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}}),e("path",{attrs:{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}}),e("path",{attrs:{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}}),e("path",{attrs:{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}}),e("path",{attrs:{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"}})]),e("path",{attrs:{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}}),e("g",{attrs:{transform:"translate(149.65 15.383)",fill:"#FFF"}},[e("ellipse",{attrs:{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}}),e("path",{attrs:{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}})])])])}},m=n("db14"),v={name:"AEmpty",props:u()({},{prefixCls:h.a.string,image:h.a.any,description:h.a.any,imageStyle:h.a.object}),methods:{renderEmpty:function(e){var t=this.$createElement,n=this.$props,r=n.prefixCls,a=n.imageStyle,s=f.a.getPrefixCls("empty",r),l=Object(d.g)(this,"image")||t(g),u=Object(d.g)(this,"description"),h=void 0!==u?u:e.description,p="string"==typeof h?h:"empty",m=c()({},s,!0),v=null;if("string"==typeof l)v=t("img",{attrs:{alt:p,src:l}});else if("object"===(void 0===l?"undefined":o()(l))&&l.PRESENTED_IMAGE_SIMPLE){v=t(l),m[s+"-normal"]=!0}else v=l;return t("div",i()([{class:m},{on:Object(d.k)(this)}]),[t("div",{class:s+"-image",style:a},[v]),h&&t("p",{class:s+"-description"},[h]),this.$slots.default&&t("div",{class:s+"-footer"},[this.$slots.default])])}},render:function(){return(0,arguments[0])(p.a,{attrs:{componentName:"Empty"},scopedSlots:{default:this.renderEmpty}})}};v.PRESENTED_IMAGE_DEFAULT=g,v.PRESENTED_IMAGE_SIMPLE={functional:!0,PRESENTED_IMAGE_SIMPLE:!0,render:function(){var e=arguments[0];return e("svg",{attrs:{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"}},[e("ellipse",{attrs:{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}}),e("g",{attrs:{fillRule:"nonzero",stroke:"#D9D9D9"}},[e("path",{attrs:{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}}),e("path",{attrs:{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}})])])])}},
/* istanbul ignore next */
v.install=function(e){e.use(m.a),e.component(v.name,v)};
/* harmony default export */t.a=v;
/***/},
/***/fc5e:
/***/function(e,t){
// 7.1.4 ToInteger
var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},
/***/fc6a:
/***/function(e,t,n){"use strict";
// toObject with fallback for non-array-like ES3 strings
var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},
/***/fca6:
/***/function(e,t,n){var r=n("f083");
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
r(r.S+r.F*!n("c94e"),"Object",{defineProperty:n("2761").f})},
/***/fcd4:
/***/function(e,t,n){t.f=n("cc15");
/***/},
/***/fce3:
/***/function(e,t,n){"use strict";var r=n("d039"),i=n("cfe9").RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},
/***/fdb6:
/***/function(e,t,n){"use strict";
/* harmony import */n("39f9");
/* harmony import */},
/***/fdbc:
/***/function(e,t,n){"use strict";
// iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
e.exports={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}},
/***/fdbf:
/***/function(e,t,n){"use strict";
/* eslint-disable es/no-symbol -- required for testing */var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},
/***/fe7b:
/***/function(e,t,n){
// extracted by mini-css-extract-plugin
/***/},
/***/fe9d:
/***/function(e,t,n){
// 20.3.3.1 / 15.9.4.4 Date.now()
var r=n("f083");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},
/***/fed5:
/***/function(e,t){t.f=Object.getOwnPropertySymbols;
/***/},
/***/fef8:
/***/function(e,t,n){"use strict";var r=n("5155"),i=RegExp.prototype.exec;
// `RegExpExec` abstract operation
// https://tc39.github.io/ecma262/#sec-regexpexec
e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},
/***/ff51:
/***/function(e,t,n){"use strict";
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */var r=Array.isArray;
/* harmony default export */t.a=r},
/***/ffd6:
/***/function(e,t,n){var r=n("3729"),i=n("1310");
/** `Object#toString` result references. */e.exports=
/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},
/***/ffda:
/***/function(e,t,n){
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// CommonJS
!function(e){"use strict";
// `identifier`
function t(e){for(
// MySQL/MariaDB identifiers
// ref: http://dev.mysql.com/doc/refman/5.6/en/identifier-qualifiers.html
var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}
// "identifier"
function n(e){for(
// Standard SQL /SQLite identifiers
// ref: http://web.archive.org/web/20160813185132/http://savage.net.au/SQL/sql-99.bnf.html#delimited%20identifier
// ref: http://sqlite.org/lang_keywords.html
var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}
// variable token
function r(e){
// variables
// @@prefix.varName @varName
// varName can be quoted with ` or ' or "
// ref: http://dev.mysql.com/doc/refman/5.5/en/user-variables.html
return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}
// short client keyword token
function i(e){
// \N means NULL
// ref: http://dev.mysql.com/doc/refman/5.5/en/null-values.html
return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null;
// \g, etc
// ref: http://dev.mysql.com/doc/refman/5.5/en/mysql-commands.html
}
// these keywords are used by all SQL dialects (however, a mode can still overwrite it)
e.defineMode("sql",(function(t,n){var r=n.client||{},i=n.atoms||{false:!0,true:!0,null:!0},c=n.builtin||o(s),l=n.keywords||o(a),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,h=n.support||{},f=n.hooks||{},d=n.dateSQL||{date:!0,time:!0,timestamp:!0},p=!1!==n.backslashStringEscapes,g=n.brackets||/^[\{}\(\)\[\]]/,m=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();
// call hooks from the mime type
if(f[n]){var a=f[n](e,t);if(!1!==a)return a}if(h.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))
// hex
// ref: http://dev.mysql.com/doc/refman/5.5/en/hexadecimal-literals.html
return"number";if(h.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))
// bitstring
// ref: http://dev.mysql.com/doc/refman/5.5/en/bit-field-literals.html
return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)
// numbers
// ref: http://dev.mysql.com/doc/refman/5.5/en/number-literals.html
return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),h.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))
// placeholders
return"variable-3";if("'"==n||'"'==n&&h.doubleQuote)
// strings
// ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
return t.tokenize=y(n),t.tokenize(e,t);if((h.nCharCast&&("n"==n||"N"==n)||h.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))
// charset casting: _utf8'str', N'str', n'str'
// ref: http://dev.mysql.com/doc/refman/5.5/en/string-literals.html
return"keyword";if(h.commentSlashSlash&&"/"==n&&e.eat("/"))
// 1-line comment
return e.skipToEnd(),"comment";if(h.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!h.commentSpaceRequired||e.eat(" ")))
// 1-line comments
// ref: https://kb.askmonty.org/en/comment-syntax/
return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))
// multi-line comments
// ref: https://kb.askmonty.org/en/comment-syntax/
return t.tokenize=A(1),t.tokenize(e,t);if("."!=n){if(u.test(n))
// operators
return e.eatWhile(u),"operator";if(g.test(n))
// brackets
return"bracket";if(m.test(n))
// punctuation
return e.eatWhile(m),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))
// dates (weird ODBC syntax)
// ref: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html
return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();
// dates (standard SQL syntax)
// ref: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html
return d.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":i.hasOwnProperty(o)?"atom":c.hasOwnProperty(o)?"builtin":l.hasOwnProperty(o)?"keyword":r.hasOwnProperty(o)?"string-2":null}
// .1 for 0.1
return h.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:
// .table_name (ODBC)
// // ref: http://dev.mysql.com/doc/refman/5.6/en/identifier-qualifiers.html
h.ODBCdotTable&&e.match(/^[\w\d_]+/)?"variable-2":void 0}
// 'string', with char specified in quote escaped by '\'
function y(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){n.tokenize=v;break}i=p&&!i&&"\\"==r}return"string"}}function A(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=A(e+1):n.tokenize=e>1?A(e-1):v:t.skipToEnd(),"comment"}}function b(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function w(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?b(e,t,")"):"["==r?b(e,t,"]"):t.context&&t.context.type==r&&w(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var a=r.charAt(0)==i.type;return i.align?i.col+(a?0:1):i.indent+(a?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:h.commentSlashSlash?"//":h.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}}));var a="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";
// turn a space-separated list into an array
function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var s="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";
// A generic SQL Mode. It's not a standard, it just try to support what is generally supported
e.defineMIME("text/x-sql",{name:"sql",keywords:o(a+"begin"),builtin:o(s),atoms:o("false true null unknown"),dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:o(a+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:o("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(a+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(a+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),
// provided by the phpLiteAdmin project - phpliteadmin.org
e.defineMIME("text/x-sqlite",{name:"sql",
// commands of the official SQLite client, ref: https://www.sqlite.org/cli.html#dotcmd
client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),
// ref: http://sqlite.org/lang_keywords.html
keywords:o(a+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),
// SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.
builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),
// ref: http://sqlite.org/syntax/literal-value.html
atoms:o("null current_date current_time current_timestamp"),
// ref: http://sqlite.org/lang_expr.html#binaryops
operatorChars:/^[*+\-%<>!=&|/~]/,
// SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.
dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',//ref: http://sqlite.org/lang_keywords.html
hooks:{
// bind-parameters ref:http://sqlite.org/lang_expr.html#varparam
"@":r,":":r,"?":r,$:r,
// The preferred way to escape Identifiers is using double quotes, ref: http://sqlite.org/lang_keywords.html
'"':n,
// there is also support for backtics, ref: http://sqlite.org/lang_keywords.html
"`":t}}),
// the query language used by Apache Cassandra is called CQL, but this mime type
// is called Cassandra to avoid confusion with Contextual Query Language
e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),
// this is based on Peter Raganitsch's 'plsql' mode
e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),
// Created to support specific hive keywords
e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),
// For PostgreSQL - https://www.postgresql.org/docs/11/sql-keywords-appendix.html
// For pl/pgsql lang - https://github.com/postgres/postgres/blob/REL_11_2/src/pl/plpgsql/src/pl_scanner.c
keywords:o(a+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),
// https://www.postgresql.org/docs/11/datatype.html
builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),
// Google's SQL-like query language, GQL
e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),
// Greenplum
e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),
//https://github.com/greenplum-db/gpdb/blob/master/src/include/parser/kwlist.h
keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),
// Spark SQL
e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),
// Esper
e.defineMIME("text/x-esper",{name:"sql",client:o("source"),
// http://www.espertech.com/esper/release-5.5.0/esper-reference/html/appendix_keywords.html
keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})}(n("56b3"));
/*
  How Properties of Mime Types are used by SQL Mode
  =================================================

  keywords:
    A list of keywords you want to be highlighted.
  builtin:
    A list of builtin types you want to be highlighted (if you want types to be of class "builtin" instead of "keyword").
  operatorChars:
    All characters that must be handled as operators.
  client:
    Commands parsed and executed by the client (not the server).
  support:
    A list of supported syntaxes which are not common, but are supported by more than 1 DBMS.
    * ODBCdotTable: .tableName
    * zerolessFloat: .1
    * doubleQuote
    * nCharCast: N'string'
    * charsetCast: _utf8'string'
    * commentHash: use # char for comments
    * commentSlashSlash: use // for comments
    * commentSpaceRequired: require a space after -- for comments
  atoms:
    Keywords that must be highlighted as atoms,. Some DBMS's support more atoms than others:
    UNKNOWN, INFINITY, UNDERFLOW, NaN...
  dateSQL:
    Used for date/time SQL standard syntax, because not all DBMS's support same temporal types.
*/
/***/},
/***/fffc:
/***/function(e,t,n){"use strict";
// TODO: Remove from `core-js@4`
n("f665")}}]);
this.__theme_COLOR_cfg={"url":"css/theme-colors-e4175314.css","colors":["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329","#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329","#010e0e","#032121","#053434","#f0f2f5","#fff","0,0,0","#f0f0f0","#fafafa","#f5f5f5","#fbfbfb","1,1,1","#fefefe","19,194,194","#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00","#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400","#fff1f0","#ffcbc7","#ffa19e","#ff7575","#ff4d52","#f5222f","#cf1325","#a8071c","#820016","#5c0012"]};
this.__theme_COLOR_css=".fancy-notification .ant-notification-notice-close:hover{color:#fff!important}.beauty-scroll[data-v-175d1a69]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-175d1a69]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-175d1a69]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-175d1a69]{background:#13c2c2}#nprogress .peg[data-v-175d1a69]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-175d1a69]{border-top-color:#13c2c2;border-left-color:#13c2c2}.admin-header[data-v-175d1a69]{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);background:#fff}.admin-header.dark[data-v-175d1a69]{background:#032121;color:#fff}.admin-header.night .head-menu[data-v-175d1a69]{background:#fff}.admin-header .admin-header-wide .trigger[data-v-175d1a69]:hover{color:#13c2c2}.admin-header .admin-header-wide .admin-header-right.light .header-item[data-v-175d1a69]:hover{background-color:rgba(0,0,0,.025)}.admin-header .admin-header-wide .admin-header-right.dark .header-item[data-v-175d1a69]:hover{background-color:#08979c}.beauty-scroll[data-v-4d198b51]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-4d198b51]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-4d198b51]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-4d198b51]{background:#13c2c2}#nprogress .peg[data-v-4d198b51]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-4d198b51]{border-top-color:#13c2c2;border-left-color:#13c2c2}.footer[data-v-4d198b51]{background-color:#fff;-webkit-box-shadow:0 -1px 3px rgba(0,0,0,.02);box-shadow:0 -1px 3px rgba(0,0,0,.02)}.footer .copyright a[data-v-4d198b51]:hover{color:#13c2c2}.beauty-scroll[data-v-0dc675ad]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-0dc675ad]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-0dc675ad]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-0dc675ad]{background:#13c2c2}#nprogress .peg[data-v-0dc675ad]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-0dc675ad]{border-top-color:#13c2c2;border-left-color:#13c2c2}.mask[data-v-0dc675ad]{background-color:rgba(0,0,0,.15)}.drawer.left.open .content[data-v-0dc675ad]{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.15);box-shadow:2px 0 8px rgba(0,0,0,.15)}.drawer.right.open .content[data-v-0dc675ad]{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.15);box-shadow:-2px 0 8px rgba(0,0,0,.15)}.handler-container .handler[data-v-0dc675ad]{background-color:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.beauty-scroll[data-v-9ec824e8]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-9ec824e8]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-9ec824e8]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-9ec824e8]{background:#13c2c2}#nprogress .peg[data-v-9ec824e8]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-9ec824e8]{border-top-color:#13c2c2;border-left-color:#13c2c2}.side-menu .logo[data-v-9ec824e8]{background-color:#053434}.side-menu .logo.light[data-v-9ec824e8]{background-color:#fff}.side-menu .logo.light h1[data-v-9ec824e8]{color:#13c2c2}.side-menu .logo h1[data-v-9ec824e8]{color:#fefefe}[data-v-9ec824e8] .side-menu{background-color:#fff}.side-menu .logo[data-v-9ec824e8]{background-color:#fff}[data-v-9ec824e8] .menu{background-color:#fff}[data-v-9ec824e8] .menu::-webkit-scrollbar-thumb{background:#13c2c2}[data-v-9ec824e8] .menu.ant-menu-light.ant-menu-inline>.ant-menu-item-selected,[data-v-9ec824e8] .menu.ant-menu-light.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title-selected,[data-v-9ec824e8] .menu.ant-menu-light.ant-menu-vertical-left>.ant-menu-item-selected,[data-v-9ec824e8] .menu.ant-menu-light.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title-selected,[data-v-9ec824e8] .menu.ant-menu-light.ant-menu-vertical>.ant-menu-item-selected,[data-v-9ec824e8] .menu.ant-menu-light.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title-selected{background:-webkit-gradient(linear,left top,right top,from(#0ea6a6),to(#13c2c2))!important;background:linear-gradient(90deg,#0ea6a6,#13c2c2)!important;color:#fff!important}[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item:hover,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title:hover{background:-webkit-gradient(linear,left top,right top,from(#b5f5ec),to(#e6fffa));background:linear-gradient(90deg,#b5f5ec,#e6fffa);color:#13c2c2!important}[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item:hover .ant-menu-submenu-arrow,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item:hover .anticon,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title:hover .ant-menu-submenu-arrow,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title:hover .anticon{color:#13c2c2!important}[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected:active,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected:focus,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected:active,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected:focus{background:-webkit-gradient(linear,left top,right top,from(#0ea6a6),to(#13c2c2))!important;background:linear-gradient(90deg,#0ea6a6,#13c2c2)!important;color:#fff!important;border-left:3px solid #fff!important}[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected .ant-menu-submenu-arrow,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected .anticon,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected>a,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected>i,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected>span,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-item-selected>span>span,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected .ant-menu-submenu-arrow,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected .anticon,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected>a,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected>i,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected>span,[data-v-9ec824e8] .menu .ant-menu-light .ant-menu-submenu-title-selected>span>span{color:#fff!important}[data-v-9ec824e8] .ant-menu-sub{background-color:#fff!important;border-left:2px solid #13c2c2}[data-v-9ec824e8] .is-mobile .side-menu{-webkit-box-shadow:2px 0 20px rgba(19,194,194,.15);box-shadow:2px 0 20px rgba(19,194,194,.15)}[data-v-9ec824e8] .ant-menu-light .ant-menu-item:hover,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title:hover{background:-webkit-gradient(linear,left top,right top,from(#b5f5ec),to(#e6fffa));background:linear-gradient(90deg,#b5f5ec,#e6fffa);color:#13c2c2!important}[data-v-9ec824e8] .ant-menu-light .ant-menu-item:hover .ant-menu-submenu-arrow,[data-v-9ec824e8] .ant-menu-light .ant-menu-item:hover .anticon,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title:hover .ant-menu-submenu-arrow,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title:hover .anticon{color:#13c2c2!important}[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected:active,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected:focus,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected:active,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected:focus{background:-webkit-gradient(linear,left top,right top,from(#0ea6a6),to(#13c2c2))!important;background:linear-gradient(90deg,#0ea6a6,#13c2c2)!important;color:#fff!important;border-left:0 solid #fff!important}[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected .ant-menu-submenu-arrow,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected .anticon,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected>a,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected>i,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected>span,[data-v-9ec824e8] .ant-menu-light .ant-menu-item-selected>span>span,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected .ant-menu-submenu-arrow,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected .anticon,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected>a,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected>i,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected>span,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title-selected>span>span{color:#fff!important}[data-v-9ec824e8] .ant-menu-light .ant-menu-item:hover,[data-v-9ec824e8] .ant-menu-light .ant-menu-submenu-title:hover,[data-v-9ec824e8] .ant-menu-sub .ant-menu-item:hover{-webkit-box-shadow:-3px 0 0 0 #13c2c2 inset!important;box-shadow:inset -3px 0 0 0 #13c2c2!important}.beauty-scroll[data-v-0437ff7f]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-0437ff7f]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-0437ff7f]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-0437ff7f]{background:#13c2c2}#nprogress .peg[data-v-0437ff7f]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-0437ff7f]{border-top-color:#13c2c2;border-left-color:#13c2c2}.setting-item .title[data-v-0437ff7f]{color:rgba(0,0,0,.85)}.beauty-scroll[data-v-63784944]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-63784944]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-63784944]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-63784944]{background:#13c2c2}#nprogress .peg[data-v-63784944]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-63784944]{border-top-color:#13c2c2;border-left-color:#13c2c2}.theme-color[data-v-63784944]{color:#fff}.beauty-scroll[data-v-1acd8c25]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1acd8c25]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1acd8c25]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1acd8c25]{background:#13c2c2}#nprogress .peg[data-v-1acd8c25]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1acd8c25]{border-top-color:#13c2c2;border-left-color:#13c2c2}.img-check-box .check-item[data-v-1acd8c25]{color:#13c2c2}.beauty-scroll[data-v-6ad7e04a]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-6ad7e04a]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-6ad7e04a]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-6ad7e04a]{background:#13c2c2}#nprogress .peg[data-v-6ad7e04a]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-6ad7e04a]{border-top-color:#13c2c2;border-left-color:#13c2c2}.side-setting[data-v-6ad7e04a]{background-color:#fff}.beauty-scroll[data-v-bb8deb64]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-bb8deb64]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-bb8deb64]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-bb8deb64]{background:#13c2c2}#nprogress .peg[data-v-bb8deb64]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-bb8deb64]{border-top-color:#13c2c2;border-left-color:#13c2c2}.page-header[data-v-bb8deb64]{background:#fff}.beauty-scroll[data-v-ac45e694]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-ac45e694]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-ac45e694]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-ac45e694]{background:#13c2c2}#nprogress .peg[data-v-ac45e694]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-ac45e694]{border-top-color:#13c2c2;border-left-color:#13c2c2}.admin-layout .setting[data-v-ac45e694]{background-color:#13c2c2;color:#fff;-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.15);box-shadow:-2px 0 8px rgba(0,0,0,.15)}.beauty-scroll[data-v-57556e0a]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-57556e0a]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-57556e0a]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-57556e0a]{background:#13c2c2}#nprogress .peg[data-v-57556e0a]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-57556e0a]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll::-webkit-scrollbar-track{background:#87e8de}.disabled{color:rgba(0,0,0,.25)}#nprogress .bar{background:#13c2c2}#nprogress .peg{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon{border-top-color:#13c2c2;border-left-color:#13c2c2}html{-webkit-tap-highlight-color:rgba(0,0,0,0)}body{color:rgba(0,0,0,.65);background-color:#fff}h1,h2,h3,h4,h5,h6{color:rgba(0,0,0,.85)}a{color:#13c2c2}a:hover{color:#36cfc9}a:active{color:#08979c}a[disabled]{color:rgba(0,0,0,.25)}caption{color:rgba(0,0,0,.45)}::-moz-selection{color:#fff;background:#13c2c2}::selection{color:#fff;background:#13c2c2}html{--antd-wave-shadow-color:#13c2c2}.ant-click-animating-node,[ant-click-animating-without-extra-node=true]:after{-webkit-box-shadow:0 0 0 0 #13c2c2;box-shadow:0 0 0 0 #13c2c2}.ant-alert{color:rgba(0,0,0,.65)}.ant-alert-success{background-color:#f6ffed;border:1px solid #b7eb8f}.ant-alert-success .ant-alert-icon{color:#52c41a}.ant-alert-info{background-color:#e6fffb;border:1px solid #87e8de}.ant-alert-info .ant-alert-icon{color:#13c2c2}.ant-alert-warning{background-color:#fffbe6;border:1px solid #ffe58f}.ant-alert-warning .ant-alert-icon{color:#faad14}.ant-alert-error{background-color:#fff1f0;border:1px solid #ffa19e}.ant-alert-error .ant-alert-icon{color:#f5222f}.ant-alert-close-icon .anticon-close{color:rgba(0,0,0,.45)}.ant-alert-close-icon .anticon-close:hover{color:rgba(0,0,0,.75)}.ant-alert-close-text{color:rgba(0,0,0,.45)}.ant-alert-close-text:hover{color:rgba(0,0,0,.75)}.ant-alert-with-description{color:rgba(0,0,0,.65)}.ant-alert-with-description .ant-alert-message{color:rgba(0,0,0,.85)}.ant-alert-message{color:rgba(0,0,0,.85)}.ant-anchor{color:rgba(0,0,0,.65)}.ant-anchor-wrapper{background-color:#fff}.ant-anchor-ink:before{background-color:#f0f0f0}.ant-anchor-ink-ball{background-color:#fff;border:2px solid #13c2c2}.ant-anchor-link-title{color:rgba(0,0,0,.65)}.ant-anchor-link-active>.ant-anchor-link-title{color:#13c2c2}.ant-select-auto-complete{color:rgba(0,0,0,.65)}.ant-select-auto-complete.ant-select .ant-input:focus,.ant-select-auto-complete.ant-select .ant-input:hover{border-color:#36cfc9}.ant-select-auto-complete.ant-select .ant-input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-avatar{color:rgba(0,0,0,.65);color:#fff}.ant-back-top{color:rgba(0,0,0,.65)}.ant-back-top-content{color:#fff;background-color:rgba(0,0,0,.45)}.ant-back-top-content:hover{background-color:rgba(0,0,0,.65)}.ant-badge{color:rgba(0,0,0,.65)}.ant-badge-count{color:#fff;-webkit-box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px #fff}.ant-badge-count a,.ant-badge-count a:hover{color:#fff}.ant-badge-dot{-webkit-box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px #fff}.ant-badge-status-success{background-color:#52c41a}.ant-badge-status-processing{background-color:#13c2c2}.ant-badge-status-processing:after{border:1px solid #13c2c2}.ant-badge-status-error{background-color:#f5222f}.ant-badge-status-warning{background-color:#faad14}.ant-badge-status-gold{background:#faad14}.ant-badge-status-cyan{background:#13c2c2}.ant-badge-status-green{background:#52c41a}.ant-badge-status-text{color:rgba(0,0,0,.65)}.ant-breadcrumb{color:rgba(0,0,0,.65);color:rgba(0,0,0,.45)}.ant-breadcrumb a{color:rgba(0,0,0,.45)}.ant-breadcrumb a:hover{color:#36cfc9}.ant-breadcrumb>span:last-child,.ant-breadcrumb>span:last-child a{color:rgba(0,0,0,.65)}.ant-breadcrumb-separator{color:rgba(0,0,0,.45)}.ant-btn{-webkit-box-shadow:0 2px 0 rgba(0,0,0,.015);box-shadow:0 2px 0 rgba(0,0,0,.015);color:rgba(0,0,0,.65);background-color:#fff}.ant-btn:focus,.ant-btn:hover{color:#36cfc9;background-color:#fff;border-color:#36cfc9}.ant-btn.active,.ant-btn:active{color:#08979c;background-color:#fff;border-color:#08979c}.ant-btn-disabled,.ant-btn-disabled.active,.ant-btn-disabled:active,.ant-btn-disabled:focus,.ant-btn-disabled:hover,.ant-btn.disabled,.ant-btn.disabled.active,.ant-btn.disabled:active,.ant-btn.disabled:focus,.ant-btn.disabled:hover,.ant-btn[disabled],.ant-btn[disabled].active,.ant-btn[disabled]:active,.ant-btn[disabled]:focus,.ant-btn[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn.active,.ant-btn:active,.ant-btn:focus,.ant-btn:hover{background:#fff}.ant-btn-primary{color:#fff;background-color:#13c2c2;border-color:#13c2c2;text-shadow:0 -1px 0 rgba(0,0,0,.12);-webkit-box-shadow:0 2px 0 rgba(0,0,0,.045);box-shadow:0 2px 0 rgba(0,0,0,.045)}.ant-btn-primary:focus,.ant-btn-primary:hover{color:#fff;background-color:#36cfc9;border-color:#36cfc9}.ant-btn-primary.active,.ant-btn-primary:active{color:#fff;background-color:#08979c;border-color:#08979c}.ant-btn-primary-disabled,.ant-btn-primary-disabled.active,.ant-btn-primary-disabled:active,.ant-btn-primary-disabled:focus,.ant-btn-primary-disabled:hover,.ant-btn-primary.disabled,.ant-btn-primary.disabled.active,.ant-btn-primary.disabled:active,.ant-btn-primary.disabled:focus,.ant-btn-primary.disabled:hover,.ant-btn-primary[disabled],.ant-btn-primary[disabled].active,.ant-btn-primary[disabled]:active,.ant-btn-primary[disabled]:focus,.ant-btn-primary[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child){border-right-color:#36cfc9;border-left-color:#36cfc9}.ant-btn-group .ant-btn-primary:first-child:not(:last-child){border-right-color:#36cfc9}.ant-btn-group .ant-btn-primary+.ant-btn-primary,.ant-btn-group .ant-btn-primary:last-child:not(:first-child){border-left-color:#36cfc9}.ant-btn-ghost{color:rgba(0,0,0,.65)}.ant-btn-ghost:focus,.ant-btn-ghost:hover{color:#36cfc9;border-color:#36cfc9}.ant-btn-ghost.active,.ant-btn-ghost:active{color:#08979c;border-color:#08979c}.ant-btn-ghost-disabled,.ant-btn-ghost-disabled.active,.ant-btn-ghost-disabled:active,.ant-btn-ghost-disabled:focus,.ant-btn-ghost-disabled:hover,.ant-btn-ghost.disabled,.ant-btn-ghost.disabled.active,.ant-btn-ghost.disabled:active,.ant-btn-ghost.disabled:focus,.ant-btn-ghost.disabled:hover,.ant-btn-ghost[disabled],.ant-btn-ghost[disabled].active,.ant-btn-ghost[disabled]:active,.ant-btn-ghost[disabled]:focus,.ant-btn-ghost[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn-dashed{color:rgba(0,0,0,.65);background-color:#fff}.ant-btn-dashed:focus,.ant-btn-dashed:hover{color:#36cfc9;background-color:#fff;border-color:#36cfc9}.ant-btn-dashed.active,.ant-btn-dashed:active{color:#08979c;background-color:#fff;border-color:#08979c}.ant-btn-dashed-disabled,.ant-btn-dashed-disabled.active,.ant-btn-dashed-disabled:active,.ant-btn-dashed-disabled:focus,.ant-btn-dashed-disabled:hover,.ant-btn-dashed.disabled,.ant-btn-dashed.disabled.active,.ant-btn-dashed.disabled:active,.ant-btn-dashed.disabled:focus,.ant-btn-dashed.disabled:hover,.ant-btn-dashed[disabled],.ant-btn-dashed[disabled].active,.ant-btn-dashed[disabled]:active,.ant-btn-dashed[disabled]:focus,.ant-btn-dashed[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn-danger{color:#fff;background-color:#ff4d52;border-color:#ff4d52;text-shadow:0 -1px 0 rgba(0,0,0,.12);-webkit-box-shadow:0 2px 0 rgba(0,0,0,.045);box-shadow:0 2px 0 rgba(0,0,0,.045)}.ant-btn-danger:focus,.ant-btn-danger:hover{color:#fff;background-color:#ff7575;border-color:#ff7575}.ant-btn-danger.active,.ant-btn-danger:active{color:#fff}.ant-btn-danger-disabled,.ant-btn-danger-disabled.active,.ant-btn-danger-disabled:active,.ant-btn-danger-disabled:focus,.ant-btn-danger-disabled:hover,.ant-btn-danger.disabled,.ant-btn-danger.disabled.active,.ant-btn-danger.disabled:active,.ant-btn-danger.disabled:focus,.ant-btn-danger.disabled:hover,.ant-btn-danger[disabled],.ant-btn-danger[disabled].active,.ant-btn-danger[disabled]:active,.ant-btn-danger[disabled]:focus,.ant-btn-danger[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn-link{color:#13c2c2}.ant-btn-link:focus,.ant-btn-link:hover{color:#36cfc9;border-color:#36cfc9}.ant-btn-link.active,.ant-btn-link:active{color:#08979c;border-color:#08979c}.ant-btn-link-disabled,.ant-btn-link-disabled.active,.ant-btn-link-disabled:active,.ant-btn-link-disabled:focus,.ant-btn-link-disabled:hover,.ant-btn-link.disabled,.ant-btn-link.disabled.active,.ant-btn-link.disabled:active,.ant-btn-link.disabled:focus,.ant-btn-link.disabled:hover,.ant-btn-link[disabled],.ant-btn-link[disabled].active,.ant-btn-link[disabled]:active,.ant-btn-link[disabled]:focus,.ant-btn-link[disabled]:hover{background-color:#f5f5f5}.ant-btn-link-disabled,.ant-btn-link-disabled.active,.ant-btn-link-disabled:active,.ant-btn-link-disabled:focus,.ant-btn-link-disabled:hover,.ant-btn-link.disabled,.ant-btn-link.disabled.active,.ant-btn-link.disabled:active,.ant-btn-link.disabled:focus,.ant-btn-link.disabled:hover,.ant-btn-link[disabled],.ant-btn-link[disabled].active,.ant-btn-link[disabled]:active,.ant-btn-link[disabled]:focus,.ant-btn-link[disabled]:hover{color:rgba(0,0,0,.25)}.ant-btn:before{background:#fff}.ant-btn-background-ghost{color:#fff;border-color:#fff}.ant-btn-background-ghost.ant-btn-primary{color:#13c2c2;border-color:#13c2c2}.ant-btn-background-ghost.ant-btn-primary:focus,.ant-btn-background-ghost.ant-btn-primary:hover{color:#36cfc9;border-color:#36cfc9}.ant-btn-background-ghost.ant-btn-primary.active,.ant-btn-background-ghost.ant-btn-primary:active{color:#08979c;border-color:#08979c}.ant-btn-background-ghost.ant-btn-primary-disabled,.ant-btn-background-ghost.ant-btn-primary-disabled.active,.ant-btn-background-ghost.ant-btn-primary-disabled:active,.ant-btn-background-ghost.ant-btn-primary-disabled:focus,.ant-btn-background-ghost.ant-btn-primary-disabled:hover,.ant-btn-background-ghost.ant-btn-primary.disabled,.ant-btn-background-ghost.ant-btn-primary.disabled.active,.ant-btn-background-ghost.ant-btn-primary.disabled:active,.ant-btn-background-ghost.ant-btn-primary.disabled:focus,.ant-btn-background-ghost.ant-btn-primary.disabled:hover,.ant-btn-background-ghost.ant-btn-primary[disabled],.ant-btn-background-ghost.ant-btn-primary[disabled].active,.ant-btn-background-ghost.ant-btn-primary[disabled]:active,.ant-btn-background-ghost.ant-btn-primary[disabled]:focus,.ant-btn-background-ghost.ant-btn-primary[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn-background-ghost.ant-btn-danger{color:#ff4d52;border-color:#ff4d52}.ant-btn-background-ghost.ant-btn-danger:focus,.ant-btn-background-ghost.ant-btn-danger:hover{color:#ff7575;border-color:#ff7575}.ant-btn-background-ghost.ant-btn-danger-disabled,.ant-btn-background-ghost.ant-btn-danger-disabled.active,.ant-btn-background-ghost.ant-btn-danger-disabled:active,.ant-btn-background-ghost.ant-btn-danger-disabled:focus,.ant-btn-background-ghost.ant-btn-danger-disabled:hover,.ant-btn-background-ghost.ant-btn-danger.disabled,.ant-btn-background-ghost.ant-btn-danger.disabled.active,.ant-btn-background-ghost.ant-btn-danger.disabled:active,.ant-btn-background-ghost.ant-btn-danger.disabled:focus,.ant-btn-background-ghost.ant-btn-danger.disabled:hover,.ant-btn-background-ghost.ant-btn-danger[disabled],.ant-btn-background-ghost.ant-btn-danger[disabled].active,.ant-btn-background-ghost.ant-btn-danger[disabled]:active,.ant-btn-background-ghost.ant-btn-danger[disabled]:focus,.ant-btn-background-ghost.ant-btn-danger[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-btn-background-ghost.ant-btn-link{color:#13c2c2;color:#fff}.ant-btn-background-ghost.ant-btn-link:focus,.ant-btn-background-ghost.ant-btn-link:hover{color:#36cfc9}.ant-btn-background-ghost.ant-btn-link.active,.ant-btn-background-ghost.ant-btn-link:active{color:#08979c}.ant-btn-background-ghost.ant-btn-link-disabled,.ant-btn-background-ghost.ant-btn-link-disabled.active,.ant-btn-background-ghost.ant-btn-link-disabled:active,.ant-btn-background-ghost.ant-btn-link-disabled:focus,.ant-btn-background-ghost.ant-btn-link-disabled:hover,.ant-btn-background-ghost.ant-btn-link.disabled,.ant-btn-background-ghost.ant-btn-link.disabled.active,.ant-btn-background-ghost.ant-btn-link.disabled:active,.ant-btn-background-ghost.ant-btn-link.disabled:focus,.ant-btn-background-ghost.ant-btn-link.disabled:hover,.ant-btn-background-ghost.ant-btn-link[disabled],.ant-btn-background-ghost.ant-btn-link[disabled].active,.ant-btn-background-ghost.ant-btn-link[disabled]:active,.ant-btn-background-ghost.ant-btn-link[disabled]:focus,.ant-btn-background-ghost.ant-btn-link[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-fullcalendar{color:rgba(0,0,0,.65)}.ant-fullcalendar-value{color:rgba(0,0,0,.65)}.ant-fullcalendar-value:hover{background:#e6fffb}.ant-fullcalendar-value:active{color:#fff;background:#13c2c2}.ant-fullcalendar-month-panel-current-cell .ant-fullcalendar-value,.ant-fullcalendar-today .ant-fullcalendar-value{-webkit-box-shadow:0 0 0 1px #13c2c2 inset;box-shadow:inset 0 0 0 1px #13c2c2}.ant-fullcalendar-month-panel-selected-cell .ant-fullcalendar-value,.ant-fullcalendar-selected-day .ant-fullcalendar-value{color:#fff;background:#13c2c2}.ant-fullcalendar-last-month-cell .ant-fullcalendar-value,.ant-fullcalendar-next-month-btn-day .ant-fullcalendar-value{color:rgba(0,0,0,.25)}.ant-fullcalendar-fullscreen .ant-fullcalendar-date,.ant-fullcalendar-fullscreen .ant-fullcalendar-month{color:rgba(0,0,0,.65);border-top:2px solid #f0f0f0}.ant-fullcalendar-fullscreen .ant-fullcalendar-date:hover,.ant-fullcalendar-fullscreen .ant-fullcalendar-month:hover{background:#e6fffb}.ant-fullcalendar-fullscreen .ant-fullcalendar-date:active,.ant-fullcalendar-fullscreen .ant-fullcalendar-month:active{background:#b5f5ec}.ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-value{color:rgba(0,0,0,.65)}.ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-current-cell .ant-fullcalendar-month,.ant-fullcalendar-fullscreen .ant-fullcalendar-today .ant-fullcalendar-date{border-top-color:#13c2c2}.ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-selected-cell .ant-fullcalendar-month,.ant-fullcalendar-fullscreen .ant-fullcalendar-selected-day .ant-fullcalendar-date{background:#e6fffb}.ant-fullcalendar-fullscreen .ant-fullcalendar-month-panel-selected-cell .ant-fullcalendar-value,.ant-fullcalendar-fullscreen .ant-fullcalendar-selected-day .ant-fullcalendar-value{color:#13c2c2}.ant-fullcalendar-fullscreen .ant-fullcalendar-last-month-cell .ant-fullcalendar-date,.ant-fullcalendar-fullscreen .ant-fullcalendar-next-month-btn-day .ant-fullcalendar-date{color:rgba(0,0,0,.25)}.ant-fullcalendar-disabled-cell .ant-fullcalendar-value{color:rgba(0,0,0,.25)}.ant-card{color:rgba(0,0,0,.65);background:#fff}.ant-card-hoverable:hover{border-color:rgba(0,0,0,.09);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.09);box-shadow:0 2px 8px rgba(0,0,0,.09)}.ant-card-bordered{border:1px solid #f0f0f0}.ant-card-head{color:rgba(0,0,0,.85);border-bottom:1px solid #f0f0f0}.ant-card-head .ant-tabs{color:rgba(0,0,0,.65)}.ant-card-head .ant-tabs-bar{border-bottom:1px solid #f0f0f0}.ant-card-extra{color:rgba(0,0,0,.65)}.ant-card-grid{-webkit-box-shadow:1px 0 0 0 #f0f0f0,0 1px 0 0 #f0f0f0,1px 1px 0 0 #f0f0f0,1px 0 0 0 #f0f0f0 inset,0 1px 0 0 #f0f0f0 inset;box-shadow:1px 0 0 0 #f0f0f0,0 1px 0 0 #f0f0f0,1px 1px 0 0 #f0f0f0,inset 1px 0 0 0 #f0f0f0,inset 0 1px 0 0 #f0f0f0}.ant-card-grid-hoverable:hover{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-card-actions{background:#fafafa;border-top:1px solid #f0f0f0}.ant-card-actions>li{color:rgba(0,0,0,.45)}.ant-card-actions>li>span:hover{color:#13c2c2}.ant-card-actions>li>span>.anticon,.ant-card-actions>li>span a:not(.ant-btn){color:rgba(0,0,0,.45)}.ant-card-actions>li>span>.anticon:hover,.ant-card-actions>li>span a:not(.ant-btn):hover{color:#13c2c2}.ant-card-actions>li:not(:last-child){border-right:1px solid #f0f0f0}.ant-card-type-inner .ant-card-head{background:#fafafa}.ant-card-meta-title{color:rgba(0,0,0,.85)}.ant-card-meta-description{color:rgba(0,0,0,.45)}.ant-carousel{color:rgba(0,0,0,.65)}.ant-carousel .slick-dots li button{background:#fff}.ant-carousel .slick-dots li.slick-active button{background:#fff}.ant-cascader{color:rgba(0,0,0,.65)}.ant-cascader-picker{color:rgba(0,0,0,.65);background-color:#fff}.ant-cascader-picker-disabled{color:rgba(0,0,0,.25);background:#f5f5f5}.ant-cascader-picker:focus .ant-cascader-input{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-cascader-picker-show-search.ant-cascader-picker-focused{color:rgba(0,0,0,.25)}.ant-cascader-picker-clear{color:rgba(0,0,0,.25);background:#fff}.ant-cascader-picker-clear:hover{color:rgba(0,0,0,.45)}.ant-cascader-picker-arrow{color:rgba(0,0,0,.25)}.ant-cascader-picker-label:hover+.ant-cascader-input{border-color:#36cfc9}.ant-cascader-menus{background:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-cascader-menu{border-right:1px solid #f0f0f0}.ant-cascader-menu-item:hover{background:#e6fffb}.ant-cascader-menu-item-disabled{color:rgba(0,0,0,.25)}.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover{background-color:#fafafa}.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-loading-icon{color:rgba(0,0,0,.45)}.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon{color:rgba(0,0,0,.25)}.ant-checkbox{color:rgba(0,0,0,.65)}.ant-checkbox-input:focus+.ant-checkbox-inner,.ant-checkbox-wrapper:hover .ant-checkbox-inner,.ant-checkbox:hover .ant-checkbox-inner{border-color:#13c2c2}.ant-checkbox-checked:after{border:1px solid #13c2c2}.ant-checkbox-inner{background-color:#fff}.ant-checkbox-inner:after{border:2px solid #fff}.ant-checkbox-checked .ant-checkbox-inner:after{border:2px solid #fff;border-top:0;border-left:0;}.ant-checkbox-checked .ant-checkbox-inner{background-color:#13c2c2;border-color:#13c2c2}.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after{border-color:rgba(0,0,0,.25)}.ant-checkbox-disabled .ant-checkbox-inner{background-color:#f5f5f5}.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:#f5f5f5}.ant-checkbox-disabled+span{color:rgba(0,0,0,.25)}.ant-checkbox-wrapper{color:rgba(0,0,0,.65)}.ant-checkbox-group{color:rgba(0,0,0,.65)}.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#fff}.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:#13c2c2}.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-collapse{color:rgba(0,0,0,.65);background-color:#fafafa}.ant-collapse>.ant-collapse-item>.ant-collapse-header{color:rgba(0,0,0,.85)}.ant-collapse-content{color:rgba(0,0,0,.65);background-color:#fff}.ant-collapse-borderless{background-color:#fafafa}.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header,.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header>.arrow{color:rgba(0,0,0,.25)}.ant-color-picker{color:rgba(0,0,0,.65)}.ant-color-picker.ant-color-picker-disabled .ant-color-picker-selection{background:#f5f5f5}.ant-color-picker-open .ant-color-picker-selection{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-color-picker-selection{background-color:#fff}.ant-color-picker-selection:hover{border-color:#36cfc9}.ant-color-picker-icon{color:rgba(0,0,0,.25)}.ant-comment-content-author-name{color:rgba(0,0,0,.45)}.ant-comment-content-author-name>*,.ant-comment-content-author-name>:hover{color:rgba(0,0,0,.45)}.ant-comment-actions>li{color:rgba(0,0,0,.45)}.ant-comment-actions>li>span{color:rgba(0,0,0,.45)}.ant-calendar-picker-container{color:rgba(0,0,0,.65)}.ant-calendar-picker{color:rgba(0,0,0,.65)}.ant-calendar-picker:hover .ant-calendar-picker-input:not(.ant-input-disabled){border-color:#36cfc9}.ant-calendar-picker:focus .ant-calendar-picker-input:not(.ant-input-disabled){border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-calendar-picker-clear{color:rgba(0,0,0,.25);background:#fff}.ant-calendar-picker-clear:hover{color:rgba(0,0,0,.45)}.ant-calendar-picker-icon{color:rgba(0,0,0,.25)}.ant-calendar{background-color:#fff;border:1px solid #fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-calendar-input-wrap{border-bottom:1px solid #f0f0f0}.ant-calendar-input{color:rgba(0,0,0,.65);background:#fff}.ant-calendar-header{border-bottom:1px solid #f0f0f0}.ant-calendar-header a:hover{color:#36cfc9}.ant-calendar-header .ant-calendar-century-select,.ant-calendar-header .ant-calendar-decade-select,.ant-calendar-header .ant-calendar-month-select,.ant-calendar-header .ant-calendar-year-select{color:rgba(0,0,0,.85)}.ant-calendar-header .ant-calendar-next-century-btn,.ant-calendar-header .ant-calendar-next-decade-btn,.ant-calendar-header .ant-calendar-next-month-btn,.ant-calendar-header .ant-calendar-next-year-btn,.ant-calendar-header .ant-calendar-prev-century-btn,.ant-calendar-header .ant-calendar-prev-decade-btn,.ant-calendar-header .ant-calendar-prev-month-btn,.ant-calendar-header .ant-calendar-prev-year-btn{color:rgba(0,0,0,.45)}.ant-calendar-header .ant-calendar-prev-century-btn:hover:after,.ant-calendar-header .ant-calendar-prev-century-btn:hover:before,.ant-calendar-header .ant-calendar-prev-decade-btn:hover:after,.ant-calendar-header .ant-calendar-prev-decade-btn:hover:before,.ant-calendar-header .ant-calendar-prev-year-btn:hover:after,.ant-calendar-header .ant-calendar-prev-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-header .ant-calendar-next-century-btn:hover:after,.ant-calendar-header .ant-calendar-next-century-btn:hover:before,.ant-calendar-header .ant-calendar-next-decade-btn:hover:after,.ant-calendar-header .ant-calendar-next-decade-btn:hover:before,.ant-calendar-header .ant-calendar-next-year-btn:hover:after,.ant-calendar-header .ant-calendar-next-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-header .ant-calendar-prev-month-btn:hover:after,.ant-calendar-header .ant-calendar-prev-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-header .ant-calendar-next-month-btn:hover:after,.ant-calendar-header .ant-calendar-next-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-date{color:rgba(0,0,0,.65)}.ant-calendar-date:hover{background:#e6fffb}.ant-calendar-date:active{color:#fff;background:#36cfc9}.ant-calendar-today .ant-calendar-date{color:#13c2c2;border-color:#13c2c2}.ant-calendar-selected-day .ant-calendar-date{background:#b5f5ec}.ant-calendar-last-month-cell .ant-calendar-date,.ant-calendar-last-month-cell .ant-calendar-date:hover,.ant-calendar-next-month-btn-day .ant-calendar-date,.ant-calendar-next-month-btn-day .ant-calendar-date:hover{color:rgba(0,0,0,.25)}.ant-calendar-disabled-cell .ant-calendar-date{color:rgba(0,0,0,.25);background:#f5f5f5}.ant-calendar-disabled-cell .ant-calendar-date:hover{background:#f5f5f5}.ant-calendar-disabled-cell.ant-calendar-selected-day .ant-calendar-date:before{background:rgba(0,0,0,.1)}.ant-calendar-disabled-cell.ant-calendar-today .ant-calendar-date:before{border:1px solid rgba(0,0,0,.25)}.ant-calendar-footer{border-top:1px solid #f0f0f0}.ant-calendar .ant-calendar-clear-btn-disabled,.ant-calendar .ant-calendar-today-btn-disabled{color:rgba(0,0,0,.25)}.ant-calendar .ant-calendar-clear-btn:after{color:rgba(0,0,0,.25)}.ant-calendar .ant-calendar-clear-btn:hover:after{color:rgba(0,0,0,.45)}.ant-calendar .ant-calendar-ok-btn{-webkit-box-shadow:0 2px 0 rgba(0,0,0,.015);box-shadow:0 2px 0 rgba(0,0,0,.015);color:#fff;background-color:#13c2c2;border-color:#13c2c2;text-shadow:0 -1px 0 rgba(0,0,0,.12);-webkit-box-shadow:0 2px 0 rgba(0,0,0,.045);box-shadow:0 2px 0 rgba(0,0,0,.045)}.ant-calendar .ant-calendar-ok-btn:focus,.ant-calendar .ant-calendar-ok-btn:hover{color:#fff;background-color:#36cfc9;border-color:#36cfc9}.ant-calendar .ant-calendar-ok-btn.active,.ant-calendar .ant-calendar-ok-btn:active{color:#fff;background-color:#08979c;border-color:#08979c}.ant-calendar .ant-calendar-ok-btn-disabled,.ant-calendar .ant-calendar-ok-btn-disabled.active,.ant-calendar .ant-calendar-ok-btn-disabled:active,.ant-calendar .ant-calendar-ok-btn-disabled:focus,.ant-calendar .ant-calendar-ok-btn-disabled:hover,.ant-calendar .ant-calendar-ok-btn.disabled,.ant-calendar .ant-calendar-ok-btn.disabled.active,.ant-calendar .ant-calendar-ok-btn.disabled:active,.ant-calendar .ant-calendar-ok-btn.disabled:focus,.ant-calendar .ant-calendar-ok-btn.disabled:hover,.ant-calendar .ant-calendar-ok-btn[disabled],.ant-calendar .ant-calendar-ok-btn[disabled].active,.ant-calendar .ant-calendar-ok-btn[disabled]:active,.ant-calendar .ant-calendar-ok-btn[disabled]:focus,.ant-calendar .ant-calendar-ok-btn[disabled]:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-calendar-range-picker-separator{color:rgba(0,0,0,.45)}.ant-input-disabled .ant-calendar-range-picker-separator{color:rgba(0,0,0,.25)}.ant-calendar-range-left .ant-calendar-time-picker-inner{border-right:1px solid #f0f0f0}.ant-calendar-range-right .ant-calendar-time-picker-inner{border-left:1px solid #f0f0f0}.ant-calendar-range-middle{color:rgba(0,0,0,.45)}.ant-calendar-range .ant-calendar-today :not(.ant-calendar-disabled-cell) :not(.ant-calendar-last-month-cell) :not(.ant-calendar-next-month-btn-day) .ant-calendar-date{color:#13c2c2;background:#b5f5ec;border-color:#13c2c2}.ant-calendar-range .ant-calendar-selected-end-date .ant-calendar-date,.ant-calendar-range .ant-calendar-selected-start-date .ant-calendar-date{color:#fff;background:#13c2c2}.ant-calendar-range .ant-calendar-selected-end-date .ant-calendar-date:hover,.ant-calendar-range .ant-calendar-selected-start-date .ant-calendar-date:hover{background:#13c2c2}.ant-calendar-range .ant-calendar-input,.ant-calendar-range .ant-calendar-time-picker-input{color:rgba(0,0,0,.65);background-color:#fff}.ant-calendar-range .ant-calendar-input:hover,.ant-calendar-range .ant-calendar-time-picker-input:hover{border-color:#36cfc9}.ant-calendar-range .ant-calendar-input:focus,.ant-calendar-range .ant-calendar-time-picker-input:focus{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-calendar-range .ant-calendar-input-disabled,.ant-calendar-range .ant-calendar-time-picker-input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-calendar-range .ant-calendar-input[disabled],.ant-calendar-range .ant-calendar-time-picker-input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-calendar-range .ant-calendar-in-range-cell:before{background:#e6fffb}.ant-calendar-range .ant-calendar-body,.ant-calendar-range .ant-calendar-decade-panel-body,.ant-calendar-range .ant-calendar-month-panel-body,.ant-calendar-range .ant-calendar-year-panel-body{border-top:1px solid #f0f0f0}.ant-calendar-range.ant-calendar-time .ant-calendar-time-picker-combobox{background-color:#fff;border-top:1px solid #f0f0f0}.ant-calendar-time-picker{background-color:#fff}.ant-calendar-time-picker-inner{background-color:#fff}.ant-calendar-time-picker-select{border-right:1px solid #f0f0f0}.ant-calendar-time-picker-select li:hover{background:#e6fffb}.ant-calendar-time-picker-select li:focus{color:#13c2c2}li.ant-calendar-time-picker-select-option-selected{background:#f5f5f5}li.ant-calendar-time-picker-select-option-disabled{color:rgba(0,0,0,.25)}.ant-calendar-time .ant-calendar-day-select{color:rgba(0,0,0,.85)}.ant-calendar-time .ant-calendar-footer .ant-calendar-time-picker-btn-disabled{color:rgba(0,0,0,.25)}.ant-calendar-month-panel{background:#fff}.ant-calendar-month-panel-header{border-bottom:1px solid #f0f0f0}.ant-calendar-month-panel-header a:hover{color:#36cfc9}.ant-calendar-month-panel-header .ant-calendar-month-panel-century-select,.ant-calendar-month-panel-header .ant-calendar-month-panel-decade-select,.ant-calendar-month-panel-header .ant-calendar-month-panel-month-select,.ant-calendar-month-panel-header .ant-calendar-month-panel-year-select{color:rgba(0,0,0,.85)}.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn{color:rgba(0,0,0,.45)}.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-century-btn:hover:before,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-decade-btn:hover:before,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-century-btn:hover:before,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-decade-btn:hover:before,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-prev-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn:hover:after,.ant-calendar-month-panel-header .ant-calendar-month-panel-next-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-month-panel-footer{border-top:1px solid #f0f0f0}.ant-calendar-month-panel-selected-cell .ant-calendar-month-panel-month,.ant-calendar-month-panel-selected-cell .ant-calendar-month-panel-month:hover{color:#fff;background:#13c2c2}.ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month,.ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month:hover{color:rgba(0,0,0,.25);background:#f5f5f5}.ant-calendar-month-panel-month{color:rgba(0,0,0,.65)}.ant-calendar-month-panel-month:hover{background:#e6fffb}.ant-calendar-year-panel{background:#fff}.ant-calendar-year-panel-header{border-bottom:1px solid #f0f0f0}.ant-calendar-year-panel-header a:hover{color:#36cfc9}.ant-calendar-year-panel-header .ant-calendar-year-panel-century-select,.ant-calendar-year-panel-header .ant-calendar-year-panel-decade-select,.ant-calendar-year-panel-header .ant-calendar-year-panel-month-select,.ant-calendar-year-panel-header .ant-calendar-year-panel-year-select{color:rgba(0,0,0,.85)}.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn{color:rgba(0,0,0,.45)}.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-century-btn:hover:before,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-decade-btn:hover:before,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-century-btn:hover:before,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-decade-btn:hover:before,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-prev-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn:hover:after,.ant-calendar-year-panel-header .ant-calendar-year-panel-next-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-year-panel-footer{border-top:1px solid #f0f0f0}.ant-calendar-year-panel-year{color:rgba(0,0,0,.65)}.ant-calendar-year-panel-year:hover{background:#e6fffb}.ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year,.ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year:hover{color:#fff;background:#13c2c2}.ant-calendar-year-panel-last-decade-cell .ant-calendar-year-panel-year,.ant-calendar-year-panel-next-decade-cell .ant-calendar-year-panel-year{color:rgba(0,0,0,.25)}.ant-calendar-decade-panel{background:#fff}.ant-calendar-decade-panel-header{border-bottom:1px solid #f0f0f0}.ant-calendar-decade-panel-header a:hover{color:#36cfc9}.ant-calendar-decade-panel-header .ant-calendar-decade-panel-century-select,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-decade-select,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-month-select,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-year-select{color:rgba(0,0,0,.85)}.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn{color:rgba(0,0,0,.45)}.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-century-btn:hover:before,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-decade-btn:hover:before,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-century-btn:hover:before,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-decade-btn:hover:before,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-year-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-prev-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn:hover:after,.ant-calendar-decade-panel-header .ant-calendar-decade-panel-next-month-btn:hover:before{border-color:rgba(0,0,0,.65)}.ant-calendar-decade-panel-footer{border-top:1px solid #f0f0f0}.ant-calendar-decade-panel-decade{color:rgba(0,0,0,.65)}.ant-calendar-decade-panel-decade:hover{background:#e6fffb}.ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade,.ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade:hover{color:#fff;background:#13c2c2}.ant-calendar-decade-panel-last-century-cell .ant-calendar-decade-panel-decade,.ant-calendar-decade-panel-next-century-cell .ant-calendar-decade-panel-decade{color:rgba(0,0,0,.25)}.ant-calendar-week-number .ant-calendar-body tr:hover{background:#e6fffb}.ant-calendar-week-number .ant-calendar-body tr.ant-calendar-active-week{background:#b5f5ec}.ant-calendar-week-number .ant-calendar-body tr .ant-calendar-selected-day .ant-calendar-date,.ant-calendar-week-number .ant-calendar-body tr .ant-calendar-selected-day:hover .ant-calendar-date{color:rgba(0,0,0,.65)}.ant-descriptions-title{color:rgba(0,0,0,.85)}.ant-descriptions-item-label{color:rgba(0,0,0,.85)}.ant-descriptions-item-content{color:rgba(0,0,0,.65)}.ant-descriptions-bordered .ant-descriptions-view{border:1px solid #f0f0f0}.ant-descriptions-bordered .ant-descriptions-item-content,.ant-descriptions-bordered .ant-descriptions-item-label{border-right:1px solid #f0f0f0}.ant-descriptions-bordered .ant-descriptions-item-label{background-color:#fafafa}.ant-descriptions-bordered .ant-descriptions-row{border-bottom:1px solid #f0f0f0}.ant-divider{color:rgba(0,0,0,.65);background:#f0f0f0}.ant-divider-horizontal.ant-divider-with-text-center,.ant-divider-horizontal.ant-divider-with-text-left,.ant-divider-horizontal.ant-divider-with-text-right{color:rgba(0,0,0,.85)}.ant-divider-horizontal.ant-divider-with-text-center:after,.ant-divider-horizontal.ant-divider-with-text-center:before,.ant-divider-horizontal.ant-divider-with-text-left:after,.ant-divider-horizontal.ant-divider-with-text-left:before,.ant-divider-horizontal.ant-divider-with-text-right:after,.ant-divider-horizontal.ant-divider-with-text-right:before{border-top:1px solid #f0f0f0}.ant-divider-dashed{border-color:#f0f0f0}.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.15);box-shadow:2px 0 8px rgba(0,0,0,.15)}.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.15);box-shadow:-2px 0 8px rgba(0,0,0,.15)}.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.15);box-shadow:0 -2px 8px rgba(0,0,0,.15)}.ant-drawer-title{color:rgba(0,0,0,.85)}.ant-drawer-content{background-color:#fff}.ant-drawer-close{color:rgba(0,0,0,.45)}.ant-drawer-close:focus,.ant-drawer-close:hover{color:rgba(0,0,0,.75)}.ant-drawer-header{border-bottom:1px solid #f0f0f0}.ant-drawer-header,.ant-drawer-header-no-title{color:rgba(0,0,0,.65);background:#fff}.ant-drawer-mask{background-color:rgba(0,0,0,.45)}.ant-drawer-open-content{-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15)}.ant-dropdown{color:rgba(0,0,0,.65)}.ant-dropdown-menu{background-color:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-dropdown-menu-item-group-title{color:rgba(0,0,0,.45)}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{color:rgba(0,0,0,.65)}.ant-dropdown-menu-item>a,.ant-dropdown-menu-submenu-title>a{color:rgba(0,0,0,.65)}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-item-selected>a,.ant-dropdown-menu-submenu-title-selected,.ant-dropdown-menu-submenu-title-selected>a{color:#13c2c2;background-color:#e6fffb}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#e6fffb}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:rgba(0,0,0,.25)}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:rgba(0,0,0,.25);background-color:#fff}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{background-color:#f0f0f0}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:rgba(0,0,0,.45)}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:rgba(0,0,0,.25);background-color:#fff}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#13c2c2}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#032121}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover{color:#fff}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#13c2c2}.ant-empty-normal{color:rgba(0,0,0,.25)}.ant-empty-small{color:rgba(0,0,0,.25)}.ant-form{color:rgba(0,0,0,.65)}.ant-form legend{color:rgba(0,0,0,.45)}.ant-form output{color:rgba(0,0,0,.65)}.ant-form-item-label>label{color:rgba(0,0,0,.85)}.ant-form-item{color:rgba(0,0,0,.65)}.ant-form-explain,.ant-form-extra{color:rgba(0,0,0,.45)}.has-success.has-feedback .ant-form-item-children-icon{color:#52c41a}.has-warning .ant-form-explain,.has-warning .ant-form-split{color:#faad14}.has-warning .ant-input,.has-warning .ant-input:hover{background-color:#fff;border-color:#faad14}.has-warning .ant-input:focus{border-color:#ffc53d}.has-warning .ant-input:not([disabled]):hover{border-color:#faad14}.has-warning .ant-calendar-picker-open .ant-calendar-picker-input{border-color:#ffc53d}.has-warning .ant-input-affix-wrapper .ant-input,.has-warning .ant-input-affix-wrapper .ant-input:hover{background-color:#fff;border-color:#faad14}.has-warning .ant-input-affix-wrapper .ant-input:focus{border-color:#ffc53d}.has-warning .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled){border-color:#faad14}.has-warning .ant-input-prefix{color:#faad14}.has-warning .ant-input-group-addon{color:#faad14;background-color:#fff;border-color:#faad14}.has-warning .has-feedback{color:#faad14}.has-warning.has-feedback .ant-form-item-children-icon{color:#faad14}.has-warning .ant-select-selection,.has-warning .ant-select-selection:hover{border-color:#faad14}.has-warning .ant-select-focused .ant-select-selection,.has-warning .ant-select-open .ant-select-selection{border-color:#ffc53d}.has-warning .ant-calendar-picker-icon:after,.has-warning .ant-cascader-picker-arrow,.has-warning .ant-picker-icon:after,.has-warning .ant-select-arrow,.has-warning .ant-time-picker-icon:after{color:#faad14}.has-warning .ant-input-number,.has-warning .ant-time-picker-input{border-color:#faad14}.has-warning .ant-input-number-focused,.has-warning .ant-input-number:focus,.has-warning .ant-time-picker-input-focused,.has-warning .ant-time-picker-input:focus{border-color:#ffc53d}.has-warning .ant-input-number:not([disabled]):hover,.has-warning .ant-time-picker-input:not([disabled]):hover{border-color:#faad14}.has-warning .ant-cascader-picker:focus .ant-cascader-input{border-color:#ffc53d}.has-warning .ant-cascader-picker:hover .ant-cascader-input{border-color:#faad14}.has-error .ant-form-explain,.has-error .ant-form-split{color:#f5222f}.has-error .ant-input,.has-error .ant-input:hover{background-color:#fff;border-color:#f5222f}.has-error .ant-input:focus{border-color:#ff4d52}.has-error .ant-input:not([disabled]):hover{border-color:#f5222f}.has-error .ant-calendar-picker-open .ant-calendar-picker-input{border-color:#ff4d52}.has-error .ant-input-affix-wrapper .ant-input,.has-error .ant-input-affix-wrapper .ant-input:hover{background-color:#fff;border-color:#f5222f}.has-error .ant-input-affix-wrapper .ant-input:focus{border-color:#ff4d52}.has-error .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled){border-color:#f5222f}.has-error .ant-input-prefix{color:#f5222f}.has-error .ant-input-group-addon{color:#f5222f;background-color:#fff;border-color:#f5222f}.has-error .has-feedback{color:#f5222f}.has-error.has-feedback .ant-form-item-children-icon{color:#f5222f}.has-error .ant-select-selection,.has-error .ant-select-selection:hover{border-color:#f5222f}.has-error .ant-select-focused .ant-select-selection,.has-error .ant-select-open .ant-select-selection{border-color:#ff4d52}.has-error .ant-select.ant-select-auto-complete .ant-input:focus{border-color:#f5222f}.has-error .ant-calendar-picker-icon:after,.has-error .ant-cascader-picker-arrow,.has-error .ant-picker-icon:after,.has-error .ant-select-arrow,.has-error .ant-time-picker-icon:after{color:#f5222f}.has-error .ant-input-number,.has-error .ant-time-picker-input{border-color:#f5222f}.has-error .ant-input-number-focused,.has-error .ant-input-number:focus,.has-error .ant-time-picker-input-focused,.has-error .ant-time-picker-input:focus{border-color:#ff4d52}.has-error .ant-input-number:not([disabled]):hover,.has-error .ant-mention-wrapper .ant-mention-editor,.has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover,.has-error .ant-time-picker-input:not([disabled]):hover{border-color:#f5222f}.has-error .ant-cascader-picker:focus .ant-cascader-input,.has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor,.has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus{border-color:#ff4d52}.has-error .ant-cascader-picker:hover .ant-cascader-input,.has-error .ant-transfer-list{border-color:#f5222f}.has-error .ant-transfer-list-search:not([disabled]):hover{border-color:#36cfc9}.has-error .ant-transfer-list-search:not([disabled]):focus{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.is-validating.has-feedback .ant-form-item-children-icon{color:#13c2c2}.ant-input{color:rgba(0,0,0,.65);background-color:#fff}.ant-input:focus,.ant-input:hover{border-color:#36cfc9}.ant-input:focus{-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-input-group{color:rgba(0,0,0,.65)}.ant-input-group-addon{color:rgba(0,0,0,.65);background-color:#fafafa}.ant-input-group-addon .ant-select-focused .ant-select-selection,.ant-input-group-addon .ant-select-open .ant-select-selection{color:#13c2c2}.ant-input-affix-wrapper{color:rgba(0,0,0,.65)}.ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled){border-color:#36cfc9}.ant-input-affix-wrapper .ant-input-prefix,.ant-input-affix-wrapper .ant-input-suffix{color:rgba(0,0,0,.65)}.ant-input-affix-wrapper .ant-input-disabled~.ant-input-suffix .anticon{color:rgba(0,0,0,.25)}.ant-input-password-icon{color:rgba(0,0,0,.45)}.ant-input-clear-icon{color:rgba(0,0,0,.25)}.ant-input-clear-icon:hover{color:rgba(0,0,0,.45)}.ant-input-clear-icon:active{color:rgba(0,0,0,.65)}.ant-input-textarea-clear-icon{color:rgba(0,0,0,.25)}.ant-input-textarea-clear-icon:hover{color:rgba(0,0,0,.45)}.ant-input-textarea-clear-icon:active{color:rgba(0,0,0,.65)}.ant-input-search-icon{color:rgba(0,0,0,.45)}.ant-input-search-icon:hover{color:rgba(0,0,0,.8)}.ant-input-number{color:rgba(0,0,0,.65);background-color:#fff}.ant-input-number:focus{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-input-number[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-input-number-handler{color:rgba(0,0,0,.45)}.ant-input-number-handler:hover .ant-input-number-handler-down-inner,.ant-input-number-handler:hover .ant-input-number-handler-up-inner{color:#36cfc9}.ant-input-number-handler-down-inner,.ant-input-number-handler-up-inner{color:rgba(0,0,0,.45)}.ant-input-number-focused,.ant-input-number:hover{border-color:#36cfc9}.ant-input-number-focused{-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-input-number-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-input-number-handler-wrap{background:#fff}.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner,.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner{color:rgba(0,0,0,.25)}.ant-layout{background:#f0f2f5}.ant-layout-header{background:#032121}.ant-layout-footer{color:rgba(0,0,0,.65);background:#f0f2f5}.ant-layout-sider-dark{background:#032121;}.ant-layout-sider-trigger{color:#fff;background:#053434}.ant-layout-sider-zero-width-trigger{color:#fff;background:#032121}.ant-layout-sider-light{background:#fff}.ant-layout-sider-light .ant-layout-sider-trigger,.ant-layout-sider-light .ant-layout-sider-zero-width-trigger{color:rgba(0,0,0,.65);background:#fff}.ant-list{color:rgba(0,0,0,.65)}.ant-list-empty-text{color:rgba(0,0,0,.25)}.ant-list-item-content{color:rgba(0,0,0,.65)}.ant-list-item-meta-title{color:rgba(0,0,0,.65)}.ant-list-item-meta-title>a{color:rgba(0,0,0,.65)}.ant-list-item-meta-title>a:hover{color:#13c2c2}.ant-list-item-meta-description{color:rgba(0,0,0,.45)}.ant-list-item-action>li{color:rgba(0,0,0,.45)}.ant-list-item-action-split{background-color:#f0f0f0}.ant-list-empty{color:rgba(0,0,0,.45)}.ant-list-split .ant-list-item{border-bottom:1px solid #f0f0f0}.ant-list-split .ant-list-header{border-bottom:1px solid #f0f0f0}.ant-list-something-after-last-item .ant-spin-container>.ant-list-items>.ant-list-item:last-child{border-bottom:1px solid #f0f0f0}.ant-list-vertical .ant-list-item-meta-title{color:rgba(0,0,0,.85)}.ant-list-bordered .ant-list-item{border-bottom:1px solid #f0f0f0}.ant-mentions{color:rgba(0,0,0,.65);background-color:#fff}.ant-mentions:focus,.ant-mentions:hover{border-color:#36cfc9}.ant-mentions:focus{-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-mentions-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-mentions[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-mentions-disabled>textarea{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-mentions-focused{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-mentions-dropdown{color:rgba(0,0,0,.65);background-color:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-mentions-dropdown-menu-item{color:rgba(0,0,0,.65)}.ant-mentions-dropdown-menu-item:hover{background-color:#e6fffb}.ant-mentions-dropdown-menu-item-disabled{color:rgba(0,0,0,.25)}.ant-mentions-dropdown-menu-item-disabled:hover{color:rgba(0,0,0,.25);background-color:#fff}.ant-mentions-dropdown-menu-item-selected{color:rgba(0,0,0,.65);background-color:#fafafa}.ant-mentions-dropdown-menu-item-active{background-color:#e6fffb}.ant-menu{color:rgba(0,0,0,.65);background:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-menu-item-group-title{color:rgba(0,0,0,.45)}.ant-menu-submenu-selected{color:#13c2c2}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#e6fffb}.ant-menu-item>a{color:rgba(0,0,0,.65)}.ant-menu-item>a:hover{color:#13c2c2}.ant-menu-item>.ant-badge>a{color:rgba(0,0,0,.65)}.ant-menu-item>.ant-badge>a:hover{color:#13c2c2}.ant-menu-item-divider{background-color:#f0f0f0}.ant-menu-item-active,.ant-menu-item:hover,.ant-menu-submenu-active,.ant-menu-submenu-title:hover,.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open{color:#13c2c2}.ant-menu-item-selected,.ant-menu-item-selected>a,.ant-menu-item-selected>a:hover{color:#13c2c2}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#e6fffb}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #f0f0f0}.ant-menu-vertical-right{border-left:1px solid #f0f0f0}.ant-menu>.ant-menu-item-divider{background-color:#f0f0f0}.ant-menu-submenu-popup{background:#fff}.ant-menu-submenu>.ant-menu{background-color:#fff}.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff;background:rgba(0,0,0,.65)\\9;background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.65)),to(rgba(0,0,0,.65)));background-image:linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.65))}.ant-menu-submenu-inline>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-left>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical-right>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before,.ant-menu-submenu-vertical>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:after,.ant-menu-submenu-vertical>.ant-menu-submenu-title:hover .ant-menu-submenu-arrow:before{background:-webkit-gradient(linear,left top,right top,from(#13c2c2),to(#13c2c2));background:linear-gradient(90deg,#13c2c2,#13c2c2)}.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected>a,.ant-menu-vertical-right .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected>a,.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical .ant-menu-submenu-selected>a{color:#13c2c2}.ant-menu-horizontal{border-bottom:1px solid #f0f0f0}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover{color:#13c2c2;border-bottom:2px solid #13c2c2;}.ant-menu-horizontal>.ant-menu-item>a{color:rgba(0,0,0,.65)}.ant-menu-horizontal>.ant-menu-item>a:hover{color:#13c2c2}.ant-menu-horizontal>.ant-menu-item-selected>a{color:#13c2c2}.ant-menu-inline .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-vertical .ant-menu-item:after{border-right:3px solid #13c2c2}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:rgba(0,0,0,.25)!important}.ant-menu-item-disabled>a,.ant-menu-submenu-disabled>a{color:rgba(0,0,0,.25)!important}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:rgba(0,0,0,.25)!important}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:rgba(0,0,0,.25)!important}.ant-menu-dark,.ant-menu-dark .ant-menu-sub{color:rgba(1,1,1,.65);background:#032121}.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fefefe}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#010e0e;}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{border-color:#032121}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a{color:rgba(1,1,1,.65)}.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fefefe}.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-title:hover>a{color:#fefefe}.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title:hover>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fefefe}.ant-menu-dark .ant-menu-item-selected{color:#fefefe}.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>a:hover{color:#fefefe}.ant-menu-dark .ant-menu-item-selected .anticon,.ant-menu-dark .ant-menu-item-selected .anticon+span{color:#fff}.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected,.ant-menu.ant-menu-dark .ant-menu-item-selected{background-color:#13c2c2}.ant-message{color:rgba(0,0,0,.65)}.ant-message-notice-content{background:#fff;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15)}.ant-message-success .anticon{color:#52c41a}.ant-message-error .anticon{color:#f5222f}.ant-message-warning .anticon{color:#faad14}.ant-message-info .anticon,.ant-message-loading .anticon{color:#13c2c2}.ant-modal{color:rgba(0,0,0,.65)}.ant-modal-title{color:rgba(0,0,0,.85)}.ant-modal-content{background-color:#fff;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15)}.ant-modal-close{color:rgba(0,0,0,.45)}.ant-modal-close:focus,.ant-modal-close:hover{color:rgba(0,0,0,.75)}.ant-modal-header{color:rgba(0,0,0,.65);background:#fff;border-bottom:1px solid #f0f0f0}.ant-modal-footer{border-top:1px solid #f0f0f0}.ant-modal-mask{background-color:rgba(0,0,0,.45)}.ant-modal-confirm-body .ant-modal-confirm-title{color:rgba(0,0,0,.85)}.ant-modal-confirm-body .ant-modal-confirm-content{color:rgba(0,0,0,.65)}.ant-modal-confirm-error .ant-modal-confirm-body>.anticon{color:#f5222f}.ant-modal-confirm-confirm .ant-modal-confirm-body>.anticon,.ant-modal-confirm-warning .ant-modal-confirm-body>.anticon{color:#faad14}.ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:#13c2c2}.ant-modal-confirm-success .ant-modal-confirm-body>.anticon{color:#52c41a}.ant-notification{color:rgba(0,0,0,.65)}.ant-notification-notice{background:#fff;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15)}.ant-notification-notice-message{color:rgba(0,0,0,.85)}.anticon.ant-notification-notice-icon-success{color:#52c41a}.anticon.ant-notification-notice-icon-info{color:#13c2c2}.anticon.ant-notification-notice-icon-warning{color:#faad14}.anticon.ant-notification-notice-icon-error{color:#f5222f}.ant-notification-notice-close{color:rgba(0,0,0,.45)}.ant-notification-notice-close:hover{color:rgba(0,0,0,.67)}.ant-page-header{color:rgba(0,0,0,.65);background-color:#fff}.ant-page-header-back-button{color:#13c2c2}.ant-page-header-back-button:focus,.ant-page-header-back-button:hover{color:#36cfc9}.ant-page-header-back-button:active{color:#08979c}.ant-page-header-heading-title{color:rgba(0,0,0,.85)}.ant-page-header-heading-sub-title{color:rgba(0,0,0,.45)}.ant-pagination{color:rgba(0,0,0,.65)}.ant-pagination-item{background-color:#fff}.ant-pagination-item a{color:rgba(0,0,0,.65)}.ant-pagination-item:focus,.ant-pagination-item:hover{border-color:#13c2c2}.ant-pagination-item:focus a,.ant-pagination-item:hover a{color:#13c2c2}.ant-pagination-item-active{background:#fff;border-color:#13c2c2}.ant-pagination-item-active a{color:#13c2c2}.ant-pagination-item-active:focus,.ant-pagination-item-active:hover{border-color:#36cfc9}.ant-pagination-item-active:focus a,.ant-pagination-item-active:hover a{color:#36cfc9}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon{color:#13c2c2}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis{color:rgba(0,0,0,.25)}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-next,.ant-pagination-prev{color:rgba(0,0,0,.65)}.ant-pagination-next a,.ant-pagination-prev a{color:rgba(0,0,0,.65)}.ant-pagination-next:hover a,.ant-pagination-prev:hover a{border-color:#36cfc9}.ant-pagination-next .ant-pagination-item-link,.ant-pagination-prev .ant-pagination-item-link{background-color:#fff}.ant-pagination-next:focus .ant-pagination-item-link,.ant-pagination-next:hover .ant-pagination-item-link,.ant-pagination-prev:focus .ant-pagination-item-link,.ant-pagination-prev:hover .ant-pagination-item-link{color:#13c2c2;border-color:#13c2c2}.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination-disabled:focus .ant-pagination-item-link,.ant-pagination-disabled:focus a,.ant-pagination-disabled:hover .ant-pagination-item-link,.ant-pagination-disabled:hover a,.ant-pagination-disabled a{color:rgba(0,0,0,.25)}.ant-pagination-options-quick-jumper input{color:rgba(0,0,0,.65);background-color:#fff}.ant-pagination-options-quick-jumper input:focus,.ant-pagination-options-quick-jumper input:hover{border-color:#36cfc9}.ant-pagination-options-quick-jumper input:focus{-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-pagination-options-quick-jumper input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-pagination-options-quick-jumper input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-pagination-simple .ant-pagination-simple-pager input{background-color:#fff}.ant-pagination-simple .ant-pagination-simple-pager input:hover{border-color:#13c2c2}.ant-pagination.ant-pagination-disabled .ant-pagination-item{background:#f5f5f5}.ant-pagination.ant-pagination-disabled .ant-pagination-item a{color:rgba(0,0,0,.25)}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a{color:#fff}.ant-pagination.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:focus,.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:hover{color:rgba(0,0,0,.45);background:#f5f5f5}.ant-popover{color:rgba(0,0,0,.65)}.ant-popover-inner{background-color:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-box-shadow:0 0 8px rgba(0,0,0,.15)\\9;box-shadow:0 0 8px rgba(0,0,0,.15)\\9}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ant-popover-inner{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}}.ant-popover-title{color:rgba(0,0,0,.85);border-bottom:1px solid #f0f0f0}.ant-popover-inner-content{color:rgba(0,0,0,.65)}.ant-popover-message{color:rgba(0,0,0,.65)}.ant-popover-message>.anticon{color:#faad14}.ant-popover-placement-top>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-topLeft>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-topRight>.ant-popover-content>.ant-popover-arrow{border-right-color:#fff;border-bottom-color:#fff;-webkit-box-shadow:3px 3px 7px rgba(0,0,0,.07);box-shadow:3px 3px 7px rgba(0,0,0,.07)}.ant-popover-placement-right>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-rightBottom>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-rightTop>.ant-popover-content>.ant-popover-arrow{border-bottom-color:#fff;border-left-color:#fff;-webkit-box-shadow:-3px 3px 7px rgba(0,0,0,.07);box-shadow:-3px 3px 7px rgba(0,0,0,.07)}.ant-popover-placement-bottom>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-bottomLeft>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-bottomRight>.ant-popover-content>.ant-popover-arrow{border-top-color:#fff;border-left-color:#fff;-webkit-box-shadow:-2px -2px 5px rgba(0,0,0,.06);box-shadow:-2px -2px 5px rgba(0,0,0,.06)}.ant-popover-placement-left>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-leftBottom>.ant-popover-content>.ant-popover-arrow,.ant-popover-placement-leftTop>.ant-popover-content>.ant-popover-arrow{border-top-color:#fff;border-right-color:#fff;-webkit-box-shadow:3px -3px 7px rgba(0,0,0,.07);box-shadow:3px -3px 7px rgba(0,0,0,.07)}.ant-progress{color:rgba(0,0,0,.65)}.ant-progress-inner{background-color:#f5f5f5}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#13c2c2}.ant-progress-bg,.ant-progress-success-bg{background-color:#13c2c2}.ant-progress-success-bg{background-color:#52c41a}.ant-progress-text{color:rgba(0,0,0,.45)}.ant-progress-status-active .ant-progress-bg:before{background:#fff}.ant-progress-status-exception .ant-progress-bg{background-color:#f5222f}.ant-progress-status-exception .ant-progress-text{color:#f5222f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#f5222f}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-text{color:rgba(0,0,0,.65)}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#f5222f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-radio-group{color:rgba(0,0,0,.65)}.ant-radio,.ant-radio-wrapper{color:rgba(0,0,0,.65)}.ant-radio-input:focus+.ant-radio-inner,.ant-radio-wrapper:hover .ant-radio,.ant-radio:hover .ant-radio-inner{border-color:#13c2c2}.ant-radio-input:focus+.ant-radio-inner{-webkit-box-shadow:0 0 0 3px rgba(19,194,194,.08);box-shadow:0 0 0 3px rgba(19,194,194,.08)}.ant-radio-checked:after{border:1px solid #13c2c2}.ant-radio-inner{background-color:#fff}.ant-radio-inner:after{background-color:#13c2c2}.ant-radio-checked .ant-radio-inner{border-color:#13c2c2}.ant-radio-disabled .ant-radio-inner{background-color:#f5f5f5}.ant-radio-disabled .ant-radio-inner:after{background-color:rgba(0,0,0,.2)}.ant-radio-disabled+span{color:rgba(0,0,0,.25)}.ant-radio-button-wrapper{color:rgba(0,0,0,.65);background:#fff}.ant-radio-button-wrapper a{color:rgba(0,0,0,.65)}.ant-radio-button-wrapper:hover{color:#13c2c2}.ant-radio-button-wrapper:focus-within{outline:3px solid rgba(19,194,194,.06)}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#13c2c2;background:#fff;border-color:#13c2c2;-webkit-box-shadow:-1px 0 0 0 #13c2c2;box-shadow:-1px 0 0 0 #13c2c2}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before{background-color:#13c2c2!important}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child{border-color:#13c2c2}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#36cfc9;border-color:#36cfc9;-webkit-box-shadow:-1px 0 0 0 #36cfc9;box-shadow:-1px 0 0 0 #36cfc9}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#08979c;border-color:#08979c;-webkit-box-shadow:-1px 0 0 0 #08979c;box-shadow:-1px 0 0 0 #08979c}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{outline:3px solid rgba(19,194,194,.06)}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#36cfc9;border-color:#36cfc9}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#fff;background:#08979c;border-color:#08979c}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{outline:3px solid rgba(19,194,194,.06)}.ant-radio-button-wrapper-disabled,.ant-radio-button-wrapper-disabled:first-child,.ant-radio-button-wrapper-disabled:hover{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked{color:#fff}.ant-rate{color:rgba(0,0,0,.65)}.ant-rate-star-first,.ant-rate-star-second{color:#f0f0f0}.ant-result-success .ant-result-icon>.anticon{color:#52c41a}.ant-result-error .ant-result-icon>.anticon{color:#f5222f}.ant-result-info .ant-result-icon>.anticon{color:#13c2c2}.ant-result-warning .ant-result-icon>.anticon{color:#faad14}.ant-result-title{color:rgba(0,0,0,.85)}.ant-result-subtitle{color:rgba(0,0,0,.45)}.ant-result-content{background-color:#fafafa}.ant-select{color:rgba(0,0,0,.65)}.ant-select>ul>li>a{background-color:#fff}.ant-select-arrow{color:rgba(0,0,0,.25)}.ant-select-selection{background-color:#fff}.ant-select-selection:hover{border-color:#36cfc9}.ant-select-focused .ant-select-selection,.ant-select-selection:active,.ant-select-selection:focus{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-select-selection__clear{color:rgba(0,0,0,.25);background:#fff}.ant-select-selection__clear:hover{color:rgba(0,0,0,.45)}.ant-select-disabled{color:rgba(0,0,0,.25)}.ant-select-disabled .ant-select-selection{background:#f5f5f5}.ant-select-disabled .ant-select-selection--multiple .ant-select-selection__choice{color:rgba(0,0,0,.33);background:#f5f5f5}.ant-select-disabled .ant-select-selection__choice__remove{color:rgba(0,0,0,.25)}.ant-select-disabled .ant-select-selection__choice__remove:hover{color:rgba(0,0,0,.25)}.ant-select-selection--multiple .ant-select-selection__choice{color:rgba(0,0,0,.65);background-color:#fafafa;border:1px solid #f0f0f0}.ant-select-selection--multiple .ant-select-selection__choice__remove{color:rgba(0,0,0,.45)}.ant-select-selection--multiple .ant-select-selection__choice__remove:hover{color:rgba(0,0,0,.75)}.ant-select-open .ant-select-selection{border-color:#36cfc9;-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-select-dropdown{color:rgba(0,0,0,.65);background-color:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-select-dropdown-menu-item-group-title{color:rgba(0,0,0,.45)}.ant-select-dropdown-menu-item{color:rgba(0,0,0,.65)}.ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled){background-color:#e6fffb}.ant-select-dropdown-menu-item-selected{color:rgba(0,0,0,.65);background-color:#fafafa}.ant-select-dropdown-menu-item-disabled,.ant-select-dropdown-menu-item-disabled:hover{color:rgba(0,0,0,.25)}.ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled){background-color:#e6fffb}.ant-select-dropdown-menu-item-divider{background-color:#f0f0f0}.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item:hover .ant-select-selected-icon{color:rgba(0,0,0,.87)}.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected .ant-select-selected-icon,.ant-select-dropdown.ant-select-dropdown--multiple .ant-select-dropdown-menu-item-selected:hover .ant-select-selected-icon{color:#13c2c2}.ant-slider{color:rgba(0,0,0,.65)}.ant-slider-rail{background-color:#f5f5f5}.ant-slider-track{background-color:#87e8de}.ant-slider-handle{background-color:#fff;border:2px solid #87e8de}.ant-slider-handle:focus{-webkit-box-shadow:0 0 0 5px rgba(19,194,194,.2);box-shadow:0 0 0 5px rgba(19,194,194,.2)}.ant-slider-handle.ant-tooltip-open{border-color:#13c2c2}.ant-slider:hover .ant-slider-track{background-color:#5cdbd3}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#5cdbd3}.ant-slider-mark-text{color:rgba(0,0,0,.45)}.ant-slider-mark-text-active{color:rgba(0,0,0,.65)}.ant-slider-dot{background-color:#fff;border:2px solid #f0f0f0}.ant-slider-disabled .ant-slider-track{background-color:rgba(0,0,0,.25)!important}.ant-slider-disabled .ant-slider-dot,.ant-slider-disabled .ant-slider-handle{background-color:#fff;border-color:rgba(0,0,0,.25)!important}.ant-spin{color:rgba(0,0,0,.65);color:#13c2c2}.ant-spin-nested-loading>div>.ant-spin .ant-spin-text{text-shadow:0 1px 2px #fff}.ant-spin-container:after{background:#fff}.ant-spin-tip{color:rgba(0,0,0,.45)}.ant-spin-dot-item{background-color:#13c2c2}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ant-spin-blur{background:#fff}}.ant-statistic{color:rgba(0,0,0,.65)}.ant-statistic-title{color:rgba(0,0,0,.45)}.ant-statistic-content{color:rgba(0,0,0,.85)}.ant-steps{color:rgba(0,0,0,.65)}.ant-steps-item-icon{border:1px solid rgba(0,0,0,.25)}.ant-steps-item-icon>.ant-steps-icon{color:#13c2c2}.ant-steps-item-tail:after{background:#f0f0f0}.ant-steps-item-title{color:rgba(0,0,0,.65)}.ant-steps-item-title:after{background:#f0f0f0}.ant-steps-item-description,.ant-steps-item-subtitle{color:rgba(0,0,0,.45)}.ant-steps-item-wait .ant-steps-item-icon{background-color:#fff;border-color:rgba(0,0,0,.25)}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon{color:rgba(0,0,0,.25)}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:rgba(0,0,0,.25)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.45)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#f0f0f0}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#f0f0f0}.ant-steps-item-process .ant-steps-item-icon{background-color:#fff;border-color:#13c2c2}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#13c2c2}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#13c2c2}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.85)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#f0f0f0}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.65)}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#f0f0f0}.ant-steps-item-process .ant-steps-item-icon{background:#13c2c2}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#fff}.ant-steps-item-finish .ant-steps-item-icon{background-color:#fff;border-color:#13c2c2}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon{color:#13c2c2}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#13c2c2}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:rgba(0,0,0,.65)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#13c2c2}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#13c2c2}.ant-steps-item-error .ant-steps-item-icon{background-color:#fff;border-color:#f5222f}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon{color:#f5222f}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#f5222f}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#f5222f}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#f0f0f0}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#f5222f}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#f0f0f0}.ant-steps-item.ant-steps-next-error .ant-steps-item-title:after{background:#f5222f}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-title{color:#13c2c2}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon{border-color:#13c2c2}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon .ant-steps-icon{color:#13c2c2}.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#13c2c2}.ant-steps-small .ant-steps-item-description{color:rgba(0,0,0,.45)}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{background:rgba(0,0,0,.001)}.ant-steps-navigation .ant-steps-item:after{border:1px solid rgba(0,0,0,.25)}.ant-steps-navigation .ant-steps-item:before{background-color:#13c2c2}.ant-steps-flex-not-supported.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item{background:#fff}.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot:after,.ant-steps-flex-not-supported.ant-steps-dot .ant-steps-item .ant-steps-icon-dot:before{background:#fff}.ant-switch{color:rgba(0,0,0,.65);background-color:rgba(0,0,0,.25)}.ant-switch-inner{color:#fff}.ant-switch-loading-icon,.ant-switch:after{background-color:#fff}.ant-switch-loading .ant-switch-loading-icon{color:rgba(0,0,0,.65)}.ant-switch-checked.ant-switch-loading .ant-switch-loading-icon{color:#13c2c2}.ant-switch:focus{-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-switch-checked{background-color:#13c2c2}.ant-table{color:rgba(0,0,0,.65)}.ant-table-thead>tr>th{color:rgba(0,0,0,.85);background:#fafafa;border-bottom:1px solid #f0f0f0}.ant-table-thead>tr>th .ant-table-filter-selected.anticon{color:#13c2c2}.ant-table-thead>tr>th .ant-table-column-sorter .ant-table-column-sorter-inner .ant-table-column-sorter-down.on,.ant-table-thead>tr>th .ant-table-column-sorter .ant-table-column-sorter-inner .ant-table-column-sorter-up.on{color:#13c2c2}.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-filters .ant-table-filter-icon.ant-table-filter-open,.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-filters .anticon-filter.ant-table-filter-open,.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-filters:hover .ant-table-filter-icon:hover,.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-filters:hover .anticon-filter:hover{color:rgba(0,0,0,.45)}.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-filters:hover .ant-table-filter-icon:active,.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-filters:hover .anticon-filter:active{color:rgba(0,0,0,.65)}.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-sorters:active .ant-table-column-sorter-down:not(.on),.ant-table-thead>tr>th.ant-table-column-has-actions.ant-table-column-has-sorters:active .ant-table-column-sorter-up:not(.on){color:rgba(0,0,0,.45)}.ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters:hover:before{background:rgba(0,0,0,.04)}.ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0}.ant-table-tbody>tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td,.ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td,.ant-table-thead>tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td,.ant-table-thead>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td{background:#e6fffb}.ant-table-tbody>tr.ant-table-row-selected>td.ant-table-column-sort,.ant-table-tbody>tr:hover.ant-table-row-selected>td,.ant-table-tbody>tr:hover.ant-table-row-selected>td.ant-table-column-sort,.ant-table-thead>tr.ant-table-row-selected>td.ant-table-column-sort,.ant-table-thead>tr:hover.ant-table-row-selected>td,.ant-table-thead>tr:hover.ant-table-row-selected>td.ant-table-column-sort{background:#fafafa}.ant-table-footer{color:rgba(0,0,0,.85);background:#fafafa;border-top:1px solid #f0f0f0}.ant-table-footer:before{background:#fafafa}.ant-table.ant-table-bordered .ant-table-footer{border:1px solid #f0f0f0}.ant-table.ant-table-bordered .ant-table-title{border:1px solid #f0f0f0}.ant-table-without-column-header.ant-table-bordered.ant-table-empty .ant-table-placeholder{border-top:1px solid #f0f0f0}.ant-table-tbody>tr.ant-table-row-selected td{background:#fafafa}.ant-table-thead>tr>th.ant-table-column-sort{background:#f5f5f5}.ant-table-tbody>tr>td.ant-table-column-sort{background:rgba(0,0,0,.01)}.ant-table-header{background:#fafafa}.ant-table-loading .ant-table-body{background:#fff}.ant-table-bordered .ant-table-body>table,.ant-table-bordered .ant-table-fixed-left table,.ant-table-bordered .ant-table-fixed-right table,.ant-table-bordered .ant-table-header>table{border:1px solid #f0f0f0}.ant-table-bordered.ant-table-empty .ant-table-placeholder{border-right:1px solid #f0f0f0;border-left:1px solid #f0f0f0}.ant-table-bordered .ant-table-thead>tr:not(:last-child)>th{border-bottom:1px solid #f0f0f0}.ant-table-bordered .ant-table-tbody>tr>td,.ant-table-bordered .ant-table-thead>tr>th{border-right:1px solid #f0f0f0}.ant-table-placeholder{color:rgba(0,0,0,.25);background:#fff;border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.ant-table-filter-dropdown{background:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-table-filter-dropdown .ant-dropdown-menu-sub{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-table-filter-dropdown .ant-dropdown-menu .ant-dropdown-submenu-contain-selected .ant-dropdown-menu-submenu-title:after{color:#13c2c2;text-shadow:0 0 2px #b5f5ec}.ant-table-filter-dropdown-btns{border-top:1px solid #f0f0f0}.ant-table-filter-dropdown-link{color:#13c2c2}.ant-table-filter-dropdown-link:hover{color:#36cfc9}.ant-table-filter-dropdown-link:active{color:#08979c}.ant-table-selection-menu{background:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-table-selection-down:hover .anticon-down{color:rgba(0,0,0,.6)}.ant-table-row-expand-icon{color:#13c2c2;background:#fff;border:1px solid #f0f0f0}.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{color:#36cfc9}.ant-table-row-expand-icon:active{color:#08979c}tr.ant-table-expanded-row,tr.ant-table-expanded-row:hover{background:#fbfbfb}.ant-table-fixed-header>.ant-table-content>.ant-table-scroll>.ant-table-body{background:#fff}.ant-table-fixed-header .ant-table-scroll .ant-table-header::-webkit-scrollbar{border:1px solid #f0f0f0}.ant-table-bordered.ant-table-fixed-header .ant-table-scroll .ant-table-header::-webkit-scrollbar{border:1px solid #f0f0f0}.ant-table-fixed-left table,.ant-table-fixed-right table{background:#fff}.ant-table-fixed-left{-webkit-box-shadow:6px 0 6px -4px rgba(0,0,0,.15);box-shadow:6px 0 6px -4px rgba(0,0,0,.15)}.ant-table-fixed-right{-webkit-box-shadow:-6px 0 6px -4px rgba(0,0,0,.15);box-shadow:-6px 0 6px -4px rgba(0,0,0,.15)}.ant-table-small{border:1px solid #f0f0f0}.ant-table-small>.ant-table-title{border-bottom:1px solid #f0f0f0}.ant-table-small>.ant-table-content>.ant-table-footer{border-top:1px solid #f0f0f0}.ant-table-small>.ant-table-content>.ant-table-body>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-fixed-left>.ant-table-body-outer>.ant-table-body-inner>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-fixed-left>.ant-table-header>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-fixed-right>.ant-table-body-outer>.ant-table-body-inner>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-fixed-right>.ant-table-header>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-header>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-scroll>.ant-table-body>table>.ant-table-thead>tr,.ant-table-small>.ant-table-content>.ant-table-scroll>.ant-table-header>table>.ant-table-thead>tr{border-bottom:1px solid #f0f0f0}.ant-table-small>.ant-table-content>.ant-table-body>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-fixed-left>.ant-table-body-outer>.ant-table-body-inner>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-fixed-left>.ant-table-header>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-fixed-right>.ant-table-body-outer>.ant-table-body-inner>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-fixed-right>.ant-table-header>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-header>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-scroll>.ant-table-body>table>.ant-table-thead>tr>th.ant-table-column-sort,.ant-table-small>.ant-table-content>.ant-table-scroll>.ant-table-header>table>.ant-table-thead>tr>th.ant-table-column-sort{background-color:rgba(0,0,0,.01)}.ant-table-small.ant-table-bordered .ant-table-title{border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}.ant-table-small.ant-table-bordered .ant-table-content{border-right:1px solid #f0f0f0}.ant-table-small.ant-table-bordered .ant-table-footer{border-top:1px solid #f0f0f0}.ant-table-small.ant-table-bordered .ant-table-fixed-left .ant-table-tbody>tr>td:last-child,.ant-table-small.ant-table-bordered .ant-table-fixed-left .ant-table-thead>tr>th:last-child{border-right:1px solid #f0f0f0}.ant-table-small.ant-table-bordered .ant-table-fixed-right{border-right:1px solid #f0f0f0;border-left:1px solid #f0f0f0}.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{background:#fafafa;border:1px solid #f0f0f0}.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{color:#13c2c2;background:#fff;border-color:#f0f0f0;border-bottom:1px solid #fff}.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-disabled{color:#13c2c2;color:rgba(0,0,0,.25)}.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{color:rgba(0,0,0,.45)}.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x:hover{color:rgba(0,0,0,.85)}.ant-tabs-extra-content .ant-tabs-new-tab{color:rgba(0,0,0,.65);border:1px solid #f0f0f0}.ant-tabs-extra-content .ant-tabs-new-tab:hover{color:#13c2c2;border-color:#13c2c2}.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-left-bar .ant-tabs-tab,.ant-tabs-vertical.ant-tabs-card .ant-tabs-card-bar.ant-tabs-right-bar .ant-tabs-tab{border-bottom:1px solid #f0f0f0}.ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab{border-bottom:1px solid #f0f0f0}.ant-tabs .ant-tabs-card-bar.ant-tabs-bottom-bar .ant-tabs-tab-active{color:#13c2c2}.ant-tabs{color:rgba(0,0,0,.65)}.ant-tabs-ink-bar{background-color:#13c2c2}.ant-tabs-bar{border-bottom:1px solid #f0f0f0}.ant-tabs-bottom .ant-tabs-bottom-bar{border-top:1px solid #f0f0f0}.ant-tabs-tab-next,.ant-tabs-tab-prev{color:rgba(0,0,0,.45)}.ant-tabs-tab-next:hover,.ant-tabs-tab-prev:hover{color:rgba(0,0,0,.65)}.ant-tabs-tab-btn-disabled,.ant-tabs-tab-btn-disabled:hover{color:rgba(0,0,0,.25)}.ant-tabs-nav .ant-tabs-tab:hover{color:#36cfc9}.ant-tabs-nav .ant-tabs-tab:active{color:#08979c}.ant-tabs-nav .ant-tabs-tab-active{color:#13c2c2}.ant-tabs-nav .ant-tabs-tab-disabled,.ant-tabs-nav .ant-tabs-tab-disabled:hover{color:rgba(0,0,0,.25)}.ant-tabs .ant-tabs-left-bar{border-right:1px solid #f0f0f0}.ant-tabs .ant-tabs-left-content{border-left:1px solid #f0f0f0}.ant-tabs .ant-tabs-right-bar{border-left:1px solid #f0f0f0}.ant-tabs .ant-tabs-right-content{border-right:1px solid #f0f0f0}.ant-tag{color:rgba(0,0,0,.65);background:#fafafa}.ant-tag,.ant-tag a,.ant-tag a:hover{color:rgba(0,0,0,.65)}.ant-tag .anticon-close{color:rgba(0,0,0,.45)}.ant-tag .anticon-close:hover{color:rgba(0,0,0,.85)}.ant-tag-has-color,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover,.ant-tag-has-color a,.ant-tag-has-color a:hover{color:#fff}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#13c2c2}.ant-tag-checkable-checked,.ant-tag-checkable:active{color:#fff}.ant-tag-checkable-checked{background-color:#13c2c2}.ant-tag-checkable:active{background-color:#08979c}.ant-tag-pink-inverse{color:#fff}.ant-tag-magenta-inverse{color:#fff}.ant-tag-red{background:#fff1f0}.ant-tag-red-inverse{color:#fff}.ant-tag-volcano-inverse{color:#fff}.ant-tag-orange-inverse{color:#fff}.ant-tag-yellow-inverse{color:#fff}.ant-tag-gold{color:#faad14;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#13c2c2;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime-inverse{color:#fff}.ant-tag-green{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue-inverse{color:#fff}.ant-tag-geekblue-inverse{color:#fff}.ant-tag-purple-inverse{color:#fff}.ant-time-picker-panel{color:rgba(0,0,0,.65)}.ant-time-picker-panel-inner{background-color:#fff;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-time-picker-panel-input-wrap{border-bottom:1px solid #f0f0f0}.ant-time-picker-panel-input-invalid{border-color:#f5222f}.ant-time-picker-panel-select{border-left:1px solid #f0f0f0}.ant-time-picker-panel-select li:focus{color:#13c2c2}.ant-time-picker-panel-select li:hover{background:#e6fffb}li.ant-time-picker-panel-select-option-selected{background:#f5f5f5}li.ant-time-picker-panel-select-option-selected:hover{background:#f5f5f5}li.ant-time-picker-panel-select-option-disabled{color:rgba(0,0,0,.25)}li.ant-time-picker-panel-select-option-disabled:focus{color:rgba(0,0,0,.25)}.ant-time-picker-panel-addon{border-top:1px solid #f0f0f0}.ant-time-picker,.ant-time-picker-input{color:rgba(0,0,0,.65)}.ant-time-picker-input{background-color:#fff}.ant-time-picker-input:focus,.ant-time-picker-input:hover{border-color:#36cfc9}.ant-time-picker-input:focus{-webkit-box-shadow:0 0 0 2px rgba(19,194,194,.2);box-shadow:0 0 0 2px rgba(19,194,194,.2)}.ant-time-picker-input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-time-picker-input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5}.ant-time-picker-clear,.ant-time-picker-icon{color:rgba(0,0,0,.25)}.ant-time-picker-clear .ant-time-picker-clock-icon,.ant-time-picker-icon .ant-time-picker-clock-icon{color:rgba(0,0,0,.25)}.ant-time-picker-clear{background:#fff}.ant-time-picker-clear:hover{color:rgba(0,0,0,.45)}.ant-timeline{color:rgba(0,0,0,.65)}.ant-timeline-item-tail{border-left:2px solid #f0f0f0}.ant-timeline-item-head{background-color:#fff}.ant-timeline-item-head-blue{color:#13c2c2;border-color:#13c2c2}.ant-timeline-item-head-red{color:#f5222f;border-color:#f5222f}.ant-timeline-item-head-green{color:#52c41a;border-color:#52c41a}.ant-timeline-item-head-gray{color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail{border-left:2px dotted #f0f0f0}.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail{border-left:2px dotted #f0f0f0}.ant-tooltip{color:rgba(0,0,0,.65)}.ant-tooltip-inner{color:#fff;background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-tooltip-arrow:before{background-color:rgba(0,0,0,.75)}.ant-tooltip-placement-top .ant-tooltip-arrow:before,.ant-tooltip-placement-topLeft .ant-tooltip-arrow:before,.ant-tooltip-placement-topRight .ant-tooltip-arrow:before{-webkit-box-shadow:3px 3px 7px rgba(0,0,0,.07);box-shadow:3px 3px 7px rgba(0,0,0,.07)}.ant-tooltip-placement-right .ant-tooltip-arrow:before,.ant-tooltip-placement-rightBottom .ant-tooltip-arrow:before,.ant-tooltip-placement-rightTop .ant-tooltip-arrow:before{-webkit-box-shadow:-3px 3px 7px rgba(0,0,0,.07);box-shadow:-3px 3px 7px rgba(0,0,0,.07)}.ant-tooltip-placement-left .ant-tooltip-arrow:before,.ant-tooltip-placement-leftBottom .ant-tooltip-arrow:before,.ant-tooltip-placement-leftTop .ant-tooltip-arrow:before{-webkit-box-shadow:3px -3px 7px rgba(0,0,0,.07);box-shadow:3px -3px 7px rgba(0,0,0,.07)}.ant-tooltip-placement-bottom .ant-tooltip-arrow:before,.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow:before,.ant-tooltip-placement-bottomRight .ant-tooltip-arrow:before{-webkit-box-shadow:-3px -3px 7px rgba(0,0,0,.07);box-shadow:-3px -3px 7px rgba(0,0,0,.07)}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content>.ant-table-body>table>.ant-table-thead>tr>th{background:#fafafa}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content .ant-table-row:last-child td{border-bottom:1px solid #f0f0f0}.ant-transfer{color:rgba(0,0,0,.65)}.ant-transfer-disabled .ant-transfer-list{background:#f5f5f5}.ant-transfer-list-search-action{color:rgba(0,0,0,.25)}.ant-transfer-list-search-action .anticon{color:rgba(0,0,0,.25)}.ant-transfer-list-search-action .anticon:hover{color:rgba(0,0,0,.45)}.ant-transfer-list-header{color:rgba(0,0,0,.65);background:#fff;border-bottom:1px solid #f0f0f0}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background-color:#e6fffb}.ant-transfer-list-content-item-disabled{color:rgba(0,0,0,.25)}.ant-transfer-list-body-not-found{color:rgba(0,0,0,.25)}.ant-transfer-list-footer{border-top:1px solid #f0f0f0}.ant-tree.ant-tree-directory .ant-tree-child-tree>li span.ant-tree-node-content-wrapper:hover:before,.ant-tree.ant-tree-directory>li span.ant-tree-node-content-wrapper:hover:before{background:#e6fffb}.ant-tree.ant-tree-directory .ant-tree-child-tree>li span.ant-tree-node-content-wrapper.ant-tree-node-selected,.ant-tree.ant-tree-directory>li span.ant-tree-node-content-wrapper.ant-tree-node-selected{color:#fff}.ant-tree.ant-tree-directory .ant-tree-child-tree>li.ant-tree-treenode-selected>span.ant-tree-switcher,.ant-tree.ant-tree-directory>li.ant-tree-treenode-selected>span.ant-tree-switcher{color:#fff}.ant-tree.ant-tree-directory .ant-tree-child-tree>li.ant-tree-treenode-selected>span.ant-tree-checkbox .ant-tree-checkbox-inner,.ant-tree.ant-tree-directory>li.ant-tree-treenode-selected>span.ant-tree-checkbox .ant-tree-checkbox-inner{border-color:#13c2c2}.ant-tree.ant-tree-directory .ant-tree-child-tree>li.ant-tree-treenode-selected>span.ant-tree-checkbox.ant-tree-checkbox-checked:after,.ant-tree.ant-tree-directory>li.ant-tree-treenode-selected>span.ant-tree-checkbox.ant-tree-checkbox-checked:after{border-color:#fff}.ant-tree.ant-tree-directory .ant-tree-child-tree>li.ant-tree-treenode-selected>span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner,.ant-tree.ant-tree-directory>li.ant-tree-treenode-selected>span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner{background:#fff}.ant-tree.ant-tree-directory .ant-tree-child-tree>li.ant-tree-treenode-selected>span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after,.ant-tree.ant-tree-directory>li.ant-tree-treenode-selected>span.ant-tree-checkbox.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:#13c2c2}.ant-tree.ant-tree-directory .ant-tree-child-tree>li.ant-tree-treenode-selected>span.ant-tree-node-content-wrapper:before,.ant-tree.ant-tree-directory>li.ant-tree-treenode-selected>span.ant-tree-node-content-wrapper:before{background:#13c2c2}.ant-tree-checkbox{color:rgba(0,0,0,.65)}.ant-tree-checkbox-input:focus+.ant-tree-checkbox-inner,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,.ant-tree-checkbox:hover .ant-tree-checkbox-inner{border-color:#13c2c2}.ant-tree-checkbox-checked:after{border:1px solid #13c2c2}.ant-tree-checkbox-inner{background-color:#fff}.ant-tree-checkbox-inner:after{border:2px solid #fff}.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border:2px solid #fff;border-top:0;border-left:0;}.ant-tree-checkbox-checked .ant-tree-checkbox-inner{background-color:#13c2c2;border-color:#13c2c2}.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:rgba(0,0,0,.25)}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner{background-color:#f5f5f5}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{border-color:#f5f5f5}.ant-tree-checkbox-disabled+span{color:rgba(0,0,0,.25)}.ant-tree-checkbox-wrapper{color:rgba(0,0,0,.65)}.ant-tree-checkbox-group{color:rgba(0,0,0,.65)}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner{background-color:#fff}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after{background-color:#13c2c2}.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-tree{color:rgba(0,0,0,.65)}.ant-tree li.drag-over>span[draggable]{color:#fff;background-color:#13c2c2}.ant-tree li.drag-over-gap-top>span[draggable]{border-top-color:#13c2c2}.ant-tree li.drag-over-gap-bottom>span[draggable]{border-bottom-color:#13c2c2}.ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_close .ant-tree-switcher-loading-icon,.ant-tree li.ant-tree-treenode-loading span.ant-tree-switcher.ant-tree-switcher_open .ant-tree-switcher-loading-icon{color:#13c2c2}.ant-tree li .ant-tree-node-content-wrapper{color:rgba(0,0,0,.65)}.ant-tree li .ant-tree-node-content-wrapper:hover{background-color:#e6fffb}.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:#b5f5ec}li.ant-tree-treenode-disabled>.ant-tree-node-content-wrapper,li.ant-tree-treenode-disabled>.ant-tree-node-content-wrapper span,li.ant-tree-treenode-disabled>span:not(.ant-tree-switcher){color:rgba(0,0,0,.25)}.ant-tree.ant-tree-show-line li span.ant-tree-switcher{color:rgba(0,0,0,.45);background:#fff}.ant-select-tree-checkbox{color:rgba(0,0,0,.65)}.ant-select-tree-checkbox-input:focus+.ant-select-tree-checkbox-inner,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner{border-color:#13c2c2}.ant-select-tree-checkbox-checked:after{border:1px solid #13c2c2}.ant-select-tree-checkbox-inner{background-color:#fff}.ant-select-tree-checkbox-inner:after{border:2px solid #fff}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border:2px solid #fff}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#13c2c2;border-color:#13c2c2}.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border-color:rgba(0,0,0,.25)}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner{background-color:#f5f5f5}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{border-color:#f5f5f5}.ant-select-tree-checkbox-disabled+span{color:rgba(0,0,0,.25)}.ant-select-tree-checkbox-wrapper{color:rgba(0,0,0,.65)}.ant-select-tree-checkbox-group{color:rgba(0,0,0,.65)}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#fff}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after{background-color:#13c2c2}.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{background-color:rgba(0,0,0,.25);border-color:rgba(0,0,0,.25)}.ant-select-tree{color:rgba(0,0,0,.65)}.ant-select-tree li .ant-select-tree-node-content-wrapper{color:rgba(0,0,0,.65)}.ant-select-tree li .ant-select-tree-node-content-wrapper:hover{background-color:#e6fffb}.ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected{background-color:#b5f5ec}.ant-select-tree li span.ant-select-icon_loading .ant-select-switcher-loading-icon{color:#13c2c2}.ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close .ant-select-switcher-loading-icon,.ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open .ant-select-switcher-loading-icon{color:#13c2c2}li.ant-select-tree-treenode-disabled>.ant-select-tree-node-content-wrapper,li.ant-select-tree-treenode-disabled>.ant-select-tree-node-content-wrapper span,li.ant-select-tree-treenode-disabled>span:not(.ant-select-tree-switcher){color:rgba(0,0,0,.25)}.ant-select-tree-dropdown{color:rgba(0,0,0,.65)}.ant-select-tree-dropdown .ant-select-dropdown-search{background:#fff}.ant-select-tree-dropdown .ant-select-not-found{color:rgba(0,0,0,.25)}.ant-upload{color:rgba(0,0,0,.65)}.ant-upload.ant-upload-select-picture-card{background-color:#fafafa}.ant-upload.ant-upload-select-picture-card:hover{border-color:#13c2c2}.ant-upload.ant-upload-drag{background:#fafafa}.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled){border-color:#08979c}.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover{border-color:#36cfc9}.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon{color:#36cfc9}.ant-upload.ant-upload-drag p.ant-upload-text{color:rgba(0,0,0,.85)}.ant-upload.ant-upload-drag p.ant-upload-hint{color:rgba(0,0,0,.45)}.ant-upload.ant-upload-drag .anticon-plus{color:rgba(0,0,0,.25)}.ant-upload.ant-upload-drag .anticon-plus:hover,.ant-upload.ant-upload-drag:hover .anticon-plus{color:rgba(0,0,0,.45)}.ant-upload-list{color:rgba(0,0,0,.65)}.ant-upload-list-item-card-actions .anticon{color:rgba(0,0,0,.45)}.ant-upload-list-item-info .anticon-loading,.ant-upload-list-item-info .anticon-paper-clip{color:rgba(0,0,0,.45)}.ant-upload-list-item .anticon-close{color:rgba(0,0,0,.45)}.ant-upload-list-item .anticon-close:hover{color:rgba(0,0,0,.65)}.ant-upload-list-item:hover .ant-upload-list-item-info{background-color:#e6fffb}.ant-upload-list-item-error,.ant-upload-list-item-error .ant-upload-list-item-name,.ant-upload-list-item-error .anticon-paper-clip{color:#f5222f}.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon{color:#f5222f}.ant-upload-list-picture-card .ant-upload-list-item-error,.ant-upload-list-picture .ant-upload-list-item-error{border-color:#f5222f}.ant-upload-list-picture-card .ant-upload-list-item-info:before{background-color:rgba(0,0,0,.5)}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye-o:hover{color:#fff}.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item{background-color:#fafafa}.ant-upload-list-picture-card .ant-upload-list-item-uploading-text{color:rgba(0,0,0,.45)}.ant-upload-list .ant-upload-success-icon{color:#52c41a}.ant-time-picker-panel-input{background-color:#fff}.ant-table-thead tr th.ant-table-column-has-actions.ant-table-column-has-filters .anticon-filter.ant-table-filter-open,.ant-table-thead tr th.ant-table-column-has-actions.ant-table-column-has-filters:hover .anticon-filter,.ant-table-thead tr th.ant-table-column-has-actions.ant-table-column-has-filters:hover .anticon-filter:hover,.ant-table-thead tr th.ant-table-column-has-actions.ant-table-column-has-sorters:hover{background-color:#f5f5f5}.ant-menu-inline-collapsed-tooltip a{color:#fff}.code-box-meta .demo-description>h4,.code-box-meta>h4{background:#fff}.DataType::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-fd01d40a]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-fd01d40a]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-fd01d40a]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-fd01d40a]{background:#13c2c2}#nprogress .peg[data-v-fd01d40a]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-fd01d40a]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-1e811a1a]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1e811a1a]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1e811a1a]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1e811a1a]{background:#13c2c2}#nprogress .peg[data-v-1e811a1a]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1e811a1a]{border-top-color:#13c2c2;border-left-color:#13c2c2}.account-settings-info-main .account-settings-info-right .account-settings-info-title[data-v-1e811a1a]{color:rgba(0,0,0,.85)}.beauty-scroll[data-v-9abb35d8]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-9abb35d8]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-9abb35d8]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-9abb35d8]{background:#13c2c2}#nprogress .peg[data-v-9abb35d8]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-9abb35d8]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-1262c945]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1262c945]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1262c945]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1262c945]{background:#13c2c2}#nprogress .peg[data-v-1262c945]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1262c945]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-3d969bac]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-3d969bac]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-3d969bac]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-3d969bac]{background:#13c2c2}#nprogress .peg[data-v-3d969bac]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-3d969bac]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-3ce5d778]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-3ce5d778]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-3ce5d778]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-3ce5d778]{background:#13c2c2}#nprogress .peg[data-v-3ce5d778]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-3ce5d778]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-3ce5d778] .ant-menu-horizontal{border-bottom:1px solid #f0f0f0}.simple-keyboard{background:#fff;-webkit-box-shadow:0 4px 0 #b2b2b2,0 7px 16px rgba(0,0,0,.6);box-shadow:0 4px 0 #b2b2b2,0 7px 16px rgba(0,0,0,.6)}.beauty-scroll[data-v-33a29f64]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-33a29f64]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-33a29f64]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-33a29f64]{background:#13c2c2}#nprogress .peg[data-v-33a29f64]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-33a29f64]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-7b71bb32]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-7b71bb32]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-7b71bb32]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-7b71bb32]{background:#13c2c2}#nprogress .peg[data-v-7b71bb32]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-7b71bb32]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-7b71bb32] .ant-modal-header{border-bottom:0 solid #f0f0f0}[data-v-7b71bb32] .ant-modal-content{background-color:#fff}[data-v-7b71bb32]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-3357a0d0]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-3357a0d0]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-3357a0d0]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-3357a0d0]{background:#13c2c2}#nprogress .peg[data-v-3357a0d0]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-3357a0d0]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-4edd4c9d]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-4edd4c9d]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-4edd4c9d]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-4edd4c9d]{background:#13c2c2}#nprogress .peg[data-v-4edd4c9d]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-4edd4c9d]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-886e5e6a]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-886e5e6a]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-886e5e6a]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-886e5e6a]{background:#13c2c2}#nprogress .peg[data-v-886e5e6a]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-886e5e6a]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-f480d006]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-f480d006]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-f480d006]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-f480d006]{background:#13c2c2}#nprogress .peg[data-v-f480d006]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-f480d006]{border-top-color:#13c2c2;border-left-color:#13c2c2}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-886990ee]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-886990ee]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-886990ee]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-886990ee]{background:#13c2c2}#nprogress .peg[data-v-886990ee]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-886990ee]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-9b86f478]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-9b86f478]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-9b86f478]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-9b86f478]{background:#13c2c2}#nprogress .peg[data-v-9b86f478]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-9b86f478]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-2419914c]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-2419914c]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-2419914c]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-2419914c]{background:#13c2c2}#nprogress .peg[data-v-2419914c]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-2419914c]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-119af18d]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-119af18d]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-119af18d]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-119af18d]{background:#13c2c2}#nprogress .peg[data-v-119af18d]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-119af18d]{border-top-color:#13c2c2;border-left-color:#13c2c2}.video-close[data-v-119af18d],.video-title[data-v-119af18d]{color:#fff}.s-full[data-v-119af18d]{color:#fff}.beauty-scroll[data-v-202a69da]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-202a69da]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-202a69da]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-202a69da]{background:#13c2c2}#nprogress .peg[data-v-202a69da]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-202a69da]{border-top-color:#13c2c2;border-left-color:#13c2c2}.video-close[data-v-202a69da],.video-title[data-v-202a69da]{color:#fff}.s-full[data-v-202a69da]{color:#fff}.beauty-scroll[data-v-2ac8b418]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-2ac8b418]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-2ac8b418]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-2ac8b418]{background:#13c2c2}#nprogress .peg[data-v-2ac8b418]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-2ac8b418]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-8409d5d2]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-8409d5d2]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-8409d5d2]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-8409d5d2]{background:#13c2c2}#nprogress .peg[data-v-8409d5d2]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-8409d5d2]{border-top-color:#13c2c2;border-left-color:#13c2c2}.video-close[data-v-8409d5d2],.video-title[data-v-8409d5d2]{color:#fff}.s-full[data-v-8409d5d2]{color:#fff}.ptz .outer-ring{background-color:#fff}.ptz .outer-ring .inner-ring{background-color:#fff}.s-full{color:#fff}.beauty-scroll[data-v-b01d4edc]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-b01d4edc]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-b01d4edc]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-b01d4edc]{background:#13c2c2}#nprogress .peg[data-v-b01d4edc]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-b01d4edc]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-3db19dbd]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-3db19dbd]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-3db19dbd]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-3db19dbd]{background:#13c2c2}#nprogress .peg[data-v-3db19dbd]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-3db19dbd]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-5aa2cf91]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-5aa2cf91]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-5aa2cf91]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-5aa2cf91]{background:#13c2c2}#nprogress .peg[data-v-5aa2cf91]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-5aa2cf91]{border-top-color:#13c2c2;border-left-color:#13c2c2}.BMap_bubble_title{color:#fff}.BMap_bubble_content{background-color:#fff}.beauty-scroll[data-v-13102f28]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-13102f28]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-13102f28]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-13102f28]{background:#13c2c2}#nprogress .peg[data-v-13102f28]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-13102f28]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-13102f28] .ant-select-dropdown-menu-item-group-title{color:rgba(0,0,0,.45)}.code-box-meta>h4[data-v-13102f28],[data-v-13102f28] .code-box-meta .demo-description>h4{background:#fff}.beauty-scroll[data-v-1af7aa97]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1af7aa97]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1af7aa97]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1af7aa97]{background:#13c2c2}#nprogress .peg[data-v-1af7aa97]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1af7aa97]{border-top-color:#13c2c2;border-left-color:#13c2c2}.code-box-meta>h4[data-v-1af7aa97],[data-v-1af7aa97] .code-box-meta .demo-description>h4{background:#fff}.beauty-scroll[data-v-0e696810]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-0e696810]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-0e696810]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-0e696810]{background:#13c2c2}#nprogress .peg[data-v-0e696810]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-0e696810]{border-top-color:#13c2c2;border-left-color:#13c2c2}.code-box-meta>h4[data-v-0e696810],[data-v-0e696810] .code-box-meta .demo-description>h4{background:#fff}.vue-hover-mask{background-color:#fff}.vue-hover-mask_action{color:#fff;background-color:rgba(0,0,0,.4)}.beauty-scroll[data-v-53c6e954]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-53c6e954]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-53c6e954]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-53c6e954]{background:#13c2c2}#nprogress .peg[data-v-53c6e954]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-53c6e954]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-53c6e954] .ant-tabs-nav .ant-tabs-tab:hover{color:#13c2c2}[data-v-53c6e954] .ant-tabs-nav .ant-tabs-tab-active{color:#13c2c2;background-color:#e6fffb}.list-content-item[data-v-53c6e954]{color:rgba(0,0,0,.45)}.beauty-scroll[data-v-6dbb16cc]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-6dbb16cc]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-6dbb16cc]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-6dbb16cc]{background:#13c2c2}#nprogress .peg[data-v-6dbb16cc]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-6dbb16cc]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-19ad095d]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-19ad095d]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-19ad095d]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-19ad095d]{background:#13c2c2}#nprogress .peg[data-v-19ad095d]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-19ad095d]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-48f425c2]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-48f425c2]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-48f425c2]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-48f425c2]{background:#13c2c2}#nprogress .peg[data-v-48f425c2]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-48f425c2]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-48f425c2] .ant-modal-header{border-bottom:0 solid #f0f0f0}[data-v-48f425c2] .ant-modal-content{background-color:#fff}[data-v-48f425c2]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-1d703557]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1d703557]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1d703557]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1d703557]{background:#13c2c2}#nprogress .peg[data-v-1d703557]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1d703557]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-7d395a20]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-7d395a20]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-7d395a20]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-7d395a20]{background:#13c2c2}#nprogress .peg[data-v-7d395a20]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-7d395a20]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-31daaf67]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-31daaf67]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-31daaf67]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-31daaf67]{background:#13c2c2}#nprogress .peg[data-v-31daaf67]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-31daaf67]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-cfd4f378]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-cfd4f378]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-cfd4f378]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-cfd4f378]{background:#13c2c2}#nprogress .peg[data-v-cfd4f378]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-cfd4f378]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-8abf2798]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-8abf2798]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-8abf2798]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-8abf2798]{background:#13c2c2}#nprogress .peg[data-v-8abf2798]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-8abf2798]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ant-upload-preview .upload-icon[data-v-8abf2798]{border:1px solid rgba(0,0,0,.2)}.ant-upload-preview .mask[data-v-8abf2798]{background:rgba(0,0,0,.4)}.beauty-scroll[data-v-2fd61b6d]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-2fd61b6d]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-2fd61b6d]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-2fd61b6d]{background:#13c2c2}#nprogress .peg[data-v-2fd61b6d]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-2fd61b6d]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ant-upload-preview .upload-icon[data-v-2fd61b6d]{border:1px solid rgba(0,0,0,.2)}.ant-upload-preview .mask[data-v-2fd61b6d]{background:rgba(0,0,0,.4)}.beauty-scroll[data-v-0626e1d7]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-0626e1d7]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-0626e1d7]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-0626e1d7]{background:#13c2c2}#nprogress .peg[data-v-0626e1d7]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-0626e1d7]{border-top-color:#13c2c2;border-left-color:#13c2c2}.account-settings-info-left[data-v-0626e1d7]{border-right:1px solid #f0f2f5}.account-settings-info-left.mobile[data-v-0626e1d7]{border-bottom:1px solid #f0f2f5}.footer[data-v-0626e1d7]{border-top:1px solid #f0f2f5}.beauty-scroll[data-v-6fa671e2]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-6fa671e2]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-6fa671e2]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-6fa671e2]{background:#13c2c2}#nprogress .peg[data-v-6fa671e2]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-6fa671e2]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-1f76a225]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1f76a225]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1f76a225]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1f76a225]{background:#13c2c2}#nprogress .peg[data-v-1f76a225]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1f76a225]{border-top-color:#13c2c2;border-left-color:#13c2c2}.page-header[data-v-1f76a225]{background:#fff}.page-header .page-header-wide .detail .main .title[data-v-1f76a225]{color:rgba(0,0,0,.85)}.page-header .page-header-wide .detail .main .content[data-v-1f76a225]{color:rgba(0,0,0,.45)}.beauty-scroll[data-v-38fc72ea]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-38fc72ea]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-38fc72ea]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-38fc72ea]{background:#13c2c2}#nprogress .peg[data-v-38fc72ea]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-38fc72ea]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-4c0d1130]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-4c0d1130]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-4c0d1130]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-4c0d1130]{background:#13c2c2}#nprogress .peg[data-v-4c0d1130]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-4c0d1130]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-6d3cd384]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-6d3cd384]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-6d3cd384]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-6d3cd384]{background:#13c2c2}#nprogress .peg[data-v-6d3cd384]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-6d3cd384]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-b9c09c60]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-b9c09c60]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-b9c09c60]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-b9c09c60]{background:#13c2c2}#nprogress .peg[data-v-b9c09c60]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-b9c09c60]{border-top-color:#13c2c2;border-left-color:#13c2c2}.textarea-wrapper .m-count[data-v-b9c09c60]{background:#fff}.beauty-scroll[data-v-1766f053]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1766f053]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1766f053]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1766f053]{background:#13c2c2}#nprogress .peg[data-v-1766f053]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1766f053]{border-top-color:#13c2c2;border-left-color:#13c2c2}.code-box-meta>h4[data-v-1766f053],[data-v-1766f053] .code-box-meta .demo-description>h4{background:#fff}.beauty-scroll[data-v-028d9ba5]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-028d9ba5]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-028d9ba5]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-028d9ba5]{background:#13c2c2}#nprogress .peg[data-v-028d9ba5]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-028d9ba5]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-028d9ba5] .ant-card-bordered{border:1px solid #f0f0f0}.video-close[data-v-028d9ba5],.video-title[data-v-028d9ba5]{color:#fff}.s-full[data-v-028d9ba5]{color:#fff}.beauty-scroll[data-v-206e07da]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-206e07da]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-206e07da]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-206e07da]{background:#13c2c2}#nprogress .peg[data-v-206e07da]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-206e07da]{border-top-color:#13c2c2;border-left-color:#13c2c2}.exception-page[data-v-206e07da]{background-color:#fff}.exception-page .content .desc[data-v-206e07da]{color:rgba(0,0,0,.45)}.beauty-scroll[data-v-4d545c90]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-4d545c90]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-4d545c90]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-4d545c90]{background:#13c2c2}#nprogress .peg[data-v-4d545c90]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-4d545c90]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-3736fe5a]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-3736fe5a]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-3736fe5a]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-3736fe5a]{background:#13c2c2}#nprogress .peg[data-v-3736fe5a]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-3736fe5a]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-7a543690]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-7a543690]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-7a543690]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-7a543690]{background:#13c2c2}#nprogress .peg[data-v-7a543690]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-7a543690]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-5d74b1f8]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-5d74b1f8]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-5d74b1f8]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-5d74b1f8]{background:#13c2c2}#nprogress .peg[data-v-5d74b1f8]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-5d74b1f8]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-63c094a6]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-63c094a6]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-63c094a6]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-63c094a6]{background:#13c2c2}#nprogress .peg[data-v-63c094a6]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-63c094a6]{border-top-color:#13c2c2;border-left-color:#13c2c2}.common-layout[data-v-63c094a6]{background-color:#f0f2f5}.beauty-scroll[data-v-6768484b]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-6768484b]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-6768484b]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-6768484b]{background:#13c2c2}#nprogress .peg[data-v-6768484b]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-6768484b]{border-top-color:#13c2c2;border-left-color:#13c2c2}.header[data-v-6768484b]{color:#fff}.content[data-v-6768484b]{background-color:#fff}.middle_right[data-v-6768484b]{background:#fff}.mr_box h2[data-v-6768484b]{color:#13c2c2}.login[data-v-6768484b]{background:#13c2c2;color:#fff}.custom-control-input:not(:disabled):active~.custom-control-label[data-v-6768484b]:before{color:#fff}.custom-control-input:checked~.custom-control-label[data-v-6768484b]:before{color:#fff}.custom-control-label[data-v-6768484b]:before{background-color:#fff}.beauty-scroll[data-v-14f94718]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-14f94718]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-14f94718]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-14f94718]{background:#13c2c2}#nprogress .peg[data-v-14f94718]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-14f94718]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-1ab90901]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1ab90901]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1ab90901]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1ab90901]{background:#13c2c2}#nprogress .peg[data-v-1ab90901]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1ab90901]{border-top-color:#13c2c2;border-left-color:#13c2c2}.code-box-meta .demo-description>h4[data-v-1ab90901],.code-box-meta>h4[data-v-1ab90901]{background:#fff}.beauty-scroll[data-v-645c15d1]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-645c15d1]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-645c15d1]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-645c15d1]{background:#13c2c2}#nprogress .peg[data-v-645c15d1]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-645c15d1]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-1b26c767]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1b26c767]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1b26c767]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1b26c767]{background:#13c2c2}#nprogress .peg[data-v-1b26c767]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1b26c767]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-05a7f8e0]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-05a7f8e0]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-05a7f8e0]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-05a7f8e0]{background:#13c2c2}#nprogress .peg[data-v-05a7f8e0]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-05a7f8e0]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-bed92a58]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-bed92a58]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-bed92a58]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-bed92a58]{background:#13c2c2}#nprogress .peg[data-v-bed92a58]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-bed92a58]{border-top-color:#13c2c2;border-left-color:#13c2c2}.metrics-card[data-v-bed92a58]{-webkit-box-shadow:0 4px 12px rgba(0,0,0,.05);box-shadow:0 4px 12px rgba(0,0,0,.05)}.metrics-card[data-v-bed92a58]:hover{-webkit-box-shadow:0 8px 24px rgba(0,0,0,.1);box-shadow:0 8px 24px rgba(0,0,0,.1)}.metrics-card-l[data-v-bed92a58]{-webkit-box-shadow:0 4px 12px rgba(0,0,0,.05);box-shadow:0 4px 12px rgba(0,0,0,.05)}.beauty-scroll[data-v-1438b4ab]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-1438b4ab]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-1438b4ab]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-1438b4ab]{background:#13c2c2}#nprogress .peg[data-v-1438b4ab]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-1438b4ab]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-1438b4ab] .ant-modal-header{border-bottom:0 solid #f0f0f0}[data-v-1438b4ab] .ant-modal-footer{border-top:0 solid #f0f0f0}.project-card .operate-box .operate-btn button i[data-v-1438b4ab]{color:#13c2c2}[data-v-1438b4ab] .ant-card-hoverable:hover{border:1px solid #13c2c2;-webkit-box-shadow:10px 5px 5px rgba(0,0,0,.09);box-shadow:10px 5px 5px rgba(0,0,0,.09)}[data-v-1438b4ab] .ant-card-head{border-bottom:0 solid #f0f0f0}.project-card[data-v-1438b4ab]{background-color:#fff}.project-list .project-item .group{color:rgba(0,0,0,.65)}.project-list .project-item .group:hover{color:#13c2c2}.project-list .project-item .datetime{color:rgba(0,0,0,.45)}.members a{color:rgba(0,0,0,.65)}.members a:hover{color:#13c2c2}.main-container,.main-wrapper{background:#fff}.beauty-scroll[data-v-74bea729]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-74bea729]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-74bea729]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-74bea729]{background:#13c2c2}#nprogress .peg[data-v-74bea729]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-74bea729]{border-top-color:#13c2c2;border-left-color:#13c2c2}.admin-header[data-v-74bea729]{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);background:#fff}.admin-header.dark[data-v-74bea729]{background:#032121;color:#fff}.admin-header.night .head-menu[data-v-74bea729]{background:#fff}.admin-header .admin-header-wide .trigger[data-v-74bea729]:hover{color:#13c2c2}.admin-header .admin-header-wide .admin-header-right.light .header-item[data-v-74bea729]:hover{background-color:rgba(0,0,0,.025)}.admin-header .admin-header-wide .admin-header-right.dark .header-item[data-v-74bea729]:hover{background-color:#08979c}.beauty-scroll[data-v-17a11d2e]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-17a11d2e]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-17a11d2e]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-17a11d2e]{background:#13c2c2}#nprogress .peg[data-v-17a11d2e]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-17a11d2e]{border-top-color:#13c2c2;border-left-color:#13c2c2}.admin-layout .setting[data-v-17a11d2e]{background-color:#13c2c2;color:#fff;-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.15);box-shadow:-2px 0 8px rgba(0,0,0,.15)}.beauty-scroll[data-v-02e8ced2]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-02e8ced2]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-02e8ced2]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-02e8ced2]{background:#13c2c2}#nprogress .peg[data-v-02e8ced2]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-02e8ced2]{border-top-color:#13c2c2;border-left-color:#13c2c2}.account-settings-info-main .account-settings-info-right .account-settings-info-title[data-v-02e8ced2]{color:rgba(0,0,0,.85)}[data-v-79b45538] .tree-node-selected{background:#13c2c2;color:#fff}.TreeBox[data-v-79b45538]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-5069da3d]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-5069da3d]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-5069da3d]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-5069da3d]{background:#13c2c2}#nprogress .peg[data-v-5069da3d]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-5069da3d]{border-top-color:#13c2c2;border-left-color:#13c2c2}.mymenu[data-v-05050e32]{background:#fafafa}.beauty-scroll[data-v-5a24d60e]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-5a24d60e]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-5a24d60e]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-5a24d60e]{background:#13c2c2}#nprogress .peg[data-v-5a24d60e]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-5a24d60e]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-5a24d60e] .x6-widget-transform>div{background-color:#fff}.minimap-container[data-v-5a24d60e]{-webkit-box-shadow:0 0 10px rgba(0,0,0,.2);box-shadow:0 0 10px rgba(0,0,0,.2)}[data-v-5a24d60e]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-77756f08]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-77756f08]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-77756f08]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-77756f08]{background:#13c2c2}#nprogress .peg[data-v-77756f08]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-77756f08]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ism-toolbox[data-v-77756f08]{background-color:#fff}[data-v-77756f08]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-38a546d3]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-38a546d3]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-38a546d3]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-38a546d3]{background:#13c2c2}#nprogress .peg[data-v-38a546d3]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-38a546d3]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ism-toolbox[data-v-38a546d3]{background-color:#fff}[data-v-38a546d3]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-0064b58f]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-0064b58f]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-0064b58f]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-0064b58f]{background:#13c2c2}#nprogress .peg[data-v-0064b58f]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-0064b58f]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-718bf2f2]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-718bf2f2]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-718bf2f2]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-718bf2f2]{background:#13c2c2}#nprogress .peg[data-v-718bf2f2]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-718bf2f2]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ism-toolbox[data-v-718bf2f2]{background-color:#fff}[data-v-718bf2f2]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}.beauty-scroll[data-v-774090cc]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-774090cc]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-774090cc]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-774090cc]{background:#13c2c2}#nprogress .peg[data-v-774090cc]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-774090cc]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ism-toolbox[data-v-774090cc]{background-color:#fff}[data-v-774090cc]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}[data-v-33fd2cfc] .ant-tabs-nav-wrap{background-color:#fff;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),to(#fff));background:linear-gradient(180deg,#fff 0,#fff)}[data-v-33fd2cfc]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);box-shadow:inset 0 0 5px rgba(0,0,0,.2)}[data-v-9d9abd42] .ant-card-body{background:#fff}.beauty-scroll[data-v-38f53dd0]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-38f53dd0]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-38f53dd0]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-38f53dd0]{background:#13c2c2}#nprogress .peg[data-v-38f53dd0]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-38f53dd0]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-8d656874]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-8d656874]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-8d656874]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-8d656874]{background:#13c2c2}#nprogress .peg[data-v-8d656874]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-8d656874]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-24163eb7]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-24163eb7]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-24163eb7]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-24163eb7]{background:#13c2c2}#nprogress .peg[data-v-24163eb7]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-24163eb7]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-62650bbe]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-62650bbe]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-62650bbe]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-62650bbe]{background:#13c2c2}#nprogress .peg[data-v-62650bbe]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-62650bbe]{border-top-color:#13c2c2;border-left-color:#13c2c2}.account-settings-info-main .account-settings-info-right .account-settings-info-title[data-v-62650bbe]{color:rgba(0,0,0,.85)}.beauty-scroll[data-v-31b4eb0c]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-31b4eb0c]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-31b4eb0c]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-31b4eb0c]{background:#13c2c2}#nprogress .peg[data-v-31b4eb0c]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-31b4eb0c]{border-top-color:#13c2c2;border-left-color:#13c2c2}.header[data-v-31b4eb0c]{color:#fff}.content[data-v-31b4eb0c]{background-color:#fff}.middle_right[data-v-31b4eb0c]{background:#fff}.mr_box h2[data-v-31b4eb0c]{color:#13c2c2}.login[data-v-31b4eb0c]{background:#13c2c2;color:#fff}.custom-control-input:not(:disabled):active~.custom-control-label[data-v-31b4eb0c]:before{color:#fff}.custom-control-input:checked~.custom-control-label[data-v-31b4eb0c]:before{color:#fff}.custom-control-label[data-v-31b4eb0c]:before{background-color:#fff}.beauty-scroll[data-v-159fe140]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-159fe140]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-159fe140]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-159fe140]{background:#13c2c2}#nprogress .peg[data-v-159fe140]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-159fe140]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-159fe140] #displayCard .ant-card-body{border-top:1px solid #f0f0f0}[data-v-159fe140] #displayCard .ant-card-head{background-color:#fff;border-bottom:1px solid #f0f0f0}[data-v-159fe140] .ant-card-actions{background-color:#fff}.beauty-scroll[data-v-dbe0a254]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-dbe0a254]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-dbe0a254]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-dbe0a254]{background:#13c2c2}#nprogress .peg[data-v-dbe0a254]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-dbe0a254]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-63ea8420]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-63ea8420]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-63ea8420]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-63ea8420]{background:#13c2c2}#nprogress .peg[data-v-63ea8420]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-63ea8420]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-952f1faa]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-952f1faa]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-952f1faa]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-952f1faa]{background:#13c2c2}#nprogress .peg[data-v-952f1faa]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-952f1faa]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-3cc00772]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-3cc00772]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-3cc00772]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-3cc00772]{background:#13c2c2}#nprogress .peg[data-v-3cc00772]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-3cc00772]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-503479a6]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-503479a6]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-503479a6]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-503479a6]{background:#13c2c2}#nprogress .peg[data-v-503479a6]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-503479a6]{border-top-color:#13c2c2;border-left-color:#13c2c2}.beauty-scroll[data-v-7f331908]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-7f331908]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-7f331908]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-7f331908]{background:#13c2c2}#nprogress .peg[data-v-7f331908]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-7f331908]{border-top-color:#13c2c2;border-left-color:#13c2c2}.ant-upload-preview .upload-icon[data-v-7f331908]{border:1px solid rgba(0,0,0,.2)}.ant-upload-preview .mask[data-v-7f331908]{background:rgba(0,0,0,.4)}.beauty-scroll[data-v-c76485a4]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-c76485a4]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-c76485a4]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-c76485a4]{background:#13c2c2}#nprogress .peg[data-v-c76485a4]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-c76485a4]{border-top-color:#13c2c2;border-left-color:#13c2c2}.common-layout .top .header .title[data-v-c76485a4]{color:rgba(0,0,0,.85)}.common-layout .top .desc[data-v-c76485a4]{color:rgba(0,0,0,.45)}.common-layout .login .icon[data-v-c76485a4]{color:rgba(0,0,0,.45)}.common-layout .login .icon[data-v-c76485a4]:hover{color:#13c2c2}.ant-table-header{background:#fff}.beauty-scroll[data-v-275cdde0]::-webkit-scrollbar-thumb{background:#13c2c2}.beauty-scroll[data-v-275cdde0]::-webkit-scrollbar-track{background:#87e8de}.disabled[data-v-275cdde0]{color:rgba(0,0,0,.25)}#nprogress .bar[data-v-275cdde0]{background:#13c2c2}#nprogress .peg[data-v-275cdde0]{-webkit-box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2;box-shadow:0 0 10px #13c2c2,0 0 5px #13c2c2}#nprogress .spinner-icon[data-v-275cdde0]{border-top-color:#13c2c2;border-left-color:#13c2c2}[data-v-275cdde0] #displayCard .ant-card-body{border-top:1px solid #f0f0f0}[data-v-275cdde0] #displayCard .ant-card-head{background-color:#fff;border-bottom:1px solid #f0f0f0}[data-v-275cdde0] .ant-card-actions{background-color:#fff}.dv-active-ring-chart .active-ring-info .active-ring-name{color:#fff}.dv-capsule-chart{color:#fff}.dv-scroll-board{color:#fff}.dv-scroll-ranking-board{color:#fff}div:where(.swal2-container) div:where(.swal2-popup){background:#fff}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.1)),to(rgba(0,0,0,.1)));background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.2)),to(rgba(0,0,0,.2)));background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){color:#fff}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){color:#fff}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){background-color:#fff}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){background:rgba(0,0,0,.2)}div:where(.swal2-container) button:where(.swal2-close){color:#fff}div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) .swal2-range{background:#fff}div:where(.swal2-container) .swal2-checkbox,div:where(.swal2-container) .swal2-radio{background:#fff}div:where(.swal2-container) div:where(.swal2-validation-message){background:#f0f0f0}div:where(.swal2-container) div:where(.swal2-validation-message):before{color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{color:#fff}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-toast{background:#fff;-webkit-box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075)}.swal2-input[disabled]{border-color:#f5f5f5;background-color:#f5f5f5}.menu[data-v-ba60adee]{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);background:#fff}.hg-theme-default .hg-button{background:#fff;-webkit-box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-shadow:0 0 3px -1px rgba(0,0,0,.3);-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-selectedButton{color:#fff}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03)}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.x-spreadsheet{background:#fff}.x-spreadsheet-tooltip{color:#fff}.x-spreadsheet-tooltip:before{-webkit-box-shadow:1px 1px 3px -1px rgba(0,0,0,.3);box-shadow:1px 1px 3px -1px rgba(0,0,0,.3)}.x-spreadsheet-color-palette table{background:#fff}.x-spreadsheet-border-palette table{background:#fff}.x-spreadsheet-dropdown .x-spreadsheet-dropdown-content{background:#fff}.x-spreadsheet-selector .x-spreadsheet-selector-autofill{border:1px dashed rgba(0,0,0,.45)}.x-spreadsheet-selector .x-spreadsheet-selector-corner{border:2px solid #fff}.x-spreadsheet-item{color:rgba(0,0,0,.9)}.x-spreadsheet-item.active,.x-spreadsheet-item:hover{background:rgba(0,0,0,.05)}.x-spreadsheet-item.divider{border-bottom:1px solid rgba(0,0,0,.1)}.x-spreadsheet-header.state:before,.x-spreadsheet-item.state:before{background:rgba(0,0,0,.08)}.x-spreadsheet-contextmenu,.x-spreadsheet-sort-filter,.x-spreadsheet-suggest{background:#fff}.x-spreadsheet-menu>li.active{background-color:#fff;color:rgba(0,0,0,.65)}.x-spreadsheet-print-bar .-title{color:#fff}.x-spreadsheet-print-content .-sider{background:#fff}.x-spreadsheet-canvas-card{background:#fff;-webkit-box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 5px 0 rgba(0,0,0,.2);box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 5px 0 rgba(0,0,0,.2)}.x-spreadsheet-calendar{color:rgba(0,0,0,.65);background:#fff}.x-spreadsheet-calendar .calendar-header .calendar-header-right a:hover{background:rgba(0,0,0,.08)}.x-spreadsheet-datepicker{-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.2);box-shadow:2px 2px 5px rgba(0,0,0,.2)}.x-spreadsheet-button{color:rgba(0,0,0,.6)}.x-spreadsheet-button.active,.x-spreadsheet-button:hover{color:rgba(0,0,0,.8)}.x-spreadsheet-button.primary{color:#fff}.x-spreadsheet-button.primary.active,.x-spreadsheet-button.primary:hover{color:#fff}.x-spreadsheet-form-input{color:rgba(0,0,0,.87)}.x-spreadsheet-form-input input{background:#fff}.x-spreadsheet-form-select{background:#fff;color:rgba(0,0,0,.87)}.x-spreadsheet-dimmer{background-color:rgba(0,0,0,.6)}form fieldset select{background-color:#fff}.x-spreadsheet-modal,.x-spreadsheet-toast{color:rgba(0,0,0,.87);border:1px solid rgba(0,0,0,.1);background-color:#fff;-webkit-box-shadow:rgba(0,0,0,.2) 0 2px 8px;box-shadow:0 2px 8px rgba(0,0,0,.2)}.x-spreadsheet-modal-header,.x-spreadsheet-toast-header{border-bottom:1px solid rgba(0,0,0,.05)}.x-spreadsheet-modal-header{background:rgba(0,0,0,.08)}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-pagination-progressbar{background:rgba(0,0,0,.25)}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0,0,0,.25)}.swiper-scrollbar{background:rgba(0,0,0,.1)}.swiper-scrollbar-drag{background:rgba(0,0,0,.5)}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0,0,0,.65);box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a{background-color:#fff}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0,0,0,.4);box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff}.leaflet-control-layers-expanded{background:#fff}.leaflet-container .leaflet-control-attribution{background:#fff}.leaflet-control-scale-line{text-shadow:1px 1px #fff}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{border:2px solid rgba(0,0,0,.2)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;-webkit-box-shadow:0 3px 14px rgba(0,0,0,.4);box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-div-icon{background:#fff}.leaflet-tooltip{background-color:#fff;border:1px solid #fff;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.4)}.leaflet-tooltip-top:before{border-top-color:#fff}.leaflet-tooltip-bottom:before{border-bottom-color:#fff}.leaflet-tooltip-left:before{border-left-color:#fff}.leaflet-tooltip-right:before{border-right-color:#fff}.marker-icon,.marker-icon:focus{background-color:#fff}.button-container .leaflet-pm-actions-container .leaflet-pm-action{color:#fff}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror{background:#fff}.cm-s-base16-dark .CodeMirror-matchingbracket{color:#fff!important}.cm-s-blackboard .CodeMirror-matchingbracket{color:#fff!important}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15)}.jv-container.jv-light{background:#fff}.jv-container .jv-more:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.video-js{color:#fff}.vjs-no-js{color:#fff}.video-js .vjs-big-play-button{border:.06666em solid #fff}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0))}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-time-tooltip{background-color:#fff}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-volume-level{background-color:#fff}.vjs-subtitles{color:#fff}.vjs-error .vjs-error-display:before{color:#fff}.vjs-loading-spinner:after,.vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff}.vjs-modal-dialog.vjs-text-track-settings{color:#fff}.vjs-text-track-settings legend{color:#fff}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f)}.video-wrapper .alt{color:#fff}.video-wrapper .video-js .video-title{color:#fff}.video-wrapper .video-js .vjs-control-bar .vjs-playback-rate .vjs-menu :focus:not(:focus-visible){background:#fff}.vue-slider-rail{background-color:#f5f5f5}.vue-slider-mark-step{background-color:#fff}.vue-slider-dot-handle{background-color:#fff}.vue-slider-dot-tooltip-inner{color:#fff;border-color:rgba(0,0,0,.75);background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.vue-slider{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mtkcontrol{color:#fff!important}.monaco-editor .lines-decorations{background:#fff}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.colorpicker-header .picked-color{color:#fff}.colorpicker-body .saturation-selection{border:1px solid #fff;box-shadow:0 0 2px rgba(0,0,0,.8)}.colorpicker-body .slider{box-shadow:0 0 1px rgba(0,0,0,.85)}.monaco-editor.vs .dnd-target{color:#fff}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff}.hc-black .monaco-keybinding>.monaco-keybinding-key{color:#fff}.luckysheet-cellFormat-menu-c{border-right:1px solid #fff}.luckysheet-cellFormat-menu{background:#f0f0f0}.luckysheet-cellFormat-menu-active{background:#fff}.luckysheet-cellFormat-menu-active:hover{background:#fff}.luckysheet{background:#fff}.luckysheet-loading-mask{background:#fff}.luckysheet_info_detail{background:#fff}.luckysheet_info_detail .luckysheet_info_detail_input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.luckysheet-toolbar-combo-button:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);background-color:rgba(0,0,0,.06)}.luckysheet-toolbar-combo-button:hover .luckysheet-toolbar-combo-button-input{border-right-color:rgba(0,0,0,.12)}.luckysheet-toolbar-combo-button-open{background-color:rgba(0,0,0,.12)}.luckysheet-toolbar-combo-button-input{color:rgba(0,0,0,.7)}.luckysheet-toolbar-combo-button-input:focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.3);background:#fff}.luckysheet-toolbar-button-hover,.luckysheet-toolbar-button:hover,.luckysheet-toolbar-menu-button:hover{background-color:rgba(0,0,0,.06)}.luckysheet-toolbar-button-split-right.luckysheet-toolbar-menu-button:hover{border-left-color:rgba(0,0,0,.12)!important}.luckysheet-toolbar-button-split-right-hover{background-color:rgba(0,0,0,.06);border-left-color:rgba(0,0,0,.12)!important}.luckysheet-toolbar-button:active,.luckysheet-toolbar-menu-button:active{background-color:rgba(0,0,0,.12)}.luckysheet-rightgclick-menu-sub .sp-container{background-color:#fff;border:solid 1px #fff}.luckysheet-wa-calculate{background:#fff}#luckysheet-helpbox{background-color:#fff}.luckysheet-helpbox-cell-input{background-color:#fff}.luckysheet-sta-c{background-color:#fff}.luckysheet-sheet-area div.luckysheet-sheets-item .luckysheet-sheets-item-name[contenteditable=true]:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}.luckysheet-sheet-area div.luckysheet-sheets-item-active{border-top-color:#fff}.luckysheet-grid-window-1{background-color:#fff!important}.luckysheet-cell-main{background-color:#fff}.luckysheet-menu,.luckysheet-scrollbars{scrollbar-base-color:#fff;scrollbar-darkshadow-color:#fff;scrollbar-3dlight-color:#fff}.luckysheet-formula-functionrange-highlight .luckysheet-selection-copy-top{border-top:2px solid #fff;border-bottom:2px solid #fff}.luckysheet-formula-functionrange-highlight .luckysheet-selection-copy-right{border-left:2px solid #fff;border-right:2px solid #fff}.luckysheet-formula-functionrange-highlight .luckysheet-selection-copy-bottom{border-top:2px solid #fff;border-bottom:2px solid #fff}.luckysheet-formula-functionrange-highlight .luckysheet-selection-copy-left{border-left:2px solid #fff;border-right:2px solid #fff}.luckysheet-formula-functionrange-highlight .luckysheet-highlight{border:1px solid #fff}.luckysheet-cs-inner-border{border:1px solid #fff}.luckysheet-cs-fillhandle{border:solid 1px #fff}.luckysheet-cs-draghandle{background-color:#fff;border:2px solid #fff}.luckysheet-cs-touchhandle:before{border:.5px solid rgba(0,0,0,.15);background-color:#fff}.luckysheet-scrollbars::-webkit-scrollbar-track{background-color:#fff}.luckysheet-scrollbars::-webkit-scrollbar{background-color:#fff}.luckysheet-scrollbars::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);box-shadow:inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07)}.luckysheet-cols-menu{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.2)}.luckysheet-filter-menu .luckysheet-filter-byvalue .luckysheet-cols-menuitem-content input:focus,.luckysheet-filter-menu .luckysheet-pivotTableFilter-byvalue .luckysheet-cols-menuitem-content input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}.luckysheet-filter-menu .luckysheet-filter-byvalue .luckysheet-cols-menuitem:hover,.luckysheet-filter-menu .luckysheet-pivotTableFilter-byvalue .luckysheet-cols-menuitem:hover{background:#fff}.luckysheet-filter-menu .luckysheet-cols-menuitem:last-child:hover{background:#fff}.btn.active,.btn:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-default{background-color:#fff}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff}.btn-default .badge{color:#fff}.btn-primary{color:#fff}.btn-primary.focus,.btn-primary:focus{color:#fff}.btn-primary:hover{color:#fff}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff}.btn-primary .badge{background-color:#fff}.btn-danger{color:#fff}.btn-danger.focus,.btn-danger:focus{color:#fff}.btn-danger:hover{color:#fff}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff}.btn-danger .badge{background-color:#fff}.luckysheet-count-show{color:#fff}.luckysheet-input-box{-webkit-box-shadow:0 2px 5px rgba(0,0,0,.4);-moz-box-shadow:0 2px 5px rgba(0,0,0,.4);box-shadow:0 2px 5px rgba(0,0,0,.4)}.luckysheet-input-box-index{box-shadow:0 1px 2px rgba(0,0,0,.5);color:#fff}.luckysheet-modal-dialog{-webkit-box-shadow:0 4px 16px rgba(0,0,0,.2);-moz-box-shadow:0 4px 16px rgba(0,0,0,.2);box-shadow:0 4px 16px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.333)}.luckysheet-modal-dialog-mask{background:#fff}.luckysheet-modal-dialog-title{background-color:#fff}.luckysheet-modal-dialog-resize-item{background:#fff}.luckysheet-modal-controll-btn{background:#fff}.luckysheet-modal-controll-max-close{color:#fff}.luckysheet-modal-dialog-content{background-color:#fff}.luckysheet-filter-options{background:#fff}.luckysheet-filter-options:hover{color:#fff;border:1px solid #fff}.luckysheet-filter-options-active{color:#fff}.luckysheet-flat-menu-button{background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1)}.luckysheet-flat-menu-button:hover{background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f1f1f1,#f5f5f5);background-image:-moz-linear-gradient(to bottom,#f1f1f1,#f5f5f5);background-image:-ms-linear-gradient(to bottom,#f1f1f1,#f5f5f5);background-image:-o-linear-gradient(to bottom,#f1f1f1,#f5f5f5);background-image:linear-gradient(to bottom,#f1f1f1,#f5f5f5)}.luckysheet-datavisual-tabs .luckysheet-datavisual-tab{border:1px solid #fff;background:#fff}.luckysheet-datavisual-quick-menu>div{border-right:3px solid #fff}.luckysheet-datavisual-range-container{background:#fff}.luckysheet-datavisual-range-container-focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}.jfk-tooltip{border:1px solid #fff;color:#fff}.jfk-tooltip-arrowdown .jfk-tooltip-arrowimplbefore,.jfk-tooltip-arrowup .jfk-tooltip-arrowimplbefore{border-color:#fff transparent}.luckysheet-datavisual-config .luckysheet-datavisual-accordion-title{background:#f5f5f5}.luckysheet-datavisual-config .luckysheet-datavisual-accordion-content{border-top:1px solid #fff}.luckysheet-datavisual-config-input,.luckysheet-datavisual-config-input-no{background:#fff}.luckysheet-datavisual-config-input-no:focus,.luckysheet-datavisual-config-input:focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}.sp-replacer{background:#f5f5f5}#luckysheetscatterselectshow-menu .ui-state-active,#luckysheetswichseries-menu .ui-state-active,#pie0cutselect-menu .ui-state-active,#pie1cutselect-menu .ui-state-active,#pie2cutselect-menu .ui-state-active{border:1px solid #f5f5f5;background:#f5f5f5}.luckysheet-datavisual-skin-item .luckysheet-datavisual-skin-cover{background-color:rgba(0,0,0,.4);color:#fff}.luckysheet-chart-point-searchitem{border:2px solid #f5f5f5;background:#fff}.luckysheet-modal-dialog-slider{box-shadow:0 2px 4px rgba(0,0,0,.2);-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2)}.luckysheet-modal-dialog-slider .luckysheet-modal-dialog-slider-title{color:#fff}.luckysheet-modal-dialog-slider-list{background:#fff}.luckysheet-modal-dialog-slider-list .luckysheet-modal-dialog-slider-list-item{border:1px solid #fff}.luckysheet-modal-dialog-slider-config .luckysheet-modal-dialog-slider-config-list{background:#fff}#luckysheet-modal-dialog-slider-pivot-move{background:#fff}.luckysheet-modal-dialog-slider-chart .luckysheet-modal-dialog-slider-content{background:#fff}.luckysheet-freezebar-vertical-drop-bar{background:rgba(0,0,0,.45)}.luckysheet-freezebar-horizontal-drop-bar{background:rgba(0,0,0,.45)}#luckysheet-functionbox{background-color:#fff}.luckysheet-functionbox-cell-input{background-color:#fff}.luckysheet-formula-search-c{border:1px solid rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2);background:#fff}.luckysheet-formula-search-c .luckysheet-formula-search-item{background:#fff}.luckysheet-formula-search-c .luckysheet-formula-search-item-active{background:#f5f5f5}.luckysheet-formula-help-c{border:1px solid rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2);background:#fff}.luckysheet-formula-help-title{background:#f5f5f5}.luckysheetpopover{background:rgba(0,0,0,.65);color:#fff}.luckysheetpopover .luckysheetpopover-btn{border:1px solid #fff}#luckysheet-search-replace .tabBox span.on{color:#fff}#luckysheet-search-replace #searchAllbox .boxTitle{background-color:#fff}#luckysheet-search-replace #searchAllbox .boxMain .boxItem.on{color:#fff}#formulaTypeList .listBox.on{color:#fff}#luckysheet-administerRule-dialog .ruleBox .ruleList .listBox .item.on .ruleName{color:#fff}#luckysheet-administerRule-dialog .ruleBox .ruleList .listBox .item .ruleRange{background-color:#fff}.luckysheet-newEditorRule-dialog .ruleTypeBox .ruleTypeItem.on{color:#fff}.luckysheet-newEditorRule-dialog .iconsBox .showbox{background-color:#f5f5f5}.luckysheet-newEditorRule-dialog .iconsBox ul{background-color:#fff}.luckysheet-newEditorRule-dialog .iconsBox ul li{background-color:#fff}#luckysheet-CFicons-dialog .box .list .item{background-color:#fff}#luckysheet-modal-dialog-slider-alternateformat .luckysheet-modal-dialog-slider-content{background-color:#fff}#luckysheet-modal-dialog-slider-alternateformat .modelbox{border:2px solid #fff}#luckysheet-ifFormulaGenerator-dialog #createBtn{color:#fff}#luckysheet-moreFormat-dialog .listbox .listItem.on{color:#fff}#luckysheet-moreFormat-dialog .listbox .listItem.on .value{color:#fff}#luckysheet-modal-dialog-cropping::before{outline:1px solid #fff}#luckysheet-modal-dialog-cropping::after{outline:1px solid #fff}#luckysheet-modal-dialog-cropping .lt::before{border-right:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .lt::after{border-right:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .mt::before{border-left:2px solid #fff;border-right:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .rt::before{border-left:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .rt::after{border-left:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .lm::before{border-right:2px solid #fff;border-top:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .rm::before{border-left:2px solid #fff;border-top:2px solid #fff;border-bottom:2px solid #fff}#luckysheet-modal-dialog-cropping .lb::before{border-right:2px solid #fff;border-top:2px solid #fff}#luckysheet-modal-dialog-cropping .lb::after{border-right:2px solid #fff;border-top:2px solid #fff}#luckysheet-modal-dialog-cropping .rb::before{border-left:2px solid #fff;border-top:2px solid #fff}#luckysheet-modal-dialog-cropping .rb::after{border-left:2px solid #fff;border-top:2px solid #fff}#luckysheet-modal-dialog-cropping .mb::before{border-left:2px solid #fff;border-right:2px solid #fff;border-top:2px solid #fff}#luckysheet-modal-dialog-slider-imageCtrl .luckysheet-modal-dialog-slider-content{background-color:#fff}#luckysheet-dataVerification-dropdown-btn{background-color:#fff}#luckysheet-dataVerification-dropdown-List{background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}#luckysheet-dataVerification-showHintBox{background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}#luckysheet-modal-dialog-slider-protection .luckysheet-modal-dialog-slider-content{background:#fff}.luckysheet-slider-protection-ok{color:#fff}.luckysheet-protection-rangeItem .luckysheet-protection-rangeItem-del:hover,.luckysheet-protection-rangeItem .luckysheet-protection-rangeItem-update:hover{color:#fff}.luckysheet-protection-rangeItem .luckysheet-protection-rangeItem-del:active,.luckysheet-protection-rangeItem .luckysheet-protection-rangeItem-update:active{color:#fff}.flatpickr-calendar{-webkit-box-shadow:0 3px 13px rgba(0,0,0,.08);box-shadow:0 3px 13px rgba(0,0,0,.08)}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.dayContainer{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-day.today:focus,.flatpickr-day.today:hover{color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{color:#fff}.flatpickr-innerContainer{background:#fff}.flatpickr-time{background:#fff}.sp-alpha-handle{background:#fff}.sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#fff),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0))}.sp-dragger{border:1px solid #fff}.sp-slider{background:#fff}.sp-picker-container{border-left:solid 1px #fff}.fa-inverse{color:#fff}.sr-only{clip:rect(0,0,0,0)}.ui-widget-content{background:#fff}.ui-button.ui-state-active:hover,.ui-button:active,.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active{color:#fff}.ui-icon-background,.ui-state-active .ui-icon-background{background-color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff}.ui-widget-header{background:#f5f5f5}.ui-button,.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,html .ui-button.ui-state-disabled:active,html .ui-button.ui-state-disabled:hover{background:#f5f5f5}.spage-number button{background:#fff}.spage-number button.active{color:#fff}.spage-number button.active:hover{color:#fff}.spage-skip button{background-color:#fff}.spage-skip button:hover{color:#fff}.bg-light.lt,.bg-light .lt{ background: #fefefe}.bg-dark a:hover,.bg-dark .Button--link:hover{ color: #fff}.bg-dark .open>a,.bg-dark .open>a:hover,.bg-dark .open>a:focus{ color: #fff}.bg-black a:hover,.bg-black .Button--link:hover{ color: #fff}.bg-black .open>a,.bg-black .open>a:hover,.bg-black .open>a:focus{ color: #fff}.bg-primary a:hover,.bg-primary .Button--link:hover{ color: #fff}.bg-primary .open>a,.bg-primary .open>a:hover,.bg-primary .open>a:focus{ color: #fff}.bg-success a:hover,.bg-success .Button--link:hover{ color: #fff}.bg-success .open>a,.bg-success .open>a:hover,.bg-success .open>a:focus{ color: #fff}.bg-info a:hover,.bg-info .Button--link:hover{ color: #fff}.bg-info .open>a,.bg-info .open>a:hover,.bg-info .open>a:focus{ color: #fff}.bg-warning a:hover,.bg-warning .Button--link:hover{ color: #fff}.bg-warning .open>a,.bg-warning .open>a:hover,.bg-warning .open>a:focus{ color: #fff}.bg-danger a:hover,.bg-danger .Button--link:hover{ color: #fff}.bg-danger .open>a,.bg-danger .open>a:hover,.bg-danger .open>a:focus{ color: #fff}.bg-white{ background-color: #fff}.bg-white.bg,.bg-white .bg{ background-color: #fff}.text-white{ color: #fff}.box-shadow{ box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05)}.box-shadow-lg{ box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05)}.text-shadow{ text-shadow: 0 1px 0 var(--borderColor), 0 2px 0 var(--borderColorLight), 0 5px 10px rgba(0, 0, 0, 0.125), 0 10px 20px rgba(0, 0, 0, 0.2)}.b{ border: 1px solid rgba(0, 0, 0, 0.05)}.b-white{ border-color: #fff}.b-l-white{ border-left-color: #fff}.hover\\:bg-white:hover{ background-color: #fff}.active\\:bg-white.is-active,.active\\:bg-white:active{ background-color: #fff}.focus\\:bg-white:focus{ background-color: #fff}.disabled\\:bg-white.is-disabled,.disabled\\:bg-white:disabled{ background-color: #fff}.group:hover .group-hover\\:bg-white{ background-color: #fff}@media (max-width: 768px){.m\\:bg-white{ background-color: #fff};.m\\:hover\\:bg-white:hover{ background-color: #fff};.m\\:active\\:bg-white.is-active,.m\\:active\\:bg-white:active{ background-color: #fff};.m\\:focus\\:bg-white:focus{ background-color: #fff};.m\\:disabled\\:bg-white.is-disabled,.m\\:disabled\\:bg-white:disabled{ background-color: #fff};.group:hover .m\\:group-hover\\:bg-white{ background-color: #fff}}@media (min-width: 769px){.pc\\:bg-white{ background-color: #fff};.pc\\:hover\\:bg-white:hover{ background-color: #fff};.pc\\:active\\:bg-white.is-active,.pc\\:active\\:bg-white:active{ background-color: #fff};.pc\\:focus\\:bg-white:focus{ background-color: #fff};.pc\\:disabled\\:bg-white.is-disabled,.pc\\:disabled\\:bg-white:disabled{ background-color: #fff};.group:hover .pc\\:group-hover\\:bg-white{ background-color: #fff}}.border-white{ border-color: #fff}.hover\\:border-white:hover{ border-color: #fff}.active\\:border-white.is-active,.active\\:border-white:active{ border-color: #fff}.focus\\:border-white:focus{ border-color: #fff}.disabled\\:border-white.is-disabled,.disabled\\:border-white:disabled{ border-color: #fff}.group:hover .group-hover\\:border-white{ border-color: #fff}@media (max-width: 768px){.m\\:border-white{ border-color: #fff};.m\\:hover\\:border-white:hover{ border-color: #fff};.m\\:active\\:border-white.is-active,.m\\:active\\:border-white:active{ border-color: #fff};.m\\:focus\\:border-white:focus{ border-color: #fff};.m\\:disabled\\:border-white.is-disabled,.m\\:disabled\\:border-white:disabled{ border-color: #fff};.group:hover .m\\:group-hover\\:border-white{ border-color: #fff}}@media (min-width: 769px){.pc\\:border-white{ border-color: #fff};.pc\\:hover\\:border-white:hover{ border-color: #fff};.pc\\:active\\:border-white.is-active,.pc\\:active\\:border-white:active{ border-color: #fff};.pc\\:focus\\:border-white:focus{ border-color: #fff};.pc\\:disabled\\:border-white.is-disabled,.pc\\:disabled\\:border-white:disabled{ border-color: #fff};.group:hover .pc\\:group-hover\\:border-white{ border-color: #fff}}.shadow-sm{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)}.shadow{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.shadow-md{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.shadow-lg{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.shadow-xl{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.shadow-2xl{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)}.shadow-inner{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.hover\\:shadow-sm:hover{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)}.hover\\:shadow:hover{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.hover\\:shadow-md:hover{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.hover\\:shadow-lg:hover{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.hover\\:shadow-xl:hover{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.hover\\:shadow-2xl:hover{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)}.hover\\:shadow-inner:hover{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.active\\:shadow-sm.is-active,.active\\:shadow-sm:active{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)}.active\\:shadow.is-active,.active\\:shadow:active{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.active\\:shadow-md.is-active,.active\\:shadow-md:active{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.active\\:shadow-lg.is-active,.active\\:shadow-lg:active{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.active\\:shadow-xl.is-active,.active\\:shadow-xl:active{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.active\\:shadow-2xl.is-active,.active\\:shadow-2xl:active{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)}.active\\:shadow-inner.is-active,.active\\:shadow-inner:active{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.focus\\:shadow-sm:focus{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)}.focus\\:shadow:focus{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.focus\\:shadow-md:focus{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.focus\\:shadow-lg:focus{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.focus\\:shadow-xl:focus{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.focus\\:shadow-2xl:focus{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)}.focus\\:shadow-inner:focus{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.disabled\\:shadow-sm.is-disabled,.disabled\\:shadow-sm:disabled{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)}.disabled\\:shadow.is-disabled,.disabled\\:shadow:disabled{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.disabled\\:shadow-md.is-disabled,.disabled\\:shadow-md:disabled{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.disabled\\:shadow-lg.is-disabled,.disabled\\:shadow-lg:disabled{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.disabled\\:shadow-xl.is-disabled,.disabled\\:shadow-xl:disabled{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.disabled\\:shadow-2xl.is-disabled,.disabled\\:shadow-2xl:disabled{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)}.disabled\\:shadow-inner.is-disabled,.disabled\\:shadow-inner:disabled{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.group:hover .group-hover\\:shadow-sm{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)}.group:hover .group-hover\\:shadow{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.group:hover .group-hover\\:shadow-md{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.group:hover .group-hover\\:shadow-lg{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.group:hover .group-hover\\:shadow-xl{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.group:hover .group-hover\\:shadow-2xl{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)}.group:hover .group-hover\\:shadow-inner{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}@media (max-width: 768px){.m\\:shadow-sm{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.m\\:shadow{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.m\\:shadow-md{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.m\\:shadow-lg{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.m\\:shadow-xl{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.m\\:shadow-2xl{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.m\\:shadow-inner{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.m\\:hover\\:shadow-sm:hover{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.m\\:hover\\:shadow:hover{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.m\\:hover\\:shadow-md:hover{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.m\\:hover\\:shadow-lg:hover{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.m\\:hover\\:shadow-xl:hover{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.m\\:hover\\:shadow-2xl:hover{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.m\\:hover\\:shadow-inner:hover{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.m\\:active\\:shadow-sm.is-active,.m\\:active\\:shadow-sm:active{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.m\\:active\\:shadow.is-active,.m\\:active\\:shadow:active{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.m\\:active\\:shadow-md.is-active,.m\\:active\\:shadow-md:active{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.m\\:active\\:shadow-lg.is-active,.m\\:active\\:shadow-lg:active{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.m\\:active\\:shadow-xl.is-active,.m\\:active\\:shadow-xl:active{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.m\\:active\\:shadow-2xl.is-active,.m\\:active\\:shadow-2xl:active{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.m\\:active\\:shadow-inner.is-active,.m\\:active\\:shadow-inner:active{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.m\\:focus\\:shadow-sm:focus{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.m\\:focus\\:shadow:focus{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.m\\:focus\\:shadow-md:focus{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.m\\:focus\\:shadow-lg:focus{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.m\\:focus\\:shadow-xl:focus{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.m\\:focus\\:shadow-2xl:focus{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.m\\:focus\\:shadow-inner:focus{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.m\\:disabled\\:shadow-sm.is-disabled,.m\\:disabled\\:shadow-sm:disabled{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.m\\:disabled\\:shadow.is-disabled,.m\\:disabled\\:shadow:disabled{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.m\\:disabled\\:shadow-md.is-disabled,.m\\:disabled\\:shadow-md:disabled{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.m\\:disabled\\:shadow-lg.is-disabled,.m\\:disabled\\:shadow-lg:disabled{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.m\\:disabled\\:shadow-xl.is-disabled,.m\\:disabled\\:shadow-xl:disabled{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.m\\:disabled\\:shadow-2xl.is-disabled,.m\\:disabled\\:shadow-2xl:disabled{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.m\\:disabled\\:shadow-inner.is-disabled,.m\\:disabled\\:shadow-inner:disabled{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.group:hover .m\\:group-hover\\:shadow-sm{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.group:hover .m\\:group-hover\\:shadow{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.group:hover .m\\:group-hover\\:shadow-md{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.group:hover .m\\:group-hover\\:shadow-lg{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.group:hover .m\\:group-hover\\:shadow-xl{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.group:hover .m\\:group-hover\\:shadow-2xl{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.group:hover .m\\:group-hover\\:shadow-inner{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}}@media (min-width: 769px){.pc\\:shadow-sm{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.pc\\:shadow{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.pc\\:shadow-md{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.pc\\:shadow-lg{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.pc\\:shadow-xl{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.pc\\:shadow-2xl{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.pc\\:shadow-inner{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.pc\\:hover\\:shadow-sm:hover{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.pc\\:hover\\:shadow:hover{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.pc\\:hover\\:shadow-md:hover{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.pc\\:hover\\:shadow-lg:hover{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.pc\\:hover\\:shadow-xl:hover{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.pc\\:hover\\:shadow-2xl:hover{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.pc\\:hover\\:shadow-inner:hover{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.pc\\:active\\:shadow-sm.is-active,.pc\\:active\\:shadow-sm:active{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.pc\\:active\\:shadow.is-active,.pc\\:active\\:shadow:active{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.pc\\:active\\:shadow-md.is-active,.pc\\:active\\:shadow-md:active{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.pc\\:active\\:shadow-lg.is-active,.pc\\:active\\:shadow-lg:active{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.pc\\:active\\:shadow-xl.is-active,.pc\\:active\\:shadow-xl:active{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.pc\\:active\\:shadow-2xl.is-active,.pc\\:active\\:shadow-2xl:active{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.pc\\:active\\:shadow-inner.is-active,.pc\\:active\\:shadow-inner:active{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.pc\\:focus\\:shadow-sm:focus{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.pc\\:focus\\:shadow:focus{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.pc\\:focus\\:shadow-md:focus{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.pc\\:focus\\:shadow-lg:focus{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.pc\\:focus\\:shadow-xl:focus{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.pc\\:focus\\:shadow-2xl:focus{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.pc\\:focus\\:shadow-inner:focus{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.pc\\:disabled\\:shadow-sm.is-disabled,.pc\\:disabled\\:shadow-sm:disabled{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.pc\\:disabled\\:shadow.is-disabled,.pc\\:disabled\\:shadow:disabled{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.pc\\:disabled\\:shadow-md.is-disabled,.pc\\:disabled\\:shadow-md:disabled{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.pc\\:disabled\\:shadow-lg.is-disabled,.pc\\:disabled\\:shadow-lg:disabled{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.pc\\:disabled\\:shadow-xl.is-disabled,.pc\\:disabled\\:shadow-xl:disabled{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.pc\\:disabled\\:shadow-2xl.is-disabled,.pc\\:disabled\\:shadow-2xl:disabled{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.pc\\:disabled\\:shadow-inner.is-disabled,.pc\\:disabled\\:shadow-inner:disabled{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.group:hover .pc\\:group-hover\\:shadow-sm{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)};.group:hover .pc\\:group-hover\\:shadow{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.group:hover .pc\\:group-hover\\:shadow-md{ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.group:hover .pc\\:group-hover\\:shadow-lg{ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.group:hover .pc\\:group-hover\\:shadow-xl{ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.group:hover .pc\\:group-hover\\:shadow-2xl{ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25)};.group:hover .pc\\:group-hover\\:shadow-inner{ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}}.hover\\:text-white:hover{ color: #fff}.active\\:text-white.is-active,.active\\:text-white:active{ color: #fff}.focus\\:text-white:focus{ color: #fff}.disabled\\:text-white.is-disabled,.disabled\\:text-white:disabled{ color: #fff}.group:hover .group-hover\\:text-white{ color: #fff}@media (max-width: 768px){.m\\:text-white{ color: #fff};.m\\:hover\\:text-white:hover{ color: #fff};.m\\:active\\:text-white.is-active,.m\\:active\\:text-white:active{ color: #fff};.m\\:focus\\:text-white:focus{ color: #fff};.m\\:disabled\\:text-white.is-disabled,.m\\:disabled\\:text-white:disabled{ color: #fff};.group:hover .m\\:group-hover\\:text-white{ color: #fff}}@media (min-width: 769px){.pc\\:text-white{ color: #fff};.pc\\:hover\\:text-white:hover{ color: #fff};.pc\\:active\\:text-white.is-active,.pc\\:active\\:text-white:active{ color: #fff};.pc\\:focus\\:text-white:focus{ color: #fff};.pc\\:disabled\\:text-white.is-disabled,.pc\\:disabled\\:text-white:disabled{ color: #fff};.group:hover .pc\\:group-hover\\:text-white{ color: #fff}}.CodeMirror-matchingtag{ background: rgba(255, 150, 0, 0.3)}.hide-by-clipping{ clip: rect(0, 0, 0, 0)}.fr-view .fr-class-code{ background: #f5f5f5}.fr-box a.fr-floating-btn{ box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); background: #FFF}.fr-box.fr-basic .fr-wrapper{ background: #FFF}@media (min-width: 992px){.fr-box.fr-document .fr-wrapper .fr-element{ background: #FFF}}.fr-tooltip{ color: #FFF}.fr-toolbar .fr-command.fr-btn span.fr-sr-only,.fr-popup .fr-command.fr-btn span.fr-sr-only,.fr-modal .fr-command.fr-btn span.fr-sr-only{ clip: rect(0, 0, 0, 0)}.fr-toolbar .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active,.fr-toolbar .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active-tab,.fr-popup .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active,.fr-popup .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active-tab,.fr-modal .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active,.fr-modal .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active-tab{ background: #FFF}.fr-command.fr-btn.fr-options.fr-btn-hover,.fr-command.fr-btn.fr-options:hover,.fr-command.fr-btn.fr-options:focus{ border-left: solid 1px #FAFAFA}.fr-command.fr-btn + .fr-dropdown-menu{ background: #FFF; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}.fr-command.fr-btn.fr-active + .fr-dropdown-menu{ box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}.fr-modal .fr-modal-wrapper{ background: #FFF; box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)}.fr-modal .fr-modal-wrapper .fr-modal-head{ background: #FFF}.fr-popup{ background: #FFF; box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)}.fr-popup .fr-input-line input[type=text],.fr-popup .fr-input-line textarea{ background: #FFF}.fr-popup .fr-input-line input + label,.fr-popup .fr-input-line textarea + label{ background: #FFF}.fr-popup .fr-buttons.fr-tabs{ background-color: #f5f5f5}.fr-popup .fr-checkbox input:not(:checked):active + span{ background-color: #f5f5f5}.fr-toolbar{ background: #FFF}.fr-toolbar .fr-more-toolbar{ background-color: #f5f5f5}.fr-toolbar .fr-command.fr-btn.fr-open:not(:hover):not(:focus):not(:active){ background: #f5f5f5}.fr-toolbar.fr-inline{ box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)}.fr-toolbar.fr-bottom.fr-toolbar-open .fr-newline{ background: #FFF}.second-toolbar{ background: #FFF}span.fr-sr-only{ clip: rect(0, 0, 0, 0)}textarea.fr-code{ background: #FFF}.fr-box.fr-inline .fr-command.fr-btn.html-switch{ background: #FFF}.fr-popup .fr-color-set>span .fr-selected-color{ color: #FFF}.fr-image-resizer .fr-handler{ border: solid 1px #FFF}.fr-modal .fr-modal-head .fr-modal-tags a{ background-color: #f5f5f5}div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{ color: #FFF}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{ fill: #FFF}div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{ background: #FFF}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{ color: #FFF}.fr-qi-helper a.fr-btn.fr-floating-btn{ background: #FFF}.fr-box .fr-video-resizer .fr-handler{ border: solid 1px #FFF}.tox.tox-tinymce-inline .tox-editor-header{ background-color: #fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{ color: #fff}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{ background-color: rgba(204, 0, 0, 0.1)}.tox .tox-button{ color: #fff}.tox .tox-button::before{ box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #006ce7, 0 0 0 3px rgba(0, 108, 231, 0.25)}.tox .tox-button:focus:not(:disabled){ color: #fff}.tox .tox-button:hover:not(:disabled){ color: #fff}.tox .tox-button:active:not(:disabled){ color: #fff}.tox .tox-button.tox-button--enabled{ color: #fff}.tox .tox-button.tox-button--enabled:focus:not(:disabled){ color: #fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){ color: #fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){ color: #fff}.tox .tox-button--secondary{ background-color: #f0f0f0; border-color: #f0f0f0}.tox .tox-button--secondary[disabled]{ background-color: #f0f0f0; border-color: #f0f0f0}.tox .tox-collection--list .tox-collection__item--enabled{ background-color: #fff}.tox .tox-collection--horizontal{ background-color: #fff}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{ fill: #fff}.tox .tox-comment-thread{ background: #fff}.tox .tox-comment{ background: #fff}.tox .tox-comment-thread__overlay::after{ background: #fff}.tox .tox-comment__gradient::after{ background: linear-gradient(rgba(255, 255, 255, 0), #fff)}.tox .tox-comment__overlay{ background: #fff}.tox .tox-comment__overlaytext p{ background-color: #fff; box-shadow: 0 0 8px 8px #fff}.tox .tox-comment__busy-spinner{ background-color: #fff}.tox .tox-dialog-wrap__backdrop--opaque{ background-color: #fff}.tox .tox-dialog{ background-color: #fff}.tox .tox-dialog__header{ background-color: #fff}.tox .tox-dialog__footer{ background-color: #fff}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{ background: #fff}.tox .tox-dropzone{ background: #fff}.tox .tox-edit-area__iframe{ background-color: #fff}.tox:not(.tox-tinymce-inline) .tox-editor-header{ background-color: #fff}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{ background-color: #fff}.tox .tox-color-input span::before{ background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%), linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%); border: 1px solid #fff}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{ background-color: #fff}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{ background-color: #fff}.tox .tox-selectfield select{ background-color: #fff}.tox .tox-selectfield select:focus{ background-color: #fff}.tox .tox-menu{ background-color: #fff}.tox .tox-menubar{ background-color: #fff}.tox .tox-promotion{ background-color: #fff}.tox .tox-pop__dialog{ background-color: #fff}.tox .tox-pop.tox-pop--bottom::after{ border-color: #fff transparent transparent transparent}.tox .tox-pop.tox-pop--top::after{ border-color: transparent transparent #fff transparent}.tox .tox-pop.tox-pop--left::after{ border-color: transparent #fff transparent transparent}.tox .tox-pop.tox-pop--right::after{ border-color: transparent transparent transparent #fff}.tox .tox-sidebar{ background-color: #fff}.tox .tox-statusbar{ background-color: #fff}.tox .tox-number-input input:focus{ background: #fff}.tox .tox-toolbar-overlord{ background-color: #fff}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{ background-color: #fff}.tox.tox-tinymce-aux .tox-toolbar__overflow{ background-color: #fff}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{ background-color: #fff}.tox .tox-dialog-loading::before{ background-color: rgba(0, 0, 0, 0.5)}.video-react{ color: #fff}.video-react .video-react-big-play-button{ border: 0.06666em solid #fff}.video-react:hover .video-react-big-play-button,.video-react .video-react-big-play-button:focus{ border-color: #fff}.video-react-menu li.video-react-selected,.video-react-menu li.video-react-selected:focus,.video-react-menu li.video-react-selected:hover{ background-color: #fff}.video-react .video-react-slider:focus{ box-shadow: 0 0 1em #fff}.video-react .video-react-control:focus:before,.video-react .video-react-control:hover:before,.video-react .video-react-control:focus{ text-shadow: 0em 0em 1em #fff, 0em 0em 0.5em #fff}.video-react .video-react-play-progress{ background-color: #fff}.video-react .video-react-time-tooltip,.video-react .video-react-mouse-display:after,.video-react .video-react-play-progress:after{ background-color: #fff}.video-react .video-react-mouse-display .video-react-time-tooltip,.video-react .video-react-progress-control .video-react-mouse-display:after{ color: #fff; background-color: rgba(0, 0, 0, 0.8)}.video-react .video-react-volume-level{ background-color: #fff}.video-react .video-react-bezel{ background: rgba(0, 0, 0, 0.5)}.cropper-drag-box{ background-color: #fff}.cropper-face{ background-color: #fff}.rdtPicker{ background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1)}.rdtPicker td.rdtActive,.rdtPicker td.rdtActive:hover{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)}.rdtPicker td.rdtActive.rdtToday:before{ border-bottom-color: #fff}.a-Layout .a-Layout-header{ box-shadow: 0 0.125rem 0.125rem rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05)}.a-AsideNav-item.is-open>a>.a-AsideNav-itemArrow:empty:before{ color: #fff}.a-AsideNav-itemBadge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.a-AsideNav-item a:hover{ color: #fff}.a-AsideNav-item a:hover .a-AsideNav-itemIcon{ color: #fff}.a-AsideNav-item.is-active>a{ color: #fff}.a-AsideNav-subHeader a:hover{ color: #fff}.a-AsideNav-tooltip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}@media (min-width: 768px){.a-Layout--folded .a-AsideNav-subList{ box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.a-Button--default{ background: #fff}.a-Button--default:not(:disabled):not(.is-disabled):hover{ background: #fff}.a-Button--default:not(:disabled):not(.is-disabled).hover{ background: #fff}.a-Button--default:not(:disabled):not(.is-disabled):hover:active{ background: #fff}.a-Button--default:not(:disabled):not(.is-disabled).active,.a-Button--default:not(:disabled):not(.is-disabled).is-active{ background: #fff}.a-Breadcrumb-dropdown{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-Badge-text{ color: #fff}.a-Badge-ribbon{ color: #fff}.a-Modal-overlay{ background: rgba(0, 0, 0, 0.7)}.a-Drawer-overlay{ background: rgba(0, 0, 0, 0.6)}.a-Drawer--top .a-Drawer-content.in,.a-Drawer--right .a-Drawer-content.in,.a-Drawer--bottom .a-Drawer-content.in,.a-Drawer--left .a-Drawer-content.in{ transform: translate3d(0, 0, 0)}.a-Drawer--top .a-Drawer-content{ box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2)}.a-Drawer--right .a-Drawer-content{ box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.2)}.a-Drawer--bottom .a-Drawer-content{ box-shadow: 0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.a-Drawer--left .a-Drawer-content{ box-shadow: 10px 0 10px -10px rgba(0, 0, 0, 0.2)}.a-Tooltip--dark .a-Tooltip-title{ color: #fff}.a-Tooltip--dark .a-Tooltip-body{ color: #fff}[data-tooltip]:after{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}.a-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.a-PopOver-isMobile .a-PopOver-overlay{ background: rgba(0, 0, 0, 0.3)}.a-PopUp{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.a-PopUp-inner{ background: #fff}.a-PopUp-overlay{ background: rgba(0, 0, 0, 0.3)}.a-Toast-mobile .a-Toast{ background-color: rgba(0, 0, 0, 0.9); color: #fff}.a-Toast-mobile .a-Toast-title{ color: #fff}.a-Alert-close{ text-shadow: 0 1px 0 #fff}.a-ArrayInput-addBtn:not(:disabled):not(.is-disabled):hover{ background: #fff}.a-ArrayInput-addBtn:not(:disabled):not(.is-disabled).hover{ background: #fff}.a-ArrayInput-addBtn:not(:disabled):not(.is-disabled):hover:active{ background: #fff}.a-ArrayInput-addBtn:not(:disabled):not(.is-disabled).active,.a-ArrayInput-addBtn:not(:disabled):not(.is-disabled).is-active{ background: #fff}.a-Page-asideResizor{ background-color: #fff}.a-Page-asideResizor:hover{ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.a-Panel{ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.a-Spinner .a-Spinner-icon.a-Spinner-icon--disabled>svg.icon{ color: rgba(0, 0, 0, 0.65); fill: rgba(0, 0, 0, 0.65)}.a-Spinner .a-Spinner-icon.a-Spinner-icon--disabled>svg.icon path{ fill: rgba(0, 0, 0, 0.65)}.a-DropDown-menu-root{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-CalendarMobile-pop{ background: #fff}.a-CalendarMobile-footer-ranges{ background: #fff; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.02)}.a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)}.a-CalendarMobile-range-text{ color: #fff}.a-CalendarMobile-toast{ background: rgba(0, 0, 0, 0.9); color: #fff}.a-ColorField-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.a-CBGroupOrItem-body-group.is-hover{ box-shadow: 0px 2px 14px 0px rgba(0, 0, 0, 0.16); background: #fff}.a-ContextMenu-menu{ background: #fff}.a-ContextMenu-item:hover>.a-ContextMenu-subList{ background: #fff}.a-Wizard .a-Badge,.a-Wizard-tabs .a-Badge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.a-Wizard>ul.nav li:before,.a-Wizard>ul.nav li:after,.a-Wizard-tabs>ul.nav li:before,.a-Wizard-tabs>ul.nav li:after{ border-left-color: rgba(0, 0, 0, 0.05)}.a-Wizard>ul.nav li.is-active:after,.a-Wizard-tabs>ul.nav li.is-active:after{ border-left-color: #fff}.a-Table-table>tbody>tr.bg-light.lt,.a-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.a-Table-table>tbody>tr.bg-dark a:hover,.a-Table-table>tbody>tr.bg-dark .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-dark .open>a,.a-Table-table>tbody>tr.bg-dark .open>a:hover,.a-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.a-Table-table>tbody>tr.bg-black a:hover,.a-Table-table>tbody>tr.bg-black .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-black .open>a,.a-Table-table>tbody>tr.bg-black .open>a:hover,.a-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.a-Table-table>tbody>tr.bg-primary a:hover,.a-Table-table>tbody>tr.bg-primary .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-primary .open>a,.a-Table-table>tbody>tr.bg-primary .open>a:hover,.a-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.a-Table-table>tbody>tr.bg-success a:hover,.a-Table-table>tbody>tr.bg-success .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-success .open>a,.a-Table-table>tbody>tr.bg-success .open>a:hover,.a-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.a-Table-table>tbody>tr.bg-info a:hover,.a-Table-table>tbody>tr.bg-info .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-info .open>a,.a-Table-table>tbody>tr.bg-info .open>a:hover,.a-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.a-Table-table>tbody>tr.bg-warning a:hover,.a-Table-table>tbody>tr.bg-warning .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-warning .open>a,.a-Table-table>tbody>tr.bg-warning .open>a:hover,.a-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.a-Table-table>tbody>tr.bg-danger a:hover,.a-Table-table>tbody>tr.bg-danger .a-Button--link:hover{ color: #fff}.a-Table-table>tbody>tr.bg-danger .open>a,.a-Table-table>tbody>tr.bg-danger .open>a:hover,.a-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.a-Table-itemActions-wrap{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-Table2 .a-Table-table>tbody>tr.bg-light.lt,.a-Table2 .a-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.a-Table2 .a-Table-table>tbody>tr.bg-dark a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-dark .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-dark .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-dark .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-black a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-black .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-black .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-black .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-primary a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-primary .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-primary .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-primary .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-success a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-success .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-success .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-success .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-info a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-info .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-info .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-info .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-warning a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-warning .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-warning .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-warning .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-danger a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-danger .a-Button--link:hover{ color: #fff}.a-Table2 .a-Table-table>tbody>tr.bg-danger .open>a,.a-Table2 .a-Table-table>tbody>tr.bg-danger .open>a:hover,.a-Table2 .a-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.a-ColumnToggler-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-Progress-line-bar--animate::before{ background: #fff}.a-Pagination-wrap.disabled{ background-color: #fff}.a-ImageGallery-close:hover{ color: #fff}.a-ImageGallery-main>img{ transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.a-ImageGallery-prevBtn,.a-ImageGallery-nextBtn{ text-shadow: rgba(0, 0, 0, 0.3) 0px 0px 4px}.a-ImageGallery-prevBtn:hover,.a-ImageGallery-nextBtn:hover{ color: #fff; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px}.a-ImageGallery-prevList,.a-ImageGallery-nextList{ background: rgba(0, 0, 0, 0.3); color: #fff}.a-ImageGallery-prevList.is-disabled,.a-ImageGallery-nextList.is-disabled{ background: rgba(0, 0, 0, 0.3)}.a-ImageGallery-prevList:hover,.a-ImageGallery-nextList:hover{ background: rgb(0, 0, 0); color: #fff}.a-ImageGallery-item:after{ background: rgba(0, 0, 0, 0.5)}.a-Image-overlay{ color: #fff}.a-Image-overlay>a{ color: #fff}.a-SearchBox-history .a-SearchBox-history-dropdown{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.a-ListMenu.is-mobile .a-ListMenu-item{ background: #f5f5f5}.a-TextControl-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-Checkbox--full.a-Checkbox--checkbox input:checked + i:before{ border-color: #fff}.a-Select-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-ListControl-item:hover:active:after,.a-ListControl-item.is-active:after{ border-color: #fff}.a-LocationControl .a-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.a-ColorPicker-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.sketch-picker{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06) !important}.a-DatePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.rdtBtn:not(:disabled):not(.is-disabled):hover{ background: #fff}.rdtBtn:not(:disabled):not(.is-disabled).hover{ background: #fff}.rdtBtn:not(:disabled):not(.is-disabled):hover:active{ background: #fff}.rdtBtn:not(:disabled):not(.is-disabled).active,.rdtBtn:not(:disabled):not(.is-disabled).is-active{ background: #fff}.rdtBtnCancel:not(:disabled):not(.is-disabled):hover{ background: #fff}.rdtBtnCancel:not(:disabled):not(.is-disabled).hover{ background: #fff}.rdtBtnCancel:not(:disabled):not(.is-disabled):hover:active{ background: #fff}.rdtBtnCancel:not(:disabled):not(.is-disabled).active,.rdtBtnCancel:not(:disabled):not(.is-disabled).is-active{ background: #fff}.a-DateRangePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-ImageControl-pasteTip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}.a-ImageControl-croperToolbar{ background: #fff; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1)}.a-ExcelControl-dropzone{ background-color: #fafafa}.a-TreeSelectControl .a-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.a-Combo-item--dragging:after{ background: rgba(0, 0, 0, 0.1)}.a-SubForm-value--dragging:after{ background: rgba(0, 0, 0, 0.1)}.a-NestedSelectControl .a-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-UserSelect-memberName .option-avatar-txt{ color: #fff !important}.a-UserSelect-icon-box{ color: #fff}.a-UserSelect-avatar-text{ color: #fff !important}.a-Markdown table tr{ background-color: #fff}.a-Markdown code{ background-color: rgba(0, 0, 0, 0.04)}.a-FormulaEditor-editor::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.a-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.a-FormulaEditor-VariableList-tabs .a-Tabs-content .a-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.a-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.a-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.a-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.a-FormulaEditor .cm-field,.a-FormulaEditor .cm-func{ color: #fff}.a-FormulaPicker-ResultBox span.c-field{ color: #fff}.a-Timeline-vertical .a-TimelineItem-content .a-TimelineItem-detail .a-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.a-Timeline-horizontal .a-TimelineItem-content .a-TimelineItem-detail .a-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.AMISDebug.is-expanded{ box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px}.cxd-AsideNav-itemBadge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.cxd-AsideNav-tooltip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}@media (min-width: 768px){.cxd-Layout--folded .cxd-AsideNav-subList{ box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.cxd-Breadcrumb-dropdown{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-Badge-text{ color: #fff}.cxd-Badge-ribbon{ color: #fff}.cxd-Modal-overlay{ background: rgba(0, 0, 0, 0.7)}.cxd-Drawer-overlay{ background: rgba(0, 0, 0, 0.6)}.cxd-Drawer--top .cxd-Drawer-content.in,.cxd-Drawer--right .cxd-Drawer-content.in,.cxd-Drawer--bottom .cxd-Drawer-content.in,.cxd-Drawer--left .cxd-Drawer-content.in{ transform: translate3d(0, 0, 0)}.cxd-Drawer--top .cxd-Drawer-content{ box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2)}.cxd-Drawer--right .cxd-Drawer-content{ box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.2)}.cxd-Drawer--bottom .cxd-Drawer-content{ box-shadow: 0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.cxd-Drawer--left .cxd-Drawer-content{ box-shadow: 10px 0 10px -10px rgba(0, 0, 0, 0.2)}.cxd-Tooltip--dark .cxd-Tooltip-title{ color: #fff}.cxd-Tooltip--dark .cxd-Tooltip-body{ color: #fff}.cxd-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.cxd-PopOver-isMobile .cxd-PopOver-overlay{ background: rgba(0, 0, 0, 0.3)}.cxd-PopUp{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.cxd-PopUp-inner{ background: #fff}.cxd-PopUp-overlay{ background: rgba(0, 0, 0, 0.3)}.cxd-Toast-mobile .cxd-Toast{ background-color: rgba(0, 0, 0, 0.9); color: #fff}.cxd-Toast-mobile .cxd-Toast-title{ color: #fff}.cxd-Alert-close{ text-shadow: 0 1px 0 #fff}.cxd-Page-asideResizor{ background-color: #fff}.cxd-Page-asideResizor:hover{ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.cxd-Panel{ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.cxd-Spinner .cxd-Spinner-icon.cxd-Spinner-icon--disabled>svg.icon{ color: rgba(0, 0, 0, 0.65); fill: rgba(0, 0, 0, 0.65)}.cxd-Spinner .cxd-Spinner-icon.cxd-Spinner-icon--disabled>svg.icon path{ fill: rgba(0, 0, 0, 0.65)}.cxd-DropDown-menu-root{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-CalendarMobile-pop{ background: #fff}.cxd-CalendarMobile-footer-ranges{ background: #fff; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.02)}.cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)}.cxd-CalendarMobile-range-text{ color: #fff}.cxd-CalendarMobile-toast{ background: rgba(0, 0, 0, 0.9); color: #fff}.cxd-ColorField-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.cxd-CBGroupOrItem-body-group.is-hover{ box-shadow: 0px 2px 14px 0px rgba(0, 0, 0, 0.16); background: #fff}.cxd-ContextMenu-menu{ background: #fff}.cxd-ContextMenu-item:hover>.cxd-ContextMenu-subList{ background: #fff}.cxd-Wizard .cxd-Badge,.cxd-Wizard-tabs .cxd-Badge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.cxd-Wizard>ul.nav li:before,.cxd-Wizard>ul.nav li:after,.cxd-Wizard-tabs>ul.nav li:before,.cxd-Wizard-tabs>ul.nav li:after{ border-left-color: rgba(0, 0, 0, 0.05)}.cxd-Wizard>ul.nav li.is-active:after,.cxd-Wizard-tabs>ul.nav li.is-active:after{ border-left-color: #fff}.cxd-Table-table>tbody>tr.bg-light.lt,.cxd-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.cxd-Table-table>tbody>tr.bg-dark a:hover,.cxd-Table-table>tbody>tr.bg-dark .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-dark .open>a,.cxd-Table-table>tbody>tr.bg-dark .open>a:hover,.cxd-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.cxd-Table-table>tbody>tr.bg-black a:hover,.cxd-Table-table>tbody>tr.bg-black .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-black .open>a,.cxd-Table-table>tbody>tr.bg-black .open>a:hover,.cxd-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.cxd-Table-table>tbody>tr.bg-primary a:hover,.cxd-Table-table>tbody>tr.bg-primary .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-primary .open>a,.cxd-Table-table>tbody>tr.bg-primary .open>a:hover,.cxd-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.cxd-Table-table>tbody>tr.bg-success a:hover,.cxd-Table-table>tbody>tr.bg-success .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-success .open>a,.cxd-Table-table>tbody>tr.bg-success .open>a:hover,.cxd-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.cxd-Table-table>tbody>tr.bg-info a:hover,.cxd-Table-table>tbody>tr.bg-info .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-info .open>a,.cxd-Table-table>tbody>tr.bg-info .open>a:hover,.cxd-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.cxd-Table-table>tbody>tr.bg-warning a:hover,.cxd-Table-table>tbody>tr.bg-warning .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-warning .open>a,.cxd-Table-table>tbody>tr.bg-warning .open>a:hover,.cxd-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.cxd-Table-table>tbody>tr.bg-danger a:hover,.cxd-Table-table>tbody>tr.bg-danger .cxd-Button--link:hover{ color: #fff}.cxd-Table-table>tbody>tr.bg-danger .open>a,.cxd-Table-table>tbody>tr.bg-danger .open>a:hover,.cxd-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.cxd-Table-itemActions-wrap{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-light.lt,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-black a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-success a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-info a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .cxd-Button--link:hover{ color: #fff}.cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .open>a,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .open>a:hover,.cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.cxd-ColumnToggler-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-Progress-line-bar--animate::before{ background: #fff}.cxd-Pagination-wrap.disabled{ background-color: #fff}.cxd-ImageGallery-close:hover{ color: #fff}.cxd-ImageGallery-main>img{ transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.cxd-ImageGallery-prevBtn,.cxd-ImageGallery-nextBtn{ text-shadow: rgba(0, 0, 0, 0.3) 0px 0px 4px}.cxd-ImageGallery-prevBtn:hover,.cxd-ImageGallery-nextBtn:hover{ color: #fff; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px}.cxd-ImageGallery-prevList,.cxd-ImageGallery-nextList{ background: rgba(0, 0, 0, 0.3); color: #fff}.cxd-ImageGallery-prevList.is-disabled,.cxd-ImageGallery-nextList.is-disabled{ background: rgba(0, 0, 0, 0.3)}.cxd-ImageGallery-prevList:hover,.cxd-ImageGallery-nextList:hover{ background: rgb(0, 0, 0); color: #fff}.cxd-ImageGallery-item:after{ background: rgba(0, 0, 0, 0.5)}.cxd-Image-overlay{ color: #fff}.cxd-Image-overlay>a{ color: #fff}.cxd-SearchBox-history .cxd-SearchBox-history-dropdown{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.cxd-ListMenu.is-mobile .cxd-ListMenu-item{ background: #f5f5f5}.cxd-TextControl-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-Checkbox--full.cxd-Checkbox--checkbox input:checked + i:before{ border-color: #fff}.cxd-Select-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-ListControl-item:hover:active:after,.cxd-ListControl-item.is-active:after{ border-color: #fff}.cxd-LocationControl .cxd-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.cxd-ColorPicker-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.cxd-DatePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-DateRangePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-ImageControl-pasteTip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}.cxd-ImageControl-croperToolbar{ background: #fff; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1)}.cxd-ExcelControl-dropzone{ background-color: #fafafa}.cxd-TreeSelectControl .cxd-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.cxd-Combo-item--dragging:after{ background: rgba(0, 0, 0, 0.1)}.cxd-SubForm-value--dragging:after{ background: rgba(0, 0, 0, 0.1)}.cxd-NestedSelectControl .cxd-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-UserSelect-memberName .option-avatar-txt{ color: #fff !important}.cxd-UserSelect-icon-box{ color: #fff}.cxd-UserSelect-avatar-text{ color: #fff !important}.cxd-Markdown table tr{ background-color: #fff}.cxd-Markdown code{ background-color: rgba(0, 0, 0, 0.04)}.cxd-FormulaEditor-editor::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.cxd-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.cxd-FormulaEditor-VariableList-tabs .cxd-Tabs-content .cxd-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.cxd-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.cxd-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.cxd-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.cxd-FormulaEditor .cm-field,.cxd-FormulaEditor .cm-func{ color: #fff}.cxd-FormulaPicker-ResultBox span.c-field{ color: #fff}.cxd-Timeline-vertical .cxd-TimelineItem-content .cxd-TimelineItem-detail .cxd-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.cxd-Timeline-horizontal .cxd-TimelineItem-content .cxd-TimelineItem-detail .cxd-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-AsideNav-item.is-open>a>.antd-AsideNav-itemArrow:empty:before{ color: #fff}.antd-AsideNav-itemBadge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.antd-AsideNav-item.is-active>a{ color: #fff}.antd-AsideNav-tooltip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}@media (min-width: 768px){.antd-Layout--folded .antd-AsideNav-subList{ box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.antd-Button--success{ background: #389e0d; border-color: #389e0d #389e0d #389e0d #389e0d}.antd-Button--success:not(:disabled):not(.is-disabled):hover:active{ background: #237804; border-color: #237804 #237804 #237804 #237804}.antd-Button--success:not(:disabled):not(.is-disabled).active,.antd-Button--success:not(:disabled):not(.is-disabled).is-active{ background: #237804; border-color: #237804 #237804 #237804 #237804}.antd-Button--warning{ background: #faad14; border-color: #faad14 #faad14 #faad14 #faad14}.antd-Button--warning:not(:disabled):not(.is-disabled):hover:active{ background: #d48806; border-color: #d48806 #d48806 #d48806 #d48806}.antd-Button--warning:not(:disabled):not(.is-disabled).active,.antd-Button--warning:not(:disabled):not(.is-disabled).is-active{ background: #d48806; border-color: #d48806 #d48806 #d48806 #d48806}.antd-Button--light{ background: #fafafa; border-color: #fafafa #fafafa #fafafa #fafafa}.antd-Breadcrumb-dropdown{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-Breadcrumb-dropdown>li:hover{ background: #fafafa}.antd-Badge--success{ background: #389e0d}.antd-Badge--warning{ background: #faad14}.antd-Badge-text{ color: #fff}.antd-Badge-ribbon{ color: #fff}.antd-Modal-overlay{ background: rgba(0, 0, 0, 0.7)}.antd-Drawer-overlay{ background: rgba(0, 0, 0, 0.6)}.antd-Drawer--top .antd-Drawer-content.in,.antd-Drawer--right .antd-Drawer-content.in,.antd-Drawer--bottom .antd-Drawer-content.in,.antd-Drawer--left .antd-Drawer-content.in{ transform: translate3d(0, 0, 0)}.antd-Drawer--top .antd-Drawer-content{ box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2)}.antd-Drawer--right .antd-Drawer-content{ box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.2)}.antd-Drawer--bottom .antd-Drawer-content{ box-shadow: 0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.antd-Drawer--left .antd-Drawer-content{ box-shadow: 10px 0 10px -10px rgba(0, 0, 0, 0.2)}.antd-Tooltip--dark .antd-Tooltip-title{ color: #fff}.antd-Tooltip--dark .antd-Tooltip-body{ color: #fff}.antd-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.antd-PopOver-isMobile .antd-PopOver-overlay{ background: rgba(0, 0, 0, 0.3)}.antd-PopUp{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.antd-PopUp-inner{ background: #fff}.antd-PopUp-overlay{ background: rgba(0, 0, 0, 0.3)}.antd-Toast-mobile .antd-Toast{ background-color: rgba(0, 0, 0, 0.9); color: #fff}.antd-Toast-mobile .antd-Toast-title{ color: #fff}.antd-Alert-close{ text-shadow: 0 1px 0 #fff}.antd-Alert--info{ background: #fafafa}.antd-Alert--success .antd-Alert-icon .icon-alert-success path{ fill: #389e0d}.antd-Alert--warning .antd-Alert-icon .icon-alert-warning path{ fill: #faad14}.antd-Page-asideResizor{ background-color: #fff}.antd-Page-asideResizor:hover{ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.antd-Remark:hover>.antd-Remark-icon{ background: #faad14; border-color: #faad14}.antd-Panel{ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.antd-Panel--success{ border-color: #389e0d}.antd-Panel--success>.antd-Panel-heading{ background: #389e0d}.antd-Panel--success>.antd-Panel-heading .badge{ color: #389e0d}.antd-Panel--success>.antd-Panel-heading,.antd-Panel--success>.antd-Panel-footer{ border-color: #389e0d}.antd-Panel--warning{ border-color: #faad14}.antd-Panel--warning>.antd-Panel-heading{ background: #faad14}.antd-Panel--warning>.antd-Panel-heading .badge{ color: #faad14}.antd-Panel--warning>.antd-Panel-heading,.antd-Panel--warning>.antd-Panel-footer{ border-color: #faad14}.antd-Spinner .antd-Spinner-icon.antd-Spinner-icon--disabled>svg.icon{ color: rgba(0, 0, 0, 0.65); fill: rgba(0, 0, 0, 0.65)}.antd-Spinner .antd-Spinner-icon.antd-Spinner-icon--disabled>svg.icon path{ fill: rgba(0, 0, 0, 0.65)}.antd-DropDown-menu-root{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-DropDown-menuItem.is-active,.antd-DropDown-menu>li.is-active{ background: #fafafa}.antd-DropDown-menuItem:hover,.antd-DropDown-menu:not(.is-mobile)>li:not(.is-disabled):hover{ background: #fafafa}.antd-CalendarMobile-pop{ background: #fff}.antd-CalendarMobile-footer-ranges{ background: #fff; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.02)}.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtBetween{ background: #fafafa !important}.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)}.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeHasEnd,.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeHasEnd:hover{ background: linear-gradient(to right, transparent 0%, transparent 50%, #fafafa 51%, #fafafa 100%) !important}.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd,.antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover{ background: linear-gradient(to right, #fafafa 0%, #fafafa 50%, transparent 51%, transparent 100%) !important}.antd-CalendarMobile-range-text{ color: #fff}.antd-CalendarMobile-toast{ background: rgba(0, 0, 0, 0.9); color: #fff}.antd-ColorField-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.antd-CBGroupOrItem-body-group.is-hover{ box-shadow: 0px 2px 14px 0px rgba(0, 0, 0, 0.16); background: #fff}.antd-ContextMenu-menu{ background: #fff}.antd-ContextMenu-item:hover>.antd-ContextMenu-subList{ background: #fff}.antd-Wizard .antd-Badge,.antd-Wizard-tabs .antd-Badge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.antd-Wizard>ul.nav li:before,.antd-Wizard>ul.nav li:after,.antd-Wizard-tabs>ul.nav li:before,.antd-Wizard-tabs>ul.nav li:after{ border-left-color: rgba(0, 0, 0, 0.05)}.antd-Wizard>ul.nav li.is-active:after,.antd-Wizard-tabs>ul.nav li.is-active:after{ border-left-color: #fff}.antd-Table-table>thead>tr{ background: #fafafa}.antd-Table-table>tbody>tr>th{ background: #fafafa}.antd-Table-table>tbody>tr:hover,.antd-Table-table>tbody>tr.is-hovered{ background: #fafafa}.antd-Table-table>tbody>tr:active{ background: #fafafa}.antd-Table-table>tbody>tr.is-checked{ color: rgba(0, 0, 0, 0.85)}.antd-Table-table>tbody>tr.bg-light.lt,.antd-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.antd-Table-table>tbody>tr.bg-dark a:hover,.antd-Table-table>tbody>tr.bg-dark .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-dark .open>a,.antd-Table-table>tbody>tr.bg-dark .open>a:hover,.antd-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.bg-black a:hover,.antd-Table-table>tbody>tr.bg-black .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-black .open>a,.antd-Table-table>tbody>tr.bg-black .open>a:hover,.antd-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.bg-primary a:hover,.antd-Table-table>tbody>tr.bg-primary .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-primary .open>a,.antd-Table-table>tbody>tr.bg-primary .open>a:hover,.antd-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.bg-success a:hover,.antd-Table-table>tbody>tr.bg-success .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-success .open>a,.antd-Table-table>tbody>tr.bg-success .open>a:hover,.antd-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.bg-info a:hover,.antd-Table-table>tbody>tr.bg-info .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-info .open>a,.antd-Table-table>tbody>tr.bg-info .open>a:hover,.antd-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.bg-warning a:hover,.antd-Table-table>tbody>tr.bg-warning .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-warning .open>a,.antd-Table-table>tbody>tr.bg-warning .open>a:hover,.antd-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.bg-danger a:hover,.antd-Table-table>tbody>tr.bg-danger .antd-Button--link:hover{ color: #fff}.antd-Table-table>tbody>tr.bg-danger .open>a,.antd-Table-table>tbody>tr.bg-danger .open>a:hover,.antd-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.antd-Table-table>tbody>tr.is-dragging{ background-color: #fafafa}.antd-Table-itemActions-wrap{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-Table-foot{ background: #fafafa}.antd-Table2 .antd-Table-table>thead>tr>th{ background: #fafafa}.antd-Table2 .antd-Table-table>tbody>tr.antd-Table-summary-row>td{ background: #fafafa}.antd-Table2 .antd-Table-table>tbody>tr>th{ background: #fafafa}.antd-Table2 .antd-Table-table>tbody>tr:hover,.antd-Table2 .antd-Table-table>tbody>tr.is-hovered{ background: #fafafa}.antd-Table2 .antd-Table-table>tbody>tr.is-checked{ color: rgba(0, 0, 0, 0.85)}.antd-Table2 .antd-Table-table>tbody>tr.is-summary{ background: #fafafa}.antd-Table2 .antd-Table-table>tbody>tr.bg-light.lt,.antd-Table2 .antd-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.antd-Table2 .antd-Table-table>tbody>tr.bg-dark a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-dark .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-dark .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-dark .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-black a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-black .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-black .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-black .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-primary a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-primary .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-primary .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-primary .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-success a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-success .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-success .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-success .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-info a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-info .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-info .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-info .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-warning a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-warning .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-warning .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-warning .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-danger a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-danger .antd-Button--link:hover{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.bg-danger .open>a,.antd-Table2 .antd-Table-table>tbody>tr.bg-danger .open>a:hover,.antd-Table2 .antd-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.antd-Table2 .antd-Table-table>tbody>tr.is-dragging{ background-color: #fafafa}.antd-Table2 .antd-Table-table>tbody>tr.antd-Table-expanded-row>td{ background: #fafafa}.antd-Table2 .antd-Table-table>tfoot>tr>td{ background: #fafafa}.antd-ColumnToggler-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-ListItem.is-checked{ background: #fafafa}.antd-Card-highlight{ background: #389e0d}.antd-Progress-line-bar--animate::before{ background: #fff}.antd-Progress-circle .bg-warning-circle-path{ stroke: #faad14}.antd-Progress-circle .bg-success-circle-path{ stroke: #389e0d}.antd-Pagination-wrap.disabled{ background-color: #fff}.antd-StatusField .antd-Status-icon.icon-warning{ color: #faad14}.antd-StatusField .antd-Status-icon.icon-success{ color: #389e0d}.antd-Status-icon.rolling + .antd-StatusField-label{ color: #faad14}.antd-Status-icon.icon-success + .antd-StatusField-label{ color: #389e0d}.antd-Status-icon.icon-warning + .antd-StatusField-label{ color: #faad14}.antd-ImageGallery-close:hover{ color: #fff}.antd-ImageGallery-main>img{ transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.antd-ImageGallery-prevBtn,.antd-ImageGallery-nextBtn{ text-shadow: rgba(0, 0, 0, 0.3) 0px 0px 4px}.antd-ImageGallery-prevBtn:hover,.antd-ImageGallery-nextBtn:hover{ color: #fff; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px}.antd-ImageGallery-prevList,.antd-ImageGallery-nextList{ background: rgba(0, 0, 0, 0.3); color: #fff}.antd-ImageGallery-prevList.is-disabled,.antd-ImageGallery-nextList.is-disabled{ background: rgba(0, 0, 0, 0.3)}.antd-ImageGallery-prevList:hover,.antd-ImageGallery-nextList:hover{ background: rgb(0, 0, 0); color: #fff}.antd-ImageGallery-item:after{ background: rgba(0, 0, 0, 0.5)}.antd-Image-overlay{ color: #fff}.antd-Image-overlay>a{ color: #fff}.antd-ResultBox-value:hover{ background: #fafafa}.antd-ResultBox.antd-TransferDropDown>.antd-ResultBox-value:hover{ background: #fafafa}.antd-SearchBox-history .antd-SearchBox-history-dropdown{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.antd-ListMenu.is-mobile .antd-ListMenu-item{ background: #f5f5f5}.antd-TextControl-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-TextControl-sugItem.is-highlight{ background: #fafafa}.antd-Checkbox--full.antd-Checkbox--checkbox input:checked + i:before{ border-color: #fff}.antd-GroupedSelection-item:hover{ background: #fafafa}.antd-GroupedSelection-item.is-active:hover,.antd-GroupedSelection-item.is-focused:hover,.antd-GroupedSelection-item.is-opened:hover{ background: #fafafa}.antd-TableSelection .antd-Table-table>tbody>tr:hover>td,.antd-TableSelection .antd-Table-table>tbody>tr.is-hovered>td{ background: #fafafa}.antd-ChainedSelection-item:hover{ background: #fafafa}.antd-Select--multi .antd-Select-value:hover{ background-color: #fafafa}.antd-Select-option.is-highlight{ background: #fafafa}.antd-Select-overflow-wrapper .antd-Select-value:hover{ background-color: #fafafa}.antd-Select-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-SelectControl .antd-TransferDropDown-popover .antd-Tree-list .antd-Tree-item .antd-Tree-itemLabel:active .antd-Tree-itemText,.antd-SelectControl .antd-TransferDropDown-popover .antd-Tree-list .antd-Tree-item .antd-Tree-item--isLeaf:active .antd-Tree-itemText{ background: #fafafa}.antd-Selections-title{ background: #fafafa}.antd-Selections-item:hover{ background: #fafafa}.antd-ListControl-item:hover:active:after,.antd-ListControl-item.is-active:after{ border-color: #fff}.antd-LocationControl .antd-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.antd-ColorPicker-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.antd-DatePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.rdt .rdtPicker td.rdtBetween{ background: #fafafa}.antd-CalendarInputWrapper .antd-CalendarInput-sugsItem.is-highlight{ background: #fafafa}td.rdtMonth.rdtBetween,td.rdtYear.rdtBetween,td.rdtQuarter.rdtBetween{ background: #fafafa}.rdtPicker .rdtActive.rdtBetween.rdtStart{ background: linear-gradient(to right, transparent 0%, transparent 50%, #fafafa 51%, #fafafa 100%)}.rdtPicker .rdtActive.rdtBetween.rdtEnd{ background: linear-gradient(to right, #fafafa 0%, #fafafa 50%, transparent 51%, transparent 100%)}.antd-DateRangePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-ImageControl-pasteTip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}.antd-ImageControl-croperToolbar{ background: #fff; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1)}.antd-ExcelControl-dropzone{ background-color: #fafafa}.antd-Tree-item .is-checked .antd-Tree-itemLabel-item{ background-color: #fafafa}.antd-TreeSelectControl .antd-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.antd-Combo-item--dragging:after{ background: rgba(0, 0, 0, 0.1)}.antd-SubForm-value:hover{ background: #fafafa}.antd-SubForm-value--dragging:after{ background: rgba(0, 0, 0, 0.1)}.antd-TagControl-popover .antd-ListMenu-item:hover{ background: #fafafa}.antd-Transfer .antd-Tree-itemLabel.is-checked{ background: #fafafa}.antd-Transfer .antd-Tree-itemLabel.is-checked .antd-Tree-itemLabel-item{ background: #fafafa}.antd-NestedSelectControl .antd-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-NestedSelect-menu .antd-NestedSelect-option:hover{ background: #fafafa}.antd-IconPickerControl-sugItem:hover{ background: #fafafa}.antd-UserSelect-memberName .option-avatar-txt{ color: #fff !important}.antd-UserSelect-icon-box{ color: #fff}.antd-UserSelect-avatar-text{ color: #fff !important}.antd-Markdown table tr{ background-color: #fff}.antd-Markdown code{ background-color: rgba(0, 0, 0, 0.04)}.antd-FormulaEditor-editor::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.antd-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.antd-FormulaEditor-VariableList-tabs .antd-Tabs-content .antd-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.antd-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.antd-FormulaEditor-VariableList-item-oper li:hover{ background: #fafafa}.antd-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.antd-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.antd-FormulaEditor .cm-field,.antd-FormulaEditor .cm-func{ color: #fff}.antd-FormulaPicker-ResultBox span.c-field{ color: #fff}.antd-Timeline-vertical .antd-TimelineItem-axle .antd-TimelineItem-round--success{ background: #389e0d}.antd-Timeline-vertical .antd-TimelineItem-axle .antd-TimelineItem-round--warning{ background: #faad14}.antd-Timeline-vertical .antd-TimelineItem-content .antd-TimelineItem-detail .antd-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-Timeline-horizontal .antd-TimelineItem-axle .antd-TimelineItem-round--success{ background: #389e0d}.antd-Timeline-horizontal .antd-TimelineItem-axle .antd-TimelineItem-round--warning{ background: #faad14}.antd-Timeline-horizontal .antd-TimelineItem-content .antd-TimelineItem-detail .antd-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.antd-Tag--normal--success{ background: #389e0d}.antd-Tag--normal--warning{ background: #faad14}.antd-Tag--rounded--success{ color: #389e0d}.antd-Tag--rounded--warning{ color: #faad14}.antd-Tag--status--success .antd-Tag--prev{ color: #389e0d}.antd-Tag--status--warning .antd-Tag--prev{ color: #faad14}.dark-AsideNav-itemBadge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.dark-AsideNav-tooltip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}@media (min-width: 768px){.dark-Layout--folded .dark-AsideNav-subList{ box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.dark-Breadcrumb-dropdown{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-Badge-text{ color: #fff}.dark-Badge-ribbon{ color: #fff}.dark-Modal-overlay{ background: rgba(0, 0, 0, 0.7)}.dark-Drawer-overlay{ background: rgba(0, 0, 0, 0.6)}.dark-Drawer--top .dark-Drawer-content.in,.dark-Drawer--right .dark-Drawer-content.in,.dark-Drawer--bottom .dark-Drawer-content.in,.dark-Drawer--left .dark-Drawer-content.in{ transform: translate3d(0, 0, 0)}.dark-Drawer--top .dark-Drawer-content{ box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2)}.dark-Drawer--right .dark-Drawer-content{ box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.2)}.dark-Drawer--bottom .dark-Drawer-content{ box-shadow: 0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.dark-Drawer--left .dark-Drawer-content{ box-shadow: 10px 0 10px -10px rgba(0, 0, 0, 0.2)}.dark-Tooltip--dark .dark-Tooltip-title{ color: #fff}.dark-Tooltip--dark .dark-Tooltip-body{ color: #fff}.dark-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.dark-PopOver-isMobile .dark-PopOver-overlay{ background: rgba(0, 0, 0, 0.3)}.dark-PopUp{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.dark-PopUp-inner{ background: #fff}.dark-PopUp-overlay{ background: rgba(0, 0, 0, 0.3)}.dark-Toast-mobile .dark-Toast{ background-color: rgba(0, 0, 0, 0.9); color: #fff}.dark-Toast-mobile .dark-Toast-title{ color: #fff}.dark-Alert-close{ text-shadow: 0 1px 0 #fff}.dark-Page-asideResizor{ background-color: #fff}.dark-Page-asideResizor:hover{ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.dark-Panel{ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.dark-Spinner .dark-Spinner-icon.dark-Spinner-icon--disabled>svg.icon{ color: rgba(0, 0, 0, 0.65); fill: rgba(0, 0, 0, 0.65)}.dark-Spinner .dark-Spinner-icon.dark-Spinner-icon--disabled>svg.icon path{ fill: rgba(0, 0, 0, 0.65)}.dark-DropDown-menu-root{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-CalendarMobile-pop{ background: #fff}.dark-CalendarMobile-footer-ranges{ background: #fff; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.02)}.dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{ color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)}.dark-CalendarMobile-range-text{ color: #fff}.dark-CalendarMobile-toast{ background: rgba(0, 0, 0, 0.9); color: #fff}.dark-ColorField-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.dark-CBGroupOrItem-body-group.is-hover{ box-shadow: 0px 2px 14px 0px rgba(0, 0, 0, 0.16); background: #fff}.dark-ContextMenu-menu{ background: #fff}.dark-ContextMenu-item:hover>.dark-ContextMenu-subList{ background: #fff}.dark-Wizard .dark-Badge,.dark-Wizard-tabs .dark-Badge{ text-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.dark-Wizard>ul.nav li:before,.dark-Wizard>ul.nav li:after,.dark-Wizard-tabs>ul.nav li:before,.dark-Wizard-tabs>ul.nav li:after{ border-left-color: rgba(0, 0, 0, 0.05)}.dark-Wizard>ul.nav li.is-active:after,.dark-Wizard-tabs>ul.nav li.is-active:after{ border-left-color: #fff}.dark-Table-table>tbody>tr.bg-light.lt,.dark-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.dark-Table-table>tbody>tr.bg-dark a:hover,.dark-Table-table>tbody>tr.bg-dark .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-dark .open>a,.dark-Table-table>tbody>tr.bg-dark .open>a:hover,.dark-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.dark-Table-table>tbody>tr.bg-black a:hover,.dark-Table-table>tbody>tr.bg-black .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-black .open>a,.dark-Table-table>tbody>tr.bg-black .open>a:hover,.dark-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.dark-Table-table>tbody>tr.bg-primary a:hover,.dark-Table-table>tbody>tr.bg-primary .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-primary .open>a,.dark-Table-table>tbody>tr.bg-primary .open>a:hover,.dark-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.dark-Table-table>tbody>tr.bg-success a:hover,.dark-Table-table>tbody>tr.bg-success .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-success .open>a,.dark-Table-table>tbody>tr.bg-success .open>a:hover,.dark-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.dark-Table-table>tbody>tr.bg-info a:hover,.dark-Table-table>tbody>tr.bg-info .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-info .open>a,.dark-Table-table>tbody>tr.bg-info .open>a:hover,.dark-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.dark-Table-table>tbody>tr.bg-warning a:hover,.dark-Table-table>tbody>tr.bg-warning .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-warning .open>a,.dark-Table-table>tbody>tr.bg-warning .open>a:hover,.dark-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.dark-Table-table>tbody>tr.bg-danger a:hover,.dark-Table-table>tbody>tr.bg-danger .dark-Button--link:hover{ color: #fff}.dark-Table-table>tbody>tr.bg-danger .open>a,.dark-Table-table>tbody>tr.bg-danger .open>a:hover,.dark-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.dark-Table-itemActions-wrap{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-Table2 .dark-Table-table>tbody>tr.bg-light.lt,.dark-Table2 .dark-Table-table>tbody>tr.bg-light .lt{ background: #fefefe}.dark-Table2 .dark-Table-table>tbody>tr.bg-dark a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-dark .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-dark .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-dark .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-dark .open>a:focus{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-black a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-black .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-black .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-black .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-black .open>a:focus{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-primary a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-primary .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-primary .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-primary .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-primary .open>a:focus{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-success a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-success .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-success .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-success .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-success .open>a:focus{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-info a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-info .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-info .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-info .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-info .open>a:focus{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-warning a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-warning .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-warning .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-warning .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-warning .open>a:focus{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-danger a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-danger .dark-Button--link:hover{ color: #fff}.dark-Table2 .dark-Table-table>tbody>tr.bg-danger .open>a,.dark-Table2 .dark-Table-table>tbody>tr.bg-danger .open>a:hover,.dark-Table2 .dark-Table-table>tbody>tr.bg-danger .open>a:focus{ color: #fff}.dark-ColumnToggler-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-Progress-line-bar--animate::before{ background: #fff}.dark-Pagination-wrap.disabled{ background-color: #fff}.dark-ImageGallery-close:hover{ color: #fff}.dark-ImageGallery-main>img{ transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.dark-ImageGallery-prevBtn,.dark-ImageGallery-nextBtn{ text-shadow: rgba(0, 0, 0, 0.3) 0px 0px 4px}.dark-ImageGallery-prevBtn:hover,.dark-ImageGallery-nextBtn:hover{ color: #fff; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px}.dark-ImageGallery-prevList,.dark-ImageGallery-nextList{ background: rgba(0, 0, 0, 0.3); color: #fff}.dark-ImageGallery-prevList.is-disabled,.dark-ImageGallery-nextList.is-disabled{ background: rgba(0, 0, 0, 0.3)}.dark-ImageGallery-prevList:hover,.dark-ImageGallery-nextList:hover{ background: rgb(0, 0, 0); color: #fff}.dark-ImageGallery-item:after{ background: rgba(0, 0, 0, 0.5)}.dark-Image-overlay{ color: #fff}.dark-Image-overlay>a{ color: #fff}.dark-SearchBox-history .dark-SearchBox-history-dropdown{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.dark-ListMenu.is-mobile .dark-ListMenu-item{ background: #f5f5f5}.dark-TextControl-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-Checkbox--full.dark-Checkbox--checkbox input:checked + i:before{ border-color: #fff}.dark-Select-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-ListControl-item:hover:active:after,.dark-ListControl-item.is-active:after{ border-color: #fff}.dark-LocationControl .dark-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.dark-ColorPicker-previewIcon{ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.dark-DatePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-DateRangePicker-popover{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-ImageControl-pasteTip{ background: rgba(0, 0, 0, 0.7); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); color: #fff}.dark-ImageControl-croperToolbar{ background: #fff; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1)}.dark-ExcelControl-dropzone{ background-color: #fafafa}.dark-TreeSelectControl .dark-PopOver{ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.dark-Combo-item--dragging:after{ background: rgba(0, 0, 0, 0.1)}.dark-SubForm-value--dragging:after{ background: rgba(0, 0, 0, 0.1)}.dark-NestedSelectControl .dark-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-NestedSelect-menu{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-UserSelect-memberName .option-avatar-txt{ color: #fff !important}.dark-UserSelect-icon-box{ color: #fff}.dark-UserSelect-avatar-text{ color: #fff !important}.dark-Markdown table tr{ background-color: #fff}.dark-Markdown code{ background-color: rgba(0, 0, 0, 0.04)}.dark-FormulaEditor-editor::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.dark-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.dark-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.dark-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.dark-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{ background: rgba(0, 0, 0, 0.3)}.dark-FormulaEditor .cm-field,.dark-FormulaEditor .cm-func{ color: #fff}.dark-FormulaPicker-ResultBox span.c-field{ color: #fff}.dark-Timeline-vertical .dark-TimelineItem-content .dark-TimelineItem-detail .dark-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.dark-Timeline-horizontal .dark-TimelineItem-content .dark-TimelineItem-detail .dark-TimelineItem-detail-visible{ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}:root,.AMISCSSWrapper{ --boxShadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); --boxShadowSm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); --label-color: #fff; --label-link--hover-color: #fff; --Badge-color: #fff; --ButtonGroup-divider-color: #fff; --ListControl-item-onActive-after-borderColor: #fff; --ListMenu-item-mobile-bg: #f5f5f5; --Nav-item-onHover-bg: rgba(0, 0, 0, 0.05); --Tooltip--attr-bg: rgba(0, 0, 0, 0.7); --Tooltip--attr-color: #fff; --Tooltip-body-color--dark: #fff; --Tooltip-title-color--dark: #fff; --menu-background: #fff}:root{ --shadows-shadow-sm: 0px 1px 2px 0px rgba(0, 0, 0, 0.05); --shadows-shadow-normal: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); --shadows-shadow-md: 0px 4px -1px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06); --shadows-shadow-lg: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05); --shadows-shadow-xl: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04); --shadows-shadow-2xl: 0px 25px 50px -12px rgba(0, 0, 0, 0.25)}:root{ --Layout-header-boxShadow: 0 0.125rem 0.125rem rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05); --Layout-asideLink-onHover-color: #fff; --Layout-asideLink-onHover-iconColor: #fff; --Layout-asideLink-onActive-color: #fff; --button-default-default-bg-color: #fff; --button-default-hover-bg-color: #fff; --button-default-active-bg-color: #fff}:root{ --colors-warning-main: #faad14; --colors-warning-1: #613400; --colors-warning-2: #874d00; --colors-warning-3: #ad6800; --colors-warning-4: #d48806; --colors-warning-5: #faad14; --colors-success-main: #389e0d; --colors-success-2: #092b00; --colors-success-3: #135200; --colors-success-4: #237804; --colors-success-5: #389e0d; --colors-brand-10: #fafafa; --shadows-shadow-sm: 0px 1px 2px 0px rgba(0, 0, 0, 0.05); --shadows-shadow-normal: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06); --shadows-shadow-md: 0px 4px -1px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06); --shadows-shadow-lg: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05); --shadows-shadow-xl: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04); --shadows-shadow-2xl: 0px 25px 50px -12px rgba(0, 0, 0, 0.25); --Layout-asideLink-onActive-color: #fff; --Table-thead-bg: #fafafa; --Table-onChecked-color: rgba(0, 0, 0, 0.85)}.amis-scope .sr-only,.fa-sr-only{clip:rect(0, 0, 0, 0)}.amis-scope .sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){clip:rect(0, 0, 0, 0)}.amis-scope .CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.amis-scope .hide-by-clipping{clip:rect(0, 0, 0, 0)}.fr-view .fr-class-code{background:#f5f5f5}.fr-box a.fr-floating-btn{-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);background:#FFF}.fr-box.fr-basic .fr-wrapper{background:#FFF}@media (min-width: 992px){.fr-box.fr-document .fr-wrapper .fr-element{background:#FFF}}.fr-tooltip{color:#FFF}.fr-toolbar .fr-command.fr-btn span.fr-sr-only,.fr-popup .fr-command.fr-btn span.fr-sr-only,.fr-modal .fr-command.fr-btn span.fr-sr-only{clip:rect(0, 0, 0, 0)}.fr-toolbar .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active,.fr-toolbar .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active-tab,.fr-popup .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active,.fr-popup .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active-tab,.fr-modal .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active,.fr-modal .fr-tabs .fr-command.fr-btn:not(:hover):not(:focus).fr-active-tab{background:#FFF}.fr-command.fr-btn.fr-options.fr-btn-hover,.fr-command.fr-btn.fr-options:hover,.fr-command.fr-btn.fr-options:focus{border-left:solid 1px #FAFAFA}.fr-command.fr-btn + .fr-dropdown-menu{background:#FFF;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}.fr-command.fr-btn.fr-active + .fr-dropdown-menu{-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}.fr-modal .fr-modal-wrapper{background:#FFF;-webkit-box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)}.fr-modal .fr-modal-wrapper .fr-modal-head{background:#FFF}.fr-popup{background:#FFF;-webkit-box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)}.fr-popup .fr-input-line input[type=text],.fr-popup .fr-input-line textarea{background:#FFF}.fr-popup .fr-input-line input + label,.fr-popup .fr-input-line textarea + label{background:#FFF}.fr-popup .fr-buttons.fr-tabs{background-color:#f5f5f5}.fr-popup .fr-checkbox input:not(:checked):active + span{background-color:#f5f5f5}.fr-toolbar{background:#FFF}.fr-toolbar .fr-more-toolbar{background-color:#f5f5f5}.fr-toolbar .fr-command.fr-btn.fr-open:not(:hover):not(:focus):not(:active){background:#f5f5f5}.fr-toolbar.fr-inline{-webkit-box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);-moz-box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)}.fr-toolbar.fr-bottom.fr-toolbar-open .fr-newline{background:#FFF}.amis-scope .second-toolbar{background:#FFF}.amis-scope span.fr-sr-only{clip:rect(0, 0, 0, 0)}.amis-scope textarea.fr-code{background:#FFF}.fr-box.fr-inline .fr-command.fr-btn.html-switch{background:#FFF}.fr-popup .fr-color-set>span .fr-selected-color{color:#FFF}.fr-image-resizer .fr-handler{border:solid 1px #FFF}.fr-modal .fr-modal-head .fr-modal-tags a{background-color:#f5f5f5}.amis-scope div.fr-modal-body div.fr-image-list div.fr-image-container.fr-image-deleting::before{color:#FFF}.amis-scope div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img{fill:#FFF}.amis-scope div.fr-modal-body div.fr-image-list div.fr-image-container .fr-insert-img{background:#FFF}.fr-desktop .fr-modal-wrapper div.fr-modal-body div.fr-image-list div.fr-image-container .fr-delete-img:hover{color:#FFF}.fr-qi-helper a.fr-btn.fr-floating-btn{background:#FFF}.fr-box .fr-video-resizer .fr-handler{border:solid 1px #FFF}.tox.tox-tinymce-inline .tox-editor-header{background-color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204, 0, 0, 0.1)}.tox .tox-button{color:#fff}.tox .tox-button::before{box-shadow:inset 0 0 0 2px #fff, 0 0 0 1px #006ce7, 0 0 0 3px rgba(0, 108, 231, 0.25)}.tox .tox-button:focus:not(:disabled){color:#fff}.tox .tox-button:hover:not(:disabled){color:#fff}.tox .tox-button:active:not(:disabled){color:#fff}.tox .tox-button.tox-button--enabled{color:#fff}.tox .tox-button.tox-button--enabled:focus:not(:disabled){color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){color:#fff}.tox .tox-button--secondary{background-color:#f0f0f0;border-color:#f0f0f0}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;border-color:#f0f0f0}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff}.tox .tox-collection--horizontal{background-color:#fff}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff}.tox .tox-comment-thread{background:#fff}.tox .tox-comment{background:#fff}.tox .tox-comment-thread__overlay::after{background:#fff}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(255, 255, 255, 0), #fff)}.tox .tox-comment__overlay{background:#fff}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff}.tox .tox-comment__busy-spinner{background-color:#fff}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff}.tox .tox-dialog__header{background-color:#fff}.tox .tox-dialog__footer{background-color:#fff}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-dropzone{background:#fff}.tox .tox-edit-area__iframe{background-color:#fff}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#fff}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#fff}.tox .tox-color-input span::before{background-image:linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%), linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%);border:1px solid #fff}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{background-color:#fff}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#fff}.tox .tox-selectfield select{background-color:#fff}.tox .tox-selectfield select:focus{background-color:#fff}.tox .tox-menu{background-color:#fff}.tox .tox-menubar{background-color:#fff}.tox .tox-promotion{background-color:#fff}.tox .tox-pop__dialog{background-color:#fff}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff}.tox .tox-sidebar{background-color:#fff}.tox .tox-statusbar{background-color:#fff}.tox .tox-number-input input:focus{background:#fff}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#fff}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#fff}.tox .tox-dialog-loading::before{background-color:rgba(0, 0, 0, 0.5)}.amis-scope .video-react{color:#fff}.amis-scope .video-react .video-react-big-play-button{border:0.06666em solid #fff}.amis-scope .video-react:hover .video-react-big-play-button,.amis-scope .video-react .video-react-big-play-button:focus{border-color:#fff}.amis-scope .video-react-menu li.video-react-selected,.amis-scope .video-react-menu li.video-react-selected:focus,.amis-scope .video-react-menu li.video-react-selected:hover{background-color:#fff}.amis-scope .video-react .video-react-slider:focus{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.amis-scope .video-react .video-react-control:focus:before,.amis-scope .video-react .video-react-control:hover:before,.amis-scope .video-react .video-react-control:focus{text-shadow:0em 0em 1em #fff, 0em 0em 0.5em #fff}.amis-scope .video-react .video-react-play-progress{background-color:#fff}.amis-scope .video-react .video-react-time-tooltip,.amis-scope .video-react .video-react-mouse-display:after,.amis-scope .video-react .video-react-play-progress:after{background-color:#fff}.amis-scope .video-react .video-react-mouse-display .video-react-time-tooltip,.amis-scope .video-react .video-react-progress-control .video-react-mouse-display:after{color:#fff;background-color:rgba(0, 0, 0, 0.8)}.amis-scope .video-react .video-react-volume-level{background-color:#fff}.amis-scope .video-react .video-react-bezel{background:rgba(0, 0, 0, 0.5)}.amis-scope .cropper-drag-box{background-color:#fff}.amis-scope .cropper-face{background-color:#fff}.amis-scope .rdtPicker{background:#fff;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1)}.amis-scope .rdtPicker td.rdtActive,.amis-scope .rdtPicker td.rdtActive:hover{color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25)}.amis-scope .rdtPicker td.rdtActive.rdtToday:before{border-bottom-color:#fff}.amis-scope .antd-AsideNav-item.is-open>a>.antd-AsideNav-itemArrow:empty:before{color:#fff}.amis-scope .antd-AsideNav-itemBadge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .antd-AsideNav-item.is-active>a{color:#fff}.amis-scope .antd-AsideNav-tooltip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}@media (min-width: 768px){.amis-scope .antd-Layout--folded .antd-AsideNav-subList{box-shadow:0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.amis-scope .antd-Button--success{background:#389e0d;border-color:#389e0d #389e0d #389e0d #389e0d}.amis-scope .antd-Button--success:not(:disabled):not(.is-disabled):hover:active{background:#237804;border-color:#237804 #237804 #237804 #237804}.amis-scope .antd-Button--success:not(:disabled):not(.is-disabled).active,.amis-scope .antd-Button--success:not(:disabled):not(.is-disabled).is-active{background:#237804;border-color:#237804 #237804 #237804 #237804}.amis-scope .antd-Button--warning{background:#faad14;border-color:#faad14 #faad14 #faad14 #faad14}.amis-scope .antd-Button--warning:not(:disabled):not(.is-disabled):hover:active{background:#d48806;border-color:#d48806 #d48806 #d48806 #d48806}.amis-scope .antd-Button--warning:not(:disabled):not(.is-disabled).active,.amis-scope .antd-Button--warning:not(:disabled):not(.is-disabled).is-active{background:#d48806;border-color:#d48806 #d48806 #d48806 #d48806}.amis-scope .antd-Button--light{background:#fafafa;border-color:#fafafa #fafafa #fafafa #fafafa}.amis-scope .antd-Breadcrumb-dropdown{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-Breadcrumb-dropdown>li:hover{background:#fafafa}.amis-scope .antd-Badge--success{background:#389e0d}.amis-scope .antd-Badge--warning{background:#faad14}.amis-scope .antd-Badge-text{color:#fff}.amis-scope .antd-Badge-ribbon{color:#fff}.amis-scope .antd-Modal-overlay{background:rgba(0, 0, 0, 0.7)}.amis-scope .antd-Drawer-overlay{background:rgba(0, 0, 0, 0.6)}.amis-scope .antd-Drawer--top .antd-Drawer-content.in,.amis-scope .antd-Drawer--right .antd-Drawer-content.in,.amis-scope .antd-Drawer--bottom .antd-Drawer-content.in,.amis-scope .antd-Drawer--left .antd-Drawer-content.in{transform:translate3d(0, 0, 0)}.amis-scope .antd-Drawer--top .antd-Drawer-content{box-shadow:0 10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .antd-Drawer--right .antd-Drawer-content{box-shadow:-10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .antd-Drawer--bottom .antd-Drawer-content{box-shadow:0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .antd-Drawer--left .antd-Drawer-content{box-shadow:10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .antd-Tooltip--dark .antd-Tooltip-title{color:#fff}.amis-scope .antd-Tooltip--dark .antd-Tooltip-body{color:#fff}.amis-scope [data-tooltip]:after{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}.amis-scope .antd-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .antd-PopOver-isMobile .antd-PopOver-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-PopUp{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .antd-PopUp-inner{background:#fff}.amis-scope .antd-PopUp-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-Toast-mobile .antd-Toast{background-color:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .antd-Toast-mobile .antd-Toast-title{color:#fff}.amis-scope .antd-Alert-close{text-shadow:0 1px 0 #fff}.amis-scope .antd-Alert--info{background:#fafafa}.amis-scope .antd-Alert--success .antd-Alert-icon .icon-alert-success path{fill:#389e0d}.amis-scope .antd-Alert--warning .antd-Alert-icon .icon-alert-warning path{fill:#faad14}.amis-scope .antd-Page-asideResizor{background-color:#fff}.amis-scope .antd-Page-asideResizor:hover{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.amis-scope .antd-Remark:hover>.antd-Remark-icon{background:#faad14;border-color:#faad14}.amis-scope .antd-Panel{-webkit-box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.amis-scope .antd-Panel--success{border-color:#389e0d}.amis-scope .antd-Panel--success>.antd-Panel-heading{background:#389e0d}.amis-scope .antd-Panel--success>.antd-Panel-heading .badge{color:#389e0d}.amis-scope .antd-Panel--success>.antd-Panel-heading,.amis-scope .antd-Panel--success>.antd-Panel-footer{border-color:#389e0d}.amis-scope .antd-Panel--warning{border-color:#faad14}.amis-scope .antd-Panel--warning>.antd-Panel-heading{background:#faad14}.amis-scope .antd-Panel--warning>.antd-Panel-heading .badge{color:#faad14}.amis-scope .antd-Panel--warning>.antd-Panel-heading,.amis-scope .antd-Panel--warning>.antd-Panel-footer{border-color:#faad14}.amis-scope .antd-Spinner .antd-Spinner-icon.antd-Spinner-icon--disabled>svg.icon{color:rgba(0, 0, 0, 0.65);fill:rgba(0, 0, 0, 0.65)}.amis-scope .antd-Spinner .antd-Spinner-icon.antd-Spinner-icon--disabled>svg.icon path{fill:rgba(0, 0, 0, 0.65)}.amis-scope .antd-DropDown-menu-root{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-DropDown-menuItem.is-active,.amis-scope .antd-DropDown-menu>li.is-active{background:#fafafa}.amis-scope .antd-DropDown-menuItem:hover,.amis-scope .antd-DropDown-menu:not(.is-mobile)>li:not(.is-disabled):hover{background:#fafafa}.amis-scope .antd-CalendarMobile-pop{background:#fff}.amis-scope .antd-CalendarMobile-footer-ranges{background:#fff;box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.02)}.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtBetween{background:#fafafa !important}.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25)}.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeHasEnd,.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeHasEnd:hover{background:linear-gradient(to right, transparent 0%, transparent 50%, #fafafa 51%, #fafafa 100%) !important}.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd,.amis-scope .antd-CalendarMobile .antd-CalendarMobile-calendar-wrap .antd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover{background:linear-gradient(to right, #fafafa 0%, #fafafa 50%, transparent 51%, transparent 100%) !important}.amis-scope .antd-CalendarMobile-range-text{color:#fff}.amis-scope .antd-CalendarMobile-toast{background:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .antd-ColorField-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .antd-CBGroupOrItem-body-group.is-hover{box-shadow:0px 2px 14px 0px rgba(0, 0, 0, 0.16);background:#fff}.amis-scope .antd-ContextMenu-menu{background:#fff}.amis-scope .antd-ContextMenu-item:hover>.antd-ContextMenu-subList{background:#fff}.amis-scope .antd-Wizard .antd-Badge,.amis-scope .antd-Wizard-tabs .antd-Badge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .antd-Wizard>ul.nav li:before,.amis-scope .antd-Wizard>ul.nav li:after,.amis-scope .antd-Wizard-tabs>ul.nav li:before,.amis-scope .antd-Wizard-tabs>ul.nav li:after{border-left-color:rgba(0, 0, 0, 0.05)}.amis-scope .antd-Wizard>ul.nav li.is-active:after,.amis-scope .antd-Wizard-tabs>ul.nav li.is-active:after{border-left-color:#fff}.amis-scope .antd-Table-table>thead>tr{background:#fafafa}.amis-scope .antd-Table-table>tbody>tr>th{background:#fafafa}.amis-scope .antd-Table-table>tbody>tr:hover,.amis-scope .antd-Table-table>tbody>tr.is-hovered{background:#fafafa}.amis-scope .antd-Table-table>tbody>tr:active{background:#fafafa}.amis-scope .antd-Table-table>tbody>tr.is-checked{color:rgba(0, 0, 0, 0.85)}.amis-scope .antd-Table-table>tbody>tr.bg-light.lt,.amis-scope .antd-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .antd-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-dark .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-black a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-black .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-black .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-primary .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-success a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-success .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-success .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-info a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-info .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-info .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-warning .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-danger .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .antd-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .antd-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .antd-Table-table>tbody>tr.is-dragging{background-color:#fafafa}.amis-scope .antd-Table-itemActions-wrap{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-Table-foot{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>thead>tr>th{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.antd-Table-summary-row>td{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr>th{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.is-hovered{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.is-checked{color:rgba(0, 0, 0, 0.85)}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.is-summary{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-light.lt,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-dark .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-black a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-black .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-black .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-primary .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-success a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-success .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-success .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-info a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-info .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-info .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-warning .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-danger .antd-Button--link:hover{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.is-dragging{background-color:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tbody>tr.antd-Table-expanded-row>td{background:#fafafa}.amis-scope .antd-Table2 .antd-Table-table>tfoot>tr>td{background:#fafafa}.amis-scope .antd-ColumnToggler-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-ListItem.is-checked{background:#fafafa}.amis-scope .antd-Card-highlight{background:#389e0d}.amis-scope .antd-Progress-line-bar--animate::before{background:#fff}.amis-scope .antd-Progress-circle .bg-warning-circle-path{stroke:#faad14}.amis-scope .antd-Progress-circle .bg-success-circle-path{stroke:#389e0d}.amis-scope .antd-Pagination-wrap.disabled{background-color:#fff}.amis-scope .antd-StatusField .antd-Status-icon.icon-warning{color:#faad14}.amis-scope .antd-StatusField .antd-Status-icon.icon-success{color:#389e0d}.amis-scope .antd-Status-icon.rolling + .antd-StatusField-label{color:#faad14}.amis-scope .antd-Status-icon.icon-success + .antd-StatusField-label{color:#389e0d}.amis-scope .antd-Status-icon.icon-warning + .antd-StatusField-label{color:#faad14}.amis-scope .antd-ImageGallery-close:hover{color:#fff}.amis-scope .antd-ImageGallery-main>img{transition:transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.amis-scope .antd-ImageGallery-prevBtn,.amis-scope .antd-ImageGallery-nextBtn{text-shadow:rgba(0, 0, 0, 0.3) 0px 0px 4px}.amis-scope .antd-ImageGallery-prevBtn:hover,.amis-scope .antd-ImageGallery-nextBtn:hover{color:#fff;text-shadow:rgba(0, 0, 0, 0.5) 0px 0px 4px}.amis-scope .antd-ImageGallery-prevList,.amis-scope .antd-ImageGallery-nextList{background:rgba(0, 0, 0, 0.3);color:#fff}.amis-scope .antd-ImageGallery-prevList.is-disabled,.amis-scope .antd-ImageGallery-nextList.is-disabled{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-ImageGallery-prevList:hover,.amis-scope .antd-ImageGallery-nextList:hover{color:#fff}.amis-scope .antd-ImageGallery-item:after{background:rgba(0, 0, 0, 0.5)}.amis-scope .antd-Image-overlay{color:#fff}.amis-scope .antd-Image-overlay>a{color:#fff}.amis-scope .antd-ResultBox-value:hover{background:#fafafa}.amis-scope .antd-ResultBox.antd-TransferDropDown>.antd-ResultBox-value:hover{background:#fafafa}.amis-scope .antd-SearchBox-history .antd-SearchBox-history-dropdown{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .antd-ListMenu.is-mobile .antd-ListMenu-item{background:#f5f5f5}.amis-scope .antd-TextControl-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-TextControl-sugItem.is-highlight{background:#fafafa}.amis-scope .antd-Checkbox--full.antd-Checkbox--checkbox input:checked + i:before{border-color:#fff}.amis-scope .antd-GroupedSelection-item:hover{background:#fafafa}.amis-scope .antd-GroupedSelection-item.is-active:hover,.amis-scope .antd-GroupedSelection-item.is-focused:hover,.amis-scope .antd-GroupedSelection-item.is-opened:hover{background:#fafafa}.amis-scope .antd-TableSelection .antd-Table-table>tbody>tr:hover>td,.amis-scope .antd-TableSelection .antd-Table-table>tbody>tr.is-hovered>td{background:#fafafa}.amis-scope .antd-ChainedSelection-item:hover{background:#fafafa}.amis-scope .antd-Select--multi .antd-Select-value:hover{background-color:#fafafa}.amis-scope .antd-Select-option.is-highlight{background:#fafafa}.amis-scope .antd-Select-overflow-wrapper .antd-Select-value:hover{background-color:#fafafa}.amis-scope .antd-Select-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-SelectControl .antd-TransferDropDown-popover .antd-Tree-list .antd-Tree-item .antd-Tree-itemLabel:active .antd-Tree-itemText,.amis-scope .antd-SelectControl .antd-TransferDropDown-popover .antd-Tree-list .antd-Tree-item .antd-Tree-item--isLeaf:active .antd-Tree-itemText{background:#fafafa}.amis-scope .antd-Selections-title{background:#fafafa}.amis-scope .antd-Selections-item:hover{background:#fafafa}.amis-scope .antd-ListControl-item:hover:active:after,.amis-scope .antd-ListControl-item.is-active:after{border-color:#fff}.amis-scope .antd-LocationControl .antd-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .antd-ColorPicker-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .sketch-picker{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06) !important}.amis-scope .antd-DatePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .rdt .rdtPicker td.rdtBetween{background:#fafafa}.amis-scope .antd-CalendarInputWrapper .antd-CalendarInput-sugsItem.is-highlight{background:#fafafa}.amis-scope td.rdtMonth.rdtBetween,.amis-scope td.rdtYear.rdtBetween,.amis-scope td.rdtQuarter.rdtBetween{background:#fafafa}.amis-scope .rdtPicker .rdtActive.rdtBetween.rdtStart{background:linear-gradient(to right, transparent 0%, transparent 50%, #fafafa 51%, #fafafa 100%)}.amis-scope .rdtPicker .rdtActive.rdtBetween.rdtEnd{background:linear-gradient(to right, #fafafa 0%, #fafafa 50%, transparent 51%, transparent 100%)}.amis-scope .antd-DateRangePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-ImageControl-pasteTip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}.amis-scope .antd-ImageControl-croperToolbar{background:#fff;box-shadow:0 0 4px 0 rgba(0, 0, 0, 0.1)}.amis-scope .antd-ExcelControl-dropzone{background-color:#fafafa}.amis-scope .antd-Tree-item .is-checked .antd-Tree-itemLabel-item{background-color:#fafafa}.amis-scope .antd-TreeSelectControl .antd-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .antd-Combo-item--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .antd-SubForm-value:hover{background:#fafafa}.amis-scope .antd-SubForm-value--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .antd-TagControl-popover .antd-ListMenu-item:hover{background:#fafafa}.amis-scope .antd-Transfer .antd-Tree-itemLabel.is-checked{background:#fafafa}.amis-scope .antd-Transfer .antd-Tree-itemLabel.is-checked .antd-Tree-itemLabel-item{background:#fafafa}.amis-scope .antd-NestedSelectControl .antd-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-NestedSelect-menu .antd-NestedSelect-option:hover{background:#fafafa}.amis-scope .antd-IconPickerControl-sugItem:hover{background:#fafafa}.amis-scope .antd-UserSelect-memberName .option-avatar-txt{color:#fff !important}.amis-scope .antd-UserSelect-icon-box{color:#fff}.amis-scope .antd-UserSelect-avatar-text{color:#fff !important}.amis-scope .antd-Markdown table tr{background-color:#fff}.amis-scope .antd-Markdown code{background-color:rgba(0, 0, 0, 0.04)}.amis-scope .antd-FormulaEditor-editor::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-FormulaEditor-VariableList-tabs .antd-Tabs-content .antd-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-FormulaEditor-VariableList-item-oper li:hover{background:#fafafa}.amis-scope .antd-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .antd-FormulaEditor .cm-field,.amis-scope .antd-FormulaEditor .cm-func{color:#fff}.amis-scope .antd-FormulaPicker-ResultBox span.c-field{color:#fff}.amis-scope .antd-Timeline-vertical .antd-TimelineItem-axle .antd-TimelineItem-round--success{background:#389e0d}.amis-scope .antd-Timeline-vertical .antd-TimelineItem-axle .antd-TimelineItem-round--warning{background:#faad14}.amis-scope .antd-Timeline-vertical .antd-TimelineItem-content .antd-TimelineItem-detail .antd-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-Timeline-horizontal .antd-TimelineItem-axle .antd-TimelineItem-round--success{background:#389e0d}.amis-scope .antd-Timeline-horizontal .antd-TimelineItem-axle .antd-TimelineItem-round--warning{background:#faad14}.amis-scope .antd-Timeline-horizontal .antd-TimelineItem-content .antd-TimelineItem-detail .antd-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .antd-Tag--normal--success{background:#389e0d}.amis-scope .antd-Tag--normal--warning{background:#faad14}.amis-scope .antd-Tag--rounded--success{color:#389e0d}.amis-scope .antd-Tag--rounded--warning{color:#faad14}.amis-scope .antd-Tag--status--success .antd-Tag--prev{color:#389e0d}.amis-scope .antd-Tag--status--warning .antd-Tag--prev{color:#faad14}.AMISDebug.is-expanded{box-shadow:rgba(0, 0, 0, 0.24) 0px 3px 8px}.amis-scope .bg-light.lt,.amis-scope .bg-light .lt{background:#fefefe}.amis-scope .bg-dark a:hover,.amis-scope .bg-dark .Button--link:hover{color:#fff}.amis-scope .bg-dark .open>a,.amis-scope .bg-dark .open>a:hover,.amis-scope .bg-dark .open>a:focus{color:#fff}.amis-scope .bg-black a:hover,.amis-scope .bg-black .Button--link:hover{color:#fff}.amis-scope .bg-black .open>a,.amis-scope .bg-black .open>a:hover,.amis-scope .bg-black .open>a:focus{color:#fff}.amis-scope .bg-primary a:hover,.amis-scope .bg-primary .Button--link:hover{color:#fff}.amis-scope .bg-primary .open>a,.amis-scope .bg-primary .open>a:hover,.amis-scope .bg-primary .open>a:focus{color:#fff}.amis-scope .bg-success a:hover,.amis-scope .bg-success .Button--link:hover{color:#fff}.amis-scope .bg-success .open>a,.amis-scope .bg-success .open>a:hover,.amis-scope .bg-success .open>a:focus{color:#fff}.amis-scope .bg-info a:hover,.amis-scope .bg-info .Button--link:hover{color:#fff}.amis-scope .bg-info .open>a,.amis-scope .bg-info .open>a:hover,.amis-scope .bg-info .open>a:focus{color:#fff}.amis-scope .bg-warning a:hover,.amis-scope .bg-warning .Button--link:hover{color:#fff}.amis-scope .bg-warning .open>a,.amis-scope .bg-warning .open>a:hover,.amis-scope .bg-warning .open>a:focus{color:#fff}.amis-scope .bg-danger a:hover,.amis-scope .bg-danger .Button--link:hover{color:#fff}.amis-scope .bg-danger .open>a,.amis-scope .bg-danger .open>a:hover,.amis-scope .bg-danger .open>a:focus{color:#fff}.amis-scope .bg-white{background-color:#fff}.amis-scope .bg-white.bg,.amis-scope .bg-white .bg{background-color:#fff}.amis-scope .text-white{color:#fff}.amis-scope .box-shadow{box-shadow:0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05)}.amis-scope .box-shadow-lg{box-shadow:5px 5px 10px rgba(0, 0, 0, 0.05)}.amis-scope .text-shadow{text-shadow:0 1px 0 #e8e9eb, 0 2px 0 #f7f9fa, 0 5px 10px rgba(0, 0, 0, 0.125), 0 10px 20px rgba(0, 0, 0, 0.2)}.amis-scope .b{border:1px solid rgba(0, 0, 0, 0.05)}.amis-scope .b-success{border-color:#389e0d}.amis-scope .b-warning{border-color:#faad14}.amis-scope .b-white{border-color:#fff}.amis-scope .b-l-success{border-left-color:#389e0d}.amis-scope .b-l-warning{border-left-color:#faad14}.amis-scope .b-l-white{border-left-color:#fff}.amis-scope .avatar i.on{background:#389e0d}.amis-scope .avatar i.away{background:#faad14}.amis-scope .label{color:#fff}.amis-scope a.label:hover,.amis-scope a.label:focus{color:#fff}.amis-scope .label-success{background:#389e0d}.amis-scope .label-warning{background:#faad14}.amis-scope .hover\\:bg-white:hover{background-color:#fff}.amis-scope .active\\:bg-white.is-active,.amis-scope .active\\:bg-white:active{background-color:#fff}.amis-scope .focus\\:bg-white:focus{background-color:#fff}.amis-scope .disabled\\:bg-white.is-disabled,.amis-scope .disabled\\:bg-white:disabled{background-color:#fff}.amis-scope .group:hover .group-hover\\:bg-white{background-color:#fff}@media (max-width: 768px){.amis-scope .m\\:bg-white{background-color:#fff};.amis-scope .m\\:hover\\:bg-white:hover{background-color:#fff};.amis-scope .m\\:active\\:bg-white.is-active,.amis-scope .m\\:active\\:bg-white:active{background-color:#fff};.amis-scope .m\\:focus\\:bg-white:focus{background-color:#fff};.amis-scope .m\\:disabled\\:bg-white.is-disabled,.amis-scope .m\\:disabled\\:bg-white:disabled{background-color:#fff};.amis-scope .group:hover .m\\:group-hover\\:bg-white{background-color:#fff}}@media (min-width: 769px){.amis-scope .pc\\:bg-white{background-color:#fff};.amis-scope .pc\\:hover\\:bg-white:hover{background-color:#fff};.amis-scope .pc\\:active\\:bg-white.is-active,.amis-scope .pc\\:active\\:bg-white:active{background-color:#fff};.amis-scope .pc\\:focus\\:bg-white:focus{background-color:#fff};.amis-scope .pc\\:disabled\\:bg-white.is-disabled,.amis-scope .pc\\:disabled\\:bg-white:disabled{background-color:#fff};.amis-scope .group:hover .pc\\:group-hover\\:bg-white{background-color:#fff}}.amis-scope .border-white{border-color:#fff}.amis-scope .hover\\:border-white:hover{border-color:#fff}.amis-scope .active\\:border-white.is-active,.amis-scope .active\\:border-white:active{border-color:#fff}.amis-scope .focus\\:border-white:focus{border-color:#fff}.amis-scope .disabled\\:border-white.is-disabled,.amis-scope .disabled\\:border-white:disabled{border-color:#fff}.amis-scope .group:hover .group-hover\\:border-white{border-color:#fff}@media (max-width: 768px){.amis-scope .m\\:border-white{border-color:#fff};.amis-scope .m\\:hover\\:border-white:hover{border-color:#fff};.amis-scope .m\\:active\\:border-white.is-active,.amis-scope .m\\:active\\:border-white:active{border-color:#fff};.amis-scope .m\\:focus\\:border-white:focus{border-color:#fff};.amis-scope .m\\:disabled\\:border-white.is-disabled,.amis-scope .m\\:disabled\\:border-white:disabled{border-color:#fff};.amis-scope .group:hover .m\\:group-hover\\:border-white{border-color:#fff}}@media (min-width: 769px){.amis-scope .pc\\:border-white{border-color:#fff};.amis-scope .pc\\:hover\\:border-white:hover{border-color:#fff};.amis-scope .pc\\:active\\:border-white.is-active,.amis-scope .pc\\:active\\:border-white:active{border-color:#fff};.amis-scope .pc\\:focus\\:border-white:focus{border-color:#fff};.amis-scope .pc\\:disabled\\:border-white.is-disabled,.amis-scope .pc\\:disabled\\:border-white:disabled{border-color:#fff};.amis-scope .group:hover .pc\\:group-hover\\:border-white{border-color:#fff}}.amis-scope .shadow-sm{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.amis-scope .shadow{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.amis-scope .shadow-md{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.amis-scope .shadow-lg{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.amis-scope .shadow-xl{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.amis-scope .shadow-2xl{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}.amis-scope .shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.amis-scope .hover\\:shadow-sm:hover{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.amis-scope .hover\\:shadow:hover{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.amis-scope .hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.amis-scope .hover\\:shadow-lg:hover{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.amis-scope .hover\\:shadow-xl:hover{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.amis-scope .hover\\:shadow-2xl:hover{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}.amis-scope .hover\\:shadow-inner:hover{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.amis-scope .active\\:shadow-sm.is-active,.amis-scope .active\\:shadow-sm:active{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.amis-scope .active\\:shadow.is-active,.amis-scope .active\\:shadow:active{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.amis-scope .active\\:shadow-md.is-active,.amis-scope .active\\:shadow-md:active{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.amis-scope .active\\:shadow-lg.is-active,.amis-scope .active\\:shadow-lg:active{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.amis-scope .active\\:shadow-xl.is-active,.amis-scope .active\\:shadow-xl:active{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.amis-scope .active\\:shadow-2xl.is-active,.amis-scope .active\\:shadow-2xl:active{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}.amis-scope .active\\:shadow-inner.is-active,.amis-scope .active\\:shadow-inner:active{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.amis-scope .focus\\:shadow-sm:focus{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.amis-scope .focus\\:shadow:focus{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.amis-scope .focus\\:shadow-md:focus{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.amis-scope .focus\\:shadow-lg:focus{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.amis-scope .focus\\:shadow-xl:focus{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.amis-scope .focus\\:shadow-2xl:focus{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}.amis-scope .focus\\:shadow-inner:focus{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.amis-scope .disabled\\:shadow-sm.is-disabled,.amis-scope .disabled\\:shadow-sm:disabled{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.amis-scope .disabled\\:shadow.is-disabled,.amis-scope .disabled\\:shadow:disabled{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.amis-scope .disabled\\:shadow-md.is-disabled,.amis-scope .disabled\\:shadow-md:disabled{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.amis-scope .disabled\\:shadow-lg.is-disabled,.amis-scope .disabled\\:shadow-lg:disabled{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.amis-scope .disabled\\:shadow-xl.is-disabled,.amis-scope .disabled\\:shadow-xl:disabled{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.amis-scope .disabled\\:shadow-2xl.is-disabled,.amis-scope .disabled\\:shadow-2xl:disabled{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}.amis-scope .disabled\\:shadow-inner.is-disabled,.amis-scope .disabled\\:shadow-inner:disabled{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}.amis-scope .group:hover .group-hover\\:shadow-sm{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.amis-scope .group:hover .group-hover\\:shadow{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)}.amis-scope .group:hover .group-hover\\:shadow-md{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)}.amis-scope .group:hover .group-hover\\:shadow-lg{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.amis-scope .group:hover .group-hover\\:shadow-xl{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.amis-scope .group:hover .group-hover\\:shadow-2xl{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}.amis-scope .group:hover .group-hover\\:shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}@media (max-width: 768px){.amis-scope .m\\:shadow-sm{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .m\\:shadow{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:shadow-md{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .m\\:shadow-lg{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .m\\:shadow-xl{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .m\\:shadow-2xl{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .m\\:shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:hover\\:shadow-sm:hover{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .m\\:hover\\:shadow:hover{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .m\\:hover\\:shadow-lg:hover{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .m\\:hover\\:shadow-xl:hover{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .m\\:hover\\:shadow-2xl:hover{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .m\\:hover\\:shadow-inner:hover{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:active\\:shadow-sm.is-active,.amis-scope .m\\:active\\:shadow-sm:active{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .m\\:active\\:shadow.is-active,.amis-scope .m\\:active\\:shadow:active{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:active\\:shadow-md.is-active,.amis-scope .m\\:active\\:shadow-md:active{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .m\\:active\\:shadow-lg.is-active,.amis-scope .m\\:active\\:shadow-lg:active{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .m\\:active\\:shadow-xl.is-active,.amis-scope .m\\:active\\:shadow-xl:active{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .m\\:active\\:shadow-2xl.is-active,.amis-scope .m\\:active\\:shadow-2xl:active{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .m\\:active\\:shadow-inner.is-active,.amis-scope .m\\:active\\:shadow-inner:active{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:focus\\:shadow-sm:focus{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .m\\:focus\\:shadow:focus{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:focus\\:shadow-md:focus{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .m\\:focus\\:shadow-lg:focus{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .m\\:focus\\:shadow-xl:focus{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .m\\:focus\\:shadow-2xl:focus{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .m\\:focus\\:shadow-inner:focus{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:disabled\\:shadow-sm.is-disabled,.amis-scope .m\\:disabled\\:shadow-sm:disabled{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .m\\:disabled\\:shadow.is-disabled,.amis-scope .m\\:disabled\\:shadow:disabled{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .m\\:disabled\\:shadow-md.is-disabled,.amis-scope .m\\:disabled\\:shadow-md:disabled{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .m\\:disabled\\:shadow-lg.is-disabled,.amis-scope .m\\:disabled\\:shadow-lg:disabled{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .m\\:disabled\\:shadow-xl.is-disabled,.amis-scope .m\\:disabled\\:shadow-xl:disabled{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .m\\:disabled\\:shadow-2xl.is-disabled,.amis-scope .m\\:disabled\\:shadow-2xl:disabled{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .m\\:disabled\\:shadow-inner.is-disabled,.amis-scope .m\\:disabled\\:shadow-inner:disabled{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .group:hover .m\\:group-hover\\:shadow-sm{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .group:hover .m\\:group-hover\\:shadow{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .group:hover .m\\:group-hover\\:shadow-md{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .group:hover .m\\:group-hover\\:shadow-lg{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .group:hover .m\\:group-hover\\:shadow-xl{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .group:hover .m\\:group-hover\\:shadow-2xl{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .group:hover .m\\:group-hover\\:shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}}@media (min-width: 769px){.amis-scope .pc\\:shadow-sm{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:shadow{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:shadow-md{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:shadow-lg{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:shadow-xl{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .pc\\:shadow-2xl{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .pc\\:shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:hover\\:shadow-sm:hover{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:hover\\:shadow:hover{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:hover\\:shadow-lg:hover{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:hover\\:shadow-xl:hover{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .pc\\:hover\\:shadow-2xl:hover{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .pc\\:hover\\:shadow-inner:hover{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:active\\:shadow-sm.is-active,.amis-scope .pc\\:active\\:shadow-sm:active{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:active\\:shadow.is-active,.amis-scope .pc\\:active\\:shadow:active{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:active\\:shadow-md.is-active,.amis-scope .pc\\:active\\:shadow-md:active{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:active\\:shadow-lg.is-active,.amis-scope .pc\\:active\\:shadow-lg:active{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:active\\:shadow-xl.is-active,.amis-scope .pc\\:active\\:shadow-xl:active{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .pc\\:active\\:shadow-2xl.is-active,.amis-scope .pc\\:active\\:shadow-2xl:active{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .pc\\:active\\:shadow-inner.is-active,.amis-scope .pc\\:active\\:shadow-inner:active{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:focus\\:shadow-sm:focus{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:focus\\:shadow:focus{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:focus\\:shadow-md:focus{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:focus\\:shadow-lg:focus{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:focus\\:shadow-xl:focus{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .pc\\:focus\\:shadow-2xl:focus{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .pc\\:focus\\:shadow-inner:focus{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:disabled\\:shadow-sm.is-disabled,.amis-scope .pc\\:disabled\\:shadow-sm:disabled{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:disabled\\:shadow.is-disabled,.amis-scope .pc\\:disabled\\:shadow:disabled{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:disabled\\:shadow-md.is-disabled,.amis-scope .pc\\:disabled\\:shadow-md:disabled{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .pc\\:disabled\\:shadow-lg.is-disabled,.amis-scope .pc\\:disabled\\:shadow-lg:disabled{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .pc\\:disabled\\:shadow-xl.is-disabled,.amis-scope .pc\\:disabled\\:shadow-xl:disabled{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .pc\\:disabled\\:shadow-2xl.is-disabled,.amis-scope .pc\\:disabled\\:shadow-2xl:disabled{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .pc\\:disabled\\:shadow-inner.is-disabled,.amis-scope .pc\\:disabled\\:shadow-inner:disabled{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)};.amis-scope .group:hover .pc\\:group-hover\\:shadow-sm{box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)};.amis-scope .group:hover .pc\\:group-hover\\:shadow{box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)};.amis-scope .group:hover .pc\\:group-hover\\:shadow-md{box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)};.amis-scope .group:hover .pc\\:group-hover\\:shadow-lg{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)};.amis-scope .group:hover .pc\\:group-hover\\:shadow-xl{box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1) , 0 10px 10px -5px rgba(0, 0, 0, 0.04)};.amis-scope .group:hover .pc\\:group-hover\\:shadow-2xl{box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)};.amis-scope .group:hover .pc\\:group-hover\\:shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)}}.amis-scope .hover\\:text-white:hover{color:#fff}.amis-scope .active\\:text-white.is-active,.amis-scope .active\\:text-white:active{color:#fff}.amis-scope .focus\\:text-white:focus{color:#fff}.amis-scope .disabled\\:text-white.is-disabled,.amis-scope .disabled\\:text-white:disabled{color:#fff}.amis-scope .group:hover .group-hover\\:text-white{color:#fff}@media (max-width: 768px){.amis-scope .m\\:text-white{color:#fff};.amis-scope .m\\:hover\\:text-white:hover{color:#fff};.amis-scope .m\\:active\\:text-white.is-active,.amis-scope .m\\:active\\:text-white:active{color:#fff};.amis-scope .m\\:focus\\:text-white:focus{color:#fff};.amis-scope .m\\:disabled\\:text-white.is-disabled,.amis-scope .m\\:disabled\\:text-white:disabled{color:#fff};.amis-scope .group:hover .m\\:group-hover\\:text-white{color:#fff}}@media (min-width: 769px){.amis-scope .pc\\:text-white{color:#fff};.amis-scope .pc\\:hover\\:text-white:hover{color:#fff};.amis-scope .pc\\:active\\:text-white.is-active,.amis-scope .pc\\:active\\:text-white:active{color:#fff};.amis-scope .pc\\:focus\\:text-white:focus{color:#fff};.amis-scope .pc\\:disabled\\:text-white.is-disabled,.amis-scope .pc\\:disabled\\:text-white:disabled{color:#fff};.amis-scope .group:hover .pc\\:group-hover\\:text-white{color:#fff}}.amis-scope .a-Layout .a-Layout-header{box-shadow:0 0.125rem 0.125rem rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05)}.amis-scope .a-AsideNav-item.is-open>a>.a-AsideNav-itemArrow:empty:before{color:#fff}.amis-scope .a-AsideNav-itemBadge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .a-AsideNav-item a:hover{color:#fff}.amis-scope .a-AsideNav-item a:hover .a-AsideNav-itemIcon{color:#fff}.amis-scope .a-AsideNav-item.is-active>a{color:#fff}.amis-scope .a-AsideNav-subHeader a:hover{color:#fff}.amis-scope .a-AsideNav-tooltip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}@media (min-width: 768px){.amis-scope .a-Layout--folded .a-AsideNav-subList{box-shadow:0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.amis-scope .a-Button--default{background:#fff}.amis-scope .a-Button--default:not(:disabled):not(.is-disabled):hover{background:#fff}.amis-scope .a-Button--default:not(:disabled):not(.is-disabled).hover{background:#fff}.amis-scope .a-Button--default:not(:disabled):not(.is-disabled):hover:active{background:#fff}.amis-scope .a-Button--default:not(:disabled):not(.is-disabled).active,.amis-scope .a-Button--default:not(:disabled):not(.is-disabled).is-active{background:#fff}.amis-scope .a-Breadcrumb-dropdown{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-Badge-text{color:#fff}.amis-scope .a-Badge-ribbon{color:#fff}.amis-scope .a-Modal-overlay{background:rgba(0, 0, 0, 0.7)}.amis-scope .a-Drawer-overlay{background:rgba(0, 0, 0, 0.6)}.amis-scope .a-Drawer--top .a-Drawer-content.in,.amis-scope .a-Drawer--right .a-Drawer-content.in,.amis-scope .a-Drawer--bottom .a-Drawer-content.in,.amis-scope .a-Drawer--left .a-Drawer-content.in{transform:translate3d(0, 0, 0)}.amis-scope .a-Drawer--top .a-Drawer-content{box-shadow:0 10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .a-Drawer--right .a-Drawer-content{box-shadow:-10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .a-Drawer--bottom .a-Drawer-content{box-shadow:0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .a-Drawer--left .a-Drawer-content{box-shadow:10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .a-Tooltip--dark .a-Tooltip-title{color:#fff}.amis-scope .a-Tooltip--dark .a-Tooltip-body{color:#fff}.amis-scope .a-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .a-PopOver-isMobile .a-PopOver-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-PopUp{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .a-PopUp-inner{background:#fff}.amis-scope .a-PopUp-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-Toast-mobile .a-Toast{background-color:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .a-Toast-mobile .a-Toast-title{color:#fff}.amis-scope .a-Alert-close{text-shadow:0 1px 0 #fff}.amis-scope .a-ArrayInput-addBtn:not(:disabled):not(.is-disabled):hover{background:#fff}.amis-scope .a-ArrayInput-addBtn:not(:disabled):not(.is-disabled).hover{background:#fff}.amis-scope .a-ArrayInput-addBtn:not(:disabled):not(.is-disabled):hover:active{background:#fff}.amis-scope .a-ArrayInput-addBtn:not(:disabled):not(.is-disabled).active,.amis-scope .a-ArrayInput-addBtn:not(:disabled):not(.is-disabled).is-active{background:#fff}.amis-scope .a-Page-asideResizor{background-color:#fff}.amis-scope .a-Page-asideResizor:hover{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.amis-scope .a-Panel{-webkit-box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.amis-scope .a-Spinner .a-Spinner-icon.a-Spinner-icon--disabled>svg.icon{color:rgba(0, 0, 0, 0.65);fill:rgba(0, 0, 0, 0.65)}.amis-scope .a-Spinner .a-Spinner-icon.a-Spinner-icon--disabled>svg.icon path{fill:rgba(0, 0, 0, 0.65)}.amis-scope .a-DropDown-menu-root{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-CalendarMobile-pop{background:#fff}.amis-scope .a-CalendarMobile-footer-ranges{background:#fff;box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.02)}.amis-scope .a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.amis-scope .a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.amis-scope .a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.amis-scope .a-CalendarMobile .a-CalendarMobile-calendar-wrap .a-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25)}.amis-scope .a-CalendarMobile-range-text{color:#fff}.amis-scope .a-CalendarMobile-toast{background:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .a-ColorField-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .a-CBGroupOrItem-body-group.is-hover{box-shadow:0px 2px 14px 0px rgba(0, 0, 0, 0.16);background:#fff}.amis-scope .a-ContextMenu-menu{background:#fff}.amis-scope .a-ContextMenu-item:hover>.a-ContextMenu-subList{background:#fff}.amis-scope .a-Wizard .a-Badge,.amis-scope .a-Wizard-tabs .a-Badge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .a-Wizard>ul.nav li:before,.amis-scope .a-Wizard>ul.nav li:after,.amis-scope .a-Wizard-tabs>ul.nav li:before,.amis-scope .a-Wizard-tabs>ul.nav li:after{border-left-color:rgba(0, 0, 0, 0.05)}.amis-scope .a-Wizard>ul.nav li.is-active:after,.amis-scope .a-Wizard-tabs>ul.nav li.is-active:after{border-left-color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-light.lt,.amis-scope .a-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .a-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .a-Table-table>tbody>tr.bg-dark .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .a-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-black a:hover,.amis-scope .a-Table-table>tbody>tr.bg-black .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-black .open>a,.amis-scope .a-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .a-Table-table>tbody>tr.bg-primary .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .a-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-success a:hover,.amis-scope .a-Table-table>tbody>tr.bg-success .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-success .open>a,.amis-scope .a-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-info a:hover,.amis-scope .a-Table-table>tbody>tr.bg-info .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-info .open>a,.amis-scope .a-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .a-Table-table>tbody>tr.bg-warning .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .a-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .a-Table-table>tbody>tr.bg-danger .a-Button--link:hover{color:#fff}.amis-scope .a-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .a-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .a-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .a-Table-itemActions-wrap{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-light.lt,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-dark .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-black a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-black .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-black .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-primary .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-success a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-success .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-success .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-info a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-info .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-info .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-warning .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-danger .a-Button--link:hover{color:#fff}.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .a-Table2 .a-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .a-ColumnToggler-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-Progress-line-bar--animate::before{background:#fff}.amis-scope .a-Pagination-wrap.disabled{background-color:#fff}.amis-scope .a-ImageGallery-close:hover{color:#fff}.amis-scope .a-ImageGallery-main>img{transition:transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.amis-scope .a-ImageGallery-prevBtn,.amis-scope .a-ImageGallery-nextBtn{text-shadow:rgba(0, 0, 0, 0.3) 0px 0px 4px}.amis-scope .a-ImageGallery-prevBtn:hover,.amis-scope .a-ImageGallery-nextBtn:hover{color:#fff;text-shadow:rgba(0, 0, 0, 0.5) 0px 0px 4px}.amis-scope .a-ImageGallery-prevList,.amis-scope .a-ImageGallery-nextList{background:rgba(0, 0, 0, 0.3);color:#fff}.amis-scope .a-ImageGallery-prevList.is-disabled,.amis-scope .a-ImageGallery-nextList.is-disabled{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-ImageGallery-prevList:hover,.amis-scope .a-ImageGallery-nextList:hover{color:#fff}.amis-scope .a-ImageGallery-item:after{background:rgba(0, 0, 0, 0.5)}.amis-scope .a-Image-overlay{color:#fff}.amis-scope .a-Image-overlay>a{color:#fff}.amis-scope .a-SearchBox-history .a-SearchBox-history-dropdown{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .a-ListMenu.is-mobile .a-ListMenu-item{background:#f5f5f5}.amis-scope .a-TextControl-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-Checkbox--full.a-Checkbox--checkbox input:checked + i:before{border-color:#fff}.amis-scope .a-Select-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-ListControl-item:hover:active:after,.amis-scope .a-ListControl-item.is-active:after{border-color:#fff}.amis-scope .a-LocationControl .a-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .a-ColorPicker-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .a-DatePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .rdtBtn:not(:disabled):not(.is-disabled):hover{background:#fff}.amis-scope .rdtBtn:not(:disabled):not(.is-disabled).hover{background:#fff}.amis-scope .rdtBtn:not(:disabled):not(.is-disabled):hover:active{background:#fff}.amis-scope .rdtBtn:not(:disabled):not(.is-disabled).active,.amis-scope .rdtBtn:not(:disabled):not(.is-disabled).is-active{background:#fff}.amis-scope .rdtBtnCancel:not(:disabled):not(.is-disabled):hover{background:#fff}.amis-scope .rdtBtnCancel:not(:disabled):not(.is-disabled).hover{background:#fff}.amis-scope .rdtBtnCancel:not(:disabled):not(.is-disabled):hover:active{background:#fff}.amis-scope .rdtBtnCancel:not(:disabled):not(.is-disabled).active,.amis-scope .rdtBtnCancel:not(:disabled):not(.is-disabled).is-active{background:#fff}.amis-scope .a-DateRangePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-ImageControl-pasteTip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}.amis-scope .a-ImageControl-croperToolbar{background:#fff;box-shadow:0 0 4px 0 rgba(0, 0, 0, 0.1)}.amis-scope .a-ExcelControl-dropzone{background-color:#fafafa}.amis-scope .a-TreeSelectControl .a-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .a-Combo-item--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .a-SubForm-value--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .a-NestedSelectControl .a-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-UserSelect-memberName .option-avatar-txt{color:#fff !important}.amis-scope .a-UserSelect-icon-box{color:#fff}.amis-scope .a-UserSelect-avatar-text{color:#fff !important}.amis-scope .a-Markdown table tr{background-color:#fff}.amis-scope .a-Markdown code{background-color:rgba(0, 0, 0, 0.04)}.amis-scope .a-FormulaEditor-editor::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-FormulaEditor-VariableList-tabs .a-Tabs-content .a-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .a-FormulaEditor .cm-field,.amis-scope .a-FormulaEditor .cm-func{color:#fff}.amis-scope .a-FormulaPicker-ResultBox span.c-field{color:#fff}.amis-scope .a-Timeline-vertical .a-TimelineItem-content .a-TimelineItem-detail .a-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .a-Timeline-horizontal .a-TimelineItem-content .a-TimelineItem-detail .a-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .text-shadow{text-shadow:0 1px 0 #e9e8eb, 0 2px 0 #f8f7fa, 0 5px 10px rgba(0, 0, 0, 0.125), 0 10px 20px rgba(0, 0, 0, 0.2)}.amis-scope .dark-AsideNav-itemBadge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .dark-AsideNav-tooltip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}@media (min-width: 768px){.amis-scope .dark-Layout--folded .dark-AsideNav-subList{box-shadow:0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.amis-scope .dark-Breadcrumb-dropdown{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-Badge-text{color:#fff}.amis-scope .dark-Badge-ribbon{color:#fff}.amis-scope .dark-Modal-overlay{background:rgba(0, 0, 0, 0.7)}.amis-scope .dark-Drawer-overlay{background:rgba(0, 0, 0, 0.6)}.amis-scope .dark-Drawer--top .dark-Drawer-content.in,.amis-scope .dark-Drawer--right .dark-Drawer-content.in,.amis-scope .dark-Drawer--bottom .dark-Drawer-content.in,.amis-scope .dark-Drawer--left .dark-Drawer-content.in{transform:translate3d(0, 0, 0)}.amis-scope .dark-Drawer--top .dark-Drawer-content{box-shadow:0 10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .dark-Drawer--right .dark-Drawer-content{box-shadow:-10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .dark-Drawer--bottom .dark-Drawer-content{box-shadow:0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .dark-Drawer--left .dark-Drawer-content{box-shadow:10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .dark-Tooltip--dark .dark-Tooltip-title{color:#fff}.amis-scope .dark-Tooltip--dark .dark-Tooltip-body{color:#fff}.amis-scope .dark-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .dark-PopOver-isMobile .dark-PopOver-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-PopUp{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .dark-PopUp-inner{background:#fff}.amis-scope .dark-PopUp-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-Toast-mobile .dark-Toast{background-color:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .dark-Toast-mobile .dark-Toast-title{color:#fff}.amis-scope .dark-Alert-close{text-shadow:0 1px 0 #fff}.amis-scope .dark-Page-asideResizor{background-color:#fff}.amis-scope .dark-Page-asideResizor:hover{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.amis-scope .dark-Panel{-webkit-box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.amis-scope .dark-Spinner .dark-Spinner-icon.dark-Spinner-icon--disabled>svg.icon{color:rgba(0, 0, 0, 0.65);fill:rgba(0, 0, 0, 0.65)}.amis-scope .dark-Spinner .dark-Spinner-icon.dark-Spinner-icon--disabled>svg.icon path{fill:rgba(0, 0, 0, 0.65)}.amis-scope .dark-DropDown-menu-root{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-CalendarMobile-pop{background:#fff}.amis-scope .dark-CalendarMobile-footer-ranges{background:#fff;box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.02)}.amis-scope .dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.amis-scope .dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.amis-scope .dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.amis-scope .dark-CalendarMobile .dark-CalendarMobile-calendar-wrap .dark-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25)}.amis-scope .dark-CalendarMobile-range-text{color:#fff}.amis-scope .dark-CalendarMobile-toast{background:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .dark-ColorField-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .dark-CBGroupOrItem-body-group.is-hover{box-shadow:0px 2px 14px 0px rgba(0, 0, 0, 0.16);background:#fff}.amis-scope .dark-ContextMenu-menu{background:#fff}.amis-scope .dark-ContextMenu-item:hover>.dark-ContextMenu-subList{background:#fff}.amis-scope .dark-Wizard .dark-Badge,.amis-scope .dark-Wizard-tabs .dark-Badge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .dark-Wizard>ul.nav li:before,.amis-scope .dark-Wizard>ul.nav li:after,.amis-scope .dark-Wizard-tabs>ul.nav li:before,.amis-scope .dark-Wizard-tabs>ul.nav li:after{border-left-color:rgba(0, 0, 0, 0.05)}.amis-scope .dark-Wizard>ul.nav li.is-active:after,.amis-scope .dark-Wizard-tabs>ul.nav li.is-active:after{border-left-color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-light.lt,.amis-scope .dark-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .dark-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-dark .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-black a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-black .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-black .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-primary .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-success a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-success .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-success .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-info a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-info .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-info .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-warning .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-danger .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .dark-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .dark-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .dark-Table-itemActions-wrap{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-light.lt,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-dark .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-black a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-black .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-black .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-primary .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-success a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-success .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-success .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-info a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-info .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-info .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-warning .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-danger .dark-Button--link:hover{color:#fff}.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .dark-Table2 .dark-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .dark-ColumnToggler-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-Progress-line-bar--animate::before{background:#fff}.amis-scope .dark-Pagination-wrap.disabled{background-color:#fff}.amis-scope .dark-ImageGallery-close:hover{color:#fff}.amis-scope .dark-ImageGallery-main>img{transition:transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.amis-scope .dark-ImageGallery-prevBtn,.amis-scope .dark-ImageGallery-nextBtn{text-shadow:rgba(0, 0, 0, 0.3) 0px 0px 4px}.amis-scope .dark-ImageGallery-prevBtn:hover,.amis-scope .dark-ImageGallery-nextBtn:hover{color:#fff;text-shadow:rgba(0, 0, 0, 0.5) 0px 0px 4px}.amis-scope .dark-ImageGallery-prevList,.amis-scope .dark-ImageGallery-nextList{background:rgba(0, 0, 0, 0.3);color:#fff}.amis-scope .dark-ImageGallery-prevList.is-disabled,.amis-scope .dark-ImageGallery-nextList.is-disabled{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-ImageGallery-prevList:hover,.amis-scope .dark-ImageGallery-nextList:hover{color:#fff}.amis-scope .dark-ImageGallery-item:after{background:rgba(0, 0, 0, 0.5)}.amis-scope .dark-Image-overlay{color:#fff}.amis-scope .dark-Image-overlay>a{color:#fff}.amis-scope .dark-SearchBox-history .dark-SearchBox-history-dropdown{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .dark-ListMenu.is-mobile .dark-ListMenu-item{background:#f5f5f5}.amis-scope .dark-TextControl-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-Checkbox--full.dark-Checkbox--checkbox input:checked + i:before{border-color:#fff}.amis-scope .dark-Select-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-ListControl-item:hover:active:after,.amis-scope .dark-ListControl-item.is-active:after{border-color:#fff}.amis-scope .dark-LocationControl .dark-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .dark-ColorPicker-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .dark-DatePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-DateRangePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-ImageControl-pasteTip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}.amis-scope .dark-ImageControl-croperToolbar{background:#fff;box-shadow:0 0 4px 0 rgba(0, 0, 0, 0.1)}.amis-scope .dark-ExcelControl-dropzone{background-color:#fafafa}.amis-scope .dark-TreeSelectControl .dark-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .dark-Combo-item--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .dark-SubForm-value--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .dark-NestedSelectControl .dark-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-UserSelect-memberName .option-avatar-txt{color:#fff !important}.amis-scope .dark-UserSelect-icon-box{color:#fff}.amis-scope .dark-UserSelect-avatar-text{color:#fff !important}.amis-scope .dark-Markdown table tr{background-color:#fff}.amis-scope .dark-Markdown code{background-color:rgba(0, 0, 0, 0.04)}.amis-scope .dark-FormulaEditor-editor::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-FormulaEditor-VariableList-tabs .dark-Tabs-content .dark-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .dark-FormulaEditor .cm-field,.amis-scope .dark-FormulaEditor .cm-func{color:#fff}.amis-scope .dark-FormulaPicker-ResultBox span.c-field{color:#fff}.amis-scope .dark-Timeline-vertical .dark-TimelineItem-content .dark-TimelineItem-detail .dark-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .dark-Timeline-horizontal .dark-TimelineItem-content .dark-TimelineItem-detail .dark-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .text-shadow{text-shadow:0 1px 0 #5c6066, 0 2px 0 #151c26, 0 5px 10px rgba(0, 0, 0, 0.125), 0 10px 20px rgba(0, 0, 0, 0.2)}.amis-scope .cxd-AsideNav-itemBadge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .cxd-AsideNav-tooltip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}@media (min-width: 768px){.amis-scope .cxd-Layout--folded .cxd-AsideNav-subList{box-shadow:0 0.125rem 0.375rem rgba(0, 0, 0, 0.1)}}.amis-scope .cxd-Breadcrumb-dropdown{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-Badge-text{color:#fff}.amis-scope .cxd-Badge-ribbon{color:#fff}.amis-scope .cxd-Modal-overlay{background:rgba(0, 0, 0, 0.7)}.amis-scope .cxd-Drawer-overlay{background:rgba(0, 0, 0, 0.6)}.amis-scope .cxd-Drawer--top .cxd-Drawer-content.in,.amis-scope .cxd-Drawer--right .cxd-Drawer-content.in,.amis-scope .cxd-Drawer--bottom .cxd-Drawer-content.in,.amis-scope .cxd-Drawer--left .cxd-Drawer-content.in{transform:translate3d(0, 0, 0)}.amis-scope .cxd-Drawer--top .cxd-Drawer-content{box-shadow:0 10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .cxd-Drawer--right .cxd-Drawer-content{box-shadow:-10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .cxd-Drawer--bottom .cxd-Drawer-content{box-shadow:0 -10px 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .cxd-Drawer--left .cxd-Drawer-content{box-shadow:10px 0 10px -10px rgba(0, 0, 0, 0.2)}.amis-scope .cxd-Tooltip--dark .cxd-Tooltip-title{color:#fff}.amis-scope .cxd-Tooltip--dark .cxd-Tooltip-body{color:#fff}.amis-scope .cxd-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .cxd-PopOver-isMobile .cxd-PopOver-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-PopUp{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .cxd-PopUp-inner{background:#fff}.amis-scope .cxd-PopUp-overlay{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-Toast-mobile .cxd-Toast{background-color:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .cxd-Toast-mobile .cxd-Toast-title{color:#fff}.amis-scope .cxd-Alert-close{text-shadow:0 1px 0 #fff}.amis-scope .cxd-Page-asideResizor{background-color:#fff}.amis-scope .cxd-Page-asideResizor:hover{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.08)}.amis-scope .cxd-Panel{-webkit-box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.05)}.amis-scope .cxd-Spinner .cxd-Spinner-icon.cxd-Spinner-icon--disabled>svg.icon{color:rgba(0, 0, 0, 0.65);fill:rgba(0, 0, 0, 0.65)}.amis-scope .cxd-Spinner .cxd-Spinner-icon.cxd-Spinner-icon--disabled>svg.icon path{fill:rgba(0, 0, 0, 0.65)}.amis-scope .cxd-DropDown-menu-root{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-CalendarMobile-pop{background:#fff}.amis-scope .cxd-CalendarMobile-footer-ranges{background:#fff;box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.02)}.amis-scope .cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeStart .calendar-wrap,.amis-scope .cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeStart:hover .calendar-wrap,.amis-scope .cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd .calendar-wrap,.amis-scope .cxd-CalendarMobile .cxd-CalendarMobile-calendar-wrap .cxd-CalendarMobile-calendar .rdtPicker .rdtRangeEnd:hover .calendar-wrap{color:#fff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25)}.amis-scope .cxd-CalendarMobile-range-text{color:#fff}.amis-scope .cxd-CalendarMobile-toast{background:rgba(0, 0, 0, 0.9);color:#fff}.amis-scope .cxd-ColorField-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .cxd-CBGroupOrItem-body-group.is-hover{box-shadow:0px 2px 14px 0px rgba(0, 0, 0, 0.16);background:#fff}.amis-scope .cxd-ContextMenu-menu{background:#fff}.amis-scope .cxd-ContextMenu-item:hover>.cxd-ContextMenu-subList{background:#fff}.amis-scope .cxd-Wizard .cxd-Badge,.amis-scope .cxd-Wizard-tabs .cxd-Badge{text-shadow:0 0.0625rem 0 rgba(0, 0, 0, 0.2)}.amis-scope .cxd-Wizard>ul.nav li:before,.amis-scope .cxd-Wizard>ul.nav li:after,.amis-scope .cxd-Wizard-tabs>ul.nav li:before,.amis-scope .cxd-Wizard-tabs>ul.nav li:after{border-left-color:rgba(0, 0, 0, 0.05)}.amis-scope .cxd-Wizard>ul.nav li.is-active:after,.amis-scope .cxd-Wizard-tabs>ul.nav li.is-active:after{border-left-color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-light.lt,.amis-scope .cxd-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .cxd-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-dark .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-black a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-black .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-black .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-primary .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-success a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-success .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-success .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-info a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-info .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-info .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-warning .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-danger .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .cxd-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .cxd-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .cxd-Table-itemActions-wrap{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-light.lt,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-light .lt{background:#fefefe}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-dark .open>a:focus{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-black a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-black .open>a:focus{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-primary .open>a:focus{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-success a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-success .open>a:focus{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-info a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-info .open>a:focus{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-warning .open>a:focus{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .cxd-Button--link:hover{color:#fff}.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .open>a,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .open>a:hover,.amis-scope .cxd-Table2 .cxd-Table-table>tbody>tr.bg-danger .open>a:focus{color:#fff}.amis-scope .cxd-ColumnToggler-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-Progress-line-bar--animate::before{background:#fff}.amis-scope .cxd-Pagination-wrap.disabled{background-color:#fff}.amis-scope .cxd-ImageGallery-close:hover{color:#fff}.amis-scope .cxd-ImageGallery-main>img{transition:transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s}.amis-scope .cxd-ImageGallery-prevBtn,.amis-scope .cxd-ImageGallery-nextBtn{text-shadow:rgba(0, 0, 0, 0.3) 0px 0px 4px}.amis-scope .cxd-ImageGallery-prevBtn:hover,.amis-scope .cxd-ImageGallery-nextBtn:hover{color:#fff;text-shadow:rgba(0, 0, 0, 0.5) 0px 0px 4px}.amis-scope .cxd-ImageGallery-prevList,.amis-scope .cxd-ImageGallery-nextList{background:rgba(0, 0, 0, 0.3);color:#fff}.amis-scope .cxd-ImageGallery-prevList.is-disabled,.amis-scope .cxd-ImageGallery-nextList.is-disabled{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-ImageGallery-prevList:hover,.amis-scope .cxd-ImageGallery-nextList:hover{color:#fff}.amis-scope .cxd-ImageGallery-item:after{background:rgba(0, 0, 0, 0.5)}.amis-scope .cxd-Image-overlay{color:#fff}.amis-scope .cxd-Image-overlay>a{color:#fff}.amis-scope .cxd-SearchBox-history .cxd-SearchBox-history-dropdown{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .cxd-ListMenu.is-mobile .cxd-ListMenu-item{background:#f5f5f5}.amis-scope .cxd-TextControl-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-Checkbox--full.cxd-Checkbox--checkbox input:checked + i:before{border-color:#fff}.amis-scope .cxd-Select-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-ListControl-item:hover:active:after,.amis-scope .cxd-ListControl-item.is-active:after{border-color:#fff}.amis-scope .cxd-LocationControl .cxd-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .cxd-ColorPicker-previewIcon{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}.amis-scope .cxd-DatePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-DateRangePicker-popover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-ImageControl-pasteTip{background:rgba(0, 0, 0, 0.7);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);color:#fff}.amis-scope .cxd-ImageControl-croperToolbar{background:#fff;box-shadow:0 0 4px 0 rgba(0, 0, 0, 0.1)}.amis-scope .cxd-ExcelControl-dropzone{background-color:#fafafa}.amis-scope .cxd-TreeSelectControl .cxd-PopOver{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.amis-scope .cxd-Combo-item--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .cxd-SubForm-value--dragging:after{background:rgba(0, 0, 0, 0.1)}.amis-scope .cxd-NestedSelectControl .cxd-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-NestedSelect-menu{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-UserSelect-memberName .option-avatar-txt{color:#fff !important}.amis-scope .cxd-UserSelect-icon-box{color:#fff}.amis-scope .cxd-UserSelect-avatar-text{color:#fff !important}.amis-scope .cxd-Markdown table tr{background-color:#fff}.amis-scope .cxd-Markdown code{background-color:rgba(0, 0, 0, 0.04)}.amis-scope .cxd-FormulaEditor-editor::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-FormulaEditor-VariableList-base.is-scrollable::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-FormulaEditor-VariableList-tabs .cxd-Tabs-content .cxd-FormulaEditor-VariableList-sub-FormulaEditor-VariableList-base::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-FormulaEditor-VariableList-tabs>div::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-FormulaEditor-FuncList-body::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-FormulaEditor-FuncList-doc-desc::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.3)}.amis-scope .cxd-FormulaEditor .cm-field,.amis-scope .cxd-FormulaEditor .cm-func{color:#fff}.amis-scope .cxd-FormulaPicker-ResultBox span.c-field{color:#fff}.amis-scope .cxd-Timeline-vertical .cxd-TimelineItem-content .cxd-TimelineItem-detail .cxd-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .cxd-Timeline-horizontal .cxd-TimelineItem-content .cxd-TimelineItem-detail .cxd-TimelineItem-detail-visible{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}.amis-scope .text-shadow{text-shadow:0 1px 0 #e8e9eb, 0 2px 0 #f7f8fa, 0 5px 10px rgba(0, 0, 0, 0.125), 0 10px 20px rgba(0, 0, 0, 0.2)}.fa-inverse{color:var(--fa-inverse, #fff)}:root,.amis-scope .AMISCSSWrapper{--boxShadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--boxShadowSm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--label-color:#fff;--label-link--hover-color:#fff;--Badge-color:#fff;--ButtonGroup-divider-color:#fff;--ListControl-item-onActive-after-borderColor:#fff;--ListMenu-item-mobile-bg:#f5f5f5;--Nav-item-onHover-bg:rgba(0, 0, 0, 0.05);--Tooltip--attr-bg:rgba(0, 0, 0, 0.7);--Tooltip--attr-color:#fff;--Tooltip-body-color--dark:#fff;--Tooltip-title-color--dark:#fff;--menu-background:#fff}:root{--shadows-shadow-sm:0px 1px 2px 0px rgba(0, 0, 0, 0.05);--shadows-shadow-normal:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);--shadows-shadow-md:0px 4px -1px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);--shadows-shadow-lg:0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);--shadows-shadow-xl:0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);--shadows-shadow-2xl:0px 25px 50px -12px rgba(0, 0, 0, 0.25)}:root{--Layout-header-boxShadow:0 0.125rem 0.125rem rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);--Layout-asideLink-onHover-color:#fff;--Layout-asideLink-onHover-iconColor:#fff;--Layout-asideLink-onActive-color:#fff;--button-default-default-bg-color:#fff;--button-default-hover-bg-color:#fff;--button-default-active-bg-color:#fff}.amis-scope .text-shadow{text-shadow:0 1px 0 var(--borderColor), 0 2px 0 var(--borderColorLight), 0 5px 10px rgba(0, 0, 0, 0.125), 0 10px 20px rgba(0, 0, 0, 0.2)}:root{--colors-warning-main:#faad14;--colors-warning-1:#613400;--colors-warning-2:#874d00;--colors-warning-3:#ad6800;--colors-warning-4:#d48806;--colors-warning-5:#faad14;--colors-success-main:#389e0d;--colors-success-2:#092b00;--colors-success-3:#135200;--colors-success-4:#237804;--colors-success-5:#389e0d;--colors-brand-10:#fafafa;--shadows-shadow-sm:0px 1px 2px 0px rgba(0, 0, 0, 0.05);--shadows-shadow-normal:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);--shadows-shadow-md:0px 4px -1px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);--shadows-shadow-lg:0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);--shadows-shadow-xl:0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04);--shadows-shadow-2xl:0px 25px 50px -12px rgba(0, 0, 0, 0.25);--Layout-asideLink-onActive-color:#fff;--Table-thead-bg:#fafafa;--Table-onChecked-color:rgba(0, 0, 0, 0.85)}";
